altcha 1.1.1 → 1.2.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.
package/dist/altcha.js CHANGED
@@ -1,9 +1,9 @@
1
- var vi = Object.defineProperty;
1
+ var hi = Object.defineProperty;
2
2
  var Pr = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var gi = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var ne = (e, t, r) => gi(e, typeof t != "symbol" ? t + "" : t, r), zr = (e, t, r) => t.has(e) || Pr("Cannot " + r);
5
+ var gi = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
+ var re = (e, t, r) => gi(e, typeof t != "symbol" ? t + "" : t, r), zr = (e, t, r) => t.has(e) || Pr("Cannot " + r);
7
7
  var M = (e, t, r) => (zr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Yt = (e, t, r) => t.has(e) ? Pr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Ft = (e, t, r, l) => (zr(e, t, "write to private field"), l ? l.call(e, r) : t.set(e, r), r);
8
8
  const Hr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGQ9bmV3IFRleHRFbmNvZGVyO2Z1bmN0aW9uIHAoZSl7cmV0dXJuWy4uLm5ldyBVaW50OEFycmF5KGUpXS5tYXAodD0+dC50b1N0cmluZygxNikucGFkU3RhcnQoMiwiMCIpKS5qb2luKCIiKX1hc3luYyBmdW5jdGlvbiBiKGUsdCxyKXtpZih0eXBlb2YgY3J5cHRvPiJ1Inx8ISgic3VidGxlImluIGNyeXB0byl8fCEoImRpZ2VzdCJpbiBjcnlwdG8uc3VidGxlKSl0aHJvdyBuZXcgRXJyb3IoIldlYiBDcnlwdG8gaXMgbm90IGF2YWlsYWJsZS4gU2VjdXJlIGNvbnRleHQgaXMgcmVxdWlyZWQgKGh0dHBzOi8vZGV2ZWxvcGVyLm1vemlsbGEub3JnL2VuLVVTL2RvY3MvV2ViL1NlY3VyaXR5L1NlY3VyZV9Db250ZXh0cykuIik7cmV0dXJuIHAoYXdhaXQgY3J5cHRvLnN1YnRsZS5kaWdlc3Qoci50b1VwcGVyQ2FzZSgpLGQuZW5jb2RlKGUrdCkpKX1mdW5jdGlvbiB3KGUsdCxyPSJTSEEtMjU2IixuPTFlNixzPTApe2NvbnN0IG89bmV3IEFib3J0Q29udHJvbGxlcixhPURhdGUubm93KCk7cmV0dXJue3Byb21pc2U6KGFzeW5jKCk9Pntmb3IobGV0IGM9cztjPD1uO2MrPTEpe2lmKG8uc2lnbmFsLmFib3J0ZWQpcmV0dXJuIG51bGw7aWYoYXdhaXQgYih0LGMscik9PT1lKXJldHVybntudW1iZXI6Yyx0b29rOkRhdGUubm93KCktYX19cmV0dXJuIG51bGx9KSgpLGNvbnRyb2xsZXI6b319ZnVuY3Rpb24gaChlKXtjb25zdCB0PWF0b2IoZSkscj1uZXcgVWludDhBcnJheSh0Lmxlbmd0aCk7Zm9yKGxldCBuPTA7bjx0Lmxlbmd0aDtuKyspcltuXT10LmNoYXJDb2RlQXQobik7cmV0dXJuIHJ9ZnVuY3Rpb24gZyhlLHQ9MTIpe2NvbnN0IHI9bmV3IFVpbnQ4QXJyYXkodCk7Zm9yKGxldCBuPTA7bjx0O24rKylyW25dPWUlMjU2LGU9TWF0aC5mbG9vcihlLzI1Nik7cmV0dXJuIHJ9YXN5bmMgZnVuY3Rpb24gbShlLHQ9IiIscj0xZTYsbj0wKXtjb25zdCBzPSJBRVMtR0NNIixvPW5ldyBBYm9ydENvbnRyb2xsZXIsYT1EYXRlLm5vdygpLGw9YXN5bmMoKT0+e2ZvcihsZXQgdT1uO3U8PXI7dSs9MSl7aWYoby5zaWduYWwuYWJvcnRlZHx8IWN8fCF5KXJldHVybiBudWxsO3RyeXtjb25zdCBmPWF3YWl0IGNyeXB0by5zdWJ0bGUuZGVjcnlwdCh7bmFtZTpzLGl2OmcodSl9LGMseSk7aWYoZilyZXR1cm57Y2xlYXJUZXh0Om5ldyBUZXh0RGVjb2RlcigpLmRlY29kZShmKSx0b29rOkRhdGUubm93KCktYX19Y2F0Y2h7fX1yZXR1cm4gbnVsbH07bGV0IGM9bnVsbCx5PW51bGw7dHJ5e3k9aChlKTtjb25zdCB1PWF3YWl0IGNyeXB0by5zdWJ0bGUuZGlnZXN0KCJTSEEtMjU2IixkLmVuY29kZSh0KSk7Yz1hd2FpdCBjcnlwdG8uc3VidGxlLmltcG9ydEtleSgicmF3Iix1LHMsITEsWyJkZWNyeXB0Il0pfWNhdGNoe3JldHVybntwcm9taXNlOlByb21pc2UucmVqZWN0KCksY29udHJvbGxlcjpvfX1yZXR1cm57cHJvbWlzZTpsKCksY29udHJvbGxlcjpvfX1sZXQgaTtvbm1lc3NhZ2U9YXN5bmMgZT0+e2NvbnN0e3R5cGU6dCxwYXlsb2FkOnIsc3RhcnQ6bixtYXg6c309ZS5kYXRhO2xldCBvPW51bGw7aWYodD09PSJhYm9ydCIpaT09bnVsbHx8aS5hYm9ydCgpLGk9dm9pZCAwO2Vsc2UgaWYodD09PSJ3b3JrIil7aWYoIm9iZnVzY2F0ZWQiaW4gcil7Y29uc3R7a2V5OmEsb2JmdXNjYXRlZDpsfT1yfHx7fTtvPWF3YWl0IG0obCxhLHMsbil9ZWxzZXtjb25zdHthbGdvcml0aG06YSxjaGFsbGVuZ2U6bCxzYWx0OmN9PXJ8fHt9O289dyhsLGMsYSxzLG4pfWk9by5jb250cm9sbGVyLG8ucHJvbWlzZS50aGVuKGE9PntzZWxmLnBvc3RNZXNzYWdlKGEmJnsuLi5hLHdvcmtlcjohMH0pfSl9fX0pKCk7Cg==", _i = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Gr = typeof self < "u" && self.Blob && new Blob([_i(Hr)], { type: "text/javascript;charset=utf-8" });
9
9
  function mi(e) {
@@ -29,13 +29,13 @@ function mi(e) {
29
29
  }
30
30
  const bi = "5";
31
31
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(bi);
32
- const yi = 1, pi = 4, wi = 8, Ei = 16, xi = 1, ki = 2, Jr = "[", Kr = "[!", qr = "]", Me = {}, j = Symbol(), Qr = !1;
33
- var en = Array.isArray, Ci = Array.from, kt = Object.keys, Ct = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, Ri = Object.getOwnPropertyDescriptors, Ii = Object.prototype, $i = Array.prototype, Xt = Object.getPrototypeOf;
32
+ const yi = 1, pi = 4, wi = 8, Ei = 16, xi = 1, ki = 2, Jr = "[", Kr = "[!", qr = "]", Ue = {}, j = Symbol(), Qr = !1;
33
+ var en = Array.isArray, Ci = Array.from, xt = Object.keys, kt = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, Ri = Object.getOwnPropertyDescriptors, Ii = Object.prototype, $i = Array.prototype, Xt = Object.getPrototypeOf;
34
34
  function tn(e) {
35
35
  for (var t = 0; t < e.length; t++)
36
36
  e[t]();
37
37
  }
38
- const ae = 2, rn = 4, ht = 8, Jt = 16, oe = 32, vt = 64, Zt = 128, Ve = 256, Rt = 512, B = 1024, Ce = 2048, gt = 4096, He = 8192, qe = 16384, Si = 32768, Kt = 65536, Ni = 1 << 19, nn = 1 << 20, ut = Symbol("$state"), ln = Symbol("legacy props"), Li = Symbol("");
38
+ const le = 2, rn = 4, vt = 8, Jt = 16, ae = 32, ht = 64, Zt = 128, Ae = 256, Ct = 512, B = 1024, xe = 2048, gt = 4096, Be = 8192, Ke = 16384, Si = 32768, Kt = 65536, Ni = 1 << 19, nn = 1 << 20, ut = Symbol("$state"), ln = Symbol("legacy props"), Li = Symbol("");
39
39
  function an(e) {
40
40
  return e === this.v;
41
41
  }
@@ -76,7 +76,7 @@ function Xi() {
76
76
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
77
77
  }
78
78
  let sn = !1;
79
- function ce(e) {
79
+ function fe(e) {
80
80
  return {
81
81
  f: 0,
82
82
  // TODO ideally we could skip this altogether, but it causes type errors
@@ -86,69 +86,69 @@ function ce(e) {
86
86
  version: 0
87
87
  };
88
88
  }
89
- function Fe(e) {
90
- return /* @__PURE__ */ Zi(ce(e));
89
+ function Ye(e) {
90
+ return /* @__PURE__ */ Zi(fe(e));
91
91
  }
92
92
  // @__NO_SIDE_EFFECTS__
93
93
  function un(e, t = !1) {
94
- const r = ce(e);
94
+ const r = fe(e);
95
95
  return t || (r.equals = on), r;
96
96
  }
97
97
  // @__NO_SIDE_EFFECTS__
98
98
  function Zi(e) {
99
- return R !== null && R.f & ae && (de === null ? nl([e]) : de.push(e)), e;
99
+ return R !== null && R.f & le && (ce === null ? nl([e]) : ce.push(e)), e;
100
100
  }
101
- function V(e, t) {
102
- return R !== null && ll() && R.f & (ae | Jt) && // If the source was created locally within the current derived, then
101
+ function T(e, t) {
102
+ return R !== null && ll() && R.f & (le | Jt) && // If the source was created locally within the current derived, then
103
103
  // we allow the mutation.
104
- (de === null || !de.includes(e)) && Xi(), Wi(e, t);
104
+ (ce === null || !ce.includes(e)) && Xi(), Wi(e, t);
105
105
  }
106
106
  function Wi(e, t) {
107
- return e.equals(t) || (e.v = t, e.version = $n(), fn(e, Ce), y !== null && y.f & B && !(y.f & oe) && (O !== null && O.includes(e) ? (ve(y, Ce), Vt(y)) : xe === null ? il([e]) : xe.push(e))), t;
107
+ return e.equals(t) || (e.v = t, e.version = $n(), fn(e, xe), y !== null && y.f & B && !(y.f & ae) && (O !== null && O.includes(e) ? (ve(y, xe), Tt(y)) : we === null ? il([e]) : we.push(e))), t;
108
108
  }
109
109
  function fn(e, t) {
110
110
  var r = e.reactions;
111
111
  if (r !== null)
112
112
  for (var l = r.length, i = 0; i < l; i++) {
113
113
  var a = r[i], o = a.f;
114
- o & Ce || (ve(a, t), o & (B | Ve) && (o & ae ? fn(
114
+ o & xe || (ve(a, t), o & (B | Ae) && (o & le ? fn(
115
115
  /** @type {Derived} */
116
116
  a,
117
117
  gt
118
- ) : Vt(
118
+ ) : Tt(
119
119
  /** @type {Effect} */
120
120
  a
121
121
  )));
122
122
  }
123
123
  }
124
- function Nt(e) {
124
+ function St(e) {
125
125
  console.warn("https://svelte.dev/e/hydration_mismatch");
126
126
  }
127
- let z = !1;
128
- function We(e) {
129
- z = e;
127
+ let P = !1;
128
+ function Ze(e) {
129
+ P = e;
130
130
  }
131
- let P;
132
- function Re(e) {
131
+ let V;
132
+ function ke(e) {
133
133
  if (e === null)
134
- throw Nt(), Me;
135
- return P = e;
134
+ throw St(), Ue;
135
+ return V = e;
136
136
  }
137
- function Je() {
138
- return Re(
137
+ function He() {
138
+ return ke(
139
139
  /** @type {TemplateNode} */
140
- /* @__PURE__ */ $e(P)
140
+ /* @__PURE__ */ Re(V)
141
141
  );
142
142
  }
143
143
  function H(e) {
144
- if (z) {
145
- if (/* @__PURE__ */ $e(P) !== null)
146
- throw Nt(), Me;
147
- P = e;
144
+ if (P) {
145
+ if (/* @__PURE__ */ Re(V) !== null)
146
+ throw St(), Ue;
147
+ V = e;
148
148
  }
149
149
  }
150
150
  function Ui() {
151
- for (var e = 0, t = P; ; ) {
151
+ for (var e = 0, t = V; ; ) {
152
152
  if (t.nodeType === 8) {
153
153
  var r = (
154
154
  /** @type {Comment} */
@@ -161,19 +161,19 @@ function Ui() {
161
161
  }
162
162
  var l = (
163
163
  /** @type {TemplateNode} */
164
- /* @__PURE__ */ $e(t)
164
+ /* @__PURE__ */ Re(t)
165
165
  );
166
166
  t.remove(), t = l;
167
167
  }
168
168
  }
169
- function le(e, t = null, r) {
169
+ function ie(e, t = null, r) {
170
170
  if (typeof e != "object" || e === null || ut in e)
171
171
  return e;
172
172
  const l = Xt(e);
173
173
  if (l !== Ii && l !== $i)
174
174
  return e;
175
- var i = /* @__PURE__ */ new Map(), a = en(e), o = ce(0);
176
- a && i.set("length", ce(
175
+ var i = /* @__PURE__ */ new Map(), a = en(e), o = fe(0);
176
+ a && i.set("length", fe(
177
177
  /** @type {any[]} */
178
178
  e.length
179
179
  ));
@@ -182,45 +182,45 @@ function le(e, t = null, r) {
182
182
  /** @type {any} */
183
183
  e,
184
184
  {
185
- defineProperty(u, f, c) {
186
- (!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && Yi();
187
- var v = i.get(f);
188
- return v === void 0 ? (v = ce(c.value), i.set(f, v)) : V(v, le(c.value, d)), !0;
185
+ defineProperty(u, c, f) {
186
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Yi();
187
+ var h = i.get(c);
188
+ return h === void 0 ? (h = fe(f.value), i.set(c, h)) : T(h, ie(f.value, d)), !0;
189
189
  },
190
- deleteProperty(u, f) {
191
- var c = i.get(f);
192
- if (c === void 0)
193
- f in u && i.set(f, ce(j));
190
+ deleteProperty(u, c) {
191
+ var f = i.get(c);
192
+ if (f === void 0)
193
+ c in u && i.set(c, fe(j));
194
194
  else {
195
- if (a && typeof f == "string") {
196
- var v = (
195
+ if (a && typeof c == "string") {
196
+ var h = (
197
197
  /** @type {Source<number>} */
198
198
  i.get("length")
199
- ), g = Number(f);
200
- Number.isInteger(g) && g < v.v && V(v, g);
199
+ ), g = Number(c);
200
+ Number.isInteger(g) && g < h.v && T(h, g);
201
201
  }
202
- V(c, j), Dr(o);
202
+ T(f, j), Dr(o);
203
203
  }
204
204
  return !0;
205
205
  },
206
- get(u, f, c) {
206
+ get(u, c, f) {
207
207
  var p;
208
- if (f === ut)
208
+ if (c === ut)
209
209
  return e;
210
- var v = i.get(f), g = f in u;
211
- if (v === void 0 && (!g || (p = Ae(u, f)) != null && p.writable) && (v = ce(le(g ? u[f] : j, d)), i.set(f, v)), v !== void 0) {
212
- var m = h(v);
210
+ var h = i.get(c), g = c in u;
211
+ if (h === void 0 && (!g || (p = Ne(u, c)) != null && p.writable) && (h = fe(ie(g ? u[c] : j, d)), i.set(c, h)), h !== void 0) {
212
+ var m = v(h);
213
213
  return m === j ? void 0 : m;
214
214
  }
215
- return Reflect.get(u, f, c);
215
+ return Reflect.get(u, c, f);
216
216
  },
217
- getOwnPropertyDescriptor(u, f) {
218
- var c = Reflect.getOwnPropertyDescriptor(u, f);
219
- if (c && "value" in c) {
220
- var v = i.get(f);
221
- v && (c.value = h(v));
222
- } else if (c === void 0) {
223
- var g = i.get(f), m = g == null ? void 0 : g.v;
217
+ getOwnPropertyDescriptor(u, c) {
218
+ var f = Reflect.getOwnPropertyDescriptor(u, c);
219
+ if (f && "value" in f) {
220
+ var h = i.get(c);
221
+ h && (f.value = v(h));
222
+ } else if (f === void 0) {
223
+ var g = i.get(c), m = g == null ? void 0 : g.v;
224
224
  if (g !== void 0 && m !== j)
225
225
  return {
226
226
  enumerable: !0,
@@ -229,53 +229,53 @@ function le(e, t = null, r) {
229
229
  writable: !0
230
230
  };
231
231
  }
232
- return c;
232
+ return f;
233
233
  },
234
- has(u, f) {
234
+ has(u, c) {
235
235
  var m;
236
- if (f === ut)
236
+ if (c === ut)
237
237
  return !0;
238
- var c = i.get(f), v = c !== void 0 && c.v !== j || Reflect.has(u, f);
239
- if (c !== void 0 || y !== null && (!v || (m = Ae(u, f)) != null && m.writable)) {
240
- c === void 0 && (c = ce(v ? le(u[f], d) : j), i.set(f, c));
241
- var g = h(c);
238
+ var f = i.get(c), h = f !== void 0 && f.v !== j || Reflect.has(u, c);
239
+ if (f !== void 0 || y !== null && (!h || (m = Ne(u, c)) != null && m.writable)) {
240
+ f === void 0 && (f = fe(h ? ie(u[c], d) : j), i.set(c, f));
241
+ var g = v(f);
242
242
  if (g === j)
243
243
  return !1;
244
244
  }
245
- return v;
245
+ return h;
246
246
  },
247
- set(u, f, c, v) {
247
+ set(u, c, f, h) {
248
248
  var Z;
249
- var g = i.get(f), m = f in u;
250
- if (a && f === "length")
251
- for (var p = c; p < /** @type {Source<number>} */
249
+ var g = i.get(c), m = c in u;
250
+ if (a && c === "length")
251
+ for (var p = f; p < /** @type {Source<number>} */
252
252
  g.v; p += 1) {
253
253
  var L = i.get(p + "");
254
- L !== void 0 ? V(L, j) : p in u && (L = ce(j), i.set(p + "", L));
254
+ L !== void 0 ? T(L, j) : p in u && (L = fe(j), i.set(p + "", L));
255
255
  }
256
- g === void 0 ? (!m || (Z = Ae(u, f)) != null && Z.writable) && (g = ce(void 0), V(g, le(c, d)), i.set(f, g)) : (m = g.v !== j, V(g, le(c, d)));
257
- var G = Reflect.getOwnPropertyDescriptor(u, f);
258
- if (G != null && G.set && G.set.call(v, c), !m) {
259
- if (a && typeof f == "string") {
256
+ g === void 0 ? (!m || (Z = Ne(u, c)) != null && Z.writable) && (g = fe(void 0), T(g, ie(f, d)), i.set(c, g)) : (m = g.v !== j, T(g, ie(f, d)));
257
+ var G = Reflect.getOwnPropertyDescriptor(u, c);
258
+ if (G != null && G.set && G.set.call(h, f), !m) {
259
+ if (a && typeof c == "string") {
260
260
  var Q = (
261
261
  /** @type {Source<number>} */
262
262
  i.get("length")
263
- ), D = Number(f);
264
- Number.isInteger(D) && D >= Q.v && V(Q, D + 1);
263
+ ), D = Number(c);
264
+ Number.isInteger(D) && D >= Q.v && T(Q, D + 1);
265
265
  }
266
266
  Dr(o);
267
267
  }
268
268
  return !0;
269
269
  },
270
270
  ownKeys(u) {
271
- h(o);
272
- var f = Reflect.ownKeys(u).filter((g) => {
271
+ v(o);
272
+ var c = Reflect.ownKeys(u).filter((g) => {
273
273
  var m = i.get(g);
274
274
  return m === void 0 || m.v !== j;
275
275
  });
276
- for (var [c, v] of i)
277
- v.v !== j && !(c in u) && f.push(c);
278
- return f;
276
+ for (var [f, h] of i)
277
+ h.v !== j && !(f in u) && c.push(f);
278
+ return c;
279
279
  },
280
280
  setPrototypeOf() {
281
281
  Fi();
@@ -284,62 +284,62 @@ function le(e, t = null, r) {
284
284
  );
285
285
  }
286
286
  function Dr(e, t = 1) {
287
- V(e, e.v + t);
287
+ T(e, e.v + t);
288
288
  }
289
289
  var Yr, cn, dn;
290
290
  function Wt() {
291
291
  if (Yr === void 0) {
292
292
  Yr = window;
293
293
  var e = Element.prototype, t = Node.prototype;
294
- cn = Ae(t, "firstChild").get, dn = Ae(t, "nextSibling").get, e.__click = void 0, e.__className = "", e.__attributes = null, e.__styles = null, e.__e = void 0, Text.prototype.__t = void 0;
294
+ cn = Ne(t, "firstChild").get, dn = Ne(t, "nextSibling").get, e.__click = void 0, e.__className = "", e.__attributes = null, e.__styles = null, e.__e = void 0, Text.prototype.__t = void 0;
295
295
  }
296
296
  }
297
- function Lt(e = "") {
297
+ function Nt(e = "") {
298
298
  return document.createTextNode(e);
299
299
  }
300
300
  // @__NO_SIDE_EFFECTS__
301
- function Te(e) {
301
+ function Le(e) {
302
302
  return cn.call(e);
303
303
  }
304
304
  // @__NO_SIDE_EFFECTS__
305
- function $e(e) {
305
+ function Re(e) {
306
306
  return dn.call(e);
307
307
  }
308
308
  function J(e, t) {
309
- if (!z)
310
- return /* @__PURE__ */ Te(e);
309
+ if (!P)
310
+ return /* @__PURE__ */ Le(e);
311
311
  var r = (
312
312
  /** @type {TemplateNode} */
313
- /* @__PURE__ */ Te(P)
313
+ /* @__PURE__ */ Le(V)
314
314
  );
315
- return r === null && (r = P.appendChild(Lt())), Re(r), r;
315
+ return r === null && (r = V.appendChild(Nt())), ke(r), r;
316
316
  }
317
317
  function Ot(e, t) {
318
- if (!z) {
318
+ if (!P) {
319
319
  var r = (
320
320
  /** @type {DocumentFragment} */
321
- /* @__PURE__ */ Te(
321
+ /* @__PURE__ */ Le(
322
322
  /** @type {Node} */
323
323
  e
324
324
  )
325
325
  );
326
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ $e(r) : r;
326
+ return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Re(r) : r;
327
327
  }
328
- return P;
328
+ return V;
329
329
  }
330
- function me(e, t = 1, r = !1) {
331
- let l = z ? P : e;
330
+ function ge(e, t = 1, r = !1) {
331
+ let l = P ? V : e;
332
332
  for (var i; t--; )
333
333
  i = l, l = /** @type {TemplateNode} */
334
- /* @__PURE__ */ $e(l);
335
- if (!z)
334
+ /* @__PURE__ */ Re(l);
335
+ if (!P)
336
336
  return l;
337
337
  var a = l == null ? void 0 : l.nodeType;
338
338
  if (r && a !== 3) {
339
- var o = Lt();
340
- return l === null ? i == null || i.after(o) : l.before(o), Re(o), o;
339
+ var o = Nt();
340
+ return l === null ? i == null || i.after(o) : l.before(o), ke(o), o;
341
341
  }
342
- return Re(l), /** @type {TemplateNode} */
342
+ return ke(l), /** @type {TemplateNode} */
343
343
  l;
344
344
  }
345
345
  function Mi(e) {
@@ -347,9 +347,9 @@ function Mi(e) {
347
347
  }
348
348
  // @__NO_SIDE_EFFECTS__
349
349
  function ot(e) {
350
- var t = ae | Ce;
351
- y === null ? t |= Ve : y.f |= nn;
352
- var r = R !== null && R.f & ae ? (
350
+ var t = le | xe;
351
+ y === null ? t |= Ae : y.f |= nn;
352
+ var r = R !== null && R.f & le ? (
353
353
  /** @type {Derived} */
354
354
  R
355
355
  ) : null;
@@ -370,16 +370,16 @@ function ot(e) {
370
370
  };
371
371
  return r !== null && (r.children ?? (r.children = [])).push(l), l;
372
372
  }
373
- function hn(e) {
373
+ function vn(e) {
374
374
  var t = e.children;
375
375
  if (t !== null) {
376
376
  e.children = null;
377
377
  for (var r = 0; r < t.length; r += 1) {
378
378
  var l = t[r];
379
- l.f & ae ? qt(
379
+ l.f & le ? qt(
380
380
  /** @type {Derived} */
381
381
  l
382
- ) : Pe(
382
+ ) : Te(
383
383
  /** @type {Effect} */
384
384
  l
385
385
  );
@@ -388,7 +388,7 @@ function hn(e) {
388
388
  }
389
389
  function ji(e) {
390
390
  for (var t = e.parent; t !== null; ) {
391
- if (!(t.f & ae))
391
+ if (!(t.f & le))
392
392
  return (
393
393
  /** @type {Effect} */
394
394
  t
@@ -397,38 +397,38 @@ function ji(e) {
397
397
  }
398
398
  return null;
399
399
  }
400
- function vn(e) {
400
+ function hn(e) {
401
401
  var t, r = y;
402
- he(ji(e));
402
+ de(ji(e));
403
403
  try {
404
- hn(e), t = Sn(e);
404
+ vn(e), t = Sn(e);
405
405
  } finally {
406
- he(r);
406
+ de(r);
407
407
  }
408
408
  return t;
409
409
  }
410
410
  function gn(e) {
411
- var t = vn(e), r = (Ue || e.f & Ve) && e.deps !== null ? gt : B;
411
+ var t = hn(e), r = (We || e.f & Ae) && e.deps !== null ? gt : B;
412
412
  ve(e, r), e.equals(t) || (e.v = t, e.version = $n());
413
413
  }
414
414
  function qt(e) {
415
- hn(e), dt(e, 0), ve(e, qe), e.v = e.children = e.deps = e.ctx = e.reactions = null;
415
+ vn(e), dt(e, 0), ve(e, Ke), e.v = e.children = e.deps = e.ctx = e.reactions = null;
416
416
  }
417
417
  function Bi(e) {
418
- y === null && R === null && Pi(), R !== null && R.f & Ve && Vi(), nr && Ti();
418
+ y === null && R === null && Pi(), R !== null && R.f & Ae && Vi(), nr && Ti();
419
419
  }
420
420
  function Hi(e, t) {
421
421
  var r = t.last;
422
422
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
423
423
  }
424
- function Qe(e, t, r, l = !0) {
425
- var i = (e & vt) !== 0, a = y, o = {
424
+ function qe(e, t, r, l = !0) {
425
+ var i = (e & ht) !== 0, a = y, o = {
426
426
  ctx: X,
427
427
  deps: null,
428
428
  deriveds: null,
429
429
  nodes_start: null,
430
430
  nodes_end: null,
431
- f: e | Ce,
431
+ f: e | xe,
432
432
  first: null,
433
433
  fn: t,
434
434
  last: null,
@@ -440,32 +440,32 @@ function Qe(e, t, r, l = !0) {
440
440
  version: 0
441
441
  };
442
442
  if (r) {
443
- var d = je;
443
+ var d = Me;
444
444
  try {
445
- Xr(!0), Tt(o), o.f |= Si;
446
- } catch (c) {
447
- throw Pe(o), c;
445
+ Xr(!0), At(o), o.f |= Si;
446
+ } catch (f) {
447
+ throw Te(o), f;
448
448
  } finally {
449
449
  Xr(d);
450
450
  }
451
- } else t !== null && Vt(o);
451
+ } else t !== null && Tt(o);
452
452
  var u = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & nn) === 0;
453
- if (!u && !i && l && (a !== null && Hi(o, a), R !== null && R.f & ae)) {
454
- var f = (
453
+ if (!u && !i && l && (a !== null && Hi(o, a), R !== null && R.f & le)) {
454
+ var c = (
455
455
  /** @type {Derived} */
456
456
  R
457
457
  );
458
- (f.children ?? (f.children = [])).push(o);
458
+ (c.children ?? (c.children = [])).push(o);
459
459
  }
460
460
  return o;
461
461
  }
462
462
  function Ji(e) {
463
- const t = Qe(ht, null, !1);
463
+ const t = qe(vt, null, !1);
464
464
  return ve(t, B), t.teardown = e, t;
465
465
  }
466
466
  function Ut(e) {
467
467
  Bi();
468
- var t = y !== null && (y.f & oe) !== 0 && X !== null && !X.m;
468
+ var t = y !== null && (y.f & ae) !== 0 && X !== null && !X.m;
469
469
  if (t) {
470
470
  var r = (
471
471
  /** @type {ComponentContext} */
@@ -482,35 +482,35 @@ function Ut(e) {
482
482
  }
483
483
  }
484
484
  function _n(e) {
485
- const t = Qe(vt, e, !0);
485
+ const t = qe(ht, e, !0);
486
486
  return () => {
487
- Pe(t);
487
+ Te(t);
488
488
  };
489
489
  }
490
490
  function Qt(e) {
491
- return Qe(rn, e, !1);
491
+ return qe(rn, e, !1);
492
492
  }
493
493
  function er(e) {
494
- return Qe(ht, e, !0);
494
+ return qe(vt, e, !0);
495
495
  }
496
- function Oe(e) {
496
+ function Fe(e) {
497
497
  return tr(e);
498
498
  }
499
499
  function tr(e, t = 0) {
500
- return Qe(ht | Jt | t, e, !0);
500
+ return qe(vt | Jt | t, e, !0);
501
501
  }
502
- function It(e, t = !0) {
503
- return Qe(ht | oe, e, !0, t);
502
+ function Rt(e, t = !0) {
503
+ return qe(vt | ae, e, !0, t);
504
504
  }
505
505
  function mn(e) {
506
506
  var t = e.teardown;
507
507
  if (t !== null) {
508
508
  const r = nr, l = R;
509
- Zr(!0), Ie(null);
509
+ Zr(!0), Ce(null);
510
510
  try {
511
511
  t.call(null);
512
512
  } finally {
513
- Zr(r), Ie(l);
513
+ Zr(r), Ce(l);
514
514
  }
515
515
  }
516
516
  }
@@ -526,28 +526,28 @@ function yn(e, t = !1) {
526
526
  var r = e.first;
527
527
  for (e.first = e.last = null; r !== null; ) {
528
528
  var l = r.next;
529
- Pe(r, t), r = l;
529
+ Te(r, t), r = l;
530
530
  }
531
531
  }
532
532
  function Ki(e) {
533
533
  for (var t = e.first; t !== null; ) {
534
534
  var r = t.next;
535
- t.f & oe || Pe(t), t = r;
535
+ t.f & ae || Te(t), t = r;
536
536
  }
537
537
  }
538
- function Pe(e, t = !0) {
538
+ function Te(e, t = !0) {
539
539
  var r = !1;
540
540
  if ((t || e.f & Ni) && e.nodes_start !== null) {
541
541
  for (var l = e.nodes_start, i = e.nodes_end; l !== null; ) {
542
542
  var a = l === i ? null : (
543
543
  /** @type {TemplateNode} */
544
- /* @__PURE__ */ $e(l)
544
+ /* @__PURE__ */ Re(l)
545
545
  );
546
546
  l.remove(), l = a;
547
547
  }
548
548
  r = !0;
549
549
  }
550
- yn(e, t && !r), bn(e), dt(e, 0), ve(e, qe);
550
+ yn(e, t && !r), bn(e), dt(e, 0), ve(e, Ke);
551
551
  var o = e.transitions;
552
552
  if (o !== null)
553
553
  for (const u of o)
@@ -563,7 +563,7 @@ function pn(e) {
563
563
  function Fr(e, t) {
564
564
  var r = [];
565
565
  wn(e, r, !0), qi(r, () => {
566
- Pe(e), t && t();
566
+ Te(e), t && t();
567
567
  });
568
568
  }
569
569
  function qi(e, t) {
@@ -576,12 +576,12 @@ function qi(e, t) {
576
576
  t();
577
577
  }
578
578
  function wn(e, t, r) {
579
- if (!(e.f & He)) {
580
- if (e.f ^= He, e.transitions !== null)
579
+ if (!(e.f & Be)) {
580
+ if (e.f ^= Be, e.transitions !== null)
581
581
  for (const o of e.transitions)
582
582
  (o.is_global || r) && t.push(o);
583
583
  for (var l = e.first; l !== null; ) {
584
- var i = l.next, a = (l.f & Kt) !== 0 || (l.f & oe) !== 0;
584
+ var i = l.next, a = (l.f & Kt) !== 0 || (l.f & ae) !== 0;
585
585
  wn(l, t, a ? r : !1), l = i;
586
586
  }
587
587
  }
@@ -590,10 +590,10 @@ function Or(e) {
590
590
  En(e, !0);
591
591
  }
592
592
  function En(e, t) {
593
- if (e.f & He) {
594
- _t(e) && Tt(e), e.f ^= He;
593
+ if (e.f & Be) {
594
+ _t(e) && At(e), e.f ^= Be;
595
595
  for (var r = e.first; r !== null; ) {
596
- var l = r.next, i = (r.f & Kt) !== 0 || (r.f & oe) !== 0;
596
+ var l = r.next, i = (r.f & Kt) !== 0 || (r.f & ae) !== 0;
597
597
  En(r, i ? t : !1), r = l;
598
598
  }
599
599
  if (e.transitions !== null)
@@ -602,55 +602,55 @@ function En(e, t) {
602
602
  }
603
603
  }
604
604
  const Qi = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
605
- let $t = !1, St = !1, Mt = [], jt = [];
605
+ let It = !1, $t = !1, Mt = [], jt = [];
606
606
  function xn() {
607
- $t = !1;
607
+ It = !1;
608
608
  const e = Mt.slice();
609
609
  Mt = [], tn(e);
610
610
  }
611
611
  function kn() {
612
- St = !1;
612
+ $t = !1;
613
613
  const e = jt.slice();
614
614
  jt = [], tn(e);
615
615
  }
616
616
  function rr(e) {
617
- $t || ($t = !0, queueMicrotask(xn)), Mt.push(e);
617
+ It || (It = !0, queueMicrotask(xn)), Mt.push(e);
618
618
  }
619
619
  function el(e) {
620
- St || (St = !0, Qi(kn)), jt.push(e);
620
+ $t || ($t = !0, Qi(kn)), jt.push(e);
621
621
  }
622
622
  function tl() {
623
- $t && xn(), St && kn();
623
+ It && xn(), $t && kn();
624
624
  }
625
625
  function Cn(e) {
626
626
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
627
627
  }
628
628
  const Rn = 0, rl = 1;
629
- let wt = !1, Et = Rn, ft = !1, ct = null, je = !1, nr = !1;
629
+ let pt = !1, wt = Rn, ft = !1, ct = null, Me = !1, nr = !1;
630
630
  function Xr(e) {
631
- je = e;
631
+ Me = e;
632
632
  }
633
633
  function Zr(e) {
634
634
  nr = e;
635
635
  }
636
- let Le = [], Be = 0;
636
+ let Se = [], je = 0;
637
637
  let R = null;
638
- function Ie(e) {
638
+ function Ce(e) {
639
639
  R = e;
640
640
  }
641
641
  let y = null;
642
- function he(e) {
642
+ function de(e) {
643
643
  y = e;
644
644
  }
645
- let de = null;
645
+ let ce = null;
646
646
  function nl(e) {
647
- de = e;
647
+ ce = e;
648
648
  }
649
- let O = null, q = 0, xe = null;
649
+ let O = null, q = 0, we = null;
650
650
  function il(e) {
651
- xe = e;
651
+ we = e;
652
652
  }
653
- let In = 0, Ue = !1, X = null;
653
+ let In = 0, We = !1, X = null;
654
654
  function $n() {
655
655
  return ++In;
656
656
  }
@@ -660,16 +660,16 @@ function ll() {
660
660
  function _t(e) {
661
661
  var o, d;
662
662
  var t = e.f;
663
- if (t & Ce)
663
+ if (t & xe)
664
664
  return !0;
665
665
  if (t & gt) {
666
- var r = e.deps, l = (t & Ve) !== 0;
666
+ var r = e.deps, l = (t & Ae) !== 0;
667
667
  if (r !== null) {
668
668
  var i;
669
- if (t & Rt) {
669
+ if (t & Ct) {
670
670
  for (i = 0; i < r.length; i++)
671
671
  ((o = r[i]).reactions ?? (o.reactions = [])).push(e);
672
- e.f ^= Rt;
672
+ e.f ^= Ct;
673
673
  }
674
674
  for (i = 0; i < r.length; i++) {
675
675
  var a = r[i];
@@ -679,7 +679,7 @@ function _t(e) {
679
679
  ) && gn(
680
680
  /** @type {Derived} */
681
681
  a
682
- ), l && y !== null && !Ue && !((d = a == null ? void 0 : a.reactions) != null && d.includes(e)) && (a.reactions ?? (a.reactions = [])).push(e), a.version > e.version)
682
+ ), l && y !== null && !We && !((d = a == null ? void 0 : a.reactions) != null && d.includes(e)) && (a.reactions ?? (a.reactions = [])).push(e), a.version > e.version)
683
683
  return !0;
684
684
  }
685
685
  }
@@ -698,18 +698,18 @@ function al(e, t) {
698
698
  }
699
699
  r = r.parent;
700
700
  }
701
- throw wt = !1, e;
701
+ throw pt = !1, e;
702
702
  }
703
703
  function ol(e) {
704
- return (e.f & qe) === 0 && (e.parent === null || (e.parent.f & Zt) === 0);
704
+ return (e.f & Ke) === 0 && (e.parent === null || (e.parent.f & Zt) === 0);
705
705
  }
706
- function At(e, t, r, l) {
707
- if (wt) {
708
- if (r === null && (wt = !1), ol(t))
706
+ function Lt(e, t, r, l) {
707
+ if (pt) {
708
+ if (r === null && (pt = !1), ol(t))
709
709
  throw e;
710
710
  return;
711
711
  }
712
- r !== null && (wt = !0);
712
+ r !== null && (pt = !0);
713
713
  {
714
714
  al(e, t);
715
715
  return;
@@ -717,28 +717,28 @@ function At(e, t, r, l) {
717
717
  }
718
718
  function Sn(e) {
719
719
  var g;
720
- var t = O, r = q, l = xe, i = R, a = Ue, o = de, d = X, u = e.f;
720
+ var t = O, r = q, l = we, i = R, a = We, o = ce, d = X, u = e.f;
721
721
  O = /** @type {null | Value[]} */
722
- null, q = 0, xe = null, R = u & (oe | vt) ? null : e, Ue = !je && (u & Ve) !== 0, de = null, X = e.ctx;
722
+ null, q = 0, we = null, R = u & (ae | ht) ? null : e, We = !Me && (u & Ae) !== 0, ce = null, X = e.ctx;
723
723
  try {
724
- var f = (
724
+ var c = (
725
725
  /** @type {Function} */
726
726
  (0, e.fn)()
727
- ), c = e.deps;
727
+ ), f = e.deps;
728
728
  if (O !== null) {
729
- var v;
730
- if (dt(e, q), c !== null && q > 0)
731
- for (c.length = q + O.length, v = 0; v < O.length; v++)
732
- c[q + v] = O[v];
729
+ var h;
730
+ if (dt(e, q), f !== null && q > 0)
731
+ for (f.length = q + O.length, h = 0; h < O.length; h++)
732
+ f[q + h] = O[h];
733
733
  else
734
- e.deps = c = O;
735
- if (!Ue)
736
- for (v = q; v < c.length; v++)
737
- ((g = c[v]).reactions ?? (g.reactions = [])).push(e);
738
- } else c !== null && q < c.length && (dt(e, q), c.length = q);
739
- return f;
734
+ e.deps = f = O;
735
+ if (!We)
736
+ for (h = q; h < f.length; h++)
737
+ ((g = f[h]).reactions ?? (g.reactions = [])).push(e);
738
+ } else f !== null && q < f.length && (dt(e, q), f.length = q);
739
+ return c;
740
740
  } finally {
741
- O = t, q = r, xe = l, R = i, Ue = a, de = o, X = d;
741
+ O = t, q = r, we = l, R = i, We = a, ce = o, X = d;
742
742
  }
743
743
  }
744
744
  function sl(e, t) {
@@ -750,10 +750,10 @@ function sl(e, t) {
750
750
  i === 0 ? r = t.reactions = null : (r[l] = r[i], r.pop());
751
751
  }
752
752
  }
753
- r === null && t.f & ae && // Destroying a child effect while updating a parent effect can cause a dependency to appear
753
+ r === null && t.f & le && // Destroying a child effect while updating a parent effect can cause a dependency to appear
754
754
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
755
755
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
756
- (O === null || !O.includes(t)) && (ve(t, gt), t.f & (Ve | Rt) || (t.f ^= Rt), dt(
756
+ (O === null || !O.includes(t)) && (ve(t, gt), t.f & (Ae | Ct) || (t.f ^= Ct), dt(
757
757
  /** @type {Derived} **/
758
758
  t,
759
759
  0
@@ -765,9 +765,9 @@ function dt(e, t) {
765
765
  for (var l = t; l < r.length; l++)
766
766
  sl(e, r[l]);
767
767
  }
768
- function Tt(e) {
768
+ function At(e) {
769
769
  var t = e.f;
770
- if (!(t & qe)) {
770
+ if (!(t & Ke)) {
771
771
  ve(e, B);
772
772
  var r = y, l = X;
773
773
  y = e;
@@ -776,32 +776,32 @@ function Tt(e) {
776
776
  var i = Sn(e);
777
777
  e.teardown = typeof i == "function" ? i : null, e.version = In;
778
778
  } catch (a) {
779
- At(a, e, r, l || e.ctx);
779
+ Lt(a, e, r, l || e.ctx);
780
780
  } finally {
781
781
  y = r;
782
782
  }
783
783
  }
784
784
  }
785
785
  function Nn() {
786
- if (Be > 1e3) {
787
- Be = 0;
786
+ if (je > 1e3) {
787
+ je = 0;
788
788
  try {
789
789
  zi();
790
790
  } catch (e) {
791
791
  if (ct !== null)
792
- At(e, ct, null);
792
+ Lt(e, ct, null);
793
793
  else
794
794
  throw e;
795
795
  }
796
796
  }
797
- Be++;
797
+ je++;
798
798
  }
799
799
  function Ln(e) {
800
800
  var t = e.length;
801
801
  if (t !== 0) {
802
802
  Nn();
803
- var r = je;
804
- je = !0;
803
+ var r = Me;
804
+ Me = !0;
805
805
  try {
806
806
  for (var l = 0; l < t; l++) {
807
807
  var i = e[l];
@@ -810,7 +810,7 @@ function Ln(e) {
810
810
  An(i, a), ul(a);
811
811
  }
812
812
  } finally {
813
- je = r;
813
+ Me = r;
814
814
  }
815
815
  }
816
816
  }
@@ -819,45 +819,45 @@ function ul(e) {
819
819
  if (t !== 0)
820
820
  for (var r = 0; r < t; r++) {
821
821
  var l = e[r];
822
- if (!(l.f & (qe | He)))
822
+ if (!(l.f & (Ke | Be)))
823
823
  try {
824
- _t(l) && (Tt(l), l.deps === null && l.first === null && l.nodes_start === null && (l.teardown === null ? pn(l) : l.fn = null));
824
+ _t(l) && (At(l), l.deps === null && l.first === null && l.nodes_start === null && (l.teardown === null ? pn(l) : l.fn = null));
825
825
  } catch (i) {
826
- At(i, l, null, l.ctx);
826
+ Lt(i, l, null, l.ctx);
827
827
  }
828
828
  }
829
829
  }
830
830
  function fl() {
831
- if (ft = !1, Be > 1001)
831
+ if (ft = !1, je > 1001)
832
832
  return;
833
- const e = Le;
834
- Le = [], Ln(e), ft || (Be = 0, ct = null);
833
+ const e = Se;
834
+ Se = [], Ln(e), ft || (je = 0, ct = null);
835
835
  }
836
- function Vt(e) {
837
- Et === Rn && (ft || (ft = !0, queueMicrotask(fl))), ct = e;
836
+ function Tt(e) {
837
+ wt === Rn && (ft || (ft = !0, queueMicrotask(fl))), ct = e;
838
838
  for (var t = e; t.parent !== null; ) {
839
839
  t = t.parent;
840
840
  var r = t.f;
841
- if (r & (vt | oe)) {
841
+ if (r & (ht | ae)) {
842
842
  if (!(r & B)) return;
843
843
  t.f ^= B;
844
844
  }
845
845
  }
846
- Le.push(t);
846
+ Se.push(t);
847
847
  }
848
848
  function An(e, t) {
849
849
  var r = e.first, l = [];
850
850
  e: for (; r !== null; ) {
851
- var i = r.f, a = (i & oe) !== 0, o = a && (i & B) !== 0, d = r.next;
852
- if (!o && !(i & He))
853
- if (i & ht) {
851
+ var i = r.f, a = (i & ae) !== 0, o = a && (i & B) !== 0, d = r.next;
852
+ if (!o && !(i & Be))
853
+ if (i & vt) {
854
854
  if (a)
855
855
  r.f ^= B;
856
856
  else
857
857
  try {
858
- _t(r) && Tt(r);
859
- } catch (v) {
860
- At(v, r, null, r.ctx);
858
+ _t(r) && At(r);
859
+ } catch (h) {
860
+ Lt(h, r, null, r.ctx);
861
861
  }
862
862
  var u = r.first;
863
863
  if (u !== null) {
@@ -866,43 +866,43 @@ function An(e, t) {
866
866
  }
867
867
  } else i & rn && l.push(r);
868
868
  if (d === null) {
869
- let v = r.parent;
870
- for (; v !== null; ) {
871
- if (e === v)
869
+ let h = r.parent;
870
+ for (; h !== null; ) {
871
+ if (e === h)
872
872
  break e;
873
- var f = v.next;
874
- if (f !== null) {
875
- r = f;
873
+ var c = h.next;
874
+ if (c !== null) {
875
+ r = c;
876
876
  continue e;
877
877
  }
878
- v = v.parent;
878
+ h = h.parent;
879
879
  }
880
880
  }
881
881
  r = d;
882
882
  }
883
- for (var c = 0; c < l.length; c++)
884
- u = l[c], t.push(u), An(u, t);
883
+ for (var f = 0; f < l.length; f++)
884
+ u = l[f], t.push(u), An(u, t);
885
885
  }
886
886
  function k(e) {
887
- var t = Et, r = Le;
887
+ var t = wt, r = Se;
888
888
  try {
889
889
  Nn();
890
890
  const i = [];
891
- Et = rl, Le = i, ft = !1, Ln(r);
891
+ wt = rl, Se = i, ft = !1, Ln(r);
892
892
  var l = e == null ? void 0 : e();
893
- return tl(), (Le.length > 0 || i.length > 0) && k(), Be = 0, ct = null, l;
893
+ return tl(), (Se.length > 0 || i.length > 0) && k(), je = 0, ct = null, l;
894
894
  } finally {
895
- Et = t, Le = r;
895
+ wt = t, Se = r;
896
896
  }
897
897
  }
898
898
  async function cl() {
899
899
  await Promise.resolve(), k();
900
900
  }
901
- function h(e) {
902
- var c;
903
- var t = e.f, r = (t & ae) !== 0;
904
- if (r && t & qe) {
905
- var l = vn(
901
+ function v(e) {
902
+ var f;
903
+ var t = e.f, r = (t & le) !== 0;
904
+ if (r && t & Ke) {
905
+ var l = hn(
906
906
  /** @type {Derived} */
907
907
  e
908
908
  );
@@ -912,33 +912,33 @@ function h(e) {
912
912
  ), l;
913
913
  }
914
914
  if (R !== null) {
915
- de !== null && de.includes(e) && Oi();
915
+ ce !== null && ce.includes(e) && Oi();
916
916
  var i = R.deps;
917
- O === null && i !== null && i[q] === e ? q++ : O === null ? O = [e] : O.push(e), xe !== null && y !== null && y.f & B && !(y.f & oe) && xe.includes(e) && (ve(y, Ce), Vt(y));
917
+ O === null && i !== null && i[q] === e ? q++ : O === null ? O = [e] : O.push(e), we !== null && y !== null && y.f & B && !(y.f & ae) && we.includes(e) && (ve(y, xe), Tt(y));
918
918
  } else if (r && /** @type {Derived} */
919
919
  e.deps === null)
920
920
  for (var a = (
921
921
  /** @type {Derived} */
922
922
  e
923
923
  ), o = a.parent, d = a; o !== null; )
924
- if (o.f & ae) {
924
+ if (o.f & le) {
925
925
  var u = (
926
926
  /** @type {Derived} */
927
927
  o
928
928
  );
929
929
  d = u, o = u.parent;
930
930
  } else {
931
- var f = (
931
+ var c = (
932
932
  /** @type {Effect} */
933
933
  o
934
934
  );
935
- (c = f.deriveds) != null && c.includes(d) || (f.deriveds ?? (f.deriveds = [])).push(d);
935
+ (f = c.deriveds) != null && f.includes(d) || (c.deriveds ?? (c.deriveds = [])).push(d);
936
936
  break;
937
937
  }
938
938
  return r && (a = /** @type {Derived} */
939
939
  e, _t(a) && gn(a)), e.v;
940
940
  }
941
- function Ke(e) {
941
+ function Je(e) {
942
942
  const t = R;
943
943
  try {
944
944
  return R = null, e();
@@ -946,7 +946,7 @@ function Ke(e) {
946
946
  R = t;
947
947
  }
948
948
  }
949
- const dl = ~(Ce | gt | B);
949
+ const dl = ~(xe | gt | B);
950
950
  function ve(e, t) {
951
951
  e.f = e.f & dl | t;
952
952
  }
@@ -972,10 +972,10 @@ function Vn(e) {
972
972
  try {
973
973
  for (var i = 0; i < o.length; i++) {
974
974
  var a = o[i];
975
- he(a.effect), Ie(a.reaction), Qt(a.fn);
975
+ de(a.effect), Ce(a.reaction), Qt(a.fn);
976
976
  }
977
977
  } finally {
978
- he(r), Ie(l);
978
+ de(r), Ce(l);
979
979
  }
980
980
  }
981
981
  X = t.p, t.m = !0;
@@ -1005,14 +1005,14 @@ function Pn() {
1005
1005
  }
1006
1006
  function zn(e) {
1007
1007
  var t = R, r = y;
1008
- Ie(null), he(null);
1008
+ Ce(null), de(null);
1009
1009
  try {
1010
1010
  return e();
1011
1011
  } finally {
1012
- Ie(t), he(r);
1012
+ Ce(t), de(r);
1013
1013
  }
1014
1014
  }
1015
- function hl(e, t, r, l = r) {
1015
+ function vl(e, t, r, l = r) {
1016
1016
  e.addEventListener(t, () => zn(r));
1017
1017
  const i = e.__on_r;
1018
1018
  i ? e.__on_r = () => {
@@ -1020,7 +1020,7 @@ function hl(e, t, r, l = r) {
1020
1020
  } : e.__on_r = () => l(!0), Pn();
1021
1021
  }
1022
1022
  const Gn = /* @__PURE__ */ new Set(), Bt = /* @__PURE__ */ new Set();
1023
- function vl(e, t, r, l) {
1023
+ function hl(e, t, r, l) {
1024
1024
  function i(a) {
1025
1025
  if (l.capture || st.call(t, a), !a.cancelBubble)
1026
1026
  return zn(() => r.call(this, a));
@@ -1030,7 +1030,7 @@ function vl(e, t, r, l) {
1030
1030
  }) : t.addEventListener(e, i, l), i;
1031
1031
  }
1032
1032
  function gl(e, t, r, l, i) {
1033
- var a = { capture: l, passive: i }, o = vl(e, t, r, a);
1033
+ var a = { capture: l, passive: i }, o = hl(e, t, r, a);
1034
1034
  (t === document.body || t === window || t === document) && Ji(() => {
1035
1035
  t.removeEventListener(e, o, a);
1036
1036
  });
@@ -1057,21 +1057,21 @@ function st(e) {
1057
1057
  e.__root = t;
1058
1058
  return;
1059
1059
  }
1060
- var f = i.indexOf(t);
1061
- if (f === -1)
1060
+ var c = i.indexOf(t);
1061
+ if (c === -1)
1062
1062
  return;
1063
- u <= f && (o = u);
1063
+ u <= c && (o = u);
1064
1064
  }
1065
1065
  if (a = /** @type {Element} */
1066
1066
  i[o] || e.target, a !== t) {
1067
- Ct(e, "currentTarget", {
1067
+ kt(e, "currentTarget", {
1068
1068
  configurable: !0,
1069
1069
  get() {
1070
1070
  return a || r;
1071
1071
  }
1072
1072
  });
1073
- var c = R, v = y;
1074
- Ie(null), he(null);
1073
+ var f = R, h = y;
1074
+ Ce(null), de(null);
1075
1075
  try {
1076
1076
  for (var g, m = []; a !== null; ) {
1077
1077
  var p = a.assignedSlot || a.parentNode || /** @type {any} */
@@ -1100,7 +1100,7 @@ function st(e) {
1100
1100
  throw g;
1101
1101
  }
1102
1102
  } finally {
1103
- e.__root = t, delete e.currentTarget, Ie(c), he(v);
1103
+ e.__root = t, delete e.currentTarget, Ce(f), de(h);
1104
1104
  }
1105
1105
  }
1106
1106
  }
@@ -1108,7 +1108,7 @@ function Dn(e) {
1108
1108
  var t = document.createElement("template");
1109
1109
  return t.innerHTML = e, t.content;
1110
1110
  }
1111
- function ke(e, t) {
1111
+ function Ee(e, t) {
1112
1112
  var r = (
1113
1113
  /** @type {Effect} */
1114
1114
  y
@@ -1116,13 +1116,13 @@ function ke(e, t) {
1116
1116
  r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
1117
1117
  }
1118
1118
  // @__NO_SIDE_EFFECTS__
1119
- function se(e, t) {
1119
+ function oe(e, t) {
1120
1120
  var r = (t & xi) !== 0, l = (t & ki) !== 0, i, a = !e.startsWith("<!>");
1121
1121
  return () => {
1122
- if (z)
1123
- return ke(P, null), P;
1122
+ if (P)
1123
+ return Ee(V, null), V;
1124
1124
  i === void 0 && (i = Dn(a ? e : "<!>" + e), r || (i = /** @type {Node} */
1125
- /* @__PURE__ */ Te(i)));
1125
+ /* @__PURE__ */ Le(i)));
1126
1126
  var o = (
1127
1127
  /** @type {TemplateNode} */
1128
1128
  l ? document.importNode(i, !0) : i.cloneNode(!0)
@@ -1130,26 +1130,26 @@ function se(e, t) {
1130
1130
  if (r) {
1131
1131
  var d = (
1132
1132
  /** @type {TemplateNode} */
1133
- /* @__PURE__ */ Te(o)
1133
+ /* @__PURE__ */ Le(o)
1134
1134
  ), u = (
1135
1135
  /** @type {TemplateNode} */
1136
1136
  o.lastChild
1137
1137
  );
1138
- ke(d, u);
1138
+ Ee(d, u);
1139
1139
  } else
1140
- ke(o, o);
1140
+ Ee(o, o);
1141
1141
  return o;
1142
1142
  };
1143
1143
  }
1144
1144
  function ml() {
1145
- if (z)
1146
- return ke(P, null), P;
1147
- var e = document.createDocumentFragment(), t = document.createComment(""), r = Lt();
1148
- return e.append(t, r), ke(t, r), e;
1145
+ if (P)
1146
+ return Ee(V, null), V;
1147
+ var e = document.createDocumentFragment(), t = document.createComment(""), r = Nt();
1148
+ return e.append(t, r), Ee(t, r), e;
1149
1149
  }
1150
1150
  function K(e, t) {
1151
- if (z) {
1152
- y.nodes_end = P, Je();
1151
+ if (P) {
1152
+ y.nodes_end = V, He();
1153
1153
  return;
1154
1154
  }
1155
1155
  e !== null && e.before(
@@ -1166,54 +1166,54 @@ function Yn(e, t) {
1166
1166
  }
1167
1167
  function pl(e, t) {
1168
1168
  Wt(), t.intro = t.intro ?? !1;
1169
- const r = t.target, l = z, i = P;
1169
+ const r = t.target, l = P, i = V;
1170
1170
  try {
1171
1171
  for (var a = (
1172
1172
  /** @type {TemplateNode} */
1173
- /* @__PURE__ */ Te(r)
1173
+ /* @__PURE__ */ Le(r)
1174
1174
  ); a && (a.nodeType !== 8 || /** @type {Comment} */
1175
1175
  a.data !== Jr); )
1176
1176
  a = /** @type {TemplateNode} */
1177
- /* @__PURE__ */ $e(a);
1177
+ /* @__PURE__ */ Re(a);
1178
1178
  if (!a)
1179
- throw Me;
1180
- We(!0), Re(
1179
+ throw Ue;
1180
+ Ze(!0), ke(
1181
1181
  /** @type {Comment} */
1182
1182
  a
1183
- ), Je();
1183
+ ), He();
1184
1184
  const o = Fn(e, { ...t, anchor: a });
1185
- if (P === null || P.nodeType !== 8 || /** @type {Comment} */
1186
- P.data !== qr)
1187
- throw Nt(), Me;
1188
- return We(!1), /** @type {Exports} */
1185
+ if (V === null || V.nodeType !== 8 || /** @type {Comment} */
1186
+ V.data !== qr)
1187
+ throw St(), Ue;
1188
+ return Ze(!1), /** @type {Exports} */
1189
1189
  o;
1190
1190
  } catch (o) {
1191
- if (o === Me)
1192
- return t.recover === !1 && Gi(), Wt(), Mi(r), We(!1), Yn(e, t);
1191
+ if (o === Ue)
1192
+ return t.recover === !1 && Gi(), Wt(), Mi(r), Ze(!1), Yn(e, t);
1193
1193
  throw o;
1194
1194
  } finally {
1195
- We(l), Re(i);
1195
+ Ze(l), ke(i);
1196
1196
  }
1197
1197
  }
1198
- const Xe = /* @__PURE__ */ new Map();
1198
+ const Oe = /* @__PURE__ */ new Map();
1199
1199
  function Fn(e, { target: t, anchor: r, props: l = {}, events: i, context: a, intro: o = !0 }) {
1200
1200
  Wt();
1201
- var d = /* @__PURE__ */ new Set(), u = (v) => {
1202
- for (var g = 0; g < v.length; g++) {
1203
- var m = v[g];
1201
+ var d = /* @__PURE__ */ new Set(), u = (h) => {
1202
+ for (var g = 0; g < h.length; g++) {
1203
+ var m = h[g];
1204
1204
  if (!d.has(m)) {
1205
1205
  d.add(m);
1206
1206
  var p = yl(m);
1207
1207
  t.addEventListener(m, st, { passive: p });
1208
- var L = Xe.get(m);
1209
- L === void 0 ? (document.addEventListener(m, st, { passive: p }), Xe.set(m, 1)) : Xe.set(m, L + 1);
1208
+ var L = Oe.get(m);
1209
+ L === void 0 ? (document.addEventListener(m, st, { passive: p }), Oe.set(m, 1)) : Oe.set(m, L + 1);
1210
1210
  }
1211
1211
  }
1212
1212
  };
1213
1213
  u(Ci(Gn)), Bt.add(u);
1214
- var f = void 0, c = _n(() => {
1215
- var v = r ?? t.appendChild(Lt());
1216
- return It(() => {
1214
+ var c = void 0, f = _n(() => {
1215
+ var h = r ?? t.appendChild(Nt());
1216
+ return Rt(() => {
1217
1217
  if (a) {
1218
1218
  Tn({});
1219
1219
  var g = (
@@ -1222,88 +1222,88 @@ function Fn(e, { target: t, anchor: r, props: l = {}, events: i, context: a, int
1222
1222
  );
1223
1223
  g.c = a;
1224
1224
  }
1225
- i && (l.$$events = i), z && ke(
1225
+ i && (l.$$events = i), P && Ee(
1226
1226
  /** @type {TemplateNode} */
1227
- v,
1227
+ h,
1228
1228
  null
1229
- ), f = e(v, l) || {}, z && (y.nodes_end = P), a && Vn();
1229
+ ), c = e(h, l) || {}, P && (y.nodes_end = V), a && Vn();
1230
1230
  }), () => {
1231
1231
  var p;
1232
1232
  for (var g of d) {
1233
1233
  t.removeEventListener(g, st);
1234
1234
  var m = (
1235
1235
  /** @type {number} */
1236
- Xe.get(g)
1236
+ Oe.get(g)
1237
1237
  );
1238
- --m === 0 ? (document.removeEventListener(g, st), Xe.delete(g)) : Xe.set(g, m);
1238
+ --m === 0 ? (document.removeEventListener(g, st), Oe.delete(g)) : Oe.set(g, m);
1239
1239
  }
1240
- Bt.delete(u), Ht.delete(f), v !== r && ((p = v.parentNode) == null || p.removeChild(v));
1240
+ Bt.delete(u), Ht.delete(c), h !== r && ((p = h.parentNode) == null || p.removeChild(h));
1241
1241
  };
1242
1242
  });
1243
- return Ht.set(f, c), f;
1243
+ return Ht.set(c, f), c;
1244
1244
  }
1245
1245
  let Ht = /* @__PURE__ */ new WeakMap();
1246
1246
  function wl(e) {
1247
1247
  const t = Ht.get(e);
1248
1248
  t && t();
1249
1249
  }
1250
- function Ee(e, t, r = !1) {
1251
- z && Je();
1250
+ function pe(e, t, r = !1) {
1251
+ P && He();
1252
1252
  var l = e, i = null, a = null, o = j, d = r ? Kt : 0, u = !1;
1253
- const f = (v, g = !0) => {
1254
- u = !0, c(g, v);
1255
- }, c = (v, g) => {
1256
- if (o === (o = v)) return;
1253
+ const c = (h, g = !0) => {
1254
+ u = !0, f(g, h);
1255
+ }, f = (h, g) => {
1256
+ if (o === (o = h)) return;
1257
1257
  let m = !1;
1258
- if (z) {
1258
+ if (P) {
1259
1259
  const p = (
1260
1260
  /** @type {Comment} */
1261
1261
  l.data === Kr
1262
1262
  );
1263
- !!o === p && (l = Ui(), Re(l), We(!1), m = !0);
1263
+ !!o === p && (l = Ui(), ke(l), Ze(!1), m = !0);
1264
1264
  }
1265
- o ? (i ? Or(i) : g && (i = It(() => g(l))), a && Fr(a, () => {
1265
+ o ? (i ? Or(i) : g && (i = Rt(() => g(l))), a && Fr(a, () => {
1266
1266
  a = null;
1267
- })) : (a ? Or(a) : g && (a = It(() => g(l))), i && Fr(i, () => {
1267
+ })) : (a ? Or(a) : g && (a = Rt(() => g(l))), i && Fr(i, () => {
1268
1268
  i = null;
1269
- })), m && We(!0);
1269
+ })), m && Ze(!0);
1270
1270
  };
1271
1271
  tr(() => {
1272
- u = !1, t(f), u || c(null, null);
1273
- }, d), z && (l = P);
1272
+ u = !1, t(c), u || f(null, null);
1273
+ }, d), P && (l = V);
1274
1274
  }
1275
- function Ze(e, t, r, l, i) {
1275
+ function Xe(e, t, r, l, i) {
1276
1276
  var a = e, o = "", d;
1277
1277
  tr(() => {
1278
1278
  if (o === (o = t() ?? "")) {
1279
- z && Je();
1279
+ P && He();
1280
1280
  return;
1281
1281
  }
1282
- d !== void 0 && (Pe(d), d = void 0), o !== "" && (d = It(() => {
1283
- if (z) {
1284
- P.data;
1285
- for (var u = Je(), f = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
1282
+ d !== void 0 && (Te(d), d = void 0), o !== "" && (d = Rt(() => {
1283
+ if (P) {
1284
+ V.data;
1285
+ for (var u = He(), c = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
1286
1286
  u.data !== ""); )
1287
- f = u, u = /** @type {TemplateNode} */
1288
- /* @__PURE__ */ $e(u);
1287
+ c = u, u = /** @type {TemplateNode} */
1288
+ /* @__PURE__ */ Re(u);
1289
1289
  if (u === null)
1290
- throw Nt(), Me;
1291
- ke(P, f), a = Re(u);
1290
+ throw St(), Ue;
1291
+ Ee(V, c), a = ke(u);
1292
1292
  return;
1293
1293
  }
1294
- var c = o + "", v = Dn(c);
1295
- ke(
1294
+ var f = o + "", h = Dn(f);
1295
+ Ee(
1296
1296
  /** @type {TemplateNode} */
1297
- /* @__PURE__ */ Te(v),
1297
+ /* @__PURE__ */ Le(h),
1298
1298
  /** @type {TemplateNode} */
1299
- v.lastChild
1300
- ), a.before(v);
1299
+ h.lastChild
1300
+ ), a.before(h);
1301
1301
  }));
1302
1302
  });
1303
1303
  }
1304
1304
  function El(e, t, r, l, i) {
1305
1305
  var d;
1306
- z && Je();
1306
+ P && He();
1307
1307
  var a = (d = t.$$slots) == null ? void 0 : d[r], o = !1;
1308
1308
  a === !0 && (a = t.children, o = !0), a === void 0 || a(e, o ? () => l : l);
1309
1309
  }
@@ -1327,16 +1327,16 @@ function xl(e, t) {
1327
1327
  });
1328
1328
  }
1329
1329
  function Ur(e) {
1330
- if (z) {
1330
+ if (P) {
1331
1331
  var t = !1, r = () => {
1332
1332
  if (!t) {
1333
1333
  if (t = !0, e.hasAttribute("value")) {
1334
1334
  var l = e.value;
1335
- ie(e, "value", null), e.value = l;
1335
+ ne(e, "value", null), e.value = l;
1336
1336
  }
1337
1337
  if (e.hasAttribute("checked")) {
1338
1338
  var i = e.checked;
1339
- ie(e, "checked", null), e.checked = i;
1339
+ ne(e, "checked", null), e.checked = i;
1340
1340
  }
1341
1341
  }
1342
1342
  };
@@ -1350,9 +1350,9 @@ function kl(e, t) {
1350
1350
  // `progress` elements always need their value set when its `0`
1351
1351
  e.value === t && (t !== 0 || e.nodeName !== "PROGRESS") || (e.value = t);
1352
1352
  }
1353
- function ie(e, t, r, l) {
1353
+ function ne(e, t, r, l) {
1354
1354
  var i = e.__attributes ?? (e.__attributes = {});
1355
- z && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || i[t] !== (i[t] = r) && (t === "style" && "__styles" in e && (e.__styles = {}), t === "loading" && (e[Li] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Cl(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1355
+ P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || i[t] !== (i[t] = r) && (t === "style" && "__styles" in e && (e.__styles = {}), t === "loading" && (e[Li] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Cl(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1356
1356
  }
1357
1357
  var Mr = /* @__PURE__ */ new Map();
1358
1358
  function Cl(e) {
@@ -1377,13 +1377,13 @@ function Rl(e, t, r) {
1377
1377
  }
1378
1378
  }
1379
1379
  function Il(e, t, r = t) {
1380
- hl(e, "change", (l) => {
1380
+ vl(e, "change", (l) => {
1381
1381
  var i = l ? e.defaultChecked : e.checked;
1382
1382
  r(i);
1383
1383
  }), // If we are hydrating and the value has since changed,
1384
1384
  // then use the update value from the input instead.
1385
- (z && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
1386
- Ke(t) == null) && r(e.checked), er(() => {
1385
+ (P && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
1386
+ Je(t) == null) && r(e.checked), er(() => {
1387
1387
  var l = t();
1388
1388
  e.checked = !!l;
1389
1389
  });
@@ -1395,7 +1395,7 @@ function Br(e = {}, t, r, l) {
1395
1395
  return Qt(() => {
1396
1396
  var i, a;
1397
1397
  return er(() => {
1398
- i = a, a = [], Ke(() => {
1398
+ i = a, a = [], Je(() => {
1399
1399
  e !== r(...a) && (t(e, ...a), i && jr(r(...i), e) && t(null, ...i));
1400
1400
  });
1401
1401
  }), () => {
@@ -1407,7 +1407,7 @@ function Br(e = {}, t, r, l) {
1407
1407
  }
1408
1408
  function On(e) {
1409
1409
  X === null && Cn(), Ut(() => {
1410
- const t = Ke(e);
1410
+ const t = Je(e);
1411
1411
  if (typeof t == "function") return (
1412
1412
  /** @type {() => void} */
1413
1413
  t
@@ -1415,43 +1415,43 @@ function On(e) {
1415
1415
  });
1416
1416
  }
1417
1417
  function $l(e) {
1418
- X === null && Cn(), On(() => () => Ke(e));
1418
+ X === null && Cn(), On(() => () => Je(e));
1419
1419
  }
1420
- let pt = !1;
1420
+ let yt = !1;
1421
1421
  function Sl(e) {
1422
- var t = pt;
1422
+ var t = yt;
1423
1423
  try {
1424
- return pt = !1, [e(), pt];
1424
+ return yt = !1, [e(), yt];
1425
1425
  } finally {
1426
- pt = t;
1426
+ yt = t;
1427
1427
  }
1428
1428
  }
1429
1429
  function Nl(e) {
1430
- for (var t = y, r = y; t !== null && !(t.f & (oe | vt)); )
1430
+ for (var t = y, r = y; t !== null && !(t.f & (ae | ht)); )
1431
1431
  t = t.parent;
1432
1432
  try {
1433
- return he(t), e();
1433
+ return de(t), e();
1434
1434
  } finally {
1435
- he(r);
1435
+ de(r);
1436
1436
  }
1437
1437
  }
1438
1438
  function N(e, t, r, l) {
1439
- var ye;
1440
- var i = (r & yi) !== 0, a = !sn, o = (r & wi) !== 0, d = (r & Ei) !== 0, u = !1, f;
1441
- o ? [f, u] = Sl(() => (
1439
+ var me;
1440
+ var i = (r & yi) !== 0, a = !sn, o = (r & wi) !== 0, d = (r & Ei) !== 0, u = !1, c;
1441
+ o ? [c, u] = Sl(() => (
1442
1442
  /** @type {V} */
1443
1443
  e[t]
1444
- )) : f = /** @type {V} */
1444
+ )) : c = /** @type {V} */
1445
1445
  e[t];
1446
- var c = ut in e || ln in e, v = ((ye = Ae(e, t)) == null ? void 0 : ye.set) ?? (c && o && t in e ? (I) => e[t] = I : void 0), g = (
1446
+ var f = ut in e || ln in e, h = ((me = Ne(e, t)) == null ? void 0 : me.set) ?? (f && o && t in e ? (I) => e[t] = I : void 0), g = (
1447
1447
  /** @type {V} */
1448
1448
  l
1449
- ), m = !0, p = !1, L = () => (p = !0, m && (m = !1, d ? g = Ke(
1449
+ ), m = !0, p = !1, L = () => (p = !0, m && (m = !1, d ? g = Je(
1450
1450
  /** @type {() => V} */
1451
1451
  l
1452
1452
  ) : g = /** @type {V} */
1453
1453
  l), g);
1454
- f === void 0 && l !== void 0 && (v && a && Di(), f = L(), v && v(f));
1454
+ c === void 0 && l !== void 0 && (h && a && Di(), c = L(), h && h(c));
1455
1455
  var G;
1456
1456
  if (G = () => {
1457
1457
  var I = (
@@ -1461,30 +1461,30 @@ function N(e, t, r, l) {
1461
1461
  return I === void 0 ? L() : (m = !0, p = !1, I);
1462
1462
  }, !(r & pi))
1463
1463
  return G;
1464
- if (v) {
1464
+ if (h) {
1465
1465
  var Q = e.$$legacy;
1466
1466
  return function(I, W) {
1467
- return arguments.length > 0 ? ((!W || Q || u) && v(W ? G() : I), I) : G();
1467
+ return arguments.length > 0 ? ((!W || Q || u) && h(W ? G() : I), I) : G();
1468
1468
  };
1469
1469
  }
1470
- var D = !1, Z = !1, ge = /* @__PURE__ */ un(f), F = Nl(
1470
+ var D = !1, Z = !1, he = /* @__PURE__ */ un(c), F = Nl(
1471
1471
  () => /* @__PURE__ */ ot(() => {
1472
- var I = G(), W = h(ge);
1473
- return D ? (D = !1, Z = !0, W) : (Z = !1, ge.v = I);
1472
+ var I = G(), W = v(he);
1473
+ return D ? (D = !1, Z = !0, W) : (Z = !1, he.v = I);
1474
1474
  })
1475
1475
  );
1476
1476
  return i || (F.equals = on), function(I, W) {
1477
1477
  if (arguments.length > 0) {
1478
- const ue = W ? h(F) : o ? le(I) : I;
1479
- return F.equals(ue) || (D = !0, V(ge, ue), p && g !== void 0 && (g = ue), Ke(() => h(F))), I;
1478
+ const se = W ? v(F) : o ? ie(I) : I;
1479
+ return F.equals(se) || (D = !0, T(he, se), p && g !== void 0 && (g = se), Je(() => v(F))), I;
1480
1480
  }
1481
- return h(F);
1481
+ return v(F);
1482
1482
  };
1483
1483
  }
1484
1484
  function Ll(e) {
1485
1485
  return new Al(e);
1486
1486
  }
1487
- var be, te;
1487
+ var _e, te;
1488
1488
  class Al {
1489
1489
  /**
1490
1490
  * @param {ComponentConstructorOptions & {
@@ -1493,7 +1493,7 @@ class Al {
1493
1493
  */
1494
1494
  constructor(t) {
1495
1495
  /** @type {any} */
1496
- Yt(this, be);
1496
+ Yt(this, _e);
1497
1497
  /** @type {Record<string, any>} */
1498
1498
  Yt(this, te);
1499
1499
  var a;
@@ -1505,13 +1505,13 @@ class Al {
1505
1505
  { ...t.props || {}, $$events: {} },
1506
1506
  {
1507
1507
  get(o, d) {
1508
- return h(r.get(d) ?? l(d, Reflect.get(o, d)));
1508
+ return v(r.get(d) ?? l(d, Reflect.get(o, d)));
1509
1509
  },
1510
1510
  has(o, d) {
1511
- return d === ln ? !0 : (h(r.get(d) ?? l(d, Reflect.get(o, d))), Reflect.has(o, d));
1511
+ return d === ln ? !0 : (v(r.get(d) ?? l(d, Reflect.get(o, d))), Reflect.has(o, d));
1512
1512
  },
1513
1513
  set(o, d, u) {
1514
- return V(r.get(d) ?? l(d, u), u), Reflect.set(o, d, u);
1514
+ return T(r.get(d) ?? l(d, u), u), Reflect.set(o, d, u);
1515
1515
  }
1516
1516
  }
1517
1517
  );
@@ -1522,9 +1522,9 @@ class Al {
1522
1522
  context: t.context,
1523
1523
  intro: t.intro ?? !1,
1524
1524
  recover: t.recover
1525
- })), (!((a = t == null ? void 0 : t.props) != null && a.$$host) || t.sync === !1) && k(), Ft(this, be, i.$$events);
1525
+ })), (!((a = t == null ? void 0 : t.props) != null && a.$$host) || t.sync === !1) && k(), Ft(this, _e, i.$$events);
1526
1526
  for (const o of Object.keys(M(this, te)))
1527
- o === "$set" || o === "$destroy" || o === "$on" || Ct(this, o, {
1527
+ o === "$set" || o === "$destroy" || o === "$on" || kt(this, o, {
1528
1528
  get() {
1529
1529
  return M(this, te)[o];
1530
1530
  },
@@ -1551,10 +1551,10 @@ class Al {
1551
1551
  * @returns {any}
1552
1552
  */
1553
1553
  $on(t, r) {
1554
- M(this, be)[t] = M(this, be)[t] || [];
1554
+ M(this, _e)[t] = M(this, _e)[t] || [];
1555
1555
  const l = (...i) => r.call(this, ...i);
1556
- return M(this, be)[t].push(l), () => {
1557
- M(this, be)[t] = M(this, be)[t].filter(
1556
+ return M(this, _e)[t].push(l), () => {
1557
+ M(this, _e)[t] = M(this, _e)[t].filter(
1558
1558
  /** @param {any} fn */
1559
1559
  (i) => i !== l
1560
1560
  );
@@ -1564,7 +1564,7 @@ class Al {
1564
1564
  M(this, te).$destroy();
1565
1565
  }
1566
1566
  }
1567
- be = new WeakMap(), te = new WeakMap();
1567
+ _e = new WeakMap(), te = new WeakMap();
1568
1568
  let Xn;
1569
1569
  typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
1570
1570
  /**
@@ -1575,25 +1575,25 @@ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
1575
1575
  constructor(t, r, l) {
1576
1576
  super();
1577
1577
  /** The Svelte component constructor */
1578
- ne(this, "$$ctor");
1578
+ re(this, "$$ctor");
1579
1579
  /** Slots */
1580
- ne(this, "$$s");
1580
+ re(this, "$$s");
1581
1581
  /** @type {any} The Svelte component instance */
1582
- ne(this, "$$c");
1582
+ re(this, "$$c");
1583
1583
  /** Whether or not the custom element is connected */
1584
- ne(this, "$$cn", !1);
1584
+ re(this, "$$cn", !1);
1585
1585
  /** @type {Record<string, any>} Component props data */
1586
- ne(this, "$$d", {});
1586
+ re(this, "$$d", {});
1587
1587
  /** `true` if currently in the process of reflecting component props back to attributes */
1588
- ne(this, "$$r", !1);
1588
+ re(this, "$$r", !1);
1589
1589
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
1590
- ne(this, "$$p_d", {});
1590
+ re(this, "$$p_d", {});
1591
1591
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
1592
- ne(this, "$$l", {});
1592
+ re(this, "$$l", {});
1593
1593
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
1594
- ne(this, "$$l_u", /* @__PURE__ */ new Map());
1594
+ re(this, "$$l_u", /* @__PURE__ */ new Map());
1595
1595
  /** @type {any} The managed render effect for reflecting attributes */
1596
- ne(this, "$$me");
1596
+ re(this, "$$me");
1597
1597
  this.$$ctor = t, this.$$s = r, l && this.attachShadow({ mode: "open" });
1598
1598
  }
1599
1599
  /**
@@ -1634,7 +1634,7 @@ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
1634
1634
  i in l && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), r.default = !0) : r[i] = t(i));
1635
1635
  for (const i of this.attributes) {
1636
1636
  const a = this.$$g_p(i.name);
1637
- a in this.$$d || (this.$$d[a] = xt(a, i.value, this.$$p_d, "toProp"));
1637
+ a in this.$$d || (this.$$d[a] = Et(a, i.value, this.$$p_d, "toProp"));
1638
1638
  }
1639
1639
  for (const i in this.$$p_d)
1640
1640
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -1650,10 +1650,10 @@ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
1650
1650
  er(() => {
1651
1651
  var i;
1652
1652
  this.$$r = !0;
1653
- for (const a of kt(this.$$c)) {
1653
+ for (const a of xt(this.$$c)) {
1654
1654
  if (!((i = this.$$p_d[a]) != null && i.reflect)) continue;
1655
1655
  this.$$d[a] = this.$$c[a];
1656
- const o = xt(
1656
+ const o = Et(
1657
1657
  a,
1658
1658
  this.$$d[a],
1659
1659
  this.$$p_d,
@@ -1681,7 +1681,7 @@ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
1681
1681
  */
1682
1682
  attributeChangedCallback(t, r, l) {
1683
1683
  var i;
1684
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = xt(t, l, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
1684
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Et(t, l, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
1685
1685
  }
1686
1686
  disconnectedCallback() {
1687
1687
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -1692,12 +1692,12 @@ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
1692
1692
  * @param {string} attribute_name
1693
1693
  */
1694
1694
  $$g_p(t) {
1695
- return kt(this.$$p_d).find(
1695
+ return xt(this.$$p_d).find(
1696
1696
  (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
1697
1697
  ) || t;
1698
1698
  }
1699
1699
  });
1700
- function xt(e, t, r, l) {
1700
+ function Et(e, t, r, l) {
1701
1701
  var a;
1702
1702
  const i = (a = r[e]) == null ? void 0 : a.type;
1703
1703
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !l || !r[e])
@@ -1742,28 +1742,28 @@ function Vl(e, t, r, l, i, a) {
1742
1742
  super(e, r, i), this.$$p_d = t;
1743
1743
  }
1744
1744
  static get observedAttributes() {
1745
- return kt(t).map(
1745
+ return xt(t).map(
1746
1746
  (d) => (t[d].attribute || d).toLowerCase()
1747
1747
  );
1748
1748
  }
1749
1749
  };
1750
- return kt(t).forEach((d) => {
1751
- Ct(o.prototype, d, {
1750
+ return xt(t).forEach((d) => {
1751
+ kt(o.prototype, d, {
1752
1752
  get() {
1753
1753
  return this.$$c && d in this.$$c ? this.$$c[d] : this.$$d[d];
1754
1754
  },
1755
1755
  set(u) {
1756
- var v;
1757
- u = xt(d, u, t), this.$$d[d] = u;
1758
- var f = this.$$c;
1759
- if (f) {
1760
- var c = (v = Ae(f, d)) == null ? void 0 : v.get;
1761
- c ? f[d] = u : f.$set({ [d]: u });
1756
+ var h;
1757
+ u = Et(d, u, t), this.$$d[d] = u;
1758
+ var c = this.$$c;
1759
+ if (c) {
1760
+ var f = (h = Ne(c, d)) == null ? void 0 : h.get;
1761
+ f ? c[d] = u : c.$set({ [d]: u });
1762
1762
  }
1763
1763
  }
1764
1764
  });
1765
1765
  }), l.forEach((d) => {
1766
- Ct(o.prototype, d, {
1766
+ kt(o.prototype, d, {
1767
1767
  get() {
1768
1768
  var u;
1769
1769
  return (u = this.$$c) == null ? void 0 : u[d];
@@ -1835,21 +1835,21 @@ function Fl(e, t = 12) {
1835
1835
  }
1836
1836
  async function Ol(e, t = "", r = 1e6, l = 0) {
1837
1837
  const i = "AES-GCM", a = new AbortController(), o = Date.now(), d = async () => {
1838
- for (let c = l; c <= r; c += 1) {
1839
- if (a.signal.aborted || !u || !f)
1838
+ for (let f = l; f <= r; f += 1) {
1839
+ if (a.signal.aborted || !u || !c)
1840
1840
  return null;
1841
1841
  try {
1842
- const v = await crypto.subtle.decrypt(
1842
+ const h = await crypto.subtle.decrypt(
1843
1843
  {
1844
1844
  name: i,
1845
- iv: Fl(c)
1845
+ iv: Fl(f)
1846
1846
  },
1847
1847
  u,
1848
- f
1848
+ c
1849
1849
  );
1850
- if (v)
1850
+ if (h)
1851
1851
  return {
1852
- clearText: new TextDecoder().decode(v),
1852
+ clearText: new TextDecoder().decode(h),
1853
1853
  took: Date.now() - o
1854
1854
  };
1855
1855
  } catch {
@@ -1857,16 +1857,16 @@ async function Ol(e, t = "", r = 1e6, l = 0) {
1857
1857
  }
1858
1858
  return null;
1859
1859
  };
1860
- let u = null, f = null;
1860
+ let u = null, c = null;
1861
1861
  try {
1862
- f = Yl(e);
1863
- const c = await crypto.subtle.digest(
1862
+ c = Yl(e);
1863
+ const f = await crypto.subtle.digest(
1864
1864
  "SHA-256",
1865
1865
  Zn.encode(t)
1866
1866
  );
1867
1867
  u = await crypto.subtle.importKey(
1868
1868
  "raw",
1869
- c,
1869
+ f,
1870
1870
  i,
1871
1871
  !1,
1872
1872
  ["decrypt"]
@@ -1882,7 +1882,7 @@ async function Ol(e, t = "", r = 1e6, l = 0) {
1882
1882
  controller: a
1883
1883
  };
1884
1884
  }
1885
- var x = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(x || {}), Xl = /* @__PURE__ */ se('<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="svelte-ddsc3z"><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" class="svelte-ddsc3z"></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" class="altcha-spinner svelte-ddsc3z"></path></svg>'), Zl = /* @__PURE__ */ se('<span role="status" aria-live="polite" class="svelte-ddsc3z"><!></span> <input type="hidden" class="svelte-ddsc3z">', 1), Wl = /* @__PURE__ */ se('<span role="status" aria-live="polite" class="svelte-ddsc3z"><!></span>'), Ul = /* @__PURE__ */ se('<label class="svelte-ddsc3z"><!></label>'), Ml = /* @__PURE__ */ se('<div class="svelte-ddsc3z"><a target="_blank" class="altcha-logo svelte-ddsc3z"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-ddsc3z"><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" class="svelte-ddsc3z"></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" class="svelte-ddsc3z"></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" class="svelte-ddsc3z"></path></svg></a></div>'), jl = /* @__PURE__ */ se('<div class="svelte-ddsc3z"><!></div>'), Bl = /* @__PURE__ */ se('<div class="svelte-ddsc3z"><!></div>'), Hl = /* @__PURE__ */ se('<div class="altcha-error svelte-ddsc3z"><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" class="svelte-ddsc3z"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" class="svelte-ddsc3z"></path></svg> <!></div>'), Jl = /* @__PURE__ */ se('<div class="altcha-footer svelte-ddsc3z"><div class="svelte-ddsc3z"><!></div></div>'), Kl = /* @__PURE__ */ se('<div class="altcha-anchor-arrow svelte-ddsc3z"></div>'), ql = /* @__PURE__ */ se('<!> <div class="altcha svelte-ddsc3z"><div class="altcha-main svelte-ddsc3z"><!> <div class="altcha-checkbox svelte-ddsc3z"><input type="checkbox" class="svelte-ddsc3z"></div> <div class="altcha-label svelte-ddsc3z"><!></div> <!></div> <!> <!> <!></div>', 1);
1885
+ var x = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(x || {}), Xl = /* @__PURE__ */ oe('<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="svelte-ddsc3z"><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" class="svelte-ddsc3z"></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" class="altcha-spinner svelte-ddsc3z"></path></svg>'), Zl = /* @__PURE__ */ oe('<span role="status" aria-live="polite" class="svelte-ddsc3z"><!></span> <input type="hidden" class="svelte-ddsc3z">', 1), Wl = /* @__PURE__ */ oe('<span role="status" aria-live="polite" class="svelte-ddsc3z"><!></span>'), Ul = /* @__PURE__ */ oe('<label class="svelte-ddsc3z"><!></label>'), Ml = /* @__PURE__ */ oe('<div class="svelte-ddsc3z"><a target="_blank" class="altcha-logo svelte-ddsc3z"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-ddsc3z"><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" class="svelte-ddsc3z"></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" class="svelte-ddsc3z"></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" class="svelte-ddsc3z"></path></svg></a></div>'), jl = /* @__PURE__ */ oe('<div class="svelte-ddsc3z"><!></div>'), Bl = /* @__PURE__ */ oe('<div class="svelte-ddsc3z"><!></div>'), Hl = /* @__PURE__ */ oe('<div class="altcha-error svelte-ddsc3z"><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" class="svelte-ddsc3z"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" class="svelte-ddsc3z"></path></svg> <!></div>'), Jl = /* @__PURE__ */ oe('<div class="altcha-footer svelte-ddsc3z"><div class="svelte-ddsc3z"><!></div></div>'), Kl = /* @__PURE__ */ oe('<div class="altcha-anchor-arrow svelte-ddsc3z"></div>'), ql = /* @__PURE__ */ oe('<!> <div class="altcha svelte-ddsc3z"><div class="altcha-main svelte-ddsc3z"><!> <div class="altcha-checkbox svelte-ddsc3z"><input type="checkbox" class="svelte-ddsc3z"></div> <div class="altcha-label svelte-ddsc3z"><!></div> <!></div> <!> <!> <!></div>', 1);
1886
1886
  const Ql = {
1887
1887
  hash: "svelte-ddsc3z",
1888
1888
  code: `.altcha.svelte-ddsc3z {background:var(--altcha-color-base, transparent);border:var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0);border-radius:var(--altcha-border-radius, 3px);color:var(--altcha-color-text, currentColor);display:flex;flex-direction:column;max-width:var(--altcha-max-width, 260px);position:relative;text-align:left;}.altcha.svelte-ddsc3z:focus-within {border-color:var(--altcha-color-border-focus, currentColor);}.altcha[data-floating].svelte-ddsc3z {background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999;}.altcha[data-floating=top].svelte-ddsc3z .altcha-anchor-arrow:where(.svelte-ddsc3z) {border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto;}.altcha[data-floating=bottom].svelte-ddsc3z:focus-within::after {border-bottom-color:var(--altcha-color-border-focus, currentColor);}.altcha[data-floating=top].svelte-ddsc3z:focus-within::after {border-top-color:var(--altcha-color-border-focus, currentColor);}.altcha[data-floating].svelte-ddsc3z:not([data-state=unverified]) {display:block;}.altcha-anchor-arrow.svelte-ddsc3z {border:6px solid transparent;border-bottom-color:var(--altcha-color-border, #a0a0a0);content:"";height:0;left:12px;position:absolute;top:-12px;width:0;}.altcha-main.svelte-ddsc3z {align-items:center;display:flex;gap:0.4rem;padding:0.7rem;}.altcha-label.svelte-ddsc3z {flex-grow:1;}.altcha-label.svelte-ddsc3z label:where(.svelte-ddsc3z) {cursor:pointer;}.altcha-logo.svelte-ddsc3z {color:currentColor;opacity:0.3;}.altcha-logo.svelte-ddsc3z:hover {opacity:1;}.altcha-error.svelte-ddsc3z {color:var(--altcha-color-error-text, #f23939);display:flex;font-size:0.85rem;gap:0.3rem;padding:0 0.7rem 0.7rem;}.altcha-footer.svelte-ddsc3z {align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:0.75rem;opacity:0.4;padding:0.2rem 0.7rem;text-align:right;}.altcha-footer.svelte-ddsc3z:hover {opacity:1;}.altcha-footer.svelte-ddsc3z > :where(.svelte-ddsc3z):first-child {flex-grow:1;}.altcha-footer.svelte-ddsc3z a {color:currentColor;}.altcha-checkbox.svelte-ddsc3z {display:flex;align-items:center;height:24px;width:24px;}.altcha-checkbox.svelte-ddsc3z input:where(.svelte-ddsc3z) {width:18px;height:18px;margin:0;}.altcha-hidden.svelte-ddsc3z {display:none;}.altcha-spinner.svelte-ddsc3z {
@@ -1897,37 +1897,37 @@ const Ql = {
1897
1897
  function ea(e, t) {
1898
1898
  var Ar, Tr;
1899
1899
  Tn(t, !0), xl(e, Ql);
1900
- let r = N(t, "auto", 7, void 0), l = N(t, "blockspam", 7, void 0), i = N(t, "challengeurl", 7, void 0), a = N(t, "challengejson", 7, void 0), o = N(t, "customfetch", 7, void 0), d = N(t, "debug", 7, !1), u = N(t, "delay", 7, 0), f = N(t, "expire", 7, void 0), c = N(t, "floating", 7, void 0), v = N(t, "floatinganchor", 7, void 0), g = N(t, "floatingoffset", 7, void 0), m = N(t, "hidefooter", 7, !1), p = N(t, "hidelogo", 7, !1), L = N(t, "name", 7, "altcha"), G = N(t, "maxnumber", 7, 1e6), Q = N(t, "mockerror", 7, !1), D = N(t, "obfuscated", 7, void 0), Z = N(t, "plugins", 7, void 0), ge = N(t, "refetchonexpire", 7, !0), F = N(t, "spamfilter", 7, !1), ye = N(t, "strings", 7, void 0), I = N(t, "test", 7, !1), W = N(t, "verifyurl", 7, void 0), ue = N(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), et = N(t, "workerurl", 7, void 0);
1901
- const ir = ["SHA-256", "SHA-384", "SHA-512"], lr = "Visit Altcha.org", ar = "https://altcha.org/", tt = (n, s) => {
1900
+ let r = N(t, "auto", 7, void 0), l = N(t, "blockspam", 7, void 0), i = N(t, "challengeurl", 7, void 0), a = N(t, "challengejson", 7, void 0), o = N(t, "customfetch", 7, void 0), d = N(t, "debug", 7, !1), u = N(t, "delay", 7, 0), c = N(t, "expire", 7, void 0), f = N(t, "floating", 7, void 0), h = N(t, "floatinganchor", 7, void 0), g = N(t, "floatingoffset", 7, void 0), m = N(t, "hidefooter", 7, !1), p = N(t, "hidelogo", 7, !1), L = N(t, "name", 7, "altcha"), G = N(t, "maxnumber", 7, 1e6), Q = N(t, "mockerror", 7, !1), D = N(t, "obfuscated", 7, void 0), Z = N(t, "plugins", 7, void 0), he = N(t, "refetchonexpire", 7, !0), F = N(t, "spamfilter", 7, !1), me = N(t, "strings", 7, void 0), I = N(t, "test", 7, !1), W = N(t, "verifyurl", 7, void 0), se = N(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), Qe = N(t, "workerurl", 7, void 0);
1901
+ const ir = ["SHA-256", "SHA-384", "SHA-512"], lr = "Visit Altcha.org", ar = "https://altcha.org/", et = (n, s) => {
1902
1902
  t.$$host.dispatchEvent(new CustomEvent(n, { detail: s }));
1903
- }, or = (Tr = (Ar = document.documentElement.lang) == null ? void 0 : Ar.split("-")) == null ? void 0 : Tr[0], Pt = /* @__PURE__ */ ot(() => {
1903
+ }, or = (Tr = (Ar = document.documentElement.lang) == null ? void 0 : Ar.split("-")) == null ? void 0 : Tr[0], Vt = /* @__PURE__ */ ot(() => {
1904
1904
  var n;
1905
1905
  return i() && new URL(i(), location.origin).host.endsWith(".altcha.org") && !!((n = i()) != null && n.includes("apiKey=ckey_"));
1906
- }), zt = /* @__PURE__ */ ot(() => a() ? br(a()) : void 0), sr = /* @__PURE__ */ ot(() => ye() ? br(ye()) : {}), ee = /* @__PURE__ */ ot(() => {
1906
+ }), Pt = /* @__PURE__ */ ot(() => a() ? br(a()) : void 0), sr = /* @__PURE__ */ ot(() => me() ? br(me()) : {}), ee = /* @__PURE__ */ ot(() => {
1907
1907
  var n;
1908
1908
  return {
1909
1909
  ariaLinkLabel: lr,
1910
1910
  error: "Verification failed. Try again later.",
1911
1911
  expired: "Verification expired. Try again.",
1912
- footer: `Protected by <a href="${ar}" target="_blank" aria-label="${((n = h(sr)) == null ? void 0 : n.ariaLinkLabel) || lr}">ALTCHA</a>`,
1912
+ footer: `Protected by <a href="${ar}" target="_blank" aria-label="${((n = v(sr)) == null ? void 0 : n.ariaLinkLabel) || lr}">ALTCHA</a>`,
1913
1913
  label: "I'm not a robot",
1914
1914
  verified: "Verified",
1915
1915
  verifying: "Verifying...",
1916
1916
  waitAlert: "Verifying... please wait.",
1917
- ...h(sr)
1917
+ ...v(sr)
1918
1918
  };
1919
1919
  });
1920
- let ze = Fe(!1), $ = Fe(le(x.UNVERIFIED)), U = Fe(void 0), rt = Fe(null), Ge = null, w = null, De = Fe(null), fe = null, pe = [], Se = Fe(null);
1920
+ let Ve = Ye(!1), $ = Ye(ie(x.UNVERIFIED)), U = Ye(void 0), tt = Ye(null), Pe = null, w = null, ze = Ye(null), ue = null, be = [], Ie = Ye(null);
1921
1921
  Ut(() => {
1922
- qn(h(De));
1922
+ qn(v(ze));
1923
1923
  }), Ut(() => {
1924
- Qn(h($));
1924
+ Qn(v($));
1925
1925
  }), $l(() => {
1926
- Un(), w && (w.removeEventListener("submit", vr), w.removeEventListener("reset", gr), w.removeEventListener("focusin", hr), w = null), fe && (clearTimeout(fe), fe = null), document.removeEventListener("click", cr), document.removeEventListener("scroll", dr), window.removeEventListener("resize", mr);
1926
+ Un(), w && (w.removeEventListener("submit", hr), w.removeEventListener("reset", gr), w.removeEventListener("focusin", vr), w = null), ue && (clearTimeout(ue), ue = null), document.removeEventListener("click", cr), document.removeEventListener("scroll", dr), window.removeEventListener("resize", mr);
1927
1927
  }), On(() => {
1928
1928
  var n;
1929
- S("mounted", "1.1.1"), S("workers", ue()), Jn(), S("plugins", pe.length ? pe.map((s) => s.constructor.pluginName).join(", ") : "none"), I() && S("using test mode"), f() && bt(f()), r() !== void 0 && S("auto", r()), c() !== void 0 && yr(c()), w = (n = h(U)) == null ? void 0 : n.closest("form"), w && (w.addEventListener("submit", vr, { capture: !0 }), w.addEventListener("reset", gr), r() === "onfocus" && w.addEventListener("focusin", hr)), r() === "onload" && (D() ? nt() : we()), h(Pt) && (m() || p()) && S("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
1930
- tt("load");
1929
+ S("mounted", "1.2.0"), S("workers", se()), Jn(), S("plugins", be.length ? be.map((s) => s.constructor.pluginName).join(", ") : "none"), I() && S("using test mode"), c() && zt(c()), r() !== void 0 && S("auto", r()), f() !== void 0 && yr(f()), w = (n = v(U)) == null ? void 0 : n.closest("form"), w && (w.addEventListener("submit", hr, { capture: !0 }), w.addEventListener("reset", gr), r() === "onfocus" && w.addEventListener("focusin", vr)), r() === "onload" && (D() ? rt() : ye()), v(Vt) && (m() || p()) && S("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
1930
+ et("load");
1931
1931
  });
1932
1932
  });
1933
1933
  function ur(n, s) {
@@ -1942,18 +1942,18 @@ function ea(e, t) {
1942
1942
  }));
1943
1943
  }
1944
1944
  function Un() {
1945
- for (const n of pe)
1945
+ for (const n of be)
1946
1946
  n.destroy();
1947
1947
  }
1948
1948
  function fr() {
1949
- i() && ge() && h($) === x.VERIFIED ? we() : it(x.EXPIRED, h(ee).expired);
1949
+ i() && he() && v($) === x.VERIFIED ? ye() : nt(x.EXPIRED, v(ee).expired);
1950
1950
  }
1951
1951
  async function Mn() {
1952
1952
  var n;
1953
1953
  if (Q())
1954
1954
  throw S("mocking error"), new Error("Mocked error.");
1955
- if (h(zt))
1956
- return S("using provided json data"), h(zt);
1955
+ if (v(Pt))
1956
+ return S("using provided json data"), v(Pt);
1957
1957
  if (I())
1958
1958
  return S("generating test challenge", { test: I() }), zl(typeof I() != "boolean" ? +I() : void 0);
1959
1959
  {
@@ -1981,26 +1981,19 @@ function ea(e, t) {
1981
1981
  _ = await fetch(i(), E);
1982
1982
  if (_.status !== 200)
1983
1983
  throw new Error(`Server responded with ${_.status}.`);
1984
- const T = _.headers.get("Expires"), C = _.headers.get("X-Altcha-Config"), b = await _.json(), Y = new URLSearchParams((n = b.salt.split("?")) == null ? void 0 : n[1]), _e = Y.get("expires") || Y.get("expire");
1985
- if (_e) {
1986
- const A = new Date(+_e * 1e3), re = isNaN(A.getTime()) ? 0 : A.getTime() - Date.now();
1987
- re > 0 && bt(re);
1984
+ const z = _.headers.get("X-Altcha-Config"), C = await _.json(), b = new URLSearchParams((n = C.salt.split("?")) == null ? void 0 : n[1]), Y = b.get("expires") || b.get("expire");
1985
+ if (Y) {
1986
+ const A = new Date(+Y * 1e3), De = isNaN(A.getTime()) ? 0 : A.getTime() - Date.now();
1987
+ De > 0 && zt(De);
1988
1988
  }
1989
- if (C)
1989
+ if (z)
1990
1990
  try {
1991
- const A = JSON.parse(C);
1991
+ const A = JSON.parse(z);
1992
1992
  A && typeof A == "object" && (A.verifyurl && (A.verifyurl = new URL(A.verifyurl, new URL(i())).toString()), Er(A));
1993
1993
  } catch (A) {
1994
1994
  S("unable to configure from X-Altcha-Config", A);
1995
1995
  }
1996
- if (!f() && (T != null && T.length)) {
1997
- const A = Date.parse(T);
1998
- if (A) {
1999
- const re = A - Date.now();
2000
- re > 0 && bt(re);
2001
- }
2002
- }
2003
- return b;
1996
+ return C;
2004
1997
  }
2005
1998
  }
2006
1999
  function jn(n) {
@@ -2038,8 +2031,8 @@ function ea(e, t) {
2038
2031
  ...(w == null ? void 0 : w.querySelectorAll(n != null && n.length ? n.map((_) => `input[name="${_}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
2039
2032
  ].reduce(
2040
2033
  (_, E) => {
2041
- const T = E.name, C = E.value;
2042
- return T && C && (_[T] = /\n/.test(C) ? C.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
2034
+ const z = E.name, C = E.value;
2035
+ return z && C && (_[z] = /\n/.test(C) ? C.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
2043
2036
  `) : C), _;
2044
2037
  },
2045
2038
  {}
@@ -2048,72 +2041,72 @@ function ea(e, t) {
2048
2041
  function Jn() {
2049
2042
  const n = Z() !== void 0 ? Z().split(",") : void 0;
2050
2043
  for (const s of globalThis.altchaPlugins)
2051
- (!n || n.includes(s.pluginName)) && pe.push(new s({
2052
- el: h(U),
2053
- clarify: nt,
2054
- dispatch: tt,
2044
+ (!n || n.includes(s.pluginName)) && be.push(new s({
2045
+ el: v(U),
2046
+ clarify: rt,
2047
+ dispatch: et,
2055
2048
  getConfiguration: xr,
2056
2049
  getFloatingAnchor: kr,
2057
2050
  getState: Cr,
2058
2051
  log: S,
2059
- reset: it,
2052
+ reset: nt,
2060
2053
  solve: wr,
2061
- setState: Ne,
2054
+ setState: $e,
2062
2055
  setFloatingAnchor: Rr,
2063
- verify: we
2056
+ verify: ye
2064
2057
  }));
2065
2058
  }
2066
2059
  function S(...n) {
2067
2060
  (d() || n.some((s) => s instanceof Error)) && console[n[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${L()}]`, ...n);
2068
2061
  }
2069
2062
  function Kn() {
2070
- [x.UNVERIFIED, x.ERROR, x.EXPIRED].includes(h($)) ? F() !== !1 && (w == null ? void 0 : w.reportValidity()) === !1 ? V(ze, !1) : D() ? nt() : we() : V(ze, !0);
2063
+ [x.UNVERIFIED, x.ERROR, x.EXPIRED].includes(v($)) ? F() !== !1 && (w == null ? void 0 : w.reportValidity()) === !1 ? T(Ve, !1) : D() ? rt() : ye() : T(Ve, !0);
2071
2064
  }
2072
2065
  function cr(n) {
2073
2066
  const s = n.target;
2074
- c() && s && !h(U).contains(s) && (h($) === x.VERIFIED || r() === "off" && h($) === x.UNVERIFIED) && (h(U).style.display = "none");
2067
+ f() && s && !v(U).contains(s) && (v($) === x.VERIFIED || r() === "off" && v($) === x.UNVERIFIED) && (v(U).style.display = "none");
2075
2068
  }
2076
2069
  function dr() {
2077
- c() && h($) !== x.UNVERIFIED && mt();
2070
+ f() && v($) !== x.UNVERIFIED && mt();
2078
2071
  }
2079
2072
  function qn(n) {
2080
- for (const s of pe)
2081
- typeof s.onErrorChange == "function" && s.onErrorChange(h(De));
2082
- }
2083
- function hr(n) {
2084
- h($) === x.UNVERIFIED && we();
2073
+ for (const s of be)
2074
+ typeof s.onErrorChange == "function" && s.onErrorChange(v(ze));
2085
2075
  }
2086
2076
  function vr(n) {
2087
- w && r() === "onsubmit" ? h($) === x.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), we().then(() => {
2077
+ v($) === x.UNVERIFIED && ye();
2078
+ }
2079
+ function hr(n) {
2080
+ w && r() === "onsubmit" ? v($) === x.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), ye().then(() => {
2088
2081
  w == null || w.requestSubmit();
2089
- })) : h($) !== x.VERIFIED && (n.preventDefault(), n.stopPropagation(), h($) === x.VERIFYING && _r()) : w && c() && r() === "off" && h($) === x.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), h(U).style.display = "block", mt());
2082
+ })) : v($) !== x.VERIFIED && (n.preventDefault(), n.stopPropagation(), v($) === x.VERIFYING && _r()) : w && f() && r() === "off" && v($) === x.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), v(U).style.display = "block", mt());
2090
2083
  }
2091
2084
  function gr() {
2092
- it();
2085
+ nt();
2093
2086
  }
2094
2087
  function _r() {
2095
- h($) === x.VERIFYING && h(ee).waitAlert && alert(h(ee).waitAlert);
2088
+ v($) === x.VERIFYING && v(ee).waitAlert && alert(v(ee).waitAlert);
2096
2089
  }
2097
2090
  function Qn(n) {
2098
- for (const s of pe)
2099
- typeof s.onStateChange == "function" && s.onStateChange(h($));
2100
- c() && h($) !== x.UNVERIFIED && requestAnimationFrame(() => {
2091
+ for (const s of be)
2092
+ typeof s.onStateChange == "function" && s.onStateChange(v($));
2093
+ f() && v($) !== x.UNVERIFIED && requestAnimationFrame(() => {
2101
2094
  mt();
2102
- }), V(ze, h($) === x.VERIFIED);
2095
+ }), T(Ve, v($) === x.VERIFIED);
2103
2096
  }
2104
2097
  function mr() {
2105
- c() && mt();
2098
+ f() && mt();
2106
2099
  }
2107
2100
  function br(n) {
2108
2101
  return JSON.parse(n);
2109
2102
  }
2110
2103
  function mt(n = 20) {
2111
- if (h(U))
2112
- if (Ge || (Ge = (v() ? document.querySelector(v()) : w == null ? void 0 : w.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || w), Ge) {
2113
- const s = parseInt(g(), 10) || 12, _ = Ge.getBoundingClientRect(), E = h(U).getBoundingClientRect(), T = document.documentElement.clientHeight, C = document.documentElement.clientWidth, b = c() === "auto" ? _.bottom + E.height + s + n > T : c() === "top", Y = Math.max(n, Math.min(C - n - E.width, _.left + _.width / 2 - E.width / 2));
2114
- if (b ? h(U).style.top = `${_.top - (E.height + s)}px` : h(U).style.top = `${_.bottom + s}px`, h(U).style.left = `${Y}px`, h(U).setAttribute("data-floating", b ? "top" : "bottom"), h(rt)) {
2115
- const _e = h(rt).getBoundingClientRect();
2116
- h(rt).style.left = _.left - Y + _.width / 2 - _e.width / 2 + "px";
2104
+ if (v(U))
2105
+ if (Pe || (Pe = (h() ? document.querySelector(h()) : w == null ? void 0 : w.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || w), Pe) {
2106
+ const s = parseInt(g(), 10) || 12, _ = Pe.getBoundingClientRect(), E = v(U).getBoundingClientRect(), z = document.documentElement.clientHeight, C = document.documentElement.clientWidth, b = f() === "auto" ? _.bottom + E.height + s + n > z : f() === "top", Y = Math.max(n, Math.min(C - n - E.width, _.left + _.width / 2 - E.width / 2));
2107
+ if (b ? v(U).style.top = `${_.top - (E.height + s)}px` : v(U).style.top = `${_.bottom + s}px`, v(U).style.left = `${Y}px`, v(U).setAttribute("data-floating", b ? "top" : "bottom"), v(tt)) {
2108
+ const A = v(tt).getBoundingClientRect();
2109
+ v(tt).style.left = _.left - Y + _.width / 2 - A.width / 2 + "px";
2117
2110
  }
2118
2111
  } else
2119
2112
  S("unable to find floating anchor element");
@@ -2125,18 +2118,18 @@ function ea(e, t) {
2125
2118
  const s = { payload: n };
2126
2119
  if (F() !== !1) {
2127
2120
  const {
2128
- blockedCountries: T,
2121
+ blockedCountries: z,
2129
2122
  classifier: C,
2130
2123
  disableRules: b,
2131
2124
  email: Y,
2132
- expectedLanguages: _e,
2133
- expectedCountries: A,
2134
- fields: re,
2125
+ expectedLanguages: A,
2126
+ expectedCountries: De,
2127
+ fields: lt,
2135
2128
  ipAddress: at,
2136
- text: hi,
2129
+ text: vi,
2137
2130
  timeZone: Vr
2138
2131
  } = Bn();
2139
- s.blockedCountries = T, s.classifier = C, s.disableRules = b, s.email = Y === !1 ? void 0 : jn(Y), s.expectedCountries = A, s.expectedLanguages = _e || (or ? [or] : void 0), s.fields = re === !1 ? void 0 : Hn(re), s.ipAddress = at === !1 ? void 0 : at || "auto", s.text = hi, s.timeZone = Vr === !1 ? void 0 : Vr || Dl();
2132
+ s.blockedCountries = z, s.classifier = C, s.disableRules = b, s.email = Y === !1 ? void 0 : jn(Y), s.expectedCountries = De, s.expectedLanguages = A || (or ? [or] : void 0), s.fields = lt === !1 ? void 0 : Hn(lt), s.ipAddress = at === !1 ? void 0 : at || "auto", s.text = vi, s.timeZone = Vr === !1 ? void 0 : Vr || Dl();
2140
2133
  }
2141
2134
  const _ = await fetch(W(), {
2142
2135
  body: JSON.stringify(s),
@@ -2146,14 +2139,14 @@ function ea(e, t) {
2146
2139
  if (_.status !== 200)
2147
2140
  throw new Error(`Server responded with ${_.status}.`);
2148
2141
  const E = await _.json();
2149
- if (E != null && E.payload && V(Se, le(E.payload)), tt("serververification", E), l() && E.classification === "BAD")
2142
+ if (E != null && E.payload && T(Ie, ie(E.payload)), et("serververification", E), l() && E.classification === "BAD")
2150
2143
  throw new Error("SpamFilter returned negative classification.");
2151
2144
  }
2152
- function bt(n) {
2153
- S("expire", n), fe && (clearTimeout(fe), fe = null), n < 1 ? fr() : fe = setTimeout(fr, n);
2145
+ function zt(n) {
2146
+ S("expire", n), ue && (clearTimeout(ue), ue = null), n < 1 ? fr() : ue = setTimeout(fr, n);
2154
2147
  }
2155
2148
  function yr(n) {
2156
- S("floating", n), c() !== n && (h(U).style.left = "", h(U).style.top = ""), c(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : c()), c() ? (r() || r("onsubmit"), document.addEventListener("scroll", dr), document.addEventListener("click", cr), window.addEventListener("resize", mr)) : r() === "onsubmit" && r(void 0);
2149
+ S("floating", n), f() !== n && (v(U).style.left = "", v(U).style.top = ""), f(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : f()), f() ? (r() || r("onsubmit"), document.addEventListener("scroll", dr), document.addEventListener("click", cr), window.addEventListener("resize", mr)) : r() === "onsubmit" && r(void 0);
2157
2150
  }
2158
2151
  function pr(n) {
2159
2152
  if (!n.algorithm)
@@ -2187,23 +2180,23 @@ function ea(e, t) {
2187
2180
  solution: await Gl(n.challenge, n.salt, n.algorithm, n.maxnumber || G()).promise
2188
2181
  };
2189
2182
  }
2190
- async function ti(n, s = typeof I() == "number" ? I() : G(), _ = Math.ceil(ue())) {
2183
+ async function ti(n, s = typeof I() == "number" ? I() : G(), _ = Math.ceil(se())) {
2191
2184
  const E = [];
2192
2185
  _ = Math.min(16, Math.max(1, _));
2193
2186
  for (let b = 0; b < _; b++)
2194
- E.push(altchaCreateWorker(et()));
2195
- const T = Math.ceil(s / _), C = await Promise.all(E.map((b, Y) => {
2196
- const _e = Y * T;
2197
- return new Promise((A) => {
2198
- b.addEventListener("message", (re) => {
2199
- if (re.data)
2187
+ E.push(altchaCreateWorker(Qe()));
2188
+ const z = Math.ceil(s / _), C = await Promise.all(E.map((b, Y) => {
2189
+ const A = Y * z;
2190
+ return new Promise((De) => {
2191
+ b.addEventListener("message", (lt) => {
2192
+ if (lt.data)
2200
2193
  for (const at of E)
2201
2194
  at !== b && at.postMessage({ type: "abort" });
2202
- A(re.data);
2195
+ De(lt.data);
2203
2196
  }), b.postMessage({
2204
2197
  payload: n,
2205
- max: _e + T,
2206
- start: _e,
2198
+ max: A + z,
2199
+ start: A,
2207
2200
  type: "work"
2208
2201
  });
2209
2202
  });
@@ -2212,21 +2205,21 @@ function ea(e, t) {
2212
2205
  b.terminate();
2213
2206
  return C.find((b) => !!b) || null;
2214
2207
  }
2215
- async function nt() {
2208
+ async function rt() {
2216
2209
  if (!D()) {
2217
- Ne(x.ERROR);
2210
+ $e(x.ERROR);
2218
2211
  return;
2219
2212
  }
2220
- const n = pe.find((s) => s.constructor.pluginName === "obfuscation");
2213
+ const n = be.find((s) => s.constructor.pluginName === "obfuscation");
2221
2214
  if (!n || !("clarify" in n)) {
2222
- Ne(x.ERROR), S("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");
2215
+ $e(x.ERROR), S("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");
2223
2216
  return;
2224
2217
  }
2225
2218
  if ("clarify" in n && typeof n.clarify == "function")
2226
2219
  return n.clarify();
2227
2220
  }
2228
2221
  function Er(n) {
2229
- n.obfuscated !== void 0 && D(n.obfuscated), n.auto !== void 0 && (r(n.auto), r() === "onload" && (D() ? nt() : we())), n.blockspam !== void 0 && l(!!n.blockspam), n.customfetch !== void 0 && o(n.customfetch), n.floatinganchor !== void 0 && v(n.floatinganchor), n.delay !== void 0 && u(n.delay), n.floatingoffset !== void 0 && g(n.floatingoffset), n.floating !== void 0 && yr(n.floating), n.expire !== void 0 && (bt(n.expire), f(n.expire)), n.challenge && (a(typeof n.challenge == "string" ? n.challenge : JSON.stringify(n.challenge)), pr(h(zt))), n.challengeurl !== void 0 && i(n.challengeurl), n.debug !== void 0 && d(!!n.debug), n.hidefooter !== void 0 && m(!!n.hidefooter), n.hidelogo !== void 0 && p(!!n.hidelogo), n.maxnumber !== void 0 && G(+n.maxnumber), n.mockerror !== void 0 && Q(!!n.mockerror), n.name !== void 0 && L(n.name), n.refetchonexpire !== void 0 && ge(!!n.refetchonexpire), n.spamfilter !== void 0 && F(typeof n.spamfilter == "object" ? n.spamfilter : !!n.spamfilter), n.strings && ye(typeof n.strings == "string" ? n.strings : JSON.stringify(n.strings)), n.test !== void 0 && I(typeof n.test == "number" ? n.test : !!n.test), n.verifyurl !== void 0 && W(n.verifyurl), n.workers !== void 0 && ue(+n.workers), n.workerurl !== void 0 && et(n.workerurl);
2222
+ n.obfuscated !== void 0 && D(n.obfuscated), n.auto !== void 0 && (r(n.auto), r() === "onload" && (D() ? rt() : ye())), n.blockspam !== void 0 && l(!!n.blockspam), n.customfetch !== void 0 && o(n.customfetch), n.floatinganchor !== void 0 && h(n.floatinganchor), n.delay !== void 0 && u(n.delay), n.floatingoffset !== void 0 && g(n.floatingoffset), n.floating !== void 0 && yr(n.floating), n.expire !== void 0 && (zt(n.expire), c(n.expire)), n.challenge && (a(typeof n.challenge == "string" ? n.challenge : JSON.stringify(n.challenge)), pr(v(Pt))), n.challengeurl !== void 0 && i(n.challengeurl), n.debug !== void 0 && d(!!n.debug), n.hidefooter !== void 0 && m(!!n.hidefooter), n.hidelogo !== void 0 && p(!!n.hidelogo), n.maxnumber !== void 0 && G(+n.maxnumber), n.mockerror !== void 0 && Q(!!n.mockerror), n.name !== void 0 && L(n.name), n.refetchonexpire !== void 0 && he(!!n.refetchonexpire), n.spamfilter !== void 0 && F(typeof n.spamfilter == "object" ? n.spamfilter : !!n.spamfilter), n.strings && me(typeof n.strings == "string" ? n.strings : JSON.stringify(n.strings)), n.test !== void 0 && I(typeof n.test == "number" ? n.test : !!n.test), n.verifyurl !== void 0 && W(n.verifyurl), n.workers !== void 0 && se(+n.workers), n.workerurl !== void 0 && Qe(n.workerurl);
2230
2223
  }
2231
2224
  function xr() {
2232
2225
  return {
@@ -2235,9 +2228,9 @@ function ea(e, t) {
2235
2228
  challengeurl: i(),
2236
2229
  debug: d(),
2237
2230
  delay: u(),
2238
- expire: f(),
2239
- floating: c(),
2240
- floatinganchor: v(),
2231
+ expire: c(),
2232
+ floating: f(),
2233
+ floatinganchor: h(),
2241
2234
  floatingoffset: g(),
2242
2235
  hidefooter: m(),
2243
2236
  hidelogo: p(),
@@ -2245,167 +2238,167 @@ function ea(e, t) {
2245
2238
  maxnumber: G(),
2246
2239
  mockerror: Q(),
2247
2240
  obfuscated: D(),
2248
- refetchonexpire: ge(),
2241
+ refetchonexpire: he(),
2249
2242
  spamfilter: F(),
2250
- strings: h(ee),
2243
+ strings: v(ee),
2251
2244
  test: I(),
2252
2245
  verifyurl: W(),
2253
- workers: ue(),
2254
- workerurl: et()
2246
+ workers: se(),
2247
+ workerurl: Qe()
2255
2248
  };
2256
2249
  }
2257
2250
  function kr() {
2258
- return Ge;
2251
+ return Pe;
2259
2252
  }
2260
2253
  function ri(n) {
2261
- return pe.find((s) => s.constructor.pluginName === n);
2254
+ return be.find((s) => s.constructor.pluginName === n);
2262
2255
  }
2263
2256
  function Cr() {
2264
- return h($);
2257
+ return v($);
2265
2258
  }
2266
- function it(n = x.UNVERIFIED, s = null) {
2267
- fe && (clearTimeout(fe), fe = null), V(ze, !1), V(Se, null), Ne(n, s);
2259
+ function nt(n = x.UNVERIFIED, s = null) {
2260
+ ue && (clearTimeout(ue), ue = null), T(Ve, !1), T(Ie, null), $e(n, s);
2268
2261
  }
2269
2262
  function Rr(n) {
2270
- Ge = n;
2263
+ Pe = n;
2271
2264
  }
2272
- function Ne(n, s = null) {
2273
- V($, le(n)), V(De, le(s)), tt("statechange", {
2274
- payload: h(Se),
2275
- state: h($)
2265
+ function $e(n, s = null) {
2266
+ T($, ie(n)), T(ze, ie(s)), et("statechange", {
2267
+ payload: v(Ie),
2268
+ state: v($)
2276
2269
  });
2277
2270
  }
2278
- async function we() {
2279
- return it(x.VERIFYING), await new Promise((n) => setTimeout(n, u() || 0)), Mn().then((n) => (pr(n), S("challenge", n), wr(n))).then(({ data: n, solution: s }) => {
2271
+ async function ye() {
2272
+ return nt(x.VERIFYING), await new Promise((n) => setTimeout(n, u() || 0)), Mn().then((n) => (pr(n), S("challenge", n), wr(n))).then(({ data: n, solution: s }) => {
2280
2273
  if (S("solution", s), "challenge" in n && s && !("clearText" in s))
2281
2274
  if ((s == null ? void 0 : s.number) !== void 0) {
2282
2275
  if (W())
2283
2276
  return ei(ur(n, s));
2284
- V(Se, le(ur(n, s))), S("payload", h(Se));
2277
+ T(Ie, ie(ur(n, s))), S("payload", v(Ie));
2285
2278
  } else
2286
2279
  throw S("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
2287
2280
  }).then(() => {
2288
- Ne(x.VERIFIED), S("verified"), cl().then(() => {
2289
- tt("verified", { payload: h(Se) });
2281
+ $e(x.VERIFIED), S("verified"), cl().then(() => {
2282
+ et("verified", { payload: v(Ie) });
2290
2283
  });
2291
2284
  }).catch((n) => {
2292
- S(n), Ne(x.ERROR, n.message);
2285
+ S(n), $e(x.ERROR, n.message);
2293
2286
  });
2294
2287
  }
2295
2288
  var Ir = ql(), $r = Ot(Ir);
2296
2289
  El($r, t, "default", {});
2297
- var lt = me($r, 2), Gt = J(lt), Sr = J(Gt);
2290
+ var it = ge($r, 2), Gt = J(it), Sr = J(Gt);
2298
2291
  {
2299
2292
  var ni = (n) => {
2300
2293
  var s = Xl();
2301
2294
  K(n, s);
2302
2295
  };
2303
- Ee(Sr, (n) => {
2304
- h($) === x.VERIFYING && n(ni);
2296
+ pe(Sr, (n) => {
2297
+ v($) === x.VERIFYING && n(ni);
2305
2298
  });
2306
2299
  }
2307
- var yt = me(Sr, 2), Ye = J(yt);
2308
- Ur(Ye), Ye.__change = Kn, H(yt);
2309
- var Dt = me(yt, 2), ii = J(Dt);
2300
+ var bt = ge(Sr, 2), Ge = J(bt);
2301
+ Ur(Ge), Ge.__change = Kn, H(bt);
2302
+ var Dt = ge(bt, 2), ii = J(Dt);
2310
2303
  {
2311
2304
  var li = (n) => {
2312
2305
  var s = Zl(), _ = Ot(s), E = J(_);
2313
- Ze(E, () => h(ee).verified), H(_);
2314
- var T = me(_, 2);
2315
- Ur(T), Oe(() => {
2316
- ie(T, "name", L()), kl(T, h(Se));
2306
+ Xe(E, () => v(ee).verified), H(_);
2307
+ var z = ge(_, 2);
2308
+ Ur(z), Fe(() => {
2309
+ ne(z, "name", L()), kl(z, v(Ie));
2317
2310
  }), K(n, s);
2318
2311
  }, ai = (n) => {
2319
2312
  var s = ml(), _ = Ot(s);
2320
2313
  {
2321
2314
  var E = (C) => {
2322
2315
  var b = Wl(), Y = J(b);
2323
- Ze(Y, () => h(ee).verifying), H(b), K(C, b);
2324
- }, T = (C) => {
2316
+ Xe(Y, () => v(ee).verifying), H(b), K(C, b);
2317
+ }, z = (C) => {
2325
2318
  var b = Ul(), Y = J(b);
2326
- Ze(Y, () => h(ee).label), H(b), Oe(() => ie(b, "for", `${L() ?? ""}_checkbox`)), K(C, b);
2319
+ Xe(Y, () => v(ee).label), H(b), Fe(() => ne(b, "for", `${L() ?? ""}_checkbox`)), K(C, b);
2327
2320
  };
2328
- Ee(
2321
+ pe(
2329
2322
  _,
2330
2323
  (C) => {
2331
- h($) === x.VERIFYING ? C(E) : C(T, !1);
2324
+ v($) === x.VERIFYING ? C(E) : C(z, !1);
2332
2325
  },
2333
2326
  !0
2334
2327
  );
2335
2328
  }
2336
2329
  K(n, s);
2337
2330
  };
2338
- Ee(ii, (n) => {
2339
- h($) === x.VERIFIED ? n(li) : n(ai, !1);
2331
+ pe(ii, (n) => {
2332
+ v($) === x.VERIFIED ? n(li) : n(ai, !1);
2340
2333
  });
2341
2334
  }
2342
2335
  H(Dt);
2343
- var oi = me(Dt, 2);
2336
+ var oi = ge(Dt, 2);
2344
2337
  {
2345
2338
  var si = (n) => {
2346
2339
  var s = Ml(), _ = J(s);
2347
- ie(_, "href", ar), H(s), Oe(() => ie(_, "aria-label", h(ee).ariaLinkLabel)), K(n, s);
2340
+ ne(_, "href", ar), H(s), Fe(() => ne(_, "aria-label", v(ee).ariaLinkLabel)), K(n, s);
2348
2341
  };
2349
- Ee(oi, (n) => {
2350
- (p() !== !0 || h(Pt)) && n(si);
2342
+ pe(oi, (n) => {
2343
+ (p() !== !0 || v(Vt)) && n(si);
2351
2344
  });
2352
2345
  }
2353
2346
  H(Gt);
2354
- var Nr = me(Gt, 2);
2347
+ var Nr = ge(Gt, 2);
2355
2348
  {
2356
2349
  var ui = (n) => {
2357
- var s = Hl(), _ = me(J(s), 2);
2350
+ var s = Hl(), _ = ge(J(s), 2);
2358
2351
  {
2359
2352
  var E = (C) => {
2360
2353
  var b = jl(), Y = J(b);
2361
- Ze(Y, () => h(ee).expired), H(b), Oe(() => ie(b, "title", h(De))), K(C, b);
2362
- }, T = (C) => {
2354
+ Xe(Y, () => v(ee).expired), H(b), Fe(() => ne(b, "title", v(ze))), K(C, b);
2355
+ }, z = (C) => {
2363
2356
  var b = Bl(), Y = J(b);
2364
- Ze(Y, () => h(ee).error), H(b), Oe(() => ie(b, "title", h(De))), K(C, b);
2357
+ Xe(Y, () => v(ee).error), H(b), Fe(() => ne(b, "title", v(ze))), K(C, b);
2365
2358
  };
2366
- Ee(_, (C) => {
2367
- h($) === x.EXPIRED ? C(E) : C(T, !1);
2359
+ pe(_, (C) => {
2360
+ v($) === x.EXPIRED ? C(E) : C(z, !1);
2368
2361
  });
2369
2362
  }
2370
2363
  H(s), K(n, s);
2371
2364
  };
2372
- Ee(Nr, (n) => {
2373
- (h(De) || h($) === x.EXPIRED) && n(ui);
2365
+ pe(Nr, (n) => {
2366
+ (v(ze) || v($) === x.EXPIRED) && n(ui);
2374
2367
  });
2375
2368
  }
2376
- var Lr = me(Nr, 2);
2369
+ var Lr = ge(Nr, 2);
2377
2370
  {
2378
2371
  var fi = (n) => {
2379
2372
  var s = Jl(), _ = J(s), E = J(_);
2380
- Ze(E, () => h(ee).footer), H(_), H(s), K(n, s);
2373
+ Xe(E, () => v(ee).footer), H(_), H(s), K(n, s);
2381
2374
  };
2382
- Ee(Lr, (n) => {
2383
- h(ee).footer && (m() !== !0 || h(Pt)) && n(fi);
2375
+ pe(Lr, (n) => {
2376
+ v(ee).footer && (m() !== !0 || v(Vt)) && n(fi);
2384
2377
  });
2385
2378
  }
2386
- var ci = me(Lr, 2);
2379
+ var ci = ge(Lr, 2);
2387
2380
  {
2388
2381
  var di = (n) => {
2389
2382
  var s = Kl();
2390
- Br(s, (_) => V(rt, _), () => h(rt)), K(n, s);
2383
+ Br(s, (_) => T(tt, _), () => v(tt)), K(n, s);
2391
2384
  };
2392
- Ee(ci, (n) => {
2393
- c() && n(di);
2385
+ pe(ci, (n) => {
2386
+ f() && n(di);
2394
2387
  });
2395
2388
  }
2396
- return H(lt), Br(lt, (n) => V(U, n), () => h(U)), Oe(() => {
2397
- ie(lt, "data-state", h($)), ie(lt, "data-floating", c()), Rl(yt, "altcha-hidden", h($) === x.VERIFYING), ie(Ye, "id", `${L() ?? ""}_checkbox`), Ye.required = r() !== "onsubmit" && (!c() || r() !== "off");
2398
- }), gl("invalid", Ye, _r), Il(Ye, () => h(ze), (n) => V(ze, n)), K(e, Ir), Vn({
2399
- clarify: nt,
2389
+ return H(it), Br(it, (n) => T(U, n), () => v(U)), Fe(() => {
2390
+ ne(it, "data-state", v($)), ne(it, "data-floating", f()), Rl(bt, "altcha-hidden", v($) === x.VERIFYING), ne(Ge, "id", `${L() ?? ""}_checkbox`), Ge.required = r() !== "onsubmit" && (!f() || r() !== "off");
2391
+ }), gl("invalid", Ge, _r), Il(Ge, () => v(Ve), (n) => T(Ve, n)), K(e, Ir), Vn({
2392
+ clarify: rt,
2400
2393
  configure: Er,
2401
2394
  getConfiguration: xr,
2402
2395
  getFloatingAnchor: kr,
2403
2396
  getPlugin: ri,
2404
2397
  getState: Cr,
2405
- reset: it,
2398
+ reset: nt,
2406
2399
  setFloatingAnchor: Rr,
2407
- setState: Ne,
2408
- verify: we,
2400
+ setState: $e,
2401
+ verify: ye,
2409
2402
  get auto() {
2410
2403
  return r();
2411
2404
  },
@@ -2449,22 +2442,22 @@ function ea(e, t) {
2449
2442
  u(n), k();
2450
2443
  },
2451
2444
  get expire() {
2452
- return f();
2445
+ return c();
2453
2446
  },
2454
2447
  set expire(n = void 0) {
2455
- f(n), k();
2448
+ c(n), k();
2456
2449
  },
2457
2450
  get floating() {
2458
- return c();
2451
+ return f();
2459
2452
  },
2460
2453
  set floating(n = void 0) {
2461
- c(n), k();
2454
+ f(n), k();
2462
2455
  },
2463
2456
  get floatinganchor() {
2464
- return v();
2457
+ return h();
2465
2458
  },
2466
2459
  set floatinganchor(n = void 0) {
2467
- v(n), k();
2460
+ h(n), k();
2468
2461
  },
2469
2462
  get floatingoffset() {
2470
2463
  return g();
@@ -2515,10 +2508,10 @@ function ea(e, t) {
2515
2508
  Z(n), k();
2516
2509
  },
2517
2510
  get refetchonexpire() {
2518
- return ge();
2511
+ return he();
2519
2512
  },
2520
2513
  set refetchonexpire(n = !0) {
2521
- ge(n), k();
2514
+ he(n), k();
2522
2515
  },
2523
2516
  get spamfilter() {
2524
2517
  return F();
@@ -2527,10 +2520,10 @@ function ea(e, t) {
2527
2520
  F(n), k();
2528
2521
  },
2529
2522
  get strings() {
2530
- return ye();
2523
+ return me();
2531
2524
  },
2532
2525
  set strings(n = void 0) {
2533
- ye(n), k();
2526
+ me(n), k();
2534
2527
  },
2535
2528
  get test() {
2536
2529
  return I();
@@ -2545,16 +2538,16 @@ function ea(e, t) {
2545
2538
  W(n), k();
2546
2539
  },
2547
2540
  get workers() {
2548
- return ue();
2541
+ return se();
2549
2542
  },
2550
2543
  set workers(n = Math.min(16, navigator.hardwareConcurrency || 8)) {
2551
- ue(n), k();
2544
+ se(n), k();
2552
2545
  },
2553
2546
  get workerurl() {
2554
- return et();
2547
+ return Qe();
2555
2548
  },
2556
2549
  set workerurl(n = void 0) {
2557
- et(n), k();
2550
+ Qe(n), k();
2558
2551
  }
2559
2552
  });
2560
2553
  }