2024-06-29 17:05:17 +08:00
|
|
|
|
const _0x361041=_0x16b4;(function(_0x3ae6f5,_0x1dc321){const _0x21d68a=_0x16b4,_0x5c27d4=_0x3ae6f5();while(!![]){try{const _0x1743dc=-parseInt(_0x21d68a(0x29f,'soDF'))/0x1*(parseInt(_0x21d68a(0x1a5,'SnR['))/0x2)+parseInt(_0x21d68a(0x2a3,'eNv^'))/0x3*(parseInt(_0x21d68a(0x276,'KUR5'))/0x4)+parseInt(_0x21d68a(0x319,'*rNH'))/0x5+parseInt(_0x21d68a(0x213,'eNv^'))/0x6*(parseInt(_0x21d68a(0x17b,'pSB4'))/0x7)+-parseInt(_0x21d68a(0x28b,'KUR5'))/0x8*(parseInt(_0x21d68a(0x31d,'fFS@'))/0x9)+parseInt(_0x21d68a(0x2b3,'TpBs'))/0xa+parseInt(_0x21d68a(0x20f,'!lwl'))/0xb;if(_0x1743dc===_0x1dc321)break;else _0x5c27d4['push'](_0x5c27d4['shift']());}catch(_0x19f55c){_0x5c27d4['push'](_0x5c27d4['shift']());}}}(_0xdcbc,0xc7512));const jdCookie=require(_0x361041(0x2d5,'PH]Z')),notify=require('./utils/Rebels_sendJDNotify'),common=require('./utils/Rebels_jdCommon'),{H5st}=require(_0x361041(0x1d7,'!lwl'));function _0xdcbc(){const _0x3e28e6=['sSklkJhdS8ov','g8oNBmkvW73cRNW','WRNcISkRua','Db4hiwapbCozW5ZcH8kyWQxcRcFdPSkQWQGpea','fMyD','W4fsW7ytdmokka','W6ZdHxu','W6T/WRZcV3pdLSo4FmkDxaVdSSkhW4tdRmk+xSkuvqSc','rmkhpHxdQmozqW','gJyIW4lcKbPtAa','vCkTsM4','qSkLwwhdMCknW4O6W5e','WPGUW5/dOCkzFSkMW4O6WQJdMfjLWPeNWPJcN2q','WRadjq','lSkXWONdM8o7','fSogW7TMFq','vCoFW7BdT0KEnhG','WR/cRSkB','W6facNHwW68eW4RdVZVcGG','6Aod5yYc5AwJ5yMw5AAy6lAC77+Z','5Aw377+d5y6Z5OIO5y+0','WRxcVLtcMIddPmkb','hWz2','edmE','5zc35y2Q5ywh5Q+65y2N5lU+','n0dcRqJdJmoE','faXLaCkNymo5g8k3mgbuWQNcTSk+m2HDWR0','zSk2DCoYdSopWQJcJWddGmkDWOLNaSoLit8hAmkU','W5pcPuxcIW','57+D5yka566V','WO7dKcvO','WRaqsqOxWQKMW5tdUHJcRmke','5AA06ls/77+d','WOO9W4pdT8kc','uCkplsldK8ous3K','WRpcKZPyWR/cIvXuFG','W6tdImoFWOHhWPpdTmkwjxNdPxBdQIhdPCoy','W7udW65JzdRdHCkaqq','WRRcJxRdMI4pW4u','WQvfbSo1WO7dSSk2W7e9WQCx','dh3cSmopW6mtBW','572j5ycQ6lE35B+N','WRGnnKW','gJL5iSkOCCkTxSoVqW','cgyuWOJcTJWQsW0','hgOhWQ7dGsa/','kfdcOaZdNCoflmk1WQhcNYRcVWvWW7RcKaK','W60HW4xcV8kNWQC','WPJdLcj8WQRcQgpcOq3dIJNcJSkn','W6KWW5/cQmkGW7uKWO/dISoXkavFEaxcQmkJWOpcGKqyphr5WPXmrX11mmk4DSkZWPq','qCorW7VdPG','WQ7cMSkSFCoyW55jymkujY8','WRSjnMJdLmkxWPtdQmomWRJdTG','W7xdI2TzWP3cLxvEsW','W49/fhZcLmkmx8oTW6tcI8ou','572m5yoj56YD','W7vOWRdcOutdT8oNCSkCBYC','W68HW47cVmkbWQPMW4/dNCoKaKrDpqBcQCoeWO7cIuXp','W6G7xSop','ymkWDCottCovWQG','dwJdKmo9WOdcTG','W5ZdNmkmW45+tHtdMSodWQDYW6nKlmk2eSkkWRxdT8k+W7y','W6uLW5/cUq','WQ/cLSk2uCozW4rYE8k0mtS','CrWhkq','54IM5Ok85P6h55Yd77Yv','4P+7W6tMNjVOGjFMR5VNO7lLPyRNKzbk','zrWxg2iha8oe','aSopW6v8ASoZWPq','WRVdGSk0WQ/cH8o3W7JcUW','aw/cImob','DvzwW7m','m2/cK8k/WR0KnSkBh2ddQ8oOW4D6fmkGb8ksotvIjIldRG','W6enW6nY','W6ddNmojWRv7WPpdTSks','W6lINRXs','rSoFW6VdOG','WRqynL3dLCoFW5tcTCoGWRVdUmkyWOfaDxJcHW/cJaZdImovzhb4uCkmWOjJWQhdJ29snG','57Y05ykU56+R','umoRWRNcVSoxWOq','WRVdLSk1WQRcG8o/W7VcV2inz8kHWObaW6C','W6/dGmoPWQ7cHCkyWRD9jCkVcCoUD8kcCmopfuSBnConpSogWOS','WRBcPeC','qSkpmdC','W5RcOmk/W7rx','5Bkt5lIK57+55ycG6zsH5QsN','W7tdNmozWOC','nSk9uSkjW4ZdNCk2WP4kdq','zqGaia','l8kNWOJdRmoWvG','WRbfaSovWP3dTa','t8oJW6bmeLeJDG','WO9BxW','h8oZzSkc','A8kWB8o8dmoo','p3RcK8kU','5Pgy5lIO5Pca5AwN6lEh776+','mxtcJSkHWPP3Dmordq','WR3cM2VdLcmj','6AoJ5y+yWQC','56MY54+95AEw6ls2776n','vCoQWQ3cKSol','5Rwt5yI65ywQ5yYvWQldVu7dVviN5OUA55QVW63MMz/LPARLT6pLHyiJ54Y65lMK54Y6','tcBOGkdNJkFdNW','W4v/e0RcH8kzvq','57+K5ycL562R','W7FdMmozWQ9HWP7dRCkiowJdR3VdUY3dVCoj','WRVcNhJdNYelW4K5DG','WQxdQ2VcJhXlW7dcT8kvw8khWO8UWQxdNW','WRZdT2hcMMXSW7RcQG','W6xdJ3zHWQJcIh1iteieW7NcP8oGW7XcC8k4WOa','C8kGC8o1mmohWQZcHIBdTmkEWP1XcmoV','aSopW6D8y8o0','WQtcOmksW47dG1TuW5ZcPs7cQbq+DaVdSCo/W63dMtGKWPVcNXtcVJhcHa','5AE656Aj77+R','5Awj5yIq57685ygB','rw1zW43dJmkRW6v7v8o2W4mYW6WSoSohW4S5W4fEW4HJmNZcUCo0WPKfW5pcSmoiAJq','sSoSWQ3cTCoaWPqxqmo1eW','sCkFWQu9p8k1W5pdJb3cINFcJrq','6lY05ysQ6AsN6AoT5AEb6lsS77+D','gwBdL8oVWR3cUmk5WPG','nudcPGVdQSotmSkkWRlcIaRcTqrVW7lcKIuOWQ16Da','W60RW4W','CLHgW7C','WOtdLdrTWPtcUv7cOqVdPHtcH8kneCoWA8opW7RdM8kcrq','W6j/WQ3cNLpdGCo6yCkMsI8','vmoKWRO','kg/cLCkMWQb5CmosbW','W4dcHmkjDmoJWPi','oCkQFd7dPYddGCkMamoUvW','edCLW4S','WO9rvM7cOSkU','6lA25y2k5Pwn5PAU','eSodW65kymoKWOu','yHtdTrZdKSoycSkgWR4','W5TQdfdcKG','cMBdISo6','D15oW6BdRCo7','eCohW7T8yCo0','ggaxWOm','Eriu','n0RcPa'
|
|
|
|
|
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"])
|