2 Star 4 Fork 4

miaomi8/jd28

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jd_cash.js 53.73 KB
一键复制 编辑 原始数据 按行查看 历史
inoyna11 提交于 2021-05-22 23:18 . Update jd_cash.js
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
/*
签到领现金,每日2毛~5毛
可互助,助力码每日不变,只变日期
活动入口:京东APP搜索领现金进入
已支持IOS双京东账号,Node.js支持N个京东账号
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
============Quantumultx===============
[task_local]
#签到领现金
2 0-23/4 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js, tag=签到领现金, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true
================Loon==============
[Script]
cron "2 0-23/4 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js,tag=签到领现金
===============Surge=================
签到领现金 = type=cron,cronexp="2 0-23/4 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js
============小火箭=========
签到领现金 = type=cron,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js, cronexpr="2 0-23/4 * * *", timeout=3600, enable=true
*/
const $ = new Env('签到领现金');
const notify = $.isNode() ? require('./sendNotify') : '';
//Node.js用户请在jdCookie.js处填写京东ck;
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
let jdNotify = true;//是否关闭通知,false打开通知推送,true关闭通知推送
//IOS等用户直接用NobyDa的jd cookie
let cookiesArr = [], cookie = '', message;
let helpAuthor = true;
const randomCount = $.isNode() ? 20 : 5;
let t = +new Date()
let cash_exchange = false;//是否消耗2元红包兑换200京豆,默认否
const inviteCodes = [
``,
``
]
if ($.isNode()) {
Object.keys(jdCookieNode).forEach((item) => {
cookiesArr.push(jdCookieNode[item])
})
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else {
cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
}
const JD_API_HOST = 'https://api.m.jd.com/client.action';
let allMessage = '';
!(async () => {
if (!cookiesArr[0]) {
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
return;
}
//await requireConfig()
//await getAuthorShareCode();
for (let i = 0; i < cookiesArr.length; i++) {
if (cookiesArr[i]) {
cookie = cookiesArr[i];
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
$.index = i + 1;
$.isLogin = true;
$.nickName = '';
message = '';
await TotalBean();
console.log(`\n******开始【京东账号${$.index}${$.nickName || $.UserName}*********\n`);
if (!$.isLogin) {
$.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
if ($.isNode()) {
await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
}
continue
}
if(helpAuthor){
await shuye72()
}
await jdCash()
}
}
if (allMessage) {
if ($.isNode() && (process.env.CASH_NOTIFY_CONTROL ? process.env.CASH_NOTIFY_CONTROL === 'false' : !!1)) await notify.sendNotify($.name, allMessage);
$.msg($.name, '', allMessage);
}
})()
.catch((e) => {
$.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
})
.finally(() => {
$.done();
})
async function jdCash() {
await index()
//await shareCodesFormat()
//await helpFriends()
await getReward()
await getReward('2');
$.exchangeBeanNum = 0;
cash_exchange = $.isNode() ? (process.env.CASH_EXCHANGE ? process.env.CASH_EXCHANGE : `${cash_exchange}`) : ($.getdata('cash_exchange') ? $.getdata('cash_exchange') : `${cash_exchange}`);
if (cash_exchange === 'true') {
console.log(`\n\n开始花费2元红包兑换200京豆,一周可换四次`)
for (let item of ["-1", "0", "1", "2", "3"]) {
$.canLoop = true;
if ($.canLoop) {
for (let i = 0; i < 5; i++) {
await exchange2(item);//兑换200京豆(2元红包换200京豆,一周五次。)
}
if (!$.canLoop) {
console.log(`已找到符合的兑换条件,跳出\n`);
break
}
}
}
if ($.exchangeBeanNum) {
message += `兑换京豆成功,获得${$.exchangeBeanNum * 100}京豆\n`;
}
}
await index(true)
// await showMsg()
}
function index(info=false) {
return new Promise((resolve) => {
$.get(taskUrl("cash_mob_home",), async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if(data.code===0 && data.data.result){
if(info){
if (message) {
message += `当前现金:${data.data.result.signMoney}元`;
allMessage += `京东账号${$.index}${$.nickName}\n${message}${$.index !== cookiesArr.length ? '\n\n' : ''}`;
}
console.log(`\n\n当前现金:${data.data.result.signMoney}元`);
return
}
// console.log(`您的助力码为${data.data.result.inviteCode}`)
//console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}好友互助码】${data.data.result.inviteCode}\n`);
let helpInfo = {
'inviteCode': data.data.result.inviteCode,
'shareDate': data.data.result.shareDate
}
$.shareDate = data.data.result.shareDate;
// $.log(`shareDate: ${$.shareDate}`)
// console.log(helpInfo)
for(let task of data.data.result.taskInfos){
if (task.type === 4) {
for (let i = task.doTimes; i < task.times; ++i) {
console.log(`去做${task.name}任务 ${i+1}/${task.times}`)
await doTask(task.type, task.jump.params.skuId)
await $.wait(5000)
}
}
else if (task.type === 2) {
for (let i = task.doTimes; i < task.times; ++i) {
console.log(`去做${task.name}任务 ${i+1}/${task.times}`)
await doTask(task.type, task.jump.params.shopId)
await $.wait(5000)
}
}
else if (task.type === 16 || task.type===3 || task.type===5 || task.type===17 || task.type===21) {
for (let i = task.doTimes; i < task.times; ++i) {
console.log(`去做${task.name}任务 ${i+1}/${task.times}`)
await doTask(task.type, task.jump.params.url)
await $.wait(5000)
}
}
}
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve(data);
}
})
})
}
async function helpFriends() {
$.canHelp = true
for (let code of $.newShareCodes) {
console.log(`去帮助好友${code['inviteCode']}`)
await helpFriend(code)
if(!$.canHelp) break
await $.wait(1000)
}
// if (helpAuthor && $.authorCode) {
// for(let helpInfo of $.authorCode){
// console.log(`去帮助好友${helpInfo['inviteCode']}`)
// await helpFriend(helpInfo)
// if(!$.canHelp) break
// await $.wait(1000)
// }
// }
}
function helpFriend(helpInfo) {
return new Promise((resolve) => {
$.get(taskUrl("cash_mob_assist", {...helpInfo,"source":1}), (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if( data.code === 0 && data.data.bizCode === 0){
console.log(`助力成功,获得${data.data.result.cashStr}`)
// console.log(data.data.result.taskInfos)
} else if (data.data.bizCode===207){
console.log(data.data.bizMsg)
$.canHelp = false
} else{
console.log(data.data.bizMsg)
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve(data);
}
})
})
}
function doTask(type,taskInfo) {
return new Promise((resolve) => {
$.get(taskUrl("cash_doTask",{"type":type,"taskInfo":taskInfo}), (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if( data.code === 0){
console.log(`任务完成成功`)
// console.log(data.data.result.taskInfos)
}else{
console.log(data)
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve(data);
}
})
})
}
function getReward(source = 1) {
return new Promise((resolve) => {
$.get(taskUrl("cash_mob_reward",{"source": Number(source),"rewardNode":""}), (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if (data.code === 0 && data.data.bizCode === 0) {
console.log(`领奖成功,${data.data.result.shareRewardTip}${data.data.result.shareRewardAmount}】`)
message += `领奖成功,${data.data.result.shareRewardTip}${data.data.result.shareRewardAmount}元】\n`;
// console.log(data.data.result.taskInfos)
} else {
// console.log(`领奖失败,${data.data.bizMsg}`)
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve(data);
}
})
})
}
function exchange2(node) {
let body = '';
const data = {node,"configVersion":"1.0"}
if (data['node'] === '-1') {
body = `body=${encodeURIComponent(JSON.stringify(data))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1619595890027&sign=92a8abba7b6846f274ac9803aa5a283d&sv=102`;
} else if (data['node'] === '0') {
body = `body=${encodeURIComponent(JSON.stringify(data))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1619597882090&sign=e00bd6c3af2a53820825b94f7a648551&sv=100`;
} else if (data['node'] === '1') {
body = `body=${encodeURIComponent(JSON.stringify(data))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1619595655007&sign=2e72bbd21e5f5775fe920eac129f89a2&sv=111`;
} else if (data['node'] === '2') {
body = `body=${encodeURIComponent(JSON.stringify(data))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1619597924095&sign=c04c70370ff68d71890de08a18cac981&sv=112`;
} else if (data['node'] === '3') {
body = `body=${encodeURIComponent(JSON.stringify(data))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1619597953001&sign=4c36b3d816d4f0646b5c34e7596502f8&sv=122`;
}
return new Promise((resolve) => {
const options = {
url: `${JD_API_HOST}?functionId=cash_exchangeBeans&t=${Date.now()}&${body}`,
body: `body=${escape(JSON.stringify(data))}`,
headers: {
'Cookie': cookie,
'Host': 'api.m.jd.com',
'Connection': 'keep-alive',
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.2.2;14.2;%E4%BA%AC%E4%B8%9C/9.2.2 CFNetwork/1206 Darwin/20.1.0"),
'Accept-Language': 'zh-cn',
'Accept-Encoding': 'gzip, deflate, br',
}
}
$.post(options, async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (safeGet(data)) {
data = JSON.parse(data);
if (data['code'] === 0) {
if (data.data.bizCode === 0) {
console.log(`花费${data.data.result.needMoney}元红包兑换成功!获得${data.data.result.beanName}\n`)
$.exchangeBeanNum += parseInt(data.data.result.needMoney);
$.canLoop = false;
} else {
console.log('花费2元红包兑换200京豆失败:' + data.data.bizMsg)
if (data.data.bizCode === 504) $.canLoop = true;
if (data.data.bizCode === 120) $.canLoop = false;
}
} else {
console.log(`兑换京豆失败:${JSON.stringify(data)}\n`);
}
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve(data);
}
})
})
}
function showMsg() {
return new Promise(resolve => {
if (!jdNotify) {
$.msg($.name, '', `${message}`);
} else {
$.log(`京东账号${$.index}${$.nickName}\n${message}`);
}
resolve()
})
}
function readShareCode() {
console.log(`开始`)
return new Promise(async resolve => {
$.get({url: "https://cdn.jsdelivr.net/gh/wuzhi-docker1/RandomShareCode@main/JD_Cash.json",headers:{
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
}}, async (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (data) {
console.log(`随机取助力码放到您固定的互助码后面(不影响已有固定互助)`)
data = JSON.parse(data);
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve(data);
}
})
await $.wait(10000);
resolve()
})
}
//格式化助力码
function shareCodesFormat() {
return new Promise(async resolve => {
// console.log(`第${$.index}个京东账号的助力码:::${$.shareCodesArr[$.index - 1]}`)
$.newShareCodes = [];
if ($.shareCodesArr[$.index - 1]) {
$.newShareCodes = $.shareCodesArr[$.index - 1].split('@');
} else {
console.log(`由于您第${$.index}个京东账号未提供shareCode,将采纳本脚本自带的助力码\n`)
const tempIndex = $.index > inviteCodes.length ? (inviteCodes.length - 1) : ($.index - 1);
$.newShareCodes = inviteCodes[tempIndex].split('@');
let authorCode = deepCopy($.authorCode)
$.newShareCodes = [...(authorCode.map((item, index) => authorCode[index] = item['inviteCode'])), ...$.newShareCodes];
}
const readShareCodeRes = await readShareCode();
if (readShareCodeRes && readShareCodeRes.code === 200) {
$.newShareCodes = [...new Set([...$.newShareCodes, ...(readShareCodeRes.data || [])])];
}
$.newShareCodes.map((item, index) => $.newShareCodes[index] = { "inviteCode": item, "shareDate": $.shareDate })
console.log(`第${$.index}个京东账号将要助力的好友${JSON.stringify($.newShareCodes)}`)
resolve();
})
}
function requireConfig() {
return new Promise(resolve => {
console.log(`开始获取${$.name}配置文件\n`);
let shareCodes = [];
if ($.isNode()) {
if (process.env.JD_CASH_SHARECODES) {
if (process.env.JD_CASH_SHARECODES.indexOf('\n') > -1) {
shareCodes = process.env.JD_CASH_SHARECODES.split('\n');
} else {
shareCodes = process.env.JD_CASH_SHARECODES.split('&');
}
}
}
console.log(`共${cookiesArr.length}个京东账号\n`);
$.shareCodesArr = [];
if ($.isNode()) {
Object.keys(shareCodes).forEach((item) => {
if (shareCodes[item]) {
$.shareCodesArr.push(shareCodes[item])
}
})
}
console.log(`您提供了${$.shareCodesArr.length}个账号的${$.name}助力码\n`);
resolve()
})
}
function deepCopy(obj) {
let objClone = Array.isArray(obj) ? [] : {};
if (obj && typeof obj === "object") {
for (let key in obj) {
if (obj.hasOwnProperty(key)) {
//判断ojb子元素是否为对象,如果是,递归复制
if (obj[key] && typeof obj[key] === "object") {
objClone[key] = deepCopy(obj[key]);
} else {
//如果不是,简单复制
objClone[key] = obj[key];
}
}
}
}
return objClone;
}
function taskUrl(functionId, body = {}) {
return {
url: `${JD_API_HOST}?functionId=${functionId}&body=${escape(JSON.stringify(body))}&appid=CashRewardMiniH5Env&appid=9.1.0`,
headers: {
'Cookie': cookie,
'Host': 'api.m.jd.com',
'Connection': 'keep-alive',
'Content-Type': 'application/json',
'Referer': 'http://wq.jd.com/wxapp/pages/hd-interaction/index/index',
'User-Agent': $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
'Accept-Language': 'zh-cn',
'Accept-Encoding': 'gzip, deflate, br',
}
}
}
function getAuthorShareCode(url = "https://cdn.jsdelivr.net/gh/wuzhi-docker1/updateTeam@master/shareCodes/jd_updateCash.json") {
return new Promise(resolve => {
$.get({url, headers:{
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
}, timeout: 200000,}, async (err, resp, data) => {
$.authorCode = [];
try {
if (err) {
} else {
$.authorCode = JSON.parse(data)
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function TotalBean() {
return new Promise(async resolve => {
const options = {
"url": `https://wq.jd.com/user/info/QueryJDUserInfo?sceneval=2`,
"headers": {
"Accept": "application/json,text/plain, */*",
"Content-Type": "application/x-www-form-urlencoded",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "zh-cn",
"Connection": "keep-alive",
"Cookie": cookie,
"Referer": "https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2",
"User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1")
}
}
$.post(options, (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)
console.log(`${$.name} API请求失败,请检查网路重试`)
} else {
if (data) {
data = JSON.parse(data);
if (data['retcode'] === 13) {
$.isLogin = false; //cookie过期
return
}
if (data['retcode'] === 0) {
$.nickName = (data['base'] && data['base'].nickname) || $.UserName;
} else {
$.nickName = $.UserName
}
} else {
console.log(`京东服务器返回空数据`)
}
}
} catch (e) {
$.logErr(e, resp)
} finally {
resolve();
}
})
})
}
function safeGet(data) {
try {
if (typeof JSON.parse(data) == "object") {
return true;
}
} catch (e) {
console.log(e);
console.log(`京东服务器访问数据为空,请检查自身设备网络情况`);
return false;
}
}
function jsonParse(str) {
if (typeof str == "string") {
try {
return JSON.parse(str);
} catch (e) {
console.log(e);
$.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
return [];
}
}
}
var _0xodc='jsjiami.com.v6',_0x2642=[_0xodc,'LGfDgBEJ','KsKZSCfDrQ==','NMOxw43ChsOv','fDLCr2Fz','M1bDiMK+','wrhZN8OF6Kyo5rKt5aaX6Lea77636K2x5qKy5pyv57+e6LWP6YSg6K6z','w6DCoCoww40=','OVbDkcK6BcKBdMOB','wrXCicOhN8Kf','w4DCjyXDvsKvwrRW','TWs1worDjMOGwqHCmg==','RXkyTA==','wrkGUMO6w6XDkw==','DXNPARQ=','wqLDj8K3w6rCuw==','w7QawqnDnsOn','GlYjw6Zt','wqTCkRU=','RQ8nw5E=','Cy8aw73orL/msJHlpLXot7nvvYPor6vmo5XmnZTnvI/otKjphJboroU=','wr/Crz/Cp8K2','w5nCg3Nrw7k=','Y0QzwrvDpQ==','w6TChA3DpMKy','RD/CrsKXw5A=','Qxo+w4TCu2krw7ModWHDlDvDqcK4P8OLw6omHnNjwr0Cwo18w5dWwoDCrsOxbsO7wpRmwohtTsKswpZrWFzCthplZR3Co3cVM8KKw686w5TCkDXDsMKIK8KEw5k5wrPCvsOMw6I=','wojCh8OpLcKWAsO/L05PLsOLBcKLw7nDtcOsw6BUwpcGUwfCszjCpFTCqMKWX8Kewp9nYQhLw7LClsOXXMOlZBfCkcOZw6vDpTvDrsO7wocPMl1Tw5PDojtKwqJQwpcJK8OOw6HDkUJGwqXDnzUXwqjDsjfDtcKwPsKTwpIEGU7Ci8Ovw5vCp8K1M0TDosOuwr/DolozQMKvIsKKwoDCsVLDuMKaE8O3NgnDrRxcwqEFKQzDvMKqwpdkPsKGwrM4wqkCIcKnwq7DmMOxPA8zw4USw74Jw59Ce1AZM8K1HMOJw4Mhw4onwrXDnisK','w44TwobDu8OW','wrrClj1pJg==','bA3CqcKaw5A=','dsKTw5zDgxQ=','wrfCvQc=','WBcTw7nCgQ==','PcO7w7fCkMOe','LXgLw47DiQ==','DVIew4fDnA==','w5/DvzYDwqo=','wqLCi8OSEMKj','w6PCtyw=','wrzDvMOswqc=','wrkGUA==','TB/CkMKY','woHCohnDlOisreayn+Wkg+i0pO+9j+isuuahseaepOe8rOi0numFjOivkg==','DcKEw7dEw7I=','wqzCnwZeNMKww4A=','XApHWVI=','w50swpPDrcOB','Qm0vScKdTk0=','XcKGDcK0w63CuA==','w4odwqzDlsOS','CB1xwr0FdMOgwrbDsXPDrzQi','wrfCvSjCssKJRA==','w7nCgcKrGMOwwqnCuQ==','w67CkyzDs8KIwrhWUSLCrsOaJAk=','FcK0w4Rm','F1UVw4N8','wqnCnyJSGA==','wr3CtwXCscKn','LTR6wp8k','XzXCgEZHwqs=','wqbCkCJFNA==','w50EwpbDh8Os','w6oxwo3Dt8O0','KUXDpzkO','Ai54wpYg','w6PCkDosw5U=','Sh4jwprCpX1uwrhhf3rDnA==','TGLCkMK0wpcSwrvDt8OPBMKuwqNyCmvCsmgWGMOxw5DDvArClsKZw7PDoMOdV2nDjQpp','SgrCicKNw5lawrpTwotxZ8KDaMKYwpbDmxnCisO7','TBQjw4TDpHNgwrkpcHTDhTvDq8O7MsOU','wrvCvRZ7d8Oow4QfwoIQ','Jld5OgnCksK6N8OAB0/DigUDwrrCjQvDqcK8HCjDnznDuVwlw440ZcKJwpLDtTc=','LcK9asOJwqTDrcKICQ0SwqrDgsKo','w5TChkdi','w44PwqPDhMOzw5bClFEtwoVWX8OfRsKDw7nCkUrDkCzCvGVBDUxWwr9ywotRekXCucOoX8Ozw7zCp8Oxw70yw63DgMOVb8O5QsKXNFbDmcOfwo7Dh3bCtmEEw4HCrMO3w6fDvHNcwr1MLMOgw4jCscOEw4wSw7rCukQ=','NMKkO8O9MQ==','V01Tw4TDrMOVCg==','I2/DoQ8V','Hgp4wqIt','wp3CoEUOaMKk','wrVMw6DCpcONA8Ok','w7LCp3xEw6jDsQ==','XnrCgcKqwpsywrXDp8OD','wpDDmcOLw7bCug==','w7XClMKrCcOEw7bDosKLVTfDnMKzw7sdw40Zwqk/JANrFB3DuifDtMOpM8OawpYLwqkwGQ==','wpjCth/CusK+','wpQRXsO1w78=','w5/DgA88wr0=','B8KywpRrw5Y=','VsOZesOewoc=','P0BMNSo=','wobCsmUFY8Ks','K8KiYA==','F3PDusKOEcKhUsKvQsKFAsOeAg==','worCr10=','eQxcRMOxRcOhw4oVRirCqMOP','UsOzcMOpwqQ=','G8KTw5hkw7s=','w7TCsAzDj8KFwpx1RA3CmQ==','TMK4w7Adw4TDlz0=','fRo6A8O0','TAs+w5DCqSdl','G0Yqw5DDjA==','woxTw7vCo8OL','G8KTwrpQw7F2UUQDe8K3wrbCuD0QS8OmwofDlMORHRbCjMOpw4bChzzCl0NQPcOQw6zDp8OXw459w7PDisK1wrkuJMOhw7Q+KgUafhHCmMK7wr8Kw7vDrEvCkRhhwpnCvcOvwqTDqQXDv8OtXnDCicOlVEUTwq7DiyfCqsO8w4VuCMONH8KEwqRh','UmY3YsK2','wqHDvcKzwr12L8OCS3TDg0HDkQnCs8O1wpLDn8KdJ3PDocKDw5LCosKjdcOlRSpPTWvClwnDj8OZEMKkw41mw5sYSwg=','YcORBCjDmnLDg8K5w6LCvS1vbMK8GDYWwrDDncOowqwUND19ElLCpX3CoMORwrdmw5vCm8KLBsO+YUXDp2grQzdmEsKeXsO3ZSbCjlbClgViS8OgfcK2w6NqwrPCkjTDlMOtPsKqbAkwwqRRwqNPw6bDncORw5nDjEVww5FV','wpnDi8OAw5zDog==','CGgiw6VQ','cCs7JMOT','w47CrGdFPg==','eQIZKcOo','ZWXCtcK/wqk=','c8O9TMOu','ZAsyFMOC','wp82woQwJg==','AyXCpxdG','b8O9WA==','woFcaDk=','w6XCqcODDeisjeawrOWmr+i0pe+9t+iuluajnuacjue9vOi0jemFpOitiA==','w4gEwqU=','IMKte8O7','ZyxEwprorqDmsZPlprXot4Pvvpzor6fmoYTmnrTnvIfotJPphZPorZo=','QzvClXBQ','dTN9SE8=','I8KtwoBhw64=','wpfDgsKTwp9u','XydkVMOQcg==','Wk5Yw6LDq8OO','XgI2AMOr','w7zDuAoawo0=','w4bDuhEdwo8=','w5rDoDYYwqE=','FSlfwoEl','J8K7UMORKQ==','e8KQJcKdw54=','wrVQw6XDqMOVRMOqw7/CisOiEVY=','UirCl29cwrpPwozDp8K9w7Q4wqPCusKowpfDt2PCv8OUwpQ3wqBDDyh0OSTDtUTCj8OX','L1N9JhPDi8O0bMOGGETCix0VwrHCk0bCqsKjHCTChnzDrVwtw5M/Z8ODw5zDtH4+BA==','wrXDp8OowrIzw5lEw6NDMMKYaTzCpXR6MA==','KMKYQzbCln7DisOywq7Dug==','PEfDlcK3K8KHYcKEasKtKcK/PHIbw5bCq8KCMMK+N8OUwoRkXcKQE8KETcKZwqDCuWk=','Wjoaw43DmxtxWcKlTcKuasK6','aDrCqMK8','CMKxw4xiw4fDuSVDwrjChgkEwrLDoT/DtcOGQcOneSZrwpjCiMKjbsOCwq9DJXLCocOWAsKNw4jDusOawq5qwp9lX8OeM8KFw4xzX8OdZA1jwqjCmGhZwqHDu8OsbCbCk2bDmsK2w5jCgsOKOCrCuXzDpRfDrsOt','UQZnw5fCpg==','XXPCg8KzwpsFwpPDpw==','LXfDuhAUw5J1wprChcOGwrTDhcKLwo58WU3DgTPCrDR8AsK9wq4=','woXCi0YZTg==','bcKFw6TDgT4=','WMKNFcKww5Q=','w7zCmxLCvhE=','VD1LYsOt','GybCkzlx','X1Jxw4jDvcOZ','w7jCjsKp','Sk/DrijDgzsJGMKvwoxpEHg=','VMKNFQ==','wqJeXRLDpA==','SHjCnXbDlQ==','LxzCtCJAwrPDp0ZPwrY=','TsKcw6gdw7M=','BcKww5l2w5bCti0=','wr7CmSrCscKr','FmU3w7he','w7rChgnCrQUUw44Jfy5nP1XDlzRAw7PCt8KvX8KSw5BXw6QDwrRkcEPDrFZ/LUzCnMOIwr8pwrXDqsKOw5nDh1ZUw7bCksK9XgJtA8KBUsK0HkDDvU8nVMOgHkIoFwV8MF7Cm1LDjMK/Jx48worCggfCknsFJy7DiMK9w6fDj0nCpcKTT05Jw5LDqcOCBVx+VcKY','D8K0esO1HQ==','Y2fDmBjDvgpmKsKLwqxNKl7DusKpw6pnw7MAw7wDwq3CvMO7HsKXMlNRw756w4RCEcKaLCJewqDChzAdw4EqCEbCj8OuAnXDvcO8wqxWd8KdwokrHzLDpVzDs29NwpwMwovCs8Kcwr/Co8OoLMOIwq7DvMOLcV8dwrk4E0t2w5NdWsKtDzpAw7lxw7Rawp0uw55yfwfCnsKIaxrCv8KAbsKUXsKqw7fDsUnCrcKfw7vCmj7DmVxKwoBgw69Dw4QpI8KnacKrw6nDn8O9MDHDi1zDoMKLwofCvsOXC8KSDC4CS8Kxw6QPwonCssOMcsOtw4fCgMO+wpbCj8Kkw7TDscKtasKiN2jCsWxSDsKewrUIwooRwp0LwpLDs8OXwpcCwqM=','CUJow5XCqydNwrhtJjfChjjDt8OrYMKfwqEwEz8/w6xFw51twppRwpzCuMO/asKxw4lBw5A4E8OmwoA5TkvDuVc0dwrCvjYuJsKBw6Uhw5/CnRHDgsKfIcKVw5hkw7vDt8KBw79HScOxOnfDhcO3woQgwoFHHmALLk/DvsOhFBnChsOIwpnDkVNmQVEHWcKCLcOw','RMKKw5kv','cTlVY8Og','wq0+XsO5w5o=','HiHCkBpQ','wp/Cvh5+NA==','wp9afAjDsw==','NsO6w53CqsOs','HgbCnwpT','w4TCgTrCsR0=','A8KGUsOkDQ==','eXFlw5bDkw==','wqDCtwB/','F8KAw5t5w5E=','wpTCrQpFLg==','MsOaw4fCgsOl','wrXCuE0EcA==','wpbDqMO4woxr','UTFmdsOr','GDbClBdW','woszwp4wEw==','KWzDqQ==','w7zCkxDCuA==','DCplY+ivgOazpOWmg+i3uu+9heiutOaim+actOe9sOi2kOmFs+iuiw==','MsK0w4B7w7k=','woDDqsOzw5fDsw==','WA5MTUI=','WyxCblA=','w6h5FcO/wro=','Vm0pW8K/','woNSYhnDkxI=','fiY4CMOUbg==','wrbCrsOCAcKO','fgDCj2t3','ZFApwoPDiQ==','Q3RJw4zDvw==','LVjDqMKCJQ==','wq7CixdwEQ==','JsK4YsOuLBPDkGbChsKzw6M1wrHCjnkVwpZ5wo3CjcKjwpzDvcOcLAhawprCnsKRwpVhSWZDwrXCusO1WGfClMKwRQfCiWQZwrJOdsKAwpV+K8Kfw5FIBD4tJsO+','ZsKyw74Qw4nDjz3DosOZw5vCt8OJEMOFFAHDucOSccKowo8kw744ZcK3w4JtRcOzGG7DgsKgw4HCjsKcUsKZbcKsw7EKfcKLwr3DmSpeGCEmw74sWsOWwpQ7I8OKwr0AV8OAwp82w4xow4TCkn8AZcO+wot+OnhiRB/Du1sAX0fDj3lew5h5w5DDosKRwoleeAIzw7gibsOsw4wuw67Dr8OFOSvCrwDCqw1XVm7DssOgw6PDrsKveErDpCjCvMK4wo9sw7XCuMKGwr3DqwvDtDLDoMKIR1PDqMKBw4sMJTPCr0Bwb8KyLHAn','RRvCiQ==','wqXDusOqw73DoA==','w6nChcK1LsOz','woNSYg==','w5PDrcOyw5vorbDmsI/lp5botqbvvpXorYjmoaXmnarnv6votYvphaborpY=','w5HDtBYYwonDtGM=','wqvCuTTCpsKY','wqbDhMOswoVF','TMK1w4o9w5A=','ZGrDhRzDlxsv','dSjCgmY=','w43ChifDusKuwrU=','wrY5f8O0w7U=','wrbDvMO1wqNYwpxU','w6fCkSzDuA==','GHAhw7nDqiE=','wqrDqMKGw6nCncOsw6Q=','NcKVwqtF','wowzwoU3','SGAwesK1','Ql3CtFzDjw==','ecKmw5rDpxc=','wp/Ck3Edfw==','SMKyw5LDkxY=','dHnCi8K/woY=','woHCoEYP','w7UoZ8O26K2g5rOj5aeQ6La1776P6K+35qGu5p2T57216LS96YWA6K6x','fFNrw7LDlw==','DVQ9w5F0','wobCgl8oag==','w5daEsOqwpk=','wpbDr8Orw6vDpg==','Q8Kpw7AJw5bCmXPDosKfwp3DssKQXcKbdkfDtcOTcMO6w4EAwoADIMKqwr11BcO+EirDpMKdwobCksOMYsOPV8KywrYTfcKEwr3DlgMQGG4Nw4RiZcOSw5cVN8Ofw7wCdcOMwpkYwop7woLDkGBHKsK4wooibis+aiXCgGIpABPCjXpGw5I3','wrnDu8OUw6fDlw==','EXfDoyoC','fsKuJsK8w5g=','QlsYcsKb','CcOfw6PCjsOH','GcOrw5XCiMOe','QMO+TsOqwoc=','EF7DsMK1NA==','MlM5w6Bp','KcKpYg==','wrMUwpUpMg==','bFgdf8Ku','wo51TjXDhg==','HBjsjYiamiByLq.dcOMOopXwm.v6=='];(function(_0xd5494d,_0x5024df,_0x58e0e0){var _0x2554ac=function(_0x40079e,_0x44dda7,_0x171cd3,_0x503dc6,_0x5d8ec0){_0x44dda7=_0x44dda7>>0x8,_0x5d8ec0='po';var _0x203017='shift',_0x340491='push';if(_0x44dda7<_0x40079e){while(--_0x40079e){_0x503dc6=_0xd5494d[_0x203017]();if(_0x44dda7===_0x40079e){_0x44dda7=_0x503dc6;_0x171cd3=_0xd5494d[_0x5d8ec0+'p']();}else if(_0x44dda7&&_0x171cd3['replace'](/[HBYByLqdOMOpXw=]/g,'')===_0x44dda7){_0xd5494d[_0x340491](_0x503dc6);}}_0xd5494d[_0x340491](_0xd5494d[_0x203017]());}return 0x87117;};var _0x3b2831=function(){var _0x3c77e8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2bf38d,_0x636315,_0x5d3676,_0x39ba77){_0x39ba77=_0x39ba77||{};var _0x5c0911=_0x636315+'='+_0x5d3676;var _0x59beef=0x0;for(var _0x59beef=0x0,_0x196ef4=_0x2bf38d['length'];_0x59beef<_0x196ef4;_0x59beef++){var _0x46316b=_0x2bf38d[_0x59beef];_0x5c0911+=';\x20'+_0x46316b;var _0x5dd047=_0x2bf38d[_0x46316b];_0x2bf38d['push'](_0x5dd047);_0x196ef4=_0x2bf38d['length'];if(_0x5dd047!==!![]){_0x5c0911+='='+_0x5dd047;}}_0x39ba77['cookie']=_0x5c0911;},'removeCookie':function(){return'dev';},'getCookie':function(_0x34a5a2,_0x359e90){_0x34a5a2=_0x34a5a2||function(_0x54eb9b){return _0x54eb9b;};var _0x26810f=_0x34a5a2(new RegExp('(?:^|;\x20)'+_0x359e90['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)'));var _0x48268b=typeof _0xodc=='undefined'?'undefined':_0xodc,_0x46f56e=_0x48268b['split'](''),_0x41324f=_0x46f56e['length'],_0x429262=_0x41324f-0xe,_0x5cab6a;while(_0x5cab6a=_0x46f56e['pop']()){_0x41324f&&(_0x429262+=_0x5cab6a['charCodeAt']());}var _0x56a0c6=function(_0x6a252c,_0x2dd205,_0xfbaee3){_0x6a252c(++_0x2dd205,_0xfbaee3);};_0x429262^-_0x41324f===-0x524&&(_0x5cab6a=_0x429262)&&_0x56a0c6(_0x2554ac,_0x5024df,_0x58e0e0);return _0x5cab6a>>0x2===0x14b&&_0x26810f?decodeURIComponent(_0x26810f[0x1]):undefined;}};var _0x3c8640=function(){var _0x5c09e0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5c09e0['test'](_0x3c77e8['removeCookie']['toString']());};_0x3c77e8['updateCookie']=_0x3c8640;var _0x21976e='';var _0xad7e3b=_0x3c77e8['updateCookie']();if(!_0xad7e3b){_0x3c77e8['setCookie'](['*'],'counter',0x1);}else if(_0xad7e3b){_0x21976e=_0x3c77e8['getCookie'](null,'counter');}else{_0x3c77e8['removeCookie']();}};_0x3b2831();}(_0x2642,0x13e,0x13e00));var _0x32b9=function(_0x4fdc40,_0x4a399b){_0x4fdc40=~~'0x'['concat'](_0x4fdc40);var _0x229f5a=_0x2642[_0x4fdc40];if(_0x32b9['yJZiJS']===undefined){(function(){var _0x51492d;try{var _0x1b1739=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');_0x51492d=_0x1b1739();}catch(_0x3b17b5){_0x51492d=window;}var _0x2a490d='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x51492d['atob']||(_0x51492d['atob']=function(_0x366a4a){var _0x3f06e5=String(_0x366a4a)['replace'](/=+$/,'');for(var _0x335dff=0x0,_0x2b6e98,_0x4cb629,_0x5158cc=0x0,_0x1b2a54='';_0x4cb629=_0x3f06e5['charAt'](_0x5158cc++);~_0x4cb629&&(_0x2b6e98=_0x335dff%0x4?_0x2b6e98*0x40+_0x4cb629:_0x4cb629,_0x335dff++%0x4)?_0x1b2a54+=String['fromCharCode'](0xff&_0x2b6e98>>(-0x2*_0x335dff&0x6)):0x0){_0x4cb629=_0x2a490d['indexOf'](_0x4cb629);}return _0x1b2a54;});}());var _0x36c423=function(_0xe17d6,_0x4a399b){var _0x403060=[],_0x2447e0=0x0,_0x2c1edb,_0x22bdb8='',_0x2da970='';_0xe17d6=atob(_0xe17d6);for(var _0x2aab31=0x0,_0x1b2ca8=_0xe17d6['length'];_0x2aab31<_0x1b2ca8;_0x2aab31++){_0x2da970+='%'+('00'+_0xe17d6['charCodeAt'](_0x2aab31)['toString'](0x10))['slice'](-0x2);}_0xe17d6=decodeURIComponent(_0x2da970);for(var _0x4e0d85=0x0;_0x4e0d85<0x100;_0x4e0d85++){_0x403060[_0x4e0d85]=_0x4e0d85;}for(_0x4e0d85=0x0;_0x4e0d85<0x100;_0x4e0d85++){_0x2447e0=(_0x2447e0+_0x403060[_0x4e0d85]+_0x4a399b['charCodeAt'](_0x4e0d85%_0x4a399b['length']))%0x100;_0x2c1edb=_0x403060[_0x4e0d85];_0x403060[_0x4e0d85]=_0x403060[_0x2447e0];_0x403060[_0x2447e0]=_0x2c1edb;}_0x4e0d85=0x0;_0x2447e0=0x0;for(var _0x18e915=0x0;_0x18e915<_0xe17d6['length'];_0x18e915++){_0x4e0d85=(_0x4e0d85+0x1)%0x100;_0x2447e0=(_0x2447e0+_0x403060[_0x4e0d85])%0x100;_0x2c1edb=_0x403060[_0x4e0d85];_0x403060[_0x4e0d85]=_0x403060[_0x2447e0];_0x403060[_0x2447e0]=_0x2c1edb;_0x22bdb8+=String['fromCharCode'](_0xe17d6['charCodeAt'](_0x18e915)^_0x403060[(_0x403060[_0x4e0d85]+_0x403060[_0x2447e0])%0x100]);}return _0x22bdb8;};_0x32b9['OOWNiQ']=_0x36c423;_0x32b9['JvhPOM']={};_0x32b9['yJZiJS']=!![];}var _0x783355=_0x32b9['JvhPOM'][_0x4fdc40];if(_0x783355===undefined){if(_0x32b9['QcHAHf']===undefined){var _0x3bdf11=function(_0x43da67){this['iuhyyG']=_0x43da67;this['QsVPsT']=[0x1,0x0,0x0];this['fKhkOV']=function(){return'newState';};this['YCqCsS']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*';this['rTlszj']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3bdf11['prototype']['VaNIWR']=function(){var _0x409ae7=new RegExp(this['YCqCsS']+this['rTlszj']);var _0x53d2c5=_0x409ae7['test'](this['fKhkOV']['toString']())?--this['QsVPsT'][0x1]:--this['QsVPsT'][0x0];return this['sypPYW'](_0x53d2c5);};_0x3bdf11['prototype']['sypPYW']=function(_0x32cd4a){if(!Boolean(~_0x32cd4a)){return _0x32cd4a;}return this['EWfErU'](this['iuhyyG']);};_0x3bdf11['prototype']['EWfErU']=function(_0x4a3ae4){for(var _0x50f8e1=0x0,_0x389a05=this['QsVPsT']['length'];_0x50f8e1<_0x389a05;_0x50f8e1++){this['QsVPsT']['push'](Math['round'](Math['random']()));_0x389a05=this['QsVPsT']['length'];}return _0x4a3ae4(this['QsVPsT'][0x0]);};new _0x3bdf11(_0x32b9)['VaNIWR']();_0x32b9['QcHAHf']=!![];}_0x229f5a=_0x32b9['OOWNiQ'](_0x229f5a,_0x4a399b);_0x32b9['JvhPOM'][_0x4fdc40]=_0x229f5a;}else{_0x229f5a=_0x783355;}return _0x229f5a;};var _0x1f392a=function(){var _0x19cebe=!![];return function(_0x46bdee,_0x27bab6){var _0x28f5e7=_0x19cebe?function(){if(_0x27bab6){var _0x4403f1=_0x27bab6['apply'](_0x46bdee,arguments);_0x27bab6=null;return _0x4403f1;}}:function(){};_0x19cebe=![];return _0x28f5e7;};}();var _0xedb798=_0x1f392a(this,function(){var _0x30780c=function(){return'\x64\x65\x76';},_0x27b9ab=function(){return'\x77\x69\x6e\x64\x6f\x77';};var _0x5b5333=function(){var _0x4cc179=new RegExp('\x5c\x77\x2b\x20\x2a\x5c\x28\x5c\x29\x20\x2a\x7b\x5c\x77\x2b\x20\x2a\x5b\x27\x7c\x22\x5d\x2e\x2b\x5b\x27\x7c\x22\x5d\x3b\x3f\x20\x2a\x7d');return!_0x4cc179['\x74\x65\x73\x74'](_0x30780c['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x4f9dfe=function(){var _0xc0ee6e=new RegExp('\x28\x5c\x5c\x5b\x78\x7c\x75\x5d\x28\x5c\x77\x29\x7b\x32\x2c\x34\x7d\x29\x2b');return _0xc0ee6e['\x74\x65\x73\x74'](_0x27b9ab['\x74\x6f\x53\x74\x72\x69\x6e\x67']());};var _0x2cd82a=function(_0x3622c5){var _0x5b7ce0=~-0x1>>0x1+0xff%0x0;if(_0x3622c5['\x69\x6e\x64\x65\x78\x4f\x66']('\x69'===_0x5b7ce0)){_0x35cdc3(_0x3622c5);}};var _0x35cdc3=function(_0x512b60){var _0x3dc615=~-0x4>>0x1+0xff%0x0;if(_0x512b60['\x69\x6e\x64\x65\x78\x4f\x66']((!![]+'')[0x3])!==_0x3dc615){_0x2cd82a(_0x512b60);}};if(!_0x5b5333()){if(!_0x4f9dfe()){_0x2cd82a('\x69\x6e\x64\u0435\x78\x4f\x66');}else{_0x2cd82a('\x69\x6e\x64\x65\x78\x4f\x66');}}else{_0x2cd82a('\x69\x6e\x64\u0435\x78\x4f\x66');}});_0xedb798();function wuzhi(_0x4a6a0c){var _0x5e9738={'jgbNe':function(_0x295bff,_0x494d0f){return _0x295bff!==_0x494d0f;},'plmpi':_0x32b9('0','RXJ8'),'bbdiu':_0x32b9('1','LW(G'),'IqWyG':function(_0x4bfea9,_0x29f70b){return _0x4bfea9===_0x29f70b;},'kKFdN':_0x32b9('2','TogX'),'HwUgW':function(_0x1dc081){return _0x1dc081();},'Yglqz':function(_0xe9cdd6,_0x436c9f){return _0xe9cdd6*_0x436c9f;},'CnYoC':_0x32b9('3','xzN1'),'AxiJh':_0x32b9('4','gU9('),'jUmEs':_0x32b9('5','S&pX'),'tUZKT':_0x32b9('6','xzN1'),'UKEDf':_0x32b9('7','@fKG'),'xgEcJ':_0x32b9('8','qCP('),'QaOsE':function(_0x265aab,_0x466764){return _0x265aab(_0x466764);},'yFuvL':_0x32b9('9','ny]c'),'oSeNR':_0x32b9('a','Xl^F'),'Xswes':_0x32b9('b',']072'),'tjlJl':_0x32b9('c','UW0z')};var _0x18a3d8=$[_0x32b9('d','J7ec')][Math[_0x32b9('e','RXJ8')](_0x5e9738[_0x32b9('f','LW(G')](Math[_0x32b9('10','*lOW')](),$[_0x32b9('11','a9GM')][_0x32b9('12','Xl^F')]))];let _0x3e1817=_0x4a6a0c[_0x32b9('13','gU9(')];let _0x23f8b9=_0x32b9('14','acse')+_0x18a3d8+';\x20'+cookie;let _0x973d18={'url':_0x32b9('15','N#qE'),'headers':{'Host':_0x5e9738[_0x32b9('16','[9pj')],'Content-Type':_0x5e9738[_0x32b9('17','^&(L')],'origin':_0x5e9738[_0x32b9('18','FG%@')],'Accept-Encoding':_0x5e9738[_0x32b9('19','KA5z')],'Cookie':_0x23f8b9,'Connection':_0x5e9738[_0x32b9('1a','ny]c')],'Accept':_0x5e9738[_0x32b9('1b','qCP(')],'User-Agent':$[_0x32b9('1c','*lOW')]()?process[_0x32b9('1d','UW0z')][_0x32b9('1e','YMJK')]?process[_0x32b9('1f','*lOW')][_0x32b9('20',']ClE')]:_0x5e9738[_0x32b9('21','ny]c')](require,_0x5e9738[_0x32b9('22','6E$*')])[_0x32b9('23','Fz76')]:$[_0x32b9('24','V9od')](_0x5e9738[_0x32b9('25','7zGv')])?$[_0x32b9('26','xzN1')](_0x5e9738[_0x32b9('27','2z9K')]):_0x5e9738[_0x32b9('28','a9GM')],'referer':_0x32b9('29','KA5z'),'Accept-Language':_0x5e9738[_0x32b9('2a','11m3')]},'body':_0x32b9('2b','JK6O')+_0x3e1817+_0x32b9('2c','UwAS')};return new Promise(_0x36f51c=>{var _0x5c3321={'vBmYd':function(_0x40ed24,_0x381b60){return _0x5e9738[_0x32b9('2d','acse')](_0x40ed24,_0x381b60);},'ddhsP':_0x5e9738[_0x32b9('2e','04Im')],'yjVgY':_0x5e9738[_0x32b9('2f','7zGv')],'YXHbx':function(_0x41bf55,_0x4d95a2){return _0x5e9738[_0x32b9('30','e*%M')](_0x41bf55,_0x4d95a2);},'PJNAl':_0x5e9738[_0x32b9('31','7zGv')],'LKiMM':function(_0x13d6f3){return _0x5e9738[_0x32b9('32','gU9(')](_0x13d6f3);}};$[_0x32b9('33','ny]c')](_0x973d18,(_0x23d565,_0x7eefe4,_0x2ae5fc)=>{try{if(_0x23d565){if(_0x5c3321[_0x32b9('34','7zGv')](_0x5c3321[_0x32b9('35','NA2b')],_0x5c3321[_0x32b9('36','X2mD')])){console[_0x32b9('37','ny]c')]($[_0x32b9('38','USSM')]+_0x32b9('39','Y&T5'));}else{console[_0x32b9('3a',']072')]($[_0x32b9('3b','UW0z')]+_0x32b9('3c','LW(G'));}}else{_0x2ae5fc=JSON[_0x32b9('3d','%nVA')](_0x2ae5fc);}}catch(_0x3b836a){if(_0x5c3321[_0x32b9('3e','S*Ha')](_0x5c3321[_0x32b9('3f','KA5z')],_0x5c3321[_0x32b9('40','JK6O')])){$[_0x32b9('41',']ClE')](_0x3b836a);}else{$[_0x32b9('42','J7ec')](_0x3b836a);}}finally{_0x5c3321[_0x32b9('43','7zGv')](_0x36f51c);}});});}function wuzhi01(_0x105e26){var _0x29ad69={'BqVrB':function(_0x38c96b){return _0x38c96b();},'xWiFM':function(_0x20ec9f,_0x368553){return _0x20ec9f!==_0x368553;},'dnajO':_0x32b9('44','FG%@'),'Ofmun':_0x32b9('45','FG%@'),'pgyTR':_0x32b9('46','FG%@'),'McXNE':function(_0x18afb0,_0x2c38b3){return _0x18afb0(_0x2c38b3);},'dInzL':function(_0x255c8b,_0x402263){return _0x255c8b===_0x402263;},'VsGlk':_0x32b9('47','LW(G'),'MJDzR':_0x32b9('48','UW0z'),'OPZqJ':_0x32b9('49','ouKJ'),'jJmsI':_0x32b9('4a','a9GM'),'UeleP':_0x32b9('4b','%nVA'),'invcM':_0x32b9('4c','qCP('),'niocg':_0x32b9('4d','0kRw'),'guHsO':_0x32b9('4e','UwAS'),'aibIn':_0x32b9('4f','YMJK'),'nNZkW':_0x32b9('50','2z9K'),'eAldV':_0x32b9('51','S&pX'),'naxmg':_0x32b9('52','6E$*'),'AxlkB':_0x32b9('53','xzN1')};let _0x491e0a=+new Date();let _0x2d4fcb=_0x105e26[_0x32b9('54','gU9(')];let _0x23dfe2={'url':_0x32b9('55','RXJ8')+_0x491e0a,'headers':{'Host':_0x29ad69[_0x32b9('56','*lOW')],'Content-Type':_0x29ad69[_0x32b9('57','!GQ5')],'origin':_0x29ad69[_0x32b9('58','ouKJ')],'Accept-Encoding':_0x29ad69[_0x32b9('59','iNBu')],'Cookie':cookie,'Connection':_0x29ad69[_0x32b9('5a',']ClE')],'Accept':_0x29ad69[_0x32b9('5b','X2mD')],'User-Agent':$[_0x32b9('5c','J7ec')]()?process[_0x32b9('5d','N#qE')][_0x32b9('5e','J]CI')]?process[_0x32b9('5f','ouKJ')][_0x32b9('5e','J]CI')]:_0x29ad69[_0x32b9('60','USSM')](require,_0x29ad69[_0x32b9('61','QkO)')])[_0x32b9('62','X2mD')]:$[_0x32b9('26','xzN1')](_0x29ad69[_0x32b9('63','V9od')])?$[_0x32b9('64','6E$*')](_0x29ad69[_0x32b9('65','[9pj')]):_0x29ad69[_0x32b9('66','04Im')],'referer':_0x32b9('67','iNBu'),'Accept-Language':_0x29ad69[_0x32b9('68','UW0z')]},'body':_0x32b9('69','J]CI')+_0x2d4fcb+_0x32b9('6a','xzN1')+_0x491e0a+_0x32b9('6b','6E$*')+_0x491e0a};return new Promise(_0x5c3096=>{var _0x5b6caf={'uUvkf':function(_0x4a4d97){return _0x29ad69[_0x32b9('6c',']ClE')](_0x4a4d97);},'DuyNt':function(_0x13fd9c,_0x198a3d){return _0x29ad69[_0x32b9('6d','^&(L')](_0x13fd9c,_0x198a3d);},'ICBfL':_0x29ad69[_0x32b9('6e','X2mD')],'Zyfnw':_0x29ad69[_0x32b9('6f','@fKG')],'byegI':_0x29ad69[_0x32b9('70','USSM')],'PamiN':function(_0x3b37ed,_0x59e2ca){return _0x29ad69[_0x32b9('71','C^Hy')](_0x3b37ed,_0x59e2ca);},'sFQEt':function(_0x2a72de,_0x1ed64f){return _0x29ad69[_0x32b9('72','X2mD')](_0x2a72de,_0x1ed64f);},'teygu':_0x29ad69[_0x32b9('73','iNBu')],'wGwDg':_0x29ad69[_0x32b9('74','UW0z')],'MZhhB':_0x29ad69[_0x32b9('75','J7ec')]};$[_0x32b9('76','@fKG')](_0x23dfe2,(_0x2f354a,_0x4178dc,_0x23173c)=>{var _0x589b83={'poMYg':function(_0x69a26f){return _0x5b6caf[_0x32b9('77','6E$*')](_0x69a26f);}};try{if(_0x5b6caf[_0x32b9('78','@fKG')](_0x5b6caf[_0x32b9('79','C^Hy')],_0x5b6caf[_0x32b9('7a','*lOW')])){if(_0x2f354a){if(_0x5b6caf[_0x32b9('7b','0kRw')](_0x5b6caf[_0x32b9('7c',']ClE')],_0x5b6caf[_0x32b9('7d','X2mD')])){_0x23173c=JSON[_0x32b9('7e','NA2b')](_0x23173c);}else{console[_0x32b9('7f','RXJ8')]($[_0x32b9('80','iNBu')]+_0x32b9('81','S*Ha'));}}else{if(_0x5b6caf[_0x32b9('82','6E$*')](safeGet,_0x23173c)){if(_0x5b6caf[_0x32b9('83','acse')](_0x5b6caf[_0x32b9('84','S*Ha')],_0x5b6caf[_0x32b9('85','S*Ha')])){_0x23173c=JSON[_0x32b9('86','^7pz')](_0x23173c);}else{_0x23173c=JSON[_0x32b9('87','11m3')](_0x23173c);}}}}else{$[_0x32b9('88','USSM')](e);}}catch(_0x5abe50){$[_0x32b9('89','7zGv')](_0x5abe50);}finally{if(_0x5b6caf[_0x32b9('8a','Y&T5')](_0x5b6caf[_0x32b9('8b','%nVA')],_0x5b6caf[_0x32b9('8c','weh*')])){_0x5b6caf[_0x32b9('8d','J7ec')](_0x5c3096);}else{_0x589b83[_0x32b9('8e','YMJK')](_0x5c3096);}}});});}function shuye72(){var _0x40c5f4={'tYmGZ':function(_0x3f9314){return _0x3f9314();},'ghNDu':function(_0x29b6d9,_0x4d1a89){return _0x29b6d9!==_0x4d1a89;},'cPHKb':function(_0x5b72bb,_0xa60fad){return _0x5b72bb<_0xa60fad;},'nlkRo':function(_0x413efc,_0x24c3aa){return _0x413efc(_0x24c3aa);},'dksAM':function(_0x5b2719){return _0x5b2719();},'AFRCy':function(_0x56a366,_0x495a03){return _0x56a366===_0x495a03;},'pRZwx':_0x32b9('8f','a!u]'),'Ykkgx':function(_0x5066e6){return _0x5066e6();},'VVHog':_0x32b9('90','UW0z'),'tejWD':_0x32b9('91','V9od')};return new Promise(_0x1e9fa6=>{$[_0x32b9('92','S&pX')]({'url':_0x40c5f4[_0x32b9('93','acse')],'headers':{'User-Agent':_0x40c5f4[_0x32b9('94','N#qE')]},'timeout':0x1388},async(_0x3c88eb,_0x4881d2,_0x27f6e7)=>{try{if(_0x3c88eb){console[_0x32b9('95','USSM')]($[_0x32b9('38','USSM')]+_0x32b9('96','acse'));}else{$[_0x32b9('97','FG%@')]=JSON[_0x32b9('98','[9pj')](_0x27f6e7);await _0x40c5f4[_0x32b9('99','0kRw')](shuye73);if(_0x40c5f4[_0x32b9('9a','V9od')]($[_0x32b9('9b','J]CI')][_0x32b9('9c','%nVA')][_0x32b9('9d','Fz76')],0x0)){for(let _0x44028e=0x0;_0x40c5f4[_0x32b9('9e','^&(L')](_0x44028e,$[_0x32b9('9f','0kRw')][_0x32b9('a0','Fz76')][_0x32b9('a1','2z9K')]);_0x44028e++){let _0x324251=$[_0x32b9('a2','bdQY')][_0x32b9('a3','KA5z')][_0x44028e];await $[_0x32b9('a4','NA2b')](0x1f4);await _0x40c5f4[_0x32b9('a5','11m3')](wuzhi,_0x324251);}await _0x40c5f4[_0x32b9('a6','QkO)')](shuye74);}}}catch(_0x54481d){$[_0x32b9('88','USSM')](_0x54481d);}finally{if(_0x40c5f4[_0x32b9('a7','!GQ5')](_0x40c5f4[_0x32b9('a8','*lOW')],_0x40c5f4[_0x32b9('a9','!GQ5')])){_0x40c5f4[_0x32b9('aa','gU9(')](_0x1e9fa6);}else{console[_0x32b9('7f','RXJ8')]($[_0x32b9('ab','*lOW')]+_0x32b9('ac','^&(L'));}}});});}function shuye73(){var _0x54d07e={'JWvuP':function(_0x305164){return _0x305164();},'TtmJe':function(_0x4d7a6c,_0x34a8e7){return _0x4d7a6c!==_0x34a8e7;},'OMEoA':_0x32b9('ad','J7ec'),'dWCZA':_0x32b9('ae','04Im'),'rFfjn':function(_0x2fd0a3,_0x115157){return _0x2fd0a3===_0x115157;},'brPlw':_0x32b9('af','*lOW'),'Clqpf':_0x32b9('b0','^7pz'),'MiUnv':_0x32b9('b1','acse'),'HFyjD':_0x32b9('b2','V9od')};return new Promise(_0x1eb44b=>{var _0x31b7d2={'oxaEv':function(_0x3b4469){return _0x54d07e[_0x32b9('b3','acse')](_0x3b4469);},'JTFWt':function(_0x33ef0d,_0x38fe49){return _0x54d07e[_0x32b9('b4','RXJ8')](_0x33ef0d,_0x38fe49);},'aHKig':_0x54d07e[_0x32b9('b5','ouKJ')],'idNqn':_0x54d07e[_0x32b9('b6','11m3')],'idnaV':function(_0x4fd875,_0x2dc54c){return _0x54d07e[_0x32b9('b7','C^Hy')](_0x4fd875,_0x2dc54c);},'OhHbF':_0x54d07e[_0x32b9('b8','C^Hy')],'lFEba':_0x54d07e[_0x32b9('b9','ny]c')],'Pqkjd':_0x54d07e[_0x32b9('ba','YMJK')],'bRlsT':function(_0x2e3cc2){return _0x54d07e[_0x32b9('bb','04Im')](_0x2e3cc2);}};$[_0x32b9('bc','UW0z')]({'url':_0x54d07e[_0x32b9('bd','NA2b')],'timeout':0x1388},async(_0x2ac166,_0x267a77,_0x2b34a3)=>{if(_0x31b7d2[_0x32b9('be','11m3')](_0x31b7d2[_0x32b9('bf','USSM')],_0x31b7d2[_0x32b9('c0','RXJ8')])){try{if(_0x2ac166){if(_0x31b7d2[_0x32b9('c1','UwAS')](_0x31b7d2[_0x32b9('c2','C^Hy')],_0x31b7d2[_0x32b9('c3','%nVA')])){console[_0x32b9('37','ny]c')]($[_0x32b9('c4','YMJK')]+_0x32b9('c5','^7pz'));}else{_0x31b7d2[_0x32b9('c6','TogX')](_0x1eb44b);}}else{$[_0x32b9('c7','YMJK')]=JSON[_0x32b9('c8','Y&T5')](_0x2b34a3);$[_0x32b9('c9','Fz76')]=$[_0x32b9('ca','weh*')][_0x32b9('cb','11m3')];}}catch(_0x144696){$[_0x32b9('cc','^&(L')](_0x144696);}finally{if(_0x31b7d2[_0x32b9('cd','qCP(')](_0x31b7d2[_0x32b9('ce','bdQY')],_0x31b7d2[_0x32b9('cf',']072')])){_0x31b7d2[_0x32b9('d0','04Im')](_0x1eb44b);}else{console[_0x32b9('d1','a!u]')]($[_0x32b9('d2','xzN1')]+_0x32b9('d3','xzN1'));}}}else{$[_0x32b9('88','USSM')](e);}});});}function shuye74(){var _0x50f5af={'YmDPW':function(_0x35bd66){return _0x35bd66();},'yGQYB':function(_0x1bbff4,_0x594023){return _0x1bbff4!==_0x594023;},'jjTzd':_0x32b9('d4','[9pj'),'gcATY':_0x32b9('d5','Xl^F'),'oQZVE':function(_0x48a5be,_0x25abdf){return _0x48a5be(_0x25abdf);},'nvnbQ':function(_0x33664a,_0x63c944){return _0x33664a<_0x63c944;},'foCdZ':_0x32b9('d6','weh*'),'jYnLs':_0x32b9('d7','Fz76'),'yoTso':function(_0x51d89c){return _0x51d89c();},'jxDOU':function(_0xe5ee5e){return _0xe5ee5e();},'rhOVU':function(_0x462a2b,_0x329ab0){return _0x462a2b===_0x329ab0;},'NsTgz':_0x32b9('d8','S&pX'),'syYMI':_0x32b9('d9','xzN1'),'Fbrtw':_0x32b9('da','Y&T5')};return new Promise(_0x375913=>{var _0x405539={'NZOCw':function(_0x159d74){return _0x50f5af[_0x32b9('db',']072')](_0x159d74);}};if(_0x50f5af[_0x32b9('dc','a!u]')](_0x50f5af[_0x32b9('dd','S&pX')],_0x50f5af[_0x32b9('de','!GQ5')])){$[_0x32b9('df','@fKG')]({'url':_0x50f5af[_0x32b9('e0','xzN1')],'headers':{'User-Agent':_0x50f5af[_0x32b9('e1','C^Hy')]},'timeout':0x1388},async(_0x59c892,_0x616821,_0x391504)=>{var _0x5eeab6={'nnPzG':function(_0x11f221){return _0x50f5af[_0x32b9('e2','2z9K')](_0x11f221);}};try{if(_0x59c892){if(_0x50f5af[_0x32b9('e3','2z9K')](_0x50f5af[_0x32b9('e4','FG%@')],_0x50f5af[_0x32b9('e5','Y&T5')])){console[_0x32b9('e6','TogX')]($[_0x32b9('e7','0kRw')]+_0x32b9('3c','LW(G'));}else{console[_0x32b9('e8','^&(L')]($[_0x32b9('e9','S&pX')]+_0x32b9('ea','Fz76'));}}else{if(_0x50f5af[_0x32b9('eb','6E$*')](safeGet,_0x391504)){$[_0x32b9('ec','a!u]')]=JSON[_0x32b9('ed','S*Ha')](_0x391504);if(_0x50f5af[_0x32b9('ee',']072')]($[_0x32b9('ef','11m3')][_0x32b9('f0','ouKJ')],0x0)){for(let _0x3caffd=0x0;_0x50f5af[_0x32b9('f1',']072')](_0x3caffd,$[_0x32b9('9b','J]CI')][_0x32b9('f2','LW(G')][_0x32b9('f3','[9pj')]);_0x3caffd++){let _0x3b9342=$[_0x32b9('f4','N#qE')][_0x32b9('f5','Fz76')][_0x3caffd];await $[_0x32b9('f6','6E$*')](0x1f4);await _0x50f5af[_0x32b9('f7','04Im')](wuzhi01,_0x3b9342);}}}}}catch(_0x373b35){if(_0x50f5af[_0x32b9('f8','@fKG')](_0x50f5af[_0x32b9('f9','[9pj')],_0x50f5af[_0x32b9('fa','LW(G')])){$[_0x32b9('fb','%nVA')](_0x373b35);}else{_0x5eeab6[_0x32b9('fc','a!u]')](_0x375913);}}finally{_0x50f5af[_0x32b9('fd',']072')](_0x375913);}});}else{_0x405539[_0x32b9('fe',']072')](_0x375913);}});};_0xodc='jsjiami.com.v6';
// prettier-ignore
function Env(t,e){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)}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gald/jd28.git
git@gitee.com:gald/jd28.git
gald
jd28
jd28
master

搜索帮助