zigap-utils 0.0.36 → 0.0.37
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.cjs.js +14 -14
- package/dist/index.d.ts +0 -2
- package/dist/index.es.js +682 -709
- package/dist/util/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/util/qrService/index.d.ts +0 -1
- package/dist/util/qrService/qrService.d.ts +0 -7
package/dist/index.es.js
CHANGED
|
@@ -3,12 +3,12 @@ var da = Object.defineProperty;
|
|
|
3
3
|
var ha = (f, e, t) => e in f ? da(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t;
|
|
4
4
|
var wt = (f, e, t) => (ha(f, typeof e != "symbol" ? e + "" : e, t), t);
|
|
5
5
|
import * as ua from "react";
|
|
6
|
-
import
|
|
6
|
+
import nr, { useRef as ei, useState as Nf, useEffect as zt } from "react";
|
|
7
7
|
var Pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
|
-
function
|
|
8
|
+
function sn(f) {
|
|
9
9
|
return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function on(f) {
|
|
12
12
|
if (f.__esModule)
|
|
13
13
|
return f;
|
|
14
14
|
var e = f.default;
|
|
@@ -30,7 +30,7 @@ function cn(f) {
|
|
|
30
30
|
}), t;
|
|
31
31
|
}
|
|
32
32
|
var Cf = { exports: {} }, Xt = {};
|
|
33
|
-
const
|
|
33
|
+
const cn = /* @__PURE__ */ on(ua);
|
|
34
34
|
/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-jsx-runtime.production.min.js
|
|
@@ -40,12 +40,12 @@ const dn = /* @__PURE__ */ cn(ua);
|
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
43
|
+
var ti;
|
|
44
44
|
function la() {
|
|
45
|
-
if (
|
|
45
|
+
if (ti)
|
|
46
46
|
return Xt;
|
|
47
|
-
|
|
48
|
-
var f =
|
|
47
|
+
ti = 1;
|
|
48
|
+
var f = cn, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
49
49
|
function y(x, u, o) {
|
|
50
50
|
var c, v = {}, b = null, B = null;
|
|
51
51
|
o !== void 0 && (b = "" + o), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (B = u.ref);
|
|
@@ -68,10 +68,10 @@ var Zt = {};
|
|
|
68
68
|
* This source code is licensed under the MIT license found in the
|
|
69
69
|
* LICENSE file in the root directory of this source tree.
|
|
70
70
|
*/
|
|
71
|
-
var
|
|
71
|
+
var ri;
|
|
72
72
|
function xa() {
|
|
73
|
-
return
|
|
74
|
-
var f =
|
|
73
|
+
return ri || (ri = 1, process.env.NODE_ENV !== "production" && function() {
|
|
74
|
+
var f = cn, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), x = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), B = Symbol.for("react.offscreen"), w = Symbol.iterator, R = "@@iterator";
|
|
75
75
|
function k(p) {
|
|
76
76
|
if (p === null || typeof p != "object")
|
|
77
77
|
return null;
|
|
@@ -96,10 +96,10 @@ function xa() {
|
|
|
96
96
|
fe.unshift("Warning: " + I), Function.prototype.apply.call(console[p], console, fe);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
var T = !1, H = !1, $ = !1,
|
|
99
|
+
var T = !1, H = !1, $ = !1, K = !1, X = !1, Q;
|
|
100
100
|
Q = Symbol.for("react.module.reference");
|
|
101
101
|
function U(p) {
|
|
102
|
-
return !!(typeof p == "string" || typeof p == "function" || p === r || p === i || X || p === a || p === o || p === c ||
|
|
102
|
+
return !!(typeof p == "string" || typeof p == "function" || p === r || p === i || X || p === a || p === o || p === c || K || p === B || T || H || $ || typeof p == "object" && p !== null && (p.$$typeof === b || p.$$typeof === v || p.$$typeof === y || p.$$typeof === x || p.$$typeof === u || // This needs to include all possible module reference object
|
|
103
103
|
// types supported by any Flight configuration anywhere since
|
|
104
104
|
// we don't know which Flight build this will end up being used
|
|
105
105
|
// with.
|
|
@@ -161,9 +161,9 @@ function xa() {
|
|
|
161
161
|
return null;
|
|
162
162
|
}
|
|
163
163
|
var g = Object.assign, C = 0, F, N, q, D, h, E, j;
|
|
164
|
-
function
|
|
164
|
+
function Y() {
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
Y.__reactDisabledLog = !0;
|
|
167
167
|
function W() {
|
|
168
168
|
{
|
|
169
169
|
if (C === 0) {
|
|
@@ -171,7 +171,7 @@ function xa() {
|
|
|
171
171
|
var p = {
|
|
172
172
|
configurable: !0,
|
|
173
173
|
enumerable: !0,
|
|
174
|
-
value:
|
|
174
|
+
value: Y,
|
|
175
175
|
writable: !0
|
|
176
176
|
};
|
|
177
177
|
Object.defineProperties(console, {
|
|
@@ -238,8 +238,8 @@ function xa() {
|
|
|
238
238
|
}
|
|
239
239
|
var Me = !1, Fe;
|
|
240
240
|
{
|
|
241
|
-
var
|
|
242
|
-
Fe = new
|
|
241
|
+
var Z0 = typeof WeakMap == "function" ? WeakMap : Map;
|
|
242
|
+
Fe = new Z0();
|
|
243
243
|
}
|
|
244
244
|
function We(p, I) {
|
|
245
245
|
if (!p || Me)
|
|
@@ -348,7 +348,7 @@ function xa() {
|
|
|
348
348
|
}
|
|
349
349
|
return "";
|
|
350
350
|
}
|
|
351
|
-
var
|
|
351
|
+
var Ye = Object.prototype.hasOwnProperty, $0 = {}, Qe = z.ReactDebugCurrentFrame;
|
|
352
352
|
function ze(p) {
|
|
353
353
|
if (p) {
|
|
354
354
|
var I = p._owner, L = Ge(p.type, p._source, I ? I.type : null);
|
|
@@ -358,7 +358,7 @@ function xa() {
|
|
|
358
358
|
}
|
|
359
359
|
function O0(p, I, L, V, ne) {
|
|
360
360
|
{
|
|
361
|
-
var fe = Function.call.bind(
|
|
361
|
+
var fe = Function.call.bind(Ye);
|
|
362
362
|
for (var he in p)
|
|
363
363
|
if (fe(p, he)) {
|
|
364
364
|
var te = void 0;
|
|
@@ -404,10 +404,10 @@ function xa() {
|
|
|
404
404
|
ref: !0,
|
|
405
405
|
__self: !0,
|
|
406
406
|
__source: !0
|
|
407
|
-
},
|
|
407
|
+
}, G0, l0, He;
|
|
408
408
|
He = {};
|
|
409
|
-
function
|
|
410
|
-
if (
|
|
409
|
+
function z0(p) {
|
|
410
|
+
if (Ye.call(p, "ref")) {
|
|
411
411
|
var I = Object.getOwnPropertyDescriptor(p, "ref").get;
|
|
412
412
|
if (I && I.isReactWarning)
|
|
413
413
|
return !1;
|
|
@@ -415,7 +415,7 @@ function xa() {
|
|
|
415
415
|
return p.ref !== void 0;
|
|
416
416
|
}
|
|
417
417
|
function a0(p) {
|
|
418
|
-
if (
|
|
418
|
+
if (Ye.call(p, "key")) {
|
|
419
419
|
var I = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
420
420
|
if (I && I.isReactWarning)
|
|
421
421
|
return !1;
|
|
@@ -428,10 +428,10 @@ function xa() {
|
|
|
428
428
|
He[L] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', d(qe.current.type), p.ref), He[L] = !0);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function N0(p, I) {
|
|
432
432
|
{
|
|
433
433
|
var L = function() {
|
|
434
|
-
|
|
434
|
+
G0 || (G0 = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", I));
|
|
435
435
|
};
|
|
436
436
|
L.isReactWarning = !0, Object.defineProperty(p, "key", {
|
|
437
437
|
get: L,
|
|
@@ -482,9 +482,9 @@ function xa() {
|
|
|
482
482
|
function W0(p, I, L, V, ne) {
|
|
483
483
|
{
|
|
484
484
|
var fe, he = {}, te = null, xe = null;
|
|
485
|
-
L !== void 0 && (S0(L), te = "" + L), a0(I) && (S0(I.key), te = "" + I.key),
|
|
485
|
+
L !== void 0 && (S0(L), te = "" + L), a0(I) && (S0(I.key), te = "" + I.key), z0(I) && (xe = I.ref, r0(I, ne));
|
|
486
486
|
for (fe in I)
|
|
487
|
-
|
|
487
|
+
Ye.call(I, fe) && !u0.hasOwnProperty(fe) && (he[fe] = I[fe]);
|
|
488
488
|
if (p && p.defaultProps) {
|
|
489
489
|
var ue = p.defaultProps;
|
|
490
490
|
for (fe in ue)
|
|
@@ -492,13 +492,13 @@ function xa() {
|
|
|
492
492
|
}
|
|
493
493
|
if (te || xe) {
|
|
494
494
|
var ve = typeof p == "function" ? p.displayName || p.name || "Unknown" : p;
|
|
495
|
-
te &&
|
|
495
|
+
te && N0(he, ve), xe && i0(he, ve);
|
|
496
496
|
}
|
|
497
497
|
return s0(p, te, xe, ne, V, qe.current, he);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
var e0 = z.ReactCurrentOwner, n0 = z.ReactDebugCurrentFrame;
|
|
501
|
-
function
|
|
501
|
+
function q0(p) {
|
|
502
502
|
if (p) {
|
|
503
503
|
var I = p._owner, L = Ge(p.type, p._source, I ? I.type : null);
|
|
504
504
|
n0.setExtraStackFrame(L);
|
|
@@ -526,7 +526,7 @@ Check the render method of \`` + p + "`.";
|
|
|
526
526
|
return "";
|
|
527
527
|
}
|
|
528
528
|
var Ve = {};
|
|
529
|
-
function
|
|
529
|
+
function tt(p) {
|
|
530
530
|
{
|
|
531
531
|
var I = D0();
|
|
532
532
|
if (!I) {
|
|
@@ -543,12 +543,12 @@ Check the top-level render call using <` + L + ">.");
|
|
|
543
543
|
if (!p._store || p._store.validated || p.key != null)
|
|
544
544
|
return;
|
|
545
545
|
p._store.validated = !0;
|
|
546
|
-
var L =
|
|
546
|
+
var L = tt(I);
|
|
547
547
|
if (Ve[L])
|
|
548
548
|
return;
|
|
549
549
|
Ve[L] = !0;
|
|
550
550
|
var V = "";
|
|
551
|
-
p && p._owner && p._owner !== e0.current && (V = " It was passed a child from " + d(p._owner.type) + "."),
|
|
551
|
+
p && p._owner && p._owner !== e0.current && (V = " It was passed a child from " + d(p._owner.type) + "."), q0(p), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', L, V), q0(null);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
function d0(p, I) {
|
|
@@ -600,11 +600,11 @@ Check the top-level render call using <` + L + ">.");
|
|
|
600
600
|
for (var I = Object.keys(p.props), L = 0; L < I.length; L++) {
|
|
601
601
|
var V = I[L];
|
|
602
602
|
if (V !== "children" && V !== "key") {
|
|
603
|
-
|
|
603
|
+
q0(p), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", V), q0(null);
|
|
604
604
|
break;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
|
-
p.ref !== null && (
|
|
607
|
+
p.ref !== null && (q0(p), S("Invalid attribute `ref` supplied to `React.Fragment`."), q0(null));
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
var Re = {};
|
|
@@ -635,7 +635,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
635
635
|
else
|
|
636
636
|
d0(ge, p);
|
|
637
637
|
}
|
|
638
|
-
if (
|
|
638
|
+
if (Ye.call(I, "key")) {
|
|
639
639
|
var _e = d(p), pe = Object.keys(I).filter(function(oe) {
|
|
640
640
|
return oe !== "key";
|
|
641
641
|
}), de = pe.length > 0 ? "{key: someKey, " + pe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
@@ -663,20 +663,20 @@ React keys must be passed directly to JSX without using spread:
|
|
|
663
663
|
}()), Zt;
|
|
664
664
|
}
|
|
665
665
|
process.env.NODE_ENV === "production" ? Cf.exports = la() : Cf.exports = xa();
|
|
666
|
-
var vr = Cf.exports, va = Object.defineProperty, br = Object.getOwnPropertySymbols,
|
|
666
|
+
var vr = Cf.exports, va = Object.defineProperty, br = Object.getOwnPropertySymbols, dn = Object.prototype.hasOwnProperty, hn = Object.prototype.propertyIsEnumerable, fi = (f, e, t) => e in f ? va(f, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[e] = t, ii = (f, e) => {
|
|
667
667
|
for (var t in e || (e = {}))
|
|
668
|
-
|
|
668
|
+
dn.call(e, t) && fi(f, t, e[t]);
|
|
669
669
|
if (br)
|
|
670
670
|
for (var t of br(e))
|
|
671
|
-
|
|
671
|
+
hn.call(e, t) && fi(f, t, e[t]);
|
|
672
672
|
return f;
|
|
673
673
|
}, ba = (f, e) => {
|
|
674
674
|
var t = {};
|
|
675
675
|
for (var r in f)
|
|
676
|
-
|
|
676
|
+
dn.call(f, r) && e.indexOf(r) < 0 && (t[r] = f[r]);
|
|
677
677
|
if (f != null && br)
|
|
678
678
|
for (var r of br(f))
|
|
679
|
-
e.indexOf(r) < 0 &&
|
|
679
|
+
e.indexOf(r) < 0 && hn.call(f, r) && (t[r] = f[r]);
|
|
680
680
|
return t;
|
|
681
681
|
};
|
|
682
682
|
/**
|
|
@@ -1115,7 +1115,7 @@ var pa = {
|
|
|
1115
1115
|
M: tr.QrCode.Ecc.MEDIUM,
|
|
1116
1116
|
Q: tr.QrCode.Ecc.QUARTILE,
|
|
1117
1117
|
H: tr.QrCode.Ecc.HIGH
|
|
1118
|
-
}, ya = 128, ga = "L", ma = "#FFFFFF", _a = "#000000", Aa = !1,
|
|
1118
|
+
}, ya = 128, ga = "L", ma = "#FFFFFF", _a = "#000000", Aa = !1, un = 4, Ea = 0.1;
|
|
1119
1119
|
function wa(f, e = 0) {
|
|
1120
1120
|
const t = [];
|
|
1121
1121
|
return f.forEach(function(r, a) {
|
|
@@ -1141,7 +1141,7 @@ function Ba(f, e) {
|
|
|
1141
1141
|
function Ca(f, e, t, r) {
|
|
1142
1142
|
if (r == null)
|
|
1143
1143
|
return null;
|
|
1144
|
-
const a = t ?
|
|
1144
|
+
const a = t ? un : 0, i = f.length + a * 2, y = Math.floor(e * Ea), x = i / e, u = (r.width || y) * x, o = (r.height || y) * x, c = r.x == null ? f.length / 2 - u / 2 : r.x * x, v = r.y == null ? f.length / 2 - o / 2 : r.y * x;
|
|
1145
1145
|
let b = null;
|
|
1146
1146
|
if (r.excavate) {
|
|
1147
1147
|
let B = Math.floor(c), w = Math.floor(v), R = Math.ceil(u + c - B), k = Math.ceil(o + v - w);
|
|
@@ -1157,7 +1157,7 @@ var Ma = function() {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
return !0;
|
|
1159
1159
|
}();
|
|
1160
|
-
function
|
|
1160
|
+
function ln(f) {
|
|
1161
1161
|
const e = f, {
|
|
1162
1162
|
value: t,
|
|
1163
1163
|
size: r = ya,
|
|
@@ -1176,15 +1176,15 @@ function xn(f) {
|
|
|
1176
1176
|
"includeMargin",
|
|
1177
1177
|
"style",
|
|
1178
1178
|
"imageSettings"
|
|
1179
|
-
]), v = o == null ? void 0 : o.src, b =
|
|
1179
|
+
]), v = o == null ? void 0 : o.src, b = ei(null), B = ei(null), [w, R] = Nf(!1);
|
|
1180
1180
|
zt(() => {
|
|
1181
1181
|
if (b.current != null) {
|
|
1182
1182
|
const S = b.current, P = S.getContext("2d");
|
|
1183
1183
|
if (!P)
|
|
1184
1184
|
return;
|
|
1185
1185
|
let T = tr.QrCode.encodeText(t, pa[a]).getModules();
|
|
1186
|
-
const H = x ?
|
|
1187
|
-
Q &&
|
|
1186
|
+
const H = x ? un : 0, $ = T.length + H * 2, K = Ca(T, r, x, o), X = B.current, Q = K != null && X !== null && X.complete && X.naturalHeight !== 0 && X.naturalWidth !== 0;
|
|
1187
|
+
Q && K.excavation != null && (T = Ba(T, K.excavation));
|
|
1188
1188
|
const U = window.devicePixelRatio || 1;
|
|
1189
1189
|
S.height = S.width = r * U;
|
|
1190
1190
|
const A = r / $ * U;
|
|
@@ -1192,14 +1192,14 @@ function xn(f) {
|
|
|
1192
1192
|
n.forEach(function(g, C) {
|
|
1193
1193
|
g && P.fillRect(C + H, d + H, 1, 1);
|
|
1194
1194
|
});
|
|
1195
|
-
}), Q && P.drawImage(X,
|
|
1195
|
+
}), Q && P.drawImage(X, K.x + H, K.y + H, K.w, K.h);
|
|
1196
1196
|
}
|
|
1197
1197
|
}), zt(() => {
|
|
1198
1198
|
R(!1);
|
|
1199
1199
|
}, [v]);
|
|
1200
|
-
const k =
|
|
1200
|
+
const k = ii({ height: r, width: r }, u);
|
|
1201
1201
|
let z = null;
|
|
1202
|
-
return v != null && (z = /* @__PURE__ */
|
|
1202
|
+
return v != null && (z = /* @__PURE__ */ nr.createElement("img", {
|
|
1203
1203
|
src: v,
|
|
1204
1204
|
key: v,
|
|
1205
1205
|
style: { display: "none" },
|
|
@@ -1207,31 +1207,31 @@ function xn(f) {
|
|
|
1207
1207
|
R(!0);
|
|
1208
1208
|
},
|
|
1209
1209
|
ref: B
|
|
1210
|
-
})), /* @__PURE__ */
|
|
1210
|
+
})), /* @__PURE__ */ nr.createElement(nr.Fragment, null, /* @__PURE__ */ nr.createElement("canvas", ii({
|
|
1211
1211
|
style: k,
|
|
1212
1212
|
height: r,
|
|
1213
1213
|
width: r,
|
|
1214
1214
|
ref: b
|
|
1215
1215
|
}, c)), z);
|
|
1216
1216
|
}
|
|
1217
|
-
var
|
|
1218
|
-
function
|
|
1217
|
+
var xn = { exports: {} };
|
|
1218
|
+
function vn(f) {
|
|
1219
1219
|
throw new Error('Could not dynamically require "' + f + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1220
1220
|
}
|
|
1221
1221
|
var Ir = { exports: {} };
|
|
1222
1222
|
const Fa = {}, Sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1223
1223
|
__proto__: null,
|
|
1224
1224
|
default: Fa
|
|
1225
|
-
}, Symbol.toStringTag, { value: "Module" })), mr = /* @__PURE__ */
|
|
1226
|
-
var
|
|
1225
|
+
}, Symbol.toStringTag, { value: "Module" })), mr = /* @__PURE__ */ on(Sa);
|
|
1226
|
+
var ni;
|
|
1227
1227
|
function $e() {
|
|
1228
|
-
return
|
|
1228
|
+
return ni || (ni = 1, function(f, e) {
|
|
1229
1229
|
(function(t, r) {
|
|
1230
1230
|
f.exports = r();
|
|
1231
1231
|
})(Pe, function() {
|
|
1232
1232
|
var t = t || function(r, a) {
|
|
1233
1233
|
var i;
|
|
1234
|
-
if (typeof window < "u" && window.crypto && (i = window.crypto), typeof self < "u" && self.crypto && (i = self.crypto), typeof globalThis < "u" && globalThis.crypto && (i = globalThis.crypto), !i && typeof window < "u" && window.msCrypto && (i = window.msCrypto), !i && typeof Pe < "u" && Pe.crypto && (i = Pe.crypto), !i && typeof
|
|
1234
|
+
if (typeof window < "u" && window.crypto && (i = window.crypto), typeof self < "u" && self.crypto && (i = self.crypto), typeof globalThis < "u" && globalThis.crypto && (i = globalThis.crypto), !i && typeof window < "u" && window.msCrypto && (i = window.msCrypto), !i && typeof Pe < "u" && Pe.crypto && (i = Pe.crypto), !i && typeof vn == "function")
|
|
1235
1235
|
try {
|
|
1236
1236
|
i = mr;
|
|
1237
1237
|
} catch {
|
|
@@ -1388,9 +1388,9 @@ function $e() {
|
|
|
1388
1388
|
concat: function(S) {
|
|
1389
1389
|
var P = this.words, T = S.words, H = this.sigBytes, $ = S.sigBytes;
|
|
1390
1390
|
if (this.clamp(), H % 4)
|
|
1391
|
-
for (var
|
|
1392
|
-
var X = T[
|
|
1393
|
-
P[H +
|
|
1391
|
+
for (var K = 0; K < $; K++) {
|
|
1392
|
+
var X = T[K >>> 2] >>> 24 - K % 4 * 8 & 255;
|
|
1393
|
+
P[H + K >>> 2] |= X << 24 - (H + K) % 4 * 8;
|
|
1394
1394
|
}
|
|
1395
1395
|
else
|
|
1396
1396
|
for (var Q = 0; Q < $; Q += 4)
|
|
@@ -1455,8 +1455,8 @@ function $e() {
|
|
|
1455
1455
|
*/
|
|
1456
1456
|
stringify: function(S) {
|
|
1457
1457
|
for (var P = S.words, T = S.sigBytes, H = [], $ = 0; $ < T; $++) {
|
|
1458
|
-
var
|
|
1459
|
-
H.push((
|
|
1458
|
+
var K = P[$ >>> 2] >>> 24 - $ % 4 * 8 & 255;
|
|
1459
|
+
H.push((K >>> 4).toString(16)), H.push((K & 15).toString(16));
|
|
1460
1460
|
}
|
|
1461
1461
|
return H.join("");
|
|
1462
1462
|
},
|
|
@@ -1494,8 +1494,8 @@ function $e() {
|
|
|
1494
1494
|
*/
|
|
1495
1495
|
stringify: function(S) {
|
|
1496
1496
|
for (var P = S.words, T = S.sigBytes, H = [], $ = 0; $ < T; $++) {
|
|
1497
|
-
var
|
|
1498
|
-
H.push(String.fromCharCode(
|
|
1497
|
+
var K = P[$ >>> 2] >>> 24 - $ % 4 * 8 & 255;
|
|
1498
|
+
H.push(String.fromCharCode(K));
|
|
1499
1499
|
}
|
|
1500
1500
|
return H.join("");
|
|
1501
1501
|
},
|
|
@@ -1593,11 +1593,11 @@ function $e() {
|
|
|
1593
1593
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1594
1594
|
*/
|
|
1595
1595
|
_process: function(S) {
|
|
1596
|
-
var P, T = this._data, H = T.words, $ = T.sigBytes,
|
|
1596
|
+
var P, T = this._data, H = T.words, $ = T.sigBytes, K = this.blockSize, X = K * 4, Q = $ / X;
|
|
1597
1597
|
S ? Q = r.ceil(Q) : Q = r.max((Q | 0) - this._minBufferSize, 0);
|
|
1598
|
-
var U = Q *
|
|
1598
|
+
var U = Q * K, A = r.min(U * 4, $);
|
|
1599
1599
|
if (U) {
|
|
1600
|
-
for (var n = 0; n < U; n +=
|
|
1600
|
+
for (var n = 0; n < U; n += K)
|
|
1601
1601
|
this._doProcessBlock(H, n);
|
|
1602
1602
|
P = H.splice(0, U), T.sigBytes -= A;
|
|
1603
1603
|
}
|
|
@@ -1724,9 +1724,9 @@ function $e() {
|
|
|
1724
1724
|
});
|
|
1725
1725
|
}(Ir)), Ir.exports;
|
|
1726
1726
|
}
|
|
1727
|
-
var Tr = { exports: {} },
|
|
1727
|
+
var Tr = { exports: {} }, ai;
|
|
1728
1728
|
function _r() {
|
|
1729
|
-
return
|
|
1729
|
+
return ai || (ai = 1, function(f, e) {
|
|
1730
1730
|
(function(t, r) {
|
|
1731
1731
|
f.exports = r($e());
|
|
1732
1732
|
})(Pe, function(t) {
|
|
@@ -1954,9 +1954,9 @@ function _r() {
|
|
|
1954
1954
|
});
|
|
1955
1955
|
}(Tr)), Tr.exports;
|
|
1956
1956
|
}
|
|
1957
|
-
var Or = { exports: {} },
|
|
1957
|
+
var Or = { exports: {} }, si;
|
|
1958
1958
|
function Da() {
|
|
1959
|
-
return
|
|
1959
|
+
return si || (si = 1, function(f, e) {
|
|
1960
1960
|
(function(t, r) {
|
|
1961
1961
|
f.exports = r($e());
|
|
1962
1962
|
})(Pe, function(t) {
|
|
@@ -1976,9 +1976,9 @@ function Da() {
|
|
|
1976
1976
|
});
|
|
1977
1977
|
}(Or)), Or.exports;
|
|
1978
1978
|
}
|
|
1979
|
-
var zr = { exports: {} },
|
|
1979
|
+
var zr = { exports: {} }, oi;
|
|
1980
1980
|
function Ra() {
|
|
1981
|
-
return
|
|
1981
|
+
return oi || (oi = 1, function(f, e) {
|
|
1982
1982
|
(function(t, r) {
|
|
1983
1983
|
f.exports = r($e());
|
|
1984
1984
|
})(Pe, function(t) {
|
|
@@ -2070,9 +2070,9 @@ function Ra() {
|
|
|
2070
2070
|
});
|
|
2071
2071
|
}(zr)), zr.exports;
|
|
2072
2072
|
}
|
|
2073
|
-
var Nr = { exports: {} },
|
|
2073
|
+
var Nr = { exports: {} }, ci;
|
|
2074
2074
|
function Rt() {
|
|
2075
|
-
return
|
|
2075
|
+
return ci || (ci = 1, function(f, e) {
|
|
2076
2076
|
(function(t, r) {
|
|
2077
2077
|
f.exports = r($e());
|
|
2078
2078
|
})(Pe, function(t) {
|
|
@@ -2145,9 +2145,9 @@ function Rt() {
|
|
|
2145
2145
|
});
|
|
2146
2146
|
}(Nr)), Nr.exports;
|
|
2147
2147
|
}
|
|
2148
|
-
var qr = { exports: {} },
|
|
2148
|
+
var qr = { exports: {} }, di;
|
|
2149
2149
|
function ka() {
|
|
2150
|
-
return
|
|
2150
|
+
return di || (di = 1, function(f, e) {
|
|
2151
2151
|
(function(t, r) {
|
|
2152
2152
|
f.exports = r($e());
|
|
2153
2153
|
})(Pe, function(t) {
|
|
@@ -2227,9 +2227,9 @@ function ka() {
|
|
|
2227
2227
|
});
|
|
2228
2228
|
}(qr)), qr.exports;
|
|
2229
2229
|
}
|
|
2230
|
-
var Lr = { exports: {} },
|
|
2230
|
+
var Lr = { exports: {} }, hi;
|
|
2231
2231
|
function kt() {
|
|
2232
|
-
return
|
|
2232
|
+
return hi || (hi = 1, function(f, e) {
|
|
2233
2233
|
(function(t, r) {
|
|
2234
2234
|
f.exports = r($e());
|
|
2235
2235
|
})(Pe, function(t) {
|
|
@@ -2253,17 +2253,17 @@ function kt() {
|
|
|
2253
2253
|
var S = k + z, P = R[S];
|
|
2254
2254
|
R[S] = (P << 8 | P >>> 24) & 16711935 | (P << 24 | P >>> 8) & 4278255360;
|
|
2255
2255
|
}
|
|
2256
|
-
var T = this._hash.words, H = R[k + 0], $ = R[k + 1],
|
|
2257
|
-
E = v(E, j,
|
|
2256
|
+
var T = this._hash.words, H = R[k + 0], $ = R[k + 1], K = R[k + 2], X = R[k + 3], Q = R[k + 4], U = R[k + 5], A = R[k + 6], n = R[k + 7], d = R[k + 8], g = R[k + 9], C = R[k + 10], F = R[k + 11], N = R[k + 12], q = R[k + 13], D = R[k + 14], h = R[k + 15], E = T[0], j = T[1], Y = T[2], W = T[3];
|
|
2257
|
+
E = v(E, j, Y, W, H, 7, o[0]), W = v(W, E, j, Y, $, 12, o[1]), Y = v(Y, W, E, j, K, 17, o[2]), j = v(j, Y, W, E, X, 22, o[3]), E = v(E, j, Y, W, Q, 7, o[4]), W = v(W, E, j, Y, U, 12, o[5]), Y = v(Y, W, E, j, A, 17, o[6]), j = v(j, Y, W, E, n, 22, o[7]), E = v(E, j, Y, W, d, 7, o[8]), W = v(W, E, j, Y, g, 12, o[9]), Y = v(Y, W, E, j, C, 17, o[10]), j = v(j, Y, W, E, F, 22, o[11]), E = v(E, j, Y, W, N, 7, o[12]), W = v(W, E, j, Y, q, 12, o[13]), Y = v(Y, W, E, j, D, 17, o[14]), j = v(j, Y, W, E, h, 22, o[15]), E = b(E, j, Y, W, $, 5, o[16]), W = b(W, E, j, Y, A, 9, o[17]), Y = b(Y, W, E, j, F, 14, o[18]), j = b(j, Y, W, E, H, 20, o[19]), E = b(E, j, Y, W, U, 5, o[20]), W = b(W, E, j, Y, C, 9, o[21]), Y = b(Y, W, E, j, h, 14, o[22]), j = b(j, Y, W, E, Q, 20, o[23]), E = b(E, j, Y, W, g, 5, o[24]), W = b(W, E, j, Y, D, 9, o[25]), Y = b(Y, W, E, j, X, 14, o[26]), j = b(j, Y, W, E, d, 20, o[27]), E = b(E, j, Y, W, q, 5, o[28]), W = b(W, E, j, Y, K, 9, o[29]), Y = b(Y, W, E, j, n, 14, o[30]), j = b(j, Y, W, E, N, 20, o[31]), E = B(E, j, Y, W, U, 4, o[32]), W = B(W, E, j, Y, d, 11, o[33]), Y = B(Y, W, E, j, F, 16, o[34]), j = B(j, Y, W, E, D, 23, o[35]), E = B(E, j, Y, W, $, 4, o[36]), W = B(W, E, j, Y, Q, 11, o[37]), Y = B(Y, W, E, j, n, 16, o[38]), j = B(j, Y, W, E, C, 23, o[39]), E = B(E, j, Y, W, q, 4, o[40]), W = B(W, E, j, Y, H, 11, o[41]), Y = B(Y, W, E, j, X, 16, o[42]), j = B(j, Y, W, E, A, 23, o[43]), E = B(E, j, Y, W, g, 4, o[44]), W = B(W, E, j, Y, N, 11, o[45]), Y = B(Y, W, E, j, h, 16, o[46]), j = B(j, Y, W, E, K, 23, o[47]), E = w(E, j, Y, W, H, 6, o[48]), W = w(W, E, j, Y, n, 10, o[49]), Y = w(Y, W, E, j, D, 15, o[50]), j = w(j, Y, W, E, U, 21, o[51]), E = w(E, j, Y, W, N, 6, o[52]), W = w(W, E, j, Y, X, 10, o[53]), Y = w(Y, W, E, j, C, 15, o[54]), j = w(j, Y, W, E, $, 21, o[55]), E = w(E, j, Y, W, d, 6, o[56]), W = w(W, E, j, Y, h, 10, o[57]), Y = w(Y, W, E, j, A, 15, o[58]), j = w(j, Y, W, E, q, 21, o[59]), E = w(E, j, Y, W, Q, 6, o[60]), W = w(W, E, j, Y, F, 10, o[61]), Y = w(Y, W, E, j, K, 15, o[62]), j = w(j, Y, W, E, g, 21, o[63]), T[0] = T[0] + E | 0, T[1] = T[1] + j | 0, T[2] = T[2] + Y | 0, T[3] = T[3] + W | 0;
|
|
2258
2258
|
},
|
|
2259
2259
|
_doFinalize: function() {
|
|
2260
2260
|
var R = this._data, k = R.words, z = this._nDataBytes * 8, S = R.sigBytes * 8;
|
|
2261
2261
|
k[S >>> 5] |= 128 << 24 - S % 32;
|
|
2262
2262
|
var P = r.floor(z / 4294967296), T = z;
|
|
2263
2263
|
k[(S + 64 >>> 9 << 4) + 15] = (P << 8 | P >>> 24) & 16711935 | (P << 24 | P >>> 8) & 4278255360, k[(S + 64 >>> 9 << 4) + 14] = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360, R.sigBytes = (k.length + 1) * 4, this._process();
|
|
2264
|
-
for (var H = this._hash, $ = H.words,
|
|
2265
|
-
var X = $[
|
|
2266
|
-
$[
|
|
2264
|
+
for (var H = this._hash, $ = H.words, K = 0; K < 4; K++) {
|
|
2265
|
+
var X = $[K];
|
|
2266
|
+
$[K] = (X << 8 | X >>> 24) & 16711935 | (X << 24 | X >>> 8) & 4278255360;
|
|
2267
2267
|
}
|
|
2268
2268
|
return H;
|
|
2269
2269
|
},
|
|
@@ -2293,9 +2293,9 @@ function kt() {
|
|
|
2293
2293
|
});
|
|
2294
2294
|
}(Lr)), Lr.exports;
|
|
2295
2295
|
}
|
|
2296
|
-
var Hr = { exports: {} },
|
|
2297
|
-
function
|
|
2298
|
-
return
|
|
2296
|
+
var Hr = { exports: {} }, ui;
|
|
2297
|
+
function bn() {
|
|
2298
|
+
return ui || (ui = 1, function(f, e) {
|
|
2299
2299
|
(function(t, r) {
|
|
2300
2300
|
f.exports = r($e());
|
|
2301
2301
|
})(Pe, function(t) {
|
|
@@ -2337,9 +2337,9 @@ function pn() {
|
|
|
2337
2337
|
});
|
|
2338
2338
|
}(Hr)), Hr.exports;
|
|
2339
2339
|
}
|
|
2340
|
-
var Ur = { exports: {} },
|
|
2341
|
-
function
|
|
2342
|
-
return
|
|
2340
|
+
var Ur = { exports: {} }, li;
|
|
2341
|
+
function qf() {
|
|
2342
|
+
return li || (li = 1, function(f, e) {
|
|
2343
2343
|
(function(t, r) {
|
|
2344
2344
|
f.exports = r($e());
|
|
2345
2345
|
})(Pe, function(t) {
|
|
@@ -2363,17 +2363,17 @@ function Lf() {
|
|
|
2363
2363
|
this._hash = new y.init(o.slice(0));
|
|
2364
2364
|
},
|
|
2365
2365
|
_doProcessBlock: function(B, w) {
|
|
2366
|
-
for (var R = this._hash.words, k = R[0], z = R[1], S = R[2], P = R[3], T = R[4], H = R[5], $ = R[6],
|
|
2366
|
+
for (var R = this._hash.words, k = R[0], z = R[1], S = R[2], P = R[3], T = R[4], H = R[5], $ = R[6], K = R[7], X = 0; X < 64; X++) {
|
|
2367
2367
|
if (X < 16)
|
|
2368
2368
|
v[X] = B[w + X] | 0;
|
|
2369
2369
|
else {
|
|
2370
2370
|
var Q = v[X - 15], U = (Q << 25 | Q >>> 7) ^ (Q << 14 | Q >>> 18) ^ Q >>> 3, A = v[X - 2], n = (A << 15 | A >>> 17) ^ (A << 13 | A >>> 19) ^ A >>> 10;
|
|
2371
2371
|
v[X] = U + v[X - 7] + n + v[X - 16];
|
|
2372
2372
|
}
|
|
2373
|
-
var d = T & H ^ ~T & $, g = k & z ^ k & S ^ z & S, C = (k << 30 | k >>> 2) ^ (k << 19 | k >>> 13) ^ (k << 10 | k >>> 22), F = (T << 26 | T >>> 6) ^ (T << 21 | T >>> 11) ^ (T << 7 | T >>> 25), N =
|
|
2374
|
-
|
|
2373
|
+
var d = T & H ^ ~T & $, g = k & z ^ k & S ^ z & S, C = (k << 30 | k >>> 2) ^ (k << 19 | k >>> 13) ^ (k << 10 | k >>> 22), F = (T << 26 | T >>> 6) ^ (T << 21 | T >>> 11) ^ (T << 7 | T >>> 25), N = K + F + d + c[X] + v[X], q = C + g;
|
|
2374
|
+
K = $, $ = H, H = T, T = P + N | 0, P = S, S = z, z = k, k = N + q | 0;
|
|
2375
2375
|
}
|
|
2376
|
-
R[0] = R[0] + k | 0, R[1] = R[1] + z | 0, R[2] = R[2] + S | 0, R[3] = R[3] + P | 0, R[4] = R[4] + T | 0, R[5] = R[5] + H | 0, R[6] = R[6] + $ | 0, R[7] = R[7] +
|
|
2376
|
+
R[0] = R[0] + k | 0, R[1] = R[1] + z | 0, R[2] = R[2] + S | 0, R[3] = R[3] + P | 0, R[4] = R[4] + T | 0, R[5] = R[5] + H | 0, R[6] = R[6] + $ | 0, R[7] = R[7] + K | 0;
|
|
2377
2377
|
},
|
|
2378
2378
|
_doFinalize: function() {
|
|
2379
2379
|
var B = this._data, w = B.words, R = this._nDataBytes * 8, k = B.sigBytes * 8;
|
|
@@ -2389,11 +2389,11 @@ function Lf() {
|
|
|
2389
2389
|
});
|
|
2390
2390
|
}(Ur)), Ur.exports;
|
|
2391
2391
|
}
|
|
2392
|
-
var $r = { exports: {} },
|
|
2392
|
+
var $r = { exports: {} }, xi;
|
|
2393
2393
|
function Pa() {
|
|
2394
|
-
return
|
|
2394
|
+
return xi || (xi = 1, function(f, e) {
|
|
2395
2395
|
(function(t, r, a) {
|
|
2396
|
-
f.exports = r($e(),
|
|
2396
|
+
f.exports = r($e(), qf());
|
|
2397
2397
|
})(Pe, function(t) {
|
|
2398
2398
|
return function() {
|
|
2399
2399
|
var r = t, a = r.lib, i = a.WordArray, y = r.algo, x = y.SHA256, u = y.SHA224 = x.extend({
|
|
@@ -2419,9 +2419,9 @@ function Pa() {
|
|
|
2419
2419
|
});
|
|
2420
2420
|
}($r)), $r.exports;
|
|
2421
2421
|
}
|
|
2422
|
-
var Wr = { exports: {} },
|
|
2423
|
-
function
|
|
2424
|
-
return
|
|
2422
|
+
var Wr = { exports: {} }, vi;
|
|
2423
|
+
function pn() {
|
|
2424
|
+
return vi || (vi = 1, function(f, e) {
|
|
2425
2425
|
(function(t, r, a) {
|
|
2426
2426
|
f.exports = r($e(), _r());
|
|
2427
2427
|
})(Pe, function(t) {
|
|
@@ -2530,18 +2530,18 @@ function yn() {
|
|
|
2530
2530
|
]);
|
|
2531
2531
|
},
|
|
2532
2532
|
_doProcessBlock: function(w, R) {
|
|
2533
|
-
for (var k = this._hash.words, z = k[0], S = k[1], P = k[2], T = k[3], H = k[4], $ = k[5],
|
|
2533
|
+
for (var k = this._hash.words, z = k[0], S = k[1], P = k[2], T = k[3], H = k[4], $ = k[5], K = k[6], X = k[7], Q = z.high, U = z.low, A = S.high, n = S.low, d = P.high, g = P.low, C = T.high, F = T.low, N = H.high, q = H.low, D = $.high, h = $.low, E = K.high, j = K.low, Y = X.high, W = X.low, re = Q, ce = U, we = A, Ae = n, Me = d, Fe = g, Z0 = C, We = F, Oe = N, _0 = q, Ge = D, Ye = h, $0 = E, Qe = j, ze = Y, O0 = W, Ne = 0; Ne < 80; Ne++) {
|
|
2534
2534
|
var Se, F0, Je = b[Ne];
|
|
2535
2535
|
if (Ne < 16)
|
|
2536
2536
|
F0 = Je.high = w[R + Ne * 2] | 0, Se = Je.low = w[R + Ne * 2 + 1] | 0;
|
|
2537
2537
|
else {
|
|
2538
|
-
var f0 = b[Ne - 15], S0 = f0.high, qe = f0.low, u0 = (S0 >>> 1 | qe << 31) ^ (S0 >>> 8 | qe << 24) ^ S0 >>> 7,
|
|
2539
|
-
Se =
|
|
2538
|
+
var f0 = b[Ne - 15], S0 = f0.high, qe = f0.low, u0 = (S0 >>> 1 | qe << 31) ^ (S0 >>> 8 | qe << 24) ^ S0 >>> 7, G0 = (qe >>> 1 | S0 << 31) ^ (qe >>> 8 | S0 << 24) ^ (qe >>> 7 | S0 << 25), l0 = b[Ne - 2], He = l0.high, z0 = l0.low, a0 = (He >>> 19 | z0 << 13) ^ (He << 3 | z0 >>> 29) ^ He >>> 6, r0 = (z0 >>> 19 | He << 13) ^ (z0 << 3 | He >>> 29) ^ (z0 >>> 6 | He << 26), N0 = b[Ne - 7], i0 = N0.high, s0 = N0.low, W0 = b[Ne - 16], e0 = W0.high, n0 = W0.low;
|
|
2539
|
+
Se = G0 + s0, F0 = u0 + i0 + (Se >>> 0 < G0 >>> 0 ? 1 : 0), Se = Se + r0, F0 = F0 + a0 + (Se >>> 0 < r0 >>> 0 ? 1 : 0), Se = Se + n0, F0 = F0 + e0 + (Se >>> 0 < n0 >>> 0 ? 1 : 0), Je.high = F0, Je.low = Se;
|
|
2540
2540
|
}
|
|
2541
|
-
var
|
|
2542
|
-
ze = $0, O0 = Qe, $0 = Ge, Qe =
|
|
2541
|
+
var q0 = Oe & Ge ^ ~Oe & $0, o0 = _0 & Ye ^ ~_0 & Qe, x0 = re & we ^ re & Me ^ we & Me, D0 = ce & Ae ^ ce & Fe ^ Ae & Fe, t0 = (re >>> 28 | ce << 4) ^ (re << 30 | ce >>> 2) ^ (re << 25 | ce >>> 7), Ve = (ce >>> 28 | re << 4) ^ (ce << 30 | re >>> 2) ^ (ce << 25 | re >>> 7), tt = (Oe >>> 14 | _0 << 18) ^ (Oe >>> 18 | _0 << 14) ^ (Oe << 23 | _0 >>> 9), c0 = (_0 >>> 14 | Oe << 18) ^ (_0 >>> 18 | Oe << 14) ^ (_0 << 23 | Oe >>> 9), d0 = v[Ne], yt = d0.high, Ie = d0.low, Re = O0 + c0, l = ze + tt + (Re >>> 0 < O0 >>> 0 ? 1 : 0), Re = Re + o0, l = l + q0 + (Re >>> 0 < o0 >>> 0 ? 1 : 0), Re = Re + Ie, l = l + yt + (Re >>> 0 < Ie >>> 0 ? 1 : 0), Re = Re + Se, l = l + F0 + (Re >>> 0 < Se >>> 0 ? 1 : 0), _ = Ve + D0, m = t0 + x0 + (_ >>> 0 < Ve >>> 0 ? 1 : 0);
|
|
2542
|
+
ze = $0, O0 = Qe, $0 = Ge, Qe = Ye, Ge = Oe, Ye = _0, _0 = We + Re | 0, Oe = Z0 + l + (_0 >>> 0 < We >>> 0 ? 1 : 0) | 0, Z0 = Me, We = Fe, Me = we, Fe = Ae, we = re, Ae = ce, ce = Re + _ | 0, re = l + m + (ce >>> 0 < Re >>> 0 ? 1 : 0) | 0;
|
|
2543
2543
|
}
|
|
2544
|
-
U = z.low = U + ce, z.high = Q + re + (U >>> 0 < ce >>> 0 ? 1 : 0), n = S.low = n + Ae, S.high = A + we + (n >>> 0 < Ae >>> 0 ? 1 : 0), g = P.low = g + Fe, P.high = d + Me + (g >>> 0 < Fe >>> 0 ? 1 : 0), F = T.low = F + We, T.high = C +
|
|
2544
|
+
U = z.low = U + ce, z.high = Q + re + (U >>> 0 < ce >>> 0 ? 1 : 0), n = S.low = n + Ae, S.high = A + we + (n >>> 0 < Ae >>> 0 ? 1 : 0), g = P.low = g + Fe, P.high = d + Me + (g >>> 0 < Fe >>> 0 ? 1 : 0), F = T.low = F + We, T.high = C + Z0 + (F >>> 0 < We >>> 0 ? 1 : 0), q = H.low = q + _0, H.high = N + Oe + (q >>> 0 < _0 >>> 0 ? 1 : 0), h = $.low = h + Ye, $.high = D + Ge + (h >>> 0 < Ye >>> 0 ? 1 : 0), j = K.low = j + Qe, K.high = E + $0 + (j >>> 0 < Qe >>> 0 ? 1 : 0), W = X.low = W + O0, X.high = Y + ze + (W >>> 0 < O0 >>> 0 ? 1 : 0);
|
|
2545
2545
|
},
|
|
2546
2546
|
_doFinalize: function() {
|
|
2547
2547
|
var w = this._data, R = w.words, k = this._nDataBytes * 8, z = w.sigBytes * 8;
|
|
@@ -2560,11 +2560,11 @@ function yn() {
|
|
|
2560
2560
|
});
|
|
2561
2561
|
}(Wr)), Wr.exports;
|
|
2562
2562
|
}
|
|
2563
|
-
var
|
|
2563
|
+
var Yr = { exports: {} }, bi;
|
|
2564
2564
|
function Ia() {
|
|
2565
|
-
return
|
|
2565
|
+
return bi || (bi = 1, function(f, e) {
|
|
2566
2566
|
(function(t, r, a) {
|
|
2567
|
-
f.exports = r($e(), _r(),
|
|
2567
|
+
f.exports = r($e(), _r(), pn());
|
|
2568
2568
|
})(Pe, function(t) {
|
|
2569
2569
|
return function() {
|
|
2570
2570
|
var r = t, a = r.x64, i = a.Word, y = a.WordArray, x = r.algo, u = x.SHA512, o = x.SHA384 = u.extend({
|
|
@@ -2588,11 +2588,11 @@ function Ia() {
|
|
|
2588
2588
|
r.SHA384 = u._createHelper(o), r.HmacSHA384 = u._createHmacHelper(o);
|
|
2589
2589
|
}(), t.SHA384;
|
|
2590
2590
|
});
|
|
2591
|
-
}(
|
|
2591
|
+
}(Yr)), Yr.exports;
|
|
2592
2592
|
}
|
|
2593
|
-
var
|
|
2593
|
+
var Kr = { exports: {} }, pi;
|
|
2594
2594
|
function Ta() {
|
|
2595
|
-
return
|
|
2595
|
+
return pi || (pi = 1, function(f, e) {
|
|
2596
2596
|
(function(t, r, a) {
|
|
2597
2597
|
f.exports = r($e(), _r());
|
|
2598
2598
|
})(Pe, function(t) {
|
|
@@ -2608,14 +2608,14 @@ function Ta() {
|
|
|
2608
2608
|
for (var z = 0; z < 5; z++)
|
|
2609
2609
|
b[k + 5 * z] = z + (2 * k + 3 * z) % 5 * 5;
|
|
2610
2610
|
for (var H = 1, $ = 0; $ < 24; $++) {
|
|
2611
|
-
for (var
|
|
2611
|
+
for (var K = 0, X = 0, Q = 0; Q < 7; Q++) {
|
|
2612
2612
|
if (H & 1) {
|
|
2613
2613
|
var U = (1 << Q) - 1;
|
|
2614
|
-
U < 32 ? X ^= 1 << U :
|
|
2614
|
+
U < 32 ? X ^= 1 << U : K ^= 1 << U - 32;
|
|
2615
2615
|
}
|
|
2616
2616
|
H & 128 ? H = H << 1 ^ 113 : H <<= 1;
|
|
2617
2617
|
}
|
|
2618
|
-
B[$] = o.create(
|
|
2618
|
+
B[$] = o.create(K, X);
|
|
2619
2619
|
}
|
|
2620
2620
|
})();
|
|
2621
2621
|
var w = [];
|
|
@@ -2644,38 +2644,38 @@ function Ta() {
|
|
|
2644
2644
|
for (var S = this._state, P = this.blockSize / 2, T = 0; T < P; T++) {
|
|
2645
2645
|
var H = k[z + 2 * T], $ = k[z + 2 * T + 1];
|
|
2646
2646
|
H = (H << 8 | H >>> 24) & 16711935 | (H << 24 | H >>> 8) & 4278255360, $ = ($ << 8 | $ >>> 24) & 16711935 | ($ << 24 | $ >>> 8) & 4278255360;
|
|
2647
|
-
var
|
|
2648
|
-
|
|
2647
|
+
var K = S[T];
|
|
2648
|
+
K.high ^= $, K.low ^= H;
|
|
2649
2649
|
}
|
|
2650
2650
|
for (var X = 0; X < 24; X++) {
|
|
2651
2651
|
for (var Q = 0; Q < 5; Q++) {
|
|
2652
2652
|
for (var U = 0, A = 0, n = 0; n < 5; n++) {
|
|
2653
|
-
var
|
|
2654
|
-
U ^=
|
|
2653
|
+
var K = S[Q + 5 * n];
|
|
2654
|
+
U ^= K.high, A ^= K.low;
|
|
2655
2655
|
}
|
|
2656
2656
|
var d = w[Q];
|
|
2657
2657
|
d.high = U, d.low = A;
|
|
2658
2658
|
}
|
|
2659
2659
|
for (var Q = 0; Q < 5; Q++)
|
|
2660
2660
|
for (var g = w[(Q + 4) % 5], C = w[(Q + 1) % 5], F = C.high, N = C.low, U = g.high ^ (F << 1 | N >>> 31), A = g.low ^ (N << 1 | F >>> 31), n = 0; n < 5; n++) {
|
|
2661
|
-
var
|
|
2662
|
-
|
|
2661
|
+
var K = S[Q + 5 * n];
|
|
2662
|
+
K.high ^= U, K.low ^= A;
|
|
2663
2663
|
}
|
|
2664
2664
|
for (var q = 1; q < 25; q++) {
|
|
2665
|
-
var U, A,
|
|
2665
|
+
var U, A, K = S[q], D = K.high, h = K.low, E = v[q];
|
|
2666
2666
|
E < 32 ? (U = D << E | h >>> 32 - E, A = h << E | D >>> 32 - E) : (U = h << E - 32 | D >>> 64 - E, A = D << E - 32 | h >>> 64 - E);
|
|
2667
2667
|
var j = w[b[q]];
|
|
2668
2668
|
j.high = U, j.low = A;
|
|
2669
2669
|
}
|
|
2670
|
-
var
|
|
2671
|
-
|
|
2670
|
+
var Y = w[0], W = S[0];
|
|
2671
|
+
Y.high = W.high, Y.low = W.low;
|
|
2672
2672
|
for (var Q = 0; Q < 5; Q++)
|
|
2673
2673
|
for (var n = 0; n < 5; n++) {
|
|
2674
|
-
var q = Q + 5 * n,
|
|
2675
|
-
|
|
2674
|
+
var q = Q + 5 * n, K = S[q], re = w[q], ce = w[(Q + 1) % 5 + 5 * n], we = w[(Q + 2) % 5 + 5 * n];
|
|
2675
|
+
K.high = re.high ^ ~ce.high & we.high, K.low = re.low ^ ~ce.low & we.low;
|
|
2676
2676
|
}
|
|
2677
|
-
var
|
|
2678
|
-
|
|
2677
|
+
var K = S[0], Ae = B[X];
|
|
2678
|
+
K.high ^= Ae.high, K.low ^= Ae.low;
|
|
2679
2679
|
}
|
|
2680
2680
|
},
|
|
2681
2681
|
_doFinalize: function() {
|
|
@@ -2683,11 +2683,11 @@ function Ta() {
|
|
|
2683
2683
|
this._nDataBytes * 8;
|
|
2684
2684
|
var S = k.sigBytes * 8, P = this.blockSize * 32;
|
|
2685
2685
|
z[S >>> 5] |= 1 << 24 - S % 32, z[(r.ceil((S + 1) / P) * P >>> 5) - 1] |= 128, k.sigBytes = z.length * 4, this._process();
|
|
2686
|
-
for (var T = this._state, H = this.cfg.outputLength / 8, $ = H / 8,
|
|
2686
|
+
for (var T = this._state, H = this.cfg.outputLength / 8, $ = H / 8, K = [], X = 0; X < $; X++) {
|
|
2687
2687
|
var Q = T[X], U = Q.high, A = Q.low;
|
|
2688
|
-
U = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, A = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360,
|
|
2688
|
+
U = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360, A = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360, K.push(A), K.push(U);
|
|
2689
2689
|
}
|
|
2690
|
-
return new y.init(
|
|
2690
|
+
return new y.init(K, H);
|
|
2691
2691
|
},
|
|
2692
2692
|
clone: function() {
|
|
2693
2693
|
for (var k = x.clone.call(this), z = k._state = this._state.slice(0), S = 0; S < 25; S++)
|
|
@@ -2698,11 +2698,11 @@ function Ta() {
|
|
|
2698
2698
|
a.SHA3 = x._createHelper(R), a.HmacSHA3 = x._createHmacHelper(R);
|
|
2699
2699
|
}(Math), t.SHA3;
|
|
2700
2700
|
});
|
|
2701
|
-
}(
|
|
2701
|
+
}(Kr)), Kr.exports;
|
|
2702
2702
|
}
|
|
2703
|
-
var jr = { exports: {} },
|
|
2703
|
+
var jr = { exports: {} }, yi;
|
|
2704
2704
|
function Oa() {
|
|
2705
|
-
return
|
|
2705
|
+
return yi || (yi = 1, function(f, e) {
|
|
2706
2706
|
(function(t, r) {
|
|
2707
2707
|
f.exports = r($e());
|
|
2708
2708
|
})(Pe, function(t) {
|
|
@@ -3045,20 +3045,20 @@ function Oa() {
|
|
|
3045
3045
|
_doReset: function() {
|
|
3046
3046
|
this._hash = y.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
3047
3047
|
},
|
|
3048
|
-
_doProcessBlock: function($,
|
|
3048
|
+
_doProcessBlock: function($, K) {
|
|
3049
3049
|
for (var X = 0; X < 16; X++) {
|
|
3050
|
-
var Q =
|
|
3050
|
+
var Q = K + X, U = $[Q];
|
|
3051
3051
|
$[Q] = (U << 8 | U >>> 24) & 16711935 | (U << 24 | U >>> 8) & 4278255360;
|
|
3052
3052
|
}
|
|
3053
|
-
var A = this._hash.words, n = B.words, d = w.words, g = o.words, C = c.words, F = v.words, N = b.words, q, D, h, E, j,
|
|
3054
|
-
|
|
3053
|
+
var A = this._hash.words, n = B.words, d = w.words, g = o.words, C = c.words, F = v.words, N = b.words, q, D, h, E, j, Y, W, re, ce, we;
|
|
3054
|
+
Y = q = A[0], W = D = A[1], re = h = A[2], ce = E = A[3], we = j = A[4];
|
|
3055
3055
|
for (var Ae, X = 0; X < 80; X += 1)
|
|
3056
|
-
Ae = q + $[
|
|
3057
|
-
Ae = A[1] + h + ce | 0, A[1] = A[2] + E + we | 0, A[2] = A[3] + j +
|
|
3056
|
+
Ae = q + $[K + g[X]] | 0, X < 16 ? Ae += k(D, h, E) + n[0] : X < 32 ? Ae += z(D, h, E) + n[1] : X < 48 ? Ae += S(D, h, E) + n[2] : X < 64 ? Ae += P(D, h, E) + n[3] : Ae += T(D, h, E) + n[4], Ae = Ae | 0, Ae = H(Ae, F[X]), Ae = Ae + j | 0, q = j, j = E, E = H(h, 10), h = D, D = Ae, Ae = Y + $[K + C[X]] | 0, X < 16 ? Ae += T(W, re, ce) + d[0] : X < 32 ? Ae += P(W, re, ce) + d[1] : X < 48 ? Ae += S(W, re, ce) + d[2] : X < 64 ? Ae += z(W, re, ce) + d[3] : Ae += k(W, re, ce) + d[4], Ae = Ae | 0, Ae = H(Ae, N[X]), Ae = Ae + we | 0, Y = we, we = ce, ce = H(re, 10), re = W, W = Ae;
|
|
3057
|
+
Ae = A[1] + h + ce | 0, A[1] = A[2] + E + we | 0, A[2] = A[3] + j + Y | 0, A[3] = A[4] + q + W | 0, A[4] = A[0] + D + re | 0, A[0] = Ae;
|
|
3058
3058
|
},
|
|
3059
3059
|
_doFinalize: function() {
|
|
3060
|
-
var $ = this._data,
|
|
3061
|
-
|
|
3060
|
+
var $ = this._data, K = $.words, X = this._nDataBytes * 8, Q = $.sigBytes * 8;
|
|
3061
|
+
K[Q >>> 5] |= 128 << 24 - Q % 32, K[(Q + 64 >>> 9 << 4) + 14] = (X << 8 | X >>> 24) & 16711935 | (X << 24 | X >>> 8) & 4278255360, $.sigBytes = (K.length + 1) * 4, this._process();
|
|
3062
3062
|
for (var U = this._hash, A = U.words, n = 0; n < 5; n++) {
|
|
3063
3063
|
var d = A[n];
|
|
3064
3064
|
A[n] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360;
|
|
@@ -3070,32 +3070,32 @@ function Oa() {
|
|
|
3070
3070
|
return $._hash = this._hash.clone(), $;
|
|
3071
3071
|
}
|
|
3072
3072
|
});
|
|
3073
|
-
function k($,
|
|
3074
|
-
return $ ^
|
|
3073
|
+
function k($, K, X) {
|
|
3074
|
+
return $ ^ K ^ X;
|
|
3075
3075
|
}
|
|
3076
|
-
function z($,
|
|
3077
|
-
return $ &
|
|
3076
|
+
function z($, K, X) {
|
|
3077
|
+
return $ & K | ~$ & X;
|
|
3078
3078
|
}
|
|
3079
|
-
function S($,
|
|
3080
|
-
return ($ | ~
|
|
3079
|
+
function S($, K, X) {
|
|
3080
|
+
return ($ | ~K) ^ X;
|
|
3081
3081
|
}
|
|
3082
|
-
function P($,
|
|
3083
|
-
return $ & X |
|
|
3082
|
+
function P($, K, X) {
|
|
3083
|
+
return $ & X | K & ~X;
|
|
3084
3084
|
}
|
|
3085
|
-
function T($,
|
|
3086
|
-
return $ ^ (
|
|
3085
|
+
function T($, K, X) {
|
|
3086
|
+
return $ ^ (K | ~X);
|
|
3087
3087
|
}
|
|
3088
|
-
function H($,
|
|
3089
|
-
return $ <<
|
|
3088
|
+
function H($, K) {
|
|
3089
|
+
return $ << K | $ >>> 32 - K;
|
|
3090
3090
|
}
|
|
3091
3091
|
a.RIPEMD160 = x._createHelper(R), a.HmacRIPEMD160 = x._createHmacHelper(R);
|
|
3092
3092
|
}(), t.RIPEMD160;
|
|
3093
3093
|
});
|
|
3094
3094
|
}(jr)), jr.exports;
|
|
3095
3095
|
}
|
|
3096
|
-
var Vr = { exports: {} },
|
|
3097
|
-
function
|
|
3098
|
-
return
|
|
3096
|
+
var Vr = { exports: {} }, gi;
|
|
3097
|
+
function Lf() {
|
|
3098
|
+
return gi || (gi = 1, function(f, e) {
|
|
3099
3099
|
(function(t, r) {
|
|
3100
3100
|
f.exports = r($e());
|
|
3101
3101
|
})(Pe, function(t) {
|
|
@@ -3171,11 +3171,11 @@ function Hf() {
|
|
|
3171
3171
|
});
|
|
3172
3172
|
}(Vr)), Vr.exports;
|
|
3173
3173
|
}
|
|
3174
|
-
var Xr = { exports: {} },
|
|
3174
|
+
var Xr = { exports: {} }, mi;
|
|
3175
3175
|
function za() {
|
|
3176
|
-
return
|
|
3176
|
+
return mi || (mi = 1, function(f, e) {
|
|
3177
3177
|
(function(t, r, a) {
|
|
3178
|
-
f.exports = r($e(),
|
|
3178
|
+
f.exports = r($e(), qf(), Lf());
|
|
3179
3179
|
})(Pe, function(t) {
|
|
3180
3180
|
return function() {
|
|
3181
3181
|
var r = t, a = r.lib, i = a.Base, y = a.WordArray, x = r.algo, u = x.SHA256, o = x.HMAC, c = x.PBKDF2 = i.extend({
|
|
@@ -3221,9 +3221,9 @@ function za() {
|
|
|
3221
3221
|
for (var B = this.cfg, w = o.create(B.hasher, v), R = y.create(), k = y.create([1]), z = R.words, S = k.words, P = B.keySize, T = B.iterations; z.length < P; ) {
|
|
3222
3222
|
var H = w.update(b).finalize(k);
|
|
3223
3223
|
w.reset();
|
|
3224
|
-
for (var $ = H.words,
|
|
3224
|
+
for (var $ = H.words, K = $.length, X = H, Q = 1; Q < T; Q++) {
|
|
3225
3225
|
X = w.finalize(X), w.reset();
|
|
3226
|
-
for (var U = X.words, A = 0; A <
|
|
3226
|
+
for (var U = X.words, A = 0; A < K; A++)
|
|
3227
3227
|
$[A] ^= U[A];
|
|
3228
3228
|
}
|
|
3229
3229
|
R.concat(H), S[0]++;
|
|
@@ -3238,11 +3238,11 @@ function za() {
|
|
|
3238
3238
|
});
|
|
3239
3239
|
}(Xr)), Xr.exports;
|
|
3240
3240
|
}
|
|
3241
|
-
var Zr = { exports: {} },
|
|
3241
|
+
var Zr = { exports: {} }, _i;
|
|
3242
3242
|
function At() {
|
|
3243
|
-
return
|
|
3243
|
+
return _i || (_i = 1, function(f, e) {
|
|
3244
3244
|
(function(t, r, a) {
|
|
3245
|
-
f.exports = r($e(),
|
|
3245
|
+
f.exports = r($e(), bn(), Lf());
|
|
3246
3246
|
})(Pe, function(t) {
|
|
3247
3247
|
return function() {
|
|
3248
3248
|
var r = t, a = r.lib, i = a.Base, y = a.WordArray, x = r.algo, u = x.MD5, o = x.EvpKDF = i.extend({
|
|
@@ -3301,9 +3301,9 @@ function At() {
|
|
|
3301
3301
|
});
|
|
3302
3302
|
}(Zr)), Zr.exports;
|
|
3303
3303
|
}
|
|
3304
|
-
var Gr = { exports: {} },
|
|
3304
|
+
var Gr = { exports: {} }, Ai;
|
|
3305
3305
|
function C0() {
|
|
3306
|
-
return
|
|
3306
|
+
return Ai || (Ai = 1, function(f, e) {
|
|
3307
3307
|
(function(t, r, a) {
|
|
3308
3308
|
f.exports = r($e(), At());
|
|
3309
3309
|
})(Pe, function(t) {
|
|
@@ -3751,7 +3751,7 @@ function C0() {
|
|
|
3751
3751
|
_parse: function(U, A) {
|
|
3752
3752
|
return typeof U == "string" ? A.parse(U, this) : U;
|
|
3753
3753
|
}
|
|
3754
|
-
}),
|
|
3754
|
+
}), K = a.kdf = {}, X = K.OpenSSL = {
|
|
3755
3755
|
/**
|
|
3756
3756
|
* Derives a key and IV from a password.
|
|
3757
3757
|
*
|
|
@@ -3839,9 +3839,9 @@ function C0() {
|
|
|
3839
3839
|
});
|
|
3840
3840
|
}(Gr)), Gr.exports;
|
|
3841
3841
|
}
|
|
3842
|
-
var Qr = { exports: {} },
|
|
3842
|
+
var Qr = { exports: {} }, Ei;
|
|
3843
3843
|
function Na() {
|
|
3844
|
-
return
|
|
3844
|
+
return Ei || (Ei = 1, function(f, e) {
|
|
3845
3845
|
(function(t, r, a) {
|
|
3846
3846
|
f.exports = r($e(), C0());
|
|
3847
3847
|
})(Pe, function(t) {
|
|
@@ -3869,9 +3869,9 @@ function Na() {
|
|
|
3869
3869
|
});
|
|
3870
3870
|
}(Qr)), Qr.exports;
|
|
3871
3871
|
}
|
|
3872
|
-
var Jr = { exports: {} },
|
|
3872
|
+
var Jr = { exports: {} }, wi;
|
|
3873
3873
|
function qa() {
|
|
3874
|
-
return
|
|
3874
|
+
return wi || (wi = 1, function(f, e) {
|
|
3875
3875
|
(function(t, r, a) {
|
|
3876
3876
|
f.exports = r($e(), C0());
|
|
3877
3877
|
})(Pe, function(t) {
|
|
@@ -3891,9 +3891,9 @@ function qa() {
|
|
|
3891
3891
|
});
|
|
3892
3892
|
}(Jr)), Jr.exports;
|
|
3893
3893
|
}
|
|
3894
|
-
var ef = { exports: {} },
|
|
3894
|
+
var ef = { exports: {} }, Bi;
|
|
3895
3895
|
function La() {
|
|
3896
|
-
return
|
|
3896
|
+
return Bi || (Bi = 1, function(f, e) {
|
|
3897
3897
|
(function(t, r, a) {
|
|
3898
3898
|
f.exports = r($e(), C0());
|
|
3899
3899
|
})(Pe, function(t) {
|
|
@@ -3930,9 +3930,9 @@ function La() {
|
|
|
3930
3930
|
});
|
|
3931
3931
|
}(ef)), ef.exports;
|
|
3932
3932
|
}
|
|
3933
|
-
var tf = { exports: {} },
|
|
3933
|
+
var tf = { exports: {} }, Ci;
|
|
3934
3934
|
function Ha() {
|
|
3935
|
-
return
|
|
3935
|
+
return Ci || (Ci = 1, function(f, e) {
|
|
3936
3936
|
(function(t, r, a) {
|
|
3937
3937
|
f.exports = r($e(), C0());
|
|
3938
3938
|
})(Pe, function(t) {
|
|
@@ -3950,9 +3950,9 @@ function Ha() {
|
|
|
3950
3950
|
});
|
|
3951
3951
|
}(tf)), tf.exports;
|
|
3952
3952
|
}
|
|
3953
|
-
var rf = { exports: {} },
|
|
3953
|
+
var rf = { exports: {} }, Mi;
|
|
3954
3954
|
function Ua() {
|
|
3955
|
-
return
|
|
3955
|
+
return Mi || (Mi = 1, function(f, e) {
|
|
3956
3956
|
(function(t, r, a) {
|
|
3957
3957
|
f.exports = r($e(), C0());
|
|
3958
3958
|
})(Pe, function(t) {
|
|
@@ -3971,9 +3971,9 @@ function Ua() {
|
|
|
3971
3971
|
});
|
|
3972
3972
|
}(rf)), rf.exports;
|
|
3973
3973
|
}
|
|
3974
|
-
var ff = { exports: {} },
|
|
3974
|
+
var ff = { exports: {} }, Fi;
|
|
3975
3975
|
function $a() {
|
|
3976
|
-
return
|
|
3976
|
+
return Fi || (Fi = 1, function(f, e) {
|
|
3977
3977
|
(function(t, r, a) {
|
|
3978
3978
|
f.exports = r($e(), C0());
|
|
3979
3979
|
})(Pe, function(t) {
|
|
@@ -3990,9 +3990,9 @@ function $a() {
|
|
|
3990
3990
|
});
|
|
3991
3991
|
}(ff)), ff.exports;
|
|
3992
3992
|
}
|
|
3993
|
-
var nf = { exports: {} },
|
|
3993
|
+
var nf = { exports: {} }, Si;
|
|
3994
3994
|
function Wa() {
|
|
3995
|
-
return
|
|
3995
|
+
return Si || (Si = 1, function(f, e) {
|
|
3996
3996
|
(function(t, r, a) {
|
|
3997
3997
|
f.exports = r($e(), C0());
|
|
3998
3998
|
})(Pe, function(t) {
|
|
@@ -4009,9 +4009,9 @@ function Wa() {
|
|
|
4009
4009
|
});
|
|
4010
4010
|
}(nf)), nf.exports;
|
|
4011
4011
|
}
|
|
4012
|
-
var af = { exports: {} },
|
|
4013
|
-
function
|
|
4014
|
-
return
|
|
4012
|
+
var af = { exports: {} }, Di;
|
|
4013
|
+
function Ya() {
|
|
4014
|
+
return Di || (Di = 1, function(f, e) {
|
|
4015
4015
|
(function(t, r, a) {
|
|
4016
4016
|
f.exports = r($e(), C0());
|
|
4017
4017
|
})(Pe, function(t) {
|
|
@@ -4026,9 +4026,9 @@ function Ka() {
|
|
|
4026
4026
|
});
|
|
4027
4027
|
}(af)), af.exports;
|
|
4028
4028
|
}
|
|
4029
|
-
var sf = { exports: {} },
|
|
4030
|
-
function
|
|
4031
|
-
return
|
|
4029
|
+
var sf = { exports: {} }, Ri;
|
|
4030
|
+
function Ka() {
|
|
4031
|
+
return Ri || (Ri = 1, function(f, e) {
|
|
4032
4032
|
(function(t, r, a) {
|
|
4033
4033
|
f.exports = r($e(), C0());
|
|
4034
4034
|
})(Pe, function(t) {
|
|
@@ -4048,9 +4048,9 @@ function Ya() {
|
|
|
4048
4048
|
});
|
|
4049
4049
|
}(sf)), sf.exports;
|
|
4050
4050
|
}
|
|
4051
|
-
var of = { exports: {} },
|
|
4051
|
+
var of = { exports: {} }, ki;
|
|
4052
4052
|
function ja() {
|
|
4053
|
-
return
|
|
4053
|
+
return ki || (ki = 1, function(f, e) {
|
|
4054
4054
|
(function(t, r, a) {
|
|
4055
4055
|
f.exports = r($e(), C0());
|
|
4056
4056
|
})(Pe, function(t) {
|
|
@@ -4063,9 +4063,9 @@ function ja() {
|
|
|
4063
4063
|
});
|
|
4064
4064
|
}(of)), of.exports;
|
|
4065
4065
|
}
|
|
4066
|
-
var cf = { exports: {} },
|
|
4066
|
+
var cf = { exports: {} }, Pi;
|
|
4067
4067
|
function Va() {
|
|
4068
|
-
return
|
|
4068
|
+
return Pi || (Pi = 1, function(f, e) {
|
|
4069
4069
|
(function(t, r, a) {
|
|
4070
4070
|
f.exports = r($e(), C0());
|
|
4071
4071
|
})(Pe, function(t) {
|
|
@@ -4110,9 +4110,9 @@ function Va() {
|
|
|
4110
4110
|
});
|
|
4111
4111
|
}(cf)), cf.exports;
|
|
4112
4112
|
}
|
|
4113
|
-
var df = { exports: {} },
|
|
4113
|
+
var df = { exports: {} }, Ii;
|
|
4114
4114
|
function Xa() {
|
|
4115
|
-
return
|
|
4115
|
+
return Ii || (Ii = 1, function(f, e) {
|
|
4116
4116
|
(function(t, r, a) {
|
|
4117
4117
|
f.exports = r($e(), Rt(), kt(), At(), C0());
|
|
4118
4118
|
})(Pe, function(t) {
|
|
@@ -4122,19 +4122,19 @@ function Xa() {
|
|
|
4122
4122
|
for (var P = [], T = 0; T < 256; T++)
|
|
4123
4123
|
T < 128 ? P[T] = T << 1 : P[T] = T << 1 ^ 283;
|
|
4124
4124
|
for (var H = 0, $ = 0, T = 0; T < 256; T++) {
|
|
4125
|
-
var
|
|
4126
|
-
|
|
4127
|
-
var X = P[H], Q = P[X], U = P[Q], A = P[
|
|
4125
|
+
var K = $ ^ $ << 1 ^ $ << 2 ^ $ << 3 ^ $ << 4;
|
|
4126
|
+
K = K >>> 8 ^ K & 255 ^ 99, x[H] = K, u[K] = H;
|
|
4127
|
+
var X = P[H], Q = P[X], U = P[Q], A = P[K] * 257 ^ K * 16843008;
|
|
4128
4128
|
o[H] = A << 24 | A >>> 8, c[H] = A << 16 | A >>> 16, v[H] = A << 8 | A >>> 24, b[H] = A;
|
|
4129
4129
|
var A = U * 16843009 ^ Q * 65537 ^ X * 257 ^ H * 16843008;
|
|
4130
|
-
B[
|
|
4130
|
+
B[K] = A << 24 | A >>> 8, w[K] = A << 16 | A >>> 16, R[K] = A << 8 | A >>> 24, k[K] = A, H ? (H = X ^ P[P[P[U ^ X]]], $ ^= P[P[$]]) : H = $ = 1;
|
|
4131
4131
|
}
|
|
4132
4132
|
})();
|
|
4133
4133
|
var z = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], S = y.AES = i.extend({
|
|
4134
4134
|
_doReset: function() {
|
|
4135
4135
|
var P;
|
|
4136
4136
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
4137
|
-
for (var T = this._keyPriorReset = this._key, H = T.words, $ = T.sigBytes / 4,
|
|
4137
|
+
for (var T = this._keyPriorReset = this._key, H = T.words, $ = T.sigBytes / 4, K = this._nRounds = $ + 6, X = (K + 1) * 4, Q = this._keySchedule = [], U = 0; U < X; U++)
|
|
4138
4138
|
U < $ ? Q[U] = H[U] : (P = Q[U - 1], U % $ ? $ > 6 && U % $ == 4 && (P = x[P >>> 24] << 24 | x[P >>> 16 & 255] << 16 | x[P >>> 8 & 255] << 8 | x[P & 255]) : (P = P << 8 | P >>> 24, P = x[P >>> 24] << 24 | x[P >>> 16 & 255] << 16 | x[P >>> 8 & 255] << 8 | x[P & 255], P ^= z[U / $ | 0] << 24), Q[U] = Q[U - $] ^ P);
|
|
4139
4139
|
for (var A = this._invKeySchedule = [], n = 0; n < X; n++) {
|
|
4140
4140
|
var U = X - n;
|
|
@@ -4155,9 +4155,9 @@ function Xa() {
|
|
|
4155
4155
|
var H = P[T + 1];
|
|
4156
4156
|
P[T + 1] = P[T + 3], P[T + 3] = H;
|
|
4157
4157
|
},
|
|
4158
|
-
_doCryptBlock: function(P, T, H, $,
|
|
4158
|
+
_doCryptBlock: function(P, T, H, $, K, X, Q, U) {
|
|
4159
4159
|
for (var A = this._nRounds, n = P[T] ^ H[0], d = P[T + 1] ^ H[1], g = P[T + 2] ^ H[2], C = P[T + 3] ^ H[3], F = 4, N = 1; N < A; N++) {
|
|
4160
|
-
var q = $[n >>> 24] ^
|
|
4160
|
+
var q = $[n >>> 24] ^ K[d >>> 16 & 255] ^ X[g >>> 8 & 255] ^ Q[C & 255] ^ H[F++], D = $[d >>> 24] ^ K[g >>> 16 & 255] ^ X[C >>> 8 & 255] ^ Q[n & 255] ^ H[F++], h = $[g >>> 24] ^ K[C >>> 16 & 255] ^ X[n >>> 8 & 255] ^ Q[d & 255] ^ H[F++], E = $[C >>> 24] ^ K[n >>> 16 & 255] ^ X[d >>> 8 & 255] ^ Q[g & 255] ^ H[F++];
|
|
4161
4161
|
n = q, d = D, g = h, C = E;
|
|
4162
4162
|
}
|
|
4163
4163
|
var q = (U[n >>> 24] << 24 | U[d >>> 16 & 255] << 16 | U[g >>> 8 & 255] << 8 | U[C & 255]) ^ H[F++], D = (U[d >>> 24] << 24 | U[g >>> 16 & 255] << 16 | U[C >>> 8 & 255] << 8 | U[n & 255]) ^ H[F++], h = (U[g >>> 24] << 24 | U[C >>> 16 & 255] << 16 | U[n >>> 8 & 255] << 8 | U[d & 255]) ^ H[F++], E = (U[C >>> 24] << 24 | U[n >>> 16 & 255] << 16 | U[d >>> 8 & 255] << 8 | U[g & 255]) ^ H[F++];
|
|
@@ -4170,9 +4170,9 @@ function Xa() {
|
|
|
4170
4170
|
});
|
|
4171
4171
|
}(df)), df.exports;
|
|
4172
4172
|
}
|
|
4173
|
-
var hf = { exports: {} },
|
|
4173
|
+
var hf = { exports: {} }, Ti;
|
|
4174
4174
|
function Za() {
|
|
4175
|
-
return
|
|
4175
|
+
return Ti || (Ti = 1, function(f, e) {
|
|
4176
4176
|
(function(t, r, a) {
|
|
4177
4177
|
f.exports = r($e(), Rt(), kt(), At(), C0());
|
|
4178
4178
|
})(Pe, function(t) {
|
|
@@ -4827,8 +4827,8 @@ function Za() {
|
|
|
4827
4827
|
var H = u[T] - 1;
|
|
4828
4828
|
P[T] = S[H >>> 5] >>> 31 - H % 32 & 1;
|
|
4829
4829
|
}
|
|
4830
|
-
for (var $ = this._subKeys = [],
|
|
4831
|
-
for (var X = $[
|
|
4830
|
+
for (var $ = this._subKeys = [], K = 0; K < 16; K++) {
|
|
4831
|
+
for (var X = $[K] = [], Q = c[K], T = 0; T < 24; T++)
|
|
4832
4832
|
X[T / 6 | 0] |= P[(o[T] - 1 + Q) % 28] << 31 - T % 6, X[4 + (T / 6 | 0)] |= P[28 + (o[T + 24] - 1 + Q) % 28] << 31 - T % 6;
|
|
4833
4833
|
X[0] = X[0] << 1 | X[0] >>> 31;
|
|
4834
4834
|
for (var T = 1; T < 7; T++)
|
|
@@ -4847,9 +4847,9 @@ function Za() {
|
|
|
4847
4847
|
_doCryptBlock: function(z, S, P) {
|
|
4848
4848
|
this._lBlock = z[S], this._rBlock = z[S + 1], w.call(this, 4, 252645135), w.call(this, 16, 65535), R.call(this, 2, 858993459), R.call(this, 8, 16711935), w.call(this, 1, 1431655765);
|
|
4849
4849
|
for (var T = 0; T < 16; T++) {
|
|
4850
|
-
for (var H = P[T], $ = this._lBlock,
|
|
4851
|
-
X |= v[Q][((
|
|
4852
|
-
this._lBlock =
|
|
4850
|
+
for (var H = P[T], $ = this._lBlock, K = this._rBlock, X = 0, Q = 0; Q < 8; Q++)
|
|
4851
|
+
X |= v[Q][((K ^ H[Q]) & b[Q]) >>> 0];
|
|
4852
|
+
this._lBlock = K, this._rBlock = $ ^ X;
|
|
4853
4853
|
}
|
|
4854
4854
|
var U = this._lBlock;
|
|
4855
4855
|
this._lBlock = this._rBlock, this._rBlock = U, w.call(this, 1, 1431655765), R.call(this, 8, 16711935), R.call(this, 2, 858993459), w.call(this, 16, 65535), w.call(this, 4, 252645135), z[S] = this._lBlock, z[S + 1] = this._rBlock;
|
|
@@ -4890,9 +4890,9 @@ function Za() {
|
|
|
4890
4890
|
});
|
|
4891
4891
|
}(hf)), hf.exports;
|
|
4892
4892
|
}
|
|
4893
|
-
var uf = { exports: {} },
|
|
4893
|
+
var uf = { exports: {} }, Oi;
|
|
4894
4894
|
function Ga() {
|
|
4895
|
-
return
|
|
4895
|
+
return Oi || (Oi = 1, function(f, e) {
|
|
4896
4896
|
(function(t, r, a) {
|
|
4897
4897
|
f.exports = r($e(), Rt(), kt(), At(), C0());
|
|
4898
4898
|
})(Pe, function(t) {
|
|
@@ -4944,9 +4944,9 @@ function Ga() {
|
|
|
4944
4944
|
});
|
|
4945
4945
|
}(uf)), uf.exports;
|
|
4946
4946
|
}
|
|
4947
|
-
var lf = { exports: {} },
|
|
4947
|
+
var lf = { exports: {} }, zi;
|
|
4948
4948
|
function Qa() {
|
|
4949
|
-
return
|
|
4949
|
+
return zi || (zi = 1, function(f, e) {
|
|
4950
4950
|
(function(t, r, a) {
|
|
4951
4951
|
f.exports = r($e(), Rt(), kt(), At(), C0());
|
|
4952
4952
|
})(Pe, function(t) {
|
|
@@ -4980,8 +4980,8 @@ function Qa() {
|
|
|
4980
4980
|
for (var w = 0; w < 8; w++)
|
|
4981
4981
|
k[w] ^= R[w + 4 & 7];
|
|
4982
4982
|
if (B) {
|
|
4983
|
-
var z = B.words, S = z[0], P = z[1], T = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, H = (P << 8 | P >>> 24) & 16711935 | (P << 24 | P >>> 8) & 4278255360, $ = T >>> 16 | H & 4294901760,
|
|
4984
|
-
k[0] ^= T, k[1] ^= $, k[2] ^= H, k[3] ^=
|
|
4983
|
+
var z = B.words, S = z[0], P = z[1], T = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, H = (P << 8 | P >>> 24) & 16711935 | (P << 24 | P >>> 8) & 4278255360, $ = T >>> 16 | H & 4294901760, K = H << 16 | T & 65535;
|
|
4984
|
+
k[0] ^= T, k[1] ^= $, k[2] ^= H, k[3] ^= K, k[4] ^= T, k[5] ^= $, k[6] ^= H, k[7] ^= K;
|
|
4985
4985
|
for (var w = 0; w < 4; w++)
|
|
4986
4986
|
v.call(this);
|
|
4987
4987
|
}
|
|
@@ -5010,9 +5010,9 @@ function Qa() {
|
|
|
5010
5010
|
});
|
|
5011
5011
|
}(lf)), lf.exports;
|
|
5012
5012
|
}
|
|
5013
|
-
var xf = { exports: {} },
|
|
5013
|
+
var xf = { exports: {} }, Ni;
|
|
5014
5014
|
function Ja() {
|
|
5015
|
-
return
|
|
5015
|
+
return Ni || (Ni = 1, function(f, e) {
|
|
5016
5016
|
(function(t, r, a) {
|
|
5017
5017
|
f.exports = r($e(), Rt(), kt(), At(), C0());
|
|
5018
5018
|
})(Pe, function(t) {
|
|
@@ -5044,8 +5044,8 @@ function Ja() {
|
|
|
5044
5044
|
for (var k = 0; k < 8; k++)
|
|
5045
5045
|
R[k] ^= w[k + 4 & 7];
|
|
5046
5046
|
if (B) {
|
|
5047
|
-
var z = B.words, S = z[0], P = z[1], T = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, H = (P << 8 | P >>> 24) & 16711935 | (P << 24 | P >>> 8) & 4278255360, $ = T >>> 16 | H & 4294901760,
|
|
5048
|
-
R[0] ^= T, R[1] ^= $, R[2] ^= H, R[3] ^=
|
|
5047
|
+
var z = B.words, S = z[0], P = z[1], T = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, H = (P << 8 | P >>> 24) & 16711935 | (P << 24 | P >>> 8) & 4278255360, $ = T >>> 16 | H & 4294901760, K = H << 16 | T & 65535;
|
|
5048
|
+
R[0] ^= T, R[1] ^= $, R[2] ^= H, R[3] ^= K, R[4] ^= T, R[5] ^= $, R[6] ^= H, R[7] ^= K;
|
|
5049
5049
|
for (var k = 0; k < 4; k++)
|
|
5050
5050
|
v.call(this);
|
|
5051
5051
|
}
|
|
@@ -5074,9 +5074,9 @@ function Ja() {
|
|
|
5074
5074
|
});
|
|
5075
5075
|
}(xf)), xf.exports;
|
|
5076
5076
|
}
|
|
5077
|
-
var vf = { exports: {} },
|
|
5077
|
+
var vf = { exports: {} }, qi;
|
|
5078
5078
|
function es() {
|
|
5079
|
-
return
|
|
5079
|
+
return qi || (qi = 1, function(f, e) {
|
|
5080
5080
|
(function(t, r, a) {
|
|
5081
5081
|
f.exports = r($e(), Rt(), kt(), At(), C0());
|
|
5082
5082
|
})(Pe, function(t) {
|
|
@@ -6156,20 +6156,20 @@ function es() {
|
|
|
6156
6156
|
return H = P, P = T, T = H, T = T ^ k.pbox[1], P = P ^ k.pbox[0], { left: P, right: T };
|
|
6157
6157
|
}
|
|
6158
6158
|
function w(k, z, S) {
|
|
6159
|
-
for (let
|
|
6160
|
-
k.sbox[
|
|
6159
|
+
for (let K = 0; K < 4; K++) {
|
|
6160
|
+
k.sbox[K] = [];
|
|
6161
6161
|
for (let X = 0; X < 256; X++)
|
|
6162
|
-
k.sbox[
|
|
6162
|
+
k.sbox[K][X] = o[K][X];
|
|
6163
6163
|
}
|
|
6164
6164
|
let P = 0;
|
|
6165
|
-
for (let
|
|
6166
|
-
k.pbox[
|
|
6165
|
+
for (let K = 0; K < x + 2; K++)
|
|
6166
|
+
k.pbox[K] = u[K] ^ z[P], P++, P >= S && (P = 0);
|
|
6167
6167
|
let T = 0, H = 0, $ = 0;
|
|
6168
|
-
for (let
|
|
6169
|
-
$ = b(k, T, H), T = $.left, H = $.right, k.pbox[
|
|
6170
|
-
for (let
|
|
6168
|
+
for (let K = 0; K < x + 2; K += 2)
|
|
6169
|
+
$ = b(k, T, H), T = $.left, H = $.right, k.pbox[K] = T, k.pbox[K + 1] = H;
|
|
6170
|
+
for (let K = 0; K < 4; K++)
|
|
6171
6171
|
for (let X = 0; X < 256; X += 2)
|
|
6172
|
-
$ = b(k, T, H), T = $.left, H = $.right, k.sbox[
|
|
6172
|
+
$ = b(k, T, H), T = $.left, H = $.right, k.sbox[K][X] = T, k.sbox[K][X + 1] = H;
|
|
6173
6173
|
return !0;
|
|
6174
6174
|
}
|
|
6175
6175
|
var R = y.Blowfish = i.extend({
|
|
@@ -6198,14 +6198,14 @@ function es() {
|
|
|
6198
6198
|
}
|
|
6199
6199
|
(function(f, e) {
|
|
6200
6200
|
(function(t, r, a) {
|
|
6201
|
-
f.exports = r($e(), _r(), Da(), Ra(), Rt(), ka(), kt(),
|
|
6201
|
+
f.exports = r($e(), _r(), Da(), Ra(), Rt(), ka(), kt(), bn(), qf(), Pa(), pn(), Ia(), Ta(), Oa(), Lf(), za(), At(), C0(), Na(), qa(), La(), Ha(), Ua(), $a(), Wa(), Ya(), Ka(), ja(), Va(), Xa(), Za(), Ga(), Qa(), Ja(), es());
|
|
6202
6202
|
})(Pe, function(t) {
|
|
6203
6203
|
return t;
|
|
6204
6204
|
});
|
|
6205
|
-
})(
|
|
6206
|
-
var ts =
|
|
6207
|
-
const
|
|
6208
|
-
var
|
|
6205
|
+
})(xn);
|
|
6206
|
+
var ts = xn.exports;
|
|
6207
|
+
const ut = /* @__PURE__ */ sn(ts);
|
|
6208
|
+
var yn = {};
|
|
6209
6209
|
const rs = "elliptic", fs = "6.5.5", is = "EC cryptography", ns = "lib/elliptic.js", as = [
|
|
6210
6210
|
"lib"
|
|
6211
6211
|
], ss = {
|
|
@@ -6262,8 +6262,8 @@ const rs = "elliptic", fs = "6.5.5", is = "EC cryptography", ns = "lib/elliptic.
|
|
|
6262
6262
|
devDependencies: xs,
|
|
6263
6263
|
dependencies: vs
|
|
6264
6264
|
};
|
|
6265
|
-
var Y0 = {},
|
|
6266
|
-
|
|
6265
|
+
var Y0 = {}, Hf = { exports: {} };
|
|
6266
|
+
Hf.exports;
|
|
6267
6267
|
(function(f) {
|
|
6268
6268
|
(function(e, t) {
|
|
6269
6269
|
function r(A, n) {
|
|
@@ -6512,8 +6512,8 @@ Uf.exports;
|
|
|
6512
6512
|
g = "";
|
|
6513
6513
|
var j = this.clone();
|
|
6514
6514
|
for (j.negative = 0; !j.isZero(); ) {
|
|
6515
|
-
var
|
|
6516
|
-
j = j.idivn(E), j.isZero() ? g =
|
|
6515
|
+
var Y = j.modn(E).toString(n);
|
|
6516
|
+
j = j.idivn(E), j.isZero() ? g = Y + g : g = c[h - Y.length] + Y + g;
|
|
6517
6517
|
}
|
|
6518
6518
|
for (this.isZero() && (g = "0" + g); g.length % d !== 0; )
|
|
6519
6519
|
g = "0" + g;
|
|
@@ -6690,7 +6690,7 @@ Uf.exports;
|
|
|
6690
6690
|
var C = A.words[0] | 0, F = n.words[0] | 0, N = C * F, q = N & 67108863, D = N / 67108864 | 0;
|
|
6691
6691
|
d.words[0] = q;
|
|
6692
6692
|
for (var h = 1; h < g; h++) {
|
|
6693
|
-
for (var E = D >>> 26, j = D & 67108863,
|
|
6693
|
+
for (var E = D >>> 26, j = D & 67108863, Y = Math.min(h, n.length - 1), W = Math.max(0, h - A.length + 1); W <= Y; W++) {
|
|
6694
6694
|
var re = h - W | 0;
|
|
6695
6695
|
C = A.words[re] | 0, F = n.words[W] | 0, N = C * F + j, E += N / 67108864 | 0, j = N & 67108863;
|
|
6696
6696
|
}
|
|
@@ -6699,34 +6699,34 @@ Uf.exports;
|
|
|
6699
6699
|
return D !== 0 ? d.words[h] = D | 0 : d.length--, d.strip();
|
|
6700
6700
|
}
|
|
6701
6701
|
var R = function(n, d, g) {
|
|
6702
|
-
var C = n.words, F = d.words, N = g.words, q = 0, D, h, E, j = C[0] | 0,
|
|
6703
|
-
g.negative = n.negative ^ d.negative, g.length = 19, D = Math.imul(
|
|
6702
|
+
var C = n.words, F = d.words, N = g.words, q = 0, D, h, E, j = C[0] | 0, Y = j & 8191, W = j >>> 13, re = C[1] | 0, ce = re & 8191, we = re >>> 13, Ae = C[2] | 0, Me = Ae & 8191, Fe = Ae >>> 13, Z0 = C[3] | 0, We = Z0 & 8191, Oe = Z0 >>> 13, _0 = C[4] | 0, Ge = _0 & 8191, Ye = _0 >>> 13, $0 = C[5] | 0, Qe = $0 & 8191, ze = $0 >>> 13, O0 = C[6] | 0, Ne = O0 & 8191, Se = O0 >>> 13, F0 = C[7] | 0, Je = F0 & 8191, f0 = F0 >>> 13, S0 = C[8] | 0, qe = S0 & 8191, u0 = S0 >>> 13, G0 = C[9] | 0, l0 = G0 & 8191, He = G0 >>> 13, z0 = F[0] | 0, a0 = z0 & 8191, r0 = z0 >>> 13, N0 = F[1] | 0, i0 = N0 & 8191, s0 = N0 >>> 13, W0 = F[2] | 0, e0 = W0 & 8191, n0 = W0 >>> 13, q0 = F[3] | 0, o0 = q0 & 8191, x0 = q0 >>> 13, D0 = F[4] | 0, t0 = D0 & 8191, Ve = D0 >>> 13, tt = F[5] | 0, c0 = tt & 8191, d0 = tt >>> 13, yt = F[6] | 0, Ie = yt & 8191, Re = yt >>> 13, l = F[7] | 0, _ = l & 8191, m = l >>> 13, s = F[8] | 0, M = s & 8191, p = s >>> 13, I = F[9] | 0, L = I & 8191, V = I >>> 13;
|
|
6703
|
+
g.negative = n.negative ^ d.negative, g.length = 19, D = Math.imul(Y, a0), h = Math.imul(Y, r0), h = h + Math.imul(W, a0) | 0, E = Math.imul(W, r0);
|
|
6704
6704
|
var ne = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6705
|
-
q = (E + (h >>> 13) | 0) + (ne >>> 26) | 0, ne &= 67108863, D = Math.imul(ce, a0), h = Math.imul(ce, r0), h = h + Math.imul(we, a0) | 0, E = Math.imul(we, r0), D = D + Math.imul(
|
|
6705
|
+
q = (E + (h >>> 13) | 0) + (ne >>> 26) | 0, ne &= 67108863, D = Math.imul(ce, a0), h = Math.imul(ce, r0), h = h + Math.imul(we, a0) | 0, E = Math.imul(we, r0), D = D + Math.imul(Y, i0) | 0, h = h + Math.imul(Y, s0) | 0, h = h + Math.imul(W, i0) | 0, E = E + Math.imul(W, s0) | 0;
|
|
6706
6706
|
var fe = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6707
|
-
q = (E + (h >>> 13) | 0) + (fe >>> 26) | 0, fe &= 67108863, D = Math.imul(Me, a0), h = Math.imul(Me, r0), h = h + Math.imul(Fe, a0) | 0, E = Math.imul(Fe, r0), D = D + Math.imul(ce, i0) | 0, h = h + Math.imul(ce, s0) | 0, h = h + Math.imul(we, i0) | 0, E = E + Math.imul(we, s0) | 0, D = D + Math.imul(
|
|
6707
|
+
q = (E + (h >>> 13) | 0) + (fe >>> 26) | 0, fe &= 67108863, D = Math.imul(Me, a0), h = Math.imul(Me, r0), h = h + Math.imul(Fe, a0) | 0, E = Math.imul(Fe, r0), D = D + Math.imul(ce, i0) | 0, h = h + Math.imul(ce, s0) | 0, h = h + Math.imul(we, i0) | 0, E = E + Math.imul(we, s0) | 0, D = D + Math.imul(Y, e0) | 0, h = h + Math.imul(Y, n0) | 0, h = h + Math.imul(W, e0) | 0, E = E + Math.imul(W, n0) | 0;
|
|
6708
6708
|
var he = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6709
|
-
q = (E + (h >>> 13) | 0) + (he >>> 26) | 0, he &= 67108863, D = Math.imul(We, a0), h = Math.imul(We, r0), h = h + Math.imul(Oe, a0) | 0, E = Math.imul(Oe, r0), D = D + Math.imul(Me, i0) | 0, h = h + Math.imul(Me, s0) | 0, h = h + Math.imul(Fe, i0) | 0, E = E + Math.imul(Fe, s0) | 0, D = D + Math.imul(ce, e0) | 0, h = h + Math.imul(ce, n0) | 0, h = h + Math.imul(we, e0) | 0, E = E + Math.imul(we, n0) | 0, D = D + Math.imul(
|
|
6709
|
+
q = (E + (h >>> 13) | 0) + (he >>> 26) | 0, he &= 67108863, D = Math.imul(We, a0), h = Math.imul(We, r0), h = h + Math.imul(Oe, a0) | 0, E = Math.imul(Oe, r0), D = D + Math.imul(Me, i0) | 0, h = h + Math.imul(Me, s0) | 0, h = h + Math.imul(Fe, i0) | 0, E = E + Math.imul(Fe, s0) | 0, D = D + Math.imul(ce, e0) | 0, h = h + Math.imul(ce, n0) | 0, h = h + Math.imul(we, e0) | 0, E = E + Math.imul(we, n0) | 0, D = D + Math.imul(Y, o0) | 0, h = h + Math.imul(Y, x0) | 0, h = h + Math.imul(W, o0) | 0, E = E + Math.imul(W, x0) | 0;
|
|
6710
6710
|
var te = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6711
|
-
q = (E + (h >>> 13) | 0) + (te >>> 26) | 0, te &= 67108863, D = Math.imul(Ge, a0), h = Math.imul(Ge, r0), h = h + Math.imul(
|
|
6711
|
+
q = (E + (h >>> 13) | 0) + (te >>> 26) | 0, te &= 67108863, D = Math.imul(Ge, a0), h = Math.imul(Ge, r0), h = h + Math.imul(Ye, a0) | 0, E = Math.imul(Ye, r0), D = D + Math.imul(We, i0) | 0, h = h + Math.imul(We, s0) | 0, h = h + Math.imul(Oe, i0) | 0, E = E + Math.imul(Oe, s0) | 0, D = D + Math.imul(Me, e0) | 0, h = h + Math.imul(Me, n0) | 0, h = h + Math.imul(Fe, e0) | 0, E = E + Math.imul(Fe, n0) | 0, D = D + Math.imul(ce, o0) | 0, h = h + Math.imul(ce, x0) | 0, h = h + Math.imul(we, o0) | 0, E = E + Math.imul(we, x0) | 0, D = D + Math.imul(Y, t0) | 0, h = h + Math.imul(Y, Ve) | 0, h = h + Math.imul(W, t0) | 0, E = E + Math.imul(W, Ve) | 0;
|
|
6712
6712
|
var xe = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6713
|
-
q = (E + (h >>> 13) | 0) + (xe >>> 26) | 0, xe &= 67108863, D = Math.imul(Qe, a0), h = Math.imul(Qe, r0), h = h + Math.imul(ze, a0) | 0, E = Math.imul(ze, r0), D = D + Math.imul(Ge, i0) | 0, h = h + Math.imul(Ge, s0) | 0, h = h + Math.imul(
|
|
6713
|
+
q = (E + (h >>> 13) | 0) + (xe >>> 26) | 0, xe &= 67108863, D = Math.imul(Qe, a0), h = Math.imul(Qe, r0), h = h + Math.imul(ze, a0) | 0, E = Math.imul(ze, r0), D = D + Math.imul(Ge, i0) | 0, h = h + Math.imul(Ge, s0) | 0, h = h + Math.imul(Ye, i0) | 0, E = E + Math.imul(Ye, s0) | 0, D = D + Math.imul(We, e0) | 0, h = h + Math.imul(We, n0) | 0, h = h + Math.imul(Oe, e0) | 0, E = E + Math.imul(Oe, n0) | 0, D = D + Math.imul(Me, o0) | 0, h = h + Math.imul(Me, x0) | 0, h = h + Math.imul(Fe, o0) | 0, E = E + Math.imul(Fe, x0) | 0, D = D + Math.imul(ce, t0) | 0, h = h + Math.imul(ce, Ve) | 0, h = h + Math.imul(we, t0) | 0, E = E + Math.imul(we, Ve) | 0, D = D + Math.imul(Y, c0) | 0, h = h + Math.imul(Y, d0) | 0, h = h + Math.imul(W, c0) | 0, E = E + Math.imul(W, d0) | 0;
|
|
6714
6714
|
var ue = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6715
|
-
q = (E + (h >>> 13) | 0) + (ue >>> 26) | 0, ue &= 67108863, D = Math.imul(Ne, a0), h = Math.imul(Ne, r0), h = h + Math.imul(Se, a0) | 0, E = Math.imul(Se, r0), D = D + Math.imul(Qe, i0) | 0, h = h + Math.imul(Qe, s0) | 0, h = h + Math.imul(ze, i0) | 0, E = E + Math.imul(ze, s0) | 0, D = D + Math.imul(Ge, e0) | 0, h = h + Math.imul(Ge, n0) | 0, h = h + Math.imul(
|
|
6715
|
+
q = (E + (h >>> 13) | 0) + (ue >>> 26) | 0, ue &= 67108863, D = Math.imul(Ne, a0), h = Math.imul(Ne, r0), h = h + Math.imul(Se, a0) | 0, E = Math.imul(Se, r0), D = D + Math.imul(Qe, i0) | 0, h = h + Math.imul(Qe, s0) | 0, h = h + Math.imul(ze, i0) | 0, E = E + Math.imul(ze, s0) | 0, D = D + Math.imul(Ge, e0) | 0, h = h + Math.imul(Ge, n0) | 0, h = h + Math.imul(Ye, e0) | 0, E = E + Math.imul(Ye, n0) | 0, D = D + Math.imul(We, o0) | 0, h = h + Math.imul(We, x0) | 0, h = h + Math.imul(Oe, o0) | 0, E = E + Math.imul(Oe, x0) | 0, D = D + Math.imul(Me, t0) | 0, h = h + Math.imul(Me, Ve) | 0, h = h + Math.imul(Fe, t0) | 0, E = E + Math.imul(Fe, Ve) | 0, D = D + Math.imul(ce, c0) | 0, h = h + Math.imul(ce, d0) | 0, h = h + Math.imul(we, c0) | 0, E = E + Math.imul(we, d0) | 0, D = D + Math.imul(Y, Ie) | 0, h = h + Math.imul(Y, Re) | 0, h = h + Math.imul(W, Ie) | 0, E = E + Math.imul(W, Re) | 0;
|
|
6716
6716
|
var ve = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6717
|
-
q = (E + (h >>> 13) | 0) + (ve >>> 26) | 0, ve &= 67108863, D = Math.imul(Je, a0), h = Math.imul(Je, r0), h = h + Math.imul(f0, a0) | 0, E = Math.imul(f0, r0), D = D + Math.imul(Ne, i0) | 0, h = h + Math.imul(Ne, s0) | 0, h = h + Math.imul(Se, i0) | 0, E = E + Math.imul(Se, s0) | 0, D = D + Math.imul(Qe, e0) | 0, h = h + Math.imul(Qe, n0) | 0, h = h + Math.imul(ze, e0) | 0, E = E + Math.imul(ze, n0) | 0, D = D + Math.imul(Ge, o0) | 0, h = h + Math.imul(Ge, x0) | 0, h = h + Math.imul(
|
|
6717
|
+
q = (E + (h >>> 13) | 0) + (ve >>> 26) | 0, ve &= 67108863, D = Math.imul(Je, a0), h = Math.imul(Je, r0), h = h + Math.imul(f0, a0) | 0, E = Math.imul(f0, r0), D = D + Math.imul(Ne, i0) | 0, h = h + Math.imul(Ne, s0) | 0, h = h + Math.imul(Se, i0) | 0, E = E + Math.imul(Se, s0) | 0, D = D + Math.imul(Qe, e0) | 0, h = h + Math.imul(Qe, n0) | 0, h = h + Math.imul(ze, e0) | 0, E = E + Math.imul(ze, n0) | 0, D = D + Math.imul(Ge, o0) | 0, h = h + Math.imul(Ge, x0) | 0, h = h + Math.imul(Ye, o0) | 0, E = E + Math.imul(Ye, x0) | 0, D = D + Math.imul(We, t0) | 0, h = h + Math.imul(We, Ve) | 0, h = h + Math.imul(Oe, t0) | 0, E = E + Math.imul(Oe, Ve) | 0, D = D + Math.imul(Me, c0) | 0, h = h + Math.imul(Me, d0) | 0, h = h + Math.imul(Fe, c0) | 0, E = E + Math.imul(Fe, d0) | 0, D = D + Math.imul(ce, Ie) | 0, h = h + Math.imul(ce, Re) | 0, h = h + Math.imul(we, Ie) | 0, E = E + Math.imul(we, Re) | 0, D = D + Math.imul(Y, _) | 0, h = h + Math.imul(Y, m) | 0, h = h + Math.imul(W, _) | 0, E = E + Math.imul(W, m) | 0;
|
|
6718
6718
|
var ge = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6719
|
-
q = (E + (h >>> 13) | 0) + (ge >>> 26) | 0, ge &= 67108863, D = Math.imul(qe, a0), h = Math.imul(qe, r0), h = h + Math.imul(u0, a0) | 0, E = Math.imul(u0, r0), D = D + Math.imul(Je, i0) | 0, h = h + Math.imul(Je, s0) | 0, h = h + Math.imul(f0, i0) | 0, E = E + Math.imul(f0, s0) | 0, D = D + Math.imul(Ne, e0) | 0, h = h + Math.imul(Ne, n0) | 0, h = h + Math.imul(Se, e0) | 0, E = E + Math.imul(Se, n0) | 0, D = D + Math.imul(Qe, o0) | 0, h = h + Math.imul(Qe, x0) | 0, h = h + Math.imul(ze, o0) | 0, E = E + Math.imul(ze, x0) | 0, D = D + Math.imul(Ge, t0) | 0, h = h + Math.imul(Ge, Ve) | 0, h = h + Math.imul(
|
|
6719
|
+
q = (E + (h >>> 13) | 0) + (ge >>> 26) | 0, ge &= 67108863, D = Math.imul(qe, a0), h = Math.imul(qe, r0), h = h + Math.imul(u0, a0) | 0, E = Math.imul(u0, r0), D = D + Math.imul(Je, i0) | 0, h = h + Math.imul(Je, s0) | 0, h = h + Math.imul(f0, i0) | 0, E = E + Math.imul(f0, s0) | 0, D = D + Math.imul(Ne, e0) | 0, h = h + Math.imul(Ne, n0) | 0, h = h + Math.imul(Se, e0) | 0, E = E + Math.imul(Se, n0) | 0, D = D + Math.imul(Qe, o0) | 0, h = h + Math.imul(Qe, x0) | 0, h = h + Math.imul(ze, o0) | 0, E = E + Math.imul(ze, x0) | 0, D = D + Math.imul(Ge, t0) | 0, h = h + Math.imul(Ge, Ve) | 0, h = h + Math.imul(Ye, t0) | 0, E = E + Math.imul(Ye, Ve) | 0, D = D + Math.imul(We, c0) | 0, h = h + Math.imul(We, d0) | 0, h = h + Math.imul(Oe, c0) | 0, E = E + Math.imul(Oe, d0) | 0, D = D + Math.imul(Me, Ie) | 0, h = h + Math.imul(Me, Re) | 0, h = h + Math.imul(Fe, Ie) | 0, E = E + Math.imul(Fe, Re) | 0, D = D + Math.imul(ce, _) | 0, h = h + Math.imul(ce, m) | 0, h = h + Math.imul(we, _) | 0, E = E + Math.imul(we, m) | 0, D = D + Math.imul(Y, M) | 0, h = h + Math.imul(Y, p) | 0, h = h + Math.imul(W, M) | 0, E = E + Math.imul(W, p) | 0;
|
|
6720
6720
|
var me = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6721
|
-
q = (E + (h >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, D = Math.imul(l0, a0), h = Math.imul(l0, r0), h = h + Math.imul(He, a0) | 0, E = Math.imul(He, r0), D = D + Math.imul(qe, i0) | 0, h = h + Math.imul(qe, s0) | 0, h = h + Math.imul(u0, i0) | 0, E = E + Math.imul(u0, s0) | 0, D = D + Math.imul(Je, e0) | 0, h = h + Math.imul(Je, n0) | 0, h = h + Math.imul(f0, e0) | 0, E = E + Math.imul(f0, n0) | 0, D = D + Math.imul(Ne, o0) | 0, h = h + Math.imul(Ne, x0) | 0, h = h + Math.imul(Se, o0) | 0, E = E + Math.imul(Se, x0) | 0, D = D + Math.imul(Qe, t0) | 0, h = h + Math.imul(Qe, Ve) | 0, h = h + Math.imul(ze, t0) | 0, E = E + Math.imul(ze, Ve) | 0, D = D + Math.imul(Ge, c0) | 0, h = h + Math.imul(Ge, d0) | 0, h = h + Math.imul(
|
|
6721
|
+
q = (E + (h >>> 13) | 0) + (me >>> 26) | 0, me &= 67108863, D = Math.imul(l0, a0), h = Math.imul(l0, r0), h = h + Math.imul(He, a0) | 0, E = Math.imul(He, r0), D = D + Math.imul(qe, i0) | 0, h = h + Math.imul(qe, s0) | 0, h = h + Math.imul(u0, i0) | 0, E = E + Math.imul(u0, s0) | 0, D = D + Math.imul(Je, e0) | 0, h = h + Math.imul(Je, n0) | 0, h = h + Math.imul(f0, e0) | 0, E = E + Math.imul(f0, n0) | 0, D = D + Math.imul(Ne, o0) | 0, h = h + Math.imul(Ne, x0) | 0, h = h + Math.imul(Se, o0) | 0, E = E + Math.imul(Se, x0) | 0, D = D + Math.imul(Qe, t0) | 0, h = h + Math.imul(Qe, Ve) | 0, h = h + Math.imul(ze, t0) | 0, E = E + Math.imul(ze, Ve) | 0, D = D + Math.imul(Ge, c0) | 0, h = h + Math.imul(Ge, d0) | 0, h = h + Math.imul(Ye, c0) | 0, E = E + Math.imul(Ye, d0) | 0, D = D + Math.imul(We, Ie) | 0, h = h + Math.imul(We, Re) | 0, h = h + Math.imul(Oe, Ie) | 0, E = E + Math.imul(Oe, Re) | 0, D = D + Math.imul(Me, _) | 0, h = h + Math.imul(Me, m) | 0, h = h + Math.imul(Fe, _) | 0, E = E + Math.imul(Fe, m) | 0, D = D + Math.imul(ce, M) | 0, h = h + Math.imul(ce, p) | 0, h = h + Math.imul(we, M) | 0, E = E + Math.imul(we, p) | 0, D = D + Math.imul(Y, L) | 0, h = h + Math.imul(Y, V) | 0, h = h + Math.imul(W, L) | 0, E = E + Math.imul(W, V) | 0;
|
|
6722
6722
|
var _e = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6723
|
-
q = (E + (h >>> 13) | 0) + (_e >>> 26) | 0, _e &= 67108863, D = Math.imul(l0, i0), h = Math.imul(l0, s0), h = h + Math.imul(He, i0) | 0, E = Math.imul(He, s0), D = D + Math.imul(qe, e0) | 0, h = h + Math.imul(qe, n0) | 0, h = h + Math.imul(u0, e0) | 0, E = E + Math.imul(u0, n0) | 0, D = D + Math.imul(Je, o0) | 0, h = h + Math.imul(Je, x0) | 0, h = h + Math.imul(f0, o0) | 0, E = E + Math.imul(f0, x0) | 0, D = D + Math.imul(Ne, t0) | 0, h = h + Math.imul(Ne, Ve) | 0, h = h + Math.imul(Se, t0) | 0, E = E + Math.imul(Se, Ve) | 0, D = D + Math.imul(Qe, c0) | 0, h = h + Math.imul(Qe, d0) | 0, h = h + Math.imul(ze, c0) | 0, E = E + Math.imul(ze, d0) | 0, D = D + Math.imul(Ge, Ie) | 0, h = h + Math.imul(Ge, Re) | 0, h = h + Math.imul(
|
|
6723
|
+
q = (E + (h >>> 13) | 0) + (_e >>> 26) | 0, _e &= 67108863, D = Math.imul(l0, i0), h = Math.imul(l0, s0), h = h + Math.imul(He, i0) | 0, E = Math.imul(He, s0), D = D + Math.imul(qe, e0) | 0, h = h + Math.imul(qe, n0) | 0, h = h + Math.imul(u0, e0) | 0, E = E + Math.imul(u0, n0) | 0, D = D + Math.imul(Je, o0) | 0, h = h + Math.imul(Je, x0) | 0, h = h + Math.imul(f0, o0) | 0, E = E + Math.imul(f0, x0) | 0, D = D + Math.imul(Ne, t0) | 0, h = h + Math.imul(Ne, Ve) | 0, h = h + Math.imul(Se, t0) | 0, E = E + Math.imul(Se, Ve) | 0, D = D + Math.imul(Qe, c0) | 0, h = h + Math.imul(Qe, d0) | 0, h = h + Math.imul(ze, c0) | 0, E = E + Math.imul(ze, d0) | 0, D = D + Math.imul(Ge, Ie) | 0, h = h + Math.imul(Ge, Re) | 0, h = h + Math.imul(Ye, Ie) | 0, E = E + Math.imul(Ye, Re) | 0, D = D + Math.imul(We, _) | 0, h = h + Math.imul(We, m) | 0, h = h + Math.imul(Oe, _) | 0, E = E + Math.imul(Oe, m) | 0, D = D + Math.imul(Me, M) | 0, h = h + Math.imul(Me, p) | 0, h = h + Math.imul(Fe, M) | 0, E = E + Math.imul(Fe, p) | 0, D = D + Math.imul(ce, L) | 0, h = h + Math.imul(ce, V) | 0, h = h + Math.imul(we, L) | 0, E = E + Math.imul(we, V) | 0;
|
|
6724
6724
|
var pe = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6725
|
-
q = (E + (h >>> 13) | 0) + (pe >>> 26) | 0, pe &= 67108863, D = Math.imul(l0, e0), h = Math.imul(l0, n0), h = h + Math.imul(He, e0) | 0, E = Math.imul(He, n0), D = D + Math.imul(qe, o0) | 0, h = h + Math.imul(qe, x0) | 0, h = h + Math.imul(u0, o0) | 0, E = E + Math.imul(u0, x0) | 0, D = D + Math.imul(Je, t0) | 0, h = h + Math.imul(Je, Ve) | 0, h = h + Math.imul(f0, t0) | 0, E = E + Math.imul(f0, Ve) | 0, D = D + Math.imul(Ne, c0) | 0, h = h + Math.imul(Ne, d0) | 0, h = h + Math.imul(Se, c0) | 0, E = E + Math.imul(Se, d0) | 0, D = D + Math.imul(Qe, Ie) | 0, h = h + Math.imul(Qe, Re) | 0, h = h + Math.imul(ze, Ie) | 0, E = E + Math.imul(ze, Re) | 0, D = D + Math.imul(Ge, _) | 0, h = h + Math.imul(Ge, m) | 0, h = h + Math.imul(
|
|
6725
|
+
q = (E + (h >>> 13) | 0) + (pe >>> 26) | 0, pe &= 67108863, D = Math.imul(l0, e0), h = Math.imul(l0, n0), h = h + Math.imul(He, e0) | 0, E = Math.imul(He, n0), D = D + Math.imul(qe, o0) | 0, h = h + Math.imul(qe, x0) | 0, h = h + Math.imul(u0, o0) | 0, E = E + Math.imul(u0, x0) | 0, D = D + Math.imul(Je, t0) | 0, h = h + Math.imul(Je, Ve) | 0, h = h + Math.imul(f0, t0) | 0, E = E + Math.imul(f0, Ve) | 0, D = D + Math.imul(Ne, c0) | 0, h = h + Math.imul(Ne, d0) | 0, h = h + Math.imul(Se, c0) | 0, E = E + Math.imul(Se, d0) | 0, D = D + Math.imul(Qe, Ie) | 0, h = h + Math.imul(Qe, Re) | 0, h = h + Math.imul(ze, Ie) | 0, E = E + Math.imul(ze, Re) | 0, D = D + Math.imul(Ge, _) | 0, h = h + Math.imul(Ge, m) | 0, h = h + Math.imul(Ye, _) | 0, E = E + Math.imul(Ye, m) | 0, D = D + Math.imul(We, M) | 0, h = h + Math.imul(We, p) | 0, h = h + Math.imul(Oe, M) | 0, E = E + Math.imul(Oe, p) | 0, D = D + Math.imul(Me, L) | 0, h = h + Math.imul(Me, V) | 0, h = h + Math.imul(Fe, L) | 0, E = E + Math.imul(Fe, V) | 0;
|
|
6726
6726
|
var de = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6727
|
-
q = (E + (h >>> 13) | 0) + (de >>> 26) | 0, de &= 67108863, D = Math.imul(l0, o0), h = Math.imul(l0, x0), h = h + Math.imul(He, o0) | 0, E = Math.imul(He, x0), D = D + Math.imul(qe, t0) | 0, h = h + Math.imul(qe, Ve) | 0, h = h + Math.imul(u0, t0) | 0, E = E + Math.imul(u0, Ve) | 0, D = D + Math.imul(Je, c0) | 0, h = h + Math.imul(Je, d0) | 0, h = h + Math.imul(f0, c0) | 0, E = E + Math.imul(f0, d0) | 0, D = D + Math.imul(Ne, Ie) | 0, h = h + Math.imul(Ne, Re) | 0, h = h + Math.imul(Se, Ie) | 0, E = E + Math.imul(Se, Re) | 0, D = D + Math.imul(Qe, _) | 0, h = h + Math.imul(Qe, m) | 0, h = h + Math.imul(ze, _) | 0, E = E + Math.imul(ze, m) | 0, D = D + Math.imul(Ge, M) | 0, h = h + Math.imul(Ge, p) | 0, h = h + Math.imul(
|
|
6727
|
+
q = (E + (h >>> 13) | 0) + (de >>> 26) | 0, de &= 67108863, D = Math.imul(l0, o0), h = Math.imul(l0, x0), h = h + Math.imul(He, o0) | 0, E = Math.imul(He, x0), D = D + Math.imul(qe, t0) | 0, h = h + Math.imul(qe, Ve) | 0, h = h + Math.imul(u0, t0) | 0, E = E + Math.imul(u0, Ve) | 0, D = D + Math.imul(Je, c0) | 0, h = h + Math.imul(Je, d0) | 0, h = h + Math.imul(f0, c0) | 0, E = E + Math.imul(f0, d0) | 0, D = D + Math.imul(Ne, Ie) | 0, h = h + Math.imul(Ne, Re) | 0, h = h + Math.imul(Se, Ie) | 0, E = E + Math.imul(Se, Re) | 0, D = D + Math.imul(Qe, _) | 0, h = h + Math.imul(Qe, m) | 0, h = h + Math.imul(ze, _) | 0, E = E + Math.imul(ze, m) | 0, D = D + Math.imul(Ge, M) | 0, h = h + Math.imul(Ge, p) | 0, h = h + Math.imul(Ye, M) | 0, E = E + Math.imul(Ye, p) | 0, D = D + Math.imul(We, L) | 0, h = h + Math.imul(We, V) | 0, h = h + Math.imul(Oe, L) | 0, E = E + Math.imul(Oe, V) | 0;
|
|
6728
6728
|
var ye = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6729
|
-
q = (E + (h >>> 13) | 0) + (ye >>> 26) | 0, ye &= 67108863, D = Math.imul(l0, t0), h = Math.imul(l0, Ve), h = h + Math.imul(He, t0) | 0, E = Math.imul(He, Ve), D = D + Math.imul(qe, c0) | 0, h = h + Math.imul(qe, d0) | 0, h = h + Math.imul(u0, c0) | 0, E = E + Math.imul(u0, d0) | 0, D = D + Math.imul(Je, Ie) | 0, h = h + Math.imul(Je, Re) | 0, h = h + Math.imul(f0, Ie) | 0, E = E + Math.imul(f0, Re) | 0, D = D + Math.imul(Ne, _) | 0, h = h + Math.imul(Ne, m) | 0, h = h + Math.imul(Se, _) | 0, E = E + Math.imul(Se, m) | 0, D = D + Math.imul(Qe, M) | 0, h = h + Math.imul(Qe, p) | 0, h = h + Math.imul(ze, M) | 0, E = E + Math.imul(ze, p) | 0, D = D + Math.imul(Ge, L) | 0, h = h + Math.imul(Ge, V) | 0, h = h + Math.imul(
|
|
6729
|
+
q = (E + (h >>> 13) | 0) + (ye >>> 26) | 0, ye &= 67108863, D = Math.imul(l0, t0), h = Math.imul(l0, Ve), h = h + Math.imul(He, t0) | 0, E = Math.imul(He, Ve), D = D + Math.imul(qe, c0) | 0, h = h + Math.imul(qe, d0) | 0, h = h + Math.imul(u0, c0) | 0, E = E + Math.imul(u0, d0) | 0, D = D + Math.imul(Je, Ie) | 0, h = h + Math.imul(Je, Re) | 0, h = h + Math.imul(f0, Ie) | 0, E = E + Math.imul(f0, Re) | 0, D = D + Math.imul(Ne, _) | 0, h = h + Math.imul(Ne, m) | 0, h = h + Math.imul(Se, _) | 0, E = E + Math.imul(Se, m) | 0, D = D + Math.imul(Qe, M) | 0, h = h + Math.imul(Qe, p) | 0, h = h + Math.imul(ze, M) | 0, E = E + Math.imul(ze, p) | 0, D = D + Math.imul(Ge, L) | 0, h = h + Math.imul(Ge, V) | 0, h = h + Math.imul(Ye, L) | 0, E = E + Math.imul(Ye, V) | 0;
|
|
6730
6730
|
var oe = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
6731
6731
|
q = (E + (h >>> 13) | 0) + (oe >>> 26) | 0, oe &= 67108863, D = Math.imul(l0, c0), h = Math.imul(l0, d0), h = h + Math.imul(He, c0) | 0, E = Math.imul(He, d0), D = D + Math.imul(qe, Ie) | 0, h = h + Math.imul(qe, Re) | 0, h = h + Math.imul(u0, Ie) | 0, E = E + Math.imul(u0, Re) | 0, D = D + Math.imul(Je, _) | 0, h = h + Math.imul(Je, m) | 0, h = h + Math.imul(f0, _) | 0, E = E + Math.imul(f0, m) | 0, D = D + Math.imul(Ne, M) | 0, h = h + Math.imul(Ne, p) | 0, h = h + Math.imul(Se, M) | 0, E = E + Math.imul(Se, p) | 0, D = D + Math.imul(Qe, L) | 0, h = h + Math.imul(Qe, V) | 0, h = h + Math.imul(ze, L) | 0, E = E + Math.imul(ze, V) | 0;
|
|
6732
6732
|
var le = (q + D | 0) + ((h & 8191) << 13) | 0;
|
|
@@ -6747,7 +6747,7 @@ Uf.exports;
|
|
|
6747
6747
|
var N = C;
|
|
6748
6748
|
C = 0;
|
|
6749
6749
|
for (var q = g & 67108863, D = Math.min(F, n.length - 1), h = Math.max(0, F - A.length + 1); h <= D; h++) {
|
|
6750
|
-
var E = F - h, j = A.words[E] | 0,
|
|
6750
|
+
var E = F - h, j = A.words[E] | 0, Y = n.words[h] | 0, W = j * Y, re = W & 67108863;
|
|
6751
6751
|
N = N + (W / 67108864 | 0) | 0, re = re + q | 0, q = re & 67108863, N = N + (re >>> 26) | 0, C += N >>> 26, N &= 67108863;
|
|
6752
6752
|
}
|
|
6753
6753
|
d.words[F] = q, g = N, N = C;
|
|
@@ -6782,9 +6782,9 @@ Uf.exports;
|
|
|
6782
6782
|
this.permute(N, n, d, g, C, F);
|
|
6783
6783
|
for (var q = 1; q < F; q <<= 1)
|
|
6784
6784
|
for (var D = q << 1, h = Math.cos(2 * Math.PI / D), E = Math.sin(2 * Math.PI / D), j = 0; j < F; j += D)
|
|
6785
|
-
for (var
|
|
6786
|
-
var ce = g[j + re], we = C[j + re], Ae = g[j + re + q], Me = C[j + re + q], Fe =
|
|
6787
|
-
Me =
|
|
6785
|
+
for (var Y = h, W = E, re = 0; re < q; re++) {
|
|
6786
|
+
var ce = g[j + re], we = C[j + re], Ae = g[j + re + q], Me = C[j + re + q], Fe = Y * Ae - W * Me;
|
|
6787
|
+
Me = Y * Me + W * Ae, Ae = Fe, g[j + re] = ce + Ae, C[j + re] = we + Me, g[j + re + q] = ce - Ae, C[j + re + q] = we - Me, re !== D && (Fe = h * Y - E * W, W = h * W + E * Y, Y = Fe);
|
|
6788
6788
|
}
|
|
6789
6789
|
}, S.prototype.guessLen13b = function(n, d) {
|
|
6790
6790
|
var g = Math.max(d, n) | 1, C = g & 1, F = 0;
|
|
@@ -6814,11 +6814,11 @@ Uf.exports;
|
|
|
6814
6814
|
d[g] = 0;
|
|
6815
6815
|
return d;
|
|
6816
6816
|
}, S.prototype.mulp = function(n, d, g) {
|
|
6817
|
-
var C = 2 * this.guessLen13b(n.length, d.length), F = this.makeRBT(C), N = this.stub(C), q = new Array(C), D = new Array(C), h = new Array(C), E = new Array(C), j = new Array(C),
|
|
6818
|
-
W.length = C, this.convert13b(n.words, n.length, q, C), this.convert13b(d.words, d.length, E, C), this.transform(q, N, D, h, C, F), this.transform(E, N, j,
|
|
6817
|
+
var C = 2 * this.guessLen13b(n.length, d.length), F = this.makeRBT(C), N = this.stub(C), q = new Array(C), D = new Array(C), h = new Array(C), E = new Array(C), j = new Array(C), Y = new Array(C), W = g.words;
|
|
6818
|
+
W.length = C, this.convert13b(n.words, n.length, q, C), this.convert13b(d.words, d.length, E, C), this.transform(q, N, D, h, C, F), this.transform(E, N, j, Y, C, F);
|
|
6819
6819
|
for (var re = 0; re < C; re++) {
|
|
6820
|
-
var ce = D[re] * j[re] - h[re] *
|
|
6821
|
-
h[re] = D[re] *
|
|
6820
|
+
var ce = D[re] * j[re] - h[re] * Y[re];
|
|
6821
|
+
h[re] = D[re] * Y[re] + h[re] * j[re], D[re] = ce;
|
|
6822
6822
|
}
|
|
6823
6823
|
return this.conjugate(D, h, C), this.transform(D, h, W, N, C, F), this.conjugate(W, N, C), this.normalize13b(W, C), g.negative = n.negative ^ d.negative, g.length = n.length + d.length, g.strip();
|
|
6824
6824
|
}, i.prototype.mul = function(n) {
|
|
@@ -6977,11 +6977,11 @@ Uf.exports;
|
|
|
6977
6977
|
}
|
|
6978
6978
|
var j = C.clone()._ishlnsubmul(F, 1, D);
|
|
6979
6979
|
j.negative === 0 && (C = j, h && (h.words[D] = 1));
|
|
6980
|
-
for (var
|
|
6981
|
-
var W = (C.words[F.length +
|
|
6982
|
-
for (W = Math.min(W / N | 0, 67108863), C._ishlnsubmul(F, W,
|
|
6983
|
-
W--, C.negative = 0, C._ishlnsubmul(F, 1,
|
|
6984
|
-
h && (h.words[
|
|
6980
|
+
for (var Y = D - 1; Y >= 0; Y--) {
|
|
6981
|
+
var W = (C.words[F.length + Y] | 0) * 67108864 + (C.words[F.length + Y - 1] | 0);
|
|
6982
|
+
for (W = Math.min(W / N | 0, 67108863), C._ishlnsubmul(F, W, Y); C.negative !== 0; )
|
|
6983
|
+
W--, C.negative = 0, C._ishlnsubmul(F, 1, Y), C.isZero() || (C.negative ^= 1);
|
|
6984
|
+
h && (h.words[Y] = W);
|
|
6985
6985
|
}
|
|
6986
6986
|
return h && h.strip(), C.strip(), d !== "div" && g !== 0 && C.iushrn(g), {
|
|
6987
6987
|
div: h || null,
|
|
@@ -7049,7 +7049,7 @@ Uf.exports;
|
|
|
7049
7049
|
for (var C = new i(1), F = new i(0), N = new i(0), q = new i(1), D = 0; d.isEven() && g.isEven(); )
|
|
7050
7050
|
d.iushrn(1), g.iushrn(1), ++D;
|
|
7051
7051
|
for (var h = g.clone(), E = d.clone(); !d.isZero(); ) {
|
|
7052
|
-
for (var j = 0,
|
|
7052
|
+
for (var j = 0, Y = 1; !(d.words[0] & Y) && j < 26; ++j, Y <<= 1)
|
|
7053
7053
|
;
|
|
7054
7054
|
if (j > 0)
|
|
7055
7055
|
for (d.iushrn(j); j-- > 0; )
|
|
@@ -7281,14 +7281,14 @@ Uf.exports;
|
|
|
7281
7281
|
);
|
|
7282
7282
|
}
|
|
7283
7283
|
a($, T);
|
|
7284
|
-
function
|
|
7284
|
+
function K() {
|
|
7285
7285
|
T.call(
|
|
7286
7286
|
this,
|
|
7287
7287
|
"p192",
|
|
7288
7288
|
"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff"
|
|
7289
7289
|
);
|
|
7290
7290
|
}
|
|
7291
|
-
a(
|
|
7291
|
+
a(K, T);
|
|
7292
7292
|
function X() {
|
|
7293
7293
|
T.call(
|
|
7294
7294
|
this,
|
|
@@ -7311,7 +7311,7 @@ Uf.exports;
|
|
|
7311
7311
|
else if (n === "p224")
|
|
7312
7312
|
d = new $();
|
|
7313
7313
|
else if (n === "p192")
|
|
7314
|
-
d = new
|
|
7314
|
+
d = new K();
|
|
7315
7315
|
else if (n === "p25519")
|
|
7316
7316
|
d = new X();
|
|
7317
7317
|
else
|
|
@@ -7376,12 +7376,12 @@ Uf.exports;
|
|
|
7376
7376
|
var N = new i(1).toRed(this), q = N.redNeg(), D = this.m.subn(1).iushrn(1), h = this.m.bitLength();
|
|
7377
7377
|
for (h = new i(2 * h * h).toRed(this); this.pow(h, D).cmp(q) !== 0; )
|
|
7378
7378
|
h.redIAdd(q);
|
|
7379
|
-
for (var E = this.pow(h, C), j = this.pow(n, C.addn(1).iushrn(1)),
|
|
7380
|
-
for (var re =
|
|
7379
|
+
for (var E = this.pow(h, C), j = this.pow(n, C.addn(1).iushrn(1)), Y = this.pow(n, C), W = F; Y.cmp(N) !== 0; ) {
|
|
7380
|
+
for (var re = Y, ce = 0; re.cmp(N) !== 0; ce++)
|
|
7381
7381
|
re = re.redSqr();
|
|
7382
7382
|
r(ce < W);
|
|
7383
7383
|
var we = this.pow(E, new i(1).iushln(W - ce - 1));
|
|
7384
|
-
j = j.redMul(we), E = we.redSqr(),
|
|
7384
|
+
j = j.redMul(we), E = we.redSqr(), Y = Y.redMul(E), W = ce;
|
|
7385
7385
|
}
|
|
7386
7386
|
return j;
|
|
7387
7387
|
}, Q.prototype.invm = function(n) {
|
|
@@ -7399,12 +7399,12 @@ Uf.exports;
|
|
|
7399
7399
|
var N = C[0], q = 0, D = 0, h = d.bitLength() % 26;
|
|
7400
7400
|
for (h === 0 && (h = 26), F = d.length - 1; F >= 0; F--) {
|
|
7401
7401
|
for (var E = d.words[F], j = h - 1; j >= 0; j--) {
|
|
7402
|
-
var
|
|
7403
|
-
if (N !== C[0] && (N = this.sqr(N)),
|
|
7402
|
+
var Y = E >> j & 1;
|
|
7403
|
+
if (N !== C[0] && (N = this.sqr(N)), Y === 0 && q === 0) {
|
|
7404
7404
|
D = 0;
|
|
7405
7405
|
continue;
|
|
7406
7406
|
}
|
|
7407
|
-
q <<= 1, q |=
|
|
7407
|
+
q <<= 1, q |= Y, D++, !(D !== g && (F !== 0 || j !== 0)) && (N = this.mul(N, C[q]), D = 0, q = 0);
|
|
7408
7408
|
}
|
|
7409
7409
|
h = 26;
|
|
7410
7410
|
}
|
|
@@ -7441,17 +7441,17 @@ Uf.exports;
|
|
|
7441
7441
|
return d._forceRed(this);
|
|
7442
7442
|
};
|
|
7443
7443
|
})(f, Pe);
|
|
7444
|
-
})(
|
|
7445
|
-
var pt =
|
|
7446
|
-
function
|
|
7444
|
+
})(Hf);
|
|
7445
|
+
var pt = Hf.exports, Pt = gn;
|
|
7446
|
+
function gn(f, e) {
|
|
7447
7447
|
if (!f)
|
|
7448
7448
|
throw new Error(e || "Assertion failed");
|
|
7449
7449
|
}
|
|
7450
|
-
|
|
7450
|
+
gn.equal = function(e, t, r) {
|
|
7451
7451
|
if (e != t)
|
|
7452
7452
|
throw new Error(r || "Assertion failed: " + e + " != " + t);
|
|
7453
7453
|
};
|
|
7454
|
-
var
|
|
7454
|
+
var Uf = {};
|
|
7455
7455
|
(function(f) {
|
|
7456
7456
|
var e = f;
|
|
7457
7457
|
function t(i, y) {
|
|
@@ -7489,9 +7489,9 @@ var $f = {};
|
|
|
7489
7489
|
e.toHex = a, e.encode = function(y, x) {
|
|
7490
7490
|
return x === "hex" ? a(y) : y;
|
|
7491
7491
|
};
|
|
7492
|
-
})(
|
|
7492
|
+
})(Uf);
|
|
7493
7493
|
(function(f) {
|
|
7494
|
-
var e = f, t = pt, r = Pt, a =
|
|
7494
|
+
var e = f, t = pt, r = Pt, a = Uf;
|
|
7495
7495
|
e.assert = r, e.toArray = a.toArray, e.zero2 = a.zero2, e.toHex = a.toHex, e.encode = a.encode;
|
|
7496
7496
|
function i(c, v, b) {
|
|
7497
7497
|
var B = new Array(Math.max(c.bitLength(), b) + 1), w;
|
|
@@ -7538,14 +7538,14 @@ var $f = {};
|
|
|
7538
7538
|
}
|
|
7539
7539
|
e.intFromLE = o;
|
|
7540
7540
|
})(Y0);
|
|
7541
|
-
var
|
|
7542
|
-
|
|
7541
|
+
var $f = { exports: {} }, bf;
|
|
7542
|
+
$f.exports = function(e) {
|
|
7543
7543
|
return bf || (bf = new mt(null)), bf.generate(e);
|
|
7544
7544
|
};
|
|
7545
7545
|
function mt(f) {
|
|
7546
7546
|
this.rand = f;
|
|
7547
7547
|
}
|
|
7548
|
-
|
|
7548
|
+
$f.exports.Rand = mt;
|
|
7549
7549
|
mt.prototype.generate = function(e) {
|
|
7550
7550
|
return this._rand(e);
|
|
7551
7551
|
};
|
|
@@ -7568,15 +7568,15 @@ if (typeof self == "object")
|
|
|
7568
7568
|
});
|
|
7569
7569
|
else
|
|
7570
7570
|
try {
|
|
7571
|
-
var
|
|
7572
|
-
if (typeof
|
|
7571
|
+
var Li = mr;
|
|
7572
|
+
if (typeof Li.randomBytes != "function")
|
|
7573
7573
|
throw new Error("Not supported");
|
|
7574
7574
|
mt.prototype._rand = function(e) {
|
|
7575
|
-
return
|
|
7575
|
+
return Li.randomBytes(e);
|
|
7576
7576
|
};
|
|
7577
7577
|
} catch {
|
|
7578
7578
|
}
|
|
7579
|
-
var
|
|
7579
|
+
var mn = $f.exports, Wf = {}, Bt = pt, fr = Y0, pr = fr.getNAF, ps = fr.getJSF, yr = fr.assert;
|
|
7580
7580
|
function Et(f, e) {
|
|
7581
7581
|
this.type = f, this.p = new Bt(e.p, 16), this.red = e.prime ? Bt.red(e.prime) : Bt.mont(this.p), this.zero = new Bt(0).toRed(this.red), this.one = new Bt(1).toRed(this.red), this.two = new Bt(2).toRed(this.red), this.n = e.n && new Bt(e.n, 16), this.g = e.g && this.pointFromJSON(e.g, e.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0;
|
|
7582
7582
|
var t = this.n && this.p.div(this.n);
|
|
@@ -7671,15 +7671,15 @@ Et.prototype._wnafMulAdd = function(e, t, r, a, i) {
|
|
|
7671
7671
|
}
|
|
7672
7672
|
var H = this.jpoint(null, null, null), $ = this._wnafT4;
|
|
7673
7673
|
for (c = o; c >= 0; c--) {
|
|
7674
|
-
for (var
|
|
7674
|
+
for (var K = 0; c >= 0; ) {
|
|
7675
7675
|
var X = !0;
|
|
7676
7676
|
for (v = 0; v < a; v++)
|
|
7677
7677
|
$[v] = u[v][c] | 0, $[v] !== 0 && (X = !1);
|
|
7678
7678
|
if (!X)
|
|
7679
7679
|
break;
|
|
7680
|
-
|
|
7680
|
+
K++, c--;
|
|
7681
7681
|
}
|
|
7682
|
-
if (c >= 0 &&
|
|
7682
|
+
if (c >= 0 && K++, H = H.dblp(K), c < 0)
|
|
7683
7683
|
break;
|
|
7684
7684
|
for (v = 0; v < a; v++) {
|
|
7685
7685
|
var Q = $[v];
|
|
@@ -7690,18 +7690,18 @@ Et.prototype._wnafMulAdd = function(e, t, r, a, i) {
|
|
|
7690
7690
|
x[c] = null;
|
|
7691
7691
|
return i ? H : H.toP();
|
|
7692
7692
|
};
|
|
7693
|
-
function
|
|
7693
|
+
function V0(f, e) {
|
|
7694
7694
|
this.curve = f, this.type = e, this.precomputed = null;
|
|
7695
7695
|
}
|
|
7696
|
-
Et.BasePoint =
|
|
7697
|
-
|
|
7696
|
+
Et.BasePoint = V0;
|
|
7697
|
+
V0.prototype.eq = function() {
|
|
7698
7698
|
throw new Error("Not implemented");
|
|
7699
7699
|
};
|
|
7700
|
-
|
|
7700
|
+
V0.prototype.validate = function() {
|
|
7701
7701
|
return this.curve.validate(this);
|
|
7702
7702
|
};
|
|
7703
7703
|
Et.prototype.decodePoint = function(e, t) {
|
|
7704
|
-
e =
|
|
7704
|
+
e = fr.toArray(e, t);
|
|
7705
7705
|
var r = this.p.byteLength();
|
|
7706
7706
|
if ((e[0] === 4 || e[0] === 6 || e[0] === 7) && e.length - 1 === 2 * r) {
|
|
7707
7707
|
e[0] === 6 ? yr(e[e.length - 1] % 2 === 0) : e[0] === 7 && yr(e[e.length - 1] % 2 === 1);
|
|
@@ -7714,17 +7714,17 @@ Et.prototype.decodePoint = function(e, t) {
|
|
|
7714
7714
|
return this.pointFromX(e.slice(1, 1 + r), e[0] === 3);
|
|
7715
7715
|
throw new Error("Unknown point format");
|
|
7716
7716
|
};
|
|
7717
|
-
|
|
7717
|
+
V0.prototype.encodeCompressed = function(e) {
|
|
7718
7718
|
return this.encode(e, !0);
|
|
7719
7719
|
};
|
|
7720
|
-
|
|
7720
|
+
V0.prototype._encode = function(e) {
|
|
7721
7721
|
var t = this.curve.p.byteLength(), r = this.getX().toArray("be", t);
|
|
7722
7722
|
return e ? [this.getY().isEven() ? 2 : 3].concat(r) : [4].concat(r, this.getY().toArray("be", t));
|
|
7723
7723
|
};
|
|
7724
|
-
|
|
7725
|
-
return
|
|
7724
|
+
V0.prototype.encode = function(e, t) {
|
|
7725
|
+
return fr.encode(this._encode(t), e);
|
|
7726
7726
|
};
|
|
7727
|
-
|
|
7727
|
+
V0.prototype.precompute = function(e) {
|
|
7728
7728
|
if (this.precomputed)
|
|
7729
7729
|
return this;
|
|
7730
7730
|
var t = {
|
|
@@ -7734,13 +7734,13 @@ X0.prototype.precompute = function(e) {
|
|
|
7734
7734
|
};
|
|
7735
7735
|
return t.naf = this._getNAFPoints(8), t.doubles = this._getDoubles(4, e), t.beta = this._getBeta(), this.precomputed = t, this;
|
|
7736
7736
|
};
|
|
7737
|
-
|
|
7737
|
+
V0.prototype._hasDoubles = function(e) {
|
|
7738
7738
|
if (!this.precomputed)
|
|
7739
7739
|
return !1;
|
|
7740
7740
|
var t = this.precomputed.doubles;
|
|
7741
7741
|
return t ? t.points.length >= Math.ceil((e.bitLength() + 1) / t.step) : !1;
|
|
7742
7742
|
};
|
|
7743
|
-
|
|
7743
|
+
V0.prototype._getDoubles = function(e, t) {
|
|
7744
7744
|
if (this.precomputed && this.precomputed.doubles)
|
|
7745
7745
|
return this.precomputed.doubles;
|
|
7746
7746
|
for (var r = [this], a = this, i = 0; i < t; i += e) {
|
|
@@ -7753,7 +7753,7 @@ X0.prototype._getDoubles = function(e, t) {
|
|
|
7753
7753
|
points: r
|
|
7754
7754
|
};
|
|
7755
7755
|
};
|
|
7756
|
-
|
|
7756
|
+
V0.prototype._getNAFPoints = function(e) {
|
|
7757
7757
|
if (this.precomputed && this.precomputed.naf)
|
|
7758
7758
|
return this.precomputed.naf;
|
|
7759
7759
|
for (var t = [this], r = (1 << e) - 1, a = r === 1 ? null : this.dbl(), i = 1; i < r; i++)
|
|
@@ -7763,10 +7763,10 @@ X0.prototype._getNAFPoints = function(e) {
|
|
|
7763
7763
|
points: t
|
|
7764
7764
|
};
|
|
7765
7765
|
};
|
|
7766
|
-
|
|
7766
|
+
V0.prototype._getBeta = function() {
|
|
7767
7767
|
return null;
|
|
7768
7768
|
};
|
|
7769
|
-
|
|
7769
|
+
V0.prototype.dblp = function(e) {
|
|
7770
7770
|
for (var t = this, r = 0; r < e; r++)
|
|
7771
7771
|
t = t.dbl();
|
|
7772
7772
|
return t;
|
|
@@ -7790,12 +7790,12 @@ typeof Object.create == "function" ? Mf.exports = function(e, t) {
|
|
|
7790
7790
|
}
|
|
7791
7791
|
};
|
|
7792
7792
|
var Er = Mf.exports, ys = Y0, g0 = pt, Yf = Er, Ut = Ar, gs = ys.assert;
|
|
7793
|
-
function
|
|
7793
|
+
function X0(f) {
|
|
7794
7794
|
Ut.call(this, "short", f), this.a = new g0(f.a, 16).toRed(this.red), this.b = new g0(f.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(f), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4);
|
|
7795
7795
|
}
|
|
7796
|
-
Yf(
|
|
7797
|
-
var ms =
|
|
7798
|
-
|
|
7796
|
+
Yf(X0, Ut);
|
|
7797
|
+
var ms = X0;
|
|
7798
|
+
X0.prototype._getEndomorphism = function(e) {
|
|
7799
7799
|
if (!(!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)) {
|
|
7800
7800
|
var t, r;
|
|
7801
7801
|
if (e.beta)
|
|
@@ -7823,11 +7823,11 @@ Z0.prototype._getEndomorphism = function(e) {
|
|
|
7823
7823
|
};
|
|
7824
7824
|
}
|
|
7825
7825
|
};
|
|
7826
|
-
|
|
7826
|
+
X0.prototype._getEndoRoots = function(e) {
|
|
7827
7827
|
var t = e === this.p ? this.red : g0.mont(e), r = new g0(2).toRed(t).redInvm(), a = r.redNeg(), i = new g0(3).toRed(t).redNeg().redSqrt().redMul(r), y = a.redAdd(i).fromRed(), x = a.redSub(i).fromRed();
|
|
7828
7828
|
return [y, x];
|
|
7829
7829
|
};
|
|
7830
|
-
|
|
7830
|
+
X0.prototype._getEndoBasis = function(e) {
|
|
7831
7831
|
for (var t = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), r = e, a = this.n.clone(), i = new g0(1), y = new g0(0), x = new g0(0), u = new g0(1), o, c, v, b, B, w, R, k = 0, z, S; r.cmpn(0) !== 0; ) {
|
|
7832
7832
|
var P = a.div(r);
|
|
7833
7833
|
z = a.sub(P.mul(r)), S = x.sub(P.mul(i));
|
|
@@ -7845,11 +7845,11 @@ Z0.prototype._getEndoBasis = function(e) {
|
|
|
7845
7845
|
{ a: B, b: w }
|
|
7846
7846
|
];
|
|
7847
7847
|
};
|
|
7848
|
-
|
|
7848
|
+
X0.prototype._endoSplit = function(e) {
|
|
7849
7849
|
var t = this.endo.basis, r = t[0], a = t[1], i = a.b.mul(e).divRound(this.n), y = r.b.neg().mul(e).divRound(this.n), x = i.mul(r.a), u = y.mul(a.a), o = i.mul(r.b), c = y.mul(a.b), v = e.sub(x).sub(u), b = o.add(c).neg();
|
|
7850
7850
|
return { k1: v, k2: b };
|
|
7851
7851
|
};
|
|
7852
|
-
|
|
7852
|
+
X0.prototype.pointFromX = function(e, t) {
|
|
7853
7853
|
e = new g0(e, 16), e.red || (e = e.toRed(this.red));
|
|
7854
7854
|
var r = e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b), a = r.redSqrt();
|
|
7855
7855
|
if (a.redSqr().redSub(r).cmp(this.zero) !== 0)
|
|
@@ -7857,13 +7857,13 @@ Z0.prototype.pointFromX = function(e, t) {
|
|
|
7857
7857
|
var i = a.fromRed().isOdd();
|
|
7858
7858
|
return (t && !i || !t && i) && (a = a.redNeg()), this.point(e, a);
|
|
7859
7859
|
};
|
|
7860
|
-
|
|
7860
|
+
X0.prototype.validate = function(e) {
|
|
7861
7861
|
if (e.inf)
|
|
7862
7862
|
return !0;
|
|
7863
7863
|
var t = e.x, r = e.y, a = this.a.redMul(t), i = t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);
|
|
7864
7864
|
return r.redSqr().redISub(i).cmpn(0) === 0;
|
|
7865
7865
|
};
|
|
7866
|
-
|
|
7866
|
+
X0.prototype._endoWnafMulAdd = function(e, t, r) {
|
|
7867
7867
|
for (var a = this._endoWnafT1, i = this._endoWnafT2, y = 0; y < e.length; y++) {
|
|
7868
7868
|
var x = this._endoSplit(t[y]), u = e[y], o = u._getBeta();
|
|
7869
7869
|
x.k1.negative && (x.k1.ineg(), u = u.neg(!0)), x.k2.negative && (x.k2.ineg(), o = o.neg(!0)), a[y * 2] = u, a[y * 2 + 1] = o, i[y * 2] = x.k1, i[y * 2 + 1] = x.k2;
|
|
@@ -7876,10 +7876,10 @@ function M0(f, e, t, r) {
|
|
|
7876
7876
|
Ut.BasePoint.call(this, f, "affine"), e === null && t === null ? (this.x = null, this.y = null, this.inf = !0) : (this.x = new g0(e, 16), this.y = new g0(t, 16), r && (this.x.forceRed(this.curve.red), this.y.forceRed(this.curve.red)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.inf = !1);
|
|
7877
7877
|
}
|
|
7878
7878
|
Yf(M0, Ut.BasePoint);
|
|
7879
|
-
|
|
7879
|
+
X0.prototype.point = function(e, t, r) {
|
|
7880
7880
|
return new M0(this, e, t, r);
|
|
7881
7881
|
};
|
|
7882
|
-
|
|
7882
|
+
X0.prototype.pointFromJSON = function(e, t) {
|
|
7883
7883
|
return M0.fromJSON(this, e, t);
|
|
7884
7884
|
};
|
|
7885
7885
|
M0.prototype._getBeta = function() {
|
|
@@ -8022,7 +8022,7 @@ function R0(f, e, t, r) {
|
|
|
8022
8022
|
Ut.BasePoint.call(this, f, "jacobian"), e === null && t === null && r === null ? (this.x = this.curve.one, this.y = this.curve.one, this.z = new g0(0)) : (this.x = new g0(e, 16), this.y = new g0(t, 16), this.z = new g0(r, 16)), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.zOne = this.z === this.curve.one;
|
|
8023
8023
|
}
|
|
8024
8024
|
Yf(R0, Ut.BasePoint);
|
|
8025
|
-
|
|
8025
|
+
X0.prototype.jpoint = function(e, t, r) {
|
|
8026
8026
|
return new R0(this, e, t, r);
|
|
8027
8027
|
};
|
|
8028
8028
|
R0.prototype.toP = function() {
|
|
@@ -8173,11 +8173,11 @@ R0.prototype.inspect = function() {
|
|
|
8173
8173
|
R0.prototype.isInfinity = function() {
|
|
8174
8174
|
return this.z.cmpn(0) === 0;
|
|
8175
8175
|
};
|
|
8176
|
-
var Ot = pt,
|
|
8176
|
+
var Ot = pt, _n = Er, wr = Ar, _s = Y0;
|
|
8177
8177
|
function $t(f) {
|
|
8178
8178
|
wr.call(this, "mont", f), this.a = new Ot(f.a, 16).toRed(this.red), this.b = new Ot(f.b, 16).toRed(this.red), this.i4 = new Ot(4).toRed(this.red).redInvm(), this.two = new Ot(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
|
|
8179
8179
|
}
|
|
8180
|
-
|
|
8180
|
+
_n($t, wr);
|
|
8181
8181
|
var As = $t;
|
|
8182
8182
|
$t.prototype.validate = function(e) {
|
|
8183
8183
|
var t = e.normalize().x, r = t.redSqr(), a = r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t), i = a.redSqrt();
|
|
@@ -8186,7 +8186,7 @@ $t.prototype.validate = function(e) {
|
|
|
8186
8186
|
function B0(f, e, t) {
|
|
8187
8187
|
wr.BasePoint.call(this, f, "projective"), e === null && t === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new Ot(e, 16), this.z = new Ot(t, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)));
|
|
8188
8188
|
}
|
|
8189
|
-
|
|
8189
|
+
_n(B0, wr.BasePoint);
|
|
8190
8190
|
$t.prototype.decodePoint = function(e, t) {
|
|
8191
8191
|
return this.point(_s.toArray(e, t), 1);
|
|
8192
8192
|
};
|
|
@@ -8243,22 +8243,22 @@ B0.prototype.normalize = function() {
|
|
|
8243
8243
|
B0.prototype.getX = function() {
|
|
8244
8244
|
return this.normalize(), this.x.fromRed();
|
|
8245
8245
|
};
|
|
8246
|
-
var Es = Y0, lt = pt,
|
|
8247
|
-
function
|
|
8246
|
+
var Es = Y0, lt = pt, An = Er, Br = Ar, ws = Es.assert;
|
|
8247
|
+
function dt(f) {
|
|
8248
8248
|
this.twisted = (f.a | 0) !== 1, this.mOneA = this.twisted && (f.a | 0) === -1, this.extended = this.mOneA, Br.call(this, "edwards", f), this.a = new lt(f.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new lt(f.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new lt(f.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), ws(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (f.c | 0) === 1;
|
|
8249
8249
|
}
|
|
8250
|
-
|
|
8251
|
-
var Bs =
|
|
8252
|
-
|
|
8250
|
+
An(dt, Br);
|
|
8251
|
+
var Bs = dt;
|
|
8252
|
+
dt.prototype._mulA = function(e) {
|
|
8253
8253
|
return this.mOneA ? e.redNeg() : this.a.redMul(e);
|
|
8254
8254
|
};
|
|
8255
|
-
|
|
8255
|
+
dt.prototype._mulC = function(e) {
|
|
8256
8256
|
return this.oneC ? e : this.c.redMul(e);
|
|
8257
8257
|
};
|
|
8258
|
-
|
|
8258
|
+
dt.prototype.jpoint = function(e, t, r, a) {
|
|
8259
8259
|
return this.point(e, t, r, a);
|
|
8260
8260
|
};
|
|
8261
|
-
|
|
8261
|
+
dt.prototype.pointFromX = function(e, t) {
|
|
8262
8262
|
e = new lt(e, 16), e.red || (e = e.toRed(this.red));
|
|
8263
8263
|
var r = e.redSqr(), a = this.c2.redSub(this.a.redMul(r)), i = this.one.redSub(this.c2.redMul(this.d).redMul(r)), y = a.redMul(i.redInvm()), x = y.redSqrt();
|
|
8264
8264
|
if (x.redSqr().redSub(y).cmp(this.zero) !== 0)
|
|
@@ -8266,7 +8266,7 @@ ht.prototype.pointFromX = function(e, t) {
|
|
|
8266
8266
|
var u = x.fromRed().isOdd();
|
|
8267
8267
|
return (t && !u || !t && u) && (x = x.redNeg()), this.point(e, x);
|
|
8268
8268
|
};
|
|
8269
|
-
|
|
8269
|
+
dt.prototype.pointFromY = function(e, t) {
|
|
8270
8270
|
e = new lt(e, 16), e.red || (e = e.toRed(this.red));
|
|
8271
8271
|
var r = e.redSqr(), a = r.redSub(this.c2), i = r.redMul(this.d).redMul(this.c2).redSub(this.a), y = a.redMul(i.redInvm());
|
|
8272
8272
|
if (y.cmp(this.zero) === 0) {
|
|
@@ -8279,7 +8279,7 @@ ht.prototype.pointFromY = function(e, t) {
|
|
|
8279
8279
|
throw new Error("invalid point");
|
|
8280
8280
|
return x.fromRed().isOdd() !== t && (x = x.redNeg()), this.point(x, e);
|
|
8281
8281
|
};
|
|
8282
|
-
|
|
8282
|
+
dt.prototype.validate = function(e) {
|
|
8283
8283
|
if (e.isInfinity())
|
|
8284
8284
|
return !0;
|
|
8285
8285
|
e.normalize();
|
|
@@ -8289,11 +8289,11 @@ ht.prototype.validate = function(e) {
|
|
|
8289
8289
|
function v0(f, e, t, r, a) {
|
|
8290
8290
|
Br.BasePoint.call(this, f, "projective"), e === null && t === null && r === null ? (this.x = this.curve.zero, this.y = this.curve.one, this.z = this.curve.one, this.t = this.curve.zero, this.zOne = !0) : (this.x = new lt(e, 16), this.y = new lt(t, 16), this.z = r ? new lt(r, 16) : this.curve.one, this.t = a && new lt(a, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.y.red || (this.y = this.y.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)), this.t && !this.t.red && (this.t = this.t.toRed(this.curve.red)), this.zOne = this.z === this.curve.one, this.curve.extended && !this.t && (this.t = this.x.redMul(this.y), this.zOne || (this.t = this.t.redMul(this.z.redInvm()))));
|
|
8291
8291
|
}
|
|
8292
|
-
|
|
8293
|
-
|
|
8292
|
+
An(v0, Br.BasePoint);
|
|
8293
|
+
dt.prototype.pointFromJSON = function(e) {
|
|
8294
8294
|
return v0.fromJSON(this, e);
|
|
8295
8295
|
};
|
|
8296
|
-
|
|
8296
|
+
dt.prototype.point = function(e, t, r, a) {
|
|
8297
8297
|
return new v0(this, e, t, r, a);
|
|
8298
8298
|
};
|
|
8299
8299
|
v0.fromJSON = function(e, t) {
|
|
@@ -8383,7 +8383,7 @@ v0.prototype.mixedAdd = v0.prototype.add;
|
|
|
8383
8383
|
(function(f) {
|
|
8384
8384
|
var e = f;
|
|
8385
8385
|
e.base = Ar, e.short = ms, e.mont = As, e.edwards = Bs;
|
|
8386
|
-
})(
|
|
8386
|
+
})(Wf);
|
|
8387
8387
|
var Cr = {}, Mr = {}, Le = {}, Cs = Pt, Ms = Er;
|
|
8388
8388
|
Le.inherits = Ms;
|
|
8389
8389
|
function Fs(f, e) {
|
|
@@ -8413,31 +8413,31 @@ function Ss(f, e) {
|
|
|
8413
8413
|
Le.toArray = Ss;
|
|
8414
8414
|
function Ds(f) {
|
|
8415
8415
|
for (var e = "", t = 0; t < f.length; t++)
|
|
8416
|
-
e +=
|
|
8416
|
+
e += wn(f[t].toString(16));
|
|
8417
8417
|
return e;
|
|
8418
8418
|
}
|
|
8419
8419
|
Le.toHex = Ds;
|
|
8420
|
-
function
|
|
8420
|
+
function En(f) {
|
|
8421
8421
|
var e = f >>> 24 | f >>> 8 & 65280 | f << 8 & 16711680 | (f & 255) << 24;
|
|
8422
8422
|
return e >>> 0;
|
|
8423
8423
|
}
|
|
8424
|
-
Le.htonl =
|
|
8424
|
+
Le.htonl = En;
|
|
8425
8425
|
function Rs(f, e) {
|
|
8426
8426
|
for (var t = "", r = 0; r < f.length; r++) {
|
|
8427
8427
|
var a = f[r];
|
|
8428
|
-
e === "little" && (a =
|
|
8428
|
+
e === "little" && (a = En(a)), t += Bn(a.toString(16));
|
|
8429
8429
|
}
|
|
8430
8430
|
return t;
|
|
8431
8431
|
}
|
|
8432
8432
|
Le.toHex32 = Rs;
|
|
8433
|
-
function
|
|
8433
|
+
function wn(f) {
|
|
8434
8434
|
return f.length === 1 ? "0" + f : f;
|
|
8435
8435
|
}
|
|
8436
|
-
Le.zero2 =
|
|
8437
|
-
function
|
|
8436
|
+
Le.zero2 = wn;
|
|
8437
|
+
function Bn(f) {
|
|
8438
8438
|
return f.length === 7 ? "0" + f : f.length === 6 ? "00" + f : f.length === 5 ? "000" + f : f.length === 4 ? "0000" + f : f.length === 3 ? "00000" + f : f.length === 2 ? "000000" + f : f.length === 1 ? "0000000" + f : f;
|
|
8439
8439
|
}
|
|
8440
|
-
Le.zero8 =
|
|
8440
|
+
Le.zero8 = Bn;
|
|
8441
8441
|
function ks(f, e, t, r) {
|
|
8442
8442
|
var a = t - e;
|
|
8443
8443
|
Cs(a % 4 === 0);
|
|
@@ -8507,18 +8507,18 @@ function Ws(f, e, t, r, a, i, y, x) {
|
|
|
8507
8507
|
return u >>> 0;
|
|
8508
8508
|
}
|
|
8509
8509
|
Le.sum64_4_lo = Ws;
|
|
8510
|
-
function
|
|
8510
|
+
function Ys(f, e, t, r, a, i, y, x, u, o) {
|
|
8511
8511
|
var c = 0, v = e;
|
|
8512
8512
|
v = v + r >>> 0, c += v < e ? 1 : 0, v = v + i >>> 0, c += v < i ? 1 : 0, v = v + x >>> 0, c += v < x ? 1 : 0, v = v + o >>> 0, c += v < o ? 1 : 0;
|
|
8513
8513
|
var b = f + t + a + y + u + c;
|
|
8514
8514
|
return b >>> 0;
|
|
8515
8515
|
}
|
|
8516
|
-
Le.sum64_5_hi =
|
|
8517
|
-
function
|
|
8516
|
+
Le.sum64_5_hi = Ys;
|
|
8517
|
+
function Ks(f, e, t, r, a, i, y, x, u, o) {
|
|
8518
8518
|
var c = e + r + i + x + o;
|
|
8519
8519
|
return c >>> 0;
|
|
8520
8520
|
}
|
|
8521
|
-
Le.sum64_5_lo =
|
|
8521
|
+
Le.sum64_5_lo = Ks;
|
|
8522
8522
|
function js(f, e, t) {
|
|
8523
8523
|
var r = e << 32 - t | f >>> t;
|
|
8524
8524
|
return r >>> 0;
|
|
@@ -8538,16 +8538,16 @@ function Zs(f, e, t) {
|
|
|
8538
8538
|
return r >>> 0;
|
|
8539
8539
|
}
|
|
8540
8540
|
Le.shr64_lo = Zs;
|
|
8541
|
-
var Wt = {},
|
|
8541
|
+
var Wt = {}, Hi = Le, Gs = Pt;
|
|
8542
8542
|
function Fr() {
|
|
8543
8543
|
this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32;
|
|
8544
8544
|
}
|
|
8545
8545
|
Wt.BlockHash = Fr;
|
|
8546
8546
|
Fr.prototype.update = function(e, t) {
|
|
8547
|
-
if (e =
|
|
8547
|
+
if (e = Hi.toArray(e, t), this.pending ? this.pending = this.pending.concat(e) : this.pending = e, this.pendingTotal += e.length, this.pending.length >= this._delta8) {
|
|
8548
8548
|
e = this.pending;
|
|
8549
8549
|
var r = e.length % this._delta8;
|
|
8550
|
-
this.pending = e.slice(e.length - r, e.length), this.pending.length === 0 && (this.pending = null), e =
|
|
8550
|
+
this.pending = e.slice(e.length - r, e.length), this.pending.length === 0 && (this.pending = null), e = Hi.join32(e, 0, e.length - r, this.endian);
|
|
8551
8551
|
for (var a = 0; a < e.length; a += this._delta32)
|
|
8552
8552
|
this._update(e, a, a + this._delta32);
|
|
8553
8553
|
}
|
|
@@ -8570,54 +8570,54 @@ Fr.prototype._pad = function() {
|
|
|
8570
8570
|
a[i++] = 0;
|
|
8571
8571
|
return a;
|
|
8572
8572
|
};
|
|
8573
|
-
var
|
|
8573
|
+
var Yt = {}, ht = {}, Qs = Le, rt = Qs.rotr32;
|
|
8574
8574
|
function Js(f, e, t, r) {
|
|
8575
8575
|
if (f === 0)
|
|
8576
|
-
return
|
|
8576
|
+
return Cn(e, t, r);
|
|
8577
8577
|
if (f === 1 || f === 3)
|
|
8578
|
-
return Sn(e, t, r);
|
|
8579
|
-
if (f === 2)
|
|
8580
8578
|
return Fn(e, t, r);
|
|
8579
|
+
if (f === 2)
|
|
8580
|
+
return Mn(e, t, r);
|
|
8581
8581
|
}
|
|
8582
|
-
|
|
8583
|
-
function
|
|
8582
|
+
ht.ft_1 = Js;
|
|
8583
|
+
function Cn(f, e, t) {
|
|
8584
8584
|
return f & e ^ ~f & t;
|
|
8585
8585
|
}
|
|
8586
|
-
|
|
8587
|
-
function
|
|
8586
|
+
ht.ch32 = Cn;
|
|
8587
|
+
function Mn(f, e, t) {
|
|
8588
8588
|
return f & e ^ f & t ^ e & t;
|
|
8589
8589
|
}
|
|
8590
|
-
|
|
8591
|
-
function
|
|
8590
|
+
ht.maj32 = Mn;
|
|
8591
|
+
function Fn(f, e, t) {
|
|
8592
8592
|
return f ^ e ^ t;
|
|
8593
8593
|
}
|
|
8594
|
-
|
|
8594
|
+
ht.p32 = Fn;
|
|
8595
8595
|
function eo(f) {
|
|
8596
|
-
return
|
|
8596
|
+
return rt(f, 2) ^ rt(f, 13) ^ rt(f, 22);
|
|
8597
8597
|
}
|
|
8598
|
-
|
|
8598
|
+
ht.s0_256 = eo;
|
|
8599
8599
|
function to(f) {
|
|
8600
|
-
return
|
|
8600
|
+
return rt(f, 6) ^ rt(f, 11) ^ rt(f, 25);
|
|
8601
8601
|
}
|
|
8602
|
-
|
|
8602
|
+
ht.s1_256 = to;
|
|
8603
8603
|
function ro(f) {
|
|
8604
|
-
return
|
|
8604
|
+
return rt(f, 7) ^ rt(f, 18) ^ f >>> 3;
|
|
8605
8605
|
}
|
|
8606
|
-
|
|
8606
|
+
ht.g0_256 = ro;
|
|
8607
8607
|
function fo(f) {
|
|
8608
|
-
return
|
|
8608
|
+
return rt(f, 17) ^ rt(f, 19) ^ f >>> 10;
|
|
8609
8609
|
}
|
|
8610
|
-
|
|
8611
|
-
var Nt = Le, io = Wt, no =
|
|
8610
|
+
ht.g1_256 = fo;
|
|
8611
|
+
var Nt = Le, io = Wt, no = ht, pf = Nt.rotl32, Gt = Nt.sum32, ao = Nt.sum32_5, so = no.ft_1, Sn = io.BlockHash, oo = [
|
|
8612
8612
|
1518500249,
|
|
8613
8613
|
1859775393,
|
|
8614
8614
|
2400959708,
|
|
8615
8615
|
3395469782
|
|
8616
8616
|
];
|
|
8617
|
-
function
|
|
8618
|
-
if (!(this instanceof
|
|
8619
|
-
return new
|
|
8620
|
-
|
|
8617
|
+
function at() {
|
|
8618
|
+
if (!(this instanceof at))
|
|
8619
|
+
return new at();
|
|
8620
|
+
Sn.call(this), this.h = [
|
|
8621
8621
|
1732584193,
|
|
8622
8622
|
4023233417,
|
|
8623
8623
|
2562383102,
|
|
@@ -8625,13 +8625,13 @@ function st() {
|
|
|
8625
8625
|
3285377520
|
|
8626
8626
|
], this.W = new Array(80);
|
|
8627
8627
|
}
|
|
8628
|
-
Nt.inherits(
|
|
8629
|
-
var co =
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8628
|
+
Nt.inherits(at, Sn);
|
|
8629
|
+
var co = at;
|
|
8630
|
+
at.blockSize = 512;
|
|
8631
|
+
at.outSize = 160;
|
|
8632
|
+
at.hmacStrength = 80;
|
|
8633
|
+
at.padLength = 64;
|
|
8634
|
+
at.prototype._update = function(e, t) {
|
|
8635
8635
|
for (var r = this.W, a = 0; a < 16; a++)
|
|
8636
8636
|
r[a] = e[t + a];
|
|
8637
8637
|
for (; a < r.length; a++)
|
|
@@ -8643,10 +8643,10 @@ st.prototype._update = function(e, t) {
|
|
|
8643
8643
|
}
|
|
8644
8644
|
this.h[0] = Gt(this.h[0], i), this.h[1] = Gt(this.h[1], y), this.h[2] = Gt(this.h[2], x), this.h[3] = Gt(this.h[3], u), this.h[4] = Gt(this.h[4], o);
|
|
8645
8645
|
};
|
|
8646
|
-
|
|
8646
|
+
at.prototype._digest = function(e) {
|
|
8647
8647
|
return e === "hex" ? Nt.toHex32(this.h, "big") : Nt.split32(this.h, "big");
|
|
8648
8648
|
};
|
|
8649
|
-
var qt = Le, ho = Wt,
|
|
8649
|
+
var qt = Le, ho = Wt, Kt = ht, uo = Pt, Q0 = qt.sum32, lo = qt.sum32_4, xo = qt.sum32_5, vo = Kt.ch32, bo = Kt.maj32, po = Kt.s0_256, yo = Kt.s1_256, go = Kt.g0_256, mo = Kt.g1_256, Dn = ho.BlockHash, _o = [
|
|
8650
8650
|
1116352408,
|
|
8651
8651
|
1899447441,
|
|
8652
8652
|
3049323471,
|
|
@@ -8712,10 +8712,10 @@ var qt = Le, ho = Wt, Yt = ut, uo = Pt, J0 = qt.sum32, lo = qt.sum32_4, xo = qt.
|
|
|
8712
8712
|
3204031479,
|
|
8713
8713
|
3329325298
|
|
8714
8714
|
];
|
|
8715
|
-
function
|
|
8716
|
-
if (!(this instanceof
|
|
8717
|
-
return new
|
|
8718
|
-
|
|
8715
|
+
function st() {
|
|
8716
|
+
if (!(this instanceof st))
|
|
8717
|
+
return new st();
|
|
8718
|
+
Dn.call(this), this.h = [
|
|
8719
8719
|
1779033703,
|
|
8720
8720
|
3144134277,
|
|
8721
8721
|
1013904242,
|
|
@@ -8726,32 +8726,32 @@ function ot() {
|
|
|
8726
8726
|
1541459225
|
|
8727
8727
|
], this.k = _o, this.W = new Array(64);
|
|
8728
8728
|
}
|
|
8729
|
-
qt.inherits(
|
|
8730
|
-
var
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8729
|
+
qt.inherits(st, Dn);
|
|
8730
|
+
var Rn = st;
|
|
8731
|
+
st.blockSize = 512;
|
|
8732
|
+
st.outSize = 256;
|
|
8733
|
+
st.hmacStrength = 192;
|
|
8734
|
+
st.padLength = 64;
|
|
8735
|
+
st.prototype._update = function(e, t) {
|
|
8736
8736
|
for (var r = this.W, a = 0; a < 16; a++)
|
|
8737
8737
|
r[a] = e[t + a];
|
|
8738
8738
|
for (; a < r.length; a++)
|
|
8739
8739
|
r[a] = lo(mo(r[a - 2]), r[a - 7], go(r[a - 15]), r[a - 16]);
|
|
8740
8740
|
var i = this.h[0], y = this.h[1], x = this.h[2], u = this.h[3], o = this.h[4], c = this.h[5], v = this.h[6], b = this.h[7];
|
|
8741
8741
|
for (uo(this.k.length === r.length), a = 0; a < r.length; a++) {
|
|
8742
|
-
var B = xo(b, yo(o), vo(o, c, v), this.k[a], r[a]), w =
|
|
8743
|
-
b = v, v = c, c = o, o =
|
|
8742
|
+
var B = xo(b, yo(o), vo(o, c, v), this.k[a], r[a]), w = Q0(po(i), bo(i, y, x));
|
|
8743
|
+
b = v, v = c, c = o, o = Q0(u, B), u = x, x = y, y = i, i = Q0(B, w);
|
|
8744
8744
|
}
|
|
8745
|
-
this.h[0] =
|
|
8745
|
+
this.h[0] = Q0(this.h[0], i), this.h[1] = Q0(this.h[1], y), this.h[2] = Q0(this.h[2], x), this.h[3] = Q0(this.h[3], u), this.h[4] = Q0(this.h[4], o), this.h[5] = Q0(this.h[5], c), this.h[6] = Q0(this.h[6], v), this.h[7] = Q0(this.h[7], b);
|
|
8746
8746
|
};
|
|
8747
|
-
|
|
8747
|
+
st.prototype._digest = function(e) {
|
|
8748
8748
|
return e === "hex" ? qt.toHex32(this.h, "big") : qt.split32(this.h, "big");
|
|
8749
8749
|
};
|
|
8750
|
-
var Ff = Le,
|
|
8750
|
+
var Ff = Le, kn = Rn;
|
|
8751
8751
|
function vt() {
|
|
8752
8752
|
if (!(this instanceof vt))
|
|
8753
8753
|
return new vt();
|
|
8754
|
-
|
|
8754
|
+
kn.call(this), this.h = [
|
|
8755
8755
|
3238371032,
|
|
8756
8756
|
914150663,
|
|
8757
8757
|
812702999,
|
|
@@ -8762,7 +8762,7 @@ function vt() {
|
|
|
8762
8762
|
3204075428
|
|
8763
8763
|
];
|
|
8764
8764
|
}
|
|
8765
|
-
Ff.inherits(vt,
|
|
8765
|
+
Ff.inherits(vt, kn);
|
|
8766
8766
|
var Ao = vt;
|
|
8767
8767
|
vt.blockSize = 512;
|
|
8768
8768
|
vt.outSize = 224;
|
|
@@ -8771,7 +8771,7 @@ vt.padLength = 64;
|
|
|
8771
8771
|
vt.prototype._digest = function(e) {
|
|
8772
8772
|
return e === "hex" ? Ff.toHex32(this.h.slice(0, 7), "big") : Ff.split32(this.h.slice(0, 7), "big");
|
|
8773
8773
|
};
|
|
8774
|
-
var H0 = Le, Eo = Wt, wo = Pt,
|
|
8774
|
+
var H0 = Le, Eo = Wt, wo = Pt, ft = H0.rotr64_hi, it = H0.rotr64_lo, Pn = H0.shr64_hi, In = H0.shr64_lo, gt = H0.sum64, yf = H0.sum64_hi, gf = H0.sum64_lo, Bo = H0.sum64_4_hi, Co = H0.sum64_4_lo, Mo = H0.sum64_5_hi, Fo = H0.sum64_5_lo, Tn = Eo.BlockHash, So = [
|
|
8775
8775
|
1116352408,
|
|
8776
8776
|
3609767458,
|
|
8777
8777
|
1899447441,
|
|
@@ -8933,10 +8933,10 @@ var H0 = Le, Eo = Wt, wo = Pt, it = H0.rotr64_hi, nt = H0.rotr64_lo, In = H0.shr
|
|
|
8933
8933
|
1816402316,
|
|
8934
8934
|
1246189591
|
|
8935
8935
|
];
|
|
8936
|
-
function
|
|
8937
|
-
if (!(this instanceof
|
|
8938
|
-
return new
|
|
8939
|
-
|
|
8936
|
+
function et() {
|
|
8937
|
+
if (!(this instanceof et))
|
|
8938
|
+
return new et();
|
|
8939
|
+
Tn.call(this), this.h = [
|
|
8940
8940
|
1779033703,
|
|
8941
8941
|
4089235720,
|
|
8942
8942
|
3144134277,
|
|
@@ -8955,13 +8955,13 @@ function tt() {
|
|
|
8955
8955
|
327033209
|
|
8956
8956
|
], this.k = So, this.W = new Array(160);
|
|
8957
8957
|
}
|
|
8958
|
-
H0.inherits(
|
|
8959
|
-
var
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8958
|
+
H0.inherits(et, Tn);
|
|
8959
|
+
var On = et;
|
|
8960
|
+
et.blockSize = 1024;
|
|
8961
|
+
et.outSize = 512;
|
|
8962
|
+
et.hmacStrength = 192;
|
|
8963
|
+
et.padLength = 128;
|
|
8964
|
+
et.prototype._prepareBlock = function(e, t) {
|
|
8965
8965
|
for (var r = this.W, a = 0; a < 32; a++)
|
|
8966
8966
|
r[a] = e[t + a];
|
|
8967
8967
|
for (; a < r.length; a += 2) {
|
|
@@ -8987,15 +8987,15 @@ tt.prototype._prepareBlock = function(e, t) {
|
|
|
8987
8987
|
);
|
|
8988
8988
|
}
|
|
8989
8989
|
};
|
|
8990
|
-
|
|
8990
|
+
et.prototype._update = function(e, t) {
|
|
8991
8991
|
this._prepareBlock(e, t);
|
|
8992
8992
|
var r = this.W, a = this.h[0], i = this.h[1], y = this.h[2], x = this.h[3], u = this.h[4], o = this.h[5], c = this.h[6], v = this.h[7], b = this.h[8], B = this.h[9], w = this.h[10], R = this.h[11], k = this.h[12], z = this.h[13], S = this.h[14], P = this.h[15];
|
|
8993
8993
|
wo(this.k.length === r.length);
|
|
8994
8994
|
for (var T = 0; T < r.length; T += 2) {
|
|
8995
|
-
var H = S, $ = P,
|
|
8995
|
+
var H = S, $ = P, K = Oo(b, B), X = zo(b, B), Q = Do(b, B, w, R, k), U = Ro(b, B, w, R, k, z), A = this.k[T], n = this.k[T + 1], d = r[T], g = r[T + 1], C = Mo(
|
|
8996
8996
|
H,
|
|
8997
8997
|
$,
|
|
8998
|
-
|
|
8998
|
+
K,
|
|
8999
8999
|
X,
|
|
9000
9000
|
Q,
|
|
9001
9001
|
U,
|
|
@@ -9006,7 +9006,7 @@ tt.prototype._update = function(e, t) {
|
|
|
9006
9006
|
), F = Fo(
|
|
9007
9007
|
H,
|
|
9008
9008
|
$,
|
|
9009
|
-
|
|
9009
|
+
K,
|
|
9010
9010
|
X,
|
|
9011
9011
|
Q,
|
|
9012
9012
|
U,
|
|
@@ -9015,13 +9015,13 @@ tt.prototype._update = function(e, t) {
|
|
|
9015
9015
|
d,
|
|
9016
9016
|
g
|
|
9017
9017
|
);
|
|
9018
|
-
H = Io(a, i), $ = To(a, i),
|
|
9019
|
-
var N = yf(H, $,
|
|
9018
|
+
H = Io(a, i), $ = To(a, i), K = ko(a, i, y, x, u), X = Po(a, i, y, x, u, o);
|
|
9019
|
+
var N = yf(H, $, K, X), q = gf(H, $, K, X);
|
|
9020
9020
|
S = k, P = z, k = w, z = R, w = b, R = B, b = yf(c, v, C, F), B = gf(v, v, C, F), c = u, v = o, u = y, o = x, y = a, x = i, a = yf(C, F, N, q), i = gf(C, F, N, q);
|
|
9021
9021
|
}
|
|
9022
9022
|
gt(this.h, 0, a, i), gt(this.h, 2, y, x), gt(this.h, 4, u, o), gt(this.h, 6, c, v), gt(this.h, 8, b, B), gt(this.h, 10, w, R), gt(this.h, 12, k, z), gt(this.h, 14, S, P);
|
|
9023
9023
|
};
|
|
9024
|
-
|
|
9024
|
+
et.prototype._digest = function(e) {
|
|
9025
9025
|
return e === "hex" ? H0.toHex32(this.h, "big") : H0.split32(this.h, "big");
|
|
9026
9026
|
};
|
|
9027
9027
|
function Do(f, e, t, r, a) {
|
|
@@ -9041,42 +9041,42 @@ function Po(f, e, t, r, a, i) {
|
|
|
9041
9041
|
return y < 0 && (y += 4294967296), y;
|
|
9042
9042
|
}
|
|
9043
9043
|
function Io(f, e) {
|
|
9044
|
-
var t =
|
|
9044
|
+
var t = ft(f, e, 28), r = ft(e, f, 2), a = ft(e, f, 7), i = t ^ r ^ a;
|
|
9045
9045
|
return i < 0 && (i += 4294967296), i;
|
|
9046
9046
|
}
|
|
9047
9047
|
function To(f, e) {
|
|
9048
|
-
var t =
|
|
9048
|
+
var t = it(f, e, 28), r = it(e, f, 2), a = it(e, f, 7), i = t ^ r ^ a;
|
|
9049
9049
|
return i < 0 && (i += 4294967296), i;
|
|
9050
9050
|
}
|
|
9051
9051
|
function Oo(f, e) {
|
|
9052
|
-
var t =
|
|
9052
|
+
var t = ft(f, e, 14), r = ft(f, e, 18), a = ft(e, f, 9), i = t ^ r ^ a;
|
|
9053
9053
|
return i < 0 && (i += 4294967296), i;
|
|
9054
9054
|
}
|
|
9055
9055
|
function zo(f, e) {
|
|
9056
|
-
var t =
|
|
9056
|
+
var t = it(f, e, 14), r = it(f, e, 18), a = it(e, f, 9), i = t ^ r ^ a;
|
|
9057
9057
|
return i < 0 && (i += 4294967296), i;
|
|
9058
9058
|
}
|
|
9059
9059
|
function No(f, e) {
|
|
9060
|
-
var t =
|
|
9060
|
+
var t = ft(f, e, 1), r = ft(f, e, 8), a = Pn(f, e, 7), i = t ^ r ^ a;
|
|
9061
9061
|
return i < 0 && (i += 4294967296), i;
|
|
9062
9062
|
}
|
|
9063
9063
|
function qo(f, e) {
|
|
9064
|
-
var t =
|
|
9064
|
+
var t = it(f, e, 1), r = it(f, e, 8), a = In(f, e, 7), i = t ^ r ^ a;
|
|
9065
9065
|
return i < 0 && (i += 4294967296), i;
|
|
9066
9066
|
}
|
|
9067
9067
|
function Lo(f, e) {
|
|
9068
|
-
var t =
|
|
9068
|
+
var t = ft(f, e, 19), r = ft(e, f, 29), a = Pn(f, e, 6), i = t ^ r ^ a;
|
|
9069
9069
|
return i < 0 && (i += 4294967296), i;
|
|
9070
9070
|
}
|
|
9071
9071
|
function Ho(f, e) {
|
|
9072
|
-
var t =
|
|
9072
|
+
var t = it(f, e, 19), r = it(e, f, 29), a = In(f, e, 6), i = t ^ r ^ a;
|
|
9073
9073
|
return i < 0 && (i += 4294967296), i;
|
|
9074
9074
|
}
|
|
9075
|
-
var Sf = Le,
|
|
9075
|
+
var Sf = Le, zn = On;
|
|
9076
9076
|
function bt() {
|
|
9077
9077
|
if (!(this instanceof bt))
|
|
9078
9078
|
return new bt();
|
|
9079
|
-
|
|
9079
|
+
zn.call(this), this.h = [
|
|
9080
9080
|
3418070365,
|
|
9081
9081
|
3238371032,
|
|
9082
9082
|
1654270250,
|
|
@@ -9095,7 +9095,7 @@ function bt() {
|
|
|
9095
9095
|
3204075428
|
|
9096
9096
|
];
|
|
9097
9097
|
}
|
|
9098
|
-
Sf.inherits(bt,
|
|
9098
|
+
Sf.inherits(bt, zn);
|
|
9099
9099
|
var Uo = bt;
|
|
9100
9100
|
bt.blockSize = 1024;
|
|
9101
9101
|
bt.outSize = 384;
|
|
@@ -9104,55 +9104,55 @@ bt.padLength = 128;
|
|
|
9104
9104
|
bt.prototype._digest = function(e) {
|
|
9105
9105
|
return e === "hex" ? Sf.toHex32(this.h.slice(0, 12), "big") : Sf.split32(this.h.slice(0, 12), "big");
|
|
9106
9106
|
};
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
var
|
|
9113
|
-
function
|
|
9114
|
-
if (!(this instanceof
|
|
9115
|
-
return new
|
|
9116
|
-
|
|
9117
|
-
}
|
|
9118
|
-
Dt.inherits(
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9107
|
+
Yt.sha1 = co;
|
|
9108
|
+
Yt.sha224 = Ao;
|
|
9109
|
+
Yt.sha256 = Rn;
|
|
9110
|
+
Yt.sha384 = Uo;
|
|
9111
|
+
Yt.sha512 = On;
|
|
9112
|
+
var Nn = {}, Dt = Le, $o = Wt, ar = Dt.rotl32, Ui = Dt.sum32, Qt = Dt.sum32_3, $i = Dt.sum32_4, qn = $o.BlockHash;
|
|
9113
|
+
function ot() {
|
|
9114
|
+
if (!(this instanceof ot))
|
|
9115
|
+
return new ot();
|
|
9116
|
+
qn.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little";
|
|
9117
|
+
}
|
|
9118
|
+
Dt.inherits(ot, qn);
|
|
9119
|
+
Nn.ripemd160 = ot;
|
|
9120
|
+
ot.blockSize = 512;
|
|
9121
|
+
ot.outSize = 160;
|
|
9122
|
+
ot.hmacStrength = 192;
|
|
9123
|
+
ot.padLength = 64;
|
|
9124
|
+
ot.prototype._update = function(e, t) {
|
|
9125
9125
|
for (var r = this.h[0], a = this.h[1], i = this.h[2], y = this.h[3], x = this.h[4], u = r, o = a, c = i, v = y, b = x, B = 0; B < 80; B++) {
|
|
9126
|
-
var w =
|
|
9127
|
-
|
|
9128
|
-
|
|
9126
|
+
var w = Ui(
|
|
9127
|
+
ar(
|
|
9128
|
+
$i(r, Wi(B, a, i, y), e[Ko[B] + t], Wo(B)),
|
|
9129
9129
|
Vo[B]
|
|
9130
9130
|
),
|
|
9131
9131
|
x
|
|
9132
9132
|
);
|
|
9133
|
-
r = x, x = y, y =
|
|
9134
|
-
|
|
9135
|
-
|
|
9133
|
+
r = x, x = y, y = ar(i, 10), i = a, a = w, w = Ui(
|
|
9134
|
+
ar(
|
|
9135
|
+
$i(u, Wi(79 - B, o, c, v), e[jo[B] + t], Yo(B)),
|
|
9136
9136
|
Xo[B]
|
|
9137
9137
|
),
|
|
9138
9138
|
b
|
|
9139
|
-
), u = b, b = v, v =
|
|
9139
|
+
), u = b, b = v, v = ar(c, 10), c = o, o = w;
|
|
9140
9140
|
}
|
|
9141
9141
|
w = Qt(this.h[1], i, v), this.h[1] = Qt(this.h[2], y, b), this.h[2] = Qt(this.h[3], x, u), this.h[3] = Qt(this.h[4], r, o), this.h[4] = Qt(this.h[0], a, c), this.h[0] = w;
|
|
9142
9142
|
};
|
|
9143
|
-
|
|
9143
|
+
ot.prototype._digest = function(e) {
|
|
9144
9144
|
return e === "hex" ? Dt.toHex32(this.h, "little") : Dt.split32(this.h, "little");
|
|
9145
9145
|
};
|
|
9146
|
-
function
|
|
9146
|
+
function Wi(f, e, t, r) {
|
|
9147
9147
|
return f <= 15 ? e ^ t ^ r : f <= 31 ? e & t | ~e & r : f <= 47 ? (e | ~t) ^ r : f <= 63 ? e & r | t & ~r : e ^ (t | ~r);
|
|
9148
9148
|
}
|
|
9149
9149
|
function Wo(f) {
|
|
9150
9150
|
return f <= 15 ? 0 : f <= 31 ? 1518500249 : f <= 47 ? 1859775393 : f <= 63 ? 2400959708 : 2840853838;
|
|
9151
9151
|
}
|
|
9152
|
-
function
|
|
9152
|
+
function Yo(f) {
|
|
9153
9153
|
return f <= 15 ? 1352829926 : f <= 31 ? 1548603684 : f <= 47 ? 1836072691 : f <= 63 ? 2053994217 : 0;
|
|
9154
9154
|
}
|
|
9155
|
-
var
|
|
9155
|
+
var Ko = [
|
|
9156
9156
|
0,
|
|
9157
9157
|
1,
|
|
9158
9158
|
2,
|
|
@@ -9501,11 +9501,11 @@ Lt.prototype.digest = function(e) {
|
|
|
9501
9501
|
};
|
|
9502
9502
|
(function(f) {
|
|
9503
9503
|
var e = f;
|
|
9504
|
-
e.utils = Le, e.common = Wt, e.sha =
|
|
9504
|
+
e.utils = Le, e.common = Wt, e.sha = Yt, e.ripemd = Nn, e.hmac = Qo, e.sha1 = e.sha.sha1, e.sha256 = e.sha.sha256, e.sha224 = e.sha.sha224, e.sha384 = e.sha.sha384, e.sha512 = e.sha.sha512, e.ripemd160 = e.ripemd.ripemd160;
|
|
9505
9505
|
})(Mr);
|
|
9506
|
-
var mf,
|
|
9506
|
+
var mf, Yi;
|
|
9507
9507
|
function Jo() {
|
|
9508
|
-
return
|
|
9508
|
+
return Yi || (Yi = 1, mf = {
|
|
9509
9509
|
doubles: {
|
|
9510
9510
|
step: 4,
|
|
9511
9511
|
points: [
|
|
@@ -10287,7 +10287,7 @@ function Jo() {
|
|
|
10287
10287
|
}), mf;
|
|
10288
10288
|
}
|
|
10289
10289
|
(function(f) {
|
|
10290
|
-
var e = f, t = Mr, r =
|
|
10290
|
+
var e = f, t = Mr, r = Wf, a = Y0, i = a.assert;
|
|
10291
10291
|
function y(o) {
|
|
10292
10292
|
o.type === "short" ? this.curve = new r.short(o) : o.type === "edwards" ? this.curve = new r.edwards(o) : this.curve = new r.mont(o), this.g = this.curve.g, this.n = this.curve.n, this.hash = o.hash, i(this.g.validate(), "Invalid curve"), i(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O");
|
|
10293
10293
|
}
|
|
@@ -10436,13 +10436,13 @@ function Jo() {
|
|
|
10436
10436
|
]
|
|
10437
10437
|
});
|
|
10438
10438
|
})(Cr);
|
|
10439
|
-
var ec = Mr, Mt =
|
|
10439
|
+
var ec = Mr, Mt = Uf, Ln = Pt;
|
|
10440
10440
|
function _t(f) {
|
|
10441
10441
|
if (!(this instanceof _t))
|
|
10442
10442
|
return new _t(f);
|
|
10443
10443
|
this.hash = f.hash, this.predResist = !!f.predResist, this.outLen = this.hash.outSize, this.minEntropy = f.minEntropy || this.hash.hmacStrength, this._reseed = null, this.reseedInterval = null, this.K = null, this.V = null;
|
|
10444
10444
|
var e = Mt.toArray(f.entropy, f.entropyEnc || "hex"), t = Mt.toArray(f.nonce, f.nonceEnc || "hex"), r = Mt.toArray(f.pers, f.persEnc || "hex");
|
|
10445
|
-
|
|
10445
|
+
Ln(
|
|
10446
10446
|
e.length >= this.minEntropy / 8,
|
|
10447
10447
|
"Not enough entropy. Minimum is: " + this.minEntropy + " bits"
|
|
10448
10448
|
), this._init(e, t, r);
|
|
@@ -10463,7 +10463,7 @@ _t.prototype._update = function(e) {
|
|
|
10463
10463
|
e && (t = t.update(e)), this.K = t.digest(), this.V = this._hmac().update(this.V).digest(), e && (this.K = this._hmac().update(this.V).update([1]).update(e).digest(), this.V = this._hmac().update(this.V).digest());
|
|
10464
10464
|
};
|
|
10465
10465
|
_t.prototype.reseed = function(e, t, r, a) {
|
|
10466
|
-
typeof t != "string" && (a = r, r = t, t = null), e = Mt.toArray(e, t), r = Mt.toArray(r, a),
|
|
10466
|
+
typeof t != "string" && (a = r, r = t, t = null), e = Mt.toArray(e, t), r = Mt.toArray(r, a), Ln(
|
|
10467
10467
|
e.length >= this.minEntropy / 8,
|
|
10468
10468
|
"Not enough entropy. Minimum is: " + this.minEntropy + " bits"
|
|
10469
10469
|
), this._update(e.concat(r || [])), this._reseed = 1;
|
|
@@ -10526,7 +10526,7 @@ T0.prototype.verify = function(e, t) {
|
|
|
10526
10526
|
T0.prototype.inspect = function() {
|
|
10527
10527
|
return "<Key priv: " + (this.priv && this.priv.toString(16, 2)) + " pub: " + (this.pub && this.pub.inspect()) + " >";
|
|
10528
10528
|
};
|
|
10529
|
-
var gr = pt,
|
|
10529
|
+
var gr = pt, Kf = Y0, nc = Kf.assert;
|
|
10530
10530
|
function Sr(f, e) {
|
|
10531
10531
|
if (f instanceof Sr)
|
|
10532
10532
|
return f;
|
|
@@ -10547,13 +10547,13 @@ function _f(f, e) {
|
|
|
10547
10547
|
a <<= 8, a |= f[y], a >>>= 0;
|
|
10548
10548
|
return a <= 127 ? !1 : (e.place = y, a);
|
|
10549
10549
|
}
|
|
10550
|
-
function
|
|
10550
|
+
function Ki(f) {
|
|
10551
10551
|
for (var e = 0, t = f.length - 1; !f[e] && !(f[e + 1] & 128) && e < t; )
|
|
10552
10552
|
e++;
|
|
10553
10553
|
return e === 0 ? f : f.slice(e);
|
|
10554
10554
|
}
|
|
10555
10555
|
Sr.prototype._importDER = function(e, t) {
|
|
10556
|
-
e =
|
|
10556
|
+
e = Kf.toArray(e, t);
|
|
10557
10557
|
var r = new sc();
|
|
10558
10558
|
if (e[r.place++] !== 48)
|
|
10559
10559
|
return !1;
|
|
@@ -10594,35 +10594,35 @@ function Af(f, e) {
|
|
|
10594
10594
|
}
|
|
10595
10595
|
Sr.prototype.toDER = function(e) {
|
|
10596
10596
|
var t = this.r.toArray(), r = this.s.toArray();
|
|
10597
|
-
for (t[0] & 128 && (t = [0].concat(t)), r[0] & 128 && (r = [0].concat(r)), t =
|
|
10597
|
+
for (t[0] & 128 && (t = [0].concat(t)), r[0] & 128 && (r = [0].concat(r)), t = Ki(t), r = Ki(r); !r[0] && !(r[1] & 128); )
|
|
10598
10598
|
r = r.slice(1);
|
|
10599
10599
|
var a = [2];
|
|
10600
10600
|
Af(a, t.length), a = a.concat(t), a.push(2), Af(a, r.length);
|
|
10601
10601
|
var i = a.concat(r), y = [48];
|
|
10602
|
-
return Af(y, i.length), y = y.concat(i),
|
|
10602
|
+
return Af(y, i.length), y = y.concat(i), Kf.encode(y, e);
|
|
10603
10603
|
};
|
|
10604
|
-
var Ft = pt,
|
|
10605
|
-
function
|
|
10606
|
-
if (!(this instanceof
|
|
10607
|
-
return new
|
|
10608
|
-
typeof f == "string" && (
|
|
10604
|
+
var Ft = pt, Hn = tc, oc = Y0, Ef = Cr, cc = mn, Un = oc.assert, jf = ic, Dr = ac;
|
|
10605
|
+
function j0(f) {
|
|
10606
|
+
if (!(this instanceof j0))
|
|
10607
|
+
return new j0(f);
|
|
10608
|
+
typeof f == "string" && (Un(
|
|
10609
10609
|
Object.prototype.hasOwnProperty.call(Ef, f),
|
|
10610
10610
|
"Unknown curve " + f
|
|
10611
10611
|
), f = Ef[f]), f instanceof Ef.PresetCurve && (f = { curve: f }), this.curve = f.curve.curve, this.n = this.curve.n, this.nh = this.n.ushrn(1), this.g = this.curve.g, this.g = f.curve.g, this.g.precompute(f.curve.n.bitLength() + 1), this.hash = f.hash || f.curve.hash;
|
|
10612
10612
|
}
|
|
10613
|
-
var dc =
|
|
10614
|
-
|
|
10615
|
-
return new
|
|
10613
|
+
var dc = j0;
|
|
10614
|
+
j0.prototype.keyPair = function(e) {
|
|
10615
|
+
return new jf(this, e);
|
|
10616
10616
|
};
|
|
10617
|
-
|
|
10618
|
-
return
|
|
10617
|
+
j0.prototype.keyFromPrivate = function(e, t) {
|
|
10618
|
+
return jf.fromPrivate(this, e, t);
|
|
10619
10619
|
};
|
|
10620
|
-
|
|
10621
|
-
return
|
|
10620
|
+
j0.prototype.keyFromPublic = function(e, t) {
|
|
10621
|
+
return jf.fromPublic(this, e, t);
|
|
10622
10622
|
};
|
|
10623
|
-
|
|
10623
|
+
j0.prototype.genKeyPair = function(e) {
|
|
10624
10624
|
e || (e = {});
|
|
10625
|
-
for (var t = new
|
|
10625
|
+
for (var t = new Hn({
|
|
10626
10626
|
hash: this.hash,
|
|
10627
10627
|
pers: e.pers,
|
|
10628
10628
|
persEnc: e.persEnc || "utf8",
|
|
@@ -10635,13 +10635,13 @@ V0.prototype.genKeyPair = function(e) {
|
|
|
10635
10635
|
return i.iaddn(1), this.keyFromPrivate(i);
|
|
10636
10636
|
}
|
|
10637
10637
|
};
|
|
10638
|
-
|
|
10638
|
+
j0.prototype._truncateToN = function(e, t) {
|
|
10639
10639
|
var r = e.byteLength() * 8 - this.n.bitLength();
|
|
10640
10640
|
return r > 0 && (e = e.ushrn(r)), !t && e.cmp(this.n) >= 0 ? e.sub(this.n) : e;
|
|
10641
10641
|
};
|
|
10642
|
-
|
|
10642
|
+
j0.prototype.sign = function(e, t, r, a) {
|
|
10643
10643
|
typeof r == "object" && (a = r, r = null), a || (a = {}), t = this.keyFromPrivate(t, r), e = this._truncateToN(new Ft(e, 16));
|
|
10644
|
-
for (var i = this.n.byteLength(), y = t.getPrivate().toArray("be", i), x = e.toArray("be", i), u = new
|
|
10644
|
+
for (var i = this.n.byteLength(), y = t.getPrivate().toArray("be", i), x = e.toArray("be", i), u = new Hn({
|
|
10645
10645
|
hash: this.hash,
|
|
10646
10646
|
entropy: y,
|
|
10647
10647
|
nonce: x,
|
|
@@ -10664,7 +10664,7 @@ V0.prototype.sign = function(e, t, r, a) {
|
|
|
10664
10664
|
}
|
|
10665
10665
|
}
|
|
10666
10666
|
};
|
|
10667
|
-
|
|
10667
|
+
j0.prototype.verify = function(e, t, r, a) {
|
|
10668
10668
|
e = this._truncateToN(new Ft(e, 16)), r = this.keyFromPublic(r, a), t = new Dr(t, "hex");
|
|
10669
10669
|
var i = t.r, y = t.s;
|
|
10670
10670
|
if (i.cmpn(1) < 0 || i.cmp(this.n) >= 0 || y.cmpn(1) < 0 || y.cmp(this.n) >= 0)
|
|
@@ -10672,8 +10672,8 @@ V0.prototype.verify = function(e, t, r, a) {
|
|
|
10672
10672
|
var x = y.invm(this.n), u = x.mul(e).umod(this.n), o = x.mul(i).umod(this.n), c;
|
|
10673
10673
|
return this.curve._maxwellTrick ? (c = this.g.jmulAdd(u, r.getPublic(), o), c.isInfinity() ? !1 : c.eqXToP(i)) : (c = this.g.mulAdd(u, r.getPublic(), o), c.isInfinity() ? !1 : c.getX().umod(this.n).cmp(i) === 0);
|
|
10674
10674
|
};
|
|
10675
|
-
|
|
10676
|
-
|
|
10675
|
+
j0.prototype.recoverPubKey = function(f, e, t, r) {
|
|
10676
|
+
Un((3 & t) === t, "The recovery param is more than two bits"), e = new Dr(e, r);
|
|
10677
10677
|
var a = this.n, i = new Ft(f), y = e.r, x = e.s, u = t & 1, o = t >> 1;
|
|
10678
10678
|
if (y.cmp(this.curve.p.umod(this.curve.n)) >= 0 && o)
|
|
10679
10679
|
throw new Error("Unable to find sencond key candinate");
|
|
@@ -10681,7 +10681,7 @@ V0.prototype.recoverPubKey = function(f, e, t, r) {
|
|
|
10681
10681
|
var c = e.r.invm(a), v = a.sub(i).mul(c).umod(a), b = x.mul(c).umod(a);
|
|
10682
10682
|
return this.g.mulAdd(v, y, b);
|
|
10683
10683
|
};
|
|
10684
|
-
|
|
10684
|
+
j0.prototype.getKeyRecoveryParam = function(f, e, t, r) {
|
|
10685
10685
|
if (e = new Dr(e, r), e.recoveryParam !== null)
|
|
10686
10686
|
return e.recoveryParam;
|
|
10687
10687
|
for (var a = 0; a < 4; a++) {
|
|
@@ -10696,9 +10696,9 @@ V0.prototype.getKeyRecoveryParam = function(f, e, t, r) {
|
|
|
10696
10696
|
}
|
|
10697
10697
|
throw new Error("Unable to find valid recovery factor");
|
|
10698
10698
|
};
|
|
10699
|
-
var
|
|
10699
|
+
var ir = Y0, $n = ir.assert, ji = ir.parseBytes, jt = ir.cachedProperty;
|
|
10700
10700
|
function w0(f, e) {
|
|
10701
|
-
this.eddsa = f, this._secret =
|
|
10701
|
+
this.eddsa = f, this._secret = ji(e.secret), f.isPoint(e.pub) ? this._pub = e.pub : this._pubBytes = ji(e.pub);
|
|
10702
10702
|
}
|
|
10703
10703
|
w0.fromPublic = function(e, t) {
|
|
10704
10704
|
return t instanceof w0 ? t : new w0(e, { pub: t });
|
|
@@ -10729,16 +10729,16 @@ jt(w0, "messagePrefix", function() {
|
|
|
10729
10729
|
return this.hash().slice(this.eddsa.encodingLength);
|
|
10730
10730
|
});
|
|
10731
10731
|
w0.prototype.sign = function(e) {
|
|
10732
|
-
return
|
|
10732
|
+
return $n(this._secret, "KeyPair can only verify"), this.eddsa.sign(e, this);
|
|
10733
10733
|
};
|
|
10734
10734
|
w0.prototype.verify = function(e, t) {
|
|
10735
10735
|
return this.eddsa.verify(e, t, this);
|
|
10736
10736
|
};
|
|
10737
10737
|
w0.prototype.getSecret = function(e) {
|
|
10738
|
-
return
|
|
10738
|
+
return $n(this._secret, "KeyPair is public only"), ir.encode(this.secret(), e);
|
|
10739
10739
|
};
|
|
10740
10740
|
w0.prototype.getPublic = function(e) {
|
|
10741
|
-
return
|
|
10741
|
+
return ir.encode(this.pubBytes(), e);
|
|
10742
10742
|
};
|
|
10743
10743
|
var hc = w0, uc = pt, Rr = Y0, lc = Rr.assert, kr = Rr.cachedProperty, xc = Rr.parseBytes;
|
|
10744
10744
|
function It(f, e) {
|
|
@@ -10765,7 +10765,7 @@ It.prototype.toBytes = function() {
|
|
|
10765
10765
|
It.prototype.toHex = function() {
|
|
10766
10766
|
return Rr.encode(this.toBytes(), "hex").toUpperCase();
|
|
10767
10767
|
};
|
|
10768
|
-
var vc = It, bc = Mr, pc = Cr, Ht = Y0, yc = Ht.assert,
|
|
10768
|
+
var vc = It, bc = Mr, pc = Cr, Ht = Y0, yc = Ht.assert, Wn = Ht.parseBytes, Yn = hc, Vi = vc;
|
|
10769
10769
|
function U0(f) {
|
|
10770
10770
|
if (yc(f === "ed25519", "only tested with ed25519 so far"), !(this instanceof U0))
|
|
10771
10771
|
return new U0(f);
|
|
@@ -10773,12 +10773,12 @@ function U0(f) {
|
|
|
10773
10773
|
}
|
|
10774
10774
|
var gc = U0;
|
|
10775
10775
|
U0.prototype.sign = function(e, t) {
|
|
10776
|
-
e =
|
|
10776
|
+
e = Wn(e);
|
|
10777
10777
|
var r = this.keyFromSecret(t), a = this.hashInt(r.messagePrefix(), e), i = this.g.mul(a), y = this.encodePoint(i), x = this.hashInt(y, r.pubBytes(), e).mul(r.priv()), u = a.add(x).umod(this.curve.n);
|
|
10778
10778
|
return this.makeSignature({ R: i, S: u, Rencoded: y });
|
|
10779
10779
|
};
|
|
10780
10780
|
U0.prototype.verify = function(e, t, r) {
|
|
10781
|
-
e =
|
|
10781
|
+
e = Wn(e), t = this.makeSignature(t);
|
|
10782
10782
|
var a = this.keyFromPublic(r), i = this.hashInt(t.Rencoded(), a.pubBytes(), e), y = this.g.mul(t.S()), x = t.R().add(a.pub().mul(i));
|
|
10783
10783
|
return x.eq(y);
|
|
10784
10784
|
};
|
|
@@ -10794,7 +10794,7 @@ U0.prototype.keyFromSecret = function(e) {
|
|
|
10794
10794
|
return Yn.fromSecret(this, e);
|
|
10795
10795
|
};
|
|
10796
10796
|
U0.prototype.makeSignature = function(e) {
|
|
10797
|
-
return e instanceof
|
|
10797
|
+
return e instanceof Vi ? e : new Vi(this, e);
|
|
10798
10798
|
};
|
|
10799
10799
|
U0.prototype.encodePoint = function(e) {
|
|
10800
10800
|
var t = e.getY().toArray("le", this.encodingLength);
|
|
@@ -10816,9 +10816,9 @@ U0.prototype.isPoint = function(e) {
|
|
|
10816
10816
|
};
|
|
10817
10817
|
(function(f) {
|
|
10818
10818
|
var e = f;
|
|
10819
|
-
e.version = bs.version, e.utils = Y0, e.rand =
|
|
10820
|
-
})(
|
|
10821
|
-
var
|
|
10819
|
+
e.version = bs.version, e.utils = Y0, e.rand = mn, e.curve = Wf, e.curves = Cr, e.ec = dc, e.eddsa = gc;
|
|
10820
|
+
})(yn);
|
|
10821
|
+
var Kn = { exports: {} };
|
|
10822
10822
|
(function(f) {
|
|
10823
10823
|
(function(e) {
|
|
10824
10824
|
var t = function(l) {
|
|
@@ -10864,7 +10864,7 @@ var jn = { exports: {} };
|
|
|
10864
10864
|
P(l, _, m, s);
|
|
10865
10865
|
}
|
|
10866
10866
|
var $ = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
|
|
10867
|
-
function
|
|
10867
|
+
function K(l, _, m, s, M, p, I) {
|
|
10868
10868
|
var L = new Uint8Array(16), V = new Uint8Array(64), ne, fe;
|
|
10869
10869
|
for (fe = 0; fe < 16; fe++)
|
|
10870
10870
|
L[fe] = 0;
|
|
@@ -10912,7 +10912,7 @@ var jn = { exports: {} };
|
|
|
10912
10912
|
H(L, p, I, $);
|
|
10913
10913
|
for (var V = new Uint8Array(8), ne = 0; ne < 8; ne++)
|
|
10914
10914
|
V[ne] = p[ne + 16];
|
|
10915
|
-
return
|
|
10915
|
+
return K(l, _, m, s, M, V, L);
|
|
10916
10916
|
}
|
|
10917
10917
|
var A = function(l) {
|
|
10918
10918
|
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;
|
|
@@ -10920,8 +10920,8 @@ var jn = { exports: {} };
|
|
|
10920
10920
|
_ = l[0] & 255 | (l[1] & 255) << 8, this.r[0] = _ & 8191, m = l[2] & 255 | (l[3] & 255) << 8, this.r[1] = (_ >>> 13 | m << 3) & 8191, s = l[4] & 255 | (l[5] & 255) << 8, this.r[2] = (m >>> 10 | s << 6) & 7939, M = l[6] & 255 | (l[7] & 255) << 8, this.r[3] = (s >>> 7 | M << 9) & 8191, p = l[8] & 255 | (l[9] & 255) << 8, this.r[4] = (M >>> 4 | p << 12) & 255, this.r[5] = p >>> 1 & 8190, I = l[10] & 255 | (l[11] & 255) << 8, this.r[6] = (p >>> 14 | I << 2) & 8191, L = l[12] & 255 | (l[13] & 255) << 8, this.r[7] = (I >>> 11 | L << 5) & 8065, V = l[14] & 255 | (l[15] & 255) << 8, this.r[8] = (L >>> 8 | V << 8) & 8191, this.r[9] = V >>> 5 & 127, this.pad[0] = l[16] & 255 | (l[17] & 255) << 8, this.pad[1] = l[18] & 255 | (l[19] & 255) << 8, this.pad[2] = l[20] & 255 | (l[21] & 255) << 8, this.pad[3] = l[22] & 255 | (l[23] & 255) << 8, this.pad[4] = l[24] & 255 | (l[25] & 255) << 8, this.pad[5] = l[26] & 255 | (l[27] & 255) << 8, this.pad[6] = l[28] & 255 | (l[29] & 255) << 8, this.pad[7] = l[30] & 255 | (l[31] & 255) << 8;
|
|
10921
10921
|
};
|
|
10922
10922
|
A.prototype.blocks = function(l, _, m) {
|
|
10923
|
-
for (var s = this.fin ? 0 : 2048, M, p, I, L, V, ne, fe, he, te, xe, ue, ve, ge, me, _e, pe, de, ye, oe, le = this.h[0], be = this.h[1], se = this.h[2], Z = this.h[3], G = this.h[4], ie = this.h[5], J = this.h[6], ee = this.h[7], ae = this.h[8], Ee = this.h[9], Be = this.r[0], De = this.r[1], Ce = this.r[2], O = this.r[3], Te = this.r[4], Xe = this.r[5], Ze = this.r[6], ke = this.r[7],
|
|
10924
|
-
M = l[_ + 0] & 255 | (l[_ + 1] & 255) << 8, le += M & 8191, p = l[_ + 2] & 255 | (l[_ + 3] & 255) << 8, be += (M >>> 13 | p << 3) & 8191, I = l[_ + 4] & 255 | (l[_ + 5] & 255) << 8, se += (p >>> 10 | I << 6) & 8191, L = l[_ + 6] & 255 | (l[_ + 7] & 255) << 8, Z += (I >>> 7 | L << 9) & 8191, V = l[_ + 8] & 255 | (l[_ + 9] & 255) << 8, G += (L >>> 4 | V << 12) & 8191, ie += V >>> 1 & 8191, ne = l[_ + 10] & 255 | (l[_ + 11] & 255) << 8, J += (V >>> 14 | ne << 2) & 8191, fe = l[_ + 12] & 255 | (l[_ + 13] & 255) << 8, ee += (ne >>> 11 | fe << 5) & 8191, he = l[_ + 14] & 255 | (l[_ + 15] & 255) << 8, ae += (fe >>> 8 | he << 8) & 8191, Ee += he >>> 5 | s, te = 0, xe = te, xe += le * Be, xe += be * (5 * je), xe += se * (5 *
|
|
10923
|
+
for (var s = this.fin ? 0 : 2048, M, p, I, L, V, ne, fe, he, te, xe, ue, ve, ge, me, _e, pe, de, ye, oe, le = this.h[0], be = this.h[1], se = this.h[2], Z = this.h[3], G = this.h[4], ie = this.h[5], J = this.h[6], ee = this.h[7], ae = this.h[8], Ee = this.h[9], Be = this.r[0], De = this.r[1], Ce = this.r[2], O = this.r[3], Te = this.r[4], Xe = this.r[5], Ze = this.r[6], ke = this.r[7], Ke = this.r[8], je = this.r[9]; m >= 16; )
|
|
10924
|
+
M = l[_ + 0] & 255 | (l[_ + 1] & 255) << 8, le += M & 8191, p = l[_ + 2] & 255 | (l[_ + 3] & 255) << 8, be += (M >>> 13 | p << 3) & 8191, I = l[_ + 4] & 255 | (l[_ + 5] & 255) << 8, se += (p >>> 10 | I << 6) & 8191, L = l[_ + 6] & 255 | (l[_ + 7] & 255) << 8, Z += (I >>> 7 | L << 9) & 8191, V = l[_ + 8] & 255 | (l[_ + 9] & 255) << 8, G += (L >>> 4 | V << 12) & 8191, ie += V >>> 1 & 8191, ne = l[_ + 10] & 255 | (l[_ + 11] & 255) << 8, J += (V >>> 14 | ne << 2) & 8191, fe = l[_ + 12] & 255 | (l[_ + 13] & 255) << 8, ee += (ne >>> 11 | fe << 5) & 8191, he = l[_ + 14] & 255 | (l[_ + 15] & 255) << 8, ae += (fe >>> 8 | he << 8) & 8191, Ee += he >>> 5 | s, te = 0, xe = te, xe += le * Be, xe += be * (5 * je), xe += se * (5 * Ke), xe += Z * (5 * ke), xe += G * (5 * Ze), te = xe >>> 13, xe &= 8191, xe += ie * (5 * Xe), xe += J * (5 * Te), xe += ee * (5 * O), xe += ae * (5 * Ce), xe += Ee * (5 * De), te += xe >>> 13, xe &= 8191, ue = te, ue += le * De, ue += be * Be, ue += se * (5 * je), ue += Z * (5 * Ke), ue += G * (5 * ke), te = ue >>> 13, ue &= 8191, ue += ie * (5 * Ze), ue += J * (5 * Xe), ue += ee * (5 * Te), ue += ae * (5 * O), ue += Ee * (5 * Ce), te += ue >>> 13, ue &= 8191, ve = te, ve += le * Ce, ve += be * De, ve += se * Be, ve += Z * (5 * je), ve += G * (5 * Ke), te = ve >>> 13, ve &= 8191, ve += ie * (5 * ke), ve += J * (5 * Ze), ve += ee * (5 * Xe), ve += ae * (5 * Te), ve += Ee * (5 * O), te += ve >>> 13, ve &= 8191, ge = te, ge += le * O, ge += be * Ce, ge += se * De, ge += Z * Be, ge += G * (5 * je), te = ge >>> 13, ge &= 8191, ge += ie * (5 * Ke), ge += J * (5 * ke), ge += ee * (5 * Ze), ge += ae * (5 * Xe), ge += Ee * (5 * Te), te += ge >>> 13, ge &= 8191, me = te, me += le * Te, me += be * O, me += se * Ce, me += Z * De, me += G * Be, te = me >>> 13, me &= 8191, me += ie * (5 * je), me += J * (5 * Ke), me += ee * (5 * ke), me += ae * (5 * Ze), me += Ee * (5 * Xe), te += me >>> 13, me &= 8191, _e = te, _e += le * Xe, _e += be * Te, _e += se * O, _e += Z * Ce, _e += G * De, te = _e >>> 13, _e &= 8191, _e += ie * Be, _e += J * (5 * je), _e += ee * (5 * Ke), _e += ae * (5 * ke), _e += Ee * (5 * Ze), te += _e >>> 13, _e &= 8191, pe = te, pe += le * Ze, pe += be * Xe, pe += se * Te, pe += Z * O, pe += G * Ce, te = pe >>> 13, pe &= 8191, pe += ie * De, pe += J * Be, pe += ee * (5 * je), pe += ae * (5 * Ke), pe += Ee * (5 * ke), te += pe >>> 13, pe &= 8191, de = te, de += le * ke, de += be * Ze, de += se * Xe, de += Z * Te, de += G * O, te = de >>> 13, de &= 8191, de += ie * Ce, de += J * De, de += ee * Be, de += ae * (5 * je), de += Ee * (5 * Ke), te += de >>> 13, de &= 8191, ye = te, ye += le * Ke, ye += be * ke, ye += se * Ze, ye += Z * Xe, ye += G * Te, te = ye >>> 13, ye &= 8191, ye += ie * O, ye += J * Ce, ye += ee * De, ye += ae * Be, ye += Ee * (5 * je), te += ye >>> 13, ye &= 8191, oe = te, oe += le * je, oe += be * Ke, oe += se * ke, oe += Z * Ze, oe += G * Xe, te = oe >>> 13, oe &= 8191, oe += ie * Te, oe += J * O, oe += ee * Ce, oe += ae * De, oe += Ee * Be, te += oe >>> 13, oe &= 8191, te = (te << 2) + te | 0, te = te + xe | 0, xe = te & 8191, te = te >>> 13, ue += te, le = xe, be = ue, se = ve, Z = ge, G = me, ie = _e, J = pe, ee = de, ae = ye, Ee = oe, _ += 16, m -= 16;
|
|
10925
10925
|
this.h[0] = le, this.h[1] = be, this.h[2] = se, this.h[3] = Z, this.h[4] = G, this.h[5] = ie, this.h[6] = J, this.h[7] = ee, this.h[8] = ae, this.h[9] = Ee;
|
|
10926
10926
|
}, A.prototype.finish = function(l, _) {
|
|
10927
10927
|
var m = new Uint16Array(10), s, M, p, I;
|
|
@@ -11021,7 +11021,7 @@ var jn = { exports: {} };
|
|
|
11021
11021
|
l[m] = _[2 * m] + (_[2 * m + 1] << 8);
|
|
11022
11022
|
l[15] &= 32767;
|
|
11023
11023
|
}
|
|
11024
|
-
function
|
|
11024
|
+
function Y(l, _, m) {
|
|
11025
11025
|
for (var s = 0; s < 16; s++)
|
|
11026
11026
|
l[s] = _[s] + m[s];
|
|
11027
11027
|
}
|
|
@@ -11030,8 +11030,8 @@ var jn = { exports: {} };
|
|
|
11030
11030
|
l[s] = _[s] - m[s];
|
|
11031
11031
|
}
|
|
11032
11032
|
function re(l, _, m) {
|
|
11033
|
-
var s, M, p = 0, I = 0, L = 0, V = 0, ne = 0, fe = 0, he = 0, te = 0, xe = 0, ue = 0, ve = 0, ge = 0, me = 0, _e = 0, pe = 0, de = 0, ye = 0, oe = 0, le = 0, be = 0, se = 0, Z = 0, G = 0, ie = 0, J = 0, ee = 0, ae = 0, Ee = 0, Be = 0, De = 0, Ce = 0, O = m[0], Te = m[1], Xe = m[2], Ze = m[3], ke = m[4],
|
|
11034
|
-
s = _[0], p += s * O, I += s * Te, L += s * Xe, V += s * Ze, ne += s * ke, fe += s *
|
|
11033
|
+
var s, M, p = 0, I = 0, L = 0, V = 0, ne = 0, fe = 0, he = 0, te = 0, xe = 0, ue = 0, ve = 0, ge = 0, me = 0, _e = 0, pe = 0, de = 0, ye = 0, oe = 0, le = 0, be = 0, se = 0, Z = 0, G = 0, ie = 0, J = 0, ee = 0, ae = 0, Ee = 0, Be = 0, De = 0, Ce = 0, O = m[0], Te = m[1], Xe = m[2], Ze = m[3], ke = m[4], Ke = m[5], je = m[6], m0 = m[7], h0 = m[8], b0 = m[9], p0 = m[10], y0 = m[11], E0 = m[12], k0 = m[13], P0 = m[14], I0 = m[15];
|
|
11034
|
+
s = _[0], p += s * O, I += s * Te, L += s * Xe, V += s * Ze, ne += s * ke, fe += s * Ke, he += s * je, te += s * m0, xe += s * h0, ue += s * b0, ve += s * p0, ge += s * y0, me += s * E0, _e += s * k0, pe += s * P0, de += s * I0, s = _[1], I += s * O, L += s * Te, V += s * Xe, ne += s * Ze, fe += s * ke, he += s * Ke, te += s * je, xe += s * m0, ue += s * h0, ve += s * b0, ge += s * p0, me += s * y0, _e += s * E0, pe += s * k0, de += s * P0, ye += s * I0, s = _[2], L += s * O, V += s * Te, ne += s * Xe, fe += s * Ze, he += s * ke, te += s * Ke, xe += s * je, ue += s * m0, ve += s * h0, ge += s * b0, me += s * p0, _e += s * y0, pe += s * E0, de += s * k0, ye += s * P0, oe += s * I0, s = _[3], V += s * O, ne += s * Te, fe += s * Xe, he += s * Ze, te += s * ke, xe += s * Ke, ue += s * je, ve += s * m0, ge += s * h0, me += s * b0, _e += s * p0, pe += s * y0, de += s * E0, ye += s * k0, oe += s * P0, le += s * I0, s = _[4], ne += s * O, fe += s * Te, he += s * Xe, te += s * Ze, xe += s * ke, ue += s * Ke, ve += s * je, ge += s * m0, me += s * h0, _e += s * b0, pe += s * p0, de += s * y0, ye += s * E0, oe += s * k0, le += s * P0, be += s * I0, s = _[5], fe += s * O, he += s * Te, te += s * Xe, xe += s * Ze, ue += s * ke, ve += s * Ke, ge += s * je, me += s * m0, _e += s * h0, pe += s * b0, de += s * p0, ye += s * y0, oe += s * E0, le += s * k0, be += s * P0, se += s * I0, s = _[6], he += s * O, te += s * Te, xe += s * Xe, ue += s * Ze, ve += s * ke, ge += s * Ke, me += s * je, _e += s * m0, pe += s * h0, de += s * b0, ye += s * p0, oe += s * y0, le += s * E0, be += s * k0, se += s * P0, Z += s * I0, s = _[7], te += s * O, xe += s * Te, ue += s * Xe, ve += s * Ze, ge += s * ke, me += s * Ke, _e += s * je, pe += s * m0, de += s * h0, ye += s * b0, oe += s * p0, le += s * y0, be += s * E0, se += s * k0, Z += s * P0, G += s * I0, s = _[8], xe += s * O, ue += s * Te, ve += s * Xe, ge += s * Ze, me += s * ke, _e += s * Ke, pe += s * je, de += s * m0, ye += s * h0, oe += s * b0, le += s * p0, be += s * y0, se += s * E0, Z += s * k0, G += s * P0, ie += s * I0, s = _[9], ue += s * O, ve += s * Te, ge += s * Xe, me += s * Ze, _e += s * ke, pe += s * Ke, de += s * je, ye += s * m0, oe += s * h0, le += s * b0, be += s * p0, se += s * y0, Z += s * E0, G += s * k0, ie += s * P0, J += s * I0, s = _[10], ve += s * O, ge += s * Te, me += s * Xe, _e += s * Ze, pe += s * ke, de += s * Ke, ye += s * je, oe += s * m0, le += s * h0, be += s * b0, se += s * p0, Z += s * y0, G += s * E0, ie += s * k0, J += s * P0, ee += s * I0, s = _[11], ge += s * O, me += s * Te, _e += s * Xe, pe += s * Ze, de += s * ke, ye += s * Ke, oe += s * je, le += s * m0, be += s * h0, se += s * b0, Z += s * p0, G += s * y0, ie += s * E0, J += s * k0, ee += s * P0, ae += s * I0, s = _[12], me += s * O, _e += s * Te, pe += s * Xe, de += s * Ze, ye += s * ke, oe += s * Ke, le += s * je, be += s * m0, se += s * h0, Z += s * b0, G += s * p0, ie += s * y0, J += s * E0, ee += s * k0, ae += s * P0, Ee += s * I0, s = _[13], _e += s * O, pe += s * Te, de += s * Xe, ye += s * Ze, oe += s * ke, le += s * Ke, be += s * je, se += s * m0, Z += s * h0, G += s * b0, ie += s * p0, J += s * y0, ee += s * E0, ae += s * k0, Ee += s * P0, Be += s * I0, s = _[14], pe += s * O, de += s * Te, ye += s * Xe, oe += s * Ze, le += s * ke, be += s * Ke, se += s * je, Z += s * m0, G += s * h0, ie += s * b0, J += s * p0, ee += s * y0, ae += s * E0, Ee += s * k0, Be += s * P0, De += s * I0, s = _[15], de += s * O, ye += s * Te, oe += s * Xe, le += s * Ze, be += s * ke, se += s * Ke, Z += s * je, G += s * m0, ie += s * h0, J += s * b0, ee += s * p0, ae += s * y0, Ee += s * E0, Be += s * k0, De += s * P0, Ce += s * I0, p += 38 * ye, I += 38 * oe, L += 38 * le, V += 38 * be, ne += 38 * se, fe += 38 * Z, he += 38 * G, te += 38 * ie, xe += 38 * J, ue += 38 * ee, ve += 38 * ae, ge += 38 * Ee, me += 38 * Be, _e += 38 * De, pe += 38 * Ce, M = 1, s = p + M + 65535, M = Math.floor(s / 65536), p = s - M * 65536, s = I + M + 65535, M = Math.floor(s / 65536), I = s - M * 65536, s = L + M + 65535, M = Math.floor(s / 65536), L = s - M * 65536, s = V + M + 65535, M = Math.floor(s / 65536), V = s - M * 65536, s = ne + M + 65535, M = Math.floor(s / 65536), ne = s - M * 65536, s = fe + M + 65535, M = Math.floor(s / 65536), fe = s - M * 65536, s = he + M + 65535, M = Math.floor(s / 65536), he = s - M * 65536, s = te + M + 65535, M = Math.floor(s / 65536), te = s - M * 65536, s = xe + M + 65535, M = Math.floor(s / 65536), xe = s - M * 65536, s = ue + M + 65535, M = Math.floor(s / 65536), ue = s - M * 65536, s = ve + M + 65535, M = Math.floor(s / 65536), ve = s - M * 65536, s = ge + M + 65535, M = Math.floor(s / 65536), ge = s - M * 65536, s = me + M + 65535, M = Math.floor(s / 65536), me = s - M * 65536, s = _e + M + 65535, M = Math.floor(s / 65536), _e = s - M * 65536, s = pe + M + 65535, M = Math.floor(s / 65536), pe = s - M * 65536, s = de + M + 65535, M = Math.floor(s / 65536), de = s - M * 65536, p += M - 1 + 37 * (M - 1), M = 1, s = p + M + 65535, M = Math.floor(s / 65536), p = s - M * 65536, s = I + M + 65535, M = Math.floor(s / 65536), I = s - M * 65536, s = L + M + 65535, M = Math.floor(s / 65536), L = s - M * 65536, s = V + M + 65535, M = Math.floor(s / 65536), V = s - M * 65536, s = ne + M + 65535, M = Math.floor(s / 65536), ne = s - M * 65536, s = fe + M + 65535, M = Math.floor(s / 65536), fe = s - M * 65536, s = he + M + 65535, M = Math.floor(s / 65536), he = s - M * 65536, s = te + M + 65535, M = Math.floor(s / 65536), te = s - M * 65536, s = xe + M + 65535, M = Math.floor(s / 65536), xe = s - M * 65536, s = ue + M + 65535, M = Math.floor(s / 65536), ue = s - M * 65536, s = ve + M + 65535, M = Math.floor(s / 65536), ve = s - M * 65536, s = ge + M + 65535, M = Math.floor(s / 65536), ge = s - M * 65536, s = me + M + 65535, M = Math.floor(s / 65536), me = s - M * 65536, s = _e + M + 65535, M = Math.floor(s / 65536), _e = s - M * 65536, s = pe + M + 65535, M = Math.floor(s / 65536), pe = s - M * 65536, s = de + M + 65535, M = Math.floor(s / 65536), de = s - M * 65536, p += M - 1 + 37 * (M - 1), l[0] = p, l[1] = I, l[2] = L, l[3] = V, l[4] = ne, l[5] = fe, l[6] = he, l[7] = te, l[8] = xe, l[9] = ue, l[10] = ve, l[11] = ge, l[12] = me, l[13] = _e, l[14] = pe, l[15] = de;
|
|
11035
11035
|
}
|
|
11036
11036
|
function ce(l, _) {
|
|
11037
11037
|
re(l, _, _);
|
|
@@ -11061,7 +11061,7 @@ var jn = { exports: {} };
|
|
|
11061
11061
|
for (s[31] = _[31] & 127 | 64, s[0] &= 248, j(M, m), I = 0; I < 16; I++)
|
|
11062
11062
|
V[I] = M[I], fe[I] = L[I] = ne[I] = 0;
|
|
11063
11063
|
for (L[0] = fe[0] = 1, I = 254; I >= 0; --I)
|
|
11064
|
-
p = s[I >>> 3] >>> (I & 7) & 1, q(L, V, p), q(ne, fe, p),
|
|
11064
|
+
p = s[I >>> 3] >>> (I & 7) & 1, q(L, V, p), q(ne, fe, p), Y(he, L, ne), W(L, L, ne), Y(ne, V, fe), W(V, V, fe), ce(fe, he), ce(te, L), re(L, ne, L), re(ne, V, he), Y(he, L, ne), W(L, L, ne), ce(V, L), W(ne, fe, te), re(L, ne, u), Y(L, L, fe), re(ne, ne, L), re(L, fe, te), re(fe, V, M), ce(V, he), q(L, V, p), q(ne, fe, p);
|
|
11065
11065
|
for (I = 0; I < 16; I++)
|
|
11066
11066
|
M[I + 16] = L[I], M[I + 32] = ne[I], M[I + 48] = V[I], M[I + 64] = fe[I];
|
|
11067
11067
|
var xe = M.subarray(32), ue = M.subarray(16);
|
|
@@ -11070,7 +11070,7 @@ var jn = { exports: {} };
|
|
|
11070
11070
|
function Fe(l, _) {
|
|
11071
11071
|
return Me(l, _, i);
|
|
11072
11072
|
}
|
|
11073
|
-
function
|
|
11073
|
+
function Z0(l, _) {
|
|
11074
11074
|
return r(_, 32), Fe(l, _);
|
|
11075
11075
|
}
|
|
11076
11076
|
function We(l, _, m) {
|
|
@@ -11082,7 +11082,7 @@ var jn = { exports: {} };
|
|
|
11082
11082
|
var I = new Uint8Array(32);
|
|
11083
11083
|
return We(I, M, p), Oe(l, _, m, s, I);
|
|
11084
11084
|
}
|
|
11085
|
-
function
|
|
11085
|
+
function Ye(l, _, m, s, M, p) {
|
|
11086
11086
|
var I = new Uint8Array(32);
|
|
11087
11087
|
return We(I, M, p), _0(l, _, m, s, I);
|
|
11088
11088
|
}
|
|
@@ -11249,14 +11249,14 @@ var jn = { exports: {} };
|
|
|
11249
11249
|
1246189591
|
|
11250
11250
|
];
|
|
11251
11251
|
function Qe(l, _, m, s) {
|
|
11252
|
-
for (var M = new Int32Array(16), p = new Int32Array(16), I, L, V, ne, fe, he, te, xe, ue, ve, ge, me, _e, pe, de, ye, oe, le, be, se, Z, G, ie, J, ee, ae, Ee = l[0], Be = l[1], De = l[2], Ce = l[3], O = l[4], Te = l[5], Xe = l[6], Ze = l[7], ke = _[0],
|
|
11252
|
+
for (var M = new Int32Array(16), p = new Int32Array(16), I, L, V, ne, fe, he, te, xe, ue, ve, ge, me, _e, pe, de, ye, oe, le, be, se, Z, G, ie, J, ee, ae, Ee = l[0], Be = l[1], De = l[2], Ce = l[3], O = l[4], Te = l[5], Xe = l[6], Ze = l[7], ke = _[0], Ke = _[1], je = _[2], m0 = _[3], h0 = _[4], b0 = _[5], p0 = _[6], y0 = _[7], E0 = 0; s >= 128; ) {
|
|
11253
11253
|
for (be = 0; be < 16; be++)
|
|
11254
11254
|
se = 8 * be + E0, M[be] = m[se + 0] << 24 | m[se + 1] << 16 | m[se + 2] << 8 | m[se + 3], p[be] = m[se + 4] << 24 | m[se + 5] << 16 | m[se + 6] << 8 | m[se + 7];
|
|
11255
11255
|
for (be = 0; be < 80; be++)
|
|
11256
|
-
if (I = Ee, L = Be, V = De, ne = Ce, fe = O, he = Te, te = Xe, xe = Ze, ue = ke, ve =
|
|
11256
|
+
if (I = Ee, L = Be, V = De, ne = Ce, fe = O, he = Te, te = Xe, xe = Ze, ue = ke, ve = Ke, ge = je, me = m0, _e = h0, pe = b0, de = p0, ye = y0, Z = Ze, G = y0, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = (O >>> 14 | h0 << 18) ^ (O >>> 18 | h0 << 14) ^ (h0 >>> 9 | O << 23), G = (h0 >>> 14 | O << 18) ^ (h0 >>> 18 | O << 14) ^ (O >>> 9 | h0 << 23), ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, Z = O & Te ^ ~O & Xe, G = h0 & b0 ^ ~h0 & p0, ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, Z = $0[be * 2], G = $0[be * 2 + 1], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, Z = M[be % 16], G = p[be % 16], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, oe = ee & 65535 | ae << 16, le = ie & 65535 | J << 16, Z = oe, G = le, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = (Ee >>> 28 | ke << 4) ^ (ke >>> 2 | Ee << 30) ^ (ke >>> 7 | Ee << 25), G = (ke >>> 28 | Ee << 4) ^ (Ee >>> 2 | ke << 30) ^ (Ee >>> 7 | ke << 25), ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, Z = Ee & Be ^ Ee & De ^ Be & De, G = ke & Ke ^ ke & je ^ Ke & je, ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, xe = ee & 65535 | ae << 16, ye = ie & 65535 | J << 16, Z = ne, G = me, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = oe, G = le, ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, ne = ee & 65535 | ae << 16, me = ie & 65535 | J << 16, Be = I, De = L, Ce = V, O = ne, Te = fe, Xe = he, Ze = te, Ee = xe, Ke = ue, je = ve, m0 = ge, h0 = me, b0 = _e, p0 = pe, y0 = de, ke = ye, be % 16 === 15)
|
|
11257
11257
|
for (se = 0; se < 16; se++)
|
|
11258
11258
|
Z = M[se], G = p[se], ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = M[(se + 9) % 16], G = p[(se + 9) % 16], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, oe = M[(se + 1) % 16], le = p[(se + 1) % 16], Z = (oe >>> 1 | le << 31) ^ (oe >>> 8 | le << 24) ^ oe >>> 7, G = (le >>> 1 | oe << 31) ^ (le >>> 8 | oe << 24) ^ (le >>> 7 | oe << 25), ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, oe = M[(se + 14) % 16], le = p[(se + 14) % 16], Z = (oe >>> 19 | le << 13) ^ (le >>> 29 | oe << 3) ^ oe >>> 6, G = (le >>> 19 | oe << 13) ^ (oe >>> 29 | le << 3) ^ (le >>> 6 | oe << 26), ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, M[se] = ee & 65535 | ae << 16, p[se] = ie & 65535 | J << 16;
|
|
11259
|
-
Z = Ee, G = ke, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = l[0], G = _[0], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, l[0] = Ee = ee & 65535 | ae << 16, _[0] = ke = ie & 65535 | J << 16, Z = Be, G =
|
|
11259
|
+
Z = Ee, G = ke, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = l[0], G = _[0], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, l[0] = Ee = ee & 65535 | ae << 16, _[0] = ke = ie & 65535 | J << 16, Z = Be, G = Ke, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = l[1], G = _[1], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, l[1] = Be = ee & 65535 | ae << 16, _[1] = Ke = ie & 65535 | J << 16, Z = De, G = je, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = l[2], G = _[2], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, l[2] = De = ee & 65535 | ae << 16, _[2] = je = ie & 65535 | J << 16, Z = Ce, G = m0, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = l[3], G = _[3], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, l[3] = Ce = ee & 65535 | ae << 16, _[3] = m0 = ie & 65535 | J << 16, Z = O, G = h0, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = l[4], G = _[4], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, l[4] = O = ee & 65535 | ae << 16, _[4] = h0 = ie & 65535 | J << 16, Z = Te, G = b0, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = l[5], G = _[5], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, l[5] = Te = ee & 65535 | ae << 16, _[5] = b0 = ie & 65535 | J << 16, Z = Xe, G = p0, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = l[6], G = _[6], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, l[6] = Xe = ee & 65535 | ae << 16, _[6] = p0 = ie & 65535 | J << 16, Z = Ze, G = y0, ie = G & 65535, J = G >>> 16, ee = Z & 65535, ae = Z >>> 16, Z = l[7], G = _[7], ie += G & 65535, J += G >>> 16, ee += Z & 65535, ae += Z >>> 16, J += ie >>> 16, ee += J >>> 16, ae += ee >>> 16, l[7] = Ze = ee & 65535 | ae << 16, _[7] = y0 = ie & 65535 | J << 16, E0 += 128, s -= 128;
|
|
11260
11260
|
}
|
|
11261
11261
|
return s;
|
|
11262
11262
|
}
|
|
@@ -11270,7 +11270,7 @@ var jn = { exports: {} };
|
|
|
11270
11270
|
}
|
|
11271
11271
|
function O0(l, _) {
|
|
11272
11272
|
var m = t(), s = t(), M = t(), p = t(), I = t(), L = t(), V = t(), ne = t(), fe = t();
|
|
11273
|
-
W(m, l[1], l[0]), W(fe, _[1], _[0]), re(m, m, fe),
|
|
11273
|
+
W(m, l[1], l[0]), W(fe, _[1], _[0]), re(m, m, fe), Y(s, l[0], l[1]), Y(fe, _[0], _[1]), re(s, s, fe), re(M, l[3], _[3]), re(M, M, c), re(p, l[2], _[2]), Y(p, p, p), W(I, s, m), W(L, p, M), Y(V, p, M), Y(ne, s, m), re(l[0], I, L), re(l[1], ne, V), re(l[2], V, L), re(l[3], I, ne);
|
|
11274
11274
|
}
|
|
11275
11275
|
function Ne(l, _, m) {
|
|
11276
11276
|
var s;
|
|
@@ -11319,7 +11319,7 @@ var jn = { exports: {} };
|
|
|
11319
11319
|
l[m] = 0;
|
|
11320
11320
|
qe(l, _);
|
|
11321
11321
|
}
|
|
11322
|
-
function
|
|
11322
|
+
function G0(l, _, m, s) {
|
|
11323
11323
|
var M = new Uint8Array(64), p = new Uint8Array(64), I = new Uint8Array(64), L, V, ne = new Float64Array(64), fe = [t(), t(), t(), t()];
|
|
11324
11324
|
ze(M, s, 32), M[0] &= 248, M[31] &= 127, M[31] |= 64;
|
|
11325
11325
|
var he = m + 64;
|
|
@@ -11340,7 +11340,7 @@ var jn = { exports: {} };
|
|
|
11340
11340
|
}
|
|
11341
11341
|
function l0(l, _) {
|
|
11342
11342
|
var m = t(), s = t(), M = t(), p = t(), I = t(), L = t(), V = t();
|
|
11343
|
-
return F(l[2], x), j(l[1], _), ce(M, l[1]), re(p, M, o), W(M, M, l[2]),
|
|
11343
|
+
return F(l[2], x), j(l[1], _), ce(M, l[1]), re(p, M, o), W(M, M, l[2]), Y(p, l[2], p), ce(I, p), ce(L, I), re(V, L, I), re(m, V, M), re(m, m, p), Ae(m, m), re(m, m, M), re(m, m, p), re(m, m, p), re(l[0], m, p), ce(s, l[0]), re(s, s, p), h(s, M) && re(l[0], l[0], B), ce(s, l[0]), re(s, s, p), h(s, M) ? -1 : (E(l[0]) === _[31] >> 7 && W(l[0], y, l[0]), re(l[3], l[0], l[1]), 0);
|
|
11344
11344
|
}
|
|
11345
11345
|
function He(l, _, m, s) {
|
|
11346
11346
|
var M, p = new Uint8Array(32), I = new Uint8Array(64), L = [t(), t(), t(), t()], V = [t(), t(), t(), t()];
|
|
@@ -11359,12 +11359,12 @@ var jn = { exports: {} };
|
|
|
11359
11359
|
l[M] = _[M + 64];
|
|
11360
11360
|
return m;
|
|
11361
11361
|
}
|
|
11362
|
-
var
|
|
11362
|
+
var z0 = 32, a0 = 24, r0 = 32, N0 = 16, i0 = 32, s0 = 32, W0 = 32, e0 = 32, n0 = 32, q0 = a0, o0 = r0, x0 = N0, D0 = 64, t0 = 32, Ve = 64, tt = 32, c0 = 64;
|
|
11363
11363
|
e.lowlevel = {
|
|
11364
11364
|
crypto_core_hsalsa20: H,
|
|
11365
11365
|
crypto_stream_xor: U,
|
|
11366
11366
|
crypto_stream: Q,
|
|
11367
|
-
crypto_stream_salsa20_xor:
|
|
11367
|
+
crypto_stream_salsa20_xor: K,
|
|
11368
11368
|
crypto_stream_salsa20: X,
|
|
11369
11369
|
crypto_onetimeauth: n,
|
|
11370
11370
|
crypto_onetimeauth_verify: d,
|
|
@@ -11377,28 +11377,28 @@ var jn = { exports: {} };
|
|
|
11377
11377
|
crypto_box_beforenm: We,
|
|
11378
11378
|
crypto_box_afternm: Oe,
|
|
11379
11379
|
crypto_box: Ge,
|
|
11380
|
-
crypto_box_open:
|
|
11381
|
-
crypto_box_keypair:
|
|
11380
|
+
crypto_box_open: Ye,
|
|
11381
|
+
crypto_box_keypair: Z0,
|
|
11382
11382
|
crypto_hash: ze,
|
|
11383
|
-
crypto_sign:
|
|
11383
|
+
crypto_sign: G0,
|
|
11384
11384
|
crypto_sign_keypair: f0,
|
|
11385
11385
|
crypto_sign_open: He,
|
|
11386
|
-
crypto_secretbox_KEYBYTES:
|
|
11386
|
+
crypto_secretbox_KEYBYTES: z0,
|
|
11387
11387
|
crypto_secretbox_NONCEBYTES: a0,
|
|
11388
11388
|
crypto_secretbox_ZEROBYTES: r0,
|
|
11389
|
-
crypto_secretbox_BOXZEROBYTES:
|
|
11389
|
+
crypto_secretbox_BOXZEROBYTES: N0,
|
|
11390
11390
|
crypto_scalarmult_BYTES: i0,
|
|
11391
11391
|
crypto_scalarmult_SCALARBYTES: s0,
|
|
11392
11392
|
crypto_box_PUBLICKEYBYTES: W0,
|
|
11393
11393
|
crypto_box_SECRETKEYBYTES: e0,
|
|
11394
11394
|
crypto_box_BEFORENMBYTES: n0,
|
|
11395
|
-
crypto_box_NONCEBYTES:
|
|
11395
|
+
crypto_box_NONCEBYTES: q0,
|
|
11396
11396
|
crypto_box_ZEROBYTES: o0,
|
|
11397
11397
|
crypto_box_BOXZEROBYTES: x0,
|
|
11398
11398
|
crypto_sign_BYTES: D0,
|
|
11399
11399
|
crypto_sign_PUBLICKEYBYTES: t0,
|
|
11400
11400
|
crypto_sign_SECRETKEYBYTES: Ve,
|
|
11401
|
-
crypto_sign_SEEDBYTES:
|
|
11401
|
+
crypto_sign_SEEDBYTES: tt,
|
|
11402
11402
|
crypto_hash_BYTES: c0,
|
|
11403
11403
|
gf: t,
|
|
11404
11404
|
D: o,
|
|
@@ -11406,7 +11406,7 @@ var jn = { exports: {} };
|
|
|
11406
11406
|
pack25519: D,
|
|
11407
11407
|
unpack25519: j,
|
|
11408
11408
|
M: re,
|
|
11409
|
-
A:
|
|
11409
|
+
A: Y,
|
|
11410
11410
|
S: ce,
|
|
11411
11411
|
Z: W,
|
|
11412
11412
|
pow2523: Ae,
|
|
@@ -11417,7 +11417,7 @@ var jn = { exports: {} };
|
|
|
11417
11417
|
scalarbase: Je
|
|
11418
11418
|
};
|
|
11419
11419
|
function d0(l, _) {
|
|
11420
|
-
if (l.length !==
|
|
11420
|
+
if (l.length !== z0)
|
|
11421
11421
|
throw new Error("bad key size");
|
|
11422
11422
|
if (_.length !== a0)
|
|
11423
11423
|
throw new Error("bad nonce size");
|
|
@@ -11444,13 +11444,13 @@ var jn = { exports: {} };
|
|
|
11444
11444
|
Ie(l, _, m), d0(m, _);
|
|
11445
11445
|
for (var s = new Uint8Array(r0 + l.length), M = new Uint8Array(s.length), p = 0; p < l.length; p++)
|
|
11446
11446
|
s[p + r0] = l[p];
|
|
11447
|
-
return g(M, s, s.length, _, m), M.subarray(
|
|
11447
|
+
return g(M, s, s.length, _, m), M.subarray(N0);
|
|
11448
11448
|
}, e.secretbox.open = function(l, _, m) {
|
|
11449
11449
|
Ie(l, _, m), d0(m, _);
|
|
11450
|
-
for (var s = new Uint8Array(
|
|
11451
|
-
s[p +
|
|
11450
|
+
for (var s = new Uint8Array(N0 + l.length), M = new Uint8Array(s.length), p = 0; p < l.length; p++)
|
|
11451
|
+
s[p + N0] = l[p];
|
|
11452
11452
|
return s.length < 32 || C(M, s, s.length, _, m) !== 0 ? null : M.subarray(r0);
|
|
11453
|
-
}, e.secretbox.keyLength =
|
|
11453
|
+
}, e.secretbox.keyLength = z0, e.secretbox.nonceLength = a0, e.secretbox.overheadLength = N0, e.scalarMult = function(l, _) {
|
|
11454
11454
|
if (Ie(l, _), l.length !== s0)
|
|
11455
11455
|
throw new Error("bad n size");
|
|
11456
11456
|
if (_.length !== i0)
|
|
@@ -11474,17 +11474,17 @@ var jn = { exports: {} };
|
|
|
11474
11474
|
return e.secretbox.open(l, _, M);
|
|
11475
11475
|
}, e.box.open.after = e.secretbox.open, e.box.keyPair = function() {
|
|
11476
11476
|
var l = new Uint8Array(W0), _ = new Uint8Array(e0);
|
|
11477
|
-
return
|
|
11477
|
+
return Z0(l, _), { publicKey: l, secretKey: _ };
|
|
11478
11478
|
}, e.box.keyPair.fromSecretKey = function(l) {
|
|
11479
11479
|
if (Ie(l), l.length !== e0)
|
|
11480
11480
|
throw new Error("bad secret key size");
|
|
11481
11481
|
var _ = new Uint8Array(W0);
|
|
11482
11482
|
return Fe(_, l), { publicKey: _, secretKey: new Uint8Array(l) };
|
|
11483
|
-
}, e.box.publicKeyLength = W0, e.box.secretKeyLength = e0, e.box.sharedKeyLength = n0, e.box.nonceLength =
|
|
11483
|
+
}, e.box.publicKeyLength = W0, e.box.secretKeyLength = e0, e.box.sharedKeyLength = n0, e.box.nonceLength = q0, e.box.overheadLength = e.secretbox.overheadLength, e.sign = function(l, _) {
|
|
11484
11484
|
if (Ie(l, _), _.length !== Ve)
|
|
11485
11485
|
throw new Error("bad secret key size");
|
|
11486
11486
|
var m = new Uint8Array(D0 + l.length);
|
|
11487
|
-
return
|
|
11487
|
+
return G0(m, l, l.length, _), m;
|
|
11488
11488
|
}, e.sign.open = function(l, _) {
|
|
11489
11489
|
if (Ie(l, _), _.length !== t0)
|
|
11490
11490
|
throw new Error("bad public key size");
|
|
@@ -11519,12 +11519,12 @@ var jn = { exports: {} };
|
|
|
11519
11519
|
_[m] = l[32 + m];
|
|
11520
11520
|
return { publicKey: _, secretKey: new Uint8Array(l) };
|
|
11521
11521
|
}, e.sign.keyPair.fromSeed = function(l) {
|
|
11522
|
-
if (Ie(l), l.length !==
|
|
11522
|
+
if (Ie(l), l.length !== tt)
|
|
11523
11523
|
throw new Error("bad seed size");
|
|
11524
11524
|
for (var _ = new Uint8Array(t0), m = new Uint8Array(Ve), s = 0; s < 32; s++)
|
|
11525
11525
|
m[s] = l[s];
|
|
11526
11526
|
return f0(_, m, !0), { publicKey: _, secretKey: m };
|
|
11527
|
-
}, e.sign.publicKeyLength = t0, e.sign.secretKeyLength = Ve, e.sign.seedLength =
|
|
11527
|
+
}, e.sign.publicKeyLength = t0, e.sign.secretKeyLength = Ve, e.sign.seedLength = tt, e.sign.signatureLength = D0, e.hash = function(l) {
|
|
11528
11528
|
Ie(l);
|
|
11529
11529
|
var _ = new Uint8Array(c0);
|
|
11530
11530
|
return ze(_, l, l.length), _;
|
|
@@ -11545,7 +11545,7 @@ var jn = { exports: {} };
|
|
|
11545
11545
|
Re(p);
|
|
11546
11546
|
});
|
|
11547
11547
|
} else
|
|
11548
|
-
typeof
|
|
11548
|
+
typeof vn < "u" && (l = mr, l && l.randomBytes && e.setPRNG(function(m, s) {
|
|
11549
11549
|
var M, p = l.randomBytes(s);
|
|
11550
11550
|
for (M = 0; M < s; M++)
|
|
11551
11551
|
m[M] = p[M];
|
|
@@ -11553,9 +11553,9 @@ var jn = { exports: {} };
|
|
|
11553
11553
|
}));
|
|
11554
11554
|
}();
|
|
11555
11555
|
})(f.exports ? f.exports : self.nacl = self.nacl || {});
|
|
11556
|
-
})(
|
|
11557
|
-
var mc =
|
|
11558
|
-
const Jt = /* @__PURE__ */
|
|
11556
|
+
})(Kn);
|
|
11557
|
+
var mc = Kn.exports;
|
|
11558
|
+
const Jt = /* @__PURE__ */ sn(mc);
|
|
11559
11559
|
class _c {
|
|
11560
11560
|
string(e) {
|
|
11561
11561
|
let t;
|
|
@@ -11588,13 +11588,13 @@ class _c {
|
|
|
11588
11588
|
return typeof e != "string" ? !1 : /^[0-9a-fA-F]+$/.test(e) && e.length % 2 === 0;
|
|
11589
11589
|
}
|
|
11590
11590
|
}
|
|
11591
|
-
const
|
|
11591
|
+
const L0 = new _c();
|
|
11592
11592
|
class Ac {
|
|
11593
11593
|
string(e) {
|
|
11594
|
-
return
|
|
11594
|
+
return L0.string(e);
|
|
11595
11595
|
}
|
|
11596
11596
|
crypto(e, t) {
|
|
11597
|
-
return
|
|
11597
|
+
return ut[e](t).toString(ut.enc.Hex);
|
|
11598
11598
|
}
|
|
11599
11599
|
hash(e) {
|
|
11600
11600
|
return this.crypto("SHA256", this.string(e));
|
|
@@ -11610,10 +11610,10 @@ class Ac {
|
|
|
11610
11610
|
return t + this.checksum(t);
|
|
11611
11611
|
}
|
|
11612
11612
|
isHex(e) {
|
|
11613
|
-
return
|
|
11613
|
+
return L0.isHex(e);
|
|
11614
11614
|
}
|
|
11615
11615
|
}
|
|
11616
|
-
const
|
|
11616
|
+
const sr = new Ac();
|
|
11617
11617
|
class Ec {
|
|
11618
11618
|
constructor() {
|
|
11619
11619
|
wt(this, "KEY_SIZE");
|
|
@@ -11623,44 +11623,44 @@ class Ec {
|
|
|
11623
11623
|
keyPair() {
|
|
11624
11624
|
const e = Jt.sign.keyPair();
|
|
11625
11625
|
return {
|
|
11626
|
-
private_key:
|
|
11627
|
-
public_key:
|
|
11628
|
-
address: this.address(
|
|
11626
|
+
private_key: L0.byteToHex(e.secretKey).slice(0, this.KEY_SIZE),
|
|
11627
|
+
public_key: L0.byteToHex(e.publicKey),
|
|
11628
|
+
address: this.address(L0.byteToHex(e.publicKey))
|
|
11629
11629
|
};
|
|
11630
11630
|
}
|
|
11631
11631
|
privateKey() {
|
|
11632
|
-
return
|
|
11632
|
+
return L0.byteToHex(Jt.sign.keyPair().secretKey).slice(0, this.KEY_SIZE);
|
|
11633
11633
|
}
|
|
11634
11634
|
publicKey(e) {
|
|
11635
|
-
return
|
|
11635
|
+
return L0.byteToHex(Jt.sign.keyPair.fromSeed(L0.hexToByte(e)).publicKey);
|
|
11636
11636
|
}
|
|
11637
11637
|
address(e) {
|
|
11638
|
-
return
|
|
11638
|
+
return sr.idHash(e);
|
|
11639
11639
|
}
|
|
11640
11640
|
signature(e, t) {
|
|
11641
|
-
return
|
|
11642
|
-
Jt.sign.detached(
|
|
11641
|
+
return L0.byteToHex(
|
|
11642
|
+
Jt.sign.detached(L0.stringToByte(sr.string(e)), L0.hexToByte(t + this.publicKey(t)))
|
|
11643
11643
|
);
|
|
11644
11644
|
}
|
|
11645
11645
|
signatureValidity(e, t, r) {
|
|
11646
|
-
return r.length === this.SIGNATURE_SIZE &&
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11646
|
+
return r.length === this.SIGNATURE_SIZE && sr.isHex(r) === !0 && Jt.sign.detached.verify(
|
|
11647
|
+
L0.stringToByte(sr.string(e)),
|
|
11648
|
+
L0.hexToByte(r),
|
|
11649
|
+
L0.hexToByte(t)
|
|
11650
11650
|
);
|
|
11651
11651
|
}
|
|
11652
11652
|
}
|
|
11653
|
-
const
|
|
11653
|
+
const Xi = new Ec();
|
|
11654
11654
|
class wc {
|
|
11655
11655
|
constructor() {
|
|
11656
11656
|
wt(this, "ec");
|
|
11657
|
-
this.ec = new
|
|
11657
|
+
this.ec = new yn.ec("secp256k1");
|
|
11658
11658
|
}
|
|
11659
11659
|
xphereSign(e, t) {
|
|
11660
|
-
return
|
|
11660
|
+
return Xi.signature(e, t);
|
|
11661
11661
|
}
|
|
11662
11662
|
xphereVerify(e, t, r) {
|
|
11663
|
-
return
|
|
11663
|
+
return Xi.signatureValidity(e, t, r);
|
|
11664
11664
|
}
|
|
11665
11665
|
generateKeys() {
|
|
11666
11666
|
const e = this.ec.genKeyPair(), t = e.getPrivate("hex"), r = e.getPublic("hex");
|
|
@@ -11676,58 +11676,58 @@ class wc {
|
|
|
11676
11676
|
return this.ec.keyFromPublic(r, "hex").verify(e, t);
|
|
11677
11677
|
}
|
|
11678
11678
|
encrypt(e, t) {
|
|
11679
|
-
return
|
|
11679
|
+
return ut.AES.encrypt(e, t).toString();
|
|
11680
11680
|
}
|
|
11681
11681
|
decrypt(e, t) {
|
|
11682
|
-
return
|
|
11682
|
+
return ut.AES.decrypt(e, t).toString(ut.enc.Utf8);
|
|
11683
11683
|
}
|
|
11684
11684
|
generateNonce(e) {
|
|
11685
|
-
return
|
|
11685
|
+
return ut.lib.WordArray.random(e).toString(ut.enc.Hex);
|
|
11686
11686
|
}
|
|
11687
11687
|
}
|
|
11688
|
-
const
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11688
|
+
const jn = new wc(), ct = /* @__PURE__ */ Object.create(null);
|
|
11689
|
+
ct.open = "0";
|
|
11690
|
+
ct.close = "1";
|
|
11691
|
+
ct.ping = "2";
|
|
11692
|
+
ct.pong = "3";
|
|
11693
|
+
ct.message = "4";
|
|
11694
|
+
ct.upgrade = "5";
|
|
11695
|
+
ct.noop = "6";
|
|
11696
11696
|
const ur = /* @__PURE__ */ Object.create(null);
|
|
11697
|
-
Object.keys(
|
|
11698
|
-
ur[
|
|
11697
|
+
Object.keys(ct).forEach((f) => {
|
|
11698
|
+
ur[ct[f]] = f;
|
|
11699
11699
|
});
|
|
11700
|
-
const
|
|
11700
|
+
const Rf = { type: "error", data: "parser error" }, Vn = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Xn = typeof ArrayBuffer == "function", Zn = (f) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(f) : f && f.buffer instanceof ArrayBuffer, Vf = ({ type: f, data: e }, t, r) => Vn && e instanceof Blob ? t ? r(e) : Zi(e, r) : Xn && (e instanceof ArrayBuffer || Zn(e)) ? t ? r(e) : Zi(new Blob([e]), r) : r(ct[f] + (e || "")), Zi = (f, e) => {
|
|
11701
11701
|
const t = new FileReader();
|
|
11702
11702
|
return t.onload = function() {
|
|
11703
11703
|
const r = t.result.split(",")[1];
|
|
11704
11704
|
e("b" + (r || ""));
|
|
11705
11705
|
}, t.readAsDataURL(f);
|
|
11706
11706
|
};
|
|
11707
|
-
function
|
|
11707
|
+
function Gi(f) {
|
|
11708
11708
|
return f instanceof Uint8Array ? f : f instanceof ArrayBuffer ? new Uint8Array(f) : new Uint8Array(f.buffer, f.byteOffset, f.byteLength);
|
|
11709
11709
|
}
|
|
11710
11710
|
let wf;
|
|
11711
11711
|
function Bc(f, e) {
|
|
11712
11712
|
if (Vn && f.data instanceof Blob)
|
|
11713
|
-
return f.data.arrayBuffer().then(
|
|
11713
|
+
return f.data.arrayBuffer().then(Gi).then(e);
|
|
11714
11714
|
if (Xn && (f.data instanceof ArrayBuffer || Zn(f.data)))
|
|
11715
|
-
return e(
|
|
11716
|
-
|
|
11715
|
+
return e(Gi(f.data));
|
|
11716
|
+
Vf(f, !1, (t) => {
|
|
11717
11717
|
wf || (wf = new TextEncoder()), e(wf.encode(t));
|
|
11718
11718
|
});
|
|
11719
11719
|
}
|
|
11720
|
-
const
|
|
11721
|
-
for (let f = 0; f <
|
|
11722
|
-
|
|
11720
|
+
const Qi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", rr = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
11721
|
+
for (let f = 0; f < Qi.length; f++)
|
|
11722
|
+
rr[Qi.charCodeAt(f)] = f;
|
|
11723
11723
|
const Cc = (f) => {
|
|
11724
11724
|
let e = f.length * 0.75, t = f.length, r, a = 0, i, y, x, u;
|
|
11725
11725
|
f[f.length - 1] === "=" && (e--, f[f.length - 2] === "=" && e--);
|
|
11726
11726
|
const o = new ArrayBuffer(e), c = new Uint8Array(o);
|
|
11727
11727
|
for (r = 0; r < t; r += 4)
|
|
11728
|
-
i =
|
|
11728
|
+
i = rr[f.charCodeAt(r)], y = rr[f.charCodeAt(r + 1)], x = rr[f.charCodeAt(r + 2)], u = rr[f.charCodeAt(r + 3)], c[a++] = i << 2 | y >> 4, c[a++] = (y & 15) << 4 | x >> 2, c[a++] = (x & 3) << 6 | u & 63;
|
|
11729
11729
|
return o;
|
|
11730
|
-
}, Mc = typeof ArrayBuffer == "function",
|
|
11730
|
+
}, Mc = typeof ArrayBuffer == "function", Xf = (f, e) => {
|
|
11731
11731
|
if (typeof f != "string")
|
|
11732
11732
|
return {
|
|
11733
11733
|
type: "message",
|
|
@@ -11742,7 +11742,7 @@ const Cc = (f) => {
|
|
|
11742
11742
|
data: f.substring(1)
|
|
11743
11743
|
} : {
|
|
11744
11744
|
type: ur[t]
|
|
11745
|
-
} :
|
|
11745
|
+
} : Rf;
|
|
11746
11746
|
}, Fc = (f, e) => {
|
|
11747
11747
|
if (Mc) {
|
|
11748
11748
|
const t = Cc(f);
|
|
@@ -11761,14 +11761,14 @@ const Cc = (f) => {
|
|
|
11761
11761
|
const t = f.length, r = new Array(t);
|
|
11762
11762
|
let a = 0;
|
|
11763
11763
|
f.forEach((i, y) => {
|
|
11764
|
-
|
|
11764
|
+
Vf(i, !1, (x) => {
|
|
11765
11765
|
r[y] = x, ++a === t && e(r.join(Qn));
|
|
11766
11766
|
});
|
|
11767
11767
|
});
|
|
11768
11768
|
}, Dc = (f, e) => {
|
|
11769
11769
|
const t = f.split(Qn), r = [];
|
|
11770
11770
|
for (let a = 0; a < t.length; a++) {
|
|
11771
|
-
const i =
|
|
11771
|
+
const i = Xf(t[a], e);
|
|
11772
11772
|
if (r.push(i), i.type === "error")
|
|
11773
11773
|
break;
|
|
11774
11774
|
}
|
|
@@ -11831,7 +11831,7 @@ function kc(f, e) {
|
|
|
11831
11831
|
break;
|
|
11832
11832
|
const u = cr(t, 8), o = new DataView(u.buffer, u.byteOffset, u.length), c = o.getUint32(0);
|
|
11833
11833
|
if (c > Math.pow(2, 21) - 1) {
|
|
11834
|
-
x.enqueue(
|
|
11834
|
+
x.enqueue(Rf);
|
|
11835
11835
|
break;
|
|
11836
11836
|
}
|
|
11837
11837
|
a = c * Math.pow(2, 32) + o.getUint32(4), r = 3;
|
|
@@ -11839,10 +11839,10 @@ function kc(f, e) {
|
|
|
11839
11839
|
if (or(t) < a)
|
|
11840
11840
|
break;
|
|
11841
11841
|
const u = cr(t, a);
|
|
11842
|
-
x.enqueue(
|
|
11842
|
+
x.enqueue(Xf(i ? u : Bf.decode(u), e)), r = 0;
|
|
11843
11843
|
}
|
|
11844
11844
|
if (a === 0 || a > f) {
|
|
11845
|
-
x.enqueue(
|
|
11845
|
+
x.enqueue(Rf);
|
|
11846
11846
|
break;
|
|
11847
11847
|
}
|
|
11848
11848
|
}
|
|
@@ -11901,13 +11901,13 @@ A0.prototype.listeners = function(f) {
|
|
|
11901
11901
|
A0.prototype.hasListeners = function(f) {
|
|
11902
11902
|
return !!this.listeners(f).length;
|
|
11903
11903
|
};
|
|
11904
|
-
const
|
|
11904
|
+
const K0 = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
11905
11905
|
function ea(f, ...e) {
|
|
11906
11906
|
return e.reduce((t, r) => (f.hasOwnProperty(r) && (t[r] = f[r]), t), {});
|
|
11907
11907
|
}
|
|
11908
|
-
const Ic =
|
|
11908
|
+
const Ic = K0.setTimeout, Tc = K0.clearTimeout;
|
|
11909
11909
|
function Pr(f, e) {
|
|
11910
|
-
e.useNativeTimers ? (f.setTimeoutFn = Ic.bind(
|
|
11910
|
+
e.useNativeTimers ? (f.setTimeoutFn = Ic.bind(K0), f.clearTimeoutFn = Tc.bind(K0)) : (f.setTimeoutFn = K0.setTimeout.bind(K0), f.clearTimeoutFn = K0.clearTimeout.bind(K0));
|
|
11911
11911
|
}
|
|
11912
11912
|
const Oc = 1.33;
|
|
11913
11913
|
function zc(f) {
|
|
@@ -11938,7 +11938,7 @@ class Hc extends Error {
|
|
|
11938
11938
|
super(e), this.description = t, this.context = r, this.type = "TransportError";
|
|
11939
11939
|
}
|
|
11940
11940
|
}
|
|
11941
|
-
class
|
|
11941
|
+
class Zf extends A0 {
|
|
11942
11942
|
/**
|
|
11943
11943
|
* Transport abstract constructor.
|
|
11944
11944
|
*
|
|
@@ -11995,7 +11995,7 @@ class Qf extends A0 {
|
|
|
11995
11995
|
* @protected
|
|
11996
11996
|
*/
|
|
11997
11997
|
onData(e) {
|
|
11998
|
-
const t =
|
|
11998
|
+
const t = Xf(e, this.socket.binaryType);
|
|
11999
11999
|
this.onPacket(t);
|
|
12000
12000
|
}
|
|
12001
12001
|
/**
|
|
@@ -12036,20 +12036,20 @@ class Qf extends A0 {
|
|
|
12036
12036
|
return t.length ? "?" + t : "";
|
|
12037
12037
|
}
|
|
12038
12038
|
}
|
|
12039
|
-
const ta = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),
|
|
12040
|
-
let
|
|
12041
|
-
function
|
|
12039
|
+
const ta = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), kf = 64, Uc = {};
|
|
12040
|
+
let Ji = 0, dr = 0, en;
|
|
12041
|
+
function tn(f) {
|
|
12042
12042
|
let e = "";
|
|
12043
12043
|
do
|
|
12044
|
-
e = ta[f %
|
|
12044
|
+
e = ta[f % kf] + e, f = Math.floor(f / kf);
|
|
12045
12045
|
while (f > 0);
|
|
12046
12046
|
return e;
|
|
12047
12047
|
}
|
|
12048
12048
|
function ra() {
|
|
12049
|
-
const f =
|
|
12050
|
-
return f !==
|
|
12049
|
+
const f = tn(+/* @__PURE__ */ new Date());
|
|
12050
|
+
return f !== en ? (Ji = 0, en = f) : f + "." + tn(Ji++);
|
|
12051
12051
|
}
|
|
12052
|
-
for (; dr <
|
|
12052
|
+
for (; dr < kf; dr++)
|
|
12053
12053
|
Uc[ta[dr]] = dr;
|
|
12054
12054
|
let fa = !1;
|
|
12055
12055
|
try {
|
|
@@ -12066,18 +12066,18 @@ function ia(f) {
|
|
|
12066
12066
|
}
|
|
12067
12067
|
if (!e)
|
|
12068
12068
|
try {
|
|
12069
|
-
return new
|
|
12069
|
+
return new K0[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");
|
|
12070
12070
|
} catch {
|
|
12071
12071
|
}
|
|
12072
12072
|
}
|
|
12073
12073
|
function Wc() {
|
|
12074
12074
|
}
|
|
12075
|
-
const
|
|
12075
|
+
const Yc = function() {
|
|
12076
12076
|
return new ia({
|
|
12077
12077
|
xdomain: !1
|
|
12078
12078
|
}).responseType != null;
|
|
12079
12079
|
}();
|
|
12080
|
-
class
|
|
12080
|
+
class Kc extends Zf {
|
|
12081
12081
|
/**
|
|
12082
12082
|
* XHR Polling constructor.
|
|
12083
12083
|
*
|
|
@@ -12091,7 +12091,7 @@ class Yc extends Qf {
|
|
|
12091
12091
|
a || (a = r ? "443" : "80"), this.xd = typeof location < "u" && e.hostname !== location.hostname || a !== e.port;
|
|
12092
12092
|
}
|
|
12093
12093
|
const t = e && e.forceBase64;
|
|
12094
|
-
this.supportsBinary =
|
|
12094
|
+
this.supportsBinary = Yc && !t, this.opts.withCredentials && (this.cookieJar = void 0);
|
|
12095
12095
|
}
|
|
12096
12096
|
get name() {
|
|
12097
12097
|
return "polling";
|
|
@@ -12187,7 +12187,7 @@ class Yc extends Qf {
|
|
|
12187
12187
|
* @private
|
|
12188
12188
|
*/
|
|
12189
12189
|
request(e = {}) {
|
|
12190
|
-
return Object.assign(e, { xd: this.xd, cookieJar: this.cookieJar }, this.opts), new
|
|
12190
|
+
return Object.assign(e, { xd: this.xd, cookieJar: this.cookieJar }, this.opts), new nt(this.uri(), e);
|
|
12191
12191
|
}
|
|
12192
12192
|
/**
|
|
12193
12193
|
* Sends data.
|
|
@@ -12217,7 +12217,7 @@ class Yc extends Qf {
|
|
|
12217
12217
|
}), this.pollXhr = e;
|
|
12218
12218
|
}
|
|
12219
12219
|
}
|
|
12220
|
-
class
|
|
12220
|
+
class nt extends A0 {
|
|
12221
12221
|
/**
|
|
12222
12222
|
* Request constructor
|
|
12223
12223
|
*
|
|
@@ -12268,7 +12268,7 @@ class at extends A0 {
|
|
|
12268
12268
|
}, 0);
|
|
12269
12269
|
return;
|
|
12270
12270
|
}
|
|
12271
|
-
typeof document < "u" && (this.index =
|
|
12271
|
+
typeof document < "u" && (this.index = nt.requestsCount++, nt.requests[this.index] = this);
|
|
12272
12272
|
}
|
|
12273
12273
|
/**
|
|
12274
12274
|
* Called upon error.
|
|
@@ -12290,7 +12290,7 @@ class at extends A0 {
|
|
|
12290
12290
|
this.xhr.abort();
|
|
12291
12291
|
} catch {
|
|
12292
12292
|
}
|
|
12293
|
-
typeof document < "u" && delete
|
|
12293
|
+
typeof document < "u" && delete nt.requests[this.index], this.xhr = null;
|
|
12294
12294
|
}
|
|
12295
12295
|
}
|
|
12296
12296
|
/**
|
|
@@ -12311,22 +12311,22 @@ class at extends A0 {
|
|
|
12311
12311
|
this.cleanup();
|
|
12312
12312
|
}
|
|
12313
12313
|
}
|
|
12314
|
-
|
|
12315
|
-
|
|
12314
|
+
nt.requestsCount = 0;
|
|
12315
|
+
nt.requests = {};
|
|
12316
12316
|
if (typeof document < "u") {
|
|
12317
12317
|
if (typeof attachEvent == "function")
|
|
12318
|
-
attachEvent("onunload",
|
|
12318
|
+
attachEvent("onunload", rn);
|
|
12319
12319
|
else if (typeof addEventListener == "function") {
|
|
12320
|
-
const f = "onpagehide" in
|
|
12321
|
-
addEventListener(f,
|
|
12320
|
+
const f = "onpagehide" in K0 ? "pagehide" : "unload";
|
|
12321
|
+
addEventListener(f, rn, !1);
|
|
12322
12322
|
}
|
|
12323
12323
|
}
|
|
12324
|
-
function
|
|
12325
|
-
for (let f in
|
|
12326
|
-
|
|
12324
|
+
function rn() {
|
|
12325
|
+
for (let f in nt.requests)
|
|
12326
|
+
nt.requests.hasOwnProperty(f) && nt.requests[f].abort();
|
|
12327
12327
|
}
|
|
12328
|
-
const
|
|
12329
|
-
class Vc extends
|
|
12328
|
+
const Gf = typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0), hr = K0.WebSocket || K0.MozWebSocket, fn = !0, jc = "arraybuffer", nn = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
12329
|
+
class Vc extends Zf {
|
|
12330
12330
|
/**
|
|
12331
12331
|
* WebSocket transport constructor.
|
|
12332
12332
|
*
|
|
@@ -12342,10 +12342,10 @@ class Vc extends Qf {
|
|
|
12342
12342
|
doOpen() {
|
|
12343
12343
|
if (!this.check())
|
|
12344
12344
|
return;
|
|
12345
|
-
const e = this.uri(), t = this.opts.protocols, r =
|
|
12345
|
+
const e = this.uri(), t = this.opts.protocols, r = nn ? {} : ea(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
|
|
12346
12346
|
this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
|
|
12347
12347
|
try {
|
|
12348
|
-
this.ws =
|
|
12348
|
+
this.ws = fn && !nn ? t ? new hr(e, t) : new hr(e) : new hr(e, t, r);
|
|
12349
12349
|
} catch (a) {
|
|
12350
12350
|
return this.emitReserved("error", a);
|
|
12351
12351
|
}
|
|
@@ -12368,13 +12368,13 @@ class Vc extends Qf {
|
|
|
12368
12368
|
this.writable = !1;
|
|
12369
12369
|
for (let t = 0; t < e.length; t++) {
|
|
12370
12370
|
const r = e[t], a = t === e.length - 1;
|
|
12371
|
-
|
|
12371
|
+
Vf(r, this.supportsBinary, (i) => {
|
|
12372
12372
|
const y = {};
|
|
12373
12373
|
try {
|
|
12374
|
-
|
|
12374
|
+
fn && this.ws.send(i);
|
|
12375
12375
|
} catch {
|
|
12376
12376
|
}
|
|
12377
|
-
a &&
|
|
12377
|
+
a && Gf(() => {
|
|
12378
12378
|
this.writable = !0, this.emitReserved("drain");
|
|
12379
12379
|
}, this.setTimeoutFn);
|
|
12380
12380
|
});
|
|
@@ -12402,7 +12402,7 @@ class Vc extends Qf {
|
|
|
12402
12402
|
return !!hr;
|
|
12403
12403
|
}
|
|
12404
12404
|
}
|
|
12405
|
-
class Xc extends
|
|
12405
|
+
class Xc extends Zf {
|
|
12406
12406
|
get name() {
|
|
12407
12407
|
return "webtransport";
|
|
12408
12408
|
}
|
|
@@ -12432,7 +12432,7 @@ class Xc extends Qf {
|
|
|
12432
12432
|
for (let t = 0; t < e.length; t++) {
|
|
12433
12433
|
const r = e[t], a = t === e.length - 1;
|
|
12434
12434
|
this.writer.write(r).then(() => {
|
|
12435
|
-
a &&
|
|
12435
|
+
a && Gf(() => {
|
|
12436
12436
|
this.writable = !0, this.emitReserved("drain");
|
|
12437
12437
|
}, this.setTimeoutFn);
|
|
12438
12438
|
});
|
|
@@ -12446,7 +12446,7 @@ class Xc extends Qf {
|
|
|
12446
12446
|
const Zc = {
|
|
12447
12447
|
websocket: Vc,
|
|
12448
12448
|
webtransport: Xc,
|
|
12449
|
-
polling:
|
|
12449
|
+
polling: Kc
|
|
12450
12450
|
}, Gc = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Qc = [
|
|
12451
12451
|
"source",
|
|
12452
12452
|
"protocol",
|
|
@@ -12463,7 +12463,7 @@ const Zc = {
|
|
|
12463
12463
|
"query",
|
|
12464
12464
|
"anchor"
|
|
12465
12465
|
];
|
|
12466
|
-
function
|
|
12466
|
+
function Pf(f) {
|
|
12467
12467
|
if (f.length > 2e3)
|
|
12468
12468
|
throw "URI too long";
|
|
12469
12469
|
const e = f, t = f.indexOf("["), r = f.indexOf("]");
|
|
@@ -12491,7 +12491,7 @@ let na = class Tt extends A0 {
|
|
|
12491
12491
|
* @param {Object} opts - options
|
|
12492
12492
|
*/
|
|
12493
12493
|
constructor(e, t = {}) {
|
|
12494
|
-
super(), this.binaryType = jc, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e =
|
|
12494
|
+
super(), this.binaryType = jc, this.writeBuffer = [], e && typeof e == "object" && (t = e, e = null), e ? (e = Pf(e), t.hostname = e.host, t.secure = e.protocol === "https" || e.protocol === "wss", t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = Pf(t.host).host), Pr(this, t), this.secure = t.secure != null ? t.secure : typeof location < "u" && location.protocol === "https:", t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.hostname = t.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = t.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = t.transports || [
|
|
12495
12495
|
"polling",
|
|
12496
12496
|
"websocket",
|
|
12497
12497
|
"webtransport"
|
|
@@ -12791,12 +12791,12 @@ let na = class Tt extends A0 {
|
|
|
12791
12791
|
na.protocol = Jn;
|
|
12792
12792
|
function t1(f, e = "", t) {
|
|
12793
12793
|
let r = f;
|
|
12794
|
-
t = t || typeof location < "u" && location, f == null && (f = t.protocol + "//" + t.host), typeof f == "string" && (f.charAt(0) === "/" && (f.charAt(1) === "/" ? f = t.protocol + f : f = t.host + f), /^(https?|wss?):\/\//.test(f) || (typeof t < "u" ? f = t.protocol + "//" + f : f = "https://" + f), r =
|
|
12794
|
+
t = t || typeof location < "u" && location, f == null && (f = t.protocol + "//" + t.host), typeof f == "string" && (f.charAt(0) === "/" && (f.charAt(1) === "/" ? f = t.protocol + f : f = t.host + f), /^(https?|wss?):\/\//.test(f) || (typeof t < "u" ? f = t.protocol + "//" + f : f = "https://" + f), r = Pf(f)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
|
|
12795
12795
|
const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
|
|
12796
12796
|
return r.id = r.protocol + "://" + i + ":" + r.port + e, r.href = r.protocol + "://" + i + (t && t.port === r.port ? "" : ":" + r.port), r;
|
|
12797
12797
|
}
|
|
12798
12798
|
const r1 = typeof ArrayBuffer == "function", f1 = (f) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(f) : f.buffer instanceof ArrayBuffer, aa = Object.prototype.toString, i1 = typeof Blob == "function" || typeof Blob < "u" && aa.call(Blob) === "[object BlobConstructor]", n1 = typeof File == "function" || typeof File < "u" && aa.call(File) === "[object FileConstructor]";
|
|
12799
|
-
function
|
|
12799
|
+
function Qf(f) {
|
|
12800
12800
|
return r1 && (f instanceof ArrayBuffer || f1(f)) || i1 && f instanceof Blob || n1 && f instanceof File;
|
|
12801
12801
|
}
|
|
12802
12802
|
function lr(f, e) {
|
|
@@ -12808,7 +12808,7 @@ function lr(f, e) {
|
|
|
12808
12808
|
return !0;
|
|
12809
12809
|
return !1;
|
|
12810
12810
|
}
|
|
12811
|
-
if (
|
|
12811
|
+
if (Qf(f))
|
|
12812
12812
|
return !0;
|
|
12813
12813
|
if (f.toJSON && typeof f.toJSON == "function" && arguments.length === 1)
|
|
12814
12814
|
return lr(f.toJSON(), !0);
|
|
@@ -12819,31 +12819,31 @@ function lr(f, e) {
|
|
|
12819
12819
|
}
|
|
12820
12820
|
function a1(f) {
|
|
12821
12821
|
const e = [], t = f.data, r = f;
|
|
12822
|
-
return r.data =
|
|
12822
|
+
return r.data = If(t, e), r.attachments = e.length, { packet: r, buffers: e };
|
|
12823
12823
|
}
|
|
12824
|
-
function
|
|
12824
|
+
function If(f, e) {
|
|
12825
12825
|
if (!f)
|
|
12826
12826
|
return f;
|
|
12827
|
-
if (
|
|
12827
|
+
if (Qf(f)) {
|
|
12828
12828
|
const t = { _placeholder: !0, num: e.length };
|
|
12829
12829
|
return e.push(f), t;
|
|
12830
12830
|
} else if (Array.isArray(f)) {
|
|
12831
12831
|
const t = new Array(f.length);
|
|
12832
12832
|
for (let r = 0; r < f.length; r++)
|
|
12833
|
-
t[r] =
|
|
12833
|
+
t[r] = If(f[r], e);
|
|
12834
12834
|
return t;
|
|
12835
12835
|
} else if (typeof f == "object" && !(f instanceof Date)) {
|
|
12836
12836
|
const t = {};
|
|
12837
12837
|
for (const r in f)
|
|
12838
|
-
Object.prototype.hasOwnProperty.call(f, r) && (t[r] =
|
|
12838
|
+
Object.prototype.hasOwnProperty.call(f, r) && (t[r] = If(f[r], e));
|
|
12839
12839
|
return t;
|
|
12840
12840
|
}
|
|
12841
12841
|
return f;
|
|
12842
12842
|
}
|
|
12843
12843
|
function s1(f, e) {
|
|
12844
|
-
return f.data =
|
|
12844
|
+
return f.data = Tf(f.data, e), delete f.attachments, f;
|
|
12845
12845
|
}
|
|
12846
|
-
function
|
|
12846
|
+
function Tf(f, e) {
|
|
12847
12847
|
if (!f)
|
|
12848
12848
|
return f;
|
|
12849
12849
|
if (f && f._placeholder === !0) {
|
|
@@ -12852,10 +12852,10 @@ function Of(f, e) {
|
|
|
12852
12852
|
throw new Error("illegal attachments");
|
|
12853
12853
|
} else if (Array.isArray(f))
|
|
12854
12854
|
for (let t = 0; t < f.length; t++)
|
|
12855
|
-
f[t] =
|
|
12855
|
+
f[t] = Tf(f[t], e);
|
|
12856
12856
|
else if (typeof f == "object")
|
|
12857
12857
|
for (const t in f)
|
|
12858
|
-
Object.prototype.hasOwnProperty.call(f, t) && (f[t] =
|
|
12858
|
+
Object.prototype.hasOwnProperty.call(f, t) && (f[t] = Tf(f[t], e));
|
|
12859
12859
|
return f;
|
|
12860
12860
|
}
|
|
12861
12861
|
const o1 = [
|
|
@@ -12911,10 +12911,10 @@ class d1 {
|
|
|
12911
12911
|
return a.unshift(r), a;
|
|
12912
12912
|
}
|
|
12913
12913
|
}
|
|
12914
|
-
function
|
|
12914
|
+
function an(f) {
|
|
12915
12915
|
return Object.prototype.toString.call(f) === "[object Object]";
|
|
12916
12916
|
}
|
|
12917
|
-
class
|
|
12917
|
+
class Jf extends A0 {
|
|
12918
12918
|
/**
|
|
12919
12919
|
* Decoder constructor
|
|
12920
12920
|
*
|
|
@@ -12936,7 +12936,7 @@ class ti extends A0 {
|
|
|
12936
12936
|
t = this.decodeString(e);
|
|
12937
12937
|
const r = t.type === Ue.BINARY_EVENT;
|
|
12938
12938
|
r || t.type === Ue.BINARY_ACK ? (t.type = r ? Ue.EVENT : Ue.ACK, this.reconstructor = new h1(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
|
|
12939
|
-
} else if (
|
|
12939
|
+
} else if (Qf(e) || e.base64)
|
|
12940
12940
|
if (this.reconstructor)
|
|
12941
12941
|
t = this.reconstructor.takeBinaryData(e), t && (this.reconstructor = null, super.emitReserved("decoded", t));
|
|
12942
12942
|
else
|
|
@@ -12989,7 +12989,7 @@ class ti extends A0 {
|
|
|
12989
12989
|
}
|
|
12990
12990
|
if (e.charAt(++t)) {
|
|
12991
12991
|
const i = this.tryParse(e.substr(t));
|
|
12992
|
-
if (
|
|
12992
|
+
if (Jf.isPayloadValid(r.type, i))
|
|
12993
12993
|
r.data = i;
|
|
12994
12994
|
else
|
|
12995
12995
|
throw new Error("invalid payload");
|
|
@@ -13006,11 +13006,11 @@ class ti extends A0 {
|
|
|
13006
13006
|
static isPayloadValid(e, t) {
|
|
13007
13007
|
switch (e) {
|
|
13008
13008
|
case Ue.CONNECT:
|
|
13009
|
-
return
|
|
13009
|
+
return an(t);
|
|
13010
13010
|
case Ue.DISCONNECT:
|
|
13011
13011
|
return t === void 0;
|
|
13012
13012
|
case Ue.CONNECT_ERROR:
|
|
13013
|
-
return typeof t == "string" ||
|
|
13013
|
+
return typeof t == "string" || an(t);
|
|
13014
13014
|
case Ue.EVENT:
|
|
13015
13015
|
case Ue.BINARY_EVENT:
|
|
13016
13016
|
return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && o1.indexOf(t[0]) === -1);
|
|
@@ -13054,14 +13054,14 @@ class h1 {
|
|
|
13054
13054
|
}
|
|
13055
13055
|
const u1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13056
13056
|
__proto__: null,
|
|
13057
|
-
Decoder:
|
|
13057
|
+
Decoder: Jf,
|
|
13058
13058
|
Encoder: d1,
|
|
13059
13059
|
get PacketType() {
|
|
13060
13060
|
return Ue;
|
|
13061
13061
|
},
|
|
13062
13062
|
protocol: c1
|
|
13063
13063
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
13064
|
-
function
|
|
13064
|
+
function J0(f, e, t) {
|
|
13065
13065
|
return f.on(e, t), function() {
|
|
13066
13066
|
f.off(e, t);
|
|
13067
13067
|
};
|
|
@@ -13109,10 +13109,10 @@ class sa extends A0 {
|
|
|
13109
13109
|
return;
|
|
13110
13110
|
const e = this.io;
|
|
13111
13111
|
this.subs = [
|
|
13112
|
-
|
|
13113
|
-
|
|
13114
|
-
|
|
13115
|
-
|
|
13112
|
+
J0(e, "open", this.onopen.bind(this)),
|
|
13113
|
+
J0(e, "packet", this.onpacket.bind(this)),
|
|
13114
|
+
J0(e, "error", this.onerror.bind(this)),
|
|
13115
|
+
J0(e, "close", this.onclose.bind(this))
|
|
13116
13116
|
];
|
|
13117
13117
|
}
|
|
13118
13118
|
/**
|
|
@@ -13689,7 +13689,7 @@ Vt.prototype.setMax = function(f) {
|
|
|
13689
13689
|
Vt.prototype.setJitter = function(f) {
|
|
13690
13690
|
this.jitter = f;
|
|
13691
13691
|
};
|
|
13692
|
-
class
|
|
13692
|
+
class Of extends A0 {
|
|
13693
13693
|
constructor(e, t) {
|
|
13694
13694
|
var r;
|
|
13695
13695
|
super(), this.nsps = {}, this.subs = [], e && typeof e == "object" && (t = e, e = void 0), t = t || {}, t.path = t.path || "/socket.io", this.opts = t, Pr(this, t), this.reconnection(t.reconnection !== !1), this.reconnectionAttempts(t.reconnectionAttempts || 1 / 0), this.reconnectionDelay(t.reconnectionDelay || 1e3), this.reconnectionDelayMax(t.reconnectionDelayMax || 5e3), this.randomizationFactor((r = t.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new Vt({
|
|
@@ -13743,11 +13743,11 @@ class zf extends A0 {
|
|
|
13743
13743
|
this.engine = new na(this.uri, this.opts);
|
|
13744
13744
|
const t = this.engine, r = this;
|
|
13745
13745
|
this._readyState = "opening", this.skipReconnect = !1;
|
|
13746
|
-
const a =
|
|
13746
|
+
const a = J0(t, "open", function() {
|
|
13747
13747
|
r.onopen(), e && e();
|
|
13748
13748
|
}), i = (x) => {
|
|
13749
13749
|
this.cleanup(), this._readyState = "closed", this.emitReserved("error", x), e ? e(x) : this.maybeReconnectOnOpen();
|
|
13750
|
-
}, y =
|
|
13750
|
+
}, y = J0(t, "error", i);
|
|
13751
13751
|
if (this._timeout !== !1) {
|
|
13752
13752
|
const x = this._timeout, u = this.setTimeoutFn(() => {
|
|
13753
13753
|
a(), i(new Error("timeout")), t.close();
|
|
@@ -13775,7 +13775,7 @@ class zf extends A0 {
|
|
|
13775
13775
|
onopen() {
|
|
13776
13776
|
this.cleanup(), this._readyState = "open", this.emitReserved("open");
|
|
13777
13777
|
const e = this.engine;
|
|
13778
|
-
this.subs.push(
|
|
13778
|
+
this.subs.push(J0(e, "ping", this.onping.bind(this)), J0(e, "data", this.ondata.bind(this)), J0(e, "error", this.onerror.bind(this)), J0(e, "close", this.onclose.bind(this)), J0(this.decoder, "decoded", this.ondecoded.bind(this)));
|
|
13779
13779
|
}
|
|
13780
13780
|
/**
|
|
13781
13781
|
* Called upon a ping.
|
|
@@ -13803,7 +13803,7 @@ class zf extends A0 {
|
|
|
13803
13803
|
* @private
|
|
13804
13804
|
*/
|
|
13805
13805
|
ondecoded(e) {
|
|
13806
|
-
|
|
13806
|
+
Gf(() => {
|
|
13807
13807
|
this.emitReserved("packet", e);
|
|
13808
13808
|
}, this.setTimeoutFn);
|
|
13809
13809
|
}
|
|
@@ -13920,10 +13920,10 @@ function xr(f, e) {
|
|
|
13920
13920
|
typeof f == "object" && (e = f, f = void 0), e = e || {};
|
|
13921
13921
|
const t = t1(f, e.path || "/socket.io"), r = t.source, a = t.id, i = t.path, y = er[a] && i in er[a].nsps, x = e.forceNew || e["force new connection"] || e.multiplex === !1 || y;
|
|
13922
13922
|
let u;
|
|
13923
|
-
return x ? u = new
|
|
13923
|
+
return x ? u = new Of(r, e) : (er[a] || (er[a] = new Of(r, e)), u = er[a]), t.query && !e.query && (e.query = t.queryKey), u.socket(t.path, e);
|
|
13924
13924
|
}
|
|
13925
13925
|
Object.assign(xr, {
|
|
13926
|
-
Manager:
|
|
13926
|
+
Manager: Of,
|
|
13927
13927
|
Socket: sa,
|
|
13928
13928
|
io: xr,
|
|
13929
13929
|
connect: xr
|
|
@@ -13938,11 +13938,11 @@ const x1 = "http://159.138.233.132:8080", Ct = class Ct {
|
|
|
13938
13938
|
}
|
|
13939
13939
|
};
|
|
13940
13940
|
wt(Ct, "instance");
|
|
13941
|
-
let
|
|
13941
|
+
let zf = Ct;
|
|
13942
13942
|
class v1 {
|
|
13943
13943
|
constructor() {
|
|
13944
13944
|
wt(this, "socketInstance");
|
|
13945
|
-
this.socketInstance =
|
|
13945
|
+
this.socketInstance = zf.getInstance();
|
|
13946
13946
|
}
|
|
13947
13947
|
joinRoom(e) {
|
|
13948
13948
|
this.socketInstance.socket.emit("joinRoom", e);
|
|
@@ -14020,7 +14020,7 @@ class b1 {
|
|
|
14020
14020
|
|
|
14021
14021
|
Nonce: ${r}`, await this.sendMessage(e, t);
|
|
14022
14022
|
const { publicKey: i, signature: y, address: x, network: u, nickName: o } = await this.getAccountCrypto();
|
|
14023
|
-
if (!
|
|
14023
|
+
if (!jn.xphereVerify(t, i, y))
|
|
14024
14024
|
throw new Error("Verification failed");
|
|
14025
14025
|
return { address: x, network: u, signature: y, publicKey: i, nickName: o };
|
|
14026
14026
|
} else
|
|
@@ -14035,7 +14035,7 @@ Nonce: ${r}`, await this.sendMessage(e, t);
|
|
|
14035
14035
|
const p1 = new b1();
|
|
14036
14036
|
class y1 {
|
|
14037
14037
|
generateQrCode(e, t, r, a) {
|
|
14038
|
-
const i =
|
|
14038
|
+
const i = ut.lib.WordArray.random(16).toString(ut.enc.Hex);
|
|
14039
14039
|
let y = "";
|
|
14040
14040
|
return e === "login" ? y = `http://172.30.1.61:3000/qrCode/scan?type=login&roomId=${i}&dapp=${t}&url=${r}&network=${a}` : e === "send" ? y = `zigap://send?roomId=${i}&dapp=${t}` : e === "provide" && (y = `zigap://provide?roomId=${i}&dapp=${t}`), xt.joinRoom(i), {
|
|
14041
14041
|
qrCode: y,
|
|
@@ -14043,7 +14043,7 @@ class y1 {
|
|
|
14043
14043
|
};
|
|
14044
14044
|
}
|
|
14045
14045
|
}
|
|
14046
|
-
const oa = new y1(), ca = "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",
|
|
14046
|
+
const oa = new y1(), ca = "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", E1 = ({
|
|
14047
14047
|
availableNetworks: f,
|
|
14048
14048
|
dapp: e,
|
|
14049
14049
|
url: t,
|
|
@@ -14054,7 +14054,7 @@ const oa = new y1(), ca = "data:image/svg+xml,%3csvg%20width='167'%20height='166
|
|
|
14054
14054
|
logoSize: x = 30,
|
|
14055
14055
|
...u
|
|
14056
14056
|
}) => {
|
|
14057
|
-
const [o, c] =
|
|
14057
|
+
const [o, c] = Nf(!0), v = jn.generateNonce(16), { qrCode: b, roomId: B } = oa.generateQrCode("login", e, t, f);
|
|
14058
14058
|
return zt(() => {
|
|
14059
14059
|
const w = setTimeout(
|
|
14060
14060
|
() => {
|
|
@@ -14090,7 +14090,7 @@ Nonce: ${v}`, z = {
|
|
|
14090
14090
|
}
|
|
14091
14091
|
})();
|
|
14092
14092
|
}, [i, r]), o ? /* @__PURE__ */ vr.jsx(
|
|
14093
|
-
|
|
14093
|
+
ln,
|
|
14094
14094
|
{
|
|
14095
14095
|
value: b,
|
|
14096
14096
|
...y && { imageSettings: { src: ca, width: x, height: x, excavate: !1 } },
|
|
@@ -14121,7 +14121,7 @@ class g1 {
|
|
|
14121
14121
|
}
|
|
14122
14122
|
}
|
|
14123
14123
|
}
|
|
14124
|
-
const m1 = new g1(),
|
|
14124
|
+
const m1 = new g1(), w1 = ({
|
|
14125
14125
|
availableNetworks: f,
|
|
14126
14126
|
dapp: e,
|
|
14127
14127
|
url: t,
|
|
@@ -14131,7 +14131,7 @@ const m1 = new g1(), F1 = ({
|
|
|
14131
14131
|
logoSize: y = 30,
|
|
14132
14132
|
...x
|
|
14133
14133
|
}) => {
|
|
14134
|
-
const [u, o] =
|
|
14134
|
+
const [u, o] = Nf(!0), { qrCode: c, roomId: v } = oa.generateQrCode("provide", e, t, f);
|
|
14135
14135
|
return zt(() => {
|
|
14136
14136
|
const b = setTimeout(
|
|
14137
14137
|
() => {
|
|
@@ -14158,7 +14158,7 @@ const m1 = new g1(), F1 = ({
|
|
|
14158
14158
|
}
|
|
14159
14159
|
})();
|
|
14160
14160
|
}, [a]), u ? /* @__PURE__ */ vr.jsx(
|
|
14161
|
-
|
|
14161
|
+
ln,
|
|
14162
14162
|
{
|
|
14163
14163
|
value: c,
|
|
14164
14164
|
...i && { imageSettings: { src: ca, width: y, height: y, excavate: !1 } },
|
|
@@ -14166,34 +14166,7 @@ const m1 = new g1(), F1 = ({
|
|
|
14166
14166
|
}
|
|
14167
14167
|
) : /* @__PURE__ */ vr.jsx("div", { children: "QR loading error" });
|
|
14168
14168
|
};
|
|
14169
|
-
class _1 {
|
|
14170
|
-
// Base64URL 인코딩 함수
|
|
14171
|
-
base64url(e) {
|
|
14172
|
-
return K0.enc.Base64.stringify(K0.enc.Utf8.parse(e)).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
|
|
14173
|
-
}
|
|
14174
|
-
// token 생성 함수
|
|
14175
|
-
createToken(e, t) {
|
|
14176
|
-
const r = { type: "token", alg: "XPSIG" }, a = this.base64url(JSON.stringify(r)), i = this.base64url(JSON.stringify(e));
|
|
14177
|
-
return `${a}.${i}.${t}`;
|
|
14178
|
-
}
|
|
14179
|
-
// token 검증 함수
|
|
14180
|
-
verifyToken(e) {
|
|
14181
|
-
const [t, r, a] = e.split("."), i = JSON.parse(K0.enc.Utf8.stringify(K0.enc.Base64.parse(r)));
|
|
14182
|
-
if (Xf.xphereVerify(i.message, i.publicKey, a))
|
|
14183
|
-
return i;
|
|
14184
|
-
throw new Error("Invalid token");
|
|
14185
|
-
}
|
|
14186
|
-
getAddress(e) {
|
|
14187
|
-
return w1.Sign.address(e);
|
|
14188
|
-
}
|
|
14189
|
-
}
|
|
14190
|
-
const A1 = new _1(), E1 = {
|
|
14191
|
-
Enc: rr,
|
|
14192
|
-
Sign: Rf,
|
|
14193
|
-
Util: z0,
|
|
14194
|
-
Validation: A1
|
|
14195
|
-
}, w1 = E1;
|
|
14196
14169
|
export {
|
|
14197
|
-
|
|
14198
|
-
|
|
14170
|
+
w1 as AddressProvideQR,
|
|
14171
|
+
E1 as LoginQR
|
|
14199
14172
|
};
|