From 8f47882f8aa7b53f944c47515292dc130eebfeb5 Mon Sep 17 00:00:00 2001 From: liyf Date: Thu, 13 Jul 2023 10:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=98=E8=82=83=E5=8C=BB=E4=BF=9D=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E6=9C=8D=E5=8A=A1=EF=BC=8Cwebpack=EF=BC=8C=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E6=95=B0=E6=8D=AE=E8=A7=A3=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.MD | 1 + ybdzpz/__init__.py | 4 + ybdzpz/demo.js | 7310 ++++++++++++++++++++++++++++++++++++++++++++ ybdzpz/demo.py | 88 + 4 files changed, 7403 insertions(+) create mode 100644 ybdzpz/__init__.py create mode 100644 ybdzpz/demo.js create mode 100644 ybdzpz/demo.py diff --git a/readme.MD b/readme.MD index 2efb0ab..282893c 100644 --- a/readme.MD +++ b/readme.MD @@ -71,3 +71,4 @@ MyToken | [链接](https://www.mytokencap.com/) | [点击跳转](https://blog 西域MRO商城 | [链接](https://m.ehsy.com/#/pages/categoryList/index?catId=16474&parentId=5721&name=%E5%A4%8D%E5%90%88%E6%9C%BA%2F%E6%89%93%E5%8D%B0%E6%9C%BA) | [点击跳转](ehsy/demo.js) | [ehsy](ehsy) 上海剑桥学院登录 | [链接](https://cas.gench.edu.cn/cas/login) | [点击跳转](cas_gench/demo.py) | [cas_gench](cas_gench) 新华社 | [链接](https://xhpfmapi.zhongguowangshi.com/vh512/account/25295) | [点击跳转](xhpfmapi/demo.py) | [xhpfmapi](xhpfmapi) +甘肃医保公共服务 | [链接](https://ybdzpz.ylbz.gansu.gov.cn/hsa-local-prod/web/hallEnter/#/search/Drugstore) | [点击跳转](ybdzpz/demo.py) | [ybdzpz](ybdzpz) diff --git a/ybdzpz/__init__.py b/ybdzpz/__init__.py new file mode 100644 index 0000000..44fc178 --- /dev/null +++ b/ybdzpz/__init__.py @@ -0,0 +1,4 @@ +# _*_ coding: utf-8 _*_ +# @Date: 5:21 下午 +# @File: __init__.py.py +# @Author: liyf diff --git a/ybdzpz/demo.js b/ybdzpz/demo.js new file mode 100644 index 0000000..08aed50 --- /dev/null +++ b/ybdzpz/demo.js @@ -0,0 +1,7310 @@ +window = global; +var run; +(function (e) { + function t(t) { + for (var i, o, r = t[0], a = t[1], l = 0, s = []; l < r.length; l++) + o = r[l], + Object.prototype.hasOwnProperty.call(n, o) && n[o] && s.push(n[o][0]), + n[o] = 0; + for (i in a) + Object.prototype.hasOwnProperty.call(a, i) && (e[i] = a[i]); + A && A(t); + while (s.length) + s.shift()() + } + + var i = {} + , n = { + index: 0 + }; + + function o(e) { + return r.p + "assets/js/" + ({ + Home: "Home", + "chunk-commons": "chunk-commons", + DetailModule: "DetailModule", + HandleModule: "HandleModule", + InfomationListModule: "InfomationListModule", + LoginModule: "LoginModule", + PersonModule: "PersonModule", + PersonalCenter: "PersonalCenter", + SearchModule: "SearchModule", + "personLogin~unitLogin": "personLogin~unitLogin", + personLogin: "personLogin", + unitLogin: "unitLogin", + "vendors~CommunicationModule~ServiceSearchModule": "vendors~CommunicationModule~ServiceSearchModule", + "CommunicationModule~ServiceSearchModule": "CommunicationModule~ServiceSearchModule", + CommunicationModule: "CommunicationModule", + ServiceSearchModule: "ServiceSearchModule" + }[e] || e) + "." + { + Home: "a58dd22c", + "chunk-3b08d5fe": "82006326", + "chunk-commons": "c74f57e9", + DetailModule: "61ef5d86", + HandleModule: "3932bb6f", + InfomationListModule: "b12d5b34", + LoginModule: "f57fe9a5", + PersonModule: "67a34fd2", + PersonalCenter: "cd8522ad", + SearchModule: "b5b67707", + "personLogin~unitLogin": "3fd8dafe", + personLogin: "5368e5d3", + unitLogin: "b73f3c1a", + "vendors~CommunicationModule~ServiceSearchModule": "228f1d7d", + "CommunicationModule~ServiceSearchModule": "0b03ee44", + CommunicationModule: "e6f2d640", + ServiceSearchModule: "caed80ee" + }[e] + ".js" + } + + function r(t) { + if (i[t]) + return i[t].exports; + var n = i[t] = { + i: t, + l: !1, + exports: {} + }; + return e[t].call(n.exports, n, n.exports, r), + n.l = !0, + n.exports + } + + r.e = function (e) { + var t = [] + , i = n[e]; + if (0 !== i) + if (i) + t.push(i[2]); + else { + var a = new Promise((function (t, o) { + i = n[e] = [t, o] + } + )); + t.push(i[2] = a); + var l, s = document.createElement("script"); + s.charset = "utf-8", + s.timeout = 120, + r.nc && s.setAttribute("nonce", r.nc), + s.src = o(e); + var A = new Error; + l = function (t) { + s.onerror = s.onload = null, + clearTimeout(c); + var i = n[e]; + if (0 !== i) { + if (i) { + var o = t && ("load" === t.type ? "missing" : t.type) + , r = t && t.target && t.target.src; + A.message = "Loading chunk " + e + " failed.\n(" + o + ": " + r + ")", + A.name = "ChunkLoadError", + A.type = o, + A.request = r, + i[1](A) + } + n[e] = void 0 + } + } + ; + var c = setTimeout((function () { + l({ + type: "timeout", + target: s + }) + } + ), 12e4); + s.onerror = s.onload = l, + document.head.appendChild(s) + } + return Promise.all(t) + } + , + r.m = e, + r.c = i, + r.d = function (e, t, i) { + r.o(e, t) || Object.defineProperty(e, t, { + enumerable: !0, + get: i + }) + } + , + r.r = function (e) { + "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { + value: "Module" + }), + Object.defineProperty(e, "__esModule", { + value: !0 + }) + } + , + r.t = function (e, t) { + if (1 & t && (e = r(e)), + 8 & t) + return e; + if (4 & t && "object" === typeof e && e && e.__esModule) + return e; + var i = Object.create(null); + if (r.r(i), + Object.defineProperty(i, "default", { + enumerable: !0, + value: e + }), + 2 & t && "string" != typeof e) + for (var n in e) + r.d(i, n, function (t) { + return e[t] + } + .bind(null, n)); + return i + } + , + r.n = function (e) { + var t = e && e.__esModule ? function () { + return e["default"] + } + : function () { + return e + } + ; + return r.d(t, "a", t), + t + } + , + r.o = function (e, t) { + return Object.prototype.hasOwnProperty.call(e, t) + } + , + r.p = "", + r.oe = function (e) { + throw console.error(e), + e + } + ; + var a = window["webpackJsonp"] = window["webpackJsonp"] || [] + , l = a.push.bind(a); + a.push = t, + a = a.slice(); + for (var s = 0; s < a.length; s++) + t(a[s]); + var A = l; + run = r; + } +)({ + "7d92": function (t, e, n) { + "use strict"; + (function (t) { + n.d(e, "a", (function () { + return f + } + )); + n("4917"), + n("6c7b"), + n("6762"), + n("55dd"), + n("6b54"), + n("1602"); + var r = n("68b2") + , i = (r.sm2, + r.sm3, + r.sm4) + , s = (n("6c27"), + { + appCode: "b0aa01c91ac14e12b257d0e55d72ce09", + version: "1.0.0", + appSecret: "4bc920ac45784dff8f94521f27639ce8", + publicKey: "BOyHzlePMo8Xv4GN3CmoFSXLBjJCPRZKM0HhZcs2Kc63qN15+2CSxc9z6QLmaNcwbEZ7Mw/lDRrvs2g3CAODJfc=", + privateKey: "MYpJy20V9sHF0Gf0C16e/tVWBXRYjYYbDkzjecS4HVI=", + publicKeyType: "base64", + privateKeyType: "base64" + }) + , u = s.appCode + , a = s.appSecret + , o = s.publicKey + , h = s.privateKey; + + function c(t, e) { + var n = d(t.substr(0, 16)) + , r = d(e) + , i = l(n, r) + , s = i.toUpperCase().substr(0, 16) + , u = d(s); + return u + } + + function f(e) { + if (!e) + return null; + console.log("解密前数据", e); + var n = t.from(e, "hex") + , r = c(u, a) + , i = g(r, n); + return console.log("解密后数据", JSON.parse(i)), + JSON.parse(i) + } + + function l(e, n) { + var r = 16 - parseInt(n.length % 16); + n = n.concat(new Array(r).fill(r)); + var s = i.encrypt(n, e); + return t.from(s).toString("hex") + } + + function g(e, n) { + var r = i.decrypt(n, e) + , s = r[r.length - 1]; + return r = r.slice(0, r.length - s), + t.from(r).toString("utf-8") + } + + function d(t) { + var e, n, r = new Array; + e = t.length; + for (var i = 0; i < e; i++) + n = t.charCodeAt(i), + n >= 65536 && n <= 1114111 ? (r.push(n >> 18 & 7 | 240), + r.push(n >> 12 & 63 | 128), + r.push(n >> 6 & 63 | 128), + r.push(63 & n | 128)) : n >= 2048 && n <= 65535 ? (r.push(n >> 12 & 15 | 224), + r.push(n >> 6 & 63 | 128), + r.push(63 & n | 128)) : n >= 128 && n <= 2047 ? (r.push(n >> 6 & 31 | 192), + r.push(63 & n | 128)) : r.push(255 & n); + return r + } + + "base64" === s.publicKeyType && (o = t.from(o, "base64").toString("hex")), + "base64" === s.privateKeyType && (h = t.from(h, "base64").toString("hex")) + } + ).call(this, n("b639").Buffer) + }, + b639: function (t, r, e) { + "use strict"; + (function (t) { + var i = e("1fb5") + , n = e("9152") + , o = e("e3db"); + + function s() { + try { + var t = new Uint8Array(1); + return t.__proto__ = { + __proto__: Uint8Array.prototype, + foo: function () { + return 42 + } + }, + 42 === t.foo() && "function" === typeof t.subarray && 0 === t.subarray(1, 1).byteLength + } catch (r) { + return !1 + } + } + + function h() { + return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823 + } + + function u(t, r) { + if (h() < r) + throw new RangeError("Invalid typed array length"); + return a.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(r), + t.__proto__ = a.prototype) : (null === t && (t = new a(r)), + t.length = r), + t + } + + function a(t, r, e) { + if (!a.TYPED_ARRAY_SUPPORT && !(this instanceof a)) + return new a(t, r, e); + if ("number" === typeof t) { + if ("string" === typeof r) + throw new Error("If encoding is specified then the first argument must be a string"); + return l(this, t) + } + return f(this, t, r, e) + } + + function f(t, r, e, i) { + if ("number" === typeof r) + throw new TypeError('"value" argument must not be a number'); + return "undefined" !== typeof ArrayBuffer && r instanceof ArrayBuffer ? v(t, r, e, i) : "string" === typeof r ? y(t, r, e) : w(t, r) + } + + function c(t) { + if ("number" !== typeof t) + throw new TypeError('"size" argument must be a number'); + if (t < 0) + throw new RangeError('"size" argument must not be negative') + } + + function p(t, r, e, i) { + return c(r), + r <= 0 ? u(t, r) : void 0 !== e ? "string" === typeof i ? u(t, r).fill(e, i) : u(t, r).fill(e) : u(t, r) + } + + function l(t, r) { + if (c(r), + t = u(t, r < 0 ? 0 : 0 | g(r)), + !a.TYPED_ARRAY_SUPPORT) + for (var e = 0; e < r; ++e) + t[e] = 0; + return t + } + + function y(t, r, e) { + if ("string" === typeof e && "" !== e || (e = "utf8"), + !a.isEncoding(e)) + throw new TypeError('"encoding" must be a valid string encoding'); + var i = 0 | E(r, e); + t = u(t, i); + var n = t.write(r, e); + return n !== i && (t = t.slice(0, n)), + t + } + + function d(t, r) { + var e = r.length < 0 ? 0 : 0 | g(r.length); + t = u(t, e); + for (var i = 0; i < e; i += 1) + t[i] = 255 & r[i]; + return t + } + + function v(t, r, e, i) { + if (r.byteLength, + e < 0 || r.byteLength < e) + throw new RangeError("'offset' is out of bounds"); + if (r.byteLength < e + (i || 0)) + throw new RangeError("'length' is out of bounds"); + return r = void 0 === e && void 0 === i ? new Uint8Array(r) : void 0 === i ? new Uint8Array(r, e) : new Uint8Array(r, e, i), + a.TYPED_ARRAY_SUPPORT ? (t = r, + t.__proto__ = a.prototype) : t = d(t, r), + t + } + + function w(t, r) { + if (a.isBuffer(r)) { + var e = 0 | g(r.length); + return t = u(t, e), + 0 === t.length ? t : (r.copy(t, 0, 0, e), + t) + } + if (r) { + if ("undefined" !== typeof ArrayBuffer && r.buffer instanceof ArrayBuffer || "length" in r) + return "number" !== typeof r.length || rt(r.length) ? u(t, 0) : d(t, r); + if ("Buffer" === r.type && o(r.data)) + return d(t, r.data) + } + throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.") + } + + function g(t) { + if (t >= h()) + throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + h().toString(16) + " bytes"); + return 0 | t + } + + function m(t) { + return +t != t && (t = 0), + a.alloc(+t) + } + + function E(t, r) { + if (a.isBuffer(t)) + return t.length; + if ("undefined" !== typeof ArrayBuffer && "function" === typeof ArrayBuffer.isView && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer)) + return t.byteLength; + "string" !== typeof t && (t = "" + t); + var e = t.length; + if (0 === e) + return 0; + for (var i = !1; ;) + switch (r) { + case "ascii": + case "latin1": + case "binary": + return e; + case "utf8": + case "utf-8": + case void 0: + return Z(t).length; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return 2 * e; + case "hex": + return e >>> 1; + case "base64": + return $(t).length; + default: + if (i) + return Z(t).length; + r = ("" + r).toLowerCase(), + i = !0 + } + } + + function A(t, r, e) { + var i = !1; + if ((void 0 === r || r < 0) && (r = 0), + r > this.length) + return ""; + if ((void 0 === e || e > this.length) && (e = this.length), + e <= 0) + return ""; + if (e >>>= 0, + r >>>= 0, + e <= r) + return ""; + t || (t = "utf8"); + while (1) + switch (t) { + case "hex": + return X(this, r, e); + case "utf8": + case "utf-8": + return M(this, r, e); + case "ascii": + return I(this, r, e); + case "latin1": + case "binary": + return x(this, r, e); + case "base64": + return O(this, r, e); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return N(this, r, e); + default: + if (i) + throw new TypeError("Unknown encoding: " + t); + t = (t + "").toLowerCase(), + i = !0 + } + } + + function S(t, r, e) { + var i = t[r]; + t[r] = t[e], + t[e] = i + } + + function _(t, r, e, i, n) { + if (0 === t.length) + return -1; + if ("string" === typeof e ? (i = e, + e = 0) : e > 2147483647 ? e = 2147483647 : e < -2147483648 && (e = -2147483648), + e = +e, + isNaN(e) && (e = n ? 0 : t.length - 1), + e < 0 && (e = t.length + e), + e >= t.length) { + if (n) + return -1; + e = t.length - 1 + } else if (e < 0) { + if (!n) + return -1; + e = 0 + } + if ("string" === typeof r && (r = a.from(r, i)), + a.isBuffer(r)) + return 0 === r.length ? -1 : b(t, r, e, i, n); + if ("number" === typeof r) + return r &= 255, + a.TYPED_ARRAY_SUPPORT && "function" === typeof Uint8Array.prototype.indexOf ? n ? Uint8Array.prototype.indexOf.call(t, r, e) : Uint8Array.prototype.lastIndexOf.call(t, r, e) : b(t, [r], e, i, n); + throw new TypeError("val must be string, number or Buffer") + } + + function b(t, r, e, i, n) { + var o, s = 1, h = t.length, u = r.length; + if (void 0 !== i && (i = String(i).toLowerCase(), + "ucs2" === i || "ucs-2" === i || "utf16le" === i || "utf-16le" === i)) { + if (t.length < 2 || r.length < 2) + return -1; + s = 2, + h /= 2, + u /= 2, + e /= 2 + } + + function a(t, r) { + return 1 === s ? t[r] : t.readUInt16BE(r * s) + } + + if (n) { + var f = -1; + for (o = e; o < h; o++) + if (a(t, o) === a(r, -1 === f ? 0 : o - f)) { + if (-1 === f && (f = o), + o - f + 1 === u) + return f * s + } else + -1 !== f && (o -= o - f), + f = -1 + } else + for (e + u > h && (e = h - u), + o = e; o >= 0; o--) { + for (var c = !0, p = 0; p < u; p++) + if (a(t, o + p) !== a(r, p)) { + c = !1; + break + } + if (c) + return o + } + return -1 + } + + function T(t, r, e, i) { + e = Number(e) || 0; + var n = t.length - e; + i ? (i = Number(i), + i > n && (i = n)) : i = n; + var o = r.length; + if (o % 2 !== 0) + throw new TypeError("Invalid hex string"); + i > o / 2 && (i = o / 2); + for (var s = 0; s < i; ++s) { + var h = parseInt(r.substr(2 * s, 2), 16); + if (isNaN(h)) + return s; + t[e + s] = h + } + return s + } + + function R(t, r, e, i) { + return tt(Z(r, t.length - e), t, e, i) + } + + function B(t, r, e, i) { + return tt(G(r), t, e, i) + } + + function H(t, r, e, i) { + return B(t, r, e, i) + } + + function D(t, r, e, i) { + return tt($(r), t, e, i) + } + + function C(t, r, e, i) { + return tt(Q(r, t.length - e), t, e, i) + } + + function O(t, r, e) { + return 0 === r && e === t.length ? i.fromByteArray(t) : i.fromByteArray(t.slice(r, e)) + } + + function M(t, r, e) { + e = Math.min(t.length, e); + var i = [] + , n = r; + while (n < e) { + var o, s, h, u, a = t[n], f = null, c = a > 239 ? 4 : a > 223 ? 3 : a > 191 ? 2 : 1; + if (n + c <= e) + switch (c) { + case 1: + a < 128 && (f = a); + break; + case 2: + o = t[n + 1], + 128 === (192 & o) && (u = (31 & a) << 6 | 63 & o, + u > 127 && (f = u)); + break; + case 3: + o = t[n + 1], + s = t[n + 2], + 128 === (192 & o) && 128 === (192 & s) && (u = (15 & a) << 12 | (63 & o) << 6 | 63 & s, + u > 2047 && (u < 55296 || u > 57343) && (f = u)); + break; + case 4: + o = t[n + 1], + s = t[n + 2], + h = t[n + 3], + 128 === (192 & o) && 128 === (192 & s) && 128 === (192 & h) && (u = (15 & a) << 18 | (63 & o) << 12 | (63 & s) << 6 | 63 & h, + u > 65535 && u < 1114112 && (f = u)) + } + null === f ? (f = 65533, + c = 1) : f > 65535 && (f -= 65536, + i.push(f >>> 10 & 1023 | 55296), + f = 56320 | 1023 & f), + i.push(f), + n += c + } + return U(i) + } + + r.Buffer = a, + r.SlowBuffer = m, + r.INSPECT_MAX_BYTES = 50, + a.TYPED_ARRAY_SUPPORT = void 0 !== t.TYPED_ARRAY_SUPPORT ? t.TYPED_ARRAY_SUPPORT : s(), + r.kMaxLength = h(), + a.poolSize = 8192, + a._augment = function (t) { + return t.__proto__ = a.prototype, + t + } + , + a.from = function (t, r, e) { + return f(null, t, r, e) + } + , + a.TYPED_ARRAY_SUPPORT && (a.prototype.__proto__ = Uint8Array.prototype, + a.__proto__ = Uint8Array, + "undefined" !== typeof Symbol && Symbol.species && a[Symbol.species] === a && Object.defineProperty(a, Symbol.species, { + value: null, + configurable: !0 + })), + a.alloc = function (t, r, e) { + return p(null, t, r, e) + } + , + a.allocUnsafe = function (t) { + return l(null, t) + } + , + a.allocUnsafeSlow = function (t) { + return l(null, t) + } + , + a.isBuffer = function (t) { + return !(null == t || !t._isBuffer) + } + , + a.compare = function (t, r) { + if (!a.isBuffer(t) || !a.isBuffer(r)) + throw new TypeError("Arguments must be Buffers"); + if (t === r) + return 0; + for (var e = t.length, i = r.length, n = 0, o = Math.min(e, i); n < o; ++n) + if (t[n] !== r[n]) { + e = t[n], + i = r[n]; + break + } + return e < i ? -1 : i < e ? 1 : 0 + } + , + a.isEncoding = function (t) { + switch (String(t).toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "latin1": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return !0; + default: + return !1 + } + } + , + a.concat = function (t, r) { + if (!o(t)) + throw new TypeError('"list" argument must be an Array of Buffers'); + if (0 === t.length) + return a.alloc(0); + var e; + if (void 0 === r) + for (r = 0, + e = 0; e < t.length; ++e) + r += t[e].length; + var i = a.allocUnsafe(r) + , n = 0; + for (e = 0; e < t.length; ++e) { + var s = t[e]; + if (!a.isBuffer(s)) + throw new TypeError('"list" argument must be an Array of Buffers'); + s.copy(i, n), + n += s.length + } + return i + } + , + a.byteLength = E, + a.prototype._isBuffer = !0, + a.prototype.swap16 = function () { + var t = this.length; + if (t % 2 !== 0) + throw new RangeError("Buffer size must be a multiple of 16-bits"); + for (var r = 0; r < t; r += 2) + S(this, r, r + 1); + return this + } + , + a.prototype.swap32 = function () { + var t = this.length; + if (t % 4 !== 0) + throw new RangeError("Buffer size must be a multiple of 32-bits"); + for (var r = 0; r < t; r += 4) + S(this, r, r + 3), + S(this, r + 1, r + 2); + return this + } + , + a.prototype.swap64 = function () { + var t = this.length; + if (t % 8 !== 0) + throw new RangeError("Buffer size must be a multiple of 64-bits"); + for (var r = 0; r < t; r += 8) + S(this, r, r + 7), + S(this, r + 1, r + 6), + S(this, r + 2, r + 5), + S(this, r + 3, r + 4); + return this + } + , + a.prototype.toString = function () { + var t = 0 | this.length; + return 0 === t ? "" : 0 === arguments.length ? M(this, 0, t) : A.apply(this, arguments) + } + , + a.prototype.equals = function (t) { + if (!a.isBuffer(t)) + throw new TypeError("Argument must be a Buffer"); + return this === t || 0 === a.compare(this, t) + } + , + a.prototype.inspect = function () { + var t = "" + , e = r.INSPECT_MAX_BYTES; + return this.length > 0 && (t = this.toString("hex", 0, e).match(/.{2}/g).join(" "), + this.length > e && (t += " ... ")), + "" + } + , + a.prototype.compare = function (t, r, e, i, n) { + if (!a.isBuffer(t)) + throw new TypeError("Argument must be a Buffer"); + if (void 0 === r && (r = 0), + void 0 === e && (e = t ? t.length : 0), + void 0 === i && (i = 0), + void 0 === n && (n = this.length), + r < 0 || e > t.length || i < 0 || n > this.length) + throw new RangeError("out of range index"); + if (i >= n && r >= e) + return 0; + if (i >= n) + return -1; + if (r >= e) + return 1; + if (r >>>= 0, + e >>>= 0, + i >>>= 0, + n >>>= 0, + this === t) + return 0; + for (var o = n - i, s = e - r, h = Math.min(o, s), u = this.slice(i, n), f = t.slice(r, e), c = 0; c < h; ++c) + if (u[c] !== f[c]) { + o = u[c], + s = f[c]; + break + } + return o < s ? -1 : s < o ? 1 : 0 + } + , + a.prototype.includes = function (t, r, e) { + return -1 !== this.indexOf(t, r, e) + } + , + a.prototype.indexOf = function (t, r, e) { + return _(this, t, r, e, !0) + } + , + a.prototype.lastIndexOf = function (t, r, e) { + return _(this, t, r, e, !1) + } + , + a.prototype.write = function (t, r, e, i) { + if (void 0 === r) + i = "utf8", + e = this.length, + r = 0; + else if (void 0 === e && "string" === typeof r) + i = r, + e = this.length, + r = 0; + else { + if (!isFinite(r)) + throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); + r |= 0, + isFinite(e) ? (e |= 0, + void 0 === i && (i = "utf8")) : (i = e, + e = void 0) + } + var n = this.length - r; + if ((void 0 === e || e > n) && (e = n), + t.length > 0 && (e < 0 || r < 0) || r > this.length) + throw new RangeError("Attempt to write outside buffer bounds"); + i || (i = "utf8"); + for (var o = !1; ;) + switch (i) { + case "hex": + return T(this, t, r, e); + case "utf8": + case "utf-8": + return R(this, t, r, e); + case "ascii": + return B(this, t, r, e); + case "latin1": + case "binary": + return H(this, t, r, e); + case "base64": + return D(this, t, r, e); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return C(this, t, r, e); + default: + if (o) + throw new TypeError("Unknown encoding: " + i); + i = ("" + i).toLowerCase(), + o = !0 + } + } + , + a.prototype.toJSON = function () { + return { + type: "Buffer", + data: Array.prototype.slice.call(this._arr || this, 0) + } + } + ; + var P = 4096; + + function U(t) { + var r = t.length; + if (r <= P) + return String.fromCharCode.apply(String, t); + var e = "" + , i = 0; + while (i < r) + e += String.fromCharCode.apply(String, t.slice(i, i += P)); + return e + } + + function I(t, r, e) { + var i = ""; + e = Math.min(t.length, e); + for (var n = r; n < e; ++n) + i += String.fromCharCode(127 & t[n]); + return i + } + + function x(t, r, e) { + var i = ""; + e = Math.min(t.length, e); + for (var n = r; n < e; ++n) + i += String.fromCharCode(t[n]); + return i + } + + function X(t, r, e) { + var i = t.length; + (!r || r < 0) && (r = 0), + (!e || e < 0 || e > i) && (e = i); + for (var n = "", o = r; o < e; ++o) + n += K(t[o]); + return n + } + + function N(t, r, e) { + for (var i = t.slice(r, e), n = "", o = 0; o < i.length; o += 2) + n += String.fromCharCode(i[o] + 256 * i[o + 1]); + return n + } + + function k(t, r, e) { + if (t % 1 !== 0 || t < 0) + throw new RangeError("offset is not uint"); + if (t + r > e) + throw new RangeError("Trying to access beyond buffer length") + } + + function Y(t, r, e, i, n, o) { + if (!a.isBuffer(t)) + throw new TypeError('"buffer" argument must be a Buffer instance'); + if (r > n || r < o) + throw new RangeError('"value" argument is out of bounds'); + if (e + i > t.length) + throw new RangeError("Index out of range") + } + + function F(t, r, e, i) { + r < 0 && (r = 65535 + r + 1); + for (var n = 0, o = Math.min(t.length - e, 2); n < o; ++n) + t[e + n] = (r & 255 << 8 * (i ? n : 1 - n)) >>> 8 * (i ? n : 1 - n) + } + + function L(t, r, e, i) { + r < 0 && (r = 4294967295 + r + 1); + for (var n = 0, o = Math.min(t.length - e, 4); n < o; ++n) + t[e + n] = r >>> 8 * (i ? n : 3 - n) & 255 + } + + function V(t, r, e, i, n, o) { + if (e + i > t.length) + throw new RangeError("Index out of range"); + if (e < 0) + throw new RangeError("Index out of range") + } + + function j(t, r, e, i, o) { + return o || V(t, r, e, 4, 34028234663852886e22, -34028234663852886e22), + n.write(t, r, e, i, 23, 4), + e + 4 + } + + function q(t, r, e, i, o) { + return o || V(t, r, e, 8, 17976931348623157e292, -17976931348623157e292), + n.write(t, r, e, i, 52, 8), + e + 8 + } + + a.prototype.slice = function (t, r) { + var e, i = this.length; + if (t = ~~t, + r = void 0 === r ? i : ~~r, + t < 0 ? (t += i, + t < 0 && (t = 0)) : t > i && (t = i), + r < 0 ? (r += i, + r < 0 && (r = 0)) : r > i && (r = i), + r < t && (r = t), + a.TYPED_ARRAY_SUPPORT) + e = this.subarray(t, r), + e.__proto__ = a.prototype; + else { + var n = r - t; + e = new a(n, void 0); + for (var o = 0; o < n; ++o) + e[o] = this[o + t] + } + return e + } + , + a.prototype.readUIntLE = function (t, r, e) { + t |= 0, + r |= 0, + e || k(t, r, this.length); + var i = this[t] + , n = 1 + , o = 0; + while (++o < r && (n *= 256)) + i += this[t + o] * n; + return i + } + , + a.prototype.readUIntBE = function (t, r, e) { + t |= 0, + r |= 0, + e || k(t, r, this.length); + var i = this[t + --r] + , n = 1; + while (r > 0 && (n *= 256)) + i += this[t + --r] * n; + return i + } + , + a.prototype.readUInt8 = function (t, r) { + return r || k(t, 1, this.length), + this[t] + } + , + a.prototype.readUInt16LE = function (t, r) { + return r || k(t, 2, this.length), + this[t] | this[t + 1] << 8 + } + , + a.prototype.readUInt16BE = function (t, r) { + return r || k(t, 2, this.length), + this[t] << 8 | this[t + 1] + } + , + a.prototype.readUInt32LE = function (t, r) { + return r || k(t, 4, this.length), + (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3] + } + , + a.prototype.readUInt32BE = function (t, r) { + return r || k(t, 4, this.length), + 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]) + } + , + a.prototype.readIntLE = function (t, r, e) { + t |= 0, + r |= 0, + e || k(t, r, this.length); + var i = this[t] + , n = 1 + , o = 0; + while (++o < r && (n *= 256)) + i += this[t + o] * n; + return n *= 128, + i >= n && (i -= Math.pow(2, 8 * r)), + i + } + , + a.prototype.readIntBE = function (t, r, e) { + t |= 0, + r |= 0, + e || k(t, r, this.length); + var i = r + , n = 1 + , o = this[t + --i]; + while (i > 0 && (n *= 256)) + o += this[t + --i] * n; + return n *= 128, + o >= n && (o -= Math.pow(2, 8 * r)), + o + } + , + a.prototype.readInt8 = function (t, r) { + return r || k(t, 1, this.length), + 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t] + } + , + a.prototype.readInt16LE = function (t, r) { + r || k(t, 2, this.length); + var e = this[t] | this[t + 1] << 8; + return 32768 & e ? 4294901760 | e : e + } + , + a.prototype.readInt16BE = function (t, r) { + r || k(t, 2, this.length); + var e = this[t + 1] | this[t] << 8; + return 32768 & e ? 4294901760 | e : e + } + , + a.prototype.readInt32LE = function (t, r) { + return r || k(t, 4, this.length), + this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24 + } + , + a.prototype.readInt32BE = function (t, r) { + return r || k(t, 4, this.length), + this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3] + } + , + a.prototype.readFloatLE = function (t, r) { + return r || k(t, 4, this.length), + n.read(this, t, !0, 23, 4) + } + , + a.prototype.readFloatBE = function (t, r) { + return r || k(t, 4, this.length), + n.read(this, t, !1, 23, 4) + } + , + a.prototype.readDoubleLE = function (t, r) { + return r || k(t, 8, this.length), + n.read(this, t, !0, 52, 8) + } + , + a.prototype.readDoubleBE = function (t, r) { + return r || k(t, 8, this.length), + n.read(this, t, !1, 52, 8) + } + , + a.prototype.writeUIntLE = function (t, r, e, i) { + if (t = +t, + r |= 0, + e |= 0, + !i) { + var n = Math.pow(2, 8 * e) - 1; + Y(this, t, r, e, n, 0) + } + var o = 1 + , s = 0; + this[r] = 255 & t; + while (++s < e && (o *= 256)) + this[r + s] = t / o & 255; + return r + e + } + , + a.prototype.writeUIntBE = function (t, r, e, i) { + if (t = +t, + r |= 0, + e |= 0, + !i) { + var n = Math.pow(2, 8 * e) - 1; + Y(this, t, r, e, n, 0) + } + var o = e - 1 + , s = 1; + this[r + o] = 255 & t; + while (--o >= 0 && (s *= 256)) + this[r + o] = t / s & 255; + return r + e + } + , + a.prototype.writeUInt8 = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 1, 255, 0), + a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), + this[r] = 255 & t, + r + 1 + } + , + a.prototype.writeUInt16LE = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 2, 65535, 0), + a.TYPED_ARRAY_SUPPORT ? (this[r] = 255 & t, + this[r + 1] = t >>> 8) : F(this, t, r, !0), + r + 2 + } + , + a.prototype.writeUInt16BE = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 2, 65535, 0), + a.TYPED_ARRAY_SUPPORT ? (this[r] = t >>> 8, + this[r + 1] = 255 & t) : F(this, t, r, !1), + r + 2 + } + , + a.prototype.writeUInt32LE = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 4, 4294967295, 0), + a.TYPED_ARRAY_SUPPORT ? (this[r + 3] = t >>> 24, + this[r + 2] = t >>> 16, + this[r + 1] = t >>> 8, + this[r] = 255 & t) : L(this, t, r, !0), + r + 4 + } + , + a.prototype.writeUInt32BE = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 4, 4294967295, 0), + a.TYPED_ARRAY_SUPPORT ? (this[r] = t >>> 24, + this[r + 1] = t >>> 16, + this[r + 2] = t >>> 8, + this[r + 3] = 255 & t) : L(this, t, r, !1), + r + 4 + } + , + a.prototype.writeIntLE = function (t, r, e, i) { + if (t = +t, + r |= 0, + !i) { + var n = Math.pow(2, 8 * e - 1); + Y(this, t, r, e, n - 1, -n) + } + var o = 0 + , s = 1 + , h = 0; + this[r] = 255 & t; + while (++o < e && (s *= 256)) + t < 0 && 0 === h && 0 !== this[r + o - 1] && (h = 1), + this[r + o] = (t / s >> 0) - h & 255; + return r + e + } + , + a.prototype.writeIntBE = function (t, r, e, i) { + if (t = +t, + r |= 0, + !i) { + var n = Math.pow(2, 8 * e - 1); + Y(this, t, r, e, n - 1, -n) + } + var o = e - 1 + , s = 1 + , h = 0; + this[r + o] = 255 & t; + while (--o >= 0 && (s *= 256)) + t < 0 && 0 === h && 0 !== this[r + o + 1] && (h = 1), + this[r + o] = (t / s >> 0) - h & 255; + return r + e + } + , + a.prototype.writeInt8 = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 1, 127, -128), + a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), + t < 0 && (t = 255 + t + 1), + this[r] = 255 & t, + r + 1 + } + , + a.prototype.writeInt16LE = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 2, 32767, -32768), + a.TYPED_ARRAY_SUPPORT ? (this[r] = 255 & t, + this[r + 1] = t >>> 8) : F(this, t, r, !0), + r + 2 + } + , + a.prototype.writeInt16BE = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 2, 32767, -32768), + a.TYPED_ARRAY_SUPPORT ? (this[r] = t >>> 8, + this[r + 1] = 255 & t) : F(this, t, r, !1), + r + 2 + } + , + a.prototype.writeInt32LE = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 4, 2147483647, -2147483648), + a.TYPED_ARRAY_SUPPORT ? (this[r] = 255 & t, + this[r + 1] = t >>> 8, + this[r + 2] = t >>> 16, + this[r + 3] = t >>> 24) : L(this, t, r, !0), + r + 4 + } + , + a.prototype.writeInt32BE = function (t, r, e) { + return t = +t, + r |= 0, + e || Y(this, t, r, 4, 2147483647, -2147483648), + t < 0 && (t = 4294967295 + t + 1), + a.TYPED_ARRAY_SUPPORT ? (this[r] = t >>> 24, + this[r + 1] = t >>> 16, + this[r + 2] = t >>> 8, + this[r + 3] = 255 & t) : L(this, t, r, !1), + r + 4 + } + , + a.prototype.writeFloatLE = function (t, r, e) { + return j(this, t, r, !0, e) + } + , + a.prototype.writeFloatBE = function (t, r, e) { + return j(this, t, r, !1, e) + } + , + a.prototype.writeDoubleLE = function (t, r, e) { + return q(this, t, r, !0, e) + } + , + a.prototype.writeDoubleBE = function (t, r, e) { + return q(this, t, r, !1, e) + } + , + a.prototype.copy = function (t, r, e, i) { + if (e || (e = 0), + i || 0 === i || (i = this.length), + r >= t.length && (r = t.length), + r || (r = 0), + i > 0 && i < e && (i = e), + i === e) + return 0; + if (0 === t.length || 0 === this.length) + return 0; + if (r < 0) + throw new RangeError("targetStart out of bounds"); + if (e < 0 || e >= this.length) + throw new RangeError("sourceStart out of bounds"); + if (i < 0) + throw new RangeError("sourceEnd out of bounds"); + i > this.length && (i = this.length), + t.length - r < i - e && (i = t.length - r + e); + var n, o = i - e; + if (this === t && e < r && r < i) + for (n = o - 1; n >= 0; --n) + t[n + r] = this[n + e]; + else if (o < 1e3 || !a.TYPED_ARRAY_SUPPORT) + for (n = 0; n < o; ++n) + t[n + r] = this[n + e]; + else + Uint8Array.prototype.set.call(t, this.subarray(e, e + o), r); + return o + } + , + a.prototype.fill = function (t, r, e, i) { + if ("string" === typeof t) { + if ("string" === typeof r ? (i = r, + r = 0, + e = this.length) : "string" === typeof e && (i = e, + e = this.length), + 1 === t.length) { + var n = t.charCodeAt(0); + n < 256 && (t = n) + } + if (void 0 !== i && "string" !== typeof i) + throw new TypeError("encoding must be a string"); + if ("string" === typeof i && !a.isEncoding(i)) + throw new TypeError("Unknown encoding: " + i) + } else + "number" === typeof t && (t &= 255); + if (r < 0 || this.length < r || this.length < e) + throw new RangeError("Out of range index"); + if (e <= r) + return this; + var o; + if (r >>>= 0, + e = void 0 === e ? this.length : e >>> 0, + t || (t = 0), + "number" === typeof t) + for (o = r; o < e; ++o) + this[o] = t; + else { + var s = a.isBuffer(t) ? t : Z(new a(t, i).toString()) + , h = s.length; + for (o = 0; o < e - r; ++o) + this[o + r] = s[o % h] + } + return this + } + ; + var z = /[^+\/0-9A-Za-z-_]/g; + + function W(t) { + if (t = J(t).replace(z, ""), + t.length < 2) + return ""; + while (t.length % 4 !== 0) + t += "="; + return t + } + + function J(t) { + return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "") + } + + function K(t) { + return t < 16 ? "0" + t.toString(16) : t.toString(16) + } + + function Z(t, r) { + var e; + r = r || 1 / 0; + for (var i = t.length, n = null, o = [], s = 0; s < i; ++s) { + if (e = t.charCodeAt(s), + e > 55295 && e < 57344) { + if (!n) { + if (e > 56319) { + (r -= 3) > -1 && o.push(239, 191, 189); + continue + } + if (s + 1 === i) { + (r -= 3) > -1 && o.push(239, 191, 189); + continue + } + n = e; + continue + } + if (e < 56320) { + (r -= 3) > -1 && o.push(239, 191, 189), + n = e; + continue + } + e = 65536 + (n - 55296 << 10 | e - 56320) + } else + n && (r -= 3) > -1 && o.push(239, 191, 189); + if (n = null, + e < 128) { + if ((r -= 1) < 0) + break; + o.push(e) + } else if (e < 2048) { + if ((r -= 2) < 0) + break; + o.push(e >> 6 | 192, 63 & e | 128) + } else if (e < 65536) { + if ((r -= 3) < 0) + break; + o.push(e >> 12 | 224, e >> 6 & 63 | 128, 63 & e | 128) + } else { + if (!(e < 1114112)) + throw new Error("Invalid code point"); + if ((r -= 4) < 0) + break; + o.push(e >> 18 | 240, e >> 12 & 63 | 128, e >> 6 & 63 | 128, 63 & e | 128) + } + } + return o + } + + function G(t) { + for (var r = [], e = 0; e < t.length; ++e) + r.push(255 & t.charCodeAt(e)); + return r + } + + function Q(t, r) { + for (var e, i, n, o = [], s = 0; s < t.length; ++s) { + if ((r -= 2) < 0) + break; + e = t.charCodeAt(s), + i = e >> 8, + n = e % 256, + o.push(n), + o.push(i) + } + return o + } + + function $(t) { + return i.toByteArray(W(t)) + } + + function tt(t, r, e, i) { + for (var n = 0; n < i; ++n) { + if (n + e >= r.length || n >= t.length) + break; + r[n + e] = t[n] + } + return n + } + + function rt(t) { + return t !== t + } + } + ).call(this, e("c8ba")) + }, + c8ba: function (e, t) { + var i; + i = function () { + return this + }(); + try { + i = i || new Function("return this")() + } catch (n) { + "object" === typeof window && (i = window) + } + e.exports = i + }, + "1fb5": function (t, r, e) { + "use strict"; + r.byteLength = f, + r.toByteArray = p, + r.fromByteArray = d; + for (var i = [], n = [], o = "undefined" !== typeof Uint8Array ? Uint8Array : Array, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", h = 0, u = s.length; h < u; ++h) + i[h] = s[h], + n[s.charCodeAt(h)] = h; + + function a(t) { + var r = t.length; + if (r % 4 > 0) + throw new Error("Invalid string. Length must be a multiple of 4"); + var e = t.indexOf("="); + -1 === e && (e = r); + var i = e === r ? 0 : 4 - e % 4; + return [e, i] + } + + function f(t) { + var r = a(t) + , e = r[0] + , i = r[1]; + return 3 * (e + i) / 4 - i + } + + function c(t, r, e) { + return 3 * (r + e) / 4 - e + } + + function p(t) { + var r, e, i = a(t), s = i[0], h = i[1], u = new o(c(t, s, h)), f = 0, p = h > 0 ? s - 4 : s; + for (e = 0; e < p; e += 4) + r = n[t.charCodeAt(e)] << 18 | n[t.charCodeAt(e + 1)] << 12 | n[t.charCodeAt(e + 2)] << 6 | n[t.charCodeAt(e + 3)], + u[f++] = r >> 16 & 255, + u[f++] = r >> 8 & 255, + u[f++] = 255 & r; + return 2 === h && (r = n[t.charCodeAt(e)] << 2 | n[t.charCodeAt(e + 1)] >> 4, + u[f++] = 255 & r), + 1 === h && (r = n[t.charCodeAt(e)] << 10 | n[t.charCodeAt(e + 1)] << 4 | n[t.charCodeAt(e + 2)] >> 2, + u[f++] = r >> 8 & 255, + u[f++] = 255 & r), + u + } + + function l(t) { + return i[t >> 18 & 63] + i[t >> 12 & 63] + i[t >> 6 & 63] + i[63 & t] + } + + function y(t, r, e) { + for (var i, n = [], o = r; o < e; o += 3) + i = (t[o] << 16 & 16711680) + (t[o + 1] << 8 & 65280) + (255 & t[o + 2]), + n.push(l(i)); + return n.join("") + } + + function d(t) { + for (var r, e = t.length, n = e % 3, o = [], s = 16383, h = 0, u = e - n; h < u; h += s) + o.push(y(t, h, h + s > u ? u : h + s)); + return 1 === n ? (r = t[e - 1], + o.push(i[r >> 2] + i[r << 4 & 63] + "==")) : 2 === n && (r = (t[e - 2] << 8) + t[e - 1], + o.push(i[r >> 10] + i[r >> 4 & 63] + i[r << 2 & 63] + "=")), + o.join("") + } + + n["-".charCodeAt(0)] = 62, + n["_".charCodeAt(0)] = 63 + }, + 9152: function (t, r) { + r.read = function (t, r, e, i, n) { + var o, s, h = 8 * n - i - 1, u = (1 << h) - 1, a = u >> 1, f = -7, c = e ? n - 1 : 0, p = e ? -1 : 1, + l = t[r + c]; + for (c += p, + o = l & (1 << -f) - 1, + l >>= -f, + f += h; f > 0; o = 256 * o + t[r + c], + c += p, + f -= 8) + ; + for (s = o & (1 << -f) - 1, + o >>= -f, + f += i; f > 0; s = 256 * s + t[r + c], + c += p, + f -= 8) + ; + if (0 === o) + o = 1 - a; + else { + if (o === u) + return s ? NaN : 1 / 0 * (l ? -1 : 1); + s += Math.pow(2, i), + o -= a + } + return (l ? -1 : 1) * s * Math.pow(2, o - i) + } + , + r.write = function (t, r, e, i, n, o) { + var s, h, u, a = 8 * o - n - 1, f = (1 << a) - 1, c = f >> 1, + p = 23 === n ? Math.pow(2, -24) - Math.pow(2, -77) : 0, l = i ? 0 : o - 1, y = i ? 1 : -1, + d = r < 0 || 0 === r && 1 / r < 0 ? 1 : 0; + for (r = Math.abs(r), + isNaN(r) || r === 1 / 0 ? (h = isNaN(r) ? 1 : 0, + s = f) : (s = Math.floor(Math.log(r) / Math.LN2), + r * (u = Math.pow(2, -s)) < 1 && (s--, + u *= 2), + r += s + c >= 1 ? p / u : p * Math.pow(2, 1 - c), + r * u >= 2 && (s++, + u /= 2), + s + c >= f ? (h = 0, + s = f) : s + c >= 1 ? (h = (r * u - 1) * Math.pow(2, n), + s += c) : (h = r * Math.pow(2, c - 1) * Math.pow(2, n), + s = 0)); n >= 8; t[e + l] = 255 & h, + l += y, + h /= 256, + n -= 8) + ; + for (s = s << n | h, + a += n; a > 0; t[e + l] = 255 & s, + l += y, + s /= 256, + a -= 8) + ; + t[e + l - y] |= 128 * d + } + }, + e3db: function (t, r) { + var e = {}.toString; + t.exports = Array.isArray || function (t) { + return "[object Array]" == e.call(t) + } + }, + 4917: function (e, t, i) { + "use strict"; + var n = i("cb7c") + , o = i("9def") + , r = i("0390") + , a = i("5f1b"); + i("214f")("match", 1, (function (e, t, i, l) { + return [function (i) { + var n = e(this) + , o = void 0 == i ? void 0 : i[t]; + return void 0 !== o ? o.call(i, n) : new RegExp(i)[t](String(n)) + } + , function (e) { + var t = l(i, e, this); + if (t.done) + return t.value; + var s = n(e) + , A = String(this); + if (!s.global) + return a(s, A); + var c = s.unicode; + s.lastIndex = 0; + var d, p = [], u = 0; + while (null !== (d = a(s, A))) { + var f = String(d[0]); + p[u] = f, + "" === f && (s.lastIndex = r(A, o(s.lastIndex), c)), + u++ + } + return 0 === u ? null : p + } + ] + } + )) + }, + cb7c: function (e, t, i) { + var n = i("d3f4"); + e.exports = function (e) { + if (!n(e)) + throw TypeError(e + " is not an object!"); + return e + } + }, + d3f4: function (e, t) { + e.exports = function (e) { + return "object" === typeof e ? null !== e : "function" === typeof e + } + }, + "9def": function (e, t, i) { + var n = i("4588") + , o = Math.min; + e.exports = function (e) { + return e > 0 ? o(n(e), 9007199254740991) : 0 + } + }, + 4588: function (e, t) { + var i = Math.ceil + , n = Math.floor; + e.exports = function (e) { + return isNaN(e = +e) ? 0 : (e > 0 ? n : i)(e) + } + }, + "0390": function (e, t, i) { + "use strict"; + var n = i("02f4")(!0); + e.exports = function (e, t, i) { + return t + (i ? n(e, t).length : 1) + } + }, + "02f4": function (e, t, i) { + var n = i("4588") + , o = i("be13"); + e.exports = function (e) { + return function (t, i) { + var r, a, l = String(o(t)), s = n(i), A = l.length; + return s < 0 || s >= A ? e ? "" : void 0 : (r = l.charCodeAt(s), + r < 55296 || r > 56319 || s + 1 === A || (a = l.charCodeAt(s + 1)) < 56320 || a > 57343 ? e ? l.charAt(s) : r : e ? l.slice(s, s + 2) : a - 56320 + (r - 55296 << 10) + 65536) + } + } + }, + be13: function (e, t) { + e.exports = function (e) { + if (void 0 == e) + throw TypeError("Can't call method on " + e); + return e + } + }, + "5f1b": function (e, t, i) { + "use strict"; + var n = i("23c6") + , o = RegExp.prototype.exec; + e.exports = function (e, t) { + var i = e.exec; + if ("function" === typeof i) { + var r = i.call(e, t); + if ("object" !== typeof r) + throw new TypeError("RegExp exec method returned something other than an Object or null"); + return r + } + if ("RegExp" !== n(e)) + throw new TypeError("RegExp#exec called on incompatible receiver"); + return o.call(e, t) + } + }, + "23c6": function (e, t, i) { + var n = i("2d95") + , o = i("2b4c")("toStringTag") + , r = "Arguments" == n(function () { + return arguments + }()) + , a = function (e, t) { + try { + return e[t] + } catch (i) { + } + }; + e.exports = function (e) { + var t, i, l; + return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (i = a(t = Object(e), o)) ? i : r ? n(t) : "Object" == (l = n(t)) && "function" == typeof t.callee ? "Arguments" : l + } + }, + "2d95": function (e, t) { + var i = {}.toString; + e.exports = function (e) { + return i.call(e).slice(8, -1) + } + }, + "2b4c": function (e, t, i) { + var n = i("5537")("wks") + , o = i("ca5a") + , r = i("7726").Symbol + , a = "function" == typeof r + , l = e.exports = function (e) { + return n[e] || (n[e] = a && r[e] || (a ? r : o)("Symbol." + e)) + } + ; + l.store = n + }, + 5537: function (e, t, i) { + var n = i("8378") + , o = i("7726") + , r = "__core-js_shared__" + , a = o[r] || (o[r] = {}); + (e.exports = function (e, t) { + return a[e] || (a[e] = void 0 !== t ? t : {}) + } + )("versions", []).push({ + version: n.version, + mode: i("2d00") ? "pure" : "global", + copyright: "© 2019 Denis Pushkarev (zloirock.ru)" + }) + }, + 8378: function (e, t) { + var i = e.exports = { + version: "2.6.11" + }; + "number" == typeof __e && (__e = i) + }, + 7726: function (e, t) { + var i = e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); + "number" == typeof __g && (__g = i) + }, + "2d00": function (e, t) { + e.exports = !1 + }, + ca5a: function (e, t) { + var i = 0 + , n = Math.random(); + e.exports = function (e) { + return "Symbol(".concat(void 0 === e ? "" : e, ")_", (++i + n).toString(36)) + } + }, + "214f": function (e, t, i) { + "use strict"; + i("b0c5"); + var n = i("2aba") + , o = i("32e9") + , r = i("79e5") + , a = i("be13") + , l = i("2b4c") + , s = i("520a") + , A = l("species") + , c = !r((function () { + var e = /./; + return e.exec = function () { + var e = []; + return e.groups = { + a: "7" + }, + e + } + , + "7" !== "".replace(e, "$") + } + )) + , d = function () { + var e = /(?:)/ + , t = e.exec; + e.exec = function () { + return t.apply(this, arguments) + } + ; + var i = "ab".split(e); + return 2 === i.length && "a" === i[0] && "b" === i[1] + }(); + e.exports = function (e, t, i) { + var p = l(e) + , u = !r((function () { + var t = {}; + return t[p] = function () { + return 7 + } + , + 7 != ""[e](t) + } + )) + , f = u ? !r((function () { + var t = !1 + , i = /a/; + return i.exec = function () { + return t = !0, + null + } + , + "split" === e && (i.constructor = {}, + i.constructor[A] = function () { + return i + } + ), + i[p](""), + !t + } + )) : void 0; + if (!u || !f || "replace" === e && !c || "split" === e && !d) { + var h = /./[p] + , b = i(a, p, ""[e], (function (e, t, i, n, o) { + return t.exec === s ? u && !o ? { + done: !0, + value: h.call(t, i, n) + } : { + done: !0, + value: e.call(i, t, n) + } : { + done: !1 + } + } + )) + , m = b[0] + , g = b[1]; + n(String.prototype, e, m), + o(RegExp.prototype, p, 2 == t ? function (e, t) { + return g.call(e, this, t) + } + : function (e) { + return g.call(e, this) + } + ) + } + } + }, + b0c5: function (e, t, i) { + "use strict"; + var n = i("520a"); + i("5ca1")({ + target: "RegExp", + proto: !0, + forced: n !== /./.exec + }, { + exec: n + }) + }, + "520a": function (e, t, i) { + "use strict"; + var n = i("0bfb") + , o = RegExp.prototype.exec + , r = String.prototype.replace + , a = o + , l = "lastIndex" + , s = function () { + var e = /a/ + , t = /b*/g; + return o.call(e, "a"), + o.call(t, "a"), + 0 !== e[l] || 0 !== t[l] + }() + , A = void 0 !== /()??/.exec("")[1] + , c = s || A; + c && (a = function (e) { + var t, i, a, c, d = this; + return A && (i = new RegExp("^" + d.source + "$(?!\\s)", n.call(d))), + s && (t = d[l]), + a = o.call(d, e), + s && a && (d[l] = d.global ? a.index + a[0].length : t), + A && a && a.length > 1 && r.call(a[0], i, (function () { + for (c = 1; c < arguments.length - 2; c++) + void 0 === arguments[c] && (a[c] = void 0) + } + )), + a + } + ), + e.exports = a + }, + "0bfb": function (e, t, i) { + "use strict"; + var n = i("cb7c"); + e.exports = function () { + var e = n(this) + , t = ""; + return e.global && (t += "g"), + e.ignoreCase && (t += "i"), + e.multiline && (t += "m"), + e.unicode && (t += "u"), + e.sticky && (t += "y"), + t + } + }, + "5ca1": function (e, t, i) { + var n = i("7726") + , o = i("8378") + , r = i("32e9") + , a = i("2aba") + , l = i("9b43") + , s = "prototype" + , A = function (e, t, i) { + var c, d, p, u, f = e & A.F, h = e & A.G, b = e & A.S, m = e & A.P, g = e & A.B, + C = h ? n : b ? n[t] || (n[t] = {}) : (n[t] || {})[s], B = h ? o : o[t] || (o[t] = {}), + x = B[s] || (B[s] = {}); + for (c in h && (i = t), + i) + d = !f && C && void 0 !== C[c], + p = (d ? C : i)[c], + u = g && d ? l(p, n) : m && "function" == typeof p ? l(Function.call, p) : p, + C && a(C, c, p, e & A.U), + B[c] != p && r(B, c, u), + m && x[c] != p && (x[c] = p) + }; + n.core = o, + A.F = 1, + A.G = 2, + A.S = 4, + A.P = 8, + A.B = 16, + A.W = 32, + A.U = 64, + A.R = 128, + e.exports = A + }, + "32e9": function (e, t, i) { + var n = i("86cc") + , o = i("4630"); + e.exports = i("9e1e") ? function (e, t, i) { + return n.f(e, t, o(1, i)) + } + : function (e, t, i) { + return e[t] = i, + e + } + }, + "86cc": function (e, t, i) { + var n = i("cb7c") + , o = i("c69a") + , r = i("6a99") + , a = Object.defineProperty; + t.f = i("9e1e") ? Object.defineProperty : function (e, t, i) { + if (n(e), + t = r(t, !0), + n(i), + o) + try { + return a(e, t, i) + } catch (l) { + } + if ("get" in i || "set" in i) + throw TypeError("Accessors not supported!"); + return "value" in i && (e[t] = i.value), + e + } + }, + c69a: function (e, t, i) { + e.exports = !i("9e1e") && !i("79e5")((function () { + return 7 != Object.defineProperty(i("230e")("div"), "a", { + get: function () { + return 7 + } + }).a + } + )) + }, + "9e1e": function (e, t, i) { + e.exports = !i("79e5")((function () { + return 7 != Object.defineProperty({}, "a", { + get: function () { + return 7 + } + }).a + } + )) + }, + "79e5": function (e, t) { + e.exports = function (e) { + try { + return !!e() + } catch (t) { + return !0 + } + } + }, + "6a99": function (e, t, i) { + var n = i("d3f4"); + e.exports = function (e, t) { + if (!n(e)) + return e; + var i, o; + if (t && "function" == typeof (i = e.toString) && !n(o = i.call(e))) + return o; + if ("function" == typeof (i = e.valueOf) && !n(o = i.call(e))) + return o; + if (!t && "function" == typeof (i = e.toString) && !n(o = i.call(e))) + return o; + throw TypeError("Can't convert object to primitive value") + } + }, + 4630: function (e, t) { + e.exports = function (e, t) { + return { + enumerable: !(1 & e), + configurable: !(2 & e), + writable: !(4 & e), + value: t + } + } + }, + "2aba": function (e, t, i) { + var n = i("7726") + , o = i("32e9") + , r = i("69a8") + , a = i("ca5a")("src") + , l = i("fa5b") + , s = "toString" + , A = ("" + l).split(s); + i("8378").inspectSource = function (e) { + return l.call(e) + } + , + (e.exports = function (e, t, i, l) { + var s = "function" == typeof i; + s && (r(i, "name") || o(i, "name", t)), + e[t] !== i && (s && (r(i, a) || o(i, a, e[t] ? "" + e[t] : A.join(String(t)))), + e === n ? e[t] = i : l ? e[t] ? e[t] = i : o(e, t, i) : (delete e[t], + o(e, t, i))) + } + )(Function.prototype, s, (function () { + return "function" == typeof this && this[a] || l.call(this) + } + )) + }, + "69a8": function (e, t) { + var i = {}.hasOwnProperty; + e.exports = function (e, t) { + return i.call(e, t) + } + }, + fa5b: function (e, t, i) { + e.exports = i("5537")("native-function-to-string", Function.toString) + }, + "9b43": function (e, t, i) { + var n = i("d8e8"); + e.exports = function (e, t, i) { + if (n(e), + void 0 === t) + return e; + switch (i) { + case 1: + return function (i) { + return e.call(t, i) + } + ; + case 2: + return function (i, n) { + return e.call(t, i, n) + } + ; + case 3: + return function (i, n, o) { + return e.call(t, i, n, o) + } + } + return function () { + return e.apply(t, arguments) + } + } + }, + d8e8: function (e, t) { + e.exports = function (e) { + if ("function" != typeof e) + throw TypeError(e + " is not a function!"); + return e + } + }, + "6c7b": function (t, r, e) { + var i = e("5ca1"); + i(i.P, "Array", { + fill: e("36bd") + }), + e("9c6c")("fill") + }, + "36bd": function (e, t, i) { + "use strict"; + var n = i("4bf8") + , o = i("77f1") + , r = i("9def"); + e.exports = function (e) { + var t = n(this) + , i = r(t.length) + , a = arguments.length + , l = o(a > 1 ? arguments[1] : void 0, i) + , s = a > 2 ? arguments[2] : void 0 + , A = void 0 === s ? i : o(s, i); + while (A > l) + t[l++] = e; + return t + } + }, + "4bf8": function (e, t, i) { + var n = i("be13"); + e.exports = function (e) { + return Object(n(e)) + } + }, + "77f1": function (e, t, i) { + var n = i("4588") + , o = Math.max + , r = Math.min; + e.exports = function (e, t) { + return e = n(e), + e < 0 ? o(e + t, 0) : r(e, t) + } + }, + "9c6c": function (e, t, i) { + var n = i("2b4c")("unscopables") + , o = Array.prototype; + void 0 == o[n] && i("32e9")(o, n, {}), + e.exports = function (e) { + o[n][e] = !0 + } + }, + 6762: function (e, t, i) { + "use strict"; + var n = i("5ca1") + , o = i("c366")(!0); + n(n.P, "Array", { + includes: function (e) { + return o(this, e, arguments.length > 1 ? arguments[1] : void 0) + } + }), + i("9c6c")("includes") + }, + c366: function (e, t, i) { + var n = i("6821") + , o = i("9def") + , r = i("77f1"); + e.exports = function (e) { + return function (t, i, a) { + var l, s = n(t), A = o(s.length), c = r(a, A); + if (e && i != i) { + while (A > c) + if (l = s[c++], + l != l) + return !0 + } else + for (; A > c; c++) + if ((e || c in s) && s[c] === i) + return e || c || 0; + return !e && -1 + } + } + }, + 6821: function (e, t, i) { + var n = i("626a") + , o = i("be13"); + e.exports = function (e) { + return n(o(e)) + } + }, + "626a": function (e, t, i) { + var n = i("2d95"); + e.exports = Object("z").propertyIsEnumerable(0) ? Object : function (e) { + return "String" == n(e) ? e.split("") : Object(e) + } + }, + "55dd": function (e, t, i) { + "use strict"; + var n = i("5ca1") + , o = i("d8e8") + , r = i("4bf8") + , a = i("79e5") + , l = [].sort + , s = [1, 2, 3]; + n(n.P + n.F * (a((function () { + s.sort(void 0) + } + )) || !a((function () { + s.sort(null) + } + )) || !i("2f21")(l)), "Array", { + sort: function (e) { + return void 0 === e ? l.call(r(this)) : l.call(r(this), o(e)) + } + }) + }, + "2f21": function (e, t, i) { + "use strict"; + var n = i("79e5"); + e.exports = function (e, t) { + return !!e && n((function () { + t ? e.call(null, (function () { + } + ), 1) : e.call(null) + } + )) + } + }, + "6b54": function (e, t, i) { + "use strict"; + i("3846"); + var n = i("cb7c") + , o = i("0bfb") + , r = i("9e1e") + , a = "toString" + , l = /./[a] + , s = function (e) { + i("2aba")(RegExp.prototype, a, e, !0) + }; + i("79e5")((function () { + return "/a/b" != l.call({ + source: "a", + flags: "b" + }) + } + )) ? s((function () { + var e = n(this); + return "/".concat(e.source, "/", "flags" in e ? e.flags : !r && e instanceof RegExp ? o.call(e) : void 0) + } + )) : l.name != a && s((function () { + return l.call(this) + } + )) + }, + 3846: function (e, t, i) { + i("9e1e") && "g" != /./g.flags && i("86cc").f(RegExp.prototype, "flags", { + configurable: !0, + get: i("0bfb") + }) + }, + 1602: function (t, e, n) { + "use strict"; + + function r() { + var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" + , e = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + , n = "0123456789" + , r = i(); + return r; + + function i() { + var r = s(6, t) + , i = s(1, e) + , u = s(1, n) + , a = i + u + r; + return a + } + + function s(t, e) { + t = t || 32; + for (var n = "", r = 0; r < t; r++) + n += e.charAt(Math.ceil(1e3 * Math.random()) % e.length); + return n + } + } + + n.d(e, "a", (function () { + return r + } + )) + }, + "68b2": function (t, e, n) { + "use strict"; + n.r(e), + n.d(e, "sm2", (function () { + return r + } + )), + n.d(e, "sm3", (function () { + return i + } + )), + n.d(e, "sm4", (function () { + return s + } + )); + var r = n("4d09") + , i = n("b3c7") + , s = n("e04e"); + e["default"] = { + sm2: r, + sm3: i, + sm4: s + } + }, + "4d09": function (t, e, n) { + "use strict"; + n.r(e), + n.d(e, "doEncrypt", (function () { + return m + } + )), + n.d(e, "doDecrypt", (function () { + return b + } + )), + n.d(e, "doSignature", (function () { + return F + } + )), + n.d(e, "doVerifySignature", (function () { + return x + } + )), + n.d(e, "doSm3Hash", (function () { + return B + } + )), + n.d(e, "getPublicKeyFromPrivateKey", (function () { + return k + } + )), + n.d(e, "getPoint", (function () { + return w + } + )); + n("6b54"); + var r = n("f33e") + , i = r.BigInteger + , s = n("53ea") + , u = s.encodeDer + , a = s.decodeDer + , o = n("4d2d") + , h = o.SM3Digest + , c = n("c747") + , f = c.SM2Cipher + , l = n("b381") + , g = l.generateEcparam() + , d = g.G + , v = g.curve + , p = g.n + , y = 0; + + function m(t, e) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1 + , r = new f; + t = l.hexToArray(l.parseUtf8StringToHex(t)), + e.length > 128 && (e = e.substr(e.length - 128)); + var i = e.substr(0, 64) + , s = e.substr(64); + e = r.createPoint(i, s); + var u = r.initEncipher(e); + r.encryptBlock(t); + var a = l.arrayToHex(t) + , o = new Array(32); + return r.doFinal(o), + o = l.arrayToHex(o), + n === y ? u + a + o : u + o + a + } + + function b(t, e) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1 + , r = new f; + e = new i(e, 16); + var s = t.substr(0, 64) + , u = t.substr(0 + s.length, 64) + , a = s.length + u.length + , o = t.substr(a, 64) + , h = t.substr(a + 64); + n === y && (o = t.substr(t.length - 64), + h = t.substr(a, t.length - a - 64)); + var c = l.hexToArray(h) + , g = r.createPoint(s, u); + r.initDecipher(e, g), + r.decryptBlock(c); + var d = new Array(32); + r.doFinal(d); + var v = l.arrayToHex(d) === o; + if (v) { + var p = l.arrayToUtf8(c); + return p + } + return "" + } + + function F(t, e) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {} + , r = n.pointPool + , s = n.der + , a = n.hash + , o = n.publicKey + , h = "string" === typeof t ? l.parseUtf8StringToHex(t) : l.parseArrayBufferToHex(t); + a && (o = o || k(e), + h = B(h, o)); + var c = new i(e, 16) + , f = new i(h, 16) + , g = null + , d = null + , v = null; + do { + do { + var y = void 0; + y = r && r.length ? r.pop() : w(), + g = y.k, + d = f.add(y.x1).mod(p) + } while (d.equals(i.ZERO) || d.add(g).equals(p)); + v = c.add(i.ONE).modInverse(p).multiply(g.subtract(d.multiply(c))).mod(p) + } while (v.equals(i.ZERO)); + return s ? u(d, v) : l.leftPad(d.toString(16), 64) + l.leftPad(v.toString(16), 64) + } + + function x(t, e, n) { + var r, s, u = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, o = u.der, h = u.hash, + c = "string" === typeof t ? l.parseUtf8StringToHex(t) : l.parseArrayBufferToHex(t); + if (h && (c = B(c, n)), + o) { + var f = a(e); + r = f.r, + s = f.s + } else + r = new i(e.substring(0, 64), 16), + s = new i(e.substring(64), 16); + var g = v.decodePointHex(n) + , y = new i(c, 16) + , m = r.add(s).mod(p); + if (m.equals(i.ZERO)) + return !1; + var b = d.multiply(s).add(g.multiply(m)) + , F = y.add(b.getX().toBigInteger()).mod(p); + return r.equals(F) + } + + function B(t, e) { + var n = new h + , r = (new h).getZ(d, e.substr(2, 128)) + , i = l.hexToArray(l.arrayToHex(r).toString()) + , s = t + , u = l.hexToArray(s) + , a = new Array(n.getDigestSize()); + return n.blockUpdate(i, 0, i.length), + n.blockUpdate(u, 0, u.length), + n.doFinal(a, 0), + l.arrayToHex(a).toString() + } + + function k(t) { + var e = d.multiply(new i(t, 16)) + , n = l.leftPad(e.getX().toBigInteger().toString(16), 64) + , r = l.leftPad(e.getY().toBigInteger().toString(16), 64); + return "04" + n + r + } + + function w() { + var t = l.generateKeyPairHex() + , e = v.decodePointHex(t.publicKey); + return t.k = new i(t.privateKey, 16), + t.x1 = e.getX().toBigInteger(), + t + } + + e["default"] = { + generateKeyPairHex: l.generateKeyPairHex, + doEncrypt: m, + doDecrypt: b, + doSignature: F, + doVerifySignature: x, + getPoint: w + } + }, + f33e: function (t, r, e) { + (function () { + var r, e = 0xdeadbeefcafe, i = 15715070 == (16777215 & e); + + function n(t, r, e) { + null != t && ("number" == typeof t ? this.fromNumber(t, r, e) : null == r && "string" != typeof t ? this.fromString(t, 256) : this.fromString(t, r)) + } + + function o() { + return new n(null) + } + + function s(t, r, e, i, n, o) { + while (--o >= 0) { + var s = r * this[t++] + e[i] + n; + n = Math.floor(s / 67108864), + e[i++] = 67108863 & s + } + return n + } + + function h(t, r, e, i, n, o) { + var s = 32767 & r + , h = r >> 15; + while (--o >= 0) { + var u = 32767 & this[t] + , a = this[t++] >> 15 + , f = h * u + a * s; + u = s * u + ((32767 & f) << 15) + e[i] + (1073741823 & n), + n = (u >>> 30) + (f >>> 15) + h * a + (n >>> 30), + e[i++] = 1073741823 & u + } + return n + } + + function u(t, r, e, i, n, o) { + var s = 16383 & r + , h = r >> 14; + while (--o >= 0) { + var u = 16383 & this[t] + , a = this[t++] >> 14 + , f = h * u + a * s; + u = s * u + ((16383 & f) << 14) + e[i] + n, + n = (u >> 28) + (f >> 14) + h * a, + e[i++] = 268435455 & u + } + return n + } + + var a = "undefined" !== typeof navigator; + a && i && "Microsoft Internet Explorer" == navigator.appName ? (n.prototype.am = h, + r = 30) : a && i && "Netscape" != navigator.appName ? (n.prototype.am = s, + r = 26) : (n.prototype.am = u, + r = 28), + n.prototype.DB = r, + n.prototype.DM = (1 << r) - 1, + n.prototype.DV = 1 << r; + var f = 52; + n.prototype.FV = Math.pow(2, f), + n.prototype.F1 = f - r, + n.prototype.F2 = 2 * r - f; + var c, p, l = "0123456789abcdefghijklmnopqrstuvwxyz", y = new Array; + for (c = "0".charCodeAt(0), + p = 0; p <= 9; ++p) + y[c++] = p; + for (c = "a".charCodeAt(0), + p = 10; p < 36; ++p) + y[c++] = p; + for (c = "A".charCodeAt(0), + p = 10; p < 36; ++p) + y[c++] = p; + + function d(t) { + return l.charAt(t) + } + + function v(t, r) { + var e = y[t.charCodeAt(r)]; + return null == e ? -1 : e + } + + function w(t) { + for (var r = this.t - 1; r >= 0; --r) + t[r] = this[r]; + t.t = this.t, + t.s = this.s + } + + function g(t) { + this.t = 1, + this.s = t < 0 ? -1 : 0, + t > 0 ? this[0] = t : t < -1 ? this[0] = t + this.DV : this.t = 0 + } + + function m(t) { + var r = o(); + return r.fromInt(t), + r + } + + function E(t, r) { + var e; + if (16 == r) + e = 4; + else if (8 == r) + e = 3; + else if (256 == r) + e = 8; + else if (2 == r) + e = 1; + else if (32 == r) + e = 5; + else { + if (4 != r) + return void this.fromRadix(t, r); + e = 2 + } + this.t = 0, + this.s = 0; + var i = t.length + , o = !1 + , s = 0; + while (--i >= 0) { + var h = 8 == e ? 255 & t[i] : v(t, i); + h < 0 ? "-" == t.charAt(i) && (o = !0) : (o = !1, + 0 == s ? this[this.t++] = h : s + e > this.DB ? (this[this.t - 1] |= (h & (1 << this.DB - s) - 1) << s, + this[this.t++] = h >> this.DB - s) : this[this.t - 1] |= h << s, + s += e, + s >= this.DB && (s -= this.DB)) + } + 8 == e && 0 != (128 & t[0]) && (this.s = -1, + s > 0 && (this[this.t - 1] |= (1 << this.DB - s) - 1 << s)), + this.clamp(), + o && n.ZERO.subTo(this, this) + } + + function A() { + var t = this.s & this.DM; + while (this.t > 0 && this[this.t - 1] == t) + --this.t + } + + function S(t) { + if (this.s < 0) + return "-" + this.negate().toString(t); + var r; + if (16 == t) + r = 4; + else if (8 == t) + r = 3; + else if (2 == t) + r = 1; + else if (32 == t) + r = 5; + else { + if (4 != t) + return this.toRadix(t); + r = 2 + } + var e, i = (1 << r) - 1, n = !1, o = "", s = this.t, h = this.DB - s * this.DB % r; + if (s-- > 0) { + h < this.DB && (e = this[s] >> h) > 0 && (n = !0, + o = d(e)); + while (s >= 0) + h < r ? (e = (this[s] & (1 << h) - 1) << r - h, + e |= this[--s] >> (h += this.DB - r)) : (e = this[s] >> (h -= r) & i, + h <= 0 && (h += this.DB, + --s)), + e > 0 && (n = !0), + n && (o += d(e)) + } + return n ? o : "0" + } + + function _() { + var t = o(); + return n.ZERO.subTo(this, t), + t + } + + function b() { + return this.s < 0 ? this.negate() : this + } + + function T(t) { + var r = this.s - t.s; + if (0 != r) + return r; + var e = this.t; + if (r = e - t.t, + 0 != r) + return this.s < 0 ? -r : r; + while (--e >= 0) + if (0 != (r = this[e] - t[e])) + return r; + return 0 + } + + function R(t) { + var r, e = 1; + return 0 != (r = t >>> 16) && (t = r, + e += 16), + 0 != (r = t >> 8) && (t = r, + e += 8), + 0 != (r = t >> 4) && (t = r, + e += 4), + 0 != (r = t >> 2) && (t = r, + e += 2), + 0 != (r = t >> 1) && (t = r, + e += 1), + e + } + + function B() { + return this.t <= 0 ? 0 : this.DB * (this.t - 1) + R(this[this.t - 1] ^ this.s & this.DM) + } + + function H(t, r) { + var e; + for (e = this.t - 1; e >= 0; --e) + r[e + t] = this[e]; + for (e = t - 1; e >= 0; --e) + r[e] = 0; + r.t = this.t + t, + r.s = this.s + } + + function D(t, r) { + for (var e = t; e < this.t; ++e) + r[e - t] = this[e]; + r.t = Math.max(this.t - t, 0), + r.s = this.s + } + + function C(t, r) { + var e, i = t % this.DB, n = this.DB - i, o = (1 << n) - 1, s = Math.floor(t / this.DB), + h = this.s << i & this.DM; + for (e = this.t - 1; e >= 0; --e) + r[e + s + 1] = this[e] >> n | h, + h = (this[e] & o) << i; + for (e = s - 1; e >= 0; --e) + r[e] = 0; + r[s] = h, + r.t = this.t + s + 1, + r.s = this.s, + r.clamp() + } + + function O(t, r) { + r.s = this.s; + var e = Math.floor(t / this.DB); + if (e >= this.t) + r.t = 0; + else { + var i = t % this.DB + , n = this.DB - i + , o = (1 << i) - 1; + r[0] = this[e] >> i; + for (var s = e + 1; s < this.t; ++s) + r[s - e - 1] |= (this[s] & o) << n, + r[s - e] = this[s] >> i; + i > 0 && (r[this.t - e - 1] |= (this.s & o) << n), + r.t = this.t - e, + r.clamp() + } + } + + function M(t, r) { + var e = 0 + , i = 0 + , n = Math.min(t.t, this.t); + while (e < n) + i += this[e] - t[e], + r[e++] = i & this.DM, + i >>= this.DB; + if (t.t < this.t) { + i -= t.s; + while (e < this.t) + i += this[e], + r[e++] = i & this.DM, + i >>= this.DB; + i += this.s + } else { + i += this.s; + while (e < t.t) + i -= t[e], + r[e++] = i & this.DM, + i >>= this.DB; + i -= t.s + } + r.s = i < 0 ? -1 : 0, + i < -1 ? r[e++] = this.DV + i : i > 0 && (r[e++] = i), + r.t = e, + r.clamp() + } + + function P(t, r) { + var e = this.abs() + , i = t.abs() + , o = e.t; + r.t = o + i.t; + while (--o >= 0) + r[o] = 0; + for (o = 0; o < i.t; ++o) + r[o + e.t] = e.am(0, i[o], r, o, 0, e.t); + r.s = 0, + r.clamp(), + this.s != t.s && n.ZERO.subTo(r, r) + } + + function U(t) { + var r = this.abs() + , e = t.t = 2 * r.t; + while (--e >= 0) + t[e] = 0; + for (e = 0; e < r.t - 1; ++e) { + var i = r.am(e, r[e], t, 2 * e, 0, 1); + (t[e + r.t] += r.am(e + 1, 2 * r[e], t, 2 * e + 1, i, r.t - e - 1)) >= r.DV && (t[e + r.t] -= r.DV, + t[e + r.t + 1] = 1) + } + t.t > 0 && (t[t.t - 1] += r.am(e, r[e], t, 2 * e, 0, 1)), + t.s = 0, + t.clamp() + } + + function I(t, r, e) { + var i = t.abs(); + if (!(i.t <= 0)) { + var s = this.abs(); + if (s.t < i.t) + return null != r && r.fromInt(0), + void (null != e && this.copyTo(e)); + null == e && (e = o()); + var h = o() + , u = this.s + , a = t.s + , f = this.DB - R(i[i.t - 1]); + f > 0 ? (i.lShiftTo(f, h), + s.lShiftTo(f, e)) : (i.copyTo(h), + s.copyTo(e)); + var c = h.t + , p = h[c - 1]; + if (0 != p) { + var l = p * (1 << this.F1) + (c > 1 ? h[c - 2] >> this.F2 : 0) + , y = this.FV / l + , d = (1 << this.F1) / l + , v = 1 << this.F2 + , w = e.t + , g = w - c + , m = null == r ? o() : r; + h.dlShiftTo(g, m), + e.compareTo(m) >= 0 && (e[e.t++] = 1, + e.subTo(m, e)), + n.ONE.dlShiftTo(c, m), + m.subTo(h, h); + while (h.t < c) + h[h.t++] = 0; + while (--g >= 0) { + var E = e[--w] == p ? this.DM : Math.floor(e[w] * y + (e[w - 1] + v) * d); + if ((e[w] += h.am(0, E, e, g, 0, c)) < E) { + h.dlShiftTo(g, m), + e.subTo(m, e); + while (e[w] < --E) + e.subTo(m, e) + } + } + null != r && (e.drShiftTo(c, r), + u != a && n.ZERO.subTo(r, r)), + e.t = c, + e.clamp(), + f > 0 && e.rShiftTo(f, e), + u < 0 && n.ZERO.subTo(e, e) + } + } + } + + function x(t) { + var r = o(); + return this.abs().divRemTo(t, null, r), + this.s < 0 && r.compareTo(n.ZERO) > 0 && t.subTo(r, r), + r + } + + function X(t) { + this.m = t + } + + function N(t) { + return t.s < 0 || t.compareTo(this.m) >= 0 ? t.mod(this.m) : t + } + + function k(t) { + return t + } + + function Y(t) { + t.divRemTo(this.m, null, t) + } + + function F(t, r, e) { + t.multiplyTo(r, e), + this.reduce(e) + } + + function L(t, r) { + t.squareTo(r), + this.reduce(r) + } + + function V() { + if (this.t < 1) + return 0; + var t = this[0]; + if (0 == (1 & t)) + return 0; + var r = 3 & t; + return r = r * (2 - (15 & t) * r) & 15, + r = r * (2 - (255 & t) * r) & 255, + r = r * (2 - ((65535 & t) * r & 65535)) & 65535, + r = r * (2 - t * r % this.DV) % this.DV, + r > 0 ? this.DV - r : -r + } + + function j(t) { + this.m = t, + this.mp = t.invDigit(), + this.mpl = 32767 & this.mp, + this.mph = this.mp >> 15, + this.um = (1 << t.DB - 15) - 1, + this.mt2 = 2 * t.t + } + + function q(t) { + var r = o(); + return t.abs().dlShiftTo(this.m.t, r), + r.divRemTo(this.m, null, r), + t.s < 0 && r.compareTo(n.ZERO) > 0 && this.m.subTo(r, r), + r + } + + function z(t) { + var r = o(); + return t.copyTo(r), + this.reduce(r), + r + } + + function W(t) { + while (t.t <= this.mt2) + t[t.t++] = 0; + for (var r = 0; r < this.m.t; ++r) { + var e = 32767 & t[r] + , i = e * this.mpl + ((e * this.mph + (t[r] >> 15) * this.mpl & this.um) << 15) & t.DM; + e = r + this.m.t, + t[e] += this.m.am(0, i, t, r, 0, this.m.t); + while (t[e] >= t.DV) + t[e] -= t.DV, + t[++e]++ + } + t.clamp(), + t.drShiftTo(this.m.t, t), + t.compareTo(this.m) >= 0 && t.subTo(this.m, t) + } + + function J(t, r) { + t.squareTo(r), + this.reduce(r) + } + + function K(t, r, e) { + t.multiplyTo(r, e), + this.reduce(e) + } + + function Z() { + return 0 == (this.t > 0 ? 1 & this[0] : this.s) + } + + function G(t, r) { + if (t > 4294967295 || t < 1) + return n.ONE; + var e = o() + , i = o() + , s = r.convert(this) + , h = R(t) - 1; + s.copyTo(e); + while (--h >= 0) + if (r.sqrTo(e, i), + (t & 1 << h) > 0) + r.mulTo(i, s, e); + else { + var u = e; + e = i, + i = u + } + return r.revert(e) + } + + function Q(t, r) { + var e; + return e = t < 256 || r.isEven() ? new X(r) : new j(r), + this.exp(t, e) + } + + function $() { + var t = o(); + return this.copyTo(t), + t + } + + function tt() { + if (this.s < 0) { + if (1 == this.t) + return this[0] - this.DV; + if (0 == this.t) + return -1 + } else { + if (1 == this.t) + return this[0]; + if (0 == this.t) + return 0 + } + return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0] + } + + function rt() { + return 0 == this.t ? this.s : this[0] << 24 >> 24 + } + + function et() { + return 0 == this.t ? this.s : this[0] << 16 >> 16 + } + + function it(t) { + return Math.floor(Math.LN2 * this.DB / Math.log(t)) + } + + function nt() { + return this.s < 0 ? -1 : this.t <= 0 || 1 == this.t && this[0] <= 0 ? 0 : 1 + } + + function ot(t) { + if (null == t && (t = 10), + 0 == this.signum() || t < 2 || t > 36) + return "0"; + var r = this.chunkSize(t) + , e = Math.pow(t, r) + , i = m(e) + , n = o() + , s = o() + , h = ""; + this.divRemTo(i, n, s); + while (n.signum() > 0) + h = (e + s.intValue()).toString(t).substr(1) + h, + n.divRemTo(i, n, s); + return s.intValue().toString(t) + h + } + + function st(t, r) { + this.fromInt(0), + null == r && (r = 10); + for (var e = this.chunkSize(r), i = Math.pow(r, e), o = !1, s = 0, h = 0, u = 0; u < t.length; ++u) { + var a = v(t, u); + a < 0 ? "-" == t.charAt(u) && 0 == this.signum() && (o = !0) : (h = r * h + a, + ++s >= e && (this.dMultiply(i), + this.dAddOffset(h, 0), + s = 0, + h = 0)) + } + s > 0 && (this.dMultiply(Math.pow(r, s)), + this.dAddOffset(h, 0)), + o && n.ZERO.subTo(this, this) + } + + function ht(t, r, e) { + if ("number" == typeof r) + if (t < 2) + this.fromInt(1); + else { + this.fromNumber(t, e), + this.testBit(t - 1) || this.bitwiseTo(n.ONE.shiftLeft(t - 1), dt, this), + this.isEven() && this.dAddOffset(1, 0); + while (!this.isProbablePrime(r)) + this.dAddOffset(2, 0), + this.bitLength() > t && this.subTo(n.ONE.shiftLeft(t - 1), this) + } + else { + var i = new Array + , o = 7 & t; + i.length = 1 + (t >> 3), + r.nextBytes(i), + o > 0 ? i[0] &= (1 << o) - 1 : i[0] = 0, + this.fromString(i, 256) + } + } + + function ut() { + var t = this.t + , r = new Array; + r[0] = this.s; + var e, i = this.DB - t * this.DB % 8, n = 0; + if (t-- > 0) { + i < this.DB && (e = this[t] >> i) != (this.s & this.DM) >> i && (r[n++] = e | this.s << this.DB - i); + while (t >= 0) + i < 8 ? (e = (this[t] & (1 << i) - 1) << 8 - i, + e |= this[--t] >> (i += this.DB - 8)) : (e = this[t] >> (i -= 8) & 255, + i <= 0 && (i += this.DB, + --t)), + 0 != (128 & e) && (e |= -256), + 0 == n && (128 & this.s) != (128 & e) && ++n, + (n > 0 || e != this.s) && (r[n++] = e) + } + return r + } + + function at(t) { + return 0 == this.compareTo(t) + } + + function ft(t) { + return this.compareTo(t) < 0 ? this : t + } + + function ct(t) { + return this.compareTo(t) > 0 ? this : t + } + + function pt(t, r, e) { + var i, n, o = Math.min(t.t, this.t); + for (i = 0; i < o; ++i) + e[i] = r(this[i], t[i]); + if (t.t < this.t) { + for (n = t.s & this.DM, + i = o; i < this.t; ++i) + e[i] = r(this[i], n); + e.t = this.t + } else { + for (n = this.s & this.DM, + i = o; i < t.t; ++i) + e[i] = r(n, t[i]); + e.t = t.t + } + e.s = r(this.s, t.s), + e.clamp() + } + + function lt(t, r) { + return t & r + } + + function yt(t) { + var r = o(); + return this.bitwiseTo(t, lt, r), + r + } + + function dt(t, r) { + return t | r + } + + function vt(t) { + var r = o(); + return this.bitwiseTo(t, dt, r), + r + } + + function wt(t, r) { + return t ^ r + } + + function gt(t) { + var r = o(); + return this.bitwiseTo(t, wt, r), + r + } + + function mt(t, r) { + return t & ~r + } + + function Et(t) { + var r = o(); + return this.bitwiseTo(t, mt, r), + r + } + + function At() { + for (var t = o(), r = 0; r < this.t; ++r) + t[r] = this.DM & ~this[r]; + return t.t = this.t, + t.s = ~this.s, + t + } + + function St(t) { + var r = o(); + return t < 0 ? this.rShiftTo(-t, r) : this.lShiftTo(t, r), + r + } + + function _t(t) { + var r = o(); + return t < 0 ? this.lShiftTo(-t, r) : this.rShiftTo(t, r), + r + } + + function bt(t) { + if (0 == t) + return -1; + var r = 0; + return 0 == (65535 & t) && (t >>= 16, + r += 16), + 0 == (255 & t) && (t >>= 8, + r += 8), + 0 == (15 & t) && (t >>= 4, + r += 4), + 0 == (3 & t) && (t >>= 2, + r += 2), + 0 == (1 & t) && ++r, + r + } + + function Tt() { + for (var t = 0; t < this.t; ++t) + if (0 != this[t]) + return t * this.DB + bt(this[t]); + return this.s < 0 ? this.t * this.DB : -1 + } + + function Rt(t) { + var r = 0; + while (0 != t) + t &= t - 1, + ++r; + return r + } + + function Bt() { + for (var t = 0, r = this.s & this.DM, e = 0; e < this.t; ++e) + t += Rt(this[e] ^ r); + return t + } + + function Ht(t) { + var r = Math.floor(t / this.DB); + return r >= this.t ? 0 != this.s : 0 != (this[r] & 1 << t % this.DB) + } + + function Dt(t, r) { + var e = n.ONE.shiftLeft(t); + return this.bitwiseTo(e, r, e), + e + } + + function Ct(t) { + return this.changeBit(t, dt) + } + + function Ot(t) { + return this.changeBit(t, mt) + } + + function Mt(t) { + return this.changeBit(t, wt) + } + + function Pt(t, r) { + var e = 0 + , i = 0 + , n = Math.min(t.t, this.t); + while (e < n) + i += this[e] + t[e], + r[e++] = i & this.DM, + i >>= this.DB; + if (t.t < this.t) { + i += t.s; + while (e < this.t) + i += this[e], + r[e++] = i & this.DM, + i >>= this.DB; + i += this.s + } else { + i += this.s; + while (e < t.t) + i += t[e], + r[e++] = i & this.DM, + i >>= this.DB; + i += t.s + } + r.s = i < 0 ? -1 : 0, + i > 0 ? r[e++] = i : i < -1 && (r[e++] = this.DV + i), + r.t = e, + r.clamp() + } + + function Ut(t) { + var r = o(); + return this.addTo(t, r), + r + } + + function It(t) { + var r = o(); + return this.subTo(t, r), + r + } + + function xt(t) { + var r = o(); + return this.multiplyTo(t, r), + r + } + + function Xt() { + var t = o(); + return this.squareTo(t), + t + } + + function Nt(t) { + var r = o(); + return this.divRemTo(t, r, null), + r + } + + function kt(t) { + var r = o(); + return this.divRemTo(t, null, r), + r + } + + function Yt(t) { + var r = o() + , e = o(); + return this.divRemTo(t, r, e), + new Array(r, e) + } + + function Ft(t) { + this[this.t] = this.am(0, t - 1, this, 0, 0, this.t), + ++this.t, + this.clamp() + } + + function Lt(t, r) { + if (0 != t) { + while (this.t <= r) + this[this.t++] = 0; + this[r] += t; + while (this[r] >= this.DV) + this[r] -= this.DV, + ++r >= this.t && (this[this.t++] = 0), + ++this[r] + } + } + + function Vt() { + } + + function jt(t) { + return t + } + + function qt(t, r, e) { + t.multiplyTo(r, e) + } + + function zt(t, r) { + t.squareTo(r) + } + + function Wt(t) { + return this.exp(t, new Vt) + } + + function Jt(t, r, e) { + var i, n = Math.min(this.t + t.t, r); + e.s = 0, + e.t = n; + while (n > 0) + e[--n] = 0; + for (i = e.t - this.t; n < i; ++n) + e[n + this.t] = this.am(0, t[n], e, n, 0, this.t); + for (i = Math.min(t.t, r); n < i; ++n) + this.am(0, t[n], e, n, 0, r - n); + e.clamp() + } + + function Kt(t, r, e) { + --r; + var i = e.t = this.t + t.t - r; + e.s = 0; + while (--i >= 0) + e[i] = 0; + for (i = Math.max(r - this.t, 0); i < t.t; ++i) + e[this.t + i - r] = this.am(r - i, t[i], e, 0, 0, this.t + i - r); + e.clamp(), + e.drShiftTo(1, e) + } + + function Zt(t) { + this.r2 = o(), + this.q3 = o(), + n.ONE.dlShiftTo(2 * t.t, this.r2), + this.mu = this.r2.divide(t), + this.m = t + } + + function Gt(t) { + if (t.s < 0 || t.t > 2 * this.m.t) + return t.mod(this.m); + if (t.compareTo(this.m) < 0) + return t; + var r = o(); + return t.copyTo(r), + this.reduce(r), + r + } + + function Qt(t) { + return t + } + + function $t(t) { + t.drShiftTo(this.m.t - 1, this.r2), + t.t > this.m.t + 1 && (t.t = this.m.t + 1, + t.clamp()), + this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), + this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); + while (t.compareTo(this.r2) < 0) + t.dAddOffset(1, this.m.t + 1); + t.subTo(this.r2, t); + while (t.compareTo(this.m) >= 0) + t.subTo(this.m, t) + } + + function tr(t, r) { + t.squareTo(r), + this.reduce(r) + } + + function rr(t, r, e) { + t.multiplyTo(r, e), + this.reduce(e) + } + + function er(t, r) { + var e, i, n = t.bitLength(), s = m(1); + if (n <= 0) + return s; + e = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, + i = n < 8 ? new X(r) : r.isEven() ? new Zt(r) : new j(r); + var h = new Array + , u = 3 + , a = e - 1 + , f = (1 << e) - 1; + if (h[1] = i.convert(this), + e > 1) { + var c = o(); + i.sqrTo(h[1], c); + while (u <= f) + h[u] = o(), + i.mulTo(c, h[u - 2], h[u]), + u += 2 + } + var p, l, y = t.t - 1, d = !0, v = o(); + n = R(t[y]) - 1; + while (y >= 0) { + n >= a ? p = t[y] >> n - a & f : (p = (t[y] & (1 << n + 1) - 1) << a - n, + y > 0 && (p |= t[y - 1] >> this.DB + n - a)), + u = e; + while (0 == (1 & p)) + p >>= 1, + --u; + if ((n -= u) < 0 && (n += this.DB, + --y), + d) + h[p].copyTo(s), + d = !1; + else { + while (u > 1) + i.sqrTo(s, v), + i.sqrTo(v, s), + u -= 2; + u > 0 ? i.sqrTo(s, v) : (l = s, + s = v, + v = l), + i.mulTo(v, h[p], s) + } + while (y >= 0 && 0 == (t[y] & 1 << n)) + i.sqrTo(s, v), + l = s, + s = v, + v = l, + --n < 0 && (n = this.DB - 1, + --y) + } + return i.revert(s) + } + + function ir(t) { + var r = this.s < 0 ? this.negate() : this.clone() + , e = t.s < 0 ? t.negate() : t.clone(); + if (r.compareTo(e) < 0) { + var i = r; + r = e, + e = i + } + var n = r.getLowestSetBit() + , o = e.getLowestSetBit(); + if (o < 0) + return r; + n < o && (o = n), + o > 0 && (r.rShiftTo(o, r), + e.rShiftTo(o, e)); + while (r.signum() > 0) + (n = r.getLowestSetBit()) > 0 && r.rShiftTo(n, r), + (n = e.getLowestSetBit()) > 0 && e.rShiftTo(n, e), + r.compareTo(e) >= 0 ? (r.subTo(e, r), + r.rShiftTo(1, r)) : (e.subTo(r, e), + e.rShiftTo(1, e)); + return o > 0 && e.lShiftTo(o, e), + e + } + + function nr(t) { + if (t <= 0) + return 0; + var r = this.DV % t + , e = this.s < 0 ? t - 1 : 0; + if (this.t > 0) + if (0 == r) + e = this[0] % t; + else + for (var i = this.t - 1; i >= 0; --i) + e = (r * e + this[i]) % t; + return e + } + + function or(t) { + var r = t.isEven(); + if (this.isEven() && r || 0 == t.signum()) + return n.ZERO; + var e = t.clone() + , i = this.clone() + , o = m(1) + , s = m(0) + , h = m(0) + , u = m(1); + while (0 != e.signum()) { + while (e.isEven()) + e.rShiftTo(1, e), + r ? (o.isEven() && s.isEven() || (o.addTo(this, o), + s.subTo(t, s)), + o.rShiftTo(1, o)) : s.isEven() || s.subTo(t, s), + s.rShiftTo(1, s); + while (i.isEven()) + i.rShiftTo(1, i), + r ? (h.isEven() && u.isEven() || (h.addTo(this, h), + u.subTo(t, u)), + h.rShiftTo(1, h)) : u.isEven() || u.subTo(t, u), + u.rShiftTo(1, u); + e.compareTo(i) >= 0 ? (e.subTo(i, e), + r && o.subTo(h, o), + s.subTo(u, s)) : (i.subTo(e, i), + r && h.subTo(o, h), + u.subTo(s, u)) + } + return 0 != i.compareTo(n.ONE) ? n.ZERO : u.compareTo(t) >= 0 ? u.subtract(t) : u.signum() < 0 ? (u.addTo(t, u), + u.signum() < 0 ? u.add(t) : u) : u + } + + X.prototype.convert = N, + X.prototype.revert = k, + X.prototype.reduce = Y, + X.prototype.mulTo = F, + X.prototype.sqrTo = L, + j.prototype.convert = q, + j.prototype.revert = z, + j.prototype.reduce = W, + j.prototype.mulTo = K, + j.prototype.sqrTo = J, + n.prototype.copyTo = w, + n.prototype.fromInt = g, + n.prototype.fromString = E, + n.prototype.clamp = A, + n.prototype.dlShiftTo = H, + n.prototype.drShiftTo = D, + n.prototype.lShiftTo = C, + n.prototype.rShiftTo = O, + n.prototype.subTo = M, + n.prototype.multiplyTo = P, + n.prototype.squareTo = U, + n.prototype.divRemTo = I, + n.prototype.invDigit = V, + n.prototype.isEven = Z, + n.prototype.exp = G, + n.prototype.toString = S, + n.prototype.negate = _, + n.prototype.abs = b, + n.prototype.compareTo = T, + n.prototype.bitLength = B, + n.prototype.mod = x, + n.prototype.modPowInt = Q, + n.ZERO = m(0), + n.ONE = m(1), + Vt.prototype.convert = jt, + Vt.prototype.revert = jt, + Vt.prototype.mulTo = qt, + Vt.prototype.sqrTo = zt, + Zt.prototype.convert = Gt, + Zt.prototype.revert = Qt, + Zt.prototype.reduce = $t, + Zt.prototype.mulTo = rr, + Zt.prototype.sqrTo = tr; + var sr, hr, ur, + ar = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], + fr = (1 << 26) / ar[ar.length - 1]; + + function cr(t) { + var r, e = this.abs(); + if (1 == e.t && e[0] <= ar[ar.length - 1]) { + for (r = 0; r < ar.length; ++r) + if (e[0] == ar[r]) + return !0; + return !1 + } + if (e.isEven()) + return !1; + r = 1; + while (r < ar.length) { + var i = ar[r] + , n = r + 1; + while (n < ar.length && i < fr) + i *= ar[n++]; + i = e.modInt(i); + while (r < n) + if (i % ar[r++] == 0) + return !1 + } + return e.millerRabin(t) + } + + function pr(t) { + var r = this.subtract(n.ONE) + , e = r.getLowestSetBit(); + if (e <= 0) + return !1; + var i = r.shiftRight(e); + t = t + 1 >> 1, + t > ar.length && (t = ar.length); + for (var s = o(), h = 0; h < t; ++h) { + s.fromInt(ar[Math.floor(Math.random() * ar.length)]); + var u = s.modPow(i, this); + if (0 != u.compareTo(n.ONE) && 0 != u.compareTo(r)) { + var a = 1; + while (a++ < e && 0 != u.compareTo(r)) + if (u = u.modPowInt(2, this), + 0 == u.compareTo(n.ONE)) + return !1; + if (0 != u.compareTo(r)) + return !1 + } + } + return !0 + } + + function lr(t) { + hr[ur++] ^= 255 & t, + hr[ur++] ^= t >> 8 & 255, + hr[ur++] ^= t >> 16 & 255, + hr[ur++] ^= t >> 24 & 255, + ur >= Tr && (ur -= Tr) + } + + function yr() { + lr((new Date).getTime()) + } + + if (n.prototype.chunkSize = it, + n.prototype.toRadix = ot, + n.prototype.fromRadix = st, + n.prototype.fromNumber = ht, + n.prototype.bitwiseTo = pt, + n.prototype.changeBit = Dt, + n.prototype.addTo = Pt, + n.prototype.dMultiply = Ft, + n.prototype.dAddOffset = Lt, + n.prototype.multiplyLowerTo = Jt, + n.prototype.multiplyUpperTo = Kt, + n.prototype.modInt = nr, + n.prototype.millerRabin = pr, + n.prototype.clone = $, + n.prototype.intValue = tt, + n.prototype.byteValue = rt, + n.prototype.shortValue = et, + n.prototype.signum = nt, + n.prototype.toByteArray = ut, + n.prototype.equals = at, + n.prototype.min = ft, + n.prototype.max = ct, + n.prototype.and = yt, + n.prototype.or = vt, + n.prototype.xor = gt, + n.prototype.andNot = Et, + n.prototype.not = At, + n.prototype.shiftLeft = St, + n.prototype.shiftRight = _t, + n.prototype.getLowestSetBit = Tt, + n.prototype.bitCount = Bt, + n.prototype.testBit = Ht, + n.prototype.setBit = Ct, + n.prototype.clearBit = Ot, + n.prototype.flipBit = Mt, + n.prototype.add = Ut, + n.prototype.subtract = It, + n.prototype.multiply = xt, + n.prototype.divide = Nt, + n.prototype.remainder = kt, + n.prototype.divideAndRemainder = Yt, + n.prototype.modPow = er, + n.prototype.modInverse = or, + n.prototype.pow = Wt, + n.prototype.gcd = ir, + n.prototype.isProbablePrime = cr, + n.prototype.square = Xt, + n.prototype.Barrett = Zt, + null == hr) { + var dr; + if (hr = new Array, + ur = 0, + "undefined" !== typeof window && window.crypto) + if (window.crypto.getRandomValues) { + var vr = new Uint8Array(32); + for (window.crypto.getRandomValues(vr), + dr = 0; dr < 32; ++dr) + hr[ur++] = vr[dr] + } else if ("Netscape" == navigator.appName && navigator.appVersion < "5") { + var wr = window.crypto.random(32); + for (dr = 0; dr < wr.length; ++dr) + hr[ur++] = 255 & wr.charCodeAt(dr) + } + while (ur < Tr) + dr = Math.floor(65536 * Math.random()), + hr[ur++] = dr >>> 8, + hr[ur++] = 255 & dr; + ur = 0, + yr() + } + + function gr() { + if (null == sr) { + for (yr(), + sr = br(), + sr.init(hr), + ur = 0; ur < hr.length; ++ur) + hr[ur] = 0; + ur = 0 + } + return sr.next() + } + + function mr(t) { + var r; + for (r = 0; r < t.length; ++r) + t[r] = gr() + } + + function Er() { + } + + function Ar() { + this.i = 0, + this.j = 0, + this.S = new Array + } + + function Sr(t) { + var r, e, i; + for (r = 0; r < 256; ++r) + this.S[r] = r; + for (e = 0, + r = 0; r < 256; ++r) + e = e + this.S[r] + t[r % t.length] & 255, + i = this.S[r], + this.S[r] = this.S[e], + this.S[e] = i; + this.i = 0, + this.j = 0 + } + + function _r() { + var t; + return this.i = this.i + 1 & 255, + this.j = this.j + this.S[this.i] & 255, + t = this.S[this.i], + this.S[this.i] = this.S[this.j], + this.S[this.j] = t, + this.S[t + this.S[this.i] & 255] + } + + function br() { + return new Ar + } + + Er.prototype.nextBytes = mr, + Ar.prototype.init = Sr, + Ar.prototype.next = _r; + var Tr = 256; + n.SecureRandom = Er, + n.BigInteger = n, + t.exports = n + } + ).call(this) + }, + "53ea": function (t, e, n) { + "use strict"; + n.r(e); + n("2397"); + var r = n("262e") + , i = n("99de") + , s = n("7e84") + , u = n("d4ec") + , a = n("bee2"); + n("a481"), + n("4917"), + n("6b54"); + + function o(t) { + var e = h(); + return function () { + var n, r = Object(s["a"])(t); + if (e) { + var u = Object(s["a"])(this).constructor; + n = Reflect.construct(r, arguments, u) + } else + n = r.apply(this, arguments); + return Object(i["a"])(this, n) + } + } + + function h() { + if ("undefined" === typeof Reflect || !Reflect.construct) + return !1; + if (Reflect.construct.sham) + return !1; + if ("function" === typeof Proxy) + return !0; + try { + return Date.prototype.toString.call(Reflect.construct(Date, [], (function () { + } + ))), + !0 + } catch (t) { + return !1 + } + } + + var c = n("f33e") + , f = c.BigInteger; + + function l(t) { + var e = t.toString(16); + if ("-" !== e.substr(0, 1)) + e.length % 2 === 1 ? e = "0" + e : e.match(/^[0-7]/) || (e = "00" + e); + else { + var n = e.substr(1) + , r = n.length; + r % 2 === 1 ? r += 1 : e.match(/^[0-7]/) || (r += 2); + for (var i = "", s = 0; s < r; s++) + i += "f"; + var u = new f(i, 16) + , a = u.xor(t).add(f.ONE); + e = a.toString(16).replace(/^-/, "") + } + return e + } + + var g = function () { + function t() { + Object(u["a"])(this, t), + this.isModified = !0, + this.hTLV = null, + this.hT = "00", + this.hL = "00", + this.hV = "" + } + + return Object(a["a"])(t, [{ + key: "getLengthHexFromValue", + value: function () { + var t = this.hV.length / 2 + , e = t.toString(16); + if (e.length % 2 === 1 && (e = "0" + e), + t < 128) + return e; + var n = e.length / 2 + , r = 128 + n; + return r.toString(16) + e + } + }, { + key: "getEncodedHex", + value: function () { + return (null == this.hTLV || this.isModified) && (this.hV = this.getFreshValueHex(), + this.hL = this.getLengthHexFromValue(), + this.hTLV = this.hT + this.hL + this.hV, + this.isModified = !1), + this.hTLV + } + }, { + key: "getFreshValueHex", + value: function () { + return "" + } + }]), + t + }() + , d = function (t) { + Object(r["a"])(n, t); + var e = o(n); + + function n(t) { + var r; + return Object(u["a"])(this, n), + r = e.call(this), + r.hT = "02", + t && t.bigint && (r.hTLV = null, + r.isModified = !0, + r.hV = l(t.bigint)), + r + } + + return Object(a["a"])(n, [{ + key: "getFreshValueHex", + value: function () { + return this.hV + } + }]), + n + }(g) + , v = function (t) { + Object(r["a"])(n, t); + var e = o(n); + + function n(t) { + var r; + return Object(u["a"])(this, n), + r = e.call(this), + r.hT = "30", + r.asn1Array = [], + t && t.array && (r.asn1Array = t.array), + r + } + + return Object(a["a"])(n, [{ + key: "getFreshValueHex", + value: function () { + for (var t = "", e = 0; e < this.asn1Array.length; e++) { + var n = this.asn1Array[e]; + t += n.getEncodedHex() + } + return this.hV = t, + this.hV + } + }]), + n + }(g); + + function p(t, e) { + if ("8" !== t.substring(e + 2, e + 3)) + return 1; + var n = parseInt(t.substring(e + 3, e + 4), 10); + return 0 === n ? -1 : n > 0 && n < 10 ? n + 1 : -2 + } + + function y(t, e) { + var n = p(t, e); + return n < 1 ? "" : t.substring(e + 2, e + 2 + 2 * n) + } + + function m(t, e) { + var n, r = y(t, e); + return "" === r ? -1 : (n = parseInt(r.substring(0, 1), 10) < 8 ? new f(r, 16) : new f(r.substring(2), 16), + n.intValue()) + } + + function b(t, e) { + var n = p(t, e); + return n < 0 ? n : e + 2 * (n + 1) + } + + function F(t, e) { + var n = b(t, e) + , r = m(t, e); + return t.substring(n, n + 2 * r) + } + + function x(t, e) { + var n = b(t, e) + , r = m(t, e); + return n + 2 * r + } + + function B(t, e) { + var n = [] + , r = b(t, e); + n.push(r); + for (var i = m(t, e), s = r, u = 0; ;) { + var a = x(t, s); + if (null == a || a - r >= 2 * i) + break; + if (u >= 200) + break; + n.push(a), + s = a, + u++ + } + return n + } + + e["default"] = { + encodeDer: function (t, e) { + var n = new d({ + bigint: t + }) + , r = new d({ + bigint: e + }) + , i = new v({ + array: [n, r] + }); + return i.getEncodedHex() + }, + decodeDer: function (t) { + var e = B(t, 0) + , n = e[0] + , r = e[1] + , i = F(t, n) + , s = F(t, r) + , u = new f(i, 16) + , a = new f(s, 16); + return { + r: u, + s: a + } + } + } + }, + 2397: function (t, r, e) { + var i = e("5ca1") + , n = e("2aeb") + , o = e("d8e8") + , s = e("cb7c") + , h = e("d3f4") + , u = e("79e5") + , a = e("f0c1") + , f = (e("7726").Reflect || {}).construct + , c = u((function () { + function t() { + } + + return !(f((function () { + } + ), [], t) instanceof t) + } + )) + , p = !u((function () { + f((function () { + } + )) + } + )); + i(i.S + i.F * (c || p), "Reflect", { + construct: function (t, r) { + o(t), + s(r); + var e = arguments.length < 3 ? t : o(arguments[2]); + if (p && !c) + return f(t, r, e); + if (t == e) { + switch (r.length) { + case 0: + return new t; + case 1: + return new t(r[0]); + case 2: + return new t(r[0], r[1]); + case 3: + return new t(r[0], r[1], r[2]); + case 4: + return new t(r[0], r[1], r[2], r[3]) + } + var i = [null]; + return i.push.apply(i, r), + new (a.apply(t, i)) + } + var u = e.prototype + , l = n(h(u) ? u : Object.prototype) + , y = Function.apply.call(t, l, r); + return h(y) ? y : l + } + }) + }, + "2aeb": function (e, t, i) { + var n = i("cb7c") + , o = i("1495") + , r = i("e11e") + , a = i("613b")("IE_PROTO") + , l = function () { + } + , s = "prototype" + , A = function () { + var e, t = i("230e")("iframe"), n = r.length, o = "<", a = ">"; + t.style.display = "none", + i("fab2").appendChild(t), + t.src = "javascript:", + e = t.contentWindow.document, + e.open(), + e.write(o + "script" + a + "document.F=Object" + o + "/script" + a), + e.close(), + A = e.F; + while (n--) + delete A[s][r[n]]; + return A() + }; + e.exports = Object.create || function (e, t) { + var i; + return null !== e ? (l[s] = n(e), + i = new l, + l[s] = null, + i[a] = e) : i = A(), + void 0 === t ? i : o(i, t) + } + }, + 1495: function (e, t, i) { + var n = i("86cc") + , o = i("cb7c") + , r = i("0d58"); + e.exports = i("9e1e") ? Object.defineProperties : function (e, t) { + o(e); + var i, a = r(t), l = a.length, s = 0; + while (l > s) + n.f(e, i = a[s++], t[i]); + return e + } + }, + "0d58": function (e, t, i) { + var n = i("ce10") + , o = i("e11e"); + e.exports = Object.keys || function (e) { + return n(e, o) + } + }, + ce10: function (e, t, i) { + var n = i("69a8") + , o = i("6821") + , r = i("c366")(!1) + , a = i("613b")("IE_PROTO"); + e.exports = function (e, t) { + var i, l = o(e), s = 0, A = []; + for (i in l) + i != a && n(l, i) && A.push(i); + while (t.length > s) + n(l, i = t[s++]) && (~r(A, i) || A.push(i)); + return A + } + }, + "613b": function (e, t, i) { + var n = i("5537")("keys") + , o = i("ca5a"); + e.exports = function (e) { + return n[e] || (n[e] = o(e)) + } + }, + e11e: function (e, t) { + e.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",") + }, + f0c1: function (t, r, e) { + "use strict"; + var i = e("d8e8") + , n = e("d3f4") + , o = e("31f4") + , s = [].slice + , h = {} + , u = function (t, r, e) { + if (!(r in h)) { + for (var i = [], n = 0; n < r; n++) + i[n] = "a[" + n + "]"; + h[r] = Function("F,a", "return new F(" + i.join(",") + ")") + } + return h[r](t, e) + }; + t.exports = Function.bind || function (t) { + var r = i(this) + , e = s.call(arguments, 1) + , h = function () { + var i = e.concat(s.call(arguments)); + return this instanceof h ? u(r, i.length, i) : o(r, i, t) + }; + return n(r.prototype) && (h.prototype = r.prototype), + h + } + }, + "31f4": function (e, t) { + e.exports = function (e, t, i) { + var n = void 0 === i; + switch (t.length) { + case 0: + return n ? e() : e.call(i); + case 1: + return n ? e(t[0]) : e.call(i, t[0]); + case 2: + return n ? e(t[0], t[1]) : e.call(i, t[0], t[1]); + case 3: + return n ? e(t[0], t[1], t[2]) : e.call(i, t[0], t[1], t[2]); + case 4: + return n ? e(t[0], t[1], t[2], t[3]) : e.call(i, t[0], t[1], t[2], t[3]) + } + return e.apply(i, t) + } + }, + "262e": function (t, r, e) { + "use strict"; + + function i(t, r) { + return i = Object.setPrototypeOf || function (t, r) { + return t.__proto__ = r, + t + } + , + i(t, r) + } + + function n(t, r) { + if ("function" !== typeof r && null !== r) + throw new TypeError("Super expression must either be null or a function"); + t.prototype = Object.create(r && r.prototype, { + constructor: { + value: t, + writable: !0, + configurable: !0 + } + }), + r && i(t, r) + } + + e.d(r, "a", (function () { + return n + } + )) + }, + "99de": function (t, r, e) { + "use strict"; + e.d(r, "a", (function () { + return o + } + )); + var i = e("53ca"); + + function n(t) { + if (void 0 === t) + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return t + } + + function o(t, r) { + return !r || "object" !== Object(i["a"])(r) && "function" !== typeof r ? n(t) : r + } + }, + "53ca": function (e, t, i) { + "use strict"; + + function n(e) { + return n = "function" === typeof Symbol && "symbol" === typeof Symbol.iterator ? function (e) { + return typeof e + } + : function (e) { + return e && "function" === typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + , + n(e) + } + + i.d(t, "a", (function () { + return n + } + )) + }, + "7e84": function (t, r, e) { + "use strict"; + + function i(t) { + return i = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { + return t.__proto__ || Object.getPrototypeOf(t) + } + , + i(t) + } + + e.d(r, "a", (function () { + return i + } + )) + }, + d4ec: function (t, r, e) { + "use strict"; + + function i(t, r) { + if (!(t instanceof r)) + throw new TypeError("Cannot call a class as a function") + } + + e.d(r, "a", (function () { + return i + } + )) + }, + bee2: function (t, r, e) { + "use strict"; + + function i(t, r) { + for (var e = 0; e < r.length; e++) { + var i = r[e]; + i.enumerable = i.enumerable || !1, + i.configurable = !0, + "value" in i && (i.writable = !0), + Object.defineProperty(t, i.key, i) + } + } + + function n(t, r, e) { + return r && i(t.prototype, r), + e && i(t, e), + t + } + + e.d(r, "a", (function () { + return n + } + )) + }, + a481: function (e, t, i) { + "use strict"; + var n = i("cb7c") + , o = i("4bf8") + , r = i("9def") + , a = i("4588") + , l = i("0390") + , s = i("5f1b") + , A = Math.max + , c = Math.min + , d = Math.floor + , p = /\$([$&`']|\d\d?|<[^>]*>)/g + , u = /\$([$&`']|\d\d?)/g + , f = function (e) { + return void 0 === e ? e : String(e) + }; + i("214f")("replace", 2, (function (e, t, i, h) { + return [function (n, o) { + var r = e(this) + , a = void 0 == n ? void 0 : n[t]; + return void 0 !== a ? a.call(n, r, o) : i.call(String(r), n, o) + } + , function (e, t) { + var o = h(i, e, this, t); + if (o.done) + return o.value; + var d = n(e) + , p = String(this) + , u = "function" === typeof t; + u || (t = String(t)); + var m = d.global; + if (m) { + var g = d.unicode; + d.lastIndex = 0 + } + var C = []; + while (1) { + var B = s(d, p); + if (null === B) + break; + if (C.push(B), + !m) + break; + var x = String(B[0]); + "" === x && (d.lastIndex = l(p, r(d.lastIndex), g)) + } + for (var v = "", w = 0, k = 0; k < C.length; k++) { + B = C[k]; + for (var _ = String(B[0]), y = A(c(a(B.index), p.length), 0), E = [], D = 1; D < B.length; D++) + E.push(f(B[D])); + var S = B.groups; + if (u) { + var O = [_].concat(E, y, p); + void 0 !== S && O.push(S); + var z = String(t.apply(void 0, O)) + } else + z = b(_, p, y, E, S, t); + y >= w && (v += p.slice(w, y) + z, + w = y + _.length) + } + return v + p.slice(w) + } + ]; + + function b(e, t, n, r, a, l) { + var s = n + e.length + , A = r.length + , c = u; + return void 0 !== a && (a = o(a), + c = p), + i.call(l, c, (function (i, o) { + var l; + switch (o.charAt(0)) { + case "$": + return "$"; + case "&": + return e; + case "`": + return t.slice(0, n); + case "'": + return t.slice(s); + case "<": + l = a[o.slice(1, -1)]; + break; + default: + var c = +o; + if (0 === c) + return i; + if (c > A) { + var p = d(c / 10); + return 0 === p ? i : p <= A ? void 0 === r[p - 1] ? o.charAt(1) : r[p - 1] + o.charAt(1) : i + } + l = r[c - 1] + } + return void 0 === l ? "" : l + } + )) + } + } + )) + }, + "4d2d": function (t, e, n) { + "use strict"; + n.r(e), + n.d(e, "SM3Digest", (function () { + return c + } + )); + n("ac6a"), + n("456d"); + var r = n("d4ec") + , i = n("bee2") + , s = (n("6b54"), + n("c5f6"), + n("f33e")) + , u = s.BigInteger + , a = n("b381") + , o = function (t, e, n, r, i) { + for (var s = 0; s < i; s++) + n[r + s] = t[e + s] + } + , h = { + minValue: -2147483648, + maxValue: 2147483647, + parse: function (t) { + if (t < this.minValue) { + for (var e = Number(-t), n = e.toString(2), r = n.substr(n.length - 31, 31), i = "", s = 0; s < r.length; s++) { + var u = r.substr(s, 1); + i += "0" === u ? "1" : "0" + } + var a = parseInt(i, 2); + return a + 1 + } + if (t > this.maxValue) { + for (var o = Number(t), h = o.toString(2), c = h.substr(h.length - 31, 31), f = "", l = 0; l < c.length; l++) { + var g = c.substr(l, 1); + f += "0" === g ? "1" : "0" + } + var d = parseInt(f, 2); + return -(d + 1) + } + return t + }, + parseByte: function (t) { + if (t < 0) { + for (var e = Number(-t), n = e.toString(2), r = n.substr(n.length - 8, 8), i = "", s = 0; s < r.length; s++) { + var u = r.substr(s, 1); + i += "0" === u ? "1" : "0" + } + var a = parseInt(i, 2); + return (a + 1) % 256 + } + if (t > 255) { + var o = Number(t) + , h = o.toString(2); + return parseInt(h.substr(h.length - 8, 8), 2) + } + return t + } + } + , c = function () { + function t() { + Object(r["a"])(this, t), + this.xBuf = [], + this.xBufOff = 0, + this.byteCount = 0, + this.DIGEST_LENGTH = 32, + this.v0 = [1937774191, 1226093241, 388252375, 3666478592, 2842636476, 372324522, 3817729613, 2969243214], + this.v0 = [1937774191, 1226093241, 388252375, -628488704, -1452330820, 372324522, -477237683, -1325724082], + this.v = new Array(8), + this.v_ = new Array(8), + this.X0 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + this.X = new Array(68), + this.xOff = 0, + this.T_00_15 = 2043430169, + this.T_16_63 = 2055708042, + arguments.length > 0 ? this.initDigest(arguments.length <= 0 ? void 0 : arguments[0]) : this.init() + } + + return Object(i["a"])(t, [{ + key: "init", + value: function () { + this.xBuf = new Array(4), + this.reset() + } + }, { + key: "initDigest", + value: function (t) { + this.xBuf = [].concat(t.xBuf), + this.xBufOff = t.xBufOff, + this.byteCount = t.byteCount, + o(t.X, 0, this.X, 0, t.X.length), + this.xOff = t.xOff, + o(t.v, 0, this.v, 0, t.v.length) + } + }, { + key: "getDigestSize", + value: function () { + return this.DIGEST_LENGTH + } + }, { + key: "reset", + value: function () { + this.byteCount = 0, + this.xBufOff = 0; + for (var t = Object.keys(this.xBuf), e = 0, n = t.length; e < n; e++) + this.xBuf[t[e]] = null; + o(this.v0, 0, this.v, 0, this.v0.length), + this.xOff = 0, + o(this.X0, 0, this.X, 0, this.X0.length) + } + }, { + key: "processBlock", + value: function () { + var t, e = this.X, n = new Array(64); + for (t = 16; t < 68; t++) + e[t] = this.p1(e[t - 16] ^ e[t - 9] ^ this.rotate(e[t - 3], 15)) ^ this.rotate(e[t - 13], 7) ^ e[t - 6]; + for (t = 0; t < 64; t++) + n[t] = e[t] ^ e[t + 4]; + var r, i, s, u, a, c = this.v, f = this.v_; + for (o(c, 0, f, 0, this.v0.length), + t = 0; t < 16; t++) + a = this.rotate(f[0], 12), + r = h.parse(h.parse(a + f[4]) + this.rotate(this.T_00_15, t)), + r = this.rotate(r, 7), + i = r ^ a, + s = h.parse(h.parse(this.ff_00_15(f[0], f[1], f[2]) + f[3]) + i) + n[t], + u = h.parse(h.parse(this.gg_00_15(f[4], f[5], f[6]) + f[7]) + r) + e[t], + f[3] = f[2], + f[2] = this.rotate(f[1], 9), + f[1] = f[0], + f[0] = s, + f[7] = f[6], + f[6] = this.rotate(f[5], 19), + f[5] = f[4], + f[4] = this.p0(u); + for (t = 16; t < 64; t++) + a = this.rotate(f[0], 12), + r = h.parse(h.parse(a + f[4]) + this.rotate(this.T_16_63, t)), + r = this.rotate(r, 7), + i = r ^ a, + s = h.parse(h.parse(this.ff_16_63(f[0], f[1], f[2]) + f[3]) + i) + n[t], + u = h.parse(h.parse(this.gg_16_63(f[4], f[5], f[6]) + f[7]) + r) + e[t], + f[3] = f[2], + f[2] = this.rotate(f[1], 9), + f[1] = f[0], + f[0] = s, + f[7] = f[6], + f[6] = this.rotate(f[5], 19), + f[5] = f[4], + f[4] = this.p0(u); + for (t = 0; t < 8; t++) + c[t] ^= h.parse(f[t]); + this.xOff = 0, + o(this.X0, 0, this.X, 0, this.X0.length) + } + }, { + key: "processWord", + value: function (t, e) { + var n = t[e] << 24; + n |= (255 & t[++e]) << 16, + n |= (255 & t[++e]) << 8, + n |= 255 & t[++e], + this.X[this.xOff] = n, + 16 === ++this.xOff && this.processBlock() + } + }, { + key: "processLength", + value: function (t) { + this.xOff > 14 && this.processBlock(), + this.X[14] = this.urShiftLong(t, 32), + this.X[15] = 4294967295 & t + } + }, { + key: "intToBigEndian", + value: function (t, e, n) { + e[n] = 255 & h.parseByte(this.urShift(t, 24)), + e[++n] = 255 & h.parseByte(this.urShift(t, 16)), + e[++n] = 255 & h.parseByte(this.urShift(t, 8)), + e[++n] = 255 & h.parseByte(t) + } + }, { + key: "doFinal", + value: function (t, e) { + this.finish(); + for (var n = 0; n < 8; n++) + this.intToBigEndian(this.v[n], t, e + 4 * n); + return this.reset(), + this.DIGEST_LENGTH + } + }, { + key: "update", + value: function (t) { + this.xBuf[this.xBufOff++] = t, + this.xBufOff === this.xBuf.length && (this.processWord(this.xBuf, 0), + this.xBufOff = 0), + this.byteCount++ + } + }, { + key: "blockUpdate", + value: function (t, e, n) { + while (0 !== this.xBufOff && n > 0) + this.update(t[e]), + e++, + n--; + while (n > this.xBuf.length) + this.processWord(t, e), + e += this.xBuf.length, + n -= this.xBuf.length, + this.byteCount += this.xBuf.length; + while (n > 0) + this.update(t[e]), + e++, + n-- + } + }, { + key: "finish", + value: function () { + var t = this.byteCount << 3; + this.update(128); + while (0 !== this.xBufOff) + this.update(0); + this.processLength(t), + this.processBlock() + } + }, { + key: "rotate", + value: function (t, e) { + return t << e | this.urShift(t, 32 - e) + } + }, { + key: "p0", + value: function (t) { + return t ^ this.rotate(t, 9) ^ this.rotate(t, 17) + } + }, { + key: "p1", + value: function (t) { + return t ^ this.rotate(t, 15) ^ this.rotate(t, 23) + } + }, { + key: "ff_00_15", + value: function (t, e, n) { + return t ^ e ^ n + } + }, { + key: "ff_16_63", + value: function (t, e, n) { + return t & e | t & n | e & n + } + }, { + key: "gg_00_15", + value: function (t, e, n) { + return t ^ e ^ n + } + }, { + key: "gg_16_63", + value: function (t, e, n) { + return t & e | ~t & n + } + }, { + key: "urShift", + value: function (t, e) { + return (t > h.maxValue || t < h.minValue) && (t = h.parse(t)), + t >>> e + } + }, { + key: "urShiftLong", + value: function (t, e) { + var n, r = new u; + if (r.fromInt(t), + r.signum() >= 0) + n = r.shiftRight(e).intValue(); + else { + var i = new u; + i.fromInt(2); + var s = ~e + , a = ""; + if (s < 0) { + for (var o = 64 + s, h = 0; h < o; h++) + a += "0"; + var c = new u; + c.fromInt(t >> e); + var f = new u("10" + a, 2); + a = f.toRadix(10); + var l = f.add(c); + n = l.toRadix(10) + } else + a = i.shiftLeft(~e).intValue(), + n = (t >> e) + a + } + return n + } + }, { + key: "getZ", + value: function (t, e) { + var n = a.parseUtf8StringToHex("1234567812345678") + , r = 4 * n.length; + this.update(r >> 8 & 255), + this.update(255 & r); + var i = a.hexToArray(n); + this.blockUpdate(i, 0, i.length); + var s = a.hexToArray(t.curve.a.toBigInteger().toRadix(16)) + , u = a.hexToArray(t.curve.b.toBigInteger().toRadix(16)) + , o = a.hexToArray(t.getX().toBigInteger().toRadix(16)) + , h = a.hexToArray(t.getY().toBigInteger().toRadix(16)) + , c = a.hexToArray(e.substr(0, 64)) + , f = a.hexToArray(e.substr(64, 64)); + this.blockUpdate(s, 0, s.length), + this.blockUpdate(u, 0, u.length), + this.blockUpdate(o, 0, o.length), + this.blockUpdate(h, 0, h.length), + this.blockUpdate(c, 0, c.length), + this.blockUpdate(f, 0, f.length); + var l = new Array(this.getDigestSize()); + return this.doFinal(l, 0), + l + } + }]), + t + }() + }, + ac6a: function (e, t, i) { + for (var n = i("cadf"), o = i("0d58"), r = i("2aba"), a = i("7726"), l = i("32e9"), s = i("84f2"), A = i("2b4c"), c = A("iterator"), d = A("toStringTag"), p = s.Array, u = { + CSSRuleList: !0, + CSSStyleDeclaration: !1, + CSSValueList: !1, + ClientRectList: !1, + DOMRectList: !1, + DOMStringList: !1, + DOMTokenList: !0, + DataTransferItemList: !1, + FileList: !1, + HTMLAllCollection: !1, + HTMLCollection: !1, + HTMLFormElement: !1, + HTMLSelectElement: !1, + MediaList: !0, + MimeTypeArray: !1, + NamedNodeMap: !1, + NodeList: !0, + PaintRequestList: !1, + Plugin: !1, + PluginArray: !1, + SVGLengthList: !1, + SVGNumberList: !1, + SVGPathSegList: !1, + SVGPointList: !1, + SVGStringList: !1, + SVGTransformList: !1, + SourceBufferList: !1, + StyleSheetList: !0, + TextTrackCueList: !1, + TextTrackList: !1, + TouchList: !1 + }, f = o(u), h = 0; h < f.length; h++) { + var b, m = f[h], g = u[m], C = a[m], B = C && C.prototype; + if (B && (B[c] || l(B, c, p), + B[d] || l(B, d, m), + s[m] = p, + g)) + for (b in n) + B[b] || r(B, b, n[b], !0) + } + }, + cadf: function (e, t, i) { + "use strict"; + var n = i("9c6c") + , o = i("d53b") + , r = i("84f2") + , a = i("6821"); + e.exports = i("01f9")(Array, "Array", (function (e, t) { + this._t = a(e), + this._i = 0, + this._k = t + } + ), (function () { + var e = this._t + , t = this._k + , i = this._i++; + return !e || i >= e.length ? (this._t = void 0, + o(1)) : o(0, "keys" == t ? i : "values" == t ? e[i] : [i, e[i]]) + } + ), "values"), + r.Arguments = r.Array, + n("keys"), + n("values"), + n("entries") + }, + d53b: function (e, t) { + e.exports = function (e, t) { + return { + value: t, + done: !!e + } + } + }, + "84f2": function (e, t) { + e.exports = {} + }, + "01f9": function (e, t, i) { + "use strict"; + var n = i("2d00") + , o = i("5ca1") + , r = i("2aba") + , a = i("32e9") + , l = i("84f2") + , s = i("41a0") + , A = i("7f20") + , c = i("38fd") + , d = i("2b4c")("iterator") + , p = !([].keys && "next" in [].keys()) + , u = "@@iterator" + , f = "keys" + , h = "values" + , b = function () { + return this + }; + e.exports = function (e, t, i, m, g, C, B) { + s(i, t, m); + var x, v, w, k = function (e) { + if (!p && e in D) + return D[e]; + switch (e) { + case f: + return function () { + return new i(this, e) + } + ; + case h: + return function () { + return new i(this, e) + } + } + return function () { + return new i(this, e) + } + }, _ = t + " Iterator", y = g == h, E = !1, D = e.prototype, S = D[d] || D[u] || g && D[g], O = S || k(g), + z = g ? y ? k("entries") : O : void 0, F = "Array" == t && D.entries || S; + if (F && (w = c(F.call(new e)), + w !== Object.prototype && w.next && (A(w, _, !0), + n || "function" == typeof w[d] || a(w, d, b))), + y && S && S.name !== h && (E = !0, + O = function () { + return S.call(this) + } + ), + n && !B || !p && !E && D[d] || a(D, d, O), + l[t] = O, + l[_] = b, + g) + if (x = { + values: y ? O : k(h), + keys: C ? O : k(f), + entries: z + }, + B) + for (v in x) + v in D || r(D, v, x[v]); + else + o(o.P + o.F * (p || E), t, x); + return x + } + }, + "41a0": function (e, t, i) { + "use strict"; + var n = i("2aeb") + , o = i("4630") + , r = i("7f20") + , a = {}; + i("32e9")(a, i("2b4c")("iterator"), (function () { + return this + } + )), + e.exports = function (e, t, i) { + e.prototype = n(a, { + next: o(1, i) + }), + r(e, t + " Iterator") + } + }, + "7f20": function (e, t, i) { + var n = i("86cc").f + , o = i("69a8") + , r = i("2b4c")("toStringTag"); + e.exports = function (e, t, i) { + e && !o(e = i ? e : e.prototype, r) && n(e, r, { + configurable: !0, + value: t + }) + } + }, + "38fd": function (e, t, i) { + var n = i("69a8") + , o = i("4bf8") + , r = i("613b")("IE_PROTO") + , a = Object.prototype; + e.exports = Object.getPrototypeOf || function (e) { + return e = o(e), + n(e, r) ? e[r] : "function" == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object ? a : null + } + }, + "456d": function (e, t, i) { + var n = i("4bf8") + , o = i("0d58"); + i("5eda")("keys", (function () { + return function (e) { + return o(n(e)) + } + } + )) + }, + "5eda": function (e, t, i) { + var n = i("5ca1") + , o = i("8378") + , r = i("79e5"); + e.exports = function (e, t) { + var i = (o.Object || {})[e] || Object[e] + , a = {}; + a[e] = t(i), + n(n.S + n.F * r((function () { + i(1) + } + )), "Object", a) + } + }, + c5f6: function (e, t, i) { + "use strict"; + var n = i("7726") + , o = i("69a8") + , r = i("2d95") + , a = i("5dbc") + , l = i("6a99") + , s = i("79e5") + , A = i("9093").f + , c = i("11e9").f + , d = i("86cc").f + , p = i("aa77").trim + , u = "Number" + , f = n[u] + , h = f + , b = f.prototype + , m = r(i("2aeb")(b)) == u + , g = "trim" in String.prototype + , C = function (e) { + var t = l(e, !1); + if ("string" == typeof t && t.length > 2) { + t = g ? t.trim() : p(t, 3); + var i, n, o, r = t.charCodeAt(0); + if (43 === r || 45 === r) { + if (i = t.charCodeAt(2), + 88 === i || 120 === i) + return NaN + } else if (48 === r) { + switch (t.charCodeAt(1)) { + case 66: + case 98: + n = 2, + o = 49; + break; + case 79: + case 111: + n = 8, + o = 55; + break; + default: + return +t + } + for (var a, s = t.slice(2), A = 0, c = s.length; A < c; A++) + if (a = s.charCodeAt(A), + a < 48 || a > o) + return NaN; + return parseInt(s, n) + } + } + return +t + }; + if (!f(" 0o1") || !f("0b1") || f("+0x1")) { + f = function (e) { + var t = arguments.length < 1 ? 0 : e + , i = this; + return i instanceof f && (m ? s((function () { + b.valueOf.call(i) + } + )) : r(i) != u) ? a(new h(C(t)), i, f) : C(t) + } + ; + for (var B, x = i("9e1e") ? A(h) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","), v = 0; x.length > v; v++) + o(h, B = x[v]) && !o(f, B) && d(f, B, c(h, B)); + f.prototype = b, + b.constructor = f, + i("2aba")(n, u, f) + } + }, + "5dbc": function (e, t, i) { + var n = i("d3f4") + , o = i("8b97").set; + e.exports = function (e, t, i) { + var r, a = t.constructor; + return a !== i && "function" == typeof a && (r = a.prototype) !== i.prototype && n(r) && o && o(e, r), + e + } + }, + "8b97": function (e, t, i) { + var n = i("d3f4") + , o = i("cb7c") + , r = function (e, t) { + if (o(e), + !n(t) && null !== t) + throw TypeError(t + ": can't set as prototype!") + }; + e.exports = { + set: Object.setPrototypeOf || ("__proto__" in {} ? function (e, t, n) { + try { + n = i("9b43")(Function.call, i("11e9").f(Object.prototype, "__proto__").set, 2), + n(e, []), + t = !(e instanceof Array) + } catch (o) { + t = !0 + } + return function (e, i) { + return r(e, i), + t ? e.__proto__ = i : n(e, i), + e + } + }({}, !1) : void 0), + check: r + } + }, + 9093: function (e, t, i) { + var n = i("ce10") + , o = i("e11e").concat("length", "prototype"); + t.f = Object.getOwnPropertyNames || function (e) { + return n(e, o) + } + }, + "11e9": function (e, t, i) { + var n = i("52a7") + , o = i("4630") + , r = i("6821") + , a = i("6a99") + , l = i("69a8") + , s = i("c69a") + , A = Object.getOwnPropertyDescriptor; + t.f = i("9e1e") ? A : function (e, t) { + if (e = r(e), + t = a(t, !0), + s) + try { + return A(e, t) + } catch (i) { + } + if (l(e, t)) + return o(!n.f.call(e, t), e[t]) + } + }, + "52a7": function (e, t) { + t.f = {}.propertyIsEnumerable + }, + aa77: function (e, t, i) { + var n = i("5ca1") + , o = i("be13") + , r = i("79e5") + , a = i("fdef") + , l = "[" + a + "]" + , s = "​…" + , A = RegExp("^" + l + l + "*") + , c = RegExp(l + l + "*$") + , d = function (e, t, i) { + var o = {} + , l = r((function () { + return !!a[e]() || s[e]() != s + } + )) + , A = o[e] = l ? t(p) : a[e]; + i && (o[i] = A), + n(n.P + n.F * l, "String", o) + } + , p = d.trim = function (e, t) { + return e = String(o(e)), + 1 & t && (e = e.replace(A, "")), + 2 & t && (e = e.replace(c, "")), + e + } + ; + e.exports = d + }, + fdef: function (e, t) { + e.exports = "\t\n\v\f\r   ᠎              \u2028\u2029\ufeff" + }, + b381: function (t, e, n) { + "use strict"; + n.r(e), + n.d(e, "getGlobalCurve", (function () { + return b + } + )), + n.d(e, "generateEcparam", (function () { + return F + } + )), + n.d(e, "generateKeyPairHex", (function () { + return x + } + )), + n.d(e, "parseUtf8StringToHex", (function () { + return B + } + )), + n.d(e, "parseArrayBufferToHex", (function () { + return k + } + )), + n.d(e, "leftPad", (function () { + return w + } + )), + n.d(e, "arrayToHex", (function () { + return I + } + )), + n.d(e, "arrayToUtf8", (function () { + return S + } + )), + n.d(e, "hexToArray", (function () { + return A + } + )); + n("34ef"), + n("6b54"); + var r = n("d4ec") + , i = n("bee2") + , s = n("f33e") + , u = s.BigInteger + , a = new u("3") + , o = function () { + function t(e, n) { + Object(r["a"])(this, t), + this.x = n, + this.q = e + } + + return Object(i["a"])(t, [{ + key: "equals", + value: function (t) { + return t === this || this.q.equals(t.q) && this.x.equals(t.x) + } + }, { + key: "toBigInteger", + value: function () { + return this.x + } + }, { + key: "negate", + value: function () { + return new t(this.q, this.x.negate().mod(this.q)) + } + }, { + key: "add", + value: function (e) { + return new t(this.q, this.x.add(e.toBigInteger()).mod(this.q)) + } + }, { + key: "subtract", + value: function (e) { + return new t(this.q, this.x.subtract(e.toBigInteger()).mod(this.q)) + } + }, { + key: "multiply", + value: function (e) { + return new t(this.q, this.x.multiply(e.toBigInteger()).mod(this.q)) + } + }, { + key: "divide", + value: function (e) { + return new t(this.q, this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q)) + } + }, { + key: "square", + value: function () { + return new t(this.q, this.x.square().mod(this.q)) + } + }]), + t + }() + , h = function () { + function t(e, n, i, s) { + Object(r["a"])(this, t), + this.curve = e, + this.x = n, + this.y = i, + this.z = null == s ? u.ONE : s, + this.zinv = null + } + + return Object(i["a"])(t, [{ + key: "getX", + value: function () { + return null === this.zinv && (this.zinv = this.z.modInverse(this.curve.q)), + this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q)) + } + }, { + key: "getY", + value: function () { + return null === this.zinv && (this.zinv = this.z.modInverse(this.curve.q)), + this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q)) + } + }, { + key: "equals", + value: function (t) { + if (t === this) + return !0; + if (this.isInfinity()) + return t.isInfinity(); + if (t.isInfinity()) + return this.isInfinity(); + var e = t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q); + if (!e.equals(u.ZERO)) + return !1; + var n = t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q); + return n.equals(u.ZERO) + } + }, { + key: "isInfinity", + value: function () { + return null === this.x && null === this.y || this.z.equals(u.ZERO) && !this.y.toBigInteger().equals(u.ZERO) + } + }, { + key: "negate", + value: function () { + return new t(this.curve, this.x, this.y.negate(), this.z) + } + }, { + key: "add", + value: function (e) { + if (this.isInfinity()) + return e; + if (e.isInfinity()) + return this; + var n = this.x.toBigInteger() + , r = this.y.toBigInteger() + , i = this.z + , s = e.x.toBigInteger() + , a = e.y.toBigInteger() + , o = e.z + , h = this.curve.q + , c = n.multiply(o).mod(h) + , f = s.multiply(i).mod(h) + , l = c.subtract(f) + , g = r.multiply(o).mod(h) + , d = a.multiply(i).mod(h) + , v = g.subtract(d); + if (u.ZERO.equals(l)) + return u.ZERO.equals(v) ? this.twice() : this.curve.infinity; + var p = c.add(f) + , y = i.multiply(o).mod(h) + , m = l.square().mod(h) + , b = l.multiply(m).mod(h) + , F = y.multiply(v.square()).subtract(p.multiply(m)).mod(h) + , x = l.multiply(F).mod(h) + , B = v.multiply(m.multiply(c).subtract(F)).subtract(g.multiply(b)).mod(h) + , k = b.multiply(y).mod(h); + return new t(this.curve, this.curve.fromBigInteger(x), this.curve.fromBigInteger(B), k) + } + }, { + key: "twice", + value: function () { + if (this.isInfinity()) + return this; + if (!this.y.toBigInteger().signum()) + return this.curve.infinity; + var e = this.x.toBigInteger() + , n = this.y.toBigInteger() + , r = this.z + , i = this.curve.q + , s = this.curve.a.toBigInteger() + , u = e.square().multiply(a).add(s.multiply(r.square())).mod(i) + , o = n.shiftLeft(1).multiply(r).mod(i) + , h = n.square().mod(i) + , c = h.multiply(e).multiply(r).mod(i) + , f = o.square().mod(i) + , l = u.square().subtract(c.shiftLeft(3)).mod(i) + , g = o.multiply(l).mod(i) + , d = u.multiply(c.shiftLeft(2).subtract(l)).subtract(f.shiftLeft(1).multiply(h)).mod(i) + , v = o.multiply(f).mod(i); + return new t(this.curve, this.curve.fromBigInteger(g), this.curve.fromBigInteger(d), v) + } + }, { + key: "multiply", + value: function (t) { + if (this.isInfinity()) + return this; + if (!t.signum()) + return this.curve.infinity; + for (var e = t.multiply(a), n = this.negate(), r = this, i = e.bitLength() - 2; i > 0; i--) { + r = r.twice(); + var s = e.testBit(i) + , u = t.testBit(i); + s !== u && (r = r.add(s ? this : n)) + } + return r + } + }]), + t + }() + , c = function () { + function t(e, n, i) { + Object(r["a"])(this, t), + this.q = e, + this.a = this.fromBigInteger(n), + this.b = this.fromBigInteger(i), + this.infinity = new h(this, null, null) + } + + return Object(i["a"])(t, [{ + key: "equals", + value: function (t) { + return t === this || this.q.equals(t.q) && this.a.equals(t.a) && this.b.equals(t.b) + } + }, { + key: "fromBigInteger", + value: function (t) { + return new o(this.q, t) + } + }, { + key: "decodePointHex", + value: function (t) { + switch (parseInt(t.substr(0, 2), 16)) { + case 0: + return this.infinity; + case 2: + case 3: + return null; + case 4: + case 6: + case 7: + var e = (t.length - 2) / 2 + , n = t.substr(2, e) + , r = t.substr(e + 2, e); + return new h(this, this.fromBigInteger(new u(n, 16)), this.fromBigInteger(new u(r, 16))); + default: + return null + } + } + }]), + t + }() + , f = n("f33e") + , l = f.BigInteger + , g = f.SecureRandom + , d = new g + , v = F() + , p = v.curve + , y = v.G + , m = v.n; + + function b() { + return p + } + + function F() { + var t = new l("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF", 16) + , e = new l("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC", 16) + , n = new l("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93", 16) + , r = new c(t, e, n) + , i = "32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7" + , s = "BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0" + , u = r.decodePointHex("04" + i + s) + , a = new l("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123", 16); + return { + curve: r, + G: u, + n: a + } + } + + function x() { + var t = new l(m.bitLength(), d).mod(m.subtract(l.ONE)).add(l.ONE) + , e = w(t.toString(16), 64) + , n = y.multiply(t) + , r = w(n.getX().toBigInteger().toString(16), 64) + , i = w(n.getY().toBigInteger().toString(16), 64) + , s = "04" + r + i; + return { + privateKey: e, + publicKey: s + } + } + + function B(t) { + t = unescape(encodeURIComponent(t)); + for (var e = t.length, n = [], r = 0; r < e; r++) + n[r >>> 2] |= (255 & t.charCodeAt(r)) << 24 - r % 4 * 8; + for (var i = [], s = 0; s < e; s++) { + var u = n[s >>> 2] >>> 24 - s % 4 * 8 & 255; + i.push((u >>> 4).toString(16)), + i.push((15 & u).toString(16)) + } + return i.join("") + } + + function k(t) { + return Array.prototype.map.call(new Uint8Array(t), (function (t) { + return ("00" + t.toString(16)).slice(-2) + } + )).join("") + } + + function w(t, e) { + return t.length >= e ? t : new Array(e - t.length + 1).join("0") + t + } + + function I(t) { + for (var e = [], n = 0, r = 0; r < 2 * t.length; r += 2) + e[r >>> 3] |= parseInt(t[n], 10) << 24 - r % 8 * 4, + n++; + for (var i = [], s = 0; s < t.length; s++) { + var u = e[s >>> 2] >>> 24 - s % 4 * 8 & 255; + i.push((u >>> 4).toString(16)), + i.push((15 & u).toString(16)) + } + return i.join("") + } + + function S(t) { + for (var e = [], n = 0, r = 0; r < 2 * t.length; r += 2) + e[r >>> 3] |= parseInt(t[n], 10) << 24 - r % 8 * 4, + n++; + try { + for (var i = [], s = 0; s < t.length; s++) { + var u = e[s >>> 2] >>> 24 - s % 4 * 8 & 255; + i.push(String.fromCharCode(u)) + } + return decodeURIComponent(escape(i.join(""))) + } catch (a) { + throw new Error("Malformed UTF-8 data") + } + } + + function A(t) { + var e = [] + , n = t.length; + n % 2 !== 0 && (t = w(t, n + 1)), + n = t.length; + for (var r = 0; r < n; r += 2) + e.push(parseInt(t.substr(r, 2), 16)); + return e + } + + e["default"] = { + getGlobalCurve: b, + generateEcparam: F, + generateKeyPairHex: x, + parseUtf8StringToHex: B, + parseArrayBufferToHex: k, + leftPad: w, + arrayToHex: I, + arrayToUtf8: S, + hexToArray: A + } + }, + "34ef": function (e, t, i) { + i("ec30")("Uint8", 1, (function (e) { + return function (t, i, n) { + return e(this, t, i, n) + } + } + )) + }, + ec30: function (e, t, i) { + "use strict"; + if (i("9e1e")) { + var n = i("2d00") + , o = i("7726") + , r = i("79e5") + , a = i("5ca1") + , l = i("0f88") + , s = i("ed0b") + , A = i("9b43") + , c = i("f605") + , d = i("4630") + , p = i("32e9") + , u = i("dcbc") + , f = i("4588") + , h = i("9def") + , b = i("09fa") + , m = i("77f1") + , g = i("6a99") + , C = i("69a8") + , B = i("23c6") + , x = i("d3f4") + , v = i("4bf8") + , w = i("33a4") + , k = i("2aeb") + , _ = i("38fd") + , y = i("9093").f + , E = i("27ee") + , D = i("ca5a") + , S = i("2b4c") + , O = i("0a49") + , z = i("c366") + , F = i("ebd6") + , I = i("cadf") + , T = i("84f2") + , q = i("5cc5") + , P = i("7a56") + , W = i("36bd") + , M = i("ba92") + , U = i("86cc") + , N = i("11e9") + , j = U.f + , Y = N.f + , L = o.RangeError + , G = o.TypeError + , R = o.Uint8Array + , Q = "ArrayBuffer" + , H = "Shared" + Q + , V = "BYTES_PER_ELEMENT" + , X = "prototype" + , J = Array[X] + , $ = s.ArrayBuffer + , K = s.DataView + , Z = O(0) + , ee = O(2) + , te = O(3) + , ie = O(4) + , ne = O(5) + , oe = O(6) + , re = z(!0) + , ae = z(!1) + , le = I.values + , se = I.keys + , Ae = I.entries + , ce = J.lastIndexOf + , de = J.reduce + , pe = J.reduceRight + , ue = J.join + , fe = J.sort + , he = J.slice + , be = J.toString + , me = J.toLocaleString + , ge = S("iterator") + , Ce = S("toStringTag") + , Be = D("typed_constructor") + , xe = D("def_constructor") + , ve = l.CONSTR + , we = l.TYPED + , ke = l.VIEW + , _e = "Wrong length!" + , ye = O(1, (function (e, t) { + return ze(F(e, e[xe]), t) + } + )) + , Ee = r((function () { + return 1 === new R(new Uint16Array([1]).buffer)[0] + } + )) + , De = !!R && !!R[X].set && r((function () { + new R(1).set({}) + } + )) + , Se = function (e, t) { + var i = f(e); + if (i < 0 || i % t) + throw L("Wrong offset!"); + return i + } + , Oe = function (e) { + if (x(e) && we in e) + return e; + throw G(e + " is not a typed array!") + } + , ze = function (e, t) { + if (!x(e) || !(Be in e)) + throw G("It is not a typed array constructor!"); + return new e(t) + } + , Fe = function (e, t) { + return Ie(F(e, e[xe]), t) + } + , Ie = function (e, t) { + var i = 0 + , n = t.length + , o = ze(e, n); + while (n > i) + o[i] = t[i++]; + return o + } + , Te = function (e, t, i) { + j(e, t, { + get: function () { + return this._d[i] + } + }) + } + , qe = function (e) { + var t, i, n, o, r, a, l = v(e), s = arguments.length, c = s > 1 ? arguments[1] : void 0, + d = void 0 !== c, p = E(l); + if (void 0 != p && !w(p)) { + for (a = p.call(l), + n = [], + t = 0; !(r = a.next()).done; t++) + n.push(r.value); + l = n + } + for (d && s > 2 && (c = A(c, arguments[2], 2)), + t = 0, + i = h(l.length), + o = ze(this, i); i > t; t++) + o[t] = d ? c(l[t], t) : l[t]; + return o + } + , Pe = function () { + var e = 0 + , t = arguments.length + , i = ze(this, t); + while (t > e) + i[e] = arguments[e++]; + return i + } + , We = !!R && r((function () { + me.call(new R(1)) + } + )) + , Me = function () { + return me.apply(We ? he.call(Oe(this)) : Oe(this), arguments) + } + , Ue = { + copyWithin: function (e, t) { + return M.call(Oe(this), e, t, arguments.length > 2 ? arguments[2] : void 0) + }, + every: function (e) { + return ie(Oe(this), e, arguments.length > 1 ? arguments[1] : void 0) + }, + fill: function (e) { + return W.apply(Oe(this), arguments) + }, + filter: function (e) { + return Fe(this, ee(Oe(this), e, arguments.length > 1 ? arguments[1] : void 0)) + }, + find: function (e) { + return ne(Oe(this), e, arguments.length > 1 ? arguments[1] : void 0) + }, + findIndex: function (e) { + return oe(Oe(this), e, arguments.length > 1 ? arguments[1] : void 0) + }, + forEach: function (e) { + Z(Oe(this), e, arguments.length > 1 ? arguments[1] : void 0) + }, + indexOf: function (e) { + return ae(Oe(this), e, arguments.length > 1 ? arguments[1] : void 0) + }, + includes: function (e) { + return re(Oe(this), e, arguments.length > 1 ? arguments[1] : void 0) + }, + join: function (e) { + return ue.apply(Oe(this), arguments) + }, + lastIndexOf: function (e) { + return ce.apply(Oe(this), arguments) + }, + map: function (e) { + return ye(Oe(this), e, arguments.length > 1 ? arguments[1] : void 0) + }, + reduce: function (e) { + return de.apply(Oe(this), arguments) + }, + reduceRight: function (e) { + return pe.apply(Oe(this), arguments) + }, + reverse: function () { + var e, t = this, i = Oe(t).length, n = Math.floor(i / 2), o = 0; + while (o < n) + e = t[o], + t[o++] = t[--i], + t[i] = e; + return t + }, + some: function (e) { + return te(Oe(this), e, arguments.length > 1 ? arguments[1] : void 0) + }, + sort: function (e) { + return fe.call(Oe(this), e) + }, + subarray: function (e, t) { + var i = Oe(this) + , n = i.length + , o = m(e, n); + return new (F(i, i[xe]))(i.buffer, i.byteOffset + o * i.BYTES_PER_ELEMENT, h((void 0 === t ? n : m(t, n)) - o)) + } + } + , Ne = function (e, t) { + return Fe(this, he.call(Oe(this), e, t)) + } + , je = function (e) { + Oe(this); + var t = Se(arguments[1], 1) + , i = this.length + , n = v(e) + , o = h(n.length) + , r = 0; + if (o + t > i) + throw L(_e); + while (r < o) + this[t + r] = n[r++] + } + , Ye = { + entries: function () { + return Ae.call(Oe(this)) + }, + keys: function () { + return se.call(Oe(this)) + }, + values: function () { + return le.call(Oe(this)) + } + } + , Le = function (e, t) { + return x(e) && e[we] && "symbol" != typeof t && t in e && String(+t) == String(t) + } + , Ge = function (e, t) { + return Le(e, t = g(t, !0)) ? d(2, e[t]) : Y(e, t) + } + , Re = function (e, t, i) { + return !(Le(e, t = g(t, !0)) && x(i) && C(i, "value")) || C(i, "get") || C(i, "set") || i.configurable || C(i, "writable") && !i.writable || C(i, "enumerable") && !i.enumerable ? j(e, t, i) : (e[t] = i.value, + e) + }; + ve || (N.f = Ge, + U.f = Re), + a(a.S + a.F * !ve, "Object", { + getOwnPropertyDescriptor: Ge, + defineProperty: Re + }), + r((function () { + be.call({}) + } + )) && (be = me = function () { + return ue.call(this) + } + ); + var Qe = u({}, Ue); + u(Qe, Ye), + p(Qe, ge, Ye.values), + u(Qe, { + slice: Ne, + set: je, + constructor: function () { + }, + toString: be, + toLocaleString: Me + }), + Te(Qe, "buffer", "b"), + Te(Qe, "byteOffset", "o"), + Te(Qe, "byteLength", "l"), + Te(Qe, "length", "e"), + j(Qe, Ce, { + get: function () { + return this[we] + } + }), + e.exports = function (e, t, i, s) { + s = !!s; + var A = e + (s ? "Clamped" : "") + "Array" + , d = "get" + e + , u = "set" + e + , f = o[A] + , m = f || {} + , g = f && _(f) + , C = !f || !l.ABV + , v = {} + , w = f && f[X] + , E = function (e, i) { + var n = e._d; + return n.v[d](i * t + n.o, Ee) + } + , D = function (e, i, n) { + var o = e._d; + s && (n = (n = Math.round(n)) < 0 ? 0 : n > 255 ? 255 : 255 & n), + o.v[u](i * t + o.o, n, Ee) + } + , S = function (e, t) { + j(e, t, { + get: function () { + return E(this, t) + }, + set: function (e) { + return D(this, t, e) + }, + enumerable: !0 + }) + }; + C ? (f = i((function (e, i, n, o) { + c(e, f, A, "_d"); + var r, a, l, s, d = 0, u = 0; + if (x(i)) { + if (!(i instanceof $ || (s = B(i)) == Q || s == H)) + return we in i ? Ie(f, i) : qe.call(f, i); + r = i, + u = Se(n, t); + var m = i.byteLength; + if (void 0 === o) { + if (m % t) + throw L(_e); + if (a = m - u, + a < 0) + throw L(_e) + } else if (a = h(o) * t, + a + u > m) + throw L(_e); + l = a / t + } else + l = b(i), + a = l * t, + r = new $(a); + p(e, "_d", { + b: r, + o: u, + l: a, + e: l, + v: new K(r) + }); + while (d < l) + S(e, d++) + } + )), + w = f[X] = k(Qe), + p(w, "constructor", f)) : r((function () { + f(1) + } + )) && r((function () { + new f(-1) + } + )) && q((function (e) { + new f, + new f(null), + new f(1.5), + new f(e) + } + ), !0) || (f = i((function (e, i, n, o) { + var r; + return c(e, f, A), + x(i) ? i instanceof $ || (r = B(i)) == Q || r == H ? void 0 !== o ? new m(i, Se(n, t), o) : void 0 !== n ? new m(i, Se(n, t)) : new m(i) : we in i ? Ie(f, i) : qe.call(f, i) : new m(b(i)) + } + )), + Z(g !== Function.prototype ? y(m).concat(y(g)) : y(m), (function (e) { + e in f || p(f, e, m[e]) + } + )), + f[X] = w, + n || (w.constructor = f)); + var O = w[ge] + , z = !!O && ("values" == O.name || void 0 == O.name) + , F = Ye.values; + p(f, Be, !0), + p(w, we, A), + p(w, ke, !0), + p(w, xe, f), + (s ? new f(1)[Ce] == A : Ce in w) || j(w, Ce, { + get: function () { + return A + } + }), + v[A] = f, + a(a.G + a.W + a.F * (f != m), v), + a(a.S, A, { + BYTES_PER_ELEMENT: t + }), + a(a.S + a.F * r((function () { + m.of.call(f, 1) + } + )), A, { + from: qe, + of: Pe + }), + V in w || p(w, V, t), + a(a.P, A, Ue), + P(A), + a(a.P + a.F * De, A, { + set: je + }), + a(a.P + a.F * !z, A, Ye), + n || w.toString == be || (w.toString = be), + a(a.P + a.F * r((function () { + new f(1).slice() + } + )), A, { + slice: Ne + }), + a(a.P + a.F * (r((function () { + return [1, 2].toLocaleString() != new f([1, 2]).toLocaleString() + } + )) || !r((function () { + w.toLocaleString.call([1, 2]) + } + ))), A, { + toLocaleString: Me + }), + T[A] = z ? O : F, + n || z || p(w, ge, F) + } + } else + e.exports = function () { + } + }, + "0f88": function (e, t, i) { + var n, o = i("7726"), r = i("32e9"), a = i("ca5a"), l = a("typed_array"), s = a("view"), + A = !(!o.ArrayBuffer || !o.DataView), c = A, d = 0, p = 9, + u = "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(","); + while (d < p) + (n = o[u[d++]]) ? (r(n.prototype, l, !0), + r(n.prototype, s, !0)) : c = !1; + e.exports = { + ABV: A, + CONSTR: c, + TYPED: l, + VIEW: s + } + }, + ed0b: function (e, t, i) { + "use strict"; + var n = i("7726") + , o = i("9e1e") + , r = i("2d00") + , a = i("0f88") + , l = i("32e9") + , s = i("dcbc") + , A = i("79e5") + , c = i("f605") + , d = i("4588") + , p = i("9def") + , u = i("09fa") + , f = i("9093").f + , h = i("86cc").f + , b = i("36bd") + , m = i("7f20") + , g = "ArrayBuffer" + , C = "DataView" + , B = "prototype" + , x = "Wrong length!" + , v = "Wrong index!" + , w = n[g] + , k = n[C] + , _ = n.Math + , y = n.RangeError + , E = n.Infinity + , D = w + , S = _.abs + , O = _.pow + , z = _.floor + , F = _.log + , I = _.LN2 + , T = "buffer" + , q = "byteLength" + , P = "byteOffset" + , W = o ? "_b" : T + , M = o ? "_l" : q + , U = o ? "_o" : P; + + function N(e, t, i) { + var n, o, r, a = new Array(i), l = 8 * i - t - 1, s = (1 << l) - 1, A = s >> 1, + c = 23 === t ? O(2, -24) - O(2, -77) : 0, d = 0, p = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0; + for (e = S(e), + e != e || e === E ? (o = e != e ? 1 : 0, + n = s) : (n = z(F(e) / I), + e * (r = O(2, -n)) < 1 && (n--, + r *= 2), + e += n + A >= 1 ? c / r : c * O(2, 1 - A), + e * r >= 2 && (n++, + r /= 2), + n + A >= s ? (o = 0, + n = s) : n + A >= 1 ? (o = (e * r - 1) * O(2, t), + n += A) : (o = e * O(2, A - 1) * O(2, t), + n = 0)); t >= 8; a[d++] = 255 & o, + o /= 256, + t -= 8) + ; + for (n = n << t | o, + l += t; l > 0; a[d++] = 255 & n, + n /= 256, + l -= 8) + ; + return a[--d] |= 128 * p, + a + } + + function j(e, t, i) { + var n, o = 8 * i - t - 1, r = (1 << o) - 1, a = r >> 1, l = o - 7, s = i - 1, A = e[s--], c = 127 & A; + for (A >>= 7; l > 0; c = 256 * c + e[s], + s--, + l -= 8) + ; + for (n = c & (1 << -l) - 1, + c >>= -l, + l += t; l > 0; n = 256 * n + e[s], + s--, + l -= 8) + ; + if (0 === c) + c = 1 - a; + else { + if (c === r) + return n ? NaN : A ? -E : E; + n += O(2, t), + c -= a + } + return (A ? -1 : 1) * n * O(2, c - t) + } + + function Y(e) { + return e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0] + } + + function L(e) { + return [255 & e] + } + + function G(e) { + return [255 & e, e >> 8 & 255] + } + + function R(e) { + return [255 & e, e >> 8 & 255, e >> 16 & 255, e >> 24 & 255] + } + + function Q(e) { + return N(e, 52, 8) + } + + function H(e) { + return N(e, 23, 4) + } + + function V(e, t, i) { + h(e[B], t, { + get: function () { + return this[i] + } + }) + } + + function X(e, t, i, n) { + var o = +i + , r = u(o); + if (r + t > e[M]) + throw y(v); + var a = e[W]._b + , l = r + e[U] + , s = a.slice(l, l + t); + return n ? s : s.reverse() + } + + function J(e, t, i, n, o, r) { + var a = +i + , l = u(a); + if (l + t > e[M]) + throw y(v); + for (var s = e[W]._b, A = l + e[U], c = n(+o), d = 0; d < t; d++) + s[A + d] = c[r ? d : t - d - 1] + } + + if (a.ABV) { + if (!A((function () { + w(1) + } + )) || !A((function () { + new w(-1) + } + )) || A((function () { + return new w, + new w(1.5), + new w(NaN), + w.name != g + } + ))) { + w = function (e) { + return c(this, w), + new D(u(e)) + } + ; + for (var $, K = w[B] = D[B], Z = f(D), ee = 0; Z.length > ee;) + ($ = Z[ee++]) in w || l(w, $, D[$]); + r || (K.constructor = w) + } + var te = new k(new w(2)) + , ie = k[B].setInt8; + te.setInt8(0, 2147483648), + te.setInt8(1, 2147483649), + !te.getInt8(0) && te.getInt8(1) || s(k[B], { + setInt8: function (e, t) { + ie.call(this, e, t << 24 >> 24) + }, + setUint8: function (e, t) { + ie.call(this, e, t << 24 >> 24) + } + }, !0) + } else + w = function (e) { + c(this, w, g); + var t = u(e); + this._b = b.call(new Array(t), 0), + this[M] = t + } + , + k = function (e, t, i) { + c(this, k, C), + c(e, w, C); + var n = e[M] + , o = d(t); + if (o < 0 || o > n) + throw y("Wrong offset!"); + if (i = void 0 === i ? n - o : p(i), + o + i > n) + throw y(x); + this[W] = e, + this[U] = o, + this[M] = i + } + , + o && (V(w, q, "_l"), + V(k, T, "_b"), + V(k, q, "_l"), + V(k, P, "_o")), + s(k[B], { + getInt8: function (e) { + return X(this, 1, e)[0] << 24 >> 24 + }, + getUint8: function (e) { + return X(this, 1, e)[0] + }, + getInt16: function (e) { + var t = X(this, 2, e, arguments[1]); + return (t[1] << 8 | t[0]) << 16 >> 16 + }, + getUint16: function (e) { + var t = X(this, 2, e, arguments[1]); + return t[1] << 8 | t[0] + }, + getInt32: function (e) { + return Y(X(this, 4, e, arguments[1])) + }, + getUint32: function (e) { + return Y(X(this, 4, e, arguments[1])) >>> 0 + }, + getFloat32: function (e) { + return j(X(this, 4, e, arguments[1]), 23, 4) + }, + getFloat64: function (e) { + return j(X(this, 8, e, arguments[1]), 52, 8) + }, + setInt8: function (e, t) { + J(this, 1, e, L, t) + }, + setUint8: function (e, t) { + J(this, 1, e, L, t) + }, + setInt16: function (e, t) { + J(this, 2, e, G, t, arguments[2]) + }, + setUint16: function (e, t) { + J(this, 2, e, G, t, arguments[2]) + }, + setInt32: function (e, t) { + J(this, 4, e, R, t, arguments[2]) + }, + setUint32: function (e, t) { + J(this, 4, e, R, t, arguments[2]) + }, + setFloat32: function (e, t) { + J(this, 4, e, H, t, arguments[2]) + }, + setFloat64: function (e, t) { + J(this, 8, e, Q, t, arguments[2]) + } + }); + m(w, g), + m(k, C), + l(k[B], a.VIEW, !0), + t[g] = w, + t[C] = k + }, + dcbc: function (e, t, i) { + var n = i("2aba"); + e.exports = function (e, t, i) { + for (var o in t) + n(e, o, t[o], i); + return e + } + }, + f605: function (e, t) { + e.exports = function (e, t, i, n) { + if (!(e instanceof t) || void 0 !== n && n in e) + throw TypeError(i + ": incorrect invocation!"); + return e + } + }, + "09fa": function (e, t, i) { + var n = i("4588") + , o = i("9def"); + e.exports = function (e) { + if (void 0 === e) + return 0; + var t = n(e) + , i = o(t); + if (t !== i) + throw RangeError("Wrong length!"); + return i + } + }, + "33a4": function (e, t, i) { + var n = i("84f2") + , o = i("2b4c")("iterator") + , r = Array.prototype; + e.exports = function (e) { + return void 0 !== e && (n.Array === e || r[o] === e) + } + }, + "27ee": function (e, t, i) { + var n = i("23c6") + , o = i("2b4c")("iterator") + , r = i("84f2"); + e.exports = i("8378").getIteratorMethod = function (e) { + if (void 0 != e) + return e[o] || e["@@iterator"] || r[n(e)] + } + }, + "0a49": function (e, t, i) { + var n = i("9b43") + , o = i("626a") + , r = i("4bf8") + , a = i("9def") + , l = i("cd1c"); + e.exports = function (e, t) { + var i = 1 == e + , s = 2 == e + , A = 3 == e + , c = 4 == e + , d = 6 == e + , p = 5 == e || d + , u = t || l; + return function (t, l, f) { + for (var h, b, m = r(t), g = o(m), C = n(l, f, 3), B = a(g.length), x = 0, v = i ? u(t, B) : s ? u(t, 0) : void 0; B > x; x++) + if ((p || x in g) && (h = g[x], + b = C(h, x, m), + e)) + if (i) + v[x] = b; + else if (b) + switch (e) { + case 3: + return !0; + case 5: + return h; + case 6: + return x; + case 2: + v.push(h) + } + else if (c) + return !1; + return d ? -1 : A || c ? c : v + } + } + }, + cd1c: function (e, t, i) { + var n = i("e853"); + e.exports = function (e, t) { + return new (n(e))(t) + } + }, + e853: function (e, t, i) { + var n = i("d3f4") + , o = i("1169") + , r = i("2b4c")("species"); + e.exports = function (e) { + var t; + return o(e) && (t = e.constructor, + "function" != typeof t || t !== Array && !o(t.prototype) || (t = void 0), + n(t) && (t = t[r], + null === t && (t = void 0))), + void 0 === t ? Array : t + } + }, + 1169: function (e, t, i) { + var n = i("2d95"); + e.exports = Array.isArray || function (e) { + return "Array" == n(e) + } + }, + ebd6: function (e, t, i) { + var n = i("cb7c") + , o = i("d8e8") + , r = i("2b4c")("species"); + e.exports = function (e, t) { + var i, a = n(e).constructor; + return void 0 === a || void 0 == (i = n(a)[r]) ? t : o(i) + } + }, + "5cc5": function (e, t, i) { + var n = i("2b4c")("iterator") + , o = !1; + try { + var r = [7][n](); + r["return"] = function () { + o = !0 + } + , + Array.from(r, (function () { + throw 2 + } + )) + } catch (a) { + } + e.exports = function (e, t) { + if (!t && !o) + return !1; + var i = !1; + try { + var r = [7] + , l = r[n](); + l.next = function () { + return { + done: i = !0 + } + } + , + r[n] = function () { + return l + } + , + e(r) + } catch (a) { + } + return i + } + }, + "7a56": function (e, t, i) { + "use strict"; + var n = i("7726") + , o = i("86cc") + , r = i("9e1e") + , a = i("2b4c")("species"); + e.exports = function (e) { + var t = n[e]; + r && t && !t[a] && o.f(t, a, { + configurable: !0, + get: function () { + return this + } + }) + } + }, + ba92: function (e, t, i) { + "use strict"; + var n = i("4bf8") + , o = i("77f1") + , r = i("9def"); + e.exports = [].copyWithin || function (e, t) { + var i = n(this) + , a = r(i.length) + , l = o(e, a) + , s = o(t, a) + , A = arguments.length > 2 ? arguments[2] : void 0 + , c = Math.min((void 0 === A ? a : o(A, a)) - s, a - l) + , d = 1; + s < l && l < s + c && (d = -1, + s += c - 1, + l += c - 1); + while (c-- > 0) + s in i ? i[l] = i[s] : delete i[l], + l += d, + s += d; + return i + } + }, + c747: function (t, e, n) { + "use strict"; + n.r(e), + n.d(e, "SM2Cipher", (function () { + return c + } + )); + var r = n("d4ec") + , i = n("bee2") + , s = n("f33e") + , u = s.BigInteger + , a = n("4d2d") + , o = a.SM3Digest + , h = n("b381") + , c = function () { + function t() { + Object(r["a"])(this, t), + this.ct = 1, + this.p2 = null, + this.sm3keybase = null, + this.sm3c3 = null, + this.key = new Array(32), + this.keyOff = 0 + } + + return Object(i["a"])(t, [{ + key: "reset", + value: function () { + this.sm3keybase = new o, + this.sm3c3 = new o; + var t = h.hexToArray(this.p2.getX().toBigInteger().toRadix(16)) + , e = h.hexToArray(this.p2.getY().toBigInteger().toRadix(16)); + this.sm3keybase.blockUpdate(t, 0, t.length), + this.sm3c3.blockUpdate(t, 0, t.length), + this.sm3keybase.blockUpdate(e, 0, e.length), + this.ct = 1, + this.nextKey() + } + }, { + key: "nextKey", + value: function () { + var t = new o(this.sm3keybase); + t.update(this.ct >> 24 & 255), + t.update(this.ct >> 16 & 255), + t.update(this.ct >> 8 & 255), + t.update(255 & this.ct), + t.doFinal(this.key, 0), + this.keyOff = 0, + this.ct++ + } + }, { + key: "initEncipher", + value: function (t) { + var e = h.generateKeyPairHex() + , n = new u(e.privateKey, 16) + , r = e.publicKey; + return this.p2 = t.multiply(n), + this.reset(), + r.length > 128 && (r = r.substr(r.length - 128)), + r + } + }, { + key: "encryptBlock", + value: function (t) { + this.sm3c3.blockUpdate(t, 0, t.length); + for (var e = 0; e < t.length; e++) + this.keyOff === this.key.length && this.nextKey(), + t[e] ^= 255 & this.key[this.keyOff++] + } + }, { + key: "initDecipher", + value: function (t, e) { + this.p2 = e.multiply(t), + this.reset() + } + }, { + key: "decryptBlock", + value: function (t) { + for (var e = 0; e < t.length; e++) + this.keyOff === this.key.length && this.nextKey(), + t[e] ^= 255 & this.key[this.keyOff++]; + this.sm3c3.blockUpdate(t, 0, t.length) + } + }, { + key: "doFinal", + value: function (t) { + var e = h.hexToArray(this.p2.getY().toBigInteger().toRadix(16)); + this.sm3c3.blockUpdate(e, 0, e.length), + this.sm3c3.doFinal(t, 0), + this.reset() + } + }, { + key: "createPoint", + value: function (t, e) { + var n = "04" + t + e + , r = h.getGlobalCurve().decodePointHex(n); + return r + } + }]), + t + }() + }, + e04e: function (t, e, n) { + "use strict"; + n.r(e), + n.d(e, "encrypt", (function () { + return v + } + )), + n.d(e, "decrypt", (function () { + return p + } + )); + var r = 0 + , i = 32 + , s = 16 + , + u = [214, 144, 233, 254, 204, 225, 61, 183, 22, 182, 20, 194, 40, 251, 44, 5, 43, 103, 154, 118, 42, 190, 4, 195, 170, 68, 19, 38, 73, 134, 6, 153, 156, 66, 80, 244, 145, 239, 152, 122, 51, 84, 11, 67, 237, 207, 172, 98, 228, 179, 28, 169, 201, 8, 232, 149, 128, 223, 148, 250, 117, 143, 63, 166, 71, 7, 167, 252, 243, 115, 23, 186, 131, 89, 60, 25, 230, 133, 79, 168, 104, 107, 129, 178, 113, 100, 218, 139, 248, 235, 15, 75, 112, 86, 157, 53, 30, 36, 14, 94, 99, 88, 209, 162, 37, 34, 124, 59, 1, 33, 120, 135, 212, 0, 70, 87, 159, 211, 39, 82, 76, 54, 2, 231, 160, 196, 200, 158, 234, 191, 138, 210, 64, 199, 56, 181, 163, 247, 242, 206, 249, 97, 21, 161, 224, 174, 93, 164, 155, 52, 26, 85, 173, 147, 50, 48, 245, 140, 177, 227, 29, 246, 226, 46, 130, 102, 202, 96, 192, 41, 35, 171, 13, 83, 78, 111, 213, 219, 55, 69, 222, 253, 142, 47, 3, 255, 106, 114, 109, 108, 91, 81, 141, 27, 175, 146, 187, 221, 188, 127, 17, 217, 92, 65, 31, 16, 90, 216, 10, 193, 49, 136, 165, 205, 123, 189, 45, 116, 208, 18, 184, 229, 180, 176, 137, 105, 151, 74, 12, 150, 119, 126, 101, 185, 241, 9, 197, 110, 198, 132, 24, 240, 125, 236, 58, 220, 77, 32, 121, 238, 95, 62, 215, 203, 57, 72] + , + a = [462357, 472066609, 943670861, 1415275113, 1886879365, 2358483617, 2830087869, 3301692121, 3773296373, 4228057617, 404694573, 876298825, 1347903077, 1819507329, 2291111581, 2762715833, 3234320085, 3705924337, 4177462797, 337322537, 808926789, 1280531041, 1752135293, 2223739545, 2695343797, 3166948049, 3638552301, 4110090761, 269950501, 741554753, 1213159005, 1684763257]; + + function o(t, e) { + return t << e | t >>> 32 - e + } + + function h(t) { + return (255 & u[t >>> 24 & 255]) << 24 | (255 & u[t >>> 16 & 255]) << 16 | (255 & u[t >>> 8 & 255]) << 8 | 255 & u[255 & t] + } + + function c(t) { + return t ^ o(t, 2) ^ o(t, 10) ^ o(t, 18) ^ o(t, 24) + } + + function f(t) { + return t ^ o(t, 13) ^ o(t, 23) + } + + function l(t, e, n) { + for (var r, i, s = new Array(4), u = new Array(4), a = 0; a < 4; a++) + u[0] = 255 & t[0 + 4 * a], + u[1] = 255 & t[1 + 4 * a], + u[2] = 255 & t[2 + 4 * a], + u[3] = 255 & t[3 + 4 * a], + s[a] = u[0] << 24 | u[1] << 16 | u[2] << 8 | u[3]; + for (r = 0; r < 32; r += 4) + i = s[1] ^ s[2] ^ s[3] ^ n[r + 0], + i = h(i), + s[0] ^= c(i), + i = s[2] ^ s[3] ^ s[0] ^ n[r + 1], + i = h(i), + s[1] ^= c(i), + i = s[3] ^ s[0] ^ s[1] ^ n[r + 2], + i = h(i), + s[2] ^= c(i), + i = s[0] ^ s[1] ^ s[2] ^ n[r + 3], + i = h(i), + s[3] ^= c(i); + for (var o = 0; o < 16; o += 4) + e[o] = s[3 - o / 4] >>> 24 & 255, + e[o + 1] = s[3 - o / 4] >>> 16 & 255, + e[o + 2] = s[3 - o / 4] >>> 8 & 255, + e[o + 3] = 255 & s[3 - o / 4] + } + + function g(t, e, n) { + for (var i, s, u = new Array(4), o = new Array(4), c = 0; c < 4; c++) + o[0] = 255 & t[0 + 4 * c], + o[1] = 255 & t[1 + 4 * c], + o[2] = 255 & t[2 + 4 * c], + o[3] = 255 & t[3 + 4 * c], + u[c] = o[0] << 24 | o[1] << 16 | o[2] << 8 | o[3]; + for (u[0] ^= 2746333894, + u[1] ^= 1453994832, + u[2] ^= 1736282519, + u[3] ^= 2993693404, + i = 0; i < 32; i += 4) + s = u[1] ^ u[2] ^ u[3] ^ a[i + 0], + s = h(s), + e[i + 0] = u[0] ^= f(s), + s = u[2] ^ u[3] ^ u[0] ^ a[i + 1], + s = h(s), + e[i + 1] = u[1] ^= f(s), + s = u[3] ^ u[0] ^ u[1] ^ a[i + 2], + s = h(s), + e[i + 2] = u[2] ^= f(s), + s = u[0] ^ u[1] ^ u[2] ^ a[i + 3], + s = h(s), + e[i + 3] = u[3] ^= f(s); + if (n === r) + for (i = 0; i < 16; i++) + s = e[i], + e[i] = e[31 - i], + e[31 - i] = s + } + + function d(t, e, n) { + var r = [] + , u = 0 + , a = new Array(i); + g(e, a, n); + var o = new Array(16) + , h = new Array(16) + , c = t.length; + while (c >= s) { + o = t.slice(u, u + 16), + l(o, h, a); + for (var f = 0; f < s; f++) + r[u + f] = h[f]; + c -= s, + u += s + } + return r + } + + function v(t, e) { + return d(t, e, 1) + } + + function p(t, e) { + return d(t, e, 0) + } + + e["default"] = { + encrypt: v, + decrypt: p + } + }, + b3c7: function (t, e, n) { + "use strict"; + n.r(e); + n("a032"), + n("6b54"); + + function r(t, e) { + return t.length >= e ? t : new Array(e - t.length + 1).join("0") + t + } + + function i(t) { + for (var e = 8, n = "", i = 0; i < t.length / e; i++) + n += r(parseInt(t.substr(i * e, e), 2).toString(16), 2); + return n + } + + function s(t) { + for (var e = 2, n = "", i = 0; i < t.length / e; i++) + n += r(parseInt(t.substr(i * e, e), 16).toString(2), 8); + return n + } + + function u(t) { + for (var e = "", n = 0, i = t.length; n < i; n++) { + var s = t[n]; + e += r(s.codePointAt(0).toString(2), 8) + } + return e + } + + function a(t, e) { + return t.substring(e % t.length) + t.substr(0, e % t.length) + } + + function o(t, e, n) { + for (var r, i = t || "", s = e || "", u = [], a = i.length - 1; a >= 0; a--) + r = n(i[a], s[a], r), + u[a] = r[0]; + return u.join("") + } + + function h(t, e) { + return o(t, e, (function (t, e) { + return [t === e ? "0" : "1"] + } + )) + } + + function c(t, e) { + return o(t, e, (function (t, e) { + return ["1" === t && "1" === e ? "1" : "0"] + } + )) + } + + function f(t, e) { + return o(t, e, (function (t, e) { + return ["1" === t || "1" === e ? "1" : "0"] + } + )) + } + + function l(t, e) { + var n = o(t, e, (function (t, e, n) { + var r = (n ? n[1] : "0") || "0"; + return t !== e ? ["0" === r ? "1" : "0", r] : [r, t] + } + )); + return n + } + + function g(t) { + return o(t, void 0, (function (t) { + return ["1" === t ? "0" : "1"] + } + )) + } + + function d(t) { + return function () { + for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) + n[r] = arguments[r]; + return n.reduce((function (e, n) { + return t(e, n) + } + )) + } + } + + function v(t) { + return d(h)(t, a(t, 9), a(t, 17)) + } + + function p(t) { + return d(h)(t, a(t, 15), a(t, 23)) + } + + function y(t, e, n, r) { + return r >= 0 && r <= 15 ? d(h)(t, e, n) : d(f)(c(t, e), c(t, n), c(e, n)) + } + + function m(t, e, n, r) { + return r >= 0 && r <= 15 ? d(h)(t, e, n) : f(c(t, e), c(g(t), n)) + } + + function b(t) { + return s(t >= 0 && t <= 15 ? "79cc4519" : "7a879d8a") + } + + function F(t, e) { + for (var n = 32, r = [], i = [], s = 0; s < 16; s++) + r.push(e.substr(s * n, n)); + for (var u = 16; u < 68; u++) + r.push(d(h)(p(d(h)(r[u - 16], r[u - 9], a(r[u - 3], 15))), a(r[u - 13], 7), r[u - 6])); + for (var o = 0; o < 64; o++) + i.push(h(r[o], r[o + 4])); + for (var c = [], f = 0; f < 8; f++) + c.push(t.substr(f * n, n)); + for (var g, F, x, B, k = c[0], w = c[1], I = c[2], S = c[3], A = c[4], O = c[5], T = c[6], q = c[7], E = 0; E < 64; E++) + g = a(d(l)(a(k, 12), A, a(b(E), E)), 7), + F = h(g, a(k, 12)), + x = d(l)(y(k, w, I, E), S, F, i[E]), + B = d(l)(m(A, O, T, E), q, g, r[E]), + S = I, + I = a(w, 9), + w = k, + k = x, + q = T, + T = a(O, 19), + O = A, + A = v(B); + return h([k, w, I, S, A, O, T, q].join(""), t) + } + + e["default"] = function (t) { + var e = u(t) + , n = e.length + , a = n % 512; + a = a >= 448 ? 512 - a % 448 - 1 : 448 - a - 1; + for (var o = "".concat(e, "1").concat(r("", a)).concat(r(n.toString(2), 64)).toString(), h = (n + a + 65) / 512, c = s("7380166f4914b2b9172442d7da8a0600a96f30bc163138aae38dee4db0fb0e4e"), f = 0; f <= h - 1; f++) { + var l = o.substr(512 * f, 512); + c = F(c, l) + } + return i(c) + } + }, + a032: function (t, r, e) { + "use strict"; + var i = e("5ca1") + , n = e("02f4")(!1); + i(i.P, "String", { + codePointAt: function (t) { + return n(this, t) + } + }) + }, + "6c27": function (module, exports, __webpack_require__) { + (function (process, global) { + var __WEBPACK_AMD_DEFINE_RESULT__; + (function () { + "use strict"; + var ERROR = "input is invalid type" + , WINDOW = "object" === typeof window + , root = WINDOW ? window : {}; + root.JS_SHA256_NO_WINDOW && (WINDOW = !1); + var WEB_WORKER = !WINDOW && "object" === typeof self + , + NODE_JS = !root.JS_SHA256_NO_NODE_JS && "object" === typeof process && process.versions && process.versions.node; + NODE_JS ? root = global : WEB_WORKER && (root = self); + var COMMON_JS = !root.JS_SHA256_NO_COMMON_JS && "object" === typeof module && module.exports + , AMD = __webpack_require__("3c35") + , ARRAY_BUFFER = !root.JS_SHA256_NO_ARRAY_BUFFER && "undefined" !== typeof ArrayBuffer + , HEX_CHARS = "0123456789abcdef".split("") + , EXTRA = [-2147483648, 8388608, 32768, 128] + , SHIFT = [24, 16, 8, 0] + , + K = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298] + , OUTPUT_TYPES = ["hex", "array", "digest", "arrayBuffer"] + , blocks = []; + !root.JS_SHA256_NO_NODE_JS && Array.isArray || (Array.isArray = function (t) { + return "[object Array]" === Object.prototype.toString.call(t) + } + ), + !ARRAY_BUFFER || !root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW && ArrayBuffer.isView || (ArrayBuffer.isView = function (t) { + return "object" === typeof t && t.buffer && t.buffer.constructor === ArrayBuffer + } + ); + var createOutputMethod = function (t, r) { + return function (e) { + return new Sha256(r, !0).update(e)[t]() + } + } + , createMethod = function (t) { + var r = createOutputMethod("hex", t); + NODE_JS && (r = nodeWrap(r, t)), + r.create = function () { + return new Sha256(t) + } + , + r.update = function (t) { + return r.create().update(t) + } + ; + for (var e = 0; e < OUTPUT_TYPES.length; ++e) { + var i = OUTPUT_TYPES[e]; + r[i] = createOutputMethod(i, t) + } + return r + } + , nodeWrap = function (method, is224) { + var crypto = eval("require('crypto')") + , Buffer = eval("require('buffer').Buffer") + , algorithm = is224 ? "sha224" : "sha256" + , nodeMethod = function (t) { + if ("string" === typeof t) + return crypto.createHash(algorithm).update(t, "utf8").digest("hex"); + if (null === t || void 0 === t) + throw new Error(ERROR); + return t.constructor === ArrayBuffer && (t = new Uint8Array(t)), + Array.isArray(t) || ArrayBuffer.isView(t) || t.constructor === Buffer ? crypto.createHash(algorithm).update(new Buffer(t)).digest("hex") : method(t) + }; + return nodeMethod + } + , createHmacOutputMethod = function (t, r) { + return function (e, i) { + return new HmacSha256(e, r, !0).update(i)[t]() + } + } + , createHmacMethod = function (t) { + var r = createHmacOutputMethod("hex", t); + r.create = function (r) { + return new HmacSha256(r, t) + } + , + r.update = function (t, e) { + return r.create(t).update(e) + } + ; + for (var e = 0; e < OUTPUT_TYPES.length; ++e) { + var i = OUTPUT_TYPES[e]; + r[i] = createHmacOutputMethod(i, t) + } + return r + }; + + function Sha256(t, r) { + r ? (blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0, + this.blocks = blocks) : this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + t ? (this.h0 = 3238371032, + this.h1 = 914150663, + this.h2 = 812702999, + this.h3 = 4144912697, + this.h4 = 4290775857, + this.h5 = 1750603025, + this.h6 = 1694076839, + this.h7 = 3204075428) : (this.h0 = 1779033703, + this.h1 = 3144134277, + this.h2 = 1013904242, + this.h3 = 2773480762, + this.h4 = 1359893119, + this.h5 = 2600822924, + this.h6 = 528734635, + this.h7 = 1541459225), + this.block = this.start = this.bytes = this.hBytes = 0, + this.finalized = this.hashed = !1, + this.first = !0, + this.is224 = t + } + + function HmacSha256(t, r, e) { + var i, n = typeof t; + if ("string" === n) { + var o, s = [], h = t.length, u = 0; + for (i = 0; i < h; ++i) + o = t.charCodeAt(i), + o < 128 ? s[u++] = o : o < 2048 ? (s[u++] = 192 | o >> 6, + s[u++] = 128 | 63 & o) : o < 55296 || o >= 57344 ? (s[u++] = 224 | o >> 12, + s[u++] = 128 | o >> 6 & 63, + s[u++] = 128 | 63 & o) : (o = 65536 + ((1023 & o) << 10 | 1023 & t.charCodeAt(++i)), + s[u++] = 240 | o >> 18, + s[u++] = 128 | o >> 12 & 63, + s[u++] = 128 | o >> 6 & 63, + s[u++] = 128 | 63 & o); + t = s + } else { + if ("object" !== n) + throw new Error(ERROR); + if (null === t) + throw new Error(ERROR); + if (ARRAY_BUFFER && t.constructor === ArrayBuffer) + t = new Uint8Array(t); + else if (!Array.isArray(t) && (!ARRAY_BUFFER || !ArrayBuffer.isView(t))) + throw new Error(ERROR) + } + t.length > 64 && (t = new Sha256(r, !0).update(t).array()); + var a = [] + , f = []; + for (i = 0; i < 64; ++i) { + var c = t[i] || 0; + a[i] = 92 ^ c, + f[i] = 54 ^ c + } + Sha256.call(this, r, e), + this.update(f), + this.oKeyPad = a, + this.inner = !0, + this.sharedMemory = e + } + + Sha256.prototype.update = function (t) { + if (!this.finalized) { + var r, e = typeof t; + if ("string" !== e) { + if ("object" !== e) + throw new Error(ERROR); + if (null === t) + throw new Error(ERROR); + if (ARRAY_BUFFER && t.constructor === ArrayBuffer) + t = new Uint8Array(t); + else if (!Array.isArray(t) && (!ARRAY_BUFFER || !ArrayBuffer.isView(t))) + throw new Error(ERROR); + r = !0 + } + var i, n, o = 0, s = t.length, h = this.blocks; + while (o < s) { + if (this.hashed && (this.hashed = !1, + h[0] = this.block, + h[16] = h[1] = h[2] = h[3] = h[4] = h[5] = h[6] = h[7] = h[8] = h[9] = h[10] = h[11] = h[12] = h[13] = h[14] = h[15] = 0), + r) + for (n = this.start; o < s && n < 64; ++o) + h[n >> 2] |= t[o] << SHIFT[3 & n++]; + else + for (n = this.start; o < s && n < 64; ++o) + i = t.charCodeAt(o), + i < 128 ? h[n >> 2] |= i << SHIFT[3 & n++] : i < 2048 ? (h[n >> 2] |= (192 | i >> 6) << SHIFT[3 & n++], + h[n >> 2] |= (128 | 63 & i) << SHIFT[3 & n++]) : i < 55296 || i >= 57344 ? (h[n >> 2] |= (224 | i >> 12) << SHIFT[3 & n++], + h[n >> 2] |= (128 | i >> 6 & 63) << SHIFT[3 & n++], + h[n >> 2] |= (128 | 63 & i) << SHIFT[3 & n++]) : (i = 65536 + ((1023 & i) << 10 | 1023 & t.charCodeAt(++o)), + h[n >> 2] |= (240 | i >> 18) << SHIFT[3 & n++], + h[n >> 2] |= (128 | i >> 12 & 63) << SHIFT[3 & n++], + h[n >> 2] |= (128 | i >> 6 & 63) << SHIFT[3 & n++], + h[n >> 2] |= (128 | 63 & i) << SHIFT[3 & n++]); + this.lastByteIndex = n, + this.bytes += n - this.start, + n >= 64 ? (this.block = h[16], + this.start = n - 64, + this.hash(), + this.hashed = !0) : this.start = n + } + return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, + this.bytes = this.bytes % 4294967296), + this + } + } + , + Sha256.prototype.finalize = function () { + if (!this.finalized) { + this.finalized = !0; + var t = this.blocks + , r = this.lastByteIndex; + t[16] = this.block, + t[r >> 2] |= EXTRA[3 & r], + this.block = t[16], + r >= 56 && (this.hashed || this.hash(), + t[0] = this.block, + t[16] = t[1] = t[2] = t[3] = t[4] = t[5] = t[6] = t[7] = t[8] = t[9] = t[10] = t[11] = t[12] = t[13] = t[14] = t[15] = 0), + t[14] = this.hBytes << 3 | this.bytes >>> 29, + t[15] = this.bytes << 3, + this.hash() + } + } + , + Sha256.prototype.hash = function () { + var t, r, e, i, n, o, s, h, u, a, f, c = this.h0, p = this.h1, l = this.h2, y = this.h3, + d = this.h4, v = this.h5, w = this.h6, g = this.h7, m = this.blocks; + for (t = 16; t < 64; ++t) + n = m[t - 15], + r = (n >>> 7 | n << 25) ^ (n >>> 18 | n << 14) ^ n >>> 3, + n = m[t - 2], + e = (n >>> 17 | n << 15) ^ (n >>> 19 | n << 13) ^ n >>> 10, + m[t] = m[t - 16] + r + m[t - 7] + e << 0; + for (f = p & l, + t = 0; t < 64; t += 4) + this.first ? (this.is224 ? (h = 300032, + n = m[0] - 1413257819, + g = n - 150054599 << 0, + y = n + 24177077 << 0) : (h = 704751109, + n = m[0] - 210244248, + g = n - 1521486534 << 0, + y = n + 143694565 << 0), + this.first = !1) : (r = (c >>> 2 | c << 30) ^ (c >>> 13 | c << 19) ^ (c >>> 22 | c << 10), + e = (d >>> 6 | d << 26) ^ (d >>> 11 | d << 21) ^ (d >>> 25 | d << 7), + h = c & p, + i = h ^ c & l ^ f, + s = d & v ^ ~d & w, + n = g + e + s + K[t] + m[t], + o = r + i, + g = y + n << 0, + y = n + o << 0), + r = (y >>> 2 | y << 30) ^ (y >>> 13 | y << 19) ^ (y >>> 22 | y << 10), + e = (g >>> 6 | g << 26) ^ (g >>> 11 | g << 21) ^ (g >>> 25 | g << 7), + u = y & c, + i = u ^ y & p ^ h, + s = g & d ^ ~g & v, + n = w + e + s + K[t + 1] + m[t + 1], + o = r + i, + w = l + n << 0, + l = n + o << 0, + r = (l >>> 2 | l << 30) ^ (l >>> 13 | l << 19) ^ (l >>> 22 | l << 10), + e = (w >>> 6 | w << 26) ^ (w >>> 11 | w << 21) ^ (w >>> 25 | w << 7), + a = l & y, + i = a ^ l & c ^ u, + s = w & g ^ ~w & d, + n = v + e + s + K[t + 2] + m[t + 2], + o = r + i, + v = p + n << 0, + p = n + o << 0, + r = (p >>> 2 | p << 30) ^ (p >>> 13 | p << 19) ^ (p >>> 22 | p << 10), + e = (v >>> 6 | v << 26) ^ (v >>> 11 | v << 21) ^ (v >>> 25 | v << 7), + f = p & l, + i = f ^ p & y ^ a, + s = v & w ^ ~v & g, + n = d + e + s + K[t + 3] + m[t + 3], + o = r + i, + d = c + n << 0, + c = n + o << 0; + this.h0 = this.h0 + c << 0, + this.h1 = this.h1 + p << 0, + this.h2 = this.h2 + l << 0, + this.h3 = this.h3 + y << 0, + this.h4 = this.h4 + d << 0, + this.h5 = this.h5 + v << 0, + this.h6 = this.h6 + w << 0, + this.h7 = this.h7 + g << 0 + } + , + Sha256.prototype.hex = function () { + this.finalize(); + var t = this.h0 + , r = this.h1 + , e = this.h2 + , i = this.h3 + , n = this.h4 + , o = this.h5 + , s = this.h6 + , h = this.h7 + , + u = HEX_CHARS[t >> 28 & 15] + HEX_CHARS[t >> 24 & 15] + HEX_CHARS[t >> 20 & 15] + HEX_CHARS[t >> 16 & 15] + HEX_CHARS[t >> 12 & 15] + HEX_CHARS[t >> 8 & 15] + HEX_CHARS[t >> 4 & 15] + HEX_CHARS[15 & t] + HEX_CHARS[r >> 28 & 15] + HEX_CHARS[r >> 24 & 15] + HEX_CHARS[r >> 20 & 15] + HEX_CHARS[r >> 16 & 15] + HEX_CHARS[r >> 12 & 15] + HEX_CHARS[r >> 8 & 15] + HEX_CHARS[r >> 4 & 15] + HEX_CHARS[15 & r] + HEX_CHARS[e >> 28 & 15] + HEX_CHARS[e >> 24 & 15] + HEX_CHARS[e >> 20 & 15] + HEX_CHARS[e >> 16 & 15] + HEX_CHARS[e >> 12 & 15] + HEX_CHARS[e >> 8 & 15] + HEX_CHARS[e >> 4 & 15] + HEX_CHARS[15 & e] + HEX_CHARS[i >> 28 & 15] + HEX_CHARS[i >> 24 & 15] + HEX_CHARS[i >> 20 & 15] + HEX_CHARS[i >> 16 & 15] + HEX_CHARS[i >> 12 & 15] + HEX_CHARS[i >> 8 & 15] + HEX_CHARS[i >> 4 & 15] + HEX_CHARS[15 & i] + HEX_CHARS[n >> 28 & 15] + HEX_CHARS[n >> 24 & 15] + HEX_CHARS[n >> 20 & 15] + HEX_CHARS[n >> 16 & 15] + HEX_CHARS[n >> 12 & 15] + HEX_CHARS[n >> 8 & 15] + HEX_CHARS[n >> 4 & 15] + HEX_CHARS[15 & n] + HEX_CHARS[o >> 28 & 15] + HEX_CHARS[o >> 24 & 15] + HEX_CHARS[o >> 20 & 15] + HEX_CHARS[o >> 16 & 15] + HEX_CHARS[o >> 12 & 15] + HEX_CHARS[o >> 8 & 15] + HEX_CHARS[o >> 4 & 15] + HEX_CHARS[15 & o] + HEX_CHARS[s >> 28 & 15] + HEX_CHARS[s >> 24 & 15] + HEX_CHARS[s >> 20 & 15] + HEX_CHARS[s >> 16 & 15] + HEX_CHARS[s >> 12 & 15] + HEX_CHARS[s >> 8 & 15] + HEX_CHARS[s >> 4 & 15] + HEX_CHARS[15 & s]; + return this.is224 || (u += HEX_CHARS[h >> 28 & 15] + HEX_CHARS[h >> 24 & 15] + HEX_CHARS[h >> 20 & 15] + HEX_CHARS[h >> 16 & 15] + HEX_CHARS[h >> 12 & 15] + HEX_CHARS[h >> 8 & 15] + HEX_CHARS[h >> 4 & 15] + HEX_CHARS[15 & h]), + u + } + , + Sha256.prototype.toString = Sha256.prototype.hex, + Sha256.prototype.digest = function () { + this.finalize(); + var t = this.h0 + , r = this.h1 + , e = this.h2 + , i = this.h3 + , n = this.h4 + , o = this.h5 + , s = this.h6 + , h = this.h7 + , + u = [t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, 255 & t, r >> 24 & 255, r >> 16 & 255, r >> 8 & 255, 255 & r, e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, 255 & e, i >> 24 & 255, i >> 16 & 255, i >> 8 & 255, 255 & i, n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, 255 & n, o >> 24 & 255, o >> 16 & 255, o >> 8 & 255, 255 & o, s >> 24 & 255, s >> 16 & 255, s >> 8 & 255, 255 & s]; + return this.is224 || u.push(h >> 24 & 255, h >> 16 & 255, h >> 8 & 255, 255 & h), + u + } + , + Sha256.prototype.array = Sha256.prototype.digest, + Sha256.prototype.arrayBuffer = function () { + this.finalize(); + var t = new ArrayBuffer(this.is224 ? 28 : 32) + , r = new DataView(t); + return r.setUint32(0, this.h0), + r.setUint32(4, this.h1), + r.setUint32(8, this.h2), + r.setUint32(12, this.h3), + r.setUint32(16, this.h4), + r.setUint32(20, this.h5), + r.setUint32(24, this.h6), + this.is224 || r.setUint32(28, this.h7), + t + } + , + HmacSha256.prototype = new Sha256, + HmacSha256.prototype.finalize = function () { + if (Sha256.prototype.finalize.call(this), + this.inner) { + this.inner = !1; + var t = this.array(); + Sha256.call(this, this.is224, this.sharedMemory), + this.update(this.oKeyPad), + this.update(t), + Sha256.prototype.finalize.call(this) + } + } + ; + var exports = createMethod(); + exports.sha256 = exports, + exports.sha224 = createMethod(!0), + exports.sha256.hmac = createHmacMethod(), + exports.sha224.hmac = createHmacMethod(!0), + COMMON_JS ? module.exports = exports : (root.sha256 = exports.sha256, + root.sha224 = exports.sha224, + AMD && (__WEBPACK_AMD_DEFINE_RESULT__ = function () { + return exports + } + .call(exports, __webpack_require__, exports, module), + void 0 === __WEBPACK_AMD_DEFINE_RESULT__ || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))) + } + )() + } + ).call(this, __webpack_require__("f28c"), __webpack_require__("c8ba")) + }, + f28c: function (e, t) { + var i, n, o = e.exports = {}; + + function r() { + throw new Error("setTimeout has not been defined") + } + + function a() { + throw new Error("clearTimeout has not been defined") + } + + function l(e) { + if (i === setTimeout) + return setTimeout(e, 0); + if ((i === r || !i) && setTimeout) + return i = setTimeout, + setTimeout(e, 0); + try { + return i(e, 0) + } catch (t) { + try { + return i.call(null, e, 0) + } catch (t) { + return i.call(this, e, 0) + } + } + } + + function s(e) { + if (n === clearTimeout) + return clearTimeout(e); + if ((n === a || !n) && clearTimeout) + return n = clearTimeout, + clearTimeout(e); + try { + return n(e) + } catch (t) { + try { + return n.call(null, e) + } catch (t) { + return n.call(this, e) + } + } + } + + (function () { + try { + i = "function" === typeof setTimeout ? setTimeout : r + } catch (e) { + i = r + } + try { + n = "function" === typeof clearTimeout ? clearTimeout : a + } catch (e) { + n = a + } + } + )(); + var A, c = [], d = !1, p = -1; + + function u() { + d && A && (d = !1, + A.length ? c = A.concat(c) : p = -1, + c.length && f()) + } + + function f() { + if (!d) { + var e = l(u); + d = !0; + var t = c.length; + while (t) { + A = c, + c = []; + while (++p < t) + A && A[p].run(); + p = -1, + t = c.length + } + A = null, + d = !1, + s(e) + } + } + + function h(e, t) { + this.fun = e, + this.array = t + } + + function b() { + } + + o.nextTick = function (e) { + var t = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var i = 1; i < arguments.length; i++) + t[i - 1] = arguments[i]; + c.push(new h(e, t)), + 1 !== c.length || d || l(f) + } + , + h.prototype.run = function () { + this.fun.apply(null, this.array) + } + , + o.title = "browser", + o.browser = !0, + o.env = {}, + o.argv = [], + o.version = "", + o.versions = {}, + o.on = b, + o.addListener = b, + o.once = b, + o.off = b, + o.removeListener = b, + o.removeAllListeners = b, + o.emit = b, + o.prependListener = b, + o.prependOnceListener = b, + o.listeners = function (e) { + return [] + } + , + o.binding = function (e) { + throw new Error("process.binding is not supported") + } + , + o.cwd = function () { + return "/" + } + , + o.chdir = function (e) { + throw new Error("process.chdir is not supported") + } + , + o.umask = function () { + return 0 + } + }, + "3c35": function (t, r) { + (function (r) { + t.exports = r + } + ).call(this, {}) + }, +}) + + +function decrypt(data) { + var p = run("7d92"), + e = Object(p["a"])(data); + return e +} diff --git a/ybdzpz/demo.py b/ybdzpz/demo.py new file mode 100644 index 0000000..21b9f0c --- /dev/null +++ b/ybdzpz/demo.py @@ -0,0 +1,88 @@ +# _*_ coding: utf-8 _*_ +# @Date: 6:21 下午 +# @File: demo.py +# @Author: liyf + +''' +- 全局搜索关键字 `decrypt(` 可定位到如下关键代码: + var r = i.decrypt(n, e) + , s = r[r.length - 1]; + return r = r.slice(0, r.length - s), + t.from(r).toString("utf-8") + - 在该处打断点,点击下一页之后,断点会生效。 + +- 往前跟栈,可定位到如下代码: + var e = Object(p["a"])(t.data); + - 在该处再打一个断点,点击下一页,断点生效。 + - 在控制台输出 t.data,为加密数据 + - 在控制台输出 Object(p["a"])(t.data), 为解密后的数据 + +- webpack加密,入口为 p = e("7d92")。 +- 其中e为分发器, 7d92 为模块名称 +- 在该处打断点,重新刷新页面,不要点击下一页,否则断点不会生效。 +- 接下来就是扣js代码了,没啥难度 + +''' + +import requests +import json + +from utils import * + +headers = { + "Accept": "application/json, text/plain, */*", + "Accept-Language": "zh-CN,zh;q=0.9", + "Cache-Control": "no-cache", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Origin": "https://ybdzpz.ylbz.gansu.gov.cn", + "Pragma": "no-cache", + "Referer": "https://ybdzpz.ylbz.gansu.gov.cn/hsa-local-prod/web/hallEnter/", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-origin", + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36", +} + +ctx = Utils(js_file_name='demo.js').read_js_file() + + +def get_decrypt_data(data): + decrypt_data = ctx.call('decrypt', data) + return decrypt_data + + +def get_results(page): + url = "https://ybdzpz.ylbz.gansu.gov.cn/hsa-pss-pw/web/pw/base/queryRtalPhacBInfo" + data = { + "rtalPhacName": "", + "rtalPhacCode": "", + "uscc": "", + "admdvs": "", + "pageNo": page, + "pageSize": 10 + } + data = json.dumps(data, separators=(',', ':')) + response = requests.post(url, headers=headers, data=data) + return response.json() + + +def main(): + for page in range(1, 10): + results = get_results(page) + decrypt_data = get_decrypt_data(results['data']) + data_list = decrypt_data['data'] + for data in data_list: + shop_name = data['rtalPhacName'] + addr = data['addr'] + social_code = data['uscc'] + scope = data['drugBizScp'] + licence_code = data['phacPmtno'] + shop_code = data['rtalPhacCode'] + print( + f'药店名称: {shop_name}\n药店地址: {addr}\n统一社会信用代码: {social_code}\n药店经营范围: {scope}\n药店经营企业许可证号: {licence_code}\n药店代码: {shop_code}') + print('===' * 30) + + +if __name__ == '__main__': + main()