@pie-players/pie-section-tools-toolbar 0.2.7 → 0.2.8
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.
|
@@ -2,24 +2,16 @@ var qi = Object.defineProperty;
|
|
|
2
2
|
var fn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var k = (e, t, r) =>
|
|
5
|
+
var Ui = (e, t, r) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var k = (e, t, r) => Ui(e, typeof t != "symbol" ? t + "" : t, r), wr = (e, t, r) => t.has(e) || fn("Cannot " + r);
|
|
7
7
|
var a = (e, t, r) => (wr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), w = (e, t, r) => t.has(e) ? fn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), b = (e, t, r, n) => (wr(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), B = (e, t, r) => (wr(e, t, "access private method"), r);
|
|
8
|
-
import "@pie-players/pie-tool-calculator";
|
|
9
|
-
import "@pie-players/pie-tool-graph";
|
|
10
|
-
import "@pie-players/pie-tool-periodic-table";
|
|
11
|
-
import "@pie-players/pie-tool-protractor";
|
|
12
|
-
import "@pie-players/pie-tool-line-reader";
|
|
13
|
-
import "@pie-players/pie-tool-magnifier";
|
|
14
|
-
import "@pie-players/pie-tool-ruler";
|
|
15
|
-
const zi = "5";
|
|
16
8
|
var $n;
|
|
17
|
-
typeof window < "u" && (($n = window.__svelte ?? (window.__svelte = {})).v ?? ($n.v = /* @__PURE__ */ new Set())).add(
|
|
18
|
-
const
|
|
19
|
-
var En = Array.isArray,
|
|
20
|
-
const
|
|
9
|
+
typeof window < "u" && (($n = window.__svelte ?? (window.__svelte = {})).v ?? ($n.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const Yi = 1, zi = 2, Gi = 16, Ki = 1, Wi = 2, Ir = "[", cr = "[!", Vr = "]", dt = {}, D = /* @__PURE__ */ Symbol(), xn = "http://www.w3.org/1999/xhtml", xr = !1;
|
|
11
|
+
var En = Array.isArray, Xi = Array.prototype.indexOf, Tt = Array.prototype.includes, dr = Array.from, or = Object.keys, lr = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, Ji = Object.getOwnPropertyDescriptors, Qi = Object.prototype, es = Array.prototype, Tn = Object.getPrototypeOf, an = Object.isExtensible;
|
|
12
|
+
const ts = () => {
|
|
21
13
|
};
|
|
22
|
-
function
|
|
14
|
+
function rs(e) {
|
|
23
15
|
for (var t = 0; t < e.length; t++)
|
|
24
16
|
e[t]();
|
|
25
17
|
}
|
|
@@ -29,56 +21,56 @@ function An() {
|
|
|
29
21
|
});
|
|
30
22
|
return { promise: r, resolve: e, reject: t };
|
|
31
23
|
}
|
|
32
|
-
const F = 2, Zt = 4, hr = 8, Sn = 1 << 24, He = 16, ye = 32, Xe = 64, Er = 128, oe = 512,
|
|
24
|
+
const F = 2, Zt = 4, hr = 8, Sn = 1 << 24, He = 16, ye = 32, Xe = 64, Er = 128, oe = 512, O = 1024, I = 2048, we = 4096, ee = 8192, Ie = 16384, Lt = 32768, At = 65536, un = 1 << 17, Cn = 1 << 18, pt = 1 << 19, ns = 1 << 20, Ye = 1 << 25, ht = 65536, Tr = 1 << 21, Hr = 1 << 22, ze = 1 << 23, rr = /* @__PURE__ */ Symbol("$state"), is = /* @__PURE__ */ Symbol("legacy props"), ss = /* @__PURE__ */ Symbol(""), et = new class extends Error {
|
|
33
25
|
constructor() {
|
|
34
26
|
super(...arguments);
|
|
35
27
|
k(this, "name", "StaleReactionError");
|
|
36
28
|
k(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
37
29
|
}
|
|
38
|
-
}(),
|
|
30
|
+
}(), os = (
|
|
39
31
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
40
32
|
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
41
33
|
), vr = 3, Mt = 8;
|
|
42
34
|
function Rn(e) {
|
|
43
35
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
44
36
|
}
|
|
45
|
-
function
|
|
37
|
+
function ls() {
|
|
46
38
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
47
39
|
}
|
|
48
|
-
function
|
|
40
|
+
function fs(e, t, r) {
|
|
49
41
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
50
42
|
}
|
|
51
|
-
function
|
|
43
|
+
function as(e) {
|
|
52
44
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
53
45
|
}
|
|
54
|
-
function
|
|
46
|
+
function us() {
|
|
55
47
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
56
48
|
}
|
|
57
|
-
function
|
|
49
|
+
function cs(e) {
|
|
58
50
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
59
51
|
}
|
|
60
|
-
function
|
|
52
|
+
function ds() {
|
|
61
53
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
62
54
|
}
|
|
63
|
-
function
|
|
55
|
+
function hs() {
|
|
64
56
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
65
57
|
}
|
|
66
|
-
function
|
|
58
|
+
function vs() {
|
|
67
59
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
68
60
|
}
|
|
69
|
-
function
|
|
61
|
+
function ps() {
|
|
70
62
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
71
63
|
}
|
|
72
|
-
function
|
|
64
|
+
function _s() {
|
|
73
65
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
74
66
|
}
|
|
75
|
-
function
|
|
67
|
+
function gs() {
|
|
76
68
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
77
69
|
}
|
|
78
70
|
function Kt(e) {
|
|
79
71
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
80
72
|
}
|
|
81
|
-
function
|
|
73
|
+
function bs() {
|
|
82
74
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
83
75
|
}
|
|
84
76
|
let x = !1;
|
|
@@ -101,7 +93,7 @@ function Jt(e) {
|
|
|
101
93
|
E = e;
|
|
102
94
|
}
|
|
103
95
|
}
|
|
104
|
-
function
|
|
96
|
+
function ms(e = 1) {
|
|
105
97
|
if (x) {
|
|
106
98
|
for (var t = e, r = E; t--; )
|
|
107
99
|
r = /** @type {TemplateNode} */
|
|
@@ -140,19 +132,19 @@ function kn(e) {
|
|
|
140
132
|
function Nn(e) {
|
|
141
133
|
return e === this.v;
|
|
142
134
|
}
|
|
143
|
-
function
|
|
135
|
+
function ws(e, t) {
|
|
144
136
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
145
137
|
}
|
|
146
138
|
function Ln(e) {
|
|
147
|
-
return !
|
|
139
|
+
return !ws(e, this.v);
|
|
148
140
|
}
|
|
149
|
-
let
|
|
141
|
+
let ys = !1, z = null;
|
|
150
142
|
function Ct(e) {
|
|
151
|
-
|
|
143
|
+
z = e;
|
|
152
144
|
}
|
|
153
145
|
function Mn(e, t = !1, r) {
|
|
154
|
-
|
|
155
|
-
p:
|
|
146
|
+
z = {
|
|
147
|
+
p: z,
|
|
156
148
|
i: !1,
|
|
157
149
|
c: null,
|
|
158
150
|
e: null,
|
|
@@ -164,14 +156,14 @@ function Mn(e, t = !1, r) {
|
|
|
164
156
|
function On(e) {
|
|
165
157
|
var t = (
|
|
166
158
|
/** @type {ComponentContext} */
|
|
167
|
-
|
|
159
|
+
z
|
|
168
160
|
), r = t.e;
|
|
169
161
|
if (r !== null) {
|
|
170
162
|
t.e = null;
|
|
171
163
|
for (var n of r)
|
|
172
164
|
si(n);
|
|
173
165
|
}
|
|
174
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
166
|
+
return e !== void 0 && (t.x = e), t.i = !0, z = t.p, e ?? /** @type {T} */
|
|
175
167
|
{};
|
|
176
168
|
}
|
|
177
169
|
function Pn() {
|
|
@@ -180,7 +172,7 @@ function Pn() {
|
|
|
180
172
|
let tt = [];
|
|
181
173
|
function Dn() {
|
|
182
174
|
var e = tt;
|
|
183
|
-
tt = [],
|
|
175
|
+
tt = [], rs(e);
|
|
184
176
|
}
|
|
185
177
|
function at(e) {
|
|
186
178
|
if (tt.length === 0 && !Ht) {
|
|
@@ -191,14 +183,14 @@ function at(e) {
|
|
|
191
183
|
}
|
|
192
184
|
tt.push(e);
|
|
193
185
|
}
|
|
194
|
-
function
|
|
186
|
+
function $s() {
|
|
195
187
|
for (; tt.length > 0; )
|
|
196
188
|
Dn();
|
|
197
189
|
}
|
|
198
190
|
function Fn(e) {
|
|
199
191
|
var t = $;
|
|
200
192
|
if (t === null)
|
|
201
|
-
return y.f |=
|
|
193
|
+
return y.f |= ze, e;
|
|
202
194
|
if ((t.f & Lt) === 0 && (t.f & Zt) === 0)
|
|
203
195
|
throw e;
|
|
204
196
|
Rt(e, t);
|
|
@@ -219,12 +211,12 @@ function Rt(e, t) {
|
|
|
219
211
|
}
|
|
220
212
|
throw e;
|
|
221
213
|
}
|
|
222
|
-
const
|
|
214
|
+
const xs = -7169;
|
|
223
215
|
function L(e, t) {
|
|
224
|
-
e.f = e.f &
|
|
216
|
+
e.f = e.f & xs | t;
|
|
225
217
|
}
|
|
226
218
|
function Br(e) {
|
|
227
|
-
(e.f & oe) !== 0 || e.deps === null ? L(e,
|
|
219
|
+
(e.f & oe) !== 0 || e.deps === null ? L(e, O) : L(e, we);
|
|
228
220
|
}
|
|
229
221
|
function In(e) {
|
|
230
222
|
if (e !== null)
|
|
@@ -235,11 +227,11 @@ function In(e) {
|
|
|
235
227
|
));
|
|
236
228
|
}
|
|
237
229
|
function Vn(e, t, r) {
|
|
238
|
-
(e.f & I) !== 0 ? t.add(e) : (e.f & we) !== 0 && r.add(e), In(e.deps), L(e,
|
|
230
|
+
(e.f & I) !== 0 ? t.add(e) : (e.f & we) !== 0 && r.add(e), In(e.deps), L(e, O);
|
|
239
231
|
}
|
|
240
232
|
const Qt = /* @__PURE__ */ new Set();
|
|
241
|
-
let S = null, pe = null,
|
|
242
|
-
var bt, mt, it, wt, qt,
|
|
233
|
+
let S = null, pe = null, U = [], pr = null, Ar = !1, Ht = !1;
|
|
234
|
+
var bt, mt, it, wt, qt, Ut, st, Me, yt, Ce, Sr, Cr, Hn;
|
|
243
235
|
const Wr = class Wr {
|
|
244
236
|
constructor() {
|
|
245
237
|
w(this, Ce);
|
|
@@ -285,7 +277,7 @@ const Wr = class Wr {
|
|
|
285
277
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
286
278
|
* @type {Set<Effect>}
|
|
287
279
|
*/
|
|
288
|
-
w(this,
|
|
280
|
+
w(this, Ut, /* @__PURE__ */ new Set());
|
|
289
281
|
/**
|
|
290
282
|
* Deferred effects that are MAYBE_DIRTY
|
|
291
283
|
* @type {Set<Effect>}
|
|
@@ -332,7 +324,7 @@ const Wr = class Wr {
|
|
|
332
324
|
* @param {Effect[]} root_effects
|
|
333
325
|
*/
|
|
334
326
|
process(t) {
|
|
335
|
-
|
|
327
|
+
U = [], this.apply();
|
|
336
328
|
var r = [], n = [];
|
|
337
329
|
for (const i of t)
|
|
338
330
|
B(this, Ce, Sr).call(this, i, r, n);
|
|
@@ -353,7 +345,7 @@ const Wr = class Wr {
|
|
|
353
345
|
* @param {any} value
|
|
354
346
|
*/
|
|
355
347
|
capture(t, r) {
|
|
356
|
-
r !== D && !this.previous.has(t) && this.previous.set(t, r), (t.f &
|
|
348
|
+
r !== D && !this.previous.has(t) && this.previous.set(t, r), (t.f & ze) === 0 && (this.current.set(t, t.v), pe?.set(t, t.v));
|
|
357
349
|
}
|
|
358
350
|
activate() {
|
|
359
351
|
S = this, this.apply();
|
|
@@ -362,7 +354,7 @@ const Wr = class Wr {
|
|
|
362
354
|
S === this && (S = null, pe = null);
|
|
363
355
|
}
|
|
364
356
|
flush() {
|
|
365
|
-
if (this.activate(),
|
|
357
|
+
if (this.activate(), U.length > 0) {
|
|
366
358
|
if (Bn(), S !== null && S !== this)
|
|
367
359
|
return;
|
|
368
360
|
} else a(this, it) === 0 && this.process([]);
|
|
@@ -385,11 +377,11 @@ const Wr = class Wr {
|
|
|
385
377
|
*/
|
|
386
378
|
decrement(t) {
|
|
387
379
|
b(this, it, a(this, it) - 1), t && b(this, wt, a(this, wt) - 1), !a(this, yt) && (b(this, yt, !0), at(() => {
|
|
388
|
-
b(this, yt, !1), this.is_deferred() ?
|
|
380
|
+
b(this, yt, !1), this.is_deferred() ? U.length > 0 && this.flush() : this.revive();
|
|
389
381
|
}));
|
|
390
382
|
}
|
|
391
383
|
revive() {
|
|
392
|
-
for (const t of a(this,
|
|
384
|
+
for (const t of a(this, Ut))
|
|
393
385
|
a(this, st).delete(t), L(t, I), ge(t);
|
|
394
386
|
for (const t of a(this, st))
|
|
395
387
|
L(t, we), ge(t);
|
|
@@ -418,7 +410,7 @@ const Wr = class Wr {
|
|
|
418
410
|
apply() {
|
|
419
411
|
}
|
|
420
412
|
};
|
|
421
|
-
bt = new WeakMap(), mt = new WeakMap(), it = new WeakMap(), wt = new WeakMap(), qt = new WeakMap(),
|
|
413
|
+
bt = new WeakMap(), mt = new WeakMap(), it = new WeakMap(), wt = new WeakMap(), qt = new WeakMap(), Ut = new WeakMap(), st = new WeakMap(), Me = new WeakMap(), yt = new WeakMap(), Ce = new WeakSet(), /**
|
|
422
414
|
* Traverse the effect tree, executing effects or stashing
|
|
423
415
|
* them for later execution as appropriate
|
|
424
416
|
* @param {Effect} root
|
|
@@ -426,11 +418,11 @@ bt = new WeakMap(), mt = new WeakMap(), it = new WeakMap(), wt = new WeakMap(),
|
|
|
426
418
|
* @param {Effect[]} render_effects
|
|
427
419
|
*/
|
|
428
420
|
Sr = function(t, r, n) {
|
|
429
|
-
t.f ^=
|
|
421
|
+
t.f ^= O;
|
|
430
422
|
for (var i = t.first, s = null; i !== null; ) {
|
|
431
|
-
var o = i.f, l = (o & (ye | Xe)) !== 0, f = l && (o &
|
|
423
|
+
var o = i.f, l = (o & (ye | Xe)) !== 0, f = l && (o & O) !== 0, u = f || (o & ee) !== 0 || a(this, Me).has(i);
|
|
432
424
|
if (!u && i.fn !== null) {
|
|
433
|
-
l ? i.f ^=
|
|
425
|
+
l ? i.f ^= O : s !== null && (o & (Zt | hr | Sn)) !== 0 ? s.b.defer_effect(i) : (o & Zt) !== 0 ? r.push(i) : Wt(i) && ((o & He) !== 0 && a(this, st).add(i), Nt(i));
|
|
434
426
|
var c = i.first;
|
|
435
427
|
if (c !== null) {
|
|
436
428
|
i = c;
|
|
@@ -452,7 +444,7 @@ Sr = function(t, r, n) {
|
|
|
452
444
|
*/
|
|
453
445
|
Cr = function(t) {
|
|
454
446
|
for (var r = 0; r < t.length; r += 1)
|
|
455
|
-
Vn(t[r], a(this,
|
|
447
|
+
Vn(t[r], a(this, Ut), a(this, st));
|
|
456
448
|
}, Hn = function() {
|
|
457
449
|
var i;
|
|
458
450
|
if (Qt.size > 1) {
|
|
@@ -476,18 +468,18 @@ Cr = function(t) {
|
|
|
476
468
|
continue;
|
|
477
469
|
const l = [...s.current.keys()].filter((f) => !this.current.has(f));
|
|
478
470
|
if (l.length > 0) {
|
|
479
|
-
var n =
|
|
480
|
-
|
|
471
|
+
var n = U;
|
|
472
|
+
U = [];
|
|
481
473
|
const f = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
482
474
|
for (const c of o)
|
|
483
475
|
Zn(c, l, f, u);
|
|
484
|
-
if (
|
|
476
|
+
if (U.length > 0) {
|
|
485
477
|
S = s, s.apply();
|
|
486
|
-
for (const c of
|
|
478
|
+
for (const c of U)
|
|
487
479
|
B(i = s, Ce, Sr).call(i, c, [], []);
|
|
488
480
|
s.deactivate();
|
|
489
481
|
}
|
|
490
|
-
|
|
482
|
+
U = n;
|
|
491
483
|
}
|
|
492
484
|
}
|
|
493
485
|
S = null, pe = t;
|
|
@@ -500,7 +492,7 @@ function Dt(e) {
|
|
|
500
492
|
Ht = !0;
|
|
501
493
|
try {
|
|
502
494
|
for (var r; ; ) {
|
|
503
|
-
if (
|
|
495
|
+
if ($s(), U.length === 0 && (S?.flush(), U.length === 0))
|
|
504
496
|
return pr = null, /** @type {T} */
|
|
505
497
|
r;
|
|
506
498
|
Bn();
|
|
@@ -513,21 +505,21 @@ function Bn() {
|
|
|
513
505
|
Ar = !0;
|
|
514
506
|
var e = null;
|
|
515
507
|
try {
|
|
516
|
-
for (var t = 0;
|
|
508
|
+
for (var t = 0; U.length > 0; ) {
|
|
517
509
|
var r = Ve.ensure();
|
|
518
510
|
if (t++ > 1e3) {
|
|
519
511
|
var n, i;
|
|
520
|
-
|
|
512
|
+
Es();
|
|
521
513
|
}
|
|
522
|
-
r.process(
|
|
514
|
+
r.process(U), Ge.clear();
|
|
523
515
|
}
|
|
524
516
|
} finally {
|
|
525
|
-
|
|
517
|
+
U = [], Ar = !1, pr = null;
|
|
526
518
|
}
|
|
527
519
|
}
|
|
528
|
-
function
|
|
520
|
+
function Es() {
|
|
529
521
|
try {
|
|
530
|
-
|
|
522
|
+
ds();
|
|
531
523
|
} catch (e) {
|
|
532
524
|
Rt(e, pr);
|
|
533
525
|
}
|
|
@@ -601,35 +593,35 @@ function ge(e) {
|
|
|
601
593
|
if (Ar && t === $ && (r & He) !== 0 && (r & Cn) === 0)
|
|
602
594
|
return;
|
|
603
595
|
if ((r & (Xe | ye)) !== 0) {
|
|
604
|
-
if ((r &
|
|
605
|
-
t.f ^=
|
|
596
|
+
if ((r & O) === 0) return;
|
|
597
|
+
t.f ^= O;
|
|
606
598
|
}
|
|
607
599
|
}
|
|
608
|
-
|
|
600
|
+
U.push(t);
|
|
609
601
|
}
|
|
610
602
|
function qn(e, t) {
|
|
611
|
-
if (!((e.f & ye) !== 0 && (e.f &
|
|
612
|
-
(e.f & I) !== 0 ? t.d.push(e) : (e.f & we) !== 0 && t.m.push(e), L(e,
|
|
603
|
+
if (!((e.f & ye) !== 0 && (e.f & O) !== 0)) {
|
|
604
|
+
(e.f & I) !== 0 ? t.d.push(e) : (e.f & we) !== 0 && t.m.push(e), L(e, O);
|
|
613
605
|
for (var r = e.first; r !== null; )
|
|
614
606
|
qn(r, t), r = r.next;
|
|
615
607
|
}
|
|
616
608
|
}
|
|
617
|
-
function
|
|
609
|
+
function Ts(e) {
|
|
618
610
|
let t = 0, r = vt(0), n;
|
|
619
611
|
return () => {
|
|
620
|
-
|
|
612
|
+
Ur() && (p(r), Yr(() => (t === 0 && (n = gr(() => e(() => Bt(r)))), t += 1, () => {
|
|
621
613
|
at(() => {
|
|
622
614
|
t -= 1, t === 0 && (n?.(), n = void 0, Bt(r));
|
|
623
615
|
});
|
|
624
616
|
})));
|
|
625
617
|
};
|
|
626
618
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
629
|
-
new
|
|
619
|
+
var As = At | pt;
|
|
620
|
+
function Ss(e, t, r) {
|
|
621
|
+
new Cs(e, t, r);
|
|
630
622
|
}
|
|
631
|
-
var ie,
|
|
632
|
-
class
|
|
623
|
+
var ie, Yt, Oe, ot, Ee, Te, J, Ae, Pe, lt, Ue, $t, xt, Et, De, ar, H, Un, Yn, Rr, nr, kr;
|
|
624
|
+
class Cs {
|
|
633
625
|
/**
|
|
634
626
|
* @param {TemplateNode} node
|
|
635
627
|
* @param {BoundaryProps} props
|
|
@@ -643,7 +635,7 @@ class Rs {
|
|
|
643
635
|
/** @type {TemplateNode} */
|
|
644
636
|
w(this, ie);
|
|
645
637
|
/** @type {TemplateNode | null} */
|
|
646
|
-
w(this,
|
|
638
|
+
w(this, Yt, x ? E : null);
|
|
647
639
|
/** @type {BoundaryProps} */
|
|
648
640
|
w(this, Oe);
|
|
649
641
|
/** @type {((anchor: Node) => void)} */
|
|
@@ -659,7 +651,7 @@ class Rs {
|
|
|
659
651
|
/** @type {DocumentFragment | null} */
|
|
660
652
|
w(this, Pe, null);
|
|
661
653
|
w(this, lt, 0);
|
|
662
|
-
w(this,
|
|
654
|
+
w(this, Ue, 0);
|
|
663
655
|
w(this, $t, !1);
|
|
664
656
|
/** @type {Set<Effect>} */
|
|
665
657
|
w(this, xt, /* @__PURE__ */ new Set());
|
|
@@ -673,7 +665,7 @@ class Rs {
|
|
|
673
665
|
* @type {Source<number> | null}
|
|
674
666
|
*/
|
|
675
667
|
w(this, De, null);
|
|
676
|
-
w(this, ar,
|
|
668
|
+
w(this, ar, Ts(() => (b(this, De, vt(a(this, lt))), () => {
|
|
677
669
|
b(this, De, null);
|
|
678
670
|
})));
|
|
679
671
|
b(this, ie, t), b(this, Oe, r), b(this, ot, (i) => {
|
|
@@ -683,16 +675,16 @@ class Rs {
|
|
|
683
675
|
);
|
|
684
676
|
s.b = this, s.f |= Er, n(i);
|
|
685
677
|
}), this.parent = /** @type {Effect} */
|
|
686
|
-
$.b, b(this, Ee,
|
|
678
|
+
$.b, b(this, Ee, zr(() => {
|
|
687
679
|
if (x) {
|
|
688
680
|
const i = (
|
|
689
681
|
/** @type {Comment} */
|
|
690
|
-
a(this,
|
|
682
|
+
a(this, Yt)
|
|
691
683
|
);
|
|
692
|
-
St(), i.data === cr ? B(this, H,
|
|
684
|
+
St(), i.data === cr ? B(this, H, Yn).call(this) : B(this, H, Un).call(this);
|
|
693
685
|
} else
|
|
694
686
|
B(this, H, Rr).call(this);
|
|
695
|
-
},
|
|
687
|
+
}, As)), x && b(this, ie, E);
|
|
696
688
|
}
|
|
697
689
|
/**
|
|
698
690
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
@@ -736,15 +728,15 @@ class Rs {
|
|
|
736
728
|
throw t;
|
|
737
729
|
a(this, Te) && (j(a(this, Te)), b(this, Te, null)), a(this, J) && (j(a(this, J)), b(this, J, null)), a(this, Ae) && (j(a(this, Ae)), b(this, Ae, null)), x && (Z(
|
|
738
730
|
/** @type {TemplateNode} */
|
|
739
|
-
a(this,
|
|
740
|
-
),
|
|
731
|
+
a(this, Yt)
|
|
732
|
+
), ms(), Z(fr()));
|
|
741
733
|
var i = !1, s = !1;
|
|
742
734
|
const o = () => {
|
|
743
735
|
if (i) {
|
|
744
|
-
|
|
736
|
+
bs();
|
|
745
737
|
return;
|
|
746
738
|
}
|
|
747
|
-
i = !0, s &&
|
|
739
|
+
i = !0, s && gs(), a(this, Ae) !== null && ut(a(this, Ae), () => {
|
|
748
740
|
b(this, Ae, null);
|
|
749
741
|
}), B(this, H, nr).call(this, () => {
|
|
750
742
|
Ve.ensure(), B(this, H, Rr).call(this);
|
|
@@ -781,17 +773,17 @@ class Rs {
|
|
|
781
773
|
});
|
|
782
774
|
}
|
|
783
775
|
}
|
|
784
|
-
ie = new WeakMap(),
|
|
776
|
+
ie = new WeakMap(), Yt = new WeakMap(), Oe = new WeakMap(), ot = new WeakMap(), Ee = new WeakMap(), Te = new WeakMap(), J = new WeakMap(), Ae = new WeakMap(), Pe = new WeakMap(), lt = new WeakMap(), Ue = new WeakMap(), $t = new WeakMap(), xt = new WeakMap(), Et = new WeakMap(), De = new WeakMap(), ar = new WeakMap(), H = new WeakSet(), Un = function() {
|
|
785
777
|
try {
|
|
786
778
|
b(this, Te, ve(() => a(this, ot).call(this, a(this, ie))));
|
|
787
779
|
} catch (t) {
|
|
788
780
|
this.error(t);
|
|
789
781
|
}
|
|
790
|
-
},
|
|
782
|
+
}, Yn = function() {
|
|
791
783
|
const t = a(this, Oe).pending;
|
|
792
784
|
t && (this.is_pending = !0, b(this, J, ve(() => t(a(this, ie)))), at(() => {
|
|
793
785
|
var r = b(this, Pe, document.createDocumentFragment()), n = le();
|
|
794
|
-
r.append(n), b(this, Te, B(this, H, nr).call(this, () => (Ve.ensure(), ve(() => a(this, ot).call(this, n))))), a(this,
|
|
786
|
+
r.append(n), b(this, Te, B(this, H, nr).call(this, () => (Ve.ensure(), ve(() => a(this, ot).call(this, n))))), a(this, Ue) === 0 && (a(this, ie).before(r), b(this, Pe, null), ut(
|
|
795
787
|
/** @type {Effect} */
|
|
796
788
|
a(this, J),
|
|
797
789
|
() => {
|
|
@@ -801,9 +793,9 @@ ie = new WeakMap(), zt = new WeakMap(), Oe = new WeakMap(), ot = new WeakMap(),
|
|
|
801
793
|
}));
|
|
802
794
|
}, Rr = function() {
|
|
803
795
|
try {
|
|
804
|
-
if (this.is_pending = this.has_pending_snippet(), b(this,
|
|
796
|
+
if (this.is_pending = this.has_pending_snippet(), b(this, Ue, 0), b(this, lt, 0), b(this, Te, ve(() => {
|
|
805
797
|
a(this, ot).call(this, a(this, ie));
|
|
806
|
-
})), a(this,
|
|
798
|
+
})), a(this, Ue) > 0) {
|
|
807
799
|
var t = b(this, Pe, document.createDocumentFragment());
|
|
808
800
|
di(a(this, Te), t);
|
|
809
801
|
const r = (
|
|
@@ -821,7 +813,7 @@ ie = new WeakMap(), zt = new WeakMap(), Oe = new WeakMap(), ot = new WeakMap(),
|
|
|
821
813
|
* @param {() => T} fn
|
|
822
814
|
*/
|
|
823
815
|
nr = function(t) {
|
|
824
|
-
var r = $, n = y, i =
|
|
816
|
+
var r = $, n = y, i = z;
|
|
825
817
|
ae(a(this, Ee)), G(a(this, Ee)), Ct(a(this, Ee).ctx);
|
|
826
818
|
try {
|
|
827
819
|
return t();
|
|
@@ -841,7 +833,7 @@ kr = function(t) {
|
|
|
841
833
|
this.parent && B(r = this.parent, H, kr).call(r, t);
|
|
842
834
|
return;
|
|
843
835
|
}
|
|
844
|
-
if (b(this,
|
|
836
|
+
if (b(this, Ue, a(this, Ue) + t), a(this, Ue) === 0) {
|
|
845
837
|
this.is_pending = !1;
|
|
846
838
|
for (const n of a(this, xt))
|
|
847
839
|
L(n, I), ge(n);
|
|
@@ -852,7 +844,7 @@ kr = function(t) {
|
|
|
852
844
|
}), a(this, Pe) && (a(this, ie).before(a(this, Pe)), b(this, Pe, null));
|
|
853
845
|
}
|
|
854
846
|
};
|
|
855
|
-
function
|
|
847
|
+
function Rs(e, t, r, n) {
|
|
856
848
|
const i = _r;
|
|
857
849
|
var s = e.filter((h) => !h.settled);
|
|
858
850
|
if (r.length === 0 && s.length === 0) {
|
|
@@ -862,7 +854,7 @@ function ks(e, t, r, n) {
|
|
|
862
854
|
var o = S, l = (
|
|
863
855
|
/** @type {Effect} */
|
|
864
856
|
$
|
|
865
|
-
), f =
|
|
857
|
+
), f = ks(), u = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((h) => h.promise)) : null;
|
|
866
858
|
function c(h) {
|
|
867
859
|
f();
|
|
868
860
|
try {
|
|
@@ -877,12 +869,12 @@ function ks(e, t, r, n) {
|
|
|
877
869
|
return;
|
|
878
870
|
}
|
|
879
871
|
function v() {
|
|
880
|
-
f(), Promise.all(r.map((h) => /* @__PURE__ */
|
|
872
|
+
f(), Promise.all(r.map((h) => /* @__PURE__ */ Ns(h))).then((h) => c([...t.map(i), ...h])).catch((h) => Rt(h, l));
|
|
881
873
|
}
|
|
882
874
|
u ? u.then(v) : v();
|
|
883
875
|
}
|
|
884
|
-
function
|
|
885
|
-
var e = $, t = y, r =
|
|
876
|
+
function ks() {
|
|
877
|
+
var e = $, t = y, r = z, n = S;
|
|
886
878
|
return function(s = !0) {
|
|
887
879
|
ae(e), G(t), Ct(r), s && n?.activate();
|
|
888
880
|
};
|
|
@@ -897,7 +889,7 @@ function _r(e) {
|
|
|
897
889
|
y
|
|
898
890
|
) : null;
|
|
899
891
|
return $ !== null && ($.f |= pt), {
|
|
900
|
-
ctx:
|
|
892
|
+
ctx: z,
|
|
901
893
|
deps: null,
|
|
902
894
|
effects: null,
|
|
903
895
|
equals: Nn,
|
|
@@ -915,12 +907,12 @@ function _r(e) {
|
|
|
915
907
|
};
|
|
916
908
|
}
|
|
917
909
|
// @__NO_SIDE_EFFECTS__
|
|
918
|
-
function
|
|
910
|
+
function Ns(e, t, r) {
|
|
919
911
|
let n = (
|
|
920
912
|
/** @type {Effect | null} */
|
|
921
913
|
$
|
|
922
914
|
);
|
|
923
|
-
n === null &&
|
|
915
|
+
n === null && ls();
|
|
924
916
|
var i = (
|
|
925
917
|
/** @type {Boundary} */
|
|
926
918
|
n.b
|
|
@@ -932,7 +924,7 @@ function Ls(e, t, r) {
|
|
|
932
924
|
/** @type {V} */
|
|
933
925
|
D
|
|
934
926
|
), l = !y, f = /* @__PURE__ */ new Map();
|
|
935
|
-
return
|
|
927
|
+
return Zs(() => {
|
|
936
928
|
var u = An();
|
|
937
929
|
s = u.promise;
|
|
938
930
|
try {
|
|
@@ -952,9 +944,9 @@ function Ls(e, t, r) {
|
|
|
952
944
|
}
|
|
953
945
|
const h = (_, d = void 0) => {
|
|
954
946
|
if (c.activate(), d)
|
|
955
|
-
d !== et && (o.f |=
|
|
947
|
+
d !== et && (o.f |= ze, kt(o, d));
|
|
956
948
|
else {
|
|
957
|
-
(o.f &
|
|
949
|
+
(o.f & ze) !== 0 && (o.f ^= ze), kt(o, _);
|
|
958
950
|
for (const [T, g] of f) {
|
|
959
951
|
if (f.delete(T), T === c) break;
|
|
960
952
|
g.reject(et);
|
|
@@ -963,7 +955,7 @@ function Ls(e, t, r) {
|
|
|
963
955
|
l && (i.update_pending_count(-1), c.decrement(v));
|
|
964
956
|
};
|
|
965
957
|
u.promise.then(h, (_) => h(null, _ || "unknown"));
|
|
966
|
-
}),
|
|
958
|
+
}), Vs(() => {
|
|
967
959
|
for (const u of f.values())
|
|
968
960
|
u.reject(et);
|
|
969
961
|
}), new Promise((u) => {
|
|
@@ -982,11 +974,11 @@ function Ze(e) {
|
|
|
982
974
|
return hi(t), t;
|
|
983
975
|
}
|
|
984
976
|
// @__NO_SIDE_EFFECTS__
|
|
985
|
-
function
|
|
977
|
+
function Ls(e) {
|
|
986
978
|
const t = /* @__PURE__ */ _r(e);
|
|
987
979
|
return t.equals = Ln, t;
|
|
988
980
|
}
|
|
989
|
-
function
|
|
981
|
+
function Ms(e) {
|
|
990
982
|
var t = e.effects;
|
|
991
983
|
if (t !== null) {
|
|
992
984
|
e.effects = null;
|
|
@@ -997,7 +989,7 @@ function Os(e) {
|
|
|
997
989
|
);
|
|
998
990
|
}
|
|
999
991
|
}
|
|
1000
|
-
function
|
|
992
|
+
function Os(e) {
|
|
1001
993
|
for (var t = e.parent; t !== null; ) {
|
|
1002
994
|
if ((t.f & F) === 0)
|
|
1003
995
|
return (t.f & Ie) === 0 ? (
|
|
@@ -1010,26 +1002,26 @@ function Ps(e) {
|
|
|
1010
1002
|
}
|
|
1011
1003
|
function Zr(e) {
|
|
1012
1004
|
var t, r = $;
|
|
1013
|
-
ae(
|
|
1005
|
+
ae(Os(e));
|
|
1014
1006
|
try {
|
|
1015
|
-
e.f &= ~ht,
|
|
1007
|
+
e.f &= ~ht, Ms(e), t = gi(e);
|
|
1016
1008
|
} finally {
|
|
1017
1009
|
ae(r);
|
|
1018
1010
|
}
|
|
1019
1011
|
return t;
|
|
1020
1012
|
}
|
|
1021
|
-
function
|
|
1013
|
+
function zn(e) {
|
|
1022
1014
|
var t = Zr(e);
|
|
1023
1015
|
if (!e.equals(t) && (e.wv = pi(), (!S?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
1024
|
-
L(e,
|
|
1016
|
+
L(e, O);
|
|
1025
1017
|
return;
|
|
1026
1018
|
}
|
|
1027
|
-
We || (pe !== null ? (
|
|
1019
|
+
We || (pe !== null ? (Ur() || S?.is_fork) && pe.set(e, t) : Br(e));
|
|
1028
1020
|
}
|
|
1029
|
-
function
|
|
1021
|
+
function Ps(e) {
|
|
1030
1022
|
if (e.effects !== null)
|
|
1031
1023
|
for (const t of e.effects)
|
|
1032
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(et), t.teardown =
|
|
1024
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(et), t.teardown = ts, t.ac = null, jt(t, 0), Gr(t));
|
|
1033
1025
|
}
|
|
1034
1026
|
function Gn(e) {
|
|
1035
1027
|
if (e.effects !== null)
|
|
@@ -1064,7 +1056,7 @@ function Wn(e, t = !1, r = !0) {
|
|
|
1064
1056
|
function C(e, t, r = !1) {
|
|
1065
1057
|
y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1066
1058
|
// to ensure we error if state is set inside an inspect effect
|
|
1067
|
-
(!me || (y.f & un) !== 0) && Pn() && (y.f & (F | He | Hr | un)) !== 0 && (fe === null || !Tt.call(fe, e)) &&
|
|
1059
|
+
(!me || (y.f & un) !== 0) && Pn() && (y.f & (F | He | Hr | un)) !== 0 && (fe === null || !Tt.call(fe, e)) && _s();
|
|
1068
1060
|
let n = r ? Ft(t) : t;
|
|
1069
1061
|
return kt(e, n);
|
|
1070
1062
|
}
|
|
@@ -1080,14 +1072,14 @@ function kt(e, t) {
|
|
|
1080
1072
|
);
|
|
1081
1073
|
(e.f & I) !== 0 && Zr(i), Br(i);
|
|
1082
1074
|
}
|
|
1083
|
-
e.wv = pi(), Xn(e, I), $ !== null && ($.f &
|
|
1075
|
+
e.wv = pi(), Xn(e, I), $ !== null && ($.f & O) !== 0 && ($.f & (ye | Xe)) === 0 && (ne === null ? qs([e]) : ne.push(e)), !n.is_fork && Lr.size > 0 && !Kn && Ds();
|
|
1084
1076
|
}
|
|
1085
1077
|
return t;
|
|
1086
1078
|
}
|
|
1087
|
-
function
|
|
1079
|
+
function Ds() {
|
|
1088
1080
|
Kn = !1;
|
|
1089
1081
|
for (const e of Lr)
|
|
1090
|
-
(e.f &
|
|
1082
|
+
(e.f & O) !== 0 && L(e, we), Wt(e) && Nt(e);
|
|
1091
1083
|
Lr.clear();
|
|
1092
1084
|
}
|
|
1093
1085
|
function Bt(e) {
|
|
@@ -1117,7 +1109,7 @@ function Ft(e) {
|
|
|
1117
1109
|
if (typeof e != "object" || e === null || rr in e)
|
|
1118
1110
|
return e;
|
|
1119
1111
|
const t = Tn(e);
|
|
1120
|
-
if (t !==
|
|
1112
|
+
if (t !== Qi && t !== es)
|
|
1121
1113
|
return e;
|
|
1122
1114
|
var r = /* @__PURE__ */ new Map(), n = En(e), i = /* @__PURE__ */ N(0), s = ct, o = (l) => {
|
|
1123
1115
|
if (ct === s)
|
|
@@ -1135,7 +1127,7 @@ function Ft(e) {
|
|
|
1135
1127
|
e,
|
|
1136
1128
|
{
|
|
1137
1129
|
defineProperty(l, f, u) {
|
|
1138
|
-
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) &&
|
|
1130
|
+
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && vs();
|
|
1139
1131
|
var c = r.get(f);
|
|
1140
1132
|
return c === void 0 ? o(() => {
|
|
1141
1133
|
var v = /* @__PURE__ */ N(u.value);
|
|
@@ -1216,11 +1208,11 @@ function Ft(e) {
|
|
|
1216
1208
|
var g = Reflect.getOwnPropertyDescriptor(l, f);
|
|
1217
1209
|
if (g?.set && g.set.call(c, u), !h) {
|
|
1218
1210
|
if (n && typeof f == "string") {
|
|
1219
|
-
var
|
|
1211
|
+
var P = (
|
|
1220
1212
|
/** @type {Source<number>} */
|
|
1221
1213
|
r.get("length")
|
|
1222
1214
|
), R = Number(f);
|
|
1223
|
-
Number.isInteger(R) && R >=
|
|
1215
|
+
Number.isInteger(R) && R >= P.v && C(P, R + 1);
|
|
1224
1216
|
}
|
|
1225
1217
|
Bt(i);
|
|
1226
1218
|
}
|
|
@@ -1237,7 +1229,7 @@ function Ft(e) {
|
|
|
1237
1229
|
return f;
|
|
1238
1230
|
},
|
|
1239
1231
|
setPrototypeOf() {
|
|
1240
|
-
|
|
1232
|
+
ps();
|
|
1241
1233
|
}
|
|
1242
1234
|
}
|
|
1243
1235
|
);
|
|
@@ -1350,10 +1342,10 @@ function ni(e) {
|
|
|
1350
1342
|
G(t), ae(r);
|
|
1351
1343
|
}
|
|
1352
1344
|
}
|
|
1353
|
-
function
|
|
1354
|
-
$ === null && (y === null &&
|
|
1345
|
+
function Fs(e) {
|
|
1346
|
+
$ === null && (y === null && cs(), us()), We && as();
|
|
1355
1347
|
}
|
|
1356
|
-
function
|
|
1348
|
+
function Is(e, t) {
|
|
1357
1349
|
var r = t.last;
|
|
1358
1350
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1359
1351
|
}
|
|
@@ -1361,7 +1353,7 @@ function Re(e, t, r) {
|
|
|
1361
1353
|
var n = $;
|
|
1362
1354
|
n !== null && (n.f & ee) !== 0 && (e |= ee);
|
|
1363
1355
|
var i = {
|
|
1364
|
-
ctx:
|
|
1356
|
+
ctx: z,
|
|
1365
1357
|
deps: null,
|
|
1366
1358
|
nodes: null,
|
|
1367
1359
|
f: e | I | oe,
|
|
@@ -1385,7 +1377,7 @@ function Re(e, t, r) {
|
|
|
1385
1377
|
else t !== null && ge(i);
|
|
1386
1378
|
var s = i;
|
|
1387
1379
|
if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
|
|
1388
|
-
(s.f & pt) === 0 && (s = s.first, (e & He) !== 0 && (e & At) !== 0 && s !== null && (s.f |= At)), s !== null && (s.parent = n, n !== null &&
|
|
1380
|
+
(s.f & pt) === 0 && (s = s.first, (e & He) !== 0 && (e & At) !== 0 && s !== null && (s.f |= At)), s !== null && (s.parent = n, n !== null && Is(s, n), y !== null && (y.f & F) !== 0 && (e & Xe) === 0)) {
|
|
1389
1381
|
var o = (
|
|
1390
1382
|
/** @type {Derived} */
|
|
1391
1383
|
y
|
|
@@ -1394,15 +1386,15 @@ function Re(e, t, r) {
|
|
|
1394
1386
|
}
|
|
1395
1387
|
return i;
|
|
1396
1388
|
}
|
|
1397
|
-
function
|
|
1389
|
+
function Ur() {
|
|
1398
1390
|
return y !== null && !me;
|
|
1399
1391
|
}
|
|
1400
|
-
function
|
|
1392
|
+
function Vs(e) {
|
|
1401
1393
|
const t = Re(hr, null, !1);
|
|
1402
|
-
return L(t,
|
|
1394
|
+
return L(t, O), t.teardown = e, t;
|
|
1403
1395
|
}
|
|
1404
1396
|
function ii(e) {
|
|
1405
|
-
|
|
1397
|
+
Fs();
|
|
1406
1398
|
var t = (
|
|
1407
1399
|
/** @type {Effect} */
|
|
1408
1400
|
$.f
|
|
@@ -1410,23 +1402,23 @@ function ii(e) {
|
|
|
1410
1402
|
if (r) {
|
|
1411
1403
|
var n = (
|
|
1412
1404
|
/** @type {ComponentContext} */
|
|
1413
|
-
|
|
1405
|
+
z
|
|
1414
1406
|
);
|
|
1415
1407
|
(n.e ?? (n.e = [])).push(e);
|
|
1416
1408
|
} else
|
|
1417
1409
|
return si(e);
|
|
1418
1410
|
}
|
|
1419
1411
|
function si(e) {
|
|
1420
|
-
return Re(Zt |
|
|
1412
|
+
return Re(Zt | ns, e, !1);
|
|
1421
1413
|
}
|
|
1422
|
-
function
|
|
1414
|
+
function Hs(e) {
|
|
1423
1415
|
Ve.ensure();
|
|
1424
1416
|
const t = Re(Xe | pt, e, !0);
|
|
1425
1417
|
return () => {
|
|
1426
1418
|
j(t);
|
|
1427
1419
|
};
|
|
1428
1420
|
}
|
|
1429
|
-
function
|
|
1421
|
+
function Bs(e) {
|
|
1430
1422
|
Ve.ensure();
|
|
1431
1423
|
const t = Re(Xe | pt, e, !0);
|
|
1432
1424
|
return (r = {}) => new Promise((n) => {
|
|
@@ -1438,18 +1430,18 @@ function Zs(e) {
|
|
|
1438
1430
|
function oi(e) {
|
|
1439
1431
|
return Re(Zt, e, !1);
|
|
1440
1432
|
}
|
|
1441
|
-
function
|
|
1433
|
+
function Zs(e) {
|
|
1442
1434
|
return Re(Hr | pt, e, !0);
|
|
1443
1435
|
}
|
|
1444
|
-
function
|
|
1436
|
+
function Yr(e, t = 0) {
|
|
1445
1437
|
return Re(hr | t, e, !0);
|
|
1446
1438
|
}
|
|
1447
1439
|
function Ne(e, t = [], r = [], n = []) {
|
|
1448
|
-
|
|
1440
|
+
Rs(n, t, r, (i) => {
|
|
1449
1441
|
Re(hr, () => e(...i.map(p)), !0);
|
|
1450
1442
|
});
|
|
1451
1443
|
}
|
|
1452
|
-
function
|
|
1444
|
+
function zr(e, t = 0) {
|
|
1453
1445
|
var r = Re(He | t, e, !0);
|
|
1454
1446
|
return r;
|
|
1455
1447
|
}
|
|
@@ -1479,7 +1471,7 @@ function Gr(e, t = !1) {
|
|
|
1479
1471
|
(r.f & Xe) !== 0 ? r.parent = null : j(r, t), r = n;
|
|
1480
1472
|
}
|
|
1481
1473
|
}
|
|
1482
|
-
function
|
|
1474
|
+
function js(e) {
|
|
1483
1475
|
for (var t = e.first; t !== null; ) {
|
|
1484
1476
|
var r = t.next;
|
|
1485
1477
|
(t.f & ye) === 0 && j(t), t = r;
|
|
@@ -1544,7 +1536,7 @@ function Kr(e) {
|
|
|
1544
1536
|
}
|
|
1545
1537
|
function ci(e, t) {
|
|
1546
1538
|
if ((e.f & ee) !== 0) {
|
|
1547
|
-
e.f ^= ee, (e.f &
|
|
1539
|
+
e.f ^= ee, (e.f & O) === 0 && (L(e, I), ge(e));
|
|
1548
1540
|
for (var r = e.first; r !== null; ) {
|
|
1549
1541
|
var n = r.next, i = (r.f & At) !== 0 || (r.f & ye) !== 0;
|
|
1550
1542
|
ci(r, i ? t : !1), r = n;
|
|
@@ -1578,8 +1570,8 @@ let fe = null;
|
|
|
1578
1570
|
function hi(e) {
|
|
1579
1571
|
y !== null && (fe === null ? fe = [e] : fe.push(e));
|
|
1580
1572
|
}
|
|
1581
|
-
let
|
|
1582
|
-
function
|
|
1573
|
+
let Y = null, X = 0, ne = null;
|
|
1574
|
+
function qs(e) {
|
|
1583
1575
|
ne = e;
|
|
1584
1576
|
}
|
|
1585
1577
|
let vi = 1, rt = 0, ct = rt;
|
|
@@ -1602,7 +1594,7 @@ function Wt(e) {
|
|
|
1602
1594
|
if (Wt(
|
|
1603
1595
|
/** @type {Derived} */
|
|
1604
1596
|
s
|
|
1605
|
-
) &&
|
|
1597
|
+
) && zn(
|
|
1606
1598
|
/** @type {Derived} */
|
|
1607
1599
|
s
|
|
1608
1600
|
), s.wv > e.wv)
|
|
@@ -1610,7 +1602,7 @@ function Wt(e) {
|
|
|
1610
1602
|
}
|
|
1611
1603
|
(t & oe) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1612
1604
|
// traversal of the graph in the other batches still happens
|
|
1613
|
-
pe === null && L(e,
|
|
1605
|
+
pe === null && L(e, O);
|
|
1614
1606
|
}
|
|
1615
1607
|
return !1;
|
|
1616
1608
|
}
|
|
@@ -1624,7 +1616,7 @@ function _i(e, t, r = !0) {
|
|
|
1624
1616
|
s,
|
|
1625
1617
|
t,
|
|
1626
1618
|
!1
|
|
1627
|
-
) : t === s && (r ? L(s, I) : (s.f &
|
|
1619
|
+
) : t === s && (r ? L(s, I) : (s.f & O) !== 0 && L(s, we), ge(
|
|
1628
1620
|
/** @type {Effect} */
|
|
1629
1621
|
s
|
|
1630
1622
|
));
|
|
@@ -1632,8 +1624,8 @@ function _i(e, t, r = !0) {
|
|
|
1632
1624
|
}
|
|
1633
1625
|
function gi(e) {
|
|
1634
1626
|
var T;
|
|
1635
|
-
var t =
|
|
1636
|
-
|
|
1627
|
+
var t = Y, r = X, n = ne, i = y, s = fe, o = z, l = me, f = ct, u = e.f;
|
|
1628
|
+
Y = /** @type {null | Value[]} */
|
|
1637
1629
|
null, X = 0, ne = null, y = (u & (ye | Xe)) === 0 ? e : null, fe = null, Ct(e.ctx), me = !1, ct = ++rt, e.ac !== null && (ni(() => {
|
|
1638
1630
|
e.ac.abort(et);
|
|
1639
1631
|
}), e.ac = null);
|
|
@@ -1645,14 +1637,14 @@ function gi(e) {
|
|
|
1645
1637
|
), v = c();
|
|
1646
1638
|
e.f |= Lt;
|
|
1647
1639
|
var h = e.deps, _ = S?.is_fork;
|
|
1648
|
-
if (
|
|
1640
|
+
if (Y !== null) {
|
|
1649
1641
|
var d;
|
|
1650
1642
|
if (_ || jt(e, X), h !== null && X > 0)
|
|
1651
|
-
for (h.length = X +
|
|
1652
|
-
h[X + d] =
|
|
1643
|
+
for (h.length = X + Y.length, d = 0; d < Y.length; d++)
|
|
1644
|
+
h[X + d] = Y[d];
|
|
1653
1645
|
else
|
|
1654
|
-
e.deps = h =
|
|
1655
|
-
if (
|
|
1646
|
+
e.deps = h = Y;
|
|
1647
|
+
if (Ur() && (e.f & oe) !== 0)
|
|
1656
1648
|
for (d = X; d < h.length; d++)
|
|
1657
1649
|
((T = h[d]).reactions ?? (T.reactions = [])).push(e);
|
|
1658
1650
|
} else !_ && h !== null && X < h.length && (jt(e, X), h.length = X);
|
|
@@ -1674,17 +1666,17 @@ function gi(e) {
|
|
|
1674
1666
|
ne !== null && (n === null ? n = ne : n.push(.../** @type {Source[]} */
|
|
1675
1667
|
ne));
|
|
1676
1668
|
}
|
|
1677
|
-
return (e.f &
|
|
1669
|
+
return (e.f & ze) !== 0 && (e.f ^= ze), v;
|
|
1678
1670
|
} catch (g) {
|
|
1679
1671
|
return Fn(g);
|
|
1680
1672
|
} finally {
|
|
1681
|
-
e.f ^= Tr,
|
|
1673
|
+
e.f ^= Tr, Y = t, X = r, ne = n, y = i, fe = s, Ct(o), me = l, ct = f;
|
|
1682
1674
|
}
|
|
1683
1675
|
}
|
|
1684
|
-
function
|
|
1676
|
+
function Us(e, t) {
|
|
1685
1677
|
let r = t.reactions;
|
|
1686
1678
|
if (r !== null) {
|
|
1687
|
-
var n =
|
|
1679
|
+
var n = Xi.call(r, e);
|
|
1688
1680
|
if (n !== -1) {
|
|
1689
1681
|
var i = r.length - 1;
|
|
1690
1682
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1693,32 +1685,32 @@ function zs(e, t) {
|
|
|
1693
1685
|
if (r === null && (t.f & F) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1694
1686
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1695
1687
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1696
|
-
(
|
|
1688
|
+
(Y === null || !Tt.call(Y, t))) {
|
|
1697
1689
|
var s = (
|
|
1698
1690
|
/** @type {Derived} */
|
|
1699
1691
|
t
|
|
1700
1692
|
);
|
|
1701
|
-
(s.f & oe) !== 0 && (s.f ^= oe, s.f &= ~ht), Br(s),
|
|
1693
|
+
(s.f & oe) !== 0 && (s.f ^= oe, s.f &= ~ht), Br(s), Ps(s), jt(s, 0);
|
|
1702
1694
|
}
|
|
1703
1695
|
}
|
|
1704
1696
|
function jt(e, t) {
|
|
1705
1697
|
var r = e.deps;
|
|
1706
1698
|
if (r !== null)
|
|
1707
1699
|
for (var n = t; n < r.length; n++)
|
|
1708
|
-
|
|
1700
|
+
Us(e, r[n]);
|
|
1709
1701
|
}
|
|
1710
1702
|
function Nt(e) {
|
|
1711
1703
|
var t = e.f;
|
|
1712
1704
|
if ((t & Ie) === 0) {
|
|
1713
|
-
L(e,
|
|
1705
|
+
L(e, O);
|
|
1714
1706
|
var r = $, n = ir;
|
|
1715
1707
|
$ = e, ir = !0;
|
|
1716
1708
|
try {
|
|
1717
|
-
(t & (He | Sn)) !== 0 ?
|
|
1709
|
+
(t & (He | Sn)) !== 0 ? js(e) : Gr(e), li(e);
|
|
1718
1710
|
var i = gi(e);
|
|
1719
1711
|
e.teardown = typeof i == "function" ? i : null, e.wv = vi;
|
|
1720
1712
|
var s;
|
|
1721
|
-
xr &&
|
|
1713
|
+
xr && ys && (e.f & I) !== 0 && e.deps;
|
|
1722
1714
|
} finally {
|
|
1723
1715
|
ir = n, $ = r;
|
|
1724
1716
|
}
|
|
@@ -1731,7 +1723,7 @@ function p(e) {
|
|
|
1731
1723
|
if (!n && (fe === null || !Tt.call(fe, e))) {
|
|
1732
1724
|
var i = y.deps;
|
|
1733
1725
|
if ((y.f & Tr) !== 0)
|
|
1734
|
-
e.rv < rt && (e.rv = rt,
|
|
1726
|
+
e.rv < rt && (e.rv = rt, Y === null && i !== null && i[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
|
|
1735
1727
|
else {
|
|
1736
1728
|
(y.deps ?? (y.deps = [])).push(e);
|
|
1737
1729
|
var s = e.reactions;
|
|
@@ -1748,14 +1740,14 @@ function p(e) {
|
|
|
1748
1740
|
);
|
|
1749
1741
|
if (We) {
|
|
1750
1742
|
var l = o.v;
|
|
1751
|
-
return ((o.f &
|
|
1743
|
+
return ((o.f & O) === 0 && o.reactions !== null || mi(o)) && (l = Zr(o)), Ge.set(o, l), l;
|
|
1752
1744
|
}
|
|
1753
1745
|
var f = (o.f & oe) === 0 && !me && y !== null && (ir || (y.f & oe) !== 0), u = (o.f & Lt) === 0;
|
|
1754
|
-
Wt(o) && (f && (o.f |= oe),
|
|
1746
|
+
Wt(o) && (f && (o.f |= oe), zn(o)), f && !u && (Gn(o), bi(o));
|
|
1755
1747
|
}
|
|
1756
1748
|
if (pe?.has(e))
|
|
1757
1749
|
return pe.get(e);
|
|
1758
|
-
if ((e.f &
|
|
1750
|
+
if ((e.f & ze) !== 0)
|
|
1759
1751
|
throw e.v;
|
|
1760
1752
|
return e.v;
|
|
1761
1753
|
}
|
|
@@ -1790,10 +1782,10 @@ function gr(e) {
|
|
|
1790
1782
|
}
|
|
1791
1783
|
}
|
|
1792
1784
|
const nt = /* @__PURE__ */ Symbol("events"), wi = /* @__PURE__ */ new Set(), Or = /* @__PURE__ */ new Set();
|
|
1793
|
-
function
|
|
1785
|
+
function Ys(e, t, r) {
|
|
1794
1786
|
(t[nt] ?? (t[nt] = {}))[e] = r;
|
|
1795
1787
|
}
|
|
1796
|
-
function
|
|
1788
|
+
function zs(e) {
|
|
1797
1789
|
for (var t = 0; t < e.length; t++)
|
|
1798
1790
|
wi.add(e[t]);
|
|
1799
1791
|
for (var r of Or)
|
|
@@ -1861,22 +1853,22 @@ function _n(e) {
|
|
|
1861
1853
|
}
|
|
1862
1854
|
}
|
|
1863
1855
|
}
|
|
1864
|
-
const
|
|
1856
|
+
const Gs = (
|
|
1865
1857
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1866
1858
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1867
1859
|
/** @param {string} html */
|
|
1868
1860
|
createHTML: (e) => e
|
|
1869
1861
|
})
|
|
1870
1862
|
);
|
|
1871
|
-
function
|
|
1863
|
+
function Ks(e) {
|
|
1872
1864
|
return (
|
|
1873
1865
|
/** @type {string} */
|
|
1874
|
-
|
|
1866
|
+
Gs?.createHTML(e) ?? e
|
|
1875
1867
|
);
|
|
1876
1868
|
}
|
|
1877
1869
|
function yi(e, t = !1) {
|
|
1878
1870
|
var r = jr("template");
|
|
1879
|
-
return e = e.replaceAll("<!>", "<!---->"), r.innerHTML = t ?
|
|
1871
|
+
return e = e.replaceAll("<!>", "<!---->"), r.innerHTML = t ? Ks(e) : e, r.content;
|
|
1880
1872
|
}
|
|
1881
1873
|
function Ke(e, t) {
|
|
1882
1874
|
var r = (
|
|
@@ -1887,7 +1879,7 @@ function Ke(e, t) {
|
|
|
1887
1879
|
}
|
|
1888
1880
|
// @__NO_SIDE_EFFECTS__
|
|
1889
1881
|
function Je(e, t) {
|
|
1890
|
-
var r = (t &
|
|
1882
|
+
var r = (t & Ki) !== 0, n = (t & Wi) !== 0, i, s = !e.startsWith("<!>");
|
|
1891
1883
|
return () => {
|
|
1892
1884
|
if (x)
|
|
1893
1885
|
return Ke(E, null), E;
|
|
@@ -1931,18 +1923,18 @@ function de(e, t) {
|
|
|
1931
1923
|
t
|
|
1932
1924
|
);
|
|
1933
1925
|
}
|
|
1934
|
-
const
|
|
1935
|
-
function
|
|
1936
|
-
return
|
|
1926
|
+
const Ws = ["touchstart", "touchmove"];
|
|
1927
|
+
function Xs(e) {
|
|
1928
|
+
return Ws.includes(e);
|
|
1937
1929
|
}
|
|
1938
|
-
function
|
|
1930
|
+
function Js(e, t) {
|
|
1939
1931
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1940
1932
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + "");
|
|
1941
1933
|
}
|
|
1942
1934
|
function $i(e, t) {
|
|
1943
1935
|
return xi(e, t);
|
|
1944
1936
|
}
|
|
1945
|
-
function
|
|
1937
|
+
function Qs(e, t) {
|
|
1946
1938
|
Mr(), t.intro = t.intro ?? !1;
|
|
1947
1939
|
const r = t.target, n = x, i = E;
|
|
1948
1940
|
try {
|
|
@@ -1962,7 +1954,7 @@ function eo(e, t) {
|
|
|
1962
1954
|
if (o instanceof Error && o.message.split(`
|
|
1963
1955
|
`).some((l) => l.startsWith("https://svelte.dev/e/")))
|
|
1964
1956
|
throw o;
|
|
1965
|
-
return o !== dt && console.warn("Failed to hydrate: ", o), t.recover === !1 &&
|
|
1957
|
+
return o !== dt && console.warn("Failed to hydrate: ", o), t.recover === !1 && hs(), Mr(), ti(r), _e(!1), $i(e, t);
|
|
1966
1958
|
} finally {
|
|
1967
1959
|
_e(n), Z(i);
|
|
1968
1960
|
}
|
|
@@ -1970,9 +1962,9 @@ function eo(e, t) {
|
|
|
1970
1962
|
const er = /* @__PURE__ */ new Map();
|
|
1971
1963
|
function xi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0 }) {
|
|
1972
1964
|
Mr();
|
|
1973
|
-
var l = void 0, f =
|
|
1965
|
+
var l = void 0, f = Bs(() => {
|
|
1974
1966
|
var u = r ?? t.appendChild(le());
|
|
1975
|
-
|
|
1967
|
+
Ss(
|
|
1976
1968
|
/** @type {TemplateNode} */
|
|
1977
1969
|
u,
|
|
1978
1970
|
{
|
|
@@ -1983,7 +1975,7 @@ function xi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1983
1975
|
Mn({});
|
|
1984
1976
|
var _ = (
|
|
1985
1977
|
/** @type {ComponentContext} */
|
|
1986
|
-
|
|
1978
|
+
z
|
|
1987
1979
|
);
|
|
1988
1980
|
if (s && (_.c = s), i && (n.$$events = i), x && Ke(
|
|
1989
1981
|
/** @type {TemplateNode} */
|
|
@@ -2000,12 +1992,12 @@ function xi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2000
1992
|
var d = h[_];
|
|
2001
1993
|
if (!c.has(d)) {
|
|
2002
1994
|
c.add(d);
|
|
2003
|
-
var T =
|
|
1995
|
+
var T = Xs(d);
|
|
2004
1996
|
for (const R of [t, document]) {
|
|
2005
1997
|
var g = er.get(R);
|
|
2006
1998
|
g === void 0 && (g = /* @__PURE__ */ new Map(), er.set(R, g));
|
|
2007
|
-
var
|
|
2008
|
-
|
|
1999
|
+
var P = g.get(d);
|
|
2000
|
+
P === void 0 ? (R.addEventListener(d, _n, { passive: T }), g.set(d, 1)) : g.set(d, P + 1);
|
|
2009
2001
|
}
|
|
2010
2002
|
}
|
|
2011
2003
|
}
|
|
@@ -2028,12 +2020,12 @@ function xi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2028
2020
|
return Pr.set(l, f), l;
|
|
2029
2021
|
}
|
|
2030
2022
|
let Pr = /* @__PURE__ */ new WeakMap();
|
|
2031
|
-
function
|
|
2023
|
+
function eo(e, t) {
|
|
2032
2024
|
const r = Pr.get(e);
|
|
2033
2025
|
return r ? (Pr.delete(e), r(t)) : Promise.resolve();
|
|
2034
2026
|
}
|
|
2035
|
-
var he, Se, Q, ft,
|
|
2036
|
-
class
|
|
2027
|
+
var he, Se, Q, ft, zt, Gt, ur;
|
|
2028
|
+
class to {
|
|
2037
2029
|
/**
|
|
2038
2030
|
* @param {TemplateNode} anchor
|
|
2039
2031
|
* @param {boolean} transition
|
|
@@ -2073,7 +2065,7 @@ class ro {
|
|
|
2073
2065
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
2074
2066
|
* This is necessary for `<svelte:element>`
|
|
2075
2067
|
*/
|
|
2076
|
-
w(this,
|
|
2068
|
+
w(this, zt, !0);
|
|
2077
2069
|
w(this, Gt, () => {
|
|
2078
2070
|
var t = (
|
|
2079
2071
|
/** @type {Batch} */
|
|
@@ -2106,7 +2098,7 @@ class ro {
|
|
|
2106
2098
|
j(o);
|
|
2107
2099
|
a(this, ft).delete(s), a(this, Se).delete(s);
|
|
2108
2100
|
};
|
|
2109
|
-
a(this,
|
|
2101
|
+
a(this, zt) || !n ? (a(this, ft).add(s), ut(o, l, !1)) : l();
|
|
2110
2102
|
}
|
|
2111
2103
|
}
|
|
2112
2104
|
});
|
|
@@ -2119,7 +2111,7 @@ class ro {
|
|
|
2119
2111
|
for (const [n, i] of a(this, Q))
|
|
2120
2112
|
r.includes(n) || (j(i.effect), a(this, Q).delete(n));
|
|
2121
2113
|
});
|
|
2122
|
-
this.anchor = t, b(this,
|
|
2114
|
+
this.anchor = t, b(this, zt, r);
|
|
2123
2115
|
}
|
|
2124
2116
|
/**
|
|
2125
2117
|
*
|
|
@@ -2153,9 +2145,9 @@ class ro {
|
|
|
2153
2145
|
x && (this.anchor = E), a(this, Gt).call(this);
|
|
2154
2146
|
}
|
|
2155
2147
|
}
|
|
2156
|
-
he = new WeakMap(), Se = new WeakMap(), Q = new WeakMap(), ft = new WeakMap(),
|
|
2148
|
+
he = new WeakMap(), Se = new WeakMap(), Q = new WeakMap(), ft = new WeakMap(), zt = new WeakMap(), Gt = new WeakMap(), ur = new WeakMap();
|
|
2157
2149
|
function Ei(e) {
|
|
2158
|
-
|
|
2150
|
+
z === null && Rn(), ii(() => {
|
|
2159
2151
|
const t = gr(e);
|
|
2160
2152
|
if (typeof t == "function") return (
|
|
2161
2153
|
/** @type {() => void} */
|
|
@@ -2163,12 +2155,12 @@ function Ei(e) {
|
|
|
2163
2155
|
);
|
|
2164
2156
|
});
|
|
2165
2157
|
}
|
|
2166
|
-
function
|
|
2167
|
-
|
|
2158
|
+
function ro(e) {
|
|
2159
|
+
z === null && Rn(), Ei(() => () => gr(e));
|
|
2168
2160
|
}
|
|
2169
2161
|
function je(e, t, r = !1) {
|
|
2170
2162
|
x && St();
|
|
2171
|
-
var n = new
|
|
2163
|
+
var n = new to(e), i = r ? At : 0;
|
|
2172
2164
|
function s(o, l) {
|
|
2173
2165
|
if (x) {
|
|
2174
2166
|
const c = kn(e);
|
|
@@ -2181,14 +2173,14 @@ function je(e, t, r = !1) {
|
|
|
2181
2173
|
}
|
|
2182
2174
|
n.ensure(o, l);
|
|
2183
2175
|
}
|
|
2184
|
-
|
|
2176
|
+
zr(() => {
|
|
2185
2177
|
var o = !1;
|
|
2186
2178
|
t((l, f = 0) => {
|
|
2187
2179
|
o = !0, s(f, l);
|
|
2188
2180
|
}), o || s(!1, null);
|
|
2189
2181
|
}, i);
|
|
2190
2182
|
}
|
|
2191
|
-
function
|
|
2183
|
+
function no(e, t, r) {
|
|
2192
2184
|
for (var n = [], i = t.length, s, o = t.length, l = 0; l < i; l++) {
|
|
2193
2185
|
let v = t[l];
|
|
2194
2186
|
ut(
|
|
@@ -2232,7 +2224,7 @@ function Dr(e, t = !0) {
|
|
|
2232
2224
|
j(e[r], t);
|
|
2233
2225
|
}
|
|
2234
2226
|
var bn;
|
|
2235
|
-
function
|
|
2227
|
+
function io(e, t, r, n, i, s = null) {
|
|
2236
2228
|
var o = e, l = /* @__PURE__ */ new Map();
|
|
2237
2229
|
{
|
|
2238
2230
|
var f = (
|
|
@@ -2242,23 +2234,23 @@ function so(e, t, r, n, i, s = null) {
|
|
|
2242
2234
|
o = x ? Z(/* @__PURE__ */ be(f)) : f.appendChild(le());
|
|
2243
2235
|
}
|
|
2244
2236
|
x && St();
|
|
2245
|
-
var u = null, c = /* @__PURE__ */
|
|
2237
|
+
var u = null, c = /* @__PURE__ */ Ls(() => {
|
|
2246
2238
|
var g = r();
|
|
2247
2239
|
return En(g) ? g : g == null ? [] : dr(g);
|
|
2248
2240
|
}), v, h = !0;
|
|
2249
2241
|
function _() {
|
|
2250
|
-
T.fallback = u,
|
|
2242
|
+
T.fallback = u, so(T, v, o, t, n), u !== null && (v.length === 0 ? (u.f & Ye) === 0 ? Kr(u) : (u.f ^= Ye, It(u, null, o)) : ut(u, () => {
|
|
2251
2243
|
u = null;
|
|
2252
2244
|
}));
|
|
2253
2245
|
}
|
|
2254
|
-
var d =
|
|
2246
|
+
var d = zr(() => {
|
|
2255
2247
|
v = /** @type {V[]} */
|
|
2256
2248
|
p(c);
|
|
2257
2249
|
var g = v.length;
|
|
2258
|
-
let
|
|
2250
|
+
let P = !1;
|
|
2259
2251
|
if (x) {
|
|
2260
2252
|
var R = kn(o) === cr;
|
|
2261
|
-
R !== (g === 0) && (o = fr(), Z(o), _e(!1),
|
|
2253
|
+
R !== (g === 0) && (o = fr(), Z(o), _e(!1), P = !0);
|
|
2262
2254
|
}
|
|
2263
2255
|
for (var ue = /* @__PURE__ */ new Set(), K = (
|
|
2264
2256
|
/** @type {Batch} */
|
|
@@ -2266,9 +2258,9 @@ function so(e, t, r, n, i, s = null) {
|
|
|
2266
2258
|
), te = ri(), W = 0; W < g; W += 1) {
|
|
2267
2259
|
x && E.nodeType === Mt && /** @type {Comment} */
|
|
2268
2260
|
E.data === Vr && (o = /** @type {Comment} */
|
|
2269
|
-
E,
|
|
2261
|
+
E, P = !0, _e(!1));
|
|
2270
2262
|
var xe = v[W], V = n(xe, W), ce = h ? null : l.get(V);
|
|
2271
|
-
ce ? (ce.v && kt(ce.v, xe), ce.i && kt(ce.i, W), te && K.unskip_effect(ce.e)) : (ce =
|
|
2263
|
+
ce ? (ce.v && kt(ce.v, xe), ce.i && kt(ce.i, W), te && K.unskip_effect(ce.e)) : (ce = oo(
|
|
2272
2264
|
l,
|
|
2273
2265
|
h ? o : bn ?? (bn = le()),
|
|
2274
2266
|
xe,
|
|
@@ -2277,9 +2269,9 @@ function so(e, t, r, n, i, s = null) {
|
|
|
2277
2269
|
i,
|
|
2278
2270
|
t,
|
|
2279
2271
|
r
|
|
2280
|
-
), h || (ce.e.f |=
|
|
2272
|
+
), h || (ce.e.f |= Ye), l.set(V, ce)), ue.add(V);
|
|
2281
2273
|
}
|
|
2282
|
-
if (g === 0 && s && !u && (h ? u = ve(() => s(o)) : (u = ve(() => s(bn ?? (bn = le()))), u.f |=
|
|
2274
|
+
if (g === 0 && s && !u && (h ? u = ve(() => s(o)) : (u = ve(() => s(bn ?? (bn = le()))), u.f |= Ye)), g > ue.size && fs(), x && g > 0 && Z(fr()), !h)
|
|
2283
2275
|
if (te) {
|
|
2284
2276
|
for (const [Xt, br] of l)
|
|
2285
2277
|
ue.has(Xt) || K.skip_effect(br.e);
|
|
@@ -2287,7 +2279,7 @@ function so(e, t, r, n, i, s = null) {
|
|
|
2287
2279
|
});
|
|
2288
2280
|
} else
|
|
2289
2281
|
_();
|
|
2290
|
-
|
|
2282
|
+
P && _e(!0), p(c);
|
|
2291
2283
|
}), T = { effect: d, items: l, outrogroups: null, fallback: u };
|
|
2292
2284
|
h = !1, x && (o = E);
|
|
2293
2285
|
}
|
|
@@ -2296,15 +2288,15 @@ function Pt(e) {
|
|
|
2296
2288
|
e = e.next;
|
|
2297
2289
|
return e;
|
|
2298
2290
|
}
|
|
2299
|
-
function
|
|
2291
|
+
function so(e, t, r, n, i) {
|
|
2300
2292
|
var s = t.length, o = e.items, l = Pt(e.effect.first), f, u = null, c = [], v = [], h, _, d, T;
|
|
2301
2293
|
for (T = 0; T < s; T += 1) {
|
|
2302
2294
|
if (h = t[T], _ = i(h, T), d = /** @type {EachItem} */
|
|
2303
2295
|
o.get(_).e, e.outrogroups !== null)
|
|
2304
2296
|
for (const V of e.outrogroups)
|
|
2305
2297
|
V.pending.delete(d), V.done.delete(d);
|
|
2306
|
-
if ((d.f &
|
|
2307
|
-
if (d.f ^=
|
|
2298
|
+
if ((d.f & Ye) !== 0)
|
|
2299
|
+
if (d.f ^= Ye, d === l)
|
|
2308
2300
|
It(d, null, r);
|
|
2309
2301
|
else {
|
|
2310
2302
|
var g = u ? u.next : l;
|
|
@@ -2314,14 +2306,14 @@ function oo(e, t, r, n, i) {
|
|
|
2314
2306
|
if ((d.f & ee) !== 0 && Kr(d), d !== l) {
|
|
2315
2307
|
if (f !== void 0 && f.has(d)) {
|
|
2316
2308
|
if (c.length < v.length) {
|
|
2317
|
-
var
|
|
2318
|
-
u =
|
|
2309
|
+
var P = v[0], R;
|
|
2310
|
+
u = P.prev;
|
|
2319
2311
|
var ue = c[0], K = c[c.length - 1];
|
|
2320
2312
|
for (R = 0; R < c.length; R += 1)
|
|
2321
|
-
It(c[R],
|
|
2313
|
+
It(c[R], P, r);
|
|
2322
2314
|
for (R = 0; R < v.length; R += 1)
|
|
2323
2315
|
f.delete(v[R]);
|
|
2324
|
-
qe(e, ue.prev, K.next), qe(e, u, ue), qe(e, K,
|
|
2316
|
+
qe(e, ue.prev, K.next), qe(e, u, ue), qe(e, K, P), l = P, u = K, T -= 1, c = [], v = [];
|
|
2325
2317
|
} else
|
|
2326
2318
|
f.delete(d), It(d, l, r), qe(e, d.prev, d.next), qe(e, d, u === null ? e.effect.first : u.next), qe(e, u, d), u = d;
|
|
2327
2319
|
continue;
|
|
@@ -2331,7 +2323,7 @@ function oo(e, t, r, n, i) {
|
|
|
2331
2323
|
if (l === null)
|
|
2332
2324
|
continue;
|
|
2333
2325
|
}
|
|
2334
|
-
(d.f &
|
|
2326
|
+
(d.f & Ye) === 0 && c.push(d), u = d, l = Pt(d.next);
|
|
2335
2327
|
}
|
|
2336
2328
|
if (e.outrogroups !== null) {
|
|
2337
2329
|
for (const V of e.outrogroups)
|
|
@@ -2348,12 +2340,12 @@ function oo(e, t, r, n, i) {
|
|
|
2348
2340
|
var W = te.length;
|
|
2349
2341
|
if (W > 0) {
|
|
2350
2342
|
var xe = s === 0 ? r : null;
|
|
2351
|
-
|
|
2343
|
+
no(e, te, xe);
|
|
2352
2344
|
}
|
|
2353
2345
|
}
|
|
2354
2346
|
}
|
|
2355
|
-
function
|
|
2356
|
-
var f = (o &
|
|
2347
|
+
function oo(e, t, r, n, i, s, o, l) {
|
|
2348
|
+
var f = (o & Yi) !== 0 ? (o & Gi) === 0 ? /* @__PURE__ */ Wn(r, !1, !1) : vt(r) : null, u = (o & zi) !== 0 ? vt(i) : null;
|
|
2357
2349
|
return {
|
|
2358
2350
|
v: f,
|
|
2359
2351
|
i: u,
|
|
@@ -2364,7 +2356,7 @@ function lo(e, t, r, n, i, s, o, l) {
|
|
|
2364
2356
|
}
|
|
2365
2357
|
function It(e, t, r) {
|
|
2366
2358
|
if (e.nodes)
|
|
2367
|
-
for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f &
|
|
2359
|
+
for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f & Ye) === 0 ? (
|
|
2368
2360
|
/** @type {EffectNodes} */
|
|
2369
2361
|
t.nodes.start
|
|
2370
2362
|
) : r; n !== null; ) {
|
|
@@ -2380,7 +2372,7 @@ function It(e, t, r) {
|
|
|
2380
2372
|
function qe(e, t, r) {
|
|
2381
2373
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2382
2374
|
}
|
|
2383
|
-
function
|
|
2375
|
+
function lo(e, t, r = !1, n = !1, i = !1) {
|
|
2384
2376
|
var s = e, o = "";
|
|
2385
2377
|
Ne(() => {
|
|
2386
2378
|
var l = (
|
|
@@ -2426,7 +2418,7 @@ function fo(e, t, r = !1, n = !1, i = !1) {
|
|
|
2426
2418
|
}
|
|
2427
2419
|
});
|
|
2428
2420
|
}
|
|
2429
|
-
function
|
|
2421
|
+
function fo(e, t) {
|
|
2430
2422
|
oi(() => {
|
|
2431
2423
|
var r = e.getRootNode(), n = (
|
|
2432
2424
|
/** @type {ShadowRoot} */
|
|
@@ -2447,7 +2439,7 @@ function ao(e, t) {
|
|
|
2447
2439
|
}
|
|
2448
2440
|
const mn = [...`
|
|
2449
2441
|
\r\f \v\uFEFF`];
|
|
2450
|
-
function
|
|
2442
|
+
function ao(e, t, r) {
|
|
2451
2443
|
var n = e == null ? "" : "" + e;
|
|
2452
2444
|
if (t && (n = n ? n + " " + t : t), r) {
|
|
2453
2445
|
for (var i in r)
|
|
@@ -2464,7 +2456,7 @@ function uo(e, t, r) {
|
|
|
2464
2456
|
function wn(e, t, r, n, i, s) {
|
|
2465
2457
|
var o = e.__className;
|
|
2466
2458
|
if (x || o !== r || o === void 0) {
|
|
2467
|
-
var l =
|
|
2459
|
+
var l = ao(r, n, s);
|
|
2468
2460
|
(!x || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = r;
|
|
2469
2461
|
} else if (s && i !== s)
|
|
2470
2462
|
for (var f in s) {
|
|
@@ -2473,10 +2465,10 @@ function wn(e, t, r, n, i, s) {
|
|
|
2473
2465
|
}
|
|
2474
2466
|
return s;
|
|
2475
2467
|
}
|
|
2476
|
-
const
|
|
2468
|
+
const uo = /* @__PURE__ */ Symbol("is custom element"), co = /* @__PURE__ */ Symbol("is html"), ho = os ? "link" : "LINK";
|
|
2477
2469
|
function Vt(e, t, r, n) {
|
|
2478
|
-
var i =
|
|
2479
|
-
x && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2470
|
+
var i = vo(e);
|
|
2471
|
+
x && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ho) || i[t] !== (i[t] = r) && (t === "loading" && (e[ss] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ti(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2480
2472
|
}
|
|
2481
2473
|
function re(e, t, r) {
|
|
2482
2474
|
var n = y, i = $;
|
|
@@ -2493,13 +2485,13 @@ function re(e, t, r) {
|
|
|
2493
2485
|
G(n), ae(i), s && _e(!0);
|
|
2494
2486
|
}
|
|
2495
2487
|
}
|
|
2496
|
-
function
|
|
2488
|
+
function vo(e) {
|
|
2497
2489
|
return (
|
|
2498
2490
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2499
2491
|
// @ts-expect-error
|
|
2500
2492
|
e.__attributes ?? (e.__attributes = {
|
|
2501
|
-
[
|
|
2502
|
-
[
|
|
2493
|
+
[uo]: e.nodeName.includes("-"),
|
|
2494
|
+
[co]: e.namespaceURI === xn
|
|
2503
2495
|
})
|
|
2504
2496
|
);
|
|
2505
2497
|
}
|
|
@@ -2509,7 +2501,7 @@ function Ti(e) {
|
|
|
2509
2501
|
if (r) return r;
|
|
2510
2502
|
Fr.set(t, r = []);
|
|
2511
2503
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2512
|
-
n =
|
|
2504
|
+
n = Ji(i);
|
|
2513
2505
|
for (var o in n)
|
|
2514
2506
|
n[o].set && r.push(o);
|
|
2515
2507
|
i = Tn(i);
|
|
@@ -2522,7 +2514,7 @@ function yn(e, t) {
|
|
|
2522
2514
|
function _t(e = {}, t, r, n) {
|
|
2523
2515
|
return oi(() => {
|
|
2524
2516
|
var i, s;
|
|
2525
|
-
return
|
|
2517
|
+
return Yr(() => {
|
|
2526
2518
|
i = s, s = [], gr(() => {
|
|
2527
2519
|
e !== r(...s) && (t(e, ...s), i && yn(r(...i), e) && t(null, ...i));
|
|
2528
2520
|
});
|
|
@@ -2564,11 +2556,11 @@ function tr(e, t, r, n) {
|
|
|
2564
2556
|
})
|
|
2565
2557
|
);
|
|
2566
2558
|
}
|
|
2567
|
-
function
|
|
2568
|
-
return new
|
|
2559
|
+
function po(e) {
|
|
2560
|
+
return new _o(e);
|
|
2569
2561
|
}
|
|
2570
2562
|
var Fe, se;
|
|
2571
|
-
class
|
|
2563
|
+
class _o {
|
|
2572
2564
|
/**
|
|
2573
2565
|
* @param {ComponentConstructorOptions & {
|
|
2574
2566
|
* component: any;
|
|
@@ -2590,14 +2582,14 @@ class go {
|
|
|
2590
2582
|
return p(r.get(o) ?? n(o, Reflect.get(s, o)));
|
|
2591
2583
|
},
|
|
2592
2584
|
has(s, o) {
|
|
2593
|
-
return o ===
|
|
2585
|
+
return o === is ? !0 : (p(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
|
|
2594
2586
|
},
|
|
2595
2587
|
set(s, o, l) {
|
|
2596
2588
|
return C(r.get(o) ?? n(o, l), l), Reflect.set(s, o, l);
|
|
2597
2589
|
}
|
|
2598
2590
|
}
|
|
2599
2591
|
);
|
|
2600
|
-
b(this, se, (t.hydrate ?
|
|
2592
|
+
b(this, se, (t.hydrate ? Qs : $i)(t.component, {
|
|
2601
2593
|
target: t.target,
|
|
2602
2594
|
anchor: t.anchor,
|
|
2603
2595
|
props: i,
|
|
@@ -2620,7 +2612,7 @@ class go {
|
|
|
2620
2612
|
(s) => {
|
|
2621
2613
|
Object.assign(i, s);
|
|
2622
2614
|
}, a(this, se).$destroy = () => {
|
|
2623
|
-
|
|
2615
|
+
eo(a(this, se));
|
|
2624
2616
|
};
|
|
2625
2617
|
}
|
|
2626
2618
|
/** @param {Record<string, any>} props */
|
|
@@ -2713,7 +2705,7 @@ typeof HTMLElement == "function" && (Ai = class extends HTMLElement {
|
|
|
2713
2705
|
};
|
|
2714
2706
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2715
2707
|
return;
|
|
2716
|
-
const r = {}, n =
|
|
2708
|
+
const r = {}, n = go(this);
|
|
2717
2709
|
for (const i of this.$$s)
|
|
2718
2710
|
i in n && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), r.default = !0) : r[i] = t(i));
|
|
2719
2711
|
for (const i of this.attributes) {
|
|
@@ -2722,7 +2714,7 @@ typeof HTMLElement == "function" && (Ai = class extends HTMLElement {
|
|
|
2722
2714
|
}
|
|
2723
2715
|
for (const i in this.$$p_d)
|
|
2724
2716
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2725
|
-
this.$$c =
|
|
2717
|
+
this.$$c = po({
|
|
2726
2718
|
component: this.$$ctor,
|
|
2727
2719
|
target: this.$$shadowRoot || this,
|
|
2728
2720
|
props: {
|
|
@@ -2730,8 +2722,8 @@ typeof HTMLElement == "function" && (Ai = class extends HTMLElement {
|
|
|
2730
2722
|
$$slots: r,
|
|
2731
2723
|
$$host: this
|
|
2732
2724
|
}
|
|
2733
|
-
}), this.$$me =
|
|
2734
|
-
|
|
2725
|
+
}), this.$$me = Hs(() => {
|
|
2726
|
+
Yr(() => {
|
|
2735
2727
|
this.$$r = !0;
|
|
2736
2728
|
for (const i of or(this.$$c)) {
|
|
2737
2729
|
if (!this.$$p_d[i]?.reflect) continue;
|
|
@@ -2809,7 +2801,7 @@ function sr(e, t, r, n) {
|
|
|
2809
2801
|
return t;
|
|
2810
2802
|
}
|
|
2811
2803
|
}
|
|
2812
|
-
function
|
|
2804
|
+
function go(e) {
|
|
2813
2805
|
const t = {};
|
|
2814
2806
|
return e.childNodes.forEach((r) => {
|
|
2815
2807
|
t[
|
|
@@ -2818,7 +2810,7 @@ function bo(e) {
|
|
|
2818
2810
|
] = !0;
|
|
2819
2811
|
}), t;
|
|
2820
2812
|
}
|
|
2821
|
-
function
|
|
2813
|
+
function bo(e, t, r, n, i, s) {
|
|
2822
2814
|
let o = class extends Ai {
|
|
2823
2815
|
constructor() {
|
|
2824
2816
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -2852,8 +2844,8 @@ function mo(e, t, r, n, i, s) {
|
|
|
2852
2844
|
}), e.element = /** @type {any} */
|
|
2853
2845
|
o, o;
|
|
2854
2846
|
}
|
|
2855
|
-
var
|
|
2856
|
-
const
|
|
2847
|
+
var mo = /* @__PURE__ */ Je('<button type="button"><!></button>'), wo = /* @__PURE__ */ Je("<pie-tool-graph></pie-tool-graph>", 2), yo = /* @__PURE__ */ Je("<pie-tool-periodic-table></pie-tool-periodic-table>", 2), $o = /* @__PURE__ */ Je("<pie-tool-protractor></pie-tool-protractor>", 2), xo = /* @__PURE__ */ Je("<pie-tool-line-reader></pie-tool-line-reader>", 2), Eo = /* @__PURE__ */ Je("<pie-tool-magnifier></pie-tool-magnifier>", 2), To = /* @__PURE__ */ Je("<pie-tool-ruler></pie-tool-ruler>", 2), Ao = /* @__PURE__ */ Je('<div role="toolbar" aria-label="Assessment tools"><div class="tools-buttons svelte-x5tssx"></div></div> <!> <!> <!> <!> <!> <!> <div role="status" aria-live="polite" aria-atomic="true" class="sr-only svelte-x5tssx"> </div>', 1);
|
|
2848
|
+
const So = {
|
|
2857
2849
|
hash: "svelte-x5tssx",
|
|
2858
2850
|
code: `
|
|
2859
2851
|
/* Base toolbar styles */.section-tools-toolbar.svelte-x5tssx {display:flex;align-items:center;padding:0.75rem 1rem;background-color:var(--pie-background, #ffffff);gap:1rem;flex-shrink:0;}
|
|
@@ -2880,29 +2872,39 @@ const Co = {
|
|
|
2880
2872
|
|
|
2881
2873
|
/* Screen reader only content */.sr-only.svelte-x5tssx {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}`
|
|
2882
2874
|
};
|
|
2883
|
-
function
|
|
2884
|
-
Mn(t, !0),
|
|
2875
|
+
function Co(e, t) {
|
|
2876
|
+
Mn(t, !0), fo(e, So);
|
|
2885
2877
|
const r = typeof window < "u";
|
|
2886
|
-
let n = tr(t, "enabledTools", 7, "graph,periodicTable,protractor,lineReader,magnifier,ruler"), i = tr(t, "position", 7, "bottom"), s = tr(t, "toolCoordinator"), o = tr(t, "toolProviderRegistry"), l = /* @__PURE__ */ Ze(() => n().split(",").map((
|
|
2878
|
+
let n = tr(t, "enabledTools", 7, "graph,periodicTable,protractor,lineReader,magnifier,ruler"), i = tr(t, "position", 7, "bottom"), s = tr(t, "toolCoordinator"), o = tr(t, "toolProviderRegistry"), l = /* @__PURE__ */ Ze(() => n().split(",").map((M) => M.trim()).filter(Boolean)), f = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(!1), c = /* @__PURE__ */ N(!1), v = /* @__PURE__ */ N(!1), h = /* @__PURE__ */ N(!1), _ = /* @__PURE__ */ N(!1), d = /* @__PURE__ */ N("");
|
|
2887
2879
|
function T() {
|
|
2888
2880
|
s() && (C(f, s().isToolVisible("graph"), !0), C(u, s().isToolVisible("periodicTable"), !0), C(c, s().isToolVisible("protractor"), !0), C(v, s().isToolVisible("lineReader"), !0), C(h, s().isToolVisible("magnifier"), !0), C(_, s().isToolVisible("ruler"), !0));
|
|
2889
2881
|
}
|
|
2890
|
-
function g(
|
|
2882
|
+
function g(M) {
|
|
2891
2883
|
if (!s()) return;
|
|
2892
|
-
s().toggleTool(
|
|
2893
|
-
const Ot = p(R).find((ke) => ke.id ===
|
|
2884
|
+
s().toggleTool(M), T();
|
|
2885
|
+
const Ot = p(R).find((ke) => ke.id === M);
|
|
2894
2886
|
if (Ot) {
|
|
2895
|
-
const ke = s().isToolVisible(
|
|
2887
|
+
const ke = s().isToolVisible(M);
|
|
2896
2888
|
C(d, `${Ot.label} ${ke ? "opened" : "closed"}`);
|
|
2897
2889
|
}
|
|
2898
2890
|
}
|
|
2899
|
-
let
|
|
2891
|
+
let P = null;
|
|
2900
2892
|
Ei(() => {
|
|
2901
|
-
|
|
2893
|
+
r && Promise.all([
|
|
2894
|
+
import("@pie-players/pie-tool-calculator"),
|
|
2895
|
+
import("@pie-players/pie-tool-graph"),
|
|
2896
|
+
import("@pie-players/pie-tool-periodic-table"),
|
|
2897
|
+
import("@pie-players/pie-tool-protractor"),
|
|
2898
|
+
import("@pie-players/pie-tool-line-reader"),
|
|
2899
|
+
import("@pie-players/pie-tool-magnifier"),
|
|
2900
|
+
import("@pie-players/pie-tool-ruler")
|
|
2901
|
+
]).catch((M) => {
|
|
2902
|
+
console.error("[SectionToolsToolbar] Failed to load tool web components:", M);
|
|
2903
|
+
}), s() && (T(), P = s().subscribe(() => {
|
|
2902
2904
|
T();
|
|
2903
2905
|
}));
|
|
2904
|
-
}),
|
|
2905
|
-
|
|
2906
|
+
}), ro(() => {
|
|
2907
|
+
P?.();
|
|
2906
2908
|
});
|
|
2907
2909
|
const R = /* @__PURE__ */ Ze(() => [
|
|
2908
2910
|
{
|
|
@@ -2956,43 +2958,43 @@ function Ro(e, t) {
|
|
|
2956
2958
|
get enabledTools() {
|
|
2957
2959
|
return n();
|
|
2958
2960
|
},
|
|
2959
|
-
set enabledTools(
|
|
2960
|
-
n(
|
|
2961
|
+
set enabledTools(M = "graph,periodicTable,protractor,lineReader,magnifier,ruler") {
|
|
2962
|
+
n(M), Dt();
|
|
2961
2963
|
},
|
|
2962
2964
|
get position() {
|
|
2963
2965
|
return i();
|
|
2964
2966
|
},
|
|
2965
|
-
set position(
|
|
2966
|
-
i(
|
|
2967
|
+
set position(M = "bottom") {
|
|
2968
|
+
i(M), Dt();
|
|
2967
2969
|
},
|
|
2968
2970
|
get toolCoordinator() {
|
|
2969
2971
|
return s();
|
|
2970
2972
|
},
|
|
2971
|
-
set toolCoordinator(
|
|
2972
|
-
s(
|
|
2973
|
+
set toolCoordinator(M) {
|
|
2974
|
+
s(M), Dt();
|
|
2973
2975
|
},
|
|
2974
2976
|
get toolProviderRegistry() {
|
|
2975
2977
|
return o();
|
|
2976
2978
|
},
|
|
2977
|
-
set toolProviderRegistry(
|
|
2978
|
-
o(
|
|
2979
|
+
set toolProviderRegistry(M) {
|
|
2980
|
+
o(M), Dt();
|
|
2979
2981
|
}
|
|
2980
2982
|
}, Xt = gn(), br = $r(Xt);
|
|
2981
2983
|
{
|
|
2982
|
-
var Si = (
|
|
2983
|
-
var Ot =
|
|
2984
|
+
var Si = (M) => {
|
|
2985
|
+
var Ot = Ao(), ke = $r(Ot);
|
|
2984
2986
|
let Xr;
|
|
2985
2987
|
var Jr = yr(ke);
|
|
2986
|
-
|
|
2988
|
+
io(Jr, 21, () => p(R), (A) => A.id, (A, m) => {
|
|
2987
2989
|
var q = gn(), Bi = $r(q);
|
|
2988
2990
|
{
|
|
2989
2991
|
var Zi = (mr) => {
|
|
2990
|
-
var Be =
|
|
2992
|
+
var Be = mo();
|
|
2991
2993
|
let ln;
|
|
2992
2994
|
var ji = yr(Be);
|
|
2993
|
-
|
|
2995
|
+
lo(ji, () => p(m).svg), Jt(Be), Ne(() => {
|
|
2994
2996
|
ln = wn(Be, 1, "tool-button svelte-x5tssx", null, ln, { active: p(m).visible }), Vt(Be, "title", p(m).ariaLabel), Vt(Be, "aria-label", p(m).ariaLabel), Vt(Be, "aria-pressed", p(m).visible);
|
|
2995
|
-
}),
|
|
2997
|
+
}), Ys("click", Be, () => g(p(m).id)), de(mr, Be);
|
|
2996
2998
|
};
|
|
2997
2999
|
je(Bi, (mr) => {
|
|
2998
3000
|
p(m).enabled && mr(Zi);
|
|
@@ -3003,7 +3005,7 @@ function Ro(e, t) {
|
|
|
3003
3005
|
var Qr = Qe(ke, 2);
|
|
3004
3006
|
{
|
|
3005
3007
|
var Ci = (A) => {
|
|
3006
|
-
var m =
|
|
3008
|
+
var m = wo();
|
|
3007
3009
|
Ne(() => re(m, "visible", p(f))), re(m, "tool-id", "graph"), _t(m, (q) => C(ue, q), () => p(ue)), de(A, m);
|
|
3008
3010
|
}, Ri = /* @__PURE__ */ Ze(() => p(l).includes("graph"));
|
|
3009
3011
|
je(Qr, (A) => {
|
|
@@ -3013,7 +3015,7 @@ function Ro(e, t) {
|
|
|
3013
3015
|
var en = Qe(Qr, 2);
|
|
3014
3016
|
{
|
|
3015
3017
|
var ki = (A) => {
|
|
3016
|
-
var m =
|
|
3018
|
+
var m = yo();
|
|
3017
3019
|
Ne(() => re(m, "visible", p(u))), re(m, "tool-id", "periodicTable"), _t(m, (q) => C(K, q), () => p(K)), de(A, m);
|
|
3018
3020
|
}, Ni = /* @__PURE__ */ Ze(() => p(l).includes("periodicTable"));
|
|
3019
3021
|
je(en, (A) => {
|
|
@@ -3023,7 +3025,7 @@ function Ro(e, t) {
|
|
|
3023
3025
|
var tn = Qe(en, 2);
|
|
3024
3026
|
{
|
|
3025
3027
|
var Li = (A) => {
|
|
3026
|
-
var m =
|
|
3028
|
+
var m = $o();
|
|
3027
3029
|
Ne(() => re(m, "visible", p(c))), re(m, "tool-id", "protractor"), _t(m, (q) => C(te, q), () => p(te)), de(A, m);
|
|
3028
3030
|
}, Mi = /* @__PURE__ */ Ze(() => p(l).includes("protractor"));
|
|
3029
3031
|
je(tn, (A) => {
|
|
@@ -3033,7 +3035,7 @@ function Ro(e, t) {
|
|
|
3033
3035
|
var rn = Qe(tn, 2);
|
|
3034
3036
|
{
|
|
3035
3037
|
var Oi = (A) => {
|
|
3036
|
-
var m =
|
|
3038
|
+
var m = xo();
|
|
3037
3039
|
Ne(() => re(m, "visible", p(v))), re(m, "tool-id", "lineReader"), _t(m, (q) => C(W, q), () => p(W)), de(A, m);
|
|
3038
3040
|
}, Pi = /* @__PURE__ */ Ze(() => p(l).includes("lineReader"));
|
|
3039
3041
|
je(rn, (A) => {
|
|
@@ -3043,7 +3045,7 @@ function Ro(e, t) {
|
|
|
3043
3045
|
var nn = Qe(rn, 2);
|
|
3044
3046
|
{
|
|
3045
3047
|
var Di = (A) => {
|
|
3046
|
-
var m =
|
|
3048
|
+
var m = Eo();
|
|
3047
3049
|
Ne(() => re(m, "visible", p(h))), re(m, "tool-id", "magnifier"), _t(m, (q) => C(xe, q), () => p(xe)), de(A, m);
|
|
3048
3050
|
}, Fi = /* @__PURE__ */ Ze(() => p(l).includes("magnifier"));
|
|
3049
3051
|
je(nn, (A) => {
|
|
@@ -3053,7 +3055,7 @@ function Ro(e, t) {
|
|
|
3053
3055
|
var sn = Qe(nn, 2);
|
|
3054
3056
|
{
|
|
3055
3057
|
var Ii = (A) => {
|
|
3056
|
-
var m =
|
|
3058
|
+
var m = To();
|
|
3057
3059
|
Ne(() => re(m, "visible", p(_))), re(m, "tool-id", "ruler"), _t(m, (q) => C(V, q), () => p(V)), de(A, m);
|
|
3058
3060
|
}, Vi = /* @__PURE__ */ Ze(() => p(l).includes("ruler"));
|
|
3059
3061
|
je(sn, (A) => {
|
|
@@ -3067,18 +3069,18 @@ function Ro(e, t) {
|
|
|
3067
3069
|
"section-tools-toolbar--right": i() === "right",
|
|
3068
3070
|
"section-tools-toolbar--bottom": i() === "bottom",
|
|
3069
3071
|
"section-tools-toolbar--left": i() === "left"
|
|
3070
|
-
}), Vt(ke, "data-position", i()),
|
|
3071
|
-
}), de(
|
|
3072
|
+
}), Vt(ke, "data-position", i()), Js(Hi, p(d));
|
|
3073
|
+
}), de(M, Ot);
|
|
3072
3074
|
};
|
|
3073
|
-
je(br, (
|
|
3074
|
-
r &&
|
|
3075
|
+
je(br, (M) => {
|
|
3076
|
+
r && M(Si);
|
|
3075
3077
|
});
|
|
3076
3078
|
}
|
|
3077
3079
|
return de(e, Xt), On(ce);
|
|
3078
3080
|
}
|
|
3079
|
-
|
|
3080
|
-
customElements.define("pie-section-tools-toolbar",
|
|
3081
|
-
|
|
3081
|
+
zs(["click"]);
|
|
3082
|
+
customElements.define("pie-section-tools-toolbar", bo(
|
|
3083
|
+
Co,
|
|
3082
3084
|
{
|
|
3083
3085
|
enabledTools: { attribute: "enabled-tools", type: "String" },
|
|
3084
3086
|
position: { attribute: "position", type: "String" },
|
|
@@ -3089,6 +3091,6 @@ customElements.define("pie-section-tools-toolbar", mo(
|
|
|
3089
3091
|
[]
|
|
3090
3092
|
));
|
|
3091
3093
|
export {
|
|
3092
|
-
|
|
3094
|
+
Co as default
|
|
3093
3095
|
};
|
|
3094
3096
|
//# sourceMappingURL=section-tools-toolbar.js.map
|