@pie-players/pie-tool-annotation-toolbar 1.0.0-beta.7 → 1.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-annotation-toolbar.js +1528 -1540
- package/package.json +5 -5
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { coerceBooleanAttributes as
|
|
2
|
-
import { HighlightColor as
|
|
3
|
-
import { resolveInterfaceI18n as
|
|
4
|
-
import { sanitizeSvgIcon as
|
|
5
|
-
import { isComposingKeyEvent as
|
|
1
|
+
import { coerceBooleanAttributes as Qo } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
+
import { HighlightColor as Ae, catalogContextHolding as ea, composedClosest as ta, composedContains as pr, connectToolRegionScopeContext as na, connectToolRuntimeContext as ra, connectToolShellContext as ia, findShellScopeHost as oa, isShadowRootNode as Cr, isTTSStartFailure as aa, reportToolFailure as or, resolveContentRegion as sa, retargetToTree as la } from "@pie-players/pie-assessment-toolkit/tools/registration";
|
|
3
|
+
import { resolveInterfaceI18n as fa } from "@pie-players/pie-players-shared/i18n/provider";
|
|
4
|
+
import { sanitizeSvgIcon as ua } from "@pie-players/pie-players-shared/security";
|
|
5
|
+
import { isComposingKeyEvent as ca } from "@pie-players/pie-players-shared";
|
|
6
6
|
if (typeof window < "u") {
|
|
7
|
-
var
|
|
8
|
-
((
|
|
7
|
+
var ri, ii;
|
|
8
|
+
((ri = (ii = window).__svelte ?? (ii.__svelte = {})).v ?? (ri.v = /* @__PURE__ */ new Set())).add("5");
|
|
9
9
|
}
|
|
10
|
-
var Ve = {},
|
|
11
|
-
var
|
|
10
|
+
var Ve = {}, U = /* @__PURE__ */ Symbol("uninitialized");
|
|
11
|
+
var da = "http://www.w3.org/2000/svg", ha = "http://www.w3.org/1998/Math/MathML", Mi = Array.isArray, va = Array.prototype.indexOf, Jt = Array.prototype.includes, Bn = Array.from, Cn = Object.keys, Qt = Object.defineProperty, ct = Object.getOwnPropertyDescriptor, _a = Object.getOwnPropertyDescriptors, pa = Object.prototype, ga = Array.prototype, Ri = Object.getPrototypeOf, oi = Object.isExtensible, ba = () => {
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function wa(e) {
|
|
14
14
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Ci() {
|
|
17
17
|
var e, t;
|
|
18
18
|
return {
|
|
19
19
|
promise: new Promise((n, r) => {
|
|
@@ -23,78 +23,78 @@ function Pi() {
|
|
|
23
23
|
reject: t
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function en(e) {
|
|
27
27
|
"@babel/helpers - typeof";
|
|
28
|
-
return
|
|
28
|
+
return en = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
29
29
|
return typeof t;
|
|
30
30
|
} : function(t) {
|
|
31
31
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
32
|
-
},
|
|
32
|
+
}, en(e);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
if (
|
|
34
|
+
function ma(e, t) {
|
|
35
|
+
if (en(e) != "object" || !e) return e;
|
|
36
36
|
var n = e[Symbol.toPrimitive];
|
|
37
37
|
if (n !== void 0) {
|
|
38
38
|
var r = n.call(e, t || "default");
|
|
39
|
-
if (
|
|
39
|
+
if (en(r) != "object") return r;
|
|
40
40
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
41
41
|
}
|
|
42
42
|
return (t === "string" ? String : Number)(e);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
var t =
|
|
46
|
-
return
|
|
44
|
+
function ya(e) {
|
|
45
|
+
var t = ma(e, "string");
|
|
46
|
+
return en(t) == "symbol" ? t : t + "";
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return (t =
|
|
48
|
+
function N(e, t, n) {
|
|
49
|
+
return (t = ya(t)) in e ? Object.defineProperty(e, t, {
|
|
50
50
|
value: n,
|
|
51
51
|
enumerable: !0,
|
|
52
52
|
configurable: !0,
|
|
53
53
|
writable: !0
|
|
54
54
|
}) : e[t] = n, e;
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
var
|
|
56
|
+
var ql = 1 << 24, _e = 1024, oe = 2048, tt = 4096, Or = 8192, Oi = 16384, Lr = 32768, gr = 1 << 25, Nr = 65536, Dl = 1 << 17, Wl = 1 << 18, Ct = 1 << 19, ka = 1 << 20, Yt = 1 << 25, ai = 1 << 21, $a = 1 << 22, On = 1 << 23, Kt = /* @__PURE__ */ Symbol("$state"), Li = /* @__PURE__ */ Symbol("component"), Ni = /* @__PURE__ */ Symbol("legacy props"), Ea = /* @__PURE__ */ Symbol(""), Ta = /* @__PURE__ */ Symbol("proxy path"), br = /* @__PURE__ */ Symbol("attributes"), wr = /* @__PURE__ */ Symbol("class"), mr = /* @__PURE__ */ Symbol("style"), An = /* @__PURE__ */ Symbol("text");
|
|
57
|
+
var sn = new class extends Error {
|
|
58
58
|
constructor(...t) {
|
|
59
|
-
super(...t),
|
|
59
|
+
super(...t), N(this, "name", "StaleReactionError"), N(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
60
60
|
}
|
|
61
|
-
}(),
|
|
62
|
-
function
|
|
61
|
+
}(), Sa = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
62
|
+
function Aa() {
|
|
63
63
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ln(e) {
|
|
66
66
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function xa() {
|
|
69
69
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
function
|
|
73
|
-
|
|
71
|
+
var A = !1;
|
|
72
|
+
function je(e) {
|
|
73
|
+
A = e;
|
|
74
74
|
}
|
|
75
75
|
var C;
|
|
76
|
-
function
|
|
76
|
+
function K(e) {
|
|
77
77
|
if (e === null)
|
|
78
|
-
throw
|
|
78
|
+
throw ln(), Ve;
|
|
79
79
|
return C = e;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function At() {
|
|
82
|
+
return K(/* @__PURE__ */ Te(C));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
if (
|
|
84
|
+
function Vt(e) {
|
|
85
|
+
if (A) {
|
|
86
86
|
if (/* @__PURE__ */ Te(C) !== null)
|
|
87
|
-
throw
|
|
87
|
+
throw ln(), Ve;
|
|
88
88
|
C = e;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
91
|
+
function Ma(e = 1) {
|
|
92
|
+
if (A) {
|
|
93
93
|
for (var t = e, n = C; t--; ) n = /* @__PURE__ */ Te(n);
|
|
94
94
|
C = n;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Ln(e = !0) {
|
|
98
98
|
for (var t = 0, n = C; ; ) {
|
|
99
99
|
if (n.nodeType === 8) {
|
|
100
100
|
var r = n.data;
|
|
@@ -107,126 +107,126 @@ function In(e = !0) {
|
|
|
107
107
|
e && n.remove(), n = i;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Ir(e) {
|
|
111
111
|
if (!e || e.nodeType !== 8)
|
|
112
|
-
throw
|
|
112
|
+
throw ln(), Ve;
|
|
113
113
|
return e.data;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Ii(e) {
|
|
116
116
|
return e === this.v;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Ra(e, t) {
|
|
119
119
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
return !
|
|
121
|
+
function Pi(e) {
|
|
122
|
+
return !Ra(e, this.v);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Ca() {
|
|
125
125
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Oa(e, t, n) {
|
|
128
128
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function La(e) {
|
|
131
131
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Na() {
|
|
134
134
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Ia(e) {
|
|
137
137
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Pa() {
|
|
140
140
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function qa() {
|
|
143
143
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Da(e) {
|
|
146
146
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Wa() {
|
|
149
149
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function ja() {
|
|
152
152
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Ha() {
|
|
155
155
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Va() {
|
|
158
158
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
159
159
|
}
|
|
160
|
-
var Be = !1,
|
|
161
|
-
function
|
|
162
|
-
return e.label = t,
|
|
160
|
+
var Be = !1, zn = !1;
|
|
161
|
+
function si(e, t) {
|
|
162
|
+
return e.label = t, Fa(e.v, t), e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
return e?.[
|
|
164
|
+
function Fa(e, t) {
|
|
165
|
+
return e?.[Ta]?.(t), e;
|
|
166
166
|
}
|
|
167
|
-
var
|
|
168
|
-
function
|
|
169
|
-
|
|
167
|
+
var B = null;
|
|
168
|
+
function xt(e) {
|
|
169
|
+
B = e;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
173
|
-
p:
|
|
171
|
+
function qi(e, t = !1, n) {
|
|
172
|
+
B = {
|
|
173
|
+
p: B,
|
|
174
174
|
i: !1,
|
|
175
175
|
c: null,
|
|
176
176
|
e: null,
|
|
177
177
|
s: e,
|
|
178
178
|
x: null,
|
|
179
|
-
r:
|
|
180
|
-
l:
|
|
179
|
+
r: T,
|
|
180
|
+
l: zn && !t ? {
|
|
181
181
|
s: null,
|
|
182
182
|
u: null,
|
|
183
183
|
$: []
|
|
184
184
|
} : null
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var t =
|
|
187
|
+
function Di(e) {
|
|
188
|
+
var t = B, n = t.e;
|
|
189
189
|
if (n !== null) {
|
|
190
190
|
t.e = null;
|
|
191
|
-
for (var r of n)
|
|
191
|
+
for (var r of n) lo(r);
|
|
192
192
|
}
|
|
193
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
193
|
+
return e !== void 0 && (t.x = e), t.i = !0, B = t.p, Pr(e);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function Pr(e = {}) {
|
|
196
|
+
return Qt(e, Li, { value: !0 }), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
return !
|
|
198
|
+
function fn() {
|
|
199
|
+
return !zn || B !== null && B.l === null;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
202
|
-
function
|
|
203
|
-
var e =
|
|
204
|
-
|
|
201
|
+
var lt = [];
|
|
202
|
+
function Wi() {
|
|
203
|
+
var e = lt;
|
|
204
|
+
lt = [], wa(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
if (
|
|
208
|
-
var t =
|
|
206
|
+
function et(e) {
|
|
207
|
+
if (lt.length === 0 && !Xt) {
|
|
208
|
+
var t = lt;
|
|
209
209
|
queueMicrotask(() => {
|
|
210
|
-
t ===
|
|
210
|
+
t === lt && Wi();
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
|
|
213
|
+
lt.push(e);
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
for (;
|
|
215
|
+
function Ba() {
|
|
216
|
+
for (; lt.length > 0; ) Wi();
|
|
217
217
|
}
|
|
218
|
-
var
|
|
218
|
+
var za = ~(oe | tt | _e);
|
|
219
219
|
function j(e, t) {
|
|
220
|
-
e.f = e.f &
|
|
220
|
+
e.f = e.f & za | t;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
(e.f & 512) !== 0 || e.deps === null ? j(e, _e) : j(e,
|
|
222
|
+
function qr(e) {
|
|
223
|
+
(e.f & 512) !== 0 || e.deps === null ? j(e, _e) : j(e, tt);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
(e.f & 2048) !== 0 ? t.
|
|
225
|
+
function ji(e, t) {
|
|
226
|
+
(e.f & 2048) !== 0 ? t.set(e, oe) : (e.f & 4096) !== 0 && t.get(e) !== 2048 && t.set(e, tt), j(e, _e);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
var t =
|
|
228
|
+
function Un(e) {
|
|
229
|
+
var t = x, n = T;
|
|
230
230
|
ge(null), Ne(null);
|
|
231
231
|
try {
|
|
232
232
|
return e();
|
|
@@ -234,313 +234,300 @@ function Xn(e) {
|
|
|
234
234
|
ge(t), Ne(n);
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
const i =
|
|
239
|
-
var o = e.filter((h) => !h.settled),
|
|
237
|
+
function Ua(e, t, n, r) {
|
|
238
|
+
const i = fn() ? tn : Dr;
|
|
239
|
+
var o = e.filter((h) => !h.settled), s = t.map(i);
|
|
240
240
|
if (n.length === 0 && o.length === 0) {
|
|
241
|
-
r(
|
|
241
|
+
r(s);
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
|
-
var f =
|
|
245
|
-
function
|
|
244
|
+
var f = T, u = Ga(), _ = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((h) => h.promise)) : null;
|
|
245
|
+
function p(h) {
|
|
246
246
|
if ((f.f & 16384) === 0) {
|
|
247
|
-
|
|
247
|
+
u();
|
|
248
248
|
try {
|
|
249
|
-
r([...
|
|
249
|
+
r([...s, ...h]);
|
|
250
250
|
} catch (b) {
|
|
251
251
|
Le(b, f);
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
Nn();
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
var
|
|
256
|
+
var d = Hi();
|
|
257
257
|
if (n.length === 0) {
|
|
258
|
-
|
|
258
|
+
_.then(() => p([])).finally(d);
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
Promise.all(n.map((h) => /* @__PURE__ */
|
|
261
|
+
function c() {
|
|
262
|
+
Promise.all(n.map((h) => /* @__PURE__ */ Ka(h))).then(p).catch((h) => Le(h, f)).finally(d);
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
_ ? _.then(() => {
|
|
265
265
|
if ((f.f & 16384) !== 0) {
|
|
266
|
-
|
|
266
|
+
d();
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
-
|
|
270
|
-
}) :
|
|
269
|
+
u(), c(), Nn();
|
|
270
|
+
}) : c();
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
var e =
|
|
272
|
+
function Ga() {
|
|
273
|
+
var e = T, t = x, n = B, r = M;
|
|
274
274
|
if (0) var i;
|
|
275
|
-
return function(
|
|
276
|
-
Ne(e), ge(t),
|
|
275
|
+
return function(s = !0) {
|
|
276
|
+
Ne(e), ge(t), xt(n), s && (e.f & 16384) === 0 && (r?.activate(), r?.apply());
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
function
|
|
281
|
-
|
|
279
|
+
var Ya = !1;
|
|
280
|
+
function Nn(e = !0) {
|
|
281
|
+
Ya = !1, Ne(null), ge(null), xt(null), e && M?.deactivate();
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
var e =
|
|
283
|
+
function Hi() {
|
|
284
|
+
var e = T, t = e.b, n = M, r = !!t?.is_rendered();
|
|
285
285
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
286
286
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
// @__NO_SIDE_EFFECTS__
|
|
290
|
-
function
|
|
291
|
-
var t = 2 |
|
|
292
|
-
return
|
|
293
|
-
ctx:
|
|
290
|
+
function tn(e) {
|
|
291
|
+
var t = 2 | oe;
|
|
292
|
+
return T !== null && (T.f |= Ct), {
|
|
293
|
+
ctx: B,
|
|
294
294
|
deps: null,
|
|
295
295
|
effects: null,
|
|
296
|
-
equals:
|
|
296
|
+
equals: Ii,
|
|
297
297
|
f: t,
|
|
298
298
|
fn: e,
|
|
299
299
|
reactions: null,
|
|
300
300
|
rv: 0,
|
|
301
|
-
v:
|
|
301
|
+
v: U,
|
|
302
302
|
wv: 0,
|
|
303
|
-
parent:
|
|
303
|
+
parent: T,
|
|
304
304
|
ac: null
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
|
-
var
|
|
307
|
+
var Ft = /* @__PURE__ */ Symbol("obsolete");
|
|
308
308
|
// @__NO_SIDE_EFFECTS__
|
|
309
|
-
function
|
|
310
|
-
let r =
|
|
311
|
-
r === null &&
|
|
312
|
-
var i = void 0, o =
|
|
313
|
-
return
|
|
314
|
-
var
|
|
315
|
-
i =
|
|
309
|
+
function Ka(e, t, n) {
|
|
310
|
+
let r = T;
|
|
311
|
+
r === null && Ca();
|
|
312
|
+
var i = void 0, o = pt(U), s = !x, f = /* @__PURE__ */ new Set();
|
|
313
|
+
return vs(() => {
|
|
314
|
+
var u = T, _ = Ci();
|
|
315
|
+
i = _.promise;
|
|
316
316
|
try {
|
|
317
|
-
Promise.resolve(e()).then(
|
|
318
|
-
h !==
|
|
319
|
-
}).finally(
|
|
317
|
+
Promise.resolve(e()).then(_.resolve, (h) => {
|
|
318
|
+
h !== sn && _.reject(h);
|
|
319
|
+
}).finally(Nn);
|
|
320
320
|
} catch (h) {
|
|
321
|
-
|
|
321
|
+
_.reject(h), Nn();
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
if (
|
|
325
|
-
if ((
|
|
326
|
-
if (r.b?.is_rendered())
|
|
327
|
-
else for (const h of f.values()) h.reject(
|
|
328
|
-
f.add(
|
|
323
|
+
var p = M;
|
|
324
|
+
if (s) {
|
|
325
|
+
if ((u.f & 32768) !== 0) var d = Hi();
|
|
326
|
+
if (r.b?.is_rendered()) p.async_deriveds.get(u)?.reject(Ft);
|
|
327
|
+
else for (const h of f.values()) h.reject(Ft);
|
|
328
|
+
f.add(_), p.async_deriveds.set(u, _);
|
|
329
329
|
}
|
|
330
|
-
const
|
|
331
|
-
|
|
330
|
+
const c = (h, b = void 0) => {
|
|
331
|
+
d?.(), f.delete(_), b !== Ft && (p.activate(), b ? (o.f |= On, Mt(o, b)) : ((o.f & 8388608) !== 0 && (o.f ^= On), Mt(o, h)), p.deactivate());
|
|
332
332
|
};
|
|
333
|
-
|
|
334
|
-
}),
|
|
335
|
-
for (const
|
|
336
|
-
}), new Promise((
|
|
337
|
-
function p
|
|
338
|
-
function
|
|
339
|
-
|
|
333
|
+
_.promise.then(c, (h) => c(null, h || "unknown"));
|
|
334
|
+
}), cs(() => {
|
|
335
|
+
for (const u of f) u.reject(Ft);
|
|
336
|
+
}), new Promise((u) => {
|
|
337
|
+
function _(p) {
|
|
338
|
+
function d() {
|
|
339
|
+
p === i ? u(o) : _(i);
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
p.then(d, d);
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
_(i);
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
346
|
// @__NO_SIDE_EFFECTS__
|
|
347
347
|
function de(e) {
|
|
348
|
-
const t = /* @__PURE__ */
|
|
349
|
-
return Be ||
|
|
348
|
+
const t = /* @__PURE__ */ tn(e);
|
|
349
|
+
return Be || po(t), t;
|
|
350
350
|
}
|
|
351
351
|
// @__NO_SIDE_EFFECTS__
|
|
352
|
-
function
|
|
353
|
-
const t = /* @__PURE__ */
|
|
354
|
-
return t.equals =
|
|
352
|
+
function Dr(e) {
|
|
353
|
+
const t = /* @__PURE__ */ tn(e);
|
|
354
|
+
return t.equals = Pi, t;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Xa(e) {
|
|
357
357
|
var t = e.effects;
|
|
358
358
|
if (t !== null) {
|
|
359
359
|
e.effects = null;
|
|
360
|
-
for (var n = 0; n < t.length; n += 1)
|
|
360
|
+
for (var n = 0; n < t.length; n += 1) te(t[n]);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
var t, n =
|
|
365
|
-
if (!Fe && r !== null && e.v !==
|
|
366
|
-
return
|
|
363
|
+
function Wr(e) {
|
|
364
|
+
var t, n = T, r = e.parent;
|
|
365
|
+
if (!Fe && r !== null && e.v !== U && (r.f & 24576) !== 0)
|
|
366
|
+
return Aa(), e.v;
|
|
367
367
|
Ne(r);
|
|
368
368
|
try {
|
|
369
|
-
|
|
369
|
+
Xa(e), t = mo(e);
|
|
370
370
|
} finally {
|
|
371
371
|
Ne(n);
|
|
372
372
|
}
|
|
373
373
|
return t;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
var t =
|
|
377
|
-
if (!e.equals(t) && (e.wv =
|
|
375
|
+
function Vi(e) {
|
|
376
|
+
var t = Wr(e);
|
|
377
|
+
if (!e.equals(t) && (e.wv = bo(), (!M?.is_fork || e.deps === null) && (M !== null ? (M.capture(e, t, !0), Tt?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
378
378
|
j(e, _e);
|
|
379
379
|
return;
|
|
380
380
|
}
|
|
381
|
-
Fe || (
|
|
381
|
+
Fe || (ee !== null ? (Fr() || M?.is_fork) && ee.set(e, t) : qr(e));
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Za(e) {
|
|
384
384
|
if (e.effects !== null)
|
|
385
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
386
|
-
t.ac.abort(
|
|
387
|
-
}), t.fn !== null && (t.teardown =
|
|
385
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Un(() => {
|
|
386
|
+
t.ac.abort(sn), t.ac = null;
|
|
387
|
+
}), t.fn !== null && (t.teardown = ba), on(t, 0), Ur(t));
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Fi(e) {
|
|
390
390
|
if (e.effects !== null)
|
|
391
|
-
for (const t of e.effects) t.teardown && t.fn !== null &&
|
|
391
|
+
for (const t of e.effects) t.teardown && t.fn !== null && Rt(t);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Bi(e, t) {
|
|
394
394
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
|
|
396
|
+
function jr(e, t) {
|
|
397
|
+
Bi(e, t), t.add(e);
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
|
|
399
|
+
function S(e, t, n) {
|
|
400
|
+
Bi(e, t), t.set(e, n);
|
|
401
401
|
}
|
|
402
402
|
function $(e, t, n) {
|
|
403
403
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
404
404
|
throw new TypeError("Private element is not present on this object");
|
|
405
405
|
}
|
|
406
|
-
function S(e, t, n) {
|
|
407
|
-
return e.set($(e, t), n), n;
|
|
408
|
-
}
|
|
409
406
|
function l(e, t) {
|
|
410
407
|
return e.get($(e, t));
|
|
411
408
|
}
|
|
412
|
-
|
|
413
|
-
|
|
409
|
+
function E(e, t, n) {
|
|
410
|
+
return e.set($(e, t), n), n;
|
|
411
|
+
}
|
|
412
|
+
var zi, In = null, mt = null, M = null, Tt = null, ee = null, yr = null, Xt = !1, ar = !1, nn = null, Pn = null, Ui = 0;
|
|
413
|
+
var Ja = 1, qn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), gt = class Gi {
|
|
414
414
|
constructor() {
|
|
415
|
-
|
|
415
|
+
jr(this, I), N(this, "id", Ja++), N(this, "started", !1), N(this, "linked", !0), N(this, "prev", null), N(this, "next", null), N(this, "async_deriveds", /* @__PURE__ */ new Map()), N(this, "current", /* @__PURE__ */ new Map()), N(this, "previous", /* @__PURE__ */ new Map()), S(this, qn, /* @__PURE__ */ new Set()), S(this, mn, /* @__PURE__ */ new Set()), S(this, yt, 0), S(this, at, /* @__PURE__ */ new Map()), S(this, Bt, null), S(this, _t, []), S(this, kr, []), S(this, Je, /* @__PURE__ */ new Map()), S(this, Ze, /* @__PURE__ */ new Map()), S(this, xn, /* @__PURE__ */ new Set()), N(this, "is_fork", !1), S(this, zt, !1), mt === null ? In = mt = this : (mt.next = this, this.prev = mt), mt = this;
|
|
416
416
|
}
|
|
417
417
|
skip_effect(t) {
|
|
418
|
-
l(
|
|
418
|
+
l(Ze, this).has(t) || l(Ze, this).set(t, {
|
|
419
419
|
d: [],
|
|
420
420
|
m: []
|
|
421
|
-
}), l(
|
|
421
|
+
}), l(xn, this).delete(t);
|
|
422
422
|
}
|
|
423
423
|
unskip_effect(t, n = (r) => this.schedule(r)) {
|
|
424
|
-
var r = l(
|
|
424
|
+
var r = l(Ze, this).get(t);
|
|
425
425
|
if (r) {
|
|
426
|
-
l(
|
|
426
|
+
l(Ze, this).delete(t);
|
|
427
427
|
for (var i of r.d)
|
|
428
|
-
j(i,
|
|
428
|
+
j(i, oe), n(i);
|
|
429
429
|
for (i of r.m)
|
|
430
|
-
j(i,
|
|
430
|
+
j(i, tt), n(i);
|
|
431
431
|
}
|
|
432
|
-
l(
|
|
432
|
+
l(xn, this).add(t);
|
|
433
433
|
}
|
|
434
434
|
capture(t, n, r = !1) {
|
|
435
|
-
t.v !==
|
|
435
|
+
t.v !== U && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [n, r]), ee?.set(t, n)), this.is_fork || (t.v = n);
|
|
436
436
|
}
|
|
437
437
|
activate() {
|
|
438
|
-
|
|
438
|
+
M = this;
|
|
439
439
|
}
|
|
440
440
|
deactivate() {
|
|
441
|
-
|
|
441
|
+
M = null, ee = null;
|
|
442
442
|
}
|
|
443
443
|
flush() {
|
|
444
444
|
try {
|
|
445
|
-
|
|
445
|
+
ar = !0, M = this, $(I, this, Dn).call(this);
|
|
446
446
|
} finally {
|
|
447
|
-
|
|
447
|
+
Ui = 0, yr = null, nn = null, Pn = null, ar = !1, M = null, ee = null, Oe.clear();
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
discard() {
|
|
451
|
-
for (const t of l(
|
|
452
|
-
l(
|
|
453
|
-
for (const t of this.async_deriveds.values()) t.reject(
|
|
454
|
-
$(
|
|
451
|
+
for (const t of l(mn, this)) t(this);
|
|
452
|
+
l(mn, this).clear();
|
|
453
|
+
for (const t of this.async_deriveds.values()) t.reject(Ft);
|
|
454
|
+
$(I, this, Wn).call(this), l(Bt, this)?.resolve();
|
|
455
455
|
}
|
|
456
456
|
register_created_effect(t) {
|
|
457
|
-
l(
|
|
457
|
+
l(kr, this).push(t);
|
|
458
458
|
}
|
|
459
459
|
increment(t, n) {
|
|
460
|
-
if (
|
|
461
|
-
let r = l(
|
|
462
|
-
l(
|
|
460
|
+
if (E(yt, this, l(yt, this) + 1), t) {
|
|
461
|
+
let r = l(at, this).get(n) ?? 0;
|
|
462
|
+
l(at, this).set(n, r + 1);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
decrement(t, n) {
|
|
466
|
-
if (
|
|
467
|
-
let r = l(
|
|
468
|
-
r === 1 ? l(
|
|
466
|
+
if (E(yt, this, l(yt, this) - 1), t) {
|
|
467
|
+
let r = l(at, this).get(n) ?? 0;
|
|
468
|
+
r === 1 ? l(at, this).delete(n) : l(at, this).set(n, r - 1);
|
|
469
469
|
}
|
|
470
|
-
l(
|
|
471
|
-
|
|
470
|
+
l(zt, this) || (E(zt, this, !0), et(() => {
|
|
471
|
+
E(zt, this, !1), this.linked && this.flush();
|
|
472
472
|
}));
|
|
473
473
|
}
|
|
474
|
-
|
|
475
|
-
for (const r of t)
|
|
476
|
-
|
|
477
|
-
|
|
474
|
+
transfer_reactions(t) {
|
|
475
|
+
for (const [n, r] of t) this.add_dirty_reaction(n, r);
|
|
476
|
+
t.clear();
|
|
477
|
+
}
|
|
478
|
+
add_dirty_reaction(t, n) {
|
|
479
|
+
(n === 2048 || l(Je, this).get(t) !== 2048) && l(Je, this).set(t, n);
|
|
478
480
|
}
|
|
479
481
|
oncommit(t) {
|
|
480
|
-
l(
|
|
482
|
+
l(qn, this).add(t);
|
|
481
483
|
}
|
|
482
484
|
ondiscard(t) {
|
|
483
|
-
l(
|
|
485
|
+
l(mn, this).add(t);
|
|
484
486
|
}
|
|
485
487
|
settled() {
|
|
486
|
-
return (l(
|
|
488
|
+
return (l(Bt, this) ?? E(Bt, this, Ci())).promise;
|
|
487
489
|
}
|
|
488
490
|
static ensure() {
|
|
489
|
-
if (
|
|
490
|
-
const t =
|
|
491
|
-
!
|
|
492
|
-
|
|
491
|
+
if (M === null) {
|
|
492
|
+
const t = M = new Gi();
|
|
493
|
+
!ar && !Xt && et(() => {
|
|
494
|
+
t.started || t.flush();
|
|
493
495
|
});
|
|
494
496
|
}
|
|
495
|
-
return
|
|
497
|
+
return M;
|
|
496
498
|
}
|
|
497
499
|
apply() {
|
|
498
|
-
if (!Be || !this.is_fork &&
|
|
499
|
-
|
|
500
|
+
if (!Be || !this.is_fork && this.prev === null && this.next === null) {
|
|
501
|
+
ee = null;
|
|
500
502
|
return;
|
|
501
503
|
}
|
|
502
|
-
|
|
503
|
-
for (const [
|
|
504
|
-
for (let
|
|
505
|
-
if (!(
|
|
506
|
-
|
|
507
|
-
if (n.id < this.id) {
|
|
508
|
-
for (const [r, [, i]] of n.current)
|
|
509
|
-
if (!i && this.current.has(r)) {
|
|
510
|
-
t = !0;
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
if (!t)
|
|
515
|
-
for (const [r, i] of n.previous) te.has(r) || te.set(r, i);
|
|
516
|
-
}
|
|
504
|
+
ee = /* @__PURE__ */ new Map();
|
|
505
|
+
for (const [t, [n]] of this.current) ee.set(t, n);
|
|
506
|
+
for (let t = In; t !== null; t = t.next)
|
|
507
|
+
if (!(t === this || t.is_fork) && (t.id >= this.id || !$(I, t, Xi).call(t, this)))
|
|
508
|
+
for (const [n, r] of t.previous) ee.has(n) || ee.set(n, r);
|
|
517
509
|
}
|
|
518
510
|
schedule(t) {
|
|
519
|
-
if (
|
|
511
|
+
if (yr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
520
512
|
t.b.defer_effect(t);
|
|
521
513
|
return;
|
|
522
514
|
}
|
|
523
|
-
l(
|
|
515
|
+
l(_t, this).push(t);
|
|
524
516
|
}
|
|
525
517
|
};
|
|
526
|
-
|
|
527
|
-
function
|
|
518
|
+
zi = gt;
|
|
519
|
+
function li() {
|
|
528
520
|
if (this.is_fork) return !0;
|
|
529
|
-
for (const
|
|
530
|
-
for (var e = n, t = !1; e.parent !== null; ) {
|
|
531
|
-
if (l(Xe, this).has(e)) {
|
|
532
|
-
t = !0;
|
|
533
|
-
break;
|
|
534
|
-
}
|
|
535
|
-
e = e.parent;
|
|
536
|
-
}
|
|
537
|
-
if (!t) return !0;
|
|
538
|
-
}
|
|
521
|
+
for (const e of l(at, this).keys()) if (!$(I, this, Qa).call(this, e)) return !0;
|
|
539
522
|
return !1;
|
|
540
523
|
}
|
|
541
|
-
function
|
|
524
|
+
function Qa(e) {
|
|
525
|
+
for (var t = e; t !== null; t = t.parent) if (l(Ze, this).has(t)) return !0;
|
|
526
|
+
return !1;
|
|
527
|
+
}
|
|
528
|
+
function Yi() {
|
|
542
529
|
var e = [];
|
|
543
|
-
for (const i of l(
|
|
530
|
+
for (const i of l(_t, this))
|
|
544
531
|
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
545
532
|
for (var t = i, n = !1; t.parent !== null; ) {
|
|
546
533
|
t = t.parent;
|
|
@@ -555,58 +542,51 @@ function Ji() {
|
|
|
555
542
|
}
|
|
556
543
|
n || e.push(t);
|
|
557
544
|
}
|
|
558
|
-
return
|
|
545
|
+
return E(_t, this, []), e;
|
|
559
546
|
}
|
|
560
|
-
function
|
|
561
|
-
|
|
562
|
-
for (const
|
|
563
|
-
|
|
564
|
-
for (const a of l(je, this))
|
|
565
|
-
j(a, pt), this.schedule(a);
|
|
547
|
+
function Dn() {
|
|
548
|
+
this.started = !0;
|
|
549
|
+
for (const [s, f] of l(Je, this))
|
|
550
|
+
j(s, f), this.schedule(s);
|
|
566
551
|
this.apply();
|
|
567
|
-
for (var e =
|
|
568
|
-
|
|
569
|
-
for (const
|
|
570
|
-
$(
|
|
552
|
+
for (var e = nn = [], t = [], n = Pn = []; l(_t, this).length > 0; ) {
|
|
553
|
+
Ui++ > 1e3 && ($(I, this, Wn).call(this), rs());
|
|
554
|
+
for (const s of $(I, this, Yi).call(this)) try {
|
|
555
|
+
$(I, this, Ki).call(this, s, e, t);
|
|
571
556
|
} catch (f) {
|
|
572
|
-
throw
|
|
557
|
+
throw Qi(s), $(I, this, li).call(this) || this.discard(), f;
|
|
573
558
|
}
|
|
574
559
|
}
|
|
575
|
-
if (
|
|
576
|
-
var r =
|
|
577
|
-
for (const
|
|
560
|
+
if (M = null, n.length > 0) {
|
|
561
|
+
var r = zi.ensure();
|
|
562
|
+
for (const s of n) r.schedule(s);
|
|
578
563
|
}
|
|
579
|
-
if (
|
|
580
|
-
$(
|
|
581
|
-
for (const [
|
|
582
|
-
n.length > 0 && $(
|
|
564
|
+
if (nn = null, Pn = null, $(I, this, li).call(this)) {
|
|
565
|
+
$(I, this, Ut).call(this, t), $(I, this, Ut).call(this, e);
|
|
566
|
+
for (const [s, f] of l(Ze, this)) Ji(s, f);
|
|
567
|
+
n.length > 0 && $(I, M, Dn).call(M);
|
|
583
568
|
return;
|
|
584
569
|
}
|
|
585
|
-
const i = $(
|
|
570
|
+
const i = $(I, this, es).call(this);
|
|
586
571
|
if (i) {
|
|
587
|
-
$(
|
|
572
|
+
$(I, this, Ut).call(this, t), $(I, this, Ut).call(this, e), $(I, i, ts).call(i, this);
|
|
588
573
|
return;
|
|
589
574
|
}
|
|
590
|
-
l(
|
|
591
|
-
for (const
|
|
592
|
-
l(
|
|
593
|
-
var o =
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
S(me, this, []);
|
|
598
|
-
} else o = this;
|
|
599
|
-
o !== null && (Oe.clear(), $(D, o, Vn).call(o));
|
|
600
|
-
}
|
|
601
|
-
function Qi(e, t, n) {
|
|
575
|
+
l(Je, this).clear();
|
|
576
|
+
for (const s of l(qn, this)) s(this);
|
|
577
|
+
l(qn, this).clear(), Tt = this, fi(t), fi(e), Tt = null, l(Bt, this)?.resolve();
|
|
578
|
+
var o = M;
|
|
579
|
+
l(yt, this) === 0 && (l(_t, this).length === 0 || o !== null) && ($(I, this, Wn).call(this), Be && ($(I, this, ns).call(this), M = o)), o !== null && (Oe.clear(), $(I, o, Dn).call(o));
|
|
580
|
+
}
|
|
581
|
+
function Ki(e, t, n) {
|
|
602
582
|
e.f ^= _e;
|
|
603
583
|
for (var r = e.first; r !== null; ) {
|
|
604
584
|
var i = r.f, o = (i & 96) !== 0;
|
|
605
|
-
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || l(
|
|
606
|
-
o ? r.f ^= _e : (i & 4) !== 0 ? t.push(r) : Be && (i & 16777224) !== 0 ? n.push(r) :
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
609
|
-
r =
|
|
585
|
+
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || l(Ze, this).has(r)) && r.fn !== null) {
|
|
586
|
+
o ? r.f ^= _e : (i & 4) !== 0 ? t.push(r) : Be && (i & 16777224) !== 0 ? n.push(r) : un(r) && ((i & 16) !== 0 && this.add_dirty_reaction(r, tt), Rt(r));
|
|
587
|
+
var s = r.first;
|
|
588
|
+
if (s !== null) {
|
|
589
|
+
r = s;
|
|
610
590
|
continue;
|
|
611
591
|
}
|
|
612
592
|
}
|
|
@@ -620,132 +600,133 @@ function Qi(e, t, n) {
|
|
|
620
600
|
}
|
|
621
601
|
}
|
|
622
602
|
}
|
|
623
|
-
function
|
|
624
|
-
for (var e =
|
|
625
|
-
if (!e.is_fork) {
|
|
626
|
-
for (const [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
627
|
-
}
|
|
628
|
-
e = l(ut, e);
|
|
629
|
-
}
|
|
603
|
+
function es() {
|
|
604
|
+
for (var e = this.prev; e !== null; e = e.prev) if (!e.is_fork && $(I, this, Xi).call(this, e)) return e;
|
|
630
605
|
return null;
|
|
631
606
|
}
|
|
632
|
-
function
|
|
607
|
+
function Xi(e) {
|
|
608
|
+
for (const [t, [, n]] of this.current)
|
|
609
|
+
if (!n && e.current.has(t))
|
|
610
|
+
return !0;
|
|
611
|
+
return !1;
|
|
612
|
+
}
|
|
613
|
+
function ts(e) {
|
|
633
614
|
for (const [n, r] of e.current)
|
|
634
615
|
!this.previous.has(n) && e.previous.has(n) && this.previous.set(n, e.previous.get(n)), this.current.set(n, r);
|
|
635
616
|
for (const [n, r] of e.async_deriveds) {
|
|
636
617
|
const i = this.async_deriveds.get(n);
|
|
637
618
|
i && r.promise.then(i.resolve).catch(i.reject);
|
|
638
619
|
}
|
|
639
|
-
e.async_deriveds.clear(), this.
|
|
620
|
+
e.async_deriveds.clear(), this.transfer_reactions(l(Je, e));
|
|
640
621
|
const t = (n) => {
|
|
641
622
|
var r = n.reactions;
|
|
642
623
|
if (r !== null && !((n.f & 2) !== 0 && (n.f & 6144) === 0))
|
|
643
|
-
for (const
|
|
644
|
-
var i =
|
|
645
|
-
if ((i & 2) !== 0) t(
|
|
624
|
+
for (const s of r) {
|
|
625
|
+
var i = s.f;
|
|
626
|
+
if ((i & 2) !== 0) t(s);
|
|
646
627
|
else {
|
|
647
|
-
var o =
|
|
648
|
-
i & 4194320 && !this.async_deriveds.has(o) && (l(
|
|
628
|
+
var o = s;
|
|
629
|
+
i & 4194320 && !this.async_deriveds.has(o) && (l(Je, this).delete(o), j(o, oe), this.schedule(o));
|
|
649
630
|
}
|
|
650
631
|
}
|
|
651
632
|
};
|
|
652
633
|
for (const n of this.current.keys()) t(n);
|
|
653
|
-
this.oncommit(() => e.discard()), $(
|
|
634
|
+
this.oncommit(() => e.discard()), $(I, e, Wn).call(e), M = this, $(I, this, Dn).call(this);
|
|
654
635
|
}
|
|
655
|
-
function
|
|
656
|
-
for (var t = 0; t < e.length; t += 1)
|
|
636
|
+
function Ut(e) {
|
|
637
|
+
for (var t = 0; t < e.length; t += 1) ji(e[t], l(Je, this));
|
|
657
638
|
}
|
|
658
|
-
function
|
|
659
|
-
for (let
|
|
660
|
-
var e =
|
|
661
|
-
for (const [
|
|
662
|
-
if (
|
|
663
|
-
var n =
|
|
664
|
-
if (e &&
|
|
639
|
+
function ns() {
|
|
640
|
+
for (let p = In; p !== null; p = p.next) {
|
|
641
|
+
var e = p.id < this.id, t = [];
|
|
642
|
+
for (const [d, [c, h]] of this.current) {
|
|
643
|
+
if (p.current.has(d)) {
|
|
644
|
+
var n = p.current.get(d)[0];
|
|
645
|
+
if (e && c !== n) p.current.set(d, [c, h]);
|
|
665
646
|
else continue;
|
|
666
647
|
}
|
|
667
|
-
t.push(
|
|
648
|
+
t.push(d);
|
|
668
649
|
}
|
|
669
|
-
if (e) for (const [
|
|
670
|
-
const h =
|
|
671
|
-
h &&
|
|
650
|
+
if (e) for (const [d, c] of this.async_deriveds) {
|
|
651
|
+
const h = p.async_deriveds.get(d);
|
|
652
|
+
h && c.promise.then(h.resolve).catch(h.reject);
|
|
672
653
|
}
|
|
673
|
-
var r = [...
|
|
674
|
-
if (!(!
|
|
675
|
-
var i = r.filter((
|
|
654
|
+
var r = [...p.current.keys()].filter((d) => !p.current.get(d)[1]);
|
|
655
|
+
if (!(!p.started || r.length === 0)) {
|
|
656
|
+
var i = r.filter((d) => !this.current.has(d));
|
|
676
657
|
if (i.length === 0)
|
|
677
|
-
e &&
|
|
658
|
+
e && p.discard();
|
|
678
659
|
else if (t.length > 0) {
|
|
679
|
-
if (e) for (const
|
|
680
|
-
(
|
|
660
|
+
if (e) for (const d of l(xn, this)) p.unskip_effect(d, (c) => {
|
|
661
|
+
(c.f & 4194320) !== 0 ? p.schedule(c) : $(I, p, Ut).call(p, [c]);
|
|
681
662
|
});
|
|
682
|
-
|
|
683
|
-
var o = /* @__PURE__ */ new Set(),
|
|
684
|
-
for (var f of t)
|
|
685
|
-
|
|
686
|
-
var
|
|
687
|
-
const h = this.current.get(
|
|
688
|
-
return h ? h[0] !==
|
|
689
|
-
}).map(([
|
|
690
|
-
if (
|
|
691
|
-
for (const
|
|
692
|
-
if (l(
|
|
693
|
-
|
|
694
|
-
for (var
|
|
663
|
+
p.activate();
|
|
664
|
+
var o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
|
|
665
|
+
for (var f of t) Zi(f, i, o, s);
|
|
666
|
+
s = /* @__PURE__ */ new Map();
|
|
667
|
+
var u = [...p.current].filter(([d, c]) => {
|
|
668
|
+
const h = this.current.get(d);
|
|
669
|
+
return h ? h[0] !== c[0] || h[1] !== c[1] : !0;
|
|
670
|
+
}).map(([d]) => d);
|
|
671
|
+
if (u.length > 0)
|
|
672
|
+
for (const d of l(kr, this)) (d.f & 155648) === 0 && Hr(d, u, s) && ((d.f & 4194320) !== 0 ? (j(d, oe), p.schedule(d)) : p.add_dirty_reaction(d, oe));
|
|
673
|
+
if (l(_t, p).length > 0 && !l(zt, p)) {
|
|
674
|
+
p.apply();
|
|
675
|
+
for (var _ of $(I, p, Yi).call(p)) $(I, p, Ki).call(p, _, [], []);
|
|
695
676
|
}
|
|
696
|
-
|
|
677
|
+
p.deactivate();
|
|
697
678
|
}
|
|
698
679
|
}
|
|
699
680
|
}
|
|
700
681
|
}
|
|
701
|
-
function
|
|
682
|
+
function Wn() {
|
|
702
683
|
if (this.linked) {
|
|
703
|
-
var e =
|
|
704
|
-
e === null ?
|
|
684
|
+
var e = this.prev, t = this.next;
|
|
685
|
+
e === null ? In = t : e.next = t, t === null ? mt = e : t.prev = e, this.linked = !1;
|
|
705
686
|
}
|
|
706
687
|
}
|
|
707
|
-
function
|
|
708
|
-
var t =
|
|
709
|
-
|
|
688
|
+
function rn(e) {
|
|
689
|
+
var t = Xt, n = Tt;
|
|
690
|
+
Tt = null, Xt = !0;
|
|
710
691
|
try {
|
|
711
692
|
var r;
|
|
712
|
-
for (e && (
|
|
713
|
-
if (
|
|
714
|
-
|
|
693
|
+
for (e && (rn(), r = e()); ; ) {
|
|
694
|
+
if (Ba(), M === null) return r;
|
|
695
|
+
M.flush();
|
|
715
696
|
}
|
|
716
697
|
} finally {
|
|
717
|
-
|
|
698
|
+
Xt = t, Tt = n;
|
|
718
699
|
}
|
|
719
700
|
}
|
|
720
|
-
function
|
|
701
|
+
function rs() {
|
|
721
702
|
if (0) {
|
|
722
703
|
var e;
|
|
723
|
-
for (const n of
|
|
704
|
+
for (const n of M.current.keys()) for (const [r, i] of n.updated ?? [])
|
|
724
705
|
var t;
|
|
725
706
|
}
|
|
726
707
|
try {
|
|
727
|
-
|
|
708
|
+
Pa();
|
|
728
709
|
} catch (n) {
|
|
729
|
-
Le(n,
|
|
710
|
+
Le(n, yr);
|
|
730
711
|
}
|
|
731
712
|
}
|
|
732
713
|
var Re = null;
|
|
733
|
-
function
|
|
714
|
+
function fi(e) {
|
|
734
715
|
var t = e.length;
|
|
735
716
|
if (t !== 0) {
|
|
736
717
|
for (var n = 0; n < t; ) {
|
|
737
718
|
var r = e[n++];
|
|
738
|
-
if ((r.f & 24576) === 0 &&
|
|
719
|
+
if ((r.f & 24576) === 0 && un(r) && (Re = /* @__PURE__ */ new Set(), Rt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && ho(r), Re?.size > 0)) {
|
|
739
720
|
Oe.clear();
|
|
740
721
|
for (const i of Re) {
|
|
741
722
|
if ((i.f & 24576) !== 0) continue;
|
|
742
723
|
const o = [i];
|
|
743
|
-
let
|
|
744
|
-
for (;
|
|
745
|
-
Re.has(
|
|
724
|
+
let s = i.parent;
|
|
725
|
+
for (; s !== null; )
|
|
726
|
+
Re.has(s) && (Re.delete(s), o.push(s)), s = s.parent;
|
|
746
727
|
for (let f = o.length - 1; f >= 0; f--) {
|
|
747
|
-
const
|
|
748
|
-
(
|
|
728
|
+
const u = o[f];
|
|
729
|
+
(u.f & 24576) === 0 && Rt(u);
|
|
749
730
|
}
|
|
750
731
|
}
|
|
751
732
|
Re.clear();
|
|
@@ -754,323 +735,323 @@ function hi(e) {
|
|
|
754
735
|
Re = null;
|
|
755
736
|
}
|
|
756
737
|
}
|
|
757
|
-
function
|
|
738
|
+
function Zi(e, t, n, r) {
|
|
758
739
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
759
740
|
for (const i of e.reactions) {
|
|
760
741
|
const o = i.f;
|
|
761
|
-
(o & 2) !== 0 ?
|
|
742
|
+
(o & 2) !== 0 ? Zi(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && Hr(i, t, r) && (j(i, oe), Vr(i));
|
|
762
743
|
}
|
|
763
744
|
}
|
|
764
|
-
function
|
|
745
|
+
function Hr(e, t, n) {
|
|
765
746
|
const r = n.get(e);
|
|
766
747
|
if (r !== void 0) return r;
|
|
767
748
|
if (e.deps !== null) for (const i of e.deps) {
|
|
768
|
-
if (
|
|
769
|
-
if ((i.f & 2) !== 0 &&
|
|
749
|
+
if (Jt.call(t, i)) return !0;
|
|
750
|
+
if ((i.f & 2) !== 0 && Hr(i, t, n))
|
|
770
751
|
return n.set(i, !0), !0;
|
|
771
752
|
}
|
|
772
753
|
return n.set(e, !1), !1;
|
|
773
754
|
}
|
|
774
|
-
function
|
|
775
|
-
|
|
755
|
+
function Vr(e) {
|
|
756
|
+
M.schedule(e);
|
|
776
757
|
}
|
|
777
|
-
function
|
|
758
|
+
function Ji(e, t) {
|
|
778
759
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
779
760
|
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), j(e, _e);
|
|
780
761
|
for (var n = e.first; n !== null; )
|
|
781
|
-
|
|
762
|
+
Ji(n, t), n = n.next;
|
|
782
763
|
}
|
|
783
764
|
}
|
|
784
|
-
function
|
|
765
|
+
function Qi(e) {
|
|
785
766
|
j(e, _e);
|
|
786
767
|
for (var t = e.first; t !== null; )
|
|
787
|
-
|
|
768
|
+
Qi(t), t = t.next;
|
|
788
769
|
}
|
|
789
|
-
var
|
|
790
|
-
var
|
|
791
|
-
function
|
|
770
|
+
var jn = /* @__PURE__ */ new Set(), Oe = /* @__PURE__ */ new Map();
|
|
771
|
+
var eo = !1;
|
|
772
|
+
function pt(e, t) {
|
|
792
773
|
var n = {
|
|
793
774
|
f: 0,
|
|
794
775
|
v: e,
|
|
795
776
|
reactions: null,
|
|
796
|
-
equals:
|
|
777
|
+
equals: Ii,
|
|
797
778
|
rv: 0,
|
|
798
779
|
wv: 0
|
|
799
780
|
};
|
|
800
781
|
return n;
|
|
801
782
|
}
|
|
802
783
|
// @__NO_SIDE_EFFECTS__
|
|
803
|
-
function
|
|
804
|
-
const n =
|
|
805
|
-
return
|
|
784
|
+
function F(e, t) {
|
|
785
|
+
const n = pt(e, t);
|
|
786
|
+
return po(n), n;
|
|
806
787
|
}
|
|
807
788
|
// @__NO_SIDE_EFFECTS__
|
|
808
|
-
function
|
|
809
|
-
const r =
|
|
810
|
-
if (t || (r.equals =
|
|
789
|
+
function to(e, t = !1, n = !0) {
|
|
790
|
+
const r = pt(e);
|
|
791
|
+
if (t || (r.equals = Pi), zn && n && B !== null && B.l !== null) {
|
|
811
792
|
var i;
|
|
812
|
-
((i =
|
|
793
|
+
((i = B.l).s ?? (i.s = [])).push(r);
|
|
813
794
|
}
|
|
814
795
|
return r;
|
|
815
796
|
}
|
|
816
|
-
function
|
|
817
|
-
|
|
818
|
-
let r = n ?
|
|
819
|
-
return
|
|
797
|
+
function O(e, t, n = !1) {
|
|
798
|
+
x !== null && (!me || (x.f & 131072) !== 0) && fn() && (x.f & 4325394) !== 0 && (ke === null || !ke.has(e)) && Ha();
|
|
799
|
+
let r = n ? ft(t) : t;
|
|
800
|
+
return Mt(e, r, Pn);
|
|
820
801
|
}
|
|
821
|
-
var
|
|
822
|
-
function
|
|
802
|
+
var st = null, $r = 0;
|
|
803
|
+
function Mt(e, t, n = null) {
|
|
823
804
|
if (!e.equals(t)) {
|
|
824
805
|
Fe ? Oe.set(e, t) : Oe.has(e) || Oe.set(e, e.v);
|
|
825
806
|
var r = gt.ensure();
|
|
826
807
|
if (r.capture(e, t), (e.f & 2) !== 0) {
|
|
827
808
|
const i = e;
|
|
828
|
-
(e.f & 2048) !== 0 &&
|
|
809
|
+
(e.f & 2048) !== 0 && Wr(i), ee === null && qr(i);
|
|
829
810
|
}
|
|
830
|
-
e.wv =
|
|
811
|
+
e.wv = bo(), st = null, $r = 0, no(e, oe, n), st = null, fn() && T !== null && (T.f & 1024) !== 0 && (T.f & 96) === 0 && (ve === null ? gs([e]) : ve.push(e)), !r.is_fork && jn.size > 0 && !eo && is();
|
|
831
812
|
}
|
|
832
813
|
return t;
|
|
833
814
|
}
|
|
834
|
-
function
|
|
835
|
-
|
|
836
|
-
for (const e of
|
|
837
|
-
(e.f & 1024) !== 0 && j(e,
|
|
815
|
+
function is() {
|
|
816
|
+
eo = !1;
|
|
817
|
+
for (const e of jn) {
|
|
818
|
+
(e.f & 1024) !== 0 && j(e, tt);
|
|
838
819
|
let t;
|
|
839
820
|
try {
|
|
840
|
-
t =
|
|
821
|
+
t = un(e);
|
|
841
822
|
} catch {
|
|
842
823
|
t = !0;
|
|
843
824
|
}
|
|
844
|
-
t &&
|
|
825
|
+
t && Rt(e);
|
|
845
826
|
}
|
|
846
|
-
|
|
827
|
+
jn.clear();
|
|
847
828
|
}
|
|
848
|
-
function
|
|
849
|
-
|
|
829
|
+
function Zt(e) {
|
|
830
|
+
O(e, e.v + 1);
|
|
850
831
|
}
|
|
851
|
-
function
|
|
832
|
+
function no(e, t, n) {
|
|
852
833
|
var r = e.reactions;
|
|
853
834
|
if (r !== null) {
|
|
854
|
-
var i =
|
|
855
|
-
if (
|
|
856
|
-
if (
|
|
857
|
-
|
|
858
|
-
}
|
|
859
|
-
for (var
|
|
860
|
-
var f = r[
|
|
861
|
-
if (!(!i && f ===
|
|
862
|
-
var
|
|
863
|
-
if (
|
|
864
|
-
else if ((
|
|
865
|
-
var
|
|
866
|
-
|
|
867
|
-
} else if (
|
|
868
|
-
var
|
|
869
|
-
(
|
|
835
|
+
var i = fn(), o = r.length;
|
|
836
|
+
if ($r += o, $r > 1e5 && st === null && (st = /* @__PURE__ */ new Set()), st !== null) {
|
|
837
|
+
if (st.has(e)) return;
|
|
838
|
+
st.add(e);
|
|
839
|
+
}
|
|
840
|
+
for (var s = 0; s < o; s++) {
|
|
841
|
+
var f = r[s], u = f.f;
|
|
842
|
+
if (!(!i && f === T)) {
|
|
843
|
+
var _ = (u & oe) === 0;
|
|
844
|
+
if (_ && j(f, t), (u & 131072) !== 0) jn.add(f);
|
|
845
|
+
else if ((u & 2) !== 0) {
|
|
846
|
+
var p = f;
|
|
847
|
+
ee?.delete(p), no(p, tt, n);
|
|
848
|
+
} else if (_) {
|
|
849
|
+
var d = f;
|
|
850
|
+
(u & 16) !== 0 && Re !== null && Re.add(d), n !== null ? n.push(d) : Vr(d);
|
|
870
851
|
}
|
|
871
852
|
}
|
|
872
853
|
}
|
|
873
854
|
}
|
|
874
855
|
}
|
|
875
|
-
var
|
|
876
|
-
function
|
|
877
|
-
if (typeof e != "object" || e === null ||
|
|
878
|
-
const t =
|
|
879
|
-
if (t !==
|
|
880
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
881
|
-
if (
|
|
882
|
-
var
|
|
883
|
-
ge(null),
|
|
884
|
-
var b =
|
|
885
|
-
return ge(
|
|
856
|
+
var os = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
857
|
+
function ft(e) {
|
|
858
|
+
if (typeof e != "object" || e === null || Kt in e || Li in e) return e;
|
|
859
|
+
const t = Ri(e);
|
|
860
|
+
if (t !== pa && t !== ga) return e;
|
|
861
|
+
var n = /* @__PURE__ */ new Map(), r = Mi(e), i = /* @__PURE__ */ F(0), o = null, s = dt, f = (d) => {
|
|
862
|
+
if (dt === s) return d();
|
|
863
|
+
var c = x, h = dt;
|
|
864
|
+
ge(null), di(s);
|
|
865
|
+
var b = d();
|
|
866
|
+
return ge(c), di(h), b;
|
|
886
867
|
};
|
|
887
|
-
r && n.set("length", /* @__PURE__ */
|
|
888
|
-
var
|
|
889
|
-
let
|
|
890
|
-
function
|
|
891
|
-
if (!
|
|
892
|
-
|
|
893
|
-
for (const [
|
|
894
|
-
|
|
868
|
+
r && n.set("length", /* @__PURE__ */ F(e.length, o));
|
|
869
|
+
var u = "";
|
|
870
|
+
let _ = !1;
|
|
871
|
+
function p(d) {
|
|
872
|
+
if (!_) {
|
|
873
|
+
_ = !0, u = d, si(i, `${u} version`);
|
|
874
|
+
for (const [c, h] of n) si(h, as(u, c));
|
|
875
|
+
_ = !1;
|
|
895
876
|
}
|
|
896
877
|
}
|
|
897
878
|
return new Proxy(e, {
|
|
898
|
-
defineProperty(
|
|
899
|
-
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) &&
|
|
900
|
-
var b = n.get(
|
|
879
|
+
defineProperty(d, c, h) {
|
|
880
|
+
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && Wa();
|
|
881
|
+
var b = n.get(c);
|
|
901
882
|
return b === void 0 ? f(() => {
|
|
902
|
-
var
|
|
903
|
-
return n.set(
|
|
904
|
-
}) :
|
|
883
|
+
var y = /* @__PURE__ */ F(h.value, o);
|
|
884
|
+
return n.set(c, y), y;
|
|
885
|
+
}) : O(b, h.value, !0), !0;
|
|
905
886
|
},
|
|
906
|
-
deleteProperty(
|
|
907
|
-
var h = n.get(
|
|
887
|
+
deleteProperty(d, c) {
|
|
888
|
+
var h = n.get(c);
|
|
908
889
|
if (h === void 0) {
|
|
909
|
-
if (
|
|
910
|
-
const b = f(() => /* @__PURE__ */
|
|
911
|
-
n.set(
|
|
890
|
+
if (c in d) {
|
|
891
|
+
const b = f(() => /* @__PURE__ */ F(U, o));
|
|
892
|
+
n.set(c, b), Zt(i);
|
|
912
893
|
}
|
|
913
894
|
} else
|
|
914
|
-
|
|
895
|
+
O(h, U), Zt(i);
|
|
915
896
|
return !0;
|
|
916
897
|
},
|
|
917
|
-
get(
|
|
918
|
-
if (
|
|
919
|
-
var b = n.get(
|
|
920
|
-
if (b === void 0 && (!
|
|
921
|
-
var
|
|
922
|
-
return
|
|
923
|
-
}), n.set(
|
|
924
|
-
var g =
|
|
925
|
-
return g ===
|
|
898
|
+
get(d, c, h) {
|
|
899
|
+
if (c === Kt) return e;
|
|
900
|
+
var b = n.get(c), y = c in d;
|
|
901
|
+
if (b === void 0 && (!y || ct(d, c)?.writable) && (b = f(() => {
|
|
902
|
+
var m = ft(y ? d[c] : U), L = /* @__PURE__ */ F(m, o);
|
|
903
|
+
return L;
|
|
904
|
+
}), n.set(c, b)), b !== void 0) {
|
|
905
|
+
var g = a(b);
|
|
906
|
+
return g === U ? void 0 : g;
|
|
926
907
|
}
|
|
927
|
-
return Reflect.get(
|
|
908
|
+
return Reflect.get(d, c, h);
|
|
928
909
|
},
|
|
929
|
-
getOwnPropertyDescriptor(
|
|
930
|
-
this.has?.(
|
|
931
|
-
var h = Reflect.getOwnPropertyDescriptor(
|
|
910
|
+
getOwnPropertyDescriptor(d, c) {
|
|
911
|
+
this.has?.(d, c);
|
|
912
|
+
var h = Reflect.getOwnPropertyDescriptor(d, c), b = n.get(c);
|
|
932
913
|
if (b !== void 0) {
|
|
933
|
-
var
|
|
934
|
-
if (
|
|
935
|
-
if (h && "value" in h) h.value =
|
|
914
|
+
var y = a(b);
|
|
915
|
+
if (y === U) return;
|
|
916
|
+
if (h && "value" in h) h.value = y;
|
|
936
917
|
else return {
|
|
937
918
|
enumerable: !0,
|
|
938
919
|
configurable: !0,
|
|
939
|
-
value:
|
|
920
|
+
value: y,
|
|
940
921
|
writable: !0
|
|
941
922
|
};
|
|
942
923
|
}
|
|
943
924
|
return h;
|
|
944
925
|
},
|
|
945
|
-
has(
|
|
946
|
-
if (
|
|
947
|
-
var h = n.get(
|
|
948
|
-
return (h !== void 0 ||
|
|
949
|
-
var
|
|
926
|
+
has(d, c) {
|
|
927
|
+
if (c === Kt) return !0;
|
|
928
|
+
var h = n.get(c), b = h !== void 0 && h.v !== U || Reflect.has(d, c);
|
|
929
|
+
return (h !== void 0 || (T !== null || x !== null) && (!b || ct(d, c)?.writable)) && (h === void 0 && (h = f(() => {
|
|
930
|
+
var y = b ? ft(d[c]) : U, g = /* @__PURE__ */ F(y, o);
|
|
950
931
|
return g;
|
|
951
|
-
}), n.set(
|
|
932
|
+
}), n.set(c, h)), a(h) === U) ? !1 : b;
|
|
952
933
|
},
|
|
953
|
-
set(
|
|
954
|
-
var
|
|
955
|
-
if (r &&
|
|
956
|
-
var
|
|
957
|
-
|
|
934
|
+
set(d, c, h, b) {
|
|
935
|
+
var y = n.get(c), g = c in d;
|
|
936
|
+
if (r && c === "length") for (var m = h; m < y.v; m += 1) {
|
|
937
|
+
var L = n.get(m + "");
|
|
938
|
+
L !== void 0 ? O(L, U) : m in d && (L = f(() => /* @__PURE__ */ F(U, o)), n.set(m + "", L));
|
|
958
939
|
}
|
|
959
|
-
if (
|
|
960
|
-
(!g ||
|
|
940
|
+
if (y === void 0)
|
|
941
|
+
(!g || ct(d, c)?.writable) && (y = f(() => /* @__PURE__ */ F(void 0, o)), O(y, ft(h)), n.set(c, y));
|
|
961
942
|
else {
|
|
962
|
-
g =
|
|
963
|
-
var
|
|
964
|
-
|
|
943
|
+
g = y.v !== U;
|
|
944
|
+
var H = f(() => ft(h));
|
|
945
|
+
O(y, H);
|
|
965
946
|
}
|
|
966
|
-
var
|
|
967
|
-
if (
|
|
968
|
-
if (r && typeof
|
|
969
|
-
var
|
|
970
|
-
Number.isInteger(
|
|
947
|
+
var w = Reflect.getOwnPropertyDescriptor(d, c);
|
|
948
|
+
if (w?.set && w.set.call(b, h), !g) {
|
|
949
|
+
if (r && typeof c == "string") {
|
|
950
|
+
var D = n.get("length"), W = Number(c);
|
|
951
|
+
Number.isInteger(W) && W >= D.v && O(D, W + 1);
|
|
971
952
|
}
|
|
972
|
-
|
|
953
|
+
Zt(i);
|
|
973
954
|
}
|
|
974
955
|
return !0;
|
|
975
956
|
},
|
|
976
|
-
ownKeys(
|
|
977
|
-
|
|
978
|
-
var
|
|
979
|
-
var g = n.get(
|
|
980
|
-
return g === void 0 || g.v !==
|
|
957
|
+
ownKeys(d) {
|
|
958
|
+
a(i);
|
|
959
|
+
var c = Reflect.ownKeys(d).filter((y) => {
|
|
960
|
+
var g = n.get(y);
|
|
961
|
+
return g === void 0 || g.v !== U;
|
|
981
962
|
});
|
|
982
|
-
for (var [h, b] of n) b.v !==
|
|
983
|
-
return
|
|
963
|
+
for (var [h, b] of n) b.v !== U && !(h in d) && c.push(h);
|
|
964
|
+
return c;
|
|
984
965
|
},
|
|
985
966
|
setPrototypeOf() {
|
|
986
|
-
|
|
967
|
+
ja();
|
|
987
968
|
}
|
|
988
969
|
});
|
|
989
970
|
}
|
|
990
|
-
function
|
|
991
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
971
|
+
function as(e, t) {
|
|
972
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : os.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
992
973
|
}
|
|
993
|
-
var
|
|
994
|
-
function
|
|
995
|
-
if (
|
|
996
|
-
|
|
974
|
+
var ui, ss, ro, io, oo;
|
|
975
|
+
function Er() {
|
|
976
|
+
if (ui === void 0) {
|
|
977
|
+
ui = window, ss = document, ro = /Firefox/.test(navigator.userAgent);
|
|
997
978
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
998
|
-
|
|
979
|
+
io = ct(t, "firstChild").get, oo = ct(t, "nextSibling").get, oi(e) && (e[wr] = void 0, e[br] = null, e[mr] = void 0, e.__e = void 0), oi(n) && (n[An] = void 0);
|
|
999
980
|
}
|
|
1000
981
|
}
|
|
1001
|
-
function
|
|
982
|
+
function ue(e = "") {
|
|
1002
983
|
return document.createTextNode(e);
|
|
1003
984
|
}
|
|
1004
985
|
// @__NO_SIDE_EFFECTS__
|
|
1005
|
-
function
|
|
1006
|
-
return
|
|
986
|
+
function fe(e) {
|
|
987
|
+
return io.call(e);
|
|
1007
988
|
}
|
|
1008
989
|
// @__NO_SIDE_EFFECTS__
|
|
1009
990
|
function Te(e) {
|
|
1010
|
-
return
|
|
991
|
+
return oo.call(e);
|
|
1011
992
|
}
|
|
1012
|
-
function
|
|
1013
|
-
if (!
|
|
1014
|
-
var n = /* @__PURE__ */
|
|
1015
|
-
if (n === null) n = C.appendChild(
|
|
993
|
+
function Mn(e, t) {
|
|
994
|
+
if (!A) return /* @__PURE__ */ fe(e);
|
|
995
|
+
var n = /* @__PURE__ */ fe(C);
|
|
996
|
+
if (n === null) n = C.appendChild(ue());
|
|
1016
997
|
else if (t && n.nodeType !== 3) {
|
|
1017
|
-
var r =
|
|
1018
|
-
return n?.before(r),
|
|
998
|
+
var r = ue();
|
|
999
|
+
return n?.before(r), K(r), r;
|
|
1019
1000
|
}
|
|
1020
|
-
return t &&
|
|
1001
|
+
return t && Yn(n), K(n), n;
|
|
1021
1002
|
}
|
|
1022
|
-
function
|
|
1023
|
-
if (!
|
|
1024
|
-
var n = /* @__PURE__ */
|
|
1003
|
+
function yn(e, t = !1) {
|
|
1004
|
+
if (!A) {
|
|
1005
|
+
var n = /* @__PURE__ */ fe(e);
|
|
1025
1006
|
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Te(n) : n;
|
|
1026
1007
|
}
|
|
1027
1008
|
if (t) {
|
|
1028
1009
|
if (C?.nodeType !== 3) {
|
|
1029
|
-
var r =
|
|
1030
|
-
return C?.before(r),
|
|
1010
|
+
var r = ue();
|
|
1011
|
+
return C?.before(r), K(r), r;
|
|
1031
1012
|
}
|
|
1032
|
-
|
|
1013
|
+
Yn(C);
|
|
1033
1014
|
}
|
|
1034
1015
|
return C;
|
|
1035
1016
|
}
|
|
1036
|
-
function
|
|
1037
|
-
if (!
|
|
1038
|
-
var n =
|
|
1039
|
-
return
|
|
1017
|
+
function sr(e, t = !1) {
|
|
1018
|
+
if (!A) return /* @__PURE__ */ fe(e);
|
|
1019
|
+
var n = Mn(e, t);
|
|
1020
|
+
return Vt(e), n;
|
|
1040
1021
|
}
|
|
1041
1022
|
function xe(e, t = 1, n = !1) {
|
|
1042
|
-
let r =
|
|
1023
|
+
let r = A ? C : e;
|
|
1043
1024
|
for (var i; t--; )
|
|
1044
1025
|
i = r, r = /* @__PURE__ */ Te(r);
|
|
1045
|
-
if (!
|
|
1026
|
+
if (!A) return r;
|
|
1046
1027
|
if (n) {
|
|
1047
1028
|
if (r?.nodeType !== 3) {
|
|
1048
|
-
var o =
|
|
1049
|
-
return r === null ? i?.after(o) : r.before(o),
|
|
1029
|
+
var o = ue();
|
|
1030
|
+
return r === null ? i?.after(o) : r.before(o), K(o), o;
|
|
1050
1031
|
}
|
|
1051
|
-
|
|
1032
|
+
Yn(r);
|
|
1052
1033
|
}
|
|
1053
|
-
return
|
|
1034
|
+
return K(r), r;
|
|
1054
1035
|
}
|
|
1055
|
-
function
|
|
1036
|
+
function ao(e) {
|
|
1056
1037
|
e.textContent = "";
|
|
1057
1038
|
}
|
|
1058
|
-
function
|
|
1059
|
-
return !Be || Re !== null ? !1 : (
|
|
1039
|
+
function so() {
|
|
1040
|
+
return !Be || Re !== null ? !1 : (T.f & Lr) !== 0;
|
|
1060
1041
|
}
|
|
1061
|
-
function
|
|
1042
|
+
function Gn(e, t, n) {
|
|
1062
1043
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
1063
1044
|
}
|
|
1064
|
-
function
|
|
1045
|
+
function Yn(e) {
|
|
1065
1046
|
if (e.nodeValue.length < 65536) return;
|
|
1066
1047
|
let t = e.nextSibling;
|
|
1067
1048
|
for (; t !== null && t.nodeType === 3; )
|
|
1068
1049
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1069
1050
|
}
|
|
1070
|
-
function
|
|
1071
|
-
var t =
|
|
1051
|
+
function ls(e) {
|
|
1052
|
+
var t = T;
|
|
1072
1053
|
if (t === null)
|
|
1073
|
-
return
|
|
1054
|
+
return x.f |= On, e;
|
|
1074
1055
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
1075
1056
|
throw e;
|
|
1076
1057
|
Le(e, t);
|
|
@@ -1093,21 +1074,21 @@ function Le(e, t) {
|
|
|
1093
1074
|
throw e;
|
|
1094
1075
|
}
|
|
1095
1076
|
}
|
|
1096
|
-
function
|
|
1097
|
-
|
|
1077
|
+
function fs(e) {
|
|
1078
|
+
T === null && (x === null && Ia(e), Na()), Fe && La(e);
|
|
1098
1079
|
}
|
|
1099
|
-
function
|
|
1080
|
+
function us(e, t) {
|
|
1100
1081
|
var n = t.last;
|
|
1101
1082
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1102
1083
|
}
|
|
1103
|
-
function
|
|
1104
|
-
var n =
|
|
1105
|
-
n !== null && (n.f & 8192) !== 0 && (e |=
|
|
1084
|
+
function Ie(e, t) {
|
|
1085
|
+
var n = T;
|
|
1086
|
+
n !== null && (n.f & 8192) !== 0 && (e |= Or);
|
|
1106
1087
|
var r = {
|
|
1107
|
-
ctx:
|
|
1088
|
+
ctx: B,
|
|
1108
1089
|
deps: null,
|
|
1109
1090
|
nodes: null,
|
|
1110
|
-
f: e |
|
|
1091
|
+
f: e | oe | 512,
|
|
1111
1092
|
first: null,
|
|
1112
1093
|
fn: t,
|
|
1113
1094
|
last: null,
|
|
@@ -1119,431 +1100,431 @@ function Pe(e, t) {
|
|
|
1119
1100
|
wv: 0,
|
|
1120
1101
|
ac: null
|
|
1121
1102
|
};
|
|
1122
|
-
|
|
1103
|
+
M?.register_created_effect(r);
|
|
1123
1104
|
var i = r;
|
|
1124
1105
|
if ((e & 4) !== 0)
|
|
1125
|
-
|
|
1106
|
+
nn !== null ? nn.push(r) : gt.ensure().schedule(r);
|
|
1126
1107
|
else if (t !== null) {
|
|
1127
1108
|
try {
|
|
1128
|
-
|
|
1129
|
-
} catch (
|
|
1130
|
-
throw
|
|
1109
|
+
Rt(r);
|
|
1110
|
+
} catch (s) {
|
|
1111
|
+
throw te(r), s;
|
|
1131
1112
|
}
|
|
1132
|
-
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 |=
|
|
1113
|
+
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 |= Nr));
|
|
1133
1114
|
}
|
|
1134
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1135
|
-
var o =
|
|
1115
|
+
if (i !== null && (i.parent = n, n !== null && us(i, n), x !== null && (x.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1116
|
+
var o = x;
|
|
1136
1117
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1137
1118
|
}
|
|
1138
1119
|
return r;
|
|
1139
1120
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return
|
|
1121
|
+
function Fr() {
|
|
1122
|
+
return x !== null && !me;
|
|
1142
1123
|
}
|
|
1143
|
-
function
|
|
1144
|
-
const t =
|
|
1124
|
+
function cs(e) {
|
|
1125
|
+
const t = Ie(8, null);
|
|
1145
1126
|
return j(t, _e), t.teardown = e, t;
|
|
1146
1127
|
}
|
|
1147
|
-
function
|
|
1148
|
-
|
|
1149
|
-
var t =
|
|
1150
|
-
if (!
|
|
1151
|
-
var n =
|
|
1128
|
+
function Wt(e) {
|
|
1129
|
+
fs("$effect");
|
|
1130
|
+
var t = T.f;
|
|
1131
|
+
if (!x && (t & 32) !== 0 && B !== null && !B.i) {
|
|
1132
|
+
var n = B;
|
|
1152
1133
|
(n.e ?? (n.e = [])).push(e);
|
|
1153
|
-
} else return
|
|
1134
|
+
} else return lo(e);
|
|
1154
1135
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return
|
|
1136
|
+
function lo(e) {
|
|
1137
|
+
return Ie(4 | ka, e);
|
|
1157
1138
|
}
|
|
1158
|
-
function
|
|
1139
|
+
function ds(e) {
|
|
1159
1140
|
gt.ensure();
|
|
1160
|
-
const t =
|
|
1141
|
+
const t = Ie(64 | Ct, e);
|
|
1161
1142
|
return () => {
|
|
1162
|
-
|
|
1143
|
+
te(t);
|
|
1163
1144
|
};
|
|
1164
1145
|
}
|
|
1165
|
-
function
|
|
1146
|
+
function hs(e) {
|
|
1166
1147
|
gt.ensure();
|
|
1167
|
-
const t =
|
|
1148
|
+
const t = Ie(64 | Ct, e);
|
|
1168
1149
|
return (n = {}) => new Promise((r) => {
|
|
1169
1150
|
n.outro ? bt(t, () => {
|
|
1170
|
-
|
|
1171
|
-
}) : (
|
|
1151
|
+
te(t), r(void 0);
|
|
1152
|
+
}) : (te(t), r(void 0));
|
|
1172
1153
|
});
|
|
1173
1154
|
}
|
|
1174
|
-
function
|
|
1175
|
-
return
|
|
1155
|
+
function fo(e) {
|
|
1156
|
+
return Ie(4, e);
|
|
1176
1157
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return
|
|
1158
|
+
function vs(e) {
|
|
1159
|
+
return Ie($a | Ct, e);
|
|
1179
1160
|
}
|
|
1180
|
-
function
|
|
1181
|
-
return
|
|
1161
|
+
function Br(e, t = 0) {
|
|
1162
|
+
return Ie(8 | t, e);
|
|
1182
1163
|
}
|
|
1183
1164
|
function We(e, t = [], n = [], r = []) {
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
e(...i.map(
|
|
1165
|
+
Ua(r, t, n, (i) => {
|
|
1166
|
+
Ie(8, () => {
|
|
1167
|
+
e(...i.map(a));
|
|
1187
1168
|
});
|
|
1188
1169
|
});
|
|
1189
1170
|
}
|
|
1190
|
-
function
|
|
1191
|
-
var n =
|
|
1171
|
+
function zr(e, t = 0) {
|
|
1172
|
+
var n = Ie(16 | t, e);
|
|
1192
1173
|
return n;
|
|
1193
1174
|
}
|
|
1194
1175
|
function pe(e) {
|
|
1195
|
-
return
|
|
1176
|
+
return Ie(32 | Ct, e);
|
|
1196
1177
|
}
|
|
1197
|
-
function
|
|
1178
|
+
function uo(e) {
|
|
1198
1179
|
var t = e.teardown;
|
|
1199
1180
|
if (t !== null) {
|
|
1200
|
-
const n = Fe, r =
|
|
1201
|
-
|
|
1181
|
+
const n = Fe, r = x;
|
|
1182
|
+
ci(!0), ge(null);
|
|
1202
1183
|
try {
|
|
1203
1184
|
t.call(null);
|
|
1204
1185
|
} catch (i) {
|
|
1205
1186
|
Le(i, e.parent);
|
|
1206
1187
|
} finally {
|
|
1207
|
-
|
|
1188
|
+
ci(n), ge(r);
|
|
1208
1189
|
}
|
|
1209
1190
|
}
|
|
1210
1191
|
}
|
|
1211
|
-
function
|
|
1192
|
+
function Ur(e, t = !1) {
|
|
1212
1193
|
var n = e.first;
|
|
1213
1194
|
for (e.first = e.last = null; n !== null; ) {
|
|
1214
1195
|
const i = n.ac;
|
|
1215
|
-
i !== null &&
|
|
1216
|
-
i.abort(
|
|
1196
|
+
i !== null && Un(() => {
|
|
1197
|
+
i.abort(sn);
|
|
1217
1198
|
});
|
|
1218
1199
|
var r = n.next;
|
|
1219
|
-
(n.f & 64) !== 0 ? n.parent = null :
|
|
1200
|
+
(n.f & 64) !== 0 ? n.parent = null : te(n, t), n = r;
|
|
1220
1201
|
}
|
|
1221
1202
|
}
|
|
1222
|
-
function
|
|
1203
|
+
function _s(e) {
|
|
1223
1204
|
for (var t = e.first; t !== null; ) {
|
|
1224
1205
|
var n = t.next;
|
|
1225
|
-
(t.f & 32) === 0 &&
|
|
1206
|
+
(t.f & 32) === 0 && te(t), t = n;
|
|
1226
1207
|
}
|
|
1227
1208
|
}
|
|
1228
|
-
function
|
|
1209
|
+
function te(e, t = !0) {
|
|
1229
1210
|
var n = !1;
|
|
1230
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1211
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (co(e.nodes.start, e.nodes.end), n = !0), e.f |= gr, Ur(e, t && !n), on(e, 0);
|
|
1231
1212
|
var r = e.nodes && e.nodes.t;
|
|
1232
1213
|
if (r !== null) for (const o of r) o.stop();
|
|
1233
|
-
|
|
1214
|
+
uo(e), e.f ^= gr, e.f |= Oi;
|
|
1234
1215
|
var i = e.parent;
|
|
1235
|
-
i !== null && i.first !== null &&
|
|
1216
|
+
i !== null && i.first !== null && ho(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1236
1217
|
}
|
|
1237
|
-
function
|
|
1218
|
+
function co(e, t) {
|
|
1238
1219
|
for (; e !== null; ) {
|
|
1239
1220
|
var n = e === t ? null : /* @__PURE__ */ Te(e);
|
|
1240
1221
|
e.remove(), e = n;
|
|
1241
1222
|
}
|
|
1242
1223
|
}
|
|
1243
|
-
function
|
|
1224
|
+
function ho(e) {
|
|
1244
1225
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1245
1226
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1246
1227
|
}
|
|
1247
1228
|
function bt(e, t, n = !0) {
|
|
1248
1229
|
var r = [];
|
|
1249
|
-
e.f |= 256,
|
|
1230
|
+
e.f |= 256, vo(e, r, !0);
|
|
1250
1231
|
var i = () => {
|
|
1251
|
-
n &&
|
|
1232
|
+
n && te(e), t && t();
|
|
1252
1233
|
}, o = r.length;
|
|
1253
1234
|
if (o > 0) {
|
|
1254
|
-
var
|
|
1255
|
-
for (var f of r) f.out(
|
|
1235
|
+
var s = () => --o || i();
|
|
1236
|
+
for (var f of r) f.out(s);
|
|
1256
1237
|
} else i();
|
|
1257
1238
|
}
|
|
1258
|
-
function
|
|
1239
|
+
function vo(e, t, n) {
|
|
1259
1240
|
if ((e.f & 8192) === 0) {
|
|
1260
|
-
e.f ^=
|
|
1241
|
+
e.f ^= Or;
|
|
1261
1242
|
var r = e.nodes && e.nodes.t;
|
|
1262
1243
|
if (r !== null)
|
|
1263
1244
|
for (const f of r) (f.is_global || n) && t.push(f);
|
|
1264
1245
|
for (var i = e.first; i !== null; ) {
|
|
1265
1246
|
var o = i.next;
|
|
1266
1247
|
if ((i.f & 64) === 0) {
|
|
1267
|
-
var
|
|
1268
|
-
|
|
1248
|
+
var s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1249
|
+
vo(i, t, s ? n : !1);
|
|
1269
1250
|
}
|
|
1270
1251
|
i = o;
|
|
1271
1252
|
}
|
|
1272
1253
|
}
|
|
1273
1254
|
}
|
|
1274
|
-
function
|
|
1275
|
-
e.f &= -257,
|
|
1255
|
+
function Hn(e) {
|
|
1256
|
+
e.f &= -257, _o(e, !0);
|
|
1276
1257
|
}
|
|
1277
|
-
function
|
|
1258
|
+
function _o(e, t) {
|
|
1278
1259
|
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1279
|
-
e.f ^=
|
|
1260
|
+
e.f ^= Or, (e.f & 1024) === 0 && (j(e, oe), gt.ensure().schedule(e));
|
|
1280
1261
|
for (var n = e.first; n !== null; ) {
|
|
1281
1262
|
var r = n.next, i = (n.f & 65536) !== 0 || (n.f & 32) !== 0;
|
|
1282
|
-
|
|
1263
|
+
_o(n, i ? t : !1), n = r;
|
|
1283
1264
|
}
|
|
1284
1265
|
var o = e.nodes && e.nodes.t;
|
|
1285
1266
|
if (o !== null)
|
|
1286
|
-
for (const
|
|
1267
|
+
for (const s of o) (s.is_global || t) && s.in();
|
|
1287
1268
|
}
|
|
1288
1269
|
}
|
|
1289
|
-
function
|
|
1270
|
+
function Gr(e, t) {
|
|
1290
1271
|
if (e.nodes)
|
|
1291
1272
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1292
1273
|
var i = n === r ? null : /* @__PURE__ */ Te(n);
|
|
1293
1274
|
t.append(n), n = i;
|
|
1294
1275
|
}
|
|
1295
1276
|
}
|
|
1296
|
-
var
|
|
1297
|
-
function
|
|
1277
|
+
var ps = null, Fe = !1;
|
|
1278
|
+
function ci(e) {
|
|
1298
1279
|
Fe = e;
|
|
1299
1280
|
}
|
|
1300
|
-
var
|
|
1281
|
+
var x = null, me = !1;
|
|
1301
1282
|
function ge(e) {
|
|
1302
|
-
|
|
1283
|
+
x = e;
|
|
1303
1284
|
}
|
|
1304
|
-
var
|
|
1285
|
+
var T = null;
|
|
1305
1286
|
function Ne(e) {
|
|
1306
|
-
|
|
1287
|
+
T = e;
|
|
1307
1288
|
}
|
|
1308
|
-
var
|
|
1309
|
-
function
|
|
1310
|
-
|
|
1289
|
+
var ke = null;
|
|
1290
|
+
function po(e) {
|
|
1291
|
+
x !== null && (!Be && (x.f & 2097152) !== 0 || (x.f & 2) !== 0) && (ke ?? (ke = /* @__PURE__ */ new Set())).add(e);
|
|
1311
1292
|
}
|
|
1312
|
-
var re = null,
|
|
1313
|
-
function
|
|
1293
|
+
var re = null, le = 0, ve = null;
|
|
1294
|
+
function gs(e) {
|
|
1314
1295
|
ve = e;
|
|
1315
1296
|
}
|
|
1316
|
-
var
|
|
1317
|
-
function
|
|
1318
|
-
|
|
1297
|
+
var go = 1, ut = 0, dt = ut;
|
|
1298
|
+
function di(e) {
|
|
1299
|
+
dt = e;
|
|
1319
1300
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return ++
|
|
1301
|
+
function bo() {
|
|
1302
|
+
return ++go;
|
|
1322
1303
|
}
|
|
1323
|
-
function
|
|
1304
|
+
function un(e) {
|
|
1324
1305
|
var t = e.f;
|
|
1325
1306
|
if ((t & 2048) !== 0) return !0;
|
|
1326
1307
|
if ((t & 4096) !== 0) {
|
|
1327
1308
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1328
1309
|
var o = n[i];
|
|
1329
|
-
if (
|
|
1310
|
+
if (un(o) && Vi(o), o.wv > e.wv) return !0;
|
|
1330
1311
|
}
|
|
1331
|
-
(t & 512) !== 0 &&
|
|
1312
|
+
(t & 512) !== 0 && ee === null && j(e, _e);
|
|
1332
1313
|
}
|
|
1333
1314
|
return !1;
|
|
1334
1315
|
}
|
|
1335
|
-
function
|
|
1316
|
+
function wo(e, t, n = !0) {
|
|
1336
1317
|
var r = e.reactions;
|
|
1337
|
-
if (r !== null && !(!Be &&
|
|
1318
|
+
if (r !== null && !(!Be && ke !== null && ke.has(e)))
|
|
1338
1319
|
for (var i = 0; i < r.length; i++) {
|
|
1339
1320
|
var o = r[i];
|
|
1340
|
-
(o.f & 2) !== 0 ?
|
|
1321
|
+
(o.f & 2) !== 0 ? wo(o, t, !1) : t === o && (n ? j(o, oe) : (o.f & 1024) !== 0 && j(o, tt), Vr(o));
|
|
1341
1322
|
}
|
|
1342
1323
|
}
|
|
1343
|
-
function
|
|
1344
|
-
var t = re, n =
|
|
1345
|
-
re = null,
|
|
1346
|
-
e.ac.abort(
|
|
1324
|
+
function mo(e) {
|
|
1325
|
+
var t = re, n = le, r = ve, i = x, o = ke, s = B, f = me, u = dt, _ = e.f;
|
|
1326
|
+
re = null, le = 0, ve = null, x = (_ & 96) === 0 ? e : null, ke = null, xt(e.ctx), me = !1, dt = ++ut, e.ac !== null && (Un(() => {
|
|
1327
|
+
e.ac.abort(sn);
|
|
1347
1328
|
}), e.ac = null);
|
|
1348
1329
|
try {
|
|
1349
|
-
e.f |=
|
|
1350
|
-
var
|
|
1351
|
-
e.f |=
|
|
1352
|
-
var
|
|
1353
|
-
if (
|
|
1330
|
+
e.f |= ai;
|
|
1331
|
+
var p = e.fn, d = p();
|
|
1332
|
+
e.f |= Lr;
|
|
1333
|
+
var c = hi(e);
|
|
1334
|
+
if (fn() && ve !== null && !me && c !== null && (e.f & 6146) === 0) for (var h = 0; h < ve.length; h++) wo(ve[h], e);
|
|
1354
1335
|
if (i !== null && i !== e) {
|
|
1355
|
-
if (
|
|
1356
|
-
if (t !== null) for (const b of t) b.rv =
|
|
1336
|
+
if (ut++, i.deps !== null) for (let b = 0; b < n; b += 1) i.deps[b].rv = ut;
|
|
1337
|
+
if (t !== null) for (const b of t) b.rv = ut;
|
|
1357
1338
|
ve !== null && (r === null ? r = ve : r.push(...ve));
|
|
1358
1339
|
}
|
|
1359
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1340
|
+
return (e.f & 8388608) !== 0 && (e.f ^= On), d;
|
|
1360
1341
|
} catch (b) {
|
|
1361
|
-
return
|
|
1342
|
+
return hi(e), ls(b);
|
|
1362
1343
|
} finally {
|
|
1363
|
-
e.f ^=
|
|
1344
|
+
e.f ^= ai, re = t, le = n, ve = r, x = i, ke = o, xt(s), me = f, dt = u;
|
|
1364
1345
|
}
|
|
1365
1346
|
}
|
|
1366
|
-
function
|
|
1367
|
-
var t = e.deps, n =
|
|
1347
|
+
function hi(e) {
|
|
1348
|
+
var t = e.deps, n = M?.is_fork;
|
|
1368
1349
|
if (re !== null) {
|
|
1369
1350
|
var r;
|
|
1370
|
-
if (n ||
|
|
1371
|
-
for (t.length =
|
|
1351
|
+
if (n || on(e, le), t !== null && le > 0)
|
|
1352
|
+
for (t.length = le + re.length, r = 0; r < re.length; r++) t[le + r] = re[r];
|
|
1372
1353
|
else e.deps = t = re;
|
|
1373
|
-
if (
|
|
1354
|
+
if (Fr() && (e.f & 512) !== 0) for (r = le; r < t.length; r++) {
|
|
1374
1355
|
var i;
|
|
1375
1356
|
((i = t[r]).reactions ?? (i.reactions = [])).push(e);
|
|
1376
1357
|
}
|
|
1377
|
-
} else !n && t !== null &&
|
|
1358
|
+
} else !n && t !== null && le < t.length && (on(e, le), t.length = le);
|
|
1378
1359
|
return t;
|
|
1379
1360
|
}
|
|
1380
|
-
function
|
|
1361
|
+
function bs(e, t) {
|
|
1381
1362
|
let n = t.reactions;
|
|
1382
1363
|
if (n !== null) {
|
|
1383
|
-
var r =
|
|
1364
|
+
var r = va.call(n, e);
|
|
1384
1365
|
if (r !== -1) {
|
|
1385
1366
|
var i = n.length - 1;
|
|
1386
1367
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1387
1368
|
}
|
|
1388
1369
|
}
|
|
1389
|
-
if (n === null && (t.f & 2) !== 0 && (re === null || !
|
|
1370
|
+
if (n === null && (t.f & 2) !== 0 && (re === null || !Jt.call(re, t))) {
|
|
1390
1371
|
var o = t;
|
|
1391
|
-
(o.f & 512) !== 0 && (o.f ^= 512), o.v !==
|
|
1392
|
-
o.ac.abort(
|
|
1393
|
-
}),
|
|
1372
|
+
(o.f & 512) !== 0 && (o.f ^= 512), o.v !== U && qr(o), o.ac !== null && Un(() => {
|
|
1373
|
+
o.ac.abort(sn), o.ac = null, j(o, oe);
|
|
1374
|
+
}), Za(o), on(o, 0);
|
|
1394
1375
|
}
|
|
1395
1376
|
}
|
|
1396
|
-
function
|
|
1377
|
+
function on(e, t) {
|
|
1397
1378
|
var n = e.deps;
|
|
1398
1379
|
if (n !== null)
|
|
1399
|
-
for (var r = t; r < n.length; r++)
|
|
1380
|
+
for (var r = t; r < n.length; r++) bs(e, n[r]);
|
|
1400
1381
|
}
|
|
1401
|
-
function
|
|
1382
|
+
function Rt(e) {
|
|
1402
1383
|
var t = e.f;
|
|
1403
1384
|
if ((t & 16384) === 0) {
|
|
1404
1385
|
j(e, _e);
|
|
1405
|
-
var n =
|
|
1406
|
-
if (
|
|
1386
|
+
var n = T;
|
|
1387
|
+
if (T = e, 0)
|
|
1407
1388
|
var r, i;
|
|
1408
1389
|
try {
|
|
1409
|
-
(t & 16777232) !== 0 ?
|
|
1410
|
-
var o =
|
|
1411
|
-
if (e.teardown = typeof o == "function" ? o : null, e.wv =
|
|
1412
|
-
for (var
|
|
1390
|
+
(t & 16777232) !== 0 ? _s(e) : Ur(e), uo(e);
|
|
1391
|
+
var o = mo(e);
|
|
1392
|
+
if (e.teardown = typeof o == "function" ? o : null, e.wv = go, 0)
|
|
1393
|
+
for (var s of e.deps) ;
|
|
1413
1394
|
} finally {
|
|
1414
|
-
|
|
1395
|
+
T = n;
|
|
1415
1396
|
}
|
|
1416
1397
|
}
|
|
1417
1398
|
}
|
|
1418
|
-
async function
|
|
1399
|
+
async function ws() {
|
|
1419
1400
|
if (Be) return new Promise((e) => {
|
|
1420
1401
|
requestAnimationFrame(() => e()), setTimeout(() => e());
|
|
1421
1402
|
});
|
|
1422
|
-
await Promise.resolve(),
|
|
1403
|
+
await Promise.resolve(), rn();
|
|
1423
1404
|
}
|
|
1424
|
-
function
|
|
1405
|
+
function a(e) {
|
|
1425
1406
|
var t = (e.f & 2) !== 0;
|
|
1426
|
-
if (
|
|
1427
|
-
var n =
|
|
1428
|
-
if ((
|
|
1429
|
-
e.rv <
|
|
1407
|
+
if (ps?.add(e), x !== null && !me && !(T !== null && (T.f & 16384) !== 0) && (ke === null || !ke.has(e))) {
|
|
1408
|
+
var n = x.deps;
|
|
1409
|
+
if ((x.f & 2097152) !== 0)
|
|
1410
|
+
e.rv < ut && (e.rv = ut, re === null && n !== null && n[le] === e ? le++ : re === null ? re = [e] : re.push(e));
|
|
1430
1411
|
else {
|
|
1431
1412
|
var r;
|
|
1432
|
-
(r =
|
|
1413
|
+
(r = x).deps ?? (r.deps = []), Jt.call(x.deps, e) || x.deps.push(e);
|
|
1433
1414
|
var i = e.reactions;
|
|
1434
|
-
i === null ? e.reactions = [
|
|
1415
|
+
i === null ? e.reactions = [x] : Jt.call(i, x) || i.push(x);
|
|
1435
1416
|
}
|
|
1436
1417
|
}
|
|
1437
1418
|
if (0) {
|
|
1438
|
-
if (!
|
|
1419
|
+
if (!me && reactivity_loss_tracker && M === null && Tt === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1439
1420
|
var o;
|
|
1440
|
-
if (tracing_mode_flag && !
|
|
1421
|
+
if (tracing_mode_flag && !me && tracing_expressions !== null && x !== null && tracing_expressions.reaction === x && !e.trace) {
|
|
1441
1422
|
if (o)
|
|
1442
|
-
var
|
|
1423
|
+
var s, f;
|
|
1443
1424
|
}
|
|
1444
1425
|
}
|
|
1445
1426
|
if (Fe && Oe.has(e)) return Oe.get(e);
|
|
1446
1427
|
if (t) {
|
|
1447
|
-
var
|
|
1428
|
+
var u = e;
|
|
1448
1429
|
if (Fe) {
|
|
1449
|
-
var
|
|
1450
|
-
return ((
|
|
1430
|
+
var _ = u.v;
|
|
1431
|
+
return ((u.f & 1024) === 0 && u.reactions !== null || ko(u)) && (_ = Wr(u)), Oe.set(u, _), _;
|
|
1451
1432
|
}
|
|
1452
|
-
var
|
|
1453
|
-
|
|
1433
|
+
var p = (u.f & 512) === 0 && !me && x !== null && (x.f & 512) !== 0, d = (u.f & Lr) === 0;
|
|
1434
|
+
un(u) && (p && (u.f |= 512), Vi(u)), p && !d && (Fi(u), yo(u));
|
|
1454
1435
|
}
|
|
1455
|
-
if (
|
|
1436
|
+
if (ee?.has(e)) return ee.get(e);
|
|
1456
1437
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1457
1438
|
return e.v;
|
|
1458
1439
|
}
|
|
1459
|
-
function
|
|
1440
|
+
function yo(e) {
|
|
1460
1441
|
if (e.f |= 512, e.deps !== null)
|
|
1461
1442
|
for (const n of e.deps) {
|
|
1462
1443
|
var t = n.reactions;
|
|
1463
|
-
t === null ? n.reactions = [e] :
|
|
1444
|
+
t === null ? n.reactions = [e] : Jt.call(t, e) || t.push(e), (n.f & 2) !== 0 && (n.f & 512) === 0 && (Fi(n), yo(n));
|
|
1464
1445
|
}
|
|
1465
1446
|
}
|
|
1466
|
-
function
|
|
1467
|
-
if (e.v ===
|
|
1447
|
+
function ko(e) {
|
|
1448
|
+
if (e.v === U) return !0;
|
|
1468
1449
|
if (e.deps === null) return !1;
|
|
1469
1450
|
for (const t of e.deps)
|
|
1470
|
-
if (Oe.has(t) || (t.f & 2) !== 0 &&
|
|
1451
|
+
if (Oe.has(t) || (t.f & 2) !== 0 && ko(t)) return !0;
|
|
1471
1452
|
return !1;
|
|
1472
1453
|
}
|
|
1473
|
-
function
|
|
1474
|
-
var t =
|
|
1454
|
+
function St(e) {
|
|
1455
|
+
var t = me;
|
|
1475
1456
|
try {
|
|
1476
|
-
return
|
|
1457
|
+
return me = !0, e();
|
|
1477
1458
|
} finally {
|
|
1478
|
-
|
|
1459
|
+
me = t;
|
|
1479
1460
|
}
|
|
1480
1461
|
}
|
|
1481
|
-
var
|
|
1482
|
-
function
|
|
1483
|
-
(t[
|
|
1462
|
+
var Et = /* @__PURE__ */ Symbol("events"), $o = /* @__PURE__ */ new Set(), Tr = /* @__PURE__ */ new Set();
|
|
1463
|
+
function Ye(e, t, n) {
|
|
1464
|
+
(t[Et] ?? (t[Et] = {}))[e] = n;
|
|
1484
1465
|
}
|
|
1485
|
-
function
|
|
1486
|
-
for (var t = 0; t < e.length; t++)
|
|
1487
|
-
for (var n of
|
|
1466
|
+
function ms(e) {
|
|
1467
|
+
for (var t = 0; t < e.length; t++) $o.add(e[t]);
|
|
1468
|
+
for (var n of Tr) n(e);
|
|
1488
1469
|
}
|
|
1489
|
-
var
|
|
1490
|
-
function
|
|
1470
|
+
var lr = null, fr = !1;
|
|
1471
|
+
function vi(e) {
|
|
1491
1472
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
|
|
1492
|
-
|
|
1493
|
-
|
|
1473
|
+
lr = e, fr || (fr = !0, setTimeout(() => {
|
|
1474
|
+
fr = !1, lr = null;
|
|
1494
1475
|
}));
|
|
1495
|
-
var
|
|
1476
|
+
var s = 0, f = lr === e && e[Et];
|
|
1496
1477
|
if (f) {
|
|
1497
|
-
var
|
|
1498
|
-
if (
|
|
1499
|
-
e[
|
|
1478
|
+
var u = i.indexOf(f);
|
|
1479
|
+
if (u !== -1 && (t === document || t === window)) {
|
|
1480
|
+
e[Et] = t;
|
|
1500
1481
|
return;
|
|
1501
1482
|
}
|
|
1502
|
-
var
|
|
1503
|
-
if (
|
|
1504
|
-
|
|
1483
|
+
var _ = i.indexOf(t);
|
|
1484
|
+
if (_ === -1) return;
|
|
1485
|
+
u <= _ && (s = u);
|
|
1505
1486
|
}
|
|
1506
|
-
if (o = i[
|
|
1507
|
-
|
|
1487
|
+
if (o = i[s] || e.target, o !== t) {
|
|
1488
|
+
Qt(e, "currentTarget", {
|
|
1508
1489
|
configurable: !0,
|
|
1509
1490
|
get() {
|
|
1510
1491
|
return o || n;
|
|
1511
1492
|
}
|
|
1512
1493
|
});
|
|
1513
|
-
var
|
|
1494
|
+
var p = x, d = T;
|
|
1514
1495
|
ge(null), Ne(null);
|
|
1515
1496
|
try {
|
|
1516
|
-
for (var
|
|
1497
|
+
for (var c, h = []; o !== null && o !== t; ) {
|
|
1517
1498
|
try {
|
|
1518
|
-
var b = o[
|
|
1499
|
+
var b = o[Et]?.[r];
|
|
1519
1500
|
b != null && (!o.disabled || e.target === o) && b.call(o, e);
|
|
1520
|
-
} catch (
|
|
1521
|
-
|
|
1501
|
+
} catch (y) {
|
|
1502
|
+
c ? h.push(y) : c = y;
|
|
1522
1503
|
}
|
|
1523
1504
|
if (e.cancelBubble) break;
|
|
1524
|
-
|
|
1505
|
+
s++, o = s < i.length ? i[s] : null;
|
|
1525
1506
|
}
|
|
1526
|
-
if (
|
|
1527
|
-
for (let
|
|
1528
|
-
throw
|
|
1507
|
+
if (c) {
|
|
1508
|
+
for (let y of h) queueMicrotask(() => {
|
|
1509
|
+
throw y;
|
|
1529
1510
|
});
|
|
1530
|
-
throw
|
|
1511
|
+
throw c;
|
|
1531
1512
|
}
|
|
1532
1513
|
} finally {
|
|
1533
|
-
e[
|
|
1514
|
+
e[Et] = t, delete e.currentTarget, ge(p), Ne(d);
|
|
1534
1515
|
}
|
|
1535
1516
|
}
|
|
1536
1517
|
}
|
|
1537
|
-
var
|
|
1538
|
-
function
|
|
1539
|
-
return
|
|
1518
|
+
var ys = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1519
|
+
function ks(e) {
|
|
1520
|
+
return ys?.createHTML(e) ?? e;
|
|
1540
1521
|
}
|
|
1541
|
-
function
|
|
1542
|
-
var t =
|
|
1543
|
-
return t.innerHTML =
|
|
1522
|
+
function $s(e) {
|
|
1523
|
+
var t = Gn("template");
|
|
1524
|
+
return t.innerHTML = ks(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1544
1525
|
}
|
|
1545
1526
|
function He(e, t) {
|
|
1546
|
-
var n =
|
|
1527
|
+
var n = T;
|
|
1547
1528
|
n.nodes === null && (n.nodes = {
|
|
1548
1529
|
start: e,
|
|
1549
1530
|
end: t,
|
|
@@ -1552,37 +1533,37 @@ function He(e, t) {
|
|
|
1552
1533
|
});
|
|
1553
1534
|
}
|
|
1554
1535
|
// @__NO_SIDE_EFFECTS__
|
|
1555
|
-
function
|
|
1536
|
+
function Pe(e, t) {
|
|
1556
1537
|
var n = (t & 1) !== 0, r = (t & 2) !== 0, i, o = !e.startsWith("<!>");
|
|
1557
1538
|
return () => {
|
|
1558
|
-
if (
|
|
1539
|
+
if (A)
|
|
1559
1540
|
return He(C, null), C;
|
|
1560
|
-
i === void 0 && (i =
|
|
1561
|
-
var
|
|
1541
|
+
i === void 0 && (i = $s(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ fe(i)));
|
|
1542
|
+
var s = r || ro ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1562
1543
|
if (n) {
|
|
1563
|
-
var f = /* @__PURE__ */
|
|
1564
|
-
He(f,
|
|
1565
|
-
} else He(
|
|
1566
|
-
return
|
|
1544
|
+
var f = /* @__PURE__ */ fe(s), u = s.lastChild;
|
|
1545
|
+
He(f, u);
|
|
1546
|
+
} else He(s, s);
|
|
1547
|
+
return s;
|
|
1567
1548
|
};
|
|
1568
1549
|
}
|
|
1569
|
-
function
|
|
1570
|
-
if (!
|
|
1571
|
-
var t =
|
|
1550
|
+
function Es(e = "") {
|
|
1551
|
+
if (!A) {
|
|
1552
|
+
var t = ue(e + "");
|
|
1572
1553
|
return He(t, t), t;
|
|
1573
1554
|
}
|
|
1574
1555
|
var n = C;
|
|
1575
|
-
return n.nodeType !== 3 ? (n.before(n =
|
|
1556
|
+
return n.nodeType !== 3 ? (n.before(n = ue()), K(n)) : Yn(n), He(n, n), n;
|
|
1576
1557
|
}
|
|
1577
1558
|
function he(e, t) {
|
|
1578
|
-
if (
|
|
1579
|
-
var n =
|
|
1580
|
-
((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C),
|
|
1559
|
+
if (A) {
|
|
1560
|
+
var n = T;
|
|
1561
|
+
((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C), At();
|
|
1581
1562
|
return;
|
|
1582
1563
|
}
|
|
1583
1564
|
e !== null && e.before(t);
|
|
1584
1565
|
}
|
|
1585
|
-
var
|
|
1566
|
+
var Ts = [
|
|
1586
1567
|
"allowfullscreen",
|
|
1587
1568
|
"async",
|
|
1588
1569
|
"autofocus",
|
|
@@ -1611,8 +1592,8 @@ var As = [
|
|
|
1611
1592
|
"defer",
|
|
1612
1593
|
"disablepictureinpicture",
|
|
1613
1594
|
"disableremoteplayback"
|
|
1614
|
-
],
|
|
1615
|
-
...
|
|
1595
|
+
], Hl = [
|
|
1596
|
+
...Ts,
|
|
1616
1597
|
"formNoValidate",
|
|
1617
1598
|
"isMap",
|
|
1618
1599
|
"noModule",
|
|
@@ -1627,17 +1608,17 @@ var As = [
|
|
|
1627
1608
|
"allowFullscreen",
|
|
1628
1609
|
"disablePictureInPicture",
|
|
1629
1610
|
"disableRemotePlayback"
|
|
1630
|
-
],
|
|
1631
|
-
function
|
|
1632
|
-
return
|
|
1611
|
+
], Ss = ["touchstart", "touchmove"];
|
|
1612
|
+
function As(e) {
|
|
1613
|
+
return Ss.includes(e);
|
|
1633
1614
|
}
|
|
1634
|
-
var
|
|
1615
|
+
var xs = [
|
|
1635
1616
|
"$state",
|
|
1636
1617
|
"$state.raw",
|
|
1637
1618
|
"$derived",
|
|
1638
1619
|
"$derived.by"
|
|
1639
|
-
],
|
|
1640
|
-
...
|
|
1620
|
+
], Vl = [
|
|
1621
|
+
...xs,
|
|
1641
1622
|
"$state.eager",
|
|
1642
1623
|
"$state.snapshot",
|
|
1643
1624
|
"$props",
|
|
@@ -1653,41 +1634,41 @@ var Rs = [
|
|
|
1653
1634
|
"$inspect.trace",
|
|
1654
1635
|
"$host"
|
|
1655
1636
|
];
|
|
1656
|
-
function
|
|
1657
|
-
let t = 0, n =
|
|
1637
|
+
function Ms(e) {
|
|
1638
|
+
let t = 0, n = pt(0), r;
|
|
1658
1639
|
return () => {
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
1640
|
+
Fr() && (a(n), Br(() => (t === 0 && (r = St(() => e(() => Zt(n)))), t += 1, () => {
|
|
1641
|
+
et(() => {
|
|
1642
|
+
t -= 1, t === 0 && (r?.(), r = void 0, Zt(n));
|
|
1662
1643
|
});
|
|
1663
1644
|
})));
|
|
1664
1645
|
};
|
|
1665
1646
|
}
|
|
1666
|
-
var
|
|
1667
|
-
function
|
|
1668
|
-
new
|
|
1647
|
+
var Rs = Nr | Ct;
|
|
1648
|
+
function Cs(e, t, n, r) {
|
|
1649
|
+
new Os(e, t, n, r);
|
|
1669
1650
|
}
|
|
1670
|
-
var
|
|
1651
|
+
var $e = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakSet(), Os = class {
|
|
1671
1652
|
constructor(e, t, n, r) {
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
}))),
|
|
1675
|
-
var o =
|
|
1653
|
+
jr(this, P), N(this, "parent", void 0), N(this, "is_pending", !1), N(this, "transform_error", void 0), S(this, $e, void 0), S(this, Sr, A ? C : null), S(this, Ce, void 0), S(this, an, void 0), S(this, ie, void 0), S(this, Ee, null), S(this, ce, null), S(this, ye, null), S(this, Qe, null), S(this, kt, 0), S(this, ht, 0), S(this, kn, !1), S(this, Ar, /* @__PURE__ */ new Map()), S(this, rt, null), S(this, _i, Ms(() => (E(rt, this, pt(l(kt, this))), () => {
|
|
1654
|
+
E(rt, this, null);
|
|
1655
|
+
}))), E($e, this, e), E(Ce, this, t), E(an, this, (i) => {
|
|
1656
|
+
var o = T;
|
|
1676
1657
|
o.b = this, o.f |= 128, n(i);
|
|
1677
|
-
}), this.parent =
|
|
1678
|
-
if (
|
|
1679
|
-
const i =
|
|
1680
|
-
|
|
1658
|
+
}), this.parent = T.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), E(ie, this, zr(() => {
|
|
1659
|
+
if (A) {
|
|
1660
|
+
const i = Ir(l(Sr, this));
|
|
1661
|
+
At();
|
|
1681
1662
|
const o = i === "[!";
|
|
1682
1663
|
if (i.startsWith("[?")) {
|
|
1683
|
-
const
|
|
1684
|
-
$(
|
|
1685
|
-
} else o ? $(
|
|
1686
|
-
} else $(
|
|
1687
|
-
},
|
|
1664
|
+
const s = JSON.parse(i.slice(2));
|
|
1665
|
+
$(P, this, Ns).call(this, s);
|
|
1666
|
+
} else o ? $(P, this, Is).call(this) : $(P, this, Ls).call(this);
|
|
1667
|
+
} else $(P, this, To).call(this);
|
|
1668
|
+
}, Rs)), A && E($e, this, C);
|
|
1688
1669
|
}
|
|
1689
1670
|
defer_effect(e) {
|
|
1690
|
-
|
|
1671
|
+
ji(e, l(Ar, this));
|
|
1691
1672
|
}
|
|
1692
1673
|
is_rendered() {
|
|
1693
1674
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1696,52 +1677,52 @@ var Se = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Ce =
|
|
|
1696
1677
|
return !!l(Ce, this).pending;
|
|
1697
1678
|
}
|
|
1698
1679
|
update_pending_count(e, t) {
|
|
1699
|
-
$(
|
|
1700
|
-
|
|
1680
|
+
$(P, this, So).call(this, e, t), E(kt, this, l(kt, this) + e), !(!l(rt, this) || l(kn, this)) && (E(kn, this, !0), et(() => {
|
|
1681
|
+
E(kn, this, !1), l(rt, this) && Mt(l(rt, this), l(kt, this));
|
|
1701
1682
|
}));
|
|
1702
1683
|
}
|
|
1703
1684
|
get_effect_pending() {
|
|
1704
|
-
return l(
|
|
1685
|
+
return l(_i, this).call(this), a(l(rt, this));
|
|
1705
1686
|
}
|
|
1706
1687
|
error(e) {
|
|
1707
1688
|
if (e === Ve || !l(Ce, this).onerror && !l(Ce, this).failed) throw e;
|
|
1708
|
-
|
|
1709
|
-
$(
|
|
1710
|
-
})) : $(
|
|
1689
|
+
M?.is_fork ? (l(Ee, this) && M.skip_effect(l(Ee, this)), l(ce, this) && M.skip_effect(l(ce, this)), l(ye, this) && M.skip_effect(l(ye, this)), M.oncommit(() => {
|
|
1690
|
+
$(P, this, vt).call(this) || $(P, this, pi).call(this, e);
|
|
1691
|
+
})) : $(P, this, pi).call(this, e);
|
|
1711
1692
|
}
|
|
1712
1693
|
};
|
|
1713
|
-
function
|
|
1694
|
+
function Ls() {
|
|
1714
1695
|
try {
|
|
1715
|
-
|
|
1696
|
+
E(Ee, this, pe(() => l(an, this).call(this, l($e, this))));
|
|
1716
1697
|
} catch (e) {
|
|
1717
1698
|
this.error(e);
|
|
1718
1699
|
}
|
|
1719
1700
|
}
|
|
1720
|
-
function
|
|
1721
|
-
const t = l(Ce, this).failed, { reset: n, invoke_onerror: r } = $(
|
|
1722
|
-
|
|
1723
|
-
t(l(
|
|
1701
|
+
function Ns(e) {
|
|
1702
|
+
const t = l(Ce, this).failed, { reset: n, invoke_onerror: r } = $(P, this, Eo).call(this, e);
|
|
1703
|
+
et(r), t && E(ye, this, pe(() => {
|
|
1704
|
+
t(l($e, this), () => e, () => n);
|
|
1724
1705
|
}));
|
|
1725
1706
|
}
|
|
1726
|
-
function
|
|
1707
|
+
function Eo(e) {
|
|
1727
1708
|
var t = !1, n = !1;
|
|
1728
1709
|
const r = () => {
|
|
1729
|
-
if (!$(
|
|
1710
|
+
if (!$(P, this, vt).call(this)) {
|
|
1730
1711
|
if (t) {
|
|
1731
|
-
|
|
1712
|
+
xa();
|
|
1732
1713
|
return;
|
|
1733
1714
|
}
|
|
1734
|
-
t = !0, n &&
|
|
1735
|
-
|
|
1736
|
-
}), $(
|
|
1737
|
-
$(
|
|
1715
|
+
t = !0, n && Va(), l(ye, this) !== null && bt(l(ye, this), () => {
|
|
1716
|
+
E(ye, this, null);
|
|
1717
|
+
}), $(P, this, Yr).call(this, () => {
|
|
1718
|
+
$(P, this, To).call(this);
|
|
1738
1719
|
});
|
|
1739
1720
|
}
|
|
1740
1721
|
};
|
|
1741
1722
|
return {
|
|
1742
1723
|
reset: r,
|
|
1743
1724
|
invoke_onerror: () => {
|
|
1744
|
-
if (!$(
|
|
1725
|
+
if (!$(P, this, vt).call(this))
|
|
1745
1726
|
try {
|
|
1746
1727
|
n = !0, l(Ce, this).onerror?.(e, r), n = !1;
|
|
1747
1728
|
} catch (o) {
|
|
@@ -1750,17 +1731,17 @@ function Ao(e) {
|
|
|
1750
1731
|
}
|
|
1751
1732
|
};
|
|
1752
1733
|
}
|
|
1753
|
-
function
|
|
1754
|
-
return (l(ie, this).f & (
|
|
1734
|
+
function vt() {
|
|
1735
|
+
return (l(ie, this).f & (Oi | gr)) !== 0;
|
|
1755
1736
|
}
|
|
1756
|
-
function
|
|
1737
|
+
function Is() {
|
|
1757
1738
|
const e = l(Ce, this).pending;
|
|
1758
|
-
e && (this.is_pending = !0,
|
|
1759
|
-
if (!$(
|
|
1760
|
-
var t =
|
|
1761
|
-
if (t.append(n),
|
|
1739
|
+
e && (this.is_pending = !0, E(ce, this, pe(() => e(l($e, this)))), et(() => {
|
|
1740
|
+
if (!$(P, this, vt).call(this)) {
|
|
1741
|
+
var t = E(Qe, this, document.createDocumentFragment()), n = ue(), r = !1;
|
|
1742
|
+
if (t.append(n), E(Ee, this, $(P, this, Yr).call(this, () => {
|
|
1762
1743
|
try {
|
|
1763
|
-
return pe(() => l(
|
|
1744
|
+
return pe(() => l(an, this).call(this, n));
|
|
1764
1745
|
} catch (i) {
|
|
1765
1746
|
try {
|
|
1766
1747
|
this.error(i), r = !0;
|
|
@@ -1770,72 +1751,72 @@ function qs() {
|
|
|
1770
1751
|
return null;
|
|
1771
1752
|
}
|
|
1772
1753
|
})), l(Ee, this) === null) {
|
|
1773
|
-
|
|
1754
|
+
E(Qe, this, null), r && $(P, this, Vn).call(this, M);
|
|
1774
1755
|
return;
|
|
1775
1756
|
}
|
|
1776
|
-
l(
|
|
1777
|
-
|
|
1778
|
-
}), $(
|
|
1757
|
+
l(ht, this) === 0 && (l($e, this).before(t), E(Qe, this, null), bt(l(ce, this), () => {
|
|
1758
|
+
E(ce, this, null);
|
|
1759
|
+
}), $(P, this, Vn).call(this, M));
|
|
1779
1760
|
}
|
|
1780
1761
|
}));
|
|
1781
1762
|
}
|
|
1782
|
-
function
|
|
1763
|
+
function To() {
|
|
1783
1764
|
try {
|
|
1784
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
1785
|
-
l(
|
|
1786
|
-
})), l(
|
|
1787
|
-
var e =
|
|
1788
|
-
|
|
1765
|
+
if (this.is_pending = this.has_pending_snippet(), E(ht, this, 0), E(kt, this, 0), E(Ee, this, pe(() => {
|
|
1766
|
+
l(an, this).call(this, l($e, this));
|
|
1767
|
+
})), l(ht, this) > 0) {
|
|
1768
|
+
var e = E(Qe, this, document.createDocumentFragment());
|
|
1769
|
+
Gr(l(Ee, this), e);
|
|
1789
1770
|
const t = l(Ce, this).pending;
|
|
1790
|
-
|
|
1791
|
-
} else $(
|
|
1771
|
+
E(ce, this, pe(() => t(l($e, this))));
|
|
1772
|
+
} else $(P, this, Vn).call(this, M);
|
|
1792
1773
|
} catch (t) {
|
|
1793
1774
|
this.error(t);
|
|
1794
1775
|
}
|
|
1795
1776
|
}
|
|
1796
|
-
function
|
|
1797
|
-
this.is_pending = !1, e.
|
|
1777
|
+
function Vn(e) {
|
|
1778
|
+
this.is_pending = !1, e.transfer_reactions(l(Ar, this));
|
|
1798
1779
|
}
|
|
1799
|
-
function
|
|
1800
|
-
var t =
|
|
1801
|
-
Ne(l(ie, this)), ge(l(ie, this)),
|
|
1780
|
+
function Yr(e) {
|
|
1781
|
+
var t = T, n = x, r = B;
|
|
1782
|
+
Ne(l(ie, this)), ge(l(ie, this)), xt(l(ie, this).ctx);
|
|
1802
1783
|
try {
|
|
1803
1784
|
return gt.ensure(), e();
|
|
1804
1785
|
} finally {
|
|
1805
|
-
Ne(t), ge(n),
|
|
1786
|
+
Ne(t), ge(n), xt(r);
|
|
1806
1787
|
}
|
|
1807
1788
|
}
|
|
1808
|
-
function
|
|
1789
|
+
function So(e, t) {
|
|
1809
1790
|
if (!this.has_pending_snippet()) {
|
|
1810
1791
|
if (this.parent) {
|
|
1811
1792
|
var n;
|
|
1812
|
-
$(
|
|
1793
|
+
$(P, n = this.parent, So).call(n, e, t);
|
|
1813
1794
|
}
|
|
1814
1795
|
return;
|
|
1815
1796
|
}
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
}), l(
|
|
1797
|
+
E(ht, this, l(ht, this) + e), l(ht, this) === 0 && ($(P, this, Vn).call(this, t), l(ce, this) && bt(l(ce, this), () => {
|
|
1798
|
+
E(ce, this, null);
|
|
1799
|
+
}), l(Qe, this) && (l($e, this).before(l(Qe, this)), E(Qe, this, null)));
|
|
1819
1800
|
}
|
|
1820
|
-
function
|
|
1821
|
-
l(Ee, this) && (
|
|
1801
|
+
function pi(e) {
|
|
1802
|
+
l(Ee, this) && (te(l(Ee, this)), E(Ee, this, null)), l(ce, this) && (te(l(ce, this)), E(ce, this, null)), l(ye, this) && (te(l(ye, this)), E(ye, this, null)), A && (K(l(Sr, this)), Ma(), K(Ln()));
|
|
1822
1803
|
let t = l(Ce, this).failed;
|
|
1823
1804
|
const n = (r) => {
|
|
1824
|
-
if ($(
|
|
1825
|
-
const { reset: i, invoke_onerror: o } = $(
|
|
1826
|
-
o(), t && !$(
|
|
1805
|
+
if ($(P, this, vt).call(this)) return;
|
|
1806
|
+
const { reset: i, invoke_onerror: o } = $(P, this, Eo).call(this, r);
|
|
1807
|
+
o(), t && !$(P, this, vt).call(this) && E(ye, this, $(P, this, Yr).call(this, () => {
|
|
1827
1808
|
try {
|
|
1828
1809
|
return pe(() => {
|
|
1829
|
-
var
|
|
1830
|
-
|
|
1810
|
+
var s = T;
|
|
1811
|
+
s.b = this, s.f |= 128, t(l($e, this), () => r, () => i);
|
|
1831
1812
|
});
|
|
1832
|
-
} catch (
|
|
1833
|
-
return Le(
|
|
1813
|
+
} catch (s) {
|
|
1814
|
+
return Le(s, l(ie, this).parent), null;
|
|
1834
1815
|
}
|
|
1835
1816
|
}));
|
|
1836
1817
|
};
|
|
1837
|
-
|
|
1838
|
-
if (!$(
|
|
1818
|
+
et(() => {
|
|
1819
|
+
if (!$(P, this, vt).call(this)) {
|
|
1839
1820
|
var r;
|
|
1840
1821
|
try {
|
|
1841
1822
|
r = this.transform_error(e);
|
|
@@ -1847,390 +1828,390 @@ function mi(e) {
|
|
|
1847
1828
|
}
|
|
1848
1829
|
});
|
|
1849
1830
|
}
|
|
1850
|
-
var
|
|
1851
|
-
function
|
|
1831
|
+
var gi = !0;
|
|
1832
|
+
function $n(e, t) {
|
|
1852
1833
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1853
|
-
n !== (e[
|
|
1834
|
+
n !== (e[An] ?? (e[An] = e.nodeValue)) && (e[An] = n, e.nodeValue = `${n}`);
|
|
1854
1835
|
}
|
|
1855
|
-
function
|
|
1856
|
-
return
|
|
1836
|
+
function Ao(e, t) {
|
|
1837
|
+
return xo(e, t);
|
|
1857
1838
|
}
|
|
1858
|
-
function
|
|
1859
|
-
|
|
1860
|
-
const n = t.target, r =
|
|
1839
|
+
function Ps(e, t) {
|
|
1840
|
+
Er(), t.intro = t.intro ?? !1;
|
|
1841
|
+
const n = t.target, r = A, i = C;
|
|
1861
1842
|
try {
|
|
1862
|
-
for (var o = /* @__PURE__ */
|
|
1843
|
+
for (var o = /* @__PURE__ */ fe(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Te(o);
|
|
1863
1844
|
if (!o) throw Ve;
|
|
1864
|
-
|
|
1865
|
-
const
|
|
1845
|
+
je(!0), K(o);
|
|
1846
|
+
const s = xo(e, {
|
|
1866
1847
|
...t,
|
|
1867
1848
|
anchor: o
|
|
1868
1849
|
});
|
|
1869
|
-
return
|
|
1870
|
-
} catch (
|
|
1871
|
-
if (
|
|
1872
|
-
`).some((f) => f.startsWith("https://svelte.dev/e/"))) throw
|
|
1873
|
-
return
|
|
1850
|
+
return je(!1), s;
|
|
1851
|
+
} catch (s) {
|
|
1852
|
+
if (s instanceof Error && s.message.split(`
|
|
1853
|
+
`).some((f) => f.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1854
|
+
return s !== Ve && console.warn("Failed to hydrate: ", s), t.recover === !1 && qa(), Er(), ao(n), je(!1), Ao(e, t);
|
|
1874
1855
|
} finally {
|
|
1875
|
-
|
|
1856
|
+
je(r), K(i);
|
|
1876
1857
|
}
|
|
1877
1858
|
}
|
|
1878
|
-
var
|
|
1879
|
-
function
|
|
1880
|
-
|
|
1881
|
-
var
|
|
1882
|
-
var
|
|
1883
|
-
|
|
1859
|
+
var En = /* @__PURE__ */ new Map();
|
|
1860
|
+
function xo(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: f }) {
|
|
1861
|
+
Er();
|
|
1862
|
+
var u = void 0, _ = hs(() => {
|
|
1863
|
+
var p = n ?? t.appendChild(ue());
|
|
1864
|
+
Cs(p, { pending: () => {
|
|
1884
1865
|
} }, (h) => {
|
|
1885
|
-
|
|
1886
|
-
var b =
|
|
1887
|
-
if (o && (b.c = o), i && (r.$$events = i),
|
|
1888
|
-
throw
|
|
1889
|
-
|
|
1866
|
+
qi({});
|
|
1867
|
+
var b = B;
|
|
1868
|
+
if (o && (b.c = o), i && (r.$$events = i), A && He(h, null), gi = s, u = e(h, r) || Pr(), gi = !0, A && (T.nodes.end = C, C === null || C.nodeType !== 8 || C.data !== "]"))
|
|
1869
|
+
throw ln(), Ve;
|
|
1870
|
+
Di();
|
|
1890
1871
|
}, f);
|
|
1891
|
-
var
|
|
1872
|
+
var d = /* @__PURE__ */ new Set(), c = (h) => {
|
|
1892
1873
|
for (var b = 0; b < h.length; b++) {
|
|
1893
|
-
var
|
|
1894
|
-
if (!
|
|
1895
|
-
|
|
1896
|
-
var g =
|
|
1897
|
-
for (const
|
|
1898
|
-
var
|
|
1899
|
-
|
|
1900
|
-
var
|
|
1901
|
-
|
|
1874
|
+
var y = h[b];
|
|
1875
|
+
if (!d.has(y)) {
|
|
1876
|
+
d.add(y);
|
|
1877
|
+
var g = As(y);
|
|
1878
|
+
for (const H of [t, document]) {
|
|
1879
|
+
var m = En.get(H);
|
|
1880
|
+
m === void 0 && (m = /* @__PURE__ */ new Map(), En.set(H, m));
|
|
1881
|
+
var L = m.get(y);
|
|
1882
|
+
L === void 0 ? (H.addEventListener(y, vi, { passive: g }), m.set(y, 1)) : m.set(y, L + 1);
|
|
1902
1883
|
}
|
|
1903
1884
|
}
|
|
1904
1885
|
}
|
|
1905
1886
|
};
|
|
1906
|
-
return
|
|
1907
|
-
for (var h of
|
|
1908
|
-
var b =
|
|
1909
|
-
--
|
|
1887
|
+
return c(Bn($o)), Tr.add(c), () => {
|
|
1888
|
+
for (var h of d) for (const g of [t, document]) {
|
|
1889
|
+
var b = En.get(g), y = b.get(h);
|
|
1890
|
+
--y == 0 ? (g.removeEventListener(h, vi), b.delete(h), b.size === 0 && En.delete(g)) : b.set(h, y);
|
|
1910
1891
|
}
|
|
1911
|
-
|
|
1892
|
+
Tr.delete(c), p !== n && p.parentNode?.removeChild(p);
|
|
1912
1893
|
};
|
|
1913
1894
|
});
|
|
1914
|
-
return
|
|
1895
|
+
return xr.set(u, _), u;
|
|
1915
1896
|
}
|
|
1916
|
-
var
|
|
1917
|
-
function
|
|
1918
|
-
const n =
|
|
1919
|
-
return n ? (
|
|
1897
|
+
var xr = /* @__PURE__ */ new WeakMap();
|
|
1898
|
+
function qs(e, t) {
|
|
1899
|
+
const n = xr.get(e);
|
|
1900
|
+
return n ? (xr.delete(e), n(t)) : Promise.resolve();
|
|
1920
1901
|
}
|
|
1921
|
-
var
|
|
1902
|
+
var De = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ds = class {
|
|
1922
1903
|
constructor(e, t = !0) {
|
|
1923
|
-
|
|
1924
|
-
if (l(
|
|
1925
|
-
var r = l(
|
|
1904
|
+
N(this, "anchor", void 0), S(this, De, /* @__PURE__ */ new Map()), S(this, Ke, /* @__PURE__ */ new Map()), S(this, we, /* @__PURE__ */ new Map()), S(this, jt, /* @__PURE__ */ new Set()), S(this, ur, !0), S(this, cr, (n) => {
|
|
1905
|
+
if (l(De, this).has(n)) {
|
|
1906
|
+
var r = l(De, this).get(n), i = l(Ke, this).get(r);
|
|
1926
1907
|
if (i)
|
|
1927
|
-
|
|
1908
|
+
Hn(i), l(jt, this).delete(r);
|
|
1928
1909
|
else {
|
|
1929
1910
|
var o = l(we, this).get(r);
|
|
1930
|
-
o && (
|
|
1911
|
+
o && (Hn(o.effect), l(Ke, this).set(r, o.effect), l(we, this).delete(r), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
1931
1912
|
}
|
|
1932
|
-
for (const [
|
|
1933
|
-
if (l(
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1913
|
+
for (const [s, f] of l(De, this)) {
|
|
1914
|
+
if (l(De, this).delete(s), s === n) break;
|
|
1915
|
+
const u = l(we, this).get(f);
|
|
1916
|
+
u && (te(u.effect), l(we, this).delete(f));
|
|
1936
1917
|
}
|
|
1937
|
-
for (const [
|
|
1938
|
-
if (
|
|
1939
|
-
const
|
|
1940
|
-
if (Array.from(l(
|
|
1941
|
-
var
|
|
1942
|
-
|
|
1918
|
+
for (const [s, f] of l(Ke, this)) {
|
|
1919
|
+
if (s === r || l(jt, this).has(s)) continue;
|
|
1920
|
+
const u = () => {
|
|
1921
|
+
if (Array.from(l(De, this).values()).includes(s)) {
|
|
1922
|
+
var _ = document.createDocumentFragment();
|
|
1923
|
+
Gr(f, _), _.append(ue()), l(we, this).set(s, {
|
|
1943
1924
|
effect: f,
|
|
1944
|
-
fragment:
|
|
1925
|
+
fragment: _
|
|
1945
1926
|
});
|
|
1946
|
-
} else
|
|
1947
|
-
l(
|
|
1927
|
+
} else te(f);
|
|
1928
|
+
l(jt, this).delete(s), l(Ke, this).delete(s);
|
|
1948
1929
|
};
|
|
1949
|
-
l(
|
|
1930
|
+
l(ur, this) || !i ? (l(jt, this).add(s), bt(f, u, !1)) : u();
|
|
1950
1931
|
}
|
|
1951
1932
|
}
|
|
1952
|
-
}),
|
|
1953
|
-
l(
|
|
1954
|
-
const r = Array.from(l(
|
|
1955
|
-
for (const [i, o] of l(we, this)) r.includes(i) || (
|
|
1956
|
-
}), this.anchor = e,
|
|
1933
|
+
}), S(this, bi, (n) => {
|
|
1934
|
+
l(De, this).delete(n);
|
|
1935
|
+
const r = Array.from(l(De, this).values());
|
|
1936
|
+
for (const [i, o] of l(we, this)) r.includes(i) || (te(o.effect), l(we, this).delete(i));
|
|
1937
|
+
}), this.anchor = e, E(ur, this, t);
|
|
1957
1938
|
}
|
|
1958
1939
|
ensure(e, t) {
|
|
1959
|
-
var n =
|
|
1960
|
-
if (t && !l(
|
|
1940
|
+
var n = M, r = so();
|
|
1941
|
+
if (t && !l(Ke, this).has(e) && !l(we, this).has(e))
|
|
1961
1942
|
if (r) {
|
|
1962
|
-
var i = document.createDocumentFragment(), o =
|
|
1943
|
+
var i = document.createDocumentFragment(), o = ue();
|
|
1963
1944
|
i.append(o), l(we, this).set(e, {
|
|
1964
1945
|
effect: pe(() => t(o)),
|
|
1965
1946
|
fragment: i
|
|
1966
1947
|
});
|
|
1967
|
-
} else l(
|
|
1968
|
-
if (l(
|
|
1969
|
-
for (const [
|
|
1970
|
-
for (const [
|
|
1971
|
-
n.oncommit(l(
|
|
1948
|
+
} else l(Ke, this).set(e, pe(() => t(this.anchor)));
|
|
1949
|
+
if (l(De, this).set(n, e), r) {
|
|
1950
|
+
for (const [s, f] of l(Ke, this)) s === e ? n.unskip_effect(f) : n.skip_effect(f);
|
|
1951
|
+
for (const [s, f] of l(we, this)) s === e ? n.unskip_effect(f.effect) : n.skip_effect(f.effect);
|
|
1952
|
+
n.oncommit(l(cr, this)), n.ondiscard(l(bi, this));
|
|
1972
1953
|
} else
|
|
1973
|
-
|
|
1954
|
+
A && (this.anchor = C), l(cr, this).call(this, n);
|
|
1974
1955
|
}
|
|
1975
1956
|
};
|
|
1976
|
-
function
|
|
1957
|
+
function it(e, t, n = !1) {
|
|
1977
1958
|
var r;
|
|
1978
|
-
|
|
1979
|
-
var i = new
|
|
1980
|
-
function
|
|
1981
|
-
if (
|
|
1982
|
-
var
|
|
1983
|
-
if (f !== parseInt(
|
|
1984
|
-
var
|
|
1985
|
-
|
|
1959
|
+
A && (r = C, At());
|
|
1960
|
+
var i = new Ds(e), o = n ? Nr : 0;
|
|
1961
|
+
function s(f, u) {
|
|
1962
|
+
if (A) {
|
|
1963
|
+
var _ = Ir(r);
|
|
1964
|
+
if (f !== parseInt(_.substring(1))) {
|
|
1965
|
+
var p = Ln();
|
|
1966
|
+
K(p), i.anchor = p, je(!1), i.ensure(f, u), je(!0);
|
|
1986
1967
|
return;
|
|
1987
1968
|
}
|
|
1988
1969
|
}
|
|
1989
|
-
i.ensure(f,
|
|
1970
|
+
i.ensure(f, u);
|
|
1990
1971
|
}
|
|
1991
|
-
|
|
1972
|
+
zr(() => {
|
|
1992
1973
|
var f = !1;
|
|
1993
|
-
t((
|
|
1994
|
-
f = !0,
|
|
1995
|
-
}), f ||
|
|
1974
|
+
t((u, _ = 0) => {
|
|
1975
|
+
f = !0, s(_, u);
|
|
1976
|
+
}), f || s(-1, null);
|
|
1996
1977
|
}, o);
|
|
1997
1978
|
}
|
|
1998
|
-
function
|
|
1979
|
+
function Ws(e, t) {
|
|
1999
1980
|
return t;
|
|
2000
1981
|
}
|
|
2001
|
-
function
|
|
2002
|
-
for (var r = [], i = t.length, o,
|
|
2003
|
-
let
|
|
2004
|
-
bt(
|
|
1982
|
+
function js(e, t, n) {
|
|
1983
|
+
for (var r = [], i = t.length, o, s = t.length, f = 0; f < i; f++) {
|
|
1984
|
+
let d = t[f];
|
|
1985
|
+
bt(d, () => {
|
|
2005
1986
|
if (o) {
|
|
2006
|
-
if (o.pending.delete(
|
|
2007
|
-
var
|
|
2008
|
-
|
|
1987
|
+
if (o.pending.delete(d), o.done.add(d), o.pending.size === 0) {
|
|
1988
|
+
var c = e.outrogroups;
|
|
1989
|
+
Mr(e, Bn(o.done)), c.delete(o), c.size === 0 && (e.outrogroups = null);
|
|
2009
1990
|
}
|
|
2010
|
-
} else
|
|
1991
|
+
} else s -= 1;
|
|
2011
1992
|
}, !1);
|
|
2012
1993
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
var
|
|
2015
|
-
if (
|
|
2016
|
-
var
|
|
2017
|
-
|
|
1994
|
+
if (s === 0) {
|
|
1995
|
+
var u = r.length === 0 && n !== null && e.pending.size === 0;
|
|
1996
|
+
if (u) {
|
|
1997
|
+
var _ = n, p = _.parentNode;
|
|
1998
|
+
ao(p), p.append(_), e.items.clear();
|
|
2018
1999
|
}
|
|
2019
|
-
|
|
2000
|
+
Mr(e, t, !u);
|
|
2020
2001
|
} else
|
|
2021
2002
|
o = {
|
|
2022
2003
|
pending: new Set(t),
|
|
2023
2004
|
done: /* @__PURE__ */ new Set()
|
|
2024
2005
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(o);
|
|
2025
2006
|
}
|
|
2026
|
-
function
|
|
2007
|
+
function Mr(e, t, n = !0) {
|
|
2027
2008
|
var r;
|
|
2028
2009
|
if (e.pending.size > 0) {
|
|
2029
2010
|
r = /* @__PURE__ */ new Set();
|
|
2030
|
-
for (const
|
|
2011
|
+
for (const s of e.pending.values()) for (const f of s) r.add(e.items.get(f).e);
|
|
2031
2012
|
}
|
|
2032
2013
|
for (var i = 0; i < t.length; i++) {
|
|
2033
2014
|
var o = t[i];
|
|
2034
2015
|
if (r?.has(o)) {
|
|
2035
|
-
o.f |=
|
|
2036
|
-
const
|
|
2037
|
-
|
|
2038
|
-
} else
|
|
2016
|
+
o.f |= Yt;
|
|
2017
|
+
const s = document.createDocumentFragment();
|
|
2018
|
+
Gr(o, s);
|
|
2019
|
+
} else te(t[i], n);
|
|
2039
2020
|
}
|
|
2040
2021
|
}
|
|
2041
|
-
var
|
|
2042
|
-
function
|
|
2043
|
-
var
|
|
2022
|
+
var Tn;
|
|
2023
|
+
function wi(e, t, n, r, i, o = null) {
|
|
2024
|
+
var s = e, f = /* @__PURE__ */ new Map();
|
|
2044
2025
|
if ((t & 4) !== 0) {
|
|
2045
|
-
var
|
|
2046
|
-
|
|
2026
|
+
var u = e;
|
|
2027
|
+
s = A ? K(/* @__PURE__ */ fe(u)) : u.appendChild(ue());
|
|
2047
2028
|
}
|
|
2048
|
-
|
|
2049
|
-
var
|
|
2029
|
+
A && At();
|
|
2030
|
+
var _ = null, p = /* @__PURE__ */ Dr(() => {
|
|
2050
2031
|
var g = n();
|
|
2051
|
-
return
|
|
2052
|
-
}),
|
|
2032
|
+
return Mi(g) ? g : g == null ? [] : Bn(g);
|
|
2033
|
+
}), d = /* @__PURE__ */ new Map(), c = !0;
|
|
2053
2034
|
function h(g) {
|
|
2054
|
-
if ((
|
|
2055
|
-
|
|
2056
|
-
var
|
|
2057
|
-
|
|
2058
|
-
|
|
2035
|
+
if ((y.effect.f & 16384) === 0) {
|
|
2036
|
+
y.pending.delete(g);
|
|
2037
|
+
var m = a(p);
|
|
2038
|
+
y.fallback = _, Hs(y, m, s, t, r), _ !== null && (m.length === 0 ? (_.f & 33554432) === 0 ? Hn(_) : (_.f ^= Yt, Gt(_, null, s)) : bt(_, () => {
|
|
2039
|
+
_ = null;
|
|
2059
2040
|
}));
|
|
2060
2041
|
}
|
|
2061
2042
|
}
|
|
2062
2043
|
function b(g) {
|
|
2063
|
-
|
|
2064
|
-
}
|
|
2065
|
-
var
|
|
2066
|
-
effect:
|
|
2067
|
-
var g =
|
|
2068
|
-
let
|
|
2069
|
-
|
|
2070
|
-
for (var
|
|
2071
|
-
|
|
2072
|
-
var
|
|
2044
|
+
y.pending.delete(g);
|
|
2045
|
+
}
|
|
2046
|
+
var y = {
|
|
2047
|
+
effect: zr(() => {
|
|
2048
|
+
var g = a(p), m = g.length;
|
|
2049
|
+
let L = !1;
|
|
2050
|
+
A && Ir(s) === "[!" != (m === 0) && (s = Ln(), K(s), je(!1), L = !0);
|
|
2051
|
+
for (var H = /* @__PURE__ */ new Set(), w = M, D = so(), W = 0; W < m; W += 1) {
|
|
2052
|
+
A && C.nodeType === 8 && C.data === "]" && (s = C, L = !0, je(!1));
|
|
2053
|
+
var ne = g[W], J = r(ne, W);
|
|
2073
2054
|
if (0)
|
|
2074
|
-
var
|
|
2075
|
-
var
|
|
2076
|
-
|
|
2055
|
+
var qe;
|
|
2056
|
+
var V = c ? null : f.get(J);
|
|
2057
|
+
V ? (V.v && Mt(V.v, ne), V.i && Mt(V.i, W), D && w.unskip_effect(V.e)) : (V = Vs(f, c ? s : Tn ?? (Tn = ue()), ne, J, W, i, t, n), c || (V.e.f |= Yt), f.set(J, V)), H.add(J);
|
|
2077
2058
|
}
|
|
2078
|
-
if (
|
|
2079
|
-
if (
|
|
2080
|
-
for (const [ze,
|
|
2081
|
-
|
|
2082
|
-
} else h(
|
|
2083
|
-
|
|
2059
|
+
if (m === 0 && o && !_ && (c ? _ = pe(() => o(s)) : (_ = pe(() => o(Tn ?? (Tn = ue()))), _.f |= Yt)), m > H.size && Oa("", "", ""), A && m > 0 && K(Ln()), !c)
|
|
2060
|
+
if (d.set(w, H), D) {
|
|
2061
|
+
for (const [ze, Ue] of f) H.has(ze) || w.skip_effect(Ue.e);
|
|
2062
|
+
w.oncommit(h), w.ondiscard(b);
|
|
2063
|
+
} else h(w);
|
|
2064
|
+
L && je(!0), a(p);
|
|
2084
2065
|
}),
|
|
2085
2066
|
flags: t,
|
|
2086
2067
|
items: f,
|
|
2087
|
-
pending:
|
|
2068
|
+
pending: d,
|
|
2088
2069
|
outrogroups: null,
|
|
2089
|
-
fallback:
|
|
2070
|
+
fallback: _
|
|
2090
2071
|
};
|
|
2091
|
-
|
|
2072
|
+
c = !1, A && (s = C);
|
|
2092
2073
|
}
|
|
2093
|
-
function
|
|
2074
|
+
function Ht(e) {
|
|
2094
2075
|
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
2095
2076
|
return e;
|
|
2096
2077
|
}
|
|
2097
|
-
function
|
|
2098
|
-
var o = (r & 8) !== 0,
|
|
2099
|
-
if (o) for (
|
|
2100
|
-
b = t[
|
|
2101
|
-
for (
|
|
2102
|
-
if (b = t[
|
|
2103
|
-
|
|
2104
|
-
if ((g.f & 8192) !== 0 && (
|
|
2105
|
-
if (g.f ^=
|
|
2078
|
+
function Hs(e, t, n, r, i) {
|
|
2079
|
+
var o = (r & 8) !== 0, s = t.length, f = e.items, u = Ht(e.effect.first), _, p = null, d, c = [], h = [], b, y, g, m;
|
|
2080
|
+
if (o) for (m = 0; m < s; m += 1)
|
|
2081
|
+
b = t[m], y = i(b, m), g = f.get(y).e, (g.f & 33554432) === 0 && (g.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(g));
|
|
2082
|
+
for (m = 0; m < s; m += 1) {
|
|
2083
|
+
if (b = t[m], y = i(b, m), g = f.get(y).e, e.outrogroups !== null) for (const V of e.outrogroups)
|
|
2084
|
+
V.pending.delete(g), V.done.delete(g);
|
|
2085
|
+
if ((g.f & 8192) !== 0 && (Hn(g), o && (g.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(g))), (g.f & 33554432) !== 0)
|
|
2086
|
+
if (g.f ^= Yt, g === u) Gt(g, null, n);
|
|
2106
2087
|
else {
|
|
2107
|
-
var
|
|
2108
|
-
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev),
|
|
2088
|
+
var L = p ? p.next : u;
|
|
2089
|
+
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Xe(e, p, g), Xe(e, g, L), Gt(g, L, n), p = g, c = [], h = [], u = Ht(p.next);
|
|
2109
2090
|
continue;
|
|
2110
2091
|
}
|
|
2111
|
-
if (g !==
|
|
2112
|
-
if (
|
|
2113
|
-
if (
|
|
2114
|
-
var
|
|
2115
|
-
|
|
2116
|
-
var
|
|
2117
|
-
for (
|
|
2118
|
-
for (
|
|
2119
|
-
|
|
2092
|
+
if (g !== u) {
|
|
2093
|
+
if (_ !== void 0 && _.has(g)) {
|
|
2094
|
+
if (c.length < h.length) {
|
|
2095
|
+
var H = h[0], w;
|
|
2096
|
+
p = H.prev;
|
|
2097
|
+
var D = c[0], W = c[c.length - 1];
|
|
2098
|
+
for (w = 0; w < c.length; w += 1) Gt(c[w], H, n);
|
|
2099
|
+
for (w = 0; w < h.length; w += 1) _.delete(h[w]);
|
|
2100
|
+
Xe(e, D.prev, W.next), Xe(e, p, D), Xe(e, W, H), u = H, p = W, m -= 1, c = [], h = [];
|
|
2120
2101
|
} else
|
|
2121
|
-
|
|
2102
|
+
_.delete(g), Gt(g, u, n), Xe(e, g.prev, g.next), Xe(e, g, p === null ? e.effect.first : p.next), Xe(e, p, g), p = g;
|
|
2122
2103
|
continue;
|
|
2123
2104
|
}
|
|
2124
|
-
for (
|
|
2125
|
-
(
|
|
2126
|
-
if (
|
|
2105
|
+
for (c = [], h = []; u !== null && u !== g; )
|
|
2106
|
+
(_ ?? (_ = /* @__PURE__ */ new Set())).add(u), h.push(u), u = Ht(u.next);
|
|
2107
|
+
if (u === null) continue;
|
|
2127
2108
|
}
|
|
2128
|
-
(g.f & 33554432) === 0 &&
|
|
2109
|
+
(g.f & 33554432) === 0 && c.push(g), p = g, u = Ht(g.next);
|
|
2129
2110
|
}
|
|
2130
2111
|
if (e.outrogroups !== null) {
|
|
2131
|
-
for (const
|
|
2112
|
+
for (const V of e.outrogroups) V.pending.size === 0 && (Mr(e, Bn(V.done)), e.outrogroups?.delete(V));
|
|
2132
2113
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2133
2114
|
}
|
|
2134
|
-
if (
|
|
2135
|
-
var
|
|
2136
|
-
if (
|
|
2137
|
-
for (g of
|
|
2138
|
-
for (;
|
|
2139
|
-
(
|
|
2140
|
-
var
|
|
2141
|
-
if (
|
|
2142
|
-
var
|
|
2115
|
+
if (u !== null || _ !== void 0) {
|
|
2116
|
+
var ne = [];
|
|
2117
|
+
if (_ !== void 0)
|
|
2118
|
+
for (g of _) (g.f & 8192) === 0 && ne.push(g);
|
|
2119
|
+
for (; u !== null; )
|
|
2120
|
+
(u.f & 8192) === 0 && u !== e.fallback && ne.push(u), u = Ht(u.next);
|
|
2121
|
+
var J = ne.length;
|
|
2122
|
+
if (J > 0) {
|
|
2123
|
+
var qe = (r & 4) !== 0 && s === 0 ? n : null;
|
|
2143
2124
|
if (o) {
|
|
2144
|
-
for (
|
|
2145
|
-
for (
|
|
2125
|
+
for (m = 0; m < J; m += 1) ne[m].nodes?.a?.measure();
|
|
2126
|
+
for (m = 0; m < J; m += 1) ne[m].nodes?.a?.fix();
|
|
2146
2127
|
}
|
|
2147
|
-
|
|
2128
|
+
js(e, ne, qe);
|
|
2148
2129
|
}
|
|
2149
2130
|
}
|
|
2150
|
-
o &&
|
|
2151
|
-
if (
|
|
2152
|
-
for (g of
|
|
2131
|
+
o && et(() => {
|
|
2132
|
+
if (d !== void 0)
|
|
2133
|
+
for (g of d) g.nodes?.a?.apply();
|
|
2153
2134
|
});
|
|
2154
2135
|
}
|
|
2155
|
-
function
|
|
2156
|
-
var
|
|
2136
|
+
function Vs(e, t, n, r, i, o, s, f) {
|
|
2137
|
+
var u = (s & 1) !== 0 ? (s & 16) === 0 ? /* @__PURE__ */ to(n, !1, !1) : pt(n) : null, _ = (s & 2) !== 0 ? pt(i) : null;
|
|
2157
2138
|
return {
|
|
2158
|
-
v:
|
|
2159
|
-
i:
|
|
2160
|
-
e: pe(() => (o(t,
|
|
2139
|
+
v: u,
|
|
2140
|
+
i: _,
|
|
2141
|
+
e: pe(() => (o(t, u ?? n, _ ?? i, f), () => {
|
|
2161
2142
|
e.delete(r);
|
|
2162
2143
|
}))
|
|
2163
2144
|
};
|
|
2164
2145
|
}
|
|
2165
|
-
function
|
|
2146
|
+
function Gt(e, t, n) {
|
|
2166
2147
|
if (e.nodes)
|
|
2167
2148
|
for (var r = e.nodes.start, i = e.nodes.end, o = t && (t.f & 33554432) === 0 ? t.nodes.start : n; r !== null; ) {
|
|
2168
|
-
var
|
|
2149
|
+
var s = /* @__PURE__ */ Te(r);
|
|
2169
2150
|
if (o.before(r), r === i) return;
|
|
2170
|
-
r =
|
|
2151
|
+
r = s;
|
|
2171
2152
|
}
|
|
2172
2153
|
}
|
|
2173
|
-
function
|
|
2154
|
+
function Xe(e, t, n) {
|
|
2174
2155
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2175
2156
|
}
|
|
2176
|
-
function
|
|
2177
|
-
var
|
|
2157
|
+
function Fs(e, t, n = !1, r = !1, i = !1, o = !1) {
|
|
2158
|
+
var s = e, f = "";
|
|
2178
2159
|
if (n) {
|
|
2179
|
-
var
|
|
2180
|
-
|
|
2160
|
+
var u = e;
|
|
2161
|
+
A && (s = K(/* @__PURE__ */ fe(u)));
|
|
2181
2162
|
}
|
|
2182
2163
|
We(() => {
|
|
2183
|
-
var
|
|
2164
|
+
var _ = T;
|
|
2184
2165
|
if (f === (f = t() ?? "")) {
|
|
2185
|
-
|
|
2166
|
+
A && At();
|
|
2186
2167
|
return;
|
|
2187
2168
|
}
|
|
2188
|
-
if (n && !
|
|
2189
|
-
|
|
2169
|
+
if (n && !A) {
|
|
2170
|
+
_.nodes = null, u.innerHTML = f, f !== "" && He(/* @__PURE__ */ fe(u), u.lastChild);
|
|
2190
2171
|
return;
|
|
2191
2172
|
}
|
|
2192
|
-
if (
|
|
2193
|
-
if (
|
|
2194
|
-
for (var
|
|
2195
|
-
|
|
2196
|
-
if (
|
|
2197
|
-
throw
|
|
2198
|
-
He(C,
|
|
2173
|
+
if (_.nodes !== null && (co(_.nodes.start, _.nodes.end), _.nodes = null), f !== "") {
|
|
2174
|
+
if (A) {
|
|
2175
|
+
for (var p = C.data, d = At(), c = d; d !== null && (d.nodeType !== 8 || d.data !== ""); )
|
|
2176
|
+
c = d, d = /* @__PURE__ */ Te(d);
|
|
2177
|
+
if (d === null)
|
|
2178
|
+
throw ln(), Ve;
|
|
2179
|
+
He(C, c), s = K(d);
|
|
2199
2180
|
return;
|
|
2200
2181
|
}
|
|
2201
|
-
var h =
|
|
2182
|
+
var h = Gn(r ? "svg" : i ? "math" : "template", r ? da : i ? ha : void 0);
|
|
2202
2183
|
h.innerHTML = f;
|
|
2203
2184
|
var b = r || i ? h : h.content;
|
|
2204
|
-
if (He(/* @__PURE__ */
|
|
2205
|
-
else
|
|
2185
|
+
if (He(/* @__PURE__ */ fe(b), b.lastChild), r || i) for (; /* @__PURE__ */ fe(b); ) s.before(/* @__PURE__ */ fe(b));
|
|
2186
|
+
else s.before(b);
|
|
2206
2187
|
}
|
|
2207
2188
|
});
|
|
2208
2189
|
}
|
|
2209
|
-
function
|
|
2210
|
-
|
|
2211
|
-
e =
|
|
2190
|
+
function Bs(e, t) {
|
|
2191
|
+
fo(() => {
|
|
2192
|
+
e = T?.parent?.nodes?.start ?? e;
|
|
2212
2193
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
2213
2194
|
if (!r.querySelector("#" + t.hash)) {
|
|
2214
|
-
const i =
|
|
2195
|
+
const i = Gn("style");
|
|
2215
2196
|
i.id = t.hash, i.textContent = t.code, r.appendChild(i);
|
|
2216
2197
|
}
|
|
2217
2198
|
});
|
|
2218
2199
|
}
|
|
2219
|
-
var
|
|
2200
|
+
var mi = [...`
|
|
2220
2201
|
\r\f \v\uFEFF`];
|
|
2221
|
-
function
|
|
2202
|
+
function zs(e, t, n) {
|
|
2222
2203
|
var r = e == null ? "" : "" + e;
|
|
2223
2204
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
2224
2205
|
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
2225
2206
|
else if (r.length)
|
|
2226
|
-
for (var o = i.length,
|
|
2227
|
-
var f =
|
|
2228
|
-
(
|
|
2207
|
+
for (var o = i.length, s = 0; (s = r.indexOf(i, s)) >= 0; ) {
|
|
2208
|
+
var f = s + o;
|
|
2209
|
+
(s === 0 || mi.includes(r[s - 1])) && (f === r.length || mi.includes(r[f])) ? r = (s === 0 ? "" : r.substring(0, s)) + r.substring(f + 1) : s = f;
|
|
2229
2210
|
}
|
|
2230
2211
|
}
|
|
2231
2212
|
return r === "" ? null : r;
|
|
2232
2213
|
}
|
|
2233
|
-
function
|
|
2214
|
+
function yi(e, t = !1) {
|
|
2234
2215
|
var n = t ? " !important;" : ";", r = "";
|
|
2235
2216
|
for (var i of Object.keys(e)) {
|
|
2236
2217
|
var o = e[i];
|
|
@@ -2238,205 +2219,206 @@ function Ei(e, t = !1) {
|
|
|
2238
2219
|
}
|
|
2239
2220
|
return r;
|
|
2240
2221
|
}
|
|
2241
|
-
function
|
|
2222
|
+
function dr(e) {
|
|
2242
2223
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2243
2224
|
}
|
|
2244
|
-
function
|
|
2225
|
+
function Us(e, t) {
|
|
2245
2226
|
if (t) {
|
|
2246
2227
|
var n = "", r, i;
|
|
2247
2228
|
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
2248
2229
|
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
2249
|
-
var o = !1,
|
|
2250
|
-
r &&
|
|
2251
|
-
var
|
|
2252
|
-
const
|
|
2253
|
-
for (var
|
|
2254
|
-
var
|
|
2255
|
-
if (f ?
|
|
2256
|
-
if (
|
|
2257
|
-
else if (
|
|
2258
|
-
if (
|
|
2259
|
-
var h =
|
|
2260
|
-
if (!
|
|
2261
|
-
|
|
2262
|
-
var b = e.substring(
|
|
2230
|
+
var o = !1, s = 0, f = !1, u = [];
|
|
2231
|
+
r && u.push(...Object.keys(r).map(dr)), i && u.push(...Object.keys(i).map(dr));
|
|
2232
|
+
var _ = 0, p = -1;
|
|
2233
|
+
const y = e.length;
|
|
2234
|
+
for (var d = 0; d < y; d++) {
|
|
2235
|
+
var c = e[d];
|
|
2236
|
+
if (f ? c === "/" && e[d - 1] === "*" && (f = !1) : o ? o === c && (o = !1) : c === "/" && e[d + 1] === "*" ? f = !0 : c === '"' || c === "'" ? o = c : c === "(" ? s++ : c === ")" && s--, !f && o === !1 && s === 0) {
|
|
2237
|
+
if (c === ":" && p === -1) p = d;
|
|
2238
|
+
else if (c === ";" || d === y - 1) {
|
|
2239
|
+
if (p !== -1) {
|
|
2240
|
+
var h = dr(e.substring(_, p).trim());
|
|
2241
|
+
if (!u.includes(h)) {
|
|
2242
|
+
c !== ";" && d++;
|
|
2243
|
+
var b = e.substring(_, d).trim();
|
|
2263
2244
|
n += " " + b + ";";
|
|
2264
2245
|
}
|
|
2265
2246
|
}
|
|
2266
|
-
|
|
2247
|
+
_ = d + 1, p = -1;
|
|
2267
2248
|
}
|
|
2268
2249
|
}
|
|
2269
2250
|
}
|
|
2270
2251
|
}
|
|
2271
|
-
return r && (n +=
|
|
2252
|
+
return r && (n += yi(r)), i && (n += yi(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
2272
2253
|
}
|
|
2273
2254
|
return e == null ? null : String(e);
|
|
2274
2255
|
}
|
|
2275
|
-
function
|
|
2276
|
-
var
|
|
2277
|
-
if (
|
|
2278
|
-
var f =
|
|
2279
|
-
(!
|
|
2280
|
-
} else if (o && i !== o) for (var
|
|
2281
|
-
var
|
|
2282
|
-
(i == null ||
|
|
2256
|
+
function Gs(e, t, n, r, i, o) {
|
|
2257
|
+
var s = e[wr];
|
|
2258
|
+
if (A || s !== n || s === void 0) {
|
|
2259
|
+
var f = zs(n, r, o);
|
|
2260
|
+
(!A || f !== e.getAttribute("class")) && (f == null ? e.removeAttribute("class") : t ? e.className = f : e.setAttribute("class", f)), e[wr] = n;
|
|
2261
|
+
} else if (o && i !== o) for (var u in o) {
|
|
2262
|
+
var _ = !!o[u];
|
|
2263
|
+
(i == null || _ !== !!i[u]) && e.classList.toggle(u, _);
|
|
2283
2264
|
}
|
|
2284
2265
|
return o;
|
|
2285
2266
|
}
|
|
2286
|
-
function
|
|
2267
|
+
function hr(e, t = {}, n, r) {
|
|
2287
2268
|
for (var i in n) {
|
|
2288
2269
|
var o = n[i];
|
|
2289
2270
|
t[i] !== o && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, r));
|
|
2290
2271
|
}
|
|
2291
2272
|
}
|
|
2292
|
-
function
|
|
2293
|
-
var i = e[
|
|
2294
|
-
if (
|
|
2295
|
-
var o =
|
|
2296
|
-
(!
|
|
2297
|
-
} else r && (Array.isArray(r) ? (
|
|
2273
|
+
function ki(e, t, n, r) {
|
|
2274
|
+
var i = e[mr];
|
|
2275
|
+
if (A || i !== t) {
|
|
2276
|
+
var o = Us(t, r);
|
|
2277
|
+
(!A || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[mr] = t;
|
|
2278
|
+
} else r && (Array.isArray(r) ? (hr(e, n?.[0], r[0]), hr(e, n?.[1], r[1], "important")) : hr(e, n, r));
|
|
2298
2279
|
return r;
|
|
2299
2280
|
}
|
|
2300
|
-
var
|
|
2301
|
-
function
|
|
2302
|
-
var i =
|
|
2303
|
-
if (
|
|
2281
|
+
var Ys = /* @__PURE__ */ Symbol("is custom element"), Ks = /* @__PURE__ */ Symbol("is html"), Xs = Sa ? "link" : "LINK";
|
|
2282
|
+
function G(e, t, n, r) {
|
|
2283
|
+
var i = Zs(e);
|
|
2284
|
+
if (A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Xs)) {
|
|
2304
2285
|
r || void 0;
|
|
2305
2286
|
return;
|
|
2306
2287
|
}
|
|
2307
|
-
|
|
2288
|
+
var o = i[t];
|
|
2289
|
+
o !== (i[t] = n) && (t === "loading" && (e[Ea] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Js(e).has(t) ? e[t] = n : A && (typeof n == "number" || typeof n == "boolean") && o === String(n) || e.setAttribute(t, n));
|
|
2308
2290
|
}
|
|
2309
|
-
function
|
|
2310
|
-
return e[
|
|
2311
|
-
[
|
|
2312
|
-
[
|
|
2291
|
+
function Zs(e) {
|
|
2292
|
+
return e[br] ?? (e[br] = {
|
|
2293
|
+
[Ys]: e.nodeName.includes("-"),
|
|
2294
|
+
[Ks]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2313
2295
|
});
|
|
2314
2296
|
}
|
|
2315
|
-
var
|
|
2316
|
-
function
|
|
2317
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2297
|
+
var $i = /* @__PURE__ */ new Map();
|
|
2298
|
+
function Js(e) {
|
|
2299
|
+
var t = e.getAttribute("is") || e.nodeName, n = $i.get(t);
|
|
2318
2300
|
if (n) return n;
|
|
2319
|
-
|
|
2301
|
+
$i.set(t, n = /* @__PURE__ */ new Set());
|
|
2320
2302
|
for (var r, i = e, o = Element.prototype; o !== i; ) {
|
|
2321
|
-
r =
|
|
2322
|
-
for (var
|
|
2323
|
-
i =
|
|
2303
|
+
r = _a(i);
|
|
2304
|
+
for (var s in r) r[s].set && s !== "innerHTML" && s !== "textContent" && s !== "innerText" && n.add(s);
|
|
2305
|
+
i = Ri(i);
|
|
2324
2306
|
}
|
|
2325
2307
|
return n;
|
|
2326
2308
|
}
|
|
2327
|
-
var
|
|
2309
|
+
var Mo, $t = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakSet(), Ro = class {
|
|
2328
2310
|
constructor(e) {
|
|
2329
|
-
|
|
2311
|
+
jr(this, Ei), S(this, $t, /* @__PURE__ */ new WeakMap()), S(this, Fn, void 0), S(this, vr, void 0), E(vr, this, e);
|
|
2330
2312
|
}
|
|
2331
2313
|
observe(e, t) {
|
|
2332
|
-
var n = l(
|
|
2333
|
-
return n.add(t), l(
|
|
2334
|
-
var r = l(
|
|
2335
|
-
r.delete(t), r.size === 0 && (l(
|
|
2314
|
+
var n = l($t, this).get(e) || /* @__PURE__ */ new Set();
|
|
2315
|
+
return n.add(t), l($t, this).set(e, n), $(Ei, this, Qs).call(this).observe(e, l(vr, this)), () => {
|
|
2316
|
+
var r = l($t, this).get(e);
|
|
2317
|
+
r.delete(t), r.size === 0 && (l($t, this).delete(e), l(Fn, this).unobserve(e));
|
|
2336
2318
|
};
|
|
2337
2319
|
}
|
|
2338
2320
|
};
|
|
2339
|
-
|
|
2340
|
-
function
|
|
2341
|
-
return l(
|
|
2321
|
+
Mo = Ro;
|
|
2322
|
+
function Qs() {
|
|
2323
|
+
return l(Fn, this) ?? E(Fn, this, new ResizeObserver((e) => {
|
|
2342
2324
|
for (var t of e) {
|
|
2343
|
-
|
|
2344
|
-
for (var n of l(
|
|
2325
|
+
Mo.entries.set(t.target, t);
|
|
2326
|
+
for (var n of l($t, this).get(t.target) || []) n(t);
|
|
2345
2327
|
}
|
|
2346
2328
|
}));
|
|
2347
2329
|
}
|
|
2348
|
-
|
|
2349
|
-
function
|
|
2350
|
-
return e === t || e?.[
|
|
2351
|
-
}
|
|
2352
|
-
function
|
|
2353
|
-
var i =
|
|
2354
|
-
return
|
|
2355
|
-
var
|
|
2356
|
-
return
|
|
2357
|
-
|
|
2358
|
-
|
|
2330
|
+
N(Ro, "entries", /* @__PURE__ */ new WeakMap());
|
|
2331
|
+
function _r(e, t) {
|
|
2332
|
+
return e === t || e?.[Kt] === t;
|
|
2333
|
+
}
|
|
2334
|
+
function Ti(e = Pr(), t, n, r) {
|
|
2335
|
+
var i = B.r, o = T;
|
|
2336
|
+
return fo(() => {
|
|
2337
|
+
var s, f;
|
|
2338
|
+
return Br(() => {
|
|
2339
|
+
s = f, f = r?.() || [], St(() => {
|
|
2340
|
+
_r(n(...f), e) || (t(e, ...f), s && _r(n(...s), e) && t(null, ...s));
|
|
2359
2341
|
});
|
|
2360
2342
|
}), () => {
|
|
2361
|
-
let
|
|
2362
|
-
for (;
|
|
2363
|
-
const
|
|
2364
|
-
f &&
|
|
2365
|
-
},
|
|
2366
|
-
|
|
2367
|
-
|
|
2343
|
+
let u = o;
|
|
2344
|
+
for (; u !== i && u.parent !== null && u.parent.f & 33554432; ) u = u.parent;
|
|
2345
|
+
const _ = () => {
|
|
2346
|
+
f && _r(n(...f), e) && t(null, ...f);
|
|
2347
|
+
}, p = u.teardown;
|
|
2348
|
+
u.teardown = () => {
|
|
2349
|
+
_(), p?.();
|
|
2368
2350
|
};
|
|
2369
2351
|
};
|
|
2370
2352
|
}), e;
|
|
2371
2353
|
}
|
|
2372
|
-
var
|
|
2373
|
-
function
|
|
2374
|
-
var t =
|
|
2354
|
+
var Sn = !1;
|
|
2355
|
+
function el(e) {
|
|
2356
|
+
var t = Sn;
|
|
2375
2357
|
try {
|
|
2376
|
-
return
|
|
2358
|
+
return Sn = !1, [e(), Sn];
|
|
2377
2359
|
} finally {
|
|
2378
|
-
|
|
2360
|
+
Sn = t;
|
|
2379
2361
|
}
|
|
2380
2362
|
}
|
|
2381
|
-
function
|
|
2382
|
-
var i = !
|
|
2383
|
-
let
|
|
2363
|
+
function Si(e, t, n, r) {
|
|
2364
|
+
var i = !zn || (n & 2) !== 0, o = (n & 8) !== 0, s = (n & 16) !== 0, f = r, u = !0, _ = void 0, p = () => s && i ? (_ ?? (_ = /* @__PURE__ */ tn(r)), a(_)) : (u && (u = !1, f = s ? St(r) : r), f);
|
|
2365
|
+
let d;
|
|
2384
2366
|
if (o) {
|
|
2385
|
-
var
|
|
2386
|
-
|
|
2367
|
+
var c = Kt in e || Ni in e;
|
|
2368
|
+
d = ct(e, t)?.set ?? (c && t in e ? (w) => e[t] = w : void 0);
|
|
2387
2369
|
}
|
|
2388
2370
|
var h, b = !1;
|
|
2389
|
-
o ? [h, b] =
|
|
2390
|
-
var
|
|
2391
|
-
if (i ?
|
|
2392
|
-
var
|
|
2393
|
-
return
|
|
2394
|
-
} :
|
|
2395
|
-
var
|
|
2396
|
-
return
|
|
2397
|
-
}, i && (n & 4) === 0) return
|
|
2398
|
-
if (
|
|
2371
|
+
o ? [h, b] = el(() => e[t]) : h = e[t], h === void 0 && r !== void 0 && (h = p(), d && (i && Da(t), d(h)));
|
|
2372
|
+
var y;
|
|
2373
|
+
if (i ? y = () => {
|
|
2374
|
+
var w = e[t];
|
|
2375
|
+
return w === void 0 ? p() : (u = !0, w);
|
|
2376
|
+
} : y = () => {
|
|
2377
|
+
var w = e[t];
|
|
2378
|
+
return w !== void 0 && (f = void 0), w === void 0 ? f : w;
|
|
2379
|
+
}, i && (n & 4) === 0) return y;
|
|
2380
|
+
if (d) {
|
|
2399
2381
|
var g = e.$$legacy;
|
|
2400
|
-
return (function(
|
|
2401
|
-
return arguments.length > 0 ? ((!i || !
|
|
2382
|
+
return (function(w, D) {
|
|
2383
|
+
return arguments.length > 0 ? ((!i || !D || g || b) && d(D ? y() : w), w) : y();
|
|
2402
2384
|
});
|
|
2403
2385
|
}
|
|
2404
|
-
var
|
|
2405
|
-
o &&
|
|
2406
|
-
var
|
|
2407
|
-
return (function(
|
|
2386
|
+
var m = !1, L = ((n & 1) !== 0 ? tn : Dr)(() => (m = !1, y()));
|
|
2387
|
+
o && a(L);
|
|
2388
|
+
var H = T;
|
|
2389
|
+
return (function(w, D) {
|
|
2408
2390
|
if (arguments.length > 0) {
|
|
2409
|
-
const
|
|
2410
|
-
return L
|
|
2391
|
+
const W = D ? a(L) : i && o ? ft(w) : w;
|
|
2392
|
+
return O(L, W), m = !0, f !== void 0 && (f = W), w;
|
|
2411
2393
|
}
|
|
2412
|
-
return Fe &&
|
|
2394
|
+
return Fe && m || (H.f & 16384) !== 0 ? L.v : a(L);
|
|
2413
2395
|
});
|
|
2414
2396
|
}
|
|
2415
|
-
function
|
|
2416
|
-
return new
|
|
2397
|
+
function tl(e) {
|
|
2398
|
+
return new nl(e);
|
|
2417
2399
|
}
|
|
2418
|
-
var
|
|
2400
|
+
var ot = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), nl = class {
|
|
2419
2401
|
constructor(e) {
|
|
2420
|
-
|
|
2402
|
+
S(this, ot, void 0), S(this, Me, void 0);
|
|
2421
2403
|
var t = /* @__PURE__ */ new Map(), n = (i, o) => {
|
|
2422
|
-
var
|
|
2423
|
-
return t.set(i,
|
|
2404
|
+
var s = /* @__PURE__ */ to(o, !1, !1);
|
|
2405
|
+
return t.set(i, s), s;
|
|
2424
2406
|
};
|
|
2425
2407
|
const r = new Proxy({
|
|
2426
2408
|
...e.props || {},
|
|
2427
2409
|
$$events: {}
|
|
2428
2410
|
}, {
|
|
2429
2411
|
get(i, o) {
|
|
2430
|
-
return
|
|
2412
|
+
return a(t.get(o) ?? n(o, Reflect.get(i, o)));
|
|
2431
2413
|
},
|
|
2432
2414
|
has(i, o) {
|
|
2433
|
-
return o ===
|
|
2415
|
+
return o === Ni ? !0 : (a(t.get(o) ?? n(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2434
2416
|
},
|
|
2435
|
-
set(i, o,
|
|
2436
|
-
return
|
|
2417
|
+
set(i, o, s) {
|
|
2418
|
+
return O(t.get(o) ?? n(o, s), s), Reflect.set(i, o, s);
|
|
2437
2419
|
}
|
|
2438
2420
|
});
|
|
2439
|
-
|
|
2421
|
+
E(Me, this, (e.hydrate ? Ps : Ao)(e.component, {
|
|
2440
2422
|
target: e.target,
|
|
2441
2423
|
anchor: e.anchor,
|
|
2442
2424
|
props: r,
|
|
@@ -2444,9 +2426,9 @@ var nt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), il =
|
|
|
2444
2426
|
intro: e.intro ?? !1,
|
|
2445
2427
|
recover: e.recover,
|
|
2446
2428
|
transformError: e.transformError
|
|
2447
|
-
})), !Be && (!e?.props?.$$host || e.sync === !1) &&
|
|
2429
|
+
})), !Be && (!e?.props?.$$host || e.sync === !1) && rn(), E(ot, this, r.$$events);
|
|
2448
2430
|
for (const i of Object.keys(l(Me, this)))
|
|
2449
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2431
|
+
i === "$set" || i === "$destroy" || i === "$on" || Qt(this, i, {
|
|
2450
2432
|
get() {
|
|
2451
2433
|
return l(Me, this)[i];
|
|
2452
2434
|
},
|
|
@@ -2458,26 +2440,26 @@ var nt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), il =
|
|
|
2458
2440
|
l(Me, this).$set = (i) => {
|
|
2459
2441
|
Object.assign(r, i);
|
|
2460
2442
|
}, l(Me, this).$destroy = () => {
|
|
2461
|
-
|
|
2443
|
+
qs(l(Me, this));
|
|
2462
2444
|
};
|
|
2463
2445
|
}
|
|
2464
2446
|
$set(e) {
|
|
2465
2447
|
l(Me, this).$set(e);
|
|
2466
2448
|
}
|
|
2467
2449
|
$on(e, t) {
|
|
2468
|
-
l(
|
|
2450
|
+
l(ot, this)[e] = l(ot, this)[e] || [];
|
|
2469
2451
|
const n = (...r) => t.call(this, ...r);
|
|
2470
|
-
return l(
|
|
2471
|
-
l(
|
|
2452
|
+
return l(ot, this)[e].push(n), () => {
|
|
2453
|
+
l(ot, this)[e] = l(ot, this)[e].filter((r) => r !== n);
|
|
2472
2454
|
};
|
|
2473
2455
|
}
|
|
2474
2456
|
$destroy() {
|
|
2475
2457
|
l(Me, this).$destroy();
|
|
2476
2458
|
}
|
|
2477
|
-
},
|
|
2478
|
-
typeof HTMLElement == "function" && (
|
|
2459
|
+
}, Co;
|
|
2460
|
+
typeof HTMLElement == "function" && (Co = class extends HTMLElement {
|
|
2479
2461
|
constructor(e, t, n) {
|
|
2480
|
-
super(),
|
|
2462
|
+
super(), N(this, "$$ctor", void 0), N(this, "$$s", void 0), N(this, "$$c", void 0), N(this, "$$cn", !1), N(this, "$$d", {}), N(this, "$$r", !1), N(this, "$$p_d", {}), N(this, "$$l", {}), N(this, "$$l_u", /* @__PURE__ */ new Map()), N(this, "$$me", void 0), N(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
|
|
2481
2463
|
}
|
|
2482
2464
|
addEventListener(e, t, n) {
|
|
2483
2465
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2496,19 +2478,19 @@ typeof HTMLElement == "function" && (No = class extends HTMLElement {
|
|
|
2496
2478
|
if (this.$$cn = !0, !this.$$c) {
|
|
2497
2479
|
let e = function(r) {
|
|
2498
2480
|
return (i) => {
|
|
2499
|
-
const o =
|
|
2481
|
+
const o = Gn("slot");
|
|
2500
2482
|
r !== "default" && (o.name = r), he(i, o);
|
|
2501
2483
|
};
|
|
2502
2484
|
};
|
|
2503
2485
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2504
|
-
const t = {}, n =
|
|
2486
|
+
const t = {}, n = rl(this);
|
|
2505
2487
|
for (const r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
2506
2488
|
for (const r of this.attributes) {
|
|
2507
2489
|
const i = this.$$g_p(r.name);
|
|
2508
|
-
i in this.$$d || (this.$$d[i] =
|
|
2490
|
+
i in this.$$d || (this.$$d[i] = Rn(i, r.value, this.$$p_d, "toProp"));
|
|
2509
2491
|
}
|
|
2510
2492
|
for (const r in this.$$p_d) !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
|
|
2511
|
-
this.$$c =
|
|
2493
|
+
this.$$c = tl({
|
|
2512
2494
|
component: this.$$ctor,
|
|
2513
2495
|
target: this.$$shadowRoot || this,
|
|
2514
2496
|
props: {
|
|
@@ -2516,13 +2498,13 @@ typeof HTMLElement == "function" && (No = class extends HTMLElement {
|
|
|
2516
2498
|
$$slots: t,
|
|
2517
2499
|
$$host: this
|
|
2518
2500
|
}
|
|
2519
|
-
}), this.$$me =
|
|
2520
|
-
|
|
2501
|
+
}), this.$$me = ds(() => {
|
|
2502
|
+
Br(() => {
|
|
2521
2503
|
this.$$r = !0;
|
|
2522
|
-
for (const r of
|
|
2504
|
+
for (const r of Cn(this.$$c)) {
|
|
2523
2505
|
if (!this.$$p_d[r]?.reflect) continue;
|
|
2524
2506
|
this.$$d[r] = this.$$c[r];
|
|
2525
|
-
const i =
|
|
2507
|
+
const i = Rn(r, this.$$d[r], this.$$p_d, "toAttribute");
|
|
2526
2508
|
i == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, i);
|
|
2527
2509
|
}
|
|
2528
2510
|
this.$$r = !1;
|
|
@@ -2536,7 +2518,7 @@ typeof HTMLElement == "function" && (No = class extends HTMLElement {
|
|
|
2536
2518
|
}
|
|
2537
2519
|
}
|
|
2538
2520
|
attributeChangedCallback(e, t, n) {
|
|
2539
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2521
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Rn(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2540
2522
|
}
|
|
2541
2523
|
disconnectedCallback() {
|
|
2542
2524
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2544,10 +2526,10 @@ typeof HTMLElement == "function" && (No = class extends HTMLElement {
|
|
|
2544
2526
|
});
|
|
2545
2527
|
}
|
|
2546
2528
|
$$g_p(e) {
|
|
2547
|
-
return
|
|
2529
|
+
return Cn(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2548
2530
|
}
|
|
2549
2531
|
});
|
|
2550
|
-
function
|
|
2532
|
+
function Rn(e, t, n, r) {
|
|
2551
2533
|
const i = n[e]?.type;
|
|
2552
2534
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
2553
2535
|
if (r === "toAttribute") switch (i) {
|
|
@@ -2573,79 +2555,79 @@ function Ln(e, t, n, r) {
|
|
|
2573
2555
|
return t;
|
|
2574
2556
|
}
|
|
2575
2557
|
}
|
|
2576
|
-
function
|
|
2558
|
+
function rl(e) {
|
|
2577
2559
|
const t = {};
|
|
2578
2560
|
return e.childNodes.forEach((n) => {
|
|
2579
2561
|
t[n.slot || "default"] = !0;
|
|
2580
2562
|
}), t;
|
|
2581
2563
|
}
|
|
2582
|
-
function
|
|
2583
|
-
let
|
|
2564
|
+
function il(e, t, n, r, i, o) {
|
|
2565
|
+
let s = class extends Co {
|
|
2584
2566
|
constructor() {
|
|
2585
2567
|
super(e, n, i), this.$$p_d = t;
|
|
2586
2568
|
}
|
|
2587
2569
|
static get observedAttributes() {
|
|
2588
|
-
return
|
|
2570
|
+
return Cn(t).map((f) => (t[f].attribute || f).toLowerCase());
|
|
2589
2571
|
}
|
|
2590
2572
|
};
|
|
2591
|
-
return
|
|
2592
|
-
|
|
2573
|
+
return Cn(t).forEach((f) => {
|
|
2574
|
+
Qt(s.prototype, f, {
|
|
2593
2575
|
get() {
|
|
2594
2576
|
return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
|
|
2595
2577
|
},
|
|
2596
|
-
set(
|
|
2597
|
-
|
|
2598
|
-
var
|
|
2599
|
-
|
|
2578
|
+
set(u) {
|
|
2579
|
+
u = Rn(f, u, t), this.$$d[f] = u;
|
|
2580
|
+
var _ = this.$$c;
|
|
2581
|
+
_ && (ct(_, f)?.get ? _[f] = u : _.$set({ [f]: u }));
|
|
2600
2582
|
}
|
|
2601
2583
|
});
|
|
2602
2584
|
}), r.forEach((f) => {
|
|
2603
|
-
|
|
2585
|
+
Qt(s.prototype, f, { get() {
|
|
2604
2586
|
return this.$$c?.[f];
|
|
2605
2587
|
} });
|
|
2606
|
-
}), o && (
|
|
2588
|
+
}), o && (s = o(s)), e.element = s, s;
|
|
2607
2589
|
}
|
|
2608
|
-
function
|
|
2590
|
+
function ol(e) {
|
|
2609
2591
|
return e.key === "ContextMenu" ? !0 : e.key === "F10" && e.shiftKey === !0;
|
|
2610
2592
|
}
|
|
2611
|
-
function
|
|
2593
|
+
function al({ key: e, activeIndex: t, count: n, direction: r }) {
|
|
2612
2594
|
if (n <= 0) return null;
|
|
2613
|
-
const i =
|
|
2614
|
-
return e === o ? (i + 1) % n : e ===
|
|
2595
|
+
const i = Rr(t, n), o = r === "rtl" ? "ArrowLeft" : "ArrowRight", s = r === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
2596
|
+
return e === o ? (i + 1) % n : e === s ? (i - 1 + n) % n : e === "Home" ? 0 : e === "End" ? n - 1 : null;
|
|
2615
2597
|
}
|
|
2616
|
-
function
|
|
2598
|
+
function Rr(e, t) {
|
|
2617
2599
|
return t <= 0 || !Number.isFinite(e) || e < 0 ? 0 : Math.min(Math.trunc(e), t - 1);
|
|
2618
2600
|
}
|
|
2619
|
-
function
|
|
2601
|
+
function sl(e, t) {
|
|
2620
2602
|
return e.bottom < 0 || e.top > t.height || e.right < 0 || e.left > t.width;
|
|
2621
2603
|
}
|
|
2622
|
-
var
|
|
2623
|
-
function
|
|
2604
|
+
var ll = 2e3;
|
|
2605
|
+
function fl(e, t, n = ll) {
|
|
2624
2606
|
if (e === null) return !1;
|
|
2625
2607
|
const r = t - e;
|
|
2626
2608
|
return r < 0 ? !0 : r < n;
|
|
2627
2609
|
}
|
|
2628
|
-
function
|
|
2610
|
+
function ul(e, t, n = {
|
|
2629
2611
|
width: 0,
|
|
2630
2612
|
height: 0
|
|
2631
2613
|
}, r = 8) {
|
|
2632
|
-
const o = e.left + (e.right - e.left) / 2 - n.width / 2,
|
|
2614
|
+
const o = e.left + (e.right - e.left) / 2 - n.width / 2, s = e.top - r - n.height, f = s < 4 && e.bottom + r + n.height <= t.height, u = f ? e.bottom + r : s;
|
|
2633
2615
|
return {
|
|
2634
|
-
x:
|
|
2635
|
-
y:
|
|
2616
|
+
x: Ai(o, n.width, t.width, 4),
|
|
2617
|
+
y: Ai(u, n.height, t.height, 4),
|
|
2636
2618
|
below: f
|
|
2637
2619
|
};
|
|
2638
2620
|
}
|
|
2639
|
-
function
|
|
2621
|
+
function Ai(e, t, n, r) {
|
|
2640
2622
|
const i = n - t - r;
|
|
2641
2623
|
return i <= r ? r : Math.min(Math.max(e, r), i);
|
|
2642
2624
|
}
|
|
2643
|
-
function
|
|
2625
|
+
function cl(e) {
|
|
2644
2626
|
if (!e || typeof e != "object") return !1;
|
|
2645
2627
|
const t = e;
|
|
2646
2628
|
return !(typeof t.id != "string" || t.id.trim().length === 0 || typeof t.label != "string" || t.label.trim().length === 0 || t.label.length > 40 || typeof t.run != "function" || t.iconSvg !== void 0 && typeof t.iconSvg != "string" || t.tooltip !== void 0 && typeof t.tooltip != "string" || t.isAvailable !== void 0 && typeof t.isAvailable != "function");
|
|
2647
2629
|
}
|
|
2648
|
-
function
|
|
2630
|
+
function dl(e) {
|
|
2649
2631
|
if (typeof e.isAvailable != "function") return !0;
|
|
2650
2632
|
try {
|
|
2651
2633
|
return e.isAvailable() !== !1;
|
|
@@ -2653,11 +2635,11 @@ function vl(e) {
|
|
|
2653
2635
|
return console.warn(`[AnnotationToolbar] Selection action "${e.id}" failed its availability check:`, t), !1;
|
|
2654
2636
|
}
|
|
2655
2637
|
}
|
|
2656
|
-
function
|
|
2638
|
+
function hl(e) {
|
|
2657
2639
|
if (!Array.isArray(e)) return [];
|
|
2658
2640
|
const t = /* @__PURE__ */ new Set(), n = [];
|
|
2659
2641
|
return e.forEach((r, i) => {
|
|
2660
|
-
if (!
|
|
2642
|
+
if (!cl(r)) {
|
|
2661
2643
|
console.warn(`[AnnotationToolbar] Ignoring invalid selection action at index ${i}. Expected { id, label, run } with valid types.`);
|
|
2662
2644
|
return;
|
|
2663
2645
|
}
|
|
@@ -2665,10 +2647,10 @@ function _l(e) {
|
|
|
2665
2647
|
console.warn(`[AnnotationToolbar] Ignoring duplicate selection action id "${r.id}".`);
|
|
2666
2648
|
return;
|
|
2667
2649
|
}
|
|
2668
|
-
|
|
2650
|
+
dl(r) && (t.add(r.id), n.push(r));
|
|
2669
2651
|
}), n;
|
|
2670
2652
|
}
|
|
2671
|
-
function
|
|
2653
|
+
function vl(e, t) {
|
|
2672
2654
|
if (!e) return !1;
|
|
2673
2655
|
const n = t?.canRequestTool;
|
|
2674
2656
|
if (typeof n != "function") return !1;
|
|
@@ -2678,15 +2660,15 @@ function pl(e, t) {
|
|
|
2678
2660
|
return console.warn("[AnnotationToolbar] Read-aloud failed its availability check:", r), !1;
|
|
2679
2661
|
}
|
|
2680
2662
|
}
|
|
2681
|
-
var
|
|
2663
|
+
var _l = (e) => {
|
|
2682
2664
|
const t = [];
|
|
2683
2665
|
for (const n of e) {
|
|
2684
2666
|
let r = n?.getRootNode?.();
|
|
2685
|
-
for (;
|
|
2667
|
+
for (; Cr(r); )
|
|
2686
2668
|
t.includes(r) || t.push(r), r = r.host.getRootNode?.();
|
|
2687
2669
|
}
|
|
2688
2670
|
return t;
|
|
2689
|
-
},
|
|
2671
|
+
}, pl = (e, t) => {
|
|
2690
2672
|
const n = e.getComposedRanges;
|
|
2691
2673
|
if (typeof n != "function" || t.length === 0) return null;
|
|
2692
2674
|
try {
|
|
@@ -2698,31 +2680,31 @@ var gl = (e) => {
|
|
|
2698
2680
|
return null;
|
|
2699
2681
|
}
|
|
2700
2682
|
}
|
|
2701
|
-
},
|
|
2683
|
+
}, gl = (e) => {
|
|
2702
2684
|
const { startContainer: t, startOffset: n, endContainer: r, endOffset: i } = e, o = t.ownerDocument;
|
|
2703
2685
|
if (!o) return null;
|
|
2704
2686
|
try {
|
|
2705
|
-
const
|
|
2706
|
-
|
|
2687
|
+
const s = o.createRange();
|
|
2688
|
+
s.setStart(t, n);
|
|
2707
2689
|
const f = t.getRootNode();
|
|
2708
2690
|
if (r.getRootNode() === f)
|
|
2709
|
-
return
|
|
2710
|
-
const
|
|
2711
|
-
if (
|
|
2712
|
-
else if (
|
|
2691
|
+
return s.setEnd(r, i), s;
|
|
2692
|
+
const u = la(r, f);
|
|
2693
|
+
if (u) s.setEndBefore(u);
|
|
2694
|
+
else if (Cr(f)) s.setEnd(f, f.childNodes.length);
|
|
2713
2695
|
else return null;
|
|
2714
|
-
return
|
|
2696
|
+
return s;
|
|
2715
2697
|
} catch {
|
|
2716
2698
|
return null;
|
|
2717
2699
|
}
|
|
2718
|
-
},
|
|
2700
|
+
}, bl = (e) => {
|
|
2719
2701
|
if (e.rangeCount === 0) return null;
|
|
2720
|
-
const t = e.getRangeAt(0), n =
|
|
2702
|
+
const t = e.getRangeAt(0), n = pl(e, _l([
|
|
2721
2703
|
e.anchorNode,
|
|
2722
2704
|
e.focusNode,
|
|
2723
2705
|
t.startContainer,
|
|
2724
2706
|
t.endContainer
|
|
2725
|
-
])), r = n ?
|
|
2707
|
+
])), r = n ? gl(n) : null;
|
|
2726
2708
|
return !n || !r ? {
|
|
2727
2709
|
range: t,
|
|
2728
2710
|
text: e.toString()
|
|
@@ -2730,12 +2712,12 @@ var gl = (e) => {
|
|
|
2730
2712
|
range: r,
|
|
2731
2713
|
text: n.startContainer.getRootNode() === n.endContainer.getRootNode() ? e.toString() : r.toString()
|
|
2732
2714
|
};
|
|
2733
|
-
},
|
|
2734
|
-
const t = e.startContainer, n =
|
|
2715
|
+
}, xi = (e) => {
|
|
2716
|
+
const t = e.startContainer, n = oa(t);
|
|
2735
2717
|
if (!n) return null;
|
|
2736
|
-
const r =
|
|
2737
|
-
return !
|
|
2738
|
-
},
|
|
2718
|
+
const r = sa(n, t);
|
|
2719
|
+
return !pr(r, t) || !pr(r, e.endContainer) ? null : r;
|
|
2720
|
+
}, wl = /* @__PURE__ */ Pe('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-1qnnvrt"><span class="pie-sr-only svelte-1qnnvrt"> </span></button>'), ml = /* @__PURE__ */ Pe('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), yl = /* @__PURE__ */ Pe('<span class="pie-tool-annotation-toolbar__action-icon svelte-1qnnvrt" aria-hidden="true"></span>'), kl = /* @__PURE__ */ Pe("<button><!></button>"), $l = /* @__PURE__ */ Pe('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!>', 1), El = /* @__PURE__ */ Pe('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), Tl = /* @__PURE__ */ Pe('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-1qnnvrt"> </button>'), Sl = /* @__PURE__ */ Pe('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!> <!>', 1), Al = /* @__PURE__ */ Pe('<div class="pie-tool-annotation-toolbar notranslate svelte-1qnnvrt" role="toolbar" translate="no" tabindex="-1"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!> <!></div>'), xl = /* @__PURE__ */ Pe('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-1qnnvrt"> </div>', 1), Ml = {
|
|
2739
2721
|
hash: "svelte-1qnnvrt",
|
|
2740
2722
|
code: `.pie-tool-annotation-toolbar.svelte-1qnnvrt {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);
|
|
2741
2723
|
/* WCAG 2.2 SC 1.4.11: this stroke is the only boundary between a floating
|
|
@@ -2775,10 +2757,10 @@ var gl = (e) => {
|
|
|
2775
2757
|
the box is set here to keep an action button the same height as the built-in
|
|
2776
2758
|
ones — a strip of mismatched buttons reads as broken. */.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt {display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;}.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt svg {width:100%;height:100%;}`
|
|
2777
2759
|
};
|
|
2778
|
-
function
|
|
2779
|
-
|
|
2780
|
-
let n =
|
|
2781
|
-
const i = typeof window < "u", o = "annotationToolbar",
|
|
2760
|
+
function Rl(e, t) {
|
|
2761
|
+
qi(t, !0), Bs(e, Ml);
|
|
2762
|
+
let n = Si(t, "enabled", 7, !0), r = Si(t, "selectionActions", 7, null);
|
|
2763
|
+
const i = typeof window < "u", o = "annotationToolbar", s = 2e3, f = [
|
|
2782
2764
|
"button",
|
|
2783
2765
|
"input",
|
|
2784
2766
|
"select",
|
|
@@ -2788,31 +2770,37 @@ function Ol(e, t) {
|
|
|
2788
2770
|
".pie-tool-toolbar",
|
|
2789
2771
|
'[role="button"]',
|
|
2790
2772
|
'[role="textbox"]'
|
|
2791
|
-
],
|
|
2792
|
-
|
|
2793
|
-
|
|
2773
|
+
], u = 30, _ = {
|
|
2774
|
+
[Ae.YELLOW]: "tools.annotationToolbar.highlightedYellowA11y",
|
|
2775
|
+
[Ae.PINK]: "tools.annotationToolbar.highlightedPinkA11y",
|
|
2776
|
+
[Ae.BLUE]: "tools.annotationToolbar.highlightedBlueA11y",
|
|
2777
|
+
[Ae.GREEN]: "tools.annotationToolbar.highlightedGreenA11y",
|
|
2778
|
+
[Ae.UNDERLINE]: "tools.annotationToolbar.underlinedA11y"
|
|
2779
|
+
};
|
|
2780
|
+
let p = /* @__PURE__ */ F(null), d = /* @__PURE__ */ F(null);
|
|
2781
|
+
const c = /* @__PURE__ */ de(() => fa(a(d))), h = /* @__PURE__ */ de(() => a(d)?.highlightCoordinator ?? null), b = /* @__PURE__ */ de(() => a(d)?.ttsService ?? null), y = /* @__PURE__ */ de(() => a(d)?.elementToolStateStore ?? null), g = /* @__PURE__ */ de(() => [
|
|
2794
2782
|
{
|
|
2795
|
-
name:
|
|
2783
|
+
name: Ae.YELLOW,
|
|
2796
2784
|
hex: "#fde995",
|
|
2797
|
-
label:
|
|
2785
|
+
label: a(c).t("tools.annotationToolbar.highlightYellowA11y")
|
|
2798
2786
|
},
|
|
2799
2787
|
{
|
|
2800
|
-
name:
|
|
2788
|
+
name: Ae.PINK,
|
|
2801
2789
|
hex: "#ff9fae",
|
|
2802
|
-
label:
|
|
2790
|
+
label: a(c).t("tools.annotationToolbar.highlightPinkA11y")
|
|
2803
2791
|
},
|
|
2804
2792
|
{
|
|
2805
|
-
name:
|
|
2793
|
+
name: Ae.BLUE,
|
|
2806
2794
|
hex: "#a7e0f6",
|
|
2807
|
-
label:
|
|
2795
|
+
label: a(c).t("tools.annotationToolbar.highlightBlueA11y")
|
|
2808
2796
|
},
|
|
2809
2797
|
{
|
|
2810
|
-
name:
|
|
2798
|
+
name: Ae.GREEN,
|
|
2811
2799
|
hex: "#a6e1c5",
|
|
2812
|
-
label:
|
|
2800
|
+
label: a(c).t("tools.annotationToolbar.highlightGreenA11y")
|
|
2813
2801
|
}
|
|
2814
2802
|
]);
|
|
2815
|
-
let
|
|
2803
|
+
let m = /* @__PURE__ */ F(null), L = /* @__PURE__ */ F(null), H = /* @__PURE__ */ F(null), w = /* @__PURE__ */ F(ft({
|
|
2816
2804
|
isVisible: !1,
|
|
2817
2805
|
selectedText: "",
|
|
2818
2806
|
selectedRange: null,
|
|
@@ -2821,384 +2809,384 @@ function Ol(e, t) {
|
|
|
2821
2809
|
y: 0,
|
|
2822
2810
|
below: !1
|
|
2823
2811
|
}
|
|
2824
|
-
})),
|
|
2825
|
-
function
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
},
|
|
2812
|
+
})), D = /* @__PURE__ */ F(!1), W = /* @__PURE__ */ F(!1), ne = /* @__PURE__ */ F(""), J = /* @__PURE__ */ F(0), qe = /* @__PURE__ */ F(null), V = null, ze = null, Ue = null, Kn = null, Ot = null, Se = /* @__PURE__ */ F(0), Lt = null;
|
|
2813
|
+
function Nt(v, k) {
|
|
2814
|
+
Ue !== null && clearTimeout(Ue), O(ne, v, !0), Ue = setTimeout(() => {
|
|
2815
|
+
O(ne, ""), Ue = null;
|
|
2816
|
+
}, k);
|
|
2829
2817
|
}
|
|
2830
|
-
function
|
|
2831
|
-
return v.length >
|
|
2818
|
+
function Xn(v) {
|
|
2819
|
+
return v.length > u ? v.substring(0, u) + "..." : v;
|
|
2832
2820
|
}
|
|
2833
|
-
let
|
|
2834
|
-
function
|
|
2835
|
-
const v =
|
|
2836
|
-
return
|
|
2821
|
+
let cn = /* @__PURE__ */ de(() => (a(w).isVisible, hl(r()))), Zn = /* @__PURE__ */ de(() => (a(w).isVisible, vl(a(b), a(d)?.toolkitCoordinator))), dn = /* @__PURE__ */ de(() => a(J) > 0), hn = /* @__PURE__ */ de(() => a(qe) !== null), vn = /* @__PURE__ */ de(() => a(H)?.scopeElement || a(L)?.scopeElement || null);
|
|
2822
|
+
function Jn() {
|
|
2823
|
+
const v = a(p)?.ownerDocument;
|
|
2824
|
+
return a(vn) || v?.documentElement || document.documentElement;
|
|
2837
2825
|
}
|
|
2838
|
-
let
|
|
2839
|
-
const v =
|
|
2840
|
-
return !
|
|
2826
|
+
let Qn = /* @__PURE__ */ de(() => {
|
|
2827
|
+
const v = a(d)?.assessmentId, k = a(d)?.sectionId;
|
|
2828
|
+
return !a(y) || !v || !k ? null : a(y).getGlobalElementId({
|
|
2841
2829
|
assessmentId: v,
|
|
2842
|
-
sectionId:
|
|
2843
|
-
attemptId:
|
|
2844
|
-
itemId:
|
|
2830
|
+
sectionId: k,
|
|
2831
|
+
attemptId: a(d)?.attemptId ?? "",
|
|
2832
|
+
itemId: a(L)?.canonicalItemId || a(L)?.itemId || "",
|
|
2845
2833
|
elementId: ""
|
|
2846
2834
|
});
|
|
2847
2835
|
});
|
|
2848
|
-
function
|
|
2849
|
-
if (!
|
|
2850
|
-
const
|
|
2851
|
-
for (const
|
|
2852
|
-
if (v.startContainer.getRootNode() !==
|
|
2853
|
-
const
|
|
2854
|
-
if (
|
|
2836
|
+
function Oo(v) {
|
|
2837
|
+
if (!a(h)) return null;
|
|
2838
|
+
const k = a(h).getAnnotations();
|
|
2839
|
+
for (const R of k) {
|
|
2840
|
+
if (v.startContainer.getRootNode() !== R.range.startContainer.getRootNode()) continue;
|
|
2841
|
+
const q = v.compareBoundaryPoints(Range.START_TO_START, R.range), ae = v.compareBoundaryPoints(Range.END_TO_END, R.range), It = v.compareBoundaryPoints(Range.START_TO_END, R.range), wn = v.compareBoundaryPoints(Range.END_TO_START, R.range);
|
|
2842
|
+
if (q >= 0 && ae <= 0 || q <= 0 && ae >= 0 || It > 0 && wn < 0) return R.id;
|
|
2855
2843
|
}
|
|
2856
2844
|
return null;
|
|
2857
2845
|
}
|
|
2858
|
-
function
|
|
2859
|
-
const
|
|
2860
|
-
return
|
|
2846
|
+
function Lo(v) {
|
|
2847
|
+
const k = Cr(v) ? v.host : v;
|
|
2848
|
+
return k.nodeType !== Node.ELEMENT_NODE && k.nodeType !== Node.TEXT_NODE ? !1 : !f.some((R) => {
|
|
2861
2849
|
try {
|
|
2862
|
-
return
|
|
2850
|
+
return ta(k, R) !== null;
|
|
2863
2851
|
} catch {
|
|
2864
2852
|
return !1;
|
|
2865
2853
|
}
|
|
2866
2854
|
});
|
|
2867
2855
|
}
|
|
2868
|
-
function
|
|
2869
|
-
return
|
|
2856
|
+
function No(v) {
|
|
2857
|
+
return a(vn) ? pr(a(vn), v.commonAncestorContainer) : !0;
|
|
2870
2858
|
}
|
|
2871
|
-
function
|
|
2872
|
-
if (!(!
|
|
2859
|
+
function er() {
|
|
2860
|
+
if (!(!a(h) || !a(y) || !a(Qn)))
|
|
2873
2861
|
try {
|
|
2874
|
-
const v =
|
|
2875
|
-
|
|
2862
|
+
const v = a(h).exportAnnotations(Jn());
|
|
2863
|
+
a(y).setState(a(Qn), o, v);
|
|
2876
2864
|
} catch (v) {
|
|
2877
|
-
|
|
2865
|
+
or(a(d)?.toolkitCoordinator, "annotationToolbar", "tool-state-save", v);
|
|
2878
2866
|
}
|
|
2879
2867
|
}
|
|
2880
|
-
function
|
|
2881
|
-
if (!(!
|
|
2868
|
+
function Io(v) {
|
|
2869
|
+
if (!(!a(h) || !a(y)))
|
|
2882
2870
|
try {
|
|
2883
|
-
const
|
|
2884
|
-
|
|
2885
|
-
} catch (
|
|
2886
|
-
|
|
2871
|
+
const k = a(y).getState(v, o);
|
|
2872
|
+
a(h).clearAnnotations(), Array.isArray(k) && a(h).importAnnotations(k, Jn()), O(J, a(h).getAnnotations().length, !0);
|
|
2873
|
+
} catch (k) {
|
|
2874
|
+
or(a(d)?.toolkitCoordinator, "annotationToolbar", "tool-state-load", k);
|
|
2887
2875
|
}
|
|
2888
2876
|
}
|
|
2889
|
-
function
|
|
2890
|
-
!i ||
|
|
2891
|
-
|
|
2877
|
+
function tr() {
|
|
2878
|
+
!i || ze !== null || (ze = (typeof requestAnimationFrame == "function" ? requestAnimationFrame : (v) => setTimeout(v, 16))(() => {
|
|
2879
|
+
ze = null, Kr();
|
|
2892
2880
|
}));
|
|
2893
2881
|
}
|
|
2894
|
-
function
|
|
2895
|
-
if (!n() || !i ||
|
|
2896
|
-
const
|
|
2897
|
-
if (!
|
|
2898
|
-
const { range:
|
|
2899
|
-
if (!
|
|
2900
|
-
if (
|
|
2901
|
-
|
|
2902
|
-
const
|
|
2903
|
-
|
|
2904
|
-
|
|
2882
|
+
function Kr(v = {}) {
|
|
2883
|
+
if (!n() || !i || fl(V, Date.now())) return;
|
|
2884
|
+
const k = window.getSelection(), R = k ? bl(k) : null;
|
|
2885
|
+
if (!R) return nt();
|
|
2886
|
+
const { range: q } = R, ae = R.text.trim();
|
|
2887
|
+
if (!ae || !No(q) || !xi(q) || !Lo(q.commonAncestorContainer)) return nt();
|
|
2888
|
+
if (Ot !== null && (v.force || Ot !== ae) && (Ot = null), Ot === ae) return;
|
|
2889
|
+
O(qe, Oo(q), !0);
|
|
2890
|
+
const It = a(w).isVisible;
|
|
2891
|
+
a(w).isVisible = !0, a(w).selectedText = ae, a(w).selectedRange = q.cloneRange(), nr(q), Kn !== ae && (Kn = ae, Nt(a(c).t("tools.annotationToolbar.selectionAvailableA11y", { text: Xn(ae) }), 4e3)), It || (O(W, !0), setTimeout(() => {
|
|
2892
|
+
O(W, !1);
|
|
2905
2893
|
}, 100));
|
|
2906
2894
|
}
|
|
2907
|
-
function
|
|
2895
|
+
function nr(v = a(w).selectedRange) {
|
|
2908
2896
|
if (!v) return;
|
|
2909
|
-
const
|
|
2897
|
+
const k = v.getBoundingClientRect(), R = {
|
|
2910
2898
|
width: window.innerWidth || 0,
|
|
2911
2899
|
height: window.innerHeight || 0
|
|
2912
2900
|
};
|
|
2913
|
-
if (
|
|
2914
|
-
|
|
2901
|
+
if (sl(k, R)) {
|
|
2902
|
+
a(w).isVisible = !1;
|
|
2915
2903
|
return;
|
|
2916
2904
|
}
|
|
2917
|
-
|
|
2905
|
+
a(w).isVisible = !0, a(w).toolbarPosition = ul(k, R, Po());
|
|
2918
2906
|
}
|
|
2919
|
-
function
|
|
2920
|
-
return
|
|
2921
|
-
width:
|
|
2922
|
-
height:
|
|
2907
|
+
function Po() {
|
|
2908
|
+
return a(m) ? {
|
|
2909
|
+
width: a(m).offsetWidth,
|
|
2910
|
+
height: a(m).offsetHeight
|
|
2923
2911
|
} : {
|
|
2924
2912
|
width: 0,
|
|
2925
2913
|
height: 0
|
|
2926
2914
|
};
|
|
2927
2915
|
}
|
|
2928
|
-
function
|
|
2929
|
-
!
|
|
2916
|
+
function _n() {
|
|
2917
|
+
!a(w).isVisible && !a(w).selectedRange || nr();
|
|
2930
2918
|
}
|
|
2931
|
-
function
|
|
2932
|
-
|
|
2919
|
+
function Xr() {
|
|
2920
|
+
V = Date.now();
|
|
2933
2921
|
}
|
|
2934
|
-
function
|
|
2935
|
-
|
|
2922
|
+
function pn() {
|
|
2923
|
+
V = null, tr();
|
|
2936
2924
|
}
|
|
2937
|
-
function
|
|
2938
|
-
|
|
2925
|
+
function gn() {
|
|
2926
|
+
Ot = a(w).selectedText || null, nt();
|
|
2939
2927
|
}
|
|
2940
|
-
function
|
|
2941
|
-
|
|
2928
|
+
function nt() {
|
|
2929
|
+
a(D) && a(b) && (a(b).stop(), O(D, !1)), qo(), a(w).isVisible = !1, a(w).selectedText = "", a(w).selectedRange = null, Kn = null, O(Se, 0);
|
|
2942
2930
|
}
|
|
2943
|
-
function
|
|
2944
|
-
const v =
|
|
2945
|
-
|
|
2931
|
+
function qo() {
|
|
2932
|
+
const v = Lt;
|
|
2933
|
+
Lt = null, !(!v || !Zr()) && typeof v.focus == "function" && v.isConnected && v.focus({ preventScroll: !0 });
|
|
2946
2934
|
}
|
|
2947
|
-
function
|
|
2948
|
-
if (!
|
|
2949
|
-
const v =
|
|
2950
|
-
return !!v &&
|
|
2935
|
+
function Zr() {
|
|
2936
|
+
if (!a(m) || !i) return !1;
|
|
2937
|
+
const v = a(m).getRootNode().activeElement;
|
|
2938
|
+
return !!v && a(m).contains(v);
|
|
2951
2939
|
}
|
|
2952
|
-
function
|
|
2953
|
-
return
|
|
2940
|
+
function rr() {
|
|
2941
|
+
return a(m) ? Array.from(a(m).querySelectorAll("button:not([disabled])")) : [];
|
|
2954
2942
|
}
|
|
2955
|
-
function
|
|
2956
|
-
const v =
|
|
2943
|
+
function Do() {
|
|
2944
|
+
const v = rr();
|
|
2957
2945
|
if (v.length) {
|
|
2958
|
-
if (!
|
|
2959
|
-
const
|
|
2960
|
-
|
|
2946
|
+
if (!Zr() && i) {
|
|
2947
|
+
const k = a(m)?.getRootNode()?.activeElement;
|
|
2948
|
+
Lt = k instanceof HTMLElement ? k : null;
|
|
2961
2949
|
}
|
|
2962
|
-
|
|
2950
|
+
O(Se, Rr(a(Se), v.length), !0), v[a(Se)]?.focus();
|
|
2963
2951
|
}
|
|
2964
2952
|
}
|
|
2965
|
-
function
|
|
2966
|
-
if (!
|
|
2967
|
-
const
|
|
2968
|
-
|
|
2969
|
-
const
|
|
2970
|
-
|
|
2953
|
+
function Jr(v) {
|
|
2954
|
+
if (!a(w).selectedRange || !a(h)) return;
|
|
2955
|
+
const k = a(w).selectedText;
|
|
2956
|
+
a(h).addAnnotation(a(w).selectedRange, v), O(J, a(h).getAnnotations().length, !0), er();
|
|
2957
|
+
const R = _[v];
|
|
2958
|
+
R && Nt(a(c).t(R, { text: Xn(k) }), 3e3), gn();
|
|
2971
2959
|
}
|
|
2972
|
-
function
|
|
2973
|
-
if (!
|
|
2960
|
+
function Wo() {
|
|
2961
|
+
if (!a(qe) || !a(h)) {
|
|
2974
2962
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
2975
2963
|
return;
|
|
2976
2964
|
}
|
|
2977
|
-
const v =
|
|
2965
|
+
const v = a(h).getAnnotation(a(qe));
|
|
2978
2966
|
if (!v) {
|
|
2979
|
-
console.warn("[AnnotationToolbar] Annotation not found:",
|
|
2967
|
+
console.warn("[AnnotationToolbar] Annotation not found:", a(qe));
|
|
2980
2968
|
return;
|
|
2981
2969
|
}
|
|
2982
|
-
const
|
|
2983
|
-
|
|
2970
|
+
const k = v.range.toString();
|
|
2971
|
+
a(h).removeAnnotation(a(qe)), O(J, a(h).getAnnotations().length, !0), er(), Nt(a(c).t("tools.annotationToolbar.removedA11y", { text: Xn(k) }), 3e3), gn();
|
|
2984
2972
|
}
|
|
2985
|
-
function
|
|
2986
|
-
const v =
|
|
2987
|
-
|
|
2973
|
+
function jo() {
|
|
2974
|
+
const v = a(J);
|
|
2975
|
+
a(h)?.clearAnnotations(), O(J, 0), er(), Nt(a(c).plural?.("tools.annotationToolbar.clearedA11y", { count: v }) ?? a(c).t("tools.annotationToolbar.clearedA11y", { count: v }), 3e3), gn();
|
|
2988
2976
|
}
|
|
2989
|
-
function
|
|
2990
|
-
return v.iconSvg ?
|
|
2977
|
+
function Ho(v) {
|
|
2978
|
+
return v.iconSvg ? ua(v.iconSvg) : "";
|
|
2991
2979
|
}
|
|
2992
|
-
function
|
|
2993
|
-
const
|
|
2980
|
+
function Vo(v) {
|
|
2981
|
+
const k = a(w).selectedText, R = a(w).selectedRange;
|
|
2994
2982
|
try {
|
|
2995
2983
|
v.run({
|
|
2996
|
-
text:
|
|
2997
|
-
range:
|
|
2984
|
+
text: k,
|
|
2985
|
+
range: R
|
|
2998
2986
|
});
|
|
2999
|
-
} catch (
|
|
3000
|
-
console.error(`[AnnotationToolbar] Selection action "${v.id}" threw:`,
|
|
2987
|
+
} catch (q) {
|
|
2988
|
+
console.error(`[AnnotationToolbar] Selection action "${v.id}" threw:`, q);
|
|
3001
2989
|
}
|
|
3002
|
-
|
|
2990
|
+
gn();
|
|
3003
2991
|
}
|
|
3004
|
-
async function
|
|
3005
|
-
if (!(
|
|
3006
|
-
|
|
2992
|
+
async function Fo() {
|
|
2993
|
+
if (!(a(D) || !a(w).selectedRange || !a(b) || !a(Zn))) {
|
|
2994
|
+
O(D, !0);
|
|
3007
2995
|
try {
|
|
3008
|
-
const v =
|
|
3009
|
-
await
|
|
3010
|
-
contentRoot:
|
|
3011
|
-
language:
|
|
3012
|
-
catalogContext:
|
|
2996
|
+
const v = a(w).selectedRange;
|
|
2997
|
+
await a(b).speak(v, {
|
|
2998
|
+
contentRoot: xi(v) ?? Jn(),
|
|
2999
|
+
language: a(d)?.contentLanguage,
|
|
3000
|
+
catalogContext: ea(v.startContainer, a(d))
|
|
3013
3001
|
});
|
|
3014
3002
|
} catch (v) {
|
|
3015
|
-
|
|
3003
|
+
aa(v) ? Nt(a(c).t("tools.textToSpeech.initFailed"), 5e3) : or(a(d)?.toolkitCoordinator, "textToSpeech", "tool-playback", v);
|
|
3016
3004
|
} finally {
|
|
3017
|
-
|
|
3005
|
+
O(D, !1);
|
|
3018
3006
|
}
|
|
3019
3007
|
}
|
|
3020
3008
|
}
|
|
3021
|
-
function
|
|
3022
|
-
if (!
|
|
3023
|
-
if (v.key === "Escape" &&
|
|
3024
|
-
v.preventDefault(),
|
|
3009
|
+
function Qr(v) {
|
|
3010
|
+
if (!ca(v)) {
|
|
3011
|
+
if (v.key === "Escape" && a(w).isVisible) {
|
|
3012
|
+
v.preventDefault(), nt();
|
|
3025
3013
|
return;
|
|
3026
3014
|
}
|
|
3027
|
-
|
|
3015
|
+
ol(v) && (a(w).isVisible || Kr({ force: !0 }), a(w).isVisible && (v.preventDefault(), ws().then(() => Do())));
|
|
3028
3016
|
}
|
|
3029
3017
|
}
|
|
3030
|
-
function
|
|
3018
|
+
function Bo(v) {
|
|
3031
3019
|
if (v.key === "Escape") {
|
|
3032
|
-
v.preventDefault(),
|
|
3020
|
+
v.preventDefault(), nt();
|
|
3033
3021
|
return;
|
|
3034
3022
|
}
|
|
3035
|
-
const
|
|
3023
|
+
const k = rr(), R = al({
|
|
3036
3024
|
key: v.key,
|
|
3037
|
-
activeIndex:
|
|
3038
|
-
count:
|
|
3039
|
-
direction: i &&
|
|
3025
|
+
activeIndex: a(Se),
|
|
3026
|
+
count: k.length,
|
|
3027
|
+
direction: i && a(m) && getComputedStyle(a(m)).direction === "rtl" ? "rtl" : "ltr"
|
|
3040
3028
|
});
|
|
3041
|
-
|
|
3029
|
+
R !== null && (v.preventDefault(), O(Se, R, !0), k[R]?.focus());
|
|
3042
3030
|
}
|
|
3043
|
-
function
|
|
3044
|
-
const
|
|
3045
|
-
|
|
3031
|
+
function zo(v) {
|
|
3032
|
+
const k = v.relatedTarget;
|
|
3033
|
+
k instanceof Node && a(m)?.contains(k) || (Lt = null, nt());
|
|
3046
3034
|
}
|
|
3047
|
-
function
|
|
3048
|
-
if (!
|
|
3049
|
-
const
|
|
3050
|
-
|
|
3035
|
+
function bn(v) {
|
|
3036
|
+
if (!a(w).isVisible || a(W) || !a(m)) return;
|
|
3037
|
+
const k = (typeof v.composedPath == "function" ? v.composedPath() : []).filter((R) => !!R);
|
|
3038
|
+
k.includes(a(m)) || k.length === 0 && a(m).contains(v.target) || (Lt = null, nt());
|
|
3051
3039
|
}
|
|
3052
|
-
|
|
3040
|
+
Wt(() => {
|
|
3053
3041
|
if (!i) return;
|
|
3054
|
-
const v =
|
|
3055
|
-
if (!v || !
|
|
3056
|
-
const
|
|
3057
|
-
return () => clearTimeout(
|
|
3058
|
-
}),
|
|
3042
|
+
const v = a(Qn);
|
|
3043
|
+
if (!v || !a(h)) return;
|
|
3044
|
+
const k = setTimeout(() => St(() => Io(v)), s);
|
|
3045
|
+
return () => clearTimeout(k);
|
|
3046
|
+
}), Wt(() => {
|
|
3059
3047
|
if (!i) return;
|
|
3060
|
-
const v =
|
|
3061
|
-
return v.addEventListener("click",
|
|
3062
|
-
|
|
3048
|
+
const v = a(vn) || document;
|
|
3049
|
+
return v.addEventListener("click", bn), v.addEventListener("touchstart", bn), document.addEventListener("selectionchange", tr), v.addEventListener("pointerdown", Xr), document.addEventListener("pointerup", pn), document.addEventListener("pointercancel", pn), document.addEventListener("keydown", Qr), window.addEventListener("scroll", _n, !0), window.addEventListener("resize", _n), () => {
|
|
3050
|
+
Ue !== null && clearTimeout(Ue), ze !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(ze), ze = null), v.removeEventListener("click", bn), v.removeEventListener("touchstart", bn), document.removeEventListener("selectionchange", tr), v.removeEventListener("pointerdown", Xr), document.removeEventListener("pointerup", pn), document.removeEventListener("pointercancel", pn), document.removeEventListener("keydown", Qr), window.removeEventListener("scroll", _n, !0), window.removeEventListener("resize", _n);
|
|
3063
3051
|
};
|
|
3064
|
-
}),
|
|
3065
|
-
|
|
3066
|
-
!
|
|
3052
|
+
}), Wt(() => {
|
|
3053
|
+
a(w).isVisible, a(m), a(cn), a(hn), a(dn), a(Zn), St(() => {
|
|
3054
|
+
!a(w).isVisible || !a(m) || nr();
|
|
3067
3055
|
});
|
|
3068
|
-
}),
|
|
3069
|
-
|
|
3070
|
-
const v =
|
|
3056
|
+
}), Wt(() => {
|
|
3057
|
+
a(w).isVisible, a(Se), a(hn), a(dn), a(D), a(cn), St(() => {
|
|
3058
|
+
const v = rr();
|
|
3071
3059
|
if (v.length === 0) return;
|
|
3072
|
-
const
|
|
3073
|
-
|
|
3074
|
-
|
|
3060
|
+
const k = Rr(a(Se), v.length);
|
|
3061
|
+
k !== a(Se) && O(Se, k, !0), v.forEach((R, q) => {
|
|
3062
|
+
R.tabIndex = q === k ? 0 : -1;
|
|
3075
3063
|
});
|
|
3076
3064
|
});
|
|
3077
|
-
}),
|
|
3078
|
-
if (!
|
|
3079
|
-
const v =
|
|
3080
|
-
L
|
|
3081
|
-
}),
|
|
3082
|
-
|
|
3083
|
-
}),
|
|
3084
|
-
|
|
3065
|
+
}), Wt(() => {
|
|
3066
|
+
if (!a(p)) return;
|
|
3067
|
+
const v = ia(a(p), (q) => {
|
|
3068
|
+
O(L, q, !0);
|
|
3069
|
+
}), k = na(a(p), (q) => {
|
|
3070
|
+
O(H, q, !0);
|
|
3071
|
+
}), R = ra(a(p), (q) => {
|
|
3072
|
+
O(d, q, !0);
|
|
3085
3073
|
});
|
|
3086
3074
|
return () => {
|
|
3087
|
-
|
|
3075
|
+
R(), k(), v();
|
|
3088
3076
|
};
|
|
3089
3077
|
});
|
|
3090
|
-
var
|
|
3078
|
+
var Uo = {
|
|
3091
3079
|
get enabled() {
|
|
3092
3080
|
return n();
|
|
3093
3081
|
},
|
|
3094
3082
|
set enabled(v = !0) {
|
|
3095
|
-
n(v),
|
|
3083
|
+
n(v), rn();
|
|
3096
3084
|
},
|
|
3097
3085
|
get selectionActions() {
|
|
3098
3086
|
return r();
|
|
3099
3087
|
},
|
|
3100
3088
|
set selectionActions(v = null) {
|
|
3101
|
-
r(v),
|
|
3102
|
-
}
|
|
3103
|
-
},
|
|
3104
|
-
|
|
3105
|
-
var
|
|
3106
|
-
var
|
|
3107
|
-
|
|
3108
|
-
var
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
}),
|
|
3089
|
+
r(v), rn();
|
|
3090
|
+
}
|
|
3091
|
+
}, ei = xl(), ti = yn(ei);
|
|
3092
|
+
Ti(ti, (v) => O(p, v), () => a(p));
|
|
3093
|
+
var ni = xe(ti, 2), Go = (v) => {
|
|
3094
|
+
var k = Al(), R = Mn(k);
|
|
3095
|
+
wi(R, 17, () => a(g), Ws, (Y, X) => {
|
|
3096
|
+
var z = wl(), be = Mn(z), Q = sr(be, !0);
|
|
3097
|
+
Vt(z), We(() => {
|
|
3098
|
+
ki(z, `background-color: ${a(X).hex ?? ""};`), G(z, "aria-label", a(X).label), G(z, "title", a(X).label), $n(Q, a(X).label);
|
|
3099
|
+
}), Ye("click", z, () => Jr(a(X).name)), he(Y, z);
|
|
3112
3100
|
});
|
|
3113
|
-
var
|
|
3114
|
-
var
|
|
3115
|
-
We((be,
|
|
3116
|
-
|
|
3117
|
-
}, [() =>
|
|
3101
|
+
var q = xe(R, 2), ae = xe(q, 2), It = (Y) => {
|
|
3102
|
+
var X = ml(), z = xe(yn(X), 2);
|
|
3103
|
+
We((be, Q) => {
|
|
3104
|
+
G(z, "aria-disabled", a(D)), G(z, "aria-label", be), G(z, "title", Q);
|
|
3105
|
+
}, [() => a(c).t("tools.annotationToolbar.readAloudA11y"), () => a(c).t("tools.annotationToolbar.readAloud")]), Ye("click", z, Fo), he(Y, X);
|
|
3118
3106
|
};
|
|
3119
|
-
|
|
3120
|
-
|
|
3107
|
+
it(ae, (Y) => {
|
|
3108
|
+
a(Zn) && Y(It);
|
|
3121
3109
|
});
|
|
3122
|
-
var
|
|
3123
|
-
var
|
|
3124
|
-
|
|
3125
|
-
const
|
|
3126
|
-
var
|
|
3127
|
-
let
|
|
3128
|
-
var
|
|
3129
|
-
var
|
|
3130
|
-
|
|
3131
|
-
},
|
|
3132
|
-
var
|
|
3133
|
-
We(() =>
|
|
3110
|
+
var wn = xe(ae, 2), Xo = (Y) => {
|
|
3111
|
+
var X = $l(), z = xe(yn(X), 2);
|
|
3112
|
+
wi(z, 17, () => a(cn), (be) => be.id, (be, Q) => {
|
|
3113
|
+
const Pt = /* @__PURE__ */ de(() => Ho(a(Q)));
|
|
3114
|
+
var Z = kl();
|
|
3115
|
+
let se;
|
|
3116
|
+
var qt = Mn(Z), Dt = (Ge) => {
|
|
3117
|
+
var wt = yl();
|
|
3118
|
+
Fs(wt, () => a(Pt), !0), Vt(wt), he(Ge, wt);
|
|
3119
|
+
}, ir = (Ge) => {
|
|
3120
|
+
var wt = Es();
|
|
3121
|
+
We(() => $n(wt, a(Q).label)), he(Ge, wt);
|
|
3134
3122
|
};
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
}),
|
|
3138
|
-
|
|
3139
|
-
}),
|
|
3140
|
-
}), he(
|
|
3123
|
+
it(qt, (Ge) => {
|
|
3124
|
+
a(Pt) ? Ge(Dt) : Ge(ir, -1);
|
|
3125
|
+
}), Vt(Z), We(() => {
|
|
3126
|
+
se = Gs(Z, 1, "pie-tool-annotation-toolbar__button svelte-1qnnvrt", null, se, { "pie-tool-annotation-toolbar__button--icon": !!a(Pt) }), G(Z, "data-pie-selection-action", a(Q).id), G(Z, "aria-label", a(Q).label), G(Z, "title", a(Q).tooltip || a(Q).label);
|
|
3127
|
+
}), Ye("click", Z, () => Vo(a(Q))), he(be, Z);
|
|
3128
|
+
}), he(Y, X);
|
|
3141
3129
|
};
|
|
3142
|
-
|
|
3143
|
-
|
|
3130
|
+
it(wn, (Y) => {
|
|
3131
|
+
a(cn).length > 0 && Y(Xo);
|
|
3144
3132
|
});
|
|
3145
|
-
var
|
|
3146
|
-
var
|
|
3147
|
-
var
|
|
3148
|
-
We((
|
|
3149
|
-
|
|
3150
|
-
}, [() =>
|
|
3133
|
+
var Zo = xe(wn, 2), Jo = (Y) => {
|
|
3134
|
+
var X = Sl(), z = xe(yn(X), 2), be = (Z) => {
|
|
3135
|
+
var se = El();
|
|
3136
|
+
We((qt, Dt) => {
|
|
3137
|
+
G(se, "aria-label", qt), G(se, "title", Dt);
|
|
3138
|
+
}, [() => a(c).t("tools.annotationToolbar.removeA11y"), () => a(c).t("tools.annotationToolbar.remove")]), Ye("click", se, Wo), he(Z, se);
|
|
3151
3139
|
};
|
|
3152
|
-
|
|
3153
|
-
|
|
3140
|
+
it(z, (Z) => {
|
|
3141
|
+
a(hn) && Z(be);
|
|
3154
3142
|
});
|
|
3155
|
-
var
|
|
3156
|
-
var
|
|
3157
|
-
We((
|
|
3158
|
-
|
|
3143
|
+
var Q = xe(z, 2), Pt = (Z) => {
|
|
3144
|
+
var se = Tl(), qt = sr(se, !0);
|
|
3145
|
+
We((Dt, ir, Ge) => {
|
|
3146
|
+
G(se, "aria-label", Dt), G(se, "title", ir), $n(qt, Ge);
|
|
3159
3147
|
}, [
|
|
3160
|
-
() =>
|
|
3161
|
-
() =>
|
|
3162
|
-
() =>
|
|
3163
|
-
]),
|
|
3148
|
+
() => a(c).t("tools.annotationToolbar.clearAllA11y"),
|
|
3149
|
+
() => a(c).t("tools.annotationToolbar.clearAll"),
|
|
3150
|
+
() => a(c).t("tools.annotationToolbar.clearAll")
|
|
3151
|
+
]), Ye("click", se, jo), he(Z, se);
|
|
3164
3152
|
};
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
}), he(
|
|
3153
|
+
it(Q, (Z) => {
|
|
3154
|
+
a(dn) && Z(Pt);
|
|
3155
|
+
}), he(Y, X);
|
|
3168
3156
|
};
|
|
3169
|
-
|
|
3170
|
-
(
|
|
3171
|
-
}),
|
|
3172
|
-
|
|
3157
|
+
it(Zo, (Y) => {
|
|
3158
|
+
(a(hn) || a(dn)) && Y(Jo);
|
|
3159
|
+
}), Vt(k), Ti(k, (Y) => O(m, Y), () => a(m)), We((Y, X, z, be, Q) => {
|
|
3160
|
+
G(k, "data-pie-placement", a(w).toolbarPosition.below ? "below" : "above"), ki(k, `left:${a(w).toolbarPosition.x}px; top:${a(w).toolbarPosition.y}px;`), G(k, "lang", Y), G(k, "dir", X), G(k, "aria-label", z), G(q, "aria-label", be), G(q, "title", Q), k.dir = k.dir;
|
|
3173
3161
|
}, [
|
|
3174
|
-
() =>
|
|
3175
|
-
() =>
|
|
3176
|
-
() =>
|
|
3177
|
-
() =>
|
|
3178
|
-
() =>
|
|
3179
|
-
]),
|
|
3162
|
+
() => a(c).getLocale(),
|
|
3163
|
+
() => a(c).getDirection?.() ?? "ltr",
|
|
3164
|
+
() => a(c).t("tools.annotationToolbar.toolbarA11y"),
|
|
3165
|
+
() => a(c).t("tools.annotationToolbar.underlineA11y"),
|
|
3166
|
+
() => a(c).t("tools.annotationToolbar.underline")
|
|
3167
|
+
]), Ye("keydown", k, Bo), Ye("focusout", k, zo), Ye("click", q, () => Jr(Ae.UNDERLINE)), he(v, k);
|
|
3180
3168
|
};
|
|
3181
|
-
|
|
3182
|
-
|
|
3169
|
+
it(ni, (v) => {
|
|
3170
|
+
a(w).isVisible && v(Go);
|
|
3183
3171
|
});
|
|
3184
|
-
var
|
|
3185
|
-
return We(() =>
|
|
3172
|
+
var Yo = xe(ni, 2), Ko = sr(Yo, !0);
|
|
3173
|
+
return We(() => $n(Ko, a(ne))), he(e, ei), Di(Uo);
|
|
3186
3174
|
}
|
|
3187
|
-
|
|
3175
|
+
ms([
|
|
3188
3176
|
"keydown",
|
|
3189
3177
|
"focusout",
|
|
3190
3178
|
"click"
|
|
3191
3179
|
]);
|
|
3192
|
-
|
|
3180
|
+
Cl("pie-tool-annotation-toolbar", il(Rl, {
|
|
3193
3181
|
enabled: {
|
|
3194
3182
|
attribute: "enabled",
|
|
3195
3183
|
type: "Boolean"
|
|
3196
3184
|
},
|
|
3197
3185
|
selectionActions: { type: "Object" }
|
|
3198
|
-
}, [], [], { mode: "open" },
|
|
3199
|
-
function
|
|
3186
|
+
}, [], [], { mode: "open" }, Qo));
|
|
3187
|
+
function Cl(e, t) {
|
|
3200
3188
|
customElements.get(e) || customElements.define(e, t);
|
|
3201
3189
|
}
|
|
3202
3190
|
export {
|
|
3203
|
-
|
|
3191
|
+
Rl as default
|
|
3204
3192
|
};
|