function sign(e, t, n) {
var r;
"undefined" != typeof self && self,
r = function () {
return function (e) {
var t = {};
function n(r) {
if (t[r])
return t[r].exports;
var o = t[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(o.exports, o, o.exports, n),
o.l = !0,
o.exports
}
return n.m = e,
n.c = t,
n.d = function (e, t, r) {
n.o(e, t) || Object.defineProperty(e, t, {
configurable: !1,
enumerable: !0,
get: r
})
}
,
n.n = function (e) {
var t = e && e.__esModule ? function () {
return e.default
}
: function () {
return e
}
;
return n.d(t, "a", t),
t
}
,
n.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
,
n.p = "",
n(n.s = 3)
}([function (e, t, n) {
var r = n(5)
, o = n(1)
, a = o.toHex
, i = o.ceilHeapSize
, s = n(6)
, u = function (e) {
for (e += 9; e % 64 > 0; e += 1)
;
return e
}
, c = function (e, t) {
var n = new Int32Array(e, t + 320, 5)
, r = new Int32Array(5)
, o = new DataView(r.buffer);
return o.setInt32(0, n[0], !1),
o.setInt32(4, n[1], !1),
o.setInt32(8, n[2], !1),
o.setInt32(12, n[3], !1),
o.setInt32(16, n[4], !1),
r
}
, l = function () {
function e(t) {
if (function (e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, e),
(t = t || 65536) % 64 > 0)
throw new Error("Chunk size must be a multiple of 128 bit");
this._offset = 0,
this._maxChunkLen = t,
this._padMaxChunkLen = u(t),
this._heap = new ArrayBuffer(i(this._padMaxChunkLen + 320 + 20)),
this._h32 = new Int32Array(this._heap),
this._h8 = new Int8Array(this._heap),
this._core = new r({
Int32Array: Int32Array
}, {}, this._heap)
}
return e.prototype._initState = function (e, t) {
this._offset = 0;
var n = new Int32Array(e, t + 320, 5);
n[0] = 1732584193,
n[1] = -271733879,
n[2] = -1732584194,
n[3] = 271733878,
n[4] = -1009589776
}
,
e.prototype._padChunk = function (e, t) {
var n = u(e)
, r = new Int32Array(this._heap, 0, n >> 2);
return function (e, t) {
var n = new Uint8Array(e.buffer)
, r = t % 4
, o = t - r;
switch (r) {
case 0:
n[o + 3] = 0;
case 1:
n[o + 2] = 0;
case 2:
n[o + 1] = 0;
case 3:
n[o + 0] = 0
}
for (var a = 1 + (t >> 2); a < e.length; a++)
e[a] = 0
}(r, e),
function (e, t, n) {
e[t >> 2] |= 128 << 24 - (t % 4 << 3),
e[14 + (2 + (t >> 2) & -16)] = n / (1 << 29) | 0,
e[15 + (2 + (t >> 2) & -16)] = n << 3
}(r, e, t),
n
}
,
e.prototype._write = function (e, t, n, r) {
s(e, this._h8, this._h32, t, n, r || 0)
}
,
e.prototype._coreCall = function (e, t, n, r, o) {
var a = n;
this._write(e, t, n),
o && (a = this._padChunk(n, r)),
this._core.hash(a, this._padMaxChunkLen)
}
,
e.prototype.rawDigest = function (e) {
var t = e.byteLength || e.length || e.size || 0;
this._initState(this._heap, this._padMaxChunkLen);
var n = 0
, r = this._maxChunkLen;
for (n = 0; t > n + r; n += r)
this._coreCall(e, n, r, t, !1);
return this._coreCall(e, n, t - n, t, !0),
c(this._heap, this._padMaxChunkLen)
}
,
e.prototype.digest = function (e) {
return a(this.rawDigest(e).buffer)
}
,
e.prototype.digestFromString = function (e) {
return this.digest(e)
}
,
e.prototype.digestFromBuffer = function (e) {
return this.digest(e)
}
,
e.prototype.digestFromArrayBuffer = function (e) {
return this.digest(e)
}
,
e.prototype.resetState = function () {
return this._initState(this._heap, this._padMaxChunkLen),
this
}
,
e.prototype.append = function (e) {
var t = 0
, n = e.byteLength || e.length || e.size || 0
, r = this._offset % this._maxChunkLen
, o = void 0;
for (this._offset += n; t < n;)
o = Math.min(n - t, this._maxChunkLen - r),
this._write(e, t, o, r),
t += o,
(r += o) === this._maxChunkLen && (this._core.hash(this._maxChunkLen, this._padMaxChunkLen),
r = 0);
return this
}
,
e.prototype.getState = function () {
var e = void 0;
if (this._offset % this._maxChunkLen)
e = this._heap.slice(0);
else {
var t = new Int32Array(this._heap, this._padMaxChunkLen + 320, 5);
e = t.buffer.slice(t.byteOffset, t.byteOffset + t.byteLength)
}
return {
offset: this._offset,
heap: e
}
}
,
e.prototype.setState = function (e) {
(this._offset = e.offset,
20 === e.heap.byteLength) ? new Int32Array(this._heap, this._padMaxChunkLen + 320, 5).set(new Int32Array(e.heap)) : this._h32.set(new Int32Array(e.heap));
return this
}
,
e.prototype.rawEnd = function () {
var e = this._offset
, t = e % this._maxChunkLen
, n = this._padChunk(t, e);
this._core.hash(n, this._padMaxChunkLen);
var r = c(this._heap, this._padMaxChunkLen);
return this._initState(this._heap, this._padMaxChunkLen),
r
}
,
e.prototype.end = function () {
return a(this.rawEnd().buffer)
}
,
e
}();
e.exports = l,
e.exports._core = r
}
, function (e, t) {
for (var n = new Array(256), r = 0; r < 256; r++)
n[r] = (r < 16 ? "0" : "") + r.toString(16);
e.exports.toHex = function (e) {
for (var t = new Uint8Array(e), r = new Array(e.byteLength), o = 0; o < r.length; o++)
r[o] = n[t[o]];
return r.join("")
}
,
e.exports.ceilHeapSize = function (e) {
var t = 0;
if (e <= 65536)
return 65536;
if (e < 16777216)
for (t = 1; t < e; t <<= 1)
;
else
for (t = 16777216; t < e; t += 16777216)
;
return t
}
,
e.exports.isDedicatedWorkerScope = function (e) {
var t = "WorkerGlobalScope" in e && e instanceof e.WorkerGlobalScope
, n = "SharedWorkerGlobalScope" in e && e instanceof e.SharedWorkerGlobalScope
, r = "ServiceWorkerGlobalScope" in e && e instanceof e.ServiceWorkerGlobalScope;
return t && !n && !r
}
}
, function (e, t, n) {
e.exports = function () {
var e = n(0)
, t = function (e, n, r, o, a) {
var i = new self.FileReader;
i.onloadend = function () {
if (i.error)
return a(i.error);
var s = i.result;
n += i.result.byteLength;
try {
e.append(s)
} catch (e) {
return void a(e)
}
n < o.size ? t(e, n, r, o, a) : a(null, e.end())
}
,
i.readAsArrayBuffer(o.slice(n, n + r))
}
, r = !0;
return self.onmessage = function (n) {
if (r) {
var o = n.data.data
, a = n.data.file
, i = n.data.id;
if (void 0 !== i && (a || o)) {
var s = n.data.blockSize || 4194304
, u = new e(s);
u.resetState();
var c = function (e, t) {
e ? self.postMessage({
id: i,
error: e.name
}) : self.postMessage({
id: i,
hash: t
})
};
o && function (e, t, n) {
try {
n(null, e.digest(t))
} catch (e) {
return n(e)
}
}(u, o, c),
a && t(u, 0, s, a, c)
}
}
}
,
function () {
r = !1
}
}
}
, function (e, t, n) {
var r = n(4)
, o = n(0)
, a = n(7)
, i = n(2)
, s = n(1).isDedicatedWorkerScope
, u = "undefined" != typeof self && s(self);
o.disableWorkerBehaviour = u ? i() : function () {
}
,
o.createWorker = function () {
var e = r(2)
, t = e.terminate;
return e.terminate = function () {
URL.revokeObjectURL(e.objectURL),
t.call(e)
}
,
e
}
,
o.createHash = a,
e.exports = o
}
, function (e, t, n) {
function r(e) {
var t = {};
function n(r) {
if (t[r])
return t[r].exports;
var o = t[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(o.exports, o, o.exports, n),
o.l = !0,
o.exports
}
n.m = e,
n.c = t,
n.i = function (e) {
return e
}
,
n.d = function (e, t, r) {
n.o(e, t) || Object.defineProperty(e, t, {
configurable: !1,
enumerable: !0,
get: r
})
}
,
n.r = function (e) {
Object.defineProperty(e, "__esModule", {
value: !0
})
}
,
n.n = function (e) {
var t = e && e.__esModule ? function () {
return e.default
}
: function () {
return e
}
;
return n.d(t, "a", t),
t
}
,
n.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
,
n.p = "/",
n.oe = function (e) {
throw console.error(e),
e
}
;
var r = n(n.s = ENTRY_MODULE);
return r.default || r
}
var o = "[\\.|\\-|\\+|\\w|/|@]+"
, a = "\\((/\\*.*?\\*/)?s?.*?(" + o + ").*?\\)";
function i(e) {
return (e + "").replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&")
}
function s(e, t, r) {
var s = {};
s[r] = [];
var u = t.toString()
, c = u.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);
if (!c)
return s;
for (var l, f = c[1], d = new RegExp("(\\\\n|\\W)" + i(f) + a, "g"); l = d.exec(u);)
"dll-reference" !== l[3] && s[r].push(l[3]);
for (d = new RegExp("\\(" + i(f) + '\\("(dll-reference\\s(' + o + '))"\\)\\)' + a, "g"); l = d.exec(u);)
e[l[2]] || (s[r].push(l[1]),
e[l[2]] = n(l[1]).m),
s[l[2]] = s[l[2]] || [],
s[l[2]].push(l[4]);
return s
}
function u(e) {
return Object.keys(e).reduce(function (t, n) {
return t || e[n].length > 0
}, !1)
}
e.exports = function (e, t) {
t = t || {};
var o = {
main: n.m
}
, a = t.all ? {
main: Object.keys(o)
} : function (e, t) {
for (var n = {
main: [t]
}, r = {
main: []
}, o = {
main: {}
}; u(n);)
for (var a = Object.keys(n), i = 0; i < a.length; i++) {
var c = a[i]
, l = n[c].pop();
if (o[c] = o[c] || {},
!o[c][l] && e[c][l]) {
o[c][l] = !0,
r[c] = r[c] || [],
r[c].push(l);
for (var f = s(e, e[c][l], c), d = Object.keys(f), p = 0; p < d.length; p++)
n[d[p]] = n[d[p]] || [],
n[d[p]] = n[d[p]].concat(f[d[p]])
}
}
return r
}(o, e)
, i = "";
Object.keys(a).filter(function (e) {
return "main" !== e
}).forEach(function (e) {
for (var t = 0; a[e][t];)
t++;
a[e].push(t),
o[e][t] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",
i = i + "var " + e + " = (" + r.toString().replace("ENTRY_MODULE", JSON.stringify(t)) + ")({" + a[e].map(function (t) {
return JSON.stringify(t) + ": " + o[e][t].toString()
}).join(",") + "});\n"
}),
i = i + "(" + r.toString().replace("ENTRY_MODULE", JSON.stringify(e)) + ")({" + a.main.map(function (e) {
return JSON.stringify(e) + ": " + o.main[e].toString()
}).join(",") + "})(self);";
var c = new window.Blob([i], {
type: "text/javascript"
});
if (t.bare)
return c;
var l = (window.URL || window.webkitURL || window.mozURL || window.msURL).createObjectURL(c)
, f = new window.Worker(l);
return f.objectURL = l,
f
}
}
, function (e, t) {
e.exports = function (e, t, n) {
"use asm";
var r = new e.Int32Array(n);
function o(e, t) {
e = e | 0;
t = t | 0;
var n = 0
, o = 0
, a = 0
, i = 0
, s = 0
, u = 0
, c = 0
, l = 0
, f = 0
, d = 0
, p = 0
, h = 0
, m = 0
, _ = 0;
a = r[t + 320 >> 2] | 0;
s = r[t + 324 >> 2] | 0;
c = r[t + 328 >> 2] | 0;
f = r[t + 332 >> 2] | 0;
p = r[t + 336 >> 2] | 0;
for (n = 0; (n | 0) < (e | 0); n = n + 64 | 0) {
i = a;
u = s;
l = c;
d = f;
h = p;
for (o = 0; (o | 0) < 64; o = o + 4 | 0) {
_ = r[n + o >> 2] | 0;
m = ((a << 5 | a >>> 27) + (s & c | ~s & f) | 0) + ((_ + p | 0) + 1518500249 | 0) | 0;
p = f;
f = c;
c = s << 30 | s >>> 2;
s = a;
a = m;
r[e + o >> 2] = _
}
for (o = e + 64 | 0; (o | 0) < (e + 80 | 0); o = o + 4 | 0) {
_ = (r[o - 12 >> 2] ^ r[o - 32 >> 2] ^ r[o - 56 >> 2] ^ r[o - 64 >> 2]) << 1 | (r[o - 12 >> 2] ^ r[o - 32 >> 2] ^ r[o - 56 >> 2] ^ r[o - 64 >> 2]) >>> 31;
m = ((a << 5 | a >>> 27) + (s & c | ~s & f) | 0) + ((_ + p | 0) + 1518500249 | 0) | 0;
p = f;
f = c;
c = s << 30 | s >>> 2;
s = a;
a = m;
r[o >> 2] = _
}
for (o = e + 80 | 0; (o | 0) < (e + 160 | 0); o = o + 4 | 0) {
_ = (r[o - 12 >> 2] ^ r[o - 32 >> 2] ^ r[o - 56 >> 2] ^ r[o - 64 >> 2]) << 1 | (r[o - 12 >> 2] ^ r[o - 32 >> 2] ^ r[o - 56 >> 2] ^ r[o - 64 >> 2]) >>> 31;
m = ((a << 5 | a >>> 27) + (s ^ c ^ f) | 0) + ((_ + p | 0) + 1859775393 | 0) | 0;
p = f;
f = c;
c = s << 30 | s >>> 2;
s = a;
a = m;
r[o >> 2] = _
}
for (o = e + 160 | 0; (o | 0) < (e + 240 | 0); o = o + 4 | 0) {
_ = (r[o - 12 >> 2] ^ r[o - 32 >> 2] ^ r[o - 56 >> 2] ^ r[o - 64 >> 2]) << 1 | (r[o - 12 >> 2] ^ r[o - 32 >> 2] ^ r[o - 56 >> 2] ^ r[o - 64 >> 2]) >>> 31;
m = ((a << 5 | a >>> 27) + (s & c | s & f | c & f) | 0) + ((_ + p | 0) - 1894007588 | 0) | 0;
p = f;
f = c;
c = s << 30 | s >>> 2;
s = a;
a = m;
r[o >> 2] = _
}
for (o = e + 240 | 0; (o | 0) < (e + 320 | 0); o = o + 4 | 0) {
_ = (r[o - 12 >> 2] ^ r[o - 32 >> 2] ^ r[o - 56 >> 2] ^ r[o - 64 >> 2]) << 1 | (r[o - 12 >> 2] ^ r[o - 32 >> 2] ^ r[o - 56 >> 2] ^ r[o - 64 >> 2]) >>> 31;
m = ((a << 5 | a >>> 27) + (s ^ c ^ f) | 0) + ((_ + p | 0) - 899497514 | 0) | 0;
p = f;
f = c;
c = s << 30 | s >>> 2;
s = a;
a = m;
r[o >> 2] = _
}
a = a + i | 0;
s = s + u | 0;
c = c + l | 0;
f = f + d | 0;
p = p + h | 0
}
r[t + 320 >> 2] = a;
r[t + 324 >> 2] = s;
r[t + 328 >> 2] = c;
r[t + 332 >> 2] = f;
r[t + 336 >> 2] = p
}
return {
hash: o
}
}
}
, function (e, t) {
var n = this
, r = void 0;
"undefined" != typeof self && void 0 !== self.FileReaderSync && (r = new self.FileReaderSync);
var o = function (e, t, n, r, o, a) {
var i = void 0
, s = a % 4
, u = (o + s) % 4
, c = o - u;
switch (s) {
case 0:
t[a] = e[r + 3];
case 1:
t[a + 1 - (s << 1) | 0] = e[r + 2];
case 2:
t[a + 2 - (s << 1) | 0] = e[r + 1];
case 3:
t[a + 3 - (s << 1) | 0] = e[r]
}
if (!(o < u + (4 - s))) {
for (i = 4 - s; i < c; i = i + 4 | 0)
n[a + i >> 2 | 0] = e[r + i] << 24 | e[r + i + 1] << 16 | e[r + i + 2] << 8 | e[r + i + 3];
switch (u) {
case 3:
t[a + c + 1 | 0] = e[r + c + 2];
case 2:
t[a + c + 2 | 0] = e[r + c + 1];
case 1:
t[a + c + 3 | 0] = e[r + c]
}
}
};
e.exports = function (e, t, a, i, s, u) {
if ("string" == typeof e)
return function (e, t, n, r, o, a) {
var i = void 0
, s = a % 4
, u = (o + s) % 4
, c = o - u;
switch (s) {
case 0:
t[a] = e.charCodeAt(r + 3);
case 1:
t[a + 1 - (s << 1) | 0] = e.charCodeAt(r + 2);
case 2:
t[a + 2 - (s << 1) | 0] = e.charCodeAt(r + 1);
case 3:
t[a + 3 - (s << 1) | 0] = e.charCodeAt(r)
}
if (!(o < u + (4 - s))) {
for (i = 4 - s; i < c; i = i + 4 | 0)
n[a + i >> 2] = e.charCodeAt(r + i) << 24 | e.charCodeAt(r + i + 1) << 16 | e.charCodeAt(r + i + 2) << 8 | e.charCodeAt(r + i + 3);
switch (u) {
case 3:
t[a + c + 1 | 0] = e.charCodeAt(r + c + 2);
case 2:
t[a + c + 2 | 0] = e.charCodeAt(r + c + 1);
case 1:
t[a + c + 3 | 0] = e.charCodeAt(r + c)
}
}
}(e, t, a, i, s, u);
if (e instanceof Array)
return o(e, t, a, i, s, u);
if (n && n.Buffer && n.Buffer.isBuffer(e))
return o(e, t, a, i, s, u);
if (e instanceof ArrayBuffer)
return o(new Uint8Array(e), t, a, i, s, u);
if (e.buffer instanceof ArrayBuffer)
return o(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), t, a, i, s, u);
if (e instanceof Blob)
return function (e, t, n, o, a, i) {
var s = void 0
, u = i % 4
, c = (a + u) % 4
, l = a - c
, f = new Uint8Array(r.readAsArrayBuffer(e.slice(o, o + a)));
switch (u) {
case 0:
t[i] = f[3];
case 1:
t[i + 1 - (u << 1) | 0] = f[2];
case 2:
t[i + 2 - (u << 1) | 0] = f[1];
case 3:
t[i + 3 - (u << 1) | 0] = f[0]
}
if (!(a < c + (4 - u))) {
for (s = 4 - u; s < l; s = s + 4 | 0)
n[i + s >> 2 | 0] = f[s] << 24 | f[s + 1] << 16 | f[s + 2] << 8 | f[s + 3];
switch (c) {
case 3:
t[i + l + 1 | 0] = f[l + 2];
case 2:
t[i + l + 2 | 0] = f[l + 1];
case 1:
t[i + l + 3 | 0] = f[l]
}
}
}(e, t, a, i, s, u);
throw new Error("Unsupported data type.")
}
}
, function (e, t, n) {
var r = n(0)
, o = n(1).toHex
, a = function () {
function e() {
!function (e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, e),
this._rusha = new r,
this._rusha.resetState()
}
return e.prototype.update = function (e) {
return this._rusha.append(e),
this
}
,
e.prototype.digest = function (e) {
var t = this._rusha.rawEnd().buffer;
if (!e)
return t;
if ("hex" === e)
return o(t);
throw new Error("unsupported digest encoding")
}
,
e
}();
e.exports = function () {
return new a
}
}
])
}
return r()
}
console.log(sign(this))