mirror of https://github.com/KingRan/KR.git
13 lines
48 KiB
JavaScript
13 lines
48 KiB
JavaScript
/*
|
||
京东汽车概率100豆
|
||
|
||
|
||
|
||
cron "31 1 * * *" script-path=jd_superLeague.js, tag=京东汽车100豆
|
||
|
||
*/
|
||
const $ = new Env('京东汽车概率100豆')
|
||
var iil='jsjiami.com.v7';const II11=iii1II;(function(IIIIl1,liiilI,lI111l,liiii1,IIiiIl,l1ilIl,IIiiIi){return IIIIl1=IIIIl1>>0x3,l1ilIl='hs',IIiiIi='hs',function(l1ilIi,l11iIi,ll11li,iliIlI,lI111I){const I1iI11=iii1II;iliIlI='tfi',l1ilIl=iliIlI+l1ilIl,lI111I='up',IIiiIi+=lI111I,l1ilIl=ll11li(l1ilIl),IIiiIi=ll11li(IIiiIi),ll11li=0x0;const IlilI=l1ilIi();while(!![]&&--liiii1+l11iIi){try{iliIlI=parseInt(I1iI11(0xe1,'DBr@'))/0x1+parseInt(I1iI11(0x242,'Dnhh'))/0x2*(parseInt(I1iI11(0x121,'s0g1'))/0x3)+parseInt(I1iI11(0x20d,'Ij9w'))/0x4*(-parseInt(I1iI11(0x1b0,'hWqB'))/0x5)+-parseInt(I1iI11(0xd8,'U)jr'))/0x6+parseInt(I1iI11(0x293,'s0g1'))/0x7*(-parseInt(I1iI11(0x201,']3Kx'))/0x8)+-parseInt(I1iI11(0x1c4,'pp!v'))/0x9+parseInt(I1iI11(0x22c,'leb@'))/0xa;}catch(llIi1){iliIlI=ll11li;}finally{lI111I=IlilI[l1ilIl]();if(IIIIl1<=liiii1)ll11li?IIiiIl?iliIlI=lI111I:IIiiIl=lI111I:ll11li=lI111I;else{if(ll11li==IIiiIl['replace'](/[bEgLdhPOClyeAWGkIpVx=]/g,'')){if(iliIlI===l11iIi){IlilI['un'+l1ilIl](lI111I);break;}IlilI[IIiiIi](lI111I);}}}}}(lI111l,liiilI,function(IliIII,II1l,liiiiI,II1i,illli1,I1lII1,Ill111){return II1l='\x73\x70\x6c\x69\x74',IliIII=arguments[0x0],IliIII=IliIII[II1l](''),liiiiI=`\x72\x65\x76\x65\x72\x73\x65`,IliIII=IliIII[liiiiI]('\x76'),II1i=`\x6a\x6f\x69\x6e`,(0x14d7ef,IliIII[II1i](''));});}(0x618,0x4b86a,Iii11l,0xc5),Iii11l)&&(iil=0x13e2);const IliIIi=$[II11(0xca,'B[sX')]()?require('./sendNotify'):'',lI1l1i=$['isNode']()?require('./jdCookie'):'',i1iil=require(II11(0x273,'i$ve')),llI11l=require(II11(0x1de,'QlzE'));let I1llIl=!![],i1iii=II11(0x139,'8HAr'),I1llIi=process[II11(0xf5,'leb@')]['jd_ttlhb_num']?process[II11(0x286,'o9Rg')][II11(0x149,'8HAr')]:'1',IIii1I=[],llI11i='',i1iIi1;function Iii11l(){const i11iI1=(function(){return[...[iil,'pIWjPhdsbAjbLieGaebkmhig.lVcEoOm.xxvgyC7==','WPOvW6JcLSoKva','W6vyDhW2W5FdVmozWPpcVNBdLW4','WQrceYlcTG','WRmBWOTTWRu','yd3cS1ygW79aBq','WQldNmo0ySoY','WQSRW78qW7Xi','W7LKm07dNW','W6WVWQ7dOCoD','WPtcSmoyW7pdSCoB','WPldUSocnebCW4ZdKXhdJSkrba','W5hdV1JcKqhcGCozWQldRWC4W71HACkJWRynzG3cUCkrW7RcQspdLrZcISkXs2NdOmo9oG','rd50WPBcHG','BH3dGa','jCoNw8k7ha','sgHt','WQVdSmkMqSkmWQ7cSsm8WPC3iqTkWOaclGpdGSkuWOr+WP4','5OIn5lQI77YY','WOtdQCoB','rKuHW5BdQf0','DKq2W6NdLvVcOSo1','W4/dPSkKWPLf','qmkfA8ohFG','i8oZF0xcPCkBoq5fWPzPWOWPWPy','W7zlnv0','uWTnWR7cIG','DL/dVmolWOpdNNhdShWkCCoZW44EW7tdH34leCoveKDIW4W','WOtdRSoEmN/dVSknnCo5ba','W6ldTCkIWPFcKG','WPm5W5FdHmoC','WOxdJb0','WO4DW6yOW6K','WRyAecTWWOJcISoAWQRcIfddSq','W4tdRLVcLI7cI8owWR/dTqaZWRy','44ki5O+656wI44cP6k2J5ysZ6iYe5yY25lUh5lI26lA95y+r5lQgWPJdICkLcmkRWPPV55QL5OYm5lYr55AvW4xdSNXBW6LQ55Ir5lI25lMD56+m5yQF6i2P5yY1','vCoWW557WPG','W5ZdOe8','AMDCWPC','WRVcMteFba','AXZdG8o3W7m','nmk0k8oKkq','lbq9fNDupow8IUwKNEocUos5Sos6L+I3RownIq','W51YuSoLWOS','6k+15yQn6zIO5OAD5z6Jcmkah8kiWQBOVP3LHQBMORFKV5BMLB7LHBhLRA5w5BI76k2p6yks6l+V6ise5P+t5y2/6i2n5y2uW6xdISotWPKyW7y','WPpdImortSov','W43cKs0YeG','tSkoq8oDsa','W49MFCkCW4dcNCkGW4pdNWq+W5m','ycCk','W5mkWRBdOCoc','WRddSSkazmkV','E1yaW6ldSa','svJdG8oUWP8','B2JdPSoqWPK','wMVdIeyGD0xdHa','pmoOAKxcTCkA','DM9/uSkS','WPxdImo1FmoZ','uSkPD8on','WQBdHY/dMhi','W7H+CuL6mG','x1r6WRtdKmo3Ba','W5HKymksW6u','WRCLW7KfW7rjF8oqW6jFWRFcOSomda','CCk/CsdcKcSgxZy','AhiFW6JdSa','AIDj','n25lfh8','WP3dTSoosxu','CbpdICo2W6qN','DL/dVmolWOpdNNhdSg0iD8k5W4zgWRddJN4cgSkwxKL/WOPtCSoXyCoxWQrDn8kYjHJdSsi9Caa9W5nBW5/cJKGac8ovFwBdQ0VcISkzWPyWyxVdPx8OW4pcOgWIamojW7FcJvFdRYVdMNa','CHpdLCoHW64','sI1ZWRzq','W6JdKCkpWQvg','g8oWcSokvmosW5FdI8k1','x8kNwcFcVG','A8kjzshcSG','WPJdTbZdMK0','yrBdPmk+qG','WROziW','WP0deJHa','W5hcLX8ybW','W7b6eG','ACkXzq','qYRdHmo7W6u','DILCWRNcQCoc','WOewWOzPWQu','u8k6tq/cJq','AmkTzq','WRapmc5IWPFcRW','W79IExDd','ECkmzSoEyq','pSoxBSkM','FgvbWORdTCoBr8oJcwJcSgJdRYtdT8kVWOJdSGe','DCojWRvira','W49MFCkCW4dcNCkOW4/dMbe+W5S','DHpdLmo5W48LWRSoWQ/cSh0','nmkx5lQo5yMT5AAN6lsF776P5Roy5PYM6i+z5y6M5yIz5lUj5yMmWOTu','W71hyCoEW4G2bvzaBSkiW7DuwudcUrztAvpdU8oW','WPaflIz2','pSkzrG','WONdTSomANtdGSkdmCo1buxcUmo1W5FdSNDrW5hdOwBdISk2uhfzE8ktDmkrW5BcKZrP','W7LAdfNdPXddT8kfh0VdSKO','W7PPD2bOiCkz','FgG5W7/dUGC','hMrMgGrLWOO','5OIq5Aw75AE46lsaWQe','nfnDc0m','fsdcJ8oRWRz6WQRdQmk/','WOFdH8o3DCoL','bHhdUmkDvg4','5OQ/5AsK5AAw6lA3WQC','44oh5O6656w+44gB6k+05yAR6i255y2P5lMY5lU16lsF5y2Q5lMpWQ7cHmk+W55cAYFNM4lMJ4/KVR/NLOJdGKRdQ8oVuY3NMlxKUyFKU4FNR7ZLIidOJ6VLJ74','iNtLP6hOTjHPWR7LJRlLM6GiAa','W417DCoHWOu9ax5aqCkUWQ4','W5G1W5emmaRdUmkrzrPQlG','gtZdOeuHAq','CmoKi8kQW4y','W5OVWOBdQCoJ','W6HlkLNdUqG','W4vWwCkjW6C','lUIVSoMhUEAwM+EAVow9VEInVowmHgNcIXhcRSoaDG','W4fcWQ4','W5KMWQFdMCo3','WQmlnYfqWOVcOCoiWORcGe3dSsO','tYldSmogW6u','AKRdU8oqWQtcNs7cUG','maFdM8k3qW','W6H0bSkeuCkpESkZWRqWbq','zmkyma','ACoyeCkP','ltNcICosWPi','WO/dO8oitIJdKSkw','WPrSjblcQq','pwbHpvO','W55JBg9GmmklW5hcQq','ESofWQvkra','W5FcRCkgDHa','AcTIWRXS','r8oNpSkMW5K','v28DW7pdIq','6i2w5yYv5lUV5yI5W70','5lMR5lI/6lwb5y62','zGRdRmkaE8k4','WR4BnHPi','ufi9W7/dLvxcU8o5WPxdPq','xCkPz8oCDd/dVfSYm8kjWRldTSo2','emkmgmotdG','5OIy5lQV77+S56Q75Rol','WO3cRhm','gZldVvu','W4X0WQHpW5K','WQxdRCk+rSkAW6y','ps/dUgGi','5A245OMH5lIF5yQ/5AEw6lwzW60'],...(function(){return[...['W7JdLCkuWQ9A','sLjstdC','W7fJzef7jW','mSkNkCoemq','WQ5XesdcVW','rSkWx8oxxW','W5tcNdusmW','yW83aCoE','FSkPDCoeva','WQJcOxNdU8k/','DxjbWPpdSmkihmkLdwVcHJBdRMVdQCkTW4NdOWpcO8oIsZXb','dIpcLSoLWOfN','W7rcivVdRq','WRO/WQjVWRe','W4LwfSkjwW','W5PbESk1W7O','W7X8C2HGnSkzW6/cHeNdU8ktWO7cISoKzIa+uCozW5qpW75UaCo6W6n3AYNdVc8X','nMjafMS','pLzvgKa','WQ5mfa','CXjdWOXvyY3dVW','sGCDbSox','W53dRhbpESoZ','FHO3bmod','EtxcUuK','mtBdMSkitG','W4NdRCkr','W69ZrCoGWQy','W5BcPUs5H+wkP+wKRoI2Ho+/RUAZPoAELEIpNEwpVEwkP+s5TUwjM8omra','W5tcJfG','W4PizK5U','5A2l5OIZ5lQC5yUGW7lMIOpLPARMRllML43VV50','WQmlnYfkWO3cVCoAWQZcNq','WOyDW4NdV8ov','WQnceYa','w3S/W77dNG','WPigW6O','WQjrfqZcRvK','t1GNW6/dVKJcTSotWPVdVv3dUmoKwG','W4u7W5e','W60iWPVdOmot','rfG2W5ZdJa','y8k3BcRcQc4l','gGBdOSkDrvy/EblcJSkXu04lfh/cO8oY','W49RxSoLWOjRrJn9sSk6WQ00DH3cPX02pNFdT8kEW67cMCkAW5GMk8ozW5ZcQHTMdNPbjGvnpu/dNv0','mSoZBSkuoG','WPiEW73cJCo4','WRiynGDWWOq','WRDcftlcUW','W7tcLmkbtbG','W4BcVmkeArWjW6RdLH3dMmkysCkxrmovWORcKLJdJZRdOIFdV2/dVSoKxCkadCoBW4ZdHmoM','W48mW5OPgW','WQ/dQ8k1','WPCEWOT1WO4z','yZPCWPxcT8ow','WPJcVY0whCk3f8o5W4pcOSoJrW','6l6l5yEt6AAv6Ak25Awz6lAabW','tIVdKSkiEa','xCkJqCofC8oXW5BdHW','stddS8k/Eq','CSogWRXi','ghfIpLH1WP9UCwr0W5ZdLCo8CgZcPt0UW7OpWPhdUSogimo2W7GUW5dcV8ogW4HF','W7yuxNtcJ3DRqmoUWQu','WRnVfqJcRW','W6JcSHm4jW','dMb7jG','igJLPzZOTBhcSSkp5yYb5zM2W57dHa','hhnGh0jX','sxrt','W4vTuh1I','WRyRW70','qCkuCCosya','W6bMnf3dKq','WRuKW7SwW4q','W4JdS8klWO98','WQbbcG/cKW','zSoyeG','rCkTvq','p8kcqmo4W6b/W4CRzGC','6k2V5yUv6zUx5Os35z68oCoCWPGHwEI8IowfG+AJGos8LEAwN+wfJ+wVMSoi5BIf6k+l6ygl6l2U6iw05P6r5yYW6iYQ5y+iqCoczmo+W7mK','W5/dNmkPWRLG','W4a8W4btfdZdUCkiCXW','lSkqW6qAbmkTW5RcM17cRYeOiq','WPGEWOm','FSowbSkNW4jdW5uC','z3PvBqO','stZdGCkjtCkDn2K','AxmmW5/dNNJcMSox','W4LWxCo2WP4/hxvXwSk+','W5NdVgBcKGZcHW','WPBOR6lPHRJMLz/NMA7LVRxOJPNLJiZdKZ0cr8k7gWWPW7SXWR3dGSkSjmotWQBdRfusWP/cUvxdH8kyWOxdTx5YWPGWWR16W7SYx8oCh29UetlcKcLS','rSocW45OWQBdRmkgsW','ve8kW6ldLq','WQldP8oaECod','W47cHSkzuq8','WPaEWOP7','WPGEWOnBWPuo','WONdKsFdOLlcLuu','xCkbwmojsW','W6pcUb0Boq','W5/cNY8k','WQPqaa','o8kfw8o+WRGk','zbj/WPnoB+w2SEwMQEAuVGFcG1i','W4WHtComWOq','W5dcMYiy','W6Pzn8k1qG','WRpdQ8kHrG','WOVcRCkqWRtcSCkiyaRcItdcTrSTWPqPW6lcMSolW5e','WRO6W70DW7Hyz8oNW6nrWRFdRSoddcFcPSkNcSoMuSkeu8o4EKRdMepdTdqYW54zW7C','W5tdRLZcNa','qdj+WRpcSG','nK8+W4OjoG','vWhdGSoGW4uRWOic','exvMiKiSW5e1ExTZW53dGmo/Bx/dVhmNW7G','zguhW77dLq','lSkvW6eBcCkSW5RcQuxcJsmpcG','W73dH8kRWPDt','W7xdKmkkWODN','WQVdSmkMqSkmWQ7cSsm8WPC3iqTkWOaclGpdGSkuWOr+WP7dNHvLW63dPCkpWP0GWO/cVeG6WQFcTWeDdXFcSmoesaddLmoiFSkGj1KqWRVcMICpWO3cM1TbWQRdIN0QWPWywv/cNxb7WPSOW5S','bSkCbmoki8oNWOb3zSoKrhhcG0xdQG','WQKGW7ZcT8oy','WRNcHY0Qba','eYdcKSoKWO1+','WPxcOMFdS8kfW5RcHCkV','W4RdImkgWOje','W7j9f8kwrq','vmoHWPTAuW','ycCzimo2W53dP8ovWOZcHCo6kCoTDW','WQNdPCk4Amks','WPGLW7dcSCoG','WQ7dT8k1','xHaVfSoN','W7JdSCkJWP1yAs/cNa','dHBdPSkCvM47','fGfLWQRcRGZcImoHWPBdPvtdUq','bCoOia','pSoFymkOjSoerSok','rSoIW5bAWQm','WOVcTSkkzcO','tSkNrSoMeSo7W5i','AsyJmCoW','ACkXDJ/cOtalCdVdS1LljeS','ldbZWOtdRCobv8oC','WPuqar9c','W6dcM8kZtqq','W5XxWQ9dW7O','WPldGWxdQvRcKq','W4PcrSkKW70','qZfgWQhcTG','WQ/cQGldHCk/W7fyFSoXnX1wW7yHWORdSmooi8kgW5BcObJdTSkoagqYWPuQEsbldq','WO8uW4pdRSoD','v3ngqSkPt8kIWRrZ','WP5MWPOdbtNdP8krBG','WQxcKWRdISk9','W73dQ0RcMCksW5L+FSoIpW','hZZdVuOABvxdVJO'],...(function(){return['CwLs','WOJcTqyXoG','BmkXCq','AXVdVCoaW70','BCklwYxcQG','amo5qmk3pG','D8k7CIFcPsex','WQVdSmkMqSkmWQ7cSsm8WPC3iqTkWOaclGpdGSkuWOr+WP7dNHvLW63dPCkpWP0GWO/cVeG6WQFcVrbPcYFcSmoWAcldTSo9zSklkJ4kWORcTN4WW7xcJ31KWP/dMfu2W5OFu17cGcy9WOCXW5Pr','zWddLCoFW7GT','W4vXumoMWRS','WORdRHldJ38','BXFdQSk5BCkTg23cMwRdPaldPfa','W4VdRCkbWQlcSmkfyaRcIcVdVW','vSoJWO5PECoAWR3cIa','WOJdJ2nBl8o4WPicWPee','WO07WO5iWO4','W4JcVSkzFa0','dwbHowj+WPfTtgjUWP/dIa','W5tdOeBcMa','WOpdO8ofDq','r8oTW5X0WOe','WRRdIqJdUue','W6ueW5aagW','v8kWESoKvW','W6yoW7Grpa','5A6g5OQN5lQo5yMT5AAN6lsFWOK','DL/dVmolWOpdNNhdShWkCCoZW44EW7tdH34leCov','jSoVr17cP8kalG','qSkJySoUAa','W5FcKLpcTqddHbVcOmouW6rVWOtcMq','W4qGW5yxbvNcUCoxzGbGlL7dP15xA0RcGSkIW4rvWQ0','ExJdQ8odWPO','WQq4WR1sWOK','WOlcQrOTaW','W4VcO8ktqaCy','5y695ycsdG','W6PlnLZdUXy','AJddNCoOW6e','BmkuBX/cVG','ESooWR9et8oWWQBcQM3cVG','dZZdUKa','nmkMEJpcVdOksYVcVayEDuddG8oNWPVcH8kiWP7dJhnyfMBdTh8vC2bPWOdcLK/cPSoCW4JcTmkUxNbwbWvpW5biW5HztNLasg1RWOW6zKntaCopgfnOaH0','FSowbSkNW59uW5yCxrO','vKCHW5tdSW','qmk2v8odBSoS','W6zyANGTW5m','WO/cONNdVq','D0tdUW','W4tdSSkgWQ3cTSkiDrFcJZhdTf4XW7OXW7JcGmkjW5LrjgtdNxlcOSk2a8kfW4PZWQzfBW','W4rYsa','shvqWPhdJCotxSoV','mmoRn3/cSGCqyrRdUW','W51Iw8kuW53cKCknW4ddKG','qH5kWRfR','W7LLySkOW5W','WPFcM0BdLCkq','WPhdRSkBDSkg','WQGcW5/cVmoX','WOpcUx7dGmk4','mNr+owq','vqL+WOlcLa','W68wW4mabW','CCoMWOvhBq','WOSgW6NcSmorwSociKBcR8orWPW','xSk6A8oxAq','FmkYzY3cLW','WPyjW77cVSoV','W7rfpW','W4fcWQ5GW7/cOa','WP0UgW5gWQhcM8o4','6iYB5y6c5lMz5yUgwG','W44gWRBdHCo1','W4H2zCodWRu','x8kWDbNcVq','sSkTvSol','dI/dVgW9yW','W5xcHYigiW','WRasW5NdVSoL','dahdOmk1rh0','WQlcTqBdNCkZW6basCoWor0AW7KH','W5ddRmkFWP9z','W4a7W4u','WPNdIHpdR1G','W4VdSCk/WOi','maFcUmosWQa','EGRdN8oQW7mYWPCFWRRcRxBcU8kjqd/cJmkVjmk5WPK','W7DVBKPz','ACouWQDkEG','v0rqWOddPq','WPpdI8krrSkP','WOSgW6NcSmoexmozovBcOSoHWORcHG','CSoejmkIW5q','cwbGm1XL','yWldS8oZW7GHWQmoWRhcOwFcPW','W7LAkftdVrJdKSkuaKxdTqNdVSowW5hcVrtdR8kzcIpdHepdImo5W7f7tmoozmoXW78L','WPODW7eDWRJdQSoTemo1WO5Lieu','ydxcVvG','yr3dG8o3','s0mNW6VdQaddOmk/WOpdRLZdV8oKxWL2WO3cL1ZcGCkbW61n','W5hdV1VcUqFcTSozWQxdRq','WOmcWQ9qW6pcSCkPk8ozWOemjuCUW5LgxdRcPuC','j8oOF0hcS8otB2jDWOvOWOSPWPpdOKmdWPG1bhj0WOfoW6JcKfVcKSkaW4LRW7evlCocgYlcVNtcUmowBqNcQGldOSkMWOD6WPlcPCoTWP1bamoIEb1anHxcNmoYemo0W5mbA3DBWQ04W6Pp','WRfHfsVcHG','W61TCxDS','omkkl8ormq','WQ5nbc3cQ1Pzya','W5L/t8kBW5O','W63cPCkdvHq','6l2G5yE76AwA6Akd5Asa6lsPsq','rSocW45OWQhdUSkdxmoofSkRdaC','6l6Y5ysw6Ase6Akn5Asg6ls/DG','sLfW','AXj3','WRC0WPfeWQ8','5A6Q5OIU5lUS5yQD5AwS6lwBoG','W5K7W4ewia','WONcT2ddQmkIWPNdMSoLW7jbnSoltmojW7VcKmkUi8kPEmoZWQep','AdxcVe4T','WQ/dH8ozw8oJ','WPOjW6W','BtVdQCoNW6q','zCoLWOz3ta','6iYA5y+75lIY5yQeWQe','pbNdQ2SP','vfTNudWDCW','BLNdOCobWPxcPZhcSxStF8ktW4jDW7S','qvTJwdWkDW','WOdcStK','W67dRCkPWOr/BqJcVq','rCkNxmoju8oG','umkwr8o8sq','lHRdUSk1Dq','hSo3c8kxfCk/W4/dGmkHc8ohW4G','WRJdJ8oWBNq','BJXAWQJcT8klaxxcHriIWPDSFCkzt3uRW7lcPCoUmCkd','zbj/WPnoBW','zXlcSKW8','W4RcIehcPX/dLGhdMmk9WO8','BXFdUq','yCkkBrlcIG','WRelkdLM','WR8RW7Kq','W6rMjmkbvW','W5lcJrued8ow','W61AuSo9WOu','cc/cMmoLWPO','ECovWQnGt8o/','W45Szmo6WPu0','5lMI5lUg5P2/5yIi5zQ+6kYT6zEx5Pw65O+25lMI56Ij77216k2R5Qks5PYa6iw06lMj6k695AE157+I57Ie5OkP5ywS','WPaXW7/dO8ok','W4zVFSo0WOi6jxvSw8kYWQC','W6WgWOG','W7v0EwXb','W750WPPaW6K','W6SBWRZdQSot','CwFdHCovWPm'];}())];}())];}());Iii11l=function(){return i11iI1;};return Iii11l();};if($[II11(0xce,'8HAr')]()){Object[II11(0x222,'&b1g')](lI1l1i)['forEach'](Ilil1i=>{IIii1I['push'](lI1l1i[Ilil1i]);});if(process['env'][II11(0x1c8,'y]mN')]&&process['env'][II11(0x21c,'pp!v')]===II11(0xc7,'U)jr'))console[II11(0x27e,'gG6L')]=()=>{};}else IIii1I=[$[II11(0x1f8,')&Xu')](II11(0x1f7,'P!06')),$[II11(0x28d,'gG6L')]('CookieJD2'),...iliIi1($[II11(0x13e,'ljqC')](II11(0x15e,'ljqC'))||'[]')[II11(0x1b8,'c@T@')](iili1=>iili1[II11(0x1a7,'ZEE5')])]['filter'](II11ii=>!!II11ii);!(async()=>{const l1ilII=II11,Iil1iI={'oLMnc':l1ilII(0xf9,']yNY'),'bnzsJ':'https://bean.m.jd.com/bean/signIndex.action','SlftQ':function(II11il,iIIil1){return II11il<iIIil1;},'VGflO':l1ilII(0x162,'&u$#'),'PNTpF':function(IlllII,I1il1I){return IlllII(I1il1I);},'gDtpf':function(II111,lI1l1I){return II111+lI1l1I;},'Dasok':function(lill11,liI1i1){return lill11+liI1i1;},'WeEgf':l1ilII(0x13f,'f*%x'),'Rhhvb':function(I11i11,I1llII){return I11i11(I1llII);},'mXRUf':l1ilII(0x238,'Dnhh'),'JiwSa':function(Iil1il){return Iil1il();},'CBagq':function(I11i1i,l1l1iI){return I11i1i*l1l1iI;}};if(!IIii1I[0x0]){$['msg']($[l1ilII(0x23d,'Jrhk')],Iil1iI[l1ilII(0xd6,'Q)((')],Iil1iI[l1ilII(0x218,'8HAr')],{'open-url':Iil1iI[l1ilII(0x131,'ljqC')]});return;}for(let I1llI1=0x0;Iil1iI['SlftQ'](I1llI1,IIii1I['length']);I1llI1++){if(Iil1iI[l1ilII(0x1eb,'o9Rg')]!=='NAvJO'){if(IIii1I[I1llI1]){llI11i=IIii1I[I1llI1],$['UserName']=Iil1iI[l1ilII(0x132,'s0g1')](decodeURIComponent,llI11i[l1ilII(0x19a,'KwFc')](/pt_pin=([^; ]+)(?=;?)/)&&llI11i['match'](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[l1ilII(0xcc,'%koX')]=Iil1iI['gDtpf'](I1llI1,0x1),$[l1ilII(0x1d3,'leb@')]=!![],$['nickName']='',i1iIi1='',console[l1ilII(0x151,'i$ve')](l1ilII(0x100,'gG6L')+$[l1ilII(0x251,'o9Rg')]+'】'+($[l1ilII(0xdb,'K5ar')]||$[l1ilII(0x1e3,'(7T3')])+l1ilII(0x298,'leb@'));if(!$[l1ilII(0x22a,'nAcx')]){$[l1ilII(0x12f,'Dnhh')]($[l1ilII(0x1ae,'pp!v')],'【提示】cookie已失效',l1ilII(0x165,'hWqB')+$[l1ilII(0x135,'pp!v')]+'\x20'+($[l1ilII(0x1fb,'8s#E')]||$[l1ilII(0x241,']3Kx')])+l1ilII(0x1cc,'sQ2]'),{'open-url':Iil1iI[l1ilII(0x125,'y]mN')]});$[l1ilII(0x1cb,'&%Cq')]()&&await IliIIi[l1ilII(0x168,'f*%x')]($[l1ilII(0xef,']yNY')]+l1ilII(0x1d9,'j4VM')+$[l1ilII(0x28f,'P!06')],'京东账号'+$[l1ilII(0xfe,'(7T3')]+'\x20'+$[l1ilII(0xeb,'f*%x')]+l1ilII(0x150,'$Ecp'));continue;}$[l1ilII(0x240,'t!gs')]=Iil1iI[l1ilII(0x15d,'OzGx')](Iil1iI[l1ilII(0x248,'o9Rg')],Iil1iI['Rhhvb'](Ii1iil,Iil1iI['mXRUf'])),$['UA']=llI11l['genUA']($['UserName']),await Iil1iI[l1ilII(0x27a,'DBr@')](l1l1il),await $['wait'](parseInt(Iil1iI['Dasok'](Iil1iI[l1ilII(0x24c,'GHm)')](Math[l1ilII(0x11c,'(7T3')](),0x3e8),0x7d0),0xa));}}else iiilli['log'](l1iIIl);}})()[II11(0xd9,'hWqB')](il1il=>{const ii1II1=II11;$[ii1II1(0x27f,'j4VM')]('','❌\x20'+$['name']+ii1II1(0x1b4,'MIQC')+il1il+'!','');})[II11(0x19c,'Dnhh')](()=>{const iliIll=II11;$[iliIll(0x1d1,'ZEE5')]();});async function l1l1il(){const llliIl=II11,Il1i1i={'JHmrq':function(iIIili,Ii1iiI){return iIIili==Ii1iiI;},'ArOXs':function(Ilil1I){return Ilil1I();},'vLBZW':function(iliIiI,II11iI,Il1i1l){return iliIiI(II11iI,Il1i1l);},'fbucH':function(Iil1ii,lill1I){return Iil1ii*lill1I;},'bEmWR':function(Ii1ii1,Ilil11){return Ii1ii1!==Ilil11;},'TNJEB':'hKQmb','FnbrU':function(i1ii1){return i1ii1();},'wKsLm':function(il1ii,llI111,i1iIiI){return il1ii(llI111,i1iIiI);},'Zkctt':function(IlllI1,I1il11){return IlllI1+I1il11;},'aPTTX':function(lI1l11,II11l){return lI1l11*II11l;},'oGHgo':function(II11i,iI1Iii){return II11i<iI1Iii;},'vBrjX':function(liI1ii){return liI1ii();},'pvuOL':function(lIIiIl,iI1Iil){return lIIiIl+iI1Iil;}};$[llliIl(0xec,'P!06')]=![],$[llliIl(0x1ca,'8HAr')]=![],$[llliIl(0x169,'Rmkf')]=0x0,await Il1i1i['ArOXs'](l1l1ii),await $[llliIl(0x1b3,'OzGx')](Il1i1i[llliIl(0x1dc,'sQ2]')](parseInt,Il1i1i[llliIl(0x16a,'&CF!')](Math[llliIl(0x233,']yNY')](),0x3e8)+0x3e8,0xa));if($[llliIl(0x21b,'QlzE')]){if(Il1i1i[llliIl(0x19f,'8s#E')](Il1i1i['TNJEB'],llliIl(0x22f,'ZEE5'))){await Il1i1i[llliIl(0x25c,'AU7!')](Ii1iii),await $['wait'](Il1i1i['wKsLm'](parseInt,Il1i1i[llliIl(0x224,'leb@')](Il1i1i[llliIl(0x291,'Rmkf')](Math['random'](),0x3e8),0x3e8),0xa));for(let il1iI=0x0;Il1i1i['oGHgo'](il1iI,$[llliIl(0x116,'c@T@')]);il1iI++){await Il1i1i[llliIl(0x275,'hWqB')](Il1i1I),await $[llliIl(0x18a,'K5ar')](parseInt(Il1i1i['pvuOL'](Math[llliIl(0x14b,'j$FX')]()*0x3e8,0x3e8),0xa));}}else{lii=IllI1i['parse'](i11I1l);if(lil[llliIl(0x111,'Rmkf')]==0x0)IiIl[llliIl(0x198,'f*%x')]++,IiIi[llliIl(0xe4,'(7T3')]('完成任务,抽奖次数:'+iI1ll1[llliIl(0x25e,'Ij9w')]);else Il1i1i[llliIl(0x1ad,'y]mN')](llliil['code'],0x192)?IlI1Il['log']('完成任务失败,'+(l1il1l?.['errMsg']||'')):liIil['log'](llliIl(0x281,'gG6L')+(IllI1I?.[llliIl(0x166,'y]mN')]||''));}}}function iii1II(_0x5f3547,_0x18f993){const _0x43f637=Iii11l();return iii1II=function(_0x150d51,_0x411bc4){_0x150d51=_0x150d51-0xc7;let _0x403b14=_0x43f637[_0x150d51];if(iii1II['KReBzl']===undefined){var _0x1c32b6=function(_0x48ca9a){const _0x106251='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5bfe04='',_0x32db73='';for(let _0x3b31a4=0x0,_0x24eae6,_0x2708f5,_0x43f787=0x0;_0x2708f5=_0x48ca9a['charAt'](_0x43f787++);~_0x2708f5&&(_0x24eae6=_0x3b31a4%0x4?_0x24eae6*0x40+_0x2708f5:_0x2708f5,_0x3b31a4++%0x4)?_0x5bfe04+=String['fromCharCode'](0xff&_0x24eae6>>(-0x2*_0x3b31a4&0x6)):0x0){_0x2708f5=_0x106251['indexOf'](_0x2708f5);}for(let _0x4fe5bc=0x0,_0x3f7b1d=_0x5bfe04['length'];_0x4fe5bc<_0x3f7b1d;_0x4fe5bc++){_0x32db73+='%'+('00'+_0x5bfe04['charCodeAt'](_0x4fe5bc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32db73);};const _0x4f9c0c=function(_0x571323,_0x27028d){let _0x1a7c91=[],_0x786cee=0x0,_0x5c8d7e,_0x284e3c='';_0x571323=_0x1c32b6(_0x571323);let _0x1b9f32;for(_0x1b9f32=0x0;_0x1b9f32<0x100;_0x1b9f32++){_0x1a7c91[_0x1b9f32]=_0x1b9f32;}for(_0x1b9f32=0x0;_0x1b9f32<0x100;_0x1b9f32++){_0x786cee=(_0x786cee+_0x1a7c91[_0x1b9f32]+_0x27028d['charCodeAt'](_0x1b9f32%_0x27028d['length']))%0x100,_0x5c8d7e=_0x1a7c91[_0x1b9f32],_0x1a7c91[_0x1b9f32]=_0x1a7c91[_0x786cee],_0x1a7c91[_0x786cee]=_0x5c8d7e;}_0x1b9f32=0x0,_0x786cee=0x0;for(let _0x1a6812=0x0;_0x1a6812<_0x571323['length'];_0x1a6812++){_0x1b9f32=(_0x1b9f32+0x1)%0x100,_0x786cee=(_0x786cee+_0x1a7c91[_0x1b9f32])%0x100,_0x5c8d7e=_0x1a7c91[_0x1b9f32],_0x1a7c91[_0x1b9f32]=_0x1a7c91[_0x786cee],_0x1a7c91[_0x786cee]=_0x5c8d7e,_0x284e3c+=String['fromCharCode'](_0x571323['charCodeAt'](_0x1a6812)^_0x1a7c91[(_0x1a7c91[_0x1b9f32]+_0x1a7c91[_0x786cee])%0x100]);}return _0x284e3c;};iii1II['QbIKLb']=_0x4f9c0c,_0x5f3547=arguments,iii1II['KReBzl']=!![];}const _0x507127=_0x43f637[0x0],_0x1da5c6=_0x150d51+_0x507127,_0x369b47=_0x5f3547[_0x1da5c6];return!_0x369b47?(iii1II['wOTylE']===undefined&&(iii1II['wOTylE']=!![]),_0x403b14=iii1II['QbIKLb'](_0x403b14,_0x411bc4),_0x5f3547[_0x1da5c6]=_0x403b14):_0x403b14=_0x369b47,_0x403b14;},iii1II(_0x5f3547,_0x18f993);}function I11i1I(i1iIil){const iliIli=II11,liI1il={'DDllO':function(llIlIi){return llIlIi();},'qzffw':function(llIlIl,II11I){return llIlIl!==II11I;},'KELsk':iliIli(0x234,'(7T3'),'kIxck':iliIli(0x17d,'%koX')};try{if(liI1il[iliIli(0x204,'i$ve')](iliIli(0x230,'icmH'),liI1il[iliIli(0x118,'f*%x')])){if(typeof JSON['parse'](i1iIil)==liI1il[iliIli(0x20c,'Ij9w')])return!![];}else liI1il['DDllO'](IilIi1);}catch(lIIiIi){return console[iliIli(0xd2,'KwFc')](lIIiIi),console['log'](iliIli(0xcf,'Ij9w')),![];}}function iliIi1(liI1iI){const illliI=II11,iI1Il1={'jiDsl':function(i1iIl1,i1lli1){return i1iIl1==i1lli1;},'POriY':function(llIlII,IIlII){return llIlII==IIlII;},'HlouW':'string','iRvaa':function(lIIiII,i1iIlI){return lIIiII===i1iIlI;},'Ibmcn':'JAwFA','UCcfN':'FpHxZ','SYSed':illliI(0x227,'GHm)'),'jLyBJ':illliI(0x1c1,']yNY')};if(iI1Il1['POriY'](typeof liI1iI,iI1Il1[illliI(0x18d,'8HAr')])){if(iI1Il1[illliI(0x176,'hWqB')](illliI(0x124,'leb@'),iI1Il1[illliI(0x17b,'Jrhk')])){if(iI1Il1[illliI(0x128,'B[sX')](typeof ill111[illliI(0x160,'DBr@')](Iliil1),illliI(0x145,')&Xu')))return!![];}else try{return iI1Il1[illliI(0x180,'sQ2]')]!==iI1Il1[illliI(0xf0,'bX80')]?!![]:JSON[illliI(0x11e,'(7T3')](liI1iI);}catch(lIIiI1){if(iI1Il1['SYSed']===iI1Il1[illliI(0xd4,'i$ve')])return console['log'](lIIiI1),$[illliI(0x1b6,'$Ecp')]($['name'],'',iI1Il1[illliI(0x219,'leb@')]),[];else{IiilI1[illliI(0x1db,'B[sX')](IIII1l)['forEach'](Ii1ili=>{IlI11['push'](iIIIIl[Ii1ili]);});if(IlI1I['env'][illliI(0x1c9,'f*%x')]&&II11Ii['env'][illliI(0x254,'U)jr')]===illliI(0x284,'K5ar'))II11Il[illliI(0x299,'y]mN')]=()=>{};}}}}async function l1l1ii(){const ii1III=II11,iI1Ii1={'vXRMA':function(Ii1ill,llIlI1){return Ii1ill!==llIlI1;},'ylfJR':ii1III(0x115,'t!gs'),'KulkU':'RbliD','yJjVi':ii1III(0x257,'8HAr'),'SOCSw':function(iI1IiI,IIlI1){return iI1IiI==IIlI1;},'svRVP':function(i1iIli,i1iIll){return i1iIli!==i1iIll;},'zSVfP':ii1III(0x127,'U)jr'),'AXcin':ii1III(0xde,']yNY'),'GWGHq':ii1III(0x183,'OzGx'),'DIDtw':function(i1lliI,liI1l1){return i1lliI===liI1l1;},'POCtV':function(IllIlI){return IllIlI();},'QFDRB':ii1III(0x1da,'t!gs'),'NdBaw':'superLeagueHome','tXNhR':ii1III(0x1e2,'j4VM'),'iiZRv':ii1III(0x13b,'&u$#'),'knSAW':ii1III(0x1e4,'OzGx'),'QFnnn':ii1III(0xe7,'zleK'),'vovYy':ii1III(0x274,'nAcx')};return new Promise(async IiillI=>{const ll11ll=ii1III,ili11I={'ZoCtv':function(lliiIi){const i11iIl=iii1II;return iI1Ii1[i11iIl(0x268,'zleK')](lliiIi);}},li11l={'appId':iI1Ii1[ll11ll(0x263,'%koX')],'functionId':iI1Ii1[ll11ll(0x277,'&CF!')],'appid':ll11ll(0x134,']3Kx'),'clientVersion':iI1Ii1[ll11ll(0x163,'f*%x')],'client':'ios','body':{'linkId':i1iii,'taskId':'','inviter':'','inJdApp':!![]},'version':iI1Ii1[ll11ll(0x212,'(7T3')],'ua':$['UA'],'t':!![]},lliiIl=await i1iil[ll11ll(0x1fe,'s0g1')](li11l);let li11i={'url':iI1Ii1['knSAW'],'body':lliiIl[ll11ll(0x14e,']yNY')],'headers':{'origin':iI1Ii1['QFnnn'],'Referer':iI1Ii1[ll11ll(0x104,'B[sX')],'User-Agent':$['UA'],'Cookie':llI11i,'content-type':ll11ll(0x1af,'OzGx'),'accept':'application/json,\x20text/plain,\x20*/*'},'timeout':0x14*0x3e8};$[ll11ll(0x1dd,'zleK')](li11i,async(iiIi1I,IllIl1,ll1Ii)=>{const l11iIl=ll11ll,ll1Il={'TlZdA':function(iiIi11,ill1II){return iiIi11+ill1II;}};if(iI1Ii1['vXRMA'](l11iIl(0x179,'MIQC'),iI1Ii1['ylfJR']))try{if(iI1Ii1[l11iIl(0x24a,'OzGx')]!==iI1Ii1[l11iIl(0x21e,'ZEE5')]){if(iiIi1I)console[l11iIl(0x12a,'Dnhh')](''+JSON[l11iIl(0x20a,'$Ecp')](iiIi1I));else{ll1Ii=JSON['parse'](ll1Ii);if(iI1Ii1[l11iIl(0x15c,'hWqB')](ll1Ii[l11iIl(0x270,'(7T3')],0x0))iI1Ii1[l11iIl(0x109,'zleK')](iI1Ii1[l11iIl(0x14c,'&u$#')],iI1Ii1[l11iIl(0x12b,'(7T3')])?($['nowcontinue']=!![],$[l11iIl(0x1f2,'MIQC')]=ll1Ii?.[l11iIl(0x237,'j$FX')]?.['remainTimes'],console['log']('当前抽奖次数:'+$[l11iIl(0xee,'nAcx')])):l11i1i[l11iIl(0x28e,'icmH')](ll1Il['TlZdA']('',lI11I1['stringify'](l1il11)));else iI1Ii1[l11iIl(0x120,'P!06')](ll1Ii['code'],0x192)?iI1Ii1[l11iIl(0x246,'Jrhk')](iI1Ii1[l11iIl(0x184,'OzGx')],iI1Ii1[l11iIl(0x203,'DBr@')])?ili11I['ZoCtv'](lI11Il):console[l11iIl(0xe9,'&b1g')](l11iIl(0x1aa,'8s#E')+(ll1Ii?.[l11iIl(0x1b5,'OzGx')]||'')):console['log'](l11iIl(0x27b,'P!06')+(ll1Ii?.[l11iIl(0x25a,'j$FX')]||''));}}else Iiili[l11iIl(0x174,'ljqC')](IilIli,li1);}catch(llIIil){$[l11iIl(0x253,'i$ve')](llIIil,IllIl1);}finally{iI1Ii1[l11iIl(0x175,'&CF!')](l11iIl(0x1bb,'c@T@'),'nnvgU')?iI1Ii1[l11iIl(0x214,'8s#E')](IiillI):i1lI[l11iIl(0x221,'&%Cq')]();}else Iiii1[l11iIl(0x260,'GHm)')](l11iIl(0x146,'(7T3')+(lIIili?.[l11iIl(0xd7,'o9Rg')]||'')),IiiIil[l11iIl(0xf2,'&b1g')]=![];});});}async function Il1i1I(){const i11iIi=II11,llIIlI={'seqFy':i11iIi(0x102,'(7T3'),'MROYr':function(Ii1I1l,IIlIl){return Ii1I1l*IIlIl;},'MPWTn':function(ili11l,Iiilll){return ili11l===Iiilll;},'WQgHE':i11iIi(0x207,'bX80'),'dkXLn':function(Iiilli,IIlIi){return Iiilli===IIlIi;},'obnyX':function(ili11i,iiIi1l){return ili11i==iiIi1l;},'tWSHI':function(li11I,lliiII){return li11I!==lliiII;},'nhbyP':i11iIi(0x10a,'f*%x'),'FeDUG':'60dc4','uNaws':i11iIi(0x19d,')&Xu'),'MPcNw':'activities_platform','GjosR':i11iIi(0x188,'icmH'),'dBeOQ':i11iIi(0x229,'Q)(('),'goeGW':'https://prodev.m.jd.com/mall/active/8x5pxEuycgqqztQHHdnH6WULxBZ/index.html','CKXYk':i11iIi(0x208,'Ij9w'),'GYCGb':function(iiIi1i,liI1ll){return iiIi1i*liI1ll;}};return new Promise(async ll1II=>{const IIIIll=i11iIi,IllIii={'yhxbm':llIIlI[IIIIll(0x22b,'Rmkf')],'HtHFx':function(liI1li,IllIil){const liiiii=IIIIll;return llIIlI[liiiii(0x142,'OzGx')](liI1li,IllIil);},'kfptT':function(ill1Ii,llIIl1){return ill1Ii&llIIl1;},'uprOh':function(ill1Il,i1lll1){const II1I=IIIIll;return llIIlI[II1I(0x154,'(7T3')](ill1Il,i1lll1);},'WDeJg':llIIlI['WQgHE'],'NoYFN':'MMvUQ','GwTVM':function(Ii1I1I,l1i1Ii){return Ii1I1I+l1i1Ii;},'SXuIm':function(l1iI1,lliiI1){const lI1111=IIIIll;return llIIlI[lI1111(0x210,'icmH')](l1iI1,lliiI1);},'oINuo':function(IiiI1,lilII){const Ilil1=IIIIll;return llIIlI[Ilil1(0x178,'B[sX')](IiiI1,lilII);},'YtIOt':'Xceon','gLFVe':function(IIIiI){return IIIiI();}};if(llIIlI[IIIIll(0x181,'t!gs')](IIIIll(0x1b7,'ljqC'),llIIlI[IIIIll(0x1f0,'sQ2]')]))I1ilIi['log']('抽奖失败,'+(IiiiI?.[IIIIll(0x197,'hWqB')]||''));else{const IllIll={'appId':llIIlI[IIIIll(0x112,'leb@')],'functionId':llIIlI[IIIIll(0x223,'Rd%i')],'appid':llIIlI[IIIIll(0x11f,'j4VM')],'clientVersion':llIIlI[IIIIll(0xda,'ZEE5')],'client':IIIIll(0x211,'Dnhh'),'body':{'linkId':i1iii},'version':IIIIll(0x18f,'leb@'),'ua':$['UA'],'t':!![]},i1lllI=await i1iil['getH5st'](IllIll);let llIIi1={'url':llIIlI[IIIIll(0x1c2,'P!06')],'body':i1lllI[IIIIll(0x12c,'bX80')],'headers':{'origin':IIIIll(0x283,'Jrhk'),'Referer':llIIlI[IIIIll(0x19b,'f*%x')],'User-Agent':$['UA'],'Cookie':llI11i,'content-type':IIIIll(0x23f,'QlzE'),'accept':llIIlI[IIIIll(0x172,'P!06')]},'timeout':llIIlI['GYCGb'](0x14,0x3e8)};$[IIIIll(0x16d,'j$FX')](llIIi1,async(iI1IlI,l1i1Il,ill1I1)=>{const IliII1=IIIIll,l1i1II={'llEpj':IllIii[IliII1(0x261,'leb@')],'GRTeN':function(ili111,Ii1I11){return IllIii['HtHFx'](ili111,Ii1I11);},'LxuRp':function(IllIli,ii1Ii){return IllIli==ii1Ii;},'RjIDy':function(ii1Il,l1iII){const l1iIi1=IliII1;return IllIii[l1iIi1(0x14f,'t!gs')](ii1Il,l1iII);}};if(IllIii[IliII1(0x11b,'&b1g')](IllIii[IliII1(0x190,'ljqC')],IllIii[IliII1(0x28a,'j$FX')]))try{if(IllIii[IliII1(0x23a,'f*%x')](IllIii[IliII1(0x256,'KwFc')],IllIii[IliII1(0x11a,'OzGx')])){if(iI1IlI)console[IliII1(0xfb,'&%Cq')](IllIii[IliII1(0xf3,'QlzE')]('',JSON[IliII1(0x243,'t!gs')](iI1IlI)));else{if(IllIii[IliII1(0x1a3,'DBr@')](IliII1(0x235,'Dnhh'),IliII1(0x1d0,'DBr@'))){ill1I1=JSON[IliII1(0x193,'AU7!')](ill1I1);if(IllIii[IliII1(0x287,'(7T3')](ill1I1['code'],0x0))switch(ill1I1?.['data']?.['prizeType']){case 0x0:console['log'](IliII1(0x16b,'QlzE'));break;case 0x1:console[IliII1(0x1c5,'ZEE5')]('抽中优惠券:'+ill1I1?.[IliII1(0xc8,'c@T@')]?.[IliII1(0x28c,'Q)((')]);break;case 0x2:console[IliII1(0xe6,'$Ecp')](IliII1(0xe8,'&%Cq')+ill1I1?.[IliII1(0x1d6,'B[sX')]?.['prizeConfigName']);break;case null:console['log']('运气不太好,什么都没有抽到...');break;default:console['log'](ill1I1?.[IliII1(0x194,'hWqB')]?.['prizeType']+'-'+ill1I1?.['data']?.[IliII1(0x1ea,'&CF!')]);return;}else ill1I1['code']==0x192?console['log']('抽奖失败,'+(ill1I1?.[IliII1(0xea,'f*%x')]||'')):(console['log'](IliII1(0x141,'i$ve')+(ill1I1?.[IliII1(0x113,'ljqC')]||'')),$[IliII1(0x1c3,'GHm)')]=![]);}else try{return iIIl11[IliII1(0x1a2,'hWqB')](l1l1I1);}catch(lilI1){return I1ilI1[IliII1(0x20f,']3Kx')](lilI1),iillll[IliII1(0x126,'U)jr')](lIIilI[IliII1(0x26f,'K5ar')],'',IllIii[IliII1(0x209,'AU7!')]),[];}}}else return Iilli1['log'](I1l1Il),llIll1[IliII1(0x1d7,'hWqB')](Illl1l['name'],'',l1i1II[IliII1(0x173,'gG6L')]),[];}catch(i1llli){$[IliII1(0x1d2,'ZEE5')](i1llli,l1i1Il);}finally{if(IllIii['SXuIm'](IliII1(0xff,'&CF!'),IllIii[IliII1(0x156,')&Xu')])){const iI1Ili={'gScxj':function(llIIiI,iI1111){return llIIiI|iI1111;},'smGyM':function(IIIl1,ii1ii){const i1I1I=IliII1;return l1i1II[i1I1I(0x1e5,'f*%x')](IIIl1,ii1ii);},'gLqso':function(Iii1,I1I1lI){const llIil=IliII1;return l1i1II[llIil(0x15a,'%koX')](Iii1,I1I1lI);},'UYsWP':function(ii1il,l1iIlI){const llIii=IliII1;return l1i1II[llIii(0x247,'zleK')](ii1il,l1iIlI);}};return i1i1I1[IliII1(0x28b,'gG6L')](/[xy]/g,function(iI111I){const IIiiI1=IliII1;var IIIlI1=iI1Ili[IIiiI1(0xfa,'Rd%i')](iI1Ili[IIiiI1(0x1bc,'P!06')](liIlI['random'](),0xa),0x0),i1lIiI=iI1Ili[IIiiI1(0x105,'s0g1')](iI111I,'x')?IIIlI1:iI1Ili[IIiiI1(0x22e,'Q)((')](iI1Ili[IIiiI1(0x1ec,'icmH')](IIIlI1,0x3),0x8);return lll=i1lIiI[IIiiI1(0x186,'j4VM')](),llli1;});}else IllIii[IliII1(0xdc,'euL&')](ll1II);}else II1Ii['push'](i1ii[I1iIl1]);});}});}async function Ii1iii(){const IIIIi1=II11,ii1l1l={'ormyx':function(l1iIl1,ii1iI){return l1iIl1!==ii1iI;},'aYajT':IIIIi1(0x1ff,'MIQC'),'wxYyN':'hrMtb','WsKUo':function(IIIil,IIIii){return IIIil!==IIIii;},'lhycy':function(iI111i,I1I1l1){return iI111i<I1I1l1;},'HFJwo':IIIIi1(0x143,'%koX'),'BWEAr':'taskType','tLrIq':'taskSourceUrl','JExht':IIIIi1(0x137,'(7T3'),'Ycpop':IIIIi1(0x24e,'o9Rg'),'jajZm':IIIIi1(0x153,'U)jr'),'ehwCA':function(iI111l,i1lIii,III11i,i1lIil){return iI111l(i1lIii,III11i,i1lIil);},'BzEUA':function(III11l,llIl1i){return III11l+llIl1i;},'SAPZP':function(llIl1l,IiiII){return llIl1l*IiiII;},'aQJwW':IIIIi1(0x14d,'KwFc'),'tAmYQ':'FZWwj','qCxoo':function(Iiil,IIIli,ii1i1){return Iiil(IIIli,ii1i1);},'mATjQ':IIIIi1(0x18e,'&b1g'),'PXGHd':IIIIi1(0x1c7,'gG6L'),'XFFpR':IIIIi1(0xd0,'AU7!'),'ehhfS':IIIIi1(0x1fd,'&b1g'),'gbmNM':'activities_platform','ylefS':IIIIi1(0xe0,'QlzE'),'uQXxt':IIIIi1(0x199,'GHm)'),'uocqV':IIIIi1(0x158,'8s#E'),'qVJtu':IIIIi1(0x271,'f*%x'),'RXBBt':IIIIi1(0x1a4,'DBr@'),'ugbwB':IIIIi1(0xe2,'&%Cq')},l1lli1={'appId':ii1l1l['ehhfS'],'functionId':'apTaskList','appid':ii1l1l[IIIIi1(0x1bd,'hWqB')],'clientVersion':ii1l1l[IIIIi1(0x250,'Dnhh')],'client':ii1l1l[IIIIi1(0xe5,'8s#E')],'body':{'linkId':i1iii},'version':ii1l1l[IIIIi1(0x282,'GHm)')],'ua':$['UA'],'t':!![]},IiiIi=await i1iil[IIIIi1(0x140,'OzGx')](l1lli1);let ii1l1i={'url':IIIIi1(0x229,'Q)(('),'body':IiiIi[IIIIi1(0x26b,'OzGx')],'headers':{'origin':ii1l1l[IIIIi1(0x1ef,'P!06')],'Referer':IIIIi1(0x1e9,'zleK'),'User-Agent':$['UA'],'Cookie':llI11i,'content-type':ii1l1l[IIIIi1(0x1f6,'MIQC')],'accept':ii1l1l[IIIIi1(0x12d,'ZEE5')]},'timeout':0x14*0x3e8};return new Promise(Iiii=>{const ii1IIl=IIIIi1,llIl11={'SLHSL':ii1l1l[ii1IIl(0x24d,'pp!v')]};ii1l1l[ii1IIl(0x110,'euL&')]!==ii1l1l[ii1IIl(0x1d5,'B[sX')]?$['post'](ii1l1i,async(IIIll,I1I1il,l1llii)=>{const ii1IIi=ii1IIl;try{if(IIIll)ii1l1l[ii1IIi(0x177,'s0g1')]('rCfRR',ii1l1l[ii1IIi(0x16e,'i$ve')])?$[ii1IIi(0x16c,'Jrhk')](IIIll):lilIl[ii1IIi(0x107,'MIQC')](llIl11[ii1IIi(0x1b2,'B[sX')]);else{if(ii1l1l[ii1IIi(0x21f,'DBr@')](ii1l1l[ii1IIi(0x1ce,'f*%x')],ii1l1l[ii1IIi(0x24f,'s0g1')]))ll1il[ii1IIi(0x253,'i$ve')](IiiIiI,lilii);else{l1llii=JSON[ii1IIi(0x276,'ljqC')](l1llii);if(l1llii?.['code']==0x0){if(ii1l1l[ii1IIi(0x245,'t!gs')](ii1IIi(0x187,'MIQC'),ii1IIi(0x292,')&Xu'))){let l1llil=l1llii?.['data']||[];for(let IIIlIi=0x0;ii1l1l['lhycy'](IIIlIi,l1llil[ii1IIi(0x290,'s0g1')]);IIIlIi++){$[ii1IIi(0x117,'Dnhh')]=l1llil[IIIlIi][ii1l1l[ii1IIi(0x1f1,'pp!v')]],$['apTaskListid']=l1llil[IIIlIi]['id'],$[ii1IIi(0x1cd,'Rd%i')]=l1llil[IIIlIi][ii1l1l[ii1IIi(0x144,'euL&')]],$['taskSourceUrl']=l1llil[IIIlIi][ii1l1l[ii1IIi(0x1b1,'hWqB')]],$[ii1IIi(0x157,'sQ2]')]=l1llil[IIIlIi][ii1l1l[ii1IIi(0xcb,'8HAr')]],$[ii1IIi(0xf8,'&%Cq')]=l1llil[IIIlIi][ii1l1l['Ycpop']],$[ii1IIi(0x220,'OzGx')]=l1llil[IIIlIi][ii1l1l[ii1IIi(0x1f3,'zleK')]];if(!$[ii1IIi(0x14a,'GHm)')]&&$[ii1IIi(0x155,'Q)((')][ii1IIi(0x278,'hWqB')](ii1IIi(0x114,']3Kx'))){if($['taskSourceUrl'])for(let llIl1I=0x0;ii1l1l[ii1IIi(0x17e,']yNY')](llIl1I,0x1);llIl1I++){console['log'](ii1IIi(0x232,'bX80')+$['taskTitle']),await ii1l1l['ehwCA'](il1l1,$[ii1IIi(0x1ac,'s0g1')],$[ii1IIi(0xd1,'8HAr')],$[ii1IIi(0x269,'o9Rg')]),await $['wait'](parseInt(ii1l1l[ii1IIi(0x202,'U)jr')](ii1l1l[ii1IIi(0x24b,'bX80')](Math[ii1IIi(0x1ed,'%koX')](),0x5dc),0x5dc),0xa));}else{if(ii1l1l[ii1IIi(0x10b,'Q)((')](ii1l1l['aQJwW'],ii1l1l[ii1IIi(0x1fc,'Rd%i')]))for(let i1lIl1=0x0;i1lIl1<0x1;i1lIl1++){console[ii1IIi(0xd2,'KwFc')]('去做\x20'+$[ii1IIi(0x20e,'j$FX')]),await ii1l1l[ii1IIi(0xed,'Rmkf')](iIIilI,$[ii1IIi(0x1ee,'Jrhk')],$[ii1IIi(0x136,'t!gs')]);}else IliI1l['log'](ii1IIi(0x27d,')&Xu')+(lliiil?.[ii1IIi(0x1a1,'U)jr')]||''));}}}}else ll1lI['logErr'](l1iii,IIlli);}else console['log']('查询任务失败,'+(l1llii?.['errMsg']||l1llii?.[ii1IIi(0x1f5,'zleK')]||''));}}}catch(IIIlI){$[ii1IIi(0x18c,'QlzE')](IIIlI);}finally{Iiii();}}):IiilIl[ii1IIl(0x1be,'&u$#')]('','❌\x20'+iii1Ii[ii1IIl(0x133,'8s#E')]+ii1IIl(0x148,'K5ar')+iii1Il+'!','');});}async function iIIilI(iIi1i,l1iIll){const I1ll1l=II11,l1iIli={'wiffi':function(iIi1l){return iIi1l();},'rRZPP':I1ll1l(0x19e,'8HAr'),'eElHl':function(i1lIlI,l1lliI){return i1lIlI==l1lliI;},'jWkot':function(I1I1iI,IIIlII){return I1I1iI<IIIlII;},'WkGjs':I1ll1l(0x244,'j4VM'),'nyymH':'DjvPq','Qczqu':I1ll1l(0x10c,'Q)(('),'zmxpz':I1ll1l(0x1e8,'P!06'),'qtOhc':function(iiIiI1){return iiIiI1();},'cXxNm':'ebecc','SdtWs':I1ll1l(0x13d,']yNY'),'mygVo':'activities_platform','iqrPK':I1ll1l(0x1d8,'&u$#'),'WGobP':I1ll1l(0x185,'hWqB'),'JBecf':I1ll1l(0xf1,'Q)(('),'FzPkv':I1ll1l(0x295,'bX80')};return new Promise(async ili1Il=>{const i11iII=I1ll1l,ili1Ii={'UWkYx':function(liIIl){const I1ll1i=iii1II;return l1iIli[I1ll1i(0x279,'t!gs')](liIIl);},'fePYm':i11iII(0x147,'U)jr'),'GOOdT':l1iIli[i11iII(0x189,'MIQC')],'pmBFs':function(IlI1lI,liIIi){return IlI1lI+liIIi;},'XEHpy':function(IilllI,iI1lIi){const lI1Ii1=i11iII;return l1iIli[lI1Ii1(0xf4,'AU7!')](IilllI,iI1lIi);},'jutnB':function(l1lllI,llliIi){const i1I11=i11iII;return l1iIli[i1I11(0x285,'euL&')](l1lllI,llliIi);},'krSih':function(i1lIli,i1lIll){return i1lIli!==i1lIll;},'iIulF':l1iIli[i11iII(0x17a,'s0g1')],'hUYnn':l1iIli[i11iII(0x25b,'B[sX')],'nUQmM':l1iIli['Qczqu'],'UzyWm':i11iII(0x138,'&u$#'),'ZnvRy':function(ll11ii,liIlii){return ll11ii===liIlii;},'GffQY':l1iIli[i11iII(0x101,'8HAr')],'EVYFN':function(llii1l){return l1iIli['qtOhc'](llii1l);}},Iilll1={'appId':l1iIli[i11iII(0x1a5,'GHm)')],'functionId':l1iIli['SdtWs'],'appid':l1iIli[i11iII(0x1a0,'o9Rg')],'clientVersion':l1iIli[i11iII(0x167,'U)jr')],'client':l1iIli[i11iII(0xfd,'icmH')],'body':{'taskType':iIi1i,'taskId':l1iIll,'channel':0x4,'checkVersion':!![],'linkId':i1iii},'version':'4.3','ua':$['UA'],'t':!![]},ll11I=await i1iil['getH5st'](Iilll1);let iIi1I={'url':l1iIli[i11iII(0x267,']3Kx')],'body':ll11I['params'],'headers':{'origin':l1iIli[i11iII(0x1e1,'bX80')],'Referer':i11iII(0x11d,'Q)(('),'User-Agent':$['UA'],'Cookie':llI11i,'content-type':i11iII(0x26d,']yNY'),'accept':i11iII(0x182,'ljqC')},'timeout':0x14*0x3e8};$[i11iII(0x262,'P!06')](iIi1I,async(liIlil,llii1i,ll11il)=>{const I1I1i1=i11iII,iI1lIl={'uRFRk':ili1Ii['fePYm'],'xLleE':ili1Ii['GOOdT']};try{if(liIlil)console['log'](ili1Ii['pmBFs']('',JSON['stringify'](liIlil)));else{ll11il=JSON['parse'](ll11il);if(ili1Ii['XEHpy'](ll11il['code'],0x0)){$[I1I1i1(0xf7,'U)jr')]=ll11il[I1I1i1(0x1e0,'&%Cq')];const iiIiII=$[I1I1i1(0x106,'t!gs')]?.[I1I1i1(0x1a9,'icmH')]||[],Iili=$['apTaskDetail']?.[I1I1i1(0x10e,'nAcx')]?.[I1I1i1(0x236,'pp!v')];for(let iIi11=0x0;ili1Ii['jutnB'](iIi11,Iili);iIi11++){if(ili1Ii[I1I1i1(0x25f,'P!06')]('jWNeZ',ili1Ii['iIulF'])){const Iil1=iiIiII[iIi11];if(Iil1)$[I1I1i1(0x27c,'Rd%i')]=Iil1[I1I1i1(0x23b,'s0g1')],$['taskInsert']=Iil1[I1I1i1(0x239,'&u$#')],await il1l1($[I1I1i1(0x1c6,'&u$#')],$[I1I1i1(0x26c,'(7T3')],$['taskSourceUrl'],$[I1I1i1(0x192,'U)jr')]),await $[I1I1i1(0xfc,']3Kx')](0xbb8);else{if(ili1Ii[I1I1i1(0xd5,'KwFc')](ili1Ii[I1I1i1(0x213,'Dnhh')],ili1Ii['nUQmM']))console['log'](ili1Ii['UzyWm']);else{I1iIil['msg'](lI1Iil['name'],iI1lIl['uRFRk'],iI1lIl[I1I1i1(0x195,'f*%x')],{'open-url':iI1lIl[I1I1i1(0x1ba,']yNY')]});return;}}}else l1llII();}}else ili1Ii[I1I1i1(0x18b,')&Xu')](ll11il[I1I1i1(0x259,'s0g1')],0x192)?console[I1I1i1(0x1bf,'s0g1')]('获取任务,'+(ll11il?.[I1I1i1(0x25d,')&Xu')]||'')):console[I1I1i1(0x1a6,'zleK')](I1I1i1(0x164,'Jrhk')+(ll11il?.['errMsg']||''));}}catch(liIII){ili1Ii[I1I1i1(0x258,'Dnhh')](ili1Ii['GffQY'],I1I1i1(0x17f,'ZEE5'))?$['logErr'](liIII,llii1i):ili1Ii[I1I1i1(0xf6,'c@T@')](ll1li);}finally{ili1Ii['EVYFN'](ili1Il);}});});}async function il1l1(Iillli,ll11l1,ll111,llliII){const i1I1l=II11,iiIiIl={'bzjXi':'CookieJD','OFPce':function(IlI1l1,liIliI){return IlI1l1!==liIliI;},'jQYEX':i1I1l(0x1e7,'P!06'),'pRbzq':function(llii1I,iiIiIi){return llii1I===iiIiIi;},'nQUBg':i1I1l(0x29a,'Dnhh'),'hDZNC':i1I1l(0x26a,'&u$#'),'BvjLc':function(l1lll1,IilI){return l1lll1+IilI;},'PILhi':i1I1l(0x161,'j4VM'),'Gojlu':function(liIlli,lil11){return liIlli==lil11;},'tCjgl':function(Iillll){return Iillll();},'IPrgm':'54ed7','VXczB':i1I1l(0x272,'&%Cq'),'fbtgx':'activities_platform','VdODI':i1I1l(0x23c,'U)jr'),'YOHZL':i1I1l(0x23e,'Q)(('),'nWgjv':i1I1l(0x1fa,'Rmkf'),'BvZNB':i1I1l(0x17c,']3Kx'),'VrvIF':i1I1l(0x216,'zleK'),'qrNhb':i1I1l(0x13c,'&b1g'),'fviLF':i1I1l(0x1df,'c@T@'),'LDzNR':function(lllI1,III11I){return lllI1*III11I;}};return new Promise(async Ilii1=>{const i1I1i=i1I1l,ll11i1={'TExYh':iiIiIl[i1I1i(0x249,'Jrhk')],'iFbqt':function(liIllI,ll11i){return liIllI(ll11i);},'QlYdK':function(iI1lI1,I1I1li){return iiIiIl['OFPce'](iI1lI1,I1I1li);},'MSLEp':iiIiIl['jQYEX'],'ScYby':function(l1i11,IlI1li){const IIiiII=i1I1i;return iiIiIl[IIiiII(0x1b9,'Rmkf')](l1i11,IlI1li);},'ITiGW':iiIiIl['nQUBg'],'TdUZS':function(IlI1ll,ll11l){return IlI1ll!==ll11l;},'gwrMT':iiIiIl['hDZNC'],'lFAbf':function(III111,liIll1){return iiIiIl['BvjLc'](III111,liIll1);},'LCzhr':iiIiIl[i1I1i(0x294,'&b1g')],'RhKyk':function(l1llli,iI1lII){const llIiI=i1I1i;return iiIiIl[llIiI(0x13a,'U)jr')](l1llli,iI1lII);},'jcmNP':function(ll11iI,l1i1I){return ll11iI==l1i1I;},'gBjjw':function(l1llll){const Ilill=i1I1i;return iiIiIl[Ilill(0x1d4,'s0g1')](l1llll);}},ili1I1={'appId':iiIiIl[i1I1i(0x225,'GHm)')],'functionId':iiIiIl[i1I1i(0x103,'euL&')],'appid':iiIiIl[i1I1i(0x15f,'pp!v')],'clientVersion':iiIiIl[i1I1i(0x12e,'Dnhh')],'client':iiIiIl[i1I1i(0x152,'KwFc')],'body':{'taskType':Iillli,'taskId':ll11l1,'channel':0x4,'checkVersion':!![],'linkId':i1iii,'itemId':ll111,'taskInsert':llliII},'version':iiIiIl[i1I1i(0x123,'Dnhh')],'ua':$['UA'],'t':!![]},Iill=await i1iil[i1I1i(0x15b,'&b1g')](ili1I1);let ili1II={'url':iiIiIl[i1I1i(0xe3,'bX80')],'body':Iill[i1I1i(0xdd,'c@T@')],'headers':{'origin':i1I1i(0x22d,'GHm)'),'Referer':iiIiIl[i1I1i(0x170,'j$FX')],'User-Agent':$['UA'],'Cookie':llI11i,'content-type':iiIiIl['qrNhb'],'accept':iiIiIl[i1I1i(0x226,'Rmkf')]},'timeout':iiIiIl['LDzNR'](0x14,0x3e8)};$['post'](ili1II,async(I1I1ll,lil1i,liiiil)=>{const Ilili=i1I1i;if(ll11i1['QlYdK'](ll11i1['MSLEp'],ll11i1[Ilili(0x1ab,'y]mN')]))llIIli['log'](Ilili(0x255,'GHm)')+(lIII1I?.[Ilili(0x1a8,'bX80')]||''));else try{if(ll11i1[Ilili(0x108,'KwFc')](Ilili(0x206,'t!gs'),ll11i1['ITiGW'])){if(I1I1ll)ll11i1['TdUZS'](ll11i1[Ilili(0x1cf,'euL&')],Ilili(0xc9,'sQ2]'))?lI1Iii=[i1li['getdata'](ll11i1['TExYh']),li1II[Ilili(0x130,'U)jr')]('CookieJD2'),...ll11i1[Ilili(0x297,'K5ar')](IliI11,i1ll['getdata']('CookiesJD')||'[]')[Ilili(0x196,'o9Rg')](lil1l=>lil1l[Ilili(0x296,'j4VM')])][Ilili(0x16f,'zleK')](lllIl=>!!lllIl):console[Ilili(0x252,']yNY')](ll11i1[Ilili(0xdf,'KwFc')]('',JSON['stringify'](I1I1ll)));else{if(ll11i1['LCzhr']!==ll11i1['LCzhr'])l1llIl[Ilili(0x129,'sQ2]')](Ilili(0x281,'gG6L')+(ii1I1l?.[Ilili(0x217,'(7T3')]||''));else{liiiil=JSON[Ilili(0x160,'DBr@')](liiiil);if(ll11i1[Ilili(0x10f,'$Ecp')](liiiil['code'],0x0))$[Ilili(0x21a,'y]mN')]++,console[Ilili(0x129,'sQ2]')](Ilili(0x191,'hWqB')+$[Ilili(0x200,'Dnhh')]);else ll11i1[Ilili(0x265,'ljqC')](liiiil[Ilili(0x159,'&u$#')],0x192)?console[Ilili(0x27f,'j4VM')]('完成任务失败,'+(liiiil?.['errMsg']||'')):console['log'](Ilili(0x171,'ZEE5')+(liiiil?.['errMsg']||''));}}}else Iiiil[Ilili(0x119,'bX80')](Ilili(0x289,'i$ve')+(Iiiii?.[Ilili(0xcd,'pp!v')]||''));}catch(I1lIIi){$[Ilili(0x231,'DBr@')](I1lIIi,lil1i);}finally{ll11i1[Ilili(0x1f4,'o9Rg')](Ilii1);}});});}function Ii1iil(l1i1i=II11(0x264,'(7T3')){const I1ll1I=II11,I1iI1i={'CEuZH':function(l1i1l,I1iI1l){return l1i1l!==I1iI1l;},'NqZFg':I1ll1I(0xd3,'ljqC'),'usvgF':function(illlil,Iliil){return illlil|Iliil;},'ZyZlz':function(I1lIIl,l1ilI1){return I1lIIl*l1ilI1;},'yBWZp':function(l1l1Il,lil1I){return l1l1Il==lil1I;}};return l1i1i[I1ll1I(0x215,'Dnhh')](/[xy]/g,function(l1l1Ii){const Iii1I1=I1ll1I;if(I1iI1i[Iii1I1(0x280,'ZEE5')]('xbKFp',I1iI1i['NqZFg'])){var IIIIlI=I1iI1i['usvgF'](I1iI1i[Iii1I1(0x122,'Dnhh')](Math[Iii1I1(0x205,'leb@')](),0xa),0x0),l1i11l=I1iI1i[Iii1I1(0x288,'pp!v')](l1l1Ii,'x')?IIIIlI:I1iI1i[Iii1I1(0x266,'pp!v')](IIIIlI&0x3,0x8);return jdaid=l1i11l['toString'](),jdaid;}else IllI11['log'](Iii1I1(0x228,'&u$#')+(l1llIi?.[Iii1I1(0x1a1,'U)jr')]||''));});}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) }
|