mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
15 lines
44 KiB
JavaScript
15 lines
44 KiB
JavaScript
/*
|
||
活动名称:玩一玩竞猜欧洲杯抽奖
|
||
活动说明:必须参与竞猜且竞猜正确后才有抽奖次数
|
||
环境变量:jd_wyw_worldCupdraw_notify // 是否推送通知(true/false),默认不推送
|
||
jd_wyw_worldCupdraw_pinFilter // 账号pin过滤,多个用@进行分割
|
||
|
||
cron:1 1 1 1 *
|
||
|
||
*/
|
||
|
||
const $ = new Env('玩一玩竞猜欧洲杯抽奖')
|
||
var iil='jsjiami.com.v7';const I1I1iI=iii1II;(function(ii1i1,Iiii,llIl11,IIIll,I1I1il,l1llii,liII1){return ii1i1=ii1i1>>0x6,l1llii='hs',liII1='hs',function(I1I1ii,l1llil,IIIlIi,llIl1I,i1lIl1){const l1lliI=iii1II;llIl1I='tfi',l1llii=llIl1I+l1llii,i1lIl1='up',liII1+=i1lIl1,l1llii=IIIlIi(l1llii),liII1=IIIlIi(liII1),IIIlIi=0x0;const liIli1=I1I1ii();while(!![]&&--IIIll+l1llil){try{llIl1I=-parseInt(l1lliI(0x157,'x3bx'))/0x1+parseInt(l1lliI(0x1fa,'$$)R'))/0x2*(-parseInt(l1lliI(0x236,'8C9)'))/0x3)+parseInt(l1lliI(0x285,'InRB'))/0x4*(-parseInt(l1lliI(0x230,'wQAL'))/0x5)+parseInt(l1lliI(0x142,'sa8N'))/0x6*(-parseInt(l1lliI(0x1c7,'9Nzu'))/0x7)+-parseInt(l1lliI(0x28e,'H9M5'))/0x8+parseInt(l1lliI(0x12d,'t&^8'))/0x9+parseInt(l1lliI(0x24e,'7zUu'))/0xa;}catch(IIIlIl){llIl1I=IIIlIi;}finally{i1lIl1=liIli1[l1llii]();if(ii1i1<=IIIll)IIIlIi?I1I1il?llIl1I=i1lIl1:I1I1il=i1lIl1:IIIlIi=i1lIl1;else{if(IIIlIi==I1I1il['replace'](/[LrAxyPkwWOMFIYqCKgJSDT=]/g,'')){if(llIl1I===l1llil){liIli1['un'+l1llii](i1lIl1);break;}liIli1[liII1](i1lIl1);}}}}}(llIl11,Iiii,function(IIIlI,IiiI,iIi1i,l1iIll,l1iIli,iIi1l,i1lIlI){return IiiI='\x73\x70\x6c\x69\x74',IIIlI=arguments[0x0],IIIlI=IIIlI[IiiI](''),iIi1i=`\x72\x65\x76\x65\x72\x73\x65`,IIIlI=IIIlI[iIi1i]('\x76'),l1iIll=`\x6a\x6f\x69\x6e`,(0x171fa0,IIIlI[l1iIll](''));});}(0x32c0,0x4a7f5,Iii11l,0xcd),Iii11l)&&(iil=0xcd);const jdCookie=require('./jdCookie'),notify=require(I1I1iI(0x229,'akc[')),common=require('./utils/Rebels_jdCommon'),{H5st}=require('./utils/Rebels_H');let linkId,taskThreads=process[I1I1iI(0x262,'x3^c')][I1I1iI(0x208,')B*%')]||'1';function Iii11l(){const IlI1lI=(function(){return[...[iil,'IMjLsywjiLDJaFmgOiC.kAxcTqoYmSW.AvTr7KPO==','W7mUWQb9W5a','W63cHMO7iq','W78lqHCw','W7vLFW','twKNggq','W4m6WPhdNSkg','AxufhuatjW','WO/cVsC1oa','W7lcJuJcMxXFW5dcMrOM','W7ddK8k6WRhdHZW4WOG','W6uGWRvWW70','WQ3cHSoFWR4','WQatW6VcQ3JdQhK','zYpcOmkkWOGuEmkhW59OW70NsCoUi8oJsCokimodW4FdUsFdOmkfrSoUWOW2qHddLK4','WRiDW77cLZC','W44QFdCuhrZcKLq','W7xdG8kzWPvd','re7cNfm','W6pcOLpcQ8oPD8kaW6xcVSkzdmkCDmkYW5n7WRhdGfa','evFcIb7cRq','n8oMW6xcMXJcPtWoW4tdSCknCCk7WRVcJmova8k9qGfm','cXBcTmofzSkg','EwJcMdz5sq','W7mIWRPhW6BcJSkRDq','lhbu','W7dcMvtcVx9i','WOiuW5JcOr0','WOf4W6fZW7e','mCkjWQVcRW','W5NcH8oA','k8k6WOxcLZS','e8oZW4PJW7NdJmkk','WPFdRv/cL8kcW7lcLSokhW','W4LfgCoYW4y','W73cLgemkG','u8oCpwZcRf1XW41iW4q','y8kwpG','WQ9Nqt7dOCkEW5W','iCk4W7hcMG','WPJdSMfiW5JcT3/cUW','mrVdU2b9pG','W5mbWRDJW4u','h8onWRpdQbTbjKarW7G','WPlWMRo7z+I9QEIIOoE5RoACPSkC','W69BoCoHW4y','WR90WPxcR8oUW5JcQYJdGmoHWQqtW5VdV3a','hWJcM8kmjG','W5hdVbBdHSoDECoSWQ7dM8o0','WRJdTSovWRno','WP/cJmoVWPCI','wmkQf8k1cG','WP9pWR/cMCoe','fKtdGhmO','WQZdN3K6WR4','BZtcQCknW5y','WP/dTv4/WO8','WQpcUdKY','awldTeWy','AhRcMt5ZvaHOW6Wb','j1VcOaRdMSkeW6y','abawW4/cRW','BSkkkSkjlX8','ardcVW','WQFcGSooWRSYWRFcPuCLhcVcVJBcOmkQW4JdIGn6CCou','WP7dQ1fFW6S','nWNcTu7cIa','trVcP8kwhv5u','WPtdUf/cN8kbW6BcU8oneSk0','W6/cQMCcfaqrW5a','reRcMgddJG','WP7cSCorWRaq','mLVcPtpdNSkdW7DNfZr9C8k0ASoyW4ldGSk5W6C','awxdVLe4WP3cV8khWR/dSCoP','A27cMZPSAYLOW78vD0VdMJLg','W6VdG8krWRX0q8k7E8kwogPVjMy7eNq','WRzZWPRcJCoe','WQhcHSoyWO8sWRVcPLWsgHZcMdFcRCkS','WRtcRt86bCkgW7PGdW','a8oqWR0','W69TgmoVW4Wb','W6hcTM4','yGRcPSkqWOO','5A+h54UQ776A','W40vqSkAvq','qmkxlSkPha','W6GuqG','W6BcJu7cMq','56Mz546U5OUd5yMA776F5O225lUt','W63cTv0amW4UW5lcJc4','hIZdQgPS','WORdOxPXW7/cUq','sSoapW','W57dQgZcNCkXiCo8WP3dVqVcOSooWPxdNCkisCoCk8kc','k3pcTW','W5OGW7z1WQ0','nqKtW5dcJCkTW6dcUa','aHZcJSkRnG','f8kXW7RcQ24','WR/dQ08BWPS','hmkdlWRdLq','WQdcImoy','WQmxW6VcGG','rCkJWPytAImbB8oW','W6W3WQDdW4hdNCoPpYldLSofoZxcOSkHpLhcIX9hW7jMW63cSW','W6DSdq','hXlcL8kB','W4tdRXBdQSodBq','W7vZAZtdMmklW5O','s1VdJ8oFFbSfpcWBWRyFWPldTW','W6CSWRDw','WOT1W6DWWRPioaVdHW','nSkEuK/cGMFdPMrN','kHqjW7tcKCoJWQ7dU8oNamoiuNeoASokygSVdvBdSCoAWQK','W4y1Fa','pqBdUG','oIZcLSoKqq','5RAe5yIJ5BEQ57I757Iu5PYx5lIoWOO','A8k3WRJdHNldSbGlW4hdHSkNzG','W5hdRN3cKmkvlCoLWPVdRH3cVSorWPBdL8kvsSo6n8klsx0','hXJcJmkInKS','lSk4W7i','W4uvi3y4xCkM','kSoQW4BcHZ8','WQW4lW','WRxcRcmwbCkf','kmkZW4RcIe7cLmoCfahdOmkHWRyCnulcRviXrJJdQHpdKgdcHZi','W7qQBCkksG','4PY4WRBMNPtNN47ORlVMS73dNG','FhRcNZ4','WOxdTYvpW7NcRNFcRmofWQlcVqzIW6hcUG','W75/ya','hSoYW6fCWRxdImkHWRPTW57dLCk7zCoJWRVdHdBdGhCmWRxcKSoPEKtcVSoyW7a','k8kBWQu','W6TJAcldI8kGW5RdM8oXWPrCqfzohW','WQPOWOO','ie7cOdZcKa','j0lcMHJcVW','vL3cH0JdVq','neRcHt3cLa','WR/cIYu+iq','oSkifb3dGmoKDa','iWmjW63cLmkWW7xcVCoJa8o+dhbbDmoiixOT','D0lcN3FdNa'],...(function(){return[...['W4eFm1S','W5pdTSkvWRHy','4P2xmoIfR+ADNEI/SEIGVoMaHEwlOos5IEMxQ+ITICk1','4P2QWO/MNBlOG6pMRONNOzZLPjNNKQCh','WO/dGSowWOPr','ECkrWQiKCW','a3dcVrpcSG','WR3dRx89WPNcLCoyeSkGW4pdP8k+aa','W7/dTSkcWO/dSq','kSkhWQu','W6TJAcldI8kGW5RdM8oXWPrCqfzohZu6cwfqWRPh','W5yrjfvzv8kIWPm','W7JdLSkyW6DqW6VdShGKgXdcKdu','W6FdPfdcOSkm','W7ddG8ke','nepdVKCe','vCk5WPaf','WQSzW7G','dSkmWQJcVsa','puRcPq/dJmonWR07aGvKlCkpiCoaW5xcHCk1W6BdTcbllCkO','WPPqWR3cTSoL','WQldQNWvkqKrWPtcRt9oW5isWQSNkMb9W6xcISknW4u7DSk4fby','FwNcMrjTqa','W6KAyCkjxa','W4ZdPhxcKq','iCkdfG3dL8oJ','ngZdSwO0','s+IVGUAXGUwLS+I3TI7IN58G5PsH5zkj5BMc5PsM5O2S','o8opBCorFutcT13dMJNdMmo9','W6/dMmkrWRL+z8kNBCkO','W7v3Aa','iCkdbGtdKmoZzsy','bbhcU8oDDSkqW7PV','5AEc56sM77+05y2t5OMx5AAx','WPldIYVdJmoGqmo5','WPDPWRtcG8oa','hSkhWORcJtG','WPHuWP7cGSoQ','WOHXW6DDW7TymH3dGmkbeSk6W6ZdOGDIWQPPyq','cCotWPVdMay','W5pdPh8','W7yMWQbgW57cK8kwFZpdR8ocCZC','4PMRWRROHzBLRyRKUAlOV5JOOkdPLl/PMQ/ML7BPL77ORydNVQRPLBVOR68','WQXPWPlcS8oIW7W','W4xdHKVcMmkQ','W5xcUfVcV2K','dCkiWR7cO0K','W4maj1jKtCkZWOj5WQdcNCk0WOtcHCoWvmomW7RdU8kbcJiZECkRWOOjDSkEpqXzWOa','W6/cOfWGfG','WOFdMSkeeSk4g09LWRpdSSoKWO8','zowTPoAlKU+/L+woNoAjUUwMUq','iXmoW63cHCk3','fSkVdcxdUSk6BW','WO3dTL4','W7/cQwacjq','WOVdSNXD','4PQeD+w8PEMISUwnPUs6PoERUoEnGos6N+ERMUEoTEAVIoEIGEwrPUAiGUAFToAkP+wMNUAVIoAvNxa','W4NMIz7LIAFcNokFR8oH','qJhcOGbOW4tdMCoEWPVdTCowWPSqW4i','W6TIAI7dL8klW5BdNmoV','W53cNmojv8o9gauFWPVdKCo7W6SHtmoRW7TliJGPwfZdPSklC3rcW5xdGmoxW6e','mYpcI8kUca','W6dcQM4','ooIVRoAYQEwsKUw6IGC','W7T5Fci','zZ7cV8ktWO8d','WO/IN4yV','5BAW6k2P57+76lsm6l+W6lYZ6kop5BYW5yIJ6lA05yY6','WRfpqmkMgW','AJZcTW','WQ0zW7BcJq','WRddJfFcHSkv','rSkKWP0AEXGCzmo6qG','o8k4W6FcT0a','W64AWP7dUCkl','WQxdO2S','W7ZcT2aBjteBW4VcMG','mmoSW7m','W6ldNmkL','d1JcSI/dVG','d1r0iW','W5icpKrOBCk9WPH2WQBcLmovWO/cM8o6','8yAySG0','b8oJW51iWQNdJmkn','WOpdVfNcTSozW6BcIW','W44zovvDxmk7WOX1WOhcHSo2','lCoIW7pcLb7cUsee','W7C3WQfAW5ZcGmkVDJO','WQeKkxBcJmoEW5hdVmoaWOTTEa','fmkbW5hcLxm','WQnVWPhcVmo/W4JcSdq','W7ODmxz1','umkJWPOdAJGhBW','W63cH0mlbG','W5ZcGvSeiq','D3uBfLuy','cmkLgW','deJcMbxcMa','W4iPAa','W7eiqmkWASkQrSk4j2i','ovhcTG','WQ7cGSoFWPmbWQBcRvSNobJcOq/cRSkXW57dQGjW','WQRcQIO','uCoMahBcUq','mwldVK0','WQ7cGSoFWPyoWR7cOuy2oGFcVY3cRSkTW5K','W6JcPh0ayaenW57cJa','WONdQKO','B3tcMtn6zdL5W58vD3ddHHXmAZ0','W6rWhq','W5dcMSopASo9rq','WO7cPmogWQG1','aaZcVW','FSk0qwpcJKtdMW','imkzerJdLSkTl3RdMcOqW67cH3NdOCoYWRZdOSoEzb3dMaS','WQnPWPS','W6GSWRq','crKOW6xcRq','eJRdJh1b','WOayWQb+','BvRcPsHF','imkfqW','cH3dHbBcUMqxf1ldUCkgW7y','nSkjWRdcUH7cTmkRW6FcP1e','W5VdP8kkWPng','W44FmhT/xa','WO7dJ2eHWP8','W7zZFspdQ8kjW5ldLCoGWOr6z1zieW8sfhzCWRe','dmkAEu/cRW','W44Fma','re7cNfpdMZ8una','W67cHvtcK0fEW73cGGSjjYq','nmkDWQZcNH3cOW','bghdUKqfWPRcHSkl','dCkVsftcRG','W4JdUmk/WOhdGW','WQhcGSokWRSfWQdcUW','WQGFW7lcRcu','eWxcJq','iMhcPbm','oaZdP0P6mq','5lYx5Ocz5yMHW4K','WOKCWRLxWRfSW4KzWRb6s296gCkPeKFcRSkh','ASkBpmkdkW','h0f0EW'],...(function(){return['k8kFxa','W7e8WORdSCkzWQy','W77cOhOulbeVW4JcMa','jmkdvfNcGKldRq','W5T5DJpdNmkcW4VcL8ocWPHjBq','fmk/dYe','k8kcaq0','W55go8oVW64','WOq+W7lcHqK','oSoSW6tcMG','emo3W4Pk','W6xcIu7cScrFW6a','W7GHWP8','W5BcICojrmoM','W6zWdq','WQldTCop','Dxeyfa','lgtcJWxcGcZcPmkbWRmAvtXgzmkQosqzW4tcKW/cNmkQdCkfaW','mqFdVW','W4BdUbddR8kfECoC','aCoSW4JcQqe','jXNdPur6','sdJcHW','mGddP0r9mCkCW6C','W7lcRCoP','ovhcKJRdMq','W5afoxTJsG','kCkDmqNdLSo8rdddNdKwW6y','cCkIWQ7cNYm','W6OjCmkLxW','WRZdU8ovWQq','dJRdO2b8','k8kKcWddJW','DsFcOSkpWO8qCmkvW48','ACkqiq','qfVcH07dOteqn30','WOJdTKO','nxxcObFcIXFcNSkxWRSDxbrQzCkUocqb','W7tdMmkxWQbJoSoHjmkWpwyYoaa+gZ9hW50sF0rrWP4','nCoSW6C','WQ3cImofWRO','p8oSWORdGGS','qZhcL8kKWRe','imkeWOxcVaS','da/cQ8o1BmkGW75Vaa','DUwVPEAkME+8OEwpOEAlPowMRW','amk/FMxcQa','CN/cMdHm','W4m1Aa','A2uggq','b8kDq3FcPq','44oz5OY356Ar44oo6k6x5yAA6i2/5y++ebyhWROWWQ4','W6VdNCk0','WQ7dQmooWP1yBW','a8kVcaRdTmk2yCoDW5FdH8kTCSoNjq','WORdO2iIWQ/cK8odsmkGW5pdO8k3','WRFdSX/dK8k9mmkMW7JcSSkOeSka','WOCwWR4','W4yWWQv1W5e','jCkmhq','gM7dSfWKWPFcJSkD','b2ZdTLCS','k3ddSa','i8kanr/dRq','tmolk3NcUa','W43dTaNdJSoewCoCWR0','W75TgCo6W4W','qCoklflcI0z4W5jtW7lcIL/cUmoNW6fzjCokaa','W5ldQrBdJSoEBCobWQNdLG','rSkxpSk4mq','W4lcLglcT8oh','CLZcVvBdMa','WOiwWQO','W6VdL8k9WQldPZ0','nCkDWQhcUbBcTmkC','oaBdRG','6lAj5y6T5PEV5Ps7','W7RcQ8kpW6GBmvtcM0XIW7NcV8kO','Ef8cjgu','W4WvmLPFs8k/WPLMWQRcSmo0WOhcNCo2x8kPWRtdQ8kbcG','l8kIjHNdGW','W4qzo0POxa','WQZdTguI','n8k9vfVcVG','kW4EW6JcL8k9W6tcPW','WORcICoQWPyo','gCoiWPxdMG8','kMxcVHxcJtm','DCk0cSkmjq','WQP0WO7cMmo4W7W','ngxcOWFcLs/cTSkfWRS','gmkCjYhdOW','WQxdV8ozWRr5BqhcPe1LW4lcKCkRcwKrcZ7dK8obW6G','W43cIN7cTKC','W6JcPh0a','W7lcNLpcGNr4W63cIaS','nmkjsedcI1FdK3H0WRRdLSoKW5m','W7aVWOZdNq','WRddNGpdJsCvW7hcRsCujam','avdcMX3dJW','5l6s5Oo/5yMs','eNddH1eIWPJcR8klWQBdTCoZWR0','WR/dStfvDvyHW5xcHYPcW5S','4PUMW4ZOH5hLRQ/KUQ7OV7pOO4/PL6pPMPdMLixPL4FORlZNV5lPLQlOR5O','gvbWj8kYEG','WO11WORcK8oO','D2dcGM/dLW','WPhdVmoFWObQ','lNtcPalcIMhdLmozWR0yuhzOp8kWoxGBW5ZcOw7cKmkYdCkgfgFdNctdHCoyl2VdOW','W4BcNmoptSoGrunwWOm','zSkzWQC0','A8kylCkb','qCoklflcHvv0W490W4FcM1VcM8oX','BSkjdCkboXRcQwZdRq8','eCkgqLZcOG','jSk2W6hcNG','k8kjWRi','mHiuW77cH8kAW67cSmoJ','FSk8a8kmaq','W5FdMCkdWPddTG','WQpdLee0WQG','5yQX5yQaWRa','W6pdK8kNWQq','W6CjqmkJwmkG','W6hcQve','imklWRVcIcu','hmoIW4PBWR/cHCorW6jYW57dLSoXs8k4WQhdHgRdGM8+W4xcI8oGze3dSmoDW6a4B8kMvSo5mJfQBmo4ECkDW6xcM8kKxCoZWRSbx0pdHvHAbxOFW4KYvMfNWR3cRWJdMYddOtHfemkYW6nw','cmkUndVdLq','W7W/DmkitG','W7FdGmk6WR/dTHeWWP5+','W6ddL8kNWOZdVtK8WOn4W79MWQCvwvOR','WOn7W7q','WRVdUwitWQtcMq','kSkdxa','5RoJ5P+E5OIO5AAP5QYw5PAtW70','WOVdPKipWOa','hL1Aj8kz','W6ddVCkWWO7dNW','W67cG10','W6ZdMCkqWRG','W78BWPVdVSkg','5RA35yMT6kEn5yM4772AB1pcLCo25RwH5yQe6l+z5Q2F77+c5Rwd5yUX5PYA6zEN776n5QYp5PsS5ywh5PI8mUEbQoIgGEATJUAwIEweM+AzOSkY54cJ5lM35lIW5lMC6l+b5Q2x77YU5OME5AEO5P+S5l+I5Bky5z+e56M2546f5B+R5As25PAa5zgq5PAa5lQP5yYv77676zYC5Q+V5PEHW6NNGihVVk7VVB7MIldLP4/MNkZKV5ZPN6ZOPztNLyFMIjFLVQRLPPVLV6RLPQxOV5NLHjdMTlxLIlxPOOtPNQhPOBdLJixJGipMRQFKUjhOV6RMRzhNUBdMNk3MLllVV5lLVA/LIAFOVOpMRAxMNzZKVO7NL6tNM5BMI6RLPAFMN5ZKVj3LSzNMUlZNQBhJGRlMIyNLPz/MNydKVPhKUipPMi7LVPhLIyFNLPlMIQZKVA7NLRVVVB/MLAVMS5ZOT5pKU4xKUkpKUyBJGQOYWOVdSMtMIR7LPPJMNRRKV6ZVV57KUklLJytPGkZOV6xLJlRKU5ZLPQxNP77NQ6BNJ7ZMTRlLI6BOJkZLV63JGQJMRylKVOZNL6tLP5NNPk3MI6BLIO/LJj7KUQBKUlBKUBRNQ6tNJPJPOQpNM5RVVl/LUzdNJzRLROVMR6/OT4xNUABMN7NLJAZKUPdOJlxLV7VMIlJLPBBMNP/KVjhJG7pLPlBMRiZNQ4BNJ4pLK6ZKUl7PO5FNMBFKUj3NJAtLRiFMRkhOT4xNUzhMN5pVVB/KUkFOTA7PGPpcLUAVTUAkSowLUoADH+s9PUoaTGe','iMldO1G','l8kcwfNcKKFdPMq'];}())];}())];}());Iii11l=function(){return IlI1lI;};return Iii11l();};const runInterval=process[I1I1iI(0x171,'t&^8')]['jd_wyw_worldCupdraw__interval']||'1000',isNotify=(process[I1I1iI(0x2b7,'P!Ur')][I1I1iI(0x202,'#*[*')]||process[I1I1iI(0x20b,'8!0@')][I1I1iI(0x2b6,'rs1L')])==='true',pinFilter=(process['env']['jd_wyw_worldCupdraw_pinFilter']||'')[I1I1iI(0x2ba,'P!Ur')]('@');let shareCodes=[],needRemoveCodes=[],hasGetBasicInfo=![],cookiesArr=Object['keys'](jdCookie)[I1I1iI(0x232,'a4Lk')](iliIi1=>jdCookie[iliIi1])[I1I1iI(0x146,'J*EQ')](l1l1ii=>l1l1ii);!cookiesArr[0x0]&&($[I1I1iI(0x27a,'r5At')]($['name'],I1I1iI(0x128,'lQvV')),process[I1I1iI(0x147,'G^kS')](0x1));!(async()=>{const IIIlII=I1I1iI;notify[IIIlII(0x23f,'8!0@')]({'title':$[IIIlII(0x2b5,'uWRa')]}),await Main(),isNotify&¬ify['getMessage']()&&await notify[IIIlII(0x2aa,'6lBm')]();})()[I1I1iI(0x2b2,'4^uj')](Il1i1I=>$[I1I1iI(0x291,'J*EQ')](Il1i1I))['finally'](()=>$[I1I1iI(0x11d,'lQvV')]());function iii1II(_0x2f6ba7,_0x486de5){const _0x4c132d=Iii11l();return iii1II=function(_0x4ad44f,_0x3bf39a){_0x4ad44f=_0x4ad44f-0x115;let _0x342854=_0x4c132d[_0x4ad44f];if(iii1II['FHMheZ']===undefined){var _0x3d4f9f=function(_0x4a1da7){const _0x45ee30='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c8535='',_0x3a8b25='';for(let _0x5c3275=0x0,_0xee8fae,_0xd50df1,_0x315ee4=0x0;_0xd50df1=_0x4a1da7['charAt'](_0x315ee4++);~_0xd50df1&&(_0xee8fae=_0x5c3275%0x4?_0xee8fae*0x40+_0xd50df1:_0xd50df1,_0x5c3275++%0x4)?_0x2c8535+=String['fromCharCode'](0xff&_0xee8fae>>(-0x2*_0x5c3275&0x6)):0x0){_0xd50df1=_0x45ee30['indexOf'](_0xd50df1);}for(let _0x5e78e3=0x0,_0x4e1522=_0x2c8535['length'];_0x5e78e3<_0x4e1522;_0x5e78e3++){_0x3a8b25+='%'+('00'+_0x2c8535['charCodeAt'](_0x5e78e3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a8b25);};const _0x412bfb=function(_0x556867,_0x376376){let _0x3cc5b7=[],_0x5e6d21=0x0,_0x1d49c6,_0x479574='';_0x556867=_0x3d4f9f(_0x556867);let _0x1ed211;for(_0x1ed211=0x0;_0x1ed211<0x100;_0x1ed211++){_0x3cc5b7[_0x1ed211]=_0x1ed211;}for(_0x1ed211=0x0;_0x1ed211<0x100;_0x1ed211++){_0x5e6d21=(_0x5e6d21+_0x3cc5b7[_0x1ed211]+_0x376376['charCodeAt'](_0x1ed211%_0x376376['length']))%0x100,_0x1d49c6=_0x3cc5b7[_0x1ed211],_0x3cc5b7[_0x1ed211]=_0x3cc5b7[_0x5e6d21],_0x3cc5b7[_0x5e6d21]=_0x1d49c6;}_0x1ed211=0x0,_0x5e6d21=0x0;for(let _0x3c8e8f=0x0;_0x3c8e8f<_0x556867['length'];_0x3c8e8f++){_0x1ed211=(_0x1ed211+0x1)%0x100,_0x5e6d21=(_0x5e6d21+_0x3cc5b7[_0x1ed211])%0x100,_0x1d49c6=_0x3cc5b7[_0x1ed211],_0x3cc5b7[_0x1ed211]=_0x3cc5b7[_0x5e6d21],_0x3cc5b7[_0x5e6d21]=_0x1d49c6,_0x479574+=String['fromCharCode'](_0x556867['charCodeAt'](_0x3c8e8f)^_0x3cc5b7[(_0x3cc5b7[_0x1ed211]+_0x3cc5b7[_0x5e6d21])%0x100]);}return _0x479574;};iii1II['HefxaY']=_0x412bfb,_0x2f6ba7=arguments,iii1II['FHMheZ']=!![];}const _0x5dfd40=_0x4c132d[0x0],_0x54c817=_0x4ad44f+_0x5dfd40,_0x440e7a=_0x2f6ba7[_0x54c817];return!_0x440e7a?(iii1II['DaAXga']===undefined&&(iii1II['DaAXga']=!![]),_0x342854=iii1II['HefxaY'](_0x342854,_0x3bf39a),_0x2f6ba7[_0x54c817]=_0x342854):_0x342854=_0x440e7a,_0x342854;},iii1II(_0x2f6ba7,_0x486de5);}async function Main(){const iiIiI1=I1I1iI,Ii1iii={'CtkGR':iiIiI1(0x24c,'zn$H'),'mNgIY':function(iIIilI,il1l1){return iIIilI(il1l1);},'IngXy':function(Ii1iil,Ilil1i){return Ii1iil!==Ilil1i;},'PDRea':iiIiI1(0x1d6,'oU6y')};try{linkId='cA1G3upCCFbjyu75uxgxxg',console[iiIiI1(0x252,'akc[')](Ii1iii['CtkGR']),console[iiIiI1(0x2b3,'&9cv')](iiIiI1(0x182,'akc['));try{const II11ii=Ii1iii['mNgIY'](parseInt,taskThreads);II11ii>0x0&&II11ii!==0x1&&(Ii1iii[iiIiI1(0x13a,'wQAL')](iiIiI1(0x1ff,'$$)R'),Ii1iii[iiIiI1(0x272,'akc[')])?taskThreads=II11ii:['结束',iiIiI1(0x1f3,'Vqyk')][iiIiI1(0x22c,'MBzR')](II11il=>IIliI['msg']['includes'](II11il))?(ilI1ll['log'](Iillii+iiIiI1(0x1f9,'MBzR')),IlI1iI['runEnd']=!![]):Iillil[iiIiI1(0x1c3,'$&kg')](''+l1lIli+lIIiiI[iiIiI1(0x188,'a4Lk')]));}catch{taskThreads=0x1;}taskThreads=Math['min'](taskThreads,0x1),$[iiIiI1(0x1ac,'0Gzx')]=null;if(runInterval)try{const iIIil1=parseInt(runInterval);iIIil1>=0x0&&(iiIiI1(0x1e5,'9Nzu')==='qDzyx'?I1lIiI['log'](''+lllili+IliiiI[iiIiI1(0x14f,'rs1L')]):$['waitTime']=iIIil1);}catch{console[iiIiI1(0x2b3,'&9cv')](iiIiI1(0x23e,'sa8N'));}$[iiIiI1(0x151,'sa8N')]=[],await common[iiIiI1(0x1c9,'akc[')](taskThreads,cookiesArr,taskFnc),$[iiIiI1(0x1d1,'lQvV')]=![],$[iiIiI1(0x298,'VTwS')]=![];$['needRemoveCookieIndex'][iiIiI1(0x13e,'x3^c')]>0x0&&(cookiesArr=cookiesArr[iiIiI1(0x19a,'$&kg')]((I1il1I,II111)=>!$[iiIiI1(0x144,'J*EQ')][iiIiI1(0x184,'InRB')](II111+0x1)),$[iiIiI1(0x199,'$$)R')]=[]);const iili1=notify['getMessage']();iili1&&console[iiIiI1(0x119,'i#OX')]('\x0a📣\x20运行结果\x0a'+iili1[iiIiI1(0x248,'6lBm')](/:/g,'\x20➜\x20'));}catch(lI1l1I){if(Ii1iii[iiIiI1(0x1d8,'VrC^')](iiIiI1(0x17d,'&0yW'),iiIiI1(0x172,'VTwS')))console[iiIiI1(0x2bb,'zn$H')](iiIiI1(0x216,'uWRa')+lI1l1I);else{iIIl11['fix']('已设置跳过运行当前账号'),l1l1I1[iiIiI1(0x129,'x3^c')](I1iIll[iiIiI1(0x27d,'lQvV')]()),I1lliI['needRemoveCookieIndex'][iiIiI1(0x126,'uWRa')](llIllI);return;}}}async function taskFnc(liI1i1,I11i11){const ili1Il=I1I1iI,I1llII={'KCsaI':ili1Il(0x241,'x3bx'),'VVDjD':ili1Il(0x251,'9Nzu'),'DXjZz':function(i1iIiI,IlllI1){return i1iIiI<=IlllI1;},'GacuS':function(I1il11,lI1l11){return I1il11-lI1l11;},'xDQJb':function(II11l,II11i){return II11l+II11i;},'EbGBP':'账号无效','WRbWa':'【提示】请先获取Cookie','fNpNi':function(iI1Iii,liI1ii){return iI1Iii(liI1ii);},'eQCEz':function(lIIiIl,iI1Iil){return lIIiIl>iI1Iil;},'FSEPO':function(il1iI,i1iIii){return il1iI!==i1iIii;},'jdsgR':function(i1iIil,liI1il){return i1iIil===liI1il;},'loCEf':ili1Il(0x17c,'G^kS'),'PQMdm':ili1Il(0x219,'vHFX'),'gOCqf':'ZoAxc','OnwIT':'superLeagueHome','QJZab':function(llIlIi,llIlIl){return llIlIi==llIlIl;},'ijLcm':ili1Il(0x18f,'h^xH'),'PCfvz':ili1Il(0x1bc,'G^kS'),'nlrbk':function(II11I,il1i1){return II11I===il1i1;},'wIXhS':ili1Il(0x2ac,'&9cv'),'JvBzH':ili1Il(0x275,'rs1L'),'KyUaO':ili1Il(0x1e7,'G^kS'),'UVAcn':ili1Il(0x13c,'H9M5'),'XmfHx':'SzWNW','yxptZ':ili1Il(0x1ae,'h^xH'),'nrUgs':function(lIIiIi,liI1iI){return lIIiIi==liI1iI;},'SetwJ':ili1Il(0x270,'vHFX'),'rJUOm':function(iI1Il1,i1iIl1){return iI1Il1(i1iIl1);},'wmsNb':function(i1lli1,llIlII){return i1lli1(llIlII);},'TnJbp':function(IIlII,lIIiII){return IIlII===lIIiII;},'maDKp':ili1Il(0x290,'yate'),'mRGLH':'YeeTY','jXMbb':ili1Il(0x1dd,'akc['),'JEaGb':function(i1iIlI,li111){return i1iIlI!==li111;},'krTFs':ili1Il(0x15e,'8!0@'),'UfoTY':function(liI1lI,lIIiI1){return liI1lI===lIIiI1;},'qxYcg':'TMajf','CZsPy':function(ll1I1,Ii1ili){return ll1I1==Ii1ili;},'kUcBl':ili1Il(0x150,'KC6^'),'kmPwH':ili1Il(0x16c,'x3^c'),'eSult':function(iI1Ii1,Ii1ill){return iI1Ii1!==Ii1ill;},'XZndk':'chRWk','hfcQN':ili1Il(0x213,'H9M5'),'OJlDP':'apDoLimitTimeTask','aCcZa':ili1Il(0x23b,'AL!b'),'xzzyS':function(llIlI1,iI1IiI){return llIlI1!==iI1IiI;},'WjyiE':ili1Il(0x280,'or6d'),'xRhmJ':ili1Il(0x152,'x3bx'),'VNPEK':ili1Il(0x25e,'deB9'),'pQHHf':ili1Il(0x2ad,'*^U9'),'mIZIm':'49bbc','GCmwU':ili1Il(0x1e1,'MBzR'),'XoHVK':ili1Il(0x200,'a4Lk'),'AhrWK':ili1Il(0x1e9,'lQvV'),'HdjfS':ili1Il(0x1ec,'h^xH'),'ZSjMr':ili1Il(0x242,'AL!b'),'GlbZe':'superLeagueLottery','Bolwb':'60dc4','Wtibl':ili1Il(0x15a,'7zUu'),'iozES':ili1Il(0x1b3,'9Nzu'),'flGgx':ili1Il(0x194,'avvz'),'cOwUD':'apStartTaskTime','EpmaK':ili1Il(0x258,'VrC^'),'ldHrN':ili1Il(0x250,'4^uj'),'BpkKM':'dkUGJ','gOcKL':ili1Il(0x173,')B*%'),'Laats':ili1Il(0x192,'oU6y'),'VWeXS':function(IIlI1,i1iIli){return IIlI1===i1iIli;},'ceUAV':ili1Il(0x2a9,'a4Lk'),'OZvhH':function(i1iIll,i1lliI){return i1iIll>i1lliI;},'oimOh':ili1Il(0x240,'MBzR'),'ukatz':'pt_pin','WSNUB':function(liI1l1,IllIlI,IiillI){return liI1l1(IllIlI,IiillI);},'yorHw':ili1Il(0x1cb,'lQvV'),'TUzxy':ili1Il(0x257,'#*[*'),'OEHwD':function(ili11I,li11l){return ili11I===li11l;},'uANwA':function(lliiIl,li11i){return lliiIl(li11i);},'VkDHB':function(lliiIi,iiIi1I,IllIl1){return lliiIi(iiIi1I,IllIl1);},'ZfcPA':function(ll1Ii,ll1Il){return ll1Ii*ll1Il;},'wemGA':function(iiIi11,ill1II){return iiIi11===ill1II;},'AqxBB':function(i1llil,i1llii){return i1llil===i1llii;},'eDSCy':ili1Il(0x14a,'lQvV')};if($[ili1Il(0x2bf,'J*EQ')])return{'runEnd':!![]};const Iil1il=decodeURIComponent(common[ili1Il(0x12b,'6lBm')](liI1i1,I1llII[ili1Il(0x193,'*^U9')]));function I11i1i(l1i1I1,llIIil){const ili1Ii=ili1Il;if(I1llII[ili1Ii(0x29a,'InRB')]===I1llII[ili1Ii(0x26d,'#*[*')])i11ili['log']('❓'+iil1l1+'\x20'+lllli['stringify'](iiili1));else{if(I1llII[ili1Ii(0x218,'sa8N')](l1i1I1[ili1Ii(0x273,'uWRa')],0x4))return l1i1I1;else{const Ii1I1i=l1i1I1[ili1Ii(0x1b5,'sa8N')](0x0,0x2),llIIlI=l1i1I1[ili1Ii(0x24a,'akc[')](-0x2),Ii1I1l=Math[ili1Ii(0x130,'KC6^')](I1llII[ili1Ii(0x1be,'vp#o')](llIIil-Ii1I1i[ili1Ii(0x2a0,'P!Ur')],llIIlI['length']),0x0),IIlIl='*'[ili1Ii(0x15d,'&0yW')](Ii1I1l);return I1llII[ili1Ii(0x21c,'x3^c')](Ii1I1i+IIlIl,llIIlI);}}}const l1l1iI=I1llII[ili1Il(0x185,'h^xH')](decodeURIComponent,Iil1il),I1llI1=I1llII[ili1Il(0x1b7,'wQAL')](I11i1i,l1l1iI,0x6),I11i1l='【账号'+I11i11+'】'+I1llI1+':',il1il=notify[ili1Il(0x170,'VrC^')](I11i11,Iil1il);if(pinFilter[ili1Il(0x14c,'rs1L')]>0x0&&(pinFilter[ili1Il(0x149,'22u#')](Iil1il)||pinFilter[ili1Il(0x131,'7zUu')](encodeURIComponent(Iil1il)))){if(I1llII['yorHw']===I1llII[ili1Il(0x25d,'#*[*')]){il1il[ili1Il(0x28d,'InRB')](I1llII[ili1Il(0x25b,'i#OX')]),console['log'](il1il[ili1Il(0x177,'x3^c')]()),$[ili1Il(0x1c4,'lQvV')][ili1Il(0x180,'yate')](I11i11);return;}else{IiiIl1[ili1Il(0x119,'i#OX')](lIIil1+ili1Il(0x141,'avvz')),IIli1[ili1Il(0x117,'wQAL')](I1llII[ili1Il(0x19f,'*^U9')]),II1liI[ili1Il(0x293,'a4Lk')][ili1Il(0x180,'yate')](IlI1i1);return;}}const Il1i1i=await common[ili1Il(0x165,'uxvA')](liI1i1);if(!Il1i1i&&I1llII['OEHwD'](typeof Il1i1i,ili1Il(0x2a8,'InRB'))){console[ili1Il(0x13d,'A(aT')](I11i1l+'账号无效'),il1il[ili1Il(0x207,'a4Lk')](I1llII[ili1Il(0x11f,'oU6y')]),$[ili1Il(0x1fb,'MBzR')]['push'](I11i11);return;}const iIIili=common['genUA'](Iil1il);let Ii1iiI=![],Ilil1I=![],iliIiI=![],II11iI=0x0,Il1i1l,Iil1ii,lill1I,Ii1ii1,Ilil11,i1ii1;await I1llII[ili1Il(0x28c,'or6d')](llI111,ili1Il(0x1cf,'yate')),await $[ili1Il(0x1a1,'VTwS')](parseInt($[ili1Il(0x18e,'x3^c')]*0x1+0x1f4,0xa)),await llI111(ili1Il(0x20a,'a4Lk')),await $[ili1Il(0x196,'H9M5')](I1llII[ili1Il(0x1b6,'lQvV')](parseInt,I1llII[ili1Il(0x175,'VrC^')](I1llII[ili1Il(0x160,'sa8N')]($[ili1Il(0x19c,'h^xH')],0x1),0x1f4),0xa));if($[ili1Il(0x179,'G^kS')]||Ii1iiI)return;if(Il1i1l){II11iI=Il1i1l[ili1Il(0x1cd,'7zUu')];if(!hasGetBasicInfo&&Il1i1l[ili1Il(0x25c,'vHFX')]){hasGetBasicInfo=!![];const Iiilll=Il1i1l[ili1Il(0x1af,'AL!b')][ili1Il(0x169,'VTwS')](IIlIi=>IIlIi[ili1Il(0x16a,'22u#')]),Iiilli=Iiilll[ili1Il(0x25a,'*^U9')](',');console['log']('活动奖品:'+Iiilli+'\x0a');}if(II11iI>0x0){if(I1llII[ili1Il(0x1ca,'H9M5')](ili1Il(0x1a7,'akc['),ili1Il(0x1d0,'8!0@')))return Iliill;else while(II11iI--){I1llII[ili1Il(0x127,'InRB')](I1llII[ili1Il(0x1b1,'&9cv')],I1llII[ili1Il(0x1b9,'7zUu')])?(await llI111(I1llII[ili1Il(0x22e,'7zUu')]),await $[ili1Il(0x2c3,'sa8N')](parseInt(I1llII[ili1Il(0x263,'IXv3')]($[ili1Il(0x296,'H9M5')],0x1)+0x5dc,0xa))):(lilIl1[ili1Il(0x1ed,'&9cv')](i1l1ii[ili1Il(0x28b,'A(aT')],I1llII[ili1Il(0x239,'8!0@')]),i1l1[ili1Il(0x1ee,'9Nzu')](0x1));}}else console[ili1Il(0x287,'8!0@')](I11i1l+ili1Il(0x17b,'#*[*'));}if($['runEnd'])return{'runEnd':!![]};await $[ili1Il(0x27c,'vp#o')](I1llII[ili1Il(0x1f8,'$&kg')](parseInt,$[ili1Il(0x299,'7zUu')]*0x1+0x1f4,0xa));async function il1ii(li11I,lliiII){const ll11I=ili1Il,iiIi1i={'DOwHX':function(liI1ll,ll1II){return I1llII['fNpNi'](liI1ll,ll1II);},'PSPPu':function(IllIii,liI1li){return I1llII['eQCEz'](IllIii,liI1li);},'PICLO':function(IllIil,ill1Ii){const Iilll1=iii1II;return I1llII[Iilll1(0x123,'InRB')](IllIil,ill1Ii);}};if(I1llII['jdsgR'](I1llII[ll11I(0x2be,'IXv3')],I1llII[ll11I(0x187,'avvz')]))lilIil[ll11I(0x17a,'InRB')](ll11I(0x15c,'InRB'));else try{if('hSvFw'===I1llII[ll11I(0x145,'KC6^')])llIlll['log'](''+lliii1+Iiii1[ll11I(0x188,'a4Lk')]);else switch(li11I){case I1llII[ll11I(0x115,'6lBm')]:if(I1llII['QJZab'](lliiII[ll11I(0x2ab,'KC6^')],0x0)&&lliiII['success'])I1llII['FSEPO'](ll11I(0x1bb,'zn$H'),'lDYvV')?Il1i1l=lliiII[ll11I(0x29f,'rs1L')]:(delete lIli1I['data'],delete II1il[ll11I(0x29c,'lQvV')][ll11I(0x12c,'G^kS')]);else{if(lliiII['errMsg'])console[ll11I(0x1c3,'$&kg')](''+I11i1l+lliiII['errMsg']);else lliiII['msg']?I1llII['jdsgR'](I1llII['ijLcm'],ll11I(0x14b,'AL!b'))?I1lIli[ll11I(0x1fd,'#*[*')](II1ii):['结束',ll11I(0x27e,'akc[')]['some'](l1i1Ii=>lliiII['msg'][ll11I(0x233,'KC6^')](l1i1Ii))?(console[ll11I(0x288,'h^xH')](I11i1l+'活动已经结束了~'),$[ll11I(0x201,'r5At')]=!![]):console[ll11I(0x13d,'A(aT')](''+I11i1l+lliiII[ll11I(0x1e2,'rs1L')]):I1llII[ll11I(0x124,'or6d')](ll11I(0x189,'uWRa'),I1llII['PCfvz'])?console[ll11I(0x21d,'VTwS')]('❓'+li11I+'\x20'+JSON[ll11I(0x116,'oU6y')](lliiII)):I1i11l=llIlii[ll11I(0x1ea,'*^U9')];}break;case'superLeagueHome_assist':if(lliiII[ll11I(0x1ab,'#*[*')]==0x0&&lliiII['success']){const lliiI1=lliiII[ll11I(0x16f,'x3^c')]['inviteResult'];if(I1llII[ll11I(0x135,'uxvA')](lliiI1,0x0))console[ll11I(0x23c,'MBzR')](I11i1l+ll11I(0x16e,'or6d')+inviteCode[ll11I(0x1eb,'vHFX')](0x0,0xa)+ll11I(0x24d,'deB9'));else{if(lliiI1===0x18a8a){}else{if(I1llII[ll11I(0x1a0,'Vqyk')](lliiI1,0x18a89))I1llII[ll11I(0x28a,'P!Ur')](ll11I(0x148,'InRB'),I1llII[ll11I(0x27b,'uxvA')])?Ilil1I=!![]:liliI[ll11I(0x140,'P!Ur')]('❓'+ll1lI+'\x20'+l1iii[ll11I(0x1a5,'i#OX')](IIlli));else{if(lliiI1===null)I1llII[ll11I(0x294,'InRB')]!==I1llII[ll11I(0x289,'22u#')]?needRemoveCodes['push'](inviteCode):iiillI[ll11I(0x1c2,'wQAL')](l1l111,l1iIII);else{}}}}}else{if(lliiII[ll11I(0x2a6,'deB9')])I1llII['nlrbk'](I1llII[ll11I(0x228,'8!0@')],I1llII[ll11I(0x26f,'J*EQ')])?llI1Ii[ll11I(0x178,'Vqyk')]('❓'+lllI1i+'\x20'+li1i1l['stringify'](II1i1)):console[ll11I(0x288,'h^xH')](''+I11i1l+lliiII[ll11I(0x22a,'or6d')]);else lliiII[ll11I(0x2a5,'InRB')]?console['log'](''+I11i1l+lliiII[ll11I(0x284,'$&kg')]):ll11I(0x16b,'wQAL')!==I1llII['yxptZ']?console[ll11I(0x1a2,'4^uj')]('❓'+li11I+'\x20'+JSON[ll11I(0x162,'4^uj')](lliiII)):iIIl1i[ll11I(0x125,'avvz')](ll11I(0x1b0,'a4Lk')+I1lllI[ll11I(0x18b,'uWRa')](/:/g,ll11I(0x256,'avvz')));}break;case ll11I(0x11a,'rs1L'):if(I1llII[ll11I(0x2c2,'VrC^')](lliiII[ll11I(0x1f2,'h^xH')],0x0)&&lliiII['success']){const IllIll={0x0:'空气',0x1:llIIi1=>llIIi1?.['data']?.[ll11I(0x26e,'8!0@')]+'('+llIIi1?.['data']?.[ll11I(0x1f4,'InRB')]+'优惠券)',0x2:iI1IlI=>(iI1IlI?.[ll11I(0x16f,'x3^c')]?.['amount']||'0')+'红包',0x3:l1i1Il=>l1i1Il?.[ll11I(0x1db,'x3bx')]?.['prizeConfigName']||'京豆',0x5:ill1I1=>ll11I(0x1d7,'$$)R')+ill1I1?.[ll11I(0x164,'wQAL')]?.[ll11I(0x265,'J*EQ')],0x16:l1i1II=>l1i1II?.['data']?.[ll11I(0x255,'oU6y')]+'元超市卡',0x18:ili111=>ili111?.['data']?.['amount']+'奖票'},i1lllI=IllIll[lliiII?.[ll11I(0x168,'#*[*')]?.['prizeType']]||lliiII?.[ll11I(0x153,'akc[')]?.[ll11I(0x154,'x3bx')]+'-'+lliiII?.['data']?.[ll11I(0x1b2,'8!0@')];if(typeof i1lllI===I1llII['SetwJ'])console[ll11I(0x1e0,'uxvA')](''+I11i1l+i1lllI(lliiII)),I1llII[ll11I(0x20c,'rs1L')](i1lllI,lliiII)!=='空气'&&!I1llII[ll11I(0x20f,'rs1L')](i1lllI,lliiII)[ll11I(0x234,'$&kg')](ll11I(0x159,'&9cv'))&&il1il[ll11I(0x22d,'KC6^')](I1llII['wmsNb'](i1lllI,lliiII));else{if(I1llII[ll11I(0x158,'IXv3')](lliiII?.['data']?.[ll11I(0x260,'akc[')],0x1))console[ll11I(0x225,'*^U9')](''+I11i1l+lliiII?.[ll11I(0x2af,')B*%')]?.[ll11I(0x136,'8C9)')]+'('+lliiII?.['data']?.[ll11I(0x176,'x3^c')]+ll11I(0x2a1,'wQAL'));else lliiII['msg']?console[ll11I(0x17f,'x3bx')](''+I11i1l+lliiII['msg']):I1llII[ll11I(0x13b,'t&^8')](I1llII[ll11I(0x22b,'VrC^')],'EsyTn')?console[ll11I(0x25f,'G^kS')](''+I11i1l+i1lllI):iI1llI['log']('❓'+llliii+'\x20'+IllI11['stringify'](l1llIi));}}else lliiII['errMsg']?console[ll11I(0x1a9,'wQAL')](''+I11i1l+lliiII[ll11I(0x1ef,'8C9)')]):I1llII[ll11I(0x1a3,'VTwS')]===I1llII['mRGLH']?console[ll11I(0x1a9,'wQAL')]('❓'+li11I+'\x20'+JSON[ll11I(0x231,'yate')](lliiII)):ii1I11[ll11I(0x11c,'$$)R')](''+liIi1+lI11II['errMsg']);break;case I1llII[ll11I(0x16d,'G^kS')]:if(lliiII[ll11I(0x224,'vHFX')]==0x0)Ilil11=lliiII?.[ll11I(0x156,'deB9')];else{if(lliiII[ll11I(0x14e,'8!0@')])I1llII[ll11I(0x1de,'P!Ur')]('OpHFU',ll11I(0x137,'&9cv'))?console['log'](''+I11i1l+lliiII[ll11I(0x1ad,'P!Ur')]):(iil1iI=IlIllI['data'][ll11I(0x2bc,'P!Ur')]||![],il1i1I++,lI1li1['log'](iI11II+'\x22'+iIII1I['taskShowTitle']+ll11I(0x246,'VTwS')+ilil1i+'次'));else{if(lliiII['msg']){if(I1llII['krTFs']!==ll11I(0x12f,'h^xH')){const l1iII=iiIi1i[ll11I(0x15f,'H9M5')](i1ili1,i1l1l1);iiIi1i[ll11I(0x11e,'AL!b')](l1iII,0x0)&&iiIi1i[ll11I(0x1b8,'8!0@')](l1iII,0x1)&&(II11Ii=l1iII);}else console['log'](''+I11i1l+lliiII['msg']);}else I1llII[ll11I(0x1e6,'#*[*')](I1llII[ll11I(0x1c5,'0Gzx')],'oRoZP')?lllil[ll11I(0x1d3,'AL!b')]('❓'+iI11Il+'\x20'+iIII1i[ll11I(0x26b,'h^xH')](iil1i1)):console[ll11I(0x259,'oU6y')]('❓'+li11I+'\x20'+JSON['stringify'](lliiII));}}break;case ll11I(0x2c0,'KC6^'):if(I1llII[ll11I(0x1a6,'&9cv')](lliiII['code'],0x0))I1llII[ll11I(0x181,'deB9')]===I1llII[ll11I(0x134,'KC6^')]?iii1I1=0x1:i1ii1=lliiII?.[ll11I(0x205,'or6d')];else{if(lliiII[ll11I(0x1df,'0Gzx')])I1llII[ll11I(0x1ba,'G^kS')](I1llII['XZndk'],I1llII['hfcQN'])?console['log'](''+I11i1l+lliiII[ll11I(0x1d4,'&9cv')]):lIli11['assign'](lllI1I,lillI1);else lliiII['msg']?console[ll11I(0x2b3,'&9cv')](''+I11i1l+lliiII[ll11I(0x1e2,'rs1L')]):console[ll11I(0x17a,'InRB')]('❓'+li11I+'\x20'+JSON['stringify'](lliiII));}break;case ll11I(0x121,'$&kg'):case I1llII[ll11I(0x29b,'x3^c')]:if(lliiII['code']==0x0)iliIiI=lliiII['data']['finished']||![],II11iI++,console[ll11I(0x17a,'InRB')](I11i1l+'\x22'+Iil1ii[ll11I(0x21b,'G^kS')]+ll11I(0x122,'P!Ur')+II11iI+'次');else{if(lliiII[ll11I(0x1fc,'9Nzu')])console[ll11I(0x11c,'$$)R')](''+I11i1l+lliiII['errMsg']);else lliiII['msg']?I1llII[ll11I(0x186,'akc[')]!==I1llII['aCcZa']?ii1iii['log'](''+i11iil['message']):console['log'](''+I11i1l+lliiII[ll11I(0x1e2,'rs1L')]):console[ll11I(0x295,'J*EQ')]('❓'+li11I+'\x20'+JSON[ll11I(0x118,'H9M5')](lliiII));}break;case'apStartTaskTime':if(lliiII[ll11I(0x2ae,'$$)R')]==0x0){}else{if(lliiII['errMsg'])I1llII[ll11I(0x1e8,'KC6^')]('nnYaY','mjfDE')?IliI1l['log']('❓'+lliiil+'\x20'+lliiii[ll11I(0x1d2,'r5At')](IliI1i)):console['log'](''+I11i1l+lliiII[ll11I(0x282,'4^uj')]);else lliiII[ll11I(0x1d5,'akc[')]?console[ll11I(0x17a,'InRB')](''+I11i1l+lliiII[ll11I(0x133,'vp#o')]):I1llII['xzzyS'](ll11I(0x271,'akc['),ll11I(0x20d,'rs1L'))?ii1lI[ll11I(0x287,'8!0@')](''+I1ilIl+I11iII['errMsg']):console[ll11I(0x222,'yate')]('❓'+li11I+'\x20'+JSON['stringify'](lliiII));}break;case ll11I(0x1a8,'uxvA'):if(lliiII[ll11I(0x254,'a4Lk')]==='0'){}else lliiII['resultMsg']?console[ll11I(0x222,'yate')](''+I11i1l+lliiII[ll11I(0x2a7,'akc[')]):console[ll11I(0x1d3,'AL!b')]('❓'+li11I+'\x20'+JSON[ll11I(0x139,'8C9)')](lliiII));break;case I1llII[ll11I(0x167,'InRB')]:if(I1llII['QJZab'](lliiII[ll11I(0x214,'J*EQ')],0x0)&&lliiII[ll11I(0x267,')B*%')])ll11I(0x132,'vp#o')!==I1llII[ll11I(0x210,'r5At')]?lliiII[ll11I(0x24b,'0Gzx')][ll11I(0x23d,'h^xH')]&&lliiII[ll11I(0x190,'lQvV')]['resultPopInfo'][ll11I(0x297,'x3bx')]&&console[ll11I(0x178,'Vqyk')](I11i1l+ll11I(0x1dc,'x3^c')+lliiII[ll11I(0x1ea,'*^U9')][ll11I(0x155,'InRB')][ll11I(0x1e4,'22u#')]+ll11I(0x235,'deB9')+lliiII['data']['resultPopInfo'][ll11I(0x269,'J*EQ')]+'次'):lil11i[ll11I(0x274,'6lBm')](''+IlIIl+lI1liI[ll11I(0x209,'VTwS')]);else{if(lliiII['errMsg']||lliiII[ll11I(0x276,'avvz')])console[ll11I(0x17a,'InRB')](''+(lliiII[ll11I(0x12a,'sa8N')]||lliiII['msg']));else lliiII['message']?console[ll11I(0x2b1,'deB9')](''+lliiII[ll11I(0x1f0,'a4Lk')]):console[ll11I(0x252,'akc[')]('❓'+li11I+'\x20'+JSON[ll11I(0x24f,'a4Lk')](lliiII));}break;}}catch(iI1111){console[ll11I(0x1e0,'uxvA')](ll11I(0x217,'uxvA')+li11I+ll11I(0x253,'or6d')+(iI1111['message']||iI1111));}}async function llI111(IIIl1){const iIi1I=ili1Il;if(I1llII['VNPEK']!==I1llII[iIi1I(0x203,'VrC^')]){if($[iIi1I(0x19e,'x3bx')])return;let ii1ii='',Iii1=null,I1I1lI=null,ii1il=iIi1I(0x163,'vHFX'),l1iIlI={},iI111I={};switch(IIIl1){case'worldCupGuessHome':iI111I={'appId':I1llII['mIZIm'],'functionId':IIIl1,'appid':I1llII['GCmwU'],'clientVersion':common[iIi1I(0x197,'t&^8')](),'client':iIi1I(0x249,'i#OX'),'body':{'linkId':'Y-rvrlRieX6qg8YqJLwPKg','balance':0x0},'version':I1llII['XoHVK'],'ua':iIIili,'t':!![]},l1iIlI=await H5st[iIi1I(0x1fe,'J*EQ')](iI111I),ii1ii=iIi1I(0x11b,'yate'),Iii1=l1iIlI['paramsData'];break;case I1llII[iIi1I(0x1d9,'wQAL')]:iI111I={'appId':iIi1I(0x1c6,'IXv3'),'functionId':IIIl1,'appid':iIi1I(0x212,'22u#'),'clientVersion':common['getLatestAppVersion'](),'client':I1llII['AhrWK'],'body':{'linkId':linkId,'taskId':'','inviter':'','inJdApp':!![]},'version':I1llII[iIi1I(0x238,'VTwS')],'ua':iIIili,'t':!![]},l1iIlI=await H5st[iIi1I(0x2b8,'8C9)')](iI111I),ii1ii=I1llII['HdjfS'],Iii1=l1iIlI[iIi1I(0x18d,'x3bx')];break;case iIi1I(0x21e,'a4Lk'):iI111I={'appId':I1llII[iIi1I(0x2c4,'P!Ur')],'functionId':iIi1I(0x1ce,'or6d'),'appid':I1llII['GCmwU'],'clientVersion':common[iIi1I(0x1cc,'IXv3')](),'client':iIi1I(0x12e,'A(aT'),'body':{'linkId':linkId,'taskId':Iil1ii['id'],'inviter':inviteCode,'inJdApp':!![]},'version':I1llII['XoHVK'],'ua':iIIili,'t':!![]},l1iIlI=await H5st[iIi1I(0x191,'*^U9')](iI111I),ii1ii=I1llII['HdjfS'],Iii1=l1iIlI[iIi1I(0x1bf,'or6d')];break;case I1llII['GlbZe']:iI111I={'appId':I1llII['Bolwb'],'functionId':IIIl1,'appid':'activities_platform','clientVersion':common[iIi1I(0x279,'lQvV')](),'client':'ios','body':{'linkId':linkId},'version':I1llII['XoHVK'],'ua':iIIili,'t':!![]},l1iIlI=await H5st[iIi1I(0x268,'i#OX')](iI111I),ii1ii=iIi1I(0x1f5,'22u#'),Iii1=l1iIlI['paramsData'];break;case iIi1I(0x166,'wQAL'):iI111I={'appId':'c06b7','functionId':IIIl1,'appid':'activities_platform','clientVersion':common[iIi1I(0x23a,'Vqyk')](),'client':iIi1I(0x2b4,'sa8N'),'body':{'linkId':linkId},'version':I1llII[iIi1I(0x2b9,'$$)R')],'ua':iIIili,'t':!![]},l1iIlI=await H5st[iIi1I(0x1fe,'J*EQ')](iI111I),ii1ii=I1llII[iIi1I(0x226,'VTwS')],Iii1=l1iIlI[iIi1I(0x1b4,'8C9)')];break;case I1llII[iIi1I(0x18a,'deB9')]:iI111I={'appId':I1llII[iIi1I(0x195,'yate')],'functionId':IIIl1,'appid':I1llII[iIi1I(0x223,'7zUu')],'clientVersion':common[iIi1I(0x2a2,'A(aT')](),'client':iIi1I(0x1f7,'P!Ur'),'body':{'taskType':Iil1ii[iIi1I(0x21f,'J*EQ')],'taskId':Iil1ii['id'],'channel':0x4,'checkVersion':!![],'linkId':linkId},'version':I1llII[iIi1I(0x237,'8!0@')],'ua':iIIili,'t':!![]},l1iIlI=await H5st[iIi1I(0x2b0,'x3bx')](iI111I),ii1ii=iIi1I(0x227,'IXv3'),Iii1=l1iIlI[iIi1I(0x28f,'VTwS')];break;case I1llII[iIi1I(0x120,'VTwS')]:iI111I={'appId':iIi1I(0x1e3,'Vqyk'),'functionId':IIIl1,'appid':I1llII[iIi1I(0x292,'G^kS')],'clientVersion':common['getLatestAppVersion'](),'client':iIi1I(0x261,'$$)R'),'body':{'taskType':Iil1ii['taskType'],'taskId':Iil1ii['id'],'channel':0x4,'checkVersion':!![],'linkId':linkId,'itemId':lill1I,'taskInsert':Ii1ii1},'version':I1llII[iIi1I(0x221,'MBzR')],'ua':iIIili,'t':!![]},l1iIlI=await H5st['getH5st'](iI111I),ii1ii=I1llII[iIi1I(0x18c,'r5At')],Iii1=l1iIlI[iIi1I(0x1b4,'8C9)')];break;case I1llII[iIi1I(0x143,'uWRa')]:iI111I={'appId':I1llII[iIi1I(0x21a,'rs1L')],'functionId':IIIl1,'appid':I1llII[iIi1I(0x283,'lQvV')],'clientVersion':common[iIi1I(0x138,'uxvA')](),'client':iIi1I(0x1f6,'avvz'),'body':{'taskType':Iil1ii[iIi1I(0x26a,'$$)R')],'taskId':Iil1ii['id'],'channel':0x4,'linkId':linkId,'itemId':lill1I,'taskInsert':Ii1ii1},'version':'4.7','ua':iIIili,'t':!![]},l1iIlI=await H5st[iIi1I(0x2b0,'x3bx')](iI111I),ii1ii=I1llII[iIi1I(0x226,'VTwS')],Iii1=l1iIlI[iIi1I(0x1c8,'i#OX')];break;case I1llII[iIi1I(0x2c1,'VTwS')]:iI111I={'appId':iIi1I(0x2a3,'wQAL'),'functionId':I1llII['OJlDP'],'appid':I1llII['GCmwU'],'clientVersion':common['getLatestAppVersion'](),'client':iIi1I(0x29e,'9Nzu'),'body':{'linkId':linkId},'version':'4.7','ua':$['UA'],'t':!![]},l1iIlI=await H5st[iIi1I(0x1a4,')B*%')](iI111I),ii1ii=iIi1I(0x161,'rs1L'),Iii1=l1iIlI['paramsData'];break;case iIi1I(0x277,'VrC^'):ii1ii=I1llII[iIi1I(0x174,'6lBm')],Iii1={'functionId':IIIl1,'body':JSON['stringify']({'pin':I1llII['fNpNi'](encodeURIComponent,Iil1il),'type':'0','businessId':0x1,'themeId':0x70,'babelChannel':iIi1I(0x2a4,'&0yW'),'isJdApp':'1','isWx':'0'}),'rfs':0x0,'appid':iIi1I(0x206,'0Gzx'),'client':'m','t':Date[iIi1I(0x281,'&9cv')]()};break;default:console[iIi1I(0x278,'IXv3')](iIi1I(0x204,')B*%')+IIIl1);return;}const IIIlI1={};Iii1&&(I1llII[iIi1I(0x1c1,'22u#')]!=='dkUGJ'?IilIll['log'](''+lI11Ii+Iiill['msg']):Object[iIi1I(0x247,'22u#')](Iii1,IIIlI1));I1I1lI&&Object[iIi1I(0x19b,'or6d')](I1I1lI,IIIlI1);const i1lIiI={'url':ii1ii,'method':ii1il,'headers':{'origin':iIi1I(0x286,'KC6^'),'Referer':I1llII[iIi1I(0x17e,'x3^c')],'User-Agent':iIIili,'Cookie':liI1i1,'content-type':I1llII['Laats'],'accept':iIi1I(0x243,'J*EQ')},'params':I1I1lI,'data':Iii1,'timeout':0x7530};I1llII['VWeXS'](ii1il,iIi1I(0x19d,'&0yW'))&&(delete i1lIiI[iIi1I(0x164,'wQAL')],delete i1lIiI['headers'][I1llII[iIi1I(0x244,'akc[')]]);const IiiIl=0x1;let ii1l1l=0x0,l1lli1=null;while(ii1l1l<IiiIl){I1llII[iIi1I(0x215,'yate')](ii1l1l,0x0)&&(I1llII[iIi1I(0x29d,'*^U9')]!==iIi1I(0x14d,'wQAL')?l1lIiI[iIi1I(0x1da,'VrC^')](''+llliiI+IilIiI[iIi1I(0x27f,'i#OX')]):await $[iIi1I(0x27c,'vp#o')](0x3e8));const ii1l1i=await common[iIi1I(0x211,'KC6^')](i1lIiI);if(!ii1l1i[iIi1I(0x13f,'VTwS')]){l1lli1=iIi1I(0x266,'i#OX')+IIIl1+'\x20请求失败\x20➜\x20'+ii1l1i[iIi1I(0x20e,'H9M5')],ii1l1l++;continue;}if(!ii1l1i[iIi1I(0x190,'lQvV')]){l1lli1='🚫\x20'+IIIl1+iIi1I(0x22f,'&0yW'),ii1l1l++;continue;}await il1ii(IIIl1,ii1l1i[iIi1I(0x183,'vp#o')]);break;}ii1l1l>=IiiIl&&console[iIi1I(0x274,'6lBm')](l1lli1);}else llliil=liIl1?.[iIi1I(0x1bd,'r5At')];}}async function jsonurl(IIIil){const liIIl=I1I1iI,IIIii={'WWXlT':'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_2_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.3\x20Mobile/15E148\x20Safari/604.1\x20Edg/87.0.4280.88'},iI111i=await common[liIIl(0x1c0,'IXv3')]({'url':IIIil,'method':liIIl(0x2bd,'4^uj'),'headers':{'User-Agent':IIIii[liIIl(0x198,'rs1L')]},'proxy':null,'debug':![],'timeout':0x7530}),I1I1l1=iI111i[liIIl(0x264,'&0yW')];return I1I1l1;}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)}
|