This commit is contained in:
65
js/21D38FE5F73FD4DF47B5E7E2FB120D83.js
Normal file
65
js/21D38FE5F73FD4DF47B5E7E2FB120D83.js
Normal file
@@ -0,0 +1,65 @@
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
}), exports.decode = function() {
|
||||
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
|
||||
r = t.match(/[0-9A-F]{2}/gi),
|
||||
n = r.map((function(t) {
|
||||
return Number.parseInt(t, 16)
|
||||
})),
|
||||
e = n.map((function(t) {
|
||||
return String.fromCharCode(t)
|
||||
})).join(""),
|
||||
a = e.substring(1, 13).match(/[0-9A-F]{2}/gi),
|
||||
u = a.map((function(t) {
|
||||
return Number.parseInt(t, 16)
|
||||
})),
|
||||
o = u[0] ^ u[2];
|
||||
o = 255 & (o = (o = (o = (o += u[4]) ^ u[1]) + u[3]) ^ u[5]);
|
||||
var i = e.slice(13, -4).match(/[0-9A-F]{2}/gi).map((function(t) {
|
||||
return Number.parseInt(t, 16) ^ o
|
||||
}));
|
||||
return i.map((function(t) {
|
||||
return Number(t).toString(16).padStart(2, "0").toUpperCase()
|
||||
}))
|
||||
}, exports.getCommand = function() {
|
||||
var r = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
|
||||
n = new Date,
|
||||
e = n.getFullYear(),
|
||||
a = n.getMonth() + 1,
|
||||
u = n.getDate(),
|
||||
o = n.getHours(),
|
||||
i = n.getMinutes(),
|
||||
p = n.getSeconds(),
|
||||
c = [e % 100, a, u, o, i, p].map((function(t) {
|
||||
return t.toString().padStart(2, "0")
|
||||
})),
|
||||
m = c.map((function(t) {
|
||||
return Number.parseInt(t, 16)
|
||||
})),
|
||||
s = m[0] ^ m[2];
|
||||
s = 255 & (s = (s = (s = (s += m[4]) ^ m[1]) + m[3]) ^ m[5]);
|
||||
var g = r.match(/[0-9A-F]{2}/gi).map((function(t) {
|
||||
return (Number.parseInt(t, 16) ^ s).toString(16).padStart(2, "0")
|
||||
})),
|
||||
f = [].concat(t(c), t(g)).join("").toUpperCase(),
|
||||
d = t(f).map((function(t) {
|
||||
return t.charCodeAt(0)
|
||||
})),
|
||||
h = [3].concat(t(d), [4]),
|
||||
S = h.reduce((function(t, r) {
|
||||
return t ^ r
|
||||
})).toString(16).padStart(2, "0").toUpperCase();
|
||||
return h.push.apply(h, t(t(S).map((function(t) {
|
||||
return t.charCodeAt(0)
|
||||
})))), h.push(13), {
|
||||
toArray: function() {
|
||||
return h
|
||||
},
|
||||
toString: function() {
|
||||
return h.map((function(t) {
|
||||
return String.fromCharCode(t)
|
||||
})).join("")
|
||||
}
|
||||
}
|
||||
};
|
||||
var t = require("./@babel/runtime/helpers/toConsumableArray.js");
|
||||
Reference in New Issue
Block a user