@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.
@@ -1,17 +1,17 @@
1
- import { coerceBooleanAttributes as xn } from "@pie-players/pie-players-shared/ui/attribute-coercion";
2
- import { ZIndexLayer as Hn, connectToolRuntimeContext as Nn, connectToolShellContext as Bn, createToolCoordinatorRegistration as Pn } from "@pie-players/pie-assessment-toolkit";
3
- import { parseVersionedTagName as Fn } from "@pie-players/pie-players-shared/pie/tag-names";
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 dr, vr;
6
- ((dr = (vr = window).__svelte ?? (vr.__svelte = {})).v ?? (dr.v = /* @__PURE__ */ new Set())).add("5");
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 Wn = Array.isArray, Dn = Array.prototype.indexOf, wt = Array.prototype.includes, Gn = Array.from, St = Object.keys, tt = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, jn = Object.prototype, qn = Array.prototype, Kn = Object.getPrototypeOf, _r = Object.isExtensible, Yn = () => {
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 Vn(t) {
11
+ function zn(t) {
12
12
  for (var e = 0; e < t.length; e++) t[e]();
13
13
  }
14
- function zn() {
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 rt(t) {
24
+ function tt(t) {
25
25
  "@babel/helpers - typeof";
26
- return rt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
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
- }, rt(t);
30
+ }, tt(t);
31
31
  }
32
- function Un(t, e) {
33
- if (rt(t) != "object" || !t) return t;
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 (rt(n) != "object") return n;
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 Xn(t) {
43
- var e = Un(t, "string");
44
- return rt(e) == "symbol" ? e : e + "";
42
+ function Qn(t) {
43
+ var e = Xn(t, "string");
44
+ return tt(e) == "symbol" ? e : e + "";
45
45
  }
46
- function u(t, e, r) {
47
- return (e = Xn(e)) in t ? Object.defineProperty(t, 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 Hs = 1 << 24, ie = 1024, z = 2048, Ne = 4096, Mr = 8192, Qn = 16384, xr = 32768, pr = 1 << 25, Hr = 65536, Ns = 1 << 17, Bs = 1 << 18, lt = 1 << 19, Zn = 1 << 20, gr = 1 << 21, Ps = 1 << 22, Nr = 1 << 23, Ze = /* @__PURE__ */ Symbol("$state"), Br = /* @__PURE__ */ Symbol("component"), Pr = /* @__PURE__ */ Symbol("legacy props"), Jn = /* @__PURE__ */ Symbol("proxy path"), ei = /* @__PURE__ */ Symbol("attributes"), ti = /* @__PURE__ */ Symbol("class"), ri = /* @__PURE__ */ Symbol("style"), ni = /* @__PURE__ */ Symbol("text"), xt = new class extends Error {
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), u(this, "name", "StaleReactionError"), u(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
56
+ super(...e), o(this, "name", "StaleReactionError"), o(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
57
57
  }
58
- }(), Ws = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
59
- function ii() {
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 Fr(t) {
62
+ function Kr(t) {
63
63
  console.warn("https://svelte.dev/e/hydration_mismatch");
64
64
  }
65
- function si() {
65
+ function ai() {
66
66
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
67
67
  }
68
68
  var J = !1;
69
- function ct(t) {
69
+ function ut(t) {
70
70
  J = t;
71
71
  }
72
72
  var F;
73
- function nt(t) {
73
+ function rt(t) {
74
74
  if (t === null)
75
- throw Fr(), bt;
75
+ throw Kr(), bt;
76
76
  return F = t;
77
77
  }
78
- function Wr() {
79
- return nt(/* @__PURE__ */ Ve(F));
78
+ function Gr() {
79
+ return rt(/* @__PURE__ */ Ve(F));
80
80
  }
81
- function ai(t = 1) {
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 li(t = !0) {
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 Dr(t) {
100
+ function Wr(t) {
101
101
  return t === this.v;
102
102
  }
103
- function oi(t, e) {
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 Gr(t) {
107
- return !oi(t, this.v);
106
+ function Dr(t) {
107
+ return !ui(t, this.v);
108
108
  }
109
- function ui(t) {
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 fi() {
115
+ function hi() {
116
116
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
117
117
  }
118
- function hi(t) {
118
+ function di(t) {
119
119
  throw new Error("https://svelte.dev/e/effect_orphan");
120
120
  }
121
- function di() {
121
+ function vi() {
122
122
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
123
123
  }
124
- function vi() {
124
+ function _i() {
125
125
  throw new Error("https://svelte.dev/e/hydration_failed");
126
126
  }
127
- function _i(t) {
127
+ function pi(t) {
128
128
  throw new Error("https://svelte.dev/e/props_invalid_value");
129
129
  }
130
- function pi() {
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 mi() {
136
+ function yi() {
137
137
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
138
138
  }
139
- function yi() {
139
+ function bi() {
140
140
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
141
141
  }
142
- var Be = !1, ot = !1;
143
- function mr(t, e) {
144
- return t.label = e, bi(t.v, e), t;
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 bi(t, e) {
147
- return t?.[Jn]?.(e), t;
146
+ function wi(t, e) {
147
+ return t?.[ei]?.(e), t;
148
148
  }
149
- var I = null;
149
+ var O = null;
150
150
  function At(t) {
151
- I = t;
151
+ O = t;
152
152
  }
153
153
  function jr(t, e = !1, r) {
154
- I = {
155
- p: I,
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: C,
162
- l: ot && !e ? {
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 = I, r = e.e;
170
+ var e = O, r = e.e;
171
171
  if (r !== null) {
172
172
  e.e = null;
173
- for (var n of r) dn(n);
173
+ for (var n of r) vn(n);
174
174
  }
175
- return t !== void 0 && (e.x = t), e.i = !0, I = e.p, tr(t);
175
+ return t !== void 0 && (e.x = t), e.i = !0, O = e.p, rr(t);
176
176
  }
177
- function tr(t = {}) {
178
- return tt(t, Br, { value: !0 }), t;
177
+ function rr(t = {}) {
178
+ return et(t, Br, { value: !0 }), t;
179
179
  }
180
180
  function Ht() {
181
- return !ot || I !== null && I.l === null;
181
+ return !lt || O !== null && O.l === null;
182
182
  }
183
- var Te = [];
184
- function Kr() {
185
- var t = Te;
186
- Te = [], Vn(t);
183
+ var $e = [];
184
+ function Yr() {
185
+ var t = $e;
186
+ $e = [], zn(t);
187
187
  }
188
188
  function Me(t) {
189
- if (Te.length === 0 && !Je) {
190
- var e = Te;
189
+ if ($e.length === 0 && !Ze) {
190
+ var e = $e;
191
191
  queueMicrotask(() => {
192
- e === Te && Kr();
192
+ e === $e && Yr();
193
193
  });
194
194
  }
195
- Te.push(t);
195
+ $e.push(t);
196
196
  }
197
- function wi() {
198
- for (; Te.length > 0; ) Kr();
197
+ function Si() {
198
+ for (; $e.length > 0; ) Yr();
199
199
  }
200
- var Si = ~(z | Ne | ie);
200
+ var Ai = ~(z | Ne | ie);
201
201
  function M(t, e) {
202
- t.f = t.f & Si | e;
202
+ t.f = t.f & Ai | e;
203
203
  }
204
- function rr(t) {
204
+ function nr(t) {
205
205
  (t.f & 512) !== 0 || t.deps === null ? M(t, ie) : M(t, Ne);
206
206
  }
207
- function Yr(t, e, r) {
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 = C;
212
- oe(null), be(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), be(r);
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 C !== null && (C.f |= lt), {
223
- ctx: I,
222
+ return T !== null && (T.f |= at), {
223
+ ctx: O,
224
224
  deps: null,
225
225
  effects: null,
226
- equals: Dr,
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: C,
233
+ parent: T,
234
234
  ac: null
235
235
  };
236
236
  }
237
- var Ai = /* @__PURE__ */ Symbol("obsolete");
237
+ var Ei = /* @__PURE__ */ Symbol("obsolete");
238
238
  // @__NO_SIDE_EFFECTS__
239
- function yr(t) {
239
+ function Kt(t) {
240
240
  const e = /* @__PURE__ */ Et(t);
241
- return Be || gn(e), e;
241
+ return Pe || gn(e), e;
242
242
  }
243
243
  // @__NO_SIDE_EFFECTS__
244
- function Ei(t) {
244
+ function Ti(t) {
245
245
  const e = /* @__PURE__ */ Et(t);
246
- return e.equals = Gr, e;
246
+ return e.equals = Dr, e;
247
247
  }
248
- function Ci(t) {
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 nr(t) {
256
- var e, r = C, n = t.parent;
257
- if (!_e && n !== null && t.v !== H && (n.f & 24576) !== 0)
258
- return ii(), t.v;
259
- be(n);
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
- Ci(t), e = wn(t);
261
+ $i(t), e = Sn(t);
262
262
  } finally {
263
- be(r);
263
+ ye(r);
264
264
  }
265
265
  return e;
266
266
  }
267
- function Vr(t) {
268
- var e = nr(t);
269
- if (!t.equals(e) && (t.wv = yn(), (!E?.is_fork || t.deps === null) && (E !== null ? (E.capture(t, e, !0), Kt?.capture(t, e, !0)) : t.v = e, t.deps === null))) {
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
- _e || (P !== null ? (lr() || E?.is_fork) && P.set(t, e) : rr(t));
273
+ ve || (B !== null ? (or() || E?.is_fork) && B.set(t, e) : nr(t));
274
274
  }
275
- function Ti(t) {
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 = Yn), st(e, 0), ur(e));
279
+ }), e.fn !== null && (e.teardown = Vn), it(e, 0), fr(e));
280
280
  }
281
- function zr(t) {
281
+ function Ur(t) {
282
282
  if (t.effects !== null)
283
- for (const e of t.effects) e.teardown && e.fn !== null && Ke(e);
283
+ for (const e of t.effects) e.teardown && e.fn !== null && qe(e);
284
284
  }
285
- function Ur(t, e) {
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 ir(t, e) {
289
- Ur(t, e), e.add(t);
288
+ function sr(t, e) {
289
+ Xr(t, e), e.add(t);
290
290
  }
291
291
  function S(t, e, r) {
292
- Ur(t, e), e.set(t, r);
292
+ Xr(t, e), e.set(t, r);
293
293
  }
294
- function m(t, e, r) {
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 g(t, e, r) {
299
- return t.set(m(t, e), r), r;
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(m(t, e));
302
+ return t.get(g(t, e));
303
303
  }
304
- var Xr, Ct = null, We = null, E = null, Kt = null, P = null, Yt = null, Je = !1, Wt = !1, it = null, Tt = null, Qr = 0;
305
- var $i = 1, $t = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet(), Ye = class Zr {
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
- ir(this, $), u(this, "id", $i++), S(this, $t, !1), u(this, "linked", !0), S(this, Le, null), S(this, $e, null), u(this, "async_deriveds", /* @__PURE__ */ new Map()), u(this, "current", /* @__PURE__ */ new Map()), u(this, "previous", /* @__PURE__ */ new Map()), S(this, kt, /* @__PURE__ */ new Set()), S(this, ft, /* @__PURE__ */ new Set()), S(this, De, 0), S(this, Ae, /* @__PURE__ */ new Map()), S(this, ze, null), S(this, X, []), S(this, Vt, []), S(this, xe, /* @__PURE__ */ new Set()), S(this, ve, /* @__PURE__ */ new Set()), S(this, ge, /* @__PURE__ */ new Map()), S(this, pt, /* @__PURE__ */ new Set()), u(this, "is_fork", !1), S(this, Ue, !1), We === null ? Ct = We = this : (g($e, We, this), g(Le, this, We)), We = this;
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(ge, this).has(e) || a(ge, this).set(e, {
310
+ a(pe, this).has(e) || a(pe, this).set(e, {
311
311
  d: [],
312
312
  m: []
313
- }), a(pt, this).delete(e);
313
+ }), a(_t, this).delete(e);
314
314
  }
315
315
  unskip_effect(e, r = (n) => this.schedule(n)) {
316
- var n = a(ge, this).get(e);
316
+ var n = a(pe, this).get(e);
317
317
  if (n) {
318
- a(ge, this).delete(e);
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(pt, this).add(e);
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]), P?.set(e, r)), this.is_fork || (e.v = r);
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, P = null;
333
+ E = null, B = null;
334
334
  }
335
335
  flush() {
336
336
  try {
337
- Wt = !0, E = this, m($, this, Rt).call(this);
337
+ Gt = !0, E = this, g(C, this, Lt).call(this);
338
338
  } finally {
339
- Qr = 0, Yt = null, it = null, Tt = null, Wt = !1, E = null, P = null, le.clear();
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(Ai);
346
- m($, this, Lt).call(this), a(ze, this)?.resolve();
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(Vt, this).push(e);
349
+ a(zt, this).push(e);
350
350
  }
351
351
  increment(e, r) {
352
- if (g(De, this, a(De, this) + 1), e) {
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 (g(De, this, a(De, this) - 1), e) {
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) || (g(Ue, this, !0), Me(() => {
363
- g(Ue, this, !1), this.linked && this.flush();
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(ve, this).add(n);
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) ?? g(ze, this, zn())).promise;
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 Zr();
383
- !Wt && !Je && Me(() => {
384
- a($t, e) || e.flush();
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 (!Be || !this.is_fork && a(Le, this) === null && a($e, this) === null) {
391
- P = null;
390
+ if (!Pe || !this.is_fork && a(Re, this) === null && a(Ce, this) === null) {
391
+ B = null;
392
392
  return;
393
393
  }
394
- P = /* @__PURE__ */ new Map();
395
- for (const [r, [n]] of this.current) P.set(r, n);
396
- for (let r = Ct; r !== null; r = a($e, 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) P.has(n) || P.set(n, i);
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 (Yt = e, e.b?.is_pending && (e.f & 16777228) !== 0 && (e.f & 32768) === 0) {
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
- Xr = Ye;
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(ge, this).has(t)) {
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 Jr() {
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 g(X, this, []), t;
450
+ return m(X, this, []), t;
451
451
  }
452
- function Rt() {
453
- g($t, this, !0);
452
+ function Lt() {
453
+ m(Ct, this, !0);
454
454
  for (const l of a(xe, this))
455
- a(ve, this).delete(l), M(l, z), this.schedule(l);
456
- for (const l of a(ve, this))
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 = it = [], e = [], r = Tt = []; a(X, this).length > 0; ) {
460
- Qr++ > 1e3 && (m($, this, Lt).call(this), Ii());
461
- for (const l of m($, this, Jr).call(this)) try {
462
- m($, this, en).call(this, l, t, e);
463
- } catch (o) {
464
- throw nn(l), m($, this, br).call(this) || this.discard(), o;
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 = Xr.ensure();
468
+ var n = Qr.ensure();
469
469
  for (const l of r) n.schedule(l);
470
470
  }
471
- if (it = null, Tt = null, m($, this, br).call(this)) {
472
- m($, this, Xe).call(this, e), m($, this, Xe).call(this, t);
473
- for (const [l, o] of a(ge, this)) rn(l, o);
474
- r.length > 0 && m($, E, Rt).call(E);
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 = m($, this, ki).call(this);
477
+ const i = g(C, this, Li).call(this);
478
478
  if (i) {
479
- m($, this, Xe).call(this, e), m($, this, Xe).call(this, t), m($, i, Ri).call(i, this);
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(ve, this).clear();
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(), Kt = this, wr(e), wr(t), Kt = null, a(ze, this)?.resolve();
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(De, this) === 0 && (a(X, this).length === 0 || s !== null) && (m($, this, Lt).call(this), Be && (m($, this, Li).call(this), E = s)), a(X, this).length > 0)
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
- g(X, this, []);
489
+ m(X, this, []);
490
490
  } else s = this;
491
- s !== null && (le.clear(), m($, s, Rt).call(s));
491
+ s !== null && (le.clear(), g(C, s, Lt).call(s));
492
492
  }
493
- function en(t, e, r) {
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(ge, this).has(n)) && n.fn !== null) {
498
- s ? n.f ^= ie : (i & 4) !== 0 ? e.push(n) : Be && (i & 16777224) !== 0 ? r.push(n) : ut(n) && ((i & 16) !== 0 && a(ve, this).add(n), Ke(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 o = n.next;
507
- if (o !== null) {
508
- n = o;
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 ki() {
516
- for (var t = a(Le, this); t !== null; ) {
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(Le, t);
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(ve, t));
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(ve, this).delete(s), M(s, z), this.schedule(s));
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()), m($, t, Lt).call(t), E = this, m($, this, Rt).call(this);
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) Yr(t[e], a(xe, this), a(ve, this));
548
+ for (var e = 0; e < t.length; e += 1) Vr(t[e], a(xe, this), a(de, this));
549
549
  }
550
- function Li() {
551
- for (let _ = Ct; _ !== null; _ = a($e, _)) {
550
+ function Oi() {
551
+ for (let _ = Tt; _ !== null; _ = a(Ce, _)) {
552
552
  var t = _.id < this.id, e = [];
553
- for (const [c, [d, h]] of this.current) {
554
- if (_.current.has(c)) {
555
- var r = _.current.get(c)[0];
556
- if (t && d !== r) _.current.set(c, [d, h]);
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(c);
559
+ e.push(f);
560
560
  }
561
- if (t) for (const [c, d] of this.async_deriveds) {
562
- const h = _.async_deriveds.get(c);
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((c) => !_.current.get(c)[1]);
566
- if (!(!a($t, _) || n.length === 0)) {
567
- var i = n.filter((c) => !this.current.has(c));
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 c of a(pt, this)) _.unskip_effect(c, (d) => {
572
- (d.f & 4194320) !== 0 ? _.schedule(d) : m($, _, Xe).call(_, [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 o of e) tn(o, i, s, l);
576
+ for (var u of e) rn(u, i, s, l);
577
577
  l = /* @__PURE__ */ new Map();
578
- var f = [..._.current].filter(([c, d]) => {
579
- const h = this.current.get(c);
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(([c]) => c);
582
- if (f.length > 0)
583
- for (const c of a(Vt, this)) (c.f & 155648) === 0 && sr(c, f, l) && ((c.f & 4194320) !== 0 ? (M(c, z), _.schedule(c)) : a(xe, _).add(c));
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 b of m($, _, Jr).call(_)) m($, _, en).call(_, b, [], []);
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 Lt() {
593
+ function Rt() {
594
594
  if (this.linked) {
595
- var t = a(Le, this), e = a($e, this);
596
- t === null ? Ct = e : g($e, t, e), e === null ? We = t : g(Le, e, t), this.linked = !1;
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 he(t) {
600
- var e = Je;
601
- Je = !0;
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 (wi(), E === null) return r;
605
+ if (Si(), E === null) return r;
606
606
  E.flush();
607
607
  }
608
608
  } finally {
609
- Je = e;
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
- di();
619
+ vi();
620
620
  } catch (r) {
621
- me(r, Yt);
621
+ me(r, Vt);
622
622
  }
623
623
  }
624
- var de = null;
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 && ut(n) && (de = /* @__PURE__ */ new Set(), Ke(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && _n(n), de?.size > 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 de) {
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
- de.has(l) && (de.delete(l), s.push(l)), l = l.parent;
638
- for (let o = s.length - 1; o >= 0; o--) {
639
- const f = s[o];
640
- (f.f & 24576) === 0 && Ke(f);
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
- de.clear();
643
+ he.clear();
644
644
  }
645
645
  }
646
- de = null;
646
+ he = null;
647
647
  }
648
648
  }
649
- function tn(t, e, r, n) {
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 ? tn(i, e, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && sr(i, e, n) && (M(i, z), ar(i));
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 sr(t, e, r) {
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 && sr(i, e, r))
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 ar(t) {
666
+ function lr(t) {
667
667
  E.schedule(t);
668
668
  }
669
- function rn(t, e) {
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
- rn(r, e), r = r.next;
673
+ nn(r, e), r = r.next;
674
674
  }
675
675
  }
676
- function nn(t) {
676
+ function sn(t) {
677
677
  M(t, ie);
678
678
  for (var e = t.first; e !== null; )
679
- nn(e), e = e.next;
679
+ sn(e), e = e.next;
680
680
  }
681
- var It = /* @__PURE__ */ new Set(), le = /* @__PURE__ */ new Map();
682
- var sn = !1;
683
- function Bt(t, e) {
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: Dr,
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 j(t, e) {
696
- const r = Bt(t, e);
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 Oi(t, e = !1, r = !0) {
701
- const n = Bt(t);
702
- if (e || (n.equals = Gr), ot && r && I !== null && I.l !== null) {
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 = I.l).s ?? (i.s = [])).push(n);
704
+ ((i = O.l).s ?? (i.s = [])).push(n);
705
705
  }
706
706
  return n;
707
707
  }
708
- function B(t, e, r = !1) {
709
- A !== null && (!Q || (A.f & 131072) !== 0) && Ht() && (A.f & 4325394) !== 0 && (te === null || !te.has(t)) && mi();
710
- let n = r ? qe(e) : e;
711
- return an(t, n, Tt);
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 Ce = null, zt = 0;
714
- function an(t, e, r = null) {
713
+ var Te = null, Ut = 0;
714
+ function ln(t, e, r = null) {
715
715
  if (!t.equals(e)) {
716
- _e ? le.set(t, e) : le.has(t) || le.set(t, t.v);
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 && nr(i), P === null && rr(i);
720
+ (t.f & 2048) !== 0 && ir(i), B === null && nr(i);
721
721
  }
722
- t.wv = yn(), Ce = null, zt = 0, ln(t, z, r), Ce = null, Ht() && C !== null && (C.f & 1024) !== 0 && (C.f & 96) === 0 && (V === null ? Ui([t]) : V.push(t)), !n.is_fork && It.size > 0 && !sn && Mi();
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 Mi() {
727
- sn = !1;
728
- for (const t of It) {
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 = ut(t);
732
+ e = ot(t);
733
733
  } catch {
734
734
  e = !0;
735
735
  }
736
- e && Ke(t);
736
+ e && qe(t);
737
737
  }
738
- It.clear();
738
+ Ot.clear();
739
739
  }
740
- function et(t) {
741
- B(t, t.v + 1);
740
+ function Je(t) {
741
+ P(t, t.v + 1);
742
742
  }
743
- function ln(t, e, r) {
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 (zt += s, zt > 1e5 && Ce === null && (Ce = /* @__PURE__ */ new Set()), Ce !== null) {
748
- if (Ce.has(t)) return;
749
- Ce.add(t);
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 o = n[l], f = o.f;
753
- if (!(!i && o === C)) {
754
- var b = (f & z) === 0;
755
- if (b && M(o, e), (f & 131072) !== 0) It.add(o);
756
- else if ((f & 2) !== 0) {
757
- var _ = o;
758
- P?.delete(_), ln(_, Ne, r);
759
- } else if (b) {
760
- var c = o;
761
- (f & 16) !== 0 && de !== null && de.add(c), r !== null ? r.push(c) : ar(c);
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 xi = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
768
- function qe(t) {
769
- if (typeof t != "object" || t === null || Ze in t || Br in t) return t;
770
- const e = Kn(t);
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 = Wn(t), i = /* @__PURE__ */ j(0), s = null, l = Ie, o = (c) => {
773
- if (Ie === l) return c();
774
- var d = A, h = Ie;
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 = c();
776
+ var v = f();
777
777
  return oe(d), Er(h), v;
778
778
  };
779
- n && r.set("length", /* @__PURE__ */ j(t.length, s));
780
- var f = "";
781
- let b = !1;
782
- function _(c) {
783
- if (!b) {
784
- b = !0, f = c, mr(i, `${f} version`);
785
- for (const [d, h] of r) mr(h, Hi(f, d));
786
- b = !1;
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(c, d, h) {
791
- (!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && pi();
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 ? o(() => {
794
- var p = /* @__PURE__ */ j(h.value, s);
793
+ return v === void 0 ? u(() => {
794
+ var p = /* @__PURE__ */ D(h.value, s);
795
795
  return r.set(d, p), p;
796
- }) : B(v, h.value, !0), !0;
796
+ }) : P(v, h.value, !0), !0;
797
797
  },
798
- deleteProperty(c, d) {
798
+ deleteProperty(f, d) {
799
799
  var h = r.get(d);
800
800
  if (h === void 0) {
801
- if (d in c) {
802
- const v = o(() => /* @__PURE__ */ j(H, s));
803
- r.set(d, v), et(i);
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
- B(h, H), et(i);
806
+ P(h, H), Je(i);
807
807
  return !0;
808
808
  },
809
- get(c, d, h) {
810
- if (d === Ze) return t;
811
- var v = r.get(d), p = d in c;
812
- if (v === void 0 && (!p || Re(c, d)?.writable) && (v = o(() => {
813
- var L = qe(p ? c[d] : H), N = /* @__PURE__ */ j(L, s);
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 R = w(v);
817
- return R === H ? void 0 : R;
816
+ var L = w(v);
817
+ return L === H ? void 0 : L;
818
818
  }
819
- return Reflect.get(c, d, h);
819
+ return Reflect.get(f, d, h);
820
820
  },
821
- getOwnPropertyDescriptor(c, d) {
822
- this.has?.(c, d);
823
- var h = Reflect.getOwnPropertyDescriptor(c, d), v = r.get(d);
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(c, d) {
838
- if (d === Ze) return !0;
839
- var h = r.get(d), v = h !== void 0 && h.v !== H || Reflect.has(c, d);
840
- return (h !== void 0 || C !== null && (!v || Re(c, d)?.writable)) && (h === void 0 && (h = o(() => {
841
- var p = v ? qe(c[d]) : H, R = /* @__PURE__ */ j(p, s);
842
- return R;
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(c, d, h, v) {
846
- var p = r.get(d), R = d in c;
847
- if (n && d === "length") for (var L = h; L < p.v; L += 1) {
848
- var N = r.get(L + "");
849
- N !== void 0 ? B(N, H) : L in c && (N = o(() => /* @__PURE__ */ j(H, s)), r.set(L + "", N));
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
- (!R || Re(c, d)?.writable) && (p = o(() => /* @__PURE__ */ j(void 0, s)), B(p, qe(h)), r.set(d, p));
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
- R = p.v !== H;
855
- var U = o(() => qe(h));
856
- B(p, U);
854
+ L = p.v !== H;
855
+ var U = u(() => je(h));
856
+ P(p, U);
857
857
  }
858
- var O = Reflect.getOwnPropertyDescriptor(c, d);
859
- if (O?.set && O.set.call(v, h), !R) {
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 ce = r.get("length"), fe = Number(d);
862
- Number.isInteger(fe) && fe >= ce.v && B(ce, fe + 1);
861
+ var fe = r.get("length"), ce = Number(d);
862
+ Number.isInteger(ce) && ce >= fe.v && P(fe, ce + 1);
863
863
  }
864
- et(i);
864
+ Je(i);
865
865
  }
866
866
  return !0;
867
867
  },
868
- ownKeys(c) {
868
+ ownKeys(f) {
869
869
  w(i);
870
- var d = Reflect.ownKeys(c).filter((p) => {
871
- var R = r.get(p);
872
- return R === void 0 || R.v !== H;
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 c) && d.push(h);
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 Hi(t, e) {
883
- return typeof e == "symbol" ? `${t}[Symbol(${e.description ?? ""})]` : xi.test(e) ? `${t}.${e}` : /^\d+$/.test(e) ? `${t}[${e}]` : `${t}['${e}']`;
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, Ni, on, un, cn;
886
- function Ut() {
885
+ var Sr, Pi, un, fn, cn;
886
+ function Xt() {
887
887
  if (Sr === void 0) {
888
- Sr = window, Ni = document, on = /Firefox/.test(navigator.userAgent);
888
+ Sr = window, Pi = document, un = /Firefox/.test(navigator.userAgent);
889
889
  var t = Element.prototype, e = Node.prototype, r = Text.prototype;
890
- un = Re(e, "firstChild").get, cn = Re(e, "nextSibling").get, _r(t) && (t[ti] = void 0, t[ei] = null, t[ri] = void 0, t.__e = void 0), _r(r) && (r[ni] = void 0);
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 fn(t = "") {
893
+ function hn(t = "") {
894
894
  return document.createTextNode(t);
895
895
  }
896
896
  // @__NO_SIDE_EFFECTS__
897
- function Xt(t) {
898
- return un.call(t);
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 hn(t, e, r) {
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 Pi(t) {
911
- var e = C;
910
+ function Fi(t) {
911
+ var e = T;
912
912
  if (e === null)
913
- return A.f |= Nr, t;
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 Fi(t) {
936
- C === null && (A === null && hi(t), fi()), _e && ci(t);
935
+ function Ki(t) {
936
+ T === null && (A === null && di(t), hi()), ve && ci(t);
937
937
  }
938
- function Wi(t, e) {
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 Pe(t, e) {
943
- var r = C;
944
- r !== null && (r.f & 8192) !== 0 && (t |= Mr);
942
+ function Be(t, e) {
943
+ var r = T;
944
+ r !== null && (r.f & 8192) !== 0 && (t |= xr);
945
945
  var n = {
946
- ctx: I,
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
- it !== null ? it.push(n) : Ye.ensure().schedule(n);
964
+ nt !== null ? nt.push(n) : Ye.ensure().schedule(n);
965
965
  else if (e !== null) {
966
966
  try {
967
- Ke(n);
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 |= Hr));
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 && Wi(i, r), A !== null && (A.f & 2) !== 0 && (t & 64) === 0)) {
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 lr() {
979
+ function or() {
980
980
  return A !== null && !Q;
981
981
  }
982
982
  function Ee(t) {
983
- Fi("$effect");
984
- var e = C.f;
985
- if (!A && (e & 32) !== 0 && I !== null && !I.i) {
986
- var r = I;
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 dn(t);
988
+ } else return vn(t);
989
989
  }
990
- function dn(t) {
991
- return Pe(4 | Zn, t);
990
+ function vn(t) {
991
+ return Be(4 | Jn, t);
992
992
  }
993
- function Di(t) {
993
+ function Wi(t) {
994
994
  Ye.ensure();
995
- const e = Pe(64 | lt, t);
995
+ const e = Be(64 | at, t);
996
996
  return () => {
997
997
  ee(e);
998
998
  };
999
999
  }
1000
- function Gi(t) {
1000
+ function Di(t) {
1001
1001
  Ye.ensure();
1002
- const e = Pe(64 | lt, t);
1002
+ const e = Be(64 | at, t);
1003
1003
  return (r = {}) => new Promise((n) => {
1004
- r.outro ? Pt(e, () => {
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 Pe(4, t);
1010
+ return Be(4, t);
1011
1011
  }
1012
- function or(t, e = 0) {
1013
- return Pe(8 | e, t);
1012
+ function ur(t, e = 0) {
1013
+ return Be(8 | e, t);
1014
1014
  }
1015
1015
  function qi(t, e = 0) {
1016
- var r = Pe(16 | e, t);
1016
+ var r = Be(16 | e, t);
1017
1017
  return r;
1018
1018
  }
1019
1019
  function He(t) {
1020
- return Pe(32 | lt, t);
1020
+ return Be(32 | at, t);
1021
1021
  }
1022
- function vn(t) {
1022
+ function _n(t) {
1023
1023
  var e = t.teardown;
1024
1024
  if (e !== null) {
1025
- const r = _e, n = A;
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 ur(t, e = !1) {
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 Ki(t) {
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 && (Yi(t.nodes.start, t.nodes.end), r = !0), t.f |= pr, ur(t, e && !r), st(t, 0);
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
- vn(t), t.f ^= pr, t.f |= Qn;
1058
+ _n(t), t.f ^= mr, t.f |= Zn;
1059
1059
  var i = t.parent;
1060
- i !== null && i.first !== null && _n(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = t.b = 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 Yi(t, e) {
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 _n(t) {
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 Pt(t, e, r = !0) {
1072
+ function Bt(t, e, r = !0) {
1073
1073
  var n = [];
1074
- t.f |= 256, pn(t, n, !0);
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 o of n) o.out(l);
1080
+ for (var u of n) u.out(l);
1081
1081
  } else i();
1082
1082
  }
1083
- function pn(t, e, r) {
1083
+ function mn(t, e, r) {
1084
1084
  if ((t.f & 8192) === 0) {
1085
- t.f ^= Mr;
1085
+ t.f ^= xr;
1086
1086
  var n = t.nodes && t.nodes.t;
1087
1087
  if (n !== null)
1088
- for (const o of n) (o.is_global || r) && e.push(o);
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
- pn(i, e, l ? r : !1);
1093
+ mn(i, e, l ? r : !1);
1094
1094
  }
1095
1095
  i = s;
1096
1096
  }
1097
1097
  }
1098
1098
  }
1099
- function Vi(t, e) {
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 zi = null, gt = !1, _e = !1;
1106
+ var Ui = null, pt = !1, ve = !1;
1107
1107
  function Ar(t) {
1108
- _e = t;
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 C = null;
1115
- function be(t) {
1116
- C = t;
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 && (!Be && (A.f & 2097152) !== 0 || (A.f & 2) !== 0) && (te ?? (te = /* @__PURE__ */ new Set())).add(t);
1120
+ A !== null && (!Pe && (A.f & 2097152) !== 0 || (A.f & 2) !== 0) && (te ?? (te = /* @__PURE__ */ new Set())).add(t);
1121
1121
  }
1122
- var D = null, q = 0, V = null;
1123
- function Ui(t) {
1122
+ var G = null, j = 0, V = null;
1123
+ function Xi(t) {
1124
1124
  V = t;
1125
1125
  }
1126
- var mn = 1, ke = 0, Ie = ke;
1126
+ var yn = 1, ke = 0, Oe = ke;
1127
1127
  function Er(t) {
1128
- Ie = t;
1128
+ Oe = t;
1129
1129
  }
1130
- function yn() {
1131
- return ++mn;
1130
+ function bn() {
1131
+ return ++yn;
1132
1132
  }
1133
- function ut(t) {
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 (ut(s) && Vr(s), s.wv > t.wv) return !0;
1139
+ if (ot(s) && zr(s), s.wv > t.wv) return !0;
1140
1140
  }
1141
- (e & 512) !== 0 && P === null && M(t, ie);
1141
+ (e & 512) !== 0 && B === null && M(t, ie);
1142
1142
  }
1143
1143
  return !1;
1144
1144
  }
1145
- function bn(t, e, r = !0) {
1145
+ function wn(t, e, r = !0) {
1146
1146
  var n = t.reactions;
1147
- if (n !== null && !(!Be && te !== null && te.has(t)))
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 ? bn(s, e, !1) : e === s && (r ? M(s, z) : (s.f & 1024) !== 0 && M(s, Ne), ar(s));
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 wn(t) {
1154
- var e = D, r = q, n = V, i = A, s = te, l = I, o = Q, f = Ie, b = t.f;
1155
- D = null, q = 0, V = null, A = (b & 96) === 0 ? t : null, te = null, At(t.ctx), Q = !1, Ie = ++ke, t.ac !== null && (Nt(() => {
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, c = _();
1161
- t.f |= xr;
1162
- var d = Cr(t);
1163
- if (Ht() && V !== null && !Q && d !== null && (t.f & 6146) === 0) for (var h = 0; h < V.length; h++) bn(V[h], t);
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 ^= Nr), c;
1169
+ return (t.f & 8388608) !== 0 && (t.f ^= Pr), f;
1170
1170
  } catch (v) {
1171
- return Cr(t), Pi(v);
1171
+ return Tr(t), Fi(v);
1172
1172
  } finally {
1173
- t.f ^= gr, D = e, q = r, V = n, A = i, te = s, At(l), Q = o, Ie = f;
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 Cr(t) {
1176
+ function Tr(t) {
1177
1177
  var e = t.deps, r = E?.is_fork;
1178
- if (D !== null) {
1178
+ if (G !== null) {
1179
1179
  var n;
1180
- if (r || st(t, q), e !== null && q > 0)
1181
- for (e.length = q + D.length, n = 0; n < D.length; n++) e[q + n] = D[n];
1182
- else t.deps = e = D;
1183
- if (lr() && (t.f & 512) !== 0) for (n = q; n < e.length; n++) {
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 && q < e.length && (st(t, q), e.length = q);
1187
+ } else !r && e !== null && j < e.length && (it(t, j), e.length = j);
1188
1188
  return e;
1189
1189
  }
1190
- function Xi(t, e) {
1190
+ function Qi(t, e) {
1191
1191
  let r = e.reactions;
1192
1192
  if (r !== null) {
1193
- var n = Dn.call(r, t);
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 && (D === null || !wt.call(D, e))) {
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 && rr(s), s.ac !== null && Nt(() => {
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
- }), Ti(s), st(s, 0);
1203
+ }), Ci(s), it(s, 0);
1204
1204
  }
1205
1205
  }
1206
- function st(t, e) {
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++) Xi(t, r[n]);
1209
+ for (var n = e; n < r.length; n++) Qi(t, r[n]);
1210
1210
  }
1211
- function Ke(t) {
1211
+ function qe(t) {
1212
1212
  var e = t.f;
1213
1213
  if ((e & 16384) === 0) {
1214
1214
  M(t, ie);
1215
- var r = C, n = gt;
1216
- if (C = t, gt = (e & 96) === 0, 0)
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 ? Ki(t) : ur(t), vn(t);
1220
- var l = wn(t);
1221
- if (t.teardown = typeof l == "function" ? l : null, t.wv = mn, 0)
1222
- for (var o of t.deps) ;
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
- gt = n, C = r;
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 (zi?.add(t), A !== null && !Q && !(C !== null && (C.f & 16384) !== 0) && (te === null || !te.has(t))) {
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, D === null && r !== null && r[q] === t ? q++ : D === null ? D = [t] : D.push(t));
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 && Kt === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(t))
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, o;
1246
+ var l, u;
1247
1247
  }
1248
1248
  }
1249
- if (_e && le.has(t)) return le.get(t);
1249
+ if (ve && le.has(t)) return le.get(t);
1250
1250
  if (e) {
1251
- var f = t;
1252
- if (_e) {
1253
- var b = f.v;
1254
- return ((f.f & 1024) === 0 && f.reactions !== null || An(f)) && (b = nr(f)), le.set(f, b), b;
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 _ = (f.f & 512) === 0 && !Q && A !== null && (gt || (A.f & 512) !== 0), c = (f.f & xr) === 0;
1257
- ut(f) && (_ && (f.f |= 512), Vr(f)), _ && !c && (zr(f), Sn(f));
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 (P?.has(t)) return P.get(t);
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 Sn(t) {
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 && (zr(e), Sn(e));
1266
+ (e.reactions ?? (e.reactions = [])).push(t), (e.f & 2) !== 0 && (e.f & 512) === 0 && (Ur(e), An(e));
1267
1267
  }
1268
- function An(t) {
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 && An(e)) return !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 ht = /* @__PURE__ */ Symbol("events"), Qi = /* @__PURE__ */ new Set(), Tr = /* @__PURE__ */ new Set(), Dt = null, Gt = !1;
1284
- function $r(t) {
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
- Dt = t, Gt || (Gt = !0, setTimeout(() => {
1287
- Gt = !1, Dt = null;
1286
+ Wt = t, Dt || (Dt = !0, setTimeout(() => {
1287
+ Dt = !1, Wt = null;
1288
1288
  }));
1289
- var l = 0, o = Dt === t && t[ht];
1290
- if (o) {
1291
- var f = i.indexOf(o);
1292
- if (f !== -1 && (e === document || e === window)) {
1293
- t[ht] = e;
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 b = i.indexOf(e);
1297
- if (b === -1) return;
1298
- f <= b && (l = f);
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
- tt(t, "currentTarget", {
1301
+ et(t, "currentTarget", {
1302
1302
  configurable: !0,
1303
1303
  get() {
1304
1304
  return s || r;
1305
1305
  }
1306
1306
  });
1307
- var _ = A, c = C;
1308
- oe(null), be(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[ht]?.[n];
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[ht] = e, delete t.currentTarget, oe(_), be(c);
1327
+ t[ct] = e, delete t.currentTarget, oe(_), ye(f);
1328
1328
  }
1329
1329
  }
1330
1330
  }
1331
- var Zi = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (t) => t });
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
- var e = hn("template");
1337
- return e.innerHTML = Ji(t.replaceAll("<!>", "<!---->")), e.content;
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 = C;
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 ts(t, e) {
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 = es(s ? t : "<!>" + t), r || (i = /* @__PURE__ */ Xt(i)));
1355
- var l = n || on ? document.importNode(i, !0) : i.cloneNode(!0);
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 o = /* @__PURE__ */ Xt(l), f = l.lastChild;
1358
- mt(o, f);
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 En(t, e) {
1363
+ function Tn(t, e) {
1364
1364
  if (J) {
1365
- var r = C;
1366
- ((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = F), Wr();
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 rs = [
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
- ], Ds = [
1401
- ...rs,
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
- ], ns = ["touchstart", "touchmove"];
1417
- function is(t) {
1418
- return ns.includes(t);
1416
+ ], is = ["touchstart", "touchmove"];
1417
+ function ss(t) {
1418
+ return is.includes(t);
1419
1419
  }
1420
- var ss = [
1420
+ var as = [
1421
1421
  "$state",
1422
1422
  "$state.raw",
1423
1423
  "$derived",
1424
1424
  "$derived.by"
1425
- ], Gs = [
1426
- ...ss,
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 as(t) {
1443
- let e = 0, r = Bt(0), n;
1442
+ function ls(t) {
1443
+ let e = 0, r = Pt(0), n;
1444
1444
  return () => {
1445
- lr() && (w(r), or(() => (e === 0 && (n = Ft(() => t(() => et(r)))), e += 1, () => {
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, et(r));
1447
+ e -= 1, e === 0 && (n?.(), n = void 0, Je(r));
1448
1448
  });
1449
1449
  })));
1450
1450
  };
1451
1451
  }
1452
- var ls = Hr | lt;
1453
- function os(t, e, r, n) {
1454
- new us(t, e, r, n);
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(), Qt = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakSet(), us = class {
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
- ir(this, x), u(this, "parent", void 0), u(this, "is_pending", !1), u(this, "transform_error", void 0), S(this, re, void 0), S(this, Qt, J ? F : null), S(this, ae, void 0), S(this, at, void 0), S(this, K, void 0), S(this, ne, null), S(this, Y, null), S(this, Z, null), S(this, ye, null), S(this, Ge, 0), S(this, Oe, 0), S(this, dt, !1), S(this, Zt, /* @__PURE__ */ new Set()), S(this, Jt, /* @__PURE__ */ new Set()), S(this, we, null), S(this, kr, as(() => (g(we, this, Bt(a(Ge, this))), () => {
1459
- g(we, this, null);
1460
- }))), g(re, this, t), g(ae, this, e), g(at, this, (i) => {
1461
- var s = C;
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 = C.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), g(K, this, qi(() => {
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(Qt, this);
1466
- Wr();
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
- m(x, this, fs).call(this, l);
1471
- } else s ? m(x, this, hs).call(this) : m(x, this, cs).call(this);
1472
- } else m(x, this, Tn).call(this);
1473
- }, ls)), J && g(re, this, F);
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
- Yr(t, a(Zt, this), a(Jt, this));
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
- m(x, this, $n).call(this, t, e), g(Ge, this, a(Ge, this) + t), !(!a(we, this) || a(dt, this)) && (g(dt, this, !0), Me(() => {
1486
- g(dt, this, !1), a(we, this) && an(a(we, this), a(Ge, this));
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(we, this));
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
- m(x, this, Rr).call(this, t);
1496
- })) : m(x, this, Rr).call(this, t);
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
- g(ne, this, He(() => a(at, this).call(this, a(re, this))));
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 fs(t) {
1507
- const e = a(ae, this).failed, { reset: r, invoke_onerror: n } = m(x, this, Cn).call(this, t);
1508
- Me(n), e && g(Z, this, He(() => {
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 Cn(t) {
1512
+ function $n(t) {
1513
1513
  var e = !1, r = !1;
1514
1514
  const n = () => {
1515
1515
  if (e) {
1516
- si();
1516
+ ai();
1517
1517
  return;
1518
1518
  }
1519
- e = !0, r && yi(), a(Z, this) !== null && Pt(a(Z, this), () => {
1520
- g(Z, this, null);
1521
- }), m(x, this, cr).call(this, () => {
1522
- m(x, this, Tn).call(this);
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(K, this) && a(K, this).parent);
1531
+ me(s, a(q, this) && a(q, this).parent);
1532
1532
  }
1533
1533
  }
1534
1534
  };
1535
1535
  }
1536
- function hs() {
1536
+ function ds() {
1537
1537
  const t = a(ae, this).pending;
1538
- t && (this.is_pending = !0, g(Y, this, He(() => t(a(re, this)))), Me(() => {
1539
- var e = g(ye, this, document.createDocumentFragment()), r = fn(), n = !1;
1540
- if (e.append(r), g(ne, this, m(x, this, cr).call(this, () => {
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(at, this).call(this, r));
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(K, this).parent);
1547
+ me(s, a(q, this).parent);
1548
1548
  }
1549
1549
  return null;
1550
1550
  }
1551
1551
  })), a(ne, this) === null) {
1552
- g(ye, this, null), n && m(x, this, Ot).call(this, E);
1552
+ m(ge, this, null), n && g(x, this, It).call(this, E);
1553
1553
  return;
1554
1554
  }
1555
- a(Oe, this) === 0 && (a(re, this).before(e), g(ye, this, null), Pt(a(Y, this), () => {
1556
- g(Y, this, null);
1557
- }), m(x, this, Ot).call(this, E));
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 Tn() {
1560
+ function Cn() {
1561
1561
  try {
1562
- if (this.is_pending = this.has_pending_snippet(), g(Oe, this, 0), g(Ge, this, 0), g(ne, this, He(() => {
1563
- a(at, this).call(this, a(re, this));
1564
- })), a(Oe, this) > 0) {
1565
- var t = g(ye, this, document.createDocumentFragment());
1566
- Vi(a(ne, this), t);
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
- g(Y, this, He(() => e(a(re, this))));
1569
- } else m(x, this, Ot).call(this, E);
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 Ot(t) {
1575
- this.is_pending = !1, t.transfer_effects(a(Zt, this), a(Jt, this));
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 = C, r = A, n = I;
1579
- be(a(K, this)), oe(a(K, this)), At(a(K, this).ctx);
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
- be(e), oe(r), At(n);
1583
+ ye(e), oe(r), At(n);
1584
1584
  }
1585
1585
  }
1586
- function $n(t, e) {
1586
+ function kn(t, e) {
1587
1587
  if (!this.has_pending_snippet()) {
1588
1588
  if (this.parent) {
1589
1589
  var r;
1590
- m(x, r = this.parent, $n).call(r, t, e);
1590
+ g(x, r = this.parent, kn).call(r, t, e);
1591
1591
  }
1592
1592
  return;
1593
1593
  }
1594
- g(Oe, this, a(Oe, this) + t), a(Oe, this) === 0 && (m(x, this, Ot).call(this, e), a(Y, this) && Pt(a(Y, this), () => {
1595
- g(Y, this, null);
1596
- }), a(ye, this) && (a(re, this).before(a(ye, this)), g(ye, this, null)));
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 Rr(t) {
1599
- a(ne, this) && (ee(a(ne, this)), g(ne, this, null)), a(Y, this) && (ee(a(Y, this)), g(Y, this, null)), a(Z, this) && (ee(a(Z, this)), g(Z, this, null)), J && (nt(a(Qt, this)), ai(), nt(li()));
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 } = m(x, this, Cn).call(this, n);
1603
- s(), e && g(Z, this, m(x, this, cr).call(this, () => {
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 = C;
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(K, this).parent), null;
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(K, this) && a(K, this).parent);
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(K, this) && a(K, this).parent)) : r(n);
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 Lr = !0;
1626
- function kn(t, e) {
1625
+ var Rr = !0;
1626
+ function Ln(t, e) {
1627
1627
  return Rn(t, e);
1628
1628
  }
1629
- function ds(t, e) {
1630
- Ut(), e.intro = e.intro ?? !1;
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__ */ Xt(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ Ve(s);
1633
+ for (var s = /* @__PURE__ */ Qt(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ Ve(s);
1634
1634
  if (!s) throw bt;
1635
- ct(!0), nt(s);
1635
+ ut(!0), rt(s);
1636
1636
  const l = Rn(t, {
1637
1637
  ...e,
1638
1638
  anchor: s
1639
1639
  });
1640
- return ct(!1), l;
1640
+ return ut(!1), l;
1641
1641
  } catch (l) {
1642
1642
  if (l instanceof Error && l.message.split(`
1643
- `).some((o) => o.startsWith("https://svelte.dev/e/"))) throw l;
1644
- return l !== bt && console.warn("Failed to hydrate: ", l), e.recover === !1 && vi(), Ut(), Bi(r), ct(!1), kn(t, e);
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
- ct(n), nt(i);
1646
+ ut(n), rt(i);
1647
1647
  }
1648
1648
  }
1649
- var vt = /* @__PURE__ */ new Map();
1650
- function Rn(t, { target: e, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError: o }) {
1651
- Ut();
1652
- var f = void 0, b = Gi(() => {
1653
- var _ = r ?? e.appendChild(fn());
1654
- os(_, { pending: () => {
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 = I;
1658
- if (s && (v.c = s), i && (n.$$events = i), J && mt(h, null), Lr = l, f = t(h, n) || tr(), Lr = !0, J && (C.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]"))
1659
- throw Fr(), bt;
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
- }, o);
1662
- var c = /* @__PURE__ */ new Set(), d = (h) => {
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 (!c.has(p)) {
1666
- c.add(p);
1667
- var R = is(p);
1665
+ if (!f.has(p)) {
1666
+ f.add(p);
1667
+ var L = ss(p);
1668
1668
  for (const U of [e, document]) {
1669
- var L = vt.get(U);
1670
- L === void 0 && (L = /* @__PURE__ */ new Map(), vt.set(U, L));
1671
- var N = L.get(p);
1672
- N === void 0 ? (U.addEventListener(p, $r, { passive: R }), L.set(p, 1)) : L.set(p, N + 1);
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(Gn(Qi)), Tr.add(d), () => {
1678
- for (var h of c) for (const R of [e, document]) {
1679
- var v = vt.get(R), p = v.get(h);
1680
- --p == 0 ? (R.removeEventListener(h, $r), v.delete(h), v.size === 0 && vt.delete(R)) : v.set(h, p);
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
- Tr.delete(d), _ !== r && _.parentNode?.removeChild(_);
1682
+ $r.delete(d), _ !== r && _.parentNode?.removeChild(_);
1683
1683
  };
1684
1684
  });
1685
- return er.set(f, b), f;
1685
+ return tr.set(c, y), c;
1686
1686
  }
1687
- var er = /* @__PURE__ */ new WeakMap();
1688
- function vs(t, e) {
1689
- const r = er.get(t);
1690
- return r ? (er.delete(t), r(e)) : Promise.resolve();
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 _s(t) {
1693
- I === null && ui("onMount"), ot && I.l !== null ? ps(I).m.push(t) : Ee(() => {
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 ps(t) {
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 Ln, je = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakSet(), In = class {
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
- ir(this, Ir), S(this, je, /* @__PURE__ */ new WeakMap()), S(this, Mt, void 0), S(this, jt, void 0), g(jt, this, t);
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(je, this).get(t) || /* @__PURE__ */ new Set();
1712
- return r.add(e), a(je, this).set(t, r), m(Ir, this, gs).call(this).observe(t, a(jt, this)), () => {
1713
- var n = a(je, this).get(t);
1714
- n.delete(e), n.size === 0 && (a(je, this).delete(t), a(Mt, this).unobserve(t));
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
- Ln = In;
1718
+ On = In;
1719
1719
  function gs() {
1720
- return a(Mt, this) ?? g(Mt, this, new ResizeObserver((t) => {
1720
+ return a(Mt, this) ?? m(Mt, this, new ResizeObserver((t) => {
1721
1721
  for (var e of t) {
1722
- Ln.entries.set(e.target, e);
1723
- for (var r of a(je, this).get(e.target) || []) r(e);
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
- u(In, "entries", /* @__PURE__ */ new WeakMap());
1727
+ o(In, "entries", /* @__PURE__ */ new WeakMap());
1728
1728
  function qt(t, e) {
1729
- return t === e || t?.[Ze] === e;
1729
+ return t === e || t?.[Qe] === e;
1730
1730
  }
1731
- function ms(t = tr(), e, r, n) {
1732
- var i = I.r, s = C;
1731
+ function ys(t = rr(), e, r, n) {
1732
+ var i = O.r, s = T;
1733
1733
  return ji(() => {
1734
- var l, o;
1735
- return or(() => {
1736
- l = o, o = n?.() || [], Ft(() => {
1737
- qt(r(...o), t) || (e(t, ...o), l && qt(r(...l), t) && e(null, ...l));
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 f = s;
1741
- for (; f !== i && f.parent !== null && f.parent.f & 33554432; ) f = f.parent;
1742
- const b = () => {
1743
- o && qt(r(...o), t) && e(null, ...o);
1744
- }, _ = f.teardown;
1745
- f.teardown = () => {
1746
- b(), _?.();
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 _t = !1;
1752
- function ys(t) {
1753
- var e = _t;
1751
+ var vt = !1;
1752
+ function bs(t) {
1753
+ var e = vt;
1754
1754
  try {
1755
- return _t = !1, [t(), _t];
1755
+ return vt = !1, [t(), vt];
1756
1756
  } finally {
1757
- _t = e;
1757
+ vt = e;
1758
1758
  }
1759
1759
  }
1760
- function pe(t, e, r, n) {
1761
- var i = !ot || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, o = n, f = !0, b = void 0, _ = () => l && i ? (b ?? (b = /* @__PURE__ */ Et(n)), w(b)) : (f && (f = !1, o = l ? Ft(n) : n), o);
1762
- let c;
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 = Ze in t || Pr in t;
1765
- c = Re(t, e)?.set ?? (d && e in t ? (O) => t[e] = O : void 0);
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] = ys(() => t[e]) : h = t[e], h === void 0 && n !== void 0 && (h = _(), c && (i && _i(e), c(h)));
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 O = t[e];
1772
- return O === void 0 ? _() : (f = !0, O);
1771
+ var I = t[e];
1772
+ return I === void 0 ? _() : (c = !0, I);
1773
1773
  } : p = () => {
1774
- var O = t[e];
1775
- return O !== void 0 && (o = void 0), O === void 0 ? o : O;
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 (c) {
1778
- var R = t.$$legacy;
1779
- return (function(O, ce) {
1780
- return arguments.length > 0 ? ((!i || !ce || R || v) && c(ce ? p() : O), O) : p();
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 L = !1, N = ((r & 1) !== 0 ? Et : Ei)(() => (L = !1, p()));
1783
+ var R = !1, N = ((r & 1) !== 0 ? Et : Ti)(() => (R = !1, p()));
1784
1784
  s && w(N);
1785
- var U = C;
1786
- return (function(O, ce) {
1785
+ var U = T;
1786
+ return (function(I, fe) {
1787
1787
  if (arguments.length > 0) {
1788
- const fe = ce ? w(N) : i && s ? qe(O) : O;
1789
- return B(N, fe), L = !0, o !== void 0 && (o = fe), O;
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 _e && L || (U.f & 16384) !== 0 ? N.v : w(N);
1791
+ return ve && R || (U.f & 16384) !== 0 ? N.v : w(N);
1792
1792
  });
1793
1793
  }
1794
- function bs(t) {
1795
- return new ws(t);
1794
+ function ws(t) {
1795
+ return new Ss(t);
1796
1796
  }
1797
- var Se = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), ws = class {
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__ */ Oi(s, !1, !1);
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 === Pr ? !0 : (w(e.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, 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 B(e.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
1815
+ return P(e.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
1816
1816
  }
1817
1817
  });
1818
- g(se, this, (t.hydrate ? ds : kn)(t.component, {
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
- })), !Be && (!t?.props?.$$host || t.sync === !1) && he(), g(Se, this, n.$$events);
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" || tt(this, i, {
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
- vs(a(se, this));
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
- }, On;
1857
- typeof HTMLElement == "function" && (On = class extends HTMLElement {
1856
+ }, Mn;
1857
+ typeof HTMLElement == "function" && (Mn = class extends HTMLElement {
1858
1858
  constructor(t, e, r) {
1859
- super(), u(this, "$$ctor", void 0), u(this, "$$s", void 0), u(this, "$$c", void 0), u(this, "$$cn", !1), u(this, "$$d", {}), u(this, "$$r", !1), u(this, "$$p_d", {}), u(this, "$$l", {}), u(this, "$$l_u", /* @__PURE__ */ new Map()), u(this, "$$me", void 0), u(this, "$$shadowRoot", null), this.$$ctor = t, this.$$s = e, r && (this.$$shadowRoot = this.attachShadow(r));
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 = hn("slot");
1879
- n !== "default" && (s.name = n), En(i, s);
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 = Ss(this);
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] = yt(i, n.value, this.$$p_d, "toProp"));
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 = bs({
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 = Di(() => {
1899
- or(() => {
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 = yt(n, this.$$d[n], this.$$p_d, "toAttribute");
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] = yt(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [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 yt(t, e, r, n) {
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 Ss(t) {
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 As(t, e, r, n, i, s) {
1962
- let l = class extends On {
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((o) => (e[o].attribute || o).toLowerCase());
1967
+ return St(e).map((u) => (e[u].attribute || u).toLowerCase());
1968
1968
  }
1969
1969
  };
1970
- return St(e).forEach((o) => {
1971
- tt(l.prototype, o, {
1970
+ return St(e).forEach((u) => {
1971
+ et(l.prototype, u, {
1972
1972
  get() {
1973
- return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
1973
+ return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
1974
1974
  },
1975
- set(f) {
1976
- f = yt(o, f, e), this.$$d[o] = f;
1977
- var b = this.$$c;
1978
- b && (Re(b, o)?.get ? b[o] = f : b.$set({ [o]: f }));
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((o) => {
1982
- tt(l.prototype, o, { get() {
1983
- return this.$$c?.[o];
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 Mn, ue = class G {
1987
+ var xn, ue = class W {
1988
1988
  constructor() {
1989
- u(this, "elementType", "multiple-choice"), u(this, "priority", 100);
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(G.ROOT_HOOK_ATTR, "true");
1996
- const r = Array.from(e.querySelectorAll(G.CHOICE_SELECTOR));
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(`[${G.ROOT_HOOK_ATTR}="true"]`) || e.closest("multiple-choice"))?.querySelector(`[${G.FEEDBACK_HOOK_ATTR}="true"]`));
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(G.MUI_BUTTON_SELECTOR);
2026
- i && i.classList.toggle(G.MUI_DISABLED_CLASS, !r);
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(`[${G.ROOT_HOOK_ATTR}="true"]`) || e.closest("multiple-choice"))?.querySelectorAll(`[${G.CHOICE_HOOK_ATTR}="true"]`) || [];
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(G.CHOICE_HOOK_ATTR, "true");
2036
+ e.setAttribute(W.CHOICE_HOOK_ATTR, "true");
2037
2037
  const r = this.resolveLabelElement(e);
2038
- r && r.setAttribute(G.LABEL_HOOK_ATTR, "true");
2038
+ r && r.setAttribute(W.LABEL_HOOK_ATTR, "true");
2039
2039
  }
2040
2040
  resolveLabelElement(e) {
2041
- return e.querySelector(`[${G.LABEL_HOOK_ATTR}="true"]`) || e.querySelector("label") || e.querySelector("span");
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(G.FEEDBACK_HOOK_ATTR, "true");
2044
+ for (const r of e.querySelectorAll(".feedback-tick")) r.setAttribute(W.FEEDBACK_HOOK_ATTR, "true");
2045
2045
  }
2046
2046
  };
2047
- Mn = ue;
2048
- u(ue, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
2049
- u(ue, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label");
2050
- u(ue, "ROOT_HOOK_ATTR", "data-pie-answer-eliminator-root");
2051
- u(ue, "FEEDBACK_HOOK_ATTR", "data-pie-answer-eliminator-feedback-tick");
2052
- u(ue, "CHOICE_SELECTOR", `[${Mn.CHOICE_HOOK_ATTR}="true"], .corespring-checkbox, .corespring-radio-button`);
2053
- u(ue, "MUI_BUTTON_SELECTOR", ".MuiButtonBase-root, .MuiRadio-root, .MuiCheckbox-root");
2054
- u(ue, "MUI_DISABLED_CLASS", "Mui-disabled");
2055
- var Es = "ebsr-multiple-choice", fr = (t) => t instanceof HTMLElement && Fn(t.tagName.toLowerCase()).baseName === Es, Or = (t, e) => Array.from(t.querySelectorAll(`[id="${e}"]`)).find(fr) ?? null, Cs = (t) => {
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 (fr(e)) return e;
2058
+ if (hr(e)) return e;
2059
2059
  e = e.parentElement;
2060
2060
  }
2061
2061
  return null;
2062
- }, Ts = class {
2062
+ }, Cs = class {
2063
2063
  constructor() {
2064
- u(this, "elementType", "ebsr"), u(this, "priority", 110), u(this, "mcAdapter", new ue());
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(fr);
2067
+ return t.tagName.toLowerCase() === "ebsr" || Array.from(t.querySelectorAll("*")).some(hr);
2068
2068
  }
2069
2069
  findChoices(t) {
2070
- const e = Or(t, "a"), r = Or(t, "b"), n = [];
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 `${Cs(t)?.id || "unknown"}-${this.mcAdapter.getChoiceId(t)}`;
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
- }, $s = class {
2094
+ }, ks = class {
2095
2095
  constructor() {
2096
- u(this, "elementType", "inline-dropdown"), u(this, "priority", 90);
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
- }, ks = class {
2120
+ }, Ls = class {
2121
2121
  constructor() {
2122
- u(this, "adapters", void 0), this.adapters = [
2122
+ o(this, "adapters", void 0), this.adapters = [
2123
2123
  new ue(),
2124
- new Ts(),
2125
- new $s()
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 W {
2146
+ }, Fe = class K {
2147
2147
  constructor() {
2148
- u(this, "name", "mask"), u(this, "highlights", /* @__PURE__ */ new Map()), u(this, "ranges", /* @__PURE__ */ new Map()), u(this, "fallbackContainers", /* @__PURE__ */ new Map());
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(`${W.HIGHLIGHT_NAME_PREFIX}${e}`, n), this.highlights.set(e, n), this.ranges.set(e, r), this.addAriaAttributes(r);
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(`${W.HIGHLIGHT_NAME_PREFIX}${e}`), this.removeHighlightCSS(e);
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 = `${W.HIGHLIGHT_STYLE_PREFIX}${e}`;
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(`${W.HIGHLIGHT_STYLE_PREFIX}${e}`)?.remove();
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(W.ELIMINATED_ATTR, "true"), r.setAttribute("aria-hidden", "true"));
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(W.ELIMINATED_ATTR), r.removeAttribute("aria-hidden"));
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(W.CHOICE_HOOK_ATTR) === "true") return r;
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(W.FALLBACK_CLASS), n.setAttribute(W.ELIMINATED_ATTR, "true"), n.setAttribute(W.ELIMINATED_ID_ATTR, e), this.fallbackContainers.set(e, n), this.addAriaAttributes(r));
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(W.FALLBACK_CLASS), r.removeAttribute(W.ELIMINATED_ATTR), r.removeAttribute(W.ELIMINATED_ID_ATTR);
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
- u(Fe, "HIGHLIGHT_STYLE_PREFIX", "pie-answer-eliminator-mask-highlight-");
2229
- u(Fe, "HIGHLIGHT_NAME_PREFIX", "pie-answer-masked-");
2230
- u(Fe, "FALLBACK_CLASS", "pie-answer-masked-fallback");
2231
- u(Fe, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
2232
- u(Fe, "ELIMINATED_ATTR", "data-pie-answer-eliminated");
2233
- u(Fe, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
2234
- var k = class y {
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
- u(this, "name", "strikethrough"), u(this, "highlights", /* @__PURE__ */ new Map()), u(this, "ranges", /* @__PURE__ */ new Map()), u(this, "fallbackContainers", /* @__PURE__ */ new Map()), u(this, "imageWrappers", /* @__PURE__ */ new Map()), u(this, "mathTargets", /* @__PURE__ */ new Map());
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(`${y.HIGHLIGHT_NAME_PREFIX}${e}`, n), this.highlights.set(e, n), this.ranges.set(e, r), this.addAriaAttributes(r);
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(`${y.HIGHLIGHT_NAME_PREFIX}${e}`), this.removeHighlightCSS(e);
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 = `${y.HIGHLIGHT_STYLE_PREFIX}${e}`;
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(`${y.HIGHLIGHT_STYLE_PREFIX}${e}`)?.remove();
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(y.ELIMINATED_ATTR, "true"), r.setAttribute("aria-disabled", "true");
2298
+ r.setAttribute(b.ELIMINATED_ATTR, "true"), r.setAttribute("aria-disabled", "true");
2299
2299
  const n = this.resolveLabelElement(r);
2300
- if (n && !n.querySelector(`.${y.SR_CLASS}`)) {
2300
+ if (n && !n.querySelector(`.${b.SR_CLASS}`)) {
2301
2301
  const i = document.createElement("span");
2302
- i.className = y.SR_CLASS, i.textContent = " (eliminated)", n.appendChild(i);
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(y.ELIMINATED_ATTR), r.removeAttribute("aria-disabled"), r.querySelector(`.${y.SR_CLASS}`)?.remove());
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(y.CHOICE_HOOK_ATTR) === "true") return r;
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(y.FALLBACK_CLASS), n.setAttribute(y.ELIMINATED_ATTR, "true"), n.setAttribute(y.ELIMINATED_ID_ATTR, e), this.fallbackContainers.set(e, n), this.addAriaAttributes(r));
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(y.FALLBACK_CLASS), r.removeAttribute(y.ELIMINATED_ATTR), r.removeAttribute(y.ELIMINATED_ID_ATTR);
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(y.MATH_SELECTOR)) {
2350
- const l = s.querySelector(y.MATH_BOX_SELECTOR) ?? s, o = !!l.querySelector(y.MATH_STACKED_SELECTOR);
2351
- l.classList.add(y.MATH_STRIKE_CLASS, o ? y.MATH_STRIKE_CROSS_CLASS : y.MATH_STRIKE_LINE_CLASS), l.setAttribute(y.MATH_STRIKE_ATTR, o ? "cross" : "line"), i.push(l);
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(y.MATH_STRIKE_CLASS, y.MATH_STRIKE_LINE_CLASS, y.MATH_STRIKE_CROSS_CLASS), n.removeAttribute(y.MATH_STRIKE_ATTR);
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(y.IMAGE_WRAPPER_CLASS) || r.hasAttribute(y.IMAGE_WRAPPER_ATTR)) return r;
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 = y.IMAGE_WRAPPER_CLASS, n.setAttribute(y.IMAGE_WRAPPER_ATTR, "true"), this.fillsParentWidth(e, r) ? n.style.display = "block" : y.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;
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(`.${y.IMAGE_OVERLAY_CLASS}`)?.remove();
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(y.SVG_NS, "svg");
2388
- e.setAttribute("class", y.IMAGE_OVERLAY_CLASS), e.setAttribute("viewBox", "0 0 100 100"), e.setAttribute("preserveAspectRatio", "none"), e.setAttribute("aria-hidden", "true"), e.setAttribute("focusable", "false");
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 [y.IMAGE_CASING_CLASS, y.IMAGE_LINE_CLASS]) for (const { x1: i, y1: s, x2: l, y2: o } of r) {
2401
- const f = document.createElementNS(y.SVG_NS, "line");
2402
- f.setAttribute("class", n), f.setAttribute("x1", i), f.setAttribute("y1", s), f.setAttribute("x2", l), f.setAttribute("y2", o), f.setAttribute("vector-effect", "non-scaling-stroke"), e.appendChild(f);
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(`[${y.LABEL_HOOK_ATTR}="true"]`) || e.querySelector("label");
2407
+ return e.querySelector(`[${b.LABEL_HOOK_ATTR}="true"]`) || e.querySelector("label");
2408
2408
  }
2409
2409
  };
2410
- u(k, "HIGHLIGHT_STYLE_PREFIX", "pie-answer-eliminator-highlight-");
2411
- u(k, "HIGHLIGHT_NAME_PREFIX", "pie-answer-eliminated-");
2412
- u(k, "FALLBACK_CLASS", "pie-answer-eliminator-eliminated-fallback");
2413
- u(k, "SR_CLASS", "pie-answer-eliminator-sr-announcement");
2414
- u(k, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
2415
- u(k, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label");
2416
- u(k, "ELIMINATED_ATTR", "data-pie-answer-eliminated");
2417
- u(k, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
2418
- u(k, "IMAGE_WRAPPER_CLASS", "pie-answer-eliminator-image-strike");
2419
- u(k, "IMAGE_WRAPPER_ATTR", "data-pie-answer-eliminator-image-strike");
2420
- u(k, "IMAGE_OVERLAY_CLASS", "pie-answer-eliminator-image-strike-overlay");
2421
- u(k, "IMAGE_LINE_CLASS", "pie-answer-eliminator-image-strike-line");
2422
- u(k, "IMAGE_CASING_CLASS", "pie-answer-eliminator-image-strike-casing");
2423
- u(k, "MATH_STRIKE_CLASS", "pie-answer-eliminator-math-strike");
2424
- u(k, "MATH_STRIKE_LINE_CLASS", "pie-answer-eliminator-math-strike--line");
2425
- u(k, "MATH_STRIKE_CROSS_CLASS", "pie-answer-eliminator-math-strike--cross");
2426
- u(k, "MATH_STRIKE_ATTR", "data-pie-answer-eliminator-math-strike");
2427
- u(k, "MATH_STACKED_SELECTOR", "mjx-mfrac, mjx-mtable");
2428
- u(k, "MATH_BOX_SELECTOR", "mjx-math");
2429
- u(k, "MATH_SELECTOR", "mjx-container");
2430
- u(k, "SVG_NS", "http://www.w3.org/2000/svg");
2431
- u(k, "BLOCK_DISPLAYS", /* @__PURE__ */ new Set([
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 hr = class Qe {
2439
+ var Mr = "answerEliminator", dr = class yt {
2440
2440
  constructor(e = "strikethrough", r = "right") {
2441
- u(this, "registry", void 0), u(this, "strategy", void 0), u(this, "eliminatedChoices", /* @__PURE__ */ new Set()), u(this, "choiceElements", /* @__PURE__ */ new Map()), u(this, "choiceButtons", /* @__PURE__ */ new Map()), u(this, "choiceAdapters", /* @__PURE__ */ new Map()), u(this, "buttonAlignment", "right"), u(this, "shouldRestoreState", !0), u(this, "active", !0), u(this, "questionRoot", null), u(this, "selectionChangeHandler", null), u(this, "selectionObserver", null), u(this, "selectionRefreshFrame", null), u(this, "storeIntegration", null), this.registry = new ks(), this.strategy = this.createStrategy(e), this.strategy.initialize(), this.buttonAlignment = r;
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, this.cleanupButtons();
2448
- const r = this.registry.findAllChoicesWithAdapters(e);
2449
- for (const { choice: n, adapter: i } of r) this.initializeChoice(n, i);
2450
- this.shouldRestoreState && this.restoreState(), this.attachSelectionListener(e);
2451
- }
2452
- initializeChoice(e, r) {
2453
- const n = r.getChoiceId(e);
2454
- this.choiceElements.set(n, e), this.choiceAdapters.set(n, r);
2455
- const i = this.createToggleButton(e, r);
2456
- if (!i) return;
2457
- this.choiceButtons.set(n, i), this.setButtonHidden(i, this.shouldHideButton(n, e, r));
2458
- const s = r.getButtonContainer(e);
2459
- s && (s.style.position = "relative", s.appendChild(i));
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.getChoiceId(e), i = r.getChoiceLabel(e), s = document.createElement("button");
2463
- s.type = "button", s.className = Qe.TOGGLE_CLASS, s.setAttribute("aria-label", `Toggle elimination for ${i}`), s.setAttribute("aria-pressed", "false"), s.setAttribute("data-choice-id", n);
2464
- const l = document.createElement("span");
2465
- return l.setAttribute("aria-hidden", "true"), l.textContent = "⊗", s.appendChild(l), this.applyButtonAlignment(s), s.dataset.pieShownDisplay = s.style.display, s.addEventListener("click", (o) => {
2466
- o.preventDefault(), o.stopPropagation(), this.toggleElimination(e, r);
2467
- }), s;
2468
- }
2469
- toggleElimination(e, r) {
2470
- const n = r.getChoiceId(e);
2471
- if (this.strategy.isEliminated(n)) this.restoreChoice(n);
2472
- else {
2473
- if (!r.canEliminate(e)) {
2474
- console.warn("Cannot eliminate this choice (already selected or in evaluate mode)");
2475
- return;
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.eliminateChoice(e, r);
2510
+ this.saveState(r.group);
2478
2511
  }
2479
- this.saveState();
2480
2512
  }
2481
- eliminateChoice(e, r) {
2482
- const n = r.getChoiceId(e), i = r.createChoiceRange(e);
2483
- if (!i) {
2484
- console.error("Failed to create range for choice");
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
- this.strategy.remove(e), this.eliminatedChoices.delete(e);
2493
- const r = this.choiceElements.get(e), n = this.choiceAdapters.get(e);
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.eliminatedChoices.size !== 0) {
2500
- for (const e of Array.from(this.eliminatedChoices)) this.restoreChoice(e);
2501
- this.eliminatedChoices.clear(), this.saveState();
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.eliminatedChoices.size;
2532
+ return this.eliminated.size;
2506
2533
  }
2507
2534
  setStoreIntegration(e, r) {
2508
- this.storeIntegration = {
2509
- store: e,
2510
- globalElementId: r
2511
- };
2512
- }
2513
- saveState() {
2514
- if (!this.storeIntegration) return;
2515
- const e = { eliminatedChoices: Array.from(this.eliminatedChoices) };
2516
- this.storeIntegration.store.setState(this.storeIntegration.globalElementId, "answerEliminator", e);
2517
- }
2518
- restoreState() {
2519
- if (!this.storeIntegration) return;
2520
- const e = this.storeIntegration.store.getState(this.storeIntegration.globalElementId, "answerEliminator");
2521
- if (!(!e || !e.eliminatedChoices))
2522
- try {
2523
- const r = e.eliminatedChoices;
2524
- if (!r || r.length === 0) return;
2525
- for (const n of r) {
2526
- const i = this.choiceElements.get(n);
2527
- if (!i) continue;
2528
- const s = this.choiceAdapters.get(n);
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
- } catch (r) {
2538
- console.error("Failed to restore eliminator state:", r);
2539
- }
2557
+ return e;
2540
2558
  }
2541
2559
  restoreAllSelectable() {
2542
- for (const e of this.eliminatedChoices) {
2543
- const r = this.choiceElements.get(e), n = this.choiceAdapters.get(e);
2544
- r && n && n.setSelectable?.(r, !0);
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, n) {
2552
- return this.eliminatedChoices.has(e) ? !1 : this.active ? n.isSelected?.(r) ?? !1 : !0;
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.choiceElements.get(e), n = this.choiceAdapters.get(e), i = this.choiceButtons.get(e);
2556
- !r || !n || !i || this.setButtonHidden(i, this.shouldHideButton(e, r, n));
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 [e, r] of this.choiceElements) {
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(this.choiceButtons.values());
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.choiceButtons.values()) e.remove();
2585
- this.choiceButtons.clear(), this.choiceElements.clear(), this.choiceAdapters.clear();
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
- u(hr, "TOGGLE_CLASS", "pie-answer-eliminator-toggle");
2629
- u(hr, "TOGGLE_ACTIVE_CLASS", "pie-answer-eliminator-toggle--active");
2630
- var Rs = /* @__PURE__ */ ts('<div style="display: none;" aria-hidden="true"></div>');
2631
- function Ls(t, e) {
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 = pe(e, "visible", 7, !1), n = pe(e, "toolId", 7, "answerEliminator"), i = pe(e, "strategy", 7, "strikethrough"), s = pe(e, "alwaysOn", 7, !1), l = pe(e, "buttonAlignment", 7, "right"), o = pe(e, "scopeElement", 7, null), f = pe(e, "elementToolStateStore", 7, null), b = pe(e, "globalElementId", 7, ""), _ = /* @__PURE__ */ j(null), c = /* @__PURE__ */ j(null), d = /* @__PURE__ */ j(null);
2634
- const h = /* @__PURE__ */ yr(() => w(c)?.toolCoordinator);
2635
- let v = /* @__PURE__ */ j(null), p = /* @__PURE__ */ j(null);
2636
- const R = Pn("Answer Eliminator", Hn.MODAL);
2637
- let L = /* @__PURE__ */ yr(() => s() || r());
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 Nn(w(_), (T) => {
2641
- B(c, T, !0);
2655
+ if (w(y))
2656
+ return Pn(w(y), ($) => {
2657
+ P(_, $, !0);
2642
2658
  });
2643
2659
  }), Ee(() => {
2644
- if (w(_))
2645
- return Bn(w(_), (T) => {
2646
- B(d, T, !0);
2660
+ if (w(y))
2661
+ return Bn(w(y), ($) => {
2662
+ P(f, $, !0);
2647
2663
  });
2648
2664
  });
2649
2665
  function N() {
2650
- return o() || w(d)?.scopeElement || null;
2666
+ return u() || w(f)?.scopeElement || null;
2651
2667
  }
2652
2668
  function U() {
2653
- if (!w(L) || !w(v)) return;
2654
- const T = N();
2655
- if (!T) {
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(T);
2675
+ w(v).initializeForQuestion($);
2660
2676
  }
2661
- function O() {
2677
+ function I() {
2662
2678
  requestAnimationFrame(() => {
2663
2679
  requestAnimationFrame(() => {
2664
2680
  U();
2665
2681
  });
2666
2682
  });
2667
2683
  }
2668
- Ee(() => R.sync(w(h), n())), Ee(() => {
2669
- w(v) && f() && b() && w(v).setStoreIntegration(f(), b());
2670
- }), _s(() => (B(v, new hr(i(), l()), !0), w(v) && f() && b() && w(v).setStoreIntegration(f(), b()), w(L) ? U() : w(v).cleanup(), () => {
2671
- w(v)?.destroy(), B(v, null), R.release();
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 T = w(d)?.contextVersion ?? null;
2674
- if (T !== null) {
2689
+ const $ = w(f)?.contextVersion ?? null;
2690
+ if ($ !== null) {
2675
2691
  if (w(p) === null) {
2676
- B(p, T, !0);
2692
+ P(p, $, !0);
2677
2693
  return;
2678
2694
  }
2679
- T !== w(p) && (B(p, T, !0), O());
2695
+ $ !== w(p) && (P(p, $, !0), I());
2680
2696
  }
2681
2697
  }), Ee(() => {
2682
- w(v) && (w(L) ? (w(v).enableStateRestoration(), U()) : w(v).cleanup());
2698
+ w(v) && (w(R) ? (w(v).enableStateRestoration(), U()) : w(v).cleanup());
2683
2699
  });
2684
- var ce = {
2700
+ var fe = {
2685
2701
  get visible() {
2686
2702
  return r();
2687
2703
  },
2688
- set visible(T = !1) {
2689
- r(T), he();
2704
+ set visible($ = !1) {
2705
+ r($), _e();
2690
2706
  },
2691
2707
  get toolId() {
2692
2708
  return n();
2693
2709
  },
2694
- set toolId(T = "answerEliminator") {
2695
- n(T), he();
2710
+ set toolId($ = "answerEliminator") {
2711
+ n($), _e();
2696
2712
  },
2697
2713
  get strategy() {
2698
2714
  return i();
2699
2715
  },
2700
- set strategy(T = "strikethrough") {
2701
- i(T), he();
2716
+ set strategy($ = "strikethrough") {
2717
+ i($), _e();
2702
2718
  },
2703
2719
  get alwaysOn() {
2704
2720
  return s();
2705
2721
  },
2706
- set alwaysOn(T = !1) {
2707
- s(T), he();
2722
+ set alwaysOn($ = !1) {
2723
+ s($), _e();
2708
2724
  },
2709
2725
  get buttonAlignment() {
2710
2726
  return l();
2711
2727
  },
2712
- set buttonAlignment(T = "right") {
2713
- l(T), he();
2728
+ set buttonAlignment($ = "right") {
2729
+ l($), _e();
2714
2730
  },
2715
2731
  get scopeElement() {
2716
- return o();
2717
- },
2718
- set scopeElement(T = null) {
2719
- o(T), he();
2720
- },
2721
- get elementToolStateStore() {
2722
- return f();
2732
+ return u();
2723
2733
  },
2724
- set elementToolStateStore(T = null) {
2725
- f(T), he();
2734
+ set scopeElement($ = null) {
2735
+ u($), _e();
2726
2736
  },
2727
- get globalElementId() {
2728
- return b();
2737
+ get elementStateKeys() {
2738
+ return c();
2729
2739
  },
2730
- set globalElementId(T = "") {
2731
- b(T), he();
2740
+ set elementStateKeys($ = {}) {
2741
+ c($), _e();
2732
2742
  }
2733
- }, fe = Rs();
2734
- return ms(fe, (T) => B(_, T), () => w(_)), En(t, fe), qr(ce);
2743
+ }, ce = Rs();
2744
+ return ys(ce, ($) => P(y, $), () => w(y)), Tn(t, ce), qr(fe);
2735
2745
  }
2736
- Is("pie-tool-answer-eliminator", As(Ls, {
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
- elementToolStateStore: { type: "Object" },
2759
- globalElementId: { type: "String" }
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
- Ls as default
2774
+ Os as default
2766
2775
  };