mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
17 lines
44 KiB
JavaScript
17 lines
44 KiB
JavaScript
/*
|
||
东东农场快速浇水
|
||
环境变量:FRUIT_PLANT_LEVEL // 自动种植的作物等级(正整数),默认为2
|
||
FRUIT_WATERING_NOTIFY // 是否推送通知(true/false),默认不推送
|
||
FRUIT_WATERING_PIN // 指定PIN账号浇水,多个用 & 隔开
|
||
|
||
每月或每周只能领2次红包,由于常规浇水太慢,脚本优先使用快速浇水卡
|
||
|
||
cron:1 1 1 1 * jd_fruit_watering.js
|
||
|
||
*/
|
||
|
||
const $ = new Env('东东农场快速浇水')
|
||
var iil='jsjiami.com.v7';const liiI1i=iii1II;(function(ii1ill,II1iI,llI1II,lIli1l,lillIi,illIi1,ii1ili){return ii1ill=ii1ill>>0x5,illIi1='hs',ii1ili='hs',function(liil1i,lI1lil,i1l1iI,liil1l,lI1lii){const iIIiiI=iii1II;liil1l='tfi',illIi1=liil1l+illIi1,lI1lii='up',ii1ili+=lI1lii,illIi1=i1l1iI(illIi1),ii1ili=i1l1iI(ii1ili),i1l1iI=0x0;const Iiili1=liil1i();while(!![]&&--lIli1l+lI1lil){try{liil1l=-parseInt(iIIiiI(0x1b1,'gUB['))/0x1+parseInt(iIIiiI(0x159,'B[vv'))/0x2+-parseInt(iIIiiI(0x1dc,'bg(6'))/0x3*(parseInt(iIIiiI(0xf4,'SFB7'))/0x4)+-parseInt(iIIiiI(0x1ce,'S4Ba'))/0x5*(parseInt(iIIiiI(0x103,'Tc0m'))/0x6)+parseInt(iIIiiI(0x164,'SFB7'))/0x7*(-parseInt(iIIiiI(0xe9,'#0!g'))/0x8)+-parseInt(iIIiiI(0x211,'He&s'))/0x9*(-parseInt(iIIiiI(0x288,'I%Vs'))/0xa)+parseInt(iIIiiI(0x1a1,'sT]['))/0xb;}catch(Iil1l1){liil1l=i1l1iI;}finally{lI1lii=Iiili1[illIi1]();if(ii1ill<=lIli1l)i1l1iI?lillIi?liil1l=lI1lii:lillIi=lI1lii:i1l1iI=lI1lii;else{if(i1l1iI==lillIi['replace'](/[QDWNrgOptPuSyUdxnhFYk=]/g,'')){if(liil1l===lI1lil){Iiili1['un'+illIi1](lI1lii);break;}Iiili1[ii1ili](lI1lii);}}}}}(llI1II,II1iI,function(i1i11I,il1iIl,iii1ii,il1iIi,iii1il,II11li,I1l11i){return il1iIl='\x73\x70\x6c\x69\x74',i1i11I=arguments[0x0],i1i11I=i1i11I[il1iIl](''),iii1ii=`\x72\x65\x76\x65\x72\x73\x65`,i1i11I=i1i11I[iii1ii]('\x76'),il1iIi=`\x6a\x6f\x69\x6e`,(0x159f9f,i1i11I[il1iIi](''));});}(0x19a0,0xe164b,Iii11l,0xcf),Iii11l)&&(iil=liiI1i(0x174,'fzI!'));const jdCookie=require(liiI1i(0x242,'He&s')),notify=require(liiI1i(0x17a,'txF@')),common=require(liiI1i(0x1a8,'SFB7')),{H5st}=require(liiI1i(0x1a7,'Ux)#')),FRUIT_PLANT_LEVEL=process[liiI1i(0x276,'k![b')]['FRUIT_PLANT_LEVEL']||'2',isNotify=process['env'][liiI1i(0xea,'SFB7')]===liiI1i(0x224,'KQyc'),PinArr=process[liiI1i(0x21b,'Tc0m')][liiI1i(0x198,'QWFe')]?process['env'][liiI1i(0x1e5,'haP4')]['split']('&'):'';console[liiI1i(0x143,'pOgc')](''),console[liiI1i(0x1bc,'bg(6')](liiI1i(0x22b,'S4Ba')+$[liiI1i(0x134,'IKY3')]+'变量说明=========='),console['log']('FRUIT_PLANT_LEVEL\x20//\x20自动种植的作物等级(正整数)'),console[liiI1i(0x1cf,'BiiY')](liiI1i(0x246,'haP4')),console['log'](liiI1i(0x179,'FAmv')),console[liiI1i(0x275,'cvWH')](liiI1i(0x192,'goqf')+$[liiI1i(0x15e,'zLIJ')]+liiI1i(0x187,'aX3C')),console['log']('');let cookie='';const cookiesArr=Object['keys'](jdCookie)[liiI1i(0x1ae,'haP4')](ll1=>jdCookie[ll1])['filter'](iI1llI=>iI1llI);!cookiesArr[0x0]&&($[liiI1i(0x260,'T!#)')]($['name'],liiI1i(0x22a,'@o2C')),process[liiI1i(0xfc,'C@S!')](0x1));let rs_wait=0x1,waitTimes=parseInt(rs_wait)*0x3e8,uuid=randomString(0x28),addressid=randomString(0xa,'123456789'),sid=randomString(0x20,liiI1i(0x17d,'2O[G')),area=randomString(0x1,'1234567890')+'-'+randomString(0x5,'1234567890')+'-'+randomString(0x5,'1234567890')+'-'+randomString(0x1,liiI1i(0xeb,'9HJc')),lng=liiI1i(0x279,'SFB7')+Math[liiI1i(0x129,'A4yY')](Math['random']()*0x383+0x64),lat=liiI1i(0xff,'!SmT')+Math[liiI1i(0x1e7,'txF@')](Math['random']()*0x383+0x64);function iii1II(_0x3b9331,_0x449ffe){const _0x4405e3=Iii11l();return iii1II=function(_0x3c0639,_0x5d0709){_0x3c0639=_0x3c0639-0xdb;let _0x5ad134=_0x4405e3[_0x3c0639];if(iii1II['EbEPQX']===undefined){var _0x4f29db=function(_0x44788d){const _0x5ac7af='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x38a755='',_0x582bdf='';for(let _0x1bb45f=0x0,_0x195bee,_0x4a0735,_0x242875=0x0;_0x4a0735=_0x44788d['charAt'](_0x242875++);~_0x4a0735&&(_0x195bee=_0x1bb45f%0x4?_0x195bee*0x40+_0x4a0735:_0x4a0735,_0x1bb45f++%0x4)?_0x38a755+=String['fromCharCode'](0xff&_0x195bee>>(-0x2*_0x1bb45f&0x6)):0x0){_0x4a0735=_0x5ac7af['indexOf'](_0x4a0735);}for(let _0xfc13f5=0x0,_0x317f2a=_0x38a755['length'];_0xfc13f5<_0x317f2a;_0xfc13f5++){_0x582bdf+='%'+('00'+_0x38a755['charCodeAt'](_0xfc13f5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x582bdf);};const _0x2ed08c=function(_0x2ebeb6,_0x4e6225){let _0x4907bb=[],_0x5deabc=0x0,_0x4acb55,_0x43f5d2='';_0x2ebeb6=_0x4f29db(_0x2ebeb6);let _0xca0d3e;for(_0xca0d3e=0x0;_0xca0d3e<0x100;_0xca0d3e++){_0x4907bb[_0xca0d3e]=_0xca0d3e;}for(_0xca0d3e=0x0;_0xca0d3e<0x100;_0xca0d3e++){_0x5deabc=(_0x5deabc+_0x4907bb[_0xca0d3e]+_0x4e6225['charCodeAt'](_0xca0d3e%_0x4e6225['length']))%0x100,_0x4acb55=_0x4907bb[_0xca0d3e],_0x4907bb[_0xca0d3e]=_0x4907bb[_0x5deabc],_0x4907bb[_0x5deabc]=_0x4acb55;}_0xca0d3e=0x0,_0x5deabc=0x0;for(let _0xca4979=0x0;_0xca4979<_0x2ebeb6['length'];_0xca4979++){_0xca0d3e=(_0xca0d3e+0x1)%0x100,_0x5deabc=(_0x5deabc+_0x4907bb[_0xca0d3e])%0x100,_0x4acb55=_0x4907bb[_0xca0d3e],_0x4907bb[_0xca0d3e]=_0x4907bb[_0x5deabc],_0x4907bb[_0x5deabc]=_0x4acb55,_0x43f5d2+=String['fromCharCode'](_0x2ebeb6['charCodeAt'](_0xca4979)^_0x4907bb[(_0x4907bb[_0xca0d3e]+_0x4907bb[_0x5deabc])%0x100]);}return _0x43f5d2;};iii1II['gJPDFQ']=_0x2ed08c,_0x3b9331=arguments,iii1II['EbEPQX']=!![];}const _0x6aec46=_0x4405e3[0x0],_0x4dcbfd=_0x3c0639+_0x6aec46,_0x24a4e0=_0x3b9331[_0x4dcbfd];return!_0x24a4e0?(iii1II['QmKCYG']===undefined&&(iii1II['QmKCYG']=!![]),_0x5ad134=iii1II['gJPDFQ'](_0x5ad134,_0x5d0709),_0x3b9331[_0x4dcbfd]=_0x5ad134):_0x5ad134=_0x24a4e0,_0x5ad134;},iii1II(_0x3b9331,_0x449ffe);}!(async()=>{const ililIi=liiI1i,llliii={'zeABp':function(IllI11,l1llIi){return IllI11(l1llIi);},'GTIwW':ililIi(0x25f,'9GV*'),'zxhFo':function(II1llI,i11I11){return II1llI+i11I11;},'EEMZa':function(l1llIl){return l1llIl();},'OUJtA':function(ii1I1l,ii1I1i,llI){return ii1I1l(ii1I1i,llI);},'NvCKV':function(llliI,iI1li1){return llliI+iI1li1;},'BRYQe':function(lllii1,liIli){return lllii1*liIli;},'OXDiT':ililIi(0x1ad,'@o2C'),'cGMnW':ililIi(0x163,'cJte'),'vevLG':function(liIll,IilIi1){return liIll*IilIi1;}};notify['config']({'title':$[ililIi(0x1c3,'P(hT')]}),console[ililIi(0x118,'!Gq0')](ililIi(0x1d0,'BiiY'));for(let iI1liI=0x0;iI1liI<cookiesArr[ililIi(0x19d,'sT][')];iI1liI++){if(cookiesArr[iI1liI]){cookie=cookiesArr[iI1liI],$[ililIi(0x1ef,'txF@')]=llliii['zeABp'](decodeURIComponent,common[ililIi(0x1f7,'txF@')](cookie,llliii['GTIwW'])),$['index']=llliii[ililIi(0x23d,'#0!g')](iI1liI,0x1),$[ililIi(0xe6,'IKY3')]='',$['message']=notify['create']($['index'],$[ililIi(0x1df,'C@S!')]),$['UA']=common[ililIi(0x1c7,'He&s')]($[ililIi(0x10b,'sQ^m')]);if(PinArr){if(PinArr['includes'](encodeURIComponent($[ililIi(0x13d,'a@Fw')])))console['log'](ililIi(0x1a0,'jPP9')+$['index']+'】'+($[ililIi(0x185,'QWFe')]||$[ililIi(0x140,'AG^&')])+ililIi(0x1bb,'AG^&')),await llliii[ililIi(0x1ac,'cJte')](Main),await $['wait'](llliii[ililIi(0xe8,'He&s')](parseInt,llliii['NvCKV'](llliii[ililIi(0x209,'k![b')](waitTimes,0x2),0x3e8),0xa));else{if(llliii[ililIi(0x216,'haP4')]===llliii['OXDiT'])continue;else li1I1[ililIi(0x1ea,'a@Fw')](ililIi(0x114,'a@Fw')),i1ilil[ililIi(0x170,'AG^&')](lilIii);}}else ililIi(0x158,'jPP9')!==llliii['cGMnW']?(console[ililIi(0xef,'Tc0m')]('\x0a******开始【京东账号'+$[ililIi(0x1b0,'I%Vs')]+'】'+($[ililIi(0x1b8,'aX3C')]||$['UserName'])+'******\x0a'),await llliii[ililIi(0x27e,'D@e7')](Main),await $[ililIi(0x201,'9HJc')](llliii[ililIi(0x228,'bg(6')](parseInt,llliii[ililIi(0x137,'He&s')](llliii[ililIi(0x21f,'2O[G')](waitTimes,0x2),0x3e8),0xa))):(l1i111[ililIi(0x275,'cvWH')](iliII1),II11I1&&(lI1Ill['outFlag']=!![],lI1Ili[ililIi(0x21c,'sT][')]&&iIIl11[ililIi(0x1e9,'haP4')]['fix'](l1l1I1)));}}isNotify&¬ify[ililIi(0x247,'txF@')]()&&(notify[ililIi(0x18b,'SFB7')](notify['content']),await notify[ililIi(0x122,'A4yY')]());})()[liiI1i(0x157,'SFB7')](IilIiI=>$[liiI1i(0xe2,'cJte')](IilIiI))[liiI1i(0xe3,'gUB[')](()=>$[liiI1i(0x267,'I%Vs')]());async function Main(){const lilIIl=liiI1i,i1i1I1={'pjWbs':lilIIl(0x208,'&v(!'),'dRASw':function(IiI11,lli){return IiI11(lli);},'ChkbB':function(liIlI,lll){return liIlI*lll;},'dxGhl':function(llli1,iIli1i){return llli1/ iIli1i;},'VaCsG':function(iI1lii,IilIii){return iI1lii-IilIii;},'cuWbn':function(iI1lil,l1lIi1){return iI1lil===l1lIi1;},'bhChc':lilIIl(0x206,']ovQ'),'SmPsl':function(iIli1l){return iIli1l();},'ndmZb':function(i1i1II,liiIIl){return i1i1II*liiIIl;},'gUQsq':function(iil1iI,IlIllI){return iil1iI===IlIllI;},'tBaaM':function(il1i1I){return il1i1I();},'pKTzN':function(lI1li1,iI11II){return lI1li1===iI11II;},'dvFEw':lilIIl(0xe0,'QWFe'),'tTOkP':function(iIII1I,ilil1i){return iIII1I+ilil1i;},'zJuOO':function(IlIIi,IiI1l){return IlIIi>=IiI1l;},'atNtD':lilIIl(0x127,'&wJj'),'vziOi':function(illlII,iIII11){return illlII>iIII11;},'rbSrV':function(IiI1i,llll1){return IiI1i(llll1);},'mrLKf':function(lil11l,i1i1Il){return lil11l(i1i1Il);},'AeKfX':function(I1lIl1,lil11i){return I1lIl1/lil11i;},'zjAlY':function(IlIIl,lI1liI){return IlIIl<lI1liI;},'cKDPl':lilIIl(0x1f5,'zLIJ'),'SxKvC':lilIIl(0x12c,'!Gq0'),'iVSlk':function(i1i1Ii,lllii){return i1i1Ii(lllii);},'gxfgo':lilIIl(0x18c,'gUB['),'buxup':function(iI11Ii,iIII1l){return iI11Ii!==iIII1l;},'zaPSx':lilIIl(0x186,'sT]['),'VFXlO':lilIIl(0x226,'2O[G'),'mVhRv':function(lllil){return lllil();},'GTsru':function(iI11Il,iIII1i){return iI11Il>=iIII1i;},'EhniH':'toGoG','NSpQO':lilIIl(0x13c,'BiiY'),'cwstL':lilIIl(0x17e,'!Gq0'),'AlaHO':function(iil1i1){return iil1i1();},'zqAJh':lilIIl(0x148,'Tc0m'),'yfShw':lilIIl(0x10e,'9HJc'),'WbWnH':function(il1i11,IlIll1){return il1i11===IlIll1;},'KOEJS':function(IlIII,ilil1l){return IlIII===ilil1l;},'GOnwm':lilIIl(0x18a,'[7KZ'),'ElCRS':function(illlIi,I1lIii){return illlIi===I1lIii;},'iezVJ':function(IiI1I,illlIl){return IiI1I>=illlIl;},'QJPyg':function(i11ill){return i11ill();}};let IlII1=![];try{const IIIIIi=await common[lilIIl(0x23a,'gUB[')](cookie);if(!IIIIIi&&i1i1I1[lilIIl(0x12d,'!SmT')](typeof IIIIIi,i1i1I1['bhChc'])){console['log'](lilIIl(0x188,'[7KZ'));return;}await i1i1I1[lilIIl(0x265,'haP4')](initForFarm);if($[lilIIl(0x1d5,'S4Ba')]?.[lilIIl(0x1b5,'AG^&')]){if($['farmInfo']?.[lilIIl(0x1c5,'cJte')]===0x2||i1i1I1[lilIIl(0x257,'pOgc')]($[lilIIl(0x138,'9HJc')]?.[lilIIl(0x264,'gUB[')],0x3)){await i1i1I1[lilIIl(0x259,'@o2C')](autoCrop);return;}else{if($[lilIIl(0x11c,'[7KZ')]?.[lilIIl(0x151,'#0!g')]===0x1)console[lilIIl(0xde,'0&gr')](lilIIl(0x271,'pOgc')+$[lilIIl(0x214,'gUB[')]?.[lilIIl(0x234,'&v(!')]?.['name']+'(等级'+$[lilIIl(0x115,'zLIJ')]?.['farmUserPro']?.['prizeLevel']+lilIIl(0x1c2,'Vwy@')+i1i1I1[lilIIl(0x200,'QWFe')](i1i1I1[lilIIl(0x167,'a@Fw')]($[lilIIl(0x269,'jPP9')]?.[lilIIl(0x14a,'9GV*')]?.[lilIIl(0x1f8,'9HJc')],$['farmInfo']?.[lilIIl(0xfd,'sQ^m')]?.[lilIIl(0x26a,'cJte')]),0x64)[lilIIl(0x1ed,'QWFe')](0x2)+'%,已浇水'+$['farmInfo']?.['farmUserPro']?.[lilIIl(0x154,'C@S!')]/0xa+lilIIl(0x145,'FAmv')+i1i1I1['dxGhl'](i1i1I1[lilIIl(0x1ab,'FAmv')]($[lilIIl(0x214,'gUB[')]?.['farmUserPro']?.[lilIIl(0x277,'He&s')],$['farmInfo']?.[lilIIl(0x27c,'QWFe')]?.['treeEnergy']),0xa)+'次)');else i1i1I1[lilIIl(0x1f3,'BiiY')]($[lilIIl(0xf9,'BiiY')]?.['treeState'],0x0)&&await i1i1I1[lilIIl(0x160,']ovQ')](autoPlant);}}else{console[lilIIl(0x235,'zLIJ')](lilIIl(0xf1,'cJte')+JSON[lilIIl(0x105,'haP4')]($[lilIIl(0x136,'pOgc')]));return;}let IIIIIl=$['farmInfo']?.[lilIIl(0x261,'aX3C')]?.[lilIIl(0x1c4,'uK%F')]||0x0;console[lilIIl(0x27a,'P(hT')]('目前共有水滴\x20'+IIIIIl+'g💧'),await myCardInfoForFarm();const {fastCard:I1lIil,doubleCard:IIIl1i,beanCard:liiII1,signCard:IIIl1l}=$[lilIIl(0x191,']ovQ')];console['log']('快速浇水卡\x20'+(i1i1I1[lilIIl(0x102,'A4yY')](I1lIil,-0x1)?i1i1I1[lilIIl(0xdd,'!SmT')]:i1i1I1[lilIIl(0x144,'fzI!')](I1lIil,lilIIl(0x1d6,'A4yY')))+'\x0a');if(IIIIIl<0xa){console[lilIIl(0x118,'!Gq0')](lilIIl(0xec,'txF@'));return;}if(i1i1I1[lilIIl(0x24c,'He&s')](IIIIIl,0x64)&&$[lilIIl(0x15f,'FAmv')]?.[lilIIl(0x263,'IKY3')]>0x0){if(i1i1I1[lilIIl(0x190,'2O[G')](i1i1I1[lilIIl(0x182,'@o2C')],lilIIl(0x165,'a@Fw'))){let lllll=i1i1I1['vziOi'](i1i1I1[lilIIl(0x281,'a@Fw')](parseInt,i1i1I1[lilIIl(0x130,'T!#)')](IIIIIl,0x64)),$[lilIIl(0x25c,'QWFe')]?.[lilIIl(0x26b,'BiiY')])?$[lilIIl(0x220,'cJte')]?.[lilIIl(0x1fc,'uK%F')]:i1i1I1[lilIIl(0x189,'A4yY')](parseInt,i1i1I1[lilIIl(0x1f1,'uK%F')](IIIIIl,0x64));for(let i11ili=0x0;i1i1I1['zjAlY'](i11ili,lllll);i11ili++){if(i1i1I1['cKDPl']===i1i1I1[lilIIl(0x117,'zLIJ')])iliIIl[lilIIl(0x1f2,'I%Vs')]('当前没有种植新的水果,指定的等级'+Ii1iIl+lilIIl(0xe1,'&v(!'));else{await i1i1I1[lilIIl(0x286,'cvWH')](userMyCardForFarm,i1i1I1['gxfgo']);if(i1i1I1[lilIIl(0x238,'A4yY')]($[lilIIl(0x120,'&v(!')]?.['code'],'0')){IIIIIl-=0x64;if($[lilIIl(0x168,'t(FI')]?.['treeFinished']){IlII1=!![],console[lilIIl(0x1fa,'haP4')](lilIIl(0x284,'Tc0m')+IIIIIl+lilIIl(0x274,'Ux)#'));break;}else i1i1I1[lilIIl(0xdf,'AG^&')](lilIIl(0x18d,'Tc0m'),i1i1I1['zaPSx'])?IlI1i1[lilIIl(0x262,'2O[G')][lilIIl(0x25d,'&wJj')](l1lIl1):console[lilIIl(0x143,'pOgc')]('已使用快速浇水卡,剩余'+IIIIIl+lilIIl(0x132,'AG^&'));await $['wait'](0x1f4);}else{console[lilIIl(0x1a5,'D@e7')](''+JSON[lilIIl(0x10d,'SFB7')]($['userMyCardRes'])),console[lilIIl(0x283,'S4Ba')](i1i1I1[lilIIl(0x232,'uK%F')]);break;}}}if(IlII1){await initForFarm(),await i1i1I1['mVhRv'](autoCrop);return;}}else i1iliI['log'](lilIIl(0x221,'!SmT')+I1iIii+lilIIl(0x128,'cJte'));}if(i1i1I1[lilIIl(0x205,'#0!g')](IIIIIl,0xa)){if(i1i1I1[lilIIl(0x1e0,']ovQ')]===i1i1I1['NSpQO'])i1lI[lilIIl(0x25b,'jPP9')](lilIIl(0x1d3,']ovQ')+IlI1l[lilIIl(0x1e8,'FAmv')]?.[lilIIl(0x16f,'sQ^m')]+'g💧\x0a');else{do{if(lilIIl(0x116,'sT][')!==i1i1I1['cwstL']){await i1i1I1[lilIIl(0x166,'C@S!')](waterGoodForFarm);$[lilIIl(0x203,'jPP9')]?.[lilIIl(0xf2,'@o2C')]&&(IIIIIl=$[lilIIl(0x1be,'a@Fw')]?.[lilIIl(0x1aa,'&v(!')]||0x0);if(i1i1I1[lilIIl(0x285,'KQyc')]($[lilIIl(0x10c,'QWFe')]?.['code'],'0')){if(lilIIl(0x222,'9GV*')!==i1i1I1[lilIIl(0x12a,'P(hT')]){if($[lilIIl(0x255,'cvWH')]?.['finished']){IlII1=!![],console[lilIIl(0x161,'FAmv')]('已浇水10g,剩余'+$['waterResult']?.['totalEnergy']+'g💧(作物已成熟)');break;}else{if(i1i1I1[lilIIl(0x1cc,'jPP9')]===i1i1I1[lilIIl(0xfe,'AG^&')]){if(i1i1I1[lilIIl(0x27b,'2O[G')]($[lilIIl(0x199,'T!#)')]?.[lilIIl(0x172,'B[vv')],0x0)&&i1i1I1[lilIIl(0x1de,'AG^&')]($[lilIIl(0x12b,'sT][')]?.[lilIIl(0x215,'txF@')],0xa))await gotStageAwardForFarm('1'),$[lilIIl(0x1dd,'gUB[')]?.[lilIIl(0x13b,'D@e7')]==='0'&&console[lilIIl(0x21d,'IKY3')](lilIIl(0x1b2,'cJte')+$[lilIIl(0x14b,'uK%F')]?.[lilIIl(0x24b,'txF@')]+lilIIl(0x248,'D@e7'));else{if(i1i1I1[lilIIl(0x1a2,'He&s')]($[lilIIl(0x1bd,'[7KZ')]?.['waterStatus'],0x1)){await gotStageAwardForFarm('2');if(i1i1I1['WbWnH']($[lilIIl(0x273,'9HJc')]?.[lilIIl(0x16c,'He&s')],'0')){if(i1i1I1['KOEJS'](i1i1I1[lilIIl(0x11e,'T!#)')],i1i1I1['GOnwm']))console[lilIIl(0x283,'S4Ba')](lilIIl(0x15c,'uK%F')+$[lilIIl(0x1dd,'gUB[')]?.['addEnergy']+lilIIl(0x1da,'haP4'));else{IliI11['log']('水滴不足');return;}}}else $[lilIIl(0x1be,'a@Fw')]?.[lilIIl(0x12f,'gUB[')]===0x2&&(await i1i1I1[lilIIl(0x1d8,'bg(6')](gotStageAwardForFarm,'3'),$[lilIIl(0x24e,'Tc0m')]?.['code']==='0'&&(i1i1I1[lilIIl(0x223,'2O[G')]('CPbPz',lilIIl(0x181,'IKY3'))?(Ii1iII=i1i1I1[lilIIl(0x141,'B[vv')],l1i11I='https://api.m.jd.com/client.action?functionId='+II11II+lilIIl(0x1ca,'k![b')+i1i1I1['dRASw'](Ii1iI1,lilIli['stringify'](Iliili))+'&appid=wh5'):console[lilIIl(0x21e,'2O[G')](lilIIl(0xf0,'T!#)')+$[lilIIl(0x241,'SFB7')]?.[lilIIl(0xed,'#0!g')]+'g💧')));}console[lilIIl(0x249,'sT][')]('已浇水10g,剩余'+$[lilIIl(0x270,'Vwy@')]?.['totalEnergy']+'g💧');}else II1Il[lilIIl(0x143,'pOgc')](lilIIl(0x153,'Vwy@')+lilIlI['farmInfo']?.[lilIIl(0x254,'C@S!')]?.['name']+lilIIl(0x252,'qsKS')+iIIIIi[lilIIl(0x115,'zLIJ')]?.[lilIIl(0x18e,'2O[G')]?.['prizeLevel']+lilIIl(0x126,'cJte')+i1i1I1[lilIIl(0x14e,'C@S!')](i1i1I1[lilIIl(0x130,'T!#)')](iii1I1[lilIIl(0x26f,'k![b')]?.[lilIIl(0x261,'aX3C')]?.['treeEnergy'],II1Ii[lilIIl(0x13f,'bg(6')]?.[lilIIl(0x250,'cJte')]?.['treeTotalEnergy']),0x64)[lilIIl(0x131,'t(FI')](0x2)+lilIIl(0x14d,'0&gr')+i1ii[lilIIl(0x24d,'B[vv')]?.['farmUserPro']?.['treeEnergy']/0xa+lilIIl(0x108,'k![b')+i1i1I1['VaCsG'](I1iIl1[lilIIl(0x147,'KQyc')]?.[lilIIl(0xe5,'#0!g')]?.[lilIIl(0x1c0,'KQyc')],i1il[lilIIl(0xdc,'T!#)')]?.[lilIIl(0x236,'IKY3')]?.[lilIIl(0x256,'T!#)')])/0xa+'次)');}await $['wait'](0x1f4);}else ll1iI+=iI1lll[l1lIll['floor'](i1i1I1['ChkbB'](I1l1II[lilIIl(0x27f,'@o2C')](),IIli1I[lilIIl(0x19e,'P(hT')]))];}else{console['log'](''+JSON['stringify']($[lilIIl(0x22e,'I%Vs')])),console[lilIIl(0xde,'0&gr')](i1i1I1[lilIIl(0x219,'a@Fw')]);break;}}else Iliil1[lilIIl(0x161,'FAmv')](lilIIl(0x1a4,']ovQ'));}while(i1i1I1[lilIIl(0x1ec,'t(FI')](IIIIIl,0xa));if(IlII1){await i1i1I1[lilIIl(0x169,'9HJc')](initForFarm),await i1i1I1[lilIIl(0x1e6,'SFB7')](autoCrop);return;}}}}catch(Ill11){console[lilIIl(0x233,'txF@')](lilIIl(0x111,'He&s')),$[lilIIl(0x10a,'Tc0m')](Ill11);}}async function autoPlant(){const ililIl=liiI1i,liiIII={'Wqiai':function(iI11I1,il1i1l){return iI11I1===il1i1l;},'woQlS':'YcIUT','eOdoA':function(IlIlll,IIIl1I){return IlIlll(IIIl1I);},'pSgEm':function(iil1ii,IlIlli){return iil1ii===IlIlli;},'nneGL':'HQIKF'},li1i11=$[ililIl(0x20f,'uK%F')]?.[ililIl(0x13e,'QWFe')];if(li1i11){const il1i1i=$[ililIl(0x239,'C@S!')]?.[ililIl(0x229,'#0!g')][FRUIT_PLANT_LEVEL];if(il1i1i&&il1i1i[ililIl(0x19d,'sT][')]){if(liiIII[ililIl(0xfb,'@o2C')](liiIII['woQlS'],'epGYL'))iliIII[ililIl(0x125,'uK%F')](ililIl(0x20c,'IKY3')+iIIl1i+'的'+I1lllI[ililIl(0x196,'BiiY')]?.['farmUserPro'][ililIl(0x134,'IKY3')]+'\x0a');else{const i11ilI=il1i1i[Math['floor'](Math['random']()*il1i1i['length'])];await liiIII[ililIl(0x1a3,'IKY3')](choiceGoodsForFarm,i11ilI['type']),liiIII['Wqiai']($[ililIl(0x240,'I%Vs')]['code']*0x1,0x0)?console['log']('当前没有种植新的水果,已自动种植等级'+FRUIT_PLANT_LEVEL+'的'+$[ililIl(0x1c1,'SFB7')]?.['farmUserPro']['name']+'\x0a'):console[ililIl(0x23c,'&wJj')](ililIl(0x19f,'A4yY'));}}else console[ililIl(0x23c,'&wJj')](ililIl(0x197,'t(FI')+FRUIT_PLANT_LEVEL+'暂无水果可供选择,请打开京东APP检查');}else{if(liiIII[ililIl(0x18f,'&v(!')](liiIII['nneGL'],liiIII[ililIl(0x207,'!Gq0')]))console[ililIl(0x104,'@o2C')](ililIl(0x119,'IKY3'));else{IiilI1[ililIl(0x227,']ovQ')](ililIl(0x173,'2O[G'));return;}}}async function autoCrop(){const liiI1l=liiI1i,llllI={'MDrOi':'【提示】请先获取Cookie','QqJfx':'ZBPUg','TkMna':function(i11il1){return i11il1();},'hxgpG':function(ii1iiI){return ii1iiI();}},lllil1=$[liiI1l(0x26f,'k![b')]?.[liiI1l(0x27c,'QWFe')]?.[liiI1l(0x15d,'D@e7')];console[liiI1l(0x1cf,'BiiY')](liiI1l(0x146,'T!#)')+lllil1+liiI1l(0x177,'gUB[')),await gotCouponForFarm();const iil1il=$[liiI1l(0x1af,'IKY3')]?.[liiI1l(0x11f,'cJte')],ilil1I=iil1il?.[liiI1l(0x17b,'k![b')];if(iil1il&&ilil1I){if(llllI[liiI1l(0x258,'pOgc')]!==llllI[liiI1l(0x1b9,'#0!g')])lilIl1['msg'](i1l1ii[liiI1l(0x202,'I%Vs')],llllI[liiI1l(0x16e,'pOgc')]),i1l1['exit'](0x1);else switch(ilil1I){case 0xc8:const ilil11=iil1il?.[liiI1l(0x178,'He&s')]?.[liiI1l(0x14f,'cvWH')],illlI1=iil1il?.['hongBao']?.['endTime'];console[liiI1l(0x24a,'qsKS')]('🎉\x20收获成功,获得'+ilil11+liiI1l(0x1f9,'txF@')+$[liiI1l(0x152,'k![b')](liiI1l(0x175,'A4yY'),illlI1)+liiI1l(0x1fe,'fzI!')),$[liiI1l(0x266,'@o2C')][liiI1l(0x10f,'cvWH')]('收获成功,获得'+ilil11+liiI1l(0x15a,'FAmv')),await llllI[liiI1l(0xf7,'qsKS')](initForFarm),await llllI[liiI1l(0x23b,'P(hT')](autoPlant);break;case 0x199:console[liiI1l(0x1bc,'bg(6')](liiI1l(0x19a,'T!#)')),$[liiI1l(0x280,'I%Vs')][liiI1l(0x184,'fzI!')]('已达到领取上限,请过一段时间再领取');break;default:console[liiI1l(0x156,'A4yY')](liiI1l(0x272,'k![b')+JSON[liiI1l(0x1b6,'2O[G')]($[liiI1l(0xf5,'BiiY')]?.[liiI1l(0x16a,'haP4')]));break;}}else console[liiI1l(0x1a9,'Ux)#')]('收获失败\x20'+JSON[liiI1l(0x17c,'jPP9')]($[liiI1l(0x1b4,'cJte')]));}async function myCardInfoForFarm(){const i1l1II=liiI1i;$[i1l1II(0x23f,'uK%F')]=await request(i1l1II(0x183,'IKY3'),{'version':0x5,'channel':0x1});}async function userMyCardForFarm(IIIl11){const i1ill=liiI1i,I1lIi1={'wRqBf':'userMyCardForFarm'};$['userMyCardRes']=await request(I1lIi1[i1ill(0x193,'&v(!')],{'cardType':IIIl11});}async function waterGoodForFarm(){const I1l11l=liiI1i,liiIIi={'mMASJ':function(lil11I,Iliii1){return lil11I(Iliii1);},'MlAYM':I1l11l(0x245,'Tc0m')};$['waterResult']={},$['waterResult']=await liiIIi['mMASJ'](request,liiIIi[I1l11l(0x20e,'haP4')]);}async function gotStageAwardForFarm(iIiIi){const lilIIi=liiI1i,iil1ll={'wHpAw':function(iiilil,iil1li,lillIl){return iiilil(iil1li,lillIl);},'vnGvr':lilIIi(0x1cd,'S4Ba')};$['gotStageAwardForFarmRes']=await iil1ll['wHpAw'](request,iil1ll[lilIIi(0xf8,'BiiY')],{'type':iIiIi});}async function initForFarm(){const i1l1Il=liiI1i,iIiIl={'KUZnR':function(iiilii,li1i1i,IlIli1){return iiilii(li1i1i,IlIli1);},'csBLP':i1l1Il(0x14c,'cvWH')};$[i1l1Il(0xdc,'T!#)')]=await iIiIl[i1l1Il(0x24f,'zLIJ')](request,i1l1Il(0x213,'A4yY'),{'babelChannel':iIiIl['csBLP'],'sid':'','area':area,'version':0x1a,'channel':0x1,'lat':lat,'lng':lng});}async function gotCouponForFarm(){const illIiI={'NLQcw':function(Ill1l,llI1Il,ii1iii){return Ill1l(llI1Il,ii1iii);}},lI1lli={'version':0xb,'channel':0x3,'babelChannel':0x0};$['gotCouponForFarmRes']=await illIiI['NLQcw'](request,'gotCouponForFarm',lI1lli);}function Iii11l(){const II11l1=(function(){return[...[iil,'OnpjstPjWUiQaNUmFik.duhcgyohSmrDY.xPdvD7==','xGldThW','WPddSCoIW5XhWO7dHCkKih4F','W5ffWRFdSSk8','WQ5uBSkZbLG','yCkxavxcVa','W63cTSoGBI0','l1XJctm','mmkwbvFcVhDYEMhcMSkrW4m','W50VWR8','m8o7WPGSW4pdRmk0W6On','W7eim8o1vWZdTq','WP9mq2BcKW','5Q2P6l6u6z6h','W6jpkW','B8ojuYhdUZu','WQpdO8o1W4nCWPZdJCkZ','WPPTkx7cLmoXEclcU8kdgG','W7b0yCk4W5yGWRxdNCkp','W4VdV8kbWPtcNW','pr/cQt9Sfq','cwrVsuO','5lIJ5yQ45OIJ6kgR5B+c5BU9776P6kYZ5QcQ5PYl5OUl6kkh5PwT5B6d','WP0qWOlcQSoY','WPyvWOy','5lUQ5yMd5OQB6kcY5B685BMM77YD6k+P5Qo/5P+45OMq6kk35PAS5BYH','WRhcTSotESo6qqtdUW','dahcKSozW5e','WOtcR8oQyCoW','W7hcSNG','5B+V5yM35Rcn5PYk5y2356EL5Qw555I65RkV5PYi776M5y6F6icP5P2N5P6J5Bwt6Agl5yYc5lQq5Q6B57MO5y+e6lYl5yMk5lMA5lUM6zIX772A','WP/dVw/cNCkPW7q3WRSEtK1XAq','WPpcTLRdNwy','W4bpbZ7dR8k1B3q','W7dcMdRdQgi','WPeUD8kbWQm','mq3dK3fMW7uBWQFdOSkvFZje','uXJcTSoWdSorySkoex/cQI02','rSoZW54YW4XAW6m8W4b0bLK','l2jegW','hCkYWQzIWRm','W6eRDXldTa','Bmk2W68','772v6l655BIB','cunbpSkp','pVcNSjO','oxTyha8','WR/cJ0/dGwS','gsJcI8oDW4NcHSoExKTyta','W7dcH3H5WQm','W78yf8oKwa','v0Ho','WPFcVuddMurrW6uIW5hcKKy','WRizxSkEWQi','FNddTCoCWRFcQGC','W4/WL6gd','WQRdHsddUMW','W5jBW4fM','FX5KBri','Fv8mW6aRW7pdNqW','WQjHlghcRW','W6xdPSk+WRpcM1VdVeC','W6zYyCk+W4O','WRFcIvZdNui','W4/cPtRdIW','iCkIfJNdUa','rmkrWPKmW7a/FhS','WOTTl3BcQSogAZtcOSk4b8oTh8kIW4arWRW','ddO1lSk0bxJcGa','W71qWOhdQmkftSo3W5K','WQ9Cr8kPWOi','W7tdKxJdNgW','D1ez','rqzcqY8','5Q+c6l+P6zYJ','8yQTKJNLVQxLIOpNPktMPidNMlPW4OgA','W77dHMFdTetcPSkZWO4','AmoUrGBdJq','W43dGmkNWQtcOW','wgzVW4mKstCoj8ozWPe','z8k2W7XcW5zzW6JdRgnzWOiHW47dGSkdWRFdUb8ucGRcOfC','yupdQa','uo+/J+w0NEA1HUAZJq','EbldTMOS','mbJcQtLXfbpcOG','mmoUWPGKW4ddUa','wCoTW5ddVCoaimo1qCoP','pcxdQJK','5B6q5yQX56E+5Qs2772t','tWJdUg0RmaRcQCoUhW','BwxdMSofW6pcQWzlWOFcG8k6WQpdSComoW','m3Hq','W6bHz8kYW5a','WPTOW5zceW','W60fimo6W4GIzSoJqMGrW51T','57Mb5yY08jEuMG','jSk7W6D1W5Sf','5P6C5Qoi5B6i6iQG5lIK77Y05AEz5yI4','W4lcQZpdIW','WRNcTSomCG','WO5iymkCzmkIWO1nWQxdGbHLDa','WOreW7xdOGa','WO9Era','mCkvbfxcShm3wMpcOmkHW7RdKa','lctdR15T','WReZkSoJWO4sWQJdJ8kKzYS','zCkHWPGkW4W','EHBdVeaH','DCkAWRSwW5i','F2ZdLSohWOlcTIbmWPNcHSkCWQpcRG','W5ldJCkCWQFcTq','mSoMWPKUW7NdOSkTW78','WRZcQLxdV8oA','WRT2iei','WRWPFehcPG','vNOmW4il','WPFdTmo0W7r8WPJdKSkXcq','W4rmWOpdN8k5xq','W6ZcT8k7zs/dNZqsAJ8f','WQHxzmkUWOnfimolqvyb','6lE45y2Z5PwI5PsF','wYfNqr7dSLKVsCoydmkZWR9Y','jM5ocLdcIcWye8kPW5hcMSkxbhW8W7xcT8oj','WP5mWOvNFG','4Oo8W7ZLT4BMIQZNHQK','WRb2kKdcGSkKW4O','WQvJDSk0qSkzWPnIWPFdQHHjsxNcJCo+WOf+z3pcSCk/5O665AYPWP3cUSk16lwr5y+o5RAb5Roz776l5AAy5lMg55E7jmkoDUMBJow/QG','n8kFW5O7W5tdSMeVpmoBWQj7WQ/cT1GOWRddNCkOW43dVwpcPHPRECog','oINdTcNdVSkLidrLnW','WOLDW49OkeFdSL/dIa','W6/cTSkXyYZcVhDEavSmW5JcQSkjuCkEWQ9GW6vGW6OedfyFWQlcKrPtW6/dJZvCWQiHhG','W7lcI3boWO8','W5ugemkCjG','gh1ucWa','W7T0W79TW50','W5a0WPy/W68','W5fdW69IW6PmpCoqW73dU8oOh8kMdCokW5pcOa','wdX+tq3dQW','WOnLpNdcQmocCdq','da/cHSo+W7i','5O2t56Eg57Uq5PYHvc1Dp8kxkSk7W49DFq','6lAa5y+z5PAv5PsB','mMv7obS','W5fVbIRdGq'],...(function(){return[...['W7zWD8kWW4WIWP/dLmkyrZBdVCk9','WOBcVuFdIhvJW6mN','yCoGtsldGa','WRJdPCoWoKZdUsuuAbKs','vJJcTmohlG','WRNdKCotjgG','WP1/W5FdOJ/dSCkgj1ifw8k+Aq','W6tdSvJdUSoEW7jmgCoZW4y','utNcOSoajq','r17cSSk7ia','eCkIWPTG','jmkPkqRdI8oQAmohc3JdOSkrFmktWOzaf8omW67dR8kW','5B2z5yMs5Rcs5P6856sc5QEc5PEt55QP5RoF5P2+77+c5O+b5A2h55IQ56Ya57UQ','WQTEcflcSSo8sHdcMSkQpmokfSkkW7aLWOBdIq','WQeaBCktWRZcU2JdJsuRaq','5B6f5yIS5BER6l2i5yU+6AgV5y+B5lQ06zIa772l6l6Y5lUR5Q2L5PAb6zEI5ysu6Aoo5y+j5zcdqa','W7BcM3qzlq','W4VXJBo5','aIZcKCoFW4/cVa','WQNcM2ddRhDi','5BYm5yMA5Rkw5P2656AW5QEi5PEr55QX5Rgd5P2r77+95Bop6kYk6iEu5yQ556AC5QEc5AE16lAF772R6k+r5OIY5B2p5lUs5lUqnCotBoAkKEwkU+wYU+IVUG','W7adWPCRBaRcSEw8UEwLUUoaRos5Pos7IUI0H+wnLG','wNRdI8kpWOpdOCkjhM1zsmk2W5xdTa','WR9mfvtcSq','W5L1W4HSW5K','5B6J5yMl5Rc15P6k56Aa5QAy5Pw/55Un5Rca5P+277Yf5Bog6k+p6iAP5yIc56w45Qsz5AAO6lsR772a6k6q5OMm5B2h5lII5lMtsXrI5OQK5yMo5BoG6kYy','W4dcPtK','WP/cKColxmoc','vwSrtGVcKrpdH8k0dxO3WQRcMSkrBq','WQ0VzSkLW5eRWQ/cLmkKvJhdTSkLWPORdgBcTmocWPRdPMJcKq','fYSd','uGtcP8oJl8oTt8kkexZcGq','WRvqymkouq','hcFdSeXL','W70fWRapW5S','lCoUWPO','W5TvW5HaW7DDbmorW7xdKSobaSkskSozW4ZcN8kXW4C','vwq/ECkv','W5hdQqpcJauWWQqmW4dcIMefWRa','5P+f5QgZ5y2S6iQR5lQc776y5AsI5yMe','rCkGW58WW4K','pG3dIvvRW6eeWPRdQCkGzsX2DHJcRu7dLeS','W45cWPBdT8kExmo/W47dRCkiW4W','WQ3dSmoWpNFdRsKaqq','jHtcQY97eGK','W63cLwavj3enzW','FmoUW7/dVSoR','b8kMWQPdWO8','WOijW47cSmoHbCkq','bJqG','W5fpatBdLmkjBgH/FCkN','zSkdWOGBW4WmDg1kCum','cMfmpG','W6ZdLxddVfNcP8kHWOakW64PswpcVIi','W6bOFmk4W5SIWPVdLmkzvYddLCkMWPSYb3dcMSo/WPldUa','77+p6lYN5BQv','WQVcN2pdRG','Dmk2W7XWW459W6hdRfbjWPO','lrddMhnxW6avWOhdOG','bIlcRmoAW7a','WR98kNlcGq','W4rzW6nkW4G','WP3dV2NcNSkIW78YWQ0CDK5Gya','BI7dQdJdQ8oS','W7SinmooaXJdPa','WOnpW65Pmq','dxddVConmZldLHtdSgRdHmoSzx/cPmkcW6rhWOi0','wYJcVmo/msRdUqxdUW','k8kUiq','5Q6i5P+j5OMq5Q6S5zoa5y2L6ios6AcUvUASVEE4S+wpKU+8N+ExKos5JUw4MEIMOEA3PUAYIowMOoAgOE+9N+IfIEADKUs+J+wgP+s+R+EuIUw9UoMdJoA1IEAZQUwmGq','aaRcO8oYkSomhmkycY4','lHNdTXLqtqFcVSksWQ9zWQZcTZ/cJZ8iW7Ld','5P2S5Qcx5B6u6iIY5lUl776z5AAz5yU4','W7FdKMhdN2hcQCkY','dh7dU8oZdJ3dLX4','F/cAVQJVUBW','oYxdQdFdSq','aW0ul8kw','C0qyW7SW','j/c8Oy1p','actcRJXl','uMX+lSkWkNtcPJu','WOFcS0ddR0jJW7yMW6tcKfqbWPpcNmoUWQuTW75zimoMlMq','W79bWRpdTmkd','BGNdUhOGpWlcVG','WRvUW7RdQGu','uJPIqrZdUNDUrCoteSoBWQy3FCkdW4xdP2lcT2e','W4fbaqddKSk6BN5lzSkYC8omW6BcVbZcGmkUxv4IkmoQ','xXVdQwK','lLbupZa','bSoDWR8mW7NdLmkkW40GqSoypCoaWRTAW7RdNCkX','W65wE8kdW44','F8oCW4aGW48','WOrEv8kUySkNWQngWOldMcTYy3JcVCoCWO5rnthdJmo6W44','lCoQWPK2W4ZdRmk4','FCknWPS','WQ12smkhzW','y3RdICoJWOu','WPLJg3lcNSogEq','W5SxWRKBW50','tmodW4O9W7pdV39L','W6LuDmkOW4m','qCk8W4n3W7O','ugu8','imkufXddMq','hcJcKCoCW5tcUq','WQhcSSokw8o0','W6SmkCoY','FSovW5SmW5ldSxLPc8oOWQfYWRBcOq','W7FdTCkPWRVcL1VdV1RdNSo0','5ywA57Is5y6Q8kYvMU++LUwWLowCQe4','lmoGWO0','WQtcJMFcPw4oomkuivRdO8oa','zSk4W7TLW6fzW73dRq','5P+Y5Qgy57IS5PYK5lI977+y5AET5yQC','eEI+LEACKU+8Oq','c0VdNmogaG','WOnOmehcHa','W7tdPSkLWQO','uMS2Eq','WO1iW4LKnhldVKRdHfdcVa','cdawuWZcMGNcJSkF','ASolW4BdQSoM','WPjPW7VdRYJdTmkH','W7pcS3PmWOi','ys7cHW','cH7dNG3dTW','DLSnW74dW7RdNG','oahcQ8oUW54','5B+V5yM35Rcn5PYk56wv5QsL5PEe55I65RkV5PYi776I5BAc6is+5yUJ56wM5QAS566e57MZ','8lIBHMdORBhMSBtLPzROTRvc4PY9yUAvIEwqG+w7G+AxUoAmRW','dCoJWQSCW6a','zSk4W7P8W6TwW6NdPG','fWZcHSolW6G','W6SVc0NcP8keW7tcSq','WRCZj8oMWObYW67cImkLxIpdO8kmWOm','nNLEbZVcQHnZfSk/WPW','WOBcVuBdKx9SW7CS','BCocW4OQW7JdShDYcCoh','d8oxWQ4SW7K','jtVcSY9p','WQ3cNNFdUJK','r8kKWQqsW7e','W6dcK25qa3KozCooEmoOWPvoiCo3WQqgW7lcLgNdJG','zSoiqG'],...(function(){return['aYZcJmolW5RcS8oE','W5bvW4S','WRldQ8oL','WQJdOCo0g14','nbVdVND2W7a9WPVdOCkjwdTd','5BwU5lYs55wO5B2T6ycP5RsS5RkK5yYd776T5yIR5l+W','vxDqW505','WPVdQmobbuO','W6ZdLwddVa','W5yLWQWhW4OLyCovqKyXy8opvmknm8o8W5m7','4P6sWQtMT4xMSApLVjVLURlVVyZLJONOG4xOPO3LJQZPOAhMJAJVV7FOR5lNQ6RLK5tLHOtORz9U','WPXPW7m','jq4nn8k8','s8o+W4FdTCoFmCoIumoGqCkVWQDpW487WR0h','44kH5O6q56EI44gA6k2C5ysz6i6Z5y2WDwGUEmoWva','vYlcTmkJEM7cJeZcJca','dhNcNCkiWOG','CYpcHSo1ja','s2SVECkFkSk8hCk7cIG','WPVdTCoJW4jZWPRdHq','W5r5qmk5W4O','zCoHWRLYWPm','vSkFW5b9W60','DCoFW4G','qaRcOCoVfSoBrmkDm2NcLW','WRVcUmog','W5PBW55UW41BeComW4VdPSob','WQNdRmoojv8','oejMaaW','xrVdR2uNmaNcTa','WOFcUuddSfLLW7GTW7BcK1qhWOlcQq','WQ3cHMNdU0q','ew9c','v8oNW53dNSo8','FvCg','BCkGW4TWW5bCW4BdP0rbWRe2W5K','x2i0DCkohCkEaCkHaI/dLSoUggefE1FdOZ9A','W6rVz8kcW4WMWRVdNSk3rdldOCkTWQ8BfetcLSoFWPRdMwlcJa','W7y2lKpcG8kQW4RcR8kdWOS','WO/dQSolhgG','eJ3dIHRdUa','DmohqahdUWbQFhdcRCkTW73dNtfuWQ0','bSoDWR8mW7NdLmkkW40GqSoypCoaWRTAW6tdU8kleZn2W5HbW4ig5PQ05zgp6ycx556Z776IWOLBWOxdNa94pKDsWPlVVANVVjpPUylORy3KU7tPGB3NNPa','FSovW5ScW5JdRwfHcCoB','W4VXJBo5WQq','aIBcMa','WOKGWOK','EmouW4SkW5pdU2bNfW','WQjtmwJcJW','WRLxySkMWRH4mSof','zmojqdFdVszIDLxcNmkJW73dVXzjWRijWPeUW7VcVLqU','WPZcGSo7ECoH','pWpdJ3TrW6CrWOFdL8kuzq','WQVcU2ZdPNq','77+T56Yg57Mj','tMC0tmk4','xrVdR2u7lqRcQCozfmoF','iXdcRJ9SmXJcPCokWOTm','WQitFmktWOVcH2JdJdC+','EeSPW68m','sK80W6SA','W6iTWOG4W4C','iCkbWPH9W58','WPzgW5O','WOb1hNRcLmohvd/cQmkapmoMkW','g2LD','W7xdI1DDkG','tNncW54yva','WRSsFG','W6xcNxetpgmfCmo6zCoP','WRpdOCoXjhJdRsu','W5PBW593W5TjbSoA','WPtcRLhdMwv2W7a3W4a','e8oIWRO2W4e','W5WLWQS4W4O2yq','wgu1Eq','sdDhECon','WPXiW49Sd07dVvy','lrddMhnqW7SaWPtdQ8kJzdTcCbm','iCkGnrFdQ8oUxCom','ECkwWOGoW41KpJfCFexcItddMmksdSo+q8kyWRH/vW','ExVcSJ3dPmkOkY9l','WOK4BINcGa','lI3dTthdM8k/btq','WRtcNuDEoXlcUuhdVmorWPC','5B2i5yMZ56AZ5QAa7724','5Pw+6i+75AA26lw5776E5P+7556g54UT5OcaCG','W6tdQmk4WO3cPLtdVu3dUmo6W73dMSo7W4/dQNJdGwO3WP3cQ8oZfa','hpcUK4pVVllKVl7NIPtLTPlMI7JNHBNVVAe','ob7cVq','lsldSq','WQXRiulcLmkQW5hcPCkgWQVdGSkUW7OZWQS','WOL3W6eMW6yqBSoVzW','WRiWjCo/WOXWW6K','WQNcKwK','WQ7dJ8owlvC','WOTTl3BcS8oqEcpcNSkDaq','iCorWP0UW5S','W6NcJXpdTmoW','W4mHWRyVW4q8','uw8OB8kmh8k8','y8kaWQ8mW6G','m8oVW4D/W4v5W57dVa','bNddRG','5BEX5l+z55sC5B6p6ykw5Rsa5RcX5y2Y77Yy5yQc5l6B','W6JdRehdO0m','psFcItz1','nmk4WRHZWPy','dZ1Ql8ovqCoPn8kPmWVdT8op','WPCsDmkbWOm','WRaaA8kBWOFcH2VdKq','W7GBbSodqq','gCkSWOG','W4PwWPZdR8k7','5P+h6kEV6zwC','5PQK5PAl5RoN5PYE5y6S5lYZ6ycO5OIg772V6k+S5OQR5B2i5lUP5lUufSkYWOdMOklMN6q','nq3dMLn2W6y','WOBcTvRdNvPUW6G','W5roW5HZW6Ssw8krW7RdPmohxSk5zCobW4xdO8k3W5VdL8oLWQldMrpcUCkcfx0TWO7dHHGhW4tcLW','s8o+W4FdTCogj8oXr8oCzmkP','W5jtW49OW5zjgCoB','W6fZE8k1W5e','WPDmdLpcGq','hSkSWOtcQSoln8oIqCoczW','W4vsrSkyW6WyWOVdUSkIDGhdMSkhWQ4Rke3cO8oKWRhdKG','WRlcTCo/W6RdPWpcRrdcGmk9','5RcT5RMe5lQI6lE8','tmo7W5hdNCo9mCoMuSo1','iCkIjfBdIq','B8ojuW','5P2k5QgW57Uk5P2Q5lMi77+L5AwB5yIp','5yMe5AAP5y6R5yAk5zY+5PEK5OYA5B+35BQ/W4OQ6k6P55Ml5B2c5lUg5lUCxCobsoACOoEDG+weLUwEOUwkIEIbGEABSEwrOEASLow4Pb8','W4uVWQWQW4CuASodrga4','WRJdP8olbfe','WRiYjSoOWO4gWOtdS8karGy','imkUmIddH8o6x8ohcLRdVSkLvCkaWRjmn8oeW48','WOXev8k7ESkNWQm','WReKWQmAWOe','mCkVarxdMG','iCkGna7dOCoHsCoh','iCkbWPPpW5S','W6yXWReQW4i'];}())];}())];}());Iii11l=function(){return II11l1;};return Iii11l();};async function choiceGoodsForFarm(i11iil){const llIli=liiI1i,Ill1i={'imageUrl':'','nickName':'','shareCode':'','goodsType':i11iil,'type':'0','version':0xb,'channel':0x3,'babelChannel':0x0};$[llIli(0x1e1,'fzI!')]=await request('choiceGoodsForFarm',Ill1i);}async function request(ii1iil,lllI1l={}){const i1i11l=liiI1i,i11iii={'whLrF':i1i11l(0x27d,'txF@'),'qGcLM':i1i11l(0xee,'BiiY'),'ZiVni':i1i11l(0x16d,'He&s'),'XoYcS':'102f5','UaHvG':i1i11l(0x268,'&wJj'),'oLyIz':i1i11l(0x11d,'P(hT'),'AsmwM':i1i11l(0x100,'Tc0m'),'SJSse':'71547','VHTVe':i1i11l(0x176,'jPP9'),'aTUXE':i1i11l(0x17f,'FAmv'),'UHUwg':i1i11l(0x107,'[7KZ'),'NLiEm':i1i11l(0x133,'KQyc'),'xcOIP':i1i11l(0x22c,'sT]['),'VFtik':i1i11l(0x110,'fzI!'),'rmoPU':'2ca57','WUhat':'eaf91','chZNw':i1i11l(0x25a,'txF@'),'zDINa':i1i11l(0x16b,'goqf'),'QnIKq':'15507','siokc':'157b6','eqTkG':i1i11l(0x26e,'QWFe'),'bshdi':i1i11l(0x1f0,'B[vv'),'pKgpF':i1i11l(0x231,'uK%F'),'HFjKq':i1i11l(0x194,'&v(!'),'KgXZB':'08dc3','hqIcJ':'32b94','hzfvR':i1i11l(0x149,'9HJc'),'byUxf':function(illIii,ii1il1){return illIii(ii1il1);},'fcISH':i1i11l(0x12e,'9GV*'),'MqMdA':i1i11l(0x109,'T!#)'),'nRAVs':function(lI1llI,illIil){return lI1llI+illIil;},'yEysS':function(Ill1I,i11iiI){return Ill1I*i11iiI;},'qJiuQ':i1i11l(0x1fb,'P(hT'),'ZqMFj':i1i11l(0x113,'IKY3'),'QEBGW':i1i11l(0x26c,'a@Fw'),'lvmEa':i1i11l(0x155,'t(FI'),'zvKUs':i1i11l(0x1d2,'cvWH'),'ugwgD':i1i11l(0x21a,'aX3C'),'WyShr':function(lIli11,lllI1I){return lIli11<lllI1I;},'TUtfU':function(lillI1,IlIlii){return lillI1>IlIlii;},'hkSbK':function(i1l1i1,liil11){return i1l1i1!==liil11;},'SuQNn':i1i11l(0x1ee,'@o2C')};let llI1Ii='',lllI1i='POST';const li1i1l={'initForFarm':i11iii[i1i11l(0x237,'2O[G')],'taskInitForFarm':i11iii[i1i11l(0x1e4,'A4yY')],'browseAdTaskForFarm':i1i11l(0x112,'AG^&'),'firstWaterTaskForFarm':i1i11l(0xfa,'a@Fw'),'waterFriendGotAwardForFarm':i11iii['ZiVni'],'ddnc_getTreasureBoxAward':i1i11l(0x25e,'Vwy@'),'totalWaterTaskForFarm':i11iii['XoYcS'],'gotThreeMealForFarm':i11iii['UaHvG'],'waterGoodForFarm':i1i11l(0x1b3,'0&gr'),'choiceGoodsForFarm':i11iii['oLyIz'],'gotCouponForFarm':i11iii[i1i11l(0xdb,'T!#)')],'gotStageAwardForFarm':'81591','followVenderForBrand':i11iii['SJSse'],'gotWaterGoalTaskForFarm':i1i11l(0x180,'Ux)#'),'gotNewUserTaskForFarm':i11iii[i1i11l(0x20b,'sT][')],'orderTaskGotWaterForFarm':'eed5c','clockInForFarm':i1i11l(0x101,'2O[G'),'clockInFollowForFarm':i1i11l(0x287,'uK%F'),'waterFriendForFarm':i11iii[i1i11l(0x1ff,'S4Ba')],'awardFirstFriendForFarm':i11iii[i1i11l(0x22d,'&v(!')],'awardInviteFriendForFarm':i11iii[i1i11l(0x135,'fzI!')],'awardCallOrInviteFriendForFarm':i11iii[i1i11l(0x1c8,'IKY3')],'userMyCardForFarm':i11iii['VFtik'],'getCallUserCardForFarm':i11iii[i1i11l(0x253,'I%Vs')],'deleteFriendForFarm':i11iii[i1i11l(0x13a,'gUB[')],'gotLowFreqWaterForFarm':i11iii['chZNw'],'getFullCollectionReward':'5c767','getOrderPayLotteryWater':i11iii['zDINa'],'receiveStageEnergy':i11iii[i1i11l(0x243,'2O[G')],'exchangeGood':'52963','farmAssistInit':i1i11l(0x124,'He&s'),'myCardInfoForFarm':i11iii[i1i11l(0x1d7,'k![b')],'gotPopFirstPurchaseTaskForFarm':i11iii['eqTkG'],'limitWaterInitForFarm':i11iii[i1i11l(0xe7,'SFB7')],'ddnc_surpriseModal':i11iii['pKgpF'],'friendInitForFarm':i11iii[i1i11l(0x1a6,'zLIJ')],'clockInInitForFarm':i11iii[i1i11l(0x251,'gUB[')],'guideTaskAward':i1i11l(0x218,'KQyc'),'signForFarm':i11iii[i1i11l(0x123,'0&gr')],'gotNewUserTaskForFarm':i11iii[i1i11l(0x11b,'P(hT')]},II1i1=li1i1l[ii1iil];if(!II1i1)i11iii[i1i11l(0x1d9,'pOgc')]!==i1i11l(0x1eb,'FAmv')?(iillll[i1i11l(0xf6,'FAmv')]=!![],lIIilI[i1i11l(0x20a,'pOgc')]&&IiiIl1[i1i11l(0x106,'!SmT')]['fix'](lIIil1)):(lllI1i='GET',llI1Ii='https://api.m.jd.com/client.action?functionId='+ii1iil+i1i11l(0x15b,'uK%F')+i11iii['byUxf'](encodeURIComponent,JSON[i1i11l(0x204,'Ux)#')](lllI1l))+i1i11l(0x1d1,'&v(!'));else{const l1l111=await H5st[i1i11l(0x1cb,'!SmT')]({'appId':II1i1,'appid':'signed_wh5','body':lllI1l,'client':i11iii[i1i11l(0xf3,'2O[G')],'clientVersion':common[i1i11l(0x225,'@o2C')](),'functionId':ii1iil,'cookie':cookie,'ua':$['UA'],'version':i11iii['MqMdA'],'t':!![]});llI1Ii=i1i11l(0xe4,'IKY3')+l1l111[i1i11l(0x150,'haP4')];}await $[i1i11l(0x1f6,'!SmT')](parseInt(i11iii['nRAVs'](i11iii[i1i11l(0x210,'sT][')](waitTimes,0x1),0x3e8),0xa));const lI1lll={'url':llI1Ii,'method':lllI1i,'headers':{'Host':i11iii[i1i11l(0x217,'cvWH')],'Accept':i11iii[i1i11l(0x244,'k![b')],'Origin':i11iii['QEBGW'],'Accept-Encoding':i11iii[i1i11l(0x142,'KQyc')],'User-Agent':$['UA'],'Accept-Language':i11iii['zvKUs'],'Referer':'https://carry.m.jd.com/','x-requested-with':i11iii[i1i11l(0x19b,'aX3C')],'Cookie':cookie},'body':lllI1l,'timeout':0x4e20},iIiII=0x1;let iil1lI=0x0,iiiliI=null,li1i1I=![];while(i11iii[i1i11l(0x230,'SFB7')](iil1lI,iIiII)){i11iii[i1i11l(0x1db,'cvWH')](iil1lI,0x0)&&await $[i1i11l(0x1bf,'&wJj')](0x3e8);const l1iIII=await common[i1i11l(0x1b7,'cvWH')](lI1lll);if(!l1iIII['success']){if(i11iii[i1i11l(0x1c6,'sT][')]('jWaPv',i11iii['SuQNn']))i1l1li['log'](i1i11l(0x1fd,'sT][')+i1ilii[i1i11l(0x1e2,'[7KZ')]?.['addEnergy']+i1i11l(0x19c,'D@e7'));else{iiiliI='🚫\x20请求失败\x20➜\x20'+l1iIII[i1i11l(0x139,'SFB7')],iil1lI++;continue;}}if(!l1iIII?.[i1i11l(0x195,'0&gr')]){iiiliI=i1i11l(0x20d,'!SmT'),iil1lI++;continue;}return data=l1iIII[i1i11l(0x1e3,'C@S!')],data;}iil1lI>=iIiII&&(console[i1i11l(0xef,'Tc0m')](iiiliI),li1i1I&&($[i1i11l(0x1d4,'KQyc')]=!![],$[i1i11l(0x22f,'sQ^m')]&&$[i1i11l(0x22f,'sQ^m')][i1i11l(0x23e,'pOgc')](iiiliI)));}function randomString(IlIlil,lIli1I='qwertyuiopasdfghjklzxcvbnm1234567890'){const i1i11i=liiI1i,II1il={'Dgnna':function(I1lIll,I1lIli){return I1lIll<I1lIli;},'reEBv':function(II1ii,IIIIII){return II1ii*IIIIII;}};let lllI11='';for(let lillII=0x0;II1il['Dgnna'](lillII,IlIlil);lillII++){lllI11+=lIli1I[Math['floor'](II1il[i1i11i(0x1ba,'0&gr')](Math[i1i11i(0x1f4,'sT][')](),lIli1I['length']))];}return lllI11;}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)}
|