/* 活动名称:大牌联合(开卡) 环境变量: jd_dplh_viewShop // 是否(true/false)做浏览任务,默认不做 jd_dplh_addCart // 是否(true/false)做加购任务,默认不做 jd_dplh_draw // 抽奖次数,变量暂时无效 jd_dplh_blacklist // 黑名单 用&隔开 pin值 jd_dplh_Notify // 是否通知(true/false),默认不通知 jd_dplh_break // IP限制后继续执行(true/false) 实物奖品需要填写地址变量才行,具体请查看 WIki cron "1 1 1 1 *" script-path=jd_dplh.js */ const $ = new Env('大牌联合0708') const _0xb472d=_0x360b;(function(_0x357eda,_0x33390e){const _0x4bd2f9=_0x360b,_0x510534=_0x357eda();while(!![]){try{const _0x4ed937=-parseInt(_0x4bd2f9(0x1ec,'yn4p'))/0x1+parseInt(_0x4bd2f9(0x2a9,'Rl&z'))/0x2+-parseInt(_0x4bd2f9(0x159,'xEf%'))/0x3*(parseInt(_0x4bd2f9(0xb9,'syGY'))/0x4)+-parseInt(_0x4bd2f9(0x28c,'b1oZ'))/0x5*(-parseInt(_0x4bd2f9(0x241,'4Hx2'))/0x6)+parseInt(_0x4bd2f9(0x218,'bg0V'))/0x7*(-parseInt(_0x4bd2f9(0x286,'*SkT'))/0x8)+parseInt(_0x4bd2f9(0x14f,'B4*m'))/0x9*(-parseInt(_0x4bd2f9(0x1f8,'!YWA'))/0xa)+-parseInt(_0x4bd2f9(0x21f,'WB@m'))/0xb*(-parseInt(_0x4bd2f9(0x179,'oT@n'))/0xc);if(_0x4ed937===_0x33390e)break;else _0x510534['push'](_0x510534['shift']());}catch(_0x28a0bd){_0x510534['push'](_0x510534['shift']());}}}(_0x13be,0x2bd91));const jdCookie=require('./jdCookie'),common=require(_0xb472d(0x1a2,'WB@m')),notify=require('./utils/Rebels_sendJDNotify'),getToken=require(_0xb472d(0x24d,'AFIY')),CryptoJS=require(_0xb472d(0xdb,']P%P')),activityUrl=process[_0xb472d(0x293,'4Hx2')][_0xb472d(0x28e,'AFIY')]||_0xb472d(0x27b,'@)kZ'),joinMember=process['env'][_0xb472d(0x1f1,'U52U')]==='true',dplh_viewShop=process[_0xb472d(0x200,'Vd^b')][_0xb472d(0x2a3,'(eX!')]===_0xb472d(0x2d4,'j2%w'),dplh_AddCart=process[_0xb472d(0xc8,'JkLN')][_0xb472d(0x1d1,'nzCj')]===_0xb472d(0x225,'!1WY'),dplh_draw=process[_0xb472d(0x2ba,'$Mew')][_0xb472d(0xb0,'ZNSo')]||0x5,dplh_wait=process[_0xb472d(0x15e,'*SkT')][_0xb472d(0x21b,'urvx')]||0x1,isNotify=process[_0xb472d(0x2c7,'Rl&z')][_0xb472d(0x22e,'UeGP')]==='true',hotbreak=process[_0xb472d(0x29e,'!1WY')][_0xb472d(0x26a,'nzCj')]===_0xb472d(0x1e0,'yn4p');let waitTimes;common[_0xb472d(0x272,'(eX!')]()==='关闭'?waitTime=parseInt(dplh_wait)*0x3e8:waitTime=0x0;function _0x360b(_0x278546,_0xcab7bf){const _0x13be53=_0x13be();return _0x360b=function(_0x360bdd,_0x457a23){_0x360bdd=_0x360bdd-0xac;let _0x55e463=_0x13be53[_0x360bdd];if(_0x360b['XCxEAG']===undefined){var _0x163c53=function(_0x43d4fc){const _0x44199c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x404810='',_0x127f19='';for(let _0x35f64e=0x0,_0x20d2c1,_0x2ca7f9,_0x1e2064=0x0;_0x2ca7f9=_0x43d4fc['charAt'](_0x1e2064++);~_0x2ca7f9&&(_0x20d2c1=_0x35f64e%0x4?_0x20d2c1*0x40+_0x2ca7f9:_0x2ca7f9,_0x35f64e++%0x4)?_0x404810+=String['fromCharCode'](0xff&_0x20d2c1>>(-0x2*_0x35f64e&0x6)):0x0){_0x2ca7f9=_0x44199c['indexOf'](_0x2ca7f9);}for(let _0x81a229=0x0,_0x5011cc=_0x404810['length'];_0x81a229<_0x5011cc;_0x81a229++){_0x127f19+='%'+('00'+_0x404810['charCodeAt'](_0x81a229)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x127f19);};const _0x48ccd0=function(_0x304020,_0x5fbee0){let _0x535f50=[],_0xd96bf8=0x0,_0x4cf19c,_0x1df16c='';_0x304020=_0x163c53(_0x304020);let _0x4c1ba4;for(_0x4c1ba4=0x0;_0x4c1ba4<0x100;_0x4c1ba4++){_0x535f50[_0x4c1ba4]=_0x4c1ba4;}for(_0x4c1ba4=0x0;_0x4c1ba4<0x100;_0x4c1ba4++){_0xd96bf8=(_0xd96bf8+_0x535f50[_0x4c1ba4]+_0x5fbee0['charCodeAt'](_0x4c1ba4%_0x5fbee0['length']))%0x100,_0x4cf19c=_0x535f50[_0x4c1ba4],_0x535f50[_0x4c1ba4]=_0x535f50[_0xd96bf8],_0x535f50[_0xd96bf8]=_0x4cf19c;}_0x4c1ba4=0x0,_0xd96bf8=0x0;for(let _0x38c16b=0x0;_0x38c16b<_0x304020['length'];_0x38c16b++){_0x4c1ba4=(_0x4c1ba4+0x1)%0x100,_0xd96bf8=(_0xd96bf8+_0x535f50[_0x4c1ba4])%0x100,_0x4cf19c=_0x535f50[_0x4c1ba4],_0x535f50[_0x4c1ba4]=_0x535f50[_0xd96bf8],_0x535f50[_0xd96bf8]=_0x4cf19c,_0x1df16c+=String['fromCharCode'](_0x304020['charCodeAt'](_0x38c16b)^_0x535f50[(_0x535f50[_0x4c1ba4]+_0x535f50[_0xd96bf8])%0x100]);}return _0x1df16c;};_0x360b['YXXsAv']=_0x48ccd0,_0x278546=arguments,_0x360b['XCxEAG']=!![];}const _0x53771a=_0x13be53[0x0],_0x5d9332=_0x360bdd+_0x53771a,_0x9370e0=_0x278546[_0x5d9332];return!_0x9370e0?(_0x360b['PEMNiB']===undefined&&(_0x360b['PEMNiB']=!![]),_0x55e463=_0x360b['YXXsAv'](_0x55e463,_0x457a23),_0x278546[_0x5d9332]=_0x55e463):_0x55e463=_0x9370e0,_0x55e463;},_0x360b(_0x278546,_0xcab7bf);}const prize_type={'jdMarket':_0xb472d(0xf7,'cGM&'),'coin':'[金币]','point':'[积分]','integral':_0xb472d(0x27d,'yjal'),'goods':_0xb472d(0x1d5,'yjal'),'product':'[广告]','coupon':'[优惠券]','chance':'[次数]','card':_0xb472d(0x11f,'AFIY')};let cookie='',originCookie='',cookiesArr=Object[_0xb472d(0x251,'syGY')](jdCookie)['map'](_0x48ccd0=>jdCookie[_0x48ccd0])[_0xb472d(0x232,'zCrY')](_0x43d4fc=>_0x43d4fc);!cookiesArr[0x0]&&($[_0xb472d(0xf5,'k!*1')]($[_0xb472d(0x1dc,'b7]%')],_0xb472d(0x1bf,'!YWA')),process[_0xb472d(0x12d,'Lk*A')](0x1));$['blacklist']=process['env']['jd_dplh_blacklist']||'',getBlacklist(),$[_0xb472d(0x11a,'Rl&z')]=[],$[_0xb472d(0x18c,'ZNSo')]=[],!(async()=>{const _0x13d421=_0xb472d;console[_0x13d421(0x254,'urvx')](_0x13d421(0x2ac,'Lk*A')+$[_0x13d421(0x110,'oT@n')]+'变量开启状态=========='),console['log'](_0x13d421(0x185,'F*KS')),console[_0x13d421(0x13e,'!YWA')](_0x13d421(0x1a6,'xEf%')+common['getProxyStatus']()+']'),console[_0x13d421(0x1ac,'syGY')]('间隔时长:\x20['+(waitTime===0x0?'无':waitTime/0x3e8+'秒')+']运行间隔时长'),console[_0x13d421(0xbf,'oT@n')](_0x13d421(0x14d,'WB@m')+(dplh_viewShop?'开启':'关闭')+']'),console[_0x13d421(0x1ce,'j2%w')]('加购任务:\x20['+(dplh_AddCart?'开启':'关闭')+']'),console[_0x13d421(0xe0,'JkLN')]('IP限制后继续执行:\x20['+(hotbreak?'开启':'关闭')+']'),console[_0x13d421(0x254,'urvx')]('=========='+$[_0x13d421(0x245,'JkLN')]+_0x13d421(0xb5,'KIQh'));if(!activityUrl){console[_0x13d421(0x14b,'Slk4')](_0x13d421(0x2c6,'urvx'));return;}authorCodeList=await getAuthorCodeList(_0x13d421(0x2ab,'!1WY'));authorCodeList?(console[_0x13d421(0x2ec,')b4z')](_0x13d421(0x1d3,'FwjF')),$[_0x13d421(0x142,'ZYzv')]=authorCodeList[random(0x0,authorCodeList[_0x13d421(0x291,'TRy@')])]):($['authorCode']='',console[_0x13d421(0x2a8,'cGM&')](_0x13d421(0x173,'bg0V')));$[_0x13d421(0x165,'@)kZ')]=activityUrl;$[_0x13d421(0x192,'zCrY')]&&($[_0x13d421(0x115,'FwjF')]['includes'](_0x13d421(0x1e1,'JfpZ'))?$['activityId']=common[_0x13d421(0xaf,')b4z')](activityUrl,_0x13d421(0xad,'HwnP')):$[_0x13d421(0x26f,'b7]%')]=$['activityUrl']);$['hostname']='jinggengjcq-isv.isvjcloud.com',$['baseUrl']=_0x13d421(0x1c8,'B4*m')+$[_0x13d421(0x1e2,'bLHs')];if(!$[_0x13d421(0x1a4,'bLHs')]){console[_0x13d421(0xf6,'!1WY')](_0x13d421(0x10d,'(eX!'));return;}notify[_0x13d421(0xcf,'5j1!')]({'title':$[_0x13d421(0x1bc,'4Hx2')]}),$['userId']=_0x13d421(0x1bd,'FwjF'),$[_0x13d421(0x227,'#^rE')]=$[_0x13d421(0x1eb,'j2%w')];const _0x44199c=process['env'][_0x13d421(0x2e0,'B4*m')]?process[_0x13d421(0x273,'HwnP')][_0x13d421(0x18a,'Q7F0')]:'';if(_0x44199c&&_0x44199c!=''){const _0x404810=_0x44199c[_0x13d421(0xe3,'ZSLs')]('|');$[_0x13d421(0x2e1,'Vd^b')]=Math[_0x13d421(0x2a7,'LJIg')](Math[_0x13d421(0x21e,'yjal')]()*_0x404810[_0x13d421(0x182,'97uq')]);if(_0x404810[$[_0x13d421(0x1cb,'TRy@')]]==='')return console[_0x13d421(0xca,'4Hx2')](_0x13d421(0x18d,'yjal')),![];const [_0x127f19,_0x35f64e,_0x20d2c1,_0x2ca7f9,_0x1e2064,_0x81a229]=_0x404810[$[_0x13d421(0x2dc,'B4*m')]][_0x13d421(0xbb,'oT@n')]('@');for(let _0x5011cc=0x0;_0x5011cc<0x6;_0x5011cc++){if(_0x404810[_0x5011cc]==='')return console['log']('❌\x20随机抽取到的收货地址信息格式存在错误(参数不能为空)\x0a'),![];}$[_0x13d421(0xf1,'j2%w')]=_0x127f19,$[_0x13d421(0x231,'ZYzv')]=_0x35f64e,$[_0x13d421(0x154,'5j1!')]=_0x20d2c1,$[_0x13d421(0xf0,'F*KS')]=_0x2ca7f9,$[_0x13d421(0x263,'AFIY')]=_0x1e2064,$['address']=_0x81a229;}for(let _0x304020=0x0;_0x3040200x0){let _0x5fbee0=_0x13d421(0x1a0,'TRy@')+$[_0x13d421(0x1e4,'yn4p')][_0x13d421(0x193,'xEf%')]('&')+'\x22';console[_0x13d421(0x160,'Lk*A')](_0x5fbee0);}if($['errOpencard'][_0x13d421(0x182,'97uq')]>0x0){let _0x535f50=_0x13d421(0x181,'ZYzv')+$[_0x13d421(0x2d9,'Q7F0')][_0x13d421(0x23a,'!YWA')]('&')+'\x22';console[_0x13d421(0x160,'Lk*A')](_0x535f50);}isNotify&¬ify[_0x13d421(0x16c,'Q7F0')]()&&(notify[_0x13d421(0x237,'@)kZ')](_0x13d421(0x177,'zCrY')+$[_0x13d421(0x141,'yn4p')]),await notify[_0x13d421(0x109,'!YWA')]());})()[_0xb472d(0x19c,'xEf%')](_0xd96bf8=>$['logErr'](_0xd96bf8))['finally'](()=>$['done']());async function Main(){const _0x57760c=_0xb472d;try{$[_0x57760c(0x2d6,'LJIg')]=![],$['open_draw']=![],$['jdToken']='';if($['runEnd']||$[_0x57760c(0x219,'yn4p')])return;$[_0x57760c(0x220,'FwjF')]=await getToken(originCookie,$[_0x57760c(0x213,'Slk4')]);if(!$[_0x57760c(0x20e,'syGY')]){console[_0x57760c(0x143,'F*KS')](_0x57760c(0x1a1,'WB@m')),$['message'][_0x57760c(0x27a,'B4*m')](_0x57760c(0xb6,'97uq'));return;}$['activityload']='',await sendRequest(_0x57760c(0x20d,'KIQh'));if($[_0x57760c(0x23b,'B4*m')]==''){console[_0x57760c(0xbf,'oT@n')](_0x57760c(0x1d7,'j2%w'));return;}if($['runEnd']||$['outFlag']||$['skipRun'])return;if(!$[_0x57760c(0x2e4,'!1WY')]){$[_0x57760c(0x24a,'$Mew')]=!![];const _0x4cf19c=$[_0x57760c(0x14e,'QF]n')](_0x57760c(0x1b6,'Rl&z'),$['startTime']),_0x1df16c=$[_0x57760c(0x261,'ZNSo')](_0x57760c(0x2b0,'@)kZ'),$['endTime']);console[_0x57760c(0x158,'97uq')](_0x57760c(0xb4,'QF]n')+$[_0x57760c(0x26f,'b7]%')]+']\x0a开始时间:'+_0x4cf19c+_0x57760c(0xfd,'B4*m')+_0x1df16c),notify[_0x57760c(0x2aa,'TRy@')](_0x57760c(0xd1,'yjal')+$[_0x57760c(0x10c,'!YWA')]+']\x0a开始时间:'+_0x4cf19c+_0x57760c(0x217,'yn4p')+_0x1df16c);const _0x4c1ba4=Date[_0x57760c(0x229,'xEf%')]();if($[_0x57760c(0x266,'AFIY')]&&_0x4c1ba4<$[_0x57760c(0x1c1,'ZYzv')]){console['log'](_0x57760c(0x180,'cGM&')+_0x4cf19c+_0x57760c(0x2da,'yn4p')),$[_0x57760c(0x223,'JfpZ')][_0x57760c(0x10b,')b4z')](_0x57760c(0x255,')b4z')+_0x4cf19c),$[_0x57760c(0x1ed,'FwjF')]=!![];return;}if($[_0x57760c(0x248,']P%P')]&&_0x4c1ba4>$[_0x57760c(0x294,'*SkT')]){console[_0x57760c(0xd7,'B4*m')](_0x57760c(0x1ea,'k!*1')+_0x1df16c+_0x57760c(0x106,'LJIg')),$['message'][_0x57760c(0x10f,'Vd^b')](_0x57760c(0x25c,'nzCj')+_0x1df16c),$[_0x57760c(0x127,'LJIg')]=!![];return;}}console[_0x57760c(0x265,'ZYzv')](_0x57760c(0x12e,'b1oZ')+$['MixNick']+']\x0a');$[_0x57760c(0x183,'@)kZ')]&&(await sendRequest('绑定'),await $['wait'](parseInt(waitTimes*0x1+0x64,0xa)));if($[_0x57760c(0x277,'!1WY')]||$[_0x57760c(0x2b6,'ZSLs')])return;$[_0x57760c(0x1b9,'cGM&')]='',await sendRequest(_0x57760c(0x1a8,'@)kZ')),await $[_0x57760c(0x2f5,'HwnP')](parseInt(waitTimes*0x1+0x64,0xa));if($[_0x57760c(0xc6,'!1WY')]){let _0x38c16b=($[_0x57760c(0x21a,'JfpZ')]||[])[_0x57760c(0x280,'LJIg')](_0x46280c=>_0x46280c[_0x57760c(0x221,']P%P')]==![]);console[_0x57760c(0x13f,'zCrY')]('共有'+$[_0x57760c(0x1d6,'97uq')][_0x57760c(0x182,'97uq')]+_0x57760c(0xf4,'xEf%')+_0x38c16b[_0x57760c(0x2ce,'*SkT')]+'张卡');for(let _0x3e844d of _0x38c16b||[]){if(!_0x3e844d[_0x57760c(0x221,']P%P')]){$[_0x57760c(0xba,'97uq')]=_0x57760c(0x1c0,'LJIg'),$[_0x57760c(0x117,'urvx')]=_0x3e844d[_0x57760c(0x1dd,'JkLN')],$[_0x57760c(0xe6,'4Hx2')]=_0x3e844d[_0x57760c(0x164,'KIQh')],$[_0x57760c(0x188,'ZNSo')]=_0x3e844d[_0x57760c(0x2bc,'bLHs')],$[_0x57760c(0xd6,'TRy@')]=common[_0x57760c(0x16e,'QF]n')]($[_0x57760c(0x1b8,'$Mew')],_0x57760c(0x267,'Slk4'));(!$['openUrl']||!/^\d+$/[_0x57760c(0x113,'nzCj')]($[_0x57760c(0x125,'ZYzv')]))&&($[_0x57760c(0x18e,'LJIg')]=_0x3e844d[_0x57760c(0x14a,'!YWA')]);await sendRequest(_0x57760c(0xfa,'WB@m')),await $[_0x57760c(0x264,'Slk4')](parseInt(waitTimes*0x1+0x64,0xa));const _0x3a79c0=await common[_0x57760c(0x2bf,'k!*1')]($[_0x57760c(0x25f,'!YWA')]);if(_0x3a79c0)console[_0x57760c(0x26c,']P%P')](_0x57760c(0x210,'QF]n')+$[_0x57760c(0x15a,'k!*1')]+']店铺会员成功'),await $[_0x57760c(0x1f7,')b4z')](parseInt(waitTimes*0x1+0x64,0xa));else{console['log']('['+$[_0x57760c(0x15a,'k!*1')]+']店铺开卡失败,跳过执行~');break;}await sendRequest(_0x57760c(0x202,'U52U')),await $[_0x57760c(0x17f,'ZNSo')](parseInt(waitTimes*0x1+0x64,0xa)),$['dplhVenderId']='';}}}$[_0x57760c(0x112,'yn4p')]==0x0&&($[_0x57760c(0x2ae,'urvx')]='uniteCollectShop',await sendRequest(_0x57760c(0x17d,'4Hx2')),await $[_0x57760c(0x264,'Slk4')](parseInt(waitTimes*0x1+0x64,0xa)));dplh_AddCart?$[_0x57760c(0x175,'!YWA')]==0x0&&($['missionType']='uniteAddCart',await sendRequest(_0x57760c(0x138,'yjal')),await $[_0x57760c(0xcd,'UeGP')](parseInt(waitTimes*0x1+0x64,0xa))):console[_0x57760c(0x26c,']P%P')]('未设置加购任务变量,不执行加购任务\x0a');if(dplh_viewShop){if($[_0x57760c(0x25b,'Q7F0')])for(let _0x1e8319 of $[_0x57760c(0xf3,'UeGP')]||[]){$['missionType']=_0x57760c(0x2a5,'yjal'),$[_0x57760c(0x256,'UeGP')]=_0x1e8319[_0x57760c(0x268,'ZSLs')],await sendRequest(_0x57760c(0x2f4,'bLHs')),await $['wait'](parseInt(waitTimes*0x1+0xbb8,0xa));}}else console[_0x57760c(0x15b,'xEf%')](_0x57760c(0x2c9,'JfpZ'));await sendRequest(_0x57760c(0x2e2,'LJIg')),await $[_0x57760c(0x1f3,'@)kZ')](parseInt(waitTimes*0x1+0x64,0xa));if(dplh_draw!=0x0){if($['open_draw']){let _0x2a428f=parseInt($[_0x57760c(0x101,'urvx')]/0xc8);if(_0x2a428f>dplh_draw)_0x2a428f=dplh_draw;console[_0x57760c(0x2a8,'cGM&')](_0x57760c(0x2dd,'JfpZ')+_0x2a428f+_0x57760c(0xb8,'Q7F0')+$[_0x57760c(0x147,'$Mew')]);for(m=0x1;_0x2a428f--;m++){console[_0x57760c(0x20b,'FwjF')]('第'+m+_0x57760c(0xcb,'U52U')),await $[_0x57760c(0x2db,'cGM&')](parseInt(waitTimes*0x1+0xbb8,0xa)),await sendRequest('抽奖');if(Number(_0x2a428f)<=0x0)break;if(m>=0xa){console[_0x57760c(0x215,'Vd^b')](_0x57760c(0x271,'b1oZ'));break;}await $['wait'](parseInt(waitTimes*0x1+0xbb8,0xa));}}}console['log'](_0x57760c(0x1c7,')b4z')+($['inviteNick']||_0x57760c(0x23c,'k!*1'))+']'),$[_0x57760c(0x1b0,'bg0V')]==0x1&&($[_0x57760c(0x2c4,'oT@n')]=$['MixNick'],console['log'](_0x57760c(0x253,'%MX0')+$['inviteNick']+']')),await $['wait'](parseInt(waitTimes*0x1+0x64,0xa));}catch(_0x2ff8a1){console['log'](_0x57760c(0x1d2,'97uq')+_0x2ff8a1);}}async function handleResponse(_0x438764,_0x5e29be){const _0x4a0539=_0xb472d;try{switch(_0x438764){case _0x4a0539(0xec,'LJIg'):if(_0x5e29be[_0x4a0539(0xd5,'LJIg')]&&_0x5e29be[_0x4a0539(0x2ad,'*SkT')]?.[_0x4a0539(0x1db,'zCrY')]==0xc8){$[_0x4a0539(0x13d,'HwnP')]=_0x5e29be?.[_0x4a0539(0x100,'Slk4')]?.[_0x4a0539(0xeb,'5j1!')],$['startTime']=$[_0x4a0539(0x211,'ZNSo')]?.[_0x4a0539(0x2ca,'@)kZ')]?.['startTime'],$[_0x4a0539(0x166,'%MX0')]=$['activityload']?.[_0x4a0539(0x1b2,'#^rE')]?.[_0x4a0539(0x16f,'Slk4')],$[_0x4a0539(0x2b4,'Rl&z')]=$[_0x4a0539(0x2a4,'(eX!')]?.['cusActivity']?.[_0x4a0539(0x2d3,'4Hx2')],$[_0x4a0539(0x2b5,'5j1!')]=$[_0x4a0539(0xe4,'@)kZ')]?.[_0x4a0539(0x1ee,'!1WY')]?.[_0x4a0539(0x172,'ZYzv')],$[_0x4a0539(0xc3,'!YWA')]=$[_0x4a0539(0x131,'JfpZ')]?.[_0x4a0539(0x187,'bg0V')]?.['totalChance'],$[_0x4a0539(0x157,'zCrY')]=$[_0x4a0539(0xd8,'B4*m')]?.[_0x4a0539(0x1ad,'cGM&')]?.['usedChance'],$[_0x4a0539(0x15d,'ZYzv')]=$[_0x4a0539(0xfc,'4Hx2')]?.[_0x4a0539(0x146,'yjal')]?.[_0x4a0539(0x111,'Rl&z')],$['totalPoint']=$[_0x4a0539(0x1fb,'Rl&z')]?.[_0x4a0539(0xe5,'QF]n')]?.[_0x4a0539(0xc4,'Rl&z')],$[_0x4a0539(0x198,'b1oZ')]=$[_0x4a0539(0x128,'WB@m')]?.[_0x4a0539(0x1ae,'Q7F0')]?.['usedPoint'],$[_0x4a0539(0x26e,'Q7F0')]=$[_0x4a0539(0x149,'Lk*A')]?.[_0x4a0539(0x212,'!YWA')]?.['remainPoint'],$[_0x4a0539(0x1ca,'urvx')]=$[_0x4a0539(0x259,'*SkT')]?.[_0x4a0539(0x187,'bg0V')]?.[_0x4a0539(0x104,'97uq')],$[_0x4a0539(0xc9,'ZSLs')]=$[_0x4a0539(0x2a2,'bg0V')]?.[_0x4a0539(0x1ee,'!1WY')]?.['hasAddCart'],$[_0x4a0539(0x238,'Vd^b')]=$[_0x4a0539(0x211,'ZNSo')]?.['openCardStatus']||![],$[_0x4a0539(0x1f4,'ZNSo')]=$['activityload']?.[_0x4a0539(0x162,'urvx')]||![];if($[_0x4a0539(0xd2,'bLHs')]?.[_0x4a0539(0xfb,'urvx')])console[_0x4a0539(0x2b8,'KIQh')]($['activityload']?.['openCardMsg']);}else _0x5e29be['data']?.['status']==0x1f4?(console['log'](''+_0x5e29be[_0x4a0539(0xbe,'QF]n')]),$[_0x4a0539(0x1df,'!1WY')]['push']($[_0x4a0539(0x1c5,'yn4p')]),$[_0x4a0539(0x223,'JfpZ')][_0x4a0539(0x28a,'TRy@')](''+_0x5e29be[_0x4a0539(0x27f,'WB@m')]),$['skipRun']=!![]):console['log']('❓'+_0x438764+'\x20'+JSON[_0x4a0539(0x206,'QF]n')](_0x5e29be));break;case'绑定':if(_0x5e29be['success']&&_0x5e29be[_0x4a0539(0x11b,'yjal')]?.[_0x4a0539(0x2c0,'!1WY')]==0xc8)console[_0x4a0539(0x1f9,'5j1!')](''+_0x5e29be['data']?.['msg']);else _0x5e29be['data']?.[_0x4a0539(0x1db,'zCrY')]==0x1f4?(console['log'](''+_0x5e29be['errorMessage']),['结束','开始'][_0x4a0539(0x184,'Lk*A')](_0x10b917=>_0x5e29be[_0x4a0539(0x1e5,'j2%w')][_0x4a0539(0x2de,'!YWA')](_0x10b917))&&($[_0x4a0539(0x1de,'Slk4')]=!![])):console[_0x4a0539(0x2b2,'LJIg')]('❓'+_0x438764+'\x20'+JSON['stringify'](_0x5e29be));break;case _0x4a0539(0x2ea,'4Hx2'):if(_0x5e29be[_0x4a0539(0xef,'j2%w')]&&_0x5e29be[_0x4a0539(0x1ff,'xEf%')]?.[_0x4a0539(0x25a,'WB@m')]==0xc8)$[_0x4a0539(0x2ea,'4Hx2')]=_0x5e29be?.[_0x4a0539(0xeb,'5j1!')]?.['data']||[];else _0x5e29be[_0x4a0539(0xff,'B4*m')]?.[_0x4a0539(0x169,'LJIg')]==0x1f4?console[_0x4a0539(0xe0,'JkLN')](''+_0x5e29be[_0x4a0539(0x1a7,'b7]%')]):console[_0x4a0539(0xbf,'oT@n')]('❓'+_0x438764+'\x20'+JSON[_0x4a0539(0x1e3,'b1oZ')](_0x5e29be));break;case _0x4a0539(0x16b,'Vd^b'):if(_0x5e29be[_0x4a0539(0x258,'bg0V')]&&_0x5e29be[_0x4a0539(0x150,'%MX0')]?.[_0x4a0539(0x1cc,'urvx')]==0xc8)$[_0x4a0539(0x2df,'LJIg')]=_0x5e29be?.['data']?.[_0x4a0539(0x100,'Slk4')],console['log'](''+(_0x5e29be['msg']||$[_0x4a0539(0x2ed,'JkLN')]?.[_0x4a0539(0x2c2,'$Mew')]||'')),$[_0x4a0539(0x208,'cGM&')][_0x4a0539(0x1c4,'*SkT')](''+(_0x5e29be[_0x4a0539(0x281,'Q7F0')]||$[_0x4a0539(0x28d,'UeGP')]?.[_0x4a0539(0x274,'zCrY')]||''));else _0x5e29be['data']?.[_0x4a0539(0x2ee,'(eX!')]==0x1f4?console['log'](''+_0x5e29be[_0x4a0539(0xb1,'xEf%')]):console[_0x4a0539(0xe0,'JkLN')]('❓'+_0x438764+'\x20'+JSON[_0x4a0539(0x13b,'5j1!')](_0x5e29be));break;case'getAwardSettingList':if(_0x5e29be[_0x4a0539(0x123,'!1WY')]&&_0x5e29be[_0x4a0539(0x247,'Vd^b')]?.['status']==0xc8)$[_0x4a0539(0x1ab,'FwjF')]=_0x5e29be?.['data']?.[_0x4a0539(0x2cd,'cGM&')]?.[_0x4a0539(0x167,'oT@n')];else _0x5e29be[_0x4a0539(0x239,'Lk*A')]?.[_0x4a0539(0x1cc,'urvx')]==0x1f4?console[_0x4a0539(0x160,'Lk*A')](''+_0x5e29be[_0x4a0539(0x29f,'#^rE')]):console['log']('❓'+_0x438764+'\x20'+JSON[_0x4a0539(0x2d7,'Slk4')](_0x5e29be));break;case _0x4a0539(0x12c,'HwnP'):if(_0x5e29be['success']&&_0x5e29be[_0x4a0539(0x2e7,'!1WY')]?.[_0x4a0539(0xd4,'!YWA')]==0xc8){$[_0x4a0539(0x176,'bg0V')]=!![],$[_0x4a0539(0x284,'Vd^b')]=_0x5e29be?.[_0x4a0539(0x2d5,'Rl&z')]?.[_0x4a0539(0x297,'yn4p')];let _0x17c1c1=$[_0x4a0539(0x15c,'F*KS')]?.[_0x4a0539(0x1d4,'QF]n')],_0x5cec94=_0x17c1c1?.[_0x4a0539(0x1e9,'Rl&z')];switch(_0x5cec94){case'jdMarket':console['log'](_0x4a0539(0x26d,'@)kZ')+_0x17c1c1?.[_0x4a0539(0x12b,'WB@m')]+_0x4a0539(0x20f,'JfpZ')),$[_0x4a0539(0x1c3,'%MX0')][_0x4a0539(0x197,'ZSLs')](_0x4a0539(0x1c2,'LJIg')+_0x17c1c1?.[_0x4a0539(0x235,'Q7F0')]+_0x4a0539(0x102,'nzCj'));break;case _0x4a0539(0x1af,'WB@m'):case _0x4a0539(0x120,'syGY'):console['log'](_0x4a0539(0x151,'F*KS')+_0x17c1c1?.['awardName']+_0x4a0539(0x2d8,'HwnP')),$[_0x4a0539(0x194,'oT@n')][_0x4a0539(0x233,'k!*1')]('🗑️\x20'+_0x17c1c1?.['awardName']+_0x4a0539(0x1f0,'JfpZ'));break;case _0x4a0539(0x19f,'JkLN'):$['generateId']=_0x17c1c1?.['id'],$['prizeShiWu']=_0x17c1c1?.[_0x4a0539(0x269,'bg0V')],console['log']('🎉\x20恭喜获得实物~'),console['log'](_0x4a0539(0x299,'(eX!')+$[_0x4a0539(0x1b1,'5j1!')]);if(_0x17c1c1?.['awardPic'])console[_0x4a0539(0x296,'k!*1')](_0x4a0539(0x236,'bLHs')+_0x17c1c1?.[_0x4a0539(0x2d0,'$Mew')]);$[_0x4a0539(0x2ef,'ZYzv')]['fix'](_0x4a0539(0x257,'k!*1')+$['prizeShiWu']);process[_0x4a0539(0x129,'FwjF')][_0x4a0539(0x133,'$Mew')]&&(await sendRequest('updateAddress'),await $[_0x4a0539(0x13c,'Rl&z')](0xfa0));break;case _0x4a0539(0x260,'!YWA'):case _0x4a0539(0xde,'HwnP'):case'coupon':case'chance':case _0x4a0539(0x114,'KIQh'):console[_0x4a0539(0x2ec,')b4z')](_0x4a0539(0x2e5,'oT@n')+prize_type[prizeType]);break;default:console['log'](_0x5cec94+_0x4a0539(0xe1,'zCrY')),console['log'](''+JSON[_0x4a0539(0xe2,'Q7F0')]($[_0x4a0539(0x22d,'yn4p')]));}}else _0x5e29be[_0x4a0539(0x297,'yn4p')]?.['status']==0x1f4?console['log'](''+_0x5e29be['errorMessage']):console[_0x4a0539(0x160,'Lk*A')]('❓'+_0x438764+'\x20'+JSON['stringify'](_0x5e29be));break;case _0x4a0539(0x1da,'QF]n'):if(_0x5e29be['success']&&_0x5e29be[_0x4a0539(0xce,'j2%w')]?.[_0x4a0539(0x108,'U52U')]==0xc8)$[_0x4a0539(0x244,'ZSLs')]=_0x5e29be?.[_0x4a0539(0x150,'%MX0')]?.[_0x4a0539(0x178,'#^rE')];else _0x5e29be[_0x4a0539(0xd3,'F*KS')]?.[_0x4a0539(0x29a,'HwnP')]==0x1f4?console[_0x4a0539(0x19e,'U52U')](''+_0x5e29be['errorMessage']):console[_0x4a0539(0xd9,'nzCj')]('❓'+_0x438764+'\x20'+JSON[_0x4a0539(0x2a1,'FwjF')](_0x5e29be));break;case _0x4a0539(0x136,'JfpZ'):if(_0x5e29be[_0x4a0539(0x1a9,'k!*1')]&&_0x5e29be['data']?.[_0x4a0539(0xdd,'@)kZ')]==0xc8){let _0x27f696=0x0;for(let _0x30a380 in _0x5e29be[_0x4a0539(0x2a0,'urvx')]['data'][_0x4a0539(0xcc,'97uq')]||[]){let _0x1e6c80=_0x5e29be[_0x4a0539(0x2e7,'!1WY')]['data']['list'][_0x30a380];_0x27f696+=Number(_0x1e6c80[_0x4a0539(0x11e,'HwnP')]);}if(_0x27f696>0x0)console[_0x4a0539(0x158,'97uq')]('查询奖励成功,累计获得'+_0x27f696+_0x4a0539(0xae,'5j1!'));}else _0x5e29be['data']?.[_0x4a0539(0x10e,'QF]n')]==0x1f4?console['log'](''+_0x5e29be['errorMessage']):console['log']('❓'+_0x438764+'\x20'+JSON[_0x4a0539(0x214,'cGM&')](_0x5e29be));break;case _0x4a0539(0x1e6,'xEf%'):if(_0x5e29be[_0x4a0539(0x19b,'yjal')]&&_0x5e29be['data']?.['status']==0xc8)_0x5e29be?.[_0x4a0539(0xeb,'5j1!')]?.[_0x4a0539(0x2e3,'KIQh')]?.[_0x4a0539(0x168,'ZSLs')]?(console[_0x4a0539(0xe0,'JkLN')](_0x4a0539(0x1b7,'urvx')+($[_0x4a0539(0xdf,'FwjF')]+0x1)+_0x4a0539(0x190,'Rl&z')+$[_0x4a0539(0x2cc,'ZYzv')]+'\x20('+$[_0x4a0539(0x132,'KIQh')][_0x4a0539(0x107,'$Mew')](/^(\d{3})\d{4}(\d{4})$/,_0x4a0539(0x1aa,'Q7F0'))+')\x0a'),!isNotify&&await notify[_0x4a0539(0x24f,'KIQh')]($[_0x4a0539(0x1bc,'4Hx2')]+_0x4a0539(0x2c3,'!1WY'),_0x4a0539(0x1e7,'j2%w')+$[_0x4a0539(0x2f3,'b1oZ')]+'】'+$[_0x4a0539(0x222,')b4z')]+_0x4a0539(0xb2,'Slk4')+$[_0x4a0539(0xf9,'b7]%')]+_0x4a0539(0x246,'Rl&z')+$['activityId']),$[_0x4a0539(0x148,'Vd^b')][_0x4a0539(0x19a,'JfpZ')]($['prizeShiWu']+_0x4a0539(0x18f,'b7]%'))):console[_0x4a0539(0x16d,'ZSLs')](_0x5e29be[_0x4a0539(0x22c,')b4z')][_0x4a0539(0x28b,'zCrY')]);else _0x5e29be[_0x4a0539(0x2cf,'JkLN')]?.[_0x4a0539(0x26b,'FwjF')]==0x1f4?console['log'](''+_0x5e29be[_0x4a0539(0xb7,'AFIY')]):console[_0x4a0539(0x134,'Q7F0')]('❓'+_0x438764+'\x20'+JSON[_0x4a0539(0x124,'LJIg')](_0x5e29be));break;case'抽奖':console[_0x4a0539(0xbf,'oT@n')]('❓'+_0x438764+'\x20'+JSON['stringify'](_0x5e29be));if(_0x5e29be[_0x4a0539(0x2f2,']P%P')]&&_0x5e29be['data']?.[_0x4a0539(0xbc,'Slk4')]==0xc8){$[_0x4a0539(0x22b,'syGY')]=_0x5e29be?.[_0x4a0539(0x2cf,'JkLN')]?.[_0x4a0539(0x1a3,'JfpZ')];let _0x5a41d6=$['dplhdraw']?.[_0x4a0539(0x278,'AFIY')],_0x535892=_0x5a41d6?.[_0x4a0539(0xc2,'!1WY')];switch(_0x535892){case _0x4a0539(0x17c,'syGY'):console[_0x4a0539(0x19e,'U52U')]('🎉\x20'+_0x5a41d6?.['awardName']+'\x20🐶'),$[_0x4a0539(0x1fe,'nzCj')]['fix']('🎉\x20'+_0x5a41d6?.[_0x4a0539(0x13a,'yn4p')]+'\x20🐶');break;case'point':case'integral':console[_0x4a0539(0xe0,'JkLN')]('🗑️\x20'+_0x5a41d6?.[_0x4a0539(0x1c9,'HwnP')]+'\x20\x20🎟️'),$[_0x4a0539(0x270,'LJIg')][_0x4a0539(0xc7,'AFIY')](_0x4a0539(0x186,'TRy@')+_0x5a41d6?.[_0x4a0539(0x13a,'yn4p')]+_0x4a0539(0x17a,'bg0V'));break;case'goods':$[_0x4a0539(0x252,'WB@m')]=_0x5a41d6?.['id'],$[_0x4a0539(0x1d8,'!YWA')]=_0x5a41d6?.[_0x4a0539(0x12b,'WB@m')],console[_0x4a0539(0x160,'Lk*A')](_0x4a0539(0x191,'xEf%')),console[_0x4a0539(0x11d,'bg0V')](_0x4a0539(0x2e9,'F*KS')+$[_0x4a0539(0x262,'syGY')]);if(_0x5a41d6?.[_0x4a0539(0x1be,'KIQh')])console['log']('预览图片:'+_0x5a41d6?.[_0x4a0539(0x29c,'Vd^b')]);$['message'][_0x4a0539(0xe7,'FwjF')](_0x4a0539(0x216,'4Hx2')+$[_0x4a0539(0x226,'yn4p')]);process[_0x4a0539(0x25d,'ZNSo')]['WX_ADDRESS']&&(await sendRequest('updateAddress'),await $[_0x4a0539(0x195,'Vd^b')](0xfa0));break;case _0x4a0539(0xb3,'@)kZ'):case'product':case _0x4a0539(0x196,'Vd^b'):case _0x4a0539(0x1b3,'nzCj'):case _0x4a0539(0x1bb,'ZNSo'):console[_0x4a0539(0x215,'Vd^b')](_0x4a0539(0x209,'ZNSo')+prize_type[_0x535892]);break;default:console['log'](_0x535892+_0x4a0539(0x25e,'%MX0')),console[_0x4a0539(0x1f9,'5j1!')](''+JSON['stringify']($[_0x4a0539(0x1ba,'$Mew')]));}}else _0x5e29be[_0x4a0539(0x11b,'yjal')]?.[_0x4a0539(0x250,'ZYzv')]==0x1f4?console['log'](''+_0x5e29be['errorMessage']):console['log']('❓'+_0x438764+'\x20'+JSON['stringify'](_0x5e29be));break;}}catch(_0x273f67){console[_0x4a0539(0x2b2,'LJIg')](_0x4a0539(0x1e8,'oT@n')+_0x438764+_0x4a0539(0x2be,'@)kZ')+(_0x273f67[_0x4a0539(0x2f1,'U52U')]||_0x273f67));}}async function sendRequest(_0x492abd){const _0x2700da=_0xb472d;if($[_0x2700da(0x1de,'Slk4')]||$[_0x2700da(0x2c8,'cGM&')])return;let _0x31efff=$[_0x2700da(0x22f,'JkLN')],_0x2cfe13=null,_0x1b9264=null,_0x27ea89=_0x2700da(0x2d1,'ZYzv');switch(_0x492abd){case _0x2700da(0xed,'Rl&z'):_0x31efff+=_0x2700da(0x2d2,'*SkT'),_0x1b9264={'open_id':'','mix_nick':$[_0x2700da(0x1ef,'Lk*A')]||'','user_id':$[_0x2700da(0x130,'B4*m')]},_0x2cfe13=getSignBody(_0x2700da(0x243,'Rl&z'),Object['assign']({'jdToken':$['jdToken'],'source':'01','inviteNick':$['inviteNick']||''},$[_0x2700da(0xbd,'!1WY')]?{'shopId':''+$[_0x2700da(0x121,'nzCj')]}:{}));break;case'shopList':_0x31efff+=_0x2700da(0x145,'bLHs'),_0x1b9264={'open_id':'','mix_nick':$[_0x2700da(0x14c,'oT@n')]||'','user_id':$['userId']},_0x2cfe13=getSignBody(_0x2700da(0x174,'HwnP'),{});break;case'绑定':_0x31efff+='/dm/front/jdJoinCardtf/customer/inviteRelation',_0x1b9264={'open_id':'','mix_nick':$[_0x2700da(0x249,'xEf%')]||'','user_id':$[_0x2700da(0x228,'TRy@')]},_0x2cfe13=getSignBody(_0x2700da(0x161,'b7]%'),{'inviterNick':$[_0x2700da(0x171,'syGY')]||''});break;case'mission':_0x31efff+=_0x2700da(0x1d9,'4Hx2'),_0x1b9264={'open_id':'','mix_nick':$['MixNick']||'','user_id':$[_0x2700da(0xe9,']P%P')]},_0x2cfe13=getSignBody(_0x2700da(0x2b9,'!YWA'),Object['assign']({'missionType':$['missionType']},$[_0x2700da(0x295,'JfpZ')]?{'shopId':$[_0x2700da(0x19d,'bg0V')]}:{},$[_0x2700da(0xd0,'JfpZ')]?{'goodsNumId':$['goodsNumId']}:{}));break;case _0x2700da(0x24c,'Lk*A'):_0x31efff+=_0x2700da(0x2b1,'yjal'),_0x1b9264={'open_id':'','mix_nick':$[_0x2700da(0x126,'Vd^b')]||'','user_id':$['userId']},_0x2cfe13=getSignBody(_0x2700da(0x23f,'bLHs'),{'dataType':$['dataType']});break;case _0x2700da(0xac,']P%P'):_0x31efff+=_0x2700da(0x282,'4Hx2'),_0x1b9264={'open_id':'','mix_nick':$['MixNick']||'','user_id':$['userId']},_0x2cfe13=getSignBody('/jdJoinCardtf/interactive/exchangePost',{'dataType':$[_0x2700da(0x118,'UeGP')],'awardId':$[_0x2700da(0x2cb,'ZSLs')]});break;case'抽奖':_0x31efff+=_0x2700da(0x292,'*SkT'),_0x1b9264={'open_id':'','mix_nick':$[_0x2700da(0x207,'b1oZ')]||'','user_id':$[_0x2700da(0x287,'Rl&z')]},_0x2cfe13=getSignBody(_0x2700da(0x24e,'Lk*A'),{'dataType':_0x2700da(0x24b,'!YWA'),'usedGameNum':'2'});break;case _0x2700da(0x156,'U52U'):_0x31efff+=_0x2700da(0xf8,'TRy@'),_0x1b9264={'open_id':'','mix_nick':$['MixNick']||'','user_id':$[_0x2700da(0x276,'zCrY')]},_0x2cfe13=getSignBody(_0x2700da(0x28f,'j2%w'),{'receiverName':$[_0x2700da(0x122,'ZSLs')],'receiverMobile':$[_0x2700da(0x15f,'!1WY')],'receiverProvince':$[_0x2700da(0x154,'5j1!')],'receiverCity':$[_0x2700da(0x163,'FwjF')],'receiverDistrict':$['county'],'receiverAddress':$[_0x2700da(0x2f0,'urvx')],'logId':$[_0x2700da(0x242,'4Hx2')]});break;case _0x2700da(0x1da,'QF]n'):_0x31efff+=_0x2700da(0x103,'WB@m'),_0x1b9264={'open_id':'','mix_nick':$[_0x2700da(0x1ef,'Lk*A')]||'','bizExtString':'','user_id':$['userId']},_0x2cfe13=getSignBody('/jdJoinCardtf/customer/inviteList',{});break;case _0x2700da(0x2e6,'AFIY'):_0x31efff+='/dm/front/jdJoinCardtf/awards/list',_0x1b9264={'open_id':'','mix_nick':$[_0x2700da(0x11c,'97uq')]||'','bizExtString':'','user_id':$['userId']},_0x2cfe13=getSignBody('/jdJoinCardtf/awards/list',{'pageNo':0x1,'pageSize':0x270f});break;default:console['log'](_0x2700da(0xee,'LJIg')+_0x492abd);return;}const _0x286615={};_0x2cfe13&&Object[_0x2700da(0x20c,'HwnP')](_0x2cfe13,_0x286615);_0x1b9264&&Object['assign'](_0x1b9264,_0x286615);const _0x3ea29f={'url':_0x31efff,'method':_0x27ea89,'headers':{'Accept':_0x2700da(0x2a6,'ZSLs'),'Accept-Encoding':_0x2700da(0x290,'k!*1'),'Accept-Language':_0x2700da(0x23d,'zCrY'),'Connection':_0x2700da(0x170,'#^rE'),'Content-Type':_0x2700da(0x2b3,'HwnP'),'Cookie':cookie,'User-Agent':$['UA'],'X-Requested-With':_0x2700da(0x285,'Rl&z')},'params':_0x1b9264,'data':_0x2cfe13,'timeout':0x7530};_0x27ea89===_0x2700da(0xc5,'TRy@')&&(delete _0x3ea29f['data'],delete _0x3ea29f['headers'][_0x2700da(0x2c1,'Lk*A')]);$[_0x2700da(0x224,'Q7F0')][_0x2700da(0x21d,'bLHs')]('jinggengjcq-isv.isvjcloud.com')&&(Object[_0x2700da(0x1f2,'Q7F0')](_0x3ea29f[_0x2700da(0x189,'bg0V')],{'Origin':_0x2700da(0x12f,'cGM&'),'Content-Type':_0x2700da(0x27c,'@)kZ')}),delete _0x3ea29f[_0x2700da(0x20a,'UeGP')]['Cookie']);const _0x274577=0x5;let _0x118e87=0x0,_0x4c7689=null,_0x1b68b2=![];while(_0x118e87<_0x274577){_0x118e87>0x0&&await $[_0x2700da(0x275,'AFIY')](0x3e8);const _0x533c7e=await common[_0x2700da(0x1d0,'Rl&z')](_0x3ea29f);if(!_0x533c7e[_0x2700da(0x29d,'UeGP')]){_0x4c7689=_0x2700da(0x234,'Rl&z')+_0x492abd+_0x2700da(0x1f6,'UeGP')+_0x533c7e['error'],_0x118e87++;continue;}if(!_0x533c7e['data']){_0x4c7689='🚫\x20'+_0x492abd+_0x2700da(0xdc,'ZYzv'),_0x118e87++;continue;}await handleResponse(_0x492abd,_0x533c7e[_0x2700da(0x100,'Slk4')]),_0x1b68b2=![];break;}_0x118e87>=_0x274577&&(console['log'](_0x4c7689),_0x1b68b2&&(!hotbreak&&($[_0x2700da(0xea,'WB@m')]=!![],$[_0x2700da(0x1fa,'5j1!')]&&$[_0x2700da(0x1a5,'Rl&z')][_0x2700da(0x144,'yn4p')](_0x4c7689))));}function getSignBody(_0x28c381,_0xf3e065){const _0xdde95b=_0xb472d,_0x450ddd=mpdzSign({'actId':$['activityId'],..._0xf3e065,'method':_0x28c381,'userId':$[_0xdde95b(0x27e,'JfpZ')],'buyerNick':$[_0xdde95b(0x1f5,'JfpZ')]||''}),_0x5341b6={'jsonRpc':_0xdde95b(0x155,'JkLN'),'params':{'commonParameter':{'m':_0xdde95b(0x23e,'B4*m'),'oba':_0x450ddd[_0xdde95b(0x116,'JfpZ')],'timestamp':_0x450ddd['timeStamp'],'userId':$[_0xdde95b(0x228,'TRy@')]},'admJson':{'actId':$[_0xdde95b(0x279,'5j1!')],..._0xf3e065,'method':_0x28c381,'userId':$['userId'],'buyerNick':$[_0xdde95b(0x249,'xEf%')]||''}}};return _0x28c381[_0xdde95b(0xc0,'LJIg')](_0xdde95b(0x139,'UeGP'))>-0x1&&delete _0x5341b6[_0xdde95b(0x199,'urvx')][_0xdde95b(0x105,'ZYzv')][_0xdde95b(0x21c,'xEf%')],_0x5341b6;}function mpdzSign(_0x34c9f1){const _0x1459db=_0xb472d,_0x2b2b32=_0x1459db(0x2bb,'#^rE'),_0x2f9bb8=_0x1459db(0x1fc,'ZSLs'),_0xed2aa5=new Date()['valueOf'](),_0x5e4700=new RegExp('\x27','g'),_0x4f9f4f=new RegExp('~','g'),_0x4ce9c5=encodeURIComponent(JSON['stringify'](_0x34c9f1))[_0x1459db(0x22a,'nzCj')](_0x5e4700,_0x1459db(0x288,'$Mew'))[_0x1459db(0x298,'4Hx2')](_0x4f9f4f,_0x1459db(0x1fd,'JfpZ')),_0x2e6e2c='f'+_0x2f9bb8+'D'+_0x4ce9c5+'c'+_0xed2aa5+_0x2b2b32,_0x33e724=CryptoJS[_0x1459db(0xda,')b4z')](_0x2e6e2c['toLowerCase']())[_0x1459db(0x240,'yjal')]();return{'sign':_0x33e724,'timeStamp':_0xed2aa5};}async function getAuthorCodeList(_0x1d4be3){const _0x53273a=_0xb472d,_0x47b373=await common[_0x53273a(0x17e,'(eX!')]({'url':_0x1d4be3,'method':_0x53273a(0x135,'nzCj'),'headers':{'User-Agent':_0x53273a(0x230,'JkLN')},'proxy':null,'debug':![],'timeout':0x7530}),_0x55e034=_0x47b373[_0x53273a(0x2e7,'!1WY')];return _0x55e034;}function random(_0x518e4d,_0x272940){const _0x28105a=_0xb472d;return Math[_0x28105a(0x2af,'4Hx2')](Math['random']()*(_0x272940-_0x518e4d))+_0x518e4d;}function getBlacklist(){const _0x2a626b=_0xb472d;if($[_0x2a626b(0x1cf,'b1oZ')]=='')return;console[_0x2a626b(0x1f9,'5j1!')](_0x2a626b(0xf2,'oT@n'));const _0x49ff97=Array['from'](new Set($[_0x2a626b(0xfe,'$Mew')][_0x2a626b(0x201,'ZYzv')]('&')));console[_0x2a626b(0x13f,'zCrY')](_0x49ff97[_0x2a626b(0x18b,'JfpZ')]('&')+'\x0a');let _0x49be09=_0x49ff97,_0x34ce2c=[],_0x2d4cff=![];for(let _0x32f05f=0x0;_0x32f05f-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)}