@pie-players/pie-tool-magnifier 0.1.4 → 0.1.5
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/tool-magnifier.js +1386 -1165
- package/dist/tool-magnifier.js.map +1 -1
- package/package.json +5 -5
package/dist/tool-magnifier.js
CHANGED
|
@@ -1,142 +1,148 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Si = Object.defineProperty;
|
|
2
|
+
var Qn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
typeof window < "u" && ((
|
|
10
|
-
const
|
|
11
|
-
var
|
|
12
|
-
|
|
5
|
+
var Ai = (e, t, n) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var k = (e, t, n) => Ai(e, typeof t != "symbol" ? t + "" : t, n), gn = (e, t, n) => t.has(e) || Qn("Cannot " + n);
|
|
7
|
+
var a = (e, t, n) => (gn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), y = (e, t, n) => t.has(e) ? Qn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), b = (e, t, n, r) => (gn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), D = (e, t, n) => (gn(e, t, "access private method"), n);
|
|
8
|
+
var gr;
|
|
9
|
+
typeof window < "u" && ((gr = window.__svelte ?? (window.__svelte = {})).v ?? (gr.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const Ci = 1, xi = 2, Ni = 16, Oi = 1, ki = 4, Ri = 8, Li = 16, Mi = 2, Mn = "[", on = "[!", In = "]", bt = {}, z = /* @__PURE__ */ Symbol(), mr = "http://www.w3.org/1999/xhtml", bn = !1;
|
|
11
|
+
var br = Array.isArray, Ii = Array.prototype.indexOf, wt = Array.prototype.includes, an = Array.from, tn = Object.keys, nn = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, Di = Object.getOwnPropertyDescriptors, Pi = Object.prototype, zi = Array.prototype, wr = Object.getPrototypeOf, Zn = Object.isExtensible;
|
|
12
|
+
const Fi = () => {
|
|
13
|
+
};
|
|
14
|
+
function qi(e) {
|
|
13
15
|
for (var t = 0; t < e.length; t++)
|
|
14
16
|
e[t]();
|
|
15
17
|
}
|
|
16
|
-
function
|
|
18
|
+
function yr() {
|
|
17
19
|
var e, t, n = new Promise((r, i) => {
|
|
18
20
|
e = r, t = i;
|
|
19
21
|
});
|
|
20
22
|
return { promise: n, resolve: e, reject: t };
|
|
21
23
|
}
|
|
22
|
-
const
|
|
24
|
+
const F = 2, Dt = 4, fn = 8, $r = 1 << 24, Pe = 16, ge = 32, Ye = 64, Er = 128, le = 512, P = 1024, q = 2048, pe = 4096, J = 8192, Ie = 16384, Ct = 32768, yt = 65536, er = 1 << 17, Tr = 1 << 18, ut = 1 << 19, Bi = 1 << 20, Ue = 1 << 25, at = 65536, wn = 1 << 21, Dn = 1 << 22, Ve = 1 << 23, Rt = /* @__PURE__ */ Symbol("$state"), Sr = /* @__PURE__ */ Symbol("legacy props"), Ui = /* @__PURE__ */ Symbol(""), Ke = new class extends Error {
|
|
23
25
|
constructor() {
|
|
24
26
|
super(...arguments);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
k(this, "name", "StaleReactionError");
|
|
28
|
+
k(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
27
29
|
}
|
|
28
|
-
}(),
|
|
29
|
-
function
|
|
30
|
+
}(), Hi = /* @__PURE__ */ globalThis.document?.contentType.includes("xml") ?? !1, Pn = 3, xt = 8;
|
|
31
|
+
function Vi(e) {
|
|
30
32
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
31
33
|
}
|
|
32
|
-
function
|
|
34
|
+
function ji() {
|
|
33
35
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
34
36
|
}
|
|
35
|
-
function
|
|
37
|
+
function Gi(e, t, n) {
|
|
38
|
+
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
39
|
+
}
|
|
40
|
+
function Yi(e) {
|
|
36
41
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
37
42
|
}
|
|
38
|
-
function
|
|
43
|
+
function Ki() {
|
|
39
44
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
40
45
|
}
|
|
41
|
-
function
|
|
46
|
+
function Wi(e) {
|
|
42
47
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
43
48
|
}
|
|
44
|
-
function
|
|
49
|
+
function Xi() {
|
|
45
50
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
46
51
|
}
|
|
47
|
-
function
|
|
52
|
+
function Ji() {
|
|
48
53
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
49
54
|
}
|
|
50
|
-
function
|
|
55
|
+
function Qi(e) {
|
|
51
56
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
52
57
|
}
|
|
53
|
-
function
|
|
58
|
+
function Zi() {
|
|
54
59
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
55
60
|
}
|
|
56
|
-
function
|
|
61
|
+
function es() {
|
|
57
62
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
58
63
|
}
|
|
59
|
-
function
|
|
64
|
+
function ts() {
|
|
60
65
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
61
66
|
}
|
|
62
|
-
function
|
|
67
|
+
function ns() {
|
|
63
68
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
64
69
|
}
|
|
65
|
-
function
|
|
70
|
+
function un(e) {
|
|
66
71
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
67
72
|
}
|
|
68
|
-
function
|
|
73
|
+
function rs() {
|
|
69
74
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
70
75
|
}
|
|
71
76
|
let E = !1;
|
|
72
|
-
function
|
|
77
|
+
function Me(e) {
|
|
73
78
|
E = e;
|
|
74
79
|
}
|
|
75
80
|
let T;
|
|
76
81
|
function Q(e) {
|
|
77
82
|
if (e === null)
|
|
78
|
-
throw
|
|
83
|
+
throw un(), bt;
|
|
79
84
|
return T = e;
|
|
80
85
|
}
|
|
81
|
-
function
|
|
82
|
-
return Q(/* @__PURE__ */
|
|
86
|
+
function jt() {
|
|
87
|
+
return Q(/* @__PURE__ */ Se(T));
|
|
83
88
|
}
|
|
84
|
-
function
|
|
89
|
+
function Xt(e) {
|
|
85
90
|
if (E) {
|
|
86
|
-
if (/* @__PURE__ */
|
|
87
|
-
throw
|
|
91
|
+
if (/* @__PURE__ */ Se(T) !== null)
|
|
92
|
+
throw un(), bt;
|
|
88
93
|
T = e;
|
|
89
94
|
}
|
|
90
95
|
}
|
|
91
|
-
function
|
|
96
|
+
function is(e = 1) {
|
|
92
97
|
if (E) {
|
|
93
98
|
for (var t = e, n = T; t--; )
|
|
94
99
|
n = /** @type {TemplateNode} */
|
|
95
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ Se(n);
|
|
96
101
|
T = n;
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
|
-
function
|
|
104
|
+
function rn(e = !0) {
|
|
100
105
|
for (var t = 0, n = T; ; ) {
|
|
101
|
-
if (n.nodeType ===
|
|
106
|
+
if (n.nodeType === xt) {
|
|
102
107
|
var r = (
|
|
103
108
|
/** @type {Comment} */
|
|
104
109
|
n.data
|
|
105
110
|
);
|
|
106
|
-
if (r ===
|
|
111
|
+
if (r === In) {
|
|
107
112
|
if (t === 0) return n;
|
|
108
113
|
t -= 1;
|
|
109
|
-
} else (r ===
|
|
114
|
+
} else (r === Mn || r === on || // "[1", "[2", etc. for if blocks
|
|
115
|
+
r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
110
116
|
}
|
|
111
117
|
var i = (
|
|
112
118
|
/** @type {TemplateNode} */
|
|
113
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ Se(n)
|
|
114
120
|
);
|
|
115
121
|
e && n.remove(), n = i;
|
|
116
122
|
}
|
|
117
123
|
}
|
|
118
|
-
function
|
|
119
|
-
if (!e || e.nodeType !==
|
|
120
|
-
throw
|
|
124
|
+
function Ar(e) {
|
|
125
|
+
if (!e || e.nodeType !== xt)
|
|
126
|
+
throw un(), bt;
|
|
121
127
|
return (
|
|
122
128
|
/** @type {Comment} */
|
|
123
129
|
e.data
|
|
124
130
|
);
|
|
125
131
|
}
|
|
126
|
-
function
|
|
132
|
+
function Cr(e) {
|
|
127
133
|
return e === this.v;
|
|
128
134
|
}
|
|
129
|
-
function
|
|
135
|
+
function ss(e, t) {
|
|
130
136
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
131
137
|
}
|
|
132
|
-
function
|
|
133
|
-
return !
|
|
138
|
+
function xr(e) {
|
|
139
|
+
return !ss(e, this.v);
|
|
134
140
|
}
|
|
135
|
-
let
|
|
141
|
+
let ls = !1, Z = null;
|
|
136
142
|
function $t(e) {
|
|
137
143
|
Z = e;
|
|
138
144
|
}
|
|
139
|
-
function
|
|
145
|
+
function zn(e, t = !1, n) {
|
|
140
146
|
Z = {
|
|
141
147
|
p: Z,
|
|
142
148
|
i: !1,
|
|
@@ -147,7 +153,7 @@ function Fn(e, t = !1, n) {
|
|
|
147
153
|
l: null
|
|
148
154
|
};
|
|
149
155
|
}
|
|
150
|
-
function
|
|
156
|
+
function Fn(e) {
|
|
151
157
|
var t = (
|
|
152
158
|
/** @type {ComponentContext} */
|
|
153
159
|
Z
|
|
@@ -155,108 +161,108 @@ function qn(e) {
|
|
|
155
161
|
if (n !== null) {
|
|
156
162
|
t.e = null;
|
|
157
163
|
for (var r of n)
|
|
158
|
-
|
|
164
|
+
ei(r);
|
|
159
165
|
}
|
|
160
166
|
return e !== void 0 && (t.x = e), t.i = !0, Z = t.p, e ?? /** @type {T} */
|
|
161
167
|
{};
|
|
162
168
|
}
|
|
163
|
-
function
|
|
169
|
+
function Nr() {
|
|
164
170
|
return !0;
|
|
165
171
|
}
|
|
166
|
-
let
|
|
167
|
-
function
|
|
168
|
-
var e =
|
|
169
|
-
|
|
172
|
+
let We = [];
|
|
173
|
+
function Or() {
|
|
174
|
+
var e = We;
|
|
175
|
+
We = [], qi(e);
|
|
170
176
|
}
|
|
171
|
-
function
|
|
172
|
-
if (
|
|
173
|
-
var t =
|
|
177
|
+
function it(e) {
|
|
178
|
+
if (We.length === 0 && !Lt) {
|
|
179
|
+
var t = We;
|
|
174
180
|
queueMicrotask(() => {
|
|
175
|
-
t ===
|
|
181
|
+
t === We && Or();
|
|
176
182
|
});
|
|
177
183
|
}
|
|
178
|
-
|
|
184
|
+
We.push(e);
|
|
179
185
|
}
|
|
180
|
-
function
|
|
181
|
-
for (;
|
|
182
|
-
|
|
186
|
+
function os() {
|
|
187
|
+
for (; We.length > 0; )
|
|
188
|
+
Or();
|
|
183
189
|
}
|
|
184
|
-
function
|
|
190
|
+
function kr(e) {
|
|
185
191
|
var t = S;
|
|
186
192
|
if (t === null)
|
|
187
|
-
return $.f |=
|
|
188
|
-
if ((t.f &
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
t.b.error(e);
|
|
192
|
-
} else
|
|
193
|
-
Et(e, t);
|
|
193
|
+
return $.f |= Ve, e;
|
|
194
|
+
if ((t.f & Ct) === 0 && (t.f & Dt) === 0)
|
|
195
|
+
throw e;
|
|
196
|
+
Et(e, t);
|
|
194
197
|
}
|
|
195
198
|
function Et(e, t) {
|
|
196
199
|
for (; t !== null; ) {
|
|
197
|
-
if ((t.f &
|
|
200
|
+
if ((t.f & Er) !== 0) {
|
|
201
|
+
if ((t.f & Ct) === 0)
|
|
202
|
+
throw e;
|
|
198
203
|
try {
|
|
199
204
|
t.b.error(e);
|
|
200
205
|
return;
|
|
201
206
|
} catch (n) {
|
|
202
207
|
e = n;
|
|
203
208
|
}
|
|
209
|
+
}
|
|
204
210
|
t = t.parent;
|
|
205
211
|
}
|
|
206
212
|
throw e;
|
|
207
213
|
}
|
|
208
|
-
const
|
|
209
|
-
function
|
|
210
|
-
e.f = e.f &
|
|
214
|
+
const as = -7169;
|
|
215
|
+
function R(e, t) {
|
|
216
|
+
e.f = e.f & as | t;
|
|
211
217
|
}
|
|
212
|
-
function
|
|
213
|
-
(e.f & le) !== 0 || e.deps === null ?
|
|
218
|
+
function qn(e) {
|
|
219
|
+
(e.f & le) !== 0 || e.deps === null ? R(e, P) : R(e, pe);
|
|
214
220
|
}
|
|
215
|
-
function
|
|
221
|
+
function Rr(e) {
|
|
216
222
|
if (e !== null)
|
|
217
223
|
for (const t of e)
|
|
218
|
-
(t.f &
|
|
224
|
+
(t.f & F) === 0 || (t.f & at) === 0 || (t.f ^= at, Rr(
|
|
219
225
|
/** @type {Derived} */
|
|
220
226
|
t.deps
|
|
221
227
|
));
|
|
222
228
|
}
|
|
223
|
-
function
|
|
224
|
-
(e.f &
|
|
229
|
+
function Lr(e, t, n) {
|
|
230
|
+
(e.f & q) !== 0 ? t.add(e) : (e.f & pe) !== 0 && n.add(e), Rr(e.deps), R(e, P);
|
|
225
231
|
}
|
|
226
|
-
const
|
|
227
|
-
let
|
|
228
|
-
var
|
|
229
|
-
const
|
|
232
|
+
const Yt = /* @__PURE__ */ new Set();
|
|
233
|
+
let N = null, he = null, G = [], cn = null, yn = !1, Lt = !1;
|
|
234
|
+
var ht, dt, Je, vt, qt, Bt, Qe, Ne, _t, Te, $n, En, Mr;
|
|
235
|
+
const Wn = class Wn {
|
|
230
236
|
constructor() {
|
|
231
|
-
y(this,
|
|
232
|
-
|
|
237
|
+
y(this, Te);
|
|
238
|
+
k(this, "committed", !1);
|
|
233
239
|
/**
|
|
234
240
|
* The current values of any sources that are updated in this batch
|
|
235
241
|
* They keys of this map are identical to `this.#previous`
|
|
236
242
|
* @type {Map<Source, any>}
|
|
237
243
|
*/
|
|
238
|
-
|
|
244
|
+
k(this, "current", /* @__PURE__ */ new Map());
|
|
239
245
|
/**
|
|
240
246
|
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
241
247
|
* They keys of this map are identical to `this.#current`
|
|
242
248
|
* @type {Map<Source, any>}
|
|
243
249
|
*/
|
|
244
|
-
|
|
250
|
+
k(this, "previous", /* @__PURE__ */ new Map());
|
|
245
251
|
/**
|
|
246
252
|
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
247
253
|
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
248
254
|
* @type {Set<() => void>}
|
|
249
255
|
*/
|
|
250
|
-
y(this,
|
|
256
|
+
y(this, ht, /* @__PURE__ */ new Set());
|
|
251
257
|
/**
|
|
252
258
|
* If a fork is discarded, we need to destroy any effects that are no longer needed
|
|
253
259
|
* @type {Set<(batch: Batch) => void>}
|
|
254
260
|
*/
|
|
255
|
-
y(this,
|
|
261
|
+
y(this, dt, /* @__PURE__ */ new Set());
|
|
256
262
|
/**
|
|
257
263
|
* The number of async effects that are currently in flight
|
|
258
264
|
*/
|
|
259
|
-
y(this,
|
|
265
|
+
y(this, Je, 0);
|
|
260
266
|
/**
|
|
261
267
|
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
262
268
|
*/
|
|
@@ -266,47 +272,71 @@ const Gn = class Gn {
|
|
|
266
272
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
267
273
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
268
274
|
*/
|
|
269
|
-
y(this,
|
|
275
|
+
y(this, qt, null);
|
|
270
276
|
/**
|
|
271
277
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
272
278
|
* @type {Set<Effect>}
|
|
273
279
|
*/
|
|
274
|
-
y(this,
|
|
280
|
+
y(this, Bt, /* @__PURE__ */ new Set());
|
|
275
281
|
/**
|
|
276
282
|
* Deferred effects that are MAYBE_DIRTY
|
|
277
283
|
* @type {Set<Effect>}
|
|
278
284
|
*/
|
|
279
|
-
y(this,
|
|
285
|
+
y(this, Qe, /* @__PURE__ */ new Set());
|
|
280
286
|
/**
|
|
281
|
-
* A
|
|
282
|
-
* is committed — we skip over these during `process
|
|
283
|
-
*
|
|
287
|
+
* A map of branches that still exist, but will be destroyed when this batch
|
|
288
|
+
* is committed — we skip over these during `process`.
|
|
289
|
+
* The value contains child effects that were dirty/maybe_dirty before being reset,
|
|
290
|
+
* so they can be rescheduled if the branch survives.
|
|
291
|
+
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
284
292
|
*/
|
|
285
|
-
|
|
286
|
-
|
|
293
|
+
y(this, Ne, /* @__PURE__ */ new Map());
|
|
294
|
+
k(this, "is_fork", !1);
|
|
287
295
|
y(this, _t, !1);
|
|
288
296
|
}
|
|
289
297
|
is_deferred() {
|
|
290
|
-
return this.is_fork ||
|
|
298
|
+
return this.is_fork || a(this, vt) > 0;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Add an effect to the #skipped_branches map and reset its children
|
|
302
|
+
* @param {Effect} effect
|
|
303
|
+
*/
|
|
304
|
+
skip_effect(t) {
|
|
305
|
+
a(this, Ne).has(t) || a(this, Ne).set(t, { d: [], m: [] });
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Remove an effect from the #skipped_branches map and reschedule
|
|
309
|
+
* any tracked dirty/maybe_dirty child effects
|
|
310
|
+
* @param {Effect} effect
|
|
311
|
+
*/
|
|
312
|
+
unskip_effect(t) {
|
|
313
|
+
var n = a(this, Ne).get(t);
|
|
314
|
+
if (n) {
|
|
315
|
+
a(this, Ne).delete(t);
|
|
316
|
+
for (var r of n.d)
|
|
317
|
+
R(r, q), de(r);
|
|
318
|
+
for (r of n.m)
|
|
319
|
+
R(r, pe), de(r);
|
|
320
|
+
}
|
|
291
321
|
}
|
|
292
322
|
/**
|
|
293
323
|
*
|
|
294
324
|
* @param {Effect[]} root_effects
|
|
295
325
|
*/
|
|
296
326
|
process(t) {
|
|
297
|
-
|
|
327
|
+
G = [], this.apply();
|
|
298
328
|
var n = [], r = [];
|
|
299
329
|
for (const i of t)
|
|
300
|
-
|
|
330
|
+
D(this, Te, $n).call(this, i, n, r);
|
|
301
331
|
if (this.is_deferred()) {
|
|
302
|
-
|
|
303
|
-
for (const i of this
|
|
304
|
-
|
|
332
|
+
D(this, Te, En).call(this, r), D(this, Te, En).call(this, n);
|
|
333
|
+
for (const [i, s] of a(this, Ne))
|
|
334
|
+
zr(i, s);
|
|
305
335
|
} else {
|
|
306
|
-
for (const i of
|
|
307
|
-
|
|
336
|
+
for (const i of a(this, ht)) i();
|
|
337
|
+
a(this, ht).clear(), a(this, Je) === 0 && D(this, Te, Mr).call(this), N = null, tr(r), tr(n), a(this, qt)?.resolve();
|
|
308
338
|
}
|
|
309
|
-
|
|
339
|
+
he = null;
|
|
310
340
|
}
|
|
311
341
|
/**
|
|
312
342
|
* Associate a change to a given source with the current
|
|
@@ -315,72 +345,72 @@ const Gn = class Gn {
|
|
|
315
345
|
* @param {any} value
|
|
316
346
|
*/
|
|
317
347
|
capture(t, n) {
|
|
318
|
-
n !==
|
|
348
|
+
n !== z && !this.previous.has(t) && this.previous.set(t, n), (t.f & Ve) === 0 && (this.current.set(t, t.v), he?.set(t, t.v));
|
|
319
349
|
}
|
|
320
350
|
activate() {
|
|
321
|
-
|
|
351
|
+
N = this, this.apply();
|
|
322
352
|
}
|
|
323
353
|
deactivate() {
|
|
324
|
-
|
|
354
|
+
N === this && (N = null, he = null);
|
|
325
355
|
}
|
|
326
356
|
flush() {
|
|
327
|
-
if (this.activate(),
|
|
328
|
-
if (
|
|
357
|
+
if (this.activate(), G.length > 0) {
|
|
358
|
+
if (Ir(), N !== null && N !== this)
|
|
329
359
|
return;
|
|
330
|
-
} else
|
|
360
|
+
} else a(this, Je) === 0 && this.process([]);
|
|
331
361
|
this.deactivate();
|
|
332
362
|
}
|
|
333
363
|
discard() {
|
|
334
|
-
for (const t of
|
|
335
|
-
|
|
364
|
+
for (const t of a(this, dt)) t(this);
|
|
365
|
+
a(this, dt).clear();
|
|
336
366
|
}
|
|
337
367
|
/**
|
|
338
368
|
*
|
|
339
369
|
* @param {boolean} blocking
|
|
340
370
|
*/
|
|
341
371
|
increment(t) {
|
|
342
|
-
|
|
372
|
+
b(this, Je, a(this, Je) + 1), t && b(this, vt, a(this, vt) + 1);
|
|
343
373
|
}
|
|
344
374
|
/**
|
|
345
375
|
*
|
|
346
376
|
* @param {boolean} blocking
|
|
347
377
|
*/
|
|
348
378
|
decrement(t) {
|
|
349
|
-
|
|
350
|
-
|
|
379
|
+
b(this, Je, a(this, Je) - 1), t && b(this, vt, a(this, vt) - 1), !a(this, _t) && (b(this, _t, !0), it(() => {
|
|
380
|
+
b(this, _t, !1), this.is_deferred() ? G.length > 0 && this.flush() : this.revive();
|
|
351
381
|
}));
|
|
352
382
|
}
|
|
353
383
|
revive() {
|
|
354
|
-
for (const t of
|
|
355
|
-
|
|
356
|
-
for (const t of
|
|
357
|
-
|
|
384
|
+
for (const t of a(this, Bt))
|
|
385
|
+
a(this, Qe).delete(t), R(t, q), de(t);
|
|
386
|
+
for (const t of a(this, Qe))
|
|
387
|
+
R(t, pe), de(t);
|
|
358
388
|
this.flush();
|
|
359
389
|
}
|
|
360
390
|
/** @param {() => void} fn */
|
|
361
391
|
oncommit(t) {
|
|
362
|
-
|
|
392
|
+
a(this, ht).add(t);
|
|
363
393
|
}
|
|
364
394
|
/** @param {(batch: Batch) => void} fn */
|
|
365
395
|
ondiscard(t) {
|
|
366
|
-
|
|
396
|
+
a(this, dt).add(t);
|
|
367
397
|
}
|
|
368
398
|
settled() {
|
|
369
|
-
return (
|
|
399
|
+
return (a(this, qt) ?? b(this, qt, yr())).promise;
|
|
370
400
|
}
|
|
371
401
|
static ensure() {
|
|
372
|
-
if (
|
|
373
|
-
const t =
|
|
374
|
-
|
|
375
|
-
|
|
402
|
+
if (N === null) {
|
|
403
|
+
const t = N = new Wn();
|
|
404
|
+
Yt.add(N), Lt || it(() => {
|
|
405
|
+
N === t && t.flush();
|
|
376
406
|
});
|
|
377
407
|
}
|
|
378
|
-
return
|
|
408
|
+
return N;
|
|
379
409
|
}
|
|
380
410
|
apply() {
|
|
381
411
|
}
|
|
382
412
|
};
|
|
383
|
-
|
|
413
|
+
ht = new WeakMap(), dt = new WeakMap(), Je = new WeakMap(), vt = new WeakMap(), qt = new WeakMap(), Bt = new WeakMap(), Qe = new WeakMap(), Ne = new WeakMap(), _t = new WeakMap(), Te = new WeakSet(), /**
|
|
384
414
|
* Traverse the effect tree, executing effects or stashing
|
|
385
415
|
* them for later execution as appropriate
|
|
386
416
|
* @param {Effect} root
|
|
@@ -388,11 +418,11 @@ dt = new WeakMap(), ht = new WeakMap(), We = new WeakMap(), vt = new WeakMap(),
|
|
|
388
418
|
* @param {Effect[]} render_effects
|
|
389
419
|
*/
|
|
390
420
|
$n = function(t, n, r) {
|
|
391
|
-
t.f ^=
|
|
421
|
+
t.f ^= P;
|
|
392
422
|
for (var i = t.first, s = null; i !== null; ) {
|
|
393
|
-
var l = i.f, o = (l & (
|
|
423
|
+
var l = i.f, o = (l & (ge | Ye)) !== 0, u = o && (l & P) !== 0, f = u || (l & J) !== 0 || a(this, Ne).has(i);
|
|
394
424
|
if (!f && i.fn !== null) {
|
|
395
|
-
o ? i.f ^=
|
|
425
|
+
o ? i.f ^= P : s !== null && (l & (Dt | fn | $r)) !== 0 ? s.b.defer_effect(i) : (l & Dt) !== 0 ? n.push(i) : Gt(i) && ((l & Pe) !== 0 && a(this, Qe).add(i), At(i));
|
|
396
426
|
var h = i.first;
|
|
397
427
|
if (h !== null) {
|
|
398
428
|
i = h;
|
|
@@ -408,122 +438,122 @@ $n = function(t, n, r) {
|
|
|
408
438
|
*/
|
|
409
439
|
En = function(t) {
|
|
410
440
|
for (var n = 0; n < t.length; n += 1)
|
|
411
|
-
|
|
412
|
-
},
|
|
441
|
+
Lr(t[n], a(this, Bt), a(this, Qe));
|
|
442
|
+
}, Mr = function() {
|
|
413
443
|
var i;
|
|
414
|
-
if (
|
|
444
|
+
if (Yt.size > 1) {
|
|
415
445
|
this.previous.clear();
|
|
416
|
-
var t =
|
|
417
|
-
for (const s of
|
|
446
|
+
var t = he, n = !0;
|
|
447
|
+
for (const s of Yt) {
|
|
418
448
|
if (s === this) {
|
|
419
449
|
n = !1;
|
|
420
450
|
continue;
|
|
421
451
|
}
|
|
422
452
|
const l = [];
|
|
423
|
-
for (const [
|
|
424
|
-
if (s.current.has(
|
|
425
|
-
if (n && f !== s.current.get(
|
|
426
|
-
s.current.set(
|
|
453
|
+
for (const [u, f] of this.current) {
|
|
454
|
+
if (s.current.has(u))
|
|
455
|
+
if (n && f !== s.current.get(u))
|
|
456
|
+
s.current.set(u, f);
|
|
427
457
|
else
|
|
428
458
|
continue;
|
|
429
|
-
l.push(
|
|
459
|
+
l.push(u);
|
|
430
460
|
}
|
|
431
461
|
if (l.length === 0)
|
|
432
462
|
continue;
|
|
433
|
-
const o = [...s.current.keys()].filter((
|
|
463
|
+
const o = [...s.current.keys()].filter((u) => !this.current.has(u));
|
|
434
464
|
if (o.length > 0) {
|
|
435
|
-
var r =
|
|
436
|
-
|
|
437
|
-
const
|
|
465
|
+
var r = G;
|
|
466
|
+
G = [];
|
|
467
|
+
const u = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map();
|
|
438
468
|
for (const h of l)
|
|
439
|
-
|
|
440
|
-
if (
|
|
441
|
-
|
|
442
|
-
for (const h of
|
|
443
|
-
|
|
469
|
+
Dr(h, o, u, f);
|
|
470
|
+
if (G.length > 0) {
|
|
471
|
+
N = s, s.apply();
|
|
472
|
+
for (const h of G)
|
|
473
|
+
D(i = s, Te, $n).call(i, h, [], []);
|
|
444
474
|
s.deactivate();
|
|
445
475
|
}
|
|
446
|
-
|
|
476
|
+
G = r;
|
|
447
477
|
}
|
|
448
478
|
}
|
|
449
|
-
|
|
479
|
+
N = null, he = t;
|
|
450
480
|
}
|
|
451
|
-
this.committed = !0,
|
|
481
|
+
this.committed = !0, Yt.delete(this);
|
|
452
482
|
};
|
|
453
|
-
let
|
|
483
|
+
let De = Wn;
|
|
454
484
|
function ce(e) {
|
|
455
|
-
var t =
|
|
456
|
-
|
|
485
|
+
var t = Lt;
|
|
486
|
+
Lt = !0;
|
|
457
487
|
try {
|
|
458
488
|
for (var n; ; ) {
|
|
459
|
-
if (
|
|
489
|
+
if (os(), G.length === 0 && (N?.flush(), G.length === 0))
|
|
460
490
|
return cn = null, /** @type {T} */
|
|
461
491
|
n;
|
|
462
|
-
|
|
492
|
+
Ir();
|
|
463
493
|
}
|
|
464
494
|
} finally {
|
|
465
|
-
|
|
495
|
+
Lt = t;
|
|
466
496
|
}
|
|
467
497
|
}
|
|
468
|
-
function
|
|
498
|
+
function Ir() {
|
|
469
499
|
yn = !0;
|
|
470
500
|
var e = null;
|
|
471
501
|
try {
|
|
472
|
-
for (var t = 0;
|
|
473
|
-
var n =
|
|
502
|
+
for (var t = 0; G.length > 0; ) {
|
|
503
|
+
var n = De.ensure();
|
|
474
504
|
if (t++ > 1e3) {
|
|
475
505
|
var r, i;
|
|
476
|
-
|
|
506
|
+
fs();
|
|
477
507
|
}
|
|
478
|
-
n.process(
|
|
508
|
+
n.process(G), je.clear();
|
|
479
509
|
}
|
|
480
510
|
} finally {
|
|
481
|
-
yn = !1, cn = null;
|
|
511
|
+
G = [], yn = !1, cn = null;
|
|
482
512
|
}
|
|
483
513
|
}
|
|
484
|
-
function
|
|
514
|
+
function fs() {
|
|
485
515
|
try {
|
|
486
|
-
|
|
516
|
+
Xi();
|
|
487
517
|
} catch (e) {
|
|
488
518
|
Et(e, cn);
|
|
489
519
|
}
|
|
490
520
|
}
|
|
491
|
-
let
|
|
492
|
-
function
|
|
521
|
+
let xe = null;
|
|
522
|
+
function tr(e) {
|
|
493
523
|
var t = e.length;
|
|
494
524
|
if (t !== 0) {
|
|
495
525
|
for (var n = 0; n < t; ) {
|
|
496
526
|
var r = e[n++];
|
|
497
|
-
if ((r.f & (
|
|
498
|
-
|
|
499
|
-
for (const i of
|
|
500
|
-
if ((i.f & (
|
|
527
|
+
if ((r.f & (Ie | J)) === 0 && Gt(r) && (xe = /* @__PURE__ */ new Set(), At(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && ii(r), xe?.size > 0)) {
|
|
528
|
+
je.clear();
|
|
529
|
+
for (const i of xe) {
|
|
530
|
+
if ((i.f & (Ie | J)) !== 0) continue;
|
|
501
531
|
const s = [i];
|
|
502
532
|
let l = i.parent;
|
|
503
533
|
for (; l !== null; )
|
|
504
|
-
|
|
534
|
+
xe.has(l) && (xe.delete(l), s.push(l)), l = l.parent;
|
|
505
535
|
for (let o = s.length - 1; o >= 0; o--) {
|
|
506
|
-
const
|
|
507
|
-
(
|
|
536
|
+
const u = s[o];
|
|
537
|
+
(u.f & (Ie | J)) === 0 && At(u);
|
|
508
538
|
}
|
|
509
539
|
}
|
|
510
|
-
|
|
540
|
+
xe.clear();
|
|
511
541
|
}
|
|
512
542
|
}
|
|
513
|
-
|
|
543
|
+
xe = null;
|
|
514
544
|
}
|
|
515
545
|
}
|
|
516
|
-
function
|
|
546
|
+
function Dr(e, t, n, r) {
|
|
517
547
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
518
548
|
for (const i of e.reactions) {
|
|
519
549
|
const s = i.f;
|
|
520
|
-
(s &
|
|
550
|
+
(s & F) !== 0 ? Dr(
|
|
521
551
|
/** @type {Derived} */
|
|
522
552
|
i,
|
|
523
553
|
t,
|
|
524
554
|
n,
|
|
525
555
|
r
|
|
526
|
-
) : (s & (
|
|
556
|
+
) : (s & (Dn | Pe)) !== 0 && (s & q) === 0 && Pr(i, t, r) && (R(i, q), de(
|
|
527
557
|
/** @type {Effect} */
|
|
528
558
|
i
|
|
529
559
|
));
|
|
@@ -536,7 +566,7 @@ function Pr(e, t, n) {
|
|
|
536
566
|
for (const i of e.deps) {
|
|
537
567
|
if (wt.call(t, i))
|
|
538
568
|
return !0;
|
|
539
|
-
if ((i.f &
|
|
569
|
+
if ((i.f & F) !== 0 && Pr(
|
|
540
570
|
/** @type {Derived} */
|
|
541
571
|
i,
|
|
542
572
|
t,
|
|
@@ -550,76 +580,76 @@ function Pr(e, t, n) {
|
|
|
550
580
|
}
|
|
551
581
|
return n.set(e, !1), !1;
|
|
552
582
|
}
|
|
553
|
-
function
|
|
583
|
+
function de(e) {
|
|
554
584
|
for (var t = cn = e; t.parent !== null; ) {
|
|
555
585
|
t = t.parent;
|
|
556
586
|
var n = t.f;
|
|
557
|
-
if (yn && t === S && (n &
|
|
587
|
+
if (yn && t === S && (n & Pe) !== 0 && (n & Tr) === 0)
|
|
558
588
|
return;
|
|
559
|
-
if ((n & (
|
|
560
|
-
if ((n &
|
|
561
|
-
t.f ^=
|
|
589
|
+
if ((n & (Ye | ge)) !== 0) {
|
|
590
|
+
if ((n & P) === 0) return;
|
|
591
|
+
t.f ^= P;
|
|
562
592
|
}
|
|
563
593
|
}
|
|
564
|
-
|
|
594
|
+
G.push(t);
|
|
565
595
|
}
|
|
566
|
-
function
|
|
567
|
-
if (!((e.f &
|
|
568
|
-
|
|
569
|
-
for (var
|
|
570
|
-
|
|
596
|
+
function zr(e, t) {
|
|
597
|
+
if (!((e.f & ge) !== 0 && (e.f & P) !== 0)) {
|
|
598
|
+
(e.f & q) !== 0 ? t.d.push(e) : (e.f & pe) !== 0 && t.m.push(e), R(e, P);
|
|
599
|
+
for (var n = e.first; n !== null; )
|
|
600
|
+
zr(n, t), n = n.next;
|
|
571
601
|
}
|
|
572
602
|
}
|
|
573
|
-
function
|
|
574
|
-
let t = 0, n =
|
|
603
|
+
function us(e) {
|
|
604
|
+
let t = 0, n = ft(0), r;
|
|
575
605
|
return () => {
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
606
|
+
Hn() && (p(n), Vn(() => (t === 0 && (r = ot(() => e(() => Mt(n)))), t += 1, () => {
|
|
607
|
+
it(() => {
|
|
608
|
+
t -= 1, t === 0 && (r?.(), r = void 0, Mt(n));
|
|
579
609
|
});
|
|
580
610
|
})));
|
|
581
611
|
};
|
|
582
612
|
}
|
|
583
|
-
var
|
|
584
|
-
function
|
|
585
|
-
new
|
|
613
|
+
var cs = yt | ut | Er;
|
|
614
|
+
function hs(e, t, n) {
|
|
615
|
+
new ds(e, t, n);
|
|
586
616
|
}
|
|
587
|
-
var
|
|
588
|
-
class
|
|
617
|
+
var W, Ut, be, Ze, we, re, j, ye, Oe, Be, et, ke, pt, tt, gt, mt, Re, sn, M, Fr, qr, Tn, Jt, Qt, Sn;
|
|
618
|
+
class ds {
|
|
589
619
|
/**
|
|
590
620
|
* @param {TemplateNode} node
|
|
591
621
|
* @param {BoundaryProps} props
|
|
592
622
|
* @param {((anchor: Node) => void)} children
|
|
593
623
|
*/
|
|
594
624
|
constructor(t, n, r) {
|
|
595
|
-
y(this,
|
|
625
|
+
y(this, M);
|
|
596
626
|
/** @type {Boundary | null} */
|
|
597
|
-
|
|
598
|
-
|
|
627
|
+
k(this, "parent");
|
|
628
|
+
k(this, "is_pending", !1);
|
|
599
629
|
/** @type {TemplateNode} */
|
|
600
|
-
y(this,
|
|
630
|
+
y(this, W);
|
|
601
631
|
/** @type {TemplateNode | null} */
|
|
602
|
-
y(this,
|
|
632
|
+
y(this, Ut, E ? T : null);
|
|
603
633
|
/** @type {BoundaryProps} */
|
|
604
|
-
y(this,
|
|
634
|
+
y(this, be);
|
|
605
635
|
/** @type {((anchor: Node) => void)} */
|
|
606
|
-
y(this,
|
|
636
|
+
y(this, Ze);
|
|
607
637
|
/** @type {Effect} */
|
|
608
|
-
y(this,
|
|
638
|
+
y(this, we);
|
|
609
639
|
/** @type {Effect | null} */
|
|
610
640
|
y(this, re, null);
|
|
611
641
|
/** @type {Effect | null} */
|
|
612
|
-
y(this,
|
|
642
|
+
y(this, j, null);
|
|
613
643
|
/** @type {Effect | null} */
|
|
614
|
-
y(this,
|
|
644
|
+
y(this, ye, null);
|
|
615
645
|
/** @type {DocumentFragment | null} */
|
|
616
646
|
y(this, Oe, null);
|
|
617
647
|
/** @type {TemplateNode | null} */
|
|
618
|
-
y(this,
|
|
619
|
-
y(this,
|
|
620
|
-
y(this,
|
|
648
|
+
y(this, Be, null);
|
|
649
|
+
y(this, et, 0);
|
|
650
|
+
y(this, ke, 0);
|
|
621
651
|
y(this, pt, !1);
|
|
622
|
-
y(this,
|
|
652
|
+
y(this, tt, !1);
|
|
623
653
|
/** @type {Set<Effect>} */
|
|
624
654
|
y(this, gt, /* @__PURE__ */ new Set());
|
|
625
655
|
/** @type {Set<Effect>} */
|
|
@@ -631,37 +661,37 @@ class fs {
|
|
|
631
661
|
* calls followed by no-op flushes
|
|
632
662
|
* @type {Source<number> | null}
|
|
633
663
|
*/
|
|
634
|
-
y(this,
|
|
635
|
-
y(this,
|
|
636
|
-
|
|
664
|
+
y(this, Re, null);
|
|
665
|
+
y(this, sn, us(() => (b(this, Re, ft(a(this, et))), () => {
|
|
666
|
+
b(this, Re, null);
|
|
637
667
|
})));
|
|
638
|
-
|
|
639
|
-
S.b, this.is_pending = !!
|
|
668
|
+
b(this, W, t), b(this, be, n), b(this, Ze, r), this.parent = /** @type {Effect} */
|
|
669
|
+
S.b, this.is_pending = !!a(this, be).pending, b(this, we, jn(() => {
|
|
640
670
|
if (S.b = this, E) {
|
|
641
|
-
const s =
|
|
642
|
-
|
|
643
|
-
s.nodeType ===
|
|
644
|
-
s.data ===
|
|
671
|
+
const s = a(this, Ut);
|
|
672
|
+
jt(), /** @type {Comment} */
|
|
673
|
+
s.nodeType === xt && /** @type {Comment} */
|
|
674
|
+
s.data === on ? D(this, M, qr).call(this) : (D(this, M, Fr).call(this), a(this, ke) === 0 && (this.is_pending = !1));
|
|
645
675
|
} else {
|
|
646
|
-
var i =
|
|
676
|
+
var i = D(this, M, Tn).call(this);
|
|
647
677
|
try {
|
|
648
|
-
|
|
678
|
+
b(this, re, se(() => r(i)));
|
|
649
679
|
} catch (s) {
|
|
650
680
|
this.error(s);
|
|
651
681
|
}
|
|
652
|
-
|
|
682
|
+
a(this, ke) > 0 ? D(this, M, Qt).call(this) : this.is_pending = !1;
|
|
653
683
|
}
|
|
654
684
|
return () => {
|
|
655
|
-
|
|
685
|
+
a(this, Be)?.remove();
|
|
656
686
|
};
|
|
657
|
-
},
|
|
687
|
+
}, cs)), E && b(this, W, T);
|
|
658
688
|
}
|
|
659
689
|
/**
|
|
660
690
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
661
691
|
* @param {Effect} effect
|
|
662
692
|
*/
|
|
663
693
|
defer_effect(t) {
|
|
664
|
-
|
|
694
|
+
Lr(t, a(this, gt), a(this, mt));
|
|
665
695
|
}
|
|
666
696
|
/**
|
|
667
697
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -671,7 +701,7 @@ class fs {
|
|
|
671
701
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
672
702
|
}
|
|
673
703
|
has_pending_snippet() {
|
|
674
|
-
return !!
|
|
704
|
+
return !!a(this, be).pending;
|
|
675
705
|
}
|
|
676
706
|
/**
|
|
677
707
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -680,48 +710,48 @@ class fs {
|
|
|
680
710
|
* @param {1 | -1} d
|
|
681
711
|
*/
|
|
682
712
|
update_pending_count(t) {
|
|
683
|
-
|
|
684
|
-
|
|
713
|
+
D(this, M, Sn).call(this, t), b(this, et, a(this, et) + t), !(!a(this, Re) || a(this, pt)) && (b(this, pt, !0), it(() => {
|
|
714
|
+
b(this, pt, !1), a(this, Re) && Tt(a(this, Re), a(this, et));
|
|
685
715
|
}));
|
|
686
716
|
}
|
|
687
717
|
get_effect_pending() {
|
|
688
|
-
return
|
|
718
|
+
return a(this, sn).call(this), p(
|
|
689
719
|
/** @type {Source<number>} */
|
|
690
|
-
|
|
720
|
+
a(this, Re)
|
|
691
721
|
);
|
|
692
722
|
}
|
|
693
723
|
/** @param {unknown} error */
|
|
694
724
|
error(t) {
|
|
695
|
-
var n =
|
|
696
|
-
let r =
|
|
697
|
-
if (
|
|
725
|
+
var n = a(this, be).onerror;
|
|
726
|
+
let r = a(this, be).failed;
|
|
727
|
+
if (a(this, tt) || !n && !r)
|
|
698
728
|
throw t;
|
|
699
|
-
|
|
729
|
+
a(this, re) && (H(a(this, re)), b(this, re, null)), a(this, j) && (H(a(this, j)), b(this, j, null)), a(this, ye) && (H(a(this, ye)), b(this, ye, null)), E && (Q(
|
|
700
730
|
/** @type {TemplateNode} */
|
|
701
|
-
|
|
702
|
-
),
|
|
731
|
+
a(this, Ut)
|
|
732
|
+
), is(), Q(rn()));
|
|
703
733
|
var i = !1, s = !1;
|
|
704
734
|
const l = () => {
|
|
705
735
|
if (i) {
|
|
706
|
-
|
|
736
|
+
rs();
|
|
707
737
|
return;
|
|
708
738
|
}
|
|
709
|
-
i = !0, s &&
|
|
710
|
-
|
|
711
|
-
}), this.is_pending = this.has_pending_snippet(),
|
|
739
|
+
i = !0, s && ns(), De.ensure(), b(this, et, 0), a(this, ye) !== null && st(a(this, ye), () => {
|
|
740
|
+
b(this, ye, null);
|
|
741
|
+
}), this.is_pending = this.has_pending_snippet(), b(this, re, D(this, M, Jt).call(this, () => (b(this, tt, !1), se(() => a(this, Ze).call(this, a(this, W)))))), a(this, ke) > 0 ? D(this, M, Qt).call(this) : this.is_pending = !1;
|
|
712
742
|
};
|
|
713
|
-
|
|
743
|
+
it(() => {
|
|
714
744
|
try {
|
|
715
745
|
s = !0, n?.(t, l), s = !1;
|
|
716
746
|
} catch (o) {
|
|
717
|
-
Et(o,
|
|
747
|
+
Et(o, a(this, we) && a(this, we).parent);
|
|
718
748
|
}
|
|
719
|
-
r &&
|
|
720
|
-
|
|
749
|
+
r && b(this, ye, D(this, M, Jt).call(this, () => {
|
|
750
|
+
De.ensure(), b(this, tt, !0);
|
|
721
751
|
try {
|
|
722
752
|
return se(() => {
|
|
723
753
|
r(
|
|
724
|
-
|
|
754
|
+
a(this, W),
|
|
725
755
|
() => t,
|
|
726
756
|
() => l
|
|
727
757
|
);
|
|
@@ -730,58 +760,58 @@ class fs {
|
|
|
730
760
|
return Et(
|
|
731
761
|
o,
|
|
732
762
|
/** @type {Effect} */
|
|
733
|
-
|
|
763
|
+
a(this, we).parent
|
|
734
764
|
), null;
|
|
735
765
|
} finally {
|
|
736
|
-
|
|
766
|
+
b(this, tt, !1);
|
|
737
767
|
}
|
|
738
768
|
}));
|
|
739
769
|
});
|
|
740
770
|
}
|
|
741
771
|
}
|
|
742
|
-
|
|
772
|
+
W = new WeakMap(), Ut = new WeakMap(), be = new WeakMap(), Ze = new WeakMap(), we = new WeakMap(), re = new WeakMap(), j = new WeakMap(), ye = new WeakMap(), Oe = new WeakMap(), Be = new WeakMap(), et = new WeakMap(), ke = new WeakMap(), pt = new WeakMap(), tt = new WeakMap(), gt = new WeakMap(), mt = new WeakMap(), Re = new WeakMap(), sn = new WeakMap(), M = new WeakSet(), Fr = function() {
|
|
743
773
|
try {
|
|
744
|
-
|
|
774
|
+
b(this, re, se(() => a(this, Ze).call(this, a(this, W))));
|
|
745
775
|
} catch (t) {
|
|
746
776
|
this.error(t);
|
|
747
777
|
}
|
|
748
|
-
},
|
|
749
|
-
const t =
|
|
750
|
-
t && (
|
|
751
|
-
var n =
|
|
752
|
-
|
|
778
|
+
}, qr = function() {
|
|
779
|
+
const t = a(this, be).pending;
|
|
780
|
+
t && (b(this, j, se(() => t(a(this, W)))), it(() => {
|
|
781
|
+
var n = D(this, M, Tn).call(this);
|
|
782
|
+
b(this, re, D(this, M, Jt).call(this, () => (De.ensure(), se(() => a(this, Ze).call(this, n))))), a(this, ke) > 0 ? D(this, M, Qt).call(this) : (st(
|
|
753
783
|
/** @type {Effect} */
|
|
754
|
-
|
|
784
|
+
a(this, j),
|
|
755
785
|
() => {
|
|
756
|
-
|
|
786
|
+
b(this, j, null);
|
|
757
787
|
}
|
|
758
788
|
), this.is_pending = !1);
|
|
759
789
|
}));
|
|
760
790
|
}, Tn = function() {
|
|
761
|
-
var t =
|
|
762
|
-
return this.is_pending && (
|
|
791
|
+
var t = a(this, W);
|
|
792
|
+
return this.is_pending && (b(this, Be, _e()), a(this, W).before(a(this, Be)), t = a(this, Be)), t;
|
|
763
793
|
}, /**
|
|
764
794
|
* @param {() => Effect | null} fn
|
|
765
795
|
*/
|
|
766
|
-
|
|
796
|
+
Jt = function(t) {
|
|
767
797
|
var n = S, r = $, i = Z;
|
|
768
|
-
|
|
798
|
+
Ee(a(this, we)), ae(a(this, we)), $t(a(this, we).ctx);
|
|
769
799
|
try {
|
|
770
800
|
return t();
|
|
771
801
|
} catch (s) {
|
|
772
|
-
return
|
|
802
|
+
return kr(s), null;
|
|
773
803
|
} finally {
|
|
774
|
-
|
|
804
|
+
Ee(n), ae(r), $t(i);
|
|
775
805
|
}
|
|
776
|
-
},
|
|
806
|
+
}, Qt = function() {
|
|
777
807
|
const t = (
|
|
778
808
|
/** @type {(anchor: Node) => void} */
|
|
779
|
-
|
|
809
|
+
a(this, be).pending
|
|
780
810
|
);
|
|
781
|
-
|
|
811
|
+
a(this, re) !== null && (b(this, Oe, document.createDocumentFragment()), a(this, Oe).append(
|
|
782
812
|
/** @type {TemplateNode} */
|
|
783
|
-
|
|
784
|
-
),
|
|
813
|
+
a(this, Be)
|
|
814
|
+
), oi(a(this, re), a(this, Oe))), a(this, j) === null && b(this, j, se(() => t(a(this, W))));
|
|
785
815
|
}, /**
|
|
786
816
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
787
817
|
* if any, such that we can replace the snippet with content once work is done
|
|
@@ -790,37 +820,37 @@ Kt = function(t) {
|
|
|
790
820
|
Sn = function(t) {
|
|
791
821
|
var n;
|
|
792
822
|
if (!this.has_pending_snippet()) {
|
|
793
|
-
this.parent &&
|
|
823
|
+
this.parent && D(n = this.parent, M, Sn).call(n, t);
|
|
794
824
|
return;
|
|
795
825
|
}
|
|
796
|
-
if (
|
|
826
|
+
if (b(this, ke, a(this, ke) + t), a(this, ke) === 0) {
|
|
797
827
|
this.is_pending = !1;
|
|
798
|
-
for (const r of
|
|
799
|
-
|
|
800
|
-
for (const r of
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}),
|
|
828
|
+
for (const r of a(this, gt))
|
|
829
|
+
R(r, q), de(r);
|
|
830
|
+
for (const r of a(this, mt))
|
|
831
|
+
R(r, pe), de(r);
|
|
832
|
+
a(this, gt).clear(), a(this, mt).clear(), a(this, j) && st(a(this, j), () => {
|
|
833
|
+
b(this, j, null);
|
|
834
|
+
}), a(this, Oe) && (a(this, W).before(a(this, Oe)), b(this, Oe, null));
|
|
805
835
|
}
|
|
806
836
|
};
|
|
807
|
-
function
|
|
808
|
-
const i =
|
|
837
|
+
function vs(e, t, n, r) {
|
|
838
|
+
const i = hn;
|
|
809
839
|
var s = e.filter((d) => !d.settled);
|
|
810
840
|
if (n.length === 0 && s.length === 0) {
|
|
811
841
|
r(t.map(i));
|
|
812
842
|
return;
|
|
813
843
|
}
|
|
814
|
-
var l =
|
|
844
|
+
var l = N, o = (
|
|
815
845
|
/** @type {Effect} */
|
|
816
846
|
S
|
|
817
|
-
),
|
|
847
|
+
), u = _s(), f = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
|
|
818
848
|
function h(d) {
|
|
819
|
-
|
|
849
|
+
u();
|
|
820
850
|
try {
|
|
821
851
|
r(d);
|
|
822
|
-
} catch (
|
|
823
|
-
(o.f &
|
|
852
|
+
} catch (_) {
|
|
853
|
+
(o.f & Ie) === 0 && Et(_, o);
|
|
824
854
|
}
|
|
825
855
|
l?.deactivate(), An();
|
|
826
856
|
}
|
|
@@ -829,37 +859,37 @@ function us(e, t, n, r) {
|
|
|
829
859
|
return;
|
|
830
860
|
}
|
|
831
861
|
function v() {
|
|
832
|
-
|
|
862
|
+
u(), Promise.all(n.map((d) => /* @__PURE__ */ ps(d))).then((d) => h([...t.map(i), ...d])).catch((d) => Et(d, o));
|
|
833
863
|
}
|
|
834
864
|
f ? f.then(v) : v();
|
|
835
865
|
}
|
|
836
|
-
function
|
|
837
|
-
var e = S, t = $, n = Z, r =
|
|
866
|
+
function _s() {
|
|
867
|
+
var e = S, t = $, n = Z, r = N;
|
|
838
868
|
return function(s = !0) {
|
|
839
|
-
|
|
869
|
+
Ee(e), ae(t), $t(n), s && r?.activate();
|
|
840
870
|
};
|
|
841
871
|
}
|
|
842
872
|
function An() {
|
|
843
|
-
|
|
873
|
+
Ee(null), ae(null), $t(null);
|
|
844
874
|
}
|
|
845
875
|
// @__NO_SIDE_EFFECTS__
|
|
846
|
-
function
|
|
847
|
-
var t =
|
|
876
|
+
function hn(e) {
|
|
877
|
+
var t = F | q, n = $ !== null && ($.f & F) !== 0 ? (
|
|
848
878
|
/** @type {Derived} */
|
|
849
879
|
$
|
|
850
880
|
) : null;
|
|
851
|
-
return S !== null && (S.f |=
|
|
881
|
+
return S !== null && (S.f |= ut), {
|
|
852
882
|
ctx: Z,
|
|
853
883
|
deps: null,
|
|
854
884
|
effects: null,
|
|
855
|
-
equals:
|
|
885
|
+
equals: Cr,
|
|
856
886
|
f: t,
|
|
857
887
|
fn: e,
|
|
858
888
|
reactions: null,
|
|
859
889
|
rv: 0,
|
|
860
890
|
v: (
|
|
861
891
|
/** @type {V} */
|
|
862
|
-
|
|
892
|
+
z
|
|
863
893
|
),
|
|
864
894
|
wv: 0,
|
|
865
895
|
parent: n ?? S,
|
|
@@ -867,12 +897,12 @@ function dn(e) {
|
|
|
867
897
|
};
|
|
868
898
|
}
|
|
869
899
|
// @__NO_SIDE_EFFECTS__
|
|
870
|
-
function
|
|
900
|
+
function ps(e, t, n) {
|
|
871
901
|
let r = (
|
|
872
902
|
/** @type {Effect | null} */
|
|
873
903
|
S
|
|
874
904
|
);
|
|
875
|
-
r === null &&
|
|
905
|
+
r === null && ji();
|
|
876
906
|
var i = (
|
|
877
907
|
/** @type {Boundary} */
|
|
878
908
|
r.b
|
|
@@ -880,44 +910,44 @@ function cs(e, t, n) {
|
|
|
880
910
|
/** @type {Promise<V>} */
|
|
881
911
|
/** @type {unknown} */
|
|
882
912
|
void 0
|
|
883
|
-
), l =
|
|
913
|
+
), l = ft(
|
|
884
914
|
/** @type {V} */
|
|
885
|
-
|
|
886
|
-
), o = !$,
|
|
887
|
-
return
|
|
888
|
-
var f =
|
|
915
|
+
z
|
|
916
|
+
), o = !$, u = /* @__PURE__ */ new Map();
|
|
917
|
+
return xs(() => {
|
|
918
|
+
var f = yr();
|
|
889
919
|
s = f.promise;
|
|
890
920
|
try {
|
|
891
921
|
Promise.resolve(e()).then(f.resolve, f.reject).then(() => {
|
|
892
|
-
h ===
|
|
922
|
+
h === N && h.committed && h.deactivate(), An();
|
|
893
923
|
});
|
|
894
|
-
} catch (
|
|
895
|
-
f.reject(
|
|
924
|
+
} catch (_) {
|
|
925
|
+
f.reject(_), An();
|
|
896
926
|
}
|
|
897
927
|
var h = (
|
|
898
928
|
/** @type {Batch} */
|
|
899
|
-
|
|
929
|
+
N
|
|
900
930
|
);
|
|
901
931
|
if (o) {
|
|
902
932
|
var v = i.is_rendered();
|
|
903
|
-
i.update_pending_count(1), h.increment(v),
|
|
933
|
+
i.update_pending_count(1), h.increment(v), u.get(h)?.reject(Ke), u.delete(h), u.set(h, f);
|
|
904
934
|
}
|
|
905
|
-
const d = (
|
|
935
|
+
const d = (_, c = void 0) => {
|
|
906
936
|
if (h.activate(), c)
|
|
907
|
-
c !==
|
|
937
|
+
c !== Ke && (l.f |= Ve, Tt(l, c));
|
|
908
938
|
else {
|
|
909
|
-
(l.f &
|
|
910
|
-
for (const [
|
|
911
|
-
if (
|
|
912
|
-
g.reject(
|
|
939
|
+
(l.f & Ve) !== 0 && (l.f ^= Ve), Tt(l, _);
|
|
940
|
+
for (const [m, g] of u) {
|
|
941
|
+
if (u.delete(m), m === h) break;
|
|
942
|
+
g.reject(Ke);
|
|
913
943
|
}
|
|
914
944
|
}
|
|
915
945
|
o && (i.update_pending_count(-1), h.decrement(v));
|
|
916
946
|
};
|
|
917
|
-
f.promise.then(d, (
|
|
918
|
-
}),
|
|
919
|
-
for (const f of
|
|
920
|
-
f.reject(
|
|
947
|
+
f.promise.then(d, (_) => d(null, _ || "unknown"));
|
|
948
|
+
}), Ss(() => {
|
|
949
|
+
for (const f of u.values())
|
|
950
|
+
f.reject(Ke);
|
|
921
951
|
}), new Promise((f) => {
|
|
922
952
|
function h(v) {
|
|
923
953
|
function d() {
|
|
@@ -929,30 +959,30 @@ function cs(e, t, n) {
|
|
|
929
959
|
});
|
|
930
960
|
}
|
|
931
961
|
// @__NO_SIDE_EFFECTS__
|
|
932
|
-
function
|
|
933
|
-
const t = /* @__PURE__ */
|
|
934
|
-
return
|
|
962
|
+
function nr(e) {
|
|
963
|
+
const t = /* @__PURE__ */ hn(e);
|
|
964
|
+
return ai(t), t;
|
|
935
965
|
}
|
|
936
966
|
// @__NO_SIDE_EFFECTS__
|
|
937
|
-
function
|
|
938
|
-
const t = /* @__PURE__ */
|
|
939
|
-
return t.equals =
|
|
967
|
+
function Br(e) {
|
|
968
|
+
const t = /* @__PURE__ */ hn(e);
|
|
969
|
+
return t.equals = xr, t;
|
|
940
970
|
}
|
|
941
|
-
function
|
|
971
|
+
function gs(e) {
|
|
942
972
|
var t = e.effects;
|
|
943
973
|
if (t !== null) {
|
|
944
974
|
e.effects = null;
|
|
945
975
|
for (var n = 0; n < t.length; n += 1)
|
|
946
|
-
|
|
976
|
+
H(
|
|
947
977
|
/** @type {Effect} */
|
|
948
978
|
t[n]
|
|
949
979
|
);
|
|
950
980
|
}
|
|
951
981
|
}
|
|
952
|
-
function
|
|
982
|
+
function ms(e) {
|
|
953
983
|
for (var t = e.parent; t !== null; ) {
|
|
954
|
-
if ((t.f &
|
|
955
|
-
return (t.f &
|
|
984
|
+
if ((t.f & F) === 0)
|
|
985
|
+
return (t.f & Ie) === 0 ? (
|
|
956
986
|
/** @type {Effect} */
|
|
957
987
|
t
|
|
958
988
|
) : null;
|
|
@@ -960,34 +990,44 @@ function ds(e) {
|
|
|
960
990
|
}
|
|
961
991
|
return null;
|
|
962
992
|
}
|
|
963
|
-
function
|
|
993
|
+
function Bn(e) {
|
|
964
994
|
var t, n = S;
|
|
965
|
-
|
|
995
|
+
Ee(ms(e));
|
|
966
996
|
try {
|
|
967
|
-
e.f &= ~
|
|
997
|
+
e.f &= ~at, gs(e), t = hi(e);
|
|
968
998
|
} finally {
|
|
969
|
-
|
|
999
|
+
Ee(n);
|
|
970
1000
|
}
|
|
971
1001
|
return t;
|
|
972
1002
|
}
|
|
973
|
-
function
|
|
974
|
-
var t =
|
|
975
|
-
if (!e.equals(t) && (e.wv =
|
|
976
|
-
|
|
1003
|
+
function Ur(e) {
|
|
1004
|
+
var t = Bn(e);
|
|
1005
|
+
if (!e.equals(t) && (e.wv = ui(), (!N?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
1006
|
+
R(e, P);
|
|
977
1007
|
return;
|
|
978
1008
|
}
|
|
979
|
-
|
|
1009
|
+
Ge || (he !== null ? (Hn() || N?.is_fork) && he.set(e, t) : qn(e));
|
|
980
1010
|
}
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1011
|
+
function bs(e) {
|
|
1012
|
+
if (e.effects !== null)
|
|
1013
|
+
for (const t of e.effects)
|
|
1014
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ke), t.teardown = Fi, t.ac = null, zt(t, 0), Gn(t));
|
|
1015
|
+
}
|
|
1016
|
+
function Hr(e) {
|
|
1017
|
+
if (e.effects !== null)
|
|
1018
|
+
for (const t of e.effects)
|
|
1019
|
+
t.teardown && At(t);
|
|
1020
|
+
}
|
|
1021
|
+
let Cn = /* @__PURE__ */ new Set();
|
|
1022
|
+
const je = /* @__PURE__ */ new Map();
|
|
1023
|
+
let Vr = !1;
|
|
1024
|
+
function ft(e, t) {
|
|
985
1025
|
var n = {
|
|
986
1026
|
f: 0,
|
|
987
1027
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
988
1028
|
v: e,
|
|
989
1029
|
reactions: null,
|
|
990
|
-
equals:
|
|
1030
|
+
equals: Cr,
|
|
991
1031
|
rv: 0,
|
|
992
1032
|
wv: 0
|
|
993
1033
|
};
|
|
@@ -995,79 +1035,79 @@ function ot(e, t) {
|
|
|
995
1035
|
}
|
|
996
1036
|
// @__NO_SIDE_EFFECTS__
|
|
997
1037
|
function U(e, t) {
|
|
998
|
-
const n =
|
|
999
|
-
return
|
|
1038
|
+
const n = ft(e);
|
|
1039
|
+
return ai(n), n;
|
|
1000
1040
|
}
|
|
1001
1041
|
// @__NO_SIDE_EFFECTS__
|
|
1002
|
-
function
|
|
1003
|
-
const r =
|
|
1004
|
-
return t || (r.equals =
|
|
1042
|
+
function jr(e, t = !1, n = !0) {
|
|
1043
|
+
const r = ft(e);
|
|
1044
|
+
return t || (r.equals = xr), r;
|
|
1005
1045
|
}
|
|
1006
|
-
function
|
|
1046
|
+
function I(e, t, n = !1) {
|
|
1007
1047
|
$ !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1008
1048
|
// to ensure we error if state is set inside an inspect effect
|
|
1009
|
-
(!
|
|
1010
|
-
let r = n ?
|
|
1049
|
+
(!ve || ($.f & er) !== 0) && Nr() && ($.f & (F | Pe | Dn | er)) !== 0 && (oe === null || !wt.call(oe, e)) && ts();
|
|
1050
|
+
let r = n ? He(t) : t;
|
|
1011
1051
|
return Tt(e, r);
|
|
1012
1052
|
}
|
|
1013
1053
|
function Tt(e, t) {
|
|
1014
1054
|
if (!e.equals(t)) {
|
|
1015
1055
|
var n = e.v;
|
|
1016
|
-
|
|
1017
|
-
var r =
|
|
1018
|
-
if (r.capture(e, n), (e.f &
|
|
1056
|
+
Ge ? je.set(e, t) : je.set(e, n), e.v = t;
|
|
1057
|
+
var r = De.ensure();
|
|
1058
|
+
if (r.capture(e, n), (e.f & F) !== 0) {
|
|
1019
1059
|
const i = (
|
|
1020
1060
|
/** @type {Derived} */
|
|
1021
1061
|
e
|
|
1022
1062
|
);
|
|
1023
|
-
(e.f &
|
|
1063
|
+
(e.f & q) !== 0 && Bn(i), qn(i);
|
|
1024
1064
|
}
|
|
1025
|
-
e.wv =
|
|
1065
|
+
e.wv = ui(), Gr(e, q), S !== null && (S.f & P) !== 0 && (S.f & (ge | Ye)) === 0 && (ne === null ? ks([e]) : ne.push(e)), !r.is_fork && Cn.size > 0 && !Vr && ws();
|
|
1026
1066
|
}
|
|
1027
1067
|
return t;
|
|
1028
1068
|
}
|
|
1029
|
-
function
|
|
1030
|
-
|
|
1031
|
-
for (const e of
|
|
1032
|
-
(e.f &
|
|
1033
|
-
|
|
1069
|
+
function ws() {
|
|
1070
|
+
Vr = !1;
|
|
1071
|
+
for (const e of Cn)
|
|
1072
|
+
(e.f & P) !== 0 && R(e, pe), Gt(e) && At(e);
|
|
1073
|
+
Cn.clear();
|
|
1034
1074
|
}
|
|
1035
|
-
function
|
|
1036
|
-
|
|
1075
|
+
function Mt(e) {
|
|
1076
|
+
I(e, e.v + 1);
|
|
1037
1077
|
}
|
|
1038
|
-
function
|
|
1078
|
+
function Gr(e, t) {
|
|
1039
1079
|
var n = e.reactions;
|
|
1040
1080
|
if (n !== null)
|
|
1041
1081
|
for (var r = n.length, i = 0; i < r; i++) {
|
|
1042
|
-
var s = n[i], l = s.f, o = (l &
|
|
1043
|
-
if (o &&
|
|
1044
|
-
var
|
|
1082
|
+
var s = n[i], l = s.f, o = (l & q) === 0;
|
|
1083
|
+
if (o && R(s, t), (l & F) !== 0) {
|
|
1084
|
+
var u = (
|
|
1045
1085
|
/** @type {Derived} */
|
|
1046
1086
|
s
|
|
1047
1087
|
);
|
|
1048
|
-
|
|
1049
|
-
} else o && ((l &
|
|
1088
|
+
he?.delete(u), (l & at) === 0 && (l & le && (s.f |= at), Gr(u, pe));
|
|
1089
|
+
} else o && ((l & Pe) !== 0 && xe !== null && xe.add(
|
|
1050
1090
|
/** @type {Effect} */
|
|
1051
1091
|
s
|
|
1052
|
-
),
|
|
1092
|
+
), de(
|
|
1053
1093
|
/** @type {Effect} */
|
|
1054
1094
|
s
|
|
1055
1095
|
));
|
|
1056
1096
|
}
|
|
1057
1097
|
}
|
|
1058
|
-
function
|
|
1059
|
-
if (typeof e != "object" || e === null ||
|
|
1098
|
+
function He(e) {
|
|
1099
|
+
if (typeof e != "object" || e === null || Rt in e)
|
|
1060
1100
|
return e;
|
|
1061
|
-
const t =
|
|
1062
|
-
if (t !==
|
|
1101
|
+
const t = wr(e);
|
|
1102
|
+
if (t !== Pi && t !== zi)
|
|
1063
1103
|
return e;
|
|
1064
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
1065
|
-
if (
|
|
1104
|
+
var n = /* @__PURE__ */ new Map(), r = br(e), i = /* @__PURE__ */ U(0), s = lt, l = (o) => {
|
|
1105
|
+
if (lt === s)
|
|
1066
1106
|
return o();
|
|
1067
|
-
var
|
|
1068
|
-
|
|
1107
|
+
var u = $, f = lt;
|
|
1108
|
+
ae(null), sr(s);
|
|
1069
1109
|
var h = o();
|
|
1070
|
-
return
|
|
1110
|
+
return ae(u), sr(f), h;
|
|
1071
1111
|
};
|
|
1072
1112
|
return r && n.set("length", /* @__PURE__ */ U(
|
|
1073
1113
|
/** @type {any[]} */
|
|
@@ -1076,46 +1116,46 @@ function Be(e) {
|
|
|
1076
1116
|
/** @type {any} */
|
|
1077
1117
|
e,
|
|
1078
1118
|
{
|
|
1079
|
-
defineProperty(o,
|
|
1080
|
-
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) &&
|
|
1081
|
-
var h = n.get(
|
|
1082
|
-
return h === void 0 ?
|
|
1119
|
+
defineProperty(o, u, f) {
|
|
1120
|
+
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Zi();
|
|
1121
|
+
var h = n.get(u);
|
|
1122
|
+
return h === void 0 ? l(() => {
|
|
1083
1123
|
var v = /* @__PURE__ */ U(f.value);
|
|
1084
|
-
return n.set(
|
|
1085
|
-
}) :
|
|
1124
|
+
return n.set(u, v), v;
|
|
1125
|
+
}) : I(h, f.value, !0), !0;
|
|
1086
1126
|
},
|
|
1087
|
-
deleteProperty(o,
|
|
1088
|
-
var f = n.get(
|
|
1127
|
+
deleteProperty(o, u) {
|
|
1128
|
+
var f = n.get(u);
|
|
1089
1129
|
if (f === void 0) {
|
|
1090
|
-
if (
|
|
1091
|
-
const h = l(() => /* @__PURE__ */ U(
|
|
1092
|
-
n.set(
|
|
1130
|
+
if (u in o) {
|
|
1131
|
+
const h = l(() => /* @__PURE__ */ U(z));
|
|
1132
|
+
n.set(u, h), Mt(i);
|
|
1093
1133
|
}
|
|
1094
1134
|
} else
|
|
1095
|
-
|
|
1135
|
+
I(f, z), Mt(i);
|
|
1096
1136
|
return !0;
|
|
1097
1137
|
},
|
|
1098
|
-
get(o,
|
|
1099
|
-
if (
|
|
1138
|
+
get(o, u, f) {
|
|
1139
|
+
if (u === Rt)
|
|
1100
1140
|
return e;
|
|
1101
|
-
var h = n.get(
|
|
1102
|
-
if (h === void 0 && (!v ||
|
|
1103
|
-
var
|
|
1141
|
+
var h = n.get(u), v = u in o;
|
|
1142
|
+
if (h === void 0 && (!v || rt(o, u)?.writable) && (h = l(() => {
|
|
1143
|
+
var _ = He(v ? o[u] : z), c = /* @__PURE__ */ U(_);
|
|
1104
1144
|
return c;
|
|
1105
|
-
}), n.set(
|
|
1106
|
-
var d =
|
|
1107
|
-
return d ===
|
|
1145
|
+
}), n.set(u, h)), h !== void 0) {
|
|
1146
|
+
var d = p(h);
|
|
1147
|
+
return d === z ? void 0 : d;
|
|
1108
1148
|
}
|
|
1109
|
-
return Reflect.get(o,
|
|
1149
|
+
return Reflect.get(o, u, f);
|
|
1110
1150
|
},
|
|
1111
|
-
getOwnPropertyDescriptor(o,
|
|
1112
|
-
var f = Reflect.getOwnPropertyDescriptor(o,
|
|
1151
|
+
getOwnPropertyDescriptor(o, u) {
|
|
1152
|
+
var f = Reflect.getOwnPropertyDescriptor(o, u);
|
|
1113
1153
|
if (f && "value" in f) {
|
|
1114
|
-
var h = n.get(
|
|
1115
|
-
h && (f.value =
|
|
1154
|
+
var h = n.get(u);
|
|
1155
|
+
h && (f.value = p(h));
|
|
1116
1156
|
} else if (f === void 0) {
|
|
1117
|
-
var v = n.get(
|
|
1118
|
-
if (v !== void 0 && d !==
|
|
1157
|
+
var v = n.get(u), d = v?.v;
|
|
1158
|
+
if (v !== void 0 && d !== z)
|
|
1119
1159
|
return {
|
|
1120
1160
|
enumerable: !0,
|
|
1121
1161
|
configurable: !0,
|
|
@@ -1125,173 +1165,179 @@ function Be(e) {
|
|
|
1125
1165
|
}
|
|
1126
1166
|
return f;
|
|
1127
1167
|
},
|
|
1128
|
-
has(o,
|
|
1129
|
-
if (
|
|
1168
|
+
has(o, u) {
|
|
1169
|
+
if (u === Rt)
|
|
1130
1170
|
return !0;
|
|
1131
|
-
var f = n.get(
|
|
1132
|
-
if (f !== void 0 || S !== null && (!h ||
|
|
1171
|
+
var f = n.get(u), h = f !== void 0 && f.v !== z || Reflect.has(o, u);
|
|
1172
|
+
if (f !== void 0 || S !== null && (!h || rt(o, u)?.writable)) {
|
|
1133
1173
|
f === void 0 && (f = l(() => {
|
|
1134
|
-
var d = h ?
|
|
1135
|
-
return
|
|
1136
|
-
}), n.set(
|
|
1137
|
-
var v =
|
|
1138
|
-
if (v ===
|
|
1174
|
+
var d = h ? He(o[u]) : z, _ = /* @__PURE__ */ U(d);
|
|
1175
|
+
return _;
|
|
1176
|
+
}), n.set(u, f));
|
|
1177
|
+
var v = p(f);
|
|
1178
|
+
if (v === z)
|
|
1139
1179
|
return !1;
|
|
1140
1180
|
}
|
|
1141
1181
|
return h;
|
|
1142
1182
|
},
|
|
1143
|
-
set(o,
|
|
1144
|
-
var v = n.get(
|
|
1145
|
-
if (r &&
|
|
1146
|
-
for (var
|
|
1147
|
-
v.v;
|
|
1148
|
-
var c = n.get(
|
|
1149
|
-
c !== void 0 ?
|
|
1183
|
+
set(o, u, f, h) {
|
|
1184
|
+
var v = n.get(u), d = u in o;
|
|
1185
|
+
if (r && u === "length")
|
|
1186
|
+
for (var _ = f; _ < /** @type {Source<number>} */
|
|
1187
|
+
v.v; _ += 1) {
|
|
1188
|
+
var c = n.get(_ + "");
|
|
1189
|
+
c !== void 0 ? I(c, z) : _ in o && (c = l(() => /* @__PURE__ */ U(z)), n.set(_ + "", c));
|
|
1150
1190
|
}
|
|
1151
1191
|
if (v === void 0)
|
|
1152
|
-
(!d ||
|
|
1192
|
+
(!d || rt(o, u)?.writable) && (v = l(() => /* @__PURE__ */ U(void 0)), I(v, He(f)), n.set(u, v));
|
|
1153
1193
|
else {
|
|
1154
|
-
d = v.v !==
|
|
1155
|
-
var
|
|
1156
|
-
|
|
1194
|
+
d = v.v !== z;
|
|
1195
|
+
var m = l(() => He(f));
|
|
1196
|
+
I(v, m);
|
|
1157
1197
|
}
|
|
1158
|
-
var g = Reflect.getOwnPropertyDescriptor(o,
|
|
1198
|
+
var g = Reflect.getOwnPropertyDescriptor(o, u);
|
|
1159
1199
|
if (g?.set && g.set.call(h, f), !d) {
|
|
1160
|
-
if (r && typeof
|
|
1161
|
-
var
|
|
1200
|
+
if (r && typeof u == "string") {
|
|
1201
|
+
var O = (
|
|
1162
1202
|
/** @type {Source<number>} */
|
|
1163
1203
|
n.get("length")
|
|
1164
|
-
), A = Number(
|
|
1165
|
-
Number.isInteger(A) && A >=
|
|
1204
|
+
), A = Number(u);
|
|
1205
|
+
Number.isInteger(A) && A >= O.v && I(O, A + 1);
|
|
1166
1206
|
}
|
|
1167
|
-
|
|
1207
|
+
Mt(i);
|
|
1168
1208
|
}
|
|
1169
1209
|
return !0;
|
|
1170
1210
|
},
|
|
1171
1211
|
ownKeys(o) {
|
|
1172
|
-
|
|
1173
|
-
var
|
|
1212
|
+
p(i);
|
|
1213
|
+
var u = Reflect.ownKeys(o).filter((v) => {
|
|
1174
1214
|
var d = n.get(v);
|
|
1175
|
-
return d === void 0 || d.v !==
|
|
1215
|
+
return d === void 0 || d.v !== z;
|
|
1176
1216
|
});
|
|
1177
1217
|
for (var [f, h] of n)
|
|
1178
|
-
h.v !==
|
|
1179
|
-
return
|
|
1218
|
+
h.v !== z && !(f in o) && u.push(f);
|
|
1219
|
+
return u;
|
|
1180
1220
|
},
|
|
1181
1221
|
setPrototypeOf() {
|
|
1182
|
-
|
|
1222
|
+
es();
|
|
1183
1223
|
}
|
|
1184
1224
|
}
|
|
1185
1225
|
);
|
|
1186
1226
|
}
|
|
1187
|
-
var
|
|
1188
|
-
function
|
|
1189
|
-
if (
|
|
1190
|
-
|
|
1227
|
+
var rr, Yr, Kr, Wr;
|
|
1228
|
+
function xn() {
|
|
1229
|
+
if (rr === void 0) {
|
|
1230
|
+
rr = window, Yr = /Firefox/.test(navigator.userAgent);
|
|
1191
1231
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1192
|
-
|
|
1232
|
+
Kr = rt(t, "firstChild").get, Wr = rt(t, "nextSibling").get, Zn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Zn(n) && (n.__t = void 0);
|
|
1193
1233
|
}
|
|
1194
1234
|
}
|
|
1195
|
-
function
|
|
1235
|
+
function _e(e = "") {
|
|
1196
1236
|
return document.createTextNode(e);
|
|
1197
1237
|
}
|
|
1198
1238
|
// @__NO_SIDE_EFFECTS__
|
|
1199
1239
|
function St(e) {
|
|
1200
1240
|
return (
|
|
1201
1241
|
/** @type {TemplateNode | null} */
|
|
1202
|
-
|
|
1242
|
+
Kr.call(e)
|
|
1203
1243
|
);
|
|
1204
1244
|
}
|
|
1205
1245
|
// @__NO_SIDE_EFFECTS__
|
|
1206
|
-
function
|
|
1246
|
+
function Se(e) {
|
|
1207
1247
|
return (
|
|
1208
1248
|
/** @type {TemplateNode | null} */
|
|
1209
|
-
|
|
1249
|
+
Wr.call(e)
|
|
1210
1250
|
);
|
|
1211
1251
|
}
|
|
1212
|
-
function
|
|
1252
|
+
function Nn(e, t) {
|
|
1213
1253
|
if (!E)
|
|
1214
1254
|
return /* @__PURE__ */ St(e);
|
|
1215
1255
|
var n = /* @__PURE__ */ St(T);
|
|
1216
|
-
return n === null && (n = T.appendChild(
|
|
1256
|
+
return n === null && (n = T.appendChild(_e())), Q(n), n;
|
|
1217
1257
|
}
|
|
1218
|
-
function
|
|
1258
|
+
function ys(e, t = !1) {
|
|
1219
1259
|
if (!E) {
|
|
1220
1260
|
var n = /* @__PURE__ */ St(e);
|
|
1221
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1261
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Se(n) : n;
|
|
1222
1262
|
}
|
|
1223
1263
|
if (t) {
|
|
1224
|
-
if (T?.nodeType !==
|
|
1225
|
-
var r =
|
|
1264
|
+
if (T?.nodeType !== Pn) {
|
|
1265
|
+
var r = _e();
|
|
1226
1266
|
return T?.before(r), Q(r), r;
|
|
1227
1267
|
}
|
|
1228
|
-
|
|
1268
|
+
Qr(
|
|
1229
1269
|
/** @type {Text} */
|
|
1230
1270
|
T
|
|
1231
1271
|
);
|
|
1232
1272
|
}
|
|
1233
1273
|
return T;
|
|
1234
1274
|
}
|
|
1235
|
-
function
|
|
1275
|
+
function $s(e, t = 1, n = !1) {
|
|
1236
1276
|
let r = E ? T : e;
|
|
1237
1277
|
for (var i; t--; )
|
|
1238
1278
|
i = r, r = /** @type {TemplateNode} */
|
|
1239
|
-
/* @__PURE__ */
|
|
1279
|
+
/* @__PURE__ */ Se(r);
|
|
1240
1280
|
if (!E)
|
|
1241
1281
|
return r;
|
|
1242
1282
|
if (n) {
|
|
1243
|
-
if (r?.nodeType !==
|
|
1244
|
-
var s =
|
|
1283
|
+
if (r?.nodeType !== Pn) {
|
|
1284
|
+
var s = _e();
|
|
1245
1285
|
return r === null ? i?.after(s) : r.before(s), Q(s), s;
|
|
1246
1286
|
}
|
|
1247
|
-
|
|
1287
|
+
Qr(
|
|
1248
1288
|
/** @type {Text} */
|
|
1249
1289
|
r
|
|
1250
1290
|
);
|
|
1251
1291
|
}
|
|
1252
1292
|
return Q(r), r;
|
|
1253
1293
|
}
|
|
1254
|
-
function
|
|
1294
|
+
function Xr(e) {
|
|
1255
1295
|
e.textContent = "";
|
|
1256
1296
|
}
|
|
1257
|
-
function
|
|
1297
|
+
function Jr() {
|
|
1258
1298
|
return !1;
|
|
1259
1299
|
}
|
|
1260
|
-
function
|
|
1300
|
+
function Un(e, t, n) {
|
|
1301
|
+
return (
|
|
1302
|
+
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1303
|
+
document.createElementNS(mr, e, void 0)
|
|
1304
|
+
);
|
|
1305
|
+
}
|
|
1306
|
+
function Qr(e) {
|
|
1261
1307
|
if (
|
|
1262
1308
|
/** @type {string} */
|
|
1263
1309
|
e.nodeValue.length < 65536
|
|
1264
1310
|
)
|
|
1265
1311
|
return;
|
|
1266
1312
|
let t = e.nextSibling;
|
|
1267
|
-
for (; t !== null && t.nodeType ===
|
|
1313
|
+
for (; t !== null && t.nodeType === Pn; )
|
|
1268
1314
|
t.remove(), e.nodeValue += /** @type {string} */
|
|
1269
1315
|
t.nodeValue, t = e.nextSibling;
|
|
1270
1316
|
}
|
|
1271
|
-
function
|
|
1317
|
+
function Zr(e) {
|
|
1272
1318
|
var t = $, n = S;
|
|
1273
|
-
|
|
1319
|
+
ae(null), Ee(null);
|
|
1274
1320
|
try {
|
|
1275
1321
|
return e();
|
|
1276
1322
|
} finally {
|
|
1277
|
-
|
|
1323
|
+
ae(t), Ee(n);
|
|
1278
1324
|
}
|
|
1279
1325
|
}
|
|
1280
|
-
function
|
|
1281
|
-
S === null && ($ === null &&
|
|
1326
|
+
function Es(e) {
|
|
1327
|
+
S === null && ($ === null && Wi(), Ki()), Ge && Yi();
|
|
1282
1328
|
}
|
|
1283
|
-
function
|
|
1329
|
+
function Ts(e, t) {
|
|
1284
1330
|
var n = t.last;
|
|
1285
1331
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1286
1332
|
}
|
|
1287
|
-
function
|
|
1333
|
+
function Ae(e, t, n) {
|
|
1288
1334
|
var r = S;
|
|
1289
1335
|
r !== null && (r.f & J) !== 0 && (e |= J);
|
|
1290
1336
|
var i = {
|
|
1291
1337
|
ctx: Z,
|
|
1292
1338
|
deps: null,
|
|
1293
1339
|
nodes: null,
|
|
1294
|
-
f: e |
|
|
1340
|
+
f: e | q | le,
|
|
1295
1341
|
first: null,
|
|
1296
1342
|
fn: t,
|
|
1297
1343
|
last: null,
|
|
@@ -1305,14 +1351,14 @@ function Te(e, t, n) {
|
|
|
1305
1351
|
};
|
|
1306
1352
|
if (n)
|
|
1307
1353
|
try {
|
|
1308
|
-
|
|
1354
|
+
At(i);
|
|
1309
1355
|
} catch (o) {
|
|
1310
|
-
throw
|
|
1356
|
+
throw H(i), o;
|
|
1311
1357
|
}
|
|
1312
|
-
else t !== null &&
|
|
1358
|
+
else t !== null && de(i);
|
|
1313
1359
|
var s = i;
|
|
1314
1360
|
if (n && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
|
|
1315
|
-
(s.f &
|
|
1361
|
+
(s.f & ut) === 0 && (s = s.first, (e & Pe) !== 0 && (e & yt) !== 0 && s !== null && (s.f |= yt)), s !== null && (s.parent = r, r !== null && Ts(s, r), $ !== null && ($.f & F) !== 0 && (e & Ye) === 0)) {
|
|
1316
1362
|
var l = (
|
|
1317
1363
|
/** @type {Derived} */
|
|
1318
1364
|
$
|
|
@@ -1321,19 +1367,19 @@ function Te(e, t, n) {
|
|
|
1321
1367
|
}
|
|
1322
1368
|
return i;
|
|
1323
1369
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return $ !== null && !
|
|
1370
|
+
function Hn() {
|
|
1371
|
+
return $ !== null && !ve;
|
|
1326
1372
|
}
|
|
1327
|
-
function
|
|
1328
|
-
const t =
|
|
1329
|
-
return
|
|
1373
|
+
function Ss(e) {
|
|
1374
|
+
const t = Ae(fn, null, !1);
|
|
1375
|
+
return R(t, P), t.teardown = e, t;
|
|
1330
1376
|
}
|
|
1331
|
-
function
|
|
1332
|
-
|
|
1377
|
+
function Pt(e) {
|
|
1378
|
+
Es();
|
|
1333
1379
|
var t = (
|
|
1334
1380
|
/** @type {Effect} */
|
|
1335
1381
|
S.f
|
|
1336
|
-
), n = !$ && (t &
|
|
1382
|
+
), n = !$ && (t & ge) !== 0 && (t & Ct) === 0;
|
|
1337
1383
|
if (n) {
|
|
1338
1384
|
var r = (
|
|
1339
1385
|
/** @type {ComponentContext} */
|
|
@@ -1341,107 +1387,107 @@ function Lt(e) {
|
|
|
1341
1387
|
);
|
|
1342
1388
|
(r.e ?? (r.e = [])).push(e);
|
|
1343
1389
|
} else
|
|
1344
|
-
return
|
|
1390
|
+
return ei(e);
|
|
1345
1391
|
}
|
|
1346
|
-
function
|
|
1347
|
-
return
|
|
1392
|
+
function ei(e) {
|
|
1393
|
+
return Ae(Dt | Bi, e, !1);
|
|
1348
1394
|
}
|
|
1349
|
-
function
|
|
1350
|
-
|
|
1351
|
-
const t =
|
|
1395
|
+
function As(e) {
|
|
1396
|
+
De.ensure();
|
|
1397
|
+
const t = Ae(Ye | ut, e, !0);
|
|
1352
1398
|
return () => {
|
|
1353
|
-
|
|
1399
|
+
H(t);
|
|
1354
1400
|
};
|
|
1355
1401
|
}
|
|
1356
|
-
function
|
|
1357
|
-
|
|
1358
|
-
const t =
|
|
1402
|
+
function Cs(e) {
|
|
1403
|
+
De.ensure();
|
|
1404
|
+
const t = Ae(Ye | ut, e, !0);
|
|
1359
1405
|
return (n = {}) => new Promise((r) => {
|
|
1360
|
-
n.outro ?
|
|
1361
|
-
|
|
1362
|
-
}) : (
|
|
1406
|
+
n.outro ? st(t, () => {
|
|
1407
|
+
H(t), r(void 0);
|
|
1408
|
+
}) : (H(t), r(void 0));
|
|
1363
1409
|
});
|
|
1364
1410
|
}
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1411
|
+
function ti(e) {
|
|
1412
|
+
return Ae(Dt, e, !1);
|
|
1367
1413
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return
|
|
1414
|
+
function xs(e) {
|
|
1415
|
+
return Ae(Dn | ut, e, !0);
|
|
1370
1416
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return
|
|
1417
|
+
function Vn(e, t = 0) {
|
|
1418
|
+
return Ae(fn | t, e, !0);
|
|
1373
1419
|
}
|
|
1374
|
-
function
|
|
1375
|
-
|
|
1376
|
-
|
|
1420
|
+
function ni(e, t = [], n = [], r = []) {
|
|
1421
|
+
vs(r, t, n, (i) => {
|
|
1422
|
+
Ae(fn, () => e(...i.map(p)), !0);
|
|
1377
1423
|
});
|
|
1378
1424
|
}
|
|
1379
|
-
function
|
|
1380
|
-
var n =
|
|
1425
|
+
function jn(e, t = 0) {
|
|
1426
|
+
var n = Ae(Pe | t, e, !0);
|
|
1381
1427
|
return n;
|
|
1382
1428
|
}
|
|
1383
1429
|
function se(e) {
|
|
1384
|
-
return
|
|
1430
|
+
return Ae(ge | ut, e, !0);
|
|
1385
1431
|
}
|
|
1386
|
-
function
|
|
1432
|
+
function ri(e) {
|
|
1387
1433
|
var t = e.teardown;
|
|
1388
1434
|
if (t !== null) {
|
|
1389
|
-
const n =
|
|
1390
|
-
|
|
1435
|
+
const n = Ge, r = $;
|
|
1436
|
+
ir(!0), ae(null);
|
|
1391
1437
|
try {
|
|
1392
1438
|
t.call(null);
|
|
1393
1439
|
} finally {
|
|
1394
|
-
|
|
1440
|
+
ir(n), ae(r);
|
|
1395
1441
|
}
|
|
1396
1442
|
}
|
|
1397
1443
|
}
|
|
1398
|
-
function
|
|
1444
|
+
function Gn(e, t = !1) {
|
|
1399
1445
|
var n = e.first;
|
|
1400
1446
|
for (e.first = e.last = null; n !== null; ) {
|
|
1401
1447
|
const i = n.ac;
|
|
1402
|
-
i !== null &&
|
|
1403
|
-
i.abort(
|
|
1448
|
+
i !== null && Zr(() => {
|
|
1449
|
+
i.abort(Ke);
|
|
1404
1450
|
});
|
|
1405
1451
|
var r = n.next;
|
|
1406
|
-
(n.f &
|
|
1452
|
+
(n.f & Ye) !== 0 ? n.parent = null : H(n, t), n = r;
|
|
1407
1453
|
}
|
|
1408
1454
|
}
|
|
1409
|
-
function
|
|
1455
|
+
function Ns(e) {
|
|
1410
1456
|
for (var t = e.first; t !== null; ) {
|
|
1411
1457
|
var n = t.next;
|
|
1412
|
-
(t.f &
|
|
1458
|
+
(t.f & ge) === 0 && H(t), t = n;
|
|
1413
1459
|
}
|
|
1414
1460
|
}
|
|
1415
|
-
function
|
|
1461
|
+
function H(e, t = !0) {
|
|
1416
1462
|
var n = !1;
|
|
1417
|
-
(t || (e.f &
|
|
1463
|
+
(t || (e.f & Tr) !== 0) && e.nodes !== null && e.nodes.end !== null && (Os(
|
|
1418
1464
|
e.nodes.start,
|
|
1419
1465
|
/** @type {TemplateNode} */
|
|
1420
1466
|
e.nodes.end
|
|
1421
|
-
), n = !0),
|
|
1467
|
+
), n = !0), Gn(e, t && !n), zt(e, 0), R(e, Ie);
|
|
1422
1468
|
var r = e.nodes && e.nodes.t;
|
|
1423
1469
|
if (r !== null)
|
|
1424
1470
|
for (const s of r)
|
|
1425
1471
|
s.stop();
|
|
1426
|
-
|
|
1472
|
+
ri(e);
|
|
1427
1473
|
var i = e.parent;
|
|
1428
|
-
i !== null && i.first !== null &&
|
|
1474
|
+
i !== null && i.first !== null && ii(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1429
1475
|
}
|
|
1430
|
-
function
|
|
1476
|
+
function Os(e, t) {
|
|
1431
1477
|
for (; e !== null; ) {
|
|
1432
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1478
|
+
var n = e === t ? null : /* @__PURE__ */ Se(e);
|
|
1433
1479
|
e.remove(), e = n;
|
|
1434
1480
|
}
|
|
1435
1481
|
}
|
|
1436
|
-
function
|
|
1482
|
+
function ii(e) {
|
|
1437
1483
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1438
1484
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1439
1485
|
}
|
|
1440
|
-
function
|
|
1486
|
+
function st(e, t, n = !0) {
|
|
1441
1487
|
var r = [];
|
|
1442
|
-
|
|
1488
|
+
si(e, r, !0);
|
|
1443
1489
|
var i = () => {
|
|
1444
|
-
n &&
|
|
1490
|
+
n && H(e), t && t();
|
|
1445
1491
|
}, s = r.length;
|
|
1446
1492
|
if (s > 0) {
|
|
1447
1493
|
var l = () => --s || i();
|
|
@@ -1450,7 +1496,7 @@ function rt(e, t, n = !0) {
|
|
|
1450
1496
|
} else
|
|
1451
1497
|
i();
|
|
1452
1498
|
}
|
|
1453
|
-
function
|
|
1499
|
+
function si(e, t, n) {
|
|
1454
1500
|
if ((e.f & J) === 0) {
|
|
1455
1501
|
e.f ^= J;
|
|
1456
1502
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1461,20 +1507,20 @@ function ni(e, t, n) {
|
|
|
1461
1507
|
var s = i.next, l = (i.f & yt) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1462
1508
|
// it means the parent block effect was pruned. In that case,
|
|
1463
1509
|
// transparency information was transferred to the branch effect.
|
|
1464
|
-
(i.f &
|
|
1465
|
-
|
|
1510
|
+
(i.f & ge) !== 0 && (e.f & Pe) !== 0;
|
|
1511
|
+
si(i, t, l ? n : !1), i = s;
|
|
1466
1512
|
}
|
|
1467
1513
|
}
|
|
1468
1514
|
}
|
|
1469
1515
|
function Yn(e) {
|
|
1470
|
-
|
|
1516
|
+
li(e, !0);
|
|
1471
1517
|
}
|
|
1472
|
-
function
|
|
1518
|
+
function li(e, t) {
|
|
1473
1519
|
if ((e.f & J) !== 0) {
|
|
1474
|
-
e.f ^= J, (e.f &
|
|
1520
|
+
e.f ^= J, (e.f & P) === 0 && (R(e, q), de(e));
|
|
1475
1521
|
for (var n = e.first; n !== null; ) {
|
|
1476
|
-
var r = n.next, i = (n.f & yt) !== 0 || (n.f &
|
|
1477
|
-
|
|
1522
|
+
var r = n.next, i = (n.f & yt) !== 0 || (n.f & ge) !== 0;
|
|
1523
|
+
li(n, i ? t : !1), n = r;
|
|
1478
1524
|
}
|
|
1479
1525
|
var s = e.nodes && e.nodes.t;
|
|
1480
1526
|
if (s !== null)
|
|
@@ -1482,54 +1528,54 @@ function ri(e, t) {
|
|
|
1482
1528
|
(l.is_global || t) && l.in();
|
|
1483
1529
|
}
|
|
1484
1530
|
}
|
|
1485
|
-
function
|
|
1531
|
+
function oi(e, t) {
|
|
1486
1532
|
if (e.nodes)
|
|
1487
1533
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1488
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1534
|
+
var i = n === r ? null : /* @__PURE__ */ Se(n);
|
|
1489
1535
|
t.append(n), n = i;
|
|
1490
1536
|
}
|
|
1491
1537
|
}
|
|
1492
|
-
let
|
|
1493
|
-
function
|
|
1494
|
-
|
|
1538
|
+
let Zt = !1, Ge = !1;
|
|
1539
|
+
function ir(e) {
|
|
1540
|
+
Ge = e;
|
|
1495
1541
|
}
|
|
1496
|
-
let $ = null,
|
|
1497
|
-
function
|
|
1542
|
+
let $ = null, ve = !1;
|
|
1543
|
+
function ae(e) {
|
|
1498
1544
|
$ = e;
|
|
1499
1545
|
}
|
|
1500
1546
|
let S = null;
|
|
1501
|
-
function
|
|
1547
|
+
function Ee(e) {
|
|
1502
1548
|
S = e;
|
|
1503
1549
|
}
|
|
1504
1550
|
let oe = null;
|
|
1505
|
-
function
|
|
1551
|
+
function ai(e) {
|
|
1506
1552
|
$ !== null && (oe === null ? oe = [e] : oe.push(e));
|
|
1507
1553
|
}
|
|
1508
|
-
let
|
|
1509
|
-
function
|
|
1554
|
+
let Y = null, K = 0, ne = null;
|
|
1555
|
+
function ks(e) {
|
|
1510
1556
|
ne = e;
|
|
1511
1557
|
}
|
|
1512
|
-
let
|
|
1513
|
-
function
|
|
1514
|
-
|
|
1558
|
+
let fi = 1, Xe = 0, lt = Xe;
|
|
1559
|
+
function sr(e) {
|
|
1560
|
+
lt = e;
|
|
1515
1561
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return ++
|
|
1562
|
+
function ui() {
|
|
1563
|
+
return ++fi;
|
|
1518
1564
|
}
|
|
1519
|
-
function
|
|
1565
|
+
function Gt(e) {
|
|
1520
1566
|
var t = e.f;
|
|
1521
|
-
if ((t &
|
|
1567
|
+
if ((t & q) !== 0)
|
|
1522
1568
|
return !0;
|
|
1523
|
-
if (t &
|
|
1569
|
+
if (t & F && (e.f &= ~at), (t & pe) !== 0) {
|
|
1524
1570
|
for (var n = (
|
|
1525
1571
|
/** @type {Value[]} */
|
|
1526
1572
|
e.deps
|
|
1527
1573
|
), r = n.length, i = 0; i < r; i++) {
|
|
1528
1574
|
var s = n[i];
|
|
1529
|
-
if (
|
|
1575
|
+
if (Gt(
|
|
1530
1576
|
/** @type {Derived} */
|
|
1531
1577
|
s
|
|
1532
|
-
) &&
|
|
1578
|
+
) && Ur(
|
|
1533
1579
|
/** @type {Derived} */
|
|
1534
1580
|
s
|
|
1535
1581
|
), s.wv > e.wv)
|
|
@@ -1537,126 +1583,128 @@ function jt(e) {
|
|
|
1537
1583
|
}
|
|
1538
1584
|
(t & le) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1539
1585
|
// traversal of the graph in the other batches still happens
|
|
1540
|
-
|
|
1586
|
+
he === null && R(e, P);
|
|
1541
1587
|
}
|
|
1542
1588
|
return !1;
|
|
1543
1589
|
}
|
|
1544
|
-
function
|
|
1590
|
+
function ci(e, t, n = !0) {
|
|
1545
1591
|
var r = e.reactions;
|
|
1546
1592
|
if (r !== null && !(oe !== null && wt.call(oe, e)))
|
|
1547
1593
|
for (var i = 0; i < r.length; i++) {
|
|
1548
1594
|
var s = r[i];
|
|
1549
|
-
(s.f &
|
|
1595
|
+
(s.f & F) !== 0 ? ci(
|
|
1550
1596
|
/** @type {Derived} */
|
|
1551
1597
|
s,
|
|
1552
1598
|
t,
|
|
1553
1599
|
!1
|
|
1554
|
-
) : t === s && (n ?
|
|
1600
|
+
) : t === s && (n ? R(s, q) : (s.f & P) !== 0 && R(s, pe), de(
|
|
1555
1601
|
/** @type {Effect} */
|
|
1556
1602
|
s
|
|
1557
1603
|
));
|
|
1558
1604
|
}
|
|
1559
1605
|
}
|
|
1560
|
-
function
|
|
1561
|
-
var
|
|
1562
|
-
var t =
|
|
1563
|
-
|
|
1564
|
-
null,
|
|
1565
|
-
e.ac.abort(
|
|
1606
|
+
function hi(e) {
|
|
1607
|
+
var m;
|
|
1608
|
+
var t = Y, n = K, r = ne, i = $, s = oe, l = Z, o = ve, u = lt, f = e.f;
|
|
1609
|
+
Y = /** @type {null | Value[]} */
|
|
1610
|
+
null, K = 0, ne = null, $ = (f & (ge | Ye)) === 0 ? e : null, oe = null, $t(e.ctx), ve = !1, lt = ++Xe, e.ac !== null && (Zr(() => {
|
|
1611
|
+
e.ac.abort(Ke);
|
|
1566
1612
|
}), e.ac = null);
|
|
1567
1613
|
try {
|
|
1568
1614
|
e.f |= wn;
|
|
1569
1615
|
var h = (
|
|
1570
1616
|
/** @type {Function} */
|
|
1571
1617
|
e.fn
|
|
1572
|
-
), v = h()
|
|
1573
|
-
|
|
1618
|
+
), v = h();
|
|
1619
|
+
e.f |= Ct;
|
|
1620
|
+
var d = e.deps, _ = N?.is_fork;
|
|
1621
|
+
if (Y !== null) {
|
|
1574
1622
|
var c;
|
|
1575
|
-
if (
|
|
1576
|
-
for (d.length =
|
|
1577
|
-
d[
|
|
1623
|
+
if (_ || zt(e, K), d !== null && K > 0)
|
|
1624
|
+
for (d.length = K + Y.length, c = 0; c < Y.length; c++)
|
|
1625
|
+
d[K + c] = Y[c];
|
|
1578
1626
|
else
|
|
1579
|
-
e.deps = d =
|
|
1580
|
-
if (
|
|
1581
|
-
for (c =
|
|
1582
|
-
((
|
|
1583
|
-
} else !
|
|
1584
|
-
if (
|
|
1627
|
+
e.deps = d = Y;
|
|
1628
|
+
if (Hn() && (e.f & le) !== 0)
|
|
1629
|
+
for (c = K; c < d.length; c++)
|
|
1630
|
+
((m = d[c]).reactions ?? (m.reactions = [])).push(e);
|
|
1631
|
+
} else !_ && d !== null && K < d.length && (zt(e, K), d.length = K);
|
|
1632
|
+
if (Nr() && ne !== null && !ve && d !== null && (e.f & (F | pe | q)) === 0)
|
|
1585
1633
|
for (c = 0; c < /** @type {Source[]} */
|
|
1586
1634
|
ne.length; c++)
|
|
1587
|
-
|
|
1635
|
+
ci(
|
|
1588
1636
|
ne[c],
|
|
1589
1637
|
/** @type {Effect} */
|
|
1590
1638
|
e
|
|
1591
1639
|
);
|
|
1592
1640
|
if (i !== null && i !== e) {
|
|
1593
|
-
if (
|
|
1641
|
+
if (Xe++, i.deps !== null)
|
|
1594
1642
|
for (let g = 0; g < n; g += 1)
|
|
1595
|
-
i.deps[g].rv =
|
|
1643
|
+
i.deps[g].rv = Xe;
|
|
1596
1644
|
if (t !== null)
|
|
1597
1645
|
for (const g of t)
|
|
1598
|
-
g.rv =
|
|
1646
|
+
g.rv = Xe;
|
|
1599
1647
|
ne !== null && (r === null ? r = ne : r.push(.../** @type {Source[]} */
|
|
1600
1648
|
ne));
|
|
1601
1649
|
}
|
|
1602
|
-
return (e.f &
|
|
1650
|
+
return (e.f & Ve) !== 0 && (e.f ^= Ve), v;
|
|
1603
1651
|
} catch (g) {
|
|
1604
|
-
return
|
|
1652
|
+
return kr(g);
|
|
1605
1653
|
} finally {
|
|
1606
|
-
e.f ^= wn,
|
|
1654
|
+
e.f ^= wn, Y = t, K = n, ne = r, $ = i, oe = s, $t(l), ve = o, lt = u;
|
|
1607
1655
|
}
|
|
1608
1656
|
}
|
|
1609
|
-
function
|
|
1657
|
+
function Rs(e, t) {
|
|
1610
1658
|
let n = t.reactions;
|
|
1611
1659
|
if (n !== null) {
|
|
1612
|
-
var r =
|
|
1660
|
+
var r = Ii.call(n, e);
|
|
1613
1661
|
if (r !== -1) {
|
|
1614
1662
|
var i = n.length - 1;
|
|
1615
1663
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1616
1664
|
}
|
|
1617
1665
|
}
|
|
1618
|
-
if (n === null && (t.f &
|
|
1666
|
+
if (n === null && (t.f & F) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1619
1667
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1620
1668
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1621
|
-
(
|
|
1669
|
+
(Y === null || !wt.call(Y, t))) {
|
|
1622
1670
|
var s = (
|
|
1623
1671
|
/** @type {Derived} */
|
|
1624
1672
|
t
|
|
1625
1673
|
);
|
|
1626
|
-
(s.f & le) !== 0 && (s.f ^= le, s.f &= ~
|
|
1674
|
+
(s.f & le) !== 0 && (s.f ^= le, s.f &= ~at), qn(s), bs(s), zt(s, 0);
|
|
1627
1675
|
}
|
|
1628
1676
|
}
|
|
1629
|
-
function
|
|
1677
|
+
function zt(e, t) {
|
|
1630
1678
|
var n = e.deps;
|
|
1631
1679
|
if (n !== null)
|
|
1632
1680
|
for (var r = t; r < n.length; r++)
|
|
1633
|
-
|
|
1681
|
+
Rs(e, n[r]);
|
|
1634
1682
|
}
|
|
1635
|
-
function
|
|
1683
|
+
function At(e) {
|
|
1636
1684
|
var t = e.f;
|
|
1637
|
-
if ((t &
|
|
1638
|
-
|
|
1639
|
-
var n = S, r =
|
|
1640
|
-
S = e,
|
|
1685
|
+
if ((t & Ie) === 0) {
|
|
1686
|
+
R(e, P);
|
|
1687
|
+
var n = S, r = Zt;
|
|
1688
|
+
S = e, Zt = !0;
|
|
1641
1689
|
try {
|
|
1642
|
-
(t & (
|
|
1643
|
-
var i =
|
|
1644
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1690
|
+
(t & (Pe | $r)) !== 0 ? Ns(e) : Gn(e), ri(e);
|
|
1691
|
+
var i = hi(e);
|
|
1692
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = fi;
|
|
1645
1693
|
var s;
|
|
1646
|
-
bn &&
|
|
1694
|
+
bn && ls && (e.f & q) !== 0 && e.deps;
|
|
1647
1695
|
} finally {
|
|
1648
|
-
|
|
1696
|
+
Zt = r, S = n;
|
|
1649
1697
|
}
|
|
1650
1698
|
}
|
|
1651
1699
|
}
|
|
1652
|
-
function
|
|
1653
|
-
var t = e.f, n = (t &
|
|
1654
|
-
if ($ !== null && !
|
|
1655
|
-
var r = S !== null && (S.f &
|
|
1700
|
+
function p(e) {
|
|
1701
|
+
var t = e.f, n = (t & F) !== 0;
|
|
1702
|
+
if ($ !== null && !ve) {
|
|
1703
|
+
var r = S !== null && (S.f & Ie) !== 0;
|
|
1656
1704
|
if (!r && (oe === null || !wt.call(oe, e))) {
|
|
1657
1705
|
var i = $.deps;
|
|
1658
1706
|
if (($.f & wn) !== 0)
|
|
1659
|
-
e.rv <
|
|
1707
|
+
e.rv < Xe && (e.rv = Xe, Y === null && i !== null && i[K] === e ? K++ : Y === null ? Y = [e] : Y.push(e));
|
|
1660
1708
|
else {
|
|
1661
1709
|
($.deps ?? ($.deps = [])).push(e);
|
|
1662
1710
|
var s = e.reactions;
|
|
@@ -1664,64 +1712,65 @@ function _(e) {
|
|
|
1664
1712
|
}
|
|
1665
1713
|
}
|
|
1666
1714
|
}
|
|
1667
|
-
if (
|
|
1668
|
-
return
|
|
1715
|
+
if (Ge && je.has(e))
|
|
1716
|
+
return je.get(e);
|
|
1669
1717
|
if (n) {
|
|
1670
1718
|
var l = (
|
|
1671
1719
|
/** @type {Derived} */
|
|
1672
1720
|
e
|
|
1673
1721
|
);
|
|
1674
|
-
if (
|
|
1722
|
+
if (Ge) {
|
|
1675
1723
|
var o = l.v;
|
|
1676
|
-
return ((l.f &
|
|
1724
|
+
return ((l.f & P) === 0 && l.reactions !== null || vi(l)) && (o = Bn(l)), je.set(l, o), o;
|
|
1677
1725
|
}
|
|
1678
|
-
var
|
|
1679
|
-
|
|
1726
|
+
var u = (l.f & le) === 0 && !ve && $ !== null && (Zt || ($.f & le) !== 0), f = (l.f & Ct) === 0;
|
|
1727
|
+
Gt(l) && (u && (l.f |= le), Ur(l)), u && !f && (Hr(l), di(l));
|
|
1680
1728
|
}
|
|
1681
|
-
if (
|
|
1682
|
-
return
|
|
1683
|
-
if ((e.f &
|
|
1729
|
+
if (he?.has(e))
|
|
1730
|
+
return he.get(e);
|
|
1731
|
+
if ((e.f & Ve) !== 0)
|
|
1684
1732
|
throw e.v;
|
|
1685
1733
|
return e.v;
|
|
1686
1734
|
}
|
|
1687
|
-
function
|
|
1688
|
-
if (e.deps !== null)
|
|
1689
|
-
e.f |= le;
|
|
1735
|
+
function di(e) {
|
|
1736
|
+
if (e.f |= le, e.deps !== null)
|
|
1690
1737
|
for (const t of e.deps)
|
|
1691
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f &
|
|
1738
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & F) !== 0 && (t.f & le) === 0 && (Hr(
|
|
1692
1739
|
/** @type {Derived} */
|
|
1693
1740
|
t
|
|
1694
|
-
)
|
|
1695
|
-
|
|
1741
|
+
), di(
|
|
1742
|
+
/** @type {Derived} */
|
|
1743
|
+
t
|
|
1744
|
+
));
|
|
1696
1745
|
}
|
|
1697
|
-
function
|
|
1698
|
-
if (e.v ===
|
|
1746
|
+
function vi(e) {
|
|
1747
|
+
if (e.v === z) return !0;
|
|
1699
1748
|
if (e.deps === null) return !1;
|
|
1700
1749
|
for (const t of e.deps)
|
|
1701
|
-
if (
|
|
1750
|
+
if (je.has(t) || (t.f & F) !== 0 && vi(
|
|
1702
1751
|
/** @type {Derived} */
|
|
1703
1752
|
t
|
|
1704
1753
|
))
|
|
1705
1754
|
return !0;
|
|
1706
1755
|
return !1;
|
|
1707
1756
|
}
|
|
1708
|
-
function
|
|
1709
|
-
var t =
|
|
1757
|
+
function ot(e) {
|
|
1758
|
+
var t = ve;
|
|
1710
1759
|
try {
|
|
1711
|
-
return
|
|
1760
|
+
return ve = !0, e();
|
|
1712
1761
|
} finally {
|
|
1713
|
-
|
|
1762
|
+
ve = t;
|
|
1714
1763
|
}
|
|
1715
1764
|
}
|
|
1716
|
-
const
|
|
1717
|
-
function
|
|
1765
|
+
const _i = /* @__PURE__ */ new Set(), On = /* @__PURE__ */ new Set();
|
|
1766
|
+
function pi(e) {
|
|
1718
1767
|
for (var t = 0; t < e.length; t++)
|
|
1719
|
-
|
|
1720
|
-
for (var n of
|
|
1768
|
+
_i.add(e[t]);
|
|
1769
|
+
for (var n of On)
|
|
1721
1770
|
n(e);
|
|
1722
1771
|
}
|
|
1723
|
-
let
|
|
1724
|
-
function
|
|
1772
|
+
let lr = null;
|
|
1773
|
+
function or(e) {
|
|
1725
1774
|
var t = this, n = (
|
|
1726
1775
|
/** @type {Node} */
|
|
1727
1776
|
t.ownerDocument
|
|
@@ -1729,11 +1778,11 @@ function Yt(e) {
|
|
|
1729
1778
|
/** @type {null | Element} */
|
|
1730
1779
|
i[0] || e.target
|
|
1731
1780
|
);
|
|
1732
|
-
|
|
1733
|
-
var l = 0, o =
|
|
1781
|
+
lr = e;
|
|
1782
|
+
var l = 0, o = lr === e && e.__root;
|
|
1734
1783
|
if (o) {
|
|
1735
|
-
var
|
|
1736
|
-
if (
|
|
1784
|
+
var u = i.indexOf(o);
|
|
1785
|
+
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1737
1786
|
window)) {
|
|
1738
1787
|
e.__root = t;
|
|
1739
1788
|
return;
|
|
@@ -1741,52 +1790,65 @@ function Yt(e) {
|
|
|
1741
1790
|
var f = i.indexOf(t);
|
|
1742
1791
|
if (f === -1)
|
|
1743
1792
|
return;
|
|
1744
|
-
|
|
1793
|
+
u <= f && (l = u);
|
|
1745
1794
|
}
|
|
1746
1795
|
if (s = /** @type {Element} */
|
|
1747
1796
|
i[l] || e.target, s !== t) {
|
|
1748
|
-
|
|
1797
|
+
nn(e, "currentTarget", {
|
|
1749
1798
|
configurable: !0,
|
|
1750
1799
|
get() {
|
|
1751
1800
|
return s || n;
|
|
1752
1801
|
}
|
|
1753
1802
|
});
|
|
1754
1803
|
var h = $, v = S;
|
|
1755
|
-
|
|
1804
|
+
ae(null), Ee(null);
|
|
1756
1805
|
try {
|
|
1757
|
-
for (var d,
|
|
1806
|
+
for (var d, _ = []; s !== null; ) {
|
|
1758
1807
|
var c = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
1759
1808
|
s.host || null;
|
|
1760
1809
|
try {
|
|
1761
|
-
var
|
|
1762
|
-
|
|
1810
|
+
var m = s["__" + r];
|
|
1811
|
+
m != null && (!/** @type {any} */
|
|
1763
1812
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1764
1813
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1765
|
-
e.target === s) &&
|
|
1814
|
+
e.target === s) && m.call(s, e);
|
|
1766
1815
|
} catch (g) {
|
|
1767
|
-
d ?
|
|
1816
|
+
d ? _.push(g) : d = g;
|
|
1768
1817
|
}
|
|
1769
1818
|
if (e.cancelBubble || c === t || c === null)
|
|
1770
1819
|
break;
|
|
1771
1820
|
s = c;
|
|
1772
1821
|
}
|
|
1773
1822
|
if (d) {
|
|
1774
|
-
for (let g of
|
|
1823
|
+
for (let g of _)
|
|
1775
1824
|
queueMicrotask(() => {
|
|
1776
1825
|
throw g;
|
|
1777
1826
|
});
|
|
1778
1827
|
throw d;
|
|
1779
1828
|
}
|
|
1780
1829
|
} finally {
|
|
1781
|
-
e.__root = t, delete e.currentTarget,
|
|
1830
|
+
e.__root = t, delete e.currentTarget, ae(h), Ee(v);
|
|
1782
1831
|
}
|
|
1783
1832
|
}
|
|
1784
1833
|
}
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1834
|
+
const Ls = /* @__PURE__ */ globalThis?.window?.trustedTypes?.createPolicy(
|
|
1835
|
+
"svelte-trusted-html",
|
|
1836
|
+
{
|
|
1837
|
+
/** @param {string} html */
|
|
1838
|
+
createHTML: (e) => e
|
|
1839
|
+
}
|
|
1840
|
+
);
|
|
1841
|
+
function Ms(e) {
|
|
1842
|
+
return (
|
|
1843
|
+
/** @type {string} */
|
|
1844
|
+
Ls?.createHTML(e) ?? e
|
|
1845
|
+
);
|
|
1788
1846
|
}
|
|
1789
|
-
function
|
|
1847
|
+
function Is(e, t = !1) {
|
|
1848
|
+
var n = Un("template");
|
|
1849
|
+
return e = e.replaceAll("<!>", "<!---->"), n.innerHTML = t ? Ms(e) : e, n.content;
|
|
1850
|
+
}
|
|
1851
|
+
function Ft(e, t) {
|
|
1790
1852
|
var n = (
|
|
1791
1853
|
/** @type {Effect} */
|
|
1792
1854
|
S
|
|
@@ -1794,33 +1856,33 @@ function Mt(e, t) {
|
|
|
1794
1856
|
n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
|
|
1795
1857
|
}
|
|
1796
1858
|
// @__NO_SIDE_EFFECTS__
|
|
1797
|
-
function
|
|
1798
|
-
var n = (t &
|
|
1859
|
+
function Kn(e, t) {
|
|
1860
|
+
var n = (t & Mi) !== 0, r, i = !e.startsWith("<!>");
|
|
1799
1861
|
return () => {
|
|
1800
1862
|
if (E)
|
|
1801
|
-
return
|
|
1802
|
-
r === void 0 && (r =
|
|
1863
|
+
return Ft(T, null), T;
|
|
1864
|
+
r === void 0 && (r = Is(i ? e : "<!>" + e, !0), r = /** @type {TemplateNode} */
|
|
1803
1865
|
/* @__PURE__ */ St(r));
|
|
1804
1866
|
var s = (
|
|
1805
1867
|
/** @type {TemplateNode} */
|
|
1806
|
-
n ||
|
|
1868
|
+
n || Yr ? document.importNode(r, !0) : r.cloneNode(!0)
|
|
1807
1869
|
);
|
|
1808
|
-
return
|
|
1870
|
+
return Ft(s, s), s;
|
|
1809
1871
|
};
|
|
1810
1872
|
}
|
|
1811
|
-
function
|
|
1873
|
+
function Ds() {
|
|
1812
1874
|
if (E)
|
|
1813
|
-
return
|
|
1814
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1815
|
-
return e.append(t, n),
|
|
1875
|
+
return Ft(T, null), T;
|
|
1876
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = _e();
|
|
1877
|
+
return e.append(t, n), Ft(t, n), e;
|
|
1816
1878
|
}
|
|
1817
|
-
function
|
|
1879
|
+
function It(e, t) {
|
|
1818
1880
|
if (E) {
|
|
1819
1881
|
var n = (
|
|
1820
1882
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1821
1883
|
S
|
|
1822
1884
|
);
|
|
1823
|
-
((n.f &
|
|
1885
|
+
((n.f & Ct) === 0 || n.nodes.end === null) && (n.nodes.end = T), jt();
|
|
1824
1886
|
return;
|
|
1825
1887
|
}
|
|
1826
1888
|
e !== null && e.before(
|
|
@@ -1828,61 +1890,64 @@ function Pt(e, t) {
|
|
|
1828
1890
|
t
|
|
1829
1891
|
);
|
|
1830
1892
|
}
|
|
1831
|
-
const
|
|
1832
|
-
function
|
|
1833
|
-
return
|
|
1893
|
+
const Ps = ["touchstart", "touchmove"];
|
|
1894
|
+
function zs(e) {
|
|
1895
|
+
return Ps.includes(e);
|
|
1834
1896
|
}
|
|
1835
|
-
function
|
|
1897
|
+
function Fs(e, t) {
|
|
1836
1898
|
var n = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1837
1899
|
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = n + "");
|
|
1838
1900
|
}
|
|
1839
|
-
function
|
|
1840
|
-
return
|
|
1901
|
+
function gi(e, t) {
|
|
1902
|
+
return mi(e, t);
|
|
1841
1903
|
}
|
|
1842
|
-
function
|
|
1843
|
-
|
|
1904
|
+
function qs(e, t) {
|
|
1905
|
+
xn(), t.intro = t.intro ?? !1;
|
|
1844
1906
|
const n = t.target, r = E, i = T;
|
|
1845
1907
|
try {
|
|
1846
|
-
for (var s = /* @__PURE__ */ St(n); s && (s.nodeType !==
|
|
1847
|
-
s.data !==
|
|
1848
|
-
s = /* @__PURE__ */
|
|
1908
|
+
for (var s = /* @__PURE__ */ St(n); s && (s.nodeType !== xt || /** @type {Comment} */
|
|
1909
|
+
s.data !== Mn); )
|
|
1910
|
+
s = /* @__PURE__ */ Se(s);
|
|
1849
1911
|
if (!s)
|
|
1850
1912
|
throw bt;
|
|
1851
|
-
|
|
1913
|
+
Me(!0), Q(
|
|
1852
1914
|
/** @type {Comment} */
|
|
1853
1915
|
s
|
|
1854
1916
|
);
|
|
1855
|
-
const l =
|
|
1856
|
-
return
|
|
1917
|
+
const l = mi(e, { ...t, anchor: s });
|
|
1918
|
+
return Me(!1), /** @type {Exports} */
|
|
1857
1919
|
l;
|
|
1858
1920
|
} catch (l) {
|
|
1859
1921
|
if (l instanceof Error && l.message.split(`
|
|
1860
1922
|
`).some((o) => o.startsWith("https://svelte.dev/e/")))
|
|
1861
1923
|
throw l;
|
|
1862
|
-
return l !== bt && console.warn("Failed to hydrate: ", l), t.recover === !1 &&
|
|
1924
|
+
return l !== bt && console.warn("Failed to hydrate: ", l), t.recover === !1 && Ji(), xn(), Xr(n), Me(!1), gi(e, t);
|
|
1863
1925
|
} finally {
|
|
1864
|
-
|
|
1926
|
+
Me(r), Q(i);
|
|
1865
1927
|
}
|
|
1866
1928
|
}
|
|
1867
|
-
const
|
|
1868
|
-
function
|
|
1869
|
-
|
|
1870
|
-
var o = /* @__PURE__ */ new Set(),
|
|
1929
|
+
const Kt = /* @__PURE__ */ new Map();
|
|
1930
|
+
function mi(e, { target: t, anchor: n, props: r = {}, events: i, context: s, intro: l = !0 }) {
|
|
1931
|
+
xn();
|
|
1932
|
+
var o = /* @__PURE__ */ new Set(), u = (v) => {
|
|
1871
1933
|
for (var d = 0; d < v.length; d++) {
|
|
1872
|
-
var
|
|
1873
|
-
if (!o.has(
|
|
1874
|
-
o.add(
|
|
1875
|
-
var c =
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1934
|
+
var _ = v[d];
|
|
1935
|
+
if (!o.has(_)) {
|
|
1936
|
+
o.add(_);
|
|
1937
|
+
var c = zs(_);
|
|
1938
|
+
for (const O of [t, document]) {
|
|
1939
|
+
var m = Kt.get(O);
|
|
1940
|
+
m === void 0 && (m = /* @__PURE__ */ new Map(), Kt.set(O, m));
|
|
1941
|
+
var g = m.get(_);
|
|
1942
|
+
g === void 0 ? (O.addEventListener(_, or, { passive: c }), m.set(_, 1)) : m.set(_, g + 1);
|
|
1943
|
+
}
|
|
1879
1944
|
}
|
|
1880
1945
|
}
|
|
1881
1946
|
};
|
|
1882
|
-
|
|
1883
|
-
var f = void 0, h =
|
|
1884
|
-
var v = n ?? t.appendChild(
|
|
1885
|
-
return
|
|
1947
|
+
u(an(_i)), On.add(u);
|
|
1948
|
+
var f = void 0, h = Cs(() => {
|
|
1949
|
+
var v = n ?? t.appendChild(_e());
|
|
1950
|
+
return hs(
|
|
1886
1951
|
/** @type {TemplateNode} */
|
|
1887
1952
|
v,
|
|
1888
1953
|
{
|
|
@@ -1890,53 +1955,53 @@ function _i(e, { target: t, anchor: n, props: r = {}, events: i, context: s, int
|
|
|
1890
1955
|
}
|
|
1891
1956
|
},
|
|
1892
1957
|
(d) => {
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
p.c = s;
|
|
1900
|
-
}
|
|
1901
|
-
if (i && (r.$$events = i), E && Mt(
|
|
1958
|
+
zn({});
|
|
1959
|
+
var _ = (
|
|
1960
|
+
/** @type {ComponentContext} */
|
|
1961
|
+
Z
|
|
1962
|
+
);
|
|
1963
|
+
if (s && (_.c = s), i && (r.$$events = i), E && Ft(
|
|
1902
1964
|
/** @type {TemplateNode} */
|
|
1903
1965
|
d,
|
|
1904
1966
|
null
|
|
1905
|
-
), f = e(d, r) || {}, E && (S.nodes.end = T, T === null || T.nodeType !==
|
|
1906
|
-
T.data !==
|
|
1907
|
-
throw
|
|
1908
|
-
|
|
1967
|
+
), f = e(d, r) || {}, E && (S.nodes.end = T, T === null || T.nodeType !== xt || /** @type {Comment} */
|
|
1968
|
+
T.data !== In))
|
|
1969
|
+
throw un(), bt;
|
|
1970
|
+
Fn();
|
|
1909
1971
|
}
|
|
1910
1972
|
), () => {
|
|
1911
|
-
for (var d of o)
|
|
1912
|
-
t
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1973
|
+
for (var d of o)
|
|
1974
|
+
for (const m of [t, document]) {
|
|
1975
|
+
var _ = (
|
|
1976
|
+
/** @type {Map<string, number>} */
|
|
1977
|
+
Kt.get(m)
|
|
1978
|
+
), c = (
|
|
1979
|
+
/** @type {number} */
|
|
1980
|
+
_.get(d)
|
|
1981
|
+
);
|
|
1982
|
+
--c == 0 ? (m.removeEventListener(d, or), _.delete(d), _.size === 0 && Kt.delete(m)) : _.set(d, c);
|
|
1983
|
+
}
|
|
1984
|
+
On.delete(u), v !== n && v.parentNode?.removeChild(v);
|
|
1920
1985
|
};
|
|
1921
1986
|
});
|
|
1922
|
-
return
|
|
1987
|
+
return kn.set(f, h), f;
|
|
1923
1988
|
}
|
|
1924
|
-
let
|
|
1925
|
-
function
|
|
1926
|
-
const n =
|
|
1927
|
-
return n ? (
|
|
1989
|
+
let kn = /* @__PURE__ */ new WeakMap();
|
|
1990
|
+
function Bs(e, t) {
|
|
1991
|
+
const n = kn.get(e);
|
|
1992
|
+
return n ? (kn.delete(e), n(t)) : Promise.resolve();
|
|
1928
1993
|
}
|
|
1929
|
-
var
|
|
1930
|
-
class
|
|
1994
|
+
var ue, $e, X, nt, Ht, Vt, ln;
|
|
1995
|
+
class Us {
|
|
1931
1996
|
/**
|
|
1932
1997
|
* @param {TemplateNode} anchor
|
|
1933
1998
|
* @param {boolean} transition
|
|
1934
1999
|
*/
|
|
1935
2000
|
constructor(t, n = !0) {
|
|
1936
2001
|
/** @type {TemplateNode} */
|
|
1937
|
-
|
|
2002
|
+
k(this, "anchor");
|
|
1938
2003
|
/** @type {Map<Batch, Key>} */
|
|
1939
|
-
y(this,
|
|
2004
|
+
y(this, ue, /* @__PURE__ */ new Map());
|
|
1940
2005
|
/**
|
|
1941
2006
|
* Map of keys to effects that are currently rendered in the DOM.
|
|
1942
2007
|
* These effects are visible and actively part of the document tree.
|
|
@@ -1951,69 +2016,69 @@ class Ps {
|
|
|
1951
2016
|
* Can result in the entries `true->Effect` and `false->Effect`
|
|
1952
2017
|
* @type {Map<Key, Effect>}
|
|
1953
2018
|
*/
|
|
1954
|
-
y(this,
|
|
2019
|
+
y(this, $e, /* @__PURE__ */ new Map());
|
|
1955
2020
|
/**
|
|
1956
2021
|
* Similar to #onscreen with respect to the keys, but contains branches that are not yet
|
|
1957
2022
|
* in the DOM, because their insertion is deferred.
|
|
1958
2023
|
* @type {Map<Key, Branch>}
|
|
1959
2024
|
*/
|
|
1960
|
-
y(this,
|
|
2025
|
+
y(this, X, /* @__PURE__ */ new Map());
|
|
1961
2026
|
/**
|
|
1962
2027
|
* Keys of effects that are currently outroing
|
|
1963
2028
|
* @type {Set<Key>}
|
|
1964
2029
|
*/
|
|
1965
|
-
y(this,
|
|
2030
|
+
y(this, nt, /* @__PURE__ */ new Set());
|
|
1966
2031
|
/**
|
|
1967
2032
|
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
1968
2033
|
* This is necessary for `<svelte:element>`
|
|
1969
2034
|
*/
|
|
1970
|
-
y(this,
|
|
1971
|
-
y(this,
|
|
2035
|
+
y(this, Ht, !0);
|
|
2036
|
+
y(this, Vt, () => {
|
|
1972
2037
|
var t = (
|
|
1973
2038
|
/** @type {Batch} */
|
|
1974
|
-
|
|
2039
|
+
N
|
|
1975
2040
|
);
|
|
1976
|
-
if (
|
|
2041
|
+
if (a(this, ue).has(t)) {
|
|
1977
2042
|
var n = (
|
|
1978
2043
|
/** @type {Key} */
|
|
1979
|
-
|
|
1980
|
-
), r =
|
|
2044
|
+
a(this, ue).get(t)
|
|
2045
|
+
), r = a(this, $e).get(n);
|
|
1981
2046
|
if (r)
|
|
1982
|
-
Yn(r),
|
|
2047
|
+
Yn(r), a(this, nt).delete(n);
|
|
1983
2048
|
else {
|
|
1984
|
-
var i =
|
|
1985
|
-
i && (
|
|
2049
|
+
var i = a(this, X).get(n);
|
|
2050
|
+
i && (a(this, $e).set(n, i.effect), a(this, X).delete(n), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), r = i.effect);
|
|
1986
2051
|
}
|
|
1987
|
-
for (const [s, l] of
|
|
1988
|
-
if (
|
|
2052
|
+
for (const [s, l] of a(this, ue)) {
|
|
2053
|
+
if (a(this, ue).delete(s), s === t)
|
|
1989
2054
|
break;
|
|
1990
|
-
const o =
|
|
1991
|
-
o && (
|
|
2055
|
+
const o = a(this, X).get(l);
|
|
2056
|
+
o && (H(o.effect), a(this, X).delete(l));
|
|
1992
2057
|
}
|
|
1993
|
-
for (const [s, l] of
|
|
1994
|
-
if (s === n ||
|
|
2058
|
+
for (const [s, l] of a(this, $e)) {
|
|
2059
|
+
if (s === n || a(this, nt).has(s)) continue;
|
|
1995
2060
|
const o = () => {
|
|
1996
|
-
if (Array.from(
|
|
2061
|
+
if (Array.from(a(this, ue).values()).includes(s)) {
|
|
1997
2062
|
var f = document.createDocumentFragment();
|
|
1998
|
-
|
|
2063
|
+
oi(l, f), f.append(_e()), a(this, X).set(s, { effect: l, fragment: f });
|
|
1999
2064
|
} else
|
|
2000
|
-
|
|
2001
|
-
|
|
2065
|
+
H(l);
|
|
2066
|
+
a(this, nt).delete(s), a(this, $e).delete(s);
|
|
2002
2067
|
};
|
|
2003
|
-
|
|
2068
|
+
a(this, Ht) || !r ? (a(this, nt).add(s), st(l, o, !1)) : o();
|
|
2004
2069
|
}
|
|
2005
2070
|
}
|
|
2006
2071
|
});
|
|
2007
2072
|
/**
|
|
2008
2073
|
* @param {Batch} batch
|
|
2009
2074
|
*/
|
|
2010
|
-
y(this,
|
|
2011
|
-
|
|
2012
|
-
const n = Array.from(
|
|
2013
|
-
for (const [r, i] of
|
|
2014
|
-
n.includes(r) || (
|
|
2075
|
+
y(this, ln, (t) => {
|
|
2076
|
+
a(this, ue).delete(t);
|
|
2077
|
+
const n = Array.from(a(this, ue).values());
|
|
2078
|
+
for (const [r, i] of a(this, X))
|
|
2079
|
+
n.includes(r) || (H(i.effect), a(this, X).delete(r));
|
|
2015
2080
|
});
|
|
2016
|
-
this.anchor = t,
|
|
2081
|
+
this.anchor = t, b(this, Ht, n);
|
|
2017
2082
|
}
|
|
2018
2083
|
/**
|
|
2019
2084
|
*
|
|
@@ -2023,68 +2088,69 @@ class Ps {
|
|
|
2023
2088
|
ensure(t, n) {
|
|
2024
2089
|
var r = (
|
|
2025
2090
|
/** @type {Batch} */
|
|
2026
|
-
|
|
2027
|
-
), i =
|
|
2028
|
-
if (n && !
|
|
2091
|
+
N
|
|
2092
|
+
), i = Jr();
|
|
2093
|
+
if (n && !a(this, $e).has(t) && !a(this, X).has(t))
|
|
2029
2094
|
if (i) {
|
|
2030
|
-
var s = document.createDocumentFragment(), l =
|
|
2031
|
-
s.append(l),
|
|
2095
|
+
var s = document.createDocumentFragment(), l = _e();
|
|
2096
|
+
s.append(l), a(this, X).set(t, {
|
|
2032
2097
|
effect: se(() => n(l)),
|
|
2033
2098
|
fragment: s
|
|
2034
2099
|
});
|
|
2035
2100
|
} else
|
|
2036
|
-
|
|
2101
|
+
a(this, $e).set(
|
|
2037
2102
|
t,
|
|
2038
2103
|
se(() => n(this.anchor))
|
|
2039
2104
|
);
|
|
2040
|
-
if (
|
|
2041
|
-
for (const [o,
|
|
2042
|
-
o === t ? r.
|
|
2043
|
-
for (const [o,
|
|
2044
|
-
o === t ? r.
|
|
2045
|
-
r.oncommit(
|
|
2105
|
+
if (a(this, ue).set(r, t), i) {
|
|
2106
|
+
for (const [o, u] of a(this, $e))
|
|
2107
|
+
o === t ? r.unskip_effect(u) : r.skip_effect(u);
|
|
2108
|
+
for (const [o, u] of a(this, X))
|
|
2109
|
+
o === t ? r.unskip_effect(u.effect) : r.skip_effect(u.effect);
|
|
2110
|
+
r.oncommit(a(this, Vt)), r.ondiscard(a(this, ln));
|
|
2046
2111
|
} else
|
|
2047
|
-
E && (this.anchor = T),
|
|
2112
|
+
E && (this.anchor = T), a(this, Vt).call(this);
|
|
2048
2113
|
}
|
|
2049
2114
|
}
|
|
2050
|
-
|
|
2051
|
-
function
|
|
2052
|
-
Z === null &&
|
|
2053
|
-
const t =
|
|
2115
|
+
ue = new WeakMap(), $e = new WeakMap(), X = new WeakMap(), nt = new WeakMap(), Ht = new WeakMap(), Vt = new WeakMap(), ln = new WeakMap();
|
|
2116
|
+
function Hs(e) {
|
|
2117
|
+
Z === null && Vi(), Pt(() => {
|
|
2118
|
+
const t = ot(e);
|
|
2054
2119
|
if (typeof t == "function") return (
|
|
2055
2120
|
/** @type {() => void} */
|
|
2056
2121
|
t
|
|
2057
2122
|
);
|
|
2058
2123
|
});
|
|
2059
2124
|
}
|
|
2060
|
-
function
|
|
2061
|
-
E &&
|
|
2062
|
-
var r = new
|
|
2125
|
+
function Vs(e, t, n = !1) {
|
|
2126
|
+
E && jt();
|
|
2127
|
+
var r = new Us(e), i = n ? yt : 0;
|
|
2063
2128
|
function s(l, o) {
|
|
2064
2129
|
if (E) {
|
|
2065
|
-
const
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2130
|
+
const h = Ar(e);
|
|
2131
|
+
var u;
|
|
2132
|
+
if (h === Mn ? u = 0 : h === on ? u = !1 : u = parseInt(h.substring(1)), l !== u) {
|
|
2133
|
+
var f = rn();
|
|
2134
|
+
Q(f), r.anchor = f, Me(!1), r.ensure(l, o), Me(!0);
|
|
2069
2135
|
return;
|
|
2070
2136
|
}
|
|
2071
2137
|
}
|
|
2072
2138
|
r.ensure(l, o);
|
|
2073
2139
|
}
|
|
2074
|
-
|
|
2140
|
+
jn(() => {
|
|
2075
2141
|
var l = !1;
|
|
2076
|
-
t((o,
|
|
2077
|
-
l = !0, s(
|
|
2142
|
+
t((o, u = 0) => {
|
|
2143
|
+
l = !0, s(u, o);
|
|
2078
2144
|
}), l || s(!1, null);
|
|
2079
2145
|
}, i);
|
|
2080
2146
|
}
|
|
2081
|
-
function
|
|
2147
|
+
function js(e, t) {
|
|
2082
2148
|
return t;
|
|
2083
2149
|
}
|
|
2084
|
-
function
|
|
2150
|
+
function Gs(e, t, n) {
|
|
2085
2151
|
for (var r = [], i = t.length, s, l = t.length, o = 0; o < i; o++) {
|
|
2086
2152
|
let v = t[o];
|
|
2087
|
-
|
|
2153
|
+
st(
|
|
2088
2154
|
v,
|
|
2089
2155
|
() => {
|
|
2090
2156
|
if (s) {
|
|
@@ -2093,7 +2159,7 @@ function Ds(e, t, n) {
|
|
|
2093
2159
|
/** @type {Set<EachOutroGroup>} */
|
|
2094
2160
|
e.outrogroups
|
|
2095
2161
|
);
|
|
2096
|
-
|
|
2162
|
+
Rn(an(s.done)), d.delete(s), d.size === 0 && (e.outrogroups = null);
|
|
2097
2163
|
}
|
|
2098
2164
|
} else
|
|
2099
2165
|
l -= 1;
|
|
@@ -2102,8 +2168,8 @@ function Ds(e, t, n) {
|
|
|
2102
2168
|
);
|
|
2103
2169
|
}
|
|
2104
2170
|
if (l === 0) {
|
|
2105
|
-
var
|
|
2106
|
-
if (
|
|
2171
|
+
var u = r.length === 0 && n !== null;
|
|
2172
|
+
if (u) {
|
|
2107
2173
|
var f = (
|
|
2108
2174
|
/** @type {Element} */
|
|
2109
2175
|
n
|
|
@@ -2111,151 +2177,151 @@ function Ds(e, t, n) {
|
|
|
2111
2177
|
/** @type {Element} */
|
|
2112
2178
|
f.parentNode
|
|
2113
2179
|
);
|
|
2114
|
-
|
|
2180
|
+
Xr(h), h.append(f), e.items.clear();
|
|
2115
2181
|
}
|
|
2116
|
-
|
|
2182
|
+
Rn(t, !u);
|
|
2117
2183
|
} else
|
|
2118
2184
|
s = {
|
|
2119
2185
|
pending: new Set(t),
|
|
2120
2186
|
done: /* @__PURE__ */ new Set()
|
|
2121
2187
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
|
|
2122
2188
|
}
|
|
2123
|
-
function
|
|
2189
|
+
function Rn(e, t = !0) {
|
|
2124
2190
|
for (var n = 0; n < e.length; n++)
|
|
2125
|
-
|
|
2191
|
+
H(e[n], t);
|
|
2126
2192
|
}
|
|
2127
|
-
var
|
|
2128
|
-
function
|
|
2193
|
+
var ar;
|
|
2194
|
+
function Ys(e, t, n, r, i, s = null) {
|
|
2129
2195
|
var l = e, o = /* @__PURE__ */ new Map();
|
|
2130
2196
|
{
|
|
2131
|
-
var
|
|
2197
|
+
var u = (
|
|
2132
2198
|
/** @type {Element} */
|
|
2133
2199
|
e
|
|
2134
2200
|
);
|
|
2135
|
-
l = E ? Q(/* @__PURE__ */ St(
|
|
2201
|
+
l = E ? Q(/* @__PURE__ */ St(u)) : u.appendChild(_e());
|
|
2136
2202
|
}
|
|
2137
|
-
E &&
|
|
2138
|
-
var f = null, h = /* @__PURE__ */
|
|
2203
|
+
E && jt();
|
|
2204
|
+
var f = null, h = /* @__PURE__ */ Br(() => {
|
|
2139
2205
|
var g = n();
|
|
2140
|
-
return
|
|
2206
|
+
return br(g) ? g : g == null ? [] : an(g);
|
|
2141
2207
|
}), v, d = !0;
|
|
2142
|
-
function
|
|
2143
|
-
|
|
2208
|
+
function _() {
|
|
2209
|
+
m.fallback = f, Ks(m, v, l, t, r), f !== null && (v.length === 0 ? (f.f & Ue) === 0 ? Yn(f) : (f.f ^= Ue, kt(f, null, l)) : st(f, () => {
|
|
2144
2210
|
f = null;
|
|
2145
2211
|
}));
|
|
2146
2212
|
}
|
|
2147
|
-
var c =
|
|
2213
|
+
var c = jn(() => {
|
|
2148
2214
|
v = /** @type {V[]} */
|
|
2149
|
-
|
|
2215
|
+
p(h);
|
|
2150
2216
|
var g = v.length;
|
|
2151
|
-
let
|
|
2217
|
+
let O = !1;
|
|
2152
2218
|
if (E) {
|
|
2153
|
-
var A =
|
|
2154
|
-
A !== (g === 0) && (l =
|
|
2219
|
+
var A = Ar(l) === on;
|
|
2220
|
+
A !== (g === 0) && (l = rn(), Q(l), Me(!1), O = !0);
|
|
2155
2221
|
}
|
|
2156
|
-
for (var
|
|
2222
|
+
for (var L = /* @__PURE__ */ new Set(), x = (
|
|
2157
2223
|
/** @type {Batch} */
|
|
2158
|
-
|
|
2159
|
-
), ee =
|
|
2160
|
-
E && T.nodeType ===
|
|
2161
|
-
T.data ===
|
|
2162
|
-
T,
|
|
2163
|
-
var
|
|
2164
|
-
|
|
2224
|
+
N
|
|
2225
|
+
), ee = Jr(), B = 0; B < g; B += 1) {
|
|
2226
|
+
E && T.nodeType === xt && /** @type {Comment} */
|
|
2227
|
+
T.data === In && (l = /** @type {Comment} */
|
|
2228
|
+
T, O = !0, Me(!1));
|
|
2229
|
+
var Ce = v[B], V = r(Ce, B), fe = d ? null : o.get(V);
|
|
2230
|
+
fe ? (fe.v && Tt(fe.v, Ce), fe.i && Tt(fe.i, B), ee && x.unskip_effect(fe.e)) : (fe = Ws(
|
|
2165
2231
|
o,
|
|
2166
|
-
d ? l :
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2232
|
+
d ? l : ar ?? (ar = _e()),
|
|
2233
|
+
Ce,
|
|
2234
|
+
V,
|
|
2235
|
+
B,
|
|
2170
2236
|
i,
|
|
2171
2237
|
t,
|
|
2172
2238
|
n
|
|
2173
|
-
), d || (
|
|
2239
|
+
), d || (fe.e.f |= Ue), o.set(V, fe)), L.add(V);
|
|
2174
2240
|
}
|
|
2175
|
-
if (g === 0 && s && !f && (d ? f = se(() => s(l)) : (f = se(() => s(
|
|
2241
|
+
if (g === 0 && s && !f && (d ? f = se(() => s(l)) : (f = se(() => s(ar ?? (ar = _e()))), f.f |= Ue)), g > L.size && Gi(), E && g > 0 && Q(rn()), !d)
|
|
2176
2242
|
if (ee) {
|
|
2177
|
-
for (const [
|
|
2178
|
-
|
|
2179
|
-
|
|
2243
|
+
for (const [dn, vn] of o)
|
|
2244
|
+
L.has(dn) || x.skip_effect(vn.e);
|
|
2245
|
+
x.oncommit(_), x.ondiscard(() => {
|
|
2180
2246
|
});
|
|
2181
2247
|
} else
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
}),
|
|
2248
|
+
_();
|
|
2249
|
+
O && Me(!0), p(h);
|
|
2250
|
+
}), m = { effect: c, items: o, outrogroups: null, fallback: f };
|
|
2185
2251
|
d = !1, E && (l = T);
|
|
2186
2252
|
}
|
|
2187
|
-
function
|
|
2188
|
-
for (; e !== null && (e.f &
|
|
2253
|
+
function Ot(e) {
|
|
2254
|
+
for (; e !== null && (e.f & ge) === 0; )
|
|
2189
2255
|
e = e.next;
|
|
2190
2256
|
return e;
|
|
2191
2257
|
}
|
|
2192
|
-
function
|
|
2193
|
-
var s = t.length, l = e.items, o =
|
|
2194
|
-
for (
|
|
2195
|
-
if (d = t[
|
|
2196
|
-
l.get(
|
|
2197
|
-
for (const
|
|
2198
|
-
|
|
2258
|
+
function Ks(e, t, n, r, i) {
|
|
2259
|
+
var s = t.length, l = e.items, o = Ot(e.effect.first), u, f = null, h = [], v = [], d, _, c, m;
|
|
2260
|
+
for (m = 0; m < s; m += 1) {
|
|
2261
|
+
if (d = t[m], _ = i(d, m), c = /** @type {EachItem} */
|
|
2262
|
+
l.get(_).e, e.outrogroups !== null)
|
|
2263
|
+
for (const V of e.outrogroups)
|
|
2264
|
+
V.pending.delete(c), V.done.delete(c);
|
|
2199
2265
|
if ((c.f & Ue) !== 0)
|
|
2200
2266
|
if (c.f ^= Ue, c === o)
|
|
2201
|
-
|
|
2267
|
+
kt(c, null, n);
|
|
2202
2268
|
else {
|
|
2203
2269
|
var g = f ? f.next : o;
|
|
2204
|
-
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev), qe(e, f, c), qe(e, c, g),
|
|
2270
|
+
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev), qe(e, f, c), qe(e, c, g), kt(c, g, n), f = c, h = [], v = [], o = Ot(f.next);
|
|
2205
2271
|
continue;
|
|
2206
2272
|
}
|
|
2207
2273
|
if ((c.f & J) !== 0 && Yn(c), c !== o) {
|
|
2208
|
-
if (
|
|
2274
|
+
if (u !== void 0 && u.has(c)) {
|
|
2209
2275
|
if (h.length < v.length) {
|
|
2210
|
-
var
|
|
2211
|
-
f =
|
|
2212
|
-
var
|
|
2276
|
+
var O = v[0], A;
|
|
2277
|
+
f = O.prev;
|
|
2278
|
+
var L = h[0], x = h[h.length - 1];
|
|
2213
2279
|
for (A = 0; A < h.length; A += 1)
|
|
2214
|
-
|
|
2280
|
+
kt(h[A], O, n);
|
|
2215
2281
|
for (A = 0; A < v.length; A += 1)
|
|
2216
|
-
|
|
2217
|
-
qe(e,
|
|
2282
|
+
u.delete(v[A]);
|
|
2283
|
+
qe(e, L.prev, x.next), qe(e, f, L), qe(e, x, O), o = O, f = x, m -= 1, h = [], v = [];
|
|
2218
2284
|
} else
|
|
2219
|
-
|
|
2285
|
+
u.delete(c), kt(c, o, n), qe(e, c.prev, c.next), qe(e, c, f === null ? e.effect.first : f.next), qe(e, f, c), f = c;
|
|
2220
2286
|
continue;
|
|
2221
2287
|
}
|
|
2222
2288
|
for (h = [], v = []; o !== null && o !== c; )
|
|
2223
|
-
(
|
|
2289
|
+
(u ?? (u = /* @__PURE__ */ new Set())).add(o), v.push(o), o = Ot(o.next);
|
|
2224
2290
|
if (o === null)
|
|
2225
2291
|
continue;
|
|
2226
2292
|
}
|
|
2227
|
-
(c.f & Ue) === 0 && h.push(c), f = c, o =
|
|
2293
|
+
(c.f & Ue) === 0 && h.push(c), f = c, o = Ot(c.next);
|
|
2228
2294
|
}
|
|
2229
2295
|
if (e.outrogroups !== null) {
|
|
2230
|
-
for (const
|
|
2231
|
-
|
|
2296
|
+
for (const V of e.outrogroups)
|
|
2297
|
+
V.pending.size === 0 && (Rn(an(V.done)), e.outrogroups?.delete(V));
|
|
2232
2298
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2233
2299
|
}
|
|
2234
|
-
if (o !== null ||
|
|
2300
|
+
if (o !== null || u !== void 0) {
|
|
2235
2301
|
var ee = [];
|
|
2236
|
-
if (
|
|
2237
|
-
for (c of
|
|
2302
|
+
if (u !== void 0)
|
|
2303
|
+
for (c of u)
|
|
2238
2304
|
(c.f & J) === 0 && ee.push(c);
|
|
2239
2305
|
for (; o !== null; )
|
|
2240
|
-
(o.f & J) === 0 && o !== e.fallback && ee.push(o), o =
|
|
2241
|
-
var
|
|
2242
|
-
if (
|
|
2243
|
-
var
|
|
2244
|
-
|
|
2306
|
+
(o.f & J) === 0 && o !== e.fallback && ee.push(o), o = Ot(o.next);
|
|
2307
|
+
var B = ee.length;
|
|
2308
|
+
if (B > 0) {
|
|
2309
|
+
var Ce = s === 0 ? n : null;
|
|
2310
|
+
Gs(e, ee, Ce);
|
|
2245
2311
|
}
|
|
2246
2312
|
}
|
|
2247
2313
|
}
|
|
2248
|
-
function
|
|
2249
|
-
var
|
|
2314
|
+
function Ws(e, t, n, r, i, s, l, o) {
|
|
2315
|
+
var u = (l & Ci) !== 0 ? (l & Ni) === 0 ? /* @__PURE__ */ jr(n, !1, !1) : ft(n) : null, f = (l & xi) !== 0 ? ft(i) : null;
|
|
2250
2316
|
return {
|
|
2251
|
-
v:
|
|
2317
|
+
v: u,
|
|
2252
2318
|
i: f,
|
|
2253
|
-
e: se(() => (s(t,
|
|
2319
|
+
e: se(() => (s(t, u ?? n, f ?? i, o), () => {
|
|
2254
2320
|
e.delete(r);
|
|
2255
2321
|
}))
|
|
2256
2322
|
};
|
|
2257
2323
|
}
|
|
2258
|
-
function
|
|
2324
|
+
function kt(e, t, n) {
|
|
2259
2325
|
if (e.nodes)
|
|
2260
2326
|
for (var r = e.nodes.start, i = e.nodes.end, s = t && (t.f & Ue) === 0 ? (
|
|
2261
2327
|
/** @type {EffectNodes} */
|
|
@@ -2263,7 +2329,7 @@ function xt(e, t, n) {
|
|
|
2263
2329
|
) : n; r !== null; ) {
|
|
2264
2330
|
var l = (
|
|
2265
2331
|
/** @type {TemplateNode} */
|
|
2266
|
-
/* @__PURE__ */
|
|
2332
|
+
/* @__PURE__ */ Se(r)
|
|
2267
2333
|
);
|
|
2268
2334
|
if (s.before(r), r === i)
|
|
2269
2335
|
return;
|
|
@@ -2273,13 +2339,13 @@ function xt(e, t, n) {
|
|
|
2273
2339
|
function qe(e, t, n) {
|
|
2274
2340
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2275
2341
|
}
|
|
2276
|
-
function
|
|
2277
|
-
E &&
|
|
2342
|
+
function Xs(e, t, n, r, i) {
|
|
2343
|
+
E && jt();
|
|
2278
2344
|
var s = t.$$slots?.[n], l = !1;
|
|
2279
2345
|
s === !0 && (s = t.children, l = !0), s === void 0 || s(e, l ? () => r : r);
|
|
2280
2346
|
}
|
|
2281
|
-
function
|
|
2282
|
-
|
|
2347
|
+
function bi(e, t) {
|
|
2348
|
+
ti(() => {
|
|
2283
2349
|
var n = e.getRootNode(), r = (
|
|
2284
2350
|
/** @type {ShadowRoot} */
|
|
2285
2351
|
n.host ? (
|
|
@@ -2292,14 +2358,14 @@ function pi(e, t) {
|
|
|
2292
2358
|
)
|
|
2293
2359
|
);
|
|
2294
2360
|
if (!r.querySelector("#" + t.hash)) {
|
|
2295
|
-
const i =
|
|
2361
|
+
const i = Un("style");
|
|
2296
2362
|
i.id = t.hash, i.textContent = t.code, r.appendChild(i);
|
|
2297
2363
|
}
|
|
2298
2364
|
});
|
|
2299
2365
|
}
|
|
2300
|
-
const
|
|
2366
|
+
const fr = [...`
|
|
2301
2367
|
\r\f \v\uFEFF`];
|
|
2302
|
-
function
|
|
2368
|
+
function Js(e, t, n) {
|
|
2303
2369
|
var r = "" + e;
|
|
2304
2370
|
if (n) {
|
|
2305
2371
|
for (var i in n)
|
|
@@ -2308,93 +2374,93 @@ function Bs(e, t, n) {
|
|
|
2308
2374
|
else if (r.length)
|
|
2309
2375
|
for (var s = i.length, l = 0; (l = r.indexOf(i, l)) >= 0; ) {
|
|
2310
2376
|
var o = l + s;
|
|
2311
|
-
(l === 0 ||
|
|
2377
|
+
(l === 0 || fr.includes(r[l - 1])) && (o === r.length || fr.includes(r[o])) ? r = (l === 0 ? "" : r.substring(0, l)) + r.substring(o + 1) : l = o;
|
|
2312
2378
|
}
|
|
2313
2379
|
}
|
|
2314
2380
|
return r === "" ? null : r;
|
|
2315
2381
|
}
|
|
2316
|
-
function
|
|
2382
|
+
function Qs(e, t) {
|
|
2317
2383
|
return e == null ? null : String(e);
|
|
2318
2384
|
}
|
|
2319
|
-
function
|
|
2385
|
+
function Zs(e, t, n, r, i, s) {
|
|
2320
2386
|
var l = e.__className;
|
|
2321
2387
|
if (E || l !== n || l === void 0) {
|
|
2322
|
-
var o =
|
|
2388
|
+
var o = Js(n, r, s);
|
|
2323
2389
|
(!E || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e.__className = n;
|
|
2324
2390
|
} else if (s && i !== s)
|
|
2325
|
-
for (var
|
|
2326
|
-
var f = !!s[
|
|
2327
|
-
(i == null || f !== !!i[
|
|
2391
|
+
for (var u in s) {
|
|
2392
|
+
var f = !!s[u];
|
|
2393
|
+
(i == null || f !== !!i[u]) && e.classList.toggle(u, f);
|
|
2328
2394
|
}
|
|
2329
2395
|
return s;
|
|
2330
2396
|
}
|
|
2331
|
-
function
|
|
2397
|
+
function ur(e, t, n, r) {
|
|
2332
2398
|
var i = e.__style;
|
|
2333
2399
|
if (E || i !== t) {
|
|
2334
|
-
var s =
|
|
2400
|
+
var s = Qs(t);
|
|
2335
2401
|
(!E || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e.__style = t;
|
|
2336
2402
|
}
|
|
2337
2403
|
return r;
|
|
2338
2404
|
}
|
|
2339
|
-
const
|
|
2405
|
+
const el = /* @__PURE__ */ Symbol("is custom element"), tl = /* @__PURE__ */ Symbol("is html"), nl = Hi ? "link" : "LINK";
|
|
2340
2406
|
function mn(e, t, n, r) {
|
|
2341
|
-
var i =
|
|
2342
|
-
E && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2407
|
+
var i = rl(e);
|
|
2408
|
+
E && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === nl) || i[t] !== (i[t] = n) && (t === "loading" && (e[Ui] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && il(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2343
2409
|
}
|
|
2344
|
-
function
|
|
2410
|
+
function rl(e) {
|
|
2345
2411
|
return (
|
|
2346
2412
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2347
2413
|
// @ts-expect-error
|
|
2348
2414
|
e.__attributes ?? (e.__attributes = {
|
|
2349
|
-
[
|
|
2350
|
-
[
|
|
2415
|
+
[el]: e.nodeName.includes("-"),
|
|
2416
|
+
[tl]: e.namespaceURI === mr
|
|
2351
2417
|
})
|
|
2352
2418
|
);
|
|
2353
2419
|
}
|
|
2354
|
-
var
|
|
2355
|
-
function
|
|
2356
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2420
|
+
var cr = /* @__PURE__ */ new Map();
|
|
2421
|
+
function il(e) {
|
|
2422
|
+
var t = e.getAttribute("is") || e.nodeName, n = cr.get(t);
|
|
2357
2423
|
if (n) return n;
|
|
2358
|
-
|
|
2424
|
+
cr.set(t, n = []);
|
|
2359
2425
|
for (var r, i = e, s = Element.prototype; s !== i; ) {
|
|
2360
|
-
r =
|
|
2426
|
+
r = Di(i);
|
|
2361
2427
|
for (var l in r)
|
|
2362
2428
|
r[l].set && n.push(l);
|
|
2363
|
-
i =
|
|
2429
|
+
i = wr(i);
|
|
2364
2430
|
}
|
|
2365
2431
|
return n;
|
|
2366
2432
|
}
|
|
2367
|
-
function
|
|
2368
|
-
return e === t || e?.[
|
|
2433
|
+
function hr(e, t) {
|
|
2434
|
+
return e === t || e?.[Rt] === t;
|
|
2369
2435
|
}
|
|
2370
|
-
function
|
|
2371
|
-
return
|
|
2436
|
+
function dr(e = {}, t, n, r) {
|
|
2437
|
+
return ti(() => {
|
|
2372
2438
|
var i, s;
|
|
2373
|
-
return
|
|
2374
|
-
i = s, s = [],
|
|
2375
|
-
e !== n(...s) && (t(e, ...s), i &&
|
|
2439
|
+
return Vn(() => {
|
|
2440
|
+
i = s, s = [], ot(() => {
|
|
2441
|
+
e !== n(...s) && (t(e, ...s), i && hr(n(...i), e) && t(null, ...i));
|
|
2376
2442
|
});
|
|
2377
2443
|
}), () => {
|
|
2378
|
-
|
|
2379
|
-
s &&
|
|
2444
|
+
it(() => {
|
|
2445
|
+
s && hr(n(...s), e) && t(null, ...s);
|
|
2380
2446
|
});
|
|
2381
2447
|
};
|
|
2382
2448
|
}), e;
|
|
2383
2449
|
}
|
|
2384
|
-
let
|
|
2385
|
-
function
|
|
2386
|
-
var t =
|
|
2450
|
+
let Wt = !1;
|
|
2451
|
+
function sl(e) {
|
|
2452
|
+
var t = Wt;
|
|
2387
2453
|
try {
|
|
2388
|
-
return
|
|
2454
|
+
return Wt = !1, [e(), Wt];
|
|
2389
2455
|
} finally {
|
|
2390
|
-
|
|
2456
|
+
Wt = t;
|
|
2391
2457
|
}
|
|
2392
2458
|
}
|
|
2393
|
-
function
|
|
2394
|
-
var i = (n &
|
|
2459
|
+
function me(e, t, n, r) {
|
|
2460
|
+
var i = (n & Ri) !== 0, s = (n & Li) !== 0, l = (
|
|
2395
2461
|
/** @type {V} */
|
|
2396
2462
|
r
|
|
2397
|
-
), o = !0,
|
|
2463
|
+
), o = !0, u = () => (o && (o = !1, l = s ? ot(
|
|
2398
2464
|
/** @type {() => V} */
|
|
2399
2465
|
r
|
|
2400
2466
|
) : (
|
|
@@ -2402,55 +2468,55 @@ function pe(e, t, n, r) {
|
|
|
2402
2468
|
r
|
|
2403
2469
|
)), l), f;
|
|
2404
2470
|
if (i) {
|
|
2405
|
-
var h =
|
|
2406
|
-
f =
|
|
2471
|
+
var h = Rt in e || Sr in e;
|
|
2472
|
+
f = rt(e, t)?.set ?? (h && t in e ? (A) => e[t] = A : void 0);
|
|
2407
2473
|
}
|
|
2408
2474
|
var v, d = !1;
|
|
2409
|
-
i ? [v, d] =
|
|
2475
|
+
i ? [v, d] = sl(() => (
|
|
2410
2476
|
/** @type {V} */
|
|
2411
2477
|
e[t]
|
|
2412
2478
|
)) : v = /** @type {V} */
|
|
2413
|
-
e[t], v === void 0 && r !== void 0 && (v =
|
|
2414
|
-
var
|
|
2415
|
-
if (
|
|
2479
|
+
e[t], v === void 0 && r !== void 0 && (v = u(), f && (Qi(), f(v)));
|
|
2480
|
+
var _;
|
|
2481
|
+
if (_ = () => {
|
|
2416
2482
|
var A = (
|
|
2417
2483
|
/** @type {V} */
|
|
2418
2484
|
e[t]
|
|
2419
2485
|
);
|
|
2420
|
-
return A === void 0 ?
|
|
2421
|
-
}, (n &
|
|
2422
|
-
return
|
|
2486
|
+
return A === void 0 ? u() : (o = !0, A);
|
|
2487
|
+
}, (n & ki) === 0)
|
|
2488
|
+
return _;
|
|
2423
2489
|
if (f) {
|
|
2424
2490
|
var c = e.$$legacy;
|
|
2425
2491
|
return (
|
|
2426
2492
|
/** @type {() => V} */
|
|
2427
|
-
(function(A,
|
|
2428
|
-
return arguments.length > 0 ? ((!
|
|
2493
|
+
(function(A, L) {
|
|
2494
|
+
return arguments.length > 0 ? ((!L || c || d) && f(L ? _() : A), A) : _();
|
|
2429
2495
|
})
|
|
2430
2496
|
);
|
|
2431
2497
|
}
|
|
2432
|
-
var
|
|
2433
|
-
i &&
|
|
2434
|
-
var
|
|
2498
|
+
var m = !1, g = ((n & Oi) !== 0 ? hn : Br)(() => (m = !1, _()));
|
|
2499
|
+
i && p(g);
|
|
2500
|
+
var O = (
|
|
2435
2501
|
/** @type {Effect} */
|
|
2436
2502
|
S
|
|
2437
2503
|
);
|
|
2438
2504
|
return (
|
|
2439
2505
|
/** @type {() => V} */
|
|
2440
|
-
(function(A,
|
|
2506
|
+
(function(A, L) {
|
|
2441
2507
|
if (arguments.length > 0) {
|
|
2442
|
-
const
|
|
2443
|
-
return
|
|
2508
|
+
const x = L ? p(g) : i ? He(A) : A;
|
|
2509
|
+
return I(g, x), m = !0, l !== void 0 && (l = x), A;
|
|
2444
2510
|
}
|
|
2445
|
-
return
|
|
2511
|
+
return Ge && m || (O.f & Ie) !== 0 ? g.v : p(g);
|
|
2446
2512
|
})
|
|
2447
2513
|
);
|
|
2448
2514
|
}
|
|
2449
|
-
function
|
|
2450
|
-
return new
|
|
2515
|
+
function ll(e) {
|
|
2516
|
+
return new ol(e);
|
|
2451
2517
|
}
|
|
2452
|
-
var
|
|
2453
|
-
class
|
|
2518
|
+
var Le, ie;
|
|
2519
|
+
class ol {
|
|
2454
2520
|
/**
|
|
2455
2521
|
* @param {ComponentConstructorOptions & {
|
|
2456
2522
|
* component: any;
|
|
@@ -2458,56 +2524,56 @@ class Js {
|
|
|
2458
2524
|
*/
|
|
2459
2525
|
constructor(t) {
|
|
2460
2526
|
/** @type {any} */
|
|
2461
|
-
y(this,
|
|
2527
|
+
y(this, Le);
|
|
2462
2528
|
/** @type {Record<string, any>} */
|
|
2463
2529
|
y(this, ie);
|
|
2464
2530
|
var n = /* @__PURE__ */ new Map(), r = (s, l) => {
|
|
2465
|
-
var o = /* @__PURE__ */
|
|
2531
|
+
var o = /* @__PURE__ */ jr(l, !1, !1);
|
|
2466
2532
|
return n.set(s, o), o;
|
|
2467
2533
|
};
|
|
2468
2534
|
const i = new Proxy(
|
|
2469
2535
|
{ ...t.props || {}, $$events: {} },
|
|
2470
2536
|
{
|
|
2471
2537
|
get(s, l) {
|
|
2472
|
-
return
|
|
2538
|
+
return p(n.get(l) ?? r(l, Reflect.get(s, l)));
|
|
2473
2539
|
},
|
|
2474
2540
|
has(s, l) {
|
|
2475
|
-
return l ===
|
|
2541
|
+
return l === Sr ? !0 : (p(n.get(l) ?? r(l, Reflect.get(s, l))), Reflect.has(s, l));
|
|
2476
2542
|
},
|
|
2477
2543
|
set(s, l, o) {
|
|
2478
|
-
return
|
|
2544
|
+
return I(n.get(l) ?? r(l, o), o), Reflect.set(s, l, o);
|
|
2479
2545
|
}
|
|
2480
2546
|
}
|
|
2481
2547
|
);
|
|
2482
|
-
|
|
2548
|
+
b(this, ie, (t.hydrate ? qs : gi)(t.component, {
|
|
2483
2549
|
target: t.target,
|
|
2484
2550
|
anchor: t.anchor,
|
|
2485
2551
|
props: i,
|
|
2486
2552
|
context: t.context,
|
|
2487
2553
|
intro: t.intro ?? !1,
|
|
2488
2554
|
recover: t.recover
|
|
2489
|
-
})), (!t?.props?.$$host || t.sync === !1) && ce(),
|
|
2490
|
-
for (const s of Object.keys(
|
|
2491
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2555
|
+
})), (!t?.props?.$$host || t.sync === !1) && ce(), b(this, Le, i.$$events);
|
|
2556
|
+
for (const s of Object.keys(a(this, ie)))
|
|
2557
|
+
s === "$set" || s === "$destroy" || s === "$on" || nn(this, s, {
|
|
2492
2558
|
get() {
|
|
2493
|
-
return
|
|
2559
|
+
return a(this, ie)[s];
|
|
2494
2560
|
},
|
|
2495
2561
|
/** @param {any} value */
|
|
2496
2562
|
set(l) {
|
|
2497
|
-
|
|
2563
|
+
a(this, ie)[s] = l;
|
|
2498
2564
|
},
|
|
2499
2565
|
enumerable: !0
|
|
2500
2566
|
});
|
|
2501
|
-
|
|
2567
|
+
a(this, ie).$set = /** @param {Record<string, any>} next */
|
|
2502
2568
|
(s) => {
|
|
2503
2569
|
Object.assign(i, s);
|
|
2504
|
-
},
|
|
2505
|
-
|
|
2570
|
+
}, a(this, ie).$destroy = () => {
|
|
2571
|
+
Bs(a(this, ie));
|
|
2506
2572
|
};
|
|
2507
2573
|
}
|
|
2508
2574
|
/** @param {Record<string, any>} props */
|
|
2509
2575
|
$set(t) {
|
|
2510
|
-
|
|
2576
|
+
a(this, ie).$set(t);
|
|
2511
2577
|
}
|
|
2512
2578
|
/**
|
|
2513
2579
|
* @param {string} event
|
|
@@ -2515,22 +2581,22 @@ class Js {
|
|
|
2515
2581
|
* @returns {any}
|
|
2516
2582
|
*/
|
|
2517
2583
|
$on(t, n) {
|
|
2518
|
-
|
|
2584
|
+
a(this, Le)[t] = a(this, Le)[t] || [];
|
|
2519
2585
|
const r = (...i) => n.call(this, ...i);
|
|
2520
|
-
return
|
|
2521
|
-
|
|
2586
|
+
return a(this, Le)[t].push(r), () => {
|
|
2587
|
+
a(this, Le)[t] = a(this, Le)[t].filter(
|
|
2522
2588
|
/** @param {any} fn */
|
|
2523
2589
|
(i) => i !== r
|
|
2524
2590
|
);
|
|
2525
2591
|
};
|
|
2526
2592
|
}
|
|
2527
2593
|
$destroy() {
|
|
2528
|
-
|
|
2594
|
+
a(this, ie).$destroy();
|
|
2529
2595
|
}
|
|
2530
2596
|
}
|
|
2531
|
-
|
|
2532
|
-
let
|
|
2533
|
-
typeof HTMLElement == "function" && (
|
|
2597
|
+
Le = new WeakMap(), ie = new WeakMap();
|
|
2598
|
+
let wi;
|
|
2599
|
+
typeof HTMLElement == "function" && (wi = class extends HTMLElement {
|
|
2534
2600
|
/**
|
|
2535
2601
|
* @param {*} $$componentCtor
|
|
2536
2602
|
* @param {*} $$slots
|
|
@@ -2539,27 +2605,27 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2539
2605
|
constructor(t, n, r) {
|
|
2540
2606
|
super();
|
|
2541
2607
|
/** The Svelte component constructor */
|
|
2542
|
-
|
|
2608
|
+
k(this, "$$ctor");
|
|
2543
2609
|
/** Slots */
|
|
2544
|
-
|
|
2610
|
+
k(this, "$$s");
|
|
2545
2611
|
/** @type {any} The Svelte component instance */
|
|
2546
|
-
|
|
2612
|
+
k(this, "$$c");
|
|
2547
2613
|
/** Whether or not the custom element is connected */
|
|
2548
|
-
|
|
2614
|
+
k(this, "$$cn", !1);
|
|
2549
2615
|
/** @type {Record<string, any>} Component props data */
|
|
2550
|
-
|
|
2616
|
+
k(this, "$$d", {});
|
|
2551
2617
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
2552
|
-
|
|
2618
|
+
k(this, "$$r", !1);
|
|
2553
2619
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
2554
|
-
|
|
2620
|
+
k(this, "$$p_d", {});
|
|
2555
2621
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
2556
|
-
|
|
2622
|
+
k(this, "$$l", {});
|
|
2557
2623
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
2558
|
-
|
|
2624
|
+
k(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
2559
2625
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
2560
|
-
|
|
2626
|
+
k(this, "$$me");
|
|
2561
2627
|
/** @type {ShadowRoot | null} The ShadowRoot of the custom element */
|
|
2562
|
-
|
|
2628
|
+
k(this, "$$shadowRoot", null);
|
|
2563
2629
|
this.$$ctor = t, this.$$s = n, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2564
2630
|
}
|
|
2565
2631
|
/**
|
|
@@ -2589,22 +2655,22 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2589
2655
|
if (this.$$cn = !0, !this.$$c) {
|
|
2590
2656
|
let t = function(i) {
|
|
2591
2657
|
return (s) => {
|
|
2592
|
-
const l =
|
|
2593
|
-
i !== "default" && (l.name = i),
|
|
2658
|
+
const l = Un("slot");
|
|
2659
|
+
i !== "default" && (l.name = i), It(s, l);
|
|
2594
2660
|
};
|
|
2595
2661
|
};
|
|
2596
2662
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2597
2663
|
return;
|
|
2598
|
-
const n = {}, r =
|
|
2664
|
+
const n = {}, r = al(this);
|
|
2599
2665
|
for (const i of this.$$s)
|
|
2600
2666
|
i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), n.default = !0) : n[i] = t(i));
|
|
2601
2667
|
for (const i of this.attributes) {
|
|
2602
2668
|
const s = this.$$g_p(i.name);
|
|
2603
|
-
s in this.$$d || (this.$$d[s] =
|
|
2669
|
+
s in this.$$d || (this.$$d[s] = en(s, i.value, this.$$p_d, "toProp"));
|
|
2604
2670
|
}
|
|
2605
2671
|
for (const i in this.$$p_d)
|
|
2606
2672
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2607
|
-
this.$$c =
|
|
2673
|
+
this.$$c = ll({
|
|
2608
2674
|
component: this.$$ctor,
|
|
2609
2675
|
target: this.$$shadowRoot || this,
|
|
2610
2676
|
props: {
|
|
@@ -2612,13 +2678,13 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2612
2678
|
$$slots: n,
|
|
2613
2679
|
$$host: this
|
|
2614
2680
|
}
|
|
2615
|
-
}), this.$$me =
|
|
2616
|
-
|
|
2681
|
+
}), this.$$me = As(() => {
|
|
2682
|
+
Vn(() => {
|
|
2617
2683
|
this.$$r = !0;
|
|
2618
|
-
for (const i of
|
|
2684
|
+
for (const i of tn(this.$$c)) {
|
|
2619
2685
|
if (!this.$$p_d[i]?.reflect) continue;
|
|
2620
2686
|
this.$$d[i] = this.$$c[i];
|
|
2621
|
-
const s =
|
|
2687
|
+
const s = en(
|
|
2622
2688
|
i,
|
|
2623
2689
|
this.$$d[i],
|
|
2624
2690
|
this.$$p_d,
|
|
@@ -2645,7 +2711,7 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2645
2711
|
* @param {string} newValue
|
|
2646
2712
|
*/
|
|
2647
2713
|
attributeChangedCallback(t, n, r) {
|
|
2648
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
2714
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = en(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
2649
2715
|
}
|
|
2650
2716
|
disconnectedCallback() {
|
|
2651
2717
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2656,12 +2722,12 @@ typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
|
2656
2722
|
* @param {string} attribute_name
|
|
2657
2723
|
*/
|
|
2658
2724
|
$$g_p(t) {
|
|
2659
|
-
return
|
|
2725
|
+
return tn(this.$$p_d).find(
|
|
2660
2726
|
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
2661
2727
|
) || t;
|
|
2662
2728
|
}
|
|
2663
2729
|
});
|
|
2664
|
-
function
|
|
2730
|
+
function en(e, t, n, r) {
|
|
2665
2731
|
const i = n[e]?.type;
|
|
2666
2732
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
2667
2733
|
return t;
|
|
@@ -2691,7 +2757,7 @@ function Jt(e, t, n, r) {
|
|
|
2691
2757
|
return t;
|
|
2692
2758
|
}
|
|
2693
2759
|
}
|
|
2694
|
-
function
|
|
2760
|
+
function al(e) {
|
|
2695
2761
|
const t = {};
|
|
2696
2762
|
return e.childNodes.forEach((n) => {
|
|
2697
2763
|
t[
|
|
@@ -2700,33 +2766,33 @@ function Qs(e) {
|
|
|
2700
2766
|
] = !0;
|
|
2701
2767
|
}), t;
|
|
2702
2768
|
}
|
|
2703
|
-
function
|
|
2704
|
-
let l = class extends
|
|
2769
|
+
function yi(e, t, n, r, i, s) {
|
|
2770
|
+
let l = class extends wi {
|
|
2705
2771
|
constructor() {
|
|
2706
2772
|
super(e, n, i), this.$$p_d = t;
|
|
2707
2773
|
}
|
|
2708
2774
|
static get observedAttributes() {
|
|
2709
|
-
return
|
|
2775
|
+
return tn(t).map(
|
|
2710
2776
|
(o) => (t[o].attribute || o).toLowerCase()
|
|
2711
2777
|
);
|
|
2712
2778
|
}
|
|
2713
2779
|
};
|
|
2714
|
-
return
|
|
2715
|
-
|
|
2780
|
+
return tn(t).forEach((o) => {
|
|
2781
|
+
nn(l.prototype, o, {
|
|
2716
2782
|
get() {
|
|
2717
2783
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
2718
2784
|
},
|
|
2719
|
-
set(
|
|
2720
|
-
|
|
2785
|
+
set(u) {
|
|
2786
|
+
u = en(o, u, t), this.$$d[o] = u;
|
|
2721
2787
|
var f = this.$$c;
|
|
2722
2788
|
if (f) {
|
|
2723
|
-
var h =
|
|
2724
|
-
h ? f[o] =
|
|
2789
|
+
var h = rt(f, o)?.get;
|
|
2790
|
+
h ? f[o] = u : f.$set({ [o]: u });
|
|
2725
2791
|
}
|
|
2726
2792
|
}
|
|
2727
2793
|
});
|
|
2728
2794
|
}), r.forEach((o) => {
|
|
2729
|
-
|
|
2795
|
+
nn(l.prototype, o, {
|
|
2730
2796
|
get() {
|
|
2731
2797
|
return this.$$c?.[o];
|
|
2732
2798
|
}
|
|
@@ -2734,118 +2800,273 @@ function mi(e, t, n, r, i, s) {
|
|
|
2734
2800
|
}), e.element = /** @type {any} */
|
|
2735
2801
|
l, l;
|
|
2736
2802
|
}
|
|
2737
|
-
var
|
|
2803
|
+
var vr;
|
|
2738
2804
|
(function(e) {
|
|
2739
2805
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2740
|
-
})(
|
|
2741
|
-
var
|
|
2806
|
+
})(vr || (vr = {}));
|
|
2807
|
+
var _r;
|
|
2742
2808
|
(function(e) {
|
|
2743
|
-
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange";
|
|
2744
|
-
})(
|
|
2745
|
-
const
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2809
|
+
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2810
|
+
})(_r || (_r = {}));
|
|
2811
|
+
const fl = {
|
|
2812
|
+
/**
|
|
2813
|
+
* Visual accessibility features
|
|
2814
|
+
* For students with low vision, color blindness, or visual processing needs
|
|
2815
|
+
*/
|
|
2816
|
+
visual: {
|
|
2817
|
+
// Magnification and zoom
|
|
2818
|
+
magnification: "magnification",
|
|
2819
|
+
screenMagnifier: "screenMagnifier",
|
|
2820
|
+
zoomable: "zoomable",
|
|
2821
|
+
// Color and contrast
|
|
2822
|
+
highContrastDisplay: "highContrastDisplay",
|
|
2823
|
+
highContrastAudio: "highContrastAudio",
|
|
2824
|
+
colorContrast: "colorContrast",
|
|
2825
|
+
invertColors: "invertColors",
|
|
2826
|
+
// Display customization
|
|
2827
|
+
displayTransformability: "displayTransformability",
|
|
2828
|
+
largePrint: "largePrint",
|
|
2829
|
+
fontEnlargement: "fontEnlargement",
|
|
2830
|
+
resizeText: "resizeText",
|
|
2831
|
+
// Visual alternatives
|
|
2832
|
+
alternativeText: "alternativeText",
|
|
2833
|
+
longDescription: "longDescription",
|
|
2834
|
+
describedMath: "describedMath",
|
|
2835
|
+
tactileGraphic: "tactileGraphic",
|
|
2836
|
+
tactileObject: "tactileObject"
|
|
2837
|
+
},
|
|
2838
|
+
/**
|
|
2839
|
+
* Auditory accessibility features
|
|
2840
|
+
* For students who are deaf, hard of hearing, or benefit from audio
|
|
2841
|
+
*/
|
|
2842
|
+
auditory: {
|
|
2843
|
+
// Audio output
|
|
2844
|
+
audioDescription: "audioDescription",
|
|
2845
|
+
textToSpeech: "textToSpeech",
|
|
2846
|
+
readAloud: "readAloud",
|
|
2847
|
+
humanVoice: "humanVoice",
|
|
2848
|
+
syntheticVoice: "syntheticVoice",
|
|
2849
|
+
// Speech control
|
|
2850
|
+
speechRate: "speechRate",
|
|
2851
|
+
speechVolume: "speechVolume",
|
|
2852
|
+
voicePitch: "voicePitch",
|
|
2853
|
+
// Visual alternatives for audio
|
|
2854
|
+
captions: "captions",
|
|
2855
|
+
closedCaptions: "closedCaptions",
|
|
2856
|
+
openCaptions: "openCaptions",
|
|
2857
|
+
transcript: "transcript",
|
|
2858
|
+
signLanguage: "signLanguage",
|
|
2859
|
+
subtitles: "subtitles",
|
|
2860
|
+
// Audio adjustments
|
|
2861
|
+
audioControl: "audioControl",
|
|
2862
|
+
noBackgroundAudio: "noBackgroundAudio"
|
|
2863
|
+
},
|
|
2864
|
+
/**
|
|
2865
|
+
* Motor/physical accessibility features
|
|
2866
|
+
* For students with limited mobility or motor control
|
|
2867
|
+
*/
|
|
2868
|
+
motor: {
|
|
2869
|
+
// Input alternatives
|
|
2870
|
+
keyboardControl: "keyboardControl",
|
|
2871
|
+
mouseControl: "mouseControl",
|
|
2872
|
+
touchControl: "touchControl",
|
|
2873
|
+
voiceControl: "voiceControl",
|
|
2874
|
+
switchControl: "switchControl",
|
|
2875
|
+
eyeGazeControl: "eyeGazeControl",
|
|
2876
|
+
// Keyboard features
|
|
2877
|
+
singleSwitchAccess: "singleSwitchAccess",
|
|
2878
|
+
stickyKeys: "stickyKeys",
|
|
2879
|
+
keyboardShortcuts: "keyboardShortcuts",
|
|
2880
|
+
// Timing
|
|
2881
|
+
timingControl: "timingControl",
|
|
2882
|
+
unlimitedTime: "unlimitedTime",
|
|
2883
|
+
extendedTime: "extendedTime",
|
|
2884
|
+
pauseControl: "pauseControl"
|
|
2885
|
+
},
|
|
2886
|
+
/**
|
|
2887
|
+
* Cognitive/learning accessibility features
|
|
2888
|
+
* For students with learning disabilities, ADHD, autism, etc.
|
|
2889
|
+
*/
|
|
2890
|
+
cognitive: {
|
|
2891
|
+
// Content simplification
|
|
2892
|
+
simplifiedLanguage: "simplifiedLanguage",
|
|
2893
|
+
reducedComplexity: "reducedComplexity",
|
|
2894
|
+
structuralNavigation: "structuralNavigation",
|
|
2895
|
+
tableOfContents: "tableOfContents",
|
|
2896
|
+
// Focus and attention
|
|
2897
|
+
reducedDistraction: "reducedDistraction",
|
|
2898
|
+
noFlashing: "noFlashing",
|
|
2899
|
+
pauseAnimation: "pauseAnimation",
|
|
2900
|
+
// Organization and support
|
|
2901
|
+
annotations: "annotations",
|
|
2902
|
+
bookmarking: "bookmarking",
|
|
2903
|
+
highlighting: "highlighting",
|
|
2904
|
+
guidedNavigation: "guidedNavigation",
|
|
2905
|
+
// Tools
|
|
2906
|
+
calculator: "calculator",
|
|
2907
|
+
dictionary: "dictionary",
|
|
2908
|
+
thesaurus: "thesaurus",
|
|
2909
|
+
spellingAssistance: "spellingAssistance",
|
|
2910
|
+
grammarAssistance: "grammarAssistance"
|
|
2911
|
+
},
|
|
2912
|
+
/**
|
|
2913
|
+
* Reading support features
|
|
2914
|
+
* For students with dyslexia or reading challenges
|
|
2915
|
+
*/
|
|
2916
|
+
reading: {
|
|
2917
|
+
// Text presentation
|
|
2918
|
+
lineSpacing: "lineSpacing",
|
|
2919
|
+
wordSpacing: "wordSpacing",
|
|
2920
|
+
letterSpacing: "letterSpacing",
|
|
2921
|
+
fontFamily: "fontFamily",
|
|
2922
|
+
readingMask: "readingMask",
|
|
2923
|
+
readingGuide: "readingGuide",
|
|
2924
|
+
readingRuler: "readingRuler",
|
|
2925
|
+
// Highlighting and emphasis
|
|
2926
|
+
wordHighlighting: "wordHighlighting",
|
|
2927
|
+
lineHighlighting: "lineHighlighting",
|
|
2928
|
+
focusIndicator: "focusIndicator",
|
|
2929
|
+
// Content support
|
|
2930
|
+
printableResource: "printableResource",
|
|
2931
|
+
braille: "braille",
|
|
2932
|
+
nemeth: "nemeth",
|
|
2933
|
+
refreshableBraille: "refreshableBraille"
|
|
2934
|
+
},
|
|
2935
|
+
/**
|
|
2936
|
+
* Navigation features
|
|
2937
|
+
* For efficient content navigation
|
|
2938
|
+
*/
|
|
2939
|
+
navigation: {
|
|
2940
|
+
// Structure
|
|
2941
|
+
index: "index",
|
|
2942
|
+
pageNavigation: "pageNavigation",
|
|
2943
|
+
skipContent: "skipContent",
|
|
2944
|
+
breadcrumbs: "breadcrumbs",
|
|
2945
|
+
// Search
|
|
2946
|
+
searchable: "searchable",
|
|
2947
|
+
fullTextSearch: "fullTextSearch"
|
|
2948
|
+
},
|
|
2949
|
+
/**
|
|
2950
|
+
* Linguistic features
|
|
2951
|
+
* For language support
|
|
2952
|
+
*/
|
|
2953
|
+
linguistic: {
|
|
2954
|
+
// Languages
|
|
2955
|
+
multilingualText: "multilingualText",
|
|
2956
|
+
translatedText: "translatedText",
|
|
2957
|
+
glossary: "glossary",
|
|
2958
|
+
// Sign language
|
|
2959
|
+
signLanguageInterpretation: "signLanguageInterpretation",
|
|
2960
|
+
visualLanguage: "visualLanguage"
|
|
2961
|
+
},
|
|
2962
|
+
/**
|
|
2963
|
+
* Assessment-specific features
|
|
2964
|
+
* Features specific to test-taking environments
|
|
2965
|
+
*/
|
|
2966
|
+
assessment: {
|
|
2967
|
+
// Tools
|
|
2968
|
+
protractor: "protractor",
|
|
2969
|
+
ruler: "ruler",
|
|
2970
|
+
graph: "graph",
|
|
2971
|
+
graphingCalculator: "graphingCalculator",
|
|
2972
|
+
periodicTable: "periodicTable",
|
|
2973
|
+
formulaSheet: "formulaSheet",
|
|
2974
|
+
// Answer support
|
|
2975
|
+
answerMasking: "answerMasking",
|
|
2976
|
+
answerEliminator: "answerEliminator",
|
|
2977
|
+
strikethrough: "strikethrough",
|
|
2978
|
+
// Item features
|
|
2979
|
+
itemGlossary: "itemGlossary",
|
|
2980
|
+
tutorialAvailable: "tutorialAvailable"
|
|
2981
|
+
}
|
|
2761
2982
|
};
|
|
2762
|
-
Object.
|
|
2763
|
-
var
|
|
2983
|
+
Object.values(fl).flatMap((e) => Object.values(e));
|
|
2984
|
+
var Ln;
|
|
2764
2985
|
(function(e) {
|
|
2765
2986
|
e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
2766
|
-
})(
|
|
2767
|
-
var
|
|
2987
|
+
})(Ln || (Ln = {}));
|
|
2988
|
+
var pr;
|
|
2768
2989
|
(function(e) {
|
|
2769
2990
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
2770
|
-
})(
|
|
2771
|
-
var
|
|
2772
|
-
const
|
|
2991
|
+
})(pr || (pr = {}));
|
|
2992
|
+
var ul = /* @__PURE__ */ Kn('<div class="magnifier svelte-13ngm4o" role="region" aria-label="Content magnifier"><div class="magnifier-content svelte-13ngm4o"></div> <div class="magnifier-glass svelte-13ngm4o"></div> <!></div>');
|
|
2993
|
+
const cl = {
|
|
2773
2994
|
hash: "svelte-13ngm4o",
|
|
2774
2995
|
code: ".magnifier.svelte-13ngm4o {position:fixed;overflow:hidden;background-color:white;border:1px solid #555;border-radius:4px;z-index:10000;cursor:move;touch-action:none;}.magnifier-content.svelte-13ngm4o {position:absolute;top:0;left:0;overflow:visible;display:block;transform-origin:left top;user-select:none;pointer-events:none;}.magnifier-glass.svelte-13ngm4o {position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;background-color:transparent;pointer-events:all;}"
|
|
2775
2996
|
};
|
|
2776
|
-
function
|
|
2777
|
-
|
|
2778
|
-
let n =
|
|
2779
|
-
left: ${
|
|
2780
|
-
top: ${
|
|
2997
|
+
function $i(e, t) {
|
|
2998
|
+
zn(t, !0), bi(e, cl);
|
|
2999
|
+
let n = me(t, "zoom", 7, 2), r = me(t, "width", 7, 420), i = me(t, "height", 7, 280), s = me(t, "shape", 7, "square"), l = me(t, "visible", 15, !1), o = me(t, "onPrepareContent", 7), u = me(t, "onContentUpdated", 7), f = /* @__PURE__ */ U(null), h = /* @__PURE__ */ U(null), v = /* @__PURE__ */ U(null), d = /* @__PURE__ */ U(He({ x: 200, y: 200 })), _ = /* @__PURE__ */ U(!1), c = /* @__PURE__ */ U(He({ x: 0, y: 0 })), m = null, g = null, O = /* @__PURE__ */ nr(() => `
|
|
3000
|
+
left: ${p(d).x}px;
|
|
3001
|
+
top: ${p(d).y}px;
|
|
2781
3002
|
width: ${r()}px;
|
|
2782
3003
|
height: ${i()}px;
|
|
2783
3004
|
${s() === "circle" ? "border-radius: 50%;" : ""}
|
|
2784
3005
|
display: ${l() ? "block" : "none"};
|
|
2785
|
-
`), A = /* @__PURE__ */
|
|
3006
|
+
`), A = /* @__PURE__ */ nr(() => `
|
|
2786
3007
|
transform: scale(${n()});
|
|
2787
|
-
left: ${-
|
|
2788
|
-
top: ${-
|
|
3008
|
+
left: ${-p(d).x * n() - window.scrollX * n()}px;
|
|
3009
|
+
top: ${-p(d).y * n() - window.scrollY * n()}px;
|
|
2789
3010
|
width: ${document.body.scrollWidth}px;
|
|
2790
3011
|
height: ${document.body.scrollHeight}px;
|
|
2791
3012
|
`);
|
|
2792
|
-
function
|
|
2793
|
-
const
|
|
2794
|
-
Fe &&
|
|
2795
|
-
const te =
|
|
2796
|
-
if (te.length > 0 && te.length ===
|
|
2797
|
-
for (let
|
|
2798
|
-
const
|
|
2799
|
-
if (
|
|
3013
|
+
function L() {
|
|
3014
|
+
const w = document.body, C = w.cloneNode(!0), Fe = getComputedStyle(w).backgroundColor;
|
|
3015
|
+
Fe && p(f) && (p(f).style.backgroundColor = Fe), C.style.cursor = "auto", C.style.paddingTop = "0px", C.setAttribute("unselectable", "on");
|
|
3016
|
+
const te = w.querySelectorAll("canvas"), Nt = C.querySelectorAll("canvas");
|
|
3017
|
+
if (te.length > 0 && te.length === Nt.length)
|
|
3018
|
+
for (let ct = 0; ct < te.length; ct++) {
|
|
3019
|
+
const Jn = Nt[ct].getContext("2d");
|
|
3020
|
+
if (Jn)
|
|
2800
3021
|
try {
|
|
2801
|
-
|
|
3022
|
+
Jn.drawImage(te[ct], 0, 0);
|
|
2802
3023
|
} catch {
|
|
2803
3024
|
}
|
|
2804
3025
|
}
|
|
2805
3026
|
return [
|
|
2806
|
-
...
|
|
2807
|
-
...
|
|
2808
|
-
...
|
|
2809
|
-
...
|
|
2810
|
-
...
|
|
2811
|
-
...
|
|
2812
|
-
].forEach((
|
|
2813
|
-
}
|
|
2814
|
-
function
|
|
2815
|
-
if (!(!l() || !
|
|
2816
|
-
const
|
|
2817
|
-
|
|
3027
|
+
...C.querySelectorAll("script"),
|
|
3028
|
+
...C.querySelectorAll("audio"),
|
|
3029
|
+
...C.querySelectorAll("video"),
|
|
3030
|
+
...C.querySelectorAll(".magnifier"),
|
|
3031
|
+
...C.querySelectorAll(".magnifier-clone-ignore"),
|
|
3032
|
+
...C.querySelectorAll("[data-magnifier-ignore]")
|
|
3033
|
+
].forEach((ct) => ct.remove()), o() && o()(C), C;
|
|
3034
|
+
}
|
|
3035
|
+
function x() {
|
|
3036
|
+
if (!(!l() || !p(h)) && (p(h).innerHTML = "", I(v, L(), !0), p(h).appendChild(p(v)), ee(), u() && p(v))) {
|
|
3037
|
+
const w = p(v).querySelector("body");
|
|
3038
|
+
w && u()(w);
|
|
2818
3039
|
}
|
|
2819
3040
|
}
|
|
2820
3041
|
function ee() {
|
|
2821
|
-
if (!
|
|
2822
|
-
Array.from(document.querySelectorAll("div")).filter((
|
|
3042
|
+
if (!p(v)) return;
|
|
3043
|
+
Array.from(document.querySelectorAll("div")).filter((C) => C.scrollTop > 0 && !p(f)?.contains(C)).forEach((C) => {
|
|
2823
3044
|
const Fe = [];
|
|
2824
|
-
|
|
2825
|
-
const
|
|
2826
|
-
if (
|
|
2827
|
-
const pn =
|
|
2828
|
-
pn.scrollTop =
|
|
3045
|
+
C.id && Fe.push("#" + C.id), C.className && Fe.push("." + C.className.split(" ").join(".")), Fe.forEach((te) => {
|
|
3046
|
+
const Nt = p(v).querySelectorAll(te);
|
|
3047
|
+
if (Nt.length === 1) {
|
|
3048
|
+
const pn = Nt[0];
|
|
3049
|
+
pn.scrollTop = C.scrollTop, pn.scrollLeft = C.scrollLeft;
|
|
2829
3050
|
}
|
|
2830
3051
|
});
|
|
2831
3052
|
});
|
|
2832
3053
|
}
|
|
2833
|
-
function
|
|
3054
|
+
function B() {
|
|
2834
3055
|
g !== null && clearTimeout(g), g = window.setTimeout(
|
|
2835
3056
|
() => {
|
|
2836
|
-
|
|
3057
|
+
x();
|
|
2837
3058
|
},
|
|
2838
3059
|
100
|
|
2839
3060
|
);
|
|
2840
3061
|
}
|
|
2841
|
-
function
|
|
2842
|
-
|
|
2843
|
-
for (const
|
|
2844
|
-
if (!(
|
|
2845
|
-
|
|
3062
|
+
function Ce() {
|
|
3063
|
+
m || (m = new MutationObserver((w) => {
|
|
3064
|
+
for (const C of w)
|
|
3065
|
+
if (!(p(f) && p(f).contains(C.target))) {
|
|
3066
|
+
B();
|
|
2846
3067
|
break;
|
|
2847
3068
|
}
|
|
2848
|
-
}),
|
|
3069
|
+
}), m.observe(document.body, {
|
|
2849
3070
|
childList: !0,
|
|
2850
3071
|
subtree: !0,
|
|
2851
3072
|
attributes: !0,
|
|
@@ -2853,112 +3074,112 @@ function bi(e, t) {
|
|
|
2853
3074
|
attributeOldValue: !0
|
|
2854
3075
|
}));
|
|
2855
3076
|
}
|
|
2856
|
-
function
|
|
2857
|
-
|
|
3077
|
+
function V() {
|
|
3078
|
+
m && (m.disconnect(), m = null), g !== null && (clearTimeout(g), g = null);
|
|
2858
3079
|
}
|
|
2859
|
-
function
|
|
2860
|
-
const
|
|
2861
|
-
let te =
|
|
2862
|
-
for (; te && te !==
|
|
3080
|
+
function fe(w) {
|
|
3081
|
+
const C = w.target, Fe = ["INPUT", "TEXTAREA", "SELECT", "BUTTON", "A"];
|
|
3082
|
+
let te = C;
|
|
3083
|
+
for (; te && te !== p(f); ) {
|
|
2863
3084
|
if (Fe.includes(te.tagName.toUpperCase()))
|
|
2864
3085
|
return;
|
|
2865
3086
|
te = te.parentElement;
|
|
2866
3087
|
}
|
|
2867
|
-
|
|
3088
|
+
I(_, !0), I(
|
|
2868
3089
|
c,
|
|
2869
3090
|
{
|
|
2870
|
-
x:
|
|
2871
|
-
y:
|
|
3091
|
+
x: w.clientX - p(d).x,
|
|
3092
|
+
y: w.clientY - p(d).y
|
|
2872
3093
|
},
|
|
2873
3094
|
!0
|
|
2874
|
-
),
|
|
3095
|
+
), p(f) && p(f).setPointerCapture(w.pointerId);
|
|
2875
3096
|
}
|
|
2876
|
-
function
|
|
2877
|
-
_
|
|
3097
|
+
function dn(w) {
|
|
3098
|
+
p(_) && I(
|
|
2878
3099
|
d,
|
|
2879
3100
|
{
|
|
2880
|
-
x:
|
|
2881
|
-
y:
|
|
3101
|
+
x: w.clientX - p(c).x,
|
|
3102
|
+
y: w.clientY - p(c).y
|
|
2882
3103
|
},
|
|
2883
3104
|
!0
|
|
2884
3105
|
);
|
|
2885
3106
|
}
|
|
2886
|
-
function vn(
|
|
2887
|
-
_
|
|
3107
|
+
function vn(w) {
|
|
3108
|
+
p(_) && p(f) && p(f).releasePointerCapture(w.pointerId), I(_, !1);
|
|
2888
3109
|
}
|
|
2889
|
-
function
|
|
3110
|
+
function Xn(w) {
|
|
2890
3111
|
if (!l()) return;
|
|
2891
|
-
const
|
|
2892
|
-
|
|
2893
|
-
}
|
|
2894
|
-
|
|
2895
|
-
l() ?
|
|
2896
|
-
|
|
2897
|
-
}) :
|
|
2898
|
-
|
|
3112
|
+
const C = w.target;
|
|
3113
|
+
p(f)?.contains(C) || B();
|
|
3114
|
+
}
|
|
3115
|
+
Pt(() => {
|
|
3116
|
+
l() ? ot(() => {
|
|
3117
|
+
x(), Ce();
|
|
3118
|
+
}) : ot(() => {
|
|
3119
|
+
V();
|
|
2899
3120
|
});
|
|
2900
|
-
}),
|
|
2901
|
-
n(), l() &&
|
|
2902
|
-
|
|
3121
|
+
}), Pt(() => {
|
|
3122
|
+
n(), l() && ot(() => {
|
|
3123
|
+
x();
|
|
2903
3124
|
});
|
|
2904
|
-
}),
|
|
2905
|
-
|
|
3125
|
+
}), Hs(() => (window.addEventListener("scroll", Xn, !0), window.addEventListener("resize", B), () => {
|
|
3126
|
+
V(), window.removeEventListener("scroll", Xn, !0), window.removeEventListener("resize", B);
|
|
2906
3127
|
}));
|
|
2907
|
-
var
|
|
3128
|
+
var Ei = {
|
|
2908
3129
|
get zoom() {
|
|
2909
3130
|
return n();
|
|
2910
3131
|
},
|
|
2911
|
-
set zoom(
|
|
2912
|
-
n(
|
|
3132
|
+
set zoom(w = 2) {
|
|
3133
|
+
n(w), ce();
|
|
2913
3134
|
},
|
|
2914
3135
|
get width() {
|
|
2915
3136
|
return r();
|
|
2916
3137
|
},
|
|
2917
|
-
set width(
|
|
2918
|
-
r(
|
|
3138
|
+
set width(w = 420) {
|
|
3139
|
+
r(w), ce();
|
|
2919
3140
|
},
|
|
2920
3141
|
get height() {
|
|
2921
3142
|
return i();
|
|
2922
3143
|
},
|
|
2923
|
-
set height(
|
|
2924
|
-
i(
|
|
3144
|
+
set height(w = 280) {
|
|
3145
|
+
i(w), ce();
|
|
2925
3146
|
},
|
|
2926
3147
|
get shape() {
|
|
2927
3148
|
return s();
|
|
2928
3149
|
},
|
|
2929
|
-
set shape(
|
|
2930
|
-
s(
|
|
3150
|
+
set shape(w = "square") {
|
|
3151
|
+
s(w), ce();
|
|
2931
3152
|
},
|
|
2932
3153
|
get visible() {
|
|
2933
3154
|
return l();
|
|
2934
3155
|
},
|
|
2935
|
-
set visible(
|
|
2936
|
-
l(
|
|
3156
|
+
set visible(w = !1) {
|
|
3157
|
+
l(w), ce();
|
|
2937
3158
|
},
|
|
2938
3159
|
get onPrepareContent() {
|
|
2939
3160
|
return o();
|
|
2940
3161
|
},
|
|
2941
|
-
set onPrepareContent(
|
|
2942
|
-
o(
|
|
3162
|
+
set onPrepareContent(w) {
|
|
3163
|
+
o(w), ce();
|
|
2943
3164
|
},
|
|
2944
3165
|
get onContentUpdated() {
|
|
2945
|
-
return
|
|
3166
|
+
return u();
|
|
2946
3167
|
},
|
|
2947
|
-
set onContentUpdated(
|
|
2948
|
-
|
|
3168
|
+
set onContentUpdated(w) {
|
|
3169
|
+
u(w), ce();
|
|
2949
3170
|
}
|
|
2950
|
-
},
|
|
2951
|
-
|
|
2952
|
-
var _n =
|
|
2953
|
-
|
|
2954
|
-
var
|
|
2955
|
-
return
|
|
2956
|
-
|
|
2957
|
-
}),
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
3171
|
+
}, ze = ul();
|
|
3172
|
+
ze.__pointerdown = fe, ze.__pointermove = dn, ze.__pointerup = vn;
|
|
3173
|
+
var _n = Nn(ze);
|
|
3174
|
+
dr(_n, (w) => I(h, w), () => p(h));
|
|
3175
|
+
var Ti = $s(_n, 4);
|
|
3176
|
+
return Xs(Ti, t, "default", {}), Xt(ze), dr(ze, (w) => I(f, w), () => p(f)), ni(() => {
|
|
3177
|
+
ur(ze, p(O)), ur(_n, p(A));
|
|
3178
|
+
}), It(e, ze), Fn(Ei);
|
|
3179
|
+
}
|
|
3180
|
+
pi(["pointerdown", "pointermove", "pointerup"]);
|
|
3181
|
+
yi(
|
|
3182
|
+
$i,
|
|
2962
3183
|
{
|
|
2963
3184
|
zoom: {},
|
|
2964
3185
|
width: {},
|
|
@@ -2972,24 +3193,24 @@ mi(
|
|
|
2972
3193
|
[],
|
|
2973
3194
|
{ mode: "open" }
|
|
2974
3195
|
);
|
|
2975
|
-
var
|
|
2976
|
-
const
|
|
3196
|
+
var hl = /* @__PURE__ */ Kn('<button><span class="btn-label svelte-1um3llb"> </span></button>'), dl = /* @__PURE__ */ Kn('<div class="btn-group magnifier-clone-ignore svelte-1um3llb" data-magnifier-ignore="true"></div>');
|
|
3197
|
+
const vl = {
|
|
2977
3198
|
hash: "svelte-1um3llb",
|
|
2978
3199
|
code: ".btn-group.svelte-1um3llb {background-color:rgba(255, 255, 255, 0.8);border:1px solid var(--pie-primary, #007bff);border-radius:4px;bottom:0.5rem;left:0.5rem;position:absolute;z-index:1001;display:flex;overflow:hidden;}.zoom-btn.svelte-1um3llb {background:white;border:none;border-right:1px solid var(--pie-primary, #007bff);color:var(--pie-primary, #007bff);cursor:pointer;padding:4px 8px;font-size:12px;transition:background-color 0.2s, color 0.2s;}.zoom-btn.svelte-1um3llb:last-child {border-right:none;}.zoom-btn.svelte-1um3llb:hover {background-color:rgba(0, 123, 255, 0.1);}.zoom-btn.active.svelte-1um3llb {background-color:var(--pie-primary, #007bff);color:white;}.zoom-btn.svelte-1um3llb:focus-visible {outline:2px solid var(--pie-primary, #007bff);outline-offset:2px;}.btn-label.svelte-1um3llb {font-size:0.8em;}"
|
|
2979
3200
|
};
|
|
2980
|
-
function
|
|
2981
|
-
|
|
2982
|
-
let n =
|
|
3201
|
+
function _l(e, t) {
|
|
3202
|
+
zn(t, !0), bi(e, vl);
|
|
3203
|
+
let n = me(t, "visible", 7, !1), r = me(t, "toolId", 7, "magnifier"), i = me(t, "coordinator", 7);
|
|
2983
3204
|
const s = typeof window < "u";
|
|
2984
3205
|
let l = /* @__PURE__ */ U(!1), o = /* @__PURE__ */ U(1.5);
|
|
2985
|
-
const
|
|
3206
|
+
const u = [1.5, 2, 3];
|
|
2986
3207
|
function f(c) {
|
|
2987
|
-
|
|
3208
|
+
I(o, c, !0);
|
|
2988
3209
|
}
|
|
2989
|
-
|
|
2990
|
-
i() && r() && !
|
|
2991
|
-
}),
|
|
2992
|
-
i() && r() &&
|
|
3210
|
+
Pt(() => {
|
|
3211
|
+
i() && r() && !p(l) && (i().registerTool(r(), "Magnifier", void 0, Ln.TOOL), I(l, !0));
|
|
3212
|
+
}), Pt(() => () => {
|
|
3213
|
+
i() && r() && p(l) && (i().unregisterTool(r()), I(l, !1));
|
|
2993
3214
|
});
|
|
2994
3215
|
var h = {
|
|
2995
3216
|
get visible() {
|
|
@@ -3010,12 +3231,12 @@ function sl(e, t) {
|
|
|
3010
3231
|
set coordinator(c) {
|
|
3011
3232
|
i(c), ce();
|
|
3012
3233
|
}
|
|
3013
|
-
}, v =
|
|
3234
|
+
}, v = Ds(), d = ys(v);
|
|
3014
3235
|
{
|
|
3015
|
-
var
|
|
3016
|
-
|
|
3236
|
+
var _ = (c) => {
|
|
3237
|
+
$i(c, {
|
|
3017
3238
|
get zoom() {
|
|
3018
|
-
return
|
|
3239
|
+
return p(o);
|
|
3019
3240
|
},
|
|
3020
3241
|
width: 420,
|
|
3021
3242
|
height: 280,
|
|
@@ -3023,33 +3244,33 @@ function sl(e, t) {
|
|
|
3023
3244
|
get visible() {
|
|
3024
3245
|
return n();
|
|
3025
3246
|
},
|
|
3026
|
-
set visible(
|
|
3027
|
-
n(
|
|
3247
|
+
set visible(m) {
|
|
3248
|
+
n(m);
|
|
3028
3249
|
},
|
|
3029
|
-
children: (
|
|
3030
|
-
var
|
|
3031
|
-
|
|
3032
|
-
var
|
|
3250
|
+
children: (m, g) => {
|
|
3251
|
+
var O = dl();
|
|
3252
|
+
Ys(O, 21, () => u, js, (A, L) => {
|
|
3253
|
+
var x = hl();
|
|
3033
3254
|
let ee;
|
|
3034
|
-
|
|
3035
|
-
var
|
|
3036
|
-
|
|
3037
|
-
ee =
|
|
3038
|
-
}),
|
|
3039
|
-
}),
|
|
3255
|
+
x.__click = () => f(p(L));
|
|
3256
|
+
var B = Nn(x), Ce = Nn(B);
|
|
3257
|
+
Xt(B), Xt(x), ni(() => {
|
|
3258
|
+
ee = Zs(x, 1, "zoom-btn svelte-1um3llb", null, ee, { active: p(o) === p(L) }), mn(x, "data-zoom", p(L)), mn(x, "title", `${p(L) ?? ""}x zoom`), mn(x, "aria-label", `Set zoom to ${p(L) ?? ""}x`), Fs(Ce, `${p(L) ?? ""}x`);
|
|
3259
|
+
}), It(A, x);
|
|
3260
|
+
}), Xt(O), It(m, O);
|
|
3040
3261
|
},
|
|
3041
3262
|
$$slots: { default: !0 }
|
|
3042
3263
|
});
|
|
3043
3264
|
};
|
|
3044
|
-
|
|
3045
|
-
s && c(
|
|
3265
|
+
Vs(d, (c) => {
|
|
3266
|
+
s && c(_);
|
|
3046
3267
|
});
|
|
3047
3268
|
}
|
|
3048
|
-
return
|
|
3269
|
+
return It(e, v), Fn(h);
|
|
3049
3270
|
}
|
|
3050
|
-
|
|
3051
|
-
customElements.define("pie-tool-magnifier",
|
|
3052
|
-
|
|
3271
|
+
pi(["click"]);
|
|
3272
|
+
customElements.define("pie-tool-magnifier", yi(
|
|
3273
|
+
_l,
|
|
3053
3274
|
{
|
|
3054
3275
|
visible: { attribute: "visible", type: "Boolean" },
|
|
3055
3276
|
toolId: { attribute: "tool-id", type: "String" },
|
|
@@ -3059,6 +3280,6 @@ customElements.define("pie-tool-magnifier", mi(
|
|
|
3059
3280
|
[]
|
|
3060
3281
|
));
|
|
3061
3282
|
export {
|
|
3062
|
-
|
|
3283
|
+
_l as default
|
|
3063
3284
|
};
|
|
3064
3285
|
//# sourceMappingURL=tool-magnifier.js.map
|