@pie-players/pie-tool-line-reader 1.0.0-beta.1 → 1.0.0-beta.3
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-line-reader.js +848 -830
- package/package.json +4 -4
package/dist/tool-line-reader.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { coerceBooleanAttributes as
|
|
2
|
-
import { ZIndexLayer as
|
|
3
|
-
import { DEFAULT_CONTAINMENT_GUTTER as
|
|
4
|
-
import { resolveInterfaceI18n as
|
|
1
|
+
import { coerceBooleanAttributes as rs } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
+
import { ZIndexLayer as ns, connectToolRuntimeContext as is, createToolCoordinatorRegistration as ss } from "@pie-players/pie-assessment-toolkit/tools/registration";
|
|
3
|
+
import { DEFAULT_CONTAINMENT_GUTTER as as, clampPointWithinBlock as os, createPointerDragController as ls, createPointerGesture as fs, resolveContainingBlockRect as us } from "@pie-players/pie-players-shared";
|
|
4
|
+
import { resolveInterfaceI18n as cs } from "@pie-players/pie-players-shared/i18n/provider";
|
|
5
5
|
if (typeof window < "u") {
|
|
6
|
-
var
|
|
7
|
-
((
|
|
6
|
+
var fn, un;
|
|
7
|
+
((fn = (un = window).__svelte ?? (un.__svelte = {})).v ?? (fn.v = /* @__PURE__ */ new Set())).add("5");
|
|
8
8
|
}
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var Me = {}, H = /* @__PURE__ */ Symbol("uninitialized");
|
|
10
|
+
var ds = Array.isArray, hs = Array.prototype.indexOf, wt = Array.prototype.includes, vs = Array.from, Yt = Object.keys, mt = Object.defineProperty, De = Object.getOwnPropertyDescriptor, _s = Object.getOwnPropertyDescriptors, ps = Object.prototype, gs = Array.prototype, Pn = Object.getPrototypeOf, cn = Object.isExtensible, ws = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function ms(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
14
14
|
}
|
|
15
15
|
function On() {
|
|
@@ -22,78 +22,78 @@ function On() {
|
|
|
22
22
|
reject: t
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function bt(e) {
|
|
26
26
|
"@babel/helpers - typeof";
|
|
27
|
-
return
|
|
27
|
+
return bt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
28
28
|
return typeof t;
|
|
29
29
|
} : function(t) {
|
|
30
30
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
31
|
-
},
|
|
31
|
+
}, bt(e);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
if (
|
|
33
|
+
function bs(e, t) {
|
|
34
|
+
if (bt(e) != "object" || !e) return e;
|
|
35
35
|
var r = e[Symbol.toPrimitive];
|
|
36
36
|
if (r !== void 0) {
|
|
37
37
|
var n = r.call(e, t || "default");
|
|
38
|
-
if (
|
|
38
|
+
if (bt(n) != "object") return n;
|
|
39
39
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40
40
|
}
|
|
41
41
|
return (t === "string" ? String : Number)(e);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
var t =
|
|
45
|
-
return
|
|
43
|
+
function ys(e) {
|
|
44
|
+
var t = bs(e, "string");
|
|
45
|
+
return bt(t) == "symbol" ? t : t + "";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return (t =
|
|
47
|
+
function R(e, t, r) {
|
|
48
|
+
return (t = ys(t)) in e ? Object.defineProperty(e, t, {
|
|
49
49
|
value: r,
|
|
50
50
|
enumerable: !0,
|
|
51
51
|
configurable: !0,
|
|
52
52
|
writable: !0
|
|
53
53
|
}) : e[t] = r, e;
|
|
54
54
|
}
|
|
55
|
-
var mo = 1 << 24, K = 1024, V = 2048,
|
|
56
|
-
var
|
|
55
|
+
var mo = 1 << 24, K = 1024, V = 2048, Ge = 4096, Ir = 8192, Cn = 16384, Nr = 32768, yr = 1 << 25, Wr = 65536, bo = 1 << 17, yo = 1 << 18, ot = 1 << 19, $s = 1 << 20, dn = 1 << 21, ks = 1 << 22, Gt = 1 << 23, _t = /* @__PURE__ */ Symbol("$state"), In = /* @__PURE__ */ Symbol("component"), Nn = /* @__PURE__ */ Symbol("legacy props"), xs = /* @__PURE__ */ Symbol(""), Es = /* @__PURE__ */ Symbol("proxy path"), $r = /* @__PURE__ */ Symbol("attributes"), Ss = /* @__PURE__ */ Symbol("class"), kr = /* @__PURE__ */ Symbol("style"), Ft = /* @__PURE__ */ Symbol("text");
|
|
56
|
+
var Et = new class extends Error {
|
|
57
57
|
constructor(...t) {
|
|
58
|
-
super(...t),
|
|
58
|
+
super(...t), R(this, "name", "StaleReactionError"), R(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
59
59
|
}
|
|
60
|
-
}(),
|
|
61
|
-
function
|
|
60
|
+
}(), Ms = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
61
|
+
function Ts() {
|
|
62
62
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ar(e) {
|
|
65
65
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function As() {
|
|
68
68
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
72
|
-
|
|
70
|
+
var P = !1;
|
|
71
|
+
function et(e) {
|
|
72
|
+
P = e;
|
|
73
73
|
}
|
|
74
74
|
var T;
|
|
75
75
|
function se(e) {
|
|
76
76
|
if (e === null)
|
|
77
|
-
throw
|
|
77
|
+
throw ar(), Me;
|
|
78
78
|
return T = e;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Hr() {
|
|
81
81
|
return se(/* @__PURE__ */ ye(T));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
if (
|
|
83
|
+
function Wn(e) {
|
|
84
|
+
if (P) {
|
|
85
85
|
if (/* @__PURE__ */ ye(T) !== null)
|
|
86
|
-
throw
|
|
86
|
+
throw ar(), Me;
|
|
87
87
|
T = e;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
if (
|
|
90
|
+
function Rs(e = 1) {
|
|
91
|
+
if (P) {
|
|
92
92
|
for (var t = e, r = T; t--; ) r = /* @__PURE__ */ ye(r);
|
|
93
93
|
T = r;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Hn(e = !0) {
|
|
97
97
|
for (var t = 0, r = T; ; ) {
|
|
98
98
|
if (r.nodeType === 8) {
|
|
99
99
|
var n = r.data;
|
|
@@ -106,18 +106,18 @@ function Wn(e = !0) {
|
|
|
106
106
|
e && r.remove(), r = i;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Ln(e) {
|
|
110
110
|
if (!e || e.nodeType !== 8)
|
|
111
|
-
throw
|
|
111
|
+
throw ar(), Me;
|
|
112
112
|
return e.data;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Dn(e) {
|
|
115
115
|
return e === this.v;
|
|
116
116
|
}
|
|
117
117
|
function Ps(e, t) {
|
|
118
118
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function jn(e) {
|
|
121
121
|
return !Ps(e, this.v);
|
|
122
122
|
}
|
|
123
123
|
function Os(e) {
|
|
@@ -156,76 +156,76 @@ function Bs() {
|
|
|
156
156
|
function Fs() {
|
|
157
157
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
158
158
|
}
|
|
159
|
-
var
|
|
159
|
+
var Te = !1, St = !1;
|
|
160
160
|
function hn(e, t) {
|
|
161
161
|
return e.label = t, Us(e.v, t), e;
|
|
162
162
|
}
|
|
163
163
|
function Us(e, t) {
|
|
164
|
-
return e?.[
|
|
164
|
+
return e?.[Es]?.(t), e;
|
|
165
165
|
}
|
|
166
|
-
var
|
|
167
|
-
function
|
|
168
|
-
|
|
166
|
+
var C = null;
|
|
167
|
+
function it(e) {
|
|
168
|
+
C = e;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
|
|
172
|
-
p:
|
|
170
|
+
function zn(e, t = !1, r) {
|
|
171
|
+
C = {
|
|
172
|
+
p: C,
|
|
173
173
|
i: !1,
|
|
174
174
|
c: null,
|
|
175
175
|
e: null,
|
|
176
176
|
s: e,
|
|
177
177
|
x: null,
|
|
178
|
-
r:
|
|
179
|
-
l:
|
|
178
|
+
r: x,
|
|
179
|
+
l: St && !t ? {
|
|
180
180
|
s: null,
|
|
181
181
|
u: null,
|
|
182
182
|
$: []
|
|
183
183
|
} : null
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
var t =
|
|
186
|
+
function Bn(e) {
|
|
187
|
+
var t = C, r = t.e;
|
|
188
188
|
if (r !== null) {
|
|
189
189
|
t.e = null;
|
|
190
|
-
for (var n of r)
|
|
190
|
+
for (var n of r) ui(n);
|
|
191
191
|
}
|
|
192
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
192
|
+
return e !== void 0 && (t.x = e), t.i = !0, C = t.p, Lr(e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
194
|
+
function Lr(e = {}) {
|
|
195
|
+
return mt(e, In, { value: !0 }), e;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
return !
|
|
197
|
+
function Mt() {
|
|
198
|
+
return !St || C !== null && C.l === null;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
var e =
|
|
203
|
-
|
|
200
|
+
var We = [];
|
|
201
|
+
function Fn() {
|
|
202
|
+
var e = We;
|
|
203
|
+
We = [], ms(e);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
if (
|
|
207
|
-
var t =
|
|
205
|
+
function Ue(e) {
|
|
206
|
+
if (We.length === 0 && !pt) {
|
|
207
|
+
var t = We;
|
|
208
208
|
queueMicrotask(() => {
|
|
209
|
-
t ===
|
|
209
|
+
t === We && Fn();
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
We.push(e);
|
|
213
213
|
}
|
|
214
214
|
function qs() {
|
|
215
|
-
for (;
|
|
215
|
+
for (; We.length > 0; ) Fn();
|
|
216
216
|
}
|
|
217
|
-
var Ys = ~(V |
|
|
218
|
-
function
|
|
217
|
+
var Ys = ~(V | Ge | K);
|
|
218
|
+
function N(e, t) {
|
|
219
219
|
e.f = e.f & Ys | t;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
(e.f & 512) !== 0 || e.deps === null ?
|
|
221
|
+
function Dr(e) {
|
|
222
|
+
(e.f & 512) !== 0 || e.deps === null ? N(e, K) : N(e, Ge);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
224
|
+
function Un(e, t, r) {
|
|
225
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), N(e, K);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
var t =
|
|
227
|
+
function or(e) {
|
|
228
|
+
var t = E, r = x;
|
|
229
229
|
Z(null), de(null);
|
|
230
230
|
try {
|
|
231
231
|
return e();
|
|
@@ -234,13 +234,13 @@ function sr(e) {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
function Gs(e, t, r, n) {
|
|
237
|
-
const i =
|
|
237
|
+
const i = Mt() ? yt : Yn;
|
|
238
238
|
var s = e.filter((f) => !f.settled), o = t.map(i);
|
|
239
239
|
if (r.length === 0 && s.length === 0) {
|
|
240
240
|
n(o);
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
|
-
var l =
|
|
243
|
+
var l = x, h = Vs(), v = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
|
|
244
244
|
function p(f) {
|
|
245
245
|
if ((l.f & 16384) === 0) {
|
|
246
246
|
h();
|
|
@@ -249,10 +249,10 @@ function Gs(e, t, r, n) {
|
|
|
249
249
|
} catch (g) {
|
|
250
250
|
ce(g, l);
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
Vt();
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
var d =
|
|
255
|
+
var d = qn();
|
|
256
256
|
if (r.length === 0) {
|
|
257
257
|
v.then(() => p([])).finally(d);
|
|
258
258
|
return;
|
|
@@ -261,73 +261,77 @@ function Gs(e, t, r, n) {
|
|
|
261
261
|
Promise.all(r.map((f) => /* @__PURE__ */ Ks(f))).then(p).catch((f) => ce(f, l)).finally(d);
|
|
262
262
|
}
|
|
263
263
|
v ? v.then(() => {
|
|
264
|
-
|
|
264
|
+
if ((l.f & 16384) !== 0) {
|
|
265
|
+
d();
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
h(), c(), Vt();
|
|
265
269
|
}) : c();
|
|
266
270
|
}
|
|
267
271
|
function Vs() {
|
|
268
|
-
var e =
|
|
272
|
+
var e = x, t = E, r = C, n = S;
|
|
269
273
|
if (0) var i;
|
|
270
274
|
return function(o = !0) {
|
|
271
|
-
de(e), Z(t),
|
|
275
|
+
de(e), Z(t), it(r), o && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
272
276
|
};
|
|
273
277
|
}
|
|
274
278
|
var Xs = !1;
|
|
275
|
-
function
|
|
276
|
-
Xs = !1, de(null), Z(null),
|
|
279
|
+
function Vt(e = !0) {
|
|
280
|
+
Xs = !1, de(null), Z(null), it(null), e && S?.deactivate();
|
|
277
281
|
}
|
|
278
|
-
function
|
|
279
|
-
var e =
|
|
282
|
+
function qn() {
|
|
283
|
+
var e = x, t = e.b, r = S, n = !!t?.is_rendered();
|
|
280
284
|
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
281
285
|
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
282
286
|
};
|
|
283
287
|
}
|
|
284
288
|
// @__NO_SIDE_EFFECTS__
|
|
285
|
-
function
|
|
289
|
+
function yt(e) {
|
|
286
290
|
var t = 2 | V;
|
|
287
|
-
return
|
|
288
|
-
ctx:
|
|
291
|
+
return x !== null && (x.f |= ot), {
|
|
292
|
+
ctx: C,
|
|
289
293
|
deps: null,
|
|
290
294
|
effects: null,
|
|
291
|
-
equals:
|
|
295
|
+
equals: Dn,
|
|
292
296
|
f: t,
|
|
293
297
|
fn: e,
|
|
294
298
|
reactions: null,
|
|
295
299
|
rv: 0,
|
|
296
|
-
v:
|
|
300
|
+
v: H,
|
|
297
301
|
wv: 0,
|
|
298
|
-
parent:
|
|
302
|
+
parent: x,
|
|
299
303
|
ac: null
|
|
300
304
|
};
|
|
301
305
|
}
|
|
302
|
-
var
|
|
306
|
+
var ct = /* @__PURE__ */ Symbol("obsolete");
|
|
303
307
|
// @__NO_SIDE_EFFECTS__
|
|
304
308
|
function Ks(e, t, r) {
|
|
305
|
-
let n =
|
|
309
|
+
let n = x;
|
|
306
310
|
n === null && Cs();
|
|
307
|
-
var i = void 0, s =
|
|
311
|
+
var i = void 0, s = Tt(H), o = !E, l = /* @__PURE__ */ new Set();
|
|
308
312
|
return wa(() => {
|
|
309
|
-
var h =
|
|
313
|
+
var h = x, v = On();
|
|
310
314
|
i = v.promise;
|
|
311
315
|
try {
|
|
312
316
|
Promise.resolve(e()).then(v.resolve, (f) => {
|
|
313
|
-
f !==
|
|
314
|
-
}).finally(
|
|
317
|
+
f !== Et && v.reject(f);
|
|
318
|
+
}).finally(Vt);
|
|
315
319
|
} catch (f) {
|
|
316
|
-
v.reject(f),
|
|
320
|
+
v.reject(f), Vt();
|
|
317
321
|
}
|
|
318
|
-
var p =
|
|
322
|
+
var p = S;
|
|
319
323
|
if (o) {
|
|
320
|
-
if ((h.f & 32768) !== 0) var d =
|
|
321
|
-
if (n.b?.is_rendered()) p.async_deriveds.get(h)?.reject(
|
|
322
|
-
else for (const f of l.values()) f.reject(
|
|
324
|
+
if ((h.f & 32768) !== 0) var d = qn();
|
|
325
|
+
if (n.b?.is_rendered()) p.async_deriveds.get(h)?.reject(ct);
|
|
326
|
+
else for (const f of l.values()) f.reject(ct);
|
|
323
327
|
l.add(v), p.async_deriveds.set(h, v);
|
|
324
328
|
}
|
|
325
329
|
const c = (f, g = void 0) => {
|
|
326
|
-
d?.(), l.delete(v), g !==
|
|
330
|
+
d?.(), l.delete(v), g !== ct && (p.activate(), g ? (s.f |= Gt, nr(s, g)) : ((s.f & 8388608) !== 0 && (s.f ^= Gt), nr(s, f)), p.deactivate());
|
|
327
331
|
};
|
|
328
332
|
v.promise.then(c, (f) => c(null, f || "unknown"));
|
|
329
333
|
}), _a(() => {
|
|
330
|
-
for (const h of l) h.reject(
|
|
334
|
+
for (const h of l) h.reject(ct);
|
|
331
335
|
}), new Promise((h) => {
|
|
332
336
|
function v(p) {
|
|
333
337
|
function d() {
|
|
@@ -339,164 +343,164 @@ function Ks(e, t, r) {
|
|
|
339
343
|
});
|
|
340
344
|
}
|
|
341
345
|
// @__NO_SIDE_EFFECTS__
|
|
342
|
-
function
|
|
343
|
-
const t = /* @__PURE__ */
|
|
344
|
-
return
|
|
346
|
+
function cr(e) {
|
|
347
|
+
const t = /* @__PURE__ */ yt(e);
|
|
348
|
+
return Te || wi(t), t;
|
|
345
349
|
}
|
|
346
350
|
// @__NO_SIDE_EFFECTS__
|
|
347
|
-
function
|
|
348
|
-
const t = /* @__PURE__ */
|
|
349
|
-
return t.equals =
|
|
351
|
+
function Yn(e) {
|
|
352
|
+
const t = /* @__PURE__ */ yt(e);
|
|
353
|
+
return t.equals = jn, t;
|
|
350
354
|
}
|
|
351
355
|
function Zs(e) {
|
|
352
356
|
var t = e.effects;
|
|
353
357
|
if (t !== null) {
|
|
354
358
|
e.effects = null;
|
|
355
|
-
for (var r = 0; r < t.length; r += 1)
|
|
359
|
+
for (var r = 0; r < t.length; r += 1) U(t[r]);
|
|
356
360
|
}
|
|
357
361
|
}
|
|
358
|
-
function
|
|
359
|
-
var t, r =
|
|
360
|
-
if (!be && n !== null && e.v !==
|
|
361
|
-
return
|
|
362
|
+
function jr(e) {
|
|
363
|
+
var t, r = x, n = e.parent;
|
|
364
|
+
if (!be && n !== null && e.v !== H && (n.f & 24576) !== 0)
|
|
365
|
+
return Ts(), e.v;
|
|
362
366
|
de(n);
|
|
363
367
|
try {
|
|
364
|
-
Zs(e), t =
|
|
368
|
+
Zs(e), t = $i(e);
|
|
365
369
|
} finally {
|
|
366
370
|
de(r);
|
|
367
371
|
}
|
|
368
372
|
return t;
|
|
369
373
|
}
|
|
370
|
-
function
|
|
371
|
-
var t =
|
|
372
|
-
if (!e.equals(t) && (e.wv =
|
|
373
|
-
|
|
374
|
+
function Gn(e) {
|
|
375
|
+
var t = jr(e);
|
|
376
|
+
if (!e.equals(t) && (e.wv = bi(), (!S?.is_fork || e.deps === null) && (S !== null ? (S.capture(e, t, !0), rt?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
377
|
+
N(e, K);
|
|
374
378
|
return;
|
|
375
379
|
}
|
|
376
|
-
be || (z !== null ? (
|
|
380
|
+
be || (z !== null ? (Yr() || S?.is_fork) && z.set(e, t) : Dr(e));
|
|
377
381
|
}
|
|
378
382
|
function Js(e) {
|
|
379
383
|
if (e.effects !== null)
|
|
380
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
381
|
-
t.ac.abort(
|
|
382
|
-
}), t.fn !== null && (t.teardown =
|
|
384
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && or(() => {
|
|
385
|
+
t.ac.abort(Et), t.ac = null;
|
|
386
|
+
}), t.fn !== null && (t.teardown = ws), kt(t, 0), Vr(t));
|
|
383
387
|
}
|
|
384
|
-
function
|
|
388
|
+
function Vn(e) {
|
|
385
389
|
if (e.effects !== null)
|
|
386
|
-
for (const t of e.effects) t.teardown && t.fn !== null &&
|
|
390
|
+
for (const t of e.effects) t.teardown && t.fn !== null && st(t);
|
|
387
391
|
}
|
|
388
|
-
function
|
|
392
|
+
function Xn(e, t) {
|
|
389
393
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
390
394
|
}
|
|
391
|
-
function
|
|
392
|
-
|
|
393
|
-
}
|
|
394
|
-
function b(e, t, r) {
|
|
395
|
-
Gn(e, t), t.set(e, r);
|
|
395
|
+
function zr(e, t) {
|
|
396
|
+
Xn(e, t), t.add(e);
|
|
396
397
|
}
|
|
397
398
|
function y(e, t, r) {
|
|
399
|
+
Xn(e, t), t.set(e, r);
|
|
400
|
+
}
|
|
401
|
+
function m(e, t, r) {
|
|
398
402
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
399
403
|
throw new TypeError("Private element is not present on this object");
|
|
400
404
|
}
|
|
401
|
-
function
|
|
402
|
-
return e.set(
|
|
405
|
+
function b(e, t, r) {
|
|
406
|
+
return e.set(m(e, t), r), r;
|
|
403
407
|
}
|
|
404
408
|
function a(e, t) {
|
|
405
|
-
return e.get(
|
|
409
|
+
return e.get(m(e, t));
|
|
406
410
|
}
|
|
407
|
-
var
|
|
408
|
-
var Qs = 1,
|
|
411
|
+
var Kn, Xt = null, Ke = null, S = null, rt = null, z = null, xr = null, pt = !1, dr = !1, $t = null, Kt = null, Zn = 0;
|
|
412
|
+
var Qs = 1, Zt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakSet(), Ve = class Jn {
|
|
409
413
|
constructor() {
|
|
410
|
-
|
|
414
|
+
zr(this, O), R(this, "id", Qs++), y(this, Zt, !1), R(this, "linked", !0), y(this, je, null), y(this, He, null), R(this, "async_deriveds", /* @__PURE__ */ new Map()), R(this, "current", /* @__PURE__ */ new Map()), R(this, "previous", /* @__PURE__ */ new Map()), y(this, Jt, /* @__PURE__ */ new Set()), y(this, Lt, /* @__PURE__ */ new Set()), y(this, Ze, 0), y(this, Ce, /* @__PURE__ */ new Map()), y(this, dt, null), y(this, Q, []), y(this, Er, []), y(this, qe, /* @__PURE__ */ new Set()), y(this, ge, /* @__PURE__ */ new Set()), y(this, xe, /* @__PURE__ */ new Map()), y(this, Ut, /* @__PURE__ */ new Set()), R(this, "is_fork", !1), y(this, ht, !1), Ke === null ? Xt = Ke = this : (b(He, Ke, this), b(je, this, Ke)), Ke = this;
|
|
411
415
|
}
|
|
412
416
|
skip_effect(t) {
|
|
413
417
|
a(xe, this).has(t) || a(xe, this).set(t, {
|
|
414
418
|
d: [],
|
|
415
419
|
m: []
|
|
416
|
-
}), a(
|
|
420
|
+
}), a(Ut, this).delete(t);
|
|
417
421
|
}
|
|
418
422
|
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
419
423
|
var n = a(xe, this).get(t);
|
|
420
424
|
if (n) {
|
|
421
425
|
a(xe, this).delete(t);
|
|
422
426
|
for (var i of n.d)
|
|
423
|
-
|
|
427
|
+
N(i, V), r(i);
|
|
424
428
|
for (i of n.m)
|
|
425
|
-
|
|
429
|
+
N(i, Ge), r(i);
|
|
426
430
|
}
|
|
427
|
-
a(
|
|
431
|
+
a(Ut, this).add(t);
|
|
428
432
|
}
|
|
429
433
|
capture(t, r, n = !1) {
|
|
430
|
-
t.v !==
|
|
434
|
+
t.v !== H && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), z?.set(t, r)), this.is_fork || (t.v = r);
|
|
431
435
|
}
|
|
432
436
|
activate() {
|
|
433
|
-
|
|
437
|
+
S = this;
|
|
434
438
|
}
|
|
435
439
|
deactivate() {
|
|
436
|
-
|
|
440
|
+
S = null, z = null;
|
|
437
441
|
}
|
|
438
442
|
flush() {
|
|
439
443
|
try {
|
|
440
|
-
|
|
444
|
+
dr = !0, S = this, m(O, this, Qt).call(this);
|
|
441
445
|
} finally {
|
|
442
|
-
|
|
446
|
+
Zn = 0, xr = null, $t = null, Kt = null, dr = !1, S = null, z = null, ue.clear();
|
|
443
447
|
}
|
|
444
448
|
}
|
|
445
449
|
discard() {
|
|
446
|
-
for (const t of a(
|
|
447
|
-
a(
|
|
448
|
-
for (const t of this.async_deriveds.values()) t.reject(
|
|
449
|
-
|
|
450
|
+
for (const t of a(Lt, this)) t(this);
|
|
451
|
+
a(Lt, this).clear();
|
|
452
|
+
for (const t of this.async_deriveds.values()) t.reject(ct);
|
|
453
|
+
m(O, this, er).call(this), a(dt, this)?.resolve();
|
|
450
454
|
}
|
|
451
455
|
register_created_effect(t) {
|
|
452
|
-
a(
|
|
456
|
+
a(Er, this).push(t);
|
|
453
457
|
}
|
|
454
458
|
increment(t, r) {
|
|
455
|
-
if (
|
|
456
|
-
let n = a(
|
|
457
|
-
a(
|
|
459
|
+
if (b(Ze, this, a(Ze, this) + 1), t) {
|
|
460
|
+
let n = a(Ce, this).get(r) ?? 0;
|
|
461
|
+
a(Ce, this).set(r, n + 1);
|
|
458
462
|
}
|
|
459
463
|
}
|
|
460
464
|
decrement(t, r) {
|
|
461
|
-
if (
|
|
462
|
-
let n = a(
|
|
463
|
-
n === 1 ? a(
|
|
465
|
+
if (b(Ze, this, a(Ze, this) - 1), t) {
|
|
466
|
+
let n = a(Ce, this).get(r) ?? 0;
|
|
467
|
+
n === 1 ? a(Ce, this).delete(r) : a(Ce, this).set(r, n - 1);
|
|
464
468
|
}
|
|
465
|
-
a(
|
|
466
|
-
|
|
469
|
+
a(ht, this) || (b(ht, this, !0), Ue(() => {
|
|
470
|
+
b(ht, this, !1), this.linked && this.flush();
|
|
467
471
|
}));
|
|
468
472
|
}
|
|
469
473
|
transfer_effects(t, r) {
|
|
470
|
-
for (const n of t) a(
|
|
474
|
+
for (const n of t) a(qe, this).add(n);
|
|
471
475
|
for (const n of r) a(ge, this).add(n);
|
|
472
476
|
t.clear(), r.clear();
|
|
473
477
|
}
|
|
474
478
|
oncommit(t) {
|
|
475
|
-
a(
|
|
479
|
+
a(Jt, this).add(t);
|
|
476
480
|
}
|
|
477
481
|
ondiscard(t) {
|
|
478
|
-
a(
|
|
482
|
+
a(Lt, this).add(t);
|
|
479
483
|
}
|
|
480
484
|
settled() {
|
|
481
|
-
return (a(
|
|
485
|
+
return (a(dt, this) ?? b(dt, this, On())).promise;
|
|
482
486
|
}
|
|
483
487
|
static ensure() {
|
|
484
|
-
if (
|
|
485
|
-
const t =
|
|
486
|
-
!
|
|
487
|
-
a(
|
|
488
|
+
if (S === null) {
|
|
489
|
+
const t = S = new Jn();
|
|
490
|
+
!dr && !pt && Ue(() => {
|
|
491
|
+
a(Zt, t) || t.flush();
|
|
488
492
|
});
|
|
489
493
|
}
|
|
490
|
-
return
|
|
494
|
+
return S;
|
|
491
495
|
}
|
|
492
496
|
apply() {
|
|
493
|
-
if (!
|
|
497
|
+
if (!Te || !this.is_fork && a(je, this) === null && a(He, this) === null) {
|
|
494
498
|
z = null;
|
|
495
499
|
return;
|
|
496
500
|
}
|
|
497
501
|
z = /* @__PURE__ */ new Map();
|
|
498
502
|
for (const [r, [n]] of this.current) z.set(r, n);
|
|
499
|
-
for (let r =
|
|
503
|
+
for (let r = Xt; r !== null; r = a(He, r))
|
|
500
504
|
if (!(r === this || r.is_fork)) {
|
|
501
505
|
var t = !1;
|
|
502
506
|
if (r.id < this.id) {
|
|
@@ -511,17 +515,17 @@ var Qs = 1, Kt = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap
|
|
|
511
515
|
}
|
|
512
516
|
}
|
|
513
517
|
schedule(t) {
|
|
514
|
-
if (
|
|
518
|
+
if (xr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
515
519
|
t.b.defer_effect(t);
|
|
516
520
|
return;
|
|
517
521
|
}
|
|
518
522
|
a(Q, this).push(t);
|
|
519
523
|
}
|
|
520
524
|
};
|
|
521
|
-
|
|
525
|
+
Kn = Ve;
|
|
522
526
|
function vn() {
|
|
523
527
|
if (this.is_fork) return !0;
|
|
524
|
-
for (const r of a(
|
|
528
|
+
for (const r of a(Ce, this).keys()) {
|
|
525
529
|
for (var e = r, t = !1; e.parent !== null; ) {
|
|
526
530
|
if (a(xe, this).has(e)) {
|
|
527
531
|
t = !0;
|
|
@@ -533,7 +537,7 @@ function vn() {
|
|
|
533
537
|
}
|
|
534
538
|
return !1;
|
|
535
539
|
}
|
|
536
|
-
function
|
|
540
|
+
function Qn() {
|
|
537
541
|
var e = [];
|
|
538
542
|
for (const i of a(Q, this))
|
|
539
543
|
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
@@ -550,55 +554,55 @@ function Zn() {
|
|
|
550
554
|
}
|
|
551
555
|
r || e.push(t);
|
|
552
556
|
}
|
|
553
|
-
return
|
|
557
|
+
return b(Q, this, []), e;
|
|
554
558
|
}
|
|
555
|
-
function
|
|
556
|
-
|
|
557
|
-
for (const o of a(
|
|
558
|
-
a(ge, this).delete(o),
|
|
559
|
+
function Qt() {
|
|
560
|
+
b(Zt, this, !0);
|
|
561
|
+
for (const o of a(qe, this))
|
|
562
|
+
a(ge, this).delete(o), N(o, V), this.schedule(o);
|
|
559
563
|
for (const o of a(ge, this))
|
|
560
|
-
|
|
564
|
+
N(o, Ge), this.schedule(o);
|
|
561
565
|
this.apply();
|
|
562
|
-
for (var e =
|
|
563
|
-
|
|
564
|
-
for (const o of
|
|
565
|
-
|
|
566
|
+
for (var e = $t = [], t = [], r = Kt = []; a(Q, this).length > 0; ) {
|
|
567
|
+
Zn++ > 1e3 && (m(O, this, er).call(this), na());
|
|
568
|
+
for (const o of m(O, this, Qn).call(this)) try {
|
|
569
|
+
m(O, this, ei).call(this, o, e, t);
|
|
566
570
|
} catch (l) {
|
|
567
|
-
throw
|
|
571
|
+
throw ni(o), m(O, this, vn).call(this) || this.discard(), l;
|
|
568
572
|
}
|
|
569
573
|
}
|
|
570
|
-
if (
|
|
571
|
-
var n =
|
|
574
|
+
if (S = null, r.length > 0) {
|
|
575
|
+
var n = Kn.ensure();
|
|
572
576
|
for (const o of r) n.schedule(o);
|
|
573
577
|
}
|
|
574
|
-
if (
|
|
575
|
-
|
|
576
|
-
for (const [o, l] of a(xe, this))
|
|
577
|
-
r.length > 0 &&
|
|
578
|
+
if ($t = null, Kt = null, m(O, this, vn).call(this)) {
|
|
579
|
+
m(O, this, vt).call(this, t), m(O, this, vt).call(this, e);
|
|
580
|
+
for (const [o, l] of a(xe, this)) ri(o, l);
|
|
581
|
+
r.length > 0 && m(O, S, Qt).call(S);
|
|
578
582
|
return;
|
|
579
583
|
}
|
|
580
|
-
const i =
|
|
584
|
+
const i = m(O, this, ea).call(this);
|
|
581
585
|
if (i) {
|
|
582
|
-
|
|
586
|
+
m(O, this, vt).call(this, t), m(O, this, vt).call(this, e), m(O, i, ta).call(i, this);
|
|
583
587
|
return;
|
|
584
588
|
}
|
|
585
|
-
a(
|
|
586
|
-
for (const o of a(
|
|
587
|
-
a(
|
|
588
|
-
var s =
|
|
589
|
-
if (a(
|
|
589
|
+
a(qe, this).clear(), a(ge, this).clear();
|
|
590
|
+
for (const o of a(Jt, this)) o(this);
|
|
591
|
+
a(Jt, this).clear(), rt = this, _n(t), _n(e), rt = null, a(dt, this)?.resolve();
|
|
592
|
+
var s = S;
|
|
593
|
+
if (a(Ze, this) === 0 && (a(Q, this).length === 0 || s !== null) && (m(O, this, er).call(this), Te && (m(O, this, ra).call(this), S = s)), a(Q, this).length > 0)
|
|
590
594
|
if (s !== null) {
|
|
591
595
|
for (const o of a(Q, this)) a(Q, s).push(o);
|
|
592
|
-
|
|
596
|
+
b(Q, this, []);
|
|
593
597
|
} else s = this;
|
|
594
|
-
s !== null && (ue.clear(),
|
|
598
|
+
s !== null && (ue.clear(), m(O, s, Qt).call(s));
|
|
595
599
|
}
|
|
596
|
-
function
|
|
600
|
+
function ei(e, t, r) {
|
|
597
601
|
e.f ^= K;
|
|
598
602
|
for (var n = e.first; n !== null; ) {
|
|
599
603
|
var i = n.f, s = (i & 96) !== 0;
|
|
600
604
|
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(xe, this).has(n)) && n.fn !== null) {
|
|
601
|
-
s ? n.f ^= K : (i & 4) !== 0 ? t.push(n) :
|
|
605
|
+
s ? n.f ^= K : (i & 4) !== 0 ? t.push(n) : Te && (i & 16777224) !== 0 ? r.push(n) : Rt(n) && ((i & 16) !== 0 && a(ge, this).add(n), st(n));
|
|
602
606
|
var o = n.first;
|
|
603
607
|
if (o !== null) {
|
|
604
608
|
n = o;
|
|
@@ -616,11 +620,11 @@ function Jn(e, t, r) {
|
|
|
616
620
|
}
|
|
617
621
|
}
|
|
618
622
|
function ea() {
|
|
619
|
-
for (var e = a(
|
|
623
|
+
for (var e = a(je, this); e !== null; ) {
|
|
620
624
|
if (!e.is_fork) {
|
|
621
625
|
for (const [t, [, r]] of this.current) if (e.current.has(t) && !r) return e;
|
|
622
626
|
}
|
|
623
|
-
e = a(
|
|
627
|
+
e = a(je, e);
|
|
624
628
|
}
|
|
625
629
|
return null;
|
|
626
630
|
}
|
|
@@ -631,7 +635,7 @@ function ta(e) {
|
|
|
631
635
|
const i = this.async_deriveds.get(r);
|
|
632
636
|
i && n.promise.then(i.resolve).catch(i.reject);
|
|
633
637
|
}
|
|
634
|
-
e.async_deriveds.clear(), this.transfer_effects(a(
|
|
638
|
+
e.async_deriveds.clear(), this.transfer_effects(a(qe, e), a(ge, e));
|
|
635
639
|
const t = (r) => {
|
|
636
640
|
var n = r.reactions;
|
|
637
641
|
if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
|
|
@@ -640,18 +644,18 @@ function ta(e) {
|
|
|
640
644
|
if ((i & 2) !== 0) t(o);
|
|
641
645
|
else {
|
|
642
646
|
var s = o;
|
|
643
|
-
i & 4194320 && !this.async_deriveds.has(s) && (a(ge, this).delete(s),
|
|
647
|
+
i & 4194320 && !this.async_deriveds.has(s) && (a(ge, this).delete(s), N(s, V), this.schedule(s));
|
|
644
648
|
}
|
|
645
649
|
}
|
|
646
650
|
};
|
|
647
651
|
for (const r of this.current.keys()) t(r);
|
|
648
|
-
this.oncommit(() => e.discard()),
|
|
652
|
+
this.oncommit(() => e.discard()), m(O, e, er).call(e), S = this, m(O, this, Qt).call(this);
|
|
649
653
|
}
|
|
650
|
-
function
|
|
651
|
-
for (var t = 0; t < e.length; t += 1)
|
|
654
|
+
function vt(e) {
|
|
655
|
+
for (var t = 0; t < e.length; t += 1) Un(e[t], a(qe, this), a(ge, this));
|
|
652
656
|
}
|
|
653
657
|
function ra() {
|
|
654
|
-
for (let p =
|
|
658
|
+
for (let p = Xt; p !== null; p = a(He, p)) {
|
|
655
659
|
var e = p.id < this.id, t = [];
|
|
656
660
|
for (const [d, [c, f]] of this.current) {
|
|
657
661
|
if (p.current.has(d)) {
|
|
@@ -666,62 +670,62 @@ function ra() {
|
|
|
666
670
|
f && c.promise.then(f.resolve).catch(f.reject);
|
|
667
671
|
}
|
|
668
672
|
var n = [...p.current.keys()].filter((d) => !p.current.get(d)[1]);
|
|
669
|
-
if (!(!a(
|
|
673
|
+
if (!(!a(Zt, p) || n.length === 0)) {
|
|
670
674
|
var i = n.filter((d) => !this.current.has(d));
|
|
671
675
|
if (i.length === 0)
|
|
672
676
|
e && p.discard();
|
|
673
677
|
else if (t.length > 0) {
|
|
674
|
-
if (e) for (const d of a(
|
|
675
|
-
(c.f & 4194320) !== 0 ? p.schedule(c) :
|
|
678
|
+
if (e) for (const d of a(Ut, this)) p.unskip_effect(d, (c) => {
|
|
679
|
+
(c.f & 4194320) !== 0 ? p.schedule(c) : m(O, p, vt).call(p, [c]);
|
|
676
680
|
});
|
|
677
681
|
p.activate();
|
|
678
682
|
var s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
679
|
-
for (var l of t)
|
|
683
|
+
for (var l of t) ti(l, i, s, o);
|
|
680
684
|
o = /* @__PURE__ */ new Map();
|
|
681
685
|
var h = [...p.current].filter(([d, c]) => {
|
|
682
686
|
const f = this.current.get(d);
|
|
683
687
|
return f ? f[0] !== c[0] || f[1] !== c[1] : !0;
|
|
684
688
|
}).map(([d]) => d);
|
|
685
689
|
if (h.length > 0)
|
|
686
|
-
for (const d of a(
|
|
687
|
-
if (a(Q, p).length > 0 && !a(
|
|
690
|
+
for (const d of a(Er, this)) (d.f & 155648) === 0 && Br(d, h, o) && ((d.f & 4194320) !== 0 ? (N(d, V), p.schedule(d)) : a(qe, p).add(d));
|
|
691
|
+
if (a(Q, p).length > 0 && !a(ht, p)) {
|
|
688
692
|
p.apply();
|
|
689
|
-
for (var v of
|
|
693
|
+
for (var v of m(O, p, Qn).call(p)) m(O, p, ei).call(p, v, [], []);
|
|
690
694
|
}
|
|
691
695
|
p.deactivate();
|
|
692
696
|
}
|
|
693
697
|
}
|
|
694
698
|
}
|
|
695
699
|
}
|
|
696
|
-
function
|
|
700
|
+
function er() {
|
|
697
701
|
if (this.linked) {
|
|
698
|
-
var e = a(
|
|
699
|
-
e === null ?
|
|
702
|
+
var e = a(je, this), t = a(He, this);
|
|
703
|
+
e === null ? Xt = t : b(He, e, t), t === null ? Ke = e : b(je, t, e), this.linked = !1;
|
|
700
704
|
}
|
|
701
705
|
}
|
|
702
|
-
function
|
|
703
|
-
var t =
|
|
704
|
-
|
|
706
|
+
function tr(e) {
|
|
707
|
+
var t = pt, r = rt;
|
|
708
|
+
rt = null, pt = !0;
|
|
705
709
|
try {
|
|
706
|
-
var
|
|
707
|
-
for (e && (
|
|
708
|
-
if (qs(),
|
|
709
|
-
|
|
710
|
+
var n;
|
|
711
|
+
for (e && (tr(), n = e()); ; ) {
|
|
712
|
+
if (qs(), S === null) return n;
|
|
713
|
+
S.flush();
|
|
710
714
|
}
|
|
711
715
|
} finally {
|
|
712
|
-
|
|
716
|
+
pt = t, rt = r;
|
|
713
717
|
}
|
|
714
718
|
}
|
|
715
719
|
function na() {
|
|
716
720
|
if (0) {
|
|
717
721
|
var e;
|
|
718
|
-
for (const r of
|
|
722
|
+
for (const r of S.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
719
723
|
var t;
|
|
720
724
|
}
|
|
721
725
|
try {
|
|
722
726
|
Hs();
|
|
723
727
|
} catch (r) {
|
|
724
|
-
ce(r,
|
|
728
|
+
ce(r, xr);
|
|
725
729
|
}
|
|
726
730
|
}
|
|
727
731
|
var le = null;
|
|
@@ -730,7 +734,7 @@ function _n(e) {
|
|
|
730
734
|
if (t !== 0) {
|
|
731
735
|
for (var r = 0; r < t; ) {
|
|
732
736
|
var n = e[r++];
|
|
733
|
-
if ((n.f & 24576) === 0 &&
|
|
737
|
+
if ((n.f & 24576) === 0 && Rt(n) && (le = /* @__PURE__ */ new Set(), st(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && vi(n), le?.size > 0)) {
|
|
734
738
|
ue.clear();
|
|
735
739
|
for (const i of le) {
|
|
736
740
|
if ((i.f & 24576) !== 0) continue;
|
|
@@ -740,7 +744,7 @@ function _n(e) {
|
|
|
740
744
|
le.has(o) && (le.delete(o), s.push(o)), o = o.parent;
|
|
741
745
|
for (let l = s.length - 1; l >= 0; l--) {
|
|
742
746
|
const h = s[l];
|
|
743
|
-
(h.f & 24576) === 0 &&
|
|
747
|
+
(h.f & 24576) === 0 && st(h);
|
|
744
748
|
}
|
|
745
749
|
}
|
|
746
750
|
le.clear();
|
|
@@ -749,46 +753,46 @@ function _n(e) {
|
|
|
749
753
|
le = null;
|
|
750
754
|
}
|
|
751
755
|
}
|
|
752
|
-
function
|
|
756
|
+
function ti(e, t, r, n) {
|
|
753
757
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
754
758
|
for (const i of e.reactions) {
|
|
755
759
|
const s = i.f;
|
|
756
|
-
(s & 2) !== 0 ?
|
|
760
|
+
(s & 2) !== 0 ? ti(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && Br(i, t, n) && (N(i, V), Fr(i));
|
|
757
761
|
}
|
|
758
762
|
}
|
|
759
|
-
function
|
|
763
|
+
function Br(e, t, r) {
|
|
760
764
|
const n = r.get(e);
|
|
761
765
|
if (n !== void 0) return n;
|
|
762
766
|
if (e.deps !== null) for (const i of e.deps) {
|
|
763
|
-
if (
|
|
764
|
-
if ((i.f & 2) !== 0 &&
|
|
767
|
+
if (wt.call(t, i)) return !0;
|
|
768
|
+
if ((i.f & 2) !== 0 && Br(i, t, r))
|
|
765
769
|
return r.set(i, !0), !0;
|
|
766
770
|
}
|
|
767
771
|
return r.set(e, !1), !1;
|
|
768
772
|
}
|
|
769
|
-
function
|
|
770
|
-
|
|
773
|
+
function Fr(e) {
|
|
774
|
+
S.schedule(e);
|
|
771
775
|
}
|
|
772
|
-
function
|
|
776
|
+
function ri(e, t) {
|
|
773
777
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
774
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e),
|
|
778
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), N(e, K);
|
|
775
779
|
for (var r = e.first; r !== null; )
|
|
776
|
-
|
|
780
|
+
ri(r, t), r = r.next;
|
|
777
781
|
}
|
|
778
782
|
}
|
|
779
|
-
function
|
|
780
|
-
|
|
783
|
+
function ni(e) {
|
|
784
|
+
N(e, K);
|
|
781
785
|
for (var t = e.first; t !== null; )
|
|
782
|
-
|
|
786
|
+
ni(t), t = t.next;
|
|
783
787
|
}
|
|
784
|
-
var
|
|
785
|
-
var
|
|
786
|
-
function
|
|
788
|
+
var rr = /* @__PURE__ */ new Set(), ue = /* @__PURE__ */ new Map();
|
|
789
|
+
var ii = !1;
|
|
790
|
+
function Tt(e, t) {
|
|
787
791
|
var r = {
|
|
788
792
|
f: 0,
|
|
789
793
|
v: e,
|
|
790
794
|
reactions: null,
|
|
791
|
-
equals:
|
|
795
|
+
equals: Dn,
|
|
792
796
|
rv: 0,
|
|
793
797
|
wv: 0
|
|
794
798
|
};
|
|
@@ -796,72 +800,72 @@ function Et(e, t) {
|
|
|
796
800
|
}
|
|
797
801
|
// @__NO_SIDE_EFFECTS__
|
|
798
802
|
function D(e, t) {
|
|
799
|
-
const r =
|
|
800
|
-
return
|
|
803
|
+
const r = Tt(e, t);
|
|
804
|
+
return wi(r), r;
|
|
801
805
|
}
|
|
802
806
|
// @__NO_SIDE_EFFECTS__
|
|
803
807
|
function ia(e, t = !1, r = !0) {
|
|
804
|
-
const n =
|
|
805
|
-
if (t || (n.equals =
|
|
808
|
+
const n = Tt(e);
|
|
809
|
+
if (t || (n.equals = jn), St && r && C !== null && C.l !== null) {
|
|
806
810
|
var i;
|
|
807
|
-
((i =
|
|
811
|
+
((i = C.l).s ?? (i.s = [])).push(n);
|
|
808
812
|
}
|
|
809
813
|
return n;
|
|
810
814
|
}
|
|
811
815
|
function M(e, t, r = !1) {
|
|
812
|
-
|
|
816
|
+
E !== null && (!ee || (E.f & 131072) !== 0) && Mt() && (E.f & 4325394) !== 0 && (re === null || !re.has(e)) && Bs();
|
|
813
817
|
let n = r ? Ee(t) : t;
|
|
814
|
-
return
|
|
818
|
+
return nr(e, n, Kt);
|
|
815
819
|
}
|
|
816
|
-
var
|
|
817
|
-
function
|
|
820
|
+
var Ne = null, Sr = 0;
|
|
821
|
+
function nr(e, t, r = null) {
|
|
818
822
|
if (!e.equals(t)) {
|
|
819
823
|
be ? ue.set(e, t) : ue.has(e) || ue.set(e, e.v);
|
|
820
|
-
var n =
|
|
824
|
+
var n = Ve.ensure();
|
|
821
825
|
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
822
826
|
const i = e;
|
|
823
|
-
(e.f & 2048) !== 0 &&
|
|
827
|
+
(e.f & 2048) !== 0 && jr(i), z === null && Dr(i);
|
|
824
828
|
}
|
|
825
|
-
e.wv =
|
|
829
|
+
e.wv = bi(), Ne = null, Sr = 0, si(e, V, r), Ne = null, Mt() && x !== null && (x.f & 1024) !== 0 && (x.f & 96) === 0 && (X === null ? ka([e]) : X.push(e)), !n.is_fork && rr.size > 0 && !ii && sa();
|
|
826
830
|
}
|
|
827
831
|
return t;
|
|
828
832
|
}
|
|
829
833
|
function sa() {
|
|
830
|
-
|
|
831
|
-
for (const e of
|
|
832
|
-
(e.f & 1024) !== 0 &&
|
|
834
|
+
ii = !1;
|
|
835
|
+
for (const e of rr) {
|
|
836
|
+
(e.f & 1024) !== 0 && N(e, Ge);
|
|
833
837
|
let t;
|
|
834
838
|
try {
|
|
835
|
-
t =
|
|
839
|
+
t = Rt(e);
|
|
836
840
|
} catch {
|
|
837
841
|
t = !0;
|
|
838
842
|
}
|
|
839
|
-
t &&
|
|
843
|
+
t && st(e);
|
|
840
844
|
}
|
|
841
|
-
|
|
845
|
+
rr.clear();
|
|
842
846
|
}
|
|
843
|
-
function
|
|
847
|
+
function gt(e) {
|
|
844
848
|
M(e, e.v + 1);
|
|
845
849
|
}
|
|
846
|
-
function
|
|
850
|
+
function si(e, t, r) {
|
|
847
851
|
var n = e.reactions;
|
|
848
852
|
if (n !== null) {
|
|
849
|
-
var i =
|
|
850
|
-
if (
|
|
851
|
-
if (
|
|
852
|
-
|
|
853
|
+
var i = Mt(), s = n.length;
|
|
854
|
+
if (Sr += s, Sr > 1e5 && Ne === null && (Ne = /* @__PURE__ */ new Set()), Ne !== null) {
|
|
855
|
+
if (Ne.has(e)) return;
|
|
856
|
+
Ne.add(e);
|
|
853
857
|
}
|
|
854
858
|
for (var o = 0; o < s; o++) {
|
|
855
859
|
var l = n[o], h = l.f;
|
|
856
|
-
if (!(!i && l ===
|
|
860
|
+
if (!(!i && l === x)) {
|
|
857
861
|
var v = (h & V) === 0;
|
|
858
|
-
if (v &&
|
|
862
|
+
if (v && N(l, t), (h & 131072) !== 0) rr.add(l);
|
|
859
863
|
else if ((h & 2) !== 0) {
|
|
860
864
|
var p = l;
|
|
861
|
-
z?.delete(p),
|
|
865
|
+
z?.delete(p), si(p, Ge, r);
|
|
862
866
|
} else if (v) {
|
|
863
867
|
var d = l;
|
|
864
|
-
(h & 16) !== 0 && le !== null && le.add(d), r !== null ? r.push(d) :
|
|
868
|
+
(h & 16) !== 0 && le !== null && le.add(d), r !== null ? r.push(d) : Fr(d);
|
|
865
869
|
}
|
|
866
870
|
}
|
|
867
871
|
}
|
|
@@ -869,12 +873,12 @@ function ni(e, t, r) {
|
|
|
869
873
|
}
|
|
870
874
|
var aa = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
871
875
|
function Ee(e) {
|
|
872
|
-
if (typeof e != "object" || e === null ||
|
|
876
|
+
if (typeof e != "object" || e === null || _t in e || In in e) return e;
|
|
873
877
|
const t = Pn(e);
|
|
874
|
-
if (t !==
|
|
875
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
876
|
-
if (
|
|
877
|
-
var c =
|
|
878
|
+
if (t !== ps && t !== gs) return e;
|
|
879
|
+
var r = /* @__PURE__ */ new Map(), n = ds(e), i = /* @__PURE__ */ D(0), s = null, o = ze, l = (d) => {
|
|
880
|
+
if (ze === o) return d();
|
|
881
|
+
var c = E, f = ze;
|
|
878
882
|
Z(null), bn(o);
|
|
879
883
|
var g = d();
|
|
880
884
|
return Z(c), bn(f), g;
|
|
@@ -902,22 +906,22 @@ function Ee(e) {
|
|
|
902
906
|
var f = r.get(c);
|
|
903
907
|
if (f === void 0) {
|
|
904
908
|
if (c in d) {
|
|
905
|
-
const g = l(() => /* @__PURE__ */ D(
|
|
906
|
-
r.set(c, g),
|
|
909
|
+
const g = l(() => /* @__PURE__ */ D(H, s));
|
|
910
|
+
r.set(c, g), gt(i);
|
|
907
911
|
}
|
|
908
912
|
} else
|
|
909
|
-
M(f,
|
|
913
|
+
M(f, H), gt(i);
|
|
910
914
|
return !0;
|
|
911
915
|
},
|
|
912
916
|
get(d, c, f) {
|
|
913
|
-
if (c ===
|
|
917
|
+
if (c === _t) return e;
|
|
914
918
|
var g = r.get(c), w = c in d;
|
|
915
|
-
if (g === void 0 && (!w ||
|
|
916
|
-
var
|
|
919
|
+
if (g === void 0 && (!w || De(d, c)?.writable) && (g = l(() => {
|
|
920
|
+
var I = Ee(w ? d[c] : H), L = /* @__PURE__ */ D(I, s);
|
|
917
921
|
return L;
|
|
918
922
|
}), r.set(c, g)), g !== void 0) {
|
|
919
923
|
var $ = u(g);
|
|
920
|
-
return $ ===
|
|
924
|
+
return $ === H ? void 0 : $;
|
|
921
925
|
}
|
|
922
926
|
return Reflect.get(d, c, f);
|
|
923
927
|
},
|
|
@@ -926,7 +930,7 @@ function Ee(e) {
|
|
|
926
930
|
var f = Reflect.getOwnPropertyDescriptor(d, c), g = r.get(c);
|
|
927
931
|
if (g !== void 0) {
|
|
928
932
|
var w = u(g);
|
|
929
|
-
if (w ===
|
|
933
|
+
if (w === H) return;
|
|
930
934
|
if (f && "value" in f) f.value = w;
|
|
931
935
|
else return {
|
|
932
936
|
enumerable: !0,
|
|
@@ -938,33 +942,33 @@ function Ee(e) {
|
|
|
938
942
|
return f;
|
|
939
943
|
},
|
|
940
944
|
has(d, c) {
|
|
941
|
-
if (c ===
|
|
942
|
-
var f = r.get(c), g = f !== void 0 && f.v !==
|
|
943
|
-
return (f !== void 0 ||
|
|
944
|
-
var w = g ? Ee(d[c]) :
|
|
945
|
+
if (c === _t) return !0;
|
|
946
|
+
var f = r.get(c), g = f !== void 0 && f.v !== H || Reflect.has(d, c);
|
|
947
|
+
return (f !== void 0 || x !== null && (!g || De(d, c)?.writable)) && (f === void 0 && (f = l(() => {
|
|
948
|
+
var w = g ? Ee(d[c]) : H, $ = /* @__PURE__ */ D(w, s);
|
|
945
949
|
return $;
|
|
946
|
-
}), r.set(c, f)), u(f) ===
|
|
950
|
+
}), r.set(c, f)), u(f) === H) ? !1 : g;
|
|
947
951
|
},
|
|
948
952
|
set(d, c, f, g) {
|
|
949
953
|
var w = r.get(c), $ = c in d;
|
|
950
|
-
if (n && c === "length") for (var
|
|
951
|
-
var L = r.get(
|
|
952
|
-
L !== void 0 ? M(L,
|
|
954
|
+
if (n && c === "length") for (var I = f; I < w.v; I += 1) {
|
|
955
|
+
var L = r.get(I + "");
|
|
956
|
+
L !== void 0 ? M(L, H) : I in d && (L = l(() => /* @__PURE__ */ D(H, s)), r.set(I + "", L));
|
|
953
957
|
}
|
|
954
958
|
if (w === void 0)
|
|
955
|
-
(!$ ||
|
|
959
|
+
(!$ || De(d, c)?.writable) && (w = l(() => /* @__PURE__ */ D(void 0, s)), M(w, Ee(f)), r.set(c, w));
|
|
956
960
|
else {
|
|
957
|
-
$ = w.v !==
|
|
961
|
+
$ = w.v !== H;
|
|
958
962
|
var ve = l(() => Ee(f));
|
|
959
963
|
M(w, ve);
|
|
960
964
|
}
|
|
961
|
-
var
|
|
962
|
-
if (
|
|
965
|
+
var W = Reflect.getOwnPropertyDescriptor(d, c);
|
|
966
|
+
if (W?.set && W.set.call(g, f), !$) {
|
|
963
967
|
if (n && typeof c == "string") {
|
|
964
968
|
var _e = r.get("length"), $e = Number(c);
|
|
965
969
|
Number.isInteger($e) && $e >= _e.v && M(_e, $e + 1);
|
|
966
970
|
}
|
|
967
|
-
|
|
971
|
+
gt(i);
|
|
968
972
|
}
|
|
969
973
|
return !0;
|
|
970
974
|
},
|
|
@@ -972,9 +976,9 @@ function Ee(e) {
|
|
|
972
976
|
u(i);
|
|
973
977
|
var c = Reflect.ownKeys(d).filter((w) => {
|
|
974
978
|
var $ = r.get(w);
|
|
975
|
-
return $ === void 0 || $.v !==
|
|
979
|
+
return $ === void 0 || $.v !== H;
|
|
976
980
|
});
|
|
977
|
-
for (var [f, g] of r) g.v !==
|
|
981
|
+
for (var [f, g] of r) g.v !== H && !(f in d) && c.push(f);
|
|
978
982
|
return c;
|
|
979
983
|
},
|
|
980
984
|
setPrototypeOf() {
|
|
@@ -985,38 +989,38 @@ function Ee(e) {
|
|
|
985
989
|
function oa(e, t) {
|
|
986
990
|
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : aa.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
987
991
|
}
|
|
988
|
-
var pn, la,
|
|
989
|
-
function
|
|
992
|
+
var pn, la, ai, oi, li;
|
|
993
|
+
function Mr() {
|
|
990
994
|
if (pn === void 0) {
|
|
991
|
-
pn = window, la = document,
|
|
995
|
+
pn = window, la = document, ai = /Firefox/.test(navigator.userAgent);
|
|
992
996
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
993
|
-
|
|
997
|
+
oi = De(t, "firstChild").get, li = De(t, "nextSibling").get, cn(e) && (e[Ss] = void 0, e[$r] = null, e[kr] = void 0, e.__e = void 0), cn(r) && (r[Ft] = void 0);
|
|
994
998
|
}
|
|
995
999
|
}
|
|
996
1000
|
function we(e = "") {
|
|
997
1001
|
return document.createTextNode(e);
|
|
998
1002
|
}
|
|
999
1003
|
// @__NO_SIDE_EFFECTS__
|
|
1000
|
-
function
|
|
1001
|
-
return
|
|
1004
|
+
function Ye(e) {
|
|
1005
|
+
return oi.call(e);
|
|
1002
1006
|
}
|
|
1003
1007
|
// @__NO_SIDE_EFFECTS__
|
|
1004
1008
|
function ye(e) {
|
|
1005
|
-
return
|
|
1009
|
+
return li.call(e);
|
|
1006
1010
|
}
|
|
1007
|
-
function
|
|
1008
|
-
if (!
|
|
1009
|
-
var r = /* @__PURE__ */
|
|
1011
|
+
function fi(e, t) {
|
|
1012
|
+
if (!P) return /* @__PURE__ */ Ye(e);
|
|
1013
|
+
var r = /* @__PURE__ */ Ye(T);
|
|
1010
1014
|
if (r === null) r = T.appendChild(we());
|
|
1011
1015
|
else if (t && r.nodeType !== 3) {
|
|
1012
1016
|
var n = we();
|
|
1013
1017
|
return r?.before(n), se(n), n;
|
|
1014
1018
|
}
|
|
1015
|
-
return t &&
|
|
1019
|
+
return t && qr(r), se(r), r;
|
|
1016
1020
|
}
|
|
1017
1021
|
function gn(e, t = !1) {
|
|
1018
|
-
if (!
|
|
1019
|
-
var r = /* @__PURE__ */
|
|
1022
|
+
if (!P) {
|
|
1023
|
+
var r = /* @__PURE__ */ Ye(e);
|
|
1020
1024
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ye(r) : r;
|
|
1021
1025
|
}
|
|
1022
1026
|
if (t) {
|
|
@@ -1024,26 +1028,26 @@ function gn(e, t = !1) {
|
|
|
1024
1028
|
var n = we();
|
|
1025
1029
|
return T?.before(n), se(n), n;
|
|
1026
1030
|
}
|
|
1027
|
-
|
|
1031
|
+
qr(T);
|
|
1028
1032
|
}
|
|
1029
1033
|
return T;
|
|
1030
1034
|
}
|
|
1031
1035
|
function fa(e, t = !1) {
|
|
1032
|
-
if (!
|
|
1033
|
-
var r =
|
|
1034
|
-
return
|
|
1036
|
+
if (!P) return /* @__PURE__ */ Ye(e);
|
|
1037
|
+
var r = fi(e, t);
|
|
1038
|
+
return Wn(e), r;
|
|
1035
1039
|
}
|
|
1036
|
-
function
|
|
1037
|
-
let n =
|
|
1040
|
+
function Dt(e, t = 1, r = !1) {
|
|
1041
|
+
let n = P ? T : e;
|
|
1038
1042
|
for (var i; t--; )
|
|
1039
1043
|
i = n, n = /* @__PURE__ */ ye(n);
|
|
1040
|
-
if (!
|
|
1044
|
+
if (!P) return n;
|
|
1041
1045
|
if (r) {
|
|
1042
1046
|
if (n?.nodeType !== 3) {
|
|
1043
1047
|
var s = we();
|
|
1044
1048
|
return n === null ? i?.after(s) : n.before(s), se(s), s;
|
|
1045
1049
|
}
|
|
1046
|
-
|
|
1050
|
+
qr(n);
|
|
1047
1051
|
}
|
|
1048
1052
|
return se(n), n;
|
|
1049
1053
|
}
|
|
@@ -1051,26 +1055,27 @@ function ua(e) {
|
|
|
1051
1055
|
e.textContent = "";
|
|
1052
1056
|
}
|
|
1053
1057
|
function ca() {
|
|
1054
|
-
return !
|
|
1058
|
+
return !Te || le !== null ? !1 : (x.f & Nr) !== 0;
|
|
1055
1059
|
}
|
|
1056
|
-
function
|
|
1060
|
+
function Ur(e, t, r) {
|
|
1057
1061
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
1058
1062
|
}
|
|
1059
|
-
function
|
|
1063
|
+
function qr(e) {
|
|
1060
1064
|
if (e.nodeValue.length < 65536) return;
|
|
1061
1065
|
let t = e.nextSibling;
|
|
1062
1066
|
for (; t !== null && t.nodeType === 3; )
|
|
1063
1067
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1064
1068
|
}
|
|
1065
1069
|
function da(e) {
|
|
1066
|
-
var t =
|
|
1070
|
+
var t = x;
|
|
1067
1071
|
if (t === null)
|
|
1068
|
-
return
|
|
1072
|
+
return E.f |= Gt, e;
|
|
1069
1073
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
1070
1074
|
throw e;
|
|
1071
1075
|
ce(e, t);
|
|
1072
1076
|
}
|
|
1073
1077
|
function ce(e, t) {
|
|
1078
|
+
if (e === Me) throw e;
|
|
1074
1079
|
if (!(t !== null && (t.f & 16384) !== 0)) {
|
|
1075
1080
|
for (; t !== null; ) {
|
|
1076
1081
|
if ((t.f & 128) !== 0 && (t.f & 33570816) === 0) {
|
|
@@ -1088,17 +1093,17 @@ function ce(e, t) {
|
|
|
1088
1093
|
}
|
|
1089
1094
|
}
|
|
1090
1095
|
function ha(e) {
|
|
1091
|
-
|
|
1096
|
+
x === null && (E === null && Ws(e), Ns()), be && Is(e);
|
|
1092
1097
|
}
|
|
1093
1098
|
function va(e, t) {
|
|
1094
1099
|
var r = t.last;
|
|
1095
1100
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1096
1101
|
}
|
|
1097
1102
|
function he(e, t) {
|
|
1098
|
-
var r =
|
|
1099
|
-
r !== null && (r.f & 8192) !== 0 && (e |=
|
|
1103
|
+
var r = x;
|
|
1104
|
+
r !== null && (r.f & 8192) !== 0 && (e |= Ir);
|
|
1100
1105
|
var n = {
|
|
1101
|
-
ctx:
|
|
1106
|
+
ctx: C,
|
|
1102
1107
|
deps: null,
|
|
1103
1108
|
nodes: null,
|
|
1104
1109
|
f: e | V | 512,
|
|
@@ -1113,65 +1118,65 @@ function he(e, t) {
|
|
|
1113
1118
|
wv: 0,
|
|
1114
1119
|
ac: null
|
|
1115
1120
|
};
|
|
1116
|
-
|
|
1121
|
+
S?.register_created_effect(n);
|
|
1117
1122
|
var i = n;
|
|
1118
1123
|
if ((e & 4) !== 0)
|
|
1119
|
-
|
|
1124
|
+
$t !== null ? $t.push(n) : Ve.ensure().schedule(n);
|
|
1120
1125
|
else if (t !== null) {
|
|
1121
1126
|
try {
|
|
1122
|
-
|
|
1127
|
+
st(n);
|
|
1123
1128
|
} catch (o) {
|
|
1124
|
-
throw
|
|
1129
|
+
throw U(n), o;
|
|
1125
1130
|
}
|
|
1126
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |=
|
|
1131
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Wr));
|
|
1127
1132
|
}
|
|
1128
|
-
if (i !== null && (i.parent = r, r !== null && va(i, r),
|
|
1129
|
-
var s =
|
|
1133
|
+
if (i !== null && (i.parent = r, r !== null && va(i, r), E !== null && (E.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1134
|
+
var s = E;
|
|
1130
1135
|
(s.effects ?? (s.effects = [])).push(i);
|
|
1131
1136
|
}
|
|
1132
1137
|
return n;
|
|
1133
1138
|
}
|
|
1134
|
-
function
|
|
1135
|
-
return
|
|
1139
|
+
function Yr() {
|
|
1140
|
+
return E !== null && !ee;
|
|
1136
1141
|
}
|
|
1137
1142
|
function _a(e) {
|
|
1138
1143
|
const t = he(8, null);
|
|
1139
|
-
return
|
|
1144
|
+
return N(t, K), t.teardown = e, t;
|
|
1140
1145
|
}
|
|
1141
|
-
function
|
|
1146
|
+
function Ie(e) {
|
|
1142
1147
|
ha("$effect");
|
|
1143
|
-
var t =
|
|
1144
|
-
if (!
|
|
1145
|
-
var r =
|
|
1148
|
+
var t = x.f;
|
|
1149
|
+
if (!E && (t & 32) !== 0 && C !== null && !C.i) {
|
|
1150
|
+
var r = C;
|
|
1146
1151
|
(r.e ?? (r.e = [])).push(e);
|
|
1147
|
-
} else return
|
|
1152
|
+
} else return ui(e);
|
|
1148
1153
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return he(4 |
|
|
1154
|
+
function ui(e) {
|
|
1155
|
+
return he(4 | $s, e);
|
|
1151
1156
|
}
|
|
1152
1157
|
function pa(e) {
|
|
1153
|
-
|
|
1154
|
-
const t = he(64 |
|
|
1158
|
+
Ve.ensure();
|
|
1159
|
+
const t = he(64 | ot, e);
|
|
1155
1160
|
return () => {
|
|
1156
|
-
|
|
1161
|
+
U(t);
|
|
1157
1162
|
};
|
|
1158
1163
|
}
|
|
1159
1164
|
function ga(e) {
|
|
1160
|
-
|
|
1161
|
-
const t = he(64 |
|
|
1165
|
+
Ve.ensure();
|
|
1166
|
+
const t = he(64 | ot, e);
|
|
1162
1167
|
return (r = {}) => new Promise((n) => {
|
|
1163
|
-
r.outro ?
|
|
1164
|
-
|
|
1165
|
-
}) : (
|
|
1168
|
+
r.outro ? At(t, () => {
|
|
1169
|
+
U(t), n(void 0);
|
|
1170
|
+
}) : (U(t), n(void 0));
|
|
1166
1171
|
});
|
|
1167
1172
|
}
|
|
1168
|
-
function
|
|
1173
|
+
function ci(e) {
|
|
1169
1174
|
return he(4, e);
|
|
1170
1175
|
}
|
|
1171
1176
|
function wa(e) {
|
|
1172
|
-
return he(
|
|
1177
|
+
return he(ks | ot, e);
|
|
1173
1178
|
}
|
|
1174
|
-
function
|
|
1179
|
+
function Gr(e, t = 0) {
|
|
1175
1180
|
return he(8 | t, e);
|
|
1176
1181
|
}
|
|
1177
1182
|
function ma(e, t = [], r = [], n = []) {
|
|
@@ -1181,17 +1186,17 @@ function ma(e, t = [], r = [], n = []) {
|
|
|
1181
1186
|
});
|
|
1182
1187
|
});
|
|
1183
1188
|
}
|
|
1184
|
-
function
|
|
1189
|
+
function di(e, t = 0) {
|
|
1185
1190
|
var r = he(16 | t, e);
|
|
1186
1191
|
return r;
|
|
1187
1192
|
}
|
|
1188
1193
|
function me(e) {
|
|
1189
|
-
return he(32 |
|
|
1194
|
+
return he(32 | ot, e);
|
|
1190
1195
|
}
|
|
1191
|
-
function
|
|
1196
|
+
function hi(e) {
|
|
1192
1197
|
var t = e.teardown;
|
|
1193
1198
|
if (t !== null) {
|
|
1194
|
-
const r = be, n =
|
|
1199
|
+
const r = be, n = E;
|
|
1195
1200
|
mn(!0), Z(null);
|
|
1196
1201
|
try {
|
|
1197
1202
|
t.call(null);
|
|
@@ -1202,31 +1207,31 @@ function ci(e) {
|
|
|
1202
1207
|
}
|
|
1203
1208
|
}
|
|
1204
1209
|
}
|
|
1205
|
-
function
|
|
1210
|
+
function Vr(e, t = !1) {
|
|
1206
1211
|
var r = e.first;
|
|
1207
1212
|
for (e.first = e.last = null; r !== null; ) {
|
|
1208
1213
|
const i = r.ac;
|
|
1209
|
-
i !== null &&
|
|
1210
|
-
i.abort(
|
|
1214
|
+
i !== null && or(() => {
|
|
1215
|
+
i.abort(Et);
|
|
1211
1216
|
});
|
|
1212
1217
|
var n = r.next;
|
|
1213
|
-
(r.f & 64) !== 0 ? r.parent = null :
|
|
1218
|
+
(r.f & 64) !== 0 ? r.parent = null : U(r, t), r = n;
|
|
1214
1219
|
}
|
|
1215
1220
|
}
|
|
1216
1221
|
function ba(e) {
|
|
1217
1222
|
for (var t = e.first; t !== null; ) {
|
|
1218
1223
|
var r = t.next;
|
|
1219
|
-
(t.f & 32) === 0 &&
|
|
1224
|
+
(t.f & 32) === 0 && U(t), t = r;
|
|
1220
1225
|
}
|
|
1221
1226
|
}
|
|
1222
|
-
function
|
|
1227
|
+
function U(e, t = !0) {
|
|
1223
1228
|
var r = !1;
|
|
1224
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (ya(e.nodes.start, e.nodes.end), r = !0), e.f |=
|
|
1229
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (ya(e.nodes.start, e.nodes.end), r = !0), e.f |= yr, Vr(e, t && !r), kt(e, 0);
|
|
1225
1230
|
var n = e.nodes && e.nodes.t;
|
|
1226
1231
|
if (n !== null) for (const s of n) s.stop();
|
|
1227
|
-
|
|
1232
|
+
hi(e), e.f ^= yr, e.f |= Cn;
|
|
1228
1233
|
var i = e.parent;
|
|
1229
|
-
i !== null && i.first !== null &&
|
|
1234
|
+
i !== null && i.first !== null && vi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1230
1235
|
}
|
|
1231
1236
|
function ya(e, t) {
|
|
1232
1237
|
for (; e !== null; ) {
|
|
@@ -1234,24 +1239,24 @@ function ya(e, t) {
|
|
|
1234
1239
|
e.remove(), e = r;
|
|
1235
1240
|
}
|
|
1236
1241
|
}
|
|
1237
|
-
function
|
|
1242
|
+
function vi(e) {
|
|
1238
1243
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1239
1244
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1240
1245
|
}
|
|
1241
|
-
function
|
|
1246
|
+
function At(e, t, r = !0) {
|
|
1242
1247
|
var n = [];
|
|
1243
|
-
e.f |= 256,
|
|
1248
|
+
e.f |= 256, _i(e, n, !0);
|
|
1244
1249
|
var i = () => {
|
|
1245
|
-
r &&
|
|
1250
|
+
r && U(e), t && t();
|
|
1246
1251
|
}, s = n.length;
|
|
1247
1252
|
if (s > 0) {
|
|
1248
1253
|
var o = () => --s || i();
|
|
1249
1254
|
for (var l of n) l.out(o);
|
|
1250
1255
|
} else i();
|
|
1251
1256
|
}
|
|
1252
|
-
function
|
|
1257
|
+
function _i(e, t, r) {
|
|
1253
1258
|
if ((e.f & 8192) === 0) {
|
|
1254
|
-
e.f ^=
|
|
1259
|
+
e.f ^= Ir;
|
|
1255
1260
|
var n = e.nodes && e.nodes.t;
|
|
1256
1261
|
if (n !== null)
|
|
1257
1262
|
for (const l of n) (l.is_global || r) && t.push(l);
|
|
@@ -1259,173 +1264,173 @@ function hi(e, t, r) {
|
|
|
1259
1264
|
var s = i.next;
|
|
1260
1265
|
if ((i.f & 64) === 0) {
|
|
1261
1266
|
var o = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1262
|
-
|
|
1267
|
+
_i(i, t, o ? r : !1);
|
|
1263
1268
|
}
|
|
1264
1269
|
i = s;
|
|
1265
1270
|
}
|
|
1266
1271
|
}
|
|
1267
1272
|
}
|
|
1268
1273
|
function wn(e) {
|
|
1269
|
-
e.f &= -257,
|
|
1274
|
+
e.f &= -257, pi(e, !0);
|
|
1270
1275
|
}
|
|
1271
|
-
function
|
|
1276
|
+
function pi(e, t) {
|
|
1272
1277
|
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1273
|
-
e.f ^=
|
|
1278
|
+
e.f ^= Ir, (e.f & 1024) === 0 && (N(e, V), Ve.ensure().schedule(e));
|
|
1274
1279
|
for (var r = e.first; r !== null; ) {
|
|
1275
1280
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1276
|
-
|
|
1281
|
+
pi(r, i ? t : !1), r = n;
|
|
1277
1282
|
}
|
|
1278
1283
|
var s = e.nodes && e.nodes.t;
|
|
1279
1284
|
if (s !== null)
|
|
1280
1285
|
for (const o of s) (o.is_global || t) && o.in();
|
|
1281
1286
|
}
|
|
1282
1287
|
}
|
|
1283
|
-
function
|
|
1288
|
+
function gi(e, t) {
|
|
1284
1289
|
if (e.nodes)
|
|
1285
1290
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1286
1291
|
var i = r === n ? null : /* @__PURE__ */ ye(r);
|
|
1287
1292
|
t.append(r), r = i;
|
|
1288
1293
|
}
|
|
1289
1294
|
}
|
|
1290
|
-
var $a = null,
|
|
1295
|
+
var $a = null, be = !1;
|
|
1291
1296
|
function mn(e) {
|
|
1292
1297
|
be = e;
|
|
1293
1298
|
}
|
|
1294
|
-
var
|
|
1299
|
+
var E = null, ee = !1;
|
|
1295
1300
|
function Z(e) {
|
|
1296
|
-
|
|
1301
|
+
E = e;
|
|
1297
1302
|
}
|
|
1298
|
-
var
|
|
1303
|
+
var x = null;
|
|
1299
1304
|
function de(e) {
|
|
1300
|
-
|
|
1305
|
+
x = e;
|
|
1301
1306
|
}
|
|
1302
1307
|
var re = null;
|
|
1303
|
-
function
|
|
1304
|
-
|
|
1308
|
+
function wi(e) {
|
|
1309
|
+
E !== null && (!Te && (E.f & 2097152) !== 0 || (E.f & 2) !== 0) && (re ?? (re = /* @__PURE__ */ new Set())).add(e);
|
|
1305
1310
|
}
|
|
1306
|
-
var B = null,
|
|
1311
|
+
var B = null, Y = 0, X = null;
|
|
1307
1312
|
function ka(e) {
|
|
1308
1313
|
X = e;
|
|
1309
1314
|
}
|
|
1310
|
-
var
|
|
1315
|
+
var mi = 1, Le = 0, ze = Le;
|
|
1311
1316
|
function bn(e) {
|
|
1312
|
-
|
|
1317
|
+
ze = e;
|
|
1313
1318
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return ++
|
|
1319
|
+
function bi() {
|
|
1320
|
+
return ++mi;
|
|
1316
1321
|
}
|
|
1317
|
-
function
|
|
1322
|
+
function Rt(e) {
|
|
1318
1323
|
var t = e.f;
|
|
1319
1324
|
if ((t & 2048) !== 0) return !0;
|
|
1320
1325
|
if ((t & 4096) !== 0) {
|
|
1321
1326
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1322
1327
|
var s = r[i];
|
|
1323
|
-
if (
|
|
1328
|
+
if (Rt(s) && Gn(s), s.wv > e.wv) return !0;
|
|
1324
1329
|
}
|
|
1325
|
-
(t & 512) !== 0 && z === null &&
|
|
1330
|
+
(t & 512) !== 0 && z === null && N(e, K);
|
|
1326
1331
|
}
|
|
1327
1332
|
return !1;
|
|
1328
1333
|
}
|
|
1329
|
-
function
|
|
1334
|
+
function yi(e, t, r = !0) {
|
|
1330
1335
|
var n = e.reactions;
|
|
1331
|
-
if (n !== null && !(!
|
|
1336
|
+
if (n !== null && !(!Te && re !== null && re.has(e)))
|
|
1332
1337
|
for (var i = 0; i < n.length; i++) {
|
|
1333
1338
|
var s = n[i];
|
|
1334
|
-
(s.f & 2) !== 0 ?
|
|
1339
|
+
(s.f & 2) !== 0 ? yi(s, t, !1) : t === s && (r ? N(s, V) : (s.f & 1024) !== 0 && N(s, Ge), Fr(s));
|
|
1335
1340
|
}
|
|
1336
1341
|
}
|
|
1337
|
-
function
|
|
1338
|
-
var t = B, r =
|
|
1339
|
-
B = null,
|
|
1340
|
-
e.ac.abort(
|
|
1342
|
+
function $i(e) {
|
|
1343
|
+
var t = B, r = Y, n = X, i = E, s = re, o = C, l = ee, h = ze, v = e.f;
|
|
1344
|
+
B = null, Y = 0, X = null, E = (v & 96) === 0 ? e : null, re = null, it(e.ctx), ee = !1, ze = ++Le, e.ac !== null && (or(() => {
|
|
1345
|
+
e.ac.abort(Et);
|
|
1341
1346
|
}), e.ac = null);
|
|
1342
1347
|
try {
|
|
1343
1348
|
e.f |= dn;
|
|
1344
1349
|
var p = e.fn, d = p();
|
|
1345
|
-
e.f |=
|
|
1350
|
+
e.f |= Nr;
|
|
1346
1351
|
var c = yn(e);
|
|
1347
|
-
if (
|
|
1352
|
+
if (Mt() && X !== null && !ee && c !== null && (e.f & 6146) === 0) for (var f = 0; f < X.length; f++) yi(X[f], e);
|
|
1348
1353
|
if (i !== null && i !== e) {
|
|
1349
|
-
if (
|
|
1350
|
-
if (t !== null) for (const g of t) g.rv =
|
|
1354
|
+
if (Le++, i.deps !== null) for (let g = 0; g < r; g += 1) i.deps[g].rv = Le;
|
|
1355
|
+
if (t !== null) for (const g of t) g.rv = Le;
|
|
1351
1356
|
X !== null && (n === null ? n = X : n.push(...X));
|
|
1352
1357
|
}
|
|
1353
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1358
|
+
return (e.f & 8388608) !== 0 && (e.f ^= Gt), d;
|
|
1354
1359
|
} catch (g) {
|
|
1355
1360
|
return yn(e), da(g);
|
|
1356
1361
|
} finally {
|
|
1357
|
-
e.f ^= dn, B = t,
|
|
1362
|
+
e.f ^= dn, B = t, Y = r, X = n, E = i, re = s, it(o), ee = l, ze = h;
|
|
1358
1363
|
}
|
|
1359
1364
|
}
|
|
1360
1365
|
function yn(e) {
|
|
1361
|
-
var t = e.deps, r =
|
|
1366
|
+
var t = e.deps, r = S?.is_fork;
|
|
1362
1367
|
if (B !== null) {
|
|
1363
1368
|
var n;
|
|
1364
|
-
if (r ||
|
|
1365
|
-
for (t.length =
|
|
1369
|
+
if (r || kt(e, Y), t !== null && Y > 0)
|
|
1370
|
+
for (t.length = Y + B.length, n = 0; n < B.length; n++) t[Y + n] = B[n];
|
|
1366
1371
|
else e.deps = t = B;
|
|
1367
|
-
if (
|
|
1372
|
+
if (Yr() && (e.f & 512) !== 0) for (n = Y; n < t.length; n++) {
|
|
1368
1373
|
var i;
|
|
1369
1374
|
((i = t[n]).reactions ?? (i.reactions = [])).push(e);
|
|
1370
1375
|
}
|
|
1371
|
-
} else !r && t !== null &&
|
|
1376
|
+
} else !r && t !== null && Y < t.length && (kt(e, Y), t.length = Y);
|
|
1372
1377
|
return t;
|
|
1373
1378
|
}
|
|
1374
1379
|
function xa(e, t) {
|
|
1375
1380
|
let r = t.reactions;
|
|
1376
1381
|
if (r !== null) {
|
|
1377
|
-
var n =
|
|
1382
|
+
var n = hs.call(r, e);
|
|
1378
1383
|
if (n !== -1) {
|
|
1379
1384
|
var i = r.length - 1;
|
|
1380
1385
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1381
1386
|
}
|
|
1382
1387
|
}
|
|
1383
|
-
if (r === null && (t.f & 2) !== 0 && (B === null || !
|
|
1388
|
+
if (r === null && (t.f & 2) !== 0 && (B === null || !wt.call(B, t))) {
|
|
1384
1389
|
var s = t;
|
|
1385
|
-
(s.f & 512) !== 0 && (s.f ^= 512), s.v !==
|
|
1386
|
-
s.ac.abort(
|
|
1387
|
-
}), Js(s),
|
|
1390
|
+
(s.f & 512) !== 0 && (s.f ^= 512), s.v !== H && Dr(s), s.ac !== null && or(() => {
|
|
1391
|
+
s.ac.abort(Et), s.ac = null, N(s, V);
|
|
1392
|
+
}), Js(s), kt(s, 0);
|
|
1388
1393
|
}
|
|
1389
1394
|
}
|
|
1390
|
-
function
|
|
1395
|
+
function kt(e, t) {
|
|
1391
1396
|
var r = e.deps;
|
|
1392
1397
|
if (r !== null)
|
|
1393
1398
|
for (var n = t; n < r.length; n++) xa(e, r[n]);
|
|
1394
1399
|
}
|
|
1395
|
-
function
|
|
1400
|
+
function st(e) {
|
|
1396
1401
|
var t = e.f;
|
|
1397
1402
|
if ((t & 16384) === 0) {
|
|
1398
|
-
|
|
1399
|
-
var r =
|
|
1400
|
-
if (
|
|
1401
|
-
var
|
|
1403
|
+
N(e, K);
|
|
1404
|
+
var r = x;
|
|
1405
|
+
if (x = e, 0)
|
|
1406
|
+
var n, i;
|
|
1402
1407
|
try {
|
|
1403
|
-
(t & 16777232) !== 0 ? ba(e) :
|
|
1404
|
-
var
|
|
1405
|
-
if (e.teardown = typeof
|
|
1406
|
-
for (var
|
|
1408
|
+
(t & 16777232) !== 0 ? ba(e) : Vr(e), hi(e);
|
|
1409
|
+
var s = $i(e);
|
|
1410
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = mi, 0)
|
|
1411
|
+
for (var o of e.deps) ;
|
|
1407
1412
|
} finally {
|
|
1408
|
-
|
|
1413
|
+
x = r;
|
|
1409
1414
|
}
|
|
1410
1415
|
}
|
|
1411
1416
|
}
|
|
1412
1417
|
function u(e) {
|
|
1413
1418
|
var t = (e.f & 2) !== 0;
|
|
1414
|
-
if ($a?.add(e),
|
|
1415
|
-
var r =
|
|
1416
|
-
if ((
|
|
1417
|
-
e.rv <
|
|
1419
|
+
if ($a?.add(e), E !== null && !ee && !(x !== null && (x.f & 16384) !== 0) && (re === null || !re.has(e))) {
|
|
1420
|
+
var r = E.deps;
|
|
1421
|
+
if ((E.f & 2097152) !== 0)
|
|
1422
|
+
e.rv < Le && (e.rv = Le, B === null && r !== null && r[Y] === e ? Y++ : B === null ? B = [e] : B.push(e));
|
|
1418
1423
|
else {
|
|
1419
1424
|
var n;
|
|
1420
|
-
(n =
|
|
1425
|
+
(n = E).deps ?? (n.deps = []), wt.call(E.deps, e) || E.deps.push(e);
|
|
1421
1426
|
var i = e.reactions;
|
|
1422
|
-
i === null ? e.reactions = [
|
|
1427
|
+
i === null ? e.reactions = [E] : wt.call(i, E) || i.push(E);
|
|
1423
1428
|
}
|
|
1424
1429
|
}
|
|
1425
1430
|
if (0) {
|
|
1426
|
-
if (!ee && reactivity_loss_tracker &&
|
|
1431
|
+
if (!ee && reactivity_loss_tracker && S === null && rt === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1427
1432
|
var s;
|
|
1428
|
-
if (tracing_mode_flag && !ee && tracing_expressions !== null &&
|
|
1433
|
+
if (tracing_mode_flag && !ee && tracing_expressions !== null && E !== null && tracing_expressions.reaction === E && !e.trace) {
|
|
1429
1434
|
if (s)
|
|
1430
1435
|
var o, l;
|
|
1431
1436
|
}
|
|
@@ -1435,28 +1440,30 @@ function u(e) {
|
|
|
1435
1440
|
var h = e;
|
|
1436
1441
|
if (be) {
|
|
1437
1442
|
var v = h.v;
|
|
1438
|
-
return ((h.f & 1024) === 0 && h.reactions !== null ||
|
|
1443
|
+
return ((h.f & 1024) === 0 && h.reactions !== null || xi(h)) && (v = jr(h)), ue.set(h, v), v;
|
|
1439
1444
|
}
|
|
1440
|
-
var p = (h.f & 512) === 0 && !ee &&
|
|
1441
|
-
|
|
1445
|
+
var p = (h.f & 512) === 0 && !ee && E !== null && (E.f & 512) !== 0, d = (h.f & Nr) === 0;
|
|
1446
|
+
Rt(h) && (p && (h.f |= 512), Gn(h)), p && !d && (Vn(h), ki(h));
|
|
1442
1447
|
}
|
|
1443
1448
|
if (z?.has(e)) return z.get(e);
|
|
1444
1449
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1445
1450
|
return e.v;
|
|
1446
1451
|
}
|
|
1447
|
-
function
|
|
1452
|
+
function ki(e) {
|
|
1448
1453
|
if (e.f |= 512, e.deps !== null)
|
|
1449
|
-
for (const
|
|
1450
|
-
|
|
1454
|
+
for (const r of e.deps) {
|
|
1455
|
+
var t = r.reactions;
|
|
1456
|
+
t === null ? r.reactions = [e] : wt.call(t, e) || t.push(e), (r.f & 2) !== 0 && (r.f & 512) === 0 && (Vn(r), ki(r));
|
|
1457
|
+
}
|
|
1451
1458
|
}
|
|
1452
|
-
function
|
|
1453
|
-
if (e.v ===
|
|
1459
|
+
function xi(e) {
|
|
1460
|
+
if (e.v === H) return !0;
|
|
1454
1461
|
if (e.deps === null) return !1;
|
|
1455
1462
|
for (const t of e.deps)
|
|
1456
|
-
if (ue.has(t) || (t.f & 2) !== 0 &&
|
|
1463
|
+
if (ue.has(t) || (t.f & 2) !== 0 && xi(t)) return !0;
|
|
1457
1464
|
return !1;
|
|
1458
1465
|
}
|
|
1459
|
-
function
|
|
1466
|
+
function at(e) {
|
|
1460
1467
|
var t = ee;
|
|
1461
1468
|
try {
|
|
1462
1469
|
return ee = !0, e();
|
|
@@ -1464,25 +1471,25 @@ function it(e) {
|
|
|
1464
1471
|
ee = t;
|
|
1465
1472
|
}
|
|
1466
1473
|
}
|
|
1467
|
-
var
|
|
1468
|
-
function
|
|
1469
|
-
(t[
|
|
1474
|
+
var tt = /* @__PURE__ */ Symbol("events"), Ei = /* @__PURE__ */ new Set(), Tr = /* @__PURE__ */ new Set();
|
|
1475
|
+
function ft(e, t, r) {
|
|
1476
|
+
(t[tt] ?? (t[tt] = {}))[e] = r;
|
|
1470
1477
|
}
|
|
1471
1478
|
function Ea(e) {
|
|
1472
|
-
for (var t = 0; t < e.length; t++)
|
|
1473
|
-
for (var r of
|
|
1479
|
+
for (var t = 0; t < e.length; t++) Ei.add(e[t]);
|
|
1480
|
+
for (var r of Tr) r(e);
|
|
1474
1481
|
}
|
|
1475
|
-
var
|
|
1482
|
+
var hr = null, vr = !1;
|
|
1476
1483
|
function $n(e) {
|
|
1477
1484
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
|
|
1478
|
-
|
|
1479
|
-
|
|
1485
|
+
hr = e, vr || (vr = !0, setTimeout(() => {
|
|
1486
|
+
vr = !1, hr = null;
|
|
1480
1487
|
}));
|
|
1481
|
-
var o = 0, l =
|
|
1488
|
+
var o = 0, l = hr === e && e[tt];
|
|
1482
1489
|
if (l) {
|
|
1483
1490
|
var h = i.indexOf(l);
|
|
1484
1491
|
if (h !== -1 && (t === document || t === window)) {
|
|
1485
|
-
e[
|
|
1492
|
+
e[tt] = t;
|
|
1486
1493
|
return;
|
|
1487
1494
|
}
|
|
1488
1495
|
var v = i.indexOf(t);
|
|
@@ -1490,18 +1497,18 @@ function $n(e) {
|
|
|
1490
1497
|
h <= v && (o = h);
|
|
1491
1498
|
}
|
|
1492
1499
|
if (s = i[o] || e.target, s !== t) {
|
|
1493
|
-
|
|
1500
|
+
mt(e, "currentTarget", {
|
|
1494
1501
|
configurable: !0,
|
|
1495
1502
|
get() {
|
|
1496
1503
|
return s || r;
|
|
1497
1504
|
}
|
|
1498
1505
|
});
|
|
1499
|
-
var p =
|
|
1506
|
+
var p = E, d = x;
|
|
1500
1507
|
Z(null), de(null);
|
|
1501
1508
|
try {
|
|
1502
1509
|
for (var c, f = []; s !== null && s !== t; ) {
|
|
1503
1510
|
try {
|
|
1504
|
-
var g = s[
|
|
1511
|
+
var g = s[tt]?.[n];
|
|
1505
1512
|
g != null && (!s.disabled || e.target === s) && g.call(s, e);
|
|
1506
1513
|
} catch (w) {
|
|
1507
1514
|
c ? f.push(w) : c = w;
|
|
@@ -1516,7 +1523,7 @@ function $n(e) {
|
|
|
1516
1523
|
throw c;
|
|
1517
1524
|
}
|
|
1518
1525
|
} finally {
|
|
1519
|
-
e[
|
|
1526
|
+
e[tt] = t, delete e.currentTarget, Z(p), de(d);
|
|
1520
1527
|
}
|
|
1521
1528
|
}
|
|
1522
1529
|
}
|
|
@@ -1525,11 +1532,11 @@ function Ma(e) {
|
|
|
1525
1532
|
return Sa?.createHTML(e) ?? e;
|
|
1526
1533
|
}
|
|
1527
1534
|
function Ta(e) {
|
|
1528
|
-
var t =
|
|
1535
|
+
var t = Ur("template");
|
|
1529
1536
|
return t.innerHTML = Ma(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1530
1537
|
}
|
|
1531
|
-
function
|
|
1532
|
-
var r =
|
|
1538
|
+
function nt(e, t) {
|
|
1539
|
+
var r = x;
|
|
1533
1540
|
r.nodes === null && (r.nodes = {
|
|
1534
1541
|
start: e,
|
|
1535
1542
|
end: t,
|
|
@@ -1541,27 +1548,27 @@ function et(e, t) {
|
|
|
1541
1548
|
function Aa(e, t) {
|
|
1542
1549
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1543
1550
|
return () => {
|
|
1544
|
-
if (
|
|
1545
|
-
return
|
|
1546
|
-
i === void 0 && (i = Ta(s ? e : "<!>" + e), r || (i = /* @__PURE__ */
|
|
1547
|
-
var o = n ||
|
|
1551
|
+
if (P)
|
|
1552
|
+
return nt(T, null), T;
|
|
1553
|
+
i === void 0 && (i = Ta(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ Ye(i)));
|
|
1554
|
+
var o = n || ai ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1548
1555
|
if (r) {
|
|
1549
|
-
var l = /* @__PURE__ */
|
|
1550
|
-
|
|
1551
|
-
} else
|
|
1556
|
+
var l = /* @__PURE__ */ Ye(o), h = o.lastChild;
|
|
1557
|
+
nt(l, h);
|
|
1558
|
+
} else nt(o, o);
|
|
1552
1559
|
return o;
|
|
1553
1560
|
};
|
|
1554
1561
|
}
|
|
1555
1562
|
function Ra() {
|
|
1556
|
-
if (
|
|
1557
|
-
return
|
|
1563
|
+
if (P)
|
|
1564
|
+
return nt(T, null), T;
|
|
1558
1565
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = we();
|
|
1559
|
-
return e.append(t, r),
|
|
1566
|
+
return e.append(t, r), nt(t, r), e;
|
|
1560
1567
|
}
|
|
1561
|
-
function
|
|
1562
|
-
if (
|
|
1563
|
-
var r =
|
|
1564
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = T),
|
|
1568
|
+
function Ar(e, t) {
|
|
1569
|
+
if (P) {
|
|
1570
|
+
var r = x;
|
|
1571
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = T), Hr();
|
|
1565
1572
|
return;
|
|
1566
1573
|
}
|
|
1567
1574
|
e !== null && e.before(t);
|
|
@@ -1638,40 +1645,40 @@ var Ia = [
|
|
|
1638
1645
|
"$host"
|
|
1639
1646
|
];
|
|
1640
1647
|
function Na(e) {
|
|
1641
|
-
let t = 0, r =
|
|
1648
|
+
let t = 0, r = Tt(0), n;
|
|
1642
1649
|
return () => {
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
1650
|
+
Yr() && (u(r), Gr(() => (t === 0 && (n = at(() => e(() => gt(r)))), t += 1, () => {
|
|
1651
|
+
Ue(() => {
|
|
1652
|
+
t -= 1, t === 0 && (n?.(), n = void 0, gt(r));
|
|
1646
1653
|
});
|
|
1647
1654
|
})));
|
|
1648
1655
|
};
|
|
1649
1656
|
}
|
|
1650
|
-
var Wa =
|
|
1657
|
+
var Wa = Wr | ot;
|
|
1651
1658
|
function Ha(e, t, r, n) {
|
|
1652
1659
|
new La(e, t, r, n);
|
|
1653
1660
|
}
|
|
1654
|
-
var ne = /* @__PURE__ */ new WeakMap(),
|
|
1661
|
+
var ne = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Pr = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakSet(), La = class {
|
|
1655
1662
|
constructor(e, t, r, n) {
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
}))),
|
|
1659
|
-
var s =
|
|
1663
|
+
zr(this, A), R(this, "parent", void 0), R(this, "is_pending", !1), R(this, "transform_error", void 0), y(this, ne, void 0), y(this, Rr, P ? T : null), y(this, fe, void 0), y(this, xt, void 0), y(this, F, void 0), y(this, ie, null), y(this, G, null), y(this, te, null), y(this, Se, null), y(this, Je, 0), y(this, Be, 0), y(this, jt, !1), y(this, Pr, /* @__PURE__ */ new Set()), y(this, Or, /* @__PURE__ */ new Set()), y(this, Pe, null), y(this, kn, Na(() => (b(Pe, this, Tt(a(Je, this))), () => {
|
|
1664
|
+
b(Pe, this, null);
|
|
1665
|
+
}))), b(ne, this, e), b(fe, this, t), b(xt, this, (i) => {
|
|
1666
|
+
var s = x;
|
|
1660
1667
|
s.b = this, s.f |= 128, r(i);
|
|
1661
|
-
}), this.parent =
|
|
1662
|
-
if (
|
|
1663
|
-
const i = a(
|
|
1664
|
-
|
|
1665
|
-
const s = i
|
|
1666
|
-
if (i.
|
|
1667
|
-
const o = JSON.parse(i.
|
|
1668
|
-
|
|
1669
|
-
} else s ?
|
|
1670
|
-
} else
|
|
1671
|
-
}, Wa)),
|
|
1668
|
+
}), this.parent = x.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), b(F, this, di(() => {
|
|
1669
|
+
if (P) {
|
|
1670
|
+
const i = Ln(a(Rr, this));
|
|
1671
|
+
Hr();
|
|
1672
|
+
const s = i === "[!";
|
|
1673
|
+
if (i.startsWith("[?")) {
|
|
1674
|
+
const o = JSON.parse(i.slice(2));
|
|
1675
|
+
m(A, this, ja).call(this, o);
|
|
1676
|
+
} else s ? m(A, this, za).call(this) : m(A, this, Da).call(this);
|
|
1677
|
+
} else m(A, this, Mi).call(this);
|
|
1678
|
+
}, Wa)), P && b(ne, this, T);
|
|
1672
1679
|
}
|
|
1673
1680
|
defer_effect(e) {
|
|
1674
|
-
|
|
1681
|
+
Un(e, a(Pr, this), a(Or, this));
|
|
1675
1682
|
}
|
|
1676
1683
|
is_rendered() {
|
|
1677
1684
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1680,186 +1687,197 @@ var ne = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), fe =
|
|
|
1680
1687
|
return !!a(fe, this).pending;
|
|
1681
1688
|
}
|
|
1682
1689
|
update_pending_count(e, t) {
|
|
1683
|
-
|
|
1684
|
-
|
|
1690
|
+
m(A, this, Ti).call(this, e, t), b(Je, this, a(Je, this) + e), !(!a(Pe, this) || a(jt, this)) && (b(jt, this, !0), Ue(() => {
|
|
1691
|
+
b(jt, this, !1), a(Pe, this) && nr(a(Pe, this), a(Je, this));
|
|
1685
1692
|
}));
|
|
1686
1693
|
}
|
|
1687
1694
|
get_effect_pending() {
|
|
1688
|
-
return a(kn, this).call(this), u(a(
|
|
1695
|
+
return a(kn, this).call(this), u(a(Pe, this));
|
|
1689
1696
|
}
|
|
1690
1697
|
error(e) {
|
|
1691
|
-
if (!a(fe, this).onerror && !a(fe, this).failed) throw e;
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
})) :
|
|
1698
|
+
if (e === Me || !a(fe, this).onerror && !a(fe, this).failed) throw e;
|
|
1699
|
+
S?.is_fork ? (a(ie, this) && S.skip_effect(a(ie, this)), a(G, this) && S.skip_effect(a(G, this)), a(te, this) && S.skip_effect(a(te, this)), S.oncommit(() => {
|
|
1700
|
+
m(A, this, Fe).call(this) || m(A, this, xn).call(this, e);
|
|
1701
|
+
})) : m(A, this, xn).call(this, e);
|
|
1695
1702
|
}
|
|
1696
1703
|
};
|
|
1697
1704
|
function Da() {
|
|
1698
1705
|
try {
|
|
1699
|
-
|
|
1706
|
+
b(ie, this, me(() => a(xt, this).call(this, a(ne, this))));
|
|
1700
1707
|
} catch (e) {
|
|
1701
1708
|
this.error(e);
|
|
1702
1709
|
}
|
|
1703
1710
|
}
|
|
1704
1711
|
function ja(e) {
|
|
1705
|
-
const t = a(fe, this).failed, { reset: r, invoke_onerror: n } =
|
|
1706
|
-
|
|
1712
|
+
const t = a(fe, this).failed, { reset: r, invoke_onerror: n } = m(A, this, Si).call(this, e);
|
|
1713
|
+
Ue(n), t && b(te, this, me(() => {
|
|
1707
1714
|
t(a(ne, this), () => e, () => r);
|
|
1708
1715
|
}));
|
|
1709
1716
|
}
|
|
1710
|
-
function
|
|
1717
|
+
function Si(e) {
|
|
1711
1718
|
var t = !1, r = !1;
|
|
1712
1719
|
const n = () => {
|
|
1713
|
-
if (
|
|
1714
|
-
|
|
1715
|
-
|
|
1720
|
+
if (!m(A, this, Fe).call(this)) {
|
|
1721
|
+
if (t) {
|
|
1722
|
+
As();
|
|
1723
|
+
return;
|
|
1724
|
+
}
|
|
1725
|
+
t = !0, r && Fs(), a(te, this) !== null && At(a(te, this), () => {
|
|
1726
|
+
b(te, this, null);
|
|
1727
|
+
}), m(A, this, Xr).call(this, () => {
|
|
1728
|
+
m(A, this, Mi).call(this);
|
|
1729
|
+
});
|
|
1716
1730
|
}
|
|
1717
|
-
t = !0, r && Fs(), a(te, this) !== null && St(a(te, this), () => {
|
|
1718
|
-
m(te, this, null);
|
|
1719
|
-
}), y(H, this, Vr).call(this, () => {
|
|
1720
|
-
y(H, this, Ei).call(this);
|
|
1721
|
-
});
|
|
1722
1731
|
};
|
|
1723
1732
|
return {
|
|
1724
1733
|
reset: n,
|
|
1725
1734
|
invoke_onerror: () => {
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1735
|
+
if (!m(A, this, Fe).call(this))
|
|
1736
|
+
try {
|
|
1737
|
+
r = !0, a(fe, this).onerror?.(e, n), r = !1;
|
|
1738
|
+
} catch (s) {
|
|
1739
|
+
ce(s, a(F, this) && a(F, this).parent);
|
|
1740
|
+
}
|
|
1731
1741
|
}
|
|
1732
1742
|
};
|
|
1733
1743
|
}
|
|
1744
|
+
function Fe() {
|
|
1745
|
+
return (a(F, this).f & (Cn | yr)) !== 0;
|
|
1746
|
+
}
|
|
1734
1747
|
function za() {
|
|
1735
1748
|
const e = a(fe, this).pending;
|
|
1736
|
-
e && (this.is_pending = !0,
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
return me(() => a(yt, this).call(this, r));
|
|
1741
|
-
} catch (i) {
|
|
1749
|
+
e && (this.is_pending = !0, b(G, this, me(() => e(a(ne, this)))), Ue(() => {
|
|
1750
|
+
if (!m(A, this, Fe).call(this)) {
|
|
1751
|
+
var t = b(Se, this, document.createDocumentFragment()), r = we(), n = !1;
|
|
1752
|
+
if (t.append(r), b(ie, this, m(A, this, Xr).call(this, () => {
|
|
1742
1753
|
try {
|
|
1743
|
-
this.
|
|
1744
|
-
} catch (
|
|
1745
|
-
|
|
1754
|
+
return me(() => a(xt, this).call(this, r));
|
|
1755
|
+
} catch (i) {
|
|
1756
|
+
try {
|
|
1757
|
+
this.error(i), n = !0;
|
|
1758
|
+
} catch (s) {
|
|
1759
|
+
ce(s, a(F, this).parent);
|
|
1760
|
+
}
|
|
1761
|
+
return null;
|
|
1746
1762
|
}
|
|
1747
|
-
|
|
1763
|
+
})), a(ie, this) === null) {
|
|
1764
|
+
b(Se, this, null), n && m(A, this, ir).call(this, S);
|
|
1765
|
+
return;
|
|
1748
1766
|
}
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1767
|
+
a(Be, this) === 0 && (a(ne, this).before(t), b(Se, this, null), At(a(G, this), () => {
|
|
1768
|
+
b(G, this, null);
|
|
1769
|
+
}), m(A, this, ir).call(this, S));
|
|
1752
1770
|
}
|
|
1753
|
-
a(ze, this) === 0 && (a(ne, this).before(t), m(Se, this, null), St(a(G, this), () => {
|
|
1754
|
-
m(G, this, null);
|
|
1755
|
-
}), y(H, this, rr).call(this, x));
|
|
1756
1771
|
}));
|
|
1757
1772
|
}
|
|
1758
|
-
function
|
|
1773
|
+
function Mi() {
|
|
1759
1774
|
try {
|
|
1760
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
1761
|
-
a(
|
|
1762
|
-
})), a(
|
|
1763
|
-
var e =
|
|
1764
|
-
|
|
1775
|
+
if (this.is_pending = this.has_pending_snippet(), b(Be, this, 0), b(Je, this, 0), b(ie, this, me(() => {
|
|
1776
|
+
a(xt, this).call(this, a(ne, this));
|
|
1777
|
+
})), a(Be, this) > 0) {
|
|
1778
|
+
var e = b(Se, this, document.createDocumentFragment());
|
|
1779
|
+
gi(a(ie, this), e);
|
|
1765
1780
|
const t = a(fe, this).pending;
|
|
1766
|
-
|
|
1767
|
-
} else
|
|
1781
|
+
b(G, this, me(() => t(a(ne, this))));
|
|
1782
|
+
} else m(A, this, ir).call(this, S);
|
|
1768
1783
|
} catch (t) {
|
|
1769
1784
|
this.error(t);
|
|
1770
1785
|
}
|
|
1771
1786
|
}
|
|
1772
|
-
function
|
|
1773
|
-
this.is_pending = !1, e.transfer_effects(a(
|
|
1787
|
+
function ir(e) {
|
|
1788
|
+
this.is_pending = !1, e.transfer_effects(a(Pr, this), a(Or, this));
|
|
1774
1789
|
}
|
|
1775
|
-
function
|
|
1776
|
-
var t =
|
|
1777
|
-
de(a(
|
|
1790
|
+
function Xr(e) {
|
|
1791
|
+
var t = x, r = E, n = C;
|
|
1792
|
+
de(a(F, this)), Z(a(F, this)), it(a(F, this).ctx);
|
|
1778
1793
|
try {
|
|
1779
|
-
return
|
|
1794
|
+
return Ve.ensure(), e();
|
|
1780
1795
|
} finally {
|
|
1781
|
-
de(t), Z(r),
|
|
1796
|
+
de(t), Z(r), it(n);
|
|
1782
1797
|
}
|
|
1783
1798
|
}
|
|
1784
|
-
function
|
|
1799
|
+
function Ti(e, t) {
|
|
1785
1800
|
if (!this.has_pending_snippet()) {
|
|
1786
1801
|
if (this.parent) {
|
|
1787
1802
|
var r;
|
|
1788
|
-
|
|
1803
|
+
m(A, r = this.parent, Ti).call(r, e, t);
|
|
1789
1804
|
}
|
|
1790
1805
|
return;
|
|
1791
1806
|
}
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
}), a(Se, this) && (a(ne, this).before(a(Se, this)),
|
|
1807
|
+
b(Be, this, a(Be, this) + e), a(Be, this) === 0 && (m(A, this, ir).call(this, t), a(G, this) && At(a(G, this), () => {
|
|
1808
|
+
b(G, this, null);
|
|
1809
|
+
}), a(Se, this) && (a(ne, this).before(a(Se, this)), b(Se, this, null)));
|
|
1795
1810
|
}
|
|
1796
1811
|
function xn(e) {
|
|
1797
|
-
a(ie, this) && (
|
|
1812
|
+
a(ie, this) && (U(a(ie, this)), b(ie, this, null)), a(G, this) && (U(a(G, this)), b(G, this, null)), a(te, this) && (U(a(te, this)), b(te, this, null)), P && (se(a(Rr, this)), Rs(), se(Hn()));
|
|
1798
1813
|
let t = a(fe, this).failed;
|
|
1799
1814
|
const r = (n) => {
|
|
1800
|
-
|
|
1801
|
-
|
|
1815
|
+
if (m(A, this, Fe).call(this)) return;
|
|
1816
|
+
const { reset: i, invoke_onerror: s } = m(A, this, Si).call(this, n);
|
|
1817
|
+
s(), t && !m(A, this, Fe).call(this) && b(te, this, m(A, this, Xr).call(this, () => {
|
|
1802
1818
|
try {
|
|
1803
1819
|
return me(() => {
|
|
1804
|
-
var o =
|
|
1820
|
+
var o = x;
|
|
1805
1821
|
o.b = this, o.f |= 128, t(a(ne, this), () => n, () => i);
|
|
1806
1822
|
});
|
|
1807
1823
|
} catch (o) {
|
|
1808
|
-
return ce(o, a(
|
|
1824
|
+
return ce(o, a(F, this).parent), null;
|
|
1809
1825
|
}
|
|
1810
1826
|
}));
|
|
1811
1827
|
};
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1828
|
+
Ue(() => {
|
|
1829
|
+
if (!m(A, this, Fe).call(this)) {
|
|
1830
|
+
var n;
|
|
1831
|
+
try {
|
|
1832
|
+
n = this.transform_error(e);
|
|
1833
|
+
} catch (i) {
|
|
1834
|
+
ce(i, a(F, this) && a(F, this).parent);
|
|
1835
|
+
return;
|
|
1836
|
+
}
|
|
1837
|
+
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => ce(i, a(F, this) && a(F, this).parent)) : r(n);
|
|
1819
1838
|
}
|
|
1820
|
-
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => ce(i, a(Y, this) && a(Y, this).parent)) : r(n);
|
|
1821
1839
|
});
|
|
1822
1840
|
}
|
|
1823
1841
|
var En = !0;
|
|
1824
1842
|
function Ba(e, t) {
|
|
1825
1843
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1826
|
-
r !== (e[
|
|
1844
|
+
r !== (e[Ft] ?? (e[Ft] = e.nodeValue)) && (e[Ft] = r, e.nodeValue = `${r}`);
|
|
1827
1845
|
}
|
|
1828
|
-
function
|
|
1829
|
-
return
|
|
1846
|
+
function Ai(e, t) {
|
|
1847
|
+
return Ri(e, t);
|
|
1830
1848
|
}
|
|
1831
1849
|
function Fa(e, t) {
|
|
1832
|
-
|
|
1833
|
-
const r = t.target, n =
|
|
1850
|
+
Mr(), t.intro = t.intro ?? !1;
|
|
1851
|
+
const r = t.target, n = P, i = T;
|
|
1834
1852
|
try {
|
|
1835
|
-
for (var s = /* @__PURE__ */
|
|
1836
|
-
if (!s) throw
|
|
1837
|
-
|
|
1838
|
-
const o =
|
|
1853
|
+
for (var s = /* @__PURE__ */ Ye(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ ye(s);
|
|
1854
|
+
if (!s) throw Me;
|
|
1855
|
+
et(!0), se(s);
|
|
1856
|
+
const o = Ri(e, {
|
|
1839
1857
|
...t,
|
|
1840
1858
|
anchor: s
|
|
1841
1859
|
});
|
|
1842
|
-
return
|
|
1860
|
+
return et(!1), o;
|
|
1843
1861
|
} catch (o) {
|
|
1844
1862
|
if (o instanceof Error && o.message.split(`
|
|
1845
1863
|
`).some((l) => l.startsWith("https://svelte.dev/e/"))) throw o;
|
|
1846
|
-
return o !==
|
|
1864
|
+
return o !== Me && console.warn("Failed to hydrate: ", o), t.recover === !1 && Ls(), Mr(), ua(r), et(!1), Ai(e, t);
|
|
1847
1865
|
} finally {
|
|
1848
|
-
|
|
1866
|
+
et(n), se(i);
|
|
1849
1867
|
}
|
|
1850
1868
|
}
|
|
1851
|
-
var
|
|
1852
|
-
function
|
|
1853
|
-
|
|
1869
|
+
var zt = /* @__PURE__ */ new Map();
|
|
1870
|
+
function Ri(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0, transformError: l }) {
|
|
1871
|
+
Mr();
|
|
1854
1872
|
var h = void 0, v = ga(() => {
|
|
1855
1873
|
var p = r ?? t.appendChild(we());
|
|
1856
1874
|
Ha(p, { pending: () => {
|
|
1857
1875
|
} }, (f) => {
|
|
1858
|
-
|
|
1859
|
-
var g =
|
|
1860
|
-
if (s && (g.c = s), i && (n.$$events = i),
|
|
1861
|
-
throw
|
|
1862
|
-
|
|
1876
|
+
zn({});
|
|
1877
|
+
var g = C;
|
|
1878
|
+
if (s && (g.c = s), i && (n.$$events = i), P && nt(f, null), En = o, h = e(f, n) || Lr(), En = !0, P && (x.nodes.end = T, T === null || T.nodeType !== 8 || T.data !== "]"))
|
|
1879
|
+
throw ar(), Me;
|
|
1880
|
+
Bn();
|
|
1863
1881
|
}, l);
|
|
1864
1882
|
var d = /* @__PURE__ */ new Set(), c = (f) => {
|
|
1865
1883
|
for (var g = 0; g < f.length; g++) {
|
|
@@ -1868,36 +1886,36 @@ function Ti(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1868
1886
|
d.add(w);
|
|
1869
1887
|
var $ = Ca(w);
|
|
1870
1888
|
for (const ve of [t, document]) {
|
|
1871
|
-
var
|
|
1872
|
-
|
|
1873
|
-
var L =
|
|
1874
|
-
L === void 0 ? (ve.addEventListener(w, $n, { passive: $ }),
|
|
1889
|
+
var I = zt.get(ve);
|
|
1890
|
+
I === void 0 && (I = /* @__PURE__ */ new Map(), zt.set(ve, I));
|
|
1891
|
+
var L = I.get(w);
|
|
1892
|
+
L === void 0 ? (ve.addEventListener(w, $n, { passive: $ }), I.set(w, 1)) : I.set(w, L + 1);
|
|
1875
1893
|
}
|
|
1876
1894
|
}
|
|
1877
1895
|
}
|
|
1878
1896
|
};
|
|
1879
|
-
return c(
|
|
1897
|
+
return c(vs(Ei)), Tr.add(c), () => {
|
|
1880
1898
|
for (var f of d) for (const $ of [t, document]) {
|
|
1881
|
-
var g =
|
|
1882
|
-
--w == 0 ? ($.removeEventListener(f, $n), g.delete(f), g.size === 0 &&
|
|
1899
|
+
var g = zt.get($), w = g.get(f);
|
|
1900
|
+
--w == 0 ? ($.removeEventListener(f, $n), g.delete(f), g.size === 0 && zt.delete($)) : g.set(f, w);
|
|
1883
1901
|
}
|
|
1884
|
-
|
|
1902
|
+
Tr.delete(c), p !== r && p.parentNode?.removeChild(p);
|
|
1885
1903
|
};
|
|
1886
1904
|
});
|
|
1887
|
-
return
|
|
1905
|
+
return Cr.set(h, v), h;
|
|
1888
1906
|
}
|
|
1889
|
-
var
|
|
1907
|
+
var Cr = /* @__PURE__ */ new WeakMap();
|
|
1890
1908
|
function Ua(e, t) {
|
|
1891
|
-
const r =
|
|
1892
|
-
return r ? (
|
|
1909
|
+
const r = Cr.get(e);
|
|
1910
|
+
return r ? (Cr.delete(e), r(t)) : Promise.resolve();
|
|
1893
1911
|
}
|
|
1894
|
-
var pe = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(),
|
|
1912
|
+
var pe = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), qa = class {
|
|
1895
1913
|
constructor(e, t = !0) {
|
|
1896
|
-
|
|
1914
|
+
R(this, "anchor", void 0), y(this, pe, /* @__PURE__ */ new Map()), y(this, ke, /* @__PURE__ */ new Map()), y(this, J, /* @__PURE__ */ new Map()), y(this, ut, /* @__PURE__ */ new Set()), y(this, _r, !0), y(this, pr, (r) => {
|
|
1897
1915
|
if (a(pe, this).has(r)) {
|
|
1898
1916
|
var n = a(pe, this).get(r), i = a(ke, this).get(n);
|
|
1899
1917
|
if (i)
|
|
1900
|
-
wn(i), a(
|
|
1918
|
+
wn(i), a(ut, this).delete(n);
|
|
1901
1919
|
else {
|
|
1902
1920
|
var s = a(J, this).get(n);
|
|
1903
1921
|
s && (wn(s.effect), a(ke, this).set(n, s.effect), a(J, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
|
|
@@ -1905,31 +1923,31 @@ var pe = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J =
|
|
|
1905
1923
|
for (const [o, l] of a(pe, this)) {
|
|
1906
1924
|
if (a(pe, this).delete(o), o === r) break;
|
|
1907
1925
|
const h = a(J, this).get(l);
|
|
1908
|
-
h && (
|
|
1926
|
+
h && (U(h.effect), a(J, this).delete(l));
|
|
1909
1927
|
}
|
|
1910
1928
|
for (const [o, l] of a(ke, this)) {
|
|
1911
|
-
if (o === n || a(
|
|
1929
|
+
if (o === n || a(ut, this).has(o)) continue;
|
|
1912
1930
|
const h = () => {
|
|
1913
1931
|
if (Array.from(a(pe, this).values()).includes(o)) {
|
|
1914
1932
|
var v = document.createDocumentFragment();
|
|
1915
|
-
|
|
1933
|
+
gi(l, v), v.append(we()), a(J, this).set(o, {
|
|
1916
1934
|
effect: l,
|
|
1917
1935
|
fragment: v
|
|
1918
1936
|
});
|
|
1919
|
-
} else
|
|
1920
|
-
a(
|
|
1937
|
+
} else U(l);
|
|
1938
|
+
a(ut, this).delete(o), a(ke, this).delete(o);
|
|
1921
1939
|
};
|
|
1922
|
-
a(
|
|
1940
|
+
a(_r, this) || !i ? (a(ut, this).add(o), At(l, h, !1)) : h();
|
|
1923
1941
|
}
|
|
1924
1942
|
}
|
|
1925
|
-
}),
|
|
1943
|
+
}), y(this, Sn, (r) => {
|
|
1926
1944
|
a(pe, this).delete(r);
|
|
1927
1945
|
const n = Array.from(a(pe, this).values());
|
|
1928
|
-
for (const [i, s] of a(J, this)) n.includes(i) || (
|
|
1929
|
-
}), this.anchor = e,
|
|
1946
|
+
for (const [i, s] of a(J, this)) n.includes(i) || (U(s.effect), a(J, this).delete(i));
|
|
1947
|
+
}), this.anchor = e, b(_r, this, t);
|
|
1930
1948
|
}
|
|
1931
1949
|
ensure(e, t) {
|
|
1932
|
-
var r =
|
|
1950
|
+
var r = S, n = ca();
|
|
1933
1951
|
if (t && !a(ke, this).has(e) && !a(J, this).has(e))
|
|
1934
1952
|
if (n) {
|
|
1935
1953
|
var i = document.createDocumentFragment(), s = we();
|
|
@@ -1941,14 +1959,14 @@ var pe = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J =
|
|
|
1941
1959
|
if (a(pe, this).set(r, e), n) {
|
|
1942
1960
|
for (const [o, l] of a(ke, this)) o === e ? r.unskip_effect(l) : r.skip_effect(l);
|
|
1943
1961
|
for (const [o, l] of a(J, this)) o === e ? r.unskip_effect(l.effect) : r.skip_effect(l.effect);
|
|
1944
|
-
r.oncommit(a(
|
|
1962
|
+
r.oncommit(a(pr, this)), r.ondiscard(a(Sn, this));
|
|
1945
1963
|
} else
|
|
1946
|
-
|
|
1964
|
+
P && (this.anchor = T), a(pr, this).call(this, r);
|
|
1947
1965
|
}
|
|
1948
1966
|
};
|
|
1949
1967
|
function Ya(e) {
|
|
1950
|
-
|
|
1951
|
-
const t =
|
|
1968
|
+
C === null && Os("onMount"), St && C.l !== null ? Ga(C).m.push(e) : Ie(() => {
|
|
1969
|
+
const t = at(e);
|
|
1952
1970
|
if (typeof t == "function") return t;
|
|
1953
1971
|
});
|
|
1954
1972
|
}
|
|
@@ -1962,20 +1980,20 @@ function Ga(e) {
|
|
|
1962
1980
|
}
|
|
1963
1981
|
function Va(e, t, r = !1) {
|
|
1964
1982
|
var n;
|
|
1965
|
-
|
|
1966
|
-
var i = new qa(e), s = r ?
|
|
1983
|
+
P && (n = T, Hr());
|
|
1984
|
+
var i = new qa(e), s = r ? Wr : 0;
|
|
1967
1985
|
function o(l, h) {
|
|
1968
|
-
if (
|
|
1969
|
-
var v =
|
|
1986
|
+
if (P) {
|
|
1987
|
+
var v = Ln(n);
|
|
1970
1988
|
if (l !== parseInt(v.substring(1))) {
|
|
1971
|
-
var p =
|
|
1972
|
-
se(p), i.anchor = p,
|
|
1989
|
+
var p = Hn();
|
|
1990
|
+
se(p), i.anchor = p, et(!1), i.ensure(l, h), et(!0);
|
|
1973
1991
|
return;
|
|
1974
1992
|
}
|
|
1975
1993
|
}
|
|
1976
1994
|
i.ensure(l, h);
|
|
1977
1995
|
}
|
|
1978
|
-
|
|
1996
|
+
di(() => {
|
|
1979
1997
|
var l = !1;
|
|
1980
1998
|
t((h, v = 0) => {
|
|
1981
1999
|
l = !0, o(v, h);
|
|
@@ -1983,11 +2001,11 @@ function Va(e, t, r = !1) {
|
|
|
1983
2001
|
}, s);
|
|
1984
2002
|
}
|
|
1985
2003
|
function Xa(e, t) {
|
|
1986
|
-
|
|
1987
|
-
e =
|
|
2004
|
+
ci(() => {
|
|
2005
|
+
e = x?.parent?.nodes?.start ?? e;
|
|
1988
2006
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1989
2007
|
if (!n.querySelector("#" + t.hash)) {
|
|
1990
|
-
const i =
|
|
2008
|
+
const i = Ur("style");
|
|
1991
2009
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
1992
2010
|
}
|
|
1993
2011
|
});
|
|
@@ -2000,7 +2018,7 @@ function Mn(e, t = !1) {
|
|
|
2000
2018
|
}
|
|
2001
2019
|
return n;
|
|
2002
2020
|
}
|
|
2003
|
-
function
|
|
2021
|
+
function gr(e) {
|
|
2004
2022
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2005
2023
|
}
|
|
2006
2024
|
function Ka(e, t) {
|
|
@@ -2009,7 +2027,7 @@ function Ka(e, t) {
|
|
|
2009
2027
|
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
2010
2028
|
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
2011
2029
|
var s = !1, o = 0, l = !1, h = [];
|
|
2012
|
-
n && h.push(...Object.keys(n).map(
|
|
2030
|
+
n && h.push(...Object.keys(n).map(gr)), i && h.push(...Object.keys(i).map(gr));
|
|
2013
2031
|
var v = 0, p = -1;
|
|
2014
2032
|
const w = e.length;
|
|
2015
2033
|
for (var d = 0; d < w; d++) {
|
|
@@ -2018,7 +2036,7 @@ function Ka(e, t) {
|
|
|
2018
2036
|
if (c === ":" && p === -1) p = d;
|
|
2019
2037
|
else if (c === ";" || d === w - 1) {
|
|
2020
2038
|
if (p !== -1) {
|
|
2021
|
-
var f =
|
|
2039
|
+
var f = gr(e.substring(v, p).trim());
|
|
2022
2040
|
if (!h.includes(f)) {
|
|
2023
2041
|
c !== ";" && d++;
|
|
2024
2042
|
var g = e.substring(v, d).trim();
|
|
@@ -2034,31 +2052,31 @@ function Ka(e, t) {
|
|
|
2034
2052
|
}
|
|
2035
2053
|
return e == null ? null : String(e);
|
|
2036
2054
|
}
|
|
2037
|
-
function
|
|
2055
|
+
function wr(e, t = {}, r, n) {
|
|
2038
2056
|
for (var i in r) {
|
|
2039
2057
|
var s = r[i];
|
|
2040
2058
|
t[i] !== s && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, s, n));
|
|
2041
2059
|
}
|
|
2042
2060
|
}
|
|
2043
2061
|
function Za(e, t, r, n) {
|
|
2044
|
-
var i = e[
|
|
2045
|
-
if (
|
|
2062
|
+
var i = e[kr];
|
|
2063
|
+
if (P || i !== t) {
|
|
2046
2064
|
var s = Ka(t, n);
|
|
2047
|
-
(!
|
|
2048
|
-
} else n && (Array.isArray(n) ? (
|
|
2065
|
+
(!P || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e[kr] = t;
|
|
2066
|
+
} else n && (Array.isArray(n) ? (wr(e, r?.[0], n[0]), wr(e, r?.[1], n[1], "important")) : wr(e, r, n));
|
|
2049
2067
|
return n;
|
|
2050
2068
|
}
|
|
2051
|
-
var Ja = /* @__PURE__ */ Symbol("is custom element"), Qa = /* @__PURE__ */ Symbol("is html"), eo =
|
|
2069
|
+
var Ja = /* @__PURE__ */ Symbol("is custom element"), Qa = /* @__PURE__ */ Symbol("is html"), eo = Ms ? "link" : "LINK";
|
|
2052
2070
|
function ae(e, t, r, n) {
|
|
2053
2071
|
var i = to(e);
|
|
2054
|
-
if (
|
|
2072
|
+
if (P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === eo)) {
|
|
2055
2073
|
n || void 0;
|
|
2056
2074
|
return;
|
|
2057
2075
|
}
|
|
2058
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[
|
|
2076
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[xs] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && ro(e).has(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2059
2077
|
}
|
|
2060
2078
|
function to(e) {
|
|
2061
|
-
return e[
|
|
2079
|
+
return e[$r] ?? (e[$r] = {
|
|
2062
2080
|
[Ja]: e.nodeName.includes("-"),
|
|
2063
2081
|
[Qa]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2064
2082
|
});
|
|
@@ -2069,50 +2087,50 @@ function ro(e) {
|
|
|
2069
2087
|
if (r) return r;
|
|
2070
2088
|
Tn.set(t, r = /* @__PURE__ */ new Set());
|
|
2071
2089
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2072
|
-
n =
|
|
2090
|
+
n = _s(i);
|
|
2073
2091
|
for (var o in n) n[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && r.add(o);
|
|
2074
2092
|
i = Pn(i);
|
|
2075
2093
|
}
|
|
2076
2094
|
return r;
|
|
2077
2095
|
}
|
|
2078
|
-
var
|
|
2096
|
+
var Pi, Qe = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakSet(), Oi = class {
|
|
2079
2097
|
constructor(e) {
|
|
2080
|
-
|
|
2098
|
+
zr(this, An), y(this, Qe, /* @__PURE__ */ new WeakMap()), y(this, sr, void 0), y(this, mr, void 0), b(mr, this, e);
|
|
2081
2099
|
}
|
|
2082
2100
|
observe(e, t) {
|
|
2083
|
-
var r = a(
|
|
2084
|
-
return r.add(t), a(
|
|
2085
|
-
var n = a(
|
|
2086
|
-
n.delete(t), n.size === 0 && (a(
|
|
2101
|
+
var r = a(Qe, this).get(e) || /* @__PURE__ */ new Set();
|
|
2102
|
+
return r.add(t), a(Qe, this).set(e, r), m(An, this, no).call(this).observe(e, a(mr, this)), () => {
|
|
2103
|
+
var n = a(Qe, this).get(e);
|
|
2104
|
+
n.delete(t), n.size === 0 && (a(Qe, this).delete(e), a(sr, this).unobserve(e));
|
|
2087
2105
|
};
|
|
2088
2106
|
}
|
|
2089
2107
|
};
|
|
2090
|
-
|
|
2108
|
+
Pi = Oi;
|
|
2091
2109
|
function no() {
|
|
2092
|
-
return a(
|
|
2110
|
+
return a(sr, this) ?? b(sr, this, new ResizeObserver((e) => {
|
|
2093
2111
|
for (var t of e) {
|
|
2094
|
-
|
|
2095
|
-
for (var r of a(
|
|
2112
|
+
Pi.entries.set(t.target, t);
|
|
2113
|
+
for (var r of a(Qe, this).get(t.target) || []) r(t);
|
|
2096
2114
|
}
|
|
2097
2115
|
}));
|
|
2098
2116
|
}
|
|
2099
|
-
|
|
2100
|
-
function
|
|
2101
|
-
return e === t || e?.[
|
|
2117
|
+
R(Oi, "entries", /* @__PURE__ */ new WeakMap());
|
|
2118
|
+
function br(e, t) {
|
|
2119
|
+
return e === t || e?.[_t] === t;
|
|
2102
2120
|
}
|
|
2103
|
-
function io(e =
|
|
2104
|
-
var i =
|
|
2105
|
-
return
|
|
2121
|
+
function io(e = Lr(), t, r, n) {
|
|
2122
|
+
var i = C.r, s = x;
|
|
2123
|
+
return ci(() => {
|
|
2106
2124
|
var o, l;
|
|
2107
|
-
return
|
|
2108
|
-
o = l, l = n?.() || [],
|
|
2109
|
-
|
|
2125
|
+
return Gr(() => {
|
|
2126
|
+
o = l, l = n?.() || [], at(() => {
|
|
2127
|
+
br(r(...l), e) || (t(e, ...l), o && br(r(...o), e) && t(null, ...o));
|
|
2110
2128
|
});
|
|
2111
2129
|
}), () => {
|
|
2112
2130
|
let h = s;
|
|
2113
2131
|
for (; h !== i && h.parent !== null && h.parent.f & 33554432; ) h = h.parent;
|
|
2114
2132
|
const v = () => {
|
|
2115
|
-
l &&
|
|
2133
|
+
l && br(r(...l), e) && t(null, ...l);
|
|
2116
2134
|
}, p = h.teardown;
|
|
2117
2135
|
h.teardown = () => {
|
|
2118
2136
|
v(), p?.();
|
|
@@ -2120,55 +2138,55 @@ function io(e = Hr(), t, r, n) {
|
|
|
2120
2138
|
};
|
|
2121
2139
|
}), e;
|
|
2122
2140
|
}
|
|
2123
|
-
var
|
|
2141
|
+
var Bt = !1;
|
|
2124
2142
|
function so(e) {
|
|
2125
|
-
var t =
|
|
2143
|
+
var t = Bt;
|
|
2126
2144
|
try {
|
|
2127
|
-
return
|
|
2145
|
+
return Bt = !1, [e(), Bt];
|
|
2128
2146
|
} finally {
|
|
2129
|
-
|
|
2147
|
+
Bt = t;
|
|
2130
2148
|
}
|
|
2131
2149
|
}
|
|
2132
2150
|
function Rn(e, t, r, n) {
|
|
2133
|
-
var i = !
|
|
2151
|
+
var i = !St || (r & 2) !== 0, s = (r & 8) !== 0, o = (r & 16) !== 0, l = n, h = !0, v = void 0, p = () => o && i ? (v ?? (v = /* @__PURE__ */ yt(n)), u(v)) : (h && (h = !1, l = o ? at(n) : n), l);
|
|
2134
2152
|
let d;
|
|
2135
2153
|
if (s) {
|
|
2136
|
-
var c =
|
|
2137
|
-
d =
|
|
2154
|
+
var c = _t in e || Nn in e;
|
|
2155
|
+
d = De(e, t)?.set ?? (c && t in e ? (W) => e[t] = W : void 0);
|
|
2138
2156
|
}
|
|
2139
2157
|
var f, g = !1;
|
|
2140
2158
|
s ? [f, g] = so(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = p(), d && (i && Ds(t), d(f)));
|
|
2141
2159
|
var w;
|
|
2142
2160
|
if (i ? w = () => {
|
|
2143
|
-
var
|
|
2144
|
-
return
|
|
2161
|
+
var W = e[t];
|
|
2162
|
+
return W === void 0 ? p() : (h = !0, W);
|
|
2145
2163
|
} : w = () => {
|
|
2146
|
-
var
|
|
2147
|
-
return
|
|
2164
|
+
var W = e[t];
|
|
2165
|
+
return W !== void 0 && (l = void 0), W === void 0 ? l : W;
|
|
2148
2166
|
}, i && (r & 4) === 0) return w;
|
|
2149
2167
|
if (d) {
|
|
2150
2168
|
var $ = e.$$legacy;
|
|
2151
|
-
return (function(
|
|
2152
|
-
return arguments.length > 0 ? ((!i || !_e || $ || g) && d(_e ? w() :
|
|
2169
|
+
return (function(W, _e) {
|
|
2170
|
+
return arguments.length > 0 ? ((!i || !_e || $ || g) && d(_e ? w() : W), W) : w();
|
|
2153
2171
|
});
|
|
2154
2172
|
}
|
|
2155
|
-
var
|
|
2173
|
+
var I = !1, L = ((r & 1) !== 0 ? yt : Yn)(() => (I = !1, w()));
|
|
2156
2174
|
s && u(L);
|
|
2157
|
-
var ve =
|
|
2158
|
-
return (function(
|
|
2175
|
+
var ve = x;
|
|
2176
|
+
return (function(W, _e) {
|
|
2159
2177
|
if (arguments.length > 0) {
|
|
2160
|
-
const $e = _e ? u(L) : i && s ? Ee(
|
|
2161
|
-
return M(L, $e),
|
|
2178
|
+
const $e = _e ? u(L) : i && s ? Ee(W) : W;
|
|
2179
|
+
return M(L, $e), I = !0, l !== void 0 && (l = $e), W;
|
|
2162
2180
|
}
|
|
2163
|
-
return be &&
|
|
2181
|
+
return be && I || (ve.f & 16384) !== 0 ? L.v : u(L);
|
|
2164
2182
|
});
|
|
2165
2183
|
}
|
|
2166
2184
|
function ao(e) {
|
|
2167
2185
|
return new oo(e);
|
|
2168
2186
|
}
|
|
2169
|
-
var
|
|
2187
|
+
var Oe = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), oo = class {
|
|
2170
2188
|
constructor(e) {
|
|
2171
|
-
|
|
2189
|
+
y(this, Oe, void 0), y(this, oe, void 0);
|
|
2172
2190
|
var t = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
2173
2191
|
var o = /* @__PURE__ */ ia(s, !1, !1);
|
|
2174
2192
|
return t.set(i, o), o;
|
|
@@ -2181,13 +2199,13 @@ var Pe = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), oo =
|
|
|
2181
2199
|
return u(t.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2182
2200
|
},
|
|
2183
2201
|
has(i, s) {
|
|
2184
|
-
return s ===
|
|
2202
|
+
return s === Nn ? !0 : (u(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2185
2203
|
},
|
|
2186
2204
|
set(i, s, o) {
|
|
2187
2205
|
return M(t.get(s) ?? r(s, o), o), Reflect.set(i, s, o);
|
|
2188
2206
|
}
|
|
2189
2207
|
});
|
|
2190
|
-
|
|
2208
|
+
b(oe, this, (e.hydrate ? Fa : Ai)(e.component, {
|
|
2191
2209
|
target: e.target,
|
|
2192
2210
|
anchor: e.anchor,
|
|
2193
2211
|
props: n,
|
|
@@ -2195,9 +2213,9 @@ var Pe = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), oo =
|
|
|
2195
2213
|
intro: e.intro ?? !1,
|
|
2196
2214
|
recover: e.recover,
|
|
2197
2215
|
transformError: e.transformError
|
|
2198
|
-
})), !
|
|
2216
|
+
})), !Te && (!e?.props?.$$host || e.sync === !1) && tr(), b(Oe, this, n.$$events);
|
|
2199
2217
|
for (const i of Object.keys(a(oe, this)))
|
|
2200
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2218
|
+
i === "$set" || i === "$destroy" || i === "$on" || mt(this, i, {
|
|
2201
2219
|
get() {
|
|
2202
2220
|
return a(oe, this)[i];
|
|
2203
2221
|
},
|
|
@@ -2216,19 +2234,19 @@ var Pe = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), oo =
|
|
|
2216
2234
|
a(oe, this).$set(e);
|
|
2217
2235
|
}
|
|
2218
2236
|
$on(e, t) {
|
|
2219
|
-
a(
|
|
2237
|
+
a(Oe, this)[e] = a(Oe, this)[e] || [];
|
|
2220
2238
|
const r = (...n) => t.call(this, ...n);
|
|
2221
|
-
return a(
|
|
2222
|
-
a(
|
|
2239
|
+
return a(Oe, this)[e].push(r), () => {
|
|
2240
|
+
a(Oe, this)[e] = a(Oe, this)[e].filter((n) => n !== r);
|
|
2223
2241
|
};
|
|
2224
2242
|
}
|
|
2225
2243
|
$destroy() {
|
|
2226
2244
|
a(oe, this).$destroy();
|
|
2227
2245
|
}
|
|
2228
|
-
},
|
|
2229
|
-
typeof HTMLElement == "function" && (
|
|
2246
|
+
}, Ci;
|
|
2247
|
+
typeof HTMLElement == "function" && (Ci = class extends HTMLElement {
|
|
2230
2248
|
constructor(e, t, r) {
|
|
2231
|
-
super(),
|
|
2249
|
+
super(), R(this, "$$ctor", void 0), R(this, "$$s", void 0), R(this, "$$c", void 0), R(this, "$$cn", !1), R(this, "$$d", {}), R(this, "$$r", !1), R(this, "$$p_d", {}), R(this, "$$l", {}), R(this, "$$l_u", /* @__PURE__ */ new Map()), R(this, "$$me", void 0), R(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2232
2250
|
}
|
|
2233
2251
|
addEventListener(e, t, r) {
|
|
2234
2252
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2247,8 +2265,8 @@ typeof HTMLElement == "function" && (Pi = class extends HTMLElement {
|
|
|
2247
2265
|
if (this.$$cn = !0, !this.$$c) {
|
|
2248
2266
|
let e = function(n) {
|
|
2249
2267
|
return (i) => {
|
|
2250
|
-
const s =
|
|
2251
|
-
n !== "default" && (s.name = n),
|
|
2268
|
+
const s = Ur("slot");
|
|
2269
|
+
n !== "default" && (s.name = n), Ar(i, s);
|
|
2252
2270
|
};
|
|
2253
2271
|
};
|
|
2254
2272
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
@@ -2256,7 +2274,7 @@ typeof HTMLElement == "function" && (Pi = class extends HTMLElement {
|
|
|
2256
2274
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2257
2275
|
for (const n of this.attributes) {
|
|
2258
2276
|
const i = this.$$g_p(n.name);
|
|
2259
|
-
i in this.$$d || (this.$$d[i] =
|
|
2277
|
+
i in this.$$d || (this.$$d[i] = qt(i, n.value, this.$$p_d, "toProp"));
|
|
2260
2278
|
}
|
|
2261
2279
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2262
2280
|
this.$$c = ao({
|
|
@@ -2268,12 +2286,12 @@ typeof HTMLElement == "function" && (Pi = class extends HTMLElement {
|
|
|
2268
2286
|
$$host: this
|
|
2269
2287
|
}
|
|
2270
2288
|
}), this.$$me = pa(() => {
|
|
2271
|
-
|
|
2289
|
+
Gr(() => {
|
|
2272
2290
|
this.$$r = !0;
|
|
2273
|
-
for (const n of
|
|
2291
|
+
for (const n of Yt(this.$$c)) {
|
|
2274
2292
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2275
2293
|
this.$$d[n] = this.$$c[n];
|
|
2276
|
-
const i =
|
|
2294
|
+
const i = qt(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2277
2295
|
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2278
2296
|
}
|
|
2279
2297
|
this.$$r = !1;
|
|
@@ -2287,7 +2305,7 @@ typeof HTMLElement == "function" && (Pi = class extends HTMLElement {
|
|
|
2287
2305
|
}
|
|
2288
2306
|
}
|
|
2289
2307
|
attributeChangedCallback(e, t, r) {
|
|
2290
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2308
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = qt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2291
2309
|
}
|
|
2292
2310
|
disconnectedCallback() {
|
|
2293
2311
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2295,10 +2313,10 @@ typeof HTMLElement == "function" && (Pi = class extends HTMLElement {
|
|
|
2295
2313
|
});
|
|
2296
2314
|
}
|
|
2297
2315
|
$$g_p(e) {
|
|
2298
|
-
return
|
|
2316
|
+
return Yt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2299
2317
|
}
|
|
2300
2318
|
});
|
|
2301
|
-
function
|
|
2319
|
+
function qt(e, t, r, n) {
|
|
2302
2320
|
const i = r[e]?.type;
|
|
2303
2321
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2304
2322
|
if (n === "toAttribute") switch (i) {
|
|
@@ -2331,27 +2349,27 @@ function lo(e) {
|
|
|
2331
2349
|
}), t;
|
|
2332
2350
|
}
|
|
2333
2351
|
function fo(e, t, r, n, i, s) {
|
|
2334
|
-
let o = class extends
|
|
2352
|
+
let o = class extends Ci {
|
|
2335
2353
|
constructor() {
|
|
2336
2354
|
super(e, r, i), this.$$p_d = t;
|
|
2337
2355
|
}
|
|
2338
2356
|
static get observedAttributes() {
|
|
2339
|
-
return
|
|
2357
|
+
return Yt(t).map((l) => (t[l].attribute || l).toLowerCase());
|
|
2340
2358
|
}
|
|
2341
2359
|
};
|
|
2342
|
-
return
|
|
2343
|
-
|
|
2360
|
+
return Yt(t).forEach((l) => {
|
|
2361
|
+
mt(o.prototype, l, {
|
|
2344
2362
|
get() {
|
|
2345
2363
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2346
2364
|
},
|
|
2347
2365
|
set(h) {
|
|
2348
|
-
h =
|
|
2366
|
+
h = qt(l, h, t), this.$$d[l] = h;
|
|
2349
2367
|
var v = this.$$c;
|
|
2350
|
-
v && (
|
|
2368
|
+
v && (De(v, l)?.get ? v[l] = h : v.$set({ [l]: h }));
|
|
2351
2369
|
}
|
|
2352
2370
|
});
|
|
2353
2371
|
}), n.forEach((l) => {
|
|
2354
|
-
|
|
2372
|
+
mt(o.prototype, l, { get() {
|
|
2355
2373
|
return this.$$c?.[l];
|
|
2356
2374
|
} });
|
|
2357
2375
|
}), s && (o = s(o)), e.element = o, o;
|
|
@@ -2421,19 +2439,19 @@ var uo = /* @__PURE__ */ Aa('<div class="pie-sr-only svelte-a1a4bp" role="status
|
|
|
2421
2439
|
/* Resizes the frame bands and the overall width, so it reads as a corner grip. */.pie-tool-line-reader__resize-handle--frame.svelte-a1a4bp {bottom:4px;right:4px;cursor:nwse-resize;}.pie-tool-line-reader.svelte-a1a4bp:active {cursor:grabbing;}`
|
|
2422
2440
|
};
|
|
2423
2441
|
function ho(e, t) {
|
|
2424
|
-
|
|
2442
|
+
zn(t, !0), Xa(e, co);
|
|
2425
2443
|
let r = Rn(t, "visible", 7, !1), n = Rn(t, "toolId", 7, "lineReader");
|
|
2426
2444
|
const i = typeof window < "u";
|
|
2427
2445
|
let s = /* @__PURE__ */ D(void 0), o = /* @__PURE__ */ D(null);
|
|
2428
|
-
const l = /* @__PURE__ */
|
|
2446
|
+
const l = /* @__PURE__ */ cr(() => u(o)?.toolCoordinator);
|
|
2429
2447
|
let h = /* @__PURE__ */ D(null), v = /* @__PURE__ */ D(Ee({
|
|
2430
2448
|
x: 0,
|
|
2431
2449
|
y: 0
|
|
2432
2450
|
})), p = !1;
|
|
2433
|
-
const d =
|
|
2451
|
+
const d = ls({
|
|
2434
2452
|
getPosition: () => u(v),
|
|
2435
2453
|
setPosition: (_) => {
|
|
2436
|
-
M(v,
|
|
2454
|
+
M(v, Re(_), !0);
|
|
2437
2455
|
},
|
|
2438
2456
|
onDragStart: (_) => u(l)?.bringToFront(_)
|
|
2439
2457
|
});
|
|
@@ -2444,94 +2462,94 @@ function ho(e, t) {
|
|
|
2444
2462
|
mouseX: 0,
|
|
2445
2463
|
mouseY: 0
|
|
2446
2464
|
}));
|
|
2447
|
-
const $ = /* @__PURE__ */
|
|
2448
|
-
let
|
|
2449
|
-
const L =
|
|
2450
|
-
|
|
2465
|
+
const $ = /* @__PURE__ */ cr(() => cs(u(o)));
|
|
2466
|
+
let I = /* @__PURE__ */ D("");
|
|
2467
|
+
const L = ss("Line Reader", ns.TOOL), ve = 12, W = 200, _e = 32, $e = 240, Kr = 200, Zr = 2e3, Jr = as, Pt = 10, lr = 10, Ii = 20, Qr = /* @__PURE__ */ cr(() => u(f) + u(g) * 2);
|
|
2468
|
+
Ie(() => {
|
|
2451
2469
|
if (u(s))
|
|
2452
|
-
return
|
|
2470
|
+
return is(u(s), (_) => {
|
|
2453
2471
|
M(o, _, !0);
|
|
2454
2472
|
});
|
|
2455
2473
|
});
|
|
2456
|
-
let
|
|
2457
|
-
function
|
|
2458
|
-
|
|
2459
|
-
M(
|
|
2474
|
+
let Xe = null;
|
|
2475
|
+
function Ae(_) {
|
|
2476
|
+
Xe !== null && clearTimeout(Xe), M(I, _, !0), Xe = setTimeout(() => {
|
|
2477
|
+
M(I, ""), Xe = null;
|
|
2460
2478
|
}, 1e3);
|
|
2461
2479
|
}
|
|
2462
|
-
function Qr(_) {
|
|
2463
|
-
return Math.max(ve, Math.min(N, _));
|
|
2464
|
-
}
|
|
2465
2480
|
function en(_) {
|
|
2466
|
-
return Math.max(
|
|
2481
|
+
return Math.max(ve, Math.min(W, _));
|
|
2467
2482
|
}
|
|
2468
|
-
function
|
|
2469
|
-
|
|
2470
|
-
return Math.max(Xr, Math.min(Math.max(Xr, U), _));
|
|
2483
|
+
function tn(_) {
|
|
2484
|
+
return Math.max(_e, Math.min($e, _));
|
|
2471
2485
|
}
|
|
2472
|
-
function
|
|
2473
|
-
|
|
2486
|
+
function Ot(_) {
|
|
2487
|
+
const k = nn()?.width, q = k === void 0 ? Zr : Math.min(Zr, k - Jr * 2);
|
|
2488
|
+
return Math.max(Kr, Math.min(Math.max(Kr, q), _));
|
|
2474
2489
|
}
|
|
2475
2490
|
function rn() {
|
|
2476
|
-
|
|
2491
|
+
return us(u(s));
|
|
2492
|
+
}
|
|
2493
|
+
function nn() {
|
|
2494
|
+
const _ = rn();
|
|
2477
2495
|
return _ && {
|
|
2478
2496
|
width: _.width,
|
|
2479
2497
|
height: _.height
|
|
2480
2498
|
};
|
|
2481
2499
|
}
|
|
2482
|
-
function
|
|
2483
|
-
const _ =
|
|
2500
|
+
function Ni() {
|
|
2501
|
+
const _ = rn();
|
|
2484
2502
|
if (!_) return;
|
|
2485
|
-
const k = Math.max(_.left, 0),
|
|
2486
|
-
return
|
|
2503
|
+
const k = Math.max(_.left, 0), q = Math.max(_.top, 0), Nt = Math.min(_.right, window.innerWidth), j = Math.min(_.bottom, window.innerHeight);
|
|
2504
|
+
return Nt <= k || j <= q ? {
|
|
2487
2505
|
x: _.width / 2,
|
|
2488
2506
|
y: _.height / 2
|
|
2489
2507
|
} : {
|
|
2490
|
-
x: (k +
|
|
2491
|
-
y: (
|
|
2508
|
+
x: (k + Nt) / 2 - _.left,
|
|
2509
|
+
y: (q + j) / 2 - _.top
|
|
2492
2510
|
};
|
|
2493
2511
|
}
|
|
2494
|
-
function
|
|
2495
|
-
const k =
|
|
2496
|
-
return k ?
|
|
2512
|
+
function Re(_) {
|
|
2513
|
+
const k = nn();
|
|
2514
|
+
return k ? os(_, {
|
|
2497
2515
|
width: u(c),
|
|
2498
|
-
height: u(
|
|
2499
|
-
}, k,
|
|
2500
|
-
}
|
|
2501
|
-
function at() {
|
|
2502
|
-
M(v, Ae(u(v)), !0);
|
|
2516
|
+
height: u(Qr)
|
|
2517
|
+
}, k, Jr) : _;
|
|
2503
2518
|
}
|
|
2504
|
-
function
|
|
2505
|
-
M(
|
|
2519
|
+
function lt() {
|
|
2520
|
+
M(v, Re(u(v)), !0);
|
|
2506
2521
|
}
|
|
2507
|
-
function
|
|
2508
|
-
M(
|
|
2522
|
+
function Ct(_) {
|
|
2523
|
+
M(f, en(u(f) + _), !0), lt(), Ae(u($).t("tools.lineReader.windowHeightAnnounce", { pixels: u(f) }));
|
|
2509
2524
|
}
|
|
2510
2525
|
function sn(_) {
|
|
2511
|
-
M(
|
|
2526
|
+
M(g, tn(u(g) + _), !0), lt(), Ae(u($).t("tools.lineReader.frameHeightAnnounce", { pixels: u(g) }));
|
|
2512
2527
|
}
|
|
2513
|
-
function an() {
|
|
2528
|
+
function an(_) {
|
|
2529
|
+
M(c, Ot(u(c) + _), !0), lt(), Ae(u($).t("tools.lineReader.widthAnnounce", { pixels: u(c) }));
|
|
2530
|
+
}
|
|
2531
|
+
function on() {
|
|
2514
2532
|
u(l) && n() && u(l).hideTool(n());
|
|
2515
2533
|
}
|
|
2516
|
-
function
|
|
2517
|
-
const k = _.target,
|
|
2518
|
-
if (
|
|
2519
|
-
|
|
2534
|
+
function Wi(_) {
|
|
2535
|
+
const k = _.target, q = k.closest(".pie-tool-line-reader__resize-handle");
|
|
2536
|
+
if (q) {
|
|
2537
|
+
Li(_, q.classList.contains("pie-tool-line-reader__resize-handle--frame") ? "frame" : "pane", q);
|
|
2520
2538
|
return;
|
|
2521
2539
|
}
|
|
2522
|
-
k.closest("button") ||
|
|
2540
|
+
k.closest("button") || Hi(_);
|
|
2523
2541
|
}
|
|
2524
|
-
const
|
|
2525
|
-
onMove:
|
|
2542
|
+
const It = fs({
|
|
2543
|
+
onMove: Di,
|
|
2526
2544
|
onEnd: () => {
|
|
2527
2545
|
d.endDragging(), M(h, null);
|
|
2528
2546
|
}
|
|
2529
2547
|
});
|
|
2530
|
-
function
|
|
2531
|
-
!u(s) || !
|
|
2548
|
+
function Hi(_) {
|
|
2549
|
+
!u(s) || !It.begin(_, u(s)) || (u(s).focus({ preventScroll: !0 }), d.startDragging(_, u(s)));
|
|
2532
2550
|
}
|
|
2533
|
-
function
|
|
2534
|
-
_.stopPropagation(), !(!u(s) || !
|
|
2551
|
+
function Li(_, k, q) {
|
|
2552
|
+
_.stopPropagation(), !(!u(s) || !It.begin(_, u(s))) && (u(s).setPointerCapture(_.pointerId), q.focus({ preventScroll: !0 }), M(h, k, !0), M(w, {
|
|
2535
2553
|
paneHeight: u(f),
|
|
2536
2554
|
frameBandHeight: u(g),
|
|
2537
2555
|
width: u(c),
|
|
@@ -2539,7 +2557,7 @@ function ho(e, t) {
|
|
|
2539
2557
|
mouseY: _.clientY
|
|
2540
2558
|
}, !0), u(l)?.bringToFront(u(s)));
|
|
2541
2559
|
}
|
|
2542
|
-
function
|
|
2560
|
+
function Di(_) {
|
|
2543
2561
|
if (d.isDragging()) {
|
|
2544
2562
|
d.handlePointerMove(_);
|
|
2545
2563
|
return;
|
|
@@ -2547,120 +2565,120 @@ function ho(e, t) {
|
|
|
2547
2565
|
if (!u(h)) return;
|
|
2548
2566
|
const k = _.clientY - u(w).mouseY;
|
|
2549
2567
|
if (u(h) === "pane") {
|
|
2550
|
-
M(f,
|
|
2568
|
+
M(f, en(u(w).paneHeight + k * 2), !0);
|
|
2551
2569
|
return;
|
|
2552
2570
|
}
|
|
2553
|
-
M(g,
|
|
2571
|
+
M(g, tn(u(w).frameBandHeight + k), !0), M(c, Ot(u(w).width + (_.clientX - u(w).mouseX) * 2), !0), lt();
|
|
2554
2572
|
}
|
|
2555
|
-
function
|
|
2573
|
+
function ji(_) {
|
|
2556
2574
|
let k = !1;
|
|
2557
2575
|
switch (_.key) {
|
|
2558
2576
|
case "ArrowUp":
|
|
2559
|
-
M(v,
|
|
2577
|
+
M(v, Re({
|
|
2560
2578
|
x: u(v).x,
|
|
2561
|
-
y: u(v).y -
|
|
2562
|
-
}), !0),
|
|
2579
|
+
y: u(v).y - Pt
|
|
2580
|
+
}), !0), Ae(u($).t("toolkit.announce.movedUp", { position: Math.round(u(v).y) })), k = !0;
|
|
2563
2581
|
break;
|
|
2564
2582
|
case "ArrowDown":
|
|
2565
|
-
M(v,
|
|
2583
|
+
M(v, Re({
|
|
2566
2584
|
x: u(v).x,
|
|
2567
|
-
y: u(v).y +
|
|
2568
|
-
}), !0),
|
|
2585
|
+
y: u(v).y + Pt
|
|
2586
|
+
}), !0), Ae(u($).t("toolkit.announce.movedDown", { position: Math.round(u(v).y) })), k = !0;
|
|
2569
2587
|
break;
|
|
2570
2588
|
case "ArrowLeft":
|
|
2571
|
-
M(v,
|
|
2572
|
-
x: u(v).x -
|
|
2589
|
+
M(v, Re({
|
|
2590
|
+
x: u(v).x - Pt,
|
|
2573
2591
|
y: u(v).y
|
|
2574
|
-
}), !0),
|
|
2592
|
+
}), !0), Ae(u($).t("toolkit.announce.movedLeft", { position: Math.round(u(v).x) })), k = !0;
|
|
2575
2593
|
break;
|
|
2576
2594
|
case "ArrowRight":
|
|
2577
|
-
M(v,
|
|
2578
|
-
x: u(v).x +
|
|
2595
|
+
M(v, Re({
|
|
2596
|
+
x: u(v).x + Pt,
|
|
2579
2597
|
y: u(v).y
|
|
2580
|
-
}), !0),
|
|
2598
|
+
}), !0), Ae(u($).t("toolkit.announce.movedRight", { position: Math.round(u(v).x) })), k = !0;
|
|
2581
2599
|
break;
|
|
2582
2600
|
case "+":
|
|
2583
2601
|
case "=":
|
|
2584
|
-
|
|
2602
|
+
Ct(lr), k = !0;
|
|
2585
2603
|
break;
|
|
2586
2604
|
case "-":
|
|
2587
2605
|
case "_":
|
|
2588
|
-
|
|
2606
|
+
Ct(-10), k = !0;
|
|
2589
2607
|
break;
|
|
2590
2608
|
case "Escape":
|
|
2591
|
-
|
|
2609
|
+
on(), k = !0;
|
|
2592
2610
|
}
|
|
2593
2611
|
k && _.preventDefault();
|
|
2594
2612
|
}
|
|
2595
|
-
function
|
|
2613
|
+
function zi(_) {
|
|
2596
2614
|
let k = !1;
|
|
2597
2615
|
switch (_.key) {
|
|
2598
2616
|
case "ArrowUp":
|
|
2599
|
-
|
|
2617
|
+
Ct(-10), k = !0;
|
|
2600
2618
|
break;
|
|
2601
2619
|
case "ArrowDown":
|
|
2602
|
-
|
|
2620
|
+
Ct(lr), k = !0;
|
|
2603
2621
|
}
|
|
2604
2622
|
k && (_.preventDefault(), _.stopPropagation());
|
|
2605
2623
|
}
|
|
2606
|
-
function
|
|
2624
|
+
function Bi(_) {
|
|
2607
2625
|
let k = !1;
|
|
2608
2626
|
switch (_.key) {
|
|
2609
2627
|
case "ArrowUp":
|
|
2610
|
-
|
|
2628
|
+
sn(-10), k = !0;
|
|
2611
2629
|
break;
|
|
2612
2630
|
case "ArrowDown":
|
|
2613
|
-
|
|
2631
|
+
sn(lr), k = !0;
|
|
2614
2632
|
break;
|
|
2615
2633
|
case "ArrowLeft":
|
|
2616
|
-
|
|
2634
|
+
an(-20), k = !0;
|
|
2617
2635
|
break;
|
|
2618
2636
|
case "ArrowRight":
|
|
2619
|
-
|
|
2637
|
+
an(Ii), k = !0;
|
|
2620
2638
|
}
|
|
2621
2639
|
k && (_.preventDefault(), _.stopPropagation());
|
|
2622
2640
|
}
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
}),
|
|
2641
|
+
Ie(() => L.sync(u(l), n())), Ya(() => () => {
|
|
2642
|
+
Xe !== null && clearTimeout(Xe), It.release(), L.release();
|
|
2643
|
+
}), Ie(() => {
|
|
2626
2644
|
u(l) && u(s) && n() && u(l).updateToolElement(n(), u(s));
|
|
2627
2645
|
});
|
|
2628
|
-
function
|
|
2646
|
+
function Fi() {
|
|
2629
2647
|
if (p) return;
|
|
2630
|
-
const _ =
|
|
2631
|
-
_ && (p = !0, M(c,
|
|
2648
|
+
const _ = Ni();
|
|
2649
|
+
_ && (p = !0, M(c, Ot(u(c)), !0), M(v, Re(_), !0));
|
|
2632
2650
|
}
|
|
2633
|
-
|
|
2634
|
-
r() ||
|
|
2635
|
-
}),
|
|
2651
|
+
Ie(() => {
|
|
2652
|
+
r() || at(() => It.release());
|
|
2653
|
+
}), Ie(() => {
|
|
2636
2654
|
if (!r() || !u(s)) return;
|
|
2637
|
-
|
|
2655
|
+
at(Fi);
|
|
2638
2656
|
const _ = setTimeout(() => u(s)?.focus({ preventScroll: !0 }), 100);
|
|
2639
2657
|
return () => clearTimeout(_);
|
|
2640
|
-
}),
|
|
2658
|
+
}), Ie(() => {
|
|
2641
2659
|
if (!i || !r()) return;
|
|
2642
2660
|
const _ = () => {
|
|
2643
|
-
M(c,
|
|
2661
|
+
M(c, Ot(u(c)), !0), lt();
|
|
2644
2662
|
};
|
|
2645
2663
|
return window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
|
|
2646
2664
|
});
|
|
2647
|
-
var
|
|
2665
|
+
var Ui = {
|
|
2648
2666
|
get visible() {
|
|
2649
2667
|
return r();
|
|
2650
2668
|
},
|
|
2651
2669
|
set visible(_ = !1) {
|
|
2652
|
-
r(_),
|
|
2670
|
+
r(_), tr();
|
|
2653
2671
|
},
|
|
2654
2672
|
get toolId() {
|
|
2655
2673
|
return n();
|
|
2656
2674
|
},
|
|
2657
2675
|
set toolId(_ = "lineReader") {
|
|
2658
|
-
n(_),
|
|
2676
|
+
n(_), tr();
|
|
2659
2677
|
}
|
|
2660
|
-
},
|
|
2661
|
-
var k = uo(),
|
|
2662
|
-
|
|
2663
|
-
Ba(
|
|
2678
|
+
}, ln = Ra(), qi = gn(ln), Yi = (_) => {
|
|
2679
|
+
var k = uo(), q = gn(k), Nt = fa(q, !0), j = Dt(q, 2), Wt = Dt(fi(j), 4), Ht = Dt(Wt, 2), fr = Dt(Ht, 2);
|
|
2680
|
+
Wn(j), io(j, (ur) => M(s, ur), () => u(s)), ma((ur, Gi, Vi, Xi, Ki, Zi, Ji, Qi, es, ts) => {
|
|
2681
|
+
Ba(Nt, u(I)), Za(j, `left: ${u(v).x ?? ""}px; top: ${u(v).y ?? ""}px; width: ${u(c) ?? ""}px; height: ${u(Qr) ?? ""}px; --pie-tool-line-reader-band-height: ${u(g) ?? ""}px; --pie-tool-line-reader-side-width: 12px;`), ae(j, "lang", ur), ae(j, "dir", Gi), ae(j, "aria-label", Vi), ae(j, "aria-roledescription", Xi), ae(Wt, "title", Ki), ae(Wt, "aria-label", Zi), ae(Ht, "title", Ji), ae(Ht, "aria-label", Qi), ae(fr, "title", es), ae(fr, "aria-label", ts), j.dir = j.dir;
|
|
2664
2682
|
}, [
|
|
2665
2683
|
() => u($).getLocale(),
|
|
2666
2684
|
() => u($).getDirection?.() ?? "ltr",
|
|
@@ -2678,11 +2696,11 @@ function ho(e, t) {
|
|
|
2678
2696
|
frameHeight: u(g),
|
|
2679
2697
|
width: u(c)
|
|
2680
2698
|
})
|
|
2681
|
-
]),
|
|
2699
|
+
]), ft("pointerdown", j, Wi), ft("keydown", j, ji), ft("click", Wt, on), ft("keydown", Ht, zi), ft("keydown", fr, Bi), Ar(_, k);
|
|
2682
2700
|
};
|
|
2683
|
-
return Va(
|
|
2684
|
-
r() && _(
|
|
2685
|
-
}),
|
|
2701
|
+
return Va(qi, (_) => {
|
|
2702
|
+
r() && _(Yi);
|
|
2703
|
+
}), Ar(e, ln), Bn(Ui);
|
|
2686
2704
|
}
|
|
2687
2705
|
Ea([
|
|
2688
2706
|
"pointerdown",
|
|
@@ -2698,7 +2716,7 @@ vo("pie-tool-line-reader", fo(ho, {
|
|
|
2698
2716
|
attribute: "tool-id",
|
|
2699
2717
|
type: "String"
|
|
2700
2718
|
}
|
|
2701
|
-
}, [], [], { mode: "open" },
|
|
2719
|
+
}, [], [], { mode: "open" }, rs));
|
|
2702
2720
|
function vo(e, t) {
|
|
2703
2721
|
customElements.get(e) || customElements.define(e, t);
|
|
2704
2722
|
}
|