zigap-utils 3.0.1 → 3.0.2
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/index.es.js +359 -359
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -2,9 +2,9 @@ var pf = Object.defineProperty;
|
|
|
2
2
|
var mf = (e, t, r) => t in e ? pf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var on = (e, t, r) => mf(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import * as bf from "react";
|
|
5
|
-
import Br, { useState as
|
|
5
|
+
import Br, { useState as Ue, useEffect as Ze } from "react";
|
|
6
6
|
import Nr from "styled-components";
|
|
7
|
-
var
|
|
7
|
+
var Ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
8
|
function Jn(e) {
|
|
9
9
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
10
|
}
|
|
@@ -24,7 +24,7 @@ function zd(e) {
|
|
|
24
24
|
} });
|
|
25
25
|
}), r;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var $a, yo = { exports: {} }, ni = {}, Zi = {};
|
|
28
28
|
const yf = zd(bf);
|
|
29
29
|
/**
|
|
30
30
|
* @license React
|
|
@@ -37,8 +37,8 @@ const yf = zd(bf);
|
|
|
37
37
|
*/
|
|
38
38
|
var qa;
|
|
39
39
|
process.env.NODE_ENV === "production" ? yo.exports = function() {
|
|
40
|
-
if (
|
|
41
|
-
|
|
40
|
+
if ($a) return ni;
|
|
41
|
+
$a = 1;
|
|
42
42
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
43
43
|
function r(n, i, s) {
|
|
44
44
|
var a = null;
|
|
@@ -98,8 +98,8 @@ process.env.NODE_ENV === "production" ? yo.exports = function() {
|
|
|
98
98
|
j = !0;
|
|
99
99
|
}
|
|
100
100
|
if (j) {
|
|
101
|
-
var Z = (j = console).error,
|
|
102
|
-
return Z.call(j, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
101
|
+
var Z = (j = console).error, $ = typeof Symbol == "function" && Symbol.toStringTag && N[Symbol.toStringTag] || N.constructor.name || "Object";
|
|
102
|
+
return Z.call(j, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", $), t(N);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
function n(N) {
|
|
@@ -119,10 +119,10 @@ process.env.NODE_ENV === "production" ? yo.exports = function() {
|
|
|
119
119
|
var N = e(this.type);
|
|
120
120
|
return u[N] || (u[N] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), (N = this.props.ref) !== void 0 ? N : null;
|
|
121
121
|
}
|
|
122
|
-
function a(N, j, Z,
|
|
122
|
+
function a(N, j, Z, $, V, H, D, G) {
|
|
123
123
|
var Et, ot = j.children;
|
|
124
|
-
if (ot !== void 0) if (
|
|
125
|
-
for (
|
|
124
|
+
if (ot !== void 0) if ($) if (g(ot)) {
|
|
125
|
+
for ($ = 0; $ < ot.length; $++) o(ot[$]);
|
|
126
126
|
Object.freeze && Object.freeze(ot);
|
|
127
127
|
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
128
128
|
else o(ot);
|
|
@@ -131,12 +131,12 @@ process.env.NODE_ENV === "production" ? yo.exports = function() {
|
|
|
131
131
|
var mt = Object.keys(j).filter(function(lt) {
|
|
132
132
|
return lt !== "key";
|
|
133
133
|
});
|
|
134
|
-
|
|
134
|
+
$ = 0 < mt.length ? "{key: someKey, " + mt.join(": ..., ") + ": ...}" : "{key: someKey}", P[ot + $] || (mt = 0 < mt.length ? "{" + mt.join(": ..., ") + ": ...}" : "{}", console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
135
135
|
let props = %s;
|
|
136
136
|
<%s {...props} />
|
|
137
137
|
React keys must be passed directly to JSX without using spread:
|
|
138
138
|
let props = %s;
|
|
139
|
-
<%s key={someKey} {...props} />`,
|
|
139
|
+
<%s key={someKey} {...props} />`, $, ot, mt, ot), P[ot + $] = !0);
|
|
140
140
|
}
|
|
141
141
|
if (ot = null, Z !== void 0 && (r(Z), ot = "" + Z), function(lt) {
|
|
142
142
|
if (p.call(lt, "key")) {
|
|
@@ -144,7 +144,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
144
144
|
if (kt && kt.isReactWarning) return !1;
|
|
145
145
|
}
|
|
146
146
|
return lt.key !== void 0;
|
|
147
|
-
}(j) && (r(j.key), ot = "" + j.key), "key" in j) for (var
|
|
147
|
+
}(j) && (r(j.key), ot = "" + j.key), "key" in j) for (var Ut in Z = {}, j) Ut !== "key" && (Z[Ut] = j[Ut]);
|
|
148
148
|
else Z = j;
|
|
149
149
|
return ot && function(lt, kt) {
|
|
150
150
|
function Ft() {
|
|
@@ -163,16 +163,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
163
163
|
}, u = {}, y = (d = { "react-stack-bottom-frame": function(N) {
|
|
164
164
|
return N();
|
|
165
165
|
} })["react-stack-bottom-frame"].bind(d, i)(), w = m(n(i)), P = {};
|
|
166
|
-
Zi.Fragment = _, Zi.jsx = function(N, j, Z,
|
|
166
|
+
Zi.Fragment = _, Zi.jsx = function(N, j, Z, $, V) {
|
|
167
167
|
var H = 1e4 > f.recentlyCreatedOwnerStacks++;
|
|
168
168
|
return a(N, j, Z, !1, 0, V, H ? Error("react-stack-top-frame") : y, H ? m(n(N)) : w);
|
|
169
|
-
}, Zi.jsxs = function(N, j, Z,
|
|
169
|
+
}, Zi.jsxs = function(N, j, Z, $, V) {
|
|
170
170
|
var H = 1e4 > f.recentlyCreatedOwnerStacks++;
|
|
171
171
|
return a(N, j, Z, !0, 0, V, H ? Error("react-stack-top-frame") : y, H ? m(n(N)) : w);
|
|
172
172
|
};
|
|
173
173
|
}()), Zi);
|
|
174
|
-
var Dt = yo.exports,
|
|
175
|
-
|
|
174
|
+
var Dt = yo.exports, $d = { exports: {} };
|
|
175
|
+
$d.exports = function() {
|
|
176
176
|
var e = 1e3, t = 6e4, r = 36e5, n = "millisecond", i = "second", s = "minute", a = "hour", o = "day", c = "week", d = "month", h = "quarter", l = "year", _ = "date", v = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, x = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(u) {
|
|
177
177
|
var y = ["th", "st", "nd", "rd"], w = u % 100;
|
|
178
178
|
return "[" + u + (y[(w - 20) % 10] || y[w] || y[0]) + "]";
|
|
@@ -205,8 +205,8 @@ Ud.exports = function() {
|
|
|
205
205
|
var Z = y.split("-");
|
|
206
206
|
if (!N && Z.length > 1) return u(Z[0]);
|
|
207
207
|
} else {
|
|
208
|
-
var
|
|
209
|
-
E[
|
|
208
|
+
var $ = y.name;
|
|
209
|
+
E[$] = y, N = $;
|
|
210
210
|
}
|
|
211
211
|
return !P && N && (O = N), N || !P && O;
|
|
212
212
|
}, f = function(u, y) {
|
|
@@ -231,8 +231,8 @@ Ud.exports = function() {
|
|
|
231
231
|
if (typeof N == "string" && !/Z$/i.test(N)) {
|
|
232
232
|
var Z = N.match(A);
|
|
233
233
|
if (Z) {
|
|
234
|
-
var
|
|
235
|
-
return j ? new Date(Date.UTC(Z[1],
|
|
234
|
+
var $ = Z[2] - 1 || 0, V = (Z[7] || "0").substring(0, 3);
|
|
235
|
+
return j ? new Date(Date.UTC(Z[1], $, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, V)) : new Date(Z[1], $, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, V);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
return new Date(N);
|
|
@@ -258,20 +258,20 @@ Ud.exports = function() {
|
|
|
258
258
|
}, y.valueOf = function() {
|
|
259
259
|
return this.$d.getTime();
|
|
260
260
|
}, y.startOf = function(w, P) {
|
|
261
|
-
var N = this, j = !!p.u(P) || P, Z = p.p(w),
|
|
262
|
-
var kt = p.w(N.$u ? Date.UTC(N.$y, lt,
|
|
261
|
+
var N = this, j = !!p.u(P) || P, Z = p.p(w), $ = function(Ut, lt) {
|
|
262
|
+
var kt = p.w(N.$u ? Date.UTC(N.$y, lt, Ut) : new Date(N.$y, lt, Ut), N);
|
|
263
263
|
return j ? kt : kt.endOf(o);
|
|
264
|
-
}, V = function(
|
|
265
|
-
return p.w(N.toDate()[
|
|
264
|
+
}, V = function(Ut, lt) {
|
|
265
|
+
return p.w(N.toDate()[Ut].apply(N.toDate("s"), (j ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(lt)), N);
|
|
266
266
|
}, H = this.$W, D = this.$M, G = this.$D, Et = "set" + (this.$u ? "UTC" : "");
|
|
267
267
|
switch (Z) {
|
|
268
268
|
case l:
|
|
269
|
-
return j ?
|
|
269
|
+
return j ? $(1, 0) : $(31, 11);
|
|
270
270
|
case d:
|
|
271
|
-
return j ?
|
|
271
|
+
return j ? $(1, D) : $(0, D + 1);
|
|
272
272
|
case c:
|
|
273
273
|
var ot = this.$locale().weekStart || 0, mt = (H < ot ? H + 7 : H) - ot;
|
|
274
|
-
return
|
|
274
|
+
return $(j ? G - mt : G + (6 - mt), D);
|
|
275
275
|
case o:
|
|
276
276
|
case _:
|
|
277
277
|
return V(Et + "Hours", 0);
|
|
@@ -287,11 +287,11 @@ Ud.exports = function() {
|
|
|
287
287
|
}, y.endOf = function(w) {
|
|
288
288
|
return this.startOf(w, !1);
|
|
289
289
|
}, y.$set = function(w, P) {
|
|
290
|
-
var N, j = p.p(w), Z = "set" + (this.$u ? "UTC" : ""),
|
|
290
|
+
var N, j = p.p(w), Z = "set" + (this.$u ? "UTC" : ""), $ = (N = {}, N[o] = Z + "Date", N[_] = Z + "Date", N[d] = Z + "Month", N[l] = Z + "FullYear", N[a] = Z + "Hours", N[s] = Z + "Minutes", N[i] = Z + "Seconds", N[n] = Z + "Milliseconds", N)[j], V = j === o ? this.$D + (P - this.$W) : P;
|
|
291
291
|
if (j === d || j === l) {
|
|
292
292
|
var H = this.clone().set(_, 1);
|
|
293
|
-
H.$d[
|
|
294
|
-
} else
|
|
293
|
+
H.$d[$](V), H.init(), this.$d = H.set(_, Math.min(this.$D, H.daysInMonth())).$d;
|
|
294
|
+
} else $ && this.$d[$](V);
|
|
295
295
|
return this.init(), this;
|
|
296
296
|
}, y.set = function(w, P) {
|
|
297
297
|
return this.clone().$set(w, P);
|
|
@@ -300,14 +300,14 @@ Ud.exports = function() {
|
|
|
300
300
|
}, y.add = function(w, P) {
|
|
301
301
|
var N, j = this;
|
|
302
302
|
w = Number(w);
|
|
303
|
-
var Z = p.p(P),
|
|
303
|
+
var Z = p.p(P), $ = function(D) {
|
|
304
304
|
var G = f(j);
|
|
305
305
|
return p.w(G.date(G.date() + Math.round(D * w)), j);
|
|
306
306
|
};
|
|
307
307
|
if (Z === d) return this.set(d, this.$M + w);
|
|
308
308
|
if (Z === l) return this.set(l, this.$y + w);
|
|
309
|
-
if (Z === o) return
|
|
310
|
-
if (Z === c) return
|
|
309
|
+
if (Z === o) return $(1);
|
|
310
|
+
if (Z === c) return $(7);
|
|
311
311
|
var V = (N = {}, N[s] = t, N[a] = r, N[i] = e, N)[Z] || 1, H = this.$d.getTime() + w * V;
|
|
312
312
|
return p.w(H, this);
|
|
313
313
|
}, y.subtract = function(w, P) {
|
|
@@ -315,11 +315,11 @@ Ud.exports = function() {
|
|
|
315
315
|
}, y.format = function(w) {
|
|
316
316
|
var P = this, N = this.$locale();
|
|
317
317
|
if (!this.isValid()) return N.invalidDate || v;
|
|
318
|
-
var j = w || "YYYY-MM-DDTHH:mm:ssZ", Z = p.z(this),
|
|
318
|
+
var j = w || "YYYY-MM-DDTHH:mm:ssZ", Z = p.z(this), $ = this.$H, V = this.$m, H = this.$M, D = N.weekdays, G = N.months, Et = N.meridiem, ot = function(lt, kt, Ft, Lt) {
|
|
319
319
|
return lt && (lt[kt] || lt(P, j)) || Ft[kt].slice(0, Lt);
|
|
320
320
|
}, mt = function(lt) {
|
|
321
|
-
return p.s(
|
|
322
|
-
},
|
|
321
|
+
return p.s($ % 12 || 12, lt, "0");
|
|
322
|
+
}, Ut = Et || function(lt, kt, Ft) {
|
|
323
323
|
var Lt = lt < 12 ? "AM" : "PM";
|
|
324
324
|
return Ft ? Lt.toLowerCase() : Lt;
|
|
325
325
|
};
|
|
@@ -351,17 +351,17 @@ Ud.exports = function() {
|
|
|
351
351
|
case "dddd":
|
|
352
352
|
return D[P.$W];
|
|
353
353
|
case "H":
|
|
354
|
-
return String(
|
|
354
|
+
return String($);
|
|
355
355
|
case "HH":
|
|
356
|
-
return p.s(
|
|
356
|
+
return p.s($, 2, "0");
|
|
357
357
|
case "h":
|
|
358
358
|
return mt(1);
|
|
359
359
|
case "hh":
|
|
360
360
|
return mt(2);
|
|
361
361
|
case "a":
|
|
362
|
-
return
|
|
362
|
+
return Ut($, V, !0);
|
|
363
363
|
case "A":
|
|
364
|
-
return
|
|
364
|
+
return Ut($, V, !1);
|
|
365
365
|
case "m":
|
|
366
366
|
return String(V);
|
|
367
367
|
case "mm":
|
|
@@ -381,10 +381,10 @@ Ud.exports = function() {
|
|
|
381
381
|
}, y.utcOffset = function() {
|
|
382
382
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
383
383
|
}, y.diff = function(w, P, N) {
|
|
384
|
-
var j, Z = this,
|
|
384
|
+
var j, Z = this, $ = p.p(P), V = f(w), H = (V.utcOffset() - this.utcOffset()) * t, D = this - V, G = function() {
|
|
385
385
|
return p.m(Z, V);
|
|
386
386
|
};
|
|
387
|
-
switch (
|
|
387
|
+
switch ($) {
|
|
388
388
|
case l:
|
|
389
389
|
j = G() / 12;
|
|
390
390
|
break;
|
|
@@ -443,10 +443,10 @@ Ud.exports = function() {
|
|
|
443
443
|
return f(1e3 * u);
|
|
444
444
|
}, f.en = E[O], f.Ls = E, f.p = {}, f;
|
|
445
445
|
}();
|
|
446
|
-
const mi = Jn(
|
|
447
|
-
var dn,
|
|
446
|
+
const mi = Jn($d.exports);
|
|
447
|
+
var dn, Ua, gf = Object.defineProperty, ds = Object.getOwnPropertySymbols, qd = Object.prototype.hasOwnProperty, Ud = Object.prototype.propertyIsEnumerable, Ha = (e, t, r) => t in e ? gf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Da = (e, t) => {
|
|
448
448
|
for (var r in t || (t = {})) qd.call(t, r) && Ha(e, r, t[r]);
|
|
449
|
-
if (ds) for (var r of ds(t))
|
|
449
|
+
if (ds) for (var r of ds(t)) Ud.call(t, r) && Ha(e, r, t[r]);
|
|
450
450
|
return e;
|
|
451
451
|
};
|
|
452
452
|
((e) => {
|
|
@@ -787,7 +787,7 @@ var dn, $a, gf = Object.defineProperty, ds = Object.getOwnPropertySymbols, qd =
|
|
|
787
787
|
};
|
|
788
788
|
let r = t;
|
|
789
789
|
r.LOW = new t(0, 1), r.MEDIUM = new t(1, 0), r.QUARTILE = new t(2, 3), r.HIGH = new t(3, 2), e.Ecc = r;
|
|
790
|
-
})((
|
|
790
|
+
})((Ua = dn || (dn = {})).QrCode || (Ua.QrCode = {})), ((e) => {
|
|
791
791
|
((t) => {
|
|
792
792
|
const r = class {
|
|
793
793
|
constructor(i, s) {
|
|
@@ -819,7 +819,7 @@ function Xn(e) {
|
|
|
819
819
|
const t = e, { value: r, size: n = _f, level: i = wf, bgColor: s = xf, fgColor: a = Af, includeMargin: o = Sf, style: c, imageSettings: d } = t, h = ((k, O) => {
|
|
820
820
|
var E = {};
|
|
821
821
|
for (var R in k) qd.call(k, R) && O.indexOf(R) < 0 && (E[R] = k[R]);
|
|
822
|
-
if (k != null && ds) for (var R of ds(k)) O.indexOf(R) < 0 &&
|
|
822
|
+
if (k != null && ds) for (var R of ds(k)) O.indexOf(R) < 0 && Ud.call(k, R) && (E[R] = k[R]);
|
|
823
823
|
return E;
|
|
824
824
|
})(t, ["value", "size", "level", "bgColor", "fgColor", "includeMargin", "style", "imageSettings"]), l = d == null ? void 0 : d.src, _ = Br.useRef(null), v = Br.useRef(null), [A, I] = Br.useState(!1);
|
|
825
825
|
Br.useEffect(() => {
|
|
@@ -829,11 +829,11 @@ function Xn(e) {
|
|
|
829
829
|
let L = di.QrCode.encodeText(r, vf[i]).getModules();
|
|
830
830
|
const z = o ? 4 : 0, f = L.length + 2 * z, p = function(w, P, N, j) {
|
|
831
831
|
if (j == null) return null;
|
|
832
|
-
const Z = N ? 4 : 0,
|
|
832
|
+
const Z = N ? 4 : 0, $ = w.length + 2 * Z, V = Math.floor(0.1 * P), H = $ / P, D = (j.width || V) * H, G = (j.height || V) * H, Et = j.x == null ? w.length / 2 - D / 2 : j.x * H, ot = j.y == null ? w.length / 2 - G / 2 : j.y * H;
|
|
833
833
|
let mt = null;
|
|
834
834
|
if (j.excavate) {
|
|
835
|
-
let
|
|
836
|
-
mt = { x:
|
|
835
|
+
let Ut = Math.floor(Et), lt = Math.floor(ot);
|
|
836
|
+
mt = { x: Ut, y: lt, w: Math.ceil(D + Et - Ut), h: Math.ceil(G + ot - lt) };
|
|
837
837
|
}
|
|
838
838
|
return { x: Et, y: ot, h: G, w: D, excavation: mt };
|
|
839
839
|
}(L, n, o, d), g = v.current, m = p != null && g !== null && g.complete && g.naturalHeight !== 0 && g.naturalWidth !== 0;
|
|
@@ -844,13 +844,13 @@ function Xn(e) {
|
|
|
844
844
|
R.scale(y, y), R.fillStyle = s, R.fillRect(0, 0, f, f), R.fillStyle = a, kf ? R.fill(new Path2D(function(w, P = 0) {
|
|
845
845
|
const N = [];
|
|
846
846
|
return w.forEach(function(j, Z) {
|
|
847
|
-
let
|
|
847
|
+
let $ = null;
|
|
848
848
|
j.forEach(function(V, H) {
|
|
849
|
-
if (!V &&
|
|
850
|
-
if (H !== j.length - 1) V &&
|
|
849
|
+
if (!V && $ !== null) return N.push(`M${$ + P} ${Z + P}h${H - $}v1H${$ + P}z`), void ($ = null);
|
|
850
|
+
if (H !== j.length - 1) V && $ === null && ($ = H);
|
|
851
851
|
else {
|
|
852
852
|
if (!V) return;
|
|
853
|
-
|
|
853
|
+
$ === null ? N.push(`M${H + P},${Z + P} h1v1H${H + P}z`) : N.push(`M${$ + P},${Z + P} h${H + 1 - $}v1H${$ + P}z`);
|
|
854
854
|
}
|
|
855
855
|
});
|
|
856
856
|
}), N.join("");
|
|
@@ -871,7 +871,7 @@ function Xn(e) {
|
|
|
871
871
|
}, ref: v })), Br.createElement(Br.Fragment, null, Br.createElement("canvas", Da({ style: x, height: n, width: n, ref: _ }, h)), M);
|
|
872
872
|
}
|
|
873
873
|
const bi = "userInfo", yi = "YYYY-MM-DD HH:mm:ss", E3 = () => {
|
|
874
|
-
const [e, t] =
|
|
874
|
+
const [e, t] = Ue(!1), [r, n] = Ue(void 0), [i, s] = Ue(void 0);
|
|
875
875
|
return Ze(() => {
|
|
876
876
|
if (typeof window < "u") {
|
|
877
877
|
t(!0);
|
|
@@ -901,7 +901,7 @@ function Qt() {
|
|
|
901
901
|
return Za || (Za = 1, Fa.exports = function() {
|
|
902
902
|
var e = e || function(t, r) {
|
|
903
903
|
var n;
|
|
904
|
-
if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n &&
|
|
904
|
+
if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && Ur !== void 0 && Ur.crypto && (n = Ur.crypto), !n) try {
|
|
905
905
|
n = Is;
|
|
906
906
|
} catch {
|
|
907
907
|
}
|
|
@@ -1178,8 +1178,8 @@ function ln() {
|
|
|
1178
1178
|
var x = A + I, M = v[x];
|
|
1179
1179
|
v[x] = 16711935 & (M << 8 | M >>> 24) | 4278255360 & (M << 24 | M >>> 8);
|
|
1180
1180
|
}
|
|
1181
|
-
var k = this._hash.words, O = v[A + 0], E = v[A + 1], R = v[A + 2], L = v[A + 3], z = v[A + 4], f = v[A + 5], p = v[A + 6], g = v[A + 7], m = v[A + 8], u = v[A + 9], y = v[A + 10], w = v[A + 11], P = v[A + 12], N = v[A + 13], j = v[A + 14], Z = v[A + 15],
|
|
1182
|
-
|
|
1181
|
+
var k = this._hash.words, O = v[A + 0], E = v[A + 1], R = v[A + 2], L = v[A + 3], z = v[A + 4], f = v[A + 5], p = v[A + 6], g = v[A + 7], m = v[A + 8], u = v[A + 9], y = v[A + 10], w = v[A + 11], P = v[A + 12], N = v[A + 13], j = v[A + 14], Z = v[A + 15], $ = k[0], V = k[1], H = k[2], D = k[3];
|
|
1182
|
+
$ = d($, V, H, D, O, 7, o[0]), D = d(D, $, V, H, E, 12, o[1]), H = d(H, D, $, V, R, 17, o[2]), V = d(V, H, D, $, L, 22, o[3]), $ = d($, V, H, D, z, 7, o[4]), D = d(D, $, V, H, f, 12, o[5]), H = d(H, D, $, V, p, 17, o[6]), V = d(V, H, D, $, g, 22, o[7]), $ = d($, V, H, D, m, 7, o[8]), D = d(D, $, V, H, u, 12, o[9]), H = d(H, D, $, V, y, 17, o[10]), V = d(V, H, D, $, w, 22, o[11]), $ = d($, V, H, D, P, 7, o[12]), D = d(D, $, V, H, N, 12, o[13]), H = d(H, D, $, V, j, 17, o[14]), $ = h($, V = d(V, H, D, $, Z, 22, o[15]), H, D, E, 5, o[16]), D = h(D, $, V, H, p, 9, o[17]), H = h(H, D, $, V, w, 14, o[18]), V = h(V, H, D, $, O, 20, o[19]), $ = h($, V, H, D, f, 5, o[20]), D = h(D, $, V, H, y, 9, o[21]), H = h(H, D, $, V, Z, 14, o[22]), V = h(V, H, D, $, z, 20, o[23]), $ = h($, V, H, D, u, 5, o[24]), D = h(D, $, V, H, j, 9, o[25]), H = h(H, D, $, V, L, 14, o[26]), V = h(V, H, D, $, m, 20, o[27]), $ = h($, V, H, D, N, 5, o[28]), D = h(D, $, V, H, R, 9, o[29]), H = h(H, D, $, V, g, 14, o[30]), $ = l($, V = h(V, H, D, $, P, 20, o[31]), H, D, f, 4, o[32]), D = l(D, $, V, H, m, 11, o[33]), H = l(H, D, $, V, w, 16, o[34]), V = l(V, H, D, $, j, 23, o[35]), $ = l($, V, H, D, E, 4, o[36]), D = l(D, $, V, H, z, 11, o[37]), H = l(H, D, $, V, g, 16, o[38]), V = l(V, H, D, $, y, 23, o[39]), $ = l($, V, H, D, N, 4, o[40]), D = l(D, $, V, H, O, 11, o[41]), H = l(H, D, $, V, L, 16, o[42]), V = l(V, H, D, $, p, 23, o[43]), $ = l($, V, H, D, u, 4, o[44]), D = l(D, $, V, H, P, 11, o[45]), H = l(H, D, $, V, Z, 16, o[46]), $ = _($, V = l(V, H, D, $, R, 23, o[47]), H, D, O, 6, o[48]), D = _(D, $, V, H, g, 10, o[49]), H = _(H, D, $, V, j, 15, o[50]), V = _(V, H, D, $, f, 21, o[51]), $ = _($, V, H, D, P, 6, o[52]), D = _(D, $, V, H, L, 10, o[53]), H = _(H, D, $, V, y, 15, o[54]), V = _(V, H, D, $, E, 21, o[55]), $ = _($, V, H, D, m, 6, o[56]), D = _(D, $, V, H, Z, 10, o[57]), H = _(H, D, $, V, p, 15, o[58]), V = _(V, H, D, $, N, 21, o[59]), $ = _($, V, H, D, z, 6, o[60]), D = _(D, $, V, H, w, 10, o[61]), H = _(H, D, $, V, R, 15, o[62]), V = _(V, H, D, $, u, 21, o[63]), k[0] = k[0] + $ | 0, k[1] = k[1] + V | 0, k[2] = k[2] + H | 0, k[3] = k[3] + D | 0;
|
|
1183
1183
|
}, _doFinalize: function() {
|
|
1184
1184
|
var v = this._data, A = v.words, I = 8 * this._nDataBytes, x = 8 * v.sigBytes;
|
|
1185
1185
|
A[x >>> 5] |= 128 << 24 - x % 32;
|
|
@@ -1296,17 +1296,17 @@ function hc() {
|
|
|
1296
1296
|
var h = a.SHA512 = r.extend({ _doReset: function() {
|
|
1297
1297
|
this._hash = new s.init([new i.init(1779033703, 4089235720), new i.init(3144134277, 2227873595), new i.init(1013904242, 4271175723), new i.init(2773480762, 1595750129), new i.init(1359893119, 2917565137), new i.init(2600822924, 725511199), new i.init(528734635, 4215389547), new i.init(1541459225, 327033209)]);
|
|
1298
1298
|
}, _doProcessBlock: function(l, _) {
|
|
1299
|
-
for (var v = this._hash.words, A = v[0], I = v[1], x = v[2], M = v[3], k = v[4], O = v[5], E = v[6], R = v[7], L = A.high, z = A.low, f = I.high, p = I.low, g = x.high, m = x.low, u = M.high, y = M.low, w = k.high, P = k.low, N = O.high, j = O.low, Z = E.high,
|
|
1299
|
+
for (var v = this._hash.words, A = v[0], I = v[1], x = v[2], M = v[3], k = v[4], O = v[5], E = v[6], R = v[7], L = A.high, z = A.low, f = I.high, p = I.low, g = x.high, m = x.low, u = M.high, y = M.low, w = k.high, P = k.low, N = O.high, j = O.low, Z = E.high, $ = E.low, V = R.high, H = R.low, D = L, G = z, Et = f, ot = p, mt = g, Ut = m, lt = u, kt = y, Ft = w, Lt = P, se = N, Ke = j, Wt = Z, te = $, Or = V, oe = H, Zt = 0; Zt < 80; Zt++) {
|
|
1300
1300
|
var De, ne, ae = d[Zt];
|
|
1301
1301
|
if (Zt < 16) ne = ae.high = 0 | l[_ + 2 * Zt], De = ae.low = 0 | l[_ + 2 * Zt + 1];
|
|
1302
1302
|
else {
|
|
1303
1303
|
var Cr = d[Zt - 15], ie = Cr.high, ce = Cr.low, Zr = (ie >>> 1 | ce << 31) ^ (ie >>> 8 | ce << 24) ^ ie >>> 7, de = (ce >>> 1 | ie << 31) ^ (ce >>> 8 | ie << 24) ^ (ce >>> 7 | ie << 25), ee = d[Zt - 2], Be = ee.high, re = ee.low, le = (Be >>> 19 | re << 13) ^ (Be << 3 | re >>> 29) ^ Be >>> 6, Ae = (re >>> 19 | Be << 13) ^ (re << 3 | Be >>> 29) ^ (re >>> 6 | Be << 26), he = d[Zt - 7], T = he.high, C = he.low, B = d[Zt - 16], b = B.high, S = B.low;
|
|
1304
1304
|
ne = (ne = (ne = Zr + T + ((De = de + C) >>> 0 < de >>> 0 ? 1 : 0)) + le + ((De += Ae) >>> 0 < Ae >>> 0 ? 1 : 0)) + b + ((De += S) >>> 0 < S >>> 0 ? 1 : 0), ae.high = ne, ae.low = De;
|
|
1305
1305
|
}
|
|
1306
|
-
var
|
|
1307
|
-
Or = Wt, oe = te, Wt = se, te = Ke, se = Ft, Ke = Lt, Ft = lt + (at = (at = (at = at + F + ((
|
|
1306
|
+
var U, F = Ft & se ^ ~Ft & Wt, W = Lt & Ke ^ ~Lt & te, q = D & Et ^ D & mt ^ Et & mt, Y = G & ot ^ G & Ut ^ ot & Ut, gt = (D >>> 28 | G << 4) ^ (D << 30 | G >>> 2) ^ (D << 25 | G >>> 7), X = (G >>> 28 | D << 4) ^ (G << 30 | D >>> 2) ^ (G << 25 | D >>> 7), dt = (Ft >>> 14 | Lt << 18) ^ (Ft >>> 18 | Lt << 14) ^ (Ft << 23 | Lt >>> 9), _t = (Lt >>> 14 | Ft << 18) ^ (Lt >>> 18 | Ft << 14) ^ (Lt << 23 | Ft >>> 9), nt = c[Zt], ht = nt.high, xt = nt.low, at = Or + dt + ((U = oe + _t) >>> 0 < oe >>> 0 ? 1 : 0), ut = X + Y;
|
|
1307
|
+
Or = Wt, oe = te, Wt = se, te = Ke, se = Ft, Ke = Lt, Ft = lt + (at = (at = (at = at + F + ((U += W) >>> 0 < W >>> 0 ? 1 : 0)) + ht + ((U += xt) >>> 0 < xt >>> 0 ? 1 : 0)) + ne + ((U += De) >>> 0 < De >>> 0 ? 1 : 0)) + ((Lt = kt + U | 0) >>> 0 < kt >>> 0 ? 1 : 0) | 0, lt = mt, kt = Ut, mt = Et, Ut = ot, Et = D, ot = G, D = at + (gt + q + (ut >>> 0 < X >>> 0 ? 1 : 0)) + ((G = U + ut | 0) >>> 0 < U >>> 0 ? 1 : 0) | 0;
|
|
1308
1308
|
}
|
|
1309
|
-
z = A.low = z + G, A.high = L + D + (z >>> 0 < G >>> 0 ? 1 : 0), p = I.low = p + ot, I.high = f + Et + (p >>> 0 < ot >>> 0 ? 1 : 0), m = x.low = m +
|
|
1309
|
+
z = A.low = z + G, A.high = L + D + (z >>> 0 < G >>> 0 ? 1 : 0), p = I.low = p + ot, I.high = f + Et + (p >>> 0 < ot >>> 0 ? 1 : 0), m = x.low = m + Ut, x.high = g + mt + (m >>> 0 < Ut >>> 0 ? 1 : 0), y = M.low = y + kt, M.high = u + lt + (y >>> 0 < kt >>> 0 ? 1 : 0), P = k.low = P + Lt, k.high = w + Ft + (P >>> 0 < Lt >>> 0 ? 1 : 0), j = O.low = j + Ke, O.high = N + se + (j >>> 0 < Ke >>> 0 ? 1 : 0), $ = E.low = $ + te, E.high = Z + Wt + ($ >>> 0 < te >>> 0 ? 1 : 0), H = R.low = H + oe, R.high = V + Or + (H >>> 0 < oe >>> 0 ? 1 : 0);
|
|
1310
1310
|
}, _doFinalize: function() {
|
|
1311
1311
|
var l = this._data, _ = l.words, v = 8 * this._nDataBytes, A = 8 * l.sigBytes;
|
|
1312
1312
|
return _[A >>> 5] |= 128 << 24 - A % 32, _[30 + (A + 128 >>> 10 << 5)] = Math.floor(v / 4294967296), _[31 + (A + 128 >>> 10 << 5)] = v, l.sigBytes = 4 * _.length, this._process(), this._hash.toX32();
|
|
@@ -1369,8 +1369,8 @@ function Nf() {
|
|
|
1369
1369
|
var Z = l[d[w]];
|
|
1370
1370
|
Z.high = L, Z.low = z;
|
|
1371
1371
|
}
|
|
1372
|
-
var
|
|
1373
|
-
for (
|
|
1372
|
+
var $ = l[0], V = I[0];
|
|
1373
|
+
for ($.high = V.high, $.low = V.low, R = 0; R < 5; R++) for (f = 0; f < 5; f++) {
|
|
1374
1374
|
var H = I[w = R + 5 * f], D = l[w], G = l[(R + 1) % 5 + 5 * f], Et = l[(R + 2) % 5 + 5 * f];
|
|
1375
1375
|
H.high = D.high ^ ~G.high & Et.high, H.low = D.low ^ ~G.low & Et.low;
|
|
1376
1376
|
}
|
|
@@ -1623,9 +1623,9 @@ function jf() {
|
|
|
1623
1623
|
var t, r;
|
|
1624
1624
|
}(Qt(), Te())), Rc.exports;
|
|
1625
1625
|
}
|
|
1626
|
-
var Nc, zf = { exports: {} }, Oc,
|
|
1626
|
+
var Nc, zf = { exports: {} }, Oc, $f = { exports: {} }, Cc, qf = { exports: {} }, Bc, Uf = { exports: {} }, Pc, Hf = { exports: {} }, Lc, Df = { exports: {} }, jc, Ff = { exports: {} }, zc, Zf = { exports: {} }, $c, qc = { exports: {} };
|
|
1627
1627
|
function Vf() {
|
|
1628
|
-
return
|
|
1628
|
+
return $c || ($c = 1, qc.exports = function(e) {
|
|
1629
1629
|
return function() {
|
|
1630
1630
|
var t = e, r = t.lib, n = r.WordArray, i = r.BlockCipher, s = t.algo, a = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4], o = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32], c = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], d = [{ 0: 8421888, 268435456: 32768, 536870912: 8421378, 805306368: 2, 1073741824: 512, 1342177280: 8421890, 1610612736: 8389122, 1879048192: 8388608, 2147483648: 514, 2415919104: 8389120, 2684354560: 33280, 2952790016: 8421376, 3221225472: 32770, 3489660928: 8388610, 3758096384: 0, 4026531840: 33282, 134217728: 0, 402653184: 8421890, 671088640: 33282, 939524096: 32768, 1207959552: 8421888, 1476395008: 512, 1744830464: 8421378, 2013265920: 2, 2281701376: 8389120, 2550136832: 33280, 2818572288: 8421376, 3087007744: 8389122, 3355443200: 8388610, 3623878656: 32770, 3892314112: 514, 4160749568: 8388608, 1: 32768, 268435457: 2, 536870913: 8421888, 805306369: 8388608, 1073741825: 8421378, 1342177281: 33280, 1610612737: 512, 1879048193: 8389122, 2147483649: 8421890, 2415919105: 8421376, 2684354561: 8388610, 2952790017: 33282, 3221225473: 514, 3489660929: 8389120, 3758096385: 32770, 4026531841: 0, 134217729: 8421890, 402653185: 8421376, 671088641: 8388608, 939524097: 512, 1207959553: 32768, 1476395009: 8388610, 1744830465: 2, 2013265921: 33282, 2281701377: 32770, 2550136833: 8389122, 2818572289: 514, 3087007745: 8421888, 3355443201: 8389120, 3623878657: 0, 3892314113: 33280, 4160749569: 8421378 }, { 0: 1074282512, 16777216: 16384, 33554432: 524288, 50331648: 1074266128, 67108864: 1073741840, 83886080: 1074282496, 100663296: 1073758208, 117440512: 16, 134217728: 540672, 150994944: 1073758224, 167772160: 1073741824, 184549376: 540688, 201326592: 524304, 218103808: 0, 234881024: 16400, 251658240: 1074266112, 8388608: 1073758208, 25165824: 540688, 41943040: 16, 58720256: 1073758224, 75497472: 1074282512, 92274688: 1073741824, 109051904: 524288, 125829120: 1074266128, 142606336: 524304, 159383552: 0, 176160768: 16384, 192937984: 1074266112, 209715200: 1073741840, 226492416: 540672, 243269632: 1074282496, 260046848: 16400, 268435456: 0, 285212672: 1074266128, 301989888: 1073758224, 318767104: 1074282496, 335544320: 1074266112, 352321536: 16, 369098752: 540688, 385875968: 16384, 402653184: 16400, 419430400: 524288, 436207616: 524304, 452984832: 1073741840, 469762048: 540672, 486539264: 1073758208, 503316480: 1073741824, 520093696: 1074282512, 276824064: 540688, 293601280: 524288, 310378496: 1074266112, 327155712: 16384, 343932928: 1073758208, 360710144: 1074282512, 377487360: 16, 394264576: 1073741824, 411041792: 1074282496, 427819008: 1073741840, 444596224: 1073758224, 461373440: 524304, 478150656: 0, 494927872: 16400, 511705088: 1074266128, 528482304: 540672 }, { 0: 260, 1048576: 0, 2097152: 67109120, 3145728: 65796, 4194304: 65540, 5242880: 67108868, 6291456: 67174660, 7340032: 67174400, 8388608: 67108864, 9437184: 67174656, 10485760: 65792, 11534336: 67174404, 12582912: 67109124, 13631488: 65536, 14680064: 4, 15728640: 256, 524288: 67174656, 1572864: 67174404, 2621440: 0, 3670016: 67109120, 4718592: 67108868, 5767168: 65536, 6815744: 65540, 7864320: 260, 8912896: 4, 9961472: 256, 11010048: 67174400, 12058624: 65796, 13107200: 65792, 14155776: 67109124, 15204352: 67174660, 16252928: 67108864, 16777216: 67174656, 17825792: 65540, 18874368: 65536, 19922944: 67109120, 20971520: 256, 22020096: 67174660, 23068672: 67108868, 24117248: 0, 25165824: 67109124, 26214400: 67108864, 27262976: 4, 28311552: 65792, 29360128: 67174400, 30408704: 260, 31457280: 65796, 32505856: 67174404, 17301504: 67108864, 18350080: 260, 19398656: 67174656, 20447232: 0, 21495808: 65540, 22544384: 67109120, 23592960: 256, 24641536: 67174404, 25690112: 65536, 26738688: 67174660, 27787264: 65796, 28835840: 67108868, 29884416: 67109124, 30932992: 67174400, 31981568: 4, 33030144: 65792 }, { 0: 2151682048, 65536: 2147487808, 131072: 4198464, 196608: 2151677952, 262144: 0, 327680: 4198400, 393216: 2147483712, 458752: 4194368, 524288: 2147483648, 589824: 4194304, 655360: 64, 720896: 2147487744, 786432: 2151678016, 851968: 4160, 917504: 4096, 983040: 2151682112, 32768: 2147487808, 98304: 64, 163840: 2151678016, 229376: 2147487744, 294912: 4198400, 360448: 2151682112, 425984: 0, 491520: 2151677952, 557056: 4096, 622592: 2151682048, 688128: 4194304, 753664: 4160, 819200: 2147483648, 884736: 4194368, 950272: 4198464, 1015808: 2147483712, 1048576: 4194368, 1114112: 4198400, 1179648: 2147483712, 1245184: 0, 1310720: 4160, 1376256: 2151678016, 1441792: 2151682048, 1507328: 2147487808, 1572864: 2151682112, 1638400: 2147483648, 1703936: 2151677952, 1769472: 4198464, 1835008: 2147487744, 1900544: 4194304, 1966080: 64, 2031616: 4096, 1081344: 2151677952, 1146880: 2151682112, 1212416: 0, 1277952: 4198400, 1343488: 4194368, 1409024: 2147483648, 1474560: 2147487808, 1540096: 64, 1605632: 2147483712, 1671168: 4096, 1736704: 2147487744, 1802240: 2151678016, 1867776: 4160, 1933312: 2151682048, 1998848: 4194304, 2064384: 4198464 }, { 0: 128, 4096: 17039360, 8192: 262144, 12288: 536870912, 16384: 537133184, 20480: 16777344, 24576: 553648256, 28672: 262272, 32768: 16777216, 36864: 537133056, 40960: 536871040, 45056: 553910400, 49152: 553910272, 53248: 0, 57344: 17039488, 61440: 553648128, 2048: 17039488, 6144: 553648256, 10240: 128, 14336: 17039360, 18432: 262144, 22528: 537133184, 26624: 553910272, 30720: 536870912, 34816: 537133056, 38912: 0, 43008: 553910400, 47104: 16777344, 51200: 536871040, 55296: 553648128, 59392: 16777216, 63488: 262272, 65536: 262144, 69632: 128, 73728: 536870912, 77824: 553648256, 81920: 16777344, 86016: 553910272, 90112: 537133184, 94208: 16777216, 98304: 553910400, 102400: 553648128, 106496: 17039360, 110592: 537133056, 114688: 262272, 118784: 536871040, 122880: 0, 126976: 17039488, 67584: 553648256, 71680: 16777216, 75776: 17039360, 79872: 537133184, 83968: 536870912, 88064: 17039488, 92160: 128, 96256: 553910272, 100352: 262272, 104448: 553910400, 108544: 0, 112640: 553648128, 116736: 16777344, 120832: 262144, 124928: 537133056, 129024: 536871040 }, { 0: 268435464, 256: 8192, 512: 270532608, 768: 270540808, 1024: 268443648, 1280: 2097152, 1536: 2097160, 1792: 268435456, 2048: 0, 2304: 268443656, 2560: 2105344, 2816: 8, 3072: 270532616, 3328: 2105352, 3584: 8200, 3840: 270540800, 128: 270532608, 384: 270540808, 640: 8, 896: 2097152, 1152: 2105352, 1408: 268435464, 1664: 268443648, 1920: 8200, 2176: 2097160, 2432: 8192, 2688: 268443656, 2944: 270532616, 3200: 0, 3456: 270540800, 3712: 2105344, 3968: 268435456, 4096: 268443648, 4352: 270532616, 4608: 270540808, 4864: 8200, 5120: 2097152, 5376: 268435456, 5632: 268435464, 5888: 2105344, 6144: 2105352, 6400: 0, 6656: 8, 6912: 270532608, 7168: 8192, 7424: 268443656, 7680: 270540800, 7936: 2097160, 4224: 8, 4480: 2105344, 4736: 2097152, 4992: 268435464, 5248: 268443648, 5504: 8200, 5760: 270540808, 6016: 270532608, 6272: 270540800, 6528: 270532616, 6784: 8192, 7040: 2105352, 7296: 2097160, 7552: 0, 7808: 268435456, 8064: 268443656 }, { 0: 1048576, 16: 33555457, 32: 1024, 48: 1049601, 64: 34604033, 80: 0, 96: 1, 112: 34603009, 128: 33555456, 144: 1048577, 160: 33554433, 176: 34604032, 192: 34603008, 208: 1025, 224: 1049600, 240: 33554432, 8: 34603009, 24: 0, 40: 33555457, 56: 34604032, 72: 1048576, 88: 33554433, 104: 33554432, 120: 1025, 136: 1049601, 152: 33555456, 168: 34603008, 184: 1048577, 200: 1024, 216: 34604033, 232: 1, 248: 1049600, 256: 33554432, 272: 1048576, 288: 33555457, 304: 34603009, 320: 1048577, 336: 33555456, 352: 34604032, 368: 1049601, 384: 1025, 400: 34604033, 416: 1049600, 432: 1, 448: 0, 464: 34603008, 480: 33554433, 496: 1024, 264: 1049600, 280: 33555457, 296: 34603009, 312: 1, 328: 33554432, 344: 1048576, 360: 1025, 376: 34604032, 392: 33554433, 408: 34603008, 424: 0, 440: 34604033, 456: 1049601, 472: 1024, 488: 33555456, 504: 1048577 }, { 0: 134219808, 1: 131072, 2: 134217728, 3: 32, 4: 131104, 5: 134350880, 6: 134350848, 7: 2048, 8: 134348800, 9: 134219776, 10: 133120, 11: 134348832, 12: 2080, 13: 0, 14: 134217760, 15: 133152, 2147483648: 2048, 2147483649: 134350880, 2147483650: 134219808, 2147483651: 134217728, 2147483652: 134348800, 2147483653: 133120, 2147483654: 133152, 2147483655: 32, 2147483656: 134217760, 2147483657: 2080, 2147483658: 131104, 2147483659: 134350848, 2147483660: 0, 2147483661: 134348832, 2147483662: 134219776, 2147483663: 131072, 16: 133152, 17: 134350848, 18: 32, 19: 2048, 20: 134219776, 21: 134217760, 22: 134348832, 23: 131072, 24: 0, 25: 131104, 26: 134348800, 27: 134219808, 28: 134350880, 29: 133120, 30: 2080, 31: 134217728, 2147483664: 131072, 2147483665: 2048, 2147483666: 134348832, 2147483667: 133152, 2147483668: 32, 2147483669: 134348800, 2147483670: 134217728, 2147483671: 134219808, 2147483672: 134350880, 2147483673: 134217760, 2147483674: 134219776, 2147483675: 0, 2147483676: 133120, 2147483677: 2080, 2147483678: 131104, 2147483679: 134350848 }], h = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679], l = s.DES = i.extend({ _doReset: function() {
|
|
1631
1631
|
for (var I = this._key.words, x = [], M = 0; M < 56; M++) {
|
|
@@ -1676,7 +1676,7 @@ function Vf() {
|
|
|
1676
1676
|
}(), e.TripleDES;
|
|
1677
1677
|
}(Qt(), un(), ln(), Jr(), Te())), qc.exports;
|
|
1678
1678
|
}
|
|
1679
|
-
var
|
|
1679
|
+
var Uc, Kf = { exports: {} }, Hc, Wf = { exports: {} }, Dc, Yf = { exports: {} }, Fc, Zc = { exports: {} };
|
|
1680
1680
|
function Qf() {
|
|
1681
1681
|
return Fc || (Fc = 1, Zc.exports = function(e) {
|
|
1682
1682
|
return function() {
|
|
@@ -1766,9 +1766,9 @@ Hd.exports = /* @__PURE__ */ function(e) {
|
|
|
1766
1766
|
var L = E + R, z = O[L];
|
|
1767
1767
|
O[L] = 16711935 & (z << 8 | z >>> 24) | 4278255360 & (z << 24 | z >>> 8);
|
|
1768
1768
|
}
|
|
1769
|
-
var f, p, g, m, u, y, w, P, N, j, Z,
|
|
1770
|
-
for (y = f =
|
|
1771
|
-
Z =
|
|
1769
|
+
var f, p, g, m, u, y, w, P, N, j, Z, $ = this._hash.words, V = h.words, H = l.words, D = a.words, G = o.words, Et = c.words, ot = d.words;
|
|
1770
|
+
for (y = f = $[0], w = p = $[1], P = g = $[2], N = m = $[3], j = u = $[4], R = 0; R < 80; R += 1) Z = f + O[E + D[R]] | 0, Z += R < 16 ? v(p, g, m) + V[0] : R < 32 ? A(p, g, m) + V[1] : R < 48 ? I(p, g, m) + V[2] : R < 64 ? x(p, g, m) + V[3] : M(p, g, m) + V[4], Z = (Z = k(Z |= 0, Et[R])) + u | 0, f = u, u = m, m = k(g, 10), g = p, p = Z, Z = y + O[E + G[R]] | 0, Z += R < 16 ? M(w, P, N) + H[0] : R < 32 ? x(w, P, N) + H[1] : R < 48 ? I(w, P, N) + H[2] : R < 64 ? A(w, P, N) + H[3] : v(w, P, N) + H[4], Z = (Z = k(Z |= 0, ot[R])) + j | 0, y = j, j = N, N = k(P, 10), P = w, w = Z;
|
|
1771
|
+
Z = $[1] + g + N | 0, $[1] = $[2] + m + j | 0, $[2] = $[3] + u + y | 0, $[3] = $[4] + f + w | 0, $[4] = $[0] + p + P | 0, $[0] = Z;
|
|
1772
1772
|
}, _doFinalize: function() {
|
|
1773
1773
|
var O = this._data, E = O.words, R = 8 * this._nDataBytes, L = 8 * O.sigBytes;
|
|
1774
1774
|
E[L >>> 5] |= 128 << 24 - L % 32, E[14 + (L + 64 >>> 9 << 4)] = 16711935 & (R << 8 | R >>> 24) | 4278255360 & (R << 24 | R >>> 8), O.sigBytes = 4 * (E.length + 1), this._process();
|
|
@@ -1828,7 +1828,7 @@ Hd.exports = /* @__PURE__ */ function(e) {
|
|
|
1828
1828
|
this._cipher.decryptBlock(r, n);
|
|
1829
1829
|
} }), t), e.mode.ECB;
|
|
1830
1830
|
var t;
|
|
1831
|
-
}(Qt(), Te())), Oc || (Oc = 1,
|
|
1831
|
+
}(Qt(), Te())), Oc || (Oc = 1, $f.exports = function(e) {
|
|
1832
1832
|
return e.pad.AnsiX923 = { pad: function(t, r) {
|
|
1833
1833
|
var n = t.sigBytes, i = 4 * r, s = i - n % i, a = n + s - 1;
|
|
1834
1834
|
t.clamp(), t.words[a >>> 2] |= s << 24 - a % 4 * 8, t.sigBytes += s;
|
|
@@ -1844,7 +1844,7 @@ Hd.exports = /* @__PURE__ */ function(e) {
|
|
|
1844
1844
|
var r = 255 & t.words[t.sigBytes - 1 >>> 2];
|
|
1845
1845
|
t.sigBytes -= r;
|
|
1846
1846
|
} }, e.pad.Iso10126;
|
|
1847
|
-
}(Qt(), Te())), Bc || (Bc = 1,
|
|
1847
|
+
}(Qt(), Te())), Bc || (Bc = 1, Uf.exports = function(e) {
|
|
1848
1848
|
return e.pad.Iso97971 = { pad: function(t, r) {
|
|
1849
1849
|
t.concat(e.lib.WordArray.create([2147483648], 1)), e.pad.ZeroPadding.pad(t, r);
|
|
1850
1850
|
}, unpad: function(t) {
|
|
@@ -1909,7 +1909,7 @@ Hd.exports = /* @__PURE__ */ function(e) {
|
|
|
1909
1909
|
}, keySize: 8 });
|
|
1910
1910
|
t.AES = r._createHelper(I);
|
|
1911
1911
|
}(), e.AES;
|
|
1912
|
-
}(Qt(), un(), ln(), Jr(), Te())), Vf(),
|
|
1912
|
+
}(Qt(), un(), ln(), Jr(), Te())), Vf(), Uc || (Uc = 1, Kf.exports = function(e) {
|
|
1913
1913
|
return function() {
|
|
1914
1914
|
var t = e, r = t.lib.StreamCipher, n = t.algo, i = n.RC4 = r.extend({ _doReset: function() {
|
|
1915
1915
|
for (var o = this._key, c = o.words, d = o.sigBytes, h = this._S = [], l = 0; l < 256; l++) h[l] = l;
|
|
@@ -2097,11 +2097,11 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2097
2097
|
var u = 0 | f.words[0], y = 0 | p.words[0], w = u * y, P = 67108863 & w, N = w / 67108864 | 0;
|
|
2098
2098
|
g.words[0] = P;
|
|
2099
2099
|
for (var j = 1; j < m; j++) {
|
|
2100
|
-
for (var Z = N >>> 26,
|
|
2100
|
+
for (var Z = N >>> 26, $ = 67108863 & N, V = Math.min(j, p.length - 1), H = Math.max(0, j - f.length + 1); H <= V; H++) {
|
|
2101
2101
|
var D = j - H | 0;
|
|
2102
|
-
Z += (w = (u = 0 | f.words[D]) * (y = 0 | p.words[H]) +
|
|
2102
|
+
Z += (w = (u = 0 | f.words[D]) * (y = 0 | p.words[H]) + $) / 67108864 | 0, $ = 67108863 & w;
|
|
2103
2103
|
}
|
|
2104
|
-
g.words[j] = 0 |
|
|
2104
|
+
g.words[j] = 0 | $, N = 0 | Z;
|
|
2105
2105
|
}
|
|
2106
2106
|
return N !== 0 ? g.words[j] = 0 | N : g.length--, g.strip();
|
|
2107
2107
|
}
|
|
@@ -2121,8 +2121,8 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2121
2121
|
g = "";
|
|
2122
2122
|
var Z = this.clone();
|
|
2123
2123
|
for (Z.negative = 0; !Z.isZero(); ) {
|
|
2124
|
-
var
|
|
2125
|
-
g = (Z = Z.idivn(j)).isZero() ?
|
|
2124
|
+
var $ = Z.modn(j).toString(f);
|
|
2125
|
+
g = (Z = Z.idivn(j)).isZero() ? $ + g : d[N - $.length] + $ + g;
|
|
2126
2126
|
}
|
|
2127
2127
|
for (this.isZero() && (g = "0" + g); g.length % p !== 0; ) g = "0" + g;
|
|
2128
2128
|
return this.negative !== 0 && (g = "-" + g), g;
|
|
@@ -2256,32 +2256,32 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2256
2256
|
return this.clone().isub(f);
|
|
2257
2257
|
};
|
|
2258
2258
|
var v = function(f, p, g) {
|
|
2259
|
-
var m, u, y, w = f.words, P = p.words, N = g.words, j = 0, Z = 0 | w[0],
|
|
2259
|
+
var m, u, y, w = f.words, P = p.words, N = g.words, j = 0, Z = 0 | w[0], $ = 8191 & Z, V = Z >>> 13, H = 0 | w[1], D = 8191 & H, G = H >>> 13, Et = 0 | w[2], ot = 8191 & Et, mt = Et >>> 13, Ut = 0 | w[3], lt = 8191 & Ut, kt = Ut >>> 13, Ft = 0 | w[4], Lt = 8191 & Ft, se = Ft >>> 13, Ke = 0 | w[5], Wt = 8191 & Ke, te = Ke >>> 13, Or = 0 | w[6], oe = 8191 & Or, Zt = Or >>> 13, De = 0 | w[7], ne = 8191 & De, ae = De >>> 13, Cr = 0 | w[8], ie = 8191 & Cr, ce = Cr >>> 13, Zr = 0 | w[9], de = 8191 & Zr, ee = Zr >>> 13, Be = 0 | P[0], re = 8191 & Be, le = Be >>> 13, Ae = 0 | P[1], he = 8191 & Ae, T = Ae >>> 13, C = 0 | P[2], B = 8191 & C, b = C >>> 13, S = 0 | P[3], U = 8191 & S, F = S >>> 13, W = 0 | P[4], q = 8191 & W, Y = W >>> 13, gt = 0 | P[5], X = 8191 & gt, dt = gt >>> 13, _t = 0 | P[6], nt = 8191 & _t, ht = _t >>> 13, xt = 0 | P[7], at = 8191 & xt, ut = xt >>> 13, At = 0 | P[8], it = 8191 & At, pt = At >>> 13, Bt = 0 | P[9], ct = 8191 & Bt, K = Bt >>> 13;
|
|
2260
2260
|
g.negative = f.negative ^ p.negative, g.length = 19;
|
|
2261
|
-
var Q = (j + (m = Math.imul(
|
|
2261
|
+
var Q = (j + (m = Math.imul($, re)) | 0) + ((8191 & (u = (u = Math.imul($, le)) + Math.imul(V, re) | 0)) << 13) | 0;
|
|
2262
2262
|
j = ((y = Math.imul(V, le)) + (u >>> 13) | 0) + (Q >>> 26) | 0, Q &= 67108863, m = Math.imul(D, re), u = (u = Math.imul(D, le)) + Math.imul(G, re) | 0, y = Math.imul(G, le);
|
|
2263
|
-
var st = (j + (m = m + Math.imul(
|
|
2263
|
+
var st = (j + (m = m + Math.imul($, he) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, T) | 0) + Math.imul(V, he) | 0)) << 13) | 0;
|
|
2264
2264
|
j = ((y = y + Math.imul(V, T) | 0) + (u >>> 13) | 0) + (st >>> 26) | 0, st &= 67108863, m = Math.imul(ot, re), u = (u = Math.imul(ot, le)) + Math.imul(mt, re) | 0, y = Math.imul(mt, le), m = m + Math.imul(D, he) | 0, u = (u = u + Math.imul(D, T) | 0) + Math.imul(G, he) | 0, y = y + Math.imul(G, T) | 0;
|
|
2265
|
-
var tt = (j + (m = m + Math.imul(
|
|
2265
|
+
var tt = (j + (m = m + Math.imul($, B) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, b) | 0) + Math.imul(V, B) | 0)) << 13) | 0;
|
|
2266
2266
|
j = ((y = y + Math.imul(V, b) | 0) + (u >>> 13) | 0) + (tt >>> 26) | 0, tt &= 67108863, m = Math.imul(lt, re), u = (u = Math.imul(lt, le)) + Math.imul(kt, re) | 0, y = Math.imul(kt, le), m = m + Math.imul(ot, he) | 0, u = (u = u + Math.imul(ot, T) | 0) + Math.imul(mt, he) | 0, y = y + Math.imul(mt, T) | 0, m = m + Math.imul(D, B) | 0, u = (u = u + Math.imul(D, b) | 0) + Math.imul(G, B) | 0, y = y + Math.imul(G, b) | 0;
|
|
2267
|
-
var et = (j + (m = m + Math.imul(U
|
|
2268
|
-
j = ((y = y + Math.imul(V, F) | 0) + (u >>> 13) | 0) + (et >>> 26) | 0, et &= 67108863, m = Math.imul(Lt, re), u = (u = Math.imul(Lt, le)) + Math.imul(se, re) | 0, y = Math.imul(se, le), m = m + Math.imul(lt, he) | 0, u = (u = u + Math.imul(lt, T) | 0) + Math.imul(kt, he) | 0, y = y + Math.imul(kt, T) | 0, m = m + Math.imul(ot, B) | 0, u = (u = u + Math.imul(ot, b) | 0) + Math.imul(mt, B) | 0, y = y + Math.imul(mt, b) | 0, m = m + Math.imul(D,
|
|
2269
|
-
var rt = (j + (m = m + Math.imul(
|
|
2270
|
-
j = ((y = y + Math.imul(V, Y) | 0) + (u >>> 13) | 0) + (rt >>> 26) | 0, rt &= 67108863, m = Math.imul(Wt, re), u = (u = Math.imul(Wt, le)) + Math.imul(te, re) | 0, y = Math.imul(te, le), m = m + Math.imul(Lt, he) | 0, u = (u = u + Math.imul(Lt, T) | 0) + Math.imul(se, he) | 0, y = y + Math.imul(se, T) | 0, m = m + Math.imul(lt, B) | 0, u = (u = u + Math.imul(lt, b) | 0) + Math.imul(kt, B) | 0, y = y + Math.imul(kt, b) | 0, m = m + Math.imul(ot,
|
|
2271
|
-
var Ct = (j + (m = m + Math.imul(
|
|
2272
|
-
j = ((y = y + Math.imul(V, dt) | 0) + (u >>> 13) | 0) + (Ct >>> 26) | 0, Ct &= 67108863, m = Math.imul(oe, re), u = (u = Math.imul(oe, le)) + Math.imul(Zt, re) | 0, y = Math.imul(Zt, le), m = m + Math.imul(Wt, he) | 0, u = (u = u + Math.imul(Wt, T) | 0) + Math.imul(te, he) | 0, y = y + Math.imul(te, T) | 0, m = m + Math.imul(Lt, B) | 0, u = (u = u + Math.imul(Lt, b) | 0) + Math.imul(se, B) | 0, y = y + Math.imul(se, b) | 0, m = m + Math.imul(lt,
|
|
2273
|
-
var jt = (j + (m = m + Math.imul(
|
|
2274
|
-
j = ((y = y + Math.imul(V, ht) | 0) + (u >>> 13) | 0) + (jt >>> 26) | 0, jt &= 67108863, m = Math.imul(ne, re), u = (u = Math.imul(ne, le)) + Math.imul(ae, re) | 0, y = Math.imul(ae, le), m = m + Math.imul(oe, he) | 0, u = (u = u + Math.imul(oe, T) | 0) + Math.imul(Zt, he) | 0, y = y + Math.imul(Zt, T) | 0, m = m + Math.imul(Wt, B) | 0, u = (u = u + Math.imul(Wt, b) | 0) + Math.imul(te, B) | 0, y = y + Math.imul(te, b) | 0, m = m + Math.imul(Lt,
|
|
2275
|
-
var Ot = (j + (m = m + Math.imul(
|
|
2276
|
-
j = ((y = y + Math.imul(V, ut) | 0) + (u >>> 13) | 0) + (Ot >>> 26) | 0, Ot &= 67108863, m = Math.imul(ie, re), u = (u = Math.imul(ie, le)) + Math.imul(ce, re) | 0, y = Math.imul(ce, le), m = m + Math.imul(ne, he) | 0, u = (u = u + Math.imul(ne, T) | 0) + Math.imul(ae, he) | 0, y = y + Math.imul(ae, T) | 0, m = m + Math.imul(oe, B) | 0, u = (u = u + Math.imul(oe, b) | 0) + Math.imul(Zt, B) | 0, y = y + Math.imul(Zt, b) | 0, m = m + Math.imul(Wt,
|
|
2277
|
-
var Vt = (j + (m = m + Math.imul(
|
|
2278
|
-
j = ((y = y + Math.imul(V, pt) | 0) + (u >>> 13) | 0) + (Vt >>> 26) | 0, Vt &= 67108863, m = Math.imul(de, re), u = (u = Math.imul(de, le)) + Math.imul(ee, re) | 0, y = Math.imul(ee, le), m = m + Math.imul(ie, he) | 0, u = (u = u + Math.imul(ie, T) | 0) + Math.imul(ce, he) | 0, y = y + Math.imul(ce, T) | 0, m = m + Math.imul(ne, B) | 0, u = (u = u + Math.imul(ne, b) | 0) + Math.imul(ae, B) | 0, y = y + Math.imul(ae, b) | 0, m = m + Math.imul(oe,
|
|
2279
|
-
var Yt = (j + (m = m + Math.imul(
|
|
2280
|
-
j = ((y = y + Math.imul(V, K) | 0) + (u >>> 13) | 0) + (Yt >>> 26) | 0, Yt &= 67108863, m = Math.imul(de, he), u = (u = Math.imul(de, T)) + Math.imul(ee, he) | 0, y = Math.imul(ee, T), m = m + Math.imul(ie, B) | 0, u = (u = u + Math.imul(ie, b) | 0) + Math.imul(ce, B) | 0, y = y + Math.imul(ce, b) | 0, m = m + Math.imul(ne,
|
|
2267
|
+
var et = (j + (m = m + Math.imul($, U) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, F) | 0) + Math.imul(V, U) | 0)) << 13) | 0;
|
|
2268
|
+
j = ((y = y + Math.imul(V, F) | 0) + (u >>> 13) | 0) + (et >>> 26) | 0, et &= 67108863, m = Math.imul(Lt, re), u = (u = Math.imul(Lt, le)) + Math.imul(se, re) | 0, y = Math.imul(se, le), m = m + Math.imul(lt, he) | 0, u = (u = u + Math.imul(lt, T) | 0) + Math.imul(kt, he) | 0, y = y + Math.imul(kt, T) | 0, m = m + Math.imul(ot, B) | 0, u = (u = u + Math.imul(ot, b) | 0) + Math.imul(mt, B) | 0, y = y + Math.imul(mt, b) | 0, m = m + Math.imul(D, U) | 0, u = (u = u + Math.imul(D, F) | 0) + Math.imul(G, U) | 0, y = y + Math.imul(G, F) | 0;
|
|
2269
|
+
var rt = (j + (m = m + Math.imul($, q) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, Y) | 0) + Math.imul(V, q) | 0)) << 13) | 0;
|
|
2270
|
+
j = ((y = y + Math.imul(V, Y) | 0) + (u >>> 13) | 0) + (rt >>> 26) | 0, rt &= 67108863, m = Math.imul(Wt, re), u = (u = Math.imul(Wt, le)) + Math.imul(te, re) | 0, y = Math.imul(te, le), m = m + Math.imul(Lt, he) | 0, u = (u = u + Math.imul(Lt, T) | 0) + Math.imul(se, he) | 0, y = y + Math.imul(se, T) | 0, m = m + Math.imul(lt, B) | 0, u = (u = u + Math.imul(lt, b) | 0) + Math.imul(kt, B) | 0, y = y + Math.imul(kt, b) | 0, m = m + Math.imul(ot, U) | 0, u = (u = u + Math.imul(ot, F) | 0) + Math.imul(mt, U) | 0, y = y + Math.imul(mt, F) | 0, m = m + Math.imul(D, q) | 0, u = (u = u + Math.imul(D, Y) | 0) + Math.imul(G, q) | 0, y = y + Math.imul(G, Y) | 0;
|
|
2271
|
+
var Ct = (j + (m = m + Math.imul($, X) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, dt) | 0) + Math.imul(V, X) | 0)) << 13) | 0;
|
|
2272
|
+
j = ((y = y + Math.imul(V, dt) | 0) + (u >>> 13) | 0) + (Ct >>> 26) | 0, Ct &= 67108863, m = Math.imul(oe, re), u = (u = Math.imul(oe, le)) + Math.imul(Zt, re) | 0, y = Math.imul(Zt, le), m = m + Math.imul(Wt, he) | 0, u = (u = u + Math.imul(Wt, T) | 0) + Math.imul(te, he) | 0, y = y + Math.imul(te, T) | 0, m = m + Math.imul(Lt, B) | 0, u = (u = u + Math.imul(Lt, b) | 0) + Math.imul(se, B) | 0, y = y + Math.imul(se, b) | 0, m = m + Math.imul(lt, U) | 0, u = (u = u + Math.imul(lt, F) | 0) + Math.imul(kt, U) | 0, y = y + Math.imul(kt, F) | 0, m = m + Math.imul(ot, q) | 0, u = (u = u + Math.imul(ot, Y) | 0) + Math.imul(mt, q) | 0, y = y + Math.imul(mt, Y) | 0, m = m + Math.imul(D, X) | 0, u = (u = u + Math.imul(D, dt) | 0) + Math.imul(G, X) | 0, y = y + Math.imul(G, dt) | 0;
|
|
2273
|
+
var jt = (j + (m = m + Math.imul($, nt) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, ht) | 0) + Math.imul(V, nt) | 0)) << 13) | 0;
|
|
2274
|
+
j = ((y = y + Math.imul(V, ht) | 0) + (u >>> 13) | 0) + (jt >>> 26) | 0, jt &= 67108863, m = Math.imul(ne, re), u = (u = Math.imul(ne, le)) + Math.imul(ae, re) | 0, y = Math.imul(ae, le), m = m + Math.imul(oe, he) | 0, u = (u = u + Math.imul(oe, T) | 0) + Math.imul(Zt, he) | 0, y = y + Math.imul(Zt, T) | 0, m = m + Math.imul(Wt, B) | 0, u = (u = u + Math.imul(Wt, b) | 0) + Math.imul(te, B) | 0, y = y + Math.imul(te, b) | 0, m = m + Math.imul(Lt, U) | 0, u = (u = u + Math.imul(Lt, F) | 0) + Math.imul(se, U) | 0, y = y + Math.imul(se, F) | 0, m = m + Math.imul(lt, q) | 0, u = (u = u + Math.imul(lt, Y) | 0) + Math.imul(kt, q) | 0, y = y + Math.imul(kt, Y) | 0, m = m + Math.imul(ot, X) | 0, u = (u = u + Math.imul(ot, dt) | 0) + Math.imul(mt, X) | 0, y = y + Math.imul(mt, dt) | 0, m = m + Math.imul(D, nt) | 0, u = (u = u + Math.imul(D, ht) | 0) + Math.imul(G, nt) | 0, y = y + Math.imul(G, ht) | 0;
|
|
2275
|
+
var Ot = (j + (m = m + Math.imul($, at) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, ut) | 0) + Math.imul(V, at) | 0)) << 13) | 0;
|
|
2276
|
+
j = ((y = y + Math.imul(V, ut) | 0) + (u >>> 13) | 0) + (Ot >>> 26) | 0, Ot &= 67108863, m = Math.imul(ie, re), u = (u = Math.imul(ie, le)) + Math.imul(ce, re) | 0, y = Math.imul(ce, le), m = m + Math.imul(ne, he) | 0, u = (u = u + Math.imul(ne, T) | 0) + Math.imul(ae, he) | 0, y = y + Math.imul(ae, T) | 0, m = m + Math.imul(oe, B) | 0, u = (u = u + Math.imul(oe, b) | 0) + Math.imul(Zt, B) | 0, y = y + Math.imul(Zt, b) | 0, m = m + Math.imul(Wt, U) | 0, u = (u = u + Math.imul(Wt, F) | 0) + Math.imul(te, U) | 0, y = y + Math.imul(te, F) | 0, m = m + Math.imul(Lt, q) | 0, u = (u = u + Math.imul(Lt, Y) | 0) + Math.imul(se, q) | 0, y = y + Math.imul(se, Y) | 0, m = m + Math.imul(lt, X) | 0, u = (u = u + Math.imul(lt, dt) | 0) + Math.imul(kt, X) | 0, y = y + Math.imul(kt, dt) | 0, m = m + Math.imul(ot, nt) | 0, u = (u = u + Math.imul(ot, ht) | 0) + Math.imul(mt, nt) | 0, y = y + Math.imul(mt, ht) | 0, m = m + Math.imul(D, at) | 0, u = (u = u + Math.imul(D, ut) | 0) + Math.imul(G, at) | 0, y = y + Math.imul(G, ut) | 0;
|
|
2277
|
+
var Vt = (j + (m = m + Math.imul($, it) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, pt) | 0) + Math.imul(V, it) | 0)) << 13) | 0;
|
|
2278
|
+
j = ((y = y + Math.imul(V, pt) | 0) + (u >>> 13) | 0) + (Vt >>> 26) | 0, Vt &= 67108863, m = Math.imul(de, re), u = (u = Math.imul(de, le)) + Math.imul(ee, re) | 0, y = Math.imul(ee, le), m = m + Math.imul(ie, he) | 0, u = (u = u + Math.imul(ie, T) | 0) + Math.imul(ce, he) | 0, y = y + Math.imul(ce, T) | 0, m = m + Math.imul(ne, B) | 0, u = (u = u + Math.imul(ne, b) | 0) + Math.imul(ae, B) | 0, y = y + Math.imul(ae, b) | 0, m = m + Math.imul(oe, U) | 0, u = (u = u + Math.imul(oe, F) | 0) + Math.imul(Zt, U) | 0, y = y + Math.imul(Zt, F) | 0, m = m + Math.imul(Wt, q) | 0, u = (u = u + Math.imul(Wt, Y) | 0) + Math.imul(te, q) | 0, y = y + Math.imul(te, Y) | 0, m = m + Math.imul(Lt, X) | 0, u = (u = u + Math.imul(Lt, dt) | 0) + Math.imul(se, X) | 0, y = y + Math.imul(se, dt) | 0, m = m + Math.imul(lt, nt) | 0, u = (u = u + Math.imul(lt, ht) | 0) + Math.imul(kt, nt) | 0, y = y + Math.imul(kt, ht) | 0, m = m + Math.imul(ot, at) | 0, u = (u = u + Math.imul(ot, ut) | 0) + Math.imul(mt, at) | 0, y = y + Math.imul(mt, ut) | 0, m = m + Math.imul(D, it) | 0, u = (u = u + Math.imul(D, pt) | 0) + Math.imul(G, it) | 0, y = y + Math.imul(G, pt) | 0;
|
|
2279
|
+
var Yt = (j + (m = m + Math.imul($, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul($, K) | 0) + Math.imul(V, ct) | 0)) << 13) | 0;
|
|
2280
|
+
j = ((y = y + Math.imul(V, K) | 0) + (u >>> 13) | 0) + (Yt >>> 26) | 0, Yt &= 67108863, m = Math.imul(de, he), u = (u = Math.imul(de, T)) + Math.imul(ee, he) | 0, y = Math.imul(ee, T), m = m + Math.imul(ie, B) | 0, u = (u = u + Math.imul(ie, b) | 0) + Math.imul(ce, B) | 0, y = y + Math.imul(ce, b) | 0, m = m + Math.imul(ne, U) | 0, u = (u = u + Math.imul(ne, F) | 0) + Math.imul(ae, U) | 0, y = y + Math.imul(ae, F) | 0, m = m + Math.imul(oe, q) | 0, u = (u = u + Math.imul(oe, Y) | 0) + Math.imul(Zt, q) | 0, y = y + Math.imul(Zt, Y) | 0, m = m + Math.imul(Wt, X) | 0, u = (u = u + Math.imul(Wt, dt) | 0) + Math.imul(te, X) | 0, y = y + Math.imul(te, dt) | 0, m = m + Math.imul(Lt, nt) | 0, u = (u = u + Math.imul(Lt, ht) | 0) + Math.imul(se, nt) | 0, y = y + Math.imul(se, ht) | 0, m = m + Math.imul(lt, at) | 0, u = (u = u + Math.imul(lt, ut) | 0) + Math.imul(kt, at) | 0, y = y + Math.imul(kt, ut) | 0, m = m + Math.imul(ot, it) | 0, u = (u = u + Math.imul(ot, pt) | 0) + Math.imul(mt, it) | 0, y = y + Math.imul(mt, pt) | 0;
|
|
2281
2281
|
var Jt = (j + (m = m + Math.imul(D, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(D, K) | 0) + Math.imul(G, ct) | 0)) << 13) | 0;
|
|
2282
|
-
j = ((y = y + Math.imul(G, K) | 0) + (u >>> 13) | 0) + (Jt >>> 26) | 0, Jt &= 67108863, m = Math.imul(de, B), u = (u = Math.imul(de, b)) + Math.imul(ee, B) | 0, y = Math.imul(ee, b), m = m + Math.imul(ie,
|
|
2282
|
+
j = ((y = y + Math.imul(G, K) | 0) + (u >>> 13) | 0) + (Jt >>> 26) | 0, Jt &= 67108863, m = Math.imul(de, B), u = (u = Math.imul(de, b)) + Math.imul(ee, B) | 0, y = Math.imul(ee, b), m = m + Math.imul(ie, U) | 0, u = (u = u + Math.imul(ie, F) | 0) + Math.imul(ce, U) | 0, y = y + Math.imul(ce, F) | 0, m = m + Math.imul(ne, q) | 0, u = (u = u + Math.imul(ne, Y) | 0) + Math.imul(ae, q) | 0, y = y + Math.imul(ae, Y) | 0, m = m + Math.imul(oe, X) | 0, u = (u = u + Math.imul(oe, dt) | 0) + Math.imul(Zt, X) | 0, y = y + Math.imul(Zt, dt) | 0, m = m + Math.imul(Wt, nt) | 0, u = (u = u + Math.imul(Wt, ht) | 0) + Math.imul(te, nt) | 0, y = y + Math.imul(te, ht) | 0, m = m + Math.imul(Lt, at) | 0, u = (u = u + Math.imul(Lt, ut) | 0) + Math.imul(se, at) | 0, y = y + Math.imul(se, ut) | 0, m = m + Math.imul(lt, it) | 0, u = (u = u + Math.imul(lt, pt) | 0) + Math.imul(kt, it) | 0, y = y + Math.imul(kt, pt) | 0;
|
|
2283
2283
|
var St = (j + (m = m + Math.imul(ot, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(ot, K) | 0) + Math.imul(mt, ct) | 0)) << 13) | 0;
|
|
2284
|
-
j = ((y = y + Math.imul(mt, K) | 0) + (u >>> 13) | 0) + (St >>> 26) | 0, St &= 67108863, m = Math.imul(de,
|
|
2284
|
+
j = ((y = y + Math.imul(mt, K) | 0) + (u >>> 13) | 0) + (St >>> 26) | 0, St &= 67108863, m = Math.imul(de, U), u = (u = Math.imul(de, F)) + Math.imul(ee, U) | 0, y = Math.imul(ee, F), m = m + Math.imul(ie, q) | 0, u = (u = u + Math.imul(ie, Y) | 0) + Math.imul(ce, q) | 0, y = y + Math.imul(ce, Y) | 0, m = m + Math.imul(ne, X) | 0, u = (u = u + Math.imul(ne, dt) | 0) + Math.imul(ae, X) | 0, y = y + Math.imul(ae, dt) | 0, m = m + Math.imul(oe, nt) | 0, u = (u = u + Math.imul(oe, ht) | 0) + Math.imul(Zt, nt) | 0, y = y + Math.imul(Zt, ht) | 0, m = m + Math.imul(Wt, at) | 0, u = (u = u + Math.imul(Wt, ut) | 0) + Math.imul(te, at) | 0, y = y + Math.imul(te, ut) | 0, m = m + Math.imul(Lt, it) | 0, u = (u = u + Math.imul(Lt, pt) | 0) + Math.imul(se, it) | 0, y = y + Math.imul(se, pt) | 0;
|
|
2285
2285
|
var Tt = (j + (m = m + Math.imul(lt, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(lt, K) | 0) + Math.imul(kt, ct) | 0)) << 13) | 0;
|
|
2286
2286
|
j = ((y = y + Math.imul(kt, K) | 0) + (u >>> 13) | 0) + (Tt >>> 26) | 0, Tt &= 67108863, m = Math.imul(de, q), u = (u = Math.imul(de, Y)) + Math.imul(ee, q) | 0, y = Math.imul(ee, Y), m = m + Math.imul(ie, X) | 0, u = (u = u + Math.imul(ie, dt) | 0) + Math.imul(ce, X) | 0, y = y + Math.imul(ce, dt) | 0, m = m + Math.imul(ne, nt) | 0, u = (u = u + Math.imul(ne, ht) | 0) + Math.imul(ae, nt) | 0, y = y + Math.imul(ae, ht) | 0, m = m + Math.imul(oe, at) | 0, u = (u = u + Math.imul(oe, ut) | 0) + Math.imul(Zt, at) | 0, y = y + Math.imul(Zt, ut) | 0, m = m + Math.imul(Wt, it) | 0, u = (u = u + Math.imul(Wt, pt) | 0) + Math.imul(te, it) | 0, y = y + Math.imul(te, pt) | 0;
|
|
2287
2287
|
var Rt = (j + (m = m + Math.imul(Lt, ct) | 0) | 0) + ((8191 & (u = (u = u + Math.imul(Lt, K) | 0) + Math.imul(se, ct) | 0)) << 13) | 0;
|
|
@@ -2310,11 +2310,11 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2310
2310
|
for (var P = 0, N = 0, j = 0; j < w.length - 1; j++) {
|
|
2311
2311
|
var Z = N;
|
|
2312
2312
|
N = 0;
|
|
2313
|
-
for (var
|
|
2313
|
+
for (var $ = 67108863 & P, V = Math.min(j, y.length - 1), H = Math.max(0, j - u.length + 1); H <= V; H++) {
|
|
2314
2314
|
var D = j - H, G = (0 | u.words[D]) * (0 | y.words[H]), Et = 67108863 & G;
|
|
2315
|
-
|
|
2315
|
+
$ = 67108863 & (Et = Et + $ | 0), N += (Z = (Z = Z + (G / 67108864 | 0) | 0) + (Et >>> 26) | 0) >>> 26, Z &= 67108863;
|
|
2316
2316
|
}
|
|
2317
|
-
w.words[j] =
|
|
2317
|
+
w.words[j] = $, P = Z, Z = N;
|
|
2318
2318
|
}
|
|
2319
2319
|
return P !== 0 ? w.words[j] = P : w.length--, w.strip();
|
|
2320
2320
|
}(this, f, p) : A(this, f, p), g;
|
|
@@ -2329,9 +2329,9 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2329
2329
|
for (var w = 0; w < y; w++) m[w] = p[f[w]], u[w] = g[f[w]];
|
|
2330
2330
|
}, I.prototype.transform = function(f, p, g, m, u, y) {
|
|
2331
2331
|
this.permute(y, f, p, g, m, u);
|
|
2332
|
-
for (var w = 1; w < u; w <<= 1) for (var P = w << 1, N = Math.cos(2 * Math.PI / P), j = Math.sin(2 * Math.PI / P), Z = 0; Z < u; Z += P) for (var
|
|
2333
|
-
var D = g[Z + H], G = m[Z + H], Et = g[Z + H + w], ot = m[Z + H + w], mt =
|
|
2334
|
-
ot =
|
|
2332
|
+
for (var w = 1; w < u; w <<= 1) for (var P = w << 1, N = Math.cos(2 * Math.PI / P), j = Math.sin(2 * Math.PI / P), Z = 0; Z < u; Z += P) for (var $ = N, V = j, H = 0; H < w; H++) {
|
|
2333
|
+
var D = g[Z + H], G = m[Z + H], Et = g[Z + H + w], ot = m[Z + H + w], mt = $ * Et - V * ot;
|
|
2334
|
+
ot = $ * ot + V * Et, Et = mt, g[Z + H] = D + Et, m[Z + H] = G + ot, g[Z + H + w] = D - Et, m[Z + H + w] = G - ot, H !== P && (mt = N * $ - j * V, V = N * V + j * $, $ = mt);
|
|
2335
2335
|
}
|
|
2336
2336
|
}, I.prototype.guessLen13b = function(f, p) {
|
|
2337
2337
|
var g = 1 | Math.max(p, f), m = 1 & g, u = 0;
|
|
@@ -2356,11 +2356,11 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2356
2356
|
for (var p = new Array(f), g = 0; g < f; g++) p[g] = 0;
|
|
2357
2357
|
return p;
|
|
2358
2358
|
}, I.prototype.mulp = function(f, p, g) {
|
|
2359
|
-
var m = 2 * this.guessLen13b(f.length, p.length), u = this.makeRBT(m), y = this.stub(m), w = new Array(m), P = new Array(m), N = new Array(m), j = new Array(m), Z = new Array(m),
|
|
2360
|
-
V.length = m, this.convert13b(f.words, f.length, w, m), this.convert13b(p.words, p.length, j, m), this.transform(w, y, P, N, m, u), this.transform(j, y, Z,
|
|
2359
|
+
var m = 2 * this.guessLen13b(f.length, p.length), u = this.makeRBT(m), y = this.stub(m), w = new Array(m), P = new Array(m), N = new Array(m), j = new Array(m), Z = new Array(m), $ = new Array(m), V = g.words;
|
|
2360
|
+
V.length = m, this.convert13b(f.words, f.length, w, m), this.convert13b(p.words, p.length, j, m), this.transform(w, y, P, N, m, u), this.transform(j, y, Z, $, m, u);
|
|
2361
2361
|
for (var H = 0; H < m; H++) {
|
|
2362
|
-
var D = P[H] * Z[H] - N[H] *
|
|
2363
|
-
N[H] = P[H] *
|
|
2362
|
+
var D = P[H] * Z[H] - N[H] * $[H];
|
|
2363
|
+
N[H] = P[H] * $[H] + N[H] * Z[H], P[H] = D;
|
|
2364
2364
|
}
|
|
2365
2365
|
return this.conjugate(P, N, m), this.transform(P, N, V, y, m, u), this.conjugate(V, y, m), this.normalize13b(V, m), g.negative = f.negative ^ p.negative, g.length = f.length + p.length, g.strip();
|
|
2366
2366
|
}, i.prototype.mul = function(f) {
|
|
@@ -2500,9 +2500,9 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2500
2500
|
var j = m.clone()._ishlnsubmul(u, 1, P);
|
|
2501
2501
|
j.negative === 0 && (m = j, w && (w.words[P] = 1));
|
|
2502
2502
|
for (var Z = P - 1; Z >= 0; Z--) {
|
|
2503
|
-
var
|
|
2504
|
-
for (
|
|
2505
|
-
w && (w.words[Z] =
|
|
2503
|
+
var $ = 67108864 * (0 | m.words[u.length + Z]) + (0 | m.words[u.length + Z - 1]);
|
|
2504
|
+
for ($ = Math.min($ / y | 0, 67108863), m._ishlnsubmul(u, $, Z); m.negative !== 0; ) $--, m.negative = 0, m._ishlnsubmul(u, 1, Z), m.isZero() || (m.negative ^= 1);
|
|
2505
|
+
w && (w.words[Z] = $);
|
|
2506
2506
|
}
|
|
2507
2507
|
return w && w.strip(), m.strip(), p !== "div" && g !== 0 && m.iushrn(g), { div: w || null, mod: m };
|
|
2508
2508
|
}, i.prototype.divmod = function(f, p, g) {
|
|
@@ -2538,7 +2538,7 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2538
2538
|
p = p.negative !== 0 ? p.umod(f) : p.clone();
|
|
2539
2539
|
for (var m = new i(1), u = new i(0), y = new i(0), w = new i(1), P = 0; p.isEven() && g.isEven(); ) p.iushrn(1), g.iushrn(1), ++P;
|
|
2540
2540
|
for (var N = g.clone(), j = p.clone(); !p.isZero(); ) {
|
|
2541
|
-
for (var Z = 0,
|
|
2541
|
+
for (var Z = 0, $ = 1; !(p.words[0] & $) && Z < 26; ++Z, $ <<= 1) ;
|
|
2542
2542
|
if (Z > 0) for (p.iushrn(Z); Z-- > 0; ) (m.isOdd() || u.isOdd()) && (m.iadd(N), u.isub(j)), m.iushrn(1), u.iushrn(1);
|
|
2543
2543
|
for (var V = 0, H = 1; !(g.words[0] & H) && V < 26; ++V, H <<= 1) ;
|
|
2544
2544
|
if (V > 0) for (g.iushrn(V); V-- > 0; ) (y.isOdd() || w.isOdd()) && (y.iadd(N), w.isub(j)), y.iushrn(1), w.iushrn(1);
|
|
@@ -2794,11 +2794,11 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2794
2794
|
r(!m.isZero());
|
|
2795
2795
|
var y = new i(1).toRed(this), w = y.redNeg(), P = this.m.subn(1).iushrn(1), N = this.m.bitLength();
|
|
2796
2796
|
for (N = new i(2 * N * N).toRed(this); this.pow(N, P).cmp(w) !== 0; ) N.redIAdd(w);
|
|
2797
|
-
for (var j = this.pow(N, m), Z = this.pow(f, m.addn(1).iushrn(1)),
|
|
2798
|
-
for (var H =
|
|
2797
|
+
for (var j = this.pow(N, m), Z = this.pow(f, m.addn(1).iushrn(1)), $ = this.pow(f, m), V = u; $.cmp(y) !== 0; ) {
|
|
2798
|
+
for (var H = $, D = 0; H.cmp(y) !== 0; D++) H = H.redSqr();
|
|
2799
2799
|
r(D < V);
|
|
2800
2800
|
var G = this.pow(j, new i(1).iushln(V - D - 1));
|
|
2801
|
-
Z = Z.redMul(G), j = G.redSqr(),
|
|
2801
|
+
Z = Z.redMul(G), j = G.redSqr(), $ = $.redMul(j), V = D;
|
|
2802
2802
|
}
|
|
2803
2803
|
return Z;
|
|
2804
2804
|
}, L.prototype.invm = function(f) {
|
|
@@ -2843,7 +2843,7 @@ var Xe = {}, Vd = { exports: {} };
|
|
|
2843
2843
|
}, z.prototype.invm = function(f) {
|
|
2844
2844
|
return this.imod(f._invmp(this.m).mul(this.r2))._forceRed(this);
|
|
2845
2845
|
};
|
|
2846
|
-
})(Vd,
|
|
2846
|
+
})(Vd, Ur);
|
|
2847
2847
|
var Fr = Vd.exports, En = Kd;
|
|
2848
2848
|
function Kd(e, t) {
|
|
2849
2849
|
if (!e) throw new Error(t || "Assertion failed");
|
|
@@ -3666,7 +3666,7 @@ function zh(e, t) {
|
|
|
3666
3666
|
var r = kr(e, t, 28) ^ kr(t, e, 2) ^ kr(t, e, 7);
|
|
3667
3667
|
return r < 0 && (r += 4294967296), r;
|
|
3668
3668
|
}
|
|
3669
|
-
function
|
|
3669
|
+
function $h(e, t) {
|
|
3670
3670
|
var r = Er(e, t, 28) ^ Er(t, e, 2) ^ Er(t, e, 7);
|
|
3671
3671
|
return r < 0 && (r += 4294967296), r;
|
|
3672
3672
|
}
|
|
@@ -3674,7 +3674,7 @@ function qh(e, t) {
|
|
|
3674
3674
|
var r = kr(e, t, 14) ^ kr(e, t, 18) ^ kr(t, e, 9);
|
|
3675
3675
|
return r < 0 && (r += 4294967296), r;
|
|
3676
3676
|
}
|
|
3677
|
-
function
|
|
3677
|
+
function Uh(e, t) {
|
|
3678
3678
|
var r = Er(e, t, 14) ^ Er(e, t, 18) ^ Er(t, e, 9);
|
|
3679
3679
|
return r < 0 && (r += 4294967296), r;
|
|
3680
3680
|
}
|
|
@@ -3705,8 +3705,8 @@ hr.blockSize = 1024, hr.outSize = 512, hr.hmacStrength = 192, hr.padLength = 128
|
|
|
3705
3705
|
var r = this.W, n = this.h[0], i = this.h[1], s = this.h[2], a = this.h[3], o = this.h[4], c = this.h[5], d = this.h[6], h = this.h[7], l = this.h[8], _ = this.h[9], v = this.h[10], A = this.h[11], I = this.h[12], x = this.h[13], M = this.h[14], k = this.h[15];
|
|
3706
3706
|
Ih(this.k.length === r.length);
|
|
3707
3707
|
for (var O = 0; O < r.length; O += 2) {
|
|
3708
|
-
var E = M, R = k, L = qh(l, _), z =
|
|
3709
|
-
E = zh(n, i), R =
|
|
3708
|
+
var E = M, R = k, L = qh(l, _), z = Uh(l, _), f = Bh(l, _, v, A, I), p = Ph(l, _, v, A, I, x), g = this.k[O], m = this.k[O + 1], u = r[O], y = r[O + 1], w = Nh(E, R, L, z, f, p, g, m, u, y), P = Oh(E, R, L, z, f, p, g, m, u, y);
|
|
3709
|
+
E = zh(n, i), R = $h(n, i), L = Lh(n, i, s, a, o), z = jh(n, i, s, a, o, c);
|
|
3710
3710
|
var N = Ys(E, R, L, z), j = Qs(E, R, L, z);
|
|
3711
3711
|
M = I, k = x, I = v, x = A, v = l, A = _, l = Ys(d, h, w, P), _ = Qs(h, h, w, P), d = o, h = c, o = s, c = a, s = n, a = i, n = Ys(w, P, N, j), i = Qs(w, P, N, j);
|
|
3712
3712
|
}
|
|
@@ -3715,13 +3715,13 @@ hr.blockSize = 1024, hr.outSize = 512, hr.hmacStrength = 192, hr.padLength = 128
|
|
|
3715
3715
|
return e === "hex" ? Ge.toHex32(this.h, "big") : Ge.split32(this.h, "big");
|
|
3716
3716
|
};
|
|
3717
3717
|
var So = Kt, s1 = i1;
|
|
3718
|
-
function
|
|
3719
|
-
if (!(this instanceof
|
|
3718
|
+
function $r() {
|
|
3719
|
+
if (!(this instanceof $r)) return new $r();
|
|
3720
3720
|
s1.call(this), this.h = [3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, 3204075428];
|
|
3721
3721
|
}
|
|
3722
|
-
So.inherits(
|
|
3723
|
-
var Vh =
|
|
3724
|
-
|
|
3722
|
+
So.inherits($r, s1);
|
|
3723
|
+
var Vh = $r;
|
|
3724
|
+
$r.blockSize = 1024, $r.outSize = 384, $r.hmacStrength = 192, $r.padLength = 128, $r.prototype._digest = function(e) {
|
|
3725
3725
|
return e === "hex" ? So.toHex32(this.h.slice(0, 12), "big") : So.split32(this.h.slice(0, 12), "big");
|
|
3726
3726
|
}, Nn.sha1 = ph, Nn.sha224 = Eh, Nn.sha256 = Xd, Nn.sha384 = Vh, Nn.sha512 = i1;
|
|
3727
3727
|
var o1 = {}, gn = Kt, Kh = ti, Yi = gn.rotl32, t0 = gn.sum32, si = gn.sum32_3, e0 = gn.sum32_4, a1 = Kh.BlockHash;
|
|
@@ -3813,33 +3813,33 @@ Xr.prototype._init = function(e, t, r) {
|
|
|
3813
3813
|
return this._update(r), this._reseed++, mn.encode(s, t);
|
|
3814
3814
|
};
|
|
3815
3815
|
var su = Fr, Gs = Xe.assert;
|
|
3816
|
-
function
|
|
3816
|
+
function $e(e, t) {
|
|
3817
3817
|
this.ec = e, this.priv = null, this.pub = null, t.priv && this._importPrivate(t.priv, t.privEnc), t.pub && this._importPublic(t.pub, t.pubEnc);
|
|
3818
3818
|
}
|
|
3819
|
-
var ou =
|
|
3820
|
-
|
|
3821
|
-
return t instanceof
|
|
3822
|
-
},
|
|
3823
|
-
return t instanceof
|
|
3824
|
-
},
|
|
3819
|
+
var ou = $e;
|
|
3820
|
+
$e.fromPublic = function(e, t, r) {
|
|
3821
|
+
return t instanceof $e ? t : new $e(e, { pub: t, pubEnc: r });
|
|
3822
|
+
}, $e.fromPrivate = function(e, t, r) {
|
|
3823
|
+
return t instanceof $e ? t : new $e(e, { priv: t, privEnc: r });
|
|
3824
|
+
}, $e.prototype.validate = function() {
|
|
3825
3825
|
var e = this.getPublic();
|
|
3826
3826
|
return e.isInfinity() ? { result: !1, reason: "Invalid public key" } : e.validate() ? e.mul(this.ec.curve.n).isInfinity() ? { result: !0, reason: null } : { result: !1, reason: "Public key * N != O" } : { result: !1, reason: "Public key is not a point" };
|
|
3827
|
-
},
|
|
3827
|
+
}, $e.prototype.getPublic = function(e, t) {
|
|
3828
3828
|
return typeof e == "string" && (t = e, e = null), this.pub || (this.pub = this.ec.g.mul(this.priv)), t ? this.pub.encode(t, e) : this.pub;
|
|
3829
|
-
},
|
|
3829
|
+
}, $e.prototype.getPrivate = function(e) {
|
|
3830
3830
|
return e === "hex" ? this.priv.toString(16, 2) : this.priv;
|
|
3831
|
-
},
|
|
3831
|
+
}, $e.prototype._importPrivate = function(e, t) {
|
|
3832
3832
|
this.priv = new su(e, t || 16), this.priv = this.priv.umod(this.ec.curve.n);
|
|
3833
|
-
},
|
|
3833
|
+
}, $e.prototype._importPublic = function(e, t) {
|
|
3834
3834
|
if (e.x || e.y) return this.ec.curve.type === "mont" ? Gs(e.x, "Need x coordinate") : this.ec.curve.type !== "short" && this.ec.curve.type !== "edwards" || Gs(e.x && e.y, "Need both x and y coordinate"), void (this.pub = this.ec.curve.point(e.x, e.y));
|
|
3835
3835
|
this.pub = this.ec.curve.decodePoint(e, t);
|
|
3836
|
-
},
|
|
3836
|
+
}, $e.prototype.derive = function(e) {
|
|
3837
3837
|
return e.validate() || Gs(e.validate(), "public point not validated"), e.mul(this.priv).getX();
|
|
3838
|
-
},
|
|
3838
|
+
}, $e.prototype.sign = function(e, t, r) {
|
|
3839
3839
|
return this.ec.sign(e, this, t, r);
|
|
3840
|
-
},
|
|
3840
|
+
}, $e.prototype.verify = function(e, t, r) {
|
|
3841
3841
|
return this.ec.verify(e, t, this, void 0, r);
|
|
3842
|
-
},
|
|
3842
|
+
}, $e.prototype.inspect = function() {
|
|
3843
3843
|
return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
|
|
3844
3844
|
};
|
|
3845
3845
|
var us = Fr, ko = Xe, au = ko.assert;
|
|
@@ -4176,7 +4176,7 @@ class Eu extends Ce {
|
|
|
4176
4176
|
super(`"${t}"`), this.code = 802;
|
|
4177
4177
|
}
|
|
4178
4178
|
}
|
|
4179
|
-
class
|
|
4179
|
+
class $i extends Ce {
|
|
4180
4180
|
constructor(t, r) {
|
|
4181
4181
|
super(t), this.code = 500, r && (this.errorCode = r.code, this.errorReason = r.reason);
|
|
4182
4182
|
}
|
|
@@ -4184,22 +4184,22 @@ class Ui extends Ce {
|
|
|
4184
4184
|
return Object.assign(Object.assign({}, super.toJSON()), { errorCode: this.errorCode, errorReason: this.errorReason });
|
|
4185
4185
|
}
|
|
4186
4186
|
}
|
|
4187
|
-
class
|
|
4187
|
+
class $o extends $i {
|
|
4188
4188
|
constructor(t) {
|
|
4189
4189
|
super("Connection not open", t), this.code = 503;
|
|
4190
4190
|
}
|
|
4191
4191
|
}
|
|
4192
|
-
class Mu extends
|
|
4192
|
+
class Mu extends $i {
|
|
4193
4193
|
constructor(t) {
|
|
4194
4194
|
super(`Maximum number of reconnect attempts reached! (${t})`), this.code = 505;
|
|
4195
4195
|
}
|
|
4196
4196
|
}
|
|
4197
|
-
class Iu extends
|
|
4197
|
+
class Iu extends $i {
|
|
4198
4198
|
constructor() {
|
|
4199
4199
|
super("CONNECTION ERROR: Provider started to reconnect before the response got received!"), this.code = 506;
|
|
4200
4200
|
}
|
|
4201
4201
|
}
|
|
4202
|
-
class Tu extends
|
|
4202
|
+
class Tu extends $i {
|
|
4203
4203
|
constructor(t) {
|
|
4204
4204
|
super(`Request already sent with following id: ${t}`), this.code = 507;
|
|
4205
4205
|
}
|
|
@@ -4224,7 +4224,7 @@ class Nu extends Ce {
|
|
|
4224
4224
|
super(...arguments), this.code = 604;
|
|
4225
4225
|
}
|
|
4226
4226
|
}
|
|
4227
|
-
class
|
|
4227
|
+
class Uo extends pa {
|
|
4228
4228
|
constructor(t) {
|
|
4229
4229
|
super(t, "can not parse as byte data"), this.code = 1002;
|
|
4230
4230
|
}
|
|
@@ -4373,16 +4373,16 @@ function zu(e, t = !1) {
|
|
|
4373
4373
|
}
|
|
4374
4374
|
return [r, n];
|
|
4375
4375
|
}
|
|
4376
|
-
const ro = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0, no = (e) => new DataView(e.buffer, e.byteOffset, e.byteLength), yr = (e, t) => e << 32 - t | e >>> t, v0 = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68,
|
|
4376
|
+
const ro = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0, no = (e) => new DataView(e.buffer, e.byteOffset, e.byteLength), yr = (e, t) => e << 32 - t | e >>> t, v0 = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, $u = (e) => e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
4377
4377
|
function _0(e) {
|
|
4378
|
-
for (let t = 0; t < e.length; t++) e[t] =
|
|
4378
|
+
for (let t = 0; t < e.length; t++) e[t] = $u(e[t]);
|
|
4379
4379
|
}
|
|
4380
|
-
function
|
|
4380
|
+
function Un(e) {
|
|
4381
4381
|
if (typeof e != "string") throw new Error("utf8ToBytes expected string, got " + typeof e);
|
|
4382
4382
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
4383
4383
|
}
|
|
4384
4384
|
function Ls(e) {
|
|
4385
|
-
return typeof e == "string" && (e =
|
|
4385
|
+
return typeof e == "string" && (e = Un(e)), ri(e), e;
|
|
4386
4386
|
}
|
|
4387
4387
|
class ya {
|
|
4388
4388
|
clone() {
|
|
@@ -4397,11 +4397,11 @@ function l1(e = 32) {
|
|
|
4397
4397
|
if (ro && typeof ro.getRandomValues == "function") return ro.getRandomValues(new Uint8Array(e));
|
|
4398
4398
|
throw new Error("crypto.getRandomValues must be defined");
|
|
4399
4399
|
}
|
|
4400
|
-
const p1 = [], m1 = [], b1 = [], qu = BigInt(0), oi = BigInt(1),
|
|
4400
|
+
const p1 = [], m1 = [], b1 = [], qu = BigInt(0), oi = BigInt(1), Uu = BigInt(2), Hu = BigInt(7), Du = BigInt(256), Fu = BigInt(113);
|
|
4401
4401
|
for (let e = 0, t = oi, r = 1, n = 0; e < 24; e++) {
|
|
4402
4402
|
[r, n] = [n, (2 * r + 3 * n) % 5], p1.push(2 * (5 * n + r)), m1.push((e + 1) * (e + 2) / 2 % 64);
|
|
4403
4403
|
let i = qu;
|
|
4404
|
-
for (let s = 0; s < 7; s++) t = (t << oi ^ (t >> Hu) * Fu) % Du, t &
|
|
4404
|
+
for (let s = 0; s < 7; s++) t = (t << oi ^ (t >> Hu) * Fu) % Du, t & Uu && (i ^= oi << (oi << BigInt(s)) - oi);
|
|
4405
4405
|
b1.push(i);
|
|
4406
4406
|
}
|
|
4407
4407
|
const [Zu, Vu] = zu(b1, !0), w0 = (e, t, r) => r > 32 ? ((n, i, s) => i << s - 32 | n >>> 64 - s)(e, t, r) : ((n, i, s) => n << s | i >>> 32 - s)(e, t, r), x0 = (e, t, r) => r > 32 ? ((n, i, s) => n << s - 32 | i >>> 64 - s)(e, t, r) : ((n, i, s) => i << s | n >>> 32 - s)(e, t, r);
|
|
@@ -5996,11 +5996,11 @@ var It;
|
|
|
5996
5996
|
(function(e) {
|
|
5997
5997
|
e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
|
|
5998
5998
|
})(It || (It = {}));
|
|
5999
|
-
const M0 = lr.create, I0 = en.create, m2 = _s.create, b2 = rn.create, T0 = Si.create, y2 = xn.create, g2 = ys.create, v2 = ki.create, _2 = Ei.create, Vo = Wn.create, w2 = vn.create, x2 = Dr.create, A2 = gs.create, x1 = mr.create, rs = me.create, S2 = me.strictCreate, A1 = Mi.create, k2 = js.create, E2 = Ii.create, S1 = Rr.create, M2 = zs.create, I2 = vs.create, T2 = An.create, R2 = Hn.create, N2 = Ti.create, O2 = Ri.create, C2 = nn.create, B2 = Ni.create, P2 = Yn.create, R0 = pr.create, L2 = Mr.create, j2 = sn.create, z2 = pr.createWithPreprocess,
|
|
5999
|
+
const M0 = lr.create, I0 = en.create, m2 = _s.create, b2 = rn.create, T0 = Si.create, y2 = xn.create, g2 = ys.create, v2 = ki.create, _2 = Ei.create, Vo = Wn.create, w2 = vn.create, x2 = Dr.create, A2 = gs.create, x1 = mr.create, rs = me.create, S2 = me.strictCreate, A1 = Mi.create, k2 = js.create, E2 = Ii.create, S1 = Rr.create, M2 = zs.create, I2 = vs.create, T2 = An.create, R2 = Hn.create, N2 = Ti.create, O2 = Ri.create, C2 = nn.create, B2 = Ni.create, P2 = Yn.create, R0 = pr.create, L2 = Mr.create, j2 = sn.create, z2 = pr.createWithPreprocess, $2 = qi.create, q2 = { string: (e) => lr.create({ ...e, coerce: !0 }), number: (e) => en.create({ ...e, coerce: !0 }), boolean: (e) => Si.create({ ...e, coerce: !0 }), bigint: (e) => rn.create({ ...e, coerce: !0 }), date: (e) => xn.create({ ...e, coerce: !0 }) }, U2 = Mt, N0 = Object.freeze(Object.defineProperty({ __proto__: null, BRAND: l2, DIRTY: bs, EMPTY_PATH: [], INVALID: Mt, NEVER: U2, OK: Ve, ParseStatus: He, Schema: qt, ZodAny: Wn, ZodArray: mr, ZodBigInt: rn, ZodBoolean: Si, ZodBranded: _a, ZodCatch: Ci, ZodDate: xn, ZodDefault: Oi, ZodDiscriminatedUnion: js, ZodEffects: pr, ZodEnum: nn, ZodError: Je, get ZodFirstPartyTypeKind() {
|
|
6000
6000
|
return It;
|
|
6001
6001
|
}, ZodFunction: Hn, ZodIntersection: Ii, ZodIssueCode: J, ZodLazy: Ti, ZodLiteral: Ri, ZodMap: vs, ZodNaN: _s, ZodNativeEnum: Ni, ZodNever: Dr, ZodNull: Ei, ZodNullable: sn, ZodNumber: en, ZodObject: me, ZodOptional: Mr, ZodParsedType: yt, ZodPipeline: qi, ZodPromise: Yn, ZodReadonly: Bi, ZodRecord: zs, ZodSchema: qt, ZodSet: An, ZodString: lr, ZodSymbol: ys, ZodTransformer: pr, ZodTuple: Rr, ZodType: qt, ZodUndefined: ki, ZodUnion: Mi, ZodUnknown: vn, ZodVoid: gs, addIssueToContext: ft, any: Vo, array: x1, bigint: b2, boolean: T0, coerce: q2, custom: E0, date: y2, datetimeRegex: _1, defaultErrorMap: Kn, discriminatedUnion: k2, effect: R0, enum: C2, function: R2, getErrorMap: ps, getParsedType: jr, instanceof: (e, t = { message: `Input not instance of ${e.name}` }) => E0((r) => r instanceof e, t), intersection: E2, isAborted: Do, isAsync: Ai, isDirty: Fo, isValid: wn, late: p2, lazy: N2, literal: O2, makeIssue: ms, map: I2, nan: m2, nativeEnum: B2, never: x2, null: _2, nullable: j2, number: I0, object: rs, get objectUtil() {
|
|
6002
6002
|
return Ho;
|
|
6003
|
-
}, oboolean: () => T0().optional(), onumber: () => I0().optional(), optional: L2, ostring: () => M0().optional(), pipeline:
|
|
6003
|
+
}, oboolean: () => T0().optional(), onumber: () => I0().optional(), optional: L2, ostring: () => M0().optional(), pipeline: $2, preprocess: z2, promise: P2, quotelessJson: (e) => JSON.stringify(e, null, 2).replace(/"([^"]+)":/g, "$1:"), record: M2, set: T2, setErrorMap: function(e) {
|
|
6004
6004
|
y1 = e;
|
|
6005
6005
|
}, strictObject: S2, string: M0, symbol: g2, transformer: R0, tuple: S1, undefined: v2, union: A1, unknown: w2, get util() {
|
|
6006
6006
|
return Xt;
|
|
@@ -6074,7 +6074,7 @@ const D2 = ["bool", "int", "uint", "bytes", "string", "address", "tuple"], k1 =
|
|
|
6074
6074
|
else n.push(ns(c, _, r));
|
|
6075
6075
|
}
|
|
6076
6076
|
return (r = r ?? []).push(...n), r;
|
|
6077
|
-
},
|
|
6077
|
+
}, $s = (e) => {
|
|
6078
6078
|
if (!Oe(e)) throw new Error("Invalid hex string");
|
|
6079
6079
|
const [t, r] = e.startsWith("-") ? [!0, e.slice(1)] : [!1, e], n = BigInt(r);
|
|
6080
6080
|
return n > Number.MAX_SAFE_INTEGER ? t ? -n : n : n < Number.MIN_SAFE_INTEGER ? n : t ? -1 * Number(n) : Number(n);
|
|
@@ -6106,16 +6106,16 @@ function L0(e) {
|
|
|
6106
6106
|
}
|
|
6107
6107
|
function xa(e) {
|
|
6108
6108
|
let t = 0;
|
|
6109
|
-
if (!e.startsWith("0") || e[1] !== "x" && e[1] !== "X" || (t = 2), e.length % 2 != 0) throw new
|
|
6109
|
+
if (!e.startsWith("0") || e[1] !== "x" && e[1] !== "X" || (t = 2), e.length % 2 != 0) throw new Uo(`hex string has odd length: ${e}`);
|
|
6110
6110
|
const r = (e.length - t) / 2, n = new Uint8Array(r);
|
|
6111
6111
|
for (let i = 0, s = t; i < r; i += 1) {
|
|
6112
6112
|
const a = L0(e.charCodeAt(s++)), o = L0(e.charCodeAt(s++));
|
|
6113
|
-
if (a === void 0 || o === void 0) throw new
|
|
6113
|
+
if (a === void 0 || o === void 0) throw new Uo(`Invalid byte sequence ("${e[s - 2]}${e[s - 1]}" in "${e}").`);
|
|
6114
6114
|
n[i] = 16 * a + o;
|
|
6115
6115
|
}
|
|
6116
6116
|
return n;
|
|
6117
6117
|
}
|
|
6118
|
-
function
|
|
6118
|
+
function Us(e) {
|
|
6119
6119
|
var t;
|
|
6120
6120
|
return e instanceof Uint8Array || ((t = e == null ? void 0 : e.constructor) === null || t === void 0 ? void 0 : t.name) !== "Uint8Array" ? e : Uint8Array.from(e);
|
|
6121
6121
|
}
|
|
@@ -6124,7 +6124,7 @@ const W2 = Object.freeze(Object.defineProperty({ __proto__: null, abiSchemaToJso
|
|
|
6124
6124
|
if (e >= 65 && e <= 70) return e - 55;
|
|
6125
6125
|
if (e >= 97 && e <= 102) return e - 87;
|
|
6126
6126
|
throw new Error(`Invalid code point: ${e}`);
|
|
6127
|
-
}, ensureIfUint8Array:
|
|
6127
|
+
}, ensureIfUint8Array: Us, ethAbiToJsonSchema: E1, fetchArrayElement: wa, hexToNumber: $s, hexToUint8Array: xa, numberToHex: qs, padLeft: Ko, parseBaseType: Mn, transformJsonDataToAbiFormat: ns, uint8ArrayToHexString: As }, Symbol.toStringTag, { value: "Module" })), Wo = (e) => {
|
|
6128
6128
|
var t, r;
|
|
6129
6129
|
return e instanceof Uint8Array || ((t = e == null ? void 0 : e.constructor) === null || t === void 0 ? void 0 : t.name) === "Uint8Array" || ((r = e == null ? void 0 : e.constructor) === null || r === void 0 ? void 0 : r.name) === "Buffer";
|
|
6130
6130
|
}, M1 = (e, t = { abiType: "bytes" }) => {
|
|
@@ -6147,7 +6147,7 @@ const W2 = Object.freeze(Object.defineProperty({ __proto__: null, abiSchemaToJso
|
|
|
6147
6147
|
let r;
|
|
6148
6148
|
return r = Wo(e) ? As(e) : typeof e != "string" || Oe(e) || e.toLowerCase().startsWith("0x") ? e : `0x${e}`, !!/^(0x)?[0-9a-f]{40}$/i.test(r) && (!(!/^(0x|0X)?[0-9a-f]{40}$/.test(r) && !/^(0x|0X)?[0-9A-F]{40}$/.test(r)) || !t || ((n) => {
|
|
6149
6149
|
if (!/^(0x)?[0-9a-f]{40}$/i.test(n)) return !1;
|
|
6150
|
-
const i = n.slice(2), s =
|
|
6150
|
+
const i = n.slice(2), s = Un(i.toLowerCase()), a = As(va(Us(s))).slice(2);
|
|
6151
6151
|
for (let o = 0; o < 40; o += 1) if (parseInt(a[o], 16) > 7 && i[o].toUpperCase() !== i[o] || parseInt(a[o], 16) <= 7 && i[o].toLowerCase() !== i[o]) return !1;
|
|
6152
6152
|
return !0;
|
|
6153
6153
|
})(r));
|
|
@@ -6165,7 +6165,7 @@ const W2 = Object.freeze(Object.defineProperty({ __proto__: null, abiSchemaToJso
|
|
|
6165
6165
|
} else t.bitSize && (r = t.bitSize);
|
|
6166
6166
|
const n = Yo(BigInt(2), BigInt(r ?? 256)) - BigInt(1);
|
|
6167
6167
|
try {
|
|
6168
|
-
const i = typeof e == "string" && Oe(e) ? BigInt(
|
|
6168
|
+
const i = typeof e == "string" && Oe(e) ? BigInt($s(e)) : BigInt(e);
|
|
6169
6169
|
return i >= 0 && i <= n;
|
|
6170
6170
|
} catch {
|
|
6171
6171
|
return !1;
|
|
@@ -6180,7 +6180,7 @@ const W2 = Object.freeze(Object.defineProperty({ __proto__: null, abiSchemaToJso
|
|
|
6180
6180
|
} else t.bitSize && (r = t.bitSize);
|
|
6181
6181
|
const n = Yo(BigInt(2), BigInt((r ?? 256) - 1)), i = BigInt(-1) * Yo(BigInt(2), BigInt((r ?? 256) - 1));
|
|
6182
6182
|
try {
|
|
6183
|
-
const s = typeof e == "string" && Oe(e) ? BigInt(
|
|
6183
|
+
const s = typeof e == "string" && Oe(e) ? BigInt($s(e)) : BigInt(e);
|
|
6184
6184
|
return s >= i && s <= n;
|
|
6185
6185
|
} catch {
|
|
6186
6186
|
return !1;
|
|
@@ -6261,7 +6261,7 @@ class zn {
|
|
|
6261
6261
|
});
|
|
6262
6262
|
}
|
|
6263
6263
|
}
|
|
6264
|
-
const
|
|
6264
|
+
const Ui = new class {
|
|
6265
6265
|
constructor() {
|
|
6266
6266
|
this._validator = zn.factory();
|
|
6267
6267
|
}
|
|
@@ -6283,21 +6283,21 @@ function R1(e) {
|
|
|
6283
6283
|
}
|
|
6284
6284
|
BigInt(0), BigInt(1), BigInt(1e3), BigInt(1e3), BigInt(1e3), BigInt(1e3), BigInt(1e6), BigInt(1e6), BigInt(1e6), BigInt(1e6), BigInt(1e9), BigInt(1e9), BigInt(1e9), BigInt(1e9), BigInt(1e9), BigInt(1e12), BigInt(1e12), BigInt(1e12), BigInt(1e15), BigInt(1e15), BigInt(1e15), BigInt("1000000000000000000"), BigInt("1000000000000000000000"), BigInt("1000000000000000000000"), BigInt("1000000000000000000000000"), BigInt("1000000000000000000000000000"), BigInt("1000000000000000000000000000000");
|
|
6285
6285
|
const Pi = (e) => {
|
|
6286
|
-
if (
|
|
6286
|
+
if (Ui.validate(["bytes"], [e]), R1(e)) return e;
|
|
6287
6287
|
if (Array.isArray(e)) return new Uint8Array(e);
|
|
6288
6288
|
if (typeof e == "string") return xa(e);
|
|
6289
|
-
throw new
|
|
6289
|
+
throw new Uo(e);
|
|
6290
6290
|
}, { uint8ArrayToHexString: Y2 } = W2, Hs = (e) => Y2(Pi(e)), Li = (e) => typeof e == "string" && e.slice(0, 2).toLowerCase() !== "0x" ? Pi(`0x${e}`) : Pi(e), Q2 = (e, t) => {
|
|
6291
|
-
typeof e != "bigint" &&
|
|
6291
|
+
typeof e != "bigint" && Ui.validate(["int"], [e]);
|
|
6292
6292
|
let r = qs(e);
|
|
6293
6293
|
return t && (r.startsWith("-") || r.length % 2 != 1 ? r.length % 2 == 0 && r.startsWith("-") && (r = "-0x0".concat(r.slice(3))) : r = "0x0".concat(r.slice(2))), r;
|
|
6294
6294
|
}, N1 = (e) => {
|
|
6295
|
-
|
|
6295
|
+
Ui.validate(["string"], [e]);
|
|
6296
6296
|
let t = e.replace(/^(?:\u0000)/, "");
|
|
6297
6297
|
return t = t.replace(/(?:\u0000)$/, ""), Hs(new TextEncoder().encode(t));
|
|
6298
|
-
}, G2 = N1, J2 =
|
|
6298
|
+
}, G2 = N1, J2 = Un, Sa = (e) => {
|
|
6299
6299
|
if (!vi(e, !1)) throw new d1(e);
|
|
6300
|
-
const t = e.toLowerCase().replace(/^0x/i, ""), r = As(va(
|
|
6300
|
+
const t = e.toLowerCase().replace(/^0x/i, ""), r = As(va(Us(J2(t))));
|
|
6301
6301
|
if (Qe(r) || r === "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470") return "";
|
|
6302
6302
|
let n = "0x";
|
|
6303
6303
|
const i = r.replace(/^0x/i, "");
|
|
@@ -6399,12 +6399,12 @@ var O1 = { exports: {} };
|
|
|
6399
6399
|
return c ? (d = r ? r + c : c, this._events[d] && a(this, d)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
6400
6400
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = r, o.EventEmitter = o, e.exports = o;
|
|
6401
6401
|
})(O1);
|
|
6402
|
-
const X2 = Jn(O1.exports), Go = Qe, z0 = (e, t, r = "0") => typeof e == "string" ? Oe(e) ? Ko(e, t, r) : e.padStart(t, r) : (
|
|
6402
|
+
const X2 = Jn(O1.exports), Go = Qe, z0 = (e, t, r = "0") => typeof e == "string" ? Oe(e) ? Ko(e, t, r) : e.padStart(t, r) : (Ui.validate(["int"], [e]), Ko(e, t, r)), C1 = "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", tl = (e) => {
|
|
6403
6403
|
let t;
|
|
6404
|
-
t = typeof e == "string" ? e.startsWith("0x") && Oe(e) ? Li(e) :
|
|
6404
|
+
t = typeof e == "string" ? e.startsWith("0x") && Oe(e) ? Li(e) : Un(e) : e;
|
|
6405
6405
|
const r = ((n) => {
|
|
6406
6406
|
let i;
|
|
6407
|
-
return i = typeof n == "bigint" || typeof n == "number" ?
|
|
6407
|
+
return i = typeof n == "bigint" || typeof n == "number" ? Un(n.toString()) : Array.isArray(n) ? new Uint8Array(n) : typeof n != "string" || Oe(n) ? Pi(n) : Un(n), Hs(va(Us(i)));
|
|
6408
6408
|
})(t);
|
|
6409
6409
|
return r === C1 ? void 0 : r;
|
|
6410
6410
|
}, ka = (e) => {
|
|
@@ -6417,7 +6417,7 @@ const X2 = Jn(O1.exports), Go = Qe, z0 = (e, t, r = "0") => typeof e == "string"
|
|
|
6417
6417
|
e[6] = 15 & e[6] | 64, e[8] = 63 & e[8] | 128;
|
|
6418
6418
|
const t = Hs(e);
|
|
6419
6419
|
return [t.substring(2, 10), t.substring(10, 14), t.substring(14, 18), t.substring(18, 22), t.substring(22, 34)].join("-");
|
|
6420
|
-
}, B1 = (e) => !Array.isArray(e) && !!e && e.jsonrpc === "2.0" && "result" in e && Qe(e.error) && (typeof e.id == "number" || typeof e.id == "string"), P1 = (e) => !Array.isArray(e) && e.jsonrpc === "2.0" && !!e && Qe(e.result) && "error" in e && (typeof e.id == "number" || typeof e.id == "string"), nl = (e) => !(Array.isArray(e) || !e || e.jsonrpc !== "2.0" || Qe(e.params) || Qe(e.method)),
|
|
6420
|
+
}, B1 = (e) => !Array.isArray(e) && !!e && e.jsonrpc === "2.0" && "result" in e && Qe(e.error) && (typeof e.id == "number" || typeof e.id == "string"), P1 = (e) => !Array.isArray(e) && e.jsonrpc === "2.0" && !!e && Qe(e.result) && "error" in e && (typeof e.id == "number" || typeof e.id == "string"), nl = (e) => !(Array.isArray(e) || !e || e.jsonrpc !== "2.0" || Qe(e.params) || Qe(e.method)), $0 = (e) => B1(e) || P1(e), q0 = (e) => Array.isArray(e) && e.length > 0 && ((t) => Array.isArray(t) ? t.every($0) : $0(t))(e), U0 = (e) => {
|
|
6421
6421
|
var t, r, n, i;
|
|
6422
6422
|
return { jsonrpc: (t = e.jsonrpc) !== null && t !== void 0 ? t : "2.0", id: (n = (r = e.id) !== null && r !== void 0 ? r : void 0) !== null && n !== void 0 ? n : rl(), method: e.method, params: (i = e.params) !== null && i !== void 0 ? i : void 0 };
|
|
6423
6423
|
};
|
|
@@ -6547,14 +6547,14 @@ class j1 extends Ps {
|
|
|
6547
6547
|
_getChainId() {
|
|
6548
6548
|
return H0(this, void 0, void 0, function* () {
|
|
6549
6549
|
var t;
|
|
6550
|
-
const r = yield this.request(
|
|
6550
|
+
const r = yield this.request(U0({ method: "eth_chainId", params: [] }));
|
|
6551
6551
|
return (t = r == null ? void 0 : r.result) !== null && t !== void 0 ? t : "";
|
|
6552
6552
|
});
|
|
6553
6553
|
}
|
|
6554
6554
|
_getAccounts() {
|
|
6555
6555
|
return H0(this, void 0, void 0, function* () {
|
|
6556
6556
|
var t;
|
|
6557
|
-
const r = yield this.request(
|
|
6557
|
+
const r = yield this.request(U0({ method: "eth_accounts", params: [] }));
|
|
6558
6558
|
return (t = r == null ? void 0 : r.result) !== null && t !== void 0 ? t : [];
|
|
6559
6559
|
});
|
|
6560
6560
|
}
|
|
@@ -6622,7 +6622,7 @@ class al extends j1 {
|
|
|
6622
6622
|
try {
|
|
6623
6623
|
this._openSocketConnection(), this._connectionStatus = "connecting", this._addSocketListeners();
|
|
6624
6624
|
} catch (t) {
|
|
6625
|
-
if (!this.isReconnecting) throw this._connectionStatus = "disconnected", t && t.message ? new
|
|
6625
|
+
if (!this.isReconnecting) throw this._connectionStatus = "disconnected", t && t.message ? new $i(`Error while connecting to ${this._socketPath}. Reason: ${t.message}`) : new qo(this._socketPath);
|
|
6626
6626
|
setImmediate(() => {
|
|
6627
6627
|
this._reconnect();
|
|
6628
6628
|
});
|
|
@@ -6730,9 +6730,9 @@ class al extends j1 {
|
|
|
6730
6730
|
}
|
|
6731
6731
|
_clearQueues(t) {
|
|
6732
6732
|
this._pendingRequestsQueue.size > 0 && this._pendingRequestsQueue.forEach((r, n) => {
|
|
6733
|
-
r.deferredPromise.reject(new
|
|
6733
|
+
r.deferredPromise.reject(new $o(t)), this._pendingRequestsQueue.delete(n);
|
|
6734
6734
|
}), this._sentRequestsQueue.size > 0 && this._sentRequestsQueue.forEach((r, n) => {
|
|
6735
|
-
r.deferredPromise.reject(new
|
|
6735
|
+
r.deferredPromise.reject(new $o(t)), this._sentRequestsQueue.delete(n);
|
|
6736
6736
|
}), this._removeSocketListeners();
|
|
6737
6737
|
}
|
|
6738
6738
|
}
|
|
@@ -6742,7 +6742,7 @@ var D0;
|
|
|
6742
6742
|
})(D0 || (D0 = {}));
|
|
6743
6743
|
var Jo = { exports: {} };
|
|
6744
6744
|
(function(e, t) {
|
|
6745
|
-
var r = typeof globalThis < "u" && globalThis || typeof self < "u" && self ||
|
|
6745
|
+
var r = typeof globalThis < "u" && globalThis || typeof self < "u" && self || Ur !== void 0 && Ur, n = function() {
|
|
6746
6746
|
function s() {
|
|
6747
6747
|
this.fetch = !1, this.DOMException = r.DOMException;
|
|
6748
6748
|
}
|
|
@@ -6750,7 +6750,7 @@ var Jo = { exports: {} };
|
|
|
6750
6750
|
}();
|
|
6751
6751
|
(function(s) {
|
|
6752
6752
|
(function(a) {
|
|
6753
|
-
var o = s !== void 0 && s || typeof self < "u" && self ||
|
|
6753
|
+
var o = s !== void 0 && s || typeof self < "u" && self || Ur !== void 0 && Ur || {}, c = "URLSearchParams" in o, d = "Symbol" in o && "iterator" in Symbol, h = "FileReader" in o && "Blob" in o && function() {
|
|
6754
6754
|
try {
|
|
6755
6755
|
return new Blob(), !0;
|
|
6756
6756
|
} catch {
|
|
@@ -6826,8 +6826,8 @@ var Jo = { exports: {} };
|
|
|
6826
6826
|
if (h) return this.blob().then(R);
|
|
6827
6827
|
throw new Error("could not read as ArrayBuffer");
|
|
6828
6828
|
}, this.text = function() {
|
|
6829
|
-
var w, P, N, j, Z,
|
|
6830
|
-
if (
|
|
6829
|
+
var w, P, N, j, Z, $ = O(this);
|
|
6830
|
+
if ($) return $;
|
|
6831
6831
|
if (this._bodyBlob) return w = this._bodyBlob, P = new FileReader(), N = E(P), j = /charset=([A-Za-z0-9_-]+)/.exec(w.type), Z = j ? j[1] : "utf-8", P.readAsText(w, Z), N;
|
|
6832
6832
|
if (this._bodyArrayBuffer) return Promise.resolve(function(V) {
|
|
6833
6833
|
for (var H = new Uint8Array(V), D = new Array(H.length), G = 0; G < H.length; G++) D[G] = String.fromCharCode(H[G]);
|
|
@@ -6883,16 +6883,16 @@ var Jo = { exports: {} };
|
|
|
6883
6883
|
if ("AbortController" in o) return new AbortController().signal;
|
|
6884
6884
|
}(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && Z) throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
6885
6885
|
if (this._initBody(Z), !(this.method !== "GET" && this.method !== "HEAD" || P.cache !== "no-store" && P.cache !== "no-cache")) {
|
|
6886
|
-
var
|
|
6887
|
-
|
|
6886
|
+
var $ = /([?&])_=[^&]*/;
|
|
6887
|
+
$.test(this.url) ? this.url = this.url.replace($, "$1_=" + (/* @__PURE__ */ new Date()).getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
6888
6888
|
}
|
|
6889
6889
|
}
|
|
6890
6890
|
function g(w) {
|
|
6891
6891
|
var P = new FormData();
|
|
6892
6892
|
return w.trim().split("&").forEach(function(N) {
|
|
6893
6893
|
if (N) {
|
|
6894
|
-
var j = N.split("="), Z = j.shift().replace(/\+/g, " "),
|
|
6895
|
-
P.append(decodeURIComponent(Z), decodeURIComponent(
|
|
6894
|
+
var j = N.split("="), Z = j.shift().replace(/\+/g, " "), $ = j.join("=").replace(/\+/g, " ");
|
|
6895
|
+
P.append(decodeURIComponent(Z), decodeURIComponent($));
|
|
6896
6896
|
}
|
|
6897
6897
|
}), P;
|
|
6898
6898
|
}
|
|
@@ -6927,18 +6927,18 @@ var Jo = { exports: {} };
|
|
|
6927
6927
|
return new Promise(function(N, j) {
|
|
6928
6928
|
var Z = new p(w, P);
|
|
6929
6929
|
if (Z.signal && Z.signal.aborted) return j(new a.DOMException("Aborted", "AbortError"));
|
|
6930
|
-
var
|
|
6930
|
+
var $ = new XMLHttpRequest();
|
|
6931
6931
|
function V() {
|
|
6932
|
-
|
|
6932
|
+
$.abort();
|
|
6933
6933
|
}
|
|
6934
|
-
if (
|
|
6935
|
-
var D, G, Et = { statusText:
|
|
6934
|
+
if ($.onload = function() {
|
|
6935
|
+
var D, G, Et = { statusText: $.statusText, headers: (D = $.getAllResponseHeaders() || "", G = new k(), D.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function(mt) {
|
|
6936
6936
|
return mt.indexOf(`
|
|
6937
6937
|
`) === 0 ? mt.substr(1, mt.length) : mt;
|
|
6938
6938
|
}).forEach(function(mt) {
|
|
6939
|
-
var
|
|
6939
|
+
var Ut = mt.split(":"), lt = Ut.shift().trim();
|
|
6940
6940
|
if (lt) {
|
|
6941
|
-
var kt =
|
|
6941
|
+
var kt = Ut.join(":").trim();
|
|
6942
6942
|
try {
|
|
6943
6943
|
G.append(lt, kt);
|
|
6944
6944
|
} catch (Ft) {
|
|
@@ -6946,42 +6946,42 @@ var Jo = { exports: {} };
|
|
|
6946
6946
|
}
|
|
6947
6947
|
}
|
|
6948
6948
|
}), G) };
|
|
6949
|
-
Z.url.indexOf("file://") === 0 && (
|
|
6950
|
-
var ot = "response" in
|
|
6949
|
+
Z.url.indexOf("file://") === 0 && ($.status < 200 || $.status > 599) ? Et.status = 200 : Et.status = $.status, Et.url = "responseURL" in $ ? $.responseURL : Et.headers.get("X-Request-URL");
|
|
6950
|
+
var ot = "response" in $ ? $.response : $.responseText;
|
|
6951
6951
|
setTimeout(function() {
|
|
6952
6952
|
N(new m(ot, Et));
|
|
6953
6953
|
}, 0);
|
|
6954
|
-
},
|
|
6954
|
+
}, $.onerror = function() {
|
|
6955
6955
|
setTimeout(function() {
|
|
6956
6956
|
j(new TypeError("Network request failed"));
|
|
6957
6957
|
}, 0);
|
|
6958
|
-
},
|
|
6958
|
+
}, $.ontimeout = function() {
|
|
6959
6959
|
setTimeout(function() {
|
|
6960
6960
|
j(new TypeError("Network request timed out"));
|
|
6961
6961
|
}, 0);
|
|
6962
|
-
},
|
|
6962
|
+
}, $.onabort = function() {
|
|
6963
6963
|
setTimeout(function() {
|
|
6964
6964
|
j(new a.DOMException("Aborted", "AbortError"));
|
|
6965
6965
|
}, 0);
|
|
6966
|
-
},
|
|
6966
|
+
}, $.open(Z.method, function(D) {
|
|
6967
6967
|
try {
|
|
6968
6968
|
return D === "" && o.location.href ? o.location.href : D;
|
|
6969
6969
|
} catch {
|
|
6970
6970
|
return D;
|
|
6971
6971
|
}
|
|
6972
|
-
}(Z.url), !0), Z.credentials === "include" ?
|
|
6972
|
+
}(Z.url), !0), Z.credentials === "include" ? $.withCredentials = !0 : Z.credentials === "omit" && ($.withCredentials = !1), "responseType" in $ && (h ? $.responseType = "blob" : _ && ($.responseType = "arraybuffer")), P && typeof P.headers == "object" && !(P.headers instanceof k || o.Headers && P.headers instanceof o.Headers)) {
|
|
6973
6973
|
var H = [];
|
|
6974
6974
|
Object.getOwnPropertyNames(P.headers).forEach(function(D) {
|
|
6975
|
-
H.push(I(D)),
|
|
6975
|
+
H.push(I(D)), $.setRequestHeader(D, x(P.headers[D]));
|
|
6976
6976
|
}), Z.headers.forEach(function(D, G) {
|
|
6977
|
-
H.indexOf(G) === -1 &&
|
|
6977
|
+
H.indexOf(G) === -1 && $.setRequestHeader(G, D);
|
|
6978
6978
|
});
|
|
6979
6979
|
} else Z.headers.forEach(function(D, G) {
|
|
6980
|
-
|
|
6980
|
+
$.setRequestHeader(G, D);
|
|
6981
6981
|
});
|
|
6982
|
-
Z.signal && (Z.signal.addEventListener("abort", V),
|
|
6983
|
-
|
|
6984
|
-
}),
|
|
6982
|
+
Z.signal && (Z.signal.addEventListener("abort", V), $.onreadystatechange = function() {
|
|
6983
|
+
$.readyState === 4 && Z.signal.removeEventListener("abort", V);
|
|
6984
|
+
}), $.send(Z._bodyInit === void 0 ? null : Z._bodyInit);
|
|
6985
6985
|
});
|
|
6986
6986
|
}
|
|
6987
6987
|
y.polyfill = !0, o.fetch || (o.fetch = y, o.Headers = k, o.Request = p, o.Response = m), a.Headers = k, a.Request = p, a.Response = m, a.fetch = y;
|
|
@@ -7094,7 +7094,7 @@ class hl extends al {
|
|
|
7094
7094
|
}
|
|
7095
7095
|
_sendToSocket(t) {
|
|
7096
7096
|
var r;
|
|
7097
|
-
if (this.getStatus() === "disconnected") throw new
|
|
7097
|
+
if (this.getStatus() === "disconnected") throw new $o();
|
|
7098
7098
|
(r = this._socketConnection) === null || r === void 0 || r.send(JSON.stringify(t));
|
|
7099
7099
|
}
|
|
7100
7100
|
_parseResponses(t) {
|
|
@@ -7149,8 +7149,8 @@ class z1 extends ya {
|
|
|
7149
7149
|
this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
|
|
7150
7150
|
}
|
|
7151
7151
|
}
|
|
7152
|
-
const
|
|
7153
|
-
|
|
7152
|
+
const $1 = (e, t, r) => new z1(e, t).update(r).digest();
|
|
7153
|
+
$1.create = (e, t) => new z1(e, t);
|
|
7154
7154
|
const ul = (e, t, r) => e & t ^ ~e & r, ll = (e, t, r) => e & t ^ e & r ^ t & r;
|
|
7155
7155
|
class pl extends ya {
|
|
7156
7156
|
constructor(t, r, n, i) {
|
|
@@ -7445,7 +7445,7 @@ function Ml(e) {
|
|
|
7445
7445
|
}
|
|
7446
7446
|
BigInt(9), BigInt(16);
|
|
7447
7447
|
const Il = ["create", "isValid", "is0", "neg", "inv", "sqrt", "sqr", "eql", "add", "sub", "mul", "pow", "div", "addN", "subN", "mulN", "sqrN"];
|
|
7448
|
-
function
|
|
7448
|
+
function U1(e, t) {
|
|
7449
7449
|
const r = t !== void 0 ? t : e.toString(2).length;
|
|
7450
7450
|
return { nBitLength: r, nByteLength: Math.ceil(r / 8) };
|
|
7451
7451
|
}
|
|
@@ -7461,7 +7461,7 @@ function td(e) {
|
|
|
7461
7461
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7462
7462
|
const Tl = BigInt(0), ho = BigInt(1);
|
|
7463
7463
|
function D1(e) {
|
|
7464
|
-
return zi(e.Fp, Il.reduce((t, r) => (t[r] = "function", t), { ORDER: "bigint", MASK: "bigint", BYTES: "isSafeInteger", BITS: "isSafeInteger" })), zi(e, { n: "bigint", h: "bigint", Gx: "field", Gy: "field" }, { nBitLength: "isSafeInteger", nByteLength: "isSafeInteger" }), Object.freeze({
|
|
7464
|
+
return zi(e.Fp, Il.reduce((t, r) => (t[r] = "function", t), { ORDER: "bigint", MASK: "bigint", BYTES: "isSafeInteger", BITS: "isSafeInteger" })), zi(e, { n: "bigint", h: "bigint", Gx: "field", Gy: "field" }, { nBitLength: "isSafeInteger", nByteLength: "isSafeInteger" }), Object.freeze({ ...U1(e.n, e.nBitLength), ...e, p: e.Fp.ORDER });
|
|
7465
7465
|
}
|
|
7466
7466
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7467
7467
|
const { bytesToNumberBE: Rl, hexToBytes: Nl } = Sl, yn = { Err: class extends Error {
|
|
@@ -7780,7 +7780,7 @@ function Cl(e) {
|
|
|
7780
7780
|
if (y == null || ![0, 1, 2, 3].includes(y)) throw new Error("recovery id invalid");
|
|
7781
7781
|
const P = y === 2 || y === 3 ? m + t.n : m;
|
|
7782
7782
|
if (P >= r.ORDER) throw new Error("recovery id 2 or 3 invalid");
|
|
7783
|
-
const N = 1 & y ? "03" : "02", j = c.fromHex(N + _(P)), Z = o(P),
|
|
7783
|
+
const N = 1 & y ? "03" : "02", j = c.fromHex(N + _(P)), Z = o(P), $ = a(-w * Z), V = a(u * Z), H = c.BASE.multiplyAndAddUnsafe(j, $, V);
|
|
7784
7784
|
if (!H) throw new Error("point at infinify");
|
|
7785
7785
|
return H.assertValidity(), H;
|
|
7786
7786
|
}
|
|
@@ -7838,23 +7838,23 @@ function Cl(e) {
|
|
|
7838
7838
|
const { hash: u, randomBytes: y } = t;
|
|
7839
7839
|
let { lowS: w, prehash: P, extraEntropy: N } = m;
|
|
7840
7840
|
w == null && (w = !0), p = fr("msgHash", p), P && (p = fr("prehashed msgHash", u(p)));
|
|
7841
|
-
const j = O(p), Z = d(g),
|
|
7841
|
+
const j = O(p), Z = d(g), $ = [R(Z), R(j)];
|
|
7842
7842
|
if (N != null && N !== !1) {
|
|
7843
7843
|
const D = N === !0 ? y(r.BYTES) : N;
|
|
7844
|
-
|
|
7844
|
+
$.push(fr("extraEntropy", D));
|
|
7845
7845
|
}
|
|
7846
|
-
const V = ji(
|
|
7846
|
+
const V = ji(...$), H = j;
|
|
7847
7847
|
return { seed: V, k2sig: function(D) {
|
|
7848
7848
|
const G = k(D);
|
|
7849
7849
|
if (!l(G)) return;
|
|
7850
7850
|
const Et = o(G), ot = c.BASE.multiply(G).toAffine(), mt = a(ot.x);
|
|
7851
7851
|
if (mt === qr) return;
|
|
7852
|
-
const
|
|
7853
|
-
if (
|
|
7854
|
-
let lt = (ot.x === mt ? 0 : 2) | Number(ot.y & or), kt =
|
|
7855
|
-
return w && v(
|
|
7852
|
+
const Ut = a(Et * a(H + mt * Z));
|
|
7853
|
+
if (Ut === qr) return;
|
|
7854
|
+
let lt = (ot.x === mt ? 0 : 2) | Number(ot.y & or), kt = Ut;
|
|
7855
|
+
return w && v(Ut) && (kt = function(Ft) {
|
|
7856
7856
|
return v(Ft) ? a(-Ft) : Ft;
|
|
7857
|
-
}(
|
|
7857
|
+
}(Ut), lt ^= 1), new I(mt, kt, lt);
|
|
7858
7858
|
} };
|
|
7859
7859
|
}
|
|
7860
7860
|
const z = { lowS: t.lowS, prehash: !1 }, f = { lowS: t.lowS, prehash: !1 };
|
|
@@ -7883,8 +7883,8 @@ function Cl(e) {
|
|
|
7883
7883
|
else {
|
|
7884
7884
|
if (typeof y != "object" || typeof y.r != "bigint" || typeof y.s != "bigint") throw new Error("PARSE");
|
|
7885
7885
|
{
|
|
7886
|
-
const { r: mt, s:
|
|
7887
|
-
N = new I(mt,
|
|
7886
|
+
const { r: mt, s: Ut } = y;
|
|
7887
|
+
N = new I(mt, Ut);
|
|
7888
7888
|
}
|
|
7889
7889
|
}
|
|
7890
7890
|
j = c.fromHex(m);
|
|
@@ -7894,13 +7894,13 @@ function Cl(e) {
|
|
|
7894
7894
|
}
|
|
7895
7895
|
if (w && N.hasHighS()) return !1;
|
|
7896
7896
|
P && (g = t.hash(g));
|
|
7897
|
-
const { r: Z, s:
|
|
7897
|
+
const { r: Z, s: $ } = N, V = O(g), H = o($), D = a(V * H), G = a(Z * H), Et = (ot = c.BASE.multiplyAndAddUnsafe(j, D, G)) == null ? void 0 : ot.toAffine();
|
|
7898
7898
|
return !!Et && a(Et.x) === Z;
|
|
7899
7899
|
}, ProjectivePoint: c, Signature: I, utils: x };
|
|
7900
7900
|
}
|
|
7901
7901
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7902
7902
|
function Bl(e) {
|
|
7903
|
-
return { hash: e, hmac: (t, ...r) =>
|
|
7903
|
+
return { hash: e, hmac: (t, ...r) => $1(e, t, function(...n) {
|
|
7904
7904
|
let i = 0;
|
|
7905
7905
|
for (let a = 0; a < n.length; a++) {
|
|
7906
7906
|
const o = n[a];
|
|
@@ -7918,7 +7918,7 @@ BigInt(4);
|
|
|
7918
7918
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
7919
7919
|
const rd = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), nd = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), Pl = BigInt(1), ta = BigInt(2), id = (e, t) => (e + t / ta) / t, ea = function(e, t, r = !1, n = {}) {
|
|
7920
7920
|
if (e <= Ne) throw new Error(`Expected Field ORDER > 0, got ${e}`);
|
|
7921
|
-
const { nBitLength: i, nByteLength: s } =
|
|
7921
|
+
const { nBitLength: i, nByteLength: s } = U1(e, t);
|
|
7922
7922
|
if (s > 2048) throw new Error("Field lengths over 2048 bytes are not supported");
|
|
7923
7923
|
const a = Ml(e), o = Object.freeze({ ORDER: e, BITS: i, BYTES: s, MASK: Ra(i), ZERO: Ne, ONE: we, create: (c) => Ye(c, e), isValid: (c) => {
|
|
7924
7924
|
if (typeof c != "bigint") throw new Error("Invalid field element: expected bigint, got " + typeof c);
|
|
@@ -8135,7 +8135,7 @@ ${n.byteLength}`)), s = t ? n : function(...a) {
|
|
|
8135
8135
|
return c;
|
|
8136
8136
|
}(i, n);
|
|
8137
8137
|
return ka(s);
|
|
8138
|
-
},
|
|
8138
|
+
}, $l = (e, t) => {
|
|
8139
8139
|
const r = G1(e), { messageHash: n, v: i, r: s, s: a, signature: o } = ((c, d) => {
|
|
8140
8140
|
const h = Q1(d), l = Ds.sign(c.substring(2), h), _ = l.toCompactRawBytes(), v = l.r.toString(16).padStart(64, "0"), A = l.s.toString(16).padStart(64, "0"), I = l.recovery + 27;
|
|
8141
8141
|
return { messageHash: c, v: Q2(I), r: `0x${v}`, s: `0x${A}`, signature: `${Hs(_)}${I.toString(16)}` };
|
|
@@ -8191,7 +8191,7 @@ class Re {
|
|
|
8191
8191
|
}
|
|
8192
8192
|
static fromAddress(t) {
|
|
8193
8193
|
if (!vi(t)) throw new d1(t);
|
|
8194
|
-
const r = BigInt(((s) => (
|
|
8194
|
+
const r = BigInt(((s) => (Ui.validate(["hex"], [s]), $s(s)))(t)), n = r.toString(36), i = z0(n, 15);
|
|
8195
8195
|
return Re.fromBban(i.toUpperCase());
|
|
8196
8196
|
}
|
|
8197
8197
|
static toIban(t) {
|
|
@@ -8291,18 +8291,18 @@ Re._iso13616Prepare = (e) => {
|
|
|
8291
8291
|
}
|
|
8292
8292
|
}
|
|
8293
8293
|
}
|
|
8294
|
-
}(typeof self > "u" ?
|
|
8294
|
+
}(typeof self > "u" ? Ur : self);
|
|
8295
8295
|
const Ca = { type: "array", items: Object.assign({}, { type: "object", properties: { address: { format: "address" }, storageKeys: { type: "array", items: { format: "bytes32" } } } }) };
|
|
8296
8296
|
Object.assign({}, Ca);
|
|
8297
|
-
const md = { type: "string", enum: ["goerli", "kovan", "mainnet", "rinkeby", "ropsten", "sepolia"] }, bd = { type: "string", enum: ["arrowGlacier", "berlin", "byzantium", "chainstart", "constantinople", "dao", "homestead", "istanbul", "london", "merge", "muirGlacier", "petersburg", "shanghai", "spuriousDragon", "tangerineWhistle"] }, ql = { properties: { from: { format: "address" }, to: { oneOf: [{ format: "address" }, { type: "null" }] }, value: { format: "uint" }, gas: { format: "uint" }, gasPrice: { format: "uint" }, effectiveGasPrice: { format: "uint" }, type: { format: "uint" }, maxFeePerGas: { format: "uint" }, maxPriorityFeePerGas: { format: "uint" }, accessList: Object.assign({}, Ca), data: { format: "bytes" }, input: { format: "bytes" }, nonce: { format: "uint" }, chain: Object.assign({}, md), hardfork: Object.assign({}, bd), chainId: { format: "uint" }, networkId: { format: "uint" }, common: { type: "object", properties: { customChain: Object.assign({}, { type: "object", properties: { name: { format: "string" }, networkId: { format: "uint" }, chainId: { format: "uint" } } }), baseChain: Object.assign({}, md), hardfork: Object.assign({}, bd) } }, gasLimit: { format: "uint" }, v: { format: "uint" }, r: { format: "bytes32" }, s: { format: "bytes32" } } },
|
|
8298
|
-
Object.assign({},
|
|
8297
|
+
const md = { type: "string", enum: ["goerli", "kovan", "mainnet", "rinkeby", "ropsten", "sepolia"] }, bd = { type: "string", enum: ["arrowGlacier", "berlin", "byzantium", "chainstart", "constantinople", "dao", "homestead", "istanbul", "london", "merge", "muirGlacier", "petersburg", "shanghai", "spuriousDragon", "tangerineWhistle"] }, ql = { properties: { from: { format: "address" }, to: { oneOf: [{ format: "address" }, { type: "null" }] }, value: { format: "uint" }, gas: { format: "uint" }, gasPrice: { format: "uint" }, effectiveGasPrice: { format: "uint" }, type: { format: "uint" }, maxFeePerGas: { format: "uint" }, maxPriorityFeePerGas: { format: "uint" }, accessList: Object.assign({}, Ca), data: { format: "bytes" }, input: { format: "bytes" }, nonce: { format: "uint" }, chain: Object.assign({}, md), hardfork: Object.assign({}, bd), chainId: { format: "uint" }, networkId: { format: "uint" }, common: { type: "object", properties: { customChain: Object.assign({}, { type: "object", properties: { name: { format: "string" }, networkId: { format: "uint" }, chainId: { format: "uint" } } }), baseChain: Object.assign({}, md), hardfork: Object.assign({}, bd) } }, gasLimit: { format: "uint" }, v: { format: "uint" }, r: { format: "bytes32" }, s: { format: "bytes32" } } }, Ul = { type: "object", properties: Object.assign(Object.assign({}, ql.properties), { blockHash: { format: "bytes32" }, blockNumber: { format: "uint" }, hash: { format: "bytes32" }, transactionIndex: { format: "uint" }, from: { format: "address" }, to: { oneOf: [{ format: "address" }, { type: "null" }] }, value: { format: "uint" }, gas: { format: "uint" }, gasPrice: { format: "uint" }, effectiveGasPrice: { format: "uint" }, type: { format: "uint" }, maxFeePerGas: { format: "uint" }, maxPriorityFeePerGas: { format: "uint" }, accessList: Object.assign({}, Ca), data: { format: "bytes" }, input: { format: "bytes" }, nonce: { format: "uint" }, gasLimit: { format: "uint" }, v: { format: "uint" }, r: { format: "bytes32" }, s: { format: "bytes32" } }) }, yd = { type: "object", properties: { index: { format: "uint" }, validatorIndex: { format: "uint" }, address: { format: "address" }, amount: { format: "uint" } } };
|
|
8298
|
+
Object.assign({}, Ul), Object.assign({}, yd), Object.assign({}, yd);
|
|
8299
8299
|
Object.assign({}, { type: "object", properties: { removed: { format: "bool" }, logIndex: { format: "uint" }, transactionIndex: { format: "uint" }, transactionHash: { format: "bytes32" }, blockHash: { format: "bytes32" }, blockNumber: { format: "uint" }, address: { format: "address" }, data: { format: "bytes" }, topics: { type: "array", items: { format: "bytes32" } } } });
|
|
8300
8300
|
Object.assign({}, { type: "object", properties: { key: { format: "bytes32" }, value: { format: "uint" }, proof: { type: "array", items: { format: "bytes32" } } } }), hi.HEX, fi.NUMBER;
|
|
8301
|
-
const
|
|
8301
|
+
const $n = /* @__PURE__ */ new Map();
|
|
8302
8302
|
let Xi = BigInt(256);
|
|
8303
|
-
for (let e = 8; e <= 256; e += 8)
|
|
8303
|
+
for (let e = 8; e <= 256; e += 8) $n.set(`uint${e}`, { min: BigInt(0), max: Xi - BigInt(1) }), $n.set(`int${e}`, { min: -Xi / BigInt(2), max: Xi / BigInt(2) - BigInt(1) }), Xi *= BigInt(256);
|
|
8304
8304
|
var Sr, bt;
|
|
8305
|
-
|
|
8305
|
+
$n.set("int", $n.get("int256")), $n.set("uint", $n.get("uint256")), BigInt(1), BigInt(256), Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0")), function(e) {
|
|
8306
8306
|
e.HTTPS = "https", e.WebSocket = "wss";
|
|
8307
8307
|
}(Sr || (Sr = {})), function(e) {
|
|
8308
8308
|
e.ETH_MAINNET = "eth_mainnet", e.ETH_SEPOLIA = "eth_sepolia", e.ETH_HOLESKY = "eth_holesky", e.POLYGON_MAINNET = "polygon_mainnet", e.POLYGON_AMOY = "polygon_amoy", e.AVALANCHE_C_MAINNET = "avalanche_c_mainnet", e.AVALANCHE_P_MAINNET = "avalanche_p_mainnet", e.AVALANCHE_X_MAINNET = "avalanche_x_mainnet", e.ARBITRUM_MAINNET = "arbitrum_mainnet", e.ARBITRUM_SEPOLIA = "arbitrum_sepolia", e.BASE_MAINNET = "base_mainnet", e.BASE_SEPOLIA = "base_sepolia", e.OPTIMISM_MAINNET = "optimism_mainnet", e.OPTIMISM_SEPOLIA = "optimism_sepolia", e.FANTOM_MAINNET = "fantom_mainnet", e.FANTOM_TESTNET = "fantom_testnet", e.DYMENSION_MAINNET = "dymension_mainnet", e.DYMENSION_TESTNET = "dymension_testnet", e.BNB_MAINNET = "bnb_mainnet", e.BNB_TESTNET = "bnb_testnet", e.BSC_MAINNET = "bsc_mainnet", e.BSC_TESTNET = "bsc_testnet", e.ARBITRUM_ONE = "arbitrum_one", e.ARBITRUM_NOVA = "arbitrum_nova", e.AVALANCHE_FUJI_C = "avalanche_fuji_c", e.AVALANCHE_FUJI_P = "avalanche_fuji_p", e.AVALANCHE_FUJI_X = "avalanche_fuji_x", e.BLAST_MAINNET = "blast_mainnet", e.OPBNB_MAINNET = "opbnb_mainnet", e.OPBNB_TESTNET = "opbnb_testnet", e.GNOSIS_MAINNET = "gnosis_mainnet", e.GNOSIS_CHIADO = "gnosis_chiado", e.PULSECHAIN_MAINNET = "pulsechain_mainnet", e.PULSECHAIN_TESTNET = "pulsechain_testnet", e.KAVA_MAINNET = "kava_mainnet", e.CRONOS_MAINNET = "cronos_mainnet", e.MANTLE_MAINNET = "mantle_mainnet", e.CHILIZ_MAINNET = "chiliz_mainnet", e.CHILIZ_SPICY = "chiliz_spicy", e.MOONBEAM_MAINNET = "moonbeam_mainnet", e.TAIKO_MAINNET = "taiko_mainnet", e.TAIKO_HEKLA = "taiko_hekla", e.LINEA_MAINNET = "linea_mainnet", e.LINEA_SEPOLIA = "linea_sepolia", e.BAHAMUT_MAINNET = "bahamut_mainnet", e.SCROLL_MAINNET = "scroll_mainnet", e.SCROLL_SEPOLIA = "scroll_sepolia", e.TRON_MAINNET = "tron_mainnet", e.SYSCOIN_MAINNET = "syscoin_mainnet", e.SYSCOIN_TANENBAUM = "syscoin_tanenbaum", e.MOONRIVER_MAINNET = "moonriver_mainnet", e.HAQQ_MAINNET = "haqq_mainnet", e.EVMOS_MAINNET = "evmos_mainnet", e.EVMOS_TESTNET = "evmos_testnet", e.BERACHAIN_TESTNET = "berachain_testnet";
|
|
@@ -8486,7 +8486,7 @@ class Vl {
|
|
|
8486
8486
|
})(t);
|
|
8487
8487
|
}
|
|
8488
8488
|
static signature(t, r) {
|
|
8489
|
-
return
|
|
8489
|
+
return $l(t, r);
|
|
8490
8490
|
}
|
|
8491
8491
|
static signatureValidity(t, r, n) {
|
|
8492
8492
|
try {
|
|
@@ -8511,8 +8511,8 @@ var sa = { exports: {} };
|
|
|
8511
8511
|
T[C] = B >> 24 & 255, T[C + 1] = B >> 16 & 255, T[C + 2] = B >> 8 & 255, T[C + 3] = 255 & B, T[C + 4] = b >> 24 & 255, T[C + 5] = b >> 16 & 255, T[C + 6] = b >> 8 & 255, T[C + 7] = 255 & b;
|
|
8512
8512
|
}
|
|
8513
8513
|
function A(T, C, B, b, S) {
|
|
8514
|
-
var
|
|
8515
|
-
for (
|
|
8514
|
+
var U, F = 0;
|
|
8515
|
+
for (U = 0; U < S; U++) F |= T[C + U] ^ B[b + U];
|
|
8516
8516
|
return (1 & F - 1 >>> 8) - 1;
|
|
8517
8517
|
}
|
|
8518
8518
|
function I(T, C, B, b) {
|
|
@@ -8522,22 +8522,22 @@ var sa = { exports: {} };
|
|
|
8522
8522
|
return A(T, C, B, b, 32);
|
|
8523
8523
|
}
|
|
8524
8524
|
function M(T, C, B, b) {
|
|
8525
|
-
(function(S,
|
|
8526
|
-
for (var q, Y = 255 & W[0] | (255 & W[1]) << 8 | (255 & W[2]) << 16 | (255 & W[3]) << 24, gt = 255 & F[0] | (255 & F[1]) << 8 | (255 & F[2]) << 16 | (255 & F[3]) << 24, X = 255 & F[4] | (255 & F[5]) << 8 | (255 & F[6]) << 16 | (255 & F[7]) << 24, dt = 255 & F[8] | (255 & F[9]) << 8 | (255 & F[10]) << 16 | (255 & F[11]) << 24, _t = 255 & F[12] | (255 & F[13]) << 8 | (255 & F[14]) << 16 | (255 & F[15]) << 24, nt = 255 & W[4] | (255 & W[5]) << 8 | (255 & W[6]) << 16 | (255 & W[7]) << 24, ht = 255 &
|
|
8525
|
+
(function(S, U, F, W) {
|
|
8526
|
+
for (var q, Y = 255 & W[0] | (255 & W[1]) << 8 | (255 & W[2]) << 16 | (255 & W[3]) << 24, gt = 255 & F[0] | (255 & F[1]) << 8 | (255 & F[2]) << 16 | (255 & F[3]) << 24, X = 255 & F[4] | (255 & F[5]) << 8 | (255 & F[6]) << 16 | (255 & F[7]) << 24, dt = 255 & F[8] | (255 & F[9]) << 8 | (255 & F[10]) << 16 | (255 & F[11]) << 24, _t = 255 & F[12] | (255 & F[13]) << 8 | (255 & F[14]) << 16 | (255 & F[15]) << 24, nt = 255 & W[4] | (255 & W[5]) << 8 | (255 & W[6]) << 16 | (255 & W[7]) << 24, ht = 255 & U[0] | (255 & U[1]) << 8 | (255 & U[2]) << 16 | (255 & U[3]) << 24, xt = 255 & U[4] | (255 & U[5]) << 8 | (255 & U[6]) << 16 | (255 & U[7]) << 24, at = 255 & U[8] | (255 & U[9]) << 8 | (255 & U[10]) << 16 | (255 & U[11]) << 24, ut = 255 & U[12] | (255 & U[13]) << 8 | (255 & U[14]) << 16 | (255 & U[15]) << 24, At = 255 & W[8] | (255 & W[9]) << 8 | (255 & W[10]) << 16 | (255 & W[11]) << 24, it = 255 & F[16] | (255 & F[17]) << 8 | (255 & F[18]) << 16 | (255 & F[19]) << 24, pt = 255 & F[20] | (255 & F[21]) << 8 | (255 & F[22]) << 16 | (255 & F[23]) << 24, Bt = 255 & F[24] | (255 & F[25]) << 8 | (255 & F[26]) << 16 | (255 & F[27]) << 24, ct = 255 & F[28] | (255 & F[29]) << 8 | (255 & F[30]) << 16 | (255 & F[31]) << 24, K = 255 & W[12] | (255 & W[13]) << 8 | (255 & W[14]) << 16 | (255 & W[15]) << 24, Q = Y, st = gt, tt = X, et = dt, rt = _t, Ct = nt, jt = ht, Ot = xt, Vt = at, Yt = ut, Jt = At, St = it, Tt = pt, Rt = Bt, Nt = ct, wt = K, zt = 0; zt < 20; zt += 2) Q ^= (q = (Tt ^= (q = (Vt ^= (q = (rt ^= (q = Q + Tt | 0) << 7 | q >>> 25) + Q | 0) << 9 | q >>> 23) + rt | 0) << 13 | q >>> 19) + Vt | 0) << 18 | q >>> 14, Ct ^= (q = (st ^= (q = (Rt ^= (q = (Yt ^= (q = Ct + st | 0) << 7 | q >>> 25) + Ct | 0) << 9 | q >>> 23) + Yt | 0) << 13 | q >>> 19) + Rt | 0) << 18 | q >>> 14, Jt ^= (q = (jt ^= (q = (tt ^= (q = (Nt ^= (q = Jt + jt | 0) << 7 | q >>> 25) + Jt | 0) << 9 | q >>> 23) + Nt | 0) << 13 | q >>> 19) + tt | 0) << 18 | q >>> 14, wt ^= (q = (St ^= (q = (Ot ^= (q = (et ^= (q = wt + St | 0) << 7 | q >>> 25) + wt | 0) << 9 | q >>> 23) + et | 0) << 13 | q >>> 19) + Ot | 0) << 18 | q >>> 14, Q ^= (q = (et ^= (q = (tt ^= (q = (st ^= (q = Q + et | 0) << 7 | q >>> 25) + Q | 0) << 9 | q >>> 23) + st | 0) << 13 | q >>> 19) + tt | 0) << 18 | q >>> 14, Ct ^= (q = (rt ^= (q = (Ot ^= (q = (jt ^= (q = Ct + rt | 0) << 7 | q >>> 25) + Ct | 0) << 9 | q >>> 23) + jt | 0) << 13 | q >>> 19) + Ot | 0) << 18 | q >>> 14, Jt ^= (q = (Yt ^= (q = (Vt ^= (q = (St ^= (q = Jt + Yt | 0) << 7 | q >>> 25) + Jt | 0) << 9 | q >>> 23) + St | 0) << 13 | q >>> 19) + Vt | 0) << 18 | q >>> 14, wt ^= (q = (Nt ^= (q = (Rt ^= (q = (Tt ^= (q = wt + Nt | 0) << 7 | q >>> 25) + wt | 0) << 9 | q >>> 23) + Tt | 0) << 13 | q >>> 19) + Rt | 0) << 18 | q >>> 14;
|
|
8527
8527
|
Q = Q + Y | 0, st = st + gt | 0, tt = tt + X | 0, et = et + dt | 0, rt = rt + _t | 0, Ct = Ct + nt | 0, jt = jt + ht | 0, Ot = Ot + xt | 0, Vt = Vt + at | 0, Yt = Yt + ut | 0, Jt = Jt + At | 0, St = St + it | 0, Tt = Tt + pt | 0, Rt = Rt + Bt | 0, Nt = Nt + ct | 0, wt = wt + K | 0, S[0] = Q >>> 0 & 255, S[1] = Q >>> 8 & 255, S[2] = Q >>> 16 & 255, S[3] = Q >>> 24 & 255, S[4] = st >>> 0 & 255, S[5] = st >>> 8 & 255, S[6] = st >>> 16 & 255, S[7] = st >>> 24 & 255, S[8] = tt >>> 0 & 255, S[9] = tt >>> 8 & 255, S[10] = tt >>> 16 & 255, S[11] = tt >>> 24 & 255, S[12] = et >>> 0 & 255, S[13] = et >>> 8 & 255, S[14] = et >>> 16 & 255, S[15] = et >>> 24 & 255, S[16] = rt >>> 0 & 255, S[17] = rt >>> 8 & 255, S[18] = rt >>> 16 & 255, S[19] = rt >>> 24 & 255, S[20] = Ct >>> 0 & 255, S[21] = Ct >>> 8 & 255, S[22] = Ct >>> 16 & 255, S[23] = Ct >>> 24 & 255, S[24] = jt >>> 0 & 255, S[25] = jt >>> 8 & 255, S[26] = jt >>> 16 & 255, S[27] = jt >>> 24 & 255, S[28] = Ot >>> 0 & 255, S[29] = Ot >>> 8 & 255, S[30] = Ot >>> 16 & 255, S[31] = Ot >>> 24 & 255, S[32] = Vt >>> 0 & 255, S[33] = Vt >>> 8 & 255, S[34] = Vt >>> 16 & 255, S[35] = Vt >>> 24 & 255, S[36] = Yt >>> 0 & 255, S[37] = Yt >>> 8 & 255, S[38] = Yt >>> 16 & 255, S[39] = Yt >>> 24 & 255, S[40] = Jt >>> 0 & 255, S[41] = Jt >>> 8 & 255, S[42] = Jt >>> 16 & 255, S[43] = Jt >>> 24 & 255, S[44] = St >>> 0 & 255, S[45] = St >>> 8 & 255, S[46] = St >>> 16 & 255, S[47] = St >>> 24 & 255, S[48] = Tt >>> 0 & 255, S[49] = Tt >>> 8 & 255, S[50] = Tt >>> 16 & 255, S[51] = Tt >>> 24 & 255, S[52] = Rt >>> 0 & 255, S[53] = Rt >>> 8 & 255, S[54] = Rt >>> 16 & 255, S[55] = Rt >>> 24 & 255, S[56] = Nt >>> 0 & 255, S[57] = Nt >>> 8 & 255, S[58] = Nt >>> 16 & 255, S[59] = Nt >>> 24 & 255, S[60] = wt >>> 0 & 255, S[61] = wt >>> 8 & 255, S[62] = wt >>> 16 & 255, S[63] = wt >>> 24 & 255;
|
|
8528
8528
|
})(T, C, B, b);
|
|
8529
8529
|
}
|
|
8530
8530
|
function k(T, C, B, b) {
|
|
8531
|
-
(function(S,
|
|
8532
|
-
for (var q, Y = 255 & W[0] | (255 & W[1]) << 8 | (255 & W[2]) << 16 | (255 & W[3]) << 24, gt = 255 & F[0] | (255 & F[1]) << 8 | (255 & F[2]) << 16 | (255 & F[3]) << 24, X = 255 & F[4] | (255 & F[5]) << 8 | (255 & F[6]) << 16 | (255 & F[7]) << 24, dt = 255 & F[8] | (255 & F[9]) << 8 | (255 & F[10]) << 16 | (255 & F[11]) << 24, _t = 255 & F[12] | (255 & F[13]) << 8 | (255 & F[14]) << 16 | (255 & F[15]) << 24, nt = 255 & W[4] | (255 & W[5]) << 8 | (255 & W[6]) << 16 | (255 & W[7]) << 24, ht = 255 &
|
|
8531
|
+
(function(S, U, F, W) {
|
|
8532
|
+
for (var q, Y = 255 & W[0] | (255 & W[1]) << 8 | (255 & W[2]) << 16 | (255 & W[3]) << 24, gt = 255 & F[0] | (255 & F[1]) << 8 | (255 & F[2]) << 16 | (255 & F[3]) << 24, X = 255 & F[4] | (255 & F[5]) << 8 | (255 & F[6]) << 16 | (255 & F[7]) << 24, dt = 255 & F[8] | (255 & F[9]) << 8 | (255 & F[10]) << 16 | (255 & F[11]) << 24, _t = 255 & F[12] | (255 & F[13]) << 8 | (255 & F[14]) << 16 | (255 & F[15]) << 24, nt = 255 & W[4] | (255 & W[5]) << 8 | (255 & W[6]) << 16 | (255 & W[7]) << 24, ht = 255 & U[0] | (255 & U[1]) << 8 | (255 & U[2]) << 16 | (255 & U[3]) << 24, xt = 255 & U[4] | (255 & U[5]) << 8 | (255 & U[6]) << 16 | (255 & U[7]) << 24, at = 255 & U[8] | (255 & U[9]) << 8 | (255 & U[10]) << 16 | (255 & U[11]) << 24, ut = 255 & U[12] | (255 & U[13]) << 8 | (255 & U[14]) << 16 | (255 & U[15]) << 24, At = 255 & W[8] | (255 & W[9]) << 8 | (255 & W[10]) << 16 | (255 & W[11]) << 24, it = 255 & F[16] | (255 & F[17]) << 8 | (255 & F[18]) << 16 | (255 & F[19]) << 24, pt = 255 & F[20] | (255 & F[21]) << 8 | (255 & F[22]) << 16 | (255 & F[23]) << 24, Bt = 255 & F[24] | (255 & F[25]) << 8 | (255 & F[26]) << 16 | (255 & F[27]) << 24, ct = 255 & F[28] | (255 & F[29]) << 8 | (255 & F[30]) << 16 | (255 & F[31]) << 24, K = 255 & W[12] | (255 & W[13]) << 8 | (255 & W[14]) << 16 | (255 & W[15]) << 24, Q = 0; Q < 20; Q += 2) Y ^= (q = (pt ^= (q = (at ^= (q = (_t ^= (q = Y + pt | 0) << 7 | q >>> 25) + Y | 0) << 9 | q >>> 23) + _t | 0) << 13 | q >>> 19) + at | 0) << 18 | q >>> 14, nt ^= (q = (gt ^= (q = (Bt ^= (q = (ut ^= (q = nt + gt | 0) << 7 | q >>> 25) + nt | 0) << 9 | q >>> 23) + ut | 0) << 13 | q >>> 19) + Bt | 0) << 18 | q >>> 14, At ^= (q = (ht ^= (q = (X ^= (q = (ct ^= (q = At + ht | 0) << 7 | q >>> 25) + At | 0) << 9 | q >>> 23) + ct | 0) << 13 | q >>> 19) + X | 0) << 18 | q >>> 14, K ^= (q = (it ^= (q = (xt ^= (q = (dt ^= (q = K + it | 0) << 7 | q >>> 25) + K | 0) << 9 | q >>> 23) + dt | 0) << 13 | q >>> 19) + xt | 0) << 18 | q >>> 14, Y ^= (q = (dt ^= (q = (X ^= (q = (gt ^= (q = Y + dt | 0) << 7 | q >>> 25) + Y | 0) << 9 | q >>> 23) + gt | 0) << 13 | q >>> 19) + X | 0) << 18 | q >>> 14, nt ^= (q = (_t ^= (q = (xt ^= (q = (ht ^= (q = nt + _t | 0) << 7 | q >>> 25) + nt | 0) << 9 | q >>> 23) + ht | 0) << 13 | q >>> 19) + xt | 0) << 18 | q >>> 14, At ^= (q = (ut ^= (q = (at ^= (q = (it ^= (q = At + ut | 0) << 7 | q >>> 25) + At | 0) << 9 | q >>> 23) + it | 0) << 13 | q >>> 19) + at | 0) << 18 | q >>> 14, K ^= (q = (ct ^= (q = (Bt ^= (q = (pt ^= (q = K + ct | 0) << 7 | q >>> 25) + K | 0) << 9 | q >>> 23) + pt | 0) << 13 | q >>> 19) + Bt | 0) << 18 | q >>> 14;
|
|
8533
8533
|
S[0] = Y >>> 0 & 255, S[1] = Y >>> 8 & 255, S[2] = Y >>> 16 & 255, S[3] = Y >>> 24 & 255, S[4] = nt >>> 0 & 255, S[5] = nt >>> 8 & 255, S[6] = nt >>> 16 & 255, S[7] = nt >>> 24 & 255, S[8] = At >>> 0 & 255, S[9] = At >>> 8 & 255, S[10] = At >>> 16 & 255, S[11] = At >>> 24 & 255, S[12] = K >>> 0 & 255, S[13] = K >>> 8 & 255, S[14] = K >>> 16 & 255, S[15] = K >>> 24 & 255, S[16] = ht >>> 0 & 255, S[17] = ht >>> 8 & 255, S[18] = ht >>> 16 & 255, S[19] = ht >>> 24 & 255, S[20] = xt >>> 0 & 255, S[21] = xt >>> 8 & 255, S[22] = xt >>> 16 & 255, S[23] = xt >>> 24 & 255, S[24] = at >>> 0 & 255, S[25] = at >>> 8 & 255, S[26] = at >>> 16 & 255, S[27] = at >>> 24 & 255, S[28] = ut >>> 0 & 255, S[29] = ut >>> 8 & 255, S[30] = ut >>> 16 & 255, S[31] = ut >>> 24 & 255;
|
|
8534
8534
|
})(T, C, B, b);
|
|
8535
8535
|
}
|
|
8536
8536
|
var O = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
|
|
8537
|
-
function E(T, C, B, b, S,
|
|
8537
|
+
function E(T, C, B, b, S, U, F) {
|
|
8538
8538
|
var W, q, Y = new Uint8Array(16), gt = new Uint8Array(64);
|
|
8539
8539
|
for (q = 0; q < 16; q++) Y[q] = 0;
|
|
8540
|
-
for (q = 0; q < 8; q++) Y[q] =
|
|
8540
|
+
for (q = 0; q < 8; q++) Y[q] = U[q];
|
|
8541
8541
|
for (; S >= 64; ) {
|
|
8542
8542
|
for (M(gt, Y, F, O), q = 0; q < 64; q++) T[C + q] = B[b + q] ^ gt[q];
|
|
8543
8543
|
for (W = 1, q = 8; q < 16; q++) W = W + (255 & Y[q]) | 0, Y[q] = 255 & W, W >>>= 8;
|
|
@@ -8547,51 +8547,51 @@ var sa = { exports: {} };
|
|
|
8547
8547
|
return 0;
|
|
8548
8548
|
}
|
|
8549
8549
|
function R(T, C, B, b, S) {
|
|
8550
|
-
var
|
|
8550
|
+
var U, F, W = new Uint8Array(16), q = new Uint8Array(64);
|
|
8551
8551
|
for (F = 0; F < 16; F++) W[F] = 0;
|
|
8552
8552
|
for (F = 0; F < 8; F++) W[F] = b[F];
|
|
8553
8553
|
for (; B >= 64; ) {
|
|
8554
8554
|
for (M(q, W, S, O), F = 0; F < 64; F++) T[C + F] = q[F];
|
|
8555
|
-
for (
|
|
8555
|
+
for (U = 1, F = 8; F < 16; F++) U = U + (255 & W[F]) | 0, W[F] = 255 & U, U >>>= 8;
|
|
8556
8556
|
B -= 64, C += 64;
|
|
8557
8557
|
}
|
|
8558
8558
|
if (B > 0) for (M(q, W, S, O), F = 0; F < B; F++) T[C + F] = q[F];
|
|
8559
8559
|
return 0;
|
|
8560
8560
|
}
|
|
8561
8561
|
function L(T, C, B, b, S) {
|
|
8562
|
-
var
|
|
8563
|
-
k(
|
|
8562
|
+
var U = new Uint8Array(32);
|
|
8563
|
+
k(U, b, S, O);
|
|
8564
8564
|
for (var F = new Uint8Array(8), W = 0; W < 8; W++) F[W] = b[W + 16];
|
|
8565
|
-
return R(T, C, B, F,
|
|
8565
|
+
return R(T, C, B, F, U);
|
|
8566
8566
|
}
|
|
8567
|
-
function z(T, C, B, b, S,
|
|
8567
|
+
function z(T, C, B, b, S, U, F) {
|
|
8568
8568
|
var W = new Uint8Array(32);
|
|
8569
|
-
k(W,
|
|
8570
|
-
for (var q = new Uint8Array(8), Y = 0; Y < 8; Y++) q[Y] =
|
|
8569
|
+
k(W, U, F, O);
|
|
8570
|
+
for (var q = new Uint8Array(8), Y = 0; Y < 8; Y++) q[Y] = U[Y + 16];
|
|
8571
8571
|
return E(T, C, B, b, S, q, W);
|
|
8572
8572
|
}
|
|
8573
8573
|
var f = function(T) {
|
|
8574
|
-
var C, B, b, S,
|
|
8575
|
-
this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0, C = 255 & T[0] | (255 & T[1]) << 8, this.r[0] = 8191 & C, B = 255 & T[2] | (255 & T[3]) << 8, this.r[1] = 8191 & (C >>> 13 | B << 3), b = 255 & T[4] | (255 & T[5]) << 8, this.r[2] = 7939 & (B >>> 10 | b << 6), S = 255 & T[6] | (255 & T[7]) << 8, this.r[3] = 8191 & (b >>> 7 | S << 9),
|
|
8574
|
+
var C, B, b, S, U, F, W, q;
|
|
8575
|
+
this.buffer = new Uint8Array(16), this.r = new Uint16Array(10), this.h = new Uint16Array(10), this.pad = new Uint16Array(8), this.leftover = 0, this.fin = 0, C = 255 & T[0] | (255 & T[1]) << 8, this.r[0] = 8191 & C, B = 255 & T[2] | (255 & T[3]) << 8, this.r[1] = 8191 & (C >>> 13 | B << 3), b = 255 & T[4] | (255 & T[5]) << 8, this.r[2] = 7939 & (B >>> 10 | b << 6), S = 255 & T[6] | (255 & T[7]) << 8, this.r[3] = 8191 & (b >>> 7 | S << 9), U = 255 & T[8] | (255 & T[9]) << 8, this.r[4] = 255 & (S >>> 4 | U << 12), this.r[5] = U >>> 1 & 8190, F = 255 & T[10] | (255 & T[11]) << 8, this.r[6] = 8191 & (U >>> 14 | F << 2), W = 255 & T[12] | (255 & T[13]) << 8, this.r[7] = 8065 & (F >>> 11 | W << 5), q = 255 & T[14] | (255 & T[15]) << 8, this.r[8] = 8191 & (W >>> 8 | q << 8), this.r[9] = q >>> 5 & 127, this.pad[0] = 255 & T[16] | (255 & T[17]) << 8, this.pad[1] = 255 & T[18] | (255 & T[19]) << 8, this.pad[2] = 255 & T[20] | (255 & T[21]) << 8, this.pad[3] = 255 & T[22] | (255 & T[23]) << 8, this.pad[4] = 255 & T[24] | (255 & T[25]) << 8, this.pad[5] = 255 & T[26] | (255 & T[27]) << 8, this.pad[6] = 255 & T[28] | (255 & T[29]) << 8, this.pad[7] = 255 & T[30] | (255 & T[31]) << 8;
|
|
8576
8576
|
};
|
|
8577
|
-
function p(T, C, B, b, S,
|
|
8578
|
-
var F = new f(
|
|
8577
|
+
function p(T, C, B, b, S, U) {
|
|
8578
|
+
var F = new f(U);
|
|
8579
8579
|
return F.update(B, b, S), F.finish(T, C), 0;
|
|
8580
8580
|
}
|
|
8581
|
-
function g(T, C, B, b, S,
|
|
8581
|
+
function g(T, C, B, b, S, U) {
|
|
8582
8582
|
var F = new Uint8Array(16);
|
|
8583
|
-
return p(F, 0, B, b, S,
|
|
8583
|
+
return p(F, 0, B, b, S, U), I(T, C, F, 0);
|
|
8584
8584
|
}
|
|
8585
8585
|
function m(T, C, B, b, S) {
|
|
8586
|
-
var
|
|
8586
|
+
var U;
|
|
8587
8587
|
if (B < 32) return -1;
|
|
8588
|
-
for (z(T, 0, C, 0, B, b, S), p(T, 16, T, 32, B - 32, T),
|
|
8588
|
+
for (z(T, 0, C, 0, B, b, S), p(T, 16, T, 32, B - 32, T), U = 0; U < 16; U++) T[U] = 0;
|
|
8589
8589
|
return 0;
|
|
8590
8590
|
}
|
|
8591
8591
|
function u(T, C, B, b, S) {
|
|
8592
|
-
var
|
|
8592
|
+
var U, F = new Uint8Array(32);
|
|
8593
8593
|
if (B < 32 || (L(F, 0, 32, b, S), g(C, 16, C, 32, B - 32, F) !== 0)) return -1;
|
|
8594
|
-
for (z(T, 0, C, 0, B, b, S),
|
|
8594
|
+
for (z(T, 0, C, 0, B, b, S), U = 0; U < 32; U++) T[U] = 0;
|
|
8595
8595
|
return 0;
|
|
8596
8596
|
}
|
|
8597
8597
|
function y(T, C) {
|
|
@@ -8604,14 +8604,14 @@ var sa = { exports: {} };
|
|
|
8604
8604
|
T[0] += b - 1 + 37 * (b - 1);
|
|
8605
8605
|
}
|
|
8606
8606
|
function P(T, C, B) {
|
|
8607
|
-
for (var b, S = ~(B - 1),
|
|
8607
|
+
for (var b, S = ~(B - 1), U = 0; U < 16; U++) b = S & (T[U] ^ C[U]), T[U] ^= b, C[U] ^= b;
|
|
8608
8608
|
}
|
|
8609
8609
|
function N(T, C) {
|
|
8610
|
-
var B, b, S,
|
|
8610
|
+
var B, b, S, U = t(), F = t();
|
|
8611
8611
|
for (B = 0; B < 16; B++) F[B] = C[B];
|
|
8612
8612
|
for (w(F), w(F), w(F), b = 0; b < 2; b++) {
|
|
8613
|
-
for (
|
|
8614
|
-
|
|
8613
|
+
for (U[0] = F[0] - 65517, B = 1; B < 15; B++) U[B] = F[B] - 65535 - (U[B - 1] >> 16 & 1), U[B - 1] &= 65535;
|
|
8614
|
+
U[15] = F[15] - 32767 - (U[14] >> 16 & 1), S = U[15] >> 16 & 1, U[14] &= 65535, P(F, U, 1 - S);
|
|
8615
8615
|
}
|
|
8616
8616
|
for (B = 0; B < 16; B++) T[2 * B] = 255 & F[B], T[2 * B + 1] = F[B] >> 8;
|
|
8617
8617
|
}
|
|
@@ -8623,7 +8623,7 @@ var sa = { exports: {} };
|
|
|
8623
8623
|
var C = new Uint8Array(32);
|
|
8624
8624
|
return N(C, T), 1 & C[0];
|
|
8625
8625
|
}
|
|
8626
|
-
function
|
|
8626
|
+
function $(T, C) {
|
|
8627
8627
|
var B;
|
|
8628
8628
|
for (B = 0; B < 16; B++) T[B] = C[2 * B] + (C[2 * B + 1] << 8);
|
|
8629
8629
|
T[15] &= 32767;
|
|
@@ -8635,8 +8635,8 @@ var sa = { exports: {} };
|
|
|
8635
8635
|
for (var b = 0; b < 16; b++) T[b] = C[b] - B[b];
|
|
8636
8636
|
}
|
|
8637
8637
|
function D(T, C, B) {
|
|
8638
|
-
var b, S,
|
|
8639
|
-
|
|
8638
|
+
var b, S, U = 0, F = 0, W = 0, q = 0, Y = 0, gt = 0, X = 0, dt = 0, _t = 0, nt = 0, ht = 0, xt = 0, at = 0, ut = 0, At = 0, it = 0, pt = 0, Bt = 0, ct = 0, K = 0, Q = 0, st = 0, tt = 0, et = 0, rt = 0, Ct = 0, jt = 0, Ot = 0, Vt = 0, Yt = 0, Jt = 0, St = B[0], Tt = B[1], Rt = B[2], Nt = B[3], wt = B[4], zt = B[5], Ht = B[6], pe = B[7], fe = B[8], be = B[9], ye = B[10], ve = B[11], Se = B[12], Le = B[13], je = B[14], ze = B[15];
|
|
8639
|
+
U += (b = C[0]) * St, F += b * Tt, W += b * Rt, q += b * Nt, Y += b * wt, gt += b * zt, X += b * Ht, dt += b * pe, _t += b * fe, nt += b * be, ht += b * ye, xt += b * ve, at += b * Se, ut += b * Le, At += b * je, it += b * ze, F += (b = C[1]) * St, W += b * Tt, q += b * Rt, Y += b * Nt, gt += b * wt, X += b * zt, dt += b * Ht, _t += b * pe, nt += b * fe, ht += b * be, xt += b * ye, at += b * ve, ut += b * Se, At += b * Le, it += b * je, pt += b * ze, W += (b = C[2]) * St, q += b * Tt, Y += b * Rt, gt += b * Nt, X += b * wt, dt += b * zt, _t += b * Ht, nt += b * pe, ht += b * fe, xt += b * be, at += b * ye, ut += b * ve, At += b * Se, it += b * Le, pt += b * je, Bt += b * ze, q += (b = C[3]) * St, Y += b * Tt, gt += b * Rt, X += b * Nt, dt += b * wt, _t += b * zt, nt += b * Ht, ht += b * pe, xt += b * fe, at += b * be, ut += b * ye, At += b * ve, it += b * Se, pt += b * Le, Bt += b * je, ct += b * ze, Y += (b = C[4]) * St, gt += b * Tt, X += b * Rt, dt += b * Nt, _t += b * wt, nt += b * zt, ht += b * Ht, xt += b * pe, at += b * fe, ut += b * be, At += b * ye, it += b * ve, pt += b * Se, Bt += b * Le, ct += b * je, K += b * ze, gt += (b = C[5]) * St, X += b * Tt, dt += b * Rt, _t += b * Nt, nt += b * wt, ht += b * zt, xt += b * Ht, at += b * pe, ut += b * fe, At += b * be, it += b * ye, pt += b * ve, Bt += b * Se, ct += b * Le, K += b * je, Q += b * ze, X += (b = C[6]) * St, dt += b * Tt, _t += b * Rt, nt += b * Nt, ht += b * wt, xt += b * zt, at += b * Ht, ut += b * pe, At += b * fe, it += b * be, pt += b * ye, Bt += b * ve, ct += b * Se, K += b * Le, Q += b * je, st += b * ze, dt += (b = C[7]) * St, _t += b * Tt, nt += b * Rt, ht += b * Nt, xt += b * wt, at += b * zt, ut += b * Ht, At += b * pe, it += b * fe, pt += b * be, Bt += b * ye, ct += b * ve, K += b * Se, Q += b * Le, st += b * je, tt += b * ze, _t += (b = C[8]) * St, nt += b * Tt, ht += b * Rt, xt += b * Nt, at += b * wt, ut += b * zt, At += b * Ht, it += b * pe, pt += b * fe, Bt += b * be, ct += b * ye, K += b * ve, Q += b * Se, st += b * Le, tt += b * je, et += b * ze, nt += (b = C[9]) * St, ht += b * Tt, xt += b * Rt, at += b * Nt, ut += b * wt, At += b * zt, it += b * Ht, pt += b * pe, Bt += b * fe, ct += b * be, K += b * ye, Q += b * ve, st += b * Se, tt += b * Le, et += b * je, rt += b * ze, ht += (b = C[10]) * St, xt += b * Tt, at += b * Rt, ut += b * Nt, At += b * wt, it += b * zt, pt += b * Ht, Bt += b * pe, ct += b * fe, K += b * be, Q += b * ye, st += b * ve, tt += b * Se, et += b * Le, rt += b * je, Ct += b * ze, xt += (b = C[11]) * St, at += b * Tt, ut += b * Rt, At += b * Nt, it += b * wt, pt += b * zt, Bt += b * Ht, ct += b * pe, K += b * fe, Q += b * be, st += b * ye, tt += b * ve, et += b * Se, rt += b * Le, Ct += b * je, jt += b * ze, at += (b = C[12]) * St, ut += b * Tt, At += b * Rt, it += b * Nt, pt += b * wt, Bt += b * zt, ct += b * Ht, K += b * pe, Q += b * fe, st += b * be, tt += b * ye, et += b * ve, rt += b * Se, Ct += b * Le, jt += b * je, Ot += b * ze, ut += (b = C[13]) * St, At += b * Tt, it += b * Rt, pt += b * Nt, Bt += b * wt, ct += b * zt, K += b * Ht, Q += b * pe, st += b * fe, tt += b * be, et += b * ye, rt += b * ve, Ct += b * Se, jt += b * Le, Ot += b * je, Vt += b * ze, At += (b = C[14]) * St, it += b * Tt, pt += b * Rt, Bt += b * Nt, ct += b * wt, K += b * zt, Q += b * Ht, st += b * pe, tt += b * fe, et += b * be, rt += b * ye, Ct += b * ve, jt += b * Se, Ot += b * Le, Vt += b * je, Yt += b * ze, it += (b = C[15]) * St, F += 38 * (Bt += b * Rt), W += 38 * (ct += b * Nt), q += 38 * (K += b * wt), Y += 38 * (Q += b * zt), gt += 38 * (st += b * Ht), X += 38 * (tt += b * pe), dt += 38 * (et += b * fe), _t += 38 * (rt += b * be), nt += 38 * (Ct += b * ye), ht += 38 * (jt += b * ve), xt += 38 * (Ot += b * Se), at += 38 * (Vt += b * Le), ut += 38 * (Yt += b * je), At += 38 * (Jt += b * ze), U = (b = (U += 38 * (pt += b * Tt)) + (S = 1) + 65535) - 65536 * (S = Math.floor(b / 65536)), F = (b = F + S + 65535) - 65536 * (S = Math.floor(b / 65536)), W = (b = W + S + 65535) - 65536 * (S = Math.floor(b / 65536)), q = (b = q + S + 65535) - 65536 * (S = Math.floor(b / 65536)), Y = (b = Y + S + 65535) - 65536 * (S = Math.floor(b / 65536)), gt = (b = gt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), X = (b = X + S + 65535) - 65536 * (S = Math.floor(b / 65536)), dt = (b = dt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), _t = (b = _t + S + 65535) - 65536 * (S = Math.floor(b / 65536)), nt = (b = nt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), ht = (b = ht + S + 65535) - 65536 * (S = Math.floor(b / 65536)), xt = (b = xt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), at = (b = at + S + 65535) - 65536 * (S = Math.floor(b / 65536)), ut = (b = ut + S + 65535) - 65536 * (S = Math.floor(b / 65536)), At = (b = At + S + 65535) - 65536 * (S = Math.floor(b / 65536)), it = (b = it + S + 65535) - 65536 * (S = Math.floor(b / 65536)), U = (b = (U += S - 1 + 37 * (S - 1)) + (S = 1) + 65535) - 65536 * (S = Math.floor(b / 65536)), F = (b = F + S + 65535) - 65536 * (S = Math.floor(b / 65536)), W = (b = W + S + 65535) - 65536 * (S = Math.floor(b / 65536)), q = (b = q + S + 65535) - 65536 * (S = Math.floor(b / 65536)), Y = (b = Y + S + 65535) - 65536 * (S = Math.floor(b / 65536)), gt = (b = gt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), X = (b = X + S + 65535) - 65536 * (S = Math.floor(b / 65536)), dt = (b = dt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), _t = (b = _t + S + 65535) - 65536 * (S = Math.floor(b / 65536)), nt = (b = nt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), ht = (b = ht + S + 65535) - 65536 * (S = Math.floor(b / 65536)), xt = (b = xt + S + 65535) - 65536 * (S = Math.floor(b / 65536)), at = (b = at + S + 65535) - 65536 * (S = Math.floor(b / 65536)), ut = (b = ut + S + 65535) - 65536 * (S = Math.floor(b / 65536)), At = (b = At + S + 65535) - 65536 * (S = Math.floor(b / 65536)), it = (b = it + S + 65535) - 65536 * (S = Math.floor(b / 65536)), U += S - 1 + 37 * (S - 1), T[0] = U, T[1] = F, T[2] = W, T[3] = q, T[4] = Y, T[5] = gt, T[6] = X, T[7] = dt, T[8] = _t, T[9] = nt, T[10] = ht, T[11] = xt, T[12] = at, T[13] = ut, T[14] = At, T[15] = it;
|
|
8640
8640
|
}
|
|
8641
8641
|
function G(T, C) {
|
|
8642
8642
|
D(T, C, C);
|
|
@@ -8654,38 +8654,38 @@ var sa = { exports: {} };
|
|
|
8654
8654
|
for (B = 0; B < 16; B++) T[B] = b[B];
|
|
8655
8655
|
}
|
|
8656
8656
|
function mt(T, C, B) {
|
|
8657
|
-
var b, S,
|
|
8658
|
-
for (S = 0; S < 31; S++)
|
|
8659
|
-
for (
|
|
8660
|
-
for (W[0] = gt[0] = 1, S = 254; S >= 0; --S) P(W, q, b =
|
|
8657
|
+
var b, S, U = new Uint8Array(32), F = new Float64Array(80), W = t(), q = t(), Y = t(), gt = t(), X = t(), dt = t();
|
|
8658
|
+
for (S = 0; S < 31; S++) U[S] = C[S];
|
|
8659
|
+
for (U[31] = 127 & C[31] | 64, U[0] &= 248, $(F, B), S = 0; S < 16; S++) q[S] = F[S], gt[S] = W[S] = Y[S] = 0;
|
|
8660
|
+
for (W[0] = gt[0] = 1, S = 254; S >= 0; --S) P(W, q, b = U[S >>> 3] >>> (7 & S) & 1), P(Y, gt, b), V(X, W, Y), H(W, W, Y), V(Y, q, gt), H(q, q, gt), G(gt, X), G(dt, W), D(W, Y, W), D(Y, q, X), V(X, W, Y), H(W, W, Y), G(q, W), H(Y, gt, dt), D(W, Y, o), V(W, W, gt), D(Y, Y, W), D(W, gt, dt), D(gt, q, F), G(q, X), P(W, q, b), P(Y, gt, b);
|
|
8661
8661
|
for (S = 0; S < 16; S++) F[S + 16] = W[S], F[S + 32] = Y[S], F[S + 48] = q[S], F[S + 64] = gt[S];
|
|
8662
8662
|
var _t = F.subarray(32), nt = F.subarray(16);
|
|
8663
8663
|
return Et(_t, _t), D(nt, nt, _t), N(T, nt), 0;
|
|
8664
8664
|
}
|
|
8665
|
-
function
|
|
8665
|
+
function Ut(T, C) {
|
|
8666
8666
|
return mt(T, C, i);
|
|
8667
8667
|
}
|
|
8668
8668
|
function lt(T, C) {
|
|
8669
|
-
return r(C, 32),
|
|
8669
|
+
return r(C, 32), Ut(T, C);
|
|
8670
8670
|
}
|
|
8671
8671
|
function kt(T, C, B) {
|
|
8672
8672
|
var b = new Uint8Array(32);
|
|
8673
8673
|
return mt(b, B, C), k(T, n, b, O);
|
|
8674
8674
|
}
|
|
8675
8675
|
f.prototype.blocks = function(T, C, B) {
|
|
8676
|
-
for (var b, S,
|
|
8676
|
+
for (var b, S, U, F, W, q, Y, gt, X, dt, _t, nt, ht, xt, at, ut, At, it, pt, Bt = this.fin ? 0 : 2048, ct = this.h[0], K = this.h[1], Q = this.h[2], st = this.h[3], tt = this.h[4], et = this.h[5], rt = this.h[6], Ct = this.h[7], jt = this.h[8], Ot = this.h[9], Vt = this.r[0], Yt = this.r[1], Jt = this.r[2], St = this.r[3], Tt = this.r[4], Rt = this.r[5], Nt = this.r[6], wt = this.r[7], zt = this.r[8], Ht = this.r[9]; B >= 16; ) dt = X = 0, dt += (ct += 8191 & (b = 255 & T[C + 0] | (255 & T[C + 1]) << 8)) * Vt, dt += (K += 8191 & (b >>> 13 | (S = 255 & T[C + 2] | (255 & T[C + 3]) << 8) << 3)) * (5 * Ht), dt += (Q += 8191 & (S >>> 10 | (U = 255 & T[C + 4] | (255 & T[C + 5]) << 8) << 6)) * (5 * zt), dt += (st += 8191 & (U >>> 7 | (F = 255 & T[C + 6] | (255 & T[C + 7]) << 8) << 9)) * (5 * wt), X = (dt += (tt += 8191 & (F >>> 4 | (W = 255 & T[C + 8] | (255 & T[C + 9]) << 8) << 12)) * (5 * Nt)) >>> 13, dt &= 8191, dt += (et += W >>> 1 & 8191) * (5 * Rt), dt += (rt += 8191 & (W >>> 14 | (q = 255 & T[C + 10] | (255 & T[C + 11]) << 8) << 2)) * (5 * Tt), dt += (Ct += 8191 & (q >>> 11 | (Y = 255 & T[C + 12] | (255 & T[C + 13]) << 8) << 5)) * (5 * St), dt += (jt += 8191 & (Y >>> 8 | (gt = 255 & T[C + 14] | (255 & T[C + 15]) << 8) << 8)) * (5 * Jt), _t = X += (dt += (Ot += gt >>> 5 | Bt) * (5 * Yt)) >>> 13, _t += ct * Yt, _t += K * Vt, _t += Q * (5 * Ht), _t += st * (5 * zt), X = (_t += tt * (5 * wt)) >>> 13, _t &= 8191, _t += et * (5 * Nt), _t += rt * (5 * Rt), _t += Ct * (5 * Tt), _t += jt * (5 * St), X += (_t += Ot * (5 * Jt)) >>> 13, _t &= 8191, nt = X, nt += ct * Jt, nt += K * Yt, nt += Q * Vt, nt += st * (5 * Ht), X = (nt += tt * (5 * zt)) >>> 13, nt &= 8191, nt += et * (5 * wt), nt += rt * (5 * Nt), nt += Ct * (5 * Rt), nt += jt * (5 * Tt), ht = X += (nt += Ot * (5 * St)) >>> 13, ht += ct * St, ht += K * Jt, ht += Q * Yt, ht += st * Vt, X = (ht += tt * (5 * Ht)) >>> 13, ht &= 8191, ht += et * (5 * zt), ht += rt * (5 * wt), ht += Ct * (5 * Nt), ht += jt * (5 * Rt), xt = X += (ht += Ot * (5 * Tt)) >>> 13, xt += ct * Tt, xt += K * St, xt += Q * Jt, xt += st * Yt, X = (xt += tt * Vt) >>> 13, xt &= 8191, xt += et * (5 * Ht), xt += rt * (5 * zt), xt += Ct * (5 * wt), xt += jt * (5 * Nt), at = X += (xt += Ot * (5 * Rt)) >>> 13, at += ct * Rt, at += K * Tt, at += Q * St, at += st * Jt, X = (at += tt * Yt) >>> 13, at &= 8191, at += et * Vt, at += rt * (5 * Ht), at += Ct * (5 * zt), at += jt * (5 * wt), ut = X += (at += Ot * (5 * Nt)) >>> 13, ut += ct * Nt, ut += K * Rt, ut += Q * Tt, ut += st * St, X = (ut += tt * Jt) >>> 13, ut &= 8191, ut += et * Yt, ut += rt * Vt, ut += Ct * (5 * Ht), ut += jt * (5 * zt), At = X += (ut += Ot * (5 * wt)) >>> 13, At += ct * wt, At += K * Nt, At += Q * Rt, At += st * Tt, X = (At += tt * St) >>> 13, At &= 8191, At += et * Jt, At += rt * Yt, At += Ct * Vt, At += jt * (5 * Ht), it = X += (At += Ot * (5 * zt)) >>> 13, it += ct * zt, it += K * wt, it += Q * Nt, it += st * Rt, X = (it += tt * Tt) >>> 13, it &= 8191, it += et * St, it += rt * Jt, it += Ct * Yt, it += jt * Vt, pt = X += (it += Ot * (5 * Ht)) >>> 13, pt += ct * Ht, pt += K * zt, pt += Q * wt, pt += st * Nt, X = (pt += tt * Rt) >>> 13, pt &= 8191, pt += et * Tt, pt += rt * St, pt += Ct * Jt, pt += jt * Yt, ct = dt = 8191 & (X = (X = ((X += (pt += Ot * Vt) >>> 13) << 2) + X | 0) + (dt &= 8191) | 0), K = _t += X >>>= 13, Q = nt &= 8191, st = ht &= 8191, tt = xt &= 8191, et = at &= 8191, rt = ut &= 8191, Ct = At &= 8191, jt = it &= 8191, Ot = pt &= 8191, C += 16, B -= 16;
|
|
8677
8677
|
this.h[0] = ct, this.h[1] = K, this.h[2] = Q, this.h[3] = st, this.h[4] = tt, this.h[5] = et, this.h[6] = rt, this.h[7] = Ct, this.h[8] = jt, this.h[9] = Ot;
|
|
8678
8678
|
}, f.prototype.finish = function(T, C) {
|
|
8679
|
-
var B, b, S,
|
|
8679
|
+
var B, b, S, U, F = new Uint16Array(10);
|
|
8680
8680
|
if (this.leftover) {
|
|
8681
|
-
for (
|
|
8681
|
+
for (U = this.leftover, this.buffer[U++] = 1; U < 16; U++) this.buffer[U] = 0;
|
|
8682
8682
|
this.fin = 1, this.blocks(this.buffer, 0, 16);
|
|
8683
8683
|
}
|
|
8684
|
-
for (B = this.h[1] >>> 13, this.h[1] &= 8191,
|
|
8685
|
-
for (this.h[0] += 5 * B, B = this.h[0] >>> 13, this.h[0] &= 8191, this.h[1] += B, B = this.h[1] >>> 13, this.h[1] &= 8191, this.h[2] += B, F[0] = this.h[0] + 5, B = F[0] >>> 13, F[0] &= 8191,
|
|
8686
|
-
for (F[9] -= 8192, b = (1 ^ B) - 1,
|
|
8687
|
-
for (b = ~b,
|
|
8688
|
-
for (this.h[0] = 65535 & (this.h[0] | this.h[1] << 13), this.h[1] = 65535 & (this.h[1] >>> 3 | this.h[2] << 10), this.h[2] = 65535 & (this.h[2] >>> 6 | this.h[3] << 7), this.h[3] = 65535 & (this.h[3] >>> 9 | this.h[4] << 4), this.h[4] = 65535 & (this.h[4] >>> 12 | this.h[5] << 1 | this.h[6] << 14), this.h[5] = 65535 & (this.h[6] >>> 2 | this.h[7] << 11), this.h[6] = 65535 & (this.h[7] >>> 5 | this.h[8] << 8), this.h[7] = 65535 & (this.h[8] >>> 8 | this.h[9] << 5), S = this.h[0] + this.pad[0], this.h[0] = 65535 & S,
|
|
8684
|
+
for (B = this.h[1] >>> 13, this.h[1] &= 8191, U = 2; U < 10; U++) this.h[U] += B, B = this.h[U] >>> 13, this.h[U] &= 8191;
|
|
8685
|
+
for (this.h[0] += 5 * B, B = this.h[0] >>> 13, this.h[0] &= 8191, this.h[1] += B, B = this.h[1] >>> 13, this.h[1] &= 8191, this.h[2] += B, F[0] = this.h[0] + 5, B = F[0] >>> 13, F[0] &= 8191, U = 1; U < 10; U++) F[U] = this.h[U] + B, B = F[U] >>> 13, F[U] &= 8191;
|
|
8686
|
+
for (F[9] -= 8192, b = (1 ^ B) - 1, U = 0; U < 10; U++) F[U] &= b;
|
|
8687
|
+
for (b = ~b, U = 0; U < 10; U++) this.h[U] = this.h[U] & b | F[U];
|
|
8688
|
+
for (this.h[0] = 65535 & (this.h[0] | this.h[1] << 13), this.h[1] = 65535 & (this.h[1] >>> 3 | this.h[2] << 10), this.h[2] = 65535 & (this.h[2] >>> 6 | this.h[3] << 7), this.h[3] = 65535 & (this.h[3] >>> 9 | this.h[4] << 4), this.h[4] = 65535 & (this.h[4] >>> 12 | this.h[5] << 1 | this.h[6] << 14), this.h[5] = 65535 & (this.h[6] >>> 2 | this.h[7] << 11), this.h[6] = 65535 & (this.h[7] >>> 5 | this.h[8] << 8), this.h[7] = 65535 & (this.h[8] >>> 8 | this.h[9] << 5), S = this.h[0] + this.pad[0], this.h[0] = 65535 & S, U = 1; U < 8; U++) S = (this.h[U] + this.pad[U] | 0) + (S >>> 16) | 0, this.h[U] = 65535 & S;
|
|
8689
8689
|
T[C + 0] = this.h[0] >>> 0 & 255, T[C + 1] = this.h[0] >>> 8 & 255, T[C + 2] = this.h[1] >>> 0 & 255, T[C + 3] = this.h[1] >>> 8 & 255, T[C + 4] = this.h[2] >>> 0 & 255, T[C + 5] = this.h[2] >>> 8 & 255, T[C + 6] = this.h[3] >>> 0 & 255, T[C + 7] = this.h[3] >>> 8 & 255, T[C + 8] = this.h[4] >>> 0 & 255, T[C + 9] = this.h[4] >>> 8 & 255, T[C + 10] = this.h[5] >>> 0 & 255, T[C + 11] = this.h[5] >>> 8 & 255, T[C + 12] = this.h[6] >>> 0 & 255, T[C + 13] = this.h[6] >>> 8 & 255, T[C + 14] = this.h[7] >>> 0 & 255, T[C + 15] = this.h[7] >>> 8 & 255;
|
|
8690
8690
|
}, f.prototype.update = function(T, C, B) {
|
|
8691
8691
|
var b, S;
|
|
@@ -8701,22 +8701,22 @@ var sa = { exports: {} };
|
|
|
8701
8701
|
};
|
|
8702
8702
|
var Ft = m, Lt = u, se = [1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591];
|
|
8703
8703
|
function Ke(T, C, B, b) {
|
|
8704
|
-
for (var S,
|
|
8704
|
+
for (var S, U, F, W, q, Y, gt, X, dt, _t, nt, ht, xt, at, ut, At, it, pt, Bt, ct, K, Q, st, tt, et, rt, Ct = new Int32Array(16), jt = new Int32Array(16), Ot = T[0], Vt = T[1], Yt = T[2], Jt = T[3], St = T[4], Tt = T[5], Rt = T[6], Nt = T[7], wt = C[0], zt = C[1], Ht = C[2], pe = C[3], fe = C[4], be = C[5], ye = C[6], ve = C[7], Se = 0; b >= 128; ) {
|
|
8705
8705
|
for (Bt = 0; Bt < 16; Bt++) ct = 8 * Bt + Se, Ct[Bt] = B[ct + 0] << 24 | B[ct + 1] << 16 | B[ct + 2] << 8 | B[ct + 3], jt[Bt] = B[ct + 4] << 24 | B[ct + 5] << 16 | B[ct + 6] << 8 | B[ct + 7];
|
|
8706
|
-
for (Bt = 0; Bt < 80; Bt++) if (S = Ot,
|
|
8706
|
+
for (Bt = 0; Bt < 80; Bt++) if (S = Ot, U = Vt, F = Yt, W = Jt, q = St, Y = Tt, gt = Rt, dt = wt, _t = zt, nt = Ht, ht = pe, xt = fe, at = be, ut = ye, st = 65535 & (Q = ve), tt = Q >>> 16, et = 65535 & (K = Nt), rt = K >>> 16, st += 65535 & (Q = (fe >>> 14 | St << 18) ^ (fe >>> 18 | St << 14) ^ (St >>> 9 | fe << 23)), tt += Q >>> 16, et += 65535 & (K = (St >>> 14 | fe << 18) ^ (St >>> 18 | fe << 14) ^ (fe >>> 9 | St << 23)), rt += K >>> 16, st += 65535 & (Q = fe & be ^ ~fe & ye), tt += Q >>> 16, et += 65535 & (K = St & Tt ^ ~St & Rt), rt += K >>> 16, st += 65535 & (Q = se[2 * Bt + 1]), tt += Q >>> 16, et += 65535 & (K = se[2 * Bt]), rt += K >>> 16, K = Ct[Bt % 16], tt += (Q = jt[Bt % 16]) >>> 16, et += 65535 & K, rt += K >>> 16, et += (tt += (st += 65535 & Q) >>> 16) >>> 16, st = 65535 & (Q = pt = 65535 & st | tt << 16), tt = Q >>> 16, et = 65535 & (K = it = 65535 & et | (rt += et >>> 16) << 16), rt = K >>> 16, st += 65535 & (Q = (wt >>> 28 | Ot << 4) ^ (Ot >>> 2 | wt << 30) ^ (Ot >>> 7 | wt << 25)), tt += Q >>> 16, et += 65535 & (K = (Ot >>> 28 | wt << 4) ^ (wt >>> 2 | Ot << 30) ^ (wt >>> 7 | Ot << 25)), rt += K >>> 16, tt += (Q = wt & zt ^ wt & Ht ^ zt & Ht) >>> 16, et += 65535 & (K = Ot & Vt ^ Ot & Yt ^ Vt & Yt), rt += K >>> 16, X = 65535 & (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) | (rt += et >>> 16) << 16, At = 65535 & st | tt << 16, st = 65535 & (Q = ht), tt = Q >>> 16, et = 65535 & (K = W), rt = K >>> 16, tt += (Q = pt) >>> 16, et += 65535 & (K = it), rt += K >>> 16, Vt = S, Yt = U, Jt = F, St = W = 65535 & (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) | (rt += et >>> 16) << 16, Tt = q, Rt = Y, Nt = gt, Ot = X, zt = dt, Ht = _t, pe = nt, fe = ht = 65535 & st | tt << 16, be = xt, ye = at, ve = ut, wt = At, Bt % 16 == 15) for (ct = 0; ct < 16; ct++) K = Ct[ct], st = 65535 & (Q = jt[ct]), tt = Q >>> 16, et = 65535 & K, rt = K >>> 16, K = Ct[(ct + 9) % 16], st += 65535 & (Q = jt[(ct + 9) % 16]), tt += Q >>> 16, et += 65535 & K, rt += K >>> 16, it = Ct[(ct + 1) % 16], st += 65535 & (Q = ((pt = jt[(ct + 1) % 16]) >>> 1 | it << 31) ^ (pt >>> 8 | it << 24) ^ (pt >>> 7 | it << 25)), tt += Q >>> 16, et += 65535 & (K = (it >>> 1 | pt << 31) ^ (it >>> 8 | pt << 24) ^ it >>> 7), rt += K >>> 16, it = Ct[(ct + 14) % 16], tt += (Q = ((pt = jt[(ct + 14) % 16]) >>> 19 | it << 13) ^ (it >>> 29 | pt << 3) ^ (pt >>> 6 | it << 26)) >>> 16, et += 65535 & (K = (it >>> 19 | pt << 13) ^ (pt >>> 29 | it << 3) ^ it >>> 6), rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, Ct[ct] = 65535 & et | rt << 16, jt[ct] = 65535 & st | tt << 16;
|
|
8707
8707
|
st = 65535 & (Q = wt), tt = Q >>> 16, et = 65535 & (K = Ot), rt = K >>> 16, K = T[0], tt += (Q = C[0]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[0] = Ot = 65535 & et | rt << 16, C[0] = wt = 65535 & st | tt << 16, st = 65535 & (Q = zt), tt = Q >>> 16, et = 65535 & (K = Vt), rt = K >>> 16, K = T[1], tt += (Q = C[1]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[1] = Vt = 65535 & et | rt << 16, C[1] = zt = 65535 & st | tt << 16, st = 65535 & (Q = Ht), tt = Q >>> 16, et = 65535 & (K = Yt), rt = K >>> 16, K = T[2], tt += (Q = C[2]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[2] = Yt = 65535 & et | rt << 16, C[2] = Ht = 65535 & st | tt << 16, st = 65535 & (Q = pe), tt = Q >>> 16, et = 65535 & (K = Jt), rt = K >>> 16, K = T[3], tt += (Q = C[3]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[3] = Jt = 65535 & et | rt << 16, C[3] = pe = 65535 & st | tt << 16, st = 65535 & (Q = fe), tt = Q >>> 16, et = 65535 & (K = St), rt = K >>> 16, K = T[4], tt += (Q = C[4]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[4] = St = 65535 & et | rt << 16, C[4] = fe = 65535 & st | tt << 16, st = 65535 & (Q = be), tt = Q >>> 16, et = 65535 & (K = Tt), rt = K >>> 16, K = T[5], tt += (Q = C[5]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[5] = Tt = 65535 & et | rt << 16, C[5] = be = 65535 & st | tt << 16, st = 65535 & (Q = ye), tt = Q >>> 16, et = 65535 & (K = Rt), rt = K >>> 16, K = T[6], tt += (Q = C[6]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[6] = Rt = 65535 & et | rt << 16, C[6] = ye = 65535 & st | tt << 16, st = 65535 & (Q = ve), tt = Q >>> 16, et = 65535 & (K = Nt), rt = K >>> 16, K = T[7], tt += (Q = C[7]) >>> 16, et += 65535 & K, rt += K >>> 16, rt += (et += (tt += (st += 65535 & Q) >>> 16) >>> 16) >>> 16, T[7] = Nt = 65535 & et | rt << 16, C[7] = ve = 65535 & st | tt << 16, Se += 128, b -= 128;
|
|
8708
8708
|
}
|
|
8709
8709
|
return b;
|
|
8710
8710
|
}
|
|
8711
8711
|
function Wt(T, C, B) {
|
|
8712
|
-
var b, S = new Int32Array(8),
|
|
8713
|
-
for (S[0] = 1779033703, S[1] = 3144134277, S[2] = 1013904242, S[3] = 2773480762, S[4] = 1359893119, S[5] = 2600822924, S[6] = 528734635, S[7] = 1541459225,
|
|
8714
|
-
for (F[B] = 128, F[(B = 256 - 128 * (B < 112 ? 1 : 0)) - 9] = 0, v(F, B - 8, W / 536870912 | 0, W << 3), Ke(S,
|
|
8712
|
+
var b, S = new Int32Array(8), U = new Int32Array(8), F = new Uint8Array(256), W = B;
|
|
8713
|
+
for (S[0] = 1779033703, S[1] = 3144134277, S[2] = 1013904242, S[3] = 2773480762, S[4] = 1359893119, S[5] = 2600822924, S[6] = 528734635, S[7] = 1541459225, U[0] = 4089235720, U[1] = 2227873595, U[2] = 4271175723, U[3] = 1595750129, U[4] = 2917565137, U[5] = 725511199, U[6] = 4215389547, U[7] = 327033209, Ke(S, U, C, B), B %= 128, b = 0; b < B; b++) F[b] = C[W - B + b];
|
|
8714
|
+
for (F[B] = 128, F[(B = 256 - 128 * (B < 112 ? 1 : 0)) - 9] = 0, v(F, B - 8, W / 536870912 | 0, W << 3), Ke(S, U, F, B), b = 0; b < 8; b++) v(T, 8 * b, S[b], U[b]);
|
|
8715
8715
|
return 0;
|
|
8716
8716
|
}
|
|
8717
8717
|
function te(T, C) {
|
|
8718
|
-
var B = t(), b = t(), S = t(),
|
|
8719
|
-
H(B, T[1], T[0]), H(gt, C[1], C[0]), D(B, B, gt), V(b, T[0], T[1]), V(gt, C[0], C[1]), D(b, b, gt), D(S, T[3], C[3]), D(S, S, d), D(
|
|
8718
|
+
var B = t(), b = t(), S = t(), U = t(), F = t(), W = t(), q = t(), Y = t(), gt = t();
|
|
8719
|
+
H(B, T[1], T[0]), H(gt, C[1], C[0]), D(B, B, gt), V(b, T[0], T[1]), V(gt, C[0], C[1]), D(b, b, gt), D(S, T[3], C[3]), D(S, S, d), D(U, T[2], C[2]), V(U, U, U), H(F, b, B), H(W, U, S), V(q, U, S), V(Y, b, B), D(T[0], F, W), D(T[1], Y, q), D(T[2], q, W), D(T[3], F, Y);
|
|
8720
8720
|
}
|
|
8721
8721
|
function Or(T, C, B) {
|
|
8722
8722
|
var b;
|
|
@@ -8735,15 +8735,15 @@ var sa = { exports: {} };
|
|
|
8735
8735
|
y(B[0], h), y(B[1], l), y(B[2], a), D(B[3], h, l), Zt(T, B, C);
|
|
8736
8736
|
}
|
|
8737
8737
|
function ne(T, C, B) {
|
|
8738
|
-
var b, S = new Uint8Array(64),
|
|
8739
|
-
for (B || r(C, 32), Wt(S, C, 32), S[0] &= 248, S[31] &= 127, S[31] |= 64, De(
|
|
8738
|
+
var b, S = new Uint8Array(64), U = [t(), t(), t(), t()];
|
|
8739
|
+
for (B || r(C, 32), Wt(S, C, 32), S[0] &= 248, S[31] &= 127, S[31] |= 64, De(U, S), oe(T, U), b = 0; b < 32; b++) C[b + 32] = T[b];
|
|
8740
8740
|
return 0;
|
|
8741
8741
|
}
|
|
8742
8742
|
var ae = new Float64Array([237, 211, 245, 92, 26, 99, 18, 88, 214, 156, 247, 162, 222, 249, 222, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16]);
|
|
8743
8743
|
function Cr(T, C) {
|
|
8744
|
-
var B, b, S,
|
|
8744
|
+
var B, b, S, U;
|
|
8745
8745
|
for (b = 63; b >= 32; --b) {
|
|
8746
|
-
for (B = 0, S = b - 32,
|
|
8746
|
+
for (B = 0, S = b - 32, U = b - 12; S < U; ++S) C[S] += B - 16 * C[b] * ae[S - (b - 32)], B = Math.floor((C[S] + 128) / 256), C[S] -= 256 * B;
|
|
8747
8747
|
C[S] += B, C[b] = 0;
|
|
8748
8748
|
}
|
|
8749
8749
|
for (B = 0, S = 0; S < 32; S++) C[S] += B - (C[31] >> 4) * ae[S], B = C[S] >> 8, C[S] &= 255;
|
|
@@ -8757,7 +8757,7 @@ var sa = { exports: {} };
|
|
|
8757
8757
|
Cr(T, B);
|
|
8758
8758
|
}
|
|
8759
8759
|
function ce(T, C, B, b) {
|
|
8760
|
-
var S,
|
|
8760
|
+
var S, U, F = new Uint8Array(64), W = new Uint8Array(64), q = new Uint8Array(64), Y = new Float64Array(64), gt = [t(), t(), t(), t()];
|
|
8761
8761
|
Wt(F, b, 32), F[0] &= 248, F[31] &= 127, F[31] |= 64;
|
|
8762
8762
|
var X = B + 64;
|
|
8763
8763
|
for (S = 0; S < B; S++) T[64 + S] = C[S];
|
|
@@ -8765,18 +8765,18 @@ var sa = { exports: {} };
|
|
|
8765
8765
|
for (Wt(q, T.subarray(32), B + 32), ie(q), De(gt, q), oe(T, gt), S = 32; S < 64; S++) T[S] = b[S];
|
|
8766
8766
|
for (Wt(W, T, B + 64), ie(W), S = 0; S < 64; S++) Y[S] = 0;
|
|
8767
8767
|
for (S = 0; S < 32; S++) Y[S] = q[S];
|
|
8768
|
-
for (S = 0; S < 32; S++) for (
|
|
8768
|
+
for (S = 0; S < 32; S++) for (U = 0; U < 32; U++) Y[S + U] += W[S] * F[U];
|
|
8769
8769
|
return Cr(T.subarray(32), Y), X;
|
|
8770
8770
|
}
|
|
8771
8771
|
function Zr(T, C, B, b) {
|
|
8772
|
-
var S,
|
|
8772
|
+
var S, U = new Uint8Array(32), F = new Uint8Array(64), W = [t(), t(), t(), t()], q = [t(), t(), t(), t()];
|
|
8773
8773
|
if (B < 64 || function(Y, gt) {
|
|
8774
8774
|
var X = t(), dt = t(), _t = t(), nt = t(), ht = t(), xt = t(), at = t();
|
|
8775
|
-
return y(Y[2], a),
|
|
8775
|
+
return y(Y[2], a), $(Y[1], gt), G(_t, Y[1]), D(nt, _t, c), H(_t, _t, Y[2]), V(nt, Y[2], nt), G(ht, nt), G(xt, ht), D(at, xt, ht), D(X, at, _t), D(X, X, nt), ot(X, X), D(X, X, _t), D(X, X, nt), D(X, X, nt), D(Y[0], X, nt), G(dt, Y[0]), D(dt, dt, nt), j(dt, _t) && D(Y[0], Y[0], _), G(dt, Y[0]), D(dt, dt, nt), j(dt, _t) ? -1 : (Z(Y[0]) === gt[31] >> 7 && H(Y[0], s, Y[0]), D(Y[3], Y[0], Y[1]), 0);
|
|
8776
8776
|
}(q, b)) return -1;
|
|
8777
8777
|
for (S = 0; S < B; S++) T[S] = C[S];
|
|
8778
8778
|
for (S = 0; S < 32; S++) T[S + 32] = b[S];
|
|
8779
|
-
if (Wt(F, T, B), ie(F), Zt(W, q, F), De(q, C.subarray(32)), te(W, q), oe(
|
|
8779
|
+
if (Wt(F, T, B), ie(F), Zt(W, q, F), De(q, C.subarray(32)), te(W, q), oe(U, W), B -= 64, x(C, 0, U, 0)) {
|
|
8780
8780
|
for (S = 0; S < B; S++) T[S] = 0;
|
|
8781
8781
|
return -1;
|
|
8782
8782
|
}
|
|
@@ -8794,22 +8794,22 @@ var sa = { exports: {} };
|
|
|
8794
8794
|
function he(T) {
|
|
8795
8795
|
for (var C = 0; C < T.length; C++) T[C] = 0;
|
|
8796
8796
|
}
|
|
8797
|
-
e.lowlevel = { crypto_core_hsalsa20: k, crypto_stream_xor: z, crypto_stream: L, crypto_stream_salsa20_xor: E, crypto_stream_salsa20: R, crypto_onetimeauth: p, crypto_onetimeauth_verify: g, crypto_verify_16: I, crypto_verify_32: x, crypto_secretbox: m, crypto_secretbox_open: u, crypto_scalarmult: mt, crypto_scalarmult_base:
|
|
8797
|
+
e.lowlevel = { crypto_core_hsalsa20: k, crypto_stream_xor: z, crypto_stream: L, crypto_stream_salsa20_xor: E, crypto_stream_salsa20: R, crypto_onetimeauth: p, crypto_onetimeauth_verify: g, crypto_verify_16: I, crypto_verify_32: x, crypto_secretbox: m, crypto_secretbox_open: u, crypto_scalarmult: mt, crypto_scalarmult_base: Ut, crypto_box_beforenm: kt, crypto_box_afternm: Ft, crypto_box: function(T, C, B, b, S, U) {
|
|
8798
8798
|
var F = new Uint8Array(32);
|
|
8799
|
-
return kt(F, S,
|
|
8800
|
-
}, crypto_box_open: function(T, C, B, b, S,
|
|
8799
|
+
return kt(F, S, U), Ft(T, C, B, b, F);
|
|
8800
|
+
}, crypto_box_open: function(T, C, B, b, S, U) {
|
|
8801
8801
|
var F = new Uint8Array(32);
|
|
8802
|
-
return kt(F, S,
|
|
8803
|
-
}, crypto_box_keypair: lt, crypto_hash: Wt, crypto_sign: ce, crypto_sign_keypair: ne, crypto_sign_open: Zr, crypto_secretbox_KEYBYTES: 32, crypto_secretbox_NONCEBYTES: 24, crypto_secretbox_ZEROBYTES: 32, crypto_secretbox_BOXZEROBYTES: de, crypto_scalarmult_BYTES: 32, crypto_scalarmult_SCALARBYTES: 32, crypto_box_PUBLICKEYBYTES: 32, crypto_box_SECRETKEYBYTES: 32, crypto_box_BEFORENMBYTES: 32, crypto_box_NONCEBYTES: 24, crypto_box_ZEROBYTES: 32, crypto_box_BOXZEROBYTES: 16, crypto_sign_BYTES: ee, crypto_sign_PUBLICKEYBYTES: Be, crypto_sign_SECRETKEYBYTES: re, crypto_sign_SEEDBYTES: 32, crypto_hash_BYTES: 64, gf: t, D: c, L: ae, pack25519: N, unpack25519:
|
|
8802
|
+
return kt(F, S, U), Lt(T, C, B, b, F);
|
|
8803
|
+
}, crypto_box_keypair: lt, crypto_hash: Wt, crypto_sign: ce, crypto_sign_keypair: ne, crypto_sign_open: Zr, crypto_secretbox_KEYBYTES: 32, crypto_secretbox_NONCEBYTES: 24, crypto_secretbox_ZEROBYTES: 32, crypto_secretbox_BOXZEROBYTES: de, crypto_scalarmult_BYTES: 32, crypto_scalarmult_SCALARBYTES: 32, crypto_box_PUBLICKEYBYTES: 32, crypto_box_SECRETKEYBYTES: 32, crypto_box_BEFORENMBYTES: 32, crypto_box_NONCEBYTES: 24, crypto_box_ZEROBYTES: 32, crypto_box_BOXZEROBYTES: 16, crypto_sign_BYTES: ee, crypto_sign_PUBLICKEYBYTES: Be, crypto_sign_SECRETKEYBYTES: re, crypto_sign_SEEDBYTES: 32, crypto_hash_BYTES: 64, gf: t, D: c, L: ae, pack25519: N, unpack25519: $, M: D, A: V, S: G, Z: H, pow2523: ot, add: te, set25519: y, modL: Cr, scalarmult: Zt, scalarbase: De }, e.randomBytes = function(T) {
|
|
8804
8804
|
var C = new Uint8Array(T);
|
|
8805
8805
|
return r(C, T), C;
|
|
8806
8806
|
}, e.secretbox = function(T, C, B) {
|
|
8807
8807
|
Ae(T, C, B), le(B, C);
|
|
8808
|
-
for (var b = new Uint8Array(32 + T.length), S = new Uint8Array(b.length),
|
|
8808
|
+
for (var b = new Uint8Array(32 + T.length), S = new Uint8Array(b.length), U = 0; U < T.length; U++) b[U + 32] = T[U];
|
|
8809
8809
|
return m(S, b, b.length, C, B), S.subarray(de);
|
|
8810
8810
|
}, e.secretbox.open = function(T, C, B) {
|
|
8811
8811
|
Ae(T, C, B), le(B, C);
|
|
8812
|
-
for (var b = new Uint8Array(de + T.length), S = new Uint8Array(b.length),
|
|
8812
|
+
for (var b = new Uint8Array(de + T.length), S = new Uint8Array(b.length), U = 0; U < T.length; U++) b[U + de] = T[U];
|
|
8813
8813
|
return b.length < 32 || u(S, b, b.length, C, B) !== 0 ? null : S.subarray(32);
|
|
8814
8814
|
}, e.secretbox.keyLength = 32, e.secretbox.nonceLength = 24, e.secretbox.overheadLength = de, e.scalarMult = function(T, C) {
|
|
8815
8815
|
if (Ae(T, C), T.length !== 32) throw new Error("bad n size");
|
|
@@ -8819,7 +8819,7 @@ var sa = { exports: {} };
|
|
|
8819
8819
|
}, e.scalarMult.base = function(T) {
|
|
8820
8820
|
if (Ae(T), T.length !== 32) throw new Error("bad n size");
|
|
8821
8821
|
var C = new Uint8Array(32);
|
|
8822
|
-
return
|
|
8822
|
+
return Ut(C, T), C;
|
|
8823
8823
|
}, e.scalarMult.scalarLength = 32, e.scalarMult.groupElementLength = 32, e.box = function(T, C, B, b) {
|
|
8824
8824
|
var S = e.box.before(B, b);
|
|
8825
8825
|
return e.secretbox(T, C, S);
|
|
@@ -8839,7 +8839,7 @@ var sa = { exports: {} };
|
|
|
8839
8839
|
}, e.box.keyPair.fromSecretKey = function(T) {
|
|
8840
8840
|
if (Ae(T), T.length !== 32) throw new Error("bad secret key size");
|
|
8841
8841
|
var C = new Uint8Array(32);
|
|
8842
|
-
return
|
|
8842
|
+
return Ut(C, T), { publicKey: C, secretKey: new Uint8Array(T) };
|
|
8843
8843
|
}, e.box.publicKeyLength = 32, e.box.secretKeyLength = 32, e.box.sharedKeyLength = 32, e.box.nonceLength = 24, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(T, C) {
|
|
8844
8844
|
if (Ae(T, C), C.length !== re) throw new Error("bad secret key size");
|
|
8845
8845
|
var B = new Uint8Array(ee + T.length);
|
|
@@ -8848,7 +8848,7 @@ var sa = { exports: {} };
|
|
|
8848
8848
|
if (Ae(T, C), C.length !== Be) throw new Error("bad public key size");
|
|
8849
8849
|
var B = new Uint8Array(T.length), b = Zr(B, T, T.length, C);
|
|
8850
8850
|
if (b < 0) return null;
|
|
8851
|
-
for (var S = new Uint8Array(b),
|
|
8851
|
+
for (var S = new Uint8Array(b), U = 0; U < S.length; U++) S[U] = B[U];
|
|
8852
8852
|
return S;
|
|
8853
8853
|
}, e.sign.detached = function(T, C) {
|
|
8854
8854
|
for (var B = e.sign(T, C), b = new Uint8Array(ee), S = 0; S < b.length; S++) b[S] = B[S];
|
|
@@ -8856,10 +8856,10 @@ var sa = { exports: {} };
|
|
|
8856
8856
|
}, e.sign.detached.verify = function(T, C, B) {
|
|
8857
8857
|
if (Ae(T, C, B), C.length !== ee) throw new Error("bad signature size");
|
|
8858
8858
|
if (B.length !== Be) throw new Error("bad public key size");
|
|
8859
|
-
var b, S = new Uint8Array(ee + T.length),
|
|
8859
|
+
var b, S = new Uint8Array(ee + T.length), U = new Uint8Array(ee + T.length);
|
|
8860
8860
|
for (b = 0; b < ee; b++) S[b] = C[b];
|
|
8861
8861
|
for (b = 0; b < T.length; b++) S[b + ee] = T[b];
|
|
8862
|
-
return Zr(
|
|
8862
|
+
return Zr(U, S, S.length, B) >= 0;
|
|
8863
8863
|
}, e.sign.keyPair = function() {
|
|
8864
8864
|
var T = new Uint8Array(Be), C = new Uint8Array(re);
|
|
8865
8865
|
return ne(T, C), { publicKey: T, secretKey: C };
|
|
@@ -10250,7 +10250,7 @@ function cs(e, t) {
|
|
|
10250
10250
|
return t.forceNew || t["force new connection"] || t.multiplex === !1 || a ? o = new ha(n, t) : (ci[i] || (ci[i] = new ha(n, t)), o = ci[i]), r.query && !t.query && (t.query = r.queryKey), o.socket(r.path, t);
|
|
10251
10251
|
}
|
|
10252
10252
|
Object.assign(cs, { Manager: ha, Socket: hf, io: cs, connect: cs });
|
|
10253
|
-
const uf = Di.decrypt("
|
|
10253
|
+
const uf = Di.decrypt("U2FsdGVkX184jEA9MSncL37Fsfl/RfM87FwsAEXME+o=", "04a72cc90e761f548d1f2da21f4c79b5fdab4b2db93308427f84e4ae6358a7c69f427b9e0ae102b6bed59dd6c9d0e85ebcf799eef9b1d5959db17bbb1c5098c397");
|
|
10254
10254
|
if (!uf) throw new Error("VITE_SOCKET_URL 환경 변수가 설정되지 않았습니다.");
|
|
10255
10255
|
const pn = class pn {
|
|
10256
10256
|
constructor() {
|
|
@@ -10263,7 +10263,7 @@ const pn = class pn {
|
|
|
10263
10263
|
};
|
|
10264
10264
|
on(pn, "instance");
|
|
10265
10265
|
let ua = pn;
|
|
10266
|
-
const
|
|
10266
|
+
const $t = new class {
|
|
10267
10267
|
constructor() {
|
|
10268
10268
|
on(this, "socketInstance");
|
|
10269
10269
|
this.socketInstance = ua.getInstance();
|
|
@@ -10333,26 +10333,26 @@ const Ut = new class {
|
|
|
10333
10333
|
}
|
|
10334
10334
|
getAccountCrypto() {
|
|
10335
10335
|
return new Promise((e, t) => {
|
|
10336
|
-
|
|
10336
|
+
$t.onMessageReceived("accountInfo", (r) => {
|
|
10337
10337
|
this.isAccountCryptoType(r) ? e(r) : t(new Error("Invalid account crypto"));
|
|
10338
10338
|
});
|
|
10339
10339
|
});
|
|
10340
10340
|
}
|
|
10341
10341
|
receiveRequest(e) {
|
|
10342
10342
|
return new Promise((t, r) => {
|
|
10343
|
-
|
|
10344
|
-
n.message === "Request Message" ? e === n.roomId ? t({ roomId: n.roomId, isSuccess: !0 }) :
|
|
10343
|
+
$t.onMessageReceived("requestMessage", (n) => {
|
|
10344
|
+
n.message === "Request Message" ? e === n.roomId ? t({ roomId: n.roomId, isSuccess: !0 }) : $t.leaveRoom(e) : r(new Error("Request message is different"));
|
|
10345
10345
|
});
|
|
10346
10346
|
});
|
|
10347
10347
|
}
|
|
10348
10348
|
sendMessage(e, t) {
|
|
10349
10349
|
return new Promise((r, n) => {
|
|
10350
|
-
|
|
10350
|
+
$t.confirmMessage(e, t).connected ? r() : n(new Error("Send failed"));
|
|
10351
10351
|
});
|
|
10352
10352
|
}
|
|
10353
10353
|
checkVerified(e, t) {
|
|
10354
10354
|
return new Promise((r, n) => {
|
|
10355
|
-
|
|
10355
|
+
$t.checkVerified(e, t) ? $t.onMessageReceived("checkVerified", (i) => {
|
|
10356
10356
|
r(i);
|
|
10357
10357
|
}) : n(new Error("checkVerified failed"));
|
|
10358
10358
|
});
|
|
@@ -10367,7 +10367,7 @@ Nonce: ${r}`, await this.sendMessage(e, t);
|
|
|
10367
10367
|
} catch (n) {
|
|
10368
10368
|
return Promise.reject(n);
|
|
10369
10369
|
} finally {
|
|
10370
|
-
|
|
10370
|
+
$t.leaveRoom(e);
|
|
10371
10371
|
}
|
|
10372
10372
|
}
|
|
10373
10373
|
}(), w3 = new class {
|
|
@@ -10387,33 +10387,33 @@ Nonce: ${r}`, await this.sendMessage(e, t);
|
|
|
10387
10387
|
}
|
|
10388
10388
|
}(), lf = { Enc: li, Sign: Es, Util: Fe, Validation: w3 }, In = new class {
|
|
10389
10389
|
generateLoginQrCode(e, t, r, n, i, s) {
|
|
10390
|
-
const a = _e.lib.WordArray.random(16).toString(_e.enc.Hex), o =
|
|
10391
|
-
return
|
|
10390
|
+
const a = _e.lib.WordArray.random(16).toString(_e.enc.Hex), o = `${this.getQrDomain(s)}/qrCode/scan?type=login&roomId=${a}&dapp=${e}&url=${t}&network=${r}&icon=${n}&method=${i}`;
|
|
10391
|
+
return $t.joinRoom(a), { qrCode: o, roomId: a };
|
|
10392
10392
|
}
|
|
10393
10393
|
generateProvideQrCode(e, t, r, n, i) {
|
|
10394
|
-
const s = _e.lib.WordArray.random(16).toString(_e.enc.Hex), a =
|
|
10395
|
-
return
|
|
10394
|
+
const s = _e.lib.WordArray.random(16).toString(_e.enc.Hex), a = `${this.getQrDomain(i)}/qrCode/scan?type=provide&roomId=${s}&dapp=${e}&url=${t}&network=${r}&icon=${n}`;
|
|
10395
|
+
return $t.joinRoom(s), { qrCode: a, roomId: s };
|
|
10396
10396
|
}
|
|
10397
10397
|
generatePaymentQrCode(e, t, r, n, i, s, a) {
|
|
10398
|
-
const o = _e.lib.WordArray.random(16).toString(_e.enc.Hex), c =
|
|
10399
|
-
return
|
|
10398
|
+
const o = _e.lib.WordArray.random(16).toString(_e.enc.Hex), c = `${this.getQrDomain(a)}/qrCode/scan?type=payment&roomId=${o}&dapp=${e}&network=${t}&address=${r}&amount=${n}&description=${i}&info=${s}`;
|
|
10399
|
+
return $t.joinRoom(o), { qrCode: c, roomId: o };
|
|
10400
10400
|
}
|
|
10401
10401
|
generateAirdropQrCode(e, t, r, n) {
|
|
10402
|
-
const i = _e.lib.WordArray.random(16).toString(_e.enc.Hex), s =
|
|
10403
|
-
return
|
|
10402
|
+
const i = _e.lib.WordArray.random(16).toString(_e.enc.Hex), s = `${this.getQrDomain(n)}/qrCode/scan?type=airdrop&roomId=${i}&dapp=${e}&network=${t}&icon=${r}`;
|
|
10403
|
+
return $t.joinRoom(i), { qrCode: s, roomId: i };
|
|
10404
10404
|
}
|
|
10405
10405
|
generateSendTransactionQrCode(e, t, r, n, i) {
|
|
10406
|
-
const s = _e.lib.WordArray.random(16).toString(_e.enc.Hex), a =
|
|
10407
|
-
return
|
|
10406
|
+
const s = _e.lib.WordArray.random(16).toString(_e.enc.Hex), a = `${this.getQrDomain(i)}/qrCode/scan?type=sendTransaction&roomId=${s}&dapp=${e}&network=${t}&url=${r}&icon=${n}`;
|
|
10407
|
+
return $t.joinRoom(s), { qrCode: a, roomId: s };
|
|
10408
10408
|
}
|
|
10409
10409
|
getQrDomain(e) {
|
|
10410
10410
|
return e || "https://zigap.io";
|
|
10411
10411
|
}
|
|
10412
10412
|
}(), Fi = "data:image/svg+xml,%3csvg%20width='167'%20height='166'%20viewBox='0%200%20167%20166'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M116.052%20115.296H166.355H166.36V0H51.0675V50.3042H0.759995V165.6H116.052V115.296ZM90.3366%2065.3428L40.21%20115.296H40.4307L40.2551%20115.471H101.014V150.561H15.7981V65.3428H90.3366ZM76.7327%20100.257H151.317V15.0386H66.1006V50.1536L109.424%2050.3042H126.684L126.624%2050.364L126.669%2050.3642L113.846%2063.1431L76.7327%20100.257Z'%20fill='url(%23paint0_linear_2322_66)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2322_66'%20x1='167.74'%20y1='-2.07'%20x2='-3.37985'%20y2='172.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%231349F8'/%3e%3cstop%20offset='1'%20stop-color='%235C13F8'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", I3 = ({ availableNetworks: e, dapp: t, url: r, sigMessage: n, onReceive: i, validSeconds: s, isShowLogo: a = !1, logoSize: o = 30, expire: c, icon: d, size: h, processingMark: l = { type: "DEFAULT" }, qrDomain: _, ...v }) => {
|
|
10413
|
-
const [A, I] =
|
|
10413
|
+
const [A, I] = Ue(!0), [x, M] = Ue(!1), k = Di.generateNonce(16), { qrCode: O, roomId: E } = In.generateLoginQrCode(t, r, e, d, "login", _);
|
|
10414
10414
|
return Ze(() => {
|
|
10415
10415
|
const R = setTimeout(() => {
|
|
10416
|
-
|
|
10416
|
+
$t.leaveRoom(E), I(!1);
|
|
10417
10417
|
}, 1e3 * s);
|
|
10418
10418
|
return () => clearTimeout(R);
|
|
10419
10419
|
}, [E, s]), Ze(() => {
|
|
@@ -10458,26 +10458,26 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10458
10458
|
}
|
|
10459
10459
|
startPayment(e) {
|
|
10460
10460
|
return new Promise((t, r) => {
|
|
10461
|
-
|
|
10462
|
-
n.message === "Join the room" ? e === n.roomId ? t({ isSuccess: !0 }) :
|
|
10461
|
+
$t.onMessageReceived("startPayment", (n) => {
|
|
10462
|
+
n.message === "Join the room" ? e === n.roomId ? t({ isSuccess: !0 }) : $t.leaveRoom(e) : r(new Error("Failed to join room"));
|
|
10463
10463
|
});
|
|
10464
10464
|
});
|
|
10465
10465
|
}
|
|
10466
10466
|
healthCheck() {
|
|
10467
10467
|
return new Promise((e, t) => {
|
|
10468
|
-
|
|
10468
|
+
$t.onMessageReceived("healthCheck", (r) => {
|
|
10469
10469
|
r.message === "ping" ? e(!0) : t(new Error("Health check failed"));
|
|
10470
10470
|
});
|
|
10471
10471
|
});
|
|
10472
10472
|
}
|
|
10473
10473
|
checkResponse(e) {
|
|
10474
10474
|
return new Promise((t, r) => {
|
|
10475
|
-
|
|
10475
|
+
$t.checkResponse(e).connected ? t() : r(new Error("Response failed"));
|
|
10476
10476
|
});
|
|
10477
10477
|
}
|
|
10478
10478
|
getTransactionResult() {
|
|
10479
10479
|
return new Promise((e, t) => {
|
|
10480
|
-
|
|
10480
|
+
$t.onMessageReceived("transactionInfo", (r) => {
|
|
10481
10481
|
this.isTransactionResultType(r) ? e(r) : t(new Error("Invalid account crypto"));
|
|
10482
10482
|
});
|
|
10483
10483
|
});
|
|
@@ -10489,14 +10489,14 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10489
10489
|
} catch (t) {
|
|
10490
10490
|
return Promise.reject(t);
|
|
10491
10491
|
} finally {
|
|
10492
|
-
|
|
10492
|
+
$t.leaveRoom(e);
|
|
10493
10493
|
}
|
|
10494
10494
|
}
|
|
10495
10495
|
}(), T3 = ({ network: e, dapp: t, address: r, amount: n, description: i, info: s, onReceive: a, validSeconds: o, isShowLogo: c = !1, logoSize: d = 30, size: h, processingMark: l = { type: "DEFAULT" }, ..._ }) => {
|
|
10496
|
-
const [v, A] =
|
|
10496
|
+
const [v, A] = Ue(!0), [I, x] = Ue(!1), { qrCode: M, roomId: k } = In.generatePaymentQrCode(t, e, r, n, i, s);
|
|
10497
10497
|
return Ze(() => {
|
|
10498
10498
|
const O = setTimeout(() => {
|
|
10499
|
-
|
|
10499
|
+
$t.leaveRoom(k), A(!1);
|
|
10500
10500
|
}, 1e3 * o);
|
|
10501
10501
|
return () => clearTimeout(O);
|
|
10502
10502
|
}, [k, o]), Ze(() => {
|
|
@@ -10538,7 +10538,7 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10538
10538
|
}
|
|
10539
10539
|
getAccount() {
|
|
10540
10540
|
return new Promise((e, t) => {
|
|
10541
|
-
|
|
10541
|
+
$t.onMessageReceived("addressProvide", (r) => {
|
|
10542
10542
|
this.isAccountType(r) ? e(r) : t(new Error("Invalid address"));
|
|
10543
10543
|
});
|
|
10544
10544
|
});
|
|
@@ -10549,14 +10549,14 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10549
10549
|
} catch (t) {
|
|
10550
10550
|
return Promise.reject(t);
|
|
10551
10551
|
} finally {
|
|
10552
|
-
|
|
10552
|
+
$t.leaveRoom(e);
|
|
10553
10553
|
}
|
|
10554
10554
|
}
|
|
10555
10555
|
}(), R3 = ({ availableNetworks: e, dapp: t, url: r, validSeconds: n, onReceive: i, isShowLogo: s = !1, logoSize: a = 30, icon: o, ...c }) => {
|
|
10556
|
-
const [d, h] =
|
|
10556
|
+
const [d, h] = Ue(!0), { qrCode: l, roomId: _ } = In.generateProvideQrCode(t, r, e, o);
|
|
10557
10557
|
return Ze(() => {
|
|
10558
10558
|
const v = setTimeout(() => {
|
|
10559
|
-
|
|
10559
|
+
$t.leaveRoom(_), h(!1);
|
|
10560
10560
|
}, 60 * n * 1e3);
|
|
10561
10561
|
return () => clearTimeout(v);
|
|
10562
10562
|
}, [_, n]), Ze(() => {
|
|
@@ -10573,20 +10573,20 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10573
10573
|
}, Rd = new class {
|
|
10574
10574
|
startAirdrop(e) {
|
|
10575
10575
|
return new Promise((t, r) => {
|
|
10576
|
-
|
|
10577
|
-
console.log("startAirdrop message:", n), n.message === "Join the room" ? e === n.roomId && t({ isSuccess: !0 }) : (
|
|
10576
|
+
$t.onMessageReceived("userJoined", (n) => {
|
|
10577
|
+
console.log("startAirdrop message:", n), n.message === "Join the room" ? e === n.roomId && t({ isSuccess: !0 }) : ($t.leaveRoom(e), r(new Error("Failed to join room or mismatched roomId")));
|
|
10578
10578
|
});
|
|
10579
10579
|
});
|
|
10580
10580
|
}
|
|
10581
10581
|
async getAirdrop(e) {
|
|
10582
10582
|
return new Promise((t, r) => {
|
|
10583
|
-
|
|
10584
|
-
console.log("airdropStart message:", n), n.message === "Airdrop started" && e === n.roomId ? t({ isSuccess: !0 }) : r(new Error("Invalid airdrop result")),
|
|
10583
|
+
$t.onMessageReceived("airdropStart", (n) => {
|
|
10584
|
+
console.log("airdropStart message:", n), n.message === "Airdrop started" && e === n.roomId ? t({ isSuccess: !0 }) : r(new Error("Invalid airdrop result")), $t.leaveRoom(e), $t.offMessageReceived("airdropStart");
|
|
10585
10585
|
});
|
|
10586
10586
|
});
|
|
10587
10587
|
}
|
|
10588
10588
|
}(), N3 = ({ availableNetworks: e, dapp: t, validSeconds: r, onReceive: n, isShowLogo: i = !1, logoSize: s = 30, icon: a, size: o, processingMark: c = { type: "DEFAULT" }, ...d }) => {
|
|
10589
|
-
const [h, l] =
|
|
10589
|
+
const [h, l] = Ue(!0), [_, v] = Ue(!1), [A, I] = Ue(""), [x, M] = Ue(""), k = () => {
|
|
10590
10590
|
const { qrCode: O, roomId: E } = In.generateAirdropQrCode(t, e, a);
|
|
10591
10591
|
I(E), M(O), console.log("New QR Code generated:", E);
|
|
10592
10592
|
};
|
|
@@ -10594,15 +10594,15 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10594
10594
|
k();
|
|
10595
10595
|
}, []), Ze(() => {
|
|
10596
10596
|
const O = setTimeout(() => {
|
|
10597
|
-
|
|
10597
|
+
$t.leaveRoom(A), l(!1);
|
|
10598
10598
|
}, 60 * r * 1e3);
|
|
10599
10599
|
return () => clearTimeout(O);
|
|
10600
10600
|
}, [A, r]), Ze(() => {
|
|
10601
10601
|
(async () => {
|
|
10602
10602
|
try {
|
|
10603
|
-
console.log("roomId:", A), (await Rd.startAirdrop(A)).isSuccess && (v(!0), n && n({ status: "REQUEST" }), (await Rd.getAirdrop(A)).isSuccess ? (n && n({ status: "SUCCESS", result: { isSuccess: !0 } }), v(!1), k(),
|
|
10603
|
+
console.log("roomId:", A), (await Rd.startAirdrop(A)).isSuccess && (v(!0), n && n({ status: "REQUEST" }), (await Rd.getAirdrop(A)).isSuccess ? (n && n({ status: "SUCCESS", result: { isSuccess: !0 } }), v(!1), k(), $t.leaveRoom(A)) : (n && n({ status: "ERROR", result: { isSuccess: !1 } }), v(!1), console.log("Airdrop failed, keeping processing state"), $t.leaveRoom(A)));
|
|
10604
10604
|
} catch (O) {
|
|
10605
|
-
console.error("Error during airdrop:", O), n && n({ status: "ERROR", result: { isSuccess: !1 } }), v(!1),
|
|
10605
|
+
console.error("Error during airdrop:", O), n && n({ status: "ERROR", result: { isSuccess: !1 } }), v(!1), $t.leaveRoom(A);
|
|
10606
10606
|
}
|
|
10607
10607
|
})();
|
|
10608
10608
|
}, [A, n]), h ? Dt.jsx(Dt.Fragment, { children: _ && c.type !== "NONE" ? Dt.jsx(Nd, { $size: o, children: ((O) => {
|
|
@@ -10628,26 +10628,26 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10628
10628
|
`, Cd = new class {
|
|
10629
10629
|
getTransactionCrypto() {
|
|
10630
10630
|
return new Promise((e, t) => {
|
|
10631
|
-
|
|
10631
|
+
$t.onMessageReceived("sendTransactionInfo", (r) => {
|
|
10632
10632
|
r.txHash || r.error ? e(r) : t(new Error("Invalid transaction crypto"));
|
|
10633
10633
|
});
|
|
10634
10634
|
});
|
|
10635
10635
|
}
|
|
10636
10636
|
receiveRequest(e) {
|
|
10637
10637
|
return new Promise((t, r) => {
|
|
10638
|
-
|
|
10639
|
-
n.message === "Request SendTransaction" ? e === n.roomId ? t({ roomId: n.roomId, isSuccess: !0 }) :
|
|
10638
|
+
$t.onMessageReceived("requestSendTransaction", (n) => {
|
|
10639
|
+
n.message === "Request SendTransaction" ? e === n.roomId ? t({ roomId: n.roomId, isSuccess: !0 }) : $t.leaveRoom(e) : r(new Error("Request message is different"));
|
|
10640
10640
|
});
|
|
10641
10641
|
});
|
|
10642
10642
|
}
|
|
10643
10643
|
sendMessage(e, t) {
|
|
10644
10644
|
return new Promise((r, n) => {
|
|
10645
|
-
|
|
10645
|
+
$t.confirmSendTransaction(e, t).connected ? r() : n(new Error("Send failed"));
|
|
10646
10646
|
});
|
|
10647
10647
|
}
|
|
10648
10648
|
checkVerified(e, t) {
|
|
10649
10649
|
return new Promise((r, n) => {
|
|
10650
|
-
|
|
10650
|
+
$t.checkVerified(e, t) ? $t.onMessageReceived("checkVerified", (i) => {
|
|
10651
10651
|
r(i);
|
|
10652
10652
|
}) : n(new Error("checkVerified failed"));
|
|
10653
10653
|
});
|
|
@@ -10660,14 +10660,14 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10660
10660
|
} catch (r) {
|
|
10661
10661
|
return Promise.reject(r);
|
|
10662
10662
|
} finally {
|
|
10663
|
-
|
|
10663
|
+
$t.leaveRoom(e);
|
|
10664
10664
|
}
|
|
10665
10665
|
}
|
|
10666
10666
|
}(), O3 = ({ availableNetworks: e, dapp: t, url: r, onReceive: n, validSeconds: i, isShowLogo: s = !1, logoSize: a = 30, size: o, icon: c, transaction: d, processingMark: h = { type: "DEFAULT" }, qrDomain: l, ..._ }) => {
|
|
10667
|
-
const [v, A] =
|
|
10667
|
+
const [v, A] = Ue(!0), [I, x] = Ue(!1), { qrCode: M, roomId: k } = In.generateSendTransactionQrCode(t, e, r, c, l);
|
|
10668
10668
|
return Ze(() => {
|
|
10669
10669
|
const O = setTimeout(() => {
|
|
10670
|
-
|
|
10670
|
+
$t.leaveRoom(k), A(!1);
|
|
10671
10671
|
}, 1e3 * i);
|
|
10672
10672
|
return () => clearTimeout(O);
|
|
10673
10673
|
}, [k, i]), Ze(() => {
|
|
@@ -10703,10 +10703,10 @@ Nonce: ${k}`, f = (c == null ? void 0 : c.type) ?? "NONE", p = (c == null ? void
|
|
|
10703
10703
|
font-size: 12px;
|
|
10704
10704
|
color: #7a7a7a;
|
|
10705
10705
|
`, C3 = ({ availableNetworks: e, dapp: t, url: r, sigMessage: n, onReceive: i, validSeconds: s, isShowLogo: a = !1, logoSize: o = 30, expire: c, icon: d, size: h, processingMark: l = { type: "DEFAULT" }, qrDomain: _, ...v }) => {
|
|
10706
|
-
const [A, I] =
|
|
10706
|
+
const [A, I] = Ue(!0), [x, M] = Ue(!1), k = Di.generateNonce(16), { qrCode: O, roomId: E } = In.generateLoginQrCode(t, r, e, d, "signature", _);
|
|
10707
10707
|
return Ze(() => {
|
|
10708
10708
|
const R = setTimeout(() => {
|
|
10709
|
-
|
|
10709
|
+
$t.leaveRoom(E), I(!1);
|
|
10710
10710
|
}, 1e3 * s);
|
|
10711
10711
|
return () => clearTimeout(R);
|
|
10712
10712
|
}, [E, s]), Ze(() => {
|