altcha 0.7.0 → 0.8.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,15 +1,15 @@
1
- var Bt = Object.defineProperty;
2
- var rt = (n) => {
1
+ var $t = Object.defineProperty;
2
+ var ut = (n) => {
3
3
  throw TypeError(n);
4
4
  };
5
- var Gt = (n, e, t) => e in n ? Bt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
6
- var T = (n, e, t) => Gt(n, typeof e != "symbol" ? e + "" : e, t), it = (n, e, t) => e.has(n) || rt("Cannot " + t);
7
- var V = (n, e, t) => (it(n, e, "read from private field"), t ? t.call(n) : e.get(n)), ie = (n, e, t) => e.has(n) ? rt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), ot = (n, e, t, i) => (it(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t);
8
- const wt = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGY9bmV3IFRleHRFbmNvZGVyO2Z1bmN0aW9uIGQoZSl7cmV0dXJuWy4uLm5ldyBVaW50OEFycmF5KGUpXS5tYXAodD0+dC50b1N0cmluZygxNikucGFkU3RhcnQoMiwiMCIpKS5qb2luKCIiKX1hc3luYyBmdW5jdGlvbiBwKGUsdCxvKXtyZXR1cm4gZChhd2FpdCBjcnlwdG8uc3VidGxlLmRpZ2VzdChvLnRvVXBwZXJDYXNlKCksZi5lbmNvZGUoZSt0KSkpfWZ1bmN0aW9uIGcoZSx0LG89IlNIQS0yNTYiLGw9MWU2LGM9MCl7Y29uc3QgYT1uZXcgQWJvcnRDb250cm9sbGVyLGk9RGF0ZS5ub3coKTtyZXR1cm57cHJvbWlzZTooYXN5bmMoKT0+e2ZvcihsZXQgbj1jO248PWw7bis9MSl7aWYoYS5zaWduYWwuYWJvcnRlZClyZXR1cm4gbnVsbDtpZihhd2FpdCBwKHQsbixvKT09PWUpcmV0dXJue251bWJlcjpuLHRvb2s6RGF0ZS5ub3coKS1pfX1yZXR1cm4gbnVsbH0pKCksY29udHJvbGxlcjphfX1sZXQgcjtvbm1lc3NhZ2U9YXN5bmMgZT0+e2NvbnN0e3R5cGU6dCxwYXlsb2FkOm99PWUuZGF0YTtpZih0PT09ImFib3J0IilyPT1udWxsfHxyLmFib3J0KCkscj12b2lkIDA7ZWxzZSBpZih0PT09IndvcmsiKXtjb25zdHthbGc6bCxjaGFsbGVuZ2U6YyxtYXg6YSxzYWx0Omksc3RhcnQ6dX09b3x8e30sbj1nKGMsaSxsLGEsdSk7cj1uLmNvbnRyb2xsZXIsbi5wcm9taXNlLnRoZW4ocz0+e3NlbGYucG9zdE1lc3NhZ2UocyYmey4uLnMsd29ya2VyOiEwfSl9KX19fSkoKTsK", Ot = (n) => Uint8Array.from(atob(n), (e) => e.charCodeAt(0)), st = typeof self < "u" && self.Blob && new Blob([Ot(wt)], { type: "text/javascript;charset=utf-8" });
9
- function Xt(n) {
5
+ var en = (n, e, t) => e in n ? $t(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
6
+ var D = (n, e, t) => en(n, typeof e != "symbol" ? e + "" : e, t), dt = (n, e, t) => e.has(n) || ut("Cannot " + t);
7
+ var W = (n, e, t) => (dt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), fe = (n, e, t) => e.has(n) ? ut("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), ht = (n, e, t, i) => (dt(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t);
8
+ const Rt = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGY9bmV3IFRleHRFbmNvZGVyO2Z1bmN0aW9uIHAoZSl7cmV0dXJuWy4uLm5ldyBVaW50OEFycmF5KGUpXS5tYXAodD0+dC50b1N0cmluZygxNikucGFkU3RhcnQoMiwiMCIpKS5qb2luKCIiKX1hc3luYyBmdW5jdGlvbiB3KGUsdCxyKXtyZXR1cm4gcChhd2FpdCBjcnlwdG8uc3VidGxlLmRpZ2VzdChyLnRvVXBwZXJDYXNlKCksZi5lbmNvZGUoZSt0KSkpfWZ1bmN0aW9uIGIoZSx0LHI9IlNIQS0yNTYiLG49MWU2LHM9MCl7Y29uc3Qgbz1uZXcgQWJvcnRDb250cm9sbGVyLGE9RGF0ZS5ub3coKTtyZXR1cm57cHJvbWlzZTooYXN5bmMoKT0+e2ZvcihsZXQgYz1zO2M8PW47Yys9MSl7aWYoby5zaWduYWwuYWJvcnRlZClyZXR1cm4gbnVsbDtpZihhd2FpdCB3KHQsYyxyKT09PWUpcmV0dXJue251bWJlcjpjLHRvb2s6RGF0ZS5ub3coKS1hfX1yZXR1cm4gbnVsbH0pKCksY29udHJvbGxlcjpvfX1mdW5jdGlvbiBoKGUpe2NvbnN0IHQ9YXRvYihlKSxyPW5ldyBVaW50OEFycmF5KHQubGVuZ3RoKTtmb3IobGV0IG49MDtuPHQubGVuZ3RoO24rKylyW25dPXQuY2hhckNvZGVBdChuKTtyZXR1cm4gcn1mdW5jdGlvbiBnKGUsdD0xMil7Y29uc3Qgcj1uZXcgVWludDhBcnJheSh0KTtmb3IobGV0IG49MDtuPHQ7bisrKXJbbl09ZSUyNTYsZT1NYXRoLmZsb29yKGUvMjU2KTtyZXR1cm4gcn1hc3luYyBmdW5jdGlvbiBtKGUsdD0iIixyPTFlNixuPTApe2NvbnN0IHM9IkFFUy1HQ00iLG89bmV3IEFib3J0Q29udHJvbGxlcixhPURhdGUubm93KCksbD1hc3luYygpPT57Zm9yKGxldCB1PW47dTw9cjt1Kz0xKXtpZihvLnNpZ25hbC5hYm9ydGVkfHwhY3x8IXkpcmV0dXJuIG51bGw7dHJ5e2NvbnN0IGQ9YXdhaXQgY3J5cHRvLnN1YnRsZS5kZWNyeXB0KHtuYW1lOnMsaXY6Zyh1KX0sYyx5KTtpZihkKXJldHVybntjbGVhclRleHQ6bmV3IFRleHREZWNvZGVyKCkuZGVjb2RlKGQpLHRvb2s6RGF0ZS5ub3coKS1hfX1jYXRjaHt9fXJldHVybiBudWxsfTtsZXQgYz1udWxsLHk9bnVsbDt0cnl7eT1oKGUpO2NvbnN0IHU9YXdhaXQgY3J5cHRvLnN1YnRsZS5kaWdlc3QoIlNIQS0yNTYiLGYuZW5jb2RlKHQpKTtjPWF3YWl0IGNyeXB0by5zdWJ0bGUuaW1wb3J0S2V5KCJyYXciLHUscywhMSxbImRlY3J5cHQiXSl9Y2F0Y2h7cmV0dXJue3Byb21pc2U6UHJvbWlzZS5yZWplY3QoKSxjb250cm9sbGVyOm99fXJldHVybntwcm9taXNlOmwoKSxjb250cm9sbGVyOm99fWxldCBpO29ubWVzc2FnZT1hc3luYyBlPT57Y29uc3R7dHlwZTp0LHBheWxvYWQ6cixzdGFydDpuLG1heDpzfT1lLmRhdGE7bGV0IG89bnVsbDtpZih0PT09ImFib3J0IilpPT1udWxsfHxpLmFib3J0KCksaT12b2lkIDA7ZWxzZSBpZih0PT09IndvcmsiKXtpZigib2JmdXNjYXRlZCJpbiByKXtjb25zdHtrZXk6YSxvYmZ1c2NhdGVkOmx9PXJ8fHt9O289YXdhaXQgbShsLGEscyxuKX1lbHNle2NvbnN0e2FsZ29yaXRobTphLGNoYWxsZW5nZTpsLHNhbHQ6Y309cnx8e307bz1iKGwsYyxhLHMsbil9aT1vLmNvbnRyb2xsZXIsby5wcm9taXNlLnRoZW4oYT0+e3NlbGYucG9zdE1lc3NhZ2UoYSYmey4uLmEsd29ya2VyOiEwfSl9KX19fSkoKTsK", tn = (n) => Uint8Array.from(atob(n), (e) => e.charCodeAt(0)), mt = typeof self < "u" && self.Blob && new Blob([tn(Rt)], { type: "text/javascript;charset=utf-8" });
9
+ function nn(n) {
10
10
  let e;
11
11
  try {
12
- if (e = st && (self.URL || self.webkitURL).createObjectURL(st), !e) throw "";
12
+ if (e = mt && (self.URL || self.webkitURL).createObjectURL(mt), !e) throw "";
13
13
  const t = new Worker(e, {
14
14
  name: n == null ? void 0 : n.name
15
15
  });
@@ -18,7 +18,7 @@ function Xt(n) {
18
18
  }), t;
19
19
  } catch {
20
20
  return new Worker(
21
- "data:text/javascript;base64," + wt,
21
+ "data:text/javascript;base64," + Rt,
22
22
  {
23
23
  name: n == null ? void 0 : n.name
24
24
  }
@@ -27,37 +27,83 @@ function Xt(n) {
27
27
  e && (self.URL || self.webkitURL).revokeObjectURL(e);
28
28
  }
29
29
  }
30
- function fe() {
30
+ function Se() {
31
31
  }
32
- function yt(n) {
32
+ function rn(n, e) {
33
+ for (const t in e) n[t] = e[t];
34
+ return (
35
+ /** @type {T & S} */
36
+ n
37
+ );
38
+ }
39
+ function Lt(n) {
33
40
  return n();
34
41
  }
35
- function lt() {
42
+ function gt() {
36
43
  return /* @__PURE__ */ Object.create(null);
37
44
  }
38
- function _e(n) {
39
- n.forEach(yt);
45
+ function Ie(n) {
46
+ n.forEach(Lt);
40
47
  }
41
- function _t(n) {
48
+ function It(n) {
42
49
  return typeof n == "function";
43
50
  }
44
- function Ht(n, e) {
51
+ function on(n, e) {
45
52
  return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
46
53
  }
47
- function Pt(n) {
54
+ function ln(n) {
48
55
  return Object.keys(n).length === 0;
49
56
  }
50
- function E(n, e) {
57
+ function sn(n, e, t, i) {
58
+ if (n) {
59
+ const o = Tt(n, e, t, i);
60
+ return n[0](o);
61
+ }
62
+ }
63
+ function Tt(n, e, t, i) {
64
+ return n[1] && i ? rn(t.ctx.slice(), n[1](i(e))) : t.ctx;
65
+ }
66
+ function cn(n, e, t, i) {
67
+ if (n[2] && i) {
68
+ const o = n[2](i(t));
69
+ if (e.dirty === void 0)
70
+ return o;
71
+ if (typeof o == "object") {
72
+ const l = [], s = Math.max(e.dirty.length, o.length);
73
+ for (let c = 0; c < s; c += 1)
74
+ l[c] = e.dirty[c] | o[c];
75
+ return l;
76
+ }
77
+ return e.dirty | o;
78
+ }
79
+ return e.dirty;
80
+ }
81
+ function an(n, e, t, i, o, l) {
82
+ if (o) {
83
+ const s = Tt(e, t, i, l);
84
+ n.p(s, o);
85
+ }
86
+ }
87
+ function fn(n) {
88
+ if (n.ctx.length > 32) {
89
+ const e = [], t = n.ctx.length / 32;
90
+ for (let i = 0; i < t; i++)
91
+ e[i] = -1;
92
+ return e;
93
+ }
94
+ return -1;
95
+ }
96
+ function L(n, e) {
51
97
  n.appendChild(e);
52
98
  }
53
- function Wt(n, e, t) {
54
- const i = Yt(n);
99
+ function un(n, e, t) {
100
+ const i = dn(n);
55
101
  if (!i.getElementById(e)) {
56
- const o = R("style");
57
- o.id = e, o.textContent = t, Kt(i, o);
102
+ const o = N("style");
103
+ o.id = e, o.textContent = t, hn(i, o);
58
104
  }
59
105
  }
60
- function Yt(n) {
106
+ function dn(n) {
61
107
  if (!n) return document;
62
108
  const e = n.getRootNode ? n.getRootNode() : n.ownerDocument;
63
109
  return e && /** @type {ShadowRoot} */
@@ -66,50 +112,50 @@ function Yt(n) {
66
112
  e
67
113
  ) : n.ownerDocument;
68
114
  }
69
- function Kt(n, e) {
70
- return E(
115
+ function hn(n, e) {
116
+ return L(
71
117
  /** @type {Document} */
72
118
  n.head || n,
73
119
  e
74
120
  ), e.sheet;
75
121
  }
76
- function S(n, e, t) {
122
+ function Y(n, e, t) {
77
123
  n.insertBefore(e, t || null);
78
124
  }
79
- function N(n) {
125
+ function S(n) {
80
126
  n.parentNode && n.parentNode.removeChild(n);
81
127
  }
82
- function R(n) {
128
+ function N(n) {
83
129
  return document.createElement(n);
84
130
  }
85
- function $(n) {
131
+ function ie(n) {
86
132
  return document.createElementNS("http://www.w3.org/2000/svg", n);
87
133
  }
88
- function pt(n) {
134
+ function Nt(n) {
89
135
  return document.createTextNode(n);
90
136
  }
91
- function J() {
92
- return pt(" ");
137
+ function q() {
138
+ return Nt(" ");
93
139
  }
94
- function Jt() {
95
- return pt("");
140
+ function mn() {
141
+ return Nt("");
96
142
  }
97
- function Se(n, e, t, i) {
143
+ function De(n, e, t, i) {
98
144
  return n.addEventListener(e, t, i), () => n.removeEventListener(e, t, i);
99
145
  }
100
- function a(n, e, t) {
146
+ function f(n, e, t) {
101
147
  t == null ? n.removeAttribute(e) : n.getAttribute(e) !== t && n.setAttribute(e, t);
102
148
  }
103
- function $t(n) {
149
+ function gn(n) {
104
150
  return Array.from(n.childNodes);
105
151
  }
106
- function at(n, e, t) {
152
+ function bt(n, e, t) {
107
153
  n.classList.toggle(e, !!t);
108
154
  }
109
- function qt(n, e, { bubbles: t = !1, cancelable: i = !1 } = {}) {
155
+ function bn(n, e, { bubbles: t = !1, cancelable: i = !1 } = {}) {
110
156
  return new CustomEvent(n, { detail: e, bubbles: t, cancelable: i });
111
157
  }
112
- function Qt(n) {
158
+ function yn(n) {
113
159
  const e = {};
114
160
  return n.childNodes.forEach(
115
161
  /** @param {Element} node */
@@ -118,167 +164,176 @@ function Qt(n) {
118
164
  }
119
165
  ), e;
120
166
  }
121
- let ge;
122
- function me(n) {
123
- ge = n;
167
+ let Ee;
168
+ function ke(n) {
169
+ Ee = n;
124
170
  }
125
- function Ue() {
126
- if (!ge) throw new Error("Function called outside component initialization");
127
- return ge;
171
+ function Me() {
172
+ if (!Ee) throw new Error("Function called outside component initialization");
173
+ return Ee;
128
174
  }
129
- function en(n) {
130
- Ue().$$.on_mount.push(n);
175
+ function vn(n) {
176
+ Me().$$.on_mount.push(n);
131
177
  }
132
- function tn(n) {
133
- Ue().$$.on_destroy.push(n);
178
+ function wn(n) {
179
+ Me().$$.on_destroy.push(n);
134
180
  }
135
- function nn() {
136
- const n = Ue();
181
+ function pn() {
182
+ const n = Me();
137
183
  return (e, t, { cancelable: i = !1 } = {}) => {
138
184
  const o = n.$$.callbacks[e];
139
185
  if (o) {
140
- const s = qt(
186
+ const l = bn(
141
187
  /** @type {string} */
142
188
  e,
143
189
  t,
144
190
  { cancelable: i }
145
191
  );
146
- return o.slice().forEach((u) => {
147
- u.call(n, s);
148
- }), !s.defaultPrevented;
192
+ return o.slice().forEach((s) => {
193
+ s.call(n, l);
194
+ }), !l.defaultPrevented;
149
195
  }
150
196
  return !0;
151
197
  };
152
198
  }
153
- const se = [], ze = [];
154
- let le = [];
155
- const ct = [], kt = /* @__PURE__ */ Promise.resolve();
156
- let je = !1;
157
- function Et() {
158
- je || (je = !0, kt.then(_));
199
+ const de = [], Ze = [];
200
+ let he = [];
201
+ const yt = [], At = /* @__PURE__ */ Promise.resolve();
202
+ let Ue = !1;
203
+ function zt() {
204
+ Ue || (Ue = !0, At.then(p));
159
205
  }
160
- function rn() {
161
- return Et(), kt;
206
+ function _n() {
207
+ return zt(), At;
162
208
  }
163
- function De(n) {
164
- le.push(n);
209
+ function Xe(n) {
210
+ he.push(n);
165
211
  }
166
- const Me = /* @__PURE__ */ new Set();
167
- let oe = 0;
168
- function _() {
169
- if (oe !== 0)
212
+ const Ye = /* @__PURE__ */ new Set();
213
+ let ue = 0;
214
+ function p() {
215
+ if (ue !== 0)
170
216
  return;
171
- const n = ge;
217
+ const n = Ee;
172
218
  do {
173
219
  try {
174
- for (; oe < se.length; ) {
175
- const e = se[oe];
176
- oe++, me(e), on(e.$$);
220
+ for (; ue < de.length; ) {
221
+ const e = de[ue];
222
+ ue++, ke(e), kn(e.$$);
177
223
  }
178
224
  } catch (e) {
179
- throw se.length = 0, oe = 0, e;
225
+ throw de.length = 0, ue = 0, e;
180
226
  }
181
- for (me(null), se.length = 0, oe = 0; ze.length; ) ze.pop()();
182
- for (let e = 0; e < le.length; e += 1) {
183
- const t = le[e];
184
- Me.has(t) || (Me.add(t), t());
227
+ for (ke(null), de.length = 0, ue = 0; Ze.length; ) Ze.pop()();
228
+ for (let e = 0; e < he.length; e += 1) {
229
+ const t = he[e];
230
+ Ye.has(t) || (Ye.add(t), t());
185
231
  }
186
- le.length = 0;
187
- } while (se.length);
188
- for (; ct.length; )
189
- ct.pop()();
190
- je = !1, Me.clear(), me(n);
232
+ he.length = 0;
233
+ } while (de.length);
234
+ for (; yt.length; )
235
+ yt.pop()();
236
+ Ue = !1, Ye.clear(), ke(n);
191
237
  }
192
- function on(n) {
238
+ function kn(n) {
193
239
  if (n.fragment !== null) {
194
- n.update(), _e(n.before_update);
240
+ n.update(), Ie(n.before_update);
195
241
  const e = n.dirty;
196
- n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(De);
242
+ n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(Xe);
197
243
  }
198
244
  }
199
- function sn(n) {
245
+ function En(n) {
200
246
  const e = [], t = [];
201
- le.forEach((i) => n.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), le = e;
247
+ he.forEach((i) => n.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), he = e;
202
248
  }
203
- const ln = /* @__PURE__ */ new Set();
204
- function an(n, e) {
205
- n && n.i && (ln.delete(n), n.i(e));
249
+ const ze = /* @__PURE__ */ new Set();
250
+ let xn;
251
+ function Ft(n, e) {
252
+ n && n.i && (ze.delete(n), n.i(e));
253
+ }
254
+ function Cn(n, e, t, i) {
255
+ if (n && n.o) {
256
+ if (ze.has(n)) return;
257
+ ze.add(n), xn.c.push(() => {
258
+ ze.delete(n);
259
+ }), n.o(e);
260
+ }
206
261
  }
207
- function cn(n, e, t) {
262
+ function Rn(n, e, t) {
208
263
  const { fragment: i, after_update: o } = n.$$;
209
- i && i.m(e, t), De(() => {
210
- const s = n.$$.on_mount.map(yt).filter(_t);
211
- n.$$.on_destroy ? n.$$.on_destroy.push(...s) : _e(s), n.$$.on_mount = [];
212
- }), o.forEach(De);
264
+ i && i.m(e, t), Xe(() => {
265
+ const l = n.$$.on_mount.map(Lt).filter(It);
266
+ n.$$.on_destroy ? n.$$.on_destroy.push(...l) : Ie(l), n.$$.on_mount = [];
267
+ }), o.forEach(Xe);
213
268
  }
214
- function fn(n, e) {
269
+ function Ln(n, e) {
215
270
  const t = n.$$;
216
- t.fragment !== null && (sn(t.after_update), _e(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
271
+ t.fragment !== null && (En(t.after_update), Ie(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
217
272
  }
218
- function un(n, e) {
219
- n.$$.dirty[0] === -1 && (se.push(n), Et(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
273
+ function In(n, e) {
274
+ n.$$.dirty[0] === -1 && (de.push(n), zt(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
220
275
  }
221
- function dn(n, e, t, i, o, s, u = null, c = [-1]) {
222
- const l = ge;
223
- me(n);
224
- const f = n.$$ = {
276
+ function Tn(n, e, t, i, o, l, s = null, c = [-1]) {
277
+ const a = Ee;
278
+ ke(n);
279
+ const d = n.$$ = {
225
280
  fragment: null,
226
281
  ctx: [],
227
282
  // state
228
- props: s,
229
- update: fe,
283
+ props: l,
284
+ update: Se,
230
285
  not_equal: o,
231
- bound: lt(),
286
+ bound: gt(),
232
287
  // lifecycle
233
288
  on_mount: [],
234
289
  on_destroy: [],
235
290
  on_disconnect: [],
236
291
  before_update: [],
237
292
  after_update: [],
238
- context: new Map(e.context || (l ? l.$$.context : [])),
293
+ context: new Map(e.context || (a ? a.$$.context : [])),
239
294
  // everything else
240
- callbacks: lt(),
295
+ callbacks: gt(),
241
296
  dirty: c,
242
297
  skip_bound: !1,
243
- root: e.target || l.$$.root
298
+ root: e.target || a.$$.root
244
299
  };
245
- u && u(f.root);
246
- let B = !1;
247
- if (f.ctx = t ? t(n, e.props || {}, (g, G, ...O) => {
248
- const X = O.length ? O[0] : G;
249
- return f.ctx && o(f.ctx[g], f.ctx[g] = X) && (!f.skip_bound && f.bound[g] && f.bound[g](X), B && un(n, g)), G;
250
- }) : [], f.update(), B = !0, _e(f.before_update), f.fragment = i ? i(f.ctx) : !1, e.target) {
300
+ s && s(d.root);
301
+ let v = !1;
302
+ if (d.ctx = t ? t(n, e.props || {}, (R, $, ...k) => {
303
+ const K = k.length ? k[0] : $;
304
+ return d.ctx && o(d.ctx[R], d.ctx[R] = K) && (!d.skip_bound && d.bound[R] && d.bound[R](K), v && In(n, R)), $;
305
+ }) : [], d.update(), v = !0, Ie(d.before_update), d.fragment = i ? i(d.ctx) : !1, e.target) {
251
306
  if (e.hydrate) {
252
- const g = $t(e.target);
253
- f.fragment && f.fragment.l(g), g.forEach(N);
307
+ const R = gn(e.target);
308
+ d.fragment && d.fragment.l(R), R.forEach(S);
254
309
  } else
255
- f.fragment && f.fragment.c();
256
- e.intro && an(n.$$.fragment), cn(n, e.target, e.anchor), _();
310
+ d.fragment && d.fragment.c();
311
+ e.intro && Ft(n.$$.fragment), Rn(n, e.target, e.anchor), p();
257
312
  }
258
- me(l);
313
+ ke(a);
259
314
  }
260
- let xt;
261
- typeof HTMLElement == "function" && (xt = class extends HTMLElement {
315
+ let St;
316
+ typeof HTMLElement == "function" && (St = class extends HTMLElement {
262
317
  constructor(e, t, i) {
263
318
  super();
264
319
  /** The Svelte component constructor */
265
- T(this, "$$ctor");
320
+ D(this, "$$ctor");
266
321
  /** Slots */
267
- T(this, "$$s");
322
+ D(this, "$$s");
268
323
  /** The Svelte component instance */
269
- T(this, "$$c");
324
+ D(this, "$$c");
270
325
  /** Whether or not the custom element is connected */
271
- T(this, "$$cn", !1);
326
+ D(this, "$$cn", !1);
272
327
  /** Component props data */
273
- T(this, "$$d", {});
328
+ D(this, "$$d", {});
274
329
  /** `true` if currently in the process of reflecting component props back to attributes */
275
- T(this, "$$r", !1);
330
+ D(this, "$$r", !1);
276
331
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
277
- T(this, "$$p_d", {});
332
+ D(this, "$$p_d", {});
278
333
  /** @type {Record<string, Function[]>} Event listeners */
279
- T(this, "$$l", {});
334
+ D(this, "$$l", {});
280
335
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
281
- T(this, "$$l_u", /* @__PURE__ */ new Map());
336
+ D(this, "$$l_u", /* @__PURE__ */ new Map());
282
337
  this.$$ctor = e, this.$$s = t, i && this.attachShadow({ mode: "open" });
283
338
  }
284
339
  addEventListener(e, t, i) {
@@ -296,37 +351,37 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
296
351
  }
297
352
  async connectedCallback() {
298
353
  if (this.$$cn = !0, !this.$$c) {
299
- let e = function(s) {
354
+ let e = function(l) {
300
355
  return () => {
301
- let u;
356
+ let s;
302
357
  return {
303
358
  c: function() {
304
- u = R("slot"), s !== "default" && a(u, "name", s);
359
+ s = N("slot"), l !== "default" && f(s, "name", l);
305
360
  },
306
361
  /**
307
362
  * @param {HTMLElement} target
308
363
  * @param {HTMLElement} [anchor]
309
364
  */
310
- m: function(f, B) {
311
- S(f, u, B);
365
+ m: function(d, v) {
366
+ Y(d, s, v);
312
367
  },
313
- d: function(f) {
314
- f && N(u);
368
+ d: function(d) {
369
+ d && S(s);
315
370
  }
316
371
  };
317
372
  };
318
373
  };
319
374
  if (await Promise.resolve(), !this.$$cn || this.$$c)
320
375
  return;
321
- const t = {}, i = Qt(this);
322
- for (const s of this.$$s)
323
- s in i && (t[s] = [e(s)]);
324
- for (const s of this.attributes) {
325
- const u = this.$$g_p(s.name);
326
- u in this.$$d || (this.$$d[u] = Ae(u, s.value, this.$$p_d, "toProp"));
376
+ const t = {}, i = yn(this);
377
+ for (const l of this.$$s)
378
+ l in i && (t[l] = [e(l)]);
379
+ for (const l of this.attributes) {
380
+ const s = this.$$g_p(l.name);
381
+ s in this.$$d || (this.$$d[s] = Fe(s, l.value, this.$$p_d, "toProp"));
327
382
  }
328
- for (const s in this.$$p_d)
329
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
383
+ for (const l in this.$$p_d)
384
+ !(l in this.$$d) && this[l] !== void 0 && (this.$$d[l] = this[l], delete this[l]);
330
385
  this.$$c = new this.$$ctor({
331
386
  target: this.shadowRoot || this,
332
387
  props: {
@@ -339,23 +394,23 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
339
394
  });
340
395
  const o = () => {
341
396
  this.$$r = !0;
342
- for (const s in this.$$p_d)
343
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
344
- const u = Ae(
345
- s,
346
- this.$$d[s],
397
+ for (const l in this.$$p_d)
398
+ if (this.$$d[l] = this.$$c.$$.ctx[this.$$c.$$.props[l]], this.$$p_d[l].reflect) {
399
+ const s = Fe(
400
+ l,
401
+ this.$$d[l],
347
402
  this.$$p_d,
348
403
  "toAttribute"
349
404
  );
350
- u == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, u);
405
+ s == null ? this.removeAttribute(this.$$p_d[l].attribute || l) : this.setAttribute(this.$$p_d[l].attribute || l, s);
351
406
  }
352
407
  this.$$r = !1;
353
408
  };
354
409
  this.$$c.$$.after_update.push(o), o();
355
- for (const s in this.$$l)
356
- for (const u of this.$$l[s]) {
357
- const c = this.$$c.$on(s, u);
358
- this.$$l_u.set(u, c);
410
+ for (const l in this.$$l)
411
+ for (const s of this.$$l[l]) {
412
+ const c = this.$$c.$on(l, s);
413
+ this.$$l_u.set(s, c);
359
414
  }
360
415
  this.$$l = {};
361
416
  }
@@ -364,7 +419,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
364
419
  // and setting attributes through setAttribute etc, this is helpful
365
420
  attributeChangedCallback(e, t, i) {
366
421
  var o;
367
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ae(e, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [e]: this.$$d[e] }));
422
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Fe(e, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [e]: this.$$d[e] }));
368
423
  }
369
424
  disconnectedCallback() {
370
425
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -377,9 +432,9 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
377
432
  ) || e;
378
433
  }
379
434
  });
380
- function Ae(n, e, t, i) {
381
- var s;
382
- const o = (s = t[n]) == null ? void 0 : s.type;
435
+ function Fe(n, e, t, i) {
436
+ var l;
437
+ const o = (l = t[n]) == null ? void 0 : l.type;
383
438
  if (e = o === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !t[n])
384
439
  return e;
385
440
  if (i === "toAttribute")
@@ -407,8 +462,8 @@ function Ae(n, e, t, i) {
407
462
  return e;
408
463
  }
409
464
  }
410
- function hn(n, e, t, i, o, s) {
411
- let u = class extends xt {
465
+ function Nn(n, e, t, i, o, l) {
466
+ let s = class extends St {
412
467
  constructor() {
413
468
  super(n, t, o), this.$$p_d = e;
414
469
  }
@@ -419,26 +474,26 @@ function hn(n, e, t, i, o, s) {
419
474
  }
420
475
  };
421
476
  return Object.keys(e).forEach((c) => {
422
- Object.defineProperty(u.prototype, c, {
477
+ Object.defineProperty(s.prototype, c, {
423
478
  get() {
424
479
  return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
425
480
  },
426
- set(l) {
427
- var f;
428
- l = Ae(c, l, e), this.$$d[c] = l, (f = this.$$c) == null || f.$set({ [c]: l });
481
+ set(a) {
482
+ var d;
483
+ a = Fe(c, a, e), this.$$d[c] = a, (d = this.$$c) == null || d.$set({ [c]: a });
429
484
  }
430
485
  });
431
486
  }), i.forEach((c) => {
432
- Object.defineProperty(u.prototype, c, {
487
+ Object.defineProperty(s.prototype, c, {
433
488
  get() {
434
- var l;
435
- return (l = this.$$c) == null ? void 0 : l[c];
489
+ var a;
490
+ return (a = this.$$c) == null ? void 0 : a[c];
436
491
  }
437
492
  });
438
493
  }), n.element = /** @type {any} */
439
- u, u;
494
+ s, s;
440
495
  }
441
- class mn {
496
+ class An {
442
497
  constructor() {
443
498
  /**
444
499
  * ### PRIVATE API
@@ -447,7 +502,7 @@ class mn {
447
502
  *
448
503
  * @type {any}
449
504
  */
450
- T(this, "$$");
505
+ D(this, "$$");
451
506
  /**
452
507
  * ### PRIVATE API
453
508
  *
@@ -455,11 +510,11 @@ class mn {
455
510
  *
456
511
  * @type {any}
457
512
  */
458
- T(this, "$$set");
513
+ D(this, "$$set");
459
514
  }
460
515
  /** @returns {void} */
461
516
  $destroy() {
462
- fn(this, 1), this.$destroy = fe;
517
+ Ln(this, 1), this.$destroy = Se;
463
518
  }
464
519
  /**
465
520
  * @template {Extract<keyof Events, string>} K
@@ -468,8 +523,8 @@ class mn {
468
523
  * @returns {() => void}
469
524
  */
470
525
  $on(e, t) {
471
- if (!_t(t))
472
- return fe;
526
+ if (!It(t))
527
+ return Se;
473
528
  const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
474
529
  return i.push(t), () => {
475
530
  const o = i.indexOf(t);
@@ -481,19 +536,19 @@ class mn {
481
536
  * @returns {void}
482
537
  */
483
538
  $set(e) {
484
- this.$$set && !Pt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
539
+ this.$$set && !ln(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
485
540
  }
486
541
  }
487
- const gn = "4";
488
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gn);
489
- const bn = new TextEncoder();
490
- function vn(n) {
542
+ const zn = "4";
543
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zn);
544
+ const Zt = new TextEncoder();
545
+ function Fn(n) {
491
546
  return [...new Uint8Array(n)].map((e) => e.toString(16).padStart(2, "0")).join("");
492
547
  }
493
- async function wn(n, e = "SHA-256", t = 1e5) {
548
+ async function Sn(n, e = "SHA-256", t = 1e5) {
494
549
  const i = Date.now().toString(16);
495
550
  n || (n = Math.round(Math.random() * t));
496
- const o = await Ct(i, n, e);
551
+ const o = await Vt(i, n, e);
497
552
  return {
498
553
  algorithm: e,
499
554
  challenge: o,
@@ -501,65 +556,126 @@ async function wn(n, e = "SHA-256", t = 1e5) {
501
556
  signature: ""
502
557
  };
503
558
  }
504
- async function Ct(n, e, t) {
505
- return vn(
559
+ async function Vt(n, e, t) {
560
+ return Fn(
506
561
  await crypto.subtle.digest(
507
562
  t.toUpperCase(),
508
- bn.encode(n + e)
563
+ Zt.encode(n + e)
509
564
  )
510
565
  );
511
566
  }
512
- function yn(n, e, t = "SHA-256", i = 1e6, o = 0) {
513
- const s = new AbortController(), u = Date.now();
567
+ function Zn(n, e, t = "SHA-256", i = 1e6, o = 0) {
568
+ const l = new AbortController(), s = Date.now();
514
569
  return {
515
570
  promise: (async () => {
516
- for (let l = o; l <= i; l += 1) {
517
- if (s.signal.aborted)
571
+ for (let a = o; a <= i; a += 1) {
572
+ if (l.signal.aborted)
518
573
  return null;
519
- if (await Ct(e, l, t) === n)
574
+ if (await Vt(e, a, t) === n)
520
575
  return {
521
- number: l,
522
- took: Date.now() - u
576
+ number: a,
577
+ took: Date.now() - s
523
578
  };
524
579
  }
525
580
  return null;
526
581
  })(),
527
- controller: s
582
+ controller: l
528
583
  };
529
584
  }
530
- function Lt() {
585
+ function Ht() {
531
586
  try {
532
587
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
533
588
  } catch {
534
589
  }
535
590
  }
536
- var ae, ce, be, ve, we, ye;
537
- class _n {
591
+ function Vn(n) {
592
+ const e = atob(n), t = new Uint8Array(e.length);
593
+ for (let i = 0; i < e.length; i++)
594
+ t[i] = e.charCodeAt(i);
595
+ return t;
596
+ }
597
+ function Hn(n, e = 12) {
598
+ const t = new Uint8Array(e);
599
+ for (let i = 0; i < e; i++)
600
+ t[i] = n % 256, n = Math.floor(n / 256);
601
+ return t;
602
+ }
603
+ async function Gn(n, e = "", t = 1e6, i = 0) {
604
+ const o = "AES-GCM", l = new AbortController(), s = Date.now(), c = async () => {
605
+ for (let v = i; v <= t; v += 1) {
606
+ if (l.signal.aborted || !a || !d)
607
+ return null;
608
+ try {
609
+ const R = await crypto.subtle.decrypt(
610
+ {
611
+ name: o,
612
+ iv: Hn(v)
613
+ },
614
+ a,
615
+ d
616
+ );
617
+ if (R)
618
+ return {
619
+ clearText: new TextDecoder().decode(R),
620
+ took: Date.now() - s
621
+ };
622
+ } catch {
623
+ }
624
+ }
625
+ return null;
626
+ };
627
+ let a = null, d = null;
628
+ try {
629
+ d = Vn(n);
630
+ const v = await crypto.subtle.digest(
631
+ "SHA-256",
632
+ Zt.encode(e)
633
+ );
634
+ a = await crypto.subtle.importKey(
635
+ "raw",
636
+ v,
637
+ o,
638
+ !1,
639
+ ["decrypt"]
640
+ );
641
+ } catch {
642
+ return {
643
+ promise: Promise.reject(),
644
+ controller: l
645
+ };
646
+ }
647
+ return {
648
+ promise: c(),
649
+ controller: l
650
+ };
651
+ }
652
+ var me, ge, xe, Ce, Re, Le;
653
+ class Dn {
538
654
  constructor(e) {
539
- T(this, "beaconUrl", null);
540
- T(this, "error", null);
541
- T(this, "loadTime", Date.now());
542
- T(this, "submitTime", null);
543
- T(this, "startTime", null);
544
- T(this, "viewTimeThresholdMs", 1500);
545
- ie(this, ae, {});
546
- ie(this, ce, null);
547
- ie(this, be, this.onFormChange.bind(this));
548
- ie(this, ve, this.onFormFocus.bind(this));
549
- ie(this, we, this.onFormSubmit.bind(this));
550
- ie(this, ye, this.onUnload.bind(this));
551
- this.elForm = e, window.addEventListener("unload", V(this, ye)), this.elForm.addEventListener("change", V(this, be)), this.elForm.addEventListener("focusin", V(this, ve)), this.elForm.addEventListener("submit", V(this, we));
655
+ D(this, "beaconUrl", null);
656
+ D(this, "error", null);
657
+ D(this, "loadTime", Date.now());
658
+ D(this, "submitTime", null);
659
+ D(this, "startTime", null);
660
+ D(this, "viewTimeThresholdMs", 1500);
661
+ fe(this, me, {});
662
+ fe(this, ge, null);
663
+ fe(this, xe, this.onFormChange.bind(this));
664
+ fe(this, Ce, this.onFormFocus.bind(this));
665
+ fe(this, Re, this.onFormSubmit.bind(this));
666
+ fe(this, Le, this.onUnload.bind(this));
667
+ this.elForm = e, window.addEventListener("unload", W(this, Le)), this.elForm.addEventListener("change", W(this, xe)), this.elForm.addEventListener("focusin", W(this, Ce)), this.elForm.addEventListener("submit", W(this, Re));
552
668
  }
553
669
  data() {
554
- const e = Object.entries(V(this, ae));
670
+ const e = Object.entries(W(this, me));
555
671
  return {
556
672
  correction: e.length && e.filter(([t, i]) => i > 1).length / e.length || 0,
557
- dropoff: !this.submitTime && !this.error && V(this, ce) ? V(this, ce) : null,
673
+ dropoff: !this.submitTime && !this.error && W(this, ge) ? W(this, ge) : null,
558
674
  error: this.error,
559
675
  mobile: this.isMobile(),
560
676
  start: this.startTime,
561
677
  submit: this.submitTime,
562
- tz: Lt()
678
+ tz: Ht()
563
679
  };
564
680
  }
565
681
  dataAsBase64() {
@@ -573,7 +689,7 @@ class _n {
573
689
  return "";
574
690
  }
575
691
  destroy() {
576
- window.removeEventListener("unload", V(this, ye)), this.elForm.removeEventListener("change", V(this, be)), this.elForm.removeEventListener("focusin", V(this, ve)), this.elForm.removeEventListener("submit", V(this, we));
692
+ window.removeEventListener("unload", W(this, Le)), this.elForm.removeEventListener("change", W(this, xe)), this.elForm.removeEventListener("focusin", W(this, Ce)), this.elForm.removeEventListener("submit", W(this, Re));
577
693
  }
578
694
  end() {
579
695
  this.submitTime || (this.submitTime = Date.now());
@@ -601,7 +717,7 @@ class _n {
601
717
  const t = e.target;
602
718
  if (this.startTime || this.start(), t && this.isInput(t)) {
603
719
  const i = this.getFieldName(t);
604
- i && ot(this, ce, i);
720
+ i && ht(this, ge, i);
605
721
  }
606
722
  }
607
723
  onFormSubmit() {
@@ -627,64 +743,64 @@ class _n {
627
743
  this.error = e === null ? null : String(e);
628
744
  }
629
745
  trackFieldChange(e) {
630
- V(this, ae)[e] = (V(this, ae)[e] || 0) + 1;
746
+ W(this, me)[e] = (W(this, me)[e] || 0) + 1;
631
747
  }
632
748
  }
633
- ae = new WeakMap(), ce = new WeakMap(), be = new WeakMap(), ve = new WeakMap(), we = new WeakMap(), ye = new WeakMap();
634
- var w = /* @__PURE__ */ ((n) => (n.ERROR = "error", n.VERIFIED = "verified", n.VERIFYING = "verifying", n.UNVERIFIED = "unverified", n.EXPIRED = "expired", n))(w || {});
635
- function pn(n) {
636
- Wt(n, "svelte-ddsc3z", '.altcha.svelte-ddsc3z.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.svelte-ddsc3z:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.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.svelte-ddsc3z{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.svelte-ddsc3z:not([data-state=unverified]){display:block}.altcha-anchor-arrow.svelte-ddsc3z.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.svelte-ddsc3z{align-items:center;display:flex;gap:0.4rem;padding:0.7rem}.altcha-label.svelte-ddsc3z.svelte-ddsc3z{flex-grow:1}.altcha-label.svelte-ddsc3z label.svelte-ddsc3z{cursor:pointer}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z{color:currentColor;opacity:0.3}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z:hover{opacity:1}.altcha-error.svelte-ddsc3z.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.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.svelte-ddsc3z:hover{opacity:1}.altcha-footer.svelte-ddsc3z>.svelte-ddsc3z:first-child{flex-grow:1}.altcha-footer.svelte-ddsc3z a{color:currentColor}.altcha-checkbox.svelte-ddsc3z.svelte-ddsc3z{display:flex;align-items:center;height:24px;width:24px}.altcha-checkbox.svelte-ddsc3z input.svelte-ddsc3z{width:18px;height:18px;margin:0}.altcha-hidden.svelte-ddsc3z.svelte-ddsc3z{display:none}.altcha-spinner.svelte-ddsc3z.svelte-ddsc3z{animation:svelte-ddsc3z-altcha-spinner 0.75s infinite linear;transform-origin:center}@keyframes svelte-ddsc3z-altcha-spinner{100%{transform:rotate(360deg)}}');
749
+ me = new WeakMap(), ge = new WeakMap(), xe = new WeakMap(), Ce = new WeakMap(), Re = new WeakMap(), Le = new WeakMap();
750
+ var y = /* @__PURE__ */ ((n) => (n.ERROR = "error", n.VERIFIED = "verified", n.VERIFYING = "verifying", n.UNVERIFIED = "unverified", n.EXPIRED = "expired", n))(y || {});
751
+ function Yn(n) {
752
+ un(n, "svelte-ddsc3z", '.altcha.svelte-ddsc3z.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.svelte-ddsc3z:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.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.svelte-ddsc3z{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.svelte-ddsc3z:not([data-state=unverified]){display:block}.altcha-anchor-arrow.svelte-ddsc3z.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.svelte-ddsc3z{align-items:center;display:flex;gap:0.4rem;padding:0.7rem}.altcha-label.svelte-ddsc3z.svelte-ddsc3z{flex-grow:1}.altcha-label.svelte-ddsc3z label.svelte-ddsc3z{cursor:pointer}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z{color:currentColor;opacity:0.3}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z:hover{opacity:1}.altcha-error.svelte-ddsc3z.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.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.svelte-ddsc3z:hover{opacity:1}.altcha-footer.svelte-ddsc3z>.svelte-ddsc3z:first-child{flex-grow:1}.altcha-footer.svelte-ddsc3z a{color:currentColor}.altcha-checkbox.svelte-ddsc3z.svelte-ddsc3z{display:flex;align-items:center;height:24px;width:24px}.altcha-checkbox.svelte-ddsc3z input.svelte-ddsc3z{width:18px;height:18px;margin:0}.altcha-hidden.svelte-ddsc3z.svelte-ddsc3z{display:none}.altcha-spinner.svelte-ddsc3z.svelte-ddsc3z{animation:svelte-ddsc3z-altcha-spinner 0.75s infinite linear;transform-origin:center}@keyframes svelte-ddsc3z-altcha-spinner{100%{transform:rotate(360deg)}}');
637
753
  }
638
- function ft(n) {
754
+ function vt(n) {
639
755
  let e, t, i;
640
756
  return {
641
757
  c() {
642
- e = $("svg"), t = $("path"), i = $("path"), a(t, "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"), a(t, "fill", "currentColor"), a(t, "opacity", ".25"), a(i, "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"), a(i, "fill", "currentColor"), a(i, "class", "altcha-spinner svelte-ddsc3z"), a(e, "width", "24"), a(e, "height", "24"), a(e, "viewBox", "0 0 24 24"), a(e, "xmlns", "http://www.w3.org/2000/svg");
758
+ e = ie("svg"), t = ie("path"), i = ie("path"), f(t, "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"), f(t, "fill", "currentColor"), f(t, "opacity", ".25"), f(i, "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"), f(i, "fill", "currentColor"), f(i, "class", "altcha-spinner svelte-ddsc3z"), f(e, "width", "24"), f(e, "height", "24"), f(e, "viewBox", "0 0 24 24"), f(e, "xmlns", "http://www.w3.org/2000/svg");
643
759
  },
644
- m(o, s) {
645
- S(o, e, s), E(e, t), E(e, i);
760
+ m(o, l) {
761
+ Y(o, e, l), L(e, t), L(e, i);
646
762
  },
647
763
  d(o) {
648
- o && N(e);
764
+ o && S(e);
649
765
  }
650
766
  };
651
767
  }
652
- function kn(n) {
768
+ function Un(n) {
653
769
  let e, t = (
654
770
  /*_strings*/
655
771
  n[13].label + ""
656
772
  ), i;
657
773
  return {
658
774
  c() {
659
- e = R("label"), a(e, "for", i = /*name*/
660
- n[4] + "_checkbox"), a(e, "class", "svelte-ddsc3z");
775
+ e = N("label"), f(e, "for", i = /*name*/
776
+ n[4] + "_checkbox"), f(e, "class", "svelte-ddsc3z");
661
777
  },
662
- m(o, s) {
663
- S(o, e, s), e.innerHTML = t;
778
+ m(o, l) {
779
+ Y(o, e, l), e.innerHTML = t;
664
780
  },
665
- p(o, s) {
666
- s[0] & /*_strings*/
781
+ p(o, l) {
782
+ l[0] & /*_strings*/
667
783
  8192 && t !== (t = /*_strings*/
668
- o[13].label + "") && (e.innerHTML = t), s[0] & /*name*/
784
+ o[13].label + "") && (e.innerHTML = t), l[0] & /*name*/
669
785
  16 && i !== (i = /*name*/
670
- o[4] + "_checkbox") && a(e, "for", i);
786
+ o[4] + "_checkbox") && f(e, "for", i);
671
787
  },
672
788
  d(o) {
673
- o && N(e);
789
+ o && S(e);
674
790
  }
675
791
  };
676
792
  }
677
- function En(n) {
793
+ function Xn(n) {
678
794
  let e, t = (
679
795
  /*_strings*/
680
796
  n[13].verifying + ""
681
797
  );
682
798
  return {
683
799
  c() {
684
- e = R("span");
800
+ e = N("span");
685
801
  },
686
802
  m(i, o) {
687
- S(i, e, o), e.innerHTML = t;
803
+ Y(i, e, o), e.innerHTML = t;
688
804
  },
689
805
  p(i, o) {
690
806
  o[0] & /*_strings*/
@@ -692,21 +808,21 @@ function En(n) {
692
808
  i[13].verifying + "") && (e.innerHTML = t);
693
809
  },
694
810
  d(i) {
695
- i && N(e);
811
+ i && S(e);
696
812
  }
697
813
  };
698
814
  }
699
- function xn(n) {
815
+ function Mn(n) {
700
816
  let e, t = (
701
817
  /*_strings*/
702
818
  n[13].verified + ""
703
- ), i, o, s, u, c = (
819
+ ), i, o, l, s, c = (
704
820
  /*session*/
705
- n[11] && ut(n)
821
+ n[11] && wt(n)
706
822
  );
707
823
  return {
708
824
  c() {
709
- e = R("span"), i = J(), o = R("input"), s = J(), c && c.c(), u = Jt(), a(o, "type", "hidden"), a(
825
+ e = N("span"), i = q(), o = N("input"), l = q(), c && c.c(), s = mn(), f(o, "type", "hidden"), f(
710
826
  o,
711
827
  "name",
712
828
  /*name*/
@@ -714,37 +830,37 @@ function xn(n) {
714
830
  ), o.value = /*payload*/
715
831
  n[6];
716
832
  },
717
- m(l, f) {
718
- S(l, e, f), e.innerHTML = t, S(l, i, f), S(l, o, f), S(l, s, f), c && c.m(l, f), S(l, u, f);
833
+ m(a, d) {
834
+ Y(a, e, d), e.innerHTML = t, Y(a, i, d), Y(a, o, d), Y(a, l, d), c && c.m(a, d), Y(a, s, d);
719
835
  },
720
- p(l, f) {
721
- f[0] & /*_strings*/
836
+ p(a, d) {
837
+ d[0] & /*_strings*/
722
838
  8192 && t !== (t = /*_strings*/
723
- l[13].verified + "") && (e.innerHTML = t), f[0] & /*name*/
724
- 16 && a(
839
+ a[13].verified + "") && (e.innerHTML = t), d[0] & /*name*/
840
+ 16 && f(
725
841
  o,
726
842
  "name",
727
843
  /*name*/
728
- l[4]
729
- ), f[0] & /*payload*/
844
+ a[4]
845
+ ), d[0] & /*payload*/
730
846
  64 && (o.value = /*payload*/
731
- l[6]), /*session*/
732
- l[11] ? c ? c.p(l, f) : (c = ut(l), c.c(), c.m(u.parentNode, u)) : c && (c.d(1), c = null);
847
+ a[6]), /*session*/
848
+ a[11] ? c ? c.p(a, d) : (c = wt(a), c.c(), c.m(s.parentNode, s)) : c && (c.d(1), c = null);
733
849
  },
734
- d(l) {
735
- l && (N(e), N(i), N(o), N(s), N(u)), c && c.d(l);
850
+ d(a) {
851
+ a && (S(e), S(i), S(o), S(l), S(s)), c && c.d(a);
736
852
  }
737
853
  };
738
854
  }
739
- function ut(n) {
855
+ function wt(n) {
740
856
  let e;
741
857
  return {
742
858
  c() {
743
- e = R("input"), a(e, "type", "hidden"), a(e, "name", "__session"), e.value = /*sessionPayload*/
859
+ e = N("input"), f(e, "type", "hidden"), f(e, "name", "__session"), e.value = /*sessionPayload*/
744
860
  n[12];
745
861
  },
746
862
  m(t, i) {
747
- S(t, e, i);
863
+ Y(t, e, i);
748
864
  },
749
865
  p(t, i) {
750
866
  i[0] & /*sessionPayload*/
@@ -752,62 +868,62 @@ function ut(n) {
752
868
  t[12]);
753
869
  },
754
870
  d(t) {
755
- t && N(e);
871
+ t && S(e);
756
872
  }
757
873
  };
758
874
  }
759
- function dt(n) {
760
- let e, t, i, o, s, u, c;
875
+ function pt(n) {
876
+ let e, t, i, o, l, s, c;
761
877
  return {
762
878
  c() {
763
- e = R("div"), t = R("a"), i = $("svg"), o = $("path"), s = $("path"), u = $("path"), a(o, "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"), a(o, "fill", "currentColor"), a(s, "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"), a(s, "fill", "currentColor"), a(u, "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"), a(u, "fill", "currentColor"), a(i, "width", "22"), a(i, "height", "22"), a(i, "viewBox", "0 0 20 20"), a(i, "fill", "none"), a(i, "xmlns", "http://www.w3.org/2000/svg"), a(t, "href", Rt), a(t, "target", "_blank"), a(t, "class", "altcha-logo svelte-ddsc3z"), a(t, "aria-label", c = /*_strings*/
879
+ e = N("div"), t = N("a"), i = ie("svg"), o = ie("path"), l = ie("path"), s = ie("path"), f(o, "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"), f(o, "fill", "currentColor"), f(l, "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"), f(l, "fill", "currentColor"), f(s, "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"), f(s, "fill", "currentColor"), f(i, "width", "22"), f(i, "height", "22"), f(i, "viewBox", "0 0 20 20"), f(i, "fill", "none"), f(i, "xmlns", "http://www.w3.org/2000/svg"), f(t, "href", Gt), f(t, "target", "_blank"), f(t, "class", "altcha-logo svelte-ddsc3z"), f(t, "aria-label", c = /*_strings*/
764
880
  n[13].ariaLinkLabel);
765
881
  },
766
- m(l, f) {
767
- S(l, e, f), E(e, t), E(t, i), E(i, o), E(i, s), E(i, u);
882
+ m(a, d) {
883
+ Y(a, e, d), L(e, t), L(t, i), L(i, o), L(i, l), L(i, s);
768
884
  },
769
- p(l, f) {
770
- f[0] & /*_strings*/
885
+ p(a, d) {
886
+ d[0] & /*_strings*/
771
887
  8192 && c !== (c = /*_strings*/
772
- l[13].ariaLinkLabel) && a(t, "aria-label", c);
888
+ a[13].ariaLinkLabel) && f(t, "aria-label", c);
773
889
  },
774
- d(l) {
775
- l && N(e);
890
+ d(a) {
891
+ a && S(e);
776
892
  }
777
893
  };
778
894
  }
779
- function ht(n) {
895
+ function _t(n) {
780
896
  let e, t, i, o;
781
- function s(l, f) {
897
+ function l(a, d) {
782
898
  return (
783
899
  /*state*/
784
- l[7] === w.EXPIRED ? Ln : Cn
900
+ a[7] === y.EXPIRED ? Wn : jn
785
901
  );
786
902
  }
787
- let u = s(n), c = u(n);
903
+ let s = l(n), c = s(n);
788
904
  return {
789
905
  c() {
790
- e = R("div"), t = $("svg"), i = $("path"), o = J(), c.c(), a(i, "stroke-linecap", "round"), a(i, "stroke-linejoin", "round"), a(i, "d", "M6 18L18 6M6 6l12 12"), a(t, "width", "14"), a(t, "height", "14"), a(t, "xmlns", "http://www.w3.org/2000/svg"), a(t, "fill", "none"), a(t, "viewBox", "0 0 24 24"), a(t, "stroke-width", "1.5"), a(t, "stroke", "currentColor"), a(e, "class", "altcha-error svelte-ddsc3z");
906
+ e = N("div"), t = ie("svg"), i = ie("path"), o = q(), c.c(), f(i, "stroke-linecap", "round"), f(i, "stroke-linejoin", "round"), f(i, "d", "M6 18L18 6M6 6l12 12"), f(t, "width", "14"), f(t, "height", "14"), f(t, "xmlns", "http://www.w3.org/2000/svg"), f(t, "fill", "none"), f(t, "viewBox", "0 0 24 24"), f(t, "stroke-width", "1.5"), f(t, "stroke", "currentColor"), f(e, "class", "altcha-error svelte-ddsc3z");
791
907
  },
792
- m(l, f) {
793
- S(l, e, f), E(e, t), E(t, i), E(e, o), c.m(e, null);
908
+ m(a, d) {
909
+ Y(a, e, d), L(e, t), L(t, i), L(e, o), c.m(e, null);
794
910
  },
795
- p(l, f) {
796
- u === (u = s(l)) && c ? c.p(l, f) : (c.d(1), c = u(l), c && (c.c(), c.m(e, null)));
911
+ p(a, d) {
912
+ s === (s = l(a)) && c ? c.p(a, d) : (c.d(1), c = s(a), c && (c.c(), c.m(e, null)));
797
913
  },
798
- d(l) {
799
- l && N(e), c.d();
914
+ d(a) {
915
+ a && S(e), c.d();
800
916
  }
801
917
  };
802
918
  }
803
- function Cn(n) {
919
+ function jn(n) {
804
920
  let e, t = (
805
921
  /*_strings*/
806
922
  n[13].error + ""
807
923
  );
808
924
  return {
809
925
  c() {
810
- e = R("div"), a(
926
+ e = N("div"), f(
811
927
  e,
812
928
  "title",
813
929
  /*error*/
@@ -815,13 +931,13 @@ function Cn(n) {
815
931
  );
816
932
  },
817
933
  m(i, o) {
818
- S(i, e, o), e.innerHTML = t;
934
+ Y(i, e, o), e.innerHTML = t;
819
935
  },
820
936
  p(i, o) {
821
937
  o[0] & /*_strings*/
822
938
  8192 && t !== (t = /*_strings*/
823
939
  i[13].error + "") && (e.innerHTML = t), o[0] & /*error*/
824
- 32 && a(
940
+ 32 && f(
825
941
  e,
826
942
  "title",
827
943
  /*error*/
@@ -829,18 +945,18 @@ function Cn(n) {
829
945
  );
830
946
  },
831
947
  d(i) {
832
- i && N(e);
948
+ i && S(e);
833
949
  }
834
950
  };
835
951
  }
836
- function Ln(n) {
952
+ function Wn(n) {
837
953
  let e, t = (
838
954
  /*_strings*/
839
955
  n[13].expired + ""
840
956
  );
841
957
  return {
842
958
  c() {
843
- e = R("div"), a(
959
+ e = N("div"), f(
844
960
  e,
845
961
  "title",
846
962
  /*error*/
@@ -848,13 +964,13 @@ function Ln(n) {
848
964
  );
849
965
  },
850
966
  m(i, o) {
851
- S(i, e, o), e.innerHTML = t;
967
+ Y(i, e, o), e.innerHTML = t;
852
968
  },
853
969
  p(i, o) {
854
970
  o[0] & /*_strings*/
855
971
  8192 && t !== (t = /*_strings*/
856
972
  i[13].expired + "") && (e.innerHTML = t), o[0] & /*error*/
857
- 32 && a(
973
+ 32 && f(
858
974
  e,
859
975
  "title",
860
976
  /*error*/
@@ -862,387 +978,437 @@ function Ln(n) {
862
978
  );
863
979
  },
864
980
  d(i) {
865
- i && N(e);
981
+ i && S(e);
866
982
  }
867
983
  };
868
984
  }
869
- function mt(n) {
985
+ function kt(n) {
870
986
  let e, t, i = (
871
987
  /*_strings*/
872
988
  n[13].footer + ""
873
989
  );
874
990
  return {
875
991
  c() {
876
- e = R("div"), t = R("div"), a(t, "class", "svelte-ddsc3z"), a(e, "class", "altcha-footer svelte-ddsc3z");
992
+ e = N("div"), t = N("div"), f(t, "class", "svelte-ddsc3z"), f(e, "class", "altcha-footer svelte-ddsc3z");
877
993
  },
878
- m(o, s) {
879
- S(o, e, s), E(e, t), t.innerHTML = i;
994
+ m(o, l) {
995
+ Y(o, e, l), L(e, t), t.innerHTML = i;
880
996
  },
881
- p(o, s) {
882
- s[0] & /*_strings*/
997
+ p(o, l) {
998
+ l[0] & /*_strings*/
883
999
  8192 && i !== (i = /*_strings*/
884
1000
  o[13].footer + "") && (t.innerHTML = i);
885
1001
  },
886
1002
  d(o) {
887
- o && N(e);
1003
+ o && S(e);
888
1004
  }
889
1005
  };
890
1006
  }
891
- function gt(n) {
1007
+ function Et(n) {
892
1008
  let e;
893
1009
  return {
894
1010
  c() {
895
- e = R("div"), a(e, "class", "altcha-anchor-arrow svelte-ddsc3z");
1011
+ e = N("div"), f(e, "class", "altcha-anchor-arrow svelte-ddsc3z");
896
1012
  },
897
1013
  m(t, i) {
898
- S(t, e, i), n[41](e);
1014
+ Y(t, e, i), n[46](e);
899
1015
  },
900
- p: fe,
1016
+ p: Se,
901
1017
  d(t) {
902
- t && N(e), n[41](null);
1018
+ t && S(e), n[46](null);
903
1019
  }
904
1020
  };
905
1021
  }
906
- function Rn(n) {
907
- let e, t, i, o, s, u, c, l, f, B, g, G, O, X, Y, b = (
1022
+ function Bn(n) {
1023
+ let e, t, i, o, l, s, c, a, d, v, R, $, k, K, X, ee, te;
1024
+ const A = (
1025
+ /*#slots*/
1026
+ n[44].default
1027
+ ), U = sn(
1028
+ A,
1029
+ n,
1030
+ /*$$scope*/
1031
+ n[43],
1032
+ null
1033
+ );
1034
+ let Z = (
908
1035
  /*state*/
909
- n[7] === w.VERIFYING && ft()
1036
+ n[7] === y.VERIFYING && vt()
910
1037
  );
911
- function q(h, p) {
1038
+ function oe(h, x) {
912
1039
  return (
913
1040
  /*state*/
914
- h[7] === w.VERIFIED ? xn : (
1041
+ h[7] === y.VERIFIED ? Mn : (
915
1042
  /*state*/
916
- h[7] === w.VERIFYING ? En : kn
1043
+ h[7] === y.VERIFYING ? Xn : Un
917
1044
  )
918
1045
  );
919
1046
  }
920
- let K = q(n), j = K(n), I = (
1047
+ let ne = oe(n), j = ne(n), I = (
921
1048
  /*hidelogo*/
922
1049
  (n[3] !== !0 || /*isFreeSaaS*/
923
- n[14]) && dt(n)
924
- ), F = (
1050
+ n[14]) && pt(n)
1051
+ ), z = (
925
1052
  /*error*/
926
1053
  (n[5] || /*state*/
927
- n[7] === w.EXPIRED) && ht(n)
928
- ), x = (
1054
+ n[7] === y.EXPIRED) && _t(n)
1055
+ ), E = (
929
1056
  /*_strings*/
930
1057
  n[13].footer && /*hidefooter*/
931
1058
  (n[2] !== !0 || /*isFreeSaaS*/
932
- n[14]) && mt(n)
933
- ), A = (
1059
+ n[14]) && kt(n)
1060
+ ), F = (
934
1061
  /*floating*/
935
- n[1] && gt(n)
1062
+ n[1] && Et(n)
936
1063
  );
937
1064
  return {
938
1065
  c() {
939
- e = R("div"), t = R("div"), b && b.c(), i = J(), o = R("div"), s = R("input"), l = J(), f = R("div"), j.c(), B = J(), I && I.c(), g = J(), F && F.c(), G = J(), x && x.c(), O = J(), A && A.c(), a(s, "type", "checkbox"), a(s, "id", u = /*name*/
940
- n[4] + "_checkbox"), s.required = c = /*auto*/
941
- n[0] !== "onsubmit", a(s, "class", "svelte-ddsc3z"), a(o, "class", "altcha-checkbox svelte-ddsc3z"), at(
942
- o,
1066
+ U && U.c(), e = q(), t = N("div"), i = N("div"), Z && Z.c(), o = q(), l = N("div"), s = N("input"), d = q(), v = N("div"), j.c(), R = q(), I && I.c(), $ = q(), z && z.c(), k = q(), E && E.c(), K = q(), F && F.c(), f(s, "type", "checkbox"), f(s, "id", c = /*name*/
1067
+ n[4] + "_checkbox"), s.required = a = /*auto*/
1068
+ n[0] !== "onsubmit", f(s, "class", "svelte-ddsc3z"), f(l, "class", "altcha-checkbox svelte-ddsc3z"), bt(
1069
+ l,
943
1070
  "altcha-hidden",
944
1071
  /*state*/
945
- n[7] === w.VERIFYING
946
- ), a(f, "class", "altcha-label svelte-ddsc3z"), a(t, "class", "altcha-main svelte-ddsc3z"), a(e, "class", "altcha svelte-ddsc3z"), a(
947
- e,
1072
+ n[7] === y.VERIFYING
1073
+ ), f(v, "class", "altcha-label svelte-ddsc3z"), f(i, "class", "altcha-main svelte-ddsc3z"), f(t, "class", "altcha svelte-ddsc3z"), f(
1074
+ t,
948
1075
  "data-state",
949
1076
  /*state*/
950
1077
  n[7]
951
- ), a(
952
- e,
1078
+ ), f(
1079
+ t,
953
1080
  "data-floating",
954
1081
  /*floating*/
955
1082
  n[1]
956
1083
  );
957
1084
  },
958
- m(h, p) {
959
- S(h, e, p), E(e, t), b && b.m(t, null), E(t, i), E(t, o), E(o, s), s.checked = /*checked*/
960
- n[8], E(t, l), E(t, f), j.m(f, null), E(t, B), I && I.m(t, null), E(e, g), F && F.m(e, null), E(e, G), x && x.m(e, null), E(e, O), A && A.m(e, null), n[42](e), X || (Y = [
961
- Se(
1085
+ m(h, x) {
1086
+ U && U.m(h, x), Y(h, e, x), Y(h, t, x), L(t, i), Z && Z.m(i, null), L(i, o), L(i, l), L(l, s), s.checked = /*checked*/
1087
+ n[8], L(i, d), L(i, v), j.m(v, null), L(i, R), I && I.m(i, null), L(t, $), z && z.m(t, null), L(t, k), E && E.m(t, null), L(t, K), F && F.m(t, null), n[47](t), X = !0, ee || (te = [
1088
+ De(
962
1089
  s,
963
1090
  "change",
964
1091
  /*input_change_handler*/
965
- n[40]
1092
+ n[45]
966
1093
  ),
967
- Se(
1094
+ De(
968
1095
  s,
969
1096
  "change",
970
1097
  /*onCheckedChange*/
971
1098
  n[15]
972
1099
  ),
973
- Se(
1100
+ De(
974
1101
  s,
975
1102
  "invalid",
976
1103
  /*onInvalid*/
977
1104
  n[16]
978
1105
  )
979
- ], X = !0);
1106
+ ], ee = !0);
980
1107
  },
981
- p(h, p) {
982
- /*state*/
983
- h[7] === w.VERIFYING ? b || (b = ft(), b.c(), b.m(t, i)) : b && (b.d(1), b = null), p[0] & /*name*/
984
- 16 && u !== (u = /*name*/
985
- h[4] + "_checkbox") && a(s, "id", u), p[0] & /*auto*/
986
- 1 && c !== (c = /*auto*/
987
- h[0] !== "onsubmit") && (s.required = c), p[0] & /*checked*/
1108
+ p(h, x) {
1109
+ U && U.p && (!X || x[1] & /*$$scope*/
1110
+ 4096) && an(
1111
+ U,
1112
+ A,
1113
+ h,
1114
+ /*$$scope*/
1115
+ h[43],
1116
+ X ? cn(
1117
+ A,
1118
+ /*$$scope*/
1119
+ h[43],
1120
+ x,
1121
+ null
1122
+ ) : fn(
1123
+ /*$$scope*/
1124
+ h[43]
1125
+ ),
1126
+ null
1127
+ ), /*state*/
1128
+ h[7] === y.VERIFYING ? Z || (Z = vt(), Z.c(), Z.m(i, o)) : Z && (Z.d(1), Z = null), (!X || x[0] & /*name*/
1129
+ 16 && c !== (c = /*name*/
1130
+ h[4] + "_checkbox")) && f(s, "id", c), (!X || x[0] & /*auto*/
1131
+ 1 && a !== (a = /*auto*/
1132
+ h[0] !== "onsubmit")) && (s.required = a), x[0] & /*checked*/
988
1133
  256 && (s.checked = /*checked*/
989
- h[8]), p[0] & /*state*/
990
- 128 && at(
991
- o,
1134
+ h[8]), (!X || x[0] & /*state*/
1135
+ 128) && bt(
1136
+ l,
992
1137
  "altcha-hidden",
993
1138
  /*state*/
994
- h[7] === w.VERIFYING
995
- ), K === (K = q(h)) && j ? j.p(h, p) : (j.d(1), j = K(h), j && (j.c(), j.m(f, null))), /*hidelogo*/
1139
+ h[7] === y.VERIFYING
1140
+ ), ne === (ne = oe(h)) && j ? j.p(h, x) : (j.d(1), j = ne(h), j && (j.c(), j.m(v, null))), /*hidelogo*/
996
1141
  h[3] !== !0 || /*isFreeSaaS*/
997
- h[14] ? I ? I.p(h, p) : (I = dt(h), I.c(), I.m(t, null)) : I && (I.d(1), I = null), /*error*/
1142
+ h[14] ? I ? I.p(h, x) : (I = pt(h), I.c(), I.m(i, null)) : I && (I.d(1), I = null), /*error*/
998
1143
  h[5] || /*state*/
999
- h[7] === w.EXPIRED ? F ? F.p(h, p) : (F = ht(h), F.c(), F.m(e, G)) : F && (F.d(1), F = null), /*_strings*/
1144
+ h[7] === y.EXPIRED ? z ? z.p(h, x) : (z = _t(h), z.c(), z.m(t, k)) : z && (z.d(1), z = null), /*_strings*/
1000
1145
  h[13].footer && /*hidefooter*/
1001
1146
  (h[2] !== !0 || /*isFreeSaaS*/
1002
- h[14]) ? x ? x.p(h, p) : (x = mt(h), x.c(), x.m(e, O)) : x && (x.d(1), x = null), /*floating*/
1003
- h[1] ? A ? A.p(h, p) : (A = gt(h), A.c(), A.m(e, null)) : A && (A.d(1), A = null), p[0] & /*state*/
1004
- 128 && a(
1005
- e,
1147
+ h[14]) ? E ? E.p(h, x) : (E = kt(h), E.c(), E.m(t, K)) : E && (E.d(1), E = null), /*floating*/
1148
+ h[1] ? F ? F.p(h, x) : (F = Et(h), F.c(), F.m(t, null)) : F && (F.d(1), F = null), (!X || x[0] & /*state*/
1149
+ 128) && f(
1150
+ t,
1006
1151
  "data-state",
1007
1152
  /*state*/
1008
1153
  h[7]
1009
- ), p[0] & /*floating*/
1010
- 2 && a(
1011
- e,
1154
+ ), (!X || x[0] & /*floating*/
1155
+ 2) && f(
1156
+ t,
1012
1157
  "data-floating",
1013
1158
  /*floating*/
1014
1159
  h[1]
1015
1160
  );
1016
1161
  },
1017
- i: fe,
1018
- o: fe,
1162
+ i(h) {
1163
+ X || (Ft(U, h), X = !0);
1164
+ },
1165
+ o(h) {
1166
+ Cn(U, h), X = !1;
1167
+ },
1019
1168
  d(h) {
1020
- h && N(e), b && b.d(), j.d(), I && I.d(), F && F.d(), x && x.d(), A && A.d(), n[42](null), X = !1, _e(Y);
1169
+ h && (S(e), S(t)), U && U.d(h), Z && Z.d(), j.d(), I && I.d(), z && z.d(), E && E.d(), F && F.d(), n[47](null), ee = !1, Ie(te);
1021
1170
  }
1022
1171
  };
1023
1172
  }
1024
- const bt = "Visit Altcha.org", Rt = "https://altcha.org/";
1025
- function vt(n) {
1173
+ const xt = "Visit Altcha.org", Gt = "https://altcha.org/";
1174
+ function Ct(n) {
1026
1175
  return JSON.parse(n);
1027
1176
  }
1028
- function In(n, e, t) {
1029
- var tt, nt;
1030
- let i, o, s, u, { analytics: c = !1 } = e, { auto: l = void 0 } = e, { beaconurl: f = void 0 } = e, { blockspam: B = void 0 } = e, { challengeurl: g = void 0 } = e, { challengejson: G = void 0 } = e, { debug: O = !1 } = e, { delay: X = 0 } = e, { expire: Y = void 0 } = e, { floating: b = void 0 } = e, { floatinganchor: q = void 0 } = e, { floatingoffset: K = void 0 } = e, { hidefooter: j = !1 } = e, { hidelogo: I = !1 } = e, { name: F = "altcha" } = e, { maxnumber: x = 1e6 } = e, { mockerror: A = !1 } = e, { refetchonexpire: h = !0 } = e, { spamfilter: p = !1 } = e, { strings: pe = void 0 } = e, { test: H = !1 } = e, { verifyurl: ee = void 0 } = e, { workers: ue = Math.min(16, navigator.hardwareConcurrency || 8) } = e, { workerurl: ke = void 0 } = e;
1031
- const Fe = nn(), Ze = ["SHA-256", "SHA-384", "SHA-512"], Ve = (nt = (tt = document.documentElement.lang) == null ? void 0 : tt.split("-")) == null ? void 0 : nt[0];
1032
- let Q = !1, C, te = null, Ee = null, m = null, xe = null, P = null, ne = null, D = null, Be = null, U = w.UNVERIFIED;
1033
- tn(() => {
1034
- m && (m.removeEventListener("submit", Oe), m.removeEventListener("reset", Xe), m.removeEventListener("focusin", Ge), m = null), D && D.destroy(), P && (clearTimeout(P), P = null), document.removeEventListener("click", Ke), document.removeEventListener("scroll", Je), window.removeEventListener("resize", qe);
1035
- }), en(() => {
1036
- k("mounted", "0.7.0"), k("workers", ue), H && k("using test mode"), Y && Ce(Y), l !== void 0 && k("auto", l), b !== void 0 && Qe(b), m = C.closest("form"), m && (m.addEventListener("submit", Oe, { capture: !0 }), m.addEventListener("reset", Xe), l === "onfocus" && m.addEventListener("focusin", Ge)), c && We(), l === "onload" && re(), i && (j || I) && k("Attributes hidefooter and hidelogo ignored because usage with free API Keys require attribution.");
1177
+ function Kn(n, e, t) {
1178
+ var ct, at;
1179
+ let i, o, l, s, { $$slots: c = {}, $$scope: a } = e, { analytics: d = !1 } = e, { auto: v = void 0 } = e, { beaconurl: R = void 0 } = e, { blockspam: $ = void 0 } = e, { challengeurl: k = void 0 } = e, { challengejson: K = void 0 } = e, { debug: X = !1 } = e, { delay: ee = 0 } = e, { expire: te = void 0 } = e, { floating: A = void 0 } = e, { floatinganchor: U = void 0 } = e, { floatingoffset: Z = void 0 } = e, { hidefooter: oe = !1 } = e, { hidelogo: ne = !1 } = e, { name: j = "altcha" } = e, { maxnumber: I = 1e6 } = e, { mockerror: z = !1 } = e, { obfuscated: E = void 0 } = e, { refetchonexpire: F = !0 } = e, { spamfilter: h = !1 } = e, { strings: x = void 0 } = e, { test: P = !1 } = e, { verifyurl: le = void 0 } = e, { workers: be = Math.min(16, navigator.hardwareConcurrency || 8) } = e, { workerurl: Te = void 0 } = e;
1180
+ const Ve = pn(), je = ["SHA-256", "SHA-384", "SHA-512"], We = (at = (ct = document.documentElement.lang) == null ? void 0 : ct.split("-")) == null ? void 0 : at[0];
1181
+ let O = !1, J = null, _, se = null, Ne = null, b = null, re = null, ye = null, Q = null, ce = null, M = null, Be = null, T = y.UNVERIFIED;
1182
+ wn(() => {
1183
+ b && (b.removeEventListener("submit", Oe), b.removeEventListener("reset", Je), b.removeEventListener("focusin", Pe), b = null), re && _.removeEventListener("click", Ke), M && M.destroy(), Q && (clearTimeout(Q), Q = null), document.removeEventListener("click", nt), document.removeEventListener("scroll", rt), window.removeEventListener("resize", ot);
1184
+ }), vn(() => {
1185
+ var r, u;
1186
+ C("mounted", "0.8.0"), C("workers", be), P && C("using test mode"), te && Ae(te), v !== void 0 && C("auto", v), A !== void 0 && lt(A), b = _.closest("form"), b && (b.addEventListener("submit", Oe, { capture: !0 }), b.addEventListener("reset", Je), v === "onfocus" && b.addEventListener("focusin", Pe)), re = ((r = _.parentElement) == null ? void 0 : r.querySelector("[data-clarify-button]")) || ((u = _.parentElement) == null ? void 0 : u.querySelector("button, a")), re && re.addEventListener("click", Ke), d && $e(), v === "onload" && (E ? we() : ae()), i && (oe || ne) && C("Attributes hidefooter and hidelogo ignored because usage with free API Keys require attribution.");
1037
1187
  });
1038
- function k(...r) {
1039
- (O || r.some((d) => d instanceof Error)) && console[r[0] instanceof Error ? "error" : "log"]("ALTCHA", ...r);
1188
+ function C(...r) {
1189
+ (X || r.some((u) => u instanceof Error)) && console[r[0] instanceof Error ? "error" : "log"]("ALTCHA", ...r);
1040
1190
  }
1041
- function Ge(r) {
1042
- U === w.UNVERIFIED && re();
1191
+ function Ke(r) {
1192
+ r.preventDefault(), T === y.UNVERIFIED && we();
1193
+ }
1194
+ function Pe(r) {
1195
+ T === y.UNVERIFIED && ae();
1043
1196
  }
1044
1197
  function Oe(r) {
1045
- m && D && U === w.VERIFIED && (D.end(), t(12, Be = D.dataAsBase64())), m && l === "onsubmit" && (U === w.UNVERIFIED ? (r.preventDefault(), r.stopPropagation(), re().then(() => {
1046
- m == null || m.requestSubmit();
1047
- })) : U !== w.VERIFIED && (r.preventDefault(), r.stopPropagation(), U === w.VERIFYING && $e()));
1198
+ b && M && T === y.VERIFIED && (M.end(), t(12, Be = M.dataAsBase64())), b && v === "onsubmit" && (T === y.UNVERIFIED ? (r.preventDefault(), r.stopPropagation(), ae().then(() => {
1199
+ b == null || b.requestSubmit();
1200
+ })) : T !== y.VERIFIED && (r.preventDefault(), r.stopPropagation(), T === y.VERIFYING && it()));
1048
1201
  }
1049
- function Xe() {
1050
- Le();
1202
+ function Je() {
1203
+ ve();
1051
1204
  }
1052
- function He(r, d) {
1205
+ function Qe(r, u) {
1053
1206
  return btoa(JSON.stringify({
1054
1207
  algorithm: r.algorithm,
1055
1208
  challenge: r.challenge,
1056
- number: d.number,
1209
+ number: u.number,
1057
1210
  salt: r.salt,
1058
1211
  signature: r.signature,
1059
- test: H ? !0 : void 0,
1060
- took: d.took
1212
+ test: P ? !0 : void 0,
1213
+ took: u.took
1061
1214
  }));
1062
1215
  }
1063
- function Pe(r) {
1216
+ function qe(r) {
1064
1217
  if (!r.algorithm)
1065
1218
  throw new Error("Invalid challenge. Property algorithm is missing.");
1066
1219
  if (r.signature === void 0)
1067
1220
  throw new Error("Invalid challenge. Property signature is missing.");
1068
- if (!Ze.includes(r.algorithm.toUpperCase()))
1069
- throw new Error(`Unknown algorithm value. Allowed values: ${Ze.join(", ")}`);
1221
+ if (!je.includes(r.algorithm.toUpperCase()))
1222
+ throw new Error(`Unknown algorithm value. Allowed values: ${je.join(", ")}`);
1070
1223
  if (!r.challenge || r.challenge.length < 40)
1071
1224
  throw new Error("Challenge is too short. Min. 40 chars.");
1072
1225
  if (!r.salt || r.salt.length < 10)
1073
1226
  throw new Error("Salt is too short. Min. 10 chars.");
1074
1227
  }
1075
- async function It() {
1228
+ async function Dt() {
1076
1229
  var r;
1077
- if (A)
1078
- throw k("mocking error"), new Error("Mocked error.");
1230
+ if (z)
1231
+ throw C("mocking error"), new Error("Mocked error.");
1079
1232
  if (o)
1080
- return k("using provided json data"), o;
1081
- if (H)
1082
- return k("generating test challenge", { test: H }), wn(typeof H != "boolean" ? +H : void 0);
1233
+ return C("using provided json data"), o;
1234
+ if (P)
1235
+ return C("generating test challenge", { test: P }), Sn(typeof P != "boolean" ? +P : void 0);
1083
1236
  {
1084
- if (!g && m) {
1085
- const y = m.getAttribute("action");
1086
- y != null && y.includes("/form/") && t(17, g = y + "/altcha");
1237
+ if (!k && b) {
1238
+ const w = b.getAttribute("action");
1239
+ w != null && w.includes("/form/") && t(17, k = w + "/altcha");
1087
1240
  }
1088
- if (!g)
1241
+ if (!k)
1089
1242
  throw new Error("Attribute challengeurl not set.");
1090
- k("fetching challenge from", g);
1091
- const d = await fetch(g, {
1092
- headers: p ? { "x-altcha-spam-filter": "1" } : {}
1243
+ C("fetching challenge from", k);
1244
+ const u = await fetch(k, {
1245
+ headers: h ? { "x-altcha-spam-filter": "1" } : {}
1093
1246
  });
1094
- if (d.status !== 200)
1095
- throw new Error(`Server responded with ${d.status}.`);
1096
- const v = d.headers.get("Expires"), z = d.headers.get("X-Altcha-Config"), Z = await d.json(), M = new URLSearchParams((r = Z.salt.split("?")) == null ? void 0 : r[1]), W = M.get("expires") || M.get("expire");
1097
- if (W) {
1098
- const y = new Date(+W * 1e3), L = isNaN(y.getTime()) ? 0 : y.getTime() - Date.now();
1099
- L > 0 && Ce(L);
1247
+ if (u.status !== 200)
1248
+ throw new Error(`Server responded with ${u.status}.`);
1249
+ const m = u.headers.get("Expires"), g = u.headers.get("X-Altcha-Config"), V = await u.json(), H = new URLSearchParams((r = V.salt.split("?")) == null ? void 0 : r[1]), G = H.get("expires") || H.get("expire");
1250
+ if (G) {
1251
+ const w = new Date(+G * 1e3), B = isNaN(w.getTime()) ? 0 : w.getTime() - Date.now();
1252
+ B > 0 && Ae(B);
1100
1253
  }
1101
- if (z)
1254
+ if (g)
1102
1255
  try {
1103
- const y = JSON.parse(z);
1104
- y && typeof y == "object" && (y.verifyurl && (y.verifyurl = new URL(y.verifyurl, new URL(g)).toString()), et(y));
1105
- } catch (y) {
1106
- k("unable to configure from X-Altcha-Config", y);
1256
+ const w = JSON.parse(g);
1257
+ w && typeof w == "object" && (w.verifyurl && (w.verifyurl = new URL(w.verifyurl, new URL(k)).toString()), st(w));
1258
+ } catch (w) {
1259
+ C("unable to configure from X-Altcha-Config", w);
1107
1260
  }
1108
- if (!Y && (v != null && v.length)) {
1109
- const y = Date.parse(v);
1110
- if (y) {
1111
- const L = y - Date.now();
1112
- L > 0 && Ce(L);
1261
+ if (!te && (m != null && m.length)) {
1262
+ const w = Date.parse(m);
1263
+ if (w) {
1264
+ const B = w - Date.now();
1265
+ B > 0 && Ae(B);
1113
1266
  }
1114
1267
  }
1115
- return Z;
1268
+ return V;
1116
1269
  }
1117
1270
  }
1118
- function We() {
1119
- if (!D)
1120
- if (m) {
1121
- if (k("analytics enabled"), t(11, D = new _n(m)), f === void 0) {
1122
- const r = m.getAttribute("action");
1123
- r && t(19, f = r + "/beacon");
1271
+ function $e() {
1272
+ if (!M)
1273
+ if (b) {
1274
+ if (C("analytics enabled"), t(11, M = new Dn(b)), R === void 0) {
1275
+ const r = b.getAttribute("action");
1276
+ r && t(19, R = r + "/beacon");
1124
1277
  }
1125
- t(11, D.beaconUrl = f || null, D);
1278
+ t(11, M.beaconUrl = R || null, M);
1126
1279
  } else
1127
- k("analytics cannot be enabled - form element not found");
1280
+ C("analytics cannot be enabled - form element not found");
1128
1281
  }
1129
- function Ye() {
1130
- g && h && U === w.VERIFIED ? re() : Le(w.EXPIRED, u.expired);
1282
+ function et() {
1283
+ k && F && T === y.VERIFIED ? ae() : ve(y.EXPIRED, s.expired);
1131
1284
  }
1132
- async function At(r) {
1133
- let d = null;
1285
+ async function tt(r) {
1286
+ let u = null;
1134
1287
  if ("Worker" in window) {
1135
1288
  try {
1136
- d = await zt(r.challenge, r.salt, r.algorithm, r.maxnumber);
1137
- } catch (v) {
1138
- k(v);
1289
+ u = await Yt(r, r.maxnumber);
1290
+ } catch (m) {
1291
+ C(m);
1139
1292
  }
1140
- if ((d == null ? void 0 : d.number) !== void 0)
1141
- return { data: r, solution: d };
1293
+ if ((u == null ? void 0 : u.number) !== void 0 || "obfuscated" in r)
1294
+ return { data: r, solution: u };
1295
+ }
1296
+ if ("obfuscated" in r) {
1297
+ const m = await Gn(r.obfuscated, r.key, r.maxnumber);
1298
+ return { data: r, solution: await m.promise };
1142
1299
  }
1143
1300
  return {
1144
1301
  data: r,
1145
- solution: await yn(r.challenge, r.salt, r.algorithm, r.maxnumber || x).promise
1302
+ solution: await Zn(r.challenge, r.salt, r.algorithm, r.maxnumber || I).promise
1146
1303
  };
1147
1304
  }
1148
- async function zt(r, d, v, z = typeof H == "number" ? H : x, Z = Math.ceil(ue)) {
1149
- const M = [];
1150
- Z = Math.min(16, Math.max(1, Z));
1151
- for (let L = 0; L < Z; L++)
1152
- M.push(createAltchaWorker(ke));
1153
- const W = Math.ceil(z / Z), y = await Promise.all(M.map((L, Ne) => {
1154
- const de = Ne * W;
1155
- return new Promise((Re) => {
1156
- L.addEventListener("message", (Ie) => {
1157
- if (Ie.data)
1158
- for (const he of M)
1159
- he !== L && he.postMessage({ type: "abort" });
1160
- Re(Ie.data);
1161
- }), L.postMessage({
1162
- payload: {
1163
- alg: v,
1164
- challenge: r,
1165
- max: de + W,
1166
- salt: d,
1167
- start: de
1168
- },
1305
+ async function Yt(r, u = typeof P == "number" ? P : I, m = Math.ceil(be)) {
1306
+ const g = [];
1307
+ m = Math.min(16, Math.max(1, m));
1308
+ for (let G = 0; G < m; G++)
1309
+ g.push(createAltchaWorker(Te));
1310
+ const V = Math.ceil(u / m), H = await Promise.all(g.map((G, w) => {
1311
+ const B = w * V;
1312
+ return new Promise((Ge) => {
1313
+ G.addEventListener("message", (pe) => {
1314
+ if (pe.data)
1315
+ for (const _e of g)
1316
+ _e !== G && _e.postMessage({ type: "abort" });
1317
+ Ge(pe.data);
1318
+ }), G.postMessage({
1319
+ payload: r,
1320
+ max: B + V,
1321
+ start: B,
1169
1322
  type: "work"
1170
1323
  });
1171
1324
  });
1172
1325
  }));
1173
- for (const L of M)
1174
- L.terminate();
1175
- return y.find((L) => !!L) || null;
1326
+ for (const G of g)
1327
+ G.terminate();
1328
+ return H.find((G) => !!G) || null;
1176
1329
  }
1177
- function Ft() {
1178
- [w.UNVERIFIED, w.ERROR, w.EXPIRED].includes(U) ? p && (m == null ? void 0 : m.reportValidity()) === !1 ? t(8, Q = !1) : re() : t(8, Q = !0);
1330
+ function Ut() {
1331
+ [y.UNVERIFIED, y.ERROR, y.EXPIRED].includes(T) ? h && (b == null ? void 0 : b.reportValidity()) === !1 ? t(8, O = !1) : E ? we() : ae() : t(8, O = !0);
1179
1332
  }
1180
- function Ke(r) {
1181
- const d = r.target;
1182
- b && d && !C.contains(d) && U === w.VERIFIED && t(9, C.style.display = "none", C);
1333
+ function nt(r) {
1334
+ const u = r.target;
1335
+ A && u && !_.contains(u) && T === y.VERIFIED && t(9, _.style.display = "none", _);
1183
1336
  }
1184
- function Je() {
1185
- b && Te();
1337
+ function rt() {
1338
+ A && He();
1186
1339
  }
1187
- function $e() {
1188
- U === w.VERIFYING && u.waitAlert && alert(u.waitAlert);
1340
+ function it() {
1341
+ T === y.VERIFYING && s.waitAlert && alert(s.waitAlert);
1342
+ }
1343
+ function Xt(r) {
1344
+ var u;
1345
+ if (J) {
1346
+ const m = J.match(/^(mailto|tel|sms|https?):/);
1347
+ let g;
1348
+ if (m) {
1349
+ const [V] = J.slice(J.indexOf(":") + 1).replace(/^\/\//, "").split("?");
1350
+ g = document.createElement("a"), g.href = J, g.innerHTML = V;
1351
+ } else
1352
+ g = document.createTextNode(J);
1353
+ re && g && (re.after(g), (u = re.parentElement) == null || u.removeChild(re));
1354
+ }
1189
1355
  }
1190
- function Tt(r) {
1191
- D && D.trackError(xe);
1356
+ function Mt(r) {
1357
+ M && M.trackError(ye);
1192
1358
  }
1193
- function Nt(r) {
1194
- b && U !== w.UNVERIFIED && requestAnimationFrame(() => {
1195
- Te();
1359
+ function jt(r) {
1360
+ A && T !== y.UNVERIFIED && requestAnimationFrame(() => {
1361
+ He();
1196
1362
  });
1197
1363
  }
1198
- function qe() {
1199
- b && Te();
1364
+ function ot() {
1365
+ A && He();
1200
1366
  }
1201
- function Ce(r) {
1202
- k("expire", r), P && (clearTimeout(P), P = null), r < 1 ? Ye() : P = setTimeout(Ye, r);
1367
+ function Ae(r) {
1368
+ C("expire", r), Q && (clearTimeout(Q), Q = null), r < 1 ? et() : Q = setTimeout(et, r);
1203
1369
  }
1204
- function Qe(r) {
1205
- k("floating", r), b !== r && (t(9, C.style.left = "", C), t(9, C.style.top = "", C)), t(1, b = r === !0 || r === "" ? "auto" : r === !1 || r === "false" ? void 0 : b), b ? (l || t(0, l = "onsubmit"), document.addEventListener("scroll", Je), document.addEventListener("click", Ke), window.addEventListener("resize", qe)) : l === "onsubmit" && t(0, l = void 0);
1370
+ function lt(r) {
1371
+ C("floating", r), A !== r && (t(9, _.style.left = "", _), t(9, _.style.top = "", _)), t(1, A = r === !0 || r === "" ? "auto" : r === !1 || r === "false" ? void 0 : A), A ? (v || t(0, v = "onsubmit"), document.addEventListener("scroll", rt), document.addEventListener("click", nt), window.addEventListener("resize", ot)) : v === "onsubmit" && t(0, v = void 0);
1206
1372
  }
1207
- function St(r) {
1208
- var v;
1209
- const d = m == null ? void 0 : m.querySelector(typeof r == "string" ? `input[name="${r}"]` : 'input[type="email"]:not([data-no-spamfilter])');
1210
- return ((v = d == null ? void 0 : d.value) == null ? void 0 : v.slice(d.value.indexOf("@"))) || void 0;
1373
+ function Wt(r) {
1374
+ var m;
1375
+ const u = b == null ? void 0 : b.querySelector(typeof r == "string" ? `input[name="${r}"]` : 'input[type="email"]:not([data-no-spamfilter])');
1376
+ return ((m = u == null ? void 0 : u.value) == null ? void 0 : m.slice(u.value.indexOf("@"))) || void 0;
1211
1377
  }
1212
- function Mt(r) {
1378
+ function Bt(r) {
1213
1379
  return [
1214
- ...(m == null ? void 0 : m.querySelectorAll(r != null && r.length ? r.map((v) => `input[name="${v}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
1380
+ ...(b == null ? void 0 : b.querySelectorAll(r != null && r.length ? r.map((m) => `input[name="${m}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
1215
1381
  ].reduce(
1216
- (v, z) => {
1217
- const Z = z.name, M = z.value;
1218
- return Z && M && (v[Z] = /\n/.test(M) ? M.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
1219
- `) : M), v;
1382
+ (m, g) => {
1383
+ const V = g.name, H = g.value;
1384
+ return V && H && (m[V] = /\n/.test(H) ? H.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
1385
+ `) : H), m;
1220
1386
  },
1221
1387
  {}
1222
1388
  );
1223
1389
  }
1224
- async function jt(r) {
1225
- if (!ee)
1390
+ async function Kt(r) {
1391
+ if (!le)
1226
1392
  throw new Error("Attribute verifyurl not set.");
1227
- k("requesting server verification from", ee);
1228
- const d = { payload: r };
1229
- if (p) {
1230
- const { blockedCountries: Z, classifier: M, disableRules: W, email: y, expectedLanguages: L, expectedCountries: Ne, fields: de, ipAddress: Re, text: Ie, timeZone: he } = Dt();
1231
- d.blockedCountries = Z, d.classifier = M, d.disableRules = W, d.email = y === !1 ? void 0 : St(y), d.expectedCountries = Ne, d.expectedLanguages = L || (Ve ? [Ve] : void 0), d.fields = de === !1 ? void 0 : Mt(de), d.ipAddress = Re === !1 ? void 0 : Re || "auto", d.text = Ie, d.timeZone = he === !1 ? void 0 : he || Lt();
1393
+ C("requesting server verification from", le);
1394
+ const u = { payload: r };
1395
+ if (h) {
1396
+ const { blockedCountries: V, classifier: H, disableRules: G, email: w, expectedLanguages: B, expectedCountries: Ge, fields: pe, ipAddress: _e, text: qt, timeZone: ft } = Pt();
1397
+ u.blockedCountries = V, u.classifier = H, u.disableRules = G, u.email = w === !1 ? void 0 : Wt(w), u.expectedCountries = Ge, u.expectedLanguages = B || (We ? [We] : void 0), u.fields = pe === !1 ? void 0 : Bt(pe), u.ipAddress = _e === !1 ? void 0 : _e || "auto", u.text = qt, u.timeZone = ft === !1 ? void 0 : ft || Ht();
1232
1398
  }
1233
- const v = await fetch(ee, {
1234
- body: JSON.stringify(d),
1399
+ const m = await fetch(le, {
1400
+ body: JSON.stringify(u),
1235
1401
  headers: { "content-type": "application/json" },
1236
1402
  method: "POST"
1237
1403
  });
1238
- if (v.status !== 200)
1239
- throw new Error(`Server responded with ${v.status}.`);
1240
- const z = await v.json();
1241
- if (z != null && z.payload && t(6, ne = z.payload), Fe("serververification", z), B && z.classification === "BAD")
1404
+ if (m.status !== 200)
1405
+ throw new Error(`Server responded with ${m.status}.`);
1406
+ const g = await m.json();
1407
+ if (g != null && g.payload && t(6, ce = g.payload), Ve("serververification", g), $ && g.classification === "BAD")
1242
1408
  throw new Error("SpamFilter returned negative classification.");
1243
1409
  }
1244
- function Dt() {
1245
- return p === "ipAddress" ? {
1410
+ function Pt() {
1411
+ return h === "ipAddress" ? {
1246
1412
  blockedCountries: void 0,
1247
1413
  classifier: void 0,
1248
1414
  disableRules: void 0,
@@ -1253,7 +1419,7 @@ function In(n, e, t) {
1253
1419
  ipAddress: void 0,
1254
1420
  text: void 0,
1255
1421
  timeZone: void 0
1256
- } : typeof p == "object" ? p : {
1422
+ } : typeof h == "object" ? h : {
1257
1423
  blockedCountries: void 0,
1258
1424
  classifier: void 0,
1259
1425
  disableRules: void 0,
@@ -1266,134 +1432,157 @@ function In(n, e, t) {
1266
1432
  timeZone: void 0
1267
1433
  };
1268
1434
  }
1269
- function Te(r = 20) {
1270
- if (C)
1271
- if (Ee || (Ee = (q ? document.querySelector(q) : m == null ? void 0 : m.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || m), Ee) {
1272
- const d = parseInt(K, 10) || 12, v = Ee.getBoundingClientRect(), z = C.getBoundingClientRect(), Z = document.documentElement.clientHeight, M = document.documentElement.clientWidth, W = b === "auto" ? v.bottom + z.height + d + r > Z : b === "top", y = Math.max(r, Math.min(M - r - z.width, v.left + v.width / 2 - z.width / 2));
1273
- if (W ? t(9, C.style.top = `${v.top - (z.height + d)}px`, C) : t(9, C.style.top = `${v.bottom + d}px`, C), t(9, C.style.left = `${y}px`, C), C.setAttribute("data-floating", W ? "top" : "bottom"), te) {
1274
- const L = te.getBoundingClientRect();
1275
- t(10, te.style.left = v.left - y + v.width / 2 - L.width / 2 + "px", te);
1435
+ function He(r = 20) {
1436
+ if (_)
1437
+ if (Ne || (Ne = (U ? document.querySelector(U) : b == null ? void 0 : b.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || b || re), Ne) {
1438
+ const u = parseInt(Z, 10) || 12, m = Ne.getBoundingClientRect(), g = _.getBoundingClientRect(), V = document.documentElement.clientHeight, H = document.documentElement.clientWidth, G = A === "auto" ? m.bottom + g.height + u + r > V : A === "top", w = Math.max(r, Math.min(H - r - g.width, m.left + m.width / 2 - g.width / 2));
1439
+ if (G ? t(9, _.style.top = `${m.top - (g.height + u)}px`, _) : t(9, _.style.top = `${m.bottom + u}px`, _), t(9, _.style.left = `${w}px`, _), _.setAttribute("data-floating", G ? "top" : "bottom"), se) {
1440
+ const B = se.getBoundingClientRect();
1441
+ t(10, se.style.left = m.left - w + m.width / 2 - B.width / 2 + "px", se);
1276
1442
  }
1277
1443
  } else
1278
- k("unable to find floating anchor element");
1279
- }
1280
- function et(r) {
1281
- r.analytics && (t(18, c = r.analytics), We()), r.auto !== void 0 && (t(0, l = r.auto), l === "onload" && re()), r.beaconurl && (t(19, f = r.beaconurl), D && t(11, D.beaconUrl = f, D)), r.floatinganchor !== void 0 && t(23, q = r.floatinganchor), r.delay !== void 0 && t(21, X = r.delay), r.floatingoffset !== void 0 && t(24, K = r.floatingoffset), r.floating !== void 0 && Qe(r.floating), r.expire !== void 0 && (Ce(r.expire), t(22, Y = r.expire)), r.challenge && (Pe(r.challenge), o = r.challenge), r.challengeurl !== void 0 && t(17, g = r.challengeurl), r.debug !== void 0 && t(20, O = !!r.debug), r.hidefooter !== void 0 && t(2, j = !!r.hidefooter), r.hidelogo !== void 0 && t(3, I = !!r.hidelogo), r.maxnumber !== void 0 && t(25, x = +r.maxnumber), r.mockerror !== void 0 && t(26, A = !!r.mockerror), r.name !== void 0 && t(4, F = r.name), r.refetchonexpire !== void 0 && t(27, h = !!r.refetchonexpire), r.spamfilter !== void 0 && t(28, p = typeof r.spamfilter == "object" ? r.spamfilter : !!r.spamfilter), r.strings && t(39, s = r.strings), r.test !== void 0 && t(29, H = typeof r.test == "number" ? r.test : !!r.test), r.verifyurl !== void 0 && t(30, ee = r.verifyurl), r.workers !== void 0 && t(31, ue = +r.workers), r.workerurl !== void 0 && t(32, ke = r.workerurl);
1282
- }
1283
- function Le(r = w.UNVERIFIED, d = null) {
1284
- P && (clearTimeout(P), P = null), t(8, Q = !1), t(5, xe = d), t(6, ne = null), t(7, U = r);
1285
- }
1286
- async function re() {
1287
- return Le(w.VERIFYING), await new Promise((r) => setTimeout(r, X || 0)), It().then((r) => (Pe(r), k("challenge", r), At(r))).then(({ data: r, solution: d }) => {
1288
- if (k("solution", d), (d == null ? void 0 : d.number) !== void 0) {
1289
- if (ee)
1290
- return jt(He(r, d));
1291
- t(6, ne = He(r, d)), k("payload", ne);
1292
- } else
1293
- throw k("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
1444
+ C("unable to find floating anchor element");
1445
+ }
1446
+ function st(r) {
1447
+ r.analytics && (t(18, d = r.analytics), $e()), r.obfuscated !== void 0 && t(27, E = r.obfuscated), r.auto !== void 0 && (t(0, v = r.auto), v === "onload" && (E ? we() : ae())), r.beaconurl && (t(19, R = r.beaconurl), M && t(11, M.beaconUrl = R, M)), r.floatinganchor !== void 0 && t(23, U = r.floatinganchor), r.delay !== void 0 && t(21, ee = r.delay), r.floatingoffset !== void 0 && t(24, Z = r.floatingoffset), r.floating !== void 0 && lt(r.floating), r.expire !== void 0 && (Ae(r.expire), t(22, te = r.expire)), r.challenge && (qe(r.challenge), o = r.challenge), r.challengeurl !== void 0 && t(17, k = r.challengeurl), r.debug !== void 0 && t(20, X = !!r.debug), r.hidefooter !== void 0 && t(2, oe = !!r.hidefooter), r.hidelogo !== void 0 && t(3, ne = !!r.hidelogo), r.maxnumber !== void 0 && t(25, I = +r.maxnumber), r.mockerror !== void 0 && t(26, z = !!r.mockerror), r.name !== void 0 && t(4, j = r.name), r.refetchonexpire !== void 0 && t(28, F = !!r.refetchonexpire), r.spamfilter !== void 0 && t(29, h = typeof r.spamfilter == "object" ? r.spamfilter : !!r.spamfilter), r.strings && t(42, l = r.strings), r.test !== void 0 && t(30, P = typeof r.test == "number" ? r.test : !!r.test), r.verifyurl !== void 0 && t(31, le = r.verifyurl), r.workers !== void 0 && t(32, be = +r.workers), r.workerurl !== void 0 && t(33, Te = r.workerurl);
1448
+ }
1449
+ function ve(r = y.UNVERIFIED, u = null) {
1450
+ Q && (clearTimeout(Q), Q = null), t(8, O = !1), t(5, ye = u), t(6, ce = null), t(7, T = r);
1451
+ }
1452
+ async function ae() {
1453
+ return ve(y.VERIFYING), await new Promise((r) => setTimeout(r, ee || 0)), Dt().then((r) => (qe(r), C("challenge", r), tt(r))).then(({ data: r, solution: u }) => {
1454
+ if (C("solution", u), "challenge" in r && u && !("clearText" in u))
1455
+ if ((u == null ? void 0 : u.number) !== void 0) {
1456
+ if (le)
1457
+ return Kt(Qe(r, u));
1458
+ t(6, ce = Qe(r, u)), C("payload", ce);
1459
+ } else
1460
+ throw C("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
1294
1461
  }).then(() => {
1295
- rn().then(() => {
1296
- t(7, U = w.VERIFIED), t(8, Q = !0), k("verified"), Fe("verified", { payload: ne });
1462
+ _n().then(() => {
1463
+ t(7, T = y.VERIFIED), t(8, O = !0), C("verified"), Ve("verified", { payload: ce });
1297
1464
  });
1298
1465
  }).catch((r) => {
1299
- k(r), t(7, U = w.ERROR), t(8, Q = !1), t(5, xe = r.message);
1466
+ C(r), t(7, T = y.ERROR), t(8, O = !1), t(5, ye = r.message);
1300
1467
  });
1301
1468
  }
1302
- function Ut() {
1303
- Q = this.checked, t(8, Q);
1469
+ async function we() {
1470
+ if (!E) {
1471
+ t(7, T = y.ERROR);
1472
+ return;
1473
+ }
1474
+ ve(y.VERIFYING), await new Promise((H) => setTimeout(H, ee || 0));
1475
+ const [r, u] = E.split("?");
1476
+ let g = new URLSearchParams(u || "").get("key") || void 0;
1477
+ if (g) {
1478
+ const H = g.match(/^\(prompt:?(.*)\)$/);
1479
+ H && (g = prompt(H[1] || "Enter Key:") || void 0);
1480
+ }
1481
+ const { solution: V } = await tt({ obfuscated: r, key: g, maxnumber: I });
1482
+ V && "clearText" in V ? (t(41, J = V.clearText), t(7, T = y.VERIFIED), t(8, O = !0), A && _ && t(9, _.style.display = "none", _)) : (t(7, T = y.ERROR), t(8, O = !1), t(5, ye = "Unable to decrypt data."));
1304
1483
  }
1305
- function Zt(r) {
1306
- ze[r ? "unshift" : "push"](() => {
1307
- te = r, t(10, te);
1484
+ function Ot() {
1485
+ O = this.checked, t(8, O);
1486
+ }
1487
+ function Jt(r) {
1488
+ Ze[r ? "unshift" : "push"](() => {
1489
+ se = r, t(10, se);
1308
1490
  });
1309
1491
  }
1310
- function Vt(r) {
1311
- ze[r ? "unshift" : "push"](() => {
1312
- C = r, t(9, C);
1492
+ function Qt(r) {
1493
+ Ze[r ? "unshift" : "push"](() => {
1494
+ _ = r, t(9, _);
1313
1495
  });
1314
1496
  }
1315
1497
  return n.$$set = (r) => {
1316
- "analytics" in r && t(18, c = r.analytics), "auto" in r && t(0, l = r.auto), "beaconurl" in r && t(19, f = r.beaconurl), "blockspam" in r && t(33, B = r.blockspam), "challengeurl" in r && t(17, g = r.challengeurl), "challengejson" in r && t(34, G = r.challengejson), "debug" in r && t(20, O = r.debug), "delay" in r && t(21, X = r.delay), "expire" in r && t(22, Y = r.expire), "floating" in r && t(1, b = r.floating), "floatinganchor" in r && t(23, q = r.floatinganchor), "floatingoffset" in r && t(24, K = r.floatingoffset), "hidefooter" in r && t(2, j = r.hidefooter), "hidelogo" in r && t(3, I = r.hidelogo), "name" in r && t(4, F = r.name), "maxnumber" in r && t(25, x = r.maxnumber), "mockerror" in r && t(26, A = r.mockerror), "refetchonexpire" in r && t(27, h = r.refetchonexpire), "spamfilter" in r && t(28, p = r.spamfilter), "strings" in r && t(35, pe = r.strings), "test" in r && t(29, H = r.test), "verifyurl" in r && t(30, ee = r.verifyurl), "workers" in r && t(31, ue = r.workers), "workerurl" in r && t(32, ke = r.workerurl);
1498
+ "analytics" in r && t(18, d = r.analytics), "auto" in r && t(0, v = r.auto), "beaconurl" in r && t(19, R = r.beaconurl), "blockspam" in r && t(34, $ = r.blockspam), "challengeurl" in r && t(17, k = r.challengeurl), "challengejson" in r && t(35, K = r.challengejson), "debug" in r && t(20, X = r.debug), "delay" in r && t(21, ee = r.delay), "expire" in r && t(22, te = r.expire), "floating" in r && t(1, A = r.floating), "floatinganchor" in r && t(23, U = r.floatinganchor), "floatingoffset" in r && t(24, Z = r.floatingoffset), "hidefooter" in r && t(2, oe = r.hidefooter), "hidelogo" in r && t(3, ne = r.hidelogo), "name" in r && t(4, j = r.name), "maxnumber" in r && t(25, I = r.maxnumber), "mockerror" in r && t(26, z = r.mockerror), "obfuscated" in r && t(27, E = r.obfuscated), "refetchonexpire" in r && t(28, F = r.refetchonexpire), "spamfilter" in r && t(29, h = r.spamfilter), "strings" in r && t(36, x = r.strings), "test" in r && t(30, P = r.test), "verifyurl" in r && t(31, le = r.verifyurl), "workers" in r && t(32, be = r.workers), "workerurl" in r && t(33, Te = r.workerurl), "$$scope" in r && t(43, a = r.$$scope);
1317
1499
  }, n.$$.update = () => {
1318
1500
  n.$$.dirty[0] & /*challengeurl*/
1319
- 131072 && t(14, i = !!(g != null && g.includes(".altcha.org")) && !!(g != null && g.includes("apiKey=ckey_"))), n.$$.dirty[1] & /*challengejson*/
1320
- 8 && (o = G ? vt(G) : void 0), n.$$.dirty[1] & /*strings*/
1321
- 16 && t(39, s = pe ? vt(pe) : {}), n.$$.dirty[1] & /*parsedStrings*/
1322
- 256 && t(13, u = {
1323
- ariaLinkLabel: bt,
1501
+ 131072 && t(14, i = !!(k != null && k.includes(".altcha.org")) && !!(k != null && k.includes("apiKey=ckey_"))), n.$$.dirty[1] & /*challengejson*/
1502
+ 16 && (o = K ? Ct(K) : void 0), n.$$.dirty[1] & /*strings*/
1503
+ 32 && t(42, l = x ? Ct(x) : {}), n.$$.dirty[1] & /*parsedStrings*/
1504
+ 2048 && t(13, s = {
1505
+ ariaLinkLabel: xt,
1324
1506
  error: "Verification failed. Try again later.",
1325
1507
  expired: "Verification expired. Try again.",
1326
- footer: `Protected by <a href="${Rt}" target="_blank" aria-label="${s.ariaLinkLabel || bt}">ALTCHA</a>`,
1508
+ footer: `Protected by <a href="${Gt}" target="_blank" aria-label="${l.ariaLinkLabel || xt}">ALTCHA</a>`,
1327
1509
  label: "I'm not a robot",
1328
1510
  verified: "Verified",
1329
1511
  verifying: "Verifying...",
1330
1512
  waitAlert: "Verifying... please wait.",
1331
- ...s
1332
- }), n.$$.dirty[0] & /*payload, state*/
1333
- 192 && Fe("statechange", { payload: ne, state: U }), n.$$.dirty[0] & /*error*/
1334
- 32 && Tt(), n.$$.dirty[0] & /*state*/
1335
- 128 && Nt();
1513
+ ...l
1514
+ }), n.$$.dirty[0] & /*state, payload*/
1515
+ 192 | n.$$.dirty[1] & /*clarifiedData*/
1516
+ 1024 && Ve("statechange", J ? { clarifiedData: J, state: T } : { payload: ce, state: T }), n.$$.dirty[0] & /*error*/
1517
+ 32 && Mt(), n.$$.dirty[0] & /*state*/
1518
+ 128 && jt(), n.$$.dirty[1] & /*clarifiedData*/
1519
+ 1024 && Xt();
1336
1520
  }, [
1337
- l,
1338
- b,
1339
- j,
1340
- I,
1341
- F,
1342
- xe,
1521
+ v,
1522
+ A,
1523
+ oe,
1343
1524
  ne,
1344
- U,
1345
- Q,
1346
- C,
1347
- te,
1348
- D,
1525
+ j,
1526
+ ye,
1527
+ ce,
1528
+ T,
1529
+ O,
1530
+ _,
1531
+ se,
1532
+ M,
1349
1533
  Be,
1350
- u,
1534
+ s,
1351
1535
  i,
1352
- Ft,
1353
- $e,
1354
- g,
1355
- c,
1356
- f,
1357
- O,
1536
+ Ut,
1537
+ it,
1538
+ k,
1539
+ d,
1540
+ R,
1358
1541
  X,
1359
- Y,
1360
- q,
1542
+ ee,
1543
+ te,
1544
+ U,
1545
+ Z,
1546
+ I,
1547
+ z,
1548
+ E,
1549
+ F,
1550
+ h,
1551
+ P,
1552
+ le,
1553
+ be,
1554
+ Te,
1555
+ $,
1361
1556
  K,
1362
1557
  x,
1363
- A,
1364
- h,
1365
- p,
1366
- H,
1367
- ee,
1368
- ue,
1369
- ke,
1370
- B,
1371
- G,
1372
- pe,
1373
- et,
1374
- Le,
1375
- re,
1376
- s,
1377
- Ut,
1378
- Zt,
1379
- Vt
1558
+ st,
1559
+ ve,
1560
+ ae,
1561
+ we,
1562
+ J,
1563
+ l,
1564
+ a,
1565
+ c,
1566
+ Ot,
1567
+ Jt,
1568
+ Qt
1380
1569
  ];
1381
1570
  }
1382
- class An extends mn {
1571
+ class Pn extends An {
1383
1572
  constructor(e) {
1384
- super(), dn(
1573
+ super(), Tn(
1385
1574
  this,
1386
1575
  e,
1387
- In,
1388
- Rn,
1389
- Ht,
1576
+ Kn,
1577
+ Bn,
1578
+ on,
1390
1579
  {
1391
1580
  analytics: 18,
1392
1581
  auto: 0,
1393
1582
  beaconurl: 19,
1394
- blockspam: 33,
1583
+ blockspam: 34,
1395
1584
  challengeurl: 17,
1396
- challengejson: 34,
1585
+ challengejson: 35,
1397
1586
  debug: 20,
1398
1587
  delay: 21,
1399
1588
  expire: 22,
@@ -1405,18 +1594,20 @@ class An extends mn {
1405
1594
  name: 4,
1406
1595
  maxnumber: 25,
1407
1596
  mockerror: 26,
1408
- refetchonexpire: 27,
1409
- spamfilter: 28,
1410
- strings: 35,
1411
- test: 29,
1412
- verifyurl: 30,
1413
- workers: 31,
1414
- workerurl: 32,
1415
- configure: 36,
1416
- reset: 37,
1417
- verify: 38
1597
+ obfuscated: 27,
1598
+ refetchonexpire: 28,
1599
+ spamfilter: 29,
1600
+ strings: 36,
1601
+ test: 30,
1602
+ verifyurl: 31,
1603
+ workers: 32,
1604
+ workerurl: 33,
1605
+ configure: 37,
1606
+ reset: 38,
1607
+ verify: 39,
1608
+ clarify: 40
1418
1609
  },
1419
- pn,
1610
+ Yn,
1420
1611
  [-1, -1, -1]
1421
1612
  );
1422
1613
  }
@@ -1424,158 +1615,167 @@ class An extends mn {
1424
1615
  return this.$$.ctx[18];
1425
1616
  }
1426
1617
  set analytics(e) {
1427
- this.$$set({ analytics: e }), _();
1618
+ this.$$set({ analytics: e }), p();
1428
1619
  }
1429
1620
  get auto() {
1430
1621
  return this.$$.ctx[0];
1431
1622
  }
1432
1623
  set auto(e) {
1433
- this.$$set({ auto: e }), _();
1624
+ this.$$set({ auto: e }), p();
1434
1625
  }
1435
1626
  get beaconurl() {
1436
1627
  return this.$$.ctx[19];
1437
1628
  }
1438
1629
  set beaconurl(e) {
1439
- this.$$set({ beaconurl: e }), _();
1630
+ this.$$set({ beaconurl: e }), p();
1440
1631
  }
1441
1632
  get blockspam() {
1442
- return this.$$.ctx[33];
1633
+ return this.$$.ctx[34];
1443
1634
  }
1444
1635
  set blockspam(e) {
1445
- this.$$set({ blockspam: e }), _();
1636
+ this.$$set({ blockspam: e }), p();
1446
1637
  }
1447
1638
  get challengeurl() {
1448
1639
  return this.$$.ctx[17];
1449
1640
  }
1450
1641
  set challengeurl(e) {
1451
- this.$$set({ challengeurl: e }), _();
1642
+ this.$$set({ challengeurl: e }), p();
1452
1643
  }
1453
1644
  get challengejson() {
1454
- return this.$$.ctx[34];
1645
+ return this.$$.ctx[35];
1455
1646
  }
1456
1647
  set challengejson(e) {
1457
- this.$$set({ challengejson: e }), _();
1648
+ this.$$set({ challengejson: e }), p();
1458
1649
  }
1459
1650
  get debug() {
1460
1651
  return this.$$.ctx[20];
1461
1652
  }
1462
1653
  set debug(e) {
1463
- this.$$set({ debug: e }), _();
1654
+ this.$$set({ debug: e }), p();
1464
1655
  }
1465
1656
  get delay() {
1466
1657
  return this.$$.ctx[21];
1467
1658
  }
1468
1659
  set delay(e) {
1469
- this.$$set({ delay: e }), _();
1660
+ this.$$set({ delay: e }), p();
1470
1661
  }
1471
1662
  get expire() {
1472
1663
  return this.$$.ctx[22];
1473
1664
  }
1474
1665
  set expire(e) {
1475
- this.$$set({ expire: e }), _();
1666
+ this.$$set({ expire: e }), p();
1476
1667
  }
1477
1668
  get floating() {
1478
1669
  return this.$$.ctx[1];
1479
1670
  }
1480
1671
  set floating(e) {
1481
- this.$$set({ floating: e }), _();
1672
+ this.$$set({ floating: e }), p();
1482
1673
  }
1483
1674
  get floatinganchor() {
1484
1675
  return this.$$.ctx[23];
1485
1676
  }
1486
1677
  set floatinganchor(e) {
1487
- this.$$set({ floatinganchor: e }), _();
1678
+ this.$$set({ floatinganchor: e }), p();
1488
1679
  }
1489
1680
  get floatingoffset() {
1490
1681
  return this.$$.ctx[24];
1491
1682
  }
1492
1683
  set floatingoffset(e) {
1493
- this.$$set({ floatingoffset: e }), _();
1684
+ this.$$set({ floatingoffset: e }), p();
1494
1685
  }
1495
1686
  get hidefooter() {
1496
1687
  return this.$$.ctx[2];
1497
1688
  }
1498
1689
  set hidefooter(e) {
1499
- this.$$set({ hidefooter: e }), _();
1690
+ this.$$set({ hidefooter: e }), p();
1500
1691
  }
1501
1692
  get hidelogo() {
1502
1693
  return this.$$.ctx[3];
1503
1694
  }
1504
1695
  set hidelogo(e) {
1505
- this.$$set({ hidelogo: e }), _();
1696
+ this.$$set({ hidelogo: e }), p();
1506
1697
  }
1507
1698
  get name() {
1508
1699
  return this.$$.ctx[4];
1509
1700
  }
1510
1701
  set name(e) {
1511
- this.$$set({ name: e }), _();
1702
+ this.$$set({ name: e }), p();
1512
1703
  }
1513
1704
  get maxnumber() {
1514
1705
  return this.$$.ctx[25];
1515
1706
  }
1516
1707
  set maxnumber(e) {
1517
- this.$$set({ maxnumber: e }), _();
1708
+ this.$$set({ maxnumber: e }), p();
1518
1709
  }
1519
1710
  get mockerror() {
1520
1711
  return this.$$.ctx[26];
1521
1712
  }
1522
1713
  set mockerror(e) {
1523
- this.$$set({ mockerror: e }), _();
1714
+ this.$$set({ mockerror: e }), p();
1524
1715
  }
1525
- get refetchonexpire() {
1716
+ get obfuscated() {
1526
1717
  return this.$$.ctx[27];
1527
1718
  }
1719
+ set obfuscated(e) {
1720
+ this.$$set({ obfuscated: e }), p();
1721
+ }
1722
+ get refetchonexpire() {
1723
+ return this.$$.ctx[28];
1724
+ }
1528
1725
  set refetchonexpire(e) {
1529
- this.$$set({ refetchonexpire: e }), _();
1726
+ this.$$set({ refetchonexpire: e }), p();
1530
1727
  }
1531
1728
  get spamfilter() {
1532
- return this.$$.ctx[28];
1729
+ return this.$$.ctx[29];
1533
1730
  }
1534
1731
  set spamfilter(e) {
1535
- this.$$set({ spamfilter: e }), _();
1732
+ this.$$set({ spamfilter: e }), p();
1536
1733
  }
1537
1734
  get strings() {
1538
- return this.$$.ctx[35];
1735
+ return this.$$.ctx[36];
1539
1736
  }
1540
1737
  set strings(e) {
1541
- this.$$set({ strings: e }), _();
1738
+ this.$$set({ strings: e }), p();
1542
1739
  }
1543
1740
  get test() {
1544
- return this.$$.ctx[29];
1741
+ return this.$$.ctx[30];
1545
1742
  }
1546
1743
  set test(e) {
1547
- this.$$set({ test: e }), _();
1744
+ this.$$set({ test: e }), p();
1548
1745
  }
1549
1746
  get verifyurl() {
1550
- return this.$$.ctx[30];
1747
+ return this.$$.ctx[31];
1551
1748
  }
1552
1749
  set verifyurl(e) {
1553
- this.$$set({ verifyurl: e }), _();
1750
+ this.$$set({ verifyurl: e }), p();
1554
1751
  }
1555
1752
  get workers() {
1556
- return this.$$.ctx[31];
1753
+ return this.$$.ctx[32];
1557
1754
  }
1558
1755
  set workers(e) {
1559
- this.$$set({ workers: e }), _();
1756
+ this.$$set({ workers: e }), p();
1560
1757
  }
1561
1758
  get workerurl() {
1562
- return this.$$.ctx[32];
1759
+ return this.$$.ctx[33];
1563
1760
  }
1564
1761
  set workerurl(e) {
1565
- this.$$set({ workerurl: e }), _();
1762
+ this.$$set({ workerurl: e }), p();
1566
1763
  }
1567
1764
  get configure() {
1568
- return this.$$.ctx[36];
1765
+ return this.$$.ctx[37];
1569
1766
  }
1570
1767
  get reset() {
1571
- return this.$$.ctx[37];
1768
+ return this.$$.ctx[38];
1572
1769
  }
1573
1770
  get verify() {
1574
- return this.$$.ctx[38];
1771
+ return this.$$.ctx[39];
1772
+ }
1773
+ get clarify() {
1774
+ return this.$$.ctx[40];
1575
1775
  }
1576
1776
  }
1577
- customElements.define("altcha-widget", hn(An, { analytics: { type: "Boolean" }, auto: {}, beaconurl: {}, blockspam: {}, challengeurl: {}, challengejson: {}, debug: { type: "Boolean" }, delay: {}, expire: {}, floating: {}, floatinganchor: {}, floatingoffset: {}, hidefooter: { type: "Boolean" }, hidelogo: { type: "Boolean" }, name: {}, maxnumber: {}, mockerror: { type: "Boolean" }, refetchonexpire: { type: "Boolean" }, spamfilter: { type: "Boolean" }, strings: {}, test: { type: "Boolean" }, verifyurl: {}, workers: {}, workerurl: {} }, [], ["configure", "reset", "verify"], !1));
1578
- globalThis.createAltchaWorker = (n) => n ? new Worker(new URL(n)) : new Xt();
1777
+ customElements.define("altcha-widget", Nn(Pn, { analytics: { type: "Boolean" }, auto: {}, beaconurl: {}, blockspam: {}, challengeurl: {}, challengejson: {}, debug: { type: "Boolean" }, delay: {}, expire: {}, floating: {}, floatinganchor: {}, floatingoffset: {}, hidefooter: { type: "Boolean" }, hidelogo: { type: "Boolean" }, name: {}, maxnumber: {}, mockerror: { type: "Boolean" }, obfuscated: {}, refetchonexpire: { type: "Boolean" }, spamfilter: { type: "Boolean" }, strings: {}, test: { type: "Boolean" }, verifyurl: {}, workers: {}, workerurl: {} }, ["default"], ["configure", "reset", "verify", "clarify"], !1));
1778
+ globalThis.createAltchaWorker = (n) => n ? new Worker(new URL(n)) : new nn();
1579
1779
  export {
1580
- An as Altcha
1780
+ Pn as Altcha
1581
1781
  };