@prosopo/procaptcha-bundle 0.2.39 → 0.2.41
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var I_ = Object.defineProperty;
|
|
2
2
|
var O_ = (n, e, t) => e in n ? I_(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var b = (n, e, t) => (O_(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { g as ru, c as Ie, z as G, r as we, e as M_, l as Ls, d as Ds, j as ge, a as
|
|
4
|
+
import { g as ru, c as Ie, z as G, r as we, e as M_, l as Ls, d as Ds, j as ge, a as un, b as H, A as li, C as L_, N as D_, f as Tm, h as Ta, P as U_, i as Nm, R as V_, L as B_ } from "./index-28b478c4.js";
|
|
5
5
|
function H_(n, e) {
|
|
6
6
|
for (var t = 0; t < e.length; t++) {
|
|
7
7
|
const r = e[t];
|
|
@@ -1523,7 +1523,7 @@ function qm(n, e = -1, t = !1) {
|
|
|
1523
1523
|
function Iv(n) {
|
|
1524
1524
|
return n.sort(Wm);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function dn(n, { isLe: e = !0, isNegative: t = !1 } = {}) {
|
|
1527
1527
|
e || (n = n.slice().reverse());
|
|
1528
1528
|
const r = n.length;
|
|
1529
1529
|
if (t && r && n[r - 1] & 128)
|
|
@@ -1777,7 +1777,7 @@ function lo(n) {
|
|
|
1777
1777
|
case 7:
|
|
1778
1778
|
return [7, new Z(e[1] + (e[2] << 8) + (e[3] << 16) + (e[4] + (e[5] << 8) + (e[6] << 16)) * 16777216)];
|
|
1779
1779
|
default:
|
|
1780
|
-
return [t,
|
|
1780
|
+
return [t, dn(e.subarray(1, t))];
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
@@ -2499,7 +2499,7 @@ const Xb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2499
2499
|
u8aIsWrapped: vs,
|
|
2500
2500
|
u8aSorted: Iv,
|
|
2501
2501
|
u8aToBigInt: Na,
|
|
2502
|
-
u8aToBn:
|
|
2502
|
+
u8aToBn: dn,
|
|
2503
2503
|
u8aToBuffer: Ov,
|
|
2504
2504
|
u8aToFloat: zm,
|
|
2505
2505
|
u8aToHex: pe,
|
|
@@ -3212,7 +3212,7 @@ function Eg(n, e = 0, t) {
|
|
|
3212
3212
|
throw new Error(`Expected valid bitLength, power of 8, found ${t}`);
|
|
3213
3213
|
const r = t / 8;
|
|
3214
3214
|
if (te(e))
|
|
3215
|
-
return e.length === 0 ? [] : Yd(n,
|
|
3215
|
+
return e.length === 0 ? [] : Yd(n, dn(e.subarray(0, r), { isLe: !0 }));
|
|
3216
3216
|
if (Pe(e))
|
|
3217
3217
|
return Eg(n, j(e), r);
|
|
3218
3218
|
if (e instanceof Set || Array.isArray(e)) {
|
|
@@ -7415,7 +7415,7 @@ var gl = function(n, e) {
|
|
|
7415
7415
|
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
7416
7416
|
}, gl(n, e);
|
|
7417
7417
|
};
|
|
7418
|
-
function
|
|
7418
|
+
function hn(n, e) {
|
|
7419
7419
|
if (typeof e != "function" && e !== null)
|
|
7420
7420
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
7421
7421
|
gl(n, e);
|
|
@@ -8951,11 +8951,11 @@ function wy(n, e) {
|
|
|
8951
8951
|
return !Rt || !i && It() ? n[r](s) : e[r](s);
|
|
8952
8952
|
};
|
|
8953
8953
|
}
|
|
8954
|
-
function
|
|
8954
|
+
function fn(n, e = 256, t, r) {
|
|
8955
8955
|
const i = Math.ceil(e / 8), s = j(n);
|
|
8956
8956
|
return !Rt || !r && It() ? fE(s, j(t), i) : t ? Vf(s, { dkLen: i, key: t }) : Vf(s, { dkLen: i });
|
|
8957
8957
|
}
|
|
8958
|
-
const wa = /* @__PURE__ */ by(
|
|
8958
|
+
const wa = /* @__PURE__ */ by(fn);
|
|
8959
8959
|
function Fa(n, e) {
|
|
8960
8960
|
return wa(n, e);
|
|
8961
8961
|
}
|
|
@@ -8984,13 +8984,14 @@ const EE = (n) => {
|
|
|
8984
8984
|
flexGrow: 1,
|
|
8985
8985
|
flexBasis: "33.3333%",
|
|
8986
8986
|
boxSizing: "border-box"
|
|
8987
|
-
}, children:
|
|
8987
|
+
}, children: un("div", { style: { cursor: "pointer", height: "100%", width: "100%" }, onClick: a ? void 0 : () => t(l), onTouchStart: a ? () => t(l) : void 0, children: [ge("div", { style: { border: 1, borderColor: s.palette.grey[300] }, children: ge("img", { style: {
|
|
8988
8988
|
width: "100%",
|
|
8989
8989
|
backgroundColor: s.palette.grey[300],
|
|
8990
8990
|
opacity: e.includes(l) && a ? "50%" : "100%",
|
|
8991
8991
|
display: "block",
|
|
8992
8992
|
objectFit: "contain",
|
|
8993
|
-
aspectRatio: "1/1"
|
|
8993
|
+
aspectRatio: "1/1",
|
|
8994
|
+
height: "auto"
|
|
8994
8995
|
}, src: o.data, alt: `Captcha image ${c + 1}` }) }), ge("div", { style: {
|
|
8995
8996
|
position: "relative",
|
|
8996
8997
|
width: "100%",
|
|
@@ -9083,18 +9084,18 @@ const PE = {
|
|
|
9083
9084
|
maxHeight: "100%",
|
|
9084
9085
|
display: "flex",
|
|
9085
9086
|
flexDirection: "column"
|
|
9086
|
-
}, children:
|
|
9087
|
+
}, children: un("div", { style: {
|
|
9087
9088
|
backgroundColor: f.palette.background.default,
|
|
9088
9089
|
display: "flex",
|
|
9089
9090
|
flexDirection: "column",
|
|
9090
9091
|
minWidth: "300px"
|
|
9091
|
-
}, children: [
|
|
9092
|
+
}, children: [un("div", { style: {
|
|
9092
9093
|
display: "flex",
|
|
9093
9094
|
alignItems: "center",
|
|
9094
9095
|
width: "100%",
|
|
9095
9096
|
backgroundColor: f.palette.primary.main,
|
|
9096
9097
|
padding: "24px 16px"
|
|
9097
|
-
}, children: [
|
|
9098
|
+
}, children: [un("p", { style: {
|
|
9098
9099
|
color: "#ffffff",
|
|
9099
9100
|
fontWeight: 700,
|
|
9100
9101
|
lineHeight: 1.5
|
|
@@ -9112,7 +9113,7 @@ const PE = {
|
|
|
9112
9113
|
padding: "8px 16px",
|
|
9113
9114
|
display: "flex",
|
|
9114
9115
|
width: "100%"
|
|
9115
|
-
} }),
|
|
9116
|
+
} }), un("div", { style: {
|
|
9116
9117
|
padding: "0 16px 16px",
|
|
9117
9118
|
display: "flex",
|
|
9118
9119
|
alignItems: "center",
|
|
@@ -9362,7 +9363,7 @@ const Mu = {
|
|
|
9362
9363
|
type: "base58"
|
|
9363
9364
|
}, FE = /* @__PURE__ */ Ty(Mu), jE = /* @__PURE__ */ Py(Mu, FE), WE = /* @__PURE__ */ ky(Mu), qE = Ze("SS58PRE");
|
|
9364
9365
|
function Ny(n) {
|
|
9365
|
-
return
|
|
9366
|
+
return fn(Me(qE, n), 512);
|
|
9366
9367
|
}
|
|
9367
9368
|
function zE(n) {
|
|
9368
9369
|
const e = n[0] & 64 ? 2 : 1, t = e === 1 ? n[0] : (n[0] & 63) << 2 | n[1] >> 6 | (n[1] & 63) << 8, r = [34 + e, 35 + e].includes(n.length), i = n.length - (r ? 2 : 1), s = Ny(n.subarray(0, i));
|
|
@@ -11356,7 +11357,7 @@ class Lu {
|
|
|
11356
11357
|
return this.__internal__isHard = !0, this;
|
|
11357
11358
|
}
|
|
11358
11359
|
soft(e) {
|
|
11359
|
-
return xe(e) || Yt(e) || _r(e) ? this.soft(Lt(e, n3)) : ye(e) ? this.soft(Mt(e)) : Pe(e) ? this.soft(wn(Ze(e))) : e.length > i3 ? this.soft(
|
|
11360
|
+
return xe(e) || Yt(e) || _r(e) ? this.soft(Lt(e, n3)) : ye(e) ? this.soft(Mt(e)) : Pe(e) ? this.soft(wn(Ze(e))) : e.length > i3 ? this.soft(fn(e)) : (this.__internal__chainCode.fill(0), this.__internal__chainCode.set(e, 0), this);
|
|
11360
11361
|
}
|
|
11361
11362
|
soften() {
|
|
11362
11363
|
return this.__internal__isHard = !1, this;
|
|
@@ -11395,7 +11396,7 @@ const c3 = wn(Ze("Secp256k1HDKD"));
|
|
|
11395
11396
|
function l3(n, e) {
|
|
11396
11397
|
if (!te(e) || e.length !== 32)
|
|
11397
11398
|
throw new Error("Invalid chainCode passed to derive");
|
|
11398
|
-
return
|
|
11399
|
+
return fn(Me(c3, n, e), 256);
|
|
11399
11400
|
}
|
|
11400
11401
|
function u3(n, e, t, r) {
|
|
11401
11402
|
if (typeof n.setBigUint64 == "function")
|
|
@@ -12117,7 +12118,7 @@ const { bytesToNumberBE: V3, hexToBytes: B3 } = E3, ni = {
|
|
|
12117
12118
|
}, r = e(t(n.s)), i = e(t(n.r)), s = r.length / 2, a = i.length / 2, o = t(s), c = t(a);
|
|
12118
12119
|
return `30${t(a + s + 4)}02${c}${i}02${o}${r}`;
|
|
12119
12120
|
}
|
|
12120
|
-
}, cr = BigInt(0),
|
|
12121
|
+
}, cr = BigInt(0), yn = BigInt(1), JO = BigInt(2), Kf = BigInt(3), KO = BigInt(4);
|
|
12121
12122
|
function H3(n) {
|
|
12122
12123
|
const e = U3(n), { Fp: t } = e, r = e.toBytes || ((_, v, C) => {
|
|
12123
12124
|
const A = v.toAffine();
|
|
@@ -12291,14 +12292,14 @@ function H3(n) {
|
|
|
12291
12292
|
const C = f.ZERO;
|
|
12292
12293
|
if (v === cr)
|
|
12293
12294
|
return C;
|
|
12294
|
-
if (o(v), v ===
|
|
12295
|
+
if (o(v), v === yn)
|
|
12295
12296
|
return this;
|
|
12296
12297
|
const { endo: A } = e;
|
|
12297
12298
|
if (!A)
|
|
12298
12299
|
return y.unsafeLadder(this, v);
|
|
12299
12300
|
let { k1neg: R, k1: I, k2neg: D, k2: L } = A.splitScalar(v), V = C, F = C, U = this;
|
|
12300
12301
|
for (; I > cr || L > cr; )
|
|
12301
|
-
I &
|
|
12302
|
+
I & yn && (V = V.add(U)), L & yn && (F = F.add(U)), U = U.double(), I >>= yn, L >>= yn;
|
|
12302
12303
|
return R && (V = V.negate()), D && (F = F.negate()), F = new f(t.mul(F.px, A.beta), F.py, F.pz), V.add(F);
|
|
12303
12304
|
}
|
|
12304
12305
|
/**
|
|
@@ -12331,7 +12332,7 @@ function H3(n) {
|
|
|
12331
12332
|
* @returns non-zero affine point
|
|
12332
12333
|
*/
|
|
12333
12334
|
multiplyAndAddUnsafe(v, C, A) {
|
|
12334
|
-
const R = f.BASE, I = (L, V) => V === cr || V ===
|
|
12335
|
+
const R = f.BASE, I = (L, V) => V === cr || V === yn || !L.equals(R) ? L.multiplyUnsafe(V) : L.multiply(V), D = I(this, C).add(I(v, A));
|
|
12335
12336
|
return D.is0() ? void 0 : D;
|
|
12336
12337
|
}
|
|
12337
12338
|
// Converts Projective point to affine (x, y) coordinates.
|
|
@@ -12349,7 +12350,7 @@ function H3(n) {
|
|
|
12349
12350
|
}
|
|
12350
12351
|
isTorsionFree() {
|
|
12351
12352
|
const { h: v, isTorsionFree: C } = e;
|
|
12352
|
-
if (v ===
|
|
12353
|
+
if (v === yn)
|
|
12353
12354
|
return !0;
|
|
12354
12355
|
if (C)
|
|
12355
12356
|
return C(f, this);
|
|
@@ -12357,7 +12358,7 @@ function H3(n) {
|
|
|
12357
12358
|
}
|
|
12358
12359
|
clearCofactor() {
|
|
12359
12360
|
const { h: v, clearCofactor: C } = e;
|
|
12360
|
-
return v ===
|
|
12361
|
+
return v === yn ? this : C ? C(f, this) : this.multiplyUnsafe(e.h);
|
|
12361
12362
|
}
|
|
12362
12363
|
toRawBytes(v = !0) {
|
|
12363
12364
|
return this.assertValidity(), r(f, this, v);
|
|
@@ -12413,7 +12414,7 @@ function j3(n) {
|
|
|
12413
12414
|
throw new Error("Point is not on curve");
|
|
12414
12415
|
const T = f(x);
|
|
12415
12416
|
let S = t.sqrt(T);
|
|
12416
|
-
const p = (S &
|
|
12417
|
+
const p = (S & yn) === yn;
|
|
12417
12418
|
return (E & 1) === 1 !== p && (S = t.neg(S)), { x, y: S };
|
|
12418
12419
|
} else if (g === s && E === 4) {
|
|
12419
12420
|
const x = t.fromBytes(w.subarray(0, t.BYTES)), T = t.fromBytes(w.subarray(t.BYTES, 2 * t.BYTES));
|
|
@@ -12423,7 +12424,7 @@ function j3(n) {
|
|
|
12423
12424
|
}
|
|
12424
12425
|
}), y = (h) => si(Bi(h, e.nByteLength));
|
|
12425
12426
|
function _(h) {
|
|
12426
|
-
const g = r >>
|
|
12427
|
+
const g = r >> yn;
|
|
12427
12428
|
return h > g;
|
|
12428
12429
|
}
|
|
12429
12430
|
function v(h) {
|
|
@@ -12566,7 +12567,7 @@ function j3(n) {
|
|
|
12566
12567
|
const be = o(de * o(se + Re * q));
|
|
12567
12568
|
if (be === cr)
|
|
12568
12569
|
return;
|
|
12569
|
-
let Te = (me.x === Re ? 0 : 2) | Number(me.y &
|
|
12570
|
+
let Te = (me.x === Re ? 0 : 2) | Number(me.y & yn), wr = be;
|
|
12570
12571
|
return T && _(be) && (wr = v(be), Te ^= 1), new A(Re, wr, Te);
|
|
12571
12572
|
}
|
|
12572
12573
|
return { seed: W, k2sig: ce };
|
|
@@ -12739,7 +12740,7 @@ const $f = /* @__PURE__ */ Xy(Hi, l3), G3 = wn(Ze("Ed25519HDKD"));
|
|
|
12739
12740
|
function Z3(n, e) {
|
|
12740
12741
|
if (!te(e) || e.length !== 32)
|
|
12741
12742
|
throw new Error("Invalid chainCode passed to derive");
|
|
12742
|
-
return
|
|
12743
|
+
return fn(Me(G3, n, e));
|
|
12743
12744
|
}
|
|
12744
12745
|
function qs(n = 32) {
|
|
12745
12746
|
return hy(new Uint8Array(n));
|
|
@@ -13418,7 +13419,7 @@ const NC = /* @__PURE__ */ Xr(1, 72, 512 / 8), r0 = (n, e, t) => nS((r = {}) =>
|
|
|
13418
13419
|
256 / 8;
|
|
13419
13420
|
const Xs = /* @__PURE__ */ wy({ 256: mE, 512: gE }, { 256: TC, 512: NC });
|
|
13420
13421
|
function Tl(n, e, t) {
|
|
13421
|
-
return n === "keccak" ? Xs(e, void 0, t) :
|
|
13422
|
+
return n === "keccak" ? Xs(e, void 0, t) : fn(e, void 0, void 0, t);
|
|
13422
13423
|
}
|
|
13423
13424
|
const qu = {
|
|
13424
13425
|
chars: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
@@ -13921,7 +13922,7 @@ function v0(n, e = qs(), t = Sa, r) {
|
|
|
13921
13922
|
};
|
|
13922
13923
|
}
|
|
13923
13924
|
function vA(n) {
|
|
13924
|
-
const e = n.subarray(0, 32), t =
|
|
13925
|
+
const e = n.subarray(0, 32), t = dn(n.subarray(32 + 0, 32 + 4), yc).toNumber(), r = dn(n.subarray(32 + 4, 32 + 8), yc).toNumber(), i = dn(n.subarray(32 + 8, 32 + 12), yc).toNumber();
|
|
13925
13926
|
if (t !== Sa.N || r !== Sa.p || i !== Sa.r)
|
|
13926
13927
|
throw new Error("Invalid injected scrypt params found");
|
|
13927
13928
|
return { params: { N: t, p: r, r: i }, salt: e };
|
|
@@ -14278,7 +14279,7 @@ function Ea(n) {
|
|
|
14278
14279
|
n();
|
|
14279
14280
|
}
|
|
14280
14281
|
var Yu = function(n) {
|
|
14281
|
-
|
|
14282
|
+
hn(e, n);
|
|
14282
14283
|
function e(t) {
|
|
14283
14284
|
var r = n.call(this) || this;
|
|
14284
14285
|
return r.isStopped = !1, t ? (r.destination = t, k0(t) && t.add(r)) : r.destination = YA, r;
|
|
@@ -14344,7 +14345,7 @@ var JA = function() {
|
|
|
14344
14345
|
}
|
|
14345
14346
|
}, n;
|
|
14346
14347
|
}(), za = function(n) {
|
|
14347
|
-
|
|
14348
|
+
hn(e, n);
|
|
14348
14349
|
function e(t, r, i) {
|
|
14349
14350
|
var s = n.call(this) || this, a;
|
|
14350
14351
|
if (Le(t) || !t)
|
|
@@ -14481,7 +14482,7 @@ function Bt(n, e, t, r, i) {
|
|
|
14481
14482
|
return new t8(n, e, t, r, i);
|
|
14482
14483
|
}
|
|
14483
14484
|
var t8 = function(n) {
|
|
14484
|
-
|
|
14485
|
+
hn(e, n);
|
|
14485
14486
|
function e(t, r, i, s, a, o) {
|
|
14486
14487
|
var c = n.call(this, t) || this;
|
|
14487
14488
|
return c.onFinalize = a, c.shouldUnsubscribe = o, c._next = r ? function(l) {
|
|
@@ -14532,7 +14533,7 @@ function $u() {
|
|
|
14532
14533
|
});
|
|
14533
14534
|
}
|
|
14534
14535
|
var n8 = function(n) {
|
|
14535
|
-
|
|
14536
|
+
hn(e, n);
|
|
14536
14537
|
function e(t, r) {
|
|
14537
14538
|
var i = n.call(this) || this;
|
|
14538
14539
|
return i.source = t, i.subjectFactory = r, i._subject = null, i._refCount = 0, i._connection = null, R0(t) && (i.lift = t.lift), i;
|
|
@@ -14568,7 +14569,7 @@ var n8 = function(n) {
|
|
|
14568
14569
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
14569
14570
|
};
|
|
14570
14571
|
}), So = function(n) {
|
|
14571
|
-
|
|
14572
|
+
hn(e, n);
|
|
14572
14573
|
function e() {
|
|
14573
14574
|
var t = n.call(this) || this;
|
|
14574
14575
|
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
@@ -14648,7 +14649,7 @@ var n8 = function(n) {
|
|
|
14648
14649
|
return new xh(t, r);
|
|
14649
14650
|
}, e;
|
|
14650
14651
|
}(Nt), xh = function(n) {
|
|
14651
|
-
|
|
14652
|
+
hn(e, n);
|
|
14652
14653
|
function e(t, r) {
|
|
14653
14654
|
var i = n.call(this) || this;
|
|
14654
14655
|
return i.destination = t, i.source = r, i;
|
|
@@ -14667,7 +14668,7 @@ var n8 = function(n) {
|
|
|
14667
14668
|
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t)) !== null && i !== void 0 ? i : P0;
|
|
14668
14669
|
}, e;
|
|
14669
14670
|
}(So), Sh = function(n) {
|
|
14670
|
-
|
|
14671
|
+
hn(e, n);
|
|
14671
14672
|
function e(t) {
|
|
14672
14673
|
var r = n.call(this) || this;
|
|
14673
14674
|
return r._value = t, r;
|
|
@@ -14695,7 +14696,7 @@ var n8 = function(n) {
|
|
|
14695
14696
|
},
|
|
14696
14697
|
delegate: void 0
|
|
14697
14698
|
}, i8 = function(n) {
|
|
14698
|
-
|
|
14699
|
+
hn(e, n);
|
|
14699
14700
|
function e(t, r, i) {
|
|
14700
14701
|
t === void 0 && (t = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = ed);
|
|
14701
14702
|
var s = n.call(this) || this;
|
|
@@ -14718,7 +14719,7 @@ var n8 = function(n) {
|
|
|
14718
14719
|
}
|
|
14719
14720
|
}, e;
|
|
14720
14721
|
}(So), s8 = function(n) {
|
|
14721
|
-
|
|
14722
|
+
hn(e, n);
|
|
14722
14723
|
function e(t, r) {
|
|
14723
14724
|
return n.call(this) || this;
|
|
14724
14725
|
}
|
|
@@ -14738,7 +14739,7 @@ var n8 = function(n) {
|
|
|
14738
14739
|
},
|
|
14739
14740
|
delegate: void 0
|
|
14740
14741
|
}, a8 = function(n) {
|
|
14741
|
-
|
|
14742
|
+
hn(e, n);
|
|
14742
14743
|
function e(t, r) {
|
|
14743
14744
|
var i = n.call(this, t, r) || this;
|
|
14744
14745
|
return i.scheduler = t, i.work = r, i.pending = !1, i;
|
|
@@ -14806,7 +14807,7 @@ var I0 = {
|
|
|
14806
14807
|
},
|
|
14807
14808
|
delegate: void 0
|
|
14808
14809
|
}, u8 = function(n) {
|
|
14809
|
-
|
|
14810
|
+
hn(e, n);
|
|
14810
14811
|
function e(t, r) {
|
|
14811
14812
|
var i = n.call(this, t, r) || this;
|
|
14812
14813
|
return i.scheduler = t, i.work = r, i;
|
|
@@ -14828,7 +14829,7 @@ var I0 = {
|
|
|
14828
14829
|
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(r, t);
|
|
14829
14830
|
}, n.now = ed.now, n;
|
|
14830
14831
|
}(), d8 = function(n) {
|
|
14831
|
-
|
|
14832
|
+
hn(e, n);
|
|
14832
14833
|
function e(t, r) {
|
|
14833
14834
|
r === void 0 && (r = Ch.now);
|
|
14834
14835
|
var i = n.call(this, t, r) || this;
|
|
@@ -14853,7 +14854,7 @@ var I0 = {
|
|
|
14853
14854
|
}
|
|
14854
14855
|
}, e;
|
|
14855
14856
|
}(Ch), f8 = function(n) {
|
|
14856
|
-
|
|
14857
|
+
hn(e, n);
|
|
14857
14858
|
function e() {
|
|
14858
14859
|
return n !== null && n.apply(this, arguments) || this;
|
|
14859
14860
|
}
|
|
@@ -18948,7 +18949,7 @@ class K0 extends Z {
|
|
|
18948
18949
|
constructor(t, r = 0, i = FP, s = !1) {
|
|
18949
18950
|
super(
|
|
18950
18951
|
// shortcut isU8a as used in SCALE decoding
|
|
18951
|
-
te(r) ? i <= 48 ? Gm(r.subarray(0, i / 8), { isNegative: s }) :
|
|
18952
|
+
te(r) ? i <= 48 ? Gm(r.subarray(0, i / 8), { isNegative: s }) : dn(r.subarray(0, i / 8), { isLe: !0, isNegative: s }).toString() : J0(r, s)
|
|
18952
18953
|
);
|
|
18953
18954
|
b(this, "registry");
|
|
18954
18955
|
b(this, "encodedLength");
|
|
@@ -21154,7 +21155,7 @@ const Ok = (n) => n.toString(), Mk = ["BTreeMap", "BTreeSet", "Compact", "HashMa
|
|
|
21154
21155
|
function Lk(n, e, t = Ok) {
|
|
21155
21156
|
return `${n}${e ? `<${(Array.isArray(e) ? e : [e]).map(t).join(", ")}>` : ""}`;
|
|
21156
21157
|
}
|
|
21157
|
-
function
|
|
21158
|
+
function pn(n, e, t) {
|
|
21158
21159
|
const { info: r, sub: i } = e;
|
|
21159
21160
|
switch (r) {
|
|
21160
21161
|
case M.BTreeMap:
|
|
@@ -21187,24 +21188,24 @@ function ip(n, e, t, r) {
|
|
|
21187
21188
|
return _e(t ? { _enum: s } : s);
|
|
21188
21189
|
}
|
|
21189
21190
|
const Dk = {
|
|
21190
|
-
[M.BTreeMap]: (n, e) =>
|
|
21191
|
-
[M.BTreeSet]: (n, e) =>
|
|
21192
|
-
[M.Compact]: (n, e) =>
|
|
21191
|
+
[M.BTreeMap]: (n, e) => pn(n, e, "BTreeMap"),
|
|
21192
|
+
[M.BTreeSet]: (n, e) => pn(n, e, "BTreeSet"),
|
|
21193
|
+
[M.Compact]: (n, e) => pn(n, e, "Compact"),
|
|
21193
21194
|
[M.DoNotConstruct]: (n, { displayName: e, lookupIndex: t, lookupName: r }) => `DoNotConstruct<${r || e || (Ne(t) ? "Unknown" : n.createLookupType(t))}>`,
|
|
21194
21195
|
[M.Enum]: (n, { sub: e }) => {
|
|
21195
21196
|
if (!Array.isArray(e))
|
|
21196
21197
|
throw new Error("Unable to encode Enum type");
|
|
21197
21198
|
return e.every(({ type: t }) => t === "Null") ? _e({ _enum: e.map(({ name: t }, r) => `${t || `Empty${r}`}`) }) : ip(n, e, !0);
|
|
21198
21199
|
},
|
|
21199
|
-
[M.HashMap]: (n, e) =>
|
|
21200
|
+
[M.HashMap]: (n, e) => pn(n, e, "HashMap"),
|
|
21200
21201
|
[M.Int]: (n, { length: e = 32 }) => `Int<${e}>`,
|
|
21201
|
-
[M.Linkage]: (n, e) =>
|
|
21202
|
+
[M.Linkage]: (n, e) => pn(n, e, "Linkage"),
|
|
21202
21203
|
[M.Null]: (n, e) => "Null",
|
|
21203
|
-
[M.Option]: (n, e) =>
|
|
21204
|
+
[M.Option]: (n, e) => pn(n, e, "Option"),
|
|
21204
21205
|
[M.Plain]: (n, { displayName: e, type: t }) => e || t,
|
|
21205
|
-
[M.Range]: (n, e) =>
|
|
21206
|
-
[M.RangeInclusive]: (n, e) =>
|
|
21207
|
-
[M.Result]: (n, e) =>
|
|
21206
|
+
[M.Range]: (n, e) => pn(n, e, "Range"),
|
|
21207
|
+
[M.RangeInclusive]: (n, e) => pn(n, e, "RangeInclusive"),
|
|
21208
|
+
[M.Result]: (n, e) => pn(n, e, "Result"),
|
|
21208
21209
|
[M.Set]: (n, { length: e = 8, sub: t }) => {
|
|
21209
21210
|
if (!Array.isArray(t))
|
|
21210
21211
|
throw new Error("Unable to encode Set type");
|
|
@@ -21226,14 +21227,14 @@ const Dk = {
|
|
|
21226
21227
|
return `(${e.map((t) => ld(n, t)).join(",")})`;
|
|
21227
21228
|
},
|
|
21228
21229
|
[M.UInt]: (n, { length: e = 32 }) => `UInt<${e}>`,
|
|
21229
|
-
[M.Vec]: (n, e) =>
|
|
21230
|
+
[M.Vec]: (n, e) => pn(n, e, "Vec"),
|
|
21230
21231
|
[M.VecFixed]: (n, { length: e, sub: t }) => {
|
|
21231
21232
|
if (!xe(e) || !t || Array.isArray(t))
|
|
21232
21233
|
throw new Error("Unable to encode VecFixed type");
|
|
21233
21234
|
return `[${t.type};${e}]`;
|
|
21234
21235
|
},
|
|
21235
|
-
[M.WrapperKeepOpaque]: (n, e) =>
|
|
21236
|
-
[M.WrapperOpaque]: (n, e) =>
|
|
21236
|
+
[M.WrapperKeepOpaque]: (n, e) => pn(n, e, "WrapperKeepOpaque"),
|
|
21237
|
+
[M.WrapperOpaque]: (n, e) => pn(n, e, "WrapperOpaque")
|
|
21237
21238
|
};
|
|
21238
21239
|
function a1(n, e, t = !0) {
|
|
21239
21240
|
return t && e.lookupName ? e.lookupName : Dk[e.info](n, e);
|
|
@@ -22608,7 +22609,7 @@ function IT(n, e) {
|
|
|
22608
22609
|
function OT(n, e) {
|
|
22609
22610
|
if (e.length === 0)
|
|
22610
22611
|
return [new _n(n), new _n(n)];
|
|
22611
|
-
const t =
|
|
22612
|
+
const t = dn(e.subarray(0, 1)).toNumber(), r = dn(e.subarray(1, 2)).toNumber(), i = t + (r << 8), s = 2 << i % 16, a = Math.max(s >> 12, 1), o = (i >> 4) * a;
|
|
22612
22613
|
if (s < 4 || o >= s)
|
|
22613
22614
|
throw new Error("Invalid data passed to Mortal era");
|
|
22614
22615
|
return [new _n(n, s), new _n(n, o)];
|
|
@@ -23602,7 +23603,7 @@ class o5 extends Zr {
|
|
|
23602
23603
|
const wp = new Uint8Array([255]);
|
|
23603
23604
|
function c5(n, e) {
|
|
23604
23605
|
const t = nn(e);
|
|
23605
|
-
return t.length === 32 ? n.createTypeUnsafe("AccountId", [t]) : n.createTypeUnsafe("AccountIndex", [
|
|
23606
|
+
return t.length === 32 ? n.createTypeUnsafe("AccountId", [t]) : n.createTypeUnsafe("AccountIndex", [dn(t)]);
|
|
23606
23607
|
}
|
|
23607
23608
|
function l5(n, e) {
|
|
23608
23609
|
if (e.length === 32)
|
|
@@ -23610,7 +23611,7 @@ function l5(n, e) {
|
|
|
23610
23611
|
if (e[0] === 255)
|
|
23611
23612
|
return n.createTypeUnsafe("AccountId", [e.subarray(1)]);
|
|
23612
23613
|
const [t, r] = kt.readLength(e);
|
|
23613
|
-
return n.createTypeUnsafe("AccountIndex", [
|
|
23614
|
+
return n.createTypeUnsafe("AccountIndex", [dn(e.subarray(t, t + r))]);
|
|
23614
23615
|
}
|
|
23615
23616
|
function u5(n, e) {
|
|
23616
23617
|
return e instanceof C1 ? e.inner : e instanceof $a || e instanceof kt ? e : Yt(e) || xe(e) || _r(e) ? n.createTypeUnsafe("AccountIndex", [e]) : Array.isArray(e) || ye(e) || te(e) ? l5(n, j(e)) : c5(n, e);
|
|
@@ -23814,7 +23815,7 @@ class P1 extends Zr {
|
|
|
23814
23815
|
const y5 = new Uint8Array([255]);
|
|
23815
23816
|
function _5(n, e) {
|
|
23816
23817
|
const t = nn(e);
|
|
23817
|
-
return t.length === 20 ? n.createTypeUnsafe("EthereumAccountId", [t]) : n.createTypeUnsafe("AccountIndex", [
|
|
23818
|
+
return t.length === 20 ? n.createTypeUnsafe("EthereumAccountId", [t]) : n.createTypeUnsafe("AccountIndex", [dn(t)]);
|
|
23818
23819
|
}
|
|
23819
23820
|
function v5(n, e) {
|
|
23820
23821
|
if (e.length === 20)
|
|
@@ -23822,7 +23823,7 @@ function v5(n, e) {
|
|
|
23822
23823
|
if (e[0] === 255)
|
|
23823
23824
|
return n.createTypeUnsafe("EthereumAccountId", [e.subarray(1)]);
|
|
23824
23825
|
const [t, r] = kt.readLength(e);
|
|
23825
|
-
return n.createTypeUnsafe("AccountIndex", [
|
|
23826
|
+
return n.createTypeUnsafe("AccountIndex", [dn(e.subarray(t, t + r))]);
|
|
23826
23827
|
}
|
|
23827
23828
|
function b5(n, e) {
|
|
23828
23829
|
return e instanceof k1 ? e.inner : e instanceof P1 || e instanceof kt ? e : te(e) || Array.isArray(e) || ye(e) ? v5(n, j(e)) : Yt(e) || xe(e) || _r(e) ? n.createTypeUnsafe("AccountIndex", [e]) : _5(n, e);
|
|
@@ -24756,15 +24757,15 @@ function cN(n, { lookup: e, pallets: t }, r) {
|
|
|
24756
24757
|
const lN = (n) => Pi(n, 128), uN = {
|
|
24757
24758
|
Blake2_128: (n) => (
|
|
24758
24759
|
// eslint-disable-line camelcase
|
|
24759
|
-
|
|
24760
|
+
fn(n, 128)
|
|
24760
24761
|
),
|
|
24761
24762
|
Blake2_128Concat: (n) => (
|
|
24762
24763
|
// eslint-disable-line camelcase
|
|
24763
|
-
Me(
|
|
24764
|
+
Me(fn(n, 128), j(n))
|
|
24764
24765
|
),
|
|
24765
24766
|
Blake2_256: (n) => (
|
|
24766
24767
|
// eslint-disable-line camelcase
|
|
24767
|
-
|
|
24768
|
+
fn(n, 256)
|
|
24768
24769
|
),
|
|
24769
24770
|
Identity: (n) => j(n),
|
|
24770
24771
|
Twox128: (n) => Pi(n, 128),
|
|
@@ -25044,7 +25045,7 @@ class _d {
|
|
|
25044
25045
|
b(this, "__internal__classes", /* @__PURE__ */ new Map());
|
|
25045
25046
|
b(this, "__internal__definitions", /* @__PURE__ */ new Map());
|
|
25046
25047
|
b(this, "__internal__firstCallIndex", null);
|
|
25047
|
-
b(this, "__internal__hasher",
|
|
25048
|
+
b(this, "__internal__hasher", fn);
|
|
25048
25049
|
b(this, "__internal__knownTypes", {});
|
|
25049
25050
|
b(this, "__internal__lookup");
|
|
25050
25051
|
b(this, "__internal__metadata");
|
|
@@ -25271,7 +25272,7 @@ class _d {
|
|
|
25271
25272
|
e && (this.__internal__chainProperties = e);
|
|
25272
25273
|
}
|
|
25273
25274
|
setHasher(e) {
|
|
25274
|
-
this.__internal__hasher = e ||
|
|
25275
|
+
this.__internal__hasher = e || fn;
|
|
25275
25276
|
}
|
|
25276
25277
|
setKnownTypes(e) {
|
|
25277
25278
|
this.__internal__knownTypes = e;
|
|
@@ -28619,7 +28620,7 @@ const mR = new Uint8Array(), gR = {
|
|
|
28619
28620
|
ethereum: (n, e) => oh(n, e, "keccak"),
|
|
28620
28621
|
sr25519: _C
|
|
28621
28622
|
}, ha = {
|
|
28622
|
-
ecdsa: (n) => n.length > 32 ?
|
|
28623
|
+
ecdsa: (n) => n.length > 32 ? fn(n) : n,
|
|
28623
28624
|
ed25519: (n) => n,
|
|
28624
28625
|
ethereum: (n) => n.length === 20 ? n : Xs(zu(n)),
|
|
28625
28626
|
sr25519: (n) => n
|
|
@@ -28628,7 +28629,7 @@ function os(n) {
|
|
|
28628
28629
|
return !n || fu(n);
|
|
28629
28630
|
}
|
|
28630
28631
|
function rm(n, e, t) {
|
|
28631
|
-
return
|
|
28632
|
+
return fn(Me(e || "", t || "", n));
|
|
28632
28633
|
}
|
|
28633
28634
|
function bi({ toSS58: n, type: e }, { publicKey: t, secretKey: r }, i = {}, s = null, a) {
|
|
28634
28635
|
const o = (u, f) => {
|
|
@@ -29699,7 +29700,7 @@ let jR = class {
|
|
|
29699
29700
|
return N.buildSubmittableExtrinsic(this.__apiPromise, this.__nativeContract, "setCodeHash", [e], t);
|
|
29700
29701
|
}
|
|
29701
29702
|
};
|
|
29702
|
-
const Ql = '{"source":{"hash":"0x83159478c5e564f587ca6c8721ffc1488ac79a7ed16442cdf300cf010f62e30d","language":"ink! 4.3.0","compiler":"rustc 1.69.0","build_info":{"build_mode":"Debug","cargo_contract_version":"3.0.1","rust_toolchain":"stable-x86_64-unknown-linux-gnu","wasm_opt_settings":{"keep_debug_symbols":false,"optimization_passes":"Z"}}},"contract":{"name":"captcha","version":"0.2.39","authors":["Chris Taylor <chris@prosopo.io>","George Oastler <george@prosopo.io>","Vincenzo Ferrara","Siniša Čanak"]},"spec":{"constructors":[{"args":[],"default":false,"docs":["Constructor"],"label":"new","payable":true,"returnType":{"displayName":["ink_primitives","ConstructorResult"],"type":10},"selector":"0x9bae9d5e"},{"args":[],"default":false,"docs":[],"label":"new_panic","payable":false,"returnType":{"displayName":["ink_primitives","ConstructorResult"],"type":15},"selector":"0x794560e8"}],"docs":[],"environment":{"accountId":{"displayName":["AccountId"],"type":7},"balance":{"displayName":["Balance"],"type":0},"blockNumber":{"displayName":["BlockNumber"],"type":1},"chainExtension":{"displayName":["ChainExtension"],"type":65},"hash":{"displayName":["Hash"],"type":4},"maxEventTopics":4,"timestamp":{"displayName":["Timestamp"],"type":64}},"events":[],"lang_error":{"displayName":["ink","LangError"],"type":14},"messages":[{"args":[],"default":false,"docs":[" Get the git commit id from when this contract was built"],"label":"get_git_commit_id","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":16},"selector":"0x3685e994"},{"args":[],"default":false,"docs":[" the admin which can control this contract. set to author/instantiator by default"],"label":"get_admin","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":18},"selector":"0x57b8a8a7"},{"args":[],"default":false,"docs":[" Get all payee options"],"label":"get_payees","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":19},"selector":"0xf334a6d7"},{"args":[],"default":false,"docs":[" Get all dapp payee options"],"label":"get_dapp_payees","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":22},"selector":"0xcce851af"},{"args":[],"default":false,"docs":[" Get all status options"],"label":"get_statuses","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":25},"selector":"0xd39608f0"},{"args":[],"default":false,"docs":[" Get contract provider minimum stake default."],"label":"get_provider_stake_threshold","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":28},"selector":"0x3e7e8941"},{"args":[],"default":false,"docs":[" Get contract dapp minimum stake default."],"label":"get_dapp_stake_threshold","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":28},"selector":"0xc9834fee"},{"args":[],"default":false,"docs":[" the maximum fee a provider can charge for a commit"],"label":"get_max_provider_fee","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":29},"selector":"0xd799cf93"},{"args":[],"default":false,"docs":[" the minimum number of providers needed for the contract to function"],"label":"get_min_num_active_providers","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":30},"selector":"0xa200bea1"},{"args":[],"default":false,"docs":[" the time to complete a block, 6 seconds by default"],"label":"get_block_time","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":30},"selector":"0x8d3f151d"},{"args":[],"default":false,"docs":[" the max age of a commit for a user before it is removed from the history, in seconds"],"label":"get_max_user_history_age_seconds","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":29},"selector":"0xcab4fa0a"},{"args":[],"default":false,"docs":[" the max number of commits stored for a single user"],"label":"get_max_user_history_len","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":30},"selector":"0xfb715e71"},{"args":[],"default":false,"docs":[" the max age of a commit for a user before it is removed from the history, in blocks"],"label":"get_max_user_history_age_blocks","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":29},"selector":"0x6f3337c3"},{"args":[{"label":"url","type":{"displayName":["Vec"],"type":2}},{"label":"fee","type":{"displayName":["u32"],"type":1}},{"label":"payee","type":{"displayName":["Payee"],"type":21}}],"default":false,"docs":[" Register a provider, their url and fee"],"label":"provider_register","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xc66f9a2a"},{"args":[{"label":"url","type":{"displayName":["Vec"],"type":2}},{"label":"fee","type":{"displayName":["u32"],"type":1}},{"label":"payee","type":{"displayName":["Payee"],"type":21}}],"default":false,"docs":[" Update an existing provider, their url, fee and deposit funds"],"label":"provider_update","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xd2f70de8"},{"args":[],"default":false,"docs":[" De-activate a provider by setting their status to Deactivated"],"label":"provider_deactivate","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xa65232da"},{"args":[],"default":false,"docs":[" Unstake and deactivate the provider\'s service, returning stake"],"label":"provider_deregister","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x5eff53cf"},{"args":[{"label":"account","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get an existing provider"],"label":"get_provider","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":32},"selector":"0x457c7444"},{"args":[],"default":false,"docs":[" Fund a provider"],"label":"provider_fund","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x54ee83bb"},{"args":[{"label":"dataset_id","type":{"displayName":["Hash"],"type":4}},{"label":"dataset_id_content","type":{"displayName":["Hash"],"type":4}}],"default":false,"docs":[" Add a new data set"],"label":"provider_set_dataset","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xb0e7ab99"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get an existing dapp"],"label":"get_dapp","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":35},"selector":"0xf96477c0"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}},{"label":"payee","type":{"displayName":["DappPayee"],"type":24}}],"default":false,"docs":[" Register a dapp"],"label":"dapp_register","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x42b45efa"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}},{"label":"payee","type":{"displayName":["DappPayee"],"type":24}},{"label":"owner","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Update a dapp with new funds, setting status as appropriate"],"label":"dapp_update","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x5dbfa904"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Fund dapp account to pay for services, if the Dapp caller is registered in self.dapps"],"label":"dapp_fund","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x55da62a9"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Cancel services as a dapp, returning remaining tokens"],"label":"dapp_deregister","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xdc7da4d5"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Deactivate a dapp, leaving stake intact"],"label":"dapp_deactivate","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x94718d6f"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[],"label":"get_user_history_summary","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":38},"selector":"0x3be12ad6"},{"args":[{"label":"commit","type":{"displayName":["Commit"],"type":41}}],"default":false,"docs":[" Provider submits a captcha solution commitment"],"label":"provider_commit","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x57876316"},{"args":[{"label":"commits","type":{"displayName":["Vec"],"type":44}}],"default":false,"docs":[" Provider submits 0-many captcha solution commitments"],"label":"provider_commit_many","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xc8d4b3b2"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}},{"label":"threshold","type":{"displayName":["u8"],"type":3}}],"default":false,"docs":[" Checks if the user is a human (true) as they have a solution rate higher than a % threshold or a bot (false)"," Threshold is decided by the calling user"," Threshold is between 0-200, i.e. 0-100% in 0.5% increments. E.g. 100 = 50%, 200 = 100%, 0 = 0%, 50 = 25%, etc."],"label":"dapp_operator_is_human_user","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":45},"selector":"0xbe7b6ef9"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get the last correct captcha for a user"],"label":"dapp_operator_last_correct_captcha","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":48},"selector":"0xbe930f18"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get a dapp user",""," Returns an error if the user does not exist"],"label":"get_user","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":51},"selector":"0xa4ca534e"},{"args":[{"label":"commit_id","type":{"displayName":["Hash"],"type":4}}],"default":false,"docs":[" Get a solution commitment",""," Returns an error if the commitment does not exist"],"label":"get_commit","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":54},"selector":"0x5329f551"},{"args":[{"label":"provider_accounts","type":{"displayName":["Vec"],"type":8}}],"default":false,"docs":[" List providers given an array of account id",""," Returns empty if none were matched"],"label":"list_providers_by_accounts","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":56},"selector":"0x52f0d2cb"},{"args":[{"label":"statuses","type":{"displayName":["Vec"],"type":26}}],"default":false,"docs":[" List providers given an array of status",""," Returns empty if none were matched"],"label":"list_providers_by_status","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":56},"selector":"0x54b28ab4"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}},{"label":"dapp_contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get a random active provider",""," Returns error if no active provider is found"],"label":"get_random_active_provider","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":59},"selector":"0x4aee5bad"},{"args":[],"default":false,"docs":[" Get the AccountIds of all Providers ever registered",""," Returns {Vec<AccountId>}"],"label":"get_all_provider_accounts","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":62},"selector":"0x5052021f"},{"args":[{"label":"len","type":{"displayName":["u128"],"type":0}},{"label":"user_account","type":{"displayName":["AccountId"],"type":7}},{"label":"dapp_contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get a random number from 0 to `len` - 1 inclusive. The user account is added to the seed for additional random entropy."],"label":"get_random_number","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":28},"selector":"0x2306aecd"},{"args":[],"default":false,"docs":[" Terminate this contract and return any/all funds in this contract to the destination"],"label":"terminate","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x476d839f"},{"args":[{"label":"amount","type":{"displayName":["Balance"],"type":0}}],"default":false,"docs":[" Withdraw some funds from the contract to the specified destination"],"label":"withdraw","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x410fcc9d"},{"args":[{"label":"code_hash","type":{"displayName":[],"type":5}}],"default":false,"docs":[" Set the code hash for this contract"],"label":"set_code_hash","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x9e5c5758"}]},"storage":{"root":{"layout":{"struct":{"fields":[{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"enum":{"dispatchKey":"0x31f906a7","name":"GovernanceStatus","variants":{"0":{"fields":[],"name":"Active"},"1":{"fields":[],"name":"Inactive"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x31f906a7","ty":0}},"name":"balance"},{"layout":{"leaf":{"key":"0x31f906a7","ty":1}},"name":"fee"},{"layout":{"enum":{"dispatchKey":"0x31f906a7","name":"Payee","variants":{"0":{"fields":[],"name":"Provider"},"1":{"fields":[],"name":"Dapp"}}}},"name":"payee"},{"layout":{"leaf":{"key":"0x31f906a7","ty":2}},"name":"url"},{"layout":{"leaf":{"key":"0x31f906a7","ty":4}},"name":"dataset_id"},{"layout":{"leaf":{"key":"0x31f906a7","ty":4}},"name":"dataset_id_content"}],"name":"Provider"}},"root_key":"0x31f906a7"}},"name":"providers"},{"layout":{"root":{"layout":{"leaf":{"key":"0x25c2603c","ty":6}},"root_key":"0x25c2603c"}},"name":"provider_accounts"},{"layout":{"root":{"layout":{"leaf":{"key":"0xd1b08cc7","ty":7}},"root_key":"0xd1b08cc7"}},"name":"urls"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"enum":{"dispatchKey":"0x14493d1d","name":"GovernanceStatus","variants":{"0":{"fields":[],"name":"Active"},"1":{"fields":[],"name":"Inactive"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x14493d1d","ty":0}},"name":"balance"},{"layout":{"leaf":{"key":"0x14493d1d","ty":7}},"name":"owner"},{"layout":{"enum":{"dispatchKey":"0x14493d1d","name":"DappPayee","variants":{"0":{"fields":[],"name":"Provider"},"1":{"fields":[],"name":"Dapp"},"2":{"fields":[],"name":"Any"}}}},"name":"payee"}],"name":"Dapp"}},"root_key":"0x14493d1d"}},"name":"dapps"},{"layout":{"root":{"layout":{"leaf":{"key":"0x455ca62f","ty":6}},"root_key":"0x455ca62f"}},"name":"dapp_contracts"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"leaf":{"key":"0x81a766df","ty":4}},"name":"id"},{"layout":{"leaf":{"key":"0x81a766df","ty":7}},"name":"user_account"},{"layout":{"leaf":{"key":"0x81a766df","ty":4}},"name":"dataset_id"},{"layout":{"enum":{"dispatchKey":"0x81a766df","name":"CaptchaStatus","variants":{"0":{"fields":[],"name":"Pending"},"1":{"fields":[],"name":"Approved"},"2":{"fields":[],"name":"Disapproved"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x81a766df","ty":7}},"name":"dapp_contract"},{"layout":{"leaf":{"key":"0x81a766df","ty":7}},"name":"provider_account"},{"layout":{"leaf":{"key":"0x81a766df","ty":1}},"name":"requested_at"},{"layout":{"leaf":{"key":"0x81a766df","ty":1}},"name":"completed_at"},{"layout":{"array":{"layout":{"leaf":{"key":"0x81a766df","ty":3}},"len":64,"offset":"0x81a766df"}},"name":"user_signature"}],"name":"Commit"}},"root_key":"0x81a766df"}},"name":"commits"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"leaf":{"key":"0x5a3119c3","ty":9}},"name":"history"}],"name":"User"}},"root_key":"0x5a3119c3"}},"name":"users"},{"layout":{"root":{"layout":{"leaf":{"key":"0x43f9649b","ty":6}},"root_key":"0x43f9649b"}},"name":"user_accounts"}],"name":"Captcha"}},"root_key":"0xabcdef01"}},"types":[{"id":0,"type":{"def":{"primitive":"u128"}}},{"id":1,"type":{"def":{"primitive":"u32"}}},{"id":2,"type":{"def":{"sequence":{"type":3}}}},{"id":3,"type":{"def":{"primitive":"u8"}}},{"id":4,"type":{"def":{"composite":{"fields":[{"type":5,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","Hash"]}},{"id":5,"type":{"def":{"array":{"len":32,"type":3}}}},{"id":6,"type":{"def":{"composite":{"fields":[{"type":8}]}},"params":[{"name":"T","type":7}],"path":["BTreeSet"]}},{"id":7,"type":{"def":{"composite":{"fields":[{"type":5,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","AccountId"]}},{"id":8,"type":{"def":{"sequence":{"type":7}}}},{"id":9,"type":{"def":{"sequence":{"type":4}}}},{"id":10,"type":{"def":{"variant":{"variants":[{"fields":[{"type":11}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":11},{"name":"E","type":14}],"path":["Result"]}},{"id":11,"type":{"def":{"variant":{"variants":[{"fields":[{"type":12}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":12},{"name":"E","type":13}],"path":["Result"]}},{"id":12,"type":{"def":{"tuple":[]}}},{"id":13,"type":{"def":{"variant":{"variants":[{"index":0,"name":"NotAuthorised"},{"index":1,"name":"TransferFailed"},{"index":2,"name":"SetCodeHashFailed"},{"index":3,"name":"InvalidDestination"},{"index":4,"name":"UnknownMessage"},{"index":5,"name":"ProviderAccountExists"},{"index":6,"name":"ProviderExists"},{"index":7,"name":"ProviderAccountDoesNotExist"},{"index":8,"name":"ProviderDoesNotExist"},{"index":9,"name":"ProviderInsufficientFunds"},{"index":10,"name":"ProviderInactive"},{"index":11,"name":"ProviderUrlUsed"},{"index":12,"name":"DappExists"},{"index":13,"name":"DappDoesNotExist"},{"index":14,"name":"DappInactive"},{"index":15,"name":"DappInsufficientFunds"},{"index":16,"name":"CaptchaDataDoesNotExist"},{"index":17,"name":"CommitDoesNotExist"},{"index":18,"name":"DappUserDoesNotExist"},{"index":19,"name":"NoActiveProviders"},{"index":20,"name":"DatasetIdSolutionsSame"},{"index":21,"name":"CodeNotFound"},{"index":22,"name":"Unknown"},{"index":23,"name":"InvalidContract"},{"index":24,"name":"InvalidPayee"},{"index":25,"name":"InvalidCaptchaStatus"},{"index":26,"name":"NoCorrectCaptcha"},{"index":27,"name":"NotEnoughActiveProviders"},{"index":28,"name":"ProviderFeeTooHigh"},{"index":29,"name":"CommitAlreadyExists"},{"index":30,"name":"NotAuthor"},{"index":31,"name":"Math"}]}},"path":["common","common","Error"]}},{"id":14,"type":{"def":{"variant":{"variants":[{"index":1,"name":"CouldNotReadInput"}]}},"path":["ink_primitives","LangError"]}},{"id":15,"type":{"def":{"variant":{"variants":[{"fields":[{"type":12}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":12},{"name":"E","type":14}],"path":["Result"]}},{"id":16,"type":{"def":{"variant":{"variants":[{"fields":[{"type":17}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":17},{"name":"E","type":14}],"path":["Result"]}},{"id":17,"type":{"def":{"array":{"len":20,"type":3}}}},{"id":18,"type":{"def":{"variant":{"variants":[{"fields":[{"type":7}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":7},{"name":"E","type":14}],"path":["Result"]}},{"id":19,"type":{"def":{"variant":{"variants":[{"fields":[{"type":20}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":20},{"name":"E","type":14}],"path":["Result"]}},{"id":20,"type":{"def":{"sequence":{"type":21}}}},{"id":21,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Provider"},{"index":1,"name":"Dapp"}]}},"path":["captcha","captcha","Payee"]}},{"id":22,"type":{"def":{"variant":{"variants":[{"fields":[{"type":23}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":23},{"name":"E","type":14}],"path":["Result"]}},{"id":23,"type":{"def":{"sequence":{"type":24}}}},{"id":24,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Provider"},{"index":1,"name":"Dapp"},{"index":2,"name":"Any"}]}},"path":["captcha","captcha","DappPayee"]}},{"id":25,"type":{"def":{"variant":{"variants":[{"fields":[{"type":26}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":26},{"name":"E","type":14}],"path":["Result"]}},{"id":26,"type":{"def":{"sequence":{"type":27}}}},{"id":27,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Active"},{"index":1,"name":"Inactive"}]}},"path":["captcha","captcha","GovernanceStatus"]}},{"id":28,"type":{"def":{"variant":{"variants":[{"fields":[{"type":0}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":0},{"name":"E","type":14}],"path":["Result"]}},{"id":29,"type":{"def":{"variant":{"variants":[{"fields":[{"type":1}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":1},{"name":"E","type":14}],"path":["Result"]}},{"id":30,"type":{"def":{"variant":{"variants":[{"fields":[{"type":31}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":31},{"name":"E","type":14}],"path":["Result"]}},{"id":31,"type":{"def":{"primitive":"u16"}}},{"id":32,"type":{"def":{"variant":{"variants":[{"fields":[{"type":33}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":33},{"name":"E","type":14}],"path":["Result"]}},{"id":33,"type":{"def":{"variant":{"variants":[{"fields":[{"type":34}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":34},{"name":"E","type":13}],"path":["Result"]}},{"id":34,"type":{"def":{"composite":{"fields":[{"name":"status","type":27,"typeName":"GovernanceStatus"},{"name":"balance","type":0,"typeName":"Balance"},{"name":"fee","type":1,"typeName":"u32"},{"name":"payee","type":21,"typeName":"Payee"},{"name":"url","type":2,"typeName":"Vec<u8>"},{"name":"dataset_id","type":4,"typeName":"Hash"},{"name":"dataset_id_content","type":4,"typeName":"Hash"}]}},"path":["captcha","captcha","Provider"]}},{"id":35,"type":{"def":{"variant":{"variants":[{"fields":[{"type":36}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":36},{"name":"E","type":14}],"path":["Result"]}},{"id":36,"type":{"def":{"variant":{"variants":[{"fields":[{"type":37}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":37},{"name":"E","type":13}],"path":["Result"]}},{"id":37,"type":{"def":{"composite":{"fields":[{"name":"status","type":27,"typeName":"GovernanceStatus"},{"name":"balance","type":0,"typeName":"Balance"},{"name":"owner","type":7,"typeName":"AccountId"},{"name":"payee","type":24,"typeName":"DappPayee"}]}},"path":["captcha","captcha","Dapp"]}},{"id":38,"type":{"def":{"variant":{"variants":[{"fields":[{"type":39}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":39},{"name":"E","type":14}],"path":["Result"]}},{"id":39,"type":{"def":{"variant":{"variants":[{"fields":[{"type":40}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":40},{"name":"E","type":13}],"path":["Result"]}},{"id":40,"type":{"def":{"composite":{"fields":[{"name":"correct","type":31,"typeName":"u16"},{"name":"incorrect","type":31,"typeName":"u16"},{"name":"score","type":3,"typeName":"u8"}]}},"path":["captcha","captcha","UserHistorySummary"]}},{"id":41,"type":{"def":{"composite":{"fields":[{"name":"id","type":4,"typeName":"Hash"},{"name":"user_account","type":7,"typeName":"AccountId"},{"name":"dataset_id","type":4,"typeName":"Hash"},{"name":"status","type":42,"typeName":"CaptchaStatus"},{"name":"dapp_contract","type":7,"typeName":"AccountId"},{"name":"provider_account","type":7,"typeName":"AccountId"},{"name":"requested_at","type":1,"typeName":"BlockNumber"},{"name":"completed_at","type":1,"typeName":"BlockNumber"},{"name":"user_signature","type":43,"typeName":"[u8; 64]"}]}},"path":["captcha","captcha","Commit"]}},{"id":42,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Pending"},{"index":1,"name":"Approved"},{"index":2,"name":"Disapproved"}]}},"path":["captcha","captcha","CaptchaStatus"]}},{"id":43,"type":{"def":{"array":{"len":64,"type":3}}}},{"id":44,"type":{"def":{"sequence":{"type":41}}}},{"id":45,"type":{"def":{"variant":{"variants":[{"fields":[{"type":46}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":46},{"name":"E","type":14}],"path":["Result"]}},{"id":46,"type":{"def":{"variant":{"variants":[{"fields":[{"type":47}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":47},{"name":"E","type":13}],"path":["Result"]}},{"id":47,"type":{"def":{"primitive":"bool"}}},{"id":48,"type":{"def":{"variant":{"variants":[{"fields":[{"type":49}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":49},{"name":"E","type":14}],"path":["Result"]}},{"id":49,"type":{"def":{"variant":{"variants":[{"fields":[{"type":50}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":50},{"name":"E","type":13}],"path":["Result"]}},{"id":50,"type":{"def":{"composite":{"fields":[{"name":"before","type":1,"typeName":"BlockNumber"},{"name":"dapp_contract","type":7,"typeName":"AccountId"}]}},"path":["captcha","captcha","LastCorrectCaptcha"]}},{"id":51,"type":{"def":{"variant":{"variants":[{"fields":[{"type":52}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":52},{"name":"E","type":14}],"path":["Result"]}},{"id":52,"type":{"def":{"variant":{"variants":[{"fields":[{"type":53}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":53},{"name":"E","type":13}],"path":["Result"]}},{"id":53,"type":{"def":{"composite":{"fields":[{"name":"history","type":9,"typeName":"Vec<Hash>"}]}},"path":["captcha","captcha","User"]}},{"id":54,"type":{"def":{"variant":{"variants":[{"fields":[{"type":55}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":55},{"name":"E","type":14}],"path":["Result"]}},{"id":55,"type":{"def":{"variant":{"variants":[{"fields":[{"type":41}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":41},{"name":"E","type":13}],"path":["Result"]}},{"id":56,"type":{"def":{"variant":{"variants":[{"fields":[{"type":57}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":57},{"name":"E","type":14}],"path":["Result"]}},{"id":57,"type":{"def":{"variant":{"variants":[{"fields":[{"type":58}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":58},{"name":"E","type":13}],"path":["Result"]}},{"id":58,"type":{"def":{"sequence":{"type":34}}}},{"id":59,"type":{"def":{"variant":{"variants":[{"fields":[{"type":60}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":60},{"name":"E","type":14}],"path":["Result"]}},{"id":60,"type":{"def":{"variant":{"variants":[{"fields":[{"type":61}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":61},{"name":"E","type":13}],"path":["Result"]}},{"id":61,"type":{"def":{"composite":{"fields":[{"name":"provider_account","type":7,"typeName":"AccountId"},{"name":"provider","type":34,"typeName":"Provider"},{"name":"block_number","type":1,"typeName":"BlockNumber"}]}},"path":["captcha","captcha","RandomProvider"]}},{"id":62,"type":{"def":{"variant":{"variants":[{"fields":[{"type":63}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":63},{"name":"E","type":14}],"path":["Result"]}},{"id":63,"type":{"def":{"variant":{"variants":[{"fields":[{"type":8}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":8},{"name":"E","type":13}],"path":["Result"]}},{"id":64,"type":{"def":{"primitive":"u64"}}},{"id":65,"type":{"def":{"variant":{}},"path":["ink_env","types","NoChainExtension"]}}],"version":"4"}';
|
|
29703
|
+
const Ql = '{"source":{"hash":"0x47ccf93a15772e2794acf525ebaa5e374d11453a4edb0bbdf9ce229e9b6bdc88","language":"ink! 4.3.0","compiler":"rustc 1.69.0","build_info":{"build_mode":"Debug","cargo_contract_version":"3.0.1","rust_toolchain":"stable-x86_64-unknown-linux-gnu","wasm_opt_settings":{"keep_debug_symbols":false,"optimization_passes":"Z"}}},"contract":{"name":"captcha","version":"0.2.41","authors":["Chris Taylor <chris@prosopo.io>","George Oastler <george@prosopo.io>","Vincenzo Ferrara","Siniša Čanak"]},"spec":{"constructors":[{"args":[],"default":false,"docs":["Constructor"],"label":"new","payable":true,"returnType":{"displayName":["ink_primitives","ConstructorResult"],"type":10},"selector":"0x9bae9d5e"},{"args":[],"default":false,"docs":[],"label":"new_panic","payable":false,"returnType":{"displayName":["ink_primitives","ConstructorResult"],"type":15},"selector":"0x794560e8"}],"docs":[],"environment":{"accountId":{"displayName":["AccountId"],"type":7},"balance":{"displayName":["Balance"],"type":0},"blockNumber":{"displayName":["BlockNumber"],"type":1},"chainExtension":{"displayName":["ChainExtension"],"type":65},"hash":{"displayName":["Hash"],"type":4},"maxEventTopics":4,"timestamp":{"displayName":["Timestamp"],"type":64}},"events":[],"lang_error":{"displayName":["ink","LangError"],"type":14},"messages":[{"args":[],"default":false,"docs":[" Get the git commit id from when this contract was built"],"label":"get_git_commit_id","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":16},"selector":"0x3685e994"},{"args":[],"default":false,"docs":[" the admin which can control this contract. set to author/instantiator by default"],"label":"get_admin","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":18},"selector":"0x57b8a8a7"},{"args":[],"default":false,"docs":[" Get all payee options"],"label":"get_payees","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":19},"selector":"0xf334a6d7"},{"args":[],"default":false,"docs":[" Get all dapp payee options"],"label":"get_dapp_payees","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":22},"selector":"0xcce851af"},{"args":[],"default":false,"docs":[" Get all status options"],"label":"get_statuses","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":25},"selector":"0xd39608f0"},{"args":[],"default":false,"docs":[" Get contract provider minimum stake default."],"label":"get_provider_stake_threshold","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":28},"selector":"0x3e7e8941"},{"args":[],"default":false,"docs":[" Get contract dapp minimum stake default."],"label":"get_dapp_stake_threshold","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":28},"selector":"0xc9834fee"},{"args":[],"default":false,"docs":[" the maximum fee a provider can charge for a commit"],"label":"get_max_provider_fee","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":29},"selector":"0xd799cf93"},{"args":[],"default":false,"docs":[" the minimum number of providers needed for the contract to function"],"label":"get_min_num_active_providers","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":30},"selector":"0xa200bea1"},{"args":[],"default":false,"docs":[" the time to complete a block, 6 seconds by default"],"label":"get_block_time","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":30},"selector":"0x8d3f151d"},{"args":[],"default":false,"docs":[" the max age of a commit for a user before it is removed from the history, in seconds"],"label":"get_max_user_history_age_seconds","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":29},"selector":"0xcab4fa0a"},{"args":[],"default":false,"docs":[" the max number of commits stored for a single user"],"label":"get_max_user_history_len","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":30},"selector":"0xfb715e71"},{"args":[],"default":false,"docs":[" the max age of a commit for a user before it is removed from the history, in blocks"],"label":"get_max_user_history_age_blocks","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":29},"selector":"0x6f3337c3"},{"args":[{"label":"url","type":{"displayName":["Vec"],"type":2}},{"label":"fee","type":{"displayName":["u32"],"type":1}},{"label":"payee","type":{"displayName":["Payee"],"type":21}}],"default":false,"docs":[" Register a provider, their url and fee"],"label":"provider_register","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xc66f9a2a"},{"args":[{"label":"url","type":{"displayName":["Vec"],"type":2}},{"label":"fee","type":{"displayName":["u32"],"type":1}},{"label":"payee","type":{"displayName":["Payee"],"type":21}}],"default":false,"docs":[" Update an existing provider, their url, fee and deposit funds"],"label":"provider_update","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xd2f70de8"},{"args":[],"default":false,"docs":[" De-activate a provider by setting their status to Deactivated"],"label":"provider_deactivate","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xa65232da"},{"args":[],"default":false,"docs":[" Unstake and deactivate the provider\'s service, returning stake"],"label":"provider_deregister","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x5eff53cf"},{"args":[{"label":"account","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get an existing provider"],"label":"get_provider","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":32},"selector":"0x457c7444"},{"args":[],"default":false,"docs":[" Fund a provider"],"label":"provider_fund","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x54ee83bb"},{"args":[{"label":"dataset_id","type":{"displayName":["Hash"],"type":4}},{"label":"dataset_id_content","type":{"displayName":["Hash"],"type":4}}],"default":false,"docs":[" Add a new data set"],"label":"provider_set_dataset","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xb0e7ab99"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get an existing dapp"],"label":"get_dapp","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":35},"selector":"0xf96477c0"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}},{"label":"payee","type":{"displayName":["DappPayee"],"type":24}}],"default":false,"docs":[" Register a dapp"],"label":"dapp_register","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x42b45efa"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}},{"label":"payee","type":{"displayName":["DappPayee"],"type":24}},{"label":"owner","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Update a dapp with new funds, setting status as appropriate"],"label":"dapp_update","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x5dbfa904"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Fund dapp account to pay for services, if the Dapp caller is registered in self.dapps"],"label":"dapp_fund","mutates":true,"payable":true,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x55da62a9"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Cancel services as a dapp, returning remaining tokens"],"label":"dapp_deregister","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xdc7da4d5"},{"args":[{"label":"contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Deactivate a dapp, leaving stake intact"],"label":"dapp_deactivate","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x94718d6f"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[],"label":"get_user_history_summary","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":38},"selector":"0x3be12ad6"},{"args":[{"label":"commit","type":{"displayName":["Commit"],"type":41}}],"default":false,"docs":[" Provider submits a captcha solution commitment"],"label":"provider_commit","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x57876316"},{"args":[{"label":"commits","type":{"displayName":["Vec"],"type":44}}],"default":false,"docs":[" Provider submits 0-many captcha solution commitments"],"label":"provider_commit_many","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0xc8d4b3b2"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}},{"label":"threshold","type":{"displayName":["u8"],"type":3}}],"default":false,"docs":[" Checks if the user is a human (true) as they have a solution rate higher than a % threshold or a bot (false)"," Threshold is decided by the calling user"," Threshold is between 0-200, i.e. 0-100% in 0.5% increments. E.g. 100 = 50%, 200 = 100%, 0 = 0%, 50 = 25%, etc."],"label":"dapp_operator_is_human_user","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":45},"selector":"0xbe7b6ef9"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get the last correct captcha for a user"],"label":"dapp_operator_last_correct_captcha","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":48},"selector":"0xbe930f18"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get a dapp user",""," Returns an error if the user does not exist"],"label":"get_user","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":51},"selector":"0xa4ca534e"},{"args":[{"label":"commit_id","type":{"displayName":["Hash"],"type":4}}],"default":false,"docs":[" Get a solution commitment",""," Returns an error if the commitment does not exist"],"label":"get_commit","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":54},"selector":"0x5329f551"},{"args":[{"label":"provider_accounts","type":{"displayName":["Vec"],"type":8}}],"default":false,"docs":[" List providers given an array of account id",""," Returns empty if none were matched"],"label":"list_providers_by_accounts","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":56},"selector":"0x52f0d2cb"},{"args":[{"label":"statuses","type":{"displayName":["Vec"],"type":26}}],"default":false,"docs":[" List providers given an array of status",""," Returns empty if none were matched"],"label":"list_providers_by_status","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":56},"selector":"0x54b28ab4"},{"args":[{"label":"user_account","type":{"displayName":["AccountId"],"type":7}},{"label":"dapp_contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get a random active provider",""," Returns error if no active provider is found"],"label":"get_random_active_provider","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":59},"selector":"0x4aee5bad"},{"args":[],"default":false,"docs":[" Get the AccountIds of all Providers ever registered",""," Returns {Vec<AccountId>}"],"label":"get_all_provider_accounts","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":62},"selector":"0x5052021f"},{"args":[{"label":"len","type":{"displayName":["u128"],"type":0}},{"label":"user_account","type":{"displayName":["AccountId"],"type":7}},{"label":"dapp_contract","type":{"displayName":["AccountId"],"type":7}}],"default":false,"docs":[" Get a random number from 0 to `len` - 1 inclusive. The user account is added to the seed for additional random entropy."],"label":"get_random_number","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":28},"selector":"0x2306aecd"},{"args":[],"default":false,"docs":[" Terminate this contract and return any/all funds in this contract to the destination"],"label":"terminate","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x476d839f"},{"args":[{"label":"amount","type":{"displayName":["Balance"],"type":0}}],"default":false,"docs":[" Withdraw some funds from the contract to the specified destination"],"label":"withdraw","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x410fcc9d"},{"args":[{"label":"code_hash","type":{"displayName":[],"type":5}}],"default":false,"docs":[" Set the code hash for this contract"],"label":"set_code_hash","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":10},"selector":"0x9e5c5758"}]},"storage":{"root":{"layout":{"struct":{"fields":[{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"enum":{"dispatchKey":"0x31f906a7","name":"GovernanceStatus","variants":{"0":{"fields":[],"name":"Active"},"1":{"fields":[],"name":"Inactive"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x31f906a7","ty":0}},"name":"balance"},{"layout":{"leaf":{"key":"0x31f906a7","ty":1}},"name":"fee"},{"layout":{"enum":{"dispatchKey":"0x31f906a7","name":"Payee","variants":{"0":{"fields":[],"name":"Provider"},"1":{"fields":[],"name":"Dapp"}}}},"name":"payee"},{"layout":{"leaf":{"key":"0x31f906a7","ty":2}},"name":"url"},{"layout":{"leaf":{"key":"0x31f906a7","ty":4}},"name":"dataset_id"},{"layout":{"leaf":{"key":"0x31f906a7","ty":4}},"name":"dataset_id_content"}],"name":"Provider"}},"root_key":"0x31f906a7"}},"name":"providers"},{"layout":{"root":{"layout":{"leaf":{"key":"0x25c2603c","ty":6}},"root_key":"0x25c2603c"}},"name":"provider_accounts"},{"layout":{"root":{"layout":{"leaf":{"key":"0xd1b08cc7","ty":7}},"root_key":"0xd1b08cc7"}},"name":"urls"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"enum":{"dispatchKey":"0x14493d1d","name":"GovernanceStatus","variants":{"0":{"fields":[],"name":"Active"},"1":{"fields":[],"name":"Inactive"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x14493d1d","ty":0}},"name":"balance"},{"layout":{"leaf":{"key":"0x14493d1d","ty":7}},"name":"owner"},{"layout":{"enum":{"dispatchKey":"0x14493d1d","name":"DappPayee","variants":{"0":{"fields":[],"name":"Provider"},"1":{"fields":[],"name":"Dapp"},"2":{"fields":[],"name":"Any"}}}},"name":"payee"}],"name":"Dapp"}},"root_key":"0x14493d1d"}},"name":"dapps"},{"layout":{"root":{"layout":{"leaf":{"key":"0x455ca62f","ty":6}},"root_key":"0x455ca62f"}},"name":"dapp_contracts"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"leaf":{"key":"0x81a766df","ty":4}},"name":"id"},{"layout":{"leaf":{"key":"0x81a766df","ty":7}},"name":"user_account"},{"layout":{"leaf":{"key":"0x81a766df","ty":4}},"name":"dataset_id"},{"layout":{"enum":{"dispatchKey":"0x81a766df","name":"CaptchaStatus","variants":{"0":{"fields":[],"name":"Pending"},"1":{"fields":[],"name":"Approved"},"2":{"fields":[],"name":"Disapproved"}}}},"name":"status"},{"layout":{"leaf":{"key":"0x81a766df","ty":7}},"name":"dapp_contract"},{"layout":{"leaf":{"key":"0x81a766df","ty":7}},"name":"provider_account"},{"layout":{"leaf":{"key":"0x81a766df","ty":1}},"name":"requested_at"},{"layout":{"leaf":{"key":"0x81a766df","ty":1}},"name":"completed_at"},{"layout":{"array":{"layout":{"leaf":{"key":"0x81a766df","ty":3}},"len":64,"offset":"0x81a766df"}},"name":"user_signature"}],"name":"Commit"}},"root_key":"0x81a766df"}},"name":"commits"},{"layout":{"root":{"layout":{"struct":{"fields":[{"layout":{"leaf":{"key":"0x5a3119c3","ty":9}},"name":"history"}],"name":"User"}},"root_key":"0x5a3119c3"}},"name":"users"},{"layout":{"root":{"layout":{"leaf":{"key":"0x43f9649b","ty":6}},"root_key":"0x43f9649b"}},"name":"user_accounts"}],"name":"Captcha"}},"root_key":"0xabcdef01"}},"types":[{"id":0,"type":{"def":{"primitive":"u128"}}},{"id":1,"type":{"def":{"primitive":"u32"}}},{"id":2,"type":{"def":{"sequence":{"type":3}}}},{"id":3,"type":{"def":{"primitive":"u8"}}},{"id":4,"type":{"def":{"composite":{"fields":[{"type":5,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","Hash"]}},{"id":5,"type":{"def":{"array":{"len":32,"type":3}}}},{"id":6,"type":{"def":{"composite":{"fields":[{"type":8}]}},"params":[{"name":"T","type":7}],"path":["BTreeSet"]}},{"id":7,"type":{"def":{"composite":{"fields":[{"type":5,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","AccountId"]}},{"id":8,"type":{"def":{"sequence":{"type":7}}}},{"id":9,"type":{"def":{"sequence":{"type":4}}}},{"id":10,"type":{"def":{"variant":{"variants":[{"fields":[{"type":11}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":11},{"name":"E","type":14}],"path":["Result"]}},{"id":11,"type":{"def":{"variant":{"variants":[{"fields":[{"type":12}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":12},{"name":"E","type":13}],"path":["Result"]}},{"id":12,"type":{"def":{"tuple":[]}}},{"id":13,"type":{"def":{"variant":{"variants":[{"index":0,"name":"NotAuthorised"},{"index":1,"name":"TransferFailed"},{"index":2,"name":"SetCodeHashFailed"},{"index":3,"name":"InvalidDestination"},{"index":4,"name":"UnknownMessage"},{"index":5,"name":"ProviderAccountExists"},{"index":6,"name":"ProviderExists"},{"index":7,"name":"ProviderAccountDoesNotExist"},{"index":8,"name":"ProviderDoesNotExist"},{"index":9,"name":"ProviderInsufficientFunds"},{"index":10,"name":"ProviderInactive"},{"index":11,"name":"ProviderUrlUsed"},{"index":12,"name":"DappExists"},{"index":13,"name":"DappDoesNotExist"},{"index":14,"name":"DappInactive"},{"index":15,"name":"DappInsufficientFunds"},{"index":16,"name":"CaptchaDataDoesNotExist"},{"index":17,"name":"CommitDoesNotExist"},{"index":18,"name":"DappUserDoesNotExist"},{"index":19,"name":"NoActiveProviders"},{"index":20,"name":"DatasetIdSolutionsSame"},{"index":21,"name":"CodeNotFound"},{"index":22,"name":"Unknown"},{"index":23,"name":"InvalidContract"},{"index":24,"name":"InvalidPayee"},{"index":25,"name":"InvalidCaptchaStatus"},{"index":26,"name":"NoCorrectCaptcha"},{"index":27,"name":"NotEnoughActiveProviders"},{"index":28,"name":"ProviderFeeTooHigh"},{"index":29,"name":"CommitAlreadyExists"},{"index":30,"name":"NotAuthor"},{"index":31,"name":"Math"}]}},"path":["common","common","Error"]}},{"id":14,"type":{"def":{"variant":{"variants":[{"index":1,"name":"CouldNotReadInput"}]}},"path":["ink_primitives","LangError"]}},{"id":15,"type":{"def":{"variant":{"variants":[{"fields":[{"type":12}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":12},{"name":"E","type":14}],"path":["Result"]}},{"id":16,"type":{"def":{"variant":{"variants":[{"fields":[{"type":17}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":17},{"name":"E","type":14}],"path":["Result"]}},{"id":17,"type":{"def":{"array":{"len":20,"type":3}}}},{"id":18,"type":{"def":{"variant":{"variants":[{"fields":[{"type":7}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":7},{"name":"E","type":14}],"path":["Result"]}},{"id":19,"type":{"def":{"variant":{"variants":[{"fields":[{"type":20}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":20},{"name":"E","type":14}],"path":["Result"]}},{"id":20,"type":{"def":{"sequence":{"type":21}}}},{"id":21,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Provider"},{"index":1,"name":"Dapp"}]}},"path":["captcha","captcha","Payee"]}},{"id":22,"type":{"def":{"variant":{"variants":[{"fields":[{"type":23}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":23},{"name":"E","type":14}],"path":["Result"]}},{"id":23,"type":{"def":{"sequence":{"type":24}}}},{"id":24,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Provider"},{"index":1,"name":"Dapp"},{"index":2,"name":"Any"}]}},"path":["captcha","captcha","DappPayee"]}},{"id":25,"type":{"def":{"variant":{"variants":[{"fields":[{"type":26}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":26},{"name":"E","type":14}],"path":["Result"]}},{"id":26,"type":{"def":{"sequence":{"type":27}}}},{"id":27,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Active"},{"index":1,"name":"Inactive"}]}},"path":["captcha","captcha","GovernanceStatus"]}},{"id":28,"type":{"def":{"variant":{"variants":[{"fields":[{"type":0}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":0},{"name":"E","type":14}],"path":["Result"]}},{"id":29,"type":{"def":{"variant":{"variants":[{"fields":[{"type":1}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":1},{"name":"E","type":14}],"path":["Result"]}},{"id":30,"type":{"def":{"variant":{"variants":[{"fields":[{"type":31}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":31},{"name":"E","type":14}],"path":["Result"]}},{"id":31,"type":{"def":{"primitive":"u16"}}},{"id":32,"type":{"def":{"variant":{"variants":[{"fields":[{"type":33}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":33},{"name":"E","type":14}],"path":["Result"]}},{"id":33,"type":{"def":{"variant":{"variants":[{"fields":[{"type":34}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":34},{"name":"E","type":13}],"path":["Result"]}},{"id":34,"type":{"def":{"composite":{"fields":[{"name":"status","type":27,"typeName":"GovernanceStatus"},{"name":"balance","type":0,"typeName":"Balance"},{"name":"fee","type":1,"typeName":"u32"},{"name":"payee","type":21,"typeName":"Payee"},{"name":"url","type":2,"typeName":"Vec<u8>"},{"name":"dataset_id","type":4,"typeName":"Hash"},{"name":"dataset_id_content","type":4,"typeName":"Hash"}]}},"path":["captcha","captcha","Provider"]}},{"id":35,"type":{"def":{"variant":{"variants":[{"fields":[{"type":36}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":36},{"name":"E","type":14}],"path":["Result"]}},{"id":36,"type":{"def":{"variant":{"variants":[{"fields":[{"type":37}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":37},{"name":"E","type":13}],"path":["Result"]}},{"id":37,"type":{"def":{"composite":{"fields":[{"name":"status","type":27,"typeName":"GovernanceStatus"},{"name":"balance","type":0,"typeName":"Balance"},{"name":"owner","type":7,"typeName":"AccountId"},{"name":"payee","type":24,"typeName":"DappPayee"}]}},"path":["captcha","captcha","Dapp"]}},{"id":38,"type":{"def":{"variant":{"variants":[{"fields":[{"type":39}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":39},{"name":"E","type":14}],"path":["Result"]}},{"id":39,"type":{"def":{"variant":{"variants":[{"fields":[{"type":40}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":40},{"name":"E","type":13}],"path":["Result"]}},{"id":40,"type":{"def":{"composite":{"fields":[{"name":"correct","type":31,"typeName":"u16"},{"name":"incorrect","type":31,"typeName":"u16"},{"name":"score","type":3,"typeName":"u8"}]}},"path":["captcha","captcha","UserHistorySummary"]}},{"id":41,"type":{"def":{"composite":{"fields":[{"name":"id","type":4,"typeName":"Hash"},{"name":"user_account","type":7,"typeName":"AccountId"},{"name":"dataset_id","type":4,"typeName":"Hash"},{"name":"status","type":42,"typeName":"CaptchaStatus"},{"name":"dapp_contract","type":7,"typeName":"AccountId"},{"name":"provider_account","type":7,"typeName":"AccountId"},{"name":"requested_at","type":1,"typeName":"BlockNumber"},{"name":"completed_at","type":1,"typeName":"BlockNumber"},{"name":"user_signature","type":43,"typeName":"[u8; 64]"}]}},"path":["captcha","captcha","Commit"]}},{"id":42,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Pending"},{"index":1,"name":"Approved"},{"index":2,"name":"Disapproved"}]}},"path":["captcha","captcha","CaptchaStatus"]}},{"id":43,"type":{"def":{"array":{"len":64,"type":3}}}},{"id":44,"type":{"def":{"sequence":{"type":41}}}},{"id":45,"type":{"def":{"variant":{"variants":[{"fields":[{"type":46}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":46},{"name":"E","type":14}],"path":["Result"]}},{"id":46,"type":{"def":{"variant":{"variants":[{"fields":[{"type":47}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":47},{"name":"E","type":13}],"path":["Result"]}},{"id":47,"type":{"def":{"primitive":"bool"}}},{"id":48,"type":{"def":{"variant":{"variants":[{"fields":[{"type":49}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":49},{"name":"E","type":14}],"path":["Result"]}},{"id":49,"type":{"def":{"variant":{"variants":[{"fields":[{"type":50}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":50},{"name":"E","type":13}],"path":["Result"]}},{"id":50,"type":{"def":{"composite":{"fields":[{"name":"before","type":1,"typeName":"BlockNumber"},{"name":"dapp_contract","type":7,"typeName":"AccountId"}]}},"path":["captcha","captcha","LastCorrectCaptcha"]}},{"id":51,"type":{"def":{"variant":{"variants":[{"fields":[{"type":52}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":52},{"name":"E","type":14}],"path":["Result"]}},{"id":52,"type":{"def":{"variant":{"variants":[{"fields":[{"type":53}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":53},{"name":"E","type":13}],"path":["Result"]}},{"id":53,"type":{"def":{"composite":{"fields":[{"name":"history","type":9,"typeName":"Vec<Hash>"}]}},"path":["captcha","captcha","User"]}},{"id":54,"type":{"def":{"variant":{"variants":[{"fields":[{"type":55}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":55},{"name":"E","type":14}],"path":["Result"]}},{"id":55,"type":{"def":{"variant":{"variants":[{"fields":[{"type":41}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":41},{"name":"E","type":13}],"path":["Result"]}},{"id":56,"type":{"def":{"variant":{"variants":[{"fields":[{"type":57}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":57},{"name":"E","type":14}],"path":["Result"]}},{"id":57,"type":{"def":{"variant":{"variants":[{"fields":[{"type":58}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":58},{"name":"E","type":13}],"path":["Result"]}},{"id":58,"type":{"def":{"sequence":{"type":34}}}},{"id":59,"type":{"def":{"variant":{"variants":[{"fields":[{"type":60}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":60},{"name":"E","type":14}],"path":["Result"]}},{"id":60,"type":{"def":{"variant":{"variants":[{"fields":[{"type":61}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":61},{"name":"E","type":13}],"path":["Result"]}},{"id":61,"type":{"def":{"composite":{"fields":[{"name":"provider_account","type":7,"typeName":"AccountId"},{"name":"provider","type":34,"typeName":"Provider"},{"name":"block_number","type":1,"typeName":"BlockNumber"}]}},"path":["captcha","captcha","RandomProvider"]}},{"id":62,"type":{"def":{"variant":{"variants":[{"fields":[{"type":63}],"index":0,"name":"Ok"},{"fields":[{"type":14}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":63},{"name":"E","type":14}],"path":["Result"]}},{"id":63,"type":{"def":{"variant":{"variants":[{"fields":[{"type":8}],"index":0,"name":"Ok"},{"fields":[{"type":13}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":8},{"name":"E","type":13}],"path":["Result"]}},{"id":64,"type":{"def":{"primitive":"u64"}}},{"id":65,"type":{"def":{"variant":{}},"path":["ink_env","types","NoChainExtension"]}}],"version":"4"}';
|
|
29703
29704
|
function cm(n) {
|
|
29704
29705
|
return n.map((e) => J({}, e, {
|
|
29705
29706
|
name: Array.isArray(e.name) ? e.name : [e.name]
|
|
@@ -34422,7 +34423,7 @@ function Nr(n, e) {
|
|
|
34422
34423
|
var t = [0, 0, 0, 0];
|
|
34423
34424
|
return t[3] += n[3] + e[3], t[2] += t[3] >>> 16, t[3] &= 65535, t[2] += n[2] + e[2], t[1] += t[2] >>> 16, t[2] &= 65535, t[1] += n[1] + e[1], t[0] += t[1] >>> 16, t[1] &= 65535, t[0] += n[0] + e[0], t[0] &= 65535, [t[0] << 16 | t[1], t[2] << 16 | t[3]];
|
|
34424
34425
|
}
|
|
34425
|
-
function
|
|
34426
|
+
function mn(n, e) {
|
|
34426
34427
|
n = [n[0] >>> 16, n[0] & 65535, n[1] >>> 16, n[1] & 65535], e = [e[0] >>> 16, e[0] & 65535, e[1] >>> 16, e[1] & 65535];
|
|
34427
34428
|
var t = [0, 0, 0, 0];
|
|
34428
34429
|
return t[3] += n[3] * e[3], t[2] += t[3] >>> 16, t[3] &= 65535, t[2] += n[2] * e[3], t[1] += t[2] >>> 16, t[2] &= 65535, t[2] += n[3] * e[2], t[1] += t[2] >>> 16, t[2] &= 65535, t[1] += n[1] * e[3], t[0] += t[1] >>> 16, t[1] &= 65535, t[1] += n[2] * e[2], t[0] += t[1] >>> 16, t[1] &= 65535, t[1] += n[3] * e[1], t[0] += t[1] >>> 16, t[1] &= 65535, t[0] += n[0] * e[3] + n[1] * e[2] + n[2] * e[1] + n[3] * e[0], t[0] &= 65535, [t[0] << 16 | t[1], t[2] << 16 | t[3]];
|
|
@@ -34437,7 +34438,7 @@ function Ve(n, e) {
|
|
|
34437
34438
|
return [n[0] ^ e[0], n[1] ^ e[1]];
|
|
34438
34439
|
}
|
|
34439
34440
|
function gm(n) {
|
|
34440
|
-
return n = Ve(n, [0, n[0] >>> 1]), n =
|
|
34441
|
+
return n = Ve(n, [0, n[0] >>> 1]), n = mn(n, [4283543511, 3981806797]), n = Ve(n, [0, n[0] >>> 1]), n = mn(n, [3301882366, 444984403]), n = Ve(n, [0, n[0] >>> 1]), n;
|
|
34441
34442
|
}
|
|
34442
34443
|
function zI(n, e) {
|
|
34443
34444
|
n = n || "", e = e || 0;
|
|
@@ -34449,7 +34450,7 @@ function zI(n, e) {
|
|
|
34449
34450
|
], o = [
|
|
34450
34451
|
n.charCodeAt(u + 12) & 255 | (n.charCodeAt(u + 13) & 255) << 8 | (n.charCodeAt(u + 14) & 255) << 16 | (n.charCodeAt(u + 15) & 255) << 24,
|
|
34451
34452
|
n.charCodeAt(u + 8) & 255 | (n.charCodeAt(u + 9) & 255) << 8 | (n.charCodeAt(u + 10) & 255) << 16 | (n.charCodeAt(u + 11) & 255) << 24
|
|
34452
|
-
], a =
|
|
34453
|
+
], a = mn(a, c), a = pi(a, 31), a = mn(a, l), i = Ve(i, a), i = pi(i, 27), i = Nr(i, s), i = Nr(mn(i, [0, 5]), [0, 1390208809]), o = mn(o, l), o = pi(o, 33), o = mn(o, c), s = Ve(s, o), s = pi(s, 31), s = Nr(s, i), s = Nr(mn(s, [0, 5]), [0, 944331445]);
|
|
34453
34454
|
switch (a = [0, 0], o = [0, 0], t) {
|
|
34454
34455
|
case 15:
|
|
34455
34456
|
o = Ve(o, on([0, n.charCodeAt(u + 14)], 48));
|
|
@@ -34464,7 +34465,7 @@ function zI(n, e) {
|
|
|
34464
34465
|
case 10:
|
|
34465
34466
|
o = Ve(o, on([0, n.charCodeAt(u + 9)], 8));
|
|
34466
34467
|
case 9:
|
|
34467
|
-
o = Ve(o, [0, n.charCodeAt(u + 8)]), o =
|
|
34468
|
+
o = Ve(o, [0, n.charCodeAt(u + 8)]), o = mn(o, l), o = pi(o, 33), o = mn(o, c), s = Ve(s, o);
|
|
34468
34469
|
case 8:
|
|
34469
34470
|
a = Ve(a, on([0, n.charCodeAt(u + 7)], 56));
|
|
34470
34471
|
case 7:
|
|
@@ -34480,7 +34481,7 @@ function zI(n, e) {
|
|
|
34480
34481
|
case 2:
|
|
34481
34482
|
a = Ve(a, on([0, n.charCodeAt(u + 1)], 8));
|
|
34482
34483
|
case 1:
|
|
34483
|
-
a = Ve(a, [0, n.charCodeAt(u)]), a =
|
|
34484
|
+
a = Ve(a, [0, n.charCodeAt(u)]), a = mn(a, c), a = pi(a, 31), a = mn(a, l), i = Ve(i, a);
|
|
34484
34485
|
}
|
|
34485
34486
|
return i = Ve(i, [0, n.length]), s = Ve(s, [0, n.length]), i = Nr(i, s), s = Nr(s, i), i = gm(i), s = gm(s), i = Nr(i, s), s = Nr(s, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (s[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (s[1] >>> 0).toString(16)).slice(-8);
|
|
34486
34487
|
}
|
|
@@ -35885,7 +35886,7 @@ function Rr(n, e) {
|
|
|
35885
35886
|
const t = [0, 0, 0, 0];
|
|
35886
35887
|
return t[3] += H(n, 3) + H(e, 3), t[2] += H(t, 3) >>> 16, t[3] &= 65535, t[2] += H(n, 2) + H(e, 2), t[1] += H(t, 2) >>> 16, t[2] &= 65535, t[1] += H(n, 1) + H(e, 1), t[0] += H(t, 1) >>> 16, t[1] &= 65535, t[0] += H(n, 0) + H(e, 0), t[0] &= 65535, [H(t, 0) << 16 | H(t, 1), H(t, 2) << 16 | H(t, 3)];
|
|
35887
35888
|
}
|
|
35888
|
-
function
|
|
35889
|
+
function gn(n, e) {
|
|
35889
35890
|
n = [H(n, 0) >>> 16, H(n, 0) & 65535, H(n, 1) >>> 16, H(n, 1) & 65535], e = [H(e, 0) >>> 16, H(e, 0) & 65535, H(e, 1) >>> 16, H(e, 1) & 65535];
|
|
35890
35891
|
const t = [0, 0, 0, 0];
|
|
35891
35892
|
return t[3] += H(n, 3) * H(e, 3), t[2] += H(t, 3) >>> 16, t[3] &= 65535, t[2] += H(n, 2) * H(e, 3), t[1] += H(t, 2) >>> 16, t[2] &= 65535, t[2] += H(n, 3) * H(e, 2), t[1] += H(t, 2) >>> 16, t[2] &= 65535, t[1] += H(n, 1) * H(e, 3), t[0] += H(t, 1) >>> 16, t[1] &= 65535, t[1] += H(n, 2) * H(e, 2), t[0] += H(t, 1) >>> 16, t[1] &= 65535, t[1] += H(n, 3) * H(e, 1), t[0] += H(t, 1) >>> 16, t[1] &= 65535, t[0] += H(n, 0) * H(e, 3) + H(n, 1) * H(e, 2) + H(n, 2) * H(e, 1) + H(n, 3) * H(e, 0), t[0] &= 65535, [H(t, 0) << 16 | H(t, 1), H(t, 2) << 16 | H(t, 3)];
|
|
@@ -35900,7 +35901,7 @@ function Be(n, e) {
|
|
|
35900
35901
|
return [H(n, 0) ^ H(e, 0), H(n, 1) ^ H(e, 1)];
|
|
35901
35902
|
}
|
|
35902
35903
|
function Cm(n) {
|
|
35903
|
-
return n = Be(n, [0, H(n, 0) >>> 1]), n =
|
|
35904
|
+
return n = Be(n, [0, H(n, 0) >>> 1]), n = gn(n, [4283543511, 3981806797]), n = Be(n, [0, H(n, 0) >>> 1]), n = gn(n, [3301882366, 444984403]), n = Be(n, [0, H(n, 0) >>> 1]), n;
|
|
35904
35905
|
}
|
|
35905
35906
|
function EO(n, e) {
|
|
35906
35907
|
n = n || "", e = e || 0;
|
|
@@ -35915,7 +35916,7 @@ function EO(n, e) {
|
|
|
35915
35916
|
], o = [
|
|
35916
35917
|
n.charCodeAt(u + 12) & 255 | (n.charCodeAt(u + 13) & 255) << 8 | (n.charCodeAt(u + 14) & 255) << 16 | (n.charCodeAt(u + 15) & 255) << 24,
|
|
35917
35918
|
n.charCodeAt(u + 8) & 255 | (n.charCodeAt(u + 9) & 255) << 8 | (n.charCodeAt(u + 10) & 255) << 16 | (n.charCodeAt(u + 11) & 255) << 24
|
|
35918
|
-
], a =
|
|
35919
|
+
], a = gn(a, c), a = yi(a, 31), a = gn(a, l), i = Be(i, a), i = yi(i, 27), i = Rr(i, s), i = Rr(gn(i, [0, 5]), [0, 1390208809]), o = gn(o, l), o = yi(o, 33), o = gn(o, c), s = Be(s, o), s = yi(s, 31), s = Rr(s, i), s = Rr(gn(s, [0, 5]), [0, 944331445]);
|
|
35919
35920
|
switch (a = [0, 0], o = [0, 0], t) {
|
|
35920
35921
|
case 15:
|
|
35921
35922
|
o = Be(o, cn([0, n.charCodeAt(u + 14)], 48));
|
|
@@ -35936,7 +35937,7 @@ function EO(n, e) {
|
|
|
35936
35937
|
o = Be(o, cn([0, n.charCodeAt(u + 9)], 8));
|
|
35937
35938
|
break;
|
|
35938
35939
|
case 9:
|
|
35939
|
-
o = Be(o, [0, n.charCodeAt(u + 8)]), o =
|
|
35940
|
+
o = Be(o, [0, n.charCodeAt(u + 8)]), o = gn(o, l), o = yi(o, 33), o = gn(o, c), s = Be(s, o);
|
|
35940
35941
|
break;
|
|
35941
35942
|
case 8:
|
|
35942
35943
|
a = Be(a, cn([0, n.charCodeAt(u + 7)], 56));
|
|
@@ -35960,7 +35961,7 @@ function EO(n, e) {
|
|
|
35960
35961
|
a = Be(a, cn([0, n.charCodeAt(u + 1)], 8));
|
|
35961
35962
|
break;
|
|
35962
35963
|
case 1:
|
|
35963
|
-
a = Be(a, [0, n.charCodeAt(u)]), a =
|
|
35964
|
+
a = Be(a, [0, n.charCodeAt(u)]), a = gn(a, c), a = yi(a, 31), a = gn(a, l), i = Be(i, a);
|
|
35964
35965
|
}
|
|
35965
35966
|
return i = Be(i, [0, n.length]), s = Be(s, [0, n.length]), i = Rr(i, s), s = Rr(s, i), i = Cm(i), s = Cm(s), i = Rr(i, s), s = Rr(s, i), ("00000000" + (H(i, 0) >>> 0).toString(16)).slice(-8) + ("00000000" + (H(i, 1) >>> 0).toString(16)).slice(-8) + ("00000000" + (H(s, 0) >>> 0).toString(16)).slice(-8) + ("00000000" + (H(s, 1) >>> 0).toString(16)).slice(-8);
|
|
35966
35967
|
}
|
|
@@ -36211,32 +36212,33 @@ const kO = 1e3, Ad = (n, e) => {
|
|
|
36211
36212
|
});
|
|
36212
36213
|
}, [e]), ge("div", { ref: c });
|
|
36213
36214
|
}, DO = LO, UO = V_.memo((n, e) => {
|
|
36214
|
-
const { show: t, children: r } = n
|
|
36215
|
-
return ge("div", { style: {
|
|
36216
|
-
overflow: "auto",
|
|
36217
|
-
width: "100%",
|
|
36218
|
-
maxHeight: "100%",
|
|
36215
|
+
const { show: t, children: r } = n, s = {
|
|
36219
36216
|
position: "fixed",
|
|
36220
|
-
|
|
36221
|
-
|
|
36222
|
-
|
|
36223
|
-
|
|
36224
|
-
zIndex: "2147483646",
|
|
36225
|
-
transition: "all 0.5s",
|
|
36226
|
-
display: t ? "flex" : "none"
|
|
36227
|
-
}, children: ge("div", { style: {
|
|
36228
|
-
maxWidth: "500px",
|
|
36229
|
-
margin: "auto",
|
|
36217
|
+
zIndex: 2147483646,
|
|
36218
|
+
inset: 0,
|
|
36219
|
+
display: t ? "block" : "none"
|
|
36220
|
+
}, a = {
|
|
36230
36221
|
position: "fixed",
|
|
36231
|
-
|
|
36232
|
-
|
|
36233
|
-
|
|
36222
|
+
display: "flex",
|
|
36223
|
+
alignItems: "center",
|
|
36224
|
+
justifyContent: "center",
|
|
36225
|
+
right: 0,
|
|
36226
|
+
bottom: 0,
|
|
36227
|
+
top: 0,
|
|
36228
|
+
left: 0,
|
|
36229
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
36230
|
+
zIndex: -1
|
|
36231
|
+
}, o = {
|
|
36232
|
+
position: "absolute",
|
|
36234
36233
|
top: "50%",
|
|
36235
36234
|
left: "50%",
|
|
36236
36235
|
transform: "translate(-50%, -50%)",
|
|
36237
|
-
|
|
36238
|
-
|
|
36239
|
-
|
|
36236
|
+
width: "400px",
|
|
36237
|
+
backgroundColor: "rgb(255, 255, 255)",
|
|
36238
|
+
border: "none",
|
|
36239
|
+
boxShadow: "rgba(0, 0, 0, 0.2) 0px 11px 15px -7px, rgba(0, 0, 0, 0.14) 0px 24px 38px 3px, rgba(0, 0, 0, 0.12) 0px 9px 46px 8px,"
|
|
36240
|
+
};
|
|
36241
|
+
return un("div", { className: "modalOuter", style: s, children: [ge("div", { className: "modalBackground", style: a }), ge("div", { className: "modalInner", style: o, children: r })] });
|
|
36240
36242
|
}), VO = UO, km = Nm`
|
|
36241
36243
|
align-items: center;
|
|
36242
36244
|
justify-content: flex-end;
|
|
@@ -36298,7 +36300,7 @@ const kO = 1e3, Ad = (n, e) => {
|
|
|
36298
36300
|
}, cM = (n) => {
|
|
36299
36301
|
n.config;
|
|
36300
36302
|
const e = n.config, t = n.callbacks || {}, [r, i] = BO(), s = WI(e, r, i, t), a = { maxWidth: "400px", minWidth: "200px", margin: "8px" }, o = n.config.theme === "light" ? "light" : "dark", c = we.useMemo(() => n.config.theme === "light" ? Ls : Ds, [n.config.theme]);
|
|
36301
|
-
return r.showModal,
|
|
36303
|
+
return r.showModal, un("div", { children: [un("div", { style: { maxWidth: "100%", maxHeight: "100%", overflowX: "auto" }, children: [ge(VO, { show: r.showModal, children: r.challenge ? ge(NE, { challenge: r.challenge, index: r.index, solutions: r.solutions, onSubmit: s.submit, onCancel: s.cancel, onClick: s.select, onNext: s.nextRound, themeColor: e.theme ?? "light" }) : ge("div", { children: "No challenge set." }) }), un("div", { style: a, "data-cy": "button-human", children: [" ", un("div", { style: {
|
|
36302
36304
|
padding: "8px",
|
|
36303
36305
|
border: "1px solid",
|
|
36304
36306
|
backgroundColor: c.palette.background.default,
|
|
@@ -36308,12 +36310,12 @@ const kO = 1e3, Ad = (n, e) => {
|
|
|
36308
36310
|
justifyContent: "space-between",
|
|
36309
36311
|
alignItems: "center",
|
|
36310
36312
|
flexWrap: "wrap"
|
|
36311
|
-
}, children: [ge("div", { style: { display: "flex", flexDirection: "column" }, children:
|
|
36313
|
+
}, children: [ge("div", { style: { display: "flex", flexDirection: "column" }, children: un("div", { style: {
|
|
36312
36314
|
display: "flex",
|
|
36313
36315
|
justifyContent: "flex-start",
|
|
36314
36316
|
alignItems: "center",
|
|
36315
36317
|
flexWrap: "wrap"
|
|
36316
|
-
}, children: [
|
|
36318
|
+
}, children: [un("div", { style: {
|
|
36317
36319
|
height: "50px",
|
|
36318
36320
|
width: "50px",
|
|
36319
36321
|
display: "flex",
|
|
@@ -36325,7 +36327,7 @@ const kO = 1e3, Ad = (n, e) => {
|
|
|
36325
36327
|
display: r.loading ? "none" : "flex"
|
|
36326
36328
|
}, children: ge(MO, { themeColor: o, onChange: s.start, checked: r.isHuman }) }), ge("div", { style: {
|
|
36327
36329
|
display: r.loading ? "flex" : "none"
|
|
36328
|
-
}, children: ge("div", { style: { flex: 1 }, children: ge(B_, { themeColor: o }) }) })] }), ge("div", { style: { padding: 1 }, children: ge("span", { style: { color: c.palette.background.contrastText, paddingLeft: "4px" }, children: "I am a human" }) })] }) }), ge("div", { children: ge("a", { href: "https://www.prosopo.io/#features?ref=accounts.prosopo.io&utm_campaign=widget&utm_medium=checkbox", target: "_blank", "aria-label": "Visit prosopo.io to learn more about the service and its accessibility options.", children: ge("div", { children:
|
|
36330
|
+
}, children: ge("div", { style: { flex: 1 }, children: ge(B_, { themeColor: o }) }) })] }), ge("div", { style: { padding: 1 }, children: ge("span", { style: { color: c.palette.background.contrastText, paddingLeft: "4px" }, children: "I am a human" }) })] }) }), ge("div", { children: ge("a", { href: "https://www.prosopo.io/#features?ref=accounts.prosopo.io&utm_campaign=widget&utm_medium=checkbox", target: "_blank", "aria-label": "Visit prosopo.io to learn more about the service and its accessibility options.", children: ge("div", { children: un("div", { children: [ge("div", { css: km, dangerouslySetInnerHTML: {
|
|
36329
36331
|
__html: n.config.theme === "light" ? WO : jO
|
|
36330
36332
|
} }), ge("div", { css: km, dangerouslySetInnerHTML: {
|
|
36331
36333
|
__html: n.config.theme === "light" ? HO : FO
|