altcha 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/altcha.d.ts +39 -19
- package/dist/altcha.i18n.d.ts +39 -19
- package/dist/altcha.i18n.js +1688 -1729
- package/dist/altcha.i18n.umd.js +4 -4
- package/dist/altcha.js +1625 -1666
- package/dist/altcha.umd.cjs +4 -4
- package/dist_external/altcha.css +1 -1
- package/dist_external/altcha.d.ts +39 -19
- package/dist_external/altcha.js +1685 -1724
- package/dist_external/altcha.umd.cjs +3 -3
- package/dist_external/worker.js +1 -1
- package/dist_plugins/analytics.js +68 -82
- package/dist_plugins/analytics.umd.cjs +1 -1
- package/dist_plugins/obfuscation.js +70 -79
- package/dist_plugins/obfuscation.umd.cjs +1 -1
- package/dist_plugins/upload.js +360 -332
- package/dist_plugins/upload.umd.cjs +4 -4
- package/package.json +7 -4
package/dist/altcha.js
CHANGED
|
@@ -1,48 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
var Ho = (e, t, r) => t in e ? Bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
-
var Ee = (e, t, r) => Ho(e, typeof t != "symbol" ? t + "" : t, r), Un = (e, t, r) => t.has(e) || Vn("Cannot " + r);
|
|
7
|
-
var se = (e, t, r) => (Un(e, t, "read from private field"), r ? r.call(e) : t.get(e)), $r = (e, t, r) => t.has(e) ? Vn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Sr = (e, t, r, i) => (Un(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
|
|
8
|
-
const ni = `(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
|
-
`, jn = typeof self < "u" && self.Blob && new Blob([ni], { type: "text/javascript;charset=utf-8" });
|
|
10
|
-
function Go(e) {
|
|
1
|
+
const Yn = `(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,l=0){const o=new AbortController,a=Date.now();return{promise:(async()=>{for(let c=l;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 l="AES-GCM",o=new AbortController,a=Date.now(),s=async()=>{for(let i=n;i<=r;i+=1){if(o.signal.aborted||!c||!u)return null;try{const f=await crypto.subtle.decrypt({name:l,iv:g(i)},c,u);if(f)return{clearText:new TextDecoder().decode(f),took:Date.now()-a}}catch{}}return null};let c=null,u=null;try{u=h(e);const i=await crypto.subtle.digest("SHA-256",d.encode(t));c=await crypto.subtle.importKey("raw",i,l,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:s(),controller:o}}let y;onmessage=async e=>{const{type:t,payload:r,start:n,max:l}=e.data;let o=null;if(t==="abort")y?.abort(),y=void 0;else if(t==="work"){if("obfuscated"in r){const{key:a,obfuscated:s}=r||{};o=await m(s,a,l,n)}else{const{algorithm:a,challenge:s,salt:c}=r||{};o=w(s,c,a,l,n)}y=o.controller,o.promise.then(a=>{self.postMessage(a&&{...a,worker:!0})})}}})();
|
|
2
|
+
`, Dn = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Yn], { type: "text/javascript;charset=utf-8" });
|
|
3
|
+
function Ni(e) {
|
|
11
4
|
let t;
|
|
12
5
|
try {
|
|
13
|
-
if (t =
|
|
6
|
+
if (t = Dn && (self.URL || self.webkitURL).createObjectURL(Dn), !t) throw "";
|
|
14
7
|
const r = new Worker(t, {
|
|
15
|
-
name: e
|
|
8
|
+
name: e?.name
|
|
16
9
|
});
|
|
17
10
|
return r.addEventListener("error", () => {
|
|
18
11
|
(self.URL || self.webkitURL).revokeObjectURL(t);
|
|
19
12
|
}), r;
|
|
20
13
|
} catch {
|
|
21
14
|
return new Worker(
|
|
22
|
-
"data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
15
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(Yn),
|
|
23
16
|
{
|
|
24
|
-
name: e
|
|
17
|
+
name: e?.name
|
|
25
18
|
}
|
|
26
19
|
);
|
|
27
|
-
} finally {
|
|
28
|
-
t && (self.URL || self.webkitURL).revokeObjectURL(t);
|
|
29
20
|
}
|
|
30
21
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
function ai(e) {
|
|
22
|
+
const Li = "5";
|
|
23
|
+
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Li);
|
|
24
|
+
const Pi = 1, Oi = 4, Fi = 8, Mi = 16, Vi = 1, Ui = 2, Mr = "[", Zn = "[!", zn = "]", bt = {}, ae = Symbol(), ji = "http://www.w3.org/1999/xhtml", Nn = !1;
|
|
25
|
+
function Jn(e) {
|
|
36
26
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
37
27
|
}
|
|
38
|
-
var
|
|
39
|
-
const
|
|
28
|
+
var Kn = Array.isArray, qi = Array.prototype.indexOf, Bi = Array.from, or = Object.keys, Mt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, Hi = Object.getOwnPropertyDescriptors, Gi = Object.prototype, Wi = Array.prototype, Xn = Object.getPrototypeOf, Ln = Object.isExtensible;
|
|
29
|
+
const yt = () => {
|
|
40
30
|
};
|
|
41
|
-
function
|
|
31
|
+
function Qn(e) {
|
|
42
32
|
for (var t = 0; t < e.length; t++)
|
|
43
33
|
e[t]();
|
|
44
34
|
}
|
|
45
|
-
function
|
|
35
|
+
function Yi(e, t, r = !1) {
|
|
46
36
|
return e === void 0 ? r ? (
|
|
47
37
|
/** @type {() => V} */
|
|
48
38
|
t()
|
|
@@ -51,294 +41,291 @@ function oa(e, t, r = !1) {
|
|
|
51
41
|
t
|
|
52
42
|
) : e;
|
|
53
43
|
}
|
|
54
|
-
const
|
|
55
|
-
function
|
|
44
|
+
const me = 2, eo = 4, fr = 8, Vr = 16, De = 32, it = 64, ir = 128, fe = 256, ar = 512, le = 1024, Ie = 2048, at = 4096, wt = 8192, dr = 16384, Zi = 32768, Ur = 65536, zi = 1 << 19, to = 1 << 20, Sr = 1 << 21, Ot = Symbol("$state"), ro = Symbol("legacy props"), Ji = Symbol("");
|
|
45
|
+
function Ki(e) {
|
|
56
46
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
57
47
|
}
|
|
58
|
-
function
|
|
48
|
+
function Xi() {
|
|
59
49
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
60
50
|
}
|
|
61
|
-
function
|
|
51
|
+
function Qi(e) {
|
|
62
52
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
63
53
|
}
|
|
64
|
-
function
|
|
54
|
+
function ea() {
|
|
65
55
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
66
56
|
}
|
|
67
|
-
function
|
|
57
|
+
function ta() {
|
|
68
58
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
69
59
|
}
|
|
70
|
-
function
|
|
60
|
+
function ra(e) {
|
|
71
61
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
72
62
|
}
|
|
73
|
-
function
|
|
63
|
+
function na() {
|
|
74
64
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
75
65
|
}
|
|
76
|
-
function
|
|
66
|
+
function oa() {
|
|
77
67
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
78
68
|
}
|
|
79
|
-
function
|
|
69
|
+
function ia() {
|
|
80
70
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
81
71
|
}
|
|
82
|
-
function
|
|
72
|
+
function hr(e) {
|
|
83
73
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
84
74
|
}
|
|
85
|
-
let
|
|
86
|
-
function
|
|
87
|
-
|
|
75
|
+
let O = !1;
|
|
76
|
+
function _t(e) {
|
|
77
|
+
O = e;
|
|
88
78
|
}
|
|
89
|
-
let
|
|
90
|
-
function
|
|
79
|
+
let P;
|
|
80
|
+
function Ue(e) {
|
|
91
81
|
if (e === null)
|
|
92
|
-
throw
|
|
93
|
-
return
|
|
82
|
+
throw hr(), bt;
|
|
83
|
+
return P = e;
|
|
94
84
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
85
|
+
function Et() {
|
|
86
|
+
return Ue(
|
|
97
87
|
/** @type {TemplateNode} */
|
|
98
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ Be(P)
|
|
99
89
|
);
|
|
100
90
|
}
|
|
101
|
-
function
|
|
102
|
-
if (
|
|
103
|
-
if (/* @__PURE__ */
|
|
104
|
-
throw
|
|
105
|
-
|
|
91
|
+
function Z(e) {
|
|
92
|
+
if (O) {
|
|
93
|
+
if (/* @__PURE__ */ Be(P) !== null)
|
|
94
|
+
throw hr(), bt;
|
|
95
|
+
P = e;
|
|
106
96
|
}
|
|
107
97
|
}
|
|
108
|
-
function
|
|
109
|
-
for (var e = 0, t =
|
|
98
|
+
function aa() {
|
|
99
|
+
for (var e = 0, t = P; ; ) {
|
|
110
100
|
if (t.nodeType === 8) {
|
|
111
101
|
var r = (
|
|
112
102
|
/** @type {Comment} */
|
|
113
103
|
t.data
|
|
114
104
|
);
|
|
115
|
-
if (r ===
|
|
105
|
+
if (r === zn) {
|
|
116
106
|
if (e === 0) return t;
|
|
117
107
|
e -= 1;
|
|
118
|
-
} else (r ===
|
|
108
|
+
} else (r === Mr || r === Zn) && (e += 1);
|
|
119
109
|
}
|
|
120
|
-
var
|
|
110
|
+
var o = (
|
|
121
111
|
/** @type {TemplateNode} */
|
|
122
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ Be(t)
|
|
123
113
|
);
|
|
124
|
-
t.remove(), t =
|
|
114
|
+
t.remove(), t = o;
|
|
125
115
|
}
|
|
126
116
|
}
|
|
127
|
-
let
|
|
128
|
-
function
|
|
129
|
-
if (typeof e != "object" || e === null ||
|
|
117
|
+
let la = !1;
|
|
118
|
+
function Me(e) {
|
|
119
|
+
if (typeof e != "object" || e === null || Ot in e)
|
|
130
120
|
return e;
|
|
131
|
-
const t =
|
|
132
|
-
if (t !==
|
|
121
|
+
const t = Xn(e);
|
|
122
|
+
if (t !== Gi && t !== Wi)
|
|
133
123
|
return e;
|
|
134
|
-
var r = /* @__PURE__ */ new Map(),
|
|
135
|
-
var
|
|
136
|
-
|
|
137
|
-
var d =
|
|
138
|
-
return
|
|
124
|
+
var r = /* @__PURE__ */ new Map(), o = Kn(e), l = /* @__PURE__ */ N(0), a = $, s = (c) => {
|
|
125
|
+
var f = $;
|
|
126
|
+
Re(a);
|
|
127
|
+
var d = c();
|
|
128
|
+
return Re(f), d;
|
|
139
129
|
};
|
|
140
|
-
return
|
|
130
|
+
return o && r.set("length", /* @__PURE__ */ N(
|
|
141
131
|
/** @type {any[]} */
|
|
142
132
|
e.length
|
|
143
133
|
)), new Proxy(
|
|
144
134
|
/** @type {any} */
|
|
145
135
|
e,
|
|
146
136
|
{
|
|
147
|
-
defineProperty(
|
|
148
|
-
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) &&
|
|
149
|
-
var
|
|
150
|
-
return
|
|
151
|
-
|
|
152
|
-
|
|
137
|
+
defineProperty(c, f, d) {
|
|
138
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && na();
|
|
139
|
+
var m = r.get(f);
|
|
140
|
+
return m === void 0 ? (m = s(() => /* @__PURE__ */ N(d.value)), r.set(f, m)) : b(
|
|
141
|
+
m,
|
|
142
|
+
s(() => Me(d.value))
|
|
153
143
|
), !0;
|
|
154
144
|
},
|
|
155
|
-
deleteProperty(
|
|
156
|
-
var d = r.get(
|
|
145
|
+
deleteProperty(c, f) {
|
|
146
|
+
var d = r.get(f);
|
|
157
147
|
if (d === void 0)
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
),
|
|
148
|
+
f in c && (r.set(
|
|
149
|
+
f,
|
|
150
|
+
s(() => /* @__PURE__ */ N(ae))
|
|
151
|
+
), Ir(l));
|
|
162
152
|
else {
|
|
163
|
-
if (
|
|
164
|
-
var
|
|
153
|
+
if (o && typeof f == "string") {
|
|
154
|
+
var m = (
|
|
165
155
|
/** @type {Source<number>} */
|
|
166
156
|
r.get("length")
|
|
167
|
-
), v = Number(
|
|
168
|
-
Number.isInteger(v) && v <
|
|
157
|
+
), v = Number(f);
|
|
158
|
+
Number.isInteger(v) && v < m.v && b(m, v);
|
|
169
159
|
}
|
|
170
|
-
b(d,
|
|
160
|
+
b(d, ae), Ir(l);
|
|
171
161
|
}
|
|
172
162
|
return !0;
|
|
173
163
|
},
|
|
174
|
-
get(
|
|
175
|
-
|
|
176
|
-
if (c === Ut)
|
|
164
|
+
get(c, f, d) {
|
|
165
|
+
if (f === Ot)
|
|
177
166
|
return e;
|
|
178
|
-
var
|
|
179
|
-
if (
|
|
180
|
-
var
|
|
181
|
-
return
|
|
167
|
+
var m = r.get(f), v = f in c;
|
|
168
|
+
if (m === void 0 && (!v || rt(c, f)?.writable) && (m = s(() => /* @__PURE__ */ N(Me(v ? c[f] : ae))), r.set(f, m)), m !== void 0) {
|
|
169
|
+
var _ = i(m);
|
|
170
|
+
return _ === ae ? void 0 : _;
|
|
182
171
|
}
|
|
183
|
-
return Reflect.get(
|
|
172
|
+
return Reflect.get(c, f, d);
|
|
184
173
|
},
|
|
185
|
-
getOwnPropertyDescriptor(
|
|
186
|
-
var d = Reflect.getOwnPropertyDescriptor(
|
|
174
|
+
getOwnPropertyDescriptor(c, f) {
|
|
175
|
+
var d = Reflect.getOwnPropertyDescriptor(c, f);
|
|
187
176
|
if (d && "value" in d) {
|
|
188
|
-
var
|
|
189
|
-
|
|
177
|
+
var m = r.get(f);
|
|
178
|
+
m && (d.value = i(m));
|
|
190
179
|
} else if (d === void 0) {
|
|
191
|
-
var v = r.get(
|
|
192
|
-
if (v !== void 0 &&
|
|
180
|
+
var v = r.get(f), _ = v?.v;
|
|
181
|
+
if (v !== void 0 && _ !== ae)
|
|
193
182
|
return {
|
|
194
183
|
enumerable: !0,
|
|
195
184
|
configurable: !0,
|
|
196
|
-
value:
|
|
185
|
+
value: _,
|
|
197
186
|
writable: !0
|
|
198
187
|
};
|
|
199
188
|
}
|
|
200
189
|
return d;
|
|
201
190
|
},
|
|
202
|
-
has(
|
|
203
|
-
|
|
204
|
-
if (c === Ut)
|
|
191
|
+
has(c, f) {
|
|
192
|
+
if (f === Ot)
|
|
205
193
|
return !0;
|
|
206
|
-
var d = r.get(
|
|
207
|
-
if (d !== void 0 ||
|
|
208
|
-
d === void 0 && (d =
|
|
209
|
-
var v =
|
|
210
|
-
if (v ===
|
|
194
|
+
var d = r.get(f), m = d !== void 0 && d.v !== ae || Reflect.has(c, f);
|
|
195
|
+
if (d !== void 0 || S !== null && (!m || rt(c, f)?.writable)) {
|
|
196
|
+
d === void 0 && (d = s(() => /* @__PURE__ */ N(m ? Me(c[f]) : ae)), r.set(f, d));
|
|
197
|
+
var v = i(d);
|
|
198
|
+
if (v === ae)
|
|
211
199
|
return !1;
|
|
212
200
|
}
|
|
213
|
-
return
|
|
201
|
+
return m;
|
|
214
202
|
},
|
|
215
|
-
set(
|
|
216
|
-
var
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
$ !== void 0 ? b($, ue) : y in s && ($ = f(() => /* @__PURE__ */ L(ue)), r.set(y + "", $));
|
|
203
|
+
set(c, f, d, m) {
|
|
204
|
+
var v = r.get(f), _ = f in c;
|
|
205
|
+
if (o && f === "length")
|
|
206
|
+
for (var w = d; w < /** @type {Source<number>} */
|
|
207
|
+
v.v; w += 1) {
|
|
208
|
+
var F = r.get(w + "");
|
|
209
|
+
F !== void 0 ? b(F, ae) : w in c && (F = s(() => /* @__PURE__ */ N(ae)), r.set(w + "", F));
|
|
223
210
|
}
|
|
224
|
-
v === void 0 ? (!
|
|
211
|
+
v === void 0 ? (!_ || rt(c, f)?.writable) && (v = s(() => /* @__PURE__ */ N(void 0)), b(
|
|
225
212
|
v,
|
|
226
|
-
|
|
227
|
-
), r.set(
|
|
213
|
+
s(() => Me(d))
|
|
214
|
+
), r.set(f, v)) : (_ = v.v !== ae, b(
|
|
228
215
|
v,
|
|
229
|
-
|
|
216
|
+
s(() => Me(d))
|
|
230
217
|
));
|
|
231
|
-
var
|
|
232
|
-
if (
|
|
233
|
-
if (
|
|
218
|
+
var M = Reflect.getOwnPropertyDescriptor(c, f);
|
|
219
|
+
if (M?.set && M.set.call(m, d), !_) {
|
|
220
|
+
if (o && typeof f == "string") {
|
|
234
221
|
var U = (
|
|
235
222
|
/** @type {Source<number>} */
|
|
236
223
|
r.get("length")
|
|
237
|
-
),
|
|
238
|
-
Number.isInteger(
|
|
224
|
+
), I = Number(f);
|
|
225
|
+
Number.isInteger(I) && I >= U.v && b(U, I + 1);
|
|
239
226
|
}
|
|
240
|
-
|
|
227
|
+
Ir(l);
|
|
241
228
|
}
|
|
242
229
|
return !0;
|
|
243
230
|
},
|
|
244
|
-
ownKeys(
|
|
245
|
-
|
|
246
|
-
var
|
|
247
|
-
var
|
|
248
|
-
return
|
|
231
|
+
ownKeys(c) {
|
|
232
|
+
i(l);
|
|
233
|
+
var f = Reflect.ownKeys(c).filter((v) => {
|
|
234
|
+
var _ = r.get(v);
|
|
235
|
+
return _ === void 0 || _.v !== ae;
|
|
249
236
|
});
|
|
250
|
-
for (var [d,
|
|
251
|
-
|
|
252
|
-
return
|
|
237
|
+
for (var [d, m] of r)
|
|
238
|
+
m.v !== ae && !(d in c) && f.push(d);
|
|
239
|
+
return f;
|
|
253
240
|
},
|
|
254
241
|
setPrototypeOf() {
|
|
255
|
-
|
|
242
|
+
oa();
|
|
256
243
|
}
|
|
257
244
|
}
|
|
258
245
|
);
|
|
259
246
|
}
|
|
260
|
-
function
|
|
247
|
+
function Ir(e, t = 1) {
|
|
261
248
|
b(e, e.v + t);
|
|
262
249
|
}
|
|
263
|
-
var
|
|
264
|
-
function
|
|
265
|
-
if (
|
|
266
|
-
|
|
250
|
+
var Pn, no, oo, io;
|
|
251
|
+
function Tr() {
|
|
252
|
+
if (Pn === void 0) {
|
|
253
|
+
Pn = window, no = /Firefox/.test(navigator.userAgent);
|
|
267
254
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
268
|
-
|
|
255
|
+
oo = rt(t, "firstChild").get, io = rt(t, "nextSibling").get, Ln(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Ln(r) && (r.__t = void 0);
|
|
269
256
|
}
|
|
270
257
|
}
|
|
271
|
-
function
|
|
258
|
+
function vr(e = "") {
|
|
272
259
|
return document.createTextNode(e);
|
|
273
260
|
}
|
|
274
261
|
// @__NO_SIDE_EFFECTS__
|
|
275
|
-
function
|
|
276
|
-
return
|
|
262
|
+
function ve(e) {
|
|
263
|
+
return oo.call(e);
|
|
277
264
|
}
|
|
278
265
|
// @__NO_SIDE_EFFECTS__
|
|
279
|
-
function
|
|
280
|
-
return
|
|
266
|
+
function Be(e) {
|
|
267
|
+
return io.call(e);
|
|
281
268
|
}
|
|
282
|
-
function
|
|
283
|
-
if (!
|
|
284
|
-
return /* @__PURE__ */
|
|
269
|
+
function z(e, t) {
|
|
270
|
+
if (!O)
|
|
271
|
+
return /* @__PURE__ */ ve(e);
|
|
285
272
|
var r = (
|
|
286
273
|
/** @type {TemplateNode} */
|
|
287
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ ve(P)
|
|
288
275
|
);
|
|
289
|
-
return r === null && (r =
|
|
276
|
+
return r === null && (r = P.appendChild(vr())), Ue(r), r;
|
|
290
277
|
}
|
|
291
|
-
function
|
|
292
|
-
if (!
|
|
278
|
+
function Nt(e, t) {
|
|
279
|
+
if (!O) {
|
|
293
280
|
var r = (
|
|
294
281
|
/** @type {DocumentFragment} */
|
|
295
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ ve(
|
|
296
283
|
/** @type {Node} */
|
|
297
284
|
e
|
|
298
285
|
)
|
|
299
286
|
);
|
|
300
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
287
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Be(r) : r;
|
|
301
288
|
}
|
|
302
|
-
return
|
|
289
|
+
return P;
|
|
303
290
|
}
|
|
304
|
-
function
|
|
305
|
-
let
|
|
291
|
+
function J(e, t = 1, r = !1) {
|
|
292
|
+
let o = O ? P : e;
|
|
306
293
|
for (var l; t--; )
|
|
307
|
-
l =
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
-
if (!
|
|
310
|
-
return
|
|
311
|
-
var
|
|
312
|
-
if (r &&
|
|
313
|
-
var
|
|
314
|
-
return
|
|
315
|
-
}
|
|
316
|
-
return
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
function
|
|
294
|
+
l = o, o = /** @type {TemplateNode} */
|
|
295
|
+
/* @__PURE__ */ Be(o);
|
|
296
|
+
if (!O)
|
|
297
|
+
return o;
|
|
298
|
+
var a = o?.nodeType;
|
|
299
|
+
if (r && a !== 3) {
|
|
300
|
+
var s = vr();
|
|
301
|
+
return o === null ? l?.after(s) : o.before(s), Ue(s), s;
|
|
302
|
+
}
|
|
303
|
+
return Ue(o), /** @type {TemplateNode} */
|
|
304
|
+
o;
|
|
305
|
+
}
|
|
306
|
+
function sa(e) {
|
|
320
307
|
e.textContent = "";
|
|
321
308
|
}
|
|
322
|
-
function
|
|
309
|
+
function ao(e) {
|
|
323
310
|
return e === this.v;
|
|
324
311
|
}
|
|
325
|
-
function
|
|
312
|
+
function lo(e, t) {
|
|
326
313
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
327
314
|
}
|
|
328
|
-
function
|
|
329
|
-
return !
|
|
315
|
+
function jr(e) {
|
|
316
|
+
return !lo(e, this.v);
|
|
330
317
|
}
|
|
331
318
|
// @__NO_SIDE_EFFECTS__
|
|
332
|
-
function
|
|
333
|
-
var t =
|
|
319
|
+
function gr(e) {
|
|
320
|
+
var t = me | Ie, r = $ !== null && ($.f & me) !== 0 ? (
|
|
334
321
|
/** @type {Derived} */
|
|
335
|
-
|
|
322
|
+
$
|
|
336
323
|
) : null;
|
|
337
|
-
return
|
|
338
|
-
ctx:
|
|
324
|
+
return S === null || r !== null && (r.f & fe) !== 0 ? t |= fe : S.f |= to, {
|
|
325
|
+
ctx: ne,
|
|
339
326
|
deps: null,
|
|
340
327
|
effects: null,
|
|
341
|
-
equals:
|
|
328
|
+
equals: ao,
|
|
342
329
|
f: t,
|
|
343
330
|
fn: e,
|
|
344
331
|
reactions: null,
|
|
@@ -348,33 +335,33 @@ function _r(e) {
|
|
|
348
335
|
null
|
|
349
336
|
),
|
|
350
337
|
wv: 0,
|
|
351
|
-
parent: r ??
|
|
338
|
+
parent: r ?? S
|
|
352
339
|
};
|
|
353
340
|
}
|
|
354
341
|
// @__NO_SIDE_EFFECTS__
|
|
355
|
-
function
|
|
356
|
-
const t = /* @__PURE__ */
|
|
357
|
-
return
|
|
342
|
+
function Lt(e) {
|
|
343
|
+
const t = /* @__PURE__ */ gr(e);
|
|
344
|
+
return wo(t), t;
|
|
358
345
|
}
|
|
359
346
|
// @__NO_SIDE_EFFECTS__
|
|
360
|
-
function
|
|
361
|
-
const t = /* @__PURE__ */
|
|
362
|
-
return t.equals =
|
|
347
|
+
function ua(e) {
|
|
348
|
+
const t = /* @__PURE__ */ gr(e);
|
|
349
|
+
return t.equals = jr, t;
|
|
363
350
|
}
|
|
364
|
-
function
|
|
351
|
+
function so(e) {
|
|
365
352
|
var t = e.effects;
|
|
366
353
|
if (t !== null) {
|
|
367
354
|
e.effects = null;
|
|
368
355
|
for (var r = 0; r < t.length; r += 1)
|
|
369
|
-
|
|
356
|
+
je(
|
|
370
357
|
/** @type {Effect} */
|
|
371
358
|
t[r]
|
|
372
359
|
);
|
|
373
360
|
}
|
|
374
361
|
}
|
|
375
|
-
function
|
|
362
|
+
function ca(e) {
|
|
376
363
|
for (var t = e.parent; t !== null; ) {
|
|
377
|
-
if ((t.f &
|
|
364
|
+
if ((t.f & me) === 0)
|
|
378
365
|
return (
|
|
379
366
|
/** @type {Effect} */
|
|
380
367
|
t
|
|
@@ -383,34 +370,34 @@ function Ea(e) {
|
|
|
383
370
|
}
|
|
384
371
|
return null;
|
|
385
372
|
}
|
|
386
|
-
function
|
|
387
|
-
var t, r =
|
|
388
|
-
|
|
373
|
+
function uo(e) {
|
|
374
|
+
var t, r = S;
|
|
375
|
+
qe(ca(e));
|
|
389
376
|
try {
|
|
390
|
-
|
|
377
|
+
so(e), t = ko(e);
|
|
391
378
|
} finally {
|
|
392
|
-
|
|
379
|
+
qe(r);
|
|
393
380
|
}
|
|
394
381
|
return t;
|
|
395
382
|
}
|
|
396
|
-
function
|
|
397
|
-
var t =
|
|
398
|
-
|
|
383
|
+
function co(e) {
|
|
384
|
+
var t = uo(e), r = (Ve || (e.f & fe) !== 0) && e.deps !== null ? at : le;
|
|
385
|
+
_e(e, r), e.equals(t) || (e.v = t, e.wv = xo());
|
|
399
386
|
}
|
|
400
|
-
function
|
|
401
|
-
|
|
387
|
+
function fa(e) {
|
|
388
|
+
S === null && $ === null && Qi(), $ !== null && ($.f & fe) !== 0 && S === null && Xi(), qt && Ki();
|
|
402
389
|
}
|
|
403
|
-
function
|
|
390
|
+
function da(e, t) {
|
|
404
391
|
var r = t.last;
|
|
405
392
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
406
393
|
}
|
|
407
|
-
function
|
|
408
|
-
var l =
|
|
409
|
-
ctx:
|
|
394
|
+
function lt(e, t, r, o = !0) {
|
|
395
|
+
var l = S, a = {
|
|
396
|
+
ctx: ne,
|
|
410
397
|
deps: null,
|
|
411
398
|
nodes_start: null,
|
|
412
399
|
nodes_end: null,
|
|
413
|
-
f: e |
|
|
400
|
+
f: e | Ie,
|
|
414
401
|
first: null,
|
|
415
402
|
fn: t,
|
|
416
403
|
last: null,
|
|
@@ -423,463 +410,461 @@ function ut(e, t, r, i = !0) {
|
|
|
423
410
|
};
|
|
424
411
|
if (r)
|
|
425
412
|
try {
|
|
426
|
-
|
|
427
|
-
} catch (
|
|
428
|
-
throw
|
|
413
|
+
Wr(a), a.f |= Zi;
|
|
414
|
+
} catch (f) {
|
|
415
|
+
throw je(a), f;
|
|
429
416
|
}
|
|
430
|
-
else t !== null &&
|
|
431
|
-
var
|
|
432
|
-
if (!
|
|
433
|
-
var
|
|
417
|
+
else t !== null && mr(a);
|
|
418
|
+
var s = r && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (to | ir)) === 0;
|
|
419
|
+
if (!s && o && (l !== null && da(a, l), $ !== null && ($.f & me) !== 0)) {
|
|
420
|
+
var c = (
|
|
434
421
|
/** @type {Derived} */
|
|
435
|
-
|
|
422
|
+
$
|
|
436
423
|
);
|
|
437
|
-
(
|
|
424
|
+
(c.effects ??= []).push(a);
|
|
438
425
|
}
|
|
439
|
-
return
|
|
426
|
+
return a;
|
|
440
427
|
}
|
|
441
|
-
function
|
|
442
|
-
const t =
|
|
443
|
-
return
|
|
428
|
+
function qr(e) {
|
|
429
|
+
const t = lt(fr, null, !1);
|
|
430
|
+
return _e(t, le), t.teardown = e, t;
|
|
444
431
|
}
|
|
445
|
-
function
|
|
446
|
-
|
|
447
|
-
var t =
|
|
432
|
+
function Dr(e) {
|
|
433
|
+
fa();
|
|
434
|
+
var t = S !== null && (S.f & De) !== 0 && ne !== null && !ne.m;
|
|
448
435
|
if (t) {
|
|
449
436
|
var r = (
|
|
450
437
|
/** @type {ComponentContext} */
|
|
451
|
-
|
|
438
|
+
ne
|
|
452
439
|
);
|
|
453
|
-
(r.e
|
|
440
|
+
(r.e ??= []).push({
|
|
454
441
|
fn: e,
|
|
455
|
-
effect:
|
|
456
|
-
reaction:
|
|
442
|
+
effect: S,
|
|
443
|
+
reaction: $
|
|
457
444
|
});
|
|
458
445
|
} else {
|
|
459
|
-
var
|
|
460
|
-
return
|
|
446
|
+
var o = Br(e);
|
|
447
|
+
return o;
|
|
461
448
|
}
|
|
462
449
|
}
|
|
463
|
-
function
|
|
464
|
-
const t =
|
|
450
|
+
function ha(e) {
|
|
451
|
+
const t = lt(it, e, !0);
|
|
465
452
|
return () => {
|
|
466
|
-
|
|
453
|
+
je(t);
|
|
467
454
|
};
|
|
468
455
|
}
|
|
469
|
-
function
|
|
470
|
-
const t =
|
|
471
|
-
return (r = {}) => new Promise((
|
|
472
|
-
r.outro ?
|
|
473
|
-
|
|
474
|
-
}) : (
|
|
456
|
+
function va(e) {
|
|
457
|
+
const t = lt(it, e, !0);
|
|
458
|
+
return (r = {}) => new Promise((o) => {
|
|
459
|
+
r.outro ? Lr(t, () => {
|
|
460
|
+
je(t), o(void 0);
|
|
461
|
+
}) : (je(t), o(void 0));
|
|
475
462
|
});
|
|
476
463
|
}
|
|
477
|
-
function
|
|
478
|
-
return
|
|
464
|
+
function Br(e) {
|
|
465
|
+
return lt(eo, e, !1);
|
|
479
466
|
}
|
|
480
|
-
function
|
|
481
|
-
return
|
|
467
|
+
function Hr(e) {
|
|
468
|
+
return lt(fr, e, !0);
|
|
482
469
|
}
|
|
483
|
-
function
|
|
484
|
-
const
|
|
485
|
-
return
|
|
470
|
+
function Ce(e, t = [], r = gr) {
|
|
471
|
+
const o = t.map(r);
|
|
472
|
+
return fo(() => e(...o.map(i)));
|
|
486
473
|
}
|
|
487
|
-
function
|
|
488
|
-
return
|
|
474
|
+
function fo(e, t = 0) {
|
|
475
|
+
return lt(fr | Vr | t, e, !0);
|
|
489
476
|
}
|
|
490
|
-
function
|
|
491
|
-
return
|
|
477
|
+
function Nr(e, t = !0) {
|
|
478
|
+
return lt(fr | De, e, !0, t);
|
|
492
479
|
}
|
|
493
|
-
function
|
|
480
|
+
function ho(e) {
|
|
494
481
|
var t = e.teardown;
|
|
495
482
|
if (t !== null) {
|
|
496
|
-
const r =
|
|
497
|
-
|
|
483
|
+
const r = qt, o = $;
|
|
484
|
+
Fn(!0), Re(null);
|
|
498
485
|
try {
|
|
499
486
|
t.call(null);
|
|
500
487
|
} finally {
|
|
501
|
-
|
|
488
|
+
Fn(r), Re(o);
|
|
502
489
|
}
|
|
503
490
|
}
|
|
504
491
|
}
|
|
505
|
-
function
|
|
492
|
+
function vo(e, t = !1) {
|
|
506
493
|
var r = e.first;
|
|
507
494
|
for (e.first = e.last = null; r !== null; ) {
|
|
508
|
-
var
|
|
509
|
-
(r.f &
|
|
495
|
+
var o = r.next;
|
|
496
|
+
(r.f & it) !== 0 ? r.parent = null : je(r, t), r = o;
|
|
510
497
|
}
|
|
511
498
|
}
|
|
512
|
-
function
|
|
499
|
+
function ga(e) {
|
|
513
500
|
for (var t = e.first; t !== null; ) {
|
|
514
501
|
var r = t.next;
|
|
515
|
-
(t.f &
|
|
502
|
+
(t.f & De) === 0 && je(t), t = r;
|
|
516
503
|
}
|
|
517
504
|
}
|
|
518
|
-
function
|
|
505
|
+
function je(e, t = !0) {
|
|
519
506
|
var r = !1;
|
|
520
|
-
(t || (e.f &
|
|
507
|
+
(t || (e.f & zi) !== 0) && e.nodes_start !== null && (go(
|
|
521
508
|
e.nodes_start,
|
|
522
509
|
/** @type {TemplateNode} */
|
|
523
510
|
e.nodes_end
|
|
524
|
-
), r = !0),
|
|
525
|
-
var
|
|
526
|
-
if (
|
|
527
|
-
for (const
|
|
528
|
-
|
|
529
|
-
|
|
511
|
+
), r = !0), vo(e, t && !r), cr(e, 0), _e(e, dr);
|
|
512
|
+
var o = e.transitions;
|
|
513
|
+
if (o !== null)
|
|
514
|
+
for (const a of o)
|
|
515
|
+
a.stop();
|
|
516
|
+
ho(e);
|
|
530
517
|
var l = e.parent;
|
|
531
|
-
l !== null && l.first !== null &&
|
|
518
|
+
l !== null && l.first !== null && po(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
|
|
532
519
|
}
|
|
533
|
-
function
|
|
520
|
+
function go(e, t) {
|
|
534
521
|
for (; e !== null; ) {
|
|
535
522
|
var r = e === t ? null : (
|
|
536
523
|
/** @type {TemplateNode} */
|
|
537
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ Be(e)
|
|
538
525
|
);
|
|
539
526
|
e.remove(), e = r;
|
|
540
527
|
}
|
|
541
528
|
}
|
|
542
|
-
function
|
|
543
|
-
var t = e.parent, r = e.prev,
|
|
544
|
-
r !== null && (r.next =
|
|
529
|
+
function po(e) {
|
|
530
|
+
var t = e.parent, r = e.prev, o = e.next;
|
|
531
|
+
r !== null && (r.next = o), o !== null && (o.prev = r), t !== null && (t.first === e && (t.first = o), t.last === e && (t.last = r));
|
|
545
532
|
}
|
|
546
|
-
function
|
|
533
|
+
function Lr(e, t) {
|
|
547
534
|
var r = [];
|
|
548
|
-
|
|
549
|
-
|
|
535
|
+
mo(e, r, !0), pa(r, () => {
|
|
536
|
+
je(e), t && t();
|
|
550
537
|
});
|
|
551
538
|
}
|
|
552
|
-
function
|
|
539
|
+
function pa(e, t) {
|
|
553
540
|
var r = e.length;
|
|
554
541
|
if (r > 0) {
|
|
555
|
-
var
|
|
542
|
+
var o = () => --r || t();
|
|
556
543
|
for (var l of e)
|
|
557
|
-
l.out(
|
|
544
|
+
l.out(o);
|
|
558
545
|
} else
|
|
559
546
|
t();
|
|
560
547
|
}
|
|
561
|
-
function
|
|
562
|
-
if ((e.f &
|
|
563
|
-
if (e.f ^=
|
|
564
|
-
for (const
|
|
565
|
-
(
|
|
566
|
-
for (var
|
|
567
|
-
var l =
|
|
568
|
-
|
|
548
|
+
function mo(e, t, r) {
|
|
549
|
+
if ((e.f & wt) === 0) {
|
|
550
|
+
if (e.f ^= wt, e.transitions !== null)
|
|
551
|
+
for (const s of e.transitions)
|
|
552
|
+
(s.is_global || r) && t.push(s);
|
|
553
|
+
for (var o = e.first; o !== null; ) {
|
|
554
|
+
var l = o.next, a = (o.f & Ur) !== 0 || (o.f & De) !== 0;
|
|
555
|
+
mo(o, t, a ? r : !1), o = l;
|
|
569
556
|
}
|
|
570
557
|
}
|
|
571
558
|
}
|
|
572
|
-
function
|
|
573
|
-
|
|
559
|
+
function On(e) {
|
|
560
|
+
_o(e, !0);
|
|
574
561
|
}
|
|
575
|
-
function
|
|
576
|
-
if ((e.f &
|
|
577
|
-
e.f ^=
|
|
562
|
+
function _o(e, t) {
|
|
563
|
+
if ((e.f & wt) !== 0) {
|
|
564
|
+
e.f ^= wt, (e.f & le) === 0 && (e.f ^= le), Bt(e) && (_e(e, Ie), mr(e));
|
|
578
565
|
for (var r = e.first; r !== null; ) {
|
|
579
|
-
var
|
|
580
|
-
|
|
566
|
+
var o = r.next, l = (r.f & Ur) !== 0 || (r.f & De) !== 0;
|
|
567
|
+
_o(r, l ? t : !1), r = o;
|
|
581
568
|
}
|
|
582
569
|
if (e.transitions !== null)
|
|
583
|
-
for (const
|
|
584
|
-
(
|
|
570
|
+
for (const a of e.transitions)
|
|
571
|
+
(a.is_global || t) && a.in();
|
|
585
572
|
}
|
|
586
573
|
}
|
|
587
|
-
const
|
|
588
|
-
let
|
|
589
|
-
function
|
|
590
|
-
var e =
|
|
591
|
-
|
|
574
|
+
const ma = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
|
|
575
|
+
let Vt = [], Ut = [];
|
|
576
|
+
function bo() {
|
|
577
|
+
var e = Vt;
|
|
578
|
+
Vt = [], Qn(e);
|
|
592
579
|
}
|
|
593
|
-
function
|
|
594
|
-
var e =
|
|
595
|
-
|
|
580
|
+
function yo() {
|
|
581
|
+
var e = Ut;
|
|
582
|
+
Ut = [], Qn(e);
|
|
596
583
|
}
|
|
597
|
-
function
|
|
598
|
-
|
|
584
|
+
function Gr(e) {
|
|
585
|
+
Vt.length === 0 && queueMicrotask(bo), Vt.push(e);
|
|
599
586
|
}
|
|
600
|
-
function
|
|
601
|
-
|
|
587
|
+
function _a(e) {
|
|
588
|
+
Ut.length === 0 && ma(yo), Ut.push(e);
|
|
602
589
|
}
|
|
603
|
-
function
|
|
604
|
-
|
|
590
|
+
function ba() {
|
|
591
|
+
Vt.length > 0 && bo(), Ut.length > 0 && yo();
|
|
605
592
|
}
|
|
606
|
-
let
|
|
607
|
-
function
|
|
608
|
-
|
|
593
|
+
let tr = !1, lr = !1, sr = null, nt = !1, qt = !1;
|
|
594
|
+
function Fn(e) {
|
|
595
|
+
qt = e;
|
|
609
596
|
}
|
|
610
|
-
let
|
|
611
|
-
let
|
|
612
|
-
function
|
|
613
|
-
|
|
597
|
+
let Ft = [];
|
|
598
|
+
let $ = null, ke = !1;
|
|
599
|
+
function Re(e) {
|
|
600
|
+
$ = e;
|
|
614
601
|
}
|
|
615
|
-
let
|
|
616
|
-
function
|
|
617
|
-
|
|
602
|
+
let S = null;
|
|
603
|
+
function qe(e) {
|
|
604
|
+
S = e;
|
|
618
605
|
}
|
|
619
|
-
let
|
|
620
|
-
function
|
|
621
|
-
|
|
606
|
+
let Te = null;
|
|
607
|
+
function wo(e) {
|
|
608
|
+
$ !== null && $.f & Sr && (Te === null ? Te = [e] : Te.push(e));
|
|
622
609
|
}
|
|
623
|
-
let
|
|
624
|
-
function
|
|
625
|
-
|
|
610
|
+
let re = null, ce = 0, he = null;
|
|
611
|
+
function ya(e) {
|
|
612
|
+
he = e;
|
|
626
613
|
}
|
|
627
|
-
let
|
|
628
|
-
function
|
|
629
|
-
return ++
|
|
614
|
+
let Eo = 1, ur = 0, Ve = !1;
|
|
615
|
+
function xo() {
|
|
616
|
+
return ++Eo;
|
|
630
617
|
}
|
|
631
|
-
function
|
|
632
|
-
var v;
|
|
618
|
+
function Bt(e) {
|
|
633
619
|
var t = e.f;
|
|
634
|
-
if ((t &
|
|
620
|
+
if ((t & Ie) !== 0)
|
|
635
621
|
return !0;
|
|
636
|
-
if ((t &
|
|
637
|
-
var r = e.deps,
|
|
622
|
+
if ((t & at) !== 0) {
|
|
623
|
+
var r = e.deps, o = (t & fe) !== 0;
|
|
638
624
|
if (r !== null) {
|
|
639
|
-
var l,
|
|
640
|
-
if (
|
|
625
|
+
var l, a, s = (t & ar) !== 0, c = o && S !== null && !Ve, f = r.length;
|
|
626
|
+
if (s || c) {
|
|
641
627
|
var d = (
|
|
642
628
|
/** @type {Derived} */
|
|
643
629
|
e
|
|
644
|
-
),
|
|
645
|
-
for (l = 0; l <
|
|
646
|
-
|
|
647
|
-
|
|
630
|
+
), m = d.parent;
|
|
631
|
+
for (l = 0; l < f; l++)
|
|
632
|
+
a = r[l], (s || !a?.reactions?.includes(d)) && (a.reactions ??= []).push(d);
|
|
633
|
+
s && (d.f ^= ar), c && m !== null && (m.f & fe) === 0 && (d.f ^= fe);
|
|
648
634
|
}
|
|
649
|
-
for (l = 0; l <
|
|
650
|
-
if (
|
|
635
|
+
for (l = 0; l < f; l++)
|
|
636
|
+
if (a = r[l], Bt(
|
|
651
637
|
/** @type {Derived} */
|
|
652
|
-
|
|
653
|
-
) &&
|
|
638
|
+
a
|
|
639
|
+
) && co(
|
|
654
640
|
/** @type {Derived} */
|
|
655
|
-
|
|
656
|
-
),
|
|
641
|
+
a
|
|
642
|
+
), a.wv > e.wv)
|
|
657
643
|
return !0;
|
|
658
644
|
}
|
|
659
|
-
(!
|
|
645
|
+
(!o || S !== null && !Ve) && _e(e, le);
|
|
660
646
|
}
|
|
661
647
|
return !1;
|
|
662
648
|
}
|
|
663
|
-
function
|
|
649
|
+
function wa(e, t) {
|
|
664
650
|
for (var r = t; r !== null; ) {
|
|
665
|
-
if ((r.f &
|
|
651
|
+
if ((r.f & ir) !== 0)
|
|
666
652
|
try {
|
|
667
653
|
r.fn(e);
|
|
668
654
|
return;
|
|
669
655
|
} catch {
|
|
670
|
-
r.f ^=
|
|
656
|
+
r.f ^= ir;
|
|
671
657
|
}
|
|
672
658
|
r = r.parent;
|
|
673
659
|
}
|
|
674
|
-
throw
|
|
660
|
+
throw tr = !1, e;
|
|
675
661
|
}
|
|
676
|
-
function
|
|
677
|
-
return (e.f &
|
|
662
|
+
function Mn(e) {
|
|
663
|
+
return (e.f & dr) === 0 && (e.parent === null || (e.parent.f & ir) === 0);
|
|
678
664
|
}
|
|
679
|
-
function
|
|
680
|
-
if (
|
|
681
|
-
if (r === null && (
|
|
665
|
+
function pr(e, t, r, o) {
|
|
666
|
+
if (tr) {
|
|
667
|
+
if (r === null && (tr = !1), Mn(t))
|
|
682
668
|
throw e;
|
|
683
669
|
return;
|
|
684
670
|
}
|
|
685
|
-
if (r !== null && (
|
|
671
|
+
if (r !== null && (tr = !0), wa(e, t), Mn(t))
|
|
686
672
|
throw e;
|
|
687
673
|
}
|
|
688
|
-
function
|
|
689
|
-
var
|
|
690
|
-
if (
|
|
691
|
-
for (var l = 0; l <
|
|
692
|
-
var
|
|
693
|
-
|
|
674
|
+
function Co(e, t, r = !0) {
|
|
675
|
+
var o = e.reactions;
|
|
676
|
+
if (o !== null)
|
|
677
|
+
for (var l = 0; l < o.length; l++) {
|
|
678
|
+
var a = o[l];
|
|
679
|
+
Te?.includes(e) || ((a.f & me) !== 0 ? Co(
|
|
694
680
|
/** @type {Derived} */
|
|
695
|
-
|
|
681
|
+
a,
|
|
696
682
|
t,
|
|
697
683
|
!1
|
|
698
|
-
) : t ===
|
|
684
|
+
) : t === a && (r ? _e(a, Ie) : (a.f & le) !== 0 && _e(a, at), mr(
|
|
699
685
|
/** @type {Effect} */
|
|
700
|
-
|
|
686
|
+
a
|
|
701
687
|
)));
|
|
702
688
|
}
|
|
703
689
|
}
|
|
704
|
-
function
|
|
705
|
-
var
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
null, he = 0, pe = null, He = (d & ve) !== 0 && (Te || !ot || T === null), T = (d & (Fe | lt)) === 0 ? e : null, ie = null, Zn(e.ctx), Te = !1, dr++, e.f |= Lr;
|
|
690
|
+
function ko(e) {
|
|
691
|
+
var t = re, r = ce, o = he, l = $, a = Ve, s = Te, c = ne, f = ke, d = e.f;
|
|
692
|
+
re = /** @type {null | Value[]} */
|
|
693
|
+
null, ce = 0, he = null, Ve = (d & fe) !== 0 && (ke || !nt || $ === null), $ = (d & (De | it)) === 0 ? e : null, Te = null, Vn(e.ctx), ke = !1, ur++, e.f |= Sr;
|
|
709
694
|
try {
|
|
710
|
-
var
|
|
695
|
+
var m = (
|
|
711
696
|
/** @type {Function} */
|
|
712
697
|
(0, e.fn)()
|
|
713
698
|
), v = e.deps;
|
|
714
|
-
if (
|
|
715
|
-
var
|
|
716
|
-
if (
|
|
717
|
-
for (v.length =
|
|
718
|
-
v[
|
|
699
|
+
if (re !== null) {
|
|
700
|
+
var _;
|
|
701
|
+
if (cr(e, ce), v !== null && ce > 0)
|
|
702
|
+
for (v.length = ce + re.length, _ = 0; _ < re.length; _++)
|
|
703
|
+
v[ce + _] = re[_];
|
|
719
704
|
else
|
|
720
|
-
e.deps = v =
|
|
721
|
-
if (!
|
|
722
|
-
for (
|
|
723
|
-
(
|
|
724
|
-
} else v !== null &&
|
|
725
|
-
if (
|
|
726
|
-
for (
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
705
|
+
e.deps = v = re;
|
|
706
|
+
if (!Ve)
|
|
707
|
+
for (_ = ce; _ < v.length; _++)
|
|
708
|
+
(v[_].reactions ??= []).push(e);
|
|
709
|
+
} else v !== null && ce < v.length && (cr(e, ce), v.length = ce);
|
|
710
|
+
if (To() && he !== null && !ke && v !== null && (e.f & (me | at | Ie)) === 0)
|
|
711
|
+
for (_ = 0; _ < /** @type {Source[]} */
|
|
712
|
+
he.length; _++)
|
|
713
|
+
Co(
|
|
714
|
+
he[_],
|
|
730
715
|
/** @type {Effect} */
|
|
731
716
|
e
|
|
732
717
|
);
|
|
733
|
-
return l !== null && l !== e && (
|
|
734
|
-
|
|
718
|
+
return l !== null && l !== e && (ur++, he !== null && (o === null ? o = he : o.push(.../** @type {Source[]} */
|
|
719
|
+
he))), m;
|
|
735
720
|
} finally {
|
|
736
|
-
|
|
721
|
+
re = t, ce = r, he = o, $ = l, Ve = a, Te = s, Vn(c), ke = f, e.f ^= Sr;
|
|
737
722
|
}
|
|
738
723
|
}
|
|
739
|
-
function
|
|
724
|
+
function Ea(e, t) {
|
|
740
725
|
let r = t.reactions;
|
|
741
726
|
if (r !== null) {
|
|
742
|
-
var
|
|
743
|
-
if (
|
|
727
|
+
var o = qi.call(r, e);
|
|
728
|
+
if (o !== -1) {
|
|
744
729
|
var l = r.length - 1;
|
|
745
|
-
l === 0 ? r = t.reactions = null : (r[
|
|
730
|
+
l === 0 ? r = t.reactions = null : (r[o] = r[l], r.pop());
|
|
746
731
|
}
|
|
747
732
|
}
|
|
748
|
-
r === null && (t.f &
|
|
733
|
+
r === null && (t.f & me) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
749
734
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
750
735
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
751
|
-
(
|
|
736
|
+
(re === null || !re.includes(t)) && (_e(t, at), (t.f & (fe | ar)) === 0 && (t.f ^= ar), so(
|
|
752
737
|
/** @type {Derived} **/
|
|
753
738
|
t
|
|
754
|
-
),
|
|
739
|
+
), cr(
|
|
755
740
|
/** @type {Derived} **/
|
|
756
741
|
t,
|
|
757
742
|
0
|
|
758
743
|
));
|
|
759
744
|
}
|
|
760
|
-
function
|
|
745
|
+
function cr(e, t) {
|
|
761
746
|
var r = e.deps;
|
|
762
747
|
if (r !== null)
|
|
763
|
-
for (var
|
|
764
|
-
|
|
748
|
+
for (var o = t; o < r.length; o++)
|
|
749
|
+
Ea(e, r[o]);
|
|
765
750
|
}
|
|
766
|
-
function
|
|
751
|
+
function Wr(e) {
|
|
767
752
|
var t = e.f;
|
|
768
|
-
if ((t &
|
|
769
|
-
|
|
770
|
-
var r =
|
|
771
|
-
|
|
753
|
+
if ((t & dr) === 0) {
|
|
754
|
+
_e(e, le);
|
|
755
|
+
var r = S, o = ne, l = nt;
|
|
756
|
+
S = e, nt = !0;
|
|
772
757
|
try {
|
|
773
|
-
(t &
|
|
774
|
-
var
|
|
775
|
-
e.teardown = typeof
|
|
776
|
-
var
|
|
777
|
-
|
|
778
|
-
} catch (
|
|
779
|
-
|
|
758
|
+
(t & Vr) !== 0 ? ga(e) : vo(e), ho(e);
|
|
759
|
+
var a = ko(e);
|
|
760
|
+
e.teardown = typeof a == "function" ? a : null, e.wv = Eo;
|
|
761
|
+
var s = e.deps, c;
|
|
762
|
+
Nn && la && e.f & Ie;
|
|
763
|
+
} catch (f) {
|
|
764
|
+
pr(f, e, r, o || e.ctx);
|
|
780
765
|
} finally {
|
|
781
|
-
|
|
766
|
+
nt = l, S = r;
|
|
782
767
|
}
|
|
783
768
|
}
|
|
784
769
|
}
|
|
785
|
-
function
|
|
770
|
+
function xa() {
|
|
786
771
|
try {
|
|
787
|
-
|
|
772
|
+
ea();
|
|
788
773
|
} catch (e) {
|
|
789
|
-
if (
|
|
790
|
-
|
|
774
|
+
if (sr !== null)
|
|
775
|
+
pr(e, sr, null);
|
|
791
776
|
else
|
|
792
777
|
throw e;
|
|
793
778
|
}
|
|
794
779
|
}
|
|
795
|
-
function
|
|
796
|
-
var e =
|
|
780
|
+
function Ao() {
|
|
781
|
+
var e = nt;
|
|
797
782
|
try {
|
|
798
783
|
var t = 0;
|
|
799
|
-
for (
|
|
800
|
-
t++ > 1e3 &&
|
|
801
|
-
var r =
|
|
802
|
-
|
|
803
|
-
for (var l = 0; l <
|
|
804
|
-
var
|
|
805
|
-
|
|
784
|
+
for (nt = !0; Ft.length > 0; ) {
|
|
785
|
+
t++ > 1e3 && xa();
|
|
786
|
+
var r = Ft, o = r.length;
|
|
787
|
+
Ft = [];
|
|
788
|
+
for (var l = 0; l < o; l++) {
|
|
789
|
+
var a = ka(r[l]);
|
|
790
|
+
Ca(a);
|
|
806
791
|
}
|
|
807
|
-
|
|
792
|
+
jt.clear();
|
|
808
793
|
}
|
|
809
794
|
} finally {
|
|
810
|
-
|
|
795
|
+
lr = !1, nt = e, sr = null;
|
|
811
796
|
}
|
|
812
797
|
}
|
|
813
|
-
function
|
|
798
|
+
function Ca(e) {
|
|
814
799
|
var t = e.length;
|
|
815
800
|
if (t !== 0)
|
|
816
801
|
for (var r = 0; r < t; r++) {
|
|
817
|
-
var
|
|
818
|
-
if ((
|
|
802
|
+
var o = e[r];
|
|
803
|
+
if ((o.f & (dr | wt)) === 0)
|
|
819
804
|
try {
|
|
820
|
-
|
|
805
|
+
Bt(o) && (Wr(o), o.deps === null && o.first === null && o.nodes_start === null && (o.teardown === null ? po(o) : o.fn = null));
|
|
821
806
|
} catch (l) {
|
|
822
|
-
|
|
807
|
+
pr(l, o, null, o.ctx);
|
|
823
808
|
}
|
|
824
809
|
}
|
|
825
810
|
}
|
|
826
|
-
function
|
|
827
|
-
|
|
828
|
-
for (var t =
|
|
811
|
+
function mr(e) {
|
|
812
|
+
lr || (lr = !0, queueMicrotask(Ao));
|
|
813
|
+
for (var t = sr = e; t.parent !== null; ) {
|
|
829
814
|
t = t.parent;
|
|
830
815
|
var r = t.f;
|
|
831
|
-
if ((r & (
|
|
832
|
-
if ((r &
|
|
833
|
-
t.f ^=
|
|
816
|
+
if ((r & (it | De)) !== 0) {
|
|
817
|
+
if ((r & le) === 0) return;
|
|
818
|
+
t.f ^= le;
|
|
834
819
|
}
|
|
835
820
|
}
|
|
836
|
-
|
|
821
|
+
Ft.push(t);
|
|
837
822
|
}
|
|
838
|
-
function
|
|
823
|
+
function ka(e) {
|
|
839
824
|
for (var t = [], r = e; r !== null; ) {
|
|
840
|
-
var
|
|
841
|
-
if (!
|
|
842
|
-
if ((
|
|
825
|
+
var o = r.f, l = (o & (De | it)) !== 0, a = l && (o & le) !== 0;
|
|
826
|
+
if (!a && (o & wt) === 0) {
|
|
827
|
+
if ((o & eo) !== 0)
|
|
843
828
|
t.push(r);
|
|
844
829
|
else if (l)
|
|
845
|
-
r.f ^=
|
|
830
|
+
r.f ^= le;
|
|
846
831
|
else
|
|
847
832
|
try {
|
|
848
|
-
|
|
849
|
-
} catch (
|
|
850
|
-
|
|
833
|
+
Bt(r) && Wr(r);
|
|
834
|
+
} catch (f) {
|
|
835
|
+
pr(f, r, null, r.ctx);
|
|
851
836
|
}
|
|
852
|
-
var
|
|
853
|
-
if (
|
|
854
|
-
r =
|
|
837
|
+
var s = r.first;
|
|
838
|
+
if (s !== null) {
|
|
839
|
+
r = s;
|
|
855
840
|
continue;
|
|
856
841
|
}
|
|
857
842
|
}
|
|
858
|
-
var
|
|
859
|
-
for (r = r.next; r === null &&
|
|
860
|
-
r =
|
|
843
|
+
var c = r.parent;
|
|
844
|
+
for (r = r.next; r === null && c !== null; )
|
|
845
|
+
r = c.next, c = c.parent;
|
|
861
846
|
}
|
|
862
847
|
return t;
|
|
863
848
|
}
|
|
864
|
-
function
|
|
849
|
+
function E(e) {
|
|
865
850
|
for (var t; ; ) {
|
|
866
|
-
if (
|
|
851
|
+
if (ba(), Ft.length === 0)
|
|
867
852
|
return (
|
|
868
853
|
/** @type {T} */
|
|
869
854
|
t
|
|
870
855
|
);
|
|
871
|
-
|
|
856
|
+
lr = !0, Ao();
|
|
872
857
|
}
|
|
873
858
|
}
|
|
874
|
-
async function
|
|
875
|
-
await Promise.resolve(),
|
|
859
|
+
async function Rr() {
|
|
860
|
+
await Promise.resolve(), E();
|
|
876
861
|
}
|
|
877
|
-
function
|
|
878
|
-
var t = e.f, r = (t &
|
|
879
|
-
if (
|
|
880
|
-
if (!
|
|
881
|
-
var
|
|
882
|
-
e.rv <
|
|
862
|
+
function i(e) {
|
|
863
|
+
var t = e.f, r = (t & me) !== 0;
|
|
864
|
+
if ($ !== null && !ke) {
|
|
865
|
+
if (!Te?.includes(e)) {
|
|
866
|
+
var o = $.deps;
|
|
867
|
+
e.rv < ur && (e.rv = ur, re === null && o !== null && o[ce] === e ? ce++ : re === null ? re = [e] : (!Ve || !re.includes(e)) && re.push(e));
|
|
883
868
|
}
|
|
884
869
|
} else if (r && /** @type {Derived} */
|
|
885
870
|
e.deps === null && /** @type {Derived} */
|
|
@@ -887,84 +872,84 @@ function a(e) {
|
|
|
887
872
|
var l = (
|
|
888
873
|
/** @type {Derived} */
|
|
889
874
|
e
|
|
890
|
-
),
|
|
891
|
-
|
|
875
|
+
), a = l.parent;
|
|
876
|
+
a !== null && (a.f & fe) === 0 && (l.f ^= fe);
|
|
892
877
|
}
|
|
893
878
|
return r && (l = /** @type {Derived} */
|
|
894
|
-
e,
|
|
879
|
+
e, Bt(l) && co(l)), qt && jt.has(e) ? jt.get(e) : e.v;
|
|
895
880
|
}
|
|
896
|
-
function
|
|
897
|
-
var t =
|
|
881
|
+
function ot(e) {
|
|
882
|
+
var t = ke;
|
|
898
883
|
try {
|
|
899
|
-
return
|
|
884
|
+
return ke = !0, e();
|
|
900
885
|
} finally {
|
|
901
|
-
|
|
886
|
+
ke = t;
|
|
902
887
|
}
|
|
903
888
|
}
|
|
904
|
-
const
|
|
905
|
-
function
|
|
906
|
-
e.f = e.f &
|
|
889
|
+
const Aa = -7169;
|
|
890
|
+
function _e(e, t) {
|
|
891
|
+
e.f = e.f & Aa | t;
|
|
907
892
|
}
|
|
908
|
-
const
|
|
909
|
-
function
|
|
893
|
+
const jt = /* @__PURE__ */ new Map();
|
|
894
|
+
function Io(e, t) {
|
|
910
895
|
var r = {
|
|
911
896
|
f: 0,
|
|
912
897
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
913
898
|
v: e,
|
|
914
899
|
reactions: null,
|
|
915
|
-
equals:
|
|
900
|
+
equals: ao,
|
|
916
901
|
rv: 0,
|
|
917
902
|
wv: 0
|
|
918
903
|
};
|
|
919
904
|
return r;
|
|
920
905
|
}
|
|
921
906
|
// @__NO_SIDE_EFFECTS__
|
|
922
|
-
function
|
|
923
|
-
const r =
|
|
924
|
-
return
|
|
907
|
+
function N(e, t) {
|
|
908
|
+
const r = Io(e);
|
|
909
|
+
return wo(r), r;
|
|
925
910
|
}
|
|
926
911
|
// @__NO_SIDE_EFFECTS__
|
|
927
|
-
function
|
|
928
|
-
const r =
|
|
929
|
-
return t || (r.equals =
|
|
912
|
+
function Yr(e, t = !1) {
|
|
913
|
+
const r = Io(e);
|
|
914
|
+
return t || (r.equals = jr), r;
|
|
930
915
|
}
|
|
931
916
|
function b(e, t, r = !1) {
|
|
932
|
-
|
|
933
|
-
let
|
|
934
|
-
return
|
|
917
|
+
$ !== null && !ke && To() && ($.f & (me | Vr)) !== 0 && !Te?.includes(e) && ia();
|
|
918
|
+
let o = r ? Me(t) : t;
|
|
919
|
+
return Ia(e, o);
|
|
935
920
|
}
|
|
936
|
-
function
|
|
921
|
+
function Ia(e, t) {
|
|
937
922
|
if (!e.equals(t)) {
|
|
938
923
|
var r = e.v;
|
|
939
|
-
|
|
924
|
+
qt ? jt.set(e, t) : jt.set(e, r), e.v = t, (e.f & me) !== 0 && ((e.f & Ie) !== 0 && uo(
|
|
940
925
|
/** @type {Derived} */
|
|
941
926
|
e
|
|
942
|
-
),
|
|
927
|
+
), _e(e, (e.f & fe) === 0 ? le : at)), e.wv = xo(), Ro(e, Ie), S !== null && (S.f & le) !== 0 && (S.f & (De | it)) === 0 && (he === null ? ya([e]) : he.push(e));
|
|
943
928
|
}
|
|
944
929
|
return t;
|
|
945
930
|
}
|
|
946
|
-
function
|
|
931
|
+
function Ro(e, t) {
|
|
947
932
|
var r = e.reactions;
|
|
948
933
|
if (r !== null)
|
|
949
|
-
for (var
|
|
950
|
-
var
|
|
951
|
-
(
|
|
934
|
+
for (var o = r.length, l = 0; l < o; l++) {
|
|
935
|
+
var a = r[l], s = a.f;
|
|
936
|
+
(s & Ie) === 0 && (_e(a, t), (s & (le | fe)) !== 0 && ((s & me) !== 0 ? Ro(
|
|
952
937
|
/** @type {Derived} */
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
) :
|
|
938
|
+
a,
|
|
939
|
+
at
|
|
940
|
+
) : mr(
|
|
956
941
|
/** @type {Effect} */
|
|
957
|
-
|
|
942
|
+
a
|
|
958
943
|
)));
|
|
959
944
|
}
|
|
960
945
|
}
|
|
961
|
-
let
|
|
962
|
-
function
|
|
963
|
-
|
|
946
|
+
let ne = null;
|
|
947
|
+
function Vn(e) {
|
|
948
|
+
ne = e;
|
|
964
949
|
}
|
|
965
|
-
function
|
|
966
|
-
var
|
|
967
|
-
p:
|
|
950
|
+
function $o(e, t = !1, r) {
|
|
951
|
+
var o = ne = {
|
|
952
|
+
p: ne,
|
|
968
953
|
c: null,
|
|
969
954
|
d: !1,
|
|
970
955
|
e: null,
|
|
@@ -973,117 +958,115 @@ function Mi(e, t = !1, r) {
|
|
|
973
958
|
x: null,
|
|
974
959
|
l: null
|
|
975
960
|
};
|
|
976
|
-
|
|
977
|
-
|
|
961
|
+
qr(() => {
|
|
962
|
+
o.d = !0;
|
|
978
963
|
});
|
|
979
964
|
}
|
|
980
|
-
function
|
|
981
|
-
const t =
|
|
965
|
+
function So(e) {
|
|
966
|
+
const t = ne;
|
|
982
967
|
if (t !== null) {
|
|
983
968
|
e !== void 0 && (t.x = e);
|
|
984
|
-
const
|
|
985
|
-
if (
|
|
986
|
-
var r =
|
|
969
|
+
const s = t.e;
|
|
970
|
+
if (s !== null) {
|
|
971
|
+
var r = S, o = $;
|
|
987
972
|
t.e = null;
|
|
988
973
|
try {
|
|
989
|
-
for (var l = 0; l <
|
|
990
|
-
var
|
|
991
|
-
|
|
974
|
+
for (var l = 0; l < s.length; l++) {
|
|
975
|
+
var a = s[l];
|
|
976
|
+
qe(a.effect), Re(a.reaction), Br(a.fn);
|
|
992
977
|
}
|
|
993
978
|
} finally {
|
|
994
|
-
|
|
979
|
+
qe(r), Re(o);
|
|
995
980
|
}
|
|
996
981
|
}
|
|
997
|
-
|
|
982
|
+
ne = t.p, t.m = !0;
|
|
998
983
|
}
|
|
999
984
|
return e || /** @type {T} */
|
|
1000
985
|
{};
|
|
1001
986
|
}
|
|
1002
|
-
function
|
|
987
|
+
function To() {
|
|
1003
988
|
return !0;
|
|
1004
989
|
}
|
|
1005
|
-
const
|
|
1006
|
-
function
|
|
1007
|
-
return
|
|
990
|
+
const Ra = ["touchstart", "touchmove"];
|
|
991
|
+
function $a(e) {
|
|
992
|
+
return Ra.includes(e);
|
|
1008
993
|
}
|
|
1009
|
-
function
|
|
994
|
+
function Sa(e, t) {
|
|
1010
995
|
if (t) {
|
|
1011
996
|
const r = document.body;
|
|
1012
|
-
e.autofocus = !0,
|
|
997
|
+
e.autofocus = !0, Gr(() => {
|
|
1013
998
|
document.activeElement === r && e.focus();
|
|
1014
999
|
});
|
|
1015
1000
|
}
|
|
1016
1001
|
}
|
|
1017
|
-
let
|
|
1018
|
-
function
|
|
1019
|
-
|
|
1002
|
+
let Un = !1;
|
|
1003
|
+
function Do() {
|
|
1004
|
+
Un || (Un = !0, document.addEventListener(
|
|
1020
1005
|
"reset",
|
|
1021
1006
|
(e) => {
|
|
1022
1007
|
Promise.resolve().then(() => {
|
|
1023
|
-
var t;
|
|
1024
1008
|
if (!e.defaultPrevented)
|
|
1025
1009
|
for (
|
|
1026
|
-
const
|
|
1010
|
+
const t of
|
|
1027
1011
|
/**@type {HTMLFormElement} */
|
|
1028
1012
|
e.target.elements
|
|
1029
1013
|
)
|
|
1030
|
-
|
|
1014
|
+
t.__on_r?.();
|
|
1031
1015
|
});
|
|
1032
1016
|
},
|
|
1033
1017
|
// In the capture phase to guarantee we get noticed of it (no possiblity of stopPropagation)
|
|
1034
1018
|
{ capture: !0 }
|
|
1035
1019
|
));
|
|
1036
1020
|
}
|
|
1037
|
-
function
|
|
1038
|
-
var t =
|
|
1039
|
-
|
|
1021
|
+
function No(e) {
|
|
1022
|
+
var t = $, r = S;
|
|
1023
|
+
Re(null), qe(null);
|
|
1040
1024
|
try {
|
|
1041
1025
|
return e();
|
|
1042
1026
|
} finally {
|
|
1043
|
-
|
|
1027
|
+
Re(t), qe(r);
|
|
1044
1028
|
}
|
|
1045
1029
|
}
|
|
1046
|
-
function
|
|
1047
|
-
e.addEventListener(t, () =>
|
|
1030
|
+
function Ta(e, t, r, o = r) {
|
|
1031
|
+
e.addEventListener(t, () => No(r));
|
|
1048
1032
|
const l = e.__on_r;
|
|
1049
1033
|
l ? e.__on_r = () => {
|
|
1050
|
-
l(),
|
|
1051
|
-
} : e.__on_r = () =>
|
|
1052
|
-
}
|
|
1053
|
-
const
|
|
1054
|
-
function
|
|
1055
|
-
function l(
|
|
1056
|
-
if (
|
|
1057
|
-
return
|
|
1058
|
-
}
|
|
1059
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1060
|
-
t.addEventListener(e, l,
|
|
1061
|
-
}) : t.addEventListener(e, l,
|
|
1062
|
-
}
|
|
1063
|
-
function
|
|
1064
|
-
var
|
|
1065
|
-
(t === document.body || t === window || t === document) &&
|
|
1066
|
-
t.removeEventListener(e,
|
|
1034
|
+
l(), o(!0);
|
|
1035
|
+
} : e.__on_r = () => o(!0), Do();
|
|
1036
|
+
}
|
|
1037
|
+
const Lo = /* @__PURE__ */ new Set(), Pr = /* @__PURE__ */ new Set();
|
|
1038
|
+
function Da(e, t, r, o = {}) {
|
|
1039
|
+
function l(a) {
|
|
1040
|
+
if (o.capture || Pt.call(t, a), !a.cancelBubble)
|
|
1041
|
+
return No(() => r?.call(this, a));
|
|
1042
|
+
}
|
|
1043
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Gr(() => {
|
|
1044
|
+
t.addEventListener(e, l, o);
|
|
1045
|
+
}) : t.addEventListener(e, l, o), l;
|
|
1046
|
+
}
|
|
1047
|
+
function Fe(e, t, r, o, l) {
|
|
1048
|
+
var a = { capture: o, passive: l }, s = Da(e, t, r, a);
|
|
1049
|
+
(t === document.body || t === window || t === document) && qr(() => {
|
|
1050
|
+
t.removeEventListener(e, s, a);
|
|
1067
1051
|
});
|
|
1068
1052
|
}
|
|
1069
|
-
function
|
|
1053
|
+
function Na(e) {
|
|
1070
1054
|
for (var t = 0; t < e.length; t++)
|
|
1071
|
-
|
|
1072
|
-
for (var r of
|
|
1055
|
+
Lo.add(e[t]);
|
|
1056
|
+
for (var r of Pr)
|
|
1073
1057
|
r(e);
|
|
1074
1058
|
}
|
|
1075
|
-
function
|
|
1076
|
-
var K;
|
|
1059
|
+
function Pt(e) {
|
|
1077
1060
|
var t = this, r = (
|
|
1078
1061
|
/** @type {Node} */
|
|
1079
1062
|
t.ownerDocument
|
|
1080
|
-
),
|
|
1063
|
+
), o = e.type, l = e.composedPath?.() || [], a = (
|
|
1081
1064
|
/** @type {null | Element} */
|
|
1082
1065
|
l[0] || e.target
|
|
1083
|
-
),
|
|
1084
|
-
if (
|
|
1085
|
-
var
|
|
1086
|
-
if (
|
|
1066
|
+
), s = 0, c = e.__root;
|
|
1067
|
+
if (c) {
|
|
1068
|
+
var f = l.indexOf(c);
|
|
1069
|
+
if (f !== -1 && (t === document || t === /** @type {any} */
|
|
1087
1070
|
window)) {
|
|
1088
1071
|
e.__root = t;
|
|
1089
1072
|
return;
|
|
@@ -1091,122 +1074,122 @@ function Vt(e) {
|
|
|
1091
1074
|
var d = l.indexOf(t);
|
|
1092
1075
|
if (d === -1)
|
|
1093
1076
|
return;
|
|
1094
|
-
|
|
1077
|
+
f <= d && (s = f);
|
|
1095
1078
|
}
|
|
1096
|
-
if (
|
|
1097
|
-
l[
|
|
1098
|
-
|
|
1079
|
+
if (a = /** @type {Element} */
|
|
1080
|
+
l[s] || e.target, a !== t) {
|
|
1081
|
+
Mt(e, "currentTarget", {
|
|
1099
1082
|
configurable: !0,
|
|
1100
1083
|
get() {
|
|
1101
|
-
return
|
|
1084
|
+
return a || r;
|
|
1102
1085
|
}
|
|
1103
1086
|
});
|
|
1104
|
-
var
|
|
1105
|
-
|
|
1087
|
+
var m = $, v = S;
|
|
1088
|
+
Re(null), qe(null);
|
|
1106
1089
|
try {
|
|
1107
|
-
for (var
|
|
1108
|
-
var
|
|
1109
|
-
|
|
1090
|
+
for (var _, w = []; a !== null; ) {
|
|
1091
|
+
var F = a.assignedSlot || a.parentNode || /** @type {any} */
|
|
1092
|
+
a.host || null;
|
|
1110
1093
|
try {
|
|
1111
|
-
var
|
|
1112
|
-
if (
|
|
1113
|
-
|
|
1094
|
+
var M = a["__" + o];
|
|
1095
|
+
if (M != null && (!/** @type {any} */
|
|
1096
|
+
a.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1114
1097
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1115
|
-
e.target ===
|
|
1116
|
-
if (
|
|
1117
|
-
var [U, ...
|
|
1118
|
-
U.apply(
|
|
1098
|
+
e.target === a))
|
|
1099
|
+
if (Kn(M)) {
|
|
1100
|
+
var [U, ...I] = M;
|
|
1101
|
+
U.apply(a, [e, ...I]);
|
|
1119
1102
|
} else
|
|
1120
|
-
|
|
1121
|
-
} catch (
|
|
1122
|
-
|
|
1103
|
+
M.call(a, e);
|
|
1104
|
+
} catch (ee) {
|
|
1105
|
+
_ ? w.push(ee) : _ = ee;
|
|
1123
1106
|
}
|
|
1124
|
-
if (e.cancelBubble ||
|
|
1107
|
+
if (e.cancelBubble || F === t || F === null)
|
|
1125
1108
|
break;
|
|
1126
|
-
|
|
1109
|
+
a = F;
|
|
1127
1110
|
}
|
|
1128
|
-
if (
|
|
1129
|
-
for (let
|
|
1111
|
+
if (_) {
|
|
1112
|
+
for (let ee of w)
|
|
1130
1113
|
queueMicrotask(() => {
|
|
1131
|
-
throw
|
|
1114
|
+
throw ee;
|
|
1132
1115
|
});
|
|
1133
|
-
throw
|
|
1116
|
+
throw _;
|
|
1134
1117
|
}
|
|
1135
1118
|
} finally {
|
|
1136
|
-
e.__root = t, delete e.currentTarget,
|
|
1119
|
+
e.__root = t, delete e.currentTarget, Re(m), qe(v);
|
|
1137
1120
|
}
|
|
1138
1121
|
}
|
|
1139
1122
|
}
|
|
1140
|
-
function
|
|
1123
|
+
function Zr(e) {
|
|
1141
1124
|
var t = document.createElement("template");
|
|
1142
1125
|
return t.innerHTML = e, t.content;
|
|
1143
1126
|
}
|
|
1144
|
-
function
|
|
1127
|
+
function Ae(e, t) {
|
|
1145
1128
|
var r = (
|
|
1146
1129
|
/** @type {Effect} */
|
|
1147
|
-
|
|
1130
|
+
S
|
|
1148
1131
|
);
|
|
1149
1132
|
r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
|
|
1150
1133
|
}
|
|
1151
1134
|
// @__NO_SIDE_EFFECTS__
|
|
1152
|
-
function
|
|
1153
|
-
var r = (t &
|
|
1135
|
+
function be(e, t) {
|
|
1136
|
+
var r = (t & Vi) !== 0, o = (t & Ui) !== 0, l, a = !e.startsWith("<!>");
|
|
1154
1137
|
return () => {
|
|
1155
|
-
if (
|
|
1156
|
-
return
|
|
1157
|
-
l === void 0 && (l =
|
|
1158
|
-
/* @__PURE__ */
|
|
1159
|
-
var
|
|
1138
|
+
if (O)
|
|
1139
|
+
return Ae(P, null), P;
|
|
1140
|
+
l === void 0 && (l = Zr(a ? e : "<!>" + e), r || (l = /** @type {Node} */
|
|
1141
|
+
/* @__PURE__ */ ve(l)));
|
|
1142
|
+
var s = (
|
|
1160
1143
|
/** @type {TemplateNode} */
|
|
1161
|
-
|
|
1144
|
+
o || no ? document.importNode(l, !0) : l.cloneNode(!0)
|
|
1162
1145
|
);
|
|
1163
1146
|
if (r) {
|
|
1164
|
-
var
|
|
1147
|
+
var c = (
|
|
1165
1148
|
/** @type {TemplateNode} */
|
|
1166
|
-
/* @__PURE__ */
|
|
1167
|
-
),
|
|
1149
|
+
/* @__PURE__ */ ve(s)
|
|
1150
|
+
), f = (
|
|
1168
1151
|
/** @type {TemplateNode} */
|
|
1169
|
-
|
|
1152
|
+
s.lastChild
|
|
1170
1153
|
);
|
|
1171
|
-
|
|
1154
|
+
Ae(c, f);
|
|
1172
1155
|
} else
|
|
1173
|
-
|
|
1174
|
-
return
|
|
1156
|
+
Ae(s, s);
|
|
1157
|
+
return s;
|
|
1175
1158
|
};
|
|
1176
1159
|
}
|
|
1177
1160
|
// @__NO_SIDE_EFFECTS__
|
|
1178
|
-
function
|
|
1179
|
-
var
|
|
1161
|
+
function _r(e, t, r = "svg") {
|
|
1162
|
+
var o = !e.startsWith("<!>"), l = `<${r}>${o ? e : "<!>" + e}</${r}>`, a;
|
|
1180
1163
|
return () => {
|
|
1181
|
-
if (
|
|
1182
|
-
return
|
|
1183
|
-
if (!
|
|
1184
|
-
var
|
|
1164
|
+
if (O)
|
|
1165
|
+
return Ae(P, null), P;
|
|
1166
|
+
if (!a) {
|
|
1167
|
+
var s = (
|
|
1185
1168
|
/** @type {DocumentFragment} */
|
|
1186
|
-
|
|
1187
|
-
),
|
|
1169
|
+
Zr(l)
|
|
1170
|
+
), c = (
|
|
1188
1171
|
/** @type {Element} */
|
|
1189
|
-
/* @__PURE__ */
|
|
1172
|
+
/* @__PURE__ */ ve(s)
|
|
1190
1173
|
);
|
|
1191
|
-
|
|
1192
|
-
/* @__PURE__ */
|
|
1174
|
+
a = /** @type {Element} */
|
|
1175
|
+
/* @__PURE__ */ ve(c);
|
|
1193
1176
|
}
|
|
1194
|
-
var
|
|
1177
|
+
var f = (
|
|
1195
1178
|
/** @type {TemplateNode} */
|
|
1196
|
-
|
|
1179
|
+
a.cloneNode(!0)
|
|
1197
1180
|
);
|
|
1198
|
-
return
|
|
1181
|
+
return Ae(f, f), f;
|
|
1199
1182
|
};
|
|
1200
1183
|
}
|
|
1201
|
-
function
|
|
1202
|
-
if (
|
|
1203
|
-
return
|
|
1204
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1205
|
-
return e.append(t, r),
|
|
1184
|
+
function Xt() {
|
|
1185
|
+
if (O)
|
|
1186
|
+
return Ae(P, null), P;
|
|
1187
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = vr();
|
|
1188
|
+
return e.append(t, r), Ae(t, r), e;
|
|
1206
1189
|
}
|
|
1207
|
-
function
|
|
1208
|
-
if (
|
|
1209
|
-
|
|
1190
|
+
function B(e, t) {
|
|
1191
|
+
if (O) {
|
|
1192
|
+
S.nodes_end = P, Et();
|
|
1210
1193
|
return;
|
|
1211
1194
|
}
|
|
1212
1195
|
e !== null && e.before(
|
|
@@ -1214,373 +1197,371 @@ function j(e, t) {
|
|
|
1214
1197
|
t
|
|
1215
1198
|
);
|
|
1216
1199
|
}
|
|
1217
|
-
function
|
|
1200
|
+
function La(e, t) {
|
|
1218
1201
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1219
|
-
r !== (e.__t
|
|
1202
|
+
r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
|
|
1220
1203
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return
|
|
1204
|
+
function Po(e, t) {
|
|
1205
|
+
return Oo(e, t);
|
|
1223
1206
|
}
|
|
1224
|
-
function
|
|
1225
|
-
|
|
1226
|
-
const r = t.target,
|
|
1207
|
+
function Pa(e, t) {
|
|
1208
|
+
Tr(), t.intro = t.intro ?? !1;
|
|
1209
|
+
const r = t.target, o = O, l = P;
|
|
1227
1210
|
try {
|
|
1228
|
-
for (var
|
|
1211
|
+
for (var a = (
|
|
1229
1212
|
/** @type {TemplateNode} */
|
|
1230
|
-
/* @__PURE__ */
|
|
1231
|
-
);
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
/* @__PURE__ */
|
|
1235
|
-
if (!
|
|
1236
|
-
throw
|
|
1237
|
-
|
|
1213
|
+
/* @__PURE__ */ ve(r)
|
|
1214
|
+
); a && (a.nodeType !== 8 || /** @type {Comment} */
|
|
1215
|
+
a.data !== Mr); )
|
|
1216
|
+
a = /** @type {TemplateNode} */
|
|
1217
|
+
/* @__PURE__ */ Be(a);
|
|
1218
|
+
if (!a)
|
|
1219
|
+
throw bt;
|
|
1220
|
+
_t(!0), Ue(
|
|
1238
1221
|
/** @type {Comment} */
|
|
1239
|
-
|
|
1240
|
-
),
|
|
1241
|
-
const
|
|
1242
|
-
if (
|
|
1243
|
-
|
|
1244
|
-
throw
|
|
1245
|
-
return
|
|
1246
|
-
|
|
1247
|
-
} catch (
|
|
1248
|
-
if (
|
|
1249
|
-
return t.recover === !1 &&
|
|
1250
|
-
throw
|
|
1222
|
+
a
|
|
1223
|
+
), Et();
|
|
1224
|
+
const s = Oo(e, { ...t, anchor: a });
|
|
1225
|
+
if (P === null || P.nodeType !== 8 || /** @type {Comment} */
|
|
1226
|
+
P.data !== zn)
|
|
1227
|
+
throw hr(), bt;
|
|
1228
|
+
return _t(!1), /** @type {Exports} */
|
|
1229
|
+
s;
|
|
1230
|
+
} catch (s) {
|
|
1231
|
+
if (s === bt)
|
|
1232
|
+
return t.recover === !1 && ta(), Tr(), sa(r), _t(!1), Po(e, t);
|
|
1233
|
+
throw s;
|
|
1251
1234
|
} finally {
|
|
1252
|
-
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
const
|
|
1256
|
-
function
|
|
1257
|
-
|
|
1258
|
-
var
|
|
1259
|
-
for (var
|
|
1260
|
-
var
|
|
1261
|
-
if (!
|
|
1262
|
-
|
|
1263
|
-
var
|
|
1264
|
-
t.addEventListener(
|
|
1265
|
-
var
|
|
1266
|
-
|
|
1235
|
+
_t(o), Ue(l);
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
const pt = /* @__PURE__ */ new Map();
|
|
1239
|
+
function Oo(e, { target: t, anchor: r, props: o = {}, events: l, context: a, intro: s = !0 }) {
|
|
1240
|
+
Tr();
|
|
1241
|
+
var c = /* @__PURE__ */ new Set(), f = (v) => {
|
|
1242
|
+
for (var _ = 0; _ < v.length; _++) {
|
|
1243
|
+
var w = v[_];
|
|
1244
|
+
if (!c.has(w)) {
|
|
1245
|
+
c.add(w);
|
|
1246
|
+
var F = $a(w);
|
|
1247
|
+
t.addEventListener(w, Pt, { passive: F });
|
|
1248
|
+
var M = pt.get(w);
|
|
1249
|
+
M === void 0 ? (document.addEventListener(w, Pt, { passive: F }), pt.set(w, 1)) : pt.set(w, M + 1);
|
|
1267
1250
|
}
|
|
1268
1251
|
}
|
|
1269
1252
|
};
|
|
1270
|
-
|
|
1271
|
-
var d = void 0,
|
|
1272
|
-
var v = r ?? t.appendChild(
|
|
1273
|
-
return
|
|
1274
|
-
if (
|
|
1275
|
-
|
|
1276
|
-
var
|
|
1253
|
+
f(Bi(Lo)), Pr.add(f);
|
|
1254
|
+
var d = void 0, m = va(() => {
|
|
1255
|
+
var v = r ?? t.appendChild(vr());
|
|
1256
|
+
return Nr(() => {
|
|
1257
|
+
if (a) {
|
|
1258
|
+
$o({});
|
|
1259
|
+
var _ = (
|
|
1277
1260
|
/** @type {ComponentContext} */
|
|
1278
|
-
|
|
1261
|
+
ne
|
|
1279
1262
|
);
|
|
1280
|
-
|
|
1263
|
+
_.c = a;
|
|
1281
1264
|
}
|
|
1282
|
-
l && (
|
|
1265
|
+
l && (o.$$events = l), O && Ae(
|
|
1283
1266
|
/** @type {TemplateNode} */
|
|
1284
1267
|
v,
|
|
1285
1268
|
null
|
|
1286
|
-
), d = e(v,
|
|
1269
|
+
), d = e(v, o) || {}, O && (S.nodes_end = P), a && So();
|
|
1287
1270
|
}), () => {
|
|
1288
|
-
var
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
var y = (
|
|
1271
|
+
for (var _ of c) {
|
|
1272
|
+
t.removeEventListener(_, Pt);
|
|
1273
|
+
var w = (
|
|
1292
1274
|
/** @type {number} */
|
|
1293
|
-
|
|
1275
|
+
pt.get(_)
|
|
1294
1276
|
);
|
|
1295
|
-
--
|
|
1277
|
+
--w === 0 ? (document.removeEventListener(_, Pt), pt.delete(_)) : pt.set(_, w);
|
|
1296
1278
|
}
|
|
1297
|
-
|
|
1279
|
+
Pr.delete(f), v !== r && v.parentNode?.removeChild(v);
|
|
1298
1280
|
};
|
|
1299
1281
|
});
|
|
1300
|
-
return
|
|
1301
|
-
}
|
|
1302
|
-
let
|
|
1303
|
-
function
|
|
1304
|
-
const r =
|
|
1305
|
-
return r ? (
|
|
1306
|
-
}
|
|
1307
|
-
function
|
|
1308
|
-
|
|
1309
|
-
var l = e,
|
|
1310
|
-
const
|
|
1311
|
-
d = !0, v(
|
|
1312
|
-
}, v = (
|
|
1313
|
-
if (
|
|
1314
|
-
let
|
|
1315
|
-
if (
|
|
1282
|
+
return Or.set(d, m), d;
|
|
1283
|
+
}
|
|
1284
|
+
let Or = /* @__PURE__ */ new WeakMap();
|
|
1285
|
+
function Oa(e, t) {
|
|
1286
|
+
const r = Or.get(e);
|
|
1287
|
+
return r ? (Or.delete(e), r(t)) : Promise.resolve();
|
|
1288
|
+
}
|
|
1289
|
+
function K(e, t, [r, o] = [0, 0]) {
|
|
1290
|
+
O && r === 0 && Et();
|
|
1291
|
+
var l = e, a = null, s = null, c = ae, f = r > 0 ? Ur : 0, d = !1;
|
|
1292
|
+
const m = (_, w = !0) => {
|
|
1293
|
+
d = !0, v(w, _);
|
|
1294
|
+
}, v = (_, w) => {
|
|
1295
|
+
if (c === (c = _)) return;
|
|
1296
|
+
let F = !1;
|
|
1297
|
+
if (O && o !== -1) {
|
|
1316
1298
|
if (r === 0) {
|
|
1317
1299
|
const U = (
|
|
1318
1300
|
/** @type {Comment} */
|
|
1319
1301
|
l.data
|
|
1320
1302
|
);
|
|
1321
|
-
U ===
|
|
1303
|
+
U === Mr ? o = 0 : U === Zn ? o = 1 / 0 : (o = parseInt(U.substring(1)), o !== o && (o = c ? 1 / 0 : -1));
|
|
1322
1304
|
}
|
|
1323
|
-
const
|
|
1324
|
-
!!
|
|
1305
|
+
const M = o > r;
|
|
1306
|
+
!!c === M && (l = aa(), Ue(l), _t(!1), F = !0, o = -1);
|
|
1325
1307
|
}
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
})) : (
|
|
1329
|
-
|
|
1330
|
-
})),
|
|
1308
|
+
c ? (a ? On(a) : w && (a = Nr(() => w(l))), s && Lr(s, () => {
|
|
1309
|
+
s = null;
|
|
1310
|
+
})) : (s ? On(s) : w && (s = Nr(() => w(l, [r + 1, o]))), a && Lr(a, () => {
|
|
1311
|
+
a = null;
|
|
1312
|
+
})), F && _t(!0);
|
|
1331
1313
|
};
|
|
1332
|
-
|
|
1333
|
-
d = !1, t(
|
|
1334
|
-
},
|
|
1314
|
+
fo(() => {
|
|
1315
|
+
d = !1, t(m), d || v(null, null);
|
|
1316
|
+
}, f), O && (l = P);
|
|
1335
1317
|
}
|
|
1336
|
-
function
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1339
|
-
var
|
|
1318
|
+
function tt(e, t, r = !1, o = !1, l = !1) {
|
|
1319
|
+
var a = e, s = "";
|
|
1320
|
+
Ce(() => {
|
|
1321
|
+
var c = (
|
|
1340
1322
|
/** @type {Effect} */
|
|
1341
|
-
|
|
1323
|
+
S
|
|
1342
1324
|
);
|
|
1343
|
-
if (
|
|
1344
|
-
|
|
1325
|
+
if (s === (s = t() ?? "")) {
|
|
1326
|
+
O && Et();
|
|
1345
1327
|
return;
|
|
1346
1328
|
}
|
|
1347
|
-
if (
|
|
1348
|
-
|
|
1329
|
+
if (c.nodes_start !== null && (go(
|
|
1330
|
+
c.nodes_start,
|
|
1349
1331
|
/** @type {TemplateNode} */
|
|
1350
|
-
|
|
1351
|
-
),
|
|
1352
|
-
if (
|
|
1353
|
-
|
|
1354
|
-
for (var
|
|
1355
|
-
|
|
1356
|
-
d =
|
|
1357
|
-
/* @__PURE__ */
|
|
1358
|
-
if (
|
|
1359
|
-
throw
|
|
1360
|
-
|
|
1332
|
+
c.nodes_end
|
|
1333
|
+
), c.nodes_start = c.nodes_end = null), s !== "") {
|
|
1334
|
+
if (O) {
|
|
1335
|
+
P.data;
|
|
1336
|
+
for (var f = Et(), d = f; f !== null && (f.nodeType !== 8 || /** @type {Comment} */
|
|
1337
|
+
f.data !== ""); )
|
|
1338
|
+
d = f, f = /** @type {TemplateNode} */
|
|
1339
|
+
/* @__PURE__ */ Be(f);
|
|
1340
|
+
if (f === null)
|
|
1341
|
+
throw hr(), bt;
|
|
1342
|
+
Ae(P, d), a = Ue(f);
|
|
1361
1343
|
return;
|
|
1362
1344
|
}
|
|
1363
|
-
var
|
|
1364
|
-
r ?
|
|
1365
|
-
var v =
|
|
1366
|
-
if ((r ||
|
|
1367
|
-
/* @__PURE__ */
|
|
1345
|
+
var m = s + "";
|
|
1346
|
+
r ? m = `<svg>${m}</svg>` : o && (m = `<math>${m}</math>`);
|
|
1347
|
+
var v = Zr(m);
|
|
1348
|
+
if ((r || o) && (v = /** @type {Element} */
|
|
1349
|
+
/* @__PURE__ */ ve(v)), Ae(
|
|
1368
1350
|
/** @type {TemplateNode} */
|
|
1369
|
-
/* @__PURE__ */
|
|
1351
|
+
/* @__PURE__ */ ve(v),
|
|
1370
1352
|
/** @type {TemplateNode} */
|
|
1371
1353
|
v.lastChild
|
|
1372
|
-
), r ||
|
|
1373
|
-
for (; /* @__PURE__ */
|
|
1374
|
-
|
|
1354
|
+
), r || o)
|
|
1355
|
+
for (; /* @__PURE__ */ ve(v); )
|
|
1356
|
+
a.before(
|
|
1375
1357
|
/** @type {Node} */
|
|
1376
|
-
/* @__PURE__ */
|
|
1358
|
+
/* @__PURE__ */ ve(v)
|
|
1377
1359
|
);
|
|
1378
1360
|
else
|
|
1379
|
-
|
|
1361
|
+
a.before(v);
|
|
1380
1362
|
}
|
|
1381
1363
|
});
|
|
1382
1364
|
}
|
|
1383
|
-
function
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
o === !0 && (o = t.children, f = !0), o === void 0 || o(e, f ? () => i : i);
|
|
1365
|
+
function Fa(e, t, r, o, l) {
|
|
1366
|
+
O && Et();
|
|
1367
|
+
var a = t.$$slots?.[r], s = !1;
|
|
1368
|
+
a === !0 && (a = t.children, s = !0), a === void 0 || a(e, s ? () => o : o);
|
|
1388
1369
|
}
|
|
1389
|
-
const
|
|
1370
|
+
const jn = [...`
|
|
1390
1371
|
\r\f \v\uFEFF`];
|
|
1391
|
-
function
|
|
1392
|
-
var
|
|
1372
|
+
function Ma(e, t, r) {
|
|
1373
|
+
var o = "" + e;
|
|
1393
1374
|
if (r) {
|
|
1394
1375
|
for (var l in r)
|
|
1395
1376
|
if (r[l])
|
|
1396
|
-
|
|
1397
|
-
else if (
|
|
1398
|
-
for (var
|
|
1399
|
-
var
|
|
1400
|
-
(
|
|
1377
|
+
o = o ? o + " " + l : l;
|
|
1378
|
+
else if (o.length)
|
|
1379
|
+
for (var a = l.length, s = 0; (s = o.indexOf(l, s)) >= 0; ) {
|
|
1380
|
+
var c = s + a;
|
|
1381
|
+
(s === 0 || jn.includes(o[s - 1])) && (c === o.length || jn.includes(o[c])) ? o = (s === 0 ? "" : o.substring(0, s)) + o.substring(c + 1) : s = c;
|
|
1401
1382
|
}
|
|
1402
1383
|
}
|
|
1403
|
-
return
|
|
1404
|
-
}
|
|
1405
|
-
function
|
|
1406
|
-
var
|
|
1407
|
-
if (
|
|
1408
|
-
var
|
|
1409
|
-
(!
|
|
1410
|
-
} else if (
|
|
1411
|
-
for (var
|
|
1412
|
-
var d = !!
|
|
1413
|
-
(l == null || d !== !!l[
|
|
1384
|
+
return o === "" ? null : o;
|
|
1385
|
+
}
|
|
1386
|
+
function Va(e, t, r, o, l, a) {
|
|
1387
|
+
var s = e.__className;
|
|
1388
|
+
if (O || s !== r || s === void 0) {
|
|
1389
|
+
var c = Ma(r, o, a);
|
|
1390
|
+
(!O || c !== e.getAttribute("class")) && (c == null ? e.removeAttribute("class") : e.className = c), e.__className = r;
|
|
1391
|
+
} else if (a && l !== a)
|
|
1392
|
+
for (var f in a) {
|
|
1393
|
+
var d = !!a[f];
|
|
1394
|
+
(l == null || d !== !!l[f]) && e.classList.toggle(f, d);
|
|
1414
1395
|
}
|
|
1415
|
-
return
|
|
1396
|
+
return a;
|
|
1416
1397
|
}
|
|
1417
|
-
const
|
|
1418
|
-
function
|
|
1419
|
-
if (
|
|
1398
|
+
const Ua = Symbol("is custom element"), ja = Symbol("is html");
|
|
1399
|
+
function qn(e) {
|
|
1400
|
+
if (O) {
|
|
1420
1401
|
var t = !1, r = () => {
|
|
1421
1402
|
if (!t) {
|
|
1422
1403
|
if (t = !0, e.hasAttribute("value")) {
|
|
1423
|
-
var
|
|
1424
|
-
|
|
1404
|
+
var o = e.value;
|
|
1405
|
+
R(e, "value", null), e.value = o;
|
|
1425
1406
|
}
|
|
1426
1407
|
if (e.hasAttribute("checked")) {
|
|
1427
1408
|
var l = e.checked;
|
|
1428
|
-
|
|
1409
|
+
R(e, "checked", null), e.checked = l;
|
|
1429
1410
|
}
|
|
1430
1411
|
}
|
|
1431
1412
|
};
|
|
1432
|
-
e.__on_r = r,
|
|
1413
|
+
e.__on_r = r, _a(r), Do();
|
|
1433
1414
|
}
|
|
1434
1415
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var r =
|
|
1416
|
+
function qa(e, t) {
|
|
1417
|
+
var r = Fo(e);
|
|
1437
1418
|
r.value === (r.value = // treat null and undefined the same for the initial value
|
|
1438
1419
|
t ?? void 0) || // @ts-expect-error
|
|
1439
1420
|
// `progress` elements always need their value set when it's `0`
|
|
1440
1421
|
e.value === t && (t !== 0 || e.nodeName !== "PROGRESS") || (e.value = t ?? "");
|
|
1441
1422
|
}
|
|
1442
|
-
function
|
|
1443
|
-
var l =
|
|
1444
|
-
|
|
1423
|
+
function R(e, t, r, o) {
|
|
1424
|
+
var l = Fo(e);
|
|
1425
|
+
O && (l[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || l[t] !== (l[t] = r) && (t === "loading" && (e[Ji] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ba(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1445
1426
|
}
|
|
1446
|
-
function
|
|
1427
|
+
function Fo(e) {
|
|
1447
1428
|
return (
|
|
1448
1429
|
/** @type {Record<string | symbol, unknown>} **/
|
|
1449
1430
|
// @ts-expect-error
|
|
1450
|
-
e.__attributes
|
|
1451
|
-
[
|
|
1452
|
-
[
|
|
1453
|
-
}
|
|
1431
|
+
e.__attributes ??= {
|
|
1432
|
+
[Ua]: e.nodeName.includes("-"),
|
|
1433
|
+
[ja]: e.namespaceURI === ji
|
|
1434
|
+
}
|
|
1454
1435
|
);
|
|
1455
1436
|
}
|
|
1456
|
-
var
|
|
1457
|
-
function
|
|
1458
|
-
var t =
|
|
1437
|
+
var Bn = /* @__PURE__ */ new Map();
|
|
1438
|
+
function Ba(e) {
|
|
1439
|
+
var t = Bn.get(e.nodeName);
|
|
1459
1440
|
if (t) return t;
|
|
1460
|
-
|
|
1461
|
-
for (var r,
|
|
1462
|
-
r =
|
|
1463
|
-
for (var
|
|
1464
|
-
r[
|
|
1465
|
-
|
|
1441
|
+
Bn.set(e.nodeName, t = []);
|
|
1442
|
+
for (var r, o = e, l = Element.prototype; l !== o; ) {
|
|
1443
|
+
r = Hi(o);
|
|
1444
|
+
for (var a in r)
|
|
1445
|
+
r[a].set && t.push(a);
|
|
1446
|
+
o = Xn(o);
|
|
1466
1447
|
}
|
|
1467
1448
|
return t;
|
|
1468
1449
|
}
|
|
1469
|
-
function
|
|
1470
|
-
|
|
1471
|
-
var l =
|
|
1450
|
+
function Ha(e, t, r = t) {
|
|
1451
|
+
Ta(e, "change", (o) => {
|
|
1452
|
+
var l = o ? e.defaultChecked : e.checked;
|
|
1472
1453
|
r(l);
|
|
1473
1454
|
}), // If we are hydrating and the value has since changed,
|
|
1474
1455
|
// then use the update value from the input instead.
|
|
1475
|
-
(
|
|
1476
|
-
|
|
1477
|
-
var
|
|
1478
|
-
e.checked = !!
|
|
1456
|
+
(O && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
|
|
1457
|
+
ot(t) == null) && r(e.checked), Hr(() => {
|
|
1458
|
+
var o = t();
|
|
1459
|
+
e.checked = !!o;
|
|
1479
1460
|
});
|
|
1480
1461
|
}
|
|
1481
|
-
function
|
|
1482
|
-
return e === t ||
|
|
1462
|
+
function Hn(e, t) {
|
|
1463
|
+
return e === t || e?.[Ot] === t;
|
|
1483
1464
|
}
|
|
1484
|
-
function
|
|
1485
|
-
return
|
|
1486
|
-
var l,
|
|
1487
|
-
return
|
|
1488
|
-
l =
|
|
1489
|
-
e !== r(...
|
|
1465
|
+
function Qt(e = {}, t, r, o) {
|
|
1466
|
+
return Br(() => {
|
|
1467
|
+
var l, a;
|
|
1468
|
+
return Hr(() => {
|
|
1469
|
+
l = a, a = [], ot(() => {
|
|
1470
|
+
e !== r(...a) && (t(e, ...a), l && Hn(r(...l), e) && t(null, ...l));
|
|
1490
1471
|
});
|
|
1491
1472
|
}), () => {
|
|
1492
|
-
|
|
1493
|
-
|
|
1473
|
+
Gr(() => {
|
|
1474
|
+
a && Hn(r(...a), e) && t(null, ...a);
|
|
1494
1475
|
});
|
|
1495
1476
|
};
|
|
1496
1477
|
}), e;
|
|
1497
1478
|
}
|
|
1498
|
-
function
|
|
1499
|
-
|
|
1500
|
-
const t =
|
|
1479
|
+
function Mo(e) {
|
|
1480
|
+
ne === null && Jn(), Dr(() => {
|
|
1481
|
+
const t = ot(e);
|
|
1501
1482
|
if (typeof t == "function") return (
|
|
1502
1483
|
/** @type {() => void} */
|
|
1503
1484
|
t
|
|
1504
1485
|
);
|
|
1505
1486
|
});
|
|
1506
1487
|
}
|
|
1507
|
-
function
|
|
1508
|
-
|
|
1488
|
+
function Ga(e) {
|
|
1489
|
+
ne === null && Jn(), Mo(() => () => ot(e));
|
|
1509
1490
|
}
|
|
1510
|
-
function
|
|
1491
|
+
function Vo(e, t, r) {
|
|
1511
1492
|
if (e == null)
|
|
1512
|
-
return t(void 0),
|
|
1513
|
-
const
|
|
1493
|
+
return t(void 0), yt;
|
|
1494
|
+
const o = ot(
|
|
1514
1495
|
() => e.subscribe(
|
|
1515
1496
|
t,
|
|
1516
1497
|
// @ts-expect-error
|
|
1517
1498
|
r
|
|
1518
1499
|
)
|
|
1519
1500
|
);
|
|
1520
|
-
return
|
|
1501
|
+
return o.unsubscribe ? () => o.unsubscribe() : o;
|
|
1521
1502
|
}
|
|
1522
|
-
const
|
|
1523
|
-
function
|
|
1503
|
+
const mt = [];
|
|
1504
|
+
function Wa(e, t = yt) {
|
|
1524
1505
|
let r = null;
|
|
1525
|
-
const
|
|
1526
|
-
function l(
|
|
1527
|
-
if (
|
|
1528
|
-
const
|
|
1529
|
-
for (const d of
|
|
1530
|
-
d[1](),
|
|
1531
|
-
if (
|
|
1532
|
-
for (let d = 0; d <
|
|
1533
|
-
|
|
1534
|
-
|
|
1506
|
+
const o = /* @__PURE__ */ new Set();
|
|
1507
|
+
function l(c) {
|
|
1508
|
+
if (lo(e, c) && (e = c, r)) {
|
|
1509
|
+
const f = !mt.length;
|
|
1510
|
+
for (const d of o)
|
|
1511
|
+
d[1](), mt.push(d, e);
|
|
1512
|
+
if (f) {
|
|
1513
|
+
for (let d = 0; d < mt.length; d += 2)
|
|
1514
|
+
mt[d][0](mt[d + 1]);
|
|
1515
|
+
mt.length = 0;
|
|
1535
1516
|
}
|
|
1536
1517
|
}
|
|
1537
1518
|
}
|
|
1538
|
-
function
|
|
1539
|
-
l(
|
|
1519
|
+
function a(c) {
|
|
1520
|
+
l(c(
|
|
1540
1521
|
/** @type {T} */
|
|
1541
1522
|
e
|
|
1542
1523
|
));
|
|
1543
1524
|
}
|
|
1544
|
-
function
|
|
1545
|
-
const d = [
|
|
1546
|
-
return
|
|
1525
|
+
function s(c, f = yt) {
|
|
1526
|
+
const d = [c, f];
|
|
1527
|
+
return o.add(d), o.size === 1 && (r = t(l, a) || yt), c(
|
|
1547
1528
|
/** @type {T} */
|
|
1548
1529
|
e
|
|
1549
1530
|
), () => {
|
|
1550
|
-
|
|
1531
|
+
o.delete(d), o.size === 0 && r && (r(), r = null);
|
|
1551
1532
|
};
|
|
1552
1533
|
}
|
|
1553
|
-
return { set: l, update:
|
|
1534
|
+
return { set: l, update: a, subscribe: s };
|
|
1554
1535
|
}
|
|
1555
|
-
function
|
|
1536
|
+
function rr(e) {
|
|
1556
1537
|
let t;
|
|
1557
|
-
return
|
|
1538
|
+
return Vo(e, (r) => t = r)(), t;
|
|
1558
1539
|
}
|
|
1559
|
-
let
|
|
1560
|
-
function
|
|
1561
|
-
const
|
|
1540
|
+
let er = !1, Fr = Symbol();
|
|
1541
|
+
function Ya(e, t, r) {
|
|
1542
|
+
const o = r[t] ??= {
|
|
1562
1543
|
store: null,
|
|
1563
|
-
source: /* @__PURE__ */
|
|
1564
|
-
unsubscribe:
|
|
1565
|
-
}
|
|
1566
|
-
if (
|
|
1567
|
-
if (
|
|
1568
|
-
|
|
1544
|
+
source: /* @__PURE__ */ Yr(void 0),
|
|
1545
|
+
unsubscribe: yt
|
|
1546
|
+
};
|
|
1547
|
+
if (o.store !== e && !(Fr in r))
|
|
1548
|
+
if (o.unsubscribe(), o.store = e ?? null, e == null)
|
|
1549
|
+
o.source.v = void 0, o.unsubscribe = yt;
|
|
1569
1550
|
else {
|
|
1570
1551
|
var l = !0;
|
|
1571
|
-
|
|
1572
|
-
l ?
|
|
1552
|
+
o.unsubscribe = Vo(e, (a) => {
|
|
1553
|
+
l ? o.source.v = a : b(o.source, a);
|
|
1573
1554
|
}), l = !1;
|
|
1574
1555
|
}
|
|
1575
|
-
return e &&
|
|
1556
|
+
return e && Fr in r ? rr(e) : i(o.source);
|
|
1576
1557
|
}
|
|
1577
|
-
function
|
|
1558
|
+
function Za() {
|
|
1578
1559
|
const e = {};
|
|
1579
1560
|
function t() {
|
|
1580
|
-
|
|
1561
|
+
qr(() => {
|
|
1581
1562
|
for (var r in e)
|
|
1582
1563
|
e[r].unsubscribe();
|
|
1583
|
-
|
|
1564
|
+
Mt(e, Fr, {
|
|
1584
1565
|
enumerable: !1,
|
|
1585
1566
|
value: !0
|
|
1586
1567
|
});
|
|
@@ -1588,130 +1569,126 @@ function al() {
|
|
|
1588
1569
|
}
|
|
1589
1570
|
return [e, t];
|
|
1590
1571
|
}
|
|
1591
|
-
function
|
|
1592
|
-
var t =
|
|
1572
|
+
function za(e) {
|
|
1573
|
+
var t = er;
|
|
1593
1574
|
try {
|
|
1594
|
-
return
|
|
1575
|
+
return er = !1, [e(), er];
|
|
1595
1576
|
} finally {
|
|
1596
|
-
|
|
1577
|
+
er = t;
|
|
1597
1578
|
}
|
|
1598
1579
|
}
|
|
1599
|
-
function
|
|
1600
|
-
|
|
1601
|
-
return ((t = e.ctx) == null ? void 0 : t.d) ?? !1;
|
|
1580
|
+
function Gn(e) {
|
|
1581
|
+
return e.ctx?.d ?? !1;
|
|
1602
1582
|
}
|
|
1603
|
-
function
|
|
1604
|
-
var
|
|
1605
|
-
|
|
1606
|
-
f ? [d, c] = ll(() => (
|
|
1583
|
+
function x(e, t, r, o) {
|
|
1584
|
+
var l = (r & Pi) !== 0, a = !0, s = (r & Fi) !== 0, c = (r & Mi) !== 0, f = !1, d;
|
|
1585
|
+
s ? [d, f] = za(() => (
|
|
1607
1586
|
/** @type {V} */
|
|
1608
1587
|
e[t]
|
|
1609
1588
|
)) : d = /** @type {V} */
|
|
1610
1589
|
e[t];
|
|
1611
|
-
var
|
|
1590
|
+
var m = Ot in e || ro in e, v = s && (rt(e, t)?.set ?? (m && t in e && ((j) => e[t] = j))) || void 0, _ = (
|
|
1612
1591
|
/** @type {V} */
|
|
1613
|
-
|
|
1614
|
-
),
|
|
1592
|
+
o
|
|
1593
|
+
), w = !0, F = !1, M = () => (F = !0, w && (w = !1, c ? _ = ot(
|
|
1615
1594
|
/** @type {() => V} */
|
|
1616
|
-
|
|
1617
|
-
) :
|
|
1618
|
-
|
|
1619
|
-
d === void 0 &&
|
|
1595
|
+
o
|
|
1596
|
+
) : _ = /** @type {V} */
|
|
1597
|
+
o), _);
|
|
1598
|
+
d === void 0 && o !== void 0 && (v && a && ra(), d = M(), v && v(d));
|
|
1620
1599
|
var U;
|
|
1621
1600
|
if (U = () => {
|
|
1622
|
-
var
|
|
1601
|
+
var j = (
|
|
1623
1602
|
/** @type {V} */
|
|
1624
1603
|
e[t]
|
|
1625
1604
|
);
|
|
1626
|
-
return
|
|
1627
|
-
}, (r &
|
|
1605
|
+
return j === void 0 ? M() : (w = !0, F = !1, j);
|
|
1606
|
+
}, (r & Oi) === 0)
|
|
1628
1607
|
return U;
|
|
1629
1608
|
if (v) {
|
|
1630
|
-
var
|
|
1631
|
-
return function(
|
|
1632
|
-
return arguments.length > 0 ? ((!
|
|
1609
|
+
var I = e.$$legacy;
|
|
1610
|
+
return function(j, se) {
|
|
1611
|
+
return arguments.length > 0 ? ((!se || I || f) && v(se ? U() : j), j) : U();
|
|
1633
1612
|
};
|
|
1634
1613
|
}
|
|
1635
|
-
var
|
|
1636
|
-
var
|
|
1637
|
-
return
|
|
1614
|
+
var ee = !1, $e = /* @__PURE__ */ Yr(d), X = /* @__PURE__ */ gr(() => {
|
|
1615
|
+
var j = U(), se = i($e);
|
|
1616
|
+
return ee ? (ee = !1, se) : $e.v = j;
|
|
1638
1617
|
});
|
|
1639
|
-
return
|
|
1618
|
+
return s && i(X), l || (X.equals = jr), function(j, se) {
|
|
1640
1619
|
if (arguments.length > 0) {
|
|
1641
|
-
const
|
|
1642
|
-
if (!X.equals(
|
|
1643
|
-
if (
|
|
1644
|
-
return
|
|
1645
|
-
|
|
1620
|
+
const He = se ? i(X) : s ? Me(j) : j;
|
|
1621
|
+
if (!X.equals(He)) {
|
|
1622
|
+
if (ee = !0, b($e, He), F && _ !== void 0 && (_ = He), Gn(X))
|
|
1623
|
+
return j;
|
|
1624
|
+
ot(() => i(X));
|
|
1646
1625
|
}
|
|
1647
|
-
return
|
|
1626
|
+
return j;
|
|
1648
1627
|
}
|
|
1649
|
-
return
|
|
1628
|
+
return Gn(X) ? X.v : i(X);
|
|
1650
1629
|
};
|
|
1651
1630
|
}
|
|
1652
|
-
function
|
|
1653
|
-
return new
|
|
1631
|
+
function Ja(e) {
|
|
1632
|
+
return new Ka(e);
|
|
1654
1633
|
}
|
|
1655
|
-
|
|
1656
|
-
|
|
1634
|
+
class Ka {
|
|
1635
|
+
/** @type {any} */
|
|
1636
|
+
#t;
|
|
1637
|
+
/** @type {Record<string, any>} */
|
|
1638
|
+
#e;
|
|
1657
1639
|
/**
|
|
1658
1640
|
* @param {ComponentConstructorOptions & {
|
|
1659
1641
|
* component: any;
|
|
1660
1642
|
* }} options
|
|
1661
1643
|
*/
|
|
1662
1644
|
constructor(t) {
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
$r(this, me);
|
|
1667
|
-
var o;
|
|
1668
|
-
var r = /* @__PURE__ */ new Map(), i = (f, s) => {
|
|
1669
|
-
var c = /* @__PURE__ */ Kr(s);
|
|
1670
|
-
return r.set(f, c), c;
|
|
1645
|
+
var r = /* @__PURE__ */ new Map(), o = (a, s) => {
|
|
1646
|
+
var c = /* @__PURE__ */ Yr(s);
|
|
1647
|
+
return r.set(a, c), c;
|
|
1671
1648
|
};
|
|
1672
1649
|
const l = new Proxy(
|
|
1673
1650
|
{ ...t.props || {}, $$events: {} },
|
|
1674
1651
|
{
|
|
1675
|
-
get(
|
|
1676
|
-
return
|
|
1652
|
+
get(a, s) {
|
|
1653
|
+
return i(r.get(s) ?? o(s, Reflect.get(a, s)));
|
|
1677
1654
|
},
|
|
1678
|
-
has(
|
|
1679
|
-
return s ===
|
|
1655
|
+
has(a, s) {
|
|
1656
|
+
return s === ro ? !0 : (i(r.get(s) ?? o(s, Reflect.get(a, s))), Reflect.has(a, s));
|
|
1680
1657
|
},
|
|
1681
|
-
set(
|
|
1682
|
-
return b(r.get(s) ??
|
|
1658
|
+
set(a, s, c) {
|
|
1659
|
+
return b(r.get(s) ?? o(s, c), c), Reflect.set(a, s, c);
|
|
1683
1660
|
}
|
|
1684
1661
|
}
|
|
1685
1662
|
);
|
|
1686
|
-
|
|
1663
|
+
this.#e = (t.hydrate ? Pa : Po)(t.component, {
|
|
1687
1664
|
target: t.target,
|
|
1688
1665
|
anchor: t.anchor,
|
|
1689
1666
|
props: l,
|
|
1690
1667
|
context: t.context,
|
|
1691
1668
|
intro: t.intro ?? !1,
|
|
1692
1669
|
recover: t.recover
|
|
1693
|
-
})
|
|
1694
|
-
for (const
|
|
1695
|
-
|
|
1670
|
+
}), (!t?.props?.$$host || t.sync === !1) && E(), this.#t = l.$$events;
|
|
1671
|
+
for (const a of Object.keys(this.#e))
|
|
1672
|
+
a === "$set" || a === "$destroy" || a === "$on" || Mt(this, a, {
|
|
1696
1673
|
get() {
|
|
1697
|
-
return
|
|
1674
|
+
return this.#e[a];
|
|
1698
1675
|
},
|
|
1699
1676
|
/** @param {any} value */
|
|
1700
1677
|
set(s) {
|
|
1701
|
-
|
|
1678
|
+
this.#e[a] = s;
|
|
1702
1679
|
},
|
|
1703
1680
|
enumerable: !0
|
|
1704
1681
|
});
|
|
1705
|
-
|
|
1706
|
-
(
|
|
1707
|
-
Object.assign(l,
|
|
1708
|
-
},
|
|
1709
|
-
|
|
1682
|
+
this.#e.$set = /** @param {Record<string, any>} next */
|
|
1683
|
+
(a) => {
|
|
1684
|
+
Object.assign(l, a);
|
|
1685
|
+
}, this.#e.$destroy = () => {
|
|
1686
|
+
Oa(this.#e);
|
|
1710
1687
|
};
|
|
1711
1688
|
}
|
|
1712
1689
|
/** @param {Record<string, any>} props */
|
|
1713
1690
|
$set(t) {
|
|
1714
|
-
|
|
1691
|
+
this.#e.$set(t);
|
|
1715
1692
|
}
|
|
1716
1693
|
/**
|
|
1717
1694
|
* @param {string} event
|
|
@@ -1719,123 +1696,120 @@ class ul {
|
|
|
1719
1696
|
* @returns {any}
|
|
1720
1697
|
*/
|
|
1721
1698
|
$on(t, r) {
|
|
1722
|
-
|
|
1723
|
-
const
|
|
1724
|
-
return
|
|
1725
|
-
|
|
1699
|
+
this.#t[t] = this.#t[t] || [];
|
|
1700
|
+
const o = (...l) => r.call(this, ...l);
|
|
1701
|
+
return this.#t[t].push(o), () => {
|
|
1702
|
+
this.#t[t] = this.#t[t].filter(
|
|
1726
1703
|
/** @param {any} fn */
|
|
1727
|
-
(l) => l !==
|
|
1704
|
+
(l) => l !== o
|
|
1728
1705
|
);
|
|
1729
1706
|
};
|
|
1730
1707
|
}
|
|
1731
1708
|
$destroy() {
|
|
1732
|
-
|
|
1733
|
-
}
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1709
|
+
this.#e.$destroy();
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
let Uo;
|
|
1713
|
+
typeof HTMLElement == "function" && (Uo = class extends HTMLElement {
|
|
1714
|
+
/** The Svelte component constructor */
|
|
1715
|
+
$$ctor;
|
|
1716
|
+
/** Slots */
|
|
1717
|
+
$$s;
|
|
1718
|
+
/** @type {any} The Svelte component instance */
|
|
1719
|
+
$$c;
|
|
1720
|
+
/** Whether or not the custom element is connected */
|
|
1721
|
+
$$cn = !1;
|
|
1722
|
+
/** @type {Record<string, any>} Component props data */
|
|
1723
|
+
$$d = {};
|
|
1724
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1725
|
+
$$r = !1;
|
|
1726
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1727
|
+
$$p_d = {};
|
|
1728
|
+
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1729
|
+
$$l = {};
|
|
1730
|
+
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1731
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
1732
|
+
/** @type {any} The managed render effect for reflecting attributes */
|
|
1733
|
+
$$me;
|
|
1738
1734
|
/**
|
|
1739
1735
|
* @param {*} $$componentCtor
|
|
1740
1736
|
* @param {*} $$slots
|
|
1741
1737
|
* @param {*} use_shadow_dom
|
|
1742
1738
|
*/
|
|
1743
|
-
constructor(t, r
|
|
1744
|
-
super();
|
|
1745
|
-
/** The Svelte component constructor */
|
|
1746
|
-
Ee(this, "$$ctor");
|
|
1747
|
-
/** Slots */
|
|
1748
|
-
Ee(this, "$$s");
|
|
1749
|
-
/** @type {any} The Svelte component instance */
|
|
1750
|
-
Ee(this, "$$c");
|
|
1751
|
-
/** Whether or not the custom element is connected */
|
|
1752
|
-
Ee(this, "$$cn", !1);
|
|
1753
|
-
/** @type {Record<string, any>} Component props data */
|
|
1754
|
-
Ee(this, "$$d", {});
|
|
1755
|
-
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1756
|
-
Ee(this, "$$r", !1);
|
|
1757
|
-
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1758
|
-
Ee(this, "$$p_d", {});
|
|
1759
|
-
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1760
|
-
Ee(this, "$$l", {});
|
|
1761
|
-
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1762
|
-
Ee(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1763
|
-
/** @type {any} The managed render effect for reflecting attributes */
|
|
1764
|
-
Ee(this, "$$me");
|
|
1765
|
-
this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
|
|
1739
|
+
constructor(e, t, r) {
|
|
1740
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
1766
1741
|
}
|
|
1767
1742
|
/**
|
|
1768
1743
|
* @param {string} type
|
|
1769
1744
|
* @param {EventListenerOrEventListenerObject} listener
|
|
1770
1745
|
* @param {boolean | AddEventListenerOptions} [options]
|
|
1771
1746
|
*/
|
|
1772
|
-
addEventListener(t, r
|
|
1773
|
-
if (this.$$l[
|
|
1774
|
-
const
|
|
1775
|
-
this.$$l_u.set(
|
|
1747
|
+
addEventListener(e, t, r) {
|
|
1748
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
1749
|
+
const o = this.$$c.$on(e, t);
|
|
1750
|
+
this.$$l_u.set(t, o);
|
|
1776
1751
|
}
|
|
1777
|
-
super.addEventListener(t, r
|
|
1752
|
+
super.addEventListener(e, t, r);
|
|
1778
1753
|
}
|
|
1779
1754
|
/**
|
|
1780
1755
|
* @param {string} type
|
|
1781
1756
|
* @param {EventListenerOrEventListenerObject} listener
|
|
1782
1757
|
* @param {boolean | AddEventListenerOptions} [options]
|
|
1783
1758
|
*/
|
|
1784
|
-
removeEventListener(t, r
|
|
1785
|
-
if (super.removeEventListener(t, r
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1759
|
+
removeEventListener(e, t, r) {
|
|
1760
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
1761
|
+
const o = this.$$l_u.get(t);
|
|
1762
|
+
o && (o(), this.$$l_u.delete(t));
|
|
1788
1763
|
}
|
|
1789
1764
|
}
|
|
1790
1765
|
async connectedCallback() {
|
|
1791
1766
|
if (this.$$cn = !0, !this.$$c) {
|
|
1792
|
-
let
|
|
1793
|
-
return (
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1767
|
+
let e = function(o) {
|
|
1768
|
+
return (l) => {
|
|
1769
|
+
const a = document.createElement("slot");
|
|
1770
|
+
o !== "default" && (a.name = o), B(l, a);
|
|
1796
1771
|
};
|
|
1797
1772
|
};
|
|
1798
1773
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1799
1774
|
return;
|
|
1800
|
-
const
|
|
1801
|
-
for (const
|
|
1802
|
-
|
|
1803
|
-
for (const
|
|
1804
|
-
const
|
|
1805
|
-
|
|
1775
|
+
const t = {}, r = Xa(this);
|
|
1776
|
+
for (const o of this.$$s)
|
|
1777
|
+
o in r && (o === "default" && !this.$$d.children ? (this.$$d.children = e(o), t.default = !0) : t[o] = e(o));
|
|
1778
|
+
for (const o of this.attributes) {
|
|
1779
|
+
const l = this.$$g_p(o.name);
|
|
1780
|
+
l in this.$$d || (this.$$d[l] = nr(l, o.value, this.$$p_d, "toProp"));
|
|
1806
1781
|
}
|
|
1807
|
-
for (const
|
|
1808
|
-
!(
|
|
1809
|
-
this.$$c =
|
|
1782
|
+
for (const o in this.$$p_d)
|
|
1783
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
1784
|
+
this.$$c = Ja({
|
|
1810
1785
|
component: this.$$ctor,
|
|
1811
1786
|
target: this.shadowRoot || this,
|
|
1812
1787
|
props: {
|
|
1813
1788
|
...this.$$d,
|
|
1814
|
-
$$slots:
|
|
1789
|
+
$$slots: t,
|
|
1815
1790
|
$$host: this
|
|
1816
1791
|
}
|
|
1817
|
-
}), this.$$me =
|
|
1818
|
-
|
|
1819
|
-
var l;
|
|
1792
|
+
}), this.$$me = ha(() => {
|
|
1793
|
+
Hr(() => {
|
|
1820
1794
|
this.$$r = !0;
|
|
1821
|
-
for (const o of
|
|
1822
|
-
if (!
|
|
1795
|
+
for (const o of or(this.$$c)) {
|
|
1796
|
+
if (!this.$$p_d[o]?.reflect) continue;
|
|
1823
1797
|
this.$$d[o] = this.$$c[o];
|
|
1824
|
-
const
|
|
1798
|
+
const l = nr(
|
|
1825
1799
|
o,
|
|
1826
1800
|
this.$$d[o],
|
|
1827
1801
|
this.$$p_d,
|
|
1828
1802
|
"toAttribute"
|
|
1829
1803
|
);
|
|
1830
|
-
|
|
1804
|
+
l == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, l);
|
|
1831
1805
|
}
|
|
1832
1806
|
this.$$r = !1;
|
|
1833
1807
|
});
|
|
1834
1808
|
});
|
|
1835
|
-
for (const
|
|
1836
|
-
for (const
|
|
1837
|
-
const
|
|
1838
|
-
this.$$l_u.set(
|
|
1809
|
+
for (const o in this.$$l)
|
|
1810
|
+
for (const l of this.$$l[o]) {
|
|
1811
|
+
const a = this.$$c.$on(o, l);
|
|
1812
|
+
this.$$l_u.set(l, a);
|
|
1839
1813
|
}
|
|
1840
1814
|
this.$$l = {};
|
|
1841
1815
|
}
|
|
@@ -1847,9 +1821,8 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1847
1821
|
* @param {string} _oldValue
|
|
1848
1822
|
* @param {string} newValue
|
|
1849
1823
|
*/
|
|
1850
|
-
attributeChangedCallback(t, r
|
|
1851
|
-
|
|
1852
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ar(t, i, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [t]: this.$$d[t] }));
|
|
1824
|
+
attributeChangedCallback(e, t, r) {
|
|
1825
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = nr(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
1853
1826
|
}
|
|
1854
1827
|
disconnectedCallback() {
|
|
1855
1828
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -1859,18 +1832,17 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1859
1832
|
/**
|
|
1860
1833
|
* @param {string} attribute_name
|
|
1861
1834
|
*/
|
|
1862
|
-
$$g_p(
|
|
1863
|
-
return
|
|
1864
|
-
(
|
|
1865
|
-
) ||
|
|
1835
|
+
$$g_p(e) {
|
|
1836
|
+
return or(this.$$p_d).find(
|
|
1837
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
1838
|
+
) || e;
|
|
1866
1839
|
}
|
|
1867
1840
|
});
|
|
1868
|
-
function
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
if (t = l === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
1841
|
+
function nr(e, t, r, o) {
|
|
1842
|
+
const l = r[e]?.type;
|
|
1843
|
+
if (t = l === "Boolean" && typeof t != "boolean" ? t != null : t, !o || !r[e])
|
|
1872
1844
|
return t;
|
|
1873
|
-
if (
|
|
1845
|
+
if (o === "toAttribute")
|
|
1874
1846
|
switch (l) {
|
|
1875
1847
|
case "Object":
|
|
1876
1848
|
case "Array":
|
|
@@ -1896,7 +1868,7 @@ function ar(e, t, r, i) {
|
|
|
1896
1868
|
return t;
|
|
1897
1869
|
}
|
|
1898
1870
|
}
|
|
1899
|
-
function
|
|
1871
|
+
function Xa(e) {
|
|
1900
1872
|
const t = {};
|
|
1901
1873
|
return e.childNodes.forEach((r) => {
|
|
1902
1874
|
t[
|
|
@@ -1905,137 +1877,135 @@ function fl(e) {
|
|
|
1905
1877
|
] = !0;
|
|
1906
1878
|
}), t;
|
|
1907
1879
|
}
|
|
1908
|
-
function
|
|
1909
|
-
let
|
|
1880
|
+
function Qa(e, t, r, o, l, a) {
|
|
1881
|
+
let s = class extends Uo {
|
|
1910
1882
|
constructor() {
|
|
1911
1883
|
super(e, r, l), this.$$p_d = t;
|
|
1912
1884
|
}
|
|
1913
1885
|
static get observedAttributes() {
|
|
1914
|
-
return
|
|
1915
|
-
(
|
|
1886
|
+
return or(t).map(
|
|
1887
|
+
(c) => (t[c].attribute || c).toLowerCase()
|
|
1916
1888
|
);
|
|
1917
1889
|
}
|
|
1918
1890
|
};
|
|
1919
|
-
return
|
|
1920
|
-
|
|
1891
|
+
return or(t).forEach((c) => {
|
|
1892
|
+
Mt(s.prototype, c, {
|
|
1921
1893
|
get() {
|
|
1922
|
-
return this.$$c &&
|
|
1894
|
+
return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
|
|
1923
1895
|
},
|
|
1924
|
-
set(
|
|
1925
|
-
|
|
1926
|
-
c = ar(s, c, t), this.$$d[s] = c;
|
|
1896
|
+
set(f) {
|
|
1897
|
+
f = nr(c, f, t), this.$$d[c] = f;
|
|
1927
1898
|
var d = this.$$c;
|
|
1928
1899
|
if (d) {
|
|
1929
|
-
var
|
|
1930
|
-
|
|
1900
|
+
var m = rt(d, c)?.get;
|
|
1901
|
+
m ? d[c] = f : d.$set({ [c]: f });
|
|
1931
1902
|
}
|
|
1932
1903
|
}
|
|
1933
1904
|
});
|
|
1934
|
-
}),
|
|
1935
|
-
|
|
1905
|
+
}), o.forEach((c) => {
|
|
1906
|
+
Mt(s.prototype, c, {
|
|
1936
1907
|
get() {
|
|
1937
|
-
|
|
1938
|
-
return (c = this.$$c) == null ? void 0 : c[s];
|
|
1908
|
+
return this.$$c?.[c];
|
|
1939
1909
|
}
|
|
1940
1910
|
});
|
|
1941
1911
|
}), e.element = /** @type {any} */
|
|
1942
|
-
|
|
1912
|
+
s, s;
|
|
1943
1913
|
}
|
|
1944
|
-
const
|
|
1945
|
-
function
|
|
1914
|
+
const jo = new TextEncoder();
|
|
1915
|
+
function el(e) {
|
|
1946
1916
|
return [...new Uint8Array(e)].map((t) => t.toString(16).padStart(2, "0")).join("");
|
|
1947
1917
|
}
|
|
1948
|
-
async function
|
|
1949
|
-
const
|
|
1918
|
+
async function tl(e, t = "SHA-256", r = 1e5) {
|
|
1919
|
+
const o = Date.now().toString(16);
|
|
1950
1920
|
e || (e = Math.round(Math.random() * r));
|
|
1951
|
-
const l = await
|
|
1921
|
+
const l = await qo(o, e, t);
|
|
1952
1922
|
return {
|
|
1953
1923
|
algorithm: t,
|
|
1954
1924
|
challenge: l,
|
|
1955
|
-
salt:
|
|
1925
|
+
salt: o,
|
|
1956
1926
|
signature: ""
|
|
1957
1927
|
};
|
|
1958
1928
|
}
|
|
1959
|
-
async function
|
|
1929
|
+
async function qo(e, t, r) {
|
|
1960
1930
|
if (typeof crypto > "u" || !("subtle" in crypto) || !("digest" in crypto.subtle))
|
|
1961
1931
|
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
|
|
1932
|
+
return el(
|
|
1963
1933
|
await crypto.subtle.digest(
|
|
1964
1934
|
r.toUpperCase(),
|
|
1965
|
-
|
|
1935
|
+
jo.encode(e + t)
|
|
1966
1936
|
)
|
|
1967
1937
|
);
|
|
1968
1938
|
}
|
|
1969
|
-
function
|
|
1970
|
-
const
|
|
1939
|
+
function rl(e, t, r = "SHA-256", o = 1e6, l = 0) {
|
|
1940
|
+
const a = new AbortController(), s = Date.now();
|
|
1971
1941
|
return {
|
|
1972
1942
|
promise: (async () => {
|
|
1973
|
-
for (let
|
|
1974
|
-
if (
|
|
1943
|
+
for (let f = l; f <= o; f += 1) {
|
|
1944
|
+
if (a.signal.aborted)
|
|
1975
1945
|
return null;
|
|
1976
|
-
if (await
|
|
1946
|
+
if (await qo(t, f, r) === e)
|
|
1977
1947
|
return {
|
|
1978
|
-
number:
|
|
1979
|
-
took: Date.now() -
|
|
1948
|
+
number: f,
|
|
1949
|
+
took: Date.now() - s
|
|
1980
1950
|
};
|
|
1981
1951
|
}
|
|
1982
1952
|
return null;
|
|
1983
1953
|
})(),
|
|
1984
|
-
controller:
|
|
1954
|
+
controller: a
|
|
1985
1955
|
};
|
|
1986
1956
|
}
|
|
1987
|
-
function
|
|
1957
|
+
function Wn() {
|
|
1988
1958
|
try {
|
|
1989
1959
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1990
1960
|
} catch {
|
|
1991
1961
|
}
|
|
1992
1962
|
}
|
|
1993
|
-
function
|
|
1963
|
+
function nl(e) {
|
|
1994
1964
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
1995
|
-
for (let
|
|
1996
|
-
r[
|
|
1965
|
+
for (let o = 0; o < t.length; o++)
|
|
1966
|
+
r[o] = t.charCodeAt(o);
|
|
1997
1967
|
return r;
|
|
1998
1968
|
}
|
|
1999
|
-
function
|
|
1969
|
+
function ol(e, t = 12) {
|
|
2000
1970
|
const r = new Uint8Array(t);
|
|
2001
|
-
for (let
|
|
2002
|
-
r[
|
|
1971
|
+
for (let o = 0; o < t; o++)
|
|
1972
|
+
r[o] = e % 256, e = Math.floor(e / 256);
|
|
2003
1973
|
return r;
|
|
2004
1974
|
}
|
|
2005
|
-
async function
|
|
2006
|
-
const l = "AES-GCM",
|
|
2007
|
-
for (let
|
|
2008
|
-
if (
|
|
1975
|
+
async function il(e, t = "", r = 1e6, o = 0) {
|
|
1976
|
+
const l = "AES-GCM", a = new AbortController(), s = Date.now(), c = async () => {
|
|
1977
|
+
for (let m = o; m <= r; m += 1) {
|
|
1978
|
+
if (a.signal.aborted || !f || !d)
|
|
2009
1979
|
return null;
|
|
2010
1980
|
try {
|
|
2011
1981
|
const v = await crypto.subtle.decrypt(
|
|
2012
1982
|
{
|
|
2013
1983
|
name: l,
|
|
2014
|
-
iv:
|
|
1984
|
+
iv: ol(m)
|
|
2015
1985
|
},
|
|
2016
|
-
|
|
1986
|
+
f,
|
|
2017
1987
|
d
|
|
2018
1988
|
);
|
|
2019
1989
|
if (v)
|
|
2020
1990
|
return {
|
|
2021
1991
|
clearText: new TextDecoder().decode(v),
|
|
2022
|
-
took: Date.now() -
|
|
1992
|
+
took: Date.now() - s
|
|
2023
1993
|
};
|
|
2024
1994
|
} catch {
|
|
2025
1995
|
}
|
|
2026
1996
|
}
|
|
2027
1997
|
return null;
|
|
2028
1998
|
};
|
|
2029
|
-
let
|
|
1999
|
+
let f = null, d = null;
|
|
2030
2000
|
try {
|
|
2031
|
-
d =
|
|
2032
|
-
const
|
|
2001
|
+
d = nl(e);
|
|
2002
|
+
const m = await crypto.subtle.digest(
|
|
2033
2003
|
"SHA-256",
|
|
2034
|
-
|
|
2004
|
+
jo.encode(t)
|
|
2035
2005
|
);
|
|
2036
|
-
|
|
2006
|
+
f = await crypto.subtle.importKey(
|
|
2037
2007
|
"raw",
|
|
2038
|
-
|
|
2008
|
+
m,
|
|
2039
2009
|
l,
|
|
2040
2010
|
!1,
|
|
2041
2011
|
["decrypt"]
|
|
@@ -2043,26 +2013,26 @@ async function ml(e, t = "", r = 1e6, i = 0) {
|
|
|
2043
2013
|
} catch {
|
|
2044
2014
|
return {
|
|
2045
2015
|
promise: Promise.reject(),
|
|
2046
|
-
controller:
|
|
2016
|
+
controller: a
|
|
2047
2017
|
};
|
|
2048
2018
|
}
|
|
2049
2019
|
return {
|
|
2050
|
-
promise:
|
|
2051
|
-
controller:
|
|
2020
|
+
promise: c(),
|
|
2021
|
+
controller: a
|
|
2052
2022
|
};
|
|
2053
2023
|
}
|
|
2054
|
-
var
|
|
2024
|
+
var y = /* @__PURE__ */ ((e) => (e.CODE = "code", e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(y || {}), Q = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.READY = "ready", e))(Q || {});
|
|
2055
2025
|
globalThis.altchaPlugins = globalThis.altchaPlugins || [];
|
|
2056
2026
|
globalThis.altchaI18n = globalThis.altchaI18n || {
|
|
2057
|
-
get: (e) =>
|
|
2027
|
+
get: (e) => rr(globalThis.altchaI18n.store)[e],
|
|
2058
2028
|
set: (e, t) => {
|
|
2059
|
-
Object.assign(
|
|
2029
|
+
Object.assign(rr(globalThis.altchaI18n.store), {
|
|
2060
2030
|
[e]: t
|
|
2061
|
-
}), globalThis.altchaI18n.store.set(
|
|
2031
|
+
}), globalThis.altchaI18n.store.set(rr(globalThis.altchaI18n.store));
|
|
2062
2032
|
},
|
|
2063
|
-
store:
|
|
2033
|
+
store: Wa({})
|
|
2064
2034
|
};
|
|
2065
|
-
const
|
|
2035
|
+
const al = {
|
|
2066
2036
|
ariaLinkLabel: "Visit Altcha.org",
|
|
2067
2037
|
enterCode: "Enter code",
|
|
2068
2038
|
enterCodeAria: "Enter code you hear. Press Space to play audio.",
|
|
@@ -2079,137 +2049,130 @@ const _l = {
|
|
|
2079
2049
|
verifying: "Verifying...",
|
|
2080
2050
|
waitAlert: "Verifying... please wait."
|
|
2081
2051
|
};
|
|
2082
|
-
globalThis.altchaI18n.set("en",
|
|
2083
|
-
const
|
|
2084
|
-
let r = /* @__PURE__ */
|
|
2085
|
-
var
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
}),
|
|
2052
|
+
globalThis.altchaI18n.set("en", al);
|
|
2053
|
+
const $r = (e, t) => {
|
|
2054
|
+
let r = /* @__PURE__ */ ua(() => Yi(t?.(), 24));
|
|
2055
|
+
var o = cl();
|
|
2056
|
+
Ce(() => {
|
|
2057
|
+
R(o, "width", i(r)), R(o, "height", i(r));
|
|
2058
|
+
}), B(e, o);
|
|
2089
2059
|
};
|
|
2090
|
-
function
|
|
2060
|
+
function ll(e, t) {
|
|
2091
2061
|
e.code === "Space" && (e.preventDefault(), e.stopImmediatePropagation(), t());
|
|
2092
2062
|
}
|
|
2093
|
-
function
|
|
2063
|
+
function sl(e, t) {
|
|
2094
2064
|
e.preventDefault(), t();
|
|
2095
2065
|
}
|
|
2096
|
-
function
|
|
2097
|
-
var c;
|
|
2066
|
+
function ul(e, t, r, o, l, a, s, c) {
|
|
2098
2067
|
[
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
].includes(
|
|
2104
|
-
}
|
|
2105
|
-
var
|
|
2106
|
-
function
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
const { altchaI18n: eo } = globalThis, to = eo.store, Qr = ["SHA-256", "SHA-384", "SHA-512"], ro = "https://altcha.org/", Ve = (n, u) => {
|
|
2068
|
+
y.UNVERIFIED,
|
|
2069
|
+
y.ERROR,
|
|
2070
|
+
y.EXPIRED,
|
|
2071
|
+
y.CODE
|
|
2072
|
+
].includes(i(t)) ? r() !== !1 && i(o)?.reportValidity() === !1 ? b(l, !1) : a() ? s() : c() : b(l, !0);
|
|
2073
|
+
}
|
|
2074
|
+
var cl = /* @__PURE__ */ _r('<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>'), fl = /* @__PURE__ */ be('<input type="hidden">'), dl = /* @__PURE__ */ be('<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>'), hl = /* @__PURE__ */ _r('<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>'), vl = /* @__PURE__ */ _r('<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>'), gl = /* @__PURE__ */ _r('<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>'), pl = /* @__PURE__ */ be('<button type="button" class="altcha-code-challenge-audio"><!></button>'), ml = /* @__PURE__ */ be("<audio hidden autoplay><source></audio>"), _l = /* @__PURE__ */ be('<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>'), bl = /* @__PURE__ */ be("<div><!></div>"), yl = /* @__PURE__ */ be("<div><!></div>"), wl = /* @__PURE__ */ be('<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>'), El = /* @__PURE__ */ be('<div class="altcha-footer"><div><!></div></div>'), xl = /* @__PURE__ */ be('<div class="altcha-anchor-arrow"></div>'), Cl = /* @__PURE__ */ be('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>', 1);
|
|
2075
|
+
function kl(e, t) {
|
|
2076
|
+
$o(t, !0);
|
|
2077
|
+
const [r, o] = Za(), l = () => Ya(Wo, "$altchaI18nStore", r);
|
|
2078
|
+
let a = x(t, "auto", 7, void 0), s = x(t, "blockspam", 7, void 0), c = x(t, "challengeurl", 7, void 0), f = x(t, "challengejson", 7, void 0), d = x(t, "credentials", 7, void 0), m = x(t, "customfetch", 7, void 0), v = x(t, "debug", 7, !1), _ = x(t, "delay", 7, 0), w = x(t, "disableautofocus", 7, !1), F = x(t, "refetchonexpire", 7, !0), M = x(t, "disablerefetchonexpire", 23, () => !F()), U = x(t, "expire", 7, void 0), I = x(t, "floating", 7, void 0), ee = x(t, "floatinganchor", 7, void 0), $e = x(t, "floatingoffset", 7, void 0), X = x(t, "floatingpersist", 7, !1), j = x(t, "hidefooter", 7, !1), se = x(t, "hidelogo", 7, !1), He = x(t, "id", 7, void 0), Ht = x(t, "language", 7, void 0), Ge = x(t, "name", 7, "altcha"), We = x(t, "maxnumber", 7, 1e6), xt = x(t, "mockerror", 7, !1), Ne = x(t, "obfuscated", 7, void 0), ge = x(t, "overlay", 7, void 0), Ct = x(t, "overlaycontent", 7, void 0), Gt = x(t, "plugins", 7, void 0), Ye = x(t, "sentinel", 7, void 0), ye = x(t, "spamfilter", 7, !1), st = x(t, "strings", 7, void 0), de = x(t, "test", 7, !1), te = x(t, "verifyurl", 7, void 0), ut = x(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), kt = x(t, "workerurl", 7, void 0);
|
|
2079
|
+
const { altchaI18n: Go } = globalThis, Wo = Go.store, zr = ["SHA-256", "SHA-384", "SHA-512"], Yo = "https://altcha.org/", Le = (n, u) => {
|
|
2112
2080
|
t.$$host.dispatchEvent(new CustomEvent(n, { detail: u }));
|
|
2113
|
-
},
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
}),
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
}), Yi(() => {
|
|
2128
|
-
var n;
|
|
2129
|
-
R("mounted", "2.2.2"), R("workers", dt()), so(), R("plugins", je.length ? je.map((u) => u.constructor.pluginName).join(", ") : "none"), ge() && R("using test mode"), $() && kr($()), o() !== void 0 && R("auto", o()), E() !== void 0 && yn(E()), b(N, (n = a(M)) == null ? void 0 : n.closest("form"), !0), a(N) && (a(N).addEventListener("submit", cn, { capture: !0 }), a(N).addEventListener("reset", dn), (o() === "onfocus" || K() === "focus") && a(N).addEventListener("focusin", fn)), ye() && wn(!0), o() === "onload" && (Me() ? Nt() : Pe()), a(Er) && (te() || X()) && R("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
|
|
2130
|
-
Ve("load");
|
|
2081
|
+
}, Jr = document.documentElement.lang?.split("-")?.[0], br = /* @__PURE__ */ Lt(() => c() && new URL(c(), location.origin).host.endsWith(".altcha.org") && !!c()?.includes("apiKey=ckey_")), Wt = /* @__PURE__ */ Lt(() => f() ? fn(f()) : void 0), Zo = /* @__PURE__ */ Lt(() => st() ? fn(st()) : {}), L = /* @__PURE__ */ Lt(() => ({
|
|
2082
|
+
...Qr(l()),
|
|
2083
|
+
...i(Zo)
|
|
2084
|
+
})), Kr = /* @__PURE__ */ Lt(() => `${He() || Ge()}_checkbox_${Math.round(Math.random() * 1e8)}`);
|
|
2085
|
+
let Ze = /* @__PURE__ */ N(null), At = /* @__PURE__ */ N(!1), G = /* @__PURE__ */ N(null), k = /* @__PURE__ */ N(Me(y.UNVERIFIED)), V = /* @__PURE__ */ N(void 0), It = /* @__PURE__ */ N(null), Pe = /* @__PURE__ */ N(null), ue = /* @__PURE__ */ N(null), yr = /* @__PURE__ */ N(null), ct = /* @__PURE__ */ N(null), T = /* @__PURE__ */ N(null), Rt = /* @__PURE__ */ N(null), ze = /* @__PURE__ */ N(null), we = null, W = /* @__PURE__ */ N(null), Je = /* @__PURE__ */ N(!1), Oe = [], wr = /* @__PURE__ */ N(!1), Ee = /* @__PURE__ */ N(null);
|
|
2086
|
+
Dr(() => {
|
|
2087
|
+
li(i(ze));
|
|
2088
|
+
}), Dr(() => {
|
|
2089
|
+
si(i(k));
|
|
2090
|
+
}), Ga(() => {
|
|
2091
|
+
zo(), b(Rt, null), i(T) && (i(T).removeEventListener("submit", an), i(T).removeEventListener("reset", ln), i(T).removeEventListener("focusin", on), b(T, null)), we && (clearTimeout(we), we = null), document.removeEventListener("click", rn), document.removeEventListener("scroll", nn), window.removeEventListener("resize", cn);
|
|
2092
|
+
}), Mo(() => {
|
|
2093
|
+
A("mounted", "2.2.4"), A("workers", ut()), Qo(), A("plugins", Oe.length ? Oe.map((n) => n.constructor.pluginName).join(", ") : "none"), de() && A("using test mode"), U() && xr(U()), a() !== void 0 && A("auto", a()), I() !== void 0 && gn(I()), b(T, i(V)?.closest("form"), !0), i(T) && (i(T).addEventListener("submit", an, { capture: !0 }), i(T).addEventListener("reset", ln), (a() === "onfocus" || X() === "focus") && i(T).addEventListener("focusin", on)), ge() && pn(!0), a() === "onload" && (Ne() ? $t() : Se()), i(br) && (j() || se()) && A("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
|
|
2094
|
+
Le("load");
|
|
2131
2095
|
});
|
|
2132
2096
|
});
|
|
2133
|
-
function
|
|
2097
|
+
function Yt(n, u) {
|
|
2134
2098
|
return btoa(JSON.stringify({
|
|
2135
2099
|
algorithm: n.algorithm,
|
|
2136
2100
|
challenge: n.challenge,
|
|
2137
2101
|
number: u.number,
|
|
2138
2102
|
salt: n.salt,
|
|
2139
2103
|
signature: n.signature,
|
|
2140
|
-
test:
|
|
2104
|
+
test: de() ? !0 : void 0,
|
|
2141
2105
|
took: u.took
|
|
2142
2106
|
}));
|
|
2143
2107
|
}
|
|
2144
|
-
function
|
|
2145
|
-
for (const n of
|
|
2108
|
+
function zo() {
|
|
2109
|
+
for (const n of Oe)
|
|
2146
2110
|
n.destroy();
|
|
2147
2111
|
}
|
|
2148
|
-
function
|
|
2149
|
-
|
|
2112
|
+
function Xr() {
|
|
2113
|
+
c() && !M() && i(k) === y.VERIFIED ? Se() : Ke(y.EXPIRED, i(L).expired);
|
|
2150
2114
|
}
|
|
2151
|
-
async function
|
|
2152
|
-
if (
|
|
2153
|
-
throw
|
|
2154
|
-
if (
|
|
2155
|
-
return
|
|
2156
|
-
if (
|
|
2157
|
-
return
|
|
2115
|
+
async function Jo() {
|
|
2116
|
+
if (xt())
|
|
2117
|
+
throw A("mocking error"), new Error("Mocked error.");
|
|
2118
|
+
if (i(Wt))
|
|
2119
|
+
return A("using provided json data"), dn(i(Wt).salt), i(Wt);
|
|
2120
|
+
if (de())
|
|
2121
|
+
return A("generating test challenge", { test: de() }), tl(typeof de() != "boolean" ? +de() : void 0);
|
|
2158
2122
|
{
|
|
2159
|
-
if (!
|
|
2160
|
-
const
|
|
2161
|
-
|
|
2123
|
+
if (!c() && i(T)) {
|
|
2124
|
+
const g = i(T).getAttribute("action");
|
|
2125
|
+
g?.includes("/form/") && c(g + "/altcha");
|
|
2162
2126
|
}
|
|
2163
|
-
if (!
|
|
2127
|
+
if (!c())
|
|
2164
2128
|
throw new Error("Attribute challengeurl not set.");
|
|
2165
|
-
|
|
2129
|
+
A("fetching challenge from", c());
|
|
2166
2130
|
const n = {
|
|
2167
2131
|
credentials: typeof d() == "boolean" ? "include" : d(),
|
|
2168
|
-
headers:
|
|
2169
|
-
}, u = await
|
|
2132
|
+
headers: ye() !== !1 ? { "x-altcha-spam-filter": "1" } : {}
|
|
2133
|
+
}, u = await Er()(c(), n);
|
|
2170
2134
|
if (!u || !(u instanceof Response))
|
|
2171
2135
|
throw new Error("Custom fetch function did not return a response.");
|
|
2172
2136
|
if (u.status !== 200)
|
|
2173
2137
|
throw new Error(`Server responded with ${u.status}.`);
|
|
2174
|
-
const
|
|
2175
|
-
if (
|
|
2138
|
+
const h = u.headers.get("X-Altcha-Config"), p = await u.json();
|
|
2139
|
+
if (dn(p.salt), h)
|
|
2176
2140
|
try {
|
|
2177
|
-
const
|
|
2178
|
-
|
|
2179
|
-
} catch (
|
|
2180
|
-
|
|
2141
|
+
const g = JSON.parse(h);
|
|
2142
|
+
g && typeof g == "object" && (g.verifyurl && !g.verifyurl.startsWith("fn:") && (g.verifyurl = tn(g.verifyurl)), bn(g));
|
|
2143
|
+
} catch (g) {
|
|
2144
|
+
A("unable to configure from X-Altcha-Config", g);
|
|
2181
2145
|
}
|
|
2182
2146
|
return p;
|
|
2183
2147
|
}
|
|
2184
2148
|
}
|
|
2185
|
-
function
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
return ((p = u == null ? void 0 : u.value) == null ? void 0 : p.slice(u.value.indexOf("@"))) || void 0;
|
|
2149
|
+
function Ko(n) {
|
|
2150
|
+
const u = i(T)?.querySelector(typeof n == "string" ? `input[name="${n}"]` : 'input[type="email"]:not([data-no-spamfilter])');
|
|
2151
|
+
return u?.value?.slice(u.value.indexOf("@")) || void 0;
|
|
2189
2152
|
}
|
|
2190
|
-
function
|
|
2153
|
+
function Er() {
|
|
2191
2154
|
let n = fetch;
|
|
2192
|
-
if (
|
|
2193
|
-
if (
|
|
2194
|
-
if (n = globalThis[
|
|
2195
|
-
throw new Error(`Custom fetch function not found: ${
|
|
2155
|
+
if (m())
|
|
2156
|
+
if (A("using customfetch"), typeof m() == "string") {
|
|
2157
|
+
if (n = globalThis[m()] || null, !n)
|
|
2158
|
+
throw new Error(`Custom fetch function not found: ${m()}`);
|
|
2196
2159
|
} else
|
|
2197
|
-
n =
|
|
2160
|
+
n = m();
|
|
2198
2161
|
return n;
|
|
2199
2162
|
}
|
|
2200
|
-
function
|
|
2201
|
-
|
|
2163
|
+
function Qr(n, u = [
|
|
2164
|
+
Ht() || "",
|
|
2202
2165
|
document.documentElement.lang || "",
|
|
2203
2166
|
...navigator.languages
|
|
2204
2167
|
]) {
|
|
2205
|
-
const
|
|
2206
|
-
(
|
|
2168
|
+
const h = Object.keys(n).map((g) => g.toLowerCase()), p = u.reduce(
|
|
2169
|
+
(g, C) => (C = C.toLowerCase(), g || (n[C] ? C : null) || h.find((D) => C.split("-")[0] === D.split("-")[0]) || null),
|
|
2207
2170
|
null
|
|
2208
2171
|
);
|
|
2209
2172
|
return n[p || "en"];
|
|
2210
2173
|
}
|
|
2211
|
-
function
|
|
2212
|
-
return
|
|
2174
|
+
function Xo() {
|
|
2175
|
+
return ye() === "ipAddress" ? {
|
|
2213
2176
|
blockedCountries: void 0,
|
|
2214
2177
|
classifier: void 0,
|
|
2215
2178
|
disableRules: void 0,
|
|
@@ -2220,7 +2183,7 @@ function Fl(e, t) {
|
|
|
2220
2183
|
ipAddress: void 0,
|
|
2221
2184
|
text: void 0,
|
|
2222
2185
|
timeZone: void 0
|
|
2223
|
-
} : typeof
|
|
2186
|
+
} : typeof ye() == "object" ? ye() : {
|
|
2224
2187
|
blockedCountries: void 0,
|
|
2225
2188
|
classifier: void 0,
|
|
2226
2189
|
disableRules: void 0,
|
|
@@ -2233,187 +2196,179 @@ function Fl(e, t) {
|
|
|
2233
2196
|
timeZone: void 0
|
|
2234
2197
|
};
|
|
2235
2198
|
}
|
|
2236
|
-
function
|
|
2237
|
-
var g;
|
|
2199
|
+
function en(n) {
|
|
2238
2200
|
return [
|
|
2239
|
-
...(
|
|
2201
|
+
...i(T)?.querySelectorAll(n?.length ? n.map((h) => `input[name="${h}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])') || []
|
|
2240
2202
|
].reduce(
|
|
2241
|
-
(
|
|
2242
|
-
const
|
|
2243
|
-
return
|
|
2244
|
-
`) :
|
|
2203
|
+
(h, p) => {
|
|
2204
|
+
const g = p.name, C = p.value;
|
|
2205
|
+
return g && C && (h[g] = /\n/.test(C) ? C.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
|
|
2206
|
+
`) : C), h;
|
|
2245
2207
|
},
|
|
2246
2208
|
{}
|
|
2247
2209
|
);
|
|
2248
2210
|
}
|
|
2249
|
-
function
|
|
2250
|
-
const
|
|
2251
|
-
if (p.search || (p.search =
|
|
2252
|
-
for (const
|
|
2253
|
-
u[
|
|
2211
|
+
function tn(n, u) {
|
|
2212
|
+
const h = new URL(c() || location.origin), p = new URL(n, h);
|
|
2213
|
+
if (p.search || (p.search = h.search), u)
|
|
2214
|
+
for (const g in u)
|
|
2215
|
+
u[g] !== void 0 && u[g] !== null && p.searchParams.set(g, u[g]);
|
|
2254
2216
|
return p.toString();
|
|
2255
2217
|
}
|
|
2256
|
-
function
|
|
2257
|
-
const n =
|
|
2218
|
+
function Qo() {
|
|
2219
|
+
const n = Gt() !== void 0 ? Gt().split(",") : void 0;
|
|
2258
2220
|
for (const u of globalThis.altchaPlugins)
|
|
2259
|
-
(!n || n.includes(u.pluginName)) &&
|
|
2260
|
-
el:
|
|
2261
|
-
clarify:
|
|
2262
|
-
dispatch:
|
|
2263
|
-
getConfiguration:
|
|
2264
|
-
getFloatingAnchor:
|
|
2265
|
-
getState:
|
|
2266
|
-
log:
|
|
2267
|
-
reset:
|
|
2268
|
-
solve:
|
|
2269
|
-
setState:
|
|
2270
|
-
setFloatingAnchor:
|
|
2271
|
-
verify:
|
|
2221
|
+
(!n || n.includes(u.pluginName)) && Oe.push(new u({
|
|
2222
|
+
el: i(V),
|
|
2223
|
+
clarify: $t,
|
|
2224
|
+
dispatch: Le,
|
|
2225
|
+
getConfiguration: yn,
|
|
2226
|
+
getFloatingAnchor: wn,
|
|
2227
|
+
getState: En,
|
|
2228
|
+
log: A,
|
|
2229
|
+
reset: Ke,
|
|
2230
|
+
solve: _n,
|
|
2231
|
+
setState: xe,
|
|
2232
|
+
setFloatingAnchor: xn,
|
|
2233
|
+
verify: Se
|
|
2272
2234
|
}));
|
|
2273
2235
|
}
|
|
2274
|
-
function
|
|
2275
|
-
(v() || n.some((u) => u instanceof Error)) && console[n[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${
|
|
2236
|
+
function A(...n) {
|
|
2237
|
+
(v() || n.some((u) => u instanceof Error)) && console[n[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${Ge()}]`, ...n);
|
|
2276
2238
|
}
|
|
2277
|
-
function
|
|
2278
|
-
b(
|
|
2239
|
+
function ei() {
|
|
2240
|
+
b(W, Q.PAUSED, !0);
|
|
2279
2241
|
}
|
|
2280
|
-
function
|
|
2281
|
-
b(
|
|
2242
|
+
function ti(n) {
|
|
2243
|
+
b(W, Q.ERROR, !0);
|
|
2282
2244
|
}
|
|
2283
|
-
function
|
|
2284
|
-
b(
|
|
2245
|
+
function ri() {
|
|
2246
|
+
b(W, Q.READY, !0);
|
|
2285
2247
|
}
|
|
2286
|
-
function
|
|
2287
|
-
b(
|
|
2248
|
+
function ni() {
|
|
2249
|
+
b(W, Q.LOADING, !0);
|
|
2288
2250
|
}
|
|
2289
|
-
function
|
|
2290
|
-
b(
|
|
2251
|
+
function oi() {
|
|
2252
|
+
b(W, Q.PLAYING, !0);
|
|
2291
2253
|
}
|
|
2292
|
-
function
|
|
2293
|
-
b(
|
|
2254
|
+
function ii() {
|
|
2255
|
+
b(W, Q.PAUSED, !0);
|
|
2294
2256
|
}
|
|
2295
|
-
function
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
solution: a(H).solution
|
|
2257
|
+
function ai(n) {
|
|
2258
|
+
if (n.preventDefault(), n.stopPropagation(), i(G)) {
|
|
2259
|
+
const u = new FormData(n.target), h = String(u.get("code"));
|
|
2260
|
+
if (te()?.startsWith("fn:")) {
|
|
2261
|
+
const p = te().replace(/^fn:/, "");
|
|
2262
|
+
if (A(`calling ${p} function instead of verifyurl`), !(p in globalThis))
|
|
2263
|
+
throw new Error(`Global function "${p}" is undefined.`);
|
|
2264
|
+
return globalThis[p]({
|
|
2265
|
+
challenge: i(G).challenge,
|
|
2266
|
+
code: h,
|
|
2267
|
+
solution: i(G).solution
|
|
2307
2268
|
});
|
|
2308
2269
|
}
|
|
2309
|
-
b(
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
b(H, null), $e(w.ERROR, h), R("sentinel verification failed:", h);
|
|
2270
|
+
b(Je, !0), hn(Yt(i(G).challenge, i(G).solution), h).then(({ reason: p, verified: g }) => {
|
|
2271
|
+
g ? (b(G, null), xe(y.VERIFIED), A("verified"), Rr().then(() => {
|
|
2272
|
+
i(yr)?.focus(), Le("verified", { payload: i(Ee) }), a() === "onsubmit" ? vn(i(Rt)) : ge() && St();
|
|
2273
|
+
})) : (Ke(), b(ze, p || "Verification failed", !0));
|
|
2274
|
+
}).catch((p) => {
|
|
2275
|
+
b(G, null), xe(y.ERROR, p), A("sentinel verification failed:", p);
|
|
2316
2276
|
}).finally(() => {
|
|
2317
|
-
b(
|
|
2277
|
+
b(Je, !1);
|
|
2318
2278
|
});
|
|
2319
2279
|
}
|
|
2320
2280
|
}
|
|
2321
|
-
function
|
|
2322
|
-
var g;
|
|
2281
|
+
function rn(n) {
|
|
2323
2282
|
const u = n.target;
|
|
2324
|
-
|
|
2283
|
+
I() && u && !i(V).contains(u) && (i(k) === y.VERIFIED && X() === !1 || i(k) === y.VERIFIED && X() === "focus" && !i(T)?.matches(":focus-within") || a() === "off" && i(k) === y.UNVERIFIED) && St();
|
|
2325
2284
|
}
|
|
2326
|
-
function
|
|
2327
|
-
|
|
2285
|
+
function nn() {
|
|
2286
|
+
I() && i(k) !== y.UNVERIFIED && Tt();
|
|
2328
2287
|
}
|
|
2329
|
-
function
|
|
2330
|
-
for (const u of
|
|
2331
|
-
typeof u.onErrorChange == "function" && u.onErrorChange(
|
|
2288
|
+
function li(n) {
|
|
2289
|
+
for (const u of Oe)
|
|
2290
|
+
typeof u.onErrorChange == "function" && u.onErrorChange(i(ze));
|
|
2332
2291
|
}
|
|
2333
|
-
function
|
|
2334
|
-
|
|
2292
|
+
function on(n) {
|
|
2293
|
+
i(k) === y.UNVERIFIED ? Se() : I() && X() === "focus" && i(k) === y.VERIFIED && Zt();
|
|
2335
2294
|
}
|
|
2336
|
-
function
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
bn(a(Dt));
|
|
2341
|
-
})) : a(I) !== w.VERIFIED && (n.preventDefault(), n.stopPropagation(), a(I) === w.VERIFYING && hn())) : a(N) && E() && o() === "off" && a(I) === w.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), Kt()));
|
|
2295
|
+
function an(n) {
|
|
2296
|
+
n.target?.hasAttribute("data-code-challenge-form") || (b(Rt, n.submitter, !0), i(T) && a() === "onsubmit" ? (i(Rt)?.blur(), i(k) === y.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), Se().then(() => {
|
|
2297
|
+
vn(i(Rt));
|
|
2298
|
+
})) : i(k) !== y.VERIFIED && (n.preventDefault(), n.stopPropagation(), i(k) === y.VERIFYING && sn())) : i(T) && I() && a() === "off" && i(k) === y.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), Zt()));
|
|
2342
2299
|
}
|
|
2343
|
-
function
|
|
2344
|
-
|
|
2300
|
+
function ln() {
|
|
2301
|
+
Ke();
|
|
2345
2302
|
}
|
|
2346
|
-
function
|
|
2347
|
-
|
|
2303
|
+
function sn() {
|
|
2304
|
+
i(k) === y.VERIFYING && i(L).waitAlert && alert(i(L).waitAlert);
|
|
2348
2305
|
}
|
|
2349
|
-
function
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
(n = a(Ue)) == null || n.play();
|
|
2306
|
+
function un() {
|
|
2307
|
+
i(Pe) ? i(Pe).paused ? (i(Pe).currentTime = 0, i(Pe).play()) : i(Pe).pause() : (b(wr, !0), requestAnimationFrame(() => {
|
|
2308
|
+
i(Pe)?.play();
|
|
2353
2309
|
}));
|
|
2354
2310
|
}
|
|
2355
|
-
function
|
|
2356
|
-
for (const u of
|
|
2357
|
-
typeof u.onStateChange == "function" && u.onStateChange(
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
}), b(
|
|
2311
|
+
function si(n) {
|
|
2312
|
+
for (const u of Oe)
|
|
2313
|
+
typeof u.onStateChange == "function" && u.onStateChange(i(k));
|
|
2314
|
+
I() && i(k) !== y.UNVERIFIED && requestAnimationFrame(() => {
|
|
2315
|
+
Tt();
|
|
2316
|
+
}), b(At, i(k) === y.VERIFIED), ge() && i(ue) && (i(k) !== y.UNVERIFIED ? Zt() : St());
|
|
2361
2317
|
}
|
|
2362
|
-
function
|
|
2363
|
-
|
|
2318
|
+
function cn() {
|
|
2319
|
+
I() && Tt();
|
|
2364
2320
|
}
|
|
2365
|
-
function
|
|
2321
|
+
function fn(n) {
|
|
2366
2322
|
return JSON.parse(n);
|
|
2367
2323
|
}
|
|
2368
|
-
function
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
if (!re())
|
|
2324
|
+
function dn(n) {
|
|
2325
|
+
const u = new URLSearchParams(n.split("?")?.[1]), h = u.get("expires") || u.get("expire");
|
|
2326
|
+
if (h) {
|
|
2327
|
+
const p = new Date(+h * 1e3), g = isNaN(p.getTime()) ? 0 : p.getTime() - Date.now();
|
|
2328
|
+
g > 0 && xr(g);
|
|
2329
|
+
} else we && (clearTimeout(we), we = null);
|
|
2330
|
+
}
|
|
2331
|
+
async function ui(n) {
|
|
2332
|
+
if (!te())
|
|
2378
2333
|
throw new Error("Attribute verifyurl not set.");
|
|
2379
|
-
|
|
2334
|
+
A("requesting server verification from", te());
|
|
2380
2335
|
const u = { payload: n };
|
|
2381
|
-
if (
|
|
2336
|
+
if (ye() !== !1) {
|
|
2382
2337
|
const {
|
|
2383
|
-
blockedCountries:
|
|
2338
|
+
blockedCountries: g,
|
|
2384
2339
|
classifier: C,
|
|
2385
|
-
disableRules:
|
|
2386
|
-
email:
|
|
2387
|
-
expectedLanguages:
|
|
2388
|
-
expectedCountries:
|
|
2389
|
-
fields:
|
|
2390
|
-
ipAddress:
|
|
2391
|
-
text:
|
|
2392
|
-
timeZone:
|
|
2393
|
-
} =
|
|
2394
|
-
u.blockedCountries =
|
|
2340
|
+
disableRules: D,
|
|
2341
|
+
email: H,
|
|
2342
|
+
expectedLanguages: q,
|
|
2343
|
+
expectedCountries: oe,
|
|
2344
|
+
fields: ie,
|
|
2345
|
+
ipAddress: Qe,
|
|
2346
|
+
text: dt,
|
|
2347
|
+
timeZone: et
|
|
2348
|
+
} = Xo();
|
|
2349
|
+
u.blockedCountries = g, u.classifier = C, u.disableRules = D, u.email = H === !1 ? void 0 : Ko(H), u.expectedCountries = oe, u.expectedLanguages = q || (Jr ? [Jr] : void 0), u.fields = ie === !1 ? void 0 : en(ie), u.ipAddress = Qe === !1 ? void 0 : Qe || "auto", u.text = dt, u.timeZone = et === !1 ? void 0 : et || Wn();
|
|
2395
2350
|
}
|
|
2396
|
-
const
|
|
2351
|
+
const h = await Er()(te(), {
|
|
2397
2352
|
body: JSON.stringify(u),
|
|
2398
2353
|
headers: { "content-type": "application/json" },
|
|
2399
2354
|
method: "POST"
|
|
2400
2355
|
});
|
|
2401
|
-
if (!
|
|
2356
|
+
if (!h || !(h instanceof Response))
|
|
2402
2357
|
throw new Error("Custom fetch function did not return a response.");
|
|
2403
|
-
if (
|
|
2404
|
-
throw new Error(`Server responded with ${
|
|
2405
|
-
const p = await
|
|
2406
|
-
if (p
|
|
2358
|
+
if (h.status !== 200)
|
|
2359
|
+
throw new Error(`Server responded with ${h.status}.`);
|
|
2360
|
+
const p = await h.json();
|
|
2361
|
+
if (p?.payload && b(Ee, p.payload, !0), Le("serververification", p), s() && p.classification === "BAD")
|
|
2407
2362
|
throw new Error("SpamFilter returned negative classification.");
|
|
2408
2363
|
}
|
|
2409
|
-
async function
|
|
2410
|
-
if (!
|
|
2364
|
+
async function hn(n, u) {
|
|
2365
|
+
if (!te())
|
|
2411
2366
|
throw new Error("Attribute verifyurl not set.");
|
|
2412
|
-
|
|
2413
|
-
const
|
|
2414
|
-
|
|
2415
|
-
const p = await
|
|
2416
|
-
body: JSON.stringify(
|
|
2367
|
+
A("requesting sentinel verification from", te());
|
|
2368
|
+
const h = { code: u, payload: n };
|
|
2369
|
+
Ye() && (h.fields = Ye().fields ? en() : void 0, h.timeZone = Ye().timeZone ? Wn() : void 0);
|
|
2370
|
+
const p = await Er()(te(), {
|
|
2371
|
+
body: JSON.stringify(h),
|
|
2417
2372
|
headers: { "content-type": "application/json" },
|
|
2418
2373
|
method: "POST"
|
|
2419
2374
|
});
|
|
@@ -2421,668 +2376,672 @@ function Fl(e, t) {
|
|
|
2421
2376
|
throw new Error("Fetch function did not return a response.");
|
|
2422
2377
|
if (p.status !== 200)
|
|
2423
2378
|
throw new Error(`Server responded with ${p.status}.`);
|
|
2424
|
-
const
|
|
2425
|
-
return
|
|
2379
|
+
const g = await p.json();
|
|
2380
|
+
return g?.payload && b(Ee, g.payload, !0), Le("sentinelverification", g), g;
|
|
2426
2381
|
}
|
|
2427
|
-
function
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
C.preventDefault(), Qe();
|
|
2445
|
-
}), a(de).classList.add("altcha-overlay-backdrop"), h.classList.add("altcha-overlay-close-button"), p.classList.add("altcha-overlay"), a(de).append(p), p.append(h), It() && p.append(...document.querySelectorAll(It())), p.append(a(M).parentElement);
|
|
2382
|
+
function vn(n) {
|
|
2383
|
+
i(T) && "requestSubmit" in i(T) ? i(T).requestSubmit(n) : i(T)?.reportValidity() && (n ? n.click() : i(T).submit());
|
|
2384
|
+
}
|
|
2385
|
+
function xr(n) {
|
|
2386
|
+
A("expire", n), we && (clearTimeout(we), we = null), n < 1 ? Xr() : we = setTimeout(Xr, n);
|
|
2387
|
+
}
|
|
2388
|
+
function gn(n) {
|
|
2389
|
+
A("floating", n), I() !== n && (i(V).style.left = "", i(V).style.top = ""), I(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : I()), I() ? (a() || a("onsubmit"), document.addEventListener("scroll", nn), document.addEventListener("click", rn), window.addEventListener("resize", cn)) : a() === "onsubmit" && a(void 0);
|
|
2390
|
+
}
|
|
2391
|
+
function pn(n) {
|
|
2392
|
+
if (A("overlay", n), ge(n), n) {
|
|
2393
|
+
if (a() || a("onsubmit"), i(ue) && i(V).parentElement && i(ue).replaceWith(i(V).parentElement), i(V)?.parentElement?.parentElement) {
|
|
2394
|
+
b(ue, document.createElement("div"), !0), i(V).parentElement.parentElement.appendChild(i(ue));
|
|
2395
|
+
const u = document.createElement("div"), h = document.createElement("button");
|
|
2396
|
+
h.type = "button", h.innerHTML = "×", h.addEventListener("click", (p) => {
|
|
2397
|
+
p.preventDefault(), Ke();
|
|
2398
|
+
}), i(ue).classList.add("altcha-overlay-backdrop"), h.classList.add("altcha-overlay-close-button"), u.classList.add("altcha-overlay"), i(ue).append(u), u.append(h), Ct() && u.append(...document.querySelectorAll(Ct())), u.append(i(V).parentElement);
|
|
2446
2399
|
}
|
|
2447
|
-
} else
|
|
2400
|
+
} else i(ue) && i(V).parentElement && (i(ue).replaceWith(i(V).parentElement), i(V).style.display = "block");
|
|
2448
2401
|
}
|
|
2449
|
-
function
|
|
2402
|
+
function mn(n) {
|
|
2450
2403
|
if (!n.algorithm)
|
|
2451
2404
|
throw new Error("Invalid challenge. Property algorithm is missing.");
|
|
2452
2405
|
if (n.signature === void 0)
|
|
2453
2406
|
throw new Error("Invalid challenge. Property signature is missing.");
|
|
2454
|
-
if (!
|
|
2455
|
-
throw new Error(`Unknown algorithm value. Allowed values: ${
|
|
2407
|
+
if (!zr.includes(n.algorithm.toUpperCase()))
|
|
2408
|
+
throw new Error(`Unknown algorithm value. Allowed values: ${zr.join(", ")}`);
|
|
2456
2409
|
if (!n.challenge || n.challenge.length < 40)
|
|
2457
2410
|
throw new Error("Challenge is too short. Min. 40 chars.");
|
|
2458
2411
|
if (!n.salt || n.salt.length < 10)
|
|
2459
2412
|
throw new Error("Salt is too short. Min. 10 chars.");
|
|
2460
2413
|
}
|
|
2461
|
-
async function
|
|
2462
|
-
let u = null,
|
|
2414
|
+
async function _n(n) {
|
|
2415
|
+
let u = null, h = null;
|
|
2463
2416
|
if ("Worker" in window) {
|
|
2464
2417
|
try {
|
|
2465
|
-
u =
|
|
2418
|
+
u = ci(n, n.maxNumber || n.maxnumber || We()), b(Ze, u.controller, !0), h = await u.promise;
|
|
2466
2419
|
} catch (p) {
|
|
2467
|
-
|
|
2420
|
+
A(p);
|
|
2468
2421
|
} finally {
|
|
2469
|
-
b(
|
|
2422
|
+
b(Ze, null);
|
|
2470
2423
|
}
|
|
2471
|
-
if (
|
|
2472
|
-
return { data: n, solution:
|
|
2424
|
+
if (h === null || h?.number !== void 0 || "obfuscated" in n)
|
|
2425
|
+
return { data: n, solution: h };
|
|
2473
2426
|
}
|
|
2474
2427
|
if ("obfuscated" in n) {
|
|
2475
|
-
const p = await
|
|
2428
|
+
const p = await il(n.obfuscated, n.key, n.maxNumber || n.maxnumber);
|
|
2476
2429
|
return { data: n, solution: await p.promise };
|
|
2477
2430
|
}
|
|
2478
|
-
u =
|
|
2431
|
+
u = rl(n.challenge, n.salt, n.algorithm, n.maxNumber || n.maxnumber || We()), b(Ze, u.controller, !0);
|
|
2479
2432
|
try {
|
|
2480
|
-
|
|
2433
|
+
h = await u.promise;
|
|
2481
2434
|
} catch (p) {
|
|
2482
|
-
|
|
2435
|
+
A(p);
|
|
2483
2436
|
} finally {
|
|
2484
|
-
b(
|
|
2437
|
+
b(Ze, null);
|
|
2485
2438
|
}
|
|
2486
|
-
return { data: n, solution:
|
|
2487
|
-
}
|
|
2488
|
-
function
|
|
2489
|
-
const p = new AbortController(),
|
|
2490
|
-
|
|
2491
|
-
for (let
|
|
2492
|
-
|
|
2493
|
-
const C = Math.ceil(u /
|
|
2439
|
+
return { data: n, solution: h };
|
|
2440
|
+
}
|
|
2441
|
+
function ci(n, u = typeof de() == "number" ? de() : n.maxNumber || n.maxnumber || We(), h = Math.ceil(ut())) {
|
|
2442
|
+
const p = new AbortController(), g = [];
|
|
2443
|
+
h = Math.min(16, u, Math.max(1, h));
|
|
2444
|
+
for (let H = 0; H < h; H++)
|
|
2445
|
+
g.push(altchaCreateWorker(kt()));
|
|
2446
|
+
const C = Math.ceil(u / h);
|
|
2494
2447
|
return { promise: (async () => {
|
|
2495
|
-
const
|
|
2496
|
-
const
|
|
2448
|
+
const H = await Promise.all(g.map((q, oe) => {
|
|
2449
|
+
const ie = oe * C;
|
|
2497
2450
|
return p.signal.addEventListener("abort", () => {
|
|
2498
|
-
|
|
2499
|
-
}), new Promise((
|
|
2500
|
-
|
|
2501
|
-
if (
|
|
2502
|
-
for (const
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
}),
|
|
2451
|
+
q.postMessage({ type: "abort" });
|
|
2452
|
+
}), new Promise((Qe) => {
|
|
2453
|
+
q.addEventListener("message", (dt) => {
|
|
2454
|
+
if (dt.data)
|
|
2455
|
+
for (const et of g)
|
|
2456
|
+
et !== q && et.postMessage({ type: "abort" });
|
|
2457
|
+
Qe(dt.data);
|
|
2458
|
+
}), q.postMessage({
|
|
2506
2459
|
payload: n,
|
|
2507
|
-
max:
|
|
2508
|
-
start:
|
|
2460
|
+
max: ie + C,
|
|
2461
|
+
start: ie,
|
|
2509
2462
|
type: "work"
|
|
2510
2463
|
});
|
|
2511
2464
|
});
|
|
2512
2465
|
}));
|
|
2513
|
-
for (const
|
|
2514
|
-
|
|
2515
|
-
return
|
|
2466
|
+
for (const q of g)
|
|
2467
|
+
q.terminate();
|
|
2468
|
+
return H.find((q) => !!q) || null;
|
|
2516
2469
|
})(), controller: p };
|
|
2517
2470
|
}
|
|
2518
|
-
async function
|
|
2519
|
-
if (!
|
|
2520
|
-
|
|
2471
|
+
async function $t() {
|
|
2472
|
+
if (!Ne()) {
|
|
2473
|
+
xe(y.ERROR);
|
|
2521
2474
|
return;
|
|
2522
2475
|
}
|
|
2523
|
-
const n =
|
|
2476
|
+
const n = Oe.find((u) => u.constructor.pluginName === "obfuscation");
|
|
2524
2477
|
if (!n || !("clarify" in n)) {
|
|
2525
|
-
|
|
2478
|
+
xe(y.ERROR), A("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");
|
|
2526
2479
|
return;
|
|
2527
2480
|
}
|
|
2528
2481
|
if ("clarify" in n && typeof n.clarify == "function")
|
|
2529
2482
|
return n.clarify();
|
|
2530
2483
|
}
|
|
2531
|
-
function
|
|
2532
|
-
n.obfuscated !== void 0 &&
|
|
2484
|
+
function bn(n) {
|
|
2485
|
+
n.obfuscated !== void 0 && Ne(n.obfuscated), n.auto !== void 0 && (a(n.auto), a() === "onload" && (Ne() ? $t() : Se())), n.blockspam !== void 0 && s(!!n.blockspam), n.customfetch !== void 0 && m(n.customfetch), n.floatinganchor !== void 0 && ee(n.floatinganchor), n.delay !== void 0 && _(n.delay), n.floatingoffset !== void 0 && $e(n.floatingoffset), n.floating !== void 0 && gn(n.floating), n.expire !== void 0 && (xr(n.expire), U(n.expire)), n.challenge && (f(typeof n.challenge == "string" ? n.challenge : JSON.stringify(n.challenge)), mn(i(Wt))), n.challengeurl !== void 0 && c(n.challengeurl), n.debug !== void 0 && v(!!n.debug), n.hidefooter !== void 0 && j(!!n.hidefooter), n.hidelogo !== void 0 && se(!!n.hidelogo), n.language !== void 0 && st(Qr(l(), [n.language])), n.maxnumber !== void 0 && We(+n.maxnumber), n.mockerror !== void 0 && xt(!!n.mockerror), n.name !== void 0 && Ge(n.name), n.overlaycontent !== void 0 && Ct(n.overlaycontent), n.overlay !== void 0 && pn(n.overlay), n.refetchonexpire !== void 0 && M(!n.refetchonexpire), n.disablerefetchonexpire !== void 0 && M(!n.disablerefetchonexpire), n.sentinel !== void 0 && typeof n.sentinel == "object" && Ye(n.sentinel), n.spamfilter !== void 0 && ye(typeof n.spamfilter == "object" ? n.spamfilter : !!n.spamfilter), n.strings && st(typeof n.strings == "string" ? n.strings : JSON.stringify(n.strings)), n.test !== void 0 && de(typeof n.test == "number" ? n.test : !!n.test), n.verifyurl !== void 0 && te(n.verifyurl), n.workers !== void 0 && ut(+n.workers), n.workerurl !== void 0 && kt(n.workerurl);
|
|
2533
2486
|
}
|
|
2534
|
-
function
|
|
2487
|
+
function yn() {
|
|
2535
2488
|
return {
|
|
2536
|
-
auto:
|
|
2537
|
-
blockspam:
|
|
2538
|
-
challengeurl:
|
|
2489
|
+
auto: a(),
|
|
2490
|
+
blockspam: s(),
|
|
2491
|
+
challengeurl: c(),
|
|
2539
2492
|
debug: v(),
|
|
2540
|
-
delay:
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2493
|
+
delay: _(),
|
|
2494
|
+
disableautofocus: w(),
|
|
2495
|
+
disablerefetchonexpire: M(),
|
|
2496
|
+
expire: U(),
|
|
2497
|
+
floating: I(),
|
|
2498
|
+
floatinganchor: ee(),
|
|
2499
|
+
floatingoffset: $e(),
|
|
2500
|
+
hidefooter: j(),
|
|
2501
|
+
hidelogo: se(),
|
|
2502
|
+
name: Ge(),
|
|
2503
|
+
maxnumber: We(),
|
|
2504
|
+
mockerror: xt(),
|
|
2505
|
+
obfuscated: Ne(),
|
|
2506
|
+
overlay: ge(),
|
|
2507
|
+
refetchonexpire: !M(),
|
|
2508
|
+
spamfilter: ye(),
|
|
2509
|
+
strings: i(L),
|
|
2510
|
+
test: de(),
|
|
2511
|
+
verifyurl: te(),
|
|
2512
|
+
workers: ut(),
|
|
2513
|
+
workerurl: kt()
|
|
2559
2514
|
};
|
|
2560
2515
|
}
|
|
2561
|
-
function
|
|
2562
|
-
return
|
|
2516
|
+
function wn() {
|
|
2517
|
+
return i(ct);
|
|
2563
2518
|
}
|
|
2564
|
-
function
|
|
2565
|
-
return
|
|
2519
|
+
function fi(n) {
|
|
2520
|
+
return Oe.find((u) => u.constructor.pluginName === n);
|
|
2566
2521
|
}
|
|
2567
|
-
function
|
|
2568
|
-
return
|
|
2522
|
+
function En() {
|
|
2523
|
+
return i(k);
|
|
2569
2524
|
}
|
|
2570
|
-
function
|
|
2571
|
-
|
|
2525
|
+
function St() {
|
|
2526
|
+
i(V).style.display = "none", ge() && i(ue) && (i(ue).style.display = "none");
|
|
2572
2527
|
}
|
|
2573
|
-
function
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
a(Tt).style.left = p.left - V + p.width / 2 - Q.width / 2 + "px";
|
|
2528
|
+
function Tt(n = 20) {
|
|
2529
|
+
if (i(V))
|
|
2530
|
+
if (i(ct) || b(ct, (ee() ? document.querySelector(ee()) : i(T)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || i(T), !0), i(ct)) {
|
|
2531
|
+
const u = parseInt($e(), 10) || 12, h = i(ct).getBoundingClientRect(), p = i(V).getBoundingClientRect(), g = document.documentElement.clientHeight, C = document.documentElement.clientWidth, D = I() === "auto" ? h.bottom + p.height + u + n > g : I() === "top", H = Math.max(n, Math.min(C - n - p.width, h.left + h.width / 2 - p.width / 2));
|
|
2532
|
+
if (D ? i(V).style.top = `${h.top - (p.height + u)}px` : i(V).style.top = `${h.bottom + u}px`, i(V).style.left = `${H}px`, i(V).setAttribute("data-floating", D ? "top" : "bottom"), i(It)) {
|
|
2533
|
+
const q = i(It).getBoundingClientRect();
|
|
2534
|
+
i(It).style.left = h.left - H + h.width / 2 - q.width / 2 + "px";
|
|
2581
2535
|
}
|
|
2582
2536
|
} else
|
|
2583
|
-
|
|
2537
|
+
A("unable to find floating anchor element");
|
|
2584
2538
|
}
|
|
2585
|
-
function
|
|
2586
|
-
|
|
2539
|
+
function Ke(n = y.UNVERIFIED, u = null) {
|
|
2540
|
+
i(Ze) && (i(Ze).abort(), b(Ze, null)), b(At, !1), b(Ee, null), b(G, null), b(wr, !1), b(W, null), xe(n, u);
|
|
2587
2541
|
}
|
|
2588
|
-
function
|
|
2589
|
-
b(
|
|
2542
|
+
function xn(n) {
|
|
2543
|
+
b(ct, n, !0);
|
|
2590
2544
|
}
|
|
2591
|
-
function
|
|
2592
|
-
b(
|
|
2593
|
-
payload:
|
|
2594
|
-
state:
|
|
2545
|
+
function xe(n, u = null) {
|
|
2546
|
+
b(k, n, !0), b(ze, u, !0), Le("statechange", {
|
|
2547
|
+
payload: i(Ee),
|
|
2548
|
+
state: i(k)
|
|
2595
2549
|
});
|
|
2596
2550
|
}
|
|
2597
|
-
function
|
|
2598
|
-
|
|
2551
|
+
function Zt() {
|
|
2552
|
+
i(V).style.display = "block", I() && Tt(), ge() && i(ue) && (i(ue).style.display = "flex");
|
|
2599
2553
|
}
|
|
2600
|
-
async function
|
|
2601
|
-
return
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(((g = document.activeElement) == null ? void 0 : g.tagName) || "") && y() === !1 && document.activeElement.blur(), b(H, { challenge: n, solution: u }, !0);
|
|
2554
|
+
async function Se() {
|
|
2555
|
+
return Ke(y.VERIFYING), await new Promise((n) => setTimeout(n, _() || 0)), Jo().then((n) => (mn(n), A("challenge", n), _n(n))).then(({ data: n, solution: u }) => {
|
|
2556
|
+
if (A("solution", u), !u || n && "challenge" in n && !("clearText" in u)) {
|
|
2557
|
+
if (u?.number !== void 0 && "challenge" in n)
|
|
2558
|
+
if (te() && "codeChallenge" in n)
|
|
2559
|
+
["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(document.activeElement?.tagName || "") && w() === !1 && document.activeElement.blur(), b(G, { challenge: n, solution: u }, !0);
|
|
2607
2560
|
else {
|
|
2608
|
-
if (
|
|
2609
|
-
return
|
|
2610
|
-
if (
|
|
2611
|
-
return
|
|
2612
|
-
b(
|
|
2561
|
+
if (te() && Ye() !== void 0)
|
|
2562
|
+
return hn(Yt(n, u));
|
|
2563
|
+
if (te())
|
|
2564
|
+
return ui(Yt(n, u));
|
|
2565
|
+
b(Ee, Yt(n, u), !0), A("payload", i(Ee));
|
|
2613
2566
|
}
|
|
2614
|
-
else if (
|
|
2615
|
-
throw
|
|
2567
|
+
else if (i(k) !== y.EXPIRED)
|
|
2568
|
+
throw A("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
|
|
2616
2569
|
}
|
|
2617
2570
|
}).then(() => {
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
})) :
|
|
2621
|
-
|
|
2571
|
+
i(G) ? (xe(y.CODE), Rr().then(() => {
|
|
2572
|
+
Le("code", { codeChallenge: i(G) });
|
|
2573
|
+
})) : i(Ee) && (xe(y.VERIFIED), A("verified"), Rr().then(() => {
|
|
2574
|
+
Le("verified", { payload: i(Ee) }), ge() && St();
|
|
2622
2575
|
}));
|
|
2623
2576
|
}).catch((n) => {
|
|
2624
|
-
|
|
2577
|
+
A(n), xe(y.ERROR, n.message);
|
|
2625
2578
|
});
|
|
2626
2579
|
}
|
|
2627
|
-
var
|
|
2628
|
-
|
|
2629
|
-
var
|
|
2630
|
-
let
|
|
2631
|
-
var
|
|
2580
|
+
var Cn = Cl(), kn = Nt(Cn);
|
|
2581
|
+
Fa(kn, t, "default", {});
|
|
2582
|
+
var ft = J(kn, 2), Cr = z(ft), zt = z(Cr);
|
|
2583
|
+
let An;
|
|
2584
|
+
var In = z(zt);
|
|
2632
2585
|
{
|
|
2633
|
-
var
|
|
2634
|
-
|
|
2586
|
+
var di = (n) => {
|
|
2587
|
+
$r(n);
|
|
2635
2588
|
};
|
|
2636
|
-
|
|
2637
|
-
|
|
2589
|
+
K(In, (n) => {
|
|
2590
|
+
i(k) === y.VERIFYING && n(di);
|
|
2638
2591
|
});
|
|
2639
2592
|
}
|
|
2640
|
-
var
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
],
|
|
2651
|
-
var
|
|
2593
|
+
var Xe = J(In, 2);
|
|
2594
|
+
qn(Xe), Xe.__change = [
|
|
2595
|
+
ul,
|
|
2596
|
+
k,
|
|
2597
|
+
ye,
|
|
2598
|
+
T,
|
|
2599
|
+
At,
|
|
2600
|
+
Ne,
|
|
2601
|
+
$t,
|
|
2602
|
+
Se
|
|
2603
|
+
], Qt(Xe, (n) => b(yr, n), () => i(yr)), Z(zt);
|
|
2604
|
+
var Jt = J(zt, 2), hi = z(Jt);
|
|
2652
2605
|
{
|
|
2653
|
-
var
|
|
2654
|
-
var u =
|
|
2655
|
-
|
|
2656
|
-
},
|
|
2606
|
+
var vi = (n) => {
|
|
2607
|
+
var u = Xt(), h = Nt(u);
|
|
2608
|
+
tt(h, () => i(L).verified), B(n, u);
|
|
2609
|
+
}, gi = (n, u) => {
|
|
2657
2610
|
{
|
|
2658
|
-
var
|
|
2659
|
-
var C =
|
|
2660
|
-
|
|
2661
|
-
}, p = (
|
|
2611
|
+
var h = (g) => {
|
|
2612
|
+
var C = Xt(), D = Nt(C);
|
|
2613
|
+
tt(D, () => i(L).verifying), B(g, C);
|
|
2614
|
+
}, p = (g, C) => {
|
|
2662
2615
|
{
|
|
2663
|
-
var
|
|
2664
|
-
var
|
|
2665
|
-
|
|
2666
|
-
},
|
|
2667
|
-
var
|
|
2668
|
-
|
|
2616
|
+
var D = (q) => {
|
|
2617
|
+
var oe = Xt(), ie = Nt(oe);
|
|
2618
|
+
tt(ie, () => i(L).verificationRequired), B(q, oe);
|
|
2619
|
+
}, H = (q) => {
|
|
2620
|
+
var oe = Xt(), ie = Nt(oe);
|
|
2621
|
+
tt(ie, () => i(L).label), B(q, oe);
|
|
2669
2622
|
};
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
(
|
|
2673
|
-
|
|
2623
|
+
K(
|
|
2624
|
+
g,
|
|
2625
|
+
(q) => {
|
|
2626
|
+
i(k) === y.CODE ? q(D) : q(H, !1);
|
|
2674
2627
|
},
|
|
2675
2628
|
C
|
|
2676
2629
|
);
|
|
2677
2630
|
}
|
|
2678
2631
|
};
|
|
2679
|
-
|
|
2632
|
+
K(
|
|
2680
2633
|
n,
|
|
2681
|
-
(
|
|
2682
|
-
|
|
2634
|
+
(g) => {
|
|
2635
|
+
i(k) === y.VERIFYING ? g(h) : g(p, !1);
|
|
2683
2636
|
},
|
|
2684
2637
|
u
|
|
2685
2638
|
);
|
|
2686
2639
|
}
|
|
2687
2640
|
};
|
|
2688
|
-
|
|
2689
|
-
|
|
2641
|
+
K(hi, (n) => {
|
|
2642
|
+
i(k) === y.VERIFIED ? n(vi) : n(gi, !1);
|
|
2690
2643
|
});
|
|
2691
2644
|
}
|
|
2692
|
-
|
|
2693
|
-
var
|
|
2645
|
+
Z(Jt);
|
|
2646
|
+
var Rn = J(Jt, 2);
|
|
2694
2647
|
{
|
|
2695
|
-
var
|
|
2696
|
-
var u =
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
}),
|
|
2648
|
+
var pi = (n) => {
|
|
2649
|
+
var u = fl();
|
|
2650
|
+
qn(u), Ce(() => {
|
|
2651
|
+
R(u, "name", Ge()), qa(u, i(Ee));
|
|
2652
|
+
}), B(n, u);
|
|
2700
2653
|
};
|
|
2701
|
-
|
|
2702
|
-
|
|
2654
|
+
K(Rn, (n) => {
|
|
2655
|
+
i(k) === y.VERIFIED && n(pi);
|
|
2703
2656
|
});
|
|
2704
2657
|
}
|
|
2705
|
-
var
|
|
2658
|
+
var $n = J(Rn, 2);
|
|
2706
2659
|
{
|
|
2707
|
-
var
|
|
2708
|
-
var u =
|
|
2709
|
-
|
|
2660
|
+
var mi = (n) => {
|
|
2661
|
+
var u = dl(), h = z(u);
|
|
2662
|
+
R(h, "href", Yo), Z(u), Ce(() => R(h, "aria-label", i(L).ariaLinkLabel)), B(n, u);
|
|
2710
2663
|
};
|
|
2711
|
-
|
|
2712
|
-
(
|
|
2664
|
+
K($n, (n) => {
|
|
2665
|
+
(se() !== !0 || i(br)) && n(mi);
|
|
2713
2666
|
});
|
|
2714
2667
|
}
|
|
2715
|
-
var
|
|
2668
|
+
var _i = J($n, 2);
|
|
2716
2669
|
{
|
|
2717
|
-
var
|
|
2718
|
-
var u =
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2670
|
+
var bi = (n) => {
|
|
2671
|
+
var u = _l(), h = J(z(u), 2), p = z(h), g = J(p, 2);
|
|
2672
|
+
Sa(g, !w()), g.__keydown = [
|
|
2673
|
+
ll,
|
|
2674
|
+
un
|
|
2722
2675
|
];
|
|
2723
|
-
var C =
|
|
2676
|
+
var C = J(g, 2), D = z(C), H = z(D);
|
|
2724
2677
|
{
|
|
2725
|
-
var
|
|
2726
|
-
var
|
|
2727
|
-
|
|
2728
|
-
var
|
|
2678
|
+
var q = (pe) => {
|
|
2679
|
+
var Y = pl();
|
|
2680
|
+
Y.__click = un;
|
|
2681
|
+
var Kt = z(Y);
|
|
2729
2682
|
{
|
|
2730
|
-
var
|
|
2731
|
-
|
|
2732
|
-
},
|
|
2683
|
+
var Dt = (ht) => {
|
|
2684
|
+
$r(ht, () => 20);
|
|
2685
|
+
}, Ii = (ht, Ri) => {
|
|
2733
2686
|
{
|
|
2734
|
-
var
|
|
2735
|
-
var
|
|
2736
|
-
|
|
2737
|
-
},
|
|
2687
|
+
var $i = (vt) => {
|
|
2688
|
+
var kr = hl();
|
|
2689
|
+
B(vt, kr);
|
|
2690
|
+
}, Si = (vt, kr) => {
|
|
2738
2691
|
{
|
|
2739
|
-
var
|
|
2740
|
-
var
|
|
2741
|
-
|
|
2742
|
-
},
|
|
2743
|
-
var
|
|
2744
|
-
|
|
2692
|
+
var Ti = (gt) => {
|
|
2693
|
+
var Ar = vl();
|
|
2694
|
+
B(gt, Ar);
|
|
2695
|
+
}, Di = (gt) => {
|
|
2696
|
+
var Ar = gl();
|
|
2697
|
+
B(gt, Ar);
|
|
2745
2698
|
};
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
(
|
|
2749
|
-
|
|
2699
|
+
K(
|
|
2700
|
+
vt,
|
|
2701
|
+
(gt) => {
|
|
2702
|
+
i(W) === Q.PLAYING ? gt(Ti) : gt(Di, !1);
|
|
2750
2703
|
},
|
|
2751
|
-
|
|
2704
|
+
kr
|
|
2752
2705
|
);
|
|
2753
2706
|
}
|
|
2754
2707
|
};
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
(
|
|
2758
|
-
|
|
2708
|
+
K(
|
|
2709
|
+
ht,
|
|
2710
|
+
(vt) => {
|
|
2711
|
+
i(W) === Q.ERROR ? vt($i) : vt(Si, !1);
|
|
2759
2712
|
},
|
|
2760
|
-
|
|
2713
|
+
Ri
|
|
2761
2714
|
);
|
|
2762
2715
|
}
|
|
2763
2716
|
};
|
|
2764
|
-
|
|
2765
|
-
|
|
2717
|
+
K(Kt, (ht) => {
|
|
2718
|
+
i(W) === Q.LOADING ? ht(Dt) : ht(Ii, !1);
|
|
2766
2719
|
});
|
|
2767
2720
|
}
|
|
2768
|
-
Y
|
|
2769
|
-
|
|
2770
|
-
}),
|
|
2721
|
+
Z(Y), Ce(() => {
|
|
2722
|
+
R(Y, "title", i(L).getAudioChallenge), Y.disabled = i(W) === Q.LOADING || i(W) === Q.ERROR || i(Je), R(Y, "aria-label", i(W) === Q.LOADING ? i(L).loading : i(L).getAudioChallenge);
|
|
2723
|
+
}), B(pe, Y);
|
|
2771
2724
|
};
|
|
2772
|
-
|
|
2773
|
-
|
|
2725
|
+
K(H, (pe) => {
|
|
2726
|
+
i(G).challenge.codeChallenge.audio && pe(q);
|
|
2774
2727
|
});
|
|
2775
2728
|
}
|
|
2776
|
-
var
|
|
2777
|
-
|
|
2778
|
-
var
|
|
2729
|
+
var oe = J(H, 2);
|
|
2730
|
+
oe.__click = [sl, Se], Z(D);
|
|
2731
|
+
var ie = J(D, 2), Qe = z(ie);
|
|
2779
2732
|
{
|
|
2780
|
-
var
|
|
2781
|
-
|
|
2733
|
+
var dt = (pe) => {
|
|
2734
|
+
$r(pe, () => 16);
|
|
2782
2735
|
};
|
|
2783
|
-
|
|
2784
|
-
|
|
2736
|
+
K(Qe, (pe) => {
|
|
2737
|
+
i(Je) && pe(dt);
|
|
2785
2738
|
});
|
|
2786
2739
|
}
|
|
2787
|
-
var
|
|
2788
|
-
|
|
2789
|
-
var
|
|
2740
|
+
var et = J(Qe);
|
|
2741
|
+
Z(ie), Z(C);
|
|
2742
|
+
var ki = J(C, 2);
|
|
2790
2743
|
{
|
|
2791
|
-
var
|
|
2792
|
-
var
|
|
2793
|
-
Y
|
|
2794
|
-
() =>
|
|
2795
|
-
]),
|
|
2744
|
+
var Ai = (pe) => {
|
|
2745
|
+
var Y = ml(), Kt = z(Y);
|
|
2746
|
+
Z(Y), Qt(Y, (Dt) => b(Pe, Dt), () => i(Pe)), Ce((Dt) => R(Kt, "src", Dt), [
|
|
2747
|
+
() => tn(i(G).challenge.codeChallenge.audio, { language: Ht() })
|
|
2748
|
+
]), Fe("loadstart", Y, ni), Fe("canplay", Y, ri), Fe("pause", Y, ii), Fe("playing", Y, oi), Fe("ended", Y, ei), Fe("error", Kt, ti), B(pe, Y);
|
|
2796
2749
|
};
|
|
2797
|
-
|
|
2798
|
-
|
|
2750
|
+
K(ki, (pe) => {
|
|
2751
|
+
i(G).challenge.codeChallenge.audio && i(wr) && pe(Ai);
|
|
2799
2752
|
});
|
|
2800
2753
|
}
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
}),
|
|
2754
|
+
Z(h), Z(u), Ce(() => {
|
|
2755
|
+
R(u, "aria-label", i(L).verificationRequired), R(p, "src", i(G).challenge.codeChallenge.image), R(g, "minlength", i(G).challenge.codeChallenge.length || 1), R(g, "maxlength", i(G).challenge.codeChallenge.length), R(g, "placeholder", i(L).enterCode), R(g, "aria-label", i(W) === Q.LOADING ? i(L).loading : i(W) === Q.PLAYING ? "" : i(L).enterCodeAria), R(g, "aria-live", i(W) ? "assertive" : "polite"), R(g, "aria-busy", i(W) === Q.LOADING), g.disabled = i(Je), R(oe, "aria-label", i(L).reload), R(oe, "title", i(L).reload), oe.disabled = i(Je), ie.disabled = i(Je), R(ie, "aria-label", i(L).verify), La(et, ` ${i(L).verify ?? ""}`);
|
|
2756
|
+
}), Fe("submit", h, ai, !0), B(n, u);
|
|
2804
2757
|
};
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
(u = a(H)) != null && u.challenge.codeChallenge && n($o);
|
|
2758
|
+
K(_i, (n) => {
|
|
2759
|
+
i(G)?.challenge.codeChallenge && n(bi);
|
|
2808
2760
|
});
|
|
2809
2761
|
}
|
|
2810
|
-
|
|
2811
|
-
var
|
|
2762
|
+
Z(Cr);
|
|
2763
|
+
var Sn = J(Cr, 2);
|
|
2812
2764
|
{
|
|
2813
|
-
var
|
|
2814
|
-
var u =
|
|
2765
|
+
var yi = (n) => {
|
|
2766
|
+
var u = wl(), h = J(z(u), 2);
|
|
2815
2767
|
{
|
|
2816
2768
|
var p = (C) => {
|
|
2817
|
-
var
|
|
2818
|
-
|
|
2819
|
-
},
|
|
2820
|
-
var
|
|
2821
|
-
|
|
2769
|
+
var D = bl(), H = z(D);
|
|
2770
|
+
tt(H, () => i(L).expired), Z(D), Ce(() => R(D, "title", i(ze))), B(C, D);
|
|
2771
|
+
}, g = (C) => {
|
|
2772
|
+
var D = yl(), H = z(D);
|
|
2773
|
+
tt(H, () => i(L).error), Z(D), Ce(() => R(D, "title", i(ze))), B(C, D);
|
|
2822
2774
|
};
|
|
2823
|
-
|
|
2824
|
-
|
|
2775
|
+
K(h, (C) => {
|
|
2776
|
+
i(k) === y.EXPIRED ? C(p) : C(g, !1);
|
|
2825
2777
|
});
|
|
2826
2778
|
}
|
|
2827
|
-
|
|
2779
|
+
Z(u), B(n, u);
|
|
2828
2780
|
};
|
|
2829
|
-
|
|
2830
|
-
(
|
|
2781
|
+
K(Sn, (n) => {
|
|
2782
|
+
(i(ze) || i(k) === y.EXPIRED) && n(yi);
|
|
2831
2783
|
});
|
|
2832
2784
|
}
|
|
2833
|
-
var
|
|
2785
|
+
var Tn = J(Sn, 2);
|
|
2834
2786
|
{
|
|
2835
|
-
var
|
|
2836
|
-
var u =
|
|
2837
|
-
|
|
2787
|
+
var wi = (n) => {
|
|
2788
|
+
var u = El(), h = z(u), p = z(h);
|
|
2789
|
+
tt(p, () => i(L).footer), Z(h), Z(u), B(n, u);
|
|
2838
2790
|
};
|
|
2839
|
-
|
|
2840
|
-
|
|
2791
|
+
K(Tn, (n) => {
|
|
2792
|
+
i(L).footer && (j() !== !0 || i(br)) && n(wi);
|
|
2841
2793
|
});
|
|
2842
2794
|
}
|
|
2843
|
-
var
|
|
2795
|
+
var Ei = J(Tn, 2);
|
|
2844
2796
|
{
|
|
2845
|
-
var
|
|
2846
|
-
var u =
|
|
2847
|
-
|
|
2797
|
+
var xi = (n) => {
|
|
2798
|
+
var u = xl();
|
|
2799
|
+
Qt(u, (h) => b(It, h), () => i(It)), B(n, u);
|
|
2848
2800
|
};
|
|
2849
|
-
|
|
2850
|
-
|
|
2801
|
+
K(Ei, (n) => {
|
|
2802
|
+
I() && n(xi);
|
|
2851
2803
|
});
|
|
2852
2804
|
}
|
|
2853
|
-
|
|
2805
|
+
Z(ft), Qt(ft, (n) => b(V, n), () => i(V)), Ce(
|
|
2854
2806
|
(n) => {
|
|
2855
|
-
|
|
2807
|
+
R(ft, "data-state", i(k)), R(ft, "data-floating", I()), R(ft, "data-overlay", ge()), An = Va(zt, 1, "altcha-checkbox", null, An, n), R(Xe, "id", i(Kr)), Xe.required = a() !== "onsubmit" && (!I() || a() !== "off"), R(Jt, "for", i(Kr));
|
|
2856
2808
|
},
|
|
2857
2809
|
[
|
|
2858
2810
|
() => ({
|
|
2859
|
-
"altcha-checkbox-verifying":
|
|
2811
|
+
"altcha-checkbox-verifying": i(k) === y.VERIFYING
|
|
2860
2812
|
})
|
|
2861
2813
|
]
|
|
2862
|
-
),
|
|
2863
|
-
var
|
|
2864
|
-
clarify:
|
|
2865
|
-
configure:
|
|
2866
|
-
getConfiguration:
|
|
2867
|
-
getFloatingAnchor:
|
|
2868
|
-
getPlugin:
|
|
2869
|
-
getState:
|
|
2870
|
-
hide:
|
|
2871
|
-
repositionFloating:
|
|
2872
|
-
reset:
|
|
2873
|
-
setFloatingAnchor:
|
|
2874
|
-
setState:
|
|
2875
|
-
show:
|
|
2876
|
-
verify:
|
|
2814
|
+
), Fe("invalid", Xe, sn), Ha(Xe, () => i(At), (n) => b(At, n)), B(e, Cn);
|
|
2815
|
+
var Ci = So({
|
|
2816
|
+
clarify: $t,
|
|
2817
|
+
configure: bn,
|
|
2818
|
+
getConfiguration: yn,
|
|
2819
|
+
getFloatingAnchor: wn,
|
|
2820
|
+
getPlugin: fi,
|
|
2821
|
+
getState: En,
|
|
2822
|
+
hide: St,
|
|
2823
|
+
repositionFloating: Tt,
|
|
2824
|
+
reset: Ke,
|
|
2825
|
+
setFloatingAnchor: xn,
|
|
2826
|
+
setState: xe,
|
|
2827
|
+
show: Zt,
|
|
2828
|
+
verify: Se,
|
|
2877
2829
|
get auto() {
|
|
2878
|
-
return
|
|
2830
|
+
return a();
|
|
2879
2831
|
},
|
|
2880
2832
|
set auto(n = void 0) {
|
|
2881
|
-
|
|
2833
|
+
a(n), E();
|
|
2882
2834
|
},
|
|
2883
2835
|
get blockspam() {
|
|
2884
|
-
return
|
|
2836
|
+
return s();
|
|
2885
2837
|
},
|
|
2886
2838
|
set blockspam(n = void 0) {
|
|
2887
|
-
|
|
2839
|
+
s(n), E();
|
|
2888
2840
|
},
|
|
2889
2841
|
get challengeurl() {
|
|
2890
|
-
return
|
|
2842
|
+
return c();
|
|
2891
2843
|
},
|
|
2892
2844
|
set challengeurl(n = void 0) {
|
|
2893
|
-
|
|
2845
|
+
c(n), E();
|
|
2894
2846
|
},
|
|
2895
2847
|
get challengejson() {
|
|
2896
|
-
return
|
|
2848
|
+
return f();
|
|
2897
2849
|
},
|
|
2898
2850
|
set challengejson(n = void 0) {
|
|
2899
|
-
|
|
2851
|
+
f(n), E();
|
|
2900
2852
|
},
|
|
2901
2853
|
get credentials() {
|
|
2902
2854
|
return d();
|
|
2903
2855
|
},
|
|
2904
2856
|
set credentials(n = void 0) {
|
|
2905
|
-
d(n),
|
|
2857
|
+
d(n), E();
|
|
2906
2858
|
},
|
|
2907
2859
|
get customfetch() {
|
|
2908
|
-
return
|
|
2860
|
+
return m();
|
|
2909
2861
|
},
|
|
2910
2862
|
set customfetch(n = void 0) {
|
|
2911
|
-
|
|
2863
|
+
m(n), E();
|
|
2912
2864
|
},
|
|
2913
2865
|
get debug() {
|
|
2914
2866
|
return v();
|
|
2915
2867
|
},
|
|
2916
2868
|
set debug(n = !1) {
|
|
2917
|
-
v(n),
|
|
2869
|
+
v(n), E();
|
|
2918
2870
|
},
|
|
2919
2871
|
get delay() {
|
|
2920
|
-
return
|
|
2872
|
+
return _();
|
|
2921
2873
|
},
|
|
2922
2874
|
set delay(n = 0) {
|
|
2923
|
-
|
|
2875
|
+
_(n), E();
|
|
2924
2876
|
},
|
|
2925
2877
|
get disableautofocus() {
|
|
2926
|
-
return
|
|
2878
|
+
return w();
|
|
2927
2879
|
},
|
|
2928
2880
|
set disableautofocus(n = !1) {
|
|
2929
|
-
|
|
2881
|
+
w(n), E();
|
|
2882
|
+
},
|
|
2883
|
+
get refetchonexpire() {
|
|
2884
|
+
return F();
|
|
2885
|
+
},
|
|
2886
|
+
set refetchonexpire(n = !0) {
|
|
2887
|
+
F(n), E();
|
|
2888
|
+
},
|
|
2889
|
+
get disablerefetchonexpire() {
|
|
2890
|
+
return M();
|
|
2891
|
+
},
|
|
2892
|
+
set disablerefetchonexpire(n = !F) {
|
|
2893
|
+
M(n), E();
|
|
2930
2894
|
},
|
|
2931
2895
|
get expire() {
|
|
2932
|
-
return
|
|
2896
|
+
return U();
|
|
2933
2897
|
},
|
|
2934
2898
|
set expire(n = void 0) {
|
|
2935
|
-
|
|
2899
|
+
U(n), E();
|
|
2936
2900
|
},
|
|
2937
2901
|
get floating() {
|
|
2938
|
-
return
|
|
2902
|
+
return I();
|
|
2939
2903
|
},
|
|
2940
2904
|
set floating(n = void 0) {
|
|
2941
|
-
|
|
2905
|
+
I(n), E();
|
|
2942
2906
|
},
|
|
2943
2907
|
get floatinganchor() {
|
|
2944
|
-
return
|
|
2908
|
+
return ee();
|
|
2945
2909
|
},
|
|
2946
2910
|
set floatinganchor(n = void 0) {
|
|
2947
|
-
|
|
2911
|
+
ee(n), E();
|
|
2948
2912
|
},
|
|
2949
2913
|
get floatingoffset() {
|
|
2950
|
-
return
|
|
2914
|
+
return $e();
|
|
2951
2915
|
},
|
|
2952
2916
|
set floatingoffset(n = void 0) {
|
|
2953
|
-
|
|
2917
|
+
$e(n), E();
|
|
2954
2918
|
},
|
|
2955
2919
|
get floatingpersist() {
|
|
2956
|
-
return
|
|
2920
|
+
return X();
|
|
2957
2921
|
},
|
|
2958
2922
|
set floatingpersist(n = !1) {
|
|
2959
|
-
|
|
2923
|
+
X(n), E();
|
|
2960
2924
|
},
|
|
2961
2925
|
get hidefooter() {
|
|
2962
|
-
return
|
|
2926
|
+
return j();
|
|
2963
2927
|
},
|
|
2964
2928
|
set hidefooter(n = !1) {
|
|
2965
|
-
|
|
2929
|
+
j(n), E();
|
|
2966
2930
|
},
|
|
2967
2931
|
get hidelogo() {
|
|
2968
|
-
return
|
|
2932
|
+
return se();
|
|
2969
2933
|
},
|
|
2970
2934
|
set hidelogo(n = !1) {
|
|
2971
|
-
|
|
2935
|
+
se(n), E();
|
|
2972
2936
|
},
|
|
2973
2937
|
get id() {
|
|
2974
|
-
return
|
|
2938
|
+
return He();
|
|
2975
2939
|
},
|
|
2976
2940
|
set id(n = void 0) {
|
|
2977
|
-
|
|
2941
|
+
He(n), E();
|
|
2978
2942
|
},
|
|
2979
2943
|
get language() {
|
|
2980
|
-
return
|
|
2944
|
+
return Ht();
|
|
2981
2945
|
},
|
|
2982
2946
|
set language(n = void 0) {
|
|
2983
|
-
|
|
2947
|
+
Ht(n), E();
|
|
2984
2948
|
},
|
|
2985
2949
|
get name() {
|
|
2986
|
-
return
|
|
2950
|
+
return Ge();
|
|
2987
2951
|
},
|
|
2988
2952
|
set name(n = "altcha") {
|
|
2989
|
-
|
|
2953
|
+
Ge(n), E();
|
|
2990
2954
|
},
|
|
2991
2955
|
get maxnumber() {
|
|
2992
|
-
return
|
|
2956
|
+
return We();
|
|
2993
2957
|
},
|
|
2994
2958
|
set maxnumber(n = 1e6) {
|
|
2995
|
-
|
|
2959
|
+
We(n), E();
|
|
2996
2960
|
},
|
|
2997
2961
|
get mockerror() {
|
|
2998
|
-
return
|
|
2962
|
+
return xt();
|
|
2999
2963
|
},
|
|
3000
2964
|
set mockerror(n = !1) {
|
|
3001
|
-
|
|
2965
|
+
xt(n), E();
|
|
3002
2966
|
},
|
|
3003
2967
|
get obfuscated() {
|
|
3004
|
-
return
|
|
2968
|
+
return Ne();
|
|
3005
2969
|
},
|
|
3006
2970
|
set obfuscated(n = void 0) {
|
|
3007
|
-
|
|
2971
|
+
Ne(n), E();
|
|
3008
2972
|
},
|
|
3009
2973
|
get overlay() {
|
|
3010
|
-
return
|
|
2974
|
+
return ge();
|
|
3011
2975
|
},
|
|
3012
2976
|
set overlay(n = void 0) {
|
|
3013
|
-
|
|
2977
|
+
ge(n), E();
|
|
3014
2978
|
},
|
|
3015
2979
|
get overlaycontent() {
|
|
3016
|
-
return
|
|
2980
|
+
return Ct();
|
|
3017
2981
|
},
|
|
3018
2982
|
set overlaycontent(n = void 0) {
|
|
3019
|
-
|
|
2983
|
+
Ct(n), E();
|
|
3020
2984
|
},
|
|
3021
2985
|
get plugins() {
|
|
3022
|
-
return
|
|
2986
|
+
return Gt();
|
|
3023
2987
|
},
|
|
3024
2988
|
set plugins(n = void 0) {
|
|
3025
|
-
|
|
3026
|
-
},
|
|
3027
|
-
get refetchonexpire() {
|
|
3028
|
-
return Rt();
|
|
3029
|
-
},
|
|
3030
|
-
set refetchonexpire(n = !0) {
|
|
3031
|
-
Rt(n), x();
|
|
2989
|
+
Gt(n), E();
|
|
3032
2990
|
},
|
|
3033
2991
|
get sentinel() {
|
|
3034
|
-
return
|
|
2992
|
+
return Ye();
|
|
3035
2993
|
},
|
|
3036
2994
|
set sentinel(n = void 0) {
|
|
3037
|
-
|
|
2995
|
+
Ye(n), E();
|
|
3038
2996
|
},
|
|
3039
2997
|
get spamfilter() {
|
|
3040
|
-
return
|
|
2998
|
+
return ye();
|
|
3041
2999
|
},
|
|
3042
3000
|
set spamfilter(n = !1) {
|
|
3043
|
-
|
|
3001
|
+
ye(n), E();
|
|
3044
3002
|
},
|
|
3045
3003
|
get strings() {
|
|
3046
|
-
return
|
|
3004
|
+
return st();
|
|
3047
3005
|
},
|
|
3048
3006
|
set strings(n = void 0) {
|
|
3049
|
-
|
|
3007
|
+
st(n), E();
|
|
3050
3008
|
},
|
|
3051
3009
|
get test() {
|
|
3052
|
-
return
|
|
3010
|
+
return de();
|
|
3053
3011
|
},
|
|
3054
3012
|
set test(n = !1) {
|
|
3055
|
-
|
|
3013
|
+
de(n), E();
|
|
3056
3014
|
},
|
|
3057
3015
|
get verifyurl() {
|
|
3058
|
-
return
|
|
3016
|
+
return te();
|
|
3059
3017
|
},
|
|
3060
3018
|
set verifyurl(n = void 0) {
|
|
3061
|
-
|
|
3019
|
+
te(n), E();
|
|
3062
3020
|
},
|
|
3063
3021
|
get workers() {
|
|
3064
|
-
return
|
|
3022
|
+
return ut();
|
|
3065
3023
|
},
|
|
3066
3024
|
set workers(n = Math.min(16, navigator.hardwareConcurrency || 8)) {
|
|
3067
|
-
|
|
3025
|
+
ut(n), E();
|
|
3068
3026
|
},
|
|
3069
3027
|
get workerurl() {
|
|
3070
|
-
return
|
|
3028
|
+
return kt();
|
|
3071
3029
|
},
|
|
3072
3030
|
set workerurl(n = void 0) {
|
|
3073
|
-
|
|
3031
|
+
kt(n), E();
|
|
3074
3032
|
}
|
|
3075
3033
|
});
|
|
3076
|
-
return
|
|
3034
|
+
return o(), Ci;
|
|
3077
3035
|
}
|
|
3078
|
-
|
|
3079
|
-
customElements.define("altcha-widget",
|
|
3080
|
-
|
|
3036
|
+
Na(["change", "keydown", "click"]);
|
|
3037
|
+
customElements.define("altcha-widget", Qa(
|
|
3038
|
+
kl,
|
|
3081
3039
|
{
|
|
3082
3040
|
blockspam: { type: "Boolean" },
|
|
3083
3041
|
debug: { type: "Boolean" },
|
|
3084
3042
|
delay: { type: "Number" },
|
|
3085
3043
|
disableautofocus: { type: "Boolean" },
|
|
3044
|
+
disablerefetchonexpire: { type: "Boolean" },
|
|
3086
3045
|
expire: { type: "Number" },
|
|
3087
3046
|
floatingoffset: { type: "Number" },
|
|
3088
3047
|
hidefooter: { type: "Boolean" },
|
|
@@ -3131,16 +3090,16 @@ customElements.define("altcha-widget", cl(
|
|
|
3131
3090
|
],
|
|
3132
3091
|
!1
|
|
3133
3092
|
));
|
|
3134
|
-
const
|
|
3135
|
-
function
|
|
3093
|
+
const Bo = '@keyframes overlay-slidein{to{opacity:1;top:50%}}@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}.altcha-overlay{--altcha-color-base:#fff;--altcha-color-text:#000;animation:overlay-slidein .5s forwards;display:flex;flex-direction:column;gap:.5rem;left:50%;width:260px;opacity:0;position:fixed;top:45%;transform:translate(-50%,-50%)}.altcha-overlay-backdrop{background:rgba(0,0,0,.5);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:99999999}.altcha-overlay-close-button{align-self:flex-end;background:0 0;border:0;padding:.25rem;cursor:pointer;color:currentColor;font-size:130%;line-height:1;opacity:.7}@media (max-height:450px){.altcha-overlay{top:10%!important;transform:translate(-50%,0)}}';
|
|
3094
|
+
function Ho(e, t = "__altcha-css") {
|
|
3136
3095
|
if (!document.getElementById(t)) {
|
|
3137
3096
|
const r = document.createElement("style");
|
|
3138
3097
|
r.id = t, r.textContent = e, document.head.appendChild(r);
|
|
3139
3098
|
}
|
|
3140
3099
|
}
|
|
3141
|
-
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new
|
|
3142
|
-
|
|
3143
|
-
|
|
3100
|
+
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new Ni();
|
|
3101
|
+
Ho(Bo);
|
|
3102
|
+
Ho(Bo);
|
|
3144
3103
|
export {
|
|
3145
|
-
|
|
3104
|
+
kl as Altcha
|
|
3146
3105
|
};
|