2023-08-25 16:38:46 +08:00
|
|
|
|
var version_='jsjiami.com.v7';const iIIili=iii1II;(function(Ii1iil,Ilil1i,iili1,II11ii,Iil1iI,II11il,iIIil1){return Ii1iil=Ii1iil>>0x1,II11il='hs',iIIil1='hs',function(IlllII,I1il1I,II111,lI1l1I,lill11){const Il1i1i=iii1II;lI1l1I='tfi',II11il=lI1l1I+II11il,lill11='up',iIIil1+=lill11,II11il=II111(II11il),iIIil1=II111(iIIil1),II111=0x0;const liI1i1=IlllII();while(!![]&&--II11ii+I1il1I){try{lI1l1I=parseInt(Il1i1i(0x25d,'KdtI'))/0x1+-parseInt(Il1i1i(0x217,'YBZM'))/0x2*(parseInt(Il1i1i(0x1d6,'$NU2'))/0x3)+-parseInt(Il1i1i(0x1bb,'ffZ$'))/0x4*(parseInt(Il1i1i(0x246,'@[IB'))/0x5)+-parseInt(Il1i1i(0x25e,'o8n)'))/0x6*(parseInt(Il1i1i(0x220,'Setj'))/0x7)+parseInt(Il1i1i(0x256,'wn(%'))/0x8+-parseInt(Il1i1i(0x208,'Ng4&'))/0x9*(parseInt(Il1i1i(0x1c3,']Ijb'))/0xa)+parseInt(Il1i1i(0x1f3,'f&Gm'))/0xb;}catch(I11i11){lI1l1I=II111;}finally{lill11=liI1i1[II11il]();if(Ii1iil<=II11ii)II111?Iil1iI?lI1l1I=lill11:Iil1iI=lill11:II111=lill11;else{if(II111==Iil1iI['replace'](/[GHdruwWEhlMDAPRpKqNQ=]/g,'')){if(lI1l1I===I1il1I){liI1i1['un'+II11il](lill11);break;}liI1i1[iIIil1](lill11);}}}}}(iili1,Ilil1i,function(I1llII,Iil1il,I11i1i,l1l1iI,I1llI1,I11i1l,il1il){return Iil1il='\x73\x70\x6c\x69\x74',I1llII=arguments[0x0],I1llII=I1llII[Iil1il](''),I11i1i='\x72\x65\x76\x65\x72\x73\x65',I1llII=I1llII[I11i1i]('\x76'),l1l1iI='\x6a\x6f\x69\x6e',(0x13b11b,I1llII[l1l1iI](''));});}(0x182,0xdef05,Iii11l,0xc3),Iii11l)&&(version_=Iii11l);const IlIlil=require('./jdCookie'),lIli1I=require('./function/jdCommon'),II1il=require('./function/sendJDNotify'),lllI11=process[iIIili(0x25c,'wn(%')][iIIili(0x1c0,'HTE6')]||'',I1lIll=process[iIIili(0x1a4,'CeAa')][iIIili(0x241,')djJ')]==='true',I1lIli=iIIili(0x255,'WS0V');let II1ii='';const IIIIII=Object['keys'](IlIlil)[iIIili(0x1c1,')djJ')](IlIliI=>IlIlil[IlIliI])['filter'](l1iII1=>l1iII1);!IIIIII[0x0]&&($['msg']($[iIIili(0x165,'9SC6')],iIIili(0x24b,'BtY9')),process['exit'](0x1));!(async()=>{const Ii1iiI=iIIili,iiill1={'gGdQy':function(I1lIlI,ii1ill){return I1lIlI<ii1ill;},'oXPZc':Ii1iiI(0x151,'H0(b'),'nOILw':Ii1iiI(0x1e1,'z[!t'),'jTPDj':function(II1iI,llI1II){return II1iI===llI1II;},'lrpmM':Ii1iiI(0x1f9,'JV(K'),'pxRbU':'❖\x20远程获取数据中...\x0a❖\x20数据获取正常...\x0a','RfYGg':function(lIli1l,lillIi){return lIli1l+lillIi;},'OLENa':Ii1iiI(0x1fc,'Tef2'),'LqzCI':Ii1iiI(0x1d4,'WS0V'),'GWjRW':Ii1iiI(0x193,'OjVI'),'CLwlL':Ii1iiI(0x1a3,'LeXp'),'xMUat':Ii1iiI(0x261,'u)8Q'),'iCOnu':function(illIi1,ii1ili){return illIi1+ii1ili;},'vbTOO':Ii1iiI(0x221,'Tmh#'),'ILDbx':function(liil1i,lI1lil){return liil1i<lI1lil;},'vmyLf':function(i1l1iI,liil1l){return i1l1iI!==liil1l;},'rOjNT':Ii1iiI(0x161,'dF6K'),'KqqnW':'4|6|5|7|0|3|2|1','CHdAP':function(lI1lii){return lI1lii();},'cuJRQ':function(Iiili1,Iil1l1){return Iiili1+Iil1l1;},'gJFnh':'pt_pin'};authorCodeList=await liil1I(iiill1[Ii1iiI(0x18a,'Tef2')]);if(authorCodeList){if(iiill1[Ii1iiI(0x1d7,'PcZ$')](iiill1[Ii1iiI(0x1a9,'LeXp')],iiill1[Ii1iiI(0x248,'h]AA')])){console['log'](iiill1['pxRbU']);for(let i1i11I=0x0;iiill1['gGdQy'](i1i11I,authorCodeList[Ii1iiI(0x199,'pFtY')]);i1i11I++){console[Ii1iiI(0x1da,'KScv')](Ii1iiI(0x267,'Ng4&')+iiill1['RfYGg'](i1i11I,0x1)+Ii1iiI(0x15b,'Tef2')+authorCodeList[i1i11I]+'\x22');}}else{i1l1l1[Ii1iiI(0x20d,'$NU2')](Ii1iiI(0x1c6,'Ng4&'));for(let iii1ii=0x0;iiill1['gGdQy'](iii1ii,IlI11[Ii1iiI(0x270,'KScv')]);iii1ii++){lilIlI['log'](Ii1iiI(0x1d0,'KScv')+(iii1ii+0x1)+Ii1iiI(0x15b,'Tef2')+iIIIIi[iii1ii]+'\x22');}}}else console[Ii1iiI(0x1a6,'ffZ$')](iiill1[Ii1iiI(0x23c,'OjVI')]);if(!lllI11){console[Ii1iiI(0x1bc,'CeAa')](iiill1['LqzCI']);return;}const lIli1i=lIli1I[Ii1iiI(0x1de,'*S8W')](lllI11);if(!lIli1i){console['log'](Ii1iiI(0x1db,'pFtY'));return;}$[Ii1iiI(0x1bf,'FYcP')]=lllI11;const IIIII1=lIli1i[Ii1iiI(0x1ff,'dF6K')];if(!IIIII1[Ii1iiI(0x1b0,'$NU2')](iiill1['GWjRW'])){$['activityId']=lIli1I['getUrlParameter'](lllI11,iiill1[Ii1iiI(0x15e,'RgQG')]);if(!$['activityId']){console[Ii1iiI(0x155,'FYcP')](iiill1['xMUat']);return;}}II1il[Ii1iiI(0x1b5,'G3fB')]({'title':$['name']}),console[Ii1iiI(0x24c,'z[!t')](iiill1[Ii1iiI(0x1b6,'h]AA')](iiill1['vbTOO'],lllI11));for
|
|
|
|
|
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
|