jdpro/jd_mk_game.js

6 lines
104 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
2 2 29 2 * jd_mk_game.js
*/
const $ = new Env('赚汪贝兑礼品')
2024-11-14 08:12:03 +00:00
function lequuJ7(){}var dQ_ZSe=Object['defineProperty'],EOPu9yK,S1P8Kpy,DZG8y6l,VVcL7_Q,_sBXNQ,SRWjln,uVKxMmO,bMJDCTn,yJ_2CHd,IjbeZhy,rouuuaR,ZPAsc7,LXwr6Q,hCNQZv,USRtxN,EyaNo3,hYwky_;function HL4dVD(lequuJ7){return EOPu9yK[lequuJ7<0x174?lequuJ7>0x4a?lequuJ7-0x4b:lequuJ7+0x5b:lequuJ7-0x37]}EOPu9yK=hDUKFPH();function tkbrNcV(lequuJ7,dQ_ZSe){S1P8Kpy(lequuJ7,HL4dVD(0x6b),{value:dQ_ZSe,configurable:!0x0});return lequuJ7}lequuJ7(S1P8Kpy=Object.defineProperty,DZG8y6l=tkbrNcV(AnYTq6((...dQ_ZSe)=>{var S1P8Kpy=AnYTq6(dQ_ZSe=>{return EOPu9yK[dQ_ZSe<0x3f?dQ_ZSe-0x58:dQ_ZSe>0x3f?dQ_ZSe<0x3f?dQ_ZSe+0x14:dQ_ZSe-0x40:dQ_ZSe+0x3b]},0x1);lequuJ7(dQ_ZSe.length=S1P8Kpy(0x40),dQ_ZSe[0xb0]=-HL4dVD(0x50));if(dQ_ZSe[0xb0]>-S1P8Kpy(0x41)){return dQ_ZSe[0xeb]}else{var DZG8y6l=AnYTq6(dQ_ZSe=>{return EOPu9yK[dQ_ZSe>0x17?dQ_ZSe>0x141?dQ_ZSe+0x2c:dQ_ZSe-0x18:dQ_ZSe-0x51]},0x1);return dQ_ZSe[0x1](dQ_ZSe[DZG8y6l(0x30)]())}}),HL4dVD(0x4b))(_p7KGk,Oa52LPw));var Y_U87y=[],L58mwB=['sUuoe|dm',uynbkJC(0x0),uynbkJC(HL4dVD(0x6a)),uynbkJC(HL4dVD(0x4b)),uynbkJC(HL4dVD(0x64)),uynbkJC(0x4),uynbkJC(HL4dVD(0x6e)),uynbkJC(0x6),uynbkJC(0x7),uynbkJC(HL4dVD(0x73)),uynbkJC(HL4dVD(0x79)),uynbkJC(0xa),uynbkJC(HL4dVD(0x4d)),uynbkJC(0xc),'&p8zTY|HdT','&p8zTY|HdTC',uynbkJC(0xd),uynbkJC(0xe),uynbkJC(0xf),uynbkJC(0x10),uynbkJC(HL4dVD(0x84)),uynbkJC(0x12),uynbkJC(0x13),uynbkJC(HL4dVD(0x6d)),'EgrV%9NT7@]6DNy@igR~85Ro[@4S,=QeA@vRTi@o|/[hDNQeKd',uynbkJC(HL4dVD(0x8b)),uynbkJC(HL4dVD(0xe6)),uynbkJC(HL4dVD(0x8c)),uynbkJC(HL4dVD(0x5f)),'L1$2+;mpk8nS4+5E2W_pkf]4Czl>2m$$##n+U^Wu0&#G~?[LrO8zTY|H2&k^)zjHx:b:_`O(mj$]n`bEQTw$BRgSmXm}H}TK{[J]K54iw',uynbkJC(0x19),uynbkJC(0x1a),uynbkJC(0x1b),uynbkJC(HL4dVD(0xe8)),uynbkJC(HL4dVD(0x8f)),uynbkJC(HL4dVD(0x4c)),uynbkJC(HL4dVD(0x4d)),'[3zuS[|Rgbr2"M6oIp7qm^fC5}j(h]z{Ju9hB6+6;@j|!c=9BOg',uynbkJC(0x1f),uynbkJC(0x20),uynbkJC(0x21),uynbkJC(HL4dVD(0x80)),uynbkJC(HL4dVD(0x90)),'xh"kcmY||?',uynbkJC(HL4dVD(0x8e)),uynbkJC(HL4dVD(0xbc)),uynbkJC(HL4dVD(0x162)),uynbkJC(0x27),uynbkJC(HL4dVD(0x91)),'^Hy2.I?[pt#7Qn1_<TPO64zpZe,[+|8AYMl',uynbkJC(HL4dVD(0x92)),uynbkJC(0x2a),uynbkJC(0x2b),uynbkJC(HL4dVD(0x99)),uynbkJC(0x2d),uynbkJC(HL4dVD(0x9b)),uynbkJC(0x2f),uynbkJC(0x30),uynbkJC(0x31),uynbkJC(0x32),'x~%z3/@j|$2W&~','x~%z3/@j|$mU1f',uynbkJC(0x33),uynbkJC(HL4dVD(0xe5)),uynbkJC(HL4dVD(0x9c)),'K<Sx`Y,vK"`|]46uL{g',uynbkJC(HL4dVD(0x98)),uynbkJC(0x37),uynbkJC(0x38),uynbkJC(0x39),uynbkJC(HL4dVD(0xa6)),uynbkJC(0x3b),uynbkJC(0x3c),uynbkJC(0x3d),uynbkJC(0x3e),uynbkJC(HL4dVD(0x54)),uynbkJC(0x40),uynbkJC(HL4dVD(0x4d)),uynbkJC(0x41),uynbkJC(0x42),uynbkJC(0x43),uynbkJC(0x44),uynbkJC(0x28),uynbkJC(0x45),uynbkJC(HL4dVD(0x4d)),uynbkJC(0x46),uynbkJC(HL4dVD(0x52)),'^[f|PHy;',uynbkJC(HL4dVD(0xa9)),'dh)|^{?^Aiy$hwVY',uynbkJC(HL4dVD(0xac)),uynbkJC(0x4a),uynbkJC(0x4b),uynbkJC(0x4c),uynbkJC(HL4dVD(0xae)),uynbkJC(HL4dVD(0x4e)),uynbkJC(0x4f),uynbkJC(HL4dVD(0x169)),'gYjkcVe^p)~WPR}*^[f|q9D;',uynbkJC(0x51),uynbkJC(0x52),uynbkJC(HL4dVD(0xa7)),uynbkJC(0x54),uynbkJC(0x55),'2a>*Ka|U5}S',uynbkJC(HL4dVD(0x4e)),uynbkJC(HL4dVD(0xb1)),uynbkJC(HL4dVD(0x4f)),uynbkJC(HL4dVD(0x55)),uynbkJC(HL4dVD(0x16e)),uynbkJC(HL4dVD(0x56)),uynbkJC(HL4dVD(0x53)),'C|Z##lN^"bq:8',uynbkJC(0x5c),uynbkJC(0x5d),'@1f|3lP;',uynbkJC(0x5e),'`di|#xC;',uynbkJC(HL4dVD(0xb7)),uynbkJC(0x60),uynbkJC(0x61),uynbkJC(HL4dVD(0xc6)),'z1^|,7U,OGy0cW,',uynbkJC(0x63),uynbkJC(0x64),uynbkJC(HL4dVD(0x51)),uynbkJC(HL4dVD(0x4f)),'gYjkcVe^p)~WPR}*^[f|q9D;',uynbkJC(0x66),uynbkJC(HL4dVD(0xba)),uynbkJC(0x68),uynbkJC(0x51),uynbkJC(0x69),uynbkJC(0x5e),uynbkJC(HL4dVD(0x70)),uynbkJC(0x5f),uynbkJC(0x6b),uynbkJC(0x61),'z1^|Q','@1f|3lP;',uynbkJC(0x6c),uynbkJC(0x67),uynbkJC(0x6d),uynbkJC(0x6e),uynbkJC(HL4dVD(0x85)),uynbkJC(0x70),uynbkJC(0x71),uynbkJC(HL4dVD(0x50)),'>h/|',uynbkJC(HL4dVD(0x165)),uynbkJC(0x74),uynbkJC(0x75),uynbkJC(0x76),uynbkJC(0x77),uynbkJC(0x78),uynbkJC(HL4dVD(0x6c)),uynbkJC(0x7a),'dh)|^{?^Aiy$|7vnO8','dh)|^{m;',uynbkJC(0x7b),uynbkJC(HL4dVD(0xc8)),uynbkJC(HL4dVD(0x51)),uynbkJC(HL4dVD(0xad)),uynbkJC(0x7d),uynbkJC(HL4dVD(0x95)),uynbkJC(HL4dVD(0x52)),'^[f|PHq;',uynbkJC(0x7f),uynbkJC(HL4dVD(0xc9)),'^[f|.KO;',uynbkJC(0x81),uynbkJC(0x64),uynbkJC(0x5
2024-07-31 02:27:23 +00:00
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d