[JavaScript] 纯文本查看 复制代码
//https://www.oklink.com/zh-hans/btc/tx-list/page/6
var OKlink;
!function(e) {
t = {};
function n(r) {
console.log(r)
var a = t[r];
if (void 0 !== a)
return a.exports;
var o = t[r] = {
id: r,
loaded: !1,
exports: {}
};
return e[r].call(o.exports, o, o.exports, n),
o.loaded = !0,
o.exports
}
n.d = (e, t) => {
for (var r in t)
n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, {
enumerable: !0,
get: t[r]
})
}
n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t),
OKlink=n;
}({
57816: (t, e, n) => {
"use strict";
n.d(e, {
A: () => c
});
var r = n(23029)
, i = n(92901)
, o = n(63129)
, a = n(51583)
, s = 1111111111111;
const c = new (function() {
function t() {
(0,
r.A)(this, t),
this.API_KEY = "a2c903cc-b31e-4547-9299-b6d07b7631ab"
}
return (0,
i.A)(t, [{
key: "encryptApiKey",
value: function() {
var t = this.API_KEY
, e = t.split("")
, n = e.splice(0, 8);
return t = e.concat(n).join("")
}
}, {
key: "encryptTime",
value: function(t) {
var e = (1 * t + s).toString().split("")
, n = parseInt(10 * o.o.mathRandom(), 10)
, r = parseInt(10 * o.o.mathRandom(), 10)
, i = parseInt(10 * o.o.mathRandom(), 10);
return e.concat([n, r, i]).join("")
}
}, {
key: "comb",
value: function(t, e) {
var n = "".concat(t, "|").concat(e);
return a.A.btoa(n)
}
}, {
key: "getApiKey",
value: function() {
var t = (new Date).getTime()
, e = this.encryptApiKey();
return t = this.encryptTime(t),
this.comb(e, t)
}
}, {
key: "getTimestamp",
value: function(t) {
var e = a.A.atob(t).split("|")[1];
return e = e.slice(0, -3),
e -= s
}
}]),
t
}())
}
,
23029: (t, e, n) => {
"use strict";
function r(t, e) {
if (!(t instanceof e))
throw new TypeError("Cannot call a class as a function")
}
n.d(e, {
A: () => r
})
}
,
92901: (t, e, n) => {
"use strict";
n.d(e, {
A: () => o
});
var r = n(20816);
function i(t, e) {
for (var n = 0; n < e.length; n++) {
var i = e[n];
i.enumerable = i.enumerable || !1,
i.configurable = !0,
"value"in i && (i.writable = !0),
Object.defineProperty(t, (0,
r.A)(i.key), i)
}
}
function o(t, e, n) {
return e && i(t.prototype, e),
n && i(t, n),
Object.defineProperty(t, "prototype", {
writable: !1
}),
t
}
}
,
20816: (t, e, n) => {
"use strict";
n.d(e, {
A: () => i
});
var r = n(82284);
function i(t) {
var e = function(t, e) {
if ("object" != (0,
r.A)(t) || !t)
return t;
var n = t[Symbol.toPrimitive];
if (void 0 !== n) {
var i = n.call(t, e || "default");
if ("object" != (0,
r.A)(i))
return i;
throw new TypeError("@@toPrimitive must return a primitive value.")
}
return ("string" === e ? String : Number)(t)
}(t, "string");
return "symbol" == (0,
r.A)(e) ? e : e + ""
}
}
,
82284: (t, e, n) => {
"use strict";
function r(t) {
return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
return typeof t
}
: function(t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
}
,
r(t)
}
n.d(e, {
A: () => r
})
}
,
63129: (t, e, n) => {
"use strict";
n.d(e, {
o: () => o
});
var r, i = (0,
n(99692).f)();
r = i || !window.crypto ? n(28078) : window.crypto;
var o = {
mathRandom: function() {
return Math.random()
},
cryptoRandom: function(t) {
var e = t || {}
, n = e.bytesLength
, i = void 0 === n ? 1 : n
, o = e.UnitArray
, a = new (void 0 === o ? Uint32Array : o)(i);
return r.getRandomValues(a)
}
}
}
,
99692: (t, e, n) => {
"use strict";
n.d(e, {
f: () => r
});
var r = function() {
return Boolean("undefined" === typeof window || void 0)
}
}
,
51583: (t, e, n) => {
"use strict";
n.d(e, {
A: () => o
});
var r = n(89379)
, i = n(99692);
const o = function() {
var t;
if ("undefined" !== typeof globalThis)
t = globalThis;
else if ("undefined" !== typeof window)
t = window;
else {
if ("undefined" === typeof n.g)
throw new Error("unable to locate global object");
t = n.g
}
var e = {};
return (0,
i.f)() && function(t) {
for (var e = ["addEventListener", "removeEventListener", "IntersectionObserver", "getComputedStyle", "scrollTo"], n = ["location", "event", "navigator"], r = ["devicePixelRatio"], i = ["devicePixelRatio", "scrollY", "scrollX", "innerWidth", "innerHeight"], o = 0; o < e.length; o++)
t[e[o]] || (t[e[o]] = function() {
return null
}
);
for (var a = 0; a < n.length; a++)
t[n[a]] || (t[n[a]] = {});
for (var s = 0; s < r.length; s++)
t[r] || (t[r] = "");
for (var c = 0; c < i.length; c++)
t[i[c]] || (t[i[c]] = 0)
}(e),
(0,
i.f)() && function(t) {
var e = ["addEventListener", "removeEventListener", "appendChild", "getComputedStyle"]
, n = e.concat(["createElement", "getElementById", "getElementsByTagName", "getElementsByClassName", "removeChild", "querySelector"]);
if (!t.document) {
for (var r = {}, i = {}, o = 0; o < e.length; o++)
r[e[o]] || (r[e[o]] = function() {
return null
}
);
for (var a = 0; a < n.length; a++)
i[n[a]] || (i[n[a]] = function() {
return null
}
);
i.body = r,
t.document = i
}
}(e),
(0,
i.f)() ? (0,
r.A)((0,
r.A)((0,
r.A)({}, t), e), {}, {
btoa: n.g.btoa,
atob: n.g.atob
}) : t
}()
}
,
89379: (t, e, n) => {
"use strict";
n.d(e, {
A: () => o
});
var r = n(64467);
function i(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(t);
e && (r = r.filter((function(e) {
return Object.getOwnPropertyDescriptor(t, e).enumerable
}
))),
n.push.apply(n, r)
}
return n
}
function o(t) {
for (var e = 1; e < arguments.length; e++) {
var n = null != arguments[e] ? arguments[e] : {};
e % 2 ? i(Object(n), !0).forEach((function(e) {
(0,
r.A)(t, e, n[e])
}
)) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach((function(e) {
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
}
))
}
return t
}
}
,
64467: (t, e, n) => {
"use strict";
n.d(e, {
A: () => i
});
var r = n(20816);
function i(t, e, n) {
return (e = (0,
r.A)(e))in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n,
t
}
}
,
20816: (t, e, n) => {
"use strict";
n.d(e, {
A: () => i
});
var r = n(82284);
function i(t) {
var e = function(t, e) {
if ("object" != (0,
r.A)(t) || !t)
return t;
var n = t[Symbol.toPrimitive];
if (void 0 !== n) {
var i = n.call(t, e || "default");
if ("object" != (0,
r.A)(i))
return i;
throw new TypeError("@@toPrimitive must return a primitive value.")
}
return ("string" === e ? String : Number)(t)
}(t, "string");
return "symbol" == (0,
r.A)(e) ? e : e + ""
}
}
,
99692: (t, e, n) => {
"use strict";
n.d(e, {
f: () => r
});
var r = function() {
return Boolean("undefined" === typeof window || void 0)
}
}
})
var v = OKlink(57816);
console.log(v.A.getApiKey())