@cosmos.gl/graph 2.6.2 → 2.6.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.js +890 -890
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +22 -22
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var Ps = "http://www.w3.org/1999/xhtml";
|
|
2
|
-
const
|
|
2
|
+
const Zu = {
|
|
3
3
|
svg: "http://www.w3.org/2000/svg",
|
|
4
4
|
xhtml: Ps,
|
|
5
5
|
xlink: "http://www.w3.org/1999/xlink",
|
|
@@ -8,7 +8,7 @@ const Zl = {
|
|
|
8
8
|
};
|
|
9
9
|
function ca(t) {
|
|
10
10
|
var e = t += "", n = e.indexOf(":");
|
|
11
|
-
return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)),
|
|
11
|
+
return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)), Zu.hasOwnProperty(e) ? { space: Zu[e], local: t } : t;
|
|
12
12
|
}
|
|
13
13
|
function mm(t) {
|
|
14
14
|
return function() {
|
|
@@ -21,7 +21,7 @@ function pm(t) {
|
|
|
21
21
|
return this.ownerDocument.createElementNS(t.space, t.local);
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function jl(t) {
|
|
25
25
|
var e = ca(t);
|
|
26
26
|
return (e.local ? pm : mm)(e);
|
|
27
27
|
}
|
|
@@ -35,8 +35,8 @@ function qs(t) {
|
|
|
35
35
|
function gm(t) {
|
|
36
36
|
typeof t != "function" && (t = qs(t));
|
|
37
37
|
for (var e = this._groups, n = e.length, i = new Array(n), r = 0; r < n; ++r)
|
|
38
|
-
for (var o = e[r], s = o.length, f = i[r] = new Array(s),
|
|
39
|
-
(
|
|
38
|
+
for (var o = e[r], s = o.length, f = i[r] = new Array(s), u, l, d = 0; d < s; ++d)
|
|
39
|
+
(u = o[d]) && (l = t.call(u, u.__data__, d, o)) && ("__data__" in u && (l.__data__ = u.__data__), f[d] = l);
|
|
40
40
|
return new nn(i, this._parents);
|
|
41
41
|
}
|
|
42
42
|
function ym(t) {
|
|
@@ -45,7 +45,7 @@ function ym(t) {
|
|
|
45
45
|
function xm() {
|
|
46
46
|
return [];
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function ql(t) {
|
|
49
49
|
return t == null ? xm : function() {
|
|
50
50
|
return this.querySelectorAll(t);
|
|
51
51
|
};
|
|
@@ -56,18 +56,18 @@ function bm(t) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
function _m(t) {
|
|
59
|
-
typeof t == "function" ? t = bm(t) : t =
|
|
59
|
+
typeof t == "function" ? t = bm(t) : t = ql(t);
|
|
60
60
|
for (var e = this._groups, n = e.length, i = [], r = [], o = 0; o < n; ++o)
|
|
61
|
-
for (var s = e[o], f = s.length,
|
|
62
|
-
(
|
|
61
|
+
for (var s = e[o], f = s.length, u, l = 0; l < f; ++l)
|
|
62
|
+
(u = s[l]) && (i.push(t.call(u, u.__data__, l, s)), r.push(u));
|
|
63
63
|
return new nn(i, r);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Yl(t) {
|
|
66
66
|
return function() {
|
|
67
67
|
return this.matches(t);
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Zl(t) {
|
|
71
71
|
return function(e) {
|
|
72
72
|
return e.matches(t);
|
|
73
73
|
};
|
|
@@ -82,7 +82,7 @@ function wm() {
|
|
|
82
82
|
return this.firstElementChild;
|
|
83
83
|
}
|
|
84
84
|
function Am(t) {
|
|
85
|
-
return this.select(t == null ? wm : Tm(typeof t == "function" ? t :
|
|
85
|
+
return this.select(t == null ? wm : Tm(typeof t == "function" ? t : Zl(t)));
|
|
86
86
|
}
|
|
87
87
|
var Em = Array.prototype.filter;
|
|
88
88
|
function Cm() {
|
|
@@ -94,20 +94,20 @@ function Pm(t) {
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
function km(t) {
|
|
97
|
-
return this.selectAll(t == null ? Cm : Pm(typeof t == "function" ? t :
|
|
97
|
+
return this.selectAll(t == null ? Cm : Pm(typeof t == "function" ? t : Zl(t)));
|
|
98
98
|
}
|
|
99
99
|
function Im(t) {
|
|
100
|
-
typeof t != "function" && (t =
|
|
100
|
+
typeof t != "function" && (t = Yl(t));
|
|
101
101
|
for (var e = this._groups, n = e.length, i = new Array(n), r = 0; r < n; ++r)
|
|
102
|
-
for (var o = e[r], s = o.length, f = i[r] = [],
|
|
103
|
-
(
|
|
102
|
+
for (var o = e[r], s = o.length, f = i[r] = [], u, l = 0; l < s; ++l)
|
|
103
|
+
(u = o[l]) && t.call(u, u.__data__, l, o) && f.push(u);
|
|
104
104
|
return new nn(i, this._parents);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ql(t) {
|
|
107
107
|
return new Array(t.length);
|
|
108
108
|
}
|
|
109
109
|
function Lm() {
|
|
110
|
-
return new nn(this._enter || this._groups.map(
|
|
110
|
+
return new nn(this._enter || this._groups.map(Ql), this._parents);
|
|
111
111
|
}
|
|
112
112
|
function na(t, e) {
|
|
113
113
|
this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e;
|
|
@@ -133,19 +133,19 @@ function Dm(t) {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
function Fm(t, e, n, i, r, o) {
|
|
136
|
-
for (var s = 0, f,
|
|
136
|
+
for (var s = 0, f, u = e.length, l = o.length; s < l; ++s)
|
|
137
137
|
(f = e[s]) ? (f.__data__ = o[s], i[s] = f) : n[s] = new na(t, o[s]);
|
|
138
|
-
for (; s <
|
|
138
|
+
for (; s < u; ++s)
|
|
139
139
|
(f = e[s]) && (r[s] = f);
|
|
140
140
|
}
|
|
141
141
|
function zm(t, e, n, i, r, o, s) {
|
|
142
|
-
var f,
|
|
142
|
+
var f, u, l = /* @__PURE__ */ new Map(), d = e.length, y = o.length, S = new Array(d), D;
|
|
143
143
|
for (f = 0; f < d; ++f)
|
|
144
|
-
(
|
|
144
|
+
(u = e[f]) && (S[f] = D = s.call(u, u.__data__, f, e) + "", l.has(D) ? r[f] = u : l.set(D, u));
|
|
145
145
|
for (f = 0; f < y; ++f)
|
|
146
|
-
D = s.call(t, o[f], f, o) + "", (
|
|
146
|
+
D = s.call(t, o[f], f, o) + "", (u = l.get(D)) ? (i[f] = u, u.__data__ = o[f], l.delete(D)) : n[f] = new na(t, o[f]);
|
|
147
147
|
for (f = 0; f < d; ++f)
|
|
148
|
-
(
|
|
148
|
+
(u = e[f]) && l.get(S[f]) === u && (r[f] = u);
|
|
149
149
|
}
|
|
150
150
|
function Rm(t) {
|
|
151
151
|
return t.__data__;
|
|
@@ -154,8 +154,8 @@ function Mm(t, e) {
|
|
|
154
154
|
if (!arguments.length) return Array.from(this, Rm);
|
|
155
155
|
var n = e ? zm : Fm, i = this._parents, r = this._groups;
|
|
156
156
|
typeof t != "function" && (t = Dm(t));
|
|
157
|
-
for (var o = r.length, s = new Array(o), f = new Array(o),
|
|
158
|
-
var d = i[
|
|
157
|
+
for (var o = r.length, s = new Array(o), f = new Array(o), u = new Array(o), l = 0; l < o; ++l) {
|
|
158
|
+
var d = i[l], y = r[l], S = y.length, D = Om(t.call(d, d && d.__data__, l, i)), q = D.length, Te = f[l] = new Array(q), we = s[l] = new Array(q), fe = u[l] = new Array(S);
|
|
159
159
|
n(d, y, Te, we, fe, D, e);
|
|
160
160
|
for (var Oe = 0, Ve = 0, V, ae; Oe < q; ++Oe)
|
|
161
161
|
if (V = Te[Oe]) {
|
|
@@ -163,24 +163,24 @@ function Mm(t, e) {
|
|
|
163
163
|
V._next = ae || null;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
return s = new nn(s, i), s._enter = f, s._exit =
|
|
166
|
+
return s = new nn(s, i), s._enter = f, s._exit = u, s;
|
|
167
167
|
}
|
|
168
168
|
function Om(t) {
|
|
169
169
|
return typeof t == "object" && "length" in t ? t : Array.from(t);
|
|
170
170
|
}
|
|
171
171
|
function Nm() {
|
|
172
|
-
return new nn(this._exit || this._groups.map(
|
|
172
|
+
return new nn(this._exit || this._groups.map(Ql), this._parents);
|
|
173
173
|
}
|
|
174
174
|
function Gm(t, e, n) {
|
|
175
175
|
var i = this.enter(), r = this, o = this.exit();
|
|
176
176
|
return typeof t == "function" ? (i = t(i), i && (i = i.selection())) : i = i.append(t + ""), e != null && (r = e(r), r && (r = r.selection())), n == null ? o.remove() : n(o), i && r ? i.merge(r).order() : r;
|
|
177
177
|
}
|
|
178
178
|
function Bm(t) {
|
|
179
|
-
for (var e = t.selection ? t.selection() : t, n = this._groups, i = e._groups, r = n.length, o = i.length, s = Math.min(r, o), f = new Array(r),
|
|
180
|
-
for (var
|
|
181
|
-
(D =
|
|
182
|
-
for (;
|
|
183
|
-
f[
|
|
179
|
+
for (var e = t.selection ? t.selection() : t, n = this._groups, i = e._groups, r = n.length, o = i.length, s = Math.min(r, o), f = new Array(r), u = 0; u < s; ++u)
|
|
180
|
+
for (var l = n[u], d = i[u], y = l.length, S = f[u] = new Array(y), D, q = 0; q < y; ++q)
|
|
181
|
+
(D = l[q] || d[q]) && (S[q] = D);
|
|
182
|
+
for (; u < r; ++u)
|
|
183
|
+
f[u] = n[u];
|
|
184
184
|
return new nn(f, this._parents);
|
|
185
185
|
}
|
|
186
186
|
function Um() {
|
|
@@ -195,9 +195,9 @@ function Vm(t) {
|
|
|
195
195
|
return y && S ? t(y.__data__, S.__data__) : !y - !S;
|
|
196
196
|
}
|
|
197
197
|
for (var n = this._groups, i = n.length, r = new Array(i), o = 0; o < i; ++o) {
|
|
198
|
-
for (var s = n[o], f = s.length,
|
|
199
|
-
(
|
|
200
|
-
|
|
198
|
+
for (var s = n[o], f = s.length, u = r[o] = new Array(f), l, d = 0; d < f; ++d)
|
|
199
|
+
(l = s[d]) && (u[d] = l);
|
|
200
|
+
u.sort(e);
|
|
201
201
|
}
|
|
202
202
|
return new nn(r, this._parents).order();
|
|
203
203
|
}
|
|
@@ -273,7 +273,7 @@ function np(t, e) {
|
|
|
273
273
|
}
|
|
274
274
|
return this.each((e == null ? n.local ? Qm : Zm : typeof e == "function" ? n.local ? tp : ep : n.local ? Jm : Km)(n, e));
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Kl(t) {
|
|
277
277
|
return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
|
|
278
278
|
}
|
|
279
279
|
function ip(t) {
|
|
@@ -296,7 +296,7 @@ function ap(t, e, n) {
|
|
|
296
296
|
return arguments.length > 1 ? this.each((e == null ? ip : typeof e == "function" ? op : rp)(t, e, n ?? "")) : Qi(this.node(), t);
|
|
297
297
|
}
|
|
298
298
|
function Qi(t, e) {
|
|
299
|
-
return t.style.getPropertyValue(e) ||
|
|
299
|
+
return t.style.getPropertyValue(e) || Kl(t).getComputedStyle(t, null).getPropertyValue(e);
|
|
300
300
|
}
|
|
301
301
|
function sp(t) {
|
|
302
302
|
return function() {
|
|
@@ -308,23 +308,23 @@ function fp(t, e) {
|
|
|
308
308
|
this[t] = e;
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function up(t, e) {
|
|
312
312
|
return function() {
|
|
313
313
|
var n = e.apply(this, arguments);
|
|
314
314
|
n == null ? delete this[t] : this[t] = n;
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
return arguments.length > 1 ? this.each((e == null ? sp : typeof e == "function" ?
|
|
317
|
+
function lp(t, e) {
|
|
318
|
+
return arguments.length > 1 ? this.each((e == null ? sp : typeof e == "function" ? up : fp)(t, e)) : this.node()[t];
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Jl(t) {
|
|
321
321
|
return t.trim().split(/^|\s+/);
|
|
322
322
|
}
|
|
323
323
|
function Ys(t) {
|
|
324
324
|
return t.classList || new ec(t);
|
|
325
325
|
}
|
|
326
326
|
function ec(t) {
|
|
327
|
-
this._node = t, this._names =
|
|
327
|
+
this._node = t, this._names = Jl(t.getAttribute("class") || "");
|
|
328
328
|
}
|
|
329
329
|
ec.prototype = {
|
|
330
330
|
add: function(t) {
|
|
@@ -361,7 +361,7 @@ function dp(t, e) {
|
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
363
|
function mp(t, e) {
|
|
364
|
-
var n =
|
|
364
|
+
var n = Jl(t + "");
|
|
365
365
|
if (arguments.length < 2) {
|
|
366
366
|
for (var i = Ys(this.node()), r = -1, o = n.length; ++r < o; ) if (!i.contains(n[r])) return !1;
|
|
367
367
|
return !0;
|
|
@@ -415,7 +415,7 @@ function Ep() {
|
|
|
415
415
|
return this.each(Ap);
|
|
416
416
|
}
|
|
417
417
|
function Cp(t) {
|
|
418
|
-
var e = typeof t == "function" ? t :
|
|
418
|
+
var e = typeof t == "function" ? t : jl(t);
|
|
419
419
|
return this.select(function() {
|
|
420
420
|
return this.appendChild(e.apply(this, arguments));
|
|
421
421
|
});
|
|
@@ -424,7 +424,7 @@ function Pp() {
|
|
|
424
424
|
return null;
|
|
425
425
|
}
|
|
426
426
|
function kp(t, e) {
|
|
427
|
-
var n = typeof t == "function" ? t :
|
|
427
|
+
var n = typeof t == "function" ? t : jl(t), i = e == null ? Pp : typeof e == "function" ? e : qs(e);
|
|
428
428
|
return this.select(function() {
|
|
429
429
|
return this.insertBefore(n.apply(this, arguments), i.apply(this, arguments) || null);
|
|
430
430
|
});
|
|
@@ -489,8 +489,8 @@ function Bp(t, e, n) {
|
|
|
489
489
|
if (arguments.length < 2) {
|
|
490
490
|
var f = this.node().__on;
|
|
491
491
|
if (f) {
|
|
492
|
-
for (var
|
|
493
|
-
for (r = 0, d = f[
|
|
492
|
+
for (var u = 0, l = f.length, d; u < l; ++u)
|
|
493
|
+
for (r = 0, d = f[u]; r < o; ++r)
|
|
494
494
|
if ((s = i[r]).type === d.type && s.name === d.name)
|
|
495
495
|
return d.value;
|
|
496
496
|
}
|
|
@@ -500,7 +500,7 @@ function Bp(t, e, n) {
|
|
|
500
500
|
return this;
|
|
501
501
|
}
|
|
502
502
|
function ic(t, e, n) {
|
|
503
|
-
var i =
|
|
503
|
+
var i = Kl(t), r = i.CustomEvent;
|
|
504
504
|
typeof r == "function" ? r = new r(e, n) : (r = i.document.createEvent("Event"), n ? (r.initEvent(e, n.bubbles, n.cancelable), r.detail = n.detail) : r.initEvent(e, !1, !1)), t.dispatchEvent(r);
|
|
505
505
|
}
|
|
506
506
|
function Up(t, e) {
|
|
@@ -554,7 +554,7 @@ nn.prototype = Mr.prototype = {
|
|
|
554
554
|
each: Ym,
|
|
555
555
|
attr: np,
|
|
556
556
|
style: ap,
|
|
557
|
-
property:
|
|
557
|
+
property: lp,
|
|
558
558
|
classed: mp,
|
|
559
559
|
text: yp,
|
|
560
560
|
html: Sp,
|
|
@@ -620,8 +620,8 @@ Uo.prototype = ha.prototype = {
|
|
|
620
620
|
}
|
|
621
621
|
if (e != null && typeof e != "function") throw new Error("invalid callback: " + e);
|
|
622
622
|
for (; ++o < s; )
|
|
623
|
-
if (r = (t = i[o]).type) n[r] =
|
|
624
|
-
else if (e == null) for (r in n) n[r] =
|
|
623
|
+
if (r = (t = i[o]).type) n[r] = Qu(n[r], t.name, e);
|
|
624
|
+
else if (e == null) for (r in n) n[r] = Qu(n[r], t.name, null);
|
|
625
625
|
return this;
|
|
626
626
|
},
|
|
627
627
|
copy: function() {
|
|
@@ -644,7 +644,7 @@ function Yp(t, e) {
|
|
|
644
644
|
if ((r = t[n]).name === e)
|
|
645
645
|
return r.value;
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function Qu(t, e, n) {
|
|
648
648
|
for (var i = 0, r = t.length; i < r; ++i)
|
|
649
649
|
if (t[i].name === e) {
|
|
650
650
|
t[i] = jp, t = t.slice(0, i).concat(t.slice(i + 1));
|
|
@@ -684,7 +684,7 @@ function Qp() {
|
|
|
684
684
|
(e = wi - t._time) >= 0 && t._call.call(null, e), t = t._next;
|
|
685
685
|
--Ki;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function Ku() {
|
|
688
688
|
wi = (ra = Dr.now()) + da, Ki = kr = 0;
|
|
689
689
|
try {
|
|
690
690
|
Qp();
|
|
@@ -705,16 +705,16 @@ function ks(t) {
|
|
|
705
705
|
if (!Ki) {
|
|
706
706
|
kr && (kr = clearTimeout(kr));
|
|
707
707
|
var e = t - wi;
|
|
708
|
-
e > 24 ? (t < 1 / 0 && (kr = setTimeout(
|
|
708
|
+
e > 24 ? (t < 1 / 0 && (kr = setTimeout(Ku, t - Dr.now() - da)), Sr && (Sr = clearInterval(Sr))) : (Sr || (ra = Dr.now(), Sr = setInterval(Kp, oc)), Ki = 1, ac(Ku));
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Ju(t, e, n) {
|
|
712
712
|
var i = new oa();
|
|
713
713
|
return e = e == null ? 0 : +e, i.restart((r) => {
|
|
714
714
|
i.stop(), t(r + e);
|
|
715
715
|
}, e, n), i;
|
|
716
716
|
}
|
|
717
|
-
var e0 = ha("start", "end", "cancel", "interrupt"), t0 = [], fc = 0,
|
|
717
|
+
var e0 = ha("start", "end", "cancel", "interrupt"), t0 = [], fc = 0, el = 1, Is = 2, Vo = 3, tl = 4, Ls = 5, $o = 6;
|
|
718
718
|
function ma(t, e, n, i, r, o) {
|
|
719
719
|
var s = t.__transition;
|
|
720
720
|
if (!s) t.__transition = {};
|
|
@@ -753,33 +753,33 @@ function yn(t, e) {
|
|
|
753
753
|
function n0(t, e, n) {
|
|
754
754
|
var i = t.__transition, r;
|
|
755
755
|
i[e] = n, n.timer = sc(o, 0, n.time);
|
|
756
|
-
function o(
|
|
757
|
-
n.state =
|
|
756
|
+
function o(l) {
|
|
757
|
+
n.state = el, n.timer.restart(s, n.delay, n.time), n.delay <= l && s(l - n.delay);
|
|
758
758
|
}
|
|
759
|
-
function s(
|
|
759
|
+
function s(l) {
|
|
760
760
|
var d, y, S, D;
|
|
761
|
-
if (n.state !==
|
|
761
|
+
if (n.state !== el) return u();
|
|
762
762
|
for (d in i)
|
|
763
763
|
if (D = i[d], D.name === n.name) {
|
|
764
|
-
if (D.state === Vo) return
|
|
765
|
-
D.state ===
|
|
764
|
+
if (D.state === Vo) return Ju(s);
|
|
765
|
+
D.state === tl ? (D.state = $o, D.timer.stop(), D.on.call("interrupt", t, t.__data__, D.index, D.group), delete i[d]) : +d < e && (D.state = $o, D.timer.stop(), D.on.call("cancel", t, t.__data__, D.index, D.group), delete i[d]);
|
|
766
766
|
}
|
|
767
|
-
if (
|
|
768
|
-
n.state === Vo && (n.state =
|
|
767
|
+
if (Ju(function() {
|
|
768
|
+
n.state === Vo && (n.state = tl, n.timer.restart(f, n.delay, n.time), f(l));
|
|
769
769
|
}), n.state = Is, n.on.call("start", t, t.__data__, n.index, n.group), n.state === Is) {
|
|
770
770
|
for (n.state = Vo, r = new Array(S = n.tween.length), d = 0, y = -1; d < S; ++d)
|
|
771
771
|
(D = n.tween[d].value.call(t, t.__data__, n.index, n.group)) && (r[++y] = D);
|
|
772
772
|
r.length = y + 1;
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
function f(
|
|
776
|
-
for (var d =
|
|
775
|
+
function f(l) {
|
|
776
|
+
for (var d = l < n.duration ? n.ease.call(null, l / n.duration) : (n.timer.restart(u), n.state = Ls, 1), y = -1, S = r.length; ++y < S; )
|
|
777
777
|
r[y].call(t, d);
|
|
778
|
-
n.state === Ls && (n.on.call("end", t, t.__data__, n.index, n.group),
|
|
778
|
+
n.state === Ls && (n.on.call("end", t, t.__data__, n.index, n.group), u());
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function u() {
|
|
781
781
|
n.state = $o, n.timer.stop(), delete i[e];
|
|
782
|
-
for (var
|
|
782
|
+
for (var l in i) return;
|
|
783
783
|
delete t.__transition;
|
|
784
784
|
}
|
|
785
785
|
}
|
|
@@ -805,14 +805,14 @@ function i0(t) {
|
|
|
805
805
|
function Ks(t, e, n) {
|
|
806
806
|
t.prototype = e.prototype = n, n.constructor = t;
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function uc(t, e) {
|
|
809
809
|
var n = Object.create(t.prototype);
|
|
810
810
|
for (var i in e) n[i] = e[i];
|
|
811
811
|
return n;
|
|
812
812
|
}
|
|
813
813
|
function Or() {
|
|
814
814
|
}
|
|
815
|
-
var Fr = 0.7, aa = 1 / Fr, Yi = "\\s*([+-]?\\d+)\\s*", zr = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", En = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", r0 = /^#([0-9a-f]{3,8})$/, o0 = new RegExp(`^rgb\\(${Yi},${Yi},${Yi}\\)$`), a0 = new RegExp(`^rgb\\(${En},${En},${En}\\)$`), s0 = new RegExp(`^rgba\\(${Yi},${Yi},${Yi},${zr}\\)$`), f0 = new RegExp(`^rgba\\(${En},${En},${En},${zr}\\)$`),
|
|
815
|
+
var Fr = 0.7, aa = 1 / Fr, Yi = "\\s*([+-]?\\d+)\\s*", zr = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", En = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", r0 = /^#([0-9a-f]{3,8})$/, o0 = new RegExp(`^rgb\\(${Yi},${Yi},${Yi}\\)$`), a0 = new RegExp(`^rgb\\(${En},${En},${En}\\)$`), s0 = new RegExp(`^rgba\\(${Yi},${Yi},${Yi},${zr}\\)$`), f0 = new RegExp(`^rgba\\(${En},${En},${En},${zr}\\)$`), u0 = new RegExp(`^hsl\\(${zr},${En},${En}\\)$`), l0 = new RegExp(`^hsla\\(${zr},${En},${En},${zr}\\)$`), nl = {
|
|
816
816
|
aliceblue: 15792383,
|
|
817
817
|
antiquewhite: 16444375,
|
|
818
818
|
aqua: 65535,
|
|
@@ -969,31 +969,31 @@ Ks(Or, Jn, {
|
|
|
969
969
|
displayable() {
|
|
970
970
|
return this.rgb().displayable();
|
|
971
971
|
},
|
|
972
|
-
hex:
|
|
972
|
+
hex: il,
|
|
973
973
|
// Deprecated! Use color.formatHex.
|
|
974
|
-
formatHex:
|
|
974
|
+
formatHex: il,
|
|
975
975
|
formatHex8: c0,
|
|
976
976
|
formatHsl: h0,
|
|
977
|
-
formatRgb:
|
|
978
|
-
toString:
|
|
977
|
+
formatRgb: rl,
|
|
978
|
+
toString: rl
|
|
979
979
|
});
|
|
980
|
-
function
|
|
980
|
+
function il() {
|
|
981
981
|
return this.rgb().formatHex();
|
|
982
982
|
}
|
|
983
983
|
function c0() {
|
|
984
984
|
return this.rgb().formatHex8();
|
|
985
985
|
}
|
|
986
986
|
function h0() {
|
|
987
|
-
return
|
|
987
|
+
return lc(this).formatHsl();
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function rl() {
|
|
990
990
|
return this.rgb().formatRgb();
|
|
991
991
|
}
|
|
992
992
|
function Jn(t) {
|
|
993
993
|
var e, n;
|
|
994
|
-
return t = (t + "").trim().toLowerCase(), (e = r0.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ?
|
|
994
|
+
return t = (t + "").trim().toLowerCase(), (e = r0.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? ol(e) : n === 3 ? new Kt(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? Fo(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? Fo(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = o0.exec(t)) ? new Kt(e[1], e[2], e[3], 1) : (e = a0.exec(t)) ? new Kt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = s0.exec(t)) ? Fo(e[1], e[2], e[3], e[4]) : (e = f0.exec(t)) ? Fo(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = u0.exec(t)) ? fl(e[1], e[2] / 100, e[3] / 100, 1) : (e = l0.exec(t)) ? fl(e[1], e[2] / 100, e[3] / 100, e[4]) : nl.hasOwnProperty(t) ? ol(nl[t]) : t === "transparent" ? new Kt(NaN, NaN, NaN, 0) : null;
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function ol(t) {
|
|
997
997
|
return new Kt(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
|
|
998
998
|
}
|
|
999
999
|
function Fo(t, e, n, i) {
|
|
@@ -1008,7 +1008,7 @@ function Ds(t, e, n, i) {
|
|
|
1008
1008
|
function Kt(t, e, n, i) {
|
|
1009
1009
|
this.r = +t, this.g = +e, this.b = +n, this.opacity = +i;
|
|
1010
1010
|
}
|
|
1011
|
-
Ks(Kt, Ds,
|
|
1011
|
+
Ks(Kt, Ds, uc(Or, {
|
|
1012
1012
|
brighter(t) {
|
|
1013
1013
|
return t = t == null ? aa : Math.pow(aa, t), new Kt(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
1014
1014
|
},
|
|
@@ -1024,20 +1024,20 @@ Ks(Kt, Ds, lc(Or, {
|
|
|
1024
1024
|
displayable() {
|
|
1025
1025
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
1026
1026
|
},
|
|
1027
|
-
hex:
|
|
1027
|
+
hex: al,
|
|
1028
1028
|
// Deprecated! Use color.formatHex.
|
|
1029
|
-
formatHex:
|
|
1029
|
+
formatHex: al,
|
|
1030
1030
|
formatHex8: m0,
|
|
1031
|
-
formatRgb:
|
|
1032
|
-
toString:
|
|
1031
|
+
formatRgb: sl,
|
|
1032
|
+
toString: sl
|
|
1033
1033
|
}));
|
|
1034
|
-
function
|
|
1034
|
+
function al() {
|
|
1035
1035
|
return `#${_i(this.r)}${_i(this.g)}${_i(this.b)}`;
|
|
1036
1036
|
}
|
|
1037
1037
|
function m0() {
|
|
1038
1038
|
return `#${_i(this.r)}${_i(this.g)}${_i(this.b)}${_i((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function sl() {
|
|
1041
1041
|
const t = sa(this.opacity);
|
|
1042
1042
|
return `${t === 1 ? "rgb(" : "rgba("}${Si(this.r)}, ${Si(this.g)}, ${Si(this.b)}${t === 1 ? ")" : `, ${t})`}`;
|
|
1043
1043
|
}
|
|
@@ -1050,24 +1050,24 @@ function Si(t) {
|
|
|
1050
1050
|
function _i(t) {
|
|
1051
1051
|
return t = Si(t), (t < 16 ? "0" : "") + t.toString(16);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function fl(t, e, n, i) {
|
|
1054
1054
|
return i <= 0 ? t = e = n = NaN : n <= 0 || n >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new vn(t, e, n, i);
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function lc(t) {
|
|
1057
1057
|
if (t instanceof vn) return new vn(t.h, t.s, t.l, t.opacity);
|
|
1058
1058
|
if (t instanceof Or || (t = Jn(t)), !t) return new vn();
|
|
1059
1059
|
if (t instanceof vn) return t;
|
|
1060
1060
|
t = t.rgb();
|
|
1061
|
-
var e = t.r / 255, n = t.g / 255, i = t.b / 255, r = Math.min(e, n, i), o = Math.max(e, n, i), s = NaN, f = o - r,
|
|
1062
|
-
return f ? (e === o ? s = (n - i) / f + (n < i) * 6 : n === o ? s = (i - e) / f + 2 : s = (e - n) / f + 4, f /=
|
|
1061
|
+
var e = t.r / 255, n = t.g / 255, i = t.b / 255, r = Math.min(e, n, i), o = Math.max(e, n, i), s = NaN, f = o - r, u = (o + r) / 2;
|
|
1062
|
+
return f ? (e === o ? s = (n - i) / f + (n < i) * 6 : n === o ? s = (i - e) / f + 2 : s = (e - n) / f + 4, f /= u < 0.5 ? o + r : 2 - o - r, s *= 60) : f = u > 0 && u < 1 ? 0 : s, new vn(s, f, u, t.opacity);
|
|
1063
1063
|
}
|
|
1064
1064
|
function p0(t, e, n, i) {
|
|
1065
|
-
return arguments.length === 1 ?
|
|
1065
|
+
return arguments.length === 1 ? lc(t) : new vn(t, e, n, i ?? 1);
|
|
1066
1066
|
}
|
|
1067
1067
|
function vn(t, e, n, i) {
|
|
1068
1068
|
this.h = +t, this.s = +e, this.l = +n, this.opacity = +i;
|
|
1069
1069
|
}
|
|
1070
|
-
Ks(vn, p0,
|
|
1070
|
+
Ks(vn, p0, uc(Or, {
|
|
1071
1071
|
brighter(t) {
|
|
1072
1072
|
return t = t == null ? aa : Math.pow(aa, t), new vn(this.h, this.s, this.l * t, this.opacity);
|
|
1073
1073
|
},
|
|
@@ -1084,17 +1084,17 @@ Ks(vn, p0, lc(Or, {
|
|
|
1084
1084
|
);
|
|
1085
1085
|
},
|
|
1086
1086
|
clamp() {
|
|
1087
|
-
return new vn(
|
|
1087
|
+
return new vn(ul(this.h), zo(this.s), zo(this.l), sa(this.opacity));
|
|
1088
1088
|
},
|
|
1089
1089
|
displayable() {
|
|
1090
1090
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1091
1091
|
},
|
|
1092
1092
|
formatHsl() {
|
|
1093
1093
|
const t = sa(this.opacity);
|
|
1094
|
-
return `${t === 1 ? "hsl(" : "hsla("}${
|
|
1094
|
+
return `${t === 1 ? "hsl(" : "hsla("}${ul(this.h)}, ${zo(this.s) * 100}%, ${zo(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
|
|
1095
1095
|
}
|
|
1096
1096
|
}));
|
|
1097
|
-
function
|
|
1097
|
+
function ul(t) {
|
|
1098
1098
|
return t = (t || 0) % 360, t < 0 ? t + 360 : t;
|
|
1099
1099
|
}
|
|
1100
1100
|
function zo(t) {
|
|
@@ -1126,9 +1126,9 @@ function cc(t, e) {
|
|
|
1126
1126
|
const fa = function t(e) {
|
|
1127
1127
|
var n = y0(e);
|
|
1128
1128
|
function i(r, o) {
|
|
1129
|
-
var s = n((r = Ds(r)).r, (o = Ds(o)).r), f = n(r.g, o.g),
|
|
1129
|
+
var s = n((r = Ds(r)).r, (o = Ds(o)).r), f = n(r.g, o.g), u = n(r.b, o.b), l = cc(r.opacity, o.opacity);
|
|
1130
1130
|
return function(d) {
|
|
1131
|
-
return r.r = s(d), r.g = f(d), r.b =
|
|
1131
|
+
return r.r = s(d), r.g = f(d), r.b = u(d), r.opacity = l(d), r + "";
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
1134
|
return i.gamma = t, i;
|
|
@@ -1186,11 +1186,11 @@ function A0(t) {
|
|
|
1186
1186
|
};
|
|
1187
1187
|
}
|
|
1188
1188
|
function hc(t, e) {
|
|
1189
|
-
var n = Fs.lastIndex = ys.lastIndex = 0, i, r, o, s = -1, f = [],
|
|
1189
|
+
var n = Fs.lastIndex = ys.lastIndex = 0, i, r, o, s = -1, f = [], u = [];
|
|
1190
1190
|
for (t = t + "", e = e + ""; (i = Fs.exec(t)) && (r = ys.exec(e)); )
|
|
1191
|
-
(o = r.index) > n && (o = e.slice(n, o), f[s] ? f[s] += o : f[++s] = o), (i = i[0]) === (r = r[0]) ? f[s] ? f[s] += r : f[++s] = r : (f[++s] = null,
|
|
1192
|
-
return n < e.length && (o = e.slice(n), f[s] ? f[s] += o : f[++s] = o), f.length < 2 ?
|
|
1193
|
-
for (var d = 0, y; d < e; ++d) f[(y =
|
|
1191
|
+
(o = r.index) > n && (o = e.slice(n, o), f[s] ? f[s] += o : f[++s] = o), (i = i[0]) === (r = r[0]) ? f[s] ? f[s] += r : f[++s] = r : (f[++s] = null, u.push({ i: s, x: pn(i, r) })), n = ys.lastIndex;
|
|
1192
|
+
return n < e.length && (o = e.slice(n), f[s] ? f[s] += o : f[++s] = o), f.length < 2 ? u[0] ? A0(u[0].x) : w0(e) : (e = u.length, function(l) {
|
|
1193
|
+
for (var d = 0, y; d < e; ++d) f[(y = u[d]).i] = y.x(l);
|
|
1194
1194
|
return f.join("");
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
@@ -1203,7 +1203,7 @@ function E0(t, e) {
|
|
|
1203
1203
|
return Math.round(t * (1 - n) + e * n);
|
|
1204
1204
|
};
|
|
1205
1205
|
}
|
|
1206
|
-
var
|
|
1206
|
+
var ll = 180 / Math.PI, zs = {
|
|
1207
1207
|
translateX: 0,
|
|
1208
1208
|
translateY: 0,
|
|
1209
1209
|
rotate: 0,
|
|
@@ -1212,12 +1212,12 @@ var uu = 180 / Math.PI, zs = {
|
|
|
1212
1212
|
scaleY: 1
|
|
1213
1213
|
};
|
|
1214
1214
|
function dc(t, e, n, i, r, o) {
|
|
1215
|
-
var s, f,
|
|
1216
|
-
return (s = Math.sqrt(t * t + e * e)) && (t /= s, e /= s), (
|
|
1215
|
+
var s, f, u;
|
|
1216
|
+
return (s = Math.sqrt(t * t + e * e)) && (t /= s, e /= s), (u = t * n + e * i) && (n -= t * u, i -= e * u), (f = Math.sqrt(n * n + i * i)) && (n /= f, i /= f, u /= f), t * i < e * n && (t = -t, e = -e, u = -u, s = -s), {
|
|
1217
1217
|
translateX: r,
|
|
1218
1218
|
translateY: o,
|
|
1219
|
-
rotate: Math.atan2(e, t) *
|
|
1220
|
-
skewX: Math.atan(
|
|
1219
|
+
rotate: Math.atan2(e, t) * ll,
|
|
1220
|
+
skewX: Math.atan(u) * ll,
|
|
1221
1221
|
scaleX: s,
|
|
1222
1222
|
scaleY: f
|
|
1223
1223
|
};
|
|
@@ -1231,37 +1231,37 @@ function P0(t) {
|
|
|
1231
1231
|
return t == null || (Ro || (Ro = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ro.setAttribute("transform", t), !(t = Ro.transform.baseVal.consolidate())) ? zs : (t = t.matrix, dc(t.a, t.b, t.c, t.d, t.e, t.f));
|
|
1232
1232
|
}
|
|
1233
1233
|
function mc(t, e, n, i) {
|
|
1234
|
-
function r(
|
|
1235
|
-
return
|
|
1234
|
+
function r(l) {
|
|
1235
|
+
return l.length ? l.pop() + " " : "";
|
|
1236
1236
|
}
|
|
1237
|
-
function o(
|
|
1238
|
-
if (
|
|
1237
|
+
function o(l, d, y, S, D, q) {
|
|
1238
|
+
if (l !== y || d !== S) {
|
|
1239
1239
|
var Te = D.push("translate(", null, e, null, n);
|
|
1240
|
-
q.push({ i: Te - 4, x: pn(
|
|
1240
|
+
q.push({ i: Te - 4, x: pn(l, y) }, { i: Te - 2, x: pn(d, S) });
|
|
1241
1241
|
} else (y || S) && D.push("translate(" + y + e + S + n);
|
|
1242
1242
|
}
|
|
1243
|
-
function s(
|
|
1244
|
-
|
|
1243
|
+
function s(l, d, y, S) {
|
|
1244
|
+
l !== d ? (l - d > 180 ? d += 360 : d - l > 180 && (l += 360), S.push({ i: y.push(r(y) + "rotate(", null, i) - 2, x: pn(l, d) })) : d && y.push(r(y) + "rotate(" + d + i);
|
|
1245
1245
|
}
|
|
1246
|
-
function f(
|
|
1247
|
-
|
|
1246
|
+
function f(l, d, y, S) {
|
|
1247
|
+
l !== d ? S.push({ i: y.push(r(y) + "skewX(", null, i) - 2, x: pn(l, d) }) : d && y.push(r(y) + "skewX(" + d + i);
|
|
1248
1248
|
}
|
|
1249
|
-
function l
|
|
1250
|
-
if (
|
|
1249
|
+
function u(l, d, y, S, D, q) {
|
|
1250
|
+
if (l !== y || d !== S) {
|
|
1251
1251
|
var Te = D.push(r(D) + "scale(", null, ",", null, ")");
|
|
1252
|
-
q.push({ i: Te - 4, x: pn(
|
|
1252
|
+
q.push({ i: Te - 4, x: pn(l, y) }, { i: Te - 2, x: pn(d, S) });
|
|
1253
1253
|
} else (y !== 1 || S !== 1) && D.push(r(D) + "scale(" + y + "," + S + ")");
|
|
1254
1254
|
}
|
|
1255
|
-
return function(
|
|
1255
|
+
return function(l, d) {
|
|
1256
1256
|
var y = [], S = [];
|
|
1257
|
-
return
|
|
1257
|
+
return l = t(l), d = t(d), o(l.translateX, l.translateY, d.translateX, d.translateY, y, S), s(l.rotate, d.rotate, y, S), f(l.skewX, d.skewX, y, S), u(l.scaleX, l.scaleY, d.scaleX, d.scaleY, y, S), l = d = null, function(D) {
|
|
1258
1258
|
for (var q = -1, Te = S.length, we; ++q < Te; ) y[(we = S[q]).i] = we.x(D);
|
|
1259
1259
|
return y.join("");
|
|
1260
1260
|
};
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
1263
|
var k0 = mc(C0, "px, ", "px)", "deg)"), I0 = mc(P0, ", ", ")", ")"), L0 = 1e-12;
|
|
1264
|
-
function
|
|
1264
|
+
function cl(t) {
|
|
1265
1265
|
return ((t = Math.exp(t)) + 1 / t) / 2;
|
|
1266
1266
|
}
|
|
1267
1267
|
function D0(t) {
|
|
@@ -1272,31 +1272,31 @@ function F0(t) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
const z0 = function t(e, n, i) {
|
|
1274
1274
|
function r(o, s) {
|
|
1275
|
-
var f = o[0],
|
|
1275
|
+
var f = o[0], u = o[1], l = o[2], d = s[0], y = s[1], S = s[2], D = d - f, q = y - u, Te = D * D + q * q, we, fe;
|
|
1276
1276
|
if (Te < L0)
|
|
1277
|
-
fe = Math.log(S /
|
|
1277
|
+
fe = Math.log(S / l) / e, we = function(Be) {
|
|
1278
1278
|
return [
|
|
1279
1279
|
f + Be * D,
|
|
1280
|
-
|
|
1281
|
-
|
|
1280
|
+
u + Be * q,
|
|
1281
|
+
l * Math.exp(e * Be * fe)
|
|
1282
1282
|
];
|
|
1283
1283
|
};
|
|
1284
1284
|
else {
|
|
1285
|
-
var Oe = Math.sqrt(Te), Ve = (S * S -
|
|
1285
|
+
var Oe = Math.sqrt(Te), Ve = (S * S - l * l + i * Te) / (2 * l * n * Oe), V = (S * S - l * l - i * Te) / (2 * S * n * Oe), ae = Math.log(Math.sqrt(Ve * Ve + 1) - Ve), Ie = Math.log(Math.sqrt(V * V + 1) - V);
|
|
1286
1286
|
fe = (Ie - ae) / e, we = function(Be) {
|
|
1287
|
-
var Xe = Be * fe, nt =
|
|
1287
|
+
var Xe = Be * fe, nt = cl(ae), ut = l / (n * Oe) * (nt * F0(e * Xe + ae) - D0(ae));
|
|
1288
1288
|
return [
|
|
1289
|
-
f +
|
|
1290
|
-
|
|
1291
|
-
|
|
1289
|
+
f + ut * D,
|
|
1290
|
+
u + ut * q,
|
|
1291
|
+
l * nt / cl(e * Xe + ae)
|
|
1292
1292
|
];
|
|
1293
1293
|
};
|
|
1294
1294
|
}
|
|
1295
1295
|
return we.duration = fe * 1e3 * e / Math.SQRT2, we;
|
|
1296
1296
|
}
|
|
1297
1297
|
return r.rho = function(o) {
|
|
1298
|
-
var s = Math.max(1e-3, +o), f = s * s,
|
|
1299
|
-
return t(s, f,
|
|
1298
|
+
var s = Math.max(1e-3, +o), f = s * s, u = f * f;
|
|
1299
|
+
return t(s, f, u);
|
|
1300
1300
|
}, r;
|
|
1301
1301
|
}(Math.SQRT2, 2, 4);
|
|
1302
1302
|
function R0(t, e) {
|
|
@@ -1321,12 +1321,12 @@ function M0(t, e, n) {
|
|
|
1321
1321
|
var o = Cn(this, t), s = o.tween;
|
|
1322
1322
|
if (s !== i) {
|
|
1323
1323
|
r = (i = s).slice();
|
|
1324
|
-
for (var f = { name: e, value: n },
|
|
1325
|
-
if (r[
|
|
1326
|
-
r[
|
|
1324
|
+
for (var f = { name: e, value: n }, u = 0, l = r.length; u < l; ++u)
|
|
1325
|
+
if (r[u].name === e) {
|
|
1326
|
+
r[u] = f;
|
|
1327
1327
|
break;
|
|
1328
1328
|
}
|
|
1329
|
-
|
|
1329
|
+
u === l && r.push(f);
|
|
1330
1330
|
}
|
|
1331
1331
|
o.tween = r;
|
|
1332
1332
|
};
|
|
@@ -1381,15 +1381,15 @@ function U0(t, e, n) {
|
|
|
1381
1381
|
function V0(t, e, n) {
|
|
1382
1382
|
var i, r, o;
|
|
1383
1383
|
return function() {
|
|
1384
|
-
var s, f = n(this),
|
|
1385
|
-
return f == null ? void this.removeAttribute(t) : (s = this.getAttribute(t),
|
|
1384
|
+
var s, f = n(this), u;
|
|
1385
|
+
return f == null ? void this.removeAttribute(t) : (s = this.getAttribute(t), u = f + "", s === u ? null : s === i && u === r ? o : (r = u, o = e(i = s, f)));
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
1388
|
function $0(t, e, n) {
|
|
1389
1389
|
var i, r, o;
|
|
1390
1390
|
return function() {
|
|
1391
|
-
var s, f = n(this),
|
|
1392
|
-
return f == null ? void this.removeAttributeNS(t.space, t.local) : (s = this.getAttributeNS(t.space, t.local),
|
|
1391
|
+
var s, f = n(this), u;
|
|
1392
|
+
return f == null ? void this.removeAttributeNS(t.space, t.local) : (s = this.getAttributeNS(t.space, t.local), u = f + "", s === u ? null : s === i && u === r ? o : (r = u, o = e(i = s, f)));
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
1395
|
function H0(t, e) {
|
|
@@ -1480,17 +1480,17 @@ function ov(t) {
|
|
|
1480
1480
|
return this.each(rv(this._id, t));
|
|
1481
1481
|
}
|
|
1482
1482
|
function av(t) {
|
|
1483
|
-
typeof t != "function" && (t =
|
|
1483
|
+
typeof t != "function" && (t = Yl(t));
|
|
1484
1484
|
for (var e = this._groups, n = e.length, i = new Array(n), r = 0; r < n; ++r)
|
|
1485
|
-
for (var o = e[r], s = o.length, f = i[r] = [],
|
|
1486
|
-
(
|
|
1485
|
+
for (var o = e[r], s = o.length, f = i[r] = [], u, l = 0; l < s; ++l)
|
|
1486
|
+
(u = o[l]) && t.call(u, u.__data__, l, o) && f.push(u);
|
|
1487
1487
|
return new Nn(i, this._parents, this._name, this._id);
|
|
1488
1488
|
}
|
|
1489
1489
|
function sv(t) {
|
|
1490
1490
|
if (t._id !== this._id) throw new Error();
|
|
1491
1491
|
for (var e = this._groups, n = t._groups, i = e.length, r = n.length, o = Math.min(i, r), s = new Array(i), f = 0; f < o; ++f)
|
|
1492
|
-
for (var
|
|
1493
|
-
(S =
|
|
1492
|
+
for (var u = e[f], l = n[f], d = u.length, y = s[f] = new Array(d), S, D = 0; D < d; ++D)
|
|
1493
|
+
(S = u[D] || l[D]) && (y[D] = S);
|
|
1494
1494
|
for (; f < i; ++f)
|
|
1495
1495
|
s[f] = e[f];
|
|
1496
1496
|
return new Nn(s, this._parents, this._name, this._id);
|
|
@@ -1501,16 +1501,16 @@ function fv(t) {
|
|
|
1501
1501
|
return n >= 0 && (e = e.slice(0, n)), !e || e === "start";
|
|
1502
1502
|
});
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function uv(t, e, n) {
|
|
1505
1505
|
var i, r, o = fv(e) ? Qs : Cn;
|
|
1506
1506
|
return function() {
|
|
1507
1507
|
var s = o(this, t), f = s.on;
|
|
1508
1508
|
f !== i && (r = (i = f).copy()).on(e, n), s.on = r;
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function lv(t, e) {
|
|
1512
1512
|
var n = this._id;
|
|
1513
|
-
return arguments.length < 2 ? yn(this.node(), n).on.on(t) : this.each(
|
|
1513
|
+
return arguments.length < 2 ? yn(this.node(), n).on.on(t) : this.each(uv(n, t, e));
|
|
1514
1514
|
}
|
|
1515
1515
|
function cv(t) {
|
|
1516
1516
|
return function() {
|
|
@@ -1526,17 +1526,17 @@ function dv(t) {
|
|
|
1526
1526
|
var e = this._name, n = this._id;
|
|
1527
1527
|
typeof t != "function" && (t = qs(t));
|
|
1528
1528
|
for (var i = this._groups, r = i.length, o = new Array(r), s = 0; s < r; ++s)
|
|
1529
|
-
for (var f = i[s],
|
|
1530
|
-
(d = f[S]) && (y = t.call(d, d.__data__, S, f)) && ("__data__" in d && (y.__data__ = d.__data__),
|
|
1529
|
+
for (var f = i[s], u = f.length, l = o[s] = new Array(u), d, y, S = 0; S < u; ++S)
|
|
1530
|
+
(d = f[S]) && (y = t.call(d, d.__data__, S, f)) && ("__data__" in d && (y.__data__ = d.__data__), l[S] = y, ma(l[S], e, n, S, l, yn(d, n)));
|
|
1531
1531
|
return new Nn(o, this._parents, e, n);
|
|
1532
1532
|
}
|
|
1533
1533
|
function mv(t) {
|
|
1534
1534
|
var e = this._name, n = this._id;
|
|
1535
|
-
typeof t != "function" && (t =
|
|
1535
|
+
typeof t != "function" && (t = ql(t));
|
|
1536
1536
|
for (var i = this._groups, r = i.length, o = [], s = [], f = 0; f < r; ++f)
|
|
1537
|
-
for (var
|
|
1538
|
-
if (d =
|
|
1539
|
-
for (var S = t.call(d, d.__data__, y,
|
|
1537
|
+
for (var u = i[f], l = u.length, d, y = 0; y < l; ++y)
|
|
1538
|
+
if (d = u[y]) {
|
|
1539
|
+
for (var S = t.call(d, d.__data__, y, u), D, q = yn(d, n), Te = 0, we = S.length; Te < we; ++Te)
|
|
1540
1540
|
(D = S[Te]) && ma(D, e, n, Te, S, q);
|
|
1541
1541
|
o.push(S), s.push(d);
|
|
1542
1542
|
}
|
|
@@ -1568,15 +1568,15 @@ function yv(t, e, n) {
|
|
|
1568
1568
|
function xv(t, e, n) {
|
|
1569
1569
|
var i, r, o;
|
|
1570
1570
|
return function() {
|
|
1571
|
-
var s = Qi(this, t), f = n(this),
|
|
1572
|
-
return f == null && (
|
|
1571
|
+
var s = Qi(this, t), f = n(this), u = f + "";
|
|
1572
|
+
return f == null && (u = f = (this.style.removeProperty(t), Qi(this, t))), s === u ? null : s === i && u === r ? o : (r = u, o = e(i = s, f));
|
|
1573
1573
|
};
|
|
1574
1574
|
}
|
|
1575
1575
|
function bv(t, e) {
|
|
1576
1576
|
var n, i, r, o = "style." + e, s = "end." + o, f;
|
|
1577
1577
|
return function() {
|
|
1578
|
-
var
|
|
1579
|
-
(
|
|
1578
|
+
var u = Cn(this, t), l = u.on, d = u.value[o] == null ? f || (f = vc(e)) : void 0;
|
|
1579
|
+
(l !== n || r !== d) && (i = (n = l).copy()).on(s, r = d), u.on = i;
|
|
1580
1580
|
};
|
|
1581
1581
|
}
|
|
1582
1582
|
function _v(t, e, n) {
|
|
@@ -1639,10 +1639,10 @@ function Iv(t) {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
function Lv() {
|
|
1641
1641
|
for (var t = this._name, e = this._id, n = gc(), i = this._groups, r = i.length, o = 0; o < r; ++o)
|
|
1642
|
-
for (var s = i[o], f = s.length,
|
|
1643
|
-
if (
|
|
1644
|
-
var d = yn(
|
|
1645
|
-
ma(
|
|
1642
|
+
for (var s = i[o], f = s.length, u, l = 0; l < f; ++l)
|
|
1643
|
+
if (u = s[l]) {
|
|
1644
|
+
var d = yn(u, e);
|
|
1645
|
+
ma(u, t, n, l, s, {
|
|
1646
1646
|
time: d.time + d.delay + d.duration,
|
|
1647
1647
|
delay: 0,
|
|
1648
1648
|
duration: d.duration,
|
|
@@ -1654,12 +1654,12 @@ function Lv() {
|
|
|
1654
1654
|
function Dv() {
|
|
1655
1655
|
var t, e, n = this, i = n._id, r = n.size();
|
|
1656
1656
|
return new Promise(function(o, s) {
|
|
1657
|
-
var f = { value: s },
|
|
1657
|
+
var f = { value: s }, u = { value: function() {
|
|
1658
1658
|
--r === 0 && o();
|
|
1659
1659
|
} };
|
|
1660
1660
|
n.each(function() {
|
|
1661
|
-
var
|
|
1662
|
-
d !== t && (e = (t = d).copy(), e._.cancel.push(f), e._.interrupt.push(f), e._.end.push(
|
|
1661
|
+
var l = Cn(this, i), d = l.on;
|
|
1662
|
+
d !== t && (e = (t = d).copy(), e._.cancel.push(f), e._.interrupt.push(f), e._.end.push(u)), l.on = e;
|
|
1663
1663
|
}), r === 0 && o();
|
|
1664
1664
|
});
|
|
1665
1665
|
}
|
|
@@ -1687,7 +1687,7 @@ Nn.prototype = {
|
|
|
1687
1687
|
size: zn.size,
|
|
1688
1688
|
empty: zn.empty,
|
|
1689
1689
|
each: zn.each,
|
|
1690
|
-
on:
|
|
1690
|
+
on: lv,
|
|
1691
1691
|
attr: H0,
|
|
1692
1692
|
attrTween: Y0,
|
|
1693
1693
|
style: _v,
|
|
@@ -1732,8 +1732,8 @@ function Bv(t) {
|
|
|
1732
1732
|
var e, n;
|
|
1733
1733
|
t instanceof Nn ? (e = t._id, t = t._name) : (e = gc(), (n = Nv).time = Zs(), t = t == null ? null : t + "");
|
|
1734
1734
|
for (var i = this._groups, r = i.length, o = 0; o < r; ++o)
|
|
1735
|
-
for (var s = i[o], f = s.length,
|
|
1736
|
-
(
|
|
1735
|
+
for (var s = i[o], f = s.length, u, l = 0; l < f; ++l)
|
|
1736
|
+
(u = s[l]) && ma(u, t, e, l, s, n || Gv(u, e));
|
|
1737
1737
|
return new Nn(i, this._parents, t, e);
|
|
1738
1738
|
}
|
|
1739
1739
|
Mr.prototype.interrupt = i0;
|
|
@@ -1760,9 +1760,9 @@ function Uv(t) {
|
|
|
1760
1760
|
});
|
|
1761
1761
|
}), n;
|
|
1762
1762
|
}
|
|
1763
|
-
var Wo = { exports: {} }, Vv = Wo.exports,
|
|
1763
|
+
var Wo = { exports: {} }, Vv = Wo.exports, hl;
|
|
1764
1764
|
function $v() {
|
|
1765
|
-
return
|
|
1765
|
+
return hl || (hl = 1, function(t, e) {
|
|
1766
1766
|
(function(n, i) {
|
|
1767
1767
|
t.exports = i();
|
|
1768
1768
|
})(Vv, function() {
|
|
@@ -1784,15 +1784,15 @@ function $v() {
|
|
|
1784
1784
|
function f(a, h) {
|
|
1785
1785
|
a || s(h);
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function u(a) {
|
|
1788
1788
|
return a ? ": " + a : "";
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1791
|
-
a in h || s("unknown parameter (" + a + ")" +
|
|
1790
|
+
function l(a, h, _) {
|
|
1791
|
+
a in h || s("unknown parameter (" + a + ")" + u(_) + ". possible values: " + Object.keys(h).join());
|
|
1792
1792
|
}
|
|
1793
1793
|
function d(a, h) {
|
|
1794
1794
|
n(a) || s(
|
|
1795
|
-
"invalid parameter type" +
|
|
1795
|
+
"invalid parameter type" + u(h) + ". must be a typed array"
|
|
1796
1796
|
);
|
|
1797
1797
|
}
|
|
1798
1798
|
function y(a, h) {
|
|
@@ -1815,14 +1815,14 @@ function $v() {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
function S(a, h, _) {
|
|
1817
1817
|
y(a, h) || s(
|
|
1818
|
-
"invalid parameter type" +
|
|
1818
|
+
"invalid parameter type" + u(_) + ". expected " + h + ", got " + typeof a
|
|
1819
1819
|
);
|
|
1820
1820
|
}
|
|
1821
1821
|
function D(a, h) {
|
|
1822
|
-
a >= 0 && (a | 0) === a || s("invalid parameter type, (" + a + ")" +
|
|
1822
|
+
a >= 0 && (a | 0) === a || s("invalid parameter type, (" + a + ")" + u(h) + ". must be a nonnegative integer");
|
|
1823
1823
|
}
|
|
1824
1824
|
function q(a, h, _) {
|
|
1825
|
-
h.indexOf(a) < 0 && s("invalid value" +
|
|
1825
|
+
h.indexOf(a) < 0 && s("invalid value" + u(_) + ". must be one of: " + h);
|
|
1826
1826
|
}
|
|
1827
1827
|
var Te = [
|
|
1828
1828
|
"gl",
|
|
@@ -1891,9 +1891,9 @@ function $v() {
|
|
|
1891
1891
|
R[W].lines.push(new Ve(M++, K));
|
|
1892
1892
|
}
|
|
1893
1893
|
return Object.keys(R).forEach(function(re) {
|
|
1894
|
-
var
|
|
1895
|
-
|
|
1896
|
-
|
|
1894
|
+
var le = R[re];
|
|
1895
|
+
le.lines.forEach(function(J) {
|
|
1896
|
+
le.index[J.number] = J;
|
|
1897
1897
|
});
|
|
1898
1898
|
}), R;
|
|
1899
1899
|
}
|
|
@@ -1924,7 +1924,7 @@ function $v() {
|
|
|
1924
1924
|
a.unknown.hasErrors = !0, a.unknown.lines[0].errors.push(_);
|
|
1925
1925
|
});
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function ut(a, h, _, M, W) {
|
|
1928
1928
|
if (!a.getShaderParameter(h, a.COMPILE_STATUS)) {
|
|
1929
1929
|
var R = a.getShaderInfoLog(h), B = M === a.FRAGMENT_SHADER ? "fragment" : "vertex";
|
|
1930
1930
|
De(_, "string", B + " shader source must be a string", W);
|
|
@@ -1933,9 +1933,9 @@ function $v() {
|
|
|
1933
1933
|
var oe = K[ie];
|
|
1934
1934
|
if (!oe.hasErrors)
|
|
1935
1935
|
return;
|
|
1936
|
-
var re = [""],
|
|
1936
|
+
var re = [""], le = [""];
|
|
1937
1937
|
function J(ne, k) {
|
|
1938
|
-
re.push(ne),
|
|
1938
|
+
re.push(ne), le.push(k || "");
|
|
1939
1939
|
}
|
|
1940
1940
|
J("file number " + ie + ": " + oe.name + `
|
|
1941
1941
|
`, "color:red;text-decoration:underline;font-weight:bold"), oe.lines.forEach(function(ne) {
|
|
@@ -1958,7 +1958,7 @@ function $v() {
|
|
|
1958
1958
|
}), J(fe("| ", 6) + r);
|
|
1959
1959
|
} else
|
|
1960
1960
|
J(fe(ne.number, 4) + "| "), J(ne.line + r, "color:red");
|
|
1961
|
-
}), typeof document < "u" && !window.chrome ? (
|
|
1961
|
+
}), typeof document < "u" && !window.chrome ? (le[0] = re.join("%c"), console.log.apply(console, le)) : console.log(re.join(""));
|
|
1962
1962
|
}), f.raise("Error compiling " + B + " shader, " + K[0].name);
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
@@ -2000,13 +2000,13 @@ function $v() {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
function se(a, h, _, M) {
|
|
2002
2002
|
a in h || G(
|
|
2003
|
-
"unknown parameter (" + a + ")" +
|
|
2003
|
+
"unknown parameter (" + a + ")" + u(_) + ". possible values: " + Object.keys(h).join(),
|
|
2004
2004
|
M || ae()
|
|
2005
2005
|
);
|
|
2006
2006
|
}
|
|
2007
2007
|
function De(a, h, _, M) {
|
|
2008
2008
|
y(a, h) || G(
|
|
2009
|
-
"invalid parameter type" +
|
|
2009
|
+
"invalid parameter type" + u(_) + ". expected " + h + ", got " + typeof a,
|
|
2010
2010
|
M || ae()
|
|
2011
2011
|
);
|
|
2012
2012
|
}
|
|
@@ -2024,7 +2024,7 @@ function $v() {
|
|
|
2024
2024
|
"unsupported renderbuffer format for attachment"
|
|
2025
2025
|
);
|
|
2026
2026
|
}
|
|
2027
|
-
var Qe = 33071, Ze = 9728, dt = 9984,
|
|
2027
|
+
var Qe = 33071, Ze = 9728, dt = 9984, lt = 9985, _t = 9986, at = 9987, Vt = 5120, $t = 5121, Yt = 5122, Pn = 5123, Nr = 5124, Gr = 5125, kn = 5126, ei = 32819, xn = 32820, Ei = 33635, Ci = 34042, Bn = 36193, Rt = {};
|
|
2028
2028
|
Rt[Vt] = Rt[$t] = 1, Rt[Yt] = Rt[Pn] = Rt[Bn] = Rt[Ei] = Rt[ei] = Rt[xn] = 2, Rt[Nr] = Rt[Gr] = Rt[kn] = Rt[Ci] = 4;
|
|
2029
2029
|
function ti(a, h) {
|
|
2030
2030
|
return a === xn || a === ei || a === Ei ? 2 : a === Ci ? 4 : Rt[a] * h;
|
|
@@ -2041,7 +2041,7 @@ function $v() {
|
|
|
2041
2041
|
ni(W) && ni(R),
|
|
2042
2042
|
"incompatible wrap mode for texture, both width and height must be power of 2"
|
|
2043
2043
|
), h.mipmask === 1 ? W !== 1 && R !== 1 && f(
|
|
2044
|
-
a.minFilter !== dt && a.minFilter !== _t && a.minFilter !==
|
|
2044
|
+
a.minFilter !== dt && a.minFilter !== _t && a.minFilter !== lt && a.minFilter !== at,
|
|
2045
2045
|
"min filter requires mipmap"
|
|
2046
2046
|
) : (f(
|
|
2047
2047
|
ni(W) && ni(R),
|
|
@@ -2108,15 +2108,15 @@ function $v() {
|
|
|
2108
2108
|
for (var ie = Q.images, oe = 0; oe < 16; ++oe) {
|
|
2109
2109
|
var re = ie[oe];
|
|
2110
2110
|
if (re) {
|
|
2111
|
-
var
|
|
2111
|
+
var le = W >> oe, J = R >> oe;
|
|
2112
2112
|
f(Q.mipmask & 1 << oe, "missing mipmap data"), f(
|
|
2113
|
-
re.width ===
|
|
2113
|
+
re.width === le && re.height === J,
|
|
2114
2114
|
"invalid shape for mip images"
|
|
2115
2115
|
), f(
|
|
2116
2116
|
re.format === a.format && re.internalformat === a.internalformat && re.type === a.type,
|
|
2117
2117
|
"incompatible type for mip image"
|
|
2118
2118
|
), re.compressed || (re.data ? f(
|
|
2119
|
-
re.data.byteLength ===
|
|
2119
|
+
re.data.byteLength === le * J * Math.max(ti(re.type, B), re.unpackAlignment),
|
|
2120
2120
|
"invalid data for image, buffer size is inconsistent with image format"
|
|
2121
2121
|
) : re.element || re.copy);
|
|
2122
2122
|
}
|
|
@@ -2128,7 +2128,7 @@ function $v() {
|
|
|
2128
2128
|
raise: s,
|
|
2129
2129
|
commandRaise: G,
|
|
2130
2130
|
command: Pe,
|
|
2131
|
-
parameter:
|
|
2131
|
+
parameter: l,
|
|
2132
2132
|
commandParameter: se,
|
|
2133
2133
|
constructor: we,
|
|
2134
2134
|
type: S,
|
|
@@ -2136,7 +2136,7 @@ function $v() {
|
|
|
2136
2136
|
isTypedArray: d,
|
|
2137
2137
|
nni: D,
|
|
2138
2138
|
oneOf: q,
|
|
2139
|
-
shaderError:
|
|
2139
|
+
shaderError: ut,
|
|
2140
2140
|
linkError: Ee,
|
|
2141
2141
|
callSite: Ie,
|
|
2142
2142
|
saveCommandRef: ct,
|
|
@@ -2281,7 +2281,7 @@ function $v() {
|
|
|
2281
2281
|
function It(a) {
|
|
2282
2282
|
var h = a || {}, _, M, W, R, B = {}, K = [], Q = [], ie = typeof window > "u" ? 1 : window.devicePixelRatio, oe = !1, re = function(ne) {
|
|
2283
2283
|
ne && m.raise(ne);
|
|
2284
|
-
},
|
|
2284
|
+
}, le = function() {
|
|
2285
2285
|
};
|
|
2286
2286
|
if (typeof h == "string" ? (m(
|
|
2287
2287
|
typeof document < "u",
|
|
@@ -2299,7 +2299,7 @@ function $v() {
|
|
|
2299
2299
|
var J = Li(M || document.body, re, ie);
|
|
2300
2300
|
if (!J)
|
|
2301
2301
|
return null;
|
|
2302
|
-
W = J.canvas,
|
|
2302
|
+
W = J.canvas, le = J.onDestroy;
|
|
2303
2303
|
}
|
|
2304
2304
|
B.premultipliedAlpha === void 0 && (B.premultipliedAlpha = !0), R = Di(W, B);
|
|
2305
2305
|
}
|
|
@@ -2312,8 +2312,8 @@ function $v() {
|
|
|
2312
2312
|
pixelRatio: ie,
|
|
2313
2313
|
profile: oe,
|
|
2314
2314
|
onDone: re,
|
|
2315
|
-
onDestroy:
|
|
2316
|
-
} : (
|
|
2315
|
+
onDestroy: le
|
|
2316
|
+
} : (le(), re("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"), null);
|
|
2317
2317
|
}
|
|
2318
2318
|
function $n(a, h) {
|
|
2319
2319
|
var _ = {};
|
|
@@ -2409,7 +2409,7 @@ function $v() {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
var gt = Fi();
|
|
2411
2411
|
gt.zero = Fi();
|
|
2412
|
-
var
|
|
2412
|
+
var ln = 3408, qr = 3410, Yr = 3411, Zr = 3412, Qr = 3413, ba = 3414, $e = 3415, P = 33901, ve = 33902, ze = 3379, mt = 3386, Mt = 34921, wt = 36347, Ht = 36348, cn = 35661, ai = 35660, rr = 34930, Ot = 36349, Kr = 34076, Jr = 34024, Uc = 7936, Vc = 7937, $c = 7938, Hc = 35724, Wc = 34047, Xc = 36063, jc = 34852, eo = 3553, af = 34067, qc = 34069, Yc = 33984, or = 6408, _a = 5126, sf = 5121, Sa = 36160, Zc = 36053, Qc = 36064, Kc = 16384, Jc = function(a, h) {
|
|
2413
2413
|
var _ = 1;
|
|
2414
2414
|
h.ext_texture_filter_anisotropic && (_ = a.getParameter(Wc));
|
|
2415
2415
|
var M = 1, W = 1;
|
|
@@ -2428,8 +2428,8 @@ function $v() {
|
|
|
2428
2428
|
}
|
|
2429
2429
|
var ie = typeof navigator < "u" && (/MSIE/.test(navigator.userAgent) || /Trident\//.test(navigator.appVersion) || /Edge/.test(navigator.userAgent)), oe = !0;
|
|
2430
2430
|
if (!ie) {
|
|
2431
|
-
var re = a.createTexture(),
|
|
2432
|
-
a.activeTexture(Yc), a.bindTexture(af, re), a.texImage2D(qc, 0, or, 3, 3, 0, or, sf,
|
|
2431
|
+
var re = a.createTexture(), le = gt.allocType(sf, 36);
|
|
2432
|
+
a.activeTexture(Yc), a.bindTexture(af, re), a.texImage2D(qc, 0, or, 3, 3, 0, or, sf, le), gt.freeType(le), a.bindTexture(af, null), a.deleteTexture(re), oe = !a.getError();
|
|
2433
2433
|
}
|
|
2434
2434
|
return {
|
|
2435
2435
|
// drawing buffer bit depth
|
|
@@ -2441,7 +2441,7 @@ function $v() {
|
|
|
2441
2441
|
],
|
|
2442
2442
|
depthBits: a.getParameter(ba),
|
|
2443
2443
|
stencilBits: a.getParameter($e),
|
|
2444
|
-
subpixelBits: a.getParameter(
|
|
2444
|
+
subpixelBits: a.getParameter(ln),
|
|
2445
2445
|
// supported extensions
|
|
2446
2446
|
extensions: Object.keys(h).filter(function(J) {
|
|
2447
2447
|
return !!h[J];
|
|
@@ -2501,7 +2501,7 @@ function $v() {
|
|
|
2501
2501
|
for (var oe = Q[ie], re = 0; re < M; ++re)
|
|
2502
2502
|
W[B++] = oe[re];
|
|
2503
2503
|
}
|
|
2504
|
-
function
|
|
2504
|
+
function uf(a, h, _, M, W) {
|
|
2505
2505
|
for (var R = 1, B = _ + 1; B < h.length; ++B)
|
|
2506
2506
|
R *= h[B];
|
|
2507
2507
|
var K = h[_];
|
|
@@ -2511,7 +2511,7 @@ function $v() {
|
|
|
2511
2511
|
ff(a[B], Q, ie, oe, M, W), W += R;
|
|
2512
2512
|
} else
|
|
2513
2513
|
for (B = 0; B < K; ++B)
|
|
2514
|
-
|
|
2514
|
+
uf(a[B], h, _ + 1, M, W), W += R;
|
|
2515
2515
|
}
|
|
2516
2516
|
function nh(a, h, _, M) {
|
|
2517
2517
|
var W = 1;
|
|
@@ -2534,7 +2534,7 @@ function $v() {
|
|
|
2534
2534
|
ff(a, h[0], h[1], h[2], B, 0);
|
|
2535
2535
|
break;
|
|
2536
2536
|
default:
|
|
2537
|
-
|
|
2537
|
+
uf(a, h, 0, B, 0);
|
|
2538
2538
|
}
|
|
2539
2539
|
return B;
|
|
2540
2540
|
}
|
|
@@ -2554,20 +2554,20 @@ function $v() {
|
|
|
2554
2554
|
"[object Float32Array]": 5126,
|
|
2555
2555
|
"[object Float64Array]": 5121,
|
|
2556
2556
|
"[object ArrayBuffer]": 5121
|
|
2557
|
-
}, rh = 5120, oh = 5122, ah = 5124, sh = 5121, fh = 5123,
|
|
2557
|
+
}, rh = 5120, oh = 5122, ah = 5124, sh = 5121, fh = 5123, uh = 5125, lh = 5126, ch = 5126, si = {
|
|
2558
2558
|
int8: rh,
|
|
2559
2559
|
int16: oh,
|
|
2560
2560
|
int32: ah,
|
|
2561
2561
|
uint8: sh,
|
|
2562
2562
|
uint16: fh,
|
|
2563
|
-
uint32:
|
|
2564
|
-
float:
|
|
2563
|
+
uint32: uh,
|
|
2564
|
+
float: lh,
|
|
2565
2565
|
float32: ch
|
|
2566
2566
|
}, hh = 35048, dh = 35040, no = {
|
|
2567
2567
|
dynamic: hh,
|
|
2568
2568
|
stream: dh,
|
|
2569
2569
|
static: 35044
|
|
2570
|
-
}, wa = to.flatten,
|
|
2570
|
+
}, wa = to.flatten, lf = to.shape, cf = 35044, mh = 35040, Aa = 5121, Ea = 5126, Wn = [];
|
|
2571
2571
|
Wn[5120] = 1, Wn[5122] = 2, Wn[5124] = 4, Wn[5121] = 1, Wn[5123] = 2, Wn[5125] = 4, Wn[5126] = 4;
|
|
2572
2572
|
function io(a) {
|
|
2573
2573
|
return Ta[Object.prototype.toString.call(a)] | 0;
|
|
@@ -2589,7 +2589,7 @@ function $v() {
|
|
|
2589
2589
|
B.prototype.bind = function() {
|
|
2590
2590
|
a.bindBuffer(this.type, this.buffer);
|
|
2591
2591
|
}, B.prototype.destroy = function() {
|
|
2592
|
-
|
|
2592
|
+
le(this);
|
|
2593
2593
|
};
|
|
2594
2594
|
var K = [];
|
|
2595
2595
|
function Q(k, N) {
|
|
@@ -2608,7 +2608,7 @@ function $v() {
|
|
|
2608
2608
|
if (k.dtype = xe || Ea, N.length > 0) {
|
|
2609
2609
|
var Le;
|
|
2610
2610
|
if (Array.isArray(N[0])) {
|
|
2611
|
-
me =
|
|
2611
|
+
me = lf(N);
|
|
2612
2612
|
for (var X = 1, H = 1; H < me.length; ++H)
|
|
2613
2613
|
X *= me[H];
|
|
2614
2614
|
k.dimension = X, Le = wa(N, me, k.dtype), oe(k, Le, te), ge ? k.persistentData = Le : gt.freeType(Le);
|
|
@@ -2640,7 +2640,7 @@ function $v() {
|
|
|
2640
2640
|
), oe(k, pe, te), ge ? k.persistentData = pe : gt.freeType(pe);
|
|
2641
2641
|
} else N instanceof ArrayBuffer ? (k.dtype = Aa, k.dimension = Z, oe(k, N, te), ge && (k.persistentData = new Uint8Array(new Uint8Array(N)))) : m.raise("invalid buffer data");
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2643
|
+
function le(k) {
|
|
2644
2644
|
h.bufferCount--, M(k);
|
|
2645
2645
|
var N = k.buffer;
|
|
2646
2646
|
m(N, "buffer must not be deleted already"), a.deleteBuffer(N), k.buffer = null, delete R[k.id];
|
|
@@ -2676,7 +2676,7 @@ function $v() {
|
|
|
2676
2676
|
var ee = gt.allocType(Z.dtype, X.length);
|
|
2677
2677
|
hf(ee, X), me(ee, Se), gt.freeType(ee);
|
|
2678
2678
|
} else if (Array.isArray(X[0]) || n(X[0])) {
|
|
2679
|
-
ce =
|
|
2679
|
+
ce = lf(X);
|
|
2680
2680
|
var he = wa(X, ce, Z.dtype);
|
|
2681
2681
|
me(he, Se), gt.freeType(he);
|
|
2682
2682
|
} else
|
|
@@ -2700,7 +2700,7 @@ function $v() {
|
|
|
2700
2700
|
return ge;
|
|
2701
2701
|
}
|
|
2702
2702
|
return te || ge(k), ge._reglType = "buffer", ge._buffer = Z, ge.subdata = Le, _.profile && (ge.stats = Z.stats), ge.destroy = function() {
|
|
2703
|
-
|
|
2703
|
+
le(Z);
|
|
2704
2704
|
}, ge;
|
|
2705
2705
|
}
|
|
2706
2706
|
function ne() {
|
|
@@ -2722,7 +2722,7 @@ function $v() {
|
|
|
2722
2722
|
createStream: Q,
|
|
2723
2723
|
destroyStream: ie,
|
|
2724
2724
|
clear: function() {
|
|
2725
|
-
Jt(R).forEach(
|
|
2725
|
+
Jt(R).forEach(le), K.forEach(le);
|
|
2726
2726
|
},
|
|
2727
2727
|
getBuffer: function(k) {
|
|
2728
2728
|
return k && k._buffer instanceof B ? k._buffer : null;
|
|
@@ -2815,7 +2815,7 @@ function $v() {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
ne.primType = H;
|
|
2817
2817
|
}
|
|
2818
|
-
function
|
|
2818
|
+
function le(ne) {
|
|
2819
2819
|
M.elementsCount--, m(ne.buffer !== null, "must not double destroy elements"), delete W[ne.id], ne.buffer.destroy(), ne.buffer = null;
|
|
2820
2820
|
}
|
|
2821
2821
|
function J(ne, k) {
|
|
@@ -2861,7 +2861,7 @@ function $v() {
|
|
|
2861
2861
|
return xe(ne), xe._reglType = "elements", xe._elements = te, xe.subdata = function(Z, ge) {
|
|
2862
2862
|
return N.subdata(Z, ge), xe;
|
|
2863
2863
|
}, xe.destroy = function() {
|
|
2864
|
-
|
|
2864
|
+
le(te);
|
|
2865
2865
|
}, xe;
|
|
2866
2866
|
}
|
|
2867
2867
|
return {
|
|
@@ -2872,7 +2872,7 @@ function $v() {
|
|
|
2872
2872
|
return typeof ne == "function" && ne._elements instanceof K ? ne._elements : null;
|
|
2873
2873
|
},
|
|
2874
2874
|
clear: function() {
|
|
2875
|
-
Jt(W).forEach(
|
|
2875
|
+
Jt(W).forEach(le);
|
|
2876
2876
|
}
|
|
2877
2877
|
};
|
|
2878
2878
|
}
|
|
@@ -2902,19 +2902,19 @@ function $v() {
|
|
|
2902
2902
|
}
|
|
2903
2903
|
var yf = function(a) {
|
|
2904
2904
|
return !(a & a - 1) && !!a;
|
|
2905
|
-
}, Ih = 34467, _n = 3553, Pa = 34067, ro = 34069,
|
|
2905
|
+
}, Ih = 34467, _n = 3553, Pa = 34067, ro = 34069, ui = 6408, ka = 6406, oo = 6407, sr = 6409, ao = 6410, xf = 32854, Ia = 32855, bf = 36194, Lh = 32819, Dh = 32820, Fh = 33635, zh = 34042, La = 6402, so = 34041, Da = 35904, Fa = 35906, Mi = 36193, za = 33776, Ra = 33777, Ma = 33778, Oa = 33779, _f = 35986, Sf = 35987, Tf = 34798, wf = 35840, Af = 35841, Ef = 35842, Cf = 35843, Pf = 36196, Oi = 5121, Na = 5123, Ga = 5125, fr = 5126, Rh = 10242, Mh = 10243, Oh = 10497, Ba = 33071, Nh = 33648, Gh = 10240, Bh = 10241, Ua = 9728, Uh = 9729, Va = 9984, kf = 9985, If = 9986, $a = 9987, Vh = 33170, fo = 4352, $h = 4353, Hh = 4354, Wh = 34046, Xh = 3317, jh = 37440, qh = 37441, Yh = 37443, Lf = 37444, ur = 33984, Zh = [
|
|
2906
2906
|
Va,
|
|
2907
2907
|
If,
|
|
2908
2908
|
kf,
|
|
2909
2909
|
$a
|
|
2910
|
-
],
|
|
2910
|
+
], uo = [
|
|
2911
2911
|
0,
|
|
2912
2912
|
sr,
|
|
2913
2913
|
ao,
|
|
2914
2914
|
oo,
|
|
2915
|
-
|
|
2915
|
+
ui
|
|
2916
2916
|
], an = {};
|
|
2917
|
-
an[sr] = an[ka] = an[La] = 1, an[so] = an[ao] = 2, an[oo] = an[Da] = 3, an[
|
|
2917
|
+
an[sr] = an[ka] = an[La] = 1, an[so] = an[ao] = 2, an[oo] = an[Da] = 3, an[ui] = an[Fa] = 4;
|
|
2918
2918
|
function Ni(a) {
|
|
2919
2919
|
return "[object " + a + "]";
|
|
2920
2920
|
}
|
|
@@ -2938,31 +2938,31 @@ function $v() {
|
|
|
2938
2938
|
var h = a.length;
|
|
2939
2939
|
return !(h === 0 || !pt(a[0]));
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function li(a) {
|
|
2942
2942
|
return Object.prototype.toString.call(a);
|
|
2943
2943
|
}
|
|
2944
2944
|
function Bf(a) {
|
|
2945
|
-
return
|
|
2945
|
+
return li(a) === Df;
|
|
2946
2946
|
}
|
|
2947
2947
|
function Uf(a) {
|
|
2948
|
-
return
|
|
2948
|
+
return li(a) === Ff;
|
|
2949
2949
|
}
|
|
2950
2950
|
function Kh(a) {
|
|
2951
|
-
return
|
|
2951
|
+
return li(a) === zf;
|
|
2952
2952
|
}
|
|
2953
2953
|
function Jh(a) {
|
|
2954
|
-
return
|
|
2954
|
+
return li(a) === Rf;
|
|
2955
2955
|
}
|
|
2956
2956
|
function ed(a) {
|
|
2957
|
-
return
|
|
2957
|
+
return li(a) === Mf;
|
|
2958
2958
|
}
|
|
2959
2959
|
function td(a) {
|
|
2960
|
-
return
|
|
2960
|
+
return li(a) === Of;
|
|
2961
2961
|
}
|
|
2962
2962
|
function Ha(a) {
|
|
2963
2963
|
if (!a)
|
|
2964
2964
|
return !1;
|
|
2965
|
-
var h =
|
|
2965
|
+
var h = li(a);
|
|
2966
2966
|
return Qh.indexOf(h) >= 0 ? !0 : Nf(a) || Gf(a) || hn(a);
|
|
2967
2967
|
}
|
|
2968
2968
|
function Vf(a) {
|
|
@@ -2995,13 +2995,13 @@ function $v() {
|
|
|
2995
2995
|
a.type === Mi ? (a.data = gf(h), gt.freeType(h)) : a.data = h;
|
|
2996
2996
|
}
|
|
2997
2997
|
function id(a, h, _, M, W, R) {
|
|
2998
|
-
for (var B = a.width, K = a.height, Q = a.channels, ie = B * K * Q, oe = $f(a, ie), re = 0,
|
|
2998
|
+
for (var B = a.width, K = a.height, Q = a.channels, ie = B * K * Q, oe = $f(a, ie), re = 0, le = 0; le < K; ++le)
|
|
2999
2999
|
for (var J = 0; J < B; ++J)
|
|
3000
3000
|
for (var ne = 0; ne < Q; ++ne)
|
|
3001
|
-
oe[re++] = h[_ * J + M *
|
|
3001
|
+
oe[re++] = h[_ * J + M * le + W * ne + R];
|
|
3002
3002
|
Hf(a, oe);
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function lo(a, h, _, M, W, R) {
|
|
3005
3005
|
var B;
|
|
3006
3006
|
if (typeof Nt[a] < "u" ? B = Nt[a] : B = an[a] * Gi[h], R && (B *= 6), W) {
|
|
3007
3007
|
for (var K = 0, Q = _; Q >= 1; )
|
|
@@ -3032,7 +3032,7 @@ function $v() {
|
|
|
3032
3032
|
}, ie), re = {
|
|
3033
3033
|
none: 0,
|
|
3034
3034
|
browser: Lf
|
|
3035
|
-
},
|
|
3035
|
+
}, le = {
|
|
3036
3036
|
uint8: Oi,
|
|
3037
3037
|
rgba4: Lh,
|
|
3038
3038
|
rgb565: Fh,
|
|
@@ -3042,15 +3042,15 @@ function $v() {
|
|
|
3042
3042
|
luminance: sr,
|
|
3043
3043
|
"luminance alpha": ao,
|
|
3044
3044
|
rgb: oo,
|
|
3045
|
-
rgba:
|
|
3045
|
+
rgba: ui,
|
|
3046
3046
|
rgba4: xf,
|
|
3047
3047
|
"rgb5 a1": Ia,
|
|
3048
3048
|
rgb565: bf
|
|
3049
3049
|
}, ne = {};
|
|
3050
|
-
h.ext_srgb && (J.srgb = Da, J.srgba = Fa), h.oes_texture_float && (
|
|
3050
|
+
h.ext_srgb && (J.srgb = Da, J.srgba = Fa), h.oes_texture_float && (le.float32 = le.float = fr), h.oes_texture_half_float && (le.float16 = le["half float"] = Mi), h.webgl_depth_texture && (i(J, {
|
|
3051
3051
|
depth: La,
|
|
3052
3052
|
"depth stencil": so
|
|
3053
|
-
}), i(
|
|
3053
|
+
}), i(le, {
|
|
3054
3054
|
uint16: Na,
|
|
3055
3055
|
uint32: Ga,
|
|
3056
3056
|
"depth stencil": zh
|
|
@@ -3084,8 +3084,8 @@ function $v() {
|
|
|
3084
3084
|
te[O] = x;
|
|
3085
3085
|
});
|
|
3086
3086
|
var xe = [];
|
|
3087
|
-
Object.keys(
|
|
3088
|
-
var O =
|
|
3087
|
+
Object.keys(le).forEach(function(x) {
|
|
3088
|
+
var O = le[x];
|
|
3089
3089
|
xe[O] = x;
|
|
3090
3090
|
});
|
|
3091
3091
|
var Z = [];
|
|
@@ -3105,10 +3105,10 @@ function $v() {
|
|
|
3105
3105
|
});
|
|
3106
3106
|
var Le = N.reduce(function(x, O) {
|
|
3107
3107
|
var z = J[O];
|
|
3108
|
-
return z === sr || z === ka || z === sr || z === ao || z === La || z === so || h.ext_srgb && (z === Da || z === Fa) ? x[z] = z : z === Ia || O.indexOf("rgba") >= 0 ? x[z] =
|
|
3108
|
+
return z === sr || z === ka || z === sr || z === ao || z === La || z === so || h.ext_srgb && (z === Da || z === Fa) ? x[z] = z : z === Ia || O.indexOf("rgba") >= 0 ? x[z] = ui : x[z] = oo, x;
|
|
3109
3109
|
}, {});
|
|
3110
3110
|
function X() {
|
|
3111
|
-
this.internalformat =
|
|
3111
|
+
this.internalformat = ui, this.format = ui, this.type = Oi, this.compressed = !1, this.premultiplyAlpha = !1, this.flipY = !1, this.unpackAlignment = 1, this.colorSpace = Lf, this.width = 0, this.height = 0, this.channels = 0;
|
|
3112
3112
|
}
|
|
3113
3113
|
function H(x, O) {
|
|
3114
3114
|
x.internalformat = O.internalformat, x.format = O.format, x.type = O.type, x.compressed = O.compressed, x.premultiplyAlpha = O.premultiplyAlpha, x.flipY = O.flipY, x.unpackAlignment = O.unpackAlignment, x.colorSpace = O.colorSpace, x.width = O.width, x.height = O.height, x.channels = O.channels;
|
|
@@ -3144,9 +3144,9 @@ function $v() {
|
|
|
3144
3144
|
"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."
|
|
3145
3145
|
), m.parameter(
|
|
3146
3146
|
z,
|
|
3147
|
-
|
|
3147
|
+
le,
|
|
3148
3148
|
"invalid texture type"
|
|
3149
|
-
), x.type =
|
|
3149
|
+
), x.type = le[z];
|
|
3150
3150
|
}
|
|
3151
3151
|
var _e = x.width, Ke = x.height, p = x.channels, c = !1;
|
|
3152
3152
|
"shape" in O ? (m(
|
|
@@ -3165,9 +3165,9 @@ function $v() {
|
|
|
3165
3165
|
"invalid texture format"
|
|
3166
3166
|
);
|
|
3167
3167
|
var I = x.internalformat = J[C];
|
|
3168
|
-
x.format = Le[I], C in
|
|
3168
|
+
x.format = Le[I], C in le && ("type" in O || (x.type = le[C])), C in ne && (x.compressed = !0), T = !0;
|
|
3169
3169
|
}
|
|
3170
|
-
!c && T ? x.channels = an[x.format] : c && !T ? x.channels !==
|
|
3170
|
+
!c && T ? x.channels = an[x.format] : c && !T ? x.channels !== uo[x.format] && (x.format = x.internalformat = uo[x.channels]) : T && c && m(
|
|
3171
3171
|
x.channels === an[x.format],
|
|
3172
3172
|
"number of channels inconsistent with specified format"
|
|
3173
3173
|
);
|
|
@@ -3201,7 +3201,7 @@ function $v() {
|
|
|
3201
3201
|
var p = z.data;
|
|
3202
3202
|
!Array.isArray(p) && x.type === Oi && (x.type = Vf(p));
|
|
3203
3203
|
var c = z.shape, T = z.stride, C, I, A, w, E, v;
|
|
3204
|
-
c.length === 3 ? (A = c[2], v = T[2]) : (m(c.length === 2, "invalid ndarray pixel data, must be 2 or 3D"), A = 1, v = 1), C = c[0], I = c[1], w = T[0], E = T[1], x.alignment = 1, x.width = C, x.height = I, x.channels = A, x.format = x.internalformat =
|
|
3204
|
+
c.length === 3 ? (A = c[2], v = T[2]) : (m(c.length === 2, "invalid ndarray pixel data, must be 2 or 3D"), A = 1, v = 1), C = c[0], I = c[1], w = T[0], E = T[1], x.alignment = 1, x.width = C, x.height = I, x.channels = A, x.format = x.internalformat = uo[A], x.needsFree = !0, id(x, p, w, E, v, z.offset);
|
|
3205
3205
|
} else if (Bf(z) || Uf(z) || Kh(z))
|
|
3206
3206
|
Bf(z) || Uf(z) ? x.element = z : x.element = z.canvas, x.width = x.element.width, x.height = x.element.height, x.channels = 4;
|
|
3207
3207
|
else if (Jh(z))
|
|
@@ -3215,8 +3215,8 @@ function $v() {
|
|
|
3215
3215
|
pt(z[0][0]) ? F = F || z[0][0].length : F = F || 1;
|
|
3216
3216
|
for (var L = to.shape(z), $ = 1, j = 0; j < L.length; ++j)
|
|
3217
3217
|
$ *= L[j];
|
|
3218
|
-
var
|
|
3219
|
-
to.flatten(z, L, "",
|
|
3218
|
+
var ue = $f(x, $);
|
|
3219
|
+
to.flatten(z, L, "", ue), Hf(x, ue), x.alignment = 1, x.width = b, x.height = g, x.channels = F, x.format = x.internalformat = uo[F], x.needsFree = !0;
|
|
3220
3220
|
}
|
|
3221
3221
|
x.type === fr ? m(
|
|
3222
3222
|
_.extensions.indexOf("oes_texture_float") >= 0,
|
|
@@ -3389,10 +3389,10 @@ function $v() {
|
|
|
3389
3389
|
return null;
|
|
3390
3390
|
});
|
|
3391
3391
|
function Ye(x) {
|
|
3392
|
-
X.call(this), this.mipmask = 0, this.internalformat =
|
|
3392
|
+
X.call(this), this.mipmask = 0, this.internalformat = ui, this.id = Ct++, this.refCount = 1, this.target = x, this.texture = a.createTexture(), this.unit = -1, this.bindCount = 0, this.texInfo = new ht(), B.profile && (this.stats = { size: 0 });
|
|
3393
3393
|
}
|
|
3394
3394
|
function Bt(x) {
|
|
3395
|
-
a.activeTexture(
|
|
3395
|
+
a.activeTexture(ur), a.bindTexture(x.target, x.texture);
|
|
3396
3396
|
}
|
|
3397
3397
|
function ot() {
|
|
3398
3398
|
var x = xt[0];
|
|
@@ -3402,7 +3402,7 @@ function $v() {
|
|
|
3402
3402
|
var O = x.texture;
|
|
3403
3403
|
m(O, "must not double destroy texture");
|
|
3404
3404
|
var z = x.unit, _e = x.target;
|
|
3405
|
-
z >= 0 && (a.activeTexture(
|
|
3405
|
+
z >= 0 && (a.activeTexture(ur + z), a.bindTexture(_e, null), xt[z] = null), a.deleteTexture(O), x.texture = null, x.params = null, x.pixels = null, x.refCount = 0, delete Ft[x.id], R.textureCount--;
|
|
3406
3406
|
}
|
|
3407
3407
|
i(Ye.prototype, {
|
|
3408
3408
|
bind: function() {
|
|
@@ -3420,7 +3420,7 @@ function $v() {
|
|
|
3420
3420
|
xt[z] = x, O = z;
|
|
3421
3421
|
break;
|
|
3422
3422
|
}
|
|
3423
|
-
O >= Gt && m.raise("insufficient number of texture units"), B.profile && R.maxTextureUnits < O + 1 && (R.maxTextureUnits = O + 1), x.unit = O, a.activeTexture(
|
|
3423
|
+
O >= Gt && m.raise("insufficient number of texture units"), B.profile && R.maxTextureUnits < O + 1 && (R.maxTextureUnits = O + 1), x.unit = O, a.activeTexture(ur + O), a.bindTexture(x.target, x.texture);
|
|
3424
3424
|
}
|
|
3425
3425
|
return O;
|
|
3426
3426
|
},
|
|
@@ -3438,7 +3438,7 @@ function $v() {
|
|
|
3438
3438
|
var C = z.texInfo;
|
|
3439
3439
|
ht.call(C);
|
|
3440
3440
|
var I = tt();
|
|
3441
|
-
return typeof c == "number" ? typeof T == "number" ? We(I, c | 0, T | 0) : We(I, c | 0, c | 0) : c ? (m.type(c, "object", "invalid arguments to regl.texture"), Tt(C, c), Je(I, c)) : We(I, 1, 1), C.genMipmaps && (I.mipmask = (I.width << 1) - 1), z.mipmask = I.mipmask, H(z, I), m.texture2D(C, I, _), z.internalformat = I.internalformat, _e.width = I.width, _e.height = I.height, Bt(z), vt(I, _n), Et(C, _n), ot(), At(I), B.profile && (z.stats.size =
|
|
3441
|
+
return typeof c == "number" ? typeof T == "number" ? We(I, c | 0, T | 0) : We(I, c | 0, c | 0) : c ? (m.type(c, "object", "invalid arguments to regl.texture"), Tt(C, c), Je(I, c)) : We(I, 1, 1), C.genMipmaps && (I.mipmask = (I.width << 1) - 1), z.mipmask = I.mipmask, H(z, I), m.texture2D(C, I, _), z.internalformat = I.internalformat, _e.width = I.width, _e.height = I.height, Bt(z), vt(I, _n), Et(C, _n), ot(), At(I), B.profile && (z.stats.size = lo(
|
|
3442
3442
|
z.internalformat,
|
|
3443
3443
|
z.type,
|
|
3444
3444
|
I.width,
|
|
@@ -3484,7 +3484,7 @@ function $v() {
|
|
|
3484
3484
|
null
|
|
3485
3485
|
);
|
|
3486
3486
|
}
|
|
3487
|
-
return ot(), B.profile && (z.stats.size =
|
|
3487
|
+
return ot(), B.profile && (z.stats.size = lo(
|
|
3488
3488
|
z.internalformat,
|
|
3489
3489
|
z.type,
|
|
3490
3490
|
C,
|
|
@@ -3513,15 +3513,15 @@ function $v() {
|
|
|
3513
3513
|
if (E)
|
|
3514
3514
|
Je(T[0], w), Je(T[1], E), Je(T[2], v), Je(T[3], b), Je(T[4], g), Je(T[5], F);
|
|
3515
3515
|
else if (Tt($, w), Se(c, w), "faces" in w) {
|
|
3516
|
-
var
|
|
3516
|
+
var ue = w.faces;
|
|
3517
3517
|
for (m(
|
|
3518
|
-
Array.isArray(
|
|
3518
|
+
Array.isArray(ue) && ue.length === 6,
|
|
3519
3519
|
"cube faces must be a length 6 array"
|
|
3520
3520
|
), L = 0; L < 6; ++L)
|
|
3521
3521
|
m(
|
|
3522
|
-
typeof
|
|
3522
|
+
typeof ue[L] == "object" && !!ue[L],
|
|
3523
3523
|
"invalid input for cube map face"
|
|
3524
|
-
), H(T[L], c), Je(T[L],
|
|
3524
|
+
), H(T[L], c), Je(T[L], ue[L]);
|
|
3525
3525
|
} else
|
|
3526
3526
|
for (L = 0; L < 6; ++L)
|
|
3527
3527
|
Je(T[L], w);
|
|
@@ -3531,7 +3531,7 @@ function $v() {
|
|
|
3531
3531
|
_.npotTextureCube || m(yf(c.width) && yf(c.height), "your browser does not support non power or two texture dimensions");
|
|
3532
3532
|
}), $.genMipmaps ? c.mipmask = (T[0].width << 1) - 1 : c.mipmask = T[0].mipmask, m.textureCube(c, $, T, _), c.internalformat = T[0].internalformat, C.width = T[0].width, C.height = T[0].height, Bt(c), L = 0; L < 6; ++L)
|
|
3533
3533
|
vt(T[L], ro + L);
|
|
3534
|
-
for (Et($, Pa), ot(), B.profile && (c.stats.size =
|
|
3534
|
+
for (Et($, Pa), ot(), B.profile && (c.stats.size = lo(
|
|
3535
3535
|
c.internalformat,
|
|
3536
3536
|
c.type,
|
|
3537
3537
|
C.width,
|
|
@@ -3576,7 +3576,7 @@ function $v() {
|
|
|
3576
3576
|
c.type,
|
|
3577
3577
|
null
|
|
3578
3578
|
);
|
|
3579
|
-
return ot(), B.profile && (c.stats.size =
|
|
3579
|
+
return ot(), B.profile && (c.stats.size = lo(
|
|
3580
3580
|
c.internalformat,
|
|
3581
3581
|
c.type,
|
|
3582
3582
|
C.width,
|
|
@@ -3592,7 +3592,7 @@ function $v() {
|
|
|
3592
3592
|
}
|
|
3593
3593
|
function bt() {
|
|
3594
3594
|
for (var x = 0; x < Gt; ++x)
|
|
3595
|
-
a.activeTexture(
|
|
3595
|
+
a.activeTexture(ur + x), a.bindTexture(_n, null), xt[x] = null;
|
|
3596
3596
|
Jt(Ft).forEach(Fe), R.cubeCount = 0, R.textureCount = 0;
|
|
3597
3597
|
}
|
|
3598
3598
|
B.profile && (R.getTotalTextureSize = function() {
|
|
@@ -3641,7 +3641,7 @@ function $v() {
|
|
|
3641
3641
|
function gi() {
|
|
3642
3642
|
for (var x = 0; x < Gt; ++x) {
|
|
3643
3643
|
var O = xt[x];
|
|
3644
|
-
O && (O.bindCount = 0, O.unit = -1, xt[x] = null), a.activeTexture(
|
|
3644
|
+
O && (O.bindCount = 0, O.unit = -1, xt[x] = null), a.activeTexture(ur + x), a.bindTexture(_n, null), a.bindTexture(Pa, null);
|
|
3645
3645
|
}
|
|
3646
3646
|
}
|
|
3647
3647
|
return {
|
|
@@ -3657,7 +3657,7 @@ function $v() {
|
|
|
3657
3657
|
}
|
|
3658
3658
|
var jn = 36161, co = 32854, Wf = 32855, Xf = 36194, jf = 33189, qf = 36168, Yf = 34041, Zf = 35907, Qf = 34836, Kf = 34842, Jf = 34843, dn = [];
|
|
3659
3659
|
dn[co] = 2, dn[Wf] = 2, dn[Xf] = 2, dn[jf] = 2, dn[qf] = 1, dn[Yf] = 4, dn[Zf] = 4, dn[Qf] = 16, dn[Kf] = 8, dn[Jf] = 6;
|
|
3660
|
-
function
|
|
3660
|
+
function eu(a, h, _) {
|
|
3661
3661
|
return dn[a] * h * _;
|
|
3662
3662
|
}
|
|
3663
3663
|
var od = function(a, h, _, M, W) {
|
|
@@ -3714,7 +3714,7 @@ function $v() {
|
|
|
3714
3714
|
return N.width = k.width = ge, N.height = k.height = me, k.format = Le, a.bindRenderbuffer(jn, k.renderbuffer), a.renderbufferStorage(jn, Le, ge, me), m(
|
|
3715
3715
|
a.getError() === 0,
|
|
3716
3716
|
"invalid render buffer format"
|
|
3717
|
-
), W.profile && (k.stats.size =
|
|
3717
|
+
), W.profile && (k.stats.size = eu(k.format, k.width, k.height)), N.format = B[k.format], N;
|
|
3718
3718
|
}
|
|
3719
3719
|
function te(xe, Z) {
|
|
3720
3720
|
var ge = xe | 0, me = Z | 0 || ge;
|
|
@@ -3724,7 +3724,7 @@ function $v() {
|
|
|
3724
3724
|
), N.width = k.width = ge, N.height = k.height = me, a.bindRenderbuffer(jn, k.renderbuffer), a.renderbufferStorage(jn, k.format, ge, me), m(
|
|
3725
3725
|
a.getError() === 0,
|
|
3726
3726
|
"invalid render buffer format"
|
|
3727
|
-
), W.profile && (k.stats.size =
|
|
3727
|
+
), W.profile && (k.stats.size = eu(
|
|
3728
3728
|
k.format,
|
|
3729
3729
|
k.width,
|
|
3730
3730
|
k.height
|
|
@@ -3740,7 +3740,7 @@ function $v() {
|
|
|
3740
3740
|
J += Q[ne].stats.size;
|
|
3741
3741
|
}), J;
|
|
3742
3742
|
});
|
|
3743
|
-
function
|
|
3743
|
+
function le() {
|
|
3744
3744
|
Jt(Q).forEach(function(J) {
|
|
3745
3745
|
J.renderbuffer = a.createRenderbuffer(), a.bindRenderbuffer(jn, J.renderbuffer), a.renderbufferStorage(jn, J.format, J.width, J.height);
|
|
3746
3746
|
}), a.bindRenderbuffer(jn, null);
|
|
@@ -3750,16 +3750,16 @@ function $v() {
|
|
|
3750
3750
|
clear: function() {
|
|
3751
3751
|
Jt(Q).forEach(oe);
|
|
3752
3752
|
},
|
|
3753
|
-
restore:
|
|
3753
|
+
restore: le
|
|
3754
3754
|
};
|
|
3755
|
-
}, Ln = 36160, Wa = 36161, ci = 3553, ho = 34069,
|
|
3756
|
-
|
|
3757
|
-
|
|
3755
|
+
}, Ln = 36160, Wa = 36161, ci = 3553, ho = 34069, tu = 36064, nu = 36096, iu = 36128, ru = 33306, ou = 36053, ad = 36054, sd = 36055, fd = 36057, ud = 36061, ld = 36193, cd = 5121, hd = 5126, au = 6407, su = 6408, dd = 6402, md = [
|
|
3756
|
+
au,
|
|
3757
|
+
su
|
|
3758
3758
|
], Xa = [];
|
|
3759
|
-
Xa[
|
|
3759
|
+
Xa[su] = 4, Xa[au] = 3;
|
|
3760
3760
|
var mo = [];
|
|
3761
|
-
mo[cd] = 1, mo[hd] = 4, mo[
|
|
3762
|
-
var pd = 32854, vd = 32855, gd = 36194, yd = 33189, xd = 36168,
|
|
3761
|
+
mo[cd] = 1, mo[hd] = 4, mo[ld] = 2;
|
|
3762
|
+
var pd = 32854, vd = 32855, gd = 36194, yd = 33189, xd = 36168, fu = 34041, bd = 35907, _d = 34836, Sd = 34842, Td = 34843, wd = [
|
|
3763
3763
|
pd,
|
|
3764
3764
|
vd,
|
|
3765
3765
|
gd,
|
|
@@ -3768,7 +3768,7 @@ function $v() {
|
|
|
3768
3768
|
Td,
|
|
3769
3769
|
_d
|
|
3770
3770
|
], Bi = {};
|
|
3771
|
-
Bi[
|
|
3771
|
+
Bi[ou] = "complete", Bi[ad] = "incomplete attachment", Bi[fd] = "incomplete dimensions", Bi[sd] = "incomplete, missing attachment", Bi[ud] = "unsupported";
|
|
3772
3772
|
function Ad(a, h, _, M, W, R) {
|
|
3773
3773
|
var B = {
|
|
3774
3774
|
cur: null,
|
|
@@ -3787,7 +3787,7 @@ function $v() {
|
|
|
3787
3787
|
function re(ee) {
|
|
3788
3788
|
ee && (ee.texture && ee.texture._texture.decRef(), ee.renderbuffer && ee.renderbuffer._renderbuffer.decRef());
|
|
3789
3789
|
}
|
|
3790
|
-
function
|
|
3790
|
+
function le(ee, he, de) {
|
|
3791
3791
|
if (ee)
|
|
3792
3792
|
if (ee.texture) {
|
|
3793
3793
|
var He = ee.texture._texture, Ue = Math.max(1, He.width), pe = Math.max(1, He.height);
|
|
@@ -3866,36 +3866,36 @@ function $v() {
|
|
|
3866
3866
|
a.bindFramebuffer(Ln, ee.framebuffer);
|
|
3867
3867
|
var de = ee.colorAttachments;
|
|
3868
3868
|
for (he = 0; he < de.length; ++he)
|
|
3869
|
-
J(
|
|
3869
|
+
J(tu + he, de[he]);
|
|
3870
3870
|
for (he = de.length; he < _.maxColorAttachments; ++he)
|
|
3871
3871
|
a.framebufferTexture2D(
|
|
3872
3872
|
Ln,
|
|
3873
|
-
|
|
3873
|
+
tu + he,
|
|
3874
3874
|
ci,
|
|
3875
3875
|
null,
|
|
3876
3876
|
0
|
|
3877
3877
|
);
|
|
3878
3878
|
a.framebufferTexture2D(
|
|
3879
3879
|
Ln,
|
|
3880
|
-
|
|
3880
|
+
ru,
|
|
3881
3881
|
ci,
|
|
3882
3882
|
null,
|
|
3883
3883
|
0
|
|
3884
3884
|
), a.framebufferTexture2D(
|
|
3885
3885
|
Ln,
|
|
3886
|
-
|
|
3886
|
+
nu,
|
|
3887
3887
|
ci,
|
|
3888
3888
|
null,
|
|
3889
3889
|
0
|
|
3890
3890
|
), a.framebufferTexture2D(
|
|
3891
3891
|
Ln,
|
|
3892
|
-
|
|
3892
|
+
iu,
|
|
3893
3893
|
ci,
|
|
3894
3894
|
null,
|
|
3895
3895
|
0
|
|
3896
|
-
), J(
|
|
3896
|
+
), J(nu, ee.depthAttachment), J(iu, ee.stencilAttachment), J(ru, ee.depthStencilAttachment);
|
|
3897
3897
|
var He = a.checkFramebufferStatus(Ln);
|
|
3898
|
-
!a.isContextLost() && He !==
|
|
3898
|
+
!a.isContextLost() && He !== ou && m.raise("framebuffer configuration not supported, status = " + Bi[He]), a.bindFramebuffer(Ln, B.next ? B.next.framebuffer : null), B.cur = B.next, a.getError();
|
|
3899
3899
|
}
|
|
3900
3900
|
function H(ee, he) {
|
|
3901
3901
|
var de = new ge();
|
|
@@ -3996,7 +3996,7 @@ function $v() {
|
|
|
3996
3996
|
);
|
|
3997
3997
|
var bt = null;
|
|
3998
3998
|
for (Re = 0; Re < ot.length; ++Re)
|
|
3999
|
-
if (
|
|
3999
|
+
if (le(ot[Re], We, Je), m(
|
|
4000
4000
|
!ot[Re] || ot[Re].texture && md.indexOf(ot[Re].texture._texture.format) >= 0 || ot[Re].renderbuffer && wd.indexOf(ot[Re].renderbuffer._renderbuffer.format) >= 0,
|
|
4001
4001
|
"framebuffer color attachment " + Re + " is invalid"
|
|
4002
4002
|
), ot[Re] && ot[Re].texture) {
|
|
@@ -4006,14 +4006,14 @@ function $v() {
|
|
|
4006
4006
|
"all color attachments much have the same number of bits per pixel."
|
|
4007
4007
|
);
|
|
4008
4008
|
}
|
|
4009
|
-
return
|
|
4009
|
+
return le(Fe, We, Je), m(
|
|
4010
4010
|
!Fe || Fe.texture && Fe.texture._texture.format === dd || Fe.renderbuffer && Fe.renderbuffer._renderbuffer.format === yd,
|
|
4011
4011
|
"invalid depth attachment for framebuffer object"
|
|
4012
|
-
),
|
|
4012
|
+
), le(et, We, Je), m(
|
|
4013
4013
|
!et || et.renderbuffer && et.renderbuffer._renderbuffer.format === xd,
|
|
4014
4014
|
"invalid stencil attachment for framebuffer object"
|
|
4015
|
-
),
|
|
4016
|
-
!it || it.texture && it.texture._texture.format ===
|
|
4015
|
+
), le(it, We, Je), m(
|
|
4016
|
+
!it || it.texture && it.texture._texture.format === fu || it.renderbuffer && it.renderbuffer._renderbuffer.format === fu,
|
|
4017
4017
|
"invalid depth-stencil attachment for framebuffer object"
|
|
4018
4018
|
), me(de), de.width = We, de.height = Je, de.colorAttachments = ot, de.depthAttachment = Fe, de.stencilAttachment = et, de.depthStencilAttachment = it, He.color = ot.map(N), He.depth = N(Fe), He.stencil = N(et), He.depthStencil = N(it), He.width = de.width, He.height = de.height, X(de), He;
|
|
4019
4019
|
}
|
|
@@ -4173,7 +4173,7 @@ function $v() {
|
|
|
4173
4173
|
restore: ce
|
|
4174
4174
|
});
|
|
4175
4175
|
}
|
|
4176
|
-
var Ed = 5126,
|
|
4176
|
+
var Ed = 5126, uu = 34962, po = 34963, lu = [
|
|
4177
4177
|
"attributes",
|
|
4178
4178
|
"elements",
|
|
4179
4179
|
"offset",
|
|
@@ -4187,7 +4187,7 @@ function $v() {
|
|
|
4187
4187
|
function Cd(a, h, _, M, W, R, B) {
|
|
4188
4188
|
for (var K = _.maxAttributes, Q = new Array(K), ie = 0; ie < K; ++ie)
|
|
4189
4189
|
Q[ie] = new ja();
|
|
4190
|
-
var oe = 0, re = {},
|
|
4190
|
+
var oe = 0, re = {}, le = {
|
|
4191
4191
|
Record: ja,
|
|
4192
4192
|
scope: {},
|
|
4193
4193
|
state: Q,
|
|
@@ -4218,13 +4218,13 @@ function $v() {
|
|
|
4218
4218
|
return typeof X == "function" && X._vao ? X._vao : null;
|
|
4219
4219
|
}
|
|
4220
4220
|
function te(X) {
|
|
4221
|
-
if (X !==
|
|
4221
|
+
if (X !== le.currentVAO) {
|
|
4222
4222
|
var H = ne();
|
|
4223
|
-
X ? H.bindVertexArrayOES(X.vao) : H.bindVertexArrayOES(null),
|
|
4223
|
+
X ? H.bindVertexArrayOES(X.vao) : H.bindVertexArrayOES(null), le.currentVAO = X;
|
|
4224
4224
|
}
|
|
4225
4225
|
}
|
|
4226
4226
|
function xe(X) {
|
|
4227
|
-
if (X !==
|
|
4227
|
+
if (X !== le.currentVAO) {
|
|
4228
4228
|
if (X)
|
|
4229
4229
|
X.bindAttrs();
|
|
4230
4230
|
else {
|
|
@@ -4234,7 +4234,7 @@ function $v() {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
B.elements ? a.bindBuffer(po, B.elements.buffer.buffer) : a.bindBuffer(po, null);
|
|
4236
4236
|
}
|
|
4237
|
-
|
|
4237
|
+
le.currentVAO = X;
|
|
4238
4238
|
}
|
|
4239
4239
|
}
|
|
4240
4240
|
function Z() {
|
|
@@ -4250,7 +4250,7 @@ function $v() {
|
|
|
4250
4250
|
ge.prototype.bindAttrs = function() {
|
|
4251
4251
|
for (var X = k(), H = this.attributes, Se = 0; Se < H.length; ++Se) {
|
|
4252
4252
|
var ce = H[Se];
|
|
4253
|
-
ce.buffer ? (a.enableVertexAttribArray(Se), a.bindBuffer(
|
|
4253
|
+
ce.buffer ? (a.enableVertexAttribArray(Se), a.bindBuffer(uu, ce.buffer.buffer), a.vertexAttribPointer(Se, ce.size, ce.type, ce.normalized, ce.stride, ce.offset), X && ce.divisor && X.vertexAttribDivisorANGLE(Se, ce.divisor)) : (a.disableVertexAttribArray(Se), a.vertexAttrib4f(Se, ce.x, ce.y, ce.z, ce.w));
|
|
4254
4254
|
}
|
|
4255
4255
|
for (var ee = H.length; ee < K; ++ee)
|
|
4256
4256
|
a.disableVertexAttribArray(ee);
|
|
@@ -4258,11 +4258,11 @@ function $v() {
|
|
|
4258
4258
|
he ? a.bindBuffer(po, he.buffer.buffer) : a.bindBuffer(po, null);
|
|
4259
4259
|
}, ge.prototype.refresh = function() {
|
|
4260
4260
|
var X = ne();
|
|
4261
|
-
X && (X.bindVertexArrayOES(this.vao), this.bindAttrs(),
|
|
4261
|
+
X && (X.bindVertexArrayOES(this.vao), this.bindAttrs(), le.currentVAO = null, X.bindVertexArrayOES(null));
|
|
4262
4262
|
}, ge.prototype.destroy = function() {
|
|
4263
4263
|
if (this.vao) {
|
|
4264
4264
|
var X = ne();
|
|
4265
|
-
this ===
|
|
4265
|
+
this === le.currentVAO && (le.currentVAO = null, X.bindVertexArrayOES(null)), X.deleteVertexArrayOES(this.vao), this.vao = null;
|
|
4266
4266
|
}
|
|
4267
4267
|
this.ownsElements && (this.elements.destroy(), this.elements = null, this.ownsElements = !1), re[this.id] && (delete re[this.id], M.vaoCount -= 1);
|
|
4268
4268
|
};
|
|
@@ -4287,7 +4287,7 @@ function $v() {
|
|
|
4287
4287
|
H.elements = null, H.ownsElements = !1;
|
|
4288
4288
|
ee = ce.attributes, H.offset = 0, H.count = -1, H.instances = -1, H.primitive = 4, H.elements && (H.count = H.elements._elements.vertCount, H.primitive = H.elements._elements.primType), "offset" in ce && (H.offset = ce.offset | 0), "count" in ce && (H.count = ce.count | 0), "instances" in ce && (H.instances = ce.instances | 0), "primitive" in ce && (m(ce.primitive in Xn, "bad primitive type: " + ce.primitive), H.primitive = Xn[ce.primitive]), m.optional(() => {
|
|
4289
4289
|
for (var vt = Object.keys(ce), yt = 0; yt < vt.length; ++yt)
|
|
4290
|
-
m(
|
|
4290
|
+
m(lu.indexOf(vt[yt]) >= 0, 'invalid option for vao: "' + vt[yt] + '" valid options are ' + lu);
|
|
4291
4291
|
}), m(Array.isArray(ee), "attributes must be an array");
|
|
4292
4292
|
}
|
|
4293
4293
|
m(ee.length < K, "too many attributes"), m(ee.length > 0, "must specify at least one attribute");
|
|
@@ -4297,7 +4297,7 @@ function $v() {
|
|
|
4297
4297
|
var pe = ee[Ue], ye = He[Ue] = new ja(), Re = pe.data || pe;
|
|
4298
4298
|
if (Array.isArray(Re) || n(Re) || hn(Re)) {
|
|
4299
4299
|
var We;
|
|
4300
|
-
H.buffers[Ue] && (We = H.buffers[Ue], n(Re) && We._buffer.byteLength >= Re.byteLength ? We.subdata(Re) : (We.destroy(), H.buffers[Ue] = null)), H.buffers[Ue] || (We = H.buffers[Ue] = W.create(pe,
|
|
4300
|
+
H.buffers[Ue] && (We = H.buffers[Ue], n(Re) && We._buffer.byteLength >= Re.byteLength ? We.subdata(Re) : (We.destroy(), H.buffers[Ue] = null)), H.buffers[Ue] || (We = H.buffers[Ue] = W.create(pe, uu, !1, !0)), ye.buffer = W.getBuffer(We), ye.size = ye.buffer.dimension | 0, ye.normalized = !1, ye.type = ye.buffer.dtype, ye.offset = 0, ye.stride = 0, ye.divisor = 0, ye.state = 1, de[Ue] = 1;
|
|
4301
4301
|
} else W.getBuffer(pe) ? (ye.buffer = W.getBuffer(pe), ye.size = ye.buffer.dimension | 0, ye.normalized = !1, ye.type = ye.buffer.dtype, ye.offset = 0, ye.stride = 0, ye.divisor = 0, ye.state = 1) : W.getBuffer(pe.buffer) ? (ye.buffer = W.getBuffer(pe.buffer), ye.size = (+pe.size || ye.buffer.dimension) | 0, ye.normalized = !!pe.normalized || !1, "type" in pe ? (m.parameter(pe.type, si, "invalid buffer type"), ye.type = si[pe.type]) : ye.type = ye.buffer.dtype, ye.offset = (pe.offset || 0) | 0, ye.stride = (pe.stride || 0) | 0, ye.divisor = (pe.divisor || 0) | 0, ye.state = 1, m(ye.size >= 1 && ye.size <= 4, "size must be between 1 and 4"), m(ye.offset >= 0, "invalid offset"), m(ye.stride >= 0 && ye.stride <= 255, "stride must be between 0 and 255"), m(ye.divisor >= 0, "divisor must be positive"), m(!ye.divisor || !!h.angle_instanced_arrays, "ANGLE_instanced_arrays must be enabled to use divisor")) : "x" in pe ? (m(Ue > 0, "first attribute must not be a constant"), ye.x = +pe.x || 0, ye.y = +pe.y || 0, ye.z = +pe.z || 0, ye.w = +pe.w || 0, ye.state = 2) : m(!1, "invalid attribute spec for location " + Ue);
|
|
4302
4302
|
}
|
|
4303
4303
|
for (var Je = 0; Je < H.buffers.length; ++Je)
|
|
@@ -4310,9 +4310,9 @@ function $v() {
|
|
|
4310
4310
|
H.buffers.length = 0, H.ownsElements && (H.elements.destroy(), H.elements = null, H.ownsElements = !1), H.destroy();
|
|
4311
4311
|
}, Se._vao = H, Se._reglType = "vao", Se(X);
|
|
4312
4312
|
}
|
|
4313
|
-
return
|
|
4313
|
+
return le;
|
|
4314
4314
|
}
|
|
4315
|
-
var
|
|
4315
|
+
var cu = 35632, Pd = 35633, kd = 35718, Id = 35721;
|
|
4316
4316
|
function Ld(a, h, _, M) {
|
|
4317
4317
|
var W = {}, R = {};
|
|
4318
4318
|
function B(k, N, te, xe) {
|
|
@@ -4327,7 +4327,7 @@ function $v() {
|
|
|
4327
4327
|
k.push(N);
|
|
4328
4328
|
}
|
|
4329
4329
|
function Q(k, N, te) {
|
|
4330
|
-
var xe = k ===
|
|
4330
|
+
var xe = k === cu ? W : R, Z = xe[N];
|
|
4331
4331
|
if (!Z) {
|
|
4332
4332
|
var ge = h.str(N);
|
|
4333
4333
|
Z = a.createShader(k), a.shaderSource(Z, ge), a.compileShader(Z), m.shaderError(a, Z, ge, k, te), xe[N] = Z;
|
|
@@ -4335,14 +4335,14 @@ function $v() {
|
|
|
4335
4335
|
return Z;
|
|
4336
4336
|
}
|
|
4337
4337
|
var ie = {}, oe = [], re = 0;
|
|
4338
|
-
function
|
|
4338
|
+
function le(k, N) {
|
|
4339
4339
|
this.id = re++, this.fragId = k, this.vertId = N, this.program = null, this.uniforms = [], this.attributes = [], this.refCount = 1, M.profile && (this.stats = {
|
|
4340
4340
|
uniformsCount: 0,
|
|
4341
4341
|
attributesCount: 0
|
|
4342
4342
|
});
|
|
4343
4343
|
}
|
|
4344
4344
|
function J(k, N, te) {
|
|
4345
|
-
var xe, Z, ge = Q(
|
|
4345
|
+
var xe, Z, ge = Q(cu, k.fragId), me = Q(Pd, k.vertId), Le = k.program = a.createProgram();
|
|
4346
4346
|
if (a.attachShader(Le, ge), a.attachShader(Le, me), te)
|
|
4347
4347
|
for (xe = 0; xe < te.length; ++xe) {
|
|
4348
4348
|
var X = te[xe];
|
|
@@ -4421,7 +4421,7 @@ function $v() {
|
|
|
4421
4421
|
var ge = Z[k];
|
|
4422
4422
|
if (ge && (ge.refCount++, !xe))
|
|
4423
4423
|
return ge;
|
|
4424
|
-
var me = new
|
|
4424
|
+
var me = new le(N, k);
|
|
4425
4425
|
return _.shaderCount++, J(me, te, xe), ge || (Z[k] = me), oe.push(me), i(me, {
|
|
4426
4426
|
destroy: function() {
|
|
4427
4427
|
if (me.refCount--, me.refCount <= 0) {
|
|
@@ -4439,48 +4439,48 @@ function $v() {
|
|
|
4439
4439
|
vert: -1
|
|
4440
4440
|
};
|
|
4441
4441
|
}
|
|
4442
|
-
var Dd = 6408,
|
|
4442
|
+
var Dd = 6408, lr = 5121, Fd = 3333, vo = 5126;
|
|
4443
4443
|
function zd(a, h, _, M, W, R, B) {
|
|
4444
4444
|
function K(oe) {
|
|
4445
4445
|
var re;
|
|
4446
4446
|
h.next === null ? (m(
|
|
4447
4447
|
W.preserveDrawingBuffer,
|
|
4448
4448
|
'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'
|
|
4449
|
-
), re =
|
|
4449
|
+
), re = lr) : (m(
|
|
4450
4450
|
h.next.colorAttachments[0].texture !== null,
|
|
4451
4451
|
"You cannot read from a renderbuffer"
|
|
4452
4452
|
), re = h.next.colorAttachments[0].texture._texture.type, m.optional(function() {
|
|
4453
4453
|
R.oes_texture_float ? (m(
|
|
4454
|
-
re ===
|
|
4454
|
+
re === lr || re === vo,
|
|
4455
4455
|
"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"
|
|
4456
4456
|
), re === vo && m(B.readFloat, "Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")) : m(
|
|
4457
|
-
re ===
|
|
4457
|
+
re === lr,
|
|
4458
4458
|
"Reading from a framebuffer is only allowed for the type 'uint8'"
|
|
4459
4459
|
);
|
|
4460
4460
|
}));
|
|
4461
|
-
var
|
|
4462
|
-
n(oe) ? N = oe : oe && (m.type(oe, "object", "invalid arguments to regl.read()"),
|
|
4463
|
-
|
|
4461
|
+
var le = 0, J = 0, ne = M.framebufferWidth, k = M.framebufferHeight, N = null;
|
|
4462
|
+
n(oe) ? N = oe : oe && (m.type(oe, "object", "invalid arguments to regl.read()"), le = oe.x | 0, J = oe.y | 0, m(
|
|
4463
|
+
le >= 0 && le < M.framebufferWidth,
|
|
4464
4464
|
"invalid x offset for regl.read"
|
|
4465
4465
|
), m(
|
|
4466
4466
|
J >= 0 && J < M.framebufferHeight,
|
|
4467
4467
|
"invalid y offset for regl.read"
|
|
4468
|
-
), ne = (oe.width || M.framebufferWidth -
|
|
4468
|
+
), ne = (oe.width || M.framebufferWidth - le) | 0, k = (oe.height || M.framebufferHeight - J) | 0, N = oe.data || null), N && (re === lr ? m(
|
|
4469
4469
|
N instanceof Uint8Array,
|
|
4470
4470
|
"buffer must be 'Uint8Array' when reading from a framebuffer of type 'uint8'"
|
|
4471
4471
|
) : re === vo && m(
|
|
4472
4472
|
N instanceof Float32Array,
|
|
4473
4473
|
"buffer must be 'Float32Array' when reading from a framebuffer of type 'float'"
|
|
4474
4474
|
)), m(
|
|
4475
|
-
ne > 0 && ne +
|
|
4475
|
+
ne > 0 && ne + le <= M.framebufferWidth,
|
|
4476
4476
|
"invalid width for read pixels"
|
|
4477
4477
|
), m(
|
|
4478
4478
|
k > 0 && k + J <= M.framebufferHeight,
|
|
4479
4479
|
"invalid height for read pixels"
|
|
4480
4480
|
), _();
|
|
4481
4481
|
var te = ne * k * 4;
|
|
4482
|
-
return N || (re ===
|
|
4483
|
-
|
|
4482
|
+
return N || (re === lr ? N = new Uint8Array(te) : re === vo && (N = N || new Float32Array(te))), m.isTypedArray(N, "data buffer for regl.read() must be a typedarray"), m(N.byteLength >= te, "data buffer for regl.read() too small"), a.pixelStorei(Fd, 4), a.readPixels(
|
|
4483
|
+
le,
|
|
4484
4484
|
J,
|
|
4485
4485
|
ne,
|
|
4486
4486
|
k,
|
|
@@ -4511,15 +4511,15 @@ function $v() {
|
|
|
4511
4511
|
function Rd() {
|
|
4512
4512
|
var a = 0, h = [], _ = [];
|
|
4513
4513
|
function M(re) {
|
|
4514
|
-
for (var
|
|
4515
|
-
if (_[
|
|
4516
|
-
return h[
|
|
4514
|
+
for (var le = 0; le < _.length; ++le)
|
|
4515
|
+
if (_[le] === re)
|
|
4516
|
+
return h[le];
|
|
4517
4517
|
var J = "g" + a++;
|
|
4518
4518
|
return h.push(J), _.push(re), J;
|
|
4519
4519
|
}
|
|
4520
4520
|
function W() {
|
|
4521
4521
|
var re = [];
|
|
4522
|
-
function
|
|
4522
|
+
function le() {
|
|
4523
4523
|
re.push.apply(re, Ui(arguments));
|
|
4524
4524
|
}
|
|
4525
4525
|
var J = [];
|
|
@@ -4527,7 +4527,7 @@ function $v() {
|
|
|
4527
4527
|
var k = "v" + a++;
|
|
4528
4528
|
return J.push(k), arguments.length > 0 && (re.push(k, "="), re.push.apply(re, Ui(arguments)), re.push(";")), k;
|
|
4529
4529
|
}
|
|
4530
|
-
return i(
|
|
4530
|
+
return i(le, {
|
|
4531
4531
|
def: ne,
|
|
4532
4532
|
toString: function() {
|
|
4533
4533
|
return Vi([
|
|
@@ -4538,16 +4538,16 @@ function $v() {
|
|
|
4538
4538
|
});
|
|
4539
4539
|
}
|
|
4540
4540
|
function R() {
|
|
4541
|
-
var re = W(),
|
|
4541
|
+
var re = W(), le = W(), J = re.toString, ne = le.toString;
|
|
4542
4542
|
function k(N, te) {
|
|
4543
|
-
|
|
4543
|
+
le(N, te, "=", re.def(N, te), ";");
|
|
4544
4544
|
}
|
|
4545
4545
|
return i(function() {
|
|
4546
4546
|
re.apply(re, Ui(arguments));
|
|
4547
4547
|
}, {
|
|
4548
4548
|
def: re.def,
|
|
4549
4549
|
entry: re,
|
|
4550
|
-
exit:
|
|
4550
|
+
exit: le,
|
|
4551
4551
|
save: k,
|
|
4552
4552
|
set: function(N, te, xe) {
|
|
4553
4553
|
k(N, te), re(N, te, "=", xe, ";");
|
|
@@ -4558,10 +4558,10 @@ function $v() {
|
|
|
4558
4558
|
});
|
|
4559
4559
|
}
|
|
4560
4560
|
function B() {
|
|
4561
|
-
var re = Vi(arguments),
|
|
4562
|
-
return i(
|
|
4561
|
+
var re = Vi(arguments), le = R(), J = R(), ne = le.toString, k = J.toString;
|
|
4562
|
+
return i(le, {
|
|
4563
4563
|
then: function() {
|
|
4564
|
-
return
|
|
4564
|
+
return le.apply(le, Ui(arguments)), this;
|
|
4565
4565
|
},
|
|
4566
4566
|
else: function() {
|
|
4567
4567
|
return J.apply(J, Ui(arguments)), this;
|
|
@@ -4580,14 +4580,14 @@ function $v() {
|
|
|
4580
4580
|
});
|
|
4581
4581
|
}
|
|
4582
4582
|
var K = W(), Q = {};
|
|
4583
|
-
function ie(re,
|
|
4583
|
+
function ie(re, le) {
|
|
4584
4584
|
var J = [];
|
|
4585
4585
|
function ne() {
|
|
4586
4586
|
var Z = "a" + J.length;
|
|
4587
4587
|
return J.push(Z), Z;
|
|
4588
4588
|
}
|
|
4589
|
-
|
|
4590
|
-
for (var k = 0; k <
|
|
4589
|
+
le = le || 0;
|
|
4590
|
+
for (var k = 0; k < le; ++k)
|
|
4591
4591
|
ne();
|
|
4592
4592
|
var N = R(), te = N.toString, xe = Q[re] = i(N, {
|
|
4593
4593
|
arg: ne,
|
|
@@ -4612,10 +4612,10 @@ function $v() {
|
|
|
4612
4612
|
Object.keys(Q).forEach(function(ne) {
|
|
4613
4613
|
re.push('"', ne, '":', Q[ne].toString(), ",");
|
|
4614
4614
|
}), re.push("}");
|
|
4615
|
-
var
|
|
4615
|
+
var le = Vi(re).replace(/;/g, `;
|
|
4616
4616
|
`).replace(/}/g, `}
|
|
4617
4617
|
`).replace(/{/g, `{
|
|
4618
|
-
`), J = Function.apply(null, h.concat(
|
|
4618
|
+
`), J = Function.apply(null, h.concat(le));
|
|
4619
4619
|
return J.apply(null, _);
|
|
4620
4620
|
}
|
|
4621
4621
|
return {
|
|
@@ -4628,7 +4628,7 @@ function $v() {
|
|
|
4628
4628
|
compile: oe
|
|
4629
4629
|
};
|
|
4630
4630
|
}
|
|
4631
|
-
var $i = "xyzw".split(""),
|
|
4631
|
+
var $i = "xyzw".split(""), hu = 5121, Hi = 1, qa = 2, Ya = 0, Za = 1, Qa = 2, Ka = 3, go = 4, du = 5, mu = 6, pu = "dither", vu = "blend.enable", gu = "blend.color", Ja = "blend.equation", es = "blend.func", yu = "depth.enable", xu = "depth.func", bu = "depth.range", _u = "depth.mask", ts = "colorMask", Su = "cull.enable", Tu = "cull.face", ns = "frontFace", is = "lineWidth", wu = "polygonOffset.enable", rs = "polygonOffset.offset", Au = "sample.alpha", Eu = "sample.enable", os = "sample.coverage", Cu = "stencil.enable", Pu = "stencil.mask", as = "stencil.func", ss = "stencil.opFront", cr = "stencil.opBack", ku = "scissor.enable", yo = "scissor.box", Dn = "viewport", hr = "profile", hi = "framebuffer", dr = "vert", mr = "frag", di = "elements", mi = "primitive", pi = "count", xo = "offset", bo = "instances", pr = "vao", fs = "Width", us = "Height", Wi = hi + fs, Xi = hi + us, Md = Dn + fs, Od = Dn + us, Iu = "drawingBuffer", Lu = Iu + fs, Du = Iu + us, Nd = [
|
|
4632
4632
|
es,
|
|
4633
4633
|
Ja,
|
|
4634
4634
|
as,
|
|
@@ -4638,7 +4638,7 @@ function $v() {
|
|
|
4638
4638
|
Dn,
|
|
4639
4639
|
yo,
|
|
4640
4640
|
rs
|
|
4641
|
-
], ji = 34962,
|
|
4641
|
+
], ji = 34962, ls = 34963, Gd = 35632, Bd = 35633, Fu = 3553, Ud = 34067, Vd = 2884, $d = 3042, Hd = 3024, Wd = 2960, Xd = 2929, jd = 3089, qd = 32823, Yd = 32926, Zd = 32928, cs = 5126, _o = 35664, So = 35665, To = 35666, hs = 5124, wo = 35667, Ao = 35668, Eo = 35669, ds = 35670, Co = 35671, Po = 35672, ko = 35673, vr = 35674, gr = 35675, yr = 35676, xr = 35678, br = 35680, ms = 4, _r = 1028, vi = 1029, zu = 2304, ps = 2305, Qd = 32775, Kd = 32776, Jd = 519, qn = 7680, Ru = 0, Mu = 1, Ou = 32774, em = 513, Nu = 36160, tm = 36064, Sn = {
|
|
4642
4642
|
0: 0,
|
|
4643
4643
|
1: 1,
|
|
4644
4644
|
zero: 0,
|
|
@@ -4656,7 +4656,7 @@ function $v() {
|
|
|
4656
4656
|
"constant alpha": 32771,
|
|
4657
4657
|
"one minus constant alpha": 32772,
|
|
4658
4658
|
"src alpha saturate": 776
|
|
4659
|
-
},
|
|
4659
|
+
}, Gu = [
|
|
4660
4660
|
"constant color, constant alpha",
|
|
4661
4661
|
"one minus constant color, constant alpha",
|
|
4662
4662
|
"constant color, one minus constant alpha",
|
|
@@ -4693,17 +4693,17 @@ function $v() {
|
|
|
4693
4693
|
"increment wrap": 34055,
|
|
4694
4694
|
"decrement wrap": 34056,
|
|
4695
4695
|
invert: 5386
|
|
4696
|
-
},
|
|
4696
|
+
}, Bu = {
|
|
4697
4697
|
frag: Gd,
|
|
4698
4698
|
vert: Bd
|
|
4699
4699
|
}, vs = {
|
|
4700
|
-
cw:
|
|
4700
|
+
cw: zu,
|
|
4701
4701
|
ccw: ps
|
|
4702
4702
|
};
|
|
4703
4703
|
function Io(a) {
|
|
4704
4704
|
return Array.isArray(a) || n(a) || hn(a);
|
|
4705
4705
|
}
|
|
4706
|
-
function
|
|
4706
|
+
function Uu(a) {
|
|
4707
4707
|
return a.sort(function(h, _) {
|
|
4708
4708
|
return h === Dn ? -1 : _ === Dn ? 1 : h < _ ? -1 : 1;
|
|
4709
4709
|
});
|
|
@@ -4736,14 +4736,14 @@ function $v() {
|
|
|
4736
4736
|
h
|
|
4737
4737
|
);
|
|
4738
4738
|
} else {
|
|
4739
|
-
if (_ ===
|
|
4739
|
+
if (_ === du)
|
|
4740
4740
|
return new Lt(
|
|
4741
4741
|
!1,
|
|
4742
4742
|
!1,
|
|
4743
4743
|
!1,
|
|
4744
4744
|
h
|
|
4745
4745
|
);
|
|
4746
|
-
if (_ ===
|
|
4746
|
+
if (_ === mu) {
|
|
4747
4747
|
for (var R = !1, B = !1, K = !1, Q = 0; Q < a.data.length; ++Q) {
|
|
4748
4748
|
var ie = a.data[Q];
|
|
4749
4749
|
if (ie.type === Za)
|
|
@@ -4773,9 +4773,9 @@ function $v() {
|
|
|
4773
4773
|
);
|
|
4774
4774
|
}
|
|
4775
4775
|
}
|
|
4776
|
-
var
|
|
4776
|
+
var Vu = new Lt(!1, !1, !1, function() {
|
|
4777
4777
|
});
|
|
4778
|
-
function nm(a, h, _, M, W, R, B, K, Q, ie, oe, re,
|
|
4778
|
+
function nm(a, h, _, M, W, R, B, K, Q, ie, oe, re, le, J, ne) {
|
|
4779
4779
|
var k = ie.Record, N = {
|
|
4780
4780
|
add: 32774,
|
|
4781
4781
|
subtract: 32778,
|
|
@@ -4797,15 +4797,15 @@ function $v() {
|
|
|
4797
4797
|
var C = Se(p);
|
|
4798
4798
|
Le.push(p), Array.isArray(T) ? (ge[C] = T.slice(), me[C] = T.slice()) : ge[C] = me[C] = T, H[C] = c;
|
|
4799
4799
|
}
|
|
4800
|
-
ce(
|
|
4800
|
+
ce(pu, Hd), ce(vu, $d), ee(gu, "blendColor", [0, 0, 0, 0]), ee(
|
|
4801
4801
|
Ja,
|
|
4802
4802
|
"blendEquationSeparate",
|
|
4803
|
-
[
|
|
4803
|
+
[Ou, Ou]
|
|
4804
4804
|
), ee(
|
|
4805
4805
|
es,
|
|
4806
4806
|
"blendFuncSeparate",
|
|
4807
|
-
[
|
|
4808
|
-
), ce(
|
|
4807
|
+
[Mu, Ru, Mu, Ru]
|
|
4808
|
+
), ce(yu, Xd, !0), ee(xu, "depthFunc", em), ee(bu, "depthRange", [0, 1]), ee(_u, "depthMask", !0), ee(ts, ts, [!0, !0, !0, !0]), ce(Su, Vd), ee(Tu, "cullFace", vi), ee(ns, ns, ps), ee(is, is, 1), ce(wu, qd), ee(rs, "polygonOffset", [0, 0]), ce(Au, Yd), ce(Eu, Zd), ee(os, "sampleCoverage", [1, !1]), ce(Cu, Wd), ee(Pu, "stencilMask", -1), ee(as, "stencilFunc", [Jd, 0, -1]), ee(
|
|
4809
4809
|
ss,
|
|
4810
4810
|
"stencilOpSeparate",
|
|
4811
4811
|
[_r, qn, qn, qn]
|
|
@@ -4813,7 +4813,7 @@ function $v() {
|
|
|
4813
4813
|
cr,
|
|
4814
4814
|
"stencilOpSeparate",
|
|
4815
4815
|
[vi, qn, qn, qn]
|
|
4816
|
-
), ce(
|
|
4816
|
+
), ce(ku, jd), ee(
|
|
4817
4817
|
yo,
|
|
4818
4818
|
"scissor",
|
|
4819
4819
|
[0, 0, a.drawingBufferWidth, a.drawingBufferHeight]
|
|
@@ -4824,7 +4824,7 @@ function $v() {
|
|
|
4824
4824
|
);
|
|
4825
4825
|
var he = {
|
|
4826
4826
|
gl: a,
|
|
4827
|
-
context:
|
|
4827
|
+
context: le,
|
|
4828
4828
|
strings: h,
|
|
4829
4829
|
next: me,
|
|
4830
4830
|
current: ge,
|
|
@@ -4877,7 +4877,7 @@ function $v() {
|
|
|
4877
4877
|
this.command,
|
|
4878
4878
|
");"
|
|
4879
4879
|
);
|
|
4880
|
-
}, de.invalidBlendCombinations =
|
|
4880
|
+
}, de.invalidBlendCombinations = Gu;
|
|
4881
4881
|
});
|
|
4882
4882
|
var A = p.next = {}, w = p.current = {};
|
|
4883
4883
|
Object.keys(H).forEach(function(b) {
|
|
@@ -4909,9 +4909,9 @@ function $v() {
|
|
|
4909
4909
|
return b.def("this", g.data);
|
|
4910
4910
|
case go:
|
|
4911
4911
|
return g.data.append(p, b), g.data.ref;
|
|
4912
|
-
case
|
|
4912
|
+
case du:
|
|
4913
4913
|
return g.data.toString();
|
|
4914
|
-
case
|
|
4914
|
+
case mu:
|
|
4915
4915
|
return g.data.map(function(L) {
|
|
4916
4916
|
return p.invoke(b, L);
|
|
4917
4917
|
});
|
|
@@ -4975,11 +4975,11 @@ function $v() {
|
|
|
4975
4975
|
return E.set(
|
|
4976
4976
|
b,
|
|
4977
4977
|
"." + Wi,
|
|
4978
|
-
b + "." +
|
|
4978
|
+
b + "." + Lu
|
|
4979
4979
|
), E.set(
|
|
4980
4980
|
b,
|
|
4981
4981
|
"." + Xi,
|
|
4982
|
-
b + "." +
|
|
4982
|
+
b + "." + Du
|
|
4983
4983
|
), "null";
|
|
4984
4984
|
});
|
|
4985
4985
|
} else if (hi in C) {
|
|
@@ -5006,11 +5006,11 @@ function $v() {
|
|
|
5006
5006
|
return E.set(
|
|
5007
5007
|
L,
|
|
5008
5008
|
"." + Wi,
|
|
5009
|
-
F + "?" + F + ".width:" + L + "." +
|
|
5009
|
+
F + "?" + F + ".width:" + L + "." + Lu
|
|
5010
5010
|
), E.set(
|
|
5011
5011
|
L,
|
|
5012
5012
|
"." + Xi,
|
|
5013
|
-
F + "?" + F + ".height:" + L + "." +
|
|
5013
|
+
F + "?" + F + ".height:" + L + "." + Du
|
|
5014
5014
|
), F;
|
|
5015
5015
|
});
|
|
5016
5016
|
} else
|
|
@@ -5035,8 +5035,8 @@ function $v() {
|
|
|
5035
5035
|
}
|
|
5036
5036
|
);
|
|
5037
5037
|
} else if (v in I) {
|
|
5038
|
-
var
|
|
5039
|
-
var Y = ke.invoke(be,
|
|
5038
|
+
var ue = I[v], Ne = Zt(ue, function(ke, be) {
|
|
5039
|
+
var Y = ke.invoke(be, ue);
|
|
5040
5040
|
m.optional(function() {
|
|
5041
5041
|
ke.assert(
|
|
5042
5042
|
be,
|
|
@@ -5141,7 +5141,7 @@ function $v() {
|
|
|
5141
5141
|
if (g in C) {
|
|
5142
5142
|
var F = h.id(C[g]);
|
|
5143
5143
|
m.optional(function() {
|
|
5144
|
-
oe.shader(
|
|
5144
|
+
oe.shader(Bu[g], F, m.guessCommand());
|
|
5145
5145
|
});
|
|
5146
5146
|
var L = St(function() {
|
|
5147
5147
|
return F;
|
|
@@ -5149,13 +5149,13 @@ function $v() {
|
|
|
5149
5149
|
return L.id = F, L;
|
|
5150
5150
|
} else if (g in I) {
|
|
5151
5151
|
var $ = I[g];
|
|
5152
|
-
return Zt($, function(j,
|
|
5153
|
-
var Ne = j.invoke(
|
|
5152
|
+
return Zt($, function(j, ue) {
|
|
5153
|
+
var Ne = j.invoke(ue, $), ke = ue.def(j.shared.strings, ".id(", Ne, ")");
|
|
5154
5154
|
return m.optional(function() {
|
|
5155
|
-
|
|
5155
|
+
ue(
|
|
5156
5156
|
j.shared.shader,
|
|
5157
5157
|
".shader(",
|
|
5158
|
-
|
|
5158
|
+
Bu[g],
|
|
5159
5159
|
",",
|
|
5160
5160
|
ke,
|
|
5161
5161
|
",",
|
|
@@ -5179,10 +5179,10 @@ function $v() {
|
|
|
5179
5179
|
w ? $ = w.append(g, F) : $ = F.def(L, ".", mr);
|
|
5180
5180
|
var j;
|
|
5181
5181
|
E ? j = E.append(g, F) : j = F.def(L, ".", dr);
|
|
5182
|
-
var
|
|
5182
|
+
var ue = L + ".program(" + j + "," + $;
|
|
5183
5183
|
return m.optional(function() {
|
|
5184
|
-
|
|
5185
|
-
}), F.def(
|
|
5184
|
+
ue += "," + g.command;
|
|
5185
|
+
}), F.def(ue + ")");
|
|
5186
5186
|
}
|
|
5187
5187
|
), {
|
|
5188
5188
|
frag: w,
|
|
@@ -5428,10 +5428,10 @@ function $v() {
|
|
|
5428
5428
|
}
|
|
5429
5429
|
return null;
|
|
5430
5430
|
}
|
|
5431
|
-
var
|
|
5431
|
+
var ue = F(), Ne = j(), ke = L(bo, !1);
|
|
5432
5432
|
return {
|
|
5433
5433
|
elements: g,
|
|
5434
|
-
primitive:
|
|
5434
|
+
primitive: ue,
|
|
5435
5435
|
count: Ne,
|
|
5436
5436
|
instances: ke,
|
|
5437
5437
|
offset: $,
|
|
@@ -5460,16 +5460,16 @@ function $v() {
|
|
|
5460
5460
|
}
|
|
5461
5461
|
}
|
|
5462
5462
|
switch (A) {
|
|
5463
|
-
case
|
|
5464
|
-
case
|
|
5465
|
-
case
|
|
5466
|
-
case
|
|
5467
|
-
case
|
|
5468
|
-
case
|
|
5469
|
-
case
|
|
5470
|
-
case
|
|
5471
|
-
case
|
|
5472
|
-
case
|
|
5463
|
+
case Su:
|
|
5464
|
+
case vu:
|
|
5465
|
+
case pu:
|
|
5466
|
+
case Cu:
|
|
5467
|
+
case yu:
|
|
5468
|
+
case ku:
|
|
5469
|
+
case wu:
|
|
5470
|
+
case Au:
|
|
5471
|
+
case Eu:
|
|
5472
|
+
case _u:
|
|
5473
5473
|
return E(
|
|
5474
5474
|
function(v) {
|
|
5475
5475
|
return m.commandType(v, "boolean", A, c.commandStr), v;
|
|
@@ -5485,7 +5485,7 @@ function $v() {
|
|
|
5485
5485
|
}), g;
|
|
5486
5486
|
}
|
|
5487
5487
|
);
|
|
5488
|
-
case
|
|
5488
|
+
case xu:
|
|
5489
5489
|
return E(
|
|
5490
5490
|
function(v) {
|
|
5491
5491
|
return m.commandParameter(v, qi, "invalid " + A, c.commandStr), qi[v];
|
|
@@ -5501,7 +5501,7 @@ function $v() {
|
|
|
5501
5501
|
}), b.def(F, "[", g, "]");
|
|
5502
5502
|
}
|
|
5503
5503
|
);
|
|
5504
|
-
case
|
|
5504
|
+
case bu:
|
|
5505
5505
|
return E(
|
|
5506
5506
|
function(v) {
|
|
5507
5507
|
return m.command(
|
|
@@ -5528,7 +5528,7 @@ function $v() {
|
|
|
5528
5528
|
m.commandType(v, "object", "blend.func", c.commandStr);
|
|
5529
5529
|
var b = "srcRGB" in v ? v.srcRGB : v.src, g = "srcAlpha" in v ? v.srcAlpha : v.src, F = "dstRGB" in v ? v.dstRGB : v.dst, L = "dstAlpha" in v ? v.dstAlpha : v.dst;
|
|
5530
5530
|
return m.commandParameter(b, Sn, w + ".srcRGB", c.commandStr), m.commandParameter(g, Sn, w + ".srcAlpha", c.commandStr), m.commandParameter(F, Sn, w + ".dstRGB", c.commandStr), m.commandParameter(L, Sn, w + ".dstAlpha", c.commandStr), m.command(
|
|
5531
|
-
|
|
5531
|
+
Gu.indexOf(b + ", " + F) === -1,
|
|
5532
5532
|
"unallowed blending combination (srcRGB, dstRGB) = (" + b + ", " + F + ")",
|
|
5533
5533
|
c.commandStr
|
|
5534
5534
|
), [
|
|
@@ -5581,8 +5581,8 @@ function $v() {
|
|
|
5581
5581
|
"unallowed blending combination for (srcRGB, dstRGB)"
|
|
5582
5582
|
);
|
|
5583
5583
|
});
|
|
5584
|
-
var
|
|
5585
|
-
return [
|
|
5584
|
+
var ue = b.def(F, "[", $, "]"), Ne = b.def(F, "[", L("src", "Alpha"), "]"), ke = b.def(F, "[", j, "]"), be = b.def(F, "[", L("dst", "Alpha"), "]");
|
|
5585
|
+
return [ue, ke, Ne, be];
|
|
5586
5586
|
}
|
|
5587
5587
|
);
|
|
5588
5588
|
case Ja:
|
|
@@ -5613,18 +5613,18 @@ function $v() {
|
|
|
5613
5613
|
function(v, b, g) {
|
|
5614
5614
|
var F = v.constants.blendEquations, L = b.def(), $ = b.def(), j = v.cond("typeof ", g, '==="string"');
|
|
5615
5615
|
return m.optional(function() {
|
|
5616
|
-
function
|
|
5616
|
+
function ue(Ne, ke, be) {
|
|
5617
5617
|
v.assert(
|
|
5618
5618
|
Ne,
|
|
5619
5619
|
be + " in " + F,
|
|
5620
5620
|
"invalid " + ke + ", must be one of " + Object.keys(N)
|
|
5621
5621
|
);
|
|
5622
5622
|
}
|
|
5623
|
-
|
|
5623
|
+
ue(j.then, A, g), v.assert(
|
|
5624
5624
|
j.else,
|
|
5625
5625
|
g + "&&typeof " + g + '==="object"',
|
|
5626
5626
|
"invalid " + A
|
|
5627
|
-
),
|
|
5627
|
+
), ue(j.else, A + ".rgb", g + ".rgb"), ue(j.else, A + ".alpha", g + ".alpha");
|
|
5628
5628
|
}), j.then(
|
|
5629
5629
|
L,
|
|
5630
5630
|
"=",
|
|
@@ -5650,7 +5650,7 @@ function $v() {
|
|
|
5650
5650
|
), b(j), [L, $];
|
|
5651
5651
|
}
|
|
5652
5652
|
);
|
|
5653
|
-
case
|
|
5653
|
+
case gu:
|
|
5654
5654
|
return E(
|
|
5655
5655
|
function(v) {
|
|
5656
5656
|
return m.command(
|
|
@@ -5673,7 +5673,7 @@ function $v() {
|
|
|
5673
5673
|
});
|
|
5674
5674
|
}
|
|
5675
5675
|
);
|
|
5676
|
-
case
|
|
5676
|
+
case Pu:
|
|
5677
5677
|
return E(
|
|
5678
5678
|
function(v) {
|
|
5679
5679
|
return m.commandType(v, "number", w, c.commandStr), v | 0;
|
|
@@ -5702,14 +5702,14 @@ function $v() {
|
|
|
5702
5702
|
function(v, b, g) {
|
|
5703
5703
|
var F = v.constants.compareFuncs;
|
|
5704
5704
|
m.optional(function() {
|
|
5705
|
-
function
|
|
5705
|
+
function ue() {
|
|
5706
5706
|
v.assert(
|
|
5707
5707
|
b,
|
|
5708
5708
|
Array.prototype.join.call(arguments, ""),
|
|
5709
5709
|
"invalid stencil.func"
|
|
5710
5710
|
);
|
|
5711
5711
|
}
|
|
5712
|
-
|
|
5712
|
+
ue(g + "&&typeof ", g, '==="object"'), ue(
|
|
5713
5713
|
'!("cmp" in ',
|
|
5714
5714
|
g,
|
|
5715
5715
|
")||(",
|
|
@@ -5810,7 +5810,7 @@ function $v() {
|
|
|
5810
5810
|
return [F, L];
|
|
5811
5811
|
}
|
|
5812
5812
|
);
|
|
5813
|
-
case
|
|
5813
|
+
case Tu:
|
|
5814
5814
|
return E(
|
|
5815
5815
|
function(v) {
|
|
5816
5816
|
var b = 0;
|
|
@@ -5857,7 +5857,7 @@ function $v() {
|
|
|
5857
5857
|
g + '==="cw"||' + g + '==="ccw"',
|
|
5858
5858
|
"invalid frontFace, must be one of cw,ccw"
|
|
5859
5859
|
);
|
|
5860
|
-
}), b.def(g + '==="cw"?' +
|
|
5860
|
+
}), b.def(g + '==="cw"?' + zu + ":" + ps);
|
|
5861
5861
|
}
|
|
5862
5862
|
);
|
|
5863
5863
|
case ts:
|
|
@@ -6003,13 +6003,13 @@ function $v() {
|
|
|
6003
6003
|
'invalid size for attribute "' + A + '", must be 1,2,3,4',
|
|
6004
6004
|
c.commandStr
|
|
6005
6005
|
);
|
|
6006
|
-
var j = !!w.normalized,
|
|
6006
|
+
var j = !!w.normalized, ue = 0;
|
|
6007
6007
|
"type" in w && (m.commandParameter(
|
|
6008
6008
|
w.type,
|
|
6009
6009
|
si,
|
|
6010
6010
|
"invalid type for attribute " + A,
|
|
6011
6011
|
c.commandStr
|
|
6012
|
-
),
|
|
6012
|
+
), ue = si[w.type]);
|
|
6013
6013
|
var Ne = w.divisor | 0;
|
|
6014
6014
|
m.optional(function() {
|
|
6015
6015
|
"divisor" in w && (m.command(
|
|
@@ -6037,7 +6037,7 @@ function $v() {
|
|
|
6037
6037
|
ke
|
|
6038
6038
|
);
|
|
6039
6039
|
});
|
|
6040
|
-
}), v.buffer = b, v.state = Hi, v.size = $, v.normalized = j, v.type =
|
|
6040
|
+
}), v.buffer = b, v.state = Hi, v.size = $, v.normalized = j, v.type = ue || b.dtype, v.offset = F, v.stride = L, v.divisor = Ne;
|
|
6041
6041
|
}
|
|
6042
6042
|
}
|
|
6043
6043
|
I[A] = St(function(ke, be) {
|
|
@@ -6062,20 +6062,20 @@ function $v() {
|
|
|
6062
6062
|
'invalid dynamic attribute "' + A + '"'
|
|
6063
6063
|
);
|
|
6064
6064
|
});
|
|
6065
|
-
var
|
|
6065
|
+
var ue = {
|
|
6066
6066
|
isStream: b.def(!1)
|
|
6067
6067
|
}, Ne = new k();
|
|
6068
6068
|
Ne.state = Hi, Object.keys(Ne).forEach(function(U) {
|
|
6069
|
-
|
|
6069
|
+
ue[U] = b.def("" + Ne[U]);
|
|
6070
6070
|
});
|
|
6071
|
-
var ke =
|
|
6071
|
+
var ke = ue.buffer, be = ue.type;
|
|
6072
6072
|
b(
|
|
6073
6073
|
"if(",
|
|
6074
6074
|
$,
|
|
6075
6075
|
"(",
|
|
6076
6076
|
g,
|
|
6077
6077
|
")){",
|
|
6078
|
-
|
|
6078
|
+
ue.isStream,
|
|
6079
6079
|
"=true;",
|
|
6080
6080
|
ke,
|
|
6081
6081
|
"=",
|
|
@@ -6106,22 +6106,22 @@ function $v() {
|
|
|
6106
6106
|
'}else if("constant" in ',
|
|
6107
6107
|
g,
|
|
6108
6108
|
"){",
|
|
6109
|
-
|
|
6109
|
+
ue.state,
|
|
6110
6110
|
"=",
|
|
6111
6111
|
qa,
|
|
6112
6112
|
";",
|
|
6113
6113
|
"if(typeof " + g + '.constant === "number"){',
|
|
6114
|
-
|
|
6114
|
+
ue[$i[0]],
|
|
6115
6115
|
"=",
|
|
6116
6116
|
g,
|
|
6117
6117
|
".constant;",
|
|
6118
6118
|
$i.slice(1).map(function(U) {
|
|
6119
|
-
return
|
|
6119
|
+
return ue[U];
|
|
6120
6120
|
}).join("="),
|
|
6121
6121
|
"=0;",
|
|
6122
6122
|
"}else{",
|
|
6123
6123
|
$i.map(function(U, Ce) {
|
|
6124
|
-
return
|
|
6124
|
+
return ue[U] + "=" + g + ".constant.length>" + Ce + "?" + g + ".constant[" + Ce + "]:0;";
|
|
6125
6125
|
}).join(""),
|
|
6126
6126
|
"}}else{",
|
|
6127
6127
|
"if(",
|
|
@@ -6155,24 +6155,24 @@ function $v() {
|
|
|
6155
6155
|
".type]:",
|
|
6156
6156
|
ke,
|
|
6157
6157
|
".dtype;",
|
|
6158
|
-
|
|
6158
|
+
ue.normalized,
|
|
6159
6159
|
"=!!",
|
|
6160
6160
|
g,
|
|
6161
6161
|
".normalized;"
|
|
6162
6162
|
);
|
|
6163
6163
|
function Y(U) {
|
|
6164
|
-
b(
|
|
6164
|
+
b(ue[U], "=", g, ".", U, "|0;");
|
|
6165
6165
|
}
|
|
6166
6166
|
return Y("size"), Y("offset"), Y("stride"), Y("divisor"), b("}}"), b.exit(
|
|
6167
6167
|
"if(",
|
|
6168
|
-
|
|
6168
|
+
ue.isStream,
|
|
6169
6169
|
"){",
|
|
6170
6170
|
j,
|
|
6171
6171
|
".destroyStream(",
|
|
6172
6172
|
ke,
|
|
6173
6173
|
");",
|
|
6174
6174
|
"}"
|
|
6175
|
-
),
|
|
6175
|
+
), ue;
|
|
6176
6176
|
}
|
|
6177
6177
|
I[A] = Zt(w, E);
|
|
6178
6178
|
}), I;
|
|
@@ -6223,7 +6223,7 @@ function $v() {
|
|
|
6223
6223
|
U && (F[Y] = U);
|
|
6224
6224
|
}
|
|
6225
6225
|
$(Dn), $(Se(yo));
|
|
6226
|
-
var j = Object.keys(F).length > 0,
|
|
6226
|
+
var j = Object.keys(F).length > 0, ue = {
|
|
6227
6227
|
framebuffer: v,
|
|
6228
6228
|
draw: g,
|
|
6229
6229
|
shader: L,
|
|
@@ -6234,7 +6234,7 @@ function $v() {
|
|
|
6234
6234
|
useVAO: !1,
|
|
6235
6235
|
attributes: {}
|
|
6236
6236
|
};
|
|
6237
|
-
if (
|
|
6237
|
+
if (ue.profile = pe(p), ue.uniforms = tt(T, I), ue.drawVAO = ue.scopeVAO = g.vao, !ue.drawVAO && L.program && !E && _.angle_instanced_arrays && g.static.elements) {
|
|
6238
6238
|
var Ne = !0, ke = L.program.attributes.map(function(Y) {
|
|
6239
6239
|
var U = c.static[Y];
|
|
6240
6240
|
return Ne = Ne && !!U, U;
|
|
@@ -6244,12 +6244,12 @@ function $v() {
|
|
|
6244
6244
|
attributes: ke,
|
|
6245
6245
|
elements: g.static.elements
|
|
6246
6246
|
}));
|
|
6247
|
-
|
|
6247
|
+
ue.drawVAO = new Lt(null, null, null, function(Y, U) {
|
|
6248
6248
|
return Y.link(be);
|
|
6249
|
-
}),
|
|
6249
|
+
}), ue.useVAO = !0;
|
|
6250
6250
|
}
|
|
6251
6251
|
}
|
|
6252
|
-
return E ?
|
|
6252
|
+
return E ? ue.useVAO = !0 : ue.attributes = At(c, I), ue.context = ht(C), ue;
|
|
6253
6253
|
}
|
|
6254
6254
|
function Et(p, c, T) {
|
|
6255
6255
|
var C = p.shared, I = C.context, A = p.scope();
|
|
@@ -6269,7 +6269,7 @@ function $v() {
|
|
|
6269
6269
|
"){",
|
|
6270
6270
|
A,
|
|
6271
6271
|
".bindFramebuffer(",
|
|
6272
|
-
|
|
6272
|
+
Nu,
|
|
6273
6273
|
",",
|
|
6274
6274
|
F,
|
|
6275
6275
|
".framebuffer);"
|
|
@@ -6284,7 +6284,7 @@ function $v() {
|
|
|
6284
6284
|
"}else{",
|
|
6285
6285
|
A,
|
|
6286
6286
|
".bindFramebuffer(",
|
|
6287
|
-
|
|
6287
|
+
Nu,
|
|
6288
6288
|
",null);"
|
|
6289
6289
|
), xe && c(E, ".drawBuffersWEBGL(", g, ");"), c(
|
|
6290
6290
|
"}",
|
|
@@ -6321,8 +6321,8 @@ function $v() {
|
|
|
6321
6321
|
));
|
|
6322
6322
|
} else {
|
|
6323
6323
|
L = b.def(v, ".", F);
|
|
6324
|
-
var
|
|
6325
|
-
b(
|
|
6324
|
+
var ue = p.cond(L, "!==", E, ".", F);
|
|
6325
|
+
b(ue), F in X ? ue(
|
|
6326
6326
|
p.cond(L).then(I, ".enable(", X[F], ");").else(I, ".disable(", X[F], ");"),
|
|
6327
6327
|
E,
|
|
6328
6328
|
".",
|
|
@@ -6330,7 +6330,7 @@ function $v() {
|
|
|
6330
6330
|
"=",
|
|
6331
6331
|
L,
|
|
6332
6332
|
";"
|
|
6333
|
-
) :
|
|
6333
|
+
) : ue(
|
|
6334
6334
|
I,
|
|
6335
6335
|
".",
|
|
6336
6336
|
H[F],
|
|
@@ -6350,7 +6350,7 @@ function $v() {
|
|
|
6350
6350
|
}
|
|
6351
6351
|
function Gt(p, c, T, C) {
|
|
6352
6352
|
var I = p.shared, A = p.current, w = I.current, E = I.gl;
|
|
6353
|
-
|
|
6353
|
+
Uu(Object.keys(T)).forEach(function(v) {
|
|
6354
6354
|
var b = T[v];
|
|
6355
6355
|
if (!(C && !C(b))) {
|
|
6356
6356
|
var g = b.append(p, c);
|
|
@@ -6416,17 +6416,17 @@ function $v() {
|
|
|
6416
6416
|
");"
|
|
6417
6417
|
) : Y(v, ".endQuery();"));
|
|
6418
6418
|
}
|
|
6419
|
-
function
|
|
6419
|
+
function ue(Y) {
|
|
6420
6420
|
var U = c.def(E, ".profile");
|
|
6421
6421
|
c(E, ".profile=", Y, ";"), c.exit(E, ".profile=", U, ";");
|
|
6422
6422
|
}
|
|
6423
6423
|
var Ne;
|
|
6424
6424
|
if (b) {
|
|
6425
6425
|
if (Zn(b)) {
|
|
6426
|
-
b.enable ? ($(c), j(c.exit),
|
|
6426
|
+
b.enable ? ($(c), j(c.exit), ue("true")) : ue("false");
|
|
6427
6427
|
return;
|
|
6428
6428
|
}
|
|
6429
|
-
Ne = b.append(p, c),
|
|
6429
|
+
Ne = b.append(p, c), ue(Ne);
|
|
6430
6430
|
} else
|
|
6431
6431
|
Ne = c.def(E, ".profile");
|
|
6432
6432
|
var ke = p.block();
|
|
@@ -6455,7 +6455,7 @@ function $v() {
|
|
|
6455
6455
|
}
|
|
6456
6456
|
}
|
|
6457
6457
|
function E(v, b, g) {
|
|
6458
|
-
var F = A.gl, L = c.def(v, ".location"), $ = c.def(A.attributes, "[", L, "]"), j = g.state,
|
|
6458
|
+
var F = A.gl, L = c.def(v, ".location"), $ = c.def(A.attributes, "[", L, "]"), j = g.state, ue = g.buffer, Ne = [
|
|
6459
6459
|
g.x,
|
|
6460
6460
|
g.y,
|
|
6461
6461
|
g.z,
|
|
@@ -6495,7 +6495,7 @@ function $v() {
|
|
|
6495
6495
|
".bindBuffer(",
|
|
6496
6496
|
ji,
|
|
6497
6497
|
",",
|
|
6498
|
-
|
|
6498
|
+
ue,
|
|
6499
6499
|
".buffer);",
|
|
6500
6500
|
F,
|
|
6501
6501
|
".vertexAttribPointer(",
|
|
@@ -6576,7 +6576,7 @@ function $v() {
|
|
|
6576
6576
|
return;
|
|
6577
6577
|
F = g.append(p, c);
|
|
6578
6578
|
} else {
|
|
6579
|
-
if (!I(
|
|
6579
|
+
if (!I(Vu))
|
|
6580
6580
|
return;
|
|
6581
6581
|
var L = p.scopeAttrib(b);
|
|
6582
6582
|
m.optional(function() {
|
|
@@ -6598,9 +6598,9 @@ function $v() {
|
|
|
6598
6598
|
}
|
|
6599
6599
|
function ot(p, c, T, C, I, A) {
|
|
6600
6600
|
for (var w = p.shared, E = w.gl, v = {}, b, g = 0; g < C.length; ++g) {
|
|
6601
|
-
var F = C[g], L = F.name, $ = F.info.type, j = F.info.size,
|
|
6601
|
+
var F = C[g], L = F.name, $ = F.info.type, j = F.info.size, ue = T.uniforms[L];
|
|
6602
6602
|
if (j > 1) {
|
|
6603
|
-
if (!
|
|
6603
|
+
if (!ue)
|
|
6604
6604
|
continue;
|
|
6605
6605
|
var Ne = L.replace("[0]", "");
|
|
6606
6606
|
if (v[Ne])
|
|
@@ -6608,11 +6608,11 @@ function $v() {
|
|
|
6608
6608
|
v[Ne] = 1;
|
|
6609
6609
|
}
|
|
6610
6610
|
var ke = p.link(F), be = ke + ".location", Y;
|
|
6611
|
-
if (
|
|
6612
|
-
if (!I(
|
|
6611
|
+
if (ue) {
|
|
6612
|
+
if (!I(ue))
|
|
6613
6613
|
continue;
|
|
6614
|
-
if (Zn(
|
|
6615
|
-
var U =
|
|
6614
|
+
if (Zn(ue)) {
|
|
6615
|
+
var U = ue.value;
|
|
6616
6616
|
if (m.command(
|
|
6617
6617
|
U !== null && typeof U < "u",
|
|
6618
6618
|
'missing uniform "' + L + '"',
|
|
@@ -6748,9 +6748,9 @@ function $v() {
|
|
|
6748
6748
|
}
|
|
6749
6749
|
continue;
|
|
6750
6750
|
} else
|
|
6751
|
-
Y =
|
|
6751
|
+
Y = ue.append(p, c);
|
|
6752
6752
|
} else {
|
|
6753
|
-
if (!I(
|
|
6753
|
+
if (!I(Vu))
|
|
6754
6754
|
continue;
|
|
6755
6755
|
Y = c.def(w.uniforms, "[", h.id(L), "]");
|
|
6756
6756
|
}
|
|
@@ -6797,9 +6797,9 @@ function $v() {
|
|
|
6797
6797
|
p.commandStr
|
|
6798
6798
|
);
|
|
6799
6799
|
}
|
|
6800
|
-
function
|
|
6800
|
+
function Yu(Qt) {
|
|
6801
6801
|
m(!Array.isArray(Y), "must not specify a value type"), en(
|
|
6802
|
-
"typeof " + Y + '==="function"&&' + Y + '._reglType==="texture' + (Qt ===
|
|
6802
|
+
"typeof " + Y + '==="function"&&' + Y + '._reglType==="texture' + (Qt === Fu ? "2d" : "Cube") + '"',
|
|
6803
6803
|
"invalid texture type",
|
|
6804
6804
|
p.commandStr
|
|
6805
6805
|
);
|
|
@@ -6851,10 +6851,10 @@ function $v() {
|
|
|
6851
6851
|
sn(16, "number", j);
|
|
6852
6852
|
break;
|
|
6853
6853
|
case xr:
|
|
6854
|
-
|
|
6854
|
+
Yu(Fu);
|
|
6855
6855
|
break;
|
|
6856
6856
|
case br:
|
|
6857
|
-
|
|
6857
|
+
Yu(Ud);
|
|
6858
6858
|
break;
|
|
6859
6859
|
}
|
|
6860
6860
|
});
|
|
@@ -6939,16 +6939,16 @@ function $v() {
|
|
|
6939
6939
|
}).join("")), c(E, ".uniform", b, "(", be, ",", Qn.join(","), ");"), A && c("}");
|
|
6940
6940
|
} else {
|
|
6941
6941
|
if (m(!Array.isArray(Y), "uniform value must not be an array"), A) {
|
|
6942
|
-
var
|
|
6942
|
+
var qu = c.def();
|
|
6943
6943
|
c(
|
|
6944
6944
|
"if(!",
|
|
6945
6945
|
p.batchId,
|
|
6946
6946
|
"||",
|
|
6947
|
-
|
|
6947
|
+
qu,
|
|
6948
6948
|
"!==",
|
|
6949
6949
|
Y,
|
|
6950
6950
|
"){",
|
|
6951
|
-
|
|
6951
|
+
qu,
|
|
6952
6952
|
"=",
|
|
6953
6953
|
Y,
|
|
6954
6954
|
";"
|
|
@@ -6963,7 +6963,7 @@ function $v() {
|
|
|
6963
6963
|
function v() {
|
|
6964
6964
|
var Ce = E.elements, Ae, Me = c;
|
|
6965
6965
|
return Ce ? ((Ce.contextDep && C.contextDynamic || Ce.propDep) && (Me = T), Ae = Ce.append(p, Me), E.elementsActive && Me(
|
|
6966
|
-
"if(" + Ae + ")" + A + ".bindBuffer(" +
|
|
6966
|
+
"if(" + Ae + ")" + A + ".bindBuffer(" + ls + "," + Ae + ".buffer.buffer);"
|
|
6967
6967
|
)) : (Ae = Me.def(), Me(
|
|
6968
6968
|
Ae,
|
|
6969
6969
|
"=",
|
|
@@ -6976,7 +6976,7 @@ function $v() {
|
|
|
6976
6976
|
"){",
|
|
6977
6977
|
A,
|
|
6978
6978
|
".bindBuffer(",
|
|
6979
|
-
|
|
6979
|
+
ls,
|
|
6980
6980
|
",",
|
|
6981
6981
|
Ae,
|
|
6982
6982
|
".buffer.buffer);}",
|
|
@@ -6987,7 +6987,7 @@ function $v() {
|
|
|
6987
6987
|
"=",
|
|
6988
6988
|
p.shared.elements + ".getElements(" + I.vao,
|
|
6989
6989
|
".currentVAO.elements);",
|
|
6990
|
-
Z ? "" : "if(" + Ae + ")" + A + ".bindBuffer(" +
|
|
6990
|
+
Z ? "" : "if(" + Ae + ")" + A + ".bindBuffer(" + ls + "," + Ae + ".buffer.buffer);",
|
|
6991
6991
|
"}"
|
|
6992
6992
|
)), Ae;
|
|
6993
6993
|
}
|
|
@@ -7010,8 +7010,8 @@ function $v() {
|
|
|
7010
7010
|
return;
|
|
7011
7011
|
} else
|
|
7012
7012
|
T("if(", j, "){"), T.exit("}");
|
|
7013
|
-
var
|
|
7014
|
-
te && (
|
|
7013
|
+
var ue, Ne;
|
|
7014
|
+
te && (ue = F(bo), Ne = p.instancing);
|
|
7015
7015
|
var ke = g + ".type", be = E.elements && Zn(E.elements) && !E.vaoActive;
|
|
7016
7016
|
function Y() {
|
|
7017
7017
|
function Ce() {
|
|
@@ -7019,15 +7019,15 @@ function $v() {
|
|
|
7019
7019
|
L,
|
|
7020
7020
|
j,
|
|
7021
7021
|
ke,
|
|
7022
|
-
$ + "<<((" + ke + "-" +
|
|
7023
|
-
|
|
7022
|
+
$ + "<<((" + ke + "-" + hu + ")>>1)",
|
|
7023
|
+
ue
|
|
7024
7024
|
], ");");
|
|
7025
7025
|
}
|
|
7026
7026
|
function Ae() {
|
|
7027
7027
|
T(
|
|
7028
7028
|
Ne,
|
|
7029
7029
|
".drawArraysInstancedANGLE(",
|
|
7030
|
-
[L, $, j,
|
|
7030
|
+
[L, $, j, ue],
|
|
7031
7031
|
");"
|
|
7032
7032
|
);
|
|
7033
7033
|
}
|
|
@@ -7039,7 +7039,7 @@ function $v() {
|
|
|
7039
7039
|
L,
|
|
7040
7040
|
j,
|
|
7041
7041
|
ke,
|
|
7042
|
-
$ + "<<((" + ke + "-" +
|
|
7042
|
+
$ + "<<((" + ke + "-" + hu + ")>>1)"
|
|
7043
7043
|
] + ");");
|
|
7044
7044
|
}
|
|
7045
7045
|
function Ae() {
|
|
@@ -7047,7 +7047,7 @@ function $v() {
|
|
|
7047
7047
|
}
|
|
7048
7048
|
g && g !== "null" ? be ? Ce() : (T("if(", g, "){"), Ce(), T("}else{"), Ae(), T("}")) : Ae();
|
|
7049
7049
|
}
|
|
7050
|
-
te && (typeof
|
|
7050
|
+
te && (typeof ue != "number" || ue >= 0) ? typeof ue == "string" ? (T("if(", ue, ">0){"), Y(), T("}else if(", ue, "<0){"), U(), T("}")) : Y() : U();
|
|
7051
7051
|
}
|
|
7052
7052
|
function et(p, c, T, C, I) {
|
|
7053
7053
|
var A = Ue(), w = A.proc("body", I);
|
|
@@ -7137,7 +7137,7 @@ function $v() {
|
|
|
7137
7137
|
if (T.needsContext && Et(p, g, T.context), T.needsFramebuffer && Ct(p, g, T.framebuffer), Gt(p, g, T.state, F), T.profile && F(T.profile) && Ye(p, g, T, !1, !0), C)
|
|
7138
7138
|
T.useVAO ? T.drawVAO ? F(T.drawVAO) ? g(p.shared.vao, ".setVAO(", T.drawVAO.append(p, g), ");") : b(p.shared.vao, ".setVAO(", T.drawVAO.append(p, b), ");") : b(p.shared.vao, ".setVAO(", p.shared.vao, ".targetVAO);") : (b(p.shared.vao, ".setVAO(null);"), Bt(p, b, T, C.attributes, L), Bt(p, g, T, C.attributes, F)), ot(p, b, T, C.uniforms, L, !1), ot(p, g, T, C.uniforms, F, !0), Fe(p, b, g, T);
|
|
7139
7139
|
else {
|
|
7140
|
-
var $ = p.global.def("{}"), j = T.shader.progVar.append(p, g),
|
|
7140
|
+
var $ = p.global.def("{}"), j = T.shader.progVar.append(p, g), ue = g.def(j, ".id"), Ne = g.def($, "[", ue, "]");
|
|
7141
7141
|
g(
|
|
7142
7142
|
p.shared.gl,
|
|
7143
7143
|
".useProgram(",
|
|
@@ -7150,7 +7150,7 @@ function $v() {
|
|
|
7150
7150
|
"=",
|
|
7151
7151
|
$,
|
|
7152
7152
|
"[",
|
|
7153
|
-
|
|
7153
|
+
ue,
|
|
7154
7154
|
"]=",
|
|
7155
7155
|
p.link(function(ke) {
|
|
7156
7156
|
return et(
|
|
@@ -7234,7 +7234,7 @@ function $v() {
|
|
|
7234
7234
|
var T = p.proc("scope", 3);
|
|
7235
7235
|
p.batchId = "a2";
|
|
7236
7236
|
var C = p.shared, I = C.current;
|
|
7237
|
-
Et(p, T, c.context), c.framebuffer && c.framebuffer.append(p, T),
|
|
7237
|
+
Et(p, T, c.context), c.framebuffer && c.framebuffer.append(p, T), Uu(Object.keys(c.state)).forEach(function(w) {
|
|
7238
7238
|
var E = c.state[w], v = E.append(p, T);
|
|
7239
7239
|
pt(v) ? v.forEach(function(b, g) {
|
|
7240
7240
|
T.set(p.next[w], "[" + g + "]", b);
|
|
@@ -7304,8 +7304,8 @@ function $v() {
|
|
|
7304
7304
|
A.forEach(function($) {
|
|
7305
7305
|
var j = C[$];
|
|
7306
7306
|
if (kt.isDynamic(j)) {
|
|
7307
|
-
var
|
|
7308
|
-
L(b, ".", $, "=",
|
|
7307
|
+
var ue = F.invoke(L, j);
|
|
7308
|
+
L(b, ".", $, "=", ue, ";");
|
|
7309
7309
|
}
|
|
7310
7310
|
});
|
|
7311
7311
|
}
|
|
@@ -7404,8 +7404,8 @@ function $v() {
|
|
|
7404
7404
|
p.shared.vao,
|
|
7405
7405
|
".targetVAO);"
|
|
7406
7406
|
), Object.keys(X).forEach(function(L) {
|
|
7407
|
-
var $ = X[L], j = C.def(w, ".", L),
|
|
7408
|
-
|
|
7407
|
+
var $ = X[L], j = C.def(w, ".", L), ue = p.block();
|
|
7408
|
+
ue(
|
|
7409
7409
|
"if(",
|
|
7410
7410
|
j,
|
|
7411
7411
|
"){",
|
|
@@ -7423,7 +7423,7 @@ function $v() {
|
|
|
7423
7423
|
"=",
|
|
7424
7424
|
j,
|
|
7425
7425
|
";"
|
|
7426
|
-
), T(
|
|
7426
|
+
), T(ue), c(
|
|
7427
7427
|
"if(",
|
|
7428
7428
|
j,
|
|
7429
7429
|
"!==",
|
|
@@ -7431,43 +7431,43 @@ function $v() {
|
|
|
7431
7431
|
".",
|
|
7432
7432
|
L,
|
|
7433
7433
|
"){",
|
|
7434
|
-
|
|
7434
|
+
ue,
|
|
7435
7435
|
"}"
|
|
7436
7436
|
);
|
|
7437
7437
|
}), Object.keys(H).forEach(function(L) {
|
|
7438
|
-
var $ = H[L], j = ge[L],
|
|
7438
|
+
var $ = H[L], j = ge[L], ue, Ne, ke = p.block();
|
|
7439
7439
|
if (ke(A, ".", $, "("), pt(j)) {
|
|
7440
7440
|
var be = j.length;
|
|
7441
|
-
|
|
7441
|
+
ue = p.global.def(w, ".", L), Ne = p.global.def(E, ".", L), ke(
|
|
7442
7442
|
Wt(be, function(Y) {
|
|
7443
|
-
return
|
|
7443
|
+
return ue + "[" + Y + "]";
|
|
7444
7444
|
}),
|
|
7445
7445
|
");",
|
|
7446
7446
|
Wt(be, function(Y) {
|
|
7447
|
-
return Ne + "[" + Y + "]=" +
|
|
7447
|
+
return Ne + "[" + Y + "]=" + ue + "[" + Y + "];";
|
|
7448
7448
|
}).join("")
|
|
7449
7449
|
), c(
|
|
7450
7450
|
"if(",
|
|
7451
7451
|
Wt(be, function(Y) {
|
|
7452
|
-
return
|
|
7452
|
+
return ue + "[" + Y + "]!==" + Ne + "[" + Y + "]";
|
|
7453
7453
|
}).join("||"),
|
|
7454
7454
|
"){",
|
|
7455
7455
|
ke,
|
|
7456
7456
|
"}"
|
|
7457
7457
|
);
|
|
7458
7458
|
} else
|
|
7459
|
-
|
|
7460
|
-
|
|
7459
|
+
ue = C.def(w, ".", L), Ne = C.def(E, ".", L), ke(
|
|
7460
|
+
ue,
|
|
7461
7461
|
");",
|
|
7462
7462
|
E,
|
|
7463
7463
|
".",
|
|
7464
7464
|
L,
|
|
7465
7465
|
"=",
|
|
7466
|
-
|
|
7466
|
+
ue,
|
|
7467
7467
|
";"
|
|
7468
7468
|
), c(
|
|
7469
7469
|
"if(",
|
|
7470
|
-
|
|
7470
|
+
ue,
|
|
7471
7471
|
"!==",
|
|
7472
7472
|
Ne,
|
|
7473
7473
|
"){",
|
|
@@ -7493,7 +7493,7 @@ function $v() {
|
|
|
7493
7493
|
maxTextureUnits: 0
|
|
7494
7494
|
};
|
|
7495
7495
|
}
|
|
7496
|
-
var rm = 34918, om = 34919, $
|
|
7496
|
+
var rm = 34918, om = 34919, $u = 35007, am = function(a, h) {
|
|
7497
7497
|
if (!h.ext_disjoint_timer_query)
|
|
7498
7498
|
return null;
|
|
7499
7499
|
var _ = [];
|
|
@@ -7506,10 +7506,10 @@ function $v() {
|
|
|
7506
7506
|
var R = [];
|
|
7507
7507
|
function B(te) {
|
|
7508
7508
|
var xe = M();
|
|
7509
|
-
h.ext_disjoint_timer_query.beginQueryEXT($
|
|
7509
|
+
h.ext_disjoint_timer_query.beginQueryEXT($u, xe), R.push(xe), J(R.length - 1, R.length, te);
|
|
7510
7510
|
}
|
|
7511
7511
|
function K() {
|
|
7512
|
-
h.ext_disjoint_timer_query.endQueryEXT($
|
|
7512
|
+
h.ext_disjoint_timer_query.endQueryEXT($u);
|
|
7513
7513
|
}
|
|
7514
7514
|
function Q() {
|
|
7515
7515
|
this.startQueryIndex = -1, this.endQueryIndex = -1, this.sum = 0, this.stats = null;
|
|
@@ -7521,10 +7521,10 @@ function $v() {
|
|
|
7521
7521
|
function re(te) {
|
|
7522
7522
|
ie.push(te);
|
|
7523
7523
|
}
|
|
7524
|
-
var
|
|
7524
|
+
var le = [];
|
|
7525
7525
|
function J(te, xe, Z) {
|
|
7526
7526
|
var ge = oe();
|
|
7527
|
-
ge.startQueryIndex = te, ge.endQueryIndex = xe, ge.sum = 0, ge.stats = Z,
|
|
7527
|
+
ge.startQueryIndex = te, ge.endQueryIndex = xe, ge.sum = 0, ge.stats = Z, le.push(ge);
|
|
7528
7528
|
}
|
|
7529
7529
|
var ne = [], k = [];
|
|
7530
7530
|
function N() {
|
|
@@ -7536,13 +7536,13 @@ function $v() {
|
|
|
7536
7536
|
var me = R[xe];
|
|
7537
7537
|
h.ext_disjoint_timer_query.getQueryObjectEXT(me, om) ? (ge += h.ext_disjoint_timer_query.getQueryObjectEXT(me, rm), W(me)) : R[te++] = me, ne[xe + 1] = ge, k[xe + 1] = te;
|
|
7538
7538
|
}
|
|
7539
|
-
for (R.length = te, te = 0, xe = 0; xe <
|
|
7540
|
-
var Le =
|
|
7539
|
+
for (R.length = te, te = 0, xe = 0; xe < le.length; ++xe) {
|
|
7540
|
+
var Le = le[xe], X = Le.startQueryIndex, H = Le.endQueryIndex;
|
|
7541
7541
|
Le.sum += ne[H] - ne[X];
|
|
7542
7542
|
var Se = k[X], ce = k[H];
|
|
7543
|
-
ce === Se ? (Le.stats.gpuTime += Le.sum / 1e6, re(Le)) : (Le.startQueryIndex = Se, Le.endQueryIndex = ce,
|
|
7543
|
+
ce === Se ? (Le.stats.gpuTime += Le.sum / 1e6, re(Le)) : (Le.startQueryIndex = Se, Le.endQueryIndex = ce, le[te++] = Le);
|
|
7544
7544
|
}
|
|
7545
|
-
|
|
7545
|
+
le.length = te;
|
|
7546
7546
|
}
|
|
7547
7547
|
}
|
|
7548
7548
|
return {
|
|
@@ -7563,8 +7563,8 @@ function $v() {
|
|
|
7563
7563
|
R.length = 0, _.length = 0;
|
|
7564
7564
|
}
|
|
7565
7565
|
};
|
|
7566
|
-
}, sm = 16384, fm = 256,
|
|
7567
|
-
function
|
|
7566
|
+
}, sm = 16384, fm = 256, um = 1024, lm = 34962, Hu = "webglcontextlost", Wu = "webglcontextrestored", Xu = 1, cm = 2, hm = 3;
|
|
7567
|
+
function ju(a, h) {
|
|
7568
7568
|
for (var _ = 0; _ < a.length; ++_)
|
|
7569
7569
|
if (a[_] === h)
|
|
7570
7570
|
return _;
|
|
@@ -7577,15 +7577,15 @@ function $v() {
|
|
|
7577
7577
|
var _ = h.gl, M = _.getContextAttributes(), W = _.isContextLost(), R = $n(_, h);
|
|
7578
7578
|
if (!R)
|
|
7579
7579
|
return null;
|
|
7580
|
-
var B = ga(), K = im(), Q = R.extensions, ie = am(_, Q), oe = Ii(), re = _.drawingBufferWidth,
|
|
7580
|
+
var B = ga(), K = im(), Q = R.extensions, ie = am(_, Q), oe = Ii(), re = _.drawingBufferWidth, le = _.drawingBufferHeight, J = {
|
|
7581
7581
|
tick: 0,
|
|
7582
7582
|
time: 0,
|
|
7583
7583
|
viewportWidth: re,
|
|
7584
|
-
viewportHeight:
|
|
7584
|
+
viewportHeight: le,
|
|
7585
7585
|
framebufferWidth: re,
|
|
7586
|
-
framebufferHeight:
|
|
7586
|
+
framebufferHeight: le,
|
|
7587
7587
|
drawingBufferWidth: re,
|
|
7588
|
-
drawingBufferHeight:
|
|
7588
|
+
drawingBufferHeight: le,
|
|
7589
7589
|
pixelRatio: h.pixelRatio
|
|
7590
7590
|
}, ne = {}, k = {
|
|
7591
7591
|
elements: null,
|
|
@@ -7681,9 +7681,9 @@ function $v() {
|
|
|
7681
7681
|
et();
|
|
7682
7682
|
});
|
|
7683
7683
|
}
|
|
7684
|
-
he && (he.addEventListener(
|
|
7684
|
+
he && (he.addEventListener(Hu, vt, !1), he.addEventListener(Wu, yt, !1));
|
|
7685
7685
|
function tt() {
|
|
7686
|
-
de.length = 0, Je(), he && (he.removeEventListener(
|
|
7686
|
+
de.length = 0, Je(), he && (he.removeEventListener(Hu, vt), he.removeEventListener(Wu, yt)), me.clear(), H.clear(), X.clear(), Z.clear(), Le.clear(), xe.clear(), te.clear(), ie && ie.clear(), pe.forEach(function(Fe) {
|
|
7687
7687
|
Fe();
|
|
7688
7688
|
});
|
|
7689
7689
|
}
|
|
@@ -7762,13 +7762,13 @@ function $v() {
|
|
|
7762
7762
|
});
|
|
7763
7763
|
}
|
|
7764
7764
|
var ht = H.setFBO = At({
|
|
7765
|
-
framebuffer: kt.define.call(null,
|
|
7765
|
+
framebuffer: kt.define.call(null, Xu, "framebuffer")
|
|
7766
7766
|
});
|
|
7767
7767
|
function Tt(Fe, et) {
|
|
7768
7768
|
var it = 0;
|
|
7769
7769
|
Se.procs.poll();
|
|
7770
7770
|
var bt = et.color;
|
|
7771
|
-
bt && (_.clearColor(+bt[0] || 0, +bt[1] || 0, +bt[2] || 0, +bt[3] || 0), it |= sm), "depth" in et && (_.clearDepth(+et.depth), it |= fm), "stencil" in et && (_.clearStencil(et.stencil | 0), it |=
|
|
7771
|
+
bt && (_.clearColor(+bt[0] || 0, +bt[1] || 0, +bt[2] || 0, +bt[3] || 0), it |= sm), "depth" in et && (_.clearDepth(+et.depth), it |= fm), "stencil" in et && (_.clearStencil(et.stencil | 0), it |= um), m(!!it, "called regl.clear with no buffer specified"), _.clear(it);
|
|
7772
7772
|
}
|
|
7773
7773
|
function Et(Fe) {
|
|
7774
7774
|
if (m(
|
|
@@ -7788,10 +7788,10 @@ function $v() {
|
|
|
7788
7788
|
function Ct(Fe) {
|
|
7789
7789
|
m.type(Fe, "function", "regl.frame() callback must be a function"), de.push(Fe);
|
|
7790
7790
|
function et() {
|
|
7791
|
-
var it =
|
|
7791
|
+
var it = ju(de, Fe);
|
|
7792
7792
|
m(it >= 0, "cannot cancel a frame twice");
|
|
7793
7793
|
function bt() {
|
|
7794
|
-
var Tn =
|
|
7794
|
+
var Tn = ju(de, bt);
|
|
7795
7795
|
de[Tn] = de[de.length - 1], de.length -= 1, de.length <= 0 && Je();
|
|
7796
7796
|
}
|
|
7797
7797
|
de[it] = bt;
|
|
@@ -7846,14 +7846,14 @@ function $v() {
|
|
|
7846
7846
|
// Clear current FBO
|
|
7847
7847
|
clear: Et,
|
|
7848
7848
|
// Short cuts for dynamic variables
|
|
7849
|
-
prop: kt.define.bind(null,
|
|
7849
|
+
prop: kt.define.bind(null, Xu),
|
|
7850
7850
|
context: kt.define.bind(null, cm),
|
|
7851
7851
|
this: kt.define.bind(null, hm),
|
|
7852
7852
|
// executes an empty draw command
|
|
7853
7853
|
draw: At({}),
|
|
7854
7854
|
// Resources
|
|
7855
7855
|
buffer: function(Fe) {
|
|
7856
|
-
return te.create(Fe,
|
|
7856
|
+
return te.create(Fe, lm, !1, !1);
|
|
7857
7857
|
},
|
|
7858
7858
|
elements: function(Fe) {
|
|
7859
7859
|
return xe.create(Fe, !1);
|
|
@@ -7952,14 +7952,14 @@ const Wv = /* @__PURE__ */ nf(Hv), Xv = "#b3b3b3", jv = void 0, Rs = void 0, qv
|
|
|
7952
7952
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
7953
7953
|
const {
|
|
7954
7954
|
entries: xc,
|
|
7955
|
-
setPrototypeOf:
|
|
7955
|
+
setPrototypeOf: dl,
|
|
7956
7956
|
isFrozen: ig,
|
|
7957
7957
|
getPrototypeOf: rg,
|
|
7958
7958
|
getOwnPropertyDescriptor: og
|
|
7959
7959
|
} = Object;
|
|
7960
7960
|
let {
|
|
7961
7961
|
freeze: jt,
|
|
7962
|
-
seal:
|
|
7962
|
+
seal: un,
|
|
7963
7963
|
create: bc
|
|
7964
7964
|
} = Object, {
|
|
7965
7965
|
apply: Ms,
|
|
@@ -7968,7 +7968,7 @@ let {
|
|
|
7968
7968
|
jt || (jt = function(e) {
|
|
7969
7969
|
return e;
|
|
7970
7970
|
});
|
|
7971
|
-
|
|
7971
|
+
un || (un = function(e) {
|
|
7972
7972
|
return e;
|
|
7973
7973
|
});
|
|
7974
7974
|
Ms || (Ms = function(e, n, i) {
|
|
@@ -7977,7 +7977,7 @@ Ms || (Ms = function(e, n, i) {
|
|
|
7977
7977
|
Os || (Os = function(e, n) {
|
|
7978
7978
|
return new e(...n);
|
|
7979
7979
|
});
|
|
7980
|
-
const Mo = qt(Array.prototype.forEach), ag = qt(Array.prototype.lastIndexOf),
|
|
7980
|
+
const Mo = qt(Array.prototype.forEach), ag = qt(Array.prototype.lastIndexOf), ml = qt(Array.prototype.pop), Tr = qt(Array.prototype.push), sg = qt(Array.prototype.splice), Xo = qt(String.prototype.toLowerCase), xs = qt(String.prototype.toString), pl = qt(String.prototype.match), wr = qt(String.prototype.replace), fg = qt(String.prototype.indexOf), ug = qt(String.prototype.trim), mn = qt(Object.prototype.hasOwnProperty), Xt = qt(RegExp.prototype.test), Ar = lg(TypeError);
|
|
7981
7981
|
function qt(t) {
|
|
7982
7982
|
return function(e) {
|
|
7983
7983
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -7986,7 +7986,7 @@ function qt(t) {
|
|
|
7986
7986
|
return Ms(t, e, i);
|
|
7987
7987
|
};
|
|
7988
7988
|
}
|
|
7989
|
-
function
|
|
7989
|
+
function lg(t) {
|
|
7990
7990
|
return function() {
|
|
7991
7991
|
for (var e = arguments.length, n = new Array(e), i = 0; i < e; i++)
|
|
7992
7992
|
n[i] = arguments[i];
|
|
@@ -7995,7 +7995,7 @@ function ug(t) {
|
|
|
7995
7995
|
}
|
|
7996
7996
|
function rt(t, e) {
|
|
7997
7997
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Xo;
|
|
7998
|
-
|
|
7998
|
+
dl && dl(t, null);
|
|
7999
7999
|
let i = e.length;
|
|
8000
8000
|
for (; i--; ) {
|
|
8001
8001
|
let r = e[i];
|
|
@@ -8034,14 +8034,14 @@ function Er(t, e) {
|
|
|
8034
8034
|
}
|
|
8035
8035
|
return n;
|
|
8036
8036
|
}
|
|
8037
|
-
const
|
|
8037
|
+
const vl = jt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), bs = jt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), _s = jt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), hg = jt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ss = jt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), dg = jt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), gl = jt(["#text"]), yl = jt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ts = jt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), xl = jt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Oo = jt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), mg = un(/\{\{[\w\W]*|[\w\W]*\}\}/gm), pg = un(/<%[\w\W]*|[\w\W]*%>/gm), vg = un(/\$\{[\w\W]*/gm), gg = un(/^data-[\-\w.\u00B7-\uFFFF]+$/), yg = un(/^aria-[\-\w]+$/), _c = un(
|
|
8038
8038
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
8039
8039
|
// eslint-disable-line no-useless-escape
|
|
8040
|
-
), xg =
|
|
8040
|
+
), xg = un(/^(?:\w+script|data):/i), bg = un(
|
|
8041
8041
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
8042
8042
|
// eslint-disable-line no-control-regex
|
|
8043
|
-
), Sc =
|
|
8044
|
-
var
|
|
8043
|
+
), Sc = un(/^html$/i), _g = un(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
8044
|
+
var bl = /* @__PURE__ */ Object.freeze({
|
|
8045
8045
|
__proto__: null,
|
|
8046
8046
|
ARIA_ATTR: yg,
|
|
8047
8047
|
ATTR_WHITESPACE: bg,
|
|
@@ -8082,7 +8082,7 @@ const Cr = {
|
|
|
8082
8082
|
} catch {
|
|
8083
8083
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
8084
8084
|
}
|
|
8085
|
-
},
|
|
8085
|
+
}, _l = function() {
|
|
8086
8086
|
return {
|
|
8087
8087
|
afterSanitizeAttributes: [],
|
|
8088
8088
|
afterSanitizeElements: [],
|
|
@@ -8107,13 +8107,13 @@ function Tc() {
|
|
|
8107
8107
|
DocumentFragment: o,
|
|
8108
8108
|
HTMLTemplateElement: s,
|
|
8109
8109
|
Node: f,
|
|
8110
|
-
Element:
|
|
8111
|
-
NodeFilter:
|
|
8110
|
+
Element: u,
|
|
8111
|
+
NodeFilter: l,
|
|
8112
8112
|
NamedNodeMap: d = t.NamedNodeMap || t.MozNamedAttrMap,
|
|
8113
8113
|
HTMLFormElement: y,
|
|
8114
8114
|
DOMParser: S,
|
|
8115
8115
|
trustedTypes: D
|
|
8116
|
-
} = t, q =
|
|
8116
|
+
} = t, q = u.prototype, Te = Er(q, "cloneNode"), we = Er(q, "remove"), fe = Er(q, "nextSibling"), Oe = Er(q, "childNodes"), Ve = Er(q, "parentNode");
|
|
8117
8117
|
if (typeof s == "function") {
|
|
8118
8118
|
const $e = n.createElement("template");
|
|
8119
8119
|
$e.content && $e.content.ownerDocument && (n = $e.content.ownerDocument);
|
|
@@ -8125,9 +8125,9 @@ function Tc() {
|
|
|
8125
8125
|
createDocumentFragment: Xe,
|
|
8126
8126
|
getElementsByTagName: nt
|
|
8127
8127
|
} = n, {
|
|
8128
|
-
importNode:
|
|
8128
|
+
importNode: ut
|
|
8129
8129
|
} = i;
|
|
8130
|
-
let Ee =
|
|
8130
|
+
let Ee = _l();
|
|
8131
8131
|
e.isSupported = typeof xc == "function" && typeof Ve == "function" && Ie && Ie.createHTMLDocument !== void 0;
|
|
8132
8132
|
const {
|
|
8133
8133
|
MUSTACHE_EXPR: ct,
|
|
@@ -8138,13 +8138,13 @@ function Tc() {
|
|
|
8138
8138
|
IS_SCRIPT_OR_DATA: De,
|
|
8139
8139
|
ATTR_WHITESPACE: qe,
|
|
8140
8140
|
CUSTOM_ELEMENT: je
|
|
8141
|
-
} =
|
|
8141
|
+
} = bl;
|
|
8142
8142
|
let {
|
|
8143
8143
|
IS_ALLOWED_URI: Qe
|
|
8144
|
-
} =
|
|
8145
|
-
const dt = rt({}, [...
|
|
8146
|
-
let
|
|
8147
|
-
const _t = rt({}, [...
|
|
8144
|
+
} = bl, Ze = null;
|
|
8145
|
+
const dt = rt({}, [...vl, ...bs, ..._s, ...Ss, ...gl]);
|
|
8146
|
+
let lt = null;
|
|
8147
|
+
const _t = rt({}, [...yl, ...Ts, ...xl, ...Oo]);
|
|
8148
8148
|
let at = Object.seal(bc(null, {
|
|
8149
8149
|
tagNameCheck: {
|
|
8150
8150
|
writable: !0,
|
|
@@ -8185,7 +8185,7 @@ function Tc() {
|
|
|
8185
8185
|
let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8186
8186
|
if (!($n && $n === P)) {
|
|
8187
8187
|
if ((!P || typeof P != "object") && (P = {}), P = Rn(P), oi = // eslint-disable-next-line unicorn/prefer-includes
|
|
8188
|
-
Vr.indexOf(P.PARSER_MEDIA_TYPE) === -1 ? $r : P.PARSER_MEDIA_TYPE, It = oi === "application/xhtml+xml" ? xs : Xo, Ze = mn(P, "ALLOWED_TAGS") ? rt({}, P.ALLOWED_TAGS, It) : dt,
|
|
8188
|
+
Vr.indexOf(P.PARSER_MEDIA_TYPE) === -1 ? $r : P.PARSER_MEDIA_TYPE, It = oi === "application/xhtml+xml" ? xs : Xo, Ze = mn(P, "ALLOWED_TAGS") ? rt({}, P.ALLOWED_TAGS, It) : dt, lt = mn(P, "ALLOWED_ATTR") ? rt({}, P.ALLOWED_ATTR, It) : _t, Ii = mn(P, "ALLOWED_NAMESPACES") ? rt({}, P.ALLOWED_NAMESPACES, xs) : ga, In = mn(P, "ADD_URI_SAFE_ATTR") ? rt(Rn(tr), P.ADD_URI_SAFE_ATTR, It) : tr, bn = mn(P, "ADD_DATA_URI_TAGS") ? rt(Rn(er), P.ADD_DATA_URI_TAGS, It) : er, Vn = mn(P, "FORBID_CONTENTS") ? rt({}, P.FORBID_CONTENTS, It) : Ur, Vt = mn(P, "FORBID_TAGS") ? rt({}, P.FORBID_TAGS, It) : Rn({}), $t = mn(P, "FORBID_ATTR") ? rt({}, P.FORBID_ATTR, It) : Rn({}), Un = mn(P, "USE_PROFILES") ? P.USE_PROFILES : !1, Yt = P.ALLOW_ARIA_ATTR !== !1, Pn = P.ALLOW_DATA_ATTR !== !1, Nr = P.ALLOW_UNKNOWN_PROTOCOLS || !1, Gr = P.ALLOW_SELF_CLOSE_IN_ATTR !== !1, kn = P.SAFE_FOR_TEMPLATES || !1, ei = P.SAFE_FOR_XML !== !1, xn = P.WHOLE_DOCUMENT || !1, Bn = P.RETURN_DOM || !1, Rt = P.RETURN_DOM_FRAGMENT || !1, ti = P.RETURN_TRUSTED_TYPE || !1, Ci = P.FORCE_BODY || !1, ni = P.SANITIZE_DOM !== !1, Br = P.SANITIZE_NAMED_PROPS || !1, m = P.KEEP_CONTENT !== !1, ii = P.IN_PLACE || !1, Qe = P.ALLOWED_URI_REGEXP || _c, kt = P.NAMESPACE || rn, Li = P.MATHML_TEXT_INTEGRATION_POINTS || Li, Di = P.HTML_INTEGRATION_POINTS || Di, at = P.CUSTOM_ELEMENT_HANDLING || {}, P.CUSTOM_ELEMENT_HANDLING && Hr(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (at.tagNameCheck = P.CUSTOM_ELEMENT_HANDLING.tagNameCheck), P.CUSTOM_ELEMENT_HANDLING && Hr(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (at.attributeNameCheck = P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), P.CUSTOM_ELEMENT_HANDLING && typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (at.allowCustomizedBuiltInElements = P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), kn && (Pn = !1), Rt && (Bn = !0), Un && (Ze = rt({}, gl), lt = [], Un.html === !0 && (rt(Ze, vl), rt(lt, yl)), Un.svg === !0 && (rt(Ze, bs), rt(lt, Ts), rt(lt, Oo)), Un.svgFilters === !0 && (rt(Ze, _s), rt(lt, Ts), rt(lt, Oo)), Un.mathMl === !0 && (rt(Ze, Ss), rt(lt, xl), rt(lt, Oo))), P.ADD_TAGS && (Ze === dt && (Ze = Rn(Ze)), rt(Ze, P.ADD_TAGS, It)), P.ADD_ATTR && (lt === _t && (lt = Rn(lt)), rt(lt, P.ADD_ATTR, It)), P.ADD_URI_SAFE_ATTR && rt(In, P.ADD_URI_SAFE_ATTR, It), P.FORBID_CONTENTS && (Vn === Ur && (Vn = Rn(Vn)), rt(Vn, P.FORBID_CONTENTS, It)), m && (Ze["#text"] = !0), xn && rt(Ze, ["html", "head", "body"]), Ze.table && (rt(Ze, ["tbody"]), delete Vt.tbody), P.TRUSTED_TYPES_POLICY) {
|
|
8189
8189
|
if (typeof P.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
8190
8190
|
throw Ar('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
8191
8191
|
if (typeof P.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -8240,7 +8240,7 @@ function Tc() {
|
|
|
8240
8240
|
if (Ci)
|
|
8241
8241
|
P = "<remove></remove>" + P;
|
|
8242
8242
|
else {
|
|
8243
|
-
const wt =
|
|
8243
|
+
const wt = pl(P, /^[\r\n\t ]+/);
|
|
8244
8244
|
ze = wt && wt[0];
|
|
8245
8245
|
}
|
|
8246
8246
|
oi === "application/xhtml+xml" && kt === rn && (P = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + P + "</body></html>");
|
|
@@ -8264,7 +8264,7 @@ function Tc() {
|
|
|
8264
8264
|
P.ownerDocument || P,
|
|
8265
8265
|
P,
|
|
8266
8266
|
// eslint-disable-next-line no-bitwise
|
|
8267
|
-
|
|
8267
|
+
l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
|
|
8268
8268
|
null
|
|
8269
8269
|
);
|
|
8270
8270
|
}, Fi = function(P) {
|
|
@@ -8272,17 +8272,17 @@ function Tc() {
|
|
|
8272
8272
|
}, gt = function(P) {
|
|
8273
8273
|
return typeof f == "function" && P instanceof f;
|
|
8274
8274
|
};
|
|
8275
|
-
function
|
|
8275
|
+
function ln($e, P, ve) {
|
|
8276
8276
|
Mo($e, (ze) => {
|
|
8277
8277
|
ze.call(e, P, ve, $n);
|
|
8278
8278
|
});
|
|
8279
8279
|
}
|
|
8280
8280
|
const qr = function(P) {
|
|
8281
8281
|
let ve = null;
|
|
8282
|
-
if (
|
|
8282
|
+
if (ln(Ee.beforeSanitizeElements, P, null), Fi(P))
|
|
8283
8283
|
return on(P), !0;
|
|
8284
8284
|
const ze = It(P.nodeName);
|
|
8285
|
-
if (
|
|
8285
|
+
if (ln(Ee.uponSanitizeElement, P, {
|
|
8286
8286
|
tagName: ze,
|
|
8287
8287
|
allowedTags: Ze
|
|
8288
8288
|
}), ei && P.hasChildNodes() && !gt(P.firstElementChild) && Xt(/<[/\w!]/g, P.innerHTML) && Xt(/<[/\w!]/g, P.textContent) || P.nodeType === Cr.progressingInstruction || ei && P.nodeType === Cr.comment && Xt(/<[/\w]/g, P.data))
|
|
@@ -8302,17 +8302,17 @@ function Tc() {
|
|
|
8302
8302
|
}
|
|
8303
8303
|
return on(P), !0;
|
|
8304
8304
|
}
|
|
8305
|
-
return P instanceof
|
|
8305
|
+
return P instanceof u && !xa(P) || (ze === "noscript" || ze === "noembed" || ze === "noframes") && Xt(/<\/no(script|embed|frames)/i, P.innerHTML) ? (on(P), !0) : (kn && P.nodeType === Cr.text && (ve = P.textContent, Mo([ct, ft, G], (mt) => {
|
|
8306
8306
|
ve = wr(ve, mt, " ");
|
|
8307
8307
|
}), P.textContent !== ve && (Tr(e.removed, {
|
|
8308
8308
|
element: P.cloneNode()
|
|
8309
|
-
}), P.textContent = ve)),
|
|
8309
|
+
}), P.textContent = ve)), ln(Ee.afterSanitizeElements, P, null), !1);
|
|
8310
8310
|
}, Yr = function(P, ve, ze) {
|
|
8311
8311
|
if (ni && (ve === "id" || ve === "name") && (ze in n || ze in Wt))
|
|
8312
8312
|
return !1;
|
|
8313
8313
|
if (!(Pn && !$t[ve] && Xt(Pe, ve))) {
|
|
8314
8314
|
if (!(Yt && Xt(se, ve))) {
|
|
8315
|
-
if (!
|
|
8315
|
+
if (!lt[ve] || $t[ve]) {
|
|
8316
8316
|
if (
|
|
8317
8317
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
8318
8318
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -8335,9 +8335,9 @@ function Tc() {
|
|
|
8335
8335
|
}
|
|
8336
8336
|
return !0;
|
|
8337
8337
|
}, Zr = function(P) {
|
|
8338
|
-
return P !== "annotation-xml" &&
|
|
8338
|
+
return P !== "annotation-xml" && pl(P, je);
|
|
8339
8339
|
}, Qr = function(P) {
|
|
8340
|
-
|
|
8340
|
+
ln(Ee.beforeSanitizeAttributes, P, null);
|
|
8341
8341
|
const {
|
|
8342
8342
|
attributes: ve
|
|
8343
8343
|
} = P;
|
|
@@ -8347,7 +8347,7 @@ function Tc() {
|
|
|
8347
8347
|
attrName: "",
|
|
8348
8348
|
attrValue: "",
|
|
8349
8349
|
keepAttr: !0,
|
|
8350
|
-
allowedAttributes:
|
|
8350
|
+
allowedAttributes: lt,
|
|
8351
8351
|
forceKeepAttr: void 0
|
|
8352
8352
|
};
|
|
8353
8353
|
let mt = ve.length;
|
|
@@ -8357,8 +8357,8 @@ function Tc() {
|
|
|
8357
8357
|
namespaceURI: Ht,
|
|
8358
8358
|
value: cn
|
|
8359
8359
|
} = Mt, ai = It(wt), rr = cn;
|
|
8360
|
-
let Ot = wt === "value" ? rr :
|
|
8361
|
-
if (ze.attrName = ai, ze.attrValue = Ot, ze.keepAttr = !0, ze.forceKeepAttr = void 0,
|
|
8360
|
+
let Ot = wt === "value" ? rr : ug(rr);
|
|
8361
|
+
if (ze.attrName = ai, ze.attrValue = Ot, ze.keepAttr = !0, ze.forceKeepAttr = void 0, ln(Ee.uponSanitizeAttribute, P, ze), Ot = ze.attrValue, Br && (ai === "id" || ai === "name") && (Hn(wt, P), Ot = va + Ot), ei && Xt(/((--!?|])>)|<\/(style|title)/i, Ot)) {
|
|
8362
8362
|
Hn(wt, P);
|
|
8363
8363
|
continue;
|
|
8364
8364
|
}
|
|
@@ -8393,18 +8393,18 @@ function Tc() {
|
|
|
8393
8393
|
}
|
|
8394
8394
|
if (Ot !== rr)
|
|
8395
8395
|
try {
|
|
8396
|
-
Ht ? P.setAttributeNS(Ht, wt, Ot) : P.setAttribute(wt, Ot), Fi(P) ? on(P) :
|
|
8396
|
+
Ht ? P.setAttributeNS(Ht, wt, Ot) : P.setAttribute(wt, Ot), Fi(P) ? on(P) : ml(e.removed);
|
|
8397
8397
|
} catch {
|
|
8398
8398
|
Hn(wt, P);
|
|
8399
8399
|
}
|
|
8400
8400
|
}
|
|
8401
|
-
|
|
8401
|
+
ln(Ee.afterSanitizeAttributes, P, null);
|
|
8402
8402
|
}, ba = function $e(P) {
|
|
8403
8403
|
let ve = null;
|
|
8404
8404
|
const ze = ir(P);
|
|
8405
|
-
for (
|
|
8406
|
-
|
|
8407
|
-
|
|
8405
|
+
for (ln(Ee.beforeSanitizeShadowDOM, P, null); ve = ze.nextNode(); )
|
|
8406
|
+
ln(Ee.uponSanitizeShadowNode, ve, null), qr(ve), Qr(ve), ve.content instanceof o && $e(ve.content);
|
|
8407
|
+
ln(Ee.afterSanitizeShadowDOM, P, null);
|
|
8408
8408
|
};
|
|
8409
8409
|
return e.sanitize = function($e) {
|
|
8410
8410
|
let P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ve = null, ze = null, mt = null, Mt = null;
|
|
@@ -8443,7 +8443,7 @@ function Tc() {
|
|
|
8443
8443
|
Mt.appendChild(ve.firstChild);
|
|
8444
8444
|
else
|
|
8445
8445
|
Mt = ve;
|
|
8446
|
-
return (
|
|
8446
|
+
return (lt.shadowroot || lt.shadowrootmode) && (Mt = ut.call(i, Mt, !0)), Mt;
|
|
8447
8447
|
}
|
|
8448
8448
|
let Ht = xn ? ve.outerHTML : ve.innerHTML;
|
|
8449
8449
|
return xn && Ze["!doctype"] && ve.ownerDocument && ve.ownerDocument.doctype && ve.ownerDocument.doctype.name && Xt(Sc, ve.ownerDocument.doctype.name) && (Ht = "<!DOCTYPE " + ve.ownerDocument.doctype.name + `>
|
|
@@ -8466,15 +8466,15 @@ function Tc() {
|
|
|
8466
8466
|
const ve = ag(Ee[$e], P);
|
|
8467
8467
|
return ve === -1 ? void 0 : sg(Ee[$e], ve, 1)[0];
|
|
8468
8468
|
}
|
|
8469
|
-
return
|
|
8469
|
+
return ml(Ee[$e]);
|
|
8470
8470
|
}, e.removeHooks = function($e) {
|
|
8471
8471
|
Ee[$e] = [];
|
|
8472
8472
|
}, e.removeAllHooks = function() {
|
|
8473
|
-
Ee =
|
|
8473
|
+
Ee = _l();
|
|
8474
8474
|
}, e;
|
|
8475
8475
|
}
|
|
8476
8476
|
var wg = Tc();
|
|
8477
|
-
const Ag = (t) => typeof t == "function", wc = (t) => Array.isArray(t), Eg = (t) => t instanceof Object, Cg = (t) => t instanceof Object ? t.constructor.name !== "Function" && t.constructor.name !== "Object" : !1,
|
|
8477
|
+
const Ag = (t) => typeof t == "function", wc = (t) => Array.isArray(t), Eg = (t) => t instanceof Object, Cg = (t) => t instanceof Object ? t.constructor.name !== "Function" && t.constructor.name !== "Object" : !1, Sl = (t) => Eg(t) && !wc(t) && !Ag(t) && !Cg(t);
|
|
8478
8478
|
function Kn(t) {
|
|
8479
8479
|
let e;
|
|
8480
8480
|
if (wc(t))
|
|
@@ -8524,7 +8524,7 @@ class Lg {
|
|
|
8524
8524
|
});
|
|
8525
8525
|
}
|
|
8526
8526
|
deepMergeConfig(e, n, i) {
|
|
8527
|
-
|
|
8527
|
+
Sl(e[i]) && Sl(n[i]) ? Object.keys(n[i]).forEach((r) => {
|
|
8528
8528
|
this.deepMergeConfig(e[i], n[i], r);
|
|
8529
8529
|
}) : e[i] = n[i];
|
|
8530
8530
|
}
|
|
@@ -8816,7 +8816,7 @@ void main() {
|
|
|
8816
8816
|
`;
|
|
8817
8817
|
}
|
|
8818
8818
|
var Ns = /* @__PURE__ */ ((t) => (t.OUTGOING = "outgoing", t.INCOMING = "incoming", t))(Ns || {});
|
|
8819
|
-
class
|
|
8819
|
+
class Tl extends Gn {
|
|
8820
8820
|
constructor() {
|
|
8821
8821
|
super(...arguments), this.linkFirstIndicesAndAmount = new Float32Array(), this.indices = new Float32Array(), this.maxPointDegree = 0;
|
|
8822
8822
|
}
|
|
@@ -8824,16 +8824,16 @@ class Tu extends Gn {
|
|
|
8824
8824
|
const { reglInstance: n, store: { pointsTextureSize: i, linksTextureSize: r }, data: o } = this;
|
|
8825
8825
|
if (!i || !r) return;
|
|
8826
8826
|
this.linkFirstIndicesAndAmount = new Float32Array(i * i * 4), this.indices = new Float32Array(r * r * 4);
|
|
8827
|
-
const s = new Float32Array(r * r * 4), f = new Float32Array(r * r * 4),
|
|
8827
|
+
const s = new Float32Array(r * r * 4), f = new Float32Array(r * r * 4), u = e === "incoming" ? o.sourceIndexToTargetIndices : o.targetIndexToSourceIndices;
|
|
8828
8828
|
this.maxPointDegree = 0;
|
|
8829
|
-
let
|
|
8830
|
-
|
|
8831
|
-
d && (this.linkFirstIndicesAndAmount[y * 4 + 0] =
|
|
8829
|
+
let l = 0;
|
|
8830
|
+
u == null || u.forEach((d, y) => {
|
|
8831
|
+
d && (this.linkFirstIndicesAndAmount[y * 4 + 0] = l % r, this.linkFirstIndicesAndAmount[y * 4 + 1] = Math.floor(l / r), this.linkFirstIndicesAndAmount[y * 4 + 2] = d.length ?? 0, d.forEach(([S, D]) => {
|
|
8832
8832
|
var V, ae, Ie;
|
|
8833
|
-
this.indices[
|
|
8833
|
+
this.indices[l * 4 + 0] = S % i, this.indices[l * 4 + 1] = Math.floor(S / i);
|
|
8834
8834
|
const q = ((V = o.degree) == null ? void 0 : V[S]) ?? 0, Te = ((ae = o.degree) == null ? void 0 : ae[y]) ?? 0, we = q + Te, fe = we !== 0 ? q / we : 0.5, Oe = Math.min(q, Te);
|
|
8835
8835
|
let Ve = ((Ie = o.linkStrength) == null ? void 0 : Ie[D]) ?? 1 / Math.max(Oe, 1);
|
|
8836
|
-
Ve = Math.sqrt(Ve), s[
|
|
8836
|
+
Ve = Math.sqrt(Ve), s[l * 4 + 0] = fe, s[l * 4 + 1] = Ve, f[l * 4] = this.store.getRandomFloat(0, 1), l += 1;
|
|
8837
8837
|
}), this.maxPointDegree = Math.max(this.maxPointDegree, d.length ?? 0));
|
|
8838
8838
|
}), this.linkFirstIndicesAndAmountTexture || (this.linkFirstIndicesAndAmountTexture = n.texture()), this.linkFirstIndicesAndAmountTexture({
|
|
8839
8839
|
data: this.linkFirstIndicesAndAmount,
|
|
@@ -9241,23 +9241,23 @@ class Ug extends Gn {
|
|
|
9241
9241
|
const { store: e } = this;
|
|
9242
9242
|
for (let f = 0; f < this.quadtreeLevels; f += 1) {
|
|
9243
9243
|
(n = this.clearLevelsCommand) == null || n.call(this, { levelFbo: this.levelsFbos.get(`level[${f}]`) });
|
|
9244
|
-
const
|
|
9244
|
+
const u = Math.pow(2, f + 1), l = e.adjustedSpaceSize / u;
|
|
9245
9245
|
(i = this.calculateLevelsCommand) == null || i.call(this, {
|
|
9246
9246
|
levelFbo: this.levelsFbos.get(`level[${f}]`),
|
|
9247
|
-
levelTextureSize:
|
|
9248
|
-
cellSize:
|
|
9247
|
+
levelTextureSize: u,
|
|
9248
|
+
cellSize: l
|
|
9249
9249
|
});
|
|
9250
9250
|
}
|
|
9251
9251
|
(r = this.clearVelocityCommand) == null || r.call(this);
|
|
9252
9252
|
for (let f = 0; f < this.quadtreeLevels; f += 1) {
|
|
9253
|
-
const
|
|
9253
|
+
const u = Math.pow(2, f + 1);
|
|
9254
9254
|
(o = this.forceCommand) == null || o.call(this, {
|
|
9255
9255
|
levelFbo: this.levelsFbos.get(`level[${f}]`),
|
|
9256
|
-
levelTextureSize:
|
|
9256
|
+
levelTextureSize: u,
|
|
9257
9257
|
level: f
|
|
9258
9258
|
}), f === this.quadtreeLevels - 1 && ((s = this.forceFromItsOwnCentermassCommand) == null || s.call(this, {
|
|
9259
9259
|
levelFbo: this.levelsFbos.get(`level[${f}]`),
|
|
9260
|
-
levelTextureSize:
|
|
9260
|
+
levelTextureSize: u,
|
|
9261
9261
|
level: f
|
|
9262
9262
|
}));
|
|
9263
9263
|
}
|
|
@@ -9277,7 +9277,7 @@ function Vg(t, e) {
|
|
|
9277
9277
|
if (o >= e)
|
|
9278
9278
|
return i;
|
|
9279
9279
|
{
|
|
9280
|
-
const s = Math.pow(2, o + 1), f = new Array(o + 1 - n).fill(0).map((
|
|
9280
|
+
const s = Math.pow(2, o + 1), f = new Array(o + 1 - n).fill(0).map((l, d) => `pow(2.0, ${o - (d + n)}.0) * i${d + n}`).join("+"), u = new Array(o + 1 - n).fill(0).map((l, d) => `pow(2.0, ${o - (d + n)}.0) * j${d + n}`).join("+");
|
|
9281
9281
|
return `
|
|
9282
9282
|
for (float ij${o} = 0.0; ij${o} < 4.0; ij${o} += 1.0) {
|
|
9283
9283
|
float i${o} = 0.0;
|
|
@@ -9285,7 +9285,7 @@ function Vg(t, e) {
|
|
|
9285
9285
|
if (ij${o} == 1.0 || ij${o} == 3.0) i${o} = 1.0;
|
|
9286
9286
|
if (ij${o} == 2.0 || ij${o} == 3.0) j${o} = 1.0;
|
|
9287
9287
|
float i = pow(2.0, ${t}.0) * n / width${o + 1} + ${f};
|
|
9288
|
-
float j = pow(2.0, ${t}.0) * m / width${o + 1} + ${
|
|
9288
|
+
float j = pow(2.0, ${t}.0) * m / width${o + 1} + ${u};
|
|
9289
9289
|
float groupPosX = (i + 0.5) / ${s}.0;
|
|
9290
9290
|
float groupPosY = (j + 0.5) / ${s}.0;
|
|
9291
9291
|
|
|
@@ -9366,8 +9366,8 @@ class $g extends Gn {
|
|
|
9366
9366
|
shape: [o, o, 4],
|
|
9367
9367
|
type: "float"
|
|
9368
9368
|
}), this.levelsFbos.has(s) || this.levelsFbos.set(s, e.framebuffer());
|
|
9369
|
-
const
|
|
9370
|
-
|
|
9369
|
+
const u = this.levelsFbos.get(s);
|
|
9370
|
+
u && u({
|
|
9371
9371
|
color: this.levelsTextures.get(s),
|
|
9372
9372
|
depth: !1,
|
|
9373
9373
|
stencil: !1
|
|
@@ -9578,17 +9578,17 @@ void main() {
|
|
|
9578
9578
|
}`;
|
|
9579
9579
|
class Yg extends Gn {
|
|
9580
9580
|
create() {
|
|
9581
|
-
var
|
|
9581
|
+
var u;
|
|
9582
9582
|
const { reglInstance: e, store: n, data: i } = this, { pointsTextureSize: r } = n;
|
|
9583
9583
|
if (i.pointsNumber === void 0 || !i.pointClusters && !i.clusterPositions) return;
|
|
9584
|
-
this.clusterCount = (i.pointClusters ?? []).reduce((
|
|
9584
|
+
this.clusterCount = (i.pointClusters ?? []).reduce((l, d) => d === void 0 || d < 0 ? l : Math.max(l, d), 0) + 1, this.clustersTextureSize = Math.ceil(Math.sqrt(this.clusterCount));
|
|
9585
9585
|
const o = new Float32Array(r * r * 4), s = new Float32Array(this.clustersTextureSize * this.clustersTextureSize * 4).fill(-1), f = new Float32Array(r * r * 4).fill(1);
|
|
9586
9586
|
if (i.clusterPositions)
|
|
9587
|
-
for (let
|
|
9588
|
-
s[
|
|
9589
|
-
for (let
|
|
9590
|
-
const d = (
|
|
9591
|
-
d === void 0 ? (o[
|
|
9587
|
+
for (let l = 0; l < this.clusterCount; ++l)
|
|
9588
|
+
s[l * 4 + 0] = i.clusterPositions[l * 2 + 0] ?? -1, s[l * 4 + 1] = i.clusterPositions[l * 2 + 1] ?? -1;
|
|
9589
|
+
for (let l = 0; l < i.pointsNumber; ++l) {
|
|
9590
|
+
const d = (u = i.pointClusters) == null ? void 0 : u[l];
|
|
9591
|
+
d === void 0 ? (o[l * 4 + 0] = -1, o[l * 4 + 1] = -1) : (o[l * 4 + 0] = d % this.clustersTextureSize, o[l * 4 + 1] = Math.floor(d / this.clustersTextureSize)), i.clusterStrength && (f[l * 4 + 0] = i.clusterStrength[l] ?? 1);
|
|
9592
9592
|
}
|
|
9593
9593
|
this.clusterTexture || (this.clusterTexture = e.texture()), this.clusterTexture({
|
|
9594
9594
|
data: o,
|
|
@@ -9692,9 +9692,9 @@ class Yg extends Gn {
|
|
|
9692
9692
|
!this.data.pointClusters && !this.data.clusterPositions || (this.calculateCentermass(), (e = this.applyForcesCommand) == null || e.call(this));
|
|
9693
9693
|
}
|
|
9694
9694
|
}
|
|
9695
|
-
var jo = { exports: {} }, Zg = jo.exports,
|
|
9695
|
+
var jo = { exports: {} }, Zg = jo.exports, wl;
|
|
9696
9696
|
function Qg() {
|
|
9697
|
-
return
|
|
9697
|
+
return wl || (wl = 1, function(t, e) {
|
|
9698
9698
|
(function(n, i) {
|
|
9699
9699
|
t.exports = i();
|
|
9700
9700
|
})(Zg, function() {
|
|
@@ -9788,8 +9788,8 @@ function Qg() {
|
|
|
9788
9788
|
S.style.display = this.trackGPU ? "inline" : "none";
|
|
9789
9789
|
});
|
|
9790
9790
|
}, Object.assign(this, f), this.detected = 0, this.finished = [], this.isFramebuffer = 0, this.frameId = 0;
|
|
9791
|
-
let
|
|
9792
|
-
++
|
|
9791
|
+
let u, l = 0, d, y = (S) => {
|
|
9792
|
+
++l < 20 ? u = requestAnimationFrame(y) : (this.detected = Math.ceil(1e3 * l / (S - d) / 70), cancelAnimationFrame(u)), d || (d = S);
|
|
9793
9793
|
};
|
|
9794
9794
|
if (requestAnimationFrame(y), s) {
|
|
9795
9795
|
const S = async (q, Te) => Promise.resolve(setTimeout(() => {
|
|
@@ -9858,12 +9858,12 @@ function Qg() {
|
|
|
9858
9858
|
if (this.frameId <= 1)
|
|
9859
9859
|
this.paramFrame = this.frameId, this.paramTime = f;
|
|
9860
9860
|
else {
|
|
9861
|
-
let
|
|
9862
|
-
if (
|
|
9863
|
-
const
|
|
9861
|
+
let u = f - this.paramTime;
|
|
9862
|
+
if (u >= 1e3) {
|
|
9863
|
+
const l = this.frameId - this.paramFrame, d = l / u * 1e3;
|
|
9864
9864
|
for (let y = 0; y < this.names.length; y++) {
|
|
9865
|
-
const S = this.cpuAccums[y] /
|
|
9866
|
-
this.paramLogger(y, S, D, q, d,
|
|
9865
|
+
const S = this.cpuAccums[y] / u * 100, D = this.gpuAccums[y] / u * 100, q = performance && performance.memory ? performance.memory.usedJSHeapSize / (1 << 20) : 0;
|
|
9866
|
+
this.paramLogger(y, S, D, q, d, u, l), this.cpuAccums[y] = 0, Promise.all(this.finished).then(() => {
|
|
9867
9867
|
this.gpuAccums[y] = 0, this.finished = [];
|
|
9868
9868
|
});
|
|
9869
9869
|
}
|
|
@@ -9873,9 +9873,9 @@ function Qg() {
|
|
|
9873
9873
|
if (!this.detected || !this.chartFrame)
|
|
9874
9874
|
this.chartFrame = this.frameId, this.chartTime = f, this.circularId = 0;
|
|
9875
9875
|
else {
|
|
9876
|
-
let
|
|
9877
|
-
for (; --
|
|
9878
|
-
const y = (this.frameId - this.chartFrame) /
|
|
9876
|
+
let u = f - this.chartTime, l = this.chartHz * u / 1e3;
|
|
9877
|
+
for (; --l > 0 && this.detected; ) {
|
|
9878
|
+
const y = (this.frameId - this.chartFrame) / u * 1e3;
|
|
9879
9879
|
this.chart[this.circularId % this.chartLen] = y;
|
|
9880
9880
|
for (let S = 0; S < this.names.length; S++)
|
|
9881
9881
|
this.chartLogger(S, this.chart, this.circularId);
|
|
@@ -9900,10 +9900,10 @@ function Qg() {
|
|
|
9900
9900
|
updateAccums(s) {
|
|
9901
9901
|
let f = this.names.indexOf(s);
|
|
9902
9902
|
f == -1 && (f = this.names.length, this.addUI(s));
|
|
9903
|
-
const
|
|
9903
|
+
const u = this.now(), l = u - this.t0;
|
|
9904
9904
|
for (let d = 0; d < f + 1; d++)
|
|
9905
|
-
this.activeAccums[d] && (this.cpuAccums[d] +=
|
|
9906
|
-
this.activeAccums[f] = !this.activeAccums[f], this.t0 =
|
|
9905
|
+
this.activeAccums[d] && (this.cpuAccums[d] += l);
|
|
9906
|
+
this.activeAccums[f] = !this.activeAccums[f], this.t0 = u;
|
|
9907
9907
|
}
|
|
9908
9908
|
}
|
|
9909
9909
|
return r;
|
|
@@ -9964,7 +9964,7 @@ const Jg = /* @__PURE__ */ nf(Kg), ey = `
|
|
|
9964
9964
|
stroke: #8288e4;
|
|
9965
9965
|
}
|
|
9966
9966
|
`;
|
|
9967
|
-
class
|
|
9967
|
+
class Al {
|
|
9968
9968
|
constructor(e) {
|
|
9969
9969
|
this.destroy();
|
|
9970
9970
|
const n = e.getContext("webgl") || e.getContext("experimental-webgl");
|
|
@@ -10458,42 +10458,42 @@ function sy(t, e) {
|
|
|
10458
10458
|
}
|
|
10459
10459
|
function Cc(t) {
|
|
10460
10460
|
let e, n, i;
|
|
10461
|
-
t.length !== 2 ? (e = qo, n = (f,
|
|
10462
|
-
function r(f,
|
|
10463
|
-
if (
|
|
10464
|
-
if (e(
|
|
10461
|
+
t.length !== 2 ? (e = qo, n = (f, u) => qo(t(f), u), i = (f, u) => t(f) - u) : (e = t === qo || t === sy ? t : fy, n = t, i = t);
|
|
10462
|
+
function r(f, u, l = 0, d = f.length) {
|
|
10463
|
+
if (l < d) {
|
|
10464
|
+
if (e(u, u) !== 0) return d;
|
|
10465
10465
|
do {
|
|
10466
|
-
const y =
|
|
10467
|
-
n(f[y],
|
|
10468
|
-
} while (
|
|
10466
|
+
const y = l + d >>> 1;
|
|
10467
|
+
n(f[y], u) < 0 ? l = y + 1 : d = y;
|
|
10468
|
+
} while (l < d);
|
|
10469
10469
|
}
|
|
10470
|
-
return
|
|
10470
|
+
return l;
|
|
10471
10471
|
}
|
|
10472
|
-
function o(f,
|
|
10473
|
-
if (
|
|
10474
|
-
if (e(
|
|
10472
|
+
function o(f, u, l = 0, d = f.length) {
|
|
10473
|
+
if (l < d) {
|
|
10474
|
+
if (e(u, u) !== 0) return d;
|
|
10475
10475
|
do {
|
|
10476
|
-
const y =
|
|
10477
|
-
n(f[y],
|
|
10478
|
-
} while (
|
|
10476
|
+
const y = l + d >>> 1;
|
|
10477
|
+
n(f[y], u) <= 0 ? l = y + 1 : d = y;
|
|
10478
|
+
} while (l < d);
|
|
10479
10479
|
}
|
|
10480
|
-
return
|
|
10480
|
+
return l;
|
|
10481
10481
|
}
|
|
10482
|
-
function s(f,
|
|
10483
|
-
const y = r(f,
|
|
10484
|
-
return y >
|
|
10482
|
+
function s(f, u, l = 0, d = f.length) {
|
|
10483
|
+
const y = r(f, u, l, d - 1);
|
|
10484
|
+
return y > l && i(f[y - 1], u) > -i(f[y], u) ? y - 1 : y;
|
|
10485
10485
|
}
|
|
10486
10486
|
return { left: r, center: s, right: o };
|
|
10487
10487
|
}
|
|
10488
10488
|
function fy() {
|
|
10489
10489
|
return 0;
|
|
10490
10490
|
}
|
|
10491
|
-
function
|
|
10491
|
+
function uy(t) {
|
|
10492
10492
|
return t === null ? NaN : +t;
|
|
10493
10493
|
}
|
|
10494
|
-
const
|
|
10495
|
-
Cc(
|
|
10496
|
-
function
|
|
10494
|
+
const ly = Cc(qo), cy = ly.right;
|
|
10495
|
+
Cc(uy).center;
|
|
10496
|
+
function El(t, e) {
|
|
10497
10497
|
let n, i;
|
|
10498
10498
|
for (const r of t)
|
|
10499
10499
|
r != null && (n === void 0 ? r >= r && (n = i = r) : (n > r && (n = r), i < r && (i = r)));
|
|
@@ -10505,12 +10505,12 @@ function hy(t, e, n) {
|
|
|
10505
10505
|
if (e = +e, t = +t, n = +n, t === e && n > 0) return [t];
|
|
10506
10506
|
if ((i = e < t) && (o = t, t = e, e = o), (f = Pc(t, e, n)) === 0 || !isFinite(f)) return [];
|
|
10507
10507
|
if (f > 0) {
|
|
10508
|
-
let
|
|
10509
|
-
for (
|
|
10508
|
+
let u = Math.round(t / f), l = Math.round(e / f);
|
|
10509
|
+
for (u * f < t && ++u, l * f > e && --l, s = new Array(o = l - u + 1); ++r < o; ) s[r] = (u + r) * f;
|
|
10510
10510
|
} else {
|
|
10511
10511
|
f = -f;
|
|
10512
|
-
let
|
|
10513
|
-
for (
|
|
10512
|
+
let u = Math.round(t * f), l = Math.round(e * f);
|
|
10513
|
+
for (u / f < t && ++u, l / f > e && --l, s = new Array(o = l - u + 1); ++r < o; ) s[r] = (u + r) / f;
|
|
10514
10514
|
}
|
|
10515
10515
|
return i && s.reverse(), s;
|
|
10516
10516
|
}
|
|
@@ -10549,7 +10549,7 @@ function py(t) {
|
|
|
10549
10549
|
function vy(t) {
|
|
10550
10550
|
return +t;
|
|
10551
10551
|
}
|
|
10552
|
-
var
|
|
10552
|
+
var Cl = [0, 1];
|
|
10553
10553
|
function An(t) {
|
|
10554
10554
|
return t;
|
|
10555
10555
|
}
|
|
@@ -10575,24 +10575,24 @@ function xy(t, e, n) {
|
|
|
10575
10575
|
for (t[i] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++s < i; )
|
|
10576
10576
|
r[s] = Vs(t[s], t[s + 1]), o[s] = n(e[s], e[s + 1]);
|
|
10577
10577
|
return function(f) {
|
|
10578
|
-
var
|
|
10579
|
-
return o[
|
|
10578
|
+
var u = cy(t, f, 1, i) - 1;
|
|
10579
|
+
return o[u](r[u](f));
|
|
10580
10580
|
};
|
|
10581
10581
|
}
|
|
10582
10582
|
function Ic(t, e) {
|
|
10583
10583
|
return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
|
|
10584
10584
|
}
|
|
10585
10585
|
function Lc() {
|
|
10586
|
-
var t =
|
|
10586
|
+
var t = Cl, e = Cl, n = ef, i, r, o, s = An, f, u, l;
|
|
10587
10587
|
function d() {
|
|
10588
10588
|
var S = Math.min(t.length, e.length);
|
|
10589
|
-
return s !== An && (s = gy(t[0], t[S - 1])), f = S > 2 ? xy : yy,
|
|
10589
|
+
return s !== An && (s = gy(t[0], t[S - 1])), f = S > 2 ? xy : yy, u = l = null, y;
|
|
10590
10590
|
}
|
|
10591
10591
|
function y(S) {
|
|
10592
|
-
return S == null || isNaN(S = +S) ? o : (
|
|
10592
|
+
return S == null || isNaN(S = +S) ? o : (u || (u = f(t.map(i), e, n)))(i(s(S)));
|
|
10593
10593
|
}
|
|
10594
10594
|
return y.invert = function(S) {
|
|
10595
|
-
return s(r((
|
|
10595
|
+
return s(r((l || (l = f(e, t.map(i), pn)))(S)));
|
|
10596
10596
|
}, y.domain = function(S) {
|
|
10597
10597
|
return arguments.length ? (t = Array.from(S, vy), d()) : t.slice();
|
|
10598
10598
|
}, y.range = function(S) {
|
|
@@ -10615,7 +10615,7 @@ function by() {
|
|
|
10615
10615
|
function _y(t) {
|
|
10616
10616
|
return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
|
|
10617
10617
|
}
|
|
10618
|
-
function
|
|
10618
|
+
function ua(t, e) {
|
|
10619
10619
|
if ((n = (t = e ? t.toExponential(e - 1) : t.toExponential()).indexOf("e")) < 0) return null;
|
|
10620
10620
|
var n, i = t.slice(0, n);
|
|
10621
10621
|
return [
|
|
@@ -10624,11 +10624,11 @@ function la(t, e) {
|
|
|
10624
10624
|
];
|
|
10625
10625
|
}
|
|
10626
10626
|
function Ji(t) {
|
|
10627
|
-
return t =
|
|
10627
|
+
return t = ua(Math.abs(t)), t ? t[1] : NaN;
|
|
10628
10628
|
}
|
|
10629
10629
|
function Sy(t, e) {
|
|
10630
10630
|
return function(n, i) {
|
|
10631
|
-
for (var r = n.length, o = [], s = 0, f = t[0],
|
|
10631
|
+
for (var r = n.length, o = [], s = 0, f = t[0], u = 0; r > 0 && f > 0 && (u + f + 1 > i && (f = Math.max(1, i - u)), o.push(n.substring(r -= f, r + f)), !((u += f + 1) > i)); )
|
|
10632
10632
|
f = t[s = (s + 1) % t.length];
|
|
10633
10633
|
return o.reverse().join(e);
|
|
10634
10634
|
};
|
|
@@ -10641,7 +10641,7 @@ function Ty(t) {
|
|
|
10641
10641
|
};
|
|
10642
10642
|
}
|
|
10643
10643
|
var wy = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
10644
|
-
function
|
|
10644
|
+
function la(t) {
|
|
10645
10645
|
if (!(e = wy.exec(t))) throw new Error("invalid format: " + t);
|
|
10646
10646
|
var e;
|
|
10647
10647
|
return new rf({
|
|
@@ -10657,7 +10657,7 @@ function ua(t) {
|
|
|
10657
10657
|
type: e[10]
|
|
10658
10658
|
});
|
|
10659
10659
|
}
|
|
10660
|
-
|
|
10660
|
+
la.prototype = rf.prototype;
|
|
10661
10661
|
function rf(t) {
|
|
10662
10662
|
this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + "";
|
|
10663
10663
|
}
|
|
@@ -10682,18 +10682,18 @@ function Ay(t) {
|
|
|
10682
10682
|
}
|
|
10683
10683
|
var Dc;
|
|
10684
10684
|
function Ey(t, e) {
|
|
10685
|
-
var n =
|
|
10685
|
+
var n = ua(t, e);
|
|
10686
10686
|
if (!n) return t + "";
|
|
10687
10687
|
var i = n[0], r = n[1], o = r - (Dc = Math.max(-8, Math.min(8, Math.floor(r / 3))) * 3) + 1, s = i.length;
|
|
10688
|
-
return o === s ? i : o > s ? i + new Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + new Array(1 - o).join("0") +
|
|
10688
|
+
return o === s ? i : o > s ? i + new Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + new Array(1 - o).join("0") + ua(t, Math.max(0, e + o - 1))[0];
|
|
10689
10689
|
}
|
|
10690
|
-
function
|
|
10691
|
-
var n =
|
|
10690
|
+
function Pl(t, e) {
|
|
10691
|
+
var n = ua(t, e);
|
|
10692
10692
|
if (!n) return t + "";
|
|
10693
10693
|
var i = n[0], r = n[1];
|
|
10694
10694
|
return r < 0 ? "0." + new Array(-r).join("0") + i : i.length > r + 1 ? i.slice(0, r + 1) + "." + i.slice(r + 1) : i + new Array(r - i.length + 2).join("0");
|
|
10695
10695
|
}
|
|
10696
|
-
const
|
|
10696
|
+
const kl = {
|
|
10697
10697
|
"%": (t, e) => (t * 100).toFixed(e),
|
|
10698
10698
|
b: (t) => Math.round(t).toString(2),
|
|
10699
10699
|
c: (t) => t + "",
|
|
@@ -10702,32 +10702,32 @@ const ku = {
|
|
|
10702
10702
|
f: (t, e) => t.toFixed(e),
|
|
10703
10703
|
g: (t, e) => t.toPrecision(e),
|
|
10704
10704
|
o: (t) => Math.round(t).toString(8),
|
|
10705
|
-
p: (t, e) =>
|
|
10706
|
-
r:
|
|
10705
|
+
p: (t, e) => Pl(t * 100, e),
|
|
10706
|
+
r: Pl,
|
|
10707
10707
|
s: Ey,
|
|
10708
10708
|
X: (t) => Math.round(t).toString(16).toUpperCase(),
|
|
10709
10709
|
x: (t) => Math.round(t).toString(16)
|
|
10710
10710
|
};
|
|
10711
|
-
function
|
|
10711
|
+
function Il(t) {
|
|
10712
10712
|
return t;
|
|
10713
10713
|
}
|
|
10714
|
-
var
|
|
10714
|
+
var Ll = Array.prototype.map, Dl = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
10715
10715
|
function Cy(t) {
|
|
10716
|
-
var e = t.grouping === void 0 || t.thousands === void 0 ?
|
|
10717
|
-
function
|
|
10718
|
-
y =
|
|
10716
|
+
var e = t.grouping === void 0 || t.thousands === void 0 ? Il : Sy(Ll.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", i = t.currency === void 0 ? "" : t.currency[1] + "", r = t.decimal === void 0 ? "." : t.decimal + "", o = t.numerals === void 0 ? Il : Ty(Ll.call(t.numerals, String)), s = t.percent === void 0 ? "%" : t.percent + "", f = t.minus === void 0 ? "−" : t.minus + "", u = t.nan === void 0 ? "NaN" : t.nan + "";
|
|
10717
|
+
function l(y) {
|
|
10718
|
+
y = la(y);
|
|
10719
10719
|
var S = y.fill, D = y.align, q = y.sign, Te = y.symbol, we = y.zero, fe = y.width, Oe = y.comma, Ve = y.precision, V = y.trim, ae = y.type;
|
|
10720
|
-
ae === "n" ? (Oe = !0, ae = "g") :
|
|
10721
|
-
var Ie = Te === "$" ? n : Te === "#" && /[boxX]/.test(ae) ? "0" + ae.toLowerCase() : "", Be = Te === "$" ? i : /[%p]/.test(ae) ? s : "", Xe =
|
|
10720
|
+
ae === "n" ? (Oe = !0, ae = "g") : kl[ae] || (Ve === void 0 && (Ve = 12), V = !0, ae = "g"), (we || S === "0" && D === "=") && (we = !0, S = "0", D = "=");
|
|
10721
|
+
var Ie = Te === "$" ? n : Te === "#" && /[boxX]/.test(ae) ? "0" + ae.toLowerCase() : "", Be = Te === "$" ? i : /[%p]/.test(ae) ? s : "", Xe = kl[ae], nt = /[defgprs%]/.test(ae);
|
|
10722
10722
|
Ve = Ve === void 0 ? 6 : /[gprs]/.test(ae) ? Math.max(1, Math.min(21, Ve)) : Math.max(0, Math.min(20, Ve));
|
|
10723
|
-
function
|
|
10723
|
+
function ut(Ee) {
|
|
10724
10724
|
var ct = Ie, ft = Be, G, Pe, se;
|
|
10725
10725
|
if (ae === "c")
|
|
10726
10726
|
ft = Xe(Ee) + ft, Ee = "";
|
|
10727
10727
|
else {
|
|
10728
10728
|
Ee = +Ee;
|
|
10729
10729
|
var De = Ee < 0 || 1 / Ee < 0;
|
|
10730
|
-
if (Ee = isNaN(Ee) ?
|
|
10730
|
+
if (Ee = isNaN(Ee) ? u : Xe(Math.abs(Ee), Ve), V && (Ee = Ay(Ee)), De && +Ee == 0 && q !== "+" && (De = !1), ct = (De ? q === "(" ? q : f : q === "-" || q === "(" ? "" : q) + ct, ft = (ae === "s" ? Dl[8 + Dc / 3] : "") + ft + (De && q === "(" ? ")" : ""), nt) {
|
|
10731
10731
|
for (G = -1, Pe = Ee.length; ++G < Pe; )
|
|
10732
10732
|
if (se = Ee.charCodeAt(G), 48 > se || se > 57) {
|
|
10733
10733
|
ft = (se === 46 ? r + Ee.slice(G + 1) : Ee.slice(G)) + ft, Ee = Ee.slice(0, G);
|
|
@@ -10753,18 +10753,18 @@ function Cy(t) {
|
|
|
10753
10753
|
}
|
|
10754
10754
|
return o(Ee);
|
|
10755
10755
|
}
|
|
10756
|
-
return
|
|
10756
|
+
return ut.toString = function() {
|
|
10757
10757
|
return y + "";
|
|
10758
|
-
},
|
|
10758
|
+
}, ut;
|
|
10759
10759
|
}
|
|
10760
10760
|
function d(y, S) {
|
|
10761
|
-
var D =
|
|
10761
|
+
var D = l((y = la(y), y.type = "f", y)), q = Math.max(-8, Math.min(8, Math.floor(Ji(S) / 3))) * 3, Te = Math.pow(10, -q), we = Dl[8 + q / 3];
|
|
10762
10762
|
return function(fe) {
|
|
10763
10763
|
return D(Te * fe) + we;
|
|
10764
10764
|
};
|
|
10765
10765
|
}
|
|
10766
10766
|
return {
|
|
10767
|
-
format:
|
|
10767
|
+
format: l,
|
|
10768
10768
|
formatPrefix: d
|
|
10769
10769
|
};
|
|
10770
10770
|
}
|
|
@@ -10788,7 +10788,7 @@ function Ly(t, e) {
|
|
|
10788
10788
|
}
|
|
10789
10789
|
function Dy(t, e, n, i) {
|
|
10790
10790
|
var r = dy(t, e, n), o;
|
|
10791
|
-
switch (i =
|
|
10791
|
+
switch (i = la(i ?? ",f"), i.type) {
|
|
10792
10792
|
case "s": {
|
|
10793
10793
|
var s = Math.max(Math.abs(t), Math.abs(e));
|
|
10794
10794
|
return i.precision == null && !isNaN(o = Iy(r, s)) && (i.precision = o), zc(i, s);
|
|
@@ -10819,17 +10819,17 @@ function Rc(t) {
|
|
|
10819
10819
|
return Dy(r[0], r[r.length - 1], n ?? 10, i);
|
|
10820
10820
|
}, t.nice = function(n) {
|
|
10821
10821
|
n == null && (n = 10);
|
|
10822
|
-
var i = e(), r = 0, o = i.length - 1, s = i[r], f = i[o],
|
|
10823
|
-
for (f < s && (
|
|
10824
|
-
if (
|
|
10822
|
+
var i = e(), r = 0, o = i.length - 1, s = i[r], f = i[o], u, l, d = 10;
|
|
10823
|
+
for (f < s && (l = s, s = f, f = l, l = r, r = o, o = l); d-- > 0; ) {
|
|
10824
|
+
if (l = Pc(s, f, n), l === u)
|
|
10825
10825
|
return i[r] = s, i[o] = f, e(i);
|
|
10826
|
-
if (
|
|
10827
|
-
s = Math.floor(s /
|
|
10828
|
-
else if (
|
|
10829
|
-
s = Math.ceil(s *
|
|
10826
|
+
if (l > 0)
|
|
10827
|
+
s = Math.floor(s / l) * l, f = Math.ceil(f / l) * l;
|
|
10828
|
+
else if (l < 0)
|
|
10829
|
+
s = Math.ceil(s * l) / l, f = Math.floor(f * l) / l;
|
|
10830
10830
|
else
|
|
10831
10831
|
break;
|
|
10832
|
-
|
|
10832
|
+
u = l;
|
|
10833
10833
|
}
|
|
10834
10834
|
return t;
|
|
10835
10835
|
}, t;
|
|
@@ -10840,7 +10840,7 @@ function $s() {
|
|
|
10840
10840
|
return Ic(t, $s());
|
|
10841
10841
|
}, kc.apply(t, arguments), Rc(t);
|
|
10842
10842
|
}
|
|
10843
|
-
function
|
|
10843
|
+
function Fl(t) {
|
|
10844
10844
|
return function(e) {
|
|
10845
10845
|
return e < 0 ? -Math.pow(-e, t) : Math.pow(e, t);
|
|
10846
10846
|
};
|
|
@@ -10854,7 +10854,7 @@ function zy(t) {
|
|
|
10854
10854
|
function Ry(t) {
|
|
10855
10855
|
var e = t(An, An), n = 1;
|
|
10856
10856
|
function i() {
|
|
10857
|
-
return n === 1 ? t(An, An) : n === 0.5 ? t(Fy, zy) : t(
|
|
10857
|
+
return n === 1 ? t(An, An) : n === 0.5 ? t(Fy, zy) : t(Fl(n), Fl(1 / n));
|
|
10858
10858
|
}
|
|
10859
10859
|
return e.exponent = function(r) {
|
|
10860
10860
|
return arguments.length ? (n = +r, i()) : n;
|
|
@@ -11037,8 +11037,8 @@ class Oy extends Gn {
|
|
|
11037
11037
|
if (n.linksNumber === void 0 || n.links === void 0) return;
|
|
11038
11038
|
const r = new Float32Array(n.linksNumber * 4);
|
|
11039
11039
|
for (let s = 0; s < n.linksNumber; s++) {
|
|
11040
|
-
const f = n.links[s * 2],
|
|
11041
|
-
r[D] =
|
|
11040
|
+
const f = n.links[s * 2], u = n.links[s * 2 + 1], l = f % i.pointsTextureSize, d = Math.floor(f / i.pointsTextureSize), y = u % i.pointsTextureSize, S = Math.floor(u / i.pointsTextureSize), D = s * 4;
|
|
11041
|
+
r[D] = l, r[D + 1] = d, r[D + 2] = y, r[D + 3] = S;
|
|
11042
11042
|
}
|
|
11043
11043
|
this.pointsBuffer || (this.pointsBuffer = e.buffer(0)), this.pointsBuffer(r);
|
|
11044
11044
|
const o = new Float32Array(n.linksNumber);
|
|
@@ -11064,10 +11064,10 @@ class Oy extends Gn {
|
|
|
11064
11064
|
}
|
|
11065
11065
|
findHoveredLine() {
|
|
11066
11066
|
var e, n;
|
|
11067
|
-
!this.data.linksNumber || !this.store.isLinkHoveringEnabled ||
|
|
11067
|
+
!this.data.linksNumber || !this.store.isLinkHoveringEnabled || this.pointsBuffer && this.linkIndexFbo && this.linkIndexBuffer && this.colorBuffer && this.widthBuffer && this.arrowBuffer && (!this.curveLineGeometry || !this.curveLineBuffer || (this.reglInstance.clear({
|
|
11068
11068
|
framebuffer: this.linkIndexFbo,
|
|
11069
11069
|
color: [0, 0, 0, 0]
|
|
11070
|
-
}), (e = this.drawCurveCommand) == null || e.call(this, { framebuffer: this.linkIndexFbo, renderMode: 1 }), (n = this.hoveredLineIndexCommand) == null || n.call(this));
|
|
11070
|
+
}), (e = this.drawCurveCommand) == null || e.call(this, { framebuffer: this.linkIndexFbo, renderMode: 1 }), (n = this.hoveredLineIndexCommand) == null || n.call(this)));
|
|
11071
11071
|
}
|
|
11072
11072
|
}
|
|
11073
11073
|
var Ny = `#ifdef GL_ES
|
|
@@ -11815,8 +11815,8 @@ function Qy(t, e = 16384) {
|
|
|
11815
11815
|
if (!(t != null && t.length))
|
|
11816
11816
|
return null;
|
|
11817
11817
|
let n = 0;
|
|
11818
|
-
for (const
|
|
11819
|
-
const d = Math.max(
|
|
11818
|
+
for (const l of t) {
|
|
11819
|
+
const d = Math.max(l.width, l.height);
|
|
11820
11820
|
d > n && (n = d);
|
|
11821
11821
|
}
|
|
11822
11822
|
if (n === 0)
|
|
@@ -11826,13 +11826,13 @@ function Qy(t, e = 16384) {
|
|
|
11826
11826
|
o > e && (s = e / o, n = Math.max(1, Math.floor(n * s)), o = Math.max(1, Math.floor(o * s)), console.warn(
|
|
11827
11827
|
`🖼️ Atlas scaling required: Original size ${(i * r).toLocaleString()}px exceeds WebGL limit ${e.toLocaleString()}px. Scaling down to ${o.toLocaleString()}px (${Math.round(s * 100)}% of original quality)`
|
|
11828
11828
|
));
|
|
11829
|
-
const f = new Uint8Array(o * o * 4).fill(0),
|
|
11830
|
-
for (const [
|
|
11829
|
+
const f = new Uint8Array(o * o * 4).fill(0), u = new Float32Array(r * r * 4).fill(-1);
|
|
11830
|
+
for (const [l, d] of t.entries()) {
|
|
11831
11831
|
const y = d.width, S = d.height;
|
|
11832
11832
|
if (y === 0 || S === 0)
|
|
11833
11833
|
continue;
|
|
11834
|
-
const D = Math.min(1, n / Math.max(y, S)), q = Math.floor(y * D), Te = Math.floor(S * D), we = Math.floor(
|
|
11835
|
-
l
|
|
11834
|
+
const D = Math.min(1, n / Math.max(y, S)), q = Math.floor(y * D), Te = Math.floor(S * D), we = Math.floor(l / r), Oe = l % r * n, Ve = we * n;
|
|
11835
|
+
u[l * 4] = Oe / o, u[l * 4 + 1] = Ve / o, u[l * 4 + 2] = (Oe + q) / o, u[l * 4 + 3] = (Ve + Te) / o;
|
|
11836
11836
|
for (let V = 0; V < Te; V++)
|
|
11837
11837
|
for (let ae = 0; ae < q; ae++) {
|
|
11838
11838
|
const Ie = Math.floor(ae * (y / q)), Xe = (Math.floor(V * (S / Te)) * y + Ie) * 4, nt = ((Ve + V) * o + (Oe + ae)) * 4;
|
|
@@ -11842,7 +11842,7 @@ function Qy(t, e = 16384) {
|
|
|
11842
11842
|
return {
|
|
11843
11843
|
atlasData: f,
|
|
11844
11844
|
atlasSize: o,
|
|
11845
|
-
atlasCoords:
|
|
11845
|
+
atlasCoords: u,
|
|
11846
11846
|
atlasCoordsSize: r
|
|
11847
11847
|
};
|
|
11848
11848
|
}
|
|
@@ -11854,10 +11854,10 @@ class Ky extends Gn {
|
|
|
11854
11854
|
const { reglInstance: e, store: n, data: i, config: { rescalePositions: r, enableSimulation: o } } = this, { pointsTextureSize: s } = n;
|
|
11855
11855
|
if (!s || !i.pointPositions || i.pointsNumber === void 0) return;
|
|
11856
11856
|
const f = new Float32Array(s * s * 4);
|
|
11857
|
-
let
|
|
11858
|
-
r === void 0 && !o && (
|
|
11859
|
-
for (let
|
|
11860
|
-
f[
|
|
11857
|
+
let u = r;
|
|
11858
|
+
r === void 0 && !o && (u = !0), this.shouldSkipRescale && (u = !1), u ? this.rescaleInitialNodePositions() : this.shouldSkipRescale || (this.scaleX = void 0, this.scaleY = void 0), this.shouldSkipRescale = void 0;
|
|
11859
|
+
for (let l = 0; l < i.pointsNumber; ++l)
|
|
11860
|
+
f[l * 4 + 0] = i.pointPositions[l * 2 + 0], f[l * 4 + 1] = i.pointPositions[l * 2 + 1], f[l * 4 + 2] = l;
|
|
11861
11861
|
this.currentPositionFbo || (this.currentPositionFbo = e.framebuffer()), this.currentPositionFbo({
|
|
11862
11862
|
color: e.texture({
|
|
11863
11863
|
data: f,
|
|
@@ -12236,9 +12236,9 @@ class Ky extends Gn {
|
|
|
12236
12236
|
n.pointsNumber === void 0 || n.pointImageSizes === void 0 || (this.imageSizesBuffer || (this.imageSizesBuffer = e.buffer(0)), this.imageSizesBuffer(n.pointImageSizes));
|
|
12237
12237
|
}
|
|
12238
12238
|
createAtlas() {
|
|
12239
|
-
var
|
|
12239
|
+
var l;
|
|
12240
12240
|
const { reglInstance: e, data: n, store: i } = this;
|
|
12241
|
-
if (this.imageAtlasTexture || (this.imageAtlasTexture = e.texture()), this.imageAtlasCoordsTexture || (this.imageAtlasCoordsTexture = e.texture()), !((
|
|
12241
|
+
if (this.imageAtlasTexture || (this.imageAtlasTexture = e.texture()), this.imageAtlasCoordsTexture || (this.imageAtlasCoordsTexture = e.texture()), !((l = n.inputImageData) != null && l.length)) {
|
|
12242
12242
|
this.imageCount = 0, this.imageAtlasCoordsTextureSize = 0;
|
|
12243
12243
|
return;
|
|
12244
12244
|
}
|
|
@@ -12248,14 +12248,14 @@ class Ky extends Gn {
|
|
|
12248
12248
|
return;
|
|
12249
12249
|
}
|
|
12250
12250
|
this.imageCount = n.inputImageData.length;
|
|
12251
|
-
const { atlasData: o, atlasSize: s, atlasCoords: f, atlasCoordsSize:
|
|
12252
|
-
this.imageAtlasCoordsTextureSize =
|
|
12251
|
+
const { atlasData: o, atlasSize: s, atlasCoords: f, atlasCoordsSize: u } = r;
|
|
12252
|
+
this.imageAtlasCoordsTextureSize = u, this.imageAtlasTexture({
|
|
12253
12253
|
data: o,
|
|
12254
12254
|
shape: [s, s, 4],
|
|
12255
12255
|
type: "uint8"
|
|
12256
12256
|
}), this.imageAtlasCoordsTexture({
|
|
12257
12257
|
data: f,
|
|
12258
|
-
shape: [
|
|
12258
|
+
shape: [u, u, 4],
|
|
12259
12259
|
type: "float"
|
|
12260
12260
|
});
|
|
12261
12261
|
}
|
|
@@ -12276,13 +12276,13 @@ class Ky extends Gn {
|
|
|
12276
12276
|
(e = this.trackedIndices) != null && e.length && ((n = this.trackPointsCommand) == null || n.call(this));
|
|
12277
12277
|
}
|
|
12278
12278
|
draw() {
|
|
12279
|
-
var o, s, f,
|
|
12279
|
+
var o, s, f, u, l, d, y;
|
|
12280
12280
|
const { config: { renderHoveredPointRing: e, pointSize: n }, store: i, data: r } = this;
|
|
12281
|
-
this.colorBuffer || this.updateColor(), this.sizeBuffer || this.updateSize(), this.shapeBuffer || this.updateShape(), this.imageIndicesBuffer || this.updateImageIndices(), this.imageSizesBuffer || this.updateImageSizes(), (!this.imageAtlasCoordsTexture || !this.imageAtlasTexture) && this.createAtlas(), i.selectedIndices && i.selectedIndices.length > 0 ? ((o = this.drawCommand) == null || o.call(this, { skipSelected: !0, skipUnselected: !1 }), (s = this.drawCommand) == null || s.call(this, { skipSelected: !1, skipUnselected: !0 })) : (f = this.drawCommand) == null || f.call(this, { skipSelected: !1, skipUnselected: !1 }), e && i.hoveredPoint && ((
|
|
12281
|
+
this.colorBuffer || this.updateColor(), this.sizeBuffer || this.updateSize(), this.shapeBuffer || this.updateShape(), this.imageIndicesBuffer || this.updateImageIndices(), this.imageSizesBuffer || this.updateImageSizes(), (!this.imageAtlasCoordsTexture || !this.imageAtlasTexture) && this.createAtlas(), i.selectedIndices && i.selectedIndices.length > 0 ? ((o = this.drawCommand) == null || o.call(this, { skipSelected: !0, skipUnselected: !1 }), (s = this.drawCommand) == null || s.call(this, { skipSelected: !1, skipUnselected: !0 })) : (f = this.drawCommand) == null || f.call(this, { skipSelected: !1, skipUnselected: !1 }), e && i.hoveredPoint && ((l = this.drawHighlightedCommand) == null || l.call(this, {
|
|
12282
12282
|
width: 0.85,
|
|
12283
12283
|
color: i.hoveredPointRingColor,
|
|
12284
12284
|
pointIndex: i.hoveredPoint.index,
|
|
12285
|
-
size: ((
|
|
12285
|
+
size: ((u = r.pointSizes) == null ? void 0 : u[i.hoveredPoint.index]) ?? n
|
|
12286
12286
|
})), i.focusedPoint && ((y = this.drawHighlightedCommand) == null || y.call(this, {
|
|
12287
12287
|
width: 0.75,
|
|
12288
12288
|
color: i.focusedPointRingColor,
|
|
@@ -12314,8 +12314,8 @@ class Ky extends Gn {
|
|
|
12314
12314
|
}
|
|
12315
12315
|
const i = Math.ceil(Math.sqrt(e.length)), r = new Float32Array(i * i * 4);
|
|
12316
12316
|
for (const [o, s] of e.entries()) {
|
|
12317
|
-
const [f,
|
|
12318
|
-
r[o * 4] = f, r[o * 4 + 1] =
|
|
12317
|
+
const [f, u] = s;
|
|
12318
|
+
r[o * 4] = f, r[o * 4 + 1] = u, r[o * 4 + 2] = 0, r[o * 4 + 3] = 0;
|
|
12319
12319
|
}
|
|
12320
12320
|
this.polygonPathTexture || (this.polygonPathTexture = n.texture()), this.polygonPathTexture({
|
|
12321
12321
|
data: r,
|
|
@@ -12369,8 +12369,8 @@ class Ky extends Gn {
|
|
|
12369
12369
|
return this.trackedPositions;
|
|
12370
12370
|
const i = tn(this.reglInstance, this.trackedPositionsFbo), r = /* @__PURE__ */ new Map();
|
|
12371
12371
|
for (let o = 0; o < i.length / 4; o += 1) {
|
|
12372
|
-
const s = i[o * 4], f = i[o * 4 + 1],
|
|
12373
|
-
s !== void 0 && f !== void 0 &&
|
|
12372
|
+
const s = i[o * 4], f = i[o * 4 + 1], u = this.trackedIndices[o];
|
|
12373
|
+
s !== void 0 && f !== void 0 && u !== void 0 && r.set(u, [s, f]);
|
|
12374
12374
|
}
|
|
12375
12375
|
return (!e || !n) && (this.trackedPositions = r, this.isPositionsUpToDate = !0), r;
|
|
12376
12376
|
}
|
|
@@ -12381,8 +12381,8 @@ class Ky extends Gn {
|
|
|
12381
12381
|
(i = this.clearSampledPointsFboCommand) == null || i.call(this), (r = this.fillSampledPointsFboCommand) == null || r.call(this);
|
|
12382
12382
|
const n = tn(this.reglInstance, this.sampledPointsFbo);
|
|
12383
12383
|
for (let o = 0; o < n.length / 4; o++) {
|
|
12384
|
-
const s = n[o * 4], f = !!n[o * 4 + 1],
|
|
12385
|
-
f && s !== void 0 &&
|
|
12384
|
+
const s = n[o * 4], f = !!n[o * 4 + 1], u = n[o * 4 + 2], l = n[o * 4 + 3];
|
|
12385
|
+
f && s !== void 0 && u !== void 0 && l !== void 0 && e.set(s, [u, l]);
|
|
12386
12386
|
}
|
|
12387
12387
|
return e;
|
|
12388
12388
|
}
|
|
@@ -12393,8 +12393,8 @@ class Ky extends Gn {
|
|
|
12393
12393
|
(r = this.clearSampledPointsFboCommand) == null || r.call(this), (o = this.fillSampledPointsFboCommand) == null || o.call(this);
|
|
12394
12394
|
const i = tn(this.reglInstance, this.sampledPointsFbo);
|
|
12395
12395
|
for (let s = 0; s < i.length / 4; s++) {
|
|
12396
|
-
const f = i[s * 4],
|
|
12397
|
-
|
|
12396
|
+
const f = i[s * 4], u = !!i[s * 4 + 1], l = i[s * 4 + 2], d = i[s * 4 + 3];
|
|
12397
|
+
u && f !== void 0 && l !== void 0 && d !== void 0 && (e.push(f), n.push(l, d));
|
|
12398
12398
|
}
|
|
12399
12399
|
return { indices: e, positions: n };
|
|
12400
12400
|
}
|
|
@@ -12422,30 +12422,30 @@ class Ky extends Gn {
|
|
|
12422
12422
|
const fe = n[we], Oe = n[we + 1];
|
|
12423
12423
|
r = Math.min(r, fe), o = Math.max(o, fe), s = Math.min(s, Oe), f = Math.max(f, Oe);
|
|
12424
12424
|
}
|
|
12425
|
-
const
|
|
12425
|
+
const u = o - r, l = f - s, d = Math.max(u, l);
|
|
12426
12426
|
if (d > e) {
|
|
12427
12427
|
this.scaleX = void 0, this.scaleY = void 0;
|
|
12428
12428
|
return;
|
|
12429
12429
|
}
|
|
12430
|
-
const y = e * e * 1e-3, D = (i > y ? e * Math.max(1.2, Math.sqrt(i) / e) : e * 0.1) / d, q = (d -
|
|
12430
|
+
const y = e * e * 1e-3, D = (i > y ? e * Math.max(1.2, Math.sqrt(i) / e) : e * 0.1) / d, q = (d - u) / 2 * D, Te = (d - l) / 2 * D;
|
|
12431
12431
|
this.scaleX = (we) => (we - r) * D + q, this.scaleY = (we) => (we - s) * D + Te;
|
|
12432
12432
|
for (let we = 0; we < i; we++)
|
|
12433
12433
|
this.data.pointPositions[we * 2] = this.scaleX(n[we * 2]), this.data.pointPositions[we * 2 + 1] = this.scaleY(n[we * 2 + 1]);
|
|
12434
12434
|
}
|
|
12435
12435
|
}
|
|
12436
|
-
var
|
|
12436
|
+
var zl = typeof Float32Array < "u" ? Float32Array : Array;
|
|
12437
12437
|
Math.hypot || (Math.hypot = function() {
|
|
12438
12438
|
for (var t = 0, e = arguments.length; e--; )
|
|
12439
12439
|
t += arguments[e] * arguments[e];
|
|
12440
12440
|
return Math.sqrt(t);
|
|
12441
12441
|
});
|
|
12442
12442
|
function Jy() {
|
|
12443
|
-
var t = new
|
|
12444
|
-
return
|
|
12443
|
+
var t = new zl(9);
|
|
12444
|
+
return zl != Float32Array && (t[1] = 0, t[2] = 0, t[3] = 0, t[5] = 0, t[6] = 0, t[7] = 0), t[0] = 1, t[4] = 1, t[8] = 1, t;
|
|
12445
12445
|
}
|
|
12446
|
-
function
|
|
12447
|
-
var i = e[0], r = e[1], o = e[2], s = e[3], f = e[4],
|
|
12448
|
-
return t[0] = i, t[1] = r, t[2] = o, t[3] = s, t[4] = f, t[5] =
|
|
12446
|
+
function Rl(t, e, n) {
|
|
12447
|
+
var i = e[0], r = e[1], o = e[2], s = e[3], f = e[4], u = e[5], l = e[6], d = e[7], y = e[8], S = n[0], D = n[1];
|
|
12448
|
+
return t[0] = i, t[1] = r, t[2] = o, t[3] = s, t[4] = f, t[5] = u, t[6] = S * i + D * s + l, t[7] = S * r + D * f + d, t[8] = S * o + D * u + y, t;
|
|
12449
12449
|
}
|
|
12450
12450
|
function ws(t, e, n) {
|
|
12451
12451
|
var i = n[0], r = n[1];
|
|
@@ -12454,22 +12454,22 @@ function ws(t, e, n) {
|
|
|
12454
12454
|
function ex(t, e, n) {
|
|
12455
12455
|
return t[0] = 2 / e, t[1] = 0, t[2] = 0, t[3] = 0, t[4] = -2 / n, t[5] = 0, t[6] = -1, t[7] = 1, t[8] = 1, t;
|
|
12456
12456
|
}
|
|
12457
|
-
var Yo = { exports: {} }, tx = Yo.exports,
|
|
12457
|
+
var Yo = { exports: {} }, tx = Yo.exports, Ml;
|
|
12458
12458
|
function nx() {
|
|
12459
|
-
return
|
|
12459
|
+
return Ml || (Ml = 1, function(t) {
|
|
12460
12460
|
(function(e, n, i) {
|
|
12461
|
-
function r(
|
|
12462
|
-
var
|
|
12463
|
-
|
|
12464
|
-
var y = 2091639 *
|
|
12465
|
-
return
|
|
12466
|
-
},
|
|
12461
|
+
function r(u) {
|
|
12462
|
+
var l = this, d = f();
|
|
12463
|
+
l.next = function() {
|
|
12464
|
+
var y = 2091639 * l.s0 + l.c * 23283064365386963e-26;
|
|
12465
|
+
return l.s0 = l.s1, l.s1 = l.s2, l.s2 = y - (l.c = y | 0);
|
|
12466
|
+
}, l.c = 1, l.s0 = d(" "), l.s1 = d(" "), l.s2 = d(" "), l.s0 -= d(u), l.s0 < 0 && (l.s0 += 1), l.s1 -= d(u), l.s1 < 0 && (l.s1 += 1), l.s2 -= d(u), l.s2 < 0 && (l.s2 += 1), d = null;
|
|
12467
12467
|
}
|
|
12468
|
-
function o(
|
|
12469
|
-
return
|
|
12468
|
+
function o(u, l) {
|
|
12469
|
+
return l.c = u.c, l.s0 = u.s0, l.s1 = u.s1, l.s2 = u.s2, l;
|
|
12470
12470
|
}
|
|
12471
|
-
function s(
|
|
12472
|
-
var d = new r(
|
|
12471
|
+
function s(u, l) {
|
|
12472
|
+
var d = new r(u), y = l && l.state, S = d.next;
|
|
12473
12473
|
return S.int32 = function() {
|
|
12474
12474
|
return d.next() * 4294967296 | 0;
|
|
12475
12475
|
}, S.double = function() {
|
|
@@ -12479,16 +12479,16 @@ function nx() {
|
|
|
12479
12479
|
}), S;
|
|
12480
12480
|
}
|
|
12481
12481
|
function f() {
|
|
12482
|
-
var
|
|
12482
|
+
var u = 4022871197, l = function(d) {
|
|
12483
12483
|
d = String(d);
|
|
12484
12484
|
for (var y = 0; y < d.length; y++) {
|
|
12485
|
-
|
|
12486
|
-
var S = 0.02519603282416938 *
|
|
12487
|
-
|
|
12485
|
+
u += d.charCodeAt(y);
|
|
12486
|
+
var S = 0.02519603282416938 * u;
|
|
12487
|
+
u = S >>> 0, S -= u, S *= u, u = S >>> 0, S -= u, u += S * 4294967296;
|
|
12488
12488
|
}
|
|
12489
|
-
return (
|
|
12489
|
+
return (u >>> 0) * 23283064365386963e-26;
|
|
12490
12490
|
};
|
|
12491
|
-
return
|
|
12491
|
+
return l;
|
|
12492
12492
|
}
|
|
12493
12493
|
n && n.exports ? n.exports = s : this.alea = s;
|
|
12494
12494
|
})(
|
|
@@ -12497,33 +12497,33 @@ function nx() {
|
|
|
12497
12497
|
);
|
|
12498
12498
|
}(Yo)), Yo.exports;
|
|
12499
12499
|
}
|
|
12500
|
-
var Zo = { exports: {} }, ix = Zo.exports,
|
|
12500
|
+
var Zo = { exports: {} }, ix = Zo.exports, Ol;
|
|
12501
12501
|
function rx() {
|
|
12502
|
-
return
|
|
12502
|
+
return Ol || (Ol = 1, function(t) {
|
|
12503
12503
|
(function(e, n, i) {
|
|
12504
12504
|
function r(f) {
|
|
12505
|
-
var
|
|
12506
|
-
|
|
12507
|
-
var y =
|
|
12508
|
-
return
|
|
12509
|
-
}, f === (f | 0) ?
|
|
12510
|
-
for (var d = 0; d <
|
|
12511
|
-
|
|
12512
|
-
}
|
|
12513
|
-
function o(f,
|
|
12514
|
-
return
|
|
12515
|
-
}
|
|
12516
|
-
function s(f,
|
|
12517
|
-
var
|
|
12518
|
-
return (
|
|
12505
|
+
var u = this, l = "";
|
|
12506
|
+
u.x = 0, u.y = 0, u.z = 0, u.w = 0, u.next = function() {
|
|
12507
|
+
var y = u.x ^ u.x << 11;
|
|
12508
|
+
return u.x = u.y, u.y = u.z, u.z = u.w, u.w ^= u.w >>> 19 ^ y ^ y >>> 8;
|
|
12509
|
+
}, f === (f | 0) ? u.x = f : l += f;
|
|
12510
|
+
for (var d = 0; d < l.length + 64; d++)
|
|
12511
|
+
u.x ^= l.charCodeAt(d) | 0, u.next();
|
|
12512
|
+
}
|
|
12513
|
+
function o(f, u) {
|
|
12514
|
+
return u.x = f.x, u.y = f.y, u.z = f.z, u.w = f.w, u;
|
|
12515
|
+
}
|
|
12516
|
+
function s(f, u) {
|
|
12517
|
+
var l = new r(f), d = u && u.state, y = function() {
|
|
12518
|
+
return (l.next() >>> 0) / 4294967296;
|
|
12519
12519
|
};
|
|
12520
12520
|
return y.double = function() {
|
|
12521
12521
|
do
|
|
12522
|
-
var S =
|
|
12522
|
+
var S = l.next() >>> 11, D = (l.next() >>> 0) / 4294967296, q = (S + D) / (1 << 21);
|
|
12523
12523
|
while (q === 0);
|
|
12524
12524
|
return q;
|
|
12525
|
-
}, y.int32 =
|
|
12526
|
-
return o(
|
|
12525
|
+
}, y.int32 = l.next, y.quick = y, d && (typeof d == "object" && o(d, l), y.state = function() {
|
|
12526
|
+
return o(l, {});
|
|
12527
12527
|
}), y;
|
|
12528
12528
|
}
|
|
12529
12529
|
n && n.exports ? n.exports = s : this.xor128 = s;
|
|
@@ -12533,33 +12533,33 @@ function rx() {
|
|
|
12533
12533
|
);
|
|
12534
12534
|
}(Zo)), Zo.exports;
|
|
12535
12535
|
}
|
|
12536
|
-
var Qo = { exports: {} }, ox = Qo.exports,
|
|
12536
|
+
var Qo = { exports: {} }, ox = Qo.exports, Nl;
|
|
12537
12537
|
function ax() {
|
|
12538
|
-
return
|
|
12538
|
+
return Nl || (Nl = 1, function(t) {
|
|
12539
12539
|
(function(e, n, i) {
|
|
12540
12540
|
function r(f) {
|
|
12541
|
-
var
|
|
12542
|
-
|
|
12543
|
-
var y =
|
|
12544
|
-
return
|
|
12545
|
-
},
|
|
12546
|
-
for (var d = 0; d <
|
|
12547
|
-
|
|
12548
|
-
}
|
|
12549
|
-
function o(f,
|
|
12550
|
-
return
|
|
12551
|
-
}
|
|
12552
|
-
function s(f,
|
|
12553
|
-
var
|
|
12554
|
-
return (
|
|
12541
|
+
var u = this, l = "";
|
|
12542
|
+
u.next = function() {
|
|
12543
|
+
var y = u.x ^ u.x >>> 2;
|
|
12544
|
+
return u.x = u.y, u.y = u.z, u.z = u.w, u.w = u.v, (u.d = u.d + 362437 | 0) + (u.v = u.v ^ u.v << 4 ^ (y ^ y << 1)) | 0;
|
|
12545
|
+
}, u.x = 0, u.y = 0, u.z = 0, u.w = 0, u.v = 0, f === (f | 0) ? u.x = f : l += f;
|
|
12546
|
+
for (var d = 0; d < l.length + 64; d++)
|
|
12547
|
+
u.x ^= l.charCodeAt(d) | 0, d == l.length && (u.d = u.x << 10 ^ u.x >>> 4), u.next();
|
|
12548
|
+
}
|
|
12549
|
+
function o(f, u) {
|
|
12550
|
+
return u.x = f.x, u.y = f.y, u.z = f.z, u.w = f.w, u.v = f.v, u.d = f.d, u;
|
|
12551
|
+
}
|
|
12552
|
+
function s(f, u) {
|
|
12553
|
+
var l = new r(f), d = u && u.state, y = function() {
|
|
12554
|
+
return (l.next() >>> 0) / 4294967296;
|
|
12555
12555
|
};
|
|
12556
12556
|
return y.double = function() {
|
|
12557
12557
|
do
|
|
12558
|
-
var S =
|
|
12558
|
+
var S = l.next() >>> 11, D = (l.next() >>> 0) / 4294967296, q = (S + D) / (1 << 21);
|
|
12559
12559
|
while (q === 0);
|
|
12560
12560
|
return q;
|
|
12561
|
-
}, y.int32 =
|
|
12562
|
-
return o(
|
|
12561
|
+
}, y.int32 = l.next, y.quick = y, d && (typeof d == "object" && o(d, l), y.state = function() {
|
|
12562
|
+
return o(l, {});
|
|
12563
12563
|
}), y;
|
|
12564
12564
|
}
|
|
12565
12565
|
n && n.exports ? n.exports = s : this.xorwow = s;
|
|
@@ -12569,17 +12569,17 @@ function ax() {
|
|
|
12569
12569
|
);
|
|
12570
12570
|
}(Qo)), Qo.exports;
|
|
12571
12571
|
}
|
|
12572
|
-
var Ko = { exports: {} }, sx = Ko.exports,
|
|
12572
|
+
var Ko = { exports: {} }, sx = Ko.exports, Gl;
|
|
12573
12573
|
function fx() {
|
|
12574
|
-
return
|
|
12574
|
+
return Gl || (Gl = 1, function(t) {
|
|
12575
12575
|
(function(e, n, i) {
|
|
12576
12576
|
function r(f) {
|
|
12577
|
-
var
|
|
12578
|
-
|
|
12579
|
-
var d =
|
|
12580
|
-
return S = d[y], S ^= S >>> 7, D = S ^ S << 24, S = d[y + 1 & 7], D ^= S ^ S >>> 10, S = d[y + 3 & 7], D ^= S ^ S >>> 3, S = d[y + 4 & 7], D ^= S ^ S << 7, S = d[y + 7 & 7], S = S ^ S << 13, D ^= S ^ S << 9, d[y] = D,
|
|
12577
|
+
var u = this;
|
|
12578
|
+
u.next = function() {
|
|
12579
|
+
var d = u.x, y = u.i, S, D;
|
|
12580
|
+
return S = d[y], S ^= S >>> 7, D = S ^ S << 24, S = d[y + 1 & 7], D ^= S ^ S >>> 10, S = d[y + 3 & 7], D ^= S ^ S >>> 3, S = d[y + 4 & 7], D ^= S ^ S << 7, S = d[y + 7 & 7], S = S ^ S << 13, D ^= S ^ S << 9, d[y] = D, u.i = y + 1 & 7, D;
|
|
12581
12581
|
};
|
|
12582
|
-
function
|
|
12582
|
+
function l(d, y) {
|
|
12583
12583
|
var S, D = [];
|
|
12584
12584
|
if (y === (y | 0))
|
|
12585
12585
|
D[0] = y;
|
|
@@ -12591,23 +12591,23 @@ function fx() {
|
|
|
12591
12591
|
for (S == 8 ? D[7] = -1 : D[S], d.x = D, d.i = 0, S = 256; S > 0; --S)
|
|
12592
12592
|
d.next();
|
|
12593
12593
|
}
|
|
12594
|
-
u
|
|
12594
|
+
l(u, f);
|
|
12595
12595
|
}
|
|
12596
|
-
function o(f,
|
|
12597
|
-
return
|
|
12596
|
+
function o(f, u) {
|
|
12597
|
+
return u.x = f.x.slice(), u.i = f.i, u;
|
|
12598
12598
|
}
|
|
12599
|
-
function s(f,
|
|
12599
|
+
function s(f, u) {
|
|
12600
12600
|
f == null && (f = +/* @__PURE__ */ new Date());
|
|
12601
|
-
var
|
|
12602
|
-
return (
|
|
12601
|
+
var l = new r(f), d = u && u.state, y = function() {
|
|
12602
|
+
return (l.next() >>> 0) / 4294967296;
|
|
12603
12603
|
};
|
|
12604
12604
|
return y.double = function() {
|
|
12605
12605
|
do
|
|
12606
|
-
var S =
|
|
12606
|
+
var S = l.next() >>> 11, D = (l.next() >>> 0) / 4294967296, q = (S + D) / (1 << 21);
|
|
12607
12607
|
while (q === 0);
|
|
12608
12608
|
return q;
|
|
12609
|
-
}, y.int32 =
|
|
12610
|
-
return o(
|
|
12609
|
+
}, y.int32 = l.next, y.quick = y, d && (d.x && o(d, l), y.state = function() {
|
|
12610
|
+
return o(l, {});
|
|
12611
12611
|
}), y;
|
|
12612
12612
|
}
|
|
12613
12613
|
n && n.exports ? n.exports = s : this.xorshift7 = s;
|
|
@@ -12617,17 +12617,17 @@ function fx() {
|
|
|
12617
12617
|
);
|
|
12618
12618
|
}(Ko)), Ko.exports;
|
|
12619
12619
|
}
|
|
12620
|
-
var Jo = { exports: {} },
|
|
12621
|
-
function
|
|
12622
|
-
return
|
|
12620
|
+
var Jo = { exports: {} }, ux = Jo.exports, Bl;
|
|
12621
|
+
function lx() {
|
|
12622
|
+
return Bl || (Bl = 1, function(t) {
|
|
12623
12623
|
(function(e, n, i) {
|
|
12624
12624
|
function r(f) {
|
|
12625
|
-
var
|
|
12626
|
-
|
|
12627
|
-
var d =
|
|
12628
|
-
return
|
|
12625
|
+
var u = this;
|
|
12626
|
+
u.next = function() {
|
|
12627
|
+
var d = u.w, y = u.X, S = u.i, D, q;
|
|
12628
|
+
return u.w = d = d + 1640531527 | 0, q = y[S + 34 & 127], D = y[S = S + 1 & 127], q ^= q << 13, D ^= D << 17, q ^= q >>> 15, D ^= D >>> 12, q = y[S] = q ^ D, u.i = S, q + (d ^ d >>> 16) | 0;
|
|
12629
12629
|
};
|
|
12630
|
-
function
|
|
12630
|
+
function l(d, y) {
|
|
12631
12631
|
var S, D, q, Te, we, fe = [], Oe = 128;
|
|
12632
12632
|
for (y === (y | 0) ? (D = y, y = null) : (y = y + "\0", D = 0, Oe = Math.max(Oe, y.length)), q = 0, Te = -32; Te < Oe; ++Te)
|
|
12633
12633
|
y && (D ^= y.charCodeAt((Te + 32) % y.length)), Te === 0 && (we = D), D ^= D << 10, D ^= D >>> 15, D ^= D << 4, D ^= D >>> 13, Te >= 0 && (we = we + 1640531527 | 0, S = fe[Te & 127] ^= D + we, q = S == 0 ? q + 1 : 0);
|
|
@@ -12635,60 +12635,60 @@ function ux() {
|
|
|
12635
12635
|
D = fe[q + 34 & 127], S = fe[q = q + 1 & 127], D ^= D << 13, S ^= S << 17, D ^= D >>> 15, S ^= S >>> 12, fe[q] = D ^ S;
|
|
12636
12636
|
d.w = we, d.X = fe, d.i = q;
|
|
12637
12637
|
}
|
|
12638
|
-
u
|
|
12638
|
+
l(u, f);
|
|
12639
12639
|
}
|
|
12640
|
-
function o(f,
|
|
12641
|
-
return
|
|
12640
|
+
function o(f, u) {
|
|
12641
|
+
return u.i = f.i, u.w = f.w, u.X = f.X.slice(), u;
|
|
12642
12642
|
}
|
|
12643
|
-
function s(f,
|
|
12643
|
+
function s(f, u) {
|
|
12644
12644
|
f == null && (f = +/* @__PURE__ */ new Date());
|
|
12645
|
-
var
|
|
12646
|
-
return (
|
|
12645
|
+
var l = new r(f), d = u && u.state, y = function() {
|
|
12646
|
+
return (l.next() >>> 0) / 4294967296;
|
|
12647
12647
|
};
|
|
12648
12648
|
return y.double = function() {
|
|
12649
12649
|
do
|
|
12650
|
-
var S =
|
|
12650
|
+
var S = l.next() >>> 11, D = (l.next() >>> 0) / 4294967296, q = (S + D) / (1 << 21);
|
|
12651
12651
|
while (q === 0);
|
|
12652
12652
|
return q;
|
|
12653
|
-
}, y.int32 =
|
|
12654
|
-
return o(
|
|
12653
|
+
}, y.int32 = l.next, y.quick = y, d && (d.X && o(d, l), y.state = function() {
|
|
12654
|
+
return o(l, {});
|
|
12655
12655
|
}), y;
|
|
12656
12656
|
}
|
|
12657
12657
|
n && n.exports ? n.exports = s : this.xor4096 = s;
|
|
12658
12658
|
})(
|
|
12659
|
-
|
|
12659
|
+
ux,
|
|
12660
12660
|
// window object or global
|
|
12661
12661
|
t
|
|
12662
12662
|
);
|
|
12663
12663
|
}(Jo)), Jo.exports;
|
|
12664
12664
|
}
|
|
12665
|
-
var ea = { exports: {} }, cx = ea.exports,
|
|
12665
|
+
var ea = { exports: {} }, cx = ea.exports, Ul;
|
|
12666
12666
|
function hx() {
|
|
12667
|
-
return
|
|
12667
|
+
return Ul || (Ul = 1, function(t) {
|
|
12668
12668
|
(function(e, n, i) {
|
|
12669
12669
|
function r(f) {
|
|
12670
|
-
var
|
|
12671
|
-
|
|
12672
|
-
var y =
|
|
12673
|
-
return y = y << 25 ^ y >>> 7 ^ S, S = S - D | 0, D = D << 24 ^ D >>> 8 ^ q, q = q - y | 0,
|
|
12674
|
-
},
|
|
12675
|
-
for (var d = 0; d <
|
|
12676
|
-
|
|
12677
|
-
}
|
|
12678
|
-
function o(f,
|
|
12679
|
-
return
|
|
12680
|
-
}
|
|
12681
|
-
function s(f,
|
|
12682
|
-
var
|
|
12683
|
-
return (
|
|
12670
|
+
var u = this, l = "";
|
|
12671
|
+
u.next = function() {
|
|
12672
|
+
var y = u.b, S = u.c, D = u.d, q = u.a;
|
|
12673
|
+
return y = y << 25 ^ y >>> 7 ^ S, S = S - D | 0, D = D << 24 ^ D >>> 8 ^ q, q = q - y | 0, u.b = y = y << 20 ^ y >>> 12 ^ S, u.c = S = S - D | 0, u.d = D << 16 ^ S >>> 16 ^ q, u.a = q - y | 0;
|
|
12674
|
+
}, u.a = 0, u.b = 0, u.c = -1640531527, u.d = 1367130551, f === Math.floor(f) ? (u.a = f / 4294967296 | 0, u.b = f | 0) : l += f;
|
|
12675
|
+
for (var d = 0; d < l.length + 20; d++)
|
|
12676
|
+
u.b ^= l.charCodeAt(d) | 0, u.next();
|
|
12677
|
+
}
|
|
12678
|
+
function o(f, u) {
|
|
12679
|
+
return u.a = f.a, u.b = f.b, u.c = f.c, u.d = f.d, u;
|
|
12680
|
+
}
|
|
12681
|
+
function s(f, u) {
|
|
12682
|
+
var l = new r(f), d = u && u.state, y = function() {
|
|
12683
|
+
return (l.next() >>> 0) / 4294967296;
|
|
12684
12684
|
};
|
|
12685
12685
|
return y.double = function() {
|
|
12686
12686
|
do
|
|
12687
|
-
var S =
|
|
12687
|
+
var S = l.next() >>> 11, D = (l.next() >>> 0) / 4294967296, q = (S + D) / (1 << 21);
|
|
12688
12688
|
while (q === 0);
|
|
12689
12689
|
return q;
|
|
12690
|
-
}, y.int32 =
|
|
12691
|
-
return o(
|
|
12690
|
+
}, y.int32 = l.next, y.quick = y, d && (typeof d == "object" && o(d, l), y.state = function() {
|
|
12691
|
+
return o(l, {});
|
|
12692
12692
|
}), y;
|
|
12693
12693
|
}
|
|
12694
12694
|
n && n.exports ? n.exports = s : this.tychei = s;
|
|
@@ -12703,45 +12703,45 @@ const dx = {}, mx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
12703
12703
|
__proto__: null,
|
|
12704
12704
|
default: dx
|
|
12705
12705
|
}, Symbol.toStringTag, { value: "Module" })), px = /* @__PURE__ */ Uv(mx);
|
|
12706
|
-
var vx = ta.exports,
|
|
12706
|
+
var vx = ta.exports, Vl;
|
|
12707
12707
|
function gx() {
|
|
12708
|
-
return
|
|
12708
|
+
return Vl || (Vl = 1, function(t) {
|
|
12709
12709
|
(function(e, n, i) {
|
|
12710
|
-
var r = 256, o = 6, s = 52, f = "random",
|
|
12710
|
+
var r = 256, o = 6, s = 52, f = "random", u = i.pow(r, o), l = i.pow(2, s), d = l * 2, y = r - 1, S;
|
|
12711
12711
|
function D(V, ae, Ie) {
|
|
12712
12712
|
var Be = [];
|
|
12713
12713
|
ae = ae == !0 ? { entropy: !0 } : ae || {};
|
|
12714
12714
|
var Xe = fe(we(
|
|
12715
12715
|
ae.entropy ? [V, Ve(n)] : V ?? Oe(),
|
|
12716
12716
|
3
|
|
12717
|
-
), Be), nt = new q(Be),
|
|
12718
|
-
for (var Ee = nt.g(o), ct =
|
|
12717
|
+
), Be), nt = new q(Be), ut = function() {
|
|
12718
|
+
for (var Ee = nt.g(o), ct = u, ft = 0; Ee < l; )
|
|
12719
12719
|
Ee = (Ee + ft) * r, ct *= r, ft = nt.g(1);
|
|
12720
12720
|
for (; Ee >= d; )
|
|
12721
12721
|
Ee /= 2, ct /= 2, ft >>>= 1;
|
|
12722
12722
|
return (Ee + ft) / ct;
|
|
12723
12723
|
};
|
|
12724
|
-
return
|
|
12724
|
+
return ut.int32 = function() {
|
|
12725
12725
|
return nt.g(4) | 0;
|
|
12726
|
-
},
|
|
12726
|
+
}, ut.quick = function() {
|
|
12727
12727
|
return nt.g(4) / 4294967296;
|
|
12728
|
-
},
|
|
12728
|
+
}, ut.double = ut, fe(Ve(nt.S), n), (ae.pass || Ie || function(Ee, ct, ft, G) {
|
|
12729
12729
|
return G && (G.S && Te(G, nt), Ee.state = function() {
|
|
12730
12730
|
return Te(nt, {});
|
|
12731
12731
|
}), ft ? (i[f] = Ee, ct) : Ee;
|
|
12732
12732
|
})(
|
|
12733
|
-
|
|
12733
|
+
ut,
|
|
12734
12734
|
Xe,
|
|
12735
12735
|
"global" in ae ? ae.global : this == i,
|
|
12736
12736
|
ae.state
|
|
12737
12737
|
);
|
|
12738
12738
|
}
|
|
12739
12739
|
function q(V) {
|
|
12740
|
-
var ae, Ie = V.length, Be = this, Xe = 0, nt = Be.i = Be.j = 0,
|
|
12740
|
+
var ae, Ie = V.length, Be = this, Xe = 0, nt = Be.i = Be.j = 0, ut = Be.S = [];
|
|
12741
12741
|
for (Ie || (V = [Ie++]); Xe < r; )
|
|
12742
|
-
|
|
12742
|
+
ut[Xe] = Xe++;
|
|
12743
12743
|
for (Xe = 0; Xe < r; Xe++)
|
|
12744
|
-
|
|
12744
|
+
ut[Xe] = ut[nt = y & nt + V[Xe % Ie] + (ae = ut[Xe])], ut[nt] = ae;
|
|
12745
12745
|
(Be.g = function(Ee) {
|
|
12746
12746
|
for (var ct, ft = 0, G = Be.i, Pe = Be.j, se = Be.S; Ee--; )
|
|
12747
12747
|
ct = se[G = y & G + 1], ft = ft * r + se[y & (se[G] = se[Pe = y & Pe + ct]) + (se[Pe] = ct)];
|
|
@@ -12797,11 +12797,11 @@ function gx() {
|
|
|
12797
12797
|
);
|
|
12798
12798
|
}(ta)), ta.exports;
|
|
12799
12799
|
}
|
|
12800
|
-
var As, $
|
|
12800
|
+
var As, $l;
|
|
12801
12801
|
function yx() {
|
|
12802
|
-
if ($
|
|
12803
|
-
$
|
|
12804
|
-
var t = nx(), e = rx(), n = ax(), i = fx(), r =
|
|
12802
|
+
if ($l) return As;
|
|
12803
|
+
$l = 1;
|
|
12804
|
+
var t = nx(), e = rx(), n = ax(), i = fx(), r = lx(), o = hx(), s = gx();
|
|
12805
12805
|
return s.alea = t, s.xor128 = e, s.xorwow = n, s.xorshift7 = i, s.xor4096 = r, s.tychei = o, As = s, As;
|
|
12806
12806
|
}
|
|
12807
12807
|
var xx = yx();
|
|
@@ -12850,7 +12850,7 @@ var pa = /* @__PURE__ */ function() {
|
|
|
12850
12850
|
s ^= o.charCodeAt(f) | 0;
|
|
12851
12851
|
return s;
|
|
12852
12852
|
}, t;
|
|
12853
|
-
}(),
|
|
12853
|
+
}(), Hl = /* @__PURE__ */ function(t) {
|
|
12854
12854
|
Oc(e, t);
|
|
12855
12855
|
function e(i, r) {
|
|
12856
12856
|
var o;
|
|
@@ -12869,7 +12869,7 @@ var pa = /* @__PURE__ */ function() {
|
|
|
12869
12869
|
return "function";
|
|
12870
12870
|
}
|
|
12871
12871
|
}]), e;
|
|
12872
|
-
}(pa),
|
|
12872
|
+
}(pa), Wl = function() {
|
|
12873
12873
|
var t = [].slice.call(arguments), e = t, n = e[0], i = n === void 0 ? "default" : n;
|
|
12874
12874
|
switch (typeof i) {
|
|
12875
12875
|
case "object":
|
|
@@ -12877,11 +12877,11 @@ var pa = /* @__PURE__ */ function() {
|
|
|
12877
12877
|
return i;
|
|
12878
12878
|
break;
|
|
12879
12879
|
case "function":
|
|
12880
|
-
return new
|
|
12880
|
+
return new Hl(i);
|
|
12881
12881
|
case "number":
|
|
12882
12882
|
case "string":
|
|
12883
12883
|
default:
|
|
12884
|
-
return new
|
|
12884
|
+
return new Hl(bx.apply(void 0, t));
|
|
12885
12885
|
}
|
|
12886
12886
|
throw new Error('invalid RNG "' + i + '"');
|
|
12887
12887
|
}, wx = function(t, e, n) {
|
|
@@ -12959,28 +12959,28 @@ var Ax = function(e) {
|
|
|
12959
12959
|
if (e === void 0 && (e = 1), gn(e).isPositive(), e < 10) {
|
|
12960
12960
|
var n = Math.exp(-e);
|
|
12961
12961
|
return function() {
|
|
12962
|
-
for (var
|
|
12963
|
-
d = d -
|
|
12964
|
-
return
|
|
12962
|
+
for (var u = n, l = 0, d = t.next(); d > u; )
|
|
12963
|
+
d = d - u, u = e * u / ++l;
|
|
12964
|
+
return l;
|
|
12965
12965
|
};
|
|
12966
12966
|
} else {
|
|
12967
12967
|
var i = Math.sqrt(e), r = 0.931 + 2.53 * i, o = -0.059 + 0.02483 * r, s = 1.1239 + 1.1328 / (r - 3.4), f = 0.9277 - 3.6224 / (r - 2);
|
|
12968
12968
|
return function() {
|
|
12969
12969
|
for (; ; ) {
|
|
12970
|
-
var
|
|
12971
|
-
if (
|
|
12972
|
-
return
|
|
12973
|
-
|
|
12974
|
-
var d = 0.5 - Math.abs(
|
|
12975
|
-
if (!(d < 0.013 &&
|
|
12976
|
-
var y = Math.floor((2 * o / d + r) *
|
|
12977
|
-
if (
|
|
12970
|
+
var u = void 0, l = t.next();
|
|
12971
|
+
if (l <= 0.86 * f)
|
|
12972
|
+
return u = l / f - 0.43, Math.floor((2 * o / (0.5 - Math.abs(u)) + r) * u + e + 0.445);
|
|
12973
|
+
l >= f ? u = t.next() - 0.5 : (u = l / f - 0.93, u = (u < 0 ? -0.5 : 0.5) - u, l = t.next() * f);
|
|
12974
|
+
var d = 0.5 - Math.abs(u);
|
|
12975
|
+
if (!(d < 0.013 && l > d)) {
|
|
12976
|
+
var y = Math.floor((2 * o / d + r) * u + e + 0.445);
|
|
12977
|
+
if (l = l * s / (o / (d * d) + r), y >= 10) {
|
|
12978
12978
|
var S = (y + 0.5) * Math.log(e / y) - e - Rx + y - (0.08333333333333333 - (0.002777777777777778 - 1 / (1260 * y * y)) / (y * y)) / y;
|
|
12979
|
-
if (Math.log(
|
|
12979
|
+
if (Math.log(l * i) <= S)
|
|
12980
12980
|
return y;
|
|
12981
12981
|
} else if (y >= 0) {
|
|
12982
12982
|
var D, q = (D = zx(y)) != null ? D : 0;
|
|
12983
|
-
if (Math.log(
|
|
12983
|
+
if (Math.log(l) <= y * Math.log(e) - e - q)
|
|
12984
12984
|
return y;
|
|
12985
12985
|
}
|
|
12986
12986
|
}
|
|
@@ -13072,9 +13072,9 @@ var Ax = function(e) {
|
|
|
13072
13072
|
var e = t.prototype;
|
|
13073
13073
|
return e.clone = function() {
|
|
13074
13074
|
var i = [].slice.call(arguments);
|
|
13075
|
-
return i.length ? new t(
|
|
13075
|
+
return i.length ? new t(Wl.apply(void 0, i)) : new t(this.rng.clone());
|
|
13076
13076
|
}, e.use = function() {
|
|
13077
|
-
this._rng =
|
|
13077
|
+
this._rng = Wl.apply(void 0, [].slice.call(arguments));
|
|
13078
13078
|
}, e.patch = function() {
|
|
13079
13079
|
if (this._patch)
|
|
13080
13080
|
throw new Error("Math.random already patched");
|
|
@@ -13206,8 +13206,8 @@ function js(t, {
|
|
|
13206
13206
|
active: o,
|
|
13207
13207
|
x: s,
|
|
13208
13208
|
y: f,
|
|
13209
|
-
dx:
|
|
13210
|
-
dy:
|
|
13209
|
+
dx: u,
|
|
13210
|
+
dy: l,
|
|
13211
13211
|
dispatch: d
|
|
13212
13212
|
}) {
|
|
13213
13213
|
Object.defineProperties(this, {
|
|
@@ -13219,8 +13219,8 @@ function js(t, {
|
|
|
13219
13219
|
active: { value: o, enumerable: !0, configurable: !0 },
|
|
13220
13220
|
x: { value: s, enumerable: !0, configurable: !0 },
|
|
13221
13221
|
y: { value: f, enumerable: !0, configurable: !0 },
|
|
13222
|
-
dx: { value:
|
|
13223
|
-
dy: { value:
|
|
13222
|
+
dx: { value: u, enumerable: !0, configurable: !0 },
|
|
13223
|
+
dy: { value: l, enumerable: !0, configurable: !0 },
|
|
13224
13224
|
_: { value: d }
|
|
13225
13225
|
});
|
|
13226
13226
|
}
|
|
@@ -13241,31 +13241,31 @@ function qx() {
|
|
|
13241
13241
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
13242
13242
|
}
|
|
13243
13243
|
function Yx() {
|
|
13244
|
-
var t = Wx, e = Xx, n = jx, i = qx, r = {}, o = ha("start", "drag", "end"), s = 0, f,
|
|
13244
|
+
var t = Wx, e = Xx, n = jx, i = qx, r = {}, o = ha("start", "drag", "end"), s = 0, f, u, l, d, y = 0;
|
|
13245
13245
|
function S(V) {
|
|
13246
13246
|
V.on("mousedown.drag", D).filter(i).on("touchstart.drag", we).on("touchmove.drag", fe, Hx).on("touchend.drag touchcancel.drag", Oe).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
13247
13247
|
}
|
|
13248
13248
|
function D(V, ae) {
|
|
13249
13249
|
if (!(d || !t.call(this, V, ae))) {
|
|
13250
13250
|
var Ie = Ve(this, e.call(this, V, ae), V, ae, "mouse");
|
|
13251
|
-
Ie && (zt(V.view).on("mousemove.drag", q, Rr).on("mouseup.drag", Te, Rr), Gc(V.view), Es(V),
|
|
13251
|
+
Ie && (zt(V.view).on("mousemove.drag", q, Rr).on("mouseup.drag", Te, Rr), Gc(V.view), Es(V), l = !1, f = V.clientX, u = V.clientY, Ie("start", V));
|
|
13252
13252
|
}
|
|
13253
13253
|
}
|
|
13254
13254
|
function q(V) {
|
|
13255
|
-
if (Zi(V), !
|
|
13256
|
-
var ae = V.clientX - f, Ie = V.clientY -
|
|
13257
|
-
|
|
13255
|
+
if (Zi(V), !l) {
|
|
13256
|
+
var ae = V.clientX - f, Ie = V.clientY - u;
|
|
13257
|
+
l = ae * ae + Ie * Ie > y;
|
|
13258
13258
|
}
|
|
13259
13259
|
r.mouse("drag", V);
|
|
13260
13260
|
}
|
|
13261
13261
|
function Te(V) {
|
|
13262
|
-
zt(V.view).on("mousemove.drag mouseup.drag", null), Bc(V.view,
|
|
13262
|
+
zt(V.view).on("mousemove.drag mouseup.drag", null), Bc(V.view, l), Zi(V), r.mouse("end", V);
|
|
13263
13263
|
}
|
|
13264
13264
|
function we(V, ae) {
|
|
13265
13265
|
if (t.call(this, V, ae)) {
|
|
13266
|
-
var Ie = V.changedTouches, Be = e.call(this, V, ae), Xe = Ie.length, nt,
|
|
13266
|
+
var Ie = V.changedTouches, Be = e.call(this, V, ae), Xe = Ie.length, nt, ut;
|
|
13267
13267
|
for (nt = 0; nt < Xe; ++nt)
|
|
13268
|
-
(
|
|
13268
|
+
(ut = Ve(this, Be, V, ae, Ie[nt].identifier, Ie[nt])) && (Es(V), ut("start", V, Ie[nt]));
|
|
13269
13269
|
}
|
|
13270
13270
|
}
|
|
13271
13271
|
function fe(V) {
|
|
@@ -13281,7 +13281,7 @@ function Yx() {
|
|
|
13281
13281
|
(Xe = r[ae[Be].identifier]) && (Es(V), Xe("end", V, ae[Be]));
|
|
13282
13282
|
}
|
|
13283
13283
|
function Ve(V, ae, Ie, Be, Xe, nt) {
|
|
13284
|
-
var
|
|
13284
|
+
var ut = o.copy(), Ee = Mn(nt || Ie, ae), ct, ft, G;
|
|
13285
13285
|
if ((G = n.call(V, new js("beforestart", {
|
|
13286
13286
|
sourceEvent: Ie,
|
|
13287
13287
|
target: S,
|
|
@@ -13291,7 +13291,7 @@ function Yx() {
|
|
|
13291
13291
|
y: Ee[1],
|
|
13292
13292
|
dx: 0,
|
|
13293
13293
|
dy: 0,
|
|
13294
|
-
dispatch:
|
|
13294
|
+
dispatch: ut
|
|
13295
13295
|
}), Be)) != null)
|
|
13296
13296
|
return ct = G.x - Ee[0] || 0, ft = G.y - Ee[1] || 0, function Pe(se, De, qe) {
|
|
13297
13297
|
var je = Ee, Qe;
|
|
@@ -13306,7 +13306,7 @@ function Yx() {
|
|
|
13306
13306
|
Ee = Mn(qe || De, ae), Qe = s;
|
|
13307
13307
|
break;
|
|
13308
13308
|
}
|
|
13309
|
-
|
|
13309
|
+
ut.call(
|
|
13310
13310
|
se,
|
|
13311
13311
|
V,
|
|
13312
13312
|
new js(se, {
|
|
@@ -13319,7 +13319,7 @@ function Yx() {
|
|
|
13319
13319
|
y: Ee[1] + ft,
|
|
13320
13320
|
dx: Ee[0] - je[0],
|
|
13321
13321
|
dy: Ee[1] - je[1],
|
|
13322
|
-
dispatch:
|
|
13322
|
+
dispatch: ut
|
|
13323
13323
|
}),
|
|
13324
13324
|
Be
|
|
13325
13325
|
);
|
|
@@ -13409,7 +13409,7 @@ function Kx() {
|
|
|
13409
13409
|
var t = this;
|
|
13410
13410
|
return t instanceof SVGElement ? (t = t.ownerSVGElement || t, t.hasAttribute("viewBox") ? (t = t.viewBox.baseVal, [[t.x, t.y], [t.x + t.width, t.y + t.height]]) : [[0, 0], [t.width.baseVal.value, t.height.baseVal.value]]) : [[0, 0], [t.clientWidth, t.clientHeight]];
|
|
13411
13411
|
}
|
|
13412
|
-
function
|
|
13412
|
+
function Xl() {
|
|
13413
13413
|
return this.__zoom || Lr;
|
|
13414
13414
|
}
|
|
13415
13415
|
function Jx(t) {
|
|
@@ -13426,13 +13426,13 @@ function tb(t, e, n) {
|
|
|
13426
13426
|
);
|
|
13427
13427
|
}
|
|
13428
13428
|
function nb() {
|
|
13429
|
-
var t = Qx, e = Kx, n = tb, i = Jx, r = eb, o = [0, 1 / 0], s = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], f = 250,
|
|
13429
|
+
var t = Qx, e = Kx, n = tb, i = Jx, r = eb, o = [0, 1 / 0], s = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], f = 250, u = z0, l = ha("start", "zoom", "end"), d, y, S, D = 500, q = 150, Te = 0, we = 10;
|
|
13430
13430
|
function fe(G) {
|
|
13431
|
-
G.property("__zoom",
|
|
13431
|
+
G.property("__zoom", Xl).on("wheel.zoom", Xe, { passive: !1 }).on("mousedown.zoom", nt).on("dblclick.zoom", ut).filter(r).on("touchstart.zoom", Ee).on("touchmove.zoom", ct).on("touchend.zoom touchcancel.zoom", ft).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
13432
13432
|
}
|
|
13433
13433
|
fe.transform = function(G, Pe, se, De) {
|
|
13434
13434
|
var qe = G.selection ? G.selection() : G;
|
|
13435
|
-
qe.property("__zoom",
|
|
13435
|
+
qe.property("__zoom", Xl), G !== qe ? ae(G, Pe, se, De) : qe.interrupt().each(function() {
|
|
13436
13436
|
Ie(this, arguments).event(De).start().zoom(null, typeof Pe == "function" ? Pe.apply(this, arguments) : Pe).end();
|
|
13437
13437
|
});
|
|
13438
13438
|
}, fe.scaleBy = function(G, Pe, se, De) {
|
|
@@ -13477,11 +13477,11 @@ function nb() {
|
|
|
13477
13477
|
}).on("interrupt.zoom end.zoom", function() {
|
|
13478
13478
|
Ie(this, arguments).event(De).end();
|
|
13479
13479
|
}).tween("zoom", function() {
|
|
13480
|
-
var qe = this, je = arguments, Qe = Ie(qe, je).event(De), Ze = e.apply(qe, je), dt = se == null ? V(Ze) : typeof se == "function" ? se.apply(qe, je) : se,
|
|
13480
|
+
var qe = this, je = arguments, Qe = Ie(qe, je).event(De), Ze = e.apply(qe, je), dt = se == null ? V(Ze) : typeof se == "function" ? se.apply(qe, je) : se, lt = Math.max(Ze[1][0] - Ze[0][0], Ze[1][1] - Ze[0][1]), _t = qe.__zoom, at = typeof Pe == "function" ? Pe.apply(qe, je) : Pe, Vt = u(_t.invert(dt).concat(lt / _t.k), at.invert(dt).concat(lt / at.k));
|
|
13481
13481
|
return function($t) {
|
|
13482
13482
|
if ($t === 1) $t = at;
|
|
13483
13483
|
else {
|
|
13484
|
-
var Yt = Vt($t), Pn =
|
|
13484
|
+
var Yt = Vt($t), Pn = lt / Yt[2];
|
|
13485
13485
|
$t = new On(Pn, dt[0] - Yt[0] * Pn, dt[1] - Yt[1] * Pn);
|
|
13486
13486
|
}
|
|
13487
13487
|
Qe.zoom(null, $t);
|
|
@@ -13509,14 +13509,14 @@ function nb() {
|
|
|
13509
13509
|
},
|
|
13510
13510
|
emit: function(G) {
|
|
13511
13511
|
var Pe = zt(this.that).datum();
|
|
13512
|
-
|
|
13512
|
+
l.call(
|
|
13513
13513
|
G,
|
|
13514
13514
|
this.that,
|
|
13515
13515
|
new Zx(G, {
|
|
13516
13516
|
sourceEvent: this.sourceEvent,
|
|
13517
13517
|
target: fe,
|
|
13518
13518
|
transform: this.that.__zoom,
|
|
13519
|
-
dispatch:
|
|
13519
|
+
dispatch: l
|
|
13520
13520
|
}),
|
|
13521
13521
|
Pe
|
|
13522
13522
|
);
|
|
@@ -13538,7 +13538,7 @@ function nb() {
|
|
|
13538
13538
|
}
|
|
13539
13539
|
function nt(G, ...Pe) {
|
|
13540
13540
|
if (S || !t.apply(this, arguments)) return;
|
|
13541
|
-
var se = G.currentTarget, De = Ie(this, Pe, !0).event(G), qe = zt(G.view).on("mousemove.zoom", dt, !0).on("mouseup.zoom",
|
|
13541
|
+
var se = G.currentTarget, De = Ie(this, Pe, !0).event(G), qe = zt(G.view).on("mousemove.zoom", dt, !0).on("mouseup.zoom", lt, !0), je = Mn(G, se), Qe = G.clientX, Ze = G.clientY;
|
|
13542
13542
|
Gc(G.view), Cs(G), De.mouse = [je, this.__zoom.invert(je)], Ho(this), De.start();
|
|
13543
13543
|
function dt(_t) {
|
|
13544
13544
|
if (Pr(_t), !De.moved) {
|
|
@@ -13547,11 +13547,11 @@ function nb() {
|
|
|
13547
13547
|
}
|
|
13548
13548
|
De.event(_t).zoom("mouse", n(Ve(De.that.__zoom, De.mouse[0] = Mn(_t, se), De.mouse[1]), De.extent, s));
|
|
13549
13549
|
}
|
|
13550
|
-
function
|
|
13550
|
+
function lt(_t) {
|
|
13551
13551
|
qe.on("mousemove.zoom mouseup.zoom", null), Bc(_t.view, De.moved), Pr(_t), De.event(_t).end();
|
|
13552
13552
|
}
|
|
13553
13553
|
}
|
|
13554
|
-
function
|
|
13554
|
+
function ut(G, ...Pe) {
|
|
13555
13555
|
if (t.apply(this, arguments)) {
|
|
13556
13556
|
var se = this.__zoom, De = Mn(G.changedTouches ? G.changedTouches[0] : G, this), qe = se.invert(De), je = se.k * (G.shiftKey ? 0.5 : 2), Qe = n(Ve(Oe(se, je), De, qe), e.apply(this, Pe), s);
|
|
13557
13557
|
Pr(G), f > 0 ? zt(this).transition().duration(f).call(ae, Qe, De, G) : zt(this).call(fe.transform, Qe, De, G);
|
|
@@ -13573,8 +13573,8 @@ function nb() {
|
|
|
13573
13573
|
for (Pr(G), je = 0; je < qe; ++je)
|
|
13574
13574
|
Qe = De[je], Ze = Mn(Qe, this), se.touch0 && se.touch0[2] === Qe.identifier ? se.touch0[0] = Ze : se.touch1 && se.touch1[2] === Qe.identifier && (se.touch1[0] = Ze);
|
|
13575
13575
|
if (Qe = se.that.__zoom, se.touch1) {
|
|
13576
|
-
var
|
|
13577
|
-
Qe = Oe(Qe, Math.sqrt($t / Yt)), Ze = [(
|
|
13576
|
+
var lt = se.touch0[0], _t = se.touch0[1], at = se.touch1[0], Vt = se.touch1[1], $t = ($t = at[0] - lt[0]) * $t + ($t = at[1] - lt[1]) * $t, Yt = (Yt = Vt[0] - _t[0]) * Yt + (Yt = Vt[1] - _t[1]) * Yt;
|
|
13577
|
+
Qe = Oe(Qe, Math.sqrt($t / Yt)), Ze = [(lt[0] + at[0]) / 2, (lt[1] + at[1]) / 2], dt = [(_t[0] + Vt[0]) / 2, (_t[1] + Vt[1]) / 2];
|
|
13578
13578
|
} else if (se.touch0) Ze = se.touch0[0], dt = se.touch0[1];
|
|
13579
13579
|
else return;
|
|
13580
13580
|
se.zoom("touch", n(Ve(Qe, Ze, dt), se.extent, s));
|
|
@@ -13611,10 +13611,10 @@ function nb() {
|
|
|
13611
13611
|
}, fe.duration = function(G) {
|
|
13612
13612
|
return arguments.length ? (f = +G, fe) : f;
|
|
13613
13613
|
}, fe.interpolate = function(G) {
|
|
13614
|
-
return arguments.length ? (
|
|
13614
|
+
return arguments.length ? (u = G, fe) : u;
|
|
13615
13615
|
}, fe.on = function() {
|
|
13616
|
-
var G =
|
|
13617
|
-
return G ===
|
|
13616
|
+
var G = l.on.apply(l, arguments);
|
|
13617
|
+
return G === l ? fe : G;
|
|
13618
13618
|
}, fe.clickDistance = function(G) {
|
|
13619
13619
|
return arguments.length ? (Te = (G = +G) * G, fe) : Math.sqrt(Te);
|
|
13620
13620
|
}, fe.tapDistance = function(G) {
|
|
@@ -13631,9 +13631,9 @@ class ib {
|
|
|
13631
13631
|
}).on("zoom", (i) => {
|
|
13632
13632
|
var S, D;
|
|
13633
13633
|
this.eventTransform = i.transform;
|
|
13634
|
-
const { eventTransform: { x: r, y: o, k: s }, store: { transform: f, screenSize:
|
|
13635
|
-
if (!
|
|
13636
|
-
ex(f,
|
|
13634
|
+
const { eventTransform: { x: r, y: o, k: s }, store: { transform: f, screenSize: u } } = this, l = u[0], d = u[1];
|
|
13635
|
+
if (!l || !d) return;
|
|
13636
|
+
ex(f, l, d), Rl(f, f, [r, o]), ws(f, f, [s, s]), Rl(f, f, [l / 2, d / 2]), ws(f, f, [l / 2, d / 2]), ws(f, f, [1, -1]);
|
|
13637
13637
|
const y = !!i.sourceEvent;
|
|
13638
13638
|
(D = (S = this.config) == null ? void 0 : S.onZoom) == null || D.call(S, i, y);
|
|
13639
13639
|
}).on("end", (i) => {
|
|
@@ -13652,9 +13652,9 @@ class ib {
|
|
|
13652
13652
|
*/
|
|
13653
13653
|
getTransform(e, n, i = 0.1) {
|
|
13654
13654
|
if (e.length === 0) return this.eventTransform;
|
|
13655
|
-
const { store: { screenSize: r } } = this, o = r[0], s = r[1], f =
|
|
13656
|
-
f[0] = this.store.scaleX(f[0]), f[1] = this.store.scaleX(f[1]),
|
|
13657
|
-
const
|
|
13655
|
+
const { store: { screenSize: r } } = this, o = r[0], s = r[1], f = El(e.map((fe) => fe[0])), u = El(e.map((fe) => fe[1]));
|
|
13656
|
+
f[0] = this.store.scaleX(f[0]), f[1] = this.store.scaleX(f[1]), u[0] = this.store.scaleY(u[0]), u[1] = this.store.scaleY(u[1]), f[0] === f[1] && (f[0] -= 0.5, f[1] += 0.5), u[0] === u[1] && (u[0] += 0.5, u[1] -= 0.5);
|
|
13657
|
+
const l = o * (1 - i * 2) / (f[1] - f[0]), d = s * (1 - i * 2) / (u[0] - u[1]), y = kg(n ?? Math.min(l, d), ...this.behavior.scaleExtent()), S = (f[1] + f[0]) / 2, D = (u[1] + u[0]) / 2, q = o / 2 - S * y, Te = s / 2 - D * y;
|
|
13658
13658
|
return Lr.translate(q, Te).scale(y);
|
|
13659
13659
|
}
|
|
13660
13660
|
getDistanceToPoint(e) {
|
|
@@ -13662,11 +13662,11 @@ class ib {
|
|
|
13662
13662
|
return Math.sqrt(s * s + f * f);
|
|
13663
13663
|
}
|
|
13664
13664
|
getMiddlePointTransform(e) {
|
|
13665
|
-
const { store: { screenSize: n }, eventTransform: { x: i, y: r, k: o } } = this, s = n[0], f = n[1],
|
|
13665
|
+
const { store: { screenSize: n }, eventTransform: { x: i, y: r, k: o } } = this, s = n[0], f = n[1], u = (s / 2 - i) / o, l = (f / 2 - r) / o, d = this.store.scaleX(e[0]), y = this.store.scaleY(e[1]), S = (u + d) / 2, D = (l + y) / 2, q = 1, Te = s / 2 - S * q, we = f / 2 - D * q;
|
|
13666
13666
|
return Lr.translate(Te, we).scale(q);
|
|
13667
13667
|
}
|
|
13668
13668
|
convertScreenToSpacePosition(e) {
|
|
13669
|
-
const { eventTransform: { x: n, y: i, k: r }, store: { screenSize: o } } = this, s = o[0], f = o[1],
|
|
13669
|
+
const { eventTransform: { x: n, y: i, k: r }, store: { screenSize: o } } = this, s = o[0], f = o[1], u = (e[0] - n) / r, l = (e[1] - i) / r, d = [u, f - l];
|
|
13670
13670
|
return d[0] -= (s - this.store.adjustedSpaceSize) / 2, d[1] -= (f - this.store.adjustedSpaceSize) / 2, d;
|
|
13671
13671
|
}
|
|
13672
13672
|
convertSpaceToScreenPosition(e) {
|
|
@@ -13751,7 +13751,7 @@ class ab {
|
|
|
13751
13751
|
this.dragInstance.isActive && this.updateMousePosition(f), this.currentEvent = f;
|
|
13752
13752
|
}).on("end.detect", (f) => {
|
|
13753
13753
|
this.currentEvent = f, this.updateCanvasCursor();
|
|
13754
|
-
}), this.canvasD3Selection.call(this.dragInstance.behavior).call(this.zoomInstance.behavior).on("click", this.onClick.bind(this)).on("mousemove", this.onMouseMove.bind(this)).on("contextmenu", this.onRightClickMouse.bind(this)), (!this.config.enableZoom || !this.config.enableDrag) && this.updateZoomDragBehaviors(), this.setZoomLevel(this.config.initialZoomLevel ?? 1), this.store.maxPointSize = (this.reglInstance.limits.pointSizeDims[1] ?? Xs) / this.config.pixelRatio, this.store.isSimulationRunning = this.config.enableSimulation, this.points = new Ky(this.reglInstance, this.config, this.store, this.graph), this.lines = new Oy(this.reglInstance, this.config, this.store, this.graph, this.points), this.config.enableSimulation && (this.forceGravity = new Og(this.reglInstance, this.config, this.store, this.graph, this.points), this.forceCenter = new Rg(this.reglInstance, this.config, this.store, this.graph, this.points), this.forceManyBody = this.config.useClassicQuadtree ? new $g(this.reglInstance, this.config, this.store, this.graph, this.points) : new Ug(this.reglInstance, this.config, this.store, this.graph, this.points), this.forceLinkIncoming = new
|
|
13754
|
+
}), this.canvasD3Selection.call(this.dragInstance.behavior).call(this.zoomInstance.behavior).on("click", this.onClick.bind(this)).on("mousemove", this.onMouseMove.bind(this)).on("contextmenu", this.onRightClickMouse.bind(this)), (!this.config.enableZoom || !this.config.enableDrag) && this.updateZoomDragBehaviors(), this.setZoomLevel(this.config.initialZoomLevel ?? 1), this.store.maxPointSize = (this.reglInstance.limits.pointSizeDims[1] ?? Xs) / this.config.pixelRatio, this.store.isSimulationRunning = this.config.enableSimulation, this.points = new Ky(this.reglInstance, this.config, this.store, this.graph), this.lines = new Oy(this.reglInstance, this.config, this.store, this.graph, this.points), this.config.enableSimulation && (this.forceGravity = new Og(this.reglInstance, this.config, this.store, this.graph, this.points), this.forceCenter = new Rg(this.reglInstance, this.config, this.store, this.graph, this.points), this.forceManyBody = this.config.useClassicQuadtree ? new $g(this.reglInstance, this.config, this.store, this.graph, this.points) : new Ug(this.reglInstance, this.config, this.store, this.graph, this.points), this.forceLinkIncoming = new Tl(this.reglInstance, this.config, this.store, this.graph, this.points), this.forceLinkOutgoing = new Tl(this.reglInstance, this.config, this.store, this.graph, this.points), this.forceMouse = new Wg(this.reglInstance, this.config, this.store, this.graph, this.points)), this.clusters = new Yg(this.reglInstance, this.config, this.store, this.graph, this.points), this.store.backgroundColor = Kn(this.config.backgroundColor), this.store.setHoveredPointRingColor(this.config.hoveredPointRingColor ?? Ge.hoveredPointRingColor), this.store.setFocusedPointRingColor(this.config.focusedPointRingColor ?? Ge.focusedPointRingColor), this.config.focusedPointIndex !== void 0 && this.store.setFocusedPoint(this.config.focusedPointIndex), this.store.setGreyoutPointColor(this.config.pointGreyoutColor ?? Rs), this.store.setHoveredLinkColor(this.config.hoveredLinkColor ?? Ge.hoveredLinkColor), this.store.updateLinkHoveringEnabled(this.config), this.config.showFPSMonitor && (this.fpsMonitor = new Al(this.canvas)), this.config.randomSeed !== void 0 && this.store.addRandomSeed(this.config.randomSeed);
|
|
13755
13755
|
}
|
|
13756
13756
|
/**
|
|
13757
13757
|
* Returns the current simulation progress
|
|
@@ -13780,7 +13780,7 @@ class ab {
|
|
|
13780
13780
|
var i;
|
|
13781
13781
|
if (this._isDestroyed || !this.reglInstance || !this.points || !this.lines || !this.clusters) return;
|
|
13782
13782
|
const n = { ...this.config };
|
|
13783
|
-
this.config.init(e), (n.pointDefaultColor !== this.config.pointDefaultColor || n.pointColor !== this.config.pointColor) && (this.graph.updatePointColor(), this.points.updateColor()), (n.pointDefaultSize !== this.config.pointDefaultSize || n.pointSize !== this.config.pointSize) && (this.graph.updatePointSize(), this.points.updateSize()), (n.linkDefaultColor !== this.config.linkDefaultColor || n.linkColor !== this.config.linkColor) && (this.graph.updateLinkColor(), this.lines.updateColor()), (n.linkDefaultWidth !== this.config.linkDefaultWidth || n.linkWidth !== this.config.linkWidth) && (this.graph.updateLinkWidth(), this.lines.updateWidth()), (n.linkDefaultArrows !== this.config.linkDefaultArrows || n.linkArrows !== this.config.linkArrows) && (this.graph.updateArrows(), this.lines.updateArrow()), (n.curvedLinkSegments !== this.config.curvedLinkSegments || n.curvedLinks !== this.config.curvedLinks) && this.lines.updateCurveLineGeometry(), n.backgroundColor !== this.config.backgroundColor && (this.store.backgroundColor = Kn(this.config.backgroundColor ?? yc)), n.hoveredPointRingColor !== this.config.hoveredPointRingColor && this.store.setHoveredPointRingColor(this.config.hoveredPointRingColor ?? Ge.hoveredPointRingColor), n.focusedPointRingColor !== this.config.focusedPointRingColor && this.store.setFocusedPointRingColor(this.config.focusedPointRingColor ?? Ge.focusedPointRingColor), n.pointGreyoutColor !== this.config.pointGreyoutColor && this.store.setGreyoutPointColor(this.config.pointGreyoutColor ?? Rs), n.hoveredLinkColor !== this.config.hoveredLinkColor && this.store.setHoveredLinkColor(this.config.hoveredLinkColor ?? Ge.hoveredLinkColor), n.focusedPointIndex !== this.config.focusedPointIndex && this.store.setFocusedPoint(this.config.focusedPointIndex), (n.spaceSize !== this.config.spaceSize || n.simulationRepulsionQuadtreeLevels !== this.config.simulationRepulsionQuadtreeLevels) && (this.store.adjustSpaceSize(this.config.spaceSize, this.reglInstance.limits.maxTextureSize), this.resizeCanvas(!0), this.update(this.store.isSimulationRunning ? this.store.alpha : 0)), n.showFPSMonitor !== this.config.showFPSMonitor && (this.config.showFPSMonitor ? this.fpsMonitor = new
|
|
13783
|
+
this.config.init(e), (n.pointDefaultColor !== this.config.pointDefaultColor || n.pointColor !== this.config.pointColor) && (this.graph.updatePointColor(), this.points.updateColor()), (n.pointDefaultSize !== this.config.pointDefaultSize || n.pointSize !== this.config.pointSize) && (this.graph.updatePointSize(), this.points.updateSize()), (n.linkDefaultColor !== this.config.linkDefaultColor || n.linkColor !== this.config.linkColor) && (this.graph.updateLinkColor(), this.lines.updateColor()), (n.linkDefaultWidth !== this.config.linkDefaultWidth || n.linkWidth !== this.config.linkWidth) && (this.graph.updateLinkWidth(), this.lines.updateWidth()), (n.linkDefaultArrows !== this.config.linkDefaultArrows || n.linkArrows !== this.config.linkArrows) && (this.graph.updateArrows(), this.lines.updateArrow()), (n.curvedLinkSegments !== this.config.curvedLinkSegments || n.curvedLinks !== this.config.curvedLinks) && this.lines.updateCurveLineGeometry(), n.backgroundColor !== this.config.backgroundColor && (this.store.backgroundColor = Kn(this.config.backgroundColor ?? yc)), n.hoveredPointRingColor !== this.config.hoveredPointRingColor && this.store.setHoveredPointRingColor(this.config.hoveredPointRingColor ?? Ge.hoveredPointRingColor), n.focusedPointRingColor !== this.config.focusedPointRingColor && this.store.setFocusedPointRingColor(this.config.focusedPointRingColor ?? Ge.focusedPointRingColor), n.pointGreyoutColor !== this.config.pointGreyoutColor && this.store.setGreyoutPointColor(this.config.pointGreyoutColor ?? Rs), n.hoveredLinkColor !== this.config.hoveredLinkColor && this.store.setHoveredLinkColor(this.config.hoveredLinkColor ?? Ge.hoveredLinkColor), n.focusedPointIndex !== this.config.focusedPointIndex && this.store.setFocusedPoint(this.config.focusedPointIndex), (n.spaceSize !== this.config.spaceSize || n.simulationRepulsionQuadtreeLevels !== this.config.simulationRepulsionQuadtreeLevels) && (this.store.adjustSpaceSize(this.config.spaceSize, this.reglInstance.limits.maxTextureSize), this.resizeCanvas(!0), this.update(this.store.isSimulationRunning ? this.store.alpha : 0)), n.showFPSMonitor !== this.config.showFPSMonitor && (this.config.showFPSMonitor ? this.fpsMonitor = new Al(this.canvas) : ((i = this.fpsMonitor) == null || i.destroy(), this.fpsMonitor = void 0)), n.pixelRatio !== this.config.pixelRatio && (this.store.maxPointSize = (this.reglInstance.limits.pointSizeDims[1] ?? Xs) / this.config.pixelRatio), (n.enableZoom !== this.config.enableZoom || n.enableDrag !== this.config.enableDrag) && this.updateZoomDragBehaviors(), (n.onLinkClick !== this.config.onLinkClick || n.onLinkMouseOver !== this.config.onLinkMouseOver || n.onLinkMouseOut !== this.config.onLinkMouseOut) && this.store.updateLinkHoveringEnabled(this.config);
|
|
13784
13784
|
}
|
|
13785
13785
|
/**
|
|
13786
13786
|
* Sets the positions for the graph points.
|
|
@@ -14018,7 +14018,7 @@ class ab {
|
|
|
14018
14018
|
render(e) {
|
|
14019
14019
|
if (this._isDestroyed || !this.reglInstance) return;
|
|
14020
14020
|
this.graph.update();
|
|
14021
|
-
const { fitViewOnInit: n, fitViewDelay: i, fitViewPadding: r, fitViewDuration: o, fitViewByPointsInRect: s, fitViewByPointIndices: f, initialZoomLevel:
|
|
14021
|
+
const { fitViewOnInit: n, fitViewDelay: i, fitViewPadding: r, fitViewDuration: o, fitViewByPointsInRect: s, fitViewByPointIndices: f, initialZoomLevel: u } = this.config;
|
|
14022
14022
|
if (!this.graph.pointsNumber && !this.graph.linksNumber) {
|
|
14023
14023
|
this.stopFrames(), zt(this.canvas).style("cursor", null), this.reglInstance.clear({
|
|
14024
14024
|
color: this.store.backgroundColor,
|
|
@@ -14027,7 +14027,7 @@ class ab {
|
|
|
14027
14027
|
});
|
|
14028
14028
|
return;
|
|
14029
14029
|
}
|
|
14030
|
-
this._isFirstRenderAfterInit && n &&
|
|
14030
|
+
this._isFirstRenderAfterInit && n && u === void 0 && (this._fitViewOnInitTimeoutID = window.setTimeout(() => {
|
|
14031
14031
|
f ? this.fitViewByPointIndices(f, o, r) : s ? this.setZoomTransformByPointPositions(s, o, void 0, r) : this.fitView(o, r);
|
|
14032
14032
|
}, i)), this.update(e), this.startFrames(), this._isFirstRenderAfterInit = !1;
|
|
14033
14033
|
}
|
|
@@ -14042,13 +14042,13 @@ class ab {
|
|
|
14042
14042
|
if (this._isDestroyed || !this.reglInstance || !this.points || !this.canvasD3Selection) return;
|
|
14043
14043
|
const { store: { screenSize: o } } = this, s = tn(this.reglInstance, this.points.currentPositionFbo);
|
|
14044
14044
|
if (e === void 0) return;
|
|
14045
|
-
const f = s[e * 4 + 0],
|
|
14046
|
-
if (f === void 0 ||
|
|
14047
|
-
const
|
|
14048
|
-
if (
|
|
14049
|
-
this.setZoomTransformByPointPositions([f,
|
|
14045
|
+
const f = s[e * 4 + 0], u = s[e * 4 + 1];
|
|
14046
|
+
if (f === void 0 || u === void 0) return;
|
|
14047
|
+
const l = this.zoomInstance.getDistanceToPoint([f, u]), d = r ? i : Math.max(this.getZoomLevel(), i);
|
|
14048
|
+
if (l < Math.min(o[0], o[1]))
|
|
14049
|
+
this.setZoomTransformByPointPositions([f, u], n, d);
|
|
14050
14050
|
else {
|
|
14051
|
-
const y = this.zoomInstance.getTransform([[f,
|
|
14051
|
+
const y = this.zoomInstance.getTransform([[f, u]], d), S = this.zoomInstance.getMiddlePointTransform([f, u]);
|
|
14052
14052
|
this.canvasD3Selection.transition().ease(zv).duration(n / 2).call(this.zoomInstance.behavior.transform, S).transition().ease(Rv).duration(n / 2).call(this.zoomInstance.behavior.transform, y);
|
|
14053
14053
|
}
|
|
14054
14054
|
}
|
|
@@ -14459,10 +14459,10 @@ class ab {
|
|
|
14459
14459
|
* to respect pause/unpause state.
|
|
14460
14460
|
*/
|
|
14461
14461
|
runSimulationStep(e = !1) {
|
|
14462
|
-
var f,
|
|
14462
|
+
var f, u, l, d, y, S, D, q, Te, we, fe, Oe, Ve, V, ae, Ie, Be, Xe, nt;
|
|
14463
14463
|
const { config: { simulationGravity: n, simulationCenter: i, enableSimulation: r }, store: { isSimulationRunning: o } } = this;
|
|
14464
14464
|
if (!r) return;
|
|
14465
|
-
this.isRightClickMouse && this.config.enableRightClickRepulsion && ((f = this.forceMouse) == null || f.run(), (
|
|
14465
|
+
this.isRightClickMouse && this.config.enableRightClickRepulsion && ((f = this.forceMouse) == null || f.run(), (u = this.points) == null || u.updatePosition()), (e || o && !(this.zoomInstance.isRunning && !this.config.enableSimulationDuringZoom)) && (n && ((l = this.forceGravity) == null || l.run(), (d = this.points) == null || d.updatePosition()), i && ((y = this.forceCenter) == null || y.run(), (S = this.points) == null || S.updatePosition()), (D = this.forceManyBody) == null || D.run(), (q = this.points) == null || q.updatePosition(), this.store.linksTextureSize && ((Te = this.forceLinkIncoming) == null || Te.run(), (we = this.points) == null || we.updatePosition(), (fe = this.forceLinkOutgoing) == null || fe.run(), (Oe = this.points) == null || Oe.updatePosition()), (this.graph.pointClusters || this.graph.clusterPositions) && ((Ve = this.clusters) == null || Ve.run(), (V = this.points) == null || V.updatePosition()), this.store.alpha += this.store.addAlpha(this.config.simulationDecay ?? Ge.simulation.decay), this.isRightClickMouse && this.config.enableRightClickRepulsion && (this.store.alpha = Math.max(this.store.alpha, 0.1)), this.store.simulationProgress = Math.sqrt(Math.min(1, Ws / this.store.alpha)), (Xe = (Be = this.config).onSimulationTick) == null || Xe.call(
|
|
14466
14466
|
Be,
|
|
14467
14467
|
this.store.alpha,
|
|
14468
14468
|
(ae = this.store.hoveredPoint) == null ? void 0 : ae.index,
|
|
@@ -14488,7 +14488,7 @@ class ab {
|
|
|
14488
14488
|
* This does NOT schedule the next frame.
|
|
14489
14489
|
*/
|
|
14490
14490
|
renderFrame(e) {
|
|
14491
|
-
var i, r, o, s, f,
|
|
14491
|
+
var i, r, o, s, f, u, l, d;
|
|
14492
14492
|
if (this._isDestroyed || !this.store.pointsTextureSize) return;
|
|
14493
14493
|
(i = this.fpsMonitor) == null || i.begin(), this.resizeCanvas(), this.dragInstance.isActive || this.findHoveredItem(), this.runSimulationStep(!1), (r = this.reglInstance) == null || r.clear({
|
|
14494
14494
|
color: this.store.backgroundColor,
|
|
@@ -14496,7 +14496,7 @@ class ab {
|
|
|
14496
14496
|
stencil: 0
|
|
14497
14497
|
});
|
|
14498
14498
|
const { config: { renderLinks: n } } = this;
|
|
14499
|
-
n && this.store.linksTextureSize && ((o = this.lines) == null || o.draw()), (s = this.points) == null || s.draw(), this.dragInstance.isActive && ((f = this.points) == null || f.drag(), (
|
|
14499
|
+
n && this.store.linksTextureSize && ((o = this.lines) == null || o.draw()), (s = this.points) == null || s.draw(), this.dragInstance.isActive && ((f = this.points) == null || f.drag(), (u = this.points) == null || u.drag(), (l = this.points) == null || l.trackPoints()), (d = this.fpsMonitor) == null || d.end(e ?? performance.now()), this.currentEvent = void 0;
|
|
14500
14500
|
}
|
|
14501
14501
|
stopFrames() {
|
|
14502
14502
|
this.requestAnimationFrameId && (window.cancelAnimationFrame(this.requestAnimationFrameId), this.requestAnimationFrameId = 0);
|
|
@@ -14516,7 +14516,7 @@ class ab {
|
|
|
14516
14516
|
this.store.isSimulationRunning = !1, this.store.simulationProgress = 1, (n = (e = this.config).onSimulationEnd) == null || n.call(e);
|
|
14517
14517
|
}
|
|
14518
14518
|
onClick(e) {
|
|
14519
|
-
var n, i, r, o, s, f,
|
|
14519
|
+
var n, i, r, o, s, f, u, l, d, y;
|
|
14520
14520
|
(o = (r = this.config).onClick) == null || o.call(
|
|
14521
14521
|
r,
|
|
14522
14522
|
(n = this.store.hoveredPoint) == null ? void 0 : n.index,
|
|
@@ -14527,8 +14527,8 @@ class ab {
|
|
|
14527
14527
|
this.store.hoveredPoint.index,
|
|
14528
14528
|
this.store.hoveredPoint.position,
|
|
14529
14529
|
e
|
|
14530
|
-
) : this.store.hoveredLinkIndex !== void 0 ? (
|
|
14531
|
-
|
|
14530
|
+
) : this.store.hoveredLinkIndex !== void 0 ? (l = (u = this.config).onLinkClick) == null || l.call(
|
|
14531
|
+
u,
|
|
14532
14532
|
this.store.hoveredLinkIndex,
|
|
14533
14533
|
e
|
|
14534
14534
|
) : (y = (d = this.config).onBackgroundClick) == null || y.call(
|
|
@@ -14554,12 +14554,12 @@ class ab {
|
|
|
14554
14554
|
e.preventDefault();
|
|
14555
14555
|
}
|
|
14556
14556
|
resizeCanvas(e = !1) {
|
|
14557
|
-
var s, f,
|
|
14557
|
+
var s, f, u, l;
|
|
14558
14558
|
if (this._isDestroyed) return;
|
|
14559
14559
|
const n = this.canvas.width, i = this.canvas.height, r = this.canvas.clientWidth, o = this.canvas.clientHeight;
|
|
14560
14560
|
if (e || n !== r * this.config.pixelRatio || i !== o * this.config.pixelRatio) {
|
|
14561
14561
|
const [d, y] = this.store.screenSize, { k: S } = this.zoomInstance.eventTransform, D = this.zoomInstance.convertScreenToSpacePosition([d / 2, y / 2]);
|
|
14562
|
-
this.store.updateScreenSize(r, o), this.canvas.width = r * this.config.pixelRatio, this.canvas.height = o * this.config.pixelRatio, (s = this.reglInstance) == null || s.poll(), (f = this.canvasD3Selection) == null || f.call(this.zoomInstance.behavior.transform, this.zoomInstance.getTransform([D], S)), (
|
|
14562
|
+
this.store.updateScreenSize(r, o), this.canvas.width = r * this.config.pixelRatio, this.canvas.height = o * this.config.pixelRatio, (s = this.reglInstance) == null || s.poll(), (f = this.canvasD3Selection) == null || f.call(this.zoomInstance.behavior.transform, this.zoomInstance.getTransform([D], S)), (u = this.points) == null || u.updateSampledPointsGrid(), this.store.isLinkHoveringEnabled && ((l = this.lines) == null || l.updateLinkIndexFbo());
|
|
14563
14563
|
}
|
|
14564
14564
|
}
|
|
14565
14565
|
setZoomTransformByPointPositions(e, n = 250, i, r) {
|
|
@@ -14588,7 +14588,7 @@ class ab {
|
|
|
14588
14588
|
}
|
|
14589
14589
|
}
|
|
14590
14590
|
findHoveredPoint() {
|
|
14591
|
-
var o, s, f,
|
|
14591
|
+
var o, s, f, u, l;
|
|
14592
14592
|
if (this._isDestroyed || !this.reglInstance || !this.points) return;
|
|
14593
14593
|
this.points.findHoveredPoint();
|
|
14594
14594
|
let e = !1, n = !1;
|
|
@@ -14608,10 +14608,10 @@ class ab {
|
|
|
14608
14608
|
this.store.hoveredPoint.index,
|
|
14609
14609
|
this.store.hoveredPoint.position,
|
|
14610
14610
|
this.currentEvent
|
|
14611
|
-
)), n && ((
|
|
14611
|
+
)), n && ((l = (u = this.config).onPointMouseOut) == null || l.call(u, this.currentEvent));
|
|
14612
14612
|
}
|
|
14613
14613
|
findHoveredLine() {
|
|
14614
|
-
var o, s, f,
|
|
14614
|
+
var o, s, f, u, l, d;
|
|
14615
14615
|
if (this._isDestroyed || !this.reglInstance || !this.lines) return;
|
|
14616
14616
|
if (this.store.hoveredPoint) {
|
|
14617
14617
|
this.store.hoveredLinkIndex !== void 0 && (this.store.hoveredLinkIndex = void 0, (s = (o = this.config).onLinkMouseOut) == null || s.call(o, this.currentEvent));
|
|
@@ -14620,7 +14620,7 @@ class ab {
|
|
|
14620
14620
|
this.lines.findHoveredLine();
|
|
14621
14621
|
let e = !1, n = !1;
|
|
14622
14622
|
const r = tn(this.reglInstance, this.lines.hoveredLineIndexFbo)[0];
|
|
14623
|
-
r >= 0 ? (this.store.hoveredLinkIndex !== r && (e = !0), this.store.hoveredLinkIndex = r) : (this.store.hoveredLinkIndex !== void 0 && (n = !0), this.store.hoveredLinkIndex = void 0), e && this.store.hoveredLinkIndex !== void 0 && ((
|
|
14623
|
+
r >= 0 ? (this.store.hoveredLinkIndex !== r && (e = !0), this.store.hoveredLinkIndex = r) : (this.store.hoveredLinkIndex !== void 0 && (n = !0), this.store.hoveredLinkIndex = void 0), e && this.store.hoveredLinkIndex !== void 0 && ((u = (f = this.config).onLinkMouseOver) == null || u.call(f, this.store.hoveredLinkIndex)), n && ((d = (l = this.config).onLinkMouseOut) == null || d.call(l, this.currentEvent));
|
|
14624
14624
|
}
|
|
14625
14625
|
updateCanvasCursor() {
|
|
14626
14626
|
const { hoveredPointCursor: e, hoveredLinkCursor: n } = this.config;
|
|
@@ -14653,7 +14653,7 @@ export {
|
|
|
14653
14653
|
Ag as isFunction,
|
|
14654
14654
|
fn as isNumber,
|
|
14655
14655
|
Eg as isObject,
|
|
14656
|
-
|
|
14656
|
+
Sl as isPlainObject,
|
|
14657
14657
|
tn as readPixels,
|
|
14658
14658
|
Pg as rgbToBrightness,
|
|
14659
14659
|
Ig as sanitizeHtml
|