2024-01-10 06:17:47 +00:00
|
|
|
var _0xodW='jsjiami.com.v7';const _0x482b5e=_0x3b51;(function(_0x5c4fae,_0x1d7191,_0x2763d1,_0x26861c,_0xc75f26,_0x3ea67c,_0x37d574){return _0x5c4fae=_0x5c4fae>>0x3,_0x3ea67c='hs',_0x37d574='hs',function(_0x5631d5,_0x484b58,_0x48bfd7,_0x50f583,_0x3631b2){const _0x1253df=_0x3b51;_0x50f583='tfi',_0x3ea67c=_0x50f583+_0x3ea67c,_0x3631b2='up',_0x37d574+=_0x3631b2,_0x3ea67c=_0x48bfd7(_0x3ea67c),_0x37d574=_0x48bfd7(_0x37d574),_0x48bfd7=0x0;const _0x39e9a8=_0x5631d5();while(!![]&&--_0x26861c+_0x484b58){try{_0x50f583=parseInt(_0x1253df(0xb0,'UW56'))/0x1+parseInt(_0x1253df(0x51d,'6)!h'))/0x2+parseInt(_0x1253df(0x2f8,'[n3T'))/0x3*(parseInt(_0x1253df(0x3f7,'1Q#w'))/0x4)+parseInt(_0x1253df(0x220,'UW56'))/0x5*(parseInt(_0x1253df(0x32e,'[qYF'))/0x6)+-parseInt(_0x1253df(0x511,'6VWz'))/0x7+parseInt(_0x1253df(0x51a,'brmT'))/0x8+parseInt(_0x1253df(0x8d,'LdoY'))/0x9*(-parseInt(_0x1253df(0x527,'*#ul'))/0xa);}catch(_0x246c97){_0x50f583=_0x48bfd7;}finally{_0x3631b2=_0x39e9a8[_0x3ea67c]();if(_0x5c4fae<=_0x26861c)_0x48bfd7?_0xc75f26?_0x50f583=_0x3631b2:_0xc75f26=_0x3631b2:_0x48bfd7=_0x3631b2;else{if(_0x48bfd7==_0xc75f26['replace'](/[FqDUGMYBVIyuphQe=]/g,'')){if(_0x50f583===_0x484b58){_0x39e9a8['un'+_0x3ea67c](_0x3631b2);break;}_0x39e9a8[_0x37d574](_0x3631b2);}}}}}(_0x2763d1,_0x1d7191,function(_0x2abacb,_0x13d708,_0x34a15f,_0x45befd,_0x202749,_0x200be0,_0x1cb878){return _0x13d708='\x73\x70\x6c\x69\x74',_0x2abacb=arguments[0x0],_0x2abacb=_0x2abacb[_0x13d708](''),_0x34a15f=`\x72\x65\x76\x65\x72\x73\x65`,_0x2abacb=_0x2abacb[_0x34a15f]('\x76'),_0x45befd=`\x6a\x6f\x69\x6e`,(0x14f873,_0x2abacb[_0x45befd](''));});}(0x668,0x26910,_0x3967,0xcf),_0x3967)&&(_0xodW=`\x636`);function _0x3967(){const _0x49f2f3=(function(){return[...[_0xodW,'pBGujyqUsIhjYeiQaQVmqiQ.YcyoDm.DvBQ7UMQF==','W5pdIY/dNam','W6zhdSkCeW','W4/dVfFcMSos','W6VcT3pdG8ou','WQddVCoykq','WRpcN8kpCxi','q8kJWQRcQ03cIsm','lmopWPNdTmkd','WQ5dW78Kumox','eSkXzKTp','g8o8W6CyW4i','WRBcMCovsCoZ','FSkiWPxcJwBcPqpdVq','tbRdHHddLCofWO7cMK5ZFwHsW5qldHPGW7/cN3Scsmo6W6r2fSovW4pdJtu','zmoAW60gpG','AfBdPH/dIG','W7NdMZ0sW7a','fbVcICo2','AmobW5W8hq','W4ldQd/dNbK','W7HikSkapW','h8kjvmkA','W7eD5P6j5QYj5OIU5Aww6i+05B+a5O2+546v6yA677Yf','zLldLbJdKa','Fx7cQSkl','W6JcLd/dN8ky','wmoIAN9N','wmomughdJmocBW','g8o0WOG','W4WnWOtcGmkWEsLy','rSoKW4/dJSoGWPBcH8k+q8obiN4QW4ddG8o7vmoGWR9DW4xcTG','dmoXW7OA','W7ZcJxNdRmo6','p8kHD8kDAq','omkrhv7dMq','jSk2pSonhW','W73dJmkuudie','WRlcGMZcUSkG','B8oKjSoUhSoCACok','x8oGsgHIrq','hmoLW57dPCoZWPRdK8ku','WQJdL3xdR8om','W4JcObm','rmo6W7qvkW','W69fpW','W6KIWQlcU8kv','l0ysW5xcP2W','omoGWQFcISoK','W73cKrRdLSk9','WORcVxFcJmk6','cJNcS8ouW4e','FhdcOmkhDW','WPlcK8o/r8oX','jComWRZcQSo0l8kfW7C','fLBdMCkYW4m','WP92W5fj','W7pcQIxdGSkw','dx/dMq','WOXLW4XCW7y','WOxcMSk3ANq','WPTteSkjoG','W6LDvSkRpq','qmoivwXR','WR8Chq','DNiZxq','gSo6WP8','W4xdVmkGbXm','hqNcMG','c8oXW70tW7hcMa','mu7cKmkLkq','WRxcVMJcMmkh','W7/cKLe','WPj5W4zeW6zKjIq','FCoLW5WJia','WRbjW7Ses8otfdldSCkGia','W5/dTttcOaG','W6VdJSkuW4RdOG','WPhdO37dSmolta','WRGLn2hdOq','nCotWQhcVmoK','vSofdCow5OgD5zAV6l605OQs','mbTTkSkb','5P2S6l6V5O6c546n6ywb6l6c5OI4776w','WQhcQ8o4sCoR','WQTyW70muq','WQrlW5STvW','hmoeW74iW6m','5P2n6lYV5yI35lYb5OU/5AAH5Q+x5PEd772g','v8k/FvVdIW','W4ddRSoFbfG','z8ksWQ01qa','ASoLiSohgCok','DwhcNSkHvq','gSkBgN/dK3nSW4K','W5dcV3ldMSoC','kNZdVI3dPmo4WQ/cR21jeq','WRvEW7evrW','tSkXWRlcPq','W7BdPmkojIi','oSkClq','WQfnW6SjDmok','hHjI','W6JdImkCW4tdONnzuMxcISkr','jSkQ6l6v6koo5lMR5Q6z5OQX5AEV5Q2U5PsfWQ7PUAJORi7MIPBLRk8hqCk0a8oabv3dNSkmaX9cW7RdGKTiWRZcTmo/lSon5OQp5AwA6zAa6zM4772D6BIv6kYBWRhNPRBdMNmpjmoqjSobWR81W501WP5sW6KQwH7cJ1VMJidNJ5BPLBRPMzVVV4pPUyhORPRdPUENQ++/G+wpOUs/OoEMPSkVWPFdGmkWoSkkWPjwWQBcJCoAWO8ysL7cR+AmQUEoTEIpHEwzPo+9SoM5H+ISJKBLPAlLHOpVVj7LP4RLPltKVzRdRmkBFanQzf1RWQldNuv1tqvTW7zkW7ZLV4BLKBlMJBZNJOFLIQVKUlJPMOhOVORNUkxLJBfDsmkCedKOxmoDWRtdOgNdLxq8cSojWOzUW4dcMCkNWRxLV6lLKQBKUk3NKl7cN8oVCqzoW4fQBmkyWQTbW5S+WQa+FSk6WP5uce3dVYXO5yAt6zEl5O6554YmW408W53dSSoZz8kMsComlZFdUCkWaa','WRdcLokAH+w0VoISLoE8TUs7QoApKUEpN+++UG','W4BcSGFdU8kcWOq','pSklDhjZWQ8','W7tdLCks','fhddHmkQW6u','CSoYlW','WRCuh1G','AJlMNOJMRytMIjVLP7ROJzFLVAJNJO3PH5hMGA
|
2024-01-02 12:59:48 +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
|