@pie-players/pie-section-tools-toolbar 0.2.9 → 0.2.10
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/pie-tool-calculator-CjiwM9t4.js +3443 -0
- package/dist/section-tools-toolbar.js +1171 -1163
- package/dist/tool-graph-CXPY5FT9.js +4573 -0
- package/dist/tool-line-reader-CIyMzHIp.js +4315 -0
- package/dist/tool-periodic-table-C3x2EIo9.js +4181 -0
- package/dist/tool-protractor-B3JIgh4k.js +13787 -0
- package/dist/tool-ruler-BdnBVoda.js +13819 -0
- package/package.json +16 -13
- package/section-tools-toolbar.svelte +164 -161
- package/dist/section-tools-toolbar.js.map +0 -1
|
@@ -1,150 +1,152 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Yi = Object.defineProperty;
|
|
2
2
|
var an = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
5
|
+
var Gi = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var R = (e, t, r) => Gi(e, typeof t != "symbol" ? t + "" : t, r), wr = (e, t, r) => t.has(e) || an("Cannot " + r);
|
|
7
|
+
var u = (e, t, r) => (wr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), m = (e, t, r) => t.has(e) ? an("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 { createDefaultToolRegistry as Ki, connectAssessmentToolkitRuntimeContext as Wi, createScopedToolId as Xi, parseToolList as Ji, normalizeToolList as Qi, resolveToolsForLevel as es, normalizeToolsConfig as ts } from "@pie-players/pie-assessment-toolkit";
|
|
9
|
+
const rs = "5";
|
|
10
|
+
var xn;
|
|
11
|
+
typeof window < "u" && ((xn = window.__svelte ?? (window.__svelte = {})).v ?? (xn.v = /* @__PURE__ */ new Set())).add(rs);
|
|
12
|
+
const ns = 1, is = 2, ss = 16, os = 1, ls = 2, Dr = "[", cr = "[!", Pr = "]", dt = {}, H = /* @__PURE__ */ Symbol(), En = "http://www.w3.org/1999/xhtml", $r = !1;
|
|
13
|
+
var Tn = Array.isArray, fs = Array.prototype.indexOf, St = Array.prototype.includes, dr = Array.from, or = Object.keys, lr = Object.defineProperty, mt = Object.getOwnPropertyDescriptor, as = Object.getOwnPropertyDescriptors, us = Object.prototype, cs = Array.prototype, An = Object.getPrototypeOf, un = Object.isExtensible;
|
|
14
|
+
const ds = () => {
|
|
13
15
|
};
|
|
14
|
-
function
|
|
16
|
+
function hs(e) {
|
|
15
17
|
for (var t = 0; t < e.length; t++)
|
|
16
18
|
e[t]();
|
|
17
19
|
}
|
|
18
|
-
function
|
|
20
|
+
function Cn() {
|
|
19
21
|
var e, t, r = new Promise((n, i) => {
|
|
20
22
|
e = n, t = i;
|
|
21
23
|
});
|
|
22
24
|
return { promise: r, resolve: e, reject: t };
|
|
23
25
|
}
|
|
24
|
-
const D = 2, Zt = 4, hr = 8, Sn = 1 << 24,
|
|
26
|
+
const D = 2, Zt = 4, hr = 8, Sn = 1 << 24, Pe = 16, me = 32, We = 64, xr = 128, le = 512, I = 1024, P = 2048, we = 4096, te = 8192, He = 16384, Vt = 32768, Mt = 65536, cn = 1 << 17, Mn = 1 << 18, pt = 1 << 19, vs = 1 << 20, ze = 1 << 25, ht = 65536, Er = 1 << 21, Fr = 1 << 22, Ue = 1 << 23, tr = /* @__PURE__ */ Symbol("$state"), ps = /* @__PURE__ */ Symbol("legacy props"), _s = /* @__PURE__ */ Symbol(""), et = new class extends Error {
|
|
25
27
|
constructor() {
|
|
26
28
|
super(...arguments);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
R(this, "name", "StaleReactionError");
|
|
30
|
+
R(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
29
31
|
}
|
|
30
|
-
}(),
|
|
32
|
+
}(), gs = (
|
|
31
33
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
32
34
|
!!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
|
|
33
|
-
), vr = 3,
|
|
34
|
-
function
|
|
35
|
+
), vr = 3, It = 8;
|
|
36
|
+
function kn(e) {
|
|
35
37
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
36
38
|
}
|
|
37
|
-
function
|
|
39
|
+
function bs() {
|
|
38
40
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
39
41
|
}
|
|
40
|
-
function
|
|
42
|
+
function ws(e, t, r) {
|
|
41
43
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
42
44
|
}
|
|
43
|
-
function
|
|
45
|
+
function ms(e) {
|
|
44
46
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
45
47
|
}
|
|
46
|
-
function
|
|
48
|
+
function ys() {
|
|
47
49
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
48
50
|
}
|
|
49
|
-
function
|
|
51
|
+
function $s(e) {
|
|
50
52
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
51
53
|
}
|
|
52
|
-
function
|
|
54
|
+
function xs() {
|
|
53
55
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
54
56
|
}
|
|
55
|
-
function
|
|
57
|
+
function Es() {
|
|
56
58
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
57
59
|
}
|
|
58
|
-
function
|
|
60
|
+
function Ts() {
|
|
59
61
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
60
62
|
}
|
|
61
|
-
function
|
|
63
|
+
function As() {
|
|
62
64
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
63
65
|
}
|
|
64
|
-
function
|
|
66
|
+
function Cs() {
|
|
65
67
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
66
68
|
}
|
|
67
|
-
function
|
|
69
|
+
function Ss() {
|
|
68
70
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
69
71
|
}
|
|
70
72
|
function Kt(e) {
|
|
71
73
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
72
74
|
}
|
|
73
|
-
function
|
|
75
|
+
function Ms() {
|
|
74
76
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
75
77
|
}
|
|
76
78
|
let x = !1;
|
|
77
|
-
function
|
|
79
|
+
function pe(e) {
|
|
78
80
|
x = e;
|
|
79
81
|
}
|
|
80
82
|
let E;
|
|
81
|
-
function
|
|
83
|
+
function q(e) {
|
|
82
84
|
if (e === null)
|
|
83
|
-
throw Kt(),
|
|
85
|
+
throw Kt(), dt;
|
|
84
86
|
return E = e;
|
|
85
87
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
88
|
+
function kt() {
|
|
89
|
+
return q(/* @__PURE__ */ ye(E));
|
|
88
90
|
}
|
|
89
91
|
function Jt(e) {
|
|
90
92
|
if (x) {
|
|
91
|
-
if (/* @__PURE__ */
|
|
92
|
-
throw Kt(),
|
|
93
|
+
if (/* @__PURE__ */ ye(E) !== null)
|
|
94
|
+
throw Kt(), dt;
|
|
93
95
|
E = e;
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
|
-
function
|
|
98
|
+
function ks(e = 1) {
|
|
97
99
|
if (x) {
|
|
98
100
|
for (var t = e, r = E; t--; )
|
|
99
101
|
r = /** @type {TemplateNode} */
|
|
100
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ ye(r);
|
|
101
103
|
E = r;
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
|
-
function
|
|
106
|
+
function fr(e = !0) {
|
|
105
107
|
for (var t = 0, r = E; ; ) {
|
|
106
|
-
if (r.nodeType ===
|
|
108
|
+
if (r.nodeType === It) {
|
|
107
109
|
var n = (
|
|
108
110
|
/** @type {Comment} */
|
|
109
111
|
r.data
|
|
110
112
|
);
|
|
111
|
-
if (n ===
|
|
113
|
+
if (n === Pr) {
|
|
112
114
|
if (t === 0) return r;
|
|
113
115
|
t -= 1;
|
|
114
|
-
} else (n ===
|
|
116
|
+
} else (n === Dr || n === cr || // "[1", "[2", etc. for if blocks
|
|
115
117
|
n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
116
118
|
}
|
|
117
119
|
var i = (
|
|
118
120
|
/** @type {TemplateNode} */
|
|
119
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ ye(r)
|
|
120
122
|
);
|
|
121
123
|
e && r.remove(), r = i;
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
|
-
function
|
|
125
|
-
if (!e || e.nodeType !==
|
|
126
|
-
throw Kt(),
|
|
126
|
+
function Rn(e) {
|
|
127
|
+
if (!e || e.nodeType !== It)
|
|
128
|
+
throw Kt(), dt;
|
|
127
129
|
return (
|
|
128
130
|
/** @type {Comment} */
|
|
129
131
|
e.data
|
|
130
132
|
);
|
|
131
133
|
}
|
|
132
|
-
function
|
|
134
|
+
function Ln(e) {
|
|
133
135
|
return e === this.v;
|
|
134
136
|
}
|
|
135
|
-
function
|
|
137
|
+
function Rs(e, t) {
|
|
136
138
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
137
139
|
}
|
|
138
|
-
function
|
|
139
|
-
return !
|
|
140
|
+
function Nn(e) {
|
|
141
|
+
return !Rs(e, this.v);
|
|
140
142
|
}
|
|
141
|
-
let
|
|
142
|
-
function
|
|
143
|
-
|
|
143
|
+
let Ls = !1, K = null;
|
|
144
|
+
function Rt(e) {
|
|
145
|
+
K = e;
|
|
144
146
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
147
|
-
p:
|
|
147
|
+
function On(e, t = !1, r) {
|
|
148
|
+
K = {
|
|
149
|
+
p: K,
|
|
148
150
|
i: !1,
|
|
149
151
|
c: null,
|
|
150
152
|
e: null,
|
|
@@ -153,52 +155,52 @@ function Mn(e, t = !1, r) {
|
|
|
153
155
|
l: null
|
|
154
156
|
};
|
|
155
157
|
}
|
|
156
|
-
function
|
|
158
|
+
function Vn(e) {
|
|
157
159
|
var t = (
|
|
158
160
|
/** @type {ComponentContext} */
|
|
159
|
-
|
|
161
|
+
K
|
|
160
162
|
), r = t.e;
|
|
161
163
|
if (r !== null) {
|
|
162
164
|
t.e = null;
|
|
163
165
|
for (var n of r)
|
|
164
166
|
si(n);
|
|
165
167
|
}
|
|
166
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
168
|
+
return e !== void 0 && (t.x = e), t.i = !0, K = t.p, e ?? /** @type {T} */
|
|
167
169
|
{};
|
|
168
170
|
}
|
|
169
|
-
function
|
|
171
|
+
function In() {
|
|
170
172
|
return !0;
|
|
171
173
|
}
|
|
172
|
-
let
|
|
173
|
-
function
|
|
174
|
-
var e =
|
|
175
|
-
|
|
174
|
+
let tt = [];
|
|
175
|
+
function Hn() {
|
|
176
|
+
var e = tt;
|
|
177
|
+
tt = [], hs(e);
|
|
176
178
|
}
|
|
177
|
-
function
|
|
178
|
-
if (
|
|
179
|
-
var t =
|
|
179
|
+
function at(e) {
|
|
180
|
+
if (tt.length === 0 && !Ft) {
|
|
181
|
+
var t = tt;
|
|
180
182
|
queueMicrotask(() => {
|
|
181
|
-
t ===
|
|
183
|
+
t === tt && Hn();
|
|
182
184
|
});
|
|
183
185
|
}
|
|
184
|
-
|
|
186
|
+
tt.push(e);
|
|
185
187
|
}
|
|
186
|
-
function
|
|
187
|
-
for (;
|
|
188
|
-
|
|
188
|
+
function Ns() {
|
|
189
|
+
for (; tt.length > 0; )
|
|
190
|
+
Hn();
|
|
189
191
|
}
|
|
190
|
-
function
|
|
192
|
+
function Dn(e) {
|
|
191
193
|
var t = $;
|
|
192
194
|
if (t === null)
|
|
193
|
-
return y.f |=
|
|
194
|
-
if ((t.f &
|
|
195
|
+
return y.f |= Ue, e;
|
|
196
|
+
if ((t.f & Vt) === 0 && (t.f & Zt) === 0)
|
|
195
197
|
throw e;
|
|
196
|
-
|
|
198
|
+
Lt(e, t);
|
|
197
199
|
}
|
|
198
|
-
function
|
|
200
|
+
function Lt(e, t) {
|
|
199
201
|
for (; t !== null; ) {
|
|
200
|
-
if ((t.f &
|
|
201
|
-
if ((t.f &
|
|
202
|
+
if ((t.f & xr) !== 0) {
|
|
203
|
+
if ((t.f & Vt) === 0)
|
|
202
204
|
throw e;
|
|
203
205
|
try {
|
|
204
206
|
t.b.error(e);
|
|
@@ -211,78 +213,78 @@ function kt(e, t) {
|
|
|
211
213
|
}
|
|
212
214
|
throw e;
|
|
213
215
|
}
|
|
214
|
-
const
|
|
216
|
+
const Os = -7169;
|
|
215
217
|
function L(e, t) {
|
|
216
|
-
e.f = e.f &
|
|
218
|
+
e.f = e.f & Os | t;
|
|
217
219
|
}
|
|
218
|
-
function
|
|
219
|
-
(e.f & le) !== 0 || e.deps === null ? L(e,
|
|
220
|
+
function Br(e) {
|
|
221
|
+
(e.f & le) !== 0 || e.deps === null ? L(e, I) : L(e, we);
|
|
220
222
|
}
|
|
221
|
-
function
|
|
223
|
+
function Pn(e) {
|
|
222
224
|
if (e !== null)
|
|
223
225
|
for (const t of e)
|
|
224
|
-
(t.f & D) === 0 || (t.f &
|
|
226
|
+
(t.f & D) === 0 || (t.f & ht) === 0 || (t.f ^= ht, Pn(
|
|
225
227
|
/** @type {Derived} */
|
|
226
228
|
t.deps
|
|
227
229
|
));
|
|
228
230
|
}
|
|
229
|
-
function
|
|
230
|
-
(e.f &
|
|
231
|
+
function Fn(e, t, r) {
|
|
232
|
+
(e.f & P) !== 0 ? t.add(e) : (e.f & we) !== 0 && r.add(e), Pn(e.deps), L(e, I);
|
|
231
233
|
}
|
|
232
234
|
const Qt = /* @__PURE__ */ new Set();
|
|
233
|
-
let S = null,
|
|
234
|
-
var
|
|
235
|
+
let S = null, ve = null, Y = [], pr = null, Tr = !1, Ft = !1;
|
|
236
|
+
var yt, $t, it, xt, qt, zt, st, Le, Et, Se, Ar, Cr, Bn;
|
|
235
237
|
const Wr = class Wr {
|
|
236
238
|
constructor() {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
m(this, Se);
|
|
240
|
+
R(this, "committed", !1);
|
|
239
241
|
/**
|
|
240
242
|
* The current values of any sources that are updated in this batch
|
|
241
243
|
* They keys of this map are identical to `this.#previous`
|
|
242
244
|
* @type {Map<Source, any>}
|
|
243
245
|
*/
|
|
244
|
-
|
|
246
|
+
R(this, "current", /* @__PURE__ */ new Map());
|
|
245
247
|
/**
|
|
246
248
|
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
247
249
|
* They keys of this map are identical to `this.#current`
|
|
248
250
|
* @type {Map<Source, any>}
|
|
249
251
|
*/
|
|
250
|
-
|
|
252
|
+
R(this, "previous", /* @__PURE__ */ new Map());
|
|
251
253
|
/**
|
|
252
254
|
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
253
255
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
254
256
|
* @type {Set<() => void>}
|
|
255
257
|
*/
|
|
256
|
-
|
|
258
|
+
m(this, yt, /* @__PURE__ */ new Set());
|
|
257
259
|
/**
|
|
258
260
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
259
261
|
* @type {Set<(batch: Batch) => void>}
|
|
260
262
|
*/
|
|
261
|
-
|
|
263
|
+
m(this, $t, /* @__PURE__ */ new Set());
|
|
262
264
|
/**
|
|
263
265
|
* The number of async effects that are currently in flight
|
|
264
266
|
*/
|
|
265
|
-
|
|
267
|
+
m(this, it, 0);
|
|
266
268
|
/**
|
|
267
269
|
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
268
270
|
*/
|
|
269
|
-
|
|
271
|
+
m(this, xt, 0);
|
|
270
272
|
/**
|
|
271
273
|
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
272
274
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
273
275
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
274
276
|
*/
|
|
275
|
-
|
|
277
|
+
m(this, qt, null);
|
|
276
278
|
/**
|
|
277
279
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
278
280
|
* @type {Set<Effect>}
|
|
279
281
|
*/
|
|
280
|
-
|
|
282
|
+
m(this, zt, /* @__PURE__ */ new Set());
|
|
281
283
|
/**
|
|
282
284
|
* Deferred effects that are MAYBE_DIRTY
|
|
283
285
|
* @type {Set<Effect>}
|
|
284
286
|
*/
|
|
285
|
-
|
|
287
|
+
m(this, st, /* @__PURE__ */ new Set());
|
|
286
288
|
/**
|
|
287
289
|
* A map of branches that still exist, but will be destroyed when this batch
|
|
288
290
|
* is committed — we skip over these during `process`.
|
|
@@ -290,19 +292,19 @@ const Wr = class Wr {
|
|
|
290
292
|
* so they can be rescheduled if the branch survives.
|
|
291
293
|
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
292
294
|
*/
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
295
|
+
m(this, Le, /* @__PURE__ */ new Map());
|
|
296
|
+
R(this, "is_fork", !1);
|
|
297
|
+
m(this, Et, !1);
|
|
296
298
|
}
|
|
297
299
|
is_deferred() {
|
|
298
|
-
return this.is_fork ||
|
|
300
|
+
return this.is_fork || u(this, xt) > 0;
|
|
299
301
|
}
|
|
300
302
|
/**
|
|
301
303
|
* Add an effect to the #skipped_branches map and reset its children
|
|
302
304
|
* @param {Effect} effect
|
|
303
305
|
*/
|
|
304
306
|
skip_effect(t) {
|
|
305
|
-
|
|
307
|
+
u(this, Le).has(t) || u(this, Le).set(t, { d: [], m: [] });
|
|
306
308
|
}
|
|
307
309
|
/**
|
|
308
310
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -310,13 +312,13 @@ const Wr = class Wr {
|
|
|
310
312
|
* @param {Effect} effect
|
|
311
313
|
*/
|
|
312
314
|
unskip_effect(t) {
|
|
313
|
-
var r =
|
|
315
|
+
var r = u(this, Le).get(t);
|
|
314
316
|
if (r) {
|
|
315
|
-
|
|
317
|
+
u(this, Le).delete(t);
|
|
316
318
|
for (var n of r.d)
|
|
317
|
-
L(n,
|
|
319
|
+
L(n, P), _e(n);
|
|
318
320
|
for (n of r.m)
|
|
319
|
-
L(n, we),
|
|
321
|
+
L(n, we), _e(n);
|
|
320
322
|
}
|
|
321
323
|
}
|
|
322
324
|
/**
|
|
@@ -327,16 +329,16 @@ const Wr = class Wr {
|
|
|
327
329
|
Y = [], this.apply();
|
|
328
330
|
var r = [], n = [];
|
|
329
331
|
for (const i of t)
|
|
330
|
-
|
|
332
|
+
B(this, Se, Ar).call(this, i, r, n);
|
|
331
333
|
if (this.is_deferred()) {
|
|
332
|
-
|
|
333
|
-
for (const [i, s] of
|
|
334
|
-
|
|
334
|
+
B(this, Se, Cr).call(this, n), B(this, Se, Cr).call(this, r);
|
|
335
|
+
for (const [i, s] of u(this, Le))
|
|
336
|
+
zn(i, s);
|
|
335
337
|
} else {
|
|
336
|
-
for (const i of
|
|
337
|
-
|
|
338
|
+
for (const i of u(this, yt)) i();
|
|
339
|
+
u(this, yt).clear(), u(this, it) === 0 && B(this, Se, Bn).call(this), S = null, dn(n), dn(r), u(this, qt)?.resolve();
|
|
338
340
|
}
|
|
339
|
-
|
|
341
|
+
ve = null;
|
|
340
342
|
}
|
|
341
343
|
/**
|
|
342
344
|
* Associate a change to a given source with the current
|
|
@@ -345,63 +347,63 @@ const Wr = class Wr {
|
|
|
345
347
|
* @param {any} value
|
|
346
348
|
*/
|
|
347
349
|
capture(t, r) {
|
|
348
|
-
r !==
|
|
350
|
+
r !== H && !this.previous.has(t) && this.previous.set(t, r), (t.f & Ue) === 0 && (this.current.set(t, t.v), ve?.set(t, t.v));
|
|
349
351
|
}
|
|
350
352
|
activate() {
|
|
351
353
|
S = this, this.apply();
|
|
352
354
|
}
|
|
353
355
|
deactivate() {
|
|
354
|
-
S === this && (S = null,
|
|
356
|
+
S === this && (S = null, ve = null);
|
|
355
357
|
}
|
|
356
358
|
flush() {
|
|
357
359
|
if (this.activate(), Y.length > 0) {
|
|
358
|
-
if (
|
|
360
|
+
if (Zn(), S !== null && S !== this)
|
|
359
361
|
return;
|
|
360
|
-
} else
|
|
362
|
+
} else u(this, it) === 0 && this.process([]);
|
|
361
363
|
this.deactivate();
|
|
362
364
|
}
|
|
363
365
|
discard() {
|
|
364
|
-
for (const t of
|
|
365
|
-
|
|
366
|
+
for (const t of u(this, $t)) t(this);
|
|
367
|
+
u(this, $t).clear();
|
|
366
368
|
}
|
|
367
369
|
/**
|
|
368
370
|
*
|
|
369
371
|
* @param {boolean} blocking
|
|
370
372
|
*/
|
|
371
373
|
increment(t) {
|
|
372
|
-
b(this,
|
|
374
|
+
b(this, it, u(this, it) + 1), t && b(this, xt, u(this, xt) + 1);
|
|
373
375
|
}
|
|
374
376
|
/**
|
|
375
377
|
*
|
|
376
378
|
* @param {boolean} blocking
|
|
377
379
|
*/
|
|
378
380
|
decrement(t) {
|
|
379
|
-
b(this,
|
|
380
|
-
b(this,
|
|
381
|
+
b(this, it, u(this, it) - 1), t && b(this, xt, u(this, xt) - 1), !u(this, Et) && (b(this, Et, !0), at(() => {
|
|
382
|
+
b(this, Et, !1), this.is_deferred() ? Y.length > 0 && this.flush() : this.revive();
|
|
381
383
|
}));
|
|
382
384
|
}
|
|
383
385
|
revive() {
|
|
384
|
-
for (const t of
|
|
385
|
-
|
|
386
|
-
for (const t of
|
|
387
|
-
L(t, we),
|
|
386
|
+
for (const t of u(this, zt))
|
|
387
|
+
u(this, st).delete(t), L(t, P), _e(t);
|
|
388
|
+
for (const t of u(this, st))
|
|
389
|
+
L(t, we), _e(t);
|
|
388
390
|
this.flush();
|
|
389
391
|
}
|
|
390
392
|
/** @param {() => void} fn */
|
|
391
393
|
oncommit(t) {
|
|
392
|
-
|
|
394
|
+
u(this, yt).add(t);
|
|
393
395
|
}
|
|
394
396
|
/** @param {(batch: Batch) => void} fn */
|
|
395
397
|
ondiscard(t) {
|
|
396
|
-
|
|
398
|
+
u(this, $t).add(t);
|
|
397
399
|
}
|
|
398
400
|
settled() {
|
|
399
|
-
return (
|
|
401
|
+
return (u(this, qt) ?? b(this, qt, Cn())).promise;
|
|
400
402
|
}
|
|
401
403
|
static ensure() {
|
|
402
404
|
if (S === null) {
|
|
403
405
|
const t = S = new Wr();
|
|
404
|
-
Qt.add(S),
|
|
406
|
+
Qt.add(S), Ft || at(() => {
|
|
405
407
|
S === t && t.flush();
|
|
406
408
|
});
|
|
407
409
|
}
|
|
@@ -410,22 +412,22 @@ const Wr = class Wr {
|
|
|
410
412
|
apply() {
|
|
411
413
|
}
|
|
412
414
|
};
|
|
413
|
-
|
|
415
|
+
yt = new WeakMap(), $t = new WeakMap(), it = new WeakMap(), xt = new WeakMap(), qt = new WeakMap(), zt = new WeakMap(), st = new WeakMap(), Le = new WeakMap(), Et = new WeakMap(), Se = new WeakSet(), /**
|
|
414
416
|
* Traverse the effect tree, executing effects or stashing
|
|
415
417
|
* them for later execution as appropriate
|
|
416
418
|
* @param {Effect} root
|
|
417
419
|
* @param {Effect[]} effects
|
|
418
420
|
* @param {Effect[]} render_effects
|
|
419
421
|
*/
|
|
420
|
-
|
|
421
|
-
t.f ^=
|
|
422
|
+
Ar = function(t, r, n) {
|
|
423
|
+
t.f ^= I;
|
|
422
424
|
for (var i = t.first, s = null; i !== null; ) {
|
|
423
|
-
var o = i.f, l = (o & (
|
|
424
|
-
if (!
|
|
425
|
-
l ? i.f ^=
|
|
426
|
-
var
|
|
427
|
-
if (
|
|
428
|
-
i =
|
|
425
|
+
var o = i.f, l = (o & (me | We)) !== 0, f = l && (o & I) !== 0, a = f || (o & te) !== 0 || u(this, Le).has(i);
|
|
426
|
+
if (!a && i.fn !== null) {
|
|
427
|
+
l ? i.f ^= I : s !== null && (o & (Zt | hr | Sn)) !== 0 ? s.b.defer_effect(i) : (o & Zt) !== 0 ? r.push(i) : Wt(i) && ((o & Pe) !== 0 && u(this, st).add(i), Ot(i));
|
|
428
|
+
var d = i.first;
|
|
429
|
+
if (d !== null) {
|
|
430
|
+
i = d;
|
|
429
431
|
continue;
|
|
430
432
|
}
|
|
431
433
|
}
|
|
@@ -442,137 +444,137 @@ Sr = function(t, r, n) {
|
|
|
442
444
|
}, /**
|
|
443
445
|
* @param {Effect[]} effects
|
|
444
446
|
*/
|
|
445
|
-
|
|
447
|
+
Cr = function(t) {
|
|
446
448
|
for (var r = 0; r < t.length; r += 1)
|
|
447
|
-
|
|
449
|
+
Fn(t[r], u(this, zt), u(this, st));
|
|
448
450
|
}, Bn = function() {
|
|
449
451
|
var i;
|
|
450
452
|
if (Qt.size > 1) {
|
|
451
453
|
this.previous.clear();
|
|
452
|
-
var t =
|
|
454
|
+
var t = ve, r = !0;
|
|
453
455
|
for (const s of Qt) {
|
|
454
456
|
if (s === this) {
|
|
455
457
|
r = !1;
|
|
456
458
|
continue;
|
|
457
459
|
}
|
|
458
460
|
const o = [];
|
|
459
|
-
for (const [
|
|
460
|
-
if (s.current.has(
|
|
461
|
-
if (r &&
|
|
462
|
-
s.current.set(
|
|
461
|
+
for (const [f, a] of this.current) {
|
|
462
|
+
if (s.current.has(f))
|
|
463
|
+
if (r && a !== s.current.get(f))
|
|
464
|
+
s.current.set(f, a);
|
|
463
465
|
else
|
|
464
466
|
continue;
|
|
465
|
-
o.push(
|
|
467
|
+
o.push(f);
|
|
466
468
|
}
|
|
467
469
|
if (o.length === 0)
|
|
468
470
|
continue;
|
|
469
|
-
const l = [...s.current.keys()].filter((
|
|
471
|
+
const l = [...s.current.keys()].filter((f) => !this.current.has(f));
|
|
470
472
|
if (l.length > 0) {
|
|
471
473
|
var n = Y;
|
|
472
474
|
Y = [];
|
|
473
|
-
const
|
|
474
|
-
for (const
|
|
475
|
-
|
|
475
|
+
const f = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
476
|
+
for (const d of o)
|
|
477
|
+
jn(d, l, f, a);
|
|
476
478
|
if (Y.length > 0) {
|
|
477
479
|
S = s, s.apply();
|
|
478
|
-
for (const
|
|
479
|
-
|
|
480
|
+
for (const d of Y)
|
|
481
|
+
B(i = s, Se, Ar).call(i, d, [], []);
|
|
480
482
|
s.deactivate();
|
|
481
483
|
}
|
|
482
484
|
Y = n;
|
|
483
485
|
}
|
|
484
486
|
}
|
|
485
|
-
S = null,
|
|
487
|
+
S = null, ve = t;
|
|
486
488
|
}
|
|
487
489
|
this.committed = !0, Qt.delete(this);
|
|
488
490
|
};
|
|
489
|
-
let
|
|
490
|
-
function
|
|
491
|
-
var t =
|
|
492
|
-
|
|
491
|
+
let De = Wr;
|
|
492
|
+
function rr(e) {
|
|
493
|
+
var t = Ft;
|
|
494
|
+
Ft = !0;
|
|
493
495
|
try {
|
|
494
496
|
for (var r; ; ) {
|
|
495
|
-
if (
|
|
497
|
+
if (Ns(), Y.length === 0 && (S?.flush(), Y.length === 0))
|
|
496
498
|
return pr = null, /** @type {T} */
|
|
497
499
|
r;
|
|
498
|
-
|
|
500
|
+
Zn();
|
|
499
501
|
}
|
|
500
502
|
} finally {
|
|
501
|
-
|
|
503
|
+
Ft = t;
|
|
502
504
|
}
|
|
503
505
|
}
|
|
504
|
-
function
|
|
505
|
-
|
|
506
|
+
function Zn() {
|
|
507
|
+
Tr = !0;
|
|
506
508
|
var e = null;
|
|
507
509
|
try {
|
|
508
510
|
for (var t = 0; Y.length > 0; ) {
|
|
509
|
-
var r =
|
|
511
|
+
var r = De.ensure();
|
|
510
512
|
if (t++ > 1e3) {
|
|
511
513
|
var n, i;
|
|
512
|
-
|
|
514
|
+
Vs();
|
|
513
515
|
}
|
|
514
|
-
r.process(Y),
|
|
516
|
+
r.process(Y), Ye.clear();
|
|
515
517
|
}
|
|
516
518
|
} finally {
|
|
517
|
-
Y = [],
|
|
519
|
+
Y = [], Tr = !1, pr = null;
|
|
518
520
|
}
|
|
519
521
|
}
|
|
520
|
-
function
|
|
522
|
+
function Vs() {
|
|
521
523
|
try {
|
|
522
|
-
|
|
524
|
+
xs();
|
|
523
525
|
} catch (e) {
|
|
524
|
-
|
|
526
|
+
Lt(e, pr);
|
|
525
527
|
}
|
|
526
528
|
}
|
|
527
|
-
let
|
|
528
|
-
function
|
|
529
|
+
let Re = null;
|
|
530
|
+
function dn(e) {
|
|
529
531
|
var t = e.length;
|
|
530
532
|
if (t !== 0) {
|
|
531
533
|
for (var r = 0; r < t; ) {
|
|
532
534
|
var n = e[r++];
|
|
533
|
-
if ((n.f & (
|
|
534
|
-
|
|
535
|
-
for (const i of
|
|
536
|
-
if ((i.f & (
|
|
535
|
+
if ((n.f & (He | te)) === 0 && Wt(n) && (Re = /* @__PURE__ */ new Set(), Ot(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && ai(n), Re?.size > 0)) {
|
|
536
|
+
Ye.clear();
|
|
537
|
+
for (const i of Re) {
|
|
538
|
+
if ((i.f & (He | te)) !== 0) continue;
|
|
537
539
|
const s = [i];
|
|
538
540
|
let o = i.parent;
|
|
539
541
|
for (; o !== null; )
|
|
540
|
-
|
|
542
|
+
Re.has(o) && (Re.delete(o), s.push(o)), o = o.parent;
|
|
541
543
|
for (let l = s.length - 1; l >= 0; l--) {
|
|
542
|
-
const
|
|
543
|
-
(
|
|
544
|
+
const f = s[l];
|
|
545
|
+
(f.f & (He | te)) === 0 && Ot(f);
|
|
544
546
|
}
|
|
545
547
|
}
|
|
546
|
-
|
|
548
|
+
Re.clear();
|
|
547
549
|
}
|
|
548
550
|
}
|
|
549
|
-
|
|
551
|
+
Re = null;
|
|
550
552
|
}
|
|
551
553
|
}
|
|
552
|
-
function
|
|
554
|
+
function jn(e, t, r, n) {
|
|
553
555
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
554
556
|
for (const i of e.reactions) {
|
|
555
557
|
const s = i.f;
|
|
556
|
-
(s & D) !== 0 ?
|
|
558
|
+
(s & D) !== 0 ? jn(
|
|
557
559
|
/** @type {Derived} */
|
|
558
560
|
i,
|
|
559
561
|
t,
|
|
560
562
|
r,
|
|
561
563
|
n
|
|
562
|
-
) : (s & (
|
|
564
|
+
) : (s & (Fr | Pe)) !== 0 && (s & P) === 0 && qn(i, t, n) && (L(i, P), _e(
|
|
563
565
|
/** @type {Effect} */
|
|
564
566
|
i
|
|
565
567
|
));
|
|
566
568
|
}
|
|
567
569
|
}
|
|
568
|
-
function
|
|
570
|
+
function qn(e, t, r) {
|
|
569
571
|
const n = r.get(e);
|
|
570
572
|
if (n !== void 0) return n;
|
|
571
573
|
if (e.deps !== null)
|
|
572
574
|
for (const i of e.deps) {
|
|
573
|
-
if (
|
|
575
|
+
if (St.call(t, i))
|
|
574
576
|
return !0;
|
|
575
|
-
if ((i.f & D) !== 0 &&
|
|
577
|
+
if ((i.f & D) !== 0 && qn(
|
|
576
578
|
/** @type {Derived} */
|
|
577
579
|
i,
|
|
578
580
|
t,
|
|
@@ -586,77 +588,77 @@ function jn(e, t, r) {
|
|
|
586
588
|
}
|
|
587
589
|
return r.set(e, !1), !1;
|
|
588
590
|
}
|
|
589
|
-
function
|
|
591
|
+
function _e(e) {
|
|
590
592
|
for (var t = pr = e; t.parent !== null; ) {
|
|
591
593
|
t = t.parent;
|
|
592
594
|
var r = t.f;
|
|
593
|
-
if (
|
|
595
|
+
if (Tr && t === $ && (r & Pe) !== 0 && (r & Mn) === 0)
|
|
594
596
|
return;
|
|
595
|
-
if ((r & (
|
|
596
|
-
if ((r &
|
|
597
|
-
t.f ^=
|
|
597
|
+
if ((r & (We | me)) !== 0) {
|
|
598
|
+
if ((r & I) === 0) return;
|
|
599
|
+
t.f ^= I;
|
|
598
600
|
}
|
|
599
601
|
}
|
|
600
602
|
Y.push(t);
|
|
601
603
|
}
|
|
602
|
-
function
|
|
603
|
-
if (!((e.f &
|
|
604
|
-
(e.f &
|
|
604
|
+
function zn(e, t) {
|
|
605
|
+
if (!((e.f & me) !== 0 && (e.f & I) !== 0)) {
|
|
606
|
+
(e.f & P) !== 0 ? t.d.push(e) : (e.f & we) !== 0 && t.m.push(e), L(e, I);
|
|
605
607
|
for (var r = e.first; r !== null; )
|
|
606
|
-
|
|
608
|
+
zn(r, t), r = r.next;
|
|
607
609
|
}
|
|
608
610
|
}
|
|
609
|
-
function
|
|
610
|
-
let t = 0, r =
|
|
611
|
+
function Is(e) {
|
|
612
|
+
let t = 0, r = vt(0), n;
|
|
611
613
|
return () => {
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
614
|
+
zr() && (v(r), Ur(() => (t === 0 && (n = gr(() => e(() => Bt(r)))), t += 1, () => {
|
|
615
|
+
at(() => {
|
|
616
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Bt(r));
|
|
615
617
|
});
|
|
616
618
|
})));
|
|
617
619
|
};
|
|
618
620
|
}
|
|
619
|
-
var
|
|
620
|
-
function
|
|
621
|
-
new
|
|
621
|
+
var Hs = Mt | pt;
|
|
622
|
+
function Ds(e, t, r) {
|
|
623
|
+
new Ps(e, t, r);
|
|
622
624
|
}
|
|
623
|
-
var se,
|
|
624
|
-
class
|
|
625
|
+
var se, Ut, Ne, ot, Ee, Te, Q, Ae, Oe, lt, qe, Tt, At, Ct, Ve, ar, F, Un, Yn, Sr, nr, Mr;
|
|
626
|
+
class Ps {
|
|
625
627
|
/**
|
|
626
628
|
* @param {TemplateNode} node
|
|
627
629
|
* @param {BoundaryProps} props
|
|
628
630
|
* @param {((anchor: Node) => void)} children
|
|
629
631
|
*/
|
|
630
632
|
constructor(t, r, n) {
|
|
631
|
-
|
|
633
|
+
m(this, F);
|
|
632
634
|
/** @type {Boundary | null} */
|
|
633
|
-
|
|
634
|
-
|
|
635
|
+
R(this, "parent");
|
|
636
|
+
R(this, "is_pending", !1);
|
|
635
637
|
/** @type {TemplateNode} */
|
|
636
|
-
|
|
638
|
+
m(this, se);
|
|
637
639
|
/** @type {TemplateNode | null} */
|
|
638
|
-
|
|
640
|
+
m(this, Ut, x ? E : null);
|
|
639
641
|
/** @type {BoundaryProps} */
|
|
640
|
-
|
|
642
|
+
m(this, Ne);
|
|
641
643
|
/** @type {((anchor: Node) => void)} */
|
|
642
|
-
|
|
644
|
+
m(this, ot);
|
|
643
645
|
/** @type {Effect} */
|
|
644
|
-
|
|
646
|
+
m(this, Ee);
|
|
645
647
|
/** @type {Effect | null} */
|
|
646
|
-
|
|
648
|
+
m(this, Te, null);
|
|
647
649
|
/** @type {Effect | null} */
|
|
648
|
-
|
|
650
|
+
m(this, Q, null);
|
|
649
651
|
/** @type {Effect | null} */
|
|
650
|
-
|
|
652
|
+
m(this, Ae, null);
|
|
651
653
|
/** @type {DocumentFragment | null} */
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
654
|
+
m(this, Oe, null);
|
|
655
|
+
m(this, lt, 0);
|
|
656
|
+
m(this, qe, 0);
|
|
657
|
+
m(this, Tt, !1);
|
|
656
658
|
/** @type {Set<Effect>} */
|
|
657
|
-
|
|
659
|
+
m(this, At, /* @__PURE__ */ new Set());
|
|
658
660
|
/** @type {Set<Effect>} */
|
|
659
|
-
|
|
661
|
+
m(this, Ct, /* @__PURE__ */ new Set());
|
|
660
662
|
/**
|
|
661
663
|
* A source containing the number of pending async deriveds/expressions.
|
|
662
664
|
* Only created if `$effect.pending()` is used inside the boundary,
|
|
@@ -664,34 +666,34 @@ class Cs {
|
|
|
664
666
|
* calls followed by no-op flushes
|
|
665
667
|
* @type {Source<number> | null}
|
|
666
668
|
*/
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
b(this,
|
|
669
|
+
m(this, Ve, null);
|
|
670
|
+
m(this, ar, Is(() => (b(this, Ve, vt(u(this, lt))), () => {
|
|
671
|
+
b(this, Ve, null);
|
|
670
672
|
})));
|
|
671
|
-
b(this, se, t), b(this,
|
|
673
|
+
b(this, se, t), b(this, Ne, r), b(this, ot, (i) => {
|
|
672
674
|
var s = (
|
|
673
675
|
/** @type {Effect} */
|
|
674
676
|
$
|
|
675
677
|
);
|
|
676
|
-
s.b = this, s.f |=
|
|
678
|
+
s.b = this, s.f |= xr, n(i);
|
|
677
679
|
}), this.parent = /** @type {Effect} */
|
|
678
|
-
$.b, b(this, Ee,
|
|
680
|
+
$.b, b(this, Ee, Yr(() => {
|
|
679
681
|
if (x) {
|
|
680
682
|
const i = (
|
|
681
683
|
/** @type {Comment} */
|
|
682
|
-
|
|
684
|
+
u(this, Ut)
|
|
683
685
|
);
|
|
684
|
-
|
|
686
|
+
kt(), i.data === cr ? B(this, F, Yn).call(this) : B(this, F, Un).call(this);
|
|
685
687
|
} else
|
|
686
|
-
|
|
687
|
-
},
|
|
688
|
+
B(this, F, Sr).call(this);
|
|
689
|
+
}, Hs)), x && b(this, se, E);
|
|
688
690
|
}
|
|
689
691
|
/**
|
|
690
692
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
691
693
|
* @param {Effect} effect
|
|
692
694
|
*/
|
|
693
695
|
defer_effect(t) {
|
|
694
|
-
|
|
696
|
+
Fn(t, u(this, At), u(this, Ct));
|
|
695
697
|
}
|
|
696
698
|
/**
|
|
697
699
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -701,7 +703,7 @@ class Cs {
|
|
|
701
703
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
702
704
|
}
|
|
703
705
|
has_pending_snippet() {
|
|
704
|
-
return !!
|
|
706
|
+
return !!u(this, Ne).pending;
|
|
705
707
|
}
|
|
706
708
|
/**
|
|
707
709
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -710,99 +712,99 @@ class Cs {
|
|
|
710
712
|
* @param {1 | -1} d
|
|
711
713
|
*/
|
|
712
714
|
update_pending_count(t) {
|
|
713
|
-
|
|
714
|
-
b(this,
|
|
715
|
+
B(this, F, Mr).call(this, t), b(this, lt, u(this, lt) + t), !(!u(this, Ve) || u(this, Tt)) && (b(this, Tt, !0), at(() => {
|
|
716
|
+
b(this, Tt, !1), u(this, Ve) && Nt(u(this, Ve), u(this, lt));
|
|
715
717
|
}));
|
|
716
718
|
}
|
|
717
719
|
get_effect_pending() {
|
|
718
|
-
return
|
|
720
|
+
return u(this, ar).call(this), v(
|
|
719
721
|
/** @type {Source<number>} */
|
|
720
|
-
|
|
722
|
+
u(this, Ve)
|
|
721
723
|
);
|
|
722
724
|
}
|
|
723
725
|
/** @param {unknown} error */
|
|
724
726
|
error(t) {
|
|
725
|
-
var r =
|
|
726
|
-
let n =
|
|
727
|
+
var r = u(this, Ne).onerror;
|
|
728
|
+
let n = u(this, Ne).failed;
|
|
727
729
|
if (!r && !n)
|
|
728
730
|
throw t;
|
|
729
|
-
|
|
731
|
+
u(this, Te) && (z(u(this, Te)), b(this, Te, null)), u(this, Q) && (z(u(this, Q)), b(this, Q, null)), u(this, Ae) && (z(u(this, Ae)), b(this, Ae, null)), x && (q(
|
|
730
732
|
/** @type {TemplateNode} */
|
|
731
|
-
|
|
732
|
-
),
|
|
733
|
+
u(this, Ut)
|
|
734
|
+
), ks(), q(fr()));
|
|
733
735
|
var i = !1, s = !1;
|
|
734
736
|
const o = () => {
|
|
735
737
|
if (i) {
|
|
736
|
-
|
|
738
|
+
Ms();
|
|
737
739
|
return;
|
|
738
740
|
}
|
|
739
|
-
i = !0, s &&
|
|
741
|
+
i = !0, s && Ss(), u(this, Ae) !== null && ut(u(this, Ae), () => {
|
|
740
742
|
b(this, Ae, null);
|
|
741
|
-
}),
|
|
742
|
-
|
|
743
|
+
}), B(this, F, nr).call(this, () => {
|
|
744
|
+
De.ensure(), B(this, F, Sr).call(this);
|
|
743
745
|
});
|
|
744
746
|
};
|
|
745
|
-
|
|
747
|
+
at(() => {
|
|
746
748
|
try {
|
|
747
749
|
s = !0, r?.(t, o), s = !1;
|
|
748
750
|
} catch (l) {
|
|
749
|
-
|
|
751
|
+
Lt(l, u(this, Ee) && u(this, Ee).parent);
|
|
750
752
|
}
|
|
751
|
-
n && b(this, Ae,
|
|
752
|
-
|
|
753
|
+
n && b(this, Ae, B(this, F, nr).call(this, () => {
|
|
754
|
+
De.ensure();
|
|
753
755
|
try {
|
|
754
|
-
return
|
|
756
|
+
return he(() => {
|
|
755
757
|
var l = (
|
|
756
758
|
/** @type {Effect} */
|
|
757
759
|
$
|
|
758
760
|
);
|
|
759
|
-
l.b = this, l.f |=
|
|
760
|
-
|
|
761
|
+
l.b = this, l.f |= xr, n(
|
|
762
|
+
u(this, se),
|
|
761
763
|
() => t,
|
|
762
764
|
() => o
|
|
763
765
|
);
|
|
764
766
|
});
|
|
765
767
|
} catch (l) {
|
|
766
|
-
return
|
|
768
|
+
return Lt(
|
|
767
769
|
l,
|
|
768
770
|
/** @type {Effect} */
|
|
769
|
-
|
|
771
|
+
u(this, Ee).parent
|
|
770
772
|
), null;
|
|
771
773
|
}
|
|
772
774
|
}));
|
|
773
775
|
});
|
|
774
776
|
}
|
|
775
777
|
}
|
|
776
|
-
se = new WeakMap(),
|
|
778
|
+
se = new WeakMap(), Ut = new WeakMap(), Ne = new WeakMap(), ot = new WeakMap(), Ee = new WeakMap(), Te = new WeakMap(), Q = new WeakMap(), Ae = new WeakMap(), Oe = new WeakMap(), lt = new WeakMap(), qe = new WeakMap(), Tt = new WeakMap(), At = new WeakMap(), Ct = new WeakMap(), Ve = new WeakMap(), ar = new WeakMap(), F = new WeakSet(), Un = function() {
|
|
777
779
|
try {
|
|
778
|
-
b(this, Te,
|
|
780
|
+
b(this, Te, he(() => u(this, ot).call(this, u(this, se))));
|
|
779
781
|
} catch (t) {
|
|
780
782
|
this.error(t);
|
|
781
783
|
}
|
|
782
784
|
}, Yn = function() {
|
|
783
|
-
const t =
|
|
784
|
-
t && (this.is_pending = !0, b(this, Q,
|
|
785
|
-
var r = b(this,
|
|
786
|
-
r.append(n), b(this, Te,
|
|
785
|
+
const t = u(this, Ne).pending;
|
|
786
|
+
t && (this.is_pending = !0, b(this, Q, he(() => t(u(this, se)))), at(() => {
|
|
787
|
+
var r = b(this, Oe, document.createDocumentFragment()), n = fe();
|
|
788
|
+
r.append(n), b(this, Te, B(this, F, nr).call(this, () => (De.ensure(), he(() => u(this, ot).call(this, n))))), u(this, qe) === 0 && (u(this, se).before(r), b(this, Oe, null), ut(
|
|
787
789
|
/** @type {Effect} */
|
|
788
|
-
|
|
790
|
+
u(this, Q),
|
|
789
791
|
() => {
|
|
790
792
|
b(this, Q, null);
|
|
791
793
|
}
|
|
792
794
|
), this.is_pending = !1);
|
|
793
795
|
}));
|
|
794
|
-
},
|
|
796
|
+
}, Sr = function() {
|
|
795
797
|
try {
|
|
796
|
-
if (this.is_pending = this.has_pending_snippet(), b(this,
|
|
797
|
-
|
|
798
|
-
})),
|
|
799
|
-
var t = b(this,
|
|
800
|
-
di(
|
|
798
|
+
if (this.is_pending = this.has_pending_snippet(), b(this, qe, 0), b(this, lt, 0), b(this, Te, he(() => {
|
|
799
|
+
u(this, ot).call(this, u(this, se));
|
|
800
|
+
})), u(this, qe) > 0) {
|
|
801
|
+
var t = b(this, Oe, document.createDocumentFragment());
|
|
802
|
+
di(u(this, Te), t);
|
|
801
803
|
const r = (
|
|
802
804
|
/** @type {(anchor: Node) => void} */
|
|
803
|
-
|
|
805
|
+
u(this, Ne).pending
|
|
804
806
|
);
|
|
805
|
-
b(this, Q,
|
|
807
|
+
b(this, Q, he(() => r(u(this, se))));
|
|
806
808
|
} else
|
|
807
809
|
this.is_pending = !1;
|
|
808
810
|
} catch (r) {
|
|
@@ -813,38 +815,38 @@ se = new WeakMap(), Yt = new WeakMap(), De = new WeakMap(), lt = new WeakMap(),
|
|
|
813
815
|
* @param {() => T} fn
|
|
814
816
|
*/
|
|
815
817
|
nr = function(t) {
|
|
816
|
-
var r = $, n = y, i =
|
|
817
|
-
ue(
|
|
818
|
+
var r = $, n = y, i = K;
|
|
819
|
+
ue(u(this, Ee)), W(u(this, Ee)), Rt(u(this, Ee).ctx);
|
|
818
820
|
try {
|
|
819
821
|
return t();
|
|
820
822
|
} catch (s) {
|
|
821
|
-
return
|
|
823
|
+
return Dn(s), null;
|
|
822
824
|
} finally {
|
|
823
|
-
ue(r),
|
|
825
|
+
ue(r), W(n), Rt(i);
|
|
824
826
|
}
|
|
825
827
|
}, /**
|
|
826
828
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
827
829
|
* if any, such that we can replace the snippet with content once work is done
|
|
828
830
|
* @param {1 | -1} d
|
|
829
831
|
*/
|
|
830
|
-
|
|
832
|
+
Mr = function(t) {
|
|
831
833
|
var r;
|
|
832
834
|
if (!this.has_pending_snippet()) {
|
|
833
|
-
this.parent &&
|
|
835
|
+
this.parent && B(r = this.parent, F, Mr).call(r, t);
|
|
834
836
|
return;
|
|
835
837
|
}
|
|
836
|
-
if (b(this,
|
|
838
|
+
if (b(this, qe, u(this, qe) + t), u(this, qe) === 0) {
|
|
837
839
|
this.is_pending = !1;
|
|
838
|
-
for (const n of
|
|
839
|
-
L(n,
|
|
840
|
-
for (const n of
|
|
841
|
-
L(n, we),
|
|
842
|
-
|
|
840
|
+
for (const n of u(this, At))
|
|
841
|
+
L(n, P), _e(n);
|
|
842
|
+
for (const n of u(this, Ct))
|
|
843
|
+
L(n, we), _e(n);
|
|
844
|
+
u(this, At).clear(), u(this, Ct).clear(), u(this, Q) && ut(u(this, Q), () => {
|
|
843
845
|
b(this, Q, null);
|
|
844
|
-
}),
|
|
846
|
+
}), u(this, Oe) && (u(this, se).before(u(this, Oe)), b(this, Oe, null));
|
|
845
847
|
}
|
|
846
848
|
};
|
|
847
|
-
function
|
|
849
|
+
function Fs(e, t, r, n) {
|
|
848
850
|
const i = _r;
|
|
849
851
|
var s = e.filter((h) => !h.settled);
|
|
850
852
|
if (r.length === 0 && s.length === 0) {
|
|
@@ -854,52 +856,52 @@ function ks(e, t, r, n) {
|
|
|
854
856
|
var o = S, l = (
|
|
855
857
|
/** @type {Effect} */
|
|
856
858
|
$
|
|
857
|
-
),
|
|
858
|
-
function
|
|
859
|
-
|
|
859
|
+
), f = Bs(), a = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((h) => h.promise)) : null;
|
|
860
|
+
function d(h) {
|
|
861
|
+
f();
|
|
860
862
|
try {
|
|
861
863
|
n(h);
|
|
862
864
|
} catch (_) {
|
|
863
|
-
(l.f &
|
|
865
|
+
(l.f & He) === 0 && Lt(_, l);
|
|
864
866
|
}
|
|
865
|
-
o?.deactivate(),
|
|
867
|
+
o?.deactivate(), kr();
|
|
866
868
|
}
|
|
867
869
|
if (r.length === 0) {
|
|
868
|
-
|
|
870
|
+
a.then(() => d(t.map(i)));
|
|
869
871
|
return;
|
|
870
872
|
}
|
|
871
873
|
function p() {
|
|
872
|
-
|
|
874
|
+
f(), Promise.all(r.map((h) => /* @__PURE__ */ Zs(h))).then((h) => d([...t.map(i), ...h])).catch((h) => Lt(h, l));
|
|
873
875
|
}
|
|
874
|
-
|
|
876
|
+
a ? a.then(p) : p();
|
|
875
877
|
}
|
|
876
|
-
function
|
|
877
|
-
var e = $, t = y, r =
|
|
878
|
+
function Bs() {
|
|
879
|
+
var e = $, t = y, r = K, n = S;
|
|
878
880
|
return function(s = !0) {
|
|
879
|
-
ue(e),
|
|
881
|
+
ue(e), W(t), Rt(r), s && n?.activate();
|
|
880
882
|
};
|
|
881
883
|
}
|
|
882
|
-
function
|
|
883
|
-
ue(null),
|
|
884
|
+
function kr() {
|
|
885
|
+
ue(null), W(null), Rt(null);
|
|
884
886
|
}
|
|
885
887
|
// @__NO_SIDE_EFFECTS__
|
|
886
888
|
function _r(e) {
|
|
887
|
-
var t = D |
|
|
889
|
+
var t = D | P, r = y !== null && (y.f & D) !== 0 ? (
|
|
888
890
|
/** @type {Derived} */
|
|
889
891
|
y
|
|
890
892
|
) : null;
|
|
891
|
-
return $ !== null && ($.f |=
|
|
892
|
-
ctx:
|
|
893
|
+
return $ !== null && ($.f |= pt), {
|
|
894
|
+
ctx: K,
|
|
893
895
|
deps: null,
|
|
894
896
|
effects: null,
|
|
895
|
-
equals:
|
|
897
|
+
equals: Ln,
|
|
896
898
|
f: t,
|
|
897
899
|
fn: e,
|
|
898
900
|
reactions: null,
|
|
899
901
|
rv: 0,
|
|
900
902
|
v: (
|
|
901
903
|
/** @type {V} */
|
|
902
|
-
|
|
904
|
+
H
|
|
903
905
|
),
|
|
904
906
|
wv: 0,
|
|
905
907
|
parent: r ?? $,
|
|
@@ -907,12 +909,12 @@ function _r(e) {
|
|
|
907
909
|
};
|
|
908
910
|
}
|
|
909
911
|
// @__NO_SIDE_EFFECTS__
|
|
910
|
-
function
|
|
912
|
+
function Zs(e, t, r) {
|
|
911
913
|
let n = (
|
|
912
914
|
/** @type {Effect | null} */
|
|
913
915
|
$
|
|
914
916
|
);
|
|
915
|
-
n === null &&
|
|
917
|
+
n === null && bs();
|
|
916
918
|
var i = (
|
|
917
919
|
/** @type {Boundary} */
|
|
918
920
|
n.b
|
|
@@ -920,79 +922,79 @@ function Ls(e, t, r) {
|
|
|
920
922
|
/** @type {Promise<V>} */
|
|
921
923
|
/** @type {unknown} */
|
|
922
924
|
void 0
|
|
923
|
-
), o =
|
|
925
|
+
), o = vt(
|
|
924
926
|
/** @type {V} */
|
|
925
|
-
|
|
926
|
-
), l = !y,
|
|
927
|
-
return
|
|
928
|
-
var
|
|
929
|
-
s =
|
|
927
|
+
H
|
|
928
|
+
), l = !y, f = /* @__PURE__ */ new Map();
|
|
929
|
+
return Qs(() => {
|
|
930
|
+
var a = Cn();
|
|
931
|
+
s = a.promise;
|
|
930
932
|
try {
|
|
931
|
-
Promise.resolve(e()).then(
|
|
932
|
-
|
|
933
|
+
Promise.resolve(e()).then(a.resolve, a.reject).then(() => {
|
|
934
|
+
d === S && d.committed && d.deactivate(), kr();
|
|
933
935
|
});
|
|
934
936
|
} catch (_) {
|
|
935
|
-
|
|
937
|
+
a.reject(_), kr();
|
|
936
938
|
}
|
|
937
|
-
var
|
|
939
|
+
var d = (
|
|
938
940
|
/** @type {Batch} */
|
|
939
941
|
S
|
|
940
942
|
);
|
|
941
943
|
if (l) {
|
|
942
944
|
var p = i.is_rendered();
|
|
943
|
-
i.update_pending_count(1),
|
|
945
|
+
i.update_pending_count(1), d.increment(p), f.get(d)?.reject(et), f.delete(d), f.set(d, a);
|
|
944
946
|
}
|
|
945
|
-
const h = (_,
|
|
946
|
-
if (
|
|
947
|
-
|
|
947
|
+
const h = (_, c = void 0) => {
|
|
948
|
+
if (d.activate(), c)
|
|
949
|
+
c !== et && (o.f |= Ue, Nt(o, c));
|
|
948
950
|
else {
|
|
949
|
-
(o.f &
|
|
950
|
-
for (const [
|
|
951
|
-
if (
|
|
952
|
-
g.reject(
|
|
951
|
+
(o.f & Ue) !== 0 && (o.f ^= Ue), Nt(o, _);
|
|
952
|
+
for (const [C, g] of f) {
|
|
953
|
+
if (f.delete(C), C === d) break;
|
|
954
|
+
g.reject(et);
|
|
953
955
|
}
|
|
954
956
|
}
|
|
955
|
-
l && (i.update_pending_count(-1),
|
|
957
|
+
l && (i.update_pending_count(-1), d.decrement(p));
|
|
956
958
|
};
|
|
957
|
-
|
|
958
|
-
}),
|
|
959
|
-
for (const
|
|
960
|
-
|
|
961
|
-
}), new Promise((
|
|
962
|
-
function
|
|
959
|
+
a.promise.then(h, (_) => h(null, _ || "unknown"));
|
|
960
|
+
}), Ws(() => {
|
|
961
|
+
for (const a of f.values())
|
|
962
|
+
a.reject(et);
|
|
963
|
+
}), new Promise((a) => {
|
|
964
|
+
function d(p) {
|
|
963
965
|
function h() {
|
|
964
|
-
p === s ?
|
|
966
|
+
p === s ? a(o) : d(s);
|
|
965
967
|
}
|
|
966
968
|
p.then(h, h);
|
|
967
969
|
}
|
|
968
|
-
|
|
970
|
+
d(s);
|
|
969
971
|
});
|
|
970
972
|
}
|
|
971
973
|
// @__NO_SIDE_EFFECTS__
|
|
972
|
-
function
|
|
974
|
+
function Z(e) {
|
|
973
975
|
const t = /* @__PURE__ */ _r(e);
|
|
974
976
|
return hi(t), t;
|
|
975
977
|
}
|
|
976
978
|
// @__NO_SIDE_EFFECTS__
|
|
977
|
-
function
|
|
979
|
+
function js(e) {
|
|
978
980
|
const t = /* @__PURE__ */ _r(e);
|
|
979
|
-
return t.equals =
|
|
981
|
+
return t.equals = Nn, t;
|
|
980
982
|
}
|
|
981
|
-
function
|
|
983
|
+
function qs(e) {
|
|
982
984
|
var t = e.effects;
|
|
983
985
|
if (t !== null) {
|
|
984
986
|
e.effects = null;
|
|
985
987
|
for (var r = 0; r < t.length; r += 1)
|
|
986
|
-
|
|
988
|
+
z(
|
|
987
989
|
/** @type {Effect} */
|
|
988
990
|
t[r]
|
|
989
991
|
);
|
|
990
992
|
}
|
|
991
993
|
}
|
|
992
|
-
function
|
|
994
|
+
function zs(e) {
|
|
993
995
|
for (var t = e.parent; t !== null; ) {
|
|
994
996
|
if ((t.f & D) === 0)
|
|
995
|
-
return (t.f &
|
|
997
|
+
return (t.f & He) === 0 ? (
|
|
996
998
|
/** @type {Effect} */
|
|
997
999
|
t
|
|
998
1000
|
) : null;
|
|
@@ -1002,170 +1004,170 @@ function Ps(e) {
|
|
|
1002
1004
|
}
|
|
1003
1005
|
function Zr(e) {
|
|
1004
1006
|
var t, r = $;
|
|
1005
|
-
ue(
|
|
1007
|
+
ue(zs(e));
|
|
1006
1008
|
try {
|
|
1007
|
-
e.f &= ~
|
|
1009
|
+
e.f &= ~ht, qs(e), t = gi(e);
|
|
1008
1010
|
} finally {
|
|
1009
1011
|
ue(r);
|
|
1010
1012
|
}
|
|
1011
1013
|
return t;
|
|
1012
1014
|
}
|
|
1013
|
-
function
|
|
1015
|
+
function Gn(e) {
|
|
1014
1016
|
var t = Zr(e);
|
|
1015
1017
|
if (!e.equals(t) && (e.wv = pi(), (!S?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
1016
|
-
L(e,
|
|
1018
|
+
L(e, I);
|
|
1017
1019
|
return;
|
|
1018
1020
|
}
|
|
1019
|
-
|
|
1021
|
+
Ke || (ve !== null ? (zr() || S?.is_fork) && ve.set(e, t) : Br(e));
|
|
1020
1022
|
}
|
|
1021
|
-
function
|
|
1023
|
+
function Us(e) {
|
|
1022
1024
|
if (e.effects !== null)
|
|
1023
1025
|
for (const t of e.effects)
|
|
1024
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
1026
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(et), t.teardown = ds, t.ac = null, jt(t, 0), Gr(t));
|
|
1025
1027
|
}
|
|
1026
|
-
function
|
|
1028
|
+
function Kn(e) {
|
|
1027
1029
|
if (e.effects !== null)
|
|
1028
1030
|
for (const t of e.effects)
|
|
1029
|
-
t.teardown &&
|
|
1031
|
+
t.teardown && Ot(t);
|
|
1030
1032
|
}
|
|
1031
|
-
let
|
|
1032
|
-
const
|
|
1033
|
-
let
|
|
1034
|
-
function
|
|
1033
|
+
let Rr = /* @__PURE__ */ new Set();
|
|
1034
|
+
const Ye = /* @__PURE__ */ new Map();
|
|
1035
|
+
let Wn = !1;
|
|
1036
|
+
function vt(e, t) {
|
|
1035
1037
|
var r = {
|
|
1036
1038
|
f: 0,
|
|
1037
1039
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1038
1040
|
v: e,
|
|
1039
1041
|
reactions: null,
|
|
1040
|
-
equals:
|
|
1042
|
+
equals: Ln,
|
|
1041
1043
|
rv: 0,
|
|
1042
1044
|
wv: 0
|
|
1043
1045
|
};
|
|
1044
1046
|
return r;
|
|
1045
1047
|
}
|
|
1046
1048
|
// @__NO_SIDE_EFFECTS__
|
|
1047
|
-
function
|
|
1048
|
-
const r =
|
|
1049
|
+
function V(e, t) {
|
|
1050
|
+
const r = vt(e);
|
|
1049
1051
|
return hi(r), r;
|
|
1050
1052
|
}
|
|
1051
1053
|
// @__NO_SIDE_EFFECTS__
|
|
1052
|
-
function
|
|
1053
|
-
const n =
|
|
1054
|
-
return t || (n.equals =
|
|
1054
|
+
function Xn(e, t = !1, r = !0) {
|
|
1055
|
+
const n = vt(e);
|
|
1056
|
+
return t || (n.equals = Nn), n;
|
|
1055
1057
|
}
|
|
1056
|
-
function
|
|
1058
|
+
function N(e, t, r = !1) {
|
|
1057
1059
|
y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1058
1060
|
// to ensure we error if state is set inside an inspect effect
|
|
1059
|
-
(!
|
|
1060
|
-
let n = r ?
|
|
1061
|
+
(!be || (y.f & cn) !== 0) && In() && (y.f & (D | Pe | Fr | cn)) !== 0 && (ae === null || !St.call(ae, e)) && Cs();
|
|
1062
|
+
let n = r ? wt(t) : t;
|
|
1061
1063
|
return Nt(e, n);
|
|
1062
1064
|
}
|
|
1063
1065
|
function Nt(e, t) {
|
|
1064
1066
|
if (!e.equals(t)) {
|
|
1065
1067
|
var r = e.v;
|
|
1066
|
-
|
|
1067
|
-
var n =
|
|
1068
|
+
Ke ? Ye.set(e, t) : Ye.set(e, r), e.v = t;
|
|
1069
|
+
var n = De.ensure();
|
|
1068
1070
|
if (n.capture(e, r), (e.f & D) !== 0) {
|
|
1069
1071
|
const i = (
|
|
1070
1072
|
/** @type {Derived} */
|
|
1071
1073
|
e
|
|
1072
1074
|
);
|
|
1073
|
-
(e.f &
|
|
1075
|
+
(e.f & P) !== 0 && Zr(i), Br(i);
|
|
1074
1076
|
}
|
|
1075
|
-
e.wv = pi(),
|
|
1077
|
+
e.wv = pi(), Jn(e, P), $ !== null && ($.f & I) !== 0 && ($.f & (me | We)) === 0 && (ie === null ? to([e]) : ie.push(e)), !n.is_fork && Rr.size > 0 && !Wn && Ys();
|
|
1076
1078
|
}
|
|
1077
1079
|
return t;
|
|
1078
1080
|
}
|
|
1079
|
-
function
|
|
1080
|
-
|
|
1081
|
-
for (const e of
|
|
1082
|
-
(e.f &
|
|
1083
|
-
|
|
1081
|
+
function Ys() {
|
|
1082
|
+
Wn = !1;
|
|
1083
|
+
for (const e of Rr)
|
|
1084
|
+
(e.f & I) !== 0 && L(e, we), Wt(e) && Ot(e);
|
|
1085
|
+
Rr.clear();
|
|
1084
1086
|
}
|
|
1085
|
-
function
|
|
1086
|
-
|
|
1087
|
+
function Bt(e) {
|
|
1088
|
+
N(e, e.v + 1);
|
|
1087
1089
|
}
|
|
1088
|
-
function
|
|
1090
|
+
function Jn(e, t) {
|
|
1089
1091
|
var r = e.reactions;
|
|
1090
1092
|
if (r !== null)
|
|
1091
1093
|
for (var n = r.length, i = 0; i < n; i++) {
|
|
1092
|
-
var s = r[i], o = s.f, l = (o &
|
|
1094
|
+
var s = r[i], o = s.f, l = (o & P) === 0;
|
|
1093
1095
|
if (l && L(s, t), (o & D) !== 0) {
|
|
1094
|
-
var
|
|
1096
|
+
var f = (
|
|
1095
1097
|
/** @type {Derived} */
|
|
1096
1098
|
s
|
|
1097
1099
|
);
|
|
1098
|
-
|
|
1099
|
-
} else l && ((o &
|
|
1100
|
+
ve?.delete(f), (o & ht) === 0 && (o & le && (s.f |= ht), Jn(f, we));
|
|
1101
|
+
} else l && ((o & Pe) !== 0 && Re !== null && Re.add(
|
|
1100
1102
|
/** @type {Effect} */
|
|
1101
1103
|
s
|
|
1102
|
-
),
|
|
1104
|
+
), _e(
|
|
1103
1105
|
/** @type {Effect} */
|
|
1104
1106
|
s
|
|
1105
1107
|
));
|
|
1106
1108
|
}
|
|
1107
1109
|
}
|
|
1108
|
-
function
|
|
1109
|
-
if (typeof e != "object" || e === null ||
|
|
1110
|
+
function wt(e) {
|
|
1111
|
+
if (typeof e != "object" || e === null || tr in e)
|
|
1110
1112
|
return e;
|
|
1111
|
-
const t =
|
|
1112
|
-
if (t !==
|
|
1113
|
+
const t = An(e);
|
|
1114
|
+
if (t !== us && t !== cs)
|
|
1113
1115
|
return e;
|
|
1114
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1115
|
-
if (
|
|
1116
|
+
var r = /* @__PURE__ */ new Map(), n = Tn(e), i = /* @__PURE__ */ V(0), s = ct, o = (l) => {
|
|
1117
|
+
if (ct === s)
|
|
1116
1118
|
return l();
|
|
1117
|
-
var
|
|
1118
|
-
|
|
1119
|
-
var
|
|
1120
|
-
return
|
|
1119
|
+
var f = y, a = ct;
|
|
1120
|
+
W(null), _n(s);
|
|
1121
|
+
var d = l();
|
|
1122
|
+
return W(f), _n(a), d;
|
|
1121
1123
|
};
|
|
1122
|
-
return n && r.set("length", /* @__PURE__ */
|
|
1124
|
+
return n && r.set("length", /* @__PURE__ */ V(
|
|
1123
1125
|
/** @type {any[]} */
|
|
1124
1126
|
e.length
|
|
1125
1127
|
)), new Proxy(
|
|
1126
1128
|
/** @type {any} */
|
|
1127
1129
|
e,
|
|
1128
1130
|
{
|
|
1129
|
-
defineProperty(l,
|
|
1130
|
-
(!("value" in
|
|
1131
|
-
var
|
|
1132
|
-
return
|
|
1133
|
-
var p = /* @__PURE__ */
|
|
1134
|
-
return r.set(
|
|
1135
|
-
}) :
|
|
1131
|
+
defineProperty(l, f, a) {
|
|
1132
|
+
(!("value" in a) || a.configurable === !1 || a.enumerable === !1 || a.writable === !1) && Ts();
|
|
1133
|
+
var d = r.get(f);
|
|
1134
|
+
return d === void 0 ? o(() => {
|
|
1135
|
+
var p = /* @__PURE__ */ V(a.value);
|
|
1136
|
+
return r.set(f, p), p;
|
|
1137
|
+
}) : N(d, a.value, !0), !0;
|
|
1136
1138
|
},
|
|
1137
|
-
deleteProperty(l,
|
|
1138
|
-
var
|
|
1139
|
-
if (
|
|
1140
|
-
if (
|
|
1141
|
-
const
|
|
1142
|
-
r.set(
|
|
1139
|
+
deleteProperty(l, f) {
|
|
1140
|
+
var a = r.get(f);
|
|
1141
|
+
if (a === void 0) {
|
|
1142
|
+
if (f in l) {
|
|
1143
|
+
const d = o(() => /* @__PURE__ */ V(H));
|
|
1144
|
+
r.set(f, d), Bt(i);
|
|
1143
1145
|
}
|
|
1144
1146
|
} else
|
|
1145
|
-
|
|
1147
|
+
N(a, H), Bt(i);
|
|
1146
1148
|
return !0;
|
|
1147
1149
|
},
|
|
1148
|
-
get(l,
|
|
1149
|
-
if (
|
|
1150
|
+
get(l, f, a) {
|
|
1151
|
+
if (f === tr)
|
|
1150
1152
|
return e;
|
|
1151
|
-
var
|
|
1152
|
-
if (
|
|
1153
|
-
var _ =
|
|
1154
|
-
return
|
|
1155
|
-
}), r.set(
|
|
1156
|
-
var h = v(
|
|
1157
|
-
return h ===
|
|
1153
|
+
var d = r.get(f), p = f in l;
|
|
1154
|
+
if (d === void 0 && (!p || mt(l, f)?.writable) && (d = o(() => {
|
|
1155
|
+
var _ = wt(p ? l[f] : H), c = /* @__PURE__ */ V(_);
|
|
1156
|
+
return c;
|
|
1157
|
+
}), r.set(f, d)), d !== void 0) {
|
|
1158
|
+
var h = v(d);
|
|
1159
|
+
return h === H ? void 0 : h;
|
|
1158
1160
|
}
|
|
1159
|
-
return Reflect.get(l,
|
|
1161
|
+
return Reflect.get(l, f, a);
|
|
1160
1162
|
},
|
|
1161
|
-
getOwnPropertyDescriptor(l,
|
|
1162
|
-
var
|
|
1163
|
-
if (
|
|
1164
|
-
var
|
|
1165
|
-
|
|
1166
|
-
} else if (
|
|
1167
|
-
var p = r.get(
|
|
1168
|
-
if (p !== void 0 && h !==
|
|
1163
|
+
getOwnPropertyDescriptor(l, f) {
|
|
1164
|
+
var a = Reflect.getOwnPropertyDescriptor(l, f);
|
|
1165
|
+
if (a && "value" in a) {
|
|
1166
|
+
var d = r.get(f);
|
|
1167
|
+
d && (a.value = v(d));
|
|
1168
|
+
} else if (a === void 0) {
|
|
1169
|
+
var p = r.get(f), h = p?.v;
|
|
1170
|
+
if (p !== void 0 && h !== H)
|
|
1169
1171
|
return {
|
|
1170
1172
|
enumerable: !0,
|
|
1171
1173
|
configurable: !0,
|
|
@@ -1173,116 +1175,116 @@ function Ft(e) {
|
|
|
1173
1175
|
writable: !0
|
|
1174
1176
|
};
|
|
1175
1177
|
}
|
|
1176
|
-
return
|
|
1178
|
+
return a;
|
|
1177
1179
|
},
|
|
1178
|
-
has(l,
|
|
1179
|
-
if (
|
|
1180
|
+
has(l, f) {
|
|
1181
|
+
if (f === tr)
|
|
1180
1182
|
return !0;
|
|
1181
|
-
var
|
|
1182
|
-
if (
|
|
1183
|
-
|
|
1184
|
-
var h =
|
|
1183
|
+
var a = r.get(f), d = a !== void 0 && a.v !== H || Reflect.has(l, f);
|
|
1184
|
+
if (a !== void 0 || $ !== null && (!d || mt(l, f)?.writable)) {
|
|
1185
|
+
a === void 0 && (a = o(() => {
|
|
1186
|
+
var h = d ? wt(l[f]) : H, _ = /* @__PURE__ */ V(h);
|
|
1185
1187
|
return _;
|
|
1186
|
-
}), r.set(
|
|
1187
|
-
var p = v(
|
|
1188
|
-
if (p ===
|
|
1188
|
+
}), r.set(f, a));
|
|
1189
|
+
var p = v(a);
|
|
1190
|
+
if (p === H)
|
|
1189
1191
|
return !1;
|
|
1190
1192
|
}
|
|
1191
|
-
return
|
|
1193
|
+
return d;
|
|
1192
1194
|
},
|
|
1193
|
-
set(l,
|
|
1194
|
-
var p = r.get(
|
|
1195
|
-
if (n &&
|
|
1196
|
-
for (var _ =
|
|
1195
|
+
set(l, f, a, d) {
|
|
1196
|
+
var p = r.get(f), h = f in l;
|
|
1197
|
+
if (n && f === "length")
|
|
1198
|
+
for (var _ = a; _ < /** @type {Source<number>} */
|
|
1197
1199
|
p.v; _ += 1) {
|
|
1198
|
-
var
|
|
1199
|
-
|
|
1200
|
+
var c = r.get(_ + "");
|
|
1201
|
+
c !== void 0 ? N(c, H) : _ in l && (c = o(() => /* @__PURE__ */ V(H)), r.set(_ + "", c));
|
|
1200
1202
|
}
|
|
1201
1203
|
if (p === void 0)
|
|
1202
|
-
(!h ||
|
|
1204
|
+
(!h || mt(l, f)?.writable) && (p = o(() => /* @__PURE__ */ V(void 0)), N(p, wt(a)), r.set(f, p));
|
|
1203
1205
|
else {
|
|
1204
|
-
h = p.v !==
|
|
1205
|
-
var
|
|
1206
|
-
|
|
1206
|
+
h = p.v !== H;
|
|
1207
|
+
var C = o(() => wt(a));
|
|
1208
|
+
N(p, C);
|
|
1207
1209
|
}
|
|
1208
|
-
var g = Reflect.getOwnPropertyDescriptor(l,
|
|
1209
|
-
if (g?.set && g.set.call(
|
|
1210
|
-
if (n && typeof
|
|
1211
|
-
var
|
|
1210
|
+
var g = Reflect.getOwnPropertyDescriptor(l, f);
|
|
1211
|
+
if (g?.set && g.set.call(d, a), !h) {
|
|
1212
|
+
if (n && typeof f == "string") {
|
|
1213
|
+
var O = (
|
|
1212
1214
|
/** @type {Source<number>} */
|
|
1213
1215
|
r.get("length")
|
|
1214
|
-
),
|
|
1215
|
-
Number.isInteger(
|
|
1216
|
+
), k = Number(f);
|
|
1217
|
+
Number.isInteger(k) && k >= O.v && N(O, k + 1);
|
|
1216
1218
|
}
|
|
1217
|
-
|
|
1219
|
+
Bt(i);
|
|
1218
1220
|
}
|
|
1219
1221
|
return !0;
|
|
1220
1222
|
},
|
|
1221
1223
|
ownKeys(l) {
|
|
1222
1224
|
v(i);
|
|
1223
|
-
var
|
|
1225
|
+
var f = Reflect.ownKeys(l).filter((p) => {
|
|
1224
1226
|
var h = r.get(p);
|
|
1225
|
-
return h === void 0 || h.v !==
|
|
1227
|
+
return h === void 0 || h.v !== H;
|
|
1226
1228
|
});
|
|
1227
|
-
for (var [
|
|
1228
|
-
|
|
1229
|
-
return
|
|
1229
|
+
for (var [a, d] of r)
|
|
1230
|
+
d.v !== H && !(a in l) && f.push(a);
|
|
1231
|
+
return f;
|
|
1230
1232
|
},
|
|
1231
1233
|
setPrototypeOf() {
|
|
1232
|
-
|
|
1234
|
+
As();
|
|
1233
1235
|
}
|
|
1234
1236
|
}
|
|
1235
1237
|
);
|
|
1236
1238
|
}
|
|
1237
|
-
var
|
|
1238
|
-
function
|
|
1239
|
-
if (
|
|
1240
|
-
|
|
1239
|
+
var hn, Qn, ei, ti;
|
|
1240
|
+
function Lr() {
|
|
1241
|
+
if (hn === void 0) {
|
|
1242
|
+
hn = window, Qn = /Firefox/.test(navigator.userAgent);
|
|
1241
1243
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1242
|
-
|
|
1244
|
+
ei = mt(t, "firstChild").get, ti = mt(t, "nextSibling").get, un(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), un(r) && (r.__t = void 0);
|
|
1243
1245
|
}
|
|
1244
1246
|
}
|
|
1245
|
-
function
|
|
1247
|
+
function fe(e = "") {
|
|
1246
1248
|
return document.createTextNode(e);
|
|
1247
1249
|
}
|
|
1248
1250
|
// @__NO_SIDE_EFFECTS__
|
|
1249
|
-
function
|
|
1251
|
+
function ge(e) {
|
|
1250
1252
|
return (
|
|
1251
1253
|
/** @type {TemplateNode | null} */
|
|
1252
|
-
|
|
1254
|
+
ei.call(e)
|
|
1253
1255
|
);
|
|
1254
1256
|
}
|
|
1255
1257
|
// @__NO_SIDE_EFFECTS__
|
|
1256
|
-
function
|
|
1258
|
+
function ye(e) {
|
|
1257
1259
|
return (
|
|
1258
1260
|
/** @type {TemplateNode | null} */
|
|
1259
|
-
|
|
1261
|
+
ti.call(e)
|
|
1260
1262
|
);
|
|
1261
1263
|
}
|
|
1262
|
-
function
|
|
1264
|
+
function mr(e, t) {
|
|
1263
1265
|
if (!x)
|
|
1264
|
-
return /* @__PURE__ */
|
|
1265
|
-
var r = /* @__PURE__ */
|
|
1266
|
+
return /* @__PURE__ */ ge(e);
|
|
1267
|
+
var r = /* @__PURE__ */ ge(E);
|
|
1266
1268
|
if (r === null)
|
|
1267
|
-
r = E.appendChild(
|
|
1269
|
+
r = E.appendChild(fe());
|
|
1268
1270
|
else if (t && r.nodeType !== vr) {
|
|
1269
|
-
var n =
|
|
1270
|
-
return r?.before(n),
|
|
1271
|
+
var n = fe();
|
|
1272
|
+
return r?.before(n), q(n), n;
|
|
1271
1273
|
}
|
|
1272
1274
|
return t && qr(
|
|
1273
1275
|
/** @type {Text} */
|
|
1274
1276
|
r
|
|
1275
|
-
),
|
|
1277
|
+
), q(r), r;
|
|
1276
1278
|
}
|
|
1277
|
-
function
|
|
1279
|
+
function vn(e, t = !1) {
|
|
1278
1280
|
if (!x) {
|
|
1279
|
-
var r = /* @__PURE__ */
|
|
1280
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
1281
|
+
var r = /* @__PURE__ */ ge(e);
|
|
1282
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ye(r) : r;
|
|
1281
1283
|
}
|
|
1282
1284
|
if (t) {
|
|
1283
1285
|
if (E?.nodeType !== vr) {
|
|
1284
|
-
var n =
|
|
1285
|
-
return E?.before(n),
|
|
1286
|
+
var n = fe();
|
|
1287
|
+
return E?.before(n), q(n), n;
|
|
1286
1288
|
}
|
|
1287
1289
|
qr(
|
|
1288
1290
|
/** @type {Text} */
|
|
@@ -1291,35 +1293,35 @@ function $r(e, t = !1) {
|
|
|
1291
1293
|
}
|
|
1292
1294
|
return E;
|
|
1293
1295
|
}
|
|
1294
|
-
function
|
|
1296
|
+
function Je(e, t = 1, r = !1) {
|
|
1295
1297
|
let n = x ? E : e;
|
|
1296
1298
|
for (var i; t--; )
|
|
1297
1299
|
i = n, n = /** @type {TemplateNode} */
|
|
1298
|
-
/* @__PURE__ */
|
|
1300
|
+
/* @__PURE__ */ ye(n);
|
|
1299
1301
|
if (!x)
|
|
1300
1302
|
return n;
|
|
1301
1303
|
if (r) {
|
|
1302
1304
|
if (n?.nodeType !== vr) {
|
|
1303
|
-
var s =
|
|
1304
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1305
|
+
var s = fe();
|
|
1306
|
+
return n === null ? i?.after(s) : n.before(s), q(s), s;
|
|
1305
1307
|
}
|
|
1306
1308
|
qr(
|
|
1307
1309
|
/** @type {Text} */
|
|
1308
1310
|
n
|
|
1309
1311
|
);
|
|
1310
1312
|
}
|
|
1311
|
-
return
|
|
1313
|
+
return q(n), n;
|
|
1312
1314
|
}
|
|
1313
|
-
function
|
|
1315
|
+
function ri(e) {
|
|
1314
1316
|
e.textContent = "";
|
|
1315
1317
|
}
|
|
1316
|
-
function
|
|
1318
|
+
function ni() {
|
|
1317
1319
|
return !1;
|
|
1318
1320
|
}
|
|
1319
1321
|
function jr(e, t, r) {
|
|
1320
1322
|
return (
|
|
1321
1323
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1322
|
-
document.createElementNS(
|
|
1324
|
+
document.createElementNS(En, e, void 0)
|
|
1323
1325
|
);
|
|
1324
1326
|
}
|
|
1325
1327
|
function qr(e) {
|
|
@@ -1333,30 +1335,30 @@ function qr(e) {
|
|
|
1333
1335
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1334
1336
|
t.nodeValue, t = e.nextSibling;
|
|
1335
1337
|
}
|
|
1336
|
-
function
|
|
1338
|
+
function ii(e) {
|
|
1337
1339
|
var t = y, r = $;
|
|
1338
|
-
|
|
1340
|
+
W(null), ue(null);
|
|
1339
1341
|
try {
|
|
1340
1342
|
return e();
|
|
1341
1343
|
} finally {
|
|
1342
|
-
|
|
1344
|
+
W(t), ue(r);
|
|
1343
1345
|
}
|
|
1344
1346
|
}
|
|
1345
|
-
function
|
|
1346
|
-
$ === null && (y === null &&
|
|
1347
|
+
function Gs(e) {
|
|
1348
|
+
$ === null && (y === null && $s(), ys()), Ke && ms();
|
|
1347
1349
|
}
|
|
1348
|
-
function
|
|
1350
|
+
function Ks(e, t) {
|
|
1349
1351
|
var r = t.last;
|
|
1350
1352
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1351
1353
|
}
|
|
1352
|
-
function
|
|
1354
|
+
function Me(e, t, r) {
|
|
1353
1355
|
var n = $;
|
|
1354
1356
|
n !== null && (n.f & te) !== 0 && (e |= te);
|
|
1355
1357
|
var i = {
|
|
1356
|
-
ctx:
|
|
1358
|
+
ctx: K,
|
|
1357
1359
|
deps: null,
|
|
1358
1360
|
nodes: null,
|
|
1359
|
-
f: e |
|
|
1361
|
+
f: e | P | le,
|
|
1360
1362
|
first: null,
|
|
1361
1363
|
fn: t,
|
|
1362
1364
|
last: null,
|
|
@@ -1370,14 +1372,14 @@ function Ce(e, t, r) {
|
|
|
1370
1372
|
};
|
|
1371
1373
|
if (r)
|
|
1372
1374
|
try {
|
|
1373
|
-
|
|
1375
|
+
Ot(i);
|
|
1374
1376
|
} catch (l) {
|
|
1375
|
-
throw
|
|
1377
|
+
throw z(i), l;
|
|
1376
1378
|
}
|
|
1377
|
-
else t !== null &&
|
|
1379
|
+
else t !== null && _e(i);
|
|
1378
1380
|
var s = i;
|
|
1379
1381
|
if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
|
|
1380
|
-
(s.f &
|
|
1382
|
+
(s.f & pt) === 0 && (s = s.first, (e & Pe) !== 0 && (e & Mt) !== 0 && s !== null && (s.f |= Mt)), s !== null && (s.parent = n, n !== null && Ks(s, n), y !== null && (y.f & D) !== 0 && (e & We) === 0)) {
|
|
1381
1383
|
var o = (
|
|
1382
1384
|
/** @type {Derived} */
|
|
1383
1385
|
y
|
|
@@ -1386,77 +1388,77 @@ function Ce(e, t, r) {
|
|
|
1386
1388
|
}
|
|
1387
1389
|
return i;
|
|
1388
1390
|
}
|
|
1389
|
-
function
|
|
1390
|
-
return y !== null && !
|
|
1391
|
+
function zr() {
|
|
1392
|
+
return y !== null && !be;
|
|
1391
1393
|
}
|
|
1392
|
-
function
|
|
1393
|
-
const t =
|
|
1394
|
-
return L(t,
|
|
1394
|
+
function Ws(e) {
|
|
1395
|
+
const t = Me(hr, null, !1);
|
|
1396
|
+
return L(t, I), t.teardown = e, t;
|
|
1395
1397
|
}
|
|
1396
|
-
function
|
|
1397
|
-
|
|
1398
|
+
function Nr(e) {
|
|
1399
|
+
Gs();
|
|
1398
1400
|
var t = (
|
|
1399
1401
|
/** @type {Effect} */
|
|
1400
1402
|
$.f
|
|
1401
|
-
), r = !y && (t &
|
|
1403
|
+
), r = !y && (t & me) !== 0 && (t & Vt) === 0;
|
|
1402
1404
|
if (r) {
|
|
1403
1405
|
var n = (
|
|
1404
1406
|
/** @type {ComponentContext} */
|
|
1405
|
-
|
|
1407
|
+
K
|
|
1406
1408
|
);
|
|
1407
1409
|
(n.e ?? (n.e = [])).push(e);
|
|
1408
1410
|
} else
|
|
1409
1411
|
return si(e);
|
|
1410
1412
|
}
|
|
1411
1413
|
function si(e) {
|
|
1412
|
-
return
|
|
1414
|
+
return Me(Zt | vs, e, !1);
|
|
1413
1415
|
}
|
|
1414
|
-
function
|
|
1415
|
-
|
|
1416
|
-
const t =
|
|
1416
|
+
function Xs(e) {
|
|
1417
|
+
De.ensure();
|
|
1418
|
+
const t = Me(We | pt, e, !0);
|
|
1417
1419
|
return () => {
|
|
1418
|
-
|
|
1420
|
+
z(t);
|
|
1419
1421
|
};
|
|
1420
1422
|
}
|
|
1421
|
-
function
|
|
1422
|
-
|
|
1423
|
-
const t =
|
|
1423
|
+
function Js(e) {
|
|
1424
|
+
De.ensure();
|
|
1425
|
+
const t = Me(We | pt, e, !0);
|
|
1424
1426
|
return (r = {}) => new Promise((n) => {
|
|
1425
|
-
r.outro ?
|
|
1426
|
-
|
|
1427
|
-
}) : (
|
|
1427
|
+
r.outro ? ut(t, () => {
|
|
1428
|
+
z(t), n(void 0);
|
|
1429
|
+
}) : (z(t), n(void 0));
|
|
1428
1430
|
});
|
|
1429
1431
|
}
|
|
1430
1432
|
function oi(e) {
|
|
1431
|
-
return
|
|
1433
|
+
return Me(Zt, e, !1);
|
|
1432
1434
|
}
|
|
1433
|
-
function
|
|
1434
|
-
return
|
|
1435
|
+
function Qs(e) {
|
|
1436
|
+
return Me(Fr | pt, e, !0);
|
|
1435
1437
|
}
|
|
1436
|
-
function
|
|
1437
|
-
return
|
|
1438
|
+
function Ur(e, t = 0) {
|
|
1439
|
+
return Me(hr | t, e, !0);
|
|
1438
1440
|
}
|
|
1439
|
-
function
|
|
1440
|
-
|
|
1441
|
-
|
|
1441
|
+
function j(e, t = [], r = [], n = []) {
|
|
1442
|
+
Fs(n, t, r, (i) => {
|
|
1443
|
+
Me(hr, () => e(...i.map(v)), !0);
|
|
1442
1444
|
});
|
|
1443
1445
|
}
|
|
1444
|
-
function
|
|
1445
|
-
var r =
|
|
1446
|
+
function Yr(e, t = 0) {
|
|
1447
|
+
var r = Me(Pe | t, e, !0);
|
|
1446
1448
|
return r;
|
|
1447
1449
|
}
|
|
1448
|
-
function
|
|
1449
|
-
return
|
|
1450
|
+
function he(e) {
|
|
1451
|
+
return Me(me | pt, e, !0);
|
|
1450
1452
|
}
|
|
1451
1453
|
function li(e) {
|
|
1452
1454
|
var t = e.teardown;
|
|
1453
1455
|
if (t !== null) {
|
|
1454
|
-
const r =
|
|
1455
|
-
|
|
1456
|
+
const r = Ke, n = y;
|
|
1457
|
+
pn(!0), W(null);
|
|
1456
1458
|
try {
|
|
1457
1459
|
t.call(null);
|
|
1458
1460
|
} finally {
|
|
1459
|
-
|
|
1461
|
+
pn(r), W(n);
|
|
1460
1462
|
}
|
|
1461
1463
|
}
|
|
1462
1464
|
}
|
|
@@ -1464,49 +1466,49 @@ function Gr(e, t = !1) {
|
|
|
1464
1466
|
var r = e.first;
|
|
1465
1467
|
for (e.first = e.last = null; r !== null; ) {
|
|
1466
1468
|
const i = r.ac;
|
|
1467
|
-
i !== null &&
|
|
1468
|
-
i.abort(
|
|
1469
|
+
i !== null && ii(() => {
|
|
1470
|
+
i.abort(et);
|
|
1469
1471
|
});
|
|
1470
1472
|
var n = r.next;
|
|
1471
|
-
(r.f &
|
|
1473
|
+
(r.f & We) !== 0 ? r.parent = null : z(r, t), r = n;
|
|
1472
1474
|
}
|
|
1473
1475
|
}
|
|
1474
|
-
function
|
|
1476
|
+
function eo(e) {
|
|
1475
1477
|
for (var t = e.first; t !== null; ) {
|
|
1476
1478
|
var r = t.next;
|
|
1477
|
-
(t.f &
|
|
1479
|
+
(t.f & me) === 0 && z(t), t = r;
|
|
1478
1480
|
}
|
|
1479
1481
|
}
|
|
1480
|
-
function
|
|
1482
|
+
function z(e, t = !0) {
|
|
1481
1483
|
var r = !1;
|
|
1482
|
-
(t || (e.f &
|
|
1484
|
+
(t || (e.f & Mn) !== 0) && e.nodes !== null && e.nodes.end !== null && (fi(
|
|
1483
1485
|
e.nodes.start,
|
|
1484
1486
|
/** @type {TemplateNode} */
|
|
1485
1487
|
e.nodes.end
|
|
1486
|
-
), r = !0), Gr(e, t && !r), jt(e, 0), L(e,
|
|
1488
|
+
), r = !0), Gr(e, t && !r), jt(e, 0), L(e, He);
|
|
1487
1489
|
var n = e.nodes && e.nodes.t;
|
|
1488
1490
|
if (n !== null)
|
|
1489
1491
|
for (const s of n)
|
|
1490
1492
|
s.stop();
|
|
1491
1493
|
li(e);
|
|
1492
1494
|
var i = e.parent;
|
|
1493
|
-
i !== null && i.first !== null &&
|
|
1495
|
+
i !== null && i.first !== null && ai(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1494
1496
|
}
|
|
1495
|
-
function
|
|
1497
|
+
function fi(e, t) {
|
|
1496
1498
|
for (; e !== null; ) {
|
|
1497
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1499
|
+
var r = e === t ? null : /* @__PURE__ */ ye(e);
|
|
1498
1500
|
e.remove(), e = r;
|
|
1499
1501
|
}
|
|
1500
1502
|
}
|
|
1501
|
-
function
|
|
1503
|
+
function ai(e) {
|
|
1502
1504
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1503
1505
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1504
1506
|
}
|
|
1505
|
-
function
|
|
1507
|
+
function ut(e, t, r = !0) {
|
|
1506
1508
|
var n = [];
|
|
1507
1509
|
ui(e, n, !0);
|
|
1508
1510
|
var i = () => {
|
|
1509
|
-
r &&
|
|
1511
|
+
r && z(e), t && t();
|
|
1510
1512
|
}, s = n.length;
|
|
1511
1513
|
if (s > 0) {
|
|
1512
1514
|
var o = () => --s || i();
|
|
@@ -1523,10 +1525,10 @@ function ui(e, t, r) {
|
|
|
1523
1525
|
for (const l of n)
|
|
1524
1526
|
(l.is_global || r) && t.push(l);
|
|
1525
1527
|
for (var i = e.first; i !== null; ) {
|
|
1526
|
-
var s = i.next, o = (i.f &
|
|
1528
|
+
var s = i.next, o = (i.f & Mt) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1527
1529
|
// it means the parent block effect was pruned. In that case,
|
|
1528
1530
|
// transparency information was transferred to the branch effect.
|
|
1529
|
-
(i.f &
|
|
1531
|
+
(i.f & me) !== 0 && (e.f & Pe) !== 0;
|
|
1530
1532
|
ui(i, t, o ? r : !1), i = s;
|
|
1531
1533
|
}
|
|
1532
1534
|
}
|
|
@@ -1536,9 +1538,9 @@ function Kr(e) {
|
|
|
1536
1538
|
}
|
|
1537
1539
|
function ci(e, t) {
|
|
1538
1540
|
if ((e.f & te) !== 0) {
|
|
1539
|
-
e.f ^= te, (e.f &
|
|
1541
|
+
e.f ^= te, (e.f & I) === 0 && (L(e, P), _e(e));
|
|
1540
1542
|
for (var r = e.first; r !== null; ) {
|
|
1541
|
-
var n = r.next, i = (r.f &
|
|
1543
|
+
var n = r.next, i = (r.f & Mt) !== 0 || (r.f & me) !== 0;
|
|
1542
1544
|
ci(r, i ? t : !1), r = n;
|
|
1543
1545
|
}
|
|
1544
1546
|
var s = e.nodes && e.nodes.t;
|
|
@@ -1550,42 +1552,42 @@ function ci(e, t) {
|
|
|
1550
1552
|
function di(e, t) {
|
|
1551
1553
|
if (e.nodes)
|
|
1552
1554
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1553
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1555
|
+
var i = r === n ? null : /* @__PURE__ */ ye(r);
|
|
1554
1556
|
t.append(r), r = i;
|
|
1555
1557
|
}
|
|
1556
1558
|
}
|
|
1557
|
-
let ir = !1,
|
|
1558
|
-
function
|
|
1559
|
-
|
|
1559
|
+
let ir = !1, Ke = !1;
|
|
1560
|
+
function pn(e) {
|
|
1561
|
+
Ke = e;
|
|
1560
1562
|
}
|
|
1561
|
-
let y = null,
|
|
1562
|
-
function
|
|
1563
|
+
let y = null, be = !1;
|
|
1564
|
+
function W(e) {
|
|
1563
1565
|
y = e;
|
|
1564
1566
|
}
|
|
1565
1567
|
let $ = null;
|
|
1566
1568
|
function ue(e) {
|
|
1567
1569
|
$ = e;
|
|
1568
1570
|
}
|
|
1569
|
-
let
|
|
1571
|
+
let ae = null;
|
|
1570
1572
|
function hi(e) {
|
|
1571
|
-
y !== null && (
|
|
1573
|
+
y !== null && (ae === null ? ae = [e] : ae.push(e));
|
|
1572
1574
|
}
|
|
1573
|
-
let
|
|
1574
|
-
function
|
|
1575
|
+
let G = null, J = 0, ie = null;
|
|
1576
|
+
function to(e) {
|
|
1575
1577
|
ie = e;
|
|
1576
1578
|
}
|
|
1577
|
-
let vi = 1,
|
|
1578
|
-
function
|
|
1579
|
-
|
|
1579
|
+
let vi = 1, rt = 0, ct = rt;
|
|
1580
|
+
function _n(e) {
|
|
1581
|
+
ct = e;
|
|
1580
1582
|
}
|
|
1581
1583
|
function pi() {
|
|
1582
1584
|
return ++vi;
|
|
1583
1585
|
}
|
|
1584
1586
|
function Wt(e) {
|
|
1585
1587
|
var t = e.f;
|
|
1586
|
-
if ((t &
|
|
1588
|
+
if ((t & P) !== 0)
|
|
1587
1589
|
return !0;
|
|
1588
|
-
if (t & D && (e.f &= ~
|
|
1590
|
+
if (t & D && (e.f &= ~ht), (t & we) !== 0) {
|
|
1589
1591
|
for (var r = (
|
|
1590
1592
|
/** @type {Value[]} */
|
|
1591
1593
|
e.deps
|
|
@@ -1594,7 +1596,7 @@ function Wt(e) {
|
|
|
1594
1596
|
if (Wt(
|
|
1595
1597
|
/** @type {Derived} */
|
|
1596
1598
|
s
|
|
1597
|
-
) &&
|
|
1599
|
+
) && Gn(
|
|
1598
1600
|
/** @type {Derived} */
|
|
1599
1601
|
s
|
|
1600
1602
|
), s.wv > e.wv)
|
|
@@ -1602,13 +1604,13 @@ function Wt(e) {
|
|
|
1602
1604
|
}
|
|
1603
1605
|
(t & le) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1604
1606
|
// traversal of the graph in the other batches still happens
|
|
1605
|
-
|
|
1607
|
+
ve === null && L(e, I);
|
|
1606
1608
|
}
|
|
1607
1609
|
return !1;
|
|
1608
1610
|
}
|
|
1609
1611
|
function _i(e, t, r = !0) {
|
|
1610
1612
|
var n = e.reactions;
|
|
1611
|
-
if (n !== null && !(
|
|
1613
|
+
if (n !== null && !(ae !== null && St.call(ae, e)))
|
|
1612
1614
|
for (var i = 0; i < n.length; i++) {
|
|
1613
1615
|
var s = n[i];
|
|
1614
1616
|
(s.f & D) !== 0 ? _i(
|
|
@@ -1616,67 +1618,67 @@ function _i(e, t, r = !0) {
|
|
|
1616
1618
|
s,
|
|
1617
1619
|
t,
|
|
1618
1620
|
!1
|
|
1619
|
-
) : t === s && (r ? L(s,
|
|
1621
|
+
) : t === s && (r ? L(s, P) : (s.f & I) !== 0 && L(s, we), _e(
|
|
1620
1622
|
/** @type {Effect} */
|
|
1621
1623
|
s
|
|
1622
1624
|
));
|
|
1623
1625
|
}
|
|
1624
1626
|
}
|
|
1625
1627
|
function gi(e) {
|
|
1626
|
-
var
|
|
1627
|
-
var t =
|
|
1628
|
-
|
|
1629
|
-
null, J = 0, ie = null, y = (
|
|
1630
|
-
e.ac.abort(
|
|
1628
|
+
var C;
|
|
1629
|
+
var t = G, r = J, n = ie, i = y, s = ae, o = K, l = be, f = ct, a = e.f;
|
|
1630
|
+
G = /** @type {null | Value[]} */
|
|
1631
|
+
null, J = 0, ie = null, y = (a & (me | We)) === 0 ? e : null, ae = null, Rt(e.ctx), be = !1, ct = ++rt, e.ac !== null && (ii(() => {
|
|
1632
|
+
e.ac.abort(et);
|
|
1631
1633
|
}), e.ac = null);
|
|
1632
1634
|
try {
|
|
1633
|
-
e.f |=
|
|
1634
|
-
var
|
|
1635
|
+
e.f |= Er;
|
|
1636
|
+
var d = (
|
|
1635
1637
|
/** @type {Function} */
|
|
1636
1638
|
e.fn
|
|
1637
|
-
), p =
|
|
1638
|
-
e.f |=
|
|
1639
|
+
), p = d();
|
|
1640
|
+
e.f |= Vt;
|
|
1639
1641
|
var h = e.deps, _ = S?.is_fork;
|
|
1640
|
-
if (
|
|
1641
|
-
var
|
|
1642
|
+
if (G !== null) {
|
|
1643
|
+
var c;
|
|
1642
1644
|
if (_ || jt(e, J), h !== null && J > 0)
|
|
1643
|
-
for (h.length = J +
|
|
1644
|
-
h[J +
|
|
1645
|
+
for (h.length = J + G.length, c = 0; c < G.length; c++)
|
|
1646
|
+
h[J + c] = G[c];
|
|
1645
1647
|
else
|
|
1646
|
-
e.deps = h =
|
|
1647
|
-
if (
|
|
1648
|
-
for (
|
|
1649
|
-
((
|
|
1648
|
+
e.deps = h = G;
|
|
1649
|
+
if (zr() && (e.f & le) !== 0)
|
|
1650
|
+
for (c = J; c < h.length; c++)
|
|
1651
|
+
((C = h[c]).reactions ?? (C.reactions = [])).push(e);
|
|
1650
1652
|
} else !_ && h !== null && J < h.length && (jt(e, J), h.length = J);
|
|
1651
|
-
if (
|
|
1652
|
-
for (
|
|
1653
|
-
ie.length;
|
|
1653
|
+
if (In() && ie !== null && !be && h !== null && (e.f & (D | we | P)) === 0)
|
|
1654
|
+
for (c = 0; c < /** @type {Source[]} */
|
|
1655
|
+
ie.length; c++)
|
|
1654
1656
|
_i(
|
|
1655
|
-
ie[
|
|
1657
|
+
ie[c],
|
|
1656
1658
|
/** @type {Effect} */
|
|
1657
1659
|
e
|
|
1658
1660
|
);
|
|
1659
1661
|
if (i !== null && i !== e) {
|
|
1660
|
-
if (
|
|
1662
|
+
if (rt++, i.deps !== null)
|
|
1661
1663
|
for (let g = 0; g < r; g += 1)
|
|
1662
|
-
i.deps[g].rv =
|
|
1664
|
+
i.deps[g].rv = rt;
|
|
1663
1665
|
if (t !== null)
|
|
1664
1666
|
for (const g of t)
|
|
1665
|
-
g.rv =
|
|
1667
|
+
g.rv = rt;
|
|
1666
1668
|
ie !== null && (n === null ? n = ie : n.push(.../** @type {Source[]} */
|
|
1667
1669
|
ie));
|
|
1668
1670
|
}
|
|
1669
|
-
return (e.f &
|
|
1671
|
+
return (e.f & Ue) !== 0 && (e.f ^= Ue), p;
|
|
1670
1672
|
} catch (g) {
|
|
1671
|
-
return
|
|
1673
|
+
return Dn(g);
|
|
1672
1674
|
} finally {
|
|
1673
|
-
e.f ^=
|
|
1675
|
+
e.f ^= Er, G = t, J = r, ie = n, y = i, ae = s, Rt(o), be = l, ct = f;
|
|
1674
1676
|
}
|
|
1675
1677
|
}
|
|
1676
|
-
function
|
|
1678
|
+
function ro(e, t) {
|
|
1677
1679
|
let r = t.reactions;
|
|
1678
1680
|
if (r !== null) {
|
|
1679
|
-
var n =
|
|
1681
|
+
var n = fs.call(r, e);
|
|
1680
1682
|
if (n !== -1) {
|
|
1681
1683
|
var i = r.length - 1;
|
|
1682
1684
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1685,32 +1687,32 @@ function Ys(e, t) {
|
|
|
1685
1687
|
if (r === null && (t.f & D) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1686
1688
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1687
1689
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1688
|
-
(
|
|
1690
|
+
(G === null || !St.call(G, t))) {
|
|
1689
1691
|
var s = (
|
|
1690
1692
|
/** @type {Derived} */
|
|
1691
1693
|
t
|
|
1692
1694
|
);
|
|
1693
|
-
(s.f & le) !== 0 && (s.f ^= le, s.f &= ~
|
|
1695
|
+
(s.f & le) !== 0 && (s.f ^= le, s.f &= ~ht), Br(s), Us(s), jt(s, 0);
|
|
1694
1696
|
}
|
|
1695
1697
|
}
|
|
1696
1698
|
function jt(e, t) {
|
|
1697
1699
|
var r = e.deps;
|
|
1698
1700
|
if (r !== null)
|
|
1699
1701
|
for (var n = t; n < r.length; n++)
|
|
1700
|
-
|
|
1702
|
+
ro(e, r[n]);
|
|
1701
1703
|
}
|
|
1702
|
-
function
|
|
1704
|
+
function Ot(e) {
|
|
1703
1705
|
var t = e.f;
|
|
1704
|
-
if ((t &
|
|
1705
|
-
L(e,
|
|
1706
|
+
if ((t & He) === 0) {
|
|
1707
|
+
L(e, I);
|
|
1706
1708
|
var r = $, n = ir;
|
|
1707
1709
|
$ = e, ir = !0;
|
|
1708
1710
|
try {
|
|
1709
|
-
(t & (
|
|
1711
|
+
(t & (Pe | Sn)) !== 0 ? eo(e) : Gr(e), li(e);
|
|
1710
1712
|
var i = gi(e);
|
|
1711
1713
|
e.teardown = typeof i == "function" ? i : null, e.wv = vi;
|
|
1712
1714
|
var s;
|
|
1713
|
-
|
|
1715
|
+
$r && Ls && (e.f & P) !== 0 && e.deps;
|
|
1714
1716
|
} finally {
|
|
1715
1717
|
ir = n, $ = r;
|
|
1716
1718
|
}
|
|
@@ -1718,43 +1720,43 @@ function Lt(e) {
|
|
|
1718
1720
|
}
|
|
1719
1721
|
function v(e) {
|
|
1720
1722
|
var t = e.f, r = (t & D) !== 0;
|
|
1721
|
-
if (y !== null && !
|
|
1722
|
-
var n = $ !== null && ($.f &
|
|
1723
|
-
if (!n && (
|
|
1723
|
+
if (y !== null && !be) {
|
|
1724
|
+
var n = $ !== null && ($.f & He) !== 0;
|
|
1725
|
+
if (!n && (ae === null || !St.call(ae, e))) {
|
|
1724
1726
|
var i = y.deps;
|
|
1725
|
-
if ((y.f &
|
|
1726
|
-
e.rv <
|
|
1727
|
+
if ((y.f & Er) !== 0)
|
|
1728
|
+
e.rv < rt && (e.rv = rt, G === null && i !== null && i[J] === e ? J++ : G === null ? G = [e] : G.push(e));
|
|
1727
1729
|
else {
|
|
1728
1730
|
(y.deps ?? (y.deps = [])).push(e);
|
|
1729
1731
|
var s = e.reactions;
|
|
1730
|
-
s === null ? e.reactions = [y] :
|
|
1732
|
+
s === null ? e.reactions = [y] : St.call(s, y) || s.push(y);
|
|
1731
1733
|
}
|
|
1732
1734
|
}
|
|
1733
1735
|
}
|
|
1734
|
-
if (
|
|
1735
|
-
return
|
|
1736
|
+
if (Ke && Ye.has(e))
|
|
1737
|
+
return Ye.get(e);
|
|
1736
1738
|
if (r) {
|
|
1737
1739
|
var o = (
|
|
1738
1740
|
/** @type {Derived} */
|
|
1739
1741
|
e
|
|
1740
1742
|
);
|
|
1741
|
-
if (
|
|
1743
|
+
if (Ke) {
|
|
1742
1744
|
var l = o.v;
|
|
1743
|
-
return ((o.f &
|
|
1745
|
+
return ((o.f & I) === 0 && o.reactions !== null || wi(o)) && (l = Zr(o)), Ye.set(o, l), l;
|
|
1744
1746
|
}
|
|
1745
|
-
var
|
|
1746
|
-
Wt(o) && (
|
|
1747
|
+
var f = (o.f & le) === 0 && !be && y !== null && (ir || (y.f & le) !== 0), a = (o.f & Vt) === 0;
|
|
1748
|
+
Wt(o) && (f && (o.f |= le), Gn(o)), f && !a && (Kn(o), bi(o));
|
|
1747
1749
|
}
|
|
1748
|
-
if (
|
|
1749
|
-
return
|
|
1750
|
-
if ((e.f &
|
|
1750
|
+
if (ve?.has(e))
|
|
1751
|
+
return ve.get(e);
|
|
1752
|
+
if ((e.f & Ue) !== 0)
|
|
1751
1753
|
throw e.v;
|
|
1752
1754
|
return e.v;
|
|
1753
1755
|
}
|
|
1754
1756
|
function bi(e) {
|
|
1755
1757
|
if (e.f |= le, e.deps !== null)
|
|
1756
1758
|
for (const t of e.deps)
|
|
1757
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & D) !== 0 && (t.f & le) === 0 && (
|
|
1759
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & D) !== 0 && (t.f & le) === 0 && (Kn(
|
|
1758
1760
|
/** @type {Derived} */
|
|
1759
1761
|
t
|
|
1760
1762
|
), bi(
|
|
@@ -1762,11 +1764,11 @@ function bi(e) {
|
|
|
1762
1764
|
t
|
|
1763
1765
|
));
|
|
1764
1766
|
}
|
|
1765
|
-
function
|
|
1766
|
-
if (e.v ===
|
|
1767
|
+
function wi(e) {
|
|
1768
|
+
if (e.v === H) return !0;
|
|
1767
1769
|
if (e.deps === null) return !1;
|
|
1768
1770
|
for (const t of e.deps)
|
|
1769
|
-
if (
|
|
1771
|
+
if (Ye.has(t) || (t.f & D) !== 0 && wi(
|
|
1770
1772
|
/** @type {Derived} */
|
|
1771
1773
|
t
|
|
1772
1774
|
))
|
|
@@ -1774,25 +1776,25 @@ function mi(e) {
|
|
|
1774
1776
|
return !1;
|
|
1775
1777
|
}
|
|
1776
1778
|
function gr(e) {
|
|
1777
|
-
var t =
|
|
1779
|
+
var t = be;
|
|
1778
1780
|
try {
|
|
1779
|
-
return
|
|
1781
|
+
return be = !0, e();
|
|
1780
1782
|
} finally {
|
|
1781
|
-
|
|
1783
|
+
be = t;
|
|
1782
1784
|
}
|
|
1783
1785
|
}
|
|
1784
|
-
const
|
|
1785
|
-
function
|
|
1786
|
-
(t[
|
|
1786
|
+
const nt = /* @__PURE__ */ Symbol("events"), mi = /* @__PURE__ */ new Set(), Or = /* @__PURE__ */ new Set();
|
|
1787
|
+
function no(e, t, r) {
|
|
1788
|
+
(t[nt] ?? (t[nt] = {}))[e] = r;
|
|
1787
1789
|
}
|
|
1788
|
-
function
|
|
1790
|
+
function io(e) {
|
|
1789
1791
|
for (var t = 0; t < e.length; t++)
|
|
1790
|
-
|
|
1792
|
+
mi.add(e[t]);
|
|
1791
1793
|
for (var r of Or)
|
|
1792
1794
|
r(e);
|
|
1793
1795
|
}
|
|
1794
|
-
let
|
|
1795
|
-
function
|
|
1796
|
+
let gn = null;
|
|
1797
|
+
function bn(e) {
|
|
1796
1798
|
var t = this, r = (
|
|
1797
1799
|
/** @type {Node} */
|
|
1798
1800
|
t.ownerDocument
|
|
@@ -1800,19 +1802,19 @@ function _n(e) {
|
|
|
1800
1802
|
/** @type {null | Element} */
|
|
1801
1803
|
i[0] || e.target
|
|
1802
1804
|
);
|
|
1803
|
-
|
|
1804
|
-
var o = 0, l =
|
|
1805
|
+
gn = e;
|
|
1806
|
+
var o = 0, l = gn === e && e[nt];
|
|
1805
1807
|
if (l) {
|
|
1806
|
-
var
|
|
1807
|
-
if (
|
|
1808
|
+
var f = i.indexOf(l);
|
|
1809
|
+
if (f !== -1 && (t === document || t === /** @type {any} */
|
|
1808
1810
|
window)) {
|
|
1809
|
-
e[
|
|
1811
|
+
e[nt] = t;
|
|
1810
1812
|
return;
|
|
1811
1813
|
}
|
|
1812
|
-
var
|
|
1813
|
-
if (
|
|
1814
|
+
var a = i.indexOf(t);
|
|
1815
|
+
if (a === -1)
|
|
1814
1816
|
return;
|
|
1815
|
-
|
|
1817
|
+
f <= a && (o = f);
|
|
1816
1818
|
}
|
|
1817
1819
|
if (s = /** @type {Element} */
|
|
1818
1820
|
i[o] || e.target, s !== t) {
|
|
@@ -1822,24 +1824,24 @@ function _n(e) {
|
|
|
1822
1824
|
return s || r;
|
|
1823
1825
|
}
|
|
1824
1826
|
});
|
|
1825
|
-
var
|
|
1826
|
-
|
|
1827
|
+
var d = y, p = $;
|
|
1828
|
+
W(null), ue(null);
|
|
1827
1829
|
try {
|
|
1828
1830
|
for (var h, _ = []; s !== null; ) {
|
|
1829
|
-
var
|
|
1831
|
+
var c = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
1830
1832
|
s.host || null;
|
|
1831
1833
|
try {
|
|
1832
|
-
var
|
|
1833
|
-
|
|
1834
|
+
var C = s[nt]?.[n];
|
|
1835
|
+
C != null && (!/** @type {any} */
|
|
1834
1836
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1835
1837
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1836
|
-
e.target === s) &&
|
|
1838
|
+
e.target === s) && C.call(s, e);
|
|
1837
1839
|
} catch (g) {
|
|
1838
1840
|
h ? _.push(g) : h = g;
|
|
1839
1841
|
}
|
|
1840
|
-
if (e.cancelBubble ||
|
|
1842
|
+
if (e.cancelBubble || c === t || c === null)
|
|
1841
1843
|
break;
|
|
1842
|
-
s =
|
|
1844
|
+
s = c;
|
|
1843
1845
|
}
|
|
1844
1846
|
if (h) {
|
|
1845
1847
|
for (let g of _)
|
|
@@ -1849,28 +1851,28 @@ function _n(e) {
|
|
|
1849
1851
|
throw h;
|
|
1850
1852
|
}
|
|
1851
1853
|
} finally {
|
|
1852
|
-
e[
|
|
1854
|
+
e[nt] = t, delete e.currentTarget, W(d), ue(p);
|
|
1853
1855
|
}
|
|
1854
1856
|
}
|
|
1855
1857
|
}
|
|
1856
|
-
const
|
|
1858
|
+
const so = (
|
|
1857
1859
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1858
1860
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1859
1861
|
/** @param {string} html */
|
|
1860
1862
|
createHTML: (e) => e
|
|
1861
1863
|
})
|
|
1862
1864
|
);
|
|
1863
|
-
function
|
|
1865
|
+
function oo(e) {
|
|
1864
1866
|
return (
|
|
1865
1867
|
/** @type {string} */
|
|
1866
|
-
|
|
1868
|
+
so?.createHTML(e) ?? e
|
|
1867
1869
|
);
|
|
1868
1870
|
}
|
|
1869
1871
|
function yi(e, t = !1) {
|
|
1870
1872
|
var r = jr("template");
|
|
1871
|
-
return e = e.replaceAll("<!>", "<!---->"), r.innerHTML = t ?
|
|
1873
|
+
return e = e.replaceAll("<!>", "<!---->"), r.innerHTML = t ? oo(e) : e, r.content;
|
|
1872
1874
|
}
|
|
1873
|
-
function
|
|
1875
|
+
function Ge(e, t) {
|
|
1874
1876
|
var r = (
|
|
1875
1877
|
/** @type {Effect} */
|
|
1876
1878
|
$
|
|
@@ -1878,44 +1880,44 @@ function We(e, t) {
|
|
|
1878
1880
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
1879
1881
|
}
|
|
1880
1882
|
// @__NO_SIDE_EFFECTS__
|
|
1881
|
-
function
|
|
1882
|
-
var r = (t &
|
|
1883
|
+
function Xe(e, t) {
|
|
1884
|
+
var r = (t & os) !== 0, n = (t & ls) !== 0, i, s = !e.startsWith("<!>");
|
|
1883
1885
|
return () => {
|
|
1884
1886
|
if (x)
|
|
1885
|
-
return
|
|
1887
|
+
return Ge(E, null), E;
|
|
1886
1888
|
i === void 0 && (i = yi(s ? e : "<!>" + e, !0), r || (i = /** @type {TemplateNode} */
|
|
1887
|
-
/* @__PURE__ */
|
|
1889
|
+
/* @__PURE__ */ ge(i)));
|
|
1888
1890
|
var o = (
|
|
1889
1891
|
/** @type {TemplateNode} */
|
|
1890
|
-
n ||
|
|
1892
|
+
n || Qn ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1891
1893
|
);
|
|
1892
1894
|
if (r) {
|
|
1893
1895
|
var l = (
|
|
1894
1896
|
/** @type {TemplateNode} */
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
),
|
|
1897
|
+
/* @__PURE__ */ ge(o)
|
|
1898
|
+
), f = (
|
|
1897
1899
|
/** @type {TemplateNode} */
|
|
1898
1900
|
o.lastChild
|
|
1899
1901
|
);
|
|
1900
|
-
|
|
1902
|
+
Ge(l, f);
|
|
1901
1903
|
} else
|
|
1902
|
-
|
|
1904
|
+
Ge(o, o);
|
|
1903
1905
|
return o;
|
|
1904
1906
|
};
|
|
1905
1907
|
}
|
|
1906
|
-
function
|
|
1908
|
+
function lo() {
|
|
1907
1909
|
if (x)
|
|
1908
|
-
return
|
|
1909
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1910
|
-
return e.append(t, r),
|
|
1910
|
+
return Ge(E, null), E;
|
|
1911
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = fe();
|
|
1912
|
+
return e.append(t, r), Ge(t, r), e;
|
|
1911
1913
|
}
|
|
1912
|
-
function
|
|
1914
|
+
function xe(e, t) {
|
|
1913
1915
|
if (x) {
|
|
1914
1916
|
var r = (
|
|
1915
1917
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1916
1918
|
$
|
|
1917
1919
|
);
|
|
1918
|
-
((r.f &
|
|
1920
|
+
((r.f & Vt) === 0 || r.nodes.end === null) && (r.nodes.end = E), kt();
|
|
1919
1921
|
return;
|
|
1920
1922
|
}
|
|
1921
1923
|
e !== null && e.before(
|
|
@@ -1923,118 +1925,118 @@ function de(e, t) {
|
|
|
1923
1925
|
t
|
|
1924
1926
|
);
|
|
1925
1927
|
}
|
|
1926
|
-
const
|
|
1927
|
-
function
|
|
1928
|
-
return
|
|
1928
|
+
const fo = ["touchstart", "touchmove"];
|
|
1929
|
+
function ao(e) {
|
|
1930
|
+
return fo.includes(e);
|
|
1929
1931
|
}
|
|
1930
|
-
function
|
|
1932
|
+
function uo(e, t) {
|
|
1931
1933
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1932
1934
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + "");
|
|
1933
1935
|
}
|
|
1934
1936
|
function $i(e, t) {
|
|
1935
1937
|
return xi(e, t);
|
|
1936
1938
|
}
|
|
1937
|
-
function
|
|
1938
|
-
|
|
1939
|
+
function co(e, t) {
|
|
1940
|
+
Lr(), t.intro = t.intro ?? !1;
|
|
1939
1941
|
const r = t.target, n = x, i = E;
|
|
1940
1942
|
try {
|
|
1941
|
-
for (var s = /* @__PURE__ */
|
|
1942
|
-
s.data !==
|
|
1943
|
-
s = /* @__PURE__ */
|
|
1943
|
+
for (var s = /* @__PURE__ */ ge(r); s && (s.nodeType !== It || /** @type {Comment} */
|
|
1944
|
+
s.data !== Dr); )
|
|
1945
|
+
s = /* @__PURE__ */ ye(s);
|
|
1944
1946
|
if (!s)
|
|
1945
|
-
throw
|
|
1946
|
-
|
|
1947
|
+
throw dt;
|
|
1948
|
+
pe(!0), q(
|
|
1947
1949
|
/** @type {Comment} */
|
|
1948
1950
|
s
|
|
1949
1951
|
);
|
|
1950
1952
|
const o = xi(e, { ...t, anchor: s });
|
|
1951
|
-
return
|
|
1953
|
+
return pe(!1), /** @type {Exports} */
|
|
1952
1954
|
o;
|
|
1953
1955
|
} catch (o) {
|
|
1954
1956
|
if (o instanceof Error && o.message.split(`
|
|
1955
1957
|
`).some((l) => l.startsWith("https://svelte.dev/e/")))
|
|
1956
1958
|
throw o;
|
|
1957
|
-
return o !==
|
|
1959
|
+
return o !== dt && console.warn("Failed to hydrate: ", o), t.recover === !1 && Es(), Lr(), ri(r), pe(!1), $i(e, t);
|
|
1958
1960
|
} finally {
|
|
1959
|
-
|
|
1961
|
+
pe(n), q(i);
|
|
1960
1962
|
}
|
|
1961
1963
|
}
|
|
1962
1964
|
const er = /* @__PURE__ */ new Map();
|
|
1963
1965
|
function xi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0 }) {
|
|
1964
|
-
|
|
1965
|
-
var l = void 0,
|
|
1966
|
-
var
|
|
1967
|
-
|
|
1966
|
+
Lr();
|
|
1967
|
+
var l = void 0, f = Js(() => {
|
|
1968
|
+
var a = r ?? t.appendChild(fe());
|
|
1969
|
+
Ds(
|
|
1968
1970
|
/** @type {TemplateNode} */
|
|
1969
|
-
|
|
1971
|
+
a,
|
|
1970
1972
|
{
|
|
1971
1973
|
pending: () => {
|
|
1972
1974
|
}
|
|
1973
1975
|
},
|
|
1974
1976
|
(h) => {
|
|
1975
|
-
|
|
1977
|
+
On({});
|
|
1976
1978
|
var _ = (
|
|
1977
1979
|
/** @type {ComponentContext} */
|
|
1978
|
-
|
|
1980
|
+
K
|
|
1979
1981
|
);
|
|
1980
|
-
if (s && (_.c = s), i && (n.$$events = i), x &&
|
|
1982
|
+
if (s && (_.c = s), i && (n.$$events = i), x && Ge(
|
|
1981
1983
|
/** @type {TemplateNode} */
|
|
1982
1984
|
h,
|
|
1983
1985
|
null
|
|
1984
|
-
), l = e(h, n) || {}, x && ($.nodes.end = E, E === null || E.nodeType !==
|
|
1985
|
-
E.data !==
|
|
1986
|
-
throw Kt(),
|
|
1987
|
-
|
|
1986
|
+
), l = e(h, n) || {}, x && ($.nodes.end = E, E === null || E.nodeType !== It || /** @type {Comment} */
|
|
1987
|
+
E.data !== Pr))
|
|
1988
|
+
throw Kt(), dt;
|
|
1989
|
+
Vn();
|
|
1988
1990
|
}
|
|
1989
1991
|
);
|
|
1990
|
-
var
|
|
1992
|
+
var d = /* @__PURE__ */ new Set(), p = (h) => {
|
|
1991
1993
|
for (var _ = 0; _ < h.length; _++) {
|
|
1992
|
-
var
|
|
1993
|
-
if (!
|
|
1994
|
-
|
|
1995
|
-
var
|
|
1996
|
-
for (const
|
|
1997
|
-
var g = er.get(
|
|
1998
|
-
g === void 0 && (g = /* @__PURE__ */ new Map(), er.set(
|
|
1999
|
-
var
|
|
2000
|
-
|
|
1994
|
+
var c = h[_];
|
|
1995
|
+
if (!d.has(c)) {
|
|
1996
|
+
d.add(c);
|
|
1997
|
+
var C = ao(c);
|
|
1998
|
+
for (const k of [t, document]) {
|
|
1999
|
+
var g = er.get(k);
|
|
2000
|
+
g === void 0 && (g = /* @__PURE__ */ new Map(), er.set(k, g));
|
|
2001
|
+
var O = g.get(c);
|
|
2002
|
+
O === void 0 ? (k.addEventListener(c, bn, { passive: C }), g.set(c, 1)) : g.set(c, O + 1);
|
|
2001
2003
|
}
|
|
2002
2004
|
}
|
|
2003
2005
|
}
|
|
2004
2006
|
};
|
|
2005
|
-
return p(dr(
|
|
2006
|
-
for (var h of
|
|
2007
|
-
for (const
|
|
2007
|
+
return p(dr(mi)), Or.add(p), () => {
|
|
2008
|
+
for (var h of d)
|
|
2009
|
+
for (const C of [t, document]) {
|
|
2008
2010
|
var _ = (
|
|
2009
2011
|
/** @type {Map<string, number>} */
|
|
2010
|
-
er.get(
|
|
2011
|
-
),
|
|
2012
|
+
er.get(C)
|
|
2013
|
+
), c = (
|
|
2012
2014
|
/** @type {number} */
|
|
2013
2015
|
_.get(h)
|
|
2014
2016
|
);
|
|
2015
|
-
--
|
|
2017
|
+
--c == 0 ? (C.removeEventListener(h, bn), _.delete(h), _.size === 0 && er.delete(C)) : _.set(h, c);
|
|
2016
2018
|
}
|
|
2017
|
-
Or.delete(p),
|
|
2019
|
+
Or.delete(p), a !== r && a.parentNode?.removeChild(a);
|
|
2018
2020
|
};
|
|
2019
2021
|
});
|
|
2020
|
-
return
|
|
2022
|
+
return Vr.set(l, f), l;
|
|
2021
2023
|
}
|
|
2022
|
-
let
|
|
2023
|
-
function
|
|
2024
|
-
const r =
|
|
2025
|
-
return r ? (
|
|
2024
|
+
let Vr = /* @__PURE__ */ new WeakMap();
|
|
2025
|
+
function ho(e, t) {
|
|
2026
|
+
const r = Vr.get(e);
|
|
2027
|
+
return r ? (Vr.delete(e), r(t)) : Promise.resolve();
|
|
2026
2028
|
}
|
|
2027
|
-
var
|
|
2028
|
-
class
|
|
2029
|
+
var de, Ce, ee, ft, Yt, Gt, ur;
|
|
2030
|
+
class vo {
|
|
2029
2031
|
/**
|
|
2030
2032
|
* @param {TemplateNode} anchor
|
|
2031
2033
|
* @param {boolean} transition
|
|
2032
2034
|
*/
|
|
2033
2035
|
constructor(t, r = !0) {
|
|
2034
2036
|
/** @type {TemplateNode} */
|
|
2035
|
-
|
|
2037
|
+
R(this, "anchor");
|
|
2036
2038
|
/** @type {Map<Batch, Key>} */
|
|
2037
|
-
|
|
2039
|
+
m(this, de, /* @__PURE__ */ new Map());
|
|
2038
2040
|
/**
|
|
2039
2041
|
* Map of keys to effects that are currently rendered in the DOM.
|
|
2040
2042
|
* These effects are visible and actively part of the document tree.
|
|
@@ -2049,69 +2051,69 @@ class ro {
|
|
|
2049
2051
|
* Can result in the entries `true->Effect` and `false->Effect`
|
|
2050
2052
|
* @type {Map<Key, Effect>}
|
|
2051
2053
|
*/
|
|
2052
|
-
|
|
2054
|
+
m(this, Ce, /* @__PURE__ */ new Map());
|
|
2053
2055
|
/**
|
|
2054
2056
|
* Similar to #onscreen with respect to the keys, but contains branches that are not yet
|
|
2055
2057
|
* in the DOM, because their insertion is deferred.
|
|
2056
2058
|
* @type {Map<Key, Branch>}
|
|
2057
2059
|
*/
|
|
2058
|
-
|
|
2060
|
+
m(this, ee, /* @__PURE__ */ new Map());
|
|
2059
2061
|
/**
|
|
2060
2062
|
* Keys of effects that are currently outroing
|
|
2061
2063
|
* @type {Set<Key>}
|
|
2062
2064
|
*/
|
|
2063
|
-
|
|
2065
|
+
m(this, ft, /* @__PURE__ */ new Set());
|
|
2064
2066
|
/**
|
|
2065
2067
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
2066
2068
|
* This is necessary for `<svelte:element>`
|
|
2067
2069
|
*/
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
+
m(this, Yt, !0);
|
|
2071
|
+
m(this, Gt, () => {
|
|
2070
2072
|
var t = (
|
|
2071
2073
|
/** @type {Batch} */
|
|
2072
2074
|
S
|
|
2073
2075
|
);
|
|
2074
|
-
if (
|
|
2076
|
+
if (u(this, de).has(t)) {
|
|
2075
2077
|
var r = (
|
|
2076
2078
|
/** @type {Key} */
|
|
2077
|
-
|
|
2078
|
-
), n =
|
|
2079
|
+
u(this, de).get(t)
|
|
2080
|
+
), n = u(this, Ce).get(r);
|
|
2079
2081
|
if (n)
|
|
2080
|
-
Kr(n),
|
|
2082
|
+
Kr(n), u(this, ft).delete(r);
|
|
2081
2083
|
else {
|
|
2082
|
-
var i =
|
|
2083
|
-
i && (
|
|
2084
|
+
var i = u(this, ee).get(r);
|
|
2085
|
+
i && (u(this, Ce).set(r, i.effect), u(this, ee).delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
2084
2086
|
}
|
|
2085
|
-
for (const [s, o] of
|
|
2086
|
-
if (
|
|
2087
|
+
for (const [s, o] of u(this, de)) {
|
|
2088
|
+
if (u(this, de).delete(s), s === t)
|
|
2087
2089
|
break;
|
|
2088
|
-
const l =
|
|
2089
|
-
l && (
|
|
2090
|
+
const l = u(this, ee).get(o);
|
|
2091
|
+
l && (z(l.effect), u(this, ee).delete(o));
|
|
2090
2092
|
}
|
|
2091
|
-
for (const [s, o] of
|
|
2092
|
-
if (s === r ||
|
|
2093
|
+
for (const [s, o] of u(this, Ce)) {
|
|
2094
|
+
if (s === r || u(this, ft).has(s)) continue;
|
|
2093
2095
|
const l = () => {
|
|
2094
|
-
if (Array.from(
|
|
2095
|
-
var
|
|
2096
|
-
di(o,
|
|
2096
|
+
if (Array.from(u(this, de).values()).includes(s)) {
|
|
2097
|
+
var a = document.createDocumentFragment();
|
|
2098
|
+
di(o, a), a.append(fe()), u(this, ee).set(s, { effect: o, fragment: a });
|
|
2097
2099
|
} else
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
+
z(o);
|
|
2101
|
+
u(this, ft).delete(s), u(this, Ce).delete(s);
|
|
2100
2102
|
};
|
|
2101
|
-
|
|
2103
|
+
u(this, Yt) || !n ? (u(this, ft).add(s), ut(o, l, !1)) : l();
|
|
2102
2104
|
}
|
|
2103
2105
|
}
|
|
2104
2106
|
});
|
|
2105
2107
|
/**
|
|
2106
2108
|
* @param {Batch} batch
|
|
2107
2109
|
*/
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
const r = Array.from(
|
|
2111
|
-
for (const [n, i] of
|
|
2112
|
-
r.includes(n) || (
|
|
2110
|
+
m(this, ur, (t) => {
|
|
2111
|
+
u(this, de).delete(t);
|
|
2112
|
+
const r = Array.from(u(this, de).values());
|
|
2113
|
+
for (const [n, i] of u(this, ee))
|
|
2114
|
+
r.includes(n) || (z(i.effect), u(this, ee).delete(n));
|
|
2113
2115
|
});
|
|
2114
|
-
this.anchor = t, b(this,
|
|
2116
|
+
this.anchor = t, b(this, Yt, r);
|
|
2115
2117
|
}
|
|
2116
2118
|
/**
|
|
2117
2119
|
*
|
|
@@ -2122,32 +2124,32 @@ class ro {
|
|
|
2122
2124
|
var n = (
|
|
2123
2125
|
/** @type {Batch} */
|
|
2124
2126
|
S
|
|
2125
|
-
), i =
|
|
2126
|
-
if (r && !
|
|
2127
|
+
), i = ni();
|
|
2128
|
+
if (r && !u(this, Ce).has(t) && !u(this, ee).has(t))
|
|
2127
2129
|
if (i) {
|
|
2128
|
-
var s = document.createDocumentFragment(), o =
|
|
2129
|
-
s.append(o),
|
|
2130
|
-
effect:
|
|
2130
|
+
var s = document.createDocumentFragment(), o = fe();
|
|
2131
|
+
s.append(o), u(this, ee).set(t, {
|
|
2132
|
+
effect: he(() => r(o)),
|
|
2131
2133
|
fragment: s
|
|
2132
2134
|
});
|
|
2133
2135
|
} else
|
|
2134
|
-
|
|
2136
|
+
u(this, Ce).set(
|
|
2135
2137
|
t,
|
|
2136
|
-
|
|
2138
|
+
he(() => r(this.anchor))
|
|
2137
2139
|
);
|
|
2138
|
-
if (
|
|
2139
|
-
for (const [l,
|
|
2140
|
-
l === t ? n.unskip_effect(
|
|
2141
|
-
for (const [l,
|
|
2142
|
-
l === t ? n.unskip_effect(
|
|
2143
|
-
n.oncommit(
|
|
2140
|
+
if (u(this, de).set(n, t), i) {
|
|
2141
|
+
for (const [l, f] of u(this, Ce))
|
|
2142
|
+
l === t ? n.unskip_effect(f) : n.skip_effect(f);
|
|
2143
|
+
for (const [l, f] of u(this, ee))
|
|
2144
|
+
l === t ? n.unskip_effect(f.effect) : n.skip_effect(f.effect);
|
|
2145
|
+
n.oncommit(u(this, Gt)), n.ondiscard(u(this, ur));
|
|
2144
2146
|
} else
|
|
2145
|
-
x && (this.anchor = E),
|
|
2147
|
+
x && (this.anchor = E), u(this, Gt).call(this);
|
|
2146
2148
|
}
|
|
2147
2149
|
}
|
|
2148
|
-
|
|
2150
|
+
de = new WeakMap(), Ce = new WeakMap(), ee = new WeakMap(), ft = new WeakMap(), Yt = new WeakMap(), Gt = new WeakMap(), ur = new WeakMap();
|
|
2149
2151
|
function Ei(e) {
|
|
2150
|
-
|
|
2152
|
+
K === null && kn(), Nr(() => {
|
|
2151
2153
|
const t = gr(e);
|
|
2152
2154
|
if (typeof t == "function") return (
|
|
2153
2155
|
/** @type {() => void} */
|
|
@@ -2155,35 +2157,35 @@ function Ei(e) {
|
|
|
2155
2157
|
);
|
|
2156
2158
|
});
|
|
2157
2159
|
}
|
|
2158
|
-
function
|
|
2159
|
-
|
|
2160
|
+
function po(e) {
|
|
2161
|
+
K === null && kn(), Ei(() => () => gr(e));
|
|
2160
2162
|
}
|
|
2161
|
-
function
|
|
2162
|
-
x &&
|
|
2163
|
-
var n = new
|
|
2163
|
+
function Qe(e, t, r = !1) {
|
|
2164
|
+
x && kt();
|
|
2165
|
+
var n = new vo(e), i = r ? Mt : 0;
|
|
2164
2166
|
function s(o, l) {
|
|
2165
2167
|
if (x) {
|
|
2166
|
-
const
|
|
2167
|
-
var
|
|
2168
|
-
if (
|
|
2169
|
-
var
|
|
2170
|
-
|
|
2168
|
+
const d = Rn(e);
|
|
2169
|
+
var f;
|
|
2170
|
+
if (d === Dr ? f = 0 : d === cr ? f = !1 : f = parseInt(d.substring(1)), o !== f) {
|
|
2171
|
+
var a = fr();
|
|
2172
|
+
q(a), n.anchor = a, pe(!1), n.ensure(o, l), pe(!0);
|
|
2171
2173
|
return;
|
|
2172
2174
|
}
|
|
2173
2175
|
}
|
|
2174
2176
|
n.ensure(o, l);
|
|
2175
2177
|
}
|
|
2176
|
-
|
|
2178
|
+
Yr(() => {
|
|
2177
2179
|
var o = !1;
|
|
2178
|
-
t((l,
|
|
2179
|
-
o = !0, s(
|
|
2180
|
+
t((l, f = 0) => {
|
|
2181
|
+
o = !0, s(f, l);
|
|
2180
2182
|
}), o || s(!1, null);
|
|
2181
2183
|
}, i);
|
|
2182
2184
|
}
|
|
2183
|
-
function
|
|
2185
|
+
function _o(e, t, r) {
|
|
2184
2186
|
for (var n = [], i = t.length, s, o = t.length, l = 0; l < i; l++) {
|
|
2185
2187
|
let p = t[l];
|
|
2186
|
-
|
|
2188
|
+
ut(
|
|
2187
2189
|
p,
|
|
2188
2190
|
() => {
|
|
2189
2191
|
if (s) {
|
|
@@ -2192,7 +2194,7 @@ function io(e, t, r) {
|
|
|
2192
2194
|
/** @type {Set<EachOutroGroup>} */
|
|
2193
2195
|
e.outrogroups
|
|
2194
2196
|
);
|
|
2195
|
-
|
|
2197
|
+
Ir(dr(s.done)), h.delete(s), h.size === 0 && (e.outrogroups = null);
|
|
2196
2198
|
}
|
|
2197
2199
|
} else
|
|
2198
2200
|
o -= 1;
|
|
@@ -2201,160 +2203,160 @@ function io(e, t, r) {
|
|
|
2201
2203
|
);
|
|
2202
2204
|
}
|
|
2203
2205
|
if (o === 0) {
|
|
2204
|
-
var
|
|
2205
|
-
if (
|
|
2206
|
-
var
|
|
2206
|
+
var f = n.length === 0 && r !== null;
|
|
2207
|
+
if (f) {
|
|
2208
|
+
var a = (
|
|
2207
2209
|
/** @type {Element} */
|
|
2208
2210
|
r
|
|
2209
|
-
),
|
|
2211
|
+
), d = (
|
|
2210
2212
|
/** @type {Element} */
|
|
2211
|
-
|
|
2213
|
+
a.parentNode
|
|
2212
2214
|
);
|
|
2213
|
-
|
|
2215
|
+
ri(d), d.append(a), e.items.clear();
|
|
2214
2216
|
}
|
|
2215
|
-
|
|
2217
|
+
Ir(t, !f);
|
|
2216
2218
|
} else
|
|
2217
2219
|
s = {
|
|
2218
2220
|
pending: new Set(t),
|
|
2219
2221
|
done: /* @__PURE__ */ new Set()
|
|
2220
2222
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
|
|
2221
2223
|
}
|
|
2222
|
-
function
|
|
2224
|
+
function Ir(e, t = !0) {
|
|
2223
2225
|
for (var r = 0; r < e.length; r++)
|
|
2224
|
-
|
|
2226
|
+
z(e[r], t);
|
|
2225
2227
|
}
|
|
2226
|
-
var
|
|
2227
|
-
function
|
|
2228
|
+
var wn;
|
|
2229
|
+
function go(e, t, r, n, i, s = null) {
|
|
2228
2230
|
var o = e, l = /* @__PURE__ */ new Map();
|
|
2229
2231
|
{
|
|
2230
|
-
var
|
|
2232
|
+
var f = (
|
|
2231
2233
|
/** @type {Element} */
|
|
2232
2234
|
e
|
|
2233
2235
|
);
|
|
2234
|
-
o = x ?
|
|
2236
|
+
o = x ? q(/* @__PURE__ */ ge(f)) : f.appendChild(fe());
|
|
2235
2237
|
}
|
|
2236
|
-
x &&
|
|
2237
|
-
var
|
|
2238
|
+
x && kt();
|
|
2239
|
+
var a = null, d = /* @__PURE__ */ js(() => {
|
|
2238
2240
|
var g = r();
|
|
2239
|
-
return
|
|
2241
|
+
return Tn(g) ? g : g == null ? [] : dr(g);
|
|
2240
2242
|
}), p, h = !0;
|
|
2241
2243
|
function _() {
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
+
C.fallback = a, bo(C, p, o, t, n), a !== null && (p.length === 0 ? (a.f & ze) === 0 ? Kr(a) : (a.f ^= ze, Dt(a, null, o)) : ut(a, () => {
|
|
2245
|
+
a = null;
|
|
2244
2246
|
}));
|
|
2245
2247
|
}
|
|
2246
|
-
var
|
|
2248
|
+
var c = Yr(() => {
|
|
2247
2249
|
p = /** @type {V[]} */
|
|
2248
|
-
v(
|
|
2250
|
+
v(d);
|
|
2249
2251
|
var g = p.length;
|
|
2250
|
-
let
|
|
2252
|
+
let O = !1;
|
|
2251
2253
|
if (x) {
|
|
2252
|
-
var
|
|
2253
|
-
|
|
2254
|
+
var k = Rn(o) === cr;
|
|
2255
|
+
k !== (g === 0) && (o = fr(), q(o), pe(!1), O = !0);
|
|
2254
2256
|
}
|
|
2255
|
-
for (var
|
|
2257
|
+
for (var $e = /* @__PURE__ */ new Set(), re = (
|
|
2256
2258
|
/** @type {Batch} */
|
|
2257
2259
|
S
|
|
2258
|
-
),
|
|
2259
|
-
x && E.nodeType ===
|
|
2260
|
-
E.data ===
|
|
2261
|
-
E,
|
|
2262
|
-
var
|
|
2263
|
-
|
|
2260
|
+
), ce = ni(), ne = 0; ne < g; ne += 1) {
|
|
2261
|
+
x && E.nodeType === It && /** @type {Comment} */
|
|
2262
|
+
E.data === Pr && (o = /** @type {Comment} */
|
|
2263
|
+
E, O = !0, pe(!1));
|
|
2264
|
+
var Fe = p[ne], U = n(Fe, ne), M = h ? null : l.get(U);
|
|
2265
|
+
M ? (M.v && Nt(M.v, Fe), M.i && Nt(M.i, ne), ce && re.unskip_effect(M.e)) : (M = wo(
|
|
2264
2266
|
l,
|
|
2265
|
-
h ? o :
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2267
|
+
h ? o : wn ?? (wn = fe()),
|
|
2268
|
+
Fe,
|
|
2269
|
+
U,
|
|
2270
|
+
ne,
|
|
2269
2271
|
i,
|
|
2270
2272
|
t,
|
|
2271
2273
|
r
|
|
2272
|
-
), h || (
|
|
2274
|
+
), h || (M.e.f |= ze), l.set(U, M)), $e.add(U);
|
|
2273
2275
|
}
|
|
2274
|
-
if (g === 0 && s && !
|
|
2275
|
-
if (
|
|
2276
|
-
for (const [
|
|
2277
|
-
|
|
2278
|
-
|
|
2276
|
+
if (g === 0 && s && !a && (h ? a = he(() => s(o)) : (a = he(() => s(wn ?? (wn = fe()))), a.f |= ze)), g > $e.size && ws(), x && g > 0 && q(fr()), !h)
|
|
2277
|
+
if (ce) {
|
|
2278
|
+
for (const [_t, Xt] of l)
|
|
2279
|
+
$e.has(_t) || re.skip_effect(Xt.e);
|
|
2280
|
+
re.oncommit(_), re.ondiscard(() => {
|
|
2279
2281
|
});
|
|
2280
2282
|
} else
|
|
2281
2283
|
_();
|
|
2282
|
-
|
|
2283
|
-
}),
|
|
2284
|
+
O && pe(!0), v(d);
|
|
2285
|
+
}), C = { effect: c, items: l, outrogroups: null, fallback: a };
|
|
2284
2286
|
h = !1, x && (o = E);
|
|
2285
2287
|
}
|
|
2286
|
-
function
|
|
2287
|
-
for (; e !== null && (e.f &
|
|
2288
|
+
function Ht(e) {
|
|
2289
|
+
for (; e !== null && (e.f & me) === 0; )
|
|
2288
2290
|
e = e.next;
|
|
2289
2291
|
return e;
|
|
2290
2292
|
}
|
|
2291
|
-
function
|
|
2292
|
-
var s = t.length, o = e.items, l =
|
|
2293
|
-
for (
|
|
2294
|
-
if (h = t[
|
|
2293
|
+
function bo(e, t, r, n, i) {
|
|
2294
|
+
var s = t.length, o = e.items, l = Ht(e.effect.first), f, a = null, d = [], p = [], h, _, c, C;
|
|
2295
|
+
for (C = 0; C < s; C += 1) {
|
|
2296
|
+
if (h = t[C], _ = i(h, C), c = /** @type {EachItem} */
|
|
2295
2297
|
o.get(_).e, e.outrogroups !== null)
|
|
2296
|
-
for (const
|
|
2297
|
-
|
|
2298
|
-
if ((
|
|
2299
|
-
if (
|
|
2300
|
-
|
|
2298
|
+
for (const U of e.outrogroups)
|
|
2299
|
+
U.pending.delete(c), U.done.delete(c);
|
|
2300
|
+
if ((c.f & ze) !== 0)
|
|
2301
|
+
if (c.f ^= ze, c === l)
|
|
2302
|
+
Dt(c, null, r);
|
|
2301
2303
|
else {
|
|
2302
|
-
var g =
|
|
2303
|
-
|
|
2304
|
+
var g = a ? a.next : l;
|
|
2305
|
+
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev), je(e, a, c), je(e, c, g), Dt(c, g, r), a = c, d = [], p = [], l = Ht(a.next);
|
|
2304
2306
|
continue;
|
|
2305
2307
|
}
|
|
2306
|
-
if ((
|
|
2307
|
-
if (
|
|
2308
|
-
if (
|
|
2309
|
-
var
|
|
2310
|
-
|
|
2311
|
-
var
|
|
2312
|
-
for (
|
|
2313
|
-
|
|
2314
|
-
for (
|
|
2315
|
-
|
|
2316
|
-
|
|
2308
|
+
if ((c.f & te) !== 0 && Kr(c), c !== l) {
|
|
2309
|
+
if (f !== void 0 && f.has(c)) {
|
|
2310
|
+
if (d.length < p.length) {
|
|
2311
|
+
var O = p[0], k;
|
|
2312
|
+
a = O.prev;
|
|
2313
|
+
var $e = d[0], re = d[d.length - 1];
|
|
2314
|
+
for (k = 0; k < d.length; k += 1)
|
|
2315
|
+
Dt(d[k], O, r);
|
|
2316
|
+
for (k = 0; k < p.length; k += 1)
|
|
2317
|
+
f.delete(p[k]);
|
|
2318
|
+
je(e, $e.prev, re.next), je(e, a, $e), je(e, re, O), l = O, a = re, C -= 1, d = [], p = [];
|
|
2317
2319
|
} else
|
|
2318
|
-
|
|
2320
|
+
f.delete(c), Dt(c, l, r), je(e, c.prev, c.next), je(e, c, a === null ? e.effect.first : a.next), je(e, a, c), a = c;
|
|
2319
2321
|
continue;
|
|
2320
2322
|
}
|
|
2321
|
-
for (
|
|
2322
|
-
(
|
|
2323
|
+
for (d = [], p = []; l !== null && l !== c; )
|
|
2324
|
+
(f ?? (f = /* @__PURE__ */ new Set())).add(l), p.push(l), l = Ht(l.next);
|
|
2323
2325
|
if (l === null)
|
|
2324
2326
|
continue;
|
|
2325
2327
|
}
|
|
2326
|
-
(
|
|
2328
|
+
(c.f & ze) === 0 && d.push(c), a = c, l = Ht(c.next);
|
|
2327
2329
|
}
|
|
2328
2330
|
if (e.outrogroups !== null) {
|
|
2329
|
-
for (const
|
|
2330
|
-
|
|
2331
|
+
for (const U of e.outrogroups)
|
|
2332
|
+
U.pending.size === 0 && (Ir(dr(U.done)), e.outrogroups?.delete(U));
|
|
2331
2333
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2332
2334
|
}
|
|
2333
|
-
if (l !== null ||
|
|
2334
|
-
var
|
|
2335
|
-
if (
|
|
2336
|
-
for (
|
|
2337
|
-
(
|
|
2335
|
+
if (l !== null || f !== void 0) {
|
|
2336
|
+
var ce = [];
|
|
2337
|
+
if (f !== void 0)
|
|
2338
|
+
for (c of f)
|
|
2339
|
+
(c.f & te) === 0 && ce.push(c);
|
|
2338
2340
|
for (; l !== null; )
|
|
2339
|
-
(l.f & te) === 0 && l !== e.fallback &&
|
|
2340
|
-
var
|
|
2341
|
-
if (
|
|
2342
|
-
var
|
|
2343
|
-
|
|
2341
|
+
(l.f & te) === 0 && l !== e.fallback && ce.push(l), l = Ht(l.next);
|
|
2342
|
+
var ne = ce.length;
|
|
2343
|
+
if (ne > 0) {
|
|
2344
|
+
var Fe = s === 0 ? r : null;
|
|
2345
|
+
_o(e, ce, Fe);
|
|
2344
2346
|
}
|
|
2345
2347
|
}
|
|
2346
2348
|
}
|
|
2347
|
-
function
|
|
2348
|
-
var
|
|
2349
|
+
function wo(e, t, r, n, i, s, o, l) {
|
|
2350
|
+
var f = (o & ns) !== 0 ? (o & ss) === 0 ? /* @__PURE__ */ Xn(r, !1, !1) : vt(r) : null, a = (o & is) !== 0 ? vt(i) : null;
|
|
2349
2351
|
return {
|
|
2350
|
-
v:
|
|
2351
|
-
i:
|
|
2352
|
-
e:
|
|
2352
|
+
v: f,
|
|
2353
|
+
i: a,
|
|
2354
|
+
e: he(() => (s(t, f ?? r, a ?? i, l), () => {
|
|
2353
2355
|
e.delete(n);
|
|
2354
2356
|
}))
|
|
2355
2357
|
};
|
|
2356
2358
|
}
|
|
2357
|
-
function
|
|
2359
|
+
function Dt(e, t, r) {
|
|
2358
2360
|
if (e.nodes)
|
|
2359
2361
|
for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f & ze) === 0 ? (
|
|
2360
2362
|
/** @type {EffectNodes} */
|
|
@@ -2362,63 +2364,63 @@ function It(e, t, r) {
|
|
|
2362
2364
|
) : r; n !== null; ) {
|
|
2363
2365
|
var o = (
|
|
2364
2366
|
/** @type {TemplateNode} */
|
|
2365
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ ye(n)
|
|
2366
2368
|
);
|
|
2367
2369
|
if (s.before(n), n === i)
|
|
2368
2370
|
return;
|
|
2369
2371
|
n = o;
|
|
2370
2372
|
}
|
|
2371
2373
|
}
|
|
2372
|
-
function
|
|
2374
|
+
function je(e, t, r) {
|
|
2373
2375
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2374
2376
|
}
|
|
2375
|
-
function
|
|
2377
|
+
function mo(e, t, r = !1, n = !1, i = !1) {
|
|
2376
2378
|
var s = e, o = "";
|
|
2377
|
-
|
|
2379
|
+
j(() => {
|
|
2378
2380
|
var l = (
|
|
2379
2381
|
/** @type {Effect} */
|
|
2380
2382
|
$
|
|
2381
2383
|
);
|
|
2382
2384
|
if (o === (o = t() ?? "")) {
|
|
2383
|
-
x &&
|
|
2385
|
+
x && kt();
|
|
2384
2386
|
return;
|
|
2385
2387
|
}
|
|
2386
|
-
if (l.nodes !== null && (
|
|
2388
|
+
if (l.nodes !== null && (fi(
|
|
2387
2389
|
l.nodes.start,
|
|
2388
2390
|
/** @type {TemplateNode} */
|
|
2389
2391
|
l.nodes.end
|
|
2390
2392
|
), l.nodes = null), o !== "") {
|
|
2391
2393
|
if (x) {
|
|
2392
2394
|
E.data;
|
|
2393
|
-
for (var
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
if (
|
|
2397
|
-
throw Kt(),
|
|
2398
|
-
|
|
2395
|
+
for (var f = kt(), a = f; f !== null && (f.nodeType !== It || /** @type {Comment} */
|
|
2396
|
+
f.data !== ""); )
|
|
2397
|
+
a = f, f = /* @__PURE__ */ ye(f);
|
|
2398
|
+
if (f === null)
|
|
2399
|
+
throw Kt(), dt;
|
|
2400
|
+
Ge(E, a), s = q(f);
|
|
2399
2401
|
return;
|
|
2400
2402
|
}
|
|
2401
|
-
var
|
|
2402
|
-
r ?
|
|
2403
|
-
var p = yi(
|
|
2403
|
+
var d = o + "";
|
|
2404
|
+
r ? d = `<svg>${d}</svg>` : n && (d = `<math>${d}</math>`);
|
|
2405
|
+
var p = yi(d);
|
|
2404
2406
|
if ((r || n) && (p = /** @type {Element} */
|
|
2405
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ ge(p)), Ge(
|
|
2406
2408
|
/** @type {TemplateNode} */
|
|
2407
|
-
/* @__PURE__ */
|
|
2409
|
+
/* @__PURE__ */ ge(p),
|
|
2408
2410
|
/** @type {TemplateNode} */
|
|
2409
2411
|
p.lastChild
|
|
2410
2412
|
), r || n)
|
|
2411
|
-
for (; /* @__PURE__ */
|
|
2413
|
+
for (; /* @__PURE__ */ ge(p); )
|
|
2412
2414
|
s.before(
|
|
2413
2415
|
/** @type {TemplateNode} */
|
|
2414
|
-
/* @__PURE__ */
|
|
2416
|
+
/* @__PURE__ */ ge(p)
|
|
2415
2417
|
);
|
|
2416
2418
|
else
|
|
2417
2419
|
s.before(p);
|
|
2418
2420
|
}
|
|
2419
2421
|
});
|
|
2420
2422
|
}
|
|
2421
|
-
function
|
|
2423
|
+
function yo(e, t) {
|
|
2422
2424
|
oi(() => {
|
|
2423
2425
|
var r = e.getRootNode(), n = (
|
|
2424
2426
|
/** @type {ShadowRoot} */
|
|
@@ -2439,7 +2441,7 @@ function fo(e, t) {
|
|
|
2439
2441
|
}
|
|
2440
2442
|
const mn = [...`
|
|
2441
2443
|
\r\f \v\uFEFF`];
|
|
2442
|
-
function
|
|
2444
|
+
function $o(e, t, r) {
|
|
2443
2445
|
var n = e == null ? "" : "" + e;
|
|
2444
2446
|
if (t && (n = n ? n + " " + t : t), r) {
|
|
2445
2447
|
for (var i in r)
|
|
@@ -2453,79 +2455,79 @@ function uo(e, t, r) {
|
|
|
2453
2455
|
}
|
|
2454
2456
|
return n === "" ? null : n;
|
|
2455
2457
|
}
|
|
2456
|
-
function
|
|
2458
|
+
function yn(e, t, r, n, i, s) {
|
|
2457
2459
|
var o = e.__className;
|
|
2458
2460
|
if (x || o !== r || o === void 0) {
|
|
2459
|
-
var l =
|
|
2461
|
+
var l = $o(r, n, s);
|
|
2460
2462
|
(!x || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = r;
|
|
2461
2463
|
} else if (s && i !== s)
|
|
2462
|
-
for (var
|
|
2463
|
-
var
|
|
2464
|
-
(i == null ||
|
|
2464
|
+
for (var f in s) {
|
|
2465
|
+
var a = !!s[f];
|
|
2466
|
+
(i == null || a !== !!i[f]) && e.classList.toggle(f, a);
|
|
2465
2467
|
}
|
|
2466
2468
|
return s;
|
|
2467
2469
|
}
|
|
2468
|
-
const
|
|
2469
|
-
function
|
|
2470
|
-
var i =
|
|
2471
|
-
x && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2470
|
+
const xo = /* @__PURE__ */ Symbol("is custom element"), Eo = /* @__PURE__ */ Symbol("is html"), To = gs ? "link" : "LINK";
|
|
2471
|
+
function Pt(e, t, r, n) {
|
|
2472
|
+
var i = Ao(e);
|
|
2473
|
+
x && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === To) || i[t] !== (i[t] = r) && (t === "loading" && (e[_s] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ti(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2472
2474
|
}
|
|
2473
|
-
function
|
|
2475
|
+
function X(e, t, r) {
|
|
2474
2476
|
var n = y, i = $;
|
|
2475
2477
|
let s = x;
|
|
2476
|
-
x &&
|
|
2478
|
+
x && pe(!1), W(null), ue(null);
|
|
2477
2479
|
try {
|
|
2478
2480
|
// `style` should use `set_attribute` rather than the setter
|
|
2479
2481
|
t !== "style" && // Don't compute setters for custom elements while they aren't registered yet,
|
|
2480
2482
|
// because during their upgrade/instantiation they might add more setters.
|
|
2481
2483
|
// Instead, fall back to a simple "an object, then set as property" heuristic.
|
|
2482
|
-
(
|
|
2483
|
-
!customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? Ti(e).includes(t) : r && typeof r == "object") ? e[t] = r :
|
|
2484
|
+
(Hr.has(e.getAttribute("is") || e.nodeName) || // customElements may not be available in browser extension contexts
|
|
2485
|
+
!customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? Ti(e).includes(t) : r && typeof r == "object") ? e[t] = r : Pt(e, t, r == null ? r : String(r));
|
|
2484
2486
|
} finally {
|
|
2485
|
-
|
|
2487
|
+
W(n), ue(i), s && pe(!0);
|
|
2486
2488
|
}
|
|
2487
2489
|
}
|
|
2488
|
-
function
|
|
2490
|
+
function Ao(e) {
|
|
2489
2491
|
return (
|
|
2490
2492
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2491
2493
|
// @ts-expect-error
|
|
2492
2494
|
e.__attributes ?? (e.__attributes = {
|
|
2493
|
-
[
|
|
2494
|
-
[
|
|
2495
|
+
[xo]: e.nodeName.includes("-"),
|
|
2496
|
+
[Eo]: e.namespaceURI === En
|
|
2495
2497
|
})
|
|
2496
2498
|
);
|
|
2497
2499
|
}
|
|
2498
|
-
var
|
|
2500
|
+
var Hr = /* @__PURE__ */ new Map();
|
|
2499
2501
|
function Ti(e) {
|
|
2500
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2502
|
+
var t = e.getAttribute("is") || e.nodeName, r = Hr.get(t);
|
|
2501
2503
|
if (r) return r;
|
|
2502
|
-
|
|
2504
|
+
Hr.set(t, r = []);
|
|
2503
2505
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2504
|
-
n =
|
|
2506
|
+
n = as(i);
|
|
2505
2507
|
for (var o in n)
|
|
2506
2508
|
n[o].set && r.push(o);
|
|
2507
|
-
i =
|
|
2509
|
+
i = An(i);
|
|
2508
2510
|
}
|
|
2509
2511
|
return r;
|
|
2510
2512
|
}
|
|
2511
|
-
function
|
|
2512
|
-
return e === t || e?.[
|
|
2513
|
+
function $n(e, t) {
|
|
2514
|
+
return e === t || e?.[tr] === t;
|
|
2513
2515
|
}
|
|
2514
|
-
function
|
|
2516
|
+
function Co(e = {}, t, r, n) {
|
|
2515
2517
|
return oi(() => {
|
|
2516
2518
|
var i, s;
|
|
2517
|
-
return
|
|
2519
|
+
return Ur(() => {
|
|
2518
2520
|
i = s, s = [], gr(() => {
|
|
2519
|
-
e !== r(...s) && (t(e, ...s), i &&
|
|
2521
|
+
e !== r(...s) && (t(e, ...s), i && $n(r(...i), e) && t(null, ...i));
|
|
2520
2522
|
});
|
|
2521
2523
|
}), () => {
|
|
2522
|
-
|
|
2523
|
-
s &&
|
|
2524
|
+
at(() => {
|
|
2525
|
+
s && $n(r(...s), e) && t(null, ...s);
|
|
2524
2526
|
});
|
|
2525
2527
|
};
|
|
2526
2528
|
}), e;
|
|
2527
2529
|
}
|
|
2528
|
-
function
|
|
2530
|
+
function yr(e, t, r, n) {
|
|
2529
2531
|
var i = (
|
|
2530
2532
|
/** @type {V} */
|
|
2531
2533
|
n
|
|
@@ -2533,15 +2535,15 @@ function tr(e, t, r, n) {
|
|
|
2533
2535
|
n), i), l;
|
|
2534
2536
|
l = /** @type {V} */
|
|
2535
2537
|
e[t], l === void 0 && n !== void 0 && (l = o());
|
|
2536
|
-
var
|
|
2537
|
-
|
|
2538
|
+
var f;
|
|
2539
|
+
f = () => {
|
|
2538
2540
|
var h = (
|
|
2539
2541
|
/** @type {V} */
|
|
2540
2542
|
e[t]
|
|
2541
2543
|
);
|
|
2542
2544
|
return h === void 0 ? o() : (s = !0, h);
|
|
2543
2545
|
};
|
|
2544
|
-
var
|
|
2546
|
+
var a = !1, d = /* @__PURE__ */ _r(() => (a = !1, f())), p = (
|
|
2545
2547
|
/** @type {Effect} */
|
|
2546
2548
|
$
|
|
2547
2549
|
);
|
|
@@ -2549,18 +2551,18 @@ function tr(e, t, r, n) {
|
|
|
2549
2551
|
/** @type {() => V} */
|
|
2550
2552
|
(function(h, _) {
|
|
2551
2553
|
if (arguments.length > 0) {
|
|
2552
|
-
const
|
|
2553
|
-
return
|
|
2554
|
+
const c = _ ? v(d) : h;
|
|
2555
|
+
return N(d, c), a = !0, i !== void 0 && (i = c), h;
|
|
2554
2556
|
}
|
|
2555
|
-
return
|
|
2557
|
+
return Ke && a || (p.f & He) !== 0 ? d.v : v(d);
|
|
2556
2558
|
})
|
|
2557
2559
|
);
|
|
2558
2560
|
}
|
|
2559
|
-
function
|
|
2560
|
-
return new
|
|
2561
|
+
function So(e) {
|
|
2562
|
+
return new Mo(e);
|
|
2561
2563
|
}
|
|
2562
|
-
var
|
|
2563
|
-
class
|
|
2564
|
+
var Ie, oe;
|
|
2565
|
+
class Mo {
|
|
2564
2566
|
/**
|
|
2565
2567
|
* @param {ComponentConstructorOptions & {
|
|
2566
2568
|
* component: any;
|
|
@@ -2568,11 +2570,11 @@ class go {
|
|
|
2568
2570
|
*/
|
|
2569
2571
|
constructor(t) {
|
|
2570
2572
|
/** @type {any} */
|
|
2571
|
-
|
|
2573
|
+
m(this, Ie);
|
|
2572
2574
|
/** @type {Record<string, any>} */
|
|
2573
|
-
|
|
2575
|
+
m(this, oe);
|
|
2574
2576
|
var r = /* @__PURE__ */ new Map(), n = (s, o) => {
|
|
2575
|
-
var l = /* @__PURE__ */
|
|
2577
|
+
var l = /* @__PURE__ */ Xn(o, !1, !1);
|
|
2576
2578
|
return r.set(s, l), l;
|
|
2577
2579
|
};
|
|
2578
2580
|
const i = new Proxy(
|
|
@@ -2582,42 +2584,42 @@ class go {
|
|
|
2582
2584
|
return v(r.get(o) ?? n(o, Reflect.get(s, o)));
|
|
2583
2585
|
},
|
|
2584
2586
|
has(s, o) {
|
|
2585
|
-
return o ===
|
|
2587
|
+
return o === ps ? !0 : (v(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
|
|
2586
2588
|
},
|
|
2587
2589
|
set(s, o, l) {
|
|
2588
|
-
return
|
|
2590
|
+
return N(r.get(o) ?? n(o, l), l), Reflect.set(s, o, l);
|
|
2589
2591
|
}
|
|
2590
2592
|
}
|
|
2591
2593
|
);
|
|
2592
|
-
b(this, oe, (t.hydrate ?
|
|
2594
|
+
b(this, oe, (t.hydrate ? co : $i)(t.component, {
|
|
2593
2595
|
target: t.target,
|
|
2594
2596
|
anchor: t.anchor,
|
|
2595
2597
|
props: i,
|
|
2596
2598
|
context: t.context,
|
|
2597
2599
|
intro: t.intro ?? !1,
|
|
2598
2600
|
recover: t.recover
|
|
2599
|
-
})), (!t?.props?.$$host || t.sync === !1) &&
|
|
2600
|
-
for (const s of Object.keys(
|
|
2601
|
+
})), (!t?.props?.$$host || t.sync === !1) && rr(), b(this, Ie, i.$$events);
|
|
2602
|
+
for (const s of Object.keys(u(this, oe)))
|
|
2601
2603
|
s === "$set" || s === "$destroy" || s === "$on" || lr(this, s, {
|
|
2602
2604
|
get() {
|
|
2603
|
-
return
|
|
2605
|
+
return u(this, oe)[s];
|
|
2604
2606
|
},
|
|
2605
2607
|
/** @param {any} value */
|
|
2606
2608
|
set(o) {
|
|
2607
|
-
|
|
2609
|
+
u(this, oe)[s] = o;
|
|
2608
2610
|
},
|
|
2609
2611
|
enumerable: !0
|
|
2610
2612
|
});
|
|
2611
|
-
|
|
2613
|
+
u(this, oe).$set = /** @param {Record<string, any>} next */
|
|
2612
2614
|
(s) => {
|
|
2613
2615
|
Object.assign(i, s);
|
|
2614
|
-
},
|
|
2615
|
-
|
|
2616
|
+
}, u(this, oe).$destroy = () => {
|
|
2617
|
+
ho(u(this, oe));
|
|
2616
2618
|
};
|
|
2617
2619
|
}
|
|
2618
2620
|
/** @param {Record<string, any>} props */
|
|
2619
2621
|
$set(t) {
|
|
2620
|
-
|
|
2622
|
+
u(this, oe).$set(t);
|
|
2621
2623
|
}
|
|
2622
2624
|
/**
|
|
2623
2625
|
* @param {string} event
|
|
@@ -2625,20 +2627,20 @@ class go {
|
|
|
2625
2627
|
* @returns {any}
|
|
2626
2628
|
*/
|
|
2627
2629
|
$on(t, r) {
|
|
2628
|
-
|
|
2630
|
+
u(this, Ie)[t] = u(this, Ie)[t] || [];
|
|
2629
2631
|
const n = (...i) => r.call(this, ...i);
|
|
2630
|
-
return
|
|
2631
|
-
|
|
2632
|
+
return u(this, Ie)[t].push(n), () => {
|
|
2633
|
+
u(this, Ie)[t] = u(this, Ie)[t].filter(
|
|
2632
2634
|
/** @param {any} fn */
|
|
2633
2635
|
(i) => i !== n
|
|
2634
2636
|
);
|
|
2635
2637
|
};
|
|
2636
2638
|
}
|
|
2637
2639
|
$destroy() {
|
|
2638
|
-
|
|
2640
|
+
u(this, oe).$destroy();
|
|
2639
2641
|
}
|
|
2640
2642
|
}
|
|
2641
|
-
|
|
2643
|
+
Ie = new WeakMap(), oe = new WeakMap();
|
|
2642
2644
|
let Ai;
|
|
2643
2645
|
typeof HTMLElement == "function" && (Ai = class extends HTMLElement {
|
|
2644
2646
|
/**
|
|
@@ -2649,27 +2651,27 @@ typeof HTMLElement == "function" && (Ai = class extends HTMLElement {
|
|
|
2649
2651
|
constructor(t, r, n) {
|
|
2650
2652
|
super();
|
|
2651
2653
|
/** The Svelte component constructor */
|
|
2652
|
-
|
|
2654
|
+
R(this, "$$ctor");
|
|
2653
2655
|
/** Slots */
|
|
2654
|
-
|
|
2656
|
+
R(this, "$$s");
|
|
2655
2657
|
/** @type {any} The Svelte component instance */
|
|
2656
|
-
|
|
2658
|
+
R(this, "$$c");
|
|
2657
2659
|
/** Whether or not the custom element is connected */
|
|
2658
|
-
|
|
2660
|
+
R(this, "$$cn", !1);
|
|
2659
2661
|
/** @type {Record<string, any>} Component props data */
|
|
2660
|
-
|
|
2662
|
+
R(this, "$$d", {});
|
|
2661
2663
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
2662
|
-
|
|
2664
|
+
R(this, "$$r", !1);
|
|
2663
2665
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
2664
|
-
|
|
2666
|
+
R(this, "$$p_d", {});
|
|
2665
2667
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
2666
|
-
|
|
2668
|
+
R(this, "$$l", {});
|
|
2667
2669
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
2668
|
-
|
|
2670
|
+
R(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
2669
2671
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
2670
|
-
|
|
2672
|
+
R(this, "$$me");
|
|
2671
2673
|
/** @type {ShadowRoot | null} The ShadowRoot of the custom element */
|
|
2672
|
-
|
|
2674
|
+
R(this, "$$shadowRoot", null);
|
|
2673
2675
|
this.$$ctor = t, this.$$s = r, n && (this.$$shadowRoot = this.attachShadow(n));
|
|
2674
2676
|
}
|
|
2675
2677
|
/**
|
|
@@ -2700,12 +2702,12 @@ typeof HTMLElement == "function" && (Ai = class extends HTMLElement {
|
|
|
2700
2702
|
let t = function(i) {
|
|
2701
2703
|
return (s) => {
|
|
2702
2704
|
const o = jr("slot");
|
|
2703
|
-
i !== "default" && (o.name = i),
|
|
2705
|
+
i !== "default" && (o.name = i), xe(s, o);
|
|
2704
2706
|
};
|
|
2705
2707
|
};
|
|
2706
2708
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2707
2709
|
return;
|
|
2708
|
-
const r = {}, n =
|
|
2710
|
+
const r = {}, n = ko(this);
|
|
2709
2711
|
for (const i of this.$$s)
|
|
2710
2712
|
i in n && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), r.default = !0) : r[i] = t(i));
|
|
2711
2713
|
for (const i of this.attributes) {
|
|
@@ -2714,7 +2716,7 @@ typeof HTMLElement == "function" && (Ai = class extends HTMLElement {
|
|
|
2714
2716
|
}
|
|
2715
2717
|
for (const i in this.$$p_d)
|
|
2716
2718
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2717
|
-
this.$$c =
|
|
2719
|
+
this.$$c = So({
|
|
2718
2720
|
component: this.$$ctor,
|
|
2719
2721
|
target: this.$$shadowRoot || this,
|
|
2720
2722
|
props: {
|
|
@@ -2722,8 +2724,8 @@ typeof HTMLElement == "function" && (Ai = class extends HTMLElement {
|
|
|
2722
2724
|
$$slots: r,
|
|
2723
2725
|
$$host: this
|
|
2724
2726
|
}
|
|
2725
|
-
}), this.$$me =
|
|
2726
|
-
|
|
2727
|
+
}), this.$$me = Xs(() => {
|
|
2728
|
+
Ur(() => {
|
|
2727
2729
|
this.$$r = !0;
|
|
2728
2730
|
for (const i of or(this.$$c)) {
|
|
2729
2731
|
if (!this.$$p_d[i]?.reflect) continue;
|
|
@@ -2801,7 +2803,7 @@ function sr(e, t, r, n) {
|
|
|
2801
2803
|
return t;
|
|
2802
2804
|
}
|
|
2803
2805
|
}
|
|
2804
|
-
function
|
|
2806
|
+
function ko(e) {
|
|
2805
2807
|
const t = {};
|
|
2806
2808
|
return e.childNodes.forEach((r) => {
|
|
2807
2809
|
t[
|
|
@@ -2810,7 +2812,7 @@ function bo(e) {
|
|
|
2810
2812
|
] = !0;
|
|
2811
2813
|
}), t;
|
|
2812
2814
|
}
|
|
2813
|
-
function
|
|
2815
|
+
function Ro(e, t, r, n, i, s) {
|
|
2814
2816
|
let o = class extends Ai {
|
|
2815
2817
|
constructor() {
|
|
2816
2818
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -2826,12 +2828,12 @@ function mo(e, t, r, n, i, s) {
|
|
|
2826
2828
|
get() {
|
|
2827
2829
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2828
2830
|
},
|
|
2829
|
-
set(
|
|
2830
|
-
|
|
2831
|
-
var
|
|
2832
|
-
if (
|
|
2833
|
-
var
|
|
2834
|
-
|
|
2831
|
+
set(f) {
|
|
2832
|
+
f = sr(l, f, t), this.$$d[l] = f;
|
|
2833
|
+
var a = this.$$c;
|
|
2834
|
+
if (a) {
|
|
2835
|
+
var d = mt(a, l)?.get;
|
|
2836
|
+
d ? a[l] = f : a.$set({ [l]: f });
|
|
2835
2837
|
}
|
|
2836
2838
|
}
|
|
2837
2839
|
});
|
|
@@ -2844,8 +2846,25 @@ function mo(e, t, r, n, i, s) {
|
|
|
2844
2846
|
}), e.element = /** @type {any} */
|
|
2845
2847
|
o, o;
|
|
2846
2848
|
}
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
+
function Lo() {
|
|
2850
|
+
return typeof globalThis < "u" && "customElements" in globalThis && globalThis.customElements?.get("pie-tool-calculator") ? Promise.resolve() : import("./pie-tool-calculator-CjiwM9t4.js");
|
|
2851
|
+
}
|
|
2852
|
+
const No = {
|
|
2853
|
+
calculator: Lo,
|
|
2854
|
+
graph: () => import("./tool-graph-CXPY5FT9.js"),
|
|
2855
|
+
periodicTable: () => import("./tool-periodic-table-C3x2EIo9.js"),
|
|
2856
|
+
ruler: () => import("./tool-ruler-BdnBVoda.js"),
|
|
2857
|
+
protractor: () => import("./tool-protractor-B3JIgh4k.js"),
|
|
2858
|
+
lineReader: () => import("./tool-line-reader-CIyMzHIp.js")
|
|
2859
|
+
};
|
|
2860
|
+
function Oo(e, t = {}) {
|
|
2861
|
+
e.setToolModuleLoaders({
|
|
2862
|
+
...No,
|
|
2863
|
+
...t.loaders || {}
|
|
2864
|
+
});
|
|
2865
|
+
}
|
|
2866
|
+
var Vo = /* @__PURE__ */ Xe('<button type="button"><!></button>'), Io = /* @__PURE__ */ Xe("<pie-tool-graph></pie-tool-graph>", 2), Ho = /* @__PURE__ */ Xe("<pie-tool-calculator></pie-tool-calculator>", 2), Do = /* @__PURE__ */ Xe("<pie-tool-periodic-table></pie-tool-periodic-table>", 2), Po = /* @__PURE__ */ Xe("<pie-tool-protractor></pie-tool-protractor>", 2), Fo = /* @__PURE__ */ Xe("<pie-tool-line-reader></pie-tool-line-reader>", 2), Bo = /* @__PURE__ */ Xe("<pie-tool-ruler></pie-tool-ruler>", 2), Zo = /* @__PURE__ */ Xe('<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);
|
|
2867
|
+
const jo = {
|
|
2849
2868
|
hash: "svelte-x5tssx",
|
|
2850
2869
|
code: `
|
|
2851
2870
|
/* 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;}
|
|
@@ -2857,7 +2876,7 @@ const Ro = {
|
|
|
2857
2876
|
.section-tools-toolbar--bottom.svelte-x5tssx .tools-buttons:where(.svelte-x5tssx) {flex-direction:row;flex-wrap:wrap;}
|
|
2858
2877
|
|
|
2859
2878
|
/* Vertical layout for left/right */.section-tools-toolbar--left.svelte-x5tssx .tools-buttons:where(.svelte-x5tssx),
|
|
2860
|
-
.section-tools-toolbar--right.svelte-x5tssx .tools-buttons:where(.svelte-x5tssx) {flex-direction:column;flex-wrap:nowrap;}.tool-button.svelte-x5tssx {display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0.25rem;background-color:var(--pie-background, #ffffff);border:1px solid var(--pie-border, #ccc);border-radius:0.25rem;cursor:pointer;color:var(--pie-text, #333);transition:all 0.15s ease;}.tool-button.svelte-x5tssx:hover:not(:disabled) {background-color:var(--pie-secondary-background, #f5f5f5);border-color:var(--pie-border-hover, #999);}.tool-button.active.svelte-x5tssx {background-color:var(--pie-primary, #1976d2);color:white;border-color:var(--pie-primary, #1976d2);}.tool-button.active.svelte-x5tssx:hover:not(:disabled) {background-color:var(--pie-primary-dark, #1565c0);}.tool-button.svelte-x5tssx:focus-visible {outline:2px solid var(--pie-primary, #1976d2);outline-offset:2px;}.tool-button.svelte-x5tssx:disabled {opacity:0.5;cursor:not-allowed;}
|
|
2879
|
+
.section-tools-toolbar--right.svelte-x5tssx .tools-buttons:where(.svelte-x5tssx) {flex-direction:column;flex-wrap:nowrap;}.tool-button.svelte-x5tssx {display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0.25rem;background-color:var(--pie-background, #ffffff);border:1px solid var(--pie-border, #ccc);border-radius:0.25rem;cursor:pointer;color:var(--pie-text, #333);transition:all 0.15s ease;}.tool-button.svelte-x5tssx svg {width:100%;height:100%;}.tool-button.svelte-x5tssx:hover:not(:disabled) {background-color:var(--pie-secondary-background, #f5f5f5);border-color:var(--pie-border-hover, #999);}.tool-button.active.svelte-x5tssx {background-color:var(--pie-primary, #1976d2);color:white;border-color:var(--pie-primary, #1976d2);}.tool-button.active.svelte-x5tssx:hover:not(:disabled) {background-color:var(--pie-primary-dark, #1565c0);}.tool-button.svelte-x5tssx:focus-visible {outline:2px solid var(--pie-primary, #1976d2);outline-offset:2px;}.tool-button.svelte-x5tssx:disabled {opacity:0.5;cursor:not-allowed;}
|
|
2861
2880
|
|
|
2862
2881
|
/* Responsive: Adapt for mobile devices */
|
|
2863
2882
|
@media (max-width: 768px) {
|
|
@@ -2872,229 +2891,218 @@ const Ro = {
|
|
|
2872
2891
|
|
|
2873
2892
|
/* 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;}`
|
|
2874
2893
|
};
|
|
2875
|
-
function
|
|
2876
|
-
|
|
2877
|
-
const r = typeof window < "u";
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2894
|
+
function qo(e, t) {
|
|
2895
|
+
On(t, !0), yo(e, jo);
|
|
2896
|
+
const r = typeof window < "u", n = Ki();
|
|
2897
|
+
Oo(n);
|
|
2898
|
+
let i = yr(t, "enabledTools", 7, ""), s = yr(t, "position", 7, "bottom"), o = yr(t, "toolCoordinator", 7, null), l = /* @__PURE__ */ V(null), f = /* @__PURE__ */ V(null);
|
|
2899
|
+
const a = /* @__PURE__ */ Z(() => o() || v(f)?.toolCoordinator), d = /* @__PURE__ */ Z(() => v(f)?.sectionId || "default"), p = /* @__PURE__ */ Z(() => Ji(i())), h = /* @__PURE__ */ Z(() => {
|
|
2900
|
+
const w = v(f)?.toolkitCoordinator?.config?.tools;
|
|
2901
|
+
return ts(w || {});
|
|
2902
|
+
}), _ = /* @__PURE__ */ Z(() => Qi(es(v(h), "section")));
|
|
2903
|
+
let c = /* @__PURE__ */ Z(() => v(p).length > 0 ? v(p) : v(_)), C = /* @__PURE__ */ Z(() => v(c).length > 0);
|
|
2904
|
+
const g = /* @__PURE__ */ Z(() => ({ level: "section", assessment: {}, section: {} }));
|
|
2905
|
+
let O = /* @__PURE__ */ V(!1), k = /* @__PURE__ */ V(!1), $e = /* @__PURE__ */ V(!1), re = /* @__PURE__ */ V(!1), ce = /* @__PURE__ */ V(!1), ne = /* @__PURE__ */ V(!1), Fe = /* @__PURE__ */ V(wt({})), U = /* @__PURE__ */ V("");
|
|
2906
|
+
function M(w) {
|
|
2907
|
+
return Xi(w, "section", v(d));
|
|
2908
|
+
}
|
|
2909
|
+
function _t() {
|
|
2910
|
+
v(a) && (N(k, v(a).isToolVisible(M("calculator")), !0), N(O, v(a).isToolVisible(M("graph")), !0), N($e, v(a).isToolVisible(M("periodicTable")), !0), N(re, v(a).isToolVisible(M("protractor")), !0), N(ce, v(a).isToolVisible(M("lineReader")), !0), N(ne, v(a).isToolVisible(M("ruler")), !0), N(
|
|
2911
|
+
Fe,
|
|
2912
|
+
{
|
|
2913
|
+
calculator: v(k),
|
|
2914
|
+
graph: v(O),
|
|
2915
|
+
periodicTable: v($e),
|
|
2916
|
+
protractor: v(re),
|
|
2917
|
+
lineReader: v(ce),
|
|
2918
|
+
ruler: v(ne)
|
|
2919
|
+
},
|
|
2920
|
+
!0
|
|
2921
|
+
));
|
|
2922
|
+
}
|
|
2923
|
+
function Xt(w) {
|
|
2924
|
+
return v(Fe)[w] === !0;
|
|
2925
|
+
}
|
|
2926
|
+
async function Ci(w) {
|
|
2927
|
+
if (!v(a)) return;
|
|
2928
|
+
await n.ensureToolModuleLoaded(w);
|
|
2929
|
+
const Be = M(w);
|
|
2930
|
+
v(a).toggleTool(Be), _t();
|
|
2931
|
+
const ke = v(Xr).find((bt) => bt.toolId === w);
|
|
2932
|
+
if (ke) {
|
|
2933
|
+
const bt = v(a).isToolVisible(Be);
|
|
2934
|
+
N(U, `${ke.ariaLabel} ${bt ? "opened" : "closed"}`);
|
|
2889
2935
|
}
|
|
2890
2936
|
}
|
|
2891
|
-
let
|
|
2937
|
+
let gt = null;
|
|
2892
2938
|
Ei(() => {
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
protractor: "@pie-players/pie-tool-protractor",
|
|
2899
|
-
lineReader: "@pie-players/pie-tool-line-reader",
|
|
2900
|
-
magnifier: "@pie-players/pie-tool-magnifier",
|
|
2901
|
-
ruler: "@pie-players/pie-tool-ruler"
|
|
2902
|
-
};
|
|
2903
|
-
Promise.all(v(l).map((ce) => M[ce]).filter(Boolean).map((ce) => import(ce))).catch((ce) => {
|
|
2904
|
-
console.error("[SectionToolsToolbar] Failed to load tool web components:", ce);
|
|
2939
|
+
_t();
|
|
2940
|
+
}), Nr(() => {
|
|
2941
|
+
if (v(l))
|
|
2942
|
+
return Wi(v(l), (w) => {
|
|
2943
|
+
N(f, w, !0);
|
|
2905
2944
|
});
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
id: "graph",
|
|
2916
|
-
ariaLabel: "Graphing tool",
|
|
2917
|
-
visible: v(u),
|
|
2918
|
-
enabled: v(l).includes("graph"),
|
|
2919
|
-
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.75 5a.76.76 0 0 1 .75.75v11c0 .438.313.75.75.75h13a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-13C5 19 4 18 4 16.75v-11A.74.74 0 0 1 4.75 5ZM8 8.25a.74.74 0 0 1 .75-.75h6.5a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-6.5A.722.722 0 0 1 8 8.25Zm.75 2.25h4.5a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-4.5a.723.723 0 0 1-.75-.75.74.74 0 0 1 .75-.75Zm0 3h8.5a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-8.5a.723.723 0 0 1-.75-.75.74.74 0 0 1 .75-.75Z" fill="currentColor"/></svg>'
|
|
2920
|
-
},
|
|
2921
|
-
{
|
|
2922
|
-
id: "periodicTable",
|
|
2923
|
-
ariaLabel: "Periodic table of elements",
|
|
2924
|
-
visible: v(c),
|
|
2925
|
-
enabled: v(l).includes("periodicTable"),
|
|
2926
|
-
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 21c-.85 0-1.454-.38-1.813-1.137-.358-.759-.27-1.463.263-2.113L9 11V5H8a.968.968 0 0 1-.713-.287A.968.968 0 0 1 7 4c0-.283.096-.52.287-.712A.968.968 0 0 1 8 3h8c.283 0 .52.096.712.288.192.191.288.429.288.712s-.096.52-.288.713A.968.968 0 0 1 16 5h-1v6l5.55 6.75c.533.65.62 1.354.262 2.113C20.454 20.62 19.85 21 19 21H5Zm2-3h10l-3.4-4h-3.2L7 18Zm-2 1h14l-6-7.3V5h-2v6.7L5 19Z" fill="currentColor"/></svg>'
|
|
2927
|
-
},
|
|
2928
|
-
{
|
|
2929
|
-
id: "protractor",
|
|
2930
|
-
ariaLabel: "Angle measurement tool",
|
|
2931
|
-
visible: v(p),
|
|
2932
|
-
enabled: v(l).includes("protractor"),
|
|
2933
|
-
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m6.75 21-.25-2.2 2.85-7.85a3.95 3.95 0 0 0 1.75.95l-2.75 7.55L6.75 21Zm10.5 0-1.6-1.55-2.75-7.55a3.948 3.948 0 0 0 1.75-.95l2.85 7.85-.25 2.2ZM12 11a2.893 2.893 0 0 1-2.125-.875A2.893 2.893 0 0 1 9 8c0-.65.188-1.23.563-1.737A2.935 2.935 0 0 1 11 5.2V3h2v2.2c.583.2 1.063.554 1.438 1.063C14.812 6.77 15 7.35 15 8c0 .833-.292 1.542-.875 2.125A2.893 2.893 0 0 1 12 11Zm0-2c.283 0 .52-.096.713-.287A.967.967 0 0 0 13 8a.967.967 0 0 0-.287-.713A.968.968 0 0 0 12 7a.968.968 0 0 0-.713.287A.967.967 0 0 0 11 8c0 .283.096.52.287.713.192.191.43.287.713.287Z" fill="currentColor"/></svg>'
|
|
2934
|
-
},
|
|
2935
|
-
{
|
|
2936
|
-
id: "lineReader",
|
|
2937
|
-
ariaLabel: "Line reading guide",
|
|
2938
|
-
visible: v(h),
|
|
2939
|
-
enabled: v(l).includes("lineReader"),
|
|
2940
|
-
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.85 15c.517 0 .98-.15 1.388-.45.408-.3.695-.692.862-1.175l.375-1.15c.267-.8.2-1.537-.2-2.213C8.875 9.337 8.3 9 7.55 9H4.025l.475 3.925c.083.583.346 1.075.787 1.475.442.4.963.6 1.563.6Zm10.3 0c.6 0 1.12-.2 1.563-.6.441-.4.704-.892.787-1.475L19.975 9h-3.5c-.75 0-1.325.342-1.725 1.025-.4.683-.467 1.425-.2 2.225l.35 1.125c.167.483.454.875.862 1.175.409.3.871.45 1.388.45Zm-10.3 2c-1.1 0-2.063-.363-2.887-1.088a4.198 4.198 0 0 1-1.438-2.737L2 9H1V7h6.55c.733 0 1.404.18 2.013.537A3.906 3.906 0 0 1 11 9h2.025c.35-.617.83-1.104 1.438-1.463A3.892 3.892 0 0 1 16.474 7H23v2h-1l-.525 4.175a4.198 4.198 0 0 1-1.438 2.737A4.238 4.238 0 0 1 17.15 17c-.95 0-1.804-.27-2.562-.813A4.234 4.234 0 0 1 13 14.026l-.375-1.125a21.35 21.35 0 0 1-.1-.363 4.926 4.926 0 0 1-.1-.537h-.85c-.033.2-.067.363-.1.488a21.35 21.35 0 0 1-.1.362L11 14a4.3 4.3 0 0 1-1.588 2.175A4.258 4.258 0 0 1 6.85 17Z" fill="currentColor"/></svg>'
|
|
2941
|
-
},
|
|
2942
|
-
{
|
|
2943
|
-
id: "magnifier",
|
|
2944
|
-
ariaLabel: "Text magnification tool",
|
|
2945
|
-
visible: v(_),
|
|
2946
|
-
enabled: v(l).includes("magnifier"),
|
|
2947
|
-
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.5 5.5c-1.813 0-3.438.969-4.344 2.5a4.937 4.937 0 0 0 0 5 4.974 4.974 0 0 0 4.344 2.5 4.96 4.96 0 0 0 4.313-2.5 4.937 4.937 0 0 0 0-5c-.908-1.531-2.533-2.5-4.313-2.5Zm0 11.5A6.495 6.495 0 0 1 4 10.5C4 6.937 6.906 4 10.5 4c3.563 0 6.5 2.938 6.5 6.5a6.597 6.597 0 0 1-1.406 4.063l4.156 4.187a.685.685 0 0 1 0 1.031.685.685 0 0 1-1.031 0l-4.188-4.156A6.548 6.548 0 0 1 10.5 17Zm-.75-3.75v-2h-2A.723.723 0 0 1 7 10.5a.74.74 0 0 1 .75-.75h2v-2A.74.74 0 0 1 10.5 7a.76.76 0 0 1 .75.75v2h2a.76.76 0 0 1 .696 1.039.741.741 0 0 1-.696.461h-2v2a.74.74 0 0 1-.75.75.723.723 0 0 1-.75-.75Z" fill="currentColor"/></svg>'
|
|
2948
|
-
},
|
|
2949
|
-
{
|
|
2950
|
-
id: "ruler",
|
|
2951
|
-
ariaLabel: "Measurement ruler",
|
|
2952
|
-
visible: v(d),
|
|
2953
|
-
enabled: v(l).includes("ruler"),
|
|
2954
|
-
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m8.8 10.95 2.15-2.175-1.4-1.425-1.1 1.1-1.4-1.4 1.075-1.1L7 4.825 4.825 7 8.8 10.95Zm8.2 8.225L19.175 17l-1.125-1.125-1.1 1.075-1.4-1.4 1.075-1.1-1.425-1.4-2.15 2.15L17 19.175ZM7.25 21H3v-4.25l4.375-4.375L2 7l5-5 5.4 5.4 3.775-3.8c.2-.2.425-.35.675-.45a2.068 2.068 0 0 1 1.55 0c.25.1.475.25.675.45L20.4 4.95c.2.2.35.425.45.675.1.25.15.508.15.775a1.975 1.975 0 0 1-.6 1.425l-3.775 3.8L22 17l-5 5-5.375-5.375L7.25 21ZM5 19h1.4l9.8-9.775L14.775 7.8 5 17.6V19Z" fill="currentColor"/></svg>'
|
|
2955
|
-
}
|
|
2956
|
-
]);
|
|
2957
|
-
let W = /* @__PURE__ */ N(null), re = /* @__PURE__ */ N(null), X = /* @__PURE__ */ N(null), xe = /* @__PURE__ */ N(null), V = /* @__PURE__ */ N(null), q = /* @__PURE__ */ N(null);
|
|
2958
|
-
ii(() => {
|
|
2959
|
-
s() && (v(W) && (v(W).coordinator = s()), v(re) && (v(re).coordinator = s()), v(X) && (v(X).coordinator = s()), v(xe) && (v(xe).coordinator = s()), v(V) && (v(V).coordinator = s()), v(q) && (v(q).coordinator = s()));
|
|
2945
|
+
}), Nr(() => {
|
|
2946
|
+
if (gt?.(), gt = null, !!v(a))
|
|
2947
|
+
return _t(), gt = v(a).subscribe(() => {
|
|
2948
|
+
_t();
|
|
2949
|
+
}), () => {
|
|
2950
|
+
gt?.(), gt = null;
|
|
2951
|
+
};
|
|
2952
|
+
}), po(() => {
|
|
2953
|
+
gt?.();
|
|
2960
2954
|
});
|
|
2961
|
-
|
|
2955
|
+
const Xr = /* @__PURE__ */ Z(() => v(c).map((w) => n.get(w)).filter((w) => !!w).map((w) => {
|
|
2956
|
+
const Be = typeof w.icon == "function" ? w.icon(v(g)) : w.icon;
|
|
2957
|
+
return {
|
|
2958
|
+
toolId: w.toolId,
|
|
2959
|
+
label: w.name,
|
|
2960
|
+
ariaLabel: w.name,
|
|
2961
|
+
tooltip: w.name,
|
|
2962
|
+
icon: Be,
|
|
2963
|
+
onClick: () => {
|
|
2964
|
+
Ci(w.toolId);
|
|
2965
|
+
}
|
|
2966
|
+
};
|
|
2967
|
+
}));
|
|
2968
|
+
function Si(w) {
|
|
2969
|
+
return w.startsWith("<svg") ? w : {
|
|
2970
|
+
calculator: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7,2H17A2,2 0 0,1 19,4V20A2,2 0 0,1 17,22H7A2,2 0 0,1 5,20V4A2,2 0 0,1 7,2M7,4V8H17V4H7M7,10V12H9V10H7M11,10V12H13V10H11M15,10V12H17V10H15M7,14V16H9V14H7M11,14V16H13V14H11M15,14V16H17V14H15M7,18V20H9V18H7M11,18V20H13V18H11M15,18V20H17V18H15Z" fill="currentColor"/></svg>',
|
|
2971
|
+
"chart-bar": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4.75 5a.76.76 0 0 1 .75.75v11c0 .438.313.75.75.75h13a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-13C5 19 4 18 4 16.75v-11A.74.74 0 0 1 4.75 5ZM8 8.25a.74.74 0 0 1 .75-.75h6.5a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-6.5A.722.722 0 0 1 8 8.25Zm.75 2.25h4.5a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-4.5a.723.723 0 0 1-.75-.75.74.74 0 0 1 .75-.75Zm0 3h8.5a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-8.5a.723.723 0 0 1-.75-.75.74.74 0 0 1 .75-.75Z" fill="currentColor"/></svg>',
|
|
2972
|
+
beaker: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 21c-.85 0-1.454-.38-1.813-1.137-.358-.759-.27-1.463.263-2.113L9 11V5H8a.968.968 0 0 1-.713-.287A.968.968 0 0 1 7 4c0-.283.096-.52.287-.712A.968.968 0 0 1 8 3h8c.283 0 .52.096.712.288.192.191.288.429.288.712s-.096.52-.288.713A.968.968 0 0 1 16 5h-1v6l5.55 6.75c.533.65.62 1.354.262 2.113C20.454 20.62 19.85 21 19 21H5Zm2-3h10l-3.4-4h-3.2L7 18Zm-2 1h14l-6-7.3V5h-2v6.7L5 19Z" fill="currentColor"/></svg>',
|
|
2973
|
+
protractor: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m6.75 21-.25-2.2 2.85-7.85a3.95 3.95 0 0 0 1.75.95l-2.75 7.55L6.75 21Zm10.5 0-1.6-1.55-2.75-7.55a3.948 3.948 0 0 0 1.75-.95l2.85 7.85-.25 2.2ZM12 11a2.893 2.893 0 0 1-2.125-.875A2.893 2.893 0 0 1 9 8c0-.65.188-1.23.563-1.737A2.935 2.935 0 0 1 11 5.2V3h2v2.2c.583.2 1.063.554 1.438 1.063C14.812 6.77 15 7.35 15 8c0 .833-.292 1.542-.875 2.125A2.893 2.893 0 0 1 12 11Zm0-2c.283 0 .52-.096.713-.287A.967.967 0 0 0 13 8a.967.967 0 0 0-.287-.713A.968.968 0 0 0 12 7a.968.968 0 0 0-.713.287A.967.967 0 0 0 11 8c0 .283.096.52.287.713.192.191.43.287.713.287Z" fill="currentColor"/></svg>',
|
|
2974
|
+
"bars-3": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.85 15c.517 0 .98-.15 1.388-.45.408-.3.695-.692.862-1.175l.375-1.15c.267-.8.2-1.537-.2-2.213C8.875 9.337 8.3 9 7.55 9H4.025l.475 3.925c.083.583.346 1.075.787 1.475.442.4.963.6 1.563.6Zm10.3 0c.6 0 1.12-.2 1.563-.6.441-.4.704-.892.787-1.475L19.975 9h-3.5c-.75 0-1.325.342-1.725 1.025-.4.683-.467 1.425-.2 2.225l.35 1.125c.167.483.454.875.862 1.175.409.3.871.45 1.388.45Zm-10.3 2c-1.1 0-2.063-.363-2.887-1.088a4.198 4.198 0 0 1-1.438-2.737L2 9H1V7h6.55c.733 0 1.404.18 2.013.537A3.906 3.906 0 0 1 11 9h2.025c.35-.617.83-1.104 1.438-1.463A3.892 3.892 0 0 1 16.474 7H23v2h-1l-.525 4.175a4.198 4.198 0 0 1-1.438 2.737A4.238 4.238 0 0 1 17.15 17c-.95 0-1.804-.27-2.562-.813A4.234 4.234 0 0 1 13 14.026l-.375-1.125a21.35 21.35 0 0 1-.1-.363 4.926 4.926 0 0 1-.1-.537h-.85c-.033.2-.067.363-.1.488a21.35 21.35 0 0 1-.1.362L11 14a4.3 4.3 0 0 1-1.588 2.175A4.258 4.258 0 0 1 6.85 17Z" fill="currentColor"/></svg>',
|
|
2975
|
+
ruler: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m8.8 10.95 2.15-2.175-1.4-1.425-1.1 1.1-1.4-1.4 1.075-1.1L7 4.825 4.825 7 8.8 10.95Zm8.2 8.225L19.175 17l-1.125-1.125-1.1 1.075-1.4-1.4 1.075-1.1-1.425-1.4-2.15 2.15L17 19.175ZM7.25 21H3v-4.25l4.375-4.375L2 7l5-5 5.4 5.4 3.775-3.8c.2-.2.425-.35.675-.45a2.068 2.068 0 0 1 1.55 0c.25.1.475.25.675.45L20.4 4.95c.2.2.35.425.45.675.1.25.15.508.15.775a1.975 1.975 0 0 1-.6 1.425l-3.775 3.8L22 17l-5 5-5.375-5.375L7.25 21ZM5 19h1.4l9.8-9.775L14.775 7.8 5 17.6V19Z" fill="currentColor"/></svg>'
|
|
2976
|
+
}[w] || "";
|
|
2977
|
+
}
|
|
2978
|
+
var Mi = {
|
|
2962
2979
|
get enabledTools() {
|
|
2963
|
-
return n();
|
|
2964
|
-
},
|
|
2965
|
-
set enabledTools(M = "graph,periodicTable,protractor,lineReader,magnifier,ruler") {
|
|
2966
|
-
n(M), Dt();
|
|
2967
|
-
},
|
|
2968
|
-
get position() {
|
|
2969
2980
|
return i();
|
|
2970
2981
|
},
|
|
2971
|
-
set
|
|
2972
|
-
i(
|
|
2982
|
+
set enabledTools(w = "") {
|
|
2983
|
+
i(w), rr();
|
|
2973
2984
|
},
|
|
2974
|
-
get
|
|
2985
|
+
get position() {
|
|
2975
2986
|
return s();
|
|
2976
2987
|
},
|
|
2977
|
-
set
|
|
2978
|
-
s(
|
|
2988
|
+
set position(w = "bottom") {
|
|
2989
|
+
s(w), rr();
|
|
2979
2990
|
},
|
|
2980
|
-
get
|
|
2991
|
+
get toolCoordinator() {
|
|
2981
2992
|
return o();
|
|
2982
2993
|
},
|
|
2983
|
-
set
|
|
2984
|
-
o(
|
|
2994
|
+
set toolCoordinator(w = null) {
|
|
2995
|
+
o(w), rr();
|
|
2985
2996
|
}
|
|
2986
|
-
},
|
|
2997
|
+
}, Jr = lo(), ki = vn(Jr);
|
|
2987
2998
|
{
|
|
2988
|
-
var Ri = (
|
|
2989
|
-
var
|
|
2990
|
-
let
|
|
2991
|
-
var
|
|
2992
|
-
|
|
2993
|
-
var
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
}
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
var Qr = et(Ne, 2);
|
|
2999
|
+
var Ri = (w) => {
|
|
3000
|
+
var Be = Zo(), ke = vn(Be);
|
|
3001
|
+
let bt;
|
|
3002
|
+
var Qr = mr(ke);
|
|
3003
|
+
go(Qr, 21, () => v(Xr), (A) => A.toolId, (A, T) => {
|
|
3004
|
+
var Ze = Vo();
|
|
3005
|
+
let fn;
|
|
3006
|
+
var zi = mr(Ze);
|
|
3007
|
+
mo(zi, () => Si(v(T).icon)), Jt(Ze), j(
|
|
3008
|
+
(br, Ui) => {
|
|
3009
|
+
fn = yn(Ze, 1, "tool-button svelte-x5tssx", null, fn, br), Pt(Ze, "title", v(T).tooltip || v(T).label), Pt(Ze, "aria-label", v(T).ariaLabel), Pt(Ze, "aria-pressed", Ui);
|
|
3010
|
+
},
|
|
3011
|
+
[
|
|
3012
|
+
() => ({ active: Xt(v(T).toolId) }),
|
|
3013
|
+
() => Xt(v(T).toolId)
|
|
3014
|
+
]
|
|
3015
|
+
), no("click", Ze, function(...br) {
|
|
3016
|
+
v(T).onClick?.apply(this, br);
|
|
3017
|
+
}), xe(A, Ze);
|
|
3018
|
+
}), Jt(Qr), Jt(ke), Co(ke, (A) => N(l, A), () => v(l));
|
|
3019
|
+
var en = Je(ke, 2);
|
|
3010
3020
|
{
|
|
3011
|
-
var
|
|
3012
|
-
var
|
|
3013
|
-
|
|
3014
|
-
},
|
|
3015
|
-
|
|
3016
|
-
v(
|
|
3021
|
+
var Li = (A) => {
|
|
3022
|
+
var T = Io();
|
|
3023
|
+
j(() => X(T, "visible", v(O))), j(() => X(T, "tool-id", M("graph"))), xe(A, T);
|
|
3024
|
+
}, Ni = /* @__PURE__ */ Z(() => v(c).includes("graph"));
|
|
3025
|
+
Qe(en, (A) => {
|
|
3026
|
+
v(Ni) && A(Li);
|
|
3017
3027
|
});
|
|
3018
3028
|
}
|
|
3019
|
-
var
|
|
3029
|
+
var tn = Je(en, 2);
|
|
3020
3030
|
{
|
|
3021
|
-
var
|
|
3022
|
-
var
|
|
3023
|
-
|
|
3024
|
-
},
|
|
3025
|
-
|
|
3026
|
-
v(
|
|
3031
|
+
var Oi = (A) => {
|
|
3032
|
+
var T = Ho();
|
|
3033
|
+
j(() => X(T, "visible", v(k))), j(() => X(T, "tool-id", M("calculator"))), X(T, "calculator-type", "scientific"), xe(A, T);
|
|
3034
|
+
}, Vi = /* @__PURE__ */ Z(() => v(c).includes("calculator"));
|
|
3035
|
+
Qe(tn, (A) => {
|
|
3036
|
+
v(Vi) && A(Oi);
|
|
3027
3037
|
});
|
|
3028
3038
|
}
|
|
3029
|
-
var
|
|
3039
|
+
var rn = Je(tn, 2);
|
|
3030
3040
|
{
|
|
3031
|
-
var
|
|
3032
|
-
var
|
|
3033
|
-
|
|
3034
|
-
},
|
|
3035
|
-
|
|
3036
|
-
v(
|
|
3041
|
+
var Ii = (A) => {
|
|
3042
|
+
var T = Do();
|
|
3043
|
+
j(() => X(T, "visible", v($e))), j(() => X(T, "tool-id", M("periodicTable"))), xe(A, T);
|
|
3044
|
+
}, Hi = /* @__PURE__ */ Z(() => v(c).includes("periodicTable"));
|
|
3045
|
+
Qe(rn, (A) => {
|
|
3046
|
+
v(Hi) && A(Ii);
|
|
3037
3047
|
});
|
|
3038
3048
|
}
|
|
3039
|
-
var
|
|
3049
|
+
var nn = Je(rn, 2);
|
|
3040
3050
|
{
|
|
3041
|
-
var
|
|
3042
|
-
var
|
|
3043
|
-
|
|
3044
|
-
},
|
|
3045
|
-
|
|
3046
|
-
v(
|
|
3051
|
+
var Di = (A) => {
|
|
3052
|
+
var T = Po();
|
|
3053
|
+
j(() => X(T, "visible", v(re))), j(() => X(T, "tool-id", M("protractor"))), xe(A, T);
|
|
3054
|
+
}, Pi = /* @__PURE__ */ Z(() => v(c).includes("protractor"));
|
|
3055
|
+
Qe(nn, (A) => {
|
|
3056
|
+
v(Pi) && A(Di);
|
|
3047
3057
|
});
|
|
3048
3058
|
}
|
|
3049
|
-
var
|
|
3059
|
+
var sn = Je(nn, 2);
|
|
3050
3060
|
{
|
|
3051
3061
|
var Fi = (A) => {
|
|
3052
|
-
var
|
|
3053
|
-
|
|
3054
|
-
},
|
|
3055
|
-
|
|
3056
|
-
v(
|
|
3062
|
+
var T = Fo();
|
|
3063
|
+
j(() => X(T, "visible", v(ce))), j(() => X(T, "tool-id", M("lineReader"))), xe(A, T);
|
|
3064
|
+
}, Bi = /* @__PURE__ */ Z(() => v(c).includes("lineReader"));
|
|
3065
|
+
Qe(sn, (A) => {
|
|
3066
|
+
v(Bi) && A(Fi);
|
|
3057
3067
|
});
|
|
3058
3068
|
}
|
|
3059
|
-
var
|
|
3069
|
+
var on = Je(sn, 2);
|
|
3060
3070
|
{
|
|
3061
|
-
var
|
|
3062
|
-
var
|
|
3063
|
-
|
|
3064
|
-
},
|
|
3065
|
-
|
|
3066
|
-
v(
|
|
3071
|
+
var Zi = (A) => {
|
|
3072
|
+
var T = Bo();
|
|
3073
|
+
j(() => X(T, "visible", v(ne))), j(() => X(T, "tool-id", M("ruler"))), xe(A, T);
|
|
3074
|
+
}, ji = /* @__PURE__ */ Z(() => v(c).includes("ruler"));
|
|
3075
|
+
Qe(on, (A) => {
|
|
3076
|
+
v(ji) && A(Zi);
|
|
3067
3077
|
});
|
|
3068
3078
|
}
|
|
3069
|
-
var
|
|
3070
|
-
Jt(
|
|
3071
|
-
|
|
3072
|
-
"section-tools-toolbar--top":
|
|
3073
|
-
"section-tools-toolbar--right":
|
|
3074
|
-
"section-tools-toolbar--bottom":
|
|
3075
|
-
"section-tools-toolbar--left":
|
|
3076
|
-
}),
|
|
3077
|
-
}),
|
|
3079
|
+
var ln = Je(on, 2), qi = mr(ln, !0);
|
|
3080
|
+
Jt(ln), j(() => {
|
|
3081
|
+
bt = yn(ke, 1, `section-tools-toolbar section-tools-toolbar--${s() ?? ""}`, "svelte-x5tssx", bt, {
|
|
3082
|
+
"section-tools-toolbar--top": s() === "top",
|
|
3083
|
+
"section-tools-toolbar--right": s() === "right",
|
|
3084
|
+
"section-tools-toolbar--bottom": s() === "bottom",
|
|
3085
|
+
"section-tools-toolbar--left": s() === "left"
|
|
3086
|
+
}), Pt(ke, "data-position", s()), uo(qi, v(U));
|
|
3087
|
+
}), xe(w, Be);
|
|
3078
3088
|
};
|
|
3079
|
-
|
|
3080
|
-
r &&
|
|
3089
|
+
Qe(ki, (w) => {
|
|
3090
|
+
r && s() !== "none" && v(C) && w(Ri);
|
|
3081
3091
|
});
|
|
3082
3092
|
}
|
|
3083
|
-
return
|
|
3093
|
+
return xe(e, Jr), Vn(Mi);
|
|
3084
3094
|
}
|
|
3085
|
-
|
|
3086
|
-
customElements.define("pie-section-tools-toolbar",
|
|
3087
|
-
|
|
3095
|
+
io(["click"]);
|
|
3096
|
+
customElements.define("pie-section-tools-toolbar", Ro(
|
|
3097
|
+
qo,
|
|
3088
3098
|
{
|
|
3089
3099
|
enabledTools: { attribute: "enabled-tools", type: "String" },
|
|
3090
3100
|
position: { attribute: "position", type: "String" },
|
|
3091
|
-
toolCoordinator: { type: "Object" }
|
|
3092
|
-
toolProviderRegistry: { type: "Object" }
|
|
3101
|
+
toolCoordinator: { type: "Object" }
|
|
3093
3102
|
},
|
|
3094
3103
|
[],
|
|
3095
3104
|
[]
|
|
3096
3105
|
));
|
|
3097
3106
|
export {
|
|
3098
|
-
|
|
3107
|
+
qo as default
|
|
3099
3108
|
};
|
|
3100
|
-
//# sourceMappingURL=section-tools-toolbar.js.map
|