altcha 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/altcha.iife.js +1 -1
- package/dist/altcha.js +382 -374
- package/dist/altcha.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/altcha.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
1
|
+
var Ye = Object.defineProperty;
|
|
2
|
+
var Ue = (t, e, r) => e in t ? Ye(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var T = (t, e, r) => (Ue(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
function Y() {
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ce(t) {
|
|
7
7
|
return t();
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ve() {
|
|
10
10
|
return /* @__PURE__ */ Object.create(null);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
t.forEach(
|
|
12
|
+
function K(t) {
|
|
13
|
+
t.forEach(Ce);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Le(t) {
|
|
16
16
|
return typeof t == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Xe(t, e) {
|
|
19
19
|
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ke(t) {
|
|
22
22
|
return Object.keys(t).length === 0;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function b(t, e) {
|
|
25
25
|
t.appendChild(e);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const n =
|
|
27
|
+
function Je(t, e, r) {
|
|
28
|
+
const n = ze(t);
|
|
29
29
|
if (!n.getElementById(e)) {
|
|
30
|
-
const o =
|
|
30
|
+
const o = _("style");
|
|
31
31
|
o.id = e, o.textContent = r, Qe(n, o);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function ze(t) {
|
|
35
35
|
if (!t)
|
|
36
36
|
return document;
|
|
37
37
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
@@ -42,46 +42,46 @@ function Je(t) {
|
|
|
42
42
|
) : t.ownerDocument;
|
|
43
43
|
}
|
|
44
44
|
function Qe(t, e) {
|
|
45
|
-
return
|
|
45
|
+
return b(
|
|
46
46
|
/** @type {Document} */
|
|
47
47
|
t.head || t,
|
|
48
48
|
e
|
|
49
49
|
), e.sheet;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function R(t, e, r) {
|
|
52
52
|
t.insertBefore(e, r || null);
|
|
53
53
|
}
|
|
54
54
|
function L(t) {
|
|
55
55
|
t.parentNode && t.parentNode.removeChild(t);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function _(t) {
|
|
58
58
|
return document.createElement(t);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function V(t) {
|
|
61
61
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function qe(t) {
|
|
64
64
|
return document.createTextNode(t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function H() {
|
|
67
|
+
return qe(" ");
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ne(t, e, r, n) {
|
|
70
70
|
return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
|
|
71
71
|
}
|
|
72
72
|
function c(t, e, r) {
|
|
73
73
|
r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function et(t) {
|
|
76
76
|
return Array.from(t.childNodes);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function we(t, e, r) {
|
|
79
79
|
t.classList.toggle(e, !!r);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function tt(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
82
82
|
return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function rt(t) {
|
|
85
85
|
const e = {};
|
|
86
86
|
return t.childNodes.forEach(
|
|
87
87
|
/** @param {Element} node */
|
|
@@ -90,27 +90,27 @@ function tt(t) {
|
|
|
90
90
|
}
|
|
91
91
|
), e;
|
|
92
92
|
}
|
|
93
|
-
let
|
|
94
|
-
function
|
|
95
|
-
|
|
93
|
+
let X;
|
|
94
|
+
function U(t) {
|
|
95
|
+
X = t;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
if (!
|
|
97
|
+
function ce() {
|
|
98
|
+
if (!X)
|
|
99
99
|
throw new Error("Function called outside component initialization");
|
|
100
|
-
return
|
|
101
|
-
}
|
|
102
|
-
function rt(t) {
|
|
103
|
-
se().$$.on_mount.push(t);
|
|
100
|
+
return X;
|
|
104
101
|
}
|
|
105
102
|
function nt(t) {
|
|
106
|
-
|
|
103
|
+
ce().$$.on_mount.push(t);
|
|
107
104
|
}
|
|
108
|
-
function it() {
|
|
109
|
-
|
|
105
|
+
function it(t) {
|
|
106
|
+
ce().$$.on_destroy.push(t);
|
|
107
|
+
}
|
|
108
|
+
function ot() {
|
|
109
|
+
const t = ce();
|
|
110
110
|
return (e, r, { cancelable: n = !1 } = {}) => {
|
|
111
111
|
const o = t.$$.callbacks[e];
|
|
112
112
|
if (o) {
|
|
113
|
-
const l =
|
|
113
|
+
const l = tt(
|
|
114
114
|
/** @type {string} */
|
|
115
115
|
e,
|
|
116
116
|
r,
|
|
@@ -123,136 +123,136 @@ function it() {
|
|
|
123
123
|
return !0;
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
const D = [],
|
|
127
|
-
let
|
|
128
|
-
const
|
|
129
|
-
let
|
|
126
|
+
const D = [], oe = [];
|
|
127
|
+
let B = [];
|
|
128
|
+
const _e = [], Re = /* @__PURE__ */ Promise.resolve();
|
|
129
|
+
let le = !1;
|
|
130
130
|
function Ie() {
|
|
131
|
-
|
|
131
|
+
le || (le = !0, Re.then(x));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return Ie(),
|
|
133
|
+
function lt() {
|
|
134
|
+
return Ie(), Re;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
136
|
+
function se(t) {
|
|
137
|
+
B.push(t);
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
if (
|
|
139
|
+
const ie = /* @__PURE__ */ new Set();
|
|
140
|
+
let W = 0;
|
|
141
|
+
function x() {
|
|
142
|
+
if (W !== 0)
|
|
143
143
|
return;
|
|
144
|
-
const t =
|
|
144
|
+
const t = X;
|
|
145
145
|
do {
|
|
146
146
|
try {
|
|
147
|
-
for (;
|
|
148
|
-
const e = D[
|
|
149
|
-
|
|
147
|
+
for (; W < D.length; ) {
|
|
148
|
+
const e = D[W];
|
|
149
|
+
W++, U(e), st(e.$$);
|
|
150
150
|
}
|
|
151
151
|
} catch (e) {
|
|
152
|
-
throw D.length = 0,
|
|
152
|
+
throw D.length = 0, W = 0, e;
|
|
153
153
|
}
|
|
154
|
-
for (
|
|
155
|
-
|
|
156
|
-
for (let e = 0; e <
|
|
157
|
-
const r =
|
|
158
|
-
|
|
154
|
+
for (U(null), D.length = 0, W = 0; oe.length; )
|
|
155
|
+
oe.pop()();
|
|
156
|
+
for (let e = 0; e < B.length; e += 1) {
|
|
157
|
+
const r = B[e];
|
|
158
|
+
ie.has(r) || (ie.add(r), r());
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
B.length = 0;
|
|
161
161
|
} while (D.length);
|
|
162
|
-
for (;
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
for (; _e.length; )
|
|
163
|
+
_e.pop()();
|
|
164
|
+
le = !1, ie.clear(), U(t);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function st(t) {
|
|
167
167
|
if (t.fragment !== null) {
|
|
168
|
-
t.update(),
|
|
168
|
+
t.update(), K(t.before_update);
|
|
169
169
|
const e = t.dirty;
|
|
170
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(
|
|
170
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(se);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function ct(t) {
|
|
174
174
|
const e = [], r = [];
|
|
175
|
-
|
|
175
|
+
B.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), B = e;
|
|
176
176
|
}
|
|
177
|
-
const
|
|
178
|
-
function
|
|
179
|
-
t && t.i && (
|
|
177
|
+
const ut = /* @__PURE__ */ new Set();
|
|
178
|
+
function ft(t, e) {
|
|
179
|
+
t && t.i && (ut.delete(t), t.i(e));
|
|
180
180
|
}
|
|
181
181
|
function at(t, e, r) {
|
|
182
182
|
const { fragment: n, after_update: o } = t.$$;
|
|
183
|
-
n && n.m(e, r),
|
|
184
|
-
const l = t.$$.on_mount.map(
|
|
185
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...l) :
|
|
186
|
-
}), o.forEach(
|
|
183
|
+
n && n.m(e, r), se(() => {
|
|
184
|
+
const l = t.$$.on_mount.map(Ce).filter(Le);
|
|
185
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...l) : K(l), t.$$.on_mount = [];
|
|
186
|
+
}), o.forEach(se);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function ht(t, e) {
|
|
189
189
|
const r = t.$$;
|
|
190
|
-
r.fragment !== null && (
|
|
190
|
+
r.fragment !== null && (ct(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function dt(t, e) {
|
|
193
193
|
t.$$.dirty[0] === -1 && (D.push(t), Ie(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
const
|
|
195
|
+
function gt(t, e, r, n, o, l, s = null, u = [-1]) {
|
|
196
|
+
const a = X;
|
|
197
|
+
U(t);
|
|
198
|
+
const f = t.$$ = {
|
|
199
199
|
fragment: null,
|
|
200
200
|
ctx: [],
|
|
201
201
|
// state
|
|
202
202
|
props: l,
|
|
203
|
-
update:
|
|
203
|
+
update: Y,
|
|
204
204
|
not_equal: o,
|
|
205
|
-
bound:
|
|
205
|
+
bound: ve(),
|
|
206
206
|
// lifecycle
|
|
207
207
|
on_mount: [],
|
|
208
208
|
on_destroy: [],
|
|
209
209
|
on_disconnect: [],
|
|
210
210
|
before_update: [],
|
|
211
211
|
after_update: [],
|
|
212
|
-
context: new Map(e.context || (
|
|
212
|
+
context: new Map(e.context || (a ? a.$$.context : [])),
|
|
213
213
|
// everything else
|
|
214
|
-
callbacks:
|
|
214
|
+
callbacks: ve(),
|
|
215
215
|
dirty: u,
|
|
216
216
|
skip_bound: !1,
|
|
217
|
-
root: e.target ||
|
|
217
|
+
root: e.target || a.$$.root
|
|
218
218
|
};
|
|
219
|
-
s && s(
|
|
220
|
-
let
|
|
221
|
-
if (
|
|
222
|
-
const
|
|
223
|
-
return
|
|
224
|
-
}) : [],
|
|
219
|
+
s && s(f.root);
|
|
220
|
+
let E = !1;
|
|
221
|
+
if (f.ctx = r ? r(t, e.props || {}, (m, I, ...G) => {
|
|
222
|
+
const M = G.length ? G[0] : I;
|
|
223
|
+
return f.ctx && o(f.ctx[m], f.ctx[m] = M) && (!f.skip_bound && f.bound[m] && f.bound[m](M), E && dt(t, m)), I;
|
|
224
|
+
}) : [], f.update(), E = !0, K(f.before_update), f.fragment = n ? n(f.ctx) : !1, e.target) {
|
|
225
225
|
if (e.hydrate) {
|
|
226
|
-
const
|
|
227
|
-
|
|
226
|
+
const m = et(e.target);
|
|
227
|
+
f.fragment && f.fragment.l(m), m.forEach(L);
|
|
228
228
|
} else
|
|
229
|
-
|
|
230
|
-
e.intro &&
|
|
229
|
+
f.fragment && f.fragment.c();
|
|
230
|
+
e.intro && ft(t.$$.fragment), at(t, e.target, e.anchor), x();
|
|
231
231
|
}
|
|
232
|
-
|
|
232
|
+
U(a);
|
|
233
233
|
}
|
|
234
|
-
let
|
|
235
|
-
typeof HTMLElement == "function" && (
|
|
234
|
+
let Ne;
|
|
235
|
+
typeof HTMLElement == "function" && (Ne = class extends HTMLElement {
|
|
236
236
|
constructor(e, r, n) {
|
|
237
237
|
super();
|
|
238
238
|
/** The Svelte component constructor */
|
|
239
|
-
|
|
239
|
+
T(this, "$$ctor");
|
|
240
240
|
/** Slots */
|
|
241
|
-
|
|
241
|
+
T(this, "$$s");
|
|
242
242
|
/** The Svelte component instance */
|
|
243
|
-
|
|
243
|
+
T(this, "$$c");
|
|
244
244
|
/** Whether or not the custom element is connected */
|
|
245
|
-
|
|
245
|
+
T(this, "$$cn", !1);
|
|
246
246
|
/** Component props data */
|
|
247
|
-
|
|
247
|
+
T(this, "$$d", {});
|
|
248
248
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
249
|
-
|
|
249
|
+
T(this, "$$r", !1);
|
|
250
250
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
251
|
-
|
|
251
|
+
T(this, "$$p_d", {});
|
|
252
252
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
253
|
-
|
|
253
|
+
T(this, "$$l", {});
|
|
254
254
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
255
|
-
|
|
255
|
+
T(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
256
256
|
this.$$ctor = e, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
257
257
|
}
|
|
258
258
|
addEventListener(e, r, n) {
|
|
@@ -275,29 +275,29 @@ typeof HTMLElement == "function" && (Re = class extends HTMLElement {
|
|
|
275
275
|
let s;
|
|
276
276
|
return {
|
|
277
277
|
c: function() {
|
|
278
|
-
s =
|
|
278
|
+
s = _("slot"), l !== "default" && c(s, "name", l);
|
|
279
279
|
},
|
|
280
280
|
/**
|
|
281
281
|
* @param {HTMLElement} target
|
|
282
282
|
* @param {HTMLElement} [anchor]
|
|
283
283
|
*/
|
|
284
|
-
m: function(
|
|
285
|
-
|
|
284
|
+
m: function(f, E) {
|
|
285
|
+
R(f, s, E);
|
|
286
286
|
},
|
|
287
|
-
d: function(
|
|
288
|
-
|
|
287
|
+
d: function(f) {
|
|
288
|
+
f && L(s);
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
};
|
|
292
292
|
};
|
|
293
293
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
294
294
|
return;
|
|
295
|
-
const r = {}, n =
|
|
295
|
+
const r = {}, n = rt(this);
|
|
296
296
|
for (const l of this.$$s)
|
|
297
297
|
l in n && (r[l] = [e(l)]);
|
|
298
298
|
for (const l of this.attributes) {
|
|
299
299
|
const s = this.$$g_p(l.name);
|
|
300
|
-
s in this.$$d || (this.$$d[s] =
|
|
300
|
+
s in this.$$d || (this.$$d[s] = q(s, l.value, this.$$p_d, "toProp"));
|
|
301
301
|
}
|
|
302
302
|
for (const l in this.$$p_d)
|
|
303
303
|
!(l in this.$$d) && this[l] !== void 0 && (this.$$d[l] = this[l], delete this[l]);
|
|
@@ -315,7 +315,7 @@ typeof HTMLElement == "function" && (Re = class extends HTMLElement {
|
|
|
315
315
|
this.$$r = !0;
|
|
316
316
|
for (const l in this.$$p_d)
|
|
317
317
|
if (this.$$d[l] = this.$$c.$$.ctx[this.$$c.$$.props[l]], this.$$p_d[l].reflect) {
|
|
318
|
-
const s =
|
|
318
|
+
const s = q(
|
|
319
319
|
l,
|
|
320
320
|
this.$$d[l],
|
|
321
321
|
this.$$p_d,
|
|
@@ -338,7 +338,7 @@ typeof HTMLElement == "function" && (Re = class extends HTMLElement {
|
|
|
338
338
|
// and setting attributes through setAttribute etc, this is helpful
|
|
339
339
|
attributeChangedCallback(e, r, n) {
|
|
340
340
|
var o;
|
|
341
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
341
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = q(e, n, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [e]: this.$$d[e] }));
|
|
342
342
|
}
|
|
343
343
|
disconnectedCallback() {
|
|
344
344
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -351,7 +351,7 @@ typeof HTMLElement == "function" && (Re = class extends HTMLElement {
|
|
|
351
351
|
) || e;
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
|
-
function
|
|
354
|
+
function q(t, e, r, n) {
|
|
355
355
|
var l;
|
|
356
356
|
const o = (l = r[t]) == null ? void 0 : l.type;
|
|
357
357
|
if (e = o === "Boolean" && typeof e != "boolean" ? e != null : e, !n || !r[t])
|
|
@@ -381,8 +381,8 @@ function z(t, e, r, n) {
|
|
|
381
381
|
return e;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
let s = class extends
|
|
384
|
+
function bt(t, e, r, n, o, l) {
|
|
385
|
+
let s = class extends Ne {
|
|
386
386
|
constructor() {
|
|
387
387
|
super(t, r, o), this.$$p_d = e;
|
|
388
388
|
}
|
|
@@ -397,22 +397,22 @@ function gt(t, e, r, n, o, l) {
|
|
|
397
397
|
get() {
|
|
398
398
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
399
399
|
},
|
|
400
|
-
set(
|
|
401
|
-
var
|
|
402
|
-
|
|
400
|
+
set(a) {
|
|
401
|
+
var f;
|
|
402
|
+
a = q(u, a, e), this.$$d[u] = a, (f = this.$$c) == null || f.$set({ [u]: a });
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
}), n.forEach((u) => {
|
|
406
406
|
Object.defineProperty(s.prototype, u, {
|
|
407
407
|
get() {
|
|
408
|
-
var
|
|
409
|
-
return (
|
|
408
|
+
var a;
|
|
409
|
+
return (a = this.$$c) == null ? void 0 : a[u];
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
}), l && (s = l(s)), t.element = /** @type {any} */
|
|
413
413
|
s, s;
|
|
414
414
|
}
|
|
415
|
-
class
|
|
415
|
+
class mt {
|
|
416
416
|
constructor() {
|
|
417
417
|
/**
|
|
418
418
|
* ### PRIVATE API
|
|
@@ -421,7 +421,7 @@ class bt {
|
|
|
421
421
|
*
|
|
422
422
|
* @type {any}
|
|
423
423
|
*/
|
|
424
|
-
|
|
424
|
+
T(this, "$$");
|
|
425
425
|
/**
|
|
426
426
|
* ### PRIVATE API
|
|
427
427
|
*
|
|
@@ -429,11 +429,11 @@ class bt {
|
|
|
429
429
|
*
|
|
430
430
|
* @type {any}
|
|
431
431
|
*/
|
|
432
|
-
|
|
432
|
+
T(this, "$$set");
|
|
433
433
|
}
|
|
434
434
|
/** @returns {void} */
|
|
435
435
|
$destroy() {
|
|
436
|
-
|
|
436
|
+
ht(this, 1), this.$destroy = Y;
|
|
437
437
|
}
|
|
438
438
|
/**
|
|
439
439
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -442,8 +442,8 @@ class bt {
|
|
|
442
442
|
* @returns {() => void}
|
|
443
443
|
*/
|
|
444
444
|
$on(e, r) {
|
|
445
|
-
if (!
|
|
446
|
-
return
|
|
445
|
+
if (!Le(r))
|
|
446
|
+
return Y;
|
|
447
447
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
448
448
|
return n.push(r), () => {
|
|
449
449
|
const o = n.indexOf(r);
|
|
@@ -455,16 +455,16 @@ class bt {
|
|
|
455
455
|
* @returns {void}
|
|
456
456
|
*/
|
|
457
457
|
$set(e) {
|
|
458
|
-
this.$$set && !
|
|
458
|
+
this.$$set && !Ke(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
const
|
|
462
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
463
|
-
const
|
|
464
|
-
function
|
|
461
|
+
const vt = "4";
|
|
462
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vt);
|
|
463
|
+
const Te = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGY9bmV3IFRleHRFbmNvZGVyO2Z1bmN0aW9uIGcodCl7cmV0dXJuWy4uLm5ldyBVaW50OEFycmF5KHQpXS5tYXAoZT0+ZS50b1N0cmluZygxNikucGFkU3RhcnQoMiwiMCIpKS5qb2luKCIiKX1hc3luYyBmdW5jdGlvbiBoKHQsZSxvKXtyZXR1cm4gZyhhd2FpdCBjcnlwdG8uc3VidGxlLmRpZ2VzdChvLnRvVXBwZXJDYXNlKCksZi5lbmNvZGUodCtlKSkpfWZ1bmN0aW9uIG0odCxlLG89IlNIQS0yNTYiLGk9MWU2LHA9MCl7Y29uc3QgYT1uZXcgQWJvcnRDb250cm9sbGVyO3JldHVybntwcm9taXNlOm5ldyBQcm9taXNlKChzLGMpPT57Y29uc3Qgcj1EYXRlLm5vdygpLGQ9bD0+e2Euc2lnbmFsLmFib3J0ZWR8fGw+aT9zKG51bGwpOmgoZSxsLG8pLnRoZW4odz0+e3c9PT10P3Moe251bWJlcjpsLHRvb2s6RGF0ZS5ub3coKS1yfSk6ZChsKzEpfSkuY2F0Y2goYyl9O2QocCl9KSxjb250cm9sbGVyOmF9fWxldCBuO29ubWVzc2FnZT1hc3luYyB0PT57Y29uc3R7dHlwZTplLHBheWxvYWQ6b309dC5kYXRhO2lmKGU9PT0iYWJvcnQiKW49PW51bGx8fG4uYWJvcnQoKSxuPXZvaWQgMDtlbHNlIGlmKGU9PT0id29yayIpe2NvbnN0e2FsZzppLGNoYWxsZW5nZTpwLG1heDphLHNhbHQ6dSxzdGFydDpzfT1vfHx7fSxjPW0ocCx1LGksYSxzKTtuPWMuY29udHJvbGxlcixjLnByb21pc2UudGhlbihyPT57c2VsZi5wb3N0TWVzc2FnZShyJiZ7Li4ucix3b3JrZXI6ITB9KX0pfX19KSgpOwo=", wt = (t) => Uint8Array.from(atob(t), (e) => e.charCodeAt(0)), pe = typeof window < "u" && window.Blob && new Blob([wt(Te)], { type: "text/javascript;charset=utf-8" });
|
|
464
|
+
function _t(t) {
|
|
465
465
|
let e;
|
|
466
466
|
try {
|
|
467
|
-
if (e =
|
|
467
|
+
if (e = pe && (window.URL || window.webkitURL).createObjectURL(pe), !e)
|
|
468
468
|
throw "";
|
|
469
469
|
const r = new Worker(e, {
|
|
470
470
|
name: t == null ? void 0 : t.name
|
|
@@ -474,7 +474,7 @@ function wt(t) {
|
|
|
474
474
|
}), r;
|
|
475
475
|
} catch {
|
|
476
476
|
return new Worker(
|
|
477
|
-
"data:text/javascript;base64," +
|
|
477
|
+
"data:text/javascript;base64," + Te,
|
|
478
478
|
{
|
|
479
479
|
name: t == null ? void 0 : t.name
|
|
480
480
|
}
|
|
@@ -483,14 +483,14 @@ function wt(t) {
|
|
|
483
483
|
e && (window.URL || window.webkitURL).revokeObjectURL(e);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
const
|
|
487
|
-
function
|
|
486
|
+
const pt = new TextEncoder();
|
|
487
|
+
function yt(t) {
|
|
488
488
|
return [...new Uint8Array(t)].map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
489
489
|
}
|
|
490
490
|
async function kt(t, e = "SHA-256", r = 1e5) {
|
|
491
491
|
const n = Date.now().toString(16);
|
|
492
492
|
t || (t = Math.round(Math.random() * r));
|
|
493
|
-
const o = await
|
|
493
|
+
const o = await Me(n, t, e);
|
|
494
494
|
return {
|
|
495
495
|
algorithm: e,
|
|
496
496
|
challenge: o,
|
|
@@ -498,56 +498,56 @@ async function kt(t, e = "SHA-256", r = 1e5) {
|
|
|
498
498
|
signature: ""
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
async function
|
|
502
|
-
return
|
|
501
|
+
async function Me(t, e, r) {
|
|
502
|
+
return yt(await crypto.subtle.digest(r.toUpperCase(), pt.encode(t + e)));
|
|
503
503
|
}
|
|
504
504
|
function $t(t, e, r = "SHA-256", n = 1e6, o = 0) {
|
|
505
505
|
const l = new AbortController();
|
|
506
506
|
return {
|
|
507
|
-
promise: new Promise((u,
|
|
508
|
-
const
|
|
509
|
-
l.signal.aborted ||
|
|
510
|
-
|
|
511
|
-
number:
|
|
512
|
-
took: Date.now() -
|
|
513
|
-
}) :
|
|
514
|
-
}).catch(
|
|
507
|
+
promise: new Promise((u, a) => {
|
|
508
|
+
const f = Date.now(), E = (m) => {
|
|
509
|
+
l.signal.aborted || m > n ? u(null) : Me(e, m, r).then((I) => {
|
|
510
|
+
I === t ? u({
|
|
511
|
+
number: m,
|
|
512
|
+
took: Date.now() - f
|
|
513
|
+
}) : E(m + 1);
|
|
514
|
+
}).catch(a);
|
|
515
515
|
};
|
|
516
|
-
|
|
516
|
+
E(o);
|
|
517
517
|
}),
|
|
518
518
|
controller: l
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
|
-
var
|
|
522
|
-
function
|
|
523
|
-
|
|
521
|
+
var g = /* @__PURE__ */ ((t) => (t.ERROR = "error", t.VERIFIED = "verified", t.VERIFYING = "verifying", t.UNVERIFIED = "unverified", t.EXPIRED = "expired", t))(g || {});
|
|
522
|
+
function Et(t) {
|
|
523
|
+
Je(t, "svelte-vuofbg", ".altcha.svelte-vuofbg.svelte-vuofbg{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);overflow:hidden;position:relative;text-align:left}.altcha.svelte-vuofbg.svelte-vuofbg:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha-main.svelte-vuofbg.svelte-vuofbg{align-items:center;display:flex;gap:0.4rem;padding:0.7rem}.altcha-label.svelte-vuofbg.svelte-vuofbg{flex-grow:1}.altcha-label.svelte-vuofbg label.svelte-vuofbg{cursor:pointer}.altcha-logo.svelte-vuofbg.svelte-vuofbg{color:currentColor;opacity:0.3}.altcha-logo.svelte-vuofbg.svelte-vuofbg:hover{opacity:1}.altcha-error.svelte-vuofbg.svelte-vuofbg{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-vuofbg.svelte-vuofbg{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-vuofbg.svelte-vuofbg:hover{opacity:1}.altcha-footer.svelte-vuofbg>.svelte-vuofbg:first-child{flex-grow:1}.altcha-footer.svelte-vuofbg a{color:currentColor}.altcha-checkbox.svelte-vuofbg.svelte-vuofbg{display:flex;align-items:center;height:24px;width:24px}.altcha-checkbox.svelte-vuofbg input.svelte-vuofbg{width:18px;height:18px;margin:0}.altcha-hidden.svelte-vuofbg.svelte-vuofbg{display:none}.altcha-spinner.svelte-vuofbg.svelte-vuofbg{animation:svelte-vuofbg-altcha-spinner 0.75s infinite linear;transform-origin:center}@keyframes svelte-vuofbg-altcha-spinner{100%{transform:rotate(360deg)}}");
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function ye(t) {
|
|
526
526
|
let e, r, n;
|
|
527
527
|
return {
|
|
528
528
|
c() {
|
|
529
|
-
e =
|
|
529
|
+
e = V("svg"), r = V("path"), n = V("path"), c(r, "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"), c(r, "fill", "currentColor"), c(r, "opacity", ".25"), c(n, "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"), c(n, "fill", "currentColor"), c(n, "class", "altcha-spinner svelte-vuofbg"), c(e, "width", "24"), c(e, "height", "24"), c(e, "viewBox", "0 0 24 24"), c(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
530
530
|
},
|
|
531
531
|
m(o, l) {
|
|
532
|
-
|
|
532
|
+
R(o, e, l), b(e, r), b(e, n);
|
|
533
533
|
},
|
|
534
534
|
d(o) {
|
|
535
535
|
o && L(e);
|
|
536
536
|
}
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function xt(t) {
|
|
540
540
|
let e, r = (
|
|
541
541
|
/*_strings*/
|
|
542
542
|
t[9].label + ""
|
|
543
543
|
), n;
|
|
544
544
|
return {
|
|
545
545
|
c() {
|
|
546
|
-
e =
|
|
546
|
+
e = _("label"), c(e, "for", n = /*name*/
|
|
547
547
|
t[3] + "_checkbox"), c(e, "class", "svelte-vuofbg");
|
|
548
548
|
},
|
|
549
549
|
m(o, l) {
|
|
550
|
-
|
|
550
|
+
R(o, e, l), e.innerHTML = r;
|
|
551
551
|
},
|
|
552
552
|
p(o, l) {
|
|
553
553
|
l[0] & /*_strings*/
|
|
@@ -561,17 +561,17 @@ function Et(t) {
|
|
|
561
561
|
}
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Ct(t) {
|
|
565
565
|
let e, r = (
|
|
566
566
|
/*_strings*/
|
|
567
567
|
t[9].verifying + ""
|
|
568
568
|
);
|
|
569
569
|
return {
|
|
570
570
|
c() {
|
|
571
|
-
e =
|
|
571
|
+
e = _("span");
|
|
572
572
|
},
|
|
573
573
|
m(n, o) {
|
|
574
|
-
|
|
574
|
+
R(n, e, o), e.innerHTML = r;
|
|
575
575
|
},
|
|
576
576
|
p(n, o) {
|
|
577
577
|
o[0] & /*_strings*/
|
|
@@ -583,14 +583,14 @@ function xt(t) {
|
|
|
583
583
|
}
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Lt(t) {
|
|
587
587
|
let e, r = (
|
|
588
588
|
/*_strings*/
|
|
589
589
|
t[9].verified + ""
|
|
590
590
|
), n, o;
|
|
591
591
|
return {
|
|
592
592
|
c() {
|
|
593
|
-
e =
|
|
593
|
+
e = _("span"), n = H(), o = _("input"), c(o, "type", "hidden"), c(
|
|
594
594
|
o,
|
|
595
595
|
"name",
|
|
596
596
|
/*name*/
|
|
@@ -599,7 +599,7 @@ function Ct(t) {
|
|
|
599
599
|
t[4];
|
|
600
600
|
},
|
|
601
601
|
m(l, s) {
|
|
602
|
-
|
|
602
|
+
R(l, e, s), e.innerHTML = r, R(l, n, s), R(l, o, s);
|
|
603
603
|
},
|
|
604
604
|
p(l, s) {
|
|
605
605
|
s[0] & /*_strings*/
|
|
@@ -623,12 +623,12 @@ function ke(t) {
|
|
|
623
623
|
let e, r, n, o, l, s;
|
|
624
624
|
return {
|
|
625
625
|
c() {
|
|
626
|
-
e =
|
|
626
|
+
e = _("div"), r = _("a"), n = V("svg"), o = V("path"), l = V("path"), s = V("path"), c(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"), c(o, "fill", "currentColor"), c(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"), c(l, "fill", "currentColor"), c(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"), c(s, "fill", "currentColor"), c(n, "width", "22"), c(n, "height", "22"), c(n, "viewBox", "0 0 20 20"), c(n, "fill", "none"), c(n, "xmlns", "http://www.w3.org/2000/svg"), c(r, "href", Ge), c(r, "target", "_blank"), c(r, "class", "altcha-logo svelte-vuofbg");
|
|
627
627
|
},
|
|
628
|
-
m(u,
|
|
629
|
-
|
|
628
|
+
m(u, a) {
|
|
629
|
+
R(u, e, a), b(e, r), b(r, n), b(n, o), b(n, l), b(n, s);
|
|
630
630
|
},
|
|
631
|
-
p:
|
|
631
|
+
p: Y,
|
|
632
632
|
d(u) {
|
|
633
633
|
u && L(e);
|
|
634
634
|
}
|
|
@@ -636,36 +636,36 @@ function ke(t) {
|
|
|
636
636
|
}
|
|
637
637
|
function $e(t) {
|
|
638
638
|
let e, r, n, o;
|
|
639
|
-
function l(
|
|
639
|
+
function l(a, f) {
|
|
640
640
|
return (
|
|
641
641
|
/*state*/
|
|
642
|
-
|
|
642
|
+
a[5] === g.EXPIRED ? It : Rt
|
|
643
643
|
);
|
|
644
644
|
}
|
|
645
645
|
let s = l(t), u = s(t);
|
|
646
646
|
return {
|
|
647
647
|
c() {
|
|
648
|
-
e =
|
|
648
|
+
e = _("div"), r = V("svg"), n = V("path"), o = H(), u.c(), c(n, "stroke-linecap", "round"), c(n, "stroke-linejoin", "round"), c(n, "d", "M6 18L18 6M6 6l12 12"), c(r, "width", "14"), c(r, "height", "14"), c(r, "xmlns", "http://www.w3.org/2000/svg"), c(r, "fill", "none"), c(r, "viewBox", "0 0 24 24"), c(r, "stroke-width", "1.5"), c(r, "stroke", "currentColor"), c(e, "class", "altcha-error svelte-vuofbg");
|
|
649
649
|
},
|
|
650
|
-
m(
|
|
651
|
-
|
|
650
|
+
m(a, f) {
|
|
651
|
+
R(a, e, f), b(e, r), b(r, n), b(e, o), u.m(e, null);
|
|
652
652
|
},
|
|
653
|
-
p(
|
|
654
|
-
s === (s = l(
|
|
653
|
+
p(a, f) {
|
|
654
|
+
s === (s = l(a)) && u ? u.p(a, f) : (u.d(1), u = s(a), u && (u.c(), u.m(e, null)));
|
|
655
655
|
},
|
|
656
|
-
d(
|
|
657
|
-
|
|
656
|
+
d(a) {
|
|
657
|
+
a && L(e), u.d();
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function Rt(t) {
|
|
662
662
|
let e, r = (
|
|
663
663
|
/*_strings*/
|
|
664
664
|
t[9].error + ""
|
|
665
665
|
);
|
|
666
666
|
return {
|
|
667
667
|
c() {
|
|
668
|
-
e =
|
|
668
|
+
e = _("div"), c(
|
|
669
669
|
e,
|
|
670
670
|
"title",
|
|
671
671
|
/*error*/
|
|
@@ -673,7 +673,7 @@ function Lt(t) {
|
|
|
673
673
|
);
|
|
674
674
|
},
|
|
675
675
|
m(n, o) {
|
|
676
|
-
|
|
676
|
+
R(n, e, o), e.innerHTML = r;
|
|
677
677
|
},
|
|
678
678
|
p(n, o) {
|
|
679
679
|
o[0] & /*_strings*/
|
|
@@ -698,7 +698,7 @@ function It(t) {
|
|
|
698
698
|
);
|
|
699
699
|
return {
|
|
700
700
|
c() {
|
|
701
|
-
e =
|
|
701
|
+
e = _("div"), c(
|
|
702
702
|
e,
|
|
703
703
|
"title",
|
|
704
704
|
/*error*/
|
|
@@ -706,7 +706,7 @@ function It(t) {
|
|
|
706
706
|
);
|
|
707
707
|
},
|
|
708
708
|
m(n, o) {
|
|
709
|
-
|
|
709
|
+
R(n, e, o), e.innerHTML = r;
|
|
710
710
|
},
|
|
711
711
|
p(n, o) {
|
|
712
712
|
o[0] & /*_strings*/
|
|
@@ -724,17 +724,17 @@ function It(t) {
|
|
|
724
724
|
}
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Ee(t) {
|
|
728
728
|
let e, r, n = (
|
|
729
729
|
/*_strings*/
|
|
730
730
|
t[9].footer + ""
|
|
731
731
|
);
|
|
732
732
|
return {
|
|
733
733
|
c() {
|
|
734
|
-
e =
|
|
734
|
+
e = _("div"), r = _("div"), c(r, "class", "svelte-vuofbg"), c(e, "class", "altcha-footer svelte-vuofbg");
|
|
735
735
|
},
|
|
736
736
|
m(o, l) {
|
|
737
|
-
|
|
737
|
+
R(o, e, l), b(e, r), r.innerHTML = n;
|
|
738
738
|
},
|
|
739
739
|
p(o, l) {
|
|
740
740
|
l[0] & /*_strings*/
|
|
@@ -746,91 +746,91 @@ function ye(t) {
|
|
|
746
746
|
}
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
function
|
|
750
|
-
let e, r, n, o, l, s, u, f,
|
|
749
|
+
function Nt(t) {
|
|
750
|
+
let e, r, n, o, l, s, u, a, f, E, m, I, G, M, w = (
|
|
751
751
|
/*state*/
|
|
752
|
-
t[5] ===
|
|
752
|
+
t[5] === g.VERIFYING && ye()
|
|
753
753
|
);
|
|
754
|
-
function
|
|
754
|
+
function Z(h, $) {
|
|
755
755
|
return (
|
|
756
756
|
/*state*/
|
|
757
|
-
h[5] ===
|
|
757
|
+
h[5] === g.VERIFIED ? Lt : (
|
|
758
758
|
/*state*/
|
|
759
|
-
h[5] ===
|
|
759
|
+
h[5] === g.VERIFYING ? Ct : xt
|
|
760
760
|
)
|
|
761
761
|
);
|
|
762
762
|
}
|
|
763
|
-
let A =
|
|
763
|
+
let A = Z(t), p = A(t), v = (
|
|
764
764
|
/*hidelogo*/
|
|
765
765
|
t[2] !== !0 && ke()
|
|
766
|
-
),
|
|
766
|
+
), y = (
|
|
767
767
|
/*error*/
|
|
768
768
|
(t[8] || /*state*/
|
|
769
|
-
t[5] ===
|
|
770
|
-
),
|
|
769
|
+
t[5] === g.EXPIRED) && $e(t)
|
|
770
|
+
), k = (
|
|
771
771
|
/*_strings*/
|
|
772
772
|
t[9].footer && /*hidefooter*/
|
|
773
|
-
t[1] !== !0 &&
|
|
773
|
+
t[1] !== !0 && Ee(t)
|
|
774
774
|
);
|
|
775
775
|
return {
|
|
776
776
|
c() {
|
|
777
|
-
e =
|
|
777
|
+
e = _("div"), r = _("div"), w && w.c(), n = H(), o = _("div"), l = _("input"), a = H(), f = _("div"), p.c(), E = H(), v && v.c(), m = H(), y && y.c(), I = H(), k && k.c(), c(l, "type", "checkbox"), c(l, "id", s = /*name*/
|
|
778
778
|
t[3] + "_checkbox"), l.required = u = /*auto*/
|
|
779
|
-
t[0] !== "onsubmit", c(l, "class", "svelte-vuofbg"), c(o, "class", "altcha-checkbox svelte-vuofbg"),
|
|
779
|
+
t[0] !== "onsubmit", c(l, "class", "svelte-vuofbg"), c(o, "class", "altcha-checkbox svelte-vuofbg"), we(
|
|
780
780
|
o,
|
|
781
781
|
"altcha-hidden",
|
|
782
782
|
/*state*/
|
|
783
|
-
t[5] ===
|
|
784
|
-
), c(
|
|
783
|
+
t[5] === g.VERIFYING
|
|
784
|
+
), c(f, "class", "altcha-label svelte-vuofbg"), c(r, "class", "altcha-main svelte-vuofbg"), c(e, "class", "altcha svelte-vuofbg"), c(
|
|
785
785
|
e,
|
|
786
786
|
"data-state",
|
|
787
787
|
/*state*/
|
|
788
788
|
t[5]
|
|
789
789
|
);
|
|
790
790
|
},
|
|
791
|
-
m(h,
|
|
792
|
-
|
|
793
|
-
t[6],
|
|
794
|
-
|
|
791
|
+
m(h, $) {
|
|
792
|
+
R(h, e, $), b(e, r), w && w.m(r, null), b(r, n), b(r, o), b(o, l), l.checked = /*checked*/
|
|
793
|
+
t[6], b(r, a), b(r, f), p.m(f, null), b(r, E), v && v.m(r, null), b(e, m), y && y.m(e, null), b(e, I), k && k.m(e, null), t[27](e), G || (M = [
|
|
794
|
+
ne(
|
|
795
795
|
l,
|
|
796
796
|
"change",
|
|
797
797
|
/*input_change_handler*/
|
|
798
|
-
t[
|
|
798
|
+
t[26]
|
|
799
799
|
),
|
|
800
|
-
|
|
800
|
+
ne(
|
|
801
801
|
l,
|
|
802
802
|
"change",
|
|
803
803
|
/*onCheckedChange*/
|
|
804
804
|
t[10]
|
|
805
805
|
),
|
|
806
|
-
|
|
806
|
+
ne(
|
|
807
807
|
l,
|
|
808
808
|
"invalid",
|
|
809
809
|
/*onInvalid*/
|
|
810
810
|
t[11]
|
|
811
811
|
)
|
|
812
|
-
],
|
|
812
|
+
], G = !0);
|
|
813
813
|
},
|
|
814
|
-
p(h,
|
|
814
|
+
p(h, $) {
|
|
815
815
|
/*state*/
|
|
816
|
-
h[5] ===
|
|
816
|
+
h[5] === g.VERIFYING ? w || (w = ye(), w.c(), w.m(r, n)) : w && (w.d(1), w = null), $[0] & /*name*/
|
|
817
817
|
8 && s !== (s = /*name*/
|
|
818
|
-
h[3] + "_checkbox") && c(l, "id", s),
|
|
818
|
+
h[3] + "_checkbox") && c(l, "id", s), $[0] & /*auto*/
|
|
819
819
|
1 && u !== (u = /*auto*/
|
|
820
|
-
h[0] !== "onsubmit") && (l.required = u),
|
|
820
|
+
h[0] !== "onsubmit") && (l.required = u), $[0] & /*checked*/
|
|
821
821
|
64 && (l.checked = /*checked*/
|
|
822
|
-
h[6]),
|
|
823
|
-
32 &&
|
|
822
|
+
h[6]), $[0] & /*state*/
|
|
823
|
+
32 && we(
|
|
824
824
|
o,
|
|
825
825
|
"altcha-hidden",
|
|
826
826
|
/*state*/
|
|
827
|
-
h[5] ===
|
|
828
|
-
), A === (A =
|
|
829
|
-
h[2] !== !0 ?
|
|
827
|
+
h[5] === g.VERIFYING
|
|
828
|
+
), A === (A = Z(h)) && p ? p.p(h, $) : (p.d(1), p = A(h), p && (p.c(), p.m(f, null))), /*hidelogo*/
|
|
829
|
+
h[2] !== !0 ? v ? v.p(h, $) : (v = ke(), v.c(), v.m(r, null)) : v && (v.d(1), v = null), /*error*/
|
|
830
830
|
h[8] || /*state*/
|
|
831
|
-
h[5] ===
|
|
831
|
+
h[5] === g.EXPIRED ? y ? y.p(h, $) : (y = $e(h), y.c(), y.m(e, I)) : y && (y.d(1), y = null), /*_strings*/
|
|
832
832
|
h[9].footer && /*hidefooter*/
|
|
833
|
-
h[1] !== !0 ?
|
|
833
|
+
h[1] !== !0 ? k ? k.p(h, $) : (k = Ee(h), k.c(), k.m(e, null)) : k && (k.d(1), k = null), $[0] & /*state*/
|
|
834
834
|
32 && c(
|
|
835
835
|
e,
|
|
836
836
|
"data-state",
|
|
@@ -838,46 +838,46 @@ function Rt(t) {
|
|
|
838
838
|
h[5]
|
|
839
839
|
);
|
|
840
840
|
},
|
|
841
|
-
i:
|
|
842
|
-
o:
|
|
841
|
+
i: Y,
|
|
842
|
+
o: Y,
|
|
843
843
|
d(h) {
|
|
844
|
-
h && L(e),
|
|
844
|
+
h && L(e), w && w.d(), p.d(), v && v.d(), y && y.d(), k && k.d(), t[27](null), G = !1, K(M);
|
|
845
845
|
}
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
const
|
|
849
|
-
function
|
|
848
|
+
const Ge = "https://altcha.org/";
|
|
849
|
+
function xe(t) {
|
|
850
850
|
return JSON.parse(t);
|
|
851
851
|
}
|
|
852
|
-
function
|
|
853
|
-
let n, o, l, { auto: s = void 0 } = e, { challengeurl: u = void 0 } = e, { challengejson:
|
|
854
|
-
const
|
|
855
|
-
let
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
}),
|
|
859
|
-
|
|
852
|
+
function Tt(t, e, r) {
|
|
853
|
+
let n, o, l, { auto: s = void 0 } = e, { challengeurl: u = void 0 } = e, { challengejson: a = void 0 } = e, { debug: f = !1 } = e, { expire: E = void 0 } = e, { hidefooter: m = !1 } = e, { hidelogo: I = !1 } = e, { name: G = "altcha" } = e, { maxnumber: M = 1e6 } = e, { mockerror: w = !1 } = e, { refetchonexpire: Z = !0 } = e, { strings: A = void 0 } = e, { test: p = !1 } = e, { workers: v = navigator.hardwareConcurrency || 8 } = e;
|
|
854
|
+
const y = ot(), k = ["SHA-256", "SHA-384", "SHA-512"];
|
|
855
|
+
let h = !1, $, N = null, ee = null, F = null, j = g.UNVERIFIED, te;
|
|
856
|
+
it(() => {
|
|
857
|
+
N && (N.removeEventListener("submit", ue), N.removeEventListener("reset", fe), N = null);
|
|
858
|
+
}), nt(() => {
|
|
859
|
+
C("mounted", "0.2.2"), C("workers", v), p && C("using test mode"), E && re(E), s !== void 0 && C("auto", s), N = $.closest("form"), N && (N.addEventListener("submit", ue), N.addEventListener("reset", fe)), s === "onload" && P();
|
|
860
860
|
});
|
|
861
|
-
function
|
|
862
|
-
(
|
|
861
|
+
function C(...i) {
|
|
862
|
+
(f || i.some((d) => d instanceof Error)) && console[i[0] instanceof Error ? "error" : "log"]("ALTCHA", ...i);
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
|
|
866
|
-
|
|
864
|
+
function ue(i) {
|
|
865
|
+
N && s === "onsubmit" && j === g.UNVERIFIED && (i.preventDefault(), i.stopPropagation(), P().then(() => {
|
|
866
|
+
N == null || N.requestSubmit();
|
|
867
867
|
}));
|
|
868
868
|
}
|
|
869
|
-
function
|
|
870
|
-
|
|
869
|
+
function fe() {
|
|
870
|
+
J();
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Se(i, d) {
|
|
873
873
|
return btoa(JSON.stringify({
|
|
874
874
|
algorithm: i.algorithm,
|
|
875
875
|
challenge: i.challenge,
|
|
876
|
-
number:
|
|
876
|
+
number: d.number,
|
|
877
877
|
salt: i.salt,
|
|
878
878
|
signature: i.signature,
|
|
879
|
-
test:
|
|
880
|
-
took:
|
|
879
|
+
test: p ? !0 : void 0,
|
|
880
|
+
took: d.took
|
|
881
881
|
}));
|
|
882
882
|
}
|
|
883
883
|
function ae(i) {
|
|
@@ -885,180 +885,181 @@ function Nt(t, e, r) {
|
|
|
885
885
|
throw new Error("Invalid challenge. Property algorithm is missing.");
|
|
886
886
|
if (i.signature === void 0)
|
|
887
887
|
throw new Error("Invalid challenge. Property signature is missing.");
|
|
888
|
-
if (
|
|
889
|
-
throw new Error(`Unknown algorithm value. Allowed values: ${
|
|
888
|
+
if (!k.includes(i.algorithm.toUpperCase()))
|
|
889
|
+
throw new Error(`Unknown algorithm value. Allowed values: ${k.join(", ")}`);
|
|
890
890
|
if (!i.challenge || i.challenge.length < 40)
|
|
891
891
|
throw new Error("Challenge is too short. Min. 40 chars.");
|
|
892
892
|
if (!i.salt || i.salt.length < 10)
|
|
893
893
|
throw new Error("Salt is too short. Min. 10 chars.");
|
|
894
894
|
}
|
|
895
|
-
async function
|
|
896
|
-
if (
|
|
897
|
-
throw
|
|
895
|
+
async function Ae() {
|
|
896
|
+
if (w)
|
|
897
|
+
throw C("mocking error"), new Error("Mocked error.");
|
|
898
898
|
if (n)
|
|
899
|
-
return
|
|
900
|
-
if (
|
|
901
|
-
return
|
|
899
|
+
return C("using provided json data"), n;
|
|
900
|
+
if (p)
|
|
901
|
+
return C("generating test challenge"), kt();
|
|
902
902
|
{
|
|
903
903
|
if (!u)
|
|
904
904
|
throw new Error("Attribute challengeurl not set.");
|
|
905
|
-
|
|
905
|
+
C("fetching challenge from", u);
|
|
906
906
|
const i = await fetch(u);
|
|
907
907
|
if (i.status !== 200)
|
|
908
908
|
throw new Error(`Server responded with ${i.status}.`);
|
|
909
|
-
const
|
|
910
|
-
if (
|
|
911
|
-
const O = Date.parse(
|
|
912
|
-
isNaN(O) ||
|
|
909
|
+
const d = i.headers.get("Expires");
|
|
910
|
+
if (d != null && d.length) {
|
|
911
|
+
const O = Date.parse(d);
|
|
912
|
+
isNaN(O) || re(O - Date.now());
|
|
913
913
|
}
|
|
914
914
|
return i.json();
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
u &&
|
|
917
|
+
function he() {
|
|
918
|
+
u && Z && j === g.VERIFIED ? P() : J(g.EXPIRED, l.expired);
|
|
919
919
|
}
|
|
920
|
-
async function
|
|
921
|
-
let
|
|
920
|
+
async function je(i) {
|
|
921
|
+
let d = null;
|
|
922
922
|
if ("Worker" in window) {
|
|
923
923
|
try {
|
|
924
|
-
|
|
924
|
+
d = await Ve(i.challenge, i.salt, i.algorithm);
|
|
925
925
|
} catch (O) {
|
|
926
|
-
|
|
926
|
+
C(O);
|
|
927
927
|
}
|
|
928
|
-
if ((
|
|
929
|
-
return { data: i, solution:
|
|
928
|
+
if ((d == null ? void 0 : d.number) !== void 0)
|
|
929
|
+
return { data: i, solution: d };
|
|
930
930
|
}
|
|
931
931
|
return {
|
|
932
932
|
data: i,
|
|
933
|
-
solution: await $t(i.challenge, i.salt, i.algorithm,
|
|
933
|
+
solution: await $t(i.challenge, i.salt, i.algorithm, M).promise
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
async function
|
|
936
|
+
async function Ve(i, d, O, z = Math.ceil(v)) {
|
|
937
937
|
const Q = [];
|
|
938
|
-
if (
|
|
938
|
+
if (z < 1)
|
|
939
939
|
throw new Error("Wrong number of workers configured.");
|
|
940
|
-
if (
|
|
940
|
+
if (z > 16)
|
|
941
941
|
throw new Error("Too many workers. Max. 16 allowed workers.");
|
|
942
|
-
for (let
|
|
943
|
-
Q.push(new
|
|
944
|
-
const
|
|
945
|
-
const
|
|
946
|
-
return new Promise((
|
|
947
|
-
|
|
948
|
-
if (
|
|
949
|
-
for (const
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
}),
|
|
942
|
+
for (let S = 0; S < z; S++)
|
|
943
|
+
Q.push(new _t());
|
|
944
|
+
const de = Math.ceil(M / z), We = await Promise.all(Q.map((S, De) => {
|
|
945
|
+
const ge = De * de;
|
|
946
|
+
return new Promise((Be) => {
|
|
947
|
+
S.addEventListener("message", (be) => {
|
|
948
|
+
if (be.data)
|
|
949
|
+
for (const me of Q)
|
|
950
|
+
me !== S && me.postMessage({ type: "abort" });
|
|
951
|
+
Be(be.data);
|
|
952
|
+
}), S.postMessage({
|
|
953
953
|
payload: {
|
|
954
954
|
alg: O,
|
|
955
955
|
challenge: i,
|
|
956
|
-
max:
|
|
957
|
-
salt:
|
|
958
|
-
start:
|
|
956
|
+
max: ge + de,
|
|
957
|
+
salt: d,
|
|
958
|
+
start: ge
|
|
959
959
|
},
|
|
960
960
|
type: "work"
|
|
961
961
|
});
|
|
962
962
|
});
|
|
963
963
|
}));
|
|
964
|
-
for (const
|
|
965
|
-
|
|
966
|
-
return
|
|
967
|
-
}
|
|
968
|
-
function Ve() {
|
|
969
|
-
[m.UNVERIFIED, m.ERROR, m.EXPIRED].includes(G) ? F() : r(6, b = !0);
|
|
964
|
+
for (const S of Q)
|
|
965
|
+
S.terminate();
|
|
966
|
+
return We.find((S) => !!S) || null;
|
|
970
967
|
}
|
|
971
968
|
function Ze() {
|
|
972
|
-
|
|
969
|
+
[g.UNVERIFIED, g.ERROR, g.EXPIRED].includes(j) ? P() : r(6, h = !0);
|
|
973
970
|
}
|
|
974
|
-
function
|
|
975
|
-
|
|
971
|
+
function He() {
|
|
972
|
+
j === g.VERIFYING && alert(l.waitAlert);
|
|
976
973
|
}
|
|
977
|
-
function
|
|
978
|
-
|
|
974
|
+
function re(i) {
|
|
975
|
+
C("expire", i), clearTimeout(te), i < 1 ? he() : te = setTimeout(he, i);
|
|
979
976
|
}
|
|
980
|
-
function
|
|
981
|
-
|
|
977
|
+
function Fe(i) {
|
|
978
|
+
i.auto !== void 0 && (r(0, s = i.auto), s === "onload" && P()), i.expire !== void 0 && (re(i.expire), r(13, E = i.expire)), i.challenge && (ae(i.challenge), n = i.challenge), i.debug !== void 0 && r(12, f = !!i.debug), i.hidefooter !== void 0 && r(1, m = !!i.hidefooter), i.hidelogo !== void 0 && r(2, I = !!i.hidelogo), i.maxnumber !== void 0 && r(14, M = +i.maxnumber), i.mockerror !== void 0 && r(15, w = !!i.mockerror), i.name !== void 0 && r(3, G = i.name), i.refetchonexpire !== void 0 && r(16, Z = !!i.refetchonexpire), i.strings && r(25, o = i.strings), i.test !== void 0 && r(17, p = !!i.test), i.workers !== void 0 && r(18, v = +i.workers);
|
|
982
979
|
}
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
980
|
+
function J(i = g.UNVERIFIED, d = null) {
|
|
981
|
+
clearTimeout(te), r(6, h = !1), r(8, ee = d), r(4, F = null), r(5, j = i);
|
|
982
|
+
}
|
|
983
|
+
async function P() {
|
|
984
|
+
return J(g.VERIFYING), Ae().then((i) => (ae(i), C("challenge", i), je(i))).then(({ data: i, solution: d }) => {
|
|
985
|
+
if (C("solution", d), (d == null ? void 0 : d.number) !== void 0)
|
|
986
|
+
C("verified"), r(5, j = g.VERIFIED), r(6, h = !0), r(4, F = Se(i, d)), C("payload", F), lt().then(() => {
|
|
987
|
+
y("verified", { payload: F });
|
|
988
988
|
});
|
|
989
989
|
else
|
|
990
990
|
throw new Error("Unexpected result returned.");
|
|
991
991
|
}).catch((i) => {
|
|
992
|
-
|
|
992
|
+
C(i), r(5, j = g.ERROR), r(6, h = !1), r(8, ee = i.message);
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
|
-
function
|
|
996
|
-
|
|
995
|
+
function Pe() {
|
|
996
|
+
h = this.checked, r(6, h);
|
|
997
997
|
}
|
|
998
998
|
function Oe(i) {
|
|
999
|
-
|
|
1000
|
-
|
|
999
|
+
oe[i ? "unshift" : "push"](() => {
|
|
1000
|
+
$ = i, r(7, $);
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
1003
|
return t.$$set = (i) => {
|
|
1004
|
-
"auto" in i && r(0, s = i.auto), "challengeurl" in i && r(
|
|
1004
|
+
"auto" in i && r(0, s = i.auto), "challengeurl" in i && r(19, u = i.challengeurl), "challengejson" in i && r(20, a = i.challengejson), "debug" in i && r(12, f = i.debug), "expire" in i && r(13, E = i.expire), "hidefooter" in i && r(1, m = i.hidefooter), "hidelogo" in i && r(2, I = i.hidelogo), "name" in i && r(3, G = i.name), "maxnumber" in i && r(14, M = i.maxnumber), "mockerror" in i && r(15, w = i.mockerror), "refetchonexpire" in i && r(16, Z = i.refetchonexpire), "strings" in i && r(21, A = i.strings), "test" in i && r(17, p = i.test), "workers" in i && r(18, v = i.workers);
|
|
1005
1005
|
}, t.$$.update = () => {
|
|
1006
1006
|
t.$$.dirty[0] & /*challengejson*/
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1007
|
+
1048576 && (n = a ? xe(a) : void 0), t.$$.dirty[0] & /*strings*/
|
|
1008
|
+
2097152 && r(25, o = A ? xe(A) : {}), t.$$.dirty[0] & /*parsedStrings*/
|
|
1009
|
+
33554432 && r(9, l = {
|
|
1010
1010
|
error: "Verification failed. Try again later.",
|
|
1011
1011
|
expired: "Verification expired. Try again.",
|
|
1012
|
-
footer: `Protected by <a href="${
|
|
1012
|
+
footer: `Protected by <a href="${Ge}" target="_blank">ALTCHA</a>`,
|
|
1013
1013
|
label: "I'm not a robot",
|
|
1014
1014
|
verified: "Verified",
|
|
1015
1015
|
verifying: "Verifying...",
|
|
1016
1016
|
waitAlert: "Verifying... please wait.",
|
|
1017
1017
|
...o
|
|
1018
1018
|
}), t.$$.dirty[0] & /*payload, state*/
|
|
1019
|
-
48 &&
|
|
1019
|
+
48 && y("statechange", { payload: F, state: j });
|
|
1020
1020
|
}, [
|
|
1021
1021
|
s,
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
M,
|
|
1025
|
-
H,
|
|
1022
|
+
m,
|
|
1023
|
+
I,
|
|
1026
1024
|
G,
|
|
1027
|
-
|
|
1025
|
+
F,
|
|
1026
|
+
j,
|
|
1028
1027
|
h,
|
|
1029
|
-
|
|
1028
|
+
$,
|
|
1029
|
+
ee,
|
|
1030
1030
|
l,
|
|
1031
|
-
Ve,
|
|
1032
1031
|
Ze,
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
j,
|
|
1036
|
-
_,
|
|
1037
|
-
A,
|
|
1032
|
+
He,
|
|
1033
|
+
f,
|
|
1038
1034
|
E,
|
|
1035
|
+
M,
|
|
1036
|
+
w,
|
|
1037
|
+
Z,
|
|
1038
|
+
p,
|
|
1039
|
+
v,
|
|
1039
1040
|
u,
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
He,
|
|
1043
|
-
W,
|
|
1044
|
-
F,
|
|
1045
|
-
o,
|
|
1041
|
+
a,
|
|
1042
|
+
A,
|
|
1046
1043
|
Fe,
|
|
1044
|
+
J,
|
|
1045
|
+
P,
|
|
1046
|
+
o,
|
|
1047
|
+
Pe,
|
|
1047
1048
|
Oe
|
|
1048
1049
|
];
|
|
1049
1050
|
}
|
|
1050
|
-
class
|
|
1051
|
+
class Mt extends mt {
|
|
1051
1052
|
constructor(e) {
|
|
1052
|
-
super(),
|
|
1053
|
+
super(), gt(
|
|
1053
1054
|
this,
|
|
1054
1055
|
e,
|
|
1056
|
+
Tt,
|
|
1055
1057
|
Nt,
|
|
1056
|
-
|
|
1057
|
-
Ke,
|
|
1058
|
+
Xe,
|
|
1058
1059
|
{
|
|
1059
1060
|
auto: 0,
|
|
1060
|
-
challengeurl:
|
|
1061
|
-
challengejson:
|
|
1061
|
+
challengeurl: 19,
|
|
1062
|
+
challengejson: 20,
|
|
1062
1063
|
debug: 12,
|
|
1063
1064
|
expire: 13,
|
|
1064
1065
|
hidefooter: 1,
|
|
@@ -1066,14 +1067,15 @@ class jt extends bt {
|
|
|
1066
1067
|
name: 3,
|
|
1067
1068
|
maxnumber: 14,
|
|
1068
1069
|
mockerror: 15,
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1070
|
+
refetchonexpire: 16,
|
|
1071
|
+
strings: 21,
|
|
1072
|
+
test: 17,
|
|
1073
|
+
workers: 18,
|
|
1074
|
+
configure: 22,
|
|
1075
|
+
reset: 23,
|
|
1076
|
+
verify: 24
|
|
1075
1077
|
},
|
|
1076
|
-
|
|
1078
|
+
Et,
|
|
1077
1079
|
[-1, -1]
|
|
1078
1080
|
);
|
|
1079
1081
|
}
|
|
@@ -1081,91 +1083,97 @@ class jt extends bt {
|
|
|
1081
1083
|
return this.$$.ctx[0];
|
|
1082
1084
|
}
|
|
1083
1085
|
set auto(e) {
|
|
1084
|
-
this.$$set({ auto: e }),
|
|
1086
|
+
this.$$set({ auto: e }), x();
|
|
1085
1087
|
}
|
|
1086
1088
|
get challengeurl() {
|
|
1087
|
-
return this.$$.ctx[
|
|
1089
|
+
return this.$$.ctx[19];
|
|
1088
1090
|
}
|
|
1089
1091
|
set challengeurl(e) {
|
|
1090
|
-
this.$$set({ challengeurl: e }),
|
|
1092
|
+
this.$$set({ challengeurl: e }), x();
|
|
1091
1093
|
}
|
|
1092
1094
|
get challengejson() {
|
|
1093
|
-
return this.$$.ctx[
|
|
1095
|
+
return this.$$.ctx[20];
|
|
1094
1096
|
}
|
|
1095
1097
|
set challengejson(e) {
|
|
1096
|
-
this.$$set({ challengejson: e }),
|
|
1098
|
+
this.$$set({ challengejson: e }), x();
|
|
1097
1099
|
}
|
|
1098
1100
|
get debug() {
|
|
1099
1101
|
return this.$$.ctx[12];
|
|
1100
1102
|
}
|
|
1101
1103
|
set debug(e) {
|
|
1102
|
-
this.$$set({ debug: e }),
|
|
1104
|
+
this.$$set({ debug: e }), x();
|
|
1103
1105
|
}
|
|
1104
1106
|
get expire() {
|
|
1105
1107
|
return this.$$.ctx[13];
|
|
1106
1108
|
}
|
|
1107
1109
|
set expire(e) {
|
|
1108
|
-
this.$$set({ expire: e }),
|
|
1110
|
+
this.$$set({ expire: e }), x();
|
|
1109
1111
|
}
|
|
1110
1112
|
get hidefooter() {
|
|
1111
1113
|
return this.$$.ctx[1];
|
|
1112
1114
|
}
|
|
1113
1115
|
set hidefooter(e) {
|
|
1114
|
-
this.$$set({ hidefooter: e }),
|
|
1116
|
+
this.$$set({ hidefooter: e }), x();
|
|
1115
1117
|
}
|
|
1116
1118
|
get hidelogo() {
|
|
1117
1119
|
return this.$$.ctx[2];
|
|
1118
1120
|
}
|
|
1119
1121
|
set hidelogo(e) {
|
|
1120
|
-
this.$$set({ hidelogo: e }),
|
|
1122
|
+
this.$$set({ hidelogo: e }), x();
|
|
1121
1123
|
}
|
|
1122
1124
|
get name() {
|
|
1123
1125
|
return this.$$.ctx[3];
|
|
1124
1126
|
}
|
|
1125
1127
|
set name(e) {
|
|
1126
|
-
this.$$set({ name: e }),
|
|
1128
|
+
this.$$set({ name: e }), x();
|
|
1127
1129
|
}
|
|
1128
1130
|
get maxnumber() {
|
|
1129
1131
|
return this.$$.ctx[14];
|
|
1130
1132
|
}
|
|
1131
1133
|
set maxnumber(e) {
|
|
1132
|
-
this.$$set({ maxnumber: e }),
|
|
1134
|
+
this.$$set({ maxnumber: e }), x();
|
|
1133
1135
|
}
|
|
1134
1136
|
get mockerror() {
|
|
1135
1137
|
return this.$$.ctx[15];
|
|
1136
1138
|
}
|
|
1137
1139
|
set mockerror(e) {
|
|
1138
|
-
this.$$set({ mockerror: e }),
|
|
1140
|
+
this.$$set({ mockerror: e }), x();
|
|
1141
|
+
}
|
|
1142
|
+
get refetchonexpire() {
|
|
1143
|
+
return this.$$.ctx[16];
|
|
1144
|
+
}
|
|
1145
|
+
set refetchonexpire(e) {
|
|
1146
|
+
this.$$set({ refetchonexpire: e }), x();
|
|
1139
1147
|
}
|
|
1140
1148
|
get strings() {
|
|
1141
|
-
return this.$$.ctx[
|
|
1149
|
+
return this.$$.ctx[21];
|
|
1142
1150
|
}
|
|
1143
1151
|
set strings(e) {
|
|
1144
|
-
this.$$set({ strings: e }),
|
|
1152
|
+
this.$$set({ strings: e }), x();
|
|
1145
1153
|
}
|
|
1146
1154
|
get test() {
|
|
1147
|
-
return this.$$.ctx[
|
|
1155
|
+
return this.$$.ctx[17];
|
|
1148
1156
|
}
|
|
1149
1157
|
set test(e) {
|
|
1150
|
-
this.$$set({ test: e }),
|
|
1158
|
+
this.$$set({ test: e }), x();
|
|
1151
1159
|
}
|
|
1152
1160
|
get workers() {
|
|
1153
|
-
return this.$$.ctx[
|
|
1161
|
+
return this.$$.ctx[18];
|
|
1154
1162
|
}
|
|
1155
1163
|
set workers(e) {
|
|
1156
|
-
this.$$set({ workers: e }),
|
|
1164
|
+
this.$$set({ workers: e }), x();
|
|
1157
1165
|
}
|
|
1158
1166
|
get configure() {
|
|
1159
|
-
return this.$$.ctx[
|
|
1167
|
+
return this.$$.ctx[22];
|
|
1160
1168
|
}
|
|
1161
1169
|
get reset() {
|
|
1162
|
-
return this.$$.ctx[
|
|
1170
|
+
return this.$$.ctx[23];
|
|
1163
1171
|
}
|
|
1164
1172
|
get verify() {
|
|
1165
|
-
return this.$$.ctx[
|
|
1173
|
+
return this.$$.ctx[24];
|
|
1166
1174
|
}
|
|
1167
1175
|
}
|
|
1168
|
-
customElements.define("altcha-widget",
|
|
1176
|
+
customElements.define("altcha-widget", bt(Mt, { auto: {}, challengeurl: {}, challengejson: {}, debug: { type: "Boolean" }, expire: {}, hidefooter: { type: "Boolean" }, hidelogo: { type: "Boolean" }, name: {}, maxnumber: {}, mockerror: { type: "Boolean" }, refetchonexpire: { type: "Boolean" }, strings: {}, test: { type: "Boolean" }, workers: {} }, [], ["configure", "reset", "verify"], !1));
|
|
1169
1177
|
export {
|
|
1170
|
-
|
|
1178
|
+
Mt as Altcha
|
|
1171
1179
|
};
|