@prosopo/procaptcha-bundle 2.6.7 → 2.6.8
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/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -1
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/CHANGELOG.md +10 -0
- package/dist/bundle/ProcaptchaWidget-DPyDGPiI.js +156 -0
- package/dist/bundle/{ProcaptchaWidget-DrBDhP6X.js → ProcaptchaWidget-DoqUlwHS.js} +7 -7
- package/dist/bundle/{asU8a-CJdNkNEq.js → asU8a-BixKX-w0.js} +1 -1
- package/dist/bundle/bip39-D7YSihxf.js +260 -0
- package/dist/bundle/{browser-ponyfill-Dy1JBTMg.js → browser-ponyfill-Bctlk3uB.js} +30 -31
- package/dist/bundle/{captchaComponentProvider-DmV1WTrT.js → captchaComponentProvider-BL18T1UE.js} +4 -4
- package/dist/bundle/{captchaRenderer-RIsSZXCC.js → captchaRenderer-BAMErqQN.js} +2 -2
- package/dist/bundle/{emotion-element-5486c51c.browser.esm-C3u8NMUC.js → emotion-element-5486c51c.browser.esm-Bjt1gs1F.js} +1 -1
- package/dist/bundle/{hash-_rWungeW.js → hash-CrwduMDb.js} +483 -796
- package/dist/bundle/{i18nFrontend-CsPT71ro.js → i18nFrontend-DCv3P9jv.js} +1 -1
- package/dist/bundle/{index-Wgw2GQWq.js → index-1qH2dz7u.js} +2 -2
- package/dist/bundle/index-BeN3et18.js +4844 -0
- package/dist/bundle/{index-DxIFpl6U.js → index-ByKGlSkE.js} +1 -1
- package/dist/bundle/{index-Cu5oL_7b.js → index-CBquknc2.js} +5 -5
- package/dist/bundle/locales/ar/translation.json +1 -2
- package/dist/bundle/locales/az/translation.json +1 -2
- package/dist/bundle/locales/cs/translation.json +1 -2
- package/dist/bundle/locales/de/translation.json +1 -2
- package/dist/bundle/locales/el/translation.json +1 -2
- package/dist/bundle/locales/en/translation.json +1 -2
- package/dist/bundle/locales/es/translation.json +1 -2
- package/dist/bundle/locales/fi/translation.json +1 -2
- package/dist/bundle/locales/fr/translation.json +1 -2
- package/dist/bundle/locales/hi/translation.json +1 -2
- package/dist/bundle/locales/hu/translation.json +1 -2
- package/dist/bundle/locales/id/translation.json +1 -2
- package/dist/bundle/locales/it/translation.json +1 -2
- package/dist/bundle/locales/ja/translation.json +1 -2
- package/dist/bundle/locales/jv/translation.json +1 -2
- package/dist/bundle/locales/ko/translation.json +1 -2
- package/dist/bundle/locales/ml/translation.json +1 -2
- package/dist/bundle/locales/ms/translation.json +1 -2
- package/dist/bundle/locales/nl/translation.json +1 -2
- package/dist/bundle/locales/no/translation.json +1 -2
- package/dist/bundle/locales/pl/translation.json +1 -2
- package/dist/bundle/locales/pt/translation.json +1 -2
- package/dist/bundle/locales/pt-br/translation.json +1 -2
- package/dist/bundle/locales/ro/translation.json +1 -2
- package/dist/bundle/locales/ru/translation.json +1 -2
- package/dist/bundle/locales/sr/translation.json +1 -2
- package/dist/bundle/locales/sv/translation.json +1 -2
- package/dist/bundle/locales/th/translation.json +1 -2
- package/dist/bundle/locales/tr/translation.json +1 -2
- package/dist/bundle/locales/uk/translation.json +1 -2
- package/dist/bundle/locales/vi/translation.json +1 -2
- package/dist/bundle/locales/zh-cn/translation.json +1 -2
- package/dist/bundle/procaptcha.bundle.js +1 -1
- package/dist/bundle/sha256-CGE_4eEY.js +171 -0
- package/dist/bundle/toU8a-CPMbkkSw.js +109 -0
- package/dist/bundle/{useTranslation-CJplXtqb.js → useTranslation-BJsfZyOx.js} +3 -3
- package/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -1
- package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -1
- package/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -1
- package/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -1
- package/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -1
- package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -1
- package/package.json +9 -10
- package/stats.html +1 -1
- package/dist/bundle/ProcaptchaWidget-rAM-9Rap.js +0 -360
- package/dist/bundle/bip39-Du2cANEV.js +0 -365
- package/dist/bundle/index-BVr9fC_3.js +0 -4386
- package/dist/bundle/toU8a-C68WUzs_.js +0 -24
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { c as R, g as X } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
|
+
function G(w, d) {
|
|
3
3
|
for (var b = 0; b < d.length; b++) {
|
|
4
4
|
const y = d[b];
|
|
5
5
|
if (typeof y != "string" && !Array.isArray(y)) {
|
|
@@ -38,11 +38,11 @@ var O = { exports: {} };
|
|
|
38
38
|
formData: "FormData" in a,
|
|
39
39
|
arrayBuffer: "ArrayBuffer" in a
|
|
40
40
|
};
|
|
41
|
-
function
|
|
41
|
+
function U(e) {
|
|
42
42
|
return e && DataView.prototype.isPrototypeOf(e);
|
|
43
43
|
}
|
|
44
44
|
if (f.arrayBuffer)
|
|
45
|
-
var
|
|
45
|
+
var j = [
|
|
46
46
|
"[object Int8Array]",
|
|
47
47
|
"[object Uint8Array]",
|
|
48
48
|
"[object Uint8ClampedArray]",
|
|
@@ -52,8 +52,8 @@ var O = { exports: {} };
|
|
|
52
52
|
"[object Uint32Array]",
|
|
53
53
|
"[object Float32Array]",
|
|
54
54
|
"[object Float64Array]"
|
|
55
|
-
],
|
|
56
|
-
return e &&
|
|
55
|
+
], S = ArrayBuffer.isView || function(e) {
|
|
56
|
+
return e && j.indexOf(Object.prototype.toString.call(e)) > -1;
|
|
57
57
|
};
|
|
58
58
|
function v(e) {
|
|
59
59
|
if (typeof e != "string" && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === "")
|
|
@@ -128,15 +128,15 @@ var O = { exports: {} };
|
|
|
128
128
|
};
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function F(e) {
|
|
132
132
|
var t = new FileReader(), r = P(t);
|
|
133
133
|
return t.readAsArrayBuffer(e), r;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function I(e) {
|
|
136
136
|
var t = new FileReader(), r = P(t);
|
|
137
137
|
return t.readAsText(e), r;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function M(e) {
|
|
140
140
|
for (var t = new Uint8Array(e), r = new Array(t.length), n = 0; n < t.length; n++)
|
|
141
141
|
r[n] = String.fromCharCode(t[n]);
|
|
142
142
|
return r.join("");
|
|
@@ -149,7 +149,7 @@ var O = { exports: {} };
|
|
|
149
149
|
}
|
|
150
150
|
function x() {
|
|
151
151
|
return this.bodyUsed = !1, this._initBody = function(e) {
|
|
152
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : f.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : f.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : f.arrayBuffer && f.blob &&
|
|
152
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : f.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : f.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : f.arrayBuffer && f.blob && U(e) ? (this._bodyArrayBuffer = D(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : f.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || S(e)) ? this._bodyArrayBuffer = D(e) : this._bodyText = e = Object.prototype.toString.call(e) : this._bodyText = "", this.headers.get("content-type") || (typeof e == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
153
153
|
}, f.blob && (this.blob = function() {
|
|
154
154
|
var e = T(this);
|
|
155
155
|
if (e)
|
|
@@ -171,28 +171,28 @@ var O = { exports: {} };
|
|
|
171
171
|
)
|
|
172
172
|
) : Promise.resolve(this._bodyArrayBuffer));
|
|
173
173
|
} else
|
|
174
|
-
return this.blob().then(
|
|
174
|
+
return this.blob().then(F);
|
|
175
175
|
}), this.text = function() {
|
|
176
176
|
var e = T(this);
|
|
177
177
|
if (e)
|
|
178
178
|
return e;
|
|
179
179
|
if (this._bodyBlob)
|
|
180
|
-
return
|
|
180
|
+
return I(this._bodyBlob);
|
|
181
181
|
if (this._bodyArrayBuffer)
|
|
182
|
-
return Promise.resolve(
|
|
182
|
+
return Promise.resolve(M(this._bodyArrayBuffer));
|
|
183
183
|
if (this._bodyFormData)
|
|
184
184
|
throw new Error("could not read FormData body as text");
|
|
185
185
|
return Promise.resolve(this._bodyText);
|
|
186
186
|
}, f.formData && (this.formData = function() {
|
|
187
|
-
return this.text().then(
|
|
187
|
+
return this.text().then(L);
|
|
188
188
|
}), this.json = function() {
|
|
189
189
|
return this.text().then(JSON.parse);
|
|
190
190
|
}, this;
|
|
191
191
|
}
|
|
192
|
-
var
|
|
193
|
-
function
|
|
192
|
+
var H = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
193
|
+
function q(e) {
|
|
194
194
|
var t = e.toUpperCase();
|
|
195
|
-
return
|
|
195
|
+
return H.indexOf(t) > -1 ? t : e;
|
|
196
196
|
}
|
|
197
197
|
function m(e, t) {
|
|
198
198
|
if (!(this instanceof m))
|
|
@@ -205,7 +205,7 @@ var O = { exports: {} };
|
|
|
205
205
|
this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new s(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !r && e._bodyInit != null && (r = e._bodyInit, e.bodyUsed = !0);
|
|
206
206
|
} else
|
|
207
207
|
this.url = String(e);
|
|
208
|
-
if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new s(t.headers)), this.method =
|
|
208
|
+
if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new s(t.headers)), this.method = q(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && r)
|
|
209
209
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
210
210
|
if (this._initBody(r), (this.method === "GET" || this.method === "HEAD") && (t.cache === "no-store" || t.cache === "no-cache")) {
|
|
211
211
|
var n = /([?&])_=[^&]*/;
|
|
@@ -220,7 +220,7 @@ var O = { exports: {} };
|
|
|
220
220
|
m.prototype.clone = function() {
|
|
221
221
|
return new m(this, { body: this._bodyInit });
|
|
222
222
|
};
|
|
223
|
-
function
|
|
223
|
+
function L(e) {
|
|
224
224
|
var t = new FormData();
|
|
225
225
|
return e.trim().split("&").forEach(function(r) {
|
|
226
226
|
if (r) {
|
|
@@ -229,7 +229,7 @@ var O = { exports: {} };
|
|
|
229
229
|
}
|
|
230
230
|
}), t;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function C(e) {
|
|
233
233
|
var t = new s(), r = e.replace(/\r?\n[\t ]+/g, " ");
|
|
234
234
|
return r.split("\r").map(function(n) {
|
|
235
235
|
return n.indexOf(`
|
|
@@ -259,9 +259,9 @@ var O = { exports: {} };
|
|
|
259
259
|
var e = new l(null, { status: 0, statusText: "" });
|
|
260
260
|
return e.type = "error", e;
|
|
261
261
|
};
|
|
262
|
-
var
|
|
262
|
+
var k = [301, 302, 303, 307, 308];
|
|
263
263
|
l.redirect = function(e, t) {
|
|
264
|
-
if (
|
|
264
|
+
if (k.indexOf(t) === -1)
|
|
265
265
|
throw new RangeError("Invalid status code");
|
|
266
266
|
return new l(null, { status: t, headers: { location: e } });
|
|
267
267
|
}, u.DOMException = a.DOMException;
|
|
@@ -287,7 +287,7 @@ var O = { exports: {} };
|
|
|
287
287
|
var c = {
|
|
288
288
|
status: o.status,
|
|
289
289
|
statusText: o.statusText,
|
|
290
|
-
headers:
|
|
290
|
+
headers: C(o.getAllResponseHeaders() || "")
|
|
291
291
|
};
|
|
292
292
|
c.url = "responseURL" in o ? o.responseURL : c.headers.get("X-Request-URL");
|
|
293
293
|
var g = "response" in o ? o.response : o.responseText;
|
|
@@ -307,14 +307,14 @@ var O = { exports: {} };
|
|
|
307
307
|
n(new u.DOMException("Aborted", "AbortError"));
|
|
308
308
|
}, 0);
|
|
309
309
|
};
|
|
310
|
-
function
|
|
310
|
+
function N(c) {
|
|
311
311
|
try {
|
|
312
312
|
return c === "" && a.location.href ? a.location.href : c;
|
|
313
313
|
} catch {
|
|
314
314
|
return c;
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
o.open(i.method,
|
|
317
|
+
o.open(i.method, N(i.url), !0), i.credentials === "include" ? o.withCredentials = !0 : i.credentials === "omit" && (o.withCredentials = !1), "responseType" in o && (f.blob ? o.responseType = "blob" : f.arrayBuffer && i.headers.get("Content-Type") && i.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (o.responseType = "arraybuffer")), t && typeof t.headers == "object" && !(t.headers instanceof s) ? Object.getOwnPropertyNames(t.headers).forEach(function(c) {
|
|
318
318
|
o.setRequestHeader(c, A(t.headers[c]));
|
|
319
319
|
}) : i.headers.forEach(function(c, g) {
|
|
320
320
|
o.setRequestHeader(g, c);
|
|
@@ -329,11 +329,10 @@ var O = { exports: {} };
|
|
|
329
329
|
var h = b.fetch ? b : y;
|
|
330
330
|
d = h.fetch, d.default = h.fetch, d.fetch = h.fetch, d.Headers = h.Headers, d.Request = h.Request, d.Response = h.Response, w.exports = d;
|
|
331
331
|
})(O, O.exports);
|
|
332
|
-
var
|
|
333
|
-
const $ = /* @__PURE__ */
|
|
334
|
-
__proto__: null
|
|
335
|
-
|
|
336
|
-
}, [U]);
|
|
332
|
+
var V = O.exports;
|
|
333
|
+
const $ = /* @__PURE__ */ G({
|
|
334
|
+
__proto__: null
|
|
335
|
+
}, [V]);
|
|
337
336
|
export {
|
|
338
|
-
|
|
337
|
+
$ as b
|
|
339
338
|
};
|
package/dist/bundle/{captchaComponentProvider-DmV1WTrT.js → captchaComponentProvider-BL18T1UE.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as ve, j as x, a as be, b as Se, s as we, w as Ae, r as v, T as Oe, u as Wt, i as Ie, d as Re, e as Fe, g as Ne, m as je, f as C, S as $e, k as Me, A as G, U as le, P as De } from "./emotion-element-5486c51c.browser.esm-
|
|
2
|
-
import { a as ze, g as Ke, W as He, A as i, l as Ue, b as We, d as qe, C as V } from "./index-
|
|
1
|
+
import { h as ve, j as x, a as be, b as Se, s as we, w as Ae, r as v, T as Oe, u as Wt, i as Ie, d as Re, e as Fe, g as Ne, m as je, f as C, S as $e, k as Me, A as G, U as le, P as De } from "./emotion-element-5486c51c.browser.esm-Bjt1gs1F.js";
|
|
2
|
+
import { a as ze, g as Ke, W as He, A as i, l as Ue, b as We, d as qe, C as V } from "./index-1qH2dz7u.js";
|
|
3
3
|
import { e as Be } from "./translations-DEL070wJ.js";
|
|
4
4
|
import { g as Vt } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
5
5
|
const Ge = { t: (t) => t };
|
|
@@ -513,7 +513,7 @@ const at = async (t) => {
|
|
|
513
513
|
}, j = (t) => ({
|
|
514
514
|
...Ke(void 0),
|
|
515
515
|
...t
|
|
516
|
-
}), ct = async (t) => t ? (await import("./index-
|
|
516
|
+
}), ct = async (t) => t ? (await import("./index-CBquknc2.js")).ExtensionWeb2 : (await import("./index-CBquknc2.js")).ExtensionWeb3;
|
|
517
517
|
function ee() {
|
|
518
518
|
return ee = Object.assign ? Object.assign.bind() : function(t) {
|
|
519
519
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -1130,7 +1130,7 @@ class It extends Ot {
|
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
|
-
const Rt = v.lazy(async () => import("./ProcaptchaWidget-
|
|
1133
|
+
const Rt = v.lazy(async () => import("./ProcaptchaWidget-DPyDGPiI.js")), Le = (t) => T(v.Suspense, { children: T(Rt, { config: t.config, callbacks: t.callbacks, frictionlessState: t.frictionlessState, i18n: t.i18n }) }), Ft = v.lazy(async () => import("./ProcaptchaWidget-DoqUlwHS.js")), ke = (t) => T(v.Suspense, { children: T(Ft, { ...t }) }), Nt = async () => (await import("./index-BjRdPnnE.js")).default, jt = async (t) => {
|
|
1134
1134
|
const r = await (await Nt())(), s = await new (await ct(t.web2))().getAccount(t);
|
|
1135
1135
|
if (!t.account.address)
|
|
1136
1136
|
throw new oe("GENERAL.SITE_KEY_MISSING");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as d, E as C, c as v, j as f, C as R } from "./emotion-element-5486c51c.browser.esm-
|
|
2
|
-
import { r as b } from "./index-
|
|
1
|
+
import { P as d, E as C, c as v, j as f, C as R } from "./emotion-element-5486c51c.browser.esm-Bjt1gs1F.js";
|
|
2
|
+
import { r as b } from "./index-ByKGlSkE.js";
|
|
3
3
|
import { L as i } from "./translations-DEL070wJ.js";
|
|
4
4
|
var s, A = b;
|
|
5
5
|
s = A.createRoot;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as A, n as se, o as l, a as p, b as V, s, c as Ar, u as we, d as rt, f as be, g as nt, e as Te, L as Pr, r as Et, l as ot } from "./translations-DEL070wJ.js";
|
|
2
|
-
import { C as Tt, A as c } from "./index-
|
|
2
|
+
import { C as Tt, A as c } from "./index-1qH2dz7u.js";
|
|
3
3
|
import { g as Or } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
4
4
|
function kr(e, t) {
|
|
5
5
|
for (var r = 0; r < t.length; r++) {
|