2023-12-26 14:35:55 +08:00
|
|
|
|
var iil='jsjiami.com.v7';function Iii11l(){const ilI11l=(function(){return[...[iil,'enXjDhstjBliBSEaAmDMix.gUcXorImV.kvd7PHG==','5P2w6kYW5lIB5yQD5Asl6lEZWPK','ySojW4i9','zSkzdSoyza','bmoYcWlcPW','g1tcOrpdUG','WR/dJaBcOsS','WQFdSfldPa','WPzRyhr2','WRrxE8oSAaW','WOHVwN9tWPe','brecW5pdO8kf','W6/dJCkGW4HPWPFLT5JLP7VMLizNWPZdMa','WRLqWQHCW79rW6e','WQLnFCoHWP0','WPnRuM1H','5A2d5OQ95lQp5yMZ5Aw/6lwzoa','mbZdQSoOW70','lSkrWPFdPCkbW4q','CSo6W5FcTSkF','W7FcKCoBFmk3W4pdHGmNWOm','W6HMWQHQW6y','mg7cRsZdSa','5OUZ5AAJ5AAR6lsmWOO','gN3cNs7dTq','6lYF5yEf6Aw86AcX5AEa6lAmWPm','WP3cO3hcGq','W4pcS8kst18','prVdKmoQW7u','WRRdHXhcIZK','WQRdKhZdOa','W5jjWR3dOt8NmhxdUuS2jq','p8o6jIJcJW','jLdcGYBdMq','W4TjWRNdSa','WO96WP1aWPi','W6xcOaldKvvBs8ohBa','WOBdIKxdKce','W5DjWRRdSrq/','WPpcTHTOWRe','WQZdGHdcTW','x38NACo7','fCoNgWtcQW','W55ViLJdLG','kN9ThCke','5OQl5AAh5Aww6lAloq','kmk7WPRdGSkG','WRVdMNZdG1m','W5i/hZJdLu8','EKOfWPqT','amoCcXtcIsFcJqfcs8kbWRFcQSoxW6rpW6fWW6DAvghcOmoVWPFcIa','gmkUBq','44gg5O+j56EV44gA6k2i5yA56i2d5y235lQ65lUs6lwI5y2e5lIBiY4XqaKjW6dNM5RMJQFKVAhNLAiEqIZcQCoQm+EzQUs5Oos4T+EUR+wjK+IoS+wmHa','WPxcSWeGW40','W5HYWPnPW6hcRc7cNCkIvq','W4zvhW','lCofWQXlWPe','dbtdSCoPW6i','xKO5WPuOWQKLCSoK','WQDkWR3dRhPO','WOrLWR/dJ1y','W64HhYW','bSkGzmoqCmky','WONcVmkGjCoq','wmkWcSol','guLteSk8','hLyFcmoQW6O','a8kVWPpdPCkpWPq','oCkuW7nD','dWubqCo/W7ZcHLC','uu8frCo8','ranmvCk8WQGfWRDUgZzQrW','W4S/nqJdNq','ymowW5y0W7mau0T4W6dcJCo/zu1MW6BdTa/cT8k1W4lcHqjTi8oLW6iWW77cIGnqfW','WO/cRcC','W51Ek2z3','zCkCWRjlWPlcHW5FhCo7W7XgWRLX','BN8crmoU','WRJcUNpcQCod','eSkBwatdIG','ixJcVd/dU8keWOBdGglcPYVdNq','gfOwaCo8W7PvWO0','faX+W45+W7O0qSoQW7/dKSk6','D8oZFc1J','WQ5BBG','WPlcNCk8g8oWyvJdMCogpaxcSZdcLs3cJNBcImotW55uWQTriGhcSHqlfCkqiCo2W40','owuDkCom','rCoYp8kck8oaBSkOeSkzfSoyWPi','W77cHheqW4K','W75JhmopcSky','hfeghSoOW7Lv','W7hdMHK5zW','W4nWybC','WQzDwColWRy','a8kGy8oa','qaqAlSoDW61OWQG','eSkXymo7vG','W7emiYldOa','WR1FWQFdUgy/g3q7W5/cHNfJvmk1W7hdVbGKqq','kSkZkW','W4DFc1rcW7/cGq','W6tcVWG','5OUe5AsM5Q6B5PEt5lQv6lEz','gmkdW6XFW4u','WQT6x8oysG','BCoPAIf1agddGZi','WQaZwmkyr8oC','WQPNWQTCWRm','cmo8cZtcPW','WO3dQhVdTHO','aJ8KW4ddGW','W41ZzCoPxhTziSkxWQRcHCoo','jSkbW65zW5xcMSoSrCouWOxdHgGYySoCFCkAWRdcLmow','WOOHi8kOaq','f8o6W5WSBmoBfdOyWQ0','W4H4WPLO','FCoOqJ1F','WRPAvSkQ','BSo8AJT+','WOlcR8kzmtBcRCoCW4pcLNr+Ebm','W5f/vtu2','haXLW45OW74','W7hdPCoPtKm','WR1urSkU','WRxdHea','WQy/uCkruComWQmV','aM/cJa','gH/dNSog','ESkKp8owtq','efxcKJZdUG','ESkEW7GqAa','WRZdJutdRG4','W5hdMSoKu3C','bmkGEmohEG','W7T2bh/dJ3FcKc7dU8oEWOj1W6JcUK7dMW','d0rZfq','W4ddQmoEBMZdV8khW6VcVq','oSkCWPBdRSkC','W4eQhchdKfGpW6lcNutcOavQa8oZmuRcJ8omWOGXxmkHWOzKxmoXBvVdVmkbW65V','6l2X5ywF5Rwd5yQp5Ass6lA9W4G','W7RcQmkTrKm','rCoTW643W5W','WPNcPaevW6RdTSkTW69N','W6zdyqOS','W4njnKHhW70','W6n7eNW','wmoCW5moW7S','WRvCCSoIrrNdQmov','W6njWOxdUWW','W4XilwPm','cHJdUmoAW68','W5/dS8ol','W60ke8oZW7Sxv8o6bGy','amoJfZtcHa','WQhdJbNcTW','fgFcIGi+W6/cQ8kezG','zCoeW4/cHmkvBCo8y8kS','uxOUl8o+W6ee','W7KaidtdIa','5lUL5yI8qW','dHSlW4pdKa','WPNcNSkMhSo4B1dcG8ompaBcSJ7cJW','WQDoWQpdPhrMuq','WPv6sSkIhq','WPlcO3i','WOTgWRLMWOrdW7JdQG','sfOOWRem','W7HRggC','W5FcMg0CW6W','WOXeqmkgdW','v8olW7uWW4W','5lMi5lIw5PY55yQ55zMp6k2g6zw25PwQ5O6K5lQ/56Uw772c6k6v5Qky5PYO6iAs6lUw6k+T5AwZ57+f57UB5OoV5ywF','WRzgDG'],...(function(){return[...['hreWW6BdOCksn0RcMmo8la','WPrdyNvb','W6RdUWaqv3nqoxZdTSkHqmoUnxPE','WPHAFSoIyH3dTSo6cW','vSoxDtf/','W77cVL3dPu5zuSoRBmkuWOiiW4als35eh3KW','CNZcTu3dNW','rSoxW6GoW7i','WQRdSfr5nW','WOxdJmkfhCke','W5jNCWa7cCoryG3dKuH6d8k9vCk1W7BdMmkR','WQm+vq','hmkWxmo9Ca','W5i7aINdLLy','W4KktKuu','rSkPe8omvG','DSoDW7BcJCkR','WOrVx8kgcW','ktxdT8oQW74','WOXixmonWR4','e8kCWRddISkl','W4hdS8ozAwy','vSkJW6enxG','W5mUhItdL1WhW7dcJq','WP1REmkoW54','fxBcLG8/W6u','ihu7j8oL','eaBdMmo5W48','6l2+5ywn6Awc6AoG5Awk6lw3BG','W4WOBG7cVW','ruO/WOW1W7rJo8oTW7/dI8ofzavHjXOKEvuohCo7WOJcNmkbWQBcUCo6rHGlWOSOdrNcGdmPWRNcHr7dS0yhD3xdGWRcV8oWgvFdGKmaaMxdJ8oDWRpdOCkPWPhcPePWW5z6qsRdHa','W5qDxthcGYtdICoFaG','W6mvbdJdJW','WRjurq','WR8WqmkjxCo3WRi9WRqvW5JcK8kgWQlcRW','WRhdOuVdVeLzr8o2ASkvW4nmW4Pbwx17b2WRs8k3WPP/W67dLfJcQvvjWR3cNKq','WQXABCkOga','mmkFWP4','WQPCBmkGi8ko','W
|
|
|
|
|
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.d
|