/* 京东跨年狂欢抽奖 只做任务,抽奖 无助力 cron "55 5 * * *" script-path=jd_newYear_party.js, tag=京东跨年狂欢抽奖 */ const $ = new Env('京东跨年狂欢抽奖') var iil='jsjiami.com.v7';const l1I1Il=iii1II;(function(liiili,I1ll11,lI1lIi,Iii1Ii,Iii1Il,i1l1I1,lI1lI1){return liiili=liiili>>0x9,i1l1I1='hs',lI1lI1='hs',function(llIl1,l1iIiI,illlli,illlll,IIIIiI){const l1lI1l=iii1II;illlll='tfi',i1l1I1=illlll+i1l1I1,IIIIiI='up',lI1lI1+=IIIIiI,i1l1I1=illlli(i1l1I1),lI1lI1=illlli(lI1lI1),illlli=0x0;const II1I1=llIl1();while(!![]&&--Iii1Ii+l1iIiI){try{illlll=-parseInt(l1lI1l(0xd7,'ysCz'))/0x1+-parseInt(l1lI1l(0x234,'U[zW'))/0x2+parseInt(l1lI1l(0x10a,'c0Nx'))/0x3+parseInt(l1lI1l(0x19e,'gWki'))/0x4*(parseInt(l1lI1l(0x247,'V8m7'))/0x5)+parseInt(l1lI1l(0xb7,'ueKd'))/0x6+-parseInt(l1lI1l(0x203,'*Qqx'))/0x7*(-parseInt(l1lI1l(0x14e,'ueKd'))/0x8)+parseInt(l1lI1l(0x174,'c0Nx'))/0x9;}catch(i1i111){illlll=illlli;}finally{IIIIiI=II1I1[i1l1I1]();if(liiili<=Iii1Ii)illlli?Iii1Il?illlll=IIIIiI:Iii1Il=IIIIiI:illlli=IIIIiI;else{if(illlli==Iii1Il['replace'](/[leUSxuDAWGQhwVqktgJbr=]/g,'')){if(illlll===l1iIiI){II1I1['un'+i1l1I1](IIIIiI);break;}II1I1[lI1lI1](IIIIiI);}}}}}(lI1lIi,I1ll11,function(ii1l1I,lI1lII,lIill1,iiI1i1,ilIlII,iIiil1,l1lI1i){return lI1lII='\x73\x70\x6c\x69\x74',ii1l1I=arguments[0x0],ii1l1I=ii1l1I[lI1lII](''),lIill1=`\x72\x65\x76\x65\x72\x73\x65`,ii1l1I=ii1l1I[lIill1]('\x76'),iiI1i1=`\x6a\x6f\x69\x6e`,(0x14d570,ii1l1I[iiI1i1](''));});}(0x19600,0x6213f,Iii11l,0xcd),Iii11l)&&(iil=0x23af);const lI1l1i=$[l1I1Il(0x12b,'s]og')]()?require(l1I1Il(0x2a0,'lJ2^')):'',i1iil=$['isNode']()?require(l1I1Il(0x101,'2)Y6')):'',llI11l=require('./function/krgetH5st'),I1llIl=require(l1I1Il(0x270,'a#%l'));let i1iii=!![],I1llIi=l1I1Il(0x202,'yrta'),IIii1I=l1I1Il(0x28e,'II5C'),llI11i=l1I1Il(0x191,'eDB*'),i1iIi1=l1I1Il(0x25d,'Zy[d')+iIIil1(0x6f,IIii1I+I1llIi)[l1I1Il(0x176,'Dzgp')](),l1l1il=l1I1Il(0x116,'gWki')+iIIil1(0x7b,IIii1I+I1llIi)[l1I1Il(0x29c,'V8m7')]();const I11i1I={'2':'[支付券]','3':'[优惠券]','4':l1I1Il(0x12d,'[GJG'),'5':l1I1Il(0xfa,'2)Y6')},iliIi1=[l1I1Il(0xc7,'vwvn')];let l1l1ii=[],Il1i1I='',Ii1iii;function iii1II(_0x38fe92,_0x2dda95){const _0x4b12e5=Iii11l();return iii1II=function(_0x2ab64a,_0x1ea9ad){_0x2ab64a=_0x2ab64a-0xaf;let _0x5d703a=_0x4b12e5[_0x2ab64a];if(iii1II['gXLoIU']===undefined){var _0x3fb2c5=function(_0x410033){const _0x39a8e3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b007f='',_0x196b80='';for(let _0x5d90f6=0x0,_0x98c538,_0x47d76c,_0x4a9c96=0x0;_0x47d76c=_0x410033['charAt'](_0x4a9c96++);~_0x47d76c&&(_0x98c538=_0x5d90f6%0x4?_0x98c538*0x40+_0x47d76c:_0x47d76c,_0x5d90f6++%0x4)?_0x4b007f+=String['fromCharCode'](0xff&_0x98c538>>(-0x2*_0x5d90f6&0x6)):0x0){_0x47d76c=_0x39a8e3['indexOf'](_0x47d76c);}for(let _0x15d120=0x0,_0x319f49=_0x4b007f['length'];_0x15d120<_0x319f49;_0x15d120++){_0x196b80+='%'+('00'+_0x4b007f['charCodeAt'](_0x15d120)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x196b80);};const _0x5021fc=function(_0x367cf4,_0x58678b){let _0x32425b=[],_0x4e2cce=0x0,_0x36cd2b,_0x2cb02a='';_0x367cf4=_0x3fb2c5(_0x367cf4);let _0x238d9c;for(_0x238d9c=0x0;_0x238d9c<0x100;_0x238d9c++){_0x32425b[_0x238d9c]=_0x238d9c;}for(_0x238d9c=0x0;_0x238d9c<0x100;_0x238d9c++){_0x4e2cce=(_0x4e2cce+_0x32425b[_0x238d9c]+_0x58678b['charCodeAt'](_0x238d9c%_0x58678b['length']))%0x100,_0x36cd2b=_0x32425b[_0x238d9c],_0x32425b[_0x238d9c]=_0x32425b[_0x4e2cce],_0x32425b[_0x4e2cce]=_0x36cd2b;}_0x238d9c=0x0,_0x4e2cce=0x0;for(let _0xed4ed8=0x0;_0xed4ed8<_0x367cf4['length'];_0xed4ed8++){_0x238d9c=(_0x238d9c+0x1)%0x100,_0x4e2cce=(_0x4e2cce+_0x32425b[_0x238d9c])%0x100,_0x36cd2b=_0x32425b[_0x238d9c],_0x32425b[_0x238d9c]=_0x32425b[_0x4e2cce],_0x32425b[_0x4e2cce]=_0x36cd2b,_0x2cb02a+=String['fromCharCode'](_0x367cf4['charCodeAt'](_0xed4ed8)^_0x32425b[(_0x32425b[_0x238d9c]+_0x32425b[_0x4e2cce])%0x100]);}return _0x2cb02a;};iii1II['Lqddfz']=_0x5021fc,_0x38fe92=arguments,iii1II['gXLoIU']=!![];}const _0x42a33e=_0x4b12e5[0x0],_0x181fd9=_0x2ab64a+_0x42a33e,_0xd66b1f=_0x38fe92[_0x181fd9];return!_0xd66b1f?(iii1II['RIvKxX']===undefined&&(iii1II['RIvKxX']=!![]),_0x5d703a=iii1II['Lqddfz'](_0x5d703a,_0x1ea9ad),_0x38fe92[_0x181fd9]=_0x5d703a):_0x5d703a=_0xd66b1f,_0x5d703a;},iii1II(_0x38fe92,_0x2dda95);}if($[l1I1Il(0x273,'dh9T')]()){Object[l1I1Il(0x1ae,'WOZT')](i1iil)[l1I1Il(0x230,'29BQ')](I1il1I=>{const l1I1Ii=l1I1Il;l1l1ii[l1I1Ii(0xe2,'V8m7')](i1iil[I1il1I]);});if(process[l1I1Il(0x1bc,'[XHc')][l1I1Il(0x242,'c0Nx')]&&process['env'][l1I1Il(0x171,'*Qqx')]==='false')console['log']=()=>{};}else l1l1ii=[$['getdata'](l1I1Il(0x29f,'5yNZ')),$['getdata']('CookieJD2'),...Ii1iil($['getdata'](l1I1Il(0xbd,'AOcQ'))||'[]')[l1I1Il(0x1ca,'rS]Y')](II111=>II111[l1I1Il(0x17b,'9lit')])][l1I1Il(0x197,'29BQ')](lI1l1I=>!!lI1l1I);!(async()=>{const IIlili=l1I1Il,lill11={'OVBwq':function(liI1i1,I11i11){return liI1i1===I11i11;},'WeDUz':'IdQvO','fkrQZ':IIlili(0x1e0,'*wd9'),'UhcMH':function(I1llII,Iil1il){return I1llII{const IIlill=l1I1Il;$[IIlill(0x1b0,'[XHc')]('','❌\x20'+$[IIlill(0x19c,'d#x1')]+IIlill(0x15f,'rbx1')+lill1I+'!','');})[l1I1Il(0xdc,'gWki')](()=>{const IllllI=l1I1Il;$[IllllI(0x21e,'eDB*')]();});async function iIIilI(){const liliil=l1I1Il,Ii1ii1={'oHnfj':function(Ilil11){return Ilil11();},'xphfv':function(i1ii1,il1ii,llI111){return i1ii1(il1ii,llI111);},'WNrhj':function(i1iIiI,IlllI1){return i1iIiI+IlllI1;}};$[liliil(0x160,'rS]Y')]=!![],$[liliil(0x152,'lJ2^')]=![],await Ii1ii1[liliil(0x1a8,'ysCz')](Ilil1i),await $[liliil(0x173,'Dzgp')](Ii1ii1[liliil(0x1fd,'s]og')](parseInt,Ii1ii1[liliil(0x14d,'bKQF')](Math[liliil(0x28b,'vwvn')]()*0x3e8,0x3e8),0xa));}function il1l1(I1il11){const I1iil1=l1I1Il,lI1l11={'thzNw':function(II11l,II11i){return II11l==II11i;},'ZuBIR':function(iI1Iii,liI1ii){return iI1Iii==liI1ii;},'ROFlk':I1iil1(0x15e,'5yNZ'),'XRsEi':I1iil1(0x105,'2)Y6')};try{if(lI1l11['ZuBIR'](typeof JSON[I1iil1(0x1d3,'WOZT')](I1il11),lI1l11[I1iil1(0x263,'9lit')]))return!![];}catch(lIIiIl){if(I1iil1(0xfc,'AOcQ')!==lI1l11[I1iil1(0x130,'lJ2^')])try{if(lI1l11[I1iil1(0x13d,'u&Ih')](typeof li1I1[I1iil1(0x277,'BxGr')](i1ilil),I1iil1(0x208,'c0Nx')))return!![];}catch(il1iI){return iIIl1l[I1iil1(0xe5,'II5C')](il1iI),llIli1[I1iil1(0x1b7,'2)Y6')]('京东服务器访问数据为空,请检查自身设备网络情况'),![];}else return console[I1iil1(0x26f,'s]og')](lIIiIl),console['log'](I1iil1(0x147,'2)Y6')),![];}}function Ii1iil(i1iIii){const lIillI=l1I1Il,i1iIil={'wwqnT':'string','LyHJg':function(liI1il,llIlIi){return liI1il===llIlIi;},'uSXmH':lIillI(0x22d,'*wd9'),'HaJbq':lIillI(0x22a,'Zy[d'),'naubx':'请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'};if(typeof i1iIii==i1iIil[lIillI(0x28c,'qzsI')])try{return JSON['parse'](i1iIii);}catch(llIlIl){return i1iIil['LyHJg'](i1iIil[lIillI(0x225,'yrta')],i1iIil[lIillI(0x1de,'IpPp')])?lIIil1[lIillI(0x1f0,'[GJG')](IIli1):(console[lIillI(0x29a,'V8m7')](llIlIl),$['msg']($[lIillI(0x19c,'d#x1')],'',i1iIil[lIillI(0x11d,'Dzgp')]),[]);}}async function Ilil1i(){const lI1il1=l1I1Il,il1i1={'KkGaE':lI1il1(0x195,'**!s'),'ofOwd':function(lIIiIi,liI1iI){return lIIiIi===liI1iI;},'AYFLu':lI1il1(0x1c5,'s]og'),'Dyqxu':function(iI1Il1,i1iIl1){return iI1Il1+i1iIl1;},'VDepW':function(i1lli1,llIlII){return i1lli1==llIlII;},'iSIvs':function(IIlII,lIIiII){return IIlII==lIIiII;},'TiySm':function(i1iIlI){return i1iIlI();},'TYwHB':function(li111,liI1lI,lIIiI1){return li111(liI1lI,lIIiI1);},'ggFfU':function(ll1I1,Ii1ili){return ll1I1+Ii1ili;},'fgWcn':function(iI1Ii1,Ii1ill){return iI1Ii1*Ii1ill;},'kuJXC':function(llIlI1){return llIlI1();},'ZSPLt':function(iI1IiI,IIlI1){return iI1IiI!==IIlI1;},'rQtuI':lI1il1(0x1c1,'29BQ'),'FOdDq':'lAmeZ','vpsac':lI1il1(0x1e9,'dh9T'),'UvYku':lI1il1(0xc6,'eDB*'),'IjIQk':'ios','ENRkK':lI1il1(0xf5,'eDB*'),'gqiUI':lI1il1(0x1b9,'eDB*'),'wiYlt':lI1il1(0x1f1,'o1*!')};return new Promise(async i1iIli=>{const liliii=lI1il1,i1iIll={'appId':liliii(0x14a,'c0Nx'),'functionId':'party_popUp','appid':il1i1['vpsac'],'clientVersion':il1i1[liliii(0xb6,'rS]Y')],'client':il1i1[liliii(0xff,'4)Wr')],'body':{},'version':il1i1[liliii(0x103,'WOZT')],'ua':$['UA'],'t':!![]},i1lliI=await llI11l[liliii(0xea,'Y*kb')](i1iIll);let liI1l1={'url':liliii(0x1cc,'*wd9'),'body':i1lliI[liliii(0x11b,'VjEN')],'headers':{'origin':'https://pro.m.jd.com','Referer':il1i1[liliii(0xf7,'rbx1')],'User-Agent':$['UA'],'Cookie':Il1i1I,'content-type':il1i1[liliii(0x1a3,'lJ2^')],'accept':'application/json,\x20text/plain,\x20*/*'},'timeout':il1i1[liliii(0x125,'lJ2^')](0x14,0x3e8)};$[liliii(0x233,'f5^)')](liI1l1,async(IllIlI,IiillI,ili11I)=>{const iIiilI=liliii,li11l={'GvDgQ':iIiilI(0x285,'eDB*')};if(il1i1[iIiilI(0x102,'U[zW')]!=='ffDau')try{if(IllIlI){if(il1i1['ofOwd'](iIiilI(0x131,'*Qqx'),il1i1[iIiilI(0x140,'u&Ih')]))console[iIiilI(0x154,'c0Nx')](il1i1[iIiilI(0x220,'ctim')]('',JSON[iIiilI(0x15b,'rS]Y')](IllIlI)));else{I1iIil[iIiilI(0x136,'**!s')](lI1Iil[iIiilI(0x253,'Y*kb')],li11l['GvDgQ'],iIiilI(0x299,'rbx1'),{'open-url':'https://bean.m.jd.com/bean/signIndex.action'});return;}}else ili11I=JSON[iIiilI(0x1f8,'9lit')](ili11I),il1i1['VDepW'](ili11I?.[iIiilI(0x10f,'2)Y6')],0x0)?il1i1[iIiilI(0x1a9,'[XHc')](ili11I?.[iIiilI(0x1d6,'V8m7')]?.['bizCode'],0x0)?(await il1i1['TiySm'](II11ii),await $[iIiilI(0xc1,'yrta')](il1i1['TYwHB'](parseInt,il1i1[iIiilI(0x2a7,'u&Ih')](il1i1[iIiilI(0x18c,'o1*!')](Math[iIiilI(0x28b,'vwvn')](),0x3e8),0x3e8),0xa)),await il1i1[iIiilI(0xe8,'f5^)')](iili1),await $['wait'](parseInt(il1i1[iIiilI(0x25a,'u3ve')](Math['random']()*0x3e8,0x3e8),0xa))):il1i1['ZSPLt'](il1i1[iIiilI(0x164,'bKQF')],il1i1[iIiilI(0x13f,'rbx1')])?console['log'](iIiilI(0x106,'Dzgp')+(ili11I?.[iIiilI(0x104,'II5C')]||'')+','+(ili11I?.[iIiilI(0xd9,'[XHc')]||'')):IilIlI[iIiilI(0x129,'ctim')](iIli11,Iiiil):console[iIiilI(0x20a,'k)0M')](iIiilI(0x1cd,'yrta')+(ili11I?.[iIiilI(0xee,'o1*!')]||'')+','+(ili11I?.[iIiilI(0x111,'NLKf')]||''));}catch(lliiIi){$['logErr'](lliiIi,IiillI);}finally{il1i1['TiySm'](i1iIli);}else l11i1l['can_draw']=![];});});}async function iili1(){const iIiiil=l1I1Il,IllIl1={'KiPYi':function(ll1Ii,ll1Il){return ll1Ii*ll1Il;},'nDLdB':function(iiIi11,ill1II){return iiIi11==ill1II;},'SDLGv':function(i1llil,i1llii){return i1llil&i1llii;},'kGYnt':function(l1i1I1,llIIil){return l1i1I1+llIIil;},'DLdGc':function(llIIii,Ii1I1i){return llIIii==Ii1I1i;},'ssliq':function(llIIlI,Ii1I1l){return llIIlI>Ii1I1l;},'eKWxY':iIiiil(0x189,'WOZT'),'CAKcV':iIiiil(0x1d0,'Dzgp'),'XRSBD':iIiiil(0x1e3,'4)Wr'),'jdybG':iIiiil(0x128,'BxGr'),'jDkxb':iIiiil(0xf5,'eDB*'),'lmQsr':'https://pro.m.jd.com','TCAVq':iIiiil(0x1bb,'o1*!'),'ojuDE':'application/x-www-form-urlencoded','aeoFo':iIiiil(0xe7,'s]og'),'XEAIb':function(IIlIl,ili11l){return IIlIl*ili11l;}};return new Promise(async Iiilll=>{const l1lI1I=iIiiil,Iiilli={'CYOMw':function(li11I,lliiII){return li11I{const ll1ll1=l1lI1I,ili111={'xmTau':function(Ii1I11,IllIli){const lI1iii=iii1II;return Iiilli[lI1iii(0x290,'rS]Y')](Ii1I11,IllIli);},'fKyYB':function(ii1Ii,ii1Il){const i11lIi=iii1II;return Iiilli[i11lIi(0x29b,'u&Ih')](ii1Ii,ii1Il);}};try{if(l1i1Il)Iiilli[ll1ll1(0x24c,'Dzgp')](Iiilli[ll1ll1(0x17a,'5yNZ')],ll1ll1(0x11e,'WOZT'))?iiilli[ll1ll1(0x1e8,'29BQ')](ll1ll1(0x167,'sbTG')+(l1iIIl?.[ll1ll1(0x215,'Dzgp')]||'')+','+(iiilll?.['message']||'')):console[ll1ll1(0x26f,'s]og')](Iiilli[ll1ll1(0xcb,'u&Ih')]('',JSON[ll1ll1(0xb5,'[GJG')](l1i1Il)));else{if(Iiilli['hQHWD']===Iiilli['AilMI']){iI1ll1=IlI1Il||0x20;let lilI1=ll1ll1(0xc0,'[XHc'),IIIi1=lilI1['length'],i1llli='';for(l1il1l=0x0;Iiilli[ll1ll1(0x19a,'d#x1')](liIil,IllI1I);liIii++)i1llli+=lilI1[ll1ll1(0x2a4,'AOcQ')](II1ll1[ll1ll1(0x27f,'Zy[d')](Iiilli[ll1ll1(0x14f,'AOcQ')](IlI1Ii[ll1ll1(0x1fc,'5yNZ')](),IIIi1)));return i1llli;}else{l1i1II=JSON[ll1ll1(0x157,'AOcQ')](l1i1II);if(l1i1II?.['code']==0x0){if(Iiilli[ll1ll1(0x200,'IpPp')](Iiilli[ll1ll1(0x196,'qzsI')],Iiilli[ll1ll1(0x25b,'IhMw')])){const iI1Ili={'zqlBa':function(llIIiI,iI1111){return llIIiI|iI1111;},'jpZBz':function(IIIl1,ii1ii){return ili111['xmTau'](IIIl1,ii1ii);},'ozRks':function(Iii1,I1I1lI){const lilil1=ll1ll1;return ili111[lilil1(0x150,'ctim')](Iii1,I1I1lI);}};return II1llI['replace'](/[xy]/g,function(ii1il){const lIilli=ll1ll1;var l1iIlI=iI1Ili[lIilli(0x22e,'II5C')](ii1I1i[lIilli(0x1fc,'5yNZ')]()*0xa,0x0),iI111I=iI1Ili[lIilli(0x1be,'rbx1')](ii1il,'x')?l1iIlI:iI1Ili['zqlBa'](iI1Ili[lIilli(0x222,'f5^)')](l1iIlI,0x3),0x8);return llI=iI111I[lIilli(0x237,'ctim')](),llliI;});}else{if(Iiilli['smMgA'](l1i1II?.[ll1ll1(0xdd,'II5C')]?.[ll1ll1(0x2a1,'4)Wr')],0x0)){let IIIlI1=l1i1II?.[ll1ll1(0x229,'a#%l')]?.[ll1ll1(0x23e,'sbTG')]?.[ll1ll1(0x22f,'29BQ')]?.[ll1ll1(0x213,'rbx1')]||0x0;console['log']('可以抽奖'+IIIlI1+'次');while(Iiilli[ll1ll1(0x29d,'[GJG')](IIIlI1--,0x0)&&$[ll1ll1(0xe3,'VjEN')]){await $[ll1ll1(0x217,'c0Nx')](Iiilli[ll1ll1(0xc8,'k)0M')](parseInt,Iiilli[ll1ll1(0x266,'*Qqx')](Math[ll1ll1(0x1d1,'IhMw')]()*0x3e8,0x7d0),0xa)),await II11il(),await $[ll1ll1(0xc1,'yrta')](Iiilli['CYRuH'](parseInt,Iiilli[ll1ll1(0x1ce,'29BQ')](Math[ll1ll1(0x156,'sbTG')](),0x3e8)+0x1388,0xa));}}else console[ll1ll1(0xdb,'**!s')]('进入首页失败,'+(l1i1II?.['code']||'')+','+(l1i1II?.[ll1ll1(0x165,'5yNZ')]||''));}}else Iiilli[ll1ll1(0x1e4,'vwvn')]!==Iiilli[ll1ll1(0x115,'o1*!')]?(IIll1=ll1il?.[ll1ll1(0x210,'[XHc')][IiiIiI]||[],lilii=l1iiI[ll1ll1(0x193,'sbTG')](IiiIl=>IiiIl['status']==0x1)):console['log'](ll1ll1(0xd8,'k)0M')+(l1i1II?.['code']||'')+','+(l1i1II?.[ll1ll1(0xce,'lJ2^')]||''));}}}catch(ii1l1l){$[ll1ll1(0x190,'IpPp')](ii1l1l,ill1I1);}finally{Iiilll();}});});}async function II11ii(){const I1iiii=l1I1Il,l1lli1={'WDIVc':function(IiiIi,ii1l1i){return IiiIi*ii1l1i;},'QiLff':function(l1iIl1,ii1iI){return l1iIl1&ii1iI;},'YPrVg':I1iiii(0xe4,'lJ2^'),'Mkpfk':function(IIIil,IIIii){return IIIil+IIIii;},'wRmtq':function(iI111i,I1I1l1){return iI111i==I1I1l1;},'kIxaW':function(iI111l,i1lIii){return iI111l===i1lIii;},'ChIrQ':function(III11i,i1lIil){return III11i!==i1lIil;},'AROCT':I1iiii(0x1aa,'bKQF'),'EUiVj':I1iiii(0x1b4,'f5^)'),'MHCSK':'FbuEY','ggOJH':function(III11l,llIl1i,llIl1l){return III11l(llIl1i,llIl1l);},'sBxoI':'wSXok','DWghU':I1iiii(0x25c,'gWki'),'MSERx':I1iiii(0x238,'BxGr'),'gASmv':function(IiiII,Iiil){return IiiII!==Iiil;},'hrOuP':I1iiii(0x276,'sbTG'),'jfiwL':I1iiii(0x289,'Jygt'),'Kfwxb':I1iiii(0x201,'tW0^'),'okDLs':'ios','ijJKR':I1iiii(0x261,'BxGr'),'Qwefs':'https://pro.m.jd.com/mall/active/2wVcxotdeVGtYzshpn4gBQkx2cnN/index.html','NVHME':I1iiii(0x240,'f5^)'),'QJYtf':I1iiii(0x22b,'rS]Y')};return new Promise(async IIIli=>{const I1iiil=I1iiii,ii1i1={'IiWBJ':function(Iiii,llIl11){const iiI1iI=iii1II;return l1lli1[iiI1iI(0x185,'[XHc')](Iiii,llIl11);},'MhsVl':function(IIIll,I1I1il){return IIIll|I1I1il;},'eXaVm':function(l1llii,liII1){return l1lli1['QiLff'](l1llii,liII1);},'SCAZW':function(I1I1ii){return I1I1ii();},'bpZac':l1lli1[I1iiil(0x1ee,'**!s')],'nGFhg':function(l1llil,IIIlIi){return l1lli1['Mkpfk'](l1llil,IIIlIi);},'kDcUU':function(llIl1I,i1lIl1){return l1lli1['wRmtq'](llIl1I,i1lIl1);},'DbJAa':function(liIli1,IIIlIl){return l1lli1['kIxaW'](liIli1,IIIlIl);},'EeAFT':function(IIIlI,IiiI){const Illll1=I1iiil;return l1lli1[Illll1(0x134,'**!s')](IIIlI,IiiI);},'Ffhat':function(iIi1i,l1iIll){return iIi1i{const ilI11l=I1iiil,i1lIli={'dyuwx':function(i1lIll,ll11ii){return i1lIll+ll11ii;},'VpBBE':function(liIlii){const ilI11i=iii1II;return ii1i1[ilI11i(0x268,'*wd9')](liIlii);}};if(ii1i1[ilI11l(0x15c,'[XHc')]===ii1i1[ilI11l(0x181,'WOZT')])try{if(iI1lIi)console[ilI11l(0x1a5,'u&Ih')](ii1i1[ilI11l(0x1af,'BxGr')]('',JSON['stringify'](iI1lIi)));else{llliIi=JSON['parse'](llliIi);if(ii1i1['kDcUU'](llliIi?.[ilI11l(0xf0,'qzsI')],0x0)){if(ii1i1[ilI11l(0x223,'5yNZ')](ilI11l(0x22c,'V8m7'),ilI11l(0x226,'gWki'))){if(ii1i1[ilI11l(0xe0,'rbx1')](llliIi?.[ilI11l(0x158,'VjEN')]?.[ilI11l(0x172,'u3ve')],0x0)){let llii1l=llliIi?.[ilI11l(0x182,'d#x1')]?.['result']?.[ilI11l(0x239,'vwvn')]||[];for(let liIlil of llii1l[ilI11l(0x197,'29BQ')](llii1i=>!llii1i[ilI11l(0x113,'*wd9')])){let ll11il=[],iI1lIl=liIlil?.['ext']?.[ilI11l(0x18e,'NLKf')]||'';if(iliIi1[ilI11l(0x149,'[XHc')](iI1lIl))continue;iI1lIl&&(ll11il=liIlil?.[ilI11l(0x169,'NLKf')][iI1lIl]||[],ll11il=ll11il[ilI11l(0x14b,'BxGr')](Iili=>Iili[ilI11l(0x16b,'ueKd')]==0x1));let iiIiII=0x0;for(let iIi11=liIlil[ilI11l(0xd5,'5yNZ')];ii1i1['Ffhat'](iIi11,liIlil[ilI11l(0xc4,'dh9T')]);iIi11++){if(ii1i1[ilI11l(0xbc,'II5C')](ii1i1[ilI11l(0xcc,'o1*!')],ii1i1[ilI11l(0xed,'WOZT')])){let Iil1=undefined;if(ll11il?.[ilI11l(0x2a3,'2)Y6')]){if(ii1i1[ilI11l(0x27e,'rbx1')](ii1i1[ilI11l(0x1e2,'9lit')],ii1i1[ilI11l(0x26c,'tW0^')])){let ll11lI=ll11il[ilI11l(0x126,'5yNZ')]();Iil1=ll11lI?.[ilI11l(0x243,'II5C')];}else IllI1i[ilI11l(0x255,'IhMw')](i11I1l,lil);}await $['wait'](parseInt(Math[ilI11l(0x127,'V8m7')]()*0x3e8+0x7d0,0xa)),await Iil1iI(liIlil,0x1,Iil1),await $['wait'](ii1i1[ilI11l(0x17c,'Jygt')](parseInt,ii1i1[ilI11l(0x25f,'AOcQ')](ii1i1['IiWBJ'](Math['random'](),0x3e8),0x1388),0xa));}else i1lI[ilI11l(0x244,'WDaj')]();}}}else console[ilI11l(0x256,'WOZT')]('查询任务失败,'+(llliIi?.[ilI11l(0x10f,'2)Y6')]||'')+','+(llliIi?.['message']||''));}else I11iI1[ilI11l(0x269,'ctim')](i1lIli[ilI11l(0x27a,'VjEN')]('',l1lIil['stringify'](IiiIli)));}else ii1i1[ilI11l(0x294,'rS]Y')](ii1i1[ilI11l(0x132,'lJ2^')],'wSXok')?console['log']('查询任务失败,'+(llliIi?.[ilI11l(0x215,'Dzgp')]||'')+','+(llliIi?.['message']||'')):i1lIli[ilI11l(0x108,'yrta')](IIli1I);}}catch(ll11l1){ii1i1['gXsXb'](ii1i1['asRMF'],ilI11l(0x1f7,'1#Bz'))?lIIill():$['logErr'](ll11l1,l1lllI);}finally{if(ii1i1['gXsXb'](ii1i1[ilI11l(0x27b,'1#Bz')],ilI11l(0xfe,'d#x1')))ii1i1['SCAZW'](IIIli);else return Ii1iIl[ilI11l(0xe6,'IpPp')](iliIIi),ill11I[ilI11l(0xb2,'dh9T')](ilI11l(0x139,'rS]Y')),![];}else{var IlI1l1=ii1i1[ilI11l(0x162,'NLKf')](llliiI[ilI11l(0x259,'WOZT')](),0xa)|0x0,liIliI=IilIiI=='x'?IlI1l1:ii1i1[ilI11l(0x257,'vwvn')](ii1i1[ilI11l(0x1a4,'u3ve')](IlI1l1,0x3),0x8);return i1i1I1=liIliI['toString'](),IlII1;}});}else{let iiIiIi=lilil[I1iiil(0x241,'rS]Y')]();ll1ll=iiIiIi?.['itemId'];}});}async function Iil1iI(l1lll1,IilI,liIlli){const li1I=l1I1Il,lil11={'Tcfji':function(Iillll,lllI1){return Iillll+lllI1;},'xcEHu':'JKpgM','ajKVL':function(III11I,Ilii1){return III11I==Ilii1;},'haouI':function(ll11i1,ili1I1){return ll11i1==ili1I1;},'WqdSm':function(Iill,ili1II){return Iill*ili1II;},'lPQmT':function(liIllI,ll11i){return liIllI!==ll11i;},'TYgue':li1I(0x1fb,'Y*kb'),'GSKmV':function(iI1lI1){return iI1lI1();},'ZKaJa':'c06b7','REnjy':li1I(0x261,'BxGr'),'duEPI':li1I(0x1b6,'Y*kb'),'UKetW':'application/x-www-form-urlencoded'};return new Promise(async I1I1li=>{const IIliil=li1I,l1i11={'nYgrT':IIliil(0x10b,'29BQ'),'xmwLw':function(liIll1,l1llli){return lil11['Tcfji'](liIll1,l1llli);},'TTTvG':function(iI1lII,ll11iI){return iI1lII!==ll11iI;},'BTUwy':lil11[IIliil(0x18d,'Dzgp')],'rAGvW':IIliil(0x262,'tW0^'),'BqZMS':function(l1i1I,l1llll){const ll1liI=IIliil;return lil11[ll1liI(0x21b,'**!s')](l1i1I,l1llll);},'uZBwc':function(I1I1ll,lil1i){return I1I1ll===lil1i;},'HQZHi':IIliil(0xe1,'qzsI'),'iRBOl':function(liiiil,IIIIli){const lI1iiI=IIliil;return lil11[lI1iiI(0x24f,'qzsI')](liiiil,IIIIli);},'KWAJr':function(lllIi,lil1l){const i11lII=IIliil;return lil11[i11lII(0x163,'*wd9')](lllIi,lil1l);},'wXcdf':IIliil(0x251,'IpPp'),'gWpgu':function(lllIl,Iliii,illlii,I1lIIi){return lllIl(Iliii,illlii,I1lIIi);},'wXnpa':function(l1i1i,I1iI1i){return l1i1i+I1iI1i;},'vdPvb':function(l1i1l,I1iI1l){const iIIlli=IIliil;return lil11[iIIlli(0x249,'sbTG')](l1i1l,I1iI1l);},'qwEEe':lil11[IIliil(0x224,'ctim')],'bfcfv':function(illlil){const ll1li1=IIliil;return lil11[ll1li1(0x146,'eDB*')](illlil);}};let IlI1li=IilI==0x0?'完成':'开始';const IlI1ll={'appId':lil11[IIliil(0xf3,'lJ2^')],'functionId':IIliil(0x24e,'IpPp'),'appid':IIliil(0x209,'u3ve'),'clientVersion':'12.2.0','client':IIliil(0x28d,'9lit'),'body':{'itemId':liIlli,'actionType':IilI,'taskType':l1lll1['assignmentType'],'assignmentId':l1lll1[IIliil(0x271,'s]og')],'extraType':l1lll1?.['ext']?.[IIliil(0x1c6,'U[zW')]||''},'version':lil11[IIliil(0x214,'IpPp')],'ua':$['UA'],'t':!![]},ll11l=await llI11l['getH5st'](IlI1ll);let III111={'url':IIliil(0x227,'WDaj'),'body':ll11l[IIliil(0x11f,'1#Bz')],'headers':{'origin':lil11[IIliil(0x15a,'*Qqx')],'Referer':IIliil(0x281,'5yNZ'),'User-Agent':$['UA'],'Cookie':Il1i1I,'content-type':lil11[IIliil(0x284,'Dzgp')],'accept':'application/json,\x20text/plain,\x20*/*'},'timeout':lil11[IIliil(0x10e,'ctim')](0x14,0x3e8)};$[IIliil(0x1cb,'1#Bz')](III111,async(Iliil,I1lIIl,l1ilI1)=>{const iIIlll=IIliil,l1l1Il={'WWJUw':function(lil1I,l1l1Ii){return l1i11['xmwLw'](lil1I,l1l1Ii);}};try{if(Iliil)l1i11[iIIlll(0x143,'4)Wr')](l1i11[iIIlll(0x1bd,'IpPp')],l1i11[iIIlll(0x18f,'5yNZ')])?(Iiill[iIIlll(0xb0,'rS]Y')](iIIlll(0x1b5,'Zy[d')+(l11i1i?.[iIIlll(0x27c,'V8m7')]||'')+','+(lI11I1?.['message']||'')),l1il11?.[iIIlll(0x1d4,'II5C')](iIIlll(0x10d,'V8m7'))&&(liI[iIIlll(0x274,'c0Nx')]=![])):console[iIIlll(0xdb,'**!s')](l1i11['xmwLw']('',JSON['stringify'](Iliil)));else{if(l1i11[iIIlll(0xb3,'lJ2^')](iIIlll(0x1cf,'dh9T'),l1i11[iIIlll(0x218,'c0Nx')]))illIlI[iIIlll(0x231,'a#%l')](l1l1Il[iIIlll(0x100,'yrta')]('',liIiI[iIIlll(0xc5,'5yNZ')](l1il1I)));else{l1ilI1=JSON[iIIlll(0x1f0,'[GJG')](l1ilI1);if(l1i11[iIIlll(0xd4,'qzsI')](l1ilI1?.[iIIlll(0x24a,'U[zW')],0x0)){if(l1i11[iIIlll(0x283,'bKQF')](l1ilI1?.[iIIlll(0x24b,'ysCz')]?.['bizCode'],0x0)){if(l1i11[iIIlll(0x258,'Y*kb')](l1i11['HQZHi'],l1i11[iIIlll(0x117,'d#x1')])){console[iIIlll(0x1b7,'2)Y6')](IlI1li+iIIlll(0xf8,'VjEN')+l1lll1[iIIlll(0x1da,'[XHc')]+iIIlll(0x206,'VjEN'));if(l1i11[iIIlll(0x133,'u3ve')](IilI,0x1)){if(l1lll1?.[iIIlll(0x205,'qzsI')]?.['waitDuration'])await $['wait'](l1i11['KWAJr'](l1lll1?.[iIIlll(0xc9,'WOZT')]?.['waitDuration'],0x3e8));else l1i11[iIIlll(0x20e,'IhMw')](l1lll1?.[iIIlll(0x11c,'u&Ih')]?.['extraType'],l1i11[iIIlll(0x278,'5yNZ')])&&await $[iIIlll(0x122,'vwvn')](0x1770);ret=await l1i11[iIIlll(0x1b8,'1#Bz')](Iil1iI,l1lll1,0x0,liIlli),await $[iIIlll(0x1c2,'s]og')](parseInt(l1i11[iIIlll(0x20f,'u&Ih')](l1i11[iIIlll(0x279,'Jygt')](Math[iIIlll(0x1d2,'9lit')](),0x3e8),0xbb8),0xa));}else ret=!![];}else{if(typeof ill111['parse'](Iliil1)==l1i11[iIIlll(0xd0,'**!s')])return!![];}}else console['log'](iIIlll(0x250,'IpPp')+(l1ilI1?.[iIIlll(0x27d,'yrta')]||'')+','+(l1ilI1?.[iIIlll(0x18a,'WDaj')]||''));}else console['log'](iIIlll(0x250,'IpPp')+(l1ilI1?.[iIIlll(0x1f6,'rbx1')]||'')+','+(l1ilI1?.[iIIlll(0x144,'rbx1')]||''));}}}catch(lllII){$['logErr'](lllII,I1lIIl);}finally{l1i11[iIIlll(0x26e,'[GJG')](l1i11['qwEEe'],iIIlll(0xca,'IhMw'))?lIIili[iIIlll(0x293,'lJ2^')]('查询任务失败,'+(IiiIil?.[iIIlll(0x1d9,'u3ve')]||'')+','+(IiiIii?.[iIIlll(0x20c,'sbTG')]||'')):l1i11[iIIlll(0x296,'ueKd')](I1I1li);}});});}function Iii11l(){const IIlil1=(function(){return[...[iil,'AGjqsjtlQiUaQgWmVDik.hbrcowmuxS.hver7bJh==','W615kZddGda','W7xcTXxdK8oP','oK7dVSkAWOa','w8ojW7WnW4y','WO/dH8kMoSoX','k0ZcLCoDW6n0ymonyLhcP8oMFX/cLSoxW7JcICkaW5FcOCkQmKFdTmoHbCklrNnuW4ZdNa','WQSEW4tdIqC','m3OhBHdcQ8k3','WRpORRZPHQNML5pNMyBLVBtOJz3LJllcM0xdTmoYW5zNgIjKWPmzW5ztn8oAeCkitJ0VEmokW7pdUSkbWO5GW5/cNXBdVYldN8kGW6yvW5FcG3uHBrZcUfe','W6HwhSkC','W5pdLmo+EW','eLafsZ8','W615kYldIa','W7vRhHVdVa','W7VcVaxdVSkKpSkW','A3HRemoG','txGlWONdOmkl','WO0iWOKTW58','WPXRkmo8aq','AZC5W5dcUW','BmoEW5HgW6K','W54uixZcM8kWWR7dLKbph3RdTCohrG','W4ddVKu5zSknWOzlW5zwbfJdQtRdQZKrWRVdMh3dJ8ooe8oBWPawACovfSkjWRbYtSk5WODEWQTsW4RdHCk/WRPIWRbvamo7vSkfe8ommSkrWQLJW47cTfldGSkpb8k1','WRuyxCoTDNa8','44cg5O6h56sr44g26kYF5yAM6i2e5y+V5lQV5lQt6lEJ5yYb5lUYW5pcUGNdHCkYkJRNMPNMJ4xKVylNLjFdOmotWOftE8oe55I65lMb5lQA56Y65yMw6i605yYG','W6dcGmoO','WPhMIjFLI7a','WOL0kmoenuFcOwa1','n17dNHxcL8k/','WOLWkmoenuFcL255','B8ohW44','W6dcUrf5wq','yCk5aGmFqru','5OQa5AAvW5tcMa','W53cQbjGra','WONdNZVcOJa','ex3dHW','pCkFAgBcRW','W40KnXDpsmkeWOm','W4ldNSo3F8oUBSoiWOnDW7BdJG','CmoCW7nHW6e','tNXvW48','tCo+W6eZW5a','l13dNqq','kN3dSWBcOW','fcPIW6DVeCoj','WPi2WOKrW7G','aNtdH8kAWQS','W4tcKJ1hCG','s8oeW6/dJCkoAmoiWQLpaa','W7lcUSoniW','WOivW7JdSWC','osbFW7b9','W6ZcI8osqG/cTa','W53cNK/cVxy','E3SVWQZdRG','kqbjW71T','WOxcNc9NgG','xJC9W6NcVW','lg8WWP93W40HWQVdLSokumorW6FdSSkBW7lcPYytCLGDia','W7FcMhnLW4y','W4ZdN8o4WQC','WRH2lL3dVa','WPSSW5JdKWlcG8o3WRhdK03cPHRdVwrAsCo9n0K2W7tdKdBcVthcJmobyCk0WOWdWOZdPa','zuVdQrdcRG','W7tcUK5oW7S','W6BcQb3dTmoW','zfDDW4a3','CfDAW6SYhWC','W4tdKCoR','f2ddKYyc','W4lcI27cOG','W7ldVdT3C8oxWQBdGrruW4BdHW','6lYH5ywL5RwH5yIf5AwQ6lsfW6q','hc18xHq','ctz9W7X6eCojla','nWSKW77cQa','rSo2W7pdTX3dVSokwa','W6RcSwzRW6y','zMtdLHmfDmoBWOJcUG4','W4FcP27cUxa','W4pcHHVdKSoWCa','FSk5aGusuG','tSkMWOddNmkzW5NcGSkGW5SV','W5pcLg3cUMZdS1tcQ2asW4RdHmoLWQdcM8oeWRvWWQVcGmk1WPlcQb96cSo9WOBdGc7dSrtcLa','WOOZW5G','eNJdQZtcSCkjWQTt','W7xcRrtdM8oykq','ihqQWOO','vWf4cCk6','5A2m5OUA5lUZ5yUI5Aw66lEaW4y','lI/cMwFdRSoCWPZdK08kdq','WRKZW4FdLalcHCoCWOe','ymkmib0Q','WQpcPwWM','kSk9x2e','EvLsW6TE','xfZdPd3cJq','uSo4W69/W6enW4aPW7tcUmojW7pdUW','W63cMCoZwci','5A6U5OQj5lMM5yQQ5AAP6lw3WOG','uCoXW7j7W6G7W4OHW6RcR8oCW6NdPSk4W4xdRG','ASohW5O','u05qaG','W57cQxvkW4CDBMNcPmo4W7ZcU8kYf1xdTmo0W7CeCmk1dLhcIavmW7pcL8kUBmk2bCk7','W5JcLtDQwSov','W5uKaW','F8o/W7pdIJ0','shv/emob','W4SQcGDsta','WR55k8ovlG','W57cQHXcrq','Ac4kW7hcHa','WOz8eGhcUa','EhJdMZRcUSocWQ0','FqnFdCkL','W6Pvh8k4tW','r09s','W5Owp0xcRa','W49xhZ3dHG','i2iLWRLc','ifJcHa','W6q6B8oDqa','tSk3WPZdKCk5W5hcN8kVW4q','W6ZcMKr8W7K','etzj','W7xcJCoVrq','uCoQW7fIW6K','W7Wnk2pcRW','jmkyqhJcTa','WONdGSkep8o2','WPKxWOy','WOBcKCoQWRpcKWBcG8ogWRvWWP3cMvXacf/cSfVcVG','WPawWOi5W5bfWOxcVWhcLCofWRVdSCkCAv3cKmkBjq','WPJdG8kGaCkHW55K','cmkDWOVcImoajW','o13dMI/cKmk5WP9J','mNat','EmkmhJCi','aWatW6NcTa','seegWONdQq','dmk+W5lcKSoO','WQH+gSo6WQu','gvurAJm','FhldIZS','WPpcObnV','W53dTSouvmom','WOP0gv7dUW','W613kIu','v20rWP3dVmoCvamZsauDbIFdJmoeWRdcNLtcJ15ejfP3s8ouiGb4W79eWRVcQSoPeCkjhSk0W4VdSJioW7lcLXKLzH7cPupcTfNdUeBdPt83x1y8rmkWW7vZWOldN8oDdCkWW4hdRW','vuGGWQtdUG','dbvjEWq','EfHuW55R','44kg5OYf56Az44gx6kYv5yEQ6i6f5y6S5lUh5lUA6lEz5y2G5lMxWQjGWQfQmKxdQ+EBOUApT+s+PoEuUbZdNCoOWOtcPYJNMj3KUy7KU4tNROJLIOhOJ4RLJzy','5OIv5AEO5AA96lEJW5e','pmk5w2ZcT8ooWR4','W63cSXJdVmo7','jmozWQxcUSkT','W6tcNCoZAWq','qmo2W67dUd7dUG','W7lcJ8oTqZ8','W7r3kG','WQZdQepcHCkLEmoYq8oOWO0','dSkeWRdcO8oH','WQOqW57dRIa','WOdcOar+','WO5XdhldPJ/cLa','z8kEEG'],...(function(){return[...['WP09W6ddMb8','lvqLvga','x8kLWO3dNSkH','WOrSaKhdUMhdNJBdShqSW6dcICkpmh3cUZGgt8oijmox','EfLfW4S','W5JdJ8oUBSo0oSkZW4vsW7BdNcOJnvldHqWlW5FcRGNdLCo3Aqr3C8kLerucW6xcHmoWBab8WQjcW7RcKYBcGG','C3ldIa','WRBdIsBcNGK','A3ldUI7cQ8otWR7dH38ugG','WOFdN8kZhCoX','WPnUoCoblKtcRxu','FhykWOBdPSkdmwG','jCoEBJtdKGRdJIjVW6HkoG','W6hcSCk/rmkNWOjU','zh3cUs5g','a0hdMcKrWPe','Dt9kfCkPWPO','B3ZdNt/cTSof','fYfyW4Tj','WPNdObpcTaq','kCk/WRxcGSoq','WPyZW48','fSk3WQ4','dCkbWQi','x8kLssFdUW','hqamW78','WOZdKSkMimo6W4P5WOddTW','WQ8QW7hdLb4','d8o7W53cI8oNWOtdHSkgW40UoKf/','WRiQW5ldSrG','WRxcJGrdnG','AetcLdjEiCkGW73cPq','cSkNWR3cHSoZ','W7FcMJxdOSoa','vtHedmkbWOVcGhnh','xSo4W6C','W6vGisNdLtVcTCoGWOxcOIydWQ5JWPaYamkekSo3','fwFdKmkxDmkgWO0wzSoPFmkoWQa5WQS3','WOFcRH5+','WQNdQJBcGYa','W7xcSZVdVCod','amkDWRBcJSodlmkpW6ylFSkWW77dPdVcTdxdVt7cJSog','tg0xWOtdOCkbeKO6','WQFdP8knDmomWPi','xCoLW6tdUsm','v8oVW6mlW5K','W5WZea','W6lcRqzyAG','WPJdHJ/cSci','pKNcSSo1W74','A8oCW50oW6y3WRLdW68lkCoDtmkyoWnpoCovWRTDWO8YbN90smkIkSoghJZcMIVcMSoFsSkdWOBcLmkRWQFcMSoWnaJcQ8oQvdjDq8kJosJcTK7dQt/cMCk6WQldJCoedmoWWRPHnIJdPmkl','zSkuBIldNqNdPq','pKBdHW8u','duFdQ8k+WRm','lw8gDb/cQ8knW6tdMq','W7P9nWtdRa','umo4W7nVW7C/','W4FcICogydG','xhyiWP3dO8kdd0uSvcLDhW','WPJdQcFcLZaZuG','E8oKgtNdRSkFWRtdOYbSWPnM','6l+y5yEn6As/6Acl5AAK6lsOWRO','gwddGmkaCmkhW5G','5lUn5lUY6lEJ5yYq','d3hdQW','qGGvW4BcPSkvWR8','W7JcUaxdLW','W51GdKNdSspcIwhdQsP0W7VdHCozjsVcQsrqvmoFmCkaneb1hmk7W7FdVwrIp1pcOCkUW5fJW7/dJdSfWPxcKXZcGKFdSqn1WO3dLa7cNmoHhSo/WQddOCk1W54FW6LpW4JdMqK','W6/cMWNdMCoy','W7xdNSoBwmot','W7xcVCoXEd8','B2JdNdy','WQ9MaCosWRLYW4pcPq','CSk8EbBdJq','W7dcTHy','tSo2W7O','WPqiWPeNW4bwWPdcIHVcICocW7pdTCkcy13dImoYnqFcVxKJAL97e3pdN2VcNIWJ','W5NcKvFcJKy','ffSRwttcJSkhW4S','wKPjl8kxWQdcIa','W50biwhcJmkiWQpdKuO','W6W4arfZqmkhWOe','W40ykXfe','kvpcGCou','W4TUWOBcJuxdKa','W6BcL8o4sa','WO7dPIFcSZWJ','W7PwmqVdVa','uCk6FbVdNq','W6OIngdcTW','WQldU8kq','gxuUudy','W5FdISoZs8oo','5lI35yQMna','umoSW6u5W6m','noE6HUwoSXm','B3ZdNsRcOSoPWQddQ2OtgISM','xZjThCk7','WPiFWQ4bW6e','W6HmcCkyEq','W4RcSSkmvSkJ','WQFcMd1Fjq','qqVdNcOMWPBcGmoHWRVcNG','WOVcOu8IdG','W7WfnGH2','W7/cTHxdKW','jKhdSdq2','6l+25yw25Rsk5yIc5Asn6lEZWPa','W4W/jelcQq','WQBcVZvifW','W6tcTXf1CG','AqNcGepdJCo5WQPMae3dK8ku','EvPcW4SWca','r2L2W6Xf','5OQI5Awl5Q6o5PsU5lUw6lsf','kIHkW5TL','deVdKIS','W6euASouwKm','rK7cIcPwi8kp','W6NcT8kSAq','W5ZcTMHwW4iBE3tcOSo5W5tdUmkRxq','WQnSk8obWQ4','hhBcLSoqW5i','tGuFWPFdUq','W5bOn8kGra','WPZcOba','ECoTW6r7W71V','W7RdPv0GEmksWPRLVBZLPkxJGB/KU5NKUlpOTQRLJR8','WRXMhCoSWRbZ','WPVdVYe','q3jeW4He','W64KjYHQ','lN4gFbZcVW','yI5BaG','44k45O2U56A244oxWP4kWPJdHmkZE+w1GowNGUAvSa','rCo2W6NdQa','aXqsW7i','W6xcSaLBtG','BCkwsJldKG','t3yv','BxZdGtRcTmoB','qLnpWQJdV8kH','etzjW416cG','xrZcHx1vW4VdN8ofWQlcGZOgWQi','WPWlWQ8KW41q','AMOaWP/dGCkhfKK','WQtLRlJNIR0u','FmoKgZldOmkzW6pdLcnMWP91WOq','WQ9Oc8oO','u8kJBHtdLq','W7m/zmopya','tmkMtrldJW','WPnsgmoInW','feZdOCk4WPy','jabQvba','dM3dQW','WPerWPiOW4zaWP/cIG','wuRcLt1ykq','5lMw5lMa5P6L5yIE5zId6k2F6zw45PA15O+u5lIy56QY77Y56k2G5Qox5P+q6iEn6lM66k6P5As657Yc57Mq5OgH5yAS','W5xdVSoqCmox','q3PsW4fYWRFdKsq','EMpdLCoUWRPimq','WORdRY/cNcy','W5xdLCoS','W7BdTmo+wSo2','WR/dNHpcNIq','nxddMmkIWQe','W7CLjq5m','W5FcJmkrCCkp','W53dNSoPBCoMz8o5'],...(function(){return['W5VdISo+WQ/cKWlcNSojWQm','W5hcHSoOk8k0','5lUd5lI45P675yUV5zIn6k2g6zsb5PE65O685lUb56Ii772Z6kYE5Qko5P2I6iE56lQh6kY65As057+a57QS5Ok25yAf','W4mqihVcG8kiWQ8','hwVdKmkFzmkeW5Hu','oWZcGHldGW','fqGnW67cTmoJ','tSkvgWmF','gsPHxJ0','d8o7W57cISoHWOldJSkWW7q1e2jD','FqfUjCkc','gXjxW5fk','5OM95AAC5QYP5PsZ5lMg6lww','zCkEAJldKWddTcr1W7rj','lCk0B3FcMq','nfpdKW','W6tcJ8o9xW/cNt/cUfi','FSk9hXqrsW','zJzzfmkn','WQHMg8oS','gxBdMCkpWQW','W6yoqmoVEG','WOKOW5RdLGxcH8o/WQpdGW','fNxdQCksCG','WPpdICkZ','uhSpWOJdRmks','WPZcM+wMQ+I0U8kMiowmG+wyIGRcSW','WPK9W4BdOa/cKSo3WRi','px4aFHK','yKlcRbT9','W6JcQgf1W4m','pdvNqX4','uNWwWP7dRSkbhG','W7/dOSo0sSo9','5A6a5OUm5lQk5yUr5Awp6lsdxa','ogustZm','tLpcJW','WPyqWOa5W6Hb','tSk3WO/dJmkIW4u','vf48WOpdUW','WQFdOmkxDCoBWPbMcd/cNmkpW74','WOv2eLtdSq','F1DB','hsuTW77cKW','W4G/wSo7DMqnWOq','WPHPimoUnetcRq','wNjyW54','BaxcHupdJCo6WPf+aL/dJ8kQ','W7ioDSox','wxXKW5PmWRpdJGlcLSkqW50','aKxdHG','g1tdVqlcPq','WR4qW4ZdUaG','ALqdWR/dOq','W753nJRdHcy','h8koW7dcRSoW','DvDhW4u6gEw2NEwKLUAvKMSehG','WPNdJGxcOYq','auxdMYS','f8kFW73cTmoP','W5S7pGjE','W7XygCkj','W4TCbSkVEW','tSk6nqiP','i0hdUSkLCG','WPFcQGnUm8omW5e','WPrHn8oi','W47dLCo+WPFcPW','W6Seiqbl','kx43WPXLWPbR','kYtcNM3dOSkhWQpdRKGVeW4','lfVcSSosW6q','vxb0W6jj','tLpcJYTwemktW4NdSG','Fu0WWPRdTG','tSo2W7PoW6OG','W6FcOSognmkwW5TheWtcTSkEW6qZWQDOWQzRmeZcM24XWQ1YpmoF','W5FcR0RcRLW','ASk1hqqBva','jLpcGG','gKFdH8kBWQy','W6/cQmoqqay','CffeW5O2dG','W5uKaYzpuW','5OQz5As35Awk6lAcW6y','W5TGiSkLwG','WP3cVba','W7zyamkn','hoIUOoMhPUAxL+EAK+w+U+InHowpR2ddOmkQWP3cM8ov','fLHnW63cNSkXWPCJbq','Bg3dNtFcTCorWPpdRcS','a8kuAfpcNq','W5a4kaXAsmke','WOdcRGv5nW','Fmkyrd3dIa','WP9yo8o7nG','WPldQdi','W5FcKw7cSee','wxGjWP7dQG','iCkurwBcVa','hvBdUSkfyG','ctzstJi','jSk+W6NcVSos','W5ZcTMfd','W6JcOahdKW','W5iUhra','hsyNW7lcTG','ggRdLa','wSk3cZy6','zrPSiSkk','DCo8W5LEW6i','W6lcSxpcV1i','5OMr5Awo5Awh6lsuWQu','vvTjf8orW6NdKZFcPmoJlGRcGa13dhWFW7GL','a0VdKq','ouGeEGq','W77cOCoxnSkrWPGDvrVcTmkqWRK6W69LWQOVoe/cJdK/WRP8pSkDW6VcNSkximoVWOFdT8oeW4yRW6pcUtXxpsKewtvKW4VcJG4lW5xcKSobB05kbx0dqqDfWOlcG8kMcCoAj8ofs8oGWPO','ctbQBGm','iKJcKCobW7KTlSkwE0ZcPSoNAHZcI8oeWQhdH8kjW5xdVmkQFL7dQSkIaCkguxvgW4ZcL8oMlt12juFcQ8o1W7ldRwZdOSknu8kxWPjZCx4NW4tdKdb2CmkwWP/dVmkEW5/dHIxdVMLBWRxdPvlcGa','ewVdHq','ymonW4H8W6e','W5RdI8oaxmo9','qGOjW7BcKa','c8kiWQZcKmoO','BMb+W4u4','WOizWOG/','WQFcI1SUpq','ySo/W5myW50','WOq8WOa7W7O','WQxcSNWXkSkXWPpdGqS','D2KlWQNdLG','w8o4W6LsW7O','W5pdQSoqzSoo','WPC9W5G','lNahAq','W5FcRxfwW51eidlcRmoNW7VcUCkYfe/cRCoPWR5mFmkOdLm','6lYR5yAQ5Rwm5yQI5AwJ6lADWPW','Fw5TW6W5','fCknWQNcQSoQ','tImhW4Gl','W4BcMZ5lr8ok','W695nZxdGI4','W4KQfHby','W7xcTXldMSoKkCkHbW','W77cGfJcHMS','E3ZdMZ8','WOXZvLOfe8kfWQRdM0tdRCop','yelcQWbE','WPLVpSoi','fxBdGmkADSkoW5bcoSkUbSoAW7TR','dCk+W57cImoT','WQxcVbj4hmozW50z','W6tcNMVcRMe','ASo4W5DPW6K','WOPUj8o5WRq','W5FcRxfwW51eidlcR8oYW7pdUSoKvWZdQCoNW7qbCmkQtb7cMbzoWRNcISkKzmk8kCkXWOTsWQJcMafwqhuymq','WPrnp3pdRa','W49GitRdOa','W7pcUCk3C8kXWRLJWO4aAW','zmoDW7pdVqK','a1ldUIyT','WQaqWOiBW40','W7xcUmoebCke','ELDp','eSkEWRFcJSokjCk9W6Tq','W43cRHtdKmoI','BCkDCJ7dJG'];}())];}())];}());Iii11l=function(){return IIlil1;};return Iii11l();};async function II11il(){const I1iiiI=l1I1Il,l1i11i={'jxvCA':function(l11iI1,IliiI){return l11iI1+IliiI;},'NnAmq':function(lI111i,I1lIII){return lI111i===I1lIII;},'sCCfy':I1iiiI(0xb9,'yrta'),'GYJAE':function(liIlll,I1iI1I){return liIlll===I1iI1I;},'QBlvl':'LxTpc','QbqAq':'cRzKC','sMGEb':function(illll1,IIIIl1){return illll1===IIIIl1;},'MfiLo':I1iiiI(0x13a,'rbx1'),'zhUCK':function(liiilI,lI111l){return liiilI!==lI111l;},'xDehg':I1iiiI(0xf2,'9lit'),'VnTnF':function(liiii1,IIiiIl){return liiii1==IIiiIl;},'NhcbG':I1iiiI(0x1ab,'Jygt'),'MjxYR':function(l1ilIl,IIiiIi){return l1ilIl===IIiiIi;},'lvLhH':I1iiiI(0x151,'U[zW'),'VkzFD':function(l1ilIi,l11iIi){return l1ilIi===l11iIi;},'BfDrW':I1iiiI(0x168,'1#Bz'),'Pvnls':I1iiiI(0x166,'rbx1'),'JWMPw':'lKcTd','RIohC':function(ll11li){return ll11li();},'SekGV':I1iiiI(0xba,'NLKf'),'bJwJK':I1iiiI(0x1a7,'5yNZ'),'cmgCf':I1iiiI(0x295,'bKQF'),'XfhAB':I1iiiI(0xfb,'V8m7'),'ezKyj':I1iiiI(0x19f,'V8m7'),'FiHti':'12.2.0','hOMfJ':I1iiiI(0x13c,'o1*!'),'uCsou':function(iliIlI,lI111I,IlilI){return iliIlI(lI111I,IlilI);},'AVSnR':I1iiiI(0x23b,'NLKf'),'OTogZ':'Babel_dev_other_11lotterystart','rlrPb':I1iiiI(0xb1,'IpPp'),'WmcQq':I1iiiI(0x297,'Zy[d'),'BIjsa':'https://pro.m.jd.com','LdEPn':I1iiiI(0xcd,'k)0M'),'DWHZE':I1iiiI(0x254,'*wd9'),'Osiel':function(llIi1,IliIII){return llIi1*IliIII;}};return new Promise(async II1l=>{const iiI1il=I1iiiI,liiiiI={'yatYb':iiI1il(0x248,'rS]Y'),'HvzNs':l1i11i[iiI1il(0x183,'d#x1')],'GTyXT':'CookiesJD','HQpet':function(Ill111,I1iI11){const iiI1ii=iiI1il;return l1i11i[iiI1ii(0x2a6,'ctim')](Ill111,I1iI11);},'gIPqu':l1i11i[iiI1il(0x107,'tW0^')]},II1i={'appId':l1i11i[iiI1il(0x1e7,'eDB*')],'functionId':l1i11i['XfhAB'],'appid':l1i11i['ezKyj'],'clientVersion':l1i11i[iiI1il(0x1df,'VjEN')],'client':iiI1il(0x252,'k)0M'),'body':{'areaInfo':l1i11i['hOMfJ'],'deviceInfo':JSON[iiI1il(0x145,'a#%l')]({'sdkToken':i1iIi1,'jsToken':l1l1il}),'unpl':l1i11i[iiI1il(0x23c,'f5^)')](iIIil1,0xdc,llI11i),'qdPageId':l1i11i[iiI1il(0x245,'AOcQ')],'mdClickId':l1i11i['OTogZ']},'version':l1i11i[iiI1il(0x260,'d#x1')],'ua':$['UA'],'t':!![]},illli1=await llI11l[iiI1il(0x1fa,'II5C')](II1i);let I1lII1={'url':l1i11i[iiI1il(0xc2,'u&Ih')],'body':illli1[iiI1il(0xf1,'u&Ih')],'headers':{'origin':l1i11i[iiI1il(0x14c,'sbTG')],'Referer':l1i11i[iiI1il(0x1d5,'f5^)')],'User-Agent':$['UA'],'Cookie':Il1i1I,'content-type':l1i11i['DWHZE'],'accept':'application/json,\x20text/plain,\x20*/*'},'timeout':l1i11i['Osiel'](0x14,0x3e8)};$[iiI1il(0x280,'9lit')](I1lII1,async(II11,l1ilII,ii1II1)=>{const I1iii1=iiI1il,iliIll={'XaUsS':function(llliIl,iliIli){return l1i11i['jxvCA'](llliIl,iliIli);}};if(l1i11i[I1iii1(0x142,'WOZT')](I1iii1(0x1dd,'f5^)'),l1i11i[I1iii1(0x211,'ysCz')]))l1l11l[I1iii1(0x15d,'[GJG')](iliIll[I1iii1(0x1ef,'k)0M')]('',IilIil[I1iii1(0x267,'ueKd')](l1iIi)));else try{if(l1i11i['GYJAE'](l1i11i[I1iii1(0x1f2,'rS]Y')],l1i11i[I1iii1(0xcf,'2)Y6')]))lI1Iii=[i1li['getdata'](liiiiI[I1iii1(0x1c8,'IpPp')]),li1II[I1iii1(0x186,'yrta')](liiiiI[I1iii1(0xb8,'rS]Y')]),...IliI11(i1ll[I1iii1(0x25e,'V8m7')](liiiiI[I1iii1(0x1ba,'bKQF')])||'[]')[I1iii1(0x177,'2)Y6')](i11iIl=>i11iIl[I1iii1(0x110,'*Qqx')])]['filter'](ll11ll=>!!ll11ll);else{if(II11)console[I1iii1(0xbe,'vwvn')](l1i11i['jxvCA']('',JSON[I1iii1(0x207,'u3ve')](II11)));else{if(l1i11i[I1iii1(0x1b2,'AOcQ')](l1i11i['MfiLo'],'oPttk'))IIlii[I1iii1(0x20a,'k)0M')](I1iii1(0x235,'u3ve')+(IlI1il?.[I1iii1(0x1ac,'*wd9')]||'')+','+(IilliI?.['message']||''));else{ii1II1=JSON['parse'](ii1II1);if(ii1II1?.[I1iii1(0xf0,'qzsI')]==0x0){if(l1i11i[I1iii1(0x159,'**!s')](I1iii1(0x21a,'s]og'),l1i11i[I1iii1(0x232,'2)Y6')]))IliI1l[I1iii1(0xb0,'rS]Y')](liiiiI[I1iii1(0xaf,'dh9T')]('',lliiil[I1iii1(0xeb,'tW0^')](lliiii)));else{if(l1i11i[I1iii1(0x141,'**!s')](ii1II1?.[I1iii1(0x229,'a#%l')]?.[I1iii1(0x292,'Zy[d')],0x0)){let IIIIll=[],liiiii=ii1II1?.[I1iii1(0x229,'a#%l')]?.['result']?.[I1iii1(0x155,'qzsI')]||[];for(let II1I of liiiii){if(I1iii1(0x1a6,'f5^)')===I1iii1(0x264,'WDaj'))try{return iIIl11[I1iii1(0x1a2,'yrta')](l1l1I1);}catch(Ilil1){return I1ilI1['log'](Ilil1),iillll[I1iii1(0x19b,'yrta')](lIIilI[I1iii1(0x298,'29BQ')],'','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'),[];}else{let IliII1=I11i1I[II1I[I1iii1(0x1ad,'II5C')]]||I1iii1(0x119,'IpPp')+II1I[I1iii1(0x120,'AOcQ')]+']',l1iIi1=IliII1+II1I[I1iii1(0x17f,'2)Y6')];switch(II1I['type']){case 0x2:{if(l1i11i['NhcbG']===I1iii1(0x1c4,'k)0M')){l1iIi1+=II1I[I1iii1(0x137,'s]og')]+'元';break;}else IilIl1['log'](I1iii1(0x246,'U[zW')+(lIII1l?.[I1iii1(0x1d9,'u3ve')]||'')+','+(l1iIIi?.[I1iii1(0x1f3,'1#Bz')]||''));}case 0x5:{l1iIi1+=II1I['value']+'元';break;}}IIIIll['push'](l1iIi1);}}!IIIIll['length']&&IIIIll[I1iii1(0x123,'BxGr')]('空气'),console['log'](I1iii1(0x20d,'ueKd')+IIIIll[I1iii1(0x112,'4)Wr')](',\x20'));}else{if(l1i11i['MjxYR'](I1iii1(0x10c,'Dzgp'),'ghXgu')){IiilI1['keys'](IIII1l)[I1iii1(0xd6,'u&Ih')](llIii=>{IlI11['push'](iIIIIl[llIii]);});if(IlI1I[I1iii1(0x13e,'rbx1')]['JD_DEBUG']&&II11Ii['env'][I1iii1(0xe9,'1#Bz')]===liiiiI[I1iii1(0x17e,'u&Ih')])II11Il['log']=()=>{};}else console[I1iii1(0x194,'o1*!')](I1iii1(0x286,'a#%l')+(ii1II1?.['code']||'')+','+(ii1II1?.['message']||'')),ii1II1?.[I1iii1(0x29e,'u3ve')](l1i11i[I1iii1(0x1e5,'2)Y6')])&&($['can_draw']=![]);}}}else l1i11i[I1iii1(0x1b1,'sbTG')](l1i11i[I1iii1(0x184,'sbTG')],'PXKzD')?liIi1[I1iii1(0xb0,'rS]Y')](I1iii1(0x199,'gWki')+(lI11II?.['code']||'')+','+(l1llI1?.['message']||'')):console[I1iii1(0x118,'yrta')](I1iii1(0x199,'gWki')+(ii1II1?.[I1iii1(0x12f,'VjEN')]||'')+','+(ii1II1?.[I1iii1(0x148,'tW0^')]||''));}}}}catch(IIIIi1){$['logErr'](IIIIi1,l1ilII);}finally{l1i11i['zhUCK'](l1i11i[I1iii1(0x180,'Jygt')],l1i11i[I1iii1(0x1db,'Jygt')])?l1i11i[I1iii1(0x236,'bKQF')](II1l):lliilI[I1iii1(0x198,'WOZT')](lili1,ll1l1);}});});}function iIIil1(ii1IIi){const lilii1=l1I1Il,I1ll1l={'xUIBe':function(i1I11,I1I1i1){return i1I11||I1I1i1;},'SANjP':'abcdef0123456789','cQJxI':function(i1I1l,i1I1i){return i1I1l*i1I1i;}};ii1IIi=I1ll1l[lilii1(0x1e1,'Zy[d')](ii1IIi,0x20);let I1ll1i=I1ll1l['SANjP'],i11iII=I1ll1i['length'],lI1Ii1='';for(i=0x0;i -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) }