altcha 2.0.4 → 2.0.5
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.i18n.js +792 -792
- package/dist/altcha.i18n.umd.js +4 -4
- package/dist/altcha.js +703 -703
- package/dist/altcha.umd.cjs +4 -4
- package/dist_external/altcha.js +668 -668
- package/dist_external/altcha.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/altcha.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Fo = Object.defineProperty;
|
|
2
2
|
var Dn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var we = (e, t, r) =>
|
|
7
|
-
var se = (e, t, r) => (
|
|
8
|
-
const
|
|
9
|
-
`,
|
|
10
|
-
function
|
|
5
|
+
var Mo = (e, t, r) => t in e ? Fo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var we = (e, t, r) => Mo(e, typeof t != "symbol" ? t + "" : t, r), Ln = (e, t, r) => t.has(e) || Dn("Cannot " + r);
|
|
7
|
+
var se = (e, t, r) => (Ln(e, t, "read from private field"), r ? r.call(e) : t.get(e)), xr = (e, t, r) => t.has(e) ? Dn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), kr = (e, t, r, i) => (Ln(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
|
|
8
|
+
const Kn = `(function(){"use strict";const d=new TextEncoder;function p(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function b(e,t,r){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return p(await crypto.subtle.digest(r.toUpperCase(),d.encode(e+t)))}function w(e,t,r="SHA-256",n=1e6,s=0){const o=new AbortController,a=Date.now();return{promise:(async()=>{for(let c=s;c<=n;c+=1){if(o.signal.aborted)return null;if(await b(t,c,r)===e)return{number:c,took:Date.now()-a}}return null})(),controller:o}}function h(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function g(e,t=12){const r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e%256,e=Math.floor(e/256);return r}async function m(e,t="",r=1e6,n=0){const s="AES-GCM",o=new AbortController,a=Date.now(),l=async()=>{for(let u=n;u<=r;u+=1){if(o.signal.aborted||!c||!y)return null;try{const f=await crypto.subtle.decrypt({name:s,iv:g(u)},c,y);if(f)return{clearText:new TextDecoder().decode(f),took:Date.now()-a}}catch{}}return null};let c=null,y=null;try{y=h(e);const u=await crypto.subtle.digest("SHA-256",d.encode(t));c=await crypto.subtle.importKey("raw",u,s,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:l(),controller:o}}let i;onmessage=async e=>{const{type:t,payload:r,start:n,max:s}=e.data;let o=null;if(t==="abort")i==null||i.abort(),i=void 0;else if(t==="work"){if("obfuscated"in r){const{key:a,obfuscated:l}=r||{};o=await m(l,a,s,n)}else{const{algorithm:a,challenge:l,salt:c}=r||{};o=w(l,c,a,s,n)}i=o.controller,o.promise.then(a=>{self.postMessage(a&&{...a,worker:!0})})}}})();
|
|
9
|
+
`, Pn = typeof self < "u" && self.Blob && new Blob([Kn], { type: "text/javascript;charset=utf-8" });
|
|
10
|
+
function Vo(e) {
|
|
11
11
|
let t;
|
|
12
12
|
try {
|
|
13
|
-
if (t =
|
|
13
|
+
if (t = Pn && (self.URL || self.webkitURL).createObjectURL(Pn), !t) throw "";
|
|
14
14
|
const r = new Worker(t, {
|
|
15
15
|
name: e == null ? void 0 : e.name
|
|
16
16
|
});
|
|
@@ -19,7 +19,7 @@ function Mo(e) {
|
|
|
19
19
|
}), r;
|
|
20
20
|
} catch {
|
|
21
21
|
return new Worker(
|
|
22
|
-
"data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
22
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(Kn),
|
|
23
23
|
{
|
|
24
24
|
name: e == null ? void 0 : e.name
|
|
25
25
|
}
|
|
@@ -28,21 +28,21 @@ function Mo(e) {
|
|
|
28
28
|
t && (self.URL || self.webkitURL).revokeObjectURL(t);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
var
|
|
33
|
-
typeof window < "u" && ((
|
|
34
|
-
const
|
|
35
|
-
function
|
|
31
|
+
const Uo = "5";
|
|
32
|
+
var Jn;
|
|
33
|
+
typeof window < "u" && ((Jn = window.__svelte ?? (window.__svelte = {})).v ?? (Jn.v = /* @__PURE__ */ new Set())).add(Uo);
|
|
34
|
+
const jo = 1, qo = 4, Bo = 8, Ho = 16, Go = 1, Yo = 2, Fr = "[", Xn = "[!", Qn = "]", _t = {}, ue = Symbol(), Wo = "http://www.w3.org/1999/xhtml", On = !1;
|
|
35
|
+
function ei(e) {
|
|
36
36
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var ti = Array.isArray, Zo = Array.prototype.indexOf, zo = Array.from, Qt = Object.keys, Lt = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, Jo = Object.getOwnPropertyDescriptors, Ko = Object.prototype, Xo = Array.prototype, ri = Object.getPrototypeOf, Fn = Object.isExtensible;
|
|
39
39
|
const pt = () => {
|
|
40
40
|
};
|
|
41
|
-
function
|
|
41
|
+
function ni(e) {
|
|
42
42
|
for (var t = 0; t < e.length; t++)
|
|
43
43
|
e[t]();
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Qo(e, t, r = !1) {
|
|
46
46
|
return e === void 0 ? r ? (
|
|
47
47
|
/** @type {() => V} */
|
|
48
48
|
t()
|
|
@@ -51,35 +51,35 @@ function Xo(e, t, r = !1) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e;
|
|
53
53
|
}
|
|
54
|
-
const ye = 2,
|
|
55
|
-
function
|
|
54
|
+
const ye = 2, ii = 4, ar = 8, Mr = 16, Pe = 32, rt = 64, er = 128, he = 256, tr = 512, fe = 1024, Se = 2048, nt = 4096, mt = 8192, lr = 16384, ea = 32768, Vr = 65536, ta = 1 << 19, oi = 1 << 20, $r = 1 << 21, Nt = Symbol("$state"), ai = Symbol("legacy props"), ra = Symbol("");
|
|
55
|
+
function na(e) {
|
|
56
56
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function ia() {
|
|
59
59
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function oa(e) {
|
|
62
62
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function aa() {
|
|
65
65
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function la() {
|
|
68
68
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function sa(e) {
|
|
71
71
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ua() {
|
|
74
74
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function fa() {
|
|
77
77
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function ca() {
|
|
80
80
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function sr(e) {
|
|
83
83
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
84
84
|
}
|
|
85
85
|
let F = !1;
|
|
@@ -89,7 +89,7 @@ function gt(e) {
|
|
|
89
89
|
let O;
|
|
90
90
|
function He(e) {
|
|
91
91
|
if (e === null)
|
|
92
|
-
throw
|
|
92
|
+
throw sr(), _t;
|
|
93
93
|
return O = e;
|
|
94
94
|
}
|
|
95
95
|
function bt() {
|
|
@@ -101,21 +101,21 @@ function bt() {
|
|
|
101
101
|
function Y(e) {
|
|
102
102
|
if (F) {
|
|
103
103
|
if (/* @__PURE__ */ We(O) !== null)
|
|
104
|
-
throw
|
|
104
|
+
throw sr(), _t;
|
|
105
105
|
O = e;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function da() {
|
|
109
109
|
for (var e = 0, t = O; ; ) {
|
|
110
110
|
if (t.nodeType === 8) {
|
|
111
111
|
var r = (
|
|
112
112
|
/** @type {Comment} */
|
|
113
113
|
t.data
|
|
114
114
|
);
|
|
115
|
-
if (r ===
|
|
115
|
+
if (r === Qn) {
|
|
116
116
|
if (e === 0) return t;
|
|
117
117
|
e -= 1;
|
|
118
|
-
} else (r ===
|
|
118
|
+
} else (r === Fr || r === Xn) && (e += 1);
|
|
119
119
|
}
|
|
120
120
|
var i = (
|
|
121
121
|
/** @type {TemplateNode} */
|
|
@@ -124,18 +124,18 @@ function ca() {
|
|
|
124
124
|
t.remove(), t = i;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
let
|
|
127
|
+
let ha = !1;
|
|
128
128
|
function qe(e) {
|
|
129
129
|
if (typeof e != "object" || e === null || Nt in e)
|
|
130
130
|
return e;
|
|
131
|
-
const t =
|
|
132
|
-
if (t !==
|
|
131
|
+
const t = ri(e);
|
|
132
|
+
if (t !== Ko && t !== Xo)
|
|
133
133
|
return e;
|
|
134
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
134
|
+
var r = /* @__PURE__ */ new Map(), i = ti(e), a = /* @__PURE__ */ M(0), o = N, u = (s) => {
|
|
135
135
|
var c = N;
|
|
136
|
-
|
|
136
|
+
Te(o);
|
|
137
137
|
var d = s();
|
|
138
|
-
return
|
|
138
|
+
return Te(c), d;
|
|
139
139
|
};
|
|
140
140
|
return i && r.set("length", /* @__PURE__ */ M(
|
|
141
141
|
/** @type {any[]} */
|
|
@@ -145,7 +145,7 @@ function qe(e) {
|
|
|
145
145
|
e,
|
|
146
146
|
{
|
|
147
147
|
defineProperty(s, c, d) {
|
|
148
|
-
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) &&
|
|
148
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && ua();
|
|
149
149
|
var p = r.get(c);
|
|
150
150
|
return p === void 0 ? (p = u(() => /* @__PURE__ */ M(d.value)), r.set(c, p)) : b(
|
|
151
151
|
p,
|
|
@@ -158,7 +158,7 @@ function qe(e) {
|
|
|
158
158
|
c in s && (r.set(
|
|
159
159
|
c,
|
|
160
160
|
u(() => /* @__PURE__ */ M(ue))
|
|
161
|
-
),
|
|
161
|
+
), Ar(a));
|
|
162
162
|
else {
|
|
163
163
|
if (i && typeof c == "string") {
|
|
164
164
|
var p = (
|
|
@@ -167,7 +167,7 @@ function qe(e) {
|
|
|
167
167
|
), h = Number(c);
|
|
168
168
|
Number.isInteger(h) && h < p.v && b(p, h);
|
|
169
169
|
}
|
|
170
|
-
b(d, ue),
|
|
170
|
+
b(d, ue), Ar(a);
|
|
171
171
|
}
|
|
172
172
|
return !0;
|
|
173
173
|
},
|
|
@@ -204,7 +204,7 @@ function qe(e) {
|
|
|
204
204
|
if (c === Nt)
|
|
205
205
|
return !0;
|
|
206
206
|
var d = r.get(c), p = d !== void 0 && d.v !== ue || Reflect.has(s, c);
|
|
207
|
-
if (d !== void 0 ||
|
|
207
|
+
if (d !== void 0 || D !== null && (!p || (g = Qe(s, c)) != null && g.writable)) {
|
|
208
208
|
d === void 0 && (d = u(() => /* @__PURE__ */ M(p ? qe(s[c]) : ue)), r.set(c, d));
|
|
209
209
|
var h = l(d);
|
|
210
210
|
if (h === ue)
|
|
@@ -237,7 +237,7 @@ function qe(e) {
|
|
|
237
237
|
), ce = Number(c);
|
|
238
238
|
Number.isInteger(ce) && ce >= V.v && b(V, ce + 1);
|
|
239
239
|
}
|
|
240
|
-
|
|
240
|
+
Ar(a);
|
|
241
241
|
}
|
|
242
242
|
return !0;
|
|
243
243
|
},
|
|
@@ -252,32 +252,32 @@ function qe(e) {
|
|
|
252
252
|
return c;
|
|
253
253
|
},
|
|
254
254
|
setPrototypeOf() {
|
|
255
|
-
|
|
255
|
+
fa();
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ar(e, t = 1) {
|
|
261
261
|
b(e, e.v + t);
|
|
262
262
|
}
|
|
263
|
-
var
|
|
264
|
-
function
|
|
265
|
-
if (
|
|
266
|
-
|
|
263
|
+
var Mn, li, si, ui;
|
|
264
|
+
function Sr() {
|
|
265
|
+
if (Mn === void 0) {
|
|
266
|
+
Mn = window, li = /Firefox/.test(navigator.userAgent);
|
|
267
267
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
268
|
-
|
|
268
|
+
si = Qe(t, "firstChild").get, ui = Qe(t, "nextSibling").get, Fn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Fn(r) && (r.__t = void 0);
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function ur(e = "") {
|
|
272
272
|
return document.createTextNode(e);
|
|
273
273
|
}
|
|
274
274
|
// @__NO_SIDE_EFFECTS__
|
|
275
275
|
function pe(e) {
|
|
276
|
-
return
|
|
276
|
+
return si.call(e);
|
|
277
277
|
}
|
|
278
278
|
// @__NO_SIDE_EFFECTS__
|
|
279
279
|
function We(e) {
|
|
280
|
-
return
|
|
280
|
+
return ui.call(e);
|
|
281
281
|
}
|
|
282
282
|
function W(e, t) {
|
|
283
283
|
if (!F)
|
|
@@ -286,7 +286,7 @@ function W(e, t) {
|
|
|
286
286
|
/** @type {TemplateNode} */
|
|
287
287
|
/* @__PURE__ */ pe(O)
|
|
288
288
|
);
|
|
289
|
-
return r === null && (r = O.appendChild(
|
|
289
|
+
return r === null && (r = O.appendChild(ur())), He(r), r;
|
|
290
290
|
}
|
|
291
291
|
function $t(e, t) {
|
|
292
292
|
if (!F) {
|
|
@@ -310,35 +310,35 @@ function Z(e, t = 1, r = !1) {
|
|
|
310
310
|
return i;
|
|
311
311
|
var o = i == null ? void 0 : i.nodeType;
|
|
312
312
|
if (r && o !== 3) {
|
|
313
|
-
var u =
|
|
313
|
+
var u = ur();
|
|
314
314
|
return i === null ? a == null || a.after(u) : i.before(u), He(u), u;
|
|
315
315
|
}
|
|
316
316
|
return He(i), /** @type {TemplateNode} */
|
|
317
317
|
i;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function va(e) {
|
|
320
320
|
e.textContent = "";
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function fi(e) {
|
|
323
323
|
return e === this.v;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function ci(e, t) {
|
|
326
326
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
return !
|
|
328
|
+
function Ur(e) {
|
|
329
|
+
return !ci(e, this.v);
|
|
330
330
|
}
|
|
331
331
|
// @__NO_SIDE_EFFECTS__
|
|
332
|
-
function
|
|
332
|
+
function fr(e) {
|
|
333
333
|
var t = ye | Se, r = N !== null && (N.f & ye) !== 0 ? (
|
|
334
334
|
/** @type {Derived} */
|
|
335
335
|
N
|
|
336
336
|
) : null;
|
|
337
|
-
return
|
|
337
|
+
return D === null || r !== null && (r.f & he) !== 0 ? t |= he : D.f |= oi, {
|
|
338
338
|
ctx: oe,
|
|
339
339
|
deps: null,
|
|
340
340
|
effects: null,
|
|
341
|
-
equals:
|
|
341
|
+
equals: fi,
|
|
342
342
|
f: t,
|
|
343
343
|
fn: e,
|
|
344
344
|
reactions: null,
|
|
@@ -348,20 +348,20 @@ function ur(e) {
|
|
|
348
348
|
null
|
|
349
349
|
),
|
|
350
350
|
wv: 0,
|
|
351
|
-
parent: r ??
|
|
351
|
+
parent: r ?? D
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
354
|
// @__NO_SIDE_EFFECTS__
|
|
355
355
|
function St(e) {
|
|
356
|
-
const t = /* @__PURE__ */
|
|
357
|
-
return
|
|
356
|
+
const t = /* @__PURE__ */ fr(e);
|
|
357
|
+
return xi(t), t;
|
|
358
358
|
}
|
|
359
359
|
// @__NO_SIDE_EFFECTS__
|
|
360
|
-
function
|
|
361
|
-
const t = /* @__PURE__ */
|
|
362
|
-
return t.equals =
|
|
360
|
+
function ga(e) {
|
|
361
|
+
const t = /* @__PURE__ */ fr(e);
|
|
362
|
+
return t.equals = Ur, t;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function di(e) {
|
|
365
365
|
var t = e.effects;
|
|
366
366
|
if (t !== null) {
|
|
367
367
|
e.effects = null;
|
|
@@ -372,7 +372,7 @@ function fi(e) {
|
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function _a(e) {
|
|
376
376
|
for (var t = e.parent; t !== null; ) {
|
|
377
377
|
if ((t.f & ye) === 0)
|
|
378
378
|
return (
|
|
@@ -383,29 +383,29 @@ function ga(e) {
|
|
|
383
383
|
}
|
|
384
384
|
return null;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
var t, r =
|
|
388
|
-
Ye(
|
|
386
|
+
function hi(e) {
|
|
387
|
+
var t, r = D;
|
|
388
|
+
Ye(_a(e));
|
|
389
389
|
try {
|
|
390
|
-
|
|
390
|
+
di(e), t = Ii(e);
|
|
391
391
|
} finally {
|
|
392
392
|
Ye(r);
|
|
393
393
|
}
|
|
394
394
|
return t;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
var t =
|
|
398
|
-
Ee(e, r), e.equals(t) || (e.v = t, e.wv =
|
|
396
|
+
function vi(e) {
|
|
397
|
+
var t = hi(e), r = (Be || (e.f & he) !== 0) && e.deps !== null ? nt : fe;
|
|
398
|
+
Ee(e, r), e.equals(t) || (e.v = t, e.wv = Ai());
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
|
|
400
|
+
function pa(e) {
|
|
401
|
+
D === null && N === null && oa(), N !== null && (N.f & he) !== 0 && D === null && ia(), Mt && na();
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function ma(e, t) {
|
|
404
404
|
var r = t.last;
|
|
405
405
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
406
406
|
}
|
|
407
407
|
function it(e, t, r, i = !0) {
|
|
408
|
-
var a =
|
|
408
|
+
var a = D, o = {
|
|
409
409
|
ctx: oe,
|
|
410
410
|
deps: null,
|
|
411
411
|
nodes_start: null,
|
|
@@ -423,13 +423,13 @@ function it(e, t, r, i = !0) {
|
|
|
423
423
|
};
|
|
424
424
|
if (r)
|
|
425
425
|
try {
|
|
426
|
-
|
|
426
|
+
Gr(o), o.f |= ea;
|
|
427
427
|
} catch (c) {
|
|
428
428
|
throw Ge(o), c;
|
|
429
429
|
}
|
|
430
|
-
else t !== null &&
|
|
431
|
-
var u = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (
|
|
432
|
-
if (!u && i && (a !== null &&
|
|
430
|
+
else t !== null && dr(o);
|
|
431
|
+
var u = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (oi | er)) === 0;
|
|
432
|
+
if (!u && i && (a !== null && ma(o, a), N !== null && (N.f & ye) !== 0)) {
|
|
433
433
|
var s = (
|
|
434
434
|
/** @type {Derived} */
|
|
435
435
|
N
|
|
@@ -438,13 +438,13 @@ function it(e, t, r, i = !0) {
|
|
|
438
438
|
}
|
|
439
439
|
return o;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
const t = it(
|
|
441
|
+
function jr(e) {
|
|
442
|
+
const t = it(ar, null, !1);
|
|
443
443
|
return Ee(t, fe), t.teardown = e, t;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
|
|
447
|
-
var t =
|
|
445
|
+
function Tr(e) {
|
|
446
|
+
pa();
|
|
447
|
+
var t = D !== null && (D.f & Pe) !== 0 && oe !== null && !oe.m;
|
|
448
448
|
if (t) {
|
|
449
449
|
var r = (
|
|
450
450
|
/** @type {ComponentContext} */
|
|
@@ -452,64 +452,64 @@ function Sr(e) {
|
|
|
452
452
|
);
|
|
453
453
|
(r.e ?? (r.e = [])).push({
|
|
454
454
|
fn: e,
|
|
455
|
-
effect:
|
|
455
|
+
effect: D,
|
|
456
456
|
reaction: N
|
|
457
457
|
});
|
|
458
458
|
} else {
|
|
459
|
-
var i =
|
|
459
|
+
var i = qr(e);
|
|
460
460
|
return i;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function ba(e) {
|
|
464
464
|
const t = it(rt, e, !0);
|
|
465
465
|
return () => {
|
|
466
466
|
Ge(t);
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function wa(e) {
|
|
470
470
|
const t = it(rt, e, !0);
|
|
471
471
|
return (r = {}) => new Promise((i) => {
|
|
472
|
-
r.outro ?
|
|
472
|
+
r.outro ? Dr(t, () => {
|
|
473
473
|
Ge(t), i(void 0);
|
|
474
474
|
}) : (Ge(t), i(void 0));
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
|
-
function jr(e) {
|
|
478
|
-
return it(ri, e, !1);
|
|
479
|
-
}
|
|
480
477
|
function qr(e) {
|
|
481
|
-
return it(
|
|
478
|
+
return it(ii, e, !1);
|
|
479
|
+
}
|
|
480
|
+
function Br(e) {
|
|
481
|
+
return it(ar, e, !0);
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Re(e, t = [], r = fr) {
|
|
484
484
|
const i = t.map(r);
|
|
485
|
-
return
|
|
485
|
+
return gi(() => e(...i.map(l)));
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
return it(
|
|
487
|
+
function gi(e, t = 0) {
|
|
488
|
+
return it(ar | Mr | t, e, !0);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return it(
|
|
490
|
+
function Nr(e, t = !0) {
|
|
491
|
+
return it(ar | Pe, e, !0, t);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function _i(e) {
|
|
494
494
|
var t = e.teardown;
|
|
495
495
|
if (t !== null) {
|
|
496
496
|
const r = Mt, i = N;
|
|
497
|
-
|
|
497
|
+
Un(!0), Te(null);
|
|
498
498
|
try {
|
|
499
499
|
t.call(null);
|
|
500
500
|
} finally {
|
|
501
|
-
|
|
501
|
+
Un(r), Te(i);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function pi(e, t = !1) {
|
|
506
506
|
var r = e.first;
|
|
507
507
|
for (e.first = e.last = null; r !== null; ) {
|
|
508
508
|
var i = r.next;
|
|
509
509
|
(r.f & rt) !== 0 ? r.parent = null : Ge(r, t), r = i;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function ya(e) {
|
|
513
513
|
for (var t = e.first; t !== null; ) {
|
|
514
514
|
var r = t.next;
|
|
515
515
|
(t.f & Pe) === 0 && Ge(t), t = r;
|
|
@@ -517,20 +517,20 @@ function wa(e) {
|
|
|
517
517
|
}
|
|
518
518
|
function Ge(e, t = !0) {
|
|
519
519
|
var r = !1;
|
|
520
|
-
(t || (e.f &
|
|
520
|
+
(t || (e.f & ta) !== 0) && e.nodes_start !== null && (mi(
|
|
521
521
|
e.nodes_start,
|
|
522
522
|
/** @type {TemplateNode} */
|
|
523
523
|
e.nodes_end
|
|
524
|
-
), r = !0),
|
|
524
|
+
), r = !0), pi(e, t && !r), or(e, 0), Ee(e, lr);
|
|
525
525
|
var i = e.transitions;
|
|
526
526
|
if (i !== null)
|
|
527
527
|
for (const o of i)
|
|
528
528
|
o.stop();
|
|
529
|
-
|
|
529
|
+
_i(e);
|
|
530
530
|
var a = e.parent;
|
|
531
|
-
a !== null && a.first !== null &&
|
|
531
|
+
a !== null && a.first !== null && bi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function mi(e, t) {
|
|
534
534
|
for (; e !== null; ) {
|
|
535
535
|
var r = e === t ? null : (
|
|
536
536
|
/** @type {TemplateNode} */
|
|
@@ -539,17 +539,17 @@ function _i(e, t) {
|
|
|
539
539
|
e.remove(), e = r;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function bi(e) {
|
|
543
543
|
var t = e.parent, r = e.prev, i = e.next;
|
|
544
544
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Dr(e, t) {
|
|
547
547
|
var r = [];
|
|
548
|
-
|
|
548
|
+
wi(e, r, !0), Ea(r, () => {
|
|
549
549
|
Ge(e), t && t();
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Ea(e, t) {
|
|
553
553
|
var r = e.length;
|
|
554
554
|
if (r > 0) {
|
|
555
555
|
var i = () => --r || t();
|
|
@@ -558,75 +558,75 @@ function ya(e, t) {
|
|
|
558
558
|
} else
|
|
559
559
|
t();
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function wi(e, t, r) {
|
|
562
562
|
if ((e.f & mt) === 0) {
|
|
563
563
|
if (e.f ^= mt, e.transitions !== null)
|
|
564
564
|
for (const u of e.transitions)
|
|
565
565
|
(u.is_global || r) && t.push(u);
|
|
566
566
|
for (var i = e.first; i !== null; ) {
|
|
567
|
-
var a = i.next, o = (i.f &
|
|
568
|
-
|
|
567
|
+
var a = i.next, o = (i.f & Vr) !== 0 || (i.f & Pe) !== 0;
|
|
568
|
+
wi(i, t, o ? r : !1), i = a;
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
|
|
572
|
+
function Vn(e) {
|
|
573
|
+
yi(e, !0);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function yi(e, t) {
|
|
576
576
|
if ((e.f & mt) !== 0) {
|
|
577
|
-
e.f ^= mt, (e.f & fe) === 0 && (e.f ^= fe), Vt(e) && (Ee(e, Se),
|
|
577
|
+
e.f ^= mt, (e.f & fe) === 0 && (e.f ^= fe), Vt(e) && (Ee(e, Se), dr(e));
|
|
578
578
|
for (var r = e.first; r !== null; ) {
|
|
579
|
-
var i = r.next, a = (r.f &
|
|
580
|
-
|
|
579
|
+
var i = r.next, a = (r.f & Vr) !== 0 || (r.f & Pe) !== 0;
|
|
580
|
+
yi(r, a ? t : !1), r = i;
|
|
581
581
|
}
|
|
582
582
|
if (e.transitions !== null)
|
|
583
583
|
for (const o of e.transitions)
|
|
584
584
|
(o.is_global || t) && o.in();
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
const
|
|
587
|
+
const Ca = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
|
|
588
588
|
let Pt = [], Ot = [];
|
|
589
|
-
function
|
|
589
|
+
function Ei() {
|
|
590
590
|
var e = Pt;
|
|
591
|
-
Pt = [],
|
|
591
|
+
Pt = [], ni(e);
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Ci() {
|
|
594
594
|
var e = Ot;
|
|
595
|
-
Ot = [],
|
|
595
|
+
Ot = [], ni(e);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
Pt.length === 0 && queueMicrotask(
|
|
597
|
+
function Hr(e) {
|
|
598
|
+
Pt.length === 0 && queueMicrotask(Ei), Pt.push(e);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
Ot.length === 0 &&
|
|
600
|
+
function xa(e) {
|
|
601
|
+
Ot.length === 0 && Ca(Ci), Ot.push(e);
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
Pt.length > 0 &&
|
|
603
|
+
function ka() {
|
|
604
|
+
Pt.length > 0 && Ei(), Ot.length > 0 && Ci();
|
|
605
605
|
}
|
|
606
|
-
let
|
|
607
|
-
function
|
|
606
|
+
let Jt = !1, rr = !1, nr = null, et = !1, Mt = !1;
|
|
607
|
+
function Un(e) {
|
|
608
608
|
Mt = e;
|
|
609
609
|
}
|
|
610
|
-
let
|
|
611
|
-
let N = null,
|
|
612
|
-
function
|
|
610
|
+
let Dt = [];
|
|
611
|
+
let N = null, Ie = !1;
|
|
612
|
+
function Te(e) {
|
|
613
613
|
N = e;
|
|
614
614
|
}
|
|
615
|
-
let
|
|
615
|
+
let D = null;
|
|
616
616
|
function Ye(e) {
|
|
617
|
-
|
|
617
|
+
D = e;
|
|
618
618
|
}
|
|
619
619
|
let ie = null;
|
|
620
|
-
function
|
|
621
|
-
N !== null && N.f &
|
|
620
|
+
function xi(e) {
|
|
621
|
+
N !== null && N.f & $r && (ie === null ? ie = [e] : ie.push(e));
|
|
622
622
|
}
|
|
623
623
|
let ne = null, de = 0, ge = null;
|
|
624
|
-
function
|
|
624
|
+
function Aa(e) {
|
|
625
625
|
ge = e;
|
|
626
626
|
}
|
|
627
|
-
let
|
|
628
|
-
function
|
|
629
|
-
return ++
|
|
627
|
+
let ki = 1, ir = 0, Be = !1;
|
|
628
|
+
function Ai() {
|
|
629
|
+
return ++ki;
|
|
630
630
|
}
|
|
631
631
|
function Vt(e) {
|
|
632
632
|
var h;
|
|
@@ -636,7 +636,7 @@ function Vt(e) {
|
|
|
636
636
|
if ((t & nt) !== 0) {
|
|
637
637
|
var r = e.deps, i = (t & he) !== 0;
|
|
638
638
|
if (r !== null) {
|
|
639
|
-
var a, o, u = (t &
|
|
639
|
+
var a, o, u = (t & tr) !== 0, s = i && D !== null && !Be, c = r.length;
|
|
640
640
|
if (u || s) {
|
|
641
641
|
var d = (
|
|
642
642
|
/** @type {Derived} */
|
|
@@ -644,68 +644,68 @@ function Vt(e) {
|
|
|
644
644
|
), p = d.parent;
|
|
645
645
|
for (a = 0; a < c; a++)
|
|
646
646
|
o = r[a], (u || !((h = o == null ? void 0 : o.reactions) != null && h.includes(d))) && (o.reactions ?? (o.reactions = [])).push(d);
|
|
647
|
-
u && (d.f ^=
|
|
647
|
+
u && (d.f ^= tr), s && p !== null && (p.f & he) === 0 && (d.f ^= he);
|
|
648
648
|
}
|
|
649
649
|
for (a = 0; a < c; a++)
|
|
650
650
|
if (o = r[a], Vt(
|
|
651
651
|
/** @type {Derived} */
|
|
652
652
|
o
|
|
653
|
-
) &&
|
|
653
|
+
) && vi(
|
|
654
654
|
/** @type {Derived} */
|
|
655
655
|
o
|
|
656
656
|
), o.wv > e.wv)
|
|
657
657
|
return !0;
|
|
658
658
|
}
|
|
659
|
-
(!i ||
|
|
659
|
+
(!i || D !== null && !Be) && Ee(e, fe);
|
|
660
660
|
}
|
|
661
661
|
return !1;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Ra(e, t) {
|
|
664
664
|
for (var r = t; r !== null; ) {
|
|
665
|
-
if ((r.f &
|
|
665
|
+
if ((r.f & er) !== 0)
|
|
666
666
|
try {
|
|
667
667
|
r.fn(e);
|
|
668
668
|
return;
|
|
669
669
|
} catch {
|
|
670
|
-
r.f ^=
|
|
670
|
+
r.f ^= er;
|
|
671
671
|
}
|
|
672
672
|
r = r.parent;
|
|
673
673
|
}
|
|
674
|
-
throw
|
|
674
|
+
throw Jt = !1, e;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
return (e.f &
|
|
676
|
+
function jn(e) {
|
|
677
|
+
return (e.f & lr) === 0 && (e.parent === null || (e.parent.f & er) === 0);
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
if (
|
|
681
|
-
if (r === null && (
|
|
679
|
+
function cr(e, t, r, i) {
|
|
680
|
+
if (Jt) {
|
|
681
|
+
if (r === null && (Jt = !1), jn(t))
|
|
682
682
|
throw e;
|
|
683
683
|
return;
|
|
684
684
|
}
|
|
685
|
-
if (r !== null && (
|
|
685
|
+
if (r !== null && (Jt = !0), Ra(e, t), jn(t))
|
|
686
686
|
throw e;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function Ri(e, t, r = !0) {
|
|
689
689
|
var i = e.reactions;
|
|
690
690
|
if (i !== null)
|
|
691
691
|
for (var a = 0; a < i.length; a++) {
|
|
692
692
|
var o = i[a];
|
|
693
|
-
ie != null && ie.includes(e) || ((o.f & ye) !== 0 ?
|
|
693
|
+
ie != null && ie.includes(e) || ((o.f & ye) !== 0 ? Ri(
|
|
694
694
|
/** @type {Derived} */
|
|
695
695
|
o,
|
|
696
696
|
t,
|
|
697
697
|
!1
|
|
698
|
-
) : t === o && (r ? Ee(o, Se) : (o.f & fe) !== 0 && Ee(o, nt),
|
|
698
|
+
) : t === o && (r ? Ee(o, Se) : (o.f & fe) !== 0 && Ee(o, nt), dr(
|
|
699
699
|
/** @type {Effect} */
|
|
700
700
|
o
|
|
701
701
|
)));
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function Ii(e) {
|
|
705
705
|
var y;
|
|
706
|
-
var t = ne, r = de, i = ge, a = N, o = Be, u = ie, s = oe, c =
|
|
706
|
+
var t = ne, r = de, i = ge, a = N, o = Be, u = ie, s = oe, c = Ie, d = e.f;
|
|
707
707
|
ne = /** @type {null | Value[]} */
|
|
708
|
-
null, de = 0, ge = null, Be = (d & he) !== 0 && (
|
|
708
|
+
null, de = 0, ge = null, Be = (d & he) !== 0 && (Ie || !et || N === null), N = (d & (Pe | rt)) === 0 ? e : null, ie = null, qn(e.ctx), Ie = !1, ir++, e.f |= $r;
|
|
709
709
|
try {
|
|
710
710
|
var p = (
|
|
711
711
|
/** @type {Function} */
|
|
@@ -713,7 +713,7 @@ function Ai(e) {
|
|
|
713
713
|
), h = e.deps;
|
|
714
714
|
if (ne !== null) {
|
|
715
715
|
var g;
|
|
716
|
-
if (
|
|
716
|
+
if (or(e, de), h !== null && de > 0)
|
|
717
717
|
for (h.length = de + ne.length, g = 0; g < ne.length; g++)
|
|
718
718
|
h[de + g] = ne[g];
|
|
719
719
|
else
|
|
@@ -721,25 +721,25 @@ function Ai(e) {
|
|
|
721
721
|
if (!Be)
|
|
722
722
|
for (g = de; g < h.length; g++)
|
|
723
723
|
((y = h[g]).reactions ?? (y.reactions = [])).push(e);
|
|
724
|
-
} else h !== null && de < h.length && (
|
|
725
|
-
if (
|
|
724
|
+
} else h !== null && de < h.length && (or(e, de), h.length = de);
|
|
725
|
+
if (Li() && ge !== null && !Ie && h !== null && (e.f & (ye | nt | Se)) === 0)
|
|
726
726
|
for (g = 0; g < /** @type {Source[]} */
|
|
727
727
|
ge.length; g++)
|
|
728
|
-
|
|
728
|
+
Ri(
|
|
729
729
|
ge[g],
|
|
730
730
|
/** @type {Effect} */
|
|
731
731
|
e
|
|
732
732
|
);
|
|
733
|
-
return a !== null && a !== e && (
|
|
733
|
+
return a !== null && a !== e && (ir++, ge !== null && (i === null ? i = ge : i.push(.../** @type {Source[]} */
|
|
734
734
|
ge))), p;
|
|
735
735
|
} finally {
|
|
736
|
-
ne = t, de = r, ge = i, N = a, Be = o, ie = u,
|
|
736
|
+
ne = t, de = r, ge = i, N = a, Be = o, ie = u, qn(s), Ie = c, e.f ^= $r;
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
function Ia(e, t) {
|
|
740
740
|
let r = t.reactions;
|
|
741
741
|
if (r !== null) {
|
|
742
|
-
var i =
|
|
742
|
+
var i = Zo.call(r, e);
|
|
743
743
|
if (i !== -1) {
|
|
744
744
|
var a = r.length - 1;
|
|
745
745
|
a === 0 ? r = t.reactions = null : (r[i] = r[a], r.pop());
|
|
@@ -748,84 +748,84 @@ function Ia(e, t) {
|
|
|
748
748
|
r === null && (t.f & ye) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
749
749
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
750
750
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
751
|
-
(ne === null || !ne.includes(t)) && (Ee(t, nt), (t.f & (he |
|
|
751
|
+
(ne === null || !ne.includes(t)) && (Ee(t, nt), (t.f & (he | tr)) === 0 && (t.f ^= tr), di(
|
|
752
752
|
/** @type {Derived} **/
|
|
753
753
|
t
|
|
754
|
-
),
|
|
754
|
+
), or(
|
|
755
755
|
/** @type {Derived} **/
|
|
756
756
|
t,
|
|
757
757
|
0
|
|
758
758
|
));
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function or(e, t) {
|
|
761
761
|
var r = e.deps;
|
|
762
762
|
if (r !== null)
|
|
763
763
|
for (var i = t; i < r.length; i++)
|
|
764
764
|
Ia(e, r[i]);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Gr(e) {
|
|
767
767
|
var t = e.f;
|
|
768
|
-
if ((t &
|
|
768
|
+
if ((t & lr) === 0) {
|
|
769
769
|
Ee(e, fe);
|
|
770
|
-
var r =
|
|
771
|
-
|
|
770
|
+
var r = D, i = oe, a = et;
|
|
771
|
+
D = e, et = !0;
|
|
772
772
|
try {
|
|
773
|
-
(t &
|
|
774
|
-
var o =
|
|
775
|
-
e.teardown = typeof o == "function" ? o : null, e.wv =
|
|
773
|
+
(t & Mr) !== 0 ? ya(e) : pi(e), _i(e);
|
|
774
|
+
var o = Ii(e);
|
|
775
|
+
e.teardown = typeof o == "function" ? o : null, e.wv = ki;
|
|
776
776
|
var u = e.deps, s;
|
|
777
|
-
|
|
777
|
+
On && ha && e.f & Se;
|
|
778
778
|
} catch (c) {
|
|
779
|
-
|
|
779
|
+
cr(c, e, r, i || e.ctx);
|
|
780
780
|
} finally {
|
|
781
|
-
et = a,
|
|
781
|
+
et = a, D = r;
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function $a() {
|
|
786
786
|
try {
|
|
787
|
-
|
|
787
|
+
aa();
|
|
788
788
|
} catch (e) {
|
|
789
|
-
if (
|
|
790
|
-
|
|
789
|
+
if (nr !== null)
|
|
790
|
+
cr(e, nr, null);
|
|
791
791
|
else
|
|
792
792
|
throw e;
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function $i() {
|
|
796
796
|
var e = et;
|
|
797
797
|
try {
|
|
798
798
|
var t = 0;
|
|
799
|
-
for (et = !0;
|
|
800
|
-
t++ > 1e3 &&
|
|
801
|
-
var r =
|
|
802
|
-
|
|
799
|
+
for (et = !0; Dt.length > 0; ) {
|
|
800
|
+
t++ > 1e3 && $a();
|
|
801
|
+
var r = Dt, i = r.length;
|
|
802
|
+
Dt = [];
|
|
803
803
|
for (var a = 0; a < i; a++) {
|
|
804
|
-
var o =
|
|
805
|
-
|
|
804
|
+
var o = Ta(r[a]);
|
|
805
|
+
Sa(o);
|
|
806
806
|
}
|
|
807
807
|
Ft.clear();
|
|
808
808
|
}
|
|
809
809
|
} finally {
|
|
810
|
-
|
|
810
|
+
rr = !1, et = e, nr = null;
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Sa(e) {
|
|
814
814
|
var t = e.length;
|
|
815
815
|
if (t !== 0)
|
|
816
816
|
for (var r = 0; r < t; r++) {
|
|
817
817
|
var i = e[r];
|
|
818
|
-
if ((i.f & (
|
|
818
|
+
if ((i.f & (lr | mt)) === 0)
|
|
819
819
|
try {
|
|
820
|
-
Vt(i) && (
|
|
820
|
+
Vt(i) && (Gr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? bi(i) : i.fn = null));
|
|
821
821
|
} catch (a) {
|
|
822
|
-
|
|
822
|
+
cr(a, i, null, i.ctx);
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
|
|
828
|
-
for (var t =
|
|
826
|
+
function dr(e) {
|
|
827
|
+
rr || (rr = !0, queueMicrotask($i));
|
|
828
|
+
for (var t = nr = e; t.parent !== null; ) {
|
|
829
829
|
t = t.parent;
|
|
830
830
|
var r = t.f;
|
|
831
831
|
if ((r & (rt | Pe)) !== 0) {
|
|
@@ -833,21 +833,21 @@ function cr(e) {
|
|
|
833
833
|
t.f ^= fe;
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
|
-
|
|
836
|
+
Dt.push(t);
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function Ta(e) {
|
|
839
839
|
for (var t = [], r = e; r !== null; ) {
|
|
840
840
|
var i = r.f, a = (i & (Pe | rt)) !== 0, o = a && (i & fe) !== 0;
|
|
841
841
|
if (!o && (i & mt) === 0) {
|
|
842
|
-
if ((i &
|
|
842
|
+
if ((i & ii) !== 0)
|
|
843
843
|
t.push(r);
|
|
844
844
|
else if (a)
|
|
845
845
|
r.f ^= fe;
|
|
846
846
|
else
|
|
847
847
|
try {
|
|
848
|
-
Vt(r) &&
|
|
848
|
+
Vt(r) && Gr(r);
|
|
849
849
|
} catch (c) {
|
|
850
|
-
|
|
850
|
+
cr(c, r, null, r.ctx);
|
|
851
851
|
}
|
|
852
852
|
var u = r.first;
|
|
853
853
|
if (u !== null) {
|
|
@@ -863,23 +863,23 @@ function Sa(e) {
|
|
|
863
863
|
}
|
|
864
864
|
function A(e) {
|
|
865
865
|
for (var t; ; ) {
|
|
866
|
-
if (
|
|
866
|
+
if (ka(), Dt.length === 0)
|
|
867
867
|
return (
|
|
868
868
|
/** @type {T} */
|
|
869
869
|
t
|
|
870
870
|
);
|
|
871
|
-
|
|
871
|
+
rr = !0, $i();
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
|
-
async function
|
|
874
|
+
async function Rr() {
|
|
875
875
|
await Promise.resolve(), A();
|
|
876
876
|
}
|
|
877
877
|
function l(e) {
|
|
878
878
|
var t = e.f, r = (t & ye) !== 0;
|
|
879
|
-
if (N !== null && !
|
|
879
|
+
if (N !== null && !Ie) {
|
|
880
880
|
if (!(ie != null && ie.includes(e))) {
|
|
881
881
|
var i = N.deps;
|
|
882
|
-
e.rv <
|
|
882
|
+
e.rv < ir && (e.rv = ir, ne === null && i !== null && i[de] === e ? de++ : ne === null ? ne = [e] : (!Be || !ne.includes(e)) && ne.push(e));
|
|
883
883
|
}
|
|
884
884
|
} else if (r && /** @type {Derived} */
|
|
885
885
|
e.deps === null && /** @type {Derived} */
|
|
@@ -891,28 +891,28 @@ function l(e) {
|
|
|
891
891
|
o !== null && (o.f & he) === 0 && (a.f ^= he);
|
|
892
892
|
}
|
|
893
893
|
return r && (a = /** @type {Derived} */
|
|
894
|
-
e, Vt(a) &&
|
|
894
|
+
e, Vt(a) && vi(a)), Mt && Ft.has(e) ? Ft.get(e) : e.v;
|
|
895
895
|
}
|
|
896
896
|
function tt(e) {
|
|
897
|
-
var t =
|
|
897
|
+
var t = Ie;
|
|
898
898
|
try {
|
|
899
|
-
return
|
|
899
|
+
return Ie = !0, e();
|
|
900
900
|
} finally {
|
|
901
|
-
|
|
901
|
+
Ie = t;
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
const
|
|
904
|
+
const Na = -7169;
|
|
905
905
|
function Ee(e, t) {
|
|
906
|
-
e.f = e.f &
|
|
906
|
+
e.f = e.f & Na | t;
|
|
907
907
|
}
|
|
908
908
|
const Ft = /* @__PURE__ */ new Map();
|
|
909
|
-
function
|
|
909
|
+
function Si(e, t) {
|
|
910
910
|
var r = {
|
|
911
911
|
f: 0,
|
|
912
912
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
913
913
|
v: e,
|
|
914
914
|
reactions: null,
|
|
915
|
-
equals:
|
|
915
|
+
equals: fi,
|
|
916
916
|
rv: 0,
|
|
917
917
|
wv: 0
|
|
918
918
|
};
|
|
@@ -920,49 +920,49 @@ function Ri(e, t) {
|
|
|
920
920
|
}
|
|
921
921
|
// @__NO_SIDE_EFFECTS__
|
|
922
922
|
function M(e, t) {
|
|
923
|
-
const r =
|
|
924
|
-
return
|
|
923
|
+
const r = Si(e);
|
|
924
|
+
return xi(r), r;
|
|
925
925
|
}
|
|
926
926
|
// @__NO_SIDE_EFFECTS__
|
|
927
|
-
function
|
|
928
|
-
const r =
|
|
929
|
-
return t || (r.equals =
|
|
927
|
+
function Yr(e, t = !1) {
|
|
928
|
+
const r = Si(e);
|
|
929
|
+
return t || (r.equals = Ur), r;
|
|
930
930
|
}
|
|
931
931
|
function b(e, t, r = !1) {
|
|
932
|
-
N !== null && !
|
|
932
|
+
N !== null && !Ie && Li() && (N.f & (ye | Mr)) !== 0 && !(ie != null && ie.includes(e)) && ca();
|
|
933
933
|
let i = r ? qe(t) : t;
|
|
934
|
-
return
|
|
934
|
+
return Da(e, i);
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function Da(e, t) {
|
|
937
937
|
if (!e.equals(t)) {
|
|
938
938
|
var r = e.v;
|
|
939
|
-
Mt ? Ft.set(e, t) : Ft.set(e, r), e.v = t, (e.f & ye) !== 0 && ((e.f & Se) !== 0 &&
|
|
939
|
+
Mt ? Ft.set(e, t) : Ft.set(e, r), e.v = t, (e.f & ye) !== 0 && ((e.f & Se) !== 0 && hi(
|
|
940
940
|
/** @type {Derived} */
|
|
941
941
|
e
|
|
942
|
-
), Ee(e, (e.f & he) === 0 ? fe : nt)), e.wv =
|
|
942
|
+
), Ee(e, (e.f & he) === 0 ? fe : nt)), e.wv = Ai(), Ti(e, Se), D !== null && (D.f & fe) !== 0 && (D.f & (Pe | rt)) === 0 && (ge === null ? Aa([e]) : ge.push(e));
|
|
943
943
|
}
|
|
944
944
|
return t;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function Ti(e, t) {
|
|
947
947
|
var r = e.reactions;
|
|
948
948
|
if (r !== null)
|
|
949
949
|
for (var i = r.length, a = 0; a < i; a++) {
|
|
950
950
|
var o = r[a], u = o.f;
|
|
951
|
-
(u & Se) === 0 && (Ee(o, t), (u & (fe | he)) !== 0 && ((u & ye) !== 0 ?
|
|
951
|
+
(u & Se) === 0 && (Ee(o, t), (u & (fe | he)) !== 0 && ((u & ye) !== 0 ? Ti(
|
|
952
952
|
/** @type {Derived} */
|
|
953
953
|
o,
|
|
954
954
|
nt
|
|
955
|
-
) :
|
|
955
|
+
) : dr(
|
|
956
956
|
/** @type {Effect} */
|
|
957
957
|
o
|
|
958
958
|
)));
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
let oe = null;
|
|
962
|
-
function
|
|
962
|
+
function qn(e) {
|
|
963
963
|
oe = e;
|
|
964
964
|
}
|
|
965
|
-
function
|
|
965
|
+
function Ni(e, t = !1, r) {
|
|
966
966
|
var i = oe = {
|
|
967
967
|
p: oe,
|
|
968
968
|
c: null,
|
|
@@ -973,7 +973,7 @@ function Si(e, t = !1, r) {
|
|
|
973
973
|
x: null,
|
|
974
974
|
l: null
|
|
975
975
|
};
|
|
976
|
-
|
|
976
|
+
jr(() => {
|
|
977
977
|
i.d = !0;
|
|
978
978
|
});
|
|
979
979
|
}
|
|
@@ -983,15 +983,15 @@ function Di(e) {
|
|
|
983
983
|
e !== void 0 && (t.x = e);
|
|
984
984
|
const u = t.e;
|
|
985
985
|
if (u !== null) {
|
|
986
|
-
var r =
|
|
986
|
+
var r = D, i = N;
|
|
987
987
|
t.e = null;
|
|
988
988
|
try {
|
|
989
989
|
for (var a = 0; a < u.length; a++) {
|
|
990
990
|
var o = u[a];
|
|
991
|
-
Ye(o.effect),
|
|
991
|
+
Ye(o.effect), Te(o.reaction), qr(o.fn);
|
|
992
992
|
}
|
|
993
993
|
} finally {
|
|
994
|
-
Ye(r),
|
|
994
|
+
Ye(r), Te(i);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
oe = t.p, t.m = !0;
|
|
@@ -999,24 +999,24 @@ function Di(e) {
|
|
|
999
999
|
return e || /** @type {T} */
|
|
1000
1000
|
{};
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function Li() {
|
|
1003
1003
|
return !0;
|
|
1004
1004
|
}
|
|
1005
|
-
const
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
1005
|
+
const La = ["touchstart", "touchmove"];
|
|
1006
|
+
function Pa(e) {
|
|
1007
|
+
return La.includes(e);
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function Oa(e, t) {
|
|
1010
1010
|
if (t) {
|
|
1011
1011
|
const r = document.body;
|
|
1012
|
-
e.autofocus = !0,
|
|
1012
|
+
e.autofocus = !0, Hr(() => {
|
|
1013
1013
|
document.activeElement === r && e.focus();
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
let
|
|
1018
|
-
function
|
|
1019
|
-
|
|
1017
|
+
let Bn = !1;
|
|
1018
|
+
function Pi() {
|
|
1019
|
+
Bn || (Bn = !0, document.addEventListener(
|
|
1020
1020
|
"reset",
|
|
1021
1021
|
(e) => {
|
|
1022
1022
|
Promise.resolve().then(() => {
|
|
@@ -1034,45 +1034,45 @@ function Ti() {
|
|
|
1034
1034
|
{ capture: !0 }
|
|
1035
1035
|
));
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1038
|
-
var t = N, r =
|
|
1039
|
-
|
|
1037
|
+
function Oi(e) {
|
|
1038
|
+
var t = N, r = D;
|
|
1039
|
+
Te(null), Ye(null);
|
|
1040
1040
|
try {
|
|
1041
1041
|
return e();
|
|
1042
1042
|
} finally {
|
|
1043
|
-
|
|
1043
|
+
Te(t), Ye(r);
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
e.addEventListener(t, () =>
|
|
1046
|
+
function Fa(e, t, r, i = r) {
|
|
1047
|
+
e.addEventListener(t, () => Oi(r));
|
|
1048
1048
|
const a = e.__on_r;
|
|
1049
1049
|
a ? e.__on_r = () => {
|
|
1050
1050
|
a(), i(!0);
|
|
1051
|
-
} : e.__on_r = () => i(!0),
|
|
1051
|
+
} : e.__on_r = () => i(!0), Pi();
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1054
|
-
function
|
|
1053
|
+
const Fi = /* @__PURE__ */ new Set(), Lr = /* @__PURE__ */ new Set();
|
|
1054
|
+
function Ma(e, t, r, i = {}) {
|
|
1055
1055
|
function a(o) {
|
|
1056
|
-
if (i.capture ||
|
|
1057
|
-
return
|
|
1056
|
+
if (i.capture || Tt.call(t, o), !o.cancelBubble)
|
|
1057
|
+
return Oi(() => r == null ? void 0 : r.call(this, o));
|
|
1058
1058
|
}
|
|
1059
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1059
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Hr(() => {
|
|
1060
1060
|
t.addEventListener(e, a, i);
|
|
1061
1061
|
}) : t.addEventListener(e, a, i), a;
|
|
1062
1062
|
}
|
|
1063
1063
|
function je(e, t, r, i, a) {
|
|
1064
|
-
var o = { capture: i, passive: a }, u =
|
|
1065
|
-
(t === document.body || t === window || t === document) &&
|
|
1064
|
+
var o = { capture: i, passive: a }, u = Ma(e, t, r, o);
|
|
1065
|
+
(t === document.body || t === window || t === document) && jr(() => {
|
|
1066
1066
|
t.removeEventListener(e, u, o);
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function Va(e) {
|
|
1070
1070
|
for (var t = 0; t < e.length; t++)
|
|
1071
|
-
|
|
1072
|
-
for (var r of
|
|
1071
|
+
Fi.add(e[t]);
|
|
1072
|
+
for (var r of Lr)
|
|
1073
1073
|
r(e);
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Tt(e) {
|
|
1076
1076
|
var J;
|
|
1077
1077
|
var t = this, r = (
|
|
1078
1078
|
/** @type {Node} */
|
|
@@ -1101,8 +1101,8 @@ function Dt(e) {
|
|
|
1101
1101
|
return o || r;
|
|
1102
1102
|
}
|
|
1103
1103
|
});
|
|
1104
|
-
var p = N, h =
|
|
1105
|
-
|
|
1104
|
+
var p = N, h = D;
|
|
1105
|
+
Te(null), Ye(null);
|
|
1106
1106
|
try {
|
|
1107
1107
|
for (var g, y = []; o !== null; ) {
|
|
1108
1108
|
var S = o.assignedSlot || o.parentNode || /** @type {any} */
|
|
@@ -1113,7 +1113,7 @@ function Dt(e) {
|
|
|
1113
1113
|
o.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1114
1114
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1115
1115
|
e.target === o))
|
|
1116
|
-
if (
|
|
1116
|
+
if (ti(E)) {
|
|
1117
1117
|
var [V, ...ce] = E;
|
|
1118
1118
|
V.apply(o, [e, ...ce]);
|
|
1119
1119
|
} else
|
|
@@ -1133,32 +1133,32 @@ function Dt(e) {
|
|
|
1133
1133
|
throw g;
|
|
1134
1134
|
}
|
|
1135
1135
|
} finally {
|
|
1136
|
-
e.__root = t, delete e.currentTarget,
|
|
1136
|
+
e.__root = t, delete e.currentTarget, Te(p), Ye(h);
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Wr(e) {
|
|
1141
1141
|
var t = document.createElement("template");
|
|
1142
1142
|
return t.innerHTML = e, t.content;
|
|
1143
1143
|
}
|
|
1144
1144
|
function $e(e, t) {
|
|
1145
1145
|
var r = (
|
|
1146
1146
|
/** @type {Effect} */
|
|
1147
|
-
|
|
1147
|
+
D
|
|
1148
1148
|
);
|
|
1149
1149
|
r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
|
|
1150
1150
|
}
|
|
1151
1151
|
// @__NO_SIDE_EFFECTS__
|
|
1152
1152
|
function Ce(e, t) {
|
|
1153
|
-
var r = (t &
|
|
1153
|
+
var r = (t & Go) !== 0, i = (t & Yo) !== 0, a, o = !e.startsWith("<!>");
|
|
1154
1154
|
return () => {
|
|
1155
1155
|
if (F)
|
|
1156
1156
|
return $e(O, null), O;
|
|
1157
|
-
a === void 0 && (a =
|
|
1157
|
+
a === void 0 && (a = Wr(o ? e : "<!>" + e), r || (a = /** @type {Node} */
|
|
1158
1158
|
/* @__PURE__ */ pe(a)));
|
|
1159
1159
|
var u = (
|
|
1160
1160
|
/** @type {TemplateNode} */
|
|
1161
|
-
i ||
|
|
1161
|
+
i || li ? document.importNode(a, !0) : a.cloneNode(!0)
|
|
1162
1162
|
);
|
|
1163
1163
|
if (r) {
|
|
1164
1164
|
var s = (
|
|
@@ -1175,7 +1175,7 @@ function Ce(e, t) {
|
|
|
1175
1175
|
};
|
|
1176
1176
|
}
|
|
1177
1177
|
// @__NO_SIDE_EFFECTS__
|
|
1178
|
-
function
|
|
1178
|
+
function hr(e, t, r = "svg") {
|
|
1179
1179
|
var i = !e.startsWith("<!>"), a = `<${r}>${i ? e : "<!>" + e}</${r}>`, o;
|
|
1180
1180
|
return () => {
|
|
1181
1181
|
if (F)
|
|
@@ -1183,7 +1183,7 @@ function dr(e, t, r = "svg") {
|
|
|
1183
1183
|
if (!o) {
|
|
1184
1184
|
var u = (
|
|
1185
1185
|
/** @type {DocumentFragment} */
|
|
1186
|
-
|
|
1186
|
+
Wr(a)
|
|
1187
1187
|
), s = (
|
|
1188
1188
|
/** @type {Element} */
|
|
1189
1189
|
/* @__PURE__ */ pe(u)
|
|
@@ -1198,15 +1198,15 @@ function dr(e, t, r = "svg") {
|
|
|
1198
1198
|
return $e(c, c), c;
|
|
1199
1199
|
};
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Wt() {
|
|
1202
1202
|
if (F)
|
|
1203
1203
|
return $e(O, null), O;
|
|
1204
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1204
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = ur();
|
|
1205
1205
|
return e.append(t, r), $e(t, r), e;
|
|
1206
1206
|
}
|
|
1207
1207
|
function U(e, t) {
|
|
1208
1208
|
if (F) {
|
|
1209
|
-
|
|
1209
|
+
D.nodes_end = O, bt();
|
|
1210
1210
|
return;
|
|
1211
1211
|
}
|
|
1212
1212
|
e !== null && e.before(
|
|
@@ -1214,22 +1214,22 @@ function U(e, t) {
|
|
|
1214
1214
|
t
|
|
1215
1215
|
);
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Ua(e, t) {
|
|
1218
1218
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1219
1219
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + "");
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return
|
|
1221
|
+
function Mi(e, t) {
|
|
1222
|
+
return Vi(e, t);
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1225
|
-
|
|
1224
|
+
function ja(e, t) {
|
|
1225
|
+
Sr(), t.intro = t.intro ?? !1;
|
|
1226
1226
|
const r = t.target, i = F, a = O;
|
|
1227
1227
|
try {
|
|
1228
1228
|
for (var o = (
|
|
1229
1229
|
/** @type {TemplateNode} */
|
|
1230
1230
|
/* @__PURE__ */ pe(r)
|
|
1231
1231
|
); o && (o.nodeType !== 8 || /** @type {Comment} */
|
|
1232
|
-
o.data !==
|
|
1232
|
+
o.data !== Fr); )
|
|
1233
1233
|
o = /** @type {TemplateNode} */
|
|
1234
1234
|
/* @__PURE__ */ We(o);
|
|
1235
1235
|
if (!o)
|
|
@@ -1238,41 +1238,41 @@ function Ua(e, t) {
|
|
|
1238
1238
|
/** @type {Comment} */
|
|
1239
1239
|
o
|
|
1240
1240
|
), bt();
|
|
1241
|
-
const u =
|
|
1241
|
+
const u = Vi(e, { ...t, anchor: o });
|
|
1242
1242
|
if (O === null || O.nodeType !== 8 || /** @type {Comment} */
|
|
1243
|
-
O.data !==
|
|
1244
|
-
throw
|
|
1243
|
+
O.data !== Qn)
|
|
1244
|
+
throw sr(), _t;
|
|
1245
1245
|
return gt(!1), /** @type {Exports} */
|
|
1246
1246
|
u;
|
|
1247
1247
|
} catch (u) {
|
|
1248
1248
|
if (u === _t)
|
|
1249
|
-
return t.recover === !1 &&
|
|
1249
|
+
return t.recover === !1 && la(), Sr(), va(r), gt(!1), Mi(e, t);
|
|
1250
1250
|
throw u;
|
|
1251
1251
|
} finally {
|
|
1252
1252
|
gt(i), He(a);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
const ht = /* @__PURE__ */ new Map();
|
|
1256
|
-
function
|
|
1257
|
-
|
|
1256
|
+
function Vi(e, { target: t, anchor: r, props: i = {}, events: a, context: o, intro: u = !0 }) {
|
|
1257
|
+
Sr();
|
|
1258
1258
|
var s = /* @__PURE__ */ new Set(), c = (h) => {
|
|
1259
1259
|
for (var g = 0; g < h.length; g++) {
|
|
1260
1260
|
var y = h[g];
|
|
1261
1261
|
if (!s.has(y)) {
|
|
1262
1262
|
s.add(y);
|
|
1263
|
-
var S =
|
|
1264
|
-
t.addEventListener(y,
|
|
1263
|
+
var S = Pa(y);
|
|
1264
|
+
t.addEventListener(y, Tt, { passive: S });
|
|
1265
1265
|
var E = ht.get(y);
|
|
1266
|
-
E === void 0 ? (document.addEventListener(y,
|
|
1266
|
+
E === void 0 ? (document.addEventListener(y, Tt, { passive: S }), ht.set(y, 1)) : ht.set(y, E + 1);
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
1269
|
};
|
|
1270
|
-
c(
|
|
1271
|
-
var d = void 0, p =
|
|
1272
|
-
var h = r ?? t.appendChild(
|
|
1273
|
-
return
|
|
1270
|
+
c(zo(Fi)), Lr.add(c);
|
|
1271
|
+
var d = void 0, p = wa(() => {
|
|
1272
|
+
var h = r ?? t.appendChild(ur());
|
|
1273
|
+
return Nr(() => {
|
|
1274
1274
|
if (o) {
|
|
1275
|
-
|
|
1275
|
+
Ni({});
|
|
1276
1276
|
var g = (
|
|
1277
1277
|
/** @type {ComponentContext} */
|
|
1278
1278
|
oe
|
|
@@ -1283,30 +1283,30 @@ function Fi(e, { target: t, anchor: r, props: i = {}, events: a, context: o, int
|
|
|
1283
1283
|
/** @type {TemplateNode} */
|
|
1284
1284
|
h,
|
|
1285
1285
|
null
|
|
1286
|
-
), d = e(h, i) || {}, F && (
|
|
1286
|
+
), d = e(h, i) || {}, F && (D.nodes_end = O), o && Di();
|
|
1287
1287
|
}), () => {
|
|
1288
1288
|
var S;
|
|
1289
1289
|
for (var g of s) {
|
|
1290
|
-
t.removeEventListener(g,
|
|
1290
|
+
t.removeEventListener(g, Tt);
|
|
1291
1291
|
var y = (
|
|
1292
1292
|
/** @type {number} */
|
|
1293
1293
|
ht.get(g)
|
|
1294
1294
|
);
|
|
1295
|
-
--y === 0 ? (document.removeEventListener(g,
|
|
1295
|
+
--y === 0 ? (document.removeEventListener(g, Tt), ht.delete(g)) : ht.set(g, y);
|
|
1296
1296
|
}
|
|
1297
|
-
|
|
1297
|
+
Lr.delete(c), h !== r && ((S = h.parentNode) == null || S.removeChild(h));
|
|
1298
1298
|
};
|
|
1299
1299
|
});
|
|
1300
|
-
return
|
|
1300
|
+
return Pr.set(d, p), d;
|
|
1301
1301
|
}
|
|
1302
|
-
let
|
|
1303
|
-
function
|
|
1304
|
-
const r =
|
|
1305
|
-
return r ? (
|
|
1302
|
+
let Pr = /* @__PURE__ */ new WeakMap();
|
|
1303
|
+
function qa(e, t) {
|
|
1304
|
+
const r = Pr.get(e);
|
|
1305
|
+
return r ? (Pr.delete(e), r(t)) : Promise.resolve();
|
|
1306
1306
|
}
|
|
1307
1307
|
function z(e, t, [r, i] = [0, 0]) {
|
|
1308
1308
|
F && r === 0 && bt();
|
|
1309
|
-
var a = e, o = null, u = null, s = ue, c = r > 0 ?
|
|
1309
|
+
var a = e, o = null, u = null, s = ue, c = r > 0 ? Vr : 0, d = !1;
|
|
1310
1310
|
const p = (g, y = !0) => {
|
|
1311
1311
|
d = !0, h(y, g);
|
|
1312
1312
|
}, h = (g, y) => {
|
|
@@ -1318,33 +1318,33 @@ function z(e, t, [r, i] = [0, 0]) {
|
|
|
1318
1318
|
/** @type {Comment} */
|
|
1319
1319
|
a.data
|
|
1320
1320
|
);
|
|
1321
|
-
V ===
|
|
1321
|
+
V === Fr ? i = 0 : V === Xn ? i = 1 / 0 : (i = parseInt(V.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
|
|
1322
1322
|
}
|
|
1323
1323
|
const E = i > r;
|
|
1324
|
-
!!s === E && (a =
|
|
1324
|
+
!!s === E && (a = da(), He(a), gt(!1), S = !0, i = -1);
|
|
1325
1325
|
}
|
|
1326
|
-
s ? (o ?
|
|
1326
|
+
s ? (o ? Vn(o) : y && (o = Nr(() => y(a))), u && Dr(u, () => {
|
|
1327
1327
|
u = null;
|
|
1328
|
-
})) : (u ?
|
|
1328
|
+
})) : (u ? Vn(u) : y && (u = Nr(() => y(a, [r + 1, i]))), o && Dr(o, () => {
|
|
1329
1329
|
o = null;
|
|
1330
1330
|
})), S && gt(!0);
|
|
1331
1331
|
};
|
|
1332
|
-
|
|
1332
|
+
gi(() => {
|
|
1333
1333
|
d = !1, t(p), d || h(null, null);
|
|
1334
1334
|
}, c), F && (a = O);
|
|
1335
1335
|
}
|
|
1336
1336
|
function Xe(e, t, r = !1, i = !1, a = !1) {
|
|
1337
1337
|
var o = e, u = "";
|
|
1338
|
-
|
|
1338
|
+
Re(() => {
|
|
1339
1339
|
var s = (
|
|
1340
1340
|
/** @type {Effect} */
|
|
1341
|
-
|
|
1341
|
+
D
|
|
1342
1342
|
);
|
|
1343
1343
|
if (u === (u = t() ?? "")) {
|
|
1344
1344
|
F && bt();
|
|
1345
1345
|
return;
|
|
1346
1346
|
}
|
|
1347
|
-
if (s.nodes_start !== null && (
|
|
1347
|
+
if (s.nodes_start !== null && (mi(
|
|
1348
1348
|
s.nodes_start,
|
|
1349
1349
|
/** @type {TemplateNode} */
|
|
1350
1350
|
s.nodes_end
|
|
@@ -1356,13 +1356,13 @@ function Xe(e, t, r = !1, i = !1, a = !1) {
|
|
|
1356
1356
|
d = c, c = /** @type {TemplateNode} */
|
|
1357
1357
|
/* @__PURE__ */ We(c);
|
|
1358
1358
|
if (c === null)
|
|
1359
|
-
throw
|
|
1359
|
+
throw sr(), _t;
|
|
1360
1360
|
$e(O, d), o = He(c);
|
|
1361
1361
|
return;
|
|
1362
1362
|
}
|
|
1363
1363
|
var p = u + "";
|
|
1364
1364
|
r ? p = `<svg>${p}</svg>` : i && (p = `<math>${p}</math>`);
|
|
1365
|
-
var h =
|
|
1365
|
+
var h = Wr(p);
|
|
1366
1366
|
if ((r || i) && (h = /** @type {Element} */
|
|
1367
1367
|
/* @__PURE__ */ pe(h)), $e(
|
|
1368
1368
|
/** @type {TemplateNode} */
|
|
@@ -1380,15 +1380,15 @@ function Xe(e, t, r = !1, i = !1, a = !1) {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
});
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function Ba(e, t, r, i, a) {
|
|
1384
1384
|
var s;
|
|
1385
1385
|
F && bt();
|
|
1386
1386
|
var o = (s = t.$$slots) == null ? void 0 : s[r], u = !1;
|
|
1387
1387
|
o === !0 && (o = t.children, u = !0), o === void 0 || o(e, u ? () => i : i);
|
|
1388
1388
|
}
|
|
1389
|
-
const
|
|
1389
|
+
const Hn = [...`
|
|
1390
1390
|
\r\f \v\uFEFF`];
|
|
1391
|
-
function
|
|
1391
|
+
function Ha(e, t, r) {
|
|
1392
1392
|
var i = "" + e;
|
|
1393
1393
|
if (r) {
|
|
1394
1394
|
for (var a in r)
|
|
@@ -1397,15 +1397,15 @@ function Ba(e, t, r) {
|
|
|
1397
1397
|
else if (i.length)
|
|
1398
1398
|
for (var o = a.length, u = 0; (u = i.indexOf(a, u)) >= 0; ) {
|
|
1399
1399
|
var s = u + o;
|
|
1400
|
-
(u === 0 ||
|
|
1400
|
+
(u === 0 || Hn.includes(i[u - 1])) && (s === i.length || Hn.includes(i[s])) ? i = (u === 0 ? "" : i.substring(0, u)) + i.substring(s + 1) : u = s;
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
1403
|
return i === "" ? null : i;
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function Ga(e, t, r, i, a, o) {
|
|
1406
1406
|
var u = e.__className;
|
|
1407
1407
|
if (F || u !== r || u === void 0) {
|
|
1408
|
-
var s =
|
|
1408
|
+
var s = Ha(r, i, o);
|
|
1409
1409
|
(!F || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : e.className = s), e.__className = r;
|
|
1410
1410
|
} else if (o && a !== o)
|
|
1411
1411
|
for (var c in o) {
|
|
@@ -1414,89 +1414,89 @@ function Ha(e, t, r, i, a, o) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
return o;
|
|
1416
1416
|
}
|
|
1417
|
-
const
|
|
1418
|
-
function
|
|
1417
|
+
const Ya = Symbol("is custom element"), Wa = Symbol("is html");
|
|
1418
|
+
function Gn(e) {
|
|
1419
1419
|
if (F) {
|
|
1420
1420
|
var t = !1, r = () => {
|
|
1421
1421
|
if (!t) {
|
|
1422
1422
|
if (t = !0, e.hasAttribute("value")) {
|
|
1423
1423
|
var i = e.value;
|
|
1424
|
-
|
|
1424
|
+
T(e, "value", null), e.value = i;
|
|
1425
1425
|
}
|
|
1426
1426
|
if (e.hasAttribute("checked")) {
|
|
1427
1427
|
var a = e.checked;
|
|
1428
|
-
|
|
1428
|
+
T(e, "checked", null), e.checked = a;
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
1431
|
};
|
|
1432
|
-
e.__on_r = r,
|
|
1432
|
+
e.__on_r = r, xa(r), Pi();
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var r =
|
|
1435
|
+
function Za(e, t) {
|
|
1436
|
+
var r = Ui(e);
|
|
1437
1437
|
r.value === (r.value = // treat null and undefined the same for the initial value
|
|
1438
1438
|
t ?? void 0) || // @ts-expect-error
|
|
1439
1439
|
// `progress` elements always need their value set when it's `0`
|
|
1440
1440
|
e.value === t && (t !== 0 || e.nodeName !== "PROGRESS") || (e.value = t ?? "");
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1443
|
-
var a =
|
|
1444
|
-
F && (a[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || a[t] !== (a[t] = r) && (t === "loading" && (e[
|
|
1442
|
+
function T(e, t, r, i) {
|
|
1443
|
+
var a = Ui(e);
|
|
1444
|
+
F && (a[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || a[t] !== (a[t] = r) && (t === "loading" && (e[ra] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && za(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function Ui(e) {
|
|
1447
1447
|
return (
|
|
1448
1448
|
/** @type {Record<string | symbol, unknown>} **/
|
|
1449
1449
|
// @ts-expect-error
|
|
1450
1450
|
e.__attributes ?? (e.__attributes = {
|
|
1451
|
-
[
|
|
1452
|
-
[
|
|
1451
|
+
[Ya]: e.nodeName.includes("-"),
|
|
1452
|
+
[Wa]: e.namespaceURI === Wo
|
|
1453
1453
|
})
|
|
1454
1454
|
);
|
|
1455
1455
|
}
|
|
1456
|
-
var
|
|
1457
|
-
function
|
|
1458
|
-
var t =
|
|
1456
|
+
var Yn = /* @__PURE__ */ new Map();
|
|
1457
|
+
function za(e) {
|
|
1458
|
+
var t = Yn.get(e.nodeName);
|
|
1459
1459
|
if (t) return t;
|
|
1460
|
-
|
|
1460
|
+
Yn.set(e.nodeName, t = []);
|
|
1461
1461
|
for (var r, i = e, a = Element.prototype; a !== i; ) {
|
|
1462
|
-
r =
|
|
1462
|
+
r = Jo(i);
|
|
1463
1463
|
for (var o in r)
|
|
1464
1464
|
r[o].set && t.push(o);
|
|
1465
|
-
i =
|
|
1465
|
+
i = ri(i);
|
|
1466
1466
|
}
|
|
1467
1467
|
return t;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1470
|
-
|
|
1469
|
+
function Ja(e, t, r = t) {
|
|
1470
|
+
Fa(e, "change", (i) => {
|
|
1471
1471
|
var a = i ? e.defaultChecked : e.checked;
|
|
1472
1472
|
r(a);
|
|
1473
1473
|
}), // If we are hydrating and the value has since changed,
|
|
1474
1474
|
// then use the update value from the input instead.
|
|
1475
1475
|
(F && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
|
|
1476
|
-
tt(t) == null) && r(e.checked),
|
|
1476
|
+
tt(t) == null) && r(e.checked), Br(() => {
|
|
1477
1477
|
var i = t();
|
|
1478
1478
|
e.checked = !!i;
|
|
1479
1479
|
});
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function Wn(e, t) {
|
|
1482
1482
|
return e === t || (e == null ? void 0 : e[Nt]) === t;
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1485
|
-
return
|
|
1484
|
+
function Zt(e = {}, t, r, i) {
|
|
1485
|
+
return qr(() => {
|
|
1486
1486
|
var a, o;
|
|
1487
|
-
return
|
|
1487
|
+
return Br(() => {
|
|
1488
1488
|
a = o, o = [], tt(() => {
|
|
1489
|
-
e !== r(...o) && (t(e, ...o), a &&
|
|
1489
|
+
e !== r(...o) && (t(e, ...o), a && Wn(r(...a), e) && t(null, ...a));
|
|
1490
1490
|
});
|
|
1491
1491
|
}), () => {
|
|
1492
|
-
|
|
1493
|
-
o &&
|
|
1492
|
+
Hr(() => {
|
|
1493
|
+
o && Wn(r(...o), e) && t(null, ...o);
|
|
1494
1494
|
});
|
|
1495
1495
|
};
|
|
1496
1496
|
}), e;
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1499
|
-
oe === null &&
|
|
1498
|
+
function ji(e) {
|
|
1499
|
+
oe === null && ei(), Tr(() => {
|
|
1500
1500
|
const t = tt(e);
|
|
1501
1501
|
if (typeof t == "function") return (
|
|
1502
1502
|
/** @type {() => void} */
|
|
@@ -1504,10 +1504,10 @@ function Vi(e) {
|
|
|
1504
1504
|
);
|
|
1505
1505
|
});
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1508
|
-
oe === null &&
|
|
1507
|
+
function Ka(e) {
|
|
1508
|
+
oe === null && ei(), ji(() => () => tt(e));
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function qi(e, t, r) {
|
|
1511
1511
|
if (e == null)
|
|
1512
1512
|
return t(void 0), pt;
|
|
1513
1513
|
const i = tt(
|
|
@@ -1520,11 +1520,11 @@ function Ui(e, t, r) {
|
|
|
1520
1520
|
return i.unsubscribe ? () => i.unsubscribe() : i;
|
|
1521
1521
|
}
|
|
1522
1522
|
const vt = [];
|
|
1523
|
-
function
|
|
1523
|
+
function Xa(e, t = pt) {
|
|
1524
1524
|
let r = null;
|
|
1525
1525
|
const i = /* @__PURE__ */ new Set();
|
|
1526
1526
|
function a(s) {
|
|
1527
|
-
if (
|
|
1527
|
+
if (ci(e, s) && (e = s, r)) {
|
|
1528
1528
|
const c = !vt.length;
|
|
1529
1529
|
for (const d of i)
|
|
1530
1530
|
d[1](), vt.push(d, e);
|
|
@@ -1552,35 +1552,35 @@ function Ka(e, t = pt) {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
return { set: a, update: o, subscribe: u };
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function Kt(e) {
|
|
1556
1556
|
let t;
|
|
1557
|
-
return
|
|
1557
|
+
return qi(e, (r) => t = r)(), t;
|
|
1558
1558
|
}
|
|
1559
|
-
let
|
|
1560
|
-
function
|
|
1559
|
+
let zt = !1, Or = Symbol();
|
|
1560
|
+
function Qa(e, t, r) {
|
|
1561
1561
|
const i = r[t] ?? (r[t] = {
|
|
1562
1562
|
store: null,
|
|
1563
|
-
source: /* @__PURE__ */
|
|
1563
|
+
source: /* @__PURE__ */ Yr(void 0),
|
|
1564
1564
|
unsubscribe: pt
|
|
1565
1565
|
});
|
|
1566
|
-
if (i.store !== e && !(
|
|
1566
|
+
if (i.store !== e && !(Or in r))
|
|
1567
1567
|
if (i.unsubscribe(), i.store = e ?? null, e == null)
|
|
1568
1568
|
i.source.v = void 0, i.unsubscribe = pt;
|
|
1569
1569
|
else {
|
|
1570
1570
|
var a = !0;
|
|
1571
|
-
i.unsubscribe =
|
|
1571
|
+
i.unsubscribe = qi(e, (o) => {
|
|
1572
1572
|
a ? i.source.v = o : b(i.source, o);
|
|
1573
1573
|
}), a = !1;
|
|
1574
1574
|
}
|
|
1575
|
-
return e &&
|
|
1575
|
+
return e && Or in r ? Kt(e) : l(i.source);
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1577
|
+
function el() {
|
|
1578
1578
|
const e = {};
|
|
1579
1579
|
function t() {
|
|
1580
|
-
|
|
1580
|
+
jr(() => {
|
|
1581
1581
|
for (var r in e)
|
|
1582
1582
|
e[r].unsubscribe();
|
|
1583
|
-
Lt(e,
|
|
1583
|
+
Lt(e, Or, {
|
|
1584
1584
|
enumerable: !1,
|
|
1585
1585
|
value: !0
|
|
1586
1586
|
});
|
|
@@ -1588,27 +1588,27 @@ function Qa() {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
return [e, t];
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1592
|
-
var t =
|
|
1591
|
+
function tl(e) {
|
|
1592
|
+
var t = zt;
|
|
1593
1593
|
try {
|
|
1594
|
-
return
|
|
1594
|
+
return zt = !1, [e(), zt];
|
|
1595
1595
|
} finally {
|
|
1596
|
-
|
|
1596
|
+
zt = t;
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function Zn(e) {
|
|
1600
1600
|
var t;
|
|
1601
1601
|
return ((t = e.ctx) == null ? void 0 : t.d) ?? !1;
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function R(e, t, r, i) {
|
|
1604
1604
|
var ot;
|
|
1605
|
-
var a = (r &
|
|
1606
|
-
u ? [d, c] =
|
|
1605
|
+
var a = (r & jo) !== 0, o = !0, u = (r & Bo) !== 0, s = (r & Ho) !== 0, c = !1, d;
|
|
1606
|
+
u ? [d, c] = tl(() => (
|
|
1607
1607
|
/** @type {V} */
|
|
1608
1608
|
e[t]
|
|
1609
1609
|
)) : d = /** @type {V} */
|
|
1610
1610
|
e[t];
|
|
1611
|
-
var p = Nt in e ||
|
|
1611
|
+
var p = Nt in e || ai in e, h = u && (((ot = Qe(e, t)) == null ? void 0 : ot.set) ?? (p && t in e && ((j) => e[t] = j))) || void 0, g = (
|
|
1612
1612
|
/** @type {V} */
|
|
1613
1613
|
i
|
|
1614
1614
|
), y = !0, S = !1, E = () => (S = !0, y && (y = !1, s ? g = tt(
|
|
@@ -1616,7 +1616,7 @@ function I(e, t, r, i) {
|
|
|
1616
1616
|
i
|
|
1617
1617
|
) : g = /** @type {V} */
|
|
1618
1618
|
i), g);
|
|
1619
|
-
d === void 0 && i !== void 0 && (h && o &&
|
|
1619
|
+
d === void 0 && i !== void 0 && (h && o && sa(), d = E(), h && h(d));
|
|
1620
1620
|
var V;
|
|
1621
1621
|
if (V = () => {
|
|
1622
1622
|
var j = (
|
|
@@ -1624,7 +1624,7 @@ function I(e, t, r, i) {
|
|
|
1624
1624
|
e[t]
|
|
1625
1625
|
);
|
|
1626
1626
|
return j === void 0 ? E() : (y = !0, S = !1, j);
|
|
1627
|
-
}, (r &
|
|
1627
|
+
}, (r & qo) === 0)
|
|
1628
1628
|
return V;
|
|
1629
1629
|
if (h) {
|
|
1630
1630
|
var ce = e.$$legacy;
|
|
@@ -1632,28 +1632,28 @@ function I(e, t, r, i) {
|
|
|
1632
1632
|
return arguments.length > 0 ? ((!ae || ce || c) && h(ae ? V() : j), j) : V();
|
|
1633
1633
|
};
|
|
1634
1634
|
}
|
|
1635
|
-
var J = !1, ee = /* @__PURE__ */
|
|
1635
|
+
var J = !1, ee = /* @__PURE__ */ Yr(d), K = /* @__PURE__ */ fr(() => {
|
|
1636
1636
|
var j = V(), ae = l(ee);
|
|
1637
1637
|
return J ? (J = !1, ae) : ee.v = j;
|
|
1638
1638
|
});
|
|
1639
|
-
return u && l(K), a || (K.equals =
|
|
1639
|
+
return u && l(K), a || (K.equals = Ur), function(j, ae) {
|
|
1640
1640
|
if (arguments.length > 0) {
|
|
1641
1641
|
const me = ae ? l(K) : u ? qe(j) : j;
|
|
1642
1642
|
if (!K.equals(me)) {
|
|
1643
|
-
if (J = !0, b(ee, me), S && g !== void 0 && (g = me),
|
|
1643
|
+
if (J = !0, b(ee, me), S && g !== void 0 && (g = me), Zn(K))
|
|
1644
1644
|
return j;
|
|
1645
1645
|
tt(() => l(K));
|
|
1646
1646
|
}
|
|
1647
1647
|
return j;
|
|
1648
1648
|
}
|
|
1649
|
-
return
|
|
1649
|
+
return Zn(K) ? K.v : l(K);
|
|
1650
1650
|
};
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1653
|
-
return new
|
|
1652
|
+
function rl(e) {
|
|
1653
|
+
return new nl(e);
|
|
1654
1654
|
}
|
|
1655
1655
|
var Le, _e;
|
|
1656
|
-
class
|
|
1656
|
+
class nl {
|
|
1657
1657
|
/**
|
|
1658
1658
|
* @param {ComponentConstructorOptions & {
|
|
1659
1659
|
* component: any;
|
|
@@ -1661,12 +1661,12 @@ class rl {
|
|
|
1661
1661
|
*/
|
|
1662
1662
|
constructor(t) {
|
|
1663
1663
|
/** @type {any} */
|
|
1664
|
-
|
|
1664
|
+
xr(this, Le);
|
|
1665
1665
|
/** @type {Record<string, any>} */
|
|
1666
|
-
|
|
1666
|
+
xr(this, _e);
|
|
1667
1667
|
var o;
|
|
1668
1668
|
var r = /* @__PURE__ */ new Map(), i = (u, s) => {
|
|
1669
|
-
var c = /* @__PURE__ */
|
|
1669
|
+
var c = /* @__PURE__ */ Yr(s);
|
|
1670
1670
|
return r.set(u, c), c;
|
|
1671
1671
|
};
|
|
1672
1672
|
const a = new Proxy(
|
|
@@ -1676,21 +1676,21 @@ class rl {
|
|
|
1676
1676
|
return l(r.get(s) ?? i(s, Reflect.get(u, s)));
|
|
1677
1677
|
},
|
|
1678
1678
|
has(u, s) {
|
|
1679
|
-
return s ===
|
|
1679
|
+
return s === ai ? !0 : (l(r.get(s) ?? i(s, Reflect.get(u, s))), Reflect.has(u, s));
|
|
1680
1680
|
},
|
|
1681
1681
|
set(u, s, c) {
|
|
1682
1682
|
return b(r.get(s) ?? i(s, c), c), Reflect.set(u, s, c);
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
1685
1685
|
);
|
|
1686
|
-
|
|
1686
|
+
kr(this, _e, (t.hydrate ? ja : Mi)(t.component, {
|
|
1687
1687
|
target: t.target,
|
|
1688
1688
|
anchor: t.anchor,
|
|
1689
1689
|
props: a,
|
|
1690
1690
|
context: t.context,
|
|
1691
1691
|
intro: t.intro ?? !1,
|
|
1692
1692
|
recover: t.recover
|
|
1693
|
-
})), (!((o = t == null ? void 0 : t.props) != null && o.$$host) || t.sync === !1) && A(),
|
|
1693
|
+
})), (!((o = t == null ? void 0 : t.props) != null && o.$$host) || t.sync === !1) && A(), kr(this, Le, a.$$events);
|
|
1694
1694
|
for (const u of Object.keys(se(this, _e)))
|
|
1695
1695
|
u === "$set" || u === "$destroy" || u === "$on" || Lt(this, u, {
|
|
1696
1696
|
get() {
|
|
@@ -1706,7 +1706,7 @@ class rl {
|
|
|
1706
1706
|
(u) => {
|
|
1707
1707
|
Object.assign(a, u);
|
|
1708
1708
|
}, se(this, _e).$destroy = () => {
|
|
1709
|
-
|
|
1709
|
+
qa(se(this, _e));
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
1712
|
/** @param {Record<string, any>} props */
|
|
@@ -1733,8 +1733,8 @@ class rl {
|
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
Le = new WeakMap(), _e = new WeakMap();
|
|
1736
|
-
let
|
|
1737
|
-
typeof HTMLElement == "function" && (
|
|
1736
|
+
let Bi;
|
|
1737
|
+
typeof HTMLElement == "function" && (Bi = class extends HTMLElement {
|
|
1738
1738
|
/**
|
|
1739
1739
|
* @param {*} $$componentCtor
|
|
1740
1740
|
* @param {*} $$slots
|
|
@@ -1797,16 +1797,16 @@ typeof HTMLElement == "function" && (ji = class extends HTMLElement {
|
|
|
1797
1797
|
};
|
|
1798
1798
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1799
1799
|
return;
|
|
1800
|
-
const r = {}, i =
|
|
1800
|
+
const r = {}, i = il(this);
|
|
1801
1801
|
for (const a of this.$$s)
|
|
1802
1802
|
a in i && (a === "default" && !this.$$d.children ? (this.$$d.children = t(a), r.default = !0) : r[a] = t(a));
|
|
1803
1803
|
for (const a of this.attributes) {
|
|
1804
1804
|
const o = this.$$g_p(a.name);
|
|
1805
|
-
o in this.$$d || (this.$$d[o] =
|
|
1805
|
+
o in this.$$d || (this.$$d[o] = Xt(o, a.value, this.$$p_d, "toProp"));
|
|
1806
1806
|
}
|
|
1807
1807
|
for (const a in this.$$p_d)
|
|
1808
1808
|
!(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
|
|
1809
|
-
this.$$c =
|
|
1809
|
+
this.$$c = rl({
|
|
1810
1810
|
component: this.$$ctor,
|
|
1811
1811
|
target: this.shadowRoot || this,
|
|
1812
1812
|
props: {
|
|
@@ -1814,14 +1814,14 @@ typeof HTMLElement == "function" && (ji = class extends HTMLElement {
|
|
|
1814
1814
|
$$slots: r,
|
|
1815
1815
|
$$host: this
|
|
1816
1816
|
}
|
|
1817
|
-
}), this.$$me =
|
|
1818
|
-
|
|
1817
|
+
}), this.$$me = ba(() => {
|
|
1818
|
+
Br(() => {
|
|
1819
1819
|
var a;
|
|
1820
1820
|
this.$$r = !0;
|
|
1821
|
-
for (const o of
|
|
1821
|
+
for (const o of Qt(this.$$c)) {
|
|
1822
1822
|
if (!((a = this.$$p_d[o]) != null && a.reflect)) continue;
|
|
1823
1823
|
this.$$d[o] = this.$$c[o];
|
|
1824
|
-
const u =
|
|
1824
|
+
const u = Xt(
|
|
1825
1825
|
o,
|
|
1826
1826
|
this.$$d[o],
|
|
1827
1827
|
this.$$p_d,
|
|
@@ -1849,7 +1849,7 @@ typeof HTMLElement == "function" && (ji = class extends HTMLElement {
|
|
|
1849
1849
|
*/
|
|
1850
1850
|
attributeChangedCallback(t, r, i) {
|
|
1851
1851
|
var a;
|
|
1852
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
1852
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Xt(t, i, this.$$p_d, "toProp"), (a = this.$$c) == null || a.$set({ [t]: this.$$d[t] }));
|
|
1853
1853
|
}
|
|
1854
1854
|
disconnectedCallback() {
|
|
1855
1855
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -1860,12 +1860,12 @@ typeof HTMLElement == "function" && (ji = class extends HTMLElement {
|
|
|
1860
1860
|
* @param {string} attribute_name
|
|
1861
1861
|
*/
|
|
1862
1862
|
$$g_p(t) {
|
|
1863
|
-
return
|
|
1863
|
+
return Qt(this.$$p_d).find(
|
|
1864
1864
|
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
1865
1865
|
) || t;
|
|
1866
1866
|
}
|
|
1867
1867
|
});
|
|
1868
|
-
function
|
|
1868
|
+
function Xt(e, t, r, i) {
|
|
1869
1869
|
var o;
|
|
1870
1870
|
const a = (o = r[e]) == null ? void 0 : o.type;
|
|
1871
1871
|
if (t = a === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
@@ -1896,7 +1896,7 @@ function Kt(e, t, r, i) {
|
|
|
1896
1896
|
return t;
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function il(e) {
|
|
1900
1900
|
const t = {};
|
|
1901
1901
|
return e.childNodes.forEach((r) => {
|
|
1902
1902
|
t[
|
|
@@ -1905,25 +1905,25 @@ function nl(e) {
|
|
|
1905
1905
|
] = !0;
|
|
1906
1906
|
}), t;
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1909
|
-
let u = class extends
|
|
1908
|
+
function ol(e, t, r, i, a, o) {
|
|
1909
|
+
let u = class extends Bi {
|
|
1910
1910
|
constructor() {
|
|
1911
1911
|
super(e, r, a), this.$$p_d = t;
|
|
1912
1912
|
}
|
|
1913
1913
|
static get observedAttributes() {
|
|
1914
|
-
return
|
|
1914
|
+
return Qt(t).map(
|
|
1915
1915
|
(s) => (t[s].attribute || s).toLowerCase()
|
|
1916
1916
|
);
|
|
1917
1917
|
}
|
|
1918
1918
|
};
|
|
1919
|
-
return
|
|
1919
|
+
return Qt(t).forEach((s) => {
|
|
1920
1920
|
Lt(u.prototype, s, {
|
|
1921
1921
|
get() {
|
|
1922
1922
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
1923
1923
|
},
|
|
1924
1924
|
set(c) {
|
|
1925
1925
|
var h;
|
|
1926
|
-
c =
|
|
1926
|
+
c = Xt(s, c, t), this.$$d[s] = c;
|
|
1927
1927
|
var d = this.$$c;
|
|
1928
1928
|
if (d) {
|
|
1929
1929
|
var p = (h = Qe(d, s)) == null ? void 0 : h.get;
|
|
@@ -1941,14 +1941,14 @@ function il(e, t, r, i, a, o) {
|
|
|
1941
1941
|
}), e.element = /** @type {any} */
|
|
1942
1942
|
u, u;
|
|
1943
1943
|
}
|
|
1944
|
-
const
|
|
1945
|
-
function
|
|
1944
|
+
const Hi = new TextEncoder();
|
|
1945
|
+
function al(e) {
|
|
1946
1946
|
return [...new Uint8Array(e)].map((t) => t.toString(16).padStart(2, "0")).join("");
|
|
1947
1947
|
}
|
|
1948
|
-
async function
|
|
1948
|
+
async function ll(e, t = "SHA-256", r = 1e5) {
|
|
1949
1949
|
const i = Date.now().toString(16);
|
|
1950
1950
|
e || (e = Math.round(Math.random() * r));
|
|
1951
|
-
const a = await
|
|
1951
|
+
const a = await Gi(i, e, t);
|
|
1952
1952
|
return {
|
|
1953
1953
|
algorithm: t,
|
|
1954
1954
|
challenge: a,
|
|
@@ -1956,24 +1956,24 @@ async function al(e, t = "SHA-256", r = 1e5) {
|
|
|
1956
1956
|
signature: ""
|
|
1957
1957
|
};
|
|
1958
1958
|
}
|
|
1959
|
-
async function
|
|
1959
|
+
async function Gi(e, t, r) {
|
|
1960
1960
|
if (typeof crypto > "u" || !("subtle" in crypto) || !("digest" in crypto.subtle))
|
|
1961
1961
|
throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");
|
|
1962
|
-
return
|
|
1962
|
+
return al(
|
|
1963
1963
|
await crypto.subtle.digest(
|
|
1964
1964
|
r.toUpperCase(),
|
|
1965
|
-
|
|
1965
|
+
Hi.encode(e + t)
|
|
1966
1966
|
)
|
|
1967
1967
|
);
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function sl(e, t, r = "SHA-256", i = 1e6, a = 0) {
|
|
1970
1970
|
const o = new AbortController(), u = Date.now();
|
|
1971
1971
|
return {
|
|
1972
1972
|
promise: (async () => {
|
|
1973
1973
|
for (let c = a; c <= i; c += 1) {
|
|
1974
1974
|
if (o.signal.aborted)
|
|
1975
1975
|
return null;
|
|
1976
|
-
if (await
|
|
1976
|
+
if (await Gi(t, c, r) === e)
|
|
1977
1977
|
return {
|
|
1978
1978
|
number: c,
|
|
1979
1979
|
took: Date.now() - u
|
|
@@ -1984,25 +1984,25 @@ function ll(e, t, r = "SHA-256", i = 1e6, a = 0) {
|
|
|
1984
1984
|
controller: o
|
|
1985
1985
|
};
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function zn() {
|
|
1988
1988
|
try {
|
|
1989
1989
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1990
1990
|
} catch {
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function ul(e) {
|
|
1994
1994
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
1995
1995
|
for (let i = 0; i < t.length; i++)
|
|
1996
1996
|
r[i] = t.charCodeAt(i);
|
|
1997
1997
|
return r;
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
1999
|
+
function fl(e, t = 12) {
|
|
2000
2000
|
const r = new Uint8Array(t);
|
|
2001
2001
|
for (let i = 0; i < t; i++)
|
|
2002
2002
|
r[i] = e % 256, e = Math.floor(e / 256);
|
|
2003
2003
|
return r;
|
|
2004
2004
|
}
|
|
2005
|
-
async function
|
|
2005
|
+
async function cl(e, t = "", r = 1e6, i = 0) {
|
|
2006
2006
|
const a = "AES-GCM", o = new AbortController(), u = Date.now(), s = async () => {
|
|
2007
2007
|
for (let p = i; p <= r; p += 1) {
|
|
2008
2008
|
if (o.signal.aborted || !c || !d)
|
|
@@ -2011,7 +2011,7 @@ async function fl(e, t = "", r = 1e6, i = 0) {
|
|
|
2011
2011
|
const h = await crypto.subtle.decrypt(
|
|
2012
2012
|
{
|
|
2013
2013
|
name: a,
|
|
2014
|
-
iv:
|
|
2014
|
+
iv: fl(p)
|
|
2015
2015
|
},
|
|
2016
2016
|
c,
|
|
2017
2017
|
d
|
|
@@ -2028,10 +2028,10 @@ async function fl(e, t = "", r = 1e6, i = 0) {
|
|
|
2028
2028
|
};
|
|
2029
2029
|
let c = null, d = null;
|
|
2030
2030
|
try {
|
|
2031
|
-
d =
|
|
2031
|
+
d = ul(e);
|
|
2032
2032
|
const p = await crypto.subtle.digest(
|
|
2033
2033
|
"SHA-256",
|
|
2034
|
-
|
|
2034
|
+
Hi.encode(t)
|
|
2035
2035
|
);
|
|
2036
2036
|
c = await crypto.subtle.importKey(
|
|
2037
2037
|
"raw",
|
|
@@ -2054,15 +2054,15 @@ async function fl(e, t = "", r = 1e6, i = 0) {
|
|
|
2054
2054
|
var C = /* @__PURE__ */ ((e) => (e.CODE = "code", e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(C || {}), Q = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.READY = "ready", e))(Q || {});
|
|
2055
2055
|
globalThis.altchaPlugins = globalThis.altchaPlugins || [];
|
|
2056
2056
|
globalThis.altchaI18n = globalThis.altchaI18n || {
|
|
2057
|
-
get: (e) =>
|
|
2057
|
+
get: (e) => Kt(globalThis.altchaI18n.store)[e],
|
|
2058
2058
|
set: (e, t) => {
|
|
2059
|
-
Object.assign(
|
|
2059
|
+
Object.assign(Kt(globalThis.altchaI18n.store), {
|
|
2060
2060
|
[e]: t
|
|
2061
|
-
}), globalThis.altchaI18n.store.set(
|
|
2061
|
+
}), globalThis.altchaI18n.store.set(Kt(globalThis.altchaI18n.store));
|
|
2062
2062
|
},
|
|
2063
|
-
store:
|
|
2063
|
+
store: Xa({})
|
|
2064
2064
|
};
|
|
2065
|
-
const
|
|
2065
|
+
const dl = {
|
|
2066
2066
|
ariaLinkLabel: "Visit Altcha.org",
|
|
2067
2067
|
enterCode: "Enter code",
|
|
2068
2068
|
enterCodeAria: "Enter code you hear. Press Space to play audio.",
|
|
@@ -2079,21 +2079,21 @@ const cl = {
|
|
|
2079
2079
|
verifying: "Verifying...",
|
|
2080
2080
|
waitAlert: "Verifying... please wait."
|
|
2081
2081
|
};
|
|
2082
|
-
globalThis.altchaI18n.set("en",
|
|
2082
|
+
globalThis.altchaI18n.set("en", dl);
|
|
2083
2083
|
const Ir = (e, t) => {
|
|
2084
|
-
let r = /* @__PURE__ */
|
|
2085
|
-
var i =
|
|
2086
|
-
|
|
2087
|
-
|
|
2084
|
+
let r = /* @__PURE__ */ ga(() => Qo(t == null ? void 0 : t(), 24));
|
|
2085
|
+
var i = _l();
|
|
2086
|
+
Re(() => {
|
|
2087
|
+
T(i, "width", l(r)), T(i, "height", l(r));
|
|
2088
2088
|
}), U(e, i);
|
|
2089
2089
|
};
|
|
2090
|
-
function
|
|
2090
|
+
function hl(e, t) {
|
|
2091
2091
|
e.code === "Space" && (e.preventDefault(), e.stopImmediatePropagation(), t());
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function vl(e, t) {
|
|
2094
2094
|
e.preventDefault(), t();
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2096
|
+
function gl(e, t, r, i, a, o, u, s) {
|
|
2097
2097
|
var c;
|
|
2098
2098
|
[
|
|
2099
2099
|
C.UNVERIFIED,
|
|
@@ -2102,35 +2102,35 @@ function vl(e, t, r, i, a, o, u, s) {
|
|
|
2102
2102
|
C.CODE
|
|
2103
2103
|
].includes(l(t)) ? r() !== !1 && ((c = l(i)) == null ? void 0 : c.reportValidity()) === !1 ? b(a, !1) : o() ? u() : s() : b(a, !0);
|
|
2104
2104
|
}
|
|
2105
|
-
var
|
|
2106
|
-
function
|
|
2107
|
-
var
|
|
2108
|
-
|
|
2109
|
-
const [r, i] =
|
|
2110
|
-
let o =
|
|
2111
|
-
const { altchaI18n:
|
|
2105
|
+
var _l = /* @__PURE__ */ hr('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'), pl = /* @__PURE__ */ Ce('<input type="hidden">'), ml = /* @__PURE__ */ Ce('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>'), bl = /* @__PURE__ */ hr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'), wl = /* @__PURE__ */ hr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'), yl = /* @__PURE__ */ hr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'), El = /* @__PURE__ */ Ce('<button type="button" class="altcha-code-challenge-audio"><!></button>'), Cl = /* @__PURE__ */ Ce("<audio hidden autoplay><source></audio>"), xl = /* @__PURE__ */ Ce('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'), kl = /* @__PURE__ */ Ce("<div><!></div>"), Al = /* @__PURE__ */ Ce("<div><!></div>"), Rl = /* @__PURE__ */ Ce('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), Il = /* @__PURE__ */ Ce('<div class="altcha-footer"><div><!></div></div>'), $l = /* @__PURE__ */ Ce('<div class="altcha-anchor-arrow"></div>'), Sl = /* @__PURE__ */ Ce('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>', 1);
|
|
2106
|
+
function Tl(e, t) {
|
|
2107
|
+
var Tn, Nn;
|
|
2108
|
+
Ni(t, !0);
|
|
2109
|
+
const [r, i] = el(), a = () => Qa(zi, "$altchaI18nStore", r);
|
|
2110
|
+
let o = R(t, "auto", 7, void 0), u = R(t, "blockspam", 7, void 0), s = R(t, "challengeurl", 7, void 0), c = R(t, "challengejson", 7, void 0), d = R(t, "credentials", 7, void 0), p = R(t, "customfetch", 7, void 0), h = R(t, "debug", 7, !1), g = R(t, "delay", 7, 0), y = R(t, "disableautofocus", 7, !1), S = R(t, "expire", 7, void 0), E = R(t, "floating", 7, void 0), V = R(t, "floatinganchor", 7, void 0), ce = R(t, "floatingoffset", 7, void 0), J = R(t, "floatingpersist", 7, !1), ee = R(t, "hidefooter", 7, !1), K = R(t, "hidelogo", 7, !1), ot = R(t, "id", 7, void 0), j = R(t, "language", 7, void 0), ae = R(t, "name", 7, "altcha"), me = R(t, "maxnumber", 7, 1e6), wt = R(t, "mockerror", 7, !1), Oe = R(t, "obfuscated", 7, void 0), Ut = R(t, "plugins", 7, void 0), yt = R(t, "refetchonexpire", 7, !0), Ze = R(t, "sentinel", 7, void 0), xe = R(t, "spamfilter", 7, !1), at = R(t, "strings", 7, void 0), ve = R(t, "test", 7, !1), te = R(t, "verifyurl", 7, void 0), lt = R(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), Et = R(t, "workerurl", 7, void 0);
|
|
2111
|
+
const { altchaI18n: Zi } = globalThis, zi = Zi.store, Zr = ["SHA-256", "SHA-384", "SHA-512"], Ji = "https://altcha.org/", Fe = (n, f) => {
|
|
2112
2112
|
t.$$host.dispatchEvent(new CustomEvent(n, { detail: f }));
|
|
2113
|
-
},
|
|
2113
|
+
}, zr = (Nn = (Tn = document.documentElement.lang) == null ? void 0 : Tn.split("-")) == null ? void 0 : Nn[0], vr = /* @__PURE__ */ St(() => {
|
|
2114
2114
|
var n;
|
|
2115
2115
|
return s() && new URL(s(), location.origin).host.endsWith(".altcha.org") && !!((n = s()) != null && n.includes("apiKey=ckey_"));
|
|
2116
|
-
}),
|
|
2117
|
-
...
|
|
2118
|
-
...l(
|
|
2119
|
-
})),
|
|
2120
|
-
let Ct = /* @__PURE__ */ M(!1), B = /* @__PURE__ */ M(null),
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
}),
|
|
2124
|
-
|
|
2125
|
-
}),
|
|
2126
|
-
|
|
2127
|
-
}),
|
|
2116
|
+
}), gr = /* @__PURE__ */ St(() => c() ? cn(c()) : void 0), Ki = /* @__PURE__ */ St(() => at() ? cn(at()) : {}), P = /* @__PURE__ */ St(() => ({
|
|
2117
|
+
...Qr(a()),
|
|
2118
|
+
...l(Ki)
|
|
2119
|
+
})), Jr = /* @__PURE__ */ St(() => `${ot() || ae()}_checkbox_${Math.round(Math.random() * 1e8)}`);
|
|
2120
|
+
let Ct = /* @__PURE__ */ M(!1), B = /* @__PURE__ */ M(null), I = /* @__PURE__ */ M(qe(C.UNVERIFIED)), re = /* @__PURE__ */ M(void 0), xt = /* @__PURE__ */ M(null), Me = /* @__PURE__ */ M(null), _r = /* @__PURE__ */ M(null), st = /* @__PURE__ */ M(null), L = /* @__PURE__ */ M(null), jt = /* @__PURE__ */ M(null), ze = /* @__PURE__ */ M(null), ke = null, H = /* @__PURE__ */ M(null), Je = /* @__PURE__ */ M(!1), Ve = [], pr = /* @__PURE__ */ M(!1), Ne = /* @__PURE__ */ M(null);
|
|
2121
|
+
Tr(() => {
|
|
2122
|
+
fo(l(ze));
|
|
2123
|
+
}), Tr(() => {
|
|
2124
|
+
co(l(I));
|
|
2125
|
+
}), Ka(() => {
|
|
2126
|
+
Xi(), b(jt, null), l(L) && (l(L).removeEventListener("submit", an), l(L).removeEventListener("reset", ln), l(L).removeEventListener("focusin", on), b(L, null)), ke && (clearTimeout(ke), ke = null), document.removeEventListener("click", rn), document.removeEventListener("scroll", nn), window.removeEventListener("resize", fn);
|
|
2127
|
+
}), ji(() => {
|
|
2128
2128
|
var n;
|
|
2129
|
-
$("mounted", "2.0.
|
|
2129
|
+
$("mounted", "2.0.5"), $("workers", lt()), ro(), $("plugins", Ve.length ? Ve.map((f) => f.constructor.pluginName).join(", ") : "none"), ve() && $("using test mode"), S() && mr(S()), o() !== void 0 && $("auto", o()), E() !== void 0 && vn(E()), b(L, (n = l(re)) == null ? void 0 : n.closest("form"), !0), l(L) && (l(L).addEventListener("submit", an, { capture: !0 }), l(L).addEventListener("reset", ln), (o() === "onfocus" || J() === "focus") && l(L).addEventListener("focusin", on)), o() === "onload" && (Oe() ? kt() : De()), l(vr) && (ee() || K()) && $("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
|
|
2130
2130
|
Fe("load");
|
|
2131
2131
|
});
|
|
2132
2132
|
});
|
|
2133
|
-
function
|
|
2133
|
+
function qt(n, f) {
|
|
2134
2134
|
return btoa(JSON.stringify({
|
|
2135
2135
|
algorithm: n.algorithm,
|
|
2136
2136
|
challenge: n.challenge,
|
|
@@ -2141,21 +2141,21 @@ function Sl(e, t) {
|
|
|
2141
2141
|
took: f.took
|
|
2142
2142
|
}));
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2144
|
+
function Xi() {
|
|
2145
2145
|
for (const n of Ve)
|
|
2146
2146
|
n.destroy();
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2149
|
-
s() && yt() && l(
|
|
2148
|
+
function Kr() {
|
|
2149
|
+
s() && yt() && l(I) === C.VERIFIED ? De() : ut(C.EXPIRED, l(P).expired);
|
|
2150
2150
|
}
|
|
2151
|
-
async function
|
|
2151
|
+
async function Qi() {
|
|
2152
2152
|
var n;
|
|
2153
2153
|
if (wt())
|
|
2154
2154
|
throw $("mocking error"), new Error("Mocked error.");
|
|
2155
|
-
if (l(
|
|
2156
|
-
return $("using provided json data"), l(
|
|
2155
|
+
if (l(gr))
|
|
2156
|
+
return $("using provided json data"), l(gr);
|
|
2157
2157
|
if (ve())
|
|
2158
|
-
return $("generating test challenge", { test: ve() }),
|
|
2158
|
+
return $("generating test challenge", { test: ve() }), ll(typeof ve() != "boolean" ? +ve() : void 0);
|
|
2159
2159
|
{
|
|
2160
2160
|
if (!s() && l(L)) {
|
|
2161
2161
|
const k = l(L).getAttribute("action");
|
|
@@ -2167,7 +2167,7 @@ function Sl(e, t) {
|
|
|
2167
2167
|
const f = {
|
|
2168
2168
|
credentials: typeof d() == "boolean" ? "include" : d(),
|
|
2169
2169
|
headers: xe() !== !1 ? { "x-altcha-spam-filter": "1" } : {}
|
|
2170
|
-
}, v = await
|
|
2170
|
+
}, v = await Xr()(s(), f);
|
|
2171
2171
|
if (!v || !(v instanceof Response))
|
|
2172
2172
|
throw new Error("Custom fetch function did not return a response.");
|
|
2173
2173
|
if (v.status !== 200)
|
|
@@ -2175,24 +2175,24 @@ function Sl(e, t) {
|
|
|
2175
2175
|
const m = v.headers.get("X-Altcha-Config"), _ = await v.json(), x = new URLSearchParams((n = _.salt.split("?")) == null ? void 0 : n[1]), w = x.get("expires") || x.get("expire");
|
|
2176
2176
|
if (w) {
|
|
2177
2177
|
const k = new Date(+w * 1e3), q = isNaN(k.getTime()) ? 0 : k.getTime() - Date.now();
|
|
2178
|
-
q > 0 &&
|
|
2178
|
+
q > 0 && mr(q);
|
|
2179
2179
|
}
|
|
2180
2180
|
if (m)
|
|
2181
2181
|
try {
|
|
2182
2182
|
const k = JSON.parse(m);
|
|
2183
|
-
k && typeof k == "object" && (k.verifyurl && !k.verifyurl.startsWith("fn:") && (k.verifyurl =
|
|
2183
|
+
k && typeof k == "object" && (k.verifyurl && !k.verifyurl.startsWith("fn:") && (k.verifyurl = tn(k.verifyurl)), pn(k));
|
|
2184
2184
|
} catch (k) {
|
|
2185
2185
|
$("unable to configure from X-Altcha-Config", k);
|
|
2186
2186
|
}
|
|
2187
2187
|
return _;
|
|
2188
2188
|
}
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2190
|
+
function eo(n) {
|
|
2191
2191
|
var v, m;
|
|
2192
2192
|
const f = (v = l(L)) == null ? void 0 : v.querySelector(typeof n == "string" ? `input[name="${n}"]` : 'input[type="email"]:not([data-no-spamfilter])');
|
|
2193
2193
|
return ((m = f == null ? void 0 : f.value) == null ? void 0 : m.slice(f.value.indexOf("@"))) || void 0;
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2195
|
+
function Xr() {
|
|
2196
2196
|
let n = fetch;
|
|
2197
2197
|
if (p())
|
|
2198
2198
|
if ($("using customfetch"), typeof p() == "string") {
|
|
@@ -2202,7 +2202,7 @@ function Sl(e, t) {
|
|
|
2202
2202
|
n = p();
|
|
2203
2203
|
return n;
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function Qr(n, f = [
|
|
2206
2206
|
j() || "",
|
|
2207
2207
|
document.documentElement.lang || "",
|
|
2208
2208
|
...navigator.languages
|
|
@@ -2213,7 +2213,7 @@ function Sl(e, t) {
|
|
|
2213
2213
|
);
|
|
2214
2214
|
return n[m || "en"];
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function to() {
|
|
2217
2217
|
return xe() === "ipAddress" ? {
|
|
2218
2218
|
blockedCountries: void 0,
|
|
2219
2219
|
classifier: void 0,
|
|
@@ -2238,7 +2238,7 @@ function Sl(e, t) {
|
|
|
2238
2238
|
timeZone: void 0
|
|
2239
2239
|
};
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function en(n) {
|
|
2242
2242
|
var v;
|
|
2243
2243
|
return [
|
|
2244
2244
|
...((v = l(L)) == null ? void 0 : v.querySelectorAll(n != null && n.length ? n.map((m) => `input[name="${m}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
|
|
@@ -2251,53 +2251,53 @@ function Sl(e, t) {
|
|
|
2251
2251
|
{}
|
|
2252
2252
|
);
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function tn(n, f) {
|
|
2255
2255
|
const v = new URL(s() || location.origin), m = new URL(n, v);
|
|
2256
2256
|
if (m.search || (m.search = v.search), f)
|
|
2257
2257
|
for (const _ in f)
|
|
2258
2258
|
f[_] !== void 0 && f[_] !== null && m.searchParams.set(_, f[_]);
|
|
2259
2259
|
return m.toString();
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function ro() {
|
|
2262
2262
|
const n = Ut() !== void 0 ? Ut().split(",") : void 0;
|
|
2263
2263
|
for (const f of globalThis.altchaPlugins)
|
|
2264
2264
|
(!n || n.includes(f.pluginName)) && Ve.push(new f({
|
|
2265
2265
|
el: l(re),
|
|
2266
2266
|
clarify: kt,
|
|
2267
2267
|
dispatch: Fe,
|
|
2268
|
-
getConfiguration:
|
|
2269
|
-
getFloatingAnchor:
|
|
2270
|
-
getState:
|
|
2268
|
+
getConfiguration: mn,
|
|
2269
|
+
getFloatingAnchor: bn,
|
|
2270
|
+
getState: wn,
|
|
2271
2271
|
log: $,
|
|
2272
2272
|
reset: ut,
|
|
2273
|
-
solve:
|
|
2273
|
+
solve: _n,
|
|
2274
2274
|
setState: Ae,
|
|
2275
|
-
setFloatingAnchor:
|
|
2276
|
-
verify:
|
|
2275
|
+
setFloatingAnchor: En,
|
|
2276
|
+
verify: De
|
|
2277
2277
|
}));
|
|
2278
2278
|
}
|
|
2279
2279
|
function $(...n) {
|
|
2280
2280
|
(h() || n.some((f) => f instanceof Error)) && console[n[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${ae()}]`, ...n);
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function no() {
|
|
2283
2283
|
b(H, Q.PAUSED, !0);
|
|
2284
2284
|
}
|
|
2285
|
-
function
|
|
2285
|
+
function io(n) {
|
|
2286
2286
|
b(H, Q.ERROR, !0);
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function oo() {
|
|
2289
2289
|
b(H, Q.READY, !0);
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function ao() {
|
|
2292
2292
|
b(H, Q.LOADING, !0);
|
|
2293
2293
|
}
|
|
2294
|
-
function
|
|
2294
|
+
function lo() {
|
|
2295
2295
|
b(H, Q.PLAYING, !0);
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2297
|
+
function so() {
|
|
2298
2298
|
b(H, Q.PAUSED, !0);
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2300
|
+
function uo(n) {
|
|
2301
2301
|
var f;
|
|
2302
2302
|
if (n.preventDefault(), n.stopPropagation(), l(B)) {
|
|
2303
2303
|
const v = new FormData(n.target), m = String(v.get("code"));
|
|
@@ -2311,10 +2311,10 @@ function Sl(e, t) {
|
|
|
2311
2311
|
solution: l(B).solution
|
|
2312
2312
|
});
|
|
2313
2313
|
}
|
|
2314
|
-
b(Je, !0),
|
|
2315
|
-
x ? (b(B, null), Ae(C.VERIFIED), $("verified"),
|
|
2314
|
+
b(Je, !0), dn(qt(l(B).challenge, l(B).solution), m).then(({ reason: _, verified: x }) => {
|
|
2315
|
+
x ? (b(B, null), Ae(C.VERIFIED), $("verified"), Rr().then(() => {
|
|
2316
2316
|
var w;
|
|
2317
|
-
(w = l(
|
|
2317
|
+
(w = l(_r)) == null || w.focus(), Fe("verified", { payload: l(Ne) }), o() === "onsubmit" && hn(l(jt));
|
|
2318
2318
|
})) : (ut(), b(ze, _ || "Verification failed", !0));
|
|
2319
2319
|
}).catch((_) => {
|
|
2320
2320
|
b(B, null), Ae(C.ERROR, _), $("sentinel verification failed:", _);
|
|
@@ -2323,53 +2323,53 @@ function Sl(e, t) {
|
|
|
2323
2323
|
});
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function rn(n) {
|
|
2327
2327
|
var v;
|
|
2328
2328
|
const f = n.target;
|
|
2329
|
-
E() && f && !l(re).contains(f) && (l(
|
|
2329
|
+
E() && f && !l(re).contains(f) && (l(I) === C.VERIFIED && J() === !1 || l(I) === C.VERIFIED && J() === "focus" && !((v = l(L)) != null && v.matches(":focus-within")) || o() === "off" && l(I) === C.UNVERIFIED) && yn();
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2332
|
-
E() && l(
|
|
2331
|
+
function nn() {
|
|
2332
|
+
E() && l(I) !== C.UNVERIFIED && At();
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function fo(n) {
|
|
2335
2335
|
for (const f of Ve)
|
|
2336
2336
|
typeof f.onErrorChange == "function" && f.onErrorChange(l(ze));
|
|
2337
2337
|
}
|
|
2338
|
-
function nn(n) {
|
|
2339
|
-
l(R) === C.UNVERIFIED ? Te() : E() && J() === "focus" && l(R) === C.VERIFIED && mr();
|
|
2340
|
-
}
|
|
2341
2338
|
function on(n) {
|
|
2342
|
-
|
|
2343
|
-
f != null && f.hasAttribute("data-code-challenge-form") || (l(L) && o() === "onsubmit" ? l(R) === C.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), Te().then(() => {
|
|
2344
|
-
co(v);
|
|
2345
|
-
})) : l(R) !== C.VERIFIED && (n.preventDefault(), n.stopPropagation(), l(R) === C.VERIFYING && ln()) : l(L) && E() && o() === "off" && l(R) === C.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), mr()));
|
|
2339
|
+
l(I) === C.UNVERIFIED ? De() : E() && J() === "focus" && l(I) === C.VERIFIED && br();
|
|
2346
2340
|
}
|
|
2347
|
-
function an() {
|
|
2348
|
-
|
|
2341
|
+
function an(n) {
|
|
2342
|
+
const f = n.target;
|
|
2343
|
+
f != null && f.hasAttribute("data-code-challenge-form") || (b(jt, n.submitter, !0), l(L) && o() === "onsubmit" ? l(I) === C.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), De().then(() => {
|
|
2344
|
+
hn(l(jt));
|
|
2345
|
+
})) : l(I) !== C.VERIFIED && (n.preventDefault(), n.stopPropagation(), l(I) === C.VERIFYING && sn()) : l(L) && E() && o() === "off" && l(I) === C.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), br()));
|
|
2349
2346
|
}
|
|
2350
2347
|
function ln() {
|
|
2351
|
-
|
|
2348
|
+
ut();
|
|
2352
2349
|
}
|
|
2353
2350
|
function sn() {
|
|
2354
|
-
l(
|
|
2351
|
+
l(I) === C.VERIFYING && l(P).waitAlert && alert(l(P).waitAlert);
|
|
2352
|
+
}
|
|
2353
|
+
function un() {
|
|
2354
|
+
l(Me) ? l(Me).paused ? (l(Me).currentTime = 0, l(Me).play()) : l(Me).pause() : (b(pr, !0), requestAnimationFrame(() => {
|
|
2355
2355
|
var n;
|
|
2356
2356
|
(n = l(Me)) == null || n.play();
|
|
2357
2357
|
}));
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2359
|
+
function co(n) {
|
|
2360
2360
|
for (const f of Ve)
|
|
2361
|
-
typeof f.onStateChange == "function" && f.onStateChange(l(
|
|
2362
|
-
E() && l(
|
|
2361
|
+
typeof f.onStateChange == "function" && f.onStateChange(l(I));
|
|
2362
|
+
E() && l(I) !== C.UNVERIFIED && requestAnimationFrame(() => {
|
|
2363
2363
|
At();
|
|
2364
|
-
}), b(Ct, l(
|
|
2364
|
+
}), b(Ct, l(I) === C.VERIFIED);
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function fn() {
|
|
2367
2367
|
E() && At();
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function cn(n) {
|
|
2370
2370
|
return JSON.parse(n);
|
|
2371
2371
|
}
|
|
2372
|
-
async function
|
|
2372
|
+
async function ho(n) {
|
|
2373
2373
|
if (!te())
|
|
2374
2374
|
throw new Error("Attribute verifyurl not set.");
|
|
2375
2375
|
$("requesting server verification from", te());
|
|
@@ -2384,12 +2384,12 @@ function Sl(e, t) {
|
|
|
2384
2384
|
expectedCountries: X,
|
|
2385
2385
|
fields: le,
|
|
2386
2386
|
ipAddress: Ue,
|
|
2387
|
-
text:
|
|
2388
|
-
timeZone:
|
|
2389
|
-
} =
|
|
2390
|
-
f.blockedCountries = _, f.classifier = x, f.disableRules = w, f.email = k === !1 ? void 0 :
|
|
2387
|
+
text: yr,
|
|
2388
|
+
timeZone: Gt
|
|
2389
|
+
} = to();
|
|
2390
|
+
f.blockedCountries = _, f.classifier = x, f.disableRules = w, f.email = k === !1 ? void 0 : eo(k), f.expectedCountries = X, f.expectedLanguages = q || (zr ? [zr] : void 0), f.fields = le === !1 ? void 0 : en(le), f.ipAddress = Ue === !1 ? void 0 : Ue || "auto", f.text = yr, f.timeZone = Gt === !1 ? void 0 : Gt || zn();
|
|
2391
2391
|
}
|
|
2392
|
-
const v = await
|
|
2392
|
+
const v = await Xr()(te(), {
|
|
2393
2393
|
body: JSON.stringify(f),
|
|
2394
2394
|
headers: { "content-type": "application/json" },
|
|
2395
2395
|
method: "POST"
|
|
@@ -2402,12 +2402,12 @@ function Sl(e, t) {
|
|
|
2402
2402
|
if (m != null && m.payload && b(Ne, m.payload, !0), Fe("serververification", m), u() && m.classification === "BAD")
|
|
2403
2403
|
throw new Error("SpamFilter returned negative classification.");
|
|
2404
2404
|
}
|
|
2405
|
-
async function
|
|
2405
|
+
async function dn(n, f) {
|
|
2406
2406
|
if (!te())
|
|
2407
2407
|
throw new Error("Attribute verifyurl not set.");
|
|
2408
2408
|
$("requesting sentinel verification from", te());
|
|
2409
2409
|
const v = { code: f, payload: n };
|
|
2410
|
-
Ze() && (v.fields = Ze().fields ?
|
|
2410
|
+
Ze() && (v.fields = Ze().fields ? en() : void 0, v.timeZone = Ze().timeZone ? zn() : void 0);
|
|
2411
2411
|
const m = await fetch(te(), {
|
|
2412
2412
|
body: JSON.stringify(v),
|
|
2413
2413
|
headers: { "content-type": "application/json" },
|
|
@@ -2420,33 +2420,33 @@ function Sl(e, t) {
|
|
|
2420
2420
|
const _ = await m.json();
|
|
2421
2421
|
return _ != null && _.payload && b(Ne, _.payload, !0), Fe("sentinelverification", _), _;
|
|
2422
2422
|
}
|
|
2423
|
-
function
|
|
2423
|
+
function hn(n) {
|
|
2424
2424
|
var f;
|
|
2425
2425
|
l(L) && "requestSubmit" in l(L) ? l(L).requestSubmit(n) : (f = l(L)) != null && f.reportValidity() && (n ? n.click() : l(L).submit());
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2428
|
-
$("expire", n), ke && (clearTimeout(ke), ke = null), n < 1 ?
|
|
2427
|
+
function mr(n) {
|
|
2428
|
+
$("expire", n), ke && (clearTimeout(ke), ke = null), n < 1 ? Kr() : ke = setTimeout(Kr, n);
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2431
|
-
$("floating", n), E() !== n && (l(re).style.left = "", l(re).style.top = ""), E(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : E()), E() ? (o() || o("onsubmit"), document.addEventListener("scroll",
|
|
2430
|
+
function vn(n) {
|
|
2431
|
+
$("floating", n), E() !== n && (l(re).style.left = "", l(re).style.top = ""), E(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : E()), E() ? (o() || o("onsubmit"), document.addEventListener("scroll", nn), document.addEventListener("click", rn), window.addEventListener("resize", fn)) : o() === "onsubmit" && o(void 0);
|
|
2432
2432
|
}
|
|
2433
|
-
function
|
|
2433
|
+
function gn(n) {
|
|
2434
2434
|
if (!n.algorithm)
|
|
2435
2435
|
throw new Error("Invalid challenge. Property algorithm is missing.");
|
|
2436
2436
|
if (n.signature === void 0)
|
|
2437
2437
|
throw new Error("Invalid challenge. Property signature is missing.");
|
|
2438
|
-
if (!
|
|
2439
|
-
throw new Error(`Unknown algorithm value. Allowed values: ${
|
|
2438
|
+
if (!Zr.includes(n.algorithm.toUpperCase()))
|
|
2439
|
+
throw new Error(`Unknown algorithm value. Allowed values: ${Zr.join(", ")}`);
|
|
2440
2440
|
if (!n.challenge || n.challenge.length < 40)
|
|
2441
2441
|
throw new Error("Challenge is too short. Min. 40 chars.");
|
|
2442
2442
|
if (!n.salt || n.salt.length < 10)
|
|
2443
2443
|
throw new Error("Salt is too short. Min. 10 chars.");
|
|
2444
2444
|
}
|
|
2445
|
-
async function
|
|
2445
|
+
async function _n(n) {
|
|
2446
2446
|
let f = null;
|
|
2447
2447
|
if ("Worker" in window) {
|
|
2448
2448
|
try {
|
|
2449
|
-
f = await
|
|
2449
|
+
f = await vo(n, n.maxNumber || n.maxnumber || me());
|
|
2450
2450
|
} catch (v) {
|
|
2451
2451
|
$(v);
|
|
2452
2452
|
}
|
|
@@ -2454,15 +2454,15 @@ function Sl(e, t) {
|
|
|
2454
2454
|
return { data: n, solution: f };
|
|
2455
2455
|
}
|
|
2456
2456
|
if ("obfuscated" in n) {
|
|
2457
|
-
const v = await
|
|
2457
|
+
const v = await cl(n.obfuscated, n.key, n.maxNumber || n.maxnumber);
|
|
2458
2458
|
return { data: n, solution: await v.promise };
|
|
2459
2459
|
}
|
|
2460
2460
|
return {
|
|
2461
2461
|
data: n,
|
|
2462
|
-
solution: await
|
|
2462
|
+
solution: await sl(n.challenge, n.salt, n.algorithm, n.maxNumber || n.maxnumber || me()).promise
|
|
2463
2463
|
};
|
|
2464
2464
|
}
|
|
2465
|
-
async function
|
|
2465
|
+
async function vo(n, f = typeof ve() == "number" ? ve() : n.maxNumber || n.maxnumber || me(), v = Math.ceil(lt())) {
|
|
2466
2466
|
const m = [];
|
|
2467
2467
|
v = Math.min(16, f, Math.max(1, v));
|
|
2468
2468
|
for (let w = 0; w < v; w++)
|
|
@@ -2500,10 +2500,10 @@ function Sl(e, t) {
|
|
|
2500
2500
|
if ("clarify" in n && typeof n.clarify == "function")
|
|
2501
2501
|
return n.clarify();
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2504
|
-
n.obfuscated !== void 0 && Oe(n.obfuscated), n.auto !== void 0 && (o(n.auto), o() === "onload" && (Oe() ? kt() :
|
|
2503
|
+
function pn(n) {
|
|
2504
|
+
n.obfuscated !== void 0 && Oe(n.obfuscated), n.auto !== void 0 && (o(n.auto), o() === "onload" && (Oe() ? kt() : De())), n.blockspam !== void 0 && u(!!n.blockspam), n.customfetch !== void 0 && p(n.customfetch), n.floatinganchor !== void 0 && V(n.floatinganchor), n.delay !== void 0 && g(n.delay), n.floatingoffset !== void 0 && ce(n.floatingoffset), n.floating !== void 0 && vn(n.floating), n.expire !== void 0 && (mr(n.expire), S(n.expire)), n.challenge && (c(typeof n.challenge == "string" ? n.challenge : JSON.stringify(n.challenge)), gn(l(gr))), n.challengeurl !== void 0 && s(n.challengeurl), n.debug !== void 0 && h(!!n.debug), n.hidefooter !== void 0 && ee(!!n.hidefooter), n.hidelogo !== void 0 && K(!!n.hidelogo), n.language !== void 0 && at(Qr(a(), [n.language])), n.maxnumber !== void 0 && me(+n.maxnumber), n.mockerror !== void 0 && wt(!!n.mockerror), n.name !== void 0 && ae(n.name), n.refetchonexpire !== void 0 && yt(!!n.refetchonexpire), n.sentinel !== void 0 && typeof n.sentinel == "object" && Ze(n.sentinel), n.spamfilter !== void 0 && xe(typeof n.spamfilter == "object" ? n.spamfilter : !!n.spamfilter), n.strings && at(typeof n.strings == "string" ? n.strings : JSON.stringify(n.strings)), n.test !== void 0 && ve(typeof n.test == "number" ? n.test : !!n.test), n.verifyurl !== void 0 && te(n.verifyurl), n.workers !== void 0 && lt(+n.workers), n.workerurl !== void 0 && Et(n.workerurl);
|
|
2505
2505
|
}
|
|
2506
|
-
function
|
|
2506
|
+
function mn() {
|
|
2507
2507
|
return {
|
|
2508
2508
|
auto: o(),
|
|
2509
2509
|
blockspam: u(),
|
|
@@ -2529,16 +2529,16 @@ function Sl(e, t) {
|
|
|
2529
2529
|
workerurl: Et()
|
|
2530
2530
|
};
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2532
|
+
function bn() {
|
|
2533
2533
|
return l(st);
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function go(n) {
|
|
2536
2536
|
return Ve.find((f) => f.constructor.pluginName === n);
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2539
|
-
return l(
|
|
2538
|
+
function wn() {
|
|
2539
|
+
return l(I);
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2541
|
+
function yn() {
|
|
2542
2542
|
l(re).style.display = "none";
|
|
2543
2543
|
}
|
|
2544
2544
|
function At(n = 20) {
|
|
@@ -2554,93 +2554,93 @@ function Sl(e, t) {
|
|
|
2554
2554
|
$("unable to find floating anchor element");
|
|
2555
2555
|
}
|
|
2556
2556
|
function ut(n = C.UNVERIFIED, f = null) {
|
|
2557
|
-
ke && (clearTimeout(ke), ke = null), b(Ct, !1), b(Ne, null), b(B, null), b(
|
|
2557
|
+
ke && (clearTimeout(ke), ke = null), b(Ct, !1), b(Ne, null), b(B, null), b(pr, !1), b(H, null), Ae(n, f);
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2559
|
+
function En(n) {
|
|
2560
2560
|
b(st, n, !0);
|
|
2561
2561
|
}
|
|
2562
2562
|
function Ae(n, f = null) {
|
|
2563
|
-
b(
|
|
2563
|
+
b(I, n, !0), b(ze, f, !0), Fe("statechange", {
|
|
2564
2564
|
payload: l(Ne),
|
|
2565
|
-
state: l(
|
|
2565
|
+
state: l(I)
|
|
2566
2566
|
});
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function br() {
|
|
2569
2569
|
l(re).style.display = "block", E() && At();
|
|
2570
2570
|
}
|
|
2571
|
-
async function
|
|
2572
|
-
return ut(C.VERIFYING), await new Promise((n) => setTimeout(n, g() || 0)),
|
|
2571
|
+
async function De() {
|
|
2572
|
+
return ut(C.VERIFYING), await new Promise((n) => setTimeout(n, g() || 0)), Qi().then((n) => (gn(n), $("challenge", n), _n(n))).then(({ data: n, solution: f }) => {
|
|
2573
2573
|
var v;
|
|
2574
2574
|
if ($("solution", f), !f || n && "challenge" in n && !("clearText" in f))
|
|
2575
2575
|
if ((f == null ? void 0 : f.number) !== void 0 && "challenge" in n)
|
|
2576
2576
|
if (te() && "codeChallenge" in n)
|
|
2577
|
-
((v = document.activeElement) == null ? void 0 : v.tagName)
|
|
2577
|
+
["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(((v = document.activeElement) == null ? void 0 : v.tagName) || "") && y() === !1 && document.activeElement.blur(), b(B, { challenge: n, solution: f }, !0);
|
|
2578
2578
|
else {
|
|
2579
2579
|
if (te() && Ze() !== void 0)
|
|
2580
|
-
return
|
|
2580
|
+
return dn(qt(n, f));
|
|
2581
2581
|
if (te())
|
|
2582
|
-
return
|
|
2583
|
-
b(Ne,
|
|
2582
|
+
return ho(qt(n, f));
|
|
2583
|
+
b(Ne, qt(n, f), !0), $("payload", l(Ne));
|
|
2584
2584
|
}
|
|
2585
2585
|
else
|
|
2586
2586
|
throw $("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
|
|
2587
2587
|
}).then(() => {
|
|
2588
|
-
l(B) ? (Ae(C.CODE),
|
|
2588
|
+
l(B) ? (Ae(C.CODE), Rr().then(() => {
|
|
2589
2589
|
Fe("code", { codeChallenge: l(B) });
|
|
2590
|
-
})) : (Ae(C.VERIFIED), $("verified"),
|
|
2590
|
+
})) : (Ae(C.VERIFIED), $("verified"), Rr().then(() => {
|
|
2591
2591
|
Fe("verified", { payload: l(Ne) });
|
|
2592
2592
|
}));
|
|
2593
2593
|
}).catch((n) => {
|
|
2594
2594
|
$(n), Ae(C.ERROR, n.message);
|
|
2595
2595
|
});
|
|
2596
2596
|
}
|
|
2597
|
-
var
|
|
2598
|
-
|
|
2599
|
-
var
|
|
2600
|
-
let
|
|
2601
|
-
var
|
|
2597
|
+
var Cn = Sl(), xn = $t(Cn);
|
|
2598
|
+
Ba(xn, t, "default", {});
|
|
2599
|
+
var Rt = Z(xn, 2), wr = W(Rt), Bt = W(wr);
|
|
2600
|
+
let kn;
|
|
2601
|
+
var An = W(Bt);
|
|
2602
2602
|
{
|
|
2603
|
-
var
|
|
2603
|
+
var _o = (n) => {
|
|
2604
2604
|
Ir(n);
|
|
2605
2605
|
};
|
|
2606
|
-
z(
|
|
2607
|
-
l(
|
|
2606
|
+
z(An, (n) => {
|
|
2607
|
+
l(I) === C.VERIFYING && n(_o);
|
|
2608
2608
|
});
|
|
2609
2609
|
}
|
|
2610
|
-
var Ke = Z(
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2610
|
+
var Ke = Z(An, 2);
|
|
2611
|
+
Gn(Ke), Ke.__change = [
|
|
2612
|
+
gl,
|
|
2613
|
+
I,
|
|
2614
2614
|
xe,
|
|
2615
2615
|
L,
|
|
2616
2616
|
Ct,
|
|
2617
2617
|
Oe,
|
|
2618
2618
|
kt,
|
|
2619
|
-
|
|
2620
|
-
],
|
|
2621
|
-
var
|
|
2619
|
+
De
|
|
2620
|
+
], Zt(Ke, (n) => b(_r, n), () => l(_r)), Y(Bt);
|
|
2621
|
+
var Ht = Z(Bt, 2), po = W(Ht);
|
|
2622
2622
|
{
|
|
2623
|
-
var
|
|
2624
|
-
var f =
|
|
2623
|
+
var mo = (n) => {
|
|
2624
|
+
var f = Wt(), v = $t(f);
|
|
2625
2625
|
Xe(v, () => l(P).verified), U(n, f);
|
|
2626
|
-
},
|
|
2626
|
+
}, bo = (n, f) => {
|
|
2627
2627
|
{
|
|
2628
2628
|
var v = (_) => {
|
|
2629
|
-
var x =
|
|
2629
|
+
var x = Wt(), w = $t(x);
|
|
2630
2630
|
Xe(w, () => l(P).verifying), U(_, x);
|
|
2631
2631
|
}, m = (_, x) => {
|
|
2632
2632
|
{
|
|
2633
2633
|
var w = (q) => {
|
|
2634
|
-
var X =
|
|
2634
|
+
var X = Wt(), le = $t(X);
|
|
2635
2635
|
Xe(le, () => l(P).verificationRequired), U(q, X);
|
|
2636
2636
|
}, k = (q) => {
|
|
2637
|
-
var X =
|
|
2637
|
+
var X = Wt(), le = $t(X);
|
|
2638
2638
|
Xe(le, () => l(P).label), U(q, X);
|
|
2639
2639
|
};
|
|
2640
2640
|
z(
|
|
2641
2641
|
_,
|
|
2642
2642
|
(q) => {
|
|
2643
|
-
l(
|
|
2643
|
+
l(I) === C.CODE ? q(w) : q(k, !1);
|
|
2644
2644
|
},
|
|
2645
2645
|
x
|
|
2646
2646
|
);
|
|
@@ -2649,94 +2649,94 @@ function Sl(e, t) {
|
|
|
2649
2649
|
z(
|
|
2650
2650
|
n,
|
|
2651
2651
|
(_) => {
|
|
2652
|
-
l(
|
|
2652
|
+
l(I) === C.VERIFYING ? _(v) : _(m, !1);
|
|
2653
2653
|
},
|
|
2654
2654
|
f
|
|
2655
2655
|
);
|
|
2656
2656
|
}
|
|
2657
2657
|
};
|
|
2658
|
-
z(
|
|
2659
|
-
l(
|
|
2658
|
+
z(po, (n) => {
|
|
2659
|
+
l(I) === C.VERIFIED ? n(mo) : n(bo, !1);
|
|
2660
2660
|
});
|
|
2661
2661
|
}
|
|
2662
|
-
Y(
|
|
2663
|
-
var
|
|
2662
|
+
Y(Ht);
|
|
2663
|
+
var Rn = Z(Ht, 2);
|
|
2664
2664
|
{
|
|
2665
|
-
var
|
|
2666
|
-
var f =
|
|
2667
|
-
|
|
2668
|
-
|
|
2665
|
+
var wo = (n) => {
|
|
2666
|
+
var f = pl();
|
|
2667
|
+
Gn(f), Re(() => {
|
|
2668
|
+
T(f, "name", ae()), Za(f, l(Ne));
|
|
2669
2669
|
}), U(n, f);
|
|
2670
2670
|
};
|
|
2671
|
-
z(
|
|
2672
|
-
l(
|
|
2671
|
+
z(Rn, (n) => {
|
|
2672
|
+
l(I) === C.VERIFIED && n(wo);
|
|
2673
2673
|
});
|
|
2674
2674
|
}
|
|
2675
|
-
var
|
|
2675
|
+
var In = Z(Rn, 2);
|
|
2676
2676
|
{
|
|
2677
|
-
var
|
|
2678
|
-
var f =
|
|
2679
|
-
|
|
2677
|
+
var yo = (n) => {
|
|
2678
|
+
var f = ml(), v = W(f);
|
|
2679
|
+
T(v, "href", Ji), Y(f), Re(() => T(v, "aria-label", l(P).ariaLinkLabel)), U(n, f);
|
|
2680
2680
|
};
|
|
2681
|
-
z(
|
|
2682
|
-
(K() !== !0 || l(
|
|
2681
|
+
z(In, (n) => {
|
|
2682
|
+
(K() !== !0 || l(vr)) && n(yo);
|
|
2683
2683
|
});
|
|
2684
2684
|
}
|
|
2685
|
-
var
|
|
2685
|
+
var Eo = Z(In, 2);
|
|
2686
2686
|
{
|
|
2687
|
-
var
|
|
2688
|
-
var f =
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2687
|
+
var Co = (n) => {
|
|
2688
|
+
var f = xl(), v = Z(W(f), 2), m = W(v), _ = Z(m, 2);
|
|
2689
|
+
Oa(_, !y()), _.__keydown = [
|
|
2690
|
+
hl,
|
|
2691
|
+
un
|
|
2692
2692
|
];
|
|
2693
2693
|
var x = Z(_, 2), w = W(x), k = W(w);
|
|
2694
2694
|
{
|
|
2695
2695
|
var q = (be) => {
|
|
2696
|
-
var G =
|
|
2697
|
-
G.__click =
|
|
2698
|
-
var
|
|
2696
|
+
var G = El();
|
|
2697
|
+
G.__click = un;
|
|
2698
|
+
var Yt = W(G);
|
|
2699
2699
|
{
|
|
2700
|
-
var
|
|
2700
|
+
var It = (ft) => {
|
|
2701
2701
|
Ir(ft, () => 20);
|
|
2702
|
-
},
|
|
2702
|
+
}, To = (ft, No) => {
|
|
2703
2703
|
{
|
|
2704
|
-
var
|
|
2705
|
-
var
|
|
2706
|
-
U(ct,
|
|
2707
|
-
},
|
|
2704
|
+
var Do = (ct) => {
|
|
2705
|
+
var Er = bl();
|
|
2706
|
+
U(ct, Er);
|
|
2707
|
+
}, Lo = (ct, Er) => {
|
|
2708
2708
|
{
|
|
2709
|
-
var
|
|
2710
|
-
var
|
|
2711
|
-
U(dt,
|
|
2712
|
-
},
|
|
2713
|
-
var
|
|
2714
|
-
U(dt,
|
|
2709
|
+
var Po = (dt) => {
|
|
2710
|
+
var Cr = wl();
|
|
2711
|
+
U(dt, Cr);
|
|
2712
|
+
}, Oo = (dt) => {
|
|
2713
|
+
var Cr = yl();
|
|
2714
|
+
U(dt, Cr);
|
|
2715
2715
|
};
|
|
2716
2716
|
z(
|
|
2717
2717
|
ct,
|
|
2718
2718
|
(dt) => {
|
|
2719
|
-
l(H) === Q.PLAYING ? dt(
|
|
2719
|
+
l(H) === Q.PLAYING ? dt(Po) : dt(Oo, !1);
|
|
2720
2720
|
},
|
|
2721
|
-
|
|
2721
|
+
Er
|
|
2722
2722
|
);
|
|
2723
2723
|
}
|
|
2724
2724
|
};
|
|
2725
2725
|
z(
|
|
2726
2726
|
ft,
|
|
2727
2727
|
(ct) => {
|
|
2728
|
-
l(H) === Q.ERROR ? ct(
|
|
2728
|
+
l(H) === Q.ERROR ? ct(Do) : ct(Lo, !1);
|
|
2729
2729
|
},
|
|
2730
|
-
|
|
2730
|
+
No
|
|
2731
2731
|
);
|
|
2732
2732
|
}
|
|
2733
2733
|
};
|
|
2734
|
-
z(
|
|
2735
|
-
l(H) === Q.LOADING ? ft(
|
|
2734
|
+
z(Yt, (ft) => {
|
|
2735
|
+
l(H) === Q.LOADING ? ft(It) : ft(To, !1);
|
|
2736
2736
|
});
|
|
2737
2737
|
}
|
|
2738
|
-
Y(G),
|
|
2739
|
-
|
|
2738
|
+
Y(G), Re(() => {
|
|
2739
|
+
T(G, "title", l(P).getAudioChallenge), G.disabled = l(H) === Q.LOADING || l(H) === Q.ERROR || l(Je), T(G, "aria-label", l(H) === Q.LOADING ? l(P).loading : l(P).getAudioChallenge);
|
|
2740
2740
|
}), U(be, G);
|
|
2741
2741
|
};
|
|
2742
2742
|
z(k, (be) => {
|
|
@@ -2744,106 +2744,106 @@ function Sl(e, t) {
|
|
|
2744
2744
|
});
|
|
2745
2745
|
}
|
|
2746
2746
|
var X = Z(k, 2);
|
|
2747
|
-
X.__click = [
|
|
2747
|
+
X.__click = [vl, De], Y(w);
|
|
2748
2748
|
var le = Z(w, 2), Ue = W(le);
|
|
2749
2749
|
{
|
|
2750
|
-
var
|
|
2750
|
+
var yr = (be) => {
|
|
2751
2751
|
Ir(be, () => 16);
|
|
2752
2752
|
};
|
|
2753
2753
|
z(Ue, (be) => {
|
|
2754
|
-
l(Je) && be(
|
|
2754
|
+
l(Je) && be(yr);
|
|
2755
2755
|
});
|
|
2756
2756
|
}
|
|
2757
|
-
var
|
|
2757
|
+
var Gt = Z(Ue);
|
|
2758
2758
|
Y(le), Y(x);
|
|
2759
|
-
var
|
|
2759
|
+
var $o = Z(x, 2);
|
|
2760
2760
|
{
|
|
2761
|
-
var
|
|
2762
|
-
var G =
|
|
2763
|
-
Y(G),
|
|
2764
|
-
() =>
|
|
2765
|
-
]), je("loadstart", G,
|
|
2761
|
+
var So = (be) => {
|
|
2762
|
+
var G = Cl(), Yt = W(G);
|
|
2763
|
+
Y(G), Zt(G, (It) => b(Me, It), () => l(Me)), Re((It) => T(Yt, "src", It), [
|
|
2764
|
+
() => tn(l(B).challenge.codeChallenge.audio, { language: j() })
|
|
2765
|
+
]), je("loadstart", G, ao), je("canplay", G, oo), je("pause", G, so), je("playing", G, lo), je("ended", G, no), je("error", Yt, io), U(be, G);
|
|
2766
2766
|
};
|
|
2767
|
-
z(
|
|
2768
|
-
l(B).challenge.codeChallenge.audio && l(
|
|
2767
|
+
z($o, (be) => {
|
|
2768
|
+
l(B).challenge.codeChallenge.audio && l(pr) && be(So);
|
|
2769
2769
|
});
|
|
2770
2770
|
}
|
|
2771
|
-
Y(v), Y(f),
|
|
2772
|
-
|
|
2773
|
-
}), je("submit", v,
|
|
2771
|
+
Y(v), Y(f), Re(() => {
|
|
2772
|
+
T(f, "aria-label", l(P).verificationRequired), T(m, "src", l(B).challenge.codeChallenge.image), T(_, "minlength", l(B).challenge.codeChallenge.length || 1), T(_, "maxlength", l(B).challenge.codeChallenge.length), T(_, "placeholder", l(P).enterCode), T(_, "aria-label", l(H) === Q.LOADING ? l(P).loading : l(H) === Q.PLAYING ? "" : l(P).enterCodeAria), T(_, "aria-live", l(H) ? "assertive" : "polite"), T(_, "aria-busy", l(H) === Q.LOADING), _.disabled = l(Je), T(X, "aria-label", l(P).reload), T(X, "title", l(P).reload), X.disabled = l(Je), le.disabled = l(Je), T(le, "aria-label", l(P).verify), Ua(Gt, ` ${l(P).verify ?? ""}`);
|
|
2773
|
+
}), je("submit", v, uo, !0), U(n, f);
|
|
2774
2774
|
};
|
|
2775
|
-
z(
|
|
2775
|
+
z(Eo, (n) => {
|
|
2776
2776
|
var f;
|
|
2777
|
-
(f = l(B)) != null && f.challenge.codeChallenge && n(
|
|
2777
|
+
(f = l(B)) != null && f.challenge.codeChallenge && n(Co);
|
|
2778
2778
|
});
|
|
2779
2779
|
}
|
|
2780
|
-
Y(
|
|
2781
|
-
var
|
|
2780
|
+
Y(wr);
|
|
2781
|
+
var $n = Z(wr, 2);
|
|
2782
2782
|
{
|
|
2783
|
-
var
|
|
2784
|
-
var f =
|
|
2783
|
+
var xo = (n) => {
|
|
2784
|
+
var f = Rl(), v = Z(W(f), 2);
|
|
2785
2785
|
{
|
|
2786
2786
|
var m = (x) => {
|
|
2787
|
-
var w = xl(), k = W(w);
|
|
2788
|
-
Xe(k, () => l(P).expired), Y(w), Ie(() => D(w, "title", l(ze))), U(x, w);
|
|
2789
|
-
}, _ = (x) => {
|
|
2790
2787
|
var w = kl(), k = W(w);
|
|
2791
|
-
Xe(k, () => l(P).
|
|
2788
|
+
Xe(k, () => l(P).expired), Y(w), Re(() => T(w, "title", l(ze))), U(x, w);
|
|
2789
|
+
}, _ = (x) => {
|
|
2790
|
+
var w = Al(), k = W(w);
|
|
2791
|
+
Xe(k, () => l(P).error), Y(w), Re(() => T(w, "title", l(ze))), U(x, w);
|
|
2792
2792
|
};
|
|
2793
2793
|
z(v, (x) => {
|
|
2794
|
-
l(
|
|
2794
|
+
l(I) === C.EXPIRED ? x(m) : x(_, !1);
|
|
2795
2795
|
});
|
|
2796
2796
|
}
|
|
2797
2797
|
Y(f), U(n, f);
|
|
2798
2798
|
};
|
|
2799
|
-
z(
|
|
2800
|
-
(l(ze) || l(
|
|
2799
|
+
z($n, (n) => {
|
|
2800
|
+
(l(ze) || l(I) === C.EXPIRED) && n(xo);
|
|
2801
2801
|
});
|
|
2802
2802
|
}
|
|
2803
|
-
var
|
|
2803
|
+
var Sn = Z($n, 2);
|
|
2804
2804
|
{
|
|
2805
|
-
var
|
|
2805
|
+
var ko = (n) => {
|
|
2806
2806
|
var f = Il(), v = W(f), m = W(v);
|
|
2807
2807
|
Xe(m, () => l(P).footer), Y(v), Y(f), U(n, f);
|
|
2808
2808
|
};
|
|
2809
|
-
z(
|
|
2810
|
-
l(P).footer && (ee() !== !0 || l(
|
|
2809
|
+
z(Sn, (n) => {
|
|
2810
|
+
l(P).footer && (ee() !== !0 || l(vr)) && n(ko);
|
|
2811
2811
|
});
|
|
2812
2812
|
}
|
|
2813
|
-
var
|
|
2813
|
+
var Ao = Z(Sn, 2);
|
|
2814
2814
|
{
|
|
2815
|
-
var
|
|
2816
|
-
var f =
|
|
2817
|
-
|
|
2815
|
+
var Ro = (n) => {
|
|
2816
|
+
var f = $l();
|
|
2817
|
+
Zt(f, (v) => b(xt, v), () => l(xt)), U(n, f);
|
|
2818
2818
|
};
|
|
2819
|
-
z(
|
|
2820
|
-
E() && n(
|
|
2819
|
+
z(Ao, (n) => {
|
|
2820
|
+
E() && n(Ro);
|
|
2821
2821
|
});
|
|
2822
2822
|
}
|
|
2823
|
-
Y(
|
|
2823
|
+
Y(Rt), Zt(Rt, (n) => b(re, n), () => l(re)), Re(
|
|
2824
2824
|
(n) => {
|
|
2825
|
-
|
|
2825
|
+
T(Rt, "data-state", l(I)), T(Rt, "data-floating", E()), kn = Ga(Bt, 1, "altcha-checkbox", null, kn, n), T(Ke, "id", l(Jr)), Ke.required = o() !== "onsubmit" && (!E() || o() !== "off"), T(Ht, "for", l(Jr));
|
|
2826
2826
|
},
|
|
2827
2827
|
[
|
|
2828
2828
|
() => ({
|
|
2829
|
-
"altcha-checkbox-verifying": l(
|
|
2829
|
+
"altcha-checkbox-verifying": l(I) === C.VERIFYING
|
|
2830
2830
|
})
|
|
2831
2831
|
]
|
|
2832
|
-
), je("invalid", Ke,
|
|
2832
|
+
), je("invalid", Ke, sn), Ja(Ke, () => l(Ct), (n) => b(Ct, n)), U(e, Cn);
|
|
2833
2833
|
var Io = Di({
|
|
2834
2834
|
clarify: kt,
|
|
2835
|
-
configure:
|
|
2836
|
-
getConfiguration:
|
|
2837
|
-
getFloatingAnchor:
|
|
2838
|
-
getPlugin:
|
|
2839
|
-
getState:
|
|
2840
|
-
hide:
|
|
2835
|
+
configure: pn,
|
|
2836
|
+
getConfiguration: mn,
|
|
2837
|
+
getFloatingAnchor: bn,
|
|
2838
|
+
getPlugin: go,
|
|
2839
|
+
getState: wn,
|
|
2840
|
+
hide: yn,
|
|
2841
2841
|
repositionFloating: At,
|
|
2842
2842
|
reset: ut,
|
|
2843
|
-
setFloatingAnchor:
|
|
2843
|
+
setFloatingAnchor: En,
|
|
2844
2844
|
setState: Ae,
|
|
2845
|
-
show:
|
|
2846
|
-
verify:
|
|
2845
|
+
show: br,
|
|
2846
|
+
verify: De,
|
|
2847
2847
|
get auto() {
|
|
2848
2848
|
return o();
|
|
2849
2849
|
},
|
|
@@ -3033,9 +3033,9 @@ function Sl(e, t) {
|
|
|
3033
3033
|
});
|
|
3034
3034
|
return i(), Io;
|
|
3035
3035
|
}
|
|
3036
|
-
|
|
3037
|
-
customElements.define("altcha-widget",
|
|
3038
|
-
|
|
3036
|
+
Va(["change", "keydown", "click"]);
|
|
3037
|
+
customElements.define("altcha-widget", ol(
|
|
3038
|
+
Tl,
|
|
3039
3039
|
{
|
|
3040
3040
|
blockspam: { type: "Boolean" },
|
|
3041
3041
|
debug: { type: "Boolean" },
|
|
@@ -3087,16 +3087,16 @@ customElements.define("altcha-widget", il(
|
|
|
3087
3087
|
],
|
|
3088
3088
|
!1
|
|
3089
3089
|
));
|
|
3090
|
-
const
|
|
3091
|
-
function
|
|
3090
|
+
const Yi = '@keyframes altcha-spinner{to{transform:rotate(360deg)}}.altcha{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}.altcha:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]{background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999}.altcha[data-floating=top] .altcha-anchor-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom]:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top]:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]:not([data-state=unverified]){display:block}.altcha-anchor-arrow{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{align-items:center;display:flex;gap:.4rem;padding:.7rem;position:relative}.altcha-code-challenge{background:var(--altcha-color-base, white);border:1px solid var(--altcha-color-border-focus, currentColor);border-radius:var(--altcha-border-radius, 3px);filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));padding:.5rem;position:absolute;top:2.5rem;z-index:9999999}.altcha-code-challenge>form{display:flex;flex-direction:column;gap:.5rem}.altcha-code-challenge-input{border:1px solid currentColor;border-radius:3px;box-sizing:border-box;outline:0;font-size:16px;padding:.35rem;width:220px}.altcha-code-challenge-input:focus{outline:2px solid color-mix(in srgb,var(--altcha-color-active, #1D1DC9) 20%,transparent)}.altcha-code-challenge-input:disabled{opacity:.7}.altcha-code-challenge-image{background-color:#fff;border:1px solid currentColor;border-radius:3px;box-sizing:border-box;object-fit:contain;height:50px;width:220px}.altcha-code-challenge-audio,.altcha-code-challenge-reload{background:color-mix(in srgb,var(--altcha-color-text, currentColor) 10%,transparent);border:0;border-radius:3px;color:var(--altcha-color-text, currentColor);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:.35rem}.altcha-code-challenge-audio:disabled,.altcha-code-challenge-reload:disabled,.altcha-code-challenge-verify:disabled{opacity:.7;pointer-events:none}.altcha-code-challenge-audio>*,.altcha-code-challenge-reload>*{height:20px;width:20px}.altcha-code-challenge-buttons{display:flex;justify-content:space-between}.altcha-code-challenge-buttons-left{display:flex;gap:.25rem}.altcha-code-challenge-verify{align-items:center;background:var(--altcha-color-active, #1D1DC9);border:0;border-radius:3px;color:#fff;cursor:pointer;display:flex;gap:.5rem;font-size:100%;padding:.35rem 1rem}.altcha-code-challenge-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, currentColor);content:"";height:0;left:.15rem;position:absolute;top:-12px;width:0}.altcha[data-floating=top] .altcha-code-challenge{top:-150px}.altcha[data-floating=top] .altcha-code-challenge-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, currentColor);bottom:-12px;top:auto}.altcha-label{cursor:pointer;flex-grow:1}.altcha-logo{color:currentColor!important;opacity:.7}.altcha-footer:hover,.altcha-logo:hover{opacity:1}.altcha-error{color:var(--altcha-color-error-text, #f23939);display:flex;font-size:.85rem;gap:.3rem;padding:0 .7rem .7rem}.altcha-footer{align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:.75rem;opacity:.7;justify-content:end;padding:.2rem .7rem}.altcha-footer a{color:currentColor}.altcha-checkbox{display:flex;align-items:center;justify-content:center;height:24px;position:relative;width:24px}.altcha-checkbox .altcha-spinner{bottom:0;left:0;position:absolute;right:0;top:0}.altcha-checkbox input{width:18px;height:18px;margin:0}.altcha-checkbox-verifying input{appearance:none;opacity:0;pointer-events:none}.altcha-spinner{animation:altcha-spinner .75s infinite linear;transform-origin:center}';
|
|
3091
|
+
function Wi(e, t = "__altcha-css") {
|
|
3092
3092
|
if (!document.getElementById(t)) {
|
|
3093
3093
|
const r = document.createElement("style");
|
|
3094
3094
|
r.id = t, r.textContent = e, document.head.appendChild(r);
|
|
3095
3095
|
}
|
|
3096
3096
|
}
|
|
3097
|
-
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new
|
|
3098
|
-
|
|
3099
|
-
|
|
3097
|
+
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new Vo();
|
|
3098
|
+
Wi(Yi);
|
|
3099
|
+
Wi(Yi);
|
|
3100
3100
|
export {
|
|
3101
|
-
|
|
3101
|
+
Tl as Altcha
|
|
3102
3102
|
};
|