@wishknish/knishio-client-js 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs.js +22 -22
- package/dist/client.cjs.js.map +1 -1
- package/dist/client.es.mjs +422 -397
- package/dist/client.es.mjs.map +1 -1
- package/dist/client.iife.js +22 -22
- package/dist/client.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/Wallet.js +14 -1
- package/src/libraries/array.js +6 -4
- package/src/libraries/strings.js +33 -7
- package/src/types/index.js +0 -2
package/dist/client.es.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import F from "jssha";
|
|
2
|
-
import { gql as E, cacheExchange as
|
|
3
|
-
import { createClient as
|
|
4
|
-
import { pipe as
|
|
2
|
+
import { gql as E, cacheExchange as tn, fetchExchange as nn, subscriptionExchange as sn, createClient as rn } from "@urql/core";
|
|
3
|
+
import { createClient as on } from "graphql-ws";
|
|
4
|
+
import { pipe as an, map as ln, subscribe as cn } from "wonka";
|
|
5
5
|
typeof self > "u" && (global.self = global);
|
|
6
|
-
class
|
|
6
|
+
class Wt {
|
|
7
7
|
/**
|
|
8
8
|
* Converts the given buffer to a string containing its hexadecimal representation.
|
|
9
9
|
*
|
|
@@ -79,10 +79,14 @@ function Ue(o, e) {
|
|
|
79
79
|
return n;
|
|
80
80
|
}
|
|
81
81
|
function nt(o = 256, e = "abcdef0123456789") {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
const t = new Uint8Array(o);
|
|
83
|
+
crypto.getRandomValues(t);
|
|
84
|
+
let n = "";
|
|
85
|
+
for (let s = 0; s < o; s++)
|
|
86
|
+
n += e.charAt(t[s] % e.length);
|
|
87
|
+
return n;
|
|
84
88
|
}
|
|
85
|
-
function
|
|
89
|
+
function un(o, e, t, n, s) {
|
|
86
90
|
if (n = n || "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()-_=+[{]}\\|;:'\",<.>/?¿¡", s = s || n, e > n.length || t > s.length)
|
|
87
91
|
return console.warn("Strings::charsetBaseConvert() - Can't convert", o, "to base", t, "greater than symbol table length. src-table:", n.length, "dest-table:", s.length), !1;
|
|
88
92
|
let i = BigInt(0);
|
|
@@ -95,19 +99,29 @@ function cn(o, e, t, n, s) {
|
|
|
95
99
|
}
|
|
96
100
|
return a || "0";
|
|
97
101
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
102
|
+
function at(o) {
|
|
103
|
+
return Wt.toHex(o, {});
|
|
100
104
|
}
|
|
101
105
|
function hn(o) {
|
|
102
|
-
return
|
|
106
|
+
return Wt.toUint8Array(o);
|
|
103
107
|
}
|
|
104
108
|
function dn(o) {
|
|
105
109
|
const e = hn(o);
|
|
106
|
-
|
|
110
|
+
if (typeof Buffer < "u")
|
|
111
|
+
return Buffer.from(e).toString("base64");
|
|
112
|
+
let t = "";
|
|
113
|
+
const n = 32768;
|
|
114
|
+
for (let s = 0; s < e.length; s += n)
|
|
115
|
+
t += String.fromCharCode(...e.subarray(s, s + n));
|
|
116
|
+
return btoa(t);
|
|
107
117
|
}
|
|
108
118
|
function pn(o) {
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
if (typeof Buffer < "u")
|
|
120
|
+
return at(new Uint8Array(Buffer.from(o, "base64")));
|
|
121
|
+
const e = atob(o), t = new Uint8Array(e.length);
|
|
122
|
+
for (let n = 0; n < e.length; n++)
|
|
123
|
+
t[n] = e.charCodeAt(n);
|
|
124
|
+
return at(t);
|
|
111
125
|
}
|
|
112
126
|
function De(o) {
|
|
113
127
|
return /^[A-F0-9]+$/i.test(o);
|
|
@@ -152,10 +166,13 @@ let he = class {
|
|
|
152
166
|
return t;
|
|
153
167
|
}
|
|
154
168
|
};
|
|
155
|
-
function
|
|
156
|
-
|
|
169
|
+
function Cr(o, e) {
|
|
170
|
+
const t = [];
|
|
171
|
+
for (let n = 0; n < o.length; n += e)
|
|
172
|
+
t.push(o.slice(n, n + e));
|
|
173
|
+
return t;
|
|
157
174
|
}
|
|
158
|
-
function
|
|
175
|
+
function mn(o, e) {
|
|
159
176
|
let t, n, s;
|
|
160
177
|
const r = [Array, Date, Number, String, Boolean], i = Object.prototype.toString;
|
|
161
178
|
for (e = e || [], t = 0; t < e.length; t += 2)
|
|
@@ -165,11 +182,11 @@ function yn(o, e) {
|
|
|
165
182
|
i.call(o) === i.call(s = new r[t](o)) && (n = t ? s : []);
|
|
166
183
|
e.push(o, n);
|
|
167
184
|
for (t in o)
|
|
168
|
-
e.hasOwnProperty.call(o, t) && (n[t] =
|
|
185
|
+
e.hasOwnProperty.call(o, t) && (n[t] = mn(o[t], e));
|
|
169
186
|
}
|
|
170
187
|
return n || o;
|
|
171
188
|
}
|
|
172
|
-
function
|
|
189
|
+
function yn(...o) {
|
|
173
190
|
return [].concat(...o.map((e, t) => {
|
|
174
191
|
const n = o.slice(0);
|
|
175
192
|
n.splice(t, 1);
|
|
@@ -215,7 +232,7 @@ class st {
|
|
|
215
232
|
})) {
|
|
216
233
|
const i = r.map((a) => a.key);
|
|
217
234
|
this.policy[s] || (this.policy[s] = {});
|
|
218
|
-
for (const a of
|
|
235
|
+
for (const a of yn(e, i))
|
|
219
236
|
this.policy[s][a] || (this.policy[s][a] = s === "write" && !["characters", "pubkey"].includes(a) ? ["self"] : ["all"]);
|
|
220
237
|
}
|
|
221
238
|
}
|
|
@@ -416,7 +433,7 @@ class ie {
|
|
|
416
433
|
return ie.structure(this);
|
|
417
434
|
}
|
|
418
435
|
}
|
|
419
|
-
class
|
|
436
|
+
class gn extends ie {
|
|
420
437
|
constructor({
|
|
421
438
|
position: e = null,
|
|
422
439
|
walletAddress: t = null,
|
|
@@ -435,7 +452,7 @@ class bn extends ie {
|
|
|
435
452
|
}
|
|
436
453
|
}
|
|
437
454
|
const Re = {
|
|
438
|
-
4:
|
|
455
|
+
4: gn
|
|
439
456
|
};
|
|
440
457
|
class g {
|
|
441
458
|
/**
|
|
@@ -663,7 +680,7 @@ class g {
|
|
|
663
680
|
case "array":
|
|
664
681
|
return n.getHash("ARRAYBUFFER", { outputLen: 256 });
|
|
665
682
|
default:
|
|
666
|
-
return
|
|
683
|
+
return un(n.getHash("HEX", { outputLen: 256 }), 16, 17, "0123456789abcdef", "0123456789abcdefg").padStart(64, "0");
|
|
667
684
|
}
|
|
668
685
|
}
|
|
669
686
|
static jsonSerialization(e, t) {
|
|
@@ -804,71 +821,71 @@ class ze extends x {
|
|
|
804
821
|
super(e, t, n), this.name = "WalletCredentialException";
|
|
805
822
|
}
|
|
806
823
|
}
|
|
807
|
-
const Te = /* @__PURE__ */ BigInt(2 ** 32 - 1),
|
|
808
|
-
function
|
|
809
|
-
return e ? { h: Number(o & Te), l: Number(o >>
|
|
824
|
+
const Te = /* @__PURE__ */ BigInt(2 ** 32 - 1), lt = /* @__PURE__ */ BigInt(32);
|
|
825
|
+
function bn(o, e = !1) {
|
|
826
|
+
return e ? { h: Number(o & Te), l: Number(o >> lt & Te) } : { h: Number(o >> lt & Te) | 0, l: Number(o & Te) | 0 };
|
|
810
827
|
}
|
|
811
|
-
function
|
|
828
|
+
function wn(o, e = !1) {
|
|
812
829
|
const t = o.length;
|
|
813
830
|
let n = new Uint32Array(t), s = new Uint32Array(t);
|
|
814
831
|
for (let r = 0; r < t; r++) {
|
|
815
|
-
const { h: i, l: a } =
|
|
832
|
+
const { h: i, l: a } = bn(o[r], e);
|
|
816
833
|
[n[r], s[r]] = [i, a];
|
|
817
834
|
}
|
|
818
835
|
return [n, s];
|
|
819
836
|
}
|
|
820
|
-
const
|
|
821
|
-
function
|
|
837
|
+
const kn = (o, e, t) => o << t | e >>> 32 - t, _n = (o, e, t) => e << t | o >>> 32 - t, Sn = (o, e, t) => e << t - 32 | o >>> 64 - t, $n = (o, e, t) => o << t - 32 | e >>> 64 - t;
|
|
838
|
+
function An(o) {
|
|
822
839
|
return o instanceof Uint8Array || ArrayBuffer.isView(o) && o.constructor.name === "Uint8Array";
|
|
823
840
|
}
|
|
824
|
-
function
|
|
841
|
+
function ct(o, e = "") {
|
|
825
842
|
if (!Number.isSafeInteger(o) || o < 0) {
|
|
826
843
|
const t = e && `"${e}" `;
|
|
827
844
|
throw new Error(`${t}expected integer >= 0, got ${o}`);
|
|
828
845
|
}
|
|
829
846
|
}
|
|
830
847
|
function j(o, e, t = "") {
|
|
831
|
-
const n =
|
|
848
|
+
const n = An(o), s = o?.length, r = e !== void 0;
|
|
832
849
|
if (!n || r && s !== e) {
|
|
833
850
|
const i = t && `"${t}" `, a = r ? ` of length ${e}` : "", c = n ? `length=${s}` : `type=${typeof o}`;
|
|
834
851
|
throw new Error(i + "expected Uint8Array" + a + ", got " + c);
|
|
835
852
|
}
|
|
836
853
|
return o;
|
|
837
854
|
}
|
|
838
|
-
function
|
|
855
|
+
function ut(o, e = !0) {
|
|
839
856
|
if (o.destroyed)
|
|
840
857
|
throw new Error("Hash instance has been destroyed");
|
|
841
858
|
if (e && o.finished)
|
|
842
859
|
throw new Error("Hash#digest() has already been called");
|
|
843
860
|
}
|
|
844
|
-
function
|
|
861
|
+
function vn(o, e) {
|
|
845
862
|
j(o, void 0, "digestInto() output");
|
|
846
863
|
const t = e.outputLen;
|
|
847
864
|
if (o.length < t)
|
|
848
865
|
throw new Error('"digestInto() output" expected to be of length >=' + t);
|
|
849
866
|
}
|
|
850
|
-
function
|
|
867
|
+
function Ut(o) {
|
|
851
868
|
return new Uint32Array(o.buffer, o.byteOffset, Math.floor(o.byteLength / 4));
|
|
852
869
|
}
|
|
853
|
-
function
|
|
870
|
+
function Bt(...o) {
|
|
854
871
|
for (let e = 0; e < o.length; e++)
|
|
855
872
|
o[e].fill(0);
|
|
856
873
|
}
|
|
857
|
-
const
|
|
858
|
-
function
|
|
874
|
+
const xn = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
875
|
+
function In(o) {
|
|
859
876
|
return o << 24 & 4278190080 | o << 8 & 16711680 | o >>> 8 & 65280 | o >>> 24 & 255;
|
|
860
877
|
}
|
|
861
|
-
function
|
|
878
|
+
function Mn(o) {
|
|
862
879
|
for (let e = 0; e < o.length; e++)
|
|
863
|
-
o[e] =
|
|
880
|
+
o[e] = In(o[e]);
|
|
864
881
|
return o;
|
|
865
882
|
}
|
|
866
|
-
const
|
|
867
|
-
function
|
|
883
|
+
const ht = xn ? (o) => o : Mn;
|
|
884
|
+
function Ht(o, e = {}) {
|
|
868
885
|
const t = (s, r) => o(r).update(s).digest(), n = o(void 0);
|
|
869
886
|
return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = (s) => o(s), Object.assign(t, e), Object.freeze(t);
|
|
870
887
|
}
|
|
871
|
-
function
|
|
888
|
+
function Tn(o = 32) {
|
|
872
889
|
const e = typeof globalThis == "object" ? globalThis.crypto : null;
|
|
873
890
|
if (typeof e?.getRandomValues != "function")
|
|
874
891
|
throw new Error("crypto.getRandomValues must be defined");
|
|
@@ -876,28 +893,28 @@ function Cn(o = 32) {
|
|
|
876
893
|
}
|
|
877
894
|
const Ke = (o) => ({
|
|
878
895
|
oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, o])
|
|
879
|
-
}),
|
|
896
|
+
}), Cn = BigInt(0), me = BigInt(1), En = BigInt(2), On = BigInt(7), Rn = BigInt(256), qn = BigInt(113), Pt = [], Kt = [], Nt = [];
|
|
880
897
|
for (let o = 0, e = me, t = 1, n = 0; o < 24; o++) {
|
|
881
|
-
[t, n] = [n, (2 * t + 3 * n) % 5],
|
|
882
|
-
let s =
|
|
898
|
+
[t, n] = [n, (2 * t + 3 * n) % 5], Pt.push(2 * (5 * n + t)), Kt.push((o + 1) * (o + 2) / 2 % 64);
|
|
899
|
+
let s = Cn;
|
|
883
900
|
for (let r = 0; r < 7; r++)
|
|
884
|
-
e = (e << me ^ (e >>
|
|
885
|
-
|
|
901
|
+
e = (e << me ^ (e >> On) * qn) % Rn, e & En && (s ^= me << (me << BigInt(r)) - me);
|
|
902
|
+
Nt.push(s);
|
|
886
903
|
}
|
|
887
|
-
const
|
|
888
|
-
function
|
|
904
|
+
const Lt = wn(Nt, !0), Wn = Lt[0], Un = Lt[1], dt = (o, e, t) => t > 32 ? Sn(o, e, t) : kn(o, e, t), pt = (o, e, t) => t > 32 ? $n(o, e, t) : _n(o, e, t);
|
|
905
|
+
function Bn(o, e = 24) {
|
|
889
906
|
const t = new Uint32Array(10);
|
|
890
907
|
for (let n = 24 - e; n < 24; n++) {
|
|
891
908
|
for (let i = 0; i < 10; i++)
|
|
892
909
|
t[i] = o[i] ^ o[i + 10] ^ o[i + 20] ^ o[i + 30] ^ o[i + 40];
|
|
893
910
|
for (let i = 0; i < 10; i += 2) {
|
|
894
|
-
const a = (i + 8) % 10, c = (i + 2) % 10, u = t[c], l = t[c + 1], h =
|
|
911
|
+
const a = (i + 8) % 10, c = (i + 2) % 10, u = t[c], l = t[c + 1], h = dt(u, l, 1) ^ t[a], p = pt(u, l, 1) ^ t[a + 1];
|
|
895
912
|
for (let d = 0; d < 50; d += 10)
|
|
896
913
|
o[i + d] ^= h, o[i + d + 1] ^= p;
|
|
897
914
|
}
|
|
898
915
|
let s = o[2], r = o[3];
|
|
899
916
|
for (let i = 0; i < 24; i++) {
|
|
900
|
-
const a =
|
|
917
|
+
const a = Kt[i], c = dt(s, r, a), u = pt(s, r, a), l = Pt[i];
|
|
901
918
|
s = o[l], r = o[l + 1], o[l] = c, o[l + 1] = u;
|
|
902
919
|
}
|
|
903
920
|
for (let i = 0; i < 50; i += 10) {
|
|
@@ -906,9 +923,9 @@ function Hn(o, e = 24) {
|
|
|
906
923
|
for (let a = 0; a < 10; a++)
|
|
907
924
|
o[i + a] ^= ~t[(a + 2) % 10] & t[(a + 4) % 10];
|
|
908
925
|
}
|
|
909
|
-
o[0] ^=
|
|
926
|
+
o[0] ^= Wn[n], o[1] ^= Un[n];
|
|
910
927
|
}
|
|
911
|
-
|
|
928
|
+
Bt(t);
|
|
912
929
|
}
|
|
913
930
|
class Ne {
|
|
914
931
|
state;
|
|
@@ -924,18 +941,18 @@ class Ne {
|
|
|
924
941
|
rounds;
|
|
925
942
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
926
943
|
constructor(e, t, n, s = !1, r = 24) {
|
|
927
|
-
if (this.blockLen = e, this.suffix = t, this.outputLen = n, this.enableXOF = s, this.rounds = r,
|
|
944
|
+
if (this.blockLen = e, this.suffix = t, this.outputLen = n, this.enableXOF = s, this.rounds = r, ct(n, "outputLen"), !(0 < e && e < 200))
|
|
928
945
|
throw new Error("only keccak-f1600 function is supported");
|
|
929
|
-
this.state = new Uint8Array(200), this.state32 =
|
|
946
|
+
this.state = new Uint8Array(200), this.state32 = Ut(this.state);
|
|
930
947
|
}
|
|
931
948
|
clone() {
|
|
932
949
|
return this._cloneInto();
|
|
933
950
|
}
|
|
934
951
|
keccak() {
|
|
935
|
-
|
|
952
|
+
ht(this.state32), Bn(this.state32, this.rounds), ht(this.state32), this.posOut = 0, this.pos = 0;
|
|
936
953
|
}
|
|
937
954
|
update(e) {
|
|
938
|
-
|
|
955
|
+
ut(this), j(e);
|
|
939
956
|
const { blockLen: t, state: n } = this, s = e.length;
|
|
940
957
|
for (let r = 0; r < s; ) {
|
|
941
958
|
const i = Math.min(t - this.pos, s - r);
|
|
@@ -953,7 +970,7 @@ class Ne {
|
|
|
953
970
|
e[n] ^= t, (t & 128) !== 0 && n === s - 1 && this.keccak(), e[s - 1] ^= 128, this.keccak();
|
|
954
971
|
}
|
|
955
972
|
writeInto(e) {
|
|
956
|
-
|
|
973
|
+
ut(this, !1), j(e), this.finish();
|
|
957
974
|
const t = this.state, { blockLen: n } = this;
|
|
958
975
|
for (let s = 0, r = e.length; s < r; ) {
|
|
959
976
|
this.posOut >= n && this.keccak();
|
|
@@ -968,10 +985,10 @@ class Ne {
|
|
|
968
985
|
return this.writeInto(e);
|
|
969
986
|
}
|
|
970
987
|
xof(e) {
|
|
971
|
-
return
|
|
988
|
+
return ct(e), this.xofInto(new Uint8Array(e));
|
|
972
989
|
}
|
|
973
990
|
digestInto(e) {
|
|
974
|
-
if (
|
|
991
|
+
if (vn(e, this), this.finished)
|
|
975
992
|
throw new Error("digest() was already called");
|
|
976
993
|
return this.writeInto(e), this.destroy(), e;
|
|
977
994
|
}
|
|
@@ -979,49 +996,49 @@ class Ne {
|
|
|
979
996
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
980
997
|
}
|
|
981
998
|
destroy() {
|
|
982
|
-
this.destroyed = !0,
|
|
999
|
+
this.destroyed = !0, Bt(this.state);
|
|
983
1000
|
}
|
|
984
1001
|
_cloneInto(e) {
|
|
985
1002
|
const { blockLen: t, suffix: n, outputLen: s, rounds: r, enableXOF: i } = this;
|
|
986
1003
|
return e ||= new Ne(t, n, s, i, r), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = r, e.suffix = n, e.outputLen = s, e.enableXOF = i, e.destroyed = this.destroyed, e;
|
|
987
1004
|
}
|
|
988
1005
|
}
|
|
989
|
-
const
|
|
1006
|
+
const Ft = (o, e, t, n = {}) => Ht(() => new Ne(e, o, t), n), Hn = /* @__PURE__ */ Ft(
|
|
990
1007
|
6,
|
|
991
1008
|
136,
|
|
992
1009
|
32,
|
|
993
1010
|
/* @__PURE__ */ Ke(8)
|
|
994
|
-
),
|
|
1011
|
+
), Pn = /* @__PURE__ */ Ft(
|
|
995
1012
|
6,
|
|
996
1013
|
72,
|
|
997
1014
|
64,
|
|
998
1015
|
/* @__PURE__ */ Ke(10)
|
|
999
|
-
),
|
|
1016
|
+
), Qt = (o, e, t, n = {}) => Ht((s = {}) => new Ne(e, o, s.dkLen === void 0 ? t : s.dkLen, !0), n), Kn = /* @__PURE__ */ Qt(31, 168, 16, /* @__PURE__ */ Ke(11)), jt = /* @__PURE__ */ Qt(31, 136, 32, /* @__PURE__ */ Ke(12));
|
|
1000
1017
|
function rt(o) {
|
|
1001
1018
|
if (!Number.isSafeInteger(o) || o < 0 || o > 4294967295)
|
|
1002
1019
|
throw new Error("wrong u32 integer:" + o);
|
|
1003
1020
|
return o;
|
|
1004
1021
|
}
|
|
1005
|
-
function
|
|
1022
|
+
function Dt(o) {
|
|
1006
1023
|
return rt(o), (o & o - 1) === 0 && o !== 0;
|
|
1007
1024
|
}
|
|
1008
|
-
function
|
|
1025
|
+
function Vt(o, e) {
|
|
1009
1026
|
rt(o);
|
|
1010
1027
|
let t = 0;
|
|
1011
1028
|
for (let n = 0; n < e; n++, o >>>= 1)
|
|
1012
1029
|
t = t << 1 | o & 1;
|
|
1013
1030
|
return t;
|
|
1014
1031
|
}
|
|
1015
|
-
function
|
|
1032
|
+
function zt(o) {
|
|
1016
1033
|
return rt(o), 31 - Math.clz32(o);
|
|
1017
1034
|
}
|
|
1018
|
-
function
|
|
1035
|
+
function ft(o) {
|
|
1019
1036
|
const e = o.length;
|
|
1020
|
-
if (e < 2 || !
|
|
1037
|
+
if (e < 2 || !Dt(e))
|
|
1021
1038
|
throw new Error("n must be a power of 2 and greater than 1. Got " + e);
|
|
1022
|
-
const t =
|
|
1039
|
+
const t = zt(e);
|
|
1023
1040
|
for (let n = 0; n < e; n++) {
|
|
1024
|
-
const s =
|
|
1041
|
+
const s = Vt(n, t);
|
|
1025
1042
|
if (n < s) {
|
|
1026
1043
|
const r = o[n];
|
|
1027
1044
|
o[n] = o[s], o[s] = r;
|
|
@@ -1029,15 +1046,15 @@ function pt(o) {
|
|
|
1029
1046
|
}
|
|
1030
1047
|
return o;
|
|
1031
1048
|
}
|
|
1032
|
-
const
|
|
1033
|
-
const { N: t, roots: n, dit: s, invertButterflies: r = !1, skipStages: i = 0, brp: a = !0 } = e, c =
|
|
1034
|
-
if (!
|
|
1049
|
+
const mt = (o, e) => {
|
|
1050
|
+
const { N: t, roots: n, dit: s, invertButterflies: r = !1, skipStages: i = 0, brp: a = !0 } = e, c = zt(t);
|
|
1051
|
+
if (!Dt(t))
|
|
1035
1052
|
throw new Error("FFT: Polynomial size should be power of two");
|
|
1036
1053
|
const u = s !== r;
|
|
1037
1054
|
return (l) => {
|
|
1038
1055
|
if (l.length !== t)
|
|
1039
1056
|
throw new Error("FFT: wrong Polynomial length");
|
|
1040
|
-
s && a &&
|
|
1057
|
+
s && a && ft(l);
|
|
1041
1058
|
for (let h = 0, p = 1; h < c - i; h++) {
|
|
1042
1059
|
const d = s ? h + 1 + i : c - h, b = 1 << d, A = b >> 1, O = t >> d;
|
|
1043
1060
|
for (let f = 0; f < t; f += b)
|
|
@@ -1049,10 +1066,10 @@ const ft = (o, e) => {
|
|
|
1049
1066
|
} else r ? (l[k] = o.add(I, _), l[$] = o.mul(o.sub(I, _), v)) : (l[k] = o.add(_, I), l[$] = o.mul(o.sub(_, I), v));
|
|
1050
1067
|
}
|
|
1051
1068
|
}
|
|
1052
|
-
return !s && a &&
|
|
1069
|
+
return !s && a && ft(l), l;
|
|
1053
1070
|
};
|
|
1054
1071
|
};
|
|
1055
|
-
const
|
|
1072
|
+
const yt = Tn;
|
|
1056
1073
|
function Je(o, e) {
|
|
1057
1074
|
if (o.length !== e.length)
|
|
1058
1075
|
return !1;
|
|
@@ -1061,7 +1078,7 @@ function Je(o, e) {
|
|
|
1061
1078
|
t |= o[n] ^ e[n];
|
|
1062
1079
|
return t === 0;
|
|
1063
1080
|
}
|
|
1064
|
-
function
|
|
1081
|
+
function Nn(o) {
|
|
1065
1082
|
return Uint8Array.from(o);
|
|
1066
1083
|
}
|
|
1067
1084
|
function qe(o, ...e) {
|
|
@@ -1118,10 +1135,10 @@ function G(...o) {
|
|
|
1118
1135
|
else
|
|
1119
1136
|
e.fill(0);
|
|
1120
1137
|
}
|
|
1121
|
-
function
|
|
1138
|
+
function gt(o) {
|
|
1122
1139
|
return (1 << o) - 1;
|
|
1123
1140
|
}
|
|
1124
|
-
const
|
|
1141
|
+
const Ln = (o) => {
|
|
1125
1142
|
const { newPoly: e, N: t, Q: n, F: s, ROOT_OF_UNITY: r, brvBits: i } = o, a = (f, m = n) => {
|
|
1126
1143
|
const w = f % m | 0;
|
|
1127
1144
|
return (w >= 0 ? w | 0 : m + w | 0) | 0;
|
|
@@ -1132,7 +1149,7 @@ const Fn = (o) => {
|
|
|
1132
1149
|
function u() {
|
|
1133
1150
|
const f = e(t);
|
|
1134
1151
|
for (let m = 0; m < t; m++) {
|
|
1135
|
-
const w =
|
|
1152
|
+
const w = Vt(m, i), T = BigInt(r) ** BigInt(w) % BigInt(n);
|
|
1136
1153
|
f[m] = Number(T) | 0;
|
|
1137
1154
|
}
|
|
1138
1155
|
return f;
|
|
@@ -1150,7 +1167,7 @@ const Fn = (o) => {
|
|
|
1150
1167
|
invertButterflies: !0,
|
|
1151
1168
|
skipStages: 1,
|
|
1152
1169
|
brp: !1
|
|
1153
|
-
}, d =
|
|
1170
|
+
}, d = mt(h, { dit: !1, ...p }), b = mt(h, { dit: !0, ...p });
|
|
1154
1171
|
return { mod: a, smod: c, nttZetas: l, NTT: {
|
|
1155
1172
|
encode: (f) => d(f),
|
|
1156
1173
|
decode: (f) => {
|
|
@@ -1160,14 +1177,14 @@ const Fn = (o) => {
|
|
|
1160
1177
|
return f;
|
|
1161
1178
|
}
|
|
1162
1179
|
}, bitsCoder: (f, m) => {
|
|
1163
|
-
const w =
|
|
1180
|
+
const w = gt(f), T = f * (t / 8);
|
|
1164
1181
|
return {
|
|
1165
1182
|
bytesLen: T,
|
|
1166
1183
|
encode: (k) => {
|
|
1167
1184
|
const $ = new Uint8Array(T);
|
|
1168
1185
|
for (let v = 0, I = 0, _ = 0, U = 0; v < k.length; v++)
|
|
1169
1186
|
for (I |= (m.encode(k[v]) & w) << _, _ += f; _ >= 8; _ -= 8, I >>= 8)
|
|
1170
|
-
$[U++] = I &
|
|
1187
|
+
$[U++] = I & gt(_);
|
|
1171
1188
|
return $;
|
|
1172
1189
|
},
|
|
1173
1190
|
decode: (k) => {
|
|
@@ -1179,7 +1196,7 @@ const Fn = (o) => {
|
|
|
1179
1196
|
}
|
|
1180
1197
|
};
|
|
1181
1198
|
} };
|
|
1182
|
-
},
|
|
1199
|
+
}, Fn = (o) => (e, t) => {
|
|
1183
1200
|
t || (t = o.blockLen);
|
|
1184
1201
|
const n = new Uint8Array(e.length + 2);
|
|
1185
1202
|
n.set(e);
|
|
@@ -1192,17 +1209,17 @@ const Fn = (o) => {
|
|
|
1192
1209
|
i.destroy(), G(r, n);
|
|
1193
1210
|
}
|
|
1194
1211
|
};
|
|
1195
|
-
},
|
|
1196
|
-
const L = 256, ae = 3329,
|
|
1212
|
+
}, Qn = /* @__PURE__ */ Fn(Kn);
|
|
1213
|
+
const L = 256, ae = 3329, jn = 3303, Dn = 17, { mod: Se, nttZetas: Vn, NTT: te, bitsCoder: zn } = Ln({
|
|
1197
1214
|
N: L,
|
|
1198
1215
|
Q: ae,
|
|
1199
|
-
F:
|
|
1200
|
-
ROOT_OF_UNITY:
|
|
1216
|
+
F: jn,
|
|
1217
|
+
ROOT_OF_UNITY: Dn,
|
|
1201
1218
|
newPoly: (o) => new Uint16Array(o),
|
|
1202
1219
|
brvBits: 7
|
|
1203
|
-
}),
|
|
1220
|
+
}), Jn = {
|
|
1204
1221
|
768: { N: L, Q: ae, K: 3, ETA1: 2, ETA2: 2, du: 10, dv: 4, RBGstrength: 192 }
|
|
1205
|
-
},
|
|
1222
|
+
}, Gn = (o) => {
|
|
1206
1223
|
if (o >= 12)
|
|
1207
1224
|
return { encode: (t) => t, decode: (t) => t };
|
|
1208
1225
|
const e = 2 ** (o - 1);
|
|
@@ -1212,29 +1229,29 @@ const L = 256, ae = 3329, Dn = 3303, Vn = 17, { mod: Se, nttZetas: zn, NTT: te,
|
|
|
1212
1229
|
// const decompress = (i: number) => round((Q / 2 ** d) * i);
|
|
1213
1230
|
decode: (t) => t * ae + e >>> o
|
|
1214
1231
|
};
|
|
1215
|
-
}, ye = (o) =>
|
|
1232
|
+
}, ye = (o) => zn(o, Gn(o));
|
|
1216
1233
|
function ne(o, e) {
|
|
1217
1234
|
for (let t = 0; t < L; t++)
|
|
1218
1235
|
o[t] = Se(o[t] + e[t]);
|
|
1219
1236
|
}
|
|
1220
|
-
function
|
|
1237
|
+
function Xn(o, e) {
|
|
1221
1238
|
for (let t = 0; t < L; t++)
|
|
1222
1239
|
o[t] = Se(o[t] - e[t]);
|
|
1223
1240
|
}
|
|
1224
|
-
function
|
|
1241
|
+
function Zn(o, e, t, n, s) {
|
|
1225
1242
|
const r = Se(e * n * s + o * t), i = Se(o * n + e * t);
|
|
1226
1243
|
return { c0: r, c1: i };
|
|
1227
1244
|
}
|
|
1228
1245
|
function Ce(o, e) {
|
|
1229
1246
|
for (let t = 0; t < L / 2; t++) {
|
|
1230
|
-
let n =
|
|
1247
|
+
let n = Vn[64 + (t >> 1)];
|
|
1231
1248
|
t & 1 && (n = -n);
|
|
1232
|
-
const { c0: s, c1: r } =
|
|
1249
|
+
const { c0: s, c1: r } = Zn(o[2 * t + 0], o[2 * t + 1], e[2 * t + 0], e[2 * t + 1], n);
|
|
1233
1250
|
o[2 * t + 0] = s, o[2 * t + 1] = r;
|
|
1234
1251
|
}
|
|
1235
1252
|
return o;
|
|
1236
1253
|
}
|
|
1237
|
-
function
|
|
1254
|
+
function bt(o) {
|
|
1238
1255
|
const e = new Uint16Array(L);
|
|
1239
1256
|
for (let t = 0; t < L; ) {
|
|
1240
1257
|
const n = o();
|
|
@@ -1248,7 +1265,7 @@ function gt(o) {
|
|
|
1248
1265
|
return e;
|
|
1249
1266
|
}
|
|
1250
1267
|
function ge(o, e, t, n) {
|
|
1251
|
-
const s = o(n * L / 4, e, t), r = new Uint16Array(L), i =
|
|
1268
|
+
const s = o(n * L / 4, e, t), r = new Uint16Array(L), i = Ut(s);
|
|
1252
1269
|
let a = 0;
|
|
1253
1270
|
for (let c = 0, u = 0, l = 0, h = 0; c < i.length; c++) {
|
|
1254
1271
|
let p = i[c];
|
|
@@ -1259,7 +1276,7 @@ function ge(o, e, t, n) {
|
|
|
1259
1276
|
throw new Error(`sampleCBD: leftover bits: ${a}`);
|
|
1260
1277
|
return r;
|
|
1261
1278
|
}
|
|
1262
|
-
const
|
|
1279
|
+
const Yn = (o) => {
|
|
1263
1280
|
const { K: e, PRF: t, XOF: n, HASH512: s, ETA1: r, ETA2: i, du: a, dv: c } = o, u = ye(1), l = ye(c), h = ye(a), p = qe("publicKey", Ge(ye(12), e), 32), d = Ge(ye(12), e), b = qe("ciphertext", Ge(h, e), l), A = qe("seed", 32, 32);
|
|
1264
1281
|
return {
|
|
1265
1282
|
secretCoder: d,
|
|
@@ -1279,7 +1296,7 @@ const es = (o) => {
|
|
|
1279
1296
|
for (let _ = 0; _ < e; _++) {
|
|
1280
1297
|
const U = te.encode(ge(t, T, e + _, r));
|
|
1281
1298
|
for (let R = 0; R < e; R++) {
|
|
1282
|
-
const ce =
|
|
1299
|
+
const ce = bt(v.get(R, _));
|
|
1283
1300
|
ne(U, Ce(ce, k[R]));
|
|
1284
1301
|
}
|
|
1285
1302
|
$.push(U);
|
|
@@ -1299,8 +1316,8 @@ const es = (o) => {
|
|
|
1299
1316
|
for (let R = 0; R < e; R++) {
|
|
1300
1317
|
const ce = ge(t, m, e + R, i), je = new Uint16Array(L);
|
|
1301
1318
|
for (let Me = 0; Me < e; Me++) {
|
|
1302
|
-
const
|
|
1303
|
-
ne(je, Ce(
|
|
1319
|
+
const en = bt($.get(R, Me));
|
|
1320
|
+
ne(je, Ce(en, k[Me]));
|
|
1304
1321
|
}
|
|
1305
1322
|
ne(ce, te.decode(je)), I.push(ce), ne(v, Ce(w[R], k[R])), G(je);
|
|
1306
1323
|
}
|
|
@@ -1314,12 +1331,12 @@ const es = (o) => {
|
|
|
1314
1331
|
const [m, w] = b.decode(O), T = d.decode(f), k = new Uint16Array(L);
|
|
1315
1332
|
for (let $ = 0; $ < e; $++)
|
|
1316
1333
|
ne(k, Ce(T[$], te.encode(m[$])));
|
|
1317
|
-
return
|
|
1334
|
+
return Xn(w, te.decode(k)), G(k, T, m), u.encode(w);
|
|
1318
1335
|
}
|
|
1319
1336
|
};
|
|
1320
1337
|
};
|
|
1321
|
-
function
|
|
1322
|
-
const e =
|
|
1338
|
+
function es(o) {
|
|
1339
|
+
const e = Yn(o), { HASH256: t, HASH512: n, KDF: s } = o, { secretCoder: r, lengths: i } = e, a = qe("secretKey", i.secretKey, i.publicKey, 32, 32), c = 32, u = 64;
|
|
1323
1340
|
return {
|
|
1324
1341
|
info: { type: "ml-kem" },
|
|
1325
1342
|
lengths: {
|
|
@@ -1329,7 +1346,7 @@ function ts(o) {
|
|
|
1329
1346
|
msgRand: c,
|
|
1330
1347
|
secretKey: a.bytesLen
|
|
1331
1348
|
},
|
|
1332
|
-
keygen: (l =
|
|
1349
|
+
keygen: (l = yt(u)) => {
|
|
1333
1350
|
j(l, u, "seed");
|
|
1334
1351
|
const { publicKey: h, secretKey: p } = e.keygen(l.subarray(0, 32)), d = t(h), b = a.encode([p, h, d, l.subarray(32)]);
|
|
1335
1352
|
return G(p, d), { publicKey: h, secretKey: b };
|
|
@@ -1338,9 +1355,9 @@ function ts(o) {
|
|
|
1338
1355
|
const [h, p] = a.decode(l);
|
|
1339
1356
|
return Uint8Array.from(p);
|
|
1340
1357
|
},
|
|
1341
|
-
encapsulate: (l, h =
|
|
1358
|
+
encapsulate: (l, h = yt(c)) => {
|
|
1342
1359
|
j(l, i.publicKey, "publicKey"), j(h, c, "message");
|
|
1343
|
-
const p = l.subarray(0, 384 * o.K), d = r.encode(r.decode(
|
|
1360
|
+
const p = l.subarray(0, 384 * o.K), d = r.encode(r.decode(Nn(p)));
|
|
1344
1361
|
if (!Je(d, p))
|
|
1345
1362
|
throw G(d), new Error("ML-KEM.encapsulate: wrong publicKey modulus");
|
|
1346
1363
|
G(d);
|
|
@@ -1357,18 +1374,18 @@ function ts(o) {
|
|
|
1357
1374
|
}
|
|
1358
1375
|
};
|
|
1359
1376
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return
|
|
1362
|
-
}
|
|
1363
|
-
const
|
|
1364
|
-
HASH256:
|
|
1365
|
-
HASH512:
|
|
1366
|
-
KDF:
|
|
1367
|
-
XOF:
|
|
1368
|
-
PRF:
|
|
1369
|
-
}, Xe = /* @__PURE__ */
|
|
1370
|
-
...
|
|
1371
|
-
...
|
|
1377
|
+
function ts(o, e, t) {
|
|
1378
|
+
return jt.create({ dkLen: o }).update(e).update(new Uint8Array([t])).digest();
|
|
1379
|
+
}
|
|
1380
|
+
const ns = {
|
|
1381
|
+
HASH256: Hn,
|
|
1382
|
+
HASH512: Pn,
|
|
1383
|
+
KDF: jt,
|
|
1384
|
+
XOF: Qn,
|
|
1385
|
+
PRF: ts
|
|
1386
|
+
}, Xe = /* @__PURE__ */ es({
|
|
1387
|
+
...ns,
|
|
1388
|
+
...Jn[768]
|
|
1372
1389
|
});
|
|
1373
1390
|
class S {
|
|
1374
1391
|
/**
|
|
@@ -1507,9 +1524,17 @@ class S {
|
|
|
1507
1524
|
this.pubkey = this.serializeKey(n), this.privkey = s;
|
|
1508
1525
|
}
|
|
1509
1526
|
serializeKey(e) {
|
|
1510
|
-
|
|
1527
|
+
if (typeof Buffer < "u")
|
|
1528
|
+
return Buffer.from(e).toString("base64");
|
|
1529
|
+
let t = "";
|
|
1530
|
+
const n = 32768;
|
|
1531
|
+
for (let s = 0; s < e.length; s += n)
|
|
1532
|
+
t += String.fromCharCode(...e.subarray(s, s + n));
|
|
1533
|
+
return btoa(t);
|
|
1511
1534
|
}
|
|
1512
1535
|
deserializeKey(e) {
|
|
1536
|
+
if (typeof Buffer < "u")
|
|
1537
|
+
return new Uint8Array(Buffer.from(e, "base64"));
|
|
1513
1538
|
const t = atob(e);
|
|
1514
1539
|
return new Uint8Array(t.length).map((n, s) => t.charCodeAt(s));
|
|
1515
1540
|
}
|
|
@@ -1750,7 +1775,7 @@ class be extends x {
|
|
|
1750
1775
|
super(e, t, n), this.name = "AtomIndexException";
|
|
1751
1776
|
}
|
|
1752
1777
|
}
|
|
1753
|
-
class
|
|
1778
|
+
class ss extends x {
|
|
1754
1779
|
/**
|
|
1755
1780
|
* Class constructor
|
|
1756
1781
|
*
|
|
@@ -1762,7 +1787,7 @@ class rs extends x {
|
|
|
1762
1787
|
super(e, t, n), this.name = "MolecularHashMismatchException";
|
|
1763
1788
|
}
|
|
1764
1789
|
}
|
|
1765
|
-
class
|
|
1790
|
+
class rs extends x {
|
|
1766
1791
|
/**
|
|
1767
1792
|
* Class constructor
|
|
1768
1793
|
*
|
|
@@ -1774,7 +1799,7 @@ class is extends x {
|
|
|
1774
1799
|
super(e, t, n), this.name = "MolecularHashMissingException";
|
|
1775
1800
|
}
|
|
1776
1801
|
}
|
|
1777
|
-
class
|
|
1802
|
+
class wt extends x {
|
|
1778
1803
|
/**
|
|
1779
1804
|
* Class constructor
|
|
1780
1805
|
*
|
|
@@ -1786,7 +1811,7 @@ class bt extends x {
|
|
|
1786
1811
|
super(e, t, n), this.name = "PolicyInvalidException";
|
|
1787
1812
|
}
|
|
1788
1813
|
}
|
|
1789
|
-
class
|
|
1814
|
+
class Jt extends x {
|
|
1790
1815
|
/**
|
|
1791
1816
|
* Class constructor
|
|
1792
1817
|
*
|
|
@@ -1798,7 +1823,7 @@ class zt extends x {
|
|
|
1798
1823
|
super(e, t, n), this.name = "SignatureMalformedException";
|
|
1799
1824
|
}
|
|
1800
1825
|
}
|
|
1801
|
-
class
|
|
1826
|
+
class is extends x {
|
|
1802
1827
|
/**
|
|
1803
1828
|
* Class constructor
|
|
1804
1829
|
*
|
|
@@ -1834,7 +1859,7 @@ class we extends x {
|
|
|
1834
1859
|
super(e, t, n), this.name = "TransferMalformedException";
|
|
1835
1860
|
}
|
|
1836
1861
|
}
|
|
1837
|
-
class
|
|
1862
|
+
class kt extends x {
|
|
1838
1863
|
/**
|
|
1839
1864
|
* @param {string} message
|
|
1840
1865
|
* @param {string|null} fileName
|
|
@@ -1844,7 +1869,7 @@ class wt extends x {
|
|
|
1844
1869
|
super(e, t, n), this.name = "TransferMismatchedException";
|
|
1845
1870
|
}
|
|
1846
1871
|
}
|
|
1847
|
-
class
|
|
1872
|
+
class _t extends x {
|
|
1848
1873
|
/**
|
|
1849
1874
|
* Class constructor
|
|
1850
1875
|
*
|
|
@@ -1856,7 +1881,7 @@ class kt extends x {
|
|
|
1856
1881
|
super(e, t, n), this.name = "TransferRemainderException";
|
|
1857
1882
|
}
|
|
1858
1883
|
}
|
|
1859
|
-
class
|
|
1884
|
+
class os extends x {
|
|
1860
1885
|
/**
|
|
1861
1886
|
* Class constructor
|
|
1862
1887
|
*
|
|
@@ -1914,7 +1939,7 @@ class We extends x {
|
|
|
1914
1939
|
super(e, t, n), this.name = "BatchIdException";
|
|
1915
1940
|
}
|
|
1916
1941
|
}
|
|
1917
|
-
class
|
|
1942
|
+
class St {
|
|
1918
1943
|
constructor(e = {}) {
|
|
1919
1944
|
for (const t in e)
|
|
1920
1945
|
this[`__${t}`] = e[t];
|
|
@@ -2016,7 +2041,7 @@ class _e {
|
|
|
2016
2041
|
* @param {Meta|object} meta
|
|
2017
2042
|
*/
|
|
2018
2043
|
set meta(e) {
|
|
2019
|
-
this.__meta = e instanceof
|
|
2044
|
+
this.__meta = e instanceof St ? e : St.toObject(e);
|
|
2020
2045
|
}
|
|
2021
2046
|
/**
|
|
2022
2047
|
*
|
|
@@ -2263,7 +2288,7 @@ class Ae {
|
|
|
2263
2288
|
*/
|
|
2264
2289
|
constructor(e) {
|
|
2265
2290
|
if (e.molecularHash === null)
|
|
2266
|
-
throw new
|
|
2291
|
+
throw new rs();
|
|
2267
2292
|
if (!e.atoms.length)
|
|
2268
2293
|
throw new oe();
|
|
2269
2294
|
for (const t of e.atoms)
|
|
@@ -2352,10 +2377,10 @@ class Ae {
|
|
|
2352
2377
|
for (const [i, a] of Object.entries(r))
|
|
2353
2378
|
if (!e.includes(i)) {
|
|
2354
2379
|
if (!Object.keys(n).includes(i))
|
|
2355
|
-
throw new
|
|
2380
|
+
throw new wt(`${i} is missing from the meta.`);
|
|
2356
2381
|
for (const c of a)
|
|
2357
2382
|
if (!S.isBundleHash(c) && !["all", "self"].includes(c))
|
|
2358
|
-
throw new
|
|
2383
|
+
throw new wt(`${c} does not correspond to the format of the policy.`);
|
|
2359
2384
|
}
|
|
2360
2385
|
}
|
|
2361
2386
|
}
|
|
@@ -2530,7 +2555,7 @@ class Ae {
|
|
|
2530
2555
|
if (!n && s.isotope === "V" && t.length === 2) {
|
|
2531
2556
|
const a = t[t.length - 1];
|
|
2532
2557
|
if (s.token !== a.token)
|
|
2533
|
-
throw new
|
|
2558
|
+
throw new kt();
|
|
2534
2559
|
if (a.value < 0)
|
|
2535
2560
|
throw new we();
|
|
2536
2561
|
if (Number(s.value) + Number(a.value) !== 0)
|
|
@@ -2546,12 +2571,12 @@ class Ae {
|
|
|
2546
2571
|
if (i = c.value * 1, Number.isNaN(i))
|
|
2547
2572
|
throw new TypeError('Invalid isotope "V" values');
|
|
2548
2573
|
if (c.token !== s.token)
|
|
2549
|
-
throw new
|
|
2574
|
+
throw new kt();
|
|
2550
2575
|
if (a > 0) {
|
|
2551
2576
|
if (i < 0)
|
|
2552
2577
|
throw new we();
|
|
2553
2578
|
if (c.walletAddress === s.walletAddress)
|
|
2554
|
-
throw new
|
|
2579
|
+
throw new os();
|
|
2555
2580
|
}
|
|
2556
2581
|
r += i;
|
|
2557
2582
|
}
|
|
@@ -2564,9 +2589,9 @@ class Ae {
|
|
|
2564
2589
|
if (a < 0)
|
|
2565
2590
|
throw new J();
|
|
2566
2591
|
if (!n && a !== r)
|
|
2567
|
-
throw new
|
|
2592
|
+
throw new _t();
|
|
2568
2593
|
} else if (i !== 0)
|
|
2569
|
-
throw new
|
|
2594
|
+
throw new _t();
|
|
2570
2595
|
return !0;
|
|
2571
2596
|
}
|
|
2572
2597
|
/**
|
|
@@ -2578,7 +2603,7 @@ class Ae {
|
|
|
2578
2603
|
if (this.molecule.molecularHash !== g.hashAtoms({
|
|
2579
2604
|
atoms: this.molecule.atoms
|
|
2580
2605
|
}))
|
|
2581
|
-
throw new
|
|
2606
|
+
throw new ss();
|
|
2582
2607
|
return !0;
|
|
2583
2608
|
}
|
|
2584
2609
|
/**
|
|
@@ -2596,7 +2621,7 @@ class Ae {
|
|
|
2596
2621
|
(p, d) => p + d
|
|
2597
2622
|
);
|
|
2598
2623
|
if (t.length !== 2048 && (t = pn(t), t.length !== 2048))
|
|
2599
|
-
throw new
|
|
2624
|
+
throw new Jt();
|
|
2600
2625
|
const n = Ue(t, 128);
|
|
2601
2626
|
let s = "";
|
|
2602
2627
|
for (const p in n) {
|
|
@@ -2613,7 +2638,7 @@ class Ae {
|
|
|
2613
2638
|
let l = u.walletAddress;
|
|
2614
2639
|
const h = M.get(u.aggregatedMeta(), "signingWallet");
|
|
2615
2640
|
if (h && (l = M.get(JSON.parse(h), "address")), c !== l)
|
|
2616
|
-
throw new
|
|
2641
|
+
throw new is();
|
|
2617
2642
|
return !0;
|
|
2618
2643
|
}
|
|
2619
2644
|
/**
|
|
@@ -2711,7 +2736,7 @@ class ue extends x {
|
|
|
2711
2736
|
super(e, t, n), this.name = "BalanceInsufficientException";
|
|
2712
2737
|
}
|
|
2713
2738
|
}
|
|
2714
|
-
class
|
|
2739
|
+
class $t extends x {
|
|
2715
2740
|
/**
|
|
2716
2741
|
* Class constructor
|
|
2717
2742
|
*
|
|
@@ -2984,7 +3009,7 @@ class V {
|
|
|
2984
3009
|
walletBundle: t = null
|
|
2985
3010
|
}) {
|
|
2986
3011
|
if (e < 0)
|
|
2987
|
-
throw new
|
|
3012
|
+
throw new $t("Molecule::burnToken() - Amount to burn must be positive!");
|
|
2988
3013
|
if (this.sourceWallet.balance - e < 0)
|
|
2989
3014
|
throw new ue();
|
|
2990
3015
|
const n = new S({
|
|
@@ -3022,7 +3047,7 @@ class V {
|
|
|
3022
3047
|
units: t = []
|
|
3023
3048
|
}) {
|
|
3024
3049
|
if (e < 0)
|
|
3025
|
-
throw new
|
|
3050
|
+
throw new $t("Molecule::replenishToken() - Amount to replenish must be positive!");
|
|
3026
3051
|
if (t.length) {
|
|
3027
3052
|
t = S.getTokenUnits(t), this.remainderWallet.tokenUnits = this.sourceWallet.tokenUnits;
|
|
3028
3053
|
for (const n of t)
|
|
@@ -3434,7 +3459,7 @@ class V {
|
|
|
3434
3459
|
let r = s.position;
|
|
3435
3460
|
const i = M.get(s.aggregatedMeta(), "signingWallet");
|
|
3436
3461
|
if (i && (r = M.get(JSON.parse(i), "position")), !r)
|
|
3437
|
-
throw new
|
|
3462
|
+
throw new Jt("Signing wallet must have a position!");
|
|
3438
3463
|
const a = S.generateKey({
|
|
3439
3464
|
secret: this.secret,
|
|
3440
3465
|
token: s.token,
|
|
@@ -4061,7 +4086,7 @@ class N {
|
|
|
4061
4086
|
return {};
|
|
4062
4087
|
}
|
|
4063
4088
|
}
|
|
4064
|
-
class
|
|
4089
|
+
class as extends C {
|
|
4065
4090
|
/**
|
|
4066
4091
|
* Class constructor
|
|
4067
4092
|
*
|
|
@@ -4092,7 +4117,7 @@ class ls extends C {
|
|
|
4092
4117
|
}), e.address = t.address, e.position = t.position, e.bundle = t.bundleHash, e.batchId = t.batchId, e.characters = t.characters, e.pubkey = t.pubkey, e.balance = String(t.amount != null ? t.amount : 0)), e;
|
|
4093
4118
|
}
|
|
4094
4119
|
}
|
|
4095
|
-
class
|
|
4120
|
+
class ls extends N {
|
|
4096
4121
|
/**
|
|
4097
4122
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4098
4123
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4126,13 +4151,13 @@ class cs extends N {
|
|
|
4126
4151
|
* @return {ResponseContinuId}
|
|
4127
4152
|
*/
|
|
4128
4153
|
createResponse(e) {
|
|
4129
|
-
return new
|
|
4154
|
+
return new as({
|
|
4130
4155
|
query: this,
|
|
4131
4156
|
json: e
|
|
4132
4157
|
});
|
|
4133
4158
|
}
|
|
4134
4159
|
}
|
|
4135
|
-
class
|
|
4160
|
+
class cs extends C {
|
|
4136
4161
|
/**
|
|
4137
4162
|
* Class constructor
|
|
4138
4163
|
*
|
|
@@ -4164,7 +4189,7 @@ class us extends C {
|
|
|
4164
4189
|
}), t;
|
|
4165
4190
|
}
|
|
4166
4191
|
}
|
|
4167
|
-
class
|
|
4192
|
+
class us extends N {
|
|
4168
4193
|
/**
|
|
4169
4194
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4170
4195
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4191,7 +4216,7 @@ class hs extends N {
|
|
|
4191
4216
|
* @return {ResponseWalletBundle}
|
|
4192
4217
|
*/
|
|
4193
4218
|
createResponse(e) {
|
|
4194
|
-
return new
|
|
4219
|
+
return new cs({
|
|
4195
4220
|
query: this,
|
|
4196
4221
|
json: e
|
|
4197
4222
|
});
|
|
@@ -4272,7 +4297,7 @@ class Le extends C {
|
|
|
4272
4297
|
return this.getWallets();
|
|
4273
4298
|
}
|
|
4274
4299
|
}
|
|
4275
|
-
class
|
|
4300
|
+
class hs extends N {
|
|
4276
4301
|
/**
|
|
4277
4302
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4278
4303
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4320,7 +4345,7 @@ class ds extends N {
|
|
|
4320
4345
|
});
|
|
4321
4346
|
}
|
|
4322
4347
|
}
|
|
4323
|
-
class
|
|
4348
|
+
class ds extends C {
|
|
4324
4349
|
/**
|
|
4325
4350
|
* Class constructor
|
|
4326
4351
|
*
|
|
@@ -4349,7 +4374,7 @@ class ps extends C {
|
|
|
4349
4374
|
});
|
|
4350
4375
|
}
|
|
4351
4376
|
}
|
|
4352
|
-
class
|
|
4377
|
+
class ps extends N {
|
|
4353
4378
|
/**
|
|
4354
4379
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4355
4380
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4384,13 +4409,13 @@ class fs extends N {
|
|
|
4384
4409
|
* @return {ResponseBalance}
|
|
4385
4410
|
*/
|
|
4386
4411
|
createResponse(e) {
|
|
4387
|
-
return new
|
|
4412
|
+
return new ds({
|
|
4388
4413
|
query: this,
|
|
4389
4414
|
json: e
|
|
4390
4415
|
});
|
|
4391
4416
|
}
|
|
4392
4417
|
}
|
|
4393
|
-
class
|
|
4418
|
+
class fs extends C {
|
|
4394
4419
|
/**
|
|
4395
4420
|
* Class constructor
|
|
4396
4421
|
*
|
|
@@ -4424,7 +4449,7 @@ class ms extends C {
|
|
|
4424
4449
|
return n.instances && (t.instances = n.instances), n.instanceCount && (t.instanceCount = n.instanceCount), n.paginatorInfo && (t.paginatorInfo = n.paginatorInfo), t;
|
|
4425
4450
|
}
|
|
4426
4451
|
}
|
|
4427
|
-
class
|
|
4452
|
+
class At extends N {
|
|
4428
4453
|
/**
|
|
4429
4454
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4430
4455
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4493,7 +4518,7 @@ class $t extends N {
|
|
|
4493
4518
|
* @return {ResponseMetaType}
|
|
4494
4519
|
*/
|
|
4495
4520
|
createResponse(e) {
|
|
4496
|
-
return new
|
|
4521
|
+
return new fs({
|
|
4497
4522
|
query: this,
|
|
4498
4523
|
json: e
|
|
4499
4524
|
});
|
|
@@ -4580,7 +4605,7 @@ class xe extends N {
|
|
|
4580
4605
|
return t.dataKey = "data.Batch", t;
|
|
4581
4606
|
}
|
|
4582
4607
|
}
|
|
4583
|
-
class
|
|
4608
|
+
class ms extends N {
|
|
4584
4609
|
/**
|
|
4585
4610
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4586
4611
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4800,7 +4825,7 @@ class W extends Fe {
|
|
|
4800
4825
|
return this.$__molecule;
|
|
4801
4826
|
}
|
|
4802
4827
|
}
|
|
4803
|
-
class
|
|
4828
|
+
class ys extends D {
|
|
4804
4829
|
/**
|
|
4805
4830
|
* return the authorization key
|
|
4806
4831
|
*
|
|
@@ -4861,7 +4886,7 @@ class gs extends D {
|
|
|
4861
4886
|
return this.payloadKey("key");
|
|
4862
4887
|
}
|
|
4863
4888
|
}
|
|
4864
|
-
class
|
|
4889
|
+
class gs extends W {
|
|
4865
4890
|
/**
|
|
4866
4891
|
*
|
|
4867
4892
|
* @param {object} meta
|
|
@@ -4876,15 +4901,15 @@ class bs extends W {
|
|
|
4876
4901
|
* @return {ResponseRequestAuthorization}
|
|
4877
4902
|
*/
|
|
4878
4903
|
createResponse(e) {
|
|
4879
|
-
return new
|
|
4904
|
+
return new ys({
|
|
4880
4905
|
query: this,
|
|
4881
4906
|
json: e
|
|
4882
4907
|
});
|
|
4883
4908
|
}
|
|
4884
4909
|
}
|
|
4885
|
-
class
|
|
4910
|
+
class bs extends D {
|
|
4886
4911
|
}
|
|
4887
|
-
class
|
|
4912
|
+
class ws extends W {
|
|
4888
4913
|
/**
|
|
4889
4914
|
* @param {Wallet|null} recipientWallet
|
|
4890
4915
|
* @param {number|null} amount
|
|
@@ -4910,15 +4935,15 @@ class ks extends W {
|
|
|
4910
4935
|
* @return {ResponseCreateToken}
|
|
4911
4936
|
*/
|
|
4912
4937
|
createResponse(e) {
|
|
4913
|
-
return new
|
|
4938
|
+
return new bs({
|
|
4914
4939
|
query: this,
|
|
4915
4940
|
json: e
|
|
4916
4941
|
});
|
|
4917
4942
|
}
|
|
4918
4943
|
}
|
|
4919
|
-
class
|
|
4944
|
+
class ks extends D {
|
|
4920
4945
|
}
|
|
4921
|
-
class
|
|
4946
|
+
class _s extends W {
|
|
4922
4947
|
/**
|
|
4923
4948
|
* Fills a Molecule with the appropriate atoms and prepares for broadcast
|
|
4924
4949
|
*
|
|
@@ -4953,13 +4978,13 @@ class Ss extends W {
|
|
|
4953
4978
|
* @return {ResponseRequestTokens}
|
|
4954
4979
|
*/
|
|
4955
4980
|
createResponse(e) {
|
|
4956
|
-
return new
|
|
4981
|
+
return new ks({
|
|
4957
4982
|
query: this,
|
|
4958
4983
|
json: e
|
|
4959
4984
|
});
|
|
4960
4985
|
}
|
|
4961
4986
|
}
|
|
4962
|
-
class
|
|
4987
|
+
class Ss extends D {
|
|
4963
4988
|
/**
|
|
4964
4989
|
* Returns result of the transfer
|
|
4965
4990
|
*
|
|
@@ -4973,7 +4998,7 @@ class $s extends D {
|
|
|
4973
4998
|
return e.reason = typeof t.reason > "u" ? "Invalid response from server" : t.reason, e.status = typeof t.status > "u" ? "rejected" : t.status, e;
|
|
4974
4999
|
}
|
|
4975
5000
|
}
|
|
4976
|
-
class
|
|
5001
|
+
class vt extends W {
|
|
4977
5002
|
/**
|
|
4978
5003
|
* Fills the Molecule with provided wallet and amount data
|
|
4979
5004
|
*
|
|
@@ -5011,15 +5036,15 @@ class At extends W {
|
|
|
5011
5036
|
* @return {ResponseTransferTokens}
|
|
5012
5037
|
*/
|
|
5013
5038
|
createResponse(e) {
|
|
5014
|
-
return new
|
|
5039
|
+
return new Ss({
|
|
5015
5040
|
query: this,
|
|
5016
5041
|
json: e
|
|
5017
5042
|
});
|
|
5018
5043
|
}
|
|
5019
5044
|
}
|
|
5020
|
-
class
|
|
5045
|
+
class $s extends D {
|
|
5021
5046
|
}
|
|
5022
|
-
class
|
|
5047
|
+
class As extends W {
|
|
5023
5048
|
fillMolecule({
|
|
5024
5049
|
type: e,
|
|
5025
5050
|
contact: t,
|
|
@@ -5038,15 +5063,15 @@ class vs extends W {
|
|
|
5038
5063
|
* @return {ResponseCreateIdentifier}
|
|
5039
5064
|
*/
|
|
5040
5065
|
createResponse(e) {
|
|
5041
|
-
return new
|
|
5066
|
+
return new $s({
|
|
5042
5067
|
query: this,
|
|
5043
5068
|
json: e
|
|
5044
5069
|
});
|
|
5045
5070
|
}
|
|
5046
5071
|
}
|
|
5047
|
-
class
|
|
5072
|
+
class vs extends D {
|
|
5048
5073
|
}
|
|
5049
|
-
class
|
|
5074
|
+
class xs extends W {
|
|
5050
5075
|
/**
|
|
5051
5076
|
* Class constructor
|
|
5052
5077
|
*
|
|
@@ -5072,15 +5097,15 @@ class Is extends W {
|
|
|
5072
5097
|
* @return {ResponseClaimShadowWallet}
|
|
5073
5098
|
*/
|
|
5074
5099
|
createResponse(e) {
|
|
5075
|
-
return new
|
|
5100
|
+
return new vs({
|
|
5076
5101
|
query: this,
|
|
5077
5102
|
json: e
|
|
5078
5103
|
});
|
|
5079
5104
|
}
|
|
5080
5105
|
}
|
|
5081
|
-
class
|
|
5106
|
+
class Is extends D {
|
|
5082
5107
|
}
|
|
5083
|
-
class
|
|
5108
|
+
class Ms extends W {
|
|
5084
5109
|
/**
|
|
5085
5110
|
* Fills a molecule with an appropriate metadata atom
|
|
5086
5111
|
*
|
|
@@ -5109,15 +5134,15 @@ class Ts extends W {
|
|
|
5109
5134
|
* @return {ResponseCreateMeta}
|
|
5110
5135
|
*/
|
|
5111
5136
|
createResponse(e) {
|
|
5112
|
-
return new
|
|
5137
|
+
return new Is({
|
|
5113
5138
|
query: this,
|
|
5114
5139
|
json: e
|
|
5115
5140
|
});
|
|
5116
5141
|
}
|
|
5117
5142
|
}
|
|
5118
|
-
class
|
|
5143
|
+
class Ts extends D {
|
|
5119
5144
|
}
|
|
5120
|
-
class
|
|
5145
|
+
class Cs extends W {
|
|
5121
5146
|
/**
|
|
5122
5147
|
* Fills a molecule with a P-isotope peering atom
|
|
5123
5148
|
*
|
|
@@ -5137,15 +5162,15 @@ class Es extends W {
|
|
|
5137
5162
|
* @return {ResponsePeering}
|
|
5138
5163
|
*/
|
|
5139
5164
|
createResponse(e) {
|
|
5140
|
-
return new
|
|
5165
|
+
return new Ts({
|
|
5141
5166
|
query: this,
|
|
5142
5167
|
json: e
|
|
5143
5168
|
});
|
|
5144
5169
|
}
|
|
5145
5170
|
}
|
|
5146
|
-
class
|
|
5171
|
+
class Es extends D {
|
|
5147
5172
|
}
|
|
5148
|
-
class
|
|
5173
|
+
class Os extends W {
|
|
5149
5174
|
/**
|
|
5150
5175
|
* Fills a molecule with an A-isotope append request atom
|
|
5151
5176
|
*
|
|
@@ -5174,13 +5199,13 @@ class Rs extends W {
|
|
|
5174
5199
|
* @return {ResponseAppendRequest}
|
|
5175
5200
|
*/
|
|
5176
5201
|
createResponse(e) {
|
|
5177
|
-
return new
|
|
5202
|
+
return new Es({
|
|
5178
5203
|
query: this,
|
|
5179
5204
|
json: e
|
|
5180
5205
|
});
|
|
5181
5206
|
}
|
|
5182
5207
|
}
|
|
5183
|
-
class
|
|
5208
|
+
class Rs extends C {
|
|
5184
5209
|
/**
|
|
5185
5210
|
* Class constructor
|
|
5186
5211
|
*
|
|
@@ -5214,7 +5239,7 @@ class qs extends C {
|
|
|
5214
5239
|
return M.get(this.data(), "message");
|
|
5215
5240
|
}
|
|
5216
5241
|
}
|
|
5217
|
-
class
|
|
5242
|
+
class qs extends Fe {
|
|
5218
5243
|
/**
|
|
5219
5244
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5220
5245
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5237,15 +5262,15 @@ class Ws extends Fe {
|
|
|
5237
5262
|
* @return {ResponseLinkIdentifier}
|
|
5238
5263
|
*/
|
|
5239
5264
|
createResponse(e) {
|
|
5240
|
-
return new
|
|
5265
|
+
return new Rs({
|
|
5241
5266
|
query: this,
|
|
5242
5267
|
json: e
|
|
5243
5268
|
});
|
|
5244
5269
|
}
|
|
5245
5270
|
}
|
|
5246
|
-
class
|
|
5271
|
+
class Ws extends D {
|
|
5247
5272
|
}
|
|
5248
|
-
class
|
|
5273
|
+
class Us extends W {
|
|
5249
5274
|
fillMolecule(e) {
|
|
5250
5275
|
this.$__molecule.initWalletCreation(e), this.$__molecule.sign({}), this.$__molecule.check();
|
|
5251
5276
|
}
|
|
@@ -5256,13 +5281,13 @@ class Bs extends W {
|
|
|
5256
5281
|
* @return {ResponseCreateWallet}
|
|
5257
5282
|
*/
|
|
5258
5283
|
createResponse(e) {
|
|
5259
|
-
return new
|
|
5284
|
+
return new Ws({
|
|
5260
5285
|
query: this,
|
|
5261
5286
|
json: e
|
|
5262
5287
|
});
|
|
5263
5288
|
}
|
|
5264
5289
|
}
|
|
5265
|
-
class
|
|
5290
|
+
class Bs extends C {
|
|
5266
5291
|
/**
|
|
5267
5292
|
* Class constructor
|
|
5268
5293
|
*
|
|
@@ -5364,7 +5389,7 @@ class Hs extends C {
|
|
|
5364
5389
|
return this.payloadKey("encrypt");
|
|
5365
5390
|
}
|
|
5366
5391
|
}
|
|
5367
|
-
class
|
|
5392
|
+
class Hs extends Fe {
|
|
5368
5393
|
/**
|
|
5369
5394
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5370
5395
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5385,13 +5410,13 @@ class Ps extends Fe {
|
|
|
5385
5410
|
* @return {ResponseRequestAuthorizationGuest}
|
|
5386
5411
|
*/
|
|
5387
5412
|
createResponse(e) {
|
|
5388
|
-
return new
|
|
5413
|
+
return new Bs({
|
|
5389
5414
|
query: this,
|
|
5390
5415
|
json: e
|
|
5391
5416
|
});
|
|
5392
5417
|
}
|
|
5393
5418
|
}
|
|
5394
|
-
class
|
|
5419
|
+
class xt extends x {
|
|
5395
5420
|
/**
|
|
5396
5421
|
* Class constructor
|
|
5397
5422
|
*
|
|
@@ -5403,7 +5428,7 @@ class vt extends x {
|
|
|
5403
5428
|
super(e, t, n), this.name = "WalletShadowException";
|
|
5404
5429
|
}
|
|
5405
5430
|
}
|
|
5406
|
-
class
|
|
5431
|
+
class Ps extends x {
|
|
5407
5432
|
/**
|
|
5408
5433
|
* Class constructor
|
|
5409
5434
|
*
|
|
@@ -5497,7 +5522,7 @@ class Qe {
|
|
|
5497
5522
|
return this.$__variables;
|
|
5498
5523
|
}
|
|
5499
5524
|
}
|
|
5500
|
-
class
|
|
5525
|
+
class Ks extends Qe {
|
|
5501
5526
|
constructor(e) {
|
|
5502
5527
|
super(e), this.$__subscribe = E`
|
|
5503
5528
|
subscription onCreateMolecule ( $bundle: String! ) {
|
|
@@ -5547,7 +5572,7 @@ class Ns extends Qe {
|
|
|
5547
5572
|
`;
|
|
5548
5573
|
}
|
|
5549
5574
|
}
|
|
5550
|
-
class
|
|
5575
|
+
class Ns extends Qe {
|
|
5551
5576
|
constructor(e) {
|
|
5552
5577
|
super(e), this.$__subscribe = E`
|
|
5553
5578
|
subscription onWalletStatus ( $bundle: String!, $token: String! ) {
|
|
@@ -5561,7 +5586,7 @@ class Ls extends Qe {
|
|
|
5561
5586
|
`;
|
|
5562
5587
|
}
|
|
5563
5588
|
}
|
|
5564
|
-
class
|
|
5589
|
+
class Ls extends Qe {
|
|
5565
5590
|
constructor(e) {
|
|
5566
5591
|
super(e), this.$__subscribe = E`
|
|
5567
5592
|
subscription onActiveWallet ( $bundle: String! ) {
|
|
@@ -5604,7 +5629,7 @@ class Fs extends Qe {
|
|
|
5604
5629
|
`;
|
|
5605
5630
|
}
|
|
5606
5631
|
}
|
|
5607
|
-
class
|
|
5632
|
+
class Fs extends Qe {
|
|
5608
5633
|
constructor(e) {
|
|
5609
5634
|
super(e), this.$__subscribe = E`
|
|
5610
5635
|
subscription onActiveUser ( $metaType: String!, $metaId: String! ) {
|
|
@@ -5619,7 +5644,7 @@ class Qs extends Qe {
|
|
|
5619
5644
|
}`;
|
|
5620
5645
|
}
|
|
5621
5646
|
}
|
|
5622
|
-
class
|
|
5647
|
+
class Qs extends C {
|
|
5623
5648
|
/**
|
|
5624
5649
|
* Class constructor
|
|
5625
5650
|
*
|
|
@@ -5637,7 +5662,7 @@ class js extends C {
|
|
|
5637
5662
|
});
|
|
5638
5663
|
}
|
|
5639
5664
|
}
|
|
5640
|
-
class
|
|
5665
|
+
class js extends Fe {
|
|
5641
5666
|
/**
|
|
5642
5667
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5643
5668
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5680,13 +5705,13 @@ class Ds extends Fe {
|
|
|
5680
5705
|
* @return {ResponseActiveSession}
|
|
5681
5706
|
*/
|
|
5682
5707
|
createResponse(e) {
|
|
5683
|
-
return new
|
|
5708
|
+
return new Qs({
|
|
5684
5709
|
query: this,
|
|
5685
5710
|
json: e
|
|
5686
5711
|
});
|
|
5687
5712
|
}
|
|
5688
5713
|
}
|
|
5689
|
-
class
|
|
5714
|
+
class Ds extends C {
|
|
5690
5715
|
/**
|
|
5691
5716
|
* Class constructor
|
|
5692
5717
|
*
|
|
@@ -5715,7 +5740,7 @@ class Vs extends C {
|
|
|
5715
5740
|
return t;
|
|
5716
5741
|
}
|
|
5717
5742
|
}
|
|
5718
|
-
class
|
|
5743
|
+
class Vs extends N {
|
|
5719
5744
|
/**
|
|
5720
5745
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5721
5746
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5737,13 +5762,13 @@ class zs extends N {
|
|
|
5737
5762
|
* @return {ResponseQueryActiveSession}
|
|
5738
5763
|
*/
|
|
5739
5764
|
createResponse(e) {
|
|
5740
|
-
return new
|
|
5765
|
+
return new Ds({
|
|
5741
5766
|
query: this,
|
|
5742
5767
|
json: e
|
|
5743
5768
|
});
|
|
5744
5769
|
}
|
|
5745
5770
|
}
|
|
5746
|
-
class
|
|
5771
|
+
class zs extends N {
|
|
5747
5772
|
/**
|
|
5748
5773
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5749
5774
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5774,7 +5799,7 @@ class Js extends N {
|
|
|
5774
5799
|
});
|
|
5775
5800
|
}
|
|
5776
5801
|
}
|
|
5777
|
-
class
|
|
5802
|
+
class It extends x {
|
|
5778
5803
|
/**
|
|
5779
5804
|
* Class constructor
|
|
5780
5805
|
*
|
|
@@ -5786,7 +5811,7 @@ class xt extends x {
|
|
|
5786
5811
|
super(e, t, n), this.name = "AuthorizationRejectedException";
|
|
5787
5812
|
}
|
|
5788
5813
|
}
|
|
5789
|
-
class
|
|
5814
|
+
class Js extends C {
|
|
5790
5815
|
/**
|
|
5791
5816
|
* Class constructor
|
|
5792
5817
|
*
|
|
@@ -5834,7 +5859,7 @@ class Gs extends C {
|
|
|
5834
5859
|
return t;
|
|
5835
5860
|
}
|
|
5836
5861
|
}
|
|
5837
|
-
class
|
|
5862
|
+
class Mt extends N {
|
|
5838
5863
|
/**
|
|
5839
5864
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5840
5865
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5984,13 +6009,13 @@ class It extends N {
|
|
|
5984
6009
|
* @return {ResponseAtom}
|
|
5985
6010
|
*/
|
|
5986
6011
|
createResponse(e) {
|
|
5987
|
-
return new
|
|
6012
|
+
return new Js({
|
|
5988
6013
|
query: this,
|
|
5989
6014
|
json: e
|
|
5990
6015
|
});
|
|
5991
6016
|
}
|
|
5992
6017
|
}
|
|
5993
|
-
class
|
|
6018
|
+
class Gs extends C {
|
|
5994
6019
|
/**
|
|
5995
6020
|
* Class constructor
|
|
5996
6021
|
*
|
|
@@ -6015,7 +6040,7 @@ class Xs extends C {
|
|
|
6015
6040
|
return e && e.callback ? JSON.parse(e.callback) : null;
|
|
6016
6041
|
}
|
|
6017
6042
|
}
|
|
6018
|
-
class
|
|
6043
|
+
class Xs extends N {
|
|
6019
6044
|
/**
|
|
6020
6045
|
* @param {UrqlClientWrapper} graphQLClient
|
|
6021
6046
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -6041,13 +6066,13 @@ class Zs extends N {
|
|
|
6041
6066
|
* @return {ResponsePolicy}
|
|
6042
6067
|
*/
|
|
6043
6068
|
createResponse(e) {
|
|
6044
|
-
return new
|
|
6069
|
+
return new Gs({
|
|
6045
6070
|
query: this,
|
|
6046
6071
|
json: e
|
|
6047
6072
|
});
|
|
6048
6073
|
}
|
|
6049
6074
|
}
|
|
6050
|
-
class
|
|
6075
|
+
class Zs extends C {
|
|
6051
6076
|
/**
|
|
6052
6077
|
* Class constructor
|
|
6053
6078
|
*
|
|
@@ -6076,7 +6101,7 @@ class Ys extends C {
|
|
|
6076
6101
|
return n.instances && (t.instances = n.instances), n.instanceCount && (t.instanceCount = n.instanceCount), n.paginatorInfo && (t.paginatorInfo = n.paginatorInfo), t;
|
|
6077
6102
|
}
|
|
6078
6103
|
}
|
|
6079
|
-
class
|
|
6104
|
+
class Tt extends N {
|
|
6080
6105
|
/**
|
|
6081
6106
|
* @param {UrqlClientWrapper} graphQLClient
|
|
6082
6107
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -6162,7 +6187,7 @@ class Mt extends N {
|
|
|
6162
6187
|
* @return {ResponseMetaTypeViaAtom}
|
|
6163
6188
|
*/
|
|
6164
6189
|
createResponse(e) {
|
|
6165
|
-
return new
|
|
6190
|
+
return new Zs({
|
|
6166
6191
|
query: this,
|
|
6167
6192
|
json: e
|
|
6168
6193
|
});
|
|
@@ -6268,7 +6293,7 @@ class it extends C {
|
|
|
6268
6293
|
};
|
|
6269
6294
|
}
|
|
6270
6295
|
}
|
|
6271
|
-
class
|
|
6296
|
+
class Ct extends N {
|
|
6272
6297
|
/**
|
|
6273
6298
|
* @param {UrqlClientWrapper} graphQLClient
|
|
6274
6299
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -6381,7 +6406,7 @@ class Tt extends N {
|
|
|
6381
6406
|
});
|
|
6382
6407
|
}
|
|
6383
6408
|
}
|
|
6384
|
-
class
|
|
6409
|
+
class Ys extends C {
|
|
6385
6410
|
/**
|
|
6386
6411
|
* Class constructor
|
|
6387
6412
|
*
|
|
@@ -6417,7 +6442,7 @@ class er extends C {
|
|
|
6417
6442
|
return !e || !Array.isArray(e) || e.length === 0 ? null : e;
|
|
6418
6443
|
}
|
|
6419
6444
|
}
|
|
6420
|
-
class
|
|
6445
|
+
class Et extends N {
|
|
6421
6446
|
/**
|
|
6422
6447
|
* @param {UrqlClientWrapper} graphQLClient
|
|
6423
6448
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -6461,15 +6486,15 @@ class Ct extends N {
|
|
|
6461
6486
|
* @return {ResponseEmbeddingStatus}
|
|
6462
6487
|
*/
|
|
6463
6488
|
createResponse(e) {
|
|
6464
|
-
return new
|
|
6489
|
+
return new Ys({
|
|
6465
6490
|
query: this,
|
|
6466
6491
|
json: e
|
|
6467
6492
|
});
|
|
6468
6493
|
}
|
|
6469
6494
|
}
|
|
6470
|
-
class
|
|
6495
|
+
class er extends D {
|
|
6471
6496
|
}
|
|
6472
|
-
class
|
|
6497
|
+
class tr extends W {
|
|
6473
6498
|
/**
|
|
6474
6499
|
*
|
|
6475
6500
|
* @param {string} metaType
|
|
@@ -6497,13 +6522,13 @@ class nr extends W {
|
|
|
6497
6522
|
* @return {ResponseCreateRule}
|
|
6498
6523
|
*/
|
|
6499
6524
|
createResponse(e) {
|
|
6500
|
-
return new
|
|
6525
|
+
return new er({
|
|
6501
6526
|
query: this,
|
|
6502
6527
|
json: e
|
|
6503
6528
|
});
|
|
6504
6529
|
}
|
|
6505
6530
|
}
|
|
6506
|
-
class
|
|
6531
|
+
class nr extends W {
|
|
6507
6532
|
/**
|
|
6508
6533
|
* Fills the Molecule with provided wallet and amount data
|
|
6509
6534
|
*
|
|
@@ -6520,7 +6545,7 @@ class sr extends W {
|
|
|
6520
6545
|
}), this.$__molecule.sign({}), this.$__molecule.check(this.$__molecule.sourceWallet);
|
|
6521
6546
|
}
|
|
6522
6547
|
}
|
|
6523
|
-
class
|
|
6548
|
+
class sr extends W {
|
|
6524
6549
|
/**
|
|
6525
6550
|
*
|
|
6526
6551
|
* @param recipients
|
|
@@ -6620,10 +6645,10 @@ function Z(o, e) {
|
|
|
6620
6645
|
};
|
|
6621
6646
|
}
|
|
6622
6647
|
}
|
|
6623
|
-
var q = { exclude: [], include: [], logging: !0 },
|
|
6624
|
-
typeof window < "u" && (
|
|
6625
|
-
},
|
|
6626
|
-
return Object.fromEntries(Object.entries(
|
|
6648
|
+
var q = { exclude: [], include: [], logging: !0 }, Gt = {}, rr = { timeout: "true" }, z = function(o, e) {
|
|
6649
|
+
typeof window < "u" && (Gt[o] = e);
|
|
6650
|
+
}, ir = function() {
|
|
6651
|
+
return Object.fromEntries(Object.entries(Gt).filter((function(o) {
|
|
6627
6652
|
var e, t = o[0];
|
|
6628
6653
|
return !(!((e = q?.exclude) === null || e === void 0) && e.includes(t));
|
|
6629
6654
|
})).filter((function(o) {
|
|
@@ -6695,35 +6720,35 @@ function ot(o, e) {
|
|
|
6695
6720
|
return r.toString(16).padStart(2, "0");
|
|
6696
6721
|
})).join("");
|
|
6697
6722
|
}
|
|
6698
|
-
function
|
|
6723
|
+
function or(o, e) {
|
|
6699
6724
|
return new Promise((function(t) {
|
|
6700
6725
|
setTimeout((function() {
|
|
6701
6726
|
return t(e);
|
|
6702
6727
|
}), o);
|
|
6703
6728
|
}));
|
|
6704
6729
|
}
|
|
6705
|
-
function
|
|
6730
|
+
function ar(o, e, t) {
|
|
6706
6731
|
return Promise.all(o.map((function(n) {
|
|
6707
|
-
return Promise.race([n,
|
|
6732
|
+
return Promise.race([n, or(e, t)]);
|
|
6708
6733
|
})));
|
|
6709
6734
|
}
|
|
6710
|
-
var
|
|
6711
|
-
function
|
|
6712
|
-
return
|
|
6735
|
+
var lr = "0.19.1";
|
|
6736
|
+
function cr() {
|
|
6737
|
+
return lr;
|
|
6713
6738
|
}
|
|
6714
|
-
function
|
|
6739
|
+
function Xt() {
|
|
6715
6740
|
return X(this, void 0, void 0, (function() {
|
|
6716
6741
|
var o, e, t, n, s;
|
|
6717
6742
|
return Z(this, (function(r) {
|
|
6718
6743
|
switch (r.label) {
|
|
6719
6744
|
case 0:
|
|
6720
|
-
return r.trys.push([0, 2, , 3]), o =
|
|
6745
|
+
return r.trys.push([0, 2, , 3]), o = ir(), e = Object.keys(o), [4, ar(Object.values(o), q?.timeout || 1e3, rr)];
|
|
6721
6746
|
case 1:
|
|
6722
6747
|
return t = r.sent(), n = t.filter((function(i) {
|
|
6723
6748
|
return i !== void 0;
|
|
6724
6749
|
})), s = {}, n.forEach((function(i, a) {
|
|
6725
6750
|
s[e[a]] = i;
|
|
6726
|
-
})), [2,
|
|
6751
|
+
})), [2, Zt(s, q.exclude || [], q.include || [], "")];
|
|
6727
6752
|
case 2:
|
|
6728
6753
|
throw r.sent();
|
|
6729
6754
|
case 3:
|
|
@@ -6732,7 +6757,7 @@ function Gt() {
|
|
|
6732
6757
|
}));
|
|
6733
6758
|
}));
|
|
6734
6759
|
}
|
|
6735
|
-
function
|
|
6760
|
+
function Zt(o, e, t, n) {
|
|
6736
6761
|
n === void 0 && (n = "");
|
|
6737
6762
|
for (var s = {}, r = function(u, l) {
|
|
6738
6763
|
var h = n + u + ".";
|
|
@@ -6744,7 +6769,7 @@ function Xt(o, e, t, n) {
|
|
|
6744
6769
|
}));
|
|
6745
6770
|
p && !d || (s[u] = l);
|
|
6746
6771
|
} else {
|
|
6747
|
-
var b =
|
|
6772
|
+
var b = Zt(l, e, t, h);
|
|
6748
6773
|
Object.keys(b).length > 0 && (s[u] = b);
|
|
6749
6774
|
}
|
|
6750
6775
|
}, i = 0, a = Object.entries(o); i < a.length; i++) {
|
|
@@ -6753,13 +6778,13 @@ function Xt(o, e, t, n) {
|
|
|
6753
6778
|
}
|
|
6754
6779
|
return s;
|
|
6755
6780
|
}
|
|
6756
|
-
function
|
|
6781
|
+
function ur(o) {
|
|
6757
6782
|
return X(this, void 0, void 0, (function() {
|
|
6758
6783
|
var e, t;
|
|
6759
6784
|
return Z(this, (function(n) {
|
|
6760
6785
|
switch (n.label) {
|
|
6761
6786
|
case 0:
|
|
6762
|
-
return n.trys.push([0, 2, , 3]), [4,
|
|
6787
|
+
return n.trys.push([0, 2, , 3]), [4, Xt()];
|
|
6763
6788
|
case 1:
|
|
6764
6789
|
return e = n.sent(), t = ot(JSON.stringify(e)), Math.random() < 1e-3 && q.logging && (function(s, r) {
|
|
6765
6790
|
X(this, void 0, void 0, (function() {
|
|
@@ -6767,7 +6792,7 @@ function hr(o) {
|
|
|
6767
6792
|
return Z(this, (function(c) {
|
|
6768
6793
|
switch (c.label) {
|
|
6769
6794
|
case 0:
|
|
6770
|
-
if (i = "https://logging.thumbmarkjs.com/v1/log", a = { thumbmark: s, components: r, version:
|
|
6795
|
+
if (i = "https://logging.thumbmarkjs.com/v1/log", a = { thumbmark: s, components: r, version: cr() }, sessionStorage.getItem("_tmjs_l")) return [3, 4];
|
|
6771
6796
|
sessionStorage.setItem("_tmjs_l", "1"), c.label = 1;
|
|
6772
6797
|
case 1:
|
|
6773
6798
|
return c.trys.push([1, 3, , 4]), [4, fetch(i, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(a) })];
|
|
@@ -6788,19 +6813,19 @@ function hr(o) {
|
|
|
6788
6813
|
}));
|
|
6789
6814
|
}));
|
|
6790
6815
|
}
|
|
6791
|
-
function
|
|
6816
|
+
function hr(o) {
|
|
6792
6817
|
for (var e = 0, t = 0; t < o.length; ++t) e += Math.abs(o[t]);
|
|
6793
6818
|
return e;
|
|
6794
6819
|
}
|
|
6795
|
-
function
|
|
6820
|
+
function Yt(o, e, t) {
|
|
6796
6821
|
for (var n = [], s = 0; s < o[0].data.length; s++) {
|
|
6797
6822
|
for (var r = [], i = 0; i < o.length; i++) r.push(o[i].data[s]);
|
|
6798
|
-
n.push(
|
|
6823
|
+
n.push(dr(r));
|
|
6799
6824
|
}
|
|
6800
6825
|
var a = new Uint8ClampedArray(n);
|
|
6801
6826
|
return new ImageData(a, e, t);
|
|
6802
6827
|
}
|
|
6803
|
-
function
|
|
6828
|
+
function dr(o) {
|
|
6804
6829
|
if (o.length === 0) return 0;
|
|
6805
6830
|
for (var e = {}, t = 0, n = o; t < n.length; t++)
|
|
6806
6831
|
e[r = n[t]] = (e[r] || 0) + 1;
|
|
@@ -6825,7 +6850,7 @@ z("audio", (function() {
|
|
|
6825
6850
|
r.frequency.value = 1e3;
|
|
6826
6851
|
var i, a = n.createDynamicsCompressor();
|
|
6827
6852
|
a.threshold.value = -50, a.knee.value = 40, a.ratio.value = 12, a.attack.value = 0, a.release.value = 0.2, r.connect(a), a.connect(n.destination), r.start(), n.oncomplete = function(c) {
|
|
6828
|
-
i = c.renderedBuffer.getChannelData(0), e({ sampleHash:
|
|
6853
|
+
i = c.renderedBuffer.getChannelData(0), e({ sampleHash: hr(i), oscillator: r.type, maxChannels: n.destination.maxChannelCount, channelCountMode: s.channelCountMode });
|
|
6829
6854
|
}, n.startRendering();
|
|
6830
6855
|
} catch (c) {
|
|
6831
6856
|
console.error("Error creating audio fingerprint:", c), t(c);
|
|
@@ -6834,14 +6859,14 @@ z("audio", (function() {
|
|
|
6834
6859
|
}));
|
|
6835
6860
|
}));
|
|
6836
6861
|
}));
|
|
6837
|
-
var
|
|
6862
|
+
var pr = Ie().name !== "SamsungBrowser" ? 1 : 3, Ot = 280, Rt = 20;
|
|
6838
6863
|
Ie().name != "Firefox" && z("canvas", (function() {
|
|
6839
6864
|
return document.createElement("canvas").getContext("2d"), new Promise((function(o) {
|
|
6840
|
-
var e = Array.from({ length:
|
|
6865
|
+
var e = Array.from({ length: pr }, (function() {
|
|
6841
6866
|
return (function() {
|
|
6842
6867
|
var t = document.createElement("canvas"), n = t.getContext("2d");
|
|
6843
6868
|
if (!n) return new ImageData(1, 1);
|
|
6844
|
-
t.width =
|
|
6869
|
+
t.width = Ot, t.height = Rt;
|
|
6845
6870
|
var s = n.createLinearGradient(0, 0, t.width, t.height);
|
|
6846
6871
|
s.addColorStop(0, "red"), s.addColorStop(0.16666666666666666, "orange"), s.addColorStop(0.3333333333333333, "yellow"), s.addColorStop(0.5, "green"), s.addColorStop(0.6666666666666666, "blue"), s.addColorStop(0.8333333333333334, "indigo"), s.addColorStop(1, "violet"), n.fillStyle = s, n.fillRect(0, 0, t.width, t.height);
|
|
6847
6872
|
var r = "Random Text WMwmil10Oo";
|
|
@@ -6850,15 +6875,15 @@ Ie().name != "Firefox" && z("canvas", (function() {
|
|
|
6850
6875
|
return i;
|
|
6851
6876
|
})();
|
|
6852
6877
|
}));
|
|
6853
|
-
o({ commonImageDataHash: ot(
|
|
6878
|
+
o({ commonImageDataHash: ot(Yt(e, Ot, Rt).data.toString()).toString() });
|
|
6854
6879
|
}));
|
|
6855
6880
|
}));
|
|
6856
|
-
var et,
|
|
6857
|
-
function
|
|
6881
|
+
var et, fr = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"], mr = ["monospace", "sans-serif", "serif"];
|
|
6882
|
+
function qt(o, e) {
|
|
6858
6883
|
if (!o) throw new Error("Canvas context not supported");
|
|
6859
6884
|
return o.font, o.font = "72px ".concat(e), o.measureText("WwMmLli0Oo").width;
|
|
6860
6885
|
}
|
|
6861
|
-
function
|
|
6886
|
+
function yr() {
|
|
6862
6887
|
var o, e = document.createElement("canvas"), t = (o = e.getContext("webgl")) !== null && o !== void 0 ? o : e.getContext("experimental-webgl");
|
|
6863
6888
|
if (t && "getParameter" in t) try {
|
|
6864
6889
|
var n = (t.getParameter(t.VENDOR) || "").toString(), s = (t.getParameter(t.RENDERER) || "").toString(), r = { vendor: n, renderer: s, version: (t.getParameter(t.VERSION) || "").toString(), shadingLanguageVersion: (t.getParameter(t.SHADING_LANGUAGE_VERSION) || "").toString() };
|
|
@@ -6874,11 +6899,11 @@ function gr() {
|
|
|
6874
6899
|
}
|
|
6875
6900
|
return "undefined";
|
|
6876
6901
|
}
|
|
6877
|
-
function
|
|
6902
|
+
function gr() {
|
|
6878
6903
|
var o = new Float32Array(1), e = new Uint8Array(o.buffer);
|
|
6879
6904
|
return o[0] = 1 / 0, o[0] = o[0] - o[0], e[3];
|
|
6880
6905
|
}
|
|
6881
|
-
function
|
|
6906
|
+
function br(o, e) {
|
|
6882
6907
|
var t = {};
|
|
6883
6908
|
return e.forEach((function(n) {
|
|
6884
6909
|
var s = (function(r) {
|
|
@@ -6900,7 +6925,7 @@ function wr(o, e) {
|
|
|
6900
6925
|
s && (t[n] = s);
|
|
6901
6926
|
})), t;
|
|
6902
6927
|
}
|
|
6903
|
-
function
|
|
6928
|
+
function wr() {
|
|
6904
6929
|
var o = [], e = { "prefers-contrast": ["high", "more", "low", "less", "forced", "no-preference"], "any-hover": ["hover", "none"], "any-pointer": ["none", "coarse", "fine"], pointer: ["none", "coarse", "fine"], hover: ["hover", "none"], update: ["fast", "slow"], "inverted-colors": ["inverted", "none"], "prefers-reduced-motion": ["reduce", "no-preference"], "prefers-reduced-transparency": ["reduce", "no-preference"], scripting: ["none", "initial-only", "enabled"], "forced-colors": ["active", "none"] };
|
|
6905
6930
|
return Object.keys(e).forEach((function(t) {
|
|
6906
6931
|
e[t].forEach((function(n) {
|
|
@@ -6908,7 +6933,7 @@ function kr() {
|
|
|
6908
6933
|
}));
|
|
6909
6934
|
})), o;
|
|
6910
6935
|
}
|
|
6911
|
-
function
|
|
6936
|
+
function kr() {
|
|
6912
6937
|
if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
|
|
6913
6938
|
for (var o = window.ApplePaySession.supportsVersion, e = 15; e > 0; e--) if (o(e)) return e;
|
|
6914
6939
|
} catch {
|
|
@@ -6946,10 +6971,10 @@ Ie().name != "Firefox" && z("fonts", (function() {
|
|
|
6946
6971
|
return X(o, void 0, void 0, (function() {
|
|
6947
6972
|
var r, i, a, c;
|
|
6948
6973
|
return Z(this, (function(u) {
|
|
6949
|
-
return r = s.createElement("canvas"), i = r.getContext("2d"), a =
|
|
6950
|
-
return
|
|
6951
|
-
})), c = {},
|
|
6952
|
-
var h =
|
|
6974
|
+
return r = s.createElement("canvas"), i = r.getContext("2d"), a = mr.map((function(l) {
|
|
6975
|
+
return qt(i, l);
|
|
6976
|
+
})), c = {}, fr.forEach((function(l) {
|
|
6977
|
+
var h = qt(i, l);
|
|
6953
6978
|
a.includes(h) || (c[l] = h);
|
|
6954
6979
|
})), e(c), [2];
|
|
6955
6980
|
}));
|
|
@@ -6962,7 +6987,7 @@ Ie().name != "Firefox" && z("fonts", (function() {
|
|
|
6962
6987
|
})), z("hardware", (function() {
|
|
6963
6988
|
return new Promise((function(o, e) {
|
|
6964
6989
|
var t = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, n = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
6965
|
-
o({ videocard:
|
|
6990
|
+
o({ videocard: yr(), architecture: gr(), deviceMemory: t.toString() || "undefined", jsHeapSizeLimit: n.jsHeapSizeLimit || 0 });
|
|
6966
6991
|
}));
|
|
6967
6992
|
})), z("locales", (function() {
|
|
6968
6993
|
return new Promise((function(o) {
|
|
@@ -6998,7 +7023,7 @@ Ie().name != "Firefox" && z("fonts", (function() {
|
|
|
6998
7023
|
}));
|
|
6999
7024
|
})();
|
|
7000
7025
|
})), [2, Promise.all(o).then((function(t) {
|
|
7001
|
-
return
|
|
7026
|
+
return br(t, et);
|
|
7002
7027
|
}))];
|
|
7003
7028
|
}));
|
|
7004
7029
|
}));
|
|
@@ -7013,15 +7038,15 @@ Ie().name != "Firefox" && z("fonts", (function() {
|
|
|
7013
7038
|
}));
|
|
7014
7039
|
})), z("screen", (function() {
|
|
7015
7040
|
return new Promise((function(o) {
|
|
7016
|
-
o({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches:
|
|
7041
|
+
o({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: wr() });
|
|
7017
7042
|
}));
|
|
7018
7043
|
})), z("system", (function() {
|
|
7019
7044
|
return new Promise((function(o) {
|
|
7020
7045
|
var e = Ie();
|
|
7021
|
-
o({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: e.name, version: e.version }, applePayVersion:
|
|
7046
|
+
o({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: e.name, version: e.version }, applePayVersion: kr() });
|
|
7022
7047
|
}));
|
|
7023
7048
|
}));
|
|
7024
|
-
var K,
|
|
7049
|
+
var K, _r = Ie().name !== "SamsungBrowser" ? 1 : 3, y = null;
|
|
7025
7050
|
z("webgl", (function() {
|
|
7026
7051
|
return X(this, void 0, void 0, (function() {
|
|
7027
7052
|
var o;
|
|
@@ -7029,7 +7054,7 @@ z("webgl", (function() {
|
|
|
7029
7054
|
typeof document < "u" && ((K = document.createElement("canvas")).width = 200, K.height = 100, y = K.getContext("webgl"));
|
|
7030
7055
|
try {
|
|
7031
7056
|
if (!y) throw new Error("WebGL not supported");
|
|
7032
|
-
return o = Array.from({ length:
|
|
7057
|
+
return o = Array.from({ length: _r }, (function() {
|
|
7033
7058
|
return (function() {
|
|
7034
7059
|
try {
|
|
7035
7060
|
if (!y) throw new Error("WebGL not supported");
|
|
@@ -7067,7 +7092,7 @@ z("webgl", (function() {
|
|
|
7067
7092
|
y && (y.bindBuffer(y.ARRAY_BUFFER, null), y.useProgram(null), y.viewport(0, 0, y.drawingBufferWidth, y.drawingBufferHeight), y.clearColor(0, 0, 0, 0));
|
|
7068
7093
|
}
|
|
7069
7094
|
})();
|
|
7070
|
-
})), [2, { commonImageHash: ot(
|
|
7095
|
+
})), [2, { commonImageHash: ot(Yt(o, K.width, K.height).data.toString()).toString() }];
|
|
7071
7096
|
} catch {
|
|
7072
7097
|
return [2, { webgl: "unsupported" }];
|
|
7073
7098
|
}
|
|
@@ -7087,31 +7112,31 @@ z("math", (function() {
|
|
|
7087
7112
|
}));
|
|
7088
7113
|
}));
|
|
7089
7114
|
}));
|
|
7090
|
-
const
|
|
7091
|
-
function
|
|
7115
|
+
const Sr = "query ( $Hash: String! ) { CipherHash ( Hash: $Hash ) { hash } }";
|
|
7116
|
+
function $r(o) {
|
|
7092
7117
|
const e = (o || "").match(/\b(query|mutation|subscription)\b/i), t = e ? e[1].toLowerCase() : "query", n = (o || "").indexOf("{"), s = n >= 0 ? o.slice(n + 1).match(/[A-Za-z_][A-Za-z0-9_]*/) : null;
|
|
7093
7118
|
return { type: t, name: s ? s[0] : "" };
|
|
7094
7119
|
}
|
|
7095
|
-
class
|
|
7120
|
+
class Ar {
|
|
7096
7121
|
constructor({ serverUri: e, socket: t = null, encrypt: n = !1 }) {
|
|
7097
7122
|
this.$__client = this.createUrqlClient({ serverUri: e, socket: t, encrypt: n }), this.$__authToken = "", this.$__pubkey = null, this.$__wallet = null, this.serverUri = e, this.soketi = t, this.cipherLink = !!n, this.$__subscriptionManager = /* @__PURE__ */ new Map();
|
|
7098
7123
|
}
|
|
7099
7124
|
createUrqlClient({ serverUri: e, socket: t, encrypt: n }) {
|
|
7100
|
-
const s = [
|
|
7125
|
+
const s = [tn, nn];
|
|
7101
7126
|
if (t && t.socketUri) {
|
|
7102
|
-
const r =
|
|
7127
|
+
const r = on({
|
|
7103
7128
|
url: t.socketUri,
|
|
7104
7129
|
connectionParams: () => ({
|
|
7105
7130
|
authToken: this.$__authToken
|
|
7106
7131
|
})
|
|
7107
7132
|
});
|
|
7108
|
-
s.push(
|
|
7133
|
+
s.push(sn({
|
|
7109
7134
|
forwardSubscription: (i) => ({
|
|
7110
7135
|
subscribe: (a) => ({ unsubscribe: r.subscribe(i, a) })
|
|
7111
7136
|
})
|
|
7112
7137
|
}));
|
|
7113
7138
|
}
|
|
7114
|
-
return
|
|
7139
|
+
return rn({
|
|
7115
7140
|
url: e,
|
|
7116
7141
|
exchanges: s,
|
|
7117
7142
|
// PQ-transport Phase E: when encryption is on, route fetch through the CipherHash
|
|
@@ -7140,7 +7165,7 @@ class vr {
|
|
|
7140
7165
|
} catch {
|
|
7141
7166
|
return !1;
|
|
7142
7167
|
}
|
|
7143
|
-
const { type: n, name: s } =
|
|
7168
|
+
const { type: n, name: s } = $r(t.query);
|
|
7144
7169
|
return !(n === "query" && (s === "__schema" || s === "ContinuId") || n === "mutation" && s === "AccessToken" || n === "mutation" && s === "ProposeMolecule" && (t.variables && t.variables.molecule && t.variables.molecule.atoms && t.variables.molecule.atoms[0] && t.variables.molecule.atoms[0].isotope) === "U");
|
|
7145
7170
|
}
|
|
7146
7171
|
/**
|
|
@@ -7153,7 +7178,7 @@ class vr {
|
|
|
7153
7178
|
let r = !1, i = t;
|
|
7154
7179
|
if (n && s && t && typeof t.body == "string" && this.shouldEncrypt(t.body)) {
|
|
7155
7180
|
const d = await n.encryptStringML768(t.body, s);
|
|
7156
|
-
i = { ...t, body: JSON.stringify({ query:
|
|
7181
|
+
i = { ...t, body: JSON.stringify({ query: Sr, variables: { Hash: d } }) }, r = !0;
|
|
7157
7182
|
}
|
|
7158
7183
|
const a = await fetch(e, i);
|
|
7159
7184
|
if (!r)
|
|
@@ -7217,12 +7242,12 @@ class vr {
|
|
|
7217
7242
|
return this.formatResponse(i);
|
|
7218
7243
|
}
|
|
7219
7244
|
subscribe(e, t) {
|
|
7220
|
-
const { query: n, variables: s, operationName: r } = e, i =
|
|
7245
|
+
const { query: n, variables: s, operationName: r } = e, i = an(
|
|
7221
7246
|
this.$__client.subscription(n, s),
|
|
7222
|
-
|
|
7247
|
+
ln((a) => {
|
|
7223
7248
|
t(this.formatResponse(a));
|
|
7224
7249
|
}),
|
|
7225
|
-
|
|
7250
|
+
cn(() => {
|
|
7226
7251
|
})
|
|
7227
7252
|
);
|
|
7228
7253
|
return this.$__subscriptionManager.set(r, i), {
|
|
@@ -7344,7 +7369,7 @@ class Or {
|
|
|
7344
7369
|
const u = this.$__uris[c];
|
|
7345
7370
|
this.$__authTokenObjects[u] = null;
|
|
7346
7371
|
}
|
|
7347
|
-
this.log("info", `KnishIOClient::initialize() - Initializing new Knish.IO client session for SDK version ${r}...`), this.$__client = s || new
|
|
7372
|
+
this.log("info", `KnishIOClient::initialize() - Initializing new Knish.IO client session for SDK version ${r}...`), this.$__client = s || new Ar({
|
|
7348
7373
|
socket: {
|
|
7349
7374
|
socketUri: null,
|
|
7350
7375
|
appKey: "knishio",
|
|
@@ -7543,10 +7568,10 @@ class Or {
|
|
|
7543
7568
|
* @returns {Promise<string>} A promise that resolves to the device fingerprint as a string.
|
|
7544
7569
|
*/
|
|
7545
7570
|
getFingerprint() {
|
|
7546
|
-
return
|
|
7571
|
+
return ur();
|
|
7547
7572
|
}
|
|
7548
7573
|
getFingerprintData() {
|
|
7549
|
-
return
|
|
7574
|
+
return Xt();
|
|
7550
7575
|
}
|
|
7551
7576
|
/**
|
|
7552
7577
|
* Retrieves this session's wallet used for signing the next Molecule
|
|
@@ -7708,7 +7733,7 @@ class Or {
|
|
|
7708
7733
|
bundle: t = null,
|
|
7709
7734
|
type: n = "regular"
|
|
7710
7735
|
}) {
|
|
7711
|
-
const s = this.createQuery(
|
|
7736
|
+
const s = this.createQuery(ps);
|
|
7712
7737
|
return this.executeQuery(s, {
|
|
7713
7738
|
bundleHash: t || this.getBundle(),
|
|
7714
7739
|
token: e,
|
|
@@ -7746,7 +7771,7 @@ class Or {
|
|
|
7746
7771
|
bundle: e,
|
|
7747
7772
|
closure: t
|
|
7748
7773
|
}) {
|
|
7749
|
-
return await this.createSubscribe(
|
|
7774
|
+
return await this.createSubscribe(Ks).execute({
|
|
7750
7775
|
variables: {
|
|
7751
7776
|
bundle: e || this.getBundle()
|
|
7752
7777
|
},
|
|
@@ -7768,7 +7793,7 @@ class Or {
|
|
|
7768
7793
|
}) {
|
|
7769
7794
|
if (!t)
|
|
7770
7795
|
throw new Y(`${this.constructor.name}::subscribeWalletStatus() - Token parameter is required!`);
|
|
7771
|
-
return this.createSubscribe(
|
|
7796
|
+
return this.createSubscribe(Ns).execute({
|
|
7772
7797
|
variables: {
|
|
7773
7798
|
bundle: e || this.getBundle(),
|
|
7774
7799
|
token: t
|
|
@@ -7787,7 +7812,7 @@ class Or {
|
|
|
7787
7812
|
bundle: e,
|
|
7788
7813
|
closure: t
|
|
7789
7814
|
}) {
|
|
7790
|
-
return this.createSubscribe(
|
|
7815
|
+
return this.createSubscribe(Ls).execute({
|
|
7791
7816
|
variables: {
|
|
7792
7817
|
bundle: e || this.getBundle()
|
|
7793
7818
|
},
|
|
@@ -7807,7 +7832,7 @@ class Or {
|
|
|
7807
7832
|
metaId: t,
|
|
7808
7833
|
closure: n
|
|
7809
7834
|
}) {
|
|
7810
|
-
return this.createSubscribe(
|
|
7835
|
+
return this.createSubscribe(Fs).execute({
|
|
7811
7836
|
variables: {
|
|
7812
7837
|
metaType: e,
|
|
7813
7838
|
metaId: t
|
|
@@ -7866,7 +7891,7 @@ class Or {
|
|
|
7866
7891
|
}) {
|
|
7867
7892
|
this.log("info", `KnishIOClient::queryMeta() - Querying metaType: ${e}, metaId: ${t}...`);
|
|
7868
7893
|
let f, m;
|
|
7869
|
-
return p ? (f = this.createQuery(
|
|
7894
|
+
return p ? (f = this.createQuery(Ct), m = Ct.createVariables({
|
|
7870
7895
|
metaType: e,
|
|
7871
7896
|
metaId: t,
|
|
7872
7897
|
key: n,
|
|
@@ -7879,7 +7904,7 @@ class Or {
|
|
|
7879
7904
|
keys: b,
|
|
7880
7905
|
atomValues: A,
|
|
7881
7906
|
cellSlug: this.getCellSlug()
|
|
7882
|
-
})) : h ? (f = this.createQuery(
|
|
7907
|
+
})) : h ? (f = this.createQuery(Tt), m = Tt.createVariables({
|
|
7883
7908
|
metaType: e,
|
|
7884
7909
|
metaId: t,
|
|
7885
7910
|
key: n,
|
|
@@ -7892,7 +7917,7 @@ class Or {
|
|
|
7892
7917
|
keys: b,
|
|
7893
7918
|
atomValues: A,
|
|
7894
7919
|
cellSlug: this.getCellSlug()
|
|
7895
|
-
})) : (f = this.createQuery(
|
|
7920
|
+
})) : (f = this.createQuery(At), m = At.createVariables({
|
|
7896
7921
|
metaType: e,
|
|
7897
7922
|
metaId: t,
|
|
7898
7923
|
key: n,
|
|
@@ -7961,7 +7986,7 @@ class Or {
|
|
|
7961
7986
|
}) {
|
|
7962
7987
|
if (this.log("info", `KnishIOClient::queryEmbeddingStatus() - Checking embedding status for metaType: ${e || "(bulk)"}...`), !await this.hasQueryField("embeddingStatus"))
|
|
7963
7988
|
return this.log("warn", "KnishIOClient::queryEmbeddingStatus() - Server does not support embeddingStatus query. Returning null."), null;
|
|
7964
|
-
const r = this.createQuery(
|
|
7989
|
+
const r = this.createQuery(Et), i = Et.createVariables({ metaType: e, metaId: t, instances: n });
|
|
7965
7990
|
return this.executeQuery(r, i);
|
|
7966
7991
|
}
|
|
7967
7992
|
/**
|
|
@@ -7989,7 +8014,7 @@ class Or {
|
|
|
7989
8014
|
batchId: e
|
|
7990
8015
|
}) {
|
|
7991
8016
|
this.log("info", `KnishIOClient::queryBatchHistory() - Querying cascading meta instances for batchId: ${e}...`);
|
|
7992
|
-
const t = this.createQuery(
|
|
8017
|
+
const t = this.createQuery(ms);
|
|
7993
8018
|
return await this.executeQuery(t, {
|
|
7994
8019
|
batchId: e
|
|
7995
8020
|
});
|
|
@@ -8062,8 +8087,8 @@ class Or {
|
|
|
8062
8087
|
}
|
|
8063
8088
|
}) {
|
|
8064
8089
|
this.log("info", "KnishIOClient::queryAtom() - Querying atom instances");
|
|
8065
|
-
const ce = this.createQuery(
|
|
8066
|
-
return await this.executeQuery(ce,
|
|
8090
|
+
const ce = this.createQuery(Mt);
|
|
8091
|
+
return await this.executeQuery(ce, Mt.createVariables({
|
|
8067
8092
|
molecularHashes: e,
|
|
8068
8093
|
molecularHash: t,
|
|
8069
8094
|
bundleHashes: n,
|
|
@@ -8106,7 +8131,7 @@ class Or {
|
|
|
8106
8131
|
secret: this.getSecret(),
|
|
8107
8132
|
token: e
|
|
8108
8133
|
}), n = await this.createMoleculeMutation({
|
|
8109
|
-
mutationClass:
|
|
8134
|
+
mutationClass: Us
|
|
8110
8135
|
});
|
|
8111
8136
|
return n.fillMolecule(t), await this.executeQuery(n);
|
|
8112
8137
|
}
|
|
@@ -8123,7 +8148,7 @@ class Or {
|
|
|
8123
8148
|
metaType: t,
|
|
8124
8149
|
metaId: n
|
|
8125
8150
|
}) {
|
|
8126
|
-
const s = this.createQuery(
|
|
8151
|
+
const s = this.createQuery(Vs);
|
|
8127
8152
|
return await this.executeQuery(s, {
|
|
8128
8153
|
bundleHash: e,
|
|
8129
8154
|
metaType: t,
|
|
@@ -8156,7 +8181,7 @@ class Or {
|
|
|
8156
8181
|
timeZone: c,
|
|
8157
8182
|
json: u = {}
|
|
8158
8183
|
}) {
|
|
8159
|
-
const l = this.createQuery(
|
|
8184
|
+
const l = this.createQuery(js);
|
|
8160
8185
|
return await this.executeQuery(l, {
|
|
8161
8186
|
bundleHash: e,
|
|
8162
8187
|
metaType: t,
|
|
@@ -8194,7 +8219,7 @@ class Or {
|
|
|
8194
8219
|
const i = M.get(n || {}, "fungibility");
|
|
8195
8220
|
if (i === "stackable" && (n.batchId = s || Be({})), ["nonfungible", "stackable"].includes(i) && r.length > 0) {
|
|
8196
8221
|
if (M.get(n || {}, "decimals") > 0)
|
|
8197
|
-
throw new
|
|
8222
|
+
throw new Ps();
|
|
8198
8223
|
if (t > 0)
|
|
8199
8224
|
throw new ke();
|
|
8200
8225
|
t = r.length, n.splittable = 1, n.decimals = 0, n.tokenUnits = JSON.stringify(r);
|
|
@@ -8205,7 +8230,7 @@ class Or {
|
|
|
8205
8230
|
token: e,
|
|
8206
8231
|
batchId: s
|
|
8207
8232
|
}), c = await this.createMoleculeMutation({
|
|
8208
|
-
mutationClass:
|
|
8233
|
+
mutationClass: ws
|
|
8209
8234
|
});
|
|
8210
8235
|
return c.fillMolecule({
|
|
8211
8236
|
recipientWallet: a,
|
|
@@ -8230,7 +8255,7 @@ class Or {
|
|
|
8230
8255
|
}) {
|
|
8231
8256
|
const r = await this.createMoleculeMutation(
|
|
8232
8257
|
{
|
|
8233
|
-
mutationClass:
|
|
8258
|
+
mutationClass: tr,
|
|
8234
8259
|
molecule: await this.createMolecule({
|
|
8235
8260
|
secret: this.getSecret()
|
|
8236
8261
|
})
|
|
@@ -8260,7 +8285,7 @@ class Or {
|
|
|
8260
8285
|
}) {
|
|
8261
8286
|
const r = await this.createMoleculeMutation(
|
|
8262
8287
|
{
|
|
8263
|
-
mutationClass:
|
|
8288
|
+
mutationClass: Ms,
|
|
8264
8289
|
molecule: await this.createMolecule({
|
|
8265
8290
|
secret: this.getSecret()
|
|
8266
8291
|
})
|
|
@@ -8283,7 +8308,7 @@ class Or {
|
|
|
8283
8308
|
host: e
|
|
8284
8309
|
}) {
|
|
8285
8310
|
const t = await this.createMoleculeMutation({
|
|
8286
|
-
mutationClass:
|
|
8311
|
+
mutationClass: Cs,
|
|
8287
8312
|
molecule: await this.createMolecule({
|
|
8288
8313
|
secret: this.getSecret()
|
|
8289
8314
|
})
|
|
@@ -8308,7 +8333,7 @@ class Or {
|
|
|
8308
8333
|
meta: s = {}
|
|
8309
8334
|
}) {
|
|
8310
8335
|
const r = await this.createMoleculeMutation({
|
|
8311
|
-
mutationClass:
|
|
8336
|
+
mutationClass: Os,
|
|
8312
8337
|
molecule: await this.createMolecule({
|
|
8313
8338
|
secret: this.getSecret()
|
|
8314
8339
|
})
|
|
@@ -8334,7 +8359,7 @@ class Or {
|
|
|
8334
8359
|
code: n
|
|
8335
8360
|
}) {
|
|
8336
8361
|
const s = await this.createMoleculeMutation({
|
|
8337
|
-
mutationClass:
|
|
8362
|
+
mutationClass: As
|
|
8338
8363
|
});
|
|
8339
8364
|
return s.fillMolecule({
|
|
8340
8365
|
type: e,
|
|
@@ -8353,7 +8378,7 @@ class Or {
|
|
|
8353
8378
|
type: e,
|
|
8354
8379
|
contact: t
|
|
8355
8380
|
}) {
|
|
8356
|
-
const n = this.createQuery(
|
|
8381
|
+
const n = this.createQuery(qs);
|
|
8357
8382
|
return await this.executeQuery(n, {
|
|
8358
8383
|
bundle: this.getBundle(),
|
|
8359
8384
|
type: e,
|
|
@@ -8400,7 +8425,7 @@ class Or {
|
|
|
8400
8425
|
metaType: e,
|
|
8401
8426
|
metaId: t
|
|
8402
8427
|
}) {
|
|
8403
|
-
const n = this.createQuery(
|
|
8428
|
+
const n = this.createQuery(Xs);
|
|
8404
8429
|
return await this.executeQuery(n, {
|
|
8405
8430
|
metaType: e,
|
|
8406
8431
|
metaId: t
|
|
@@ -8422,7 +8447,7 @@ class Or {
|
|
|
8422
8447
|
unspent: n = !0
|
|
8423
8448
|
}) {
|
|
8424
8449
|
this.log("info", `KnishIOClient::queryWallets() - Querying wallets${e ? ` for ${e}` : ""}...`);
|
|
8425
|
-
const s = this.createQuery(
|
|
8450
|
+
const s = this.createQuery(hs);
|
|
8426
8451
|
return this.executeQuery(s, {
|
|
8427
8452
|
bundleHash: e || this.getBundle(),
|
|
8428
8453
|
token: t,
|
|
@@ -8444,7 +8469,7 @@ class Or {
|
|
|
8444
8469
|
raw: n = !1
|
|
8445
8470
|
}) {
|
|
8446
8471
|
this.log("info", `KnishIOClient::queryBundle() - Querying wallet bundle metadata${e ? ` for ${e}` : ""}...`), e || (e = this.getBundle()), typeof e == "string" && (e = [e]);
|
|
8447
|
-
const s = this.createQuery(
|
|
8472
|
+
const s = this.createQuery(us);
|
|
8448
8473
|
return this.executeQuery(s, { bundleHashes: e }).then((r) => n ? r : r.payload());
|
|
8449
8474
|
}
|
|
8450
8475
|
/**
|
|
@@ -8456,7 +8481,7 @@ class Or {
|
|
|
8456
8481
|
async queryContinuId({
|
|
8457
8482
|
bundle: e
|
|
8458
8483
|
}) {
|
|
8459
|
-
const t = this.createQuery(
|
|
8484
|
+
const t = this.createQuery(ls);
|
|
8460
8485
|
return this.executeQuery(t, {
|
|
8461
8486
|
bundle: e
|
|
8462
8487
|
});
|
|
@@ -8488,7 +8513,7 @@ class Or {
|
|
|
8488
8513
|
}) {
|
|
8489
8514
|
let a, c;
|
|
8490
8515
|
r = r || {};
|
|
8491
|
-
const u = this.createQuery(
|
|
8516
|
+
const u = this.createQuery(zs), l = await this.executeQuery(u, {
|
|
8492
8517
|
slug: e
|
|
8493
8518
|
}), h = M.get(l.data(), "0.fungibility") === "stackable";
|
|
8494
8519
|
if (!h && i !== null)
|
|
@@ -8503,7 +8528,7 @@ class Or {
|
|
|
8503
8528
|
token: e
|
|
8504
8529
|
})), t instanceof S && (a = "wallet", r.position = t.position, r.bundle = t.bundle, c = t.address)) : (a = "walletBundle", c = this.getBundle());
|
|
8505
8530
|
const p = await this.createMoleculeMutation({
|
|
8506
|
-
mutationClass:
|
|
8531
|
+
mutationClass: _s
|
|
8507
8532
|
});
|
|
8508
8533
|
return p.fillMolecule({
|
|
8509
8534
|
token: e,
|
|
@@ -8529,7 +8554,7 @@ class Or {
|
|
|
8529
8554
|
molecule: n = null
|
|
8530
8555
|
}) {
|
|
8531
8556
|
const s = await this.createMoleculeMutation({
|
|
8532
|
-
mutationClass:
|
|
8557
|
+
mutationClass: xs,
|
|
8533
8558
|
molecule: n
|
|
8534
8559
|
});
|
|
8535
8560
|
return s.fillMolecule({
|
|
@@ -8550,10 +8575,10 @@ class Or {
|
|
|
8550
8575
|
}) {
|
|
8551
8576
|
const t = await this.queryWallets({ token: e });
|
|
8552
8577
|
if (!t || !Array.isArray(t))
|
|
8553
|
-
throw new
|
|
8578
|
+
throw new xt();
|
|
8554
8579
|
t.forEach((s) => {
|
|
8555
8580
|
if (!s.isShadow())
|
|
8556
|
-
throw new
|
|
8581
|
+
throw new xt();
|
|
8557
8582
|
});
|
|
8558
8583
|
const n = [];
|
|
8559
8584
|
for (const s of t)
|
|
@@ -8614,7 +8639,7 @@ class Or {
|
|
|
8614
8639
|
sourceWallet: i,
|
|
8615
8640
|
remainderWallet: c
|
|
8616
8641
|
}), l = await this.createMoleculeMutation({
|
|
8617
|
-
mutationClass:
|
|
8642
|
+
mutationClass: vt,
|
|
8618
8643
|
molecule: u
|
|
8619
8644
|
});
|
|
8620
8645
|
return l.fillMolecule({
|
|
@@ -8678,7 +8703,7 @@ class Or {
|
|
|
8678
8703
|
sourceWallet: n,
|
|
8679
8704
|
remainderWallet: a
|
|
8680
8705
|
}), u = await this.createMoleculeMutation({
|
|
8681
|
-
mutationClass:
|
|
8706
|
+
mutationClass: vt,
|
|
8682
8707
|
molecule: c
|
|
8683
8708
|
});
|
|
8684
8709
|
return u.fillMoleculeMulti({
|
|
@@ -8711,7 +8736,7 @@ class Or {
|
|
|
8711
8736
|
sourceWallet: s,
|
|
8712
8737
|
remainderWallet: r
|
|
8713
8738
|
}), a = await this.createMoleculeMutation({
|
|
8714
|
-
mutationClass:
|
|
8739
|
+
mutationClass: nr,
|
|
8715
8740
|
molecule: i
|
|
8716
8741
|
});
|
|
8717
8742
|
return a.fillMolecule({
|
|
@@ -8744,7 +8769,7 @@ class Or {
|
|
|
8744
8769
|
sourceWallet: n,
|
|
8745
8770
|
remainderWallet: r
|
|
8746
8771
|
}), a = await this.createMoleculeMutation({
|
|
8747
|
-
mutationClass:
|
|
8772
|
+
mutationClass: sr,
|
|
8748
8773
|
molecule: i
|
|
8749
8774
|
}), c = {};
|
|
8750
8775
|
return c[this.getBundle()] = t, a.fillMolecule({
|
|
@@ -8890,7 +8915,7 @@ class Or {
|
|
|
8890
8915
|
const n = new S({
|
|
8891
8916
|
secret: tt(await this.getFingerprint()),
|
|
8892
8917
|
token: "AUTH"
|
|
8893
|
-
}), s = await this.createQuery(
|
|
8918
|
+
}), s = await this.createQuery(Hs), r = {
|
|
8894
8919
|
cellSlug: e,
|
|
8895
8920
|
pubkey: n.pubkey,
|
|
8896
8921
|
encrypt: t
|
|
@@ -8904,7 +8929,7 @@ class Or {
|
|
|
8904
8929
|
}, n);
|
|
8905
8930
|
this.setAuthToken(a);
|
|
8906
8931
|
} else
|
|
8907
|
-
throw new
|
|
8932
|
+
throw new It(`KnishIOClient::requestGuestAuthToken() - Authorization attempt rejected by ledger. Reason: ${i.reason()}`);
|
|
8908
8933
|
return i;
|
|
8909
8934
|
}
|
|
8910
8935
|
/**
|
|
@@ -8926,7 +8951,7 @@ class Or {
|
|
|
8926
8951
|
secret: e,
|
|
8927
8952
|
sourceWallet: n
|
|
8928
8953
|
}), r = await this.createMoleculeMutation({
|
|
8929
|
-
mutationClass:
|
|
8954
|
+
mutationClass: gs,
|
|
8930
8955
|
molecule: s
|
|
8931
8956
|
}), i = { encrypt: t ? "true" : "false" };
|
|
8932
8957
|
n.pubkey && (i.walletPubkey = n.pubkey), r.fillMolecule({ meta: i });
|
|
@@ -8940,7 +8965,7 @@ class Or {
|
|
|
8940
8965
|
}, n);
|
|
8941
8966
|
this.setAuthToken(c);
|
|
8942
8967
|
} else
|
|
8943
|
-
throw new
|
|
8968
|
+
throw new It(`KnishIOClient::requestProfileAuthToken() - Authorization attempt rejected by ledger. Reason: ${a.reason()}`);
|
|
8944
8969
|
return a;
|
|
8945
8970
|
}
|
|
8946
8971
|
/**
|
|
@@ -9087,7 +9112,7 @@ export {
|
|
|
9087
9112
|
P as AtomMeta,
|
|
9088
9113
|
oe as AtomsMissingException,
|
|
9089
9114
|
ve as AuthToken,
|
|
9090
|
-
|
|
9115
|
+
It as AuthorizationRejectedException,
|
|
9091
9116
|
ue as BalanceInsufficientException,
|
|
9092
9117
|
We as BatchIdException,
|
|
9093
9118
|
Ae as CheckMolecule,
|
|
@@ -9098,95 +9123,95 @@ export {
|
|
|
9098
9123
|
Or as KnishIOClient,
|
|
9099
9124
|
he as Meta,
|
|
9100
9125
|
H as MetaMissingException,
|
|
9101
|
-
|
|
9102
|
-
|
|
9126
|
+
ss as MolecularHashMismatchException,
|
|
9127
|
+
rs as MolecularHashMissingException,
|
|
9103
9128
|
V as Molecule,
|
|
9104
9129
|
Fe as Mutation,
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9130
|
+
js as MutationActiveSession,
|
|
9131
|
+
Os as MutationAppendRequest,
|
|
9132
|
+
xs as MutationClaimShadowWallet,
|
|
9133
|
+
As as MutationCreateIdentifier,
|
|
9134
|
+
Ms as MutationCreateMeta,
|
|
9135
|
+
tr as MutationCreateRule,
|
|
9136
|
+
ws as MutationCreateToken,
|
|
9137
|
+
Us as MutationCreateWallet,
|
|
9138
|
+
nr as MutationDepositBufferToken,
|
|
9139
|
+
qs as MutationLinkIdentifier,
|
|
9140
|
+
Cs as MutationPeering,
|
|
9116
9141
|
W as MutationProposeMolecule,
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9142
|
+
gs as MutationRequestAuthorization,
|
|
9143
|
+
Hs as MutationRequestAuthorizationGuest,
|
|
9144
|
+
_s as MutationRequestTokens,
|
|
9145
|
+
vt as MutationTransferTokens,
|
|
9146
|
+
sr as MutationWithdrawBufferToken,
|
|
9147
|
+
$t as NegativeAmountException,
|
|
9148
|
+
wt as PolicyInvalidException,
|
|
9124
9149
|
st as PolicyMeta,
|
|
9125
9150
|
N as Query,
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9151
|
+
Vs as QueryActiveSession,
|
|
9152
|
+
Mt as QueryAtom,
|
|
9153
|
+
ps as QueryBalance,
|
|
9129
9154
|
xe as QueryBatch,
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9155
|
+
ms as QueryBatchHistory,
|
|
9156
|
+
ls as QueryContinuId,
|
|
9157
|
+
Et as QueryEmbeddingStatus,
|
|
9158
|
+
At as QueryMetaType,
|
|
9159
|
+
Tt as QueryMetaTypeViaAtom,
|
|
9160
|
+
Ct as QueryMetaTypeViaMolecule,
|
|
9161
|
+
Xs as QueryPolicy,
|
|
9162
|
+
zs as QueryToken,
|
|
9163
|
+
us as QueryWalletBundle,
|
|
9164
|
+
hs as QueryWalletList,
|
|
9140
9165
|
C as Response,
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9166
|
+
Qs as ResponseActiveSession,
|
|
9167
|
+
Es as ResponseAppendRequest,
|
|
9168
|
+
Js as ResponseAtom,
|
|
9144
9169
|
Rr as ResponseAuthorizationGuest,
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9170
|
+
ds as ResponseBalance,
|
|
9171
|
+
vs as ResponseClaimShadowWallet,
|
|
9172
|
+
as as ResponseContinuId,
|
|
9173
|
+
$s as ResponseCreateIdentifier,
|
|
9174
|
+
Is as ResponseCreateMeta,
|
|
9175
|
+
er as ResponseCreateRule,
|
|
9176
|
+
bs as ResponseCreateToken,
|
|
9177
|
+
Ws as ResponseCreateWallet,
|
|
9178
|
+
Ys as ResponseEmbeddingStatus,
|
|
9179
|
+
Rs as ResponseLinkIdentifier,
|
|
9180
|
+
fs as ResponseMetaType,
|
|
9181
|
+
Zs as ResponseMetaTypeViaAtom,
|
|
9157
9182
|
it as ResponseMetaTypeViaMolecule,
|
|
9158
|
-
|
|
9159
|
-
|
|
9183
|
+
Ts as ResponsePeering,
|
|
9184
|
+
Gs as ResponsePolicy,
|
|
9160
9185
|
D as ResponseProposeMolecule,
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9186
|
+
Ds as ResponseQueryActiveSession,
|
|
9187
|
+
ys as ResponseRequestAuthorization,
|
|
9188
|
+
Bs as ResponseRequestAuthorizationGuest,
|
|
9189
|
+
ks as ResponseRequestTokens,
|
|
9190
|
+
Ss as ResponseTransferTokens,
|
|
9191
|
+
cs as ResponseWalletBundle,
|
|
9167
9192
|
Le as ResponseWalletList,
|
|
9168
|
-
|
|
9169
|
-
|
|
9193
|
+
Jt as SignatureMalformedException,
|
|
9194
|
+
is as SignatureMismatchException,
|
|
9170
9195
|
ke as StackableUnitAmountException,
|
|
9171
|
-
|
|
9196
|
+
Ps as StackableUnitDecimalsException,
|
|
9172
9197
|
pe as TokenUnit,
|
|
9173
9198
|
J as TransferBalanceException,
|
|
9174
9199
|
we as TransferMalformedException,
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9200
|
+
kt as TransferMismatchedException,
|
|
9201
|
+
_t as TransferRemainderException,
|
|
9202
|
+
os as TransferToSelfException,
|
|
9178
9203
|
Ee as TransferUnbalancedException,
|
|
9179
9204
|
Pe as UnauthenticatedException,
|
|
9180
9205
|
S as Wallet,
|
|
9181
|
-
|
|
9206
|
+
xt as WalletShadowException,
|
|
9182
9207
|
se as WrongTokenTypeException,
|
|
9183
9208
|
pn as base64ToHex,
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9209
|
+
at as bufferToHexString,
|
|
9210
|
+
un as charsetBaseConvert,
|
|
9211
|
+
Cr as chunkArray,
|
|
9187
9212
|
Ue as chunkSubstr,
|
|
9188
|
-
|
|
9189
|
-
|
|
9213
|
+
mn as deepCloning,
|
|
9214
|
+
yn as diff,
|
|
9190
9215
|
Be as generateBatchId,
|
|
9191
9216
|
de as generateBundleHash,
|
|
9192
9217
|
tt as generateSecret,
|