faker3/jd_mybbphdyh_give.js

13 lines
132 KiB
JavaScript
Raw Normal View History

2024-07-06 12:23:46 +08:00
/*
2024-08-18 17:20:14 +08:00
轻松育儿集卡礼1赠送卡片
2024-07-06 12:23:46 +08:00
cron:1 1 1 1 *
*/
2024-10-10 13:24:08 +08:00
const $ = new Env('10.5-11.30 轻松育儿集卡礼1赠送卡片')
function wltbFj(){}var zpnEy9G=Object['defineProperty'],_Fh8Vl,JbF_Yb,ekfnqpa,hJf0Ic,q0yOjJ7,RidrEaO,e5wTRQO,BXb9Rf,__w2Abi,_bViSB,CK_prmL,sbCOpmZ,Z8cZUBc,BeR7JX,vQiqnF,oWEWt6b,QEc5O4,sT1Hgw,AVy3SN,kPtJwX,kzNdRbR,VpU3oYl;function Dxj991s(wltbFj){return _Fh8Vl[wltbFj<-0x49?wltbFj-0x1b:wltbFj>-0x49?wltbFj<-0x49?wltbFj-0xc:wltbFj>0xfc?wltbFj+0x2d:wltbFj+0x48:wltbFj+0x2e]}_Fh8Vl=f95bM3w();function kYFGJQ8(wltbFj,zpnEy9G){return JbF_Yb.call(null,wltbFj,'length',{value:zpnEy9G,configurable:!0x0})}wltbFj(JbF_Yb=Object.defineProperty,ekfnqpa=kYFGJQ8(moMJTkx((...zpnEy9G)=>{var JbF_Yb=moMJTkx(zpnEy9G=>{return _Fh8Vl[zpnEy9G<0x141?zpnEy9G>-0x4?zpnEy9G+0x3:zpnEy9G-0x36:zpnEy9G+0x27]},0x1);wltbFj(zpnEy9G[Dxj991s(0x22)]=JbF_Yb(-0x3),zpnEy9G.Qg0PM1t=0x2b);if(zpnEy9G.Qg0PM1t>0x71){return zpnEy9G[-0x2a]}else{var ekfnqpa=moMJTkx(zpnEy9G=>{return _Fh8Vl[zpnEy9G>0x148?zpnEy9G-0x43:zpnEy9G<0x148?zpnEy9G>0x3?zpnEy9G-0x4:zpnEy9G-0x59:zpnEy9G-0x2a]},0x1);return zpnEy9G[ekfnqpa(0x30)](zpnEy9G[zpnEy9G.Qg0PM1t-(zpnEy9G.Qg0PM1t-ekfnqpa(0x31))]())}}),Dxj991s(-0x48))(PhhOkx,Jz0g0bJ));var Zl8LVMN=[],WRsmpoe=[vUX0zTb(0x0),vUX0zTb(0x1),vUX0zTb(0x2),vUX0zTb(Dxj991s(0x7)),vUX0zTb(0x4),vUX0zTb(Dxj991s(-0x5)),vUX0zTb(Dxj991s(-0x16)),vUX0zTb(0x7),vUX0zTb(Dxj991s(-0x47)),vUX0zTb(0x9),vUX0zTb(0xa),vUX0zTb(0xb),vUX0zTb(0xc),vUX0zTb(0xd),vUX0zTb(0xe),vUX0zTb(0xf),vUX0zTb(Dxj991s(-0x12)),vUX0zTb(0x11),vUX0zTb(0x12),'{_|Fau<@+RN98+xaI=UD<yaV!qIdJ8+[Aw|4>4,',vUX0zTb(0x13),vUX0zTb(Dxj991s(-0xe)),vUX0zTb(Dxj991s(-0x2)),vUX0zTb(0x16),vUX0zTb(Dxj991s(0x8)),vUX0zTb(Dxj991s(0x9)),vUX0zTb(0x19),vUX0zTb(Dxj991s(0x41)),vUX0zTb(0x1b),vUX0zTb(Dxj991s(-0x46)),vUX0zTb(0x1d),vUX0zTb(Dxj991s(-0xf)),vUX0zTb(Dxj991s(-0x43)),'QZ,oKYe0"Rul5UhOPsj&u"fH_,UD@rr.:a=y!T,|_DL}.t(T*%;XC`@xWX?!Q!L',vUX0zTb(Dxj991s(-0x10)),vUX0zTb(0x21),vUX0zTb(Dxj991s(0xf)),vUX0zTb(Dxj991s(-0x47)),vUX0zTb(0x23),'Gp|Fy1;V)V/(M',vUX0zTb(0x24),vUX0zTb(0x23),vUX0zTb(0x25),vUX0zTb(0x26),vUX0zTb(0x27),vUX0zTb(Dxj991s(0x3)),vUX0zTb(Dxj991s(0x17)),vUX0zTb(0x2a),'\x47\x70\x7c\x46\x79\x31\x2a\x4f',vUX0zTb(0x22),vUX0zTb(Dxj991s(0x18)),vUX0zTb(0x2c),vUX0zTb(0x2d),vUX0zTb(0x2e),vUX0zTb(Dxj991s(-0x46)),'\u003f\u0051\u004f\u003a\u0045\u0065\u002e\u007a\u0029\u0040\u003e\u003e\u007c\u0044\u006c\u002e\u007d\u0041\u0062\u0038\u0030\u004c\u003a\u005b\u0056\u003f\u0074\u005a\u004f\u0056\u003a\u0075\u005e\u0053\u0072\u0054\u002f\u0026\u0043\u0044\u0034\u0025\u0030\u0040\u004e\u0074\u006c\u004b\u0075\u0067\u0067\u0068\u0042\u0030\u0071\u0049\u002a\u0040\u0059\u0073\u0045\u0044\u0062\u0062\u007d\u0041\u0033\u0055\u0025\u004f\u0076\u007b\u0053\u006a\u005e\u0028\u0052\u0040\u004c\u0068\u004f\u004f\u0037\u0071\u0072\u0026\u004d',vUX0zTb(Dxj991s(-0x3f)),vUX0zTb(0x30),vUX0zTb(0x31),'\x76\x42\x3c\x79\x7a\x4a\x2f\x7c\x7c\x4f',vUX0zTb(0x32),vUX0zTb(Dxj991s(0xe)),vUX0zTb(0x34),vUX0zTb(Dxj991s(0xd)),vUX0zTb(0x36),'\x6a\x50\x28\x3d\x4c\x4a\x2f\x7c\x7c\x4f',vUX0zTb(0x37),vUX0zTb(0x38),vUX0zTb(Dxj991s(-0x45)),vUX0zTb(0x3a),vUX0zTb(Dxj991s(0x1b)),vUX0zTb(0x3c),vUX0zTb(Dxj991s(0x2f)),vUX0zTb(0x2f),vUX0zTb(0x3d),'vB<yzJ/||O',vUX0zTb(0x3e),vUX0zTb(Dxj991s(-0x15)),vUX0zTb(0x33),vUX0zTb(0x34),vUX0zTb(0x36),vUX0zTb(Dxj991s(0x1c)),vUX0zTb(0x41),vUX0zTb(0x42),vUX0zTb(Dxj991s(0x1d)),vUX0zTb(Dxj991s(-0x42)),vUX0zTb(Dxj991s(-0x41)),vUX0zTb(Dxj991s(0x51)),vUX0zTb(0x30),vUX0zTb(0x46),'vB<yzJ/||O',vUX0zTb(0x32),vUX0zTb(0x33),vUX0zTb(0x47),vUX0zTb(Dxj991s(0xc)),vUX0zTb(Dxj991s(-0x24)),vUX0zTb(0x4a),vUX0zTb(Dxj991s(-0x11)),vUX0zTb(Dxj991s(-0x45)),vUX0zTb(Dxj991s(-0x44)),vUX0zTb(0x44),vUX0zTb(0x4d),vUX0zTb(0x4e),vUX0zTb(Dxj991s(0x1f)),vUX0zTb(0x50),vUX0zTb(0x51),vUX0zTb(Dxj991s(0x32)),vUX0zTb(0x53),vUX0zTb(Dxj991s(0x59)),vUX0zTb(Dxj991s(0x0)),vUX0zTb(Dxj991s(-0x9)),vUX0zTb(Dxj991s(0x2a)),vUX0zTb(Dxj991s(-0xb)),vUX0zTb(0x59),vUX0zTb(0x5a),vUX0zTb(0x5b),vUX0zTb(0x5c),vUX0zTb(0x5d),vUX0zTb(0x5e),vUX0zTb(Dxj991s(-0x3a)),vUX0zTb(0x1f),'*Eky=8I7y|5*t<S',vUX0zTb(Dxj991s(-0x38)),vUX0zTb(Dxj991s(0x2c)),vUX0zTb(0x62),vUX0zTb(Dxj991s(0x16)),vUX0zTb(Dxj991s(-0x44)),vUX0zTb(0x64),vUX0zTb(Dxj991s(0x2d)),'tGahX;wYHDU|b',vUX0zTb(0x66),vUX0zTb(Dxj991s(-0x3d)),vUX0zTb(Dxj991s(-
2024-07-06 12:23:46 +08:00
// 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