-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.js
More file actions
56 lines (51 loc) · 1.94 KB
/
utils.js
File metadata and controls
56 lines (51 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
exports.call_btoa = function(n) {
return typeof_btoa === function_string ? btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g, (function(n, t) {
return String.fromCharCode("0x" + t)
}
))) : function(n) {
var t, e, r, c, o, a = window3.unescape || window3.decodeURI, i = 0, u = 0, f = [];
if (!n)
return n;
try {
n = a(encodeURIComponent(n))
} catch (t) {
return n
}
do {
t = (o = n.charCodeAt(i++) << 16 | n.charCodeAt(i++) << 8 | n.charCodeAt(i++)) >> 18 & 63,
e = o >> 12 & 63,
r = o >> 6 & 63,
c = 63 & o,
f[u++] = I.charAt(t) + I.charAt(e) + I.charAt(r) + I.charAt(c)
} while (i < n.length);
var s = f.join("")
, l = n.length % 3;
return (l ? s.slice(0, l - 3) : s) + "===".slice(l || 3)
}(n)
}
exports.n = function n(n) {
for (var r = atob(n), t = r.charCodeAt(0), f = "", c = 1; c < r.length; ++c) f += String.fromCharCode(t ^ r.charCodeAt(c));
return f;
}
exports.Tl = function(n) {
var l = {};
l.itKXX = function (n, t) {
return n <= t;
}, l.svdPk = function (n, t) {
return n > t;
}, l.LUMBl = function (n, t) {
return n !== t;
};
var h = l,
d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 13;
return n.replace(/[A-Za-z]/g, function (n) {
return String.fromCharCode(n.charCodeAt(0) + (n.toUpperCase() <= "M" ? d : -d));
});
}
exports.i = function(n) {
for (var c = atob(n), u = "", f = 0; f < c.length; ++f) {
var s = "o5j86ze".charCodeAt(f % 7);
u += String.fromCharCode(s ^ c.charCodeAt(f));
}
return u;
}