@dataelvisliang/embedding-atlas 0.15.0-highlight.2 → 0.17.0-highlight.0
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/{chunk-CNWfCa2H.js → chunk-CkkkpU8V.js} +20427 -19062
- package/dist/{chunk-tn9RgvOq.js → chunk-DZZQiXk1.js} +557 -553
- package/dist/{chunk-ssRSlsnF.js → chunk-DoyQAvDN.js} +103 -86
- package/dist/component.js +1 -1
- package/dist/index.d.ts +52 -8
- package/dist/index.js +4 -4
- package/dist/react.d.ts +52 -8
- package/dist/react.js +10 -10
- package/dist/viewer.d.ts +52 -8
- package/dist/viewer.js +1 -1
- package/package.json +92 -92
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as je } from "./chunk-DgFtVqg1.js";
|
|
2
|
-
import { coordinator as Ra, makeClient as Ta, isSelection as
|
|
2
|
+
import { coordinator as Ra, makeClient as Ta, isSelection as Kn } from "@uwdata/mosaic-core";
|
|
3
3
|
import * as m from "@uwdata/mosaic-sql";
|
|
4
|
-
function
|
|
4
|
+
function Ui() {
|
|
5
5
|
return !(navigator.gpu == null || navigator.gpu.requestAdapter == null || navigator.gpu.wgslLanguageFeatures == null || !navigator.gpu.wgslLanguageFeatures.has("unrestricted_pointer_parameters"));
|
|
6
6
|
}
|
|
7
7
|
function Ea(e) {
|
|
@@ -31,36 +31,36 @@ function rn(e, t, r, n) {
|
|
|
31
31
|
}
|
|
32
32
|
return r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function ei(e, t, r, n, i, a) {
|
|
35
35
|
return (e.texture == null || e.width != r || e.height != n || e.format != i || e.usage != a) && (e.texture != null && e.texture.destroy(), e.texture = t.createTexture({ size: [r, n], format: i, usage: a }), e.destroy = () => {
|
|
36
36
|
e.texture?.destroy();
|
|
37
37
|
}), e.texture;
|
|
38
38
|
}
|
|
39
|
-
const we = 2, Or = 4, $r = 8, vt = 16, gt = 32, qt = 64, qr = 128, _e = 1024, Ue = 2048, yt = 4096, Ie = 8192, dt = 16384, Rn = 32768, tr = 65536,
|
|
39
|
+
const we = 2, Or = 4, $r = 8, vt = 16, gt = 32, qt = 64, qr = 128, _e = 1024, Ue = 2048, yt = 4096, Ie = 8192, dt = 16384, Rn = 32768, tr = 65536, ti = 1 << 17, ki = 1 << 18, ar = 1 << 19, Ni = 1 << 20, $e = 256, Cr = 512, Ur = 32768, hn = 1 << 21, Tn = 1 << 22, Tt = 1 << 23, Lt = Symbol("$state"), Gi = Symbol("legacy props"), Sa = Symbol(""), Qt = new class extends Error {
|
|
40
40
|
name = "StaleReactionError";
|
|
41
41
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
42
42
|
}(), En = 3, lr = 8, Fa = !1;
|
|
43
|
-
var
|
|
43
|
+
var Li = Array.isArray, Pa = Array.prototype.indexOf, Sn = Array.from, Ii = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, zi = Object.getOwnPropertyDescriptors, Ba = Object.prototype, Da = Array.prototype, Fn = Object.getPrototypeOf, ri = Object.isExtensible;
|
|
44
44
|
function Ca(e) {
|
|
45
45
|
for (var t = 0; t < e.length; t++)
|
|
46
46
|
e[t]();
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Oi() {
|
|
49
49
|
var e, t, r = new Promise((n, i) => {
|
|
50
50
|
e = n, t = i;
|
|
51
51
|
});
|
|
52
52
|
return { promise: r, resolve: e, reject: t };
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function $i(e) {
|
|
55
55
|
return e === this.v;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function qi(e, t) {
|
|
58
58
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
59
59
|
}
|
|
60
|
-
function qi(e) {
|
|
61
|
-
return !$i(e, this.v);
|
|
62
|
-
}
|
|
63
60
|
function Vi(e) {
|
|
61
|
+
return !qi(e, this.v);
|
|
62
|
+
}
|
|
63
|
+
function Yi(e) {
|
|
64
64
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
65
65
|
}
|
|
66
66
|
function Ua() {
|
|
@@ -69,13 +69,13 @@ function Ua() {
|
|
|
69
69
|
function ka(e) {
|
|
70
70
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Na() {
|
|
73
73
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ga(e) {
|
|
76
76
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function La() {
|
|
79
79
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
80
80
|
}
|
|
81
81
|
function Ia() {
|
|
@@ -97,7 +97,7 @@ function Va() {
|
|
|
97
97
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
98
98
|
}
|
|
99
99
|
let Ya = !1;
|
|
100
|
-
const Pn = 1, Bn = 2,
|
|
100
|
+
const Pn = 1, Bn = 2, Wi = 4, Wa = 8, Xa = 16, ja = 1, Ha = 4, Qa = 8, Za = 16, Ja = 1, Ka = 2, Xi = "[", Vr = "[!", Dn = "]", rr = {}, xe = Symbol(), el = "http://www.w3.org/1999/xhtml";
|
|
101
101
|
let ke = null;
|
|
102
102
|
function nr(e) {
|
|
103
103
|
ke = e;
|
|
@@ -121,16 +121,16 @@ function Pt(e) {
|
|
|
121
121
|
if (r !== null) {
|
|
122
122
|
t.e = null;
|
|
123
123
|
for (var n of r)
|
|
124
|
-
|
|
124
|
+
bo(n);
|
|
125
125
|
}
|
|
126
126
|
return t.i = !0, ke = t.p, /** @type {T} */
|
|
127
127
|
{};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function ji() {
|
|
130
130
|
return !0;
|
|
131
131
|
}
|
|
132
132
|
let kt = [];
|
|
133
|
-
function
|
|
133
|
+
function Hi() {
|
|
134
134
|
var e = kt;
|
|
135
135
|
kt = [], Ca(e);
|
|
136
136
|
}
|
|
@@ -138,14 +138,14 @@ function sr(e) {
|
|
|
138
138
|
if (kt.length === 0 && !vr) {
|
|
139
139
|
var t = kt;
|
|
140
140
|
queueMicrotask(() => {
|
|
141
|
-
t === kt &&
|
|
141
|
+
t === kt && Hi();
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
kt.push(e);
|
|
145
145
|
}
|
|
146
146
|
function tl() {
|
|
147
147
|
for (; kt.length > 0; )
|
|
148
|
-
|
|
148
|
+
Hi();
|
|
149
149
|
}
|
|
150
150
|
function Yr(e) {
|
|
151
151
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
@@ -176,7 +176,7 @@ function ce(e) {
|
|
|
176
176
|
X = e;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Qi(e = 1) {
|
|
180
180
|
if (Q) {
|
|
181
181
|
for (var t = e, r = X; t--; )
|
|
182
182
|
r = /** @type {TemplateNode} */
|
|
@@ -194,7 +194,7 @@ function kr(e = !0) {
|
|
|
194
194
|
if (n === Dn) {
|
|
195
195
|
if (t === 0) return r;
|
|
196
196
|
t -= 1;
|
|
197
|
-
} else (n ===
|
|
197
|
+
} else (n === Xi || n === Vr) && (t += 1);
|
|
198
198
|
}
|
|
199
199
|
var i = (
|
|
200
200
|
/** @type {TemplateNode} */
|
|
@@ -203,7 +203,7 @@ function kr(e = !0) {
|
|
|
203
203
|
e && r.remove(), r = i;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Zi(e) {
|
|
207
207
|
if (!e || e.nodeType !== lr)
|
|
208
208
|
throw Yr(), rr;
|
|
209
209
|
return (
|
|
@@ -211,19 +211,19 @@ function Qi(e) {
|
|
|
211
211
|
e.data
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (typeof e != "object" || e === null ||
|
|
214
|
+
function Nt(e) {
|
|
215
|
+
if (typeof e != "object" || e === null || Lt in e)
|
|
216
216
|
return e;
|
|
217
217
|
const t = Fn(e);
|
|
218
218
|
if (t !== Ba && t !== Da)
|
|
219
219
|
return e;
|
|
220
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
220
|
+
var r = /* @__PURE__ */ new Map(), n = Li(e), i = /* @__PURE__ */ ie(0), a = It, o = (l) => {
|
|
221
221
|
if (It === a)
|
|
222
222
|
return l();
|
|
223
223
|
var s = Y, u = It;
|
|
224
|
-
Be(null),
|
|
224
|
+
Be(null), li(a);
|
|
225
225
|
var f = l();
|
|
226
|
-
return Be(s),
|
|
226
|
+
return Be(s), li(u), f;
|
|
227
227
|
};
|
|
228
228
|
return n && r.set("length", /* @__PURE__ */ ie(
|
|
229
229
|
/** @type {any[]} */
|
|
@@ -252,11 +252,11 @@ function Lt(e) {
|
|
|
252
252
|
return !0;
|
|
253
253
|
},
|
|
254
254
|
get(l, s, u) {
|
|
255
|
-
if (s ===
|
|
255
|
+
if (s === Lt)
|
|
256
256
|
return e;
|
|
257
257
|
var f = r.get(s), h = s in l;
|
|
258
258
|
if (f === void 0 && (!h || Zt(l, s)?.writable) && (f = o(() => {
|
|
259
|
-
var d =
|
|
259
|
+
var d = Nt(h ? l[s] : xe), v = /* @__PURE__ */ ie(d);
|
|
260
260
|
return v;
|
|
261
261
|
}), r.set(s, f)), f !== void 0) {
|
|
262
262
|
var p = c(f);
|
|
@@ -282,12 +282,12 @@ function Lt(e) {
|
|
|
282
282
|
return u;
|
|
283
283
|
},
|
|
284
284
|
has(l, s) {
|
|
285
|
-
if (s ===
|
|
285
|
+
if (s === Lt)
|
|
286
286
|
return !0;
|
|
287
287
|
var u = r.get(s), f = u !== void 0 && u.v !== xe || Reflect.has(l, s);
|
|
288
288
|
if (u !== void 0 || q !== null && (!f || Zt(l, s)?.writable)) {
|
|
289
289
|
u === void 0 && (u = o(() => {
|
|
290
|
-
var p = f ?
|
|
290
|
+
var p = f ? Nt(l[s]) : xe, d = /* @__PURE__ */ ie(p);
|
|
291
291
|
return d;
|
|
292
292
|
}), r.set(s, u));
|
|
293
293
|
var h = c(u);
|
|
@@ -305,10 +305,10 @@ function Lt(e) {
|
|
|
305
305
|
v !== void 0 ? z(v, xe) : d in l && (v = o(() => /* @__PURE__ */ ie(xe)), r.set(d + "", v));
|
|
306
306
|
}
|
|
307
307
|
if (h === void 0)
|
|
308
|
-
(!p || Zt(l, s)?.writable) && (h = o(() => /* @__PURE__ */ ie(void 0)), z(h,
|
|
308
|
+
(!p || Zt(l, s)?.writable) && (h = o(() => /* @__PURE__ */ ie(void 0)), z(h, Nt(u)), r.set(s, h));
|
|
309
309
|
else {
|
|
310
310
|
p = h.v !== xe;
|
|
311
|
-
var g = o(() =>
|
|
311
|
+
var g = o(() => Nt(u));
|
|
312
312
|
z(h, g);
|
|
313
313
|
}
|
|
314
314
|
var y = Reflect.getOwnPropertyDescriptor(l, s);
|
|
@@ -340,12 +340,12 @@ function Lt(e) {
|
|
|
340
340
|
}
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var ni, Ji, Ki, eo;
|
|
344
344
|
function pn() {
|
|
345
|
-
if (
|
|
346
|
-
|
|
345
|
+
if (ni === void 0) {
|
|
346
|
+
ni = window, Ji = /Firefox/.test(navigator.userAgent);
|
|
347
347
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
348
|
-
|
|
348
|
+
Ki = Zt(t, "firstChild").get, eo = Zt(t, "nextSibling").get, ri(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), ri(r) && (r.__t = void 0);
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
function et(e = "") {
|
|
@@ -353,11 +353,11 @@ function et(e = "") {
|
|
|
353
353
|
}
|
|
354
354
|
// @__NO_SIDE_EFFECTS__
|
|
355
355
|
function pt(e) {
|
|
356
|
-
return
|
|
356
|
+
return Ki.call(e);
|
|
357
357
|
}
|
|
358
358
|
// @__NO_SIDE_EFFECTS__
|
|
359
359
|
function nt(e) {
|
|
360
|
-
return
|
|
360
|
+
return eo.call(e);
|
|
361
361
|
}
|
|
362
362
|
function ge(e, t) {
|
|
363
363
|
if (!Q)
|
|
@@ -405,13 +405,13 @@ function oe(e, t = 1, r = !1) {
|
|
|
405
405
|
return Ce(n), /** @type {TemplateNode} */
|
|
406
406
|
n;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function to(e) {
|
|
409
409
|
e.textContent = "";
|
|
410
410
|
}
|
|
411
411
|
function nl() {
|
|
412
412
|
return !1;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ro(e) {
|
|
415
415
|
var t = q;
|
|
416
416
|
if (t === null)
|
|
417
417
|
return Y.f |= Tt, e;
|
|
@@ -508,7 +508,7 @@ class Ze {
|
|
|
508
508
|
};
|
|
509
509
|
for (const n of t)
|
|
510
510
|
this.#i(n, r);
|
|
511
|
-
this.is_fork || this.#u(), this.#n > 0 || this.is_fork ? (this.#o(r.effects), this.#o(r.render_effects), this.#o(r.block_effects)) : (pe = null,
|
|
511
|
+
this.is_fork || this.#u(), this.#n > 0 || this.is_fork ? (this.#o(r.effects), this.#o(r.render_effects), this.#o(r.block_effects)) : (pe = null, ii(r.render_effects), ii(r.effects), this.#s?.resolve()), Ye = null;
|
|
512
512
|
}
|
|
513
513
|
/**
|
|
514
514
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -564,7 +564,7 @@ class Ze {
|
|
|
564
564
|
}
|
|
565
565
|
flush() {
|
|
566
566
|
if (this.activate(), Qe.length > 0) {
|
|
567
|
-
if (
|
|
567
|
+
if (no(), pe !== null && pe !== this)
|
|
568
568
|
return;
|
|
569
569
|
} else this.#r === 0 && this.process([]);
|
|
570
570
|
this.deactivate();
|
|
@@ -610,7 +610,7 @@ class Ze {
|
|
|
610
610
|
if (o.length > 0) {
|
|
611
611
|
const l = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
|
|
612
612
|
for (const u of a)
|
|
613
|
-
|
|
613
|
+
io(u, o, l, s);
|
|
614
614
|
if (Qe.length > 0) {
|
|
615
615
|
pe = i, i.apply();
|
|
616
616
|
for (const u of Qe)
|
|
@@ -653,7 +653,7 @@ class Ze {
|
|
|
653
653
|
this.#e.add(t);
|
|
654
654
|
}
|
|
655
655
|
settled() {
|
|
656
|
-
return (this.#s ??=
|
|
656
|
+
return (this.#s ??= Oi()).promise;
|
|
657
657
|
}
|
|
658
658
|
static ensure() {
|
|
659
659
|
if (pe === null) {
|
|
@@ -679,18 +679,18 @@ function il(e) {
|
|
|
679
679
|
if (tl(), Qe.length === 0 && (pe?.flush(), Qe.length === 0))
|
|
680
680
|
return Wr = null, /** @type {T} */
|
|
681
681
|
r;
|
|
682
|
-
|
|
682
|
+
no();
|
|
683
683
|
}
|
|
684
684
|
} finally {
|
|
685
685
|
vr = t;
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function no() {
|
|
689
689
|
var e = Jt;
|
|
690
690
|
vn = !0;
|
|
691
691
|
try {
|
|
692
692
|
var t = 0;
|
|
693
|
-
for (
|
|
693
|
+
for (oi(!0); Qe.length > 0; ) {
|
|
694
694
|
var r = Ze.ensure();
|
|
695
695
|
if (t++ > 1e3) {
|
|
696
696
|
var n, i;
|
|
@@ -699,23 +699,23 @@ function ro() {
|
|
|
699
699
|
r.process(Qe), Et.clear();
|
|
700
700
|
}
|
|
701
701
|
} finally {
|
|
702
|
-
vn = !1,
|
|
702
|
+
vn = !1, oi(e), Wr = null;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
function ol() {
|
|
706
706
|
try {
|
|
707
|
-
|
|
707
|
+
La();
|
|
708
708
|
} catch (e) {
|
|
709
709
|
ir(e, Wr);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
let ut = null;
|
|
713
|
-
function
|
|
713
|
+
function ii(e) {
|
|
714
714
|
var t = e.length;
|
|
715
715
|
if (t !== 0) {
|
|
716
716
|
for (var r = 0; r < t; ) {
|
|
717
717
|
var n = e[r++];
|
|
718
|
-
if ((n.f & (dt | Ie)) === 0 && Mr(n) && (ut = /* @__PURE__ */ new Set(), _r(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null && n.ac === null ?
|
|
718
|
+
if ((n.f & (dt | Ie)) === 0 && Mr(n) && (ut = /* @__PURE__ */ new Set(), _r(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null && n.ac === null ? Ro(n) : n.fn = null), ut?.size > 0)) {
|
|
719
719
|
Et.clear();
|
|
720
720
|
for (const i of ut) {
|
|
721
721
|
if ((i.f & (dt | Ie)) !== 0) continue;
|
|
@@ -734,31 +734,31 @@ function ni(e) {
|
|
|
734
734
|
ut = null;
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function io(e, t, r, n) {
|
|
738
738
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
739
739
|
for (const i of e.reactions) {
|
|
740
740
|
const a = i.f;
|
|
741
|
-
(a & we) !== 0 ?
|
|
741
|
+
(a & we) !== 0 ? io(
|
|
742
742
|
/** @type {Derived} */
|
|
743
743
|
i,
|
|
744
744
|
t,
|
|
745
745
|
r,
|
|
746
746
|
n
|
|
747
747
|
) : (a & (Tn | vt)) !== 0 && (a & Ue) === 0 && // we may have scheduled this one already
|
|
748
|
-
|
|
748
|
+
oo(i, t, n) && (be(i, Ue), Ot(
|
|
749
749
|
/** @type {Effect} */
|
|
750
750
|
i
|
|
751
751
|
));
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function oo(e, t, r) {
|
|
755
755
|
const n = r.get(e);
|
|
756
756
|
if (n !== void 0) return n;
|
|
757
757
|
if (e.deps !== null)
|
|
758
758
|
for (const i of e.deps) {
|
|
759
759
|
if (t.includes(i))
|
|
760
760
|
return !0;
|
|
761
|
-
if ((i.f & we) !== 0 &&
|
|
761
|
+
if ((i.f & we) !== 0 && oo(
|
|
762
762
|
/** @type {Derived} */
|
|
763
763
|
i,
|
|
764
764
|
t,
|
|
@@ -776,7 +776,7 @@ function Ot(e) {
|
|
|
776
776
|
for (var t = Wr = e; t.parent !== null; ) {
|
|
777
777
|
t = t.parent;
|
|
778
778
|
var r = t.f;
|
|
779
|
-
if (vn && t === q && (r & vt) !== 0 && (r &
|
|
779
|
+
if (vn && t === q && (r & vt) !== 0 && (r & ki) === 0)
|
|
780
780
|
return;
|
|
781
781
|
if ((r & (qt | gt)) !== 0) {
|
|
782
782
|
if ((r & _e) === 0) return;
|
|
@@ -908,7 +908,7 @@ class ul {
|
|
|
908
908
|
try {
|
|
909
909
|
return t();
|
|
910
910
|
} catch (a) {
|
|
911
|
-
return
|
|
911
|
+
return ro(a), null;
|
|
912
912
|
} finally {
|
|
913
913
|
tt(r), Be(n), nr(i);
|
|
914
914
|
}
|
|
@@ -921,7 +921,7 @@ class ul {
|
|
|
921
921
|
this.#a !== null && (this.#u = document.createDocumentFragment(), this.#u.append(
|
|
922
922
|
/** @type {TemplateNode} */
|
|
923
923
|
this.#f
|
|
924
|
-
),
|
|
924
|
+
), So(this.#a, this.#u)), this.#i === null && (this.#i = Ve(() => t(this.#e)));
|
|
925
925
|
}
|
|
926
926
|
/**
|
|
927
927
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
@@ -961,7 +961,7 @@ class ul {
|
|
|
961
961
|
this.#a && (Te(this.#a), this.#a = null), this.#i && (Te(this.#i), this.#i = null), this.#o && (Te(this.#o), this.#o = null), Q && (Ce(
|
|
962
962
|
/** @type {TemplateNode} */
|
|
963
963
|
this.#r
|
|
964
|
-
),
|
|
964
|
+
), Qi(), Ce(kr()));
|
|
965
965
|
var i = !1, a = !1;
|
|
966
966
|
const o = () => {
|
|
967
967
|
if (i) {
|
|
@@ -1022,7 +1022,7 @@ function fl(e, t, r, n) {
|
|
|
1022
1022
|
} catch (f) {
|
|
1023
1023
|
(o.f & dt) === 0 && ir(f, o);
|
|
1024
1024
|
}
|
|
1025
|
-
a?.deactivate(),
|
|
1025
|
+
a?.deactivate(), Nr();
|
|
1026
1026
|
}).catch((u) => {
|
|
1027
1027
|
ir(u, o);
|
|
1028
1028
|
});
|
|
@@ -1032,7 +1032,7 @@ function fl(e, t, r, n) {
|
|
|
1032
1032
|
try {
|
|
1033
1033
|
return s();
|
|
1034
1034
|
} finally {
|
|
1035
|
-
a?.deactivate(),
|
|
1035
|
+
a?.deactivate(), Nr();
|
|
1036
1036
|
}
|
|
1037
1037
|
}) : s();
|
|
1038
1038
|
}
|
|
@@ -1042,7 +1042,7 @@ function cl() {
|
|
|
1042
1042
|
tt(e), Be(t), nr(r), i && n?.activate();
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function Nr() {
|
|
1046
1046
|
tt(null), Be(null), nr(null);
|
|
1047
1047
|
}
|
|
1048
1048
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1055,7 +1055,7 @@ function Xr(e) {
|
|
|
1055
1055
|
ctx: ke,
|
|
1056
1056
|
deps: null,
|
|
1057
1057
|
effects: null,
|
|
1058
|
-
equals:
|
|
1058
|
+
equals: $i,
|
|
1059
1059
|
f: t,
|
|
1060
1060
|
fn: e,
|
|
1061
1061
|
reactions: null,
|
|
@@ -1088,14 +1088,14 @@ function dl(e, t) {
|
|
|
1088
1088
|
xe
|
|
1089
1089
|
), o = !Y, l = /* @__PURE__ */ new Map();
|
|
1090
1090
|
return wl(() => {
|
|
1091
|
-
var s =
|
|
1091
|
+
var s = Oi();
|
|
1092
1092
|
i = s.promise;
|
|
1093
1093
|
try {
|
|
1094
1094
|
Promise.resolve(e()).then(s.resolve, s.reject).then(() => {
|
|
1095
|
-
u === pe && u.committed && u.deactivate(),
|
|
1095
|
+
u === pe && u.committed && u.deactivate(), Nr();
|
|
1096
1096
|
});
|
|
1097
1097
|
} catch (p) {
|
|
1098
|
-
s.reject(p),
|
|
1098
|
+
s.reject(p), Nr();
|
|
1099
1099
|
}
|
|
1100
1100
|
var u = (
|
|
1101
1101
|
/** @type {Batch} */
|
|
@@ -1118,7 +1118,7 @@ function dl(e, t) {
|
|
|
1118
1118
|
o && (n.update_pending_count(-1), u.decrement(f));
|
|
1119
1119
|
};
|
|
1120
1120
|
s.promise.then(h, (p) => h(null, p || "unknown"));
|
|
1121
|
-
}),
|
|
1121
|
+
}), _o(() => {
|
|
1122
1122
|
for (const s of l.values())
|
|
1123
1123
|
s.reject(Qt);
|
|
1124
1124
|
}), new Promise((s) => {
|
|
@@ -1132,16 +1132,16 @@ function dl(e, t) {
|
|
|
1132
1132
|
});
|
|
1133
1133
|
}
|
|
1134
1134
|
// @__NO_SIDE_EFFECTS__
|
|
1135
|
-
function
|
|
1135
|
+
function k(e) {
|
|
1136
1136
|
const t = /* @__PURE__ */ Xr(e);
|
|
1137
|
-
return
|
|
1137
|
+
return ho(t), t;
|
|
1138
1138
|
}
|
|
1139
1139
|
// @__NO_SIDE_EFFECTS__
|
|
1140
|
-
function
|
|
1140
|
+
function ao(e) {
|
|
1141
1141
|
const t = /* @__PURE__ */ Xr(e);
|
|
1142
|
-
return t.equals =
|
|
1142
|
+
return t.equals = Vi, t;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function lo(e) {
|
|
1145
1145
|
var t = e.effects;
|
|
1146
1146
|
if (t !== null) {
|
|
1147
1147
|
e.effects = null;
|
|
@@ -1167,15 +1167,15 @@ function Cn(e) {
|
|
|
1167
1167
|
var t, r = q;
|
|
1168
1168
|
tt(hl(e));
|
|
1169
1169
|
try {
|
|
1170
|
-
e.f &= ~Ur,
|
|
1170
|
+
e.f &= ~Ur, lo(e), t = yo(e);
|
|
1171
1171
|
} finally {
|
|
1172
1172
|
tt(r);
|
|
1173
1173
|
}
|
|
1174
1174
|
return t;
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function so(e) {
|
|
1177
1177
|
var t = Cn(e);
|
|
1178
|
-
if (e.equals(t) || (e.v = t, e.wv =
|
|
1178
|
+
if (e.equals(t) || (e.v = t, e.wv = vo()), !Vt)
|
|
1179
1179
|
if (Ye !== null)
|
|
1180
1180
|
Ye.set(e, e.v);
|
|
1181
1181
|
else {
|
|
@@ -1185,14 +1185,14 @@ function lo(e) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
let gn = /* @__PURE__ */ new Set();
|
|
1187
1187
|
const Et = /* @__PURE__ */ new Map();
|
|
1188
|
-
let
|
|
1188
|
+
let uo = !1;
|
|
1189
1189
|
function $t(e, t) {
|
|
1190
1190
|
var r = {
|
|
1191
1191
|
f: 0,
|
|
1192
1192
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1193
1193
|
v: e,
|
|
1194
1194
|
reactions: null,
|
|
1195
|
-
equals:
|
|
1195
|
+
equals: $i,
|
|
1196
1196
|
rv: 0,
|
|
1197
1197
|
wv: 0
|
|
1198
1198
|
};
|
|
@@ -1201,18 +1201,18 @@ function $t(e, t) {
|
|
|
1201
1201
|
// @__NO_SIDE_EFFECTS__
|
|
1202
1202
|
function ie(e, t) {
|
|
1203
1203
|
const r = $t(e);
|
|
1204
|
-
return
|
|
1204
|
+
return ho(r), r;
|
|
1205
1205
|
}
|
|
1206
1206
|
// @__NO_SIDE_EFFECTS__
|
|
1207
|
-
function
|
|
1207
|
+
function fo(e, t = !1, r = !0) {
|
|
1208
1208
|
const n = $t(e);
|
|
1209
|
-
return t || (n.equals =
|
|
1209
|
+
return t || (n.equals = Vi), n;
|
|
1210
1210
|
}
|
|
1211
1211
|
function z(e, t, r = !1) {
|
|
1212
1212
|
Y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1213
1213
|
// to ensure we error if state is set inside an inspect effect
|
|
1214
|
-
(!We || (Y.f &
|
|
1215
|
-
let n = r ?
|
|
1214
|
+
(!We || (Y.f & ti) !== 0) && ji() && (Y.f & (we | vt | Tn | ti)) !== 0 && !ht?.includes(e) && qa();
|
|
1215
|
+
let n = r ? Nt(t) : t;
|
|
1216
1216
|
return or(e, n);
|
|
1217
1217
|
}
|
|
1218
1218
|
function or(e, t) {
|
|
@@ -1223,12 +1223,12 @@ function or(e, t) {
|
|
|
1223
1223
|
n.capture(e, r), (e.f & we) !== 0 && ((e.f & Ue) !== 0 && Cn(
|
|
1224
1224
|
/** @type {Derived} */
|
|
1225
1225
|
e
|
|
1226
|
-
), be(e, (e.f & $e) === 0 ? _e : yt)), e.wv =
|
|
1226
|
+
), be(e, (e.f & $e) === 0 ? _e : yt)), e.wv = vo(), co(e, Ue), q !== null && (q.f & _e) !== 0 && (q.f & (gt | qt)) === 0 && (Oe === null ? vl([e]) : Oe.push(e)), !n.is_fork && gn.size > 0 && !uo && pl();
|
|
1227
1227
|
}
|
|
1228
1228
|
return t;
|
|
1229
1229
|
}
|
|
1230
1230
|
function pl() {
|
|
1231
|
-
|
|
1231
|
+
uo = !1;
|
|
1232
1232
|
const e = Array.from(gn);
|
|
1233
1233
|
for (const t of e)
|
|
1234
1234
|
(t.f & _e) !== 0 && be(t, yt), Mr(t) && _r(t);
|
|
@@ -1237,12 +1237,12 @@ function pl() {
|
|
|
1237
1237
|
function gr(e) {
|
|
1238
1238
|
z(e, e.v + 1);
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1240
|
+
function co(e, t) {
|
|
1241
1241
|
var r = e.reactions;
|
|
1242
1242
|
if (r !== null)
|
|
1243
1243
|
for (var n = r.length, i = 0; i < n; i++) {
|
|
1244
1244
|
var a = r[i], o = a.f, l = (o & Ue) === 0;
|
|
1245
|
-
l && be(a, t), (o & we) !== 0 ? (o & Ur) === 0 && (a.f |= Ur,
|
|
1245
|
+
l && be(a, t), (o & we) !== 0 ? (o & Ur) === 0 && (a.f |= Ur, co(
|
|
1246
1246
|
/** @type {Derived} */
|
|
1247
1247
|
a,
|
|
1248
1248
|
yt
|
|
@@ -1265,11 +1265,11 @@ function Un(e) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
let Jt = !1;
|
|
1268
|
-
function
|
|
1268
|
+
function oi(e) {
|
|
1269
1269
|
Jt = e;
|
|
1270
1270
|
}
|
|
1271
1271
|
let Vt = !1;
|
|
1272
|
-
function
|
|
1272
|
+
function ai(e) {
|
|
1273
1273
|
Vt = e;
|
|
1274
1274
|
}
|
|
1275
1275
|
let Y = null, We = !1;
|
|
@@ -1281,20 +1281,20 @@ function tt(e) {
|
|
|
1281
1281
|
q = e;
|
|
1282
1282
|
}
|
|
1283
1283
|
let ht = null;
|
|
1284
|
-
function
|
|
1284
|
+
function ho(e) {
|
|
1285
1285
|
Y !== null && (ht === null ? ht = [e] : ht.push(e));
|
|
1286
1286
|
}
|
|
1287
|
-
let Re = null,
|
|
1287
|
+
let Re = null, Ge = 0, Oe = null;
|
|
1288
1288
|
function vl(e) {
|
|
1289
1289
|
Oe = e;
|
|
1290
1290
|
}
|
|
1291
|
-
let
|
|
1292
|
-
function
|
|
1291
|
+
let po = 1, xr = 0, It = xr;
|
|
1292
|
+
function li(e) {
|
|
1293
1293
|
It = e;
|
|
1294
1294
|
}
|
|
1295
1295
|
let At = !1;
|
|
1296
|
-
function
|
|
1297
|
-
return ++
|
|
1296
|
+
function vo() {
|
|
1297
|
+
return ++po;
|
|
1298
1298
|
}
|
|
1299
1299
|
function Mr(e) {
|
|
1300
1300
|
var t = e.f;
|
|
@@ -1317,7 +1317,7 @@ function Mr(e) {
|
|
|
1317
1317
|
if (a = r[i], Mr(
|
|
1318
1318
|
/** @type {Derived} */
|
|
1319
1319
|
a
|
|
1320
|
-
) &&
|
|
1320
|
+
) && so(
|
|
1321
1321
|
/** @type {Derived} */
|
|
1322
1322
|
a
|
|
1323
1323
|
), a.wv > e.wv)
|
|
@@ -1327,12 +1327,12 @@ function Mr(e) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
return !1;
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function go(e, t, r = !0) {
|
|
1331
1331
|
var n = e.reactions;
|
|
1332
1332
|
if (n !== null && !ht?.includes(e))
|
|
1333
1333
|
for (var i = 0; i < n.length; i++) {
|
|
1334
1334
|
var a = n[i];
|
|
1335
|
-
(a.f & we) !== 0 ?
|
|
1335
|
+
(a.f & we) !== 0 ? go(
|
|
1336
1336
|
/** @type {Derived} */
|
|
1337
1337
|
a,
|
|
1338
1338
|
t,
|
|
@@ -1343,10 +1343,10 @@ function vo(e, t, r = !0) {
|
|
|
1343
1343
|
));
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1347
|
-
var t = Re, r =
|
|
1346
|
+
function yo(e) {
|
|
1347
|
+
var t = Re, r = Ge, n = Oe, i = Y, a = At, o = ht, l = ke, s = We, u = It, f = e.f;
|
|
1348
1348
|
Re = /** @type {null | Value[]} */
|
|
1349
|
-
null,
|
|
1349
|
+
null, Ge = 0, Oe = null, At = (f & $e) !== 0 && (We || !Jt || Y === null), Y = (f & (gt | qt)) === 0 ? e : null, ht = null, nr(e.ctx), We = !1, It = ++xr, e.ac !== null && (Un(() => {
|
|
1350
1350
|
e.ac.abort(Qt);
|
|
1351
1351
|
}), e.ac = null);
|
|
1352
1352
|
try {
|
|
@@ -1357,21 +1357,21 @@ function go(e) {
|
|
|
1357
1357
|
), p = h(), d = e.deps;
|
|
1358
1358
|
if (Re !== null) {
|
|
1359
1359
|
var v;
|
|
1360
|
-
if (
|
|
1361
|
-
for (d.length =
|
|
1362
|
-
d[
|
|
1360
|
+
if (Gr(e, Ge), d !== null && Ge > 0)
|
|
1361
|
+
for (d.length = Ge + Re.length, v = 0; v < Re.length; v++)
|
|
1362
|
+
d[Ge + v] = Re[v];
|
|
1363
1363
|
else
|
|
1364
1364
|
e.deps = d = Re;
|
|
1365
1365
|
if (!At || // Deriveds that already have reactions can cleanup, so we still add them as reactions
|
|
1366
1366
|
(f & we) !== 0 && /** @type {import('#client').Derived} */
|
|
1367
1367
|
e.reactions !== null)
|
|
1368
|
-
for (v =
|
|
1368
|
+
for (v = Ge; v < d.length; v++)
|
|
1369
1369
|
(d[v].reactions ??= []).push(e);
|
|
1370
|
-
} else d !== null &&
|
|
1371
|
-
if (
|
|
1370
|
+
} else d !== null && Ge < d.length && (Gr(e, Ge), d.length = Ge);
|
|
1371
|
+
if (ji() && Oe !== null && !We && d !== null && (e.f & (we | yt | Ue)) === 0)
|
|
1372
1372
|
for (v = 0; v < /** @type {Source[]} */
|
|
1373
1373
|
Oe.length; v++)
|
|
1374
|
-
|
|
1374
|
+
go(
|
|
1375
1375
|
Oe[v],
|
|
1376
1376
|
/** @type {Effect} */
|
|
1377
1377
|
e
|
|
@@ -1379,9 +1379,9 @@ function go(e) {
|
|
|
1379
1379
|
return i !== null && i !== e && (xr++, Oe !== null && (n === null ? n = Oe : n.push(.../** @type {Source[]} */
|
|
1380
1380
|
Oe))), (e.f & Tt) !== 0 && (e.f ^= Tt), p;
|
|
1381
1381
|
} catch (g) {
|
|
1382
|
-
return
|
|
1382
|
+
return ro(g);
|
|
1383
1383
|
} finally {
|
|
1384
|
-
e.f ^= hn, Re = t,
|
|
1384
|
+
e.f ^= hn, Re = t, Ge = r, Oe = n, Y = i, At = a, ht = o, nr(l), We = s, It = u;
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
1387
|
function gl(e, t) {
|
|
@@ -1396,16 +1396,16 @@ function gl(e, t) {
|
|
|
1396
1396
|
r === null && (t.f & we) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1397
1397
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1398
1398
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1399
|
-
(Re === null || !Re.includes(t)) && (be(t, yt), (t.f & ($e | Cr)) === 0 && (t.f ^= Cr),
|
|
1399
|
+
(Re === null || !Re.includes(t)) && (be(t, yt), (t.f & ($e | Cr)) === 0 && (t.f ^= Cr), lo(
|
|
1400
1400
|
/** @type {Derived} **/
|
|
1401
1401
|
t
|
|
1402
|
-
),
|
|
1402
|
+
), Gr(
|
|
1403
1403
|
/** @type {Derived} **/
|
|
1404
1404
|
t,
|
|
1405
1405
|
0
|
|
1406
1406
|
));
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function Gr(e, t) {
|
|
1409
1409
|
var r = e.deps;
|
|
1410
1410
|
if (r !== null)
|
|
1411
1411
|
for (var n = t; n < r.length; n++)
|
|
@@ -1418,9 +1418,9 @@ function _r(e) {
|
|
|
1418
1418
|
var r = q, n = Jt;
|
|
1419
1419
|
q = e, Jt = !0;
|
|
1420
1420
|
try {
|
|
1421
|
-
(t & vt) !== 0 ? Al(e) :
|
|
1422
|
-
var i =
|
|
1423
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1421
|
+
(t & vt) !== 0 ? Al(e) : Mo(e), Ao(e);
|
|
1422
|
+
var i = yo(e);
|
|
1423
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = po;
|
|
1424
1424
|
var a;
|
|
1425
1425
|
Fa && Ya && (e.f & Ue) !== 0 && e.deps;
|
|
1426
1426
|
} finally {
|
|
@@ -1435,7 +1435,7 @@ function c(e) {
|
|
|
1435
1435
|
if (!n && !ht?.includes(e)) {
|
|
1436
1436
|
var i = Y.deps;
|
|
1437
1437
|
if ((Y.f & hn) !== 0)
|
|
1438
|
-
e.rv < xr && (e.rv = xr, Re === null && i !== null && i[
|
|
1438
|
+
e.rv < xr && (e.rv = xr, Re === null && i !== null && i[Ge] === e ? Ge++ : Re === null ? Re = [e] : (!At || !Re.includes(e)) && Re.push(e));
|
|
1439
1439
|
else {
|
|
1440
1440
|
(Y.deps ??= []).push(e);
|
|
1441
1441
|
var a = e.reactions;
|
|
@@ -1458,13 +1458,13 @@ function c(e) {
|
|
|
1458
1458
|
o = /** @type {Derived} */
|
|
1459
1459
|
e;
|
|
1460
1460
|
var s = o.v;
|
|
1461
|
-
return ((o.f & _e) === 0 && o.reactions !== null ||
|
|
1461
|
+
return ((o.f & _e) === 0 && o.reactions !== null || mo(o)) && (s = Cn(o)), Et.set(o, s), s;
|
|
1462
1462
|
}
|
|
1463
1463
|
} else if (r) {
|
|
1464
1464
|
if (o = /** @type {Derived} */
|
|
1465
1465
|
e, Ye?.has(o))
|
|
1466
1466
|
return Ye.get(o);
|
|
1467
|
-
Mr(o) &&
|
|
1467
|
+
Mr(o) && so(o);
|
|
1468
1468
|
}
|
|
1469
1469
|
if (Ye?.has(e))
|
|
1470
1470
|
return Ye.get(e);
|
|
@@ -1472,11 +1472,11 @@ function c(e) {
|
|
|
1472
1472
|
throw e.v;
|
|
1473
1473
|
return e.v;
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function mo(e) {
|
|
1476
1476
|
if (e.v === xe) return !0;
|
|
1477
1477
|
if (e.deps === null) return !1;
|
|
1478
1478
|
for (const t of e.deps)
|
|
1479
|
-
if (Et.has(t) || (t.f & we) !== 0 &&
|
|
1479
|
+
if (Et.has(t) || (t.f & we) !== 0 && mo(
|
|
1480
1480
|
/** @type {Derived} */
|
|
1481
1481
|
t
|
|
1482
1482
|
))
|
|
@@ -1497,12 +1497,12 @@ function be(e, t) {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
function ml(e) {
|
|
1499
1499
|
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1500
|
-
if (
|
|
1500
|
+
if (Lt in e)
|
|
1501
1501
|
yn(e);
|
|
1502
1502
|
else if (!Array.isArray(e))
|
|
1503
1503
|
for (let t in e) {
|
|
1504
1504
|
const r = e[t];
|
|
1505
|
-
typeof r == "object" && r &&
|
|
1505
|
+
typeof r == "object" && r && Lt in r && yn(r);
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
@@ -1517,7 +1517,7 @@ function yn(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1517
1517
|
}
|
|
1518
1518
|
const r = Fn(e);
|
|
1519
1519
|
if (r !== Object.prototype && r !== Array.prototype && r !== Map.prototype && r !== Set.prototype && r !== Date.prototype) {
|
|
1520
|
-
const n =
|
|
1520
|
+
const n = zi(r);
|
|
1521
1521
|
for (let i in n) {
|
|
1522
1522
|
const a = n[i].get;
|
|
1523
1523
|
if (a)
|
|
@@ -1529,8 +1529,8 @@ function yn(e, t = /* @__PURE__ */ new Set()) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
q === null && Y === null &&
|
|
1532
|
+
function xo(e) {
|
|
1533
|
+
q === null && Y === null && Ga(), Y !== null && (Y.f & $e) !== 0 && q === null && Na(), Vt && ka();
|
|
1534
1534
|
}
|
|
1535
1535
|
function xl(e, t) {
|
|
1536
1536
|
var r = t.last;
|
|
@@ -1580,12 +1580,12 @@ function it(e, t, r, n = !0) {
|
|
|
1580
1580
|
function _l() {
|
|
1581
1581
|
return Y !== null && !We;
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function _o(e) {
|
|
1584
1584
|
const t = it($r, null, !1);
|
|
1585
1585
|
return be(t, _e), t.teardown = e, t;
|
|
1586
1586
|
}
|
|
1587
1587
|
function st(e) {
|
|
1588
|
-
|
|
1588
|
+
xo();
|
|
1589
1589
|
var t = (
|
|
1590
1590
|
/** @type {Effect} */
|
|
1591
1591
|
q.f
|
|
@@ -1597,13 +1597,13 @@ function st(e) {
|
|
|
1597
1597
|
);
|
|
1598
1598
|
(n.e ??= []).push(e);
|
|
1599
1599
|
} else
|
|
1600
|
-
return
|
|
1600
|
+
return bo(e);
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1603
|
-
return it(Or |
|
|
1602
|
+
function bo(e) {
|
|
1603
|
+
return it(Or | Ni, e, !1);
|
|
1604
1604
|
}
|
|
1605
1605
|
function yr(e) {
|
|
1606
|
-
return
|
|
1606
|
+
return xo(), it($r | Ni, e, !0);
|
|
1607
1607
|
}
|
|
1608
1608
|
function bl(e) {
|
|
1609
1609
|
Ze.ensure();
|
|
@@ -1614,7 +1614,7 @@ function bl(e) {
|
|
|
1614
1614
|
}) : (Te(t), n(void 0));
|
|
1615
1615
|
});
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function wo(e) {
|
|
1618
1618
|
return it(Or, e, !1);
|
|
1619
1619
|
}
|
|
1620
1620
|
function wl(e) {
|
|
@@ -1623,7 +1623,7 @@ function wl(e) {
|
|
|
1623
1623
|
function kn(e, t = 0) {
|
|
1624
1624
|
return it($r | t, e, !0);
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1626
|
+
function Le(e, t = [], r = [], n = [], i = !1) {
|
|
1627
1627
|
fl(n, t, r, (a) => {
|
|
1628
1628
|
it(i ? Or : $r, () => e(...a.map(c)), !0);
|
|
1629
1629
|
});
|
|
@@ -1635,19 +1635,19 @@ function jr(e, t = 0) {
|
|
|
1635
1635
|
function Ve(e, t = !0) {
|
|
1636
1636
|
return it(gt | ar, e, !0, t);
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function Ao(e) {
|
|
1639
1639
|
var t = e.teardown;
|
|
1640
1640
|
if (t !== null) {
|
|
1641
1641
|
const r = Vt, n = Y;
|
|
1642
|
-
|
|
1642
|
+
ai(!0), Be(null);
|
|
1643
1643
|
try {
|
|
1644
1644
|
t.call(null);
|
|
1645
1645
|
} finally {
|
|
1646
|
-
|
|
1646
|
+
ai(r), Be(n);
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1650
|
+
function Mo(e, t = !1) {
|
|
1651
1651
|
var r = e.first;
|
|
1652
1652
|
for (e.first = e.last = null; r !== null; ) {
|
|
1653
1653
|
const i = r.ac;
|
|
@@ -1666,18 +1666,18 @@ function Al(e) {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
function Te(e, t = !0) {
|
|
1668
1668
|
var r = !1;
|
|
1669
|
-
(t || (e.f &
|
|
1669
|
+
(t || (e.f & ki) !== 0) && e.nodes_start !== null && e.nodes_end !== null && (Ml(
|
|
1670
1670
|
e.nodes_start,
|
|
1671
1671
|
/** @type {TemplateNode} */
|
|
1672
1672
|
e.nodes_end
|
|
1673
|
-
), r = !0),
|
|
1673
|
+
), r = !0), Mo(e, t && !r), Gr(e, 0), be(e, dt);
|
|
1674
1674
|
var n = e.transitions;
|
|
1675
1675
|
if (n !== null)
|
|
1676
1676
|
for (const a of n)
|
|
1677
1677
|
a.stop();
|
|
1678
|
-
|
|
1678
|
+
Ao(e);
|
|
1679
1679
|
var i = e.parent;
|
|
1680
|
-
i !== null && i.first !== null &&
|
|
1680
|
+
i !== null && i.first !== null && Ro(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = e.ac = null;
|
|
1681
1681
|
}
|
|
1682
1682
|
function Ml(e, t) {
|
|
1683
1683
|
for (; e !== null; ) {
|
|
@@ -1688,17 +1688,17 @@ function Ml(e, t) {
|
|
|
1688
1688
|
e.remove(), e = r;
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function Ro(e) {
|
|
1692
1692
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1693
1693
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1694
1694
|
}
|
|
1695
1695
|
function Kt(e, t, r = !0) {
|
|
1696
1696
|
var n = [];
|
|
1697
|
-
|
|
1697
|
+
Nn(e, n, !0), To(n, () => {
|
|
1698
1698
|
r && Te(e), t && t();
|
|
1699
1699
|
});
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function To(e, t) {
|
|
1702
1702
|
var r = e.length;
|
|
1703
1703
|
if (r > 0) {
|
|
1704
1704
|
var n = () => --r || t();
|
|
@@ -1707,7 +1707,7 @@ function Ro(e, t) {
|
|
|
1707
1707
|
} else
|
|
1708
1708
|
t();
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function Nn(e, t, r) {
|
|
1711
1711
|
if ((e.f & Ie) === 0) {
|
|
1712
1712
|
if (e.f ^= Ie, e.transitions !== null)
|
|
1713
1713
|
for (const o of e.transitions)
|
|
@@ -1717,26 +1717,26 @@ function Ln(e, t, r) {
|
|
|
1717
1717
|
// it means the parent block effect was pruned. In that case,
|
|
1718
1718
|
// transparency information was transferred to the branch effect.
|
|
1719
1719
|
(n.f & gt) !== 0 && (e.f & vt) !== 0;
|
|
1720
|
-
|
|
1720
|
+
Nn(n, t, a ? r : !1), n = i;
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
|
|
1724
|
+
function Gn(e) {
|
|
1725
|
+
Eo(e, !0);
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function Eo(e, t) {
|
|
1728
1728
|
if ((e.f & Ie) !== 0) {
|
|
1729
1729
|
e.f ^= Ie, (e.f & _e) === 0 && (be(e, Ue), Ot(e));
|
|
1730
1730
|
for (var r = e.first; r !== null; ) {
|
|
1731
1731
|
var n = r.next, i = (r.f & tr) !== 0 || (r.f & gt) !== 0;
|
|
1732
|
-
|
|
1732
|
+
Eo(r, i ? t : !1), r = n;
|
|
1733
1733
|
}
|
|
1734
1734
|
if (e.transitions !== null)
|
|
1735
1735
|
for (const a of e.transitions)
|
|
1736
1736
|
(a.is_global || t) && a.in();
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function So(e, t) {
|
|
1740
1740
|
for (var r = e.nodes_start, n = e.nodes_end; r !== null; ) {
|
|
1741
1741
|
var i = r === n ? null : (
|
|
1742
1742
|
/** @type {TemplateNode} */
|
|
@@ -1745,7 +1745,7 @@ function Eo(e, t) {
|
|
|
1745
1745
|
t.append(r), r = i;
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
|
-
const
|
|
1748
|
+
const Fo = /* @__PURE__ */ new Set(), mn = /* @__PURE__ */ new Set();
|
|
1749
1749
|
function Rl(e, t, r, n = {}) {
|
|
1750
1750
|
function i(a) {
|
|
1751
1751
|
if (n.capture || pr.call(t, a), !a.cancelBubble)
|
|
@@ -1760,17 +1760,17 @@ function Tl(e, t, r, n, i) {
|
|
|
1760
1760
|
(t === document.body || // @ts-ignore
|
|
1761
1761
|
t === window || // @ts-ignore
|
|
1762
1762
|
t === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
|
|
1763
|
-
t instanceof HTMLMediaElement) &&
|
|
1763
|
+
t instanceof HTMLMediaElement) && _o(() => {
|
|
1764
1764
|
t.removeEventListener(e, o, a);
|
|
1765
1765
|
});
|
|
1766
1766
|
}
|
|
1767
1767
|
function El(e) {
|
|
1768
1768
|
for (var t = 0; t < e.length; t++)
|
|
1769
|
-
|
|
1769
|
+
Fo.add(e[t]);
|
|
1770
1770
|
for (var r of mn)
|
|
1771
1771
|
r(e);
|
|
1772
1772
|
}
|
|
1773
|
-
let
|
|
1773
|
+
let si = null;
|
|
1774
1774
|
function pr(e) {
|
|
1775
1775
|
var t = this, r = (
|
|
1776
1776
|
/** @type {Node} */
|
|
@@ -1779,8 +1779,8 @@ function pr(e) {
|
|
|
1779
1779
|
/** @type {null | Element} */
|
|
1780
1780
|
i[0] || e.target
|
|
1781
1781
|
);
|
|
1782
|
-
|
|
1783
|
-
var o = 0, l =
|
|
1782
|
+
si = e;
|
|
1783
|
+
var o = 0, l = si === e && e.__root;
|
|
1784
1784
|
if (l) {
|
|
1785
1785
|
var s = i.indexOf(l);
|
|
1786
1786
|
if (s !== -1 && (t === document || t === /** @type {any} */
|
|
@@ -1795,7 +1795,7 @@ function pr(e) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
if (a = /** @type {Element} */
|
|
1797
1797
|
i[o] || e.target, a !== t) {
|
|
1798
|
-
|
|
1798
|
+
Ii(e, "currentTarget", {
|
|
1799
1799
|
configurable: !0,
|
|
1800
1800
|
get() {
|
|
1801
1801
|
return a || r;
|
|
@@ -1832,7 +1832,7 @@ function pr(e) {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Po(e) {
|
|
1836
1836
|
var t = document.createElement("template");
|
|
1837
1837
|
return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
|
|
1838
1838
|
}
|
|
@@ -1849,11 +1849,11 @@ function Bt(e, t) {
|
|
|
1849
1849
|
return () => {
|
|
1850
1850
|
if (Q)
|
|
1851
1851
|
return St(X, null), X;
|
|
1852
|
-
i === void 0 && (i =
|
|
1852
|
+
i === void 0 && (i = Po(a ? e : "<!>" + e), r || (i = /** @type {Node} */
|
|
1853
1853
|
/* @__PURE__ */ pt(i)));
|
|
1854
1854
|
var o = (
|
|
1855
1855
|
/** @type {TemplateNode} */
|
|
1856
|
-
n ||
|
|
1856
|
+
n || Ji ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1857
1857
|
);
|
|
1858
1858
|
if (r) {
|
|
1859
1859
|
var l = (
|
|
@@ -1878,7 +1878,7 @@ function Sl(e, t, r = "svg") {
|
|
|
1878
1878
|
if (!a) {
|
|
1879
1879
|
var o = (
|
|
1880
1880
|
/** @type {DocumentFragment} */
|
|
1881
|
-
|
|
1881
|
+
Po(i)
|
|
1882
1882
|
), l = (
|
|
1883
1883
|
/** @type {Element} */
|
|
1884
1884
|
/* @__PURE__ */ pt(o)
|
|
@@ -1921,8 +1921,8 @@ function mr(e, t) {
|
|
|
1921
1921
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1922
1922
|
r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1925
|
-
return
|
|
1924
|
+
function Bo(e, t) {
|
|
1925
|
+
return Do(e, t);
|
|
1926
1926
|
}
|
|
1927
1927
|
function Bl(e, t) {
|
|
1928
1928
|
pn(), t.intro = t.intro ?? !1;
|
|
@@ -1932,7 +1932,7 @@ function Bl(e, t) {
|
|
|
1932
1932
|
/** @type {TemplateNode} */
|
|
1933
1933
|
/* @__PURE__ */ pt(r)
|
|
1934
1934
|
); a && (a.nodeType !== lr || /** @type {Comment} */
|
|
1935
|
-
a.data !==
|
|
1935
|
+
a.data !== Xi); )
|
|
1936
1936
|
a = /** @type {TemplateNode} */
|
|
1937
1937
|
/* @__PURE__ */ nt(a);
|
|
1938
1938
|
if (!a)
|
|
@@ -1941,20 +1941,20 @@ function Bl(e, t) {
|
|
|
1941
1941
|
/** @type {Comment} */
|
|
1942
1942
|
a
|
|
1943
1943
|
);
|
|
1944
|
-
const o =
|
|
1944
|
+
const o = Do(e, { ...t, anchor: a });
|
|
1945
1945
|
return ft(!1), /** @type {Exports} */
|
|
1946
1946
|
o;
|
|
1947
1947
|
} catch (o) {
|
|
1948
1948
|
if (o instanceof Error && o.message.split(`
|
|
1949
1949
|
`).some((l) => l.startsWith("https://svelte.dev/e/")))
|
|
1950
1950
|
throw o;
|
|
1951
|
-
return o !== rr && console.warn("Failed to hydrate: ", o), t.recover === !1 && Ia(), pn(),
|
|
1951
|
+
return o !== rr && console.warn("Failed to hydrate: ", o), t.recover === !1 && Ia(), pn(), to(r), ft(!1), Bo(e, t);
|
|
1952
1952
|
} finally {
|
|
1953
1953
|
ft(n), Ce(i);
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
1956
|
const jt = /* @__PURE__ */ new Map();
|
|
1957
|
-
function
|
|
1957
|
+
function Do(e, { target: t, anchor: r, props: n = {}, events: i, context: a, intro: o = !0 }) {
|
|
1958
1958
|
pn();
|
|
1959
1959
|
var l = /* @__PURE__ */ new Set(), s = (h) => {
|
|
1960
1960
|
for (var p = 0; p < h.length; p++) {
|
|
@@ -1968,7 +1968,7 @@ function Bo(e, { target: t, anchor: r, props: n = {}, events: i, context: a, int
|
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
};
|
|
1971
|
-
s(Sn(
|
|
1971
|
+
s(Sn(Fo)), mn.add(s);
|
|
1972
1972
|
var u = void 0, f = bl(() => {
|
|
1973
1973
|
var h = r ?? t.appendChild(et());
|
|
1974
1974
|
return sl(
|
|
@@ -2015,7 +2015,7 @@ function Dl(e, t) {
|
|
|
2015
2015
|
const r = xn.get(e);
|
|
2016
2016
|
return r ? (xn.delete(e), r(t)) : Promise.resolve();
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function Co(e) {
|
|
2019
2019
|
return new Cl(e);
|
|
2020
2020
|
}
|
|
2021
2021
|
class Cl {
|
|
@@ -2030,7 +2030,7 @@ class Cl {
|
|
|
2030
2030
|
*/
|
|
2031
2031
|
constructor(t) {
|
|
2032
2032
|
var r = /* @__PURE__ */ new Map(), n = (a, o) => {
|
|
2033
|
-
var l = /* @__PURE__ */
|
|
2033
|
+
var l = /* @__PURE__ */ fo(o, !1, !1);
|
|
2034
2034
|
return r.set(a, l), l;
|
|
2035
2035
|
};
|
|
2036
2036
|
const i = new Proxy(
|
|
@@ -2040,14 +2040,14 @@ class Cl {
|
|
|
2040
2040
|
return c(r.get(o) ?? n(o, Reflect.get(a, o)));
|
|
2041
2041
|
},
|
|
2042
2042
|
has(a, o) {
|
|
2043
|
-
return o ===
|
|
2043
|
+
return o === Gi ? !0 : (c(r.get(o) ?? n(o, Reflect.get(a, o))), Reflect.has(a, o));
|
|
2044
2044
|
},
|
|
2045
2045
|
set(a, o, l) {
|
|
2046
2046
|
return z(r.get(o) ?? n(o, l), l), Reflect.set(a, o, l);
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
);
|
|
2050
|
-
this.#e = (t.hydrate ? Bl :
|
|
2050
|
+
this.#e = (t.hydrate ? Bl : Bo)(t.component, {
|
|
2051
2051
|
target: t.target,
|
|
2052
2052
|
anchor: t.anchor,
|
|
2053
2053
|
props: i,
|
|
@@ -2056,7 +2056,7 @@ class Cl {
|
|
|
2056
2056
|
recover: t.recover
|
|
2057
2057
|
}), (!t?.props?.$$host || t.sync === !1) && il(), this.#t = i.$$events;
|
|
2058
2058
|
for (const a of Object.keys(this.#e))
|
|
2059
|
-
a === "$set" || a === "$destroy" || a === "$on" ||
|
|
2059
|
+
a === "$set" || a === "$destroy" || a === "$on" || Ii(this, a, {
|
|
2060
2060
|
get() {
|
|
2061
2061
|
return this.#e[a];
|
|
2062
2062
|
},
|
|
@@ -2098,7 +2098,7 @@ class Cl {
|
|
|
2098
2098
|
}
|
|
2099
2099
|
const Ul = "5";
|
|
2100
2100
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Ul);
|
|
2101
|
-
class
|
|
2101
|
+
class Uo {
|
|
2102
2102
|
/** @type {TemplateNode} */
|
|
2103
2103
|
anchor;
|
|
2104
2104
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2130,7 +2130,7 @@ class Co {
|
|
|
2130
2130
|
this.#t.get(t)
|
|
2131
2131
|
), n = this.#e.get(r);
|
|
2132
2132
|
if (n)
|
|
2133
|
-
|
|
2133
|
+
Gn(n);
|
|
2134
2134
|
else {
|
|
2135
2135
|
var i = this.#r.get(r);
|
|
2136
2136
|
i && (this.#e.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
@@ -2146,7 +2146,7 @@ class Co {
|
|
|
2146
2146
|
const l = () => {
|
|
2147
2147
|
if (Array.from(this.#t.values()).includes(a)) {
|
|
2148
2148
|
var s = document.createDocumentFragment();
|
|
2149
|
-
|
|
2149
|
+
So(o, s), s.append(et()), this.#r.set(a, { effect: o, fragment: s });
|
|
2150
2150
|
} else
|
|
2151
2151
|
Te(o);
|
|
2152
2152
|
this.#e.delete(a);
|
|
@@ -2180,8 +2180,8 @@ class Co {
|
|
|
2180
2180
|
), this.#t.set(n, t), i || (Q && (this.anchor = X), this.#s());
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2184
|
-
ke === null &&
|
|
2183
|
+
function Ln(e) {
|
|
2184
|
+
ke === null && Yi(), st(() => {
|
|
2185
2185
|
const t = Yt(e);
|
|
2186
2186
|
if (typeof t == "function") return (
|
|
2187
2187
|
/** @type {() => void} */
|
|
@@ -2190,14 +2190,14 @@ function Gn(e) {
|
|
|
2190
2190
|
});
|
|
2191
2191
|
}
|
|
2192
2192
|
function kl(e) {
|
|
2193
|
-
ke === null &&
|
|
2193
|
+
ke === null && Yi(), Ln(() => () => Yt(e));
|
|
2194
2194
|
}
|
|
2195
2195
|
function Pe(e, t, r = !1) {
|
|
2196
2196
|
Q && Ar();
|
|
2197
|
-
var n = new
|
|
2197
|
+
var n = new Uo(e), i = r ? tr : 0;
|
|
2198
2198
|
function a(o, l) {
|
|
2199
2199
|
if (Q) {
|
|
2200
|
-
const u =
|
|
2200
|
+
const u = Zi(e) === Vr;
|
|
2201
2201
|
if (o === u) {
|
|
2202
2202
|
var s = kr();
|
|
2203
2203
|
Ce(s), n.anchor = s, ft(!1), n.ensure(o, l), ft(!0);
|
|
@@ -2213,9 +2213,9 @@ function Pe(e, t, r = !1) {
|
|
|
2213
2213
|
}), o || a(!1, null);
|
|
2214
2214
|
}, i);
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function Nl(e, t, r) {
|
|
2217
2217
|
Q && Ar();
|
|
2218
|
-
var n = new
|
|
2218
|
+
var n = new Uo(e);
|
|
2219
2219
|
jr(() => {
|
|
2220
2220
|
var i = t();
|
|
2221
2221
|
n.ensure(i, r);
|
|
@@ -2224,9 +2224,9 @@ function Ll(e, t, r) {
|
|
|
2224
2224
|
function nn(e, t) {
|
|
2225
2225
|
return t;
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function Gl(e, t, r) {
|
|
2228
2228
|
for (var n = e.items, i = [], a = t.length, o = 0; o < a; o++)
|
|
2229
|
-
|
|
2229
|
+
Nn(t[o].e, i, !0);
|
|
2230
2230
|
var l = a > 0 && i.length === 0 && r !== null;
|
|
2231
2231
|
if (l) {
|
|
2232
2232
|
var s = (
|
|
@@ -2234,12 +2234,12 @@ function Nl(e, t, r) {
|
|
|
2234
2234
|
/** @type {Element} */
|
|
2235
2235
|
r.parentNode
|
|
2236
2236
|
);
|
|
2237
|
-
|
|
2237
|
+
to(s), s.append(
|
|
2238
2238
|
/** @type {Element} */
|
|
2239
2239
|
r
|
|
2240
2240
|
), n.clear(), He(e, t[0].prev, t[a - 1].next);
|
|
2241
2241
|
}
|
|
2242
|
-
|
|
2242
|
+
To(i, () => {
|
|
2243
2243
|
for (var u = 0; u < a; u++) {
|
|
2244
2244
|
var f = t[u];
|
|
2245
2245
|
l || (n.delete(f.k), He(e, f.prev, f.next)), Te(f.e, !l);
|
|
@@ -2247,7 +2247,7 @@ function Nl(e, t, r) {
|
|
|
2247
2247
|
});
|
|
2248
2248
|
}
|
|
2249
2249
|
function on(e, t, r, n, i, a = null) {
|
|
2250
|
-
var o = e, l = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, s = (t &
|
|
2250
|
+
var o = e, l = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, s = (t & Wi) !== 0;
|
|
2251
2251
|
if (s) {
|
|
2252
2252
|
var u = (
|
|
2253
2253
|
/** @type {Element} */
|
|
@@ -2259,12 +2259,12 @@ function on(e, t, r, n, i, a = null) {
|
|
|
2259
2259
|
) : u.appendChild(et());
|
|
2260
2260
|
}
|
|
2261
2261
|
Q && Ar();
|
|
2262
|
-
var f = null, h = !1, p = /* @__PURE__ */ new Map(), d = /* @__PURE__ */
|
|
2262
|
+
var f = null, h = !1, p = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ ao(() => {
|
|
2263
2263
|
var _ = r();
|
|
2264
|
-
return
|
|
2264
|
+
return Li(_) ? _ : _ == null ? [] : Sn(_);
|
|
2265
2265
|
}), v, g;
|
|
2266
2266
|
function y() {
|
|
2267
|
-
|
|
2267
|
+
Ll(
|
|
2268
2268
|
g,
|
|
2269
2269
|
v,
|
|
2270
2270
|
l,
|
|
@@ -2274,7 +2274,7 @@ function on(e, t, r, n, i, a = null) {
|
|
|
2274
2274
|
t,
|
|
2275
2275
|
n,
|
|
2276
2276
|
r
|
|
2277
|
-
), a !== null && (v.length === 0 ? f ?
|
|
2277
|
+
), a !== null && (v.length === 0 ? f ? Gn(f) : f = Ve(() => a(o)) : f !== null && Kt(f, () => {
|
|
2278
2278
|
f = null;
|
|
2279
2279
|
}));
|
|
2280
2280
|
}
|
|
@@ -2288,7 +2288,7 @@ function on(e, t, r, n, i, a = null) {
|
|
|
2288
2288
|
h = _ === 0;
|
|
2289
2289
|
let w = !1;
|
|
2290
2290
|
if (Q) {
|
|
2291
|
-
var x =
|
|
2291
|
+
var x = Zi(o) === Vr;
|
|
2292
2292
|
x !== (_ === 0) && (o = kr(), Ce(o), ft(!1), w = !0);
|
|
2293
2293
|
}
|
|
2294
2294
|
if (Q) {
|
|
@@ -2299,43 +2299,43 @@ function on(e, t, r, n, i, a = null) {
|
|
|
2299
2299
|
X, w = !0, ft(!1);
|
|
2300
2300
|
break;
|
|
2301
2301
|
}
|
|
2302
|
-
var B = v[T],
|
|
2303
|
-
E =
|
|
2302
|
+
var B = v[T], G = n(B, T);
|
|
2303
|
+
E = ko(
|
|
2304
2304
|
X,
|
|
2305
2305
|
l,
|
|
2306
2306
|
R,
|
|
2307
2307
|
null,
|
|
2308
2308
|
B,
|
|
2309
|
-
|
|
2309
|
+
G,
|
|
2310
2310
|
T,
|
|
2311
2311
|
i,
|
|
2312
2312
|
t,
|
|
2313
2313
|
r
|
|
2314
|
-
), l.items.set(
|
|
2314
|
+
), l.items.set(G, E), R = E;
|
|
2315
2315
|
}
|
|
2316
2316
|
_ > 0 && Ce(kr());
|
|
2317
2317
|
}
|
|
2318
2318
|
Q ? _ === 0 && a && (f = Ve(() => a(o))) : y(), w && ft(!0), c(d);
|
|
2319
2319
|
}), Q && (o = X);
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2321
|
+
function Ll(e, t, r, n, i, a, o, l, s) {
|
|
2322
2322
|
var u = (o & Wa) !== 0, f = (o & (Pn | Bn)) !== 0, h = t.length, p = r.items, d = r.first, v = d, g, y = null, _, w = [], x = [], R, E, T, B;
|
|
2323
2323
|
if (u)
|
|
2324
2324
|
for (B = 0; B < h; B += 1)
|
|
2325
2325
|
R = t[B], E = l(R, B), T = p.get(E), T !== void 0 && (T.a?.measure(), (_ ??= /* @__PURE__ */ new Set()).add(T));
|
|
2326
2326
|
for (B = 0; B < h; B += 1) {
|
|
2327
2327
|
if (R = t[B], E = l(R, B), T = p.get(E), T === void 0) {
|
|
2328
|
-
var
|
|
2329
|
-
if (
|
|
2330
|
-
n.delete(E), p.set(E,
|
|
2331
|
-
var
|
|
2332
|
-
He(r, y,
|
|
2328
|
+
var G = n.get(E);
|
|
2329
|
+
if (G !== void 0) {
|
|
2330
|
+
n.delete(E), p.set(E, G);
|
|
2331
|
+
var N = y ? y.next : v;
|
|
2332
|
+
He(r, y, G), He(r, G, N), an(G, N, i), y = G;
|
|
2333
2333
|
} else {
|
|
2334
2334
|
var V = v ? (
|
|
2335
2335
|
/** @type {TemplateNode} */
|
|
2336
2336
|
v.e.nodes_start
|
|
2337
2337
|
) : i;
|
|
2338
|
-
y =
|
|
2338
|
+
y = ko(
|
|
2339
2339
|
V,
|
|
2340
2340
|
r,
|
|
2341
2341
|
y,
|
|
@@ -2351,7 +2351,7 @@ function Gl(e, t, r, n, i, a, o, l, s) {
|
|
|
2351
2351
|
p.set(E, y), w = [], x = [], v = y.next;
|
|
2352
2352
|
continue;
|
|
2353
2353
|
}
|
|
2354
|
-
if (f && Il(T, R, B, o), (T.e.f & Ie) !== 0 && (
|
|
2354
|
+
if (f && Il(T, R, B, o), (T.e.f & Ie) !== 0 && (Gn(T.e), u && (T.a?.unfix(), (_ ??= /* @__PURE__ */ new Set()).delete(T))), T !== v) {
|
|
2355
2355
|
if (g !== void 0 && g.has(T)) {
|
|
2356
2356
|
if (w.length < x.length) {
|
|
2357
2357
|
var $ = x[0], j;
|
|
@@ -2379,14 +2379,14 @@ function Gl(e, t, r, n, i, a, o, l, s) {
|
|
|
2379
2379
|
(v.e.f & Ie) === 0 && ae.push(v), v = v.next;
|
|
2380
2380
|
var re = ae.length;
|
|
2381
2381
|
if (re > 0) {
|
|
2382
|
-
var P = (o &
|
|
2382
|
+
var P = (o & Wi) !== 0 && h === 0 ? i : null;
|
|
2383
2383
|
if (u) {
|
|
2384
2384
|
for (B = 0; B < re; B += 1)
|
|
2385
2385
|
ae[B].a?.measure();
|
|
2386
2386
|
for (B = 0; B < re; B += 1)
|
|
2387
2387
|
ae[B].a?.fix();
|
|
2388
2388
|
}
|
|
2389
|
-
|
|
2389
|
+
Gl(r, ae, P);
|
|
2390
2390
|
}
|
|
2391
2391
|
}
|
|
2392
2392
|
u && sr(() => {
|
|
@@ -2405,8 +2405,8 @@ function Il(e, t, r, n) {
|
|
|
2405
2405
|
r
|
|
2406
2406
|
) : e.i = r;
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2409
|
-
var h = (s & Pn) !== 0, p = (s & Xa) === 0, d = h ? p ? /* @__PURE__ */
|
|
2408
|
+
function ko(e, t, r, n, i, a, o, l, s, u, f) {
|
|
2409
|
+
var h = (s & Pn) !== 0, p = (s & Xa) === 0, d = h ? p ? /* @__PURE__ */ fo(i, !1, !1) : $t(i) : i, v = (s & Bn) === 0 ? o : $t(o), g = {
|
|
2410
2410
|
i: v,
|
|
2411
2411
|
v: d,
|
|
2412
2412
|
k: a,
|
|
@@ -2453,7 +2453,7 @@ function He(e, t, r) {
|
|
|
2453
2453
|
t === null ? e.first = r : (t.next = r, t.e.next = r && r.e), r !== null && (r.prev = t, r.e.prev = t && t.e);
|
|
2454
2454
|
}
|
|
2455
2455
|
function qe(e, t, r) {
|
|
2456
|
-
|
|
2456
|
+
wo(() => {
|
|
2457
2457
|
var n = Yt(() => t(e, r?.()) || {});
|
|
2458
2458
|
if (r && n?.update) {
|
|
2459
2459
|
var i = !1, a = (
|
|
@@ -2462,7 +2462,7 @@ function qe(e, t, r) {
|
|
|
2462
2462
|
);
|
|
2463
2463
|
kn(() => {
|
|
2464
2464
|
var o = r();
|
|
2465
|
-
ml(o), i &&
|
|
2465
|
+
ml(o), i && qi(a, o) && (a = o, n.update(o));
|
|
2466
2466
|
}), i = !0;
|
|
2467
2467
|
}
|
|
2468
2468
|
if (n?.destroy)
|
|
@@ -2472,7 +2472,7 @@ function qe(e, t, r) {
|
|
|
2472
2472
|
);
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function ui(e, t = !1) {
|
|
2476
2476
|
var r = t ? " !important;" : ";", n = "";
|
|
2477
2477
|
for (var i in e) {
|
|
2478
2478
|
var a = e[i];
|
|
@@ -2483,7 +2483,7 @@ function si(e, t = !1) {
|
|
|
2483
2483
|
function zl(e, t) {
|
|
2484
2484
|
if (t) {
|
|
2485
2485
|
var r = "", n, i;
|
|
2486
|
-
return Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, n && (r +=
|
|
2486
|
+
return Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, n && (r += ui(n)), i && (r += ui(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
2487
2487
|
}
|
|
2488
2488
|
return String(e);
|
|
2489
2489
|
}
|
|
@@ -2516,32 +2516,32 @@ function ql(e) {
|
|
|
2516
2516
|
}
|
|
2517
2517
|
);
|
|
2518
2518
|
}
|
|
2519
|
-
var
|
|
2519
|
+
var fi = /* @__PURE__ */ new Map();
|
|
2520
2520
|
function Vl(e) {
|
|
2521
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2521
|
+
var t = e.getAttribute("is") || e.nodeName, r = fi.get(t);
|
|
2522
2522
|
if (r) return r;
|
|
2523
|
-
|
|
2523
|
+
fi.set(t, r = []);
|
|
2524
2524
|
for (var n, i = e, a = Element.prototype; a !== i; ) {
|
|
2525
|
-
n =
|
|
2525
|
+
n = zi(i);
|
|
2526
2526
|
for (var o in n)
|
|
2527
2527
|
n[o].set && r.push(o);
|
|
2528
2528
|
i = Fn(i);
|
|
2529
2529
|
}
|
|
2530
2530
|
return r;
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2533
|
-
return e === t || e?.[
|
|
2532
|
+
function ci(e, t) {
|
|
2533
|
+
return e === t || e?.[Lt] === t;
|
|
2534
2534
|
}
|
|
2535
2535
|
function _n(e = {}, t, r, n) {
|
|
2536
|
-
return
|
|
2536
|
+
return wo(() => {
|
|
2537
2537
|
var i, a;
|
|
2538
2538
|
return kn(() => {
|
|
2539
2539
|
i = a, a = [], Yt(() => {
|
|
2540
|
-
e !== r(...a) && (t(e, ...a), i &&
|
|
2540
|
+
e !== r(...a) && (t(e, ...a), i && ci(r(...i), e) && t(null, ...i));
|
|
2541
2541
|
});
|
|
2542
2542
|
}), () => {
|
|
2543
2543
|
sr(() => {
|
|
2544
|
-
a &&
|
|
2544
|
+
a && ci(r(...a), e) && t(null, ...a);
|
|
2545
2545
|
});
|
|
2546
2546
|
};
|
|
2547
2547
|
}), e;
|
|
@@ -2567,7 +2567,7 @@ function M(e, t, r, n) {
|
|
|
2567
2567
|
n
|
|
2568
2568
|
)), o), u;
|
|
2569
2569
|
if (i) {
|
|
2570
|
-
var f =
|
|
2570
|
+
var f = Lt in e || Gi in e;
|
|
2571
2571
|
u = Zt(e, t)?.set ?? (f && t in e ? (w) => e[t] = w : void 0);
|
|
2572
2572
|
}
|
|
2573
2573
|
var h, p = !1;
|
|
@@ -2594,7 +2594,7 @@ function M(e, t, r, n) {
|
|
|
2594
2594
|
})
|
|
2595
2595
|
);
|
|
2596
2596
|
}
|
|
2597
|
-
var g = !1, y = ((r & ja) !== 0 ? Xr :
|
|
2597
|
+
var g = !1, y = ((r & ja) !== 0 ? Xr : ao)(() => (g = !1, d()));
|
|
2598
2598
|
i && c(y);
|
|
2599
2599
|
var _ = (
|
|
2600
2600
|
/** @type {Effect} */
|
|
@@ -2604,7 +2604,7 @@ function M(e, t, r, n) {
|
|
|
2604
2604
|
/** @type {() => V} */
|
|
2605
2605
|
(function(w, x) {
|
|
2606
2606
|
if (arguments.length > 0) {
|
|
2607
|
-
const R = x ? c(y) : i ?
|
|
2607
|
+
const R = x ? c(y) : i ? Nt(w) : w;
|
|
2608
2608
|
return z(y, R), g = !0, o !== void 0 && (o = R), w;
|
|
2609
2609
|
}
|
|
2610
2610
|
return Vt && g || (_.f & dt) !== 0 ? y.v : c(y);
|
|
@@ -2614,7 +2614,7 @@ function M(e, t, r, n) {
|
|
|
2614
2614
|
var Wl = /* @__PURE__ */ mt('<g><rect role="none"></rect><rect role="none"></rect><rect role="none"></rect><rect role="none"></rect><rect role="none"></rect><rect role="none"></rect><rect role="none"></rect><rect role="none"></rect><rect role="none"></rect></g>');
|
|
2615
2615
|
function Xl(e, t) {
|
|
2616
2616
|
Ft(t, !0);
|
|
2617
|
-
let r = /* @__PURE__ */
|
|
2617
|
+
let r = /* @__PURE__ */ k(() => t.pointLocation(t.value.xMin, t.value.yMin)), n = /* @__PURE__ */ k(() => t.pointLocation(t.value.xMax, t.value.yMax));
|
|
2618
2618
|
const i = 8;
|
|
2619
2619
|
function a(y) {
|
|
2620
2620
|
return (_) => {
|
|
@@ -2622,12 +2622,12 @@ function Xl(e, t) {
|
|
|
2622
2622
|
let w = [c(r).x, c(r).y, c(n).x, c(n).y];
|
|
2623
2623
|
return {
|
|
2624
2624
|
move: (x) => {
|
|
2625
|
-
let R = x.pageX - _.pageX, E = x.pageY - _.pageY, T = [R, E, R, E].map((
|
|
2625
|
+
let R = x.pageX - _.pageX, E = x.pageY - _.pageY, T = [R, E, R, E].map((N, V) => w[V] + N * y[V]), B = t.coordinateAtPoint(T[0], T[1]), G = t.coordinateAtPoint(T[2], T[3]);
|
|
2626
2626
|
t.onChange({
|
|
2627
|
-
xMin: Math.min(B.x,
|
|
2628
|
-
xMax: Math.max(B.x,
|
|
2629
|
-
yMin: Math.min(B.y,
|
|
2630
|
-
yMax: Math.max(B.y,
|
|
2627
|
+
xMin: Math.min(B.x, G.x),
|
|
2628
|
+
xMax: Math.max(B.x, G.x),
|
|
2629
|
+
yMin: Math.min(B.y, G.y),
|
|
2630
|
+
yMax: Math.max(B.y, G.y)
|
|
2631
2631
|
});
|
|
2632
2632
|
},
|
|
2633
2633
|
up: () => {
|
|
@@ -2700,9 +2700,9 @@ function Xl(e, t) {
|
|
|
2700
2700
|
stroke: "none",
|
|
2701
2701
|
fill: "none",
|
|
2702
2702
|
"pointer-events": "all"
|
|
2703
|
-
}), qe(g, (y, _) => je?.(y, _), () => ({ drag: a([0, 0, 1, 1]) })), ce(o),
|
|
2704
|
-
(y, _, w, x, R, E, T, B,
|
|
2705
|
-
F(l, "x", y), F(l, "width", _), F(l, "y", w), F(l, "height", x), F(s, "x", c(r).x - i / 2), F(s, "y", R), F(s, "height", E), F(u, "x", c(n).x - i / 2), F(u, "y", T), F(u, "height", B), F(f, "x",
|
|
2703
|
+
}), qe(g, (y, _) => je?.(y, _), () => ({ drag: a([0, 0, 1, 1]) })), ce(o), Le(
|
|
2704
|
+
(y, _, w, x, R, E, T, B, G, N, V, $) => {
|
|
2705
|
+
F(l, "x", y), F(l, "width", _), F(l, "y", w), F(l, "height", x), F(s, "x", c(r).x - i / 2), F(s, "y", R), F(s, "height", E), F(u, "x", c(n).x - i / 2), F(u, "y", T), F(u, "height", B), F(f, "x", G), F(f, "width", N), F(f, "y", c(r).y - i / 2), F(h, "x", V), F(h, "width", $), F(h, "y", c(n).y - i / 2), F(p, "x", c(r).x - i / 2), F(p, "y", c(r).y - i / 2), F(d, "x", c(r).x - i / 2), F(d, "y", c(n).y - i / 2), F(v, "x", c(n).x - i / 2), F(v, "y", c(r).y - i / 2), F(g, "x", c(n).x - i / 2), F(g, "y", c(n).y - i / 2);
|
|
2706
2706
|
},
|
|
2707
2707
|
[
|
|
2708
2708
|
() => Math.min(c(r).x, c(n).x),
|
|
@@ -2751,7 +2751,7 @@ function Hl(e, t) {
|
|
|
2751
2751
|
function Ql(e) {
|
|
2752
2752
|
return "M " + e.map(({ x: t, y: r }) => `${t},${r}`).join(" L ") + " Z";
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2754
|
+
function No(e) {
|
|
2755
2755
|
let t = 1 / 0, r = -1 / 0, n = 1 / 0, i = -1 / 0;
|
|
2756
2756
|
for (let { x: a, y: o } of e)
|
|
2757
2757
|
t = Math.min(t, a), n = Math.min(n, o), r = Math.max(r, a), i = Math.max(i, o);
|
|
@@ -2789,16 +2789,16 @@ function Kl(e) {
|
|
|
2789
2789
|
var es = /* @__PURE__ */ mt("<path></path>");
|
|
2790
2790
|
function ts(e, t) {
|
|
2791
2791
|
Ft(t, !0);
|
|
2792
|
-
let r = /* @__PURE__ */
|
|
2792
|
+
let r = /* @__PURE__ */ k(() => t.value.map(({ x: i, y: a }) => t.pointLocation(i, a)));
|
|
2793
2793
|
var n = es();
|
|
2794
|
-
W(n, "", {}, { stroke: "#fff", fill: "rgba(128,128,128,0.25)" }),
|
|
2794
|
+
W(n, "", {}, { stroke: "#fff", fill: "rgba(128,128,128,0.25)" }), Le((i) => F(n, "d", i), [() => Ql(c(r))]), ue(e, n), Pt();
|
|
2795
2795
|
}
|
|
2796
2796
|
const rs = {
|
|
2797
2797
|
marquee: "M7 5a2 2 0 1 1-4 0a2 2 0 0 1 4 0m1-.25c0 .414.336.75.75.75h6.5a.75.75 0 0 0 0-1.5h-6.5a.75.75 0 0 0-.75.75M4.75 8a.75.75 0 0 0-.75.75v6.5a.75.75 0 0 0 1.5 0v-6.5A.75.75 0 0 0 4.75 8m14.5 0a.75.75 0 0 0-.75.75v6.5a.75.75 0 0 0 1.5 0v-6.5a.75.75 0 0 0-.75-.75M8.75 20a.75.75 0 0 1 0-1.5h6.5a.75.75 0 0 1 0 1.5zM5 21a2 2 0 1 0 0-4a2 2 0 0 0 0 4M21 5a2 2 0 1 1-4 0a2 2 0 0 1 4 0m-2 16a2 2 0 1 0 0-4a2 2 0 0 0 0 4",
|
|
2798
2798
|
lasso: "M9.703 2.265A10 10 0 0 1 12 2c.79 0 1.559.092 2.297.265a.75.75 0 1 1-.343 1.46A8.5 8.5 0 0 0 12 3.5a8.6 8.6 0 0 0-1.954.225a.75.75 0 1 1-.343-1.46m-1.93 1.47a.75.75 0 0 1-.242 1.033a8.55 8.55 0 0 0-2.763 2.763a.75.75 0 1 1-1.275-.79a10.05 10.05 0 0 1 3.248-3.248a.75.75 0 0 1 1.032.243m8.454 0a.75.75 0 0 1 1.032-.242a10.05 10.05 0 0 1 3.248 3.248a.75.75 0 1 1-1.275.79a8.55 8.55 0 0 0-2.763-2.763a.75.75 0 0 1-.242-1.032m-13.06 5.41a.75.75 0 0 1 .558.901A8.5 8.5 0 0 0 3.5 12c0 .673.078 1.327.225 1.954a.75.75 0 1 1-1.46.343A10 10 0 0 1 2 12c0-.79.092-1.559.265-2.297a.75.75 0 0 1 .902-.559m17.666 0a.75.75 0 0 1 .902.558a10.1 10.1 0 0 1 0 4.595a.75.75 0 1 1-1.46-.343a8.54 8.54 0 0 0-.001-3.908a.75.75 0 0 1 .559-.902M3.736 16.226a.75.75 0 0 1 1.032.242a8.55 8.55 0 0 0 2.763 2.763a.75.75 0 0 1-.79 1.275a10.05 10.05 0 0 1-3.248-3.248a.75.75 0 0 1 .243-1.032m16.685.858a.75.75 0 1 0-1.342-.67l-.002.004l-.015.029l-.069.123a8 8 0 0 1-.289.466a9.6 9.6 0 0 1-.965 1.219c-1.17-1.073-2.756-2.006-4.74-2.006c-2.347 0-3.99 1.203-3.99 2.875S10.653 22 13 22c1.942 0 3.495-.75 4.658-1.645a11.7 11.7 0 0 1 1.315 2.01q.05.099.073.149l.017.035l.004.009a.75.75 0 0 0 1.368-.615c-.087-.183 0-.001 0-.001v-.002l-.003-.004l-.007-.015l-.024-.052l-.091-.184a13.2 13.2 0 0 0-1.538-2.337a11 11 0 0 0 1.525-2.032l.09-.162l.024-.047l.007-.014l.002-.005zM13 17.75c1.433 0 2.644.652 3.616 1.512c-.95.7-2.155 1.238-3.616 1.238c-1.973 0-2.49-.922-2.49-1.375s.517-1.375 2.49-1.375"
|
|
2799
2799
|
};
|
|
2800
2800
|
var ns = /* @__PURE__ */ mt('<svg width="24" height="24" viewBox="0 0 24 24"><path></path></svg>'), is = /* @__PURE__ */ Bt("<button><!></button>");
|
|
2801
|
-
function
|
|
2801
|
+
function di(e, t) {
|
|
2802
2802
|
let r = M(t, "active", 3, !1);
|
|
2803
2803
|
var n = is();
|
|
2804
2804
|
n.__click = function(...l) {
|
|
@@ -2811,13 +2811,13 @@ function ci(e, t) {
|
|
|
2811
2811
|
var s = ns();
|
|
2812
2812
|
W(s, "", {}, { width: "14px", height: "14px" });
|
|
2813
2813
|
var u = ge(s);
|
|
2814
|
-
W(u, "", {}, { fill: "currentColor" }), ce(s),
|
|
2814
|
+
W(u, "", {}, { fill: "currentColor" }), ce(s), Le(() => F(u, "d", rs[t.icon])), ue(l, s);
|
|
2815
2815
|
};
|
|
2816
2816
|
Pe(a, (l) => {
|
|
2817
2817
|
t.icon != null && l(o);
|
|
2818
2818
|
});
|
|
2819
2819
|
}
|
|
2820
|
-
ce(n),
|
|
2820
|
+
ce(n), Le(() => {
|
|
2821
2821
|
F(n, "title", t.title), i = W(n, "", i, {
|
|
2822
2822
|
border: "none",
|
|
2823
2823
|
appearance: "none",
|
|
@@ -2848,7 +2848,7 @@ function as(e, t) {
|
|
|
2848
2848
|
}
|
|
2849
2849
|
return _ * Math.pow(10, g);
|
|
2850
2850
|
}
|
|
2851
|
-
let n = /* @__PURE__ */
|
|
2851
|
+
let n = /* @__PURE__ */ k(() => r(t.distancePerPoint, 30)), i = /* @__PURE__ */ k(() => c(n) / t.distancePerPoint);
|
|
2852
2852
|
var a = os();
|
|
2853
2853
|
W(a, "", {}, { display: "flex", "align-items": "center" });
|
|
2854
2854
|
var o = ge(a);
|
|
@@ -2864,7 +2864,7 @@ function as(e, t) {
|
|
|
2864
2864
|
var f = oe(u);
|
|
2865
2865
|
F(f, "x1", 1), F(f, "x2", 1), F(f, "y1", 0), F(f, "y2", 6), W(f, "", {}, { stroke: "currentColor" });
|
|
2866
2866
|
var h = oe(f);
|
|
2867
|
-
F(h, "y1", 0), F(h, "y2", 6), W(h, "", {}, { stroke: "currentColor" }), ce(s), ce(a),
|
|
2867
|
+
F(h, "y1", 0), F(h, "y2", 6), W(h, "", {}, { stroke: "currentColor" }), ce(s), ce(a), Le(
|
|
2868
2868
|
(p) => {
|
|
2869
2869
|
mr(l, p), F(s, "width", `${c(i) + 2}px`), F(u, "x2", c(i) + 1), F(h, "x1", c(i) + 1), F(h, "x2", c(i) + 1);
|
|
2870
2870
|
},
|
|
@@ -2885,7 +2885,7 @@ function fs(e, t) {
|
|
|
2885
2885
|
var R = ls();
|
|
2886
2886
|
W(R, "", {}, { display: "inline-block" });
|
|
2887
2887
|
var E = ge(R, !0);
|
|
2888
|
-
ce(R),
|
|
2888
|
+
ce(R), Le(() => mr(E, r())), ue(x, R);
|
|
2889
2889
|
};
|
|
2890
2890
|
Pe(l, (x) => {
|
|
2891
2891
|
r() != null && x(s);
|
|
@@ -2902,7 +2902,7 @@ function fs(e, t) {
|
|
|
2902
2902
|
var R = ss(), E = Ht(R);
|
|
2903
2903
|
W(E, "", {}, { color: "currentColor", "text-decoration": "underline" });
|
|
2904
2904
|
var T = ge(E, !0);
|
|
2905
|
-
ce(E),
|
|
2905
|
+
ce(E), Qi(2), Le(() => {
|
|
2906
2906
|
F(E, "href", t.resolvedTheme.brandingLink.href), mr(T, t.resolvedTheme.brandingLink.text);
|
|
2907
2907
|
}), ue(x, R);
|
|
2908
2908
|
};
|
|
@@ -2912,8 +2912,8 @@ function fs(e, t) {
|
|
|
2912
2912
|
}
|
|
2913
2913
|
var v = oe(p, 2);
|
|
2914
2914
|
{
|
|
2915
|
-
let x = /* @__PURE__ */
|
|
2916
|
-
|
|
2915
|
+
let x = /* @__PURE__ */ k(() => t.selectionMode == "marquee");
|
|
2916
|
+
di(v, {
|
|
2917
2917
|
icon: "marquee",
|
|
2918
2918
|
get active() {
|
|
2919
2919
|
return c(x);
|
|
@@ -2924,8 +2924,8 @@ function fs(e, t) {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
var g = oe(v, 2);
|
|
2926
2926
|
{
|
|
2927
|
-
let x = /* @__PURE__ */
|
|
2928
|
-
|
|
2927
|
+
let x = /* @__PURE__ */ k(() => t.selectionMode == "lasso");
|
|
2928
|
+
di(g, {
|
|
2929
2929
|
icon: "lasso",
|
|
2930
2930
|
get active() {
|
|
2931
2931
|
return c(x);
|
|
@@ -2941,7 +2941,7 @@ function fs(e, t) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
});
|
|
2943
2943
|
var _ = oe(y, 4), w = ge(_);
|
|
2944
|
-
ce(_), ce(f), ce(n),
|
|
2944
|
+
ce(_), ce(f), ce(n), Le(
|
|
2945
2945
|
(x) => {
|
|
2946
2946
|
i = W(n, "", i, {
|
|
2947
2947
|
"font-size": "12px",
|
|
@@ -2988,7 +2988,7 @@ function cs(e) {
|
|
|
2988
2988
|
};
|
|
2989
2989
|
}
|
|
2990
2990
|
let sn = /* @__PURE__ */ new WeakMap();
|
|
2991
|
-
function
|
|
2991
|
+
function Go(e) {
|
|
2992
2992
|
let t = typeof e == "function" ? e : e.class;
|
|
2993
2993
|
if (sn.has(t))
|
|
2994
2994
|
return sn.get(t);
|
|
@@ -2997,21 +2997,21 @@ function Lo(e) {
|
|
|
2997
2997
|
return sn.set(t, r), r;
|
|
2998
2998
|
}
|
|
2999
2999
|
}
|
|
3000
|
-
function
|
|
3000
|
+
function Lo(e, t) {
|
|
3001
3001
|
return typeof e == "function" ? t : { ...e.props ?? {}, ...t };
|
|
3002
3002
|
}
|
|
3003
3003
|
var ds = /* @__PURE__ */ Bt("<div><div></div></div>");
|
|
3004
3004
|
function hs(e, t) {
|
|
3005
3005
|
Ft(t, !0);
|
|
3006
|
-
let r = M(t, "margin", 3, 4), n, i, a = /* @__PURE__ */
|
|
3007
|
-
|
|
3006
|
+
let r = M(t, "margin", 3, 4), n, i, a = /* @__PURE__ */ k(() => Go(t.customTooltip)), o = /* @__PURE__ */ k(() => Lo(t.customTooltip, { tooltip: t.tooltip }));
|
|
3007
|
+
Ln(() => {
|
|
3008
3008
|
yr(() => {
|
|
3009
3009
|
let u = c(a), f = null;
|
|
3010
3010
|
return yr(() => {
|
|
3011
3011
|
i.style.left = "0px", i.style.top = "0px", i.style.pointerEvents = t.allowInteraction ? "all" : "none", f == null ? f = u(i, c(o)) : f.update?.(c(o));
|
|
3012
3012
|
function h(y, _, w, x) {
|
|
3013
|
-
let R = t.location.x, E = t.location.y, T = 2, B = y / 2,
|
|
3014
|
-
R - B < w && (B = R - w), R - B > x - y && (B = R - x + y), E -
|
|
3013
|
+
let R = t.location.x, E = t.location.y, T = 2, B = y / 2, G = _ + (t.targetHeight + r());
|
|
3014
|
+
R - B < w && (B = R - w), R - B > x - y && (B = R - x + y), E - G < T && (G = -(t.targetHeight + r())), i.style.left = R - B + "px", i.style.top = E - G + "px";
|
|
3015
3015
|
}
|
|
3016
3016
|
let p = n.getBoundingClientRect(), { width: d, height: v } = i.getBoundingClientRect();
|
|
3017
3017
|
h(d, v, 2, p.width - 2);
|
|
@@ -3042,14 +3042,14 @@ function hs(e, t) {
|
|
|
3042
3042
|
function In(e, t, r) {
|
|
3043
3043
|
e.prototype = t.prototype = r, r.constructor = e;
|
|
3044
3044
|
}
|
|
3045
|
-
function
|
|
3045
|
+
function Io(e, t) {
|
|
3046
3046
|
var r = Object.create(e.prototype);
|
|
3047
3047
|
for (var n in t) r[n] = t[n];
|
|
3048
3048
|
return r;
|
|
3049
3049
|
}
|
|
3050
3050
|
function Rr() {
|
|
3051
3051
|
}
|
|
3052
|
-
var br = 0.7,
|
|
3052
|
+
var br = 0.7, Lr = 1 / br, er = "\\s*([+-]?\\d+)\\s*", wr = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Je = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ps = /^#([0-9a-f]{3,8})$/, vs = new RegExp(`^rgb\\(${er},${er},${er}\\)$`), gs = new RegExp(`^rgb\\(${Je},${Je},${Je}\\)$`), ys = new RegExp(`^rgba\\(${er},${er},${er},${wr}\\)$`), ms = new RegExp(`^rgba\\(${Je},${Je},${Je},${wr}\\)$`), xs = new RegExp(`^hsl\\(${wr},${Je},${Je}\\)$`), _s = new RegExp(`^hsla\\(${wr},${Je},${Je},${wr}\\)$`), hi = {
|
|
3053
3053
|
aliceblue: 15792383,
|
|
3054
3054
|
antiquewhite: 16444375,
|
|
3055
3055
|
aqua: 65535,
|
|
@@ -3206,31 +3206,31 @@ In(Rr, zn, {
|
|
|
3206
3206
|
displayable() {
|
|
3207
3207
|
return this.rgb().displayable();
|
|
3208
3208
|
},
|
|
3209
|
-
hex:
|
|
3209
|
+
hex: pi,
|
|
3210
3210
|
// Deprecated! Use color.formatHex.
|
|
3211
|
-
formatHex:
|
|
3211
|
+
formatHex: pi,
|
|
3212
3212
|
formatHex8: bs,
|
|
3213
3213
|
formatHsl: ws,
|
|
3214
|
-
formatRgb:
|
|
3215
|
-
toString:
|
|
3214
|
+
formatRgb: vi,
|
|
3215
|
+
toString: vi
|
|
3216
3216
|
});
|
|
3217
|
-
function
|
|
3217
|
+
function pi() {
|
|
3218
3218
|
return this.rgb().formatHex();
|
|
3219
3219
|
}
|
|
3220
3220
|
function bs() {
|
|
3221
3221
|
return this.rgb().formatHex8();
|
|
3222
3222
|
}
|
|
3223
3223
|
function ws() {
|
|
3224
|
-
return
|
|
3224
|
+
return Oo(this).formatHsl();
|
|
3225
3225
|
}
|
|
3226
|
-
function
|
|
3226
|
+
function vi() {
|
|
3227
3227
|
return this.rgb().formatRgb();
|
|
3228
3228
|
}
|
|
3229
3229
|
function zn(e) {
|
|
3230
3230
|
var t, r;
|
|
3231
|
-
return e = (e + "").trim().toLowerCase(), (t = ps.exec(e)) ? (r = t[1].length, t = parseInt(t[1], 16), r === 6 ?
|
|
3231
|
+
return e = (e + "").trim().toLowerCase(), (t = ps.exec(e)) ? (r = t[1].length, t = parseInt(t[1], 16), r === 6 ? gi(t) : r === 3 ? new De(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : r === 8 ? Pr(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : r === 4 ? Pr(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = vs.exec(e)) ? new De(t[1], t[2], t[3], 1) : (t = gs.exec(e)) ? new De(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = ys.exec(e)) ? Pr(t[1], t[2], t[3], t[4]) : (t = ms.exec(e)) ? Pr(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = xs.exec(e)) ? xi(t[1], t[2] / 100, t[3] / 100, 1) : (t = _s.exec(e)) ? xi(t[1], t[2] / 100, t[3] / 100, t[4]) : hi.hasOwnProperty(e) ? gi(hi[e]) : e === "transparent" ? new De(NaN, NaN, NaN, 0) : null;
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3233
|
+
function gi(e) {
|
|
3234
3234
|
return new De(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
3235
3235
|
}
|
|
3236
3236
|
function Pr(e, t, r, n) {
|
|
@@ -3239,15 +3239,15 @@ function Pr(e, t, r, n) {
|
|
|
3239
3239
|
function As(e) {
|
|
3240
3240
|
return e instanceof Rr || (e = zn(e)), e ? (e = e.rgb(), new De(e.r, e.g, e.b, e.opacity)) : new De();
|
|
3241
3241
|
}
|
|
3242
|
-
function
|
|
3242
|
+
function zo(e, t, r, n) {
|
|
3243
3243
|
return arguments.length === 1 ? As(e) : new De(e, t, r, n ?? 1);
|
|
3244
3244
|
}
|
|
3245
3245
|
function De(e, t, r, n) {
|
|
3246
3246
|
this.r = +e, this.g = +t, this.b = +r, this.opacity = +n;
|
|
3247
3247
|
}
|
|
3248
|
-
In(De,
|
|
3248
|
+
In(De, zo, Io(Rr, {
|
|
3249
3249
|
brighter(e) {
|
|
3250
|
-
return e = e == null ?
|
|
3250
|
+
return e = e == null ? Lr : Math.pow(Lr, e), new De(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
3251
3251
|
},
|
|
3252
3252
|
darker(e) {
|
|
3253
3253
|
return e = e == null ? br : Math.pow(br, e), new De(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
@@ -3261,20 +3261,20 @@ In(De, Io, Go(Rr, {
|
|
|
3261
3261
|
displayable() {
|
|
3262
3262
|
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;
|
|
3263
3263
|
},
|
|
3264
|
-
hex:
|
|
3264
|
+
hex: yi,
|
|
3265
3265
|
// Deprecated! Use color.formatHex.
|
|
3266
|
-
formatHex:
|
|
3266
|
+
formatHex: yi,
|
|
3267
3267
|
formatHex8: Ms,
|
|
3268
|
-
formatRgb:
|
|
3269
|
-
toString:
|
|
3268
|
+
formatRgb: mi,
|
|
3269
|
+
toString: mi
|
|
3270
3270
|
}));
|
|
3271
|
-
function
|
|
3272
|
-
return `#${
|
|
3271
|
+
function yi() {
|
|
3272
|
+
return `#${Gt(this.r)}${Gt(this.g)}${Gt(this.b)}`;
|
|
3273
3273
|
}
|
|
3274
3274
|
function Ms() {
|
|
3275
|
-
return `#${
|
|
3275
|
+
return `#${Gt(this.r)}${Gt(this.g)}${Gt(this.b)}${Gt((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
3276
3276
|
}
|
|
3277
|
-
function
|
|
3277
|
+
function mi() {
|
|
3278
3278
|
const e = Ir(this.opacity);
|
|
3279
3279
|
return `${e === 1 ? "rgb(" : "rgba("}${zt(this.r)}, ${zt(this.g)}, ${zt(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
3280
3280
|
}
|
|
@@ -3284,13 +3284,13 @@ function Ir(e) {
|
|
|
3284
3284
|
function zt(e) {
|
|
3285
3285
|
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
3286
3286
|
}
|
|
3287
|
-
function
|
|
3287
|
+
function Gt(e) {
|
|
3288
3288
|
return e = zt(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3290
|
+
function xi(e, t, r, n) {
|
|
3291
3291
|
return n <= 0 ? e = t = r = NaN : r <= 0 || r >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new Xe(e, t, r, n);
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3293
|
+
function Oo(e) {
|
|
3294
3294
|
if (e instanceof Xe) return new Xe(e.h, e.s, e.l, e.opacity);
|
|
3295
3295
|
if (e instanceof Rr || (e = zn(e)), !e) return new Xe();
|
|
3296
3296
|
if (e instanceof Xe) return e;
|
|
@@ -3299,14 +3299,14 @@ function zo(e) {
|
|
|
3299
3299
|
return l ? (t === a ? o = (r - n) / l + (r < n) * 6 : r === a ? o = (n - t) / l + 2 : o = (t - r) / l + 4, l /= s < 0.5 ? a + i : 2 - a - i, o *= 60) : l = s > 0 && s < 1 ? 0 : o, new Xe(o, l, s, e.opacity);
|
|
3300
3300
|
}
|
|
3301
3301
|
function Rs(e, t, r, n) {
|
|
3302
|
-
return arguments.length === 1 ?
|
|
3302
|
+
return arguments.length === 1 ? Oo(e) : new Xe(e, t, r, n ?? 1);
|
|
3303
3303
|
}
|
|
3304
3304
|
function Xe(e, t, r, n) {
|
|
3305
3305
|
this.h = +e, this.s = +t, this.l = +r, this.opacity = +n;
|
|
3306
3306
|
}
|
|
3307
|
-
In(Xe, Rs,
|
|
3307
|
+
In(Xe, Rs, Io(Rr, {
|
|
3308
3308
|
brighter(e) {
|
|
3309
|
-
return e = e == null ?
|
|
3309
|
+
return e = e == null ? Lr : Math.pow(Lr, e), new Xe(this.h, this.s, this.l * e, this.opacity);
|
|
3310
3310
|
},
|
|
3311
3311
|
darker(e) {
|
|
3312
3312
|
return e = e == null ? br : Math.pow(br, e), new Xe(this.h, this.s, this.l * e, this.opacity);
|
|
@@ -3321,17 +3321,17 @@ In(Xe, Rs, Go(Rr, {
|
|
|
3321
3321
|
);
|
|
3322
3322
|
},
|
|
3323
3323
|
clamp() {
|
|
3324
|
-
return new Xe(
|
|
3324
|
+
return new Xe(_i(this.h), Br(this.s), Br(this.l), Ir(this.opacity));
|
|
3325
3325
|
},
|
|
3326
3326
|
displayable() {
|
|
3327
3327
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
3328
3328
|
},
|
|
3329
3329
|
formatHsl() {
|
|
3330
3330
|
const e = Ir(this.opacity);
|
|
3331
|
-
return `${e === 1 ? "hsl(" : "hsla("}${
|
|
3331
|
+
return `${e === 1 ? "hsl(" : "hsla("}${_i(this.h)}, ${Br(this.s) * 100}%, ${Br(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
3332
3332
|
}
|
|
3333
3333
|
}));
|
|
3334
|
-
function
|
|
3334
|
+
function _i(e) {
|
|
3335
3335
|
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
3336
3336
|
}
|
|
3337
3337
|
function Br(e) {
|
|
@@ -3340,7 +3340,7 @@ function Br(e) {
|
|
|
3340
3340
|
function un(e, t, r) {
|
|
3341
3341
|
return (e < 60 ? t + (r - t) * e / 60 : e < 180 ? r : e < 240 ? t + (r - t) * (240 - e) / 60 : t) * 255;
|
|
3342
3342
|
}
|
|
3343
|
-
const
|
|
3343
|
+
const bi = [
|
|
3344
3344
|
"#1f77b4",
|
|
3345
3345
|
"#ff7f0e",
|
|
3346
3346
|
"#2ca02c",
|
|
@@ -3374,8 +3374,8 @@ const _i = [
|
|
|
3374
3374
|
"#9edae5"
|
|
3375
3375
|
];
|
|
3376
3376
|
function Hr(e) {
|
|
3377
|
-
if (e < 1 && (e = 1), e <=
|
|
3378
|
-
return
|
|
3377
|
+
if (e < 1 && (e = 1), e <= bi.length)
|
|
3378
|
+
return bi.slice(0, e);
|
|
3379
3379
|
if (e <= Dr.length)
|
|
3380
3380
|
return Dr.slice(0, e);
|
|
3381
3381
|
{
|
|
@@ -3386,10 +3386,10 @@ function Hr(e) {
|
|
|
3386
3386
|
}
|
|
3387
3387
|
}
|
|
3388
3388
|
function On(e) {
|
|
3389
|
-
let { r: t, g: r, b: n, opacity: i } =
|
|
3389
|
+
let { r: t, g: r, b: n, opacity: i } = zo(e);
|
|
3390
3390
|
return { r: t / 255, g: r / 255, b: n / 255, a: i };
|
|
3391
3391
|
}
|
|
3392
|
-
function
|
|
3392
|
+
function $o() {
|
|
3393
3393
|
return [1, 0, 0, 0, 1, 0, 0, 0, 1];
|
|
3394
3394
|
}
|
|
3395
3395
|
function $n(e, t) {
|
|
@@ -3405,7 +3405,7 @@ function $n(e, t) {
|
|
|
3405
3405
|
e[2] * t[6] + e[5] * t[7] + e[8] * t[8]
|
|
3406
3406
|
];
|
|
3407
3407
|
}
|
|
3408
|
-
function
|
|
3408
|
+
function qo(e, t) {
|
|
3409
3409
|
return [
|
|
3410
3410
|
t[0] * e[0] + t[3] * e[1] + t[6] * e[2],
|
|
3411
3411
|
t[1] * e[0] + t[4] * e[1] + t[7] * e[2],
|
|
@@ -3415,7 +3415,7 @@ function $o(e, t) {
|
|
|
3415
3415
|
function Ts(e) {
|
|
3416
3416
|
return e[0] * e[4] * e[8] - e[0] * e[5] * e[7] - e[1] * e[3] * e[8] + e[1] * e[5] * e[6] + e[2] * e[3] * e[7] - e[2] * e[4] * e[6];
|
|
3417
3417
|
}
|
|
3418
|
-
function
|
|
3418
|
+
function Vo(e) {
|
|
3419
3419
|
let t = Ts(e);
|
|
3420
3420
|
return [
|
|
3421
3421
|
(e[4] * e[8] - e[5] * e[7]) / t,
|
|
@@ -3511,7 +3511,7 @@ let ur = class extends bn {
|
|
|
3511
3511
|
return this.run(), this._value;
|
|
3512
3512
|
}
|
|
3513
3513
|
};
|
|
3514
|
-
class
|
|
3514
|
+
class Yo extends ur {
|
|
3515
3515
|
constructor(t) {
|
|
3516
3516
|
super([]), this.setValue(t);
|
|
3517
3517
|
}
|
|
@@ -3576,7 +3576,7 @@ class Ps extends ur {
|
|
|
3576
3576
|
let i = this.cache.get(n);
|
|
3577
3577
|
return i.input.value = n, i.output.value;
|
|
3578
3578
|
} else {
|
|
3579
|
-
let i = new Wt(this.parent), a = new
|
|
3579
|
+
let i = new Wt(this.parent), a = new Yo(n), o = this.build(i, a);
|
|
3580
3580
|
return this.cache.set(n, { context: i, input: a, output: o }), this.addInput(o), o.value;
|
|
3581
3581
|
}
|
|
3582
3582
|
});
|
|
@@ -3624,7 +3624,7 @@ class Wt {
|
|
|
3624
3624
|
}
|
|
3625
3625
|
/** Creates a value node. */
|
|
3626
3626
|
value(t) {
|
|
3627
|
-
let r = new
|
|
3627
|
+
let r = new Yo(t);
|
|
3628
3628
|
return this._nodes.add(r), r;
|
|
3629
3629
|
}
|
|
3630
3630
|
/** Creates a derived value. */
|
|
@@ -3660,7 +3660,7 @@ class Wt {
|
|
|
3660
3660
|
function rt(e, t, r, n) {
|
|
3661
3661
|
if (e.program == null || e.vsSource != r || e.fsSource != n) {
|
|
3662
3662
|
e.destroy && e.destroy();
|
|
3663
|
-
let a =
|
|
3663
|
+
let a = wi(t, t.VERTEX_SHADER, r), o = wi(t, t.FRAGMENT_SHADER, n), l = t.createProgram();
|
|
3664
3664
|
if (t.attachShader(l, a), t.attachShader(l, o), t.linkProgram(l), !t.getProgramParameter(l, t.LINK_STATUS)) {
|
|
3665
3665
|
var i = t.getProgramInfoLog(l);
|
|
3666
3666
|
throw new Error(`failed to link program: ${i}, vertex source: ${r}, fragment source: ${n}`);
|
|
@@ -3675,7 +3675,7 @@ function rt(e, t, r, n) {
|
|
|
3675
3675
|
}
|
|
3676
3676
|
return { program: e.program, uniforms: e.uniforms ?? {} };
|
|
3677
3677
|
}
|
|
3678
|
-
function
|
|
3678
|
+
function wi(e, t, r) {
|
|
3679
3679
|
let n = e.createShader(t);
|
|
3680
3680
|
if (e.shaderSource(n, r), e.compileShader(n), !e.getShaderParameter(n, e.COMPILE_STATUS)) {
|
|
3681
3681
|
var i = e.getShaderInfoLog(n);
|
|
@@ -3834,7 +3834,7 @@ function Us(e, t, r) {
|
|
|
3834
3834
|
}
|
|
3835
3835
|
);
|
|
3836
3836
|
}
|
|
3837
|
-
function
|
|
3837
|
+
function Ai(e, t, r) {
|
|
3838
3838
|
let n = Math.sqrt(t * t + r * r);
|
|
3839
3839
|
if (n < e - Math.sqrt(2) / 2)
|
|
3840
3840
|
return 1;
|
|
@@ -3849,10 +3849,10 @@ function wi(e, t, r) {
|
|
|
3849
3849
|
return a / i / i;
|
|
3850
3850
|
}
|
|
3851
3851
|
function ks(e) {
|
|
3852
|
-
let t = Math.floor(e + 0.5), r = t, n =
|
|
3852
|
+
let t = Math.floor(e + 0.5), r = t, n = Ai(e, 0, 0), i = [];
|
|
3853
3853
|
for (let l = -t; l <= t; l++)
|
|
3854
3854
|
for (let s = -t; s <= t; s++) {
|
|
3855
|
-
let u = n -
|
|
3855
|
+
let u = n - Ai(e, l, s);
|
|
3856
3856
|
if (!(u <= 0))
|
|
3857
3857
|
if (i.length > 0 && l == i[i.length - 1].x && s == i[i.length - 1].y + 1) {
|
|
3858
3858
|
let f = i[i.length - 1].w, h = u;
|
|
@@ -3871,7 +3871,7 @@ function ks(e) {
|
|
|
3871
3871
|
let o = -a.reduce((l, s) => l + s.w, 0);
|
|
3872
3872
|
return o += n * (1 + r * 2) * (1 + r * 2), { squareMaxSize: r, squareWeight: n, samples: a, totalWeight: o };
|
|
3873
3873
|
}
|
|
3874
|
-
function
|
|
3874
|
+
function Ns(e) {
|
|
3875
3875
|
let t;
|
|
3876
3876
|
return e ? t = `#version 300 es
|
|
3877
3877
|
precision highp float;
|
|
@@ -3914,12 +3914,12 @@ function Ls(e) {
|
|
|
3914
3914
|
` };
|
|
3915
3915
|
}
|
|
3916
3916
|
function wn(e, t, r, n, i, a) {
|
|
3917
|
-
let o = i != null, l =
|
|
3917
|
+
let o = i != null, l = Ns(o), s = e.statefulDerive([t, l.vertex, l.fragment], rt);
|
|
3918
3918
|
return e.derive([t, s, r, n, i, a], (u, f, h, p, d, v) => (g) => {
|
|
3919
3919
|
u.enable(u.BLEND), u.blendFunc(u.ONE, u.ONE), u.useProgram(f.program), u.enableVertexAttribArray(0), u.bindBuffer(u.ARRAY_BUFFER, h), u.vertexAttribPointer(0, 1, u.FLOAT, !1, 0, 0), u.enableVertexAttribArray(1), u.bindBuffer(u.ARRAY_BUFFER, p), u.vertexAttribPointer(1, 1, u.FLOAT, !1, 0, 0), d != null && (u.enableVertexAttribArray(2), u.bindBuffer(u.ARRAY_BUFFER, d), u.vertexAttribIPointer(2, 1, u.BYTE, 0, 0)), u.bindBuffer(u.ARRAY_BUFFER, null), u.uniformMatrix3fv(f.uniforms.matrix, !1, g), u.drawArrays(u.POINTS, 0, v), u.disableVertexAttribArray(0), u.disableVertexAttribArray(1), d != null && u.disableVertexAttribArray(2), u.useProgram(null);
|
|
3920
3920
|
});
|
|
3921
3921
|
}
|
|
3922
|
-
function
|
|
3922
|
+
function Gs() {
|
|
3923
3923
|
return { vertex: `#version 300 es
|
|
3924
3924
|
precision highp float;
|
|
3925
3925
|
uniform vec2 xyScaler;
|
|
@@ -3942,17 +3942,17 @@ function Ns() {
|
|
|
3942
3942
|
}
|
|
3943
3943
|
` };
|
|
3944
3944
|
}
|
|
3945
|
-
function
|
|
3946
|
-
let { vertex: r, fragment: n } =
|
|
3945
|
+
function Wo(e, t) {
|
|
3946
|
+
let { vertex: r, fragment: n } = Gs(), i = e.statefulDerive([t, r, n], rt), a = e.statefulDerive([t, [-1, -1, -1, 1, 1, -1, 1, 1], "f32"], Ke);
|
|
3947
3947
|
return e.derive([t, i, a], (o, l, s) => (u, f, h, p) => {
|
|
3948
3948
|
o.disable(o.BLEND), o.enableVertexAttribArray(0), o.bindBuffer(o.ARRAY_BUFFER, s), o.vertexAttribPointer(0, 2, o.FLOAT, !1, 0, 0), o.bindBuffer(o.ARRAY_BUFFER, null), o.bindTexture(o.TEXTURE_2D, u), o.useProgram(l.program), o.uniform1i(l.uniforms.source, 0), o.uniform2f(l.uniforms.xyScaler, h ?? 1, p ?? 1), o.uniform1f(l.uniforms.gamma, f ?? 2.2), o.drawArrays(o.TRIANGLE_STRIP, 0, 4), o.useProgram(null), o.bindTexture(o.TEXTURE_2D, null), o.disableVertexAttribArray(0);
|
|
3949
3949
|
});
|
|
3950
3950
|
}
|
|
3951
|
-
function
|
|
3951
|
+
function Xo(e) {
|
|
3952
3952
|
return Math.ceil(e * 3);
|
|
3953
3953
|
}
|
|
3954
|
-
function
|
|
3955
|
-
let t =
|
|
3954
|
+
function Ls(e) {
|
|
3955
|
+
let t = Xo(e), r = [];
|
|
3956
3956
|
for (let l = -t; l <= t; l++)
|
|
3957
3957
|
r.push(Math.exp(-l * l / e / e / 2));
|
|
3958
3958
|
let n = r.reduce((l, s) => l + s, 0);
|
|
@@ -3983,7 +3983,7 @@ function Gs(e) {
|
|
|
3983
3983
|
return { vertex: a, fragment: o };
|
|
3984
3984
|
}
|
|
3985
3985
|
function Is(e, t, r) {
|
|
3986
|
-
let n = e.derive([r],
|
|
3986
|
+
let n = e.derive([r], Ls), i = e.statefulDerive(
|
|
3987
3987
|
[t, e.derive([n], (o) => o.vertex), e.derive([n], (o) => o.fragment)],
|
|
3988
3988
|
rt
|
|
3989
3989
|
), a = e.statefulDerive([t, [-1, -1, -1, 1, 1, -1, 1, 1], "f32"], Ke);
|
|
@@ -4257,7 +4257,7 @@ function Hs(e) {
|
|
|
4257
4257
|
}
|
|
4258
4258
|
` };
|
|
4259
4259
|
}
|
|
4260
|
-
function
|
|
4260
|
+
function Mi(e, t, r, n, i, a) {
|
|
4261
4261
|
let o = i != null, l = Hs(o), s = e.statefulDerive([t, l.vertex, l.fragment], rt);
|
|
4262
4262
|
return e.derive(
|
|
4263
4263
|
[t, s, r, n, i, a],
|
|
@@ -4368,7 +4368,7 @@ class Js {
|
|
|
4368
4368
|
yData: i.value(this.props.y),
|
|
4369
4369
|
categoryData: i.value(this.props.category),
|
|
4370
4370
|
categoryCount: i.value(this.props.categoryCount),
|
|
4371
|
-
matrix: i.value(
|
|
4371
|
+
matrix: i.value($o()),
|
|
4372
4372
|
width: i.value(r),
|
|
4373
4373
|
height: i.value(n),
|
|
4374
4374
|
pointSize: i.value(this.props.pointSize),
|
|
@@ -4394,13 +4394,13 @@ class Js {
|
|
|
4394
4394
|
this.df.destroy();
|
|
4395
4395
|
}
|
|
4396
4396
|
async densityMap(t, r, n, i) {
|
|
4397
|
-
let a = this.df.subgraph(), o = nu(a, this.gl, this.dataBuffers, a.value(t), a.value(r), a.value(n)), { x: l, y: s, scale: u } = i, f = [u, 0, 0, 0, u, 0, -l * u, -s * u, 1], h = o.value(f), p =
|
|
4397
|
+
let a = this.df.subgraph(), o = nu(a, this.gl, this.dataBuffers, a.value(t), a.value(r), a.value(n)), { x: l, y: s, scale: u } = i, f = [u, 0, 0, 0, u, 0, -l * u, -s * u, 1], h = o.value(f), p = Vo(f);
|
|
4398
4398
|
return a.destroy(), {
|
|
4399
4399
|
data: h,
|
|
4400
4400
|
width: t,
|
|
4401
4401
|
height: r,
|
|
4402
4402
|
coordinateAtPixel: (d, v) => {
|
|
4403
|
-
let g = d / t * 2 - 1, y = v / r * 2 - 1, _ =
|
|
4403
|
+
let g = d / t * 2 - 1, y = v / r * 2 - 1, _ = qo([g, y, 1], p);
|
|
4404
4404
|
return { x: _[0], y: _[1] };
|
|
4405
4405
|
}
|
|
4406
4406
|
};
|
|
@@ -4424,9 +4424,9 @@ function tu(e, t, r, n) {
|
|
|
4424
4424
|
const i = e.derive([r.categoryCount], (s) => s > 1), a = e.statefulDerive([t, r.width, r.height, 4, "f32"], Rt);
|
|
4425
4425
|
let o = e.if(
|
|
4426
4426
|
i,
|
|
4427
|
-
(s) =>
|
|
4428
|
-
(s) =>
|
|
4429
|
-
), l =
|
|
4427
|
+
(s) => Mi(s, t, n.x, n.y, s.assertNotNull(n.category), n.count),
|
|
4428
|
+
(s) => Mi(s, t, n.x, n.y, null, n.count)
|
|
4429
|
+
), l = Wo(e, t);
|
|
4430
4430
|
return e.derive(
|
|
4431
4431
|
[t, a, o, l, r.colorScheme, r.matrix, r.categoryCount],
|
|
4432
4432
|
(s, u, f, h, p, d, v) => (g) => {
|
|
@@ -4448,7 +4448,7 @@ function ru(e, t, r, n) {
|
|
|
4448
4448
|
l,
|
|
4449
4449
|
(x) => wn(x, t, n.x, n.y, x.assertNotNull(n.category), n.count),
|
|
4450
4450
|
(x) => wn(x, t, n.x, n.y, null, n.count)
|
|
4451
|
-
), d = Us(e, t, r.pointSize), v = qs(e, t, r.densityBandwidth), g = Zs(e, t), y = js(e, t), _ = Ws(e, t), w =
|
|
4451
|
+
), d = Us(e, t, r.pointSize), v = qs(e, t, r.densityBandwidth), g = Zs(e, t), y = js(e, t), _ = Ws(e, t), w = Wo(e, t);
|
|
4452
4452
|
return e.derive(
|
|
4453
4453
|
[
|
|
4454
4454
|
t,
|
|
@@ -4466,7 +4466,7 @@ function ru(e, t, r, n) {
|
|
|
4466
4466
|
_,
|
|
4467
4467
|
w
|
|
4468
4468
|
],
|
|
4469
|
-
(x, R, E, T, B,
|
|
4469
|
+
(x, R, E, T, B, G, N, V, $, j, ve, te, ae, re) => (P) => {
|
|
4470
4470
|
let le = P.categoryColors ?? Hr(P.categoryCount), fe = [];
|
|
4471
4471
|
for (let se = 0; se < 4; se++)
|
|
4472
4472
|
if (se < le.length) {
|
|
@@ -4474,14 +4474,14 @@ function ru(e, t, r, n) {
|
|
|
4474
4474
|
Ae = Math.pow(Ae, P.gamma), Ee = Math.pow(Ee, P.gamma), Z = Math.pow(Z, P.gamma), fe = fe.concat([Ae, Ee, Z, 1]);
|
|
4475
4475
|
} else
|
|
4476
4476
|
fe = fe.concat([0.5, 0.5, 0.5, 1]);
|
|
4477
|
-
let
|
|
4478
|
-
if (x.bindFramebuffer(x.FRAMEBUFFER, R.framebuffer), x.viewport(0, 0, R.width, R.height), x.clearColor(0, 0, 0, 0), x.clear(x.COLOR_BUFFER_BIT), V(de), x.bindFramebuffer(x.FRAMEBUFFER, E.framebuffer), x.viewport(0, 0, E.width, E.height),
|
|
4477
|
+
let Ne = P.width / E.width, ye = P.height / E.height, de = $n([Ne, 0, 0, 0, ye, 0, 0, 0, 1], N);
|
|
4478
|
+
if (x.bindFramebuffer(x.FRAMEBUFFER, R.framebuffer), x.viewport(0, 0, R.width, R.height), x.clearColor(0, 0, 0, 0), x.clear(x.COLOR_BUFFER_BIT), V(de), x.bindFramebuffer(x.FRAMEBUFFER, E.framebuffer), x.viewport(0, 0, E.width, E.height), G == "light" ? x.clearColor(1, 1, 1, 1) : x.clearColor(0, 0, 0, 1), x.clear(x.COLOR_BUFFER_BIT), P.pointAlpha > 0 && P.pointsAlpha > 0 && ($(R.texture, T, B), x.bindFramebuffer(x.FRAMEBUFFER, E.framebuffer), ve(T, P.pointAlpha, P.pointsAlpha, fe, G)), P.densityScaler > 0 && (P.densityAlpha > 0 || P.contoursAlpha > 0) && (j(R.texture, T, B), x.bindFramebuffer(x.FRAMEBUFFER, E.framebuffer), P.densityAlpha > 0 && te(
|
|
4479
4479
|
T,
|
|
4480
4480
|
P.densityScaler,
|
|
4481
4481
|
P.densityQuantizationStep,
|
|
4482
4482
|
P.densityAlpha,
|
|
4483
4483
|
fe,
|
|
4484
|
-
|
|
4484
|
+
G
|
|
4485
4485
|
), P.contoursAlpha > 0))
|
|
4486
4486
|
for (let se = 0; se < le.length; se++) {
|
|
4487
4487
|
let Ae = [0, 0, 0, 0];
|
|
@@ -4494,18 +4494,18 @@ function ru(e, t, r, n) {
|
|
|
4494
4494
|
fe.slice(se * 4, se * 4 + 4)
|
|
4495
4495
|
);
|
|
4496
4496
|
}
|
|
4497
|
-
x.bindFramebuffer(x.FRAMEBUFFER, null), x.viewport(0, 0, P.width, P.height), re(E.texture, P.gamma, 1 /
|
|
4497
|
+
x.bindFramebuffer(x.FRAMEBUFFER, null), x.viewport(0, 0, P.width, P.height), re(E.texture, P.gamma, 1 / Ne, 1 / ye);
|
|
4498
4498
|
}
|
|
4499
4499
|
);
|
|
4500
4500
|
}
|
|
4501
4501
|
function nu(e, t, r, n, i, a) {
|
|
4502
|
-
let o = e.derive([a], (v) =>
|
|
4502
|
+
let o = e.derive([a], (v) => Xo(v) + 1), l = e.derive([n, o], (v, g) => v + g * 2), s = e.derive([i, o], (v, g) => v + g * 2);
|
|
4503
4503
|
const u = e.statefulDerive([t, l, s, 1, "f32"], Rt), f = e.statefulDerive([t, l, s, 1, "f32"], Rt), h = e.statefulDerive([t, l, s, 1, "f32"], Rt);
|
|
4504
4504
|
let p = wn(e, t, r.x, r.y, null, r.count), d = Is(e, t, a);
|
|
4505
4505
|
return e.derive(
|
|
4506
4506
|
[t, o, n, i, u, f, h, p, d],
|
|
4507
4507
|
(v, g, y, _, w, x, R, E, T) => (B) => {
|
|
4508
|
-
let
|
|
4508
|
+
let G = y / w.width, N = _ / w.height, V = $n([G, 0, 0, 0, N, 0, 0, 0, 1], B);
|
|
4509
4509
|
v.bindFramebuffer(v.FRAMEBUFFER, w.framebuffer), v.viewport(0, 0, w.width, w.height), v.clearColor(0, 0, 0, 0), v.clear(v.COLOR_BUFFER_BIT), E(V), T(w.texture, x, R), v.bindFramebuffer(v.FRAMEBUFFER, x.framebuffer);
|
|
4510
4510
|
let $ = new Float32Array(y * _);
|
|
4511
4511
|
return v.readPixels(g, g, y, _, v.RED, v.FLOAT, $), v.bindFramebuffer(v.FRAMEBUFFER, null), $;
|
|
@@ -4571,7 +4571,7 @@ function ou(e, t) {
|
|
|
4571
4571
|
};
|
|
4572
4572
|
}
|
|
4573
4573
|
const fn = 64, cn = 64;
|
|
4574
|
-
function
|
|
4574
|
+
function jo(e, t, r, n, i, a) {
|
|
4575
4575
|
let o = e.derive(
|
|
4576
4576
|
[t, r, n.layouts],
|
|
4577
4577
|
(l, s, u) => l.createComputePipeline({
|
|
@@ -4631,7 +4631,7 @@ function au(e) {
|
|
|
4631
4631
|
})
|
|
4632
4632
|
};
|
|
4633
4633
|
}
|
|
4634
|
-
function
|
|
4634
|
+
function Ho(e, t, r, n, i) {
|
|
4635
4635
|
let a = e.derive([t], (h) => au(h)), o = e.derive(
|
|
4636
4636
|
[t, a, r],
|
|
4637
4637
|
(h, p, d) => h.createBindGroup({
|
|
@@ -4683,9 +4683,9 @@ function jo(e, t, r, n, i) {
|
|
|
4683
4683
|
group3: f
|
|
4684
4684
|
};
|
|
4685
4685
|
}
|
|
4686
|
-
const
|
|
4686
|
+
const Qo = 256, An = 256, lu = An * Qo;
|
|
4687
4687
|
function su(e) {
|
|
4688
|
-
const t = Math.ceil(e /
|
|
4688
|
+
const t = Math.ceil(e / Qo);
|
|
4689
4689
|
if (t <= An)
|
|
4690
4690
|
return [t, 1];
|
|
4691
4691
|
const r = Math.ceil(e / lu);
|
|
@@ -4783,11 +4783,11 @@ function fu(e, t, r, n, i, a, o, l, s, u) {
|
|
|
4783
4783
|
s.countersBuffer,
|
|
4784
4784
|
u.count
|
|
4785
4785
|
],
|
|
4786
|
-
(y, _, w, x, R, E, T, B,
|
|
4786
|
+
(y, _, w, x, R, E, T, B, G, N, V) => ($, j) => {
|
|
4787
4787
|
if (V === 0 || j.maxPoints <= 0)
|
|
4788
4788
|
return 0;
|
|
4789
4789
|
const ve = new ArrayBuffer(16), te = new DataView(ve);
|
|
4790
|
-
te.setUint32(0, j.maxPoints, !0), te.setUint32(4, j.frameSeed, !0), te.setFloat32(8, j.densityWeight, !0), te.setFloat32(12, 0, !0), y.queue.writeBuffer(
|
|
4790
|
+
te.setUint32(0, j.maxPoints, !0), te.setUint32(4, j.frameSeed, !0), te.setFloat32(8, j.densityWeight, !0), te.setFloat32(12, 0, !0), y.queue.writeBuffer(G, 0, ve), $.clearBuffer(N);
|
|
4791
4791
|
const [ae, re] = su(V);
|
|
4792
4792
|
{
|
|
4793
4793
|
const P = $.beginComputePass();
|
|
@@ -4955,8 +4955,8 @@ function pu(e, t, r, n, i) {
|
|
|
4955
4955
|
}
|
|
4956
4956
|
);
|
|
4957
4957
|
}
|
|
4958
|
-
const
|
|
4959
|
-
function
|
|
4958
|
+
const Ri = 64;
|
|
4959
|
+
function Zo(e, t, r, n, i, a, o) {
|
|
4960
4960
|
let l = e.derive(
|
|
4961
4961
|
[t, r, n.layouts],
|
|
4962
4962
|
(u, f, h) => u.createComputePipeline({
|
|
@@ -4988,7 +4988,7 @@ function Qo(e, t, r, n, i, a, o) {
|
|
|
4988
4988
|
],
|
|
4989
4989
|
(u, f, h, p, d, v, g, y, _) => (w) => {
|
|
4990
4990
|
let x = w.beginComputePass();
|
|
4991
|
-
x.setBindGroup(0, h), x.setBindGroup(1, p), x.setBindGroup(2, d), x.setBindGroup(3, v), x.setPipeline(u), x.dispatchWorkgroups(Math.ceil(g /
|
|
4991
|
+
x.setBindGroup(0, h), x.setBindGroup(1, p), x.setBindGroup(2, d), x.setBindGroup(3, v), x.setPipeline(u), x.dispatchWorkgroups(Math.ceil(g / Ri), _), x.setPipeline(f), x.dispatchWorkgroups(Math.ceil(y / Ri), _), x.end();
|
|
4992
4992
|
}
|
|
4993
4993
|
);
|
|
4994
4994
|
}
|
|
@@ -5044,7 +5044,7 @@ function gu(e, t, r) {
|
|
|
5044
5044
|
for (d = 0; d < 4; ++d)
|
|
5045
5045
|
p = d << 1, t[d] = f[p] / u, e[d + 1] = h[p + 2];
|
|
5046
5046
|
}
|
|
5047
|
-
function
|
|
5047
|
+
function Jo(e) {
|
|
5048
5048
|
let t = vu(e);
|
|
5049
5049
|
return {
|
|
5050
5050
|
kde_causal: [t.b_causal[0], t.b_causal[1], t.b_causal[2], t.b_causal[3]],
|
|
@@ -5632,7 +5632,7 @@ class mu {
|
|
|
5632
5632
|
categoryData: o.value(this.props.category),
|
|
5633
5633
|
categoryCount: o.value(this.props.categoryCount),
|
|
5634
5634
|
categoryColors: o.value(this.props.categoryColors),
|
|
5635
|
-
matrix: o.value(
|
|
5635
|
+
matrix: o.value($o()),
|
|
5636
5636
|
width: o.value(i),
|
|
5637
5637
|
height: o.value(a),
|
|
5638
5638
|
pointSize: o.value(this.props.pointSize),
|
|
@@ -5666,7 +5666,7 @@ class mu {
|
|
|
5666
5666
|
this.df.destroy();
|
|
5667
5667
|
}
|
|
5668
5668
|
async densityMap(t, r, n, i) {
|
|
5669
|
-
let a = this.df.subgraph(), { x: o, y: l, scale: s } = i, u = [s, 0, 0, 0, s, 0, -o * s, -l * s, 1], f =
|
|
5669
|
+
let a = this.df.subgraph(), { x: o, y: l, scale: s } = i, u = [s, 0, 0, 0, s, 0, -o * s, -l * s, 1], f = Vo(u), h = await bu(
|
|
5670
5670
|
a,
|
|
5671
5671
|
this.device,
|
|
5672
5672
|
this.module,
|
|
@@ -5682,7 +5682,7 @@ class mu {
|
|
|
5682
5682
|
width: t,
|
|
5683
5683
|
height: r,
|
|
5684
5684
|
coordinateAtPixel: (p, d) => {
|
|
5685
|
-
let v = p / t * 2 - 1, g = d / r * 2 - 1, y =
|
|
5685
|
+
let v = p / t * 2 - 1, g = d / r * 2 - 1, y = qo([v, g, 1], f);
|
|
5686
5686
|
return { x: y[0], y: y[1] };
|
|
5687
5687
|
}
|
|
5688
5688
|
};
|
|
@@ -5702,13 +5702,13 @@ function xu(e, t, r) {
|
|
|
5702
5702
|
);
|
|
5703
5703
|
return { x: l, y: s, category: u, count: i };
|
|
5704
5704
|
}
|
|
5705
|
-
function
|
|
5705
|
+
function Ko(e, t, r, n, i, a, o) {
|
|
5706
5706
|
let l = "rgba16float", s = "r16float", u = GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING, f = e.statefulDerive(
|
|
5707
5707
|
[t, r, n, l, u],
|
|
5708
|
-
|
|
5708
|
+
ei
|
|
5709
5709
|
), h = e.statefulDerive(
|
|
5710
5710
|
[t, r, n, s, u],
|
|
5711
|
-
|
|
5711
|
+
ei
|
|
5712
5712
|
), p = e.derive(
|
|
5713
5713
|
[i, a, o],
|
|
5714
5714
|
(y, _, w) => y * _ * w * 4
|
|
@@ -5731,7 +5731,7 @@ function Jo(e, t, r, n, i, a, o) {
|
|
|
5731
5731
|
};
|
|
5732
5732
|
}
|
|
5733
5733
|
function _u(e, t, r, n, i, a, o) {
|
|
5734
|
-
let l = e.derive([a.densityBandwidth], (
|
|
5734
|
+
let l = e.derive([a.densityBandwidth], (N) => Math.ceil(N * 3) + 1), s = e.derive([a.width, l], (N, V) => N + V * 2), u = e.derive([a.height, l], (N, V) => N + V * 2), f = e.derive([s], (N) => Math.ceil(N / 4)), h = e.derive([u], (N) => Math.ceil(N / 4)), p = Ko(
|
|
5735
5735
|
e,
|
|
5736
5736
|
t,
|
|
5737
5737
|
s,
|
|
@@ -5739,19 +5739,19 @@ function _u(e, t, r, n, i, a, o) {
|
|
|
5739
5739
|
f,
|
|
5740
5740
|
h,
|
|
5741
5741
|
a.categoryCount
|
|
5742
|
-
), d =
|
|
5742
|
+
), d = Ho(e, t, n.buffer, o, p), v = uu(e, t, o.count, a.downsampleMaxPoints), g = jo(e, t, r, d, o, p), y = du(e, t, r, d, o, p), _ = hu(
|
|
5743
5743
|
e,
|
|
5744
5744
|
t,
|
|
5745
5745
|
r,
|
|
5746
5746
|
d,
|
|
5747
5747
|
v,
|
|
5748
5748
|
p
|
|
5749
|
-
), w = cu(e, t, r, d, p), x = pu(e, t, r, i, d), R =
|
|
5749
|
+
), w = cu(e, t, r, d, p), x = pu(e, t, r, i, d), R = Zo(e, t, r, d, s, u, a.categoryCount), E = e.derive([d.layouts], (N) => N), T = fu(
|
|
5750
5750
|
e,
|
|
5751
5751
|
t,
|
|
5752
5752
|
r,
|
|
5753
|
-
e.derive([E], (
|
|
5754
|
-
e.derive([E], (
|
|
5753
|
+
e.derive([E], (N) => N.group0),
|
|
5754
|
+
e.derive([E], (N) => N.group1),
|
|
5755
5755
|
p.blurBuffer,
|
|
5756
5756
|
// Pass blur buffer directly for density lookup
|
|
5757
5757
|
d.group0,
|
|
@@ -5760,10 +5760,10 @@ function _u(e, t, r, n, i, a, o) {
|
|
|
5760
5760
|
o
|
|
5761
5761
|
), B = e.derive(
|
|
5762
5762
|
[a.densityBandwidth, s, f],
|
|
5763
|
-
(
|
|
5764
|
-
),
|
|
5763
|
+
(N, V, $) => Jo(N / V * $)
|
|
5764
|
+
), G = e.derive(
|
|
5765
5765
|
[a.categoryColors, a.categoryCount],
|
|
5766
|
-
(
|
|
5766
|
+
(N, V) => (N == null && (N = Hr(V)), N.map(($) => On($)))
|
|
5767
5767
|
);
|
|
5768
5768
|
return e.derive(
|
|
5769
5769
|
[
|
|
@@ -5775,7 +5775,7 @@ function _u(e, t, r, n, i, a, o) {
|
|
|
5775
5775
|
n.update,
|
|
5776
5776
|
o.count,
|
|
5777
5777
|
a.matrix,
|
|
5778
|
-
|
|
5778
|
+
G,
|
|
5779
5779
|
y,
|
|
5780
5780
|
_,
|
|
5781
5781
|
x,
|
|
@@ -5785,8 +5785,8 @@ function _u(e, t, r, n, i, a, o) {
|
|
|
5785
5785
|
T,
|
|
5786
5786
|
B
|
|
5787
5787
|
],
|
|
5788
|
-
(
|
|
5789
|
-
let xt = Z.colorScheme == "light" ? [1, 1, 1, 1] : [0, 0, 0, 1], D = Z.width / V,
|
|
5788
|
+
(N, V, $, j, ve, te, ae, re, P, le, fe, Ne, ye, de, se, Ae, Ee) => (Z, ot) => {
|
|
5789
|
+
let xt = Z.colorScheme == "light" ? [1, 1, 1, 1] : [0, 0, 0, 1], D = Z.width / V, C = Z.height / $, I = $n([D, 0, 0, 0, C, 0, 0, 0, 1], re);
|
|
5790
5790
|
te({
|
|
5791
5791
|
count: ae,
|
|
5792
5792
|
category_count: Z.categoryCount,
|
|
@@ -5803,14 +5803,14 @@ function _u(e, t, r, n, i, a, o) {
|
|
|
5803
5803
|
density_alpha: Z.densityAlpha,
|
|
5804
5804
|
contours_alpha: Z.contoursAlpha,
|
|
5805
5805
|
matrix: I,
|
|
5806
|
-
view_xy_scaler: [1 / D, 1 /
|
|
5806
|
+
view_xy_scaler: [1 / D, 1 / C],
|
|
5807
5807
|
kde_causal: Ee.kde_causal,
|
|
5808
5808
|
kde_anticausal: Ee.kde_anticausal,
|
|
5809
5809
|
kde_a: Ee.kde_a,
|
|
5810
5810
|
background_color: xt,
|
|
5811
5811
|
category_colors: P
|
|
5812
5812
|
});
|
|
5813
|
-
let H =
|
|
5813
|
+
let H = N.createCommandEncoder();
|
|
5814
5814
|
const J = Z.downsampleMaxPoints, Se = J === null || J === 1 / 0 || !Number.isFinite(J) || J <= 0 ? null : J;
|
|
5815
5815
|
if (Se !== null && ae > Se) {
|
|
5816
5816
|
ye(H), de(H);
|
|
@@ -5822,12 +5822,12 @@ function _u(e, t, r, n, i, a, o) {
|
|
|
5822
5822
|
Ae(H, me), fe(H, ae), Z.mode == "density" && (Z.densityAlpha > 0 || Z.contoursAlpha > 0) && se(H);
|
|
5823
5823
|
} else
|
|
5824
5824
|
le(H), Z.mode == "density" && (Z.densityAlpha > 0 || Z.contoursAlpha > 0) && (ye(H), de(H), se(H));
|
|
5825
|
-
|
|
5825
|
+
Ne(H, ot), N.queue.submit([H.finish()]);
|
|
5826
5826
|
}
|
|
5827
5827
|
);
|
|
5828
5828
|
}
|
|
5829
5829
|
function bu(e, t, r, n, i, a, o, l, s) {
|
|
5830
|
-
let u =
|
|
5830
|
+
let u = Ko(e, t, i, a, i, a, e.value(1)), f = Ho(e, t, n.buffer, s, u), h = jo(e, t, r, f, s, u), p = Zo(e, t, r, f, i, a, e.value(1));
|
|
5831
5831
|
return e.derive(
|
|
5832
5832
|
[
|
|
5833
5833
|
t,
|
|
@@ -5842,7 +5842,7 @@ function bu(e, t, r, n, i, a, o, l, s) {
|
|
|
5842
5842
|
u.countBuffer
|
|
5843
5843
|
],
|
|
5844
5844
|
(d, v, g, y, _, w, x, R, E, T) => () => {
|
|
5845
|
-
let B = d.createCommandEncoder(),
|
|
5845
|
+
let B = d.createCommandEncoder(), G = Jo(w);
|
|
5846
5846
|
_({
|
|
5847
5847
|
count: y,
|
|
5848
5848
|
category_count: 1,
|
|
@@ -5860,17 +5860,17 @@ function bu(e, t, r, n, i, a, o, l, s) {
|
|
|
5860
5860
|
contours_alpha: 0,
|
|
5861
5861
|
matrix: x,
|
|
5862
5862
|
view_xy_scaler: [1, 1],
|
|
5863
|
-
kde_causal:
|
|
5864
|
-
kde_anticausal:
|
|
5865
|
-
kde_a:
|
|
5863
|
+
kde_causal: G.kde_causal,
|
|
5864
|
+
kde_anticausal: G.kde_anticausal,
|
|
5865
|
+
kde_a: G.kde_a,
|
|
5866
5866
|
background_color: [0, 0, 0, 0],
|
|
5867
5867
|
category_colors: []
|
|
5868
5868
|
}), R(B), E(B);
|
|
5869
|
-
let
|
|
5869
|
+
let N = d.createBuffer({
|
|
5870
5870
|
size: v * g * 2,
|
|
5871
5871
|
usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ
|
|
5872
5872
|
});
|
|
5873
|
-
return B.copyBufferToBuffer(T, 0,
|
|
5873
|
+
return B.copyBufferToBuffer(T, 0, N, 0, v * g * 2), d.queue.submit([B.finish()]), N.mapAsync(GPUMapMode.READ, 0, v * g * 2).then(() => wu(N.getMappedRange()));
|
|
5874
5874
|
}
|
|
5875
5875
|
);
|
|
5876
5876
|
}
|
|
@@ -5923,7 +5923,7 @@ function fr(e, t, r = []) {
|
|
|
5923
5923
|
});
|
|
5924
5924
|
}
|
|
5925
5925
|
let Tu = (e, t, r, n) => fr("findClusters", [e, t, r, n], [e.buffer]), Eu = (...e) => fr("dynamicLabelPlacement", e), Su = (...e) => fr("textSummarizerCreate", e), Fu = (...e) => fr("textSummarizerDestroy", e), Pu = (...e) => fr("textSummarizerAdd", e), Bu = (...e) => fr("textSummarizerSummarize", e);
|
|
5926
|
-
async function
|
|
5926
|
+
async function Ti(e, t, r) {
|
|
5927
5927
|
let n = t.reduce((u, f) => Math.min(u, f.level ?? 0), 0), i = t.reduce((u, f) => Math.max(u, f.level ?? 0), 0), a = e * 0.5, o = e * 2, l = t.map((u) => {
|
|
5928
5928
|
let f = { x: u.x, y: u.y }, h = u.level ?? 0, p = h == 0 ? 14 : 12, d = Mu({
|
|
5929
5929
|
text: u.text,
|
|
@@ -5959,9 +5959,9 @@ async function Ri(e, t, r) {
|
|
|
5959
5959
|
function Du(e) {
|
|
5960
5960
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5961
5961
|
}
|
|
5962
|
-
var
|
|
5962
|
+
var Ei = { exports: {} }, Si;
|
|
5963
5963
|
function Cu() {
|
|
5964
|
-
return
|
|
5964
|
+
return Si || (Si = 1, (function(e) {
|
|
5965
5965
|
(function() {
|
|
5966
5966
|
function t(l, s) {
|
|
5967
5967
|
var u = l.x - s.x, f = l.y - s.y;
|
|
@@ -5998,10 +5998,10 @@ function Cu() {
|
|
|
5998
5998
|
}
|
|
5999
5999
|
e.exports = o, e.exports.default = o;
|
|
6000
6000
|
})();
|
|
6001
|
-
})(
|
|
6001
|
+
})(Ei)), Ei.exports;
|
|
6002
6002
|
}
|
|
6003
6003
|
var Uu = Cu();
|
|
6004
|
-
const
|
|
6004
|
+
const Fi = /* @__PURE__ */ Du(Uu);
|
|
6005
6005
|
function ku(e, t) {
|
|
6006
6006
|
let r = e.slice();
|
|
6007
6007
|
for (let n = 0; n < t; n++) {
|
|
@@ -6020,14 +6020,14 @@ function ku(e, t) {
|
|
|
6020
6020
|
}
|
|
6021
6021
|
return r;
|
|
6022
6022
|
}
|
|
6023
|
-
function
|
|
6024
|
-
const r = ku(e, 5), n =
|
|
6025
|
-
let i = Math.max(n.xMax - n.xMin, n.yMax - n.yMin) / 100, a =
|
|
6023
|
+
function Nu(e, t) {
|
|
6024
|
+
const r = ku(e, 5), n = No(r);
|
|
6025
|
+
let i = Math.max(n.xMax - n.xMin, n.yMax - n.yMin) / 100, a = Fi(r, i), o = 0;
|
|
6026
6026
|
for (; a.length > t && o < 20; )
|
|
6027
|
-
i *= 1.1, o += 1, a =
|
|
6027
|
+
i *= 1.1, o += 1, a = Fi(r, i);
|
|
6028
6028
|
return a;
|
|
6029
6029
|
}
|
|
6030
|
-
const
|
|
6030
|
+
const Pi = {
|
|
6031
6031
|
light: {
|
|
6032
6032
|
fontFamily: "system-ui,sans-serif",
|
|
6033
6033
|
clusterLabelColor: "#000",
|
|
@@ -6049,10 +6049,10 @@ const Fi = {
|
|
|
6049
6049
|
brandingLink: { text: "Embedding Atlas", href: "https://apple.github.io/embedding-atlas" }
|
|
6050
6050
|
}
|
|
6051
6051
|
};
|
|
6052
|
-
function
|
|
6053
|
-
return e == null ?
|
|
6052
|
+
function Gu(e, t) {
|
|
6053
|
+
return e == null ? Pi[t] : { ...Pi[t], ...e, ...e[t] != null ? e[t] : {} };
|
|
6054
6054
|
}
|
|
6055
|
-
function
|
|
6055
|
+
function Lu(e, t, r, n, i, a, o) {
|
|
6056
6056
|
let l = Math.max(n, i) / a, s = e / (r * r) / (l * l), u = 1 / (s / (a * a)) * 0.2, f = Math.sqrt(e / t / (l * l)), h = Math.log(f), p = Math.log(r), d = (Math.min(Math.max((p - h) * 2, -1), 1) + 1) / 2, v;
|
|
6057
6057
|
if (o != null)
|
|
6058
6058
|
v = o * a;
|
|
@@ -6072,13 +6072,13 @@ function Gu(e, t, r, n, i, a, o) {
|
|
|
6072
6072
|
};
|
|
6073
6073
|
}
|
|
6074
6074
|
var Iu = /* @__PURE__ */ Bt("<div></div>"), zu = /* @__PURE__ */ mt("<circle></circle>"), Ou = /* @__PURE__ */ mt("<circle></circle>"), $u = /* @__PURE__ */ mt('<text dominant-baseline="middle"> </text>'), qu = /* @__PURE__ */ mt("<g></g>"), Vu = /* @__PURE__ */ mt("<g><!></g>"), Yu = /* @__PURE__ */ mt("<g></g>"), Wu = /* @__PURE__ */ Bt('<div><canvas></canvas> <div><!></div> <svg role="none"><!><!><!><!></svg> <!> <!></div>');
|
|
6075
|
-
function
|
|
6075
|
+
function ea(e, t) {
|
|
6076
6076
|
Ft(t, !0);
|
|
6077
|
-
let r = M(t, "data", 19, () => ({ x: new Float32Array(), y: new Float32Array(), category: null })), n = M(t, "categoryCount", 3, 1), i = M(t, "categoryColors", 3, null), a = M(t, "width", 3, 800), o = M(t, "height", 3, 800), l = M(t, "pixelRatio", 3, 2), s = M(t, "theme", 3, null), u = M(t, "config", 3, null), f = M(t, "totalCount", 3, null), h = M(t, "maxDensity", 3, null), p = M(t, "labels", 3, null), d = M(t, "queryClusterLabels", 3, null), v = M(t, "tooltip", 7, null), g = M(t, "selection", 7, null), y = M(t, "querySelection", 3, null), _ = M(t, "rangeSelection", 7, null), w = M(t, "defaultViewportState", 3, null), x = M(t, "viewportState", 7, null), R = M(t, "customTooltip", 3, null), E = M(t, "customOverlay", 3, null), T = M(t, "onViewportState", 3, null), B = M(t, "onTooltip", 3, null),
|
|
6077
|
+
let r = M(t, "data", 19, () => ({ x: new Float32Array(), y: new Float32Array(), category: null })), n = M(t, "categoryCount", 3, 1), i = M(t, "categoryColors", 3, null), a = M(t, "width", 3, 800), o = M(t, "height", 3, 800), l = M(t, "pixelRatio", 3, 2), s = M(t, "theme", 3, null), u = M(t, "config", 3, null), f = M(t, "totalCount", 3, null), h = M(t, "maxDensity", 3, null), p = M(t, "labels", 3, null), d = M(t, "queryClusterLabels", 3, null), v = M(t, "tooltip", 7, null), g = M(t, "selection", 7, null), y = M(t, "querySelection", 3, null), _ = M(t, "rangeSelection", 7, null), w = M(t, "defaultViewportState", 3, null), x = M(t, "viewportState", 7, null), R = M(t, "customTooltip", 3, null), E = M(t, "customOverlay", 3, null), T = M(t, "onViewportState", 3, null), B = M(t, "onTooltip", 3, null), G = M(t, "onSelection", 3, null), N = M(t, "onRangeSelection", 3, null), V = M(t, "cache", 3, null), $ = /* @__PURE__ */ k(() => u()?.colorScheme ?? "light"), j = /* @__PURE__ */ k(() => Gu(s(), c($))), ve = /* @__PURE__ */ k(() => i() ?? Hr(n())), te = /* @__PURE__ */ k(() => x() ?? w() ?? { x: 0, y: 0, scale: 1 }), ae = /* @__PURE__ */ k(() => new zr(c(te), a(), o())), re = /* @__PURE__ */ k(() => c(ae).pixelLocationFunction()), P = /* @__PURE__ */ k(() => c(ae).coordinateAtPixelFunction()), le = /* @__PURE__ */ ie(!1);
|
|
6078
6078
|
function fe(b, A) {
|
|
6079
6079
|
return b.x == A.x && b.y == A.y && b.category == A.category && b.text == A.text;
|
|
6080
6080
|
}
|
|
6081
|
-
let
|
|
6081
|
+
let Ne = /* @__PURE__ */ k(() => g()?.length == 1 && v() != null && fe(g()[0], v()));
|
|
6082
6082
|
function ye(b) {
|
|
6083
6083
|
Mt(x(), b) || (x(b), T()?.(b));
|
|
6084
6084
|
}
|
|
@@ -6086,12 +6086,12 @@ function Ko(e, t) {
|
|
|
6086
6086
|
Mt(v(), b) || (v(b), B()?.(b));
|
|
6087
6087
|
}
|
|
6088
6088
|
function se(b) {
|
|
6089
|
-
Mt(g(), b) || (g(b),
|
|
6089
|
+
Mt(g(), b) || (g(b), G()?.(b));
|
|
6090
6090
|
}
|
|
6091
6091
|
function Ae(b) {
|
|
6092
|
-
Mt(_(), b) || (_(b),
|
|
6092
|
+
Mt(_(), b) || (_(b), N()?.(b));
|
|
6093
6093
|
}
|
|
6094
|
-
let Ee = /* @__PURE__ */ ie(
|
|
6094
|
+
let Ee = /* @__PURE__ */ ie(Nt([])), Z = /* @__PURE__ */ ie(null), ot = /* @__PURE__ */ ie("none"), xt = /* @__PURE__ */ k(() => a() * l()), D = /* @__PURE__ */ k(() => o() * l()), C = /* @__PURE__ */ ie(null), I = /* @__PURE__ */ ie(null), H = /* @__PURE__ */ ie(null), J = /* @__PURE__ */ k(() => u()?.minimumDensity ?? 1 / 16), Se = /* @__PURE__ */ k(() => u()?.pointSize ?? null), me = /* @__PURE__ */ k(() => u()?.mode ?? "points"), at = /* @__PURE__ */ k(() => u()?.autoLabelEnabled), Dt = /* @__PURE__ */ k(() => u()?.downsampleMaxPoints ?? 4e6), Ct = /* @__PURE__ */ k(() => u()?.downsampleDensityWeight ?? 5), _t = /* @__PURE__ */ k(() => Lu(h() ?? (f() ?? r().x.length) / 4, c(J), c(te).scale, c(xt), c(D), l(), c(Se))), Qr = /* @__PURE__ */ k(() => c(_t).pointSize), qn = !0;
|
|
6095
6095
|
yr(() => {
|
|
6096
6096
|
c(I)?.setProps({
|
|
6097
6097
|
mode: c(me),
|
|
@@ -6111,12 +6111,12 @@ function Ko(e, t) {
|
|
|
6111
6111
|
...c(_t)
|
|
6112
6112
|
}) && (ra(), (c(at) !== !1 || p() != null) && qn && c(I) != null && r().x != null && r().x.length > 0 && w() != null && (qn = !1, da(w())));
|
|
6113
6113
|
});
|
|
6114
|
-
function
|
|
6115
|
-
Zr = null, !(!c(
|
|
6114
|
+
function Vn() {
|
|
6115
|
+
Zr = null, !(!c(C) || !c(I)) && (c(C).width = c(I).props.width, c(C).height = c(I).props.height, c(C).style.width = `${c(I).props.width / l()}px`, c(C).style.height = `${c(I).props.height / l()}px`, c(I).render());
|
|
6116
6116
|
}
|
|
6117
6117
|
let Zr = null;
|
|
6118
6118
|
function ra() {
|
|
6119
|
-
Zr == null && (Zr = requestAnimationFrame(
|
|
6119
|
+
Zr == null && (Zr = requestAnimationFrame(Vn));
|
|
6120
6120
|
}
|
|
6121
6121
|
function na(b) {
|
|
6122
6122
|
let A;
|
|
@@ -6136,17 +6136,17 @@ function Ko(e, t) {
|
|
|
6136
6136
|
console.error("Could not get WebGPU canvas context");
|
|
6137
6137
|
return;
|
|
6138
6138
|
}
|
|
6139
|
-
let
|
|
6140
|
-
if (!
|
|
6139
|
+
let U = await navigator.gpu.requestAdapter();
|
|
6140
|
+
if (!U) {
|
|
6141
6141
|
console.error("Could not request WebGPU adapter");
|
|
6142
6142
|
return;
|
|
6143
6143
|
}
|
|
6144
|
-
let
|
|
6145
|
-
|
|
6144
|
+
let L = 512 * 1048576, O = 512 * 1048576;
|
|
6145
|
+
L = Math.min(L, U.limits.maxBufferSize), O = Math.min(O, U.limits.maxStorageBufferBindingSize);
|
|
6146
6146
|
let K = {
|
|
6147
|
-
requiredLimits: { maxBufferSize:
|
|
6147
|
+
requiredLimits: { maxBufferSize: L, maxStorageBufferBindingSize: O },
|
|
6148
6148
|
requiredFeatures: ["shader-f16"]
|
|
6149
|
-
}, ne = await
|
|
6149
|
+
}, ne = await U.requestDevice(K);
|
|
6150
6150
|
ne.lost.then((he) => {
|
|
6151
6151
|
console.info(`WebGPU device was lost: ${he.message}`), he.reason != "destroyed" && (c(I)?.destroy(), z(I, null), A());
|
|
6152
6152
|
});
|
|
@@ -6158,24 +6158,28 @@ function Ko(e, t) {
|
|
|
6158
6158
|
function oa(b) {
|
|
6159
6159
|
b != null && x() == null && ye(b);
|
|
6160
6160
|
}
|
|
6161
|
-
yr(() => oa(w())),
|
|
6162
|
-
|
|
6161
|
+
yr(() => oa(w())), Ln(() => {
|
|
6162
|
+
if (c(C) == null)
|
|
6163
|
+
return;
|
|
6164
|
+
Ui() ? ia(c(C)) : (na(c(C)), z(H, "WebGPU is unavailable. Falling back to WebGL."));
|
|
6165
|
+
let b = c(C).toDataURL;
|
|
6166
|
+
c(C).toDataURL = (...A) => (Vn(), b.apply(c(C), A));
|
|
6163
6167
|
}), kl(() => {
|
|
6164
6168
|
c(I)?.destroy(), z(I, null);
|
|
6165
6169
|
});
|
|
6166
6170
|
function Xt(b) {
|
|
6167
|
-
let A = c(
|
|
6171
|
+
let A = c(C)?.getBoundingClientRect() ?? { left: 0, top: 0 };
|
|
6168
6172
|
return { x: b.clientX - A.left, y: b.clientY - A.top };
|
|
6169
6173
|
}
|
|
6170
6174
|
function aa(b) {
|
|
6171
6175
|
b.preventDefault();
|
|
6172
|
-
let { x: A, y: S } = Xt(b),
|
|
6173
|
-
la(
|
|
6176
|
+
let { x: A, y: S } = Xt(b), U = Math.exp(-b.deltaY / 200);
|
|
6177
|
+
la(U, { x: A, y: S });
|
|
6174
6178
|
}
|
|
6175
6179
|
function la(b, A) {
|
|
6176
|
-
let { x: S, y:
|
|
6180
|
+
let { x: S, y: U, scale: L } = c(te);
|
|
6177
6181
|
de(null);
|
|
6178
|
-
let O = (w()?.scale ?? 1) * 100, K = (w()?.scale ?? 1) * 0.01, ne = Math.min(O, Math.max(K,
|
|
6182
|
+
let O = (w()?.scale ?? 1) * 100, K = (w()?.scale ?? 1) * 0.01, ne = Math.min(O, Math.max(K, L * b)), ee = c(C).getBoundingClientRect(), he = Math.max(ee.width, ee.height), lt = (A.x - ee.width / 2) / he * 2, Fe = (ee.height / 2 - A.y) / he * 2, Me = S + lt / L - lt / ne, wt = U + Fe / L - Fe / ne;
|
|
6179
6183
|
ye({ x: Me, y: wt, scale: ne });
|
|
6180
6184
|
}
|
|
6181
6185
|
function sa(b) {
|
|
@@ -6186,10 +6190,10 @@ function Ko(e, t) {
|
|
|
6186
6190
|
switch (A) {
|
|
6187
6191
|
case "marquee":
|
|
6188
6192
|
return {
|
|
6189
|
-
move: (
|
|
6193
|
+
move: (U) => {
|
|
6190
6194
|
if (de(null), c(I) == null)
|
|
6191
6195
|
return;
|
|
6192
|
-
let
|
|
6196
|
+
let L = Xt(U), O = c(P)(S.x, S.y), K = c(P)(L.x, L.y);
|
|
6193
6197
|
Ae({
|
|
6194
6198
|
xMin: Math.min(O.x, K.x),
|
|
6195
6199
|
yMin: Math.min(O.y, K.y),
|
|
@@ -6199,18 +6203,18 @@ function Ko(e, t) {
|
|
|
6199
6203
|
}
|
|
6200
6204
|
};
|
|
6201
6205
|
case "lasso": {
|
|
6202
|
-
let
|
|
6206
|
+
let U = [c(P)(S.x, S.y)];
|
|
6203
6207
|
return {
|
|
6204
|
-
move: (
|
|
6208
|
+
move: (L) => {
|
|
6205
6209
|
if (de(null), c(I) == null)
|
|
6206
6210
|
return;
|
|
6207
|
-
let O = Xt(
|
|
6208
|
-
|
|
6211
|
+
let O = Xt(L);
|
|
6212
|
+
U = [...U, c(P)(O.x, O.y)], U.length >= 3 && Ae(Nu(U, 24));
|
|
6209
6213
|
}
|
|
6210
6214
|
};
|
|
6211
6215
|
}
|
|
6212
6216
|
case "pan": {
|
|
6213
|
-
let
|
|
6217
|
+
let U = c(P)(0, 0), L = c(P)(1, 1), O = U.x - L.x, K = U.y - L.y, ne = c(te).x, ee = c(te).y;
|
|
6214
6218
|
return {
|
|
6215
6219
|
move: (he) => {
|
|
6216
6220
|
ye({
|
|
@@ -6227,11 +6231,11 @@ function Ko(e, t) {
|
|
|
6227
6231
|
if (_() != null)
|
|
6228
6232
|
Ae(null);
|
|
6229
6233
|
else {
|
|
6230
|
-
const A = await
|
|
6234
|
+
const A = await Yn(Xt(b));
|
|
6231
6235
|
if (A == null)
|
|
6232
6236
|
se([]), de(null);
|
|
6233
6237
|
else if (b.modifiers.shift || b.modifiers.ctrl || b.modifiers.meta) {
|
|
6234
|
-
let S = g()?.findIndex((
|
|
6238
|
+
let S = g()?.findIndex((U) => U.x == A.x && U.y == A.y && U.category == A.category);
|
|
6235
6239
|
g() == null || S == null || S < 0 ? (se([...g() ?? [], A]), de(A)) : (se([
|
|
6236
6240
|
...g().slice(0, S),
|
|
6237
6241
|
...g().slice(S + 1)
|
|
@@ -6247,7 +6251,7 @@ function Ko(e, t) {
|
|
|
6247
6251
|
let S = c(re)(g()[0].x, g()[0].y);
|
|
6248
6252
|
A != null && Hl(A, S) < 10 && de(g()[0]);
|
|
6249
6253
|
} else
|
|
6250
|
-
de(await
|
|
6254
|
+
de(await Yn(A));
|
|
6251
6255
|
},
|
|
6252
6256
|
() => v() != null
|
|
6253
6257
|
);
|
|
@@ -6257,17 +6261,17 @@ function Ko(e, t) {
|
|
|
6257
6261
|
yr(() => {
|
|
6258
6262
|
c(le) && Jr(null);
|
|
6259
6263
|
});
|
|
6260
|
-
async function
|
|
6264
|
+
async function Yn(b) {
|
|
6261
6265
|
if (c(I) == null || b == null || y() == null)
|
|
6262
6266
|
return null;
|
|
6263
|
-
let { x: A, y: S } = c(P)(b.x, b.y),
|
|
6264
|
-
return await y()(A, S,
|
|
6267
|
+
let { x: A, y: S } = c(P)(b.x, b.y), U = Math.abs(c(P)(b.x + 1, b.y).x - A);
|
|
6268
|
+
return await y()(A, S, U);
|
|
6265
6269
|
}
|
|
6266
|
-
async function
|
|
6267
|
-
let
|
|
6270
|
+
async function Wn(b, A, S, U = 5e-3) {
|
|
6271
|
+
let L = await b.densityMap(1e3, 1e3, A, S), O = await Tu(L.data, L.width, L.height), K = [];
|
|
6268
6272
|
for (let ee = 0; ee < O.length; ee++) {
|
|
6269
|
-
let he = O[ee], lt =
|
|
6270
|
-
let ze =
|
|
6273
|
+
let he = O[ee], lt = L.coordinateAtPixel(he.meanX, he.meanY), Fe = he.boundaryRectApproximation.map(([Me, wt, en, tn]) => {
|
|
6274
|
+
let ze = L.coordinateAtPixel(Me, wt), Ut = L.coordinateAtPixel(en, tn);
|
|
6271
6275
|
return {
|
|
6272
6276
|
xMin: Math.min(ze.x, Ut.x),
|
|
6273
6277
|
xMax: Math.max(ze.x, Ut.x),
|
|
@@ -6284,7 +6288,7 @@ function Ko(e, t) {
|
|
|
6284
6288
|
});
|
|
6285
6289
|
}
|
|
6286
6290
|
let ne = K.reduce((ee, he) => Math.max(ee, he.sumDensity), 0);
|
|
6287
|
-
return K.filter((ee) => ee.sumDensity / ne >
|
|
6291
|
+
return K.filter((ee) => ee.sumDensity / ne > U);
|
|
6288
6292
|
}
|
|
6289
6293
|
async function ca(b) {
|
|
6290
6294
|
if (c(I) == null || d() == null)
|
|
@@ -6298,41 +6302,41 @@ function Ko(e, t) {
|
|
|
6298
6302
|
}
|
|
6299
6303
|
});
|
|
6300
6304
|
if (V() != null) {
|
|
6301
|
-
let
|
|
6302
|
-
if (
|
|
6303
|
-
return
|
|
6305
|
+
let L = await V().get(A);
|
|
6306
|
+
if (L != null)
|
|
6307
|
+
return L;
|
|
6304
6308
|
}
|
|
6305
|
-
let S = await
|
|
6306
|
-
if (S = S.concat(await
|
|
6307
|
-
let
|
|
6309
|
+
let S = await Wn(c(I), 10, b, u()?.autoLabelDensityThreshold ?? 5e-3);
|
|
6310
|
+
if (S = S.concat(await Wn(c(I), 5, b)), d()) {
|
|
6311
|
+
let L = await d()(S.map((O) => O.rects));
|
|
6308
6312
|
for (let O = 0; O < S.length; O++)
|
|
6309
|
-
S[O].label =
|
|
6313
|
+
S[O].label = L[O];
|
|
6310
6314
|
}
|
|
6311
|
-
let
|
|
6312
|
-
x:
|
|
6313
|
-
y:
|
|
6314
|
-
text:
|
|
6315
|
-
priority:
|
|
6316
|
-
level:
|
|
6315
|
+
let U = S.filter((L) => L.label != null && L.label.length > 0).map((L) => ({
|
|
6316
|
+
x: L.x,
|
|
6317
|
+
y: L.y,
|
|
6318
|
+
text: L.label,
|
|
6319
|
+
priority: L.sumDensity,
|
|
6320
|
+
level: L.bandwidth == 10 ? 0 : 1
|
|
6317
6321
|
}));
|
|
6318
|
-
return V() != null && await V().set(A,
|
|
6322
|
+
return V() != null && await V().set(A, U), U;
|
|
6319
6323
|
}
|
|
6320
6324
|
async function da(b) {
|
|
6321
6325
|
let A = new zr(b, 1e3, 1e3);
|
|
6322
6326
|
if (c(I) != null)
|
|
6323
6327
|
if (p() != null)
|
|
6324
|
-
z(Ee, await
|
|
6328
|
+
z(Ee, await Ti(A.scale(), p(), c(j).fontFamily), !0);
|
|
6325
6329
|
else {
|
|
6326
6330
|
z(Z, "Generating labels...");
|
|
6327
6331
|
let S = await ca(b);
|
|
6328
|
-
z(Ee, await
|
|
6332
|
+
z(Ee, await Ti(A.scale(), S, c(j).fontFamily), !0), z(Z, null);
|
|
6329
6333
|
}
|
|
6330
6334
|
}
|
|
6331
6335
|
class ha {
|
|
6332
6336
|
content;
|
|
6333
6337
|
constructor(A, S) {
|
|
6334
|
-
let
|
|
6335
|
-
this.content =
|
|
6338
|
+
let U = document.createElement("div");
|
|
6339
|
+
this.content = U, this.update(S), A.appendChild(U);
|
|
6336
6340
|
}
|
|
6337
6341
|
update(A) {
|
|
6338
6342
|
let S = this.content;
|
|
@@ -6340,24 +6344,24 @@ function Ko(e, t) {
|
|
|
6340
6344
|
}
|
|
6341
6345
|
}
|
|
6342
6346
|
var Tr = Wu();
|
|
6343
|
-
let
|
|
6347
|
+
let Xn;
|
|
6344
6348
|
var Kr = ge(Tr);
|
|
6345
|
-
W(Kr, "", {}, { position: "absolute", top: "0", left: "0" }), _n(Kr, (b) => z(
|
|
6349
|
+
W(Kr, "", {}, { position: "absolute", top: "0", left: "0" }), _n(Kr, (b) => z(C, b), () => c(C));
|
|
6346
6350
|
var Er = oe(Kr, 2);
|
|
6347
|
-
let
|
|
6351
|
+
let jn;
|
|
6348
6352
|
var pa = ge(Er);
|
|
6349
6353
|
{
|
|
6350
6354
|
var va = (b) => {
|
|
6351
|
-
const A = /* @__PURE__ */
|
|
6355
|
+
const A = /* @__PURE__ */ k(() => Go(E())), S = /* @__PURE__ */ k(() => ({
|
|
6352
6356
|
location: c(re),
|
|
6353
6357
|
width: a(),
|
|
6354
6358
|
height: o()
|
|
6355
6359
|
}));
|
|
6356
|
-
var
|
|
6357
|
-
|
|
6360
|
+
var U = cr(), L = Ht(U);
|
|
6361
|
+
Nl(L, () => c(A), (O) => {
|
|
6358
6362
|
var K = Iu();
|
|
6359
|
-
qe(K, (ne, ee) => c(A)?.(ne, ee), () =>
|
|
6360
|
-
}), ue(b,
|
|
6363
|
+
qe(K, (ne, ee) => c(A)?.(ne, ee), () => Lo(E(), { proxy: c(S) })), ue(O, K);
|
|
6364
|
+
}), ue(b, U);
|
|
6361
6365
|
};
|
|
6362
6366
|
Pe(pa, (b) => {
|
|
6363
6367
|
E() && b(va);
|
|
@@ -6366,19 +6370,19 @@ function Ko(e, t) {
|
|
|
6366
6370
|
ce(Er);
|
|
6367
6371
|
var bt = oe(Er, 2);
|
|
6368
6372
|
W(bt, "", {}, { position: "absolute", left: "0", top: "0" });
|
|
6369
|
-
var
|
|
6373
|
+
var Hn = ge(bt);
|
|
6370
6374
|
{
|
|
6371
6375
|
var ga = (b) => {
|
|
6372
|
-
const A = /* @__PURE__ */
|
|
6376
|
+
const A = /* @__PURE__ */ k(() => {
|
|
6373
6377
|
const { x: K, y: ne } = c(re)(v().x, v().y);
|
|
6374
6378
|
return { x: K, y: ne };
|
|
6375
|
-
}), S = /* @__PURE__ */
|
|
6376
|
-
var
|
|
6379
|
+
}), S = /* @__PURE__ */ k(() => Math.max(3, c(Qr) / l()) + 1);
|
|
6380
|
+
var U = cr(), L = Ht(U);
|
|
6377
6381
|
{
|
|
6378
6382
|
var O = (K) => {
|
|
6379
6383
|
var ne = zu();
|
|
6380
6384
|
let ee;
|
|
6381
|
-
|
|
6385
|
+
Le(() => {
|
|
6382
6386
|
F(ne, "cx", c(A).x), F(ne, "cy", c(A).y), F(ne, "r", c(S)), ee = W(ne, "", ee, {
|
|
6383
6387
|
stroke: c($) == "light" ? "#000" : "#fff",
|
|
6384
6388
|
"stroke-width": 1,
|
|
@@ -6386,31 +6390,31 @@ function Ko(e, t) {
|
|
|
6386
6390
|
});
|
|
6387
6391
|
}), ue(K, ne);
|
|
6388
6392
|
};
|
|
6389
|
-
Pe(
|
|
6393
|
+
Pe(L, (K) => {
|
|
6390
6394
|
isFinite(c(A).x) && isFinite(c(A).y) && isFinite(c(S)) && K(O);
|
|
6391
6395
|
});
|
|
6392
6396
|
}
|
|
6393
|
-
ue(b,
|
|
6397
|
+
ue(b, U);
|
|
6394
6398
|
};
|
|
6395
|
-
Pe(
|
|
6399
|
+
Pe(Hn, (b) => {
|
|
6396
6400
|
v() != null && c(I) != null && b(ga);
|
|
6397
6401
|
});
|
|
6398
6402
|
}
|
|
6399
|
-
var
|
|
6403
|
+
var Qn = oe(Hn);
|
|
6400
6404
|
{
|
|
6401
6405
|
var ya = (b) => {
|
|
6402
6406
|
var A = cr(), S = Ht(A);
|
|
6403
|
-
on(S, 17, g, nn, (
|
|
6404
|
-
const O = /* @__PURE__ */
|
|
6405
|
-
const { x: Fe, y: Me } = c(re)(c(
|
|
6407
|
+
on(S, 17, g, nn, (U, L) => {
|
|
6408
|
+
const O = /* @__PURE__ */ k(() => {
|
|
6409
|
+
const { x: Fe, y: Me } = c(re)(c(L).x, c(L).y);
|
|
6406
6410
|
return { x: Fe, y: Me };
|
|
6407
|
-
}), K = /* @__PURE__ */
|
|
6411
|
+
}), K = /* @__PURE__ */ k(() => c(L).category != null ? c(ve)[c(L).category] : c(ve)[0]), ne = /* @__PURE__ */ k(() => Math.max(3, c(Qr) / l()) + 1);
|
|
6408
6412
|
var ee = cr(), he = Ht(ee);
|
|
6409
6413
|
{
|
|
6410
6414
|
var lt = (Fe) => {
|
|
6411
6415
|
var Me = Ou();
|
|
6412
6416
|
let wt;
|
|
6413
|
-
|
|
6417
|
+
Le(() => {
|
|
6414
6418
|
F(Me, "cx", c(O).x), F(Me, "cy", c(O).y), F(Me, "r", c(ne)), wt = W(Me, "", wt, {
|
|
6415
6419
|
stroke: c($) == "light" ? "#000" : "#fff",
|
|
6416
6420
|
"stroke-width": 2,
|
|
@@ -6422,31 +6426,31 @@ function Ko(e, t) {
|
|
|
6422
6426
|
isFinite(c(O).x) && isFinite(c(O).y) && isFinite(c(ne)) && Fe(lt);
|
|
6423
6427
|
});
|
|
6424
6428
|
}
|
|
6425
|
-
ue(
|
|
6429
|
+
ue(U, ee);
|
|
6426
6430
|
}), ue(b, A);
|
|
6427
6431
|
};
|
|
6428
|
-
Pe(
|
|
6432
|
+
Pe(Qn, (b) => {
|
|
6429
6433
|
g() != null && c(I) != null && b(ya);
|
|
6430
6434
|
});
|
|
6431
6435
|
}
|
|
6432
|
-
var
|
|
6436
|
+
var Zn = oe(Qn);
|
|
6433
6437
|
{
|
|
6434
6438
|
var ma = (b) => {
|
|
6435
6439
|
var A = Yu();
|
|
6436
|
-
on(A, 21, () => c(Ee), nn, (S,
|
|
6437
|
-
const
|
|
6438
|
-
`)), O = /* @__PURE__ */
|
|
6440
|
+
on(A, 21, () => c(Ee), nn, (S, U) => {
|
|
6441
|
+
const L = /* @__PURE__ */ k(() => c(U).text.split(`
|
|
6442
|
+
`)), O = /* @__PURE__ */ k(() => c(re)(c(U).coordinate.x, c(U).coordinate.y)), K = /* @__PURE__ */ k(() => c(ae).scale()), ne = /* @__PURE__ */ k(() => c(U).placement != null && c(U).placement.minScale <= c(K) && c(K) <= c(U).placement.maxScale);
|
|
6439
6443
|
var ee = Vu(), he = ge(ee);
|
|
6440
6444
|
{
|
|
6441
6445
|
var lt = (Fe) => {
|
|
6442
6446
|
var Me = qu();
|
|
6443
|
-
on(Me, 21, () => c(
|
|
6447
|
+
on(Me, 21, () => c(L), nn, (wt, en, tn) => {
|
|
6444
6448
|
var ze = $u();
|
|
6445
6449
|
F(ze, "x", 0);
|
|
6446
6450
|
let Ut;
|
|
6447
6451
|
var Ma = ge(ze, !0);
|
|
6448
|
-
ce(ze),
|
|
6449
|
-
F(ze, "y", (tn - (c(
|
|
6452
|
+
ce(ze), Le(() => {
|
|
6453
|
+
F(ze, "y", (tn - (c(L).length - 1) / 2) * c(U).fontSize), F(ze, "font-size", c(U).fontSize), Ut = W(ze, "", Ut, {
|
|
6450
6454
|
"paint-order": "stroke",
|
|
6451
6455
|
"stroke-width": "4",
|
|
6452
6456
|
"stroke-linejoin": "round",
|
|
@@ -6466,19 +6470,19 @@ function Ko(e, t) {
|
|
|
6466
6470
|
c(ne) && Fe(lt);
|
|
6467
6471
|
});
|
|
6468
6472
|
}
|
|
6469
|
-
ce(ee),
|
|
6473
|
+
ce(ee), Le(() => F(ee, "transform", `translate(${c(O).x ?? ""},${c(O).y ?? ""})`)), ue(S, ee);
|
|
6470
6474
|
}), ce(A), ue(b, A);
|
|
6471
6475
|
};
|
|
6472
|
-
Pe(
|
|
6476
|
+
Pe(Zn, (b) => {
|
|
6473
6477
|
b(ma);
|
|
6474
6478
|
});
|
|
6475
6479
|
}
|
|
6476
|
-
var xa = oe(
|
|
6480
|
+
var xa = oe(Zn);
|
|
6477
6481
|
{
|
|
6478
6482
|
var _a = (b) => {
|
|
6479
6483
|
var A = cr(), S = Ht(A);
|
|
6480
6484
|
{
|
|
6481
|
-
var
|
|
6485
|
+
var U = (O) => {
|
|
6482
6486
|
ts(O, {
|
|
6483
6487
|
get value() {
|
|
6484
6488
|
return _();
|
|
@@ -6487,7 +6491,7 @@ function Ko(e, t) {
|
|
|
6487
6491
|
return c(re);
|
|
6488
6492
|
}
|
|
6489
6493
|
});
|
|
6490
|
-
},
|
|
6494
|
+
}, L = (O) => {
|
|
6491
6495
|
Xl(O, {
|
|
6492
6496
|
get value() {
|
|
6493
6497
|
return _();
|
|
@@ -6505,7 +6509,7 @@ function Ko(e, t) {
|
|
|
6505
6509
|
});
|
|
6506
6510
|
};
|
|
6507
6511
|
Pe(S, (O) => {
|
|
6508
|
-
_() instanceof Array ? O(
|
|
6512
|
+
_() instanceof Array ? O(U) : O(L, !1);
|
|
6509
6513
|
});
|
|
6510
6514
|
}
|
|
6511
6515
|
ue(b, A);
|
|
@@ -6515,12 +6519,12 @@ function Ko(e, t) {
|
|
|
6515
6519
|
});
|
|
6516
6520
|
}
|
|
6517
6521
|
ce(bt), qe(bt, (b, A) => je?.(b, A), () => ({ click: ua, drag: sa, hover: fa }));
|
|
6518
|
-
var
|
|
6522
|
+
var Jn = oe(bt, 2);
|
|
6519
6523
|
{
|
|
6520
6524
|
var ba = (b) => {
|
|
6521
|
-
const A = /* @__PURE__ */
|
|
6525
|
+
const A = /* @__PURE__ */ k(() => c(re)(v().x, v().y));
|
|
6522
6526
|
{
|
|
6523
|
-
let S = /* @__PURE__ */
|
|
6527
|
+
let S = /* @__PURE__ */ k(() => Math.max(3, c(Qr) / l())), U = /* @__PURE__ */ k(() => R() ?? {
|
|
6524
6528
|
class: ha,
|
|
6525
6529
|
props: {
|
|
6526
6530
|
colorScheme: c($),
|
|
@@ -6532,13 +6536,13 @@ function Ko(e, t) {
|
|
|
6532
6536
|
return c(A);
|
|
6533
6537
|
},
|
|
6534
6538
|
get allowInteraction() {
|
|
6535
|
-
return c(
|
|
6539
|
+
return c(Ne);
|
|
6536
6540
|
},
|
|
6537
6541
|
get targetHeight() {
|
|
6538
6542
|
return c(S);
|
|
6539
6543
|
},
|
|
6540
6544
|
get customTooltip() {
|
|
6541
|
-
return c(
|
|
6545
|
+
return c(U);
|
|
6542
6546
|
},
|
|
6543
6547
|
get tooltip() {
|
|
6544
6548
|
return v();
|
|
@@ -6546,15 +6550,15 @@ function Ko(e, t) {
|
|
|
6546
6550
|
});
|
|
6547
6551
|
}
|
|
6548
6552
|
};
|
|
6549
|
-
Pe(
|
|
6553
|
+
Pe(Jn, (b) => {
|
|
6550
6554
|
v() != null && c(I) != null && b(ba);
|
|
6551
6555
|
});
|
|
6552
6556
|
}
|
|
6553
|
-
var wa = oe(
|
|
6557
|
+
var wa = oe(Jn, 2);
|
|
6554
6558
|
{
|
|
6555
6559
|
var Aa = (b) => {
|
|
6556
6560
|
{
|
|
6557
|
-
let A = /* @__PURE__ */
|
|
6561
|
+
let A = /* @__PURE__ */ k(() => c(Z) ?? c(H)), S = /* @__PURE__ */ k(() => 1 / (c(re)(1, 0).x - c(re)(0, 0).x));
|
|
6558
6562
|
fs(b, {
|
|
6559
6563
|
get resolvedTheme() {
|
|
6560
6564
|
return c(j);
|
|
@@ -6571,7 +6575,7 @@ function Ko(e, t) {
|
|
|
6571
6575
|
get selectionMode() {
|
|
6572
6576
|
return c(ot);
|
|
6573
6577
|
},
|
|
6574
|
-
onSelectionMode: (
|
|
6578
|
+
onSelectionMode: (U) => z(ot, U, !0)
|
|
6575
6579
|
});
|
|
6576
6580
|
}
|
|
6577
6581
|
};
|
|
@@ -6579,12 +6583,12 @@ function Ko(e, t) {
|
|
|
6579
6583
|
c(j).statusBar && b(Aa);
|
|
6580
6584
|
});
|
|
6581
6585
|
}
|
|
6582
|
-
ce(Tr),
|
|
6583
|
-
|
|
6586
|
+
ce(Tr), Le(() => {
|
|
6587
|
+
Xn = W(Tr, "", Xn, {
|
|
6584
6588
|
width: `${a() ?? ""}px`,
|
|
6585
6589
|
height: `${o() ?? ""}px`,
|
|
6586
6590
|
position: "relative"
|
|
6587
|
-
}),
|
|
6591
|
+
}), jn = W(Er, "", jn, {
|
|
6588
6592
|
width: `${a() ?? ""}px`,
|
|
6589
6593
|
height: `${o() ?? ""}px`,
|
|
6590
6594
|
position: "absolute",
|
|
@@ -6593,11 +6597,11 @@ function Ko(e, t) {
|
|
|
6593
6597
|
}), F(bt, "width", a()), F(bt, "height", o());
|
|
6594
6598
|
}), Tl("wheel", bt, aa), ue(e, Tr), Pt();
|
|
6595
6599
|
}
|
|
6596
|
-
function
|
|
6600
|
+
function ta(e, t, r = 0, n = e.length - 1, i = Xu) {
|
|
6597
6601
|
for (; n > r; ) {
|
|
6598
6602
|
if (n - r > 600) {
|
|
6599
6603
|
const s = n - r + 1, u = t - r + 1, f = Math.log(s), h = 0.5 * Math.exp(2 * f / 3), p = 0.5 * Math.sqrt(f * h * (s - h) / s) * (u - s / 2 < 0 ? -1 : 1), d = Math.max(r, Math.floor(t - u * h / s + p)), v = Math.min(n, Math.floor(t + (s - u) * h / s + p));
|
|
6600
|
-
|
|
6604
|
+
ta(e, t, d, v, i);
|
|
6601
6605
|
}
|
|
6602
6606
|
const a = e[t];
|
|
6603
6607
|
let o = r, l = n;
|
|
@@ -6615,14 +6619,14 @@ function hr(e, t, r) {
|
|
|
6615
6619
|
function Xu(e, t) {
|
|
6616
6620
|
return e < t ? -1 : e > t ? 1 : 0;
|
|
6617
6621
|
}
|
|
6618
|
-
function
|
|
6622
|
+
function Bi(e) {
|
|
6619
6623
|
let t = new Float32Array(e), r = Math.floor(e.length / 2);
|
|
6620
|
-
return
|
|
6624
|
+
return ta(t, r), t[r];
|
|
6621
6625
|
}
|
|
6622
6626
|
function ju(e) {
|
|
6623
6627
|
return e.length == 0 ? 0 : e.reduce((t, r) => t + r, 0) / e.length;
|
|
6624
6628
|
}
|
|
6625
|
-
function
|
|
6629
|
+
function Di(e) {
|
|
6626
6630
|
if (e.length == 0)
|
|
6627
6631
|
return 0;
|
|
6628
6632
|
let t = ju(e);
|
|
@@ -6642,30 +6646,30 @@ function Hu(e, t, r, n = 0, i = 0) {
|
|
|
6642
6646
|
}
|
|
6643
6647
|
function Qu(e, t) {
|
|
6644
6648
|
Ft(t, !0);
|
|
6645
|
-
let r = M(t, "tooltip", 3, null), n = M(t, "selection", 3, null), i = M(t, "rangeSelection", 3, null), a = M(t, "categoryColors", 3, null), o = M(t, "width", 3, null), l = M(t, "height", 3, null), s = M(t, "pixelRatio", 3, null), u = M(t, "theme", 3, null), f = M(t, "config", 3, null), h = M(t, "viewportState", 3, null), p = M(t, "labels", 3, null), d = M(t, "customTooltip", 3, null), v = M(t, "customOverlay", 3, null), g = M(t, "querySelection", 3, null), y = M(t, "queryClusterLabels", 3, null), _ = M(t, "onViewportState", 3, null), w = M(t, "onTooltip", 3, null), x = M(t, "onSelection", 3, null), R = M(t, "onRangeSelection", 3, null), E = M(t, "cache", 3, null), T = /* @__PURE__ */
|
|
6646
|
-
function B(
|
|
6647
|
-
let
|
|
6648
|
-
|
|
6649
|
-
let V =
|
|
6649
|
+
let r = M(t, "tooltip", 3, null), n = M(t, "selection", 3, null), i = M(t, "rangeSelection", 3, null), a = M(t, "categoryColors", 3, null), o = M(t, "width", 3, null), l = M(t, "height", 3, null), s = M(t, "pixelRatio", 3, null), u = M(t, "theme", 3, null), f = M(t, "config", 3, null), h = M(t, "viewportState", 3, null), p = M(t, "labels", 3, null), d = M(t, "customTooltip", 3, null), v = M(t, "customOverlay", 3, null), g = M(t, "querySelection", 3, null), y = M(t, "queryClusterLabels", 3, null), _ = M(t, "onViewportState", 3, null), w = M(t, "onTooltip", 3, null), x = M(t, "onSelection", 3, null), R = M(t, "onRangeSelection", 3, null), E = M(t, "cache", 3, null), T = /* @__PURE__ */ k(() => B(t.data));
|
|
6650
|
+
function B(G) {
|
|
6651
|
+
let N = 1;
|
|
6652
|
+
G.category != null && (N = G.category.reduce((P, le) => Math.max(P, le), 0) + 1);
|
|
6653
|
+
let V = Bi(G.x), $ = Bi(G.y), j = Di(G.x), ve = Di(G.y), te = 1 / (Math.max(j, ve, 1e-3) * 3), ae = 0.1 / te, re = Hu(G.x, G.y, ae, V, $);
|
|
6650
6654
|
return {
|
|
6651
|
-
count:
|
|
6652
|
-
categoryCount:
|
|
6655
|
+
count: G.x.length,
|
|
6656
|
+
categoryCount: N,
|
|
6653
6657
|
maxDensity: re,
|
|
6654
6658
|
defaultViewportState: { x: V, y: $, scale: te * 0.95 }
|
|
6655
6659
|
};
|
|
6656
6660
|
}
|
|
6657
6661
|
{
|
|
6658
|
-
let
|
|
6662
|
+
let G = /* @__PURE__ */ k(() => o() ?? 800), N = /* @__PURE__ */ k(() => l() ?? 800), V = /* @__PURE__ */ k(() => s() ?? 2), $ = /* @__PURE__ */ k(() => ({
|
|
6659
6663
|
x: t.data.x,
|
|
6660
6664
|
y: t.data.y,
|
|
6661
6665
|
category: t.data.category ?? null
|
|
6662
6666
|
}));
|
|
6663
|
-
|
|
6667
|
+
ea(e, {
|
|
6664
6668
|
get width() {
|
|
6665
|
-
return c(
|
|
6669
|
+
return c(G);
|
|
6666
6670
|
},
|
|
6667
6671
|
get height() {
|
|
6668
|
-
return c(
|
|
6672
|
+
return c(N);
|
|
6669
6673
|
},
|
|
6670
6674
|
get pixelRatio() {
|
|
6671
6675
|
return c(V);
|
|
@@ -6744,7 +6748,7 @@ class of {
|
|
|
6744
6748
|
component;
|
|
6745
6749
|
currentProps;
|
|
6746
6750
|
constructor(t, r) {
|
|
6747
|
-
this.currentProps = { ...r }, this.component =
|
|
6751
|
+
this.currentProps = { ...r }, this.component = Co({ component: Qu, target: t, props: r });
|
|
6748
6752
|
}
|
|
6749
6753
|
update(t) {
|
|
6750
6754
|
let r = {};
|
|
@@ -6756,7 +6760,7 @@ class of {
|
|
|
6756
6760
|
this.component.$destroy();
|
|
6757
6761
|
}
|
|
6758
6762
|
}
|
|
6759
|
-
function
|
|
6763
|
+
function Ci(e, t) {
|
|
6760
6764
|
if (t.length == 0)
|
|
6761
6765
|
return m.literal(!1);
|
|
6762
6766
|
if (e.identifier != null) {
|
|
@@ -6798,7 +6802,7 @@ function Ju(e, t) {
|
|
|
6798
6802
|
if (t instanceof Array) {
|
|
6799
6803
|
if (t.length < 3)
|
|
6800
6804
|
return m.literal(!1);
|
|
6801
|
-
let r =
|
|
6805
|
+
let r = No(t);
|
|
6802
6806
|
return m.and(
|
|
6803
6807
|
m.isBetween(m.column(e.x), [r.xMin, r.xMax]),
|
|
6804
6808
|
m.isBetween(m.column(e.y), [r.yMin, r.yMax]),
|
|
@@ -6900,7 +6904,7 @@ class ef {
|
|
|
6900
6904
|
}
|
|
6901
6905
|
function tf(e, t) {
|
|
6902
6906
|
Ft(t, !0);
|
|
6903
|
-
let r = M(t, "coordinator", 19, Ra), n = M(t, "category", 3, null), i = M(t, "text", 3, null), a = M(t, "identifier", 3, null), o = M(t, "filter", 3, null), l = M(t, "categoryColors", 3, null), s = M(t, "tooltip", 3, null), u = M(t, "additionalFields", 3, null), f = M(t, "selection", 3, null), h = M(t, "rangeSelection", 3, null), p = M(t, "rangeSelectionValue", 3, null), d = M(t, "width", 3, null), v = M(t, "height", 3, null), g = M(t, "pixelRatio", 3, null), y = M(t, "config", 3, null), _ = M(t, "theme", 3, null), w = M(t, "viewportState", 3, null), x = M(t, "labels", 3, null), R = M(t, "customTooltip", 3, null), E = M(t, "customOverlay", 3, null), T = M(t, "onViewportState", 3, null), B = M(t, "onTooltip", 3, null),
|
|
6907
|
+
let r = M(t, "coordinator", 19, Ra), n = M(t, "category", 3, null), i = M(t, "text", 3, null), a = M(t, "identifier", 3, null), o = M(t, "filter", 3, null), l = M(t, "categoryColors", 3, null), s = M(t, "tooltip", 3, null), u = M(t, "additionalFields", 3, null), f = M(t, "selection", 3, null), h = M(t, "rangeSelection", 3, null), p = M(t, "rangeSelectionValue", 3, null), d = M(t, "width", 3, null), v = M(t, "height", 3, null), g = M(t, "pixelRatio", 3, null), y = M(t, "config", 3, null), _ = M(t, "theme", 3, null), w = M(t, "viewportState", 3, null), x = M(t, "labels", 3, null), R = M(t, "customTooltip", 3, null), E = M(t, "customOverlay", 3, null), T = M(t, "onViewportState", 3, null), B = M(t, "onTooltip", 3, null), G = M(t, "onSelection", 3, null), N = M(t, "onRangeSelection", 3, null), V = M(t, "cache", 3, null), $ = /* @__PURE__ */ ie(new Float32Array()), j = /* @__PURE__ */ ie(new Float32Array()), ve = /* @__PURE__ */ ie(null), te = /* @__PURE__ */ ie(1), ae = /* @__PURE__ */ ie(1), re = /* @__PURE__ */ ie(1), P = /* @__PURE__ */ ie(null), le = /* @__PURE__ */ ie(null), fe = /* @__PURE__ */ ie(null), Ne = /* @__PURE__ */ ie(null), ye = /* @__PURE__ */ ie(null);
|
|
6904
6908
|
st(() => {
|
|
6905
6909
|
let D = {
|
|
6906
6910
|
coordinator: r(),
|
|
@@ -6910,7 +6914,7 @@ function tf(e, t) {
|
|
|
6910
6914
|
y: t.y,
|
|
6911
6915
|
category: n()
|
|
6912
6916
|
}
|
|
6913
|
-
},
|
|
6917
|
+
}, C = null, I = !1;
|
|
6914
6918
|
async function H() {
|
|
6915
6919
|
let J = D.source, Se = await Ku(D.coordinator, J);
|
|
6916
6920
|
if (I)
|
|
@@ -6920,7 +6924,7 @@ function tf(e, t) {
|
|
|
6920
6924
|
x: Se.centerX,
|
|
6921
6925
|
y: Se.centerY,
|
|
6922
6926
|
scale: me
|
|
6923
|
-
}), z(ae, Se.totalCount), z(re, Se.maxDensity), z(te, Se.categoryCount),
|
|
6927
|
+
}), z(ae, Se.totalCount), z(re, Se.maxDensity), z(te, Se.categoryCount), C = Ta({
|
|
6924
6928
|
coordinator: D.coordinator,
|
|
6925
6929
|
selection: o() ?? void 0,
|
|
6926
6930
|
query: (at) => m.Query.from(J.table).select({
|
|
@@ -6932,22 +6936,22 @@ function tf(e, t) {
|
|
|
6932
6936
|
let Dt = at.getChild("x").toArray(), Ct = at.getChild("y").toArray(), _t = at.getChild("c")?.toArray() ?? null;
|
|
6933
6937
|
Dt != null && !(Dt instanceof Float32Array) && (Dt = new Float32Array(Dt)), Ct != null && !(Ct instanceof Float32Array) && (Ct = new Float32Array(Ct)), _t != null && !(_t instanceof Uint8Array) && (_t = new Uint8Array(_t)), z($, Dt), z(j, Ct), z(ve, _t), de(null), se(null);
|
|
6934
6938
|
}
|
|
6935
|
-
}),
|
|
6939
|
+
}), C.reset = () => {
|
|
6936
6940
|
Ae();
|
|
6937
|
-
}, z(ye,
|
|
6941
|
+
}, z(ye, C);
|
|
6938
6942
|
}
|
|
6939
6943
|
return H(), () => {
|
|
6940
|
-
z(ye, null), I = !0,
|
|
6944
|
+
z(ye, null), I = !0, C?.destroy();
|
|
6941
6945
|
};
|
|
6942
6946
|
}), st(() => {
|
|
6943
|
-
if (
|
|
6947
|
+
if (Kn(s())) {
|
|
6944
6948
|
let D = c(ye);
|
|
6945
6949
|
if (D == null)
|
|
6946
6950
|
return;
|
|
6947
|
-
let
|
|
6948
|
-
z(le,
|
|
6951
|
+
let C = s();
|
|
6952
|
+
z(le, C.valueFor(D) ?? null);
|
|
6949
6953
|
let I = () => {
|
|
6950
|
-
z(le,
|
|
6954
|
+
z(le, C.valueFor(D) ?? null);
|
|
6951
6955
|
};
|
|
6952
6956
|
return st(() => {
|
|
6953
6957
|
let H = c(le), J = {
|
|
@@ -6956,14 +6960,14 @@ function tf(e, t) {
|
|
|
6956
6960
|
category: n(),
|
|
6957
6961
|
identifier: a()
|
|
6958
6962
|
};
|
|
6959
|
-
|
|
6963
|
+
C.update({
|
|
6960
6964
|
source: D,
|
|
6961
6965
|
clients: (/* @__PURE__ */ new Set()).add(D),
|
|
6962
|
-
predicate: H != null ?
|
|
6966
|
+
predicate: H != null ? Ci(J, [H]) : null,
|
|
6963
6967
|
value: H
|
|
6964
6968
|
});
|
|
6965
|
-
}),
|
|
6966
|
-
|
|
6969
|
+
}), C.addEventListener("value", I), () => {
|
|
6970
|
+
C.removeEventListener("value", I), C.update({
|
|
6967
6971
|
source: D,
|
|
6968
6972
|
clients: (/* @__PURE__ */ new Set()).add(D),
|
|
6969
6973
|
value: null,
|
|
@@ -6976,8 +6980,8 @@ function tf(e, t) {
|
|
|
6976
6980
|
if (c(le)?.identifier == s())
|
|
6977
6981
|
return;
|
|
6978
6982
|
let D = !1;
|
|
6979
|
-
return ot([s()]).then((
|
|
6980
|
-
D || (
|
|
6983
|
+
return ot([s()]).then((C) => {
|
|
6984
|
+
D || (C.length > 0 ? z(le, C[0]) : z(le, null));
|
|
6981
6985
|
}), () => {
|
|
6982
6986
|
D = !0;
|
|
6983
6987
|
};
|
|
@@ -6987,14 +6991,14 @@ function tf(e, t) {
|
|
|
6987
6991
|
Mt(s(), D) || (z(le, D), B()?.(D));
|
|
6988
6992
|
}
|
|
6989
6993
|
st(() => {
|
|
6990
|
-
if (
|
|
6994
|
+
if (Kn(f())) {
|
|
6991
6995
|
let D = c(ye);
|
|
6992
6996
|
if (D == null)
|
|
6993
6997
|
return;
|
|
6994
|
-
let
|
|
6995
|
-
z(fe,
|
|
6998
|
+
let C = f();
|
|
6999
|
+
z(fe, C.valueFor(D) ?? null);
|
|
6996
7000
|
let I = () => {
|
|
6997
|
-
z(fe,
|
|
7001
|
+
z(fe, C.valueFor(D) ?? null);
|
|
6998
7002
|
};
|
|
6999
7003
|
return st(() => {
|
|
7000
7004
|
let H = c(fe), J = {
|
|
@@ -7003,14 +7007,14 @@ function tf(e, t) {
|
|
|
7003
7007
|
category: n(),
|
|
7004
7008
|
identifier: a()
|
|
7005
7009
|
};
|
|
7006
|
-
|
|
7010
|
+
C.update({
|
|
7007
7011
|
source: D,
|
|
7008
7012
|
clients: (/* @__PURE__ */ new Set()).add(D),
|
|
7009
|
-
predicate: H != null ?
|
|
7013
|
+
predicate: H != null ? Ci(J, H) : null,
|
|
7010
7014
|
value: H
|
|
7011
7015
|
});
|
|
7012
|
-
}),
|
|
7013
|
-
|
|
7016
|
+
}), C.addEventListener("value", I), () => {
|
|
7017
|
+
C.removeEventListener("value", I), C.update({
|
|
7014
7018
|
source: D,
|
|
7015
7019
|
clients: (/* @__PURE__ */ new Set()).add(D),
|
|
7016
7020
|
value: null,
|
|
@@ -7025,32 +7029,32 @@ function tf(e, t) {
|
|
|
7025
7029
|
z(fe, f());
|
|
7026
7030
|
else {
|
|
7027
7031
|
let D = !1;
|
|
7028
|
-
return ot(f()).then((
|
|
7029
|
-
D || z(fe,
|
|
7032
|
+
return ot(f()).then((C) => {
|
|
7033
|
+
D || z(fe, C);
|
|
7030
7034
|
}), () => {
|
|
7031
7035
|
D = !0;
|
|
7032
7036
|
};
|
|
7033
7037
|
}
|
|
7034
7038
|
});
|
|
7035
7039
|
function se(D) {
|
|
7036
|
-
Mt(f(), D) || (z(fe, D),
|
|
7040
|
+
Mt(f(), D) || (z(fe, D), G()?.(D));
|
|
7037
7041
|
}
|
|
7038
7042
|
st(() => {
|
|
7039
7043
|
let D = c(ye);
|
|
7040
7044
|
if (D == null)
|
|
7041
7045
|
return;
|
|
7042
|
-
let
|
|
7043
|
-
if (
|
|
7046
|
+
let C = h();
|
|
7047
|
+
if (C != null)
|
|
7044
7048
|
return st(() => {
|
|
7045
|
-
let I = c(
|
|
7049
|
+
let I = c(Ne), H = { x: t.x, y: t.y }, J = {
|
|
7046
7050
|
source: D,
|
|
7047
7051
|
clients: (/* @__PURE__ */ new Set()).add(D),
|
|
7048
7052
|
predicate: I != null ? Ju(H, I) : null,
|
|
7049
7053
|
value: I
|
|
7050
7054
|
};
|
|
7051
|
-
|
|
7055
|
+
C.update(J), C.activate(J);
|
|
7052
7056
|
}), () => {
|
|
7053
|
-
|
|
7057
|
+
C.update({
|
|
7054
7058
|
source: D,
|
|
7055
7059
|
clients: (/* @__PURE__ */ new Set()).add(D),
|
|
7056
7060
|
value: null,
|
|
@@ -7058,12 +7062,12 @@ function tf(e, t) {
|
|
|
7058
7062
|
});
|
|
7059
7063
|
};
|
|
7060
7064
|
}), st(() => {
|
|
7061
|
-
Mt(Yt(() => c(
|
|
7065
|
+
Mt(Yt(() => c(Ne)), p()) || z(Ne, p());
|
|
7062
7066
|
});
|
|
7063
7067
|
function Ae() {
|
|
7064
|
-
se(null), de(null),
|
|
7068
|
+
se(null), de(null), N()?.(null), z(Ne, null);
|
|
7065
7069
|
}
|
|
7066
|
-
let Ee = /* @__PURE__ */
|
|
7070
|
+
let Ee = /* @__PURE__ */ k(() => new ef(r(), {
|
|
7067
7071
|
table: t.table,
|
|
7068
7072
|
x: t.x,
|
|
7069
7073
|
y: t.y,
|
|
@@ -7072,8 +7076,8 @@ function tf(e, t) {
|
|
|
7072
7076
|
identifier: a(),
|
|
7073
7077
|
additionalFields: u()
|
|
7074
7078
|
}));
|
|
7075
|
-
async function Z(D,
|
|
7076
|
-
return await c(Ee).queryClosestPoint(o()?.predicate?.(c(ye)), D,
|
|
7079
|
+
async function Z(D, C, I) {
|
|
7080
|
+
return await c(Ee).queryClosestPoint(o()?.predicate?.(c(ye)), D, C, I);
|
|
7077
7081
|
}
|
|
7078
7082
|
async function ot(D) {
|
|
7079
7083
|
return await c(Ee).queryPoints(D);
|
|
@@ -7081,7 +7085,7 @@ function tf(e, t) {
|
|
|
7081
7085
|
async function xt(D) {
|
|
7082
7086
|
if (i() == null)
|
|
7083
7087
|
return D.map(() => null);
|
|
7084
|
-
let
|
|
7088
|
+
let C = await Su({
|
|
7085
7089
|
regions: D,
|
|
7086
7090
|
stopWords: y()?.autoLabelStopWords ?? null
|
|
7087
7091
|
}), I = 0, H = 1e4, J = null;
|
|
@@ -7095,27 +7099,27 @@ function tf(e, t) {
|
|
|
7095
7099
|
y: me.getChild("y").toArray(),
|
|
7096
7100
|
text: me.getChild("text").toArray()
|
|
7097
7101
|
};
|
|
7098
|
-
if (J != null && await J, J = Pu(
|
|
7102
|
+
if (J != null && await J, J = Pu(C, at), me.getChild("text").length < H)
|
|
7099
7103
|
break;
|
|
7100
7104
|
I += H;
|
|
7101
7105
|
}
|
|
7102
7106
|
J != null && await J;
|
|
7103
|
-
let Se = await Bu(
|
|
7104
|
-
return await Fu(
|
|
7107
|
+
let Se = await Bu(C);
|
|
7108
|
+
return await Fu(C), Se.map((me) => me.length == 0 ? null : me.length > 2 ? me.slice(0, 2).join("-") + `-
|
|
7105
7109
|
` + me.slice(2).join("-") : me.join("-"));
|
|
7106
7110
|
}
|
|
7107
7111
|
{
|
|
7108
|
-
let D = /* @__PURE__ */
|
|
7112
|
+
let D = /* @__PURE__ */ k(() => d() ?? 800), C = /* @__PURE__ */ k(() => v() ?? 800), I = /* @__PURE__ */ k(() => g() ?? 2), H = /* @__PURE__ */ k(() => ({
|
|
7109
7113
|
x: c($),
|
|
7110
7114
|
y: c(j),
|
|
7111
7115
|
category: c(ve)
|
|
7112
7116
|
}));
|
|
7113
|
-
|
|
7117
|
+
ea(e, {
|
|
7114
7118
|
get width() {
|
|
7115
7119
|
return c(D);
|
|
7116
7120
|
},
|
|
7117
7121
|
get height() {
|
|
7118
|
-
return c(
|
|
7122
|
+
return c(C);
|
|
7119
7123
|
},
|
|
7120
7124
|
get pixelRatio() {
|
|
7121
7125
|
return c(I);
|
|
@@ -7170,10 +7174,10 @@ function tf(e, t) {
|
|
|
7170
7174
|
return T();
|
|
7171
7175
|
},
|
|
7172
7176
|
get rangeSelection() {
|
|
7173
|
-
return c(
|
|
7177
|
+
return c(Ne);
|
|
7174
7178
|
},
|
|
7175
7179
|
onRangeSelection: (J) => {
|
|
7176
|
-
z(
|
|
7180
|
+
z(Ne, J), N()?.(J);
|
|
7177
7181
|
},
|
|
7178
7182
|
get cache() {
|
|
7179
7183
|
return V();
|
|
@@ -7186,7 +7190,7 @@ class af {
|
|
|
7186
7190
|
component;
|
|
7187
7191
|
currentProps;
|
|
7188
7192
|
constructor(t, r) {
|
|
7189
|
-
this.currentProps = { ...r }, this.component =
|
|
7193
|
+
this.currentProps = { ...r }, this.component = Co({ component: tf, target: t, props: r });
|
|
7190
7194
|
}
|
|
7191
7195
|
update(t) {
|
|
7192
7196
|
let r = {};
|
|
@@ -7199,7 +7203,7 @@ class af {
|
|
|
7199
7203
|
}
|
|
7200
7204
|
}
|
|
7201
7205
|
function lf() {
|
|
7202
|
-
return
|
|
7206
|
+
return Ui() ? 32 : 4;
|
|
7203
7207
|
}
|
|
7204
7208
|
export {
|
|
7205
7209
|
Hr as Z,
|