elm/ele_2048.js

14 lines
85 KiB
JavaScript
Raw Normal View History

2024-03-23 11:52:53 +08:00
/**
* @平行绳 飞机频道https://t.me/tigerorrose
* 变量elmck: 必填账号cookie短信登录面板项目地址https://github.com/funaihui/eleWeb
* 卡密地址http://card.94wan.fun:90
* cron: 11 8 * * *
* 2023.7.15 首次发布需要安装 moment和 md5 依赖
*/
const $ = new Env('饿了么2048');
const _0xd0b8=['w6TDncOaNCDDpw==','wrbCpwM3IQ==','w5vDjsK2JcOs','w7LDrkUhQg==','w60+w6V9w4Q=','wqnCnS0kEw==','wrTDvsKrwrMxwoMcw4Fbw7LCpcK4wo93w6XDocOywpMrwpV/G8KPPw==','c8OjOlDDkg==','wozDvAZUw6s=','wq3Dv0HCjsKj','H8KlQsO+w4w=','Tz7CrMOwNcOvJ8OLw44=','w5/DtgPDojA=','wrnCn8OwRRI=','FnBQZAg=','wq/DsV7ClcK7w5LDrBDCjg==','w5PDhk4AXg==','w7JSN2nDlw==','Ano+woXDssKUPhzDiMKewpbDj8OJYEfCoMORFFdtwpfCslnCkxjDimY6EMK3wqF6','wqjCq8Kfw6EC','aMKYTXvDgw==','w5zDmU0Beg==','worCjioLMw==','wrnDvUXCiA==','wo9Mw6A5w57DnsKKYMOGwpo3w5ZpQFrCjX3DtsOt','w557w6EmGQ==','w6HCtMK7wqvCng==','wqgNZEzDvg==','w6HDoSM=','w55cPA==','LAHCgMOIGMKT','w61DIGnDpQ==','w4dRI3LDow==','IMK7f8OBw5k=','w53DsMO5Ojc=','w5XCmMOJ','woU5wpzDtQo=','KlXDnU9F','w7dBJwjCvzN/','wonCslQXwrY=','ZsKEw7DDgjYhwoXDmWfDhw/Ch8OKw5TClgQCw5XCgm9FwqRsSsKPw5YpBwnCnsOow7k3wpnCtTvCvMOVw4vClMKewo4XCUd+TcONwoUiw4vDpcOre057RU9WGzFTwqo7wrfDicOxIsO2d8OdUMOBMMKmSnp+BFPCsFQdAnfDs03CtHXCph9fAXwse1DDlMKz','wrjDslcJwp0=','wojDncKSKMO3','w7vCq2rCpsK6','w7vDllBmFw==','Yi3Cq8Kywps=','DsKbw4bDpDc=','WMObGG3Drg==','wqTCsEE6wpY=','woPCg8K+w6fCjA==','LFpgw4DCgg==','wpDCmsOwXBI=','wrrCuBUqIQ==','wqXDs1s=','wo3Du8KfJ8OK','FMKnw7g=','OsKPw4nDvA4=','w5TDn3wkRg==','F3RJw5XCnWHDucOwbHPCt8KgIjk=','wq7CqirCpcOL','wpDCn8Kew6AU','TsKlUkPDvw==','LD/Din/CqCfClQ==','5b6a5YuR5Lms5ZqO5bu3772g','w7nDpyfDpzY=','c8KKwqvCrMKQ','w4jCs8KocsOCS8Onw4kdw5A=','w53DgsO3MSQ=','wo4OfnHDhA==','wqtWwqNzFw==','w7F5AWrCmQ==','UzvDjj3Dkw==','wo3DjMKdEcOR','WcKWdUzDpg==','SDA3w4FX','wr3DtVzCkMKs','wqsaWGzDkA==','woLCgkEvwrE=','SMKBw5XDhSA=','UTfDjTrDtzvCoWzCmcObw6oPd0slScKvQsKMbyc=','UyfDiic=','w6FKN2jCoQ==','U8KUwrLCp8KGIUY=','woXCmzwQLQ==','wpXCsMKKw5Ad','w4LDq1whQQ==','wrTCmD86PA==','R8KTbUHDncOhwrzCgzs8c8KYw70P','wo7DqE/CrMKs','MXdawpjCnQ==','wqvCgA8/LGjDtsKZHsKLwpkAF8O2Tw==','w7VWOQnCtTRyw41u','w57Dn10aTQ==','wqTCuMK0asOd','wq7CuT87MA==','CsK/ZMORw7E=','wpnDjFoywro=','R8Klw4/DqDA=','wqrCmQwRMA==','w7PDncKZHMOE','wp0JdnLDsA==','V8KbTH3DpA==','wo7DmsK0N8Om','w4TCkWHCiw==','w4dcPg==','woMrwqzDvio=','wrvCujIfAQ==','A3TDmElH','w4vDpSrDnzY=','wrzCk8KywqVz','w4XDjcOANQA=','w6dqfcOywoo=','wrPCv8KKw5Y8','w47Cr8KswpDClg==','w7liGmvCmg==','wqsEYsKswoA=','asO4OU0=','wqzDpFjClA==','w4nCicKZwq3CtzfDhsKJCcKcw60=','w6/CtMKqwp3Cug==','wpB+wqp/Cg==','wpzCgcK0wpxd','wo4iWHXDuQ==','Ti05','wpDChsKZw5zClQ==','wpjCr8KSw6vCqFY=','RMKewrTCvQ==','Sz3CpcKowogRM3jCvkPCrcOuYw==','wp84wpXDqwA=','fzbCtMKEwo8=','EsKSTcOXw4oZ','EsK6w7bDohA=','wovCtcKTwohhwqoawoUawrfCmcKTw45Nwqs=','wosYQcOEQg==','f8KBc8KYOQ==','QSMyw6Y=','w4rCsG3CicKc','H21Uwr3Cig==','wpMRwrhXwrg=','wo3DpAJdw5o=','wrU2TQ==','w5RoSMODwo0=','w6ZLOA7CrjJ+w55/w794','VsKKW2TDqQ==','w7bDiF0oWw==','w5rDjlsLWw==','w77DmSHDqTw=','woTChMKBQ8O9','wqXCpMK6wqxe','w63DicONIjs=','w4rCqlnCjsKn','f8K0wqLCrsKW','Jn52w5LCjw==','f8KewrdNwoo=','wrrClSbCqMOU','AnVWdSw=','wrsCwq1Jwrg=','XsKXfMKhHw==','WxQLw6x2','ciQIw4ZN','w75Ow7QzFg==','wpsowrrDpgY=','QcKAVMKc','woMvw6wEw6Q=','PTXDkmnCribChcKTLgvCjg==','wqjCgnUFwos=','wpfClxQ8cMKlwoHClcOK','w7t8CmQ=','SsKhwoRvwpw=','w45Hw4ouDSlK','w74GNRHCtTVvw7x7w6BDw6pHUXfCgCrCpMKGw5nCow0cOyBvw57CqyE1I8KGTcKtw7LDnTzDi8Oqw7s8wo/Ch8OBw47Dt8KTCDYbfSVowrLCk8OtBsOnw6wbCUUEw68FwoIjw65xb8OvdcOjSsKJwpvCu8OBCsOTN8Osw4t8wo0aw6EINmM=','wpbDsUvCqMKg','w6V+XsO9wpI=','w7zCh37CnMK7','wp4PemzDlQ==','wozCth3Ci8OB','wq89QcOLYQ==','w4zCnGvCkMK5aRZuwqEnERZS','MVZCw7DCkA==','w40iw5xjw58=','wrM7wphAwpQ=','wr/DnU7Cs8Ky','asKow47Dpxc=','wr/ChwggPTrCq8KOGMKRwo4=','wpnCosKRwplkwq10woYfwrw=','w7DChsK5wrXCmg==','w719a8OZwrY=','wpAXWMOuYg==','wr40wrVowp8=','w7bDtsKhPsOz','MzTDlkzCng==','WMK9S33Dsg==','ewTCpMOuFw==','wqTCm8KAVsOiaMOHw7hGwoTDu8Ow','w7/DosKlJcOE','wrDDl2kOwrw=','w4d5B1HCqA==','wqXCusOYaxvDrA==','wqwPwpR3wq4=','woE8YMO7fA==','w4peIGzChMOLw5/Dix4ewoTDjQ1Aw6xx','w7HDs8OxMj0=','X8KsTcK+AQ==','On57wqDCvQ==','w6XDjsO6NwI=','YMKhwoB5wqp/OQ==','HnlTw7jCi23DiMOdYm/CocKxCSfCqn54wrzCpm1mC8KlTmfCpMOvw7/DicOSwq9kSMKwc8Kkw5FCw4F9wqULwpl3w4lRIsKIwqdUCjB1w60ow5ImwrnCsBzCjMKtISFR','wr/DocKUFMOt','fsK6VlbDsw==','Q8KdeQ==','w4nDmE1i','wrsDQ1fDkQ==','wpIoecO9Xw==','wrjDsFo2wpE=','w5FGfUPCo8KEw4TDl0wAw5fDkkkKwq96FcKxQMKkI
// 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.d