KR/jd_mfredrain.js

13 lines
41 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
远程获取,自行运行
cron:1 1 1 1 *
============Quantumultx===============
[task_local]
#魔方红包雨
1 1 1 1 * jd_mfredrain.js, tag=魔方红包雨, enabled=true
*/
const $ = new Env('魔方红包雨');
var version_='jsjiami.com.v7';const llIl1I=iii1II;(function(iI111i,I1I1l1,iI111l,i1lIii,III11i,i1lIil,III11l){return iI111i=iI111i>>0x3,i1lIil='hs',III11l='hs',function(llIl1i,llIl1l,IiiII,Iiil,IIIli){const IIIlIi=iii1II;Iiil='tfi',i1lIil=Iiil+i1lIil,IIIli='up',III11l+=IIIli,i1lIil=IiiII(i1lIil),III11l=IiiII(III11l),IiiII=0x0;const ii1i1=llIl1i();while(!![]&&--i1lIii+llIl1l){try{Iiil=-parseInt(IIIlIi(0x10b,'x8PS'))/0x1*(-parseInt(IIIlIi(0x1ac,'zc@3'))/0x2)+parseInt(IIIlIi(0x18b,')7l$'))/0x3+parseInt(IIIlIi(0xe2,']eyO'))/0x4+parseInt(IIIlIi(0x184,'aoI%'))/0x5*(parseInt(IIIlIi(0x11c,'Y$np'))/0x6)+-parseInt(IIIlIi(0xc3,'x8PS'))/0x7*(parseInt(IIIlIi(0xee,'yKbN'))/0x8)+parseInt(IIIlIi(0x19a,'#4y8'))/0x9+-parseInt(IIIlIi(0x1d9,'&NSA'))/0xa;}catch(Iiii){Iiil=IiiII;}finally{IIIli=ii1i1[i1lIil]();if(iI111i<=i1lIii)IiiII?III11i?Iiil=IIIli:III11i=IIIli:IiiII=IIIli;else{if(IiiII==III11i['replace'](/[LOgduMtGSAPEDYQUVpNwy=]/g,'')){if(Iiil===llIl1l){ii1i1['un'+i1lIil](IIIli);break;}ii1i1[III11l](IIIli);}}}}}(iI111l,I1I1l1,function(llIl11,IIIll,I1I1il,l1llii,liII1,I1I1ii,l1llil){return IIIll='\x73\x70\x6c\x69\x74',llIl11=arguments[0x0],llIl11=llIl11[IIIll](''),I1I1il='\x72\x65\x76\x65\x72\x73\x65',llIl11=llIl11[I1I1il]('\x76'),l1llii='\x6a\x6f\x69\x6e',(0x130786,llIl11[l1llii](''));});}(0x668,0x52a7e,Iii11l,0xcf),Iii11l)&&(version_=Iii11l);const notify=$['isNode']()?require('./sendNotify'):'',jdCookieNode=$[llIl1I(0x19d,'q@)4')]()?require('./jdCookie.js'):'',getToken=require('./function/krgetToken');let jdNotify=!![],cookiesArr=[],cookie='',message='';if($['isNode']()){Object[llIl1I(0x190,'%8y1')](jdCookieNode)[llIl1I(0xde,'hY)n')](iiliI=>{const i1lIl1=llIl1I;cookiesArr[i1lIl1(0x138,'1vze')](jdCookieNode[iiliI]);});if(process['env'][llIl1I(0xeb,'aE[(')]&&process[llIl1I(0x133,'I@Iz')]['JD_DEBUG']===llIl1I(0x1cb,'tWsN'))console[llIl1I(0x1af,'t0VF')]=()=>{};}else cookiesArr=[$[llIl1I(0xed,'tWsN')](llIl1I(0x1bb,'^np$')),$[llIl1I(0x12d,'3x13')](llIl1I(0xe4,'KN#9')),...jsonParse($[llIl1I(0x18c,'0#Xs')](llIl1I(0xe3,'edjD'))||'[]')[llIl1I(0x110,'9O(z')](Ill11I=>Ill11I[llIl1I(0x197,'UFtc')])]['filter'](I1il1i=>!!I1il1i);const JD_API_HOST='https://api.m.jd.com/client.action';!(async()=>{const liIli1=llIl1I,IliIIi={'LSTQn':'【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取','FwFXC':'https://bean.m.jd.com/bean/signIndex.action','iDZGx':function(i1iil,llI11l){return i1iil+llI11l;},'Wmqhn':liIli1(0x1a6,'i%uK'),'Ccwrn':liIli1(0x115,'%5rk'),'zYgmk':function(I1llIl,i1iii){return I1llIl(i1iii);},'oQzic':'\x0a暂无活动~\x0a','eXCCM':function(I1llIi,IIii1I){return I1llIi<IIii1I;},'CnAvj':function(llI11i,i1iIi1){return llI11i!==i1iIi1;},'BFRmk':liIli1(0x1c8,')7l$'),'OplHR':liIli1(0x1be,'W0&1'),'PuRWS':function(l1l1il,I11i1I){return l1l1il+I11i1I;},'EPXtL':function(iliIi1,l1l1ii){return iliIi1<l1l1ii;}};if(!cookiesArr[0x0]){$[liIli1(0x1d0,'1dsN')]($[liIli1(0x1b4,'%8y1')],IliIIi[liIli1(0xc5,'mw9U')],IliIIi['FwFXC'],{'open-url':IliIIi[liIli1(0x15b,'aoI%')]});return;}let lI1l1i=IliIIi[liIli1(0xce,'a%F0')](IliIIi[liIli1(0x137,'Jb3e')],liIli1(0xc6,'j#M7'))+IliIIi['Ccwrn'];authorCodeList=await IliIIi[liIli1(0xc8,'Xk)U')](getAuthorCodeList,lI1l1i);if(authorCodeList[liIli1(0x104,'ssel')]<=0x0){console[liIli1(0x1af,'t0VF')](IliIIi[liIli1(0x13b,'E7dC')]);return;}for(let Il1i1I=0x0;IliIIi[liIli1(0x19b,'#4y8')](Il1i1I,cookiesArr['length']);Il1i1I++){if(cookiesArr[Il1i1I]){if(IliIIi[liIli1(0x1b3,'aE[(')](IliIIi['BFRmk'],IliIIi[liIli1(0xc1,'gq^L')])){cookie=cookiesArr[Il1i1I],$[liIli1(0xcf,'1vze')]=decodeURIComponent(cookie[liIli1(0x16c,'mw9U')](/pt_pin=([^; ]+)(?=;?)/)&&cookie[liIli1(0x1dc,'5TSJ')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$['index']=Il1i1I+0x1,$[liIli1(0x13e,'&xGJ')]=!![],$['nickName']='',UA=getUA(),console[liIli1(0x13c,'9O(z')](IliIIi[liIli1(0xca,'^np$')](IliIIi['PuRWS'](liIli1(0x182,'ZH$v'),$['index'])+'】'+($[liIli1(0x153,'E7dC')]||$[liIli1(0x1c1,'aoI%')]),'\x0a'));if(!$[liIli1(0x17f,'i%uK')]){$[liIli1(0x109,')7l$')]($['name'],liIli1(0x16e,'&NSA'),'京东账号'+$['index']+'\x20'+($['nickName']||$[liIli1(0x185,'%8y1')])+liIli1(0x1d4,'hY)n'),{'open-url':IliIIi[liIli1(0xd7,'KN#9')]});if($[liIli1(0x179,'a%F0')]()){if(IliIIi[liIli1(0x146,'Y$np')](liIli1(0x170,'edjD'),'SyRDd'))await notify[liIli1(0x16a,'1dsN')]($['name']+'cookie已失效\x20-\x20'+$['UserName'],liIli1(0x18e,'^np$')+$[liIli1(0x167,'a%F0')]+'\x20'+$['UserName']+liIli1(0x1ba,'aE[('));else return Ill11[liIli1(0x1af,'t0VF')](liiIII),li1i11['log'](liIli1(0x189,'Y#Bq')),![];}continue;}for(let iIIilI=0x0;IliIIi[liIli1(0x154,'mw9U')](iIIilI,authorCodeList[liIli1(0xdf,'hY)n')]);iIIilI++){$[liIli1(0xdb,'1vze')]=authorCodeList[iIIilI][liIli1(0x145,'%8y1')],$[liIli1(0x174,'yKbN')]=authorCodeList[iIIilI][liIli1(0x10c,'Xk)U')],console[liIli1(0xf0,'hY)n')](IliIIi[liIli1(0x1a0,'edjD')](liIli1(0x10d,'ssel')+IliIIi[liIli1(0x13f,'Jb3e')](iIIilI,0x1)+'个活动\x20',$[liIli1(0x130,'hY)n')])),console['log'](''),await dotask(),console[liIli1(0x177,'j#M7')](''),await $[liIli1(0x1ae,'KN#9')](0x3e8);}}else llIlil['log'](''+IIlil[liIli1(0x162,'%8y1')](ilI1lI)),IiiIll['log'](IIlii[liIli1(0xd1,'UCaC')]+liIli1(0xc9,'0#Xs'));}}})()['catch'](Ii1iil=>{const IIIlIl=llIl1I;$[IIIlIl(0x147,'UFtc')]('','❌\x20'+$['name']+IIIlIl(0x1cc,'mw9U')+Ii1iil+'!','');})[llIl1I(0x1cd,'fqv*')](()=>{const IIIlI=llIl1I;$[IIIlI(0x1d3,'Xk)U')]();});async function dotask(){const IiiI=llIl1I,Ilil1i={'WFrHC':function(iili1,II11ii){return iili1(II11ii);},'dpsVp':IiiI(0x131,'l^eQ'),'xtziU':function(Iil1iI,II11il){return Iil1iI(II11il);},'MObeR':function(iIIil1,IlllII){return iIIil1==IlllII;},'CFDmp':'gBaLj','uELzb':function(I1il1I,II111){return I1il1I===II111;},'xhcOS':IiiI(0x1aa,'C!30'),'rdPcP':function(lI1l1I,lill11){return lI1l1I!==lill11;},'fKVJl':IiiI(0xc2,'Y#Bq'),'KLJoJ':'vkooK','gQVrI':function(liI1i1,I11i11){return liI1i1!==I11i11;},'HVqKB':function(I1llII){return I1llII();}};return new Promise(async Iil1il=>{const l1iIll=IiiI,I11i1i={'JOgvj':function(l1l1iI,I1llI1){const iIi1i=iii1II;return Ilil1i[iIi1i(0x12a,'yKbN')](l1l1iI,I1llI1);},'AGigr':Ilil1i[l1iIll(0xf8,'ssel')],'dBCls':function(I11i1l,il1il){return Ilil1i['xtziU'](I11i1l,il1il);},'MxDsX':function(Il1i1i,iIIili){const l1iIli=l1iIll;return Ilil1i[l1iIli(0x191,'a%F0')](Il1i1i,iIIili);},'wZNIJ':'object','gZkIL':Ilil1i[l1iIll(0x1db,']eyO')],'tOsMc':function(Ii1iiI,Ilil1I){return Ilil1i['uELzb'](Ii1iiI,Ilil1I);},'NBtQK':Ilil1i[l1iIll(0xd8,'j#M7')],'RaLcb':function(iliIiI,II11iI){return Ilil1i['rdPcP'](iliIiI,II11iI);},'jzJGh':'OomLQ','OVOAR':function(Il1i1l,Iil1ii){const iIi1l=l1iIll;return Ilil1i[iIi1l(0x113,'aoI%')](Il1i1l,Iil1ii);},'ltBck':Ilil1i['fKVJl'],'XZUkb':Ilil1i[l1iIll(0x136,'&xGJ')],'nKWBf':function(lill1I,Ii1ii1){const i1lIlI=l1iIll;return Ilil1i[i1lIlI(0xe5,'uz[8')](lill1I,Ii1ii1);}};if(Ilil1i[l1iIll(0x1bf,'%5rk')]('YQYWd',l1iIll(0x143,'a%F0')))$['get'](Ilil1i[l1iIll(0x141,'0#Xs')](taskUrl),async(Ilil11,i1ii1,il1ii)=>{const l1lliI=l1iIll,llI111={'rPOlg':function(i1iIiI,IlllI1){return I11i1i['MxDsX'](i1iIiI,IlllI1);},'dPClU':I11i1i[l1lliI(0x158,'ssel')]};try{if(I11i1i[l1lliI(0x155,'mw9U')]!==I11i1i['gZkIL'])I11i1i['JOgvj'](IIli1i,I1iIi1);else{if(Ilil11){if(I11i1i[l1lliI(0x126,'gq^L')](I11i1i[l1lliI(0x12f,'a@vy')],I11i1i[l1lliI(0x163,'uz[8')]))console[l1lliI(0x1ad,'#4y8')](''+JSON[l1lliI(0x111,'zc@3')](Ilil11)),console[l1lliI(0xf0,'hY)n')]('doInteractiveAssignment\x20API请求失败请检查网路重试');else{if(typeof il1i1i==I11i1i[l1lliI(0x164,'l^eQ')])try{return ilil11[l1lliI(0x15e,'I@Iz')](illlI1);}catch(II11l){return lil11I[l1lliI(0x132,'^np$')](II11l),Iliii1[l1lliI(0x17b,'mw9U')](iIiIi[l1lliI(0x120,'9O(z')],'','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'),[];}}}else{if(I11i1i[l1lliI(0x1a5,'3mUN')](I11i1i[l1lliI(0x11b,'&xGJ')],I11i1i[l1lliI(0x1a9,'KN#9')]))I11i1i['dBCls'](i1i1Ii,lllii);else{il1ii=JSON[l1lliI(0x156,'%5rk')](il1ii);if(I11i1i['MxDsX'](il1ii['subCode'],0x0)){if(I11i1i[l1lliI(0x16b,'q@)4')](I11i1i['ltBck'],I11i1i[l1lliI(0x15c,'1vze')]))console[l1lliI(0x1d6,'&NSA')](JSON[l1lliI(0xd4,'&xGJ')](il1ii[l1lliI(0x119,'0#Xs')]));else{if(llI111[l1lliI(0x178,'q@)4')](typeof lllill[l1lliI(0x188,'l^eQ')](ill11l),llI111['dPClU']))return!![];}}else console['log'](il1ii['msg']);}}}}catch(liI1ii){$['logErr'](liI1ii,i1ii1);}finally{I11i1i[l1lliI(0x18d,'^np$')](Iil1il,il1ii);}});else try{if(I11i1i[l1iIll(0x187,'9O(z')](typeof IIIl1i[l1iIll(0x1a7,'0#Xs')](liiII1),I11i1i[l1iIll(0xc0,')7l$')]))return!![];}catch(iI1Iil){return i11ili[l1iIll(0x1ab,'3x13')](iI1Iil),iil1l1[l1iIll(0xcc,'3mUN')](l1iIll(0x139,'l^eQ')),![];}});}async function getNewsComerWindow(){const I1I1iI=llIl1I,il1iI={'uVlec':function(i1iIii,i1iIil){return i1iIii!==i1iIil;},'CbLoN':I1I1iI(0x17c,'4%tp'),'bvItK':'ETBwl','WIMip':I1I1iI(0xfe,'3mUN'),'AMCUE':function(liI1il,llIlIi){return liI1il(llIlIi);},'XMwwT':'CjJSU','GVsRW':function(llIlIl,II11I){return llIlIl(II11I);},'wRHLV':function(il1i1,lIIiIi){return il1i1!==lIIiIi;},'RuDqf':I1I1iI(0x134,'C!30'),'QJLgw':'application/x-www-form-urlencoded','SqvHd':'jdltapp;iPhone;3.3.2;14.5.1network/wifi;hasUPPay/0;pushNoticeIsOpen/1;lang/zh_CN;model/iPhone13,2;addressid/137923973;hasOCPay/0;appBuild/1047;supportBestPay/0;pv/467.11;apprpd/MyJD_Main;','iZXUB':I1I1iI(0x1c5,'ZH$v')};return new Promise(async liI1iI=>{const iiIiI1=I1I1iI,iI1Il1={'oEQpw':function(i1iIl1,i1lli1){const IIIlII=iii1II;return il1iI[IIIlII(0x193,'ssel')](i1iIl1,i1lli1);}};if(il1iI[iiIiI1(0x1cf,'5TSJ')](il1iI['RuDqf'],iiIiI1(0x175,'i%uK'))){const llIlII={'url':iiIiI1(0x151,'Xk)U'),'body':'lmt=0&body=%7B%7D&','headers':{'Cookie':cookie,'Content-Type':il1iI['QJLgw'],'User-Agent':il1iI['SqvHd'],'Accept-Language':il1iI[iiIiI1(0x160,'aoI%')]}};$['post'](llIlII,async(IIlII,lIIiII,i1iIlI)=>{const ili1Il=iiIiI1;if(il1iI[ili1Il(0x1d8,'1dsN')](il1iI[ili1Il(0x11e,'#4y8')],il1iI[ili1Il(0x108,'aoI%')]))I1lliI?(IlI1i1['log'](''+l1lIl1[ili1Il(0x171,'1dsN')](IiiIlI)),Iilli1['log'](I1l1Il['name']+'\x20API请求失败请检查网路重试')):llIll1(Illl1l)&&(I11iI1=l1lIil['toObj'](IiiIli));else try{il1iI[ili1Il(0xd0,'0#Xs')]===il1iI[ili1Il(0xf2,'Y#Bq')]?IIlII?il1iI[ili1Il(0x1bd,'C!30')](il1iI[ili1Il(0x10f,'I@Iz')],il1iI[ili1Il(0xfd,'mw9U')])?II1lil[ili1Il(0xe8,'mw9U')](IIli1l,II1lii):(console[ili1Il(0xf5,'5TSJ')](''+JSON[ili1Il(0x11d,'3x13')](IIlII)),console['log']($[ili1Il(0xcd,'W0&1')]+ili1Il(0xf1,'j#M7'))):il1iI['AMCUE'](safeGet,i1iIlI)&&(i1iIlI=$[ili1Il(0x114,'gq^L')](i1iIlI)):(i1l1ll[ili1Il(0x196,'ZH$v')](''+I1iIiI['stringify'](li1I1)),i1ilil[ili1Il(0x144,'mw9U')]('doInteractiveAssignment\x20API请求失败请检查网路重试'));}catch(ll1I1){$[ili1Il(0x10e,'RS)s')](ll1I1,lIIiII);}finally{il1iI[ili1Il(0x166,'UCaC')]!==il1iI['XMwwT']?lliiil?(l1iiI[ili1Il(0x1ce,'4%tp')](''+ll1li['stringify'](Illl1I)),lliiiI[ili1Il(0x1a4,'1vze')](lilil['name']+ili1Il(0xd5,'Y$np'))):iI1Il1['oEQpw'](ll1ll,Illl11)&&(I1ilIi=IiiiI[ili1Il(0x1b2,'aE[(')](llIlli)):il1iI[ili1Il(0x180,'zc@3')](liI1iI,i1iIlI);}});}else ilI1ll=Iillii[iiIiI1(0x1d2,'tWsN')](IlI1iI);});}async function isUserFollow(){const ili1Ii=llIl1I,Ii1ill={'JyIAl':ili1Ii(0x118,'UCaC'),'onCqr':function(llIlI1,iI1IiI){return llIlI1(iI1IiI);},'YXezh':ili1Ii(0x173,'UCaC'),'pOREa':'jdltapp;iPhone;3.3.2;14.5.1network/wifi;hasUPPay/0;pushNoticeIsOpen/1;lang/zh_CN;model/iPhone13,2;addressid/137923973;hasOCPay/0;appBuild/1047;supportBestPay/0;pv/467.11;apprpd/MyJD_Main;','pbSRF':'zh-Hans-CN;q=1,\x20en-CN;q=0.9,\x20zh-Hant-CN;q=0.8'};return new Promise(async IIlI1=>{const Iilll1=ili1Ii,i1iIli={'url':Iilll1(0xda,'RS)s'),'body':Iilll1(0x19e,'j#M7'),'headers':{'Cookie':cookie,'Content-Type':Ii1ill['YXezh'],'User-Agent':Ii1ill[Iilll1(0x15f,'aoI%')],'Accept-Language':Ii1ill[Iilll1(0x103,'ZH$v')]}};$[Iilll1(0x12e,'%5rk')](i1iIli,async(i1iIll,i1lliI,liI1l1)=>{const ll11I=Iilll1;if(Ii1ill[ll11I(0x1c2,'3mUN')]===ll11I(0x169,'aE[('))try{i1iIll?(console['log'](''+JSON[ll11I(0x111,'zc@3')](i1iIll)),console['log']($[ll11I(0x107,'aoI%')]+ll11I(0x14a,'9O(z'))):Ii1ill['onCqr'](safeGet,liI1l1)&&(liI1l1=$[ll11I(0xfc,'W0&1')](liI1l1));}catch(IllIlI){$['logErr'](IllIlI,i1lliI);}finally{Ii1ill[ll11I(0x1c0,']eyO')](IIlI1,liI1l1);}else Iil1I1['log'](Ii1iII[ll11I(0x14e,'E7dC')](l1i11I[ll11I(0x1b7,'&NSA')]));});});}function iii1II(_0x4cd168,_0x60b374){const _0x2c1073=Iii11l();return iii1II=function(_0x42b23a,_0x2682cf){_0x42b23a=_0x42b23a-0xc0;let _0xefd397=_0x2c1073[_0x42b23a];if(iii1II['nPnpBD']===undefined){var _0x3cfa2d=function(_0x75497c){const _0x1d64e2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c0287='',_0x23a167='';for(let _0x1c7495=0x0,_0x4c770c,_0x418d14,_0x53668c=0x0;_0x418d14=_0x75497c['charAt'](_0x53668c++);~_0x418d14&&(_0x4c770c=_0x1c7495%0x4?_0x4c770c*0x40+_0x418d14:_0x418d14,_0x1c7495++%0x4)?_0x4c0287+=String['fromCharCode'](0xff&_0x4c770c>>(-0x2*_0x1c7495&0x6)):0x0){_0x418d14=_0x1d64e2['indexOf'](_0x418d14);}for(let _0xa1d45=0x0,_0x48e0a4=_0x4c0287['length'];_0xa1d45<_0x48e0a4;_0xa1d45++){_0x23a167+='%'+('00'+_0x4c0287['charCodeAt'](_0xa1d45)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23a167);};const _0xace53a=function(_0x176d5c,_0x329781){let _0x169b38=[],_0x32065e=0x0,_0x4f63ef,_0x40fb5c='';_0x176d5c=_0x3cfa2d(_0x176d5c);let _0x3d6f0b;for(_0x3d6f0b=0x0;_0x3d6f0b<0x100;_0x3d6f0b++){_0x169b38[_0x3d6f0b]=_0x3d6f0b;}for(_0x3d6f0b=0x0;_0x3d6f0b<0x100;_0x3d6f0b++){_0x32065e=(_0x32065e+_0x169b38[_0x3d6f0b]+_0x329781['charCodeAt'](_0x3d6f0b%_0x329781['length']))%0x100,_0x4f63ef=_0x169b38[_0x3d6f0b],_0x169b38[_0x3d6f0b]=_0x169b38[_0x32065e],_0x169b38[_0x32065e]=_0x4f63ef;}_0x3d6f0b=0x0,_0x32065e=0x0;for(let _0x47456b=0x0;_0x47456b<_0x176d5c['length'];_0x47456b++){_0x3d6f0b=(_0x3d6f0b+0x1)%0x100,_0x32065e=(_0x32065e+_0x169b38[_0x3d6f0b])%0x100,_0x4f63ef=_0x169b38[_0x3d6f0b],_0x169b38[_0x3d6f0b]=_0x169b38[_0x32065e],_0x169b38[_0x32065e]=_0x4f63ef,_0x40fb5c+=String['fromCharCode'](_0x176d5c['charCodeAt'](_0x47456b)^_0x169b38[(_0x169b38[_0x3d6f0b]+_0x169b38[_0x32065e])%0x100]);}return _0x40fb5c;};iii1II['lYuAZU']=_0xace53a,_0x4cd168=arguments,iii1II['nPnpBD']=!![];}const _0x10d40d=_0x2c1073[0x0],_0x57aaa6=_0x42b23a+_0x10d40d,_0x4e4454=_0x4cd168[_0x57aaa6];return!_0x4e4454?(iii1II['RCiaDw']===undefined&&(iii1II['RCiaDw']=!![]),_0xefd397=iii1II['lYuAZU'](_0xefd397,_0x2682cf),_0x4cd168[_0x57aaa6]=_0xefd397):_0xefd397=_0x4e4454,_0xefd397;},iii1II(_0x4cd168,_0x60b374);}function taskUrl(){const iIi1I=llIl1I,ili11I={'yNLtP':'api.m.jd.com','Fbkcp':iIi1I(0x161,'RS)s'),'VApgM':function(li11l,lliiIl){return li11l+lliiIl;},'Hocly':'__jda=123.1667062890194343232284.1667062890.1667794766.1667893339.9;'};return{'url':iIi1I(0x157,'gq^L')+$[iIi1I(0x15a,'RS)s')]+iIi1I(0x105,'Y$np')+$['encryptAssignmentId']+iIi1I(0x1c7,'C!30'),'headers':{'Host':ili11I[iIi1I(0x194,'^np$')],'accept':'application/json,\x20text/plain,\x20*/*','Origin':ili11I[iIi1I(0x159,'YQbY')],'User-Agent':UA,'Cookie':ili11I[iIi1I(0x1b9,'5TSJ')](cookie,ili11I[iIi1I(0x124,'I@Iz')])}};}function getUA(){const liIIl=llIl1I,li11i={'CeOHx':function(IllIl1,ll1Ii){return IllIl1===ll1Ii;},'DYBbP':liIIl(0x1b0,'%8y1'),'tlVFW':liIIl(0x1c4,'i%uK'),'WgVIO':'moUev','GARIj':liIIl(0xe7,'&xGJ'),'QZXLy':function(ll1Il,iiIi11){return ll1Il*iiIi11;},'Jofge':function(ill1II,i1llil){return ill1II-i1llil;},'dlUHE':function(i1llii,l1i1I1){return i1llii(l1i1I1);},'FLBPV':function(llIIil,llIIii){return llIIil(llIIii);},'RzGCC':liIIl(0x183,'RS)s'),'ZRAyA':liIIl(0x1da,'x8PS'),'OiTPs':'Ctq=','XBgPT':liIIl(0x128,'hY)n')};getstr=function(Ii1I1i){const IlI1lI=liIIl;if(li11i[IlI1lI(0x19f,'W0&1')]===li11i[IlI1lI(0x1a2,'RS)s')]){IiilI1[IlI1lI(0x168,'t0VF')](IIII1l)[IlI1lI(0x106,'tWsN')](Ii1I1l=>{const liIIi=IlI1lI;IlI11[liIIi(0xd6,'%8y1')](iIIIIl[Ii1I1l]);});if(IlI1I[IlI1lI(0x1bc,'RS)s')]['JD_DEBUG']&&li11i[IlI1lI(0xff,'uz[8')](II11Ii['env'][IlI1lI(0x1d7,'E7dC')],li11i[IlI1lI(0x1a3,'1vze')]))II11Il['log']=()=>{};}else{let IIlIl='',ili11l=li11i[IlI1lI(0x117,'&xGJ')];for(let Iiilll=0x0;Iiilll<Ii1I1i;Iiilll++){let Iiilli=Math[IlI1lI(0x14b,'edjD')](li11i[IlI1lI(0x1b5,'yKbN')](Math[IlI1lI(0x195,'gq^L')](),li11i[IlI1lI(0x181,'0#Xs')](ili11l['length'],0x1)));IIlIl+=ili11l['substring'](Iiilli,Iiilli+0x1);}return IIlIl;}};let lliiIi=Buffer[liIIl(0x148,'tWsN')](li11i[liIIl(0x14c,'fqv*')](getstr,0x10),'utf8')[liIIl(0xd9,'E7dC')](liIIl(0x199,'hY)n')),iiIi1I=getstr(0x30);return ep=li11i[liIIl(0x172,'aE[(')](encodeURIComponent,JSON[liIIl(0x1c9,'0#Xs')]({'hdid':li11i[liIIl(0xdd,'edjD')],'ts':Date['now'](),'ridx':-0x1,'cipher':{'sv':li11i[liIIl(0x152,'aE[(')],'ad':lliiIi,'od':iiIi1I,'ov':li11i[liIIl(0x121,'ZH$v')],'ud':lliiIi},'ciphertype':0x5,'version':liIIl(0xe9,'q@)4'),'appname':li11i['XBgPT']})),liIIl(0x16f,'%5rk')+ep+liIIl(0x1b8,'x8PS');}function getAuthorCodeList(IIlIi){const IilllI=llIl1I,ili11i={'JCSjD':IilllI(0xf9,'aoI%'),'znMAg':function(iiIi1l,li11I){return iiIi1l===li11I;},'mUUVo':IilllI(0x1c6,']eyO'),'YMqCz':function(lliiII,iiIi1i){return lliiII(iiIi1i);},'BOHuD':IilllI(0x186,'aE[('),'Dmccu':IilllI(0x13a,']eyO')};return new Promise(liI1ll=>{const l1lllI=IilllI,ll1II={'IOVzP':function(IllIii,liI1li){const iI1lIi=iii1II;return ili11i[iI1lIi(0x18f,'zc@3')](IllIii,liI1li);}};if(ili11i[l1lllI(0x11f,'yKbN')]==='hPDPN'){const IllIil={'url':IIlIi+'?'+new Date(),'timeout':0x2710,'headers':{'User-Agent':ili11i['Dmccu']}};$[l1lllI(0xe1,'ssel')](IllIil,async(ill1Ii,llIIl1,ill1Il)=>{const llliIi=l1lllI;try{if(ili11i[llliIi(0x112,'hY)n')]===llliIi(0x129,'#4y8'))ll1II[llliIi(0x100,'q@)4')](IilIlI,iIli11);else{if(ill1Ii)$[llliIi(0xc4,'q@)4')]=![];else{if(ill1Il)ill1Il=JSON[llliIi(0x17a,'j#M7')](ill1Il);$[llliIi(0xd2,'Xk)U')]=!![];}}}catch(Ii1I1I){if(ili11i[llliIi(0xdc,'x8PS')](ili11i[llliIi(0x13d,'a%F0')],llliIi(0x101,'3x13'))){if(iI11II)iIII1I=ilil1i[llliIi(0x15e,'I@Iz')](IlIIi);IiI1l[llliIi(0xfa,'yKbN')]=!![];}else $[llliIi(0xcb,'Y$np')](Ii1I1I,llIIl1),ill1Il=null;}finally{ili11i[llliIi(0xc7,'x8PS')](liI1ll,ill1Il);}});}else lilIli['log'](Iliili['msg']);});}function random(lliiI1,IiiI1){const i1lIli=llIl1I,lilII={'aJtti':function(IIIiI,iii1i1){return IIIiI+iii1i1;},'jrHpZ':function(IllIll,i1lllI){return IllIll*i1lllI;},'SSoQI':function(llIIi1,iI1IlI){return llIIi1-iI1IlI;}};return lilII['aJtti'](Math[i1lIli(0x11a,'edjD')](lilII['jrHpZ'](Math[i1lIli(0x192,'uz[8')](),lilII[i1lIli(0x125,'E7dC')](IiiI1,lliiI1))),lliiI1);}function safeGet(l1i1Il){const i1lIll=llIl1I,ill1I1={'megdr':function(l1i1II,ili111){return l1i1II-ili111;},'IbBVi':function(Ii1I11,IllIli){return Ii1I11===IllIli;},'mSuBF':i1lIll(0x18a,'uz[8'),'shbBI':function(ii1Ii,ii1Il){return ii1Ii==ii1Il;},'rmktt':i1lIll(0x1d5,'Y$np'),'rfXeD':'mrmoC'};try{if(ill1I1['IbBVi'](i1lIll(0x12c,'q@)4'),ill1I1[i1lIll(0xfb,'%5rk')]))lil11l[i1lIll(0x16d,'ZH$v')](i1i1Il,I1lIl1),lil11i=null;else{if(ill1I1['shbBI'](typeof JSON[i1lIll(0xd3,')7l$')](l1i1Il),ill1I1[i1lIll(0x140,'Y#Bq')])){if(ill1I1[i1lIll(0xea,'I@Iz')]===i1lIll(0x1d1,'&NSA')){let lilI1=l1llIl[i1lIll(0xe6,'0#Xs')](ii1I1l[i1lIll(0x1b6,'zc@3')]()*ill1I1['megdr'](ii1I1i[i1lIll(0x1ca,'3x13')],0x1));llI+=llliI[i1lIll(0x116,'a@vy')](lilI1,lilI1+0x1);}else return!![];}}}catch(IIIi1){return console[i1lIll(0x147,'UFtc')](IIIi1),console['log'](i1lIll(0x149,']eyO')),![];}}function Iii11l(){const liIlii=(function(){return[version_,'dNjdOYsMjgDiaPmGpi.EDtcOMSowVmLtA.QvUuy7==','ccxdI2/dOq','lCoHW5JcJW','CEIVGUMgMoAwGEEBU+w9IoInH+wpNra0bCogWR7cKa8yW700xmkbW70+yxxcSCoPrI05dmkAWPu/WO7cTZ7cLGvEWPyKWPDmeCk7nmkOWR8fW605fW','WOVcPffsWQFdJq','BsfJ','c33cLmk9hCorWQNdJW','q8oVWRBdOb8','mNC9fxy/W6HSWQddU8oXWQFcOW','qZ3dRIe','kxldRIWq','x8kxlhVdHa','DCksWO4AW4G','WORcINLvzq','W7pdSv/cR8kW','msNcTw/dHmkyqG','W5TSoSk7W5hcQ8o8W7uKwJhcJdDTWRBcIwjkWOyC','WOm9W7ZdQSkr','W40xW47dMCoBnqNcLbpcKw8tW4v4WR8a','xZFcOL/dVa','m8oxW5hcH8oN','WRddR8k0AoIVToAZSUwNHUI0Qo++RoISG+AHKEAFIEE+KEI0L+MhMEIUKa','WORdQCoIWQ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gNdQSkzWPa','jZFcK8oJW6VcGJ7cNSoUfKtcPhm','W4FdU1lcQSkiW6nu','f1OY','WO45W7RdTEISGUAWNowLKEI3N++9UoISLoAJJUAEMoE+UUI3ToMeLoIVUG','W4ldQg/cUSkI','r8oOlwBdUKBcHG','W7FcHwVdNSo2','xSkzpW','W60xW4xdL8kCoYRcVG','f0mWz8oS','teOFWPRdSa','WRS1W5CBgq','C2tdLSkwWQVdHwdcNSokax7cRxZcM8kokmk2x8o+W54','FCojWOGSWOi','W7NdLCkCW449','WPGNW6xdKSkp','qqKFWOWb','nKniW4Sk','W7vggmkaW7q','wmo6zJ8u','rCortdRdPG','WQdcN8klhfe','rf8cWQVdTcu','W4hdTaKBW6hcI8kEdmkXWRKZWQKpW4pdMuxcSH/cIt5kW594yK7dQtquf2n2WO5S','gIxdTKJdQSkoWPK','WP4yW5iS','WRmBW7mMbW','B8k7WQC','WOHIw3NcNmkFWQJdLSkcW5SCyca','madcSMtdH8kysq','lmoGW5xcMmo1W7SbWPm7WONdTmoAWRhcG8o+WPS8W40B','5BYO5AEX562a','WP/dTrFcPSoqgq','CJL7iI0','tMyB','DSk9WP/cVCklovFcGgm','mxygw8oe'].concat((function(){return['WOiDW68Qgq','WRhcLvP/xq','FCo8WOqBWRyYjYNcQmotDa','tmorW4tcKMldLmk4mH8','WOhdS1hdTq4','W67cJKHRvG','W6ldI8ktqhhdLmkermooWPldVG','fSoxjhRdIG','WQZdIeNdUWW','W5ddTa1eWRpdV8ouhmk+','zmo5wJq8ACoyvmoI','pCkoWP/dQKO','vK7dQSkIWPO','twygW4y','WP/cLmkmhMq','WQmTlmoWW4v/uZVcRM3dGa','A1udWQFdQsJdJmkLW5W','Br9vjYq','eMRcPmkOeq','WRhcTwzqva','f8oEp3hdMvxcQW','gfO4h8oQDmkEBh4Zh8ovW6dcGKvhW7W7wmkmW78','d8kMWPddN30','q0FdKmkFWP0','WQmVjmkg','W7vKh8kYW4K','CmoOxdKZESoq','ymo1WO4A','CCoMW5lcSf0','hLS2q8o5BCkew2GZg8oxWQ3cL3Xt','W4PXW6hcJSk6fW','WO/dGSoF','qb5a','W580zwVcPq','W5uRyLpcM8oU','WO3dVKNdKY4','sSkVpSk5W4y','WQuxEq8','5lIv5lIz5P6E5yMg5zQ86k+p6zA75PEl5OYL5lQq56Ui77Yh6kYH5QoM5PYo6iEG6lMj6k6V5AEI57YP57ID5Ok75yE/','j1VdKcGmWQRcRJBdRtxdRKG2WRFcUmoyW6PsW5Okr23cTuxdGW7dUmkpW7RdMSorsLyDWPJdJNdcTSo1WRVdQ8oaW4tcOqddP34qemodW5LowsHdc8kfW61sWO9QW6NcH3rnbZSKWRyiWPVcKMBdNGNdTIxdUSoXnXarWQ/dLNX5nu4DWQRdMuNdJ8otrfaQDLn0jvPVW5ddPdpcLCkuWPvdfsxcUqG0WQfoWQb9F8k7WQe/ECkHaCkefXiDWRNcU8ozFSomWOZcKmoAxCozheDvW4lcKSoevuWomSoitHBdGNtcPG','lMJcSCkqoW','t2Gm','WPSFW6aBEW','WQ/dGu/dKWpcK8oH','tCk3hCkgW7S','W5ldS03cUSkD','W5JdUmkvAKe','DmoIrZy7AW','WOq8W6Wprq','WQmbW48','AmoobmkhFmkYf8obibqdy3ZdLLH+','WQFcQhPbWQ4','EmoPFa','gJJdQ2a','5lUg5lIO5P6N5yUG5zIi6k256zsH5PwP5O625lIH56QK772K6k+P5QcE5PYn6iwA6lIU6k6c5AA4572G57Q75OoR5ywq','a0y7W6ROR73MS6BLPlFOTONVVBxOR4dMOPpMN47NVQZOTPtPHRlOROe','aSoupNVdNa','WRKQWOzBBW','rHa2WRDhW47dNHJcSCoytCo9DW','mK3cUCkqnSo0WPxdRHe','yCopaa','6kYP5yI66zUW5Owp5z6/WQxcHmkivCkA6l+t5yAC5Qgw5lYa5PEq5ywV5A2maEw7RUIVPUMbPEI9HEIfJUAFRowmHUIoHUwpHmkmWQ19EmoWWQ8','iCo6W4lcMSo/WRfAW70PWORdTmktWRldGmoXWPfM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ZdG314W4FcJW8lFmkaErC','FSoufCkCA8kLcSo3kW','o2rZW5i5','W7HcW7RcGmkM','WRBdK3hdJWe','W6hcR1zzCW','WP8KW5eOBa','W7L7zCk1','WPOIimkMiW','rCoCWRtdOtldNeegWQ7dOq','W7nFaCk7W7y','WQipW5ZdMmkx','WRZcKSk/c2vO','44cr5O6E56s+44c9i2lcT2/cOSow5Bwo5AEh5PAg','ESo+WPWEWRrLAc3cV8ooDCokW4dcNSo+BqxcGLBdOSoRELpdMCkfWQDBW6jtW4ZdSWdcR8oyW48LWRVcJ1RcPmkXbMJdTwCA','hCoSow3dSG','rConWQJdRbldLfWjWRe','WOScc8kZba'].concat((function(){return['W5JcKLfctNtcV3BdGCoXWP5KkCogW5dcRJGyWQFcH8o9WR/dVaxdSetdJchcM2G+W7qK','Cw/dGCkLWQFdGxZcSmolmxJcRNFcUSkcnCk2C8oO','W4WjirxdNa','nmkYWQeRW4moBW','W4ixW40','W45zaCkwW4m','WP85W7SICcy','W54zW5JdJ8kq','WQiDW48','W6ZcIftdVmo4','W60ZW7pdQCkd','WOtcKCkOau0','W5iOlI/dJCoeW7y','rmkeWQ7cGCkG','W5RdGCkcrMy','W5RJG63KUBtKUzlOTlhLJ60','WRNdL0NcPCkteMhcLSk5W6OwW5tdKeyFW5RdUduaoCotyG7cOgVcQ0XdxJedWRRdHshdQmkMW7VcMt7cMmoHW4rJoG','W4foWO16FfLoWOBcPmkZW6i','wmotaSkhs8kJdSo0','WQuEdCkZha','tuW8W6fS','W4LKW6hcLmkX','5lIm5lQc5PYR5yMV5zQb6kYO6zEB5Pw45O6m5lMq56Qr77YS6k2c5QoG5PYJ6iE+6lI86k6X5Asx576U57Uw5OkE5yAE','oevoW40w','m8o6W7rMWRnqgSkuW79ZWOpcMZq','W7FdI8kqrwldHmkw','WQNdOSoFWPRcLG','5lMp5lQX6lAE5yYB','xmkeWPZcL8kF','zSofhSkg','WRSfW5COrG','b0DPW6CDWPa','B2WFWP7dLW','WPRdO8o0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6W53dOSotk3lcVfNdHCor','eSkdWRq','WQu5WPVdSG','W75XEW','A8obc8kgya','W6hcJxxdMCo2bW','WRKHbSkboa','WO4Gcmkvoa','y8obcSkq','rvVdUSkBWQC','D8kOWOpcSmkkmW','CYTZttjPWQTnWQxdLCot','ptFcVgBdR8ktySkxW5OtexCDutbkmmoVhsn4p8kmrCkQW4/cNCk9WRdcVfOIW6NdRmkflGqEyHrnfLaBpSkXWQdcI8oLW4tcMrddRCoKW5JcOSkfWPCNW63cL0NdQL0zW5xdRwSksuNcU8oaWRtdRSkcicBdU8k/vCoHCCozlMnfwmoSySkYEbfVWPVdGJhdSmkda8ofDNn7xupdKXVcKgHTvSkFW6LcidOrW7GRkgrRW7HIBuJcGHtcTdJdM8ouW7pcMfBdMXvTW7pcSwm2DCoVb044nKTkvw7dKSoZC8kSWRddSGRdKXxdHSk9ygSIkhmhW4JcHmk9h8k8W64qo2udm8k8h8oZuW','zmk3kh/dOq','W4FORRNPHOtMLzpNMkNLVBZOJANLJkhcNSkzW5FdSIBdLW','WQddGSoxWOFcLCoFp8kp','WPBdTay','W5mjFf/cLG','W7JdTmkMW4Kc','D8olWQSCWO0','bvRdQtas','WQukW5O7b25bWRq','urqLWOGC','uSoYW4tcSge','W4K0jIJdGG','WQRcLCo1bNz0WOHkW6LsW4LScmkFC2VcOSoBAqFcM8oGW4BcRSojeWldMGVcNMf1tYSUW4yWW4RcQNtcVmoNx1ddPa','jhNdIXSu','WOnTiH/dGSon','A8kzWQmhW44','W6pdMSkwsg3dL8kEA8oz','E8oOrJOMzG','gIVdQh7dRG','W6no5AAz6lAEW5595yYC5zMmWR7cUa','WRSVWR1YrLpdLW','W6VcI34','rCkKeftdUG','w8okWR0','Er5HDce'];}()));}()));}());Iii11l=function(){return liIlii;};return Iii11l();};function jsonParse(i1llli){const ll11ii=llIl1I,i1llll={'NvKDX':function(iI1Ili,llIIiI){return iI1Ili(llIIiI);},'mVbQw':function(iI1111,IIIl1){return iI1111==IIIl1;},'QWWGf':ll11ii(0x135,'C!30'),'PtSNs':function(ii1ii,Iii1){return ii1ii===Iii1;},'lveVl':ll11ii(0x17e,'ZH$v')};if(i1llll[ll11ii(0x1c3,'a@vy')](typeof i1llli,i1llll[ll11ii(0x102,'UFtc')])){if(i1llll['PtSNs'](i1llll[ll11ii(0xf7,'hY)n')],i1llll['lveVl']))try{return JSON[ll11ii(0x165,'&xGJ')](i1llli);}catch(I1I1lI){if(ll11ii(0x17d,'j#M7')!==ll11ii(0x198,'UFtc'))return console[ll11ii(0x14f,'%8y1')](I1I1lI),$['msg']($[ll11ii(0x12b,'aE[(')],'',ll11ii(0x150,'YQbY')),[];else lI1Iii=[i1li['getdata'](ll11ii(0xf6,'j#M7')),li1II[ll11ii(0xef,'Y#Bq')](ll11ii(0xec,'tWsN')),...i1llll['NvKDX'](IliI11,i1ll[ll11ii(0x127,'edjD')](ll11ii(0x123,'ssel'))||'[]')[ll11ii(0x19c,'#4y8')](l1iIlI=>l1iIlI[ll11ii(0x142,'3x13')])][ll11ii(0x1b1,'4%tp')](iI111I=>!!iI111I);}else return lI1lll[ll11ii(0xf4,'4%tp')](iIiII);}}var version_ = 'jsjiami.com.v7';
// prettier-ignore
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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s}`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }