@pie-players/pie-tool-answer-eliminator 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 +44 -38
- package/dist/tool-answer-eliminator.js +963 -954
- package/package.json +4 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { coerceBooleanAttributes as
|
|
2
|
-
import { ZIndexLayer as
|
|
3
|
-
import { parseVersionedTagName as
|
|
1
|
+
import { coerceBooleanAttributes as Hn } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
+
import { ZIndexLayer as Nn, connectToolRuntimeContext as Pn, connectToolShellContext as Bn, createToolCoordinatorRegistration as Fn } from "@pie-players/pie-assessment-toolkit/tools/registration";
|
|
3
|
+
import { parseVersionedTagName as Kn } from "@pie-players/pie-players-shared/pie/tag-names";
|
|
4
4
|
if (typeof window < "u") {
|
|
5
|
-
var
|
|
6
|
-
((
|
|
5
|
+
var vr, _r;
|
|
6
|
+
((vr = (_r = window).__svelte ?? (_r.__svelte = {})).v ?? (vr.v = /* @__PURE__ */ new Set())).add("5");
|
|
7
7
|
}
|
|
8
8
|
var bt = {}, H = /* @__PURE__ */ Symbol("uninitialized");
|
|
9
|
-
var
|
|
9
|
+
var Gn = Array.isArray, Wn = Array.prototype.indexOf, wt = Array.prototype.includes, Dn = Array.from, St = Object.keys, et = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, jn = Object.prototype, qn = Array.prototype, Yn = Object.getPrototypeOf, pr = Object.isExtensible, Vn = () => {
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function zn(t) {
|
|
12
12
|
for (var e = 0; e < t.length; e++) t[e]();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Un() {
|
|
15
15
|
var t, e;
|
|
16
16
|
return {
|
|
17
17
|
promise: new Promise((r, n) => {
|
|
@@ -21,70 +21,70 @@ function zn() {
|
|
|
21
21
|
reject: e
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function tt(t) {
|
|
25
25
|
"@babel/helpers - typeof";
|
|
26
|
-
return
|
|
26
|
+
return tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
27
27
|
return typeof e;
|
|
28
28
|
} : function(e) {
|
|
29
29
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
30
|
-
},
|
|
30
|
+
}, tt(t);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
if (
|
|
32
|
+
function Xn(t, e) {
|
|
33
|
+
if (tt(t) != "object" || !t) return t;
|
|
34
34
|
var r = t[Symbol.toPrimitive];
|
|
35
35
|
if (r !== void 0) {
|
|
36
36
|
var n = r.call(t, e || "default");
|
|
37
|
-
if (
|
|
37
|
+
if (tt(n) != "object") return n;
|
|
38
38
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
39
39
|
}
|
|
40
40
|
return (e === "string" ? String : Number)(t);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
var e =
|
|
44
|
-
return
|
|
42
|
+
function Qn(t) {
|
|
43
|
+
var e = Xn(t, "string");
|
|
44
|
+
return tt(e) == "symbol" ? e : e + "";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return (e =
|
|
46
|
+
function o(t, e, r) {
|
|
47
|
+
return (e = Qn(e)) in t ? Object.defineProperty(t, e, {
|
|
48
48
|
value: r,
|
|
49
49
|
enumerable: !0,
|
|
50
50
|
configurable: !0,
|
|
51
51
|
writable: !0
|
|
52
52
|
}) : t[e] = r, t;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var Ns = 1 << 24, ie = 1024, z = 2048, Ne = 4096, xr = 8192, Zn = 16384, Hr = 32768, mr = 1 << 25, Nr = 65536, Ps = 1 << 17, Bs = 1 << 18, at = 1 << 19, Jn = 1 << 20, gr = 1 << 21, Fs = 1 << 22, Pr = 1 << 23, Qe = /* @__PURE__ */ Symbol("$state"), Br = /* @__PURE__ */ Symbol("component"), Fr = /* @__PURE__ */ Symbol("legacy props"), ei = /* @__PURE__ */ Symbol("proxy path"), ti = /* @__PURE__ */ Symbol("attributes"), ri = /* @__PURE__ */ Symbol("class"), ni = /* @__PURE__ */ Symbol("style"), ii = /* @__PURE__ */ Symbol("text"), xt = new class extends Error {
|
|
55
55
|
constructor(...e) {
|
|
56
|
-
super(...e),
|
|
56
|
+
super(...e), o(this, "name", "StaleReactionError"), o(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
57
57
|
}
|
|
58
|
-
}(),
|
|
59
|
-
function
|
|
58
|
+
}(), Gs = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
59
|
+
function si() {
|
|
60
60
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Kr(t) {
|
|
63
63
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function ai() {
|
|
66
66
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
67
67
|
}
|
|
68
68
|
var J = !1;
|
|
69
|
-
function
|
|
69
|
+
function ut(t) {
|
|
70
70
|
J = t;
|
|
71
71
|
}
|
|
72
72
|
var F;
|
|
73
|
-
function
|
|
73
|
+
function rt(t) {
|
|
74
74
|
if (t === null)
|
|
75
|
-
throw
|
|
75
|
+
throw Kr(), bt;
|
|
76
76
|
return F = t;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return
|
|
78
|
+
function Gr() {
|
|
79
|
+
return rt(/* @__PURE__ */ Ve(F));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function li(t = 1) {
|
|
82
82
|
if (J) {
|
|
83
83
|
for (var e = t, r = F; e--; ) r = /* @__PURE__ */ Ve(r);
|
|
84
84
|
F = r;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function oi(t = !0) {
|
|
88
88
|
for (var e = 0, r = F; ; ) {
|
|
89
89
|
if (r.nodeType === 8) {
|
|
90
90
|
var n = r.data;
|
|
@@ -97,69 +97,69 @@ function li(t = !0) {
|
|
|
97
97
|
t && r.remove(), r = i;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Wr(t) {
|
|
101
101
|
return t === this.v;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function ui(t, e) {
|
|
104
104
|
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return !
|
|
106
|
+
function Dr(t) {
|
|
107
|
+
return !ui(t, this.v);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function fi(t) {
|
|
110
110
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
111
111
|
}
|
|
112
112
|
function ci(t) {
|
|
113
113
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function hi() {
|
|
116
116
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function di(t) {
|
|
119
119
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function vi() {
|
|
122
122
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function _i() {
|
|
125
125
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function pi(t) {
|
|
128
128
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function mi() {
|
|
131
131
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
132
132
|
}
|
|
133
133
|
function gi() {
|
|
134
134
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function yi() {
|
|
137
137
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function bi() {
|
|
140
140
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
141
141
|
}
|
|
142
|
-
var
|
|
143
|
-
function
|
|
144
|
-
return t.label = e,
|
|
142
|
+
var Pe = !1, lt = !1;
|
|
143
|
+
function yr(t, e) {
|
|
144
|
+
return t.label = e, wi(t.v, e), t;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
return t?.[
|
|
146
|
+
function wi(t, e) {
|
|
147
|
+
return t?.[ei]?.(e), t;
|
|
148
148
|
}
|
|
149
|
-
var
|
|
149
|
+
var O = null;
|
|
150
150
|
function At(t) {
|
|
151
|
-
|
|
151
|
+
O = t;
|
|
152
152
|
}
|
|
153
153
|
function jr(t, e = !1, r) {
|
|
154
|
-
|
|
155
|
-
p:
|
|
154
|
+
O = {
|
|
155
|
+
p: O,
|
|
156
156
|
i: !1,
|
|
157
157
|
c: null,
|
|
158
158
|
e: null,
|
|
159
159
|
s: t,
|
|
160
160
|
x: null,
|
|
161
|
-
r:
|
|
162
|
-
l:
|
|
161
|
+
r: T,
|
|
162
|
+
l: lt && !e ? {
|
|
163
163
|
s: null,
|
|
164
164
|
u: null,
|
|
165
165
|
$: []
|
|
@@ -167,205 +167,205 @@ function jr(t, e = !1, r) {
|
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
function qr(t) {
|
|
170
|
-
var e =
|
|
170
|
+
var e = O, r = e.e;
|
|
171
171
|
if (r !== null) {
|
|
172
172
|
e.e = null;
|
|
173
|
-
for (var n of r)
|
|
173
|
+
for (var n of r) vn(n);
|
|
174
174
|
}
|
|
175
|
-
return t !== void 0 && (e.x = t), e.i = !0,
|
|
175
|
+
return t !== void 0 && (e.x = t), e.i = !0, O = e.p, rr(t);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
return
|
|
177
|
+
function rr(t = {}) {
|
|
178
|
+
return et(t, Br, { value: !0 }), t;
|
|
179
179
|
}
|
|
180
180
|
function Ht() {
|
|
181
|
-
return !
|
|
181
|
+
return !lt || O !== null && O.l === null;
|
|
182
182
|
}
|
|
183
|
-
var
|
|
184
|
-
function
|
|
185
|
-
var t =
|
|
186
|
-
|
|
183
|
+
var $e = [];
|
|
184
|
+
function Yr() {
|
|
185
|
+
var t = $e;
|
|
186
|
+
$e = [], zn(t);
|
|
187
187
|
}
|
|
188
188
|
function Me(t) {
|
|
189
|
-
if (
|
|
190
|
-
var e =
|
|
189
|
+
if ($e.length === 0 && !Ze) {
|
|
190
|
+
var e = $e;
|
|
191
191
|
queueMicrotask(() => {
|
|
192
|
-
e ===
|
|
192
|
+
e === $e && Yr();
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
$e.push(t);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
for (;
|
|
197
|
+
function Si() {
|
|
198
|
+
for (; $e.length > 0; ) Yr();
|
|
199
199
|
}
|
|
200
|
-
var
|
|
200
|
+
var Ai = ~(z | Ne | ie);
|
|
201
201
|
function M(t, e) {
|
|
202
|
-
t.f = t.f &
|
|
202
|
+
t.f = t.f & Ai | e;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function nr(t) {
|
|
205
205
|
(t.f & 512) !== 0 || t.deps === null ? M(t, ie) : M(t, Ne);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Vr(t, e, r) {
|
|
208
208
|
(t.f & 2048) !== 0 ? e.add(t) : (t.f & 4096) !== 0 && r.add(t), M(t, ie);
|
|
209
209
|
}
|
|
210
210
|
function Nt(t) {
|
|
211
|
-
var e = A, r =
|
|
212
|
-
oe(null),
|
|
211
|
+
var e = A, r = T;
|
|
212
|
+
oe(null), ye(null);
|
|
213
213
|
try {
|
|
214
214
|
return t();
|
|
215
215
|
} finally {
|
|
216
|
-
oe(e),
|
|
216
|
+
oe(e), ye(r);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
// @__NO_SIDE_EFFECTS__
|
|
220
220
|
function Et(t) {
|
|
221
221
|
var e = 2 | z;
|
|
222
|
-
return
|
|
223
|
-
ctx:
|
|
222
|
+
return T !== null && (T.f |= at), {
|
|
223
|
+
ctx: O,
|
|
224
224
|
deps: null,
|
|
225
225
|
effects: null,
|
|
226
|
-
equals:
|
|
226
|
+
equals: Wr,
|
|
227
227
|
f: e,
|
|
228
228
|
fn: t,
|
|
229
229
|
reactions: null,
|
|
230
230
|
rv: 0,
|
|
231
231
|
v: H,
|
|
232
232
|
wv: 0,
|
|
233
|
-
parent:
|
|
233
|
+
parent: T,
|
|
234
234
|
ac: null
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
|
-
var
|
|
237
|
+
var Ei = /* @__PURE__ */ Symbol("obsolete");
|
|
238
238
|
// @__NO_SIDE_EFFECTS__
|
|
239
|
-
function
|
|
239
|
+
function Kt(t) {
|
|
240
240
|
const e = /* @__PURE__ */ Et(t);
|
|
241
|
-
return
|
|
241
|
+
return Pe || gn(e), e;
|
|
242
242
|
}
|
|
243
243
|
// @__NO_SIDE_EFFECTS__
|
|
244
|
-
function
|
|
244
|
+
function Ti(t) {
|
|
245
245
|
const e = /* @__PURE__ */ Et(t);
|
|
246
|
-
return e.equals =
|
|
246
|
+
return e.equals = Dr, e;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function $i(t) {
|
|
249
249
|
var e = t.effects;
|
|
250
250
|
if (e !== null) {
|
|
251
251
|
t.effects = null;
|
|
252
252
|
for (var r = 0; r < e.length; r += 1) ee(e[r]);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
var e, r =
|
|
257
|
-
if (!
|
|
258
|
-
return
|
|
259
|
-
|
|
255
|
+
function ir(t) {
|
|
256
|
+
var e, r = T, n = t.parent;
|
|
257
|
+
if (!ve && n !== null && t.v !== H && (n.f & 24576) !== 0)
|
|
258
|
+
return si(), t.v;
|
|
259
|
+
ye(n);
|
|
260
260
|
try {
|
|
261
|
-
|
|
261
|
+
$i(t), e = Sn(t);
|
|
262
262
|
} finally {
|
|
263
|
-
|
|
263
|
+
ye(r);
|
|
264
264
|
}
|
|
265
265
|
return e;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
var e =
|
|
269
|
-
if (!t.equals(e) && (t.wv =
|
|
267
|
+
function zr(t) {
|
|
268
|
+
var e = ir(t);
|
|
269
|
+
if (!t.equals(e) && (t.wv = bn(), (!E?.is_fork || t.deps === null) && (E !== null ? (E.capture(t, e, !0), Yt?.capture(t, e, !0)) : t.v = e, t.deps === null))) {
|
|
270
270
|
M(t, ie);
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
|
-
|
|
273
|
+
ve || (B !== null ? (or() || E?.is_fork) && B.set(t, e) : nr(t));
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Ci(t) {
|
|
276
276
|
if (t.effects !== null)
|
|
277
277
|
for (const e of t.effects) (e.teardown || e.ac) && (e.teardown?.(), e.ac !== null && Nt(() => {
|
|
278
278
|
e.ac.abort(xt), e.ac = null;
|
|
279
|
-
}), e.fn !== null && (e.teardown =
|
|
279
|
+
}), e.fn !== null && (e.teardown = Vn), it(e, 0), fr(e));
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Ur(t) {
|
|
282
282
|
if (t.effects !== null)
|
|
283
|
-
for (const e of t.effects) e.teardown && e.fn !== null &&
|
|
283
|
+
for (const e of t.effects) e.teardown && e.fn !== null && qe(e);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Xr(t, e) {
|
|
286
286
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
|
|
288
|
+
function sr(t, e) {
|
|
289
|
+
Xr(t, e), e.add(t);
|
|
290
290
|
}
|
|
291
291
|
function S(t, e, r) {
|
|
292
|
-
|
|
292
|
+
Xr(t, e), e.set(t, r);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function g(t, e, r) {
|
|
295
295
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : r;
|
|
296
296
|
throw new TypeError("Private element is not present on this object");
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
return t.set(
|
|
298
|
+
function m(t, e, r) {
|
|
299
|
+
return t.set(g(t, e), r), r;
|
|
300
300
|
}
|
|
301
301
|
function a(t, e) {
|
|
302
|
-
return t.get(
|
|
302
|
+
return t.get(g(t, e));
|
|
303
303
|
}
|
|
304
|
-
var
|
|
305
|
-
var
|
|
304
|
+
var Qr, Tt = null, Ke = null, E = null, Yt = null, B = null, Vt = null, Ze = !1, Gt = !1, nt = null, $t = null, Zr = 0;
|
|
305
|
+
var ki = 1, Ct = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakSet(), Ye = class Jr {
|
|
306
306
|
constructor() {
|
|
307
|
-
|
|
307
|
+
sr(this, C), o(this, "id", ki++), S(this, Ct, !1), o(this, "linked", !0), S(this, Re, null), S(this, Ce, null), o(this, "async_deriveds", /* @__PURE__ */ new Map()), o(this, "current", /* @__PURE__ */ new Map()), o(this, "previous", /* @__PURE__ */ new Map()), S(this, kt, /* @__PURE__ */ new Set()), S(this, ft, /* @__PURE__ */ new Set()), S(this, Ge, 0), S(this, Ae, /* @__PURE__ */ new Map()), S(this, ze, null), S(this, X, []), S(this, zt, []), S(this, xe, /* @__PURE__ */ new Set()), S(this, de, /* @__PURE__ */ new Set()), S(this, pe, /* @__PURE__ */ new Map()), S(this, _t, /* @__PURE__ */ new Set()), o(this, "is_fork", !1), S(this, Ue, !1), Ke === null ? Tt = Ke = this : (m(Ce, Ke, this), m(Re, this, Ke)), Ke = this;
|
|
308
308
|
}
|
|
309
309
|
skip_effect(e) {
|
|
310
|
-
a(
|
|
310
|
+
a(pe, this).has(e) || a(pe, this).set(e, {
|
|
311
311
|
d: [],
|
|
312
312
|
m: []
|
|
313
|
-
}), a(
|
|
313
|
+
}), a(_t, this).delete(e);
|
|
314
314
|
}
|
|
315
315
|
unskip_effect(e, r = (n) => this.schedule(n)) {
|
|
316
|
-
var n = a(
|
|
316
|
+
var n = a(pe, this).get(e);
|
|
317
317
|
if (n) {
|
|
318
|
-
a(
|
|
318
|
+
a(pe, this).delete(e);
|
|
319
319
|
for (var i of n.d)
|
|
320
320
|
M(i, z), r(i);
|
|
321
321
|
for (i of n.m)
|
|
322
322
|
M(i, Ne), r(i);
|
|
323
323
|
}
|
|
324
|
-
a(
|
|
324
|
+
a(_t, this).add(e);
|
|
325
325
|
}
|
|
326
326
|
capture(e, r, n = !1) {
|
|
327
|
-
e.v !== H && !this.previous.has(e) && this.previous.set(e, e.v), (e.f & 8388608) === 0 && (this.current.set(e, [r, n]),
|
|
327
|
+
e.v !== H && !this.previous.has(e) && this.previous.set(e, e.v), (e.f & 8388608) === 0 && (this.current.set(e, [r, n]), B?.set(e, r)), this.is_fork || (e.v = r);
|
|
328
328
|
}
|
|
329
329
|
activate() {
|
|
330
330
|
E = this;
|
|
331
331
|
}
|
|
332
332
|
deactivate() {
|
|
333
|
-
E = null,
|
|
333
|
+
E = null, B = null;
|
|
334
334
|
}
|
|
335
335
|
flush() {
|
|
336
336
|
try {
|
|
337
|
-
|
|
337
|
+
Gt = !0, E = this, g(C, this, Lt).call(this);
|
|
338
338
|
} finally {
|
|
339
|
-
|
|
339
|
+
Zr = 0, Vt = null, nt = null, $t = null, Gt = !1, E = null, B = null, le.clear();
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
discard() {
|
|
343
343
|
for (const e of a(ft, this)) e(this);
|
|
344
344
|
a(ft, this).clear();
|
|
345
|
-
for (const e of this.async_deriveds.values()) e.reject(
|
|
346
|
-
|
|
345
|
+
for (const e of this.async_deriveds.values()) e.reject(Ei);
|
|
346
|
+
g(C, this, Rt).call(this), a(ze, this)?.resolve();
|
|
347
347
|
}
|
|
348
348
|
register_created_effect(e) {
|
|
349
|
-
a(
|
|
349
|
+
a(zt, this).push(e);
|
|
350
350
|
}
|
|
351
351
|
increment(e, r) {
|
|
352
|
-
if (
|
|
352
|
+
if (m(Ge, this, a(Ge, this) + 1), e) {
|
|
353
353
|
let n = a(Ae, this).get(r) ?? 0;
|
|
354
354
|
a(Ae, this).set(r, n + 1);
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
decrement(e, r) {
|
|
358
|
-
if (
|
|
358
|
+
if (m(Ge, this, a(Ge, this) - 1), e) {
|
|
359
359
|
let n = a(Ae, this).get(r) ?? 0;
|
|
360
360
|
n === 1 ? a(Ae, this).delete(r) : a(Ae, this).set(r, n - 1);
|
|
361
361
|
}
|
|
362
|
-
a(Ue, this) || (
|
|
363
|
-
|
|
362
|
+
a(Ue, this) || (m(Ue, this, !0), Me(() => {
|
|
363
|
+
m(Ue, this, !1), this.linked && this.flush();
|
|
364
364
|
}));
|
|
365
365
|
}
|
|
366
366
|
transfer_effects(e, r) {
|
|
367
367
|
for (const n of e) a(xe, this).add(n);
|
|
368
|
-
for (const n of r) a(
|
|
368
|
+
for (const n of r) a(de, this).add(n);
|
|
369
369
|
e.clear(), r.clear();
|
|
370
370
|
}
|
|
371
371
|
oncommit(e) {
|
|
@@ -375,25 +375,25 @@ var $i = 1, $t = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap
|
|
|
375
375
|
a(ft, this).add(e);
|
|
376
376
|
}
|
|
377
377
|
settled() {
|
|
378
|
-
return (a(ze, this) ??
|
|
378
|
+
return (a(ze, this) ?? m(ze, this, Un())).promise;
|
|
379
379
|
}
|
|
380
380
|
static ensure() {
|
|
381
381
|
if (E === null) {
|
|
382
|
-
const e = E = new
|
|
383
|
-
!
|
|
384
|
-
a(
|
|
382
|
+
const e = E = new Jr();
|
|
383
|
+
!Gt && !Ze && Me(() => {
|
|
384
|
+
a(Ct, e) || e.flush();
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
return E;
|
|
388
388
|
}
|
|
389
389
|
apply() {
|
|
390
|
-
if (!
|
|
391
|
-
|
|
390
|
+
if (!Pe || !this.is_fork && a(Re, this) === null && a(Ce, this) === null) {
|
|
391
|
+
B = null;
|
|
392
392
|
return;
|
|
393
393
|
}
|
|
394
|
-
|
|
395
|
-
for (const [r, [n]] of this.current)
|
|
396
|
-
for (let r =
|
|
394
|
+
B = /* @__PURE__ */ new Map();
|
|
395
|
+
for (const [r, [n]] of this.current) B.set(r, n);
|
|
396
|
+
for (let r = Tt; r !== null; r = a(Ce, r))
|
|
397
397
|
if (!(r === this || r.is_fork)) {
|
|
398
398
|
var e = !1;
|
|
399
399
|
if (r.id < this.id) {
|
|
@@ -404,23 +404,23 @@ var $i = 1, $t = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap
|
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
if (!e)
|
|
407
|
-
for (const [n, i] of r.previous)
|
|
407
|
+
for (const [n, i] of r.previous) B.has(n) || B.set(n, i);
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
schedule(e) {
|
|
411
|
-
if (
|
|
411
|
+
if (Vt = e, e.b?.is_pending && (e.f & 16777228) !== 0 && (e.f & 32768) === 0) {
|
|
412
412
|
e.b.defer_effect(e);
|
|
413
413
|
return;
|
|
414
414
|
}
|
|
415
415
|
a(X, this).push(e);
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
|
-
|
|
418
|
+
Qr = Ye;
|
|
419
419
|
function br() {
|
|
420
420
|
if (this.is_fork) return !0;
|
|
421
421
|
for (const r of a(Ae, this).keys()) {
|
|
422
422
|
for (var t = r, e = !1; t.parent !== null; ) {
|
|
423
|
-
if (a(
|
|
423
|
+
if (a(pe, this).has(t)) {
|
|
424
424
|
e = !0;
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
@@ -430,7 +430,7 @@ function br() {
|
|
|
430
430
|
}
|
|
431
431
|
return !1;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function en() {
|
|
434
434
|
var t = [];
|
|
435
435
|
for (const i of a(X, this))
|
|
436
436
|
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
@@ -447,55 +447,55 @@ function Jr() {
|
|
|
447
447
|
}
|
|
448
448
|
r || t.push(e);
|
|
449
449
|
}
|
|
450
|
-
return
|
|
450
|
+
return m(X, this, []), t;
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
|
|
452
|
+
function Lt() {
|
|
453
|
+
m(Ct, this, !0);
|
|
454
454
|
for (const l of a(xe, this))
|
|
455
|
-
a(
|
|
456
|
-
for (const l of a(
|
|
455
|
+
a(de, this).delete(l), M(l, z), this.schedule(l);
|
|
456
|
+
for (const l of a(de, this))
|
|
457
457
|
M(l, Ne), this.schedule(l);
|
|
458
458
|
this.apply();
|
|
459
|
-
for (var t =
|
|
460
|
-
|
|
461
|
-
for (const l of
|
|
462
|
-
|
|
463
|
-
} catch (
|
|
464
|
-
throw
|
|
459
|
+
for (var t = nt = [], e = [], r = $t = []; a(X, this).length > 0; ) {
|
|
460
|
+
Zr++ > 1e3 && (g(C, this, Rt).call(this), Ii());
|
|
461
|
+
for (const l of g(C, this, en).call(this)) try {
|
|
462
|
+
g(C, this, tn).call(this, l, t, e);
|
|
463
|
+
} catch (u) {
|
|
464
|
+
throw sn(l), g(C, this, br).call(this) || this.discard(), u;
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
if (E = null, r.length > 0) {
|
|
468
|
-
var n =
|
|
468
|
+
var n = Qr.ensure();
|
|
469
469
|
for (const l of r) n.schedule(l);
|
|
470
470
|
}
|
|
471
|
-
if (
|
|
472
|
-
|
|
473
|
-
for (const [l,
|
|
474
|
-
r.length > 0 &&
|
|
471
|
+
if (nt = null, $t = null, g(C, this, br).call(this)) {
|
|
472
|
+
g(C, this, Xe).call(this, e), g(C, this, Xe).call(this, t);
|
|
473
|
+
for (const [l, u] of a(pe, this)) nn(l, u);
|
|
474
|
+
r.length > 0 && g(C, E, Lt).call(E);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
|
-
const i =
|
|
477
|
+
const i = g(C, this, Li).call(this);
|
|
478
478
|
if (i) {
|
|
479
|
-
|
|
479
|
+
g(C, this, Xe).call(this, e), g(C, this, Xe).call(this, t), g(C, i, Ri).call(i, this);
|
|
480
480
|
return;
|
|
481
481
|
}
|
|
482
|
-
a(xe, this).clear(), a(
|
|
482
|
+
a(xe, this).clear(), a(de, this).clear();
|
|
483
483
|
for (const l of a(kt, this)) l(this);
|
|
484
|
-
a(kt, this).clear(),
|
|
484
|
+
a(kt, this).clear(), Yt = this, wr(e), wr(t), Yt = null, a(ze, this)?.resolve();
|
|
485
485
|
var s = E;
|
|
486
|
-
if (a(
|
|
486
|
+
if (a(Ge, this) === 0 && (a(X, this).length === 0 || s !== null) && (g(C, this, Rt).call(this), Pe && (g(C, this, Oi).call(this), E = s)), a(X, this).length > 0)
|
|
487
487
|
if (s !== null) {
|
|
488
488
|
for (const l of a(X, this)) a(X, s).push(l);
|
|
489
|
-
|
|
489
|
+
m(X, this, []);
|
|
490
490
|
} else s = this;
|
|
491
|
-
s !== null && (le.clear(),
|
|
491
|
+
s !== null && (le.clear(), g(C, s, Lt).call(s));
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function tn(t, e, r) {
|
|
494
494
|
t.f ^= ie;
|
|
495
495
|
for (var n = t.first; n !== null; ) {
|
|
496
496
|
var i = n.f, s = (i & 96) !== 0;
|
|
497
|
-
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(
|
|
498
|
-
s ? n.f ^= ie : (i & 4) !== 0 ? e.push(n) :
|
|
497
|
+
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(pe, this).has(n)) && n.fn !== null) {
|
|
498
|
+
s ? n.f ^= ie : (i & 4) !== 0 ? e.push(n) : Pe && (i & 16777224) !== 0 ? r.push(n) : ot(n) && ((i & 16) !== 0 && a(de, this).add(n), qe(n));
|
|
499
499
|
var l = n.first;
|
|
500
500
|
if (l !== null) {
|
|
501
501
|
n = l;
|
|
@@ -503,21 +503,21 @@ function en(t, e, r) {
|
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
for (; n !== null; ) {
|
|
506
|
-
var
|
|
507
|
-
if (
|
|
508
|
-
n =
|
|
506
|
+
var u = n.next;
|
|
507
|
+
if (u !== null) {
|
|
508
|
+
n = u;
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
511
511
|
n = n.parent;
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
for (var t = a(
|
|
515
|
+
function Li() {
|
|
516
|
+
for (var t = a(Re, this); t !== null; ) {
|
|
517
517
|
if (!t.is_fork) {
|
|
518
518
|
for (const [e, [, r]] of this.current) if (t.current.has(e) && !r) return t;
|
|
519
519
|
}
|
|
520
|
-
t = a(
|
|
520
|
+
t = a(Re, t);
|
|
521
521
|
}
|
|
522
522
|
return null;
|
|
523
523
|
}
|
|
@@ -528,7 +528,7 @@ function Ri(t) {
|
|
|
528
528
|
const i = this.async_deriveds.get(r);
|
|
529
529
|
i && n.promise.then(i.resolve).catch(i.reject);
|
|
530
530
|
}
|
|
531
|
-
t.async_deriveds.clear(), this.transfer_effects(a(xe, t), a(
|
|
531
|
+
t.async_deriveds.clear(), this.transfer_effects(a(xe, t), a(de, t));
|
|
532
532
|
const e = (r) => {
|
|
533
533
|
var n = r.reactions;
|
|
534
534
|
if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
|
|
@@ -537,76 +537,76 @@ function Ri(t) {
|
|
|
537
537
|
if ((i & 2) !== 0) e(l);
|
|
538
538
|
else {
|
|
539
539
|
var s = l;
|
|
540
|
-
i & 4194320 && !this.async_deriveds.has(s) && (a(
|
|
540
|
+
i & 4194320 && !this.async_deriveds.has(s) && (a(de, this).delete(s), M(s, z), this.schedule(s));
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
544
|
for (const r of this.current.keys()) e(r);
|
|
545
|
-
this.oncommit(() => t.discard()),
|
|
545
|
+
this.oncommit(() => t.discard()), g(C, t, Rt).call(t), E = this, g(C, this, Lt).call(this);
|
|
546
546
|
}
|
|
547
547
|
function Xe(t) {
|
|
548
|
-
for (var e = 0; e < t.length; e += 1)
|
|
548
|
+
for (var e = 0; e < t.length; e += 1) Vr(t[e], a(xe, this), a(de, this));
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
for (let _ =
|
|
550
|
+
function Oi() {
|
|
551
|
+
for (let _ = Tt; _ !== null; _ = a(Ce, _)) {
|
|
552
552
|
var t = _.id < this.id, e = [];
|
|
553
|
-
for (const [
|
|
554
|
-
if (_.current.has(
|
|
555
|
-
var r = _.current.get(
|
|
556
|
-
if (t && d !== r) _.current.set(
|
|
553
|
+
for (const [f, [d, h]] of this.current) {
|
|
554
|
+
if (_.current.has(f)) {
|
|
555
|
+
var r = _.current.get(f)[0];
|
|
556
|
+
if (t && d !== r) _.current.set(f, [d, h]);
|
|
557
557
|
else continue;
|
|
558
558
|
}
|
|
559
|
-
e.push(
|
|
559
|
+
e.push(f);
|
|
560
560
|
}
|
|
561
|
-
if (t) for (const [
|
|
562
|
-
const h = _.async_deriveds.get(
|
|
561
|
+
if (t) for (const [f, d] of this.async_deriveds) {
|
|
562
|
+
const h = _.async_deriveds.get(f);
|
|
563
563
|
h && d.promise.then(h.resolve).catch(h.reject);
|
|
564
564
|
}
|
|
565
|
-
var n = [..._.current.keys()].filter((
|
|
566
|
-
if (!(!a(
|
|
567
|
-
var i = n.filter((
|
|
565
|
+
var n = [..._.current.keys()].filter((f) => !_.current.get(f)[1]);
|
|
566
|
+
if (!(!a(Ct, _) || n.length === 0)) {
|
|
567
|
+
var i = n.filter((f) => !this.current.has(f));
|
|
568
568
|
if (i.length === 0)
|
|
569
569
|
t && _.discard();
|
|
570
570
|
else if (e.length > 0) {
|
|
571
|
-
if (t) for (const
|
|
572
|
-
(d.f & 4194320) !== 0 ? _.schedule(d) :
|
|
571
|
+
if (t) for (const f of a(_t, this)) _.unskip_effect(f, (d) => {
|
|
572
|
+
(d.f & 4194320) !== 0 ? _.schedule(d) : g(C, _, Xe).call(_, [d]);
|
|
573
573
|
});
|
|
574
574
|
_.activate();
|
|
575
575
|
var s = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
|
|
576
|
-
for (var
|
|
576
|
+
for (var u of e) rn(u, i, s, l);
|
|
577
577
|
l = /* @__PURE__ */ new Map();
|
|
578
|
-
var
|
|
579
|
-
const h = this.current.get(
|
|
578
|
+
var c = [..._.current].filter(([f, d]) => {
|
|
579
|
+
const h = this.current.get(f);
|
|
580
580
|
return h ? h[0] !== d[0] || h[1] !== d[1] : !0;
|
|
581
|
-
}).map(([
|
|
582
|
-
if (
|
|
583
|
-
for (const
|
|
581
|
+
}).map(([f]) => f);
|
|
582
|
+
if (c.length > 0)
|
|
583
|
+
for (const f of a(zt, this)) (f.f & 155648) === 0 && ar(f, c, l) && ((f.f & 4194320) !== 0 ? (M(f, z), _.schedule(f)) : a(xe, _).add(f));
|
|
584
584
|
if (a(X, _).length > 0 && !a(Ue, _)) {
|
|
585
585
|
_.apply();
|
|
586
|
-
for (var
|
|
586
|
+
for (var y of g(C, _, en).call(_)) g(C, _, tn).call(_, y, [], []);
|
|
587
587
|
}
|
|
588
588
|
_.deactivate();
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Rt() {
|
|
594
594
|
if (this.linked) {
|
|
595
|
-
var t = a(
|
|
596
|
-
t === null ?
|
|
595
|
+
var t = a(Re, this), e = a(Ce, this);
|
|
596
|
+
t === null ? Tt = e : m(Ce, t, e), e === null ? Ke = t : m(Re, e, t), this.linked = !1;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
var e =
|
|
601
|
-
|
|
599
|
+
function _e(t) {
|
|
600
|
+
var e = Ze;
|
|
601
|
+
Ze = !0;
|
|
602
602
|
try {
|
|
603
603
|
var r;
|
|
604
604
|
for (t && (E !== null && !E.is_fork && E.flush(), r = t()); ; ) {
|
|
605
|
-
if (
|
|
605
|
+
if (Si(), E === null) return r;
|
|
606
606
|
E.flush();
|
|
607
607
|
}
|
|
608
608
|
} finally {
|
|
609
|
-
|
|
609
|
+
Ze = e;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
function Ii() {
|
|
@@ -616,211 +616,211 @@ function Ii() {
|
|
|
616
616
|
var e;
|
|
617
617
|
}
|
|
618
618
|
try {
|
|
619
|
-
|
|
619
|
+
vi();
|
|
620
620
|
} catch (r) {
|
|
621
|
-
me(r,
|
|
621
|
+
me(r, Vt);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
var
|
|
624
|
+
var he = null;
|
|
625
625
|
function wr(t) {
|
|
626
626
|
var e = t.length;
|
|
627
627
|
if (e !== 0) {
|
|
628
628
|
for (var r = 0; r < e; ) {
|
|
629
629
|
var n = t[r++];
|
|
630
|
-
if ((n.f & 24576) === 0 &&
|
|
630
|
+
if ((n.f & 24576) === 0 && ot(n) && (he = /* @__PURE__ */ new Set(), qe(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && pn(n), he?.size > 0)) {
|
|
631
631
|
le.clear();
|
|
632
|
-
for (const i of
|
|
632
|
+
for (const i of he) {
|
|
633
633
|
if ((i.f & 24576) !== 0) continue;
|
|
634
634
|
const s = [i];
|
|
635
635
|
let l = i.parent;
|
|
636
636
|
for (; l !== null; )
|
|
637
|
-
|
|
638
|
-
for (let
|
|
639
|
-
const
|
|
640
|
-
(
|
|
637
|
+
he.has(l) && (he.delete(l), s.push(l)), l = l.parent;
|
|
638
|
+
for (let u = s.length - 1; u >= 0; u--) {
|
|
639
|
+
const c = s[u];
|
|
640
|
+
(c.f & 24576) === 0 && qe(c);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
he.clear();
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
|
|
646
|
+
he = null;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function rn(t, e, r, n) {
|
|
650
650
|
if (!r.has(t) && (r.add(t), t.reactions !== null))
|
|
651
651
|
for (const i of t.reactions) {
|
|
652
652
|
const s = i.f;
|
|
653
|
-
(s & 2) !== 0 ?
|
|
653
|
+
(s & 2) !== 0 ? rn(i, e, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && ar(i, e, n) && (M(i, z), lr(i));
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function ar(t, e, r) {
|
|
657
657
|
const n = r.get(t);
|
|
658
658
|
if (n !== void 0) return n;
|
|
659
659
|
if (t.deps !== null) for (const i of t.deps) {
|
|
660
660
|
if (wt.call(e, i)) return !0;
|
|
661
|
-
if ((i.f & 2) !== 0 &&
|
|
661
|
+
if ((i.f & 2) !== 0 && ar(i, e, r))
|
|
662
662
|
return r.set(i, !0), !0;
|
|
663
663
|
}
|
|
664
664
|
return r.set(t, !1), !1;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function lr(t) {
|
|
667
667
|
E.schedule(t);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function nn(t, e) {
|
|
670
670
|
if (!((t.f & 32) !== 0 && (t.f & 1024) !== 0)) {
|
|
671
671
|
(t.f & 2048) !== 0 ? e.d.push(t) : (t.f & 4096) !== 0 && e.m.push(t), M(t, ie);
|
|
672
672
|
for (var r = t.first; r !== null; )
|
|
673
|
-
|
|
673
|
+
nn(r, e), r = r.next;
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function sn(t) {
|
|
677
677
|
M(t, ie);
|
|
678
678
|
for (var e = t.first; e !== null; )
|
|
679
|
-
|
|
679
|
+
sn(e), e = e.next;
|
|
680
680
|
}
|
|
681
|
-
var
|
|
682
|
-
var
|
|
683
|
-
function
|
|
681
|
+
var Ot = /* @__PURE__ */ new Set(), le = /* @__PURE__ */ new Map();
|
|
682
|
+
var an = !1;
|
|
683
|
+
function Pt(t, e) {
|
|
684
684
|
var r = {
|
|
685
685
|
f: 0,
|
|
686
686
|
v: t,
|
|
687
687
|
reactions: null,
|
|
688
|
-
equals:
|
|
688
|
+
equals: Wr,
|
|
689
689
|
rv: 0,
|
|
690
690
|
wv: 0
|
|
691
691
|
};
|
|
692
692
|
return r;
|
|
693
693
|
}
|
|
694
694
|
// @__NO_SIDE_EFFECTS__
|
|
695
|
-
function
|
|
696
|
-
const r =
|
|
695
|
+
function D(t, e) {
|
|
696
|
+
const r = Pt(t, e);
|
|
697
697
|
return gn(r), r;
|
|
698
698
|
}
|
|
699
699
|
// @__NO_SIDE_EFFECTS__
|
|
700
|
-
function
|
|
701
|
-
const n =
|
|
702
|
-
if (e || (n.equals =
|
|
700
|
+
function Mi(t, e = !1, r = !0) {
|
|
701
|
+
const n = Pt(t);
|
|
702
|
+
if (e || (n.equals = Dr), lt && r && O !== null && O.l !== null) {
|
|
703
703
|
var i;
|
|
704
|
-
((i =
|
|
704
|
+
((i = O.l).s ?? (i.s = [])).push(n);
|
|
705
705
|
}
|
|
706
706
|
return n;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
A !== null && (!Q || (A.f & 131072) !== 0) && Ht() && (A.f & 4325394) !== 0 && (te === null || !te.has(t)) &&
|
|
710
|
-
let n = r ?
|
|
711
|
-
return
|
|
708
|
+
function P(t, e, r = !1) {
|
|
709
|
+
A !== null && (!Q || (A.f & 131072) !== 0) && Ht() && (A.f & 4325394) !== 0 && (te === null || !te.has(t)) && yi();
|
|
710
|
+
let n = r ? je(e) : e;
|
|
711
|
+
return ln(t, n, $t);
|
|
712
712
|
}
|
|
713
|
-
var
|
|
714
|
-
function
|
|
713
|
+
var Te = null, Ut = 0;
|
|
714
|
+
function ln(t, e, r = null) {
|
|
715
715
|
if (!t.equals(e)) {
|
|
716
|
-
|
|
716
|
+
ve ? le.set(t, e) : le.has(t) || le.set(t, t.v);
|
|
717
717
|
var n = Ye.ensure();
|
|
718
718
|
if (n.capture(t, e), (t.f & 2) !== 0) {
|
|
719
719
|
const i = t;
|
|
720
|
-
(t.f & 2048) !== 0 &&
|
|
720
|
+
(t.f & 2048) !== 0 && ir(i), B === null && nr(i);
|
|
721
721
|
}
|
|
722
|
-
t.wv =
|
|
722
|
+
t.wv = bn(), Te = null, Ut = 0, on(t, z, r), Te = null, Ht() && T !== null && (T.f & 1024) !== 0 && (T.f & 96) === 0 && (V === null ? Xi([t]) : V.push(t)), !n.is_fork && Ot.size > 0 && !an && xi();
|
|
723
723
|
}
|
|
724
724
|
return e;
|
|
725
725
|
}
|
|
726
|
-
function
|
|
727
|
-
|
|
728
|
-
for (const t of
|
|
726
|
+
function xi() {
|
|
727
|
+
an = !1;
|
|
728
|
+
for (const t of Ot) {
|
|
729
729
|
(t.f & 1024) !== 0 && M(t, Ne);
|
|
730
730
|
let e;
|
|
731
731
|
try {
|
|
732
|
-
e =
|
|
732
|
+
e = ot(t);
|
|
733
733
|
} catch {
|
|
734
734
|
e = !0;
|
|
735
735
|
}
|
|
736
|
-
e &&
|
|
736
|
+
e && qe(t);
|
|
737
737
|
}
|
|
738
|
-
|
|
738
|
+
Ot.clear();
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
|
|
740
|
+
function Je(t) {
|
|
741
|
+
P(t, t.v + 1);
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function on(t, e, r) {
|
|
744
744
|
var n = t.reactions;
|
|
745
745
|
if (n !== null) {
|
|
746
746
|
var i = Ht(), s = n.length;
|
|
747
|
-
if (
|
|
748
|
-
if (
|
|
749
|
-
|
|
747
|
+
if (Ut += s, Ut > 1e5 && Te === null && (Te = /* @__PURE__ */ new Set()), Te !== null) {
|
|
748
|
+
if (Te.has(t)) return;
|
|
749
|
+
Te.add(t);
|
|
750
750
|
}
|
|
751
751
|
for (var l = 0; l < s; l++) {
|
|
752
|
-
var
|
|
753
|
-
if (!(!i &&
|
|
754
|
-
var
|
|
755
|
-
if (
|
|
756
|
-
else if ((
|
|
757
|
-
var _ =
|
|
758
|
-
|
|
759
|
-
} else if (
|
|
760
|
-
var
|
|
761
|
-
(
|
|
752
|
+
var u = n[l], c = u.f;
|
|
753
|
+
if (!(!i && u === T)) {
|
|
754
|
+
var y = (c & z) === 0;
|
|
755
|
+
if (y && M(u, e), (c & 131072) !== 0) Ot.add(u);
|
|
756
|
+
else if ((c & 2) !== 0) {
|
|
757
|
+
var _ = u;
|
|
758
|
+
B?.delete(_), on(_, Ne, r);
|
|
759
|
+
} else if (y) {
|
|
760
|
+
var f = u;
|
|
761
|
+
(c & 16) !== 0 && he !== null && he.add(f), r !== null ? r.push(f) : lr(f);
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
var
|
|
768
|
-
function
|
|
769
|
-
if (typeof t != "object" || t === null ||
|
|
770
|
-
const e =
|
|
767
|
+
var Hi = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
768
|
+
function je(t) {
|
|
769
|
+
if (typeof t != "object" || t === null || Qe in t || Br in t) return t;
|
|
770
|
+
const e = Yn(t);
|
|
771
771
|
if (e !== jn && e !== qn) return t;
|
|
772
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
773
|
-
if (
|
|
774
|
-
var d = A, h =
|
|
772
|
+
var r = /* @__PURE__ */ new Map(), n = Gn(t), i = /* @__PURE__ */ D(0), s = null, l = Oe, u = (f) => {
|
|
773
|
+
if (Oe === l) return f();
|
|
774
|
+
var d = A, h = Oe;
|
|
775
775
|
oe(null), Er(l);
|
|
776
|
-
var v =
|
|
776
|
+
var v = f();
|
|
777
777
|
return oe(d), Er(h), v;
|
|
778
778
|
};
|
|
779
|
-
n && r.set("length", /* @__PURE__ */
|
|
780
|
-
var
|
|
781
|
-
let
|
|
782
|
-
function _(
|
|
783
|
-
if (!
|
|
784
|
-
|
|
785
|
-
for (const [d, h] of r)
|
|
786
|
-
|
|
779
|
+
n && r.set("length", /* @__PURE__ */ D(t.length, s));
|
|
780
|
+
var c = "";
|
|
781
|
+
let y = !1;
|
|
782
|
+
function _(f) {
|
|
783
|
+
if (!y) {
|
|
784
|
+
y = !0, c = f, yr(i, `${c} version`);
|
|
785
|
+
for (const [d, h] of r) yr(h, Ni(c, d));
|
|
786
|
+
y = !1;
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
return new Proxy(t, {
|
|
790
|
-
defineProperty(
|
|
791
|
-
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) &&
|
|
790
|
+
defineProperty(f, d, h) {
|
|
791
|
+
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && mi();
|
|
792
792
|
var v = r.get(d);
|
|
793
|
-
return v === void 0 ?
|
|
794
|
-
var p = /* @__PURE__ */
|
|
793
|
+
return v === void 0 ? u(() => {
|
|
794
|
+
var p = /* @__PURE__ */ D(h.value, s);
|
|
795
795
|
return r.set(d, p), p;
|
|
796
|
-
}) :
|
|
796
|
+
}) : P(v, h.value, !0), !0;
|
|
797
797
|
},
|
|
798
|
-
deleteProperty(
|
|
798
|
+
deleteProperty(f, d) {
|
|
799
799
|
var h = r.get(d);
|
|
800
800
|
if (h === void 0) {
|
|
801
|
-
if (d in
|
|
802
|
-
const v =
|
|
803
|
-
r.set(d, v),
|
|
801
|
+
if (d in f) {
|
|
802
|
+
const v = u(() => /* @__PURE__ */ D(H, s));
|
|
803
|
+
r.set(d, v), Je(i);
|
|
804
804
|
}
|
|
805
805
|
} else
|
|
806
|
-
|
|
806
|
+
P(h, H), Je(i);
|
|
807
807
|
return !0;
|
|
808
808
|
},
|
|
809
|
-
get(
|
|
810
|
-
if (d ===
|
|
811
|
-
var v = r.get(d), p = d in
|
|
812
|
-
if (v === void 0 && (!p ||
|
|
813
|
-
var
|
|
809
|
+
get(f, d, h) {
|
|
810
|
+
if (d === Qe) return t;
|
|
811
|
+
var v = r.get(d), p = d in f;
|
|
812
|
+
if (v === void 0 && (!p || Le(f, d)?.writable) && (v = u(() => {
|
|
813
|
+
var R = je(p ? f[d] : H), N = /* @__PURE__ */ D(R, s);
|
|
814
814
|
return N;
|
|
815
815
|
}), r.set(d, v)), v !== void 0) {
|
|
816
|
-
var
|
|
817
|
-
return
|
|
816
|
+
var L = w(v);
|
|
817
|
+
return L === H ? void 0 : L;
|
|
818
818
|
}
|
|
819
|
-
return Reflect.get(
|
|
819
|
+
return Reflect.get(f, d, h);
|
|
820
820
|
},
|
|
821
|
-
getOwnPropertyDescriptor(
|
|
822
|
-
this.has?.(
|
|
823
|
-
var h = Reflect.getOwnPropertyDescriptor(
|
|
821
|
+
getOwnPropertyDescriptor(f, d) {
|
|
822
|
+
this.has?.(f, d);
|
|
823
|
+
var h = Reflect.getOwnPropertyDescriptor(f, d), v = r.get(d);
|
|
824
824
|
if (v !== void 0) {
|
|
825
825
|
var p = w(v);
|
|
826
826
|
if (p === H) return;
|
|
@@ -834,44 +834,44 @@ function qe(t) {
|
|
|
834
834
|
}
|
|
835
835
|
return h;
|
|
836
836
|
},
|
|
837
|
-
has(
|
|
838
|
-
if (d ===
|
|
839
|
-
var h = r.get(d), v = h !== void 0 && h.v !== H || Reflect.has(
|
|
840
|
-
return (h !== void 0 ||
|
|
841
|
-
var p = v ?
|
|
842
|
-
return
|
|
837
|
+
has(f, d) {
|
|
838
|
+
if (d === Qe) return !0;
|
|
839
|
+
var h = r.get(d), v = h !== void 0 && h.v !== H || Reflect.has(f, d);
|
|
840
|
+
return (h !== void 0 || T !== null && (!v || Le(f, d)?.writable)) && (h === void 0 && (h = u(() => {
|
|
841
|
+
var p = v ? je(f[d]) : H, L = /* @__PURE__ */ D(p, s);
|
|
842
|
+
return L;
|
|
843
843
|
}), r.set(d, h)), w(h) === H) ? !1 : v;
|
|
844
844
|
},
|
|
845
|
-
set(
|
|
846
|
-
var p = r.get(d),
|
|
847
|
-
if (n && d === "length") for (var
|
|
848
|
-
var N = r.get(
|
|
849
|
-
N !== void 0 ?
|
|
845
|
+
set(f, d, h, v) {
|
|
846
|
+
var p = r.get(d), L = d in f;
|
|
847
|
+
if (n && d === "length") for (var R = h; R < p.v; R += 1) {
|
|
848
|
+
var N = r.get(R + "");
|
|
849
|
+
N !== void 0 ? P(N, H) : R in f && (N = u(() => /* @__PURE__ */ D(H, s)), r.set(R + "", N));
|
|
850
850
|
}
|
|
851
851
|
if (p === void 0)
|
|
852
|
-
(!
|
|
852
|
+
(!L || Le(f, d)?.writable) && (p = u(() => /* @__PURE__ */ D(void 0, s)), P(p, je(h)), r.set(d, p));
|
|
853
853
|
else {
|
|
854
|
-
|
|
855
|
-
var U =
|
|
856
|
-
|
|
854
|
+
L = p.v !== H;
|
|
855
|
+
var U = u(() => je(h));
|
|
856
|
+
P(p, U);
|
|
857
857
|
}
|
|
858
|
-
var
|
|
859
|
-
if (
|
|
858
|
+
var I = Reflect.getOwnPropertyDescriptor(f, d);
|
|
859
|
+
if (I?.set && I.set.call(v, h), !L) {
|
|
860
860
|
if (n && typeof d == "string") {
|
|
861
|
-
var
|
|
862
|
-
Number.isInteger(
|
|
861
|
+
var fe = r.get("length"), ce = Number(d);
|
|
862
|
+
Number.isInteger(ce) && ce >= fe.v && P(fe, ce + 1);
|
|
863
863
|
}
|
|
864
|
-
|
|
864
|
+
Je(i);
|
|
865
865
|
}
|
|
866
866
|
return !0;
|
|
867
867
|
},
|
|
868
|
-
ownKeys(
|
|
868
|
+
ownKeys(f) {
|
|
869
869
|
w(i);
|
|
870
|
-
var d = Reflect.ownKeys(
|
|
871
|
-
var
|
|
872
|
-
return
|
|
870
|
+
var d = Reflect.ownKeys(f).filter((p) => {
|
|
871
|
+
var L = r.get(p);
|
|
872
|
+
return L === void 0 || L.v !== H;
|
|
873
873
|
});
|
|
874
|
-
for (var [h, v] of r) v.v !== H && !(h in
|
|
874
|
+
for (var [h, v] of r) v.v !== H && !(h in f) && d.push(h);
|
|
875
875
|
return d;
|
|
876
876
|
},
|
|
877
877
|
setPrototypeOf() {
|
|
@@ -879,23 +879,23 @@ function qe(t) {
|
|
|
879
879
|
}
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
function
|
|
883
|
-
return typeof e == "symbol" ? `${t}[Symbol(${e.description ?? ""})]` :
|
|
882
|
+
function Ni(t, e) {
|
|
883
|
+
return typeof e == "symbol" ? `${t}[Symbol(${e.description ?? ""})]` : Hi.test(e) ? `${t}.${e}` : /^\d+$/.test(e) ? `${t}[${e}]` : `${t}['${e}']`;
|
|
884
884
|
}
|
|
885
|
-
var Sr,
|
|
886
|
-
function
|
|
885
|
+
var Sr, Pi, un, fn, cn;
|
|
886
|
+
function Xt() {
|
|
887
887
|
if (Sr === void 0) {
|
|
888
|
-
Sr = window,
|
|
888
|
+
Sr = window, Pi = document, un = /Firefox/.test(navigator.userAgent);
|
|
889
889
|
var t = Element.prototype, e = Node.prototype, r = Text.prototype;
|
|
890
|
-
|
|
890
|
+
fn = Le(e, "firstChild").get, cn = Le(e, "nextSibling").get, pr(t) && (t[ri] = void 0, t[ti] = null, t[ni] = void 0, t.__e = void 0), pr(r) && (r[ii] = void 0);
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function hn(t = "") {
|
|
894
894
|
return document.createTextNode(t);
|
|
895
895
|
}
|
|
896
896
|
// @__NO_SIDE_EFFECTS__
|
|
897
|
-
function
|
|
898
|
-
return
|
|
897
|
+
function Qt(t) {
|
|
898
|
+
return fn.call(t);
|
|
899
899
|
}
|
|
900
900
|
// @__NO_SIDE_EFFECTS__
|
|
901
901
|
function Ve(t) {
|
|
@@ -904,13 +904,13 @@ function Ve(t) {
|
|
|
904
904
|
function Bi(t) {
|
|
905
905
|
t.textContent = "";
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function dn(t, e, r) {
|
|
908
908
|
return e == null || e === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(t, { is: r }) : document.createElement(t) : r ? document.createElementNS(e, t, { is: r }) : document.createElementNS(e, t);
|
|
909
909
|
}
|
|
910
|
-
function
|
|
911
|
-
var e =
|
|
910
|
+
function Fi(t) {
|
|
911
|
+
var e = T;
|
|
912
912
|
if (e === null)
|
|
913
|
-
return A.f |=
|
|
913
|
+
return A.f |= Pr, t;
|
|
914
914
|
if ((e.f & 32768) === 0 && (e.f & 4) === 0)
|
|
915
915
|
throw t;
|
|
916
916
|
me(t, e);
|
|
@@ -932,18 +932,18 @@ function me(t, e) {
|
|
|
932
932
|
throw t;
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
|
|
935
|
+
function Ki(t) {
|
|
936
|
+
T === null && (A === null && di(t), hi()), ve && ci(t);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function Gi(t, e) {
|
|
939
939
|
var r = e.last;
|
|
940
940
|
r === null ? e.last = e.first = t : (r.next = t, t.prev = r, e.last = t);
|
|
941
941
|
}
|
|
942
|
-
function
|
|
943
|
-
var r =
|
|
944
|
-
r !== null && (r.f & 8192) !== 0 && (t |=
|
|
942
|
+
function Be(t, e) {
|
|
943
|
+
var r = T;
|
|
944
|
+
r !== null && (r.f & 8192) !== 0 && (t |= xr);
|
|
945
945
|
var n = {
|
|
946
|
-
ctx:
|
|
946
|
+
ctx: O,
|
|
947
947
|
deps: null,
|
|
948
948
|
nodes: null,
|
|
949
949
|
f: t | z | 512,
|
|
@@ -961,68 +961,68 @@ function Pe(t, e) {
|
|
|
961
961
|
E?.register_created_effect(n);
|
|
962
962
|
var i = n;
|
|
963
963
|
if ((t & 4) !== 0)
|
|
964
|
-
|
|
964
|
+
nt !== null ? nt.push(n) : Ye.ensure().schedule(n);
|
|
965
965
|
else if (e !== null) {
|
|
966
966
|
try {
|
|
967
|
-
|
|
967
|
+
qe(n);
|
|
968
968
|
} catch (l) {
|
|
969
969
|
throw ee(n), l;
|
|
970
970
|
}
|
|
971
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (t & 16) !== 0 && (t & 65536) !== 0 && i !== null && (i.f |=
|
|
971
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (t & 16) !== 0 && (t & 65536) !== 0 && i !== null && (i.f |= Nr));
|
|
972
972
|
}
|
|
973
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
973
|
+
if (i !== null && (i.parent = r, r !== null && Gi(i, r), A !== null && (A.f & 2) !== 0 && (t & 64) === 0)) {
|
|
974
974
|
var s = A;
|
|
975
975
|
(s.effects ?? (s.effects = [])).push(i);
|
|
976
976
|
}
|
|
977
977
|
return n;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function or() {
|
|
980
980
|
return A !== null && !Q;
|
|
981
981
|
}
|
|
982
982
|
function Ee(t) {
|
|
983
|
-
|
|
984
|
-
var e =
|
|
985
|
-
if (!A && (e & 32) !== 0 &&
|
|
986
|
-
var r =
|
|
983
|
+
Ki("$effect");
|
|
984
|
+
var e = T.f;
|
|
985
|
+
if (!A && (e & 32) !== 0 && O !== null && !O.i) {
|
|
986
|
+
var r = O;
|
|
987
987
|
(r.e ?? (r.e = [])).push(t);
|
|
988
|
-
} else return
|
|
988
|
+
} else return vn(t);
|
|
989
989
|
}
|
|
990
|
-
function
|
|
991
|
-
return
|
|
990
|
+
function vn(t) {
|
|
991
|
+
return Be(4 | Jn, t);
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function Wi(t) {
|
|
994
994
|
Ye.ensure();
|
|
995
|
-
const e =
|
|
995
|
+
const e = Be(64 | at, t);
|
|
996
996
|
return () => {
|
|
997
997
|
ee(e);
|
|
998
998
|
};
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function Di(t) {
|
|
1001
1001
|
Ye.ensure();
|
|
1002
|
-
const e =
|
|
1002
|
+
const e = Be(64 | at, t);
|
|
1003
1003
|
return (r = {}) => new Promise((n) => {
|
|
1004
|
-
r.outro ?
|
|
1004
|
+
r.outro ? Bt(e, () => {
|
|
1005
1005
|
ee(e), n(void 0);
|
|
1006
1006
|
}) : (ee(e), n(void 0));
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
1009
|
function ji(t) {
|
|
1010
|
-
return
|
|
1010
|
+
return Be(4, t);
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
return
|
|
1012
|
+
function ur(t, e = 0) {
|
|
1013
|
+
return Be(8 | e, t);
|
|
1014
1014
|
}
|
|
1015
1015
|
function qi(t, e = 0) {
|
|
1016
|
-
var r =
|
|
1016
|
+
var r = Be(16 | e, t);
|
|
1017
1017
|
return r;
|
|
1018
1018
|
}
|
|
1019
1019
|
function He(t) {
|
|
1020
|
-
return
|
|
1020
|
+
return Be(32 | at, t);
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function _n(t) {
|
|
1023
1023
|
var e = t.teardown;
|
|
1024
1024
|
if (e !== null) {
|
|
1025
|
-
const r =
|
|
1025
|
+
const r = ve, n = A;
|
|
1026
1026
|
Ar(!0), oe(null);
|
|
1027
1027
|
try {
|
|
1028
1028
|
e.call(null);
|
|
@@ -1033,7 +1033,7 @@ function vn(t) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function fr(t, e = !1) {
|
|
1037
1037
|
var r = t.first;
|
|
1038
1038
|
for (t.first = t.last = null; r !== null; ) {
|
|
1039
1039
|
const i = r.ac;
|
|
@@ -1044,7 +1044,7 @@ function ur(t, e = !1) {
|
|
|
1044
1044
|
(r.f & 64) !== 0 ? r.parent = null : ee(r, e), r = n;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function Yi(t) {
|
|
1048
1048
|
for (var e = t.first; e !== null; ) {
|
|
1049
1049
|
var r = e.next;
|
|
1050
1050
|
(e.f & 32) === 0 && ee(e), e = r;
|
|
@@ -1052,185 +1052,185 @@ function Ki(t) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
function ee(t, e = !0) {
|
|
1054
1054
|
var r = !1;
|
|
1055
|
-
(e || (t.f & 262144) !== 0) && t.nodes !== null && t.nodes.end !== null && (
|
|
1055
|
+
(e || (t.f & 262144) !== 0) && t.nodes !== null && t.nodes.end !== null && (Vi(t.nodes.start, t.nodes.end), r = !0), t.f |= mr, fr(t, e && !r), it(t, 0);
|
|
1056
1056
|
var n = t.nodes && t.nodes.t;
|
|
1057
1057
|
if (n !== null) for (const s of n) s.stop();
|
|
1058
|
-
|
|
1058
|
+
_n(t), t.f ^= mr, t.f |= Zn;
|
|
1059
1059
|
var i = t.parent;
|
|
1060
|
-
i !== null && i.first !== null &&
|
|
1060
|
+
i !== null && i.first !== null && pn(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = t.b = null;
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function Vi(t, e) {
|
|
1063
1063
|
for (; t !== null; ) {
|
|
1064
1064
|
var r = t === e ? null : /* @__PURE__ */ Ve(t);
|
|
1065
1065
|
t.remove(), t = r;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function pn(t) {
|
|
1069
1069
|
var e = t.parent, r = t.prev, n = t.next;
|
|
1070
1070
|
r !== null && (r.next = n), n !== null && (n.prev = r), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = r));
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Bt(t, e, r = !0) {
|
|
1073
1073
|
var n = [];
|
|
1074
|
-
t.f |= 256,
|
|
1074
|
+
t.f |= 256, mn(t, n, !0);
|
|
1075
1075
|
var i = () => {
|
|
1076
1076
|
r && ee(t), e && e();
|
|
1077
1077
|
}, s = n.length;
|
|
1078
1078
|
if (s > 0) {
|
|
1079
1079
|
var l = () => --s || i();
|
|
1080
|
-
for (var
|
|
1080
|
+
for (var u of n) u.out(l);
|
|
1081
1081
|
} else i();
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function mn(t, e, r) {
|
|
1084
1084
|
if ((t.f & 8192) === 0) {
|
|
1085
|
-
t.f ^=
|
|
1085
|
+
t.f ^= xr;
|
|
1086
1086
|
var n = t.nodes && t.nodes.t;
|
|
1087
1087
|
if (n !== null)
|
|
1088
|
-
for (const
|
|
1088
|
+
for (const u of n) (u.is_global || r) && e.push(u);
|
|
1089
1089
|
for (var i = t.first; i !== null; ) {
|
|
1090
1090
|
var s = i.next;
|
|
1091
1091
|
if ((i.f & 64) === 0) {
|
|
1092
1092
|
var l = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (t.f & 16) !== 0;
|
|
1093
|
-
|
|
1093
|
+
mn(i, e, l ? r : !1);
|
|
1094
1094
|
}
|
|
1095
1095
|
i = s;
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function zi(t, e) {
|
|
1100
1100
|
if (t.nodes)
|
|
1101
1101
|
for (var r = t.nodes.start, n = t.nodes.end; r !== null; ) {
|
|
1102
1102
|
var i = r === n ? null : /* @__PURE__ */ Ve(r);
|
|
1103
1103
|
e.append(r), r = i;
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
var
|
|
1106
|
+
var Ui = null, pt = !1, ve = !1;
|
|
1107
1107
|
function Ar(t) {
|
|
1108
|
-
|
|
1108
|
+
ve = t;
|
|
1109
1109
|
}
|
|
1110
1110
|
var A = null, Q = !1;
|
|
1111
1111
|
function oe(t) {
|
|
1112
1112
|
A = t;
|
|
1113
1113
|
}
|
|
1114
|
-
var
|
|
1115
|
-
function
|
|
1116
|
-
|
|
1114
|
+
var T = null;
|
|
1115
|
+
function ye(t) {
|
|
1116
|
+
T = t;
|
|
1117
1117
|
}
|
|
1118
1118
|
var te = null;
|
|
1119
1119
|
function gn(t) {
|
|
1120
|
-
A !== null && (!
|
|
1120
|
+
A !== null && (!Pe && (A.f & 2097152) !== 0 || (A.f & 2) !== 0) && (te ?? (te = /* @__PURE__ */ new Set())).add(t);
|
|
1121
1121
|
}
|
|
1122
|
-
var
|
|
1123
|
-
function
|
|
1122
|
+
var G = null, j = 0, V = null;
|
|
1123
|
+
function Xi(t) {
|
|
1124
1124
|
V = t;
|
|
1125
1125
|
}
|
|
1126
|
-
var
|
|
1126
|
+
var yn = 1, ke = 0, Oe = ke;
|
|
1127
1127
|
function Er(t) {
|
|
1128
|
-
|
|
1128
|
+
Oe = t;
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1131
|
-
return ++
|
|
1130
|
+
function bn() {
|
|
1131
|
+
return ++yn;
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function ot(t) {
|
|
1134
1134
|
var e = t.f;
|
|
1135
1135
|
if ((e & 2048) !== 0) return !0;
|
|
1136
1136
|
if ((e & 4096) !== 0) {
|
|
1137
1137
|
for (var r = t.deps, n = r.length, i = 0; i < n; i++) {
|
|
1138
1138
|
var s = r[i];
|
|
1139
|
-
if (
|
|
1139
|
+
if (ot(s) && zr(s), s.wv > t.wv) return !0;
|
|
1140
1140
|
}
|
|
1141
|
-
(e & 512) !== 0 &&
|
|
1141
|
+
(e & 512) !== 0 && B === null && M(t, ie);
|
|
1142
1142
|
}
|
|
1143
1143
|
return !1;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function wn(t, e, r = !0) {
|
|
1146
1146
|
var n = t.reactions;
|
|
1147
|
-
if (n !== null && !(!
|
|
1147
|
+
if (n !== null && !(!Pe && te !== null && te.has(t)))
|
|
1148
1148
|
for (var i = 0; i < n.length; i++) {
|
|
1149
1149
|
var s = n[i];
|
|
1150
|
-
(s.f & 2) !== 0 ?
|
|
1150
|
+
(s.f & 2) !== 0 ? wn(s, e, !1) : e === s && (r ? M(s, z) : (s.f & 1024) !== 0 && M(s, Ne), lr(s));
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
var e =
|
|
1155
|
-
|
|
1153
|
+
function Sn(t) {
|
|
1154
|
+
var e = G, r = j, n = V, i = A, s = te, l = O, u = Q, c = Oe, y = t.f;
|
|
1155
|
+
G = null, j = 0, V = null, A = (y & 96) === 0 ? t : null, te = null, At(t.ctx), Q = !1, Oe = ++ke, t.ac !== null && (Nt(() => {
|
|
1156
1156
|
t.ac.abort(xt);
|
|
1157
1157
|
}), t.ac = null);
|
|
1158
1158
|
try {
|
|
1159
1159
|
t.f |= gr;
|
|
1160
|
-
var _ = t.fn,
|
|
1161
|
-
t.f |=
|
|
1162
|
-
var d =
|
|
1163
|
-
if (Ht() && V !== null && !Q && d !== null && (t.f & 6146) === 0) for (var h = 0; h < V.length; h++)
|
|
1160
|
+
var _ = t.fn, f = _();
|
|
1161
|
+
t.f |= Hr;
|
|
1162
|
+
var d = Tr(t);
|
|
1163
|
+
if (Ht() && V !== null && !Q && d !== null && (t.f & 6146) === 0) for (var h = 0; h < V.length; h++) wn(V[h], t);
|
|
1164
1164
|
if (i !== null && i !== t) {
|
|
1165
1165
|
if (ke++, i.deps !== null) for (let v = 0; v < r; v += 1) i.deps[v].rv = ke;
|
|
1166
1166
|
if (e !== null) for (const v of e) v.rv = ke;
|
|
1167
1167
|
V !== null && (n === null ? n = V : n.push(...V));
|
|
1168
1168
|
}
|
|
1169
|
-
return (t.f & 8388608) !== 0 && (t.f ^=
|
|
1169
|
+
return (t.f & 8388608) !== 0 && (t.f ^= Pr), f;
|
|
1170
1170
|
} catch (v) {
|
|
1171
|
-
return
|
|
1171
|
+
return Tr(t), Fi(v);
|
|
1172
1172
|
} finally {
|
|
1173
|
-
t.f ^= gr,
|
|
1173
|
+
t.f ^= gr, G = e, j = r, V = n, A = i, te = s, At(l), Q = u, Oe = c;
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function Tr(t) {
|
|
1177
1177
|
var e = t.deps, r = E?.is_fork;
|
|
1178
|
-
if (
|
|
1178
|
+
if (G !== null) {
|
|
1179
1179
|
var n;
|
|
1180
|
-
if (r ||
|
|
1181
|
-
for (e.length =
|
|
1182
|
-
else t.deps = e =
|
|
1183
|
-
if (
|
|
1180
|
+
if (r || it(t, j), e !== null && j > 0)
|
|
1181
|
+
for (e.length = j + G.length, n = 0; n < G.length; n++) e[j + n] = G[n];
|
|
1182
|
+
else t.deps = e = G;
|
|
1183
|
+
if (or() && (t.f & 512) !== 0) for (n = j; n < e.length; n++) {
|
|
1184
1184
|
var i;
|
|
1185
1185
|
((i = e[n]).reactions ?? (i.reactions = [])).push(t);
|
|
1186
1186
|
}
|
|
1187
|
-
} else !r && e !== null &&
|
|
1187
|
+
} else !r && e !== null && j < e.length && (it(t, j), e.length = j);
|
|
1188
1188
|
return e;
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function Qi(t, e) {
|
|
1191
1191
|
let r = e.reactions;
|
|
1192
1192
|
if (r !== null) {
|
|
1193
|
-
var n =
|
|
1193
|
+
var n = Wn.call(r, t);
|
|
1194
1194
|
if (n !== -1) {
|
|
1195
1195
|
var i = r.length - 1;
|
|
1196
1196
|
i === 0 ? r = e.reactions = null : (r[n] = r[i], r.pop());
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
if (r === null && (e.f & 2) !== 0 && (
|
|
1199
|
+
if (r === null && (e.f & 2) !== 0 && (G === null || !wt.call(G, e))) {
|
|
1200
1200
|
var s = e;
|
|
1201
|
-
(s.f & 512) !== 0 && (s.f ^= 512), s.v !== H &&
|
|
1201
|
+
(s.f & 512) !== 0 && (s.f ^= 512), s.v !== H && nr(s), s.ac !== null && Nt(() => {
|
|
1202
1202
|
s.ac.abort(xt), s.ac = null, M(s, z);
|
|
1203
|
-
}),
|
|
1203
|
+
}), Ci(s), it(s, 0);
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function it(t, e) {
|
|
1207
1207
|
var r = t.deps;
|
|
1208
1208
|
if (r !== null)
|
|
1209
|
-
for (var n = e; n < r.length; n++)
|
|
1209
|
+
for (var n = e; n < r.length; n++) Qi(t, r[n]);
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function qe(t) {
|
|
1212
1212
|
var e = t.f;
|
|
1213
1213
|
if ((e & 16384) === 0) {
|
|
1214
1214
|
M(t, ie);
|
|
1215
|
-
var r =
|
|
1216
|
-
if (
|
|
1215
|
+
var r = T, n = pt;
|
|
1216
|
+
if (T = t, pt = (e & 96) === 0, 0)
|
|
1217
1217
|
var i, s;
|
|
1218
1218
|
try {
|
|
1219
|
-
(e & 16777232) !== 0 ?
|
|
1220
|
-
var l =
|
|
1221
|
-
if (t.teardown = typeof l == "function" ? l : null, t.wv =
|
|
1222
|
-
for (var
|
|
1219
|
+
(e & 16777232) !== 0 ? Yi(t) : fr(t), _n(t);
|
|
1220
|
+
var l = Sn(t);
|
|
1221
|
+
if (t.teardown = typeof l == "function" ? l : null, t.wv = yn, 0)
|
|
1222
|
+
for (var u of t.deps) ;
|
|
1223
1223
|
} finally {
|
|
1224
|
-
|
|
1224
|
+
pt = n, T = r;
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
function w(t) {
|
|
1229
1229
|
var e = (t.f & 2) !== 0;
|
|
1230
|
-
if (
|
|
1230
|
+
if (Ui?.add(t), A !== null && !Q && !(T !== null && (T.f & 16384) !== 0) && (te === null || !te.has(t))) {
|
|
1231
1231
|
var r = A.deps;
|
|
1232
1232
|
if ((A.f & 2097152) !== 0)
|
|
1233
|
-
t.rv < ke && (t.rv = ke,
|
|
1233
|
+
t.rv < ke && (t.rv = ke, G === null && r !== null && r[j] === t ? j++ : G === null ? G = [t] : G.push(t));
|
|
1234
1234
|
else {
|
|
1235
1235
|
var n;
|
|
1236
1236
|
(n = A).deps ?? (n.deps = []), wt.call(A.deps, t) || A.deps.push(t);
|
|
@@ -1239,37 +1239,37 @@ function w(t) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
if (0) {
|
|
1242
|
-
if (!Q && reactivity_loss_tracker && E === null &&
|
|
1242
|
+
if (!Q && reactivity_loss_tracker && E === null && Yt === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(t))
|
|
1243
1243
|
var s;
|
|
1244
1244
|
if (tracing_mode_flag && !Q && tracing_expressions !== null && A !== null && tracing_expressions.reaction === A && !t.trace) {
|
|
1245
1245
|
if (s)
|
|
1246
|
-
var l,
|
|
1246
|
+
var l, u;
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
if (
|
|
1249
|
+
if (ve && le.has(t)) return le.get(t);
|
|
1250
1250
|
if (e) {
|
|
1251
|
-
var
|
|
1252
|
-
if (
|
|
1253
|
-
var
|
|
1254
|
-
return ((
|
|
1251
|
+
var c = t;
|
|
1252
|
+
if (ve) {
|
|
1253
|
+
var y = c.v;
|
|
1254
|
+
return ((c.f & 1024) === 0 && c.reactions !== null || En(c)) && (y = ir(c)), le.set(c, y), y;
|
|
1255
1255
|
}
|
|
1256
|
-
var _ = (
|
|
1257
|
-
|
|
1256
|
+
var _ = (c.f & 512) === 0 && !Q && A !== null && (pt || (A.f & 512) !== 0), f = (c.f & Hr) === 0;
|
|
1257
|
+
ot(c) && (_ && (c.f |= 512), zr(c)), _ && !f && (Ur(c), An(c));
|
|
1258
1258
|
}
|
|
1259
|
-
if (
|
|
1259
|
+
if (B?.has(t)) return B.get(t);
|
|
1260
1260
|
if ((t.f & 8388608) !== 0) throw t.v;
|
|
1261
1261
|
return t.v;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function An(t) {
|
|
1264
1264
|
if (t.f |= 512, t.deps !== null)
|
|
1265
1265
|
for (const e of t.deps)
|
|
1266
|
-
(e.reactions ?? (e.reactions = [])).push(t), (e.f & 2) !== 0 && (e.f & 512) === 0 && (
|
|
1266
|
+
(e.reactions ?? (e.reactions = [])).push(t), (e.f & 2) !== 0 && (e.f & 512) === 0 && (Ur(e), An(e));
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function En(t) {
|
|
1269
1269
|
if (t.v === H) return !0;
|
|
1270
1270
|
if (t.deps === null) return !1;
|
|
1271
1271
|
for (const e of t.deps)
|
|
1272
|
-
if (le.has(e) || (e.f & 2) !== 0 &&
|
|
1272
|
+
if (le.has(e) || (e.f & 2) !== 0 && En(e)) return !0;
|
|
1273
1273
|
return !1;
|
|
1274
1274
|
}
|
|
1275
1275
|
function Ft(t) {
|
|
@@ -1280,36 +1280,36 @@ function Ft(t) {
|
|
|
1280
1280
|
Q = e;
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
|
-
var
|
|
1284
|
-
function
|
|
1283
|
+
var ct = /* @__PURE__ */ Symbol("events"), Zi = /* @__PURE__ */ new Set(), $r = /* @__PURE__ */ new Set(), Wt = null, Dt = !1;
|
|
1284
|
+
function Cr(t) {
|
|
1285
1285
|
var e = this, r = e.ownerDocument, n = t.type, i = t.composedPath?.() || [], s = i[0] || t.target;
|
|
1286
|
-
|
|
1287
|
-
|
|
1286
|
+
Wt = t, Dt || (Dt = !0, setTimeout(() => {
|
|
1287
|
+
Dt = !1, Wt = null;
|
|
1288
1288
|
}));
|
|
1289
|
-
var l = 0,
|
|
1290
|
-
if (
|
|
1291
|
-
var
|
|
1292
|
-
if (
|
|
1293
|
-
t[
|
|
1289
|
+
var l = 0, u = Wt === t && t[ct];
|
|
1290
|
+
if (u) {
|
|
1291
|
+
var c = i.indexOf(u);
|
|
1292
|
+
if (c !== -1 && (e === document || e === window)) {
|
|
1293
|
+
t[ct] = e;
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
|
-
var
|
|
1297
|
-
if (
|
|
1298
|
-
|
|
1296
|
+
var y = i.indexOf(e);
|
|
1297
|
+
if (y === -1) return;
|
|
1298
|
+
c <= y && (l = c);
|
|
1299
1299
|
}
|
|
1300
1300
|
if (s = i[l] || t.target, s !== e) {
|
|
1301
|
-
|
|
1301
|
+
et(t, "currentTarget", {
|
|
1302
1302
|
configurable: !0,
|
|
1303
1303
|
get() {
|
|
1304
1304
|
return s || r;
|
|
1305
1305
|
}
|
|
1306
1306
|
});
|
|
1307
|
-
var _ = A,
|
|
1308
|
-
oe(null),
|
|
1307
|
+
var _ = A, f = T;
|
|
1308
|
+
oe(null), ye(null);
|
|
1309
1309
|
try {
|
|
1310
1310
|
for (var d, h = []; s !== null && s !== e; ) {
|
|
1311
1311
|
try {
|
|
1312
|
-
var v = s[
|
|
1312
|
+
var v = s[ct]?.[n];
|
|
1313
1313
|
v != null && (!s.disabled || t.target === s) && v.call(s, t);
|
|
1314
1314
|
} catch (p) {
|
|
1315
1315
|
d ? h.push(p) : d = p;
|
|
@@ -1324,20 +1324,20 @@ function $r(t) {
|
|
|
1324
1324
|
throw d;
|
|
1325
1325
|
}
|
|
1326
1326
|
} finally {
|
|
1327
|
-
t[
|
|
1327
|
+
t[ct] = e, delete t.currentTarget, oe(_), ye(f);
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
var
|
|
1332
|
-
function Ji(t) {
|
|
1333
|
-
return Zi?.createHTML(t) ?? t;
|
|
1334
|
-
}
|
|
1331
|
+
var Ji = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (t) => t });
|
|
1335
1332
|
function es(t) {
|
|
1336
|
-
|
|
1337
|
-
|
|
1333
|
+
return Ji?.createHTML(t) ?? t;
|
|
1334
|
+
}
|
|
1335
|
+
function ts(t) {
|
|
1336
|
+
var e = dn("template");
|
|
1337
|
+
return e.innerHTML = es(t.replaceAll("<!>", "<!---->")), e.content;
|
|
1338
1338
|
}
|
|
1339
1339
|
function mt(t, e) {
|
|
1340
|
-
var r =
|
|
1340
|
+
var r = T;
|
|
1341
1341
|
r.nodes === null && (r.nodes = {
|
|
1342
1342
|
start: t,
|
|
1343
1343
|
end: e,
|
|
@@ -1346,29 +1346,29 @@ function mt(t, e) {
|
|
|
1346
1346
|
});
|
|
1347
1347
|
}
|
|
1348
1348
|
// @__NO_SIDE_EFFECTS__
|
|
1349
|
-
function
|
|
1349
|
+
function rs(t, e) {
|
|
1350
1350
|
var r = (e & 1) !== 0, n = (e & 2) !== 0, i, s = !t.startsWith("<!>");
|
|
1351
1351
|
return () => {
|
|
1352
1352
|
if (J)
|
|
1353
1353
|
return mt(F, null), F;
|
|
1354
|
-
i === void 0 && (i =
|
|
1355
|
-
var l = n ||
|
|
1354
|
+
i === void 0 && (i = ts(s ? t : "<!>" + t), r || (i = /* @__PURE__ */ Qt(i)));
|
|
1355
|
+
var l = n || un ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1356
1356
|
if (r) {
|
|
1357
|
-
var
|
|
1358
|
-
mt(
|
|
1357
|
+
var u = /* @__PURE__ */ Qt(l), c = l.lastChild;
|
|
1358
|
+
mt(u, c);
|
|
1359
1359
|
} else mt(l, l);
|
|
1360
1360
|
return l;
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Tn(t, e) {
|
|
1364
1364
|
if (J) {
|
|
1365
|
-
var r =
|
|
1366
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = F),
|
|
1365
|
+
var r = T;
|
|
1366
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = F), Gr();
|
|
1367
1367
|
return;
|
|
1368
1368
|
}
|
|
1369
1369
|
t !== null && t.before(e);
|
|
1370
1370
|
}
|
|
1371
|
-
var
|
|
1371
|
+
var ns = [
|
|
1372
1372
|
"allowfullscreen",
|
|
1373
1373
|
"async",
|
|
1374
1374
|
"autofocus",
|
|
@@ -1397,8 +1397,8 @@ var rs = [
|
|
|
1397
1397
|
"defer",
|
|
1398
1398
|
"disablepictureinpicture",
|
|
1399
1399
|
"disableremoteplayback"
|
|
1400
|
-
],
|
|
1401
|
-
...
|
|
1400
|
+
], Ws = [
|
|
1401
|
+
...ns,
|
|
1402
1402
|
"formNoValidate",
|
|
1403
1403
|
"isMap",
|
|
1404
1404
|
"noModule",
|
|
@@ -1413,17 +1413,17 @@ var rs = [
|
|
|
1413
1413
|
"allowFullscreen",
|
|
1414
1414
|
"disablePictureInPicture",
|
|
1415
1415
|
"disableRemotePlayback"
|
|
1416
|
-
],
|
|
1417
|
-
function
|
|
1418
|
-
return
|
|
1416
|
+
], is = ["touchstart", "touchmove"];
|
|
1417
|
+
function ss(t) {
|
|
1418
|
+
return is.includes(t);
|
|
1419
1419
|
}
|
|
1420
|
-
var
|
|
1420
|
+
var as = [
|
|
1421
1421
|
"$state",
|
|
1422
1422
|
"$state.raw",
|
|
1423
1423
|
"$derived",
|
|
1424
1424
|
"$derived.by"
|
|
1425
|
-
],
|
|
1426
|
-
...
|
|
1425
|
+
], Ds = [
|
|
1426
|
+
...as,
|
|
1427
1427
|
"$state.eager",
|
|
1428
1428
|
"$state.snapshot",
|
|
1429
1429
|
"$props",
|
|
@@ -1439,41 +1439,41 @@ var ss = [
|
|
|
1439
1439
|
"$inspect.trace",
|
|
1440
1440
|
"$host"
|
|
1441
1441
|
];
|
|
1442
|
-
function
|
|
1443
|
-
let e = 0, r =
|
|
1442
|
+
function ls(t) {
|
|
1443
|
+
let e = 0, r = Pt(0), n;
|
|
1444
1444
|
return () => {
|
|
1445
|
-
|
|
1445
|
+
or() && (w(r), ur(() => (e === 0 && (n = Ft(() => t(() => Je(r)))), e += 1, () => {
|
|
1446
1446
|
Me(() => {
|
|
1447
|
-
e -= 1, e === 0 && (n?.(), n = void 0,
|
|
1447
|
+
e -= 1, e === 0 && (n?.(), n = void 0, Je(r));
|
|
1448
1448
|
});
|
|
1449
1449
|
})));
|
|
1450
1450
|
};
|
|
1451
1451
|
}
|
|
1452
|
-
var
|
|
1453
|
-
function
|
|
1454
|
-
new
|
|
1452
|
+
var os = Nr | at;
|
|
1453
|
+
function us(t, e, r, n) {
|
|
1454
|
+
new fs(t, e, r, n);
|
|
1455
1455
|
}
|
|
1456
|
-
var re = /* @__PURE__ */ new WeakMap(),
|
|
1456
|
+
var re = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakSet(), fs = class {
|
|
1457
1457
|
constructor(t, e, r, n) {
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
}))),
|
|
1461
|
-
var s =
|
|
1458
|
+
sr(this, x), o(this, "parent", void 0), o(this, "is_pending", !1), o(this, "transform_error", void 0), S(this, re, void 0), S(this, Zt, J ? F : null), S(this, ae, void 0), S(this, st, void 0), S(this, q, void 0), S(this, ne, null), S(this, Y, null), S(this, Z, null), S(this, ge, null), S(this, We, 0), S(this, Ie, 0), S(this, ht, !1), S(this, Jt, /* @__PURE__ */ new Set()), S(this, er, /* @__PURE__ */ new Set()), S(this, be, null), S(this, kr, ls(() => (m(be, this, Pt(a(We, this))), () => {
|
|
1459
|
+
m(be, this, null);
|
|
1460
|
+
}))), m(re, this, t), m(ae, this, e), m(st, this, (i) => {
|
|
1461
|
+
var s = T;
|
|
1462
1462
|
s.b = this, s.f |= 128, r(i);
|
|
1463
|
-
}), this.parent =
|
|
1463
|
+
}), this.parent = T.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), m(q, this, qi(() => {
|
|
1464
1464
|
if (J) {
|
|
1465
|
-
const i = a(
|
|
1466
|
-
|
|
1465
|
+
const i = a(Zt, this);
|
|
1466
|
+
Gr();
|
|
1467
1467
|
const s = i.data === "[!";
|
|
1468
1468
|
if (i.data.startsWith("[?")) {
|
|
1469
1469
|
const l = JSON.parse(i.data.slice(2));
|
|
1470
|
-
|
|
1471
|
-
} else s ?
|
|
1472
|
-
} else
|
|
1473
|
-
},
|
|
1470
|
+
g(x, this, hs).call(this, l);
|
|
1471
|
+
} else s ? g(x, this, ds).call(this) : g(x, this, cs).call(this);
|
|
1472
|
+
} else g(x, this, Cn).call(this);
|
|
1473
|
+
}, os)), J && m(re, this, F);
|
|
1474
1474
|
}
|
|
1475
1475
|
defer_effect(t) {
|
|
1476
|
-
|
|
1476
|
+
Vr(t, a(Jt, this), a(er, this));
|
|
1477
1477
|
}
|
|
1478
1478
|
is_rendered() {
|
|
1479
1479
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -1482,44 +1482,44 @@ var re = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), ae =
|
|
|
1482
1482
|
return !!a(ae, this).pending;
|
|
1483
1483
|
}
|
|
1484
1484
|
update_pending_count(t, e) {
|
|
1485
|
-
|
|
1486
|
-
|
|
1485
|
+
g(x, this, kn).call(this, t, e), m(We, this, a(We, this) + t), !(!a(be, this) || a(ht, this)) && (m(ht, this, !0), Me(() => {
|
|
1486
|
+
m(ht, this, !1), a(be, this) && ln(a(be, this), a(We, this));
|
|
1487
1487
|
}));
|
|
1488
1488
|
}
|
|
1489
1489
|
get_effect_pending() {
|
|
1490
|
-
return a(kr, this).call(this), w(a(
|
|
1490
|
+
return a(kr, this).call(this), w(a(be, this));
|
|
1491
1491
|
}
|
|
1492
1492
|
error(t) {
|
|
1493
1493
|
if (!a(ae, this).onerror && !a(ae, this).failed) throw t;
|
|
1494
1494
|
E?.is_fork ? (a(ne, this) && E.skip_effect(a(ne, this)), a(Y, this) && E.skip_effect(a(Y, this)), a(Z, this) && E.skip_effect(a(Z, this)), E.oncommit(() => {
|
|
1495
|
-
|
|
1496
|
-
})) :
|
|
1495
|
+
g(x, this, Lr).call(this, t);
|
|
1496
|
+
})) : g(x, this, Lr).call(this, t);
|
|
1497
1497
|
}
|
|
1498
1498
|
};
|
|
1499
1499
|
function cs() {
|
|
1500
1500
|
try {
|
|
1501
|
-
|
|
1501
|
+
m(ne, this, He(() => a(st, this).call(this, a(re, this))));
|
|
1502
1502
|
} catch (t) {
|
|
1503
1503
|
this.error(t);
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1507
|
-
const e = a(ae, this).failed, { reset: r, invoke_onerror: n } =
|
|
1508
|
-
Me(n), e &&
|
|
1506
|
+
function hs(t) {
|
|
1507
|
+
const e = a(ae, this).failed, { reset: r, invoke_onerror: n } = g(x, this, $n).call(this, t);
|
|
1508
|
+
Me(n), e && m(Z, this, He(() => {
|
|
1509
1509
|
e(a(re, this), () => t, () => r);
|
|
1510
1510
|
}));
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function $n(t) {
|
|
1513
1513
|
var e = !1, r = !1;
|
|
1514
1514
|
const n = () => {
|
|
1515
1515
|
if (e) {
|
|
1516
|
-
|
|
1516
|
+
ai();
|
|
1517
1517
|
return;
|
|
1518
1518
|
}
|
|
1519
|
-
e = !0, r &&
|
|
1520
|
-
|
|
1521
|
-
}),
|
|
1522
|
-
|
|
1519
|
+
e = !0, r && bi(), a(Z, this) !== null && Bt(a(Z, this), () => {
|
|
1520
|
+
m(Z, this, null);
|
|
1521
|
+
}), g(x, this, cr).call(this, () => {
|
|
1522
|
+
g(x, this, Cn).call(this);
|
|
1523
1523
|
});
|
|
1524
1524
|
};
|
|
1525
1525
|
return {
|
|
@@ -1528,86 +1528,86 @@ function Cn(t) {
|
|
|
1528
1528
|
try {
|
|
1529
1529
|
r = !0, a(ae, this).onerror?.(t, n), r = !1;
|
|
1530
1530
|
} catch (s) {
|
|
1531
|
-
me(s, a(
|
|
1531
|
+
me(s, a(q, this) && a(q, this).parent);
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function ds() {
|
|
1537
1537
|
const t = a(ae, this).pending;
|
|
1538
|
-
t && (this.is_pending = !0,
|
|
1539
|
-
var e =
|
|
1540
|
-
if (e.append(r),
|
|
1538
|
+
t && (this.is_pending = !0, m(Y, this, He(() => t(a(re, this)))), Me(() => {
|
|
1539
|
+
var e = m(ge, this, document.createDocumentFragment()), r = hn(), n = !1;
|
|
1540
|
+
if (e.append(r), m(ne, this, g(x, this, cr).call(this, () => {
|
|
1541
1541
|
try {
|
|
1542
|
-
return He(() => a(
|
|
1542
|
+
return He(() => a(st, this).call(this, r));
|
|
1543
1543
|
} catch (i) {
|
|
1544
1544
|
try {
|
|
1545
1545
|
this.error(i), n = !0;
|
|
1546
1546
|
} catch (s) {
|
|
1547
|
-
me(s, a(
|
|
1547
|
+
me(s, a(q, this).parent);
|
|
1548
1548
|
}
|
|
1549
1549
|
return null;
|
|
1550
1550
|
}
|
|
1551
1551
|
})), a(ne, this) === null) {
|
|
1552
|
-
|
|
1552
|
+
m(ge, this, null), n && g(x, this, It).call(this, E);
|
|
1553
1553
|
return;
|
|
1554
1554
|
}
|
|
1555
|
-
a(
|
|
1556
|
-
|
|
1557
|
-
}),
|
|
1555
|
+
a(Ie, this) === 0 && (a(re, this).before(e), m(ge, this, null), Bt(a(Y, this), () => {
|
|
1556
|
+
m(Y, this, null);
|
|
1557
|
+
}), g(x, this, It).call(this, E));
|
|
1558
1558
|
}));
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function Cn() {
|
|
1561
1561
|
try {
|
|
1562
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
1563
|
-
a(
|
|
1564
|
-
})), a(
|
|
1565
|
-
var t =
|
|
1566
|
-
|
|
1562
|
+
if (this.is_pending = this.has_pending_snippet(), m(Ie, this, 0), m(We, this, 0), m(ne, this, He(() => {
|
|
1563
|
+
a(st, this).call(this, a(re, this));
|
|
1564
|
+
})), a(Ie, this) > 0) {
|
|
1565
|
+
var t = m(ge, this, document.createDocumentFragment());
|
|
1566
|
+
zi(a(ne, this), t);
|
|
1567
1567
|
const e = a(ae, this).pending;
|
|
1568
|
-
|
|
1569
|
-
} else
|
|
1568
|
+
m(Y, this, He(() => e(a(re, this))));
|
|
1569
|
+
} else g(x, this, It).call(this, E);
|
|
1570
1570
|
} catch (e) {
|
|
1571
1571
|
this.error(e);
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1575
|
-
this.is_pending = !1, t.transfer_effects(a(
|
|
1574
|
+
function It(t) {
|
|
1575
|
+
this.is_pending = !1, t.transfer_effects(a(Jt, this), a(er, this));
|
|
1576
1576
|
}
|
|
1577
1577
|
function cr(t) {
|
|
1578
|
-
var e =
|
|
1579
|
-
|
|
1578
|
+
var e = T, r = A, n = O;
|
|
1579
|
+
ye(a(q, this)), oe(a(q, this)), At(a(q, this).ctx);
|
|
1580
1580
|
try {
|
|
1581
1581
|
return Ye.ensure(), t();
|
|
1582
1582
|
} finally {
|
|
1583
|
-
|
|
1583
|
+
ye(e), oe(r), At(n);
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function kn(t, e) {
|
|
1587
1587
|
if (!this.has_pending_snippet()) {
|
|
1588
1588
|
if (this.parent) {
|
|
1589
1589
|
var r;
|
|
1590
|
-
|
|
1590
|
+
g(x, r = this.parent, kn).call(r, t, e);
|
|
1591
1591
|
}
|
|
1592
1592
|
return;
|
|
1593
1593
|
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
}), a(
|
|
1594
|
+
m(Ie, this, a(Ie, this) + t), a(Ie, this) === 0 && (g(x, this, It).call(this, e), a(Y, this) && Bt(a(Y, this), () => {
|
|
1595
|
+
m(Y, this, null);
|
|
1596
|
+
}), a(ge, this) && (a(re, this).before(a(ge, this)), m(ge, this, null)));
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1599
|
-
a(ne, this) && (ee(a(ne, this)),
|
|
1598
|
+
function Lr(t) {
|
|
1599
|
+
a(ne, this) && (ee(a(ne, this)), m(ne, this, null)), a(Y, this) && (ee(a(Y, this)), m(Y, this, null)), a(Z, this) && (ee(a(Z, this)), m(Z, this, null)), J && (rt(a(Zt, this)), li(), rt(oi()));
|
|
1600
1600
|
let e = a(ae, this).failed;
|
|
1601
1601
|
const r = (n) => {
|
|
1602
|
-
const { reset: i, invoke_onerror: s } =
|
|
1603
|
-
s(), e &&
|
|
1602
|
+
const { reset: i, invoke_onerror: s } = g(x, this, $n).call(this, n);
|
|
1603
|
+
s(), e && m(Z, this, g(x, this, cr).call(this, () => {
|
|
1604
1604
|
try {
|
|
1605
1605
|
return He(() => {
|
|
1606
|
-
var l =
|
|
1606
|
+
var l = T;
|
|
1607
1607
|
l.b = this, l.f |= 128, e(a(re, this), () => n, () => i);
|
|
1608
1608
|
});
|
|
1609
1609
|
} catch (l) {
|
|
1610
|
-
return me(l, a(
|
|
1610
|
+
return me(l, a(q, this).parent), null;
|
|
1611
1611
|
}
|
|
1612
1612
|
}));
|
|
1613
1613
|
};
|
|
@@ -1616,86 +1616,86 @@ function Rr(t) {
|
|
|
1616
1616
|
try {
|
|
1617
1617
|
n = this.transform_error(t);
|
|
1618
1618
|
} catch (i) {
|
|
1619
|
-
me(i, a(
|
|
1619
|
+
me(i, a(q, this) && a(q, this).parent);
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
|
-
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => me(i, a(
|
|
1622
|
+
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => me(i, a(q, this) && a(q, this).parent)) : r(n);
|
|
1623
1623
|
});
|
|
1624
1624
|
}
|
|
1625
|
-
var
|
|
1626
|
-
function
|
|
1625
|
+
var Rr = !0;
|
|
1626
|
+
function Ln(t, e) {
|
|
1627
1627
|
return Rn(t, e);
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1630
|
-
|
|
1629
|
+
function vs(t, e) {
|
|
1630
|
+
Xt(), e.intro = e.intro ?? !1;
|
|
1631
1631
|
const r = e.target, n = J, i = F;
|
|
1632
1632
|
try {
|
|
1633
|
-
for (var s = /* @__PURE__ */
|
|
1633
|
+
for (var s = /* @__PURE__ */ Qt(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ Ve(s);
|
|
1634
1634
|
if (!s) throw bt;
|
|
1635
|
-
|
|
1635
|
+
ut(!0), rt(s);
|
|
1636
1636
|
const l = Rn(t, {
|
|
1637
1637
|
...e,
|
|
1638
1638
|
anchor: s
|
|
1639
1639
|
});
|
|
1640
|
-
return
|
|
1640
|
+
return ut(!1), l;
|
|
1641
1641
|
} catch (l) {
|
|
1642
1642
|
if (l instanceof Error && l.message.split(`
|
|
1643
|
-
`).some((
|
|
1644
|
-
return l !== bt && console.warn("Failed to hydrate: ", l), e.recover === !1 &&
|
|
1643
|
+
`).some((u) => u.startsWith("https://svelte.dev/e/"))) throw l;
|
|
1644
|
+
return l !== bt && console.warn("Failed to hydrate: ", l), e.recover === !1 && _i(), Xt(), Bi(r), ut(!1), Ln(t, e);
|
|
1645
1645
|
} finally {
|
|
1646
|
-
|
|
1646
|
+
ut(n), rt(i);
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
|
-
var
|
|
1650
|
-
function Rn(t, { target: e, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError:
|
|
1651
|
-
|
|
1652
|
-
var
|
|
1653
|
-
var _ = r ?? e.appendChild(
|
|
1654
|
-
|
|
1649
|
+
var dt = /* @__PURE__ */ new Map();
|
|
1650
|
+
function Rn(t, { target: e, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError: u }) {
|
|
1651
|
+
Xt();
|
|
1652
|
+
var c = void 0, y = Di(() => {
|
|
1653
|
+
var _ = r ?? e.appendChild(hn());
|
|
1654
|
+
us(_, { pending: () => {
|
|
1655
1655
|
} }, (h) => {
|
|
1656
1656
|
jr({});
|
|
1657
|
-
var v =
|
|
1658
|
-
if (s && (v.c = s), i && (n.$$events = i), J && mt(h, null),
|
|
1659
|
-
throw
|
|
1657
|
+
var v = O;
|
|
1658
|
+
if (s && (v.c = s), i && (n.$$events = i), J && mt(h, null), Rr = l, c = t(h, n) || rr(), Rr = !0, J && (T.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]"))
|
|
1659
|
+
throw Kr(), bt;
|
|
1660
1660
|
qr();
|
|
1661
|
-
},
|
|
1662
|
-
var
|
|
1661
|
+
}, u);
|
|
1662
|
+
var f = /* @__PURE__ */ new Set(), d = (h) => {
|
|
1663
1663
|
for (var v = 0; v < h.length; v++) {
|
|
1664
1664
|
var p = h[v];
|
|
1665
|
-
if (!
|
|
1666
|
-
|
|
1667
|
-
var
|
|
1665
|
+
if (!f.has(p)) {
|
|
1666
|
+
f.add(p);
|
|
1667
|
+
var L = ss(p);
|
|
1668
1668
|
for (const U of [e, document]) {
|
|
1669
|
-
var
|
|
1670
|
-
|
|
1671
|
-
var N =
|
|
1672
|
-
N === void 0 ? (U.addEventListener(p,
|
|
1669
|
+
var R = dt.get(U);
|
|
1670
|
+
R === void 0 && (R = /* @__PURE__ */ new Map(), dt.set(U, R));
|
|
1671
|
+
var N = R.get(p);
|
|
1672
|
+
N === void 0 ? (U.addEventListener(p, Cr, { passive: L }), R.set(p, 1)) : R.set(p, N + 1);
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
1676
|
};
|
|
1677
|
-
return d(
|
|
1678
|
-
for (var h of
|
|
1679
|
-
var v =
|
|
1680
|
-
--p == 0 ? (
|
|
1677
|
+
return d(Dn(Zi)), $r.add(d), () => {
|
|
1678
|
+
for (var h of f) for (const L of [e, document]) {
|
|
1679
|
+
var v = dt.get(L), p = v.get(h);
|
|
1680
|
+
--p == 0 ? (L.removeEventListener(h, Cr), v.delete(h), v.size === 0 && dt.delete(L)) : v.set(h, p);
|
|
1681
1681
|
}
|
|
1682
|
-
|
|
1682
|
+
$r.delete(d), _ !== r && _.parentNode?.removeChild(_);
|
|
1683
1683
|
};
|
|
1684
1684
|
});
|
|
1685
|
-
return
|
|
1685
|
+
return tr.set(c, y), c;
|
|
1686
1686
|
}
|
|
1687
|
-
var
|
|
1688
|
-
function
|
|
1689
|
-
const r =
|
|
1690
|
-
return r ? (
|
|
1687
|
+
var tr = /* @__PURE__ */ new WeakMap();
|
|
1688
|
+
function _s(t, e) {
|
|
1689
|
+
const r = tr.get(t);
|
|
1690
|
+
return r ? (tr.delete(t), r(e)) : Promise.resolve();
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1693
|
-
|
|
1692
|
+
function ps(t) {
|
|
1693
|
+
O === null && fi("onMount"), lt && O.l !== null ? ms(O).m.push(t) : Ee(() => {
|
|
1694
1694
|
const e = Ft(t);
|
|
1695
1695
|
if (typeof e == "function") return e;
|
|
1696
1696
|
});
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function ms(t) {
|
|
1699
1699
|
var e = t.l;
|
|
1700
1700
|
return e.u ?? (e.u = {
|
|
1701
1701
|
a: [],
|
|
@@ -1703,102 +1703,102 @@ function ps(t) {
|
|
|
1703
1703
|
m: []
|
|
1704
1704
|
});
|
|
1705
1705
|
}
|
|
1706
|
-
var
|
|
1706
|
+
var On, De = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakSet(), In = class {
|
|
1707
1707
|
constructor(t) {
|
|
1708
|
-
|
|
1708
|
+
sr(this, Or), S(this, De, /* @__PURE__ */ new WeakMap()), S(this, Mt, void 0), S(this, jt, void 0), m(jt, this, t);
|
|
1709
1709
|
}
|
|
1710
1710
|
observe(t, e) {
|
|
1711
|
-
var r = a(
|
|
1712
|
-
return r.add(e), a(
|
|
1713
|
-
var n = a(
|
|
1714
|
-
n.delete(e), n.size === 0 && (a(
|
|
1711
|
+
var r = a(De, this).get(t) || /* @__PURE__ */ new Set();
|
|
1712
|
+
return r.add(e), a(De, this).set(t, r), g(Or, this, gs).call(this).observe(t, a(jt, this)), () => {
|
|
1713
|
+
var n = a(De, this).get(t);
|
|
1714
|
+
n.delete(e), n.size === 0 && (a(De, this).delete(t), a(Mt, this).unobserve(t));
|
|
1715
1715
|
};
|
|
1716
1716
|
}
|
|
1717
1717
|
};
|
|
1718
|
-
|
|
1718
|
+
On = In;
|
|
1719
1719
|
function gs() {
|
|
1720
|
-
return a(Mt, this) ??
|
|
1720
|
+
return a(Mt, this) ?? m(Mt, this, new ResizeObserver((t) => {
|
|
1721
1721
|
for (var e of t) {
|
|
1722
|
-
|
|
1723
|
-
for (var r of a(
|
|
1722
|
+
On.entries.set(e.target, e);
|
|
1723
|
+
for (var r of a(De, this).get(e.target) || []) r(e);
|
|
1724
1724
|
}
|
|
1725
1725
|
}));
|
|
1726
1726
|
}
|
|
1727
|
-
|
|
1727
|
+
o(In, "entries", /* @__PURE__ */ new WeakMap());
|
|
1728
1728
|
function qt(t, e) {
|
|
1729
|
-
return t === e || t?.[
|
|
1729
|
+
return t === e || t?.[Qe] === e;
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1732
|
-
var i =
|
|
1731
|
+
function ys(t = rr(), e, r, n) {
|
|
1732
|
+
var i = O.r, s = T;
|
|
1733
1733
|
return ji(() => {
|
|
1734
|
-
var l,
|
|
1735
|
-
return
|
|
1736
|
-
l =
|
|
1737
|
-
qt(r(...
|
|
1734
|
+
var l, u;
|
|
1735
|
+
return ur(() => {
|
|
1736
|
+
l = u, u = n?.() || [], Ft(() => {
|
|
1737
|
+
qt(r(...u), t) || (e(t, ...u), l && qt(r(...l), t) && e(null, ...l));
|
|
1738
1738
|
});
|
|
1739
1739
|
}), () => {
|
|
1740
|
-
let
|
|
1741
|
-
for (;
|
|
1742
|
-
const
|
|
1743
|
-
|
|
1744
|
-
}, _ =
|
|
1745
|
-
|
|
1746
|
-
|
|
1740
|
+
let c = s;
|
|
1741
|
+
for (; c !== i && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
1742
|
+
const y = () => {
|
|
1743
|
+
u && qt(r(...u), t) && e(null, ...u);
|
|
1744
|
+
}, _ = c.teardown;
|
|
1745
|
+
c.teardown = () => {
|
|
1746
|
+
y(), _?.();
|
|
1747
1747
|
};
|
|
1748
1748
|
};
|
|
1749
1749
|
}), t;
|
|
1750
1750
|
}
|
|
1751
|
-
var
|
|
1752
|
-
function
|
|
1753
|
-
var e =
|
|
1751
|
+
var vt = !1;
|
|
1752
|
+
function bs(t) {
|
|
1753
|
+
var e = vt;
|
|
1754
1754
|
try {
|
|
1755
|
-
return
|
|
1755
|
+
return vt = !1, [t(), vt];
|
|
1756
1756
|
} finally {
|
|
1757
|
-
|
|
1757
|
+
vt = e;
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1761
|
-
var i = !
|
|
1762
|
-
let
|
|
1760
|
+
function we(t, e, r, n) {
|
|
1761
|
+
var i = !lt || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, u = n, c = !0, y = void 0, _ = () => l && i ? (y ?? (y = /* @__PURE__ */ Et(n)), w(y)) : (c && (c = !1, u = l ? Ft(n) : n), u);
|
|
1762
|
+
let f;
|
|
1763
1763
|
if (s) {
|
|
1764
|
-
var d =
|
|
1765
|
-
|
|
1764
|
+
var d = Qe in t || Fr in t;
|
|
1765
|
+
f = Le(t, e)?.set ?? (d && e in t ? (I) => t[e] = I : void 0);
|
|
1766
1766
|
}
|
|
1767
1767
|
var h, v = !1;
|
|
1768
|
-
s ? [h, v] =
|
|
1768
|
+
s ? [h, v] = bs(() => t[e]) : h = t[e], h === void 0 && n !== void 0 && (h = _(), f && (i && pi(e), f(h)));
|
|
1769
1769
|
var p;
|
|
1770
1770
|
if (i ? p = () => {
|
|
1771
|
-
var
|
|
1772
|
-
return
|
|
1771
|
+
var I = t[e];
|
|
1772
|
+
return I === void 0 ? _() : (c = !0, I);
|
|
1773
1773
|
} : p = () => {
|
|
1774
|
-
var
|
|
1775
|
-
return
|
|
1774
|
+
var I = t[e];
|
|
1775
|
+
return I !== void 0 && (u = void 0), I === void 0 ? u : I;
|
|
1776
1776
|
}, i && (r & 4) === 0) return p;
|
|
1777
|
-
if (
|
|
1778
|
-
var
|
|
1779
|
-
return (function(
|
|
1780
|
-
return arguments.length > 0 ? ((!i || !
|
|
1777
|
+
if (f) {
|
|
1778
|
+
var L = t.$$legacy;
|
|
1779
|
+
return (function(I, fe) {
|
|
1780
|
+
return arguments.length > 0 ? ((!i || !fe || L || v) && f(fe ? p() : I), I) : p();
|
|
1781
1781
|
});
|
|
1782
1782
|
}
|
|
1783
|
-
var
|
|
1783
|
+
var R = !1, N = ((r & 1) !== 0 ? Et : Ti)(() => (R = !1, p()));
|
|
1784
1784
|
s && w(N);
|
|
1785
|
-
var U =
|
|
1786
|
-
return (function(
|
|
1785
|
+
var U = T;
|
|
1786
|
+
return (function(I, fe) {
|
|
1787
1787
|
if (arguments.length > 0) {
|
|
1788
|
-
const
|
|
1789
|
-
return
|
|
1788
|
+
const ce = fe ? w(N) : i && s ? je(I) : I;
|
|
1789
|
+
return P(N, ce), R = !0, u !== void 0 && (u = ce), I;
|
|
1790
1790
|
}
|
|
1791
|
-
return
|
|
1791
|
+
return ve && R || (U.f & 16384) !== 0 ? N.v : w(N);
|
|
1792
1792
|
});
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1795
|
-
return new
|
|
1794
|
+
function ws(t) {
|
|
1795
|
+
return new Ss(t);
|
|
1796
1796
|
}
|
|
1797
|
-
var Se = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(),
|
|
1797
|
+
var Se = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), Ss = class {
|
|
1798
1798
|
constructor(t) {
|
|
1799
1799
|
S(this, Se, void 0), S(this, se, void 0);
|
|
1800
1800
|
var e = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
1801
|
-
var l = /* @__PURE__ */
|
|
1801
|
+
var l = /* @__PURE__ */ Mi(s, !1, !1);
|
|
1802
1802
|
return e.set(i, l), l;
|
|
1803
1803
|
};
|
|
1804
1804
|
const n = new Proxy({
|
|
@@ -1809,13 +1809,13 @@ var Se = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), ws =
|
|
|
1809
1809
|
return w(e.get(s) ?? r(s, Reflect.get(i, s)));
|
|
1810
1810
|
},
|
|
1811
1811
|
has(i, s) {
|
|
1812
|
-
return s ===
|
|
1812
|
+
return s === Fr ? !0 : (w(e.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
1813
1813
|
},
|
|
1814
1814
|
set(i, s, l) {
|
|
1815
|
-
return
|
|
1815
|
+
return P(e.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
|
|
1816
1816
|
}
|
|
1817
1817
|
});
|
|
1818
|
-
|
|
1818
|
+
m(se, this, (t.hydrate ? vs : Ln)(t.component, {
|
|
1819
1819
|
target: t.target,
|
|
1820
1820
|
anchor: t.anchor,
|
|
1821
1821
|
props: n,
|
|
@@ -1823,9 +1823,9 @@ var Se = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), ws =
|
|
|
1823
1823
|
intro: t.intro ?? !1,
|
|
1824
1824
|
recover: t.recover,
|
|
1825
1825
|
transformError: t.transformError
|
|
1826
|
-
})), !
|
|
1826
|
+
})), !Pe && (!t?.props?.$$host || t.sync === !1) && _e(), m(Se, this, n.$$events);
|
|
1827
1827
|
for (const i of Object.keys(a(se, this)))
|
|
1828
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
1828
|
+
i === "$set" || i === "$destroy" || i === "$on" || et(this, i, {
|
|
1829
1829
|
get() {
|
|
1830
1830
|
return a(se, this)[i];
|
|
1831
1831
|
},
|
|
@@ -1837,7 +1837,7 @@ var Se = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), ws =
|
|
|
1837
1837
|
a(se, this).$set = (i) => {
|
|
1838
1838
|
Object.assign(n, i);
|
|
1839
1839
|
}, a(se, this).$destroy = () => {
|
|
1840
|
-
|
|
1840
|
+
_s(a(se, this));
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
1843
|
$set(t) {
|
|
@@ -1853,10 +1853,10 @@ var Se = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), ws =
|
|
|
1853
1853
|
$destroy() {
|
|
1854
1854
|
a(se, this).$destroy();
|
|
1855
1855
|
}
|
|
1856
|
-
},
|
|
1857
|
-
typeof HTMLElement == "function" && (
|
|
1856
|
+
}, Mn;
|
|
1857
|
+
typeof HTMLElement == "function" && (Mn = class extends HTMLElement {
|
|
1858
1858
|
constructor(t, e, r) {
|
|
1859
|
-
super(),
|
|
1859
|
+
super(), o(this, "$$ctor", void 0), o(this, "$$s", void 0), o(this, "$$c", void 0), o(this, "$$cn", !1), o(this, "$$d", {}), o(this, "$$r", !1), o(this, "$$p_d", {}), o(this, "$$l", {}), o(this, "$$l_u", /* @__PURE__ */ new Map()), o(this, "$$me", void 0), o(this, "$$shadowRoot", null), this.$$ctor = t, this.$$s = e, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
1860
1860
|
}
|
|
1861
1861
|
addEventListener(t, e, r) {
|
|
1862
1862
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
@@ -1875,19 +1875,19 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
1875
1875
|
if (this.$$cn = !0, !this.$$c) {
|
|
1876
1876
|
let t = function(n) {
|
|
1877
1877
|
return (i) => {
|
|
1878
|
-
const s =
|
|
1879
|
-
n !== "default" && (s.name = n),
|
|
1878
|
+
const s = dn("slot");
|
|
1879
|
+
n !== "default" && (s.name = n), Tn(i, s);
|
|
1880
1880
|
};
|
|
1881
1881
|
};
|
|
1882
1882
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
1883
|
-
const e = {}, r =
|
|
1883
|
+
const e = {}, r = As(this);
|
|
1884
1884
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = t(n), e.default = !0) : e[n] = t(n));
|
|
1885
1885
|
for (const n of this.attributes) {
|
|
1886
1886
|
const i = this.$$g_p(n.name);
|
|
1887
|
-
i in this.$$d || (this.$$d[i] =
|
|
1887
|
+
i in this.$$d || (this.$$d[i] = gt(i, n.value, this.$$p_d, "toProp"));
|
|
1888
1888
|
}
|
|
1889
1889
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
1890
|
-
this.$$c =
|
|
1890
|
+
this.$$c = ws({
|
|
1891
1891
|
component: this.$$ctor,
|
|
1892
1892
|
target: this.$$shadowRoot || this,
|
|
1893
1893
|
props: {
|
|
@@ -1895,13 +1895,13 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
1895
1895
|
$$slots: e,
|
|
1896
1896
|
$$host: this
|
|
1897
1897
|
}
|
|
1898
|
-
}), this.$$me =
|
|
1899
|
-
|
|
1898
|
+
}), this.$$me = Wi(() => {
|
|
1899
|
+
ur(() => {
|
|
1900
1900
|
this.$$r = !0;
|
|
1901
1901
|
for (const n of St(this.$$c)) {
|
|
1902
1902
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
1903
1903
|
this.$$d[n] = this.$$c[n];
|
|
1904
|
-
const i =
|
|
1904
|
+
const i = gt(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
1905
1905
|
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
1906
1906
|
}
|
|
1907
1907
|
this.$$r = !1;
|
|
@@ -1915,7 +1915,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
1917
|
attributeChangedCallback(t, e, r) {
|
|
1918
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
1918
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = gt(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
1919
1919
|
}
|
|
1920
1920
|
disconnectedCallback() {
|
|
1921
1921
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -1926,7 +1926,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
1926
1926
|
return St(this.$$p_d).find((e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t) || t;
|
|
1927
1927
|
}
|
|
1928
1928
|
});
|
|
1929
|
-
function
|
|
1929
|
+
function gt(t, e, r, n) {
|
|
1930
1930
|
const i = r[t]?.type;
|
|
1931
1931
|
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !n || !r[t]) return e;
|
|
1932
1932
|
if (n === "toAttribute") switch (i) {
|
|
@@ -1952,48 +1952,48 @@ function yt(t, e, r, n) {
|
|
|
1952
1952
|
return e;
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
|
-
function
|
|
1955
|
+
function As(t) {
|
|
1956
1956
|
const e = {};
|
|
1957
1957
|
return t.childNodes.forEach((r) => {
|
|
1958
1958
|
e[r.slot || "default"] = !0;
|
|
1959
1959
|
}), e;
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1962
|
-
let l = class extends
|
|
1961
|
+
function Es(t, e, r, n, i, s) {
|
|
1962
|
+
let l = class extends Mn {
|
|
1963
1963
|
constructor() {
|
|
1964
1964
|
super(t, r, i), this.$$p_d = e;
|
|
1965
1965
|
}
|
|
1966
1966
|
static get observedAttributes() {
|
|
1967
|
-
return St(e).map((
|
|
1967
|
+
return St(e).map((u) => (e[u].attribute || u).toLowerCase());
|
|
1968
1968
|
}
|
|
1969
1969
|
};
|
|
1970
|
-
return St(e).forEach((
|
|
1971
|
-
|
|
1970
|
+
return St(e).forEach((u) => {
|
|
1971
|
+
et(l.prototype, u, {
|
|
1972
1972
|
get() {
|
|
1973
|
-
return this.$$c &&
|
|
1973
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
1974
1974
|
},
|
|
1975
|
-
set(
|
|
1976
|
-
|
|
1977
|
-
var
|
|
1978
|
-
|
|
1975
|
+
set(c) {
|
|
1976
|
+
c = gt(u, c, e), this.$$d[u] = c;
|
|
1977
|
+
var y = this.$$c;
|
|
1978
|
+
y && (Le(y, u)?.get ? y[u] = c : y.$set({ [u]: c }));
|
|
1979
1979
|
}
|
|
1980
1980
|
});
|
|
1981
|
-
}), n.forEach((
|
|
1982
|
-
|
|
1983
|
-
return this.$$c?.[
|
|
1981
|
+
}), n.forEach((u) => {
|
|
1982
|
+
et(l.prototype, u, { get() {
|
|
1983
|
+
return this.$$c?.[u];
|
|
1984
1984
|
} });
|
|
1985
1985
|
}), s && (l = s(l)), t.element = l, l;
|
|
1986
1986
|
}
|
|
1987
|
-
var
|
|
1987
|
+
var xn, ue = class W {
|
|
1988
1988
|
constructor() {
|
|
1989
|
-
|
|
1989
|
+
o(this, "elementType", "multiple-choice"), o(this, "priority", 100);
|
|
1990
1990
|
}
|
|
1991
1991
|
canHandle(e) {
|
|
1992
1992
|
return e.tagName.toLowerCase() === "multiple-choice" || e.classList.contains("multiple-choice");
|
|
1993
1993
|
}
|
|
1994
1994
|
findChoices(e) {
|
|
1995
|
-
e.setAttribute(
|
|
1996
|
-
const r = Array.from(e.querySelectorAll(
|
|
1995
|
+
e.setAttribute(W.ROOT_HOOK_ATTR, "true");
|
|
1996
|
+
const r = Array.from(e.querySelectorAll(W.CHOICE_SELECTOR));
|
|
1997
1997
|
for (const n of r) this.annotateChoice(n);
|
|
1998
1998
|
return this.annotateFeedbackTicks(e), r;
|
|
1999
1999
|
}
|
|
@@ -2016,65 +2016,65 @@ var Mn, ue = class G {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
canEliminate(e) {
|
|
2018
2018
|
const r = e.querySelector('input[type="checkbox"], input[type="radio"]');
|
|
2019
|
-
return !(!r || this.isSelected(e) || r.disabled || (e.closest(`[${
|
|
2019
|
+
return !(!r || this.isSelected(e) || r.disabled || (e.closest(`[${W.ROOT_HOOK_ATTR}="true"]`) || e.closest("multiple-choice"))?.querySelector(`[${W.FEEDBACK_HOOK_ATTR}="true"]`));
|
|
2020
2020
|
}
|
|
2021
2021
|
setSelectable(e, r) {
|
|
2022
2022
|
const n = e.querySelector('input[type="checkbox"], input[type="radio"]');
|
|
2023
2023
|
if (!n) return;
|
|
2024
2024
|
n.disabled = !r, r ? n.removeAttribute("aria-disabled") : n.setAttribute("aria-disabled", "true");
|
|
2025
|
-
const i = n.closest(
|
|
2026
|
-
i && i.classList.toggle(
|
|
2025
|
+
const i = n.closest(W.MUI_BUTTON_SELECTOR);
|
|
2026
|
+
i && i.classList.toggle(W.MUI_DISABLED_CLASS, !r);
|
|
2027
2027
|
}
|
|
2028
2028
|
getButtonContainer(e) {
|
|
2029
2029
|
return e;
|
|
2030
2030
|
}
|
|
2031
2031
|
generateFallbackId(e) {
|
|
2032
|
-
const r = (e.closest(`[${
|
|
2032
|
+
const r = (e.closest(`[${W.ROOT_HOOK_ATTR}="true"]`) || e.closest("multiple-choice"))?.querySelectorAll(`[${W.CHOICE_HOOK_ATTR}="true"]`) || [];
|
|
2033
2033
|
return `choice-${Array.from(r).indexOf(e)}`;
|
|
2034
2034
|
}
|
|
2035
2035
|
annotateChoice(e) {
|
|
2036
|
-
e.setAttribute(
|
|
2036
|
+
e.setAttribute(W.CHOICE_HOOK_ATTR, "true");
|
|
2037
2037
|
const r = this.resolveLabelElement(e);
|
|
2038
|
-
r && r.setAttribute(
|
|
2038
|
+
r && r.setAttribute(W.LABEL_HOOK_ATTR, "true");
|
|
2039
2039
|
}
|
|
2040
2040
|
resolveLabelElement(e) {
|
|
2041
|
-
return e.querySelector(`[${
|
|
2041
|
+
return e.querySelector(`[${W.LABEL_HOOK_ATTR}="true"]`) || e.querySelector("label") || e.querySelector("span");
|
|
2042
2042
|
}
|
|
2043
2043
|
annotateFeedbackTicks(e) {
|
|
2044
|
-
for (const r of e.querySelectorAll(".feedback-tick")) r.setAttribute(
|
|
2044
|
+
for (const r of e.querySelectorAll(".feedback-tick")) r.setAttribute(W.FEEDBACK_HOOK_ATTR, "true");
|
|
2045
2045
|
}
|
|
2046
2046
|
};
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
var
|
|
2047
|
+
xn = ue;
|
|
2048
|
+
o(ue, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
|
|
2049
|
+
o(ue, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label");
|
|
2050
|
+
o(ue, "ROOT_HOOK_ATTR", "data-pie-answer-eliminator-root");
|
|
2051
|
+
o(ue, "FEEDBACK_HOOK_ATTR", "data-pie-answer-eliminator-feedback-tick");
|
|
2052
|
+
o(ue, "CHOICE_SELECTOR", `[${xn.CHOICE_HOOK_ATTR}="true"], .corespring-checkbox, .corespring-radio-button`);
|
|
2053
|
+
o(ue, "MUI_BUTTON_SELECTOR", ".MuiButtonBase-root, .MuiRadio-root, .MuiCheckbox-root");
|
|
2054
|
+
o(ue, "MUI_DISABLED_CLASS", "Mui-disabled");
|
|
2055
|
+
var Ts = "ebsr-multiple-choice", hr = (t) => t instanceof HTMLElement && Kn(t.tagName.toLowerCase()).baseName === Ts, Ir = (t, e) => Array.from(t.querySelectorAll(`[id="${e}"]`)).find(hr) ?? null, $s = (t) => {
|
|
2056
2056
|
let e = t.parentElement;
|
|
2057
2057
|
for (; e !== null; ) {
|
|
2058
|
-
if (
|
|
2058
|
+
if (hr(e)) return e;
|
|
2059
2059
|
e = e.parentElement;
|
|
2060
2060
|
}
|
|
2061
2061
|
return null;
|
|
2062
|
-
},
|
|
2062
|
+
}, Cs = class {
|
|
2063
2063
|
constructor() {
|
|
2064
|
-
|
|
2064
|
+
o(this, "elementType", "ebsr"), o(this, "priority", 110), o(this, "mcAdapter", new ue());
|
|
2065
2065
|
}
|
|
2066
2066
|
canHandle(t) {
|
|
2067
|
-
return t.tagName.toLowerCase() === "ebsr" || Array.from(t.querySelectorAll("*")).some(
|
|
2067
|
+
return t.tagName.toLowerCase() === "ebsr" || Array.from(t.querySelectorAll("*")).some(hr);
|
|
2068
2068
|
}
|
|
2069
2069
|
findChoices(t) {
|
|
2070
|
-
const e =
|
|
2070
|
+
const e = Ir(t, "a"), r = Ir(t, "b"), n = [];
|
|
2071
2071
|
return e && n.push(...this.mcAdapter.findChoices(e)), r && n.push(...this.mcAdapter.findChoices(r)), n;
|
|
2072
2072
|
}
|
|
2073
2073
|
createChoiceRange(t) {
|
|
2074
2074
|
return this.mcAdapter.createChoiceRange(t);
|
|
2075
2075
|
}
|
|
2076
2076
|
getChoiceId(t) {
|
|
2077
|
-
return `${
|
|
2077
|
+
return `${$s(t)?.id || "unknown"}-${this.mcAdapter.getChoiceId(t)}`;
|
|
2078
2078
|
}
|
|
2079
2079
|
getChoiceLabel(t) {
|
|
2080
2080
|
return this.mcAdapter.getChoiceLabel(t);
|
|
@@ -2091,9 +2091,9 @@ var Es = "ebsr-multiple-choice", fr = (t) => t instanceof HTMLElement && Fn(t.ta
|
|
|
2091
2091
|
getButtonContainer(t) {
|
|
2092
2092
|
return this.mcAdapter.getButtonContainer(t);
|
|
2093
2093
|
}
|
|
2094
|
-
},
|
|
2094
|
+
}, ks = class {
|
|
2095
2095
|
constructor() {
|
|
2096
|
-
|
|
2096
|
+
o(this, "elementType", "inline-dropdown"), o(this, "priority", 90);
|
|
2097
2097
|
}
|
|
2098
2098
|
canHandle(t) {
|
|
2099
2099
|
return t.tagName.toLowerCase() === "inline-dropdown" || t.querySelector('[role="combobox"]') !== null;
|
|
@@ -2117,12 +2117,12 @@ var Es = "ebsr-multiple-choice", fr = (t) => t instanceof HTMLElement && Fn(t.ta
|
|
|
2117
2117
|
getButtonContainer(t) {
|
|
2118
2118
|
return t;
|
|
2119
2119
|
}
|
|
2120
|
-
},
|
|
2120
|
+
}, Ls = class {
|
|
2121
2121
|
constructor() {
|
|
2122
|
-
|
|
2122
|
+
o(this, "adapters", void 0), this.adapters = [
|
|
2123
2123
|
new ue(),
|
|
2124
|
-
new
|
|
2125
|
-
new
|
|
2124
|
+
new Cs(),
|
|
2125
|
+
new ks()
|
|
2126
2126
|
].sort((t, e) => e.priority - t.priority);
|
|
2127
2127
|
}
|
|
2128
2128
|
findAdapter(t) {
|
|
@@ -2143,9 +2143,9 @@ var Es = "ebsr-multiple-choice", fr = (t) => t instanceof HTMLElement && Fn(t.ta
|
|
|
2143
2143
|
registerAdapter(t) {
|
|
2144
2144
|
this.adapters.push(t), this.adapters.sort((e, r) => r.priority - e.priority);
|
|
2145
2145
|
}
|
|
2146
|
-
}, Fe = class
|
|
2146
|
+
}, Fe = class K {
|
|
2147
2147
|
constructor() {
|
|
2148
|
-
|
|
2148
|
+
o(this, "name", "mask"), o(this, "highlights", /* @__PURE__ */ new Map()), o(this, "ranges", /* @__PURE__ */ new Map()), o(this, "fallbackContainers", /* @__PURE__ */ new Map());
|
|
2149
2149
|
}
|
|
2150
2150
|
initialize() {
|
|
2151
2151
|
}
|
|
@@ -2159,14 +2159,14 @@ var Es = "ebsr-multiple-choice", fr = (t) => t instanceof HTMLElement && Fn(t.ta
|
|
|
2159
2159
|
}
|
|
2160
2160
|
this.injectHighlightCSS(e);
|
|
2161
2161
|
const n = new Highlight(r);
|
|
2162
|
-
CSS.highlights.set(`${
|
|
2162
|
+
CSS.highlights.set(`${K.HIGHLIGHT_NAME_PREFIX}${e}`, n), this.highlights.set(e, n), this.ranges.set(e, r), this.addAriaAttributes(r);
|
|
2163
2163
|
}
|
|
2164
2164
|
remove(e) {
|
|
2165
2165
|
if (!this.isSupported()) {
|
|
2166
2166
|
this.removeFallback(e);
|
|
2167
2167
|
return;
|
|
2168
2168
|
}
|
|
2169
|
-
CSS.highlights.delete(`${
|
|
2169
|
+
CSS.highlights.delete(`${K.HIGHLIGHT_NAME_PREFIX}${e}`), this.removeHighlightCSS(e);
|
|
2170
2170
|
const r = this.ranges.get(e);
|
|
2171
2171
|
r && this.removeAriaAttributes(r), this.highlights.delete(e), this.ranges.delete(e), this.fallbackContainers.delete(e);
|
|
2172
2172
|
}
|
|
@@ -2184,7 +2184,7 @@ var Es = "ebsr-multiple-choice", fr = (t) => t instanceof HTMLElement && Fn(t.ta
|
|
|
2184
2184
|
return typeof CSS < "u" && "highlights" in CSS;
|
|
2185
2185
|
}
|
|
2186
2186
|
injectHighlightCSS(e) {
|
|
2187
|
-
const r = `${
|
|
2187
|
+
const r = `${K.HIGHLIGHT_STYLE_PREFIX}${e}`;
|
|
2188
2188
|
if (document.getElementById(r)) return;
|
|
2189
2189
|
const n = document.createElement("style");
|
|
2190
2190
|
n.id = r, n.textContent = `
|
|
@@ -2195,45 +2195,45 @@ var Es = "ebsr-multiple-choice", fr = (t) => t instanceof HTMLElement && Fn(t.ta
|
|
|
2195
2195
|
`, document.head.appendChild(n);
|
|
2196
2196
|
}
|
|
2197
2197
|
removeHighlightCSS(e) {
|
|
2198
|
-
document.getElementById(`${
|
|
2198
|
+
document.getElementById(`${K.HIGHLIGHT_STYLE_PREFIX}${e}`)?.remove();
|
|
2199
2199
|
}
|
|
2200
2200
|
addAriaAttributes(e) {
|
|
2201
2201
|
const r = this.findChoiceContainer(e);
|
|
2202
|
-
r && (r.setAttribute(
|
|
2202
|
+
r && (r.setAttribute(K.ELIMINATED_ATTR, "true"), r.setAttribute("aria-hidden", "true"));
|
|
2203
2203
|
}
|
|
2204
2204
|
removeAriaAttributes(e) {
|
|
2205
2205
|
const r = this.findChoiceContainer(e);
|
|
2206
|
-
r && (r.removeAttribute(
|
|
2206
|
+
r && (r.removeAttribute(K.ELIMINATED_ATTR), r.removeAttribute("aria-hidden"));
|
|
2207
2207
|
}
|
|
2208
2208
|
findChoiceContainer(e) {
|
|
2209
2209
|
let r = e.startContainer;
|
|
2210
2210
|
for (r.nodeType === Node.TEXT_NODE && (r = r.parentElement); r && r !== document.body; ) {
|
|
2211
|
-
if (r.getAttribute(
|
|
2211
|
+
if (r.getAttribute(K.CHOICE_HOOK_ATTR) === "true") return r;
|
|
2212
2212
|
r = r.parentElement;
|
|
2213
2213
|
}
|
|
2214
2214
|
return null;
|
|
2215
2215
|
}
|
|
2216
2216
|
applyFallback(e, r) {
|
|
2217
2217
|
const n = this.findChoiceContainer(r);
|
|
2218
|
-
n && (n.classList.add(
|
|
2218
|
+
n && (n.classList.add(K.FALLBACK_CLASS), n.setAttribute(K.ELIMINATED_ATTR, "true"), n.setAttribute(K.ELIMINATED_ID_ATTR, e), this.fallbackContainers.set(e, n), this.addAriaAttributes(r));
|
|
2219
2219
|
}
|
|
2220
2220
|
removeFallback(e) {
|
|
2221
2221
|
const r = this.fallbackContainers.get(e);
|
|
2222
2222
|
if (!r) return;
|
|
2223
|
-
r.classList.remove(
|
|
2223
|
+
r.classList.remove(K.FALLBACK_CLASS), r.removeAttribute(K.ELIMINATED_ATTR), r.removeAttribute(K.ELIMINATED_ID_ATTR);
|
|
2224
2224
|
const n = document.createRange();
|
|
2225
2225
|
n.selectNodeContents(r), this.removeAriaAttributes(n), this.fallbackContainers.delete(e);
|
|
2226
2226
|
}
|
|
2227
2227
|
};
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
var k = class
|
|
2228
|
+
o(Fe, "HIGHLIGHT_STYLE_PREFIX", "pie-answer-eliminator-mask-highlight-");
|
|
2229
|
+
o(Fe, "HIGHLIGHT_NAME_PREFIX", "pie-answer-masked-");
|
|
2230
|
+
o(Fe, "FALLBACK_CLASS", "pie-answer-masked-fallback");
|
|
2231
|
+
o(Fe, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
|
|
2232
|
+
o(Fe, "ELIMINATED_ATTR", "data-pie-answer-eliminated");
|
|
2233
|
+
o(Fe, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
|
|
2234
|
+
var k = class b {
|
|
2235
2235
|
constructor() {
|
|
2236
|
-
|
|
2236
|
+
o(this, "name", "strikethrough"), o(this, "highlights", /* @__PURE__ */ new Map()), o(this, "ranges", /* @__PURE__ */ new Map()), o(this, "fallbackContainers", /* @__PURE__ */ new Map()), o(this, "imageWrappers", /* @__PURE__ */ new Map()), o(this, "mathTargets", /* @__PURE__ */ new Map());
|
|
2237
2237
|
}
|
|
2238
2238
|
initialize() {
|
|
2239
2239
|
this.isSupported() || console.warn("CSS Custom Highlight API not supported, using fallback");
|
|
@@ -2245,7 +2245,7 @@ var k = class y {
|
|
|
2245
2245
|
if (this.isSupported()) {
|
|
2246
2246
|
this.injectHighlightCSS(e);
|
|
2247
2247
|
const n = new Highlight(r);
|
|
2248
|
-
CSS.highlights.set(`${
|
|
2248
|
+
CSS.highlights.set(`${b.HIGHLIGHT_NAME_PREFIX}${e}`, n), this.highlights.set(e, n), this.ranges.set(e, r), this.addAriaAttributes(r);
|
|
2249
2249
|
} else this.applyFallback(e, r);
|
|
2250
2250
|
this.strikeImages(e, r), this.strikeMath(e, r);
|
|
2251
2251
|
}
|
|
@@ -2254,7 +2254,7 @@ var k = class y {
|
|
|
2254
2254
|
this.removeFallback(e);
|
|
2255
2255
|
return;
|
|
2256
2256
|
}
|
|
2257
|
-
CSS.highlights.delete(`${
|
|
2257
|
+
CSS.highlights.delete(`${b.HIGHLIGHT_NAME_PREFIX}${e}`), this.removeHighlightCSS(e);
|
|
2258
2258
|
const r = this.ranges.get(e);
|
|
2259
2259
|
r && this.removeAriaAttributes(r), this.highlights.delete(e), this.ranges.delete(e), this.fallbackContainers.delete(e);
|
|
2260
2260
|
}
|
|
@@ -2278,7 +2278,7 @@ var k = class y {
|
|
|
2278
2278
|
return typeof CSS < "u" && "highlights" in CSS;
|
|
2279
2279
|
}
|
|
2280
2280
|
injectHighlightCSS(e) {
|
|
2281
|
-
const r = `${
|
|
2281
|
+
const r = `${b.HIGHLIGHT_STYLE_PREFIX}${e}`;
|
|
2282
2282
|
if (document.getElementById(r)) return;
|
|
2283
2283
|
const n = document.createElement("style");
|
|
2284
2284
|
n.id = r, n.textContent = `
|
|
@@ -2290,38 +2290,38 @@ var k = class y {
|
|
|
2290
2290
|
`, document.head.appendChild(n);
|
|
2291
2291
|
}
|
|
2292
2292
|
removeHighlightCSS(e) {
|
|
2293
|
-
document.getElementById(`${
|
|
2293
|
+
document.getElementById(`${b.HIGHLIGHT_STYLE_PREFIX}${e}`)?.remove();
|
|
2294
2294
|
}
|
|
2295
2295
|
addAriaAttributes(e) {
|
|
2296
2296
|
const r = this.findChoiceContainer(e);
|
|
2297
2297
|
if (!r) return;
|
|
2298
|
-
r.setAttribute(
|
|
2298
|
+
r.setAttribute(b.ELIMINATED_ATTR, "true"), r.setAttribute("aria-disabled", "true");
|
|
2299
2299
|
const n = this.resolveLabelElement(r);
|
|
2300
|
-
if (n && !n.querySelector(`.${
|
|
2300
|
+
if (n && !n.querySelector(`.${b.SR_CLASS}`)) {
|
|
2301
2301
|
const i = document.createElement("span");
|
|
2302
|
-
i.className =
|
|
2302
|
+
i.className = b.SR_CLASS, i.textContent = " (eliminated)", n.appendChild(i);
|
|
2303
2303
|
}
|
|
2304
2304
|
}
|
|
2305
2305
|
removeAriaAttributes(e) {
|
|
2306
2306
|
const r = this.findChoiceContainer(e);
|
|
2307
|
-
r && (r.removeAttribute(
|
|
2307
|
+
r && (r.removeAttribute(b.ELIMINATED_ATTR), r.removeAttribute("aria-disabled"), r.querySelector(`.${b.SR_CLASS}`)?.remove());
|
|
2308
2308
|
}
|
|
2309
2309
|
findChoiceContainer(e) {
|
|
2310
2310
|
let r = e.startContainer;
|
|
2311
2311
|
for (r.nodeType === Node.TEXT_NODE && (r = r.parentElement); r && r !== document.body; ) {
|
|
2312
|
-
if (r.getAttribute(
|
|
2312
|
+
if (r.getAttribute(b.CHOICE_HOOK_ATTR) === "true") return r;
|
|
2313
2313
|
r = r.parentElement;
|
|
2314
2314
|
}
|
|
2315
2315
|
return null;
|
|
2316
2316
|
}
|
|
2317
2317
|
applyFallback(e, r) {
|
|
2318
2318
|
const n = this.findChoiceContainer(r);
|
|
2319
|
-
n && (n.classList.add(
|
|
2319
|
+
n && (n.classList.add(b.FALLBACK_CLASS), n.setAttribute(b.ELIMINATED_ATTR, "true"), n.setAttribute(b.ELIMINATED_ID_ATTR, e), this.fallbackContainers.set(e, n), this.addAriaAttributes(r));
|
|
2320
2320
|
}
|
|
2321
2321
|
removeFallback(e) {
|
|
2322
2322
|
const r = this.fallbackContainers.get(e);
|
|
2323
2323
|
if (!r) return;
|
|
2324
|
-
r.classList.remove(
|
|
2324
|
+
r.classList.remove(b.FALLBACK_CLASS), r.removeAttribute(b.ELIMINATED_ATTR), r.removeAttribute(b.ELIMINATED_ID_ATTR);
|
|
2325
2325
|
const n = document.createRange();
|
|
2326
2326
|
n.selectNodeContents(r), this.removeAriaAttributes(n), this.fallbackContainers.delete(e);
|
|
2327
2327
|
}
|
|
@@ -2346,9 +2346,9 @@ var k = class y {
|
|
|
2346
2346
|
const n = this.resolveImageScope(r);
|
|
2347
2347
|
if (!n) return;
|
|
2348
2348
|
const i = [];
|
|
2349
|
-
for (const s of n.querySelectorAll(
|
|
2350
|
-
const l = s.querySelector(
|
|
2351
|
-
l.classList.add(
|
|
2349
|
+
for (const s of n.querySelectorAll(b.MATH_SELECTOR)) {
|
|
2350
|
+
const l = s.querySelector(b.MATH_BOX_SELECTOR) ?? s, u = !!l.querySelector(b.MATH_STACKED_SELECTOR);
|
|
2351
|
+
l.classList.add(b.MATH_STRIKE_CLASS, u ? b.MATH_STRIKE_CROSS_CLASS : b.MATH_STRIKE_LINE_CLASS), l.setAttribute(b.MATH_STRIKE_ATTR, u ? "cross" : "line"), i.push(l);
|
|
2352
2352
|
}
|
|
2353
2353
|
i.length > 0 && this.mathTargets.set(e, i);
|
|
2354
2354
|
}
|
|
@@ -2356,7 +2356,7 @@ var k = class y {
|
|
|
2356
2356
|
const r = this.mathTargets.get(e);
|
|
2357
2357
|
if (r) {
|
|
2358
2358
|
for (const n of r)
|
|
2359
|
-
n.classList.remove(
|
|
2359
|
+
n.classList.remove(b.MATH_STRIKE_CLASS, b.MATH_STRIKE_LINE_CLASS, b.MATH_STRIKE_CROSS_CLASS), n.removeAttribute(b.MATH_STRIKE_ATTR);
|
|
2360
2360
|
this.mathTargets.delete(e);
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
@@ -2367,16 +2367,16 @@ var k = class y {
|
|
|
2367
2367
|
wrapImage(e) {
|
|
2368
2368
|
const r = e.parentElement;
|
|
2369
2369
|
if (!r) return null;
|
|
2370
|
-
if (r.classList.contains(
|
|
2370
|
+
if (r.classList.contains(b.IMAGE_WRAPPER_CLASS) || r.hasAttribute(b.IMAGE_WRAPPER_ATTR)) return r;
|
|
2371
2371
|
const n = document.createElement("span");
|
|
2372
|
-
return n.className =
|
|
2372
|
+
return n.className = b.IMAGE_WRAPPER_CLASS, n.setAttribute(b.IMAGE_WRAPPER_ATTR, "true"), this.fillsParentWidth(e, r) ? n.style.display = "block" : b.BLOCK_DISPLAYS.has(getComputedStyle(e).display) && (n.style.display = "block", n.style.width = "fit-content"), r.insertBefore(n, e), n.appendChild(e), n.appendChild(this.createImageStrikeOverlay()), n;
|
|
2373
2373
|
}
|
|
2374
2374
|
fillsParentWidth(e, r) {
|
|
2375
2375
|
const n = e.getBoundingClientRect().width, i = r.clientWidth;
|
|
2376
2376
|
return n === 0 || i === 0 ? !1 : n >= i - 1;
|
|
2377
2377
|
}
|
|
2378
2378
|
unwrapImage(e) {
|
|
2379
|
-
e.querySelector(`.${
|
|
2379
|
+
e.querySelector(`.${b.IMAGE_OVERLAY_CLASS}`)?.remove();
|
|
2380
2380
|
const r = e.parentElement;
|
|
2381
2381
|
if (r) {
|
|
2382
2382
|
for (; e.firstChild; ) r.insertBefore(e.firstChild, e);
|
|
@@ -2384,8 +2384,8 @@ var k = class y {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
}
|
|
2386
2386
|
createImageStrikeOverlay() {
|
|
2387
|
-
const e = document.createElementNS(
|
|
2388
|
-
e.setAttribute("class",
|
|
2387
|
+
const e = document.createElementNS(b.SVG_NS, "svg");
|
|
2388
|
+
e.setAttribute("class", b.IMAGE_OVERLAY_CLASS), e.setAttribute("viewBox", "0 0 100 100"), e.setAttribute("preserveAspectRatio", "none"), e.setAttribute("aria-hidden", "true"), e.setAttribute("focusable", "false");
|
|
2389
2389
|
const r = [{
|
|
2390
2390
|
x1: "0",
|
|
2391
2391
|
y1: "0",
|
|
@@ -2397,38 +2397,38 @@ var k = class y {
|
|
|
2397
2397
|
x2: "100",
|
|
2398
2398
|
y2: "0"
|
|
2399
2399
|
}];
|
|
2400
|
-
for (const n of [
|
|
2401
|
-
const
|
|
2402
|
-
|
|
2400
|
+
for (const n of [b.IMAGE_CASING_CLASS, b.IMAGE_LINE_CLASS]) for (const { x1: i, y1: s, x2: l, y2: u } of r) {
|
|
2401
|
+
const c = document.createElementNS(b.SVG_NS, "line");
|
|
2402
|
+
c.setAttribute("class", n), c.setAttribute("x1", i), c.setAttribute("y1", s), c.setAttribute("x2", l), c.setAttribute("y2", u), c.setAttribute("vector-effect", "non-scaling-stroke"), e.appendChild(c);
|
|
2403
2403
|
}
|
|
2404
2404
|
return e;
|
|
2405
2405
|
}
|
|
2406
2406
|
resolveLabelElement(e) {
|
|
2407
|
-
return e.querySelector(`[${
|
|
2407
|
+
return e.querySelector(`[${b.LABEL_HOOK_ATTR}="true"]`) || e.querySelector("label");
|
|
2408
2408
|
}
|
|
2409
2409
|
};
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2410
|
+
o(k, "HIGHLIGHT_STYLE_PREFIX", "pie-answer-eliminator-highlight-");
|
|
2411
|
+
o(k, "HIGHLIGHT_NAME_PREFIX", "pie-answer-eliminated-");
|
|
2412
|
+
o(k, "FALLBACK_CLASS", "pie-answer-eliminator-eliminated-fallback");
|
|
2413
|
+
o(k, "SR_CLASS", "pie-answer-eliminator-sr-announcement");
|
|
2414
|
+
o(k, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
|
|
2415
|
+
o(k, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label");
|
|
2416
|
+
o(k, "ELIMINATED_ATTR", "data-pie-answer-eliminated");
|
|
2417
|
+
o(k, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
|
|
2418
|
+
o(k, "IMAGE_WRAPPER_CLASS", "pie-answer-eliminator-image-strike");
|
|
2419
|
+
o(k, "IMAGE_WRAPPER_ATTR", "data-pie-answer-eliminator-image-strike");
|
|
2420
|
+
o(k, "IMAGE_OVERLAY_CLASS", "pie-answer-eliminator-image-strike-overlay");
|
|
2421
|
+
o(k, "IMAGE_LINE_CLASS", "pie-answer-eliminator-image-strike-line");
|
|
2422
|
+
o(k, "IMAGE_CASING_CLASS", "pie-answer-eliminator-image-strike-casing");
|
|
2423
|
+
o(k, "MATH_STRIKE_CLASS", "pie-answer-eliminator-math-strike");
|
|
2424
|
+
o(k, "MATH_STRIKE_LINE_CLASS", "pie-answer-eliminator-math-strike--line");
|
|
2425
|
+
o(k, "MATH_STRIKE_CROSS_CLASS", "pie-answer-eliminator-math-strike--cross");
|
|
2426
|
+
o(k, "MATH_STRIKE_ATTR", "data-pie-answer-eliminator-math-strike");
|
|
2427
|
+
o(k, "MATH_STACKED_SELECTOR", "mjx-mfrac, mjx-mtable");
|
|
2428
|
+
o(k, "MATH_BOX_SELECTOR", "mjx-math");
|
|
2429
|
+
o(k, "MATH_SELECTOR", "mjx-container");
|
|
2430
|
+
o(k, "SVG_NS", "http://www.w3.org/2000/svg");
|
|
2431
|
+
o(k, "BLOCK_DISPLAYS", /* @__PURE__ */ new Set([
|
|
2432
2432
|
"block",
|
|
2433
2433
|
"flex",
|
|
2434
2434
|
"grid",
|
|
@@ -2436,130 +2436,145 @@ u(k, "BLOCK_DISPLAYS", /* @__PURE__ */ new Set([
|
|
|
2436
2436
|
"flow-root",
|
|
2437
2437
|
"list-item"
|
|
2438
2438
|
]));
|
|
2439
|
-
var
|
|
2439
|
+
var Mr = "answerEliminator", dr = class yt {
|
|
2440
2440
|
constructor(e = "strikethrough", r = "right") {
|
|
2441
|
-
|
|
2441
|
+
o(this, "registry", void 0), o(this, "strategy", void 0), o(this, "choices", /* @__PURE__ */ new Map()), o(this, "eliminated", /* @__PURE__ */ new Set()), o(this, "strategyKeys", /* @__PURE__ */ new Map()), o(this, "anonymousGroups", /* @__PURE__ */ new WeakMap()), o(this, "nextToken", 0), o(this, "buttonAlignment", "right"), o(this, "shouldRestoreState", !0), o(this, "active", !0), o(this, "questionRoot", null), o(this, "selectionChangeHandler", null), o(this, "selectionObserver", null), o(this, "selectionRefreshFrame", null), o(this, "store", null), o(this, "elementStateKeys", {}), this.registry = new Ls(), this.strategy = this.createStrategy(e), this.strategy.initialize(), this.buttonAlignment = r;
|
|
2442
2442
|
}
|
|
2443
2443
|
createStrategy(e) {
|
|
2444
2444
|
return e === "mask" ? new Fe() : new k();
|
|
2445
2445
|
}
|
|
2446
2446
|
initializeForQuestion(e) {
|
|
2447
|
-
this.active = !0
|
|
2448
|
-
const r = this.
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
const
|
|
2454
|
-
this.
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2447
|
+
this.active = !0;
|
|
2448
|
+
const r = new Set(this.eliminated);
|
|
2449
|
+
this.restoreAllSelectable(), this.strategy.clearAll(), this.eliminated.clear(), this.cleanupButtons();
|
|
2450
|
+
const n = this.registry.findAllChoicesWithAdapters(e);
|
|
2451
|
+
for (const { choice: s, adapter: l } of n) this.initializeChoice(s, l, e);
|
|
2452
|
+
const i = this.readPersistedEliminations();
|
|
2453
|
+
for (const [s, l] of this.choices) (i.has(l.group) ? i.get(l.group)?.has(l.choiceId) : r.has(s)) && this.applyElimination(s, l);
|
|
2454
|
+
this.attachSelectionListener(e);
|
|
2455
|
+
}
|
|
2456
|
+
trackingKey(e, r) {
|
|
2457
|
+
return `${e}\0${r}`;
|
|
2458
|
+
}
|
|
2459
|
+
resolveGroup(e, r) {
|
|
2460
|
+
let n = null;
|
|
2461
|
+
for (let l = e.parentElement; l !== null; l = l === r ? null : l.parentElement) {
|
|
2462
|
+
if (l.id && Object.hasOwn(this.elementStateKeys, l.id)) return l.id;
|
|
2463
|
+
n === null && l.localName.includes("-") && (n = l);
|
|
2464
|
+
}
|
|
2465
|
+
const i = n ?? r;
|
|
2466
|
+
let s = this.anonymousGroups.get(i);
|
|
2467
|
+
return s || (s = `\0anonymous-${this.nextToken++}`, this.anonymousGroups.set(i, s)), s;
|
|
2468
|
+
}
|
|
2469
|
+
strategyKeyFor(e) {
|
|
2470
|
+
let r = this.strategyKeys.get(e);
|
|
2471
|
+
return r || (r = `choice-${this.nextToken++}`, this.strategyKeys.set(e, r)), r;
|
|
2472
|
+
}
|
|
2473
|
+
initializeChoice(e, r, n) {
|
|
2474
|
+
const i = r.getChoiceId(e), s = this.resolveGroup(e, n), l = this.trackingKey(s, i), u = {
|
|
2475
|
+
choiceId: i,
|
|
2476
|
+
group: s,
|
|
2477
|
+
strategyKey: this.strategyKeyFor(l),
|
|
2478
|
+
element: e,
|
|
2479
|
+
adapter: r,
|
|
2480
|
+
button: null
|
|
2481
|
+
};
|
|
2482
|
+
this.choices.set(l, u);
|
|
2483
|
+
const c = this.createToggleButton(l, u);
|
|
2484
|
+
u.button = c, this.updateButtonVisibility(l);
|
|
2485
|
+
const y = r.getButtonContainer(e);
|
|
2486
|
+
y && (y.style.position = "relative", y.appendChild(c));
|
|
2460
2487
|
}
|
|
2461
2488
|
createToggleButton(e, r) {
|
|
2462
|
-
const n = r.
|
|
2463
|
-
|
|
2464
|
-
const
|
|
2465
|
-
return
|
|
2466
|
-
|
|
2467
|
-
}),
|
|
2468
|
-
}
|
|
2469
|
-
toggleElimination(e
|
|
2470
|
-
const
|
|
2471
|
-
if (
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2489
|
+
const n = r.adapter.getChoiceLabel(r.element), i = document.createElement("button");
|
|
2490
|
+
i.type = "button", i.className = yt.TOGGLE_CLASS, i.setAttribute("aria-label", `Toggle elimination for ${n}`), i.setAttribute("aria-pressed", "false"), i.setAttribute("data-choice-id", r.choiceId);
|
|
2491
|
+
const s = document.createElement("span");
|
|
2492
|
+
return s.setAttribute("aria-hidden", "true"), s.textContent = "⊗", i.appendChild(s), this.applyButtonAlignment(i), i.dataset.pieShownDisplay = i.style.display, i.addEventListener("click", (l) => {
|
|
2493
|
+
l.preventDefault(), l.stopPropagation(), this.toggleElimination(e);
|
|
2494
|
+
}), i;
|
|
2495
|
+
}
|
|
2496
|
+
toggleElimination(e) {
|
|
2497
|
+
const r = this.choices.get(e);
|
|
2498
|
+
if (r) {
|
|
2499
|
+
if (this.eliminated.has(e)) this.restoreChoice(e);
|
|
2500
|
+
else {
|
|
2501
|
+
if (!r.adapter.canEliminate(r.element)) {
|
|
2502
|
+
console.warn("Cannot eliminate this choice (already selected or in evaluate mode)");
|
|
2503
|
+
return;
|
|
2504
|
+
}
|
|
2505
|
+
if (!this.applyElimination(e, r)) {
|
|
2506
|
+
console.error("Failed to create range for choice");
|
|
2507
|
+
return;
|
|
2508
|
+
}
|
|
2476
2509
|
}
|
|
2477
|
-
this.
|
|
2510
|
+
this.saveState(r.group);
|
|
2478
2511
|
}
|
|
2479
|
-
this.saveState();
|
|
2480
2512
|
}
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
return;
|
|
2486
|
-
}
|
|
2487
|
-
this.strategy.apply(n, i), this.eliminatedChoices.add(n), r.setSelectable?.(e, !1);
|
|
2488
|
-
const s = this.choiceButtons.get(n);
|
|
2489
|
-
s && (s.classList.add(Qe.TOGGLE_ACTIVE_CLASS), s.setAttribute("aria-pressed", "true")), this.updateButtonVisibility(n), this.saveState();
|
|
2513
|
+
applyElimination(e, r) {
|
|
2514
|
+
if (r.adapter.isSelected?.(r.element)) return !1;
|
|
2515
|
+
const n = r.adapter.createChoiceRange(r.element);
|
|
2516
|
+
return n ? (this.strategy.apply(r.strategyKey, n), this.eliminated.add(e), r.adapter.setSelectable?.(r.element, !1), r.button && (r.button.classList.add(yt.TOGGLE_ACTIVE_CLASS), r.button.setAttribute("aria-pressed", "true")), this.updateButtonVisibility(e), !0) : !1;
|
|
2490
2517
|
}
|
|
2491
2518
|
restoreChoice(e) {
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
r && n && n.setSelectable?.(r, !0);
|
|
2495
|
-
const i = this.choiceButtons.get(e);
|
|
2496
|
-
i && (i.classList.remove(Qe.TOGGLE_ACTIVE_CLASS), i.setAttribute("aria-pressed", "false")), this.updateButtonVisibility(e), this.saveState();
|
|
2519
|
+
const r = this.choices.get(e);
|
|
2520
|
+
this.eliminated.delete(e), r && (this.strategy.remove(r.strategyKey), r.adapter.setSelectable?.(r.element, !0), r.button && (r.button.classList.remove(yt.TOGGLE_ACTIVE_CLASS), r.button.setAttribute("aria-pressed", "false")), this.updateButtonVisibility(e));
|
|
2497
2521
|
}
|
|
2498
2522
|
resetAll() {
|
|
2499
|
-
if (this.
|
|
2500
|
-
|
|
2501
|
-
|
|
2523
|
+
if (this.eliminated.size === 0) return;
|
|
2524
|
+
const e = /* @__PURE__ */ new Set();
|
|
2525
|
+
for (const r of Array.from(this.eliminated)) {
|
|
2526
|
+
const n = this.choices.get(r)?.group;
|
|
2527
|
+
n !== void 0 && e.add(n), this.restoreChoice(r);
|
|
2502
2528
|
}
|
|
2529
|
+
for (const r of e) this.saveState(r);
|
|
2503
2530
|
}
|
|
2504
2531
|
getEliminatedCount() {
|
|
2505
|
-
return this.
|
|
2532
|
+
return this.eliminated.size;
|
|
2506
2533
|
}
|
|
2507
2534
|
setStoreIntegration(e, r) {
|
|
2508
|
-
this.
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
const e =
|
|
2521
|
-
if (!
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
if (!s || s.isSelected?.(i)) continue;
|
|
2530
|
-
const l = s.createChoiceRange(i);
|
|
2531
|
-
if (l) {
|
|
2532
|
-
this.strategy.apply(n, l), this.eliminatedChoices.add(n), s.setSelectable?.(i, !1);
|
|
2533
|
-
const o = this.choiceButtons.get(n);
|
|
2534
|
-
o && (o.classList.add(Qe.TOGGLE_ACTIVE_CLASS), o.setAttribute("aria-pressed", "true")), this.updateButtonVisibility(n);
|
|
2535
|
-
}
|
|
2535
|
+
this.store = e, this.elementStateKeys = r;
|
|
2536
|
+
}
|
|
2537
|
+
saveState(e) {
|
|
2538
|
+
if (!this.store || !Object.hasOwn(this.elementStateKeys, e)) return;
|
|
2539
|
+
const r = [];
|
|
2540
|
+
for (const n of this.eliminated) {
|
|
2541
|
+
const i = this.choices.get(n);
|
|
2542
|
+
i?.group === e && r.push(i.choiceId);
|
|
2543
|
+
}
|
|
2544
|
+
this.store.setState(this.elementStateKeys[e], Mr, { eliminatedChoices: r });
|
|
2545
|
+
}
|
|
2546
|
+
readPersistedEliminations() {
|
|
2547
|
+
const e = /* @__PURE__ */ new Map();
|
|
2548
|
+
if (!this.store || !this.shouldRestoreState) return e;
|
|
2549
|
+
for (const { group: r } of this.choices.values())
|
|
2550
|
+
if (!(e.has(r) || !Object.hasOwn(this.elementStateKeys, r)))
|
|
2551
|
+
try {
|
|
2552
|
+
const n = this.store.getState(this.elementStateKeys[r], Mr), i = Array.isArray(n?.eliminatedChoices) ? n.eliminatedChoices.filter((s) => typeof s == "string") : [];
|
|
2553
|
+
e.set(r, new Set(i));
|
|
2554
|
+
} catch (n) {
|
|
2555
|
+
console.error("Failed to restore eliminator state:", n);
|
|
2536
2556
|
}
|
|
2537
|
-
|
|
2538
|
-
console.error("Failed to restore eliminator state:", r);
|
|
2539
|
-
}
|
|
2557
|
+
return e;
|
|
2540
2558
|
}
|
|
2541
2559
|
restoreAllSelectable() {
|
|
2542
|
-
for (const e of this.
|
|
2543
|
-
const r = this.
|
|
2544
|
-
r
|
|
2560
|
+
for (const e of this.eliminated) {
|
|
2561
|
+
const r = this.choices.get(e);
|
|
2562
|
+
r?.adapter.setSelectable?.(r.element, !0);
|
|
2545
2563
|
}
|
|
2546
2564
|
}
|
|
2547
2565
|
setButtonHidden(e, r) {
|
|
2548
2566
|
const n = r ? "none" : e.dataset.pieShownDisplay ?? "";
|
|
2549
2567
|
e.style.display !== n && (e.style.display = n);
|
|
2550
2568
|
}
|
|
2551
|
-
shouldHideButton(e, r
|
|
2552
|
-
return this.
|
|
2569
|
+
shouldHideButton(e, r) {
|
|
2570
|
+
return this.eliminated.has(e) ? !1 : this.active ? r.adapter.isSelected?.(r.element) ?? !1 : !0;
|
|
2553
2571
|
}
|
|
2554
2572
|
updateButtonVisibility(e) {
|
|
2555
|
-
const r = this.
|
|
2556
|
-
|
|
2573
|
+
const r = this.choices.get(e);
|
|
2574
|
+
r?.button && this.setButtonHidden(r.button, this.shouldHideButton(e, r));
|
|
2557
2575
|
}
|
|
2558
2576
|
refreshSelectionState() {
|
|
2559
|
-
for (const
|
|
2560
|
-
const n = this.choiceAdapters.get(e), i = this.choiceButtons.get(e);
|
|
2561
|
-
!n || !i || this.setButtonHidden(i, this.shouldHideButton(e, r, n));
|
|
2562
|
-
}
|
|
2577
|
+
for (const e of this.choices.keys()) this.updateButtonVisibility(e);
|
|
2563
2578
|
}
|
|
2564
2579
|
scheduleSelectionRefresh() {
|
|
2565
2580
|
this.selectionRefreshFrame === null && (this.selectionRefreshFrame = requestAnimationFrame(() => {
|
|
@@ -2568,7 +2583,8 @@ var hr = class Qe {
|
|
|
2568
2583
|
}
|
|
2569
2584
|
attachSelectionListener(e) {
|
|
2570
2585
|
this.detachSelectionListener(), this.questionRoot = e, this.selectionChangeHandler = () => this.scheduleSelectionRefresh(), e.addEventListener("change", this.selectionChangeHandler), typeof MutationObserver < "u" && (this.selectionObserver = new MutationObserver((r) => {
|
|
2571
|
-
const n = new Set(
|
|
2586
|
+
const n = /* @__PURE__ */ new Set();
|
|
2587
|
+
for (const { button: i } of this.choices.values()) i && n.add(i);
|
|
2572
2588
|
r.some((i) => !n.has(i.target)) && this.scheduleSelectionRefresh();
|
|
2573
2589
|
}), this.selectionObserver.observe(e, {
|
|
2574
2590
|
subtree: !0,
|
|
@@ -2581,8 +2597,8 @@ var hr = class Qe {
|
|
|
2581
2597
|
}
|
|
2582
2598
|
cleanupButtons() {
|
|
2583
2599
|
this.detachSelectionListener();
|
|
2584
|
-
for (const e of this.
|
|
2585
|
-
this.
|
|
2600
|
+
for (const { button: e } of this.choices.values()) e?.remove();
|
|
2601
|
+
this.choices.clear();
|
|
2586
2602
|
}
|
|
2587
2603
|
applyButtonAlignment(e) {
|
|
2588
2604
|
switch (this.buttonAlignment) {
|
|
@@ -2622,118 +2638,112 @@ var hr = class Qe {
|
|
|
2622
2638
|
this.active = !1, this.refreshSelectionState();
|
|
2623
2639
|
}
|
|
2624
2640
|
destroy() {
|
|
2625
|
-
this.restoreAllSelectable(), this.cleanupButtons(), this.strategy.destroy();
|
|
2641
|
+
this.restoreAllSelectable(), this.eliminated.clear(), this.cleanupButtons(), this.strategy.destroy();
|
|
2626
2642
|
}
|
|
2627
2643
|
};
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
var Rs = /* @__PURE__ */
|
|
2631
|
-
function
|
|
2644
|
+
o(dr, "TOGGLE_CLASS", "pie-answer-eliminator-toggle");
|
|
2645
|
+
o(dr, "TOGGLE_ACTIVE_CLASS", "pie-answer-eliminator-toggle--active");
|
|
2646
|
+
var Rs = /* @__PURE__ */ rs('<div style="display: none;" aria-hidden="true"></div>');
|
|
2647
|
+
function Os(t, e) {
|
|
2632
2648
|
jr(e, !0);
|
|
2633
|
-
let r =
|
|
2634
|
-
const
|
|
2635
|
-
let v = /* @__PURE__ */
|
|
2636
|
-
const
|
|
2637
|
-
let
|
|
2649
|
+
let r = we(e, "visible", 7, !1), n = we(e, "toolId", 7, "answerEliminator"), i = we(e, "strategy", 7, "strikethrough"), s = we(e, "alwaysOn", 7, !1), l = we(e, "buttonAlignment", 7, "right"), u = we(e, "scopeElement", 7, null), c = we(e, "elementStateKeys", 23, () => ({})), y = /* @__PURE__ */ D(null), _ = /* @__PURE__ */ D(null), f = /* @__PURE__ */ D(null);
|
|
2650
|
+
const d = /* @__PURE__ */ Kt(() => w(_)?.toolCoordinator), h = /* @__PURE__ */ Kt(() => w(_)?.elementToolStateStore ?? null);
|
|
2651
|
+
let v = /* @__PURE__ */ D(null), p = /* @__PURE__ */ D(null);
|
|
2652
|
+
const L = Fn("Answer Eliminator", Nn.MODAL);
|
|
2653
|
+
let R = /* @__PURE__ */ Kt(() => s() || r());
|
|
2638
2654
|
Ee(() => {
|
|
2639
|
-
if (w(
|
|
2640
|
-
return
|
|
2641
|
-
|
|
2655
|
+
if (w(y))
|
|
2656
|
+
return Pn(w(y), ($) => {
|
|
2657
|
+
P(_, $, !0);
|
|
2642
2658
|
});
|
|
2643
2659
|
}), Ee(() => {
|
|
2644
|
-
if (w(
|
|
2645
|
-
return Bn(w(
|
|
2646
|
-
|
|
2660
|
+
if (w(y))
|
|
2661
|
+
return Bn(w(y), ($) => {
|
|
2662
|
+
P(f, $, !0);
|
|
2647
2663
|
});
|
|
2648
2664
|
});
|
|
2649
2665
|
function N() {
|
|
2650
|
-
return
|
|
2666
|
+
return u() || w(f)?.scopeElement || null;
|
|
2651
2667
|
}
|
|
2652
2668
|
function U() {
|
|
2653
|
-
if (!w(
|
|
2654
|
-
const
|
|
2655
|
-
if (
|
|
2669
|
+
if (!w(R) || !w(v)) return;
|
|
2670
|
+
const $ = N();
|
|
2671
|
+
if (!$) {
|
|
2656
2672
|
console.warn("[AnswerEliminator] Missing shell scope context for question root");
|
|
2657
2673
|
return;
|
|
2658
2674
|
}
|
|
2659
|
-
w(v).initializeForQuestion(
|
|
2675
|
+
w(v).initializeForQuestion($);
|
|
2660
2676
|
}
|
|
2661
|
-
function
|
|
2677
|
+
function I() {
|
|
2662
2678
|
requestAnimationFrame(() => {
|
|
2663
2679
|
requestAnimationFrame(() => {
|
|
2664
2680
|
U();
|
|
2665
2681
|
});
|
|
2666
2682
|
});
|
|
2667
2683
|
}
|
|
2668
|
-
Ee(() =>
|
|
2669
|
-
w(v)
|
|
2670
|
-
}),
|
|
2671
|
-
w(v)?.destroy(),
|
|
2684
|
+
Ee(() => L.sync(w(d), n())), Ee(() => {
|
|
2685
|
+
w(v)?.setStoreIntegration(w(h), c() ?? {});
|
|
2686
|
+
}), ps(() => (P(v, new dr(i(), l()), !0), w(v).setStoreIntegration(w(h), c() ?? {}), w(R) ? U() : w(v).cleanup(), () => {
|
|
2687
|
+
w(v)?.destroy(), P(v, null), L.release();
|
|
2672
2688
|
})), Ee(() => {
|
|
2673
|
-
const
|
|
2674
|
-
if (
|
|
2689
|
+
const $ = w(f)?.contextVersion ?? null;
|
|
2690
|
+
if ($ !== null) {
|
|
2675
2691
|
if (w(p) === null) {
|
|
2676
|
-
|
|
2692
|
+
P(p, $, !0);
|
|
2677
2693
|
return;
|
|
2678
2694
|
}
|
|
2679
|
-
|
|
2695
|
+
$ !== w(p) && (P(p, $, !0), I());
|
|
2680
2696
|
}
|
|
2681
2697
|
}), Ee(() => {
|
|
2682
|
-
w(v) && (w(
|
|
2698
|
+
w(v) && (w(R) ? (w(v).enableStateRestoration(), U()) : w(v).cleanup());
|
|
2683
2699
|
});
|
|
2684
|
-
var
|
|
2700
|
+
var fe = {
|
|
2685
2701
|
get visible() {
|
|
2686
2702
|
return r();
|
|
2687
2703
|
},
|
|
2688
|
-
set visible(
|
|
2689
|
-
r(
|
|
2704
|
+
set visible($ = !1) {
|
|
2705
|
+
r($), _e();
|
|
2690
2706
|
},
|
|
2691
2707
|
get toolId() {
|
|
2692
2708
|
return n();
|
|
2693
2709
|
},
|
|
2694
|
-
set toolId(
|
|
2695
|
-
n(
|
|
2710
|
+
set toolId($ = "answerEliminator") {
|
|
2711
|
+
n($), _e();
|
|
2696
2712
|
},
|
|
2697
2713
|
get strategy() {
|
|
2698
2714
|
return i();
|
|
2699
2715
|
},
|
|
2700
|
-
set strategy(
|
|
2701
|
-
i(
|
|
2716
|
+
set strategy($ = "strikethrough") {
|
|
2717
|
+
i($), _e();
|
|
2702
2718
|
},
|
|
2703
2719
|
get alwaysOn() {
|
|
2704
2720
|
return s();
|
|
2705
2721
|
},
|
|
2706
|
-
set alwaysOn(
|
|
2707
|
-
s(
|
|
2722
|
+
set alwaysOn($ = !1) {
|
|
2723
|
+
s($), _e();
|
|
2708
2724
|
},
|
|
2709
2725
|
get buttonAlignment() {
|
|
2710
2726
|
return l();
|
|
2711
2727
|
},
|
|
2712
|
-
set buttonAlignment(
|
|
2713
|
-
l(
|
|
2728
|
+
set buttonAlignment($ = "right") {
|
|
2729
|
+
l($), _e();
|
|
2714
2730
|
},
|
|
2715
2731
|
get scopeElement() {
|
|
2716
|
-
return
|
|
2717
|
-
},
|
|
2718
|
-
set scopeElement(T = null) {
|
|
2719
|
-
o(T), he();
|
|
2720
|
-
},
|
|
2721
|
-
get elementToolStateStore() {
|
|
2722
|
-
return f();
|
|
2732
|
+
return u();
|
|
2723
2733
|
},
|
|
2724
|
-
set
|
|
2725
|
-
|
|
2734
|
+
set scopeElement($ = null) {
|
|
2735
|
+
u($), _e();
|
|
2726
2736
|
},
|
|
2727
|
-
get
|
|
2728
|
-
return
|
|
2737
|
+
get elementStateKeys() {
|
|
2738
|
+
return c();
|
|
2729
2739
|
},
|
|
2730
|
-
set
|
|
2731
|
-
|
|
2740
|
+
set elementStateKeys($ = {}) {
|
|
2741
|
+
c($), _e();
|
|
2732
2742
|
}
|
|
2733
|
-
},
|
|
2734
|
-
return
|
|
2743
|
+
}, ce = Rs();
|
|
2744
|
+
return ys(ce, ($) => P(y, $), () => w(y)), Tn(t, ce), qr(fe);
|
|
2735
2745
|
}
|
|
2736
|
-
Is("pie-tool-answer-eliminator",
|
|
2746
|
+
Is("pie-tool-answer-eliminator", Es(Os, {
|
|
2737
2747
|
visible: {
|
|
2738
2748
|
attribute: "visible",
|
|
2739
2749
|
type: "Boolean"
|
|
@@ -2755,12 +2765,11 @@ Is("pie-tool-answer-eliminator", As(Ls, {
|
|
|
2755
2765
|
type: "String"
|
|
2756
2766
|
},
|
|
2757
2767
|
scopeElement: { type: "Object" },
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
}, [], [], { mode: "open" }, xn));
|
|
2768
|
+
elementStateKeys: { type: "Object" }
|
|
2769
|
+
}, [], [], { mode: "open" }, Hn));
|
|
2761
2770
|
function Is(t, e) {
|
|
2762
2771
|
customElements.get(t) || customElements.define(t, e);
|
|
2763
2772
|
}
|
|
2764
2773
|
export {
|
|
2765
|
-
|
|
2774
|
+
Os as default
|
|
2766
2775
|
};
|