forked from shufflewzc/faker4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jd_XinFarm_help.js
20 lines (15 loc) · 38.5 KB
/
jd_XinFarm_help.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
新东东农场助力
助力,领取助力奖励
环境变量:
jd_XinFarm_Notify // 是否推送通知(true/false),默认不推送
cron:45 6,16 * * *
============Quantumultx===============
[task_local]
#新东东农场助力
45 6,16 * * * jd_XinFarm_help.js, tag=新东东农场助力, enabled=true
*/
const $ = new Env('新东东农场助力')
var _0xodA='jsjiami.com.v7';const _0x278abd=_0x1db2;(function(_0xf5b4ec,_0x1b125f,_0xb04c52,_0x4ba8f3,_0x49286b,_0x2ad82f,_0x5e1aed){return _0xf5b4ec=_0xf5b4ec>>0x2,_0x2ad82f='hs',_0x5e1aed='hs',function(_0x629c20,_0x3d97f5,_0x13fcb6,_0x237b5c,_0x15134c){const _0x57ead6=_0x1db2;_0x237b5c='tfi',_0x2ad82f=_0x237b5c+_0x2ad82f,_0x15134c='up',_0x5e1aed+=_0x15134c,_0x2ad82f=_0x13fcb6(_0x2ad82f),_0x5e1aed=_0x13fcb6(_0x5e1aed),_0x13fcb6=0x0;const _0x41590c=_0x629c20();while(!![]&&--_0x4ba8f3+_0x3d97f5){try{_0x237b5c=parseInt(_0x57ead6(0xc3,'3(M0'))/0x1*(-parseInt(_0x57ead6(0xfa,'n#px'))/0x2)+parseInt(_0x57ead6(0x1b9,'3gB@'))/0x3*(parseInt(_0x57ead6(0x12f,'3gB@'))/0x4)+parseInt(_0x57ead6(0x173,'edYK'))/0x5*(-parseInt(_0x57ead6(0xd2,'Ku]r'))/0x6)+-parseInt(_0x57ead6(0x183,'XS)Z'))/0x7+parseInt(_0x57ead6(0xe9,'M*CC'))/0x8+parseInt(_0x57ead6(0x11e,']bPd'))/0x9*(parseInt(_0x57ead6(0x1f5,'tkpA'))/0xa)+parseInt(_0x57ead6(0x1ea,'edYK'))/0xb;}catch(_0x24b2a6){_0x237b5c=_0x13fcb6;}finally{_0x15134c=_0x41590c[_0x2ad82f]();if(_0xf5b4ec<=_0x4ba8f3)_0x13fcb6?_0x49286b?_0x237b5c=_0x15134c:_0x49286b=_0x15134c:_0x13fcb6=_0x15134c;else{if(_0x13fcb6==_0x49286b['replace'](/[BTQAxDHFeCqfMKbIJnU=]/g,'')){if(_0x237b5c===_0x3d97f5){_0x41590c['un'+_0x2ad82f](_0x15134c);break;}_0x41590c[_0x5e1aed](_0x15134c);}}}}}(_0xb04c52,_0x1b125f,function(_0xddda5f,_0x202bea,_0x415190,_0x53c6da,_0x328308,_0x4aa7f9,_0xefb395){return _0x202bea='\x73\x70\x6c\x69\x74',_0xddda5f=arguments[0x0],_0xddda5f=_0xddda5f[_0x202bea](''),_0x415190='\x72\x65\x76\x65\x72\x73\x65',_0xddda5f=_0xddda5f[_0x415190]('\x76'),_0x53c6da='\x6a\x6f\x69\x6e',(0x15a01d,_0xddda5f[_0x53c6da](''));});}(0x324,0x2fc3c,_0x4210,0xcb),_0x4210)&&(_0xodA=`\x487`);const jdCookie=require(_0x278abd(0x16c,'1]VS')),notify=require(_0x278abd(0x12e,'3(M0')),common=require('./function/jdCommon1'),{H5st}=require('./function/jdCrypto'),fs=require('fs'),isNotify=process['env'][_0x278abd(0x129,'XS)Z')]===_0x278abd(0x142,'edYK'),ShareCodesCacheFile='./XinFarm_ShareCache.json';let ShareCodesCacheData=[],needUpdateShareCodesCache=![];fs['existsSync'](ShareCodesCacheFile)&&(ShareCodesCacheData=fs['readFileSync'](ShareCodesCacheFile,'utf-8'),ShareCodesCacheData&&(ShareCodesCacheData=ShareCodesCacheData[_0x278abd(0x13a,'UrAh')](),ShareCodesCacheData=JSON['parse'](ShareCodesCacheData),console['log'](_0x278abd(0x159,'F05d'))));let ShareCodes=[],ShareCodesMap=new Map(),cookie='';const cookiesArr=Object[_0x278abd(0xc4,'AOxS')](jdCookie)[_0x278abd(0x160,'vLft')](_0x4890ec=>jdCookie[_0x4890ec])[_0x278abd(0xd3,']4RX')](_0x56e7bf=>_0x56e7bf);!cookiesArr[0x0]&&($['msg']($[_0x278abd(0x1df,'3gB@')],'【提示】请先获取Cookie'),process[_0x278abd(0x182,'#$7^')](0x1));!(async()=>{const _0x53a86d=_0x278abd,_0x4867ff={'xLFlz':_0x53a86d(0x104,'7857'),'XgSzl':'Faker频道:https://t.me/scriptalking','VlWTN':function(_0x43f69e,_0x337098){return _0x43f69e<_0x337098;},'Bdqtt':function(_0x586d13,_0x4d816f){return _0x586d13+_0x4d816f;},'ZmWQT':function(_0x6e1c8,_0x2402cf){return _0x6e1c8(_0x2402cf);},'PPWPn':'pt_pin','ZNZLw':function(_0x965080){return _0x965080();},'mZCsK':function(_0x5e9d84,_0x2d27b9){return _0x5e9d84!==_0x2d27b9;},'SstpQ':_0x53a86d(0x1d1,'UrAh'),'UJbxk':_0x53a86d(0x144,'1]VS')};notify[_0x53a86d(0x1f0,'vLft')]({'title':$[_0x53a86d(0xe5,'U4p4')]}),console[_0x53a86d(0x1cc,'3gB@')](_0x4867ff['XgSzl']),console[_0x53a86d(0x17c,'4ZPY')]('开始收集助力码...');for(let _0x1c3cd2=0x0;_0x4867ff[_0x53a86d(0xd8,'Qtc&')](_0x1c3cd2,cookiesArr['length']);_0x1c3cd2++){$[_0x53a86d(0x1cb,'U4p4')]=_0x4867ff[_0x53a86d(0x15e,'Ku]r')](_0x1c3cd2,0x1),cookie=cookiesArr[_0x1c3cd2],common['setCookie'](cookie),$[_0x53a86d(0x113,'s^Y2')]=_0x4867ff[_0x53a86d(0x14a,'1]VS')](decodeURIComponent,common['getCookieValue'](cookie,_0x4867ff[_0x53a86d(0x1c4,'M*CC')])),$['UA']=common[_0x53a86d(0x119,'*#3D')]($[_0x53a86d(0x127,'#$7^')]),$[_0x53a86d(0x126,'8Ce9')]=notify[_0x53a86d(0x157,'qfnu')]($[_0x53a86d(0x177,'edYK')],$[_0x53a86d(0x1ac,'k(IQ')]),$[_0x53a86d(0x1d6,'VPy#')]='',$[_0x53a86d(0x184,'vLft')]=0x0,console[_0x53a86d(0x114,'hD)a')](_0x53a86d(0x17d,'M*CC')+$[_0x53a86d(0x177,'edYK')]+'】'+($['nickName']||$['UserName'])+_0x53a86d(0x176,'ydo5')),await _0x4867ff[_0x53a86d(0x17f,'qfnu')](getShareCodes),common['unsetCookie']();if($[_0x53a86d(0x10d,'hD)a')])break;}if(needUpdateShareCodesCache){if(_0x4867ff['mZCsK'](_0x53a86d(0xfd,'AOxS'),_0x4867ff['SstpQ']))_0xf8c029[_0x53a86d(0x1ba,'w[[l')](_0x43efae);else{let _0x26f7f0=JSON[_0x53a86d(0x186,'XS)Z')](ShareCodesCacheData,null,0x2);fs[_0x53a86d(0x1d3,'o5@&')](ShareCodesCacheFile,_0x26f7f0,function(_0xd7002d){const _0x1dee59=_0x53a86d;_0xd7002d?(console[_0x1dee59(0x1fc,'tkpA')](_0xd7002d),console[_0x1dee59(0x17e,'74)J')](_0x4867ff[_0x1dee59(0x1a4,'xnw2')])):console[_0x1dee59(0x1c3,'eiQ@')]('\x0a【缓存文件XinFarm_ShareCache.json更新成功!】\x0a');});}}console[_0x53a86d(0x13d,'F05d')](_0x4867ff[_0x53a86d(0x133,']4RX')]);for(let _0x1fbc98=0x0;_0x1fbc98<cookiesArr[_0x53a86d(0xbc,'Ku]r')];_0x1fbc98++){$[_0x53a86d(0x16d,'n#px')]=_0x4867ff['Bdqtt'](_0x1fbc98,0x1),cookie=cookiesArr[_0x1fbc98],common[_0x53a86d(0x123,'VPy#')](cookie),$[_0x53a86d(0xf6,'3(M0')]=_0x4867ff[_0x53a86d(0x10b,'hD)a')](decodeURIComponent,common[_0x53a86d(0x1b3,'hRPm')](cookie,_0x4867ff['PPWPn'])),$['UA']=common[_0x53a86d(0x131,'3gB@')]($[_0x53a86d(0xdb,'4ZPY')]),$[_0x53a86d(0xda,'s^Y2')]=notify[_0x53a86d(0x188,'W1fZ')]($[_0x53a86d(0x18a,'s^Y2')],$[_0x53a86d(0xd0,']bPd')]),$[_0x53a86d(0x1b1,'@WmN')]='',$[_0x53a86d(0x1c7,'*#3D')]=0x0,console['log'](_0x53a86d(0x1ef,'k(IQ')+$[_0x53a86d(0x1da,'hRPm')]+'】'+($[_0x53a86d(0xef,'#$7^')]||$['UserName'])+'******\x0a'),await _0x4867ff[_0x53a86d(0xe2,'Qtc&')](Main),common[_0x53a86d(0xf5,'(ea]')]();if($[_0x53a86d(0x14e,'vLft')])break;await $['wait'](0xbb8);}isNotify&¬ify[_0x53a86d(0x175,'U4p4')]()&&(notify['updateContent'](notify['content']+'\x0a'),await notify[_0x53a86d(0x1fa,'qfnu')]());})()[_0x278abd(0x145,'D[UI')](_0x358574=>$['logErr'](_0x358574))[_0x278abd(0xed,']bPd')](()=>$['done']());async function getShareCodes(){const _0x274626=_0x278abd,_0x2b6a8e={'wIDSl':'\x0a【缓存文件XinFarm_ShareCache.json更新成功!】\x0a','jtfey':_0x274626(0x1f4,'GbYR'),'qWNfk':'tvJei','WqSsA':_0x274626(0xc2,'XS)Z'),'XoJzv':_0x274626(0x1d2,'U4p4'),'Bfuir':function(_0x41a7ef,_0x1ad0e6){return _0x41a7ef<_0x1ad0e6;},'afFAP':function(_0x356f6c,_0x30f903){return _0x356f6c===_0x30f903;},'pnMMl':'hLPZy','rARJs':function(_0x287c30,_0x53a3ba){return _0x287c30(_0x53a3ba);},'yOVhK':'farm_home','cUvWF':function(_0x197af9,_0x3a7625){return _0x197af9!==_0x3a7625;}};try{const _0x516457=await common['getLoginStatus'](cookie);if(!_0x516457&&typeof _0x516457===_0x2b6a8e[_0x274626(0x19c,'GbYR')]){if(_0x2b6a8e['qWNfk']!==_0x2b6a8e[_0x274626(0xc7,']bPd')]){console[_0x274626(0x15d,'edYK')](_0x274626(0x155,'e$0D'));return;}else _0x310a22[_0x274626(0x143,'Ku]r')](''+_0x26a99d['msg']);}let _0x21a1ff=![],_0x30ed20='';if(ShareCodesCacheData){if(_0x2b6a8e['XoJzv']===_0x2b6a8e[_0x274626(0xbb,']bPd')])for(let _0x20f53b=0x0;_0x2b6a8e[_0x274626(0x115,'8Ce9')](_0x20f53b,ShareCodesCacheData[_0x274626(0x122,'s^Y2')]);_0x20f53b++){_0x2b6a8e[_0x274626(0x14d,'D[UI')](_0x2b6a8e['pnMMl'],_0x2b6a8e[_0x274626(0x168,'e$0D')])?ShareCodesCacheData[_0x20f53b][_0x274626(0xfb,'%Q^6')]==$[_0x274626(0x199,'*#3D')]&&(_0x21a1ff=!![],_0x30ed20=ShareCodesCacheData[_0x20f53b][_0x274626(0xc5,'Wcm4')]):_0x477297[_0x274626(0x1a6,'s^Y2')]=_0x667924[_0x274626(0xd6,'o5@&')];}else _0x2fadc6?(_0x3876ab[_0x274626(0xbd,'id)T')](_0x35c7d5),_0x4289c1[_0x274626(0x198,'#$7^')](_0x274626(0x1ae,'@WmN'))):_0x3599f1[_0x274626(0xbd,'id)T')](_0x2b6a8e[_0x274626(0xe0,'H&SL')]);}!_0x21a1ff&&($[_0x274626(0x153,'edYK')]='',await _0x2b6a8e[_0x274626(0x1b0,'JhEb')](sendRequest,_0x2b6a8e[_0x274626(0xf1,'H&SL')]),$['farm_home']?.[_0x274626(0x1b7,'D[UI')]?.[_0x274626(0x10f,'edYK')]?.['inviteCode']&&(_0x30ed20=$[_0x274626(0x1b6,'s^Y2')]?.[_0x274626(0x1ff,'8Ce9')]?.['farmHomeShare']?.[_0x274626(0x101,'id)T')],ShareCodesCacheData['push']({'pt_pin':$['UserName'],'ShareCode':_0x30ed20}),needUpdateShareCodesCache=!![]),await $[_0x274626(0x16f,'A53E')](0x7d0)),_0x30ed20?(console[_0x274626(0xeb,'1]VS')](_0x274626(0x1d0,'8Ce9')+$['index']+'('+$[_0x274626(0x1b2,'74)J')]+')的'+$[_0x274626(0x172,'eP5C')]+_0x274626(0x11b,'A53E')+_0x30ed20),ShareCodesMap[_0x274626(0x1c9,'tkpA')]($[_0x274626(0x1e3,'1]VS')],_0x30ed20),ShareCodes['push'](_0x30ed20)):console['log']('❌\x20获取互助码失败');}catch(_0x16a816){_0x2b6a8e['cUvWF'](_0x274626(0xe6,'XS)Z'),_0x274626(0xde,'VPy#'))?_0x2ee90c['message'][_0x274626(0x1e5,'Ku]r')](_0x23cab5):$['logErr'](_0x16a816);}}function _0x1db2(_0x381f7d,_0x1d39dd){const _0x421056=_0x4210();return _0x1db2=function(_0x1db22f,_0x310cb3){_0x1db22f=_0x1db22f-0xb7;let _0x177f83=_0x421056[_0x1db22f];if(_0x1db2['ADbYEv']===undefined){var _0x20d299=function(_0x5f506f){const _0x50cbc4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x113ced='',_0x42008='';for(let _0x28b5bb=0x0,_0x419cc2,_0x563c01,_0x2141dd=0x0;_0x563c01=_0x5f506f['charAt'](_0x2141dd++);~_0x563c01&&(_0x419cc2=_0x28b5bb%0x4?_0x419cc2*0x40+_0x563c01:_0x563c01,_0x28b5bb++%0x4)?_0x113ced+=String['fromCharCode'](0xff&_0x419cc2>>(-0x2*_0x28b5bb&0x6)):0x0){_0x563c01=_0x50cbc4['indexOf'](_0x563c01);}for(let _0x2de49c=0x0,_0x927ac1=_0x113ced['length'];_0x2de49c<_0x927ac1;_0x2de49c++){_0x42008+='%'+('00'+_0x113ced['charCodeAt'](_0x2de49c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42008);};const _0x248964=function(_0x54e8ec,_0x173160){let _0x3b403d=[],_0x58cbc8=0x0,_0x3aa460,_0xabd192='';_0x54e8ec=_0x20d299(_0x54e8ec);let _0x5e3476;for(_0x5e3476=0x0;_0x5e3476<0x100;_0x5e3476++){_0x3b403d[_0x5e3476]=_0x5e3476;}for(_0x5e3476=0x0;_0x5e3476<0x100;_0x5e3476++){_0x58cbc8=(_0x58cbc8+_0x3b403d[_0x5e3476]+_0x173160['charCodeAt'](_0x5e3476%_0x173160['length']))%0x100,_0x3aa460=_0x3b403d[_0x5e3476],_0x3b403d[_0x5e3476]=_0x3b403d[_0x58cbc8],_0x3b403d[_0x58cbc8]=_0x3aa460;}_0x5e3476=0x0,_0x58cbc8=0x0;for(let _0x49a67c=0x0;_0x49a67c<_0x54e8ec['length'];_0x49a67c++){_0x5e3476=(_0x5e3476+0x1)%0x100,_0x58cbc8=(_0x58cbc8+_0x3b403d[_0x5e3476])%0x100,_0x3aa460=_0x3b403d[_0x5e3476],_0x3b403d[_0x5e3476]=_0x3b403d[_0x58cbc8],_0x3b403d[_0x58cbc8]=_0x3aa460,_0xabd192+=String['fromCharCode'](_0x54e8ec['charCodeAt'](_0x49a67c)^_0x3b403d[(_0x3b403d[_0x5e3476]+_0x3b403d[_0x58cbc8])%0x100]);}return _0xabd192;};_0x1db2['lApPpm']=_0x248964,_0x381f7d=arguments,_0x1db2['ADbYEv']=!![];}const _0x121459=_0x421056[0x0],_0x2911c3=_0x1db22f+_0x121459,_0x2b6f7e=_0x381f7d[_0x2911c3];return!_0x2b6f7e?(_0x1db2['BcyDCT']===undefined&&(_0x1db2['BcyDCT']=!![]),_0x177f83=_0x1db2['lApPpm'](_0x177f83,_0x310cb3),_0x381f7d[_0x2911c3]=_0x177f83):_0x177f83=_0x2b6f7e,_0x177f83;},_0x1db2(_0x381f7d,_0x1d39dd);}async function Main(){const _0x49d6f1=_0x278abd,_0x44adcf={'CuypG':function(_0x3503a9,_0x3483e0){return _0x3503a9===_0x3483e0;},'qLnEO':_0x49d6f1(0x10a,'ydo5'),'eQMBZ':function(_0x1456ce,_0xaf9b7e){return _0x1456ce(_0xaf9b7e);},'uuQSu':_0x49d6f1(0x1aa,'qfnu'),'QEtGP':function(_0x3baa9b){return _0x3baa9b();},'HurKB':function(_0x475ffa){return _0x475ffa();},'rAqBw':function(_0x515852,_0xccb46a){return _0x515852!==_0xccb46a;}};try{const _0x25846e=await common[_0x49d6f1(0x1c8,'id)T')](cookie);if(!_0x25846e&&_0x44adcf['CuypG'](typeof _0x25846e,_0x49d6f1(0x1f4,'GbYR'))){console[_0x49d6f1(0xbf,'eP5C')](_0x49d6f1(0x1e4,']bPd')),$['message']['fix'](_0x44adcf[_0x49d6f1(0x105,'Wcm4')]);return;}$[_0x49d6f1(0x196,'8Ce9')]='',await _0x44adcf['eQMBZ'](sendRequest,_0x44adcf['uuQSu']);if($[_0x49d6f1(0x12b,'A53E')])await _0x44adcf[_0x49d6f1(0x112,'D)I@')](HelpMain);else{switch($[_0x49d6f1(0x197,'eiQ@')]?.['bizCode']){case-0x3e9:console[_0x49d6f1(0x1fc,'tkpA')]($[_0x49d6f1(0xfe,'JhEb')]?.[_0x49d6f1(0x132,'qfnu')]+'(状态码'+$['farm_home']?.['bizCode']+')');break;default:{console[_0x49d6f1(0xfc,'M*CC')](($['farm_home']?.[_0x49d6f1(0x1f9,'vLft')]||'未知')+_0x49d6f1(0x1bb,'1]VS')+($[_0x49d6f1(0x16b,'3gB@')]?.['bizCode']||'')+')');break;}}$[_0x49d6f1(0xf2,'GbYR')]<0x1&&($[_0x49d6f1(0x1bd,'UrAh')]++,console[_0x49d6f1(0xcb,'Ez$]')]('等待5秒后重试,第'+$[_0x49d6f1(0x17a,'edYK')]+'次'),await $[_0x49d6f1(0x1b8,'WZVr')](0x1388),await _0x44adcf[_0x49d6f1(0x18b,'74)J')](Main));}}catch(_0xbc87f9){if(_0x44adcf[_0x49d6f1(0x1ec,'8Ce9')](_0x49d6f1(0x1c6,'(ea]'),'gDSRN'))console[_0x49d6f1(0x192,'D)I@')](_0x49d6f1(0x19d,'#$7^')+_0xbc87f9);else{_0x1fb7a5[_0x49d6f1(0x114,'hD)a')](_0x49d6f1(0x163,'UrAh'));return;}}}async function HelpMain(){const _0x1483da=_0x278abd,_0x473317={'iIhnC':_0x1483da(0x118,'D[UI'),'vYPaY':_0x1483da(0x1b4,'edYK'),'JOkEK':'farm_home','osyGg':function(_0x1ac1d9,_0x2418ae){return _0x1ac1d9!==_0x2418ae;},'OmCIh':_0x1483da(0x1ce,'id)T'),'LODZU':_0x1483da(0x110,'7857'),'ybRAa':function(_0x413c9a,_0x5b8c0e){return _0x413c9a(_0x5b8c0e);},'LQEcz':_0x1483da(0x138,'vLft'),'YVkob':'CxRlY','NmAtl':function(_0x1056f6,_0x119b04){return _0x1056f6>_0x119b04;},'qYktI':function(_0x3f098f,_0x20f591){return _0x3f098f===_0x20f591;},'ZKDdm':_0x1483da(0x1bf,'e$0D')};await $[_0x1483da(0x16f,'A53E')](0x7d0),await sendRequest(_0x473317['JOkEK']);const _0x10528f=[],_0xe1c303=ShareCodesMap[_0x1483da(0x1cd,'VPy#')]($[_0x1483da(0x127,'#$7^')])||'';for(let _0x1e0f31 of ShareCodes){if(_0x473317[_0x1483da(0x116,'edYK')](_0x473317[_0x1483da(0xc8,'edYK')],_0x473317['OmCIh'])){_0x15c07d[_0x1483da(0xd1,'k(IQ')](_0x473317['iIhnC']);return;}else{if(!_0x1e0f31||_0x1e0f31===_0xe1c303)continue;console[_0x1483da(0x12c,'s^Y2')]('去助力\x20➜\x20'+_0x1e0f31);if($['farm_home']?.['result']?.[_0x1483da(0xcf,'xnw2')]===0x0){console['log'](_0x473317[_0x1483da(0xe4,'vLft')]);return;}if(_0x1e0f31===$[_0x1483da(0x1a8,'eP5C')]?.[_0x1483da(0x1b7,'D[UI')]?.['farmHomeShare']?.[_0x1483da(0x19f,'F05d')]){console[_0x1483da(0x137,'8Ce9')](_0x473317[_0x1483da(0xd5,'3gB@')]);continue;}$[_0x1483da(0xf9,'H&SL')]=_0x1e0f31,await _0x473317['ybRAa'](sendRequest,_0x1483da(0x158,'#$7^'));switch($[_0x1483da(0x158,'#$7^')]?.['bizCode']){case 0x0:console[_0x1483da(0x1f1,'XS)Z')](_0x1483da(0xb9,'H&SL')+$[_0x1483da(0x18c,'F05d')]?.[_0x1483da(0x1c5,'n#px')]?.[_0x1483da(0x10e,']bPd')]?.['nickname']+_0x1483da(0x13b,'3gB@')+$[_0x1483da(0x117,'W1fZ')]?.['result']?.['amount']+_0x1483da(0x1f2,'4ZPY'));break;case-0xfa1:console[_0x1483da(0x1a5,'ydo5')](_0x1483da(0x135,'(ea]')+$['farm_assist']?.[_0x1483da(0x12d,'1]VS')]?.[_0x1483da(0x156,'8Ce9')]?.[_0x1483da(0x1ee,'hD)a')]+'】失败'+$[_0x1483da(0x162,'M*CC')]?.[_0x1483da(0xe7,'ydo5')]+_0x1483da(0xcd,'@WmN')),await $[_0x1483da(0x148,'*#3D')](0xbb8),await _0x473317[_0x1483da(0x13f,'s^Y2')](sendRequest,_0x1483da(0x18e,'JhEb'));break;case-0x3e9:console[_0x1483da(0xeb,'1]VS')]($[_0x1483da(0x162,'M*CC')]?.[_0x1483da(0x181,'e$0D')]+_0x1483da(0x161,'XS)Z'));return;case 0x138a:console[_0x1483da(0x1ed,'xnw2')](_0x473317[_0x1483da(0x146,'Wcm4')]);break;case 0x138b:console[_0x1483da(0x1a5,'ydo5')](_0x1483da(0x1ab,'s^Y2')+$[_0x1483da(0x108,'4ZPY')]?.['result']?.[_0x1483da(0x11d,'vLft')]?.[_0x1483da(0x1d4,'%Q^6')]+'】失败,今日已给该好友助力过了');break;case 0x138c:console['log'](_0x1483da(0x165,'tkpA')+$[_0x1483da(0x106,'GbYR')]?.[_0x1483da(0x13c,']4RX')]?.[_0x1483da(0x1a0,'D)I@')]?.[_0x1483da(0x1db,'WZVr')]+_0x1483da(0xd9,'H&SL'));return;case 0x138d:console[_0x1483da(0x1a5,'ydo5')](_0x1483da(0x1e7,'vLft')+$[_0x1483da(0x1c0,'xnw2')]?.[_0x1483da(0x1f6,'vLft')]?.[_0x1483da(0x1eb,'Ku]r')]?.[_0x1483da(0xee,'M*CC')]+_0x1483da(0x15c,'eiQ@')),_0x10528f['push'](_0x1e0f31);break;default:{if(_0x1483da(0xec,'3gB@')===_0x473317[_0x1483da(0x1be,'hRPm')]){console[_0x1483da(0x178,'H&SL')](_0x1483da(0x15b,'n#px')+$[_0x1483da(0x108,'4ZPY')]?.['bizCode']+_0x1483da(0x14b,']bPd')+$[_0x1483da(0x117,'W1fZ')]?.[_0x1483da(0x1e9,'3gB@')]);break;}else{_0x4916ab['log']('账号无效'),_0x30b0d8[_0x1483da(0x17b,'id)T')]['fix'](_0x473317[_0x1483da(0x100,'(ea]')]);return;}}}console[_0x1483da(0x13d,'F05d')](''),await $['wait'](0x7d0);}}if(_0x473317[_0x1483da(0x174,'qfnu')](_0x10528f['length'],0x0)){if(_0x473317[_0x1483da(0x130,'8Ce9')](_0x473317['ZKDdm'],_0x473317[_0x1483da(0x1e1,'JhEb')]))for(let _0x39eb48 of _0x10528f){ShareCodes[_0x1483da(0xb8,'D[UI')](_0x39eb48)&&ShareCodes[_0x1483da(0x18f,'vLft')](ShareCodes['indexOf'](_0x39eb48),0x1);}else _0x467a71[_0x1483da(0x1dd,'n#px')]=!![],_0x58542d[_0x1483da(0xd4,'1]VS')]&&_0xe875d1[_0x1483da(0xe3,'Wcm4')]['fix'](_0x49197a);}}async function handleResponse(_0x43aa09,_0xa9cc94){const _0x421286=_0x278abd,_0x37a39f={'rcUHJ':function(_0x1dda29,_0x3283bd){return _0x1dda29===_0x3283bd;},'Nknwd':function(_0x81061e,_0x3a40ee){return _0x81061e===_0x3a40ee;},'FLwKe':function(_0x13fb9f,_0x4107fc){return _0x13fb9f!==_0x4107fc;},'lKWra':'Mphii','JqZWY':_0x421286(0x147,'A53E'),'TVXgL':function(_0x5d74a0,_0x25a868){return _0x5d74a0===_0x25a868;}};try{switch(_0x43aa09){case'farm_home':if(_0x37a39f['rcUHJ'](_0xa9cc94[_0x421286(0x149,'vLft')],0x0)&&_0x37a39f['Nknwd'](_0xa9cc94[_0x421286(0x19b,'1]VS')]?.['bizCode'],0x0))$[_0x421286(0x102,'74)J')]=_0xa9cc94[_0x421286(0x194,'JhEb')];else{if(_0xa9cc94['data']?.['bizMsg'])_0x37a39f['FLwKe'](_0x421286(0x18d,'VPy#'),_0x37a39f[_0x421286(0x1d8,']4RX')])?_0x1bf0b8['log']('❓'+_0x29729f+'\x20'+_0x1fad6['stringify'](_0x5a07c2)):$[_0x421286(0x1a9,'@WmN')]=_0xa9cc94['data'];else{if(_0xa9cc94[_0x421286(0x195,'A53E')])console['log'](''+_0xa9cc94['errMsg']);else _0xa9cc94[_0x421286(0xc6,']4RX')]?console['log'](''+_0xa9cc94[_0x421286(0xf7,'s^Y2')]):console['log']('❓'+_0x43aa09+'\x20'+JSON['stringify'](_0xa9cc94));}}break;case _0x37a39f[_0x421286(0x1ca,']4RX')]:_0x37a39f['TVXgL'](_0xa9cc94['code'],0x0)?$['farm_assist']=_0xa9cc94[_0x421286(0x140,'M*CC')]:console[_0x421286(0x10c,'AOxS')]('❓'+_0x43aa09+'\x20'+JSON[_0x421286(0xc0,'eiQ@')](_0xa9cc94));break;}}catch(_0x217bd7){console[_0x421286(0x171,'@WmN')]('❌\x20未能正确处理\x20'+_0x43aa09+_0x421286(0x1de,'3gB@')+(_0x217bd7[_0x421286(0x1e2,'w[[l')]||_0x217bd7));}}function _0x4210(){const _0xb3b313=(function(){return[_0xodA,'fqjDesjIbiKQaJmbUiTA.HcBTCoeFTmx.MvMn7Cx==','dmogWRvuyrDyW7ldUq','W4ZcQMG3rq','W5tdVhBcTmoCWPu','W51vWOGnva','WRebsHvO','W6ldKmkCWQ5s','zapdKwG+wMH+W7/dVqO','W5vZDCovW7C','fSkLWOuUWQhdSfX6WOdcJCk2','mgVdTqrPW7C','W4xcT03cG2XzW45fW6G7WRBcPSkiqcjEnSoliW','WR/dSIGplq','W6jKW6C','y8oaWRTjW7tcGgPNfmk/bZSyceamxSkGWQZdQH9dW5e+hmoDW67cS8o3W7NcI8omWReT','fmkLWOmI','xCoMWQWjq8ox','W4BcM8oqWOVcMbDNeSof','d8oSmGJcPuhcKSkaiq','DHldRW','E1pdG8oHzmoOjCkU','xCkpEx7dTW','q27cLSoE','W53cNSogWRhcLq','4P2wxEIgKUAFJUI/MoIJT+MbSUwkLEs7KEMvLoITJ8kP','WPpdPrFdVa','AWZdLwWvxLHIW7ldQW','W6nQW7nekYddLmknfde','mCoHW5vEWQm','WP3dPs8elSoF','w2OtW6We','hJNcGSowCW','yCkrrW','WR4oxb1pwSkMW7/dK8k8lq','W43cP03cIwfmW4W','W6nsWPSvASoQWOKHW60','fmoBB8kqsSoCW5VdJ8k3','W5mvWPNcUCoqz2WehW','5yMX5yU05Awt5y6744ca','DJNdGSkTzZ3cGhq','ASoAadqk','EoocQUE8JUwUPEAwKUs5GSoSW4VcVmo9W7eJW7SKWOzOBmoyW44VWOBdSXu8W7JcM8krW7/cOoAARUAwQUwLNUI2UYpJGj/dIa','D8oaWPWmqG','aSkfWQujWO0','hmotFSkww8ovW5NdHW','W7/dLSklWPDEyCoXda','mmoLW41UWQNcQSkFW553W5VdUuNcVSoa','6lsH5y635PAf5PsD','iMVdQqfV','WR4oxb1pu8k6W6hdNW','WPpdUqKsW79t','W6eCW5Xy','WPhdOWZdTN1jW7PLW5uB','F8oesXyqW7m','77YV54Q55OoJ56k+','gCoZWOJdP8oR','jvflkCk8trtcUmkmmG','dSowW5jcWQq','W4mEW5C0WRW','abtcTSoxvLqQW6ZdQ8o9zq','oXhdOvmhyLa','f8oBWQ0','bCoIjW','zSkUbhWl','rx/dTW9rWQ0','dmkdsx1V','xexdKSoHu8oDiCkMpaa','weOnW7OEW4mYW5DOjCoGWRfNjq','WQxdM8kf','A3hcHIdcVW','ySoAWQTCW78','W47cVv4','W79MAq','xeqWW7Kl','WQPYtCkNW4y','44kW5lMw5lQ+6lEa5yYW','guXWcSkd','rCo/WPTnW4S','WOVdPduzlmo3imoqqW','WQTTFCknW7NcPdrF','i2fDhmkn','W7zQFSoxW5akgCkL','W7JcN0hcG1S','tuVcIWxcHW','WO3dSaRcMG','pSoUW51iWR4','W7GuW5zhW6n9W5RdLa','u8oxDgHBW5VcHG','wg/dSdXrWRJcSW','WOlORkxMSBVLKilLUPKn','W4ZcS1tcQG','WQBdN8kdWPJcSCo0W5NcSmoylG','kSkpWRmNWPm','FSooxYadW6BdTG','CNZcH8onxutdRCog','6lAW5yY65PEE5Psx','WO/dUay','8j+7ICkd','5yUQ5yQa5AEK5y6M44cA','WQJdSXqBkG','W4dcU0pcGN5k','nNHxyKVcHNVcS8k4iWVdKSom','WOtdSa3cJ8k0WOtcTCkaW7zo','W5lcU8otWQtcSa','cHRcOW','j1PGW4r7W4HNWQa','kwdcJCo1a3BdH+w8KEwMS+ocGos7IUs7QUI1SUwnGa','ihtdTWTJW7u','e8oDWQa','n/c4Sz4'].concat((function(){return['WQLREq','W5xcHCopWRJcICorbq','W6xcH8ojW43dPCk3W7hcLmowgSosaa','mx7dQHHMW6y','W4JcPwXhEq','lgldKdrH','ixldOYb5W7u','W4ubWPJcVa','DCokxJ49W6ddOavRqeu','WRRdKCkw','ASoYWQSbrq','cCkSW6XZbSkhaCoJzCkNjSkBlq','W5lcN8orWPpcQWS','m8owECkhqW','WOJdSHKlW6zdh8k3','5yQj5yI55AwQ5y+a44cU','b8olnHpcNG','W47cONqLCG','WOxdTbdcNmkLWP4','u0aE','nepcQ8oryq','W6LCWO4','gSo5mGZcLe7cLmklpq','zCknyCoStW','b8o3WQnwyW','WPNdS1FdKZ3dRqlcOmkbWOS','a8kyE1G','ESkgt8oXwaK+oSoj','thpcUW','W4hcVg0Srq','sc0Mhbu','WRqnrqP9','f2ddPmorEa','awFcRG','hrNcNSkNe8k5jmkoiYBdVSkd','772+6yw36k+iW4ZMRlq','W4NORABMSlZLP4ROT7tdLUkDOmoo5PwW5zoS5BUP5Psm5O+d','eGFcOCoFt0a1W7pdKCo6CeddHa','W4pcVLSTsJNdTNu','tYxdGa','W5JcOKZcOCkMWPtcHmkmW4K','r2NcSapcG1O','sMRcKComCKldPq','W67cNx3cLvG','WPJdTYGm','W5ZcSWJcOYddSa','WOldNt5xFG','44cX5AAt6lsY77Yh5lU05Pwn5yMC5yQB5Q6+5Pwy5Bs66igO5Bo+','WRukxqnXxmkW','bCoTWPZdKSoCW701hW','WQtdV0W5DWldGLy','uSooELjS','W5DLFmo2W5O','qvZdGH9s','v8oRu1Hs','W7aCW4DbW5j0W5JdNey','WO7dVZnprW','rmklxCoWxc00','kLldSqnj','zCovWQjC','mmouWQz3sW','B8kxwNBdPCoa','WRycW5XbrCoMWRCFW4em','bmogyXXub8ocW5hcS8oeD8kTW7K','utVdVCkXxa','s2dcHq','W6hcQMVcO1q','W7dcPfa+AdtdOG','wmkxmeClvmkxW4W','DbtdQ8kjrSoAwmoa','mflcKJnxds5vW7JdPdBdPca','wCoTqwn1','W4xcJ8ouWQBcLCoKaSktAMW','xvtdLmo6rmoUiCkTia','WRFdJSkbWPxcTCoKW7ZcPCofimoKq8kmsCk6W4/dHwu1CZxdTM3dNv3cUCoBrtj6WRmHfG','lCkmsMLpc8ktmw/cOCkE','W7VcTqpcLaddTrNcQa','WRuCsq','ffTrl8kGDWNdUmk9omk5Fq','q8onC24','bsJdTHXoWOpcJtS','WRvWqCkwW77cQW','wSkrna','jSkftxRcQW','fSkLWOuUWQhdUubKWOW','qJNdLmk2tJi','lSk7Aw1I','vKepW58fW4eyW5zFna','W4ZdHmkCWOHpAmoZbbe','zXddKwOt','W6VJGPtNVjJLRyZMLzpKUybmWQWYtXhcOCogW7O4C2RdNSkylw/cK3VdNSkAWQP8WQu35PIE5PEt5As36lESjUodI8kM','wmkIqmogCG','W5hcI8osWRNcS8orgmknzMZdQa','WQtdM8kaWOZcUCo0W6K','nSo/WOVdJConW70RcCoaWPWu','W40dWPZcSSol','6lsR5yYj5PEa5PwZ','e15uW75b','bmkszq','o0zTW6P7W40','W7VcRe0RysRdKN7dHmoU','ysexodxdNItcV8kGgtNdTSoK','5lUS6ig55lIX6iE+5BsL5yIF5yQp','etddReC','W59oW7r3hG','WO0CsWjEwSk4W6K','jvXK','W6lcNmoxWO/cTq','AdmCeHO','W5hdR2hcUmo3WPeeCWRcT8oh','5P+l56wr5Qw35lY754U677YR6lAj6lYd5yMW5yQwWRa'].concat((function(){return['suxdImogAW','WRVdM8kcWORcVCoGW7G','5Awf5y2F5lMm5yUT56cX44kH','bWxcRCkuzbSZW7VcRmoTFKO','lNRdQHLVW6b+WQWMgW','WQ/cVNWjyGhdKa','b8ovWPldLSoI','W6XrW7j9lW','W49NWOmREG','WRqkqbDKuW','W6TMACo/W7eeh8kPca','uh/dSdiiWQRcOa','4P+je+AFG+EENEIVGUAZGmog','W43cN8orWPxcPHHT','tW7dRCkqrSoAwmoa','8k2kMcm','fCowWPHLzH53W7xdSSomEg7dNevVc8kg','f8ogWRnnFeOEWRVdQmkucu3cNvTIq8kCE8oq','xSo1WQWPB8oyxmoNsW','WRqasq','vwRcKCokF1e','WOddQqdcKYddTWdcPmkBWPtcV8o5rf/cLSk9W4JcNxeTWOxcHvC','WPVdPa3cRfH+W6XmW6y','W5hcO8ojWPlcJG','W4xcT1FcMKW','W5CDWPhcMCo8Aa','DeRcVG/cJq','w3xdOW','5yUX5yM55Awe5y+h44cR','AxhdS8ouzW','W4ZcLCof','5yUQ5yQa5AAO6lwi77Yg5lQF6iok5yMR5yUB6iAE5BEr','WRvLBmkhW7RcTH1BWO3dKW','i1TSl8k3CbpcSG','44kZ5OUc5yQM77+d6i665B66','u2xcRWlcILW','BG3dHa','uqNdUmkTtq','WQenFdfX','uSkFj00','eqFcRCooBhmWW7pdPW','CZiqma','WOxdVHK','lqxLV6lLPBtLIRRLIR7cRSknvG','WOldVq4eW7S','zCk/A8oGrW','xSo1WQWPB8orqmo5r8kgaq','wuhdJ8oN','ihtdVqG','FwlcTCoUrW','WRBdOb4','yMNdOqXk','WOddUJWMW4m','mw7dTYHKW7y','xCkMq8oIBG','f8khWPGmiuaFWQq','q1RcRJRcHW','fmoVW5DzWQpcQ8kaWPPgW7tdQea','ysexocldMsBcT8kw','vColzePt','6lAI5y6H5Pw75PsE','W43cM8orWPlcOG1beCogqq','W5ygWO7cTCo7AG','FbZdUSkpv8oArSowpJ7dLa','5Qoc5RsP5yQt5PYP5z2r57YO5A2d5PAk5lMGWQ4MW6q6BhBcNSkgnCo4W6tdISkye8oLtuZdQJtdLt/cMCo8W7FVVBVLIk/OVQZMIzFLIQa','DZxcQW','5PYD55+/5yIT5yUH57UU5P2f77+o','44g45AA86lwL772P5AAh5y+I5yMu5yM25BA25RII','AY8c','WQVdTq/cJ8kL','Emo7WPTrW4G','lNRdQq','77236BMJ5yYW77Y0','umkFiue6vmkjW5RcKSozya','6lwX5y+d5PEF5Pst','W5rWWOqpwa','5yM/5yIL5AAm5yYY44om','tfRdT8odEG','WQBdI8kcWPe','W7q4W5yBWPO','iLzMW584W4HMWQXUuW','kenZW4nW','W4tcS0VcOLjfW4rBW7K','csdcImoBueRdR8oieCkh','xNtdOb9f','uSohzh5sW5W','t8o1WRCW','W5qaW6mLWO4','hSovEG','W6TsWOqD','mNvwzeJdSclcLSkYjcO','W7SzWQRcOmoJ','BmorWRT0W6ldItyPeSkQ','j8oucHhcVmknWQq','BI4bmau','tmonCa','WOFdRxm','DsurjWtdPsdcT8kwaG','uKOkW4uqW4m+','pmoXWP4','pmouEqzph8oq5B6P5AsW44k65lQ45lUu6lAY5y2b','W4BdISkj','W686WRhcMmo4','W4tcM8owWOC','W6y/W6eBWOut','FWxdOCkw','tCkcW7ylouyeW4ZdRSolB0NdHW','mx7dRr9ZW4zEWQ8LbW','W6ldVxBcP8oMWPeAzq'];}()));}()));}());_0x4210=function(){return _0xb3b313;};return _0x4210();};async function sendRequest(_0x571972){const _0x3e522c=_0x278abd,_0x12e53c={'Csinl':'\x0a【缓存文件XinFarm_ShareCache.json更新失败!】\x0a','JTjSO':'\x0a【缓存文件XinFarm_ShareCache.json更新成功!】\x0a','FFCCR':'POST','Usevw':_0x3e522c(0x154,'M*CC'),'tUbGH':'farm_home','Cdtbd':_0x3e522c(0x1ad,'(ea]'),'KFuST':_0x3e522c(0x1fb,'w[[l'),'WKkvp':'signed_wh5','sOThO':_0x3e522c(0x1b5,'vLft'),'KtpOE':'ttt3','vFFeo':'4.2','oyIYk':_0x3e522c(0x193,'U4p4'),'QCmwm':_0x3e522c(0x19e,'3gB@'),'FCUNI':_0x3e522c(0x111,']4RX'),'tHmaS':_0x3e522c(0x1f7,'o5@&'),'CAGzb':_0x3e522c(0x1a1,'hRPm'),'PqYEa':_0x3e522c(0xf4,'tkpA'),'GQUGM':'gzip,\x20deflate,\x20br','YKbcw':_0x3e522c(0xca,'Ez$]'),'xwwfD':_0x3e522c(0x169,'hD)a'),'ZMxLV':'application/x-www-form-urlencoded','OTBHr':_0x3e522c(0x11c,'xnw2'),'Xfaua':'https://h5.m.jd.com/','bNuHU':_0x3e522c(0x150,'XS)Z'),'PVxsx':_0x3e522c(0x1c2,'4ZPY'),'NCLVW':_0x3e522c(0x152,'hRPm'),'lbkzm':function(_0x4fcec9,_0x4a0b25){return _0x4fcec9<_0x4a0b25;},'AldzV':function(_0x1297b1,_0x1fb6b7){return _0x1297b1===_0x1fb6b7;},'rlmYR':_0x3e522c(0x166,'*#3D'),'gKmzf':_0x3e522c(0x1cf,'%Q^6'),'YGfdb':function(_0x4c30dd,_0x1162ec){return _0x4c30dd>_0x1162ec;},'nFvvd':function(_0x2efcb2,_0x17dfec){return _0x2efcb2!==_0x17dfec;},'bZrMa':'GVqRm','ZgVhA':function(_0x22bc0a,_0x519e41,_0x155963){return _0x22bc0a(_0x519e41,_0x155963);},'RfuEu':_0x3e522c(0xc1,'Wcm4'),'TeHvc':function(_0x3239bd,_0xf7e780){return _0x3239bd===_0xf7e780;},'ImqGy':'cZsAX'};if($[_0x3e522c(0xd7,'3(M0')])return;let _0x36b3a1='',_0x5cc32a=null,_0x17768c=null,_0x54b0a0=_0x12e53c['FFCCR'],_0x46a811={},_0x377141={};switch(_0x571972){case _0x3e522c(0x153,'edYK'):_0x377141={'appId':_0x12e53c[_0x3e522c(0x14c,'n#px')],'functionId':_0x12e53c[_0x3e522c(0x1d5,'UrAh')],'appid':'signed_wh5','clientVersion':common['getLatestAppVersion'](),'client':_0x3e522c(0x16a,'hD)a'),'body':{'version':0x1},'version':_0x3e522c(0x15a,'vLft'),'ua':$['UA'],'t':!![]},_0x46a811=await H5st[_0x3e522c(0x124,'n#px')](_0x377141),_0x36b3a1='https://api.m.jd.com/client.action',_0x5cc32a=_0x46a811[_0x3e522c(0x139,'%Q^6')];break;case _0x3e522c(0x108,'4ZPY'):_0x377141={'appId':_0x12e53c[_0x3e522c(0x191,'o5@&')],'functionId':_0x12e53c[_0x3e522c(0xea,'#$7^')],'appid':_0x12e53c[_0x3e522c(0x11f,'4ZPY')],'clientVersion':common[_0x3e522c(0x190,'3gB@')](),'client':_0x12e53c[_0x3e522c(0x15f,'U4p4')],'body':{'version':0x1,'inviteCode':$['code'],'shareChannel':_0x12e53c[_0x3e522c(0x13e,'#$7^')],'assistChannel':''},'version':_0x12e53c[_0x3e522c(0xdf,'n#px')],'ua':$['UA'],'t':!![]},_0x46a811=await H5st['getH5st'](_0x377141),_0x36b3a1=_0x12e53c[_0x3e522c(0x1f8,'vLft')],_0x5cc32a=_0x46a811[_0x3e522c(0x1e0,'tkpA')];break;default:console[_0x3e522c(0x1f3,'%Q^6')](_0x3e522c(0x125,'eP5C')+_0x571972);return;}const _0x4bc2e1={'osVersion':_0x12e53c[_0x3e522c(0x164,'eP5C')],'rfs':_0x12e53c['FCUNI'],'screen':_0x12e53c[_0x3e522c(0x14f,'Wcm4')],'wqDefault':_0x12e53c['CAGzb']};_0x5cc32a&&Object[_0x3e522c(0xff,'k(IQ')](_0x5cc32a,_0x4bc2e1);_0x17768c&&Object[_0x3e522c(0x1a2,'o5@&')](_0x17768c,_0x4bc2e1);const _0x128f92={'url':_0x36b3a1,'method':_0x54b0a0,'headers':{'Accept':_0x12e53c[_0x3e522c(0x19a,'ydo5')],'Accept-Encoding':_0x12e53c[_0x3e522c(0x136,'*#3D')],'Accept-Language':_0x12e53c[_0x3e522c(0xbe,'Ez$]')],'Connection':_0x12e53c[_0x3e522c(0x109,'qfnu')],'Content-Type':_0x12e53c[_0x3e522c(0x1d7,'3gB@')],'Cookie':cookie,'Host':_0x12e53c[_0x3e522c(0x1af,'A53E')],'Referer':_0x12e53c[_0x3e522c(0x189,'eP5C')],'X-Referer-Page':'https://h5.m.jd.com/pb/015686010/Bc9WX7MpCW7nW9QjZ5N3fFeJXMH/index.html','Origin':_0x3e522c(0x12a,'XS)Z'),'x-rp-client':_0x12e53c['bNuHU'],'User-Agent':$['UA']},'params':_0x17768c,'data':_0x5cc32a,'timeout':0x7530};_0x54b0a0===_0x12e53c[_0x3e522c(0x170,'e$0D')]&&(delete _0x128f92[_0x3e522c(0x180,'8Ce9')],delete _0x128f92['headers'][_0x12e53c['NCLVW']]);const _0xa57f30=0x1;let _0x2a8cbd=0x0,_0x27df3c=null,_0x542337=![];while(_0x12e53c[_0x3e522c(0xc9,'s^Y2')](_0x2a8cbd,_0xa57f30)){if(_0x12e53c['AldzV'](_0x12e53c[_0x3e522c(0xdd,'H&SL')],_0x12e53c['gKmzf']))delete _0x3dac68[_0x3e522c(0x140,'M*CC')],delete _0x42ca7b['headers'][_0x3e522c(0xf8,'UrAh')];else{_0x12e53c['YGfdb'](_0x2a8cbd,0x0)&&await $['wait'](0x3e8);const _0x1a7c29=await common[_0x3e522c(0x107,'tkpA')](_0x128f92);if(!_0x1a7c29[_0x3e522c(0x1dc,'H&SL')]){if(_0x12e53c[_0x3e522c(0xba,'eiQ@')](_0x12e53c[_0x3e522c(0x120,'D)I@')],_0x12e53c[_0x3e522c(0x151,']4RX')])){let _0x26e26f=_0x11d00b[_0x3e522c(0xf3,'*#3D')](_0x2e7b79,null,0x2);_0xb507ca[_0x3e522c(0x141,'xnw2')](_0x4e5335,_0x26e26f,function(_0x413eea){const _0x1db7b8=_0x3e522c;_0x413eea?(_0xd28767[_0x1db7b8(0x1ed,'xnw2')](_0x413eea),_0x2f1d98[_0x1db7b8(0x1cc,'3gB@')](_0x12e53c['Csinl'])):_0x7630cd[_0x1db7b8(0x134,'n#px')](_0x12e53c[_0x1db7b8(0x121,'eP5C')]);});}else{_0x27df3c=_0x3e522c(0x128,'hD)a')+_0x571972+'\x20请求失败\x20➜\x20'+_0x1a7c29[_0x3e522c(0x103,'F05d')],_0x2a8cbd++;continue;}}if(!_0x1a7c29['data']){_0x27df3c=_0x3e522c(0x1e6,'F05d')+_0x571972+_0x3e522c(0xce,'Ku]r'),_0x2a8cbd++;continue;}await _0x12e53c[_0x3e522c(0x187,']bPd')](handleResponse,_0x571972,_0x1a7c29[_0x3e522c(0x1d9,'Ku]r')]),_0x542337=![];break;}}_0x2a8cbd>=_0xa57f30&&(console['log'](_0x27df3c),_0x542337&&(_0x12e53c[_0x3e522c(0xb7,'@WmN')](_0x12e53c[_0x3e522c(0x1fd,'A53E')],_0x3e522c(0x1a3,'id)T'))?_0x33b101['assign'](_0x54bdb5,_0x3a96ce):($[_0x3e522c(0x1a7,'3gB@')]=!![],$['message']&&(_0x12e53c[_0x3e522c(0x1e8,'o5@&')]('SKsQa',_0x12e53c[_0x3e522c(0x1bc,'4ZPY')])?(_0x4d21df=_0x57b652[_0x3e522c(0xe1,'WZVr')]?.[_0x3e522c(0x16e,'H&SL')]?.['farmHomeShare']?.['inviteCode'],_0xacd347[_0x3e522c(0x167,'tkpA')]({'pt_pin':_0xa3795c[_0x3e522c(0x185,'W1fZ')],'ShareCode':_0x180efd}),_0x3b9a6d=!![]):$[_0x3e522c(0x11a,'tkpA')][_0x3e522c(0x179,'7857')](_0x27df3c)))));}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) }