forked from tao1344/BIGOSTK_elm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ele_sqqd.js
10 lines (9 loc) · 49.5 KB
/
ele_sqqd.js
1
2
3
4
5
6
7
8
9
10
/**
* 变量:elmck: 必填,账号cookie,需要包含union_id=xxx
* cron: 11 10 * * *
* 默认延时 30 秒执行下一个账号,可以通过设置 export sq_wait_time=30 来修改延时时间
*/
const $ = new Env('饿了么社群签到');
const _0x4b92f9=_0x6936;(function(_0x388719,_0x5a8d58){const _0xb1c354=_0x6936,_0x1119a5=_0x388719();while(!![]){try{const _0x245623=-parseInt(_0xb1c354(0xdf))/(-0x1cfe+0x239*0x4+0x1*0x141b)+-parseInt(_0xb1c354(0x194))/(-0x65*0x59+0xfca*-0x1+0x1*0x32e9)*(parseInt(_0xb1c354(0x128))/(0x13*0x1d3+-0x515*-0x6+-0x4124))+parseInt(_0xb1c354(0x179))/(0x1300+-0xa7e+-0x87e)+-parseInt(_0xb1c354(0x1a1))/(-0x1ba3+0x66*-0x15+0x35*0xae)*(parseInt(_0xb1c354(0x114))/(0x1*0x12f7+-0xb6f+-0x782))+parseInt(_0xb1c354(0xc8))/(-0x1a79+-0x199b+0x1*0x341b)+parseInt(_0xb1c354(0x135))/(-0x2*0x851+0xb60+0x54a)+parseInt(_0xb1c354(0x15d))/(0x1*0x177b+0x229c+-0x3a0e);if(_0x245623===_0x5a8d58)break;else _0x1119a5['push'](_0x1119a5['shift']());}catch(_0x3e92a1){_0x1119a5['push'](_0x1119a5['shift']());}}}(_0xe8b2,-0x3*-0x22ef9+-0x13*0x2e41+0x386e4));const request=require(_0x4b92f9(0xf9)),{getToken,checkCk,getCookies,getUserInfo,validateCarmeWithType,wait,checkCarmeCount,tryCatchPromise,getbxua}=require('./common.js'),{sign}=require(_0x4b92f9(0xd2)),GAME_TYEP=-0x293*-0x1+0x5*-0xbc+0x120,wait_time=process[_0x4b92f9(0xea)][_0x4b92f9(0x1c1)]||0x1*0x11f5+0x215b+-0x3332,kami=process[_0x4b92f9(0xea)][_0x4b92f9(0x170)];function isEmpty(_0x5d1556){const _0x245f48=_0x4b92f9,_0x21252d={'JDbQd':function(_0x2a1ac0,_0x38c34c){return _0x2a1ac0===_0x38c34c;}};return _0x21252d[_0x245f48(0x1d3)](Object[_0x245f48(0x12b)](_0x5d1556)[_0x245f48(0x1bb)],0x8dd*-0x3+-0x2e*-0x95+-0x2f);}async function getInfo(_0x552b5a,_0x55f29c,_0x465ccf){const _0x299a01=_0x4b92f9,_0x261df4={'dUTmr':function(_0x5891f9,_0x413b6b){return _0x5891f9+_0x413b6b;},'DuzhU':'获得:','qsJZN':_0x299a01(0x1de),'mCWIh':function(_0x3e971e,_0x45cf04){return _0x3e971e(_0x45cf04);},'auYnN':function(_0x1f1a21,_0x5d9b58){return _0x1f1a21===_0x5d9b58;},'XVnoa':_0x299a01(0xd3),'jKxPC':function(_0x49aa7f,_0x17fc2c){return _0x49aa7f!==_0x17fc2c;},'vknwi':'sTpKs','jLAPj':_0x299a01(0x189),'ppHOw':function(_0x5ca531,_0x6d3954){return _0x5ca531===_0x6d3954;},'diLzf':_0x299a01(0x119),'ujrOU':function(_0x404be8,_0x39832a,_0x208b29){return _0x404be8(_0x39832a,_0x208b29);},'UlAps':function(_0x5a065f,_0x5756c4){return _0x5a065f+_0x5756c4;},'nscHL':_0x299a01(0xa3),'aGXru':function(_0x47ed58,_0x541b55){return _0x47ed58(_0x541b55);},'AWOWi':function(_0x4dbe22,_0x577007){return _0x4dbe22+_0x577007;},'UpwZH':function(_0x332b30,_0x20f653){return _0x332b30+_0x20f653;},'fKfyn':function(_0x5ebb82,_0x2b42b6){return _0x5ebb82+_0x2b42b6;},'otdIT':function(_0x25536c,_0x56adc2){return _0x25536c+_0x56adc2;},'mJPBz':function(_0x5ecd9c,_0x54f7f5){return _0x5ecd9c+_0x54f7f5;},'KLeKv':function(_0x4ead2d,_0x5ae6e0){return _0x4ead2d+_0x5ae6e0;},'FaENd':function(_0x4faff2,_0x202224){return _0x4faff2+_0x202224;},'XjOln':function(_0x265955,_0x21c252){return _0x265955+_0x21c252;},'LoHrA':function(_0x2efeb9,_0x2840c9){return _0x2efeb9+_0x2840c9;},'GfXXC':function(_0x42c5a6,_0x3571d3){return _0x42c5a6+_0x3571d3;},'qUMjo':'jsv=2.4.12&appKey=','PXXQD':_0x299a01(0x159),'CtfTC':_0x299a01(0x104),'jaSzS':_0x299a01(0x166),'pxoVc':function(_0x407da2,_0x5b3f56){return _0x407da2(_0x5b3f56);},'lJcfp':_0x299a01(0xc7),'bSReB':_0x299a01(0x11a),'zVadj':_0x299a01(0x188),'FUhLA':_0x299a01(0x133),'iAhfT':_0x299a01(0xc1),'ZkHAw':'Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/107.0.0.0\x20Safari/537.36\x20MicroMessenger/7.0.20.1781(0x6700143B)\x20NetType/WIFI\x20MiniProgramEnv/Windows\x20WindowsWechat/WMPF\x20WindowsWechat(0x63090923)\x20XWEB/8555','iIaCe':'cross-site','UfxrJ':_0x299a01(0xae),'bluEi':function(_0x24baf4,_0x17c21d){return _0x24baf4+_0x17c21d;},'Ggjkb':_0x299a01(0x109),'ZqXUv':_0x299a01(0x17e),'uAKxV':'zh-CN,zh;q=0.9','LwBtV':'GET'},_0x3695d6={'sceneCode':'','inviter':'','unionId':_0x465ccf,'communityType':'2','groupEnvironment':![],'encryptedData':'','iv':'','code':''},_0x5a0823=new Date()[_0x299a01(0x103)](),_0x326c79=-0x3108*-0x11be+0x280ab80+-0x3f63bc7;var _0x3f78fc=_0x261df4[_0x299a01(0x107)](_0x261df4[_0x299a01(0x1bc)],_0x261df4[_0x299a01(0x172)](encodeURIComponent,JSON['stringify'](_0x3695d6)));const _0x5f0944=_0x55f29c[_0x299a01(0x102)](';')[0x3*0x31f+0x6b9*-0x5+-0x184*-0x10],_0x1e9ba1=_0x5f0944[_0x299a01(0x102)]('_')[0x1*-0x62f+-0x12*0x111+0x49*0x59],_0x5b22e5=await sign(_0x261df4[_0x299a01(0x1b5)](_0x261df4[_0x299a01(0xb0)](_0x261df4[_0x299a01(0x1da)](_0x261df4['UlAps'](_0x1e9ba1,'&')+_0x5a0823,'&')+_0x326c79,'&'),JSON[_0x299a01(0x161)](_0x3695d6)),kami),_0x41f6a7=_0x261df4[_0x299a01(0x130)](_0x261df4[_0x299a01(0x107)](_0x261df4[_0x299a01(0x157)](_0x261df4['mJPBz'](_0x261df4[_0x299a01(0x157)](_0x261df4['KLeKv'](_0x261df4[_0x299a01(0x193)](_0x261df4[_0x299a01(0xa0)](_0x261df4[_0x299a01(0x120)](_0x261df4[_0x299a01(0x17b)](_0x261df4[_0x299a01(0x157)](_0x261df4[_0x299a01(0x15f)],_0x326c79),'&t='),_0x5a0823),_0x261df4[_0x299a01(0xa6)]),_0x5b22e5)+_0x261df4[_0x299a01(0x99)],_0x55f29c),_0x261df4['jaSzS']),_0x261df4[_0x299a01(0x184)](encodeURIComponent,_0x261df4[_0x299a01(0x177)])),_0x299a01(0xb5)),'&'),_0x3f78fc)+_0x261df4[_0x299a01(0x117)],{bx_ua:_0x120610,mini_janus:_0x460147}=await getbxua(kami,_0x41f6a7),_0x13fb38={'content-type':_0x261df4[_0x299a01(0x173)],'Connection':_0x261df4['FUhLA'],'Cookie':_0x261df4['XjOln'](_0x552b5a,''),'x-tap':'wx','mini-janus':_0x261df4[_0x299a01(0x18c)](encodeURIComponent,_0x460147),'x-decode-ua':_0x261df4[_0x299a01(0x127)],'x-secext-city':'16','bx-ua':_0x261df4[_0x299a01(0x18c)](encodeURIComponent,_0x120610),'user-agent':_0x261df4[_0x299a01(0x16b)],'accept':_0x299a01(0xbd),'xweb_xhr':'1','sec-fetch-site':_0x261df4[_0x299a01(0x16a)],'sec-fetch-mode':_0x261df4[_0x299a01(0xe6)],'x-ua':_0x261df4[_0x299a01(0x1ab)](_0x299a01(0x1af),_0x465ccf),'x-decode-ua':_0x299a01(0xc1),'sec-fetch-dest':_0x261df4[_0x299a01(0xb8)],'referer':_0x261df4[_0x299a01(0xfa)],'accept-language':_0x261df4[_0x299a01(0xb7)],'xweb_xhr':0x1},_0x481886={'url':_0x261df4[_0x299a01(0x17b)]('https://waimai-guide.ele.me/h5/mtop.alsc.wechat.biz.api.community.homepage/1.0/4.0/?',_0x41f6a7),'method':_0x261df4['LwBtV'],'headers':_0x13fb38};return new Promise(_0x336746=>{const _0x4bd611=_0x299a01,_0x5c55f1={'ZUNZv':function(_0x29ad29,_0xf40648){const _0x46d959=_0x6936;return _0x261df4[_0x46d959(0x18c)](_0x29ad29,_0xf40648);},'SieOR':function(_0xda7bab,_0x1af5fd){const _0x50ecb2=_0x6936;return _0x261df4[_0x50ecb2(0xab)](_0xda7bab,_0x1af5fd);},'rslsp':_0x261df4[_0x4bd611(0x86)],'Jmbtc':function(_0x19759a,_0x54fb0c){const _0x2a0f04=_0x4bd611;return _0x261df4[_0x2a0f04(0x199)](_0x19759a,_0x54fb0c);},'nyUzP':_0x261df4[_0x4bd611(0x150)],'MfgHj':function(_0xe916ae,_0x9a656a){return _0xe916ae(_0x9a656a);},'yFyBU':function(_0x262bc9,_0x411273){return _0x262bc9(_0x411273);},'IAaqg':_0x261df4['jLAPj'],'PoSNO':_0x4bd611(0xb6),'uXGcl':_0x4bd611(0x17a),'GSsxc':function(_0x21f0b7,_0x3182e7){return _0x21f0b7(_0x3182e7);}};_0x261df4['ppHOw'](_0x261df4['diLzf'],_0x4bd611(0x14e))?(_0x409790[_0x4bd611(0xc5)](_0x261df4[_0x4bd611(0x130)](_0x261df4['dUTmr'](_0x261df4[_0x4bd611(0x130)](_0x4e7727[_0x4bd611(0x1b3)][_0x4bd611(0x162)],_0x261df4[_0x4bd611(0x13d)]),_0x59361c[_0x4bd611(0x1b3)][_0x4bd611(0x16e)]),_0x261df4['qsJZN'])),_0x45becd(_0xfa68f[_0x4bd611(0x1b3)])):_0x261df4[_0x4bd611(0x1b6)](request,_0x481886,async(_0x2c43c2,_0x55bde4,_0x3342f5)=>{const _0x4eda2e=_0x4bd611;if(_0x5c55f1['SieOR'](_0x5c55f1[_0x4eda2e(0xf3)],'yTgCs')){const _0x1bae65=_0x1ad29e[_0x4eda2e(0xf4)](_0x176a9d,arguments);return _0x1d56fd=null,_0x1bae65;}else{if(!_0x2c43c2&&_0x55bde4[_0x4eda2e(0xff)]===-0x2576+0x67e*0x3+0x12c4){if(_0x5c55f1[_0x4eda2e(0x19b)](_0x5c55f1[_0x4eda2e(0x1be)],_0x5c55f1['nyUzP']))_0x4f3cb7[_0x4eda2e(0xc5)](_0x1473ca),_0x5c55f1[_0x4eda2e(0x11e)](_0x49164b,null);else try{const _0x4f8c91=JSON[_0x4eda2e(0xb3)](_0x3342f5);if(!_0x5c55f1[_0x4eda2e(0xd7)](isEmpty,_0x4f8c91[_0x4eda2e(0x1b3)]))_0x5c55f1[_0x4eda2e(0xd0)](_0x336746,_0x4f8c91['data']);else{if(_0x5c55f1[_0x4eda2e(0x19b)](_0x5c55f1['IAaqg'],_0x4eda2e(0x124)))console[_0x4eda2e(0xc5)](_0x4f8c91['ret'][-0x398*0x8+0x45a*0x4+0xb58]),_0x336746(null);else return!![];}}catch(_0x5d3a1e){_0x5c55f1[_0x4eda2e(0xcd)]===_0x5c55f1[_0x4eda2e(0x9a)]?_0x1c7977[_0xd10674[_0x4eda2e(0x102)]('=')[-0x23*0x11b+0x155a*0x1+-0x1157*-0x1]]=_0x25dbdb[_0x4eda2e(0x102)]('=')[-0x2438+0x1*0x1027+0x1412]:(console[_0x4eda2e(0xc5)](_0x3342f5),_0x336746(null));}}else _0x5c55f1['GSsxc'](_0x336746,null);}});});}function _0xe8b2(){const _0x1c7aa4=['VROzM','Hckju','PPpcy','zSjHc','communityInfo','ZudIb','FaENd','1660CVKQap','RGRqU','yRZsr','GdAEY','rCVtV','jKxPC','SDyoA','Jmbtc','username','AOFPz','kJijs','uXzZZ','kbITp','1405ErtYnj','hpFvp','forEach','RlnTn','exBVH','KPqpz','Dzyjk','fBFaQ','zyLLX','tcHrn','bluEi','qmKqU','RImvR','qyGUg','MiniAppVersion/11.7.0\x20DeviceId/','UxnXU','FiuwK','Mfgqx','data','VKKSF','AWOWi','ujrOU','iqRbo','tVIGv','gIzPB','evpUj','length','nscHL','aEoAQ','nyUzP','TZFaB','VgKEe','sq_wait_time','lkdeT','YTrkW','jxLUe','IcNRW','DtNAa','DGgTu','SxaaD','Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/107.0.0.0\x20Safari/537.36\x20MicroMessenger/7.0.20.1781(0x6700143B)\x20NetType/WIFI\x20MiniProgramEnv/Windows\x20WindowsWechat/WMPF\x20WindowsWechat(0x63090923)\x20XWEB/8555','lHllk','KpAJz','kJzci','qEnkb','cmIpw','FjYNu','TzPnF','Zrgzp','kPxMJ','JDbQd','union_id','mbQZN','LfQhr','inviteUserInfoDTO','BdUua','wmBRI','fKfyn','exit','BmbPY','ZhPBz','\x20福利金','xqnmO','XVnoa','SBEzp','debu','\x20❌无效用户信息,\x20请重新获取ck','OsYNM','wjLQK','IisDg','tPQgC','WLyZR','hIkOL','秒继续下一个','cross-site','XGziu','kLyEV','inInz','constructor','wpSph','LuiJl','dUzCm','CtfTC','uXGcl','https://guide-acs.m.taobao.com/h5/mtop.alsc.wechat.biz.api.community.bind.invite/1.0/4.0/?','XutjG','BhTwu','AgxpL','yuyQI','XjOln','bFEBb','TDYuk','data=','_m_h5_tk','wmoGs','PXXQD','nZsKt','wdhXy','*********','MSnYQ','auYnN','byRIE','jNEYr','cors','cLhed','UpwZH','TqvEd','NDzcz','parse','LLOqM','&accountSite=eleme','hQwIs','uAKxV','Ggjkb','SlhvO','jsv=2.4.12&appKey=','tXFxO','NgkSN','application/json','init','Xgjdk','UuXZI','false','VybTX','KrLgY','HufqA','log','CYTBY','wxece3a9a4c82f58c9@wechat_ios_11.7.0','3492986shtHWN','IttpW','wzrJH','wHpZq','hNFJx','PoSNO','string','XnAsh','yFyBU','rOMDU','./common','MqNwe','IwRHk','\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)','ESKiu','MfgHj','VWLFt','wjdiN','KEIyB','IuGIF','counter','pOuOB','iNlzi','248297syhGtj','tIHUK','&accountSite=eleme&needLogin=true','while\x20(true)\x20{}','EwPxX','aTuAb','MzMfS','UfxrJ','获得:','QiMxv','vvpbu','env','nlAEn','VvRgH','lEBgr','zh-CN,zh;q=0.9','tQHRl','tQtEl','EqyNv','csZfH','rslsp','apply','76466F','vYiJj','WuJPD','KyHGu','request','ZqXUv','JsyZp','&t=','FtZhw','Grctk','statusCode','rBuBg','wxece3a9a4c82f58c9@wechat_ios_11.4.4','split','getTime','&c=','mVwYF','uempU','UlAps','TuJfM','empty','AHgFS','LkygD','oTHKZ','vMsum','VnypE','AVtkL','call','EqRri','bTzKd','NEccz','14838eOzwuK','ywIpt','EorWu','bSReB','nLFbo','PKMnc','&_bx-m=1','XAJLE','qDBhL','AETyQ','ZUNZv','zPdSg','LoHrA','chain','JWrFJ','function\x20*\x5c(\x20*\x5c)','LHzwH','VDtoL','sVicE','iAhfT','2598NkwklV','lDCMz','Ijruk','values','cHGcG','缺少union_id','LpfME','https://guide-acs.m.taobao.com/h5/mtop.alsc.wechat.biz.api.checkin/1.0/4.0/?','dUTmr','uETGg','userInfo','keep-alive','gkTZN','621280uBrDGv','wTWDG','Nxctq','input','prGAK','UYTWf','ewFJz','gger','DuzhU','你还没有加入社群,快找社群加入吧!','QiCxV','user_id','hFfGv','vkqLW','FkXQi','vzbOf','bgTUR','_m_h5_tk_enc','JqUOw','fyQLz','mjzGK','vHqwC','ret','jBsGJ','action','xFTvd','jbJGk','vknwi','CRppe','fxeFY','xIALE','stateObject','miikE','AuakB','otdIT','XiXXZ','&sign=','nBiOt','NbZVN','QOzqd','13151322AwWGCU','WZgKJ','qUMjo','tKspu','stringify','desc','PReoE','FBOzg','ppeuR','&api=mtop.alsc.wechat.biz.api.community.homepage&dataType=json&method=GET&timeout=10000&v=1.0&type=originaljson&ttid=','communityName','KaeDZ','YCBws','iIaCe','ZkHAw','EBywv','获取用户信息:','awardAmount','xnfnv','ELE_CARME','raZAX','aGXru','zVadj','MdANz','gvuGb','phAaE','lJcfp','oZycV','238104ELUWpT','jXNxF','GfXXC','test','绑定的社群为:','https://servicewechat.com/wxece3a9a4c82f58c9/582/page-frame.html','zNzWo','FmsPU','xcHlN','mDCUs','inviteCode','pxoVc','ZrgBO','TlGlb','JsRiK','application/x-www-form-urlencoded','EavzL','sTWLY','******开始【饿了么账号','mCWIh'];_0xe8b2=function(){return _0x1c7aa4;};return _0xe8b2();}async function signin(_0x13f469,_0x31bbbe,_0x236509,_0x4e78d1){const _0x1dddbb=_0x4b92f9,_0x474dd3={'kPxMJ':function(_0xeb8f50,_0x50c652){return _0xeb8f50===_0x50c652;},'sVicE':function(_0x5ea3b4,_0x14f663){return _0x5ea3b4!==_0x14f663;},'tQHRl':_0x1dddbb(0x16c),'hNFJx':function(_0x3662b8,_0x10dda0){return _0x3662b8(_0x10dda0);},'MzMfS':function(_0x3c8225,_0x3aa1b0){return _0x3c8225(_0x3aa1b0);},'qDBhL':function(_0x139640,_0xd68339){return _0x139640(_0xd68339);},'FkXQi':function(_0x272b9f,_0xa2d390){return _0x272b9f+_0xa2d390;},'aTuAb':_0x1dddbb(0x13c),'KrLgY':function(_0x5e7084,_0x2466ab){return _0x5e7084!==_0x2466ab;},'ewFJz':_0x1dddbb(0x113),'nlAEn':function(_0x3f96e8,_0x2a8c61,_0xbd7e91){return _0x3f96e8(_0x2a8c61,_0xbd7e91);},'vzbOf':function(_0x43829a,_0x247f75){return _0x43829a+_0x247f75;},'XutjG':_0x1dddbb(0xa3),'yfDYz':function(_0x32bb33,_0x2f111d){return _0x32bb33(_0x2f111d);},'kJzci':function(_0x3b8b48,_0x42531e){return _0x3b8b48+_0x42531e;},'vkqLW':function(_0x495e81,_0x284077){return _0x495e81+_0x284077;},'rOMDU':function(_0x179d32,_0x14db5a){return _0x179d32+_0x14db5a;},'bQnJu':function(_0x166aa9,_0x5eb5a8){return _0x166aa9+_0x5eb5a8;},'IttpW':function(_0x69a113,_0x2e73b3){return _0x69a113+_0x2e73b3;},'VROzM':function(_0x49ec0b,_0x55432d){return _0x49ec0b+_0x55432d;},'FtZhw':function(_0x6564b3,_0x4af928){return _0x6564b3+_0x4af928;},'rWERT':function(_0x2173e3,_0x568a66){return _0x2173e3+_0x568a66;},'fxeFY':function(_0x293d40,_0x1e20cc){return _0x293d40+_0x1e20cc;},'vMsum':function(_0x484e56,_0x3732ad){return _0x484e56+_0x3732ad;},'PReoE':_0x1dddbb(0xba),'exBVH':_0x1dddbb(0x159),'shHYY':_0x1dddbb(0x166),'Dzyjk':function(_0x6b7cca,_0x4a16f5){return _0x6b7cca(_0x4a16f5);},'EwPxX':_0x1dddbb(0x101),'XnAsh':_0x1dddbb(0x188),'VybTX':_0x1dddbb(0x133),'VvRgH':function(_0x517f10,_0x38cc03){return _0x517f10(_0x38cc03);},'nBiOt':_0x1dddbb(0xc1),'lkdeT':function(_0x31b26f,_0x16accc){return _0x31b26f(_0x16accc);},'lHllk':_0x1dddbb(0x1c9),'KyHGu':_0x1dddbb(0xbd),'xqnmO':_0x1dddbb(0x1af),'gvuGb':_0x1dddbb(0x109),'bTzKd':_0x1dddbb(0x17e),'wpSph':_0x1dddbb(0xee),'cHGcG':function(_0x5e3267,_0xb9002e){return _0x5e3267+_0xb9002e;},'lDCMz':_0x1dddbb(0x12f),'jBsGJ':function(_0x5dbfd8,_0x2c870e){return _0x5dbfd8(_0x2c870e);}},_0x5b271d={'sceneCode':_0x31bbbe,'firstCheckIn':![]},_0x1f27e4=new Date()[_0x1dddbb(0x103)](),_0x396bfe=0x5d4923*-0x9+0x2c9cbae*-0x1+0x13a9*0x6842;var _0x2b5add=_0x474dd3[_0x1dddbb(0x144)](_0x474dd3[_0x1dddbb(0x9c)],_0x474dd3['yfDYz'](encodeURIComponent,JSON[_0x1dddbb(0x161)](_0x5b271d)));const _0x4113cd=_0x236509[_0x1dddbb(0x102)](';')[0x1394+0x156*-0xe+-0x4*0x38],_0x254144=_0x4113cd['split']('_')[-0x8f9+0x1179+0x220*-0x4],_0x3d7641=await sign(_0x474dd3[_0x1dddbb(0x143)](_0x474dd3['kJzci'](_0x474dd3[_0x1dddbb(0x142)](_0x474dd3[_0x1dddbb(0x143)](_0x474dd3[_0x1dddbb(0xd1)](_0x474dd3['vzbOf'](_0x254144,'&'),_0x1f27e4),'&'),_0x396bfe),'&'),JSON[_0x1dddbb(0x161)](_0x5b271d)),kami),_0x301a69=_0x474dd3['bQnJu'](_0x474dd3[_0x1dddbb(0xc9)](_0x474dd3[_0x1dddbb(0x18d)](_0x474dd3[_0x1dddbb(0xfd)](_0x474dd3['bQnJu'](_0x474dd3['rWERT'](_0x474dd3[_0x1dddbb(0x152)](_0x474dd3[_0x1dddbb(0x10d)](_0x474dd3[_0x1dddbb(0xd1)](_0x474dd3[_0x1dddbb(0x163)],_0x396bfe)+_0x1dddbb(0xfc),_0x1f27e4),_0x474dd3[_0x1dddbb(0x1a5)]),_0x3d7641)+'&c=',_0x236509),_0x474dd3['shHYY']),_0x474dd3[_0x1dddbb(0x1a7)](encodeURIComponent,_0x474dd3[_0x1dddbb(0xe3)]))+_0x1dddbb(0xe1),'&'),_0x2b5add),{bx_ua:_0x2d5ae6,mini_janus:_0xd9b7a2}=await _0x474dd3[_0x1dddbb(0xeb)](getbxua,kami,_0x301a69),_0x555fa2={'content-type':_0x474dd3[_0x1dddbb(0xcf)],'Connection':_0x474dd3[_0x1dddbb(0xc2)],'Cookie':_0x13f469+'','x-tap':'wx','mini-janus':_0x474dd3[_0x1dddbb(0xec)](encodeURIComponent,_0xd9b7a2),'x-decode-ua':_0x474dd3['nBiOt'],'x-secext-city':'16','bx-ua':_0x474dd3[_0x1dddbb(0x1c2)](encodeURIComponent,_0x2d5ae6),'user-agent':_0x474dd3[_0x1dddbb(0x1ca)],'accept':_0x474dd3[_0x1dddbb(0xf8)],'xweb_xhr':'1','sec-fetch-site':_0x1dddbb(0x91),'sec-fetch-mode':_0x1dddbb(0xae),'x-ua':_0x474dd3[_0x1dddbb(0x1cc)](_0x474dd3[_0x1dddbb(0x1df)],_0x4e78d1),'x-decode-ua':_0x474dd3[_0x1dddbb(0x15a)],'sec-fetch-dest':_0x474dd3[_0x1dddbb(0x175)],'referer':_0x474dd3[_0x1dddbb(0x112)],'accept-language':_0x474dd3[_0x1dddbb(0x96)],'xweb_xhr':0x1},_0xa23b33={'url':_0x474dd3[_0x1dddbb(0x12c)](_0x474dd3[_0x1dddbb(0x129)],_0x301a69),'method':'GET','headers':_0x555fa2};return _0x474dd3[_0x1dddbb(0x14c)](tryCatchPromise,_0x198504=>{const _0x596d65=_0x1dddbb,_0x379da4={'zPdSg':function(_0x51718c,_0xc8c393){return _0x474dd3['FkXQi'](_0x51718c,_0xc8c393);},'wjLQK':_0x474dd3[_0x596d65(0xe4)]};_0x474dd3[_0x596d65(0xc3)](_0x474dd3[_0x596d65(0x13b)],_0x474dd3[_0x596d65(0x13b)])?function(){return!![];}[_0x596d65(0x95)](VezZcL[_0x596d65(0x11f)](_0x596d65(0x88),VezZcL[_0x596d65(0x8b)]))[_0x596d65(0x110)]('action'):_0x474dd3['nlAEn'](request,_0xa23b33,async(_0x6de9a6,_0xe1e9df,_0x11e0a6)=>{const _0x38e578=_0x596d65,_0x24fb9e={'WZgKJ':function(_0x27a0e6,_0x4d9f8f){return _0x27a0e6(_0x4d9f8f);}};if(!_0x6de9a6&&_0x474dd3[_0x38e578(0x1d2)](_0xe1e9df[_0x38e578(0xff)],0x17*-0x95+-0x2*0xb57+-0x1*-0x24d9)){if(_0x474dd3[_0x38e578(0x126)](_0x474dd3[_0x38e578(0xef)],_0x474dd3[_0x38e578(0xef)]))hYWSwj[_0x38e578(0x15e)](_0x1748d8,'0');else try{const _0x4bd800=JSON['parse'](_0x11e0a6);!_0x474dd3[_0x38e578(0xcc)](isEmpty,_0x4bd800[_0x38e578(0x1b3)])?_0x474dd3[_0x38e578(0xe5)](_0x198504,_0x4bd800['data']):(console[_0x38e578(0xc5)](_0x4bd800['ret'][-0xa61+0x1039+-0x5d8]),_0x198504(null));}catch(_0x52c3da){console[_0x38e578(0xc5)](_0x11e0a6||_0x52c3da),_0x474dd3[_0x38e578(0xe5)](_0x198504,null);}}else _0x474dd3[_0x38e578(0x11c)](_0x198504,null);});});}async function bindInvited(_0x4c9f5d,_0x174adf,_0x1b9541){const _0x22a316=_0x4b92f9,_0x5180f0={'MSnYQ':_0x22a316(0xd5),'FmsPU':_0x22a316(0x138),'xBzfo':_0x22a316(0x1c8),'SLsxS':function(_0x1b911f,_0x2e380a){return _0x1b911f+_0x2e380a;},'AuakB':_0x22a316(0x88),'zxspP':'gger','kLyEV':_0x22a316(0x154),'RImvR':function(_0x583c16,_0xc918a2){return _0x583c16||_0xc918a2;},'DtNAa':function(_0xbb5731,_0x513433){return _0xbb5731(_0x513433);},'tQtEl':function(_0x81d5b8,_0x56335a){return _0x81d5b8===_0x56335a;},'lDsso':_0x22a316(0xd6),'evpUj':function(_0x1f8cb1,_0x5cf8fa){return _0x1f8cb1+_0x5cf8fa;},'CYTBY':_0x22a316(0x185),'wjdiN':'Cflsn','VDtoL':_0x22a316(0x11d),'tVIGv':'gPAhZ','jIfIW':_0x22a316(0x14a),'TDYuk':function(_0x28a2d7,_0x340b5e,_0x341bd2){return _0x28a2d7(_0x340b5e,_0x341bd2);},'qmKqU':function(_0x1ebb5b,_0x4c7203){return _0x1ebb5b+_0x4c7203;},'SlhvO':function(_0x19032c,_0x16cd10){return _0x19032c+_0x16cd10;},'VgKEe':function(_0x43791b,_0x2735f8){return _0x43791b(_0x2735f8);},'EqRri':function(_0x3a125c,_0x25233f,_0x488500){return _0x3a125c(_0x25233f,_0x488500);},'zyLLX':function(_0x513038,_0x192052){return _0x513038+_0x192052;},'aEoAQ':function(_0xceec68,_0x258f66){return _0xceec68+_0x258f66;},'PyMYk':function(_0x5b6e41,_0x1bfe0d){return _0x5b6e41+_0x1bfe0d;},'VWLFt':function(_0x782dfc,_0x1299b8){return _0x782dfc+_0x1299b8;},'AENlr':function(_0x2a247d,_0x59e7d2){return _0x2a247d+_0x59e7d2;},'XiXXZ':function(_0x3dfd85,_0x3ca806){return _0x3dfd85+_0x3ca806;},'mbQZN':function(_0x23f66a,_0x1a366b){return _0x23f66a+_0x1a366b;},'oMgZj':function(_0x5bec67,_0x342a05){return _0x5bec67+_0x342a05;},'EqyNv':function(_0x2133c3,_0x2a669a){return _0x2133c3+_0x2a669a;},'uempU':function(_0x196756,_0x4b2ddc){return _0x196756+_0x4b2ddc;},'IisDg':_0x22a316(0xba),'sPPJN':_0x22a316(0x159),'JELsi':'&api=mtop.alsc.wechat.biz.api.community.homepage&dataType=json&method=GET&timeout=10000&v=1.0&type=originaljson&ttid=','lEBgr':_0x22a316(0x101),'LuiJl':_0x22a316(0xe1),'qYecz':function(_0x32bd4c,_0x1810f2,_0x6454cc){return _0x32bd4c(_0x1810f2,_0x6454cc);},'BhTwu':'application/x-www-form-urlencoded','xKzpe':function(_0x11a74e,_0x4293a7){return _0x11a74e(_0x4293a7);},'QOzqd':_0x22a316(0x1c9),'csZfH':_0x22a316(0xbd),'vYiJj':_0x22a316(0x91),'AVtkL':_0x22a316(0xae),'oTHKZ':_0x22a316(0x1af),'AOFPz':_0x22a316(0xc1),'AhOuS':_0x22a316(0x109),'ZhPBz':_0x22a316(0x17e),'lEcoy':_0x22a316(0xee),'ppeuR':function(_0x1adab4,_0x36b6c7){return _0x1adab4+_0x36b6c7;},'Grctk':_0x22a316(0x9b),'EmebJ':'GET'},_0x4a9986={},_0x3fe0af=_0x4c9f5d[_0x22a316(0x102)](';')[_0x22a316(0x1a3)](_0x3a5363=>{const _0x4a869a=_0x22a316,_0x597e8a={'BmKhd':_0x4a869a(0x123),'mcKgd':_0x5180f0[_0x4a869a(0xaa)],'QiCxV':function(_0x4325f5,_0x24ac90){return _0x4325f5+_0x24ac90;},'miikE':_0x4a869a(0x121),'nZsKt':function(_0x48d36c,_0xf47124){return _0x48d36c+_0xf47124;},'hIkOL':_0x5180f0[_0x4a869a(0x180)],'NDzcz':function(_0x1909d5,_0x242ceb){return _0x1909d5(_0x242ceb);}};if(_0x5180f0['xBzfo']!==_0x4a869a(0x1c8)){const _0x11e8f7=new _0x73d29b(RksCaK['BmKhd']),_0x3d1d67=new _0x55ead9(RksCaK['mcKgd'],'i'),_0x2277b0=_0x3e1da0(_0x4a869a(0xbe));!_0x11e8f7['test'](RksCaK[_0x4a869a(0x13f)](_0x2277b0,RksCaK[_0x4a869a(0x155)]))||!_0x3d1d67[_0x4a869a(0x17c)](RksCaK[_0x4a869a(0xa7)](_0x2277b0,RksCaK[_0x4a869a(0x8f)]))?RksCaK[_0x4a869a(0xb2)](_0x2277b0,'0'):_0x14bc01();}else _0x4a9986[_0x3a5363[_0x4a869a(0x102)]('=')[0x184a+-0xa57*0x2+-0x39c]]=_0x3a5363[_0x4a869a(0x102)]('=')[0x24e7+-0x2*0x10cf+-0x118*0x3];}),_0x355aae=_0x5180f0[_0x22a316(0x1ac)](_0x5180f0[_0x22a316(0xb9)](_0x4a9986[_0x22a316(0xa4)],';'),_0x4a9986['_m_h5_tk_enc']),_0x4da162=_0x355aae,_0x54a717={'inviteCode':_0x5180f0[_0x22a316(0xb9)](_0x5180f0[_0x22a316(0x1ba)]('',_0x174adf),''),'firstCheckIn':![]},_0xe12440=new Date()['getTime'](),_0x2dd251=-0x74651*0x83+-0x16560d*0x13+0x751ba13;var _0x4a05ab=_0x5180f0[_0x22a316(0xb9)](_0x22a316(0xa3),_0x5180f0[_0x22a316(0x1c0)](encodeURIComponent,JSON[_0x22a316(0x161)](_0x54a717)));const _0x56d75e=_0x4da162[_0x22a316(0x102)](';')[-0x842*0x3+-0x5*0x6b5+-0x3a4f*-0x1],_0x1e83f2=_0x56d75e[_0x22a316(0x102)]('_')[0x1*-0x68d+0xbc0+-0x79*0xb],_0x277517=await _0x5180f0[_0x22a316(0x111)](sign,_0x5180f0[_0x22a316(0x1a9)](_0x5180f0[_0x22a316(0xb9)](_0x5180f0[_0x22a316(0x1bd)](_0x5180f0['PyMYk'](_0x1e83f2,'&'),_0xe12440),'&')+_0x2dd251+'&',JSON[_0x22a316(0x161)](_0x54a717)),kami),_0x59a5f9=_0x5180f0[_0x22a316(0xd8)](_0x5180f0[_0x22a316(0x1bd)](_0x5180f0['AENlr'](_0x5180f0[_0x22a316(0x158)](_0x5180f0[_0x22a316(0x1d5)](_0x5180f0[_0x22a316(0xb9)](_0x5180f0['oMgZj'](_0x5180f0['oMgZj'](_0x5180f0[_0x22a316(0xf1)](_0x5180f0[_0x22a316(0x106)](_0x5180f0[_0x22a316(0x8c)],_0x2dd251),_0x22a316(0xfc)),_0xe12440),_0x5180f0['sPPJN']),_0x277517),_0x22a316(0x104)),_0x4da162)+_0x5180f0['JELsi'],encodeURIComponent(_0x5180f0[_0x22a316(0xed)])),_0x5180f0[_0x22a316(0x97)]),'&')+_0x4a05ab,{bx_ua:_0x5747b8,mini_janus:_0x4286d2}=await _0x5180f0['qYecz'](getbxua,kami,_0x59a5f9),_0x484b62={'content-type':_0x5180f0[_0x22a316(0x9d)],'Connection':_0x22a316(0x133),'Cookie':_0x5180f0[_0x22a316(0xd8)](_0x4c9f5d,''),'x-tap':'wx','mini-janus':encodeURIComponent(_0x4286d2),'x-decode-ua':_0x22a316(0xc1),'x-secext-city':'16','bx-ua':_0x5180f0['xKzpe'](encodeURIComponent,_0x5747b8),'user-agent':_0x5180f0[_0x22a316(0x15c)],'accept':_0x5180f0[_0x22a316(0xf2)],'xweb_xhr':'1','sec-fetch-site':_0x5180f0[_0x22a316(0xf6)],'sec-fetch-mode':_0x5180f0[_0x22a316(0x10f)],'x-ua':_0x5180f0[_0x22a316(0x10c)]+_0x1b9541,'x-decode-ua':_0x5180f0[_0x22a316(0x19d)],'sec-fetch-dest':_0x5180f0['AhOuS'],'referer':_0x5180f0[_0x22a316(0x1dd)],'accept-language':_0x5180f0['lEcoy'],'xweb_xhr':0x1},_0x3f2434={'url':_0x5180f0[_0x22a316(0x165)](_0x5180f0[_0x22a316(0xfe)],_0x59a5f9),'method':_0x5180f0['EmebJ'],'headers':_0x484b62};return tryCatchPromise(_0x50bfc4=>{const _0x393d64=_0x22a316,_0x2b6a37={'jKSnu':function(_0xd8d565,_0x6368e8){return _0x5180f0['SLsxS'](_0xd8d565,_0x6368e8);},'phSjf':_0x5180f0[_0x393d64(0x156)],'AgxpL':_0x5180f0['zxspP'],'MdANz':_0x5180f0[_0x393d64(0x93)],'wdhXy':function(_0x49515a,_0x498225){const _0x27c7d9=_0x393d64;return _0x5180f0[_0x27c7d9(0x1ad)](_0x49515a,_0x498225);},'uETGg':function(_0x21134e,_0x36d5ee){const _0x5d8865=_0x393d64;return _0x5180f0[_0x5d8865(0x1c6)](_0x21134e,_0x36d5ee);},'TzPnF':function(_0x265eca,_0xf7ae77){const _0x47888c=_0x393d64;return _0x5180f0[_0x47888c(0xf0)](_0x265eca,_0xf7ae77);},'mjzGK':_0x5180f0['lDsso'],'pwMKi':function(_0x32c76d,_0x394df7){const _0x4fa95b=_0x393d64;return _0x5180f0[_0x4fa95b(0x1ba)](_0x32c76d,_0x394df7);},'fyQLz':_0x393d64(0xe7),'WLyZR':_0x393d64(0x1de),'OsYNM':function(_0x4da37c,_0x205f58){return _0x4da37c!==_0x205f58;},'bTUaa':_0x5180f0[_0x393d64(0xc6)],'cLhed':_0x5180f0[_0x393d64(0xd9)],'XGziu':function(_0x12347d,_0x355594){const _0x487680=_0x393d64;return _0x5180f0[_0x487680(0x1c6)](_0x12347d,_0x355594);},'wmoGs':_0x5180f0[_0x393d64(0x125)]};_0x5180f0[_0x393d64(0xf0)](_0x5180f0[_0x393d64(0x1b8)],_0x5180f0['jIfIW'])?function(){return![];}['constructor'](iGLGqg['jKSnu'](iGLGqg['phSjf'],iGLGqg[_0x393d64(0x9e)]))[_0x393d64(0xf4)](iGLGqg[_0x393d64(0x174)]):_0x5180f0[_0x393d64(0xa2)](request,_0x3f2434,async(_0x2948a9,_0x500f2b,_0x392858)=>{const _0x211918=_0x393d64;if(_0x2b6a37[_0x211918(0x1d0)](_0x2b6a37[_0x211918(0x149)],_0x2b6a37[_0x211918(0x149)])){if(!_0x2948a9&&_0x2b6a37['TzPnF'](_0x500f2b[_0x211918(0xff)],-0xd1d+-0x1a*0x17+-0x33f*-0x5))try{const _0x1a883a=JSON[_0x211918(0xb3)](_0x392858);if(!_0x2b6a37[_0x211918(0x131)](isEmpty,_0x1a883a[_0x211918(0x1b3)]))console[_0x211918(0xc5)](_0x2b6a37['jKSnu'](_0x2b6a37['pwMKi'](_0x1a883a[_0x211918(0x1b3)][_0x211918(0x162)],_0x2b6a37[_0x211918(0x148)])+_0x1a883a[_0x211918(0x1b3)][_0x211918(0x16e)],_0x2b6a37[_0x211918(0x8e)])),_0x50bfc4(_0x1a883a['data']);else{if(_0x2b6a37['OsYNM'](_0x211918(0x185),_0x2b6a37['bTUaa'])){const _0x264584=_0x1de9b4?function(){const _0x5ed1b6=_0x211918;if(_0x1bd22c){const _0x32cb26=_0x4e3931[_0x5ed1b6(0xf4)](_0x46c6f0,arguments);return _0x47cdac=null,_0x32cb26;}}:function(){};return _0x59f532=![],_0x264584;}else console[_0x211918(0xc5)](_0x1a883a[_0x211918(0x14b)][0x2139+-0x1312+-0x1*0xe27]),_0x50bfc4(null);}}catch(_0x3bf439){_0x2b6a37[_0x211918(0x8a)](_0x2b6a37['cLhed'],_0x2b6a37[_0x211918(0xaf)])?_0x4e20c4[_0x37e806[_0x211918(0x102)]('=')[0x78+-0x1ca0+0x1*0x1c28]]=_0x50fcf9['split']('=')[0x20ce*-0x1+-0x377*-0x1+-0x1*-0x1d58]:(console[_0x211918(0xc5)](_0x392858),_0x2b6a37[_0x211918(0x92)](_0x50bfc4,null));}else _0x2b6a37[_0x211918(0x8a)](_0x2b6a37[_0x211918(0xa5)],_0x211918(0x164))?_0x50bfc4(null):_0x1baf88[_0x211918(0xc5)](_0x758bf1[_0x211918(0x162)]);}else _0x2860da[_0x211918(0xc5)](_0x2b6a37[_0x211918(0xa8)](_0x1c586a,_0xc37ba9)),_0x2b6a37[_0x211918(0x131)](_0x113e5b,null);});});}async function checkIn(_0x392d15,_0x1b2591,_0x4347f6){const _0x40a04a=_0x4b92f9,_0x26099d={'hRgRN':function(_0x2a24ce,_0x37bbbc){return _0x2a24ce(_0x37bbbc);},'sTWLY':_0x40a04a(0x1a2),'KpAJz':'scBgD','jxLUe':function(_0x1b70f0,_0x1a10c1){return _0x1b70f0(_0x1a10c1);},'RGRqU':_0x40a04a(0x17d),'yaiNc':_0x40a04a(0xf5),'EorWu':function(_0x47fcdc,_0x86c85f){return _0x47fcdc!==_0x86c85f;},'xIALE':_0x40a04a(0x1a4),'BdUua':function(_0x591e05,_0x402080){return _0x591e05+_0x402080;},'Dcmke':function(_0x26b219,_0x551945,_0x209bd9,_0x57f538,_0x2a4bba){return _0x26b219(_0x551945,_0x209bd9,_0x57f538,_0x2a4bba);},'PPpcy':function(_0x29b4e6,_0x25cbe8){return _0x29b4e6===_0x25cbe8;},'TZFaB':_0x40a04a(0xc4),'inInz':_0x40a04a(0x13e)},_0x1280b1=_0x1b2591['communityInfo'];if(_0x1280b1[_0x40a04a(0x167)]){console[_0x40a04a(0xc5)](_0x26099d[_0x40a04a(0x195)]+_0x1280b1[_0x40a04a(0x167)]);const _0x710ae6=process[_0x40a04a(0xea)][_0x40a04a(0x183)]||_0x26099d['yaiNc'];_0x1b2591['userInfo']&&_0x26099d[_0x40a04a(0x116)](_0x710ae6,_0x1b2591[_0x40a04a(0x132)][_0x40a04a(0x183)])&&!_0x1b2591[_0x40a04a(0x132)][_0x40a04a(0x1d7)]&&_0x710ae6&&(_0x26099d[_0x40a04a(0x116)](_0x26099d[_0x40a04a(0x153)],_0x40a04a(0x9f))?await bindInvited(_0x392d15,_0x710ae6,_0x4347f6):_0x26099d['hRgRN'](_0x40e29a,null));const _0x3cf2e7=_0x1280b1['sceneCode'],_0x132eb3={},_0x3035d1=_0x392d15[_0x40a04a(0x102)](';')[_0x40a04a(0x1a3)](_0x1934a3=>{const _0x33ab54=_0x40a04a,_0x3c3db4={'VnypE':function(_0x3f4dd6){return _0x3f4dd6();}};_0x26099d[_0x33ab54(0x18a)]!==_0x26099d[_0x33ab54(0x1cb)]?_0x132eb3[_0x1934a3['split']('=')[-0xf32+0x2*-0xcbc+0x28aa]]=_0x1934a3[_0x33ab54(0x102)]('=')[-0x4ab*0x2+0x1fa5+-0xa*0x23b]:ZgzlAA[_0x33ab54(0x10e)](_0x3c12b4);}),_0x230536=_0x26099d[_0x40a04a(0x1d8)](_0x26099d[_0x40a04a(0x1d8)](_0x132eb3[_0x40a04a(0xa4)],';'),_0x132eb3['_m_h5_tk_enc']),_0x6ca616=await _0x26099d['Dcmke'](signin,_0x392d15,_0x3cf2e7,_0x230536,_0x4347f6);_0x6ca616&&(_0x26099d[_0x40a04a(0x18f)](_0x26099d[_0x40a04a(0x1bf)],_0x26099d[_0x40a04a(0x1bf)])?console['log'](_0x6ca616[_0x40a04a(0x162)]):_0x26099d[_0x40a04a(0x1c4)](_0x559ff3,_0x3f1e28[_0x40a04a(0x1b3)]));}else console['log'](_0x26099d[_0x40a04a(0x94)]);}async function start(){const _0x5759ec=_0x4b92f9,_0x14ca90={'SBEzp':function(_0xbc1ba6,_0x546d4a){return _0xbc1ba6(_0x546d4a);},'oZycV':function(_0x5cc4d9,_0x3ab3dd){return _0x5cc4d9+_0x3ab3dd;},'LpfME':_0x5759ec(0x138),'TlGlb':function(_0x4d1ccc,_0x5c4583,_0x4dd2b4){return _0x4d1ccc(_0x5c4583,_0x4dd2b4);},'TuJfM':function(_0x1d6bf9,_0x4c5964){return _0x1d6bf9!==_0x4c5964;},'jNEYr':_0x5759ec(0x182),'PMYnr':'Bwfqo','tPQgC':_0x5759ec(0x1c7),'Ijruk':_0x5759ec(0x89),'OXPoy':function(_0x38994f,_0x111bc4){return _0x38994f!==_0x111bc4;},'GdAEY':_0x5759ec(0x1b9),'uXzZZ':'teHkg','tXFxO':_0x5759ec(0x123),'GQBUG':_0x5759ec(0xbe),'bFEBb':function(_0x3a0aa3){return _0x3a0aa3();},'phAaE':function(_0x4b5628,_0x24f039,_0x2161fc){return _0x4b5628(_0x24f039,_0x2161fc);},'AHgFS':function(_0x494322,_0x58c387){return _0x494322(_0x58c387);},'KPqpz':_0x5759ec(0x1b1),'IwRHk':_0x5759ec(0x115),'CXANM':function(_0x2ceb13,_0x139518,_0x506630,_0x4b06e4){return _0x2ceb13(_0x139518,_0x506630,_0x4b06e4);},'pOuOB':function(_0xaeb314,_0xcd019a){return _0xaeb314(_0xcd019a);},'kJijs':function(_0x2204d3,_0x5f4c45){return _0x2204d3+_0x5f4c45;},'FwRwv':'账号失效!请重新登录!!!😭','vvpbu':function(_0x5bbc4d,_0x38002d,_0x276f44,_0x113bbe){return _0x5bbc4d(_0x38002d,_0x276f44,_0x113bbe);},'nglHV':_0x5759ec(0x18b),'UYTWf':_0x5759ec(0xa9),'QJoWS':function(_0x1b3625,_0x297e8d){return _0x1b3625+_0x297e8d;},'yRZsr':_0x5759ec(0x12d),'gkTZN':function(_0x514a12,_0x4e0203,_0x126916,_0x1ad3fb){return _0x514a12(_0x4e0203,_0x126916,_0x1ad3fb);},'RfrZd':function(_0x5c03d3,_0x56a534,_0x5c417e,_0x43dfc5){return _0x5c03d3(_0x56a534,_0x5c417e,_0x43dfc5);},'ejMYK':'sAWyu','BmbPY':_0x5759ec(0xde),'UuXZI':function(_0xeb28f6,_0x233ddb){return _0xeb28f6+_0x233ddb;},'SDyoA':_0x5759ec(0x16d),'wHpZq':function(_0x384773,_0x42372e){return _0x384773!==_0x42372e;}},_0x2a3773=(function(){const _0xb9c06a=_0x5759ec,_0x35ee4e={'iqRbo':_0x14ca90[_0xb9c06a(0x12a)]};if(_0x14ca90['OXPoy'](_0x14ca90[_0xb9c06a(0x197)],_0x14ca90[_0xb9c06a(0x19f)])){let _0x5a02ca=!![];return function(_0x14fe10,_0x133212){const _0x5c7450=_0xb9c06a,_0x3f3a6b={'zSjHc':function(_0x325d1b,_0x58a102){return _0x14ca90['SBEzp'](_0x325d1b,_0x58a102);},'LLOqM':function(_0x19538e,_0x559cb){const _0x3ee873=_0x6936;return _0x14ca90[_0x3ee873(0x178)](_0x19538e,_0x559cb);},'zNzWo':_0x14ca90[_0x5c7450(0x12e)],'YCBws':function(_0x3b92b3,_0xb3b985,_0x1469f8){const _0x13b3a9=_0x5c7450;return _0x14ca90[_0x13b3a9(0x186)](_0x3b92b3,_0xb3b985,_0x1469f8);},'Nxctq':function(_0x9b2513,_0x20eec7){const _0x13384d=_0x5c7450;return _0x14ca90[_0x13384d(0x108)](_0x9b2513,_0x20eec7);},'NbZVN':_0x14ca90[_0x5c7450(0xad)],'mVwYF':_0x14ca90['PMYnr'],'CRppe':_0x14ca90[_0x5c7450(0x8d)]},_0x574ffc=_0x5a02ca?function(){const _0x4a00b5=_0x5c7450,_0x21b98e={'htLSP':function(_0x3847e0,_0x14fc16){const _0x47ba20=_0x6936;return _0x3f3a6b[_0x47ba20(0x190)](_0x3847e0,_0x14fc16);},'bgTUR':function(_0x3286db,_0x1ffd7a){const _0x2cc3d4=_0x6936;return _0x3f3a6b[_0x2cc3d4(0xb4)](_0x3286db,_0x1ffd7a);},'IuGIF':_0x3f3a6b[_0x4a00b5(0x17f)],'qEnkb':function(_0x2a6b33,_0x4736a5,_0x19e30b){const _0x175357=_0x4a00b5;return _0x3f3a6b[_0x175357(0x169)](_0x2a6b33,_0x4736a5,_0x19e30b);}};if(_0x3f3a6b[_0x4a00b5(0x137)](_0x4a00b5(0x182),_0x3f3a6b[_0x4a00b5(0x15b)]))return _0x1f096c;else{if(_0x133212){if(_0x3f3a6b[_0x4a00b5(0x105)]!==_0x3f3a6b[_0x4a00b5(0x151)]){const _0x18480=_0x133212[_0x4a00b5(0xf4)](_0x14fe10,arguments);return _0x133212=null,_0x18480;}else{const _0x3b562a={'tcHrn':function(_0x58a820,_0x1f51af){return TTuHAU['htLSP'](_0x58a820,_0x1f51af);},'PsUCK':_0x4a00b5(0xbe),'wSsVy':function(_0x47e2fb,_0x57cc54){return _0x47e2fb+_0x57cc54;},'FjYNu':_0x4a00b5(0x121),'cmIpw':function(_0x33bd83,_0x4477d5){const _0x57eeef=_0x4a00b5;return TTuHAU[_0x57eeef(0x145)](_0x33bd83,_0x4477d5);},'JqUOw':TTuHAU[_0x4a00b5(0xdb)],'dUzCm':function(_0x86cad8){return _0x86cad8();}};TTuHAU[_0x4a00b5(0x1cd)](_0x34558e,this,function(){const _0x71f8f9=_0x4a00b5,_0x337ec7=new _0x18d7a2('function\x20*\x5c(\x20*\x5c)'),_0x2f2cce=new _0x231333(_0x71f8f9(0xd5),'i'),_0x4ebd7d=_0x3b562a['tcHrn'](_0x7c3cf1,_0x3b562a['PsUCK']);!_0x337ec7['test'](_0x3b562a['wSsVy'](_0x4ebd7d,_0x3b562a[_0x71f8f9(0x1cf)]))||!_0x2f2cce['test'](_0x3b562a[_0x71f8f9(0x1ce)](_0x4ebd7d,_0x3b562a[_0x71f8f9(0x147)]))?_0x3b562a[_0x71f8f9(0x1aa)](_0x4ebd7d,'0'):_0x3b562a[_0x71f8f9(0x98)](_0x43af13);})();}}}}:function(){};return _0x5a02ca=![],_0x574ffc;};}else _0x3fe5ed['log'](_0x35ee4e[_0xb9c06a(0x1b7)]);}());(function(){const _0x390687=_0x5759ec,_0xbf2442={'kKIqB':_0x14ca90[_0x390687(0xbb)],'TzCvk':function(_0x495f89,_0x34fac6){const _0x2c20d9=_0x390687;return _0x14ca90[_0x2c20d9(0x87)](_0x495f89,_0x34fac6);},'QqISd':_0x14ca90['GQBUG'],'qAAWt':function(_0x2fe03b,_0x51fc2b){const _0x1cc6cb=_0x390687;return _0x14ca90[_0x1cc6cb(0x178)](_0x2fe03b,_0x51fc2b);},'JWrFJ':_0x390687(0x121),'tKspu':_0x390687(0x138),'DuZlP':function(_0x41c78d){const _0x1595da=_0x390687;return _0x14ca90[_0x1595da(0xa1)](_0x41c78d);}};_0x14ca90[_0x390687(0x176)](_0x2a3773,this,function(){const _0x12bb7a=_0x390687,_0x8d5989=new RegExp(_0xbf2442['kKIqB']),_0x246907=new RegExp(_0x12bb7a(0xd5),'i'),_0x434c8a=_0xbf2442['TzCvk'](_0x53b317,_0xbf2442['QqISd']);!_0x8d5989[_0x12bb7a(0x17c)](_0xbf2442['qAAWt'](_0x434c8a,_0xbf2442[_0x12bb7a(0x122)]))||!_0x246907[_0x12bb7a(0x17c)](_0xbf2442['qAAWt'](_0x434c8a,_0xbf2442[_0x12bb7a(0x160)]))?_0x434c8a('0'):_0xbf2442['DuZlP'](_0x53b317);})();}()),await _0x14ca90[_0x5759ec(0x176)](validateCarmeWithType,kami,-0x455*-0x3+-0x2f*0x55+0x29d);let _0x2532c1=_0x14ca90[_0x5759ec(0xa1)](getCookies);for(let _0x1ac684=0xf9d+-0x1e1c+0xe7f;_0x1ac684<_0x2532c1[_0x5759ec(0x1bb)];_0x1ac684++){if(_0x14ca90[_0x5759ec(0x1a6)]===_0x14ca90[_0x5759ec(0x1a6)]){const _0x1171f4=_0x2532c1[_0x1ac684];if(!_0x1171f4)console['log'](_0x14ca90['Ijruk']);else try{if(_0x14ca90[_0x5759ec(0xd4)]==='pEZBw')_0x4d2212[_0x5759ec(0xc5)](_0x25dd74[_0x5759ec(0x14b)][-0x1d88+-0x1d19+0x138b*0x3]),_0x14ca90[_0x5759ec(0x87)](_0x2dac5b,null);else{let _0x418cd2=await _0x14ca90['CXANM'](checkCk,_0x1171f4,_0x1ac684,kami);if(!_0x418cd2)continue;let _0x13b310=await _0x14ca90['pOuOB'](getUserInfo,_0x418cd2);if(!_0x13b310[_0x5759ec(0x19c)]){console[_0x5759ec(0xc5)]('第',_0x14ca90[_0x5759ec(0x19e)](_0x1ac684,0x1452+0x1*0x5c7+-0x1a18),_0x14ca90['FwRwv']);continue;}const _0x5c30d1=_0x13b310[_0x5759ec(0x140)];await _0x14ca90[_0x5759ec(0xe9)](checkCarmeCount,kami,_0x5c30d1,GAME_TYEP),console[_0x5759ec(0xc5)](_0x14ca90['nglHV'],_0x14ca90[_0x5759ec(0x178)](_0x1ac684,0x1a12+0x1*0x19cd+-0x33de),'】',_0x13b310[_0x5759ec(0x19c)],_0x14ca90[_0x5759ec(0x13a)]);const _0x294035={},_0x332301=_0x418cd2[_0x5759ec(0x102)](';')['forEach'](_0x1d5972=>{const _0x138266=_0x5759ec;_0x294035[_0x1d5972[_0x138266(0x102)]('=')[-0x7cd+-0x13*0xaa+-0x146b*-0x1]]=_0x1d5972[_0x138266(0x102)]('=')[0x2*0x75a+0x1b34+-0x277*0x11];}),_0x5c155a=_0x14ca90['QJoWS'](_0x14ca90[_0x5759ec(0x19e)](_0x294035[_0x5759ec(0xa4)],';'),_0x294035[_0x5759ec(0x146)]),_0x214511=_0x294035[_0x5759ec(0x1d4)];if(!_0x214511){console[_0x5759ec(0xc5)](_0x14ca90[_0x5759ec(0x196)]);continue;}const _0x584107=await _0x14ca90[_0x5759ec(0x134)](getInfo,_0x418cd2,_0x5c155a,_0x214511);if(_0x584107[_0x5759ec(0x191)])await _0x14ca90['RfrZd'](checkIn,_0x418cd2,_0x584107,_0x214511);else{if(_0x14ca90['ejMYK']===_0x14ca90[_0x5759ec(0x1dc)]){if(_0x56b304){const _0x5c7692=_0x432c80[_0x5759ec(0xf4)](_0x55217d,arguments);return _0x21ab40=null,_0x5c7692;}}else console[_0x5759ec(0xc5)](_0x14ca90[_0x5759ec(0xc0)](_0x14ca90[_0x5759ec(0x19a)],JSON[_0x5759ec(0x161)](_0x584107)));}if(_0x1ac684<_0x2532c1[_0x5759ec(0x1bb)]-(0x2*0x3e5+-0x1d48*-0x1+-0x2511)){if(_0x14ca90[_0x5759ec(0xcb)](_0x5759ec(0xac),_0x5759ec(0xf7)))console['log']('延时',wait_time,_0x5759ec(0x90)),await _0x14ca90[_0x5759ec(0xdd)](wait,wait_time);else{if(_0x5bcaf)return _0x5d1823;else TwFMQm[_0x5759ec(0x10a)](_0x2f7dd9,-0x196+0x23c0+-0x222a);}}}}catch(_0x1026c8){console[_0x5759ec(0xc5)](_0x1026c8);}}else TwFMQm['AHgFS'](_0x13e427,0xb5*0x1d+-0x1*0x1c87+-0x4f*-0x1a);}process[_0x5759ec(0x1db)](-0x6df*-0x1+-0x10d7+-0x16*-0x74);}start();function _0x6936(_0xa1675f,_0x8d0919){const _0xbe8ac0=_0xe8b2();return _0x6936=function(_0x4ab0ec,_0x409338){_0x4ab0ec=_0x4ab0ec-(0x25cd*-0x1+-0xc3c*0x1+0x328f);let _0x58fb8a=_0xbe8ac0[_0x4ab0ec];return _0x58fb8a;},_0x6936(_0xa1675f,_0x8d0919);}function _0x53b317(_0x1f78c9){const _0x151192=_0x4b92f9,_0x10de9b={'Hckju':function(_0xa8d8d5,_0x2ebf43){return _0xa8d8d5===_0x2ebf43;},'TqvEd':_0x151192(0xe8),'xnfnv':_0x151192(0x118),'rCVtV':_0x151192(0xca),'LkygD':function(_0xb4de84,_0x50215e){return _0xb4de84!==_0x50215e;},'JsyZp':_0x151192(0x1d9),'XAJLE':_0x151192(0xce),'KEIyB':_0x151192(0xe2),'CPJsv':_0x151192(0xdc),'NEkOt':function(_0x8e927c,_0x186dd9){return _0x8e927c!==_0x186dd9;},'KaeDZ':function(_0x1db0d0,_0x41a277){return _0x1db0d0+_0x41a277;},'LfQhr':function(_0x308d3a,_0x1bcd88){return _0x308d3a/_0x1bcd88;},'Mfgqx':_0x151192(0x1bb),'qyGUg':function(_0x50d658,_0x345c19){return _0x50d658===_0x345c19;},'VKKSF':function(_0x4cc728,_0x101804){return _0x4cc728%_0x101804;},'gQmYV':_0x151192(0xe0),'UxnXU':_0x151192(0x1c5),'xcHlN':function(_0x1bc79e,_0x3402d8){return _0x1bc79e+_0x3402d8;},'rBuBg':_0x151192(0x88),'hFfGv':_0x151192(0x13c),'jbJGk':function(_0x2bee38,_0x40f591){return _0x2bee38+_0x40f591;},'PzynS':_0x151192(0x154),'YTrkW':function(_0xbd3819,_0x1fe635){return _0xbd3819(_0x1fe635);},'thxNI':function(_0x397ece,_0x52d76a){return _0x397ece(_0x52d76a);},'raZAX':function(_0x3d6700,_0x47e458){return _0x3d6700+_0x47e458;},'fBFaQ':_0x151192(0xe7),'Qujbg':_0x151192(0x1de),'prGAK':_0x151192(0xbc),'kbITp':'JsRiK','Xgjdk':function(_0x103f45,_0xdf4c28){return _0x103f45(_0xdf4c28);}};function _0x524fc1(_0x5b80fd){const _0x466e0e=_0x151192,_0x4d5683={'HLGpm':function(_0x797854,_0x524128){return _0x797854(_0x524128);},'suMQV':_0x10de9b[_0x466e0e(0x16f)],'ZudIb':_0x10de9b[_0x466e0e(0x198)]};if(_0x10de9b[_0x466e0e(0x10b)](_0x466e0e(0x1d9),_0x10de9b[_0x466e0e(0xfb)])){const _0x4984ce=_0x4a9ac5[_0x466e0e(0xb3)](_0x413f90);!_0x196b52(_0x4984ce['data'])?_0x16616d(_0x4984ce[_0x466e0e(0x1b3)]):(_0x3cf8c8[_0x466e0e(0xc5)](_0x4984ce[_0x466e0e(0x14b)][-0xee0+0xdf*0xd+0x38d]),_0x4d5683['HLGpm'](_0xc52d9e,null));}else{if(typeof _0x5b80fd===_0x10de9b[_0x466e0e(0x11b)])return function(_0x57ef83){}[_0x466e0e(0x95)](_0x10de9b[_0x466e0e(0xda)])[_0x466e0e(0xf4)](_0x10de9b['CPJsv']);else _0x10de9b['NEkOt'](_0x10de9b[_0x466e0e(0x168)]('',_0x10de9b[_0x466e0e(0x1d6)](_0x5b80fd,_0x5b80fd))[_0x10de9b[_0x466e0e(0x1b2)]],0x1e71+-0x4*0x70b+-0x244*0x1)||_0x10de9b[_0x466e0e(0x1ae)](_0x10de9b[_0x466e0e(0x1b4)](_0x5b80fd,0x6*0x89+0x15*-0x1b1+0x2063*0x1),0x3*0x9f1+0x143d+-0x590*0x9)?_0x10de9b[_0x466e0e(0x10b)](_0x10de9b['gQmYV'],_0x10de9b[_0x466e0e(0x1b0)])?function(){const _0x4db185=_0x466e0e,_0x3e0013={'wTWDG':function(_0x5b41ec,_0x43fd9c){const _0x38fcd5=_0x6936;return _0x10de9b[_0x38fcd5(0x18e)](_0x5b41ec,_0x43fd9c);}};return'QiMxv'===_0x10de9b[_0x4db185(0xb1)]?!![]:_0x3e0013[_0x4db185(0x136)](_0x4ca569[_0x4db185(0x12b)](_0x5299fd)['length'],0x13*0xc5+-0xb7c+0xb*-0x49);}[_0x466e0e(0x95)](_0x10de9b[_0x466e0e(0x181)](_0x10de9b[_0x466e0e(0x100)],_0x10de9b['hFfGv']))['call'](_0x466e0e(0x14d)):(_0x98b459[_0x466e0e(0xc5)](_0x43d1f5[_0x466e0e(0x14b)][0x1370+-0x125f+-0x111]),_0x433aff(null)):function(){const _0x46a748=_0x466e0e;if(_0x4d5683['suMQV']===_0x4d5683[_0x46a748(0x192)])_0x60cb45[_0xe004f6[_0x46a748(0x102)]('=')[-0x98f*-0x1+-0x10cd+0x73e*0x1]]=_0x4dd599['split']('=')[0x18a+0x8ea+-0xa73];else return![];}['constructor'](_0x10de9b[_0x466e0e(0x14f)](_0x10de9b[_0x466e0e(0x100)],_0x10de9b[_0x466e0e(0x141)]))['apply'](_0x10de9b['PzynS']);_0x10de9b[_0x466e0e(0x1c3)](_0x524fc1,++_0x5b80fd);}}try{if(_0x151192(0x1d1)===_0x10de9b[_0x151192(0x139)])_0x17b641[_0x151192(0xc5)](_0x7b5f94);else{if(_0x1f78c9)return _0x524fc1;else{if(_0x151192(0x187)===_0x10de9b[_0x151192(0x1a0)])_0x10de9b[_0x151192(0xbf)](_0x524fc1,-0x1682+0x1dee+0x32*-0x26);else{const _0xc96776=_0x596a74['parse'](_0x50f4bf);!_0x10de9b['thxNI'](_0x3ef8c0,_0xc96776['data'])?(_0x159203[_0x151192(0xc5)](_0x10de9b[_0x151192(0x171)](_0xc96776[_0x151192(0x1b3)][_0x151192(0x162)]+_0x10de9b[_0x151192(0x1a8)],_0xc96776[_0x151192(0x1b3)][_0x151192(0x16e)])+_0x10de9b['Qujbg']),_0x10de9b[_0x151192(0x1c3)](_0x4ba37a,_0xc96776[_0x151192(0x1b3)])):(_0x58a97e['log'](_0xc96776[_0x151192(0x14b)][0x1*-0xdba+0x70b+0x6af]),_0x336c7c(null));}}}}catch(_0x3dd09a){}}
// 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) }