altcha 2.1.0-beta.3 → 2.1.0

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.
@@ -3,7 +3,7 @@ var Fn = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var Fl = (e, t, r) => t in e ? Ol(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var we = (e, t, r) => Fl(e, typeof t != "symbol" ? t + "" : t, r), Vn = (e, t, r) => t.has(e) || Fn("Cannot " + r);
6
+ var Ee = (e, t, r) => Fl(e, typeof t != "symbol" ? t + "" : t, r), Vn = (e, t, r) => t.has(e) || Fn("Cannot " + r);
7
7
  var se = (e, t, r) => (Vn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), xr = (e, t, r) => t.has(e) ? Fn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Sr = (e, t, r, i) => (Vn(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
8
8
  const Vl = "5";
9
9
  var Qn;
@@ -12,7 +12,7 @@ const Ml = 1, ql = 4, Ul = 8, Bl = 16, jl = 1, Hl = 2, Br = "[", ei = "[!", ti =
12
12
  function ri(e) {
13
13
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
14
14
  }
15
- var ni = Array.isArray, Gl = Array.prototype.indexOf, Zl = Array.from, nr = Object.keys, Vt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, Wl = Object.getOwnPropertyDescriptors, Jl = Object.prototype, Kl = Array.prototype, ii = Object.getPrototypeOf, qn = Object.isExtensible;
15
+ var ni = Array.isArray, Gl = Array.prototype.indexOf, Zl = Array.from, ir = Object.keys, Mt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, Wl = Object.getOwnPropertyDescriptors, Jl = Object.prototype, Kl = Array.prototype, ii = Object.getPrototypeOf, qn = Object.isExtensible;
16
16
  const wt = () => {
17
17
  };
18
18
  function li(e) {
@@ -28,7 +28,7 @@ function zl(e, t, r = !1) {
28
28
  t
29
29
  ) : e;
30
30
  }
31
- const Ee = 2, oi = 4, fr = 8, jr = 16, Fe = 32, lt = 64, ir = 128, he = 256, lr = 512, fe = 1024, Ne = 2048, ot = 4096, Et = 8192, cr = 16384, Xl = 32768, Hr = 65536, Ql = 1 << 19, ai = 1 << 20, Lr = 1 << 21, Ot = Symbol("$state"), si = Symbol("legacy props"), eo = Symbol("");
31
+ const Ce = 2, oi = 4, cr = 8, jr = 16, Fe = 32, lt = 64, lr = 128, he = 256, or = 512, fe = 1024, Ne = 2048, ot = 4096, Et = 8192, dr = 16384, Xl = 32768, Hr = 65536, Ql = 1 << 19, ai = 1 << 20, Lr = 1 << 21, Ft = Symbol("$state"), si = Symbol("legacy props"), eo = Symbol("");
32
32
  function to(e) {
33
33
  throw new Error("https://svelte.dev/e/effect_in_teardown");
34
34
  }
@@ -56,7 +56,7 @@ function so() {
56
56
  function uo() {
57
57
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
58
58
  }
59
- function dr(e) {
59
+ function vr(e) {
60
60
  console.warn("https://svelte.dev/e/hydration_mismatch");
61
61
  }
62
62
  let V = !1;
@@ -66,7 +66,7 @@ function yt(e) {
66
66
  let F;
67
67
  function Ge(e) {
68
68
  if (e === null)
69
- throw dr(), pt;
69
+ throw vr(), pt;
70
70
  return F = e;
71
71
  }
72
72
  function Ct() {
@@ -78,7 +78,7 @@ function Ct() {
78
78
  function Z(e) {
79
79
  if (V) {
80
80
  if (/* @__PURE__ */ Je(F) !== null)
81
- throw dr(), pt;
81
+ throw vr(), pt;
82
82
  F = e;
83
83
  }
84
84
  }
@@ -103,7 +103,7 @@ function fo() {
103
103
  }
104
104
  let co = !1;
105
105
  function He(e) {
106
- if (typeof e != "object" || e === null || Ot in e)
106
+ if (typeof e != "object" || e === null || Ft in e)
107
107
  return e;
108
108
  const t = ii(e);
109
109
  if (t !== Jl && t !== Kl)
@@ -124,7 +124,7 @@ function He(e) {
124
124
  defineProperty(s, c, d) {
125
125
  (!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && ao();
126
126
  var b = r.get(c);
127
- return b === void 0 ? (b = u(() => /* @__PURE__ */ O(d.value)), r.set(c, b)) : p(
127
+ return b === void 0 ? (b = u(() => /* @__PURE__ */ O(d.value)), r.set(c, b)) : y(
128
128
  b,
129
129
  u(() => He(d.value))
130
130
  ), !0;
@@ -142,20 +142,20 @@ function He(e) {
142
142
  /** @type {Source<number>} */
143
143
  r.get("length")
144
144
  ), v = Number(c);
145
- Number.isInteger(v) && v < b.v && p(b, v);
145
+ Number.isInteger(v) && v < b.v && y(b, v);
146
146
  }
147
- p(d, ue), Tr(o);
147
+ y(d, ue), Tr(o);
148
148
  }
149
149
  return !0;
150
150
  },
151
151
  get(s, c, d) {
152
152
  var w;
153
- if (c === Ot)
153
+ if (c === Ft)
154
154
  return e;
155
155
  var b = r.get(c), v = c in s;
156
156
  if (b === void 0 && (!v || (w = rt(s, c)) != null && w.writable) && (b = u(() => /* @__PURE__ */ O(He(v ? s[c] : ue))), r.set(c, b)), b !== void 0) {
157
- var _ = a(b);
158
- return _ === ue ? void 0 : _;
157
+ var m = a(b);
158
+ return m === ue ? void 0 : m;
159
159
  }
160
160
  return Reflect.get(s, c, d);
161
161
  },
@@ -165,23 +165,23 @@ function He(e) {
165
165
  var b = r.get(c);
166
166
  b && (d.value = a(b));
167
167
  } else if (d === void 0) {
168
- var v = r.get(c), _ = v == null ? void 0 : v.v;
169
- if (v !== void 0 && _ !== ue)
168
+ var v = r.get(c), m = v == null ? void 0 : v.v;
169
+ if (v !== void 0 && m !== ue)
170
170
  return {
171
171
  enumerable: !0,
172
172
  configurable: !0,
173
- value: _,
173
+ value: m,
174
174
  writable: !0
175
175
  };
176
176
  }
177
177
  return d;
178
178
  },
179
179
  has(s, c) {
180
- var _;
181
- if (c === Ot)
180
+ var m;
181
+ if (c === Ft)
182
182
  return !0;
183
183
  var d = r.get(c), b = d !== void 0 && d.v !== ue || Reflect.has(s, c);
184
- if (d !== void 0 || D !== null && (!b || (_ = rt(s, c)) != null && _.writable)) {
184
+ if (d !== void 0 || D !== null && (!b || (m = rt(s, c)) != null && m.writable)) {
185
185
  d === void 0 && (d = u(() => /* @__PURE__ */ O(b ? He(s[c]) : ue)), r.set(c, d));
186
186
  var v = a(d);
187
187
  if (v === ue)
@@ -191,28 +191,28 @@ function He(e) {
191
191
  },
192
192
  set(s, c, d, b) {
193
193
  var z;
194
- var v = r.get(c), _ = c in s;
194
+ var v = r.get(c), m = c in s;
195
195
  if (i && c === "length")
196
196
  for (var w = d; w < /** @type {Source<number>} */
197
197
  v.v; w += 1) {
198
198
  var S = r.get(w + "");
199
- S !== void 0 ? p(S, ue) : w in s && (S = u(() => /* @__PURE__ */ O(ue)), r.set(w + "", S));
199
+ S !== void 0 ? y(S, ue) : w in s && (S = u(() => /* @__PURE__ */ O(ue)), r.set(w + "", S));
200
200
  }
201
- v === void 0 ? (!_ || (z = rt(s, c)) != null && z.writable) && (v = u(() => /* @__PURE__ */ O(void 0)), p(
201
+ v === void 0 ? (!m || (z = rt(s, c)) != null && z.writable) && (v = u(() => /* @__PURE__ */ O(void 0)), y(
202
202
  v,
203
203
  u(() => He(d))
204
- ), r.set(c, v)) : (_ = v.v !== ue, p(
204
+ ), r.set(c, v)) : (m = v.v !== ue, y(
205
205
  v,
206
206
  u(() => He(d))
207
207
  ));
208
- var C = Reflect.getOwnPropertyDescriptor(s, c);
209
- if (C != null && C.set && C.set.call(b, d), !_) {
208
+ var E = Reflect.getOwnPropertyDescriptor(s, c);
209
+ if (E != null && E.set && E.set.call(b, d), !m) {
210
210
  if (i && typeof c == "string") {
211
- var M = (
211
+ var q = (
212
212
  /** @type {Source<number>} */
213
213
  r.get("length")
214
214
  ), ce = Number(c);
215
- Number.isInteger(ce) && ce >= M.v && p(M, ce + 1);
215
+ Number.isInteger(ce) && ce >= q.v && y(q, ce + 1);
216
216
  }
217
217
  Tr(o);
218
218
  }
@@ -221,8 +221,8 @@ function He(e) {
221
221
  ownKeys(s) {
222
222
  a(o);
223
223
  var c = Reflect.ownKeys(s).filter((v) => {
224
- var _ = r.get(v);
225
- return _ === void 0 || _.v !== ue;
224
+ var m = r.get(v);
225
+ return m === void 0 || m.v !== ue;
226
226
  });
227
227
  for (var [d, b] of r)
228
228
  b.v !== ue && !(d in s) && c.push(d);
@@ -235,7 +235,7 @@ function He(e) {
235
235
  );
236
236
  }
237
237
  function Tr(e, t = 1) {
238
- p(e, e.v + t);
238
+ y(e, e.v + t);
239
239
  }
240
240
  var Un, ui, fi, ci;
241
241
  function Pr() {
@@ -245,7 +245,7 @@ function Pr() {
245
245
  fi = rt(t, "firstChild").get, ci = rt(t, "nextSibling").get, qn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), qn(r) && (r.__t = void 0);
246
246
  }
247
247
  }
248
- function vr(e = "") {
248
+ function hr(e = "") {
249
249
  return document.createTextNode(e);
250
250
  }
251
251
  // @__NO_SIDE_EFFECTS__
@@ -263,9 +263,9 @@ function W(e, t) {
263
263
  /** @type {TemplateNode} */
264
264
  /* @__PURE__ */ be(F)
265
265
  );
266
- return r === null && (r = F.appendChild(vr())), Ge(r), r;
266
+ return r === null && (r = F.appendChild(hr())), Ge(r), r;
267
267
  }
268
- function Dt(e, t) {
268
+ function Lt(e, t) {
269
269
  if (!V) {
270
270
  var r = (
271
271
  /** @type {DocumentFragment} */
@@ -287,7 +287,7 @@ function J(e, t = 1, r = !1) {
287
287
  return i;
288
288
  var l = i == null ? void 0 : i.nodeType;
289
289
  if (r && l !== 3) {
290
- var u = vr();
290
+ var u = hr();
291
291
  return i === null ? o == null || o.after(u) : i.before(u), Ge(u), u;
292
292
  }
293
293
  return Ge(i), /** @type {TemplateNode} */
@@ -306,8 +306,8 @@ function Yr(e) {
306
306
  return !vi(e, this.v);
307
307
  }
308
308
  // @__NO_SIDE_EFFECTS__
309
- function hr(e) {
310
- var t = Ee | Ne, r = N !== null && (N.f & Ee) !== 0 ? (
309
+ function gr(e) {
310
+ var t = Ce | Ne, r = N !== null && (N.f & Ce) !== 0 ? (
311
311
  /** @type {Derived} */
312
312
  N
313
313
  ) : null;
@@ -329,13 +329,13 @@ function hr(e) {
329
329
  };
330
330
  }
331
331
  // @__NO_SIDE_EFFECTS__
332
- function Lt(e) {
333
- const t = /* @__PURE__ */ hr(e);
332
+ function Pt(e) {
333
+ const t = /* @__PURE__ */ gr(e);
334
334
  return Ri(t), t;
335
335
  }
336
336
  // @__NO_SIDE_EFFECTS__
337
337
  function ho(e) {
338
- const t = /* @__PURE__ */ hr(e);
338
+ const t = /* @__PURE__ */ gr(e);
339
339
  return t.equals = Yr, t;
340
340
  }
341
341
  function hi(e) {
@@ -351,7 +351,7 @@ function hi(e) {
351
351
  }
352
352
  function go(e) {
353
353
  for (var t = e.parent; t !== null; ) {
354
- if ((t.f & Ee) === 0)
354
+ if ((t.f & Ce) === 0)
355
355
  return (
356
356
  /** @type {Effect} */
357
357
  t
@@ -372,10 +372,10 @@ function gi(e) {
372
372
  }
373
373
  function _i(e) {
374
374
  var t = gi(e), r = (Ye || (e.f & he) !== 0) && e.deps !== null ? ot : fe;
375
- Ce(e, r), e.equals(t) || (e.v = t, e.wv = $i());
375
+ Ae(e, r), e.equals(t) || (e.v = t, e.wv = $i());
376
376
  }
377
377
  function _o(e) {
378
- D === null && N === null && no(), N !== null && (N.f & he) !== 0 && D === null && ro(), Bt && to();
378
+ D === null && N === null && no(), N !== null && (N.f & he) !== 0 && D === null && ro(), jt && to();
379
379
  }
380
380
  function mo(e, t) {
381
381
  var r = t.last;
@@ -404,9 +404,9 @@ function at(e, t, r, i = !0) {
404
404
  } catch (c) {
405
405
  throw Ze(l), c;
406
406
  }
407
- else t !== null && _r(l);
408
- var u = r && l.deps === null && l.first === null && l.nodes_start === null && l.teardown === null && (l.f & (ai | ir)) === 0;
409
- if (!u && i && (o !== null && mo(l, o), N !== null && (N.f & Ee) !== 0)) {
407
+ else t !== null && mr(l);
408
+ var u = r && l.deps === null && l.first === null && l.nodes_start === null && l.teardown === null && (l.f & (ai | lr)) === 0;
409
+ if (!u && i && (o !== null && mo(l, o), N !== null && (N.f & Ce) !== 0)) {
410
410
  var s = (
411
411
  /** @type {Derived} */
412
412
  N
@@ -416,8 +416,8 @@ function at(e, t, r, i = !0) {
416
416
  return l;
417
417
  }
418
418
  function Gr(e) {
419
- const t = at(fr, null, !1);
420
- return Ce(t, fe), t.teardown = e, t;
419
+ const t = at(cr, null, !1);
420
+ return Ae(t, fe), t.teardown = e, t;
421
421
  }
422
422
  function Or(e) {
423
423
  _o();
@@ -455,22 +455,22 @@ function Zr(e) {
455
455
  return at(oi, e, !1);
456
456
  }
457
457
  function Wr(e) {
458
- return at(fr, e, !0);
458
+ return at(cr, e, !0);
459
459
  }
460
- function xe(e, t = [], r = hr) {
460
+ function xe(e, t = [], r = gr) {
461
461
  const i = t.map(r);
462
462
  return mi(() => e(...i.map(a)));
463
463
  }
464
464
  function mi(e, t = 0) {
465
- return at(fr | jr | t, e, !0);
465
+ return at(cr | jr | t, e, !0);
466
466
  }
467
467
  function Fr(e, t = !0) {
468
- return at(fr | Fe, e, !0, t);
468
+ return at(cr | Fe, e, !0, t);
469
469
  }
470
470
  function bi(e) {
471
471
  var t = e.teardown;
472
472
  if (t !== null) {
473
- const r = Bt, i = N;
473
+ const r = jt, i = N;
474
474
  jn(!0), De(null);
475
475
  try {
476
476
  t.call(null);
@@ -498,7 +498,7 @@ function Ze(e, t = !0) {
498
498
  e.nodes_start,
499
499
  /** @type {TemplateNode} */
500
500
  e.nodes_end
501
- ), r = !0), yi(e, t && !r), ur(e, 0), Ce(e, cr);
501
+ ), r = !0), yi(e, t && !r), fr(e, 0), Ae(e, dr);
502
502
  var i = e.transitions;
503
503
  if (i !== null)
504
504
  for (const l of i)
@@ -551,7 +551,7 @@ function Bn(e) {
551
551
  }
552
552
  function Ci(e, t) {
553
553
  if ((e.f & Et) !== 0) {
554
- e.f ^= Et, (e.f & fe) === 0 && (e.f ^= fe), jt(e) && (Ce(e, Ne), _r(e));
554
+ e.f ^= Et, (e.f & fe) === 0 && (e.f ^= fe), Ht(e) && (Ae(e, Ne), mr(e));
555
555
  for (var r = e.first; r !== null; ) {
556
556
  var i = r.next, o = (r.f & Hr) !== 0 || (r.f & Fe) !== 0;
557
557
  Ci(r, o ? t : !1), r = i;
@@ -562,29 +562,29 @@ function Ci(e, t) {
562
562
  }
563
563
  }
564
564
  const Eo = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
565
- let Mt = [], qt = [];
565
+ let qt = [], Ut = [];
566
566
  function Ai() {
567
- var e = Mt;
568
- Mt = [], li(e);
569
- }
570
- function Ii() {
571
567
  var e = qt;
572
568
  qt = [], li(e);
573
569
  }
570
+ function Ii() {
571
+ var e = Ut;
572
+ Ut = [], li(e);
573
+ }
574
574
  function Jr(e) {
575
- Mt.length === 0 && queueMicrotask(Ai), Mt.push(e);
575
+ qt.length === 0 && queueMicrotask(Ai), qt.push(e);
576
576
  }
577
577
  function Co(e) {
578
- qt.length === 0 && Eo(Ii), qt.push(e);
578
+ Ut.length === 0 && Eo(Ii), Ut.push(e);
579
579
  }
580
580
  function Ao() {
581
- Mt.length > 0 && Ai(), qt.length > 0 && Ii();
581
+ qt.length > 0 && Ai(), Ut.length > 0 && Ii();
582
582
  }
583
- let er = !1, or = !1, ar = null, nt = !1, Bt = !1;
583
+ let tr = !1, ar = !1, sr = null, nt = !1, jt = !1;
584
584
  function jn(e) {
585
- Bt = e;
585
+ jt = e;
586
586
  }
587
- let Ft = [];
587
+ let Vt = [];
588
588
  let N = null, Se = !1;
589
589
  function De(e) {
590
590
  N = e;
@@ -601,11 +601,11 @@ let ne = null, ve = 0, _e = null;
601
601
  function Io(e) {
602
602
  _e = e;
603
603
  }
604
- let ki = 1, sr = 0, Ye = !1;
604
+ let ki = 1, ur = 0, Ye = !1;
605
605
  function $i() {
606
606
  return ++ki;
607
607
  }
608
- function jt(e) {
608
+ function Ht(e) {
609
609
  var v;
610
610
  var t = e.f;
611
611
  if ((t & Ne) !== 0)
@@ -613,7 +613,7 @@ function jt(e) {
613
613
  if ((t & ot) !== 0) {
614
614
  var r = e.deps, i = (t & he) !== 0;
615
615
  if (r !== null) {
616
- var o, l, u = (t & lr) !== 0, s = i && D !== null && !Ye, c = r.length;
616
+ var o, l, u = (t & or) !== 0, s = i && D !== null && !Ye, c = r.length;
617
617
  if (u || s) {
618
618
  var d = (
619
619
  /** @type {Derived} */
@@ -621,10 +621,10 @@ function jt(e) {
621
621
  ), b = d.parent;
622
622
  for (o = 0; o < c; o++)
623
623
  l = r[o], (u || !((v = l == null ? void 0 : l.reactions) != null && v.includes(d))) && (l.reactions ?? (l.reactions = [])).push(d);
624
- u && (d.f ^= lr), s && b !== null && (b.f & he) === 0 && (d.f ^= he);
624
+ u && (d.f ^= or), s && b !== null && (b.f & he) === 0 && (d.f ^= he);
625
625
  }
626
626
  for (o = 0; o < c; o++)
627
- if (l = r[o], jt(
627
+ if (l = r[o], Ht(
628
628
  /** @type {Derived} */
629
629
  l
630
630
  ) && _i(
@@ -633,33 +633,33 @@ function jt(e) {
633
633
  ), l.wv > e.wv)
634
634
  return !0;
635
635
  }
636
- (!i || D !== null && !Ye) && Ce(e, fe);
636
+ (!i || D !== null && !Ye) && Ae(e, fe);
637
637
  }
638
638
  return !1;
639
639
  }
640
640
  function Ro(e, t) {
641
641
  for (var r = t; r !== null; ) {
642
- if ((r.f & ir) !== 0)
642
+ if ((r.f & lr) !== 0)
643
643
  try {
644
644
  r.fn(e);
645
645
  return;
646
646
  } catch {
647
- r.f ^= ir;
647
+ r.f ^= lr;
648
648
  }
649
649
  r = r.parent;
650
650
  }
651
- throw er = !1, e;
651
+ throw tr = !1, e;
652
652
  }
653
653
  function Hn(e) {
654
- return (e.f & cr) === 0 && (e.parent === null || (e.parent.f & ir) === 0);
654
+ return (e.f & dr) === 0 && (e.parent === null || (e.parent.f & lr) === 0);
655
655
  }
656
- function gr(e, t, r, i) {
657
- if (er) {
658
- if (r === null && (er = !1), Hn(t))
656
+ function _r(e, t, r, i) {
657
+ if (tr) {
658
+ if (r === null && (tr = !1), Hn(t))
659
659
  throw e;
660
660
  return;
661
661
  }
662
- if (r !== null && (er = !0), Ro(e, t), Hn(t))
662
+ if (r !== null && (tr = !0), Ro(e, t), Hn(t))
663
663
  throw e;
664
664
  }
665
665
  function xi(e, t, r = !0) {
@@ -667,12 +667,12 @@ function xi(e, t, r = !0) {
667
667
  if (i !== null)
668
668
  for (var o = 0; o < i.length; o++) {
669
669
  var l = i[o];
670
- ie != null && ie.includes(e) || ((l.f & Ee) !== 0 ? xi(
670
+ ie != null && ie.includes(e) || ((l.f & Ce) !== 0 ? xi(
671
671
  /** @type {Derived} */
672
672
  l,
673
673
  t,
674
674
  !1
675
- ) : t === l && (r ? Ce(l, Ne) : (l.f & fe) !== 0 && Ce(l, ot), _r(
675
+ ) : t === l && (r ? Ae(l, Ne) : (l.f & fe) !== 0 && Ae(l, ot), mr(
676
676
  /** @type {Effect} */
677
677
  l
678
678
  )));
@@ -682,32 +682,32 @@ function Si(e) {
682
682
  var w;
683
683
  var t = ne, r = ve, i = _e, o = N, l = Ye, u = ie, s = le, c = Se, d = e.f;
684
684
  ne = /** @type {null | Value[]} */
685
- null, ve = 0, _e = null, Ye = (d & he) !== 0 && (Se || !nt || N === null), N = (d & (Fe | lt)) === 0 ? e : null, ie = null, Yn(e.ctx), Se = !1, sr++, e.f |= Lr;
685
+ null, ve = 0, _e = null, Ye = (d & he) !== 0 && (Se || !nt || N === null), N = (d & (Fe | lt)) === 0 ? e : null, ie = null, Yn(e.ctx), Se = !1, ur++, e.f |= Lr;
686
686
  try {
687
687
  var b = (
688
688
  /** @type {Function} */
689
689
  (0, e.fn)()
690
690
  ), v = e.deps;
691
691
  if (ne !== null) {
692
- var _;
693
- if (ur(e, ve), v !== null && ve > 0)
694
- for (v.length = ve + ne.length, _ = 0; _ < ne.length; _++)
695
- v[ve + _] = ne[_];
692
+ var m;
693
+ if (fr(e, ve), v !== null && ve > 0)
694
+ for (v.length = ve + ne.length, m = 0; m < ne.length; m++)
695
+ v[ve + m] = ne[m];
696
696
  else
697
697
  e.deps = v = ne;
698
698
  if (!Ye)
699
- for (_ = ve; _ < v.length; _++)
700
- ((w = v[_]).reactions ?? (w.reactions = [])).push(e);
701
- } else v !== null && ve < v.length && (ur(e, ve), v.length = ve);
702
- if (Oi() && _e !== null && !Se && v !== null && (e.f & (Ee | ot | Ne)) === 0)
703
- for (_ = 0; _ < /** @type {Source[]} */
704
- _e.length; _++)
699
+ for (m = ve; m < v.length; m++)
700
+ ((w = v[m]).reactions ?? (w.reactions = [])).push(e);
701
+ } else v !== null && ve < v.length && (fr(e, ve), v.length = ve);
702
+ if (Oi() && _e !== null && !Se && v !== null && (e.f & (Ce | ot | Ne)) === 0)
703
+ for (m = 0; m < /** @type {Source[]} */
704
+ _e.length; m++)
705
705
  xi(
706
- _e[_],
706
+ _e[m],
707
707
  /** @type {Effect} */
708
708
  e
709
709
  );
710
- return o !== null && o !== e && (sr++, _e !== null && (i === null ? i = _e : i.push(.../** @type {Source[]} */
710
+ return o !== null && o !== e && (ur++, _e !== null && (i === null ? i = _e : i.push(.../** @type {Source[]} */
711
711
  _e))), b;
712
712
  } finally {
713
713
  ne = t, ve = r, _e = i, N = o, Ye = l, ie = u, Yn(s), Se = c, e.f ^= Lr;
@@ -722,19 +722,19 @@ function ko(e, t) {
722
722
  o === 0 ? r = t.reactions = null : (r[i] = r[o], r.pop());
723
723
  }
724
724
  }
725
- r === null && (t.f & Ee) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
725
+ r === null && (t.f & Ce) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
726
726
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
727
727
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
728
- (ne === null || !ne.includes(t)) && (Ce(t, ot), (t.f & (he | lr)) === 0 && (t.f ^= lr), hi(
728
+ (ne === null || !ne.includes(t)) && (Ae(t, ot), (t.f & (he | or)) === 0 && (t.f ^= or), hi(
729
729
  /** @type {Derived} **/
730
730
  t
731
- ), ur(
731
+ ), fr(
732
732
  /** @type {Derived} **/
733
733
  t,
734
734
  0
735
735
  ));
736
736
  }
737
- function ur(e, t) {
737
+ function fr(e, t) {
738
738
  var r = e.deps;
739
739
  if (r !== null)
740
740
  for (var i = t; i < r.length; i++)
@@ -742,8 +742,8 @@ function ur(e, t) {
742
742
  }
743
743
  function Kr(e) {
744
744
  var t = e.f;
745
- if ((t & cr) === 0) {
746
- Ce(e, fe);
745
+ if ((t & dr) === 0) {
746
+ Ae(e, fe);
747
747
  var r = D, i = le, o = nt;
748
748
  D = e, nt = !0;
749
749
  try {
@@ -753,7 +753,7 @@ function Kr(e) {
753
753
  var u = e.deps, s;
754
754
  Mn && co && e.f & Ne;
755
755
  } catch (c) {
756
- gr(c, e, r, i || e.ctx);
756
+ _r(c, e, r, i || e.ctx);
757
757
  } finally {
758
758
  nt = o, D = r;
759
759
  }
@@ -763,8 +763,8 @@ function $o() {
763
763
  try {
764
764
  io();
765
765
  } catch (e) {
766
- if (ar !== null)
767
- gr(e, ar, null);
766
+ if (sr !== null)
767
+ _r(e, sr, null);
768
768
  else
769
769
  throw e;
770
770
  }
@@ -773,18 +773,18 @@ function Ti() {
773
773
  var e = nt;
774
774
  try {
775
775
  var t = 0;
776
- for (nt = !0; Ft.length > 0; ) {
776
+ for (nt = !0; Vt.length > 0; ) {
777
777
  t++ > 1e3 && $o();
778
- var r = Ft, i = r.length;
779
- Ft = [];
778
+ var r = Vt, i = r.length;
779
+ Vt = [];
780
780
  for (var o = 0; o < i; o++) {
781
781
  var l = So(r[o]);
782
782
  xo(l);
783
783
  }
784
- Ut.clear();
784
+ Bt.clear();
785
785
  }
786
786
  } finally {
787
- or = !1, nt = e, ar = null;
787
+ ar = !1, nt = e, sr = null;
788
788
  }
789
789
  }
790
790
  function xo(e) {
@@ -792,17 +792,17 @@ function xo(e) {
792
792
  if (t !== 0)
793
793
  for (var r = 0; r < t; r++) {
794
794
  var i = e[r];
795
- if ((i.f & (cr | Et)) === 0)
795
+ if ((i.f & (dr | Et)) === 0)
796
796
  try {
797
- jt(i) && (Kr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? wi(i) : i.fn = null));
797
+ Ht(i) && (Kr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? wi(i) : i.fn = null));
798
798
  } catch (o) {
799
- gr(o, i, null, i.ctx);
799
+ _r(o, i, null, i.ctx);
800
800
  }
801
801
  }
802
802
  }
803
- function _r(e) {
804
- or || (or = !0, queueMicrotask(Ti));
805
- for (var t = ar = e; t.parent !== null; ) {
803
+ function mr(e) {
804
+ ar || (ar = !0, queueMicrotask(Ti));
805
+ for (var t = sr = e; t.parent !== null; ) {
806
806
  t = t.parent;
807
807
  var r = t.f;
808
808
  if ((r & (lt | Fe)) !== 0) {
@@ -810,7 +810,7 @@ function _r(e) {
810
810
  t.f ^= fe;
811
811
  }
812
812
  }
813
- Ft.push(t);
813
+ Vt.push(t);
814
814
  }
815
815
  function So(e) {
816
816
  for (var t = [], r = e; r !== null; ) {
@@ -822,9 +822,9 @@ function So(e) {
822
822
  r.f ^= fe;
823
823
  else
824
824
  try {
825
- jt(r) && Kr(r);
825
+ Ht(r) && Kr(r);
826
826
  } catch (c) {
827
- gr(c, r, null, r.ctx);
827
+ _r(c, r, null, r.ctx);
828
828
  }
829
829
  var u = r.first;
830
830
  if (u !== null) {
@@ -838,25 +838,25 @@ function So(e) {
838
838
  }
839
839
  return t;
840
840
  }
841
- function R(e) {
841
+ function I(e) {
842
842
  for (var t; ; ) {
843
- if (Ao(), Ft.length === 0)
843
+ if (Ao(), Vt.length === 0)
844
844
  return (
845
845
  /** @type {T} */
846
846
  t
847
847
  );
848
- or = !0, Ti();
848
+ ar = !0, Ti();
849
849
  }
850
850
  }
851
851
  async function Nr() {
852
- await Promise.resolve(), R();
852
+ await Promise.resolve(), I();
853
853
  }
854
854
  function a(e) {
855
- var t = e.f, r = (t & Ee) !== 0;
855
+ var t = e.f, r = (t & Ce) !== 0;
856
856
  if (N !== null && !Se) {
857
857
  if (!(ie != null && ie.includes(e))) {
858
858
  var i = N.deps;
859
- e.rv < sr && (e.rv = sr, ne === null && i !== null && i[ve] === e ? ve++ : ne === null ? ne = [e] : (!Ye || !ne.includes(e)) && ne.push(e));
859
+ e.rv < ur && (e.rv = ur, ne === null && i !== null && i[ve] === e ? ve++ : ne === null ? ne = [e] : (!Ye || !ne.includes(e)) && ne.push(e));
860
860
  }
861
861
  } else if (r && /** @type {Derived} */
862
862
  e.deps === null && /** @type {Derived} */
@@ -868,7 +868,7 @@ function a(e) {
868
868
  l !== null && (l.f & he) === 0 && (o.f ^= he);
869
869
  }
870
870
  return r && (o = /** @type {Derived} */
871
- e, jt(o) && _i(o)), Bt && Ut.has(e) ? Ut.get(e) : e.v;
871
+ e, Ht(o) && _i(o)), jt && Bt.has(e) ? Bt.get(e) : e.v;
872
872
  }
873
873
  function it(e) {
874
874
  var t = Se;
@@ -879,10 +879,10 @@ function it(e) {
879
879
  }
880
880
  }
881
881
  const To = -7169;
882
- function Ce(e, t) {
882
+ function Ae(e, t) {
883
883
  e.f = e.f & To | t;
884
884
  }
885
- const Ut = /* @__PURE__ */ new Map();
885
+ const Bt = /* @__PURE__ */ new Map();
886
886
  function Ni(e, t) {
887
887
  var r = {
888
888
  f: 0,
@@ -905,18 +905,18 @@ function zr(e, t = !1) {
905
905
  const r = Ni(e);
906
906
  return t || (r.equals = Yr), r;
907
907
  }
908
- function p(e, t, r = !1) {
909
- N !== null && !Se && Oi() && (N.f & (Ee | jr)) !== 0 && !(ie != null && ie.includes(e)) && uo();
908
+ function y(e, t, r = !1) {
909
+ N !== null && !Se && Oi() && (N.f & (Ce | jr)) !== 0 && !(ie != null && ie.includes(e)) && uo();
910
910
  let i = r ? He(t) : t;
911
911
  return No(e, i);
912
912
  }
913
913
  function No(e, t) {
914
914
  if (!e.equals(t)) {
915
915
  var r = e.v;
916
- Bt ? Ut.set(e, t) : Ut.set(e, r), e.v = t, (e.f & Ee) !== 0 && ((e.f & Ne) !== 0 && gi(
916
+ jt ? Bt.set(e, t) : Bt.set(e, r), e.v = t, (e.f & Ce) !== 0 && ((e.f & Ne) !== 0 && gi(
917
917
  /** @type {Derived} */
918
918
  e
919
- ), Ce(e, (e.f & he) === 0 ? fe : ot)), e.wv = $i(), Di(e, Ne), D !== null && (D.f & fe) !== 0 && (D.f & (Fe | lt)) === 0 && (_e === null ? Io([e]) : _e.push(e));
919
+ ), Ae(e, (e.f & he) === 0 ? fe : ot)), e.wv = $i(), Di(e, Ne), D !== null && (D.f & fe) !== 0 && (D.f & (Fe | lt)) === 0 && (_e === null ? Io([e]) : _e.push(e));
920
920
  }
921
921
  return t;
922
922
  }
@@ -925,11 +925,11 @@ function Di(e, t) {
925
925
  if (r !== null)
926
926
  for (var i = r.length, o = 0; o < i; o++) {
927
927
  var l = r[o], u = l.f;
928
- (u & Ne) === 0 && (Ce(l, t), (u & (fe | he)) !== 0 && ((u & Ee) !== 0 ? Di(
928
+ (u & Ne) === 0 && (Ae(l, t), (u & (fe | he)) !== 0 && ((u & Ce) !== 0 ? Di(
929
929
  /** @type {Derived} */
930
930
  l,
931
931
  ot
932
- ) : _r(
932
+ ) : mr(
933
933
  /** @type {Effect} */
934
934
  l
935
935
  )));
@@ -1030,7 +1030,7 @@ function Oo(e, t, r, i = r) {
1030
1030
  const Mi = /* @__PURE__ */ new Set(), Mr = /* @__PURE__ */ new Set();
1031
1031
  function Fo(e, t, r, i = {}) {
1032
1032
  function o(l) {
1033
- if (i.capture || Pt.call(t, l), !l.cancelBubble)
1033
+ if (i.capture || Ot.call(t, l), !l.cancelBubble)
1034
1034
  return Vi(() => r == null ? void 0 : r.call(this, l));
1035
1035
  }
1036
1036
  return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Jr(() => {
@@ -1049,7 +1049,7 @@ function Vo(e) {
1049
1049
  for (var r of Mr)
1050
1050
  r(e);
1051
1051
  }
1052
- function Pt(e) {
1052
+ function Ot(e) {
1053
1053
  var z;
1054
1054
  var t = this, r = (
1055
1055
  /** @type {Node} */
@@ -1072,7 +1072,7 @@ function Pt(e) {
1072
1072
  }
1073
1073
  if (l = /** @type {Element} */
1074
1074
  o[u] || e.target, l !== t) {
1075
- Vt(e, "currentTarget", {
1075
+ Mt(e, "currentTarget", {
1076
1076
  configurable: !0,
1077
1077
  get() {
1078
1078
  return l || r;
@@ -1081,33 +1081,33 @@ function Pt(e) {
1081
1081
  var b = N, v = D;
1082
1082
  De(null), We(null);
1083
1083
  try {
1084
- for (var _, w = []; l !== null; ) {
1084
+ for (var m, w = []; l !== null; ) {
1085
1085
  var S = l.assignedSlot || l.parentNode || /** @type {any} */
1086
1086
  l.host || null;
1087
1087
  try {
1088
- var C = l["__" + i];
1089
- if (C != null && (!/** @type {any} */
1088
+ var E = l["__" + i];
1089
+ if (E != null && (!/** @type {any} */
1090
1090
  l.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1091
1091
  // -> the target could not have been disabled because it emits the event in the first place
1092
1092
  e.target === l))
1093
- if (ni(C)) {
1094
- var [M, ...ce] = C;
1095
- M.apply(l, [e, ...ce]);
1093
+ if (ni(E)) {
1094
+ var [q, ...ce] = E;
1095
+ q.apply(l, [e, ...ce]);
1096
1096
  } else
1097
- C.call(l, e);
1097
+ E.call(l, e);
1098
1098
  } catch (te) {
1099
- _ ? w.push(te) : _ = te;
1099
+ m ? w.push(te) : m = te;
1100
1100
  }
1101
1101
  if (e.cancelBubble || S === t || S === null)
1102
1102
  break;
1103
1103
  l = S;
1104
1104
  }
1105
- if (_) {
1105
+ if (m) {
1106
1106
  for (let te of w)
1107
1107
  queueMicrotask(() => {
1108
1108
  throw te;
1109
1109
  });
1110
- throw _;
1110
+ throw m;
1111
1111
  }
1112
1112
  } finally {
1113
1113
  e.__root = t, delete e.currentTarget, De(b), We(v);
@@ -1126,7 +1126,7 @@ function Te(e, t) {
1126
1126
  r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
1127
1127
  }
1128
1128
  // @__NO_SIDE_EFFECTS__
1129
- function Ae(e, t) {
1129
+ function Ie(e, t) {
1130
1130
  var r = (t & jl) !== 0, i = (t & Hl) !== 0, o, l = !e.startsWith("<!>");
1131
1131
  return () => {
1132
1132
  if (V)
@@ -1152,7 +1152,7 @@ function Ae(e, t) {
1152
1152
  };
1153
1153
  }
1154
1154
  // @__NO_SIDE_EFFECTS__
1155
- function mr(e, t, r = "svg") {
1155
+ function br(e, t, r = "svg") {
1156
1156
  var i = !e.startsWith("<!>"), o = `<${r}>${i ? e : "<!>" + e}</${r}>`, l;
1157
1157
  return () => {
1158
1158
  if (V)
@@ -1175,10 +1175,10 @@ function mr(e, t, r = "svg") {
1175
1175
  return Te(c, c), c;
1176
1176
  };
1177
1177
  }
1178
- function zt() {
1178
+ function Xt() {
1179
1179
  if (V)
1180
1180
  return Te(F, null), F;
1181
- var e = document.createDocumentFragment(), t = document.createComment(""), r = vr();
1181
+ var e = document.createDocumentFragment(), t = document.createComment(""), r = hr();
1182
1182
  return e.append(t, r), Te(t, r), e;
1183
1183
  }
1184
1184
  function U(e, t) {
@@ -1218,7 +1218,7 @@ function qo(e, t) {
1218
1218
  const u = Ui(e, { ...t, anchor: l });
1219
1219
  if (F === null || F.nodeType !== 8 || /** @type {Comment} */
1220
1220
  F.data !== ti)
1221
- throw dr(), pt;
1221
+ throw vr(), pt;
1222
1222
  return yt(!1), /** @type {Exports} */
1223
1223
  u;
1224
1224
  } catch (u) {
@@ -1233,28 +1233,28 @@ const mt = /* @__PURE__ */ new Map();
1233
1233
  function Ui(e, { target: t, anchor: r, props: i = {}, events: o, context: l, intro: u = !0 }) {
1234
1234
  Pr();
1235
1235
  var s = /* @__PURE__ */ new Set(), c = (v) => {
1236
- for (var _ = 0; _ < v.length; _++) {
1237
- var w = v[_];
1236
+ for (var m = 0; m < v.length; m++) {
1237
+ var w = v[m];
1238
1238
  if (!s.has(w)) {
1239
1239
  s.add(w);
1240
1240
  var S = Lo(w);
1241
- t.addEventListener(w, Pt, { passive: S });
1242
- var C = mt.get(w);
1243
- C === void 0 ? (document.addEventListener(w, Pt, { passive: S }), mt.set(w, 1)) : mt.set(w, C + 1);
1241
+ t.addEventListener(w, Ot, { passive: S });
1242
+ var E = mt.get(w);
1243
+ E === void 0 ? (document.addEventListener(w, Ot, { passive: S }), mt.set(w, 1)) : mt.set(w, E + 1);
1244
1244
  }
1245
1245
  }
1246
1246
  };
1247
1247
  c(Zl(Mi)), Mr.add(c);
1248
1248
  var d = void 0, b = yo(() => {
1249
- var v = r ?? t.appendChild(vr());
1249
+ var v = r ?? t.appendChild(hr());
1250
1250
  return Fr(() => {
1251
1251
  if (l) {
1252
1252
  Li({});
1253
- var _ = (
1253
+ var m = (
1254
1254
  /** @type {ComponentContext} */
1255
1255
  le
1256
1256
  );
1257
- _.c = l;
1257
+ m.c = l;
1258
1258
  }
1259
1259
  o && (i.$$events = o), V && Te(
1260
1260
  /** @type {TemplateNode} */
@@ -1263,13 +1263,13 @@ function Ui(e, { target: t, anchor: r, props: i = {}, events: o, context: l, int
1263
1263
  ), d = e(v, i) || {}, V && (D.nodes_end = F), l && Pi();
1264
1264
  }), () => {
1265
1265
  var S;
1266
- for (var _ of s) {
1267
- t.removeEventListener(_, Pt);
1266
+ for (var m of s) {
1267
+ t.removeEventListener(m, Ot);
1268
1268
  var w = (
1269
1269
  /** @type {number} */
1270
- mt.get(_)
1270
+ mt.get(m)
1271
1271
  );
1272
- --w === 0 ? (document.removeEventListener(_, Pt), mt.delete(_)) : mt.set(_, w);
1272
+ --w === 0 ? (document.removeEventListener(m, Ot), mt.delete(m)) : mt.set(m, w);
1273
1273
  }
1274
1274
  Mr.delete(c), v !== r && ((S = v.parentNode) == null || S.removeChild(v));
1275
1275
  };
@@ -1284,21 +1284,21 @@ function Uo(e, t) {
1284
1284
  function K(e, t, [r, i] = [0, 0]) {
1285
1285
  V && r === 0 && Ct();
1286
1286
  var o = e, l = null, u = null, s = ue, c = r > 0 ? Hr : 0, d = !1;
1287
- const b = (_, w = !0) => {
1288
- d = !0, v(w, _);
1289
- }, v = (_, w) => {
1290
- if (s === (s = _)) return;
1287
+ const b = (m, w = !0) => {
1288
+ d = !0, v(w, m);
1289
+ }, v = (m, w) => {
1290
+ if (s === (s = m)) return;
1291
1291
  let S = !1;
1292
1292
  if (V && i !== -1) {
1293
1293
  if (r === 0) {
1294
- const M = (
1294
+ const q = (
1295
1295
  /** @type {Comment} */
1296
1296
  o.data
1297
1297
  );
1298
- M === Br ? i = 0 : M === ei ? i = 1 / 0 : (i = parseInt(M.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
1298
+ q === Br ? i = 0 : q === ei ? i = 1 / 0 : (i = parseInt(q.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
1299
1299
  }
1300
- const C = i > r;
1301
- !!s === C && (o = fo(), Ge(o), yt(!1), S = !0, i = -1);
1300
+ const E = i > r;
1301
+ !!s === E && (o = fo(), Ge(o), yt(!1), S = !0, i = -1);
1302
1302
  }
1303
1303
  s ? (l ? Bn(l) : w && (l = Fr(() => w(o))), u && Vr(u, () => {
1304
1304
  u = null;
@@ -1333,7 +1333,7 @@ function tt(e, t, r = !1, i = !1, o = !1) {
1333
1333
  d = c, c = /** @type {TemplateNode} */
1334
1334
  /* @__PURE__ */ Je(c);
1335
1335
  if (c === null)
1336
- throw dr(), pt;
1336
+ throw vr(), pt;
1337
1337
  Te(F, d), l = Ge(c);
1338
1338
  return;
1339
1339
  }
@@ -1456,9 +1456,9 @@ function Jo(e, t, r = t) {
1456
1456
  });
1457
1457
  }
1458
1458
  function Kn(e, t) {
1459
- return e === t || (e == null ? void 0 : e[Ot]) === t;
1459
+ return e === t || (e == null ? void 0 : e[Ft]) === t;
1460
1460
  }
1461
- function Xt(e = {}, t, r, i) {
1461
+ function Qt(e = {}, t, r, i) {
1462
1462
  return Zr(() => {
1463
1463
  var o, l;
1464
1464
  return Wr(() => {
@@ -1529,11 +1529,11 @@ function zo(e, t = wt) {
1529
1529
  }
1530
1530
  return { set: o, update: l, subscribe: u };
1531
1531
  }
1532
- function tr(e) {
1532
+ function rr(e) {
1533
1533
  let t;
1534
1534
  return Hi(e, (r) => t = r)(), t;
1535
1535
  }
1536
- let Qt = !1, Ur = Symbol();
1536
+ let er = !1, Ur = Symbol();
1537
1537
  function Xo(e, t, r) {
1538
1538
  const i = r[t] ?? (r[t] = {
1539
1539
  store: null,
@@ -1546,10 +1546,10 @@ function Xo(e, t, r) {
1546
1546
  else {
1547
1547
  var o = !0;
1548
1548
  i.unsubscribe = Hi(e, (l) => {
1549
- o ? i.source.v = l : p(i.source, l);
1549
+ o ? i.source.v = l : y(i.source, l);
1550
1550
  }), o = !1;
1551
1551
  }
1552
- return e && Ur in r ? tr(e) : a(i.source);
1552
+ return e && Ur in r ? rr(e) : a(i.source);
1553
1553
  }
1554
1554
  function Qo() {
1555
1555
  const e = {};
@@ -1557,7 +1557,7 @@ function Qo() {
1557
1557
  Gr(() => {
1558
1558
  for (var r in e)
1559
1559
  e[r].unsubscribe();
1560
- Vt(e, Ur, {
1560
+ Mt(e, Ur, {
1561
1561
  enumerable: !1,
1562
1562
  value: !0
1563
1563
  });
@@ -1566,11 +1566,11 @@ function Qo() {
1566
1566
  return [e, t];
1567
1567
  }
1568
1568
  function ea(e) {
1569
- var t = Qt;
1569
+ var t = er;
1570
1570
  try {
1571
- return Qt = !1, [e(), Qt];
1571
+ return er = !1, [e(), er];
1572
1572
  } finally {
1573
- Qt = t;
1573
+ er = t;
1574
1574
  }
1575
1575
  }
1576
1576
  function zn(e) {
@@ -1585,39 +1585,39 @@ function k(e, t, r, i) {
1585
1585
  e[t]
1586
1586
  )) : d = /** @type {V} */
1587
1587
  e[t];
1588
- var b = Ot in e || si in e, v = u && (((st = rt(e, t)) == null ? void 0 : st.set) ?? (b && t in e && ((B) => e[t] = B))) || void 0, _ = (
1588
+ var b = Ft in e || si in e, v = u && (((st = rt(e, t)) == null ? void 0 : st.set) ?? (b && t in e && ((B) => e[t] = B))) || void 0, m = (
1589
1589
  /** @type {V} */
1590
1590
  i
1591
- ), w = !0, S = !1, C = () => (S = !0, w && (w = !1, s ? _ = it(
1591
+ ), w = !0, S = !1, E = () => (S = !0, w && (w = !1, s ? m = it(
1592
1592
  /** @type {() => V} */
1593
1593
  i
1594
- ) : _ = /** @type {V} */
1595
- i), _);
1596
- d === void 0 && i !== void 0 && (v && l && oo(), d = C(), v && v(d));
1597
- var M;
1598
- if (M = () => {
1594
+ ) : m = /** @type {V} */
1595
+ i), m);
1596
+ d === void 0 && i !== void 0 && (v && l && oo(), d = E(), v && v(d));
1597
+ var q;
1598
+ if (q = () => {
1599
1599
  var B = (
1600
1600
  /** @type {V} */
1601
1601
  e[t]
1602
1602
  );
1603
- return B === void 0 ? C() : (w = !0, S = !1, B);
1603
+ return B === void 0 ? E() : (w = !0, S = !1, B);
1604
1604
  }, (r & ql) === 0)
1605
- return M;
1605
+ return q;
1606
1606
  if (v) {
1607
1607
  var ce = e.$$legacy;
1608
1608
  return function(B, oe) {
1609
- return arguments.length > 0 ? ((!oe || ce || c) && v(oe ? M() : B), B) : M();
1609
+ return arguments.length > 0 ? ((!oe || ce || c) && v(oe ? q() : B), B) : q();
1610
1610
  };
1611
1611
  }
1612
- var z = !1, te = /* @__PURE__ */ zr(d), X = /* @__PURE__ */ hr(() => {
1613
- var B = M(), oe = a(te);
1612
+ var z = !1, te = /* @__PURE__ */ zr(d), X = /* @__PURE__ */ gr(() => {
1613
+ var B = q(), oe = a(te);
1614
1614
  return z ? (z = !1, oe) : te.v = B;
1615
1615
  });
1616
1616
  return u && a(X), o || (X.equals = Yr), function(B, oe) {
1617
1617
  if (arguments.length > 0) {
1618
1618
  const ye = oe ? a(X) : u ? He(B) : B;
1619
1619
  if (!X.equals(ye)) {
1620
- if (z = !0, p(te, ye), S && _ !== void 0 && (_ = ye), zn(X))
1620
+ if (z = !0, y(te, ye), S && m !== void 0 && (m = ye), zn(X))
1621
1621
  return B;
1622
1622
  it(() => a(X));
1623
1623
  }
@@ -1656,7 +1656,7 @@ class ra {
1656
1656
  return s === si ? !0 : (a(r.get(s) ?? i(s, Reflect.get(u, s))), Reflect.has(u, s));
1657
1657
  },
1658
1658
  set(u, s, c) {
1659
- return p(r.get(s) ?? i(s, c), c), Reflect.set(u, s, c);
1659
+ return y(r.get(s) ?? i(s, c), c), Reflect.set(u, s, c);
1660
1660
  }
1661
1661
  }
1662
1662
  );
@@ -1667,9 +1667,9 @@ class ra {
1667
1667
  context: t.context,
1668
1668
  intro: t.intro ?? !1,
1669
1669
  recover: t.recover
1670
- })), (!((l = t == null ? void 0 : t.props) != null && l.$$host) || t.sync === !1) && R(), Sr(this, Oe, o.$$events);
1670
+ })), (!((l = t == null ? void 0 : t.props) != null && l.$$host) || t.sync === !1) && I(), Sr(this, Oe, o.$$events);
1671
1671
  for (const u of Object.keys(se(this, me)))
1672
- u === "$set" || u === "$destroy" || u === "$on" || Vt(this, u, {
1672
+ u === "$set" || u === "$destroy" || u === "$on" || Mt(this, u, {
1673
1673
  get() {
1674
1674
  return se(this, me)[u];
1675
1675
  },
@@ -1720,25 +1720,25 @@ typeof HTMLElement == "function" && (Yi = class extends HTMLElement {
1720
1720
  constructor(t, r, i) {
1721
1721
  super();
1722
1722
  /** The Svelte component constructor */
1723
- we(this, "$$ctor");
1723
+ Ee(this, "$$ctor");
1724
1724
  /** Slots */
1725
- we(this, "$$s");
1725
+ Ee(this, "$$s");
1726
1726
  /** @type {any} The Svelte component instance */
1727
- we(this, "$$c");
1727
+ Ee(this, "$$c");
1728
1728
  /** Whether or not the custom element is connected */
1729
- we(this, "$$cn", !1);
1729
+ Ee(this, "$$cn", !1);
1730
1730
  /** @type {Record<string, any>} Component props data */
1731
- we(this, "$$d", {});
1731
+ Ee(this, "$$d", {});
1732
1732
  /** `true` if currently in the process of reflecting component props back to attributes */
1733
- we(this, "$$r", !1);
1733
+ Ee(this, "$$r", !1);
1734
1734
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
1735
- we(this, "$$p_d", {});
1735
+ Ee(this, "$$p_d", {});
1736
1736
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
1737
- we(this, "$$l", {});
1737
+ Ee(this, "$$l", {});
1738
1738
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
1739
- we(this, "$$l_u", /* @__PURE__ */ new Map());
1739
+ Ee(this, "$$l_u", /* @__PURE__ */ new Map());
1740
1740
  /** @type {any} The managed render effect for reflecting attributes */
1741
- we(this, "$$me");
1741
+ Ee(this, "$$me");
1742
1742
  this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
1743
1743
  }
1744
1744
  /**
@@ -1779,7 +1779,7 @@ typeof HTMLElement == "function" && (Yi = class extends HTMLElement {
1779
1779
  o in i && (o === "default" && !this.$$d.children ? (this.$$d.children = t(o), r.default = !0) : r[o] = t(o));
1780
1780
  for (const o of this.attributes) {
1781
1781
  const l = this.$$g_p(o.name);
1782
- l in this.$$d || (this.$$d[l] = rr(l, o.value, this.$$p_d, "toProp"));
1782
+ l in this.$$d || (this.$$d[l] = nr(l, o.value, this.$$p_d, "toProp"));
1783
1783
  }
1784
1784
  for (const o in this.$$p_d)
1785
1785
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
@@ -1795,10 +1795,10 @@ typeof HTMLElement == "function" && (Yi = class extends HTMLElement {
1795
1795
  Wr(() => {
1796
1796
  var o;
1797
1797
  this.$$r = !0;
1798
- for (const l of nr(this.$$c)) {
1798
+ for (const l of ir(this.$$c)) {
1799
1799
  if (!((o = this.$$p_d[l]) != null && o.reflect)) continue;
1800
1800
  this.$$d[l] = this.$$c[l];
1801
- const u = rr(
1801
+ const u = nr(
1802
1802
  l,
1803
1803
  this.$$d[l],
1804
1804
  this.$$p_d,
@@ -1826,7 +1826,7 @@ typeof HTMLElement == "function" && (Yi = class extends HTMLElement {
1826
1826
  */
1827
1827
  attributeChangedCallback(t, r, i) {
1828
1828
  var o;
1829
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = rr(t, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
1829
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = nr(t, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
1830
1830
  }
1831
1831
  disconnectedCallback() {
1832
1832
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -1837,12 +1837,12 @@ typeof HTMLElement == "function" && (Yi = class extends HTMLElement {
1837
1837
  * @param {string} attribute_name
1838
1838
  */
1839
1839
  $$g_p(t) {
1840
- return nr(this.$$p_d).find(
1840
+ return ir(this.$$p_d).find(
1841
1841
  (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
1842
1842
  ) || t;
1843
1843
  }
1844
1844
  });
1845
- function rr(e, t, r, i) {
1845
+ function nr(e, t, r, i) {
1846
1846
  var l;
1847
1847
  const o = (l = r[e]) == null ? void 0 : l.type;
1848
1848
  if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
@@ -1888,19 +1888,19 @@ function ia(e, t, r, i, o, l) {
1888
1888
  super(e, r, o), this.$$p_d = t;
1889
1889
  }
1890
1890
  static get observedAttributes() {
1891
- return nr(t).map(
1891
+ return ir(t).map(
1892
1892
  (s) => (t[s].attribute || s).toLowerCase()
1893
1893
  );
1894
1894
  }
1895
1895
  };
1896
- return nr(t).forEach((s) => {
1897
- Vt(u.prototype, s, {
1896
+ return ir(t).forEach((s) => {
1897
+ Mt(u.prototype, s, {
1898
1898
  get() {
1899
1899
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
1900
1900
  },
1901
1901
  set(c) {
1902
1902
  var v;
1903
- c = rr(s, c, t), this.$$d[s] = c;
1903
+ c = nr(s, c, t), this.$$d[s] = c;
1904
1904
  var d = this.$$c;
1905
1905
  if (d) {
1906
1906
  var b = (v = rt(d, s)) == null ? void 0 : v.get;
@@ -1909,7 +1909,7 @@ function ia(e, t, r, i, o, l) {
1909
1909
  }
1910
1910
  });
1911
1911
  }), i.forEach((s) => {
1912
- Vt(u.prototype, s, {
1912
+ Mt(u.prototype, s, {
1913
1913
  get() {
1914
1914
  var c;
1915
1915
  return (c = this.$$c) == null ? void 0 : c[s];
@@ -2028,14 +2028,14 @@ async function fa(e, t = "", r = 1e6, i = 0) {
2028
2028
  controller: l
2029
2029
  };
2030
2030
  }
2031
- var A = /* @__PURE__ */ ((e) => (e.CODE = "code", e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(A || {}), ee = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.READY = "ready", e))(ee || {});
2031
+ var C = /* @__PURE__ */ ((e) => (e.CODE = "code", e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(C || {}), ee = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.READY = "ready", e))(ee || {});
2032
2032
  globalThis.altchaPlugins = globalThis.altchaPlugins || [];
2033
2033
  globalThis.altchaI18n = globalThis.altchaI18n || {
2034
- get: (e) => tr(globalThis.altchaI18n.store)[e],
2034
+ get: (e) => rr(globalThis.altchaI18n.store)[e],
2035
2035
  set: (e, t) => {
2036
- Object.assign(tr(globalThis.altchaI18n.store), {
2036
+ Object.assign(rr(globalThis.altchaI18n.store), {
2037
2037
  [e]: t
2038
- }), globalThis.altchaI18n.store.set(tr(globalThis.altchaI18n.store));
2038
+ }), globalThis.altchaI18n.store.set(rr(globalThis.altchaI18n.store));
2039
2039
  },
2040
2040
  store: zo({})
2041
2041
  };
@@ -2073,41 +2073,41 @@ function va(e, t) {
2073
2073
  function ha(e, t, r, i, o, l, u, s) {
2074
2074
  var c;
2075
2075
  [
2076
- A.UNVERIFIED,
2077
- A.ERROR,
2078
- A.EXPIRED,
2079
- A.CODE
2080
- ].includes(a(t)) ? r() !== !1 && ((c = a(i)) == null ? void 0 : c.reportValidity()) === !1 ? p(o, !1) : l() ? u() : s() : p(o, !0);
2076
+ C.UNVERIFIED,
2077
+ C.ERROR,
2078
+ C.EXPIRED,
2079
+ C.CODE
2080
+ ].includes(a(t)) ? r() !== !1 && ((c = a(i)) == null ? void 0 : c.reportValidity()) === !1 ? y(o, !1) : l() ? u() : s() : y(o, !0);
2081
2081
  }
2082
- var ga = /* @__PURE__ */ mr('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'), _a = /* @__PURE__ */ Ae('<input type="hidden">'), ma = /* @__PURE__ */ Ae('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>'), ba = /* @__PURE__ */ mr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'), ya = /* @__PURE__ */ mr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'), pa = /* @__PURE__ */ mr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'), wa = /* @__PURE__ */ Ae('<button type="button" class="altcha-code-challenge-audio"><!></button>'), Ea = /* @__PURE__ */ Ae("<audio hidden autoplay><source></audio>"), Ca = /* @__PURE__ */ Ae('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'), Aa = /* @__PURE__ */ Ae("<div><!></div>"), Ia = /* @__PURE__ */ Ae("<div><!></div>"), Ra = /* @__PURE__ */ Ae('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), ka = /* @__PURE__ */ Ae('<div class="altcha-footer"><div><!></div></div>'), $a = /* @__PURE__ */ Ae('<div class="altcha-anchor-arrow"></div>'), xa = /* @__PURE__ */ Ae('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>', 1);
2082
+ var ga = /* @__PURE__ */ br('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'), _a = /* @__PURE__ */ Ie('<input type="hidden">'), ma = /* @__PURE__ */ Ie('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>'), ba = /* @__PURE__ */ br('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'), ya = /* @__PURE__ */ br('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'), pa = /* @__PURE__ */ br('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'), wa = /* @__PURE__ */ Ie('<button type="button" class="altcha-code-challenge-audio"><!></button>'), Ea = /* @__PURE__ */ Ie("<audio hidden autoplay><source></audio>"), Ca = /* @__PURE__ */ Ie('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'), Aa = /* @__PURE__ */ Ie("<div><!></div>"), Ia = /* @__PURE__ */ Ie("<div><!></div>"), Ra = /* @__PURE__ */ Ie('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), ka = /* @__PURE__ */ Ie('<div class="altcha-footer"><div><!></div></div>'), $a = /* @__PURE__ */ Ie('<div class="altcha-anchor-arrow"></div>'), xa = /* @__PURE__ */ Ie('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>', 1);
2083
2083
  function Sa(e, t) {
2084
2084
  var Pn, On;
2085
2085
  Li(t, !0);
2086
2086
  const [r, i] = Qo(), o = () => Xo(Ji, "$altchaI18nStore", r);
2087
- let l = k(t, "auto", 7, void 0), u = k(t, "blockspam", 7, void 0), s = k(t, "challengeurl", 7, void 0), c = k(t, "challengejson", 7, void 0), d = k(t, "credentials", 7, void 0), b = k(t, "customfetch", 7, void 0), v = k(t, "debug", 7, !1), _ = k(t, "delay", 7, 0), w = k(t, "disableautofocus", 7, !1), S = k(t, "expire", 7, void 0), C = k(t, "floating", 7, void 0), M = k(t, "floatinganchor", 7, void 0), ce = k(t, "floatingoffset", 7, void 0), z = k(t, "floatingpersist", 7, !1), te = k(t, "hidefooter", 7, !1), X = k(t, "hidelogo", 7, !1), st = k(t, "id", 7, void 0), B = k(t, "language", 7, void 0), oe = k(t, "name", 7, "altcha"), ye = k(t, "maxnumber", 7, 1e6), At = k(t, "mockerror", 7, !1), Ve = k(t, "obfuscated", 7, void 0), Ie = k(t, "overlay", 7, void 0), It = k(t, "overlaycontent", 7, void 0), Ht = k(t, "plugins", 7, void 0), Rt = k(t, "refetchonexpire", 7, !0), Ke = k(t, "sentinel", 7, void 0), Re = k(t, "spamfilter", 7, !1), ut = k(t, "strings", 7, void 0), ge = k(t, "test", 7, !1), re = k(t, "verifyurl", 7, void 0), ft = k(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), kt = k(t, "workerurl", 7, void 0);
2087
+ let l = k(t, "auto", 7, void 0), u = k(t, "blockspam", 7, void 0), s = k(t, "challengeurl", 7, void 0), c = k(t, "challengejson", 7, void 0), d = k(t, "credentials", 7, void 0), b = k(t, "customfetch", 7, void 0), v = k(t, "debug", 7, !1), m = k(t, "delay", 7, 0), w = k(t, "disableautofocus", 7, !1), S = k(t, "expire", 7, void 0), E = k(t, "floating", 7, void 0), q = k(t, "floatinganchor", 7, void 0), ce = k(t, "floatingoffset", 7, void 0), z = k(t, "floatingpersist", 7, !1), te = k(t, "hidefooter", 7, !1), X = k(t, "hidelogo", 7, !1), st = k(t, "id", 7, void 0), B = k(t, "language", 7, void 0), oe = k(t, "name", 7, "altcha"), ye = k(t, "maxnumber", 7, 1e6), At = k(t, "mockerror", 7, !1), Ve = k(t, "obfuscated", 7, void 0), pe = k(t, "overlay", 7, void 0), It = k(t, "overlaycontent", 7, void 0), Yt = k(t, "plugins", 7, void 0), Rt = k(t, "refetchonexpire", 7, !0), Ke = k(t, "sentinel", 7, void 0), Re = k(t, "spamfilter", 7, !1), ut = k(t, "strings", 7, void 0), ge = k(t, "test", 7, !1), re = k(t, "verifyurl", 7, void 0), ft = k(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), kt = k(t, "workerurl", 7, void 0);
2088
2088
  const { altchaI18n: Wi } = globalThis, Ji = Wi.store, Qr = ["SHA-256", "SHA-384", "SHA-512"], Ki = "https://altcha.org/", Me = (n, f) => {
2089
2089
  t.$$host.dispatchEvent(new CustomEvent(n, { detail: f }));
2090
- }, en = (On = (Pn = document.documentElement.lang) == null ? void 0 : Pn.split("-")) == null ? void 0 : On[0], br = /* @__PURE__ */ Lt(() => {
2090
+ }, en = (On = (Pn = document.documentElement.lang) == null ? void 0 : Pn.split("-")) == null ? void 0 : On[0], yr = /* @__PURE__ */ Pt(() => {
2091
2091
  var n;
2092
2092
  return s() && new URL(s(), location.origin).host.endsWith(".altcha.org") && !!((n = s()) != null && n.includes("apiKey=ckey_"));
2093
- }), yr = /* @__PURE__ */ Lt(() => c() ? _n(c()) : void 0), zi = /* @__PURE__ */ Lt(() => ut() ? _n(ut()) : {}), P = /* @__PURE__ */ Lt(() => ({
2093
+ }), pr = /* @__PURE__ */ Pt(() => c() ? _n(c()) : void 0), zi = /* @__PURE__ */ Pt(() => ut() ? _n(ut()) : {}), P = /* @__PURE__ */ Pt(() => ({
2094
2094
  ...ln(o()),
2095
2095
  ...a(zi)
2096
- })), tn = /* @__PURE__ */ Lt(() => `${st() || oe()}_checkbox_${Math.round(Math.random() * 1e8)}`);
2097
- let $t = /* @__PURE__ */ O(!1), H = /* @__PURE__ */ O(null), $ = /* @__PURE__ */ O(He(A.UNVERIFIED)), q = /* @__PURE__ */ O(void 0), xt = /* @__PURE__ */ O(null), qe = /* @__PURE__ */ O(null), de = /* @__PURE__ */ O(null), pr = /* @__PURE__ */ O(null), ct = /* @__PURE__ */ O(null), L = /* @__PURE__ */ O(null), dt = /* @__PURE__ */ O(null), ze = /* @__PURE__ */ O(null), ke = null, Y = /* @__PURE__ */ O(null), Xe = /* @__PURE__ */ O(!1), Ue = [], wr = /* @__PURE__ */ O(!1), Le = /* @__PURE__ */ O(null);
2096
+ })), tn = /* @__PURE__ */ Pt(() => `${st() || oe()}_checkbox_${Math.round(Math.random() * 1e8)}`);
2097
+ let $t = /* @__PURE__ */ O(!1), H = /* @__PURE__ */ O(null), $ = /* @__PURE__ */ O(He(C.UNVERIFIED)), M = /* @__PURE__ */ O(void 0), xt = /* @__PURE__ */ O(null), qe = /* @__PURE__ */ O(null), de = /* @__PURE__ */ O(null), wr = /* @__PURE__ */ O(null), ct = /* @__PURE__ */ O(null), L = /* @__PURE__ */ O(null), dt = /* @__PURE__ */ O(null), ze = /* @__PURE__ */ O(null), ke = null, Y = /* @__PURE__ */ O(null), Xe = /* @__PURE__ */ O(!1), Ue = [], Er = /* @__PURE__ */ O(!1), Le = /* @__PURE__ */ O(null);
2098
2098
  Or(() => {
2099
2099
  fl(a(ze));
2100
2100
  }), Or(() => {
2101
2101
  cl(a($));
2102
2102
  }), Ko(() => {
2103
- Xi(), p(dt, null), a(L) && (a(L).removeEventListener("submit", cn), a(L).removeEventListener("reset", dn), a(L).removeEventListener("focusin", fn), p(L, null)), ke && (clearTimeout(ke), ke = null), document.removeEventListener("click", sn), document.removeEventListener("scroll", un), window.removeEventListener("resize", gn);
2103
+ Xi(), y(dt, null), a(L) && (a(L).removeEventListener("submit", cn), a(L).removeEventListener("reset", dn), a(L).removeEventListener("focusin", fn), y(L, null)), ke && (clearTimeout(ke), ke = null), document.removeEventListener("click", sn), document.removeEventListener("scroll", un), window.removeEventListener("resize", gn);
2104
2104
  }), ji(() => {
2105
2105
  var n;
2106
- x("mounted", "2.1.0-beta.2"), x("workers", ft()), rl(), x("plugins", Ue.length ? Ue.map((f) => f.constructor.pluginName).join(", ") : "none"), ge() && x("using test mode"), S() && Cr(S()), l() !== void 0 && x("auto", l()), C() !== void 0 && bn(C()), p(L, (n = a(q)) == null ? void 0 : n.closest("form"), !0), a(L) && (a(L).addEventListener("submit", cn, { capture: !0 }), a(L).addEventListener("reset", dn), (l() === "onfocus" || z() === "focus") && a(L).addEventListener("focusin", fn)), Ie() && yn(!0), l() === "onload" && (Ve() ? St() : Pe()), a(br) && (te() || X()) && x("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
2106
+ x("mounted", "2.1.0"), x("workers", ft()), rl(), x("plugins", Ue.length ? Ue.map((f) => f.constructor.pluginName).join(", ") : "none"), ge() && x("using test mode"), S() && Ar(S()), l() !== void 0 && x("auto", l()), E() !== void 0 && bn(E()), y(L, (n = a(M)) == null ? void 0 : n.closest("form"), !0), a(L) && (a(L).addEventListener("submit", cn, { capture: !0 }), a(L).addEventListener("reset", dn), (l() === "onfocus" || z() === "focus") && a(L).addEventListener("focusin", fn)), pe() && yn(!0), l() === "onload" && (Ve() ? St() : Pe()), a(yr) && (te() || X()) && x("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
2107
2107
  Me("load");
2108
2108
  });
2109
2109
  });
2110
- function Yt(n, f) {
2110
+ function Gt(n, f) {
2111
2111
  return btoa(JSON.stringify({
2112
2112
  algorithm: n.algorithm,
2113
2113
  challenge: n.challenge,
@@ -2123,20 +2123,20 @@ function Sa(e, t) {
2123
2123
  n.destroy();
2124
2124
  }
2125
2125
  function rn() {
2126
- s() && Rt() && a($) === A.VERIFIED ? Pe() : Qe(A.EXPIRED, a(P).expired);
2126
+ s() && Rt() && a($) === C.VERIFIED ? Pe() : Qe(C.EXPIRED, a(P).expired);
2127
2127
  }
2128
2128
  async function Qi() {
2129
2129
  var n;
2130
2130
  if (At())
2131
2131
  throw x("mocking error"), new Error("Mocked error.");
2132
- if (a(yr))
2133
- return x("using provided json data"), a(yr);
2132
+ if (a(pr))
2133
+ return x("using provided json data"), a(pr);
2134
2134
  if (ge())
2135
2135
  return x("generating test challenge", { test: ge() }), oa(typeof ge() != "boolean" ? +ge() : void 0);
2136
2136
  {
2137
2137
  if (!s() && a(L)) {
2138
- const I = a(L).getAttribute("action");
2139
- I != null && I.includes("/form/") && s(I + "/altcha");
2138
+ const R = a(L).getAttribute("action");
2139
+ R != null && R.includes("/form/") && s(R + "/altcha");
2140
2140
  }
2141
2141
  if (!s())
2142
2142
  throw new Error("Attribute challengeurl not set.");
@@ -2149,25 +2149,25 @@ function Sa(e, t) {
2149
2149
  throw new Error("Custom fetch function did not return a response.");
2150
2150
  if (h.status !== 200)
2151
2151
  throw new Error(`Server responded with ${h.status}.`);
2152
- const m = h.headers.get("X-Altcha-Config"), g = await h.json(), E = new URLSearchParams((n = g.salt.split("?")) == null ? void 0 : n[1]), y = E.get("expires") || E.get("expire");
2153
- if (y) {
2154
- const I = new Date(+y * 1e3), j = isNaN(I.getTime()) ? 0 : I.getTime() - Date.now();
2155
- j > 0 && Cr(j);
2152
+ const _ = h.headers.get("X-Altcha-Config"), g = await h.json(), A = new URLSearchParams((n = g.salt.split("?")) == null ? void 0 : n[1]), p = A.get("expires") || A.get("expire");
2153
+ if (p) {
2154
+ const R = new Date(+p * 1e3), j = isNaN(R.getTime()) ? 0 : R.getTime() - Date.now();
2155
+ j > 0 && Ar(j);
2156
2156
  }
2157
- if (m)
2157
+ if (_)
2158
2158
  try {
2159
- const I = JSON.parse(m);
2160
- I && typeof I == "object" && (I.verifyurl && !I.verifyurl.startsWith("fn:") && (I.verifyurl = an(I.verifyurl)), En(I));
2161
- } catch (I) {
2162
- x("unable to configure from X-Altcha-Config", I);
2159
+ const R = JSON.parse(_);
2160
+ R && typeof R == "object" && (R.verifyurl && !R.verifyurl.startsWith("fn:") && (R.verifyurl = an(R.verifyurl)), En(R));
2161
+ } catch (R) {
2162
+ x("unable to configure from X-Altcha-Config", R);
2163
2163
  }
2164
2164
  return g;
2165
2165
  }
2166
2166
  }
2167
2167
  function el(n) {
2168
- var h, m;
2168
+ var h, _;
2169
2169
  const f = (h = a(L)) == null ? void 0 : h.querySelector(typeof n == "string" ? `input[name="${n}"]` : 'input[type="email"]:not([data-no-spamfilter])');
2170
- return ((m = f == null ? void 0 : f.value) == null ? void 0 : m.slice(f.value.indexOf("@"))) || void 0;
2170
+ return ((_ = f == null ? void 0 : f.value) == null ? void 0 : _.slice(f.value.indexOf("@"))) || void 0;
2171
2171
  }
2172
2172
  function nn() {
2173
2173
  let n = fetch;
@@ -2184,11 +2184,11 @@ function Sa(e, t) {
2184
2184
  document.documentElement.lang || "",
2185
2185
  ...navigator.languages
2186
2186
  ]) {
2187
- const h = Object.keys(n).map((g) => g.toLowerCase()), m = f.reduce(
2188
- (g, E) => (E = E.toLowerCase(), g || (n[E] ? E : null) || h.find((y) => E.split("-")[0] === y.split("-")[0]) || null),
2187
+ const h = Object.keys(n).map((g) => g.toLowerCase()), _ = f.reduce(
2188
+ (g, A) => (A = A.toLowerCase(), g || (n[A] ? A : null) || h.find((p) => A.split("-")[0] === p.split("-")[0]) || null),
2189
2189
  null
2190
2190
  );
2191
- return n[m || "en"];
2191
+ return n[_ || "en"];
2192
2192
  }
2193
2193
  function tl() {
2194
2194
  return Re() === "ipAddress" ? {
@@ -2218,28 +2218,28 @@ function Sa(e, t) {
2218
2218
  function on(n) {
2219
2219
  var h;
2220
2220
  return [
2221
- ...((h = a(L)) == null ? void 0 : h.querySelectorAll(n != null && n.length ? n.map((m) => `input[name="${m}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
2221
+ ...((h = a(L)) == null ? void 0 : h.querySelectorAll(n != null && n.length ? n.map((_) => `input[name="${_}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
2222
2222
  ].reduce(
2223
- (m, g) => {
2224
- const E = g.name, y = g.value;
2225
- return E && y && (m[E] = /\n/.test(y) ? y.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
2226
- `) : y), m;
2223
+ (_, g) => {
2224
+ const A = g.name, p = g.value;
2225
+ return A && p && (_[A] = /\n/.test(p) ? p.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
2226
+ `) : p), _;
2227
2227
  },
2228
2228
  {}
2229
2229
  );
2230
2230
  }
2231
2231
  function an(n, f) {
2232
- const h = new URL(s() || location.origin), m = new URL(n, h);
2233
- if (m.search || (m.search = h.search), f)
2232
+ const h = new URL(s() || location.origin), _ = new URL(n, h);
2233
+ if (_.search || (_.search = h.search), f)
2234
2234
  for (const g in f)
2235
- f[g] !== void 0 && f[g] !== null && m.searchParams.set(g, f[g]);
2236
- return m.toString();
2235
+ f[g] !== void 0 && f[g] !== null && _.searchParams.set(g, f[g]);
2236
+ return _.toString();
2237
2237
  }
2238
2238
  function rl() {
2239
- const n = Ht() !== void 0 ? Ht().split(",") : void 0;
2239
+ const n = Yt() !== void 0 ? Yt().split(",") : void 0;
2240
2240
  for (const f of globalThis.altchaPlugins)
2241
2241
  (!n || n.includes(f.pluginName)) && Ue.push(new f({
2242
- el: a(q),
2242
+ el: a(M),
2243
2243
  clarify: St,
2244
2244
  dispatch: Me,
2245
2245
  getConfiguration: Cn,
@@ -2257,79 +2257,79 @@ function Sa(e, t) {
2257
2257
  (v() || n.some((f) => f instanceof Error)) && console[n[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${oe()}]`, ...n);
2258
2258
  }
2259
2259
  function nl() {
2260
- p(Y, ee.PAUSED, !0);
2260
+ y(Y, ee.PAUSED, !0);
2261
2261
  }
2262
2262
  function il(n) {
2263
- p(Y, ee.ERROR, !0);
2263
+ y(Y, ee.ERROR, !0);
2264
2264
  }
2265
2265
  function ll() {
2266
- p(Y, ee.READY, !0);
2266
+ y(Y, ee.READY, !0);
2267
2267
  }
2268
2268
  function ol() {
2269
- p(Y, ee.LOADING, !0);
2269
+ y(Y, ee.LOADING, !0);
2270
2270
  }
2271
2271
  function al() {
2272
- p(Y, ee.PLAYING, !0);
2272
+ y(Y, ee.PLAYING, !0);
2273
2273
  }
2274
2274
  function sl() {
2275
- p(Y, ee.PAUSED, !0);
2275
+ y(Y, ee.PAUSED, !0);
2276
2276
  }
2277
2277
  function ul(n) {
2278
2278
  var f;
2279
2279
  if (n.preventDefault(), n.stopPropagation(), a(H)) {
2280
- const h = new FormData(n.target), m = String(h.get("code"));
2280
+ const h = new FormData(n.target), _ = String(h.get("code"));
2281
2281
  if ((f = re()) != null && f.startsWith("fn:")) {
2282
2282
  const g = re().replace(/^fn:/, "");
2283
2283
  if (x(`calling ${g} function instead of verifyurl`), !(g in globalThis))
2284
2284
  throw new Error(`Global function "${g}" is undefined.`);
2285
2285
  return globalThis[g]({
2286
2286
  challenge: a(H).challenge,
2287
- code: m,
2287
+ code: _,
2288
2288
  solution: a(H).solution
2289
2289
  });
2290
2290
  }
2291
- p(Xe, !0), mn(Yt(a(H).challenge, a(H).solution), m).then(({ reason: g, verified: E }) => {
2292
- E ? (p(H, null), $e(A.VERIFIED), x("verified"), Nr().then(() => {
2293
- var y;
2294
- (y = a(pr)) == null || y.focus(), Me("verified", { payload: a(Le) }), l() === "onsubmit" ? Er(a(dt)) : Ie() && Gt();
2295
- })) : (Qe(), p(ze, g || "Verification failed", !0));
2291
+ y(Xe, !0), mn(Gt(a(H).challenge, a(H).solution), _).then(({ reason: g, verified: A }) => {
2292
+ A ? (y(H, null), $e(C.VERIFIED), x("verified"), Nr().then(() => {
2293
+ var p;
2294
+ (p = a(wr)) == null || p.focus(), Me("verified", { payload: a(Le) }), l() === "onsubmit" ? Cr(a(dt)) : pe() && Tt();
2295
+ })) : (Qe(), y(ze, g || "Verification failed", !0));
2296
2296
  }).catch((g) => {
2297
- p(H, null), $e(A.ERROR, g), x("sentinel verification failed:", g);
2297
+ y(H, null), $e(C.ERROR, g), x("sentinel verification failed:", g);
2298
2298
  }).finally(() => {
2299
- p(Xe, !1);
2299
+ y(Xe, !1);
2300
2300
  });
2301
2301
  }
2302
2302
  }
2303
2303
  function sn(n) {
2304
2304
  var h;
2305
2305
  const f = n.target;
2306
- C() && f && !a(q).contains(f) && (a($) === A.VERIFIED && z() === !1 || a($) === A.VERIFIED && z() === "focus" && !((h = a(L)) != null && h.matches(":focus-within")) || l() === "off" && a($) === A.UNVERIFIED) && Gt();
2306
+ E() && f && !a(M).contains(f) && (a($) === C.VERIFIED && z() === !1 || a($) === C.VERIFIED && z() === "focus" && !((h = a(L)) != null && h.matches(":focus-within")) || l() === "off" && a($) === C.UNVERIFIED) && Tt();
2307
2307
  }
2308
2308
  function un() {
2309
- C() && a($) !== A.UNVERIFIED && Tt();
2309
+ E() && a($) !== C.UNVERIFIED && Nt();
2310
2310
  }
2311
2311
  function fl(n) {
2312
2312
  for (const f of Ue)
2313
2313
  typeof f.onErrorChange == "function" && f.onErrorChange(a(ze));
2314
2314
  }
2315
2315
  function fn(n) {
2316
- a($) === A.UNVERIFIED ? Pe() : C() && z() === "focus" && a($) === A.VERIFIED && Ar();
2316
+ a($) === C.UNVERIFIED ? Pe() : E() && z() === "focus" && a($) === C.VERIFIED && Zt();
2317
2317
  }
2318
2318
  function cn(n) {
2319
- var m;
2319
+ var _;
2320
2320
  const f = n.target;
2321
- f != null && f.hasAttribute("data-code-challenge-form") || (p(dt, n.submitter, !0), a(L) && l() === "onsubmit" ? ((m = a(dt)) == null || m.blur(), a($) === A.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), Pe().then(() => {
2322
- Er(a(dt));
2323
- })) : a($) !== A.VERIFIED && (n.preventDefault(), n.stopPropagation(), a($) === A.VERIFYING && vn())) : a(L) && C() && l() === "off" && a($) === A.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), Ar()));
2321
+ f != null && f.hasAttribute("data-code-challenge-form") || (y(dt, n.submitter, !0), a(L) && l() === "onsubmit" ? ((_ = a(dt)) == null || _.blur(), a($) === C.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), Pe().then(() => {
2322
+ Cr(a(dt));
2323
+ })) : a($) !== C.VERIFIED && (n.preventDefault(), n.stopPropagation(), a($) === C.VERIFYING && vn())) : a(L) && E() && l() === "off" && a($) === C.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), Zt()));
2324
2324
  }
2325
2325
  function dn() {
2326
2326
  Qe();
2327
2327
  }
2328
2328
  function vn() {
2329
- a($) === A.VERIFYING && a(P).waitAlert && alert(a(P).waitAlert);
2329
+ a($) === C.VERIFYING && a(P).waitAlert && alert(a(P).waitAlert);
2330
2330
  }
2331
2331
  function hn() {
2332
- a(qe) ? a(qe).paused ? (a(qe).currentTime = 0, a(qe).play()) : a(qe).pause() : (p(wr, !0), requestAnimationFrame(() => {
2332
+ a(qe) ? a(qe).paused ? (a(qe).currentTime = 0, a(qe).play()) : a(qe).pause() : (y(Er, !0), requestAnimationFrame(() => {
2333
2333
  var n;
2334
2334
  (n = a(qe)) == null || n.play();
2335
2335
  }));
@@ -2337,12 +2337,12 @@ function Sa(e, t) {
2337
2337
  function cl(n) {
2338
2338
  for (const f of Ue)
2339
2339
  typeof f.onStateChange == "function" && f.onStateChange(a($));
2340
- C() && a($) !== A.UNVERIFIED && requestAnimationFrame(() => {
2341
- Tt();
2342
- }), p($t, a($) === A.VERIFIED), Ie() && a(de) && (a($) !== A.UNVERIFIED ? a(de).style.display = "flex" : a(de).style.display = "none");
2340
+ E() && a($) !== C.UNVERIFIED && requestAnimationFrame(() => {
2341
+ Nt();
2342
+ }), y($t, a($) === C.VERIFIED), pe() && a(de) && (a($) !== C.UNVERIFIED ? Zt() : Tt());
2343
2343
  }
2344
2344
  function gn() {
2345
- C() && Tt();
2345
+ E() && Nt();
2346
2346
  }
2347
2347
  function _n(n) {
2348
2348
  return JSON.parse(n);
@@ -2355,17 +2355,17 @@ function Sa(e, t) {
2355
2355
  if (Re() !== !1) {
2356
2356
  const {
2357
2357
  blockedCountries: g,
2358
- classifier: E,
2359
- disableRules: y,
2360
- email: I,
2358
+ classifier: A,
2359
+ disableRules: p,
2360
+ email: R,
2361
2361
  expectedLanguages: j,
2362
2362
  expectedCountries: Q,
2363
2363
  fields: ae,
2364
2364
  ipAddress: Be,
2365
2365
  text: Rr,
2366
- timeZone: Jt
2366
+ timeZone: Kt
2367
2367
  } = tl();
2368
- f.blockedCountries = g, f.classifier = E, f.disableRules = y, f.email = I === !1 ? void 0 : el(I), f.expectedCountries = Q, f.expectedLanguages = j || (en ? [en] : void 0), f.fields = ae === !1 ? void 0 : on(ae), f.ipAddress = Be === !1 ? void 0 : Be || "auto", f.text = Rr, f.timeZone = Jt === !1 ? void 0 : Jt || Xn();
2368
+ f.blockedCountries = g, f.classifier = A, f.disableRules = p, f.email = R === !1 ? void 0 : el(R), f.expectedCountries = Q, f.expectedLanguages = j || (en ? [en] : void 0), f.fields = ae === !1 ? void 0 : on(ae), f.ipAddress = Be === !1 ? void 0 : Be || "auto", f.text = Rr, f.timeZone = Kt === !1 ? void 0 : Kt || Xn();
2369
2369
  }
2370
2370
  const h = await nn()(re(), {
2371
2371
  body: JSON.stringify(f),
@@ -2376,8 +2376,8 @@ function Sa(e, t) {
2376
2376
  throw new Error("Custom fetch function did not return a response.");
2377
2377
  if (h.status !== 200)
2378
2378
  throw new Error(`Server responded with ${h.status}.`);
2379
- const m = await h.json();
2380
- if (m != null && m.payload && p(Le, m.payload, !0), Me("serververification", m), u() && m.classification === "BAD")
2379
+ const _ = await h.json();
2380
+ if (_ != null && _.payload && y(Le, _.payload, !0), Me("serververification", _), u() && _.classification === "BAD")
2381
2381
  throw new Error("SpamFilter returned negative classification.");
2382
2382
  }
2383
2383
  async function mn(n, f) {
@@ -2386,37 +2386,39 @@ function Sa(e, t) {
2386
2386
  x("requesting sentinel verification from", re());
2387
2387
  const h = { code: f, payload: n };
2388
2388
  Ke() && (h.fields = Ke().fields ? on() : void 0, h.timeZone = Ke().timeZone ? Xn() : void 0);
2389
- const m = await fetch(re(), {
2389
+ const _ = await fetch(re(), {
2390
2390
  body: JSON.stringify(h),
2391
2391
  headers: { "content-type": "application/json" },
2392
2392
  method: "POST"
2393
2393
  });
2394
- if (!m || !(m instanceof Response))
2394
+ if (!_ || !(_ instanceof Response))
2395
2395
  throw new Error("Fetch function did not return a response.");
2396
- if (m.status !== 200)
2397
- throw new Error(`Server responded with ${m.status}.`);
2398
- const g = await m.json();
2399
- return g != null && g.payload && p(Le, g.payload, !0), Me("sentinelverification", g), g;
2396
+ if (_.status !== 200)
2397
+ throw new Error(`Server responded with ${_.status}.`);
2398
+ const g = await _.json();
2399
+ return g != null && g.payload && y(Le, g.payload, !0), Me("sentinelverification", g), g;
2400
2400
  }
2401
- function Er(n) {
2401
+ function Cr(n) {
2402
2402
  var f;
2403
2403
  a(L) && "requestSubmit" in a(L) ? a(L).requestSubmit(n) : (f = a(L)) != null && f.reportValidity() && (n ? n.click() : a(L).submit());
2404
2404
  }
2405
- function Cr(n) {
2405
+ function Ar(n) {
2406
2406
  x("expire", n), ke && (clearTimeout(ke), ke = null), n < 1 ? rn() : ke = setTimeout(rn, n);
2407
2407
  }
2408
2408
  function bn(n) {
2409
- x("floating", n), C() !== n && (a(q).style.left = "", a(q).style.top = ""), C(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : C()), C() ? (l() || l("onsubmit"), document.addEventListener("scroll", un), document.addEventListener("click", sn), window.addEventListener("resize", gn)) : l() === "onsubmit" && l(void 0);
2409
+ x("floating", n), E() !== n && (a(M).style.left = "", a(M).style.top = ""), E(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : E()), E() ? (l() || l("onsubmit"), document.addEventListener("scroll", un), document.addEventListener("click", sn), window.addEventListener("resize", gn)) : l() === "onsubmit" && l(void 0);
2410
2410
  }
2411
2411
  function yn(n) {
2412
- var f, h, m, g;
2413
- if (a(de) && ((h = (f = a(q).parentElement) == null ? void 0 : f.parentElement) == null || h.append(a(q).parentElement), document.body.removeChild(a(de))), n && (l() || l("onsubmit"), (g = (m = a(q)) == null ? void 0 : m.parentElement) != null && g.parentElement)) {
2414
- p(de, document.createElement("div"), !0), a(q).parentElement.parentElement.appendChild(a(de));
2415
- const E = document.createElement("div"), y = document.createElement("button");
2416
- y.type = "button", y.innerHTML = "&times;", y.addEventListener("click", (I) => {
2417
- I.preventDefault(), Qe();
2418
- }), a(de).classList.add("altcha-overlay-backdrop"), y.classList.add("altcha-overlay-close-button"), E.classList.add("altcha-overlay"), a(de).append(E), E.append(y), It() && E.append(...document.querySelectorAll(It())), E.append(a(q).parentElement);
2419
- }
2412
+ var f, h;
2413
+ if (x("overlay", n), pe(n), n) {
2414
+ if (l() || l("onsubmit"), a(de) && a(M).parentElement && a(de).replaceWith(a(M).parentElement), (h = (f = a(M)) == null ? void 0 : f.parentElement) != null && h.parentElement) {
2415
+ y(de, document.createElement("div"), !0), a(M).parentElement.parentElement.appendChild(a(de));
2416
+ const _ = document.createElement("div"), g = document.createElement("button");
2417
+ g.type = "button", g.innerHTML = "&times;", g.addEventListener("click", (A) => {
2418
+ A.preventDefault(), Qe();
2419
+ }), a(de).classList.add("altcha-overlay-backdrop"), g.classList.add("altcha-overlay-close-button"), _.classList.add("altcha-overlay"), a(de).append(_), _.append(g), It() && _.append(...document.querySelectorAll(It())), _.append(a(M).parentElement);
2420
+ }
2421
+ } else a(de) && a(M).parentElement && (a(de).replaceWith(a(M).parentElement), a(M).style.display = "block");
2420
2422
  }
2421
2423
  function pn(n) {
2422
2424
  if (!n.algorithm)
@@ -2451,19 +2453,19 @@ function Sa(e, t) {
2451
2453
  };
2452
2454
  }
2453
2455
  async function vl(n, f = typeof ge() == "number" ? ge() : n.maxNumber || n.maxnumber || ye(), h = Math.ceil(ft())) {
2454
- const m = [];
2456
+ const _ = [];
2455
2457
  h = Math.min(16, f, Math.max(1, h));
2456
- for (let y = 0; y < h; y++)
2457
- m.push(altchaCreateWorker(kt()));
2458
- const g = Math.ceil(f / h), E = await Promise.all(m.map((y, I) => {
2459
- const j = I * g;
2458
+ for (let p = 0; p < h; p++)
2459
+ _.push(altchaCreateWorker(kt()));
2460
+ const g = Math.ceil(f / h), A = await Promise.all(_.map((p, R) => {
2461
+ const j = R * g;
2460
2462
  return new Promise((Q) => {
2461
- y.addEventListener("message", (ae) => {
2463
+ p.addEventListener("message", (ae) => {
2462
2464
  if (ae.data)
2463
- for (const Be of m)
2464
- Be !== y && Be.postMessage({ type: "abort" });
2465
+ for (const Be of _)
2466
+ Be !== p && Be.postMessage({ type: "abort" });
2465
2467
  Q(ae.data);
2466
- }), y.postMessage({
2468
+ }), p.postMessage({
2467
2469
  payload: n,
2468
2470
  max: j + g,
2469
2471
  start: j,
@@ -2471,25 +2473,25 @@ function Sa(e, t) {
2471
2473
  });
2472
2474
  });
2473
2475
  }));
2474
- for (const y of m)
2475
- y.terminate();
2476
- return E.find((y) => !!y) || null;
2476
+ for (const p of _)
2477
+ p.terminate();
2478
+ return A.find((p) => !!p) || null;
2477
2479
  }
2478
2480
  async function St() {
2479
2481
  if (!Ve()) {
2480
- $e(A.ERROR);
2482
+ $e(C.ERROR);
2481
2483
  return;
2482
2484
  }
2483
2485
  const n = Ue.find((f) => f.constructor.pluginName === "obfuscation");
2484
2486
  if (!n || !("clarify" in n)) {
2485
- $e(A.ERROR), x("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");
2487
+ $e(C.ERROR), x("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");
2486
2488
  return;
2487
2489
  }
2488
2490
  if ("clarify" in n && typeof n.clarify == "function")
2489
2491
  return n.clarify();
2490
2492
  }
2491
2493
  function En(n) {
2492
- n.obfuscated !== void 0 && Ve(n.obfuscated), n.auto !== void 0 && (l(n.auto), l() === "onload" && (Ve() ? St() : Pe())), n.blockspam !== void 0 && u(!!n.blockspam), n.customfetch !== void 0 && b(n.customfetch), n.floatinganchor !== void 0 && M(n.floatinganchor), n.delay !== void 0 && _(n.delay), n.floatingoffset !== void 0 && ce(n.floatingoffset), n.floating !== void 0 && bn(n.floating), n.expire !== void 0 && (Cr(n.expire), S(n.expire)), n.challenge && (c(typeof n.challenge == "string" ? n.challenge : JSON.stringify(n.challenge)), pn(a(yr))), n.challengeurl !== void 0 && s(n.challengeurl), n.debug !== void 0 && v(!!n.debug), n.hidefooter !== void 0 && te(!!n.hidefooter), n.hidelogo !== void 0 && X(!!n.hidelogo), n.language !== void 0 && ut(ln(o(), [n.language])), n.maxnumber !== void 0 && ye(+n.maxnumber), n.mockerror !== void 0 && At(!!n.mockerror), n.name !== void 0 && oe(n.name), n.overlay !== void 0 && yn(n.overlay), n.overlaycontent !== void 0 && It(n.overlaycontent), n.refetchonexpire !== void 0 && Rt(!!n.refetchonexpire), n.sentinel !== void 0 && typeof n.sentinel == "object" && Ke(n.sentinel), n.spamfilter !== void 0 && Re(typeof n.spamfilter == "object" ? n.spamfilter : !!n.spamfilter), n.strings && ut(typeof n.strings == "string" ? n.strings : JSON.stringify(n.strings)), n.test !== void 0 && ge(typeof n.test == "number" ? n.test : !!n.test), n.verifyurl !== void 0 && re(n.verifyurl), n.workers !== void 0 && ft(+n.workers), n.workerurl !== void 0 && kt(n.workerurl);
2494
+ n.obfuscated !== void 0 && Ve(n.obfuscated), n.auto !== void 0 && (l(n.auto), l() === "onload" && (Ve() ? St() : Pe())), n.blockspam !== void 0 && u(!!n.blockspam), n.customfetch !== void 0 && b(n.customfetch), n.floatinganchor !== void 0 && q(n.floatinganchor), n.delay !== void 0 && m(n.delay), n.floatingoffset !== void 0 && ce(n.floatingoffset), n.floating !== void 0 && bn(n.floating), n.expire !== void 0 && (Ar(n.expire), S(n.expire)), n.challenge && (c(typeof n.challenge == "string" ? n.challenge : JSON.stringify(n.challenge)), pn(a(pr))), n.challengeurl !== void 0 && s(n.challengeurl), n.debug !== void 0 && v(!!n.debug), n.hidefooter !== void 0 && te(!!n.hidefooter), n.hidelogo !== void 0 && X(!!n.hidelogo), n.language !== void 0 && ut(ln(o(), [n.language])), n.maxnumber !== void 0 && ye(+n.maxnumber), n.mockerror !== void 0 && At(!!n.mockerror), n.name !== void 0 && oe(n.name), n.overlaycontent !== void 0 && It(n.overlaycontent), n.overlay !== void 0 && yn(n.overlay), n.refetchonexpire !== void 0 && Rt(!!n.refetchonexpire), n.sentinel !== void 0 && typeof n.sentinel == "object" && Ke(n.sentinel), n.spamfilter !== void 0 && Re(typeof n.spamfilter == "object" ? n.spamfilter : !!n.spamfilter), n.strings && ut(typeof n.strings == "string" ? n.strings : JSON.stringify(n.strings)), n.test !== void 0 && ge(typeof n.test == "number" ? n.test : !!n.test), n.verifyurl !== void 0 && re(n.verifyurl), n.workers !== void 0 && ft(+n.workers), n.workerurl !== void 0 && kt(n.workerurl);
2493
2495
  }
2494
2496
  function Cn() {
2495
2497
  return {
@@ -2497,10 +2499,10 @@ function Sa(e, t) {
2497
2499
  blockspam: u(),
2498
2500
  challengeurl: s(),
2499
2501
  debug: v(),
2500
- delay: _(),
2502
+ delay: m(),
2501
2503
  expire: S(),
2502
- floating: C(),
2503
- floatinganchor: M(),
2504
+ floating: E(),
2505
+ floatinganchor: q(),
2504
2506
  floatingoffset: ce(),
2505
2507
  hidefooter: te(),
2506
2508
  hidelogo: X(),
@@ -2508,7 +2510,7 @@ function Sa(e, t) {
2508
2510
  maxnumber: ye(),
2509
2511
  mockerror: At(),
2510
2512
  obfuscated: Ve(),
2511
- overlay: Ie(),
2513
+ overlay: pe(),
2512
2514
  refetchonexpire: Rt(),
2513
2515
  spamfilter: Re(),
2514
2516
  strings: a(P),
@@ -2527,73 +2529,73 @@ function Sa(e, t) {
2527
2529
  function In() {
2528
2530
  return a($);
2529
2531
  }
2530
- function Gt() {
2531
- a(q).style.display = "none", Ie() && a(de) && (a(de).style.display = "none");
2532
+ function Tt() {
2533
+ a(M).style.display = "none", pe() && a(de) && (a(de).style.display = "none");
2532
2534
  }
2533
- function Tt(n = 20) {
2535
+ function Nt(n = 20) {
2534
2536
  var f;
2535
- if (a(q))
2536
- if (a(ct) || p(ct, (M() ? document.querySelector(M()) : (f = a(L)) == null ? void 0 : f.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || a(L), !0), a(ct)) {
2537
- const h = parseInt(ce(), 10) || 12, m = a(ct).getBoundingClientRect(), g = a(q).getBoundingClientRect(), E = document.documentElement.clientHeight, y = document.documentElement.clientWidth, I = C() === "auto" ? m.bottom + g.height + h + n > E : C() === "top", j = Math.max(n, Math.min(y - n - g.width, m.left + m.width / 2 - g.width / 2));
2538
- if (I ? a(q).style.top = `${m.top - (g.height + h)}px` : a(q).style.top = `${m.bottom + h}px`, a(q).style.left = `${j}px`, a(q).setAttribute("data-floating", I ? "top" : "bottom"), a(xt)) {
2537
+ if (a(M))
2538
+ if (a(ct) || y(ct, (q() ? document.querySelector(q()) : (f = a(L)) == null ? void 0 : f.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || a(L), !0), a(ct)) {
2539
+ const h = parseInt(ce(), 10) || 12, _ = a(ct).getBoundingClientRect(), g = a(M).getBoundingClientRect(), A = document.documentElement.clientHeight, p = document.documentElement.clientWidth, R = E() === "auto" ? _.bottom + g.height + h + n > A : E() === "top", j = Math.max(n, Math.min(p - n - g.width, _.left + _.width / 2 - g.width / 2));
2540
+ if (R ? a(M).style.top = `${_.top - (g.height + h)}px` : a(M).style.top = `${_.bottom + h}px`, a(M).style.left = `${j}px`, a(M).setAttribute("data-floating", R ? "top" : "bottom"), a(xt)) {
2539
2541
  const Q = a(xt).getBoundingClientRect();
2540
- a(xt).style.left = m.left - j + m.width / 2 - Q.width / 2 + "px";
2542
+ a(xt).style.left = _.left - j + _.width / 2 - Q.width / 2 + "px";
2541
2543
  }
2542
2544
  } else
2543
2545
  x("unable to find floating anchor element");
2544
2546
  }
2545
- function Qe(n = A.UNVERIFIED, f = null) {
2546
- ke && (clearTimeout(ke), ke = null), p($t, !1), p(Le, null), p(H, null), p(wr, !1), p(Y, null), $e(n, f);
2547
+ function Qe(n = C.UNVERIFIED, f = null) {
2548
+ ke && (clearTimeout(ke), ke = null), y($t, !1), y(Le, null), y(H, null), y(Er, !1), y(Y, null), $e(n, f);
2547
2549
  }
2548
2550
  function Rn(n) {
2549
- p(ct, n, !0);
2551
+ y(ct, n, !0);
2550
2552
  }
2551
2553
  function $e(n, f = null) {
2552
- p($, n, !0), p(ze, f, !0), Me("statechange", {
2554
+ y($, n, !0), y(ze, f, !0), Me("statechange", {
2553
2555
  payload: a(Le),
2554
2556
  state: a($)
2555
2557
  });
2556
2558
  }
2557
- function Ar() {
2558
- a(q).style.display = "block", C() && Tt(), Ie() && a(de) && (a(de).style.display = "flex");
2559
+ function Zt() {
2560
+ a(M).style.display = "block", E() && Nt(), pe() && a(de) && (a(de).style.display = "flex");
2559
2561
  }
2560
2562
  async function Pe() {
2561
- return Qe(A.VERIFYING), await new Promise((n) => setTimeout(n, _() || 0)), Qi().then((n) => (pn(n), x("challenge", n), wn(n))).then(({ data: n, solution: f }) => {
2563
+ return Qe(C.VERIFYING), await new Promise((n) => setTimeout(n, m() || 0)), Qi().then((n) => (pn(n), x("challenge", n), wn(n))).then(({ data: n, solution: f }) => {
2562
2564
  var h;
2563
2565
  if (x("solution", f), !f || n && "challenge" in n && !("clearText" in f))
2564
2566
  if ((f == null ? void 0 : f.number) !== void 0 && "challenge" in n)
2565
2567
  if (re() && "codeChallenge" in n)
2566
- ["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(((h = document.activeElement) == null ? void 0 : h.tagName) || "") && w() === !1 && document.activeElement.blur(), p(H, { challenge: n, solution: f }, !0);
2568
+ ["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(((h = document.activeElement) == null ? void 0 : h.tagName) || "") && w() === !1 && document.activeElement.blur(), y(H, { challenge: n, solution: f }, !0);
2567
2569
  else {
2568
2570
  if (re() && Ke() !== void 0)
2569
- return mn(Yt(n, f));
2571
+ return mn(Gt(n, f));
2570
2572
  if (re())
2571
- return dl(Yt(n, f));
2572
- p(Le, Yt(n, f), !0), x("payload", a(Le));
2573
+ return dl(Gt(n, f));
2574
+ y(Le, Gt(n, f), !0), x("payload", a(Le));
2573
2575
  }
2574
2576
  else
2575
2577
  throw x("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
2576
2578
  }).then(() => {
2577
- a(H) ? ($e(A.CODE), Nr().then(() => {
2579
+ a(H) ? ($e(C.CODE), Nr().then(() => {
2578
2580
  Me("code", { codeChallenge: a(H) });
2579
- })) : ($e(A.VERIFIED), x("verified"), Nr().then(() => {
2580
- Me("verified", { payload: a(Le) }), l() === "onsubmit" ? Er(a(dt)) : Ie() && Gt();
2581
+ })) : ($e(C.VERIFIED), x("verified"), Nr().then(() => {
2582
+ Me("verified", { payload: a(Le) }), l() === "onsubmit" ? Cr(a(dt)) : pe() && Tt();
2581
2583
  }));
2582
2584
  }).catch((n) => {
2583
- x(n), $e(A.ERROR, n.message);
2585
+ x(n), $e(C.ERROR, n.message);
2584
2586
  });
2585
2587
  }
2586
- var kn = xa(), $n = Dt(kn);
2588
+ var kn = xa(), $n = Lt(kn);
2587
2589
  Bo($n, t, "default", {});
2588
- var vt = J($n, 2), Ir = W(vt), Zt = W(Ir);
2590
+ var vt = J($n, 2), Ir = W(vt), Wt = W(Ir);
2589
2591
  let xn;
2590
- var Sn = W(Zt);
2592
+ var Sn = W(Wt);
2591
2593
  {
2592
2594
  var gl = (n) => {
2593
2595
  Dr(n);
2594
2596
  };
2595
2597
  K(Sn, (n) => {
2596
- a($) === A.VERIFYING && n(gl);
2598
+ a($) === C.VERIFYING && n(gl);
2597
2599
  });
2598
2600
  }
2599
2601
  var et = J(Sn, 2);
@@ -2606,50 +2608,50 @@ function Sa(e, t) {
2606
2608
  Ve,
2607
2609
  St,
2608
2610
  Pe
2609
- ], Xt(et, (n) => p(pr, n), () => a(pr)), Z(Zt);
2610
- var Wt = J(Zt, 2), _l = W(Wt);
2611
+ ], Qt(et, (n) => y(wr, n), () => a(wr)), Z(Wt);
2612
+ var Jt = J(Wt, 2), _l = W(Jt);
2611
2613
  {
2612
2614
  var ml = (n) => {
2613
- var f = zt(), h = Dt(f);
2615
+ var f = Xt(), h = Lt(f);
2614
2616
  tt(h, () => a(P).verified), U(n, f);
2615
2617
  }, bl = (n, f) => {
2616
2618
  {
2617
2619
  var h = (g) => {
2618
- var E = zt(), y = Dt(E);
2619
- tt(y, () => a(P).verifying), U(g, E);
2620
- }, m = (g, E) => {
2620
+ var A = Xt(), p = Lt(A);
2621
+ tt(p, () => a(P).verifying), U(g, A);
2622
+ }, _ = (g, A) => {
2621
2623
  {
2622
- var y = (j) => {
2623
- var Q = zt(), ae = Dt(Q);
2624
+ var p = (j) => {
2625
+ var Q = Xt(), ae = Lt(Q);
2624
2626
  tt(ae, () => a(P).verificationRequired), U(j, Q);
2625
- }, I = (j) => {
2626
- var Q = zt(), ae = Dt(Q);
2627
+ }, R = (j) => {
2628
+ var Q = Xt(), ae = Lt(Q);
2627
2629
  tt(ae, () => a(P).label), U(j, Q);
2628
2630
  };
2629
2631
  K(
2630
2632
  g,
2631
2633
  (j) => {
2632
- a($) === A.CODE ? j(y) : j(I, !1);
2634
+ a($) === C.CODE ? j(p) : j(R, !1);
2633
2635
  },
2634
- E
2636
+ A
2635
2637
  );
2636
2638
  }
2637
2639
  };
2638
2640
  K(
2639
2641
  n,
2640
2642
  (g) => {
2641
- a($) === A.VERIFYING ? g(h) : g(m, !1);
2643
+ a($) === C.VERIFYING ? g(h) : g(_, !1);
2642
2644
  },
2643
2645
  f
2644
2646
  );
2645
2647
  }
2646
2648
  };
2647
2649
  K(_l, (n) => {
2648
- a($) === A.VERIFIED ? n(ml) : n(bl, !1);
2650
+ a($) === C.VERIFIED ? n(ml) : n(bl, !1);
2649
2651
  });
2650
2652
  }
2651
- Z(Wt);
2652
- var Tn = J(Wt, 2);
2653
+ Z(Jt);
2654
+ var Tn = J(Jt, 2);
2653
2655
  {
2654
2656
  var yl = (n) => {
2655
2657
  var f = _a();
@@ -2658,7 +2660,7 @@ function Sa(e, t) {
2658
2660
  }), U(n, f);
2659
2661
  };
2660
2662
  K(Tn, (n) => {
2661
- a($) === A.VERIFIED && n(yl);
2663
+ a($) === C.VERIFIED && n(yl);
2662
2664
  });
2663
2665
  }
2664
2666
  var Nn = J(Tn, 2);
@@ -2668,25 +2670,25 @@ function Sa(e, t) {
2668
2670
  T(h, "href", Ki), Z(f), xe(() => T(h, "aria-label", a(P).ariaLinkLabel)), U(n, f);
2669
2671
  };
2670
2672
  K(Nn, (n) => {
2671
- (X() !== !0 || a(br)) && n(pl);
2673
+ (X() !== !0 || a(yr)) && n(pl);
2672
2674
  });
2673
2675
  }
2674
2676
  var wl = J(Nn, 2);
2675
2677
  {
2676
2678
  var El = (n) => {
2677
- var f = Ca(), h = J(W(f), 2), m = W(h), g = J(m, 2);
2679
+ var f = Ca(), h = J(W(f), 2), _ = W(h), g = J(_, 2);
2678
2680
  Po(g, !w()), g.__keydown = [
2679
2681
  da,
2680
2682
  hn
2681
2683
  ];
2682
- var E = J(g, 2), y = W(E), I = W(y);
2684
+ var A = J(g, 2), p = W(A), R = W(p);
2683
2685
  {
2684
- var j = (pe) => {
2686
+ var j = (we) => {
2685
2687
  var G = wa();
2686
2688
  G.__click = hn;
2687
- var Kt = W(G);
2689
+ var zt = W(G);
2688
2690
  {
2689
- var Nt = (ht) => {
2691
+ var Dt = (ht) => {
2690
2692
  Dr(ht, () => 20);
2691
2693
  }, Sl = (ht, Tl) => {
2692
2694
  {
@@ -2720,45 +2722,45 @@ function Sa(e, t) {
2720
2722
  );
2721
2723
  }
2722
2724
  };
2723
- K(Kt, (ht) => {
2724
- a(Y) === ee.LOADING ? ht(Nt) : ht(Sl, !1);
2725
+ K(zt, (ht) => {
2726
+ a(Y) === ee.LOADING ? ht(Dt) : ht(Sl, !1);
2725
2727
  });
2726
2728
  }
2727
2729
  Z(G), xe(() => {
2728
2730
  T(G, "title", a(P).getAudioChallenge), G.disabled = a(Y) === ee.LOADING || a(Y) === ee.ERROR || a(Xe), T(G, "aria-label", a(Y) === ee.LOADING ? a(P).loading : a(P).getAudioChallenge);
2729
- }), U(pe, G);
2731
+ }), U(we, G);
2730
2732
  };
2731
- K(I, (pe) => {
2732
- a(H).challenge.codeChallenge.audio && pe(j);
2733
+ K(R, (we) => {
2734
+ a(H).challenge.codeChallenge.audio && we(j);
2733
2735
  });
2734
2736
  }
2735
- var Q = J(I, 2);
2736
- Q.__click = [va, Pe], Z(y);
2737
- var ae = J(y, 2), Be = W(ae);
2737
+ var Q = J(R, 2);
2738
+ Q.__click = [va, Pe], Z(p);
2739
+ var ae = J(p, 2), Be = W(ae);
2738
2740
  {
2739
- var Rr = (pe) => {
2740
- Dr(pe, () => 16);
2741
+ var Rr = (we) => {
2742
+ Dr(we, () => 16);
2741
2743
  };
2742
- K(Be, (pe) => {
2743
- a(Xe) && pe(Rr);
2744
+ K(Be, (we) => {
2745
+ a(Xe) && we(Rr);
2744
2746
  });
2745
2747
  }
2746
- var Jt = J(Be);
2747
- Z(ae), Z(E);
2748
- var $l = J(E, 2);
2748
+ var Kt = J(Be);
2749
+ Z(ae), Z(A);
2750
+ var $l = J(A, 2);
2749
2751
  {
2750
- var xl = (pe) => {
2751
- var G = Ea(), Kt = W(G);
2752
- Z(G), Xt(G, (Nt) => p(qe, Nt), () => a(qe)), xe((Nt) => T(Kt, "src", Nt), [
2752
+ var xl = (we) => {
2753
+ var G = Ea(), zt = W(G);
2754
+ Z(G), Qt(G, (Dt) => y(qe, Dt), () => a(qe)), xe((Dt) => T(zt, "src", Dt), [
2753
2755
  () => an(a(H).challenge.codeChallenge.audio, { language: B() })
2754
- ]), je("loadstart", G, ol), je("canplay", G, ll), je("pause", G, sl), je("playing", G, al), je("ended", G, nl), je("error", Kt, il), U(pe, G);
2756
+ ]), je("loadstart", G, ol), je("canplay", G, ll), je("pause", G, sl), je("playing", G, al), je("ended", G, nl), je("error", zt, il), U(we, G);
2755
2757
  };
2756
- K($l, (pe) => {
2757
- a(H).challenge.codeChallenge.audio && a(wr) && pe(xl);
2758
+ K($l, (we) => {
2759
+ a(H).challenge.codeChallenge.audio && a(Er) && we(xl);
2758
2760
  });
2759
2761
  }
2760
2762
  Z(h), Z(f), xe(() => {
2761
- T(f, "aria-label", a(P).verificationRequired), T(m, "src", a(H).challenge.codeChallenge.image), T(g, "minlength", a(H).challenge.codeChallenge.length || 1), T(g, "maxlength", a(H).challenge.codeChallenge.length), T(g, "placeholder", a(P).enterCode), T(g, "aria-label", a(Y) === ee.LOADING ? a(P).loading : a(Y) === ee.PLAYING ? "" : a(P).enterCodeAria), T(g, "aria-live", a(Y) ? "assertive" : "polite"), T(g, "aria-busy", a(Y) === ee.LOADING), g.disabled = a(Xe), T(Q, "aria-label", a(P).reload), T(Q, "title", a(P).reload), Q.disabled = a(Xe), ae.disabled = a(Xe), T(ae, "aria-label", a(P).verify), Mo(Jt, ` ${a(P).verify ?? ""}`);
2763
+ T(f, "aria-label", a(P).verificationRequired), T(_, "src", a(H).challenge.codeChallenge.image), T(g, "minlength", a(H).challenge.codeChallenge.length || 1), T(g, "maxlength", a(H).challenge.codeChallenge.length), T(g, "placeholder", a(P).enterCode), T(g, "aria-label", a(Y) === ee.LOADING ? a(P).loading : a(Y) === ee.PLAYING ? "" : a(P).enterCodeAria), T(g, "aria-live", a(Y) ? "assertive" : "polite"), T(g, "aria-busy", a(Y) === ee.LOADING), g.disabled = a(Xe), T(Q, "aria-label", a(P).reload), T(Q, "title", a(P).reload), Q.disabled = a(Xe), ae.disabled = a(Xe), T(ae, "aria-label", a(P).verify), Mo(Kt, ` ${a(P).verify ?? ""}`);
2762
2764
  }), je("submit", h, ul, !0), U(n, f);
2763
2765
  };
2764
2766
  K(wl, (n) => {
@@ -2772,53 +2774,53 @@ function Sa(e, t) {
2772
2774
  var Cl = (n) => {
2773
2775
  var f = Ra(), h = J(W(f), 2);
2774
2776
  {
2775
- var m = (E) => {
2776
- var y = Aa(), I = W(y);
2777
- tt(I, () => a(P).expired), Z(y), xe(() => T(y, "title", a(ze))), U(E, y);
2778
- }, g = (E) => {
2779
- var y = Ia(), I = W(y);
2780
- tt(I, () => a(P).error), Z(y), xe(() => T(y, "title", a(ze))), U(E, y);
2777
+ var _ = (A) => {
2778
+ var p = Aa(), R = W(p);
2779
+ tt(R, () => a(P).expired), Z(p), xe(() => T(p, "title", a(ze))), U(A, p);
2780
+ }, g = (A) => {
2781
+ var p = Ia(), R = W(p);
2782
+ tt(R, () => a(P).error), Z(p), xe(() => T(p, "title", a(ze))), U(A, p);
2781
2783
  };
2782
- K(h, (E) => {
2783
- a($) === A.EXPIRED ? E(m) : E(g, !1);
2784
+ K(h, (A) => {
2785
+ a($) === C.EXPIRED ? A(_) : A(g, !1);
2784
2786
  });
2785
2787
  }
2786
2788
  Z(f), U(n, f);
2787
2789
  };
2788
2790
  K(Dn, (n) => {
2789
- (a(ze) || a($) === A.EXPIRED) && n(Cl);
2791
+ (a(ze) || a($) === C.EXPIRED) && n(Cl);
2790
2792
  });
2791
2793
  }
2792
2794
  var Ln = J(Dn, 2);
2793
2795
  {
2794
2796
  var Al = (n) => {
2795
- var f = ka(), h = W(f), m = W(h);
2796
- tt(m, () => a(P).footer), Z(h), Z(f), U(n, f);
2797
+ var f = ka(), h = W(f), _ = W(h);
2798
+ tt(_, () => a(P).footer), Z(h), Z(f), U(n, f);
2797
2799
  };
2798
2800
  K(Ln, (n) => {
2799
- a(P).footer && (te() !== !0 || a(br)) && n(Al);
2801
+ a(P).footer && (te() !== !0 || a(yr)) && n(Al);
2800
2802
  });
2801
2803
  }
2802
2804
  var Il = J(Ln, 2);
2803
2805
  {
2804
2806
  var Rl = (n) => {
2805
2807
  var f = $a();
2806
- Xt(f, (h) => p(xt, h), () => a(xt)), U(n, f);
2808
+ Qt(f, (h) => y(xt, h), () => a(xt)), U(n, f);
2807
2809
  };
2808
2810
  K(Il, (n) => {
2809
- C() && n(Rl);
2811
+ E() && n(Rl);
2810
2812
  });
2811
2813
  }
2812
- Z(vt), Xt(vt, (n) => p(q, n), () => a(q)), xe(
2814
+ Z(vt), Qt(vt, (n) => y(M, n), () => a(M)), xe(
2813
2815
  (n) => {
2814
- T(vt, "data-state", a($)), T(vt, "data-floating", C()), T(vt, "data-overlay", Ie()), xn = Ho(Zt, 1, "altcha-checkbox", null, xn, n), T(et, "id", a(tn)), et.required = l() !== "onsubmit" && (!C() || l() !== "off"), T(Wt, "for", a(tn));
2816
+ T(vt, "data-state", a($)), T(vt, "data-floating", E()), T(vt, "data-overlay", pe()), xn = Ho(Wt, 1, "altcha-checkbox", null, xn, n), T(et, "id", a(tn)), et.required = l() !== "onsubmit" && (!E() || l() !== "off"), T(Jt, "for", a(tn));
2815
2817
  },
2816
2818
  [
2817
2819
  () => ({
2818
- "altcha-checkbox-verifying": a($) === A.VERIFYING
2820
+ "altcha-checkbox-verifying": a($) === C.VERIFYING
2819
2821
  })
2820
2822
  ]
2821
- ), je("invalid", et, vn), Jo(et, () => a($t), (n) => p($t, n)), U(e, kn);
2823
+ ), je("invalid", et, vn), Jo(et, () => a($t), (n) => y($t, n)), U(e, kn);
2822
2824
  var kl = Pi({
2823
2825
  clarify: St,
2824
2826
  configure: En,
@@ -2826,210 +2828,210 @@ function Sa(e, t) {
2826
2828
  getFloatingAnchor: An,
2827
2829
  getPlugin: hl,
2828
2830
  getState: In,
2829
- hide: Gt,
2830
- repositionFloating: Tt,
2831
+ hide: Tt,
2832
+ repositionFloating: Nt,
2831
2833
  reset: Qe,
2832
2834
  setFloatingAnchor: Rn,
2833
2835
  setState: $e,
2834
- show: Ar,
2836
+ show: Zt,
2835
2837
  verify: Pe,
2836
2838
  get auto() {
2837
2839
  return l();
2838
2840
  },
2839
2841
  set auto(n = void 0) {
2840
- l(n), R();
2842
+ l(n), I();
2841
2843
  },
2842
2844
  get blockspam() {
2843
2845
  return u();
2844
2846
  },
2845
2847
  set blockspam(n = void 0) {
2846
- u(n), R();
2848
+ u(n), I();
2847
2849
  },
2848
2850
  get challengeurl() {
2849
2851
  return s();
2850
2852
  },
2851
2853
  set challengeurl(n = void 0) {
2852
- s(n), R();
2854
+ s(n), I();
2853
2855
  },
2854
2856
  get challengejson() {
2855
2857
  return c();
2856
2858
  },
2857
2859
  set challengejson(n = void 0) {
2858
- c(n), R();
2860
+ c(n), I();
2859
2861
  },
2860
2862
  get credentials() {
2861
2863
  return d();
2862
2864
  },
2863
2865
  set credentials(n = void 0) {
2864
- d(n), R();
2866
+ d(n), I();
2865
2867
  },
2866
2868
  get customfetch() {
2867
2869
  return b();
2868
2870
  },
2869
2871
  set customfetch(n = void 0) {
2870
- b(n), R();
2872
+ b(n), I();
2871
2873
  },
2872
2874
  get debug() {
2873
2875
  return v();
2874
2876
  },
2875
2877
  set debug(n = !1) {
2876
- v(n), R();
2878
+ v(n), I();
2877
2879
  },
2878
2880
  get delay() {
2879
- return _();
2881
+ return m();
2880
2882
  },
2881
2883
  set delay(n = 0) {
2882
- _(n), R();
2884
+ m(n), I();
2883
2885
  },
2884
2886
  get disableautofocus() {
2885
2887
  return w();
2886
2888
  },
2887
2889
  set disableautofocus(n = !1) {
2888
- w(n), R();
2890
+ w(n), I();
2889
2891
  },
2890
2892
  get expire() {
2891
2893
  return S();
2892
2894
  },
2893
2895
  set expire(n = void 0) {
2894
- S(n), R();
2896
+ S(n), I();
2895
2897
  },
2896
2898
  get floating() {
2897
- return C();
2899
+ return E();
2898
2900
  },
2899
2901
  set floating(n = void 0) {
2900
- C(n), R();
2902
+ E(n), I();
2901
2903
  },
2902
2904
  get floatinganchor() {
2903
- return M();
2905
+ return q();
2904
2906
  },
2905
2907
  set floatinganchor(n = void 0) {
2906
- M(n), R();
2908
+ q(n), I();
2907
2909
  },
2908
2910
  get floatingoffset() {
2909
2911
  return ce();
2910
2912
  },
2911
2913
  set floatingoffset(n = void 0) {
2912
- ce(n), R();
2914
+ ce(n), I();
2913
2915
  },
2914
2916
  get floatingpersist() {
2915
2917
  return z();
2916
2918
  },
2917
2919
  set floatingpersist(n = !1) {
2918
- z(n), R();
2920
+ z(n), I();
2919
2921
  },
2920
2922
  get hidefooter() {
2921
2923
  return te();
2922
2924
  },
2923
2925
  set hidefooter(n = !1) {
2924
- te(n), R();
2926
+ te(n), I();
2925
2927
  },
2926
2928
  get hidelogo() {
2927
2929
  return X();
2928
2930
  },
2929
2931
  set hidelogo(n = !1) {
2930
- X(n), R();
2932
+ X(n), I();
2931
2933
  },
2932
2934
  get id() {
2933
2935
  return st();
2934
2936
  },
2935
2937
  set id(n = void 0) {
2936
- st(n), R();
2938
+ st(n), I();
2937
2939
  },
2938
2940
  get language() {
2939
2941
  return B();
2940
2942
  },
2941
2943
  set language(n = void 0) {
2942
- B(n), R();
2944
+ B(n), I();
2943
2945
  },
2944
2946
  get name() {
2945
2947
  return oe();
2946
2948
  },
2947
2949
  set name(n = "altcha") {
2948
- oe(n), R();
2950
+ oe(n), I();
2949
2951
  },
2950
2952
  get maxnumber() {
2951
2953
  return ye();
2952
2954
  },
2953
2955
  set maxnumber(n = 1e6) {
2954
- ye(n), R();
2956
+ ye(n), I();
2955
2957
  },
2956
2958
  get mockerror() {
2957
2959
  return At();
2958
2960
  },
2959
2961
  set mockerror(n = !1) {
2960
- At(n), R();
2962
+ At(n), I();
2961
2963
  },
2962
2964
  get obfuscated() {
2963
2965
  return Ve();
2964
2966
  },
2965
2967
  set obfuscated(n = void 0) {
2966
- Ve(n), R();
2968
+ Ve(n), I();
2967
2969
  },
2968
2970
  get overlay() {
2969
- return Ie();
2971
+ return pe();
2970
2972
  },
2971
2973
  set overlay(n = void 0) {
2972
- Ie(n), R();
2974
+ pe(n), I();
2973
2975
  },
2974
2976
  get overlaycontent() {
2975
2977
  return It();
2976
2978
  },
2977
2979
  set overlaycontent(n = void 0) {
2978
- It(n), R();
2980
+ It(n), I();
2979
2981
  },
2980
2982
  get plugins() {
2981
- return Ht();
2983
+ return Yt();
2982
2984
  },
2983
2985
  set plugins(n = void 0) {
2984
- Ht(n), R();
2986
+ Yt(n), I();
2985
2987
  },
2986
2988
  get refetchonexpire() {
2987
2989
  return Rt();
2988
2990
  },
2989
2991
  set refetchonexpire(n = !0) {
2990
- Rt(n), R();
2992
+ Rt(n), I();
2991
2993
  },
2992
2994
  get sentinel() {
2993
2995
  return Ke();
2994
2996
  },
2995
2997
  set sentinel(n = void 0) {
2996
- Ke(n), R();
2998
+ Ke(n), I();
2997
2999
  },
2998
3000
  get spamfilter() {
2999
3001
  return Re();
3000
3002
  },
3001
3003
  set spamfilter(n = !1) {
3002
- Re(n), R();
3004
+ Re(n), I();
3003
3005
  },
3004
3006
  get strings() {
3005
3007
  return ut();
3006
3008
  },
3007
3009
  set strings(n = void 0) {
3008
- ut(n), R();
3010
+ ut(n), I();
3009
3011
  },
3010
3012
  get test() {
3011
3013
  return ge();
3012
3014
  },
3013
3015
  set test(n = !1) {
3014
- ge(n), R();
3016
+ ge(n), I();
3015
3017
  },
3016
3018
  get verifyurl() {
3017
3019
  return re();
3018
3020
  },
3019
3021
  set verifyurl(n = void 0) {
3020
- re(n), R();
3022
+ re(n), I();
3021
3023
  },
3022
3024
  get workers() {
3023
3025
  return ft();
3024
3026
  },
3025
3027
  set workers(n = Math.min(16, navigator.hardwareConcurrency || 8)) {
3026
- ft(n), R();
3028
+ ft(n), I();
3027
3029
  },
3028
3030
  get workerurl() {
3029
3031
  return kt();
3030
3032
  },
3031
3033
  set workerurl(n = void 0) {
3032
- kt(n), R();
3034
+ kt(n), I();
3033
3035
  }
3034
3036
  });
3035
3037
  return i(), kl;