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