const _0x4337b3 = _0x27c5; (function(_0x95ee73, _0x34efaa) { const _0x5758ad = _0x27c5, _0x3fff1a = _0x95ee73(); while (!![]) { try { const _0x21d96c = -parseInt(_0x5758ad(0x1ce)) / 0x1 * (-parseInt(_0x5758ad(0x161)) / 0x2) + -parseInt(_0x5758ad(0x1b8)) / 0x3 + parseInt(_0x5758ad(0x127)) / 0x4 + parseInt(_0x5758ad(0x137)) / 0x5 + parseInt(_0x5758ad(0x19d)) / 0x6 + parseInt(_0x5758ad(0x198)) / 0x7 + -parseInt(_0x5758ad(0x1e0)) / 0x8; if (_0x21d96c === _0x34efaa) break; else _0x3fff1a['push'](_0x3fff1a['shift']()); } catch (_0x2a31b2) { _0x3fff1a['push'](_0x3fff1a['shift']()); } } }(_0x1425, 0xa86a7)); let arrLength= _0x1425().length; for (let index = 0; index { const _0x575223 = _0x4337b3; if (typeof $request !== _0x575223(0x16b)) $[_0x575223(0x182)](jsname + _0x575223(0x1ca)); else { await isValidCode(); if (validCode == ![]) return; if (!await checkEnv()) return; await initAccountInfo(), await userGetList(), await userReads(), await getStat(); } })()[_0x4337b3(0x18b)](_0x230c45 => $[_0x4337b3(0x1bb)](_0x230c45))[_0x4337b3(0x119)](() => $[_0x4337b3(0x14f)]()); async function showmsg() { const _0x3fa0c1 = _0x4337b3; notifyBody = jsname + _0x3fa0c1(0x17a) + notifyStr, notifyFlag != 0x1 && console[_0x3fa0c1(0x1b5)](notifyBody), notifyFlag == 0x1 && $[_0x3fa0c1(0x182)](notifyBody); } async function checkEnv() { const _0x577cd0 = _0x4337b3; if (userCookie) { if (userCookie[_0x577cd0(0x155)]('@') > -0x1) { let _0x388d7d = userCookie['split']('@'); for (let _0x31756d = 0x0; _0x31756d < _0x388d7d[_0x577cd0(0x114)]; _0x31756d++) { userCookieArr[_0x577cd0(0x1d9)](replaceCookie(_0x388d7d[_0x31756d])); } } else userCookieArr[_0x577cd0(0x1d9)](replaceCookie(userCookie)); } else return console[_0x577cd0(0x1b5)](_0x577cd0(0x108)), ![]; if (userCookieArr[_0x577cd0(0x114)] == 0x0) return console[_0x577cd0(0x1b5)](_0x577cd0(0x12d)), ![]; return console[_0x577cd0(0x1b5)](_0x577cd0(0x173) + userCookieArr[_0x577cd0(0x114)] + _0x577cd0(0x19e)), !![]; } function replaceCookie(_0x2bb396) { const _0xa92870 = _0x4337b3; let _0xcbd8e6 = '', _0x530395 = '', _0x38af07 = ''; if (_0x2bb396[_0xa92870(0x155)](_0xa92870(0x16d)) > -0x1) _0x530395 = _0x2bb396[_0xa92870(0x174)](/zqkey=([\w-]+)/)[0x1]; else _0x2bb396[_0xa92870(0x155)](_0xa92870(0x1eb)) > -0x1 && (_0x530395 = _0x2bb396[_0xa92870(0x174)](/cookie=([\w-]+)/)[0x1]); if (_0x2bb396[_0xa92870(0x155)](_0xa92870(0x18d)) > -0x1) _0x38af07 = _0x2bb396[_0xa92870(0x174)](/zqkey_id=([\w-]+)/)[0x1]; else _0x2bb396[_0xa92870(0x155)](_0xa92870(0x178)) > -0x1 && (_0x38af07 = _0x2bb396[_0xa92870(0x174)](/cookie_id=([\w-]+)/)[0x1]); return _0x2bb396[_0xa92870(0x155)](_0xa92870(0x10e)) > -0x1 && (uid = _0x2bb396[_0xa92870(0x174)](/uid=([\w-]+)/)[0x1]), _0xcbd8e6 = _0xa92870(0x10e) + uid + _0xa92870(0x10b) + _0x530395 + _0xa92870(0x1c8) + _0x38af07, _0xcbd8e6; } async function initAccountInfo() { const _0x3deab9 = _0x4337b3; for (userIdx = 0x0; userIdx < userCookieArr[_0x3deab9(0x114)]; userIdx++) { rewardCount[_0x3deab9(0x1d9)](0x0), userArtList[_0x3deab9(0x1d9)]([]); } } async function isValidCode() { const _0x42f6d1 = _0x4337b3; let _0x51e927 = printCaller(), _0x58c7f2 = { 'url': _0x42f6d1(0x1c7), 'headers': '' }; return new Promise(_0x27d750 => { const _0x3c00ba = _0x42f6d1; $[_0x3c00ba(0x1e5)](_0x58c7f2, async (_0x2f2351, _0x274378, _0x39c59b) => { const _0x26b49b = _0x3c00ba; try { if (_0x2f2351) console[_0x26b49b(0x1b5)](_0x51e927 + _0x26b49b(0x10f)), console[_0x26b49b(0x1b5)](JSON[_0x26b49b(0x11f)](_0x2f2351)), $[_0x26b49b(0x1bb)](_0x2f2351); else try { let _0x13b8d7 = JSON[_0x26b49b(0x1b4)](_0x39c59b); if (logDebug) console[_0x26b49b(0x1b5)](_0x13b8d7); _0x13b8d7['' + codeName] && _0x13b8d7['' + codeName] == 0x1 ? (validCode = !![], console[_0x26b49b(0x1b5)](_0x13b8d7[_0x26b49b(0x182)])) : console[_0x26b49b(0x1b5)](_0x13b8d7['errorMsg']); } catch (_0x2f8aa6) { $[_0x26b49b(0x1bb)](_0x2f8aa6, _0x274378); } finally { _0x27d750(); } } catch (_0x3d67a9) { $[_0x26b49b(0x1bb)](_0x3d67a9, _0x274378); } finally { _0x27d750(); } }); }); } function encodeMD5Str(_0x24d4d3) { const _0x5284da = _0x4337b3; return replacedStr = decodeURIComponent(_0x24d4d3), replacedStr = replacedStr[_0x5284da(0x148)](/\&/g, ''), replacedStr = replacedStr[_0x5284da(0x148)](/\+/g, '\x20'), replacedStr += fixStr, md5Str = CryptoJS[_0x5284da(0x19a)](replacedStr)[_0x5284da(0x1b2)](), md5Str; } function encodeUserBody(_0x21bf82, _0x39a802) { const _0x408362 = _0x4337b3; return encodeBody = EncFunc(_0x39a802), hexBody = CryptoJS[_0x408362(0x188)][_0x408362(0x12e)][_0x408362(0x1b4)](encodeBody), base64Body = CryptoJS[_0x408362(0x188)][_0x408362(0x19b)][_0x408362(0x11f)](hexBody), replaceBody3 = base64Body['replace'](/\+/g, '-'), replaceBody4 = replaceBody3[_0x408362(0x148)](/\//g, '_'), finalBody = encodeURIComponent(replaceBody4), finalBody = _0x21bf82 + finalBody + '==', finalBody; } async function getStat() { const _0x17dfcc = _0x4337b3; console[_0x17dfcc(0x1b5)](_0x17dfcc(0x1b9)); for (userIdx = 0x0; userIdx < userCookieArr[_0x17dfcc(0x114)]; userIdx++) { console[_0x17dfcc(0x1b5)]('账号' + (userIdx + 0x1) + _0x17dfcc(0x1c5) + rewardCount[userIdx] + '金币'); } } function _0x1425() { const _0x4587c6 = ['@chavy_boxjs_userCfgs.httpapi', 'done', 'resolve', 'assign', 'CBC', 'getSeconds', '*/*', 'indexOf', 'loaddata', 'got', 'setCookieSync', 'stack', 'media-url', 'initGotEnv', 'url', 'isArray', 'lodash_get', 'redirect', 'mediaUrl', '738286IgKNYP', 'object', 'timeout', 'getScript', 'zqkd_read_pro', 'getdata', 'read', 'isLoon', 'ctype', 'random', 'undefined', 'app_name=zqkd_app&app_version=3.6.0&carrier=CHINA+MOBILE&catid=', 'zqkey=', ':\x20未知失败', 'write', 'app_name=zqkd_app&app_version=3.6.0&carrier=CHINA+MOBILE&channel=c1031&device_brand=Android&device_id=56971302&device_model=MI+9&device_platform=android&device_type=android&dpi=240&inner_version=202108181534&language=zh-CN&memory=3&mi=0&mobile_type=1&net_type=1&network_type=WIFI&oaid=9bdf7bff-f3fe-2b18-5fff-3b3f3fd6873d&openudid=a6066063b6fbed67&os_api=22&os_version=MI+9-user+5.1.1+NMF26X+500211025+release-keys&request_time=1637953113&resolution=720x1280&rom_version=MI+9-user+5.1.1+NMF26X+500211025+release-keys&s_ad=c2JgR8oZr6IU%3DPE0cx099D1kf6lH6CywmGZt1WpGEHC6k&second=', '列表成功[catid=', '秒成功,今日阅读时长:', '共找到', 'match', 'valueForKey', 'GET', 'logs', 'cookie_id=', '\x0a本次运行将会阅读最多', '运行通知\x0a\x0a', 'existsSync', 'Utf8', 'crypto-js', 'android', 'cron', 'split', 'lodash_set', 'msg', 'toStr', 'https://kandian.wkandian.com/v5/article/', 'application/x-www-form-urlencoded', 'https://kandian.wkandian.com/v5/user/stay.json', ',\x20错误!', 'enc', '秒...', 'toObj', 'catch', 'getMinutes', 'zqkey_id=', 'http://', 'ckjar', 'keep-alive', 'Function\x20', 'mode', 'Content-Length', 'post', ':\x20get请求失败', 'getMonth', '领取阅读奖励:获得', '5207328iFxwrg', '/v1/scripting/evaluate', 'MD5', 'Base64', 'cwd', '7956690QTtLqL', '个用户', '@chavy_boxjs_userCfgs.httpapi_timeout', 'null', 'fetch', 'tough-cookie', 'isMute', 'openUrl', 'DES', 'isQuanX', '&openudid=a6066063b6fbed67&os_api=22&os_version=MI%209-user%205.1.1%20NMF26X%20500211025%20release-keys&phone_sim=1&request_time=', 'app_name=zqkd_app&app_version=3.6.0&carrier=CHINA+MOBILE&channel=c1031&device_brand=Android&device_id=56971302&device_model=MI+9&device_platform=android&device_type=android&dpi=240&id=', 'body', 'CookieJar', 'name', 'info', 'startTime', 'box.dat', 'runScript', 'kandian.wkandian.com', 'logSeparator', 'toString', 'substr', 'parse', 'log', 'Content-Type', 'abs', '911523lebnFs', '\x0a============================', 'concat', 'logErr', 'floor', 'getFullYear', 'exec', 'decrypt', '更新时长', 'map', '&resolution=720x1280&rom_version=MI+9-user+5.1.1+NMF26X+500211025+release-keys&s_ad=E2JgR8oZr6IU%3DPE0cx099D1kf6lH6CywmGZt1WpGEHC6k&s_im=XYdVi_XPUOzA%3D7RAdU6ohamNZSaVJf3_tqA%3D%3DZB&sm_device_id=20211112123533c490f279d26a934ca445950324c9601a01419a1241729573&storage=61.39&', ',\x20结束!\x20🕛\x20', '&version_code=63&', '本轮共获得了', '失败:', 'https://leafxcy.coding.net/p/validcode/d/validCode/git/raw/master/code.json', '&zqkey_id=', '&behot_time=0&oid=0&video_catid=', ':\x20此脚本不做重写,请检查重写设置', 'setjson', 'isSurge', '阅读文章', '3bUDjXZ', ':\x20服务器访问数据为空,请检查自身设备网络情况', 'w0o2DgAb', 'https://kandian.wkandian.com/v5/article/complete.json', 'getTime', 'headers', 'opts', 'isNode', 'statusCode', 'method', 'Cookie', 'push', 'pad', 'https://kandian.wkandian.com/v3/article/lists.json?catid=', 'isNeedRewrite', 'charAt', 'success', 'data', '28374696hyDeNm', '&inner_version=202108181534&is_push=0&language=zh-CN&memory=3&mi=0&mobile_type=1&net_type=1&network_type=WIFI&openudid=a6066063b6fbed67&os_api=22&os_version=MI+9-user+5.1.1+NMF26X+500211025+release-keys&request_time=', 'env', 'read_score', '随机等待', 'get', 'items', 'POST', '轮阅读\x20========', 'writeFileSync', 'zqkdCookie', 'cookie=', 'getHours', '&inner_version=202108181534&language=zh-CN&memory=3&mi=0&mobile_type=1&net_type=1&network_type=WIFI&openudid=a6066063b6fbed67&os_api=22&os_version=MI+9-user+5.1.1+NMF26X+500211025+release-keys&read_type=0&request_time=', 'writedata', '6HP', '&resolution=720x1280&rom_version=MI+9-user+5.1.1+NMF26X+500211025+release-keys&s_ad=8YFg4QJ5A6eY%3DV7HSxw3xQPoqyBklmolHheSGzQ_tFjm0&s_im=NYdVi_XPUOzA%3D7RAdU6ohamNZSaVJf3_tqA%3D%3DlK&sm_device_id=20211112123533c490f279d26a934ca445950324c9601a01419a1241729573&storage=61.39&', 'join', '未找到userCookie', '.$1', 'p=aFbVGOYyXwIo%3D', '&zqkey=', 'smCGUapF1YChc', 'path', 'uid=', ':\x20post请求失败', 'getjson', 'set-cookie', 'then', 'getDate', 'length', 'wait', '&access=WIFI&app_name=zqkd_app&app_version=3.6.0&carrier=CHINA%20MOBILE&channel=c1031&device_brand=Android&device_id=56971302&device_model=MI%209&device_platform=android&device_type=android&dpi=240&inner_version=202108181534&language=zh-CN&memory=3&mi=0&mobile_type=1&net_type=1&network_type=WIFI&openudid=a6066063b6fbed67&os_api=22&os_version=MI%209-user%205.1.1%20NMF26X%20500211025%20release-keys&phone_sim=1&request_time=', 'ZFH', 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM', 'finally', 'dataFile', 'jdvylqchJZrf', ',\x20开始!', 'VOG-AL10', 'open-url', 'stringify', 'send', '&sign=', 'setValueForKey', 'status', '&resolution=720x1280&rom_version=MI%209-user%205.1.1%20NMF26X%20500211025%20release-keys&s_ad=7wNMsLAQgw3E%3DsFCZYRlUUiSfaqjzozPOmj1DJGsQ0-KRmn&s_im=9FbVGOYyXwIo%3DZjZvSuQeb_qdBallAGaXUg%3D%3D8&sm_device_id=20211112123533c490f279d26a934ca445950324c9601a01419a1241729573&storage=61.39&', '领取阅读奖励失败:', 'call', '2276164KILfdd', 'setval', 'Pkcs7', '&channel=c1031&device_brand=Android&device_id=56971302&device_model=MI%209&device_platform=android&device_type=android&dpi=240&inner_version=202108181534&language=zh-CN&memory=3&mi=0&mobile_type=1&net_type=1&network_type=WIFI&oid=0&op=', 'trim', '&channel=c1031&device_brand=Android&device_id=56971302&device_model=MI+9&device_platform=android&device_type=android&dpi=240&id=', '未找到有效的userCookie', 'Hex', '没有领取到奖励,可能阅读间隔过短或已达阅读上限', 'access=WIFI&app_name=zqkd_app&app_version=3.6.0&behot_time=0&carrier=CHINA%20MOBILE&catid=', 'string', '观看视频', 'getval', 'detail', 'http', 'getMilliseconds', '3970100EFppcm', 'readFileSync', '&sm_device_id=20211112123533c490f279d26a934ca445950324c9601a01419a1241729573&storage=61.39&', '个文章视频', 'exports', 'test', 'reduce', '\x0a========\x20开始第', '中青看点文章视频', 'cookieJar', 'message', 'catid', 'encrypt', 'setdata', 'cktough', 'p=kFbVGOYyXwIo=', 'time', 'replace', 'slice', '列表失败:', '==============📣系统通知📣==============', 'ciphertext', '.json?']; _0x1425 = function() { return _0x4587c6; }; return _0x1425(); } async function userGetList() { const _0x25fba2 = _0x4337b3; for (userIdx = 0x0; userIdx < userCookieArr[_0x25fba2(0x114)]; userIdx++) { await ListArts(artCatid, videoCatid); } for (userIdx = 0x0; userIdx < userCookieArr[_0x25fba2(0x114)]; userIdx++) { await ListArts(videoCatid, artCatid); } } async function ListArts(_0x45b10e, _0x2f9d7c) { const _0x7204b1 = _0x4337b3; let _0x180f27 = printCaller(), _0x20cd64 = Math[_0x7204b1(0x1bc)](new Date()[_0x7204b1(0x1d2)]()), _0x5298f3 = Math[_0x7204b1(0x1bc)](new Date()[_0x7204b1(0x1d2)]() / 0x3e8), _0x42b814 = Math[_0x7204b1(0x1bc)](Math[_0x7204b1(0x16a)]() * 0x4), _0x2f66b8 = userCookieArr[userIdx][_0x7204b1(0x180)]('&'), _0x1aaaab = _0x7204b1(0x130) + _0x45b10e + _0x7204b1(0x12a) + _0x42b814 + _0x7204b1(0x1a7) + _0x5298f3 + _0x7204b1(0x124) + _0x2f66b8[0x0] + '&version_code=63&video_catid=' + _0x2f9d7c + '&' + _0x2f66b8[0x1] + '&' + _0x2f66b8[0x2], _0x5aa815 = encodeMD5Str(_0x1aaaab, _0x2f66b8), _0x1bd5b9 = _0x7204b1(0x1db) + _0x45b10e + '&op=' + _0x42b814 + _0x7204b1(0x1c9) + _0x2f9d7c + _0x7204b1(0x116) + _0x5298f3 + _0x7204b1(0x124) + _0x2f66b8[0x0] + _0x7204b1(0x1c4) + _0x2f66b8[0x1] + '&' + _0x2f66b8[0x2] + _0x7204b1(0x121) + _0x5aa815, _0x27b45c = populateGetUrl(_0x1bd5b9); await httpGet(_0x27b45c, _0x180f27); let _0x20aeed = httpResult; if (!_0x20aeed) return; let _0x2c7cc5 = ''; if (_0x45b10e == 0x0) _0x2c7cc5 = '文章'; else { if (_0x45b10e == 0x5ad) _0x2c7cc5 = '视频'; } if (_0x20aeed[_0x7204b1(0x1de)] == !![]) { for (let _0x2654c9 = 0x0; _0x2654c9 < _0x20aeed[_0x7204b1(0x1e6)][_0x7204b1(0x114)]; _0x2654c9++) { let _0x22a4aa = _0x20aeed[_0x7204b1(0x1e6)][_0x2654c9], _0x12afe0 = _0x22a4aa[_0x7204b1(0x169)] ? _0x22a4aa[_0x7204b1(0x169)] : ''; (_0x12afe0 == 0x0 || _0x12afe0 == 0x3) && userArtList[userIdx][_0x7204b1(0x1d9)](_0x22a4aa); } console[_0x7204b1(0x1b5)]('账号' + (userIdx + 0x1) + '获取' + _0x2c7cc5 + _0x7204b1(0x171) + _0x45b10e + ']'); } else console[_0x7204b1(0x1b5)]('账号' + (userIdx + 0x1) + '获取' + _0x2c7cc5 + _0x7204b1(0x14a) + _0x20aeed[_0x7204b1(0x141)]); } function _0x27c5(_0x9b79f8, _0x5edfff) { const _0x1425f6 = _0x1425(); return _0x27c5 = function(_0x27c540, _0xa4a4c) { _0x27c540 = _0x27c540 - 0x108; let _0x19df7a = _0x1425f6[_0x27c540]; return _0x19df7a; }, _0x27c5(_0x9b79f8, _0x5edfff); } async function userReads() { const _0x22208f = _0x4337b3; for (userIdx = 0x0; userIdx < userCookieArr[_0x22208f(0x114)]; userIdx++) { readLength = getMax(readLength, userArtList[userIdx][_0x22208f(0x114)]); } readLength = getMin(readLength, maxReadLength), console[_0x22208f(0x1b5)](_0x22208f(0x179) + readLength + _0x22208f(0x13a)); for (let _0x30e159 = 0x0; _0x30e159 < readLength; _0x30e159++) { console[_0x22208f(0x1b5)](_0x22208f(0x13e) + (_0x30e159 + 0x1) + _0x22208f(0x1e8)); for (userIdx = 0x0; userIdx < userCookieArr[_0x22208f(0x114)]; userIdx++) { if (_0x30e159 < userArtList[userIdx][_0x22208f(0x114)]) await GetArtsInfo(userArtList[userIdx][_0x30e159]); } let _0x5183d7 = 0xf230 + Math[_0x22208f(0x1bc)](Math[_0x22208f(0x16a)]() * 0x1770); console[_0x22208f(0x1b5)](_0x22208f(0x1e4) + _0x5183d7 / 0x3e8 + _0x22208f(0x189)), await $[_0x22208f(0x115)](_0x5183d7); for (userIdx = 0x0; userIdx < userCookieArr[_0x22208f(0x114)]; userIdx++) { if (_0x30e159 < userArtList[userIdx][_0x22208f(0x114)]) await CompleteArt(userArtList[userIdx][_0x30e159]['id']); } for (userIdx = 0x0; userIdx < userCookieArr[_0x22208f(0x114)]; userIdx++) { let _0x29de6f = 0x3c + Math[_0x22208f(0x1bc)](Math[_0x22208f(0x16a)]() * 0x8); if (_0x30e159 < userArtList[userIdx][_0x22208f(0x114)]) await UpdateStayTime(_0x29de6f); } } } async function GetArtsInfo(_0x1b56e6) { const _0x65b903 = _0x4337b3; let _0x150c89 = printCaller(), _0x1a0927 = Math[_0x65b903(0x1bc)](new Date()[_0x65b903(0x1d2)]() / 0x3e8), _0x1fc7bd = userCookieArr[userIdx][_0x65b903(0x180)]('&'), _0x5770e9 = _0x65b903(0x16c) + _0x1b56e6[_0x65b903(0x142)] + _0x65b903(0x12c) + _0x1b56e6['id'] + _0x65b903(0x1e1) + _0x1a0927 + _0x65b903(0x1c2) + _0x1fc7bd[0x0] + _0x65b903(0x1c4) + _0x1fc7bd[0x1] + '&' + _0x1fc7bd[0x2], _0x3d7aa9 = encodeMD5Str(_0x5770e9), _0x1f3a43 = _0x5770e9 + _0x65b903(0x121) + _0x3d7aa9, _0x91cc5e = encodeUserBody(artPreBody, _0x1f3a43), _0x200676 = '', _0x216fce = ''; if (_0x1b56e6[_0x65b903(0x169)] == 0x0) _0x200676 = _0x65b903(0x1ac), _0x216fce = _0x65b903(0x1cd); else _0x1b56e6[_0x65b903(0x169)] == 0x3 && (_0x200676 = _0x65b903(0x134), _0x216fce = _0x65b903(0x132)); let _0x2fd8f4 = _0x65b903(0x184) + _0x200676 + _0x65b903(0x14d) + _0x91cc5e, _0x41a706 = populateGetUrl(_0x2fd8f4); await httpGet(_0x41a706, _0x150c89); let _0x2af05c = httpResult; if (!_0x2af05c) return; _0x2af05c[_0x65b903(0x1de)] == !![] ? console[_0x65b903(0x1b5)]('账号' + (userIdx + 0x1) + '开始' + _0x216fce + ':' + _0x1b56e6['title']) : console[_0x65b903(0x1b5)]('账号' + (userIdx + 0x1) + _0x216fce + _0x65b903(0x1c6) + _0x2af05c[_0x65b903(0x141)]); } async function CompleteArt(_0x2b0f67) { const _0x2c1784 = _0x4337b3; let _0x32afc8 = printCaller(), _0x50e337 = Math[_0x2c1784(0x1bc)](new Date()[_0x2c1784(0x1d2)]() / 0x3e8), _0x95993f = userCookieArr[userIdx][_0x2c1784(0x180)]('&'), _0x3493df = _0x2c1784(0x1a8) + _0x2b0f67 + _0x2c1784(0x1ed) + _0x50e337 + _0x2c1784(0x1f0) + _0x95993f[0x0] + _0x2c1784(0x1c4) + _0x95993f[0x1] + '&' + _0x95993f[0x2], _0x15feec = encodeMD5Str(_0x3493df), _0x5d7c2b = _0x3493df + _0x2c1784(0x121) + _0x15feec, _0x2778ad = encodeUserBody(artPreBody, _0x5d7c2b), _0x30cc0d = _0x2c1784(0x1d1), _0x5c915c = populatePostUrl(_0x30cc0d, _0x2778ad); await httpPost(_0x5c915c, _0x32afc8); let _0x3c559 = httpResult; if (!_0x3c559) return; _0x3c559[_0x2c1784(0x1de)] == !![] ? _0x3c559[_0x2c1784(0x1e6)][_0x2c1784(0x1e3)] ? (rewardCount[userIdx] += parseInt(_0x3c559[_0x2c1784(0x1e6)][_0x2c1784(0x1e3)]), console[_0x2c1784(0x1b5)]('账号' + (userIdx + 0x1) + _0x2c1784(0x197) + _0x3c559[_0x2c1784(0x1e6)][_0x2c1784(0x1e3)] + '金币')) : console[_0x2c1784(0x1b5)]('账号' + (userIdx + 0x1) + _0x2c1784(0x12f)) : console[_0x2c1784(0x1b5)]('账号' + (userIdx + 0x1) + _0x2c1784(0x125) + _0x3c559[_0x2c1784(0x141)]); } async function UpdateStayTime(_0x54daba) { const _0x15c27b = _0x4337b3; let _0x2b6f45 = printCaller(), _0x5a6cc6 = Math[_0x15c27b(0x1bc)](new Date()[_0x15c27b(0x1d2)]() / 0x3e8), _0x2d200e = userCookieArr[userIdx][_0x15c27b(0x180)]('&'), _0x6cc7f2 = _0x15c27b(0x170) + _0x54daba + _0x15c27b(0x139) + _0x2d200e[0x0] + _0x15c27b(0x1c4) + _0x2d200e[0x1] + '&' + _0x2d200e[0x2], _0x14c163 = encodeMD5Str(_0x6cc7f2), _0x3be2f4 = _0x6cc7f2 + _0x15c27b(0x121) + _0x14c163, _0x3a474a = encodeUserBody(timePreBody, _0x3be2f4), _0x257498 = _0x15c27b(0x186), _0x1b3d09 = populatePostUrl(_0x257498, _0x3a474a); await httpPost(_0x1b3d09, _0x2b6f45); let _0x107613 = httpResult; if (!_0x107613) return; _0x107613[_0x15c27b(0x1de)] == !![] ? console[_0x15c27b(0x1b5)]('账号' + (userIdx + 0x1) + _0x15c27b(0x1c0) + _0x54daba + _0x15c27b(0x172) + _0x107613[_0x15c27b(0x147)] + '秒') : console[_0x15c27b(0x1b5)]('账号' + (userIdx + 0x1) + '更新时长失败:' + _0x107613[_0x15c27b(0x141)]); } function populatePostUrl(_0x2dd800, _0x470747) { const _0x2efac6 = _0x4337b3; let _0xe4c121 = Math[_0x2efac6(0x1bc)](new Date()[_0x2efac6(0x1d2)]() / 0x3e8), _0x4b0369 = { 'url': _0x2dd800, 'headers': { 'request_time': _0xe4c121, 'Host': _0x2efac6(0x1b0), 'device-model': _0x2efac6(0x11d), 'device-platform': 'android', 'Connection': _0x2efac6(0x190) }, 'body': _0x470747 }; return _0x4b0369; } function populateGetUrl(_0x102623) { const _0x35b117 = _0x4337b3; let _0x31817e = Math[_0x35b117(0x1bc)](new Date()[_0x35b117(0x1d2)]() / 0x3e8), _0x33e9f9 = { 'url': _0x102623, 'headers': { 'request_time': _0x31817e, 'Host': _0x35b117(0x1b0), 'device-model': _0x35b117(0x11d), 'device-platform': _0x35b117(0x17e), 'Connection': _0x35b117(0x190) } }; return _0x33e9f9; } async function httpPost(_0x3f91f5, _0x3b632e) { return httpResult = null, new Promise(_0x43e2c6 => { const _0x2328f9 = _0x27c5; $[_0x2328f9(0x194)](_0x3f91f5, async (_0x3a1fc2, _0x1a8f5d, _0x4a88fd) => { const _0x17dd3f = _0x2328f9; try { if (_0x3a1fc2) console[_0x17dd3f(0x1b5)](_0x3b632e + _0x17dd3f(0x10f)), console[_0x17dd3f(0x1b5)](JSON[_0x17dd3f(0x11f)](_0x3a1fc2)), $[_0x17dd3f(0x1bb)](_0x3a1fc2); else { if (safeGet(_0x4a88fd)) { httpResult = JSON[_0x17dd3f(0x1b4)](_0x4a88fd); if (logDebug) console[_0x17dd3f(0x1b5)](httpResult); } } } catch (_0x4593bf) { $[_0x17dd3f(0x1bb)](_0x4593bf, _0x1a8f5d); } finally { _0x43e2c6(); } }); }); } async function httpGet(_0x176233, _0x68ef3a) { return httpResult = null, new Promise(_0x5e5fc4 => { const _0x708c41 = _0x27c5; $[_0x708c41(0x1e5)](_0x176233, async (_0x265eb0, _0x2a1b6, _0x19738a) => { const _0x1361db = _0x708c41; try { if (_0x265eb0) console[_0x1361db(0x1b5)](_0x68ef3a + _0x1361db(0x195)), console[_0x1361db(0x1b5)](JSON[_0x1361db(0x11f)](_0x265eb0)), $[_0x1361db(0x1bb)](_0x265eb0); else { if (safeGet(_0x19738a, _0x68ef3a)) { httpResult = JSON['parse'](_0x19738a); if (logDebug) console[_0x1361db(0x1b5)](httpResult); } } } catch (_0x506938) { $[_0x1361db(0x1bb)](_0x506938, _0x2a1b6); } finally { _0x5e5fc4(); } }); }); } function safeGet(_0x13fd40, _0x85868a) { const _0x525f1d = _0x4337b3; try { if (typeof JSON[_0x525f1d(0x1b4)](_0x13fd40) == _0x525f1d(0x162)) return !![]; else console[_0x525f1d(0x1b5)](_0x525f1d(0x191) + _0x85868a + _0x525f1d(0x16e)), console[_0x525f1d(0x1b5)](_0x13fd40); } catch (_0x500742) { return console['log'](_0x500742), console[_0x525f1d(0x1b5)](_0x525f1d(0x191) + _0x85868a + _0x525f1d(0x1cf)), ![]; } } function getMin(_0x411377, _0x540255) { return _0x411377 < _0x540255 ? _0x411377 : _0x540255; } function getMax(_0x5217b1, _0x4c7586) { return _0x5217b1 < _0x4c7586 ? _0x4c7586 : _0x5217b1; } function printCaller() { const _0x79cf60 = _0x4337b3; return new Error()[_0x79cf60(0x159)][_0x79cf60(0x180)]('\x0a')[0x2][_0x79cf60(0x12b)]()[_0x79cf60(0x180)]('\x20')[0x1]; } function EncFunc(_0x4db381) { const _0x2a6912 = _0x4337b3; var _0x50c2e4 = CryptoJS[_0x2a6912(0x188)][_0x2a6912(0x17c)][_0x2a6912(0x1b4)](key), _0xbff600 = CryptoJS[_0x2a6912(0x188)][_0x2a6912(0x17c)][_0x2a6912(0x1b4)](key), _0x259313 = CryptoJS[_0x2a6912(0x188)][_0x2a6912(0x17c)][_0x2a6912(0x1b4)](_0x4db381); return encrypted = CryptoJS[_0x2a6912(0x1a5)][_0x2a6912(0x143)](_0x259313, _0x50c2e4, { 'iv': _0xbff600, 'mode': CryptoJS[_0x2a6912(0x192)][_0x2a6912(0x152)], 'padding': CryptoJS[_0x2a6912(0x1da)][_0x2a6912(0x129)] }), encrypted[_0x2a6912(0x14c)][_0x2a6912(0x1b2)](); } function DecFunc(_0x20f8b2) { const _0x11eb14 = _0x4337b3; var _0x247da2 = CryptoJS[_0x11eb14(0x188)][_0x11eb14(0x17c)][_0x11eb14(0x1b4)](key), _0x2171d6 = CryptoJS[_0x11eb14(0x188)][_0x11eb14(0x17c)][_0x11eb14(0x1b4)](key), _0x3be6c2 = CryptoJS[_0x11eb14(0x1a5)][_0x11eb14(0x1bf)]({ 'ciphertext': CryptoJS[_0x11eb14(0x188)][_0x11eb14(0x19b)][_0x11eb14(0x1b4)](_0x20f8b2) }, _0x247da2, { 'iv': _0x2171d6, 'mode': CryptoJS[_0x11eb14(0x192)][_0x11eb14(0x152)], 'padding': CryptoJS[_0x11eb14(0x1da)][_0x11eb14(0x129)] }); return _0x3be6c2[_0x11eb14(0x1b2)](CryptoJS[_0x11eb14(0x188)][_0x11eb14(0x17c)]); } function randomString(_0x34e7f1 = 0xc) { const _0x5a32ac = _0x4337b3; let _0xc00b6c = _0x5a32ac(0x118), _0x4aac46 = _0xc00b6c[_0x5a32ac(0x114)], _0x525c8d = ''; for (i = 0x0; i < _0x34e7f1; i++) { _0x525c8d += _0xc00b6c[_0x5a32ac(0x1dd)](Math[_0x5a32ac(0x1bc)](Math[_0x5a32ac(0x16a)]() * _0x4aac46)); } return _0x525c8d; } 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"]),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)}