From d72b1edc48028a4106f8c45e2bd1fa70261cccc2 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Fri, 10 May 2024 21:35:14 +0800 Subject: [PATCH] chore: build core.lib --- .../src/adapters/NodeIDependsAdapter.js | 2 +- .../src/adapters/NodeIDispatcherAdapter.js | 2 +- .../src/adapters/NodeIGlobalAdapter.js | 2 +- src/core.lib/src/adapters/index.js | 2 +- src/core.lib/src/apis/file.js | 2 +- src/core.lib/src/apis/friend.js | 2 +- src/core.lib/src/apis/group.js | 2 +- src/core.lib/src/apis/index.js | 2 +- src/core.lib/src/apis/msg.js | 2 +- src/core.lib/src/apis/sign.js | 2 +- src/core.lib/src/apis/user.js | 2 +- src/core.lib/src/apis/webapi.js | 2 +- src/core.lib/src/core.js | 2 +- src/core.lib/src/data.d.ts | 5 +- src/core.lib/src/data.js | 2 +- src/core.lib/src/entities/cache.js | 2 +- src/core.lib/src/entities/constructor.js | 2 +- src/core.lib/src/entities/group.js | 2 +- src/core.lib/src/entities/index.js | 2 +- src/core.lib/src/entities/msg.d.ts | 187 +++++++++--------- src/core.lib/src/entities/msg.js | 2 +- src/core.lib/src/entities/notify.js | 2 +- src/core.lib/src/entities/user.d.ts | 99 +++++----- src/core.lib/src/entities/user.js | 2 +- src/core.lib/src/external/hook.js | 2 +- src/core.lib/src/index.js | 2 +- .../src/listeners/NodeIKernelBuddyListener.js | 2 +- .../NodeIKernelFileAssistantListener.js | 2 +- .../src/listeners/NodeIKernelGroupListener.js | 2 +- .../src/listeners/NodeIKernelLoginListener.js | 2 +- .../src/listeners/NodeIKernelMsgListener.js | 2 +- .../listeners/NodeIKernelProfileListener.js | 2 +- .../src/listeners/NodeIKernelRobotListener.js | 2 +- .../listeners/NodeIKernelSessionListener.js | 2 +- .../NodeIKernelStorageCleanListener.js | 2 +- src/core.lib/src/listeners/index.js | 2 +- .../services/NodeIKernelAvatarService.d.ts | 2 +- .../src/services/NodeIKernelGroupService.d.ts | 12 +- .../NodeIKernelProfileLikeService.d.ts | 2 +- src/core.lib/src/services/common.js | 2 +- src/core.lib/src/services/index.js | 2 +- src/core.lib/src/sessionConfig.js | 2 +- src/core.lib/src/utils/config.js | 2 +- src/core.lib/src/utils/db.js | 2 +- src/core.lib/src/wrapper.js | 2 +- src/hook/frida_lood.ts | 39 ++++ src/hook/frida_script.js | 24 +++ src/hook/test.cjs | 23 +++ vite.config.ts | 2 +- 49 files changed, 284 insertions(+), 189 deletions(-) create mode 100644 src/hook/frida_lood.ts create mode 100644 src/hook/frida_script.js create mode 100644 src/hook/test.cjs diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 2d27c092..5be09a49 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x463abf=_0x51a3;(function(_0x415bdf,_0x3836fc){var _0x6a69ee=_0x51a3,_0x3f2d1f=_0x415bdf();while(!![]){try{var _0x66d4b8=parseInt(_0x6a69ee(0x108))/0x1*(-parseInt(_0x6a69ee(0x104))/0x2)+parseInt(_0x6a69ee(0x107))/0x3*(parseInt(_0x6a69ee(0xfe))/0x4)+parseInt(_0x6a69ee(0x100))/0x5*(-parseInt(_0x6a69ee(0x102))/0x6)+-parseInt(_0x6a69ee(0x105))/0x7+parseInt(_0x6a69ee(0xff))/0x8*(-parseInt(_0x6a69ee(0x103))/0x9)+-parseInt(_0x6a69ee(0x106))/0xa+parseInt(_0x6a69ee(0xfd))/0xb;if(_0x66d4b8===_0x3836fc)break;else _0x3f2d1f['push'](_0x3f2d1f['shift']());}catch(_0xac436){_0x3f2d1f['push'](_0x3f2d1f['shift']());}}}(_0x598e,0xbb997));export class DependsAdapter{[_0x463abf(0x101)](_0x6f68da,_0x2e20f8){}['onMSFSsoError'](_0x1b71ee){}[_0x463abf(0x109)](_0x28a7fc){}}function _0x51a3(_0x273e9f,_0x5153db){var _0x598e67=_0x598e();return _0x51a3=function(_0x51a334,_0x36c56b){_0x51a334=_0x51a334-0xfd;var _0x2a7df1=_0x598e67[_0x51a334];return _0x2a7df1;},_0x51a3(_0x273e9f,_0x5153db);}function _0x598e(){var _0x4e3b92=['447245Jwckug','onMSFStatusChange','48TzOORq','12187287JmPfHE','1352oYlOwe','5972820zBuvpH','6653420jUdBPQ','62547QNlFIm','149dOwOhb','getGroupCode','48344131BlrLzq','12esARHN','8RHfosg'];_0x598e=function(){return _0x4e3b92;};return _0x598e();} \ No newline at end of file +function _0x17d8(){var _0x5694df=['onMSFSsoError','3238890dwfwfl','30jJrteq','1ImCJWd','3590hluMip','5056fkZwmi','375044suweBc','200438CvyUyZ','1114435azHjEO','2133bkntnk','getGroupCode','19426IlEnmJ','30tpzwCM','27850104QBYMiy'];_0x17d8=function(){return _0x5694df;};return _0x17d8();}var _0x505f3c=_0x1f5f;function _0x1f5f(_0x250e11,_0x51c242){var _0x17d8b8=_0x17d8();return _0x1f5f=function(_0x1f5fae,_0x507b30){_0x1f5fae=_0x1f5fae-0x99;var _0x205e3b=_0x17d8b8[_0x1f5fae];return _0x205e3b;},_0x1f5f(_0x250e11,_0x51c242);}(function(_0x1bc38b,_0x10e5fd){var _0x1a2732=_0x1f5f,_0x39b6cf=_0x1bc38b();while(!![]){try{var _0x3dc2e1=-parseInt(_0x1a2732(0x99))/0x1*(-parseInt(_0x1a2732(0x9d))/0x2)+parseInt(_0x1a2732(0xa6))/0x3*(-parseInt(_0x1a2732(0x9c))/0x4)+parseInt(_0x1a2732(0xa5))/0x5+parseInt(_0x1a2732(0xa2))/0x6*(-parseInt(_0x1a2732(0x9e))/0x7)+-parseInt(_0x1a2732(0x9b))/0x8*(-parseInt(_0x1a2732(0x9f))/0x9)+-parseInt(_0x1a2732(0x9a))/0xa*(parseInt(_0x1a2732(0xa1))/0xb)+parseInt(_0x1a2732(0xa3))/0xc;if(_0x3dc2e1===_0x10e5fd)break;else _0x39b6cf['push'](_0x39b6cf['shift']());}catch(_0x2692d6){_0x39b6cf['push'](_0x39b6cf['shift']());}}}(_0x17d8,0xcfc32));export class DependsAdapter{['onMSFStatusChange'](_0x5e120f,_0x143e38){}[_0x505f3c(0xa4)](_0x472e7b){}[_0x505f3c(0xa0)](_0x494ba5){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js index 9b047090..146d2f09 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -var _0x2e32fb=_0x1d33;(function(_0x39a9b9,_0x112fef){var _0x50750d=_0x1d33,_0x3b5cc5=_0x39a9b9();while(!![]){try{var _0x3fafbb=-parseInt(_0x50750d(0x17c))/0x1+parseInt(_0x50750d(0x184))/0x2+-parseInt(_0x50750d(0x181))/0x3*(-parseInt(_0x50750d(0x180))/0x4)+parseInt(_0x50750d(0x178))/0x5*(-parseInt(_0x50750d(0x182))/0x6)+parseInt(_0x50750d(0x17a))/0x7*(-parseInt(_0x50750d(0x179))/0x8)+-parseInt(_0x50750d(0x17b))/0x9*(parseInt(_0x50750d(0x17e))/0xa)+-parseInt(_0x50750d(0x183))/0xb*(-parseInt(_0x50750d(0x17f))/0xc);if(_0x3fafbb===_0x112fef)break;else _0x3b5cc5['push'](_0x3b5cc5['shift']());}catch(_0x2e7f60){_0x3b5cc5['push'](_0x3b5cc5['shift']());}}}(_0x5549,0xdf5cd));export class DispatcherAdapter{[_0x2e32fb(0x177)](_0x266654){}[_0x2e32fb(0x17d)](_0xc9f694){}['dispatchCallWithJson'](_0x290af5){}}function _0x1d33(_0x5d814b,_0x4de499){var _0x55498e=_0x5549();return _0x1d33=function(_0x1d3310,_0x3fafeb){_0x1d3310=_0x1d3310-0x177;var _0x538797=_0x55498e[_0x1d3310];return _0x538797;},_0x1d33(_0x5d814b,_0x4de499);}function _0x5549(){var _0x33af44=['1490400fWhVAh','dispatchRequest','5997405mXEpHK','1734576dKFZWf','28uRBLKN','81hmKpWH','47690rDGuNG','dispatchCall','412570KDpxSZ','961008BylLHQ','4afrTBf','278331NFmWBT','6CmCbNs','352Psdprq'];_0x5549=function(){return _0x33af44;};return _0x5549();} \ No newline at end of file +var _0x5ddcc4=_0x577a;function _0x577a(_0x4a14fa,_0x17ecc1){var _0x5d9534=_0x5d95();return _0x577a=function(_0x577a25,_0x4bd0ad){_0x577a25=_0x577a25-0x1bd;var _0x3f9579=_0x5d9534[_0x577a25];return _0x3f9579;},_0x577a(_0x4a14fa,_0x17ecc1);}function _0x5d95(){var _0x3a2531=['28rzejXc','18nvKNwz','29437oKURhS','4974152mOdpgX','2894697TDwviC','1808688xbQfgD','dispatchRequest','5999395lQhzAk','dispatchCall','6764370oZxyTR','1931531MApCKC'];_0x5d95=function(){return _0x3a2531;};return _0x5d95();}(function(_0x43309e,_0x10ce7e){var _0x5b79ae=_0x577a,_0x4b0033=_0x43309e();while(!![]){try{var _0x5eff22=-parseInt(_0x5b79ae(0x1bf))/0x1*(parseInt(_0x5b79ae(0x1bd))/0x2)+-parseInt(_0x5b79ae(0x1c1))/0x3+parseInt(_0x5b79ae(0x1c2))/0x4+parseInt(_0x5b79ae(0x1c4))/0x5+-parseInt(_0x5b79ae(0x1c6))/0x6+parseInt(_0x5b79ae(0x1c7))/0x7+parseInt(_0x5b79ae(0x1c0))/0x8*(parseInt(_0x5b79ae(0x1be))/0x9);if(_0x5eff22===_0x10ce7e)break;else _0x4b0033['push'](_0x4b0033['shift']());}catch(_0x333ea5){_0x4b0033['push'](_0x4b0033['shift']());}}}(_0x5d95,0xa2de6));export class DispatcherAdapter{[_0x5ddcc4(0x1c3)](_0x467943){}[_0x5ddcc4(0x1c5)](_0xa54f12){}['dispatchCallWithJson'](_0x2e32cd){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIGlobalAdapter.js b/src/core.lib/src/adapters/NodeIGlobalAdapter.js index 718cb2cf..8173d936 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -var _0x16d991=_0x207b;function _0x4fcc(){var _0x5db60e=['5564EFqmNo','3722173TGumvO','1052326PCIpvz','2973192UGWSwH','3010OcomBZ','onGetOfflineMsg','1276653faZgng','onGetSrvCalTime','onLog','onShowErrUITips','82888QWjBQt','onInstallFinished','161403tdENCd'];_0x4fcc=function(){return _0x5db60e;};return _0x4fcc();}(function(_0x3b5787,_0x5cd503){var _0x454792=_0x207b,_0x1c894b=_0x3b5787();while(!![]){try{var _0x241898=parseInt(_0x454792(0x1a3))/0x1+parseInt(_0x454792(0x1ac))/0x2+parseInt(_0x454792(0x1a9))/0x3+-parseInt(_0x454792(0x1aa))/0x4*(parseInt(_0x454792(0x1a1))/0x5)+parseInt(_0x454792(0x1ad))/0x6+-parseInt(_0x454792(0x1ab))/0x7+-parseInt(_0x454792(0x1a7))/0x8;if(_0x241898===_0x5cd503)break;else _0x1c894b['push'](_0x1c894b['shift']());}catch(_0x5cf8e8){_0x1c894b['push'](_0x1c894b['shift']());}}}(_0x4fcc,0xed77b));function _0x207b(_0x3fe3cb,_0x34d262){var _0x4fcc64=_0x4fcc();return _0x207b=function(_0x207bc1,_0x47dbe8){_0x207bc1=_0x207bc1-0x1a1;var _0x471594=_0x4fcc64[_0x207bc1];return _0x471594;},_0x207b(_0x3fe3cb,_0x34d262);}export class GlobalAdapter{[_0x16d991(0x1a5)](..._0x269547){}[_0x16d991(0x1a4)](..._0x4a0a38){}[_0x16d991(0x1a6)](..._0x38efb9){}['fixPicImgType'](..._0x5ec1ff){}['getAppSetting'](..._0x129eee){}[_0x16d991(0x1a8)](..._0x1dbbc1){}['onUpdateGeneralFlag'](..._0x14ada4){}[_0x16d991(0x1a2)](..._0x31bed4){}} \ No newline at end of file +function _0x57c3(){var _0x6ef6b=['onShowErrUITips','27388khJIdg','246552fJDbzw','onGetOfflineMsg','1426365Zdgwqb','908432GhzxwW','fixPicImgType','92089dauVTr','495420lEwNAh','onLog','onInstallFinished','1783020VFvUrD','getAppSetting'];_0x57c3=function(){return _0x6ef6b;};return _0x57c3();}var _0x510840=_0x8096;function _0x8096(_0x3e941f,_0x473614){var _0x57c33d=_0x57c3();return _0x8096=function(_0x80964,_0x4effd0){_0x80964=_0x80964-0xa4;var _0x417f5e=_0x57c33d[_0x80964];return _0x417f5e;},_0x8096(_0x3e941f,_0x473614);}(function(_0x5ca683,_0x926acf){var _0x437c51=_0x8096,_0x5d7818=_0x5ca683();while(!![]){try{var _0x2fb9ca=parseInt(_0x437c51(0xaa))/0x1+-parseInt(_0x437c51(0xab))/0x2+-parseInt(_0x437c51(0xa5))/0x3+-parseInt(_0x437c51(0xa4))/0x4+parseInt(_0x437c51(0xa7))/0x5+parseInt(_0x437c51(0xae))/0x6+-parseInt(_0x437c51(0xa8))/0x7;if(_0x2fb9ca===_0x926acf)break;else _0x5d7818['push'](_0x5d7818['shift']());}catch(_0x978e5){_0x5d7818['push'](_0x5d7818['shift']());}}}(_0x57c3,0x32c8f));export class GlobalAdapter{[_0x510840(0xac)](..._0x20d300){}['onGetSrvCalTime'](..._0x15bb0c){}[_0x510840(0xb0)](..._0x6e871e){}[_0x510840(0xa9)](..._0x195481){}[_0x510840(0xaf)](..._0x547248){}[_0x510840(0xad)](..._0x4f7bf3){}['onUpdateGeneralFlag'](..._0x3b39e9){}[_0x510840(0xa6)](..._0x204886){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/index.js b/src/core.lib/src/adapters/index.js index 9d468e31..313d4aeb 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(function(_0x1e3249,_0x446ce9){var _0x7c0701=_0x4d21,_0x5b8cbd=_0x1e3249();while(!![]){try{var _0x1a3f59=-parseInt(_0x7c0701(0x1dd))/0x1+parseInt(_0x7c0701(0x1e4))/0x2+parseInt(_0x7c0701(0x1e3))/0x3+-parseInt(_0x7c0701(0x1de))/0x4*(parseInt(_0x7c0701(0x1df))/0x5)+-parseInt(_0x7c0701(0x1e0))/0x6*(parseInt(_0x7c0701(0x1e2))/0x7)+-parseInt(_0x7c0701(0x1e5))/0x8+parseInt(_0x7c0701(0x1e1))/0x9;if(_0x1a3f59===_0x446ce9)break;else _0x5b8cbd['push'](_0x5b8cbd['shift']());}catch(_0x423d7e){_0x5b8cbd['push'](_0x5b8cbd['shift']());}}}(_0x4f2d,0x455a7));export*from'./NodeIDependsAdapter';function _0x4d21(_0xd9e12f,_0x4bac6e){var _0x4f2d21=_0x4f2d();return _0x4d21=function(_0x4d212e,_0xe6109e){_0x4d212e=_0x4d212e-0x1dd;var _0x3caeec=_0x4f2d21[_0x4d212e];return _0x3caeec;},_0x4d21(_0xd9e12f,_0x4bac6e);}function _0x4f2d(){var _0x1e83cd=['1378307dCiJow','634326JIedEa','705878mkGcUN','1268008vNLJby','364126aUFJBT','172684iOjfEZ','50pGmkvF','6AXVLuD','7838352lNtTdu'];_0x4f2d=function(){return _0x1e83cd;};return _0x4f2d();}export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file +function _0x5ed0(){var _0x69a451=['493497PHECkP','2956987jCfecQ','834zjORwY','90TzVfOr','4qRFLQu','4090168UQXyuJ','3518RfZPhj','449445yrwpCC','12ocPvDN','5810yHSLke','4506kSyDUb','2843935lbltXN'];_0x5ed0=function(){return _0x69a451;};return _0x5ed0();}(function(_0x56275f,_0x1d7015){var _0xaf83d1=_0x4e9a,_0x38a2b7=_0x56275f();while(!![]){try{var _0x32af61=-parseInt(_0xaf83d1(0x13c))/0x1+parseInt(_0xaf83d1(0x13b))/0x2*(parseInt(_0xaf83d1(0x137))/0x3)+-parseInt(_0xaf83d1(0x139))/0x4*(parseInt(_0xaf83d1(0x140))/0x5)+parseInt(_0xaf83d1(0x13f))/0x6*(parseInt(_0xaf83d1(0x13e))/0x7)+parseInt(_0xaf83d1(0x13a))/0x8+-parseInt(_0xaf83d1(0x141))/0x9*(parseInt(_0xaf83d1(0x138))/0xa)+-parseInt(_0xaf83d1(0x142))/0xb*(-parseInt(_0xaf83d1(0x13d))/0xc);if(_0x32af61===_0x1d7015)break;else _0x38a2b7['push'](_0x38a2b7['shift']());}catch(_0x552dee){_0x38a2b7['push'](_0x38a2b7['shift']());}}}(_0x5ed0,0x5cf13));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x4e9a(_0xe6242d,_0x373751){var _0x5ed0c2=_0x5ed0();return _0x4e9a=function(_0x4e9a84,_0xd602f0){_0x4e9a84=_0x4e9a84-0x137;var _0x335ecd=_0x5ed0c2[_0x4e9a84];return _0x335ecd;},_0x4e9a(_0xe6242d,_0x373751);}export*from'./NodeIGlobalAdapter'; \ No newline at end of file diff --git a/src/core.lib/src/apis/file.js b/src/core.lib/src/apis/file.js index 8411ae71..cb3b7891 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x204330=_0x2296;(function(_0x427df8,_0x455fe9){const _0x270fe5=_0x2296,_0x2816ed=_0x427df8();while(!![]){try{const _0x40fda6=-parseInt(_0x270fe5(0x108))/0x1+parseInt(_0x270fe5(0xd6))/0x2+parseInt(_0x270fe5(0x10d))/0x3+-parseInt(_0x270fe5(0x11d))/0x4*(parseInt(_0x270fe5(0xd9))/0x5)+parseInt(_0x270fe5(0x120))/0x6*(-parseInt(_0x270fe5(0x122))/0x7)+parseInt(_0x270fe5(0xf5))/0x8*(parseInt(_0x270fe5(0xed))/0x9)+-parseInt(_0x270fe5(0x10a))/0xa*(-parseInt(_0x270fe5(0x12b))/0xb);if(_0x40fda6===_0x455fe9)break;else _0x2816ed['push'](_0x2816ed['shift']());}catch(_0x2920de){_0x2816ed['push'](_0x2816ed['shift']());}}}(_0x3ab5,0x94a69));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x43e3e5 from'path';import _0x6716c8 from'fs';import _0x3e1f15 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x379946 from'file-type';import{MsgListener}from'@/core/listeners';import _0x4c6085 from'image-size';function _0x2296(_0x4d9ae7,_0x5f4a38){const _0x3ab52a=_0x3ab5();return _0x2296=function(_0x229620,_0x209bbe){_0x229620=_0x229620-0xc4;let _0x3c5bd7=_0x3ab52a[_0x229620];return _0x3c5bd7;},_0x2296(_0x4d9ae7,_0x5f4a38);}import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';function _0x3ab5(){const _0x8ad19f=['tmp','downloadMedia\x20complete','hotUpdate','HKRPH','copyFile','addCacheScannedPaths','/gchatpic_new/0/0-0-','IxGoK','getMsgService','atiSv','ctFuL','图片rkey有误','hookApi\x20is\x20not\x20available','originImageUrl','delete','1153690xhrQUT','error','includes','169245LzEEgE','PIC','addCacheScanedPaths','getFileType','catch','toUpperCase','VxldF','getRKey','psyUx','YctpS','picElement','now','ext','cJKkj','getImageSize','getFileCacheInfo','elementId','md5HexStr','rkey过期或着未获取,\x20url:','ZsKsy','1216665nrhuEt','DXYuE','peerUid','isAvailable','sourcePath','getImageUrl','JLuLD','wpNrd','48FIvpPi','getFileSize','then','图片rkey有效','downloadRichMedia','getChatCacheList','set','fukZe','dtUTA','下载超时','kNate','addListener','clearCache','hQIHL','getDesktopTmpPath','KxbfA','clearChatCacheInfo','uploadFile','/download','717976OJLDFi',',\x20rkey:','190deJxcc','getChatCacheInfo','clearChatCache','1753494LfFrIf','fpVbs','vjKvd','scanCache','bTgkg','basename','TvNqN','ppNVH','xypsE','uuZfJ','vduqh','GdBhe','addTask','session','startsWith','msgId','16hsqETz','find','sIfSz','362148FAPlxG','MHBPR','105mCYyni','clearCacheDataByKeys','statusCode','图片rkey获取失败','downloadMedia','downloadPath','setCacheSilentScan','start\x20downloadMedia','onRichMediaDownloadComplete','228778iMLOmZ','group','existsSync','yFRBj','nLINR','检查rkey是否有效','fileTypeFromFile','获取图片rkey...','nIEVz','receive\x20downloadMedia\x20task','chatType','getStorageCleanService','开始调用moeHook获取rkey','get','getCacheSessionPathList','getRichMediaFilePathForGuild','util'];_0x3ab5=function(){return _0x8ad19f;};return _0x3ab5();}import _0x28e146 from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x204330(0x12a)]=_0x5c51b8=>{const _0x4c1d07=_0x204330,_0x396ac9={'fpVbs':function(_0x178008,_0x4a693b){return _0x178008(_0x4a693b);}};for(const [_0x4a1242,_0x3162b6]of downloadMediaTasks){_0x396ac9[_0x4c1d07(0x10e)](_0x3162b6,_0x5c51b8),downloadMediaTasks[_0x4c1d07(0xd5)](_0x4a1242);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x1fcd95=_0x2296;napCatCore[_0x1fcd95(0x100)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x204330(0xdc)](_0x3041d6){const _0x30b151=_0x204330;return _0x379946[_0x30b151(0x131)](_0x3041d6);}static async['copyFile'](_0x5abff1,_0x373a0b){const _0x4265c1=_0x204330;await napCatCore[_0x4265c1(0xc6)]['copyFile'](_0x5abff1,_0x373a0b);}static async[_0x204330(0xf6)](_0x2d2bcf){return await napCatCore['util']['getFileSize'](_0x2d2bcf);}static async[_0x204330(0x106)](_0x218377,_0x4db477=ElementType[_0x204330(0xda)],_0x5b5c87=0x0){const _0x50efbf=_0x204330,_0x4d705b={'sIfSz':function(_0x32c07f,_0x293ff7){return _0x32c07f(_0x293ff7);},'JNPmL':function(_0x141e94,_0x2dfaae){return _0x141e94+_0x2dfaae;},'bTgkg':function(_0x3db901,_0xe4bf60){return _0x3db901===_0xe4bf60;}},_0x4cbd40=await _0x4d705b[_0x50efbf(0x11f)](calculateFileMD5,_0x218377);let _0x2f39e9=(await NTQQFileApi[_0x50efbf(0xdc)](_0x218377))?.[_0x50efbf(0xe5)]||'';_0x2f39e9&&(_0x2f39e9=_0x4d705b['JNPmL']('.',_0x2f39e9));let _0x449e90=''+_0x43e3e5[_0x50efbf(0x112)](_0x218377);_0x4d705b[_0x50efbf(0x111)](_0x449e90['indexOf']('.'),-0x1)&&(_0x449e90+=_0x2f39e9);const _0x2e031c=napCatCore[_0x50efbf(0x11a)]['getMsgService']()[_0x50efbf(0xc5)]({'md5HexStr':_0x4cbd40,'fileName':_0x449e90,'elementType':_0x4db477,'elementSubType':_0x5b5c87,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x50efbf(0xcb)](_0x218377,_0x2e031c);const _0x4cc435=await NTQQFileApi[_0x50efbf(0xf6)](_0x218377);return{'md5':_0x4cbd40,'fileName':_0x449e90,'path':_0x2e031c,'fileSize':_0x4cc435,'ext':_0x2f39e9};}static async['downloadMedia'](_0x23780f,_0x502d62,_0x36debc,_0x14134f,_0x3fd955,_0x43bde9,_0x53021e=0x3e8*0x3c*0x2,_0x1fc701=![]){const _0x5e7ed8=_0x204330,_0x4e6014={'ZsKsy':function(_0xd3a3e5){return _0xd3a3e5();},'YctpS':function(_0x5f239f,_0x74f3b8,_0x435135,_0x504f85,_0x7f3952,_0x13f763,_0xe1158d,_0x3f5837,_0x38e767,_0x2dc014){return _0x5f239f(_0x74f3b8,_0x435135,_0x504f85,_0x7f3952,_0x13f763,_0xe1158d,_0x3f5837,_0x38e767,_0x2dc014);},'vjKvd':_0x5e7ed8(0x134),'hQIHL':_0x5e7ed8(0x129)};_0x4e6014['YctpS'](logDebug,_0x4e6014[_0x5e7ed8(0x10f)],_0x23780f,_0x502d62,_0x36debc,_0x14134f,_0x3fd955,_0x43bde9,_0x53021e,_0x1fc701);if(_0x43bde9&&_0x6716c8[_0x5e7ed8(0x12d)](_0x43bde9)){if(_0x1fc701)try{await _0x3e1f15['unlink'](_0x43bde9);}catch(_0xeb1e24){}else return _0x43bde9;}return _0x4e6014[_0x5e7ed8(0xe2)](logDebug,_0x4e6014[_0x5e7ed8(0x102)],_0x23780f,_0x502d62,_0x36debc,_0x14134f,_0x3fd955,_0x43bde9,_0x53021e,_0x1fc701),new Promise((_0x43b4a6,_0x13be1e)=>{const _0x505e67=_0x5e7ed8,_0x37cf5={'kwoSy':_0x505e67(0xc8),'zWkKg':function(_0x6ccb2d,_0x26d7c2,_0xe546a8){return _0x6ccb2d(_0x26d7c2,_0xe546a8);},'MHBPR':_0x505e67(0x127)};let _0x168223=![];const _0xed66f2=_0xed8dda=>{const _0x4b053f=_0x505e67;logDebug(_0x37cf5['kwoSy'],_0xed8dda,_0x23780f);if(_0xed8dda[_0x4b053f(0x11c)]===_0x23780f){_0x168223=!![];let _0x5eef2f=_0xed8dda['filePath'];if(_0x5eef2f[_0x4b053f(0x11b)]('\x5c')){const _0xbd7aaa=sessionConfig['defaultFileDownloadPath'];_0x37cf5['zWkKg'](logDebug,_0x37cf5[_0x4b053f(0x121)],_0xbd7aaa),_0x5eef2f=_0x43e3e5['join'](_0xbd7aaa,_0x5eef2f);}_0x43b4a6(_0x5eef2f);}};downloadMediaTasks[_0x505e67(0xfb)](_0x4e6014[_0x505e67(0xec)](randomUUID),_0xed66f2),setTimeout(()=>{const _0x1cb45c=_0x505e67;!_0x168223&&_0x13be1e(_0x1cb45c(0xfe));},_0x53021e),napCatCore['session'][_0x505e67(0xcf)]()[_0x505e67(0xf9)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x23780f,'chatType':_0x502d62,'peerUid':_0x36debc,'elementId':_0x14134f,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x3fd955});});}static async[_0x204330(0xe7)](_0x4e77ed){const _0x66ed55={'TvNqN':function(_0x46578d,_0x4dcc4e){return _0x46578d(_0x4dcc4e);}};return new Promise((_0x47be10,_0xcd1aef)=>{_0x4c6085(_0x4e77ed,(_0x36d9d7,_0x303e83)=>{const _0xdeb54a=_0x2296;_0x36d9d7?_0x66ed55[_0xdeb54a(0x113)](_0xcd1aef,_0x36d9d7):_0x47be10(_0x303e83);});});}static async[_0x204330(0xf2)](_0x2a6552){const _0x111184=_0x204330,_0x42e75c={'vduqh':function(_0x45004d,_0x50a2cf){return _0x45004d!==_0x50a2cf;},'ppNVH':function(_0x5770a2,_0x51cc7e){return _0x5770a2(_0x51cc7e);},'dtUTA':_0x111184(0x125),'JLuLD':_0x111184(0xd7),'yFRBj':function(_0x49fe3d,_0x564f7d){return _0x49fe3d(_0x564f7d);},'atiSv':_0x111184(0x132),'xypsE':_0x111184(0x137),'VxldF':function(_0x245755,_0x404b30){return _0x245755+_0x404b30;},'uuZfJ':function(_0x522b9a,_0x1a2f79,_0x1e9d60){return _0x522b9a(_0x1a2f79,_0x1e9d60);},'psyUx':function(_0x861bd8,_0x11f229){return _0x861bd8(_0x11f229);},'IHPdb':function(_0x2a7f9e,_0x34f901,_0x1eb577,_0xbf87a6){return _0x2a7f9e(_0x34f901,_0x1eb577,_0xbf87a6);},'Elybx':_0x111184(0xd2),'DXYuE':function(_0x3b09a2,_0x4c8a10){return _0x3b09a2(_0x4c8a10);},'GYHoo':_0x111184(0x107),'HKRPH':'&rkey=','kNate':function(_0x3f2d1f,_0xd4212){return _0x3f2d1f+_0xd4212;},'LMwDs':function(_0x4bb5f1,_0x17d175){return _0x4bb5f1>_0x17d175;},'GdBhe':function(_0x377a86,_0x29e492){return _0x377a86-_0x29e492;},'nIEVz':function(_0x2df07a){return _0x2df07a();},'qFobX':function(_0x48232f,_0x32d8f1){return _0x48232f+_0x32d8f1;},'nLINR':function(_0x5d6fcc,_0x5060cd){return _0x5d6fcc+_0x5060cd;},'wpNrd':function(_0x2f4654,_0x1b4bc5){return _0x2f4654||_0x1b4bc5;},'CosFE':'图片url获取失败'},_0xe50d36=_0x42e75c[_0x111184(0x117)](_0x2a6552[_0x111184(0x135)],ChatType[_0x111184(0x12c)]),_0x542dca=_0x2a6552['elements'][_0x111184(0x11e)](_0x4437c4=>!!_0x4437c4[_0x111184(0xe3)]);if(!_0x542dca)return'';const _0x24c80f=_0x542dca['picElement'][_0x111184(0xd4)],_0x176c42=_0x542dca['picElement']['md5HexStr'],_0x54915e=_0x542dca[_0x111184(0xe3)][_0x111184(0xea)],_0x35900f=_0x542dca[_0x111184(0xe3)]['fileUuid'],_0x45166e=_0x341c21=>{const _0x1f8d9c=_0x111184;_0xe50d36?(privateImageRKey=_0x341c21,lastGetPrivateRKeyTime=Date[_0x1f8d9c(0xe4)]()):(groupImageRKey=_0x341c21,lastGetGroupRKeyTime=Date[_0x1f8d9c(0xe4)]());};if(_0x24c80f){if(_0x24c80f[_0x111184(0x11b)](_0x42e75c['GYHoo'])){if(_0x24c80f[_0x111184(0xd8)](_0x42e75c[_0x111184(0xca)]))return _0x42e75c[_0x111184(0xff)](IMAGE_HTTP_HOST_NT,_0x24c80f);if(!hookApi[_0x111184(0xf0)]())return logDebug(_0x111184(0xd3)),'';const _0x3138df=async()=>{const _0x110149=_0x111184,_0x298df3={'KxbfA':function(_0x3e7601,_0x5629a9){return _0x42e75c['vduqh'](_0x3e7601,_0x5629a9);},'cJKkj':function(_0x3315cd,_0xdaf543){const _0x56dfc3=_0x2296;return _0x42e75c[_0x56dfc3(0x114)](_0x3315cd,_0xdaf543);},'IxGoK':_0x42e75c['dtUTA'],'LPpMM':_0x42e75c[_0x110149(0xf3)]};_0x42e75c[_0x110149(0x12e)](logDebug,_0x42e75c[_0x110149(0xd0)]),NTQQFileApi[_0x110149(0x126)](_0x2a6552[_0x110149(0x11c)],_0x2a6552[_0x110149(0x135)],_0x2a6552[_0x110149(0xef)],_0x542dca[_0x110149(0xe9)],'',_0x542dca[_0x110149(0xe3)][_0x110149(0xf1)],0x3e8*0x1e,!![])[_0x110149(0xf7)](_0x54d017=>{})[_0x110149(0xdd)](logError),await _0x42e75c[_0x110149(0x12e)](sleep,0x3e8),_0x42e75c[_0x110149(0x12e)](logDebug,_0x42e75c[_0x110149(0x115)]);const _0x53c311=hookApi[_0x110149(0xe0)]()||'',_0x306866=_0x42e75c[_0x110149(0xdf)](_0x42e75c['VxldF'](IMAGE_HTTP_HOST_NT,_0x24c80f),_0x53c311);if(_0x53c311)try{logDebug(_0x110149(0x130),_0x306866),await new Promise((_0xa5e09f,_0x40acc1)=>{const _0x91b6f7=_0x110149;_0x28e146[_0x91b6f7(0x138)](_0x306866,_0x18201c=>{const _0x377407=_0x91b6f7;_0x298df3[_0x377407(0x104)](_0x18201c[_0x377407(0x124)],0xc8)?_0x298df3[_0x377407(0xe6)](_0x40acc1,_0x298df3[_0x377407(0xce)]):_0xa5e09f(_0x18201c);})['on'](_0x298df3['LPpMM'],_0x199add=>{const _0x5042f1=_0x91b6f7;_0x298df3[_0x5042f1(0xe6)](_0x40acc1,_0x199add);});}),_0x42e75c[_0x110149(0x116)](logDebug,_0x110149(0xf8),_0x306866),_0x42e75c[_0x110149(0xe1)](_0x45166e,_0x53c311);}catch(_0x454a76){return _0x42e75c['IHPdb'](logError,_0x42e75c['Elybx'],_0x306866,_0x454a76),'';}return _0x53c311;},_0x4f055b=()=>new Promise((_0x4e6e5d,_0x451207)=>{const _0x36c244=_0x111184,_0x111e24={'fukZe':function(_0x15264b){return _0x15264b();},'ctFuL':function(_0x4c3e3e,_0x120b27){const _0x19dbe3=_0x2296;return _0x42e75c[_0x19dbe3(0xee)](_0x4c3e3e,_0x120b27);}};getRKeyTaskQueue[_0x36c244(0x119)](async()=>{const _0x53f7b8=_0x36c244,_0x416fe8=await _0x111e24[_0x53f7b8(0xfc)](_0x3138df);_0x111e24[_0x53f7b8(0xd1)](_0x4e6e5d,_0x416fe8);});}),_0xa32e68=_0xe50d36?privateImageRKey:groupImageRKey,_0x83eb59=_0xe50d36?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x42e75c['LMwDs'](_0x42e75c[_0x111184(0x118)](Date[_0x111184(0xe4)](),_0x83eb59),rkeyExpireTime)||!_0xa32e68){logDebug(_0x111184(0xeb)+_0x24c80f+_0x111184(0x109)+_0xa32e68);const _0x4bf29f=await _0x42e75c[_0x111184(0x133)](_0x4f055b);if(_0x4bf29f)return _0x42e75c[_0x111184(0xff)](IMAGE_HTTP_HOST_NT+_0x24c80f,''+_0x4bf29f);else logError(_0x42e75c[_0x111184(0xfd)],_0x24c80f);}if(_0xa32e68)return _0x42e75c['qFobX'](IMAGE_HTTP_HOST_NT,_0x24c80f)+(''+_0xa32e68);return'';}else return _0x42e75c[_0x111184(0x12f)](IMAGE_HTTP_HOST,_0x24c80f);}else{if(_0x42e75c[_0x111184(0xf4)](_0x54915e,_0x176c42))return IMAGE_HTTP_HOST+_0x111184(0xcd)+(_0x54915e||_0x176c42)[_0x111184(0xde)]()+'/0';}return logDebug(_0x42e75c['CosFE'],_0x2a6552),'';}}export class NTQQFileCacheApi{static async[_0x204330(0x128)](_0x2043f1=!![]){return'';}static[_0x204330(0xc4)](){return'';}static[_0x204330(0x101)](_0x446b75=[_0x204330(0xc7),_0x204330(0xc9)]){const _0x3ba314=_0x204330;return napCatCore[_0x3ba314(0x11a)]['getStorageCleanService']()[_0x3ba314(0x123)](_0x446b75);}static[_0x204330(0xcc)](_0x2bf4a8={}){const _0x455f2a=_0x204330;return napCatCore['session']['getStorageCleanService']()[_0x455f2a(0xdb)](_0x2bf4a8);}static[_0x204330(0x110)](){const _0x174495=_0x204330;return napCatCore['session']['getStorageCleanService']()[_0x174495(0x110)]();}static['getHotUpdateCachePath'](){return'';}static[_0x204330(0x103)](){return'';}static[_0x204330(0xfa)](_0x25df5d,_0x1a5bcf=0x3e8,_0x2c89f8=0x0){const _0x59a2f9=_0x204330;return napCatCore[_0x59a2f9(0x11a)][_0x59a2f9(0x136)]()[_0x59a2f9(0x10b)](_0x25df5d,_0x1a5bcf,0x1,_0x2c89f8);}static[_0x204330(0xe8)](_0x40bb08,_0x5ee84e=0x3e8,_0x1c7b21){const _0x4aef6c=_0x1c7b21?_0x1c7b21:{'fileType':_0x40bb08};}static async[_0x204330(0x10c)](_0x493a9a=[],_0x2517bd=[]){const _0x3d9a76=_0x204330;return napCatCore[_0x3d9a76(0x11a)][_0x3d9a76(0x136)]()[_0x3d9a76(0x105)](_0x493a9a,_0x2517bd);}} \ No newline at end of file +const _0x40fe2c=_0x1c60;(function(_0x5d3e52,_0xec0f01){const _0x2c9009=_0x1c60,_0x4c89d5=_0x5d3e52();while(!![]){try{const _0x2b54e7=-parseInt(_0x2c9009(0xce))/0x1*(parseInt(_0x2c9009(0xab))/0x2)+parseInt(_0x2c9009(0xa3))/0x3*(parseInt(_0x2c9009(0xca))/0x4)+parseInt(_0x2c9009(0x97))/0x5*(parseInt(_0x2c9009(0xcc))/0x6)+parseInt(_0x2c9009(0x7c))/0x7+parseInt(_0x2c9009(0x88))/0x8*(-parseInt(_0x2c9009(0x99))/0x9)+parseInt(_0x2c9009(0x92))/0xa*(parseInt(_0x2c9009(0x8c))/0xb)+-parseInt(_0x2c9009(0x9a))/0xc*(parseInt(_0x2c9009(0xcb))/0xd);if(_0x2b54e7===_0xec0f01)break;else _0x4c89d5['push'](_0x4c89d5['shift']());}catch(_0x1f1fb3){_0x4c89d5['push'](_0x4c89d5['shift']());}}}(_0x5069,0xf37b3));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0xb0a541 from'path';import _0xb47686 from'fs';import _0x3721b8 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x1884a8 from'file-type';import{MsgListener}from'@/core/listeners';import _0x3d3fbc from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';import _0x25a9f7 from'https';function _0x1c60(_0x2a7d34,_0x437ac3){const _0x50691a=_0x5069();return _0x1c60=function(_0x1c609b,_0x57313b){_0x1c609b=_0x1c609b-0x70;let _0x374aaa=_0x50691a[_0x1c609b];return _0x374aaa;},_0x1c60(_0x2a7d34,_0x437ac3);}let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();function _0x5069(){const _0x40aabc=['hookApi\x20is\x20not\x20available','join','开始调用moeHook获取rkey','RwtbG',',\x20rkey:','group','图片rkey获取失败','downloadRichMedia','10327191NyUCEP','fileTypeFromFile','cgQGy','TDumh','catch','获取图片rkey...','getFileCacheInfo','rPUXV','picElement','zVGay','existsSync','图片rkey有误','100384VEGKuv','md5HexStr','msgId','scanCache','82533IJmqNu','hotUpdate','ZqsZe','then','getChatCacheList','&rkey=','1240OcqmVa','downloadMedia\x20complete','unlink','/gchatpic_new/0/0-0-','PVLgE','2674165AekiyO','addCacheScanedPaths','459rijkIL','1233564TwHfQs','TEFxV','addCacheScannedPaths','clearCacheDataByKeys','chatType','session','BhFRI','getImageUrl','addListener','3KFjlvF','rJGaO','pMqHm','clearChatCacheInfo','yIijA','MhsLG','pDcGY','HeHaK','3637318ZEXGRg','OmZGj','downloadPath','get','KbABb','receive\x20downloadMedia\x20task','downloadMedia','knkng','delete','addTask','getCacheSessionPathList','peerUid','nevZk','clearChatCache','copyFile','uploadFile','originImageUrl','getMsgService','basename','xNVaY','PIC','kMufo','/download','getHotUpdateCachePath','getFileSize','sourcePath','TMITP','util','set','fqxIK','getStorageCleanService','2472740PHQLrj','13WoIIzI','6ggLsHK','OrXXl','1kxaHsT','startsWith','下载超时','HNikU','PhgAl','toUpperCase','includes','error','onRichMediaDownloadComplete','statusCode','now','GnOEo','bnBzR','getRKey','getFileType','vAlao','onLoginSuccess','wckba'];_0x5069=function(){return _0x40aabc;};return _0x5069();}downloadMediaListener[_0x40fe2c(0xd6)]=_0x186096=>{const _0xaa6d3b=_0x40fe2c,_0x4e3387={'xNVaY':function(_0x3311cf,_0x1c211f){return _0x3311cf(_0x1c211f);}};for(const [_0x57efe5,_0x2d4593]of downloadMediaTasks){_0x4e3387[_0xaa6d3b(0xbe)](_0x2d4593,_0x186096),downloadMediaTasks[_0xaa6d3b(0xb3)](_0x57efe5);}},setTimeout(()=>{const _0x21cba6=_0x40fe2c;napCatCore[_0x21cba6(0x72)](()=>{const _0x2d8cb8=_0x21cba6;napCatCore[_0x2d8cb8(0xa2)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x40fe2c(0x70)](_0x155c08){const _0x300552=_0x40fe2c;return _0x1884a8[_0x300552(0x7d)](_0x155c08);}static async[_0x40fe2c(0xb9)](_0x287caf,_0x18b334){const _0x49072c=_0x40fe2c;await napCatCore['util'][_0x49072c(0xb9)](_0x287caf,_0x18b334);}static async[_0x40fe2c(0xc3)](_0x5886f8){const _0x5254c3=_0x40fe2c;return await napCatCore[_0x5254c3(0xc6)][_0x5254c3(0xc3)](_0x5886f8);}static async[_0x40fe2c(0xba)](_0x4d3285,_0x26f2b7=ElementType[_0x40fe2c(0xbf)],_0x2d33a9=0x0){const _0x335a5f=_0x40fe2c,_0x29f6ab={'MiKAx':function(_0x20fac5,_0x1a7dcc){return _0x20fac5(_0x1a7dcc);},'PVLgE':function(_0x333a7d,_0x2681c7){return _0x333a7d===_0x2681c7;}},_0x149fd2=await _0x29f6ab['MiKAx'](calculateFileMD5,_0x4d3285);let _0x2c9a86=(await NTQQFileApi['getFileType'](_0x4d3285))?.['ext']||'';_0x2c9a86&&(_0x2c9a86='.'+_0x2c9a86);let _0x5613a9=''+_0xb0a541[_0x335a5f(0xbd)](_0x4d3285);_0x29f6ab[_0x335a5f(0x96)](_0x5613a9['indexOf']('.'),-0x1)&&(_0x5613a9+=_0x2c9a86);const _0x233a11=napCatCore['session']['getMsgService']()['getRichMediaFilePathForGuild']({'md5HexStr':_0x149fd2,'fileName':_0x5613a9,'elementType':_0x26f2b7,'elementSubType':_0x2d33a9,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x4d3285,_0x233a11);const _0xeaac2b=await NTQQFileApi[_0x335a5f(0xc3)](_0x4d3285);return{'md5':_0x149fd2,'fileName':_0x5613a9,'path':_0x233a11,'fileSize':_0xeaac2b,'ext':_0x2c9a86};}static async[_0x40fe2c(0xb1)](_0xec87e5,_0x401d39,_0x141407,_0x273a9d,_0x423b80,_0x449723,_0x12d66e=0x3e8*0x3c*0x2,_0x5bdb46=![]){const _0x314c38=_0x40fe2c,_0x5c2f0f={'gcFPA':function(_0x5be459,_0x2f0400,_0x1ff91c,_0x4a260a){return _0x5be459(_0x2f0400,_0x1ff91c,_0x4a260a);},'rPUXV':_0x314c38(0x93),'KbABb':function(_0x29fe90,_0x53c1ea){return _0x29fe90===_0x53c1ea;},'gRWQi':function(_0x5c8729,_0xea566d,_0xb9caa5){return _0x5c8729(_0xea566d,_0xb9caa5);},'RwtbG':function(_0xaf8c6f,_0x5a098b){return _0xaf8c6f(_0x5a098b);},'xCVrN':_0x314c38(0xd0),'OrXXl':function(_0x164154){return _0x164154();},'GnOEo':function(_0x104483,_0x3c16c0,_0x16bd81,_0x2f1e1d,_0x11afc2,_0x295e5f,_0x38168b,_0x1ba0f5,_0x2db83d,_0x3186b8){return _0x104483(_0x3c16c0,_0x16bd81,_0x2f1e1d,_0x11afc2,_0x295e5f,_0x38168b,_0x1ba0f5,_0x2db83d,_0x3186b8);},'pDcGY':_0x314c38(0xb0),'zlHyM':'start\x20downloadMedia'};_0x5c2f0f[_0x314c38(0xd9)](logDebug,_0x5c2f0f[_0x314c38(0xa9)],_0xec87e5,_0x401d39,_0x141407,_0x273a9d,_0x423b80,_0x449723,_0x12d66e,_0x5bdb46);if(_0x449723&&_0xb47686[_0x314c38(0x86)](_0x449723)){if(_0x5bdb46)try{await _0x3721b8[_0x314c38(0x94)](_0x449723);}catch(_0x853649){}else return _0x449723;}return logDebug(_0x5c2f0f['zlHyM'],_0xec87e5,_0x401d39,_0x141407,_0x273a9d,_0x423b80,_0x449723,_0x12d66e,_0x5bdb46),new Promise((_0x5bfcca,_0x312562)=>{const _0x39d7ac=_0x314c38;let _0x332c89=![];const _0x31c964=_0x324f81=>{const _0x560c57=_0x1c60;_0x5c2f0f['gcFPA'](logDebug,_0x5c2f0f[_0x560c57(0x83)],_0x324f81,_0xec87e5);if(_0x5c2f0f[_0x560c57(0xaf)](_0x324f81[_0x560c57(0x8a)],_0xec87e5)){_0x332c89=!![];let _0x29d316=_0x324f81['filePath'];if(_0x29d316['startsWith']('\x5c')){const _0x4ab5b3=sessionConfig['defaultFileDownloadPath'];_0x5c2f0f['gRWQi'](logDebug,_0x560c57(0xad),_0x4ab5b3),_0x29d316=_0xb0a541[_0x560c57(0x75)](_0x4ab5b3,_0x29d316);}_0x5c2f0f['RwtbG'](_0x5bfcca,_0x29d316);}};downloadMediaTasks[_0x39d7ac(0xc7)](_0x5c2f0f[_0x39d7ac(0xcd)](randomUUID),_0x31c964),setTimeout(()=>{const _0x580db2=_0x39d7ac;!_0x332c89&&_0x5c2f0f[_0x580db2(0x77)](_0x312562,_0x5c2f0f['xCVrN']);},_0x12d66e),napCatCore[_0x39d7ac(0x9f)][_0x39d7ac(0xbc)]()[_0x39d7ac(0x7b)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0xec87e5,'chatType':_0x401d39,'peerUid':_0x141407,'elementId':_0x273a9d,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x423b80});});}static async['getImageSize'](_0x4a655b){const _0x4a4d21={'hkTDN':function(_0x169528,_0x2eab45){return _0x169528(_0x2eab45);},'OlwcA':function(_0x690347,_0x2885a9){return _0x690347(_0x2885a9);},'bnBzR':function(_0x1b6e4d,_0x2c51bf,_0x8b4469){return _0x1b6e4d(_0x2c51bf,_0x8b4469);}};return new Promise((_0x4da50f,_0x5b0611)=>{const _0x228d56=_0x1c60,_0x397ef5={'TMITP':function(_0x52f411,_0x543d3f){return _0x4a4d21['hkTDN'](_0x52f411,_0x543d3f);},'HNikU':function(_0x3a4b12,_0x51ba7f){return _0x4a4d21['OlwcA'](_0x3a4b12,_0x51ba7f);}};_0x4a4d21[_0x228d56(0xda)](_0x3d3fbc,_0x4a655b,(_0x2a7c5f,_0x3272ae)=>{const _0x261263=_0x228d56;_0x2a7c5f?_0x397ef5[_0x261263(0xc5)](_0x5b0611,_0x2a7c5f):_0x397ef5[_0x261263(0xd1)](_0x4da50f,_0x3272ae);});});}static async[_0x40fe2c(0xa1)](_0x3babb0){const _0x545ef1=_0x40fe2c,_0x1fe82e={'MhsLG':_0x545ef1(0xd5),'MNjFs':function(_0x489475,_0xeba124){return _0x489475!==_0xeba124;},'knkng':function(_0x72562f,_0x11f389){return _0x72562f(_0x11f389);},'kMufo':function(_0x3ef98c,_0xdfe0e8){return _0x3ef98c(_0xdfe0e8);},'zVGay':function(_0x58b164,_0xfa095){return _0x58b164(_0xfa095);},'TEFxV':_0x545ef1(0x81),'ZqsZe':function(_0x3974e5,_0x103325){return _0x3974e5*_0x103325;},'yIijA':function(_0x272909,_0x3fc14e){return _0x272909(_0x3fc14e);},'MlUEt':function(_0xb658a7,_0x3fa8fc){return _0xb658a7(_0x3fa8fc);},'nevZk':function(_0x2c9657,_0x358461){return _0x2c9657+_0x358461;},'rJGaO':function(_0x3052f6,_0x4cbd69,_0x1965f){return _0x3052f6(_0x4cbd69,_0x1965f);},'HeHaK':'检查rkey是否有效','jvoNT':'图片rkey有效','XmRrE':function(_0x1c9299,_0x4e6b45,_0x18b1db,_0x306507){return _0x1c9299(_0x4e6b45,_0x18b1db,_0x306507);},'cgQGy':_0x545ef1(0x87),'hGaQI':function(_0x27bbfa){return _0x27bbfa();},'vAlao':_0x545ef1(0x91),'szRMF':function(_0x16ca0c){return _0x16ca0c();},'TDumh':_0x545ef1(0x7a),'fqxIK':function(_0x1b7286,_0xbb5e71){return _0x1b7286||_0xbb5e71;},'mhJqj':function(_0x4ba871,_0x5dfafb){return _0x4ba871||_0x5dfafb;}},_0x4e80e4=_0x3babb0[_0x545ef1(0x9e)]!==ChatType[_0x545ef1(0x79)],_0x537625=_0x3babb0['elements']['find'](_0xb046de=>!!_0xb046de['picElement']);if(!_0x537625)return'';const _0x883aa7=_0x537625[_0x545ef1(0x84)][_0x545ef1(0xbb)],_0x356a0a=_0x537625[_0x545ef1(0x84)][_0x545ef1(0x89)],_0x2e4099=_0x537625[_0x545ef1(0x84)][_0x545ef1(0x89)],_0x1a23e1=_0x537625[_0x545ef1(0x84)]['fileUuid'],_0x4f77fb=_0x76ce95=>{const _0x5e4c0d=_0x545ef1;_0x4e80e4?(privateImageRKey=_0x76ce95,lastGetPrivateRKeyTime=Date[_0x5e4c0d(0xd8)]()):(groupImageRKey=_0x76ce95,lastGetGroupRKeyTime=Date[_0x5e4c0d(0xd8)]());};if(_0x883aa7){if(_0x883aa7[_0x545ef1(0xcf)](_0x545ef1(0xc1))){if(_0x883aa7[_0x545ef1(0xd4)](_0x1fe82e[_0x545ef1(0x71)]))return IMAGE_HTTP_HOST_NT+_0x883aa7;if(!hookApi['isAvailable']())return _0x1fe82e[_0x545ef1(0xc0)](logDebug,_0x545ef1(0x74)),'';const _0x218e44=async()=>{const _0x3200b4=_0x545ef1,_0x13c12f={'wckba':function(_0x3835db,_0x5b0a0a){return _0x1fe82e['MNjFs'](_0x3835db,_0x5b0a0a);},'pMqHm':function(_0x1537f0,_0x6f2ac3){const _0x18d669=_0x1c60;return _0x1fe82e[_0x18d669(0xb2)](_0x1537f0,_0x6f2ac3);},'OmZGj':function(_0x1c8699,_0x1e1f8c){const _0x3590c5=_0x1c60;return _0x1fe82e[_0x3590c5(0xc0)](_0x1c8699,_0x1e1f8c);}};_0x1fe82e[_0x3200b4(0x85)](logDebug,_0x1fe82e[_0x3200b4(0x9b)]),NTQQFileApi[_0x3200b4(0xb1)](_0x3babb0['msgId'],_0x3babb0[_0x3200b4(0x9e)],_0x3babb0[_0x3200b4(0xb6)],_0x537625['elementId'],'',_0x537625[_0x3200b4(0x84)][_0x3200b4(0xc4)],_0x1fe82e[_0x3200b4(0x8e)](0x3e8,0x1e),!![])[_0x3200b4(0x8f)](_0x298f01=>{})[_0x3200b4(0x80)](logError),await _0x1fe82e[_0x3200b4(0xa7)](sleep,0x3e8),_0x1fe82e['MlUEt'](logDebug,_0x3200b4(0x76));const _0x12c212=hookApi[_0x3200b4(0xdb)]()||'',_0x5603bf=_0x1fe82e[_0x3200b4(0xb7)](_0x1fe82e[_0x3200b4(0xb7)](IMAGE_HTTP_HOST_NT,_0x883aa7),_0x12c212);if(_0x12c212)try{_0x1fe82e[_0x3200b4(0xa4)](logDebug,_0x1fe82e[_0x3200b4(0xaa)],_0x5603bf),await new Promise((_0x6aa8cd,_0x10ec5d)=>{const _0x328395=_0x3200b4;_0x25a9f7[_0x328395(0xae)](_0x5603bf,_0x758977=>{const _0x185479=_0x328395;_0x13c12f[_0x185479(0x73)](_0x758977[_0x185479(0xd7)],0xc8)?_0x13c12f[_0x185479(0xa5)](_0x10ec5d,_0x185479(0x7a)):_0x13c12f[_0x185479(0xac)](_0x6aa8cd,_0x758977);})['on'](_0x1fe82e[_0x328395(0xa8)],_0x2ff70e=>{_0x10ec5d(_0x2ff70e);});}),_0x1fe82e[_0x3200b4(0xa4)](logDebug,_0x1fe82e['jvoNT'],_0x5603bf),_0x4f77fb(_0x12c212);}catch(_0x54243a){return _0x1fe82e['XmRrE'](logError,_0x1fe82e[_0x3200b4(0x7e)],_0x5603bf,_0x54243a),'';}return _0x12c212;},_0x5ea699=()=>new Promise((_0x32883d,_0x4df418)=>{const _0x61f117=_0x545ef1,_0x5daab6={'BhFRI':function(_0x5b738e){return _0x1fe82e['hGaQI'](_0x5b738e);},'PhgAl':function(_0x1c627d,_0x3e72c4){return _0x1c627d(_0x3e72c4);}};getRKeyTaskQueue[_0x61f117(0xb4)](async()=>{const _0x2cb07b=_0x61f117,_0x26bc1f=await _0x5daab6[_0x2cb07b(0xa0)](_0x218e44);_0x5daab6[_0x2cb07b(0xd2)](_0x32883d,_0x26bc1f);});}),_0x187564=_0x4e80e4?privateImageRKey:groupImageRKey,_0x4cd94f=_0x4e80e4?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(Date[_0x545ef1(0xd8)]()-_0x4cd94f>rkeyExpireTime||!_0x187564){_0x1fe82e[_0x545ef1(0xb2)](logDebug,'rkey过期或着未获取,\x20url:'+_0x883aa7+_0x545ef1(0x78)+_0x187564);const _0x14832a=await _0x1fe82e['szRMF'](_0x5ea699);if(_0x14832a)return _0x1fe82e['nevZk'](IMAGE_HTTP_HOST_NT,_0x883aa7)+(''+_0x14832a);else _0x1fe82e[_0x545ef1(0xa4)](logError,_0x1fe82e[_0x545ef1(0x7f)],_0x883aa7);}if(_0x187564)return IMAGE_HTTP_HOST_NT+_0x883aa7+(''+_0x187564);return'';}else return _0x1fe82e[_0x545ef1(0xb7)](IMAGE_HTTP_HOST,_0x883aa7);}else{if(_0x1fe82e[_0x545ef1(0xc8)](_0x2e4099,_0x356a0a))return IMAGE_HTTP_HOST+_0x545ef1(0x95)+_0x1fe82e['mhJqj'](_0x2e4099,_0x356a0a)[_0x545ef1(0xd3)]()+'/0';}return _0x1fe82e['rJGaO'](logDebug,'图片url获取失败',_0x3babb0),'';}}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0xdf6a=!![]){return'';}static[_0x40fe2c(0xb5)](){return'';}static['clearCache'](_0x2f0908=['tmp',_0x40fe2c(0x8d)]){const _0x5b0a2e=_0x40fe2c;return napCatCore['session'][_0x5b0a2e(0xc9)]()[_0x5b0a2e(0x9d)](_0x2f0908);}static[_0x40fe2c(0x9c)](_0xd8acb4={}){const _0x1254d4=_0x40fe2c;return napCatCore[_0x1254d4(0x9f)][_0x1254d4(0xc9)]()[_0x1254d4(0x98)](_0xd8acb4);}static[_0x40fe2c(0x8b)](){const _0x904776=_0x40fe2c;return napCatCore[_0x904776(0x9f)][_0x904776(0xc9)]()[_0x904776(0x8b)]();}static[_0x40fe2c(0xc2)](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x40fe2c(0x90)](_0xfb406,_0x12a580=0x3e8,_0x3ee5d9=0x0){const _0x160f5f=_0x40fe2c;return napCatCore[_0x160f5f(0x9f)][_0x160f5f(0xc9)]()['getChatCacheInfo'](_0xfb406,_0x12a580,0x1,_0x3ee5d9);}static[_0x40fe2c(0x82)](_0x1db825,_0x381294=0x3e8,_0x7e6d14){const _0x1be5fe=_0x7e6d14?_0x7e6d14:{'fileType':_0x1db825};}static async[_0x40fe2c(0xb8)](_0x3cf218=[],_0x3722cb=[]){const _0x1f44b4=_0x40fe2c;return napCatCore[_0x1f44b4(0x9f)][_0x1f44b4(0xc9)]()[_0x1f44b4(0xa6)](_0x3cf218,_0x3722cb);}} \ No newline at end of file diff --git a/src/core.lib/src/apis/friend.js b/src/core.lib/src/apis/friend.js index 9fe12f5a..340b1381 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x4af35f=_0x38f4;(function(_0x5d8097,_0x2e9fcf){const _0x2f89d5=_0x38f4,_0x12b62c=_0x5d8097();while(!![]){try{const _0x4eb192=parseInt(_0x2f89d5(0x175))/0x1*(-parseInt(_0x2f89d5(0x163))/0x2)+-parseInt(_0x2f89d5(0x16d))/0x3*(-parseInt(_0x2f89d5(0x174))/0x4)+-parseInt(_0x2f89d5(0x15e))/0x5+-parseInt(_0x2f89d5(0x15a))/0x6+-parseInt(_0x2f89d5(0x16f))/0x7*(parseInt(_0x2f89d5(0x16a))/0x8)+parseInt(_0x2f89d5(0x16b))/0x9+parseInt(_0x2f89d5(0x168))/0xa;if(_0x4eb192===_0x2e9fcf)break;else _0x12b62c['push'](_0x12b62c['shift']());}catch(_0xe97952){_0x12b62c['push'](_0x12b62c['shift']());}}}(_0x3400,0x804c8));function _0x38f4(_0x5ac78f,_0x2cb50c){const _0x3400d7=_0x3400();return _0x38f4=function(_0x38f4ef,_0x188451){_0x38f4ef=_0x38f4ef-0x154;let _0x2bd455=_0x3400d7[_0x38f4ef];return _0x2bd455;},_0x38f4(_0x5ac78f,_0x2cb50c);}import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x3400(){const _0x43b6db=['获取好友列表超时','896067wCEpcn','onLoginSuccess','119021PuvLWa','NBOYW','addListener','onBuddyListChange','then','4MvpNoh','2cCRFFR','buddyList','approvalFriendRequest','LLfuO','ANoNN','wXmCc','获取好友列表完成','handleFriendRequest','329400rQhSvR','session','ryllb','XfDEw','2049660BvvZqi','friendUid','getBuddyService','reqTime','开始获取好友列表','1041994uwNdMy','rnSMB','getBuddyList','uid','gjLCX','11840070bNNIlT','set','112ZfIPEP','7089156IRXSiy'];_0x3400=function(){return _0x43b6db;};return _0x3400();}import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x4af35f(0x172)]=_0x1ab509=>{const _0x34f69c=_0x4af35f,_0x52e095={'gjLCX':function(_0x43ff4a,_0x50f3f4){return _0x43ff4a(_0x50f3f4);}};for(const [_0x8b4a9f,_0x4c56a1]of buddyChangeTasks){_0x52e095[_0x34f69c(0x167)](_0x4c56a1,_0x1ab509),buddyChangeTasks['delete'](_0x8b4a9f);}},setTimeout(()=>{const _0x456018=_0x4af35f;napCatCore[_0x456018(0x16e)](()=>{const _0x5b63cd=_0x456018;napCatCore[_0x5b63cd(0x171)](buddyListener);});},0x64);export class NTQQFriendApi{static async['getFriends'](_0x3e51d1=![]){const _0x2b3118=_0x4af35f,_0x211ae8={'ryllb':function(_0x1ae1f8,_0x39b8ac,_0x3fea46){return _0x1ae1f8(_0x39b8ac,_0x3fea46);},'DEVpx':_0x2b3118(0x158),'HmZua':function(_0xd3002f,_0x1a7cdb){return _0xd3002f(_0x1a7cdb);},'rnSMB':function(_0xffe819,_0x5e3790,_0x55261e){return _0xffe819(_0x5e3790,_0x55261e);},'wXmCc':_0x2b3118(0x162),'oGsIk':function(_0x1219be,_0x593553){return _0x1219be(_0x593553);},'LLfuO':_0x2b3118(0x16c),'NBOYW':function(_0x2975cd){return _0x2975cd();}};return new Promise((_0x1631ed,_0x267f84)=>{const _0x4b7b7c=_0x2b3118,_0x174ef8={'ANoNN':function(_0x1bc0cb,_0x1e4ba9){return _0x211ae8['oGsIk'](_0x1bc0cb,_0x1e4ba9);},'XfDEw':_0x211ae8[_0x4b7b7c(0x155)]};let _0x1be22e=![];setTimeout(()=>{const _0x11be08=_0x4b7b7c;!_0x1be22e&&(_0x174ef8[_0x11be08(0x156)](logDebug,_0x11be08(0x16c)),_0x267f84(_0x174ef8[_0x11be08(0x15d)]));},0x1388);const _0x2844a6=[],_0x3a78ea=_0x1565d8=>{const _0xea2063=_0x4b7b7c;for(const _0x34001a of _0x1565d8){for(const _0x15f59c of _0x34001a[_0xea2063(0x176)]){_0x2844a6['push'](_0x15f59c),uid2UinMap[_0x15f59c[_0xea2063(0x166)]]=_0x15f59c['uin'];}}_0x1be22e=!![],_0x211ae8[_0xea2063(0x15c)](logDebug,_0x211ae8['DEVpx'],_0x2844a6),_0x211ae8['HmZua'](_0x1631ed,_0x2844a6);};buddyChangeTasks[_0x4b7b7c(0x169)](_0x211ae8[_0x4b7b7c(0x170)](randomUUID),_0x3a78ea),napCatCore[_0x4b7b7c(0x15b)][_0x4b7b7c(0x160)]()[_0x4b7b7c(0x165)](_0x3e51d1)[_0x4b7b7c(0x173)](_0xa1fd11=>{const _0x266e1c=_0x4b7b7c;_0x211ae8[_0x266e1c(0x164)](logDebug,_0x211ae8[_0x266e1c(0x157)],_0xa1fd11);});});}static async[_0x4af35f(0x159)](_0x4e3e8e,_0x4064a8){const _0x2c9f09=_0x4af35f;napCatCore['session'][_0x2c9f09(0x160)]()?.[_0x2c9f09(0x154)]({'friendUid':_0x4e3e8e[_0x2c9f09(0x15f)],'reqTime':_0x4e3e8e[_0x2c9f09(0x161)],'accept':_0x4064a8});}} \ No newline at end of file +const _0x59e920=_0x28fc;(function(_0xe0d99a,_0x4fab73){const _0x3494ec=_0x28fc,_0x697d4c=_0xe0d99a();while(!![]){try{const _0x245f09=parseInt(_0x3494ec(0x198))/0x1*(-parseInt(_0x3494ec(0x1ac))/0x2)+parseInt(_0x3494ec(0x1b2))/0x3*(-parseInt(_0x3494ec(0x199))/0x4)+-parseInt(_0x3494ec(0x1a1))/0x5*(-parseInt(_0x3494ec(0x19c))/0x6)+parseInt(_0x3494ec(0x1ad))/0x7+-parseInt(_0x3494ec(0x1aa))/0x8*(parseInt(_0x3494ec(0x19b))/0x9)+-parseInt(_0x3494ec(0x1a2))/0xa+parseInt(_0x3494ec(0x1b4))/0xb*(parseInt(_0x3494ec(0x19e))/0xc);if(_0x245f09===_0x4fab73)break;else _0x697d4c['push'](_0x697d4c['shift']());}catch(_0x2adc8b){_0x697d4c['push'](_0x697d4c['shift']());}}}(_0x1b7d,0x88c2d));function _0x1b7d(){const _0x3e2425=['then','95944zBWxtm','23228uhGwME','reqTime','3291633Nlipbu','60lKXByF','handleFriendRequest','12XREpgs','bJQkt','getFriends','458405sZUsrf','8604900WWcfOF','获取好友列表完成','hLGoS','addListener','onLoginSuccess','uin','uid','getBuddyService','16qjijBc','friendUid','14UAgZDe','6952988OBTfna','approvalFriendRequest','获取好友列表超时','onBuddyListChange','tyUEb','111ZgsBGB','set','12413610IemyLV','session','sVYcn'];_0x1b7d=function(){return _0x3e2425;};return _0x1b7d();}import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x59e920(0x1b0)]=_0xa3729d=>{const _0x3d1c76=_0x59e920,_0x1d7651={'sVYcn':function(_0x581cfc,_0x4f13b8){return _0x581cfc(_0x4f13b8);}};for(const [_0x1ecadf,_0x3310a4]of buddyChangeTasks){_0x1d7651[_0x3d1c76(0x196)](_0x3310a4,_0xa3729d),buddyChangeTasks['delete'](_0x1ecadf);}},setTimeout(()=>{const _0x382bae=_0x59e920;napCatCore[_0x382bae(0x1a6)](()=>{const _0x1304f0=_0x382bae;napCatCore[_0x1304f0(0x1a5)](buddyListener);});},0x64);function _0x28fc(_0x2816d9,_0x1282b2){const _0x1b7d23=_0x1b7d();return _0x28fc=function(_0x28fc96,_0x4b4beb){_0x28fc96=_0x28fc96-0x196;let _0x8c83d2=_0x1b7d23[_0x28fc96];return _0x8c83d2;},_0x28fc(_0x2816d9,_0x1282b2);}export class NTQQFriendApi{static async[_0x59e920(0x1a0)](_0x31721f=![]){const _0x1da6ce=_0x59e920,_0x526e61={'tyUEb':function(_0x33b377,_0x1773f0){return _0x33b377(_0x1773f0);},'hLGoS':_0x1da6ce(0x1af),'zHcqw':function(_0xfa25a0,_0x5186c5,_0x1d641a){return _0xfa25a0(_0x5186c5,_0x1d641a);},'RmPan':_0x1da6ce(0x1a3),'bJQkt':function(_0x55b95b,_0x3c8392){return _0x55b95b(_0x3c8392);},'ubNed':function(_0x211300,_0xf69eab,_0x47a056){return _0x211300(_0xf69eab,_0x47a056);}};return new Promise((_0x1cf5fc,_0xe22bfa)=>{const _0x337cd2=_0x1da6ce;let _0x1bc050=![];_0x526e61['ubNed'](setTimeout,()=>{const _0x5ca5ed=_0x28fc;!_0x1bc050&&(_0x526e61[_0x5ca5ed(0x1b1)](logDebug,_0x526e61[_0x5ca5ed(0x1a4)]),_0xe22bfa(_0x526e61[_0x5ca5ed(0x1a4)]));},0x1388);const _0x149ec0=[],_0x558457=_0xfa0186=>{const _0x1dbdbc=_0x28fc;for(const _0x2c989e of _0xfa0186){for(const _0x147f3e of _0x2c989e['buddyList']){_0x149ec0['push'](_0x147f3e),uid2UinMap[_0x147f3e[_0x1dbdbc(0x1a8)]]=_0x147f3e[_0x1dbdbc(0x1a7)];}}_0x1bc050=!![],_0x526e61['zHcqw'](logDebug,_0x526e61['RmPan'],_0x149ec0),_0x526e61[_0x1dbdbc(0x19f)](_0x1cf5fc,_0x149ec0);};buddyChangeTasks[_0x337cd2(0x1b3)](randomUUID(),_0x558457),napCatCore[_0x337cd2(0x1b5)]['getBuddyService']()['getBuddyList'](_0x31721f)[_0x337cd2(0x197)](_0xfdbb59=>{logDebug('开始获取好友列表',_0xfdbb59);});});}static async[_0x59e920(0x19d)](_0x47f9a5,_0x2c9786){const _0x21a128=_0x59e920;napCatCore[_0x21a128(0x1b5)][_0x21a128(0x1a9)]()?.[_0x21a128(0x1ae)]({'friendUid':_0x47f9a5[_0x21a128(0x1ab)],'reqTime':_0x47f9a5[_0x21a128(0x19a)],'accept':_0x2c9786});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/group.js b/src/core.lib/src/apis/group.js index 5414af3f..5d5fee98 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0xb04174=_0x1026;(function(_0x444f36,_0x4b8de2){const _0x311f9f=_0x1026,_0x337aaa=_0x444f36();while(!![]){try{const _0x99f688=-parseInt(_0x311f9f(0xe5))/0x1+-parseInt(_0x311f9f(0x10c))/0x2+-parseInt(_0x311f9f(0xec))/0x3*(parseInt(_0x311f9f(0x10b))/0x4)+parseInt(_0x311f9f(0xe9))/0x5+parseInt(_0x311f9f(0x10a))/0x6+-parseInt(_0x311f9f(0xe1))/0x7+-parseInt(_0x311f9f(0xea))/0x8*(-parseInt(_0x311f9f(0x101))/0x9);if(_0x99f688===_0x4b8de2)break;else _0x337aaa['push'](_0x337aaa['shift']());}catch(_0x308304){_0x337aaa['push'](_0x337aaa['shift']());}}}(_0x21da,0xeeda8));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';function _0x21da(){const _0x2ee26d=['errCode','forEach','7679345MnBUPJ','17499568XjgyHk','modifyGroupName','6pljESY','groupMemberList_MainWindow','getGroupMembers','getGroupService','getGroupNotifies','onLoginSuccess','setGroupName','seq','session','quitGroup','getGroupList','DZaYI','errMsg','publishGroupBulletin','HWMYN','onGroupListUpdate','pLZQC','set','uin','kickMember','NWitu','9XJpfEo','获取群列表完成','modifyMemberRole','uid','type','modifyMemberCardName','Plvpc','infos','group','7913028QPSdCC','645496uqcroR','1922346RDPcNu','xRgKO','operateSysNotify','获取群成员列表出错,','then','getGroups','OAjld','banMember','finish','addListener','setGroupShutUp',')成员列表结果:','delete','result','pFbnv','12775210HxjEJu','xKrUS','setMemberShutUp','获取群(','954858cfmaTV','fMXzb'];_0x21da=function(){return _0x2ee26d;};return _0x21da();}import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';function _0x1026(_0x177487,_0x459b0b){const _0x21da97=_0x21da();return _0x1026=function(_0x1026e1,_0x354a72){_0x1026e1=_0x1026e1-0xd9;let _0x406d9f=_0x21da97[_0x1026e1];return _0x406d9f;},_0x1026(_0x177487,_0x459b0b);}const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0xb04174(0xfb)]=(_0x172f44,_0x21472b)=>{const _0x43c7b5=_0xb04174,_0x2d8db0={'fMXzb':function(_0x4b751e,_0x23012a,_0x25a1a5){return _0x4b751e(_0x23012a,_0x25a1a5);}};for(const [_0x58bfee,_0x13ae3e]of groupMemberTasks){_0x2d8db0[_0x43c7b5(0xe6)](_0x13ae3e,_0x172f44,_0x21472b),groupMemberTasks[_0x43c7b5(0xde)](_0x58bfee);}},setTimeout(()=>{const _0x204b61=_0xb04174;napCatCore[_0x204b61(0xf1)](()=>{const _0x2dfe37=_0x204b61;napCatCore[_0x2dfe37(0xdb)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0xb04174(0x111)](_0x52822a=![]){const _0x5da838={'xKrUS':function(_0x13ebf3,_0xc62c0e){return _0x13ebf3(_0xc62c0e);},'NWitu':'获取群列表超时','pFbnv':function(_0x32ff7d,_0x48e62b,_0x2f70bf){return _0x32ff7d(_0x48e62b,_0x2f70bf);},'Plvpc':function(_0xc5cb83,_0x1f2cf7,_0x280b05){return _0xc5cb83(_0x1f2cf7,_0x280b05);}};let _0x2fad6f=![];return new Promise((_0x4a6c8f,_0x57e01c)=>{const _0x232ffb=_0x1026,_0x1cc672={'OAjld':function(_0x1e2a34,_0x292576,_0x3c1f0){const _0x175123=_0x1026;return _0x5da838[_0x175123(0xe0)](_0x1e2a34,_0x292576,_0x3c1f0);},'okIlV':function(_0x5c8dca,_0x3b7a5c){const _0x96fca8=_0x1026;return _0x5da838[_0x96fca8(0xe2)](_0x5c8dca,_0x3b7a5c);}};_0x5da838[_0x232ffb(0x107)](setTimeout,()=>{const _0x537b37=_0x232ffb;!_0x2fad6f&&(_0x5da838[_0x537b37(0xe2)](logDebug,_0x5da838['NWitu']),_0x5da838[_0x537b37(0xe2)](_0x57e01c,_0x5da838[_0x537b37(0x100)]));},0x1388);const _0x28eb3a=(_0x2f60e,_0x48bd27)=>{const _0x8fa019=_0x232ffb;_0x2fad6f=!![],_0x1cc672[_0x8fa019(0x112)](logDebug,_0x8fa019(0x102),_0x48bd27),_0x1cc672['okIlV'](_0x4a6c8f,_0x48bd27);};groupMemberTasks[_0x232ffb(0xfd)](randomUUID(),_0x28eb3a),napCatCore[_0x232ffb(0xf4)][_0x232ffb(0xef)]()[_0x232ffb(0xf6)](_0x52822a)[_0x232ffb(0x110)]();});}static async[_0xb04174(0xee)](_0x59bfc9,_0x1f8d2e=0xbb8){const _0x2fe57e=_0xb04174,_0x231ef4={'HWMYN':_0x2fe57e(0xed),'wCBeO':function(_0x150e5f,_0x196943){return _0x150e5f!==_0x196943;},'DZaYI':_0x2fe57e(0x10f),'xRgKO':function(_0x2a2a49,_0x1bb33b,_0x2e8e94){return _0x2a2a49(_0x1bb33b,_0x2e8e94);}},_0x603176=napCatCore['session']['getGroupService'](),_0x33fee1=_0x603176['createMemberListScene'](_0x59bfc9,_0x231ef4[_0x2fe57e(0xfa)]),_0x4b7a57=await _0x603176['getNextMemberList'](_0x33fee1,undefined,_0x1f8d2e);if(_0x231ef4['wCBeO'](_0x4b7a57[_0x2fe57e(0xe7)],0x0))throw _0x231ef4[_0x2fe57e(0xf7)]+_0x4b7a57[_0x2fe57e(0xf8)];return _0x231ef4[_0x2fe57e(0x10d)](logDebug,_0x2fe57e(0xe4)+_0x59bfc9+_0x2fe57e(0xdd),'finish:\x20'+_0x4b7a57['result'][_0x2fe57e(0xda)]),_0x4b7a57[_0x2fe57e(0xdf)][_0x2fe57e(0x108)][_0x2fe57e(0xe8)](_0x49385c=>{const _0x52a05f=_0x2fe57e;uid2UinMap[_0x49385c[_0x52a05f(0x104)]]=_0x49385c[_0x52a05f(0xfe)];}),_0x4b7a57[_0x2fe57e(0xdf)][_0x2fe57e(0x108)];}static async[_0xb04174(0xf0)](){}static async['getGroupIgnoreNotifies'](){}static async['handleGroupRequest'](_0x181f87,_0x539ab1,_0x97b3fe){const _0x21dd41=_0xb04174,_0x4abcef={'pLZQC':function(_0x2e1dd9,_0x22d06f){return _0x2e1dd9||_0x22d06f;}};return napCatCore[_0x21dd41(0xf4)][_0x21dd41(0xef)]()[_0x21dd41(0x10e)](![],{'operateType':_0x539ab1,'targetMsg':{'seq':_0x181f87[_0x21dd41(0xf3)],'type':_0x181f87[_0x21dd41(0x105)],'groupCode':_0x181f87[_0x21dd41(0x109)]['groupCode'],'postscript':_0x4abcef[_0x21dd41(0xfc)](_0x97b3fe,'')}});}static async[_0xb04174(0xf5)](_0x495b74){const _0xf07024=_0xb04174;return napCatCore[_0xf07024(0xf4)]['getGroupService']()[_0xf07024(0xf5)](_0x495b74);}static async['kickMember'](_0x2b550b,_0x21e83e,_0x503781=![],_0x44741a=''){const _0x2ab51f=_0xb04174;return napCatCore[_0x2ab51f(0xf4)][_0x2ab51f(0xef)]()[_0x2ab51f(0xff)](_0x2b550b,_0x21e83e,_0x503781,_0x44741a);}static async[_0xb04174(0xd9)](_0x260299,_0x124a10){const _0x309215=_0xb04174;return napCatCore[_0x309215(0xf4)][_0x309215(0xef)]()[_0x309215(0xe3)](_0x260299,_0x124a10);}static async['banGroup'](_0xf539bb,_0x1be81a){const _0x549a11=_0xb04174;return napCatCore[_0x549a11(0xf4)][_0x549a11(0xef)]()[_0x549a11(0xdc)](_0xf539bb,_0x1be81a);}static async['setMemberCard'](_0x3093f4,_0xaa4d46,_0xa6ff21){const _0xc452c0=_0xb04174;return napCatCore['session'][_0xc452c0(0xef)]()[_0xc452c0(0x106)](_0x3093f4,_0xaa4d46,_0xa6ff21);}static async['setMemberRole'](_0x29c922,_0x472d3c,_0x27e2cd){const _0x4a4d27=_0xb04174;return napCatCore['session'][_0x4a4d27(0xef)]()[_0x4a4d27(0x103)](_0x29c922,_0x472d3c,_0x27e2cd);}static async[_0xb04174(0xf2)](_0x3eec75,_0x26789c){const _0x11a33b=_0xb04174;return napCatCore[_0x11a33b(0xf4)]['getGroupService']()[_0x11a33b(0xeb)](_0x3eec75,_0x26789c,![]);}static async['setGroupTitle'](_0x354a68,_0x3782d6,_0x5aab97){}static[_0xb04174(0xf9)](_0x26abfa,_0x6bb066,_0x69ab68){}} \ No newline at end of file +function _0x5762(_0x3b1f89,_0x201632){const _0x74408f=_0x7440();return _0x5762=function(_0x57623d,_0x20dc65){_0x57623d=_0x57623d-0x17b;let _0x1b06a9=_0x74408f[_0x57623d];return _0x1b06a9;},_0x5762(_0x3b1f89,_0x201632);}const _0x1351c4=_0x5762;(function(_0xab005b,_0x174d78){const _0x34922f=_0x5762,_0x59b9c5=_0xab005b();while(!![]){try{const _0x54d454=parseInt(_0x34922f(0x186))/0x1+-parseInt(_0x34922f(0x183))/0x2*(parseInt(_0x34922f(0x1a3))/0x3)+parseInt(_0x34922f(0x1b2))/0x4+parseInt(_0x34922f(0x19c))/0x5+parseInt(_0x34922f(0x17c))/0x6*(parseInt(_0x34922f(0x1b1))/0x7)+-parseInt(_0x34922f(0x18a))/0x8*(-parseInt(_0x34922f(0x18e))/0x9)+-parseInt(_0x34922f(0x1aa))/0xa*(parseInt(_0x34922f(0x1a2))/0xb);if(_0x54d454===_0x174d78)break;else _0x59b9c5['push'](_0x59b9c5['shift']());}catch(_0x4d755b){_0x59b9c5['push'](_0x59b9c5['shift']());}}}(_0x7440,0x957d4));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x1351c4(0x18b)]=(_0x5b654b,_0x2636ef)=>{const _0x14201f=_0x1351c4,_0x323c84={'zdEYi':function(_0x4605e6,_0x203a4e,_0x38abfb){return _0x4605e6(_0x203a4e,_0x38abfb);}};for(const [_0x1e585b,_0x5cc59b]of groupMemberTasks){_0x323c84[_0x14201f(0x1b7)](_0x5cc59b,_0x5b654b,_0x2636ef),groupMemberTasks[_0x14201f(0x1a6)](_0x1e585b);}},setTimeout(()=>{const _0x3c807d=_0x1351c4;napCatCore[_0x3c807d(0x18d)](()=>{const _0x148bac=_0x3c807d;napCatCore[_0x148bac(0x1b5)](groupListener);});},0x64);function _0x7440(){const _0x6462ff=['groupCode','EUWYH','getNextMemberList','VwtbI','uid','1498710cflgLZ','tGddD','setMemberShutUp','1007340ewuoGS','type','infos','seq','1528TXppjG','onGroupListUpdate','uin','onLoginSuccess','42858VZdJJO','获取群(','createMemberListScene','banGroup','OZHmO','finish','errMsg','etcqG','获取群成员列表出错,','setGroupName','finish:\x20',')成员列表结果:','getGroupNotifies','banMember','5124095BzPsRP','set','group','wFhjf','groupMemberList_MainWindow','setMemberRole','139513dfeCwk','3fXHSPY','setGroupTitle','modifyMemberCardName','delete','getGroups','kickMember','setMemberCard','1690lZFNSe','获取群列表超时','getGroupService','session','then','handleGroupRequest','result','1339989XEatQv','1487848HpUYlI','modifyGroupName','setGroupShutUp','addListener','BSKvi','zdEYi','获取群列表完成','getGroupMembers','quitGroup','6sPjqpb','errCode'];_0x7440=function(){return _0x6462ff;};return _0x7440();}export class NTQQGroupApi{static async[_0x1351c4(0x1a7)](_0x16fb1c=![]){const _0x45b56f={'OZHmO':function(_0x1dd3e5,_0xfadadc){return _0x1dd3e5(_0xfadadc);},'etcqG':function(_0x95ade7,_0x3d35b9,_0xddd53f){return _0x95ade7(_0x3d35b9,_0xddd53f);},'BSKvi':function(_0x47e57a){return _0x47e57a();}};let _0x52fc67=![];return new Promise((_0x22ae86,_0x34b271)=>{const _0x5c17ba=_0x5762;_0x45b56f[_0x5c17ba(0x195)](setTimeout,()=>{const _0x339311=_0x5c17ba;!_0x52fc67&&(_0x45b56f['OZHmO'](logDebug,_0x339311(0x1ab)),_0x34b271(_0x339311(0x1ab)));},0x1388);const _0x4cb3e2=(_0x334c99,_0x55b143)=>{const _0x3bb395=_0x5c17ba;_0x52fc67=!![],_0x45b56f['etcqG'](logDebug,_0x3bb395(0x1b8),_0x55b143),_0x45b56f[_0x3bb395(0x192)](_0x22ae86,_0x55b143);};groupMemberTasks[_0x5c17ba(0x19d)](_0x45b56f[_0x5c17ba(0x1b6)](randomUUID),_0x4cb3e2),napCatCore['session'][_0x5c17ba(0x1ac)]()['getGroupList'](_0x16fb1c)[_0x5c17ba(0x1ae)]();});}static async[_0x1351c4(0x1b9)](_0x557732,_0x4d0f7c=0xbb8){const _0x289b66=_0x1351c4,_0x51f774={'bzbtV':_0x289b66(0x1a0),'EUWYH':function(_0x37b32f,_0x16c0c5){return _0x37b32f+_0x16c0c5;},'VwtbI':_0x289b66(0x196),'wFhjf':function(_0x473ada,_0x4dad21,_0x41addb){return _0x473ada(_0x4dad21,_0x41addb);}},_0x583ff1=napCatCore[_0x289b66(0x1ad)][_0x289b66(0x1ac)](),_0x7fda04=_0x583ff1[_0x289b66(0x190)](_0x557732,_0x51f774['bzbtV']),_0x55e163=await _0x583ff1[_0x289b66(0x180)](_0x7fda04,undefined,_0x4d0f7c);if(_0x55e163[_0x289b66(0x17d)]!==0x0)throw _0x51f774[_0x289b66(0x17f)](_0x51f774[_0x289b66(0x181)],_0x55e163[_0x289b66(0x194)]);return _0x51f774[_0x289b66(0x19f)](logDebug,_0x289b66(0x18f)+_0x557732+_0x289b66(0x199),_0x289b66(0x198)+_0x55e163[_0x289b66(0x1b0)][_0x289b66(0x193)]),_0x55e163[_0x289b66(0x1b0)][_0x289b66(0x188)]['forEach'](_0x10a7bf=>{const _0x5d8acd=_0x289b66;uid2UinMap[_0x10a7bf[_0x5d8acd(0x182)]]=_0x10a7bf[_0x5d8acd(0x18c)];}),_0x55e163['result'][_0x289b66(0x188)];}static async[_0x1351c4(0x19a)](){}static async['getGroupIgnoreNotifies'](){}static async[_0x1351c4(0x1af)](_0x1578ec,_0x4aefd9,_0x189d9c){const _0x4a0220=_0x1351c4,_0x4b534f={'tGddD':function(_0x589201,_0x547a21){return _0x589201||_0x547a21;}};return napCatCore['session'][_0x4a0220(0x1ac)]()['operateSysNotify'](![],{'operateType':_0x4aefd9,'targetMsg':{'seq':_0x1578ec[_0x4a0220(0x189)],'type':_0x1578ec[_0x4a0220(0x187)],'groupCode':_0x1578ec[_0x4a0220(0x19e)][_0x4a0220(0x17e)],'postscript':_0x4b534f[_0x4a0220(0x184)](_0x189d9c,'')}});}static async[_0x1351c4(0x17b)](_0x76e8ed){const _0x31a634=_0x1351c4;return napCatCore['session'][_0x31a634(0x1ac)]()[_0x31a634(0x17b)](_0x76e8ed);}static async[_0x1351c4(0x1a8)](_0x534db3,_0x456cd2,_0x2d9588=![],_0x2d39b0=''){const _0x15b45b=_0x1351c4;return napCatCore['session'][_0x15b45b(0x1ac)]()[_0x15b45b(0x1a8)](_0x534db3,_0x456cd2,_0x2d9588,_0x2d39b0);}static async[_0x1351c4(0x19b)](_0xd975f3,_0x102055){const _0xd33215=_0x1351c4;return napCatCore['session'][_0xd33215(0x1ac)]()[_0xd33215(0x185)](_0xd975f3,_0x102055);}static async[_0x1351c4(0x191)](_0x344a65,_0x35f9d2){const _0x647049=_0x1351c4;return napCatCore[_0x647049(0x1ad)][_0x647049(0x1ac)]()[_0x647049(0x1b4)](_0x344a65,_0x35f9d2);}static async[_0x1351c4(0x1a9)](_0x5382c0,_0x1c69fe,_0xa34f34){const _0x532ee9=_0x1351c4;return napCatCore[_0x532ee9(0x1ad)]['getGroupService']()[_0x532ee9(0x1a5)](_0x5382c0,_0x1c69fe,_0xa34f34);}static async[_0x1351c4(0x1a1)](_0x1479b1,_0x3000ca,_0x118745){const _0x4bd781=_0x1351c4;return napCatCore[_0x4bd781(0x1ad)][_0x4bd781(0x1ac)]()['modifyMemberRole'](_0x1479b1,_0x3000ca,_0x118745);}static async[_0x1351c4(0x197)](_0x53bcdc,_0x49233c){const _0x16ca7e=_0x1351c4;return napCatCore[_0x16ca7e(0x1ad)][_0x16ca7e(0x1ac)]()[_0x16ca7e(0x1b3)](_0x53bcdc,_0x49233c,![]);}static async[_0x1351c4(0x1a4)](_0x631a4b,_0x964f9c,_0x219fe4){}static['publishGroupBulletin'](_0x3b8a17,_0x424edd,_0x112844){}} \ No newline at end of file diff --git a/src/core.lib/src/apis/index.js b/src/core.lib/src/apis/index.js index 9e01a50d..211a7e52 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x916948,_0xc52bb0){var _0x1eea09=_0x2c65,_0x34b15a=_0x916948();while(!![]){try{var _0x4d97af=parseInt(_0x1eea09(0x1fa))/0x1*(-parseInt(_0x1eea09(0x1f8))/0x2)+-parseInt(_0x1eea09(0x1ff))/0x3*(parseInt(_0x1eea09(0x1f9))/0x4)+-parseInt(_0x1eea09(0x1f5))/0x5*(parseInt(_0x1eea09(0x1f7))/0x6)+parseInt(_0x1eea09(0x1fb))/0x7*(-parseInt(_0x1eea09(0x201))/0x8)+-parseInt(_0x1eea09(0x1fd))/0x9*(-parseInt(_0x1eea09(0x1f4))/0xa)+-parseInt(_0x1eea09(0x1fe))/0xb*(parseInt(_0x1eea09(0x1fc))/0xc)+-parseInt(_0x1eea09(0x1f6))/0xd*(-parseInt(_0x1eea09(0x200))/0xe);if(_0x4d97af===_0xc52bb0)break;else _0x34b15a['push'](_0x34b15a['shift']());}catch(_0x5da7b0){_0x34b15a['push'](_0x34b15a['shift']());}}}(_0x11a6,0xb09d3));export*from'./file';function _0x11a6(){var _0x18ee3b=['6076194MtqjHC','2aXikdM','4UwKjwv','711359moEOeB','5250imAKbg','12jemCTd','603bXlUhl','9433919ODeoTK','1608645KCYAdu','28OCMJCU','12880FnSXrT','5830WxUZnz','5ULyVyk','32563388krPADL'];_0x11a6=function(){return _0x18ee3b;};return _0x11a6();}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';function _0x2c65(_0x55e386,_0xc4c98c){var _0x11a66d=_0x11a6();return _0x2c65=function(_0x2c65d9,_0x46ec92){_0x2c65d9=_0x2c65d9-0x1f4;var _0x225df9=_0x11a66d[_0x2c65d9];return _0x225df9;},_0x2c65(_0x55e386,_0xc4c98c);}export*from'./webapi'; \ No newline at end of file +(function(_0x401775,_0xb2a0c9){var _0x2faeec=_0x1182,_0x7172c8=_0x401775();while(!![]){try{var _0x2277f9=-parseInt(_0x2faeec(0x6b))/0x1+-parseInt(_0x2faeec(0x70))/0x2*(-parseInt(_0x2faeec(0x72))/0x3)+parseInt(_0x2faeec(0x6e))/0x4+parseInt(_0x2faeec(0x6c))/0x5*(parseInt(_0x2faeec(0x69))/0x6)+-parseInt(_0x2faeec(0x6f))/0x7*(parseInt(_0x2faeec(0x71))/0x8)+parseInt(_0x2faeec(0x6d))/0x9+parseInt(_0x2faeec(0x6a))/0xa;if(_0x2277f9===_0xb2a0c9)break;else _0x7172c8['push'](_0x7172c8['shift']());}catch(_0x530251){_0x7172c8['push'](_0x7172c8['shift']());}}}(_0x3e0f,0xd8d26));export*from'./file';export*from'./friend';function _0x3e0f(){var _0x1cfb2e=['9072450kikbwX','445616CmHkjw','511JyLPcB','2083814qrduRo','14776HmjtDo','3URuIFZ','16098zIJyMk','1721620nHtXaO','1372299ecjdVf','115lrMVcB'];_0x3e0f=function(){return _0x1cfb2e;};return _0x3e0f();}export*from'./group';export*from'./msg';function _0x1182(_0x1c471c,_0x5dfee2){var _0x3e0fcf=_0x3e0f();return _0x1182=function(_0x11824c,_0x5b8dcd){_0x11824c=_0x11824c-0x69;var _0x17eb03=_0x3e0fcf[_0x11824c];return _0x17eb03;},_0x1182(_0x1c471c,_0x5dfee2);}export*from'./user';export*from'./webapi'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index 2f9455f1..6bca21a3 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x39c8b3=_0x3c63;(function(_0x3956af,_0x4dc1c1){const _0x47af0f=_0x3c63,_0x1dc076=_0x3956af();while(!![]){try{const _0x4fbdc8=parseInt(_0x47af0f(0xaa))/0x1*(-parseInt(_0x47af0f(0xc1))/0x2)+parseInt(_0x47af0f(0x98))/0x3*(parseInt(_0x47af0f(0xc3))/0x4)+-parseInt(_0x47af0f(0xb4))/0x5+parseInt(_0x47af0f(0x94))/0x6+parseInt(_0x47af0f(0x9c))/0x7*(-parseInt(_0x47af0f(0xc9))/0x8)+parseInt(_0x47af0f(0xc5))/0x9+parseInt(_0x47af0f(0xcc))/0xa;if(_0x4fbdc8===_0x4dc1c1)break;else _0x1dc076['push'](_0x1dc076['shift']());}catch(_0xaccfbd){_0x1dc076['push'](_0x1dc076['shift']());}}}(_0xadd1,0xb6ef4));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0x3c63(_0x11a7d0,_0x3331e1){const _0xadd141=_0xadd1();return _0x3c63=function(_0x3c6331,_0x188581){_0x3c6331=_0x3c6331-0x93;let _0x19921b=_0xadd141[_0x3c6331];return _0x19921b;},_0x3c63(_0x11a7d0,_0x3331e1);}import{sleep}from'@/common/utils/helper';function _0xadd1(){const _0x53f7cb=['onLoginSuccess','msgId','find','chatType','1514AFTHgC','getMsgHistory','32IsXAfo','arkElement','3900582JtLjPQ','session','sendMsg','sEOdk','359512CldkfW','bytesData','app','12511990uxVzKW','cwNre','6222642LgbArX','forEach','onAddSendMsg','elements','439524skAetc','recallMsg','UPKVm','BsLqj','231yyStub','getMultiMsg','parse','onMsgInfoListUpdate','Effbo','lfNrm','getMsgsBySeqAndCount','fetchRecentContact','getMsgService','setMsgRead','gEETl','HWNai','ahrQO','pJrsH','863osHLvW','setMsgEmojiLikes','getMsgsByMsgId','sendStatus','nick','then','PLcQl','catch','发送超时','forwardMsg','5040950QotKzc','com.tencent.multimsg','peerUid','qSPey','toString','xqtfT','NTvKG','activateChat','map'];_0xadd1=function(){return _0x53f7cb;};return _0xadd1();}import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x39c8b3(0x96)]=_0xd10732=>{const _0x3732ce=_0x39c8b3,_0x477a23={'lfNrm':function(_0x3de895,_0x23edb2){return _0x3de895(_0x23edb2);},'cwNre':function(_0x40b9cf,_0x133adb){return _0x40b9cf instanceof _0x133adb;}};for(const [_0x4ca90c,_0x5e0c37]of sentMsgTasks){_0x477a23[_0x3732ce(0xa1)](_0x5e0c37,_0xd10732),sentMsgTasks['delete'](_0x4ca90c);}if(sendMessagePool[_0xd10732['peerUid']]){const _0x33def9=sendMessagePool[_0xd10732[_0x3732ce(0xb6)]]?.(_0xd10732);_0x477a23[_0x3732ce(0x93)](_0x33def9,Promise)&&_0x33def9[_0x3732ce(0xaf)]()[_0x3732ce(0xb1)](logError);}},msgListener[_0x39c8b3(0x9f)]=_0x520a51=>{const _0x4b1d2c=_0x39c8b3,_0x4a734b={'PLcQl':function(_0x2c115c,_0xe61428){return _0x2c115c(_0xe61428);},'vcquu':function(_0x2c7f28,_0x1f6cf8){return _0x2c7f28 instanceof _0x1f6cf8;}};_0x520a51[_0x4b1d2c(0x95)](_0x3de11a=>{const _0x5b4e82=_0x4b1d2c;new Promise((_0x5acd27,_0x115355)=>{const _0x57161b=_0x3c63;for(const _0x487b23 in sendSuccessCBMap){const _0x2723e0=sendSuccessCBMap[_0x487b23],_0x23b333=_0x4a734b['PLcQl'](_0x2723e0,_0x3de11a),_0x1fd874=_0x1dd553=>{_0x1dd553&&delete sendSuccessCBMap[_0x487b23];};_0x4a734b['vcquu'](_0x23b333,Promise)?_0x23b333['then'](_0x1fd874):_0x4a734b[_0x57161b(0xb0)](_0x1fd874,_0x23b333);}})[_0x5b4e82(0xaf)]()[_0x5b4e82(0xb1)](log);});},setTimeout(()=>{const _0x1a4832=_0x39c8b3;napCatCore[_0x1a4832(0xbd)](()=>{napCatCore['addListener'](msgListener);});},0x64);export class NTQQMsgApi{static async['setEmojiLike'](_0x20d1eb,_0x1749a0,_0x2c1688,_0x432a53=!![]){const _0x5be4ea=_0x39c8b3;return _0x2c1688=_0x2c1688[_0x5be4ea(0xb8)](),napCatCore[_0x5be4ea(0xc6)]['getMsgService']()[_0x5be4ea(0xab)](_0x20d1eb,_0x1749a0,_0x2c1688,_0x2c1688['length']>0x3?'2':'1',_0x432a53);}static async['getMultiMsg'](_0x469bf3,_0x33117b,_0x49c0dd){const _0x25fb45=_0x39c8b3;return napCatCore[_0x25fb45(0xc6)][_0x25fb45(0xa4)]()[_0x25fb45(0x9d)](_0x469bf3,_0x33117b,_0x49c0dd);}static async[_0x39c8b3(0xac)](_0x461ad3,_0x20951b){const _0x28c30a=_0x39c8b3;return await napCatCore[_0x28c30a(0xc6)][_0x28c30a(0xa4)]()[_0x28c30a(0xac)](_0x461ad3,_0x20951b);}static async[_0x39c8b3(0xa2)](_0x3c4351,_0x4ff9d1,_0x259942,_0x56e9ae,_0x4c07e5){const _0x29f489=_0x39c8b3;return await napCatCore[_0x29f489(0xc6)]['getMsgService']()[_0x29f489(0xa2)](_0x3c4351,_0x4ff9d1,_0x259942,_0x56e9ae,_0x4c07e5);}static async[_0x39c8b3(0xbb)](_0x2b0234){}static async['activateChatAndGetHistory'](_0x258295){}static async['setMsgRead'](_0x305481){const _0x1c708e=_0x39c8b3;return napCatCore['session'][_0x1c708e(0xa4)]()[_0x1c708e(0xa5)](_0x305481);}static async[_0x39c8b3(0xc2)](_0x1c81bd,_0x1923da,_0x227ef1){const _0x2ede0b=_0x39c8b3;return napCatCore['session'][_0x2ede0b(0xa4)]()['getMsgsIncludeSelf'](_0x1c81bd,_0x1923da,_0x227ef1,!![]);}static async[_0x39c8b3(0xa3)](){}static async['recallMsg'](_0x44b29c,_0x169908){const _0x464708=_0x39c8b3;await napCatCore[_0x464708(0xc6)][_0x464708(0xa4)]()[_0x464708(0x99)]({'chatType':_0x44b29c[_0x464708(0xc0)],'peerUid':_0x44b29c['peerUid']},_0x169908);}static async[_0x39c8b3(0xc7)](_0x2f1a6f,_0x583374,_0x38b87d=!![],_0x26283d=0x2710){const _0x3c70cf=_0x39c8b3,_0x1fd0a2={'qSPey':function(_0x223725,_0x2ec060){return _0x223725>_0x2ec060;},'UPKVm':_0x3c70cf(0xb2),'Effbo':function(_0x40e48e,_0x4ad637){return _0x40e48e(_0x4ad637);},'xqtfT':function(_0x36e0c3){return _0x36e0c3();},'HWNai':function(_0xe61ddd,_0x2c4f1a){return _0xe61ddd(_0x2c4f1a);},'xBkPs':function(_0x5226ca,_0x1e8b1c,_0x59b903){return _0x5226ca(_0x1e8b1c,_0x59b903);}},_0x428f27=_0x2f1a6f['peerUid'];let _0x30d735=0x0;const _0x258922=async()=>{const _0x5a564d=_0x3c70cf;if(_0x1fd0a2[_0x5a564d(0xb7)](_0x30d735,_0x26283d))throw _0x1fd0a2[_0x5a564d(0x9a)];const _0x12419f=sendMessagePool[_0x2f1a6f[_0x5a564d(0xb6)]];if(_0x12419f)return await _0x1fd0a2[_0x5a564d(0xa0)](sleep,0x1f4),_0x30d735+=0x1f4,await _0x1fd0a2[_0x5a564d(0xb9)](_0x258922);else return;};return await _0x258922(),new Promise((_0xca361a,_0x409f28)=>{const _0x5b7dcc=_0x3c70cf,_0x3c1656={'ahrQO':function(_0x16a0e8,_0x2fdf5e){return _0x16a0e8===_0x2fdf5e;},'pJrsH':function(_0x1fe546,_0x1474ff){const _0x58d819=_0x3c63;return _0x1fd0a2[_0x58d819(0xa7)](_0x1fe546,_0x1474ff);}};let _0x2aa313=![],_0x5bc091=null;const _0x23131b=_0x1fd0a2[_0x5b7dcc(0xb9)](randomUUID);sendSuccessCBMap[_0x23131b]=_0xe4cdb=>{const _0x18e269=_0x5b7dcc;if(_0x3c1656[_0x18e269(0xa8)](_0xe4cdb[_0x18e269(0xbe)],_0x5bc091?.[_0x18e269(0xbe)])){if(_0x3c1656['ahrQO'](_0xe4cdb[_0x18e269(0xad)],0x2))return delete sendSuccessCBMap[_0x23131b],_0x2aa313=!![],_0x3c1656[_0x18e269(0xa9)](_0xca361a,_0xe4cdb),!![];return![];}return![];},sendMessagePool[_0x428f27]=async _0x1000ef=>{delete sendMessagePool[_0x428f27],_0x5bc091=_0x1000ef;},_0x1fd0a2['xBkPs'](setTimeout,()=>{const _0x928c0c=_0x5b7dcc;if(_0x2aa313)return;delete sendMessagePool[_0x428f27],delete sendSuccessCBMap[_0x23131b],_0x1fd0a2[_0x928c0c(0xa0)](_0x409f28,_0x1fd0a2[_0x928c0c(0x9a)]);},_0x26283d);const _0x338af7=napCatCore[_0x5b7dcc(0xc6)][_0x5b7dcc(0xa4)]()[_0x5b7dcc(0xc7)]('0',_0x2f1a6f,_0x583374,new Map());});}static async[_0x39c8b3(0xb3)](_0x312966,_0x318d5f,_0xe4367d){const _0x5773b1=_0x39c8b3;return napCatCore[_0x5773b1(0xc6)][_0x5773b1(0xa4)]()['forwardMsg'](_0xe4367d,_0x312966,[_0x318d5f],new Map());}static async['multiForwardMsg'](_0x18bb8c,_0x139c4a,_0x5b5334){const _0x436a90=_0x39c8b3,_0x55920c={'sEOdk':function(_0x166507,_0x1fd738){return _0x166507!=_0x1fd738;},'gEETl':_0x436a90(0xb5),'cavBM':function(_0x357281,_0x2139d9){return _0x357281==_0x2139d9;},'uwISY':function(_0x37b8aa,_0x38232b){return _0x37b8aa==_0x38232b;},'BsLqj':'转发消息超时','NTvKG':function(_0x53615e,_0x153637,_0x5ea0f0){return _0x53615e(_0x153637,_0x5ea0f0);}},_0x5a7c55=_0x5b5334[_0x436a90(0xbc)](_0x1c9da2=>{const _0x4b7d34=_0x436a90;return{'msgId':_0x1c9da2,'senderShowName':selfInfo[_0x4b7d34(0xae)]};});return new Promise((_0x5ed841,_0x2f8bc8)=>{const _0x59f8b6=_0x436a90,_0x39dd5c={'DDCSU':_0x55920c[_0x59f8b6(0x9b)]};let _0x5735d8=![];const _0x468b5a=_0x150f1c=>{const _0x2f47=_0x59f8b6,_0xed52d0=_0x150f1c[_0x2f47(0x97)][_0x2f47(0xbf)](_0x21a34c=>_0x21a34c[_0x2f47(0xc4)]);if(!_0xed52d0)return;const _0x2d8ce6=JSON[_0x2f47(0x9e)](_0xed52d0['arkElement'][_0x2f47(0xca)]);if(_0x55920c[_0x2f47(0xc8)](_0x2d8ce6[_0x2f47(0xcb)],_0x55920c[_0x2f47(0xa6)]))return;_0x55920c['cavBM'](_0x150f1c[_0x2f47(0xb6)],_0x139c4a['peerUid'])&&_0x55920c['uwISY'](_0x150f1c['senderUid'],selfInfo['uid'])&&(_0x5735d8=!![],_0x5ed841(_0x150f1c));};sentMsgTasks['set'](randomUUID(),_0x468b5a),_0x55920c[_0x59f8b6(0xba)](setTimeout,()=>{!_0x5735d8&&_0x2f8bc8(_0x39dd5c['DDCSU']);},0x1388),napCatCore[_0x59f8b6(0xc6)]['getMsgService']()['multiForwardMsgWithComment'](_0x5a7c55,_0x18bb8c,_0x139c4a,[],new Map());});}} \ No newline at end of file +const _0x4b0fcf=_0x2adc;(function(_0x1bf26e,_0x2f8c30){const _0x307e4a=_0x2adc,_0x809fbb=_0x1bf26e();while(!![]){try{const _0x89858=parseInt(_0x307e4a(0xb6))/0x1*(parseInt(_0x307e4a(0xa0))/0x2)+-parseInt(_0x307e4a(0xbd))/0x3+parseInt(_0x307e4a(0xca))/0x4+-parseInt(_0x307e4a(0xb0))/0x5*(parseInt(_0x307e4a(0xc3))/0x6)+parseInt(_0x307e4a(0x9b))/0x7*(parseInt(_0x307e4a(0xb2))/0x8)+parseInt(_0x307e4a(0xb1))/0x9+parseInt(_0x307e4a(0xb8))/0xa;if(_0x89858===_0x2f8c30)break;else _0x809fbb['push'](_0x809fbb['shift']());}catch(_0x54b78d){_0x809fbb['push'](_0x809fbb['shift']());}}}(_0xa5c3,0x18b52));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0x2adc(_0x538546,_0x495680){const _0xa5c335=_0xa5c3();return _0x2adc=function(_0x2adc70,_0x5632d4){_0x2adc70=_0x2adc70-0x88;let _0x3eaa5b=_0xa5c335[_0x2adc70];return _0x3eaa5b;},_0x2adc(_0x538546,_0x495680);}function _0xa5c3(){const _0xc45952=['562BArTzA','getMsgService','onAddSendMsg','then','getMultiMsg','Zlils','recallMsg','VLKGI','gpQsG','getMsgsByMsgId','发送超时','msgId','peerUid','set','catch','cUZgG','451730xxsdOi','966114FyEnCH','80ErKrmG','delete','leEhn','session','193DiuzkV','forwardMsg','246450agkUMz','OqFUB','sjjOh','phPHn','HJlRM','496269hZzwPS','getMsgsIncludeSelf','getMsgsBySeqAndCount','setMsgEmojiLikes','setEmojiLike','com.tencent.multimsg','6CyvLjH','senderUid','eUrFZ','fetchRecentContact','chatType','转发消息超时','vHeOk','189348Skofqq','elements','nick','toString','activateChatAndGetHistory','VZxPx','jmqkA','bytesData','qRWnj','multiForwardMsg','iRWOK','app','kDanX','amsvl','sgbGm','getMsgHistory','onMsgInfoListUpdate','EWiHa','HDyjr','arkElement','find','IhYcW','length','map','addListener','activateChat','onLoginSuccess','86387EllYQM','setMsgRead','forEach','sendMsg','AMrLd'];_0xa5c3=function(){return _0xc45952;};return _0xa5c3();}import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x4b0fcf(0xa2)]=_0x291477=>{const _0x5970b5=_0x4b0fcf,_0x42799c={'KUFrk':function(_0x572d02,_0x461772){return _0x572d02(_0x461772);},'EWiHa':function(_0x495f39,_0x55223f){return _0x495f39 instanceof _0x55223f;}};for(const [_0x5d913f,_0x25e579]of sentMsgTasks){_0x42799c['KUFrk'](_0x25e579,_0x291477),sentMsgTasks[_0x5970b5(0xb3)](_0x5d913f);}if(sendMessagePool[_0x291477['peerUid']]){const _0x367df9=sendMessagePool[_0x291477['peerUid']]?.(_0x291477);_0x42799c[_0x5970b5(0x91)](_0x367df9,Promise)&&_0x367df9['then']()[_0x5970b5(0xae)](logError);}},msgListener[_0x4b0fcf(0x90)]=_0x15dbe9=>{const _0x445cd9=_0x4b0fcf,_0x2c6ee3={'cUZgG':function(_0x2996c7,_0x48ee68){return _0x2996c7(_0x48ee68);},'kDanX':function(_0x246373,_0x53d37c){return _0x246373 instanceof _0x53d37c;}};_0x15dbe9[_0x445cd9(0x9d)](_0x2573ba=>{const _0x41d4a1=_0x445cd9,_0x1e2f63={'IhYcW':function(_0x2f3082,_0x183cdc){const _0x476936=_0x2adc;return _0x2c6ee3[_0x476936(0xaf)](_0x2f3082,_0x183cdc);},'leEhn':function(_0x184a09,_0xa28c){const _0xb19d15=_0x2adc;return _0x2c6ee3[_0xb19d15(0x8c)](_0x184a09,_0xa28c);}};new Promise((_0xfbb497,_0x502181)=>{const _0x330ea1=_0x2adc;for(const _0x1581ab in sendSuccessCBMap){const _0x5a9786=sendSuccessCBMap[_0x1581ab],_0x4336e2=_0x1e2f63[_0x330ea1(0x95)](_0x5a9786,_0x2573ba),_0x494c1c=_0x13a019=>{_0x13a019&&delete sendSuccessCBMap[_0x1581ab];};_0x1e2f63[_0x330ea1(0xb4)](_0x4336e2,Promise)?_0x4336e2[_0x330ea1(0xa3)](_0x494c1c):_0x494c1c(_0x4336e2);}})[_0x41d4a1(0xa3)]()[_0x41d4a1(0xae)](log);});},setTimeout(()=>{const _0x5f0c7d=_0x4b0fcf;napCatCore[_0x5f0c7d(0x9a)](()=>{const _0x2db7e7=_0x5f0c7d;napCatCore[_0x2db7e7(0x98)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x4b0fcf(0xc1)](_0x37e539,_0x46ccab,_0x3a6048,_0x28acc9=!![]){const _0xb32e69=_0x4b0fcf;return _0x3a6048=_0x3a6048[_0xb32e69(0xcd)](),napCatCore[_0xb32e69(0xb5)]['getMsgService']()[_0xb32e69(0xc0)](_0x37e539,_0x46ccab,_0x3a6048,_0x3a6048[_0xb32e69(0x96)]>0x3?'2':'1',_0x28acc9);}static async[_0x4b0fcf(0xa4)](_0x2863c2,_0x431f15,_0x324ea2){const _0x5735fe=_0x4b0fcf;return napCatCore[_0x5735fe(0xb5)][_0x5735fe(0xa1)]()['getMultiMsg'](_0x2863c2,_0x431f15,_0x324ea2);}static async[_0x4b0fcf(0xa9)](_0x404559,_0x20b4e6){const _0x5cd0ab=_0x4b0fcf;return await napCatCore[_0x5cd0ab(0xb5)][_0x5cd0ab(0xa1)]()[_0x5cd0ab(0xa9)](_0x404559,_0x20b4e6);}static async[_0x4b0fcf(0xbf)](_0x5423af,_0x538193,_0xeb62d1,_0xed7855,_0x337fb1){const _0x4e071b=_0x4b0fcf;return await napCatCore['session'][_0x4e071b(0xa1)]()['getMsgsBySeqAndCount'](_0x5423af,_0x538193,_0xeb62d1,_0xed7855,_0x337fb1);}static async[_0x4b0fcf(0x99)](_0x26d3b3){}static async[_0x4b0fcf(0xce)](_0x37823f){}static async[_0x4b0fcf(0x9c)](_0x1bba71){const _0x2525b7=_0x4b0fcf;return napCatCore[_0x2525b7(0xb5)][_0x2525b7(0xa1)]()[_0x2525b7(0x9c)](_0x1bba71);}static async[_0x4b0fcf(0x8f)](_0x58c535,_0x2fb738,_0x1cc34e){const _0x4c1a1c=_0x4b0fcf;return napCatCore[_0x4c1a1c(0xb5)][_0x4c1a1c(0xa1)]()[_0x4c1a1c(0xbe)](_0x58c535,_0x2fb738,_0x1cc34e,!![]);}static async[_0x4b0fcf(0xc6)](){}static async[_0x4b0fcf(0xa6)](_0x30776d,_0x41d789){const _0x218769=_0x4b0fcf;await napCatCore[_0x218769(0xb5)][_0x218769(0xa1)]()[_0x218769(0xa6)]({'chatType':_0x30776d[_0x218769(0xc7)],'peerUid':_0x30776d['peerUid']},_0x41d789);}static async['sendMsg'](_0x489347,_0x1fe30e,_0x117979=!![],_0x524e1f=0x2710){const _0x29933c=_0x4b0fcf,_0x534560={'jmqkA':function(_0x1128c6,_0x12be10){return _0x1128c6>_0x12be10;},'phPHn':_0x29933c(0xaa),'gpQsG':function(_0x12c8ca,_0x40d33c){return _0x12c8ca(_0x40d33c);},'ioNXR':function(_0x44bbcd){return _0x44bbcd();},'vHeOk':function(_0x113868,_0xb54510){return _0x113868(_0xb54510);},'HDyjr':function(_0x1ad986){return _0x1ad986();},'amsvl':function(_0x3bcf78,_0x3f6cf4,_0x2798fb){return _0x3bcf78(_0x3f6cf4,_0x2798fb);}},_0xf504ff=_0x489347[_0x29933c(0xac)];let _0x4b77e7=0x0;const _0x49dc61=async()=>{const _0x5d92f8=_0x29933c;if(_0x534560[_0x5d92f8(0xd0)](_0x4b77e7,_0x524e1f))throw _0x534560[_0x5d92f8(0xbb)];const _0x3002bd=sendMessagePool[_0x489347[_0x5d92f8(0xac)]];if(_0x3002bd)return await _0x534560[_0x5d92f8(0xa8)](sleep,0x1f4),_0x4b77e7+=0x1f4,await _0x534560['ioNXR'](_0x49dc61);else return;};return await _0x534560[_0x29933c(0x92)](_0x49dc61),new Promise((_0x427343,_0x3059dc)=>{const _0x298867=_0x29933c,_0x19f313={'muiDH':function(_0x1d0e99,_0x28ea97){return _0x1d0e99===_0x28ea97;},'qRWnj':function(_0x1f0268,_0x2ddf4f){const _0x5767f4=_0x2adc;return _0x534560[_0x5767f4(0xc9)](_0x1f0268,_0x2ddf4f);},'fQJfl':function(_0x516504,_0x38199a){return _0x516504(_0x38199a);}};let _0x48461e=![],_0x5c7302=null;const _0x39c3f8=_0x534560[_0x298867(0x92)](randomUUID);sendSuccessCBMap[_0x39c3f8]=_0x3de598=>{const _0x14f975=_0x298867;if(_0x19f313['muiDH'](_0x3de598[_0x14f975(0xab)],_0x5c7302?.[_0x14f975(0xab)])){if(_0x19f313['muiDH'](_0x3de598['sendStatus'],0x2))return delete sendSuccessCBMap[_0x39c3f8],_0x48461e=!![],_0x19f313[_0x14f975(0x88)](_0x427343,_0x3de598),!![];return![];}return![];},sendMessagePool[_0xf504ff]=async _0x18045f=>{delete sendMessagePool[_0xf504ff],_0x5c7302=_0x18045f;},_0x534560[_0x298867(0x8d)](setTimeout,()=>{const _0x3d7aac=_0x298867;if(_0x48461e)return;delete sendMessagePool[_0xf504ff],delete sendSuccessCBMap[_0x39c3f8],_0x19f313['fQJfl'](_0x3059dc,_0x3d7aac(0xaa));},_0x524e1f);const _0x17ee5f=napCatCore[_0x298867(0xb5)][_0x298867(0xa1)]()[_0x298867(0x9e)]('0',_0x489347,_0x1fe30e,new Map());});}static async['forwardMsg'](_0x1dc00a,_0x229436,_0x475836){const _0x4eac4d=_0x4b0fcf;return napCatCore[_0x4eac4d(0xb5)][_0x4eac4d(0xa1)]()[_0x4eac4d(0xb7)](_0x475836,_0x1dc00a,[_0x229436],new Map());}static async[_0x4b0fcf(0x89)](_0x1ae8d8,_0x538601,_0x4f149a){const _0x2557cc=_0x4b0fcf,_0xde746b={'sjjOh':function(_0x136c3d,_0x1ec84f){return _0x136c3d!=_0x1ec84f;},'HJlRM':function(_0x48b406,_0x1a204f){return _0x48b406==_0x1a204f;},'eUrFZ':function(_0x4ed9c7,_0xd78795){return _0x4ed9c7(_0xd78795);},'VZxPx':_0x2557cc(0xc8),'iRWOK':function(_0x2e1dad){return _0x2e1dad();}},_0x56bb97=_0x4f149a[_0x2557cc(0x97)](_0x18e260=>{const _0xc8cdb8=_0x2557cc;return{'msgId':_0x18e260,'senderShowName':selfInfo[_0xc8cdb8(0xcc)]};});return new Promise((_0x3e46ee,_0x5ed025)=>{const _0x49cd4a=_0x2557cc,_0x4ebdbd={'VLKGI':function(_0x4d9de7,_0x95fdf2){const _0x3d1033=_0x2adc;return _0xde746b[_0x3d1033(0xba)](_0x4d9de7,_0x95fdf2);},'ZkCLq':_0x49cd4a(0xc2),'Zlils':function(_0x2feb24,_0x7a3875){const _0x4ad740=_0x49cd4a;return _0xde746b[_0x4ad740(0xbc)](_0x2feb24,_0x7a3875);},'OqFUB':function(_0x4a2252,_0x34fc50){const _0x227302=_0x49cd4a;return _0xde746b[_0x227302(0xc5)](_0x4a2252,_0x34fc50);},'sgbGm':function(_0x38f8e,_0x3a2fd6){const _0x5c4e67=_0x49cd4a;return _0xde746b[_0x5c4e67(0xc5)](_0x38f8e,_0x3a2fd6);},'AMrLd':_0xde746b[_0x49cd4a(0xcf)]};let _0x545941=![];const _0x3861d9=_0x4ad486=>{const _0x1d3e22=_0x49cd4a,_0x3046da=_0x4ad486[_0x1d3e22(0xcb)][_0x1d3e22(0x94)](_0x367337=>_0x367337[_0x1d3e22(0x93)]);if(!_0x3046da)return;const _0x307c4f=JSON['parse'](_0x3046da[_0x1d3e22(0x93)][_0x1d3e22(0xd1)]);if(_0x4ebdbd[_0x1d3e22(0xa7)](_0x307c4f[_0x1d3e22(0x8b)],_0x4ebdbd['ZkCLq']))return;_0x4ad486['peerUid']==_0x538601[_0x1d3e22(0xac)]&&_0x4ebdbd[_0x1d3e22(0xa5)](_0x4ad486[_0x1d3e22(0xc4)],selfInfo['uid'])&&(_0x545941=!![],_0x4ebdbd[_0x1d3e22(0xb9)](_0x3e46ee,_0x4ad486));};sentMsgTasks[_0x49cd4a(0xad)](_0xde746b[_0x49cd4a(0x8a)](randomUUID),_0x3861d9),setTimeout(()=>{const _0x1cc588=_0x49cd4a;!_0x545941&&_0x4ebdbd[_0x1cc588(0x8e)](_0x5ed025,_0x4ebdbd[_0x1cc588(0x9f)]);},0x1388),napCatCore[_0x49cd4a(0xb5)]['getMsgService']()['multiForwardMsgWithComment'](_0x56bb97,_0x1ae8d8,_0x538601,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/sign.js b/src/core.lib/src/apis/sign.js index 896b35ec..e4d6f5bd 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -function _0x4334(_0x2dd15c,_0x138816){var _0xfb4644=_0xfb46();return _0x4334=function(_0x4334c3,_0x11b5de){_0x4334c3=_0x4334c3-0x1d8;var _0x28d096=_0xfb4644[_0x4334c3];return _0x28d096;},_0x4334(_0x2dd15c,_0x138816);}var _0x6abbf3=_0x4334;(function(_0x5389f8,_0x5db40d){var _0x331e77=_0x4334,_0x5805b0=_0x5389f8();while(!![]){try{var _0x3216d9=-parseInt(_0x331e77(0x1e2))/0x1+-parseInt(_0x331e77(0x1e9))/0x2*(parseInt(_0x331e77(0x1ee))/0x3)+-parseInt(_0x331e77(0x1e6))/0x4*(parseInt(_0x331e77(0x1e8))/0x5)+parseInt(_0x331e77(0x1e7))/0x6+parseInt(_0x331e77(0x1e3))/0x7*(-parseInt(_0x331e77(0x1eb))/0x8)+parseInt(_0x331e77(0x1da))/0x9*(parseInt(_0x331e77(0x1e1))/0xa)+parseInt(_0x331e77(0x1de))/0xb*(parseInt(_0x331e77(0x1d9))/0xc);if(_0x3216d9===_0x5db40d)break;else _0x5805b0['push'](_0x5805b0['shift']());}catch(_0x4aa393){_0x5805b0['push'](_0x5805b0['shift']());}}}(_0xfb46,0x3343e));import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x6abbf3(0x1d8)];constructor(_0x254782){var _0x8b22c7=_0x6abbf3;this[_0x8b22c7(0x1d8)]=_0x254782;}[_0x6abbf3(0x1e5)](_0x57e32c){var _0x425273=_0x6abbf3,_0x39507c={'sDqkF':function(_0x12c616,_0x42277b){return _0x12c616(_0x42277b);},'bhfKZ':function(_0x59b1da,_0x2faeba,_0x3122a6){return _0x59b1da(_0x2faeba,_0x3122a6);},'cxYYw':_0x425273(0x1dc),'CEXwQ':_0x425273(0x1dd)};return new Promise((_0x3f7ec3,_0x56557a)=>{var _0x20ff9c=_0x425273,_0x4da4a6={'dcITW':function(_0x2af7a3,_0x3dda2d){return _0x39507c['sDqkF'](_0x2af7a3,_0x3dda2d);},'wrCom':'音乐消息生成成功'};_0x39507c[_0x20ff9c(0x1ec)](fetch,this[_0x20ff9c(0x1d8)],{'method':_0x39507c[_0x20ff9c(0x1db)],'headers':{'Content-Type':_0x39507c['CEXwQ']},'body':JSON[_0x20ff9c(0x1ea)](_0x57e32c)})[_0x20ff9c(0x1e0)](_0x52fc3b=>{var _0x42ec27=_0x20ff9c;return!_0x52fc3b['ok']&&_0x4da4a6['dcITW'](_0x56557a,_0x52fc3b[_0x42ec27(0x1df)]),_0x52fc3b['json']();})['then'](_0x6a1f63=>{var _0x3d6b69=_0x20ff9c;logDebug(_0x4da4a6[_0x3d6b69(0x1e4)],_0x6a1f63),_0x4da4a6['dcITW'](_0x3f7ec3,_0x6a1f63);})[_0x20ff9c(0x1ed)](_0x4e2209=>{_0x4da4a6['dcITW'](_0x56557a,_0x4e2209);});});}}function _0xfb46(){var _0x117b7a=['693nRUhth','statusText','then','270uBxBnc','289955WGxigT','235494QkfteI','wrCom','sign','20992zWcWkl','1383966RQvqDH','265DOrZvv','2ijWMDI','stringify','8xGIdif','bhfKZ','catch','283380aeAPdd','url','63516uCsoiU','114021XIrtKy','cxYYw','POST','application/json'];_0xfb46=function(){return _0x117b7a;};return _0xfb46();} \ No newline at end of file +function _0x29e3(_0x21ce45,_0x5630fe){var _0x358f7e=_0x358f();return _0x29e3=function(_0x29e340,_0x4a082e){_0x29e340=_0x29e340-0x14f;var _0x1eab3b=_0x358f7e[_0x29e340];return _0x1eab3b;},_0x29e3(_0x21ce45,_0x5630fe);}var _0x4c6393=_0x29e3;(function(_0x1300ce,_0x38ac58){var _0x52a96e=_0x29e3,_0x4230ca=_0x1300ce();while(!![]){try{var _0x3a0e89=-parseInt(_0x52a96e(0x150))/0x1+parseInt(_0x52a96e(0x161))/0x2+-parseInt(_0x52a96e(0x15b))/0x3*(parseInt(_0x52a96e(0x164))/0x4)+-parseInt(_0x52a96e(0x159))/0x5*(-parseInt(_0x52a96e(0x163))/0x6)+parseInt(_0x52a96e(0x158))/0x7*(parseInt(_0x52a96e(0x160))/0x8)+-parseInt(_0x52a96e(0x15e))/0x9+parseInt(_0x52a96e(0x155))/0xa;if(_0x3a0e89===_0x38ac58)break;else _0x4230ca['push'](_0x4230ca['shift']());}catch(_0x4c0fa8){_0x4230ca['push'](_0x4230ca['shift']());}}}(_0x358f,0xd769d));function _0x358f(){var _0x4e3ce4=['url','sign','AaTCZ','11072380jQsgxf','json','then','7yfdJlc','515vLfIlV','stringify','2944452UeuRxB','statusText','application/json','13171797bAFvHO','音乐消息生成成功','3132376qmVKmz','2753498pPaleZ','EcRbj','44898grifXX','4JaaAUn','yVimA','catch','aMMMd','POST','318933gVOsYR','izCee'];_0x358f=function(){return _0x4e3ce4;};return _0x358f();}import{logDebug}from'@/common/utils/log';export class MusicSign{['url'];constructor(_0x54ce31){this['url']=_0x54ce31;}[_0x4c6393(0x153)](_0x4f0075){var _0x4ecfb6=_0x4c6393,_0x33aeca={'aMMMd':function(_0x3b71e2,_0x380032,_0x3b9133){return _0x3b71e2(_0x380032,_0x3b9133);},'EcRbj':_0x4ecfb6(0x15f),'izCee':function(_0x2d672b,_0x4d4b89){return _0x2d672b(_0x4d4b89);},'AaTCZ':_0x4ecfb6(0x14f),'wmfWb':_0x4ecfb6(0x15d)};return new Promise((_0x5d9acf,_0x141a6c)=>{var _0x2efbfb=_0x4ecfb6,_0x5776c7={'yVimA':function(_0x3c4b0f,_0x5c6daa){return _0x3c4b0f(_0x5c6daa);}};fetch(this[_0x2efbfb(0x152)],{'method':_0x33aeca[_0x2efbfb(0x154)],'headers':{'Content-Type':_0x33aeca['wmfWb']},'body':JSON[_0x2efbfb(0x15a)](_0x4f0075)})[_0x2efbfb(0x157)](_0x12e5a7=>{var _0xf245f1=_0x2efbfb;return!_0x12e5a7['ok']&&_0x5776c7[_0xf245f1(0x165)](_0x141a6c,_0x12e5a7[_0xf245f1(0x15c)]),_0x12e5a7[_0xf245f1(0x156)]();})[_0x2efbfb(0x157)](_0xe03e60=>{var _0x42743a=_0x2efbfb;_0x33aeca[_0x42743a(0x167)](logDebug,_0x33aeca[_0x42743a(0x162)],_0xe03e60),_0x33aeca[_0x42743a(0x151)](_0x5d9acf,_0xe03e60);})[_0x2efbfb(0x166)](_0xd7984d=>{var _0x4059a0=_0x2efbfb;_0x5776c7[_0x4059a0(0x165)](_0x141a6c,_0xd7984d);});});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index f0f63363..1fd7cf0b 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x3b6948=_0xed1c;(function(_0x822e2f,_0x4f84ce){const _0x45e850=_0xed1c,_0xdb08c7=_0x822e2f();while(!![]){try{const _0x2dc93e=parseInt(_0x45e850(0x9b))/0x1*(parseInt(_0x45e850(0xae))/0x2)+parseInt(_0x45e850(0x8e))/0x3+parseInt(_0x45e850(0x9e))/0x4*(-parseInt(_0x45e850(0x91))/0x5)+parseInt(_0x45e850(0x81))/0x6*(-parseInt(_0x45e850(0x99))/0x7)+parseInt(_0x45e850(0x85))/0x8+-parseInt(_0x45e850(0x8b))/0x9+parseInt(_0x45e850(0x8f))/0xa*(-parseInt(_0x45e850(0xac))/0xb);if(_0x2dc93e===_0x4f84ce)break;else _0xdb08c7['push'](_0xdb08c7['shift']());}catch(_0x187b7f){_0xdb08c7['push'](_0xdb08c7['shift']());}}}(_0x49cb,0x9a74b));import{Credentials,selfInfo}from'@/core/data';function _0xed1c(_0x36f6f0,_0x14cabd){const _0x49cb7f=_0x49cb();return _0xed1c=function(_0xed1c9a,_0x17acee){_0xed1c9a=_0xed1c9a-0x7c;let _0x3cb118=_0x49cb7f[_0xed1c9a];return _0x3cb118;},_0xed1c(_0x36f6f0,_0x14cabd);}import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{HttpGetCookies}from'../../../common/utils/request';import{logError}from'@/common/utils/log';function _0x49cb(){const _0x118e3a=['5056970TrbIJb','mPodn','10qrPgUz','TSenw','IrEwF','Skey','getSelfInfo','getUserInfo','TpfHP','forEach','7cuqIvo','forceFetchClientKey','795928NZkGLV','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','setSelfOnlineStatus','1207624diyFyN','onProfileDetailInfoChanged','uid','push','errMsg','getPskey','entries','now','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','getTipOffService','getTicketService','CreatTime','&clientkey=','eGqhO','11bTimvz','assign','2EFVkmJ','qcnMn','getMsgService','get','fromEntries','获取Pskey失败','PskeyData','mFkdH','onLoginSuccess','getUserDetailInfo','setBuddyProfileLike','fHmGZ','set','zCkoA','getPSkey','144930HtQSuo','delete','session','getProfileService','2259216ZTjQzj','jbwzK','result','KlTle','PskeyTime','getUserDetailInfoWithBizInfo','3415347qfoXgo','PvkFQ','getUserDetailInfo\x20timeout','3202404IJbsBl'];_0x49cb=function(){return _0x118e3a;};return _0x49cb();}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x3b6948(0x9f)]=_0x526f48=>{const _0x3eb3a7=_0x3b6948;userInfoCache[_0x526f48[_0x3eb3a7(0xa0)]]=_0x526f48,userDetailHandlers[_0x3eb3a7(0x98)](_0x2102b7=>_0x2102b7(_0x526f48));},setTimeout(()=>{const _0x16b795=_0x3b6948;napCatCore[_0x16b795(0xb6)](()=>{napCatCore['addListener'](profileListener);});},0x64);export class NTQQUserApi{static async[_0x3b6948(0x9d)](_0x555ab6,_0x3baf9c,_0xd31a7f){const _0x437f5b=_0x3b6948;return napCatCore[_0x437f5b(0x83)][_0x437f5b(0xb0)]()['setStatus']({'status':_0x555ab6,'extStatus':_0x3baf9c,'batteryStatus':_0xd31a7f});}static async['like'](_0x108e87,_0x1acc06=0x1){const _0x1937e7=_0x3b6948;return napCatCore[_0x1937e7(0x83)]['getProfileLikeService']()[_0x1937e7(0x7c)]({'friendUid':_0x108e87,'sourceId':0x47,'doLikeCount':_0x1acc06,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x306ce0){const _0x4fe662=_0x3b6948,_0x1dbd2f=napCatCore[_0x4fe662(0x83)][_0x4fe662(0x84)]()['setHeader'](_0x306ce0);return{'result':_0x1dbd2f?.[_0x4fe662(0x87)],'errMsg':_0x1dbd2f?.[_0x4fe662(0xa2)]};}static async[_0x3b6948(0x95)](){}static async[_0x3b6948(0x96)](_0x14c35b){}static async[_0x3b6948(0xb7)](_0x2b9f8e){const _0x3aa321=_0x3b6948,_0x4062a5={'fHmGZ':function(_0x13cd31,_0xd38232){return _0x13cd31===_0xd38232;},'qcnMn':function(_0x220ab8,_0x1ab683){return _0x220ab8(_0x1ab683);},'KlTle':function(_0x384580,_0x474d4b,_0x447922){return _0x384580(_0x474d4b,_0x447922);}},_0x5473aa=napCatCore[_0x3aa321(0x83)][_0x3aa321(0x84)]();return new Promise((_0x656c3b,_0x5bc48e)=>{const _0x577449=_0x3aa321,_0x5435ae={'QAjIT':_0x577449(0x8d),'IGZWX':function(_0x56bf4c,_0x53749b){const _0xcbf845=_0x577449;return _0x4062a5[_0xcbf845(0x7d)](_0x56bf4c,_0x53749b);},'PvkFQ':function(_0x21fc02,_0x3cb0cd){const _0x399811=_0x577449;return _0x4062a5[_0x399811(0xaf)](_0x21fc02,_0x3cb0cd);}},_0x4a28a2=randomUUID();let _0x4aaf3c=![];_0x4062a5[_0x577449(0x88)](setTimeout,()=>{!_0x4aaf3c&&_0x5bc48e(_0x5435ae['QAjIT']);},0x1388),userDetailHandlers[_0x577449(0x7e)](_0x4a28a2,_0x4f7d66=>{const _0x3fc175=_0x577449;_0x5435ae['IGZWX'](_0x4f7d66[_0x3fc175(0xa0)],_0x2b9f8e)&&(_0x4aaf3c=!![],userDetailHandlers[_0x3fc175(0x82)](_0x4a28a2),_0x5435ae[_0x3fc175(0x8c)](_0x656c3b,_0x4f7d66));}),_0x5473aa[_0x577449(0x8a)](_0x2b9f8e,[0x0])['then'](_0x76dc72=>{});});}static async[_0x3b6948(0x80)](_0x5468e5,_0x2b5cba=!![]){const _0x8d89a1=_0x3b6948,_0x4ef831={'TSenw':function(_0x15f99c,_0x412269){return _0x15f99c-_0x412269;},'zCkoA':function(_0x5bc28f,_0x5d4ce3){return _0x5bc28f*_0x5d4ce3;},'mFkdH':function(_0x39d482,_0x3c5ec2){return _0x39d482===_0x3c5ec2;},'Mtnsy':_0x8d89a1(0xb3)};let _0x691729=[],_0x124bd2={};for(let _0x3670dd in _0x5468e5){let _0x4e3c02=Credentials[_0x8d89a1(0xb4)][_0x8d89a1(0xb1)](_0x5468e5[_0x3670dd]),_0x76ac7b=Credentials[_0x8d89a1(0x89)]['get'](_0x5468e5[_0x3670dd]);!_0x4e3c02||!_0x76ac7b||_0x4ef831[_0x8d89a1(0x92)](Date[_0x8d89a1(0xa5)](),_0x76ac7b)>_0x4ef831[_0x8d89a1(0x7f)](0x708,0x3e8)||!_0x2b5cba?_0x691729[_0x8d89a1(0xa1)](_0x5468e5[_0x3670dd]):_0x124bd2[_0x5468e5[_0x3670dd]]=_0x4e3c02;}let _0x4b1c82={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x691729['length']>0x0&&(_0x4b1c82=await napCatCore['session'][_0x8d89a1(0xa7)]()[_0x8d89a1(0xa3)](_0x691729,!![]));let _0x267a6c=_0x4b1c82['domainPskeyMap'];for(let _0x4df6d0 of _0x267a6c[_0x8d89a1(0xa4)]()){Credentials[_0x8d89a1(0xb4)]['set'](_0x4df6d0[0x0],_0x4df6d0[0x1]),Credentials[_0x8d89a1(0x89)][_0x8d89a1(0x7e)](_0x4df6d0[0x0],Date[_0x8d89a1(0xa5)]());}let _0x36fd14=Object[_0x8d89a1(0xad)](Object[_0x8d89a1(0xb2)](_0x267a6c),_0x124bd2);if(_0x4ef831[_0x8d89a1(0xb5)](_0x4b1c82[_0x8d89a1(0x87)],0x0))return _0x36fd14;else logError(_0x4ef831['Mtnsy'],_0x4b1c82[_0x8d89a1(0xa2)]);return{};}static async['getRobotUinRange'](){const _0x4d5112=await napCatCore['session']['getRobotService']()['getRobotUinRange']({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x4d5112?.['response']?.['robotUinRanges'];}static async['getSkey'](_0x36da8e=!![]){const _0x4d106f=_0x3b6948,_0x578f99={'IuNIS':function(_0x42bfc0,_0x20d94e){return _0x42bfc0>_0x20d94e;},'eGqhO':function(_0x312ac0,_0x1585f8){return _0x312ac0!==_0x1585f8;},'IrEwF':function(_0x4366f5,_0x5d9b39){return _0x4366f5+_0x5d9b39;},'jbwzK':function(_0x192c0d,_0x42f93f){return _0x192c0d+_0x42f93f;},'iDAmC':_0x4d106f(0xa6),'yqIHw':_0x4d106f(0xaa),'TpfHP':_0x4d106f(0x9c),'mPodn':'skey'};try{if(Credentials[_0x4d106f(0xa9)]==0x0||_0x578f99['IuNIS'](Date['now']()-Credentials[_0x4d106f(0xa9)],0x3e8*0xe10)||!_0x36da8e){const _0x2f4b93=await napCatCore[_0x4d106f(0x83)][_0x4d106f(0xa8)]()[_0x4d106f(0x9a)]('');if(_0x578f99[_0x4d106f(0xab)](_0x2f4b93[_0x4d106f(0x87)],0x0))return'';const _0x5ec466=_0x2f4b93['clientKey'],_0x409fd1=_0x2f4b93['keyIndex'],_0x5e59d5=_0x578f99[_0x4d106f(0x93)](_0x578f99[_0x4d106f(0x93)](_0x578f99[_0x4d106f(0x86)](_0x578f99['iDAmC'],selfInfo['uin'])+_0x578f99['yqIHw']+_0x5ec466,_0x578f99[_0x4d106f(0x97)]),_0x409fd1),_0x43a3b6=await HttpGetCookies(_0x5e59d5),_0x1fb099=_0x43a3b6[_0x4d106f(0xb1)](_0x578f99[_0x4d106f(0x90)]);if(!_0x1fb099)return'';return Credentials[_0x4d106f(0xa9)]=Date['now'](),Credentials[_0x4d106f(0x94)]=_0x1fb099,_0x1fb099;}return Credentials['Skey'];}catch(_0x54d337){}return undefined;}} \ No newline at end of file +const _0x2f9c92=_0x3489;(function(_0x4bfcd0,_0x5b7014){const _0x935d18=_0x3489,_0x592563=_0x4bfcd0();while(!![]){try{const _0x1e1a35=-parseInt(_0x935d18(0x1f6))/0x1*(-parseInt(_0x935d18(0x1f3))/0x2)+parseInt(_0x935d18(0x202))/0x3+parseInt(_0x935d18(0x1d4))/0x4*(-parseInt(_0x935d18(0x1c4))/0x5)+parseInt(_0x935d18(0x1ff))/0x6*(-parseInt(_0x935d18(0x1f7))/0x7)+-parseInt(_0x935d18(0x1fb))/0x8+-parseInt(_0x935d18(0x1f8))/0x9+-parseInt(_0x935d18(0x1f9))/0xa*(-parseInt(_0x935d18(0x206))/0xb);if(_0x1e1a35===_0x5b7014)break;else _0x592563['push'](_0x592563['shift']());}catch(_0x1bd596){_0x592563['push'](_0x592563['shift']());}}}(_0x529c,0x2d871));function _0x3489(_0x1d96d7,_0x182bae){const _0x529c55=_0x529c();return _0x3489=function(_0x348914,_0xc67bcf){_0x348914=_0x348914-0x1c2;let _0x18424f=_0x529c55[_0x348914];return _0x18424f;},_0x3489(_0x1d96d7,_0x182bae);}import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';function _0x529c(){const _0x484555=['HYcWH','IkeLE','CreatTime','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','getMsgService','getUserDetailInfo','errMsg','forceFetchClientKey','uSWul','now','clientKey','length','getUserInfo','response','8NPTBzs','like','getSelfInfo','13525TFeohq','304997faaCky','664848CLQOcj','968210YRCFJN','forEach','1288384kKCQqf','SxqId','DxpzD','set','6nqCwBF','addListener','getUserDetailInfo\x20timeout','899961ABwmOv','Hlaag','setHeader','getPSkey','44UvxLjC','CrIji','gmOrd','push','XqxtM','NteFC','setBuddyProfileLike','getRobotUinRange','robotUinRanges','460665oTXisO','delete','&clientkey=','Skey','getProfileLikeService','keyIndex','getSkey','skey','gfLGD','获取Pskey失败','session','setQQAvatar','uin','rrbeC','kVLJW','PskeyTime','12zgIymY','getPskey','getRobotService','DfbyN','PskeyData','domainPskeyMap','setSelfOnlineStatus','uid','onLoginSuccess','get','getProfileService','getTicketService','getTipOffService','pVrYV','entries','result','then'];_0x529c=function(){return _0x484555;};return _0x529c();}import{randomUUID}from'crypto';import{HttpGetCookies}from'../../../common/utils/request';import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener['onProfileDetailInfoChanged']=_0x1871e9=>{const _0xf012fb=_0x3489;userInfoCache[_0x1871e9[_0xf012fb(0x1db)]]=_0x1871e9,userDetailHandlers[_0xf012fb(0x1fa)](_0x18c8ac=>_0x18c8ac(_0x1871e9));},setTimeout(()=>{const _0x561cbe=_0x3489;napCatCore[_0x561cbe(0x1dc)](()=>{const _0x510d24=_0x561cbe;napCatCore[_0x510d24(0x200)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x2f9c92(0x1da)](_0x46b61d,_0x114c91,_0x54dbe6){const _0x7ab2c6=_0x2f9c92;return napCatCore[_0x7ab2c6(0x1ce)][_0x7ab2c6(0x1e9)]()['setStatus']({'status':_0x46b61d,'extStatus':_0x114c91,'batteryStatus':_0x54dbe6});}static async[_0x2f9c92(0x1f4)](_0x4f4ed3,_0x59de52=0x1){const _0x56131d=_0x2f9c92;return napCatCore[_0x56131d(0x1ce)][_0x56131d(0x1c8)]()[_0x56131d(0x20c)]({'friendUid':_0x4f4ed3,'sourceId':0x47,'doLikeCount':_0x59de52,'doLikeTollCount':0x0});}static async[_0x2f9c92(0x1cf)](_0xff6a88){const _0x4e866e=_0x2f9c92,_0x2d4edd=napCatCore[_0x4e866e(0x1ce)][_0x4e866e(0x1de)]()[_0x4e866e(0x204)](_0xff6a88);return{'result':_0x2d4edd?.[_0x4e866e(0x1e3)],'errMsg':_0x2d4edd?.[_0x4e866e(0x1eb)]};}static async[_0x2f9c92(0x1f5)](){}static async[_0x2f9c92(0x1f1)](_0x5b5933){}static async[_0x2f9c92(0x1ea)](_0x284cda){const _0x1f4868=_0x2f9c92,_0x5777c9={'RNcDP':function(_0x56c8da,_0x362adf){return _0x56c8da(_0x362adf);},'SxqId':_0x1f4868(0x201),'eYdjd':function(_0x18f32a){return _0x18f32a();}},_0x502487=napCatCore['session'][_0x1f4868(0x1de)]();return new Promise((_0x3ff372,_0x5a2f27)=>{const _0x209c8a=_0x1f4868,_0x4e8f45={'CrIji':function(_0x53021b,_0x8d006a){return _0x53021b===_0x8d006a;},'XqxtM':function(_0x42674c,_0x48f72f){return _0x42674c(_0x48f72f);}},_0xd8b4c2=_0x5777c9['eYdjd'](randomUUID);let _0x14a63d=![];setTimeout(()=>{const _0x3e7e38=_0x3489;!_0x14a63d&&_0x5777c9['RNcDP'](_0x5a2f27,_0x5777c9[_0x3e7e38(0x1fc)]);},0x1388),userDetailHandlers[_0x209c8a(0x1fe)](_0xd8b4c2,_0xec72d1=>{const _0x70ece1=_0x209c8a;_0x4e8f45[_0x70ece1(0x207)](_0xec72d1[_0x70ece1(0x1db)],_0x284cda)&&(_0x14a63d=!![],userDetailHandlers[_0x70ece1(0x1c5)](_0xd8b4c2),_0x4e8f45[_0x70ece1(0x20a)](_0x3ff372,_0xec72d1));}),_0x502487['getUserDetailInfoWithBizInfo'](_0x284cda,[0x0])[_0x209c8a(0x1e4)](_0x43fb53=>{});});}static async[_0x2f9c92(0x205)](_0x1bb2db,_0xd65ee2=!![]){const _0x41621d=_0x2f9c92,_0x1b8115={'DfbyN':function(_0x1d4cb9,_0x11ae76){return _0x1d4cb9>_0x11ae76;},'CzSgL':function(_0x5e8bce,_0x312f0d){return _0x5e8bce-_0x312f0d;},'gmOrd':function(_0x4c96f9,_0x1cd822){return _0x4c96f9*_0x1cd822;},'rrbeC':function(_0x2635eb,_0x28a7a0){return _0x2635eb===_0x28a7a0;},'DxpzD':function(_0x35bb9d,_0x2433e5,_0x45aa10){return _0x35bb9d(_0x2433e5,_0x45aa10);},'IkeLE':_0x41621d(0x1cd)};let _0x2e47b3=[],_0x8beef3={};for(let _0x4f6fc5 in _0x1bb2db){let _0x5921d3=Credentials[_0x41621d(0x1d8)]['get'](_0x1bb2db[_0x4f6fc5]),_0x4497df=Credentials[_0x41621d(0x1d3)]['get'](_0x1bb2db[_0x4f6fc5]);!_0x5921d3||!_0x4497df||_0x1b8115[_0x41621d(0x1d7)](_0x1b8115['CzSgL'](Date[_0x41621d(0x1ee)](),_0x4497df),_0x1b8115[_0x41621d(0x208)](0x708,0x3e8))||!_0xd65ee2?_0x2e47b3[_0x41621d(0x209)](_0x1bb2db[_0x4f6fc5]):_0x8beef3[_0x1bb2db[_0x4f6fc5]]=_0x5921d3;}let _0x163689={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x1b8115['DfbyN'](_0x2e47b3[_0x41621d(0x1f0)],0x0)&&(_0x163689=await napCatCore[_0x41621d(0x1ce)][_0x41621d(0x1e0)]()[_0x41621d(0x1d5)](_0x2e47b3,!![]));let _0x11f06d=_0x163689[_0x41621d(0x1d9)];for(let _0x503a9 of _0x11f06d[_0x41621d(0x1e2)]()){Credentials[_0x41621d(0x1d8)][_0x41621d(0x1fe)](_0x503a9[0x0],_0x503a9[0x1]),Credentials[_0x41621d(0x1d3)]['set'](_0x503a9[0x0],Date['now']());}let _0x47b1e3=Object['assign'](Object['fromEntries'](_0x11f06d),_0x8beef3);if(_0x1b8115[_0x41621d(0x1d1)](_0x163689[_0x41621d(0x1e3)],0x0))return _0x47b1e3;else _0x1b8115[_0x41621d(0x1fd)](logError,_0x1b8115[_0x41621d(0x1e6)],_0x163689[_0x41621d(0x1eb)]);return{};}static async[_0x2f9c92(0x1c2)](){const _0x3f88a1=_0x2f9c92,_0x5a6c6a=await napCatCore[_0x3f88a1(0x1ce)][_0x3f88a1(0x1d6)]()[_0x3f88a1(0x1c2)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x5a6c6a?.[_0x3f88a1(0x1f2)]?.[_0x3f88a1(0x1c3)];}static async[_0x2f9c92(0x1ca)](_0xc82625=!![]){const _0x1bd60=_0x2f9c92,_0x3fd1b0={'uSWul':function(_0x1365eb,_0x521db4){return _0x1365eb>_0x521db4;},'hDEbO':function(_0x143601,_0x1d5efd){return _0x143601-_0x1d5efd;},'fuoSq':function(_0x55b19c,_0x59347c){return _0x55b19c*_0x59347c;},'PvfYO':function(_0x195e80,_0x1978bd){return _0x195e80!==_0x1978bd;},'Hlaag':function(_0x385f71,_0x12d369){return _0x385f71+_0x12d369;},'gfLGD':function(_0x17eb00,_0x1cea2e){return _0x17eb00+_0x1cea2e;},'pVrYV':function(_0x2f124d,_0x1c887b){return _0x2f124d+_0x1c887b;},'NteFC':'https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','kVLJW':_0x1bd60(0x1c6),'HYcWH':_0x1bd60(0x1e8)};try{if(Credentials['CreatTime']==0x0||_0x3fd1b0[_0x1bd60(0x1ed)](_0x3fd1b0['hDEbO'](Date['now'](),Credentials[_0x1bd60(0x1e7)]),_0x3fd1b0['fuoSq'](0x3e8,0xe10))||!_0xc82625){const _0x293397=await napCatCore['session'][_0x1bd60(0x1df)]()[_0x1bd60(0x1ec)]('');if(_0x3fd1b0['PvfYO'](_0x293397[_0x1bd60(0x1e3)],0x0))return'';const _0x16001a=_0x293397[_0x1bd60(0x1ef)],_0x1f66e9=_0x293397[_0x1bd60(0x1c9)],_0x191e33=_0x3fd1b0[_0x1bd60(0x203)](_0x3fd1b0[_0x1bd60(0x1cc)](_0x3fd1b0[_0x1bd60(0x1cc)](_0x3fd1b0['Hlaag'](_0x3fd1b0[_0x1bd60(0x1e1)](_0x3fd1b0[_0x1bd60(0x20b)],selfInfo[_0x1bd60(0x1d0)]),_0x3fd1b0[_0x1bd60(0x1d2)]),_0x16001a),_0x3fd1b0[_0x1bd60(0x1e5)]),_0x1f66e9),_0x1b4a85=await HttpGetCookies(_0x191e33),_0x1ae7b2=_0x1b4a85[_0x1bd60(0x1dd)](_0x1bd60(0x1cb));if(!_0x1ae7b2)return'';return Credentials[_0x1bd60(0x1e7)]=Date[_0x1bd60(0x1ee)](),Credentials['Skey']=_0x1ae7b2,_0x1ae7b2;}return Credentials[_0x1bd60(0x1c7)];}catch(_0x545de5){}return undefined;}} \ No newline at end of file diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index 9cb5a196..e6cd037c 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x1331a2=_0x4fab;(function(_0x2b6aad,_0x18fa51){const _0x10469e=_0x4fab,_0x34fa63=_0x2b6aad();while(!![]){try{const _0x32fbfb=parseInt(_0x10469e(0x10a))/0x1*(-parseInt(_0x10469e(0x143))/0x2)+-parseInt(_0x10469e(0x171))/0x3*(-parseInt(_0x10469e(0x117))/0x4)+parseInt(_0x10469e(0x11b))/0x5*(parseInt(_0x10469e(0x168))/0x6)+parseInt(_0x10469e(0x10d))/0x7+parseInt(_0x10469e(0x121))/0x8*(-parseInt(_0x10469e(0x10e))/0x9)+parseInt(_0x10469e(0x132))/0xa*(-parseInt(_0x10469e(0x155))/0xb)+-parseInt(_0x10469e(0x173))/0xc*(-parseInt(_0x10469e(0x169))/0xd);if(_0x32fbfb===_0x18fa51)break;else _0x34fa63['push'](_0x34fa63['shift']());}catch(_0x1a9b27){_0x34fa63['push'](_0x34fa63['shift']());}}}(_0x3ccd,0x6fed2));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x3ccd(){const _0x4aef4d=['ceil','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','670aNYkXe','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','AuDzH','genBkn','MYbSi','NAMBJ','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','BSWww','VkgFy','httpDataText','errcode','WBYEZ','getPSkey','NMPRk','trsuS','xZuSo','&bkn=','220hLqXIr','ZEekA','now','FqvAY','FMtCg','&group_code=','getGroupMembers','hRelb','QNdEE','qid=',';\x20skey=','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','getSkey','QaRNM','ZyijZ','sdQhN','kSWEY','xPUHC','99330OmpXDD','RbvbF',';\x20p_uin=o','toString','push','getGroupEssenceMsg','nLVkN','DBylY','lFAPe','&page_limit=20','YlWvs','uin','kYySr','EFzbU',';\x20uin=o','ZbHoU','httpDataJson','count','AqPTx','12bIHjKX','723931ITKiUK','CaZnD','xLoBP','vtulM','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','uTqfV','cVwpc','UyYmM','45XjARWM','webapi\x20获取群成员','36ufqwBc','jSosl','yiAPw','text','AhdZi','FJifx','length','retcode','&qid=','RHhKO','vdnPh','XGbLf','KfCwl','pCTUr','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','WUMSr','mwCKe','UkvDt','OJSxW','OrzQQ','qaUkv','GuKcS','qun.qq.com','2594KWSGIW','dDOyf','p_skey=','2981258pcdfDa','26091CiOJui','application/x-www-form-urlencoded','GroupData','eRILj','HEAD','mSvZY','aQTFV','POST','GroupTime','206196rHhmnj','fmGkj','mCLTd','seRWG','594305AsIdJQ','KrZOF','ikzqm','aNlkO','json','set','704kISwXa','get','AzQQt','mems','getGrouptNotice','GcBLG','QUkln','rskdX','QzxrY','charCodeAt','sSsDm','kzZZs','setGroupNotice','YmWrq','GET'];_0x3ccd=function(){return _0x4aef4d;};return _0x3ccd();}function _0x4fab(_0x164230,_0x3b612c){const _0x3ccdcf=_0x3ccd();return _0x4fab=function(_0x4fab2,_0x17b6e4){_0x4fab2=_0x4fab2-0xfc;let _0x3275e7=_0x3ccdcf[_0x4fab2];return _0x3275e7;},_0x4fab(_0x164230,_0x3b612c);}export class WebApi{static async[_0x1331a2(0x15a)](_0x552a56,_0x135b40){const _0x16fc0a=_0x1331a2,_0x501f86={'xLoBP':_0x16fc0a(0x109),'MYbSi':function(_0x509998,_0x32b882){return _0x509998+_0x32b882;},'KrZOF':function(_0x3591a5,_0x178c0c){return _0x3591a5+_0x178c0c;},'mwCKe':function(_0x1e461a,_0x43f7f7){return _0x1e461a+_0x43f7f7;},'UkvDt':'p_skey=','QaRNM':_0x16fc0a(0x14d),'tdXoq':';\x20p_uin=o','jvIjT':_0x16fc0a(0x163),'jSosl':function(_0x3056cd,_0x317833){return _0x3056cd||_0x317833;},'sdQhN':function(_0x404bc8,_0x1eaf62){return _0x404bc8+_0x1eaf62;},'OJSxW':function(_0x296933,_0x389875){return _0x296933+_0x389875;},'xPUHC':function(_0x1d34cc,_0x568b9a){return _0x1d34cc+_0x568b9a;},'hYErN':_0x16fc0a(0x16d),'mSvZY':_0x16fc0a(0x148),'zCLTM':'&page_start=','trsuS':_0x16fc0a(0x15e),'XGbLf':function(_0x54f6b7,_0x3430d5){return _0x54f6b7!==_0x3430d5;}},_0x43c0ea=(await NTQQUserApi[_0x16fc0a(0x13e)]([_0x501f86[_0x16fc0a(0x16b)]]))[_0x501f86[_0x16fc0a(0x16b)]],_0x2fdd31=await NTQQUserApi[_0x16fc0a(0x14f)](),_0x30c91a=_0x501f86[_0x16fc0a(0x136)](_0x501f86['MYbSi'](_0x501f86[_0x16fc0a(0x11c)](_0x501f86[_0x16fc0a(0x103)](_0x501f86[_0x16fc0a(0x11c)](_0x501f86[_0x16fc0a(0x104)],_0x43c0ea),_0x501f86[_0x16fc0a(0x150)]),_0x2fdd31)+_0x501f86['tdXoq'],selfInfo[_0x16fc0a(0x160)]),_0x501f86['jvIjT'])+selfInfo[_0x16fc0a(0x160)];if(_0x501f86[_0x16fc0a(0x174)](!_0x2fdd31,!_0x43c0ea))return undefined;const _0x2db29b=WebApi[_0x16fc0a(0x135)](_0x2fdd31),_0x7557a5=_0x501f86[_0x16fc0a(0x152)](_0x501f86[_0x16fc0a(0x105)](_0x501f86[_0x16fc0a(0x154)](_0x501f86[_0x16fc0a(0x11c)](_0x501f86[_0x16fc0a(0x152)](_0x501f86['hYErN'],_0x2db29b),_0x501f86[_0x16fc0a(0x113)]),_0x552a56)+_0x501f86['zCLTM'],_0x135b40),_0x501f86[_0x16fc0a(0x140)]),_0x548e41=await WebApi['httpDataJson'](_0x7557a5,_0x16fc0a(0x12f),'',_0x30c91a);if(_0x501f86[_0x16fc0a(0xfe)](_0x548e41[_0x16fc0a(0x17a)],0x0))return undefined;return _0x548e41;}static async[_0x1331a2(0x149)](_0x575752,_0x192304=!![]){const _0x45d0b9=_0x1331a2,_0x190493={'RbvbF':_0x45d0b9(0x172),'sSsDm':function(_0x4baf5d,_0x39161b){return _0x4baf5d>_0x39161b;},'NMPRk':function(_0x1f9edb,_0x543653){return _0x1f9edb-_0x543653;},'vdnPh':function(_0x5c4059,_0x5a432e){return _0x5c4059*_0x5a432e;},'mCLTd':_0x45d0b9(0x109),'NAMBJ':function(_0x54b367,_0x3fac28){return _0x54b367+_0x3fac28;},'DBylY':_0x45d0b9(0x10c),'BSWww':_0x45d0b9(0x14d),'ZyijZ':function(_0x2cea56,_0x1981b3){return _0x2cea56||_0x1981b3;},'hRelb':function(_0x53f745,_0x550aaf){return _0x53f745+_0x550aaf;},'cVwpc':function(_0x319380,_0x54bd82){return _0x319380+_0x54bd82;},'UyYmM':_0x45d0b9(0x133),'aQTFV':_0x45d0b9(0x115),'OrzQQ':function(_0x502572,_0x473da1){return _0x502572!==_0x473da1;},'VkgFy':function(_0x419194,_0x205df5){return _0x419194+_0x205df5;},'kSWEY':'&end=','kYySr':function(_0x33ebc1,_0x5e9dbb){return _0x33ebc1*_0x5e9dbb;},'GuKcS':'&sort=1&gc=','xZuSo':_0x45d0b9(0x142),'QNdEE':function(_0x1e3eb5,_0x3be18e){return _0x1e3eb5<=_0x3be18e;}};logDebug(_0x190493[_0x45d0b9(0x156)],_0x575752);let _0x3ac612=WebGroupData['GroupData']['get'](_0x575752),_0x5c46e9=WebGroupData['GroupTime'][_0x45d0b9(0x122)](_0x575752),_0x41a105=new Array();if(!_0x5c46e9||_0x190493[_0x45d0b9(0x12b)](_0x190493[_0x45d0b9(0x13f)](Date['now'](),_0x5c46e9),_0x190493[_0x45d0b9(0xfd)](0x708,0x3e8))||!_0x192304){const _0x43df8e=(await NTQQUserApi[_0x45d0b9(0x13e)]([_0x190493[_0x45d0b9(0x119)]]))['qun.qq.com'],_0x5a71e0=await NTQQUserApi[_0x45d0b9(0x14f)](),_0x1bafdf=_0x190493[_0x45d0b9(0x137)](_0x190493[_0x45d0b9(0x137)](_0x190493[_0x45d0b9(0x137)](_0x190493['NAMBJ'](_0x190493[_0x45d0b9(0x15c)],_0x43df8e),_0x190493[_0x45d0b9(0x139)]),_0x5a71e0)+_0x45d0b9(0x157),selfInfo[_0x45d0b9(0x160)]);if(_0x190493[_0x45d0b9(0x151)](!_0x5a71e0,!_0x43df8e))return _0x41a105;const _0x411fa0=WebApi[_0x45d0b9(0x135)](_0x5a71e0),_0x427116=[],_0xb00147=await WebApi['httpDataJson'](_0x190493[_0x45d0b9(0x137)](_0x190493[_0x45d0b9(0x14a)](_0x190493[_0x45d0b9(0x16f)](_0x190493[_0x45d0b9(0x170)],_0x575752),'&bkn='),_0x411fa0),_0x190493[_0x45d0b9(0x114)],'',_0x1bafdf);if(!_0xb00147?.[_0x45d0b9(0x166)]||_0x190493[_0x45d0b9(0x106)](_0xb00147?.[_0x45d0b9(0x13c)],0x0)||!_0xb00147?.[_0x45d0b9(0x124)])return[];else for(const _0x5b8064 in _0xb00147['mems']){_0x41a105[_0x45d0b9(0x159)](_0xb00147[_0x45d0b9(0x124)][_0x5b8064]);}const _0x37822b=Math[_0x45d0b9(0x130)](_0xb00147[_0x45d0b9(0x166)]/0x28);for(let _0x142a0e=0x2;_0x142a0e<=_0x37822b;_0x142a0e++){const _0x1884bc=WebApi[_0x45d0b9(0x165)](_0x190493['hRelb'](_0x190493[_0x45d0b9(0x16f)](_0x190493[_0x45d0b9(0x13a)](_0x190493[_0x45d0b9(0x137)](_0x190493['hRelb'](_0x45d0b9(0x101),_0x190493[_0x45d0b9(0xfd)](_0x190493[_0x45d0b9(0x13f)](_0x142a0e,0x1),0x28)),_0x190493[_0x45d0b9(0x153)])+_0x190493[_0x45d0b9(0x161)](_0x142a0e,0x28),_0x190493[_0x45d0b9(0x108)]),_0x575752),_0x190493[_0x45d0b9(0x141)])+_0x411fa0,_0x190493[_0x45d0b9(0x114)],'',_0x1bafdf);_0x427116['push'](_0x1884bc);}for(let _0x47c5a5=0x1;_0x190493[_0x45d0b9(0x14b)](_0x47c5a5,_0x37822b);_0x47c5a5++){const _0x56a3d9=await _0x427116[_0x47c5a5];if(!_0x56a3d9?.['count']||_0x190493['OrzQQ'](_0x56a3d9?.[_0x45d0b9(0x13c)],0x0)||!_0x56a3d9?.[_0x45d0b9(0x124)])continue;for(const _0x6a06a5 in _0x56a3d9['mems']){_0x41a105[_0x45d0b9(0x159)](_0x56a3d9[_0x45d0b9(0x124)][_0x6a06a5]);}}WebGroupData[_0x45d0b9(0x110)][_0x45d0b9(0x120)](_0x575752,_0x41a105),WebGroupData[_0x45d0b9(0x116)][_0x45d0b9(0x120)](_0x575752,Date[_0x45d0b9(0x145)]());}else _0x41a105=_0x3ac612;return _0x41a105;}static async[_0x1331a2(0x12d)](_0x23e140,_0x982191=''){const _0x54df4f=_0x1331a2,_0x3e86a6={'nLVkN':'qun.qq.com','fmGkj':function(_0x22619e,_0x36ed69){return _0x22619e+_0x36ed69;},'aNlkO':_0x54df4f(0x10c),'AzQQt':_0x54df4f(0x157),'RHhKO':function(_0x2b85b3,_0x3d2877){return _0x2b85b3+_0x3d2877;},'eRILj':function(_0x5b9117,_0x46a515){return _0x5b9117+_0x46a515;},'ZEekA':function(_0x2958f1,_0x207ea9){return _0x2958f1+_0x207ea9;},'GcBLG':_0x54df4f(0x14c),'dDOyf':_0x54df4f(0x142),'CaZnD':'&text=','FMtCg':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','YmWrq':_0x54df4f(0x12f)},_0x13aa19=(await NTQQUserApi['getPSkey']([_0x54df4f(0x109)]))[_0x3e86a6[_0x54df4f(0x15b)]],_0x5a3e65=await NTQQUserApi['getSkey'](),_0x54be20=_0x3e86a6[_0x54df4f(0x118)](_0x3e86a6[_0x54df4f(0x118)](_0x3e86a6['fmGkj'](_0x3e86a6[_0x54df4f(0x11e)],_0x13aa19)+_0x54df4f(0x14d),_0x5a3e65),_0x3e86a6[_0x54df4f(0x123)])+selfInfo[_0x54df4f(0x160)];let _0x297510=undefined;if(!_0x5a3e65||!_0x13aa19)return undefined;const _0x5d1de0=WebApi['genBkn'](_0x5a3e65),_0x134fd6=_0x3e86a6[_0x54df4f(0x118)](_0x3e86a6[_0x54df4f(0xfc)](_0x3e86a6[_0x54df4f(0x111)](_0x3e86a6[_0x54df4f(0x144)](_0x3e86a6[_0x54df4f(0xfc)](_0x3e86a6[_0x54df4f(0x126)],_0x23e140),_0x3e86a6[_0x54df4f(0x10b)]),_0x5d1de0)+_0x3e86a6[_0x54df4f(0x16a)],_0x982191),_0x3e86a6[_0x54df4f(0x147)]),_0x54efb9=_0x3e86a6[_0x54df4f(0x118)](_0x54df4f(0x14e),_0x5d1de0);try{return _0x297510=await WebApi[_0x54df4f(0x165)](_0x54efb9,_0x3e86a6[_0x54df4f(0x12e)],'',_0x54be20),_0x297510;}catch(_0x4e7f52){return undefined;}return undefined;}static async[_0x1331a2(0x125)](_0x5ebbf3){const _0x42888a=_0x1331a2,_0x5142f8={'WBYEZ':'qun.qq.com','vtulM':function(_0x5c351d,_0x5830de){return _0x5c351d+_0x5830de;},'lFAPe':function(_0x483ad3,_0x4ede58){return _0x483ad3+_0x4ede58;},'EFzbU':_0x42888a(0x14d),'AqPTx':';\x20p_uin=o','QUkln':function(_0x4d2989,_0x391432){return _0x4d2989||_0x391432;},'rskdX':function(_0x3af0ee,_0x43169b){return _0x3af0ee+_0x43169b;},'xAnhT':_0x42888a(0x138),'YlWvs':_0x42888a(0x17b),'qaUkv':_0x42888a(0x131),'QzxrY':_0x42888a(0x12f),'AuDzH':function(_0x40154b,_0x85359f){return _0x40154b!==_0x85359f;}},_0x4cd2b9=(await NTQQUserApi['getPSkey']([_0x5142f8[_0x42888a(0x13d)]]))[_0x5142f8[_0x42888a(0x13d)]],_0x2ba866=await NTQQUserApi[_0x42888a(0x14f)](),_0x2e8d38=_0x5142f8[_0x42888a(0x16c)](_0x5142f8[_0x42888a(0x15d)](_0x5142f8['lFAPe'](_0x42888a(0x10c)+_0x4cd2b9,_0x5142f8[_0x42888a(0x162)]),_0x2ba866)+_0x5142f8[_0x42888a(0x167)],selfInfo[_0x42888a(0x160)]);let _0x1c3913=undefined;if(_0x5142f8[_0x42888a(0x127)](!_0x2ba866,!_0x4cd2b9))return undefined;const _0x5422b4=WebApi['genBkn'](_0x2ba866),_0x318b6e=_0x5142f8[_0x42888a(0x15d)](_0x5142f8[_0x42888a(0x128)](_0x5142f8[_0x42888a(0x15d)](_0x5142f8['xAnhT']+_0x5422b4,_0x5142f8[_0x42888a(0x15f)]),_0x5ebbf3),_0x5142f8[_0x42888a(0x107)]);try{_0x1c3913=await WebApi['httpDataJson'](_0x318b6e,_0x5142f8[_0x42888a(0x129)],'',_0x2e8d38);if(_0x5142f8[_0x42888a(0x134)](_0x1c3913?.['ec'],0x0))return undefined;return _0x1c3913;}catch(_0x2d7f32){return undefined;}return undefined;}static async[_0x1331a2(0x13b)](_0x3899d9='',_0x47dc57=_0x1331a2(0x12f),_0x551d84='',_0x4d6fd5=''){const _0x54f124=_0x1331a2,_0x22d063={'WUMSr':_0x54f124(0x12f),'uTqfV':function(_0x3b6827,_0x2e670f){return _0x3b6827===_0x2e670f;},'kzZZs':_0x54f124(0x112),'pCTUr':function(_0x261d2e,_0x448e34,_0x4ff4d4){return _0x261d2e(_0x448e34,_0x4ff4d4);},'KfCwl':_0x54f124(0x10f),'yiAPw':function(_0x36f03c,_0x1fdab){return _0x36f03c(_0x1fdab);}};let _0x3f38c0='';return new Promise(async(_0x3a28f5,_0x345295)=>{const _0x2d9dfe=_0x54f124;try{let _0xda28f6=undefined;_0x47dc57===_0x22d063[_0x2d9dfe(0x102)]||_0x22d063[_0x2d9dfe(0x16e)](_0x47dc57,_0x22d063[_0x2d9dfe(0x12c)])?_0xda28f6=await fetch(_0x3899d9,{'method':_0x47dc57,'headers':{'Content-Type':'application/x-www-form-urlencoded','Cookie':_0x4d6fd5}}):_0xda28f6=await _0x22d063[_0x2d9dfe(0x100)](fetch,_0x3899d9,{'method':_0x47dc57,'headers':{'Content-Type':_0x22d063[_0x2d9dfe(0xff)],'Cookie':_0x4d6fd5},'body':_0x551d84});if(_0xda28f6['ok'])_0x3f38c0=await _0xda28f6[_0x2d9dfe(0x176)]();else{}}catch(_0x548b52){}_0x22d063[_0x2d9dfe(0x175)](_0x3a28f5,_0x3f38c0);});}static async['httpDataJson'](_0x4de27c='',_0x211af0=_0x1331a2(0x12f),_0x110c58='',_0x43b556=''){const _0x1480e5=_0x1331a2,_0x2c1b1d={'FqvAY':function(_0x23b1c6,_0x466857){return _0x23b1c6===_0x466857;},'EGxUf':_0x1480e5(0x12f),'seRWG':_0x1480e5(0x10f),'LjbCe':function(_0xcfe9,_0x37edb4,_0x448854){return _0xcfe9(_0x37edb4,_0x448854);},'nVScu':function(_0x3fc340,_0x3944c8){return _0x3fc340(_0x3944c8);}};let _0x3b15f3=undefined;return new Promise(async(_0x48a59e,_0x156c5b)=>{const _0x3712f9=_0x1480e5;try{let _0x2ebad1=undefined;_0x2c1b1d['FqvAY'](_0x211af0,_0x2c1b1d['EGxUf'])||_0x2c1b1d[_0x3712f9(0x146)](_0x211af0,_0x3712f9(0x112))?_0x2ebad1=await fetch(_0x4de27c,{'method':_0x211af0,'headers':{'Content-Type':_0x2c1b1d[_0x3712f9(0x11a)],'Cookie':_0x43b556}}):_0x2ebad1=await _0x2c1b1d['LjbCe'](fetch,_0x4de27c,{'method':_0x211af0,'headers':{'Content-Type':_0x2c1b1d[_0x3712f9(0x11a)],'Cookie':_0x43b556},'body':_0x110c58});if(_0x2ebad1['ok'])_0x3b15f3=await _0x2ebad1[_0x3712f9(0x11f)]();else{}}catch(_0x4346db){}_0x2c1b1d['nVScu'](_0x48a59e,_0x3b15f3);});}static['genBkn'](_0x4e57f1){const _0x29511b=_0x1331a2,_0x4d9696={'AhdZi':function(_0x15b4fd,_0xf6db4b){return _0x15b4fd||_0xf6db4b;},'FJifx':function(_0x25e346,_0x58f783){return _0x25e346<_0x58f783;},'ikzqm':function(_0x9469e2,_0x402824){return _0x9469e2+_0x402824;},'ZbHoU':function(_0x29aa27,_0x5d3f24){return _0x29aa27<<_0x5d3f24;}};_0x4e57f1=_0x4d9696[_0x29511b(0x177)](_0x4e57f1,'');let _0x5e120b=0x1505;for(let _0x526c8e=0x0;_0x4d9696[_0x29511b(0x178)](_0x526c8e,_0x4e57f1[_0x29511b(0x179)]);_0x526c8e++){const _0x229b4c=_0x4e57f1[_0x29511b(0x12a)](_0x526c8e);_0x5e120b=_0x4d9696[_0x29511b(0x11d)](_0x4d9696[_0x29511b(0x11d)](_0x5e120b,_0x4d9696[_0x29511b(0x164)](_0x5e120b,0x5)),_0x229b4c);}return(_0x5e120b&0x7fffffff)[_0x29511b(0x158)]();}} \ No newline at end of file +const _0x4bfc6d=_0x1dc1;function _0x38f4(){const _0x59a09c=['FJevV','gzjKf','GroupTime','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','9107GxhzVU','count',';\x20p_uin=o','now','getGroupMembers','tpvyN','NALNa','1012120WbGjnL','3976ilEGUP','KsEHq','wupoi','HEAD','p_skey=','1510686TcYnny','GET','getSkey','&end=','qid=','set','mEtDA','hWBOI','ASzjn','ACbSg','eRivi','tWcIQ','ZMeZU','ZXxyn','length','uuveg','Fahfl','4ChwqsV','THTas','1182776zklTxC','sJhzl','LuJpl','uin','AgqNC','GroupData','DRYGh','STibR','HuNQd','UVAFM','dvhhr','otrYd','qun.qq.com','&text=','ZCRxm','errcode','mems','55UghNpr','FKTmw','webapi\x20获取群成员','NSLNd','charCodeAt','POST','225UgMEzm','httpDataText','GIcGO','json','&page_limit=20','CAWfv','DeMTB','text','application/x-www-form-urlencoded','vvibX','2277333pbWujH','ceil','push','Lzpue','djVTx','tKMAG','eKFfU','httpDataJson','YqZNP','kltQF','get','&bkn=','185868lcoQPX','genBkn','Ktwsh','8478290GJwLBG','KSrNL','nmYal','oeKPV','yKiAv','setGroupNotice','getGrouptNotice',';\x20uin=o','QcCdb','bAqWV','ePgUa','iFrra','JsPsO','TzgJE','vaVty','Hxsea','ZAnxl',';\x20skey=','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','LSLmt','JPmAy','UdHRt','Pmqgk','VgEpK','getPSkey','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','cKVWL','iVIBF'];_0x38f4=function(){return _0x59a09c;};return _0x38f4();}(function(_0x42766d,_0x294aaf){const _0x1023e0=_0x1dc1,_0x575416=_0x42766d();while(!![]){try{const _0x2f6206=-parseInt(_0x1023e0(0xf4))/0x1+parseInt(_0x1023e0(0x10b))/0x2*(-parseInt(_0x1023e0(0xfa))/0x3)+parseInt(_0x1023e0(0x10d))/0x4+parseInt(_0x1023e0(0xb4))/0x5*(-parseInt(_0x1023e0(0xca))/0x6)+parseInt(_0x1023e0(0xed))/0x7*(-parseInt(_0x1023e0(0xf5))/0x8)+parseInt(_0x1023e0(0xbe))/0x9+parseInt(_0x1023e0(0xcd))/0xa*(parseInt(_0x1023e0(0xae))/0xb);if(_0x2f6206===_0x294aaf)break;else _0x575416['push'](_0x575416['shift']());}catch(_0xe93df6){_0x575416['push'](_0x575416['shift']());}}}(_0x38f4,0xb1bd9));function _0x1dc1(_0x2aecca,_0x541bb9){const _0x38f4a9=_0x38f4();return _0x1dc1=function(_0x1dc1e6,_0x57b5d1){_0x1dc1e6=_0x1dc1e6-0xad;let _0xfaefd5=_0x38f4a9[_0x1dc1e6];return _0xfaefd5;},_0x1dc1(_0x2aecca,_0x541bb9);}import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';export class WebApi{static async['getGroupEssenceMsg'](_0x53f32f,_0x37a886){const _0x11a46a=_0x1dc1,_0x17c465={'bAqWV':function(_0x107107,_0xe00078){return _0x107107+_0xe00078;},'LSLmt':function(_0x4111b1,_0x1b69d1){return _0x4111b1+_0x1b69d1;},'IwWle':function(_0x19bb2b,_0x3b1e29){return _0x19bb2b+_0x3b1e29;},'VgEpK':function(_0x3f93d7,_0x397e2d){return _0x3f93d7+_0x397e2d;},'UVAFM':function(_0x5a2fcd,_0x542b37){return _0x5a2fcd+_0x542b37;},'NSLNd':_0x11a46a(0xf9),'guIbe':_0x11a46a(0xde),'wupoi':_0x11a46a(0xd4),'kltQF':function(_0x585179,_0x1d47ea){return _0x585179||_0x1d47ea;},'ASzjn':function(_0x5a4023,_0x486d41){return _0x5a4023+_0x486d41;},'KSrNL':_0x11a46a(0xdf),'yJaCo':'&group_code=','hWBOI':_0x11a46a(0xb8),'otGws':_0x11a46a(0xfb),'gzjKf':function(_0x2bfe9f,_0x57734a){return _0x2bfe9f!==_0x57734a;}},_0x52c1f3=(await NTQQUserApi[_0x11a46a(0xe5)](['qun.qq.com']))[_0x11a46a(0x119)],_0x3caa33=await NTQQUserApi[_0x11a46a(0xfc)](),_0x36719c=_0x17c465[_0x11a46a(0xd6)](_0x17c465[_0x11a46a(0xe0)](_0x17c465['IwWle'](_0x17c465[_0x11a46a(0xe4)](_0x17c465[_0x11a46a(0x116)](_0x17c465[_0x11a46a(0xb1)]+_0x52c1f3+_0x17c465['guIbe'],_0x3caa33),_0x11a46a(0xef)),selfInfo[_0x11a46a(0x110)]),_0x17c465[_0x11a46a(0xf7)]),selfInfo[_0x11a46a(0x110)]);if(_0x17c465[_0x11a46a(0xc7)](!_0x3caa33,!_0x52c1f3))return undefined;const _0x3d6c5a=WebApi[_0x11a46a(0xcb)](_0x3caa33),_0x51da03=_0x17c465[_0x11a46a(0xe0)](_0x17c465[_0x11a46a(0xe0)](_0x17c465[_0x11a46a(0xe0)](_0x17c465[_0x11a46a(0xe0)](_0x17c465[_0x11a46a(0x102)](_0x17c465[_0x11a46a(0xce)],_0x3d6c5a)+_0x17c465['yJaCo'],_0x53f32f),'&page_start='),_0x37a886),_0x17c465[_0x11a46a(0x101)]),_0x3c9ca4=await WebApi[_0x11a46a(0xc5)](_0x51da03,_0x17c465['otGws'],'',_0x36719c);if(_0x17c465[_0x11a46a(0xea)](_0x3c9ca4['retcode'],0x0))return undefined;return _0x3c9ca4;}static async[_0x4bfc6d(0xf1)](_0x39aa32,_0x7d933b=!![]){const _0x2a402d=_0x4bfc6d,_0xb3bc99={'Ktwsh':function(_0x19a5d7,_0x2cca37,_0x572ada){return _0x19a5d7(_0x2cca37,_0x572ada);},'uuveg':_0x2a402d(0xb0),'iFrra':function(_0x3110d1,_0x576735){return _0x3110d1>_0x576735;},'vvibX':function(_0x38c233,_0x29696d){return _0x38c233-_0x29696d;},'UKHDr':function(_0x2586b5,_0x5a638e){return _0x2586b5*_0x5a638e;},'eRivi':_0x2a402d(0x119),'QRWja':function(_0x4953f8,_0x2d4203){return _0x4953f8+_0x2d4203;},'Pmqgk':function(_0x5afb1f,_0x4217ec){return _0x5afb1f+_0x4217ec;},'eKFfU':_0x2a402d(0xf9),'cKVWL':_0x2a402d(0xde),'FJevV':_0x2a402d(0xef),'yKiAv':_0x2a402d(0xc9),'PDtOu':_0x2a402d(0xb3),'FCKyX':function(_0x1e1535,_0x5e3817){return _0x1e1535!==_0x5e3817;},'Hxsea':function(_0x23a123,_0x288641){return _0x23a123/_0x288641;},'TzgJE':function(_0x5aa927,_0x5a68a1){return _0x5aa927+_0x5a68a1;},'emzrp':function(_0x308255,_0x41af26){return _0x308255+_0x41af26;},'BkELc':function(_0x21d502,_0x2e4099){return _0x21d502+_0x2e4099;},'HuNQd':_0x2a402d(0xec),'ByKOB':function(_0x5e9a84,_0x29f62a){return _0x5e9a84-_0x29f62a;},'cNfqh':function(_0x1abe25,_0x2e8be0){return _0x1abe25*_0x2e8be0;},'YvvUP':'&sort=1&gc=','Fahfl':function(_0x2918b1,_0x16a2e4){return _0x2918b1<=_0x16a2e4;},'nmYal':function(_0x7a8505,_0x125116){return _0x7a8505!==_0x125116;}};_0xb3bc99[_0x2a402d(0xcc)](logDebug,_0xb3bc99[_0x2a402d(0x109)],_0x39aa32);let _0x2c5b32=WebGroupData[_0x2a402d(0x112)][_0x2a402d(0xc8)](_0x39aa32),_0x3e49de=WebGroupData[_0x2a402d(0xeb)][_0x2a402d(0xc8)](_0x39aa32),_0x82739=new Array();if(!_0x3e49de||_0xb3bc99[_0x2a402d(0xd8)](_0xb3bc99[_0x2a402d(0xbd)](Date[_0x2a402d(0xf0)](),_0x3e49de),_0xb3bc99['UKHDr'](0x708,0x3e8))||!_0x7d933b){const _0xf5a5c4=(await NTQQUserApi[_0x2a402d(0xe5)]([_0xb3bc99[_0x2a402d(0x104)]]))[_0xb3bc99[_0x2a402d(0x104)]],_0x45416e=await NTQQUserApi[_0x2a402d(0xfc)](),_0xeb9caa=_0xb3bc99['QRWja'](_0xb3bc99[_0x2a402d(0xe3)](_0xb3bc99['Pmqgk'](_0xb3bc99[_0x2a402d(0xe3)](_0xb3bc99[_0x2a402d(0xc4)],_0xf5a5c4),_0xb3bc99[_0x2a402d(0xe7)]),_0x45416e),_0xb3bc99[_0x2a402d(0xe9)])+selfInfo[_0x2a402d(0x110)];if(!_0x45416e||!_0xf5a5c4)return _0x82739;const _0x57b1fc=WebApi[_0x2a402d(0xcb)](_0x45416e),_0x5c43e9=[],_0x15b8df=await WebApi[_0x2a402d(0xc5)](_0xb3bc99[_0x2a402d(0xe3)](_0x2a402d(0xe6),_0x39aa32)+_0xb3bc99[_0x2a402d(0xd1)]+_0x57b1fc,_0xb3bc99['PDtOu'],'',_0xeb9caa);if(!_0x15b8df?.[_0x2a402d(0xee)]||_0xb3bc99['FCKyX'](_0x15b8df?.['errcode'],0x0)||!_0x15b8df?.[_0x2a402d(0xad)])return[];else for(const _0x2af604 in _0x15b8df[_0x2a402d(0xad)]){_0x82739['push'](_0x15b8df[_0x2a402d(0xad)][_0x2af604]);}const _0x24c951=Math[_0x2a402d(0xbf)](_0xb3bc99[_0x2a402d(0xdc)](_0x15b8df[_0x2a402d(0xee)],0x28));for(let _0x12331f=0x2;_0x12331f<=_0x24c951;_0x12331f++){const _0x268e01=WebApi['httpDataJson'](_0xb3bc99[_0x2a402d(0xda)](_0xb3bc99['emzrp'](_0xb3bc99[_0x2a402d(0xe3)](_0xb3bc99['TzgJE'](_0xb3bc99[_0x2a402d(0xe3)](_0xb3bc99['BkELc'](_0xb3bc99[_0x2a402d(0x115)],_0xb3bc99['ByKOB'](_0x12331f,0x1)*0x28),_0x2a402d(0xfd)),_0xb3bc99['cNfqh'](_0x12331f,0x28)),_0xb3bc99['YvvUP']),_0x39aa32),_0x2a402d(0xc9))+_0x57b1fc,_0xb3bc99['PDtOu'],'',_0xeb9caa);_0x5c43e9[_0x2a402d(0xc0)](_0x268e01);}for(let _0xf3b587=0x1;_0xb3bc99[_0x2a402d(0x10a)](_0xf3b587,_0x24c951);_0xf3b587++){const _0xbd95d2=await _0x5c43e9[_0xf3b587];if(!_0xbd95d2?.[_0x2a402d(0xee)]||_0xb3bc99[_0x2a402d(0xcf)](_0xbd95d2?.[_0x2a402d(0x11c)],0x0)||!_0xbd95d2?.[_0x2a402d(0xad)])continue;for(const _0x48b189 in _0xbd95d2[_0x2a402d(0xad)]){_0x82739[_0x2a402d(0xc0)](_0xbd95d2[_0x2a402d(0xad)][_0x48b189]);}}WebGroupData[_0x2a402d(0x112)][_0x2a402d(0xff)](_0x39aa32,_0x82739),WebGroupData['GroupTime'][_0x2a402d(0xff)](_0x39aa32,Date[_0x2a402d(0xf0)]());}else _0x82739=_0x2c5b32;return _0x82739;}static async[_0x4bfc6d(0xd2)](_0x5b9316,_0x122330=''){const _0x1ea81b=_0x4bfc6d,_0x5884f5={'YqZNP':'qun.qq.com','KsEHq':function(_0x14ffd4,_0x41c20){return _0x14ffd4+_0x41c20;},'QcCdb':function(_0x22979c,_0x1ded70){return _0x22979c+_0x1ded70;},'ZXxyn':function(_0x466924,_0x365a27){return _0x466924+_0x365a27;},'NALNa':_0x1ea81b(0xf9),'ZAnxl':_0x1ea81b(0xde),'STibR':_0x1ea81b(0xef),'JzWJb':function(_0x2aa181,_0x1ab741){return _0x2aa181||_0x1ab741;},'GIcGO':function(_0x14fd7c,_0x5056f7){return _0x14fd7c+_0x5056f7;},'iVIBF':_0x1ea81b(0xfe),'ACbSg':_0x1ea81b(0xc9),'jyxCz':_0x1ea81b(0x11a),'FKTmw':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','DRYGh':'https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','JPmAy':_0x1ea81b(0xfb)},_0x2159a9=(await NTQQUserApi['getPSkey']([_0x5884f5[_0x1ea81b(0xc6)]]))[_0x1ea81b(0x119)],_0x595860=await NTQQUserApi[_0x1ea81b(0xfc)](),_0x4a4390=_0x5884f5['KsEHq'](_0x5884f5[_0x1ea81b(0xd5)](_0x5884f5['ZXxyn'](_0x5884f5[_0x1ea81b(0x107)](_0x5884f5[_0x1ea81b(0xf6)](_0x5884f5[_0x1ea81b(0xf3)],_0x2159a9),_0x5884f5[_0x1ea81b(0xdd)]),_0x595860),_0x5884f5[_0x1ea81b(0x114)]),selfInfo['uin']);let _0x2b16ac=undefined;if(_0x5884f5['JzWJb'](!_0x595860,!_0x2159a9))return undefined;const _0x12aab1=WebApi['genBkn'](_0x595860),_0x3680af=_0x5884f5[_0x1ea81b(0xd5)](_0x5884f5[_0x1ea81b(0xb6)](_0x5884f5[_0x1ea81b(0xb6)](_0x5884f5['KsEHq'](_0x5884f5[_0x1ea81b(0xe8)],_0x5b9316),_0x5884f5[_0x1ea81b(0x103)]),_0x12aab1)+_0x5884f5['jyxCz']+_0x122330,_0x5884f5[_0x1ea81b(0xaf)]),_0x5e6142=_0x5884f5[_0x1ea81b(0x113)]+_0x12aab1;try{return _0x2b16ac=await WebApi['httpDataJson'](_0x5e6142,_0x5884f5[_0x1ea81b(0xe1)],'',_0x4a4390),_0x2b16ac;}catch(_0x483fbc){return undefined;}return undefined;}static async[_0x4bfc6d(0xd3)](_0x31d31e){const _0x5d3ead=_0x4bfc6d,_0x38e94a={'oeKPV':_0x5d3ead(0x119),'LuJpl':function(_0x119a18,_0xc38ff5){return _0x119a18+_0xc38ff5;},'tpvyN':function(_0x2c37e8,_0x290139){return _0x2c37e8+_0x290139;},'UdHRt':function(_0xfbd9f,_0x104d5b){return _0xfbd9f+_0x104d5b;},'ZMeZU':_0x5d3ead(0xef),'Lzpue':function(_0x54027b,_0x3b3617){return _0x54027b||_0x3b3617;},'mEtDA':function(_0x2847cd,_0x48cfb3){return _0x2847cd+_0x48cfb3;},'vaVty':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','THTas':'&qid=','tKMAG':'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','JsPsO':'GET','dvhhr':function(_0x5c1c11,_0x200a8c){return _0x5c1c11!==_0x200a8c;}},_0x1cc4e5=(await NTQQUserApi['getPSkey']([_0x38e94a['oeKPV']]))[_0x38e94a[_0x5d3ead(0xd0)]],_0x55f7ba=await NTQQUserApi[_0x5d3ead(0xfc)](),_0x545c8e=_0x38e94a[_0x5d3ead(0x10f)](_0x38e94a[_0x5d3ead(0xf2)](_0x38e94a[_0x5d3ead(0xe2)](_0x38e94a[_0x5d3ead(0xe2)](_0x5d3ead(0xf9),_0x1cc4e5)+_0x5d3ead(0xde),_0x55f7ba),_0x38e94a[_0x5d3ead(0x106)]),selfInfo['uin']);let _0x5491a5=undefined;if(_0x38e94a[_0x5d3ead(0xc1)](!_0x55f7ba,!_0x1cc4e5))return undefined;const _0x47d9a8=WebApi[_0x5d3ead(0xcb)](_0x55f7ba),_0x5b1437=_0x38e94a[_0x5d3ead(0x100)](_0x38e94a['UdHRt'](_0x38e94a[_0x5d3ead(0xdb)]+_0x47d9a8+_0x38e94a[_0x5d3ead(0x10c)],_0x31d31e),_0x38e94a[_0x5d3ead(0xc3)]);try{_0x5491a5=await WebApi['httpDataJson'](_0x5b1437,_0x38e94a[_0x5d3ead(0xd9)],'',_0x545c8e);if(_0x38e94a[_0x5d3ead(0x117)](_0x5491a5?.['ec'],0x0))return undefined;return _0x5491a5;}catch(_0x372a7f){return undefined;}return undefined;}static async[_0x4bfc6d(0xb5)](_0x160fbf='',_0x50490b=_0x4bfc6d(0xfb),_0x2df65d='',_0x4db527=''){const _0x5a7958=_0x4bfc6d,_0x5434f7={'otrYd':function(_0x3ddc2a,_0x454a62){return _0x3ddc2a===_0x454a62;},'ZCRxm':_0x5a7958(0xfb),'tufwF':_0x5a7958(0xf8),'djVTx':'application/x-www-form-urlencoded','CAWfv':function(_0x3ad1db,_0x56dc16,_0x5afee1){return _0x3ad1db(_0x56dc16,_0x5afee1);}};let _0x2433f5='';return new Promise(async(_0x1e0a0b,_0x1f63d3)=>{const _0x1cde5b=_0x5a7958;try{let _0x3ba2ca=undefined;_0x5434f7['otrYd'](_0x50490b,_0x5434f7[_0x1cde5b(0x11b)])||_0x5434f7[_0x1cde5b(0x118)](_0x50490b,_0x5434f7['tufwF'])?_0x3ba2ca=await fetch(_0x160fbf,{'method':_0x50490b,'headers':{'Content-Type':_0x5434f7[_0x1cde5b(0xc2)],'Cookie':_0x4db527}}):_0x3ba2ca=await _0x5434f7[_0x1cde5b(0xb9)](fetch,_0x160fbf,{'method':_0x50490b,'headers':{'Content-Type':_0x1cde5b(0xbc),'Cookie':_0x4db527},'body':_0x2df65d});if(_0x3ba2ca['ok'])_0x2433f5=await _0x3ba2ca[_0x1cde5b(0xbb)]();else{}}catch(_0x287374){}_0x1e0a0b(_0x2433f5);});}static async[_0x4bfc6d(0xc5)](_0x8d4c79='',_0x4d9680=_0x4bfc6d(0xfb),_0x69f955='',_0x40976e=''){const _0x40a3fb=_0x4bfc6d,_0x3f2fed={'UbKzH':function(_0x53d2a7,_0xc30880){return _0x53d2a7===_0xc30880;},'AgqNC':'HEAD','HlvwD':function(_0x4cd3d3,_0x18c3e6,_0x5d37ae){return _0x4cd3d3(_0x18c3e6,_0x5d37ae);},'ePgUa':_0x40a3fb(0xbc),'sJhzl':function(_0x411155,_0x597686){return _0x411155(_0x597686);}};let _0x51c91f=undefined;return new Promise(async(_0x5ea260,_0x5265f5)=>{const _0x21bdac=_0x40a3fb;try{let _0x26d42f=undefined;_0x3f2fed['UbKzH'](_0x4d9680,_0x21bdac(0xfb))||_0x3f2fed['UbKzH'](_0x4d9680,_0x3f2fed[_0x21bdac(0x111)])?_0x26d42f=await _0x3f2fed['HlvwD'](fetch,_0x8d4c79,{'method':_0x4d9680,'headers':{'Content-Type':_0x3f2fed[_0x21bdac(0xd7)],'Cookie':_0x40976e}}):_0x26d42f=await fetch(_0x8d4c79,{'method':_0x4d9680,'headers':{'Content-Type':_0x3f2fed[_0x21bdac(0xd7)],'Cookie':_0x40976e},'body':_0x69f955});if(_0x26d42f['ok'])_0x51c91f=await _0x26d42f[_0x21bdac(0xb7)]();else{}}catch(_0x4f872f){}_0x3f2fed[_0x21bdac(0x10e)](_0x5ea260,_0x51c91f);});}static['genBkn'](_0x136ad4){const _0x440c50=_0x4bfc6d,_0x127ef2={'bjcVK':function(_0x570a64,_0x51a41b){return _0x570a64+_0x51a41b;},'tWcIQ':function(_0x1991a3,_0x2871e8){return _0x1991a3<<_0x2871e8;},'DeMTB':function(_0x352d55,_0x20da9a){return _0x352d55&_0x20da9a;}};_0x136ad4=_0x136ad4||'';let _0x36fb71=0x1505;for(let _0x198aed=0x0;_0x198aed<_0x136ad4[_0x440c50(0x108)];_0x198aed++){const _0x5d500f=_0x136ad4[_0x440c50(0xb2)](_0x198aed);_0x36fb71=_0x127ef2['bjcVK'](_0x36fb71,_0x127ef2[_0x440c50(0x105)](_0x36fb71,0x5))+_0x5d500f;}return _0x127ef2[_0x440c50(0xba)](_0x36fb71,0x7fffffff)['toString']();}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 2fe15199..2caabea9 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x54f709=_0x5613;(function(_0x49e821,_0x35f3ec){const _0x53dd1a=_0x5613,_0x1a1e29=_0x49e821();while(!![]){try{const _0x404135=-parseInt(_0x53dd1a(0x234))/0x1*(parseInt(_0x53dd1a(0x232))/0x2)+-parseInt(_0x53dd1a(0x1f7))/0x3+-parseInt(_0x53dd1a(0x22d))/0x4*(parseInt(_0x53dd1a(0x223))/0x5)+-parseInt(_0x53dd1a(0x20f))/0x6+parseInt(_0x53dd1a(0x21f))/0x7*(parseInt(_0x53dd1a(0x1b7))/0x8)+-parseInt(_0x53dd1a(0x1bc))/0x9+parseInt(_0x53dd1a(0x1d8))/0xa*(parseInt(_0x53dd1a(0x228))/0xb);if(_0x404135===_0x35f3ec)break;else _0x1a1e29['push'](_0x1a1e29['shift']());}catch(_0x2eec1b){_0x1a1e29['push'](_0x1a1e29['shift']());}}}(_0x4c93,0xe3796));import _0x380dc3 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x4d8cc6 from'node:path';import _0x500ca0 from'node:os';import _0xfa85ed from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';function _0x4c93(){const _0x548598=['initSession','initSession\x20failed','NodeIKernelGroupListener','getLoginList','NodeIKernelBuddyListener','map','onRecvSysMsg','getQuickLoginList','dataPathGlobal','fileLog','IUSuz','LDJOE','getMsgByLongId','Windows\x2010\x20Pro','addKernelLoginListener','NodeIDispatcherAdapter','登录失败','-v2.db','tipsDesc','quickLoginWithUin','没有可快速登录的QQ号','get','lBiRI','split','mkdirSync','weEIR','init','util','zgnts','onAddSendMsg','140022008','pjiLN','GraLX','getGroupService','本账号数据/缓存目录:','forEach','stringify','8guBUPh','onQRCodeLoginSucceed','onQRCodeGetPicture','_GW_B','packet_received','11057364NukZge','errMsg','数据库初始化失败','floor','update','[KickedOffLine]\x20[','loginListener','NMNTB','pngBase64QrcodeData','getNextMemberList','find','CRxhc','read','uid','onSessionInitComplete','infos','AYMsY','GZfuf','快速登录不可用','message_sent','onMsgInfoListUpdate','packet_sent','sceneId','JCVXH','ClYPJ','getMsgService','onGroupListUpdate','initWithDeskTopConfig','20LlSrWW','onLoginSuccessFuncList','vQlRf','ztPIg','vzOTp','uin','ABgKT','tipsTitle','initConfig','\x20has\x20no\x20method\x20','sRPAS','onUserLoggedIn','FbHWy','qrcodeUrl','engine','addListener','catch','GcJVi','onKickedOffLine','mCFuj','GvUhI','addKernelMsgListener','set','passwordLogin','icprR','cIpIH','ehZJN','onMemberListChange','getProfileService','session','NodeIQQNTWrapperSession','3767148OxPEIq','./nt_qq/global','md5','NodeIKernelMsgListener','zBwqG','XnWcq','assign','llZbT','JrmFg','qrLogin','lKJbd','NodeQQNTWrapperUtil','consoleLogLevel','cAYrT','onSelfStatusChanged','groupMemberList_MainWindow','clientType','当前账号(','length','consoleLog','createMemberListScene','hARVN','LocalLoginInfoList','replace','3061044BoPqYd','poRer',')\x20在线状态变更','onRecvMsg','now','from','has','groupCode','last_message_time','dataPath','NodeIDependsAdapter','gwDrC','curVersion','quickLogin','addMsg','onLineDev','4313701MkXyuK','isQuickLogin','oYVUF','getQRCodePicture','10595eICKCT','addKernelProfileListener','homedir','NodeIKernelProfileListener','startNT','24720498bScrdo','wxHAt','result','resolve','GroupListener','1156iDNkAn','loginErrorInfo','APQUX','MsgListener','osvIH','926LbQEwE','proxyHandler','1236lriIGJ','constructor','V1_WIN_NQ_','then','getBuddyService','message_received','digest','快速登录失败\x20','140022013','nqsfi','onMemberInfoChange','EGePL','fileLogLevel','initDataListener','recallTime','onProfileDetailInfoChanged','createHash','kPZnJ','PTFTb','TyAdp','ueFVq','loginService','QEaNx','CTKEL','addKernelGroupListener'];_0x4c93=function(){return _0x548598;};return _0x4c93();}function _0x5613(_0x4d5245,_0x21f955){const _0x4c9358=_0x4c93();return _0x5613=function(_0x561375,_0x465c4e){_0x561375=_0x561375-0x184;let _0x2dabfa=_0x4c9358[_0x561375];return _0x2dabfa;},_0x5613(_0x4d5245,_0x21f955);}import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x7202cd from'node:crypto';import{friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x54f709(0x1f5)];[_0x54f709(0x1ad)];[_0x54f709(0x1e6)];[_0x54f709(0x18e)];['loginListener'];[_0x54f709(0x1d9)]=[];[_0x54f709(0x233)]={'get'(target,prop,receiver){const _0xf4032a=_0x54f709,CYTbwj={'cAYrT':function(callee,param1){return callee(param1);},'JCVXH':function(x,y){return x===y;},'sRPAS':'undefined'};if(CYTbwj[_0xf4032a(0x1d3)](typeof target[prop],CYTbwj[_0xf4032a(0x1e2)]))return(...args)=>{const _0x26af2f=_0xf4032a;CYTbwj[_0x26af2f(0x204)](logDebug,target['constructor']['name']+_0x26af2f(0x1e1)+prop);};return Reflect[_0xf4032a(0x1a7)](target,prop,receiver);}};constructor(){const _0x3c0cdc=_0x54f709,_0x5b606d={'wxHAt':function(_0x39f05b,_0x59adfe){return _0x39f05b(_0x59adfe);},'GZfuf':function(_0x3b143f,_0x1c96f1){return _0x3b143f+_0x1c96f1;},'GVaOK':function(_0x23eb3d,_0x3e655c,_0x2427eb){return _0x23eb3d(_0x3e655c,_0x2427eb);},'XnWcq':_0x3c0cdc(0x1be),'GvUhI':function(_0x55ca1d,_0x4d10e9,_0x1dc763){return _0x55ca1d(_0x4d10e9,_0x1dc763);},'LDJOE':'./NapCat/data','CRxhc':_0x3c0cdc(0x193),'zgnts':function(_0x36575a,_0x49fdfd){return _0x36575a==_0x49fdfd;},'GcJVi':function(_0x37997a,_0x2c7d7f){return _0x37997a==_0x2c7d7f;}};this[_0x3c0cdc(0x1e6)]=new _0x380dc3['NodeIQQNTWrapperEngine'](),this['util']=new _0x380dc3[(_0x3c0cdc(0x202))](),this[_0x3c0cdc(0x18e)]=new _0x380dc3['NodeIKernelLoginService'](),this['session']=new _0x380dc3[(_0x3c0cdc(0x1f6))](),this[_0x3c0cdc(0x1c2)]=new LoginListener(),this[_0x3c0cdc(0x1c2)][_0x3c0cdc(0x1e3)]=_0x1b3f6a=>{const _0x44b6ac=_0x3c0cdc;_0x5b606d[_0x44b6ac(0x229)](logError,_0x5b606d['GZfuf'](_0x5b606d[_0x44b6ac(0x1cd)](_0x44b6ac(0x208),_0x1b3f6a),')已登录,无法重复登录'));},this[_0x3c0cdc(0x1c2)][_0x3c0cdc(0x1b8)]=_0x3961f4=>{const _0x2366b8=_0x3c0cdc,_0x976f27={'PTFTb':function(_0x15b665,_0x2dae87,_0x495c27){return _0x15b665(_0x2dae87,_0x495c27);},'qxWXS':_0x5b606d[_0x2366b8(0x1c7)]};this[_0x2366b8(0x192)](_0x3961f4[_0x2366b8(0x1dd)],_0x3961f4[_0x2366b8(0x1c9)])[_0x2366b8(0x237)](_0x46e05a=>{const _0x1dc7be=_0x2366b8,_0x21a668={'lBiRI':function(_0x21e6d3,_0x2e5207,_0x191fb2){return _0x5b606d['GVaOK'](_0x21e6d3,_0x2e5207,_0x191fb2);},'GraLX':_0x5b606d[_0x1dc7be(0x1fc)]};selfInfo[_0x1dc7be(0x1dd)]=_0x3961f4[_0x1dc7be(0x1dd)],selfInfo[_0x1dc7be(0x1c9)]=_0x3961f4[_0x1dc7be(0x1c9)],napCatConfig[_0x1dc7be(0x1c8)](),_0x5b606d[_0x1dc7be(0x1ec)](setLogLevel,napCatConfig[_0x1dc7be(0x185)],napCatConfig[_0x1dc7be(0x203)]),_0x5b606d[_0x1dc7be(0x229)](enableFileLog,napCatConfig[_0x1dc7be(0x19b)]),_0x5b606d[_0x1dc7be(0x229)](enableConsoleLog,napCatConfig[_0x1dc7be(0x20a)]),_0x5b606d[_0x1dc7be(0x229)](setLogSelfInfo,selfInfo);const _0x52cb54=_0x4d8cc6[_0x1dc7be(0x22b)](this[_0x1dc7be(0x218)],_0x5b606d[_0x1dc7be(0x19d)]);_0xfa85ed[_0x1dc7be(0x1aa)](_0x52cb54,{'recursive':!![]}),_0x5b606d['GVaOK'](logDebug,_0x1dc7be(0x1b4),_0x52cb54),dbUtil[_0x1dc7be(0x1ac)](_0x4d8cc6[_0x1dc7be(0x22b)](_0x52cb54,'./'+_0x3961f4[_0x1dc7be(0x1dd)]+_0x1dc7be(0x1a3)))[_0x1dc7be(0x237)](()=>{const _0x229ccc=_0x1dc7be,_0x5d83f2={'icprR':function(_0x4c5a63,_0x1d78de,_0x3949f6){const _0x58a40e=_0x5613;return _0x21a668[_0x58a40e(0x1a8)](_0x4c5a63,_0x1d78de,_0x3949f6);}};this[_0x229ccc(0x186)](),this[_0x229ccc(0x1d9)]['map'](_0x2e79b7=>{const _0x1d86ef=_0x229ccc,_0x8b2f0b={'QZHiJ':function(_0xdedfe1,_0x225222,_0x3bb5e7){const _0x260b5e=_0x5613;return _0x5d83f2[_0x260b5e(0x1f0)](_0xdedfe1,_0x225222,_0x3bb5e7);},'NMNTB':function(_0x1043f7,_0x4dc1aa){return _0x1043f7 instanceof _0x4dc1aa;}};new Promise((_0x56b720,_0x3d04aa)=>{const _0xb47a64=_0x5613,_0x519e24=_0x8b2f0b['QZHiJ'](_0x2e79b7,_0x3961f4[_0xb47a64(0x1dd)],_0x3961f4[_0xb47a64(0x1c9)]);_0x8b2f0b[_0xb47a64(0x1c3)](_0x519e24,Promise)&&_0x519e24[_0xb47a64(0x237)](_0x56b720)[_0xb47a64(0x1e8)](_0x3d04aa);})[_0x1d86ef(0x237)]();});})[_0x1dc7be(0x1e8)](_0x700147=>{const _0x562123=_0x1dc7be;_0x21a668['lBiRI'](logError,_0x21a668[_0x562123(0x1b2)],_0x700147);});})[_0x2366b8(0x1e8)](_0x55bd37=>{const _0x45c3df=_0x2366b8;_0x976f27[_0x45c3df(0x18b)](logError,_0x976f27['qxWXS'],_0x55bd37);throw new Error('启动失败:\x20'+JSON[_0x45c3df(0x1b6)](_0x55bd37));});},this[_0x3c0cdc(0x1c2)]['onQRCodeSessionFailed']=(_0x2525e3,_0x2fb661,_0x2973b7)=>{const _0x350707=_0x3c0cdc;_0x5b606d[_0x350707(0x1ec)](logError,_0x350707(0x1a2),_0x2973b7),_0x5b606d[_0x350707(0x1ae)](_0x2525e3,0x1)&&_0x5b606d[_0x350707(0x1e9)](_0x2fb661,0x3)&&this['loginService'][_0x350707(0x222)]();},this[_0x3c0cdc(0x1c2)]['onLoginFailed']=_0x211302=>{const _0x2e74a4=_0x3c0cdc;_0x5b606d[_0x2e74a4(0x1ec)](logError,_0x2e74a4(0x1a2),_0x211302);},this[_0x3c0cdc(0x1c2)]=new Proxy(this[_0x3c0cdc(0x1c2)],this[_0x3c0cdc(0x233)]),this[_0x3c0cdc(0x18e)][_0x3c0cdc(0x1a0)](new _0x380dc3['NodeIKernelLoginListener'](this[_0x3c0cdc(0x1c2)])),this[_0x3c0cdc(0x1e0)]();}get[_0x54f709(0x218)](){const _0x416820=_0x54f709;let _0x5f5ca1=this[_0x416820(0x1ad)]['getNTUserDataInfoConfig']();return!_0x5f5ca1&&(_0x5f5ca1=_0x4d8cc6[_0x416820(0x22b)](_0x500ca0[_0x416820(0x225)](),'./.config/QQ'),_0xfa85ed[_0x416820(0x1aa)](_0x5f5ca1,{'recursive':!![]})),_0x5f5ca1;}get[_0x54f709(0x19a)](){const _0x15230b=_0x54f709,_0x229e66={'poRer':_0x15230b(0x1f8)};return _0x4d8cc6['resolve'](this[_0x15230b(0x218)],_0x229e66[_0x15230b(0x210)]);}[_0x54f709(0x1e0)](){const _0xbb0c30=_0x54f709,_0x44eb9a={'llZbT':_0xbb0c30(0x19f)};this[_0xbb0c30(0x1e6)][_0xbb0c30(0x1d7)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0xbb0c30(0x21b)],'os_version':_0x44eb9a[_0xbb0c30(0x1fe)],'use_xlog':!![],'qua':_0xbb0c30(0x236)+qqVersionConfigInfo['curVersion'][_0xbb0c30(0x20e)]('-','_')+_0xbb0c30(0x1ba),'global_path_config':{'desktopGlobalPath':this[_0xbb0c30(0x19a)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x380dc3['NodeIGlobalAdapter'](new GlobalAdapter())),this[_0xbb0c30(0x18e)][_0xbb0c30(0x1e0)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0xbb0c30(0x19a)],'clientVer':qqVersionConfigInfo[_0xbb0c30(0x21b)],'hostName':hostname});}[_0x54f709(0x192)](_0x491f9a,_0x24acbf){const _0x4268fd={'ueFVq':function(_0x367a81,_0x5d7519){return _0x367a81===_0x5d7519;},'wHhfo':function(_0x577b50,_0x3f6182){return _0x577b50(_0x3f6182);},'APQUX':function(_0x2f68bc,_0x3eeaa9){return _0x2f68bc(_0x3eeaa9);},'TyAdp':function(_0x17dae9,_0x2b8392,_0x578f0e,_0x5efcac){return _0x17dae9(_0x2b8392,_0x578f0e,_0x5efcac);},'ClYPJ':function(_0x513619,_0x18bd09){return _0x513619+_0x18bd09;},'zBwqG':'init\x20failed\x20'};return new Promise((_0x4dec53,_0x104661)=>{const _0x4bcdd0=_0x5613,_0x5861ae=_0x4268fd[_0x4bcdd0(0x18c)](genSessionConfig,_0x491f9a,_0x24acbf,this['dataPath']),_0x492504=new SessionListener();_0x492504[_0x4bcdd0(0x1ca)]=_0x4a2623=>{const _0x20f059=_0x4bcdd0;if(_0x4268fd[_0x20f059(0x18d)](_0x4a2623,0x0))return _0x4268fd['wHhfo'](_0x4dec53,0x0);_0x4268fd[_0x20f059(0x22f)](_0x104661,_0x4a2623);},this[_0x4bcdd0(0x1f5)][_0x4bcdd0(0x1ac)](_0x5861ae,new _0x380dc3[(_0x4bcdd0(0x219))](new DependsAdapter()),new _0x380dc3[(_0x4bcdd0(0x1a1))](new DispatcherAdapter()),new _0x380dc3['NodeIKernelSessionListener'](_0x492504));try{this[_0x4bcdd0(0x1f5)][_0x4bcdd0(0x227)](0x0);}catch(_0x19cda1){try{this['session'][_0x4bcdd0(0x227)]();}catch(_0xc03b5f){_0x4268fd['wHhfo'](_0x104661,_0x4268fd[_0x4bcdd0(0x1d4)](_0x4268fd[_0x4bcdd0(0x1fb)],_0xc03b5f));}}});}[_0x54f709(0x186)](){const _0x4b50cb=_0x54f709,_0x222138={'ztPIg':function(_0x402bff,_0xe68e1e){return _0x402bff===_0xe68e1e;},'IUSuz':function(_0x5e132a,_0x1cb83f){return _0x5e132a(_0x1cb83f);},'AYMsY':function(_0x252951,_0x9ba1ec){return _0x252951+_0x9ba1ec;},'vzOTp':'账号设备(','adZmq':function(_0x217484,_0xa78a14){return _0x217484(_0xa78a14);},'FbHWy':_0x4b50cb(0x1c1),'nqsfi':function(_0x4c6bb4,_0x11207d){return _0x4c6bb4===_0x11207d;},'pjiLN':function(_0xe43be6,_0x326c8d){return _0xe43be6/_0x326c8d;},'ABgKT':_0x4b50cb(0x206)},_0x2f3dab=new MsgListener();_0x2f3dab[_0x4b50cb(0x21e)]=_0x467950=>{const _0x4c5cd8=_0x4b50cb,_0x197471={'ehZJN':function(_0x5ebfa7,_0x3c41b9){const _0x1a83eb=_0x5613;return _0x222138[_0x1a83eb(0x1db)](_0x5ebfa7,_0x3c41b9);},'vQlRf':function(_0x108ab3,_0x2e7cba){const _0x3e16b5=_0x5613;return _0x222138[_0x3e16b5(0x19c)](_0x108ab3,_0x2e7cba);},'oYVUF':function(_0x6a07a7,_0x234056){const _0x3aabfb=_0x5613;return _0x222138[_0x3aabfb(0x1cc)](_0x6a07a7,_0x234056);},'QiROa':_0x222138[_0x4c5cd8(0x1dc)],'lKJbd':_0x4c5cd8(0x211)};_0x467950[_0x4c5cd8(0x197)](_0x5eee81=>{const _0x5a4840=_0x4c5cd8;_0x197471[_0x5a4840(0x1f2)](_0x5eee81[_0x5a4840(0x207)],0x2)&&_0x197471[_0x5a4840(0x1da)](log,_0x197471[_0x5a4840(0x221)](_0x197471['QiROa']+_0x5eee81['devUid'],_0x197471[_0x5a4840(0x201)]));});},_0x2f3dab[_0x4b50cb(0x1ea)]=_0x15f93a=>{const _0x1202db=_0x4b50cb;_0x222138['adZmq'](log,_0x222138[_0x1202db(0x1cc)](_0x222138['AYMsY'](_0x222138[_0x1202db(0x1e4)],_0x15f93a[_0x1202db(0x1df)])+']\x20',_0x15f93a[_0x1202db(0x1a4)]));},_0x2f3dab[_0x4b50cb(0x1d0)]=_0x17610c=>{stat['packet_received']+=0x1,_0x17610c['map'](_0x5cf604=>{const _0x42eec0=_0x5613;_0x222138[_0x42eec0(0x23d)](_0x5cf604[_0x42eec0(0x187)],'0')?dbUtil[_0x42eec0(0x21d)](_0x5cf604)['then']()[_0x42eec0(0x1e8)]():dbUtil[_0x42eec0(0x19e)](_0x5cf604['msgId'])['then'](_0x1fa02d=>{const _0x1fda23=_0x42eec0;_0x1fa02d&&(_0x1fa02d['recallTime']=_0x5cf604[_0x1fda23(0x187)],dbUtil['updateMsg'](_0x1fa02d)[_0x1fda23(0x237)]());});});},_0x2f3dab[_0x4b50cb(0x1af)]=_0x29c3dc=>{const _0x1d53aa=_0x4b50cb;stat[_0x1d53aa(0x1d1)]+=0x1,stat[_0x1d53aa(0x1cf)]+=0x1,stat[_0x1d53aa(0x217)]=Math[_0x1d53aa(0x1bf)](_0x222138[_0x1d53aa(0x1b1)](Date[_0x1d53aa(0x213)](),0x3e8));},_0x2f3dab[_0x4b50cb(0x212)]=_0x2a6389=>{const _0xf6fcef=_0x4b50cb;stat[_0xf6fcef(0x1bb)]+=0x1,stat[_0xf6fcef(0x239)]+=_0x2a6389[_0xf6fcef(0x209)],stat[_0xf6fcef(0x217)]=Math[_0xf6fcef(0x1bf)](Date[_0xf6fcef(0x213)]()/0x3e8);},_0x2f3dab[_0x4b50cb(0x198)]=(..._0x4530e9)=>{const _0xe08e72=_0x4b50cb;stat[_0xe08e72(0x1bb)]+=0x1;},this[_0x4b50cb(0x1e7)](_0x2f3dab);const _0x7f5d6=new BuddyListener();_0x7f5d6['onBuddyListChange']=_0x82cc7a=>{const _0x478333=_0x4b50cb;for(const _0x4d7ffa of _0x82cc7a){for(const _0x4c4e32 of _0x4d7ffa['buddyList']){const _0x2af08c=friends[_0x478333(0x1a7)](_0x4c4e32['uid']);uid2UinMap[_0x4c4e32[_0x478333(0x1c9)]]=_0x4c4e32[_0x478333(0x1dd)],_0x2af08c?Object[_0x478333(0x1fd)](_0x2af08c,_0x4c4e32):friends['set'](_0x4c4e32[_0x478333(0x1c9)],_0x4c4e32);}}},this[_0x4b50cb(0x1e7)](_0x7f5d6),this[_0x4b50cb(0x1f5)][_0x4b50cb(0x238)]()['getBuddyList'](!![])[_0x4b50cb(0x237)](_0x5e4fa3=>{});const _0x1476f9=new ProfileListener();_0x1476f9[_0x4b50cb(0x188)]=_0x4ba135=>{const _0x3e4583=_0x4b50cb;_0x222138[_0x3e4583(0x1db)](_0x4ba135[_0x3e4583(0x1c9)],selfInfo[_0x3e4583(0x1c9)])&&Object['assign'](selfInfo,_0x4ba135);},_0x1476f9[_0x4b50cb(0x205)]=_0x88c7ba=>{},this[_0x4b50cb(0x1e7)](_0x1476f9);const _0x5f5c46=new GroupListener();_0x5f5c46[_0x4b50cb(0x1d6)]=(_0x297a89,_0x2ba23a)=>{const _0x204694=_0x4b50cb;_0x2ba23a[_0x204694(0x197)](_0x3ec1fb=>{const _0x1d092b=_0x204694,_0x6dbea3=groups['get'](_0x3ec1fb['groupCode']);if(_0x6dbea3)Object[_0x1d092b(0x1fd)](_0x6dbea3,_0x3ec1fb);else{groups['set'](_0x3ec1fb[_0x1d092b(0x216)],_0x3ec1fb);const _0x47cecd=this[_0x1d092b(0x1f5)]['getGroupService']()[_0x1d092b(0x20b)](_0x3ec1fb[_0x1d092b(0x216)],_0x222138[_0x1d092b(0x1de)]);this[_0x1d092b(0x1f5)][_0x1d092b(0x1b3)]()[_0x1d092b(0x1c5)](_0x47cecd,undefined,0xbb8)[_0x1d092b(0x237)](_0x15c044=>{});}});},_0x5f5c46[_0x4b50cb(0x1f3)]=_0x255e3d=>{const _0x4680dd=_0x4b50cb,_0x4510d6=_0x255e3d[_0x4680dd(0x1d2)][_0x4680dd(0x1a9)]('_')[0x0];if(groupMembers[_0x4680dd(0x215)](_0x4510d6)){const _0x4a9420=groupMembers[_0x4680dd(0x1a7)](_0x4510d6);_0x255e3d[_0x4680dd(0x1cb)][_0x4680dd(0x1b5)]((_0x3ab8d8,_0x8d11eb)=>{const _0x5693c2=_0x4680dd,_0x54ce78=_0x4a9420[_0x5693c2(0x1a7)](_0x8d11eb);_0x54ce78?Object[_0x5693c2(0x1fd)](_0x54ce78,_0x3ab8d8):_0x4a9420[_0x5693c2(0x1ee)](_0x8d11eb,_0x3ab8d8);});}else groupMembers[_0x4680dd(0x1ee)](_0x4510d6,_0x255e3d[_0x4680dd(0x1cb)]);},_0x5f5c46[_0x4b50cb(0x23e)]=(_0x9858ea,_0x256990,_0x224a0a)=>{const _0x2d23a5=_0x4b50cb;_0x224a0a[_0x2d23a5(0x1b5)]((_0x4dff21,_0x3c5183)=>{const _0x549c0b=_0x2d23a5;uid2UinMap[_0x3c5183]=_0x4dff21[_0x549c0b(0x1dd)];});const _0xddd1f9=groupMembers['get'](_0x9858ea);_0xddd1f9?_0x224a0a[_0x2d23a5(0x1b5)]((_0x17d31e,_0x25ebd2)=>{const _0x4f6fcc=_0x2d23a5,_0x4adfaf=_0xddd1f9['get'](_0x25ebd2);_0x4adfaf?Object[_0x4f6fcc(0x1fd)](_0x4adfaf,_0x17d31e):_0xddd1f9[_0x4f6fcc(0x1ee)](_0x25ebd2,_0x17d31e);}):groupMembers[_0x2d23a5(0x1ee)](_0x9858ea,_0x224a0a);},this[_0x4b50cb(0x1e7)](_0x5f5c46);}[_0x54f709(0x1e7)](_0x3e4cef){const _0x504926=_0x54f709,_0x322457={'bNXIc':'BuddyListener','gwDrC':_0x504926(0x22c),'BJlqX':_0x504926(0x230)};_0x3e4cef=new Proxy(_0x3e4cef,this[_0x504926(0x233)]);switch(_0x3e4cef[_0x504926(0x235)]['name']){case _0x322457['bNXIc']:{return this['session'][_0x504926(0x238)]()['addKernelBuddyListener'](new _0x380dc3[(_0x504926(0x196))](_0x3e4cef));}case _0x322457[_0x504926(0x21a)]:{return this[_0x504926(0x1f5)][_0x504926(0x1b3)]()[_0x504926(0x191)](new _0x380dc3[(_0x504926(0x194))](_0x3e4cef));}case _0x322457['BJlqX']:{return this[_0x504926(0x1f5)][_0x504926(0x1d5)]()[_0x504926(0x1ed)](new _0x380dc3[(_0x504926(0x1fa))](_0x3e4cef));}case'ProfileListener':{return this[_0x504926(0x1f5)][_0x504926(0x1f4)]()[_0x504926(0x224)](new _0x380dc3[(_0x504926(0x226))](_0x3e4cef));}default:return-0x1;}}['onLoginSuccess'](_0x1c36e4){const _0x5d9642=_0x54f709;this[_0x5d9642(0x1d9)]['push'](_0x1c36e4);}async[_0x54f709(0x21c)](_0x19b97d){const _0x35f744=_0x54f709,_0x252517={'CTKEL':_0x35f744(0x1a6),'weEIR':function(_0xe8d091,_0xa46e84){return _0xe8d091(_0xa46e84);},'hARVN':_0x35f744(0x23b)},_0xbe3372=await this[_0x35f744(0x18e)][_0x35f744(0x195)]();if(_0xbe3372[_0x35f744(0x22a)]!==0x0)throw new Error(_0x252517[_0x35f744(0x190)]);const _0x514726=_0xbe3372[_0x35f744(0x20d)][_0x35f744(0x1c6)](_0x4e91b5=>_0x4e91b5[_0x35f744(0x1dd)]===_0x19b97d);if(!_0x514726||!_0x514726?.[_0x35f744(0x220)])throw new Error(_0x19b97d+_0x35f744(0x1ce));await _0x252517[_0x35f744(0x1ab)](sleep,0x3e8);const _0x29af1b=await this[_0x35f744(0x18e)][_0x35f744(0x1a5)](_0x19b97d);if(!_0x29af1b[_0x35f744(0x22a)])throw new Error(_0x252517[_0x35f744(0x20c)]+_0x29af1b[_0x35f744(0x22e)][_0x35f744(0x1bd)]);return _0x29af1b;}async[_0x54f709(0x200)](_0x1aee72){const _0x389fa4={'JrmFg':'data:image/png;base64,','osvIH':'base64'};return new Promise((_0x512831,_0x2fbf0e)=>{const _0x18c6cb=_0x5613;this[_0x18c6cb(0x1c2)][_0x18c6cb(0x1b9)]=_0x352407=>{const _0x3a0866=_0x18c6cb,_0x42a944=_0x352407[_0x3a0866(0x1c4)][_0x3a0866(0x1a9)](_0x389fa4[_0x3a0866(0x1ff)])[0x1],_0x5cc163=Buffer[_0x3a0866(0x214)](_0x42a944,_0x389fa4[_0x3a0866(0x231)]);_0x1aee72(_0x352407[_0x3a0866(0x1e5)],_0x352407[_0x3a0866(0x1c4)],_0x5cc163);},this[_0x18c6cb(0x18e)][_0x18c6cb(0x222)]();});}async[_0x54f709(0x1ef)](_0x1caa61,_0x21249b,_0x43d12e,_0x3e7974,_0x1b785f){const _0x172cfa=_0x54f709,_0x31810f={'oAKOb':_0x172cfa(0x1f9),'kPZnJ':'hex','VAElT':function(_0x2c4b8a,_0x2a69b9){return _0x2c4b8a&&_0x2a69b9;},'QEaNx':function(_0x11b200,_0x322f2e){return _0x11b200||_0x322f2e;},'cIpIH':function(_0x443b0d,_0x4e23d0){return _0x443b0d||_0x4e23d0;},'mCFuj':function(_0x22226a,_0x51cf9a){return _0x22226a(_0x51cf9a);},'HQDjA':_0x172cfa(0x1b0),'EGePL':_0x172cfa(0x23c)},_0x29c84a=_0x7202cd[_0x172cfa(0x189)](_0x31810f['oAKOb'])[_0x172cfa(0x1c0)](_0x21249b)[_0x172cfa(0x23a)](_0x31810f[_0x172cfa(0x18a)]),_0x3d506b={'uin':_0x1caa61,'passwordMd5':_0x29c84a,'step':_0x31810f['VAElT'](_0x43d12e,_0x3e7974)&&_0x1b785f?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x31810f[_0x172cfa(0x18f)](_0x43d12e,''),'proofWaterRand':_0x3e7974||'','proofWaterSid':_0x31810f[_0x172cfa(0x1f1)](_0x1b785f,'')};await this[_0x172cfa(0x18e)][_0x172cfa(0x195)](),await _0x31810f[_0x172cfa(0x1eb)](sleep,0x3e8);const _0x130322=await this[_0x172cfa(0x18e)]['passwordLogin'](_0x3d506b);switch(_0x130322[_0x172cfa(0x22a)]){case'0':{break;}case _0x31810f['HQDjA']:{break;}case'4':case _0x31810f[_0x172cfa(0x184)]:default:}}async[_0x54f709(0x199)](){const _0x20da35=_0x54f709,_0x1d2388=await this[_0x20da35(0x18e)]['getLoginList']();return _0x1d2388;}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x536800=_0x21ac;(function(_0x11f4c5,_0x4a396a){const _0xfb3ddd=_0x21ac,_0x5eda69=_0x11f4c5();while(!![]){try{const _0x36d9b1=-parseInt(_0xfb3ddd(0x1ed))/0x1+-parseInt(_0xfb3ddd(0x247))/0x2*(-parseInt(_0xfb3ddd(0x207))/0x3)+-parseInt(_0xfb3ddd(0x1c1))/0x4+parseInt(_0xfb3ddd(0x1d3))/0x5+-parseInt(_0xfb3ddd(0x1d1))/0x6+-parseInt(_0xfb3ddd(0x25c))/0x7*(-parseInt(_0xfb3ddd(0x1cd))/0x8)+parseInt(_0xfb3ddd(0x20f))/0x9;if(_0x36d9b1===_0x4a396a)break;else _0x5eda69['push'](_0x5eda69['shift']());}catch(_0x244c0c){_0x5eda69['push'](_0x5eda69['shift']());}}}(_0x390e,0x87e92));import _0x38f69b from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';function _0x390e(){const _0x43c70f=['message_sent','NodeIKernelGroupListener','name','addKernelBuddyListener','msgId','fileLog','fileLogLevel','length','find','get','_GW_B','clientType','infos','getProfileService','NodeIKernelLoginListener','homedir','md5','yofmV','dsSyD','then','140022008','last_message_time','push','./.config/QQ','pngBase64QrcodeData','engine','byXFk','quickLogin','dataPathGlobal','2jsWDsR','NodeIDispatcherAdapter','DIGXi','getNTUserDataInfoConfig','zcfZo','assign','initSession\x20failed','updateMsg','onLoginFailed','oKrEt','quickLoginWithUin','forEach','onUserLoggedIn','createMemberListScene','xJzpA','onMsgInfoListUpdate','快速登录不可用','MZRRV','BgdPx','V1_WIN_NQ_','update','671867EZUrxi','快速登录失败\x20','\x20has\x20no\x20method\x20','zDhQo','categoryId','SOuPo','启动失败:\x20','NodeIDependsAdapter','from','EGLKB','NodeIGlobalAdapter','BAevC','digest','addListener','EWHiM','onProfileDetailInfoChanged','[KickedOffLine]\x20[','dataPath','NodeIKernelMsgListener','SbTre','yXHBA','2321816zcpPGv','mkdirSync','kfhWg','curVersion','constructor','initSession','ZdgQw','cGUiq','NodeQQNTWrapperUtil','proxyHandler','onAddSendMsg','NodeIKernelBuddyListener','88wuzQHo','set','initConfig','initDataListener','5025378cJWkfe','loginListener','1079645ZMYjXo',')\x20在线状态变更','session','mZftX','recallTime','jcBlj','packet_received','IiVDo','groupCode','uin','onLoginSuccess','CIEbn','onLoginSuccessFuncList','NodeIKernelLoginService','getBuddyList','init\x20failed\x20','loginErrorInfo','errMsg','startNT','NodeIQQNTWrapperSession','tipsDesc','categroyName','has','buddyList','getMsgByLongId','getBuddyService','649033gmKgmp','createHash','JiFUl','GroupListener','getMsgService','onQRCodeGetPicture','message_received','consoleLogLevel','addKernelLoginListener','replace','FOmGh','NodeIKernelProfileListener','getGroupService','onSelfStatusChanged','resolve','addKernelMsgListener','stringify','数据库初始化失败','undefined','cJWvj','JftzZ','NodeIKernelSessionListener','VaWBR','xlHQr','now','onMemberInfoChange','3314043vOPfsn','catch','NodeIQQNTWrapperEngine','passwordLogin','ZaHox','JaRKd','onBuddyListChange','Windows\x2010\x20Pro','2226051EMLXZj','MsgListener','YecyF','split','DWWbs','groupMemberList_MainWindow','init','gGStm','loginService','floor','data','rWaqI','onRecvMsg','LocalLoginInfoList','getLoginList','uid','onLineDev','consoleLog','addKernelGroupListener','map','UzJxh','sceneId','bXJUV','登录失败','GpkUg','result','ProfileListener'];_0x390e=function(){return _0x43c70f;};return _0x390e();}import _0x1f57f6 from'node:path';import _0x42d54d from'node:os';import _0x26df6e from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';function _0x21ac(_0x184802,_0x1b9b97){const _0x390eff=_0x390e();return _0x21ac=function(_0x21ac06,_0x1b6434){_0x21ac06=_0x21ac06-0x1b1;let _0xd7b1c7=_0x390eff[_0x21ac06];return _0xd7b1c7;},_0x21ac(_0x184802,_0x1b9b97);}import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x507f38 from'node:crypto';import{buddyCategory,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{['session'];['util'];[_0x536800(0x243)];[_0x536800(0x217)];[_0x536800(0x1d2)];[_0x536800(0x1df)]=[];[_0x536800(0x1ca)]={'get'(target,prop,receiver){const _0x5ece62=_0x536800,DYFfnJ={'ANIgE':function(callee,param1){return callee(param1);},'JaRKd':function(x,y){return x===y;},'ZaHox':_0x5ece62(0x1ff)};if(DYFfnJ[_0x5ece62(0x20c)](typeof target[prop],DYFfnJ[_0x5ece62(0x20b)]))return(...args)=>{const _0x5d4752=_0x5ece62;DYFfnJ['ANIgE'](logDebug,target[_0x5d4752(0x1c5)][_0x5d4752(0x22c)]+_0x5d4752(0x25e)+prop);};return Reflect[_0x5ece62(0x233)](target,prop,receiver);}};constructor(){const _0x60915f=_0x536800,_0x1fc0bc={'MZRRV':function(_0x50daca,_0x5cf2c3){return _0x50daca(_0x5cf2c3);},'gGStm':function(_0x42e157,_0x5019e6){return _0x42e157+_0x5019e6;},'CyyNw':'当前账号(','cGUiq':')已登录,无法重复登录','ZRhLg':function(_0x4f5cb4,_0x572077,_0x518462){return _0x4f5cb4(_0x572077,_0x518462);},'VaWBR':function(_0x32a9a9,_0x1355d6){return _0x32a9a9 instanceof _0x1355d6;},'SbTre':function(_0x3ef279,_0x57d078,_0x5566bb){return _0x3ef279(_0x57d078,_0x5566bb);},'byXFk':'./NapCat/data','SOuPo':'本账号数据/缓存目录:','AZHhT':function(_0x3123f1,_0x290cb1,_0x54820b){return _0x3123f1(_0x290cb1,_0x54820b);},'xlHQr':_0x60915f(0x24d),'TjShN':_0x60915f(0x1fe),'EGLKB':function(_0x4174da,_0x5c2844,_0x21ba41){return _0x4174da(_0x5c2844,_0x21ba41);},'BAevC':_0x60915f(0x226),'ZdgQw':function(_0x1ed2e9,_0x56e4af){return _0x1ed2e9==_0x56e4af;},'UzJxh':function(_0x1242f6,_0x42408d){return _0x1242f6==_0x42408d;}};this['engine']=new _0x38f69b[(_0x60915f(0x209))](),this['util']=new _0x38f69b[(_0x60915f(0x1c9))](),this['loginService']=new _0x38f69b[(_0x60915f(0x1e0))](),this[_0x60915f(0x1d5)]=new _0x38f69b[(_0x60915f(0x1e6))](),this['loginListener']=new LoginListener(),this['loginListener'][_0x60915f(0x253)]=_0x39ef64=>{const _0x197b7f=_0x60915f;_0x1fc0bc[_0x197b7f(0x258)](logError,_0x1fc0bc['gGStm'](_0x1fc0bc[_0x197b7f(0x216)](_0x1fc0bc['CyyNw'],_0x39ef64),_0x1fc0bc[_0x197b7f(0x1c8)]));},this[_0x60915f(0x1d2)]['onQRCodeLoginSucceed']=_0x5b917f=>{const _0x175541=_0x60915f,_0x4c64a6={'EmkOg':function(_0x25bc4e,_0x20fb83,_0x203a84){const _0x495fd0=_0x21ac;return _0x1fc0bc[_0x495fd0(0x1bf)](_0x25bc4e,_0x20fb83,_0x203a84);},'FOmGh':_0x1fc0bc['TjShN']};this[_0x175541(0x1c6)](_0x5b917f['uin'],_0x5b917f[_0x175541(0x21e)])[_0x175541(0x23d)](_0x56c144=>{const _0xbc708a=_0x175541,_0x3bddb6={'jcBlj':function(_0x947950,_0x3096d9,_0xd4799b){return _0x1fc0bc['ZRhLg'](_0x947950,_0x3096d9,_0xd4799b);},'HhSrs':function(_0x173791,_0x466717){const _0x293f6c=_0x21ac;return _0x1fc0bc[_0x293f6c(0x203)](_0x173791,_0x466717);}};selfInfo[_0xbc708a(0x1dc)]=_0x5b917f[_0xbc708a(0x1dc)],selfInfo[_0xbc708a(0x21e)]=_0x5b917f[_0xbc708a(0x21e)],napCatConfig['read'](),_0x1fc0bc[_0xbc708a(0x1bf)](setLogLevel,napCatConfig[_0xbc708a(0x230)],napCatConfig[_0xbc708a(0x1f4)]),_0x1fc0bc['MZRRV'](enableFileLog,napCatConfig[_0xbc708a(0x22f)]),_0x1fc0bc['MZRRV'](enableConsoleLog,napCatConfig[_0xbc708a(0x220)]),_0x1fc0bc[_0xbc708a(0x258)](setLogSelfInfo,selfInfo);const _0x26f548=_0x1f57f6[_0xbc708a(0x1fb)](this[_0xbc708a(0x1bd)],_0x1fc0bc[_0xbc708a(0x244)]);_0x26df6e[_0xbc708a(0x1c2)](_0x26f548,{'recursive':!![]}),logDebug(_0x1fc0bc[_0xbc708a(0x1b1)],_0x26f548),dbUtil[_0xbc708a(0x215)](_0x1f57f6[_0xbc708a(0x1fb)](_0x26f548,'./'+_0x5b917f[_0xbc708a(0x1dc)]+'-v2.db'))[_0xbc708a(0x23d)](()=>{const _0x1f3beb=_0xbc708a,_0x44994f={'bXJUV':function(_0x1be327,_0x1f345d,_0x40e916){const _0x27cd4e=_0x21ac;return _0x3bddb6[_0x27cd4e(0x1d8)](_0x1be327,_0x1f345d,_0x40e916);},'hhFAG':function(_0x2728e9,_0x42b1b2){return _0x3bddb6['HhSrs'](_0x2728e9,_0x42b1b2);}};this[_0x1f3beb(0x1d0)](),this[_0x1f3beb(0x1df)][_0x1f3beb(0x222)](_0x805066=>{const _0x36f3f8=_0x1f3beb;new Promise((_0x49b9d2,_0x533331)=>{const _0x4a06e2=_0x21ac,_0x283fde=_0x44994f[_0x4a06e2(0x225)](_0x805066,_0x5b917f[_0x4a06e2(0x1dc)],_0x5b917f[_0x4a06e2(0x21e)]);_0x44994f['hhFAG'](_0x283fde,Promise)&&_0x283fde[_0x4a06e2(0x23d)](_0x49b9d2)[_0x4a06e2(0x208)](_0x533331);})[_0x36f3f8(0x23d)]();});})[_0xbc708a(0x208)](_0x5ac6a3=>{const _0x4590fd=_0xbc708a;_0x4c64a6['EmkOg'](logError,_0x4c64a6[_0x4590fd(0x1f7)],_0x5ac6a3);});})[_0x175541(0x208)](_0x39449c=>{const _0x529ba7=_0x175541;_0x1fc0bc['AZHhT'](logError,_0x1fc0bc[_0x529ba7(0x204)],_0x39449c);throw new Error(_0x529ba7(0x1b2)+JSON[_0x529ba7(0x1fd)](_0x39449c));});},this[_0x60915f(0x1d2)]['onQRCodeSessionFailed']=(_0x44325f,_0x211520,_0x3e48c0)=>{const _0x12dfbb=_0x60915f;_0x1fc0bc[_0x12dfbb(0x1b5)](logError,_0x1fc0bc['BAevC'],_0x3e48c0),_0x1fc0bc[_0x12dfbb(0x1c7)](_0x44325f,0x1)&&_0x1fc0bc[_0x12dfbb(0x223)](_0x211520,0x3)&&this[_0x12dfbb(0x217)]['getQRCodePicture']();},this['loginListener'][_0x60915f(0x24f)]=_0x4ab47d=>{const _0x5771ae=_0x60915f;_0x1fc0bc[_0x5771ae(0x1b5)](logError,_0x1fc0bc[_0x5771ae(0x1b7)],_0x4ab47d);},this[_0x60915f(0x1d2)]=new Proxy(this[_0x60915f(0x1d2)],this[_0x60915f(0x1ca)]),this[_0x60915f(0x217)][_0x60915f(0x1f5)](new _0x38f69b[(_0x60915f(0x238))](this[_0x60915f(0x1d2)])),this['initConfig']();}get[_0x536800(0x1bd)](){const _0x35da08=_0x536800,_0x43d41c={'UYpYc':_0x35da08(0x241)};let _0x374aad=this['util'][_0x35da08(0x24a)]();return!_0x374aad&&(_0x374aad=_0x1f57f6['resolve'](_0x42d54d[_0x35da08(0x239)](),_0x43d41c['UYpYc']),_0x26df6e['mkdirSync'](_0x374aad,{'recursive':!![]})),_0x374aad;}get[_0x536800(0x246)](){const _0x484dc1=_0x536800,_0x303405={'UZxka':'./nt_qq/global'};return _0x1f57f6['resolve'](this[_0x484dc1(0x1bd)],_0x303405['UZxka']);}['initConfig'](){const _0x1559b4=_0x536800,_0x1f34c7={'EWHiM':_0x1559b4(0x20e)};this[_0x1559b4(0x243)]['initWithDeskTopConfig']({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x1559b4(0x1c4)],'os_version':_0x1f34c7[_0x1559b4(0x1ba)],'use_xlog':!![],'qua':_0x1559b4(0x25a)+qqVersionConfigInfo[_0x1559b4(0x1c4)][_0x1559b4(0x1f6)]('-','_')+_0x1559b4(0x234),'global_path_config':{'desktopGlobalPath':this[_0x1559b4(0x246)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x38f69b[(_0x1559b4(0x1b6))](new GlobalAdapter())),this[_0x1559b4(0x217)][_0x1559b4(0x1cf)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this['dataPathGlobal'],'clientVer':qqVersionConfigInfo[_0x1559b4(0x1c4)],'hostName':hostname});}[_0x536800(0x1c6)](_0x3bf246,_0x3557ec){const _0x2b65fb={'JYuEz':function(_0x54b26d,_0x3d830d){return _0x54b26d(_0x3d830d);},'JftzZ':function(_0x2c898a,_0x3e68f1){return _0x2c898a(_0x3e68f1);},'DIGXi':function(_0x18794b,_0x1e93a8,_0xfd1d51,_0x11f940){return _0x18794b(_0x1e93a8,_0xfd1d51,_0x11f940);},'CIEbn':function(_0x48e5d1,_0x14efa3){return _0x48e5d1(_0x14efa3);}};return new Promise((_0x4b914c,_0x21864c)=>{const _0x37e959=_0x21ac,_0x703ded=_0x2b65fb[_0x37e959(0x249)](genSessionConfig,_0x3bf246,_0x3557ec,this['dataPath']),_0x483acb=new SessionListener();_0x483acb['onSessionInitComplete']=_0x3c4021=>{const _0x59b099=_0x37e959;if(_0x3c4021===0x0)return _0x2b65fb['JYuEz'](_0x4b914c,0x0);_0x2b65fb[_0x59b099(0x201)](_0x21864c,_0x3c4021);},this['session']['init'](_0x703ded,new _0x38f69b[(_0x37e959(0x1b3))](new DependsAdapter()),new _0x38f69b[(_0x37e959(0x248))](new DispatcherAdapter()),new _0x38f69b[(_0x37e959(0x202))](_0x483acb));try{this[_0x37e959(0x1d5)]['startNT'](0x0);}catch(_0x588027){try{this[_0x37e959(0x1d5)][_0x37e959(0x1e5)]();}catch(_0x1f00f0){_0x2b65fb[_0x37e959(0x1de)](_0x21864c,_0x37e959(0x1e2)+_0x1f00f0);}}});}[_0x536800(0x1d0)](){const _0x1c77c5=_0x536800,_0x3c6d05={'JiFUl':function(_0x2e0a0d,_0x3350e5){return _0x2e0a0d===_0x3350e5;},'DWWbs':function(_0x2ed01c,_0x443115){return _0x2ed01c(_0x443115);},'yofmV':function(_0x5ea443,_0x9a3a12){return _0x5ea443+_0x9a3a12;},'iUdqQ':_0x1c77c5(0x1d4),'YecyF':function(_0x39ed4b,_0x49c6b1){return _0x39ed4b/_0x49c6b1;},'cJWvj':_0x1c77c5(0x214)},_0x7fada4=new MsgListener();_0x7fada4[_0x1c77c5(0x21f)]=_0x17559f=>{const _0x386e32=_0x1c77c5;_0x17559f[_0x386e32(0x222)](_0xbe7527=>{const _0x1b12b7=_0x386e32;_0x3c6d05[_0x1b12b7(0x1ef)](_0xbe7527[_0x1b12b7(0x235)],0x2)&&_0x3c6d05[_0x1b12b7(0x213)](log,_0x3c6d05[_0x1b12b7(0x23b)](_0x3c6d05['yofmV']('账号设备(',_0xbe7527['devUid']),_0x3c6d05['iUdqQ']));});},_0x7fada4['onKickedOffLine']=_0x3c25aa=>{const _0x206328=_0x1c77c5;log(_0x3c6d05[_0x206328(0x23b)](_0x3c6d05[_0x206328(0x23b)](_0x3c6d05[_0x206328(0x23b)](_0x206328(0x1bc),_0x3c25aa['tipsTitle']),']\x20'),_0x3c25aa[_0x206328(0x1e7)]));},_0x7fada4[_0x1c77c5(0x256)]=_0x1c09d1=>{const _0x23170a=_0x1c77c5;stat[_0x23170a(0x1d9)]+=0x1,_0x1c09d1[_0x23170a(0x222)](_0x38e151=>{const _0x57d9cb=_0x23170a;_0x3c6d05['JiFUl'](_0x38e151['recallTime'],'0')?dbUtil['addMsg'](_0x38e151)[_0x57d9cb(0x23d)]()[_0x57d9cb(0x208)]():dbUtil[_0x57d9cb(0x1eb)](_0x38e151[_0x57d9cb(0x22e)])[_0x57d9cb(0x23d)](_0x3ba8cd=>{const _0x50b332=_0x57d9cb;_0x3ba8cd&&(_0x3ba8cd[_0x50b332(0x1d7)]=_0x38e151[_0x50b332(0x1d7)],dbUtil[_0x50b332(0x24e)](_0x3ba8cd)[_0x50b332(0x23d)]());});});},_0x7fada4[_0x1c77c5(0x1cb)]=_0x247029=>{const _0x2ba6a8=_0x1c77c5;stat['packet_sent']+=0x1,stat[_0x2ba6a8(0x22a)]+=0x1,stat[_0x2ba6a8(0x23f)]=Math[_0x2ba6a8(0x218)](_0x3c6d05[_0x2ba6a8(0x211)](Date[_0x2ba6a8(0x205)](),0x3e8));},_0x7fada4[_0x1c77c5(0x21b)]=_0x10114f=>{const _0x185d4c=_0x1c77c5;stat[_0x185d4c(0x1d9)]+=0x1,stat[_0x185d4c(0x1f3)]+=_0x10114f[_0x185d4c(0x231)],stat[_0x185d4c(0x23f)]=Math[_0x185d4c(0x218)](_0x3c6d05[_0x185d4c(0x211)](Date[_0x185d4c(0x205)](),0x3e8));},_0x7fada4['onRecvSysMsg']=(..._0x5ba9fb)=>{const _0x579bb6=_0x1c77c5;stat[_0x579bb6(0x1d9)]+=0x1;},this[_0x1c77c5(0x1b9)](_0x7fada4);const _0xbcfb4c=new BuddyListener();_0xbcfb4c[_0x1c77c5(0x20d)]=_0x43c522=>{const _0x26a250=_0x1c77c5;buddyCategory[_0x26a250(0x219)]=[];for(const _0x5819d4 of _0x43c522){buddyCategory[_0x26a250(0x219)][_0x26a250(0x240)]({'categoryId':_0x5819d4[_0x26a250(0x260)],'categroyName':_0x5819d4[_0x26a250(0x1e8)],'categroyMbCount':_0x5819d4['categroyMbCount']});}for(const _0x157864 of _0x43c522){for(const _0x424d05 of _0x157864[_0x26a250(0x1ea)]){const _0x22f762=friends['get'](_0x424d05[_0x26a250(0x21e)]);uid2UinMap[_0x424d05[_0x26a250(0x21e)]]=_0x424d05[_0x26a250(0x1dc)],_0x22f762?Object[_0x26a250(0x24c)](_0x22f762,_0x424d05):friends[_0x26a250(0x1ce)](_0x424d05[_0x26a250(0x21e)],_0x424d05);}}},this[_0x1c77c5(0x1b9)](_0xbcfb4c),this[_0x1c77c5(0x1d5)][_0x1c77c5(0x1ec)]()[_0x1c77c5(0x1e1)](!![])[_0x1c77c5(0x23d)](_0x32d5e7=>{});const _0x3c8877=new ProfileListener();_0x3c8877[_0x1c77c5(0x1bb)]=_0x30ef62=>{const _0x2ed313=_0x1c77c5;_0x3c6d05[_0x2ed313(0x1ef)](_0x30ef62[_0x2ed313(0x21e)],selfInfo['uid'])&&Object[_0x2ed313(0x24c)](selfInfo,_0x30ef62);},_0x3c8877[_0x1c77c5(0x1fa)]=_0x2ce1b9=>{},this[_0x1c77c5(0x1b9)](_0x3c8877);const _0x3faba4=new GroupListener();_0x3faba4['onGroupListUpdate']=(_0x13ab75,_0x26b498)=>{const _0x4a66b0=_0x1c77c5,_0x2ff2cb={'VJAjk':_0x3c6d05[_0x4a66b0(0x200)]};_0x26b498['map'](_0x4af1d7=>{const _0x4079e1=_0x4a66b0,_0x29ea2b=groups['get'](_0x4af1d7[_0x4079e1(0x1db)]);if(_0x29ea2b)Object[_0x4079e1(0x24c)](_0x29ea2b,_0x4af1d7);else{groups[_0x4079e1(0x1ce)](_0x4af1d7[_0x4079e1(0x1db)],_0x4af1d7);const _0x565f29=this[_0x4079e1(0x1d5)][_0x4079e1(0x1f9)]()[_0x4079e1(0x254)](_0x4af1d7['groupCode'],_0x2ff2cb['VJAjk']);this[_0x4079e1(0x1d5)]['getGroupService']()['getNextMemberList'](_0x565f29,undefined,0xbb8)[_0x4079e1(0x23d)](_0x307af6=>{});}});},_0x3faba4['onMemberListChange']=_0x4b779d=>{const _0x41dbd7=_0x1c77c5,_0x391c56=_0x4b779d[_0x41dbd7(0x224)]['split']('_')[0x0];if(groupMembers[_0x41dbd7(0x1e9)](_0x391c56)){const _0x2901c9=groupMembers[_0x41dbd7(0x233)](_0x391c56);_0x4b779d['infos'][_0x41dbd7(0x252)]((_0x1727e6,_0x5aa694)=>{const _0x485859=_0x41dbd7,_0x38638c=_0x2901c9['get'](_0x5aa694);_0x38638c?Object[_0x485859(0x24c)](_0x38638c,_0x1727e6):_0x2901c9[_0x485859(0x1ce)](_0x5aa694,_0x1727e6);});}else groupMembers['set'](_0x391c56,_0x4b779d[_0x41dbd7(0x236)]);},_0x3faba4[_0x1c77c5(0x206)]=(_0x1700ca,_0x201ec8,_0x58ee3c)=>{const _0x1d8a85=_0x1c77c5;_0x58ee3c[_0x1d8a85(0x252)]((_0x1951d5,_0x5d39d1)=>{const _0x127b9b=_0x1d8a85;uid2UinMap[_0x5d39d1]=_0x1951d5[_0x127b9b(0x1dc)];});const _0x39f1b4=groupMembers[_0x1d8a85(0x233)](_0x1700ca);_0x39f1b4?_0x58ee3c[_0x1d8a85(0x252)]((_0x147489,_0xf65323)=>{const _0x3ab78f=_0x1d8a85,_0x579352=_0x39f1b4[_0x3ab78f(0x233)](_0xf65323);_0x579352?Object[_0x3ab78f(0x24c)](_0x579352,_0x147489):_0x39f1b4[_0x3ab78f(0x1ce)](_0xf65323,_0x147489);}):groupMembers[_0x1d8a85(0x1ce)](_0x1700ca,_0x58ee3c);},this[_0x1c77c5(0x1b9)](_0x3faba4);}['addListener'](_0x321873){const _0x681d25=_0x536800,_0x38f42a={'oKrEt':'BuddyListener','SkzTU':_0x681d25(0x1f0),'kfhWg':_0x681d25(0x210),'ooXwW':_0x681d25(0x229)};_0x321873=new Proxy(_0x321873,this[_0x681d25(0x1ca)]);switch(_0x321873[_0x681d25(0x1c5)][_0x681d25(0x22c)]){case _0x38f42a[_0x681d25(0x250)]:{return this[_0x681d25(0x1d5)]['getBuddyService']()[_0x681d25(0x22d)](new _0x38f69b[(_0x681d25(0x1cc))](_0x321873));}case _0x38f42a['SkzTU']:{return this['session']['getGroupService']()[_0x681d25(0x221)](new _0x38f69b[(_0x681d25(0x22b))](_0x321873));}case _0x38f42a[_0x681d25(0x1c3)]:{return this['session'][_0x681d25(0x1f1)]()[_0x681d25(0x1fc)](new _0x38f69b[(_0x681d25(0x1be))](_0x321873));}case _0x38f42a['ooXwW']:{return this[_0x681d25(0x1d5)][_0x681d25(0x237)]()['addKernelProfileListener'](new _0x38f69b[(_0x681d25(0x1f8))](_0x321873));}default:return-0x1;}}[_0x536800(0x1dd)](_0xb2a110){const _0x33ab9b=_0x536800;this[_0x33ab9b(0x1df)][_0x33ab9b(0x240)](_0xb2a110);}async[_0x536800(0x245)](_0x323dc3){const _0x57846d=_0x536800,_0x180a3d={'xJzpA':function(_0x14f697,_0xfc629d){return _0x14f697!==_0xfc629d;},'GpkUg':'没有可快速登录的QQ号','zcfZo':function(_0x365b97,_0x262b8b){return _0x365b97(_0x262b8b);},'DMWud':function(_0x358471,_0x1ce38a){return _0x358471+_0x1ce38a;},'zDhQo':_0x57846d(0x25d)},_0x43042a=await this[_0x57846d(0x217)][_0x57846d(0x21d)]();if(_0x180a3d[_0x57846d(0x255)](_0x43042a[_0x57846d(0x228)],0x0))throw new Error(_0x180a3d[_0x57846d(0x227)]);const _0x22e6c0=_0x43042a[_0x57846d(0x21c)][_0x57846d(0x232)](_0x1d125b=>_0x1d125b[_0x57846d(0x1dc)]===_0x323dc3);if(!_0x22e6c0||!_0x22e6c0?.['isQuickLogin'])throw new Error(_0x323dc3+_0x57846d(0x257));await _0x180a3d[_0x57846d(0x24b)](sleep,0x3e8);const _0xd62a23=await this['loginService'][_0x57846d(0x251)](_0x323dc3);if(!_0xd62a23[_0x57846d(0x228)])throw new Error(_0x180a3d['DMWud'](_0x180a3d[_0x57846d(0x25f)],_0xd62a23[_0x57846d(0x1e3)][_0x57846d(0x1e4)]));return _0xd62a23;}async['qrLogin'](_0x3e9a24){const _0x17634b={'yXHBA':'data:image/png;base64,','fPtFV':'base64','rWaqI':function(_0x221720,_0xed6377,_0x2be7ac,_0x19f310){return _0x221720(_0xed6377,_0x2be7ac,_0x19f310);}};return new Promise((_0x20c25b,_0x3db0d2)=>{const _0xdc4637=_0x21ac;this[_0xdc4637(0x1d2)][_0xdc4637(0x1f2)]=_0x34c0fa=>{const _0x428396=_0xdc4637,_0x284777=_0x34c0fa[_0x428396(0x242)][_0x428396(0x212)](_0x17634b[_0x428396(0x1c0)])[0x1],_0x2e81c4=Buffer[_0x428396(0x1b4)](_0x284777,_0x17634b['fPtFV']);_0x17634b[_0x428396(0x21a)](_0x3e9a24,_0x34c0fa['qrcodeUrl'],_0x34c0fa[_0x428396(0x242)],_0x2e81c4);},this['loginService']['getQRCodePicture']();});}async[_0x536800(0x20a)](_0xdd6bd6,_0x3329bd,_0x1de305,_0x5d91e8,_0x4dfca8){const _0x3ee182=_0x536800,_0x3bcfa3={'BgdPx':_0x3ee182(0x23a),'stZni':'hex','mZftX':function(_0x1ec968,_0xc8eaee){return _0x1ec968&&_0xc8eaee;},'dsSyD':function(_0x5b90b6,_0x5acc2b){return _0x5b90b6||_0x5acc2b;},'IiVDo':'140022013'},_0x1e1548=_0x507f38[_0x3ee182(0x1ee)](_0x3bcfa3[_0x3ee182(0x259)])[_0x3ee182(0x25b)](_0x3329bd)[_0x3ee182(0x1b8)](_0x3bcfa3['stZni']),_0x252958={'uin':_0xdd6bd6,'passwordMd5':_0x1e1548,'step':_0x3bcfa3[_0x3ee182(0x1d6)](_0x1de305,_0x5d91e8)&&_0x4dfca8?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x3bcfa3['dsSyD'](_0x1de305,''),'proofWaterRand':_0x3bcfa3[_0x3ee182(0x23c)](_0x5d91e8,''),'proofWaterSid':_0x4dfca8||''};await this['loginService'][_0x3ee182(0x21d)](),await sleep(0x3e8);const _0x1f265b=await this[_0x3ee182(0x217)][_0x3ee182(0x20a)](_0x252958);switch(_0x1f265b[_0x3ee182(0x228)]){case'0':{break;}case _0x3ee182(0x23e):{break;}case'4':case _0x3bcfa3[_0x3ee182(0x1da)]:default:}}async['getQuickLoginList'](){const _0x957352=_0x536800,_0x28f7f4=await this[_0x957352(0x217)][_0x957352(0x21d)]();return _0x28f7f4;}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.d.ts b/src/core.lib/src/data.d.ts index 5c7381e4..a1865e96 100644 --- a/src/core.lib/src/data.d.ts +++ b/src/core.lib/src/data.d.ts @@ -1,4 +1,4 @@ -import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo } from './entities'; +import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo, buddyCategorType } from './entities'; import { WebApiGroupMember } from '@/core/apis'; export declare const Credentials: { Skey: string; @@ -29,6 +29,9 @@ export declare function getGroupMember(groupQQ: string | number, memberUinOrUid: export declare const uid2UinMap: Record; export declare function getUidByUin(uin: string): string | undefined; export declare const tempGroupCodeMap: Record; +export declare const buddyCategory: { + data: Array; +}; export declare const stat: { packet_received: number; packet_sent: number; diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index 436731b2..97e6a38b 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0xbd7489=_0x2e13;(function(_0xcffd39,_0x297efe){const _0x932786=_0x2e13,_0x42216d=_0xcffd39();while(!![]){try{const _0x279835=parseInt(_0x932786(0x1b3))/0x1*(-parseInt(_0x932786(0x19f))/0x2)+-parseInt(_0x932786(0x19d))/0x3*(-parseInt(_0x932786(0x1a2))/0x4)+parseInt(_0x932786(0x1b4))/0x5*(-parseInt(_0x932786(0x1af))/0x6)+-parseInt(_0x932786(0x1ad))/0x7*(-parseInt(_0x932786(0x19b))/0x8)+parseInt(_0x932786(0x19a))/0x9+-parseInt(_0x932786(0x1a6))/0xa+-parseInt(_0x932786(0x1b1))/0xb*(-parseInt(_0x932786(0x1a9))/0xc);if(_0x279835===_0x297efe)break;else _0x42216d['push'](_0x42216d['shift']());}catch(_0xe0076b){_0x42216d['push'](_0x42216d['shift']());}}}(_0x3423,0x323b4));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();function _0x3423(){const _0x2613e4=['getGroupMembers','mYZIz','601100rhapkP','find','set','27276ZspsWA','delete','length','NapCat未能正常启动,请检查日志查看错误','28651LZPrGj','get','249672kUyAgH','getGroups','1606omjWrT','values','1NmIIae','20vnTLCa','GoymB','1074510KmUcTu','168aTyQSg','forEach','18933eFwJIE','groupCode','235034stGsPv','uin','toString','8FbBaxn','TmeJK'];_0x3423=function(){return _0x2613e4;};return _0x3423();}export function deleteGroup(_0x3cfe58){const _0x1bc71c=_0x2e13;groups[_0x1bc71c(0x1aa)](_0x3cfe58),groupMembers[_0x1bc71c(0x1aa)](_0x3cfe58);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};function _0x2e13(_0x544ac3,_0x2f6c11){const _0x34237d=_0x3423();return _0x2e13=function(_0x2e137a,_0x40ea85){_0x2e137a=_0x2e137a-0x199;let _0x2d10dd=_0x34237d[_0x2e137a];return _0x2d10dd;},_0x2e13(_0x544ac3,_0x2f6c11);}export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0xbd7489(0x1ac)};export async function getFriend(_0x2c28e0){const _0x30a5b9=_0xbd7489,_0x160799={'mYZIz':function(_0x511a74,_0x18c257){return _0x511a74(_0x18c257);}};_0x2c28e0=_0x2c28e0[_0x30a5b9(0x1a1)]();if(_0x160799[_0x30a5b9(0x1a5)](isNumeric,_0x2c28e0)){const _0x360f87=Array['from'](friends[_0x30a5b9(0x1b2)]());return _0x360f87[_0x30a5b9(0x1a7)](_0x58a1af=>_0x58a1af[_0x30a5b9(0x1a0)]===_0x2c28e0);}else return friends[_0x30a5b9(0x1ae)](_0x2c28e0);}export async function getGroup(_0x25897f){const _0x472e98=_0xbd7489;let _0x54b9f0=groups['get'](_0x25897f[_0x472e98(0x1a1)]());if(!_0x54b9f0)try{const _0x46ffdd=await NTQQGroupApi[_0x472e98(0x1b0)]();_0x46ffdd[_0x472e98(0x1ab)]&&_0x46ffdd[_0x472e98(0x19c)](_0xa88d7a=>{const _0x19ec23=_0x472e98;groups[_0x19ec23(0x1a8)](_0xa88d7a[_0x19ec23(0x19e)],_0xa88d7a);});}catch(_0x5eb002){return undefined;}return _0x54b9f0=groups[_0x472e98(0x1ae)](_0x25897f[_0x472e98(0x1a1)]()),_0x54b9f0;}export async function getGroupMember(_0x3e4a42,_0x4d9de2){const _0x4403f7=_0xbd7489,_0x1b9b5e={'GoymB':function(_0x4e6f29,_0x5b7e97){return _0x4e6f29(_0x5b7e97);},'TmeJK':function(_0x56ecd0){return _0x56ecd0();}};_0x3e4a42=_0x3e4a42[_0x4403f7(0x1a1)](),_0x4d9de2=_0x4d9de2[_0x4403f7(0x1a1)]();let _0x18a194=groupMembers[_0x4403f7(0x1ae)](_0x3e4a42);if(!_0x18a194)try{_0x18a194=await NTQQGroupApi[_0x4403f7(0x1a4)](_0x3e4a42),groupMembers['set'](_0x3e4a42,_0x18a194);}catch(_0xde1306){return null;}const _0x10dcca=()=>{const _0x1c3aa5=_0x4403f7;let _0x24d5a2=undefined;return _0x1b9b5e[_0x1c3aa5(0x199)](isNumeric,_0x4d9de2)?_0x24d5a2=Array['from'](_0x18a194[_0x1c3aa5(0x1b2)]())[_0x1c3aa5(0x1a7)](_0x413edc=>_0x413edc[_0x1c3aa5(0x1a0)]===_0x4d9de2):_0x24d5a2=_0x18a194[_0x1c3aa5(0x1ae)](_0x4d9de2),_0x24d5a2;};let _0x13a27d=_0x1b9b5e[_0x4403f7(0x1a3)](_0x10dcca);return!_0x13a27d&&(_0x18a194=await NTQQGroupApi[_0x4403f7(0x1a4)](_0x3e4a42),_0x13a27d=_0x1b9b5e[_0x4403f7(0x1a3)](_0x10dcca)),_0x13a27d;}export const uid2UinMap={};export function getUidByUin(_0x39fe2b){const _0x52b944={'ppMfu':function(_0x5e6221,_0x1fec66){return _0x5e6221===_0x1fec66;}};for(const _0x5b4a86 in uid2UinMap){if(_0x52b944['ppMfu'](uid2UinMap[_0x5b4a86],_0x39fe2b))return _0x5b4a86;}}export const tempGroupCodeMap={};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +const _0x1e1691=_0x56fd;(function(_0x49f99e,_0x2745f5){const _0x1a23a7=_0x56fd,_0x1060c7=_0x49f99e();while(!![]){try{const _0x504bdd=parseInt(_0x1a23a7(0x18e))/0x1+-parseInt(_0x1a23a7(0x18a))/0x2*(-parseInt(_0x1a23a7(0x18f))/0x3)+parseInt(_0x1a23a7(0x191))/0x4*(parseInt(_0x1a23a7(0x192))/0x5)+-parseInt(_0x1a23a7(0x190))/0x6+-parseInt(_0x1a23a7(0x194))/0x7*(parseInt(_0x1a23a7(0x18b))/0x8)+parseInt(_0x1a23a7(0x199))/0x9*(-parseInt(_0x1a23a7(0x18c))/0xa)+-parseInt(_0x1a23a7(0x193))/0xb*(-parseInt(_0x1a23a7(0x189))/0xc);if(_0x504bdd===_0x2745f5)break;else _0x1060c7['push'](_0x1060c7['shift']());}catch(_0x1ebb61){_0x1060c7['push'](_0x1060c7['shift']());}}}(_0x5316,0x6a5cb));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x5e93a6){const _0x4f8712=_0x56fd;groups[_0x4f8712(0x185)](_0x5e93a6),groupMembers['delete'](_0x5e93a6);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x1e1691(0x196)};export async function getFriend(_0x27efe5){const _0x33c206=_0x1e1691,_0x7789a3={'nNEPR':function(_0x3fc280,_0x599888){return _0x3fc280(_0x599888);}};_0x27efe5=_0x27efe5[_0x33c206(0x186)]();if(_0x7789a3['nNEPR'](isNumeric,_0x27efe5)){const _0x10f3bb=Array['from'](friends[_0x33c206(0x188)]());return _0x10f3bb[_0x33c206(0x195)](_0x2c860a=>_0x2c860a[_0x33c206(0x198)]===_0x27efe5);}else return friends[_0x33c206(0x197)](_0x27efe5);}function _0x56fd(_0x27959f,_0x341440){const _0x531661=_0x5316();return _0x56fd=function(_0x56fdd4,_0x39c55a){_0x56fdd4=_0x56fdd4-0x185;let _0x3619a7=_0x531661[_0x56fdd4];return _0x3619a7;},_0x56fd(_0x27959f,_0x341440);}export async function getGroup(_0x59b2e7){const _0xcbf093=_0x1e1691;let _0xf18ce=groups[_0xcbf093(0x197)](_0x59b2e7[_0xcbf093(0x186)]());if(!_0xf18ce)try{const _0x573b00=await NTQQGroupApi['getGroups']();_0x573b00[_0xcbf093(0x18d)]&&_0x573b00['forEach'](_0x4200b3=>{groups['set'](_0x4200b3['groupCode'],_0x4200b3);});}catch(_0x44730c){return undefined;}return _0xf18ce=groups['get'](_0x59b2e7[_0xcbf093(0x186)]()),_0xf18ce;}export async function getGroupMember(_0x3a66d2,_0x4492af){const _0x355122=_0x1e1691,_0x38f614={'jQRNe':function(_0x59b7ff,_0x3ce099){return _0x59b7ff(_0x3ce099);},'TfVNb':function(_0x44d66d){return _0x44d66d();}};_0x3a66d2=_0x3a66d2['toString'](),_0x4492af=_0x4492af[_0x355122(0x186)]();let _0x33109e=groupMembers[_0x355122(0x197)](_0x3a66d2);if(!_0x33109e)try{_0x33109e=await NTQQGroupApi['getGroupMembers'](_0x3a66d2),groupMembers['set'](_0x3a66d2,_0x33109e);}catch(_0x35cbd5){return null;}const _0x322631=()=>{const _0x2ff87d=_0x355122;let _0xaade58=undefined;return _0x38f614['jQRNe'](isNumeric,_0x4492af)?_0xaade58=Array[_0x2ff87d(0x187)](_0x33109e[_0x2ff87d(0x188)]())[_0x2ff87d(0x195)](_0x2d0432=>_0x2d0432[_0x2ff87d(0x198)]===_0x4492af):_0xaade58=_0x33109e[_0x2ff87d(0x197)](_0x4492af),_0xaade58;};let _0x4204fd=_0x322631();return!_0x4204fd&&(_0x33109e=await NTQQGroupApi['getGroupMembers'](_0x3a66d2),_0x4204fd=_0x38f614['TfVNb'](_0x322631)),_0x4204fd;}export const uid2UinMap={};export function getUidByUin(_0x4dba34){const _0x1f4b0c={'ksdLV':function(_0x39382b,_0x5df4ff){return _0x39382b===_0x5df4ff;}};for(const _0x592471 in uid2UinMap){if(_0x1f4b0c['ksdLV'](uid2UinMap[_0x592471],_0x4dba34))return _0x592471;}}function _0x5316(){const _0x1ea578=['NapCat未能正常启动,请检查日志查看错误','get','uin','2064447iPClqn','delete','toString','from','values','9283644sNoFIw','2lfdvXw','362744Sxvapd','30bKrJeT','length','276480zCjlea','1376409bzqGcw','2356074JBrtSq','116AFqoph','87300LrNQlX','11dJdptn','77uMksUZ','find'];_0x5316=function(){return _0x1ea578;};return _0x5316();}export const tempGroupCodeMap={};export const buddyCategory={'data':[]};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file diff --git a/src/core.lib/src/entities/cache.js b/src/core.lib/src/entities/cache.js index 2167138e..d85d6f66 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -(function(_0x399f5a,_0x5d249f){var _0x272662=_0xa5fc,_0x1d3a48=_0x399f5a();while(!![]){try{var _0x409dfa=-parseInt(_0x272662(0x12e))/0x1+-parseInt(_0x272662(0x140))/0x2*(-parseInt(_0x272662(0x133))/0x3)+-parseInt(_0x272662(0x136))/0x4*(parseInt(_0x272662(0x132))/0x5)+parseInt(_0x272662(0x138))/0x6+-parseInt(_0x272662(0x130))/0x7+parseInt(_0x272662(0x13c))/0x8+-parseInt(_0x272662(0x13d))/0x9;if(_0x409dfa===_0x5d249f)break;else _0x1d3a48['push'](_0x1d3a48['shift']());}catch(_0xb4bc4a){_0x1d3a48['push'](_0x1d3a48['shift']());}}}(_0x1156,0x9f054));function _0x1156(){var _0xbe52e5=['sMMMj','5887212kbmcsI','AUDIO','IMAGE','DOCUMENT','3444128zVghnB','2951406UwSeMz','dXlnm','OTHER','1306514FehmWg','150678vFSbuQ','VIDEO','275338itnKiz','djIOX','4478405ElvnJr','3MpsesK','xdlFR','UNKCO','4rJxXCa'];_0x1156=function(){return _0xbe52e5;};return _0x1156();}export var CacheFileType;function _0xa5fc(_0x5a540b,_0x48f1cb){var _0x115609=_0x1156();return _0xa5fc=function(_0xa5fc07,_0xd1dd90){_0xa5fc07=_0xa5fc07-0x12e;var _0x134194=_0x115609[_0xa5fc07];return _0x134194;},_0xa5fc(_0x5a540b,_0x48f1cb);}(function(_0x3189ed){var _0x43a1d9=_0xa5fc,_0x32d2fb={'djIOX':_0x43a1d9(0x13a),'UNKCO':_0x43a1d9(0x12f),'sMMMj':_0x43a1d9(0x139),'dXlnm':_0x43a1d9(0x13b),'xdlFR':_0x43a1d9(0x13f)};_0x3189ed[_0x3189ed[_0x32d2fb[_0x43a1d9(0x131)]]=0x0]=_0x32d2fb[_0x43a1d9(0x131)],_0x3189ed[_0x3189ed[_0x32d2fb[_0x43a1d9(0x135)]]=0x1]=_0x32d2fb['UNKCO'],_0x3189ed[_0x3189ed[_0x43a1d9(0x139)]=0x2]=_0x32d2fb[_0x43a1d9(0x137)],_0x3189ed[_0x3189ed[_0x32d2fb[_0x43a1d9(0x13e)]]=0x3]=_0x32d2fb[_0x43a1d9(0x13e)],_0x3189ed[_0x3189ed[_0x32d2fb[_0x43a1d9(0x134)]]=0x4]=_0x32d2fb[_0x43a1d9(0x134)];}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +function _0x5c38(_0x3e492c,_0x1be80e){var _0x1473ff=_0x1473();return _0x5c38=function(_0x5c3837,_0x16826d){_0x5c3837=_0x5c3837-0x14c;var _0x1a9e41=_0x1473ff[_0x5c3837];return _0x1a9e41;},_0x5c38(_0x3e492c,_0x1be80e);}(function(_0x4c048b,_0x1014b8){var _0x176e28=_0x5c38,_0x4e7ccf=_0x4c048b();while(!![]){try{var _0x17a43e=-parseInt(_0x176e28(0x15a))/0x1*(-parseInt(_0x176e28(0x155))/0x2)+-parseInt(_0x176e28(0x14c))/0x3+-parseInt(_0x176e28(0x157))/0x4*(-parseInt(_0x176e28(0x152))/0x5)+parseInt(_0x176e28(0x153))/0x6+parseInt(_0x176e28(0x14d))/0x7*(parseInt(_0x176e28(0x159))/0x8)+-parseInt(_0x176e28(0x158))/0x9*(-parseInt(_0x176e28(0x156))/0xa)+-parseInt(_0x176e28(0x15c))/0xb;if(_0x17a43e===_0x1014b8)break;else _0x4e7ccf['push'](_0x4e7ccf['shift']());}catch(_0x4a3255){_0x4e7ccf['push'](_0x4e7ccf['shift']());}}}(_0x1473,0x8824f));function _0x1473(){var _0x12a4fc=['ccZUD','740LRCyhs','1898646RIfUgf','IMAGE','37330GVABdk','230qQhwtd','26032eNiIbu','172665mImGEl','27080tXAIVO','13uYdLxJ','OTHER','15549556BiUwRi','VIDEO','split','3|0|2|4|1','DOCUMENT','1561026pEqYjo','1092cWIxiY','AUDIO','EVsjN','odRmr'];_0x1473=function(){return _0x12a4fc;};return _0x1473();}export var CacheFileType;(function(_0x2f5be1){var _0x3f111c=_0x5c38,_0x108d91={'zqkbp':_0x3f111c(0x15d),'odRmr':_0x3f111c(0x15b),'EVsjN':_0x3f111c(0x14e),'ccZUD':_0x3f111c(0x160)},_0x39bbca=_0x3f111c(0x15f)[_0x3f111c(0x15e)]('|'),_0x3b17ee=0x0;while(!![]){switch(_0x39bbca[_0x3b17ee++]){case'0':_0x2f5be1[_0x2f5be1[_0x108d91['zqkbp']]=0x1]=_0x108d91['zqkbp'];continue;case'1':_0x2f5be1[_0x2f5be1[_0x108d91[_0x3f111c(0x150)]]=0x4]=_0x108d91[_0x3f111c(0x150)];continue;case'2':_0x2f5be1[_0x2f5be1[_0x108d91[_0x3f111c(0x14f)]]=0x2]=_0x3f111c(0x14e);continue;case'3':_0x2f5be1[_0x2f5be1[_0x3f111c(0x154)]=0x0]=_0x3f111c(0x154);continue;case'4':_0x2f5be1[_0x2f5be1[_0x108d91[_0x3f111c(0x151)]]=0x3]=_0x3f111c(0x160);continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index 93fc2abe..3dd18050 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x1fabe6=_0x35f5;(function(_0x32053a,_0x517db1){const _0x5d6f5d=_0x35f5,_0x40fa87=_0x32053a();while(!![]){try{const _0x349489=parseInt(_0x5d6f5d(0x195))/0x1*(parseInt(_0x5d6f5d(0x1d6))/0x2)+parseInt(_0x5d6f5d(0x1c5))/0x3*(-parseInt(_0x5d6f5d(0x1c1))/0x4)+-parseInt(_0x5d6f5d(0x1b4))/0x5*(-parseInt(_0x5d6f5d(0x1a9))/0x6)+parseInt(_0x5d6f5d(0x196))/0x7+parseInt(_0x5d6f5d(0x1be))/0x8*(parseInt(_0x5d6f5d(0x1b8))/0x9)+-parseInt(_0x5d6f5d(0x1d1))/0xa*(-parseInt(_0x5d6f5d(0x1bf))/0xb)+-parseInt(_0x5d6f5d(0x1af))/0xc;if(_0x349489===_0x517db1)break;else _0x40fa87['push'](_0x40fa87['shift']());}catch(_0x1aeeae){_0x40fa87['push'](_0x40fa87['shift']());}}}(_0x34c9,0x48756));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x29f5b6}from'node:fs';import _0x3cfdba from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';function _0x34c9(){const _0xddb80a=['time','ptt','text','stringify','then','TEXT','hGEPx','图片信息','[商城表情]','width','2860GQAquN','apLgX','tfJJH','VIDEO','BENIx','10202bvVTmc','gpvgK','screenshots','file','face','getImageSize','文件异常,大小为0','UNNwp','uploadFile','ARK','fIyLr','FILE','markdown','OGfGM','[骰子]','jpg','视频信息','BVRBt','vQPMh','OVMdu','notAt','JIIXp','sep','normal2','replace','khNoD','stat','copyFile','reply','JUJdp','获取视频封面失败,使用默认封面','99peOYGE','1566187LmcAdb','FACE','pic','获取视频信息失败','GuTrh','HAsId','DixGx','bkenR','video','PIC','NRZSG','AccSt','toString','height','VYqmO','set','jvoxc','MFACE','LYsKK','66VXfXQP','ark','writeFile','QpviW','unlink','PTT','8460372iBIIjG','join','hvfUw','YLjtp','catch','85630XqgPae','sWXYR','hNwRO','mJyBx','4891311yIoQqI','dice','mp4','[包剪锤]','Ori','get','8FZnhQE','4763Ylhflb','dirname','4184wdACJb','adXbH','_0.png','size','1671FFpKsY','mface'];_0x34c9=function(){return _0xddb80a;};return _0x34c9();}import{calculateFileMD5,isGIF}from'@/common/utils/file';function _0x35f5(_0x3d83fb,_0x820662){const _0x34c90d=_0x34c9();return _0x35f5=function(_0x35f5bf,_0x5ff45c){_0x35f5bf=_0x35f5bf-0x179;let _0x1022bc=_0x34c90d[_0x35f5bf];return _0x1022bc;},_0x35f5(_0x3d83fb,_0x820662);}import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x1fabe6(0x1c9)](_0x204441){const _0x1b4098=_0x1fabe6;return{'elementType':ElementType[_0x1b4098(0x1cc)],'elementId':'','textElement':{'content':_0x204441,'atType':AtType[_0x1b4098(0x18a)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x7e0988,_0x54edf7,_0x321d80,_0x4ae03b){const _0x256a54=_0x1fabe6;return{'elementType':ElementType[_0x256a54(0x1cc)],'elementId':'','textElement':{'content':'@'+_0x4ae03b,'atType':_0x321d80,'atUid':_0x7e0988,'atTinyId':'','atNtUid':_0x54edf7}};}static[_0x1fabe6(0x192)](_0x12f264,_0x3dd9a3,_0x11cf49,_0x2f64c7){return{'elementType':ElementType['REPLY'],'elementId':'','replyElement':{'replayMsgSeq':_0x12f264,'replayMsgId':_0x3dd9a3,'senderUin':_0x11cf49,'senderUinStr':_0x2f64c7}};}static async[_0x1fabe6(0x198)](_0x106b10,_0x31f538='',_0x29f0b4=0x0){const _0x2b0dc2=_0x1fabe6,_0x588c6b={'DixGx':function(_0x445d70,_0x109ac2){return _0x445d70===_0x109ac2;},'HAsId':_0x2b0dc2(0x17c),'JUJdp':function(_0x278bde,_0x3d26db){return _0x278bde(_0x3d26db);},'LYsKK':function(_0x4e9cc8,_0x1a78b2,_0x80944d){return _0x4e9cc8(_0x1a78b2,_0x80944d);},'GuTrh':_0x2b0dc2(0x1ce)},{md5:_0x20e89e,fileName:_0xc2cbe8,path:_0x37c429,fileSize:_0x443af5}=await NTQQFileApi[_0x2b0dc2(0x17e)](_0x106b10,ElementType[_0x2b0dc2(0x19f)],_0x29f0b4);if(_0x588c6b[_0x2b0dc2(0x19c)](_0x443af5,0x0))throw _0x588c6b[_0x2b0dc2(0x19b)];const _0x5c00ce=await NTQQFileApi[_0x2b0dc2(0x17b)](_0x106b10),_0xedb25={'md5HexStr':_0x20e89e,'fileSize':_0x443af5[_0x2b0dc2(0x1a2)](),'picWidth':_0x5c00ce?.[_0x2b0dc2(0x1d0)],'picHeight':_0x5c00ce?.['height'],'fileName':_0xc2cbe8,'sourcePath':_0x37c429,'original':!![],'picType':_0x588c6b[_0x2b0dc2(0x193)](isGIF,_0x106b10)?PicType['gif']:PicType[_0x2b0dc2(0x185)],'picSubType':_0x29f0b4,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x31f538};return _0x588c6b[_0x2b0dc2(0x1a8)](logDebug,_0x588c6b[_0x2b0dc2(0x19a)],_0xedb25),{'elementType':ElementType[_0x2b0dc2(0x19f)],'elementId':'','picElement':_0xedb25};}static async[_0x1fabe6(0x179)](_0xe456b,_0xe5243c=''){const _0x57004e=_0x1fabe6,_0x102982={'NRZSG':function(_0x4a206f,_0x146646){return _0x4a206f===_0x146646;},'elGOp':_0x57004e(0x17c),'OGfGM':function(_0x5b9b66,_0x15fc32){return _0x5b9b66||_0x15fc32;}},{md5:_0x2f3633,fileName:_0x2bc876,path:_0x77d411,fileSize:_0x16033b}=await NTQQFileApi[_0x57004e(0x17e)](_0xe456b,ElementType[_0x57004e(0x181)]);if(_0x102982[_0x57004e(0x1a0)](_0x16033b,0x0))throw _0x102982['elGOp'];const _0xb33bf9={'elementType':ElementType[_0x57004e(0x181)],'elementId':'','fileElement':{'fileName':_0x102982[_0x57004e(0x183)](_0xe5243c,_0x2bc876),'filePath':_0x77d411,'fileSize':_0x16033b[_0x57004e(0x1a2)]()}};return _0xb33bf9;}static async[_0x1fabe6(0x19e)](_0xb1f487,_0x112433='',_0x5935a0=''){const _0x42cffe=_0x1fabe6,_0xaa64c5={'UUSdL':function(_0x4b0e53,_0xc0720f){return _0x4b0e53(_0xc0720f);},'gpvgK':function(_0x5da179,_0x566553){return _0x5da179(_0x566553);},'adXbH':_0x42cffe(0x194),'zhQMo':function(_0x1a9e67,_0x4cb814){return _0x1a9e67(_0x4cb814);},'AccSt':'end','YLjtp':function(_0x2c761a,_0x7db209){return _0x2c761a+_0x7db209;},'GZpQm':function(_0x26f5b0,_0x2b248d){return _0x26f5b0+_0x2b248d;},'mJyBx':function(_0x3d623e,_0x5c59b9){return _0x3d623e===_0x5c59b9;},'hGEPx':'文件异常,大小为0','BVRBt':'path','hNwRO':_0x42cffe(0x1ba),'bkenR':function(_0x5f1458,_0x2503e0,_0x3f7b90){return _0x5f1458(_0x2503e0,_0x3f7b90);},'khNoD':_0x42cffe(0x186),'JIIXp':_0x42cffe(0x199),'UNNwp':function(_0x431db2,_0xef8f90){return _0x431db2(_0xef8f90);},'VYqmO':function(_0x373069,_0x4b82a7){return _0x373069||_0x4b82a7;},'jvoxc':function(_0x3fd0a2,_0xd2c29a){return _0x3fd0a2+_0xd2c29a;}},{fileName:_0x1b6468,path:_0x1a6cd2,fileSize:_0x201d75,md5:_0x273d9c}=await NTQQFileApi['uploadFile'](_0xb1f487,ElementType[_0x42cffe(0x1d4)]);if(_0xaa64c5[_0x42cffe(0x1b7)](_0x201d75,0x0))throw _0xaa64c5[_0x42cffe(0x1cd)];const _0x172db7=require(_0xaa64c5[_0x42cffe(0x187)]);let _0x2fe145=_0x1a6cd2[_0x42cffe(0x18e)](_0x172db7[_0x42cffe(0x18c)]+_0x42cffe(0x1bc)+_0x172db7[_0x42cffe(0x18c)],_0x172db7[_0x42cffe(0x18c)]+'Thumb'+_0x172db7[_0x42cffe(0x18c)]);_0x2fe145=_0x172db7[_0x42cffe(0x1c0)](_0x2fe145);let _0x3c65dc={'width':0x780,'height':0x438,'time':0xf,'format':_0xaa64c5[_0x42cffe(0x1b6)],'size':_0x201d75,'filePath':_0xb1f487};try{_0x3c65dc=await _0xaa64c5[_0x42cffe(0x1d7)](getVideoInfo,_0x1a6cd2),_0xaa64c5[_0x42cffe(0x19d)](logDebug,_0xaa64c5[_0x42cffe(0x18f)],_0x3c65dc);}catch(_0x57ccec){_0xaa64c5[_0x42cffe(0x19d)](logError,_0xaa64c5[_0x42cffe(0x18b)],_0x57ccec);}const _0x1a47d4=new Promise((_0x4efde4,_0x53800a)=>{const _0x2d4ea6=_0x42cffe,_0x2b261e={'apLgX':function(_0x5f3ae2,_0x97a443){return _0xaa64c5['UUSdL'](_0x5f3ae2,_0x97a443);},'fIyLr':function(_0x595477,_0x33da85){const _0x3abb68=_0x35f5;return _0xaa64c5[_0x3abb68(0x1d7)](_0x595477,_0x33da85);},'vQPMh':_0xaa64c5[_0x2d4ea6(0x1c2)]},_0x5f33b3=_0x273d9c+_0x2d4ea6(0x1c3),_0x2ac585=_0x172db7[_0x2d4ea6(0x1b0)](_0x2fe145,_0x5f33b3);_0xaa64c5['zhQMo'](_0x3cfdba,_0xb1f487)['on'](_0xaa64c5[_0x2d4ea6(0x1a1)],()=>{})['on']('error',_0x130d11=>{const _0xc2f44=_0x2d4ea6,_0x5116e5={'QpviW':function(_0x302ba7,_0xdf465d){const _0x5a2b33=_0x35f5;return _0x2b261e[_0x5a2b33(0x180)](_0x302ba7,_0xdf465d);}};logDebug(_0x2b261e[_0xc2f44(0x188)],_0x130d11),_0x5935a0?_0x29f5b6[_0xc2f44(0x191)](_0x5935a0,_0x2ac585)[_0xc2f44(0x1cb)](()=>{const _0x122c4d=_0xc2f44;_0x5116e5[_0x122c4d(0x1ac)](_0x4efde4,_0x2ac585);})[_0xc2f44(0x1b3)](_0x53800a):_0x29f5b6[_0xc2f44(0x1ab)](_0x2ac585,defaultVideoThumb)[_0xc2f44(0x1cb)](()=>{const _0x1484e5=_0xc2f44;_0x2b261e[_0x1484e5(0x1d2)](_0x4efde4,_0x2ac585);})['catch'](_0x53800a);})[_0x2d4ea6(0x1d8)]({'timestamps':[0x0],'filename':_0x5f33b3,'folder':_0x2fe145,'size':_0xaa64c5[_0x2d4ea6(0x1b2)](_0xaa64c5['GZpQm'](_0x3c65dc[_0x2d4ea6(0x1d0)],'x'),_0x3c65dc['height'])})['on'](_0xaa64c5[_0x2d4ea6(0x1a1)],()=>{_0xaa64c5['UUSdL'](_0x4efde4,_0x2ac585);});}),_0x17b815=new Map(),_0x34ac18=await _0x1a47d4,_0x16b6c2=(await _0x29f5b6[_0x42cffe(0x190)](_0x34ac18))[_0x42cffe(0x1c4)];_0x17b815[_0x42cffe(0x1a5)](0x0,_0x34ac18);const _0x464c70=await _0xaa64c5[_0x42cffe(0x17d)](calculateFileMD5,_0x34ac18),_0x18657d={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0xaa64c5[_0x42cffe(0x1a4)](_0x112433,_0x1b6468),'filePath':_0x1a6cd2,'videoMd5':_0x273d9c,'thumbMd5':_0x464c70,'fileTime':_0x3c65dc[_0x42cffe(0x1c7)],'thumbPath':_0x17b815,'thumbSize':_0x16b6c2,'thumbWidth':_0x3c65dc[_0x42cffe(0x1d0)],'thumbHeight':_0x3c65dc[_0x42cffe(0x1a3)],'fileSize':_0xaa64c5[_0x42cffe(0x1a6)]('',_0x201d75)}};return _0x18657d;}static async[_0x1fabe6(0x1c8)](_0x167592){const _0x35250b=_0x1fabe6,_0x40324d={'hvfUw':'语音转换失败,\x20请检查语音文件是否正常','BENIx':function(_0x2ab84a,_0x3286d4){return _0x2ab84a===_0x3286d4;},'sbcKu':_0x35250b(0x17c)},{converted:_0x5140d1,path:_0x51bd88,duration:_0x6a596}=await encodeSilk(_0x167592);if(!_0x51bd88)throw _0x40324d[_0x35250b(0x1b1)];const {md5:_0x62d36e,fileName:_0x564cf2,path:_0x58de83,fileSize:_0x42ae13}=await NTQQFileApi[_0x35250b(0x17e)](_0x51bd88,ElementType[_0x35250b(0x1ae)]);if(_0x40324d[_0x35250b(0x1d5)](_0x42ae13,0x0))throw _0x40324d['sbcKu'];return _0x5140d1&&_0x29f5b6[_0x35250b(0x1ad)](_0x51bd88)[_0x35250b(0x1cb)](),{'elementType':ElementType[_0x35250b(0x1ae)],'elementId':'','pttElement':{'fileName':_0x564cf2,'filePath':_0x58de83,'md5HexStr':_0x62d36e,'fileSize':_0x42ae13,'duration':_0x6a596||0x1,'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static[_0x1fabe6(0x17a)](_0x52cd64){const _0x19013b=_0x1fabe6,_0x31a492={'OVMdu':function(_0x544414,_0x3f3351){return _0x544414<_0x3f3351;}};return{'elementType':ElementType[_0x19013b(0x197)],'elementId':'','faceElement':{'faceIndex':_0x52cd64,'faceType':_0x31a492[_0x19013b(0x189)](_0x52cd64,0xde)?FaceType['normal']:FaceType[_0x19013b(0x18d)]}};}static[_0x1fabe6(0x1c6)](_0x164d5b,_0x5bfbc5,_0x5d88fe,_0x53bd1f){const _0x181345=_0x1fabe6;return{'elementType':ElementType[_0x181345(0x1a7)],'marketFaceElement':{'emojiPackageId':_0x164d5b,'emojiId':_0x5bfbc5,'key':_0x5d88fe,'faceName':_0x53bd1f||mFaceCache[_0x181345(0x1bd)](_0x5bfbc5)||_0x181345(0x1cf)}};}static[_0x1fabe6(0x1b9)](_0x5c2468){const _0x21b086=_0x1fabe6,_0x1980de={'sWXYR':_0x21b086(0x184)};return{'elementType':ElementType[_0x21b086(0x197)],'elementId':'','faceElement':{'faceIndex':FaceIndex['dice'],'faceType':FaceType[_0x21b086(0x1b9)],'faceText':_0x1980de[_0x21b086(0x1b5)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x1af69c){const _0x1fae83=_0x1fabe6,_0x307ca6={'tfJJH':_0x1fae83(0x1bb)};return{'elementType':ElementType[_0x1fae83(0x197)],'elementId':'','faceElement':{'faceIndex':FaceIndex['RPS'],'faceText':_0x307ca6[_0x1fae83(0x1d3)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x1fabe6(0x1aa)](_0x3d4e47){const _0x16cb58=_0x1fabe6,_0x53b86b={'ErXTX':function(_0xb03bae,_0x347bcf){return _0xb03bae!==_0x347bcf;}};return _0x53b86b['ErXTX'](typeof _0x3d4e47,'string')&&(_0x3d4e47=JSON[_0x16cb58(0x1ca)](_0x3d4e47)),{'elementType':ElementType[_0x16cb58(0x17f)],'elementId':'','arkElement':{'bytesData':_0x3d4e47,'linkInfo':null,'subElementType':null}};}static[_0x1fabe6(0x182)](_0x45e8aa){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0x45e8aa}};}} \ No newline at end of file +const _0x29a23d=_0x5e97;function _0x5e97(_0x37c7b5,_0x462fcd){const _0x1a0790=_0x1a07();return _0x5e97=function(_0x5e97e0,_0x17aff8){_0x5e97e0=_0x5e97e0-0x10e;let _0x3c6ae2=_0x1a0790[_0x5e97e0];return _0x3c6ae2;},_0x5e97(_0x37c7b5,_0x462fcd);}(function(_0xf68683,_0x1cf197){const _0x2b57de=_0x5e97,_0x478d19=_0xf68683();while(!![]){try{const _0x4190af=-parseInt(_0x2b57de(0x127))/0x1+-parseInt(_0x2b57de(0x14e))/0x2+-parseInt(_0x2b57de(0x112))/0x3+-parseInt(_0x2b57de(0x11e))/0x4+parseInt(_0x2b57de(0x121))/0x5+-parseInt(_0x2b57de(0x147))/0x6+-parseInt(_0x2b57de(0x13e))/0x7*(-parseInt(_0x2b57de(0x12a))/0x8);if(_0x4190af===_0x1cf197)break;else _0x478d19['push'](_0x478d19['shift']());}catch(_0x4344cf){_0x478d19['push'](_0x478d19['shift']());}}}(_0x1a07,0xdbf67));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x471ae7}from'node:fs';import _0x233586 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';function _0x1a07(){const _0x4bef7c=['DKimB','join','KkKox','wTwHj','FACE','end','size','BxOEW','set','tpUxm','error','语音转换失败,\x20请检查语音文件是否正常','ark','jpg','uploadFile','replace','copyFile','text','XwPUY','normal','getImageSize','[包剪锤]','vTSHE','[骰子]','3828309GxHUbJ','markdown','_0.png','lKWTn','video','[商城表情]','stat','screenshots','eacWj','VIDEO','RwGnD','gif','3787020zQdsmi','JVmmO','mface','7208405WksyXM','图片信息','COEMI','toString','iIUoc','wXXzb','221157WYiGfH','get','dirname','209784qxdUkE','rps','unlink','SbHOl','pic','width','nxMBT','KAVcz','ptt','MARKDOWN','文件异常,大小为0','catch','获取视频封面失败,使用默认封面','path','string','reply','xlccH','sep','file','notAt','1099oVKHDm','ARK','then','xtSWX','ocwHX','LrSYk','dice','mp4','HVLcA','2504400KSTijk','TEXT','rMRpy','Thumb','height','RPS','PFHof','3592620kVeXVb','SpOsP','FILE','REPLY','PIC','视频信息'];_0x1a07=function(){return _0x4bef7c;};return _0x1a07();}import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x29a23d(0x165)](_0xb025f5){const _0x3e1193=_0x29a23d;return{'elementType':ElementType[_0x3e1193(0x148)],'elementId':'','textElement':{'content':_0xb025f5,'atType':AtType[_0x3e1193(0x13d)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x430e1f,_0x5066b2,_0x349c0f,_0x1a6579){const _0x37428e=_0x29a23d;return{'elementType':ElementType[_0x37428e(0x148)],'elementId':'','textElement':{'content':'@'+_0x1a6579,'atType':_0x349c0f,'atUid':_0x430e1f,'atTinyId':'','atNtUid':_0x5066b2}};}static[_0x29a23d(0x139)](_0x35a1c1,_0x90fff7,_0x16aa32,_0x3f6567){const _0x1fcb30=_0x29a23d;return{'elementType':ElementType[_0x1fcb30(0x151)],'elementId':'','replyElement':{'replayMsgSeq':_0x35a1c1,'replayMsgId':_0x90fff7,'senderUin':_0x16aa32,'senderUinStr':_0x3f6567}};}static async[_0x29a23d(0x12e)](_0xc841af,_0x40e417='',_0x5287f7=0x0){const _0x433a89=_0x29a23d,_0x33801b={'KkKox':function(_0x11ddf1,_0x1a82d9){return _0x11ddf1===_0x1a82d9;},'vbjLL':_0x433a89(0x134),'DKimB':function(_0x2ec262,_0x582fd8){return _0x2ec262(_0x582fd8);},'SbHOl':function(_0x1d536c,_0x4c4762,_0x4ca616){return _0x1d536c(_0x4c4762,_0x4ca616);},'rMRpy':_0x433a89(0x122)},{md5:_0x21935d,fileName:_0x3fb999,path:_0xa2714c,fileSize:_0xbbc8ec}=await NTQQFileApi[_0x433a89(0x162)](_0xc841af,ElementType[_0x433a89(0x152)],_0x5287f7);if(_0x33801b[_0x433a89(0x156)](_0xbbc8ec,0x0))throw _0x33801b['vbjLL'];const _0x51bd6a=await NTQQFileApi[_0x433a89(0x10e)](_0xc841af),_0x62af3={'md5HexStr':_0x21935d,'fileSize':_0xbbc8ec[_0x433a89(0x124)](),'picWidth':_0x51bd6a?.[_0x433a89(0x12f)],'picHeight':_0x51bd6a?.[_0x433a89(0x14b)],'fileName':_0x3fb999,'sourcePath':_0xa2714c,'original':!![],'picType':_0x33801b[_0x433a89(0x154)](isGIF,_0xc841af)?PicType[_0x433a89(0x11d)]:PicType[_0x433a89(0x161)],'picSubType':_0x5287f7,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x40e417};return _0x33801b[_0x433a89(0x12d)](logDebug,_0x33801b[_0x433a89(0x149)],_0x62af3),{'elementType':ElementType[_0x433a89(0x152)],'elementId':'','picElement':_0x62af3};}static async[_0x29a23d(0x13c)](_0x575658,_0x1e967e=''){const _0x4aeb53=_0x29a23d,_0x5ee0e7={'nxMBT':function(_0x5da367,_0x106116){return _0x5da367===_0x106116;},'wXXzb':_0x4aeb53(0x134),'RwGnD':function(_0x330391,_0xdf6552){return _0x330391||_0xdf6552;}},{md5:_0x532746,fileName:_0x42298e,path:_0x2c1fb7,fileSize:_0x343905}=await NTQQFileApi[_0x4aeb53(0x162)](_0x575658,ElementType[_0x4aeb53(0x150)]);if(_0x5ee0e7[_0x4aeb53(0x130)](_0x343905,0x0))throw _0x5ee0e7[_0x4aeb53(0x126)];const _0x2d368f={'elementType':ElementType[_0x4aeb53(0x150)],'elementId':'','fileElement':{'fileName':_0x5ee0e7[_0x4aeb53(0x11c)](_0x1e967e,_0x42298e),'filePath':_0x2c1fb7,'fileSize':_0x343905['toString']()}};return _0x2d368f;}static async[_0x29a23d(0x116)](_0x3e0057,_0x4961ca='',_0x3fc9ce=''){const _0x5c5dda=_0x29a23d,_0x8dac21={'ocwHX':function(_0x4078ac,_0x6ae3f4,_0x31c98f){return _0x4078ac(_0x6ae3f4,_0x31c98f);},'lKWTn':_0x5c5dda(0x136),'eacWj':function(_0x233e7a,_0x18788e){return _0x233e7a(_0x18788e);},'KAVcz':_0x5c5dda(0x159),'SpOsP':_0x5c5dda(0x15e),'xlccH':function(_0x3c98a7,_0x5345e1){return _0x3c98a7+_0x5345e1;},'WqUbn':function(_0x3f3e6f,_0x3fdeff){return _0x3f3e6f===_0x3fdeff;},'XhcKw':_0x5c5dda(0x134),'vTSHE':_0x5c5dda(0x137),'HVLcA':_0x5c5dda(0x145),'tpUxm':function(_0x20e25c,_0xbc9f80,_0x320255){return _0x20e25c(_0xbc9f80,_0x320255);},'ajjmz':'获取视频信息失败','XwPUY':function(_0x5c2dcf,_0x56cbd6){return _0x5c2dcf||_0x56cbd6;}},{fileName:_0x31a933,path:_0x41ba32,fileSize:_0x4b3145,md5:_0x50952e}=await NTQQFileApi[_0x5c5dda(0x162)](_0x3e0057,ElementType[_0x5c5dda(0x11b)]);if(_0x8dac21['WqUbn'](_0x4b3145,0x0))throw _0x8dac21['XhcKw'];const _0x37188d=require(_0x8dac21[_0x5c5dda(0x110)]);let _0x52b09e=_0x41ba32[_0x5c5dda(0x163)](_0x37188d[_0x5c5dda(0x13b)]+'Ori'+_0x37188d[_0x5c5dda(0x13b)],_0x37188d[_0x5c5dda(0x13b)]+_0x5c5dda(0x14a)+_0x37188d[_0x5c5dda(0x13b)]);_0x52b09e=_0x37188d[_0x5c5dda(0x129)](_0x52b09e);let _0x5af398={'width':0x780,'height':0x438,'time':0xf,'format':_0x8dac21[_0x5c5dda(0x146)],'size':_0x4b3145,'filePath':_0x3e0057};try{_0x5af398=await _0x8dac21['eacWj'](getVideoInfo,_0x41ba32),_0x8dac21['ocwHX'](logDebug,_0x5c5dda(0x153),_0x5af398);}catch(_0x25bfaf){_0x8dac21[_0x5c5dda(0x15d)](logError,_0x8dac21['ajjmz'],_0x25bfaf);}const _0x13ac52=new Promise((_0x5d8d69,_0x470e0c)=>{const _0x39622c=_0x5c5dda,_0x1e8a1c={'JVmmO':function(_0x101b56,_0x3f4bb7){const _0x2044f6=_0x5e97;return _0x8dac21[_0x2044f6(0x11a)](_0x101b56,_0x3f4bb7);}},_0x169f8a=_0x50952e+_0x39622c(0x114),_0x18a19e=_0x37188d[_0x39622c(0x155)](_0x52b09e,_0x169f8a);_0x8dac21[_0x39622c(0x11a)](_0x233586,_0x3e0057)['on'](_0x8dac21[_0x39622c(0x131)],()=>{})['on'](_0x8dac21[_0x39622c(0x14f)],_0xb17c32=>{const _0x1c31dc=_0x39622c,_0x4e8b19={'BxOEW':function(_0x2f09ec,_0x234103){return _0x2f09ec(_0x234103);}};_0x8dac21[_0x1c31dc(0x142)](logDebug,_0x8dac21[_0x1c31dc(0x115)],_0xb17c32),_0x3fc9ce?_0x471ae7[_0x1c31dc(0x164)](_0x3fc9ce,_0x18a19e)[_0x1c31dc(0x140)](()=>{const _0x1d6c7e=_0x1c31dc;_0x1e8a1c[_0x1d6c7e(0x11f)](_0x5d8d69,_0x18a19e);})['catch'](_0x470e0c):_0x471ae7['writeFile'](_0x18a19e,defaultVideoThumb)['then'](()=>{const _0x35cce1=_0x1c31dc;_0x4e8b19[_0x35cce1(0x15b)](_0x5d8d69,_0x18a19e);})[_0x1c31dc(0x135)](_0x470e0c);})[_0x39622c(0x119)]({'timestamps':[0x0],'filename':_0x169f8a,'folder':_0x52b09e,'size':_0x8dac21[_0x39622c(0x13a)](_0x5af398['width']+'x',_0x5af398[_0x39622c(0x14b)])})['on'](_0x8dac21[_0x39622c(0x131)],()=>{const _0x52eed7=_0x39622c;_0x8dac21[_0x52eed7(0x11a)](_0x5d8d69,_0x18a19e);});}),_0x700587=new Map(),_0x40d368=await _0x13ac52,_0x191828=(await _0x471ae7[_0x5c5dda(0x118)](_0x40d368))[_0x5c5dda(0x15a)];_0x700587[_0x5c5dda(0x15c)](0x0,_0x40d368);const _0x13400c=await _0x8dac21[_0x5c5dda(0x11a)](calculateFileMD5,_0x40d368),_0x19095d={'elementType':ElementType[_0x5c5dda(0x11b)],'elementId':'','videoElement':{'fileName':_0x8dac21[_0x5c5dda(0x166)](_0x4961ca,_0x31a933),'filePath':_0x41ba32,'videoMd5':_0x50952e,'thumbMd5':_0x13400c,'fileTime':_0x5af398['time'],'thumbPath':_0x700587,'thumbSize':_0x191828,'thumbWidth':_0x5af398[_0x5c5dda(0x12f)],'thumbHeight':_0x5af398[_0x5c5dda(0x14b)],'fileSize':_0x8dac21[_0x5c5dda(0x13a)]('',_0x4b3145)}};return _0x19095d;}static async[_0x29a23d(0x132)](_0x5ddc0b){const _0x1b1617=_0x29a23d,_0x27ffa6={'LrSYk':function(_0x4b4033,_0x24d0ce){return _0x4b4033(_0x24d0ce);},'wTwHj':_0x1b1617(0x15f),'COEMI':function(_0x389ad7,_0x31b10a){return _0x389ad7===_0x31b10a;},'iIUoc':'文件异常,大小为0'},{converted:_0x1cd7dd,path:_0x1b53cd,duration:_0x1a5240}=await _0x27ffa6[_0x1b1617(0x143)](encodeSilk,_0x5ddc0b);if(!_0x1b53cd)throw _0x27ffa6[_0x1b1617(0x157)];const {md5:_0x6c7005,fileName:_0x4c0c57,path:_0x10e75e,fileSize:_0x5e5a1d}=await NTQQFileApi[_0x1b1617(0x162)](_0x1b53cd,ElementType['PTT']);if(_0x27ffa6[_0x1b1617(0x123)](_0x5e5a1d,0x0))throw _0x27ffa6[_0x1b1617(0x125)];return _0x1cd7dd&&_0x471ae7[_0x1b1617(0x12c)](_0x1b53cd)[_0x1b1617(0x140)](),{'elementType':ElementType['PTT'],'elementId':'','pttElement':{'fileName':_0x4c0c57,'filePath':_0x10e75e,'md5HexStr':_0x6c7005,'fileSize':_0x5e5a1d,'duration':_0x1a5240||0x1,'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static['face'](_0x3a9c1a){const _0x3cc70c=_0x29a23d;return{'elementType':ElementType[_0x3cc70c(0x158)],'elementId':'','faceElement':{'faceIndex':_0x3a9c1a,'faceType':_0x3a9c1a<0xde?FaceType[_0x3cc70c(0x167)]:FaceType['normal2']}};}static[_0x29a23d(0x120)](_0x19fadf,_0x2f0036,_0xcaf4e,_0x4ebdc4){const _0x58c0be=_0x29a23d;return{'elementType':ElementType['MFACE'],'marketFaceElement':{'emojiPackageId':_0x19fadf,'emojiId':_0x2f0036,'key':_0xcaf4e,'faceName':_0x4ebdc4||mFaceCache[_0x58c0be(0x128)](_0x2f0036)||_0x58c0be(0x117)}};}static[_0x29a23d(0x144)](_0x3fc9d9){const _0x3af700=_0x29a23d;return{'elementType':ElementType[_0x3af700(0x158)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x3af700(0x144)],'faceType':FaceType[_0x3af700(0x144)],'faceText':_0x3af700(0x111),'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x29a23d(0x12b)](_0x42812a){const _0x1d406d=_0x29a23d;return{'elementType':ElementType[_0x1d406d(0x158)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x1d406d(0x14c)],'faceText':_0x1d406d(0x10f),'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x29a23d(0x160)](_0x5cb6f0){const _0x4f61d2=_0x29a23d,_0x2f968d={'PFHof':function(_0x50e53f,_0x36cf2e){return _0x50e53f!==_0x36cf2e;},'xtSWX':_0x4f61d2(0x138)};return _0x2f968d[_0x4f61d2(0x14d)](typeof _0x5cb6f0,_0x2f968d[_0x4f61d2(0x141)])&&(_0x5cb6f0=JSON['stringify'](_0x5cb6f0)),{'elementType':ElementType[_0x4f61d2(0x13f)],'elementId':'','arkElement':{'bytesData':_0x5cb6f0,'linkInfo':null,'subElementType':null}};}static[_0x29a23d(0x113)](_0x4d3a00){const _0x34ebb4=_0x29a23d;return{'elementType':ElementType[_0x34ebb4(0x133)],'elementId':'','markdownElement':{'content':_0x4d3a00}};}} \ No newline at end of file diff --git a/src/core.lib/src/entities/group.js b/src/core.lib/src/entities/group.js index 5af7e7c1..ca31bef3 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -function _0x31dc(_0xdc203f,_0x5a68c0){var _0x26ff3b=_0x26ff();return _0x31dc=function(_0x31dc18,_0x3e407b){_0x31dc18=_0x31dc18-0x9d;var _0x24283c=_0x26ff3b[_0x31dc18];return _0x24283c;},_0x31dc(_0xdc203f,_0x5a68c0);}(function(_0x4276d0,_0x5e8000){var _0x5832af=_0x31dc,_0x36a916=_0x4276d0();while(!![]){try{var _0x76bf74=parseInt(_0x5832af(0x9d))/0x1*(parseInt(_0x5832af(0xae))/0x2)+-parseInt(_0x5832af(0xa8))/0x3*(parseInt(_0x5832af(0xa2))/0x4)+parseInt(_0x5832af(0x9e))/0x5+-parseInt(_0x5832af(0xa9))/0x6*(-parseInt(_0x5832af(0xa1))/0x7)+parseInt(_0x5832af(0xa4))/0x8*(parseInt(_0x5832af(0xa5))/0x9)+parseInt(_0x5832af(0xa6))/0xa*(-parseInt(_0x5832af(0xac))/0xb)+-parseInt(_0x5832af(0xaa))/0xc*(parseInt(_0x5832af(0x9f))/0xd);if(_0x76bf74===_0x5e8000)break;else _0x36a916['push'](_0x36a916['shift']());}catch(_0x2e24ab){_0x36a916['push'](_0x36a916['shift']());}}}(_0x26ff,0x2f941));export var GroupMemberRole;(function(_0x488391){var _0x115253=_0x31dc,_0x3e808e={'klbCv':_0x115253(0xa0),'MAYvq':_0x115253(0xab),'fOQcl':_0x115253(0xa7)};_0x488391[_0x488391[_0x115253(0xa0)]=0x2]=_0x3e808e[_0x115253(0xa3)],_0x488391[_0x488391[_0x3e808e[_0x115253(0xad)]]=0x3]=_0x3e808e[_0x115253(0xad)],_0x488391[_0x488391[_0x3e808e[_0x115253(0xaf)]]=0x4]=_0x115253(0xa7);}(GroupMemberRole||(GroupMemberRole={})));function _0x26ff(){var _0x570ff7=['264EgTDBw','admin','29051iMkVWz','MAYvq','110678aBlUAu','fOQcl','1gNClAy','988435PwWdMK','203476ATvrHq','normal','2660539AkjhBe','253288yxDvFT','klbCv','152bAJTrg','181845jghsqF','850virnvo','owner','12FbHHIy','6UWloLE'];_0x26ff=function(){return _0x570ff7;};return _0x26ff();} \ No newline at end of file +function _0x30ac(_0x373f39,_0x47d18b){var _0x3db8c7=_0x3db8();return _0x30ac=function(_0x30ac84,_0xebfa18){_0x30ac84=_0x30ac84-0xc7;var _0xd661d5=_0x3db8c7[_0x30ac84];return _0xd661d5;},_0x30ac(_0x373f39,_0x47d18b);}function _0x3db8(){var _0x5f1c89=['2116RizEEP','2325NdZipf','OrAdG','2409554yJTFOd','3470706iEaHxf','admin','normal','16UnnmvZ','WZseb','HvNCJ','3759385HFkwXj','owner','307405RGjAQl','6512505woFguD','1800084UxEfWX'];_0x3db8=function(){return _0x5f1c89;};return _0x3db8();}(function(_0x4ce863,_0x117a22){var _0x5d72c7=_0x30ac,_0x587148=_0x4ce863();while(!![]){try{var _0x45190b=parseInt(_0x5d72c7(0xd5))/0x1+parseInt(_0x5d72c7(0xcc))/0x2+-parseInt(_0x5d72c7(0xca))/0x3*(-parseInt(_0x5d72c7(0xc9))/0x4)+-parseInt(_0x5d72c7(0xc7))/0x5+parseInt(_0x5d72c7(0xc8))/0x6+parseInt(_0x5d72c7(0xd3))/0x7+-parseInt(_0x5d72c7(0xd0))/0x8*(parseInt(_0x5d72c7(0xcd))/0x9);if(_0x45190b===_0x117a22)break;else _0x587148['push'](_0x587148['shift']());}catch(_0x5a7d0c){_0x587148['push'](_0x587148['shift']());}}}(_0x3db8,0xa7591));export var GroupMemberRole;(function(_0x5c7d55){var _0x1bd564=_0x30ac,_0x10b1e5={'OrAdG':_0x1bd564(0xcf),'WZseb':_0x1bd564(0xce),'HvNCJ':_0x1bd564(0xd4)};_0x5c7d55[_0x5c7d55[_0x1bd564(0xcf)]=0x2]=_0x10b1e5[_0x1bd564(0xcb)],_0x5c7d55[_0x5c7d55[_0x10b1e5[_0x1bd564(0xd1)]]=0x3]=_0x10b1e5[_0x1bd564(0xd1)],_0x5c7d55[_0x5c7d55[_0x10b1e5['HvNCJ']]=0x4]=_0x10b1e5[_0x1bd564(0xd2)];}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/index.js b/src/core.lib/src/entities/index.js index cff42a50..e37cd9ea 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x4dd6f7,_0x15484a){var _0x18d1ac=_0x4d5e,_0x5a7133=_0x4dd6f7();while(!![]){try{var _0x5e107a=parseInt(_0x18d1ac(0x85))/0x1+-parseInt(_0x18d1ac(0x89))/0x2*(-parseInt(_0x18d1ac(0x8c))/0x3)+parseInt(_0x18d1ac(0x84))/0x4*(-parseInt(_0x18d1ac(0x8d))/0x5)+-parseInt(_0x18d1ac(0x88))/0x6+parseInt(_0x18d1ac(0x86))/0x7+parseInt(_0x18d1ac(0x8a))/0x8+parseInt(_0x18d1ac(0x8b))/0x9*(-parseInt(_0x18d1ac(0x87))/0xa);if(_0x5e107a===_0x15484a)break;else _0x5a7133['push'](_0x5a7133['shift']());}catch(_0x34aeae){_0x5a7133['push'](_0x5a7133['shift']());}}}(_0x5bfd,0x64d48));export*from'./user';function _0x4d5e(_0x836974,_0x427427){var _0x5bfd81=_0x5bfd();return _0x4d5e=function(_0x4d5ed5,_0x3926b0){_0x4d5ed5=_0x4d5ed5-0x84;var _0x5c9a10=_0x5bfd81[_0x4d5ed5];return _0x5c9a10;},_0x4d5e(_0x836974,_0x427427);}export*from'./group';function _0x5bfd(){var _0x151fb8=['555310iwrZAb','5451411VEaODF','90wFEjpk','2370228pyllsW','2UoyWmZ','1530312HHwBJH','427833TnEVsr','600759NBMzoE','5QcYuUt','1959016yZfAcI'];_0x5bfd=function(){return _0x151fb8;};return _0x5bfd();}export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x1fbf72,_0x49e6ab){var _0x17f941=_0xb300,_0x3ffa44=_0x1fbf72();while(!![]){try{var _0x146ba1=-parseInt(_0x17f941(0x13f))/0x1+parseInt(_0x17f941(0x135))/0x2*(parseInt(_0x17f941(0x13a))/0x3)+-parseInt(_0x17f941(0x136))/0x4+parseInt(_0x17f941(0x139))/0x5+parseInt(_0x17f941(0x138))/0x6*(-parseInt(_0x17f941(0x13e))/0x7)+parseInt(_0x17f941(0x13c))/0x8*(parseInt(_0x17f941(0x137))/0x9)+-parseInt(_0x17f941(0x13d))/0xa*(-parseInt(_0x17f941(0x13b))/0xb);if(_0x146ba1===_0x49e6ab)break;else _0x3ffa44['push'](_0x3ffa44['shift']());}catch(_0x3aaa09){_0x3ffa44['push'](_0x3ffa44['shift']());}}}(_0x553d,0x35c59));export*from'./user';export*from'./group';function _0xb300(_0x23c54b,_0x56e9c1){var _0x553d32=_0x553d();return _0xb300=function(_0xb30031,_0x54d2ab){_0xb30031=_0xb30031-0x135;var _0x4058e1=_0x553d32[_0xb30031];return _0x4058e1;},_0xb300(_0x23c54b,_0x56e9c1);}export*from'./msg';function _0x553d(){var _0x4cfd33=['236314uvdtJX','26mGhZrR','1429652ZYEQdN','3663txnxWH','13356pzQymQ','252865QwvNtr','36393tNjVas','8365247xEpuMw','5096cFouok','10HdxSmV','1302kyXhxl'];_0x553d=function(){return _0x4cfd33;};return _0x553d();}export*from'./notify';export*from'./cache';export*from'./constructor'; \ No newline at end of file diff --git a/src/core.lib/src/entities/msg.d.ts b/src/core.lib/src/entities/msg.d.ts index 2e8303a9..ee1b525a 100644 --- a/src/core.lib/src/entities/msg.d.ts +++ b/src/core.lib/src/entities/msg.d.ts @@ -2,7 +2,7 @@ import { GroupMemberRole } from './group'; export interface Peer { chatType: ChatType; peerUid: string; - guildId?: ''; + guildId?: string; } export declare enum ElementType { TEXT = 1, @@ -18,7 +18,7 @@ export declare enum ElementType { } export interface SendTextElement { elementType: ElementType.TEXT; - elementId: ''; + elementId: string; textElement: { content: string; atType: number; @@ -29,7 +29,7 @@ export interface SendTextElement { } export interface SendPttElement { elementType: ElementType.PTT; - elementId: ''; + elementId: string; pttElement: { fileName: string; filePath: string; @@ -41,7 +41,7 @@ export interface SendPttElement { voiceChangeType: number; canConvert2Text: boolean; waveAmplitudes: number[]; - fileSubId: ''; + fileSubId: string; playState: number; autoConvertText: number; }; @@ -56,7 +56,7 @@ export declare enum PicSubType { } export interface SendPicElement { elementType: ElementType.PIC; - elementId: ''; + elementId: string; picElement: { md5HexStr: string; fileSize: number | string; @@ -75,7 +75,7 @@ export interface SendPicElement { } export interface SendReplyElement { elementType: ElementType.REPLY; - elementId: ''; + elementId: string; replyElement: { replayMsgSeq: string; replayMsgId: string; @@ -85,7 +85,7 @@ export interface SendReplyElement { } export interface SendFaceElement { elementType: ElementType.FACE; - elementId: ''; + elementId: string; faceElement: FaceElement; } export interface SendMarketFaceElement { @@ -93,39 +93,39 @@ export interface SendMarketFaceElement { marketFaceElement: MarketFaceElement; } export interface FileElement { - 'fileMd5'?: ''; - 'fileName': string; - 'filePath': string; + fileMd5?: string; + fileName: string; + filePath: string; fileSize: string; - 'picHeight'?: number; - 'picWidth'?: number; - 'picThumbPath'?: Map; - 'file10MMd5'?: ''; - 'fileSha'?: ''; - 'fileSha3'?: ''; - 'fileUuid'?: ''; - 'fileSubId'?: ''; - 'thumbFileSize'?: number; + picHeight?: number; + picWidth?: number; + picThumbPath?: Map; + file10MMd5?: string; + fileSha?: string; + fileSha3?: string; + fileUuid?: string; + fileSubId?: string; + thumbFileSize?: number; fileBizId?: number; } export interface SendFileElement { elementType: ElementType.FILE; - elementId: ''; + elementId: string; fileElement: FileElement; } export interface SendVideoElement { elementType: ElementType.VIDEO; - elementId: ''; + elementId: string; videoElement: VideoElement; } export interface SendArkElement { elementType: ElementType.ARK; - elementId: ''; + elementId: string; arkElement: ArkElement; } export interface SendMarkdownElement { elementType: ElementType.MARKDOWN; - elementId: ''; + elementId: string; markdownElement: MarkdownElement; } export type SendMessageElement = SendTextElement | SendPttElement | SendPicElement | SendReplyElement | SendFaceElement | SendMarketFaceElement | SendFileElement | SendVideoElement | SendArkElement | SendMarkdownElement; @@ -137,6 +137,7 @@ export declare enum AtType { export declare enum ChatType { friend = 1, group = 2, + chatDevice = 8,//移动设备? temp = 100 } export interface PttElement { @@ -232,49 +233,49 @@ export interface MarketFaceElement { key: string; } export interface VideoElement { - 'filePath': string; - 'fileName': string; - 'videoMd5'?: string; - 'thumbMd5'?: string; - 'fileTime'?: number; - 'thumbSize'?: number; - 'fileFormat'?: number; - 'fileSize'?: string; - 'thumbWidth'?: number; - 'thumbHeight'?: number; - 'busiType'?: 0; - 'subBusiType'?: 0; - 'thumbPath'?: Map; - 'transferStatus'?: 0; - 'progress'?: 0; - 'invalidState'?: 0; - 'fileUuid'?: string; - 'fileSubId'?: ''; - 'fileBizId'?: null; - 'originVideoMd5'?: ''; - 'import_rich_media_context'?: null; - 'sourceVideoCodecFormat'?: number; + filePath: string; + fileName: string; + videoMd5?: string; + thumbMd5?: string; + fileTime?: number; + thumbSize?: number; + fileFormat?: number; + fileSize?: string; + thumbWidth?: number; + thumbHeight?: number; + busiType?: 0; + subBusiType?: 0; + thumbPath?: Map; + transferStatus?: 0; + progress?: 0; + invalidState?: 0; + fileUuid?: string; + fileSubId?: string; + fileBizId?: null; + originVideoMd5?: string; + import_rich_media_context?: null; + sourceVideoCodecFormat?: number; } export interface MarkdownElement { content: string; } export interface InlineKeyboardElementRowButton { - 'id': ''; - 'label': string; - 'visitedLabel': string; - 'style': 1; - 'type': 2; - 'clickLimit': 0; - 'unsupportTips': '请升级新版手机QQ'; - 'data': string; - 'atBotShowChannelList': false; - 'permissionType': 2; - 'specifyRoleIds': []; - 'specifyTinyids': []; - 'isReply': false; - 'anchor': 0; - 'enter': false; - 'subscribeDataTemplateIds': []; + id: string; + label: string; + visitedLabel: string; + style: 1; + type: 2; + clickLimit: 0; + unsupportTips: string; + data: string; + atBotShowChannelList: boolean; + permissionType: number; + specifyRoleIds: []; + specifyTinyids: []; + isReply: false; + anchor: 0; + enter: false; + subscribeDataTemplateIds: []; } export interface InlineKeyboardElement { rows: [ @@ -294,40 +295,40 @@ export declare enum TipGroupElementType { ban = 8 } export interface TipGroupElement { - 'type': TipGroupElementType; - 'role': 0; - 'groupName': string; - 'memberUid': string; - 'memberNick': string; - 'memberRemark': string; - 'adminUid': string; - 'adminNick': string; - 'adminRemark': string; - 'createGroup': null; - 'memberAdd'?: { - 'showType': 1; - 'otherAdd': null; - 'otherAddByOtherQRCode': null; - 'otherAddByYourQRCode': null; - 'youAddByOtherQRCode': null; - 'otherInviteOther': null; - 'otherInviteYou': null; - 'youInviteOther': null; + type: TipGroupElementType; + role: 0; + groupName: string; + memberUid: string; + memberNick: string; + memberRemark: string; + adminUid: string; + adminNick: string; + adminRemark: string; + createGroup: null; + memberAdd?: { + showType: 1; + otherAdd: null; + otherAddByOtherQRCode: null; + otherAddByYourQRCode: null; + youAddByOtherQRCode: null; + otherInviteOther: null; + otherInviteYou: null; + youInviteOther: null; }; - 'shutUp'?: { - 'curTime': string; - 'duration': string; - 'admin': { - 'uid': string; - 'card': string; - 'name': string; - 'role': GroupMemberRole; + shutUp?: { + curTime: string; + duration: string; + admin: { + uid: string; + card: string; + name: string; + role: GroupMemberRole; }; - 'member': { - 'uid': string; - 'card': string; - 'name': string; - 'role': GroupMemberRole; + member: { + uid: string; + card: string; + name: string; + role: GroupMemberRole; }; }; } diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index 85862f2e..c02184b6 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0xe4c0a4=_0x9239;(function(_0x372d44,_0x5578fe){var _0x218b26=_0x9239,_0x1ef37b=_0x372d44();while(!![]){try{var _0x1e2465=-parseInt(_0x218b26(0x1ae))/0x1*(parseInt(_0x218b26(0x192))/0x2)+parseInt(_0x218b26(0x19b))/0x3+-parseInt(_0x218b26(0x18f))/0x4*(-parseInt(_0x218b26(0x190))/0x5)+-parseInt(_0x218b26(0x198))/0x6+parseInt(_0x218b26(0x1b2))/0x7+parseInt(_0x218b26(0x1be))/0x8+-parseInt(_0x218b26(0x193))/0x9;if(_0x1e2465===_0x5578fe)break;else _0x1ef37b['push'](_0x1ef37b['shift']());}catch(_0x192270){_0x1ef37b['push'](_0x1ef37b['shift']());}}}(_0xb96e,0xcad68));export var ElementType;(function(_0x3f401f){var _0x4b799c=_0x9239,_0x585a25={'EAToK':_0x4b799c(0x19d),'sInDN':'VIDEO','rVAfU':_0x4b799c(0x1b4),'ENcFp':_0x4b799c(0x1aa),'VogEM':_0x4b799c(0x1b1),'BqTfW':_0x4b799c(0x1bb),'eQvFr':_0x4b799c(0x1c7),'sbtpB':_0x4b799c(0x1a7),'xqXAM':_0x4b799c(0x18b),'CyPPo':'FACE'},_0x2733a3=_0x4b799c(0x195)[_0x4b799c(0x19f)]('|'),_0x147177=0x0;while(!![]){switch(_0x2733a3[_0x147177++]){case'0':_0x3f401f[_0x3f401f[_0x585a25[_0x4b799c(0x1bc)]]=0x2]=_0x585a25[_0x4b799c(0x1bc)];continue;case'1':_0x3f401f[_0x3f401f[_0x585a25[_0x4b799c(0x1bf)]]=0x5]=_0x4b799c(0x1a3);continue;case'2':_0x3f401f[_0x3f401f[_0x585a25[_0x4b799c(0x197)]]=0xb]=_0x585a25[_0x4b799c(0x197)];continue;case'3':_0x3f401f[_0x3f401f['FILE']=0x3]=_0x585a25[_0x4b799c(0x18c)];continue;case'4':_0x3f401f[_0x3f401f[_0x585a25[_0x4b799c(0x1c3)]]=0x1]=_0x585a25[_0x4b799c(0x1c3)];continue;case'5':_0x3f401f[_0x3f401f[_0x585a25['BqTfW']]=0xe]=_0x585a25[_0x4b799c(0x19e)];continue;case'6':_0x3f401f[_0x3f401f[_0x585a25['eQvFr']]=0x7]=_0x585a25['eQvFr'];continue;case'7':_0x3f401f[_0x3f401f[_0x585a25[_0x4b799c(0x1a8)]]=0x4]=_0x4b799c(0x1a7);continue;case'8':_0x3f401f[_0x3f401f[_0x585a25[_0x4b799c(0x18a)]]=0xa]=_0x4b799c(0x18b);continue;case'9':_0x3f401f[_0x3f401f[_0x585a25['CyPPo']]=0x6]=_0x585a25[_0x4b799c(0x1ca)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x53d3a4){var _0x55c092=_0x9239,_0x5d6453={'vjLAs':_0x55c092(0x199),'slXAN':_0x55c092(0x1c9)};_0x53d3a4[_0x53d3a4[_0x55c092(0x199)]=0x7d0]=_0x5d6453[_0x55c092(0x1ac)],_0x53d3a4[_0x53d3a4[_0x5d6453[_0x55c092(0x1b7)]]=0x3e8]=_0x55c092(0x1c9);}(PicType||(PicType={})));export var PicSubType;(function(_0x5f224d){var _0x1baac9=_0x9239,_0x2c903f={'UFvYO':_0x1baac9(0x1b8),'mywQa':_0x1baac9(0x1b5)};_0x5f224d[_0x5f224d['normal']=0x0]=_0x2c903f[_0x1baac9(0x1a1)],_0x5f224d[_0x5f224d[_0x2c903f['mywQa']]=0x1]=_0x2c903f[_0x1baac9(0x196)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x1a02f1){var _0x59ae7b=_0x9239,_0x4f2a72={'AizKO':_0x59ae7b(0x1a6),'bytNB':_0x59ae7b(0x1ba),'rzZvX':_0x59ae7b(0x1a2)};_0x1a02f1[_0x1a02f1[_0x4f2a72[_0x59ae7b(0x1c4)]]=0x0]=_0x4f2a72[_0x59ae7b(0x1c4)],_0x1a02f1[_0x1a02f1[_0x4f2a72[_0x59ae7b(0x1b6)]]=0x1]=_0x59ae7b(0x1ba),_0x1a02f1[_0x1a02f1[_0x4f2a72[_0x59ae7b(0x1ab)]]=0x2]=_0x4f2a72[_0x59ae7b(0x1ab)];}(AtType||(AtType={})));export var ChatType;function _0xb96e(){var _0x13e0c7=['10705723mvzOPf','vmTpY','MFACE','face','bytNB','slXAN','normal','MEMBER_NEW_TITLE','atAll','MARKDOWN','EAToK','RtdCz','3782944zbHdwD','sInDN','wNoCl','https://multimedia.nt.qq.com.cn','zxtKY','VogEM','AizKO','WAJwC','sZipk','REPLY','group','jpg','CyPPo','SyLdZ','xqXAM','ARK','ENcFp','ban','PVcIu','288040oKfBur','90GlZzkj','DNLBW','1022bTBQwU','24217227sMIZtc','friend','4|0|3|7|1|9|6|8|2|5','mywQa','rVAfU','948192sICbOr','gif','BiYKw','4913313LwCBNZ','ibJYV','PIC','BqTfW','split','memberIncrease','UFvYO','atUser','VIDEO','kicked','INVITE_NEW_MEMBER','notAt','PTT','sbtpB','temp','FILE','rzZvX','vjLAs','https://gchat.qpic.cn','2459NwNxAr','dice','RPS','TEXT'];_0xb96e=function(){return _0x13e0c7;};return _0xb96e();}(function(_0x3399de){var _0x22a590=_0x9239,_0x43444f={'SyLdZ':_0x22a590(0x194),'DNLBW':_0x22a590(0x1c8),'RtdCz':_0x22a590(0x1a9)};_0x3399de[_0x3399de[_0x43444f[_0x22a590(0x189)]]=0x1]=_0x43444f[_0x22a590(0x189)],_0x3399de[_0x3399de[_0x43444f[_0x22a590(0x191)]]=0x2]=_0x43444f[_0x22a590(0x191)],_0x3399de[_0x3399de[_0x43444f['RtdCz']]=0x64]=_0x43444f[_0x22a590(0x1bd)];}(ChatType||(ChatType={})));function _0x9239(_0x1f1148,_0x4fbd93){var _0xb96ecf=_0xb96e();return _0x9239=function(_0x9239d6,_0x22ca60){_0x9239d6=_0x9239d6-0x189;var _0xd8183a=_0xb96ecf[_0x9239d6];return _0xd8183a;},_0x9239(_0x1f1148,_0x4fbd93);}export const IMAGE_HTTP_HOST=_0xe4c0a4(0x1ad);export const IMAGE_HTTP_HOST_NT=_0xe4c0a4(0x1c1);export var GrayTipElementSubType;(function(_0x362ad6){var _0x1f0406=_0xe4c0a4,_0x8d8dd6={'PVcIu':_0x1f0406(0x1a5),'zxtKY':'MEMBER_NEW_TITLE'};_0x362ad6[_0x362ad6[_0x8d8dd6[_0x1f0406(0x18e)]]=0xc]='INVITE_NEW_MEMBER',_0x362ad6[_0x362ad6[_0x1f0406(0x1b9)]=0x11]=_0x8d8dd6[_0x1f0406(0x1c2)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x22f0eb){var _0x2407f7=_0xe4c0a4,_0x1d86f4={'ibJYV':_0x2407f7(0x1b8),'WAJwC':'normal2','jmpHE':_0x2407f7(0x1af)};_0x22f0eb[_0x22f0eb[_0x2407f7(0x1b8)]=0x1]=_0x1d86f4[_0x2407f7(0x19c)],_0x22f0eb[_0x22f0eb[_0x1d86f4[_0x2407f7(0x1c5)]]=0x2]=_0x1d86f4[_0x2407f7(0x1c5)],_0x22f0eb[_0x22f0eb[_0x2407f7(0x1af)]=0x3]=_0x1d86f4['jmpHE'];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x32da79){var _0x124141=_0xe4c0a4,_0x3cc4fb={'BiYKw':'dice','vmTpY':_0x124141(0x1b0)};_0x32da79[_0x32da79[_0x3cc4fb[_0x124141(0x19a)]]=0x166]=_0x3cc4fb[_0x124141(0x19a)],_0x32da79[_0x32da79[_0x3cc4fb[_0x124141(0x1b3)]]=0x167]=_0x3cc4fb[_0x124141(0x1b3)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x5dee77){var _0x2598aa=_0xe4c0a4,_0x280ffe={'sZipk':'memberIncrease','wNoCl':_0x2598aa(0x18d)};_0x5dee77[_0x5dee77[_0x280ffe[_0x2598aa(0x1c6)]]=0x1]=_0x2598aa(0x1a0),_0x5dee77[_0x5dee77[_0x2598aa(0x1a4)]=0x3]=_0x2598aa(0x1a4),_0x5dee77[_0x5dee77[_0x280ffe[_0x2598aa(0x1c0)]]=0x8]='ban';}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x1274d3=_0x17a6;(function(_0x50b8d6,_0x2358d1){var _0x3018de=_0x17a6,_0x484379=_0x50b8d6();while(!![]){try{var _0x50899e=parseInt(_0x3018de(0x1cb))/0x1+-parseInt(_0x3018de(0x1b5))/0x2+-parseInt(_0x3018de(0x1c2))/0x3*(parseInt(_0x3018de(0x1cf))/0x4)+-parseInt(_0x3018de(0x1b9))/0x5+-parseInt(_0x3018de(0x1da))/0x6*(-parseInt(_0x3018de(0x1bb))/0x7)+-parseInt(_0x3018de(0x1e7))/0x8+parseInt(_0x3018de(0x1c0))/0x9*(parseInt(_0x3018de(0x1c7))/0xa);if(_0x50899e===_0x2358d1)break;else _0x484379['push'](_0x484379['shift']());}catch(_0x11f718){_0x484379['push'](_0x484379['shift']());}}}(_0x1453,0xb9be5));export var ElementType;(function(_0x75cb68){var _0x40dad4=_0x17a6,_0x38b3a4={'TfOBA':'7|4|8|6|5|1|2|3|9|0','MnoaG':'MARKDOWN','ayNfH':_0x40dad4(0x1bf),'ishXu':_0x40dad4(0x1c5),'cayoO':'ARK','zWtYE':_0x40dad4(0x1de),'ezjbL':_0x40dad4(0x1d5),'VCzzT':'PTT','pixPb':'TEXT','PvuHb':'FILE','aChJz':_0x40dad4(0x1c8)},_0x583ac6=_0x38b3a4[_0x40dad4(0x1e9)][_0x40dad4(0x1b8)]('|'),_0x24170d=0x0;while(!![]){switch(_0x583ac6[_0x24170d++]){case'0':_0x75cb68[_0x75cb68[_0x38b3a4['MnoaG']]=0xe]='MARKDOWN';continue;case'1':_0x75cb68[_0x75cb68[_0x40dad4(0x1bf)]=0x6]=_0x38b3a4[_0x40dad4(0x1ba)];continue;case'2':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1bc)]]=0x7]=_0x38b3a4[_0x40dad4(0x1bc)];continue;case'3':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1c1)]]=0xa]=_0x38b3a4[_0x40dad4(0x1c1)];continue;case'4':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1dd)]]=0x2]='PIC';continue;case'5':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1e0)]]=0x5]=_0x38b3a4[_0x40dad4(0x1e0)];continue;case'6':_0x75cb68[_0x75cb68[_0x38b3a4['VCzzT']]=0x4]=_0x38b3a4[_0x40dad4(0x1dc)];continue;case'7':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1ea)]]=0x1]=_0x38b3a4['pixPb'];continue;case'8':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1cc)]]=0x3]=_0x38b3a4[_0x40dad4(0x1cc)];continue;case'9':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1c3)]]=0xb]=_0x38b3a4[_0x40dad4(0x1c3)];continue;}break;}}(ElementType||(ElementType={})));function _0x1453(){var _0x124889=['split','4371270GKcoge','ayNfH','1096319hsueEL','ishXu','https://gchat.qpic.cn','fQDrp','FACE','5985441xqIptM','cayoO','138297rPdGSk','aChJz','https://multimedia.nt.qq.com.cn','REPLY','WRXQH','50LgFRKT','MFACE','DdxyH','yVFuc','661230Vkylzb','PvuHb','agneS','ban','92IZdStI','FHNEh','atUser','PhXYO','atAll','JWJCN','VIDEO','CqWrU','INVITE_NEW_MEMBER','QnuUX','SgEkz','6lbYpyH','normal2','VCzzT','zWtYE','PIC','jlMKQ','ezjbL','group','blVtR','KBQPM','chatDevice','dice','PyeFJ','5352096MZMCUP','normal','TfOBA','pixPb','KJVFX','temp','jpg','face','VtFUx','1557488FVfTvT','Rbcpb','Ulrlo'];_0x1453=function(){return _0x124889;};return _0x1453();}export var PicType;(function(_0xb04737){var _0x308a7d=_0x17a6,_0x539220={'Rbcpb':'gif','raqHC':'jpg'};_0xb04737[_0xb04737[_0x539220[_0x308a7d(0x1b6)]]=0x7d0]=_0x539220[_0x308a7d(0x1b6)],_0xb04737[_0xb04737[_0x308a7d(0x1b2)]=0x3e8]=_0x539220['raqHC'];}(PicType||(PicType={})));export var PicSubType;(function(_0x584ed5){var _0x3ffe02=_0x17a6,_0x4da1bf={'yVFuc':_0x3ffe02(0x1e8),'jlMKQ':_0x3ffe02(0x1b3)};_0x584ed5[_0x584ed5[_0x4da1bf[_0x3ffe02(0x1ca)]]=0x0]=_0x4da1bf['yVFuc'],_0x584ed5[_0x584ed5[_0x4da1bf[_0x3ffe02(0x1df)]]=0x1]=_0x4da1bf['jlMKQ'];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x3cf9f7){var _0x5f43eb=_0x17a6,_0x32fb7b={'Ulrlo':'notAt','KJVFX':_0x5f43eb(0x1d3),'fQDrp':_0x5f43eb(0x1d1)};_0x3cf9f7[_0x3cf9f7[_0x32fb7b[_0x5f43eb(0x1b7)]]=0x0]=_0x32fb7b['Ulrlo'],_0x3cf9f7[_0x3cf9f7[_0x32fb7b['KJVFX']]=0x1]=_0x32fb7b[_0x5f43eb(0x1eb)],_0x3cf9f7[_0x3cf9f7[_0x32fb7b[_0x5f43eb(0x1be)]]=0x2]=_0x32fb7b[_0x5f43eb(0x1be)];}(AtType||(AtType={})));export var ChatType;(function(_0x249273){var _0x42ce25=_0x17a6,_0x1d9d62={'CqWrU':'friend','agneS':_0x42ce25(0x1e1),'KBQPM':_0x42ce25(0x1e4),'VtFUx':_0x42ce25(0x1ec)};_0x249273[_0x249273[_0x1d9d62[_0x42ce25(0x1d6)]]=0x1]=_0x1d9d62[_0x42ce25(0x1d6)],_0x249273[_0x249273[_0x1d9d62[_0x42ce25(0x1cd)]]=0x2]=_0x1d9d62[_0x42ce25(0x1cd)],_0x249273[_0x249273[_0x1d9d62[_0x42ce25(0x1e3)]]=0x8]=_0x1d9d62[_0x42ce25(0x1e3)],_0x249273[_0x249273[_0x1d9d62[_0x42ce25(0x1b4)]]=0x64]='temp';}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x1274d3(0x1bd);export const IMAGE_HTTP_HOST_NT=_0x1274d3(0x1c4);export var GrayTipElementSubType;(function(_0xd7650c){var _0x1d3ff3=_0x1274d3,_0x4ffbf0={'DdxyH':_0x1d3ff3(0x1d7),'blVtR':'MEMBER_NEW_TITLE'};_0xd7650c[_0xd7650c[_0x4ffbf0[_0x1d3ff3(0x1c9)]]=0xc]=_0x4ffbf0[_0x1d3ff3(0x1c9)],_0xd7650c[_0xd7650c[_0x4ffbf0[_0x1d3ff3(0x1e2)]]=0x11]=_0x4ffbf0['blVtR'];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x578d8f){var _0x82d42a=_0x1274d3,_0x3e5c4e={'ryQFE':_0x82d42a(0x1e8),'PyeFJ':_0x82d42a(0x1db),'WRXQH':_0x82d42a(0x1e5)};_0x578d8f[_0x578d8f[_0x3e5c4e['ryQFE']]=0x1]=_0x82d42a(0x1e8),_0x578d8f[_0x578d8f['normal2']=0x2]=_0x3e5c4e[_0x82d42a(0x1e6)],_0x578d8f[_0x578d8f[_0x82d42a(0x1e5)]=0x3]=_0x3e5c4e[_0x82d42a(0x1c6)];}(FaceType||(FaceType={})));function _0x17a6(_0x31ad67,_0x53cf8b){var _0x145325=_0x1453();return _0x17a6=function(_0x17a6a3,_0x5481e1){_0x17a6a3=_0x17a6a3-0x1b2;var _0x46f0d8=_0x145325[_0x17a6a3];return _0x46f0d8;},_0x17a6(_0x31ad67,_0x53cf8b);}export var FaceIndex;(function(_0x15c2f1){var _0x33b3bf=_0x1274d3,_0x52e55e={'QnuUX':_0x33b3bf(0x1e5),'SgEkz':'RPS'};_0x15c2f1[_0x15c2f1[_0x52e55e[_0x33b3bf(0x1d8)]]=0x166]=_0x52e55e[_0x33b3bf(0x1d8)],_0x15c2f1[_0x15c2f1[_0x52e55e[_0x33b3bf(0x1d9)]]=0x167]=_0x52e55e[_0x33b3bf(0x1d9)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x3b56fb){var _0x5d0a6e=_0x1274d3,_0x43d562={'JWJCN':'memberIncrease','FHNEh':'kicked','PhXYO':_0x5d0a6e(0x1ce)};_0x3b56fb[_0x3b56fb[_0x43d562[_0x5d0a6e(0x1d4)]]=0x1]=_0x43d562[_0x5d0a6e(0x1d4)],_0x3b56fb[_0x3b56fb[_0x43d562[_0x5d0a6e(0x1d0)]]=0x3]=_0x43d562[_0x5d0a6e(0x1d0)],_0x3b56fb[_0x3b56fb[_0x43d562[_0x5d0a6e(0x1d2)]]=0x8]=_0x43d562['PhXYO'];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/notify.js b/src/core.lib/src/entities/notify.js index 610232c1..8363af15 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x50ad81,_0x40e9f0){var _0x1a71d7=_0x409c,_0x1aa7ce=_0x50ad81();while(!![]){try{var _0x5599ee=parseInt(_0x1a71d7(0xa9))/0x1+-parseInt(_0x1a71d7(0xba))/0x2*(parseInt(_0x1a71d7(0xa1))/0x3)+-parseInt(_0x1a71d7(0x9f))/0x4*(parseInt(_0x1a71d7(0xc0))/0x5)+-parseInt(_0x1a71d7(0xb1))/0x6*(-parseInt(_0x1a71d7(0xab))/0x7)+-parseInt(_0x1a71d7(0xb2))/0x8*(parseInt(_0x1a71d7(0xaf))/0x9)+-parseInt(_0x1a71d7(0xaa))/0xa+parseInt(_0x1a71d7(0xbb))/0xb;if(_0x5599ee===_0x40e9f0)break;else _0x1aa7ce['push'](_0x1aa7ce['shift']());}catch(_0x383751){_0x1aa7ce['push'](_0x1aa7ce['shift']());}}}(_0x55a7,0xc2ddc));export var GroupNotifyTypes;function _0x55a7(){var _0x20a71a=['WAIT_HANDLE','KICK_MEMBER','ADMIN_SET','IGNORE','1192418yWgYIz','1926230lMBLGz','7506786pAsAjY','uVOpU','PDGmY','APPROVE','45BSqcCb','ADMIN_UNSET_OTHER','6yEeCzM','659976IdXuun','icagi','ZYRUt','Vhqpv','reject','KPruG','MEMBER_EXIT','ADMIN_UNSET','38234oMnDfw','15367781fFzEqG','IjtqH','JOIN_REQUEST','YBoQN','4|5|6|1|2|0|7|3','324705kSRTkx','INVITE_ME','sYbZQ','split','72riQgVc','VFkHD','171iCcDEd','REJECT','Ergfh','approve'];_0x55a7=function(){return _0x20a71a;};return _0x55a7();}(function(_0x3b5318){var _0x163d67=_0x409c,_0x460ab5={'Vhqpv':_0x163d67(0xbf),'OAejp':_0x163d67(0xb8),'KPruG':_0x163d67(0xa7),'PDGmY':_0x163d67(0xa6),'IjtqH':_0x163d67(0xc1),'sYbZQ':'INVITED_JOIN','uVOpU':_0x163d67(0xbd),'YBoQN':_0x163d67(0xb9)},_0x2f7040=_0x460ab5[_0x163d67(0xb5)][_0x163d67(0xc3)]('|'),_0x217a6e=0x0;while(!![]){switch(_0x2f7040[_0x217a6e++]){case'0':_0x3b5318[_0x3b5318[_0x460ab5['OAejp']]=0xb]=_0x163d67(0xb8);continue;case'1':_0x3b5318[_0x3b5318[_0x460ab5[_0x163d67(0xb7)]]=0x8]=_0x460ab5['KPruG'];continue;case'2':_0x3b5318[_0x3b5318[_0x460ab5[_0x163d67(0xad)]]=0x9]=_0x460ab5[_0x163d67(0xad)];continue;case'3':_0x3b5318[_0x3b5318[_0x163d67(0xb0)]=0xd]='ADMIN_UNSET_OTHER';continue;case'4':_0x3b5318[_0x3b5318[_0x460ab5[_0x163d67(0xbc)]]=0x1]=_0x163d67(0xc1);continue;case'5':_0x3b5318[_0x3b5318[_0x460ab5[_0x163d67(0xc2)]]=0x4]=_0x460ab5[_0x163d67(0xc2)];continue;case'6':_0x3b5318[_0x3b5318[_0x460ab5[_0x163d67(0xac)]]=0x7]=_0x163d67(0xbd);continue;case'7':_0x3b5318[_0x3b5318[_0x460ab5[_0x163d67(0xbe)]]=0xc]=_0x460ab5[_0x163d67(0xbe)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x43b579){var _0x50edf8=_0x409c,_0x432bd6={'icagi':_0x50edf8(0xa5),'VFkHD':_0x50edf8(0xae),'ZYRUt':_0x50edf8(0xa2)};_0x43b579[_0x43b579['IGNORE']=0x0]=_0x50edf8(0xa8),_0x43b579[_0x43b579[_0x50edf8(0xa5)]=0x1]=_0x432bd6[_0x50edf8(0xb3)],_0x43b579[_0x43b579[_0x432bd6[_0x50edf8(0xa0)]]=0x2]=_0x432bd6[_0x50edf8(0xa0)],_0x43b579[_0x43b579[_0x432bd6[_0x50edf8(0xb4)]]=0x3]=_0x432bd6[_0x50edf8(0xb4)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;function _0x409c(_0x4c4fc7,_0x29d10e){var _0x55a7a4=_0x55a7();return _0x409c=function(_0x409c03,_0x27ef3d){_0x409c03=_0x409c03-0x9f;var _0x14fc6e=_0x55a7a4[_0x409c03];return _0x14fc6e;},_0x409c(_0x4c4fc7,_0x29d10e);}(function(_0x549807){var _0x29ff47=_0x409c,_0x1f9d2c={'CXkdX':_0x29ff47(0xa4),'Ergfh':'reject'};_0x549807[_0x549807[_0x1f9d2c['CXkdX']]=0x1]=_0x1f9d2c['CXkdX'],_0x549807[_0x549807[_0x1f9d2c[_0x29ff47(0xa3)]]=0x2]=_0x29ff47(0xb6);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(function(_0x190fc3,_0x4b26f8){var _0x3817d5=_0xf770,_0x46053f=_0x190fc3();while(!![]){try{var _0x481190=parseInt(_0x3817d5(0x177))/0x1+parseInt(_0x3817d5(0x16c))/0x2*(parseInt(_0x3817d5(0x181))/0x3)+-parseInt(_0x3817d5(0x175))/0x4+-parseInt(_0x3817d5(0x180))/0x5*(-parseInt(_0x3817d5(0x182))/0x6)+-parseInt(_0x3817d5(0x165))/0x7*(parseInt(_0x3817d5(0x171))/0x8)+parseInt(_0x3817d5(0x17c))/0x9*(parseInt(_0x3817d5(0x176))/0xa)+-parseInt(_0x3817d5(0x166))/0xb*(-parseInt(_0x3817d5(0x17d))/0xc);if(_0x481190===_0x4b26f8)break;else _0x46053f['push'](_0x46053f['shift']());}catch(_0x1f81cb){_0x46053f['push'](_0x46053f['shift']());}}}(_0x1aa5,0x70e9a));function _0xf770(_0x57d1c1,_0x5ef8df){var _0x1aa53b=_0x1aa5();return _0xf770=function(_0xf770c4,_0x1d8154){_0xf770c4=_0xf770c4-0x165;var _0xa5c612=_0x1aa53b[_0xf770c4];return _0xa5c612;},_0xf770(_0x57d1c1,_0x5ef8df);}export var GroupNotifyTypes;(function(_0x32fba9){var _0x4cd714=_0xf770,_0x414166={'AHEvh':_0x4cd714(0x169),'yugxs':_0x4cd714(0x167),'WhpBx':_0x4cd714(0x186),'GtJWQ':_0x4cd714(0x179),'ZPREC':'KICK_MEMBER','rZQNy':_0x4cd714(0x184),'qrvez':_0x4cd714(0x170),'XwWyx':_0x4cd714(0x16d)};_0x32fba9[_0x32fba9[_0x414166['AHEvh']]=0x1]=_0x4cd714(0x169),_0x32fba9[_0x32fba9[_0x4cd714(0x167)]=0x4]=_0x414166['yugxs'],_0x32fba9[_0x32fba9['JOIN_REQUEST']=0x7]=_0x414166['WhpBx'],_0x32fba9[_0x32fba9[_0x414166[_0x4cd714(0x172)]]=0x8]=_0x414166['GtJWQ'],_0x32fba9[_0x32fba9[_0x414166[_0x4cd714(0x16f)]]=0x9]=_0x414166[_0x4cd714(0x16f)],_0x32fba9[_0x32fba9[_0x414166['rZQNy']]=0xb]=_0x414166['rZQNy'],_0x32fba9[_0x32fba9[_0x414166[_0x4cd714(0x185)]]=0xc]='ADMIN_UNSET',_0x32fba9[_0x32fba9[_0x4cd714(0x16d)]=0xd]=_0x414166[_0x4cd714(0x173)];}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x1aa5(){var _0x230f81=['approve','OpCzu','315fexhJC','372IyYVkW','WAIT_HANDLE','FwIGJ','5gtwKtI','363513CpJlbf','2315760hgbCne','dOxRH','MEMBER_EXIT','qrvez','JOIN_REQUEST','2814eqyiwL','66099UEsjGg','INVITED_JOIN','APPROVE','INVITE_ME','IGNORE','EJixt','10EhIUcB','ADMIN_UNSET_OTHER','REJECT','ZPREC','ADMIN_UNSET','16064dEwPzA','GtJWQ','XwWyx','IYTON','3342448lBEFHa','234570zQzkYR','106229oUfHJC','BhPCm','ADMIN_SET'];_0x1aa5=function(){return _0x230f81;};return _0x1aa5();}export var GroupNotifyStatus;(function(_0xd3cb45){var _0x2ab2d3=_0xf770,_0x56f6f9={'OpCzu':_0x2ab2d3(0x16a),'FwIGJ':_0x2ab2d3(0x17e),'EJixt':_0x2ab2d3(0x168),'BhPCm':_0x2ab2d3(0x16e)};_0xd3cb45[_0xd3cb45[_0x2ab2d3(0x16a)]=0x0]=_0x56f6f9[_0x2ab2d3(0x17b)],_0xd3cb45[_0xd3cb45[_0x56f6f9[_0x2ab2d3(0x17f)]]=0x1]=_0x56f6f9[_0x2ab2d3(0x17f)],_0xd3cb45[_0xd3cb45[_0x2ab2d3(0x168)]=0x2]=_0x56f6f9[_0x2ab2d3(0x16b)],_0xd3cb45[_0xd3cb45[_0x56f6f9[_0x2ab2d3(0x178)]]=0x3]=_0x2ab2d3(0x16e);}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x1e96b4){var _0x5e58be=_0xf770,_0xf22ed3={'IYTON':_0x5e58be(0x17a),'dOxRH':'reject'};_0x1e96b4[_0x1e96b4[_0x5e58be(0x17a)]=0x1]=_0xf22ed3[_0x5e58be(0x174)],_0x1e96b4[_0x1e96b4[_0xf22ed3[_0x5e58be(0x183)]]=0x2]=_0xf22ed3[_0x5e58be(0x183)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/user.d.ts b/src/core.lib/src/entities/user.d.ts index 68bc4201..3cf3fe9d 100644 --- a/src/core.lib/src/entities/user.d.ts +++ b/src/core.lib/src/entities/user.d.ts @@ -3,6 +3,11 @@ export declare enum Sex { female = 2, unknown = 255 } +export interface buddyCategorType { + categoryId: number; + categroyName: string; + categroyMbCount: number; +} export interface BuddyProfileLikeReq { friendUids: string[]; basic: number; @@ -14,10 +19,10 @@ export interface BuddyProfileLikeReq { limit: number; } export interface QQLevel { - 'crownNum': number; - 'sunNum': number; - 'moonNum': number; - 'starNum': number; + crownNum: number; + sunNum: number; + moonNum: number; + starNum: number; } export interface User { uid: string; @@ -29,52 +34,52 @@ export interface User { sex?: Sex; qqLevel?: QQLevel; qid?: string; - 'birthday_year'?: number; - 'birthday_month'?: number; - 'birthday_day'?: number; - 'topTime'?: string; - 'constellation'?: number; - 'shengXiao'?: number; - 'kBloodType'?: number; - 'homeTown'?: string; - 'makeFriendCareer'?: number; - 'pos'?: string; - 'eMail'?: string; - 'phoneNum'?: string; - 'college'?: string; - 'country'?: string; - 'province'?: string; - 'city'?: string; - 'postCode'?: string; - 'address'?: string; - 'isBlock'?: boolean; - 'isSpecialCareOpen'?: boolean; - 'isSpecialCareZone'?: boolean; - 'ringId'?: string; - 'regTime'?: number; + birthday_year?: number; + birthday_month?: number; + birthday_day?: number; + topTime?: string; + constellation?: number; + shengXiao?: number; + kBloodType?: number; + homeTown?: string; + makeFriendCareer?: number; + pos?: string; + eMail?: string; + phoneNum?: string; + college?: string; + country?: string; + province?: string; + city?: string; + postCode?: string; + address?: string; + isBlock?: boolean; + isSpecialCareOpen?: boolean; + isSpecialCareZone?: boolean; + ringId?: string; + regTime?: number; interest?: string; - 'labels'?: string[]; - 'isHideQQLevel'?: number; - 'privilegeIcon'?: { - 'jumpUrl': string; - 'openIconList': unknown[]; - 'closeIconList': unknown[]; + labels?: string[]; + isHideQQLevel?: number; + privilegeIcon?: { + jumpUrl: string; + openIconList: unknown[]; + closeIconList: unknown[]; }; - 'photoWall'?: { - 'picList': unknown[]; + photoWall?: { + picList: unknown[]; }; - 'vipFlag'?: boolean; - 'yearVipFlag'?: boolean; - 'svipFlag'?: boolean; - 'vipLevel'?: number; - 'status'?: number; - 'qidianMasterFlag'?: number; - 'qidianCrewFlag'?: number; - 'qidianCrewFlag2'?: number; - 'extStatus'?: number; - 'recommendImgFlag'?: number; - 'disableEmojiShortCuts'?: number; - 'pendantId'?: string; + vipFlag?: boolean; + yearVipFlag?: boolean; + svipFlag?: boolean; + vipLevel?: number; + status?: number; + qidianMasterFlag?: number; + qidianCrewFlag?: number; + qidianCrewFlag2?: number; + extStatus?: number; + recommendImgFlag?: number; + disableEmojiShortCuts?: number; + pendantId?: string; } export interface SelfInfo extends User { online?: boolean; diff --git a/src/core.lib/src/entities/user.js b/src/core.lib/src/entities/user.js index d4b13eb4..da1a5ca8 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -function _0x5e7f(_0xf72802,_0x41815f){var _0x266073=_0x2660();return _0x5e7f=function(_0x5e7f7b,_0x1ab7b4){_0x5e7f7b=_0x5e7f7b-0xbd;var _0xef0c31=_0x266073[_0x5e7f7b];return _0xef0c31;},_0x5e7f(_0xf72802,_0x41815f);}(function(_0x4d7cf8,_0x4b95a0){var _0x5a8e6e=_0x5e7f,_0x2d031e=_0x4d7cf8();while(!![]){try{var _0x598f3e=parseInt(_0x5a8e6e(0xc5))/0x1*(-parseInt(_0x5a8e6e(0xc2))/0x2)+-parseInt(_0x5a8e6e(0xc7))/0x3+parseInt(_0x5a8e6e(0xbd))/0x4+-parseInt(_0x5a8e6e(0xbe))/0x5+-parseInt(_0x5a8e6e(0xc8))/0x6*(parseInt(_0x5a8e6e(0xc1))/0x7)+-parseInt(_0x5a8e6e(0xca))/0x8+parseInt(_0x5a8e6e(0xc3))/0x9;if(_0x598f3e===_0x4b95a0)break;else _0x2d031e['push'](_0x2d031e['shift']());}catch(_0x16f1e4){_0x2d031e['push'](_0x2d031e['shift']());}}}(_0x2660,0xb4a9f));export var Sex;function _0x2660(){var _0x3fe356=['3670188uvIyOc','5827990oubXJI','unknown','female','1124683HATPXG','83474JjkjEV','26447895JUxKpF','male','5SsxjJw','TlosX','1105374fqATjq','30MAMmRS','CYDti','4560936TOHkvA'];_0x2660=function(){return _0x3fe356;};return _0x2660();}(function(_0x5e30cb){var _0x1f51ac=_0x5e7f,_0x24e0a0={'TlosX':_0x1f51ac(0xc4),'CYDti':_0x1f51ac(0xc0),'TomMW':_0x1f51ac(0xbf)};_0x5e30cb[_0x5e30cb[_0x24e0a0[_0x1f51ac(0xc6)]]=0x1]=_0x24e0a0[_0x1f51ac(0xc6)],_0x5e30cb[_0x5e30cb[_0x24e0a0[_0x1f51ac(0xc9)]]=0x2]=_0x1f51ac(0xc0),_0x5e30cb[_0x5e30cb[_0x24e0a0['TomMW']]=0xff]='unknown';}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x18e9a4,_0x553979){var _0xb4824d=_0x38b6,_0xaf98a8=_0x18e9a4();while(!![]){try{var _0x816e3d=-parseInt(_0xb4824d(0x1d3))/0x1*(parseInt(_0xb4824d(0x1cf))/0x2)+parseInt(_0xb4824d(0x1ce))/0x3*(-parseInt(_0xb4824d(0x1cc))/0x4)+parseInt(_0xb4824d(0x1d5))/0x5*(-parseInt(_0xb4824d(0x1da))/0x6)+-parseInt(_0xb4824d(0x1d1))/0x7+parseInt(_0xb4824d(0x1d0))/0x8+parseInt(_0xb4824d(0x1d4))/0x9+parseInt(_0xb4824d(0x1d7))/0xa;if(_0x816e3d===_0x553979)break;else _0xaf98a8['push'](_0xaf98a8['shift']());}catch(_0x10b75f){_0xaf98a8['push'](_0xaf98a8['shift']());}}}(_0x5b6e,0x34747));export var Sex;function _0x38b6(_0x3717f0,_0x4bcf9e){var _0x5b6ecc=_0x5b6e();return _0x38b6=function(_0x38b6d0,_0x38d4c6){_0x38b6d0=_0x38b6d0-0x1cc;var _0x163fa8=_0x5b6ecc[_0x38b6d0];return _0x163fa8;},_0x38b6(_0x3717f0,_0x4bcf9e);}function _0x5b6e(){var _0x46a101=['2355dQevwC','2475513nCiAiN','6895sOxLsi','VemdR','10389490mRqBen','female','GKJeL','1806YWTKTB','unknown','62052DpxKEL','male','51rSRZck','274JbyjMu','1491504jRpTnP','1989078ZfKbfm','dBfLr'];_0x5b6e=function(){return _0x46a101;};return _0x5b6e();}(function(_0x6f1b7d){var _0x1ada01=_0x38b6,_0x329eef={'dBfLr':_0x1ada01(0x1cd),'GKJeL':_0x1ada01(0x1d8),'VemdR':_0x1ada01(0x1db)};_0x6f1b7d[_0x6f1b7d[_0x329eef['dBfLr']]=0x1]=_0x329eef[_0x1ada01(0x1d2)],_0x6f1b7d[_0x6f1b7d[_0x329eef[_0x1ada01(0x1d9)]]=0x2]=_0x329eef[_0x1ada01(0x1d9)],_0x6f1b7d[_0x6f1b7d[_0x329eef[_0x1ada01(0x1d6)]]=0xff]=_0x329eef['VemdR'];}(Sex||(Sex={}))); \ No newline at end of file diff --git a/src/core.lib/src/external/hook.js b/src/core.lib/src/external/hook.js index 1f12b5bd..cd8d9484 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x58d872=_0x275a;(function(_0x1b957e,_0x42f41b){const _0x50bbcb=_0x275a,_0x30e316=_0x1b957e();while(!![]){try{const _0x21ae96=-parseInt(_0x50bbcb(0x198))/0x1+parseInt(_0x50bbcb(0x188))/0x2+-parseInt(_0x50bbcb(0x199))/0x3+-parseInt(_0x50bbcb(0x196))/0x4*(-parseInt(_0x50bbcb(0x195))/0x5)+parseInt(_0x50bbcb(0x18c))/0x6+parseInt(_0x50bbcb(0x191))/0x7+parseInt(_0x50bbcb(0x18f))/0x8*(-parseInt(_0x50bbcb(0x187))/0x9);if(_0x21ae96===_0x42f41b)break;else _0x30e316['push'](_0x30e316['shift']());}catch(_0x28b419){_0x30e316['push'](_0x30e316['shift']());}}}(_0x4a9e,0xe6324));import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x58d872(0x18a)]=null;constructor(){const _0x604d98=_0x58d872,_0xa065d1={'BSUEF':function(_0x4f9464,_0x2811ba){return _0x4f9464(_0x2811ba);},'ptWQe':'MoeHoo','evmoi':function(_0x1b237e,_0x176d15){return _0x1b237e(_0x176d15);},'IiWHW':_0x604d98(0x18d),'IMQBq':function(_0x42da01,_0x471ac5,_0x5483fd){return _0x42da01(_0x471ac5,_0x5483fd);},'bgsqJ':'加载\x20moehoo\x20失败'};try{_0xa065d1[_0x604d98(0x189)](cpModule,_0xa065d1[_0x604d98(0x194)]),this[_0x604d98(0x18a)]=_0xa065d1['evmoi'](require,_0xa065d1[_0x604d98(0x18e)]),this['moeHook'][_0x604d98(0x190)](qqPkgInfo[_0x604d98(0x192)]);}catch(_0x1314b5){_0xa065d1['IMQBq'](logError,_0xa065d1[_0x604d98(0x18b)],_0x1314b5);}}[_0x58d872(0x197)](){const _0xe27fd6=_0x58d872;return this[_0xe27fd6(0x18a)]?.['GetRkey']()||'';}[_0x58d872(0x193)](){const _0x281eba=_0x58d872;return!!this[_0x281eba(0x18a)];}}export const hookApi=new HookApi();function _0x275a(_0x235d71,_0x3ef94a){const _0x4a9e98=_0x4a9e();return _0x275a=function(_0x275a69,_0x51c5d6){_0x275a69=_0x275a69-0x187;let _0x37f1b0=_0x4a9e98[_0x275a69];return _0x37f1b0;},_0x275a(_0x235d71,_0x3ef94a);}function _0x4a9e(){const _0x491ba5=['273565qusohT','132tDHcqN','getRKey','1401089bOHuHZ','5518380cDIYhB','5890257QAwuMF','2447206lGIOKk','BSUEF','moeHook','bgsqJ','6206118AEavWz','./MoeHoo.node','IiWHW','8clXind','HookRkey','5420947SJTlni','version','isAvailable','ptWQe'];_0x4a9e=function(){return _0x491ba5;};return _0x4a9e();} \ No newline at end of file +const _0x3aa93a=_0x399a;(function(_0x3d2ae2,_0x158faa){const _0x38e42a=_0x399a,_0x221728=_0x3d2ae2();while(!![]){try{const _0x3a0c6f=-parseInt(_0x38e42a(0x172))/0x1*(parseInt(_0x38e42a(0x169))/0x2)+parseInt(_0x38e42a(0x173))/0x3+-parseInt(_0x38e42a(0x168))/0x4*(parseInt(_0x38e42a(0x164))/0x5)+parseInt(_0x38e42a(0x16d))/0x6+-parseInt(_0x38e42a(0x166))/0x7*(parseInt(_0x38e42a(0x160))/0x8)+parseInt(_0x38e42a(0x161))/0x9+parseInt(_0x38e42a(0x16b))/0xa;if(_0x3a0c6f===_0x158faa)break;else _0x221728['push'](_0x221728['shift']());}catch(_0x5430f0){_0x221728['push'](_0x221728['shift']());}}}(_0x223f,0xd24fa));function _0x223f(){const _0x3fa9e5=['nJPuh','4755UOjIjF','加载\x20moehoo\x20失败','14PVrUOA','GetRkey','3180SJqNTX','4382IyaeWl','HookRkey','6869270Bxobny','TeOCD','2988654ZwfPUR','isAvailable','version','./MoeHoo.node','iyIcQ','1vHcGVd','863667eXhGKc','getRKey','lvjvt','1923464pMPZFK','5648499lSOxNk','moeHook'];_0x223f=function(){return _0x3fa9e5;};return _0x223f();}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x399a(_0x147d85,_0x53a2b7){const _0x223fd9=_0x223f();return _0x399a=function(_0x399a14,_0x4ba98b){_0x399a14=_0x399a14-0x15e;let _0x9bb3cb=_0x223fd9[_0x399a14];return _0x9bb3cb;},_0x399a(_0x147d85,_0x53a2b7);}import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x3aa93a(0x162)]=null;constructor(){const _0x237ceb=_0x3aa93a,_0x445751={'iyIcQ':'MoeHoo','FQGyB':function(_0x131939,_0x1a36a2){return _0x131939(_0x1a36a2);},'TeOCD':_0x237ceb(0x170),'nJPuh':function(_0x4341fa,_0x1c048d,_0x333ea2){return _0x4341fa(_0x1c048d,_0x333ea2);},'lvjvt':_0x237ceb(0x165)};try{cpModule(_0x445751[_0x237ceb(0x171)]),this[_0x237ceb(0x162)]=_0x445751['FQGyB'](require,_0x445751[_0x237ceb(0x16c)]),this[_0x237ceb(0x162)][_0x237ceb(0x16a)](qqPkgInfo[_0x237ceb(0x16f)]);}catch(_0x539b25){_0x445751[_0x237ceb(0x163)](logError,_0x445751[_0x237ceb(0x15f)],_0x539b25);}}[_0x3aa93a(0x15e)](){const _0x14b65d=_0x3aa93a;return this['moeHook']?.[_0x14b65d(0x167)]()||'';}[_0x3aa93a(0x16e)](){return!!this['moeHook'];}}export const hookApi=new HookApi(); \ No newline at end of file diff --git a/src/core.lib/src/index.js b/src/core.lib/src/index.js index b2c6d3ac..18aa22b8 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x4c9bdf,_0x3beb1f){var _0x507653=_0x4bcc,_0x5ba378=_0x4c9bdf();while(!![]){try{var _0xafa03d=-parseInt(_0x507653(0x1a2))/0x1*(-parseInt(_0x507653(0x1a0))/0x2)+parseInt(_0x507653(0x1a8))/0x3+parseInt(_0x507653(0x1a6))/0x4*(parseInt(_0x507653(0x1a4))/0x5)+-parseInt(_0x507653(0x1a5))/0x6+parseInt(_0x507653(0x1a3))/0x7*(-parseInt(_0x507653(0x1a1))/0x8)+parseInt(_0x507653(0x19f))/0x9+-parseInt(_0x507653(0x1a7))/0xa;if(_0xafa03d===_0x3beb1f)break;else _0x5ba378['push'](_0x5ba378['shift']());}catch(_0x3b52b5){_0x5ba378['push'](_0x5ba378['shift']());}}}(_0x251b,0x78e03));import _0x5748bc from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0x4bcc(_0x479698,_0x2a4ba9){var _0x251bde=_0x251b();return _0x4bcc=function(_0x4bcc5b,_0x48cee2){_0x4bcc5b=_0x4bcc5b-0x19f;var _0x2c105c=_0x251bde[_0x4bcc5b];return _0x2c105c;},_0x4bcc(_0x479698,_0x2a4ba9);}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x5748bc as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';function _0x251b(){var _0x25857c=['8453331KgqTyG','4aZbhtT','32VxgUPX','349982lhtalE','640521flCKIC','80YquhAE','5023518dCFtSl','35708jIVrej','1150180WARYOc','94005CEeXxH'];_0x251b=function(){return _0x25857c;};return _0x251b();} \ No newline at end of file +(function(_0x21dd94,_0x3d378a){var _0x59103d=_0x3191,_0x8a500a=_0x21dd94();while(!![]){try{var _0x5a1c39=parseInt(_0x59103d(0x1b7))/0x1*(-parseInt(_0x59103d(0x1bd))/0x2)+parseInt(_0x59103d(0x1be))/0x3+-parseInt(_0x59103d(0x1b9))/0x4*(parseInt(_0x59103d(0x1ba))/0x5)+-parseInt(_0x59103d(0x1b5))/0x6*(parseInt(_0x59103d(0x1b8))/0x7)+-parseInt(_0x59103d(0x1bc))/0x8*(-parseInt(_0x59103d(0x1bf))/0x9)+-parseInt(_0x59103d(0x1b4))/0xa+-parseInt(_0x59103d(0x1b6))/0xb*(-parseInt(_0x59103d(0x1bb))/0xc);if(_0x5a1c39===_0x3d378a)break;else _0x8a500a['push'](_0x8a500a['shift']());}catch(_0x4e0f51){_0x8a500a['push'](_0x8a500a['shift']());}}}(_0x3682,0x4ebec));import _0x4a42d4 from'./wrapper';export*from'./adapters';export*from'./apis';function _0x3191(_0x6df1be,_0x3e2888){var _0x368249=_0x3682();return _0x3191=function(_0x319122,_0x58f2f6){_0x319122=_0x319122-0x1b4;var _0x1ad78f=_0x368249[_0x319122];return _0x1ad78f;},_0x3191(_0x6df1be,_0x3e2888);}export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x4a42d4 as Wrapper};function _0x3682(){var _0x3b2892=['4ysLThR','1963985zFjLgT','24LARDEE','719248OKMBsl','2qubnzL','1813566rYkKPI','63BbLSwQ','5671370ApjZEx','3384702VfzwUO','5921432gqvHoX','463897wDkYyi','7WYyZCR'];_0x3682=function(){return _0x3b2892;};return _0x3682();}export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js index 042aed9b..46e09f0c 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -function _0x2d70(){var _0x5bd19f=['238971mZMgTY','onAddBuddyNeedVerify','2464DjqmYR','onDoubtBuddyReqChange','onCheckBuddySettingResult','onAvatarUrlUpdated','onBuddyRemarkUpdated','onBlockChanged','8BppucY','15349UyyslV','14893460AaxXKB','onBuddyDetailInfoChange','10483fvQPck','onDelBatchBuddyInfos','1709109INMEaK','30xRkYXA','onAddMeSettingChanged','onBuddyListChange','onDoubtBuddyReqUnreadNumChange','onSpacePermissionInfos','onSmartInfos','132EUXikS','onBuddyReqChange','onNickUpdated','184863gOKSNu','7015yIjhwh'];_0x2d70=function(){return _0x5bd19f;};return _0x2d70();}function _0x4a29(_0x190fd9,_0x87d36c){var _0x2d7019=_0x2d70();return _0x4a29=function(_0x4a297c,_0x3a9d3b){_0x4a297c=_0x4a297c-0x14b;var _0x126f5c=_0x2d7019[_0x4a297c];return _0x126f5c;},_0x4a29(_0x190fd9,_0x87d36c);}var _0x46da71=_0x4a29;(function(_0xde2a4a,_0xbae7f3){var _0x3caa93=_0x4a29,_0x3e8fbd=_0xde2a4a();while(!![]){try{var _0x21c092=parseInt(_0x3caa93(0x164))/0x1*(parseInt(_0x3caa93(0x156))/0x2)+parseInt(_0x3caa93(0x15b))/0x3+parseInt(_0x3caa93(0x15d))/0x4*(parseInt(_0x3caa93(0x15a))/0x5)+-parseInt(_0x3caa93(0x150))/0x6*(-parseInt(_0x3caa93(0x159))/0x7)+parseInt(_0x3caa93(0x163))/0x8*(parseInt(_0x3caa93(0x14f))/0x9)+-parseInt(_0x3caa93(0x14b))/0xa+-parseInt(_0x3caa93(0x14d))/0xb;if(_0x21c092===_0xbae7f3)break;else _0x3e8fbd['push'](_0x3e8fbd['shift']());}catch(_0x13e19e){_0x3e8fbd['push'](_0x3e8fbd['shift']());}}}(_0x2d70,0xc086a));export class BuddyListener{[_0x46da71(0x15c)](_0x5b7313){}[_0x46da71(0x151)](_0xd04216){}[_0x46da71(0x160)](_0x57ef7b){}[_0x46da71(0x162)](_0x1f6f8c){}[_0x46da71(0x14c)](_0x4ded88){}['onBuddyInfoChange'](_0x1e18a4){}[_0x46da71(0x152)](_0x50163b){}[_0x46da71(0x161)](_0x32eb38){}[_0x46da71(0x157)](_0x399f09){}['onBuddyReqUnreadCntChange'](_0x198114){}[_0x46da71(0x15f)](_0x3c1108){}[_0x46da71(0x14e)](_0x478a98){}[_0x46da71(0x15e)](_0x106577){}[_0x46da71(0x153)](_0x570ad4){}[_0x46da71(0x158)](_0x3e455b){}[_0x46da71(0x155)](_0x3860f4){}[_0x46da71(0x154)](_0x3238b9){}} \ No newline at end of file +var _0x2f8e5a=_0x316c;function _0x245f(){var _0x5d6f60=['3714qgbDbg','53gMpMyz','1006544pUMkZL','onSmartInfos','onBuddyDetailInfoChange','30CvIxtB','11CmfTTn','onDelBatchBuddyInfos','onCheckBuddySettingResult','onSpacePermissionInfos','onBuddyInfoChange','onNickUpdated','405050DbznxQ','4110hFnyJc','63736xmpsZL','30060SFzklZ','onBuddyReqUnreadCntChange','onBuddyReqChange','4599240cSWgtu','9BKKlme','1897wGWVaY','onDoubtBuddyReqChange','onBuddyListChange','onAddBuddyNeedVerify','onDoubtBuddyReqUnreadNumChange'];_0x245f=function(){return _0x5d6f60;};return _0x245f();}function _0x316c(_0x549430,_0x132e80){var _0x245fa4=_0x245f();return _0x316c=function(_0x316cac,_0x71e3b9){_0x316cac=_0x316cac-0xf7;var _0xd2f934=_0x245fa4[_0x316cac];return _0xd2f934;},_0x316c(_0x549430,_0x132e80);}(function(_0x27824d,_0x222e34){var _0x4bb2ae=_0x316c,_0x269d5e=_0x27824d();while(!![]){try{var _0xc1aa0f=-parseInt(_0x4bb2ae(0xf7))/0x1*(parseInt(_0x4bb2ae(0x10f))/0x2)+-parseInt(_0x4bb2ae(0xfb))/0x3*(parseInt(_0x4bb2ae(0x104))/0x4)+-parseInt(_0x4bb2ae(0x105))/0x5+parseInt(_0x4bb2ae(0x103))/0x6*(-parseInt(_0x4bb2ae(0x10a))/0x7)+parseInt(_0x4bb2ae(0xf8))/0x8+parseInt(_0x4bb2ae(0x109))/0x9*(parseInt(_0x4bb2ae(0x102))/0xa)+-parseInt(_0x4bb2ae(0xfc))/0xb*(-parseInt(_0x4bb2ae(0x108))/0xc);if(_0xc1aa0f===_0x222e34)break;else _0x269d5e['push'](_0x269d5e['shift']());}catch(_0x32b0f6){_0x269d5e['push'](_0x269d5e['shift']());}}}(_0x245f,0x18759));export class BuddyListener{[_0x2f8e5a(0x10d)](_0x301db8){}['onAddMeSettingChanged'](_0x5a8233){}['onAvatarUrlUpdated'](_0x45c330){}['onBlockChanged'](_0x43d443){}[_0x2f8e5a(0xfa)](_0x2c1240){}[_0x2f8e5a(0x100)](_0x51b3c3){}[_0x2f8e5a(0x10c)](_0x4d4500){}['onBuddyRemarkUpdated'](_0x27c50e){}[_0x2f8e5a(0x107)](_0x1e3d01){}[_0x2f8e5a(0x106)](_0x52cf20){}[_0x2f8e5a(0xfe)](_0x1c55a2){}[_0x2f8e5a(0xfd)](_0x36a46b){}[_0x2f8e5a(0x10b)](_0x37770e){}[_0x2f8e5a(0x10e)](_0x20faae){}[_0x2f8e5a(0x101)](_0x502082){}[_0x2f8e5a(0xf9)](_0x225b42){}[_0x2f8e5a(0xff)](_0x3037a3){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js index 8de6c33f..2120e90e 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -function _0x11ef(){var _0x49c34f=['1356bFzWZb','6248500IgPJaf','2298877xPTRpz','onSessionListChanged','onSessionChanged','37112XBdKBg','1467Vlqwpt','3166611mLjcxA','onFileStatusChanged','14FzLGIN','284779egXZjk','onFileListChanged','4tttqab','102383mAPWps','6vJEbjS','onFileSearch','5329035zWzEfJ'];_0x11ef=function(){return _0x49c34f;};return _0x11ef();}var _0x10638a=_0x231d;function _0x231d(_0x2515c6,_0x32bc79){var _0x11ef2d=_0x11ef();return _0x231d=function(_0x231dc9,_0x17720d){_0x231dc9=_0x231dc9-0x9d;var _0x2be45=_0x11ef2d[_0x231dc9];return _0x2be45;},_0x231d(_0x2515c6,_0x32bc79);}(function(_0x5a0cf0,_0x43270f){var _0x415065=_0x231d,_0x37b032=_0x5a0cf0();while(!![]){try{var _0x5886ff=-parseInt(_0x415065(0xa4))/0x1*(parseInt(_0x415065(0xa0))/0x2)+-parseInt(_0x415065(0x9e))/0x3+-parseInt(_0x415065(0xa3))/0x4*(parseInt(_0x415065(0xa7))/0x5)+parseInt(_0x415065(0xa5))/0x6*(parseInt(_0x415065(0xaa))/0x7)+parseInt(_0x415065(0xad))/0x8*(parseInt(_0x415065(0x9d))/0x9)+-parseInt(_0x415065(0xa9))/0xa+parseInt(_0x415065(0xa1))/0xb*(parseInt(_0x415065(0xa8))/0xc);if(_0x5886ff===_0x43270f)break;else _0x37b032['push'](_0x37b032['shift']());}catch(_0x235225){_0x37b032['push'](_0x37b032['shift']());}}}(_0x11ef,0x8594e));export class KernelFileAssistantListener{[_0x10638a(0x9f)](..._0x45c902){}[_0x10638a(0xab)](..._0x4269cc){}[_0x10638a(0xac)](..._0x218356){}[_0x10638a(0xa2)](..._0x22eebe){}[_0x10638a(0xa6)](..._0x53830e){}} \ No newline at end of file +function _0x3249(_0xac871,_0x13f786){var _0x4fd78b=_0x4fd7();return _0x3249=function(_0x3249a2,_0x66b350){_0x3249a2=_0x3249a2-0x65;var _0x489089=_0x4fd78b[_0x3249a2];return _0x489089;},_0x3249(_0xac871,_0x13f786);}var _0x3d3703=_0x3249;(function(_0x33392b,_0x15a7a9){var _0x1554b4=_0x3249,_0x2636e7=_0x33392b();while(!![]){try{var _0x18f2a9=parseInt(_0x1554b4(0x70))/0x1+-parseInt(_0x1554b4(0x6a))/0x2*(-parseInt(_0x1554b4(0x6e))/0x3)+parseInt(_0x1554b4(0x65))/0x4+-parseInt(_0x1554b4(0x6c))/0x5+-parseInt(_0x1554b4(0x6f))/0x6+parseInt(_0x1554b4(0x69))/0x7*(-parseInt(_0x1554b4(0x68))/0x8)+-parseInt(_0x1554b4(0x6d))/0x9;if(_0x18f2a9===_0x15a7a9)break;else _0x2636e7['push'](_0x2636e7['shift']());}catch(_0x5dd3c5){_0x2636e7['push'](_0x2636e7['shift']());}}}(_0x4fd7,0x8996d));export class KernelFileAssistantListener{['onFileStatusChanged'](..._0x3b50de){}[_0x3d3703(0x67)](..._0x4a0af2){}[_0x3d3703(0x6b)](..._0x4cb741){}[_0x3d3703(0x66)](..._0x256538){}['onFileSearch'](..._0x97f9ff){}}function _0x4fd7(){var _0x288d7d=['811026vsoWFe','644734zVbRUC','2397884eweXmK','onFileListChanged','onSessionListChanged','50216dQiCIo','91pDZwhb','2gFubpn','onSessionChanged','3001600yfwJpj','1419471dOwGRq','882513ZuyJqD'];_0x4fd7=function(){return _0x288d7d;};return _0x4fd7();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelGroupListener.js b/src/core.lib/src/listeners/NodeIKernelGroupListener.js index 5c0ecbfe..6d2541ef 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x37fd71=_0x61f1;function _0x61f1(_0x27d029,_0x629eb4){var _0x2936ae=_0x2936();return _0x61f1=function(_0x61f1b0,_0x3cfe94){_0x61f1b0=_0x61f1b0-0xa0;var _0x1c5f6b=_0x2936ae[_0x61f1b0];return _0x1c5f6b;},_0x61f1(_0x27d029,_0x629eb4);}(function(_0x23e855,_0x167eda){var _0x485a30=_0x61f1,_0x4ead9e=_0x23e855();while(!![]){try{var _0x70ac63=parseInt(_0x485a30(0xa1))/0x1*(-parseInt(_0x485a30(0xc9))/0x2)+-parseInt(_0x485a30(0xdf))/0x3+parseInt(_0x485a30(0xd0))/0x4*(-parseInt(_0x485a30(0xa9))/0x5)+-parseInt(_0x485a30(0xcc))/0x6*(-parseInt(_0x485a30(0xbe))/0x7)+parseInt(_0x485a30(0xc1))/0x8*(parseInt(_0x485a30(0xd9))/0x9)+-parseInt(_0x485a30(0xa4))/0xa*(-parseInt(_0x485a30(0xdb))/0xb)+-parseInt(_0x485a30(0xa0))/0xc;if(_0x70ac63===_0x167eda)break;else _0x4ead9e['push'](_0x4ead9e['shift']());}catch(_0x551082){_0x4ead9e['push'](_0x4ead9e['shift']());}}}(_0x2936,0x825ca));function _0x2936(){var _0x3bbc3b=['onMemberInfoChange','FORvr','onGroupConfMemberChange','onGroupListUpdate','onGroupFirstBulletinNotify','onGroupStatisticInfoChange:','FEDpM','onGroupNotifiesUnreadCountUpdated','HHgeW','onGroupBulletinRichMediaProgressUpdate:','PFHpG','onGroupsMsgMaskResult','onGroupDetailInfoChange:','onMemberInfoChange:','wPugu','91154FDxZrV','onGetGroupBulletinListResult:','onGroupListUpdate:','7880248wciljj','onGroupExtListUpdate','onGroupSingleScreenNotifies:','onGroupNotifiesUpdated:','SYjEN','HIKRq','onMemberListChange','onGroupConfMemberChange:','13614aAMzOT','efubI','QaaLS','6LlwYKG','FxYyO','onGroupBulletinRichMediaProgressUpdate','onGroupArkInviteStateResult','20DdDuXh','onGroupDetailInfoChange','onGroupNotifiesUpdated','onGroupStatisticInfoChange','onGroupBulletinChange','onShutUpMemberListChanged','onGroupBulletinRichMediaDownloadComplete','onGroupSingleScreenNotifies','log','9evOzsW','onGroupMemberLevelInfoChange','8092018pZKogC','cdbpU','onGroupsMsgMaskResult:','onGetGroupBulletinListResult','1013073iBcCdm','onGroupAllInfoChange','6755856YCWYgR','10XBXEjX','kHPrJ','RuBKi','10weKqoJ','rcLuF','onGroupBulletinRemindNotify','PLDbN','pDdII','230980BHzerJ','onGroupExtListUpdate:','onJoinGroupNoVerifyFlag:','onShutUpMemberListChanged:','onGroupFirstBulletinNotify:','onMemberListChange:'];_0x2936=function(){return _0x3bbc3b;};return _0x2936();}export class GroupListener{[_0x37fd71(0xda)](..._0x2c3573){}[_0x37fd71(0xde)](..._0x18f383){}[_0x37fd71(0xe0)](..._0x163b04){}[_0x37fd71(0xd4)](..._0x322ce0){}[_0x37fd71(0xa6)](..._0x5423eb){}[_0x37fd71(0xcf)](..._0x1e73e9){}['onGroupBulletinRichMediaDownloadComplete'](..._0x485a77){}['onGroupConfMemberChange'](..._0x4bfccb){}[_0x37fd71(0xd1)](..._0xdbc921){}[_0x37fd71(0xc2)](..._0x143684){}[_0x37fd71(0xb3)](..._0x30cc1a){}[_0x37fd71(0xb2)](_0x548ec5,_0x4481f0){}[_0x37fd71(0xd2)](_0x3d42e2,_0x3cbd89){}['onGroupBulletinRichMediaProgressUpdate'](..._0x30261c){}[_0x37fd71(0xb6)](..._0x3ef39c){}[_0x37fd71(0xd7)](..._0xc17482){}[_0x37fd71(0xba)](..._0x3d38a5){}[_0x37fd71(0xd3)](..._0x4fa91a){}['onJoinGroupNotify'](..._0x83c521){}['onJoinGroupNoVerifyFlag'](..._0x30ea4f){}[_0x37fd71(0xaf)](_0x5f2cbd,_0xd392e4,_0x224767){}[_0x37fd71(0xc7)](_0x21881d){}['onSearchMemberChange'](..._0x1bdfa6){}['onShutUpMemberListChanged'](..._0xe86b58){}}export class DebugGroupListener{[_0x37fd71(0xda)](..._0x105be4){var _0x19fb84=_0x37fd71,_0x17a349={'RtgAt':'onGroupMemberLevelInfoChange:'};console[_0x19fb84(0xd8)](_0x17a349['RtgAt'],..._0x105be4);}[_0x37fd71(0xde)](..._0x3a4b0c){var _0xaa1719=_0x37fd71,_0x2242e6={'rcLuF':_0xaa1719(0xbf)};console['log'](_0x2242e6[_0xaa1719(0xa5)],..._0x3a4b0c);}[_0x37fd71(0xe0)](..._0x2e62dd){var _0x980e3b=_0x37fd71,_0x1749ed={'HHgeW':'onGroupAllInfoChange:'};console[_0x980e3b(0xd8)](_0x1749ed[_0x980e3b(0xb7)],..._0x2e62dd);}[_0x37fd71(0xd4)](..._0x49c458){var _0x4f0898=_0x37fd71,_0x3565d2={'dPYTA':'onGroupBulletinChange:'};console[_0x4f0898(0xd8)](_0x3565d2['dPYTA'],..._0x49c458);}['onGroupBulletinRemindNotify'](..._0x591e3e){var _0x5a274e=_0x37fd71,_0x11b537={'efubI':'onGroupBulletinRemindNotify:'};console['log'](_0x11b537[_0x5a274e(0xca)],..._0x591e3e);}[_0x37fd71(0xcf)](..._0xfaea7e){var _0x26711f=_0x37fd71,_0x57f244={'cdbpU':'onGroupArkInviteStateResult:'};console['log'](_0x57f244[_0x26711f(0xdc)],..._0xfaea7e);}[_0x37fd71(0xd6)](..._0xa854e6){var _0x74ee38=_0x37fd71,_0x386ee3={'FEDpM':'onGroupBulletinRichMediaDownloadComplete:'};console[_0x74ee38(0xd8)](_0x386ee3[_0x74ee38(0xb5)],..._0xa854e6);}[_0x37fd71(0xb1)](..._0x3f1e78){var _0x51fb90=_0x37fd71,_0x7ed74e={'kHPrJ':_0x51fb90(0xc8)};console[_0x51fb90(0xd8)](_0x7ed74e[_0x51fb90(0xa2)],..._0x3f1e78);}[_0x37fd71(0xd1)](..._0x503a49){var _0x3907be=_0x37fd71,_0x5eda24={'HIKRq':_0x3907be(0xbb)};console['log'](_0x5eda24[_0x3907be(0xc6)],..._0x503a49);}[_0x37fd71(0xc2)](..._0x3eafb7){var _0x437db9=_0x37fd71;console[_0x437db9(0xd8)](_0x437db9(0xaa),..._0x3eafb7);}[_0x37fd71(0xb3)](..._0x381796){var _0xa2a159=_0x37fd71,_0x22014f={'SYjEN':_0xa2a159(0xad)};console[_0xa2a159(0xd8)](_0x22014f[_0xa2a159(0xc5)],..._0x381796);}[_0x37fd71(0xb2)](..._0x2f4274){var _0x567856=_0x37fd71,_0x1f9ab1={'pDdII':_0x567856(0xc0)};console[_0x567856(0xd8)](_0x1f9ab1[_0x567856(0xa8)],..._0x2f4274);}[_0x37fd71(0xd2)](..._0x31a2e8){var _0x1786bf=_0x37fd71,_0x3ee43e={'PFHpG':_0x1786bf(0xc4)};console[_0x1786bf(0xd8)](_0x3ee43e[_0x1786bf(0xb9)],..._0x31a2e8);}[_0x37fd71(0xce)](..._0x5839f2){var _0x56b993=_0x37fd71,_0x4bc921={'RuBKi':_0x56b993(0xb8)};console[_0x56b993(0xd8)](_0x4bc921[_0x56b993(0xa3)],..._0x5839f2);}[_0x37fd71(0xb6)](..._0x2cc2f8){console['log']('onGroupNotifiesUnreadCountUpdated:',..._0x2cc2f8);}['onGroupSingleScreenNotifies'](..._0x2d0f24){var _0x243307=_0x37fd71,_0x34c7c7={'TmFDE':_0x243307(0xc3)};console['log'](_0x34c7c7['TmFDE'],..._0x2d0f24);}[_0x37fd71(0xba)](..._0x49d60a){var _0x32dc8b=_0x37fd71,_0x4a2a83={'XAvAe':_0x32dc8b(0xdd)};console[_0x32dc8b(0xd8)](_0x4a2a83['XAvAe'],..._0x49d60a);}[_0x37fd71(0xd3)](..._0xf4eb61){var _0x57a974=_0x37fd71,_0x4e0b80={'QaaLS':_0x57a974(0xb4)};console[_0x57a974(0xd8)](_0x4e0b80[_0x57a974(0xcb)],..._0xf4eb61);}['onJoinGroupNotify'](..._0x2422c7){var _0x552992=_0x37fd71,_0x578c16={'FxYyO':'onJoinGroupNotify:'};console[_0x552992(0xd8)](_0x578c16[_0x552992(0xcd)],..._0x2422c7);}['onJoinGroupNoVerifyFlag'](..._0x48b10d){var _0x20be34=_0x37fd71;console[_0x20be34(0xd8)](_0x20be34(0xab),..._0x48b10d);}[_0x37fd71(0xaf)](_0x991db5,_0x32405f,_0x860538){var _0x2de433=_0x37fd71,_0x419ce6={'wPugu':_0x2de433(0xbc)};console[_0x2de433(0xd8)](_0x419ce6[_0x2de433(0xbd)],_0x991db5,_0x32405f,_0x860538);}[_0x37fd71(0xc7)](..._0x5e1e16){var _0x268201=_0x37fd71,_0x508584={'xnvnx':_0x268201(0xae)};console[_0x268201(0xd8)](_0x508584['xnvnx'],..._0x5e1e16);}['onSearchMemberChange'](..._0x4e0706){var _0x545dfe=_0x37fd71,_0x4c592b={'FORvr':'onSearchMemberChange:'};console[_0x545dfe(0xd8)](_0x4c592b[_0x545dfe(0xb0)],..._0x4e0706);}[_0x37fd71(0xd5)](..._0x25de6c){var _0x145ea0=_0x37fd71,_0x1bfb65={'PLDbN':_0x145ea0(0xac)};console['log'](_0x1bfb65[_0x145ea0(0xa7)],..._0x25de6c);}} \ No newline at end of file +function _0x58e9(){var _0x57d0aa=['onGroupNotifiesUpdated:','hlblI','Xdacv','sIhEl','300783nmqTlg','onGroupBulletinRemindNotify:','onGroupSingleScreenNotifies:','onGroupMemberLevelInfoChange:','onGroupsMsgMaskResult','onGroupMemberLevelInfoChange','onGroupConfMemberChange','PMeIW','onGroupSingleScreenNotifies','Exjxv','pmoIZ','onJoinGroupNotify','uYaTj','onGroupBulletinRichMediaDownloadComplete:','663098vAkJGn','onGetGroupBulletinListResult','onSearchMemberChange','HzLWr','onGroupStatisticInfoChange:','JnOff','onShutUpMemberListChanged:','onGroupStatisticInfoChange','onGroupDetailInfoChange','bSJyY','1980ERfFXr','nKyMG','log','onGroupBulletinRichMediaProgressUpdate','onGroupExtListUpdate','onGroupBulletinChange','onGroupListUpdate','Hbmxs','GOhbj','18943400fGywTk','828382oAxuxA','onGroupConfMemberChange:','32SxZgCx','18nJSolZ','onGroupArkInviteStateResult','onGroupListUpdate:','onMemberInfoChange','bnxoo','Hhqhn','onShutUpMemberListChanged','24040ehqSXN','onJoinGroupNoVerifyFlag','wtypM','tnWET','onGroupArkInviteStateResult:','onJoinGroupNoVerifyFlag:','280248IwEbPY','onGroupFirstBulletinNotify','onGroupNotifiesUnreadCountUpdated','onGetGroupBulletinListResult:','onGroupBulletinChange:','onSearchMemberChange:','onGroupBulletinRemindNotify','onJoinGroupNotify:','4630640iLAaaR','onMemberListChange:','onGroupAllInfoChange:','nCzpg','onGroupNotifiesUpdated','HrewA','onGroupAllInfoChange','onGroupBulletinRichMediaDownloadComplete'];_0x58e9=function(){return _0x57d0aa;};return _0x58e9();}var _0x218d5e=_0x3f8d;function _0x3f8d(_0x5000bf,_0x48d5a8){var _0x58e9e4=_0x58e9();return _0x3f8d=function(_0x3f8d81,_0x576aa0){_0x3f8d81=_0x3f8d81-0xb9;var _0x2cd239=_0x58e9e4[_0x3f8d81];return _0x2cd239;},_0x3f8d(_0x5000bf,_0x48d5a8);}(function(_0x5f394c,_0x49e43b){var _0x110335=_0x3f8d,_0x311840=_0x5f394c();while(!![]){try{var _0x3eb94e=-parseInt(_0x110335(0xe3))/0x1+-parseInt(_0x110335(0xf7))/0x2+-parseInt(_0x110335(0xc1))/0x3*(parseInt(_0x110335(0xf9))/0x4)+parseInt(_0x110335(0xc9))/0x5+-parseInt(_0x110335(0xfa))/0x6*(-parseInt(_0x110335(0xd5))/0x7)+-parseInt(_0x110335(0xbb))/0x8*(parseInt(_0x110335(0xed))/0x9)+parseInt(_0x110335(0xf6))/0xa;if(_0x3eb94e===_0x49e43b)break;else _0x311840['push'](_0x311840['shift']());}catch(_0x555e64){_0x311840['push'](_0x311840['shift']());}}}(_0x58e9,0x7132a));export class GroupListener{['onGroupMemberLevelInfoChange'](..._0x5e88c2){}[_0x218d5e(0xe4)](..._0x84e8dc){}[_0x218d5e(0xcf)](..._0x26d794){}[_0x218d5e(0xf2)](..._0x376304){}['onGroupBulletinRemindNotify'](..._0x523412){}[_0x218d5e(0xfb)](..._0x80a029){}['onGroupBulletinRichMediaDownloadComplete'](..._0x12279f){}[_0x218d5e(0xdb)](..._0x206601){}[_0x218d5e(0xeb)](..._0x1cfad6){}[_0x218d5e(0xf1)](..._0x3a8f2f){}['onGroupFirstBulletinNotify'](..._0xfc5177){}['onGroupListUpdate'](_0x22cee5,_0x5261e9){}['onGroupNotifiesUpdated'](_0x42159c,_0xaad35a){}[_0x218d5e(0xf0)](..._0x2dcdda){}[_0x218d5e(0xc3)](..._0x19c985){}['onGroupSingleScreenNotifies'](..._0x3bf940){}[_0x218d5e(0xd9)](..._0x2e984f){}[_0x218d5e(0xea)](..._0x1093c7){}[_0x218d5e(0xe0)](..._0x5096af){}[_0x218d5e(0xbc)](..._0x372af1){}[_0x218d5e(0xfd)](_0x4b7b2b,_0x30dceb,_0x3bdccd){}['onMemberListChange'](_0x3910e7){}[_0x218d5e(0xe5)](..._0x304092){}[_0x218d5e(0xba)](..._0x4296b9){}}export class DebugGroupListener{[_0x218d5e(0xda)](..._0x3e22cf){var _0x160ea4=_0x218d5e;console[_0x160ea4(0xef)](_0x160ea4(0xd8),..._0x3e22cf);}['onGetGroupBulletinListResult'](..._0x2a31c0){var _0x577d45=_0x218d5e,_0x1bc4bc={'odlfF':_0x577d45(0xc4)};console[_0x577d45(0xef)](_0x1bc4bc['odlfF'],..._0x2a31c0);}['onGroupAllInfoChange'](..._0x1c4f42){var _0x1138b5=_0x218d5e,_0x3ac55e={'hlblI':_0x1138b5(0xcb)};console[_0x1138b5(0xef)](_0x3ac55e[_0x1138b5(0xd2)],..._0x1c4f42);}[_0x218d5e(0xf2)](..._0x32c184){var _0x32166f=_0x218d5e,_0x3a8485={'bnxoo':_0x32166f(0xc5)};console[_0x32166f(0xef)](_0x3a8485[_0x32166f(0xfe)],..._0x32c184);}[_0x218d5e(0xc7)](..._0x97b25e){var _0x42a418=_0x218d5e;console[_0x42a418(0xef)](_0x42a418(0xd6),..._0x97b25e);}['onGroupArkInviteStateResult'](..._0x5e2d57){var _0x2d2daa=_0x218d5e,_0x1dafe5={'lDWMF':_0x2d2daa(0xbf)};console[_0x2d2daa(0xef)](_0x1dafe5['lDWMF'],..._0x5e2d57);}[_0x218d5e(0xd0)](..._0x2b2262){var _0x4c86c2=_0x218d5e,_0x305d76={'sIhEl':_0x4c86c2(0xe2)};console[_0x4c86c2(0xef)](_0x305d76[_0x4c86c2(0xd4)],..._0x2b2262);}[_0x218d5e(0xdb)](..._0x3d44fd){var _0x33ce03=_0x218d5e,_0x2f2fc0={'Hbmxs':_0x33ce03(0xf8)};console[_0x33ce03(0xef)](_0x2f2fc0[_0x33ce03(0xf4)],..._0x3d44fd);}[_0x218d5e(0xeb)](..._0x1db44d){var _0x133e05=_0x218d5e,_0x16ee1f={'HzLWr':'onGroupDetailInfoChange:'};console[_0x133e05(0xef)](_0x16ee1f[_0x133e05(0xe6)],..._0x1db44d);}[_0x218d5e(0xf1)](..._0x17768f){var _0x3d697c=_0x218d5e,_0x19c3c9={'pmoIZ':'onGroupExtListUpdate:'};console[_0x3d697c(0xef)](_0x19c3c9[_0x3d697c(0xdf)],..._0x17768f);}[_0x218d5e(0xc2)](..._0x5d772b){var _0x33ed7a=_0x218d5e,_0x27cf0b={'nCzpg':'onGroupFirstBulletinNotify:'};console[_0x33ed7a(0xef)](_0x27cf0b[_0x33ed7a(0xcc)],..._0x5d772b);}[_0x218d5e(0xf3)](..._0x41da4f){var _0x10ff13=_0x218d5e,_0x2570c9={'suUhG':_0x10ff13(0xfc)};console['log'](_0x2570c9['suUhG'],..._0x41da4f);}[_0x218d5e(0xcd)](..._0x1593e0){var _0x1e72b5=_0x218d5e,_0x353e16={'Exjxv':_0x1e72b5(0xd1)};console['log'](_0x353e16[_0x1e72b5(0xde)],..._0x1593e0);}['onGroupBulletinRichMediaProgressUpdate'](..._0x2ebccd){var _0x1d74fe=_0x218d5e,_0x140635={'bSJyY':'onGroupBulletinRichMediaProgressUpdate:'};console[_0x1d74fe(0xef)](_0x140635[_0x1d74fe(0xec)],..._0x2ebccd);}[_0x218d5e(0xc3)](..._0x29e119){var _0x52b1b4=_0x218d5e,_0x436c52={'GOhbj':'onGroupNotifiesUnreadCountUpdated:'};console[_0x52b1b4(0xef)](_0x436c52[_0x52b1b4(0xf5)],..._0x29e119);}[_0x218d5e(0xdd)](..._0x42b263){var _0x2ff743=_0x218d5e,_0x36a764={'Xdacv':_0x2ff743(0xd7)};console['log'](_0x36a764[_0x2ff743(0xd3)],..._0x42b263);}[_0x218d5e(0xd9)](..._0x33d22d){var _0x3aa4c2=_0x218d5e,_0x2088b7={'JnOff':'onGroupsMsgMaskResult:'};console[_0x3aa4c2(0xef)](_0x2088b7[_0x3aa4c2(0xe8)],..._0x33d22d);}[_0x218d5e(0xea)](..._0x1ec212){var _0x3432be=_0x218d5e,_0x485bac={'uYaTj':_0x3432be(0xe7)};console[_0x3432be(0xef)](_0x485bac[_0x3432be(0xe1)],..._0x1ec212);}[_0x218d5e(0xe0)](..._0x74f76c){var _0x279c7e=_0x218d5e,_0x341a41={'wtypM':_0x279c7e(0xc8)};console[_0x279c7e(0xef)](_0x341a41[_0x279c7e(0xbd)],..._0x74f76c);}[_0x218d5e(0xbc)](..._0x3b1851){var _0x48d1ce=_0x218d5e,_0x5955e0={'HrewA':_0x48d1ce(0xc0)};console[_0x48d1ce(0xef)](_0x5955e0[_0x48d1ce(0xce)],..._0x3b1851);}[_0x218d5e(0xfd)](_0x3a4970,_0x19e270,_0x3a71e0){var _0x2ae7c7=_0x218d5e,_0x3b0c36={'PMeIW':'onMemberInfoChange:'};console[_0x2ae7c7(0xef)](_0x3b0c36[_0x2ae7c7(0xdc)],_0x3a4970,_0x19e270,_0x3a71e0);}['onMemberListChange'](..._0x57514f){var _0x4e097c=_0x218d5e,_0x56dfaf={'nKyMG':_0x4e097c(0xca)};console[_0x4e097c(0xef)](_0x56dfaf[_0x4e097c(0xee)],..._0x57514f);}[_0x218d5e(0xe5)](..._0x506ab8){var _0x565c55=_0x218d5e,_0x525547={'Hhqhn':_0x565c55(0xc6)};console[_0x565c55(0xef)](_0x525547[_0x565c55(0xb9)],..._0x506ab8);}[_0x218d5e(0xba)](..._0x44a310){var _0x26e339=_0x218d5e,_0x2e1158={'tnWET':_0x26e339(0xe9)};console[_0x26e339(0xef)](_0x2e1158[_0x26e339(0xbe)],..._0x44a310);}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelLoginListener.js b/src/core.lib/src/listeners/NodeIKernelLoginListener.js index 6b15c0ce..d86f42e2 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x33e7(){var _0x43aa0a=['onQRCodeSessionUserScaned','onLoginDisConnected','onLoginConnecting','onLoginState','onLoginFailed','onQRCodeSessionQuickLoginFailed','1138132PvxRks','onQRCodeLoginSucceed','onUserLoggedIn','99zdHuzH','onLogoutSucceed','40jrbBZd','396dfdWHa','1308522lGoaET','onPasswordLoginFailed','2119gjHxoR','3280529ERbvPC','onQRCodeGetPicture','2396493ufkpiE','onQQLoginNumLimited','3285156qIvFWK','OnConfirmUnusualDeviceFailed','3Yjfygt','35qsceVf','8285896dGNqoc'];_0x33e7=function(){return _0x43aa0a;};return _0x33e7();}function _0x233a(_0x207bb9,_0x3c18ec){var _0x33e783=_0x33e7();return _0x233a=function(_0x233aed,_0x483e35){_0x233aed=_0x233aed-0x1e2;var _0xa662e8=_0x33e783[_0x233aed];return _0xa662e8;},_0x233a(_0x207bb9,_0x3c18ec);}var _0x1b4000=_0x233a;(function(_0x17388d,_0x1d5bc6){var _0x1ce101=_0x233a,_0x373d0b=_0x17388d();while(!![]){try{var _0xf07559=parseInt(_0x1ce101(0x1f7))/0x1*(parseInt(_0x1ce101(0x1f4))/0x2)+parseInt(_0x1ce101(0x1e5))/0x3*(-parseInt(_0x1ce101(0x1ee))/0x4)+-parseInt(_0x1ce101(0x1e6))/0x5*(-parseInt(_0x1ce101(0x1f5))/0x6)+-parseInt(_0x1ce101(0x1f8))/0x7+parseInt(_0x1ce101(0x1e7))/0x8+-parseInt(_0x1ce101(0x1fa))/0x9*(-parseInt(_0x1ce101(0x1f3))/0xa)+parseInt(_0x1ce101(0x1f1))/0xb*(-parseInt(_0x1ce101(0x1e3))/0xc);if(_0xf07559===_0x1d5bc6)break;else _0x373d0b['push'](_0x373d0b['shift']());}catch(_0x8526a2){_0x373d0b['push'](_0x373d0b['shift']());}}}(_0x33e7,0xcaa11));export class LoginListener{['onLoginConnected'](..._0x2ecb96){}[_0x1b4000(0x1e9)](..._0x180a3a){}[_0x1b4000(0x1ea)](..._0x26218b){}[_0x1b4000(0x1f9)](_0x5c2334){}['onQRCodeLoginPollingStarted'](..._0x488cc1){}[_0x1b4000(0x1e8)](..._0x15225d){}[_0x1b4000(0x1ef)](_0x8f2976){}['onQRCodeSessionFailed'](..._0x2d9795){}[_0x1b4000(0x1ec)](..._0x525c32){}[_0x1b4000(0x1f2)](..._0x1db38d){}['onLogoutFailed'](..._0x1054ca){}[_0x1b4000(0x1f0)](..._0x3f8d8a){}[_0x1b4000(0x1ed)](..._0x9cc22e){}[_0x1b4000(0x1f6)](..._0x3b54bf){}[_0x1b4000(0x1e4)](..._0x503ee3){}[_0x1b4000(0x1e2)](..._0x44938d){}[_0x1b4000(0x1eb)](..._0xa1a95b){}} \ No newline at end of file +var _0x4aaa9d=_0x1c98;(function(_0x4f8fda,_0x15fc33){var _0x5e74d2=_0x1c98,_0x3a6147=_0x4f8fda();while(!![]){try{var _0x193cc6=parseInt(_0x5e74d2(0x12c))/0x1*(parseInt(_0x5e74d2(0x123))/0x2)+-parseInt(_0x5e74d2(0x133))/0x3+-parseInt(_0x5e74d2(0x120))/0x4+-parseInt(_0x5e74d2(0x122))/0x5+-parseInt(_0x5e74d2(0x12f))/0x6+parseInt(_0x5e74d2(0x126))/0x7*(-parseInt(_0x5e74d2(0x125))/0x8)+parseInt(_0x5e74d2(0x128))/0x9;if(_0x193cc6===_0x15fc33)break;else _0x3a6147['push'](_0x3a6147['shift']());}catch(_0x2f2565){_0x3a6147['push'](_0x3a6147['shift']());}}}(_0x61f9,0x57ad5));function _0x1c98(_0x2c00cf,_0x4bc953){var _0x61f9ce=_0x61f9();return _0x1c98=function(_0x1c988c,_0x382c10){_0x1c988c=_0x1c988c-0x11f;var _0x5435b8=_0x61f9ce[_0x1c988c];return _0x5435b8;},_0x1c98(_0x2c00cf,_0x4bc953);}function _0x61f9(){var _0x5c3bac=['1094064GeZyfh','OnConfirmUnusualDeviceFailed','onLoginConnecting','onPasswordLoginFailed','1214478OIwpUN','onQQLoginNumLimited','1268756dTgGvp','onLogoutFailed','316925cDHbWr','2cIOKjm','onLoginState','481616YqUsNF','21zMVuVc','onQRCodeGetPicture','9833832WXvrxF','onQRCodeSessionUserScaned','onLoginDisConnected','onQRCodeSessionFailed','414827BEYbVo','onQRCodeLoginPollingStarted','onLoginFailed'];_0x61f9=function(){return _0x5c3bac;};return _0x61f9();}export class LoginListener{['onLoginConnected'](..._0xa66cb6){}[_0x4aaa9d(0x12a)](..._0x4169cf){}[_0x4aaa9d(0x131)](..._0x2f2387){}[_0x4aaa9d(0x127)](_0x383ea4){}[_0x4aaa9d(0x12d)](..._0x2eb764){}[_0x4aaa9d(0x129)](..._0x33317b){}['onQRCodeLoginSucceed'](_0x1ec2ae){}[_0x4aaa9d(0x12b)](..._0x5bbcbc){}[_0x4aaa9d(0x12e)](..._0x2fbba1){}['onLogoutSucceed'](..._0x2470ae){}[_0x4aaa9d(0x121)](..._0x1c10e9){}['onUserLoggedIn'](..._0x5be1d8){}['onQRCodeSessionQuickLoginFailed'](..._0x210865){}[_0x4aaa9d(0x132)](..._0x409169){}[_0x4aaa9d(0x130)](..._0x5c9fc5){}[_0x4aaa9d(0x11f)](..._0x55c317){}[_0x4aaa9d(0x124)](..._0x511460){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelMsgListener.js b/src/core.lib/src/listeners/NodeIKernelMsgListener.js index aab023c5..bad3732d 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -var _0x235713=_0x1be7;function _0x301a(){var _0x5908e0=['onGroupGuildUpdate','462254qvfSlB','12000GyPXBq','onFeedEventUpdate','onContactUnreadCntUpdate','onGuildInteractiveUpdate','onImportOldDbProgressUpdate','onMsgSecurityNotify','23784eosGVO','onHitEmojiKeywordResult','onFirstViewDirectMsgUpdate','onHitCsRelatedEmojiResult','onMsgQRCodeStatusChanged','onUserChannelTabStatusChanged','onGroupTransferInfoUpdate','onMsgEventListUpdate','onUnreadCntAfterFirstView','222kKprtZ','onRecvOnlineFileMsg','onMsgAbstractUpdate','onGroupTransferInfoAdd','onLineDev','5640050gZKYGv','onGuildNotificationAbstractUpdate','onRichMediaProgerssUpdate','onRecvS2CMsg','215iaXuAz','onRecvMsgSvrRspTransInfo','118238xRgrPD','onMsgWithRichLinkInfoUpdate','onNtMsgSyncEnd','56AaaOZz','onlineStatusSmallIconDownloadPush','onMsgInfoListAdd','onSysMsgNotification','onGrabPasswordRedBag','onCustomWithdrawConfigUpdate','onAddSendMsg','onMsgSettingUpdate','onRecvGroupGuildFlag','onUserSecQualityChanged','onTempChatInfoUpdate','onGuildMsgAbFlagChanged','onFileMsgCome','onBroadcastHelperDownloadComplete','onGroupFileInfoAdd','onEmojiResourceUpdate','onUnreadCntUpdate','onNtFirstViewMsgSyncEnd','onSearchGroupFileInfoUpdate','onBroadcastHelperProgerssUpdate','onRichMediaUploadComplete','onMsgInfoListUpdate','onRedTouchChanged','onSendMsgError','onRecvSysMsg','1904895ZlBeEE','onRecvMsg','onFirstViewGroupGuildMapping','onReadFeedEventUpdate','onRecvUDCFlag','onEmojiDownloadComplete','181468pxrTCa'];_0x301a=function(){return _0x5908e0;};return _0x301a();}(function(_0x1ea817,_0x201a5d){var _0x5d812f=_0x1be7,_0x4750ac=_0x1ea817();while(!![]){try{var _0x514558=parseInt(_0x5d812f(0x1d3))/0x1+parseInt(_0x5d812f(0x1f7))/0x2+-parseInt(_0x5d812f(0x1c8))/0x3*(-parseInt(_0x5d812f(0x1f8))/0x4)+parseInt(_0x5d812f(0x1d1))/0x5*(parseInt(_0x5d812f(0x1bf))/0x6)+-parseInt(_0x5d812f(0x1f5))/0x7*(-parseInt(_0x5d812f(0x1d6))/0x8)+-parseInt(_0x5d812f(0x1ef))/0x9+-parseInt(_0x5d812f(0x1cd))/0xa;if(_0x514558===_0x201a5d)break;else _0x4750ac['push'](_0x4750ac['shift']());}catch(_0x495905){_0x4750ac['push'](_0x4750ac['shift']());}}}(_0x301a,0x240a9));function _0x1be7(_0x10a9a2,_0x4485f9){var _0x301a70=_0x301a();return _0x1be7=function(_0x1be736,_0x2889b7){_0x1be736=_0x1be736-0x1ba;var _0x2cb048=_0x301a70[_0x1be736];return _0x2cb048;},_0x1be7(_0x10a9a2,_0x4485f9);}export class MsgListener{[_0x235713(0x1dc)](_0x34610b){}[_0x235713(0x1e3)](_0x154429){}['onBroadcastHelperProgressUpdate'](_0x4ac902){}['onChannelFreqLimitInfoUpdate'](_0x1ac23c,_0x454de8,_0x172218){}[_0x235713(0x1bb)](_0x5efde3){}[_0x235713(0x1db)](_0x138267){}['onDraftUpdate'](_0x39fab4,_0x9b2690,_0x5b356a){}[_0x235713(0x1f4)](_0x2300c1){}[_0x235713(0x1e5)](_0xf6bea1){}[_0x235713(0x1ba)](_0x1fe30c){}[_0x235713(0x1e2)](_0x1d0854){}[_0x235713(0x1c1)](_0x3bcdfb){}[_0x235713(0x1f1)](_0x204e0d){}[_0x235713(0x1da)](_0x35a470,_0x784376,_0x2cf941,_0x1a0ac2,_0x4a6f73){}[_0x235713(0x1e4)](_0xb8944f){}['onGroupFileInfoUpdate'](_0x25b070){}[_0x235713(0x1f6)](_0x16a9dd){}[_0x235713(0x1cb)](_0xe416c1){}[_0x235713(0x1c5)](_0x5d2fa4){}[_0x235713(0x1bc)](_0x62bd){}[_0x235713(0x1e1)](_0x490c5a){}[_0x235713(0x1ce)](_0x383473){}[_0x235713(0x1c2)](_0x801667){}[_0x235713(0x1c0)](_0x5e7e60){}['onHitRelatedEmojiResult'](_0x30e453){}[_0x235713(0x1bd)](_0x3701f4){}['onInputStatusPush'](_0x14768d){}['onKickedOffLine'](_0x532c09){}[_0x235713(0x1cc)](_0xd86441){}['onLogLevelChanged'](_0xeb950d){}[_0x235713(0x1ca)](_0x9979d9){}['onMsgBoxChanged'](_0x360eca){}['onMsgDelete'](_0x6bdb4b,_0x19bc2f){}[_0x235713(0x1c6)](_0x514ba0){}[_0x235713(0x1d8)](_0xec5e3c){}[_0x235713(0x1eb)](_0x2f812b){}[_0x235713(0x1c3)](_0x49216c){}['onMsgRecall'](_0xfa9f96,_0x40b9cc,_0x5ca696){}[_0x235713(0x1be)](_0x3db8a3){}[_0x235713(0x1dd)](_0x2b4cee){}[_0x235713(0x1e7)](){}[_0x235713(0x1d5)](){}['onNtMsgSyncStart'](){}[_0x235713(0x1f2)](_0x20dec1){}[_0x235713(0x1de)](_0x3fee6f){}[_0x235713(0x1f0)](_0x245916){}[_0x235713(0x1d2)](_0x2cfcd8,_0x5f1f92,_0x5d9e28,_0x16f54e,_0x554a59,_0x5cb3b3){}[_0x235713(0x1c9)](_0x12fe95){}[_0x235713(0x1d0)](_0x5a2a88){}[_0x235713(0x1ee)](_0x3958db){}[_0x235713(0x1f3)](_0xd5fede){}['onRichMediaDownloadComplete'](_0x5c39cf){}[_0x235713(0x1cf)](_0x129045){}[_0x235713(0x1ea)](_0x22dd16){}[_0x235713(0x1e8)](_0x5762fa){}[_0x235713(0x1ed)](_0x18927d,_0x3f0e1f,_0x451d08,_0x45bef7){}[_0x235713(0x1d9)](_0x347c1e,_0x34bab1,_0x4145e4,_0x141cff){}[_0x235713(0x1e0)](_0x102793){}[_0x235713(0x1c7)](_0x28410d){}[_0x235713(0x1e6)](_0x43c7){}[_0x235713(0x1c4)](_0x1d6635){}['onUserOnlineStatusChanged'](_0x1468d7){}['onUserTabStatusChanged'](_0x5dca98){}['onlineStatusBigIconDownloadPush'](_0x2b2d4,_0x54e836,_0x47a0d2){}[_0x235713(0x1d7)](_0x292edb,_0x393c01,_0x398fc9){}[_0x235713(0x1df)](..._0x4049b2){}[_0x235713(0x1d4)](..._0x5a1564){}[_0x235713(0x1ec)](..._0x3eeee8){}[_0x235713(0x1e9)](..._0x1acf19){}} \ No newline at end of file +var _0x596b13=_0x6b0f;(function(_0x5598e1,_0x40241f){var _0x25728f=_0x6b0f,_0x4b6fc1=_0x5598e1();while(!![]){try{var _0x18486f=parseInt(_0x25728f(0xf5))/0x1+parseInt(_0x25728f(0xf3))/0x2+-parseInt(_0x25728f(0xff))/0x3*(-parseInt(_0x25728f(0xd5))/0x4)+-parseInt(_0x25728f(0xd8))/0x5*(parseInt(_0x25728f(0xd2))/0x6)+parseInt(_0x25728f(0xe0))/0x7+parseInt(_0x25728f(0xf1))/0x8+-parseInt(_0x25728f(0xf2))/0x9;if(_0x18486f===_0x40241f)break;else _0x4b6fc1['push'](_0x4b6fc1['shift']());}catch(_0x13c24c){_0x4b6fc1['push'](_0x4b6fc1['shift']());}}}(_0x5bc9,0xde720));function _0x6b0f(_0x1aa0a1,_0x247573){var _0x5bc99d=_0x5bc9();return _0x6b0f=function(_0x6b0f00,_0x425abc){_0x6b0f00=_0x6b0f00-0xce;var _0x2ff1a8=_0x5bc99d[_0x6b0f00];return _0x2ff1a8;},_0x6b0f(_0x1aa0a1,_0x247573);}function _0x5bc9(){var _0x1a8110=['onKickedOffLine','onMsgEventListUpdate','onEmojiResourceUpdate','onGroupTransferInfoAdd','onMsgSecurityNotify','onLogLevelChanged','onMsgInfoListUpdate','onTempChatInfoUpdate','onMsgInfoListAdd','onMsgQRCodeStatusChanged','onFirstViewGroupGuildMapping','onEmojiDownloadComplete','126246TCZVpv','onReadFeedEventUpdate','onGuildMsgAbFlagChanged','4dfyeeW','onCustomWithdrawConfigUpdate','onUnreadCntAfterFirstView','175WYnSKa','onMsgAbstractUpdate','onAddSendMsg','onGroupTransferInfoUpdate','onMsgRecall','onUnreadCntUpdate','onGuildInteractiveUpdate','onLineDev','5510113MuyRrI','onChannelFreqLimitInfoUpdate','onFileMsgCome','onSearchGroupFileInfoUpdate','onImportOldDbProgressUpdate','onMsgDelete','onFeedEventUpdate','onMsgBoxChanged','onHitCsRelatedEmojiResult','onlineStatusSmallIconDownloadPush','onRecvMsgSvrRspTransInfo','onUserChannelTabStatusChanged','onRecvS2CMsg','onUserOnlineStatusChanged','onRichMediaUploadComplete','onRecvSysMsg','onGuildNotificationAbstractUpdate','762776FOACrO','15856452ezeRTR','2051704VHClMK','onUserSecQualityChanged','671308adJIHS','onRecvUDCFlag','onRecvGroupGuildFlag','onRecvMsg','onDraftUpdate','onContactUnreadCntUpdate','onRichMediaDownloadComplete','onFirstViewDirectMsgUpdate','onRedTouchChanged','onSysMsgNotification','2489199tcEkkQ','onRecvOnlineFileMsg','onGroupFileInfoUpdate','onNtFirstViewMsgSyncEnd','onBroadcastHelperProgressUpdate'];_0x5bc9=function(){return _0x1a8110;};return _0x5bc9();}export class MsgListener{[_0x596b13(0xda)](_0x54972d){}['onBroadcastHelperDownloadComplete'](_0x1bbfcb){}[_0x596b13(0x103)](_0x595d01){}[_0x596b13(0xe1)](_0x2b220a,_0x2fad29,_0x3db93f){}[_0x596b13(0xfa)](_0x23b2b4){}[_0x596b13(0xd6)](_0x3ab01f){}[_0x596b13(0xf9)](_0x18d33e,_0x4ae35b,_0x496ef4){}[_0x596b13(0xd1)](_0x462f47){}[_0x596b13(0x106)](_0x1d135e){}[_0x596b13(0xe6)](_0xa90249){}[_0x596b13(0xe2)](_0x2cac50){}[_0x596b13(0xfc)](_0x5b57a3){}[_0x596b13(0xd0)](_0x5a18a6){}['onGrabPasswordRedBag'](_0x15a7ec,_0x554376,_0x278063,_0x2b6ddc,_0x16752a){}['onGroupFileInfoAdd'](_0x5c4785){}[_0x596b13(0x101)](_0x2607c0){}['onGroupGuildUpdate'](_0x478212){}[_0x596b13(0x107)](_0x151a11){}[_0x596b13(0xdb)](_0x1da060){}[_0x596b13(0xde)](_0x49cb24){}[_0x596b13(0xd4)](_0x264912){}[_0x596b13(0xf0)](_0x16fe23){}[_0x596b13(0xe8)](_0x5908e3){}['onHitEmojiKeywordResult'](_0x38d1cb){}['onHitRelatedEmojiResult'](_0x10052c){}[_0x596b13(0xe4)](_0x434d26){}['onInputStatusPush'](_0x523f19){}[_0x596b13(0x104)](_0x4fd505){}[_0x596b13(0xdf)](_0x204c80){}[_0x596b13(0x109)](_0x190712){}[_0x596b13(0xd9)](_0x3493df){}[_0x596b13(0xe7)](_0x27592e){}[_0x596b13(0xe5)](_0x3b8636,_0x1e5682){}[_0x596b13(0x105)](_0x8f1bed){}[_0x596b13(0xce)](_0x112341){}[_0x596b13(0x10a)](_0x1ed733){}[_0x596b13(0xcf)](_0x4b12f8){}[_0x596b13(0xdc)](_0x343181,_0x44d986,_0x44b4b0){}[_0x596b13(0x108)](_0x5959b0){}['onMsgSettingUpdate'](_0x168b43){}[_0x596b13(0x102)](){}['onNtMsgSyncEnd'](){}['onNtMsgSyncStart'](){}[_0x596b13(0xd3)](_0x51c0d3){}[_0x596b13(0xf7)](_0x46d9f6){}[_0x596b13(0xf8)](_0x3c85e7){}[_0x596b13(0xea)](_0x389ed7,_0x28c4ea,_0x4a06e0,_0x57bac6,_0x3c7ba4,_0x4d44ea){}[_0x596b13(0x100)](_0x509b10){}[_0x596b13(0xec)](_0x49d8fc){}[_0x596b13(0xef)](_0x3b147e){}[_0x596b13(0xf6)](_0x563dff){}[_0x596b13(0xfb)](_0x42f5ba){}['onRichMediaProgerssUpdate'](_0x25aafd){}[_0x596b13(0xee)](_0xd1f5e2){}[_0x596b13(0xe3)](_0x14c93a){}['onSendMsgError'](_0x5bcc0b,_0x11b32e,_0x15db26,_0xb410f5){}[_0x596b13(0xfe)](_0x15d0e9,_0x13087c,_0x565ff7,_0xd260da){}[_0x596b13(0x10b)](_0x15d08b){}[_0x596b13(0xd7)](_0x46efb7){}[_0x596b13(0xdd)](_0x39e581){}[_0x596b13(0xeb)](_0x36973e){}[_0x596b13(0xed)](_0x174c63){}['onUserTabStatusChanged'](_0x315f37){}['onlineStatusBigIconDownloadPush'](_0x53ccd5,_0x539178,_0x4c5854){}[_0x596b13(0xe9)](_0x455d43,_0x23b255,_0x2b9381){}[_0x596b13(0xf4)](..._0x3a7f6a){}['onMsgWithRichLinkInfoUpdate'](..._0x14ae36){}[_0x596b13(0xfd)](..._0x29323b){}['onBroadcastHelperProgerssUpdate'](..._0x2ffdcc){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelProfileListener.js b/src/core.lib/src/listeners/NodeIKernelProfileListener.js index cb8d3621..108b8843 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -var _0x514c59=_0x25d9;function _0x25d9(_0x56bfea,_0x57c787){var _0x2eab9c=_0x2eab();return _0x25d9=function(_0x25d9b2,_0x59a468){_0x25d9b2=_0x25d9b2-0x1a2;var _0x2f163f=_0x2eab9c[_0x25d9b2];return _0x2f163f;},_0x25d9(_0x56bfea,_0x57c787);}(function(_0x531abf,_0x2a5007){var _0x4f3845=_0x25d9,_0x562748=_0x531abf();while(!![]){try{var _0xb90b81=parseInt(_0x4f3845(0x1ab))/0x1+parseInt(_0x4f3845(0x1a8))/0x2*(-parseInt(_0x4f3845(0x1a2))/0x3)+parseInt(_0x4f3845(0x1a9))/0x4*(parseInt(_0x4f3845(0x1a6))/0x5)+parseInt(_0x4f3845(0x1aa))/0x6+parseInt(_0x4f3845(0x1a4))/0x7*(-parseInt(_0x4f3845(0x1ad))/0x8)+parseInt(_0x4f3845(0x1ae))/0x9*(-parseInt(_0x4f3845(0x1ac))/0xa)+parseInt(_0x4f3845(0x1a3))/0xb;if(_0xb90b81===_0x2a5007)break;else _0x562748['push'](_0x562748['shift']());}catch(_0x39309b){_0x562748['push'](_0x562748['shift']());}}}(_0x2eab,0xb2527));export class ProfileListener{['onProfileSimpleChanged'](..._0x5cc0a0){}[_0x514c59(0x1a5)](_0x18edb6){}['onStatusUpdate'](..._0x505024){}[_0x514c59(0x1a7)](..._0xf7a59c){}['onStrangerRemarkChanged'](..._0x3a6481){}}function _0x2eab(){var _0xe61f00=['onProfileDetailInfoChanged','5wieSuH','onSelfStatusChanged','20UdDopH','4614916zXBawL','2150694RwcwCX','148487VXcjlZ','10SzlSDk','945328XdsxMz','9484767XMRZAk','33375xFINtY','10382361PyjNuO','42DrmAep'];_0x2eab=function(){return _0xe61f00;};return _0x2eab();} \ No newline at end of file +var _0xe37d97=_0x57f2;(function(_0x308d62,_0x9930dd){var _0x43b6b2=_0x57f2,_0xdc42d1=_0x308d62();while(!![]){try{var _0x12326e=-parseInt(_0x43b6b2(0x10c))/0x1+parseInt(_0x43b6b2(0x10e))/0x2+-parseInt(_0x43b6b2(0x10a))/0x3*(-parseInt(_0x43b6b2(0x110))/0x4)+-parseInt(_0x43b6b2(0x112))/0x5*(-parseInt(_0x43b6b2(0x115))/0x6)+parseInt(_0x43b6b2(0x109))/0x7*(-parseInt(_0x43b6b2(0x108))/0x8)+-parseInt(_0x43b6b2(0x10d))/0x9*(-parseInt(_0x43b6b2(0x10b))/0xa)+-parseInt(_0x43b6b2(0x113))/0xb;if(_0x12326e===_0x9930dd)break;else _0xdc42d1['push'](_0xdc42d1['shift']());}catch(_0x24afa3){_0xdc42d1['push'](_0xdc42d1['shift']());}}}(_0x5c94,0x4ee5e));function _0x5c94(){var _0x20ad77=['onProfileDetailInfoChanged','728634ACooCk','onStrangerRemarkChanged','776RopeAl','31241IjxdqF','3nyZtok','5602970poHSaz','220485LGVOpx','9NQUsme','190188KbbzXg','onProfileSimpleChanged','2498828PkriDu','onSelfStatusChanged','5zPkzQQ','4674725dROyKN'];_0x5c94=function(){return _0x20ad77;};return _0x5c94();}function _0x57f2(_0x67a27a,_0x52d205){var _0x5c9439=_0x5c94();return _0x57f2=function(_0x57f22c,_0x4e2f4d){_0x57f22c=_0x57f22c-0x107;var _0x2f6a3c=_0x5c9439[_0x57f22c];return _0x2f6a3c;},_0x57f2(_0x67a27a,_0x52d205);}export class ProfileListener{[_0xe37d97(0x10f)](..._0xfc170b){}[_0xe37d97(0x114)](_0x69ec04){}['onStatusUpdate'](..._0x12524e){}[_0xe37d97(0x111)](..._0x222f24){}[_0xe37d97(0x107)](..._0x24c5c7){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelRobotListener.js b/src/core.lib/src/listeners/NodeIKernelRobotListener.js index f43a76c6..fe695eb7 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -function _0x36cc(_0x5412ae,_0x45967a){var _0x2f59e7=_0x2f59();return _0x36cc=function(_0x36cc05,_0x2c3e91){_0x36cc05=_0x36cc05-0x1c9;var _0x4e499d=_0x2f59e7[_0x36cc05];return _0x4e499d;},_0x36cc(_0x5412ae,_0x45967a);}function _0x2f59(){var _0x1293a3=['173511BasYGw','24279CotkmM','28dgDlcN','73755IcZGMg','232aLnIVH','onRobotProfileChanged','102xVMJjs','124224PWoKcB','1610807ZuGCvQ','255117gRUaLo','1911470AKtogx','onRobotFriendListChanged','132Ydqzui'];_0x2f59=function(){return _0x1293a3;};return _0x2f59();}var _0x298129=_0x36cc;(function(_0x4409c5,_0x1c0fe6){var _0x38dd50=_0x36cc,_0xa6b014=_0x4409c5();while(!![]){try{var _0x24e36f=parseInt(_0x38dd50(0x1d4))/0x1+-parseInt(_0x38dd50(0x1d1))/0x2*(parseInt(_0x38dd50(0x1cc))/0x3)+-parseInt(_0x38dd50(0x1ca))/0x4*(parseInt(_0x38dd50(0x1ce))/0x5)+-parseInt(_0x38dd50(0x1d2))/0x6*(-parseInt(_0x38dd50(0x1cd))/0x7)+-parseInt(_0x38dd50(0x1cf))/0x8*(-parseInt(_0x38dd50(0x1cb))/0x9)+parseInt(_0x38dd50(0x1d5))/0xa+parseInt(_0x38dd50(0x1d3))/0xb;if(_0x24e36f===_0x1c0fe6)break;else _0xa6b014['push'](_0xa6b014['shift']());}catch(_0x488087){_0xa6b014['push'](_0xa6b014['shift']());}}}(_0x2f59,0x51cea));export class KernelRobotListener{[_0x298129(0x1c9)](..._0x799b52){}['onRobotListChanged'](..._0xc0ff5a){}[_0x298129(0x1d0)](..._0x59d860){}} \ No newline at end of file +function _0x47ac(){var _0x5a4d46=['onRobotProfileChanged','5qWCgrq','1246StDaLn','4458XkbanW','44rueOwa','1940790dUgfwm','10328rxCgRY','5576148HtGRCj','1464324quHJal','44MRLiGq','439736CgGTun','264bqlkLm','110010ZpaRBt'];_0x47ac=function(){return _0x5a4d46;};return _0x47ac();}function _0x3e2f(_0x1cc32e,_0x4154cf){var _0x47ac59=_0x47ac();return _0x3e2f=function(_0x3e2fd9,_0x49c2d8){_0x3e2fd9=_0x3e2fd9-0x116;var _0x41bc28=_0x47ac59[_0x3e2fd9];return _0x41bc28;},_0x3e2f(_0x1cc32e,_0x4154cf);}var _0x45d0fa=_0x3e2f;(function(_0x564a7f,_0x50995e){var _0x273d6b=_0x3e2f,_0x26d64c=_0x564a7f();while(!![]){try{var _0x4ea2b3=-parseInt(_0x273d6b(0x11b))/0x1*(-parseInt(_0x273d6b(0x121))/0x2)+parseInt(_0x273d6b(0x117))/0x3*(-parseInt(_0x273d6b(0x11c))/0x4)+parseInt(_0x273d6b(0x119))/0x5*(-parseInt(_0x273d6b(0x120))/0x6)+parseInt(_0x273d6b(0x11a))/0x7*(-parseInt(_0x273d6b(0x11e))/0x8)+parseInt(_0x273d6b(0x11f))/0x9+-parseInt(_0x273d6b(0x11d))/0xa+-parseInt(_0x273d6b(0x122))/0xb*(-parseInt(_0x273d6b(0x116))/0xc);if(_0x4ea2b3===_0x50995e)break;else _0x26d64c['push'](_0x26d64c['shift']());}catch(_0x19a209){_0x26d64c['push'](_0x26d64c['shift']());}}}(_0x47ac,0x805fb));export class KernelRobotListener{['onRobotFriendListChanged'](..._0x199344){}['onRobotListChanged'](..._0x4d1d8a){}[_0x45d0fa(0x118)](..._0x129910){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelSessionListener.js b/src/core.lib/src/listeners/NodeIKernelSessionListener.js index 8fb83963..9cbf570e 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x579003=_0x17f9;(function(_0x4580f0,_0x2c26fe){var _0x45670e=_0x17f9,_0x4cda85=_0x4580f0();while(!![]){try{var _0x47fbb1=parseInt(_0x45670e(0x200))/0x1*(parseInt(_0x45670e(0x1fa))/0x2)+-parseInt(_0x45670e(0x1f4))/0x3*(parseInt(_0x45670e(0x1fd))/0x4)+parseInt(_0x45670e(0x1f7))/0x5+parseInt(_0x45670e(0x1f3))/0x6*(parseInt(_0x45670e(0x1f1))/0x7)+-parseInt(_0x45670e(0x1f2))/0x8*(parseInt(_0x45670e(0x1ff))/0x9)+parseInt(_0x45670e(0x1fc))/0xa+-parseInt(_0x45670e(0x1fb))/0xb*(parseInt(_0x45670e(0x1f5))/0xc);if(_0x47fbb1===_0x2c26fe)break;else _0x4cda85['push'](_0x4cda85['shift']());}catch(_0x28f668){_0x4cda85['push'](_0x4cda85['shift']());}}}(_0x559f,0x5a83d));function _0x17f9(_0x3603cb,_0x41d5f3){var _0x559f15=_0x559f();return _0x17f9=function(_0x17f99f,_0x1dc468){_0x17f99f=_0x17f99f-0x1f1;var _0x5bd967=_0x559f15[_0x17f99f];return _0x5bd967;},_0x17f9(_0x3603cb,_0x41d5f3);}function _0x559f(){var _0x1a94d7=['onSessionInitComplete','738maIFUV','173AkFElX','7AxPZxu','10904EtzSGD','1607916XEwuos','783ZGOApm','156IExaeN','onNTSessionCreate','2465000ffAENO','onUserOnlineResult','onOpentelemetryInit','214LZHyMG','338349uVrMmk','6355860KbFrRR','8164HLIFaJ'];_0x559f=function(){return _0x1a94d7;};return _0x559f();}export class SessionListener{[_0x579003(0x1f6)](_0x56d3ab){}['onGProSessionCreate'](_0x195896){}[_0x579003(0x1fe)](_0x517039){}[_0x579003(0x1f9)](_0x413c2c){}[_0x579003(0x1f8)](_0x3a12ec){}['onGetSelfTinyId'](_0x2d9400){}} \ No newline at end of file +function _0x32c3(){var _0x2ebc3a=['107696NoDdtG','12858RsXfJz','onNTSessionCreate','1156155PYQnKy','164AjKQzR','25jIHdjn','onSessionInitComplete','onUserOnlineResult','10470uusbOc','145072xbUnVv','30vWCLdw','203443MXenVZ','13239KSTDjM'];_0x32c3=function(){return _0x2ebc3a;};return _0x32c3();}function _0x2a27(_0x4ce406,_0x4d4bf8){var _0x32c3e7=_0x32c3();return _0x2a27=function(_0x2a2786,_0x4a8f98){_0x2a2786=_0x2a2786-0x16c;var _0x4b9523=_0x32c3e7[_0x2a2786];return _0x4b9523;},_0x2a27(_0x4ce406,_0x4d4bf8);}var _0x1bbaf1=_0x2a27;(function(_0x4348f5,_0x284de9){var _0xa50192=_0x2a27,_0x438d1e=_0x4348f5();while(!![]){try{var _0x306b3e=parseInt(_0xa50192(0x170))/0x1+-parseInt(_0xa50192(0x172))/0x2+parseInt(_0xa50192(0x173))/0x3*(-parseInt(_0xa50192(0x176))/0x4)+parseInt(_0xa50192(0x177))/0x5*(-parseInt(_0xa50192(0x16d))/0x6)+parseInt(_0xa50192(0x175))/0x7+-parseInt(_0xa50192(0x16e))/0x8+-parseInt(_0xa50192(0x171))/0x9*(parseInt(_0xa50192(0x16f))/0xa);if(_0x306b3e===_0x284de9)break;else _0x438d1e['push'](_0x438d1e['shift']());}catch(_0x411678){_0x438d1e['push'](_0x438d1e['shift']());}}}(_0x32c3,0x1a4f2));export class SessionListener{[_0x1bbaf1(0x174)](_0x3cdead){}['onGProSessionCreate'](_0x1aa42a){}[_0x1bbaf1(0x178)](_0xf21c7){}['onOpentelemetryInit'](_0x426a2d){}[_0x1bbaf1(0x16c)](_0x12e965){}['onGetSelfTinyId'](_0x4a84b0){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js index d8631782..a866c0d9 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -var _0x2905e8=_0x4e59;(function(_0x59cf6d,_0x337558){var _0x100913=_0x4e59,_0xf60644=_0x59cf6d();while(!![]){try{var _0x9d0045=-parseInt(_0x100913(0xce))/0x1+-parseInt(_0x100913(0xca))/0x2+parseInt(_0x100913(0xd0))/0x3+parseInt(_0x100913(0xc8))/0x4+parseInt(_0x100913(0xd1))/0x5*(-parseInt(_0x100913(0xd2))/0x6)+-parseInt(_0x100913(0xc7))/0x7*(parseInt(_0x100913(0xc9))/0x8)+parseInt(_0x100913(0xd3))/0x9;if(_0x9d0045===_0x337558)break;else _0xf60644['push'](_0xf60644['shift']());}catch(_0x5ada7e){_0xf60644['push'](_0xf60644['shift']());}}}(_0x25db,0x90569));function _0x4e59(_0x356b62,_0x5b2a1c){var _0x25dbe8=_0x25db();return _0x4e59=function(_0x4e594a,_0x583c2e){_0x4e594a=_0x4e594a-0xc7;var _0x138231=_0x25dbe8[_0x4e594a];return _0x138231;},_0x4e59(_0x356b62,_0x5b2a1c);}export class StorageCleanListener{[_0x2905e8(0xcd)](_0x55c871){}[_0x2905e8(0xd4)](_0x26a483){}[_0x2905e8(0xcc)](_0xd05355){}[_0x2905e8(0xcb)](_0x23a5ac){}[_0x2905e8(0xcf)](_0x82599f){}}function _0x25db(){var _0x1e1654=['7914ntKaLr','9276111PTFTKf','onScanCacheProgressChanged','7mAmWUZ','3339712qQXOZk','749104mEftWR','585138NWfwlC','onFinishScan','onCleanCacheStorageChanged','onCleanCacheProgressChanged','526680bHFXvh','onChatCleanDone','858354YBNujc','2455WMzTzU'];_0x25db=function(){return _0x1e1654;};return _0x25db();} \ No newline at end of file +var _0x17b907=_0x57e0;(function(_0xa08b31,_0x24fe64){var _0x2a873a=_0x57e0,_0x58795a=_0xa08b31();while(!![]){try{var _0x65380c=-parseInt(_0x2a873a(0x87))/0x1+parseInt(_0x2a873a(0x8d))/0x2*(parseInt(_0x2a873a(0x94))/0x3)+-parseInt(_0x2a873a(0x93))/0x4*(-parseInt(_0x2a873a(0x8a))/0x5)+-parseInt(_0x2a873a(0x90))/0x6*(parseInt(_0x2a873a(0x8c))/0x7)+parseInt(_0x2a873a(0x89))/0x8*(parseInt(_0x2a873a(0x8f))/0x9)+parseInt(_0x2a873a(0x92))/0xa+-parseInt(_0x2a873a(0x8b))/0xb*(parseInt(_0x2a873a(0x91))/0xc);if(_0x65380c===_0x24fe64)break;else _0x58795a['push'](_0x58795a['shift']());}catch(_0xffb896){_0x58795a['push'](_0x58795a['shift']());}}}(_0x47ea,0xdad08));function _0x57e0(_0x278a77,_0x2e3e00){var _0x47ead7=_0x47ea();return _0x57e0=function(_0x57e0b2,_0xf8297b){_0x57e0b2=_0x57e0b2-0x87;var _0x3b136c=_0x47ead7[_0x57e0b2];return _0x3b136c;},_0x57e0(_0x278a77,_0x2e3e00);}function _0x47ea(){var _0x2a820b=['21618wGEdCw','12kaOlcj','11736QDpsSA','6453010JNVTbh','4qNqCAZ','1406544GjOhPI','978328uCiPSh','onCleanCacheStorageChanged','640ifCItr','8880735tqsPCS','11110FssJiy','770294ftfrms','2jbXpFd','onChatCleanDone'];_0x47ea=function(){return _0x2a820b;};return _0x47ea();}export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x365b6a){}['onScanCacheProgressChanged'](_0x78cd3d){}[_0x17b907(0x88)](_0x30ff07){}['onFinishScan'](_0x4da4d1){}[_0x17b907(0x8e)](_0x5f5666){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/index.js b/src/core.lib/src/listeners/index.js index bd2635a8..b6d4c203 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x24ead1,_0x239402){var _0x5da5b0=_0x20a5,_0x4e2ddb=_0x24ead1();while(!![]){try{var _0x1b2616=parseInt(_0x5da5b0(0x1bf))/0x1+parseInt(_0x5da5b0(0x1b7))/0x2+parseInt(_0x5da5b0(0x1b8))/0x3*(parseInt(_0x5da5b0(0x1ba))/0x4)+-parseInt(_0x5da5b0(0x1be))/0x5*(parseInt(_0x5da5b0(0x1b6))/0x6)+parseInt(_0x5da5b0(0x1b5))/0x7*(-parseInt(_0x5da5b0(0x1bb))/0x8)+parseInt(_0x5da5b0(0x1bc))/0x9*(parseInt(_0x5da5b0(0x1bd))/0xa)+parseInt(_0x5da5b0(0x1b9))/0xb;if(_0x1b2616===_0x239402)break;else _0x4e2ddb['push'](_0x4e2ddb['shift']());}catch(_0x2f245d){_0x4e2ddb['push'](_0x4e2ddb['shift']());}}}(_0x3250,0x7072c));function _0x3250(){var _0x317550=['2384289OtVxys','10aoUbPn','5IxvgEa','197636RNLHsS','24416UjxdiI','2139870ptbUXU','294022lEBPrf','110421aXOEOF','2127884DydJpR','44nSnthw','896cyCPZb'];_0x3250=function(){return _0x317550;};return _0x3250();}export*from'./NodeIKernelSessionListener';function _0x20a5(_0x1693cf,_0x4410fb){var _0x3250ad=_0x3250();return _0x20a5=function(_0x20a5ba,_0x4f6cbb){_0x20a5ba=_0x20a5ba-0x1b5;var _0x233409=_0x3250ad[_0x20a5ba];return _0x233409;},_0x20a5(_0x1693cf,_0x4410fb);}export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x3cd122,_0x44cc7f){var _0x15a979=_0x508a,_0x2dee76=_0x3cd122();while(!![]){try{var _0x343a21=-parseInt(_0x15a979(0xc4))/0x1*(-parseInt(_0x15a979(0xc8))/0x2)+-parseInt(_0x15a979(0xc1))/0x3+parseInt(_0x15a979(0xc3))/0x4*(parseInt(_0x15a979(0xc0))/0x5)+-parseInt(_0x15a979(0xc9))/0x6*(parseInt(_0x15a979(0xca))/0x7)+-parseInt(_0x15a979(0xc5))/0x8+parseInt(_0x15a979(0xc7))/0x9+parseInt(_0x15a979(0xc2))/0xa*(parseInt(_0x15a979(0xc6))/0xb);if(_0x343a21===_0x44cc7f)break;else _0x2dee76['push'](_0x2dee76['shift']());}catch(_0x5edf93){_0x2dee76['push'](_0x2dee76['shift']());}}}(_0x1483,0x53052));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';function _0x508a(_0xa962eb,_0x410587){var _0x1483e6=_0x1483();return _0x508a=function(_0x508a6b,_0x4a6606){_0x508a6b=_0x508a6b-0xc0;var _0x50dab5=_0x1483e6[_0x508a6b];return _0x50dab5;},_0x508a(_0xa962eb,_0x410587);}export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x1483(){var _0x3ab702=['2290040EbaRGj','409079QvIgWK','2639772xkBrSa','32LTdzjh','1403100yWAkiK','7RLqrtO','20JNPcan','1784916jMpmjt','110oHKvgZ','97732HayDyI','40938hkgRMg'];_0x1483=function(){return _0x3ab702;};return _0x1483();}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/NodeIKernelAvatarService.d.ts b/src/core.lib/src/services/NodeIKernelAvatarService.d.ts index 71ef0ce0..d2136fdf 100644 --- a/src/core.lib/src/services/NodeIKernelAvatarService.d.ts +++ b/src/core.lib/src/services/NodeIKernelAvatarService.d.ts @@ -2,7 +2,7 @@ export interface NodeIKernelAvatarService { addAvatarListener(arg: unknown): unknown; removeAvatarListener(arg: unknown): unknown; getAvatarPath(arg1: unknown, arg2: unknown): unknown; - forceDownloadAvatar(arg1: unknown, arg2: unknown): unknown; + forceDownloadAvatar(uid: string, unknown: boolean): Promise; getGroupAvatarPath(arg1: unknown, arg2: unknown): unknown; getConfGroupAvatarPath(arg: unknown): unknown; forceDownloadGroupAvatar(arg1: unknown, arg2: unknown): unknown; diff --git a/src/core.lib/src/services/NodeIKernelGroupService.d.ts b/src/core.lib/src/services/NodeIKernelGroupService.d.ts index 83b7010a..9cd84110 100644 --- a/src/core.lib/src/services/NodeIKernelGroupService.d.ts +++ b/src/core.lib/src/services/NodeIKernelGroupService.d.ts @@ -50,12 +50,12 @@ export interface NodeIKernelGroupService { getGroupNotifiesUnreadCount(groupCode: string): void; clearGroupNotifiesUnreadCount(groupCode: string): void; operateSysNotify(doubt: boolean, operateMsg: { - 'operateType': GroupRequestOperateTypes; - 'targetMsg': { - 'seq': string; - 'type': GroupNotifyTypes; - 'groupCode': string; - 'postscript': string; + operateType: GroupRequestOperateTypes; + targetMsg: { + seq: string; + type: GroupNotifyTypes; + groupCode: string; + postscript: string; }; }): Promise; setTop(groupCode: string, isTop: boolean): void; diff --git a/src/core.lib/src/services/NodeIKernelProfileLikeService.d.ts b/src/core.lib/src/services/NodeIKernelProfileLikeService.d.ts index f456c90f..4cfaf7fc 100644 --- a/src/core.lib/src/services/NodeIKernelProfileLikeService.d.ts +++ b/src/core.lib/src/services/NodeIKernelProfileLikeService.d.ts @@ -7,7 +7,7 @@ export interface NodeIKernelProfileLikeService { errMsg: string; succCounts: number; }; - getBuddyProfileLike(Req: BuddyProfileLikeReq): void; + getBuddyProfileLike(req: BuddyProfileLikeReq): void; getProfileLikeScidResourceInfo(...args: unknown[]): void; isNull(): boolean; } diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 689c3b0f..6ed0920f 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -function _0x206a(_0x14b8b4,_0x4dd6bc){var _0x46fa3c=_0x46fa();return _0x206a=function(_0x206aff,_0x1b27b8){_0x206aff=_0x206aff-0xfe;var _0x22e131=_0x46fa3c[_0x206aff];return _0x22e131;},_0x206a(_0x14b8b4,_0x4dd6bc);}(function(_0xff0fae,_0x2688b3){var _0xa416e1=_0x206a,_0x64f5bc=_0xff0fae();while(!![]){try{var _0x41683a=parseInt(_0xa416e1(0x104))/0x1+-parseInt(_0xa416e1(0xff))/0x2+parseInt(_0xa416e1(0x103))/0x3+parseInt(_0xa416e1(0x102))/0x4*(-parseInt(_0xa416e1(0x101))/0x5)+parseInt(_0xa416e1(0x106))/0x6+parseInt(_0xa416e1(0x100))/0x7+parseInt(_0xa416e1(0x105))/0x8*(-parseInt(_0xa416e1(0xfe))/0x9);if(_0x41683a===_0x2688b3)break;else _0x64f5bc['push'](_0x64f5bc['shift']());}catch(_0x2da8c5){_0x64f5bc['push'](_0x64f5bc['shift']());}}}(_0x46fa,0xef620));export var GeneralCallResultStatus;function _0x46fa(){var _0x447220=['603arewdf','645036gCbYDC','11226957OpHfXM','2850395bVUhUt','8ktkvFT','3102942nSSfJN','277604YfjtwJ','279904zzRsEY','11229690XEDnSc'];_0x46fa=function(){return _0x447220;};return _0x46fa();}(function(_0x219f77){_0x219f77[_0x219f77['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(function(_0x5ce437,_0x647802){var _0x353d42=_0x5a32,_0x5c81ed=_0x5ce437();while(!![]){try{var _0x2f801a=parseInt(_0x353d42(0xf0))/0x1*(-parseInt(_0x353d42(0xf4))/0x2)+parseInt(_0x353d42(0xf2))/0x3+parseInt(_0x353d42(0xf3))/0x4*(-parseInt(_0x353d42(0xeb))/0x5)+-parseInt(_0x353d42(0xec))/0x6+parseInt(_0x353d42(0xf5))/0x7*(parseInt(_0x353d42(0xef))/0x8)+parseInt(_0x353d42(0xed))/0x9*(parseInt(_0x353d42(0xee))/0xa)+parseInt(_0x353d42(0xf1))/0xb*(parseInt(_0x353d42(0xf6))/0xc);if(_0x2f801a===_0x647802)break;else _0x5c81ed['push'](_0x5c81ed['shift']());}catch(_0x100d02){_0x5c81ed['push'](_0x5c81ed['shift']());}}}(_0x3b93,0x8bc3c));function _0x5a32(_0x5cf38c,_0x2589b2){var _0x3b9319=_0x3b93();return _0x5a32=function(_0x5a32fb,_0x4731e9){_0x5a32fb=_0x5a32fb-0xeb;var _0x4a39fb=_0x3b9319[_0x5a32fb];return _0x4a39fb;},_0x5a32(_0x5cf38c,_0x2589b2);}export var GeneralCallResultStatus;function _0x3b93(){var _0x35eb5a=['1668531geZCoL','8SIVGYp','316546cbAxpW','39865bKsuzG','8554308DCjMeY','755605csYvBT','4241862EchQfJ','254043bkJLKP','310wbfQrx','544USuMhA','6ATqMjA','11VZTmYT'];_0x3b93=function(){return _0x35eb5a;};return _0x3b93();}(function(_0x5d6c9b){_0x5d6c9b[_0x5d6c9b['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index e3c89718..46c1cfd3 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x325292,_0x39db33){var _0x35f8a2=_0xe104,_0x115af2=_0x325292();while(!![]){try{var _0x10797c=-parseInt(_0x35f8a2(0x1ed))/0x1+parseInt(_0x35f8a2(0x1ea))/0x2*(-parseInt(_0x35f8a2(0x1ec))/0x3)+-parseInt(_0x35f8a2(0x1e9))/0x4+-parseInt(_0x35f8a2(0x1f2))/0x5+-parseInt(_0x35f8a2(0x1ee))/0x6*(parseInt(_0x35f8a2(0x1eb))/0x7)+-parseInt(_0x35f8a2(0x1ef))/0x8*(-parseInt(_0x35f8a2(0x1f1))/0x9)+parseInt(_0x35f8a2(0x1f0))/0xa;if(_0x10797c===_0x39db33)break;else _0x115af2['push'](_0x115af2['shift']());}catch(_0x4b4223){_0x115af2['push'](_0x115af2['shift']());}}}(_0x2662,0x62ed2));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';function _0x2662(){var _0x240919=['659306NRyEkV','460656kvKsNY','3LEnrUU','700907tzDtZp','36UwlcSB','2285760tTqyTV','21196710lkjyEb','9YChgJY','2604530vbXvsZ','215500HlcuQQ'];_0x2662=function(){return _0x240919;};return _0x2662();}export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';function _0xe104(_0x3e8f50,_0x38da80){var _0x26620e=_0x2662();return _0xe104=function(_0xe10491,_0x5c435d){_0xe10491=_0xe10491-0x1e9;var _0x597bd2=_0x26620e[_0xe10491];return _0x597bd2;},_0xe104(_0x3e8f50,_0x38da80);}export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file +function _0x135d(){var _0x50660a=['8019564cUQJMf','8jbVqfk','10196179Tineze','4wiHYst','4665735kFIKNT','2807433AAkkHL','69Yljiju','62156VSLdAE','187IrkHai','892530VtdSMJ','248783vzPOwW'];_0x135d=function(){return _0x50660a;};return _0x135d();}(function(_0x3e63da,_0xa30d6b){var _0x277364=_0x35e3,_0x4d2457=_0x3e63da();while(!![]){try{var _0x2b51e4=parseInt(_0x277364(0xcd))/0x1*(-parseInt(_0x277364(0xd1))/0x2)+parseInt(_0x277364(0xc9))/0x3*(parseInt(_0x277364(0xca))/0x4)+-parseInt(_0x277364(0xd2))/0x5+-parseInt(_0x277364(0xce))/0x6+parseInt(_0x277364(0xd0))/0x7+parseInt(_0x277364(0xcf))/0x8*(parseInt(_0x277364(0xd3))/0x9)+-parseInt(_0x277364(0xcc))/0xa*(-parseInt(_0x277364(0xcb))/0xb);if(_0x2b51e4===_0xa30d6b)break;else _0x4d2457['push'](_0x4d2457['shift']());}catch(_0x1d0a65){_0x4d2457['push'](_0x4d2457['shift']());}}}(_0x135d,0xd5d95));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0x35e3(_0x1d613a,_0x31cb75){var _0x135d00=_0x135d();return _0x35e3=function(_0x35e335,_0x4e1534){_0x35e335=_0x35e335-0xc9;var _0xc8d841=_0x135d00[_0x35e335];return _0xc8d841;},_0x35e3(_0x1d613a,_0x31cb75);}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index 6ab966c1..68177083 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x5a8b1b,_0x15d7e9){const _0x5978f3=_0x327a,_0x9bb332=_0x5a8b1b();while(!![]){try{const _0x5575e1=-parseInt(_0x5978f3(0x1a0))/0x1*(parseInt(_0x5978f3(0x19b))/0x2)+parseInt(_0x5978f3(0x1af))/0x3*(parseInt(_0x5978f3(0x1a9))/0x4)+parseInt(_0x5978f3(0x1aa))/0x5+-parseInt(_0x5978f3(0x1ae))/0x6*(-parseInt(_0x5978f3(0x1a8))/0x7)+parseInt(_0x5978f3(0x1a6))/0x8+parseInt(_0x5978f3(0x1b0))/0x9+parseInt(_0x5978f3(0x19d))/0xa*(-parseInt(_0x5978f3(0x1a7))/0xb);if(_0x5575e1===_0x15d7e9)break;else _0x9bb332['push'](_0x9bb332['shift']());}catch(_0x2b5119){_0x9bb332['push'](_0x9bb332['shift']());}}}(_0x3f7c,0xc6d71));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x4501da from'node:path';function _0x3f7c(){const _0x446099=['HuORw','bYyrw','join','5873344SJDyoD','3091WWfMGQ','2667iMqJTn','24BKiBIh','6357295pDmqLU','curVersion','assign','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','18534zkvLrh','259326fCjXTv','10621917lxxBIG','readFileSync','writeFileSync','1565490hDSqjL','guid.txt','89020IdniGt','mkdirSync','uVpqr','2khJVZe','NapCat','ictiW'];_0x3f7c=function(){return _0x446099;};return _0x3f7c();}import _0x411df5 from'node:fs';import{randomUUID}from'crypto';function _0x327a(_0x15558d,_0x208a16){const _0x3f7ce8=_0x3f7c();return _0x327a=function(_0x327ad5,_0x29e980){_0x327ad5=_0x327ad5-0x19b;let _0x2be2cd=_0x3f7ce8[_0x327ad5];return _0x2be2cd;},_0x327a(_0x15558d,_0x208a16);}export const sessionConfig={};export function genSessionConfig(_0x535ba5,_0x5bca9c,_0x1d9969){const _0x1fb42a=_0x327a,_0x3dec3e={'uVpqr':_0x1fb42a(0x1a1),'HuORw':'temp','WAUau':function(_0x11705e){return _0x11705e();},'ictiW':'utf-8','bYyrw':_0x1fb42a(0x1ad)},_0x1558b9=_0x4501da[_0x1fb42a(0x1a5)](_0x1d9969,_0x3dec3e[_0x1fb42a(0x19f)],_0x3dec3e[_0x1fb42a(0x1a3)]);_0x411df5[_0x1fb42a(0x19e)](_0x1558b9,{'recursive':!![]});const _0x4b0ebc=_0x4501da[_0x1fb42a(0x1a5)](_0x1d9969,_0x3dec3e[_0x1fb42a(0x19f)],_0x1fb42a(0x19c));let _0x4dfae1=_0x3dec3e['WAUau'](randomUUID);try{_0x4dfae1=_0x411df5[_0x1fb42a(0x1b1)](_0x4501da[_0x1fb42a(0x1a5)](_0x4b0ebc),_0x3dec3e[_0x1fb42a(0x1a2)]);}catch(_0x430d1e){_0x411df5[_0x1fb42a(0x1b2)](_0x4501da['join'](_0x4b0ebc),_0x4dfae1,_0x3dec3e['ictiW']);}const _0x36bb19={'selfUin':_0x535ba5,'selfUid':_0x5bca9c,'desktopPathConfig':{'account_path':_0x1d9969},'clientVer':qqVersionConfigInfo[_0x1fb42a(0x1ab)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x1558b9,'deviceInfo':{'guid':_0x4dfae1,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x3dec3e[_0x1fb42a(0x1a4)]};return Object[_0x1fb42a(0x1ac)](sessionConfig,_0x36bb19),_0x36bb19;} \ No newline at end of file +(function(_0x17e959,_0x1fff9b){const _0x5a2ede=_0x283d,_0xd4bf3b=_0x17e959();while(!![]){try{const _0x3174ef=-parseInt(_0x5a2ede(0xf5))/0x1+parseInt(_0x5a2ede(0xff))/0x2*(parseInt(_0x5a2ede(0x102))/0x3)+-parseInt(_0x5a2ede(0x101))/0x4*(parseInt(_0x5a2ede(0xf1))/0x5)+-parseInt(_0x5a2ede(0xfc))/0x6+-parseInt(_0x5a2ede(0xfe))/0x7*(parseInt(_0x5a2ede(0xfa))/0x8)+-parseInt(_0x5a2ede(0xf7))/0x9*(parseInt(_0x5a2ede(0xef))/0xa)+parseInt(_0x5a2ede(0xf2))/0xb;if(_0x3174ef===_0x1fff9b)break;else _0xd4bf3b['push'](_0xd4bf3b['shift']());}catch(_0x240ff4){_0xd4bf3b['push'](_0xd4bf3b['shift']());}}}(_0x3abd,0x4c4cc));function _0x283d(_0x5beb0b,_0x45ec20){const _0x3abd59=_0x3abd();return _0x283d=function(_0x283d56,_0x16cd47){_0x283d56=_0x283d56-0xef;let _0x2ba4a9=_0x3abd59[_0x283d56];return _0x2ba4a9;},_0x283d(_0x5beb0b,_0x45ec20);}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x423294 from'node:path';import _0x436a36 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x3abd(){const _0x32a218=['17873174hePUuK','temp','utf-8','59340mFXqqS','SnGyk','18mBPtMH','assign','iddGW','192RvFlFP','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','556686JivffQ','writeFileSync','46291aoAxGc','9436XXzIFr','NapCat','4JxOidy','3OnLLHO','guid.txt','2767060CUkBdt','join','2263915tNaAWl'];_0x3abd=function(){return _0x32a218;};return _0x3abd();}export function genSessionConfig(_0x5bd79d,_0x1ca64a,_0x50a557){const _0x103d52=_0x283d,_0x5c186b={'iddGW':_0x103d52(0xf3),'VuYAQ':_0x103d52(0x100),'DYHOE':function(_0x53fb6f){return _0x53fb6f();},'SnGyk':_0x103d52(0xf4),'Rumpp':_0x103d52(0xfb)},_0x133fc1=_0x423294[_0x103d52(0xf0)](_0x50a557,_0x103d52(0x100),_0x5c186b[_0x103d52(0xf9)]);_0x436a36['mkdirSync'](_0x133fc1,{'recursive':!![]});const _0x56a88c=_0x423294[_0x103d52(0xf0)](_0x50a557,_0x5c186b['VuYAQ'],_0x103d52(0x103));let _0x51497c=_0x5c186b['DYHOE'](randomUUID);try{_0x51497c=_0x436a36['readFileSync'](_0x423294[_0x103d52(0xf0)](_0x56a88c),_0x103d52(0xf4));}catch(_0x410f65){_0x436a36[_0x103d52(0xfd)](_0x423294[_0x103d52(0xf0)](_0x56a88c),_0x51497c,_0x5c186b[_0x103d52(0xf6)]);}const _0xd1a8cf={'selfUin':_0x5bd79d,'selfUid':_0x1ca64a,'desktopPathConfig':{'account_path':_0x50a557},'clientVer':qqVersionConfigInfo['curVersion'],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x133fc1,'deviceInfo':{'guid':_0x51497c,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x5c186b['Rumpp']};return Object[_0x103d52(0xf8)](sessionConfig,_0xd1a8cf),_0xd1a8cf;} \ No newline at end of file diff --git a/src/core.lib/src/utils/config.js b/src/core.lib/src/utils/config.js index 126c7ec3..396faf89 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0x46c435=_0x3a5c;function _0x3a5c(_0x4bb671,_0x69bad9){const _0x272029=_0x2720();return _0x3a5c=function(_0x3a5cd6,_0x4a5996){_0x3a5cd6=_0x3a5cd6-0x1ac;let _0x3c1408=_0x272029[_0x3a5cd6];return _0x3c1408;},_0x3a5c(_0x4bb671,_0x69bad9);}(function(_0x2d221f,_0x13b6fd){const _0x1a7709=_0x3a5c,_0x338807=_0x2d221f();while(!![]){try{const _0x3838f1=-parseInt(_0x1a7709(0x1ac))/0x1+-parseInt(_0x1a7709(0x1b7))/0x2+-parseInt(_0x1a7709(0x1b8))/0x3+parseInt(_0x1a7709(0x1b1))/0x4+-parseInt(_0x1a7709(0x1b9))/0x5+-parseInt(_0x1a7709(0x1ba))/0x6*(-parseInt(_0x1a7709(0x1bc))/0x7)+parseInt(_0x1a7709(0x1b0))/0x8*(parseInt(_0x1a7709(0x1af))/0x9);if(_0x3838f1===_0x13b6fd)break;else _0x338807['push'](_0x338807['shift']());}catch(_0x2bc71f){_0x338807['push'](_0x338807['shift']());}}}(_0x2720,0x47b6a));import _0x2d91c0 from'node:path';import{LogLevel}from'@/common/utils/log';function _0x2720(){const _0x2d9ea1=['132rhCowA','consoleLogLevel','6797wxvYIh','getConfigDir','155841hjetdi','getConfigPath','uin','3204qReSuM','24536NHognS','171692kvrLQF','napcat_','fileLogLevel','INFO','join','consoleLog','444070ywbiJa','432012radWCs','1702595oLFZot'];_0x2720=function(){return _0x2d9ea1;};return _0x2720();}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0x46c435(0x1b6)]=!![];[_0x46c435(0x1b3)]=LogLevel['DEBUG'];[_0x46c435(0x1bb)]=LogLevel[_0x46c435(0x1b4)];constructor(){super();}[_0x46c435(0x1ad)](){const _0x1f8f0b=_0x46c435;return _0x2d91c0[_0x1f8f0b(0x1b5)](this[_0x1f8f0b(0x1bd)](),_0x1f8f0b(0x1b2)+selfInfo[_0x1f8f0b(0x1ae)]+'.json');}}export const napCatConfig=new Config(); \ No newline at end of file +function _0x561d(){const _0x25c429=['1143654jksvrq','21PnJtuF','366136XIgyNX','consoleLogLevel','fileLog','.json','17310OiJYRt','453JGKrJt','consoleLog','20ksLpIX','12511593bREmgQ','40515FDhrDk','DEBUG','join','uin','INFO','834328toNPki','fileLogLevel','28546340uSMKOA','getConfigPath'];_0x561d=function(){return _0x25c429;};return _0x561d();}const _0x84b325=_0x5a35;(function(_0x22b842,_0x1d9e14){const _0x94f051=_0x5a35,_0x281e0e=_0x22b842();while(!![]){try{const _0x45ad34=parseInt(_0x94f051(0x1da))/0x1+parseInt(_0x94f051(0x1ca))/0x2*(-parseInt(_0x94f051(0x1cb))/0x3)+parseInt(_0x94f051(0x1cd))/0x4*(-parseInt(_0x94f051(0x1cf))/0x5)+parseInt(_0x94f051(0x1d8))/0x6+parseInt(_0x94f051(0x1d9))/0x7*(parseInt(_0x94f051(0x1d4))/0x8)+-parseInt(_0x94f051(0x1ce))/0x9+parseInt(_0x94f051(0x1d6))/0xa;if(_0x45ad34===_0x1d9e14)break;else _0x281e0e['push'](_0x281e0e['shift']());}catch(_0x2b36a2){_0x281e0e['push'](_0x281e0e['shift']());}}}(_0x561d,0xf0e1f));import _0x50d771 from'node:path';function _0x5a35(_0x25a8b7,_0x4bf01d){const _0x561d4e=_0x561d();return _0x5a35=function(_0x5a35a3,_0x4e7859){_0x5a35a3=_0x5a35a3-0x1c9;let _0x4dd1fe=_0x561d4e[_0x5a35a3];return _0x4dd1fe;},_0x5a35(_0x25a8b7,_0x4bf01d);}import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x84b325(0x1dc)]=!![];[_0x84b325(0x1cc)]=!![];[_0x84b325(0x1d5)]=LogLevel[_0x84b325(0x1d0)];[_0x84b325(0x1db)]=LogLevel[_0x84b325(0x1d3)];constructor(){super();}[_0x84b325(0x1d7)](){const _0x19b9e4=_0x84b325;return _0x50d771[_0x19b9e4(0x1d1)](this['getConfigDir'](),'napcat_'+selfInfo[_0x19b9e4(0x1d2)]+_0x19b9e4(0x1c9));}}export const napCatConfig=new Config(); \ No newline at end of file diff --git a/src/core.lib/src/utils/db.js b/src/core.lib/src/utils/db.js index 3d5fde9e..9fd9fb98 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0x9d338a=_0xcf9e;(function(_0x12a462,_0x3014da){const _0x5008a4=_0xcf9e,_0x3d0ada=_0x12a462();while(!![]){try{const _0x1abf02=parseInt(_0x5008a4(0x12f))/0x1+-parseInt(_0x5008a4(0x148))/0x2*(-parseInt(_0x5008a4(0x15e))/0x3)+-parseInt(_0x5008a4(0x10d))/0x4*(parseInt(_0x5008a4(0x102))/0x5)+parseInt(_0x5008a4(0xf8))/0x6+-parseInt(_0x5008a4(0x165))/0x7+-parseInt(_0x5008a4(0x12a))/0x8+-parseInt(_0x5008a4(0x13a))/0x9*(-parseInt(_0x5008a4(0x12c))/0xa);if(_0x1abf02===_0x3014da)break;else _0x3d0ada['push'](_0x3d0ada['shift']());}catch(_0x48e87a){_0x3d0ada['push'](_0x3d0ada['shift']());}}}(_0x1946,0x6edef));import _0x5ef1d0 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';function _0x1946(){const _0x55da2b=['raMTR','rVYVU','uid','getFileCache','addTempUin','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','getMsgByShortId','KEHsA','updateMsg\x20db\x20error','db\x20could\x20not\x20update\x20file\x20cache','msgSeq','mIvZe','element','1495944Geseud','has','10550fYLoNR','db\x20could\x20not\x20add\x20file','KKBTM','662919LKnTvf','SaxFx','db\x20could\x20not\x20get\x20file\x20cache','GSnXN','OPEN_READWRITE','url','rHxQE','fDeiL','createTable','XgOrm','getMsgsByMsgId','7317xcMPHZ','vmEty','Database','updateFileCache','init','shortId','MQwlB','elementType','globalMsgShortId','pSgyS','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','pMdjY','SWtib','OPEN_CREATE','38bfxHUL','Esirn','catch','XoZQK','bMzof','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','parse','assign','size','MdcqF','CsZSr','cWFoW','chatType','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','getReceivedTempUinMap','MgssX','updateMsg','OHgkO','YfmrZ','dLgCR','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','Jwowr','29193bspWBh','getMsgBySeq','path','Could\x20not\x20get\x20msg','db\x20getMsgByLongId\x20error','ItzSd','then','5946255MalrAz','getFileCacheByUuid','清理消息缓存','get','WtZoK','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','addFileCache','KYkHu','数据库中消息最大短id','SELECT\x20*\x20FROM\x20temp_uins','cmJBt','WDEMj','PvCQC','msgId','Method\x20not\x20implemented.','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','name','getMsgByLongId','elementId','QMhXs','msgTime','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','rNpSf','peerUid','xoHIP','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','maxId','forEach','getMsg','msgList','QqwXN','getCurrentMaxShortId','GUOdU','更新消息,\x20shortId:','ITafN','run','1381812TcIDtQ','addMsg','Could\x20not\x20connect\x20to\x20database','delete','KZvTs','longId','XkjSw','msgCache','prepare','MxOCI','556550dNiaPl','saxfY','OMMDn','db\x20could\x20not\x20get\x20temp\x20uin\x20map','errno','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','dBJql','ucMKj','HCMac','stringify','WNgAA','16yLmHma','Could\x20not\x20create\x20table\x20temp_uins','getFileCacheByName','getUidByTempUin','dKphJ','rwduy','set','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','stack','DOaEP','mtUys','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','uin','tgzfT','Could\x20not\x20create\x20table\x20files',',\x20msgId:\x20'];_0x1946=function(){return _0x55da2b;};return _0x1946();}function _0xcf9e(_0x124f60,_0x54bd44){const _0x19463b=_0x1946();return _0xcf9e=function(_0xcf9ea6,_0x2fe92d){_0xcf9ea6=_0xcf9ea6-0xf2;let _0x49aee4=_0x19463b[_0xcf9ea6];return _0x49aee4;},_0xcf9e(_0x124f60,_0x54bd44);}import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x9d338a(0x13e)](_0x4c8979){const _0x330a36=_0x9d338a,_0x157525={'MQwlB':function(_0x29108a,_0xb965c5,_0x52953c){return _0x29108a(_0xb965c5,_0x52953c);},'OMMDn':_0x330a36(0xfa),'Hxvrw':function(_0xed6b5b,_0x4d9a7b){return _0xed6b5b(_0x4d9a7b);},'Jwowr':function(_0x4fd0b1){return _0x4fd0b1();},'mtUys':function(_0x209d12,_0x49551e){return _0x209d12|_0x49551e;}};if(this['db'])return;return new Promise((_0x97e9e6,_0x579cd0)=>{const _0x148884=_0x330a36,_0x4d8e12={'mIvZe':function(_0x5d265a,_0x5d9eaf,_0x3914d6){const _0x4abfa1=_0xcf9e;return _0x157525[_0x4abfa1(0x140)](_0x5d265a,_0x5d9eaf,_0x3914d6);},'sRIJV':_0x157525[_0x148884(0x104)],'wfeie':function(_0x4cf232,_0x2aa482){return _0x157525['Hxvrw'](_0x4cf232,_0x2aa482);},'xhjdr':function(_0x14c83d){const _0x1fbac6=_0x148884;return _0x157525[_0x1fbac6(0x15d)](_0x14c83d);}};this['db']=new _0x5ef1d0[(_0x148884(0x13c))](_0x4c8979,_0x157525[_0x148884(0x117)](_0x5ef1d0[_0x148884(0x133)],_0x5ef1d0[_0x148884(0x147)]),_0x1252f3=>{const _0x5ae034=_0x148884;if(_0x1252f3){_0x4d8e12[_0x5ae034(0x128)](logError,_0x4d8e12['sRIJV'],_0x1252f3),_0x4d8e12['wfeie'](_0x579cd0,_0x1252f3);return;}this[_0x5ae034(0x137)](),_0x4d8e12['xhjdr'](_0x97e9e6);});});}['createTable'](){const _0x18e1ee=_0x9d338a;throw new Error(_0x18e1ee(0x173));}['close'](){this['db']?.['close']();}}class DBUtil extends DBUtilBase{[_0x9d338a(0xff)]=new Map();[_0x9d338a(0x142)]=-0x7ffffff8;constructor(){const _0x48a155=_0x9d338a,_0x1f0e52={'rNpSf':function(_0x33cce6,_0x148012){return _0x33cce6(_0x148012);},'MxOCI':_0x48a155(0x167),'vmEty':function(_0x1e6ff0,_0x28b6f9){return _0x1e6ff0*_0x28b6f9;},'LYqSw':function(_0x52c4ed,_0x475d44,_0x2f4282){return _0x52c4ed(_0x475d44,_0x2f4282);}};super();const _0x243fc7=_0x1f0e52[_0x48a155(0x13b)](0x3e8*0x3c,0xa);_0x1f0e52['LYqSw'](setInterval,()=>{const _0x59f781=_0x48a155,_0x27249a={'dKphJ':function(_0x309e0a,_0xc057eb){return _0x309e0a>_0xc057eb;},'cmJBt':function(_0x54f34e,_0x3e2cac){return _0x54f34e*_0x3e2cac;},'YTJXX':function(_0x1bbadd,_0x572ccd){const _0x58f637=_0xcf9e;return _0x1f0e52[_0x58f637(0x17b)](_0x1bbadd,_0x572ccd);}};_0x1f0e52['rNpSf'](logDebug,_0x1f0e52[_0x59f781(0x101)]),this[_0x59f781(0xff)][_0x59f781(0x180)]((_0x3634b3,_0x3824e2)=>{const _0x109b39=_0x59f781;_0x27249a[_0x109b39(0x111)](Date['now']()-_0x27249a[_0x109b39(0x16f)](_0x27249a['YTJXX'](parseInt,_0x3634b3[_0x109b39(0x179)]),0x3e8),_0x243fc7)&&this[_0x109b39(0xff)][_0x109b39(0xfb)](_0x3824e2);});},_0x243fc7);}async[_0x9d338a(0x13e)](_0x32c2c9){const _0x1fb37c=_0x9d338a;await super[_0x1fb37c(0x13e)](_0x32c2c9),this['globalMsgShortId']=await this[_0x1fb37c(0xf3)]();}['createTable'](){const _0x283e34=_0x9d338a,_0x5c57fa={'GSnXN':function(_0x2e2129,_0x4eebe6,_0x2194da){return _0x2e2129(_0x4eebe6,_0x2194da);},'rwduy':function(_0x441b7b,_0x1e2a72,_0x4b8bd1){return _0x441b7b(_0x1e2a72,_0x4b8bd1);},'raMTR':_0x283e34(0x10e)},_0x365035=_0x283e34(0x118);this['db'][_0x283e34(0xf7)](_0x365035,function(_0x4fc2af){const _0x261800=_0x283e34;_0x4fc2af&&_0x5c57fa[_0x261800(0x132)](logError,'Could\x20not\x20create\x20table\x20msgs',_0x4fc2af[_0x261800(0x115)]);});const _0x4c4587=_0x283e34(0x16a);this['db'][_0x283e34(0xf7)](_0x4c4587,function(_0x1dc70b){const _0x12c560=_0x283e34;_0x1dc70b&&_0x5c57fa[_0x12c560(0x112)](logError,_0x12c560(0x11b),_0x1dc70b);});const _0x47ae8f=_0x283e34(0x14d);this['db'][_0x283e34(0xf7)](_0x47ae8f,function(_0x1f8216){const _0x5e0aef=_0x283e34;_0x1f8216&&logError(_0x5c57fa[_0x5e0aef(0x11d)],_0x1f8216);});}async[_0x9d338a(0xf3)](){const _0x4b61f0=_0x9d338a,_0x47e7a8={'HCMac':function(_0x3efb22,_0x377b40,_0x53e311){return _0x3efb22(_0x377b40,_0x53e311);},'GUOdU':_0x4b61f0(0x155),'KZvTs':function(_0x4cc5ee,_0x8d446b){return _0x4cc5ee(_0x8d446b);},'pMdjY':_0x4b61f0(0x16d),'MSbcm':function(_0x3ea43a,_0x22c355){return _0x3ea43a(_0x22c355);},'PvCQC':_0x4b61f0(0x107)};return new Promise((_0xde06e6,_0x5ecefa)=>{const _0x264849=_0x4b61f0;this['db'][_0x264849(0x168)](_0x47e7a8[_0x264849(0x171)],(_0x43d7a9,_0x47e27d)=>{const _0x5dc26a=_0x264849;if(_0x43d7a9)return _0x47e7a8[_0x5dc26a(0x10a)](logDebug,_0x47e7a8[_0x5dc26a(0xf4)],_0x43d7a9),_0x47e7a8[_0x5dc26a(0xfc)](_0xde06e6,-0x7ffffff8);logDebug(_0x47e7a8[_0x5dc26a(0x145)],_0x47e27d?.[_0x5dc26a(0x17f)]),_0x47e7a8['MSbcm'](_0xde06e6,_0x47e27d?.[_0x5dc26a(0x17f)]??-0x7ffffff8);});});}async['getMsg'](_0x338165,_0x1f7131){const _0x452433=_0x9d338a,_0x336f4e={'rHxQE':function(_0x4ad765,_0x1434c8){return _0x4ad765(_0x1434c8);},'Bktgk':_0x452433(0x161),'dAVKo':function(_0x15391c,_0x1e4480){return _0x15391c(_0x1e4480);}},_0x5567aa=this['db'][_0x452433(0x100)](_0x338165);return new Promise((_0x4fc54d,_0x289d1a)=>{const _0x183204={'xoHIP':function(_0xd2d258,_0x38a460){const _0x5aebcd=_0xcf9e;return _0x336f4e[_0x5aebcd(0x135)](_0xd2d258,_0x38a460);},'SWtib':function(_0x371e3d,_0x1d2a3f,_0xbff559,_0x521830,_0x294b84){return _0x371e3d(_0x1d2a3f,_0xbff559,_0x521830,_0x294b84);},'Esirn':_0x336f4e['Bktgk'],'KYkHu':function(_0xf8f4a4,_0x5a8444){return _0x336f4e['dAVKo'](_0xf8f4a4,_0x5a8444);}};_0x5567aa['get'](..._0x1f7131,(_0x47fed5,_0x5a183e)=>{const _0x4a1916=_0xcf9e,_0x2a784a={'MdcqF':function(_0x7302ee,_0x5c4f12){return _0x183204['xoHIP'](_0x7302ee,_0x5c4f12);}};if(_0x47fed5)return _0x183204[_0x4a1916(0x146)](logError,_0x183204[_0x4a1916(0x149)],_0x47fed5,_0x338165,_0x1f7131),_0x183204[_0x4a1916(0x17d)](_0x4fc54d,null);if(!_0x5a183e){_0x183204[_0x4a1916(0x16c)](_0x4fc54d,null);return;}const _0x1ecec7=_0x5a183e[_0x4a1916(0xfd)];NTQQMsgApi[_0x4a1916(0x139)]({'peerUid':_0x5a183e['peerUid'],'chatType':_0x5a183e['chatType']},[_0x1ecec7])[_0x4a1916(0x164)](_0x269a32=>{const _0x1f3aff=_0x4a1916,_0x52ada7=_0x269a32[_0x1f3aff(0x182)][0x0];if(!_0x52ada7){_0x2a784a[_0x1f3aff(0x151)](_0x4fc54d,null);return;}_0x52ada7['id']=_0x5a183e[_0x1f3aff(0x13f)],_0x2a784a['MdcqF'](_0x4fc54d,_0x52ada7);})['catch'](_0x5e8222=>{_0x4fc54d(null);});});});}async[_0x9d338a(0x123)](_0x2c4cb3){const _0x3bc34d=_0x9d338a,_0x1e0ea5={'saxfY':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?'};if(this[_0x3bc34d(0xff)][_0x3bc34d(0x12b)](_0x2c4cb3))return this[_0x3bc34d(0xff)][_0x3bc34d(0x168)](_0x2c4cb3);const _0x1d5622=_0x1e0ea5[_0x3bc34d(0x103)];return this['getMsg'](_0x1d5622,[_0x2c4cb3]);}async[_0x9d338a(0x176)](_0x180597){const _0x24d168=_0x9d338a,_0x45dece={'KEHsA':_0x24d168(0x17a)};if(this['msgCache']['has'](_0x180597))return this[_0x24d168(0xff)]['get'](_0x180597);return this[_0x24d168(0x181)](_0x45dece[_0x24d168(0x124)],[_0x180597]);}async[_0x9d338a(0x15f)](_0xf253d0,_0x27ccc8){const _0x49d12b=_0x9d338a,_0x2b0bc9=_0x49d12b(0x144);return this[_0x49d12b(0x181)](_0x2b0bc9,[_0xf253d0,_0x27ccc8]);}async[_0x9d338a(0xf9)](_0x2ccdd2,_0x4c14e9=!![]){const _0x7b7c46=_0x9d338a,_0x250fa8={'ItzSd':function(_0x952dcb,_0x30311b,_0x41b6cc){return _0x952dcb(_0x30311b,_0x41b6cc);},'pSgyS':function(_0x5d2263,_0x3fe378){return _0x5d2263===_0x3fe378;},'WtZoK':'db\x20could\x20not\x20add\x20msg','ErlXu':function(_0x54e377,_0x62426b){return _0x54e377(_0x62426b);}},_0x51733a=await this[_0x7b7c46(0x176)](_0x2ccdd2['msgId']);if(_0x51733a){if(_0x4c14e9)this[_0x7b7c46(0x158)](_0x2ccdd2)[_0x7b7c46(0x164)]();return _0x51733a['id'];}const _0x3fd0bc=this['db'][_0x7b7c46(0x100)](_0x7b7c46(0x174)),_0x57e311=++this[_0x7b7c46(0x142)];return _0x2ccdd2['id']=_0x57e311,_0x250fa8['ErlXu'](logDebug,'记录消息到数据库,\x20消息长id:\x20'+_0x2ccdd2[_0x7b7c46(0x172)]+',\x20短id:\x20'+_0x2ccdd2['id']),this['msgCache'][_0x7b7c46(0x113)](_0x57e311,_0x2ccdd2),this['msgCache']['set'](_0x2ccdd2[_0x7b7c46(0x172)],_0x2ccdd2),_0x3fd0bc[_0x7b7c46(0xf7)](this[_0x7b7c46(0x142)],_0x2ccdd2[_0x7b7c46(0x172)],_0x2ccdd2[_0x7b7c46(0x127)]['toString'](),_0x2ccdd2[_0x7b7c46(0x17c)],_0x2ccdd2[_0x7b7c46(0x154)],_0x72ba5=>{const _0x53370d=_0x7b7c46;_0x72ba5&&(_0x250fa8[_0x53370d(0x143)](_0x72ba5[_0x53370d(0x106)],0x13)?this[_0x53370d(0x176)](_0x2ccdd2[_0x53370d(0x172)])[_0x53370d(0x164)](_0x455ce2=>{const _0xbad413=_0x53370d;_0x455ce2?(this[_0xbad413(0xff)]['set'](_0x57e311,_0x455ce2),this[_0xbad413(0xff)][_0xbad413(0x113)](_0x455ce2[_0xbad413(0x172)],_0x455ce2)):_0x250fa8[_0xbad413(0x163)](logError,_0xbad413(0x17e),_0x72ba5);})[_0x53370d(0x14a)](_0x4fc855=>logError(_0x53370d(0x162),_0x4fc855)):logError(_0x250fa8[_0x53370d(0x169)],_0x72ba5));}),_0x57e311;}async[_0x9d338a(0x158)](_0x1b20af){const _0x931f15=_0x9d338a,_0x1dce49={'dBJql':function(_0x26e3d5,_0x1c54bc,_0x596c1a){return _0x26e3d5(_0x1c54bc,_0x596c1a);},'SaxFx':_0x931f15(0x125),'OHgkO':function(_0x57b64c,_0x46f2e8){return _0x57b64c(_0x46f2e8);}},_0x49b4c9=this[_0x931f15(0xff)]['get'](_0x1b20af[_0x931f15(0x172)]);_0x49b4c9&&Object[_0x931f15(0x14f)](_0x49b4c9,_0x1b20af);_0x1dce49[_0x931f15(0x159)](logDebug,_0x931f15(0xf5)+_0x1b20af['id']+',\x20seq:\x20'+_0x1b20af[_0x931f15(0x127)]+_0x931f15(0x11c)+_0x1b20af['msgId']);const _0x1d8d1e=this['db']['prepare'](_0x931f15(0x15c));_0x1d8d1e[_0x931f15(0xf7)](_0x1b20af[_0x931f15(0x127)],_0x1b20af[_0x931f15(0x172)],_0x4c10ed=>{const _0x1536f4=_0x931f15;_0x4c10ed&&_0x1dce49[_0x1536f4(0x108)](logError,_0x1dce49[_0x1536f4(0x130)],_0x4c10ed);});}async[_0x9d338a(0x16b)](_0x22ab60){const _0x4bc08f=_0x9d338a,_0xbd7964={'QMhXs':function(_0x11b8af,_0x47efa3,_0x21fa86){return _0x11b8af(_0x47efa3,_0x21fa86);},'DOaEP':_0x4bc08f(0x12d),'Ffjsv':function(_0x360efc,_0xb55e05){return _0x360efc(_0xb55e05);},'XoZQK':'INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)'},_0x30439a=this['db'][_0x4bc08f(0x100)](_0xbd7964[_0x4bc08f(0x14b)]);return new Promise((_0x5f2f92,_0x1b8c6c)=>{const _0x5db9fd=_0x4bc08f;_0x30439a[_0x5db9fd(0xf7)](_0x22ab60[_0x5db9fd(0x175)],_0x22ab60[_0x5db9fd(0x160)],_0x22ab60[_0x5db9fd(0x134)],_0x22ab60[_0x5db9fd(0x150)],_0x22ab60['uuid'],_0x22ab60[_0x5db9fd(0x141)],JSON[_0x5db9fd(0x10b)](_0x22ab60[_0x5db9fd(0x129)]),_0x22ab60[_0x5db9fd(0x177)],_0x22ab60[_0x5db9fd(0x172)],function(_0x193460){const _0xcb1c15=_0x5db9fd;_0x193460&&(_0xbd7964[_0xcb1c15(0x178)](logError,_0xbd7964[_0xcb1c15(0x116)],_0x193460),_0x1b8c6c(_0x193460)),_0xbd7964['Ffjsv'](_0x5f2f92,null);});});}async[_0x9d338a(0x120)](_0xd85b7b,_0x427ee1){const _0x25be8f={'MgssX':function(_0x4d12bd,_0x57a04f,_0x37dc51){return _0x4d12bd(_0x57a04f,_0x37dc51);},'QqwXN':function(_0x18ecb4,_0x5e78df){return _0x18ecb4(_0x5e78df);}},_0x434838=this['db']['prepare'](_0xd85b7b);return new Promise((_0x3515e3,_0x29ef74)=>{const _0x45e259=_0xcf9e,_0x47fff1={'GoAGm':function(_0x47d144,_0x353ae5,_0x36bdd2){const _0xca4694=_0xcf9e;return _0x25be8f[_0xca4694(0x157)](_0x47d144,_0x353ae5,_0x36bdd2);},'WNgAA':function(_0x4f611e,_0x2981d3){const _0x272b25=_0xcf9e;return _0x25be8f[_0x272b25(0xf2)](_0x4f611e,_0x2981d3);}};_0x434838[_0x45e259(0x168)](..._0x427ee1,(_0x27ccf1,_0x2cedb5)=>{const _0x37c73e=_0x45e259;_0x27ccf1&&(_0x47fff1['GoAGm'](logError,_0x37c73e(0x131),_0x27ccf1),_0x29ef74(_0x27ccf1)),_0x2cedb5&&(_0x2cedb5[_0x37c73e(0x129)]=JSON[_0x37c73e(0x14e)](_0x2cedb5[_0x37c73e(0x129)])),_0x47fff1[_0x37c73e(0x10c)](_0x3515e3,_0x2cedb5);});});}async[_0x9d338a(0x10f)](_0x3c6d1b){const _0x310fb4=_0x9d338a,_0x18f2d4={'XgOrm':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?'};return this[_0x310fb4(0x120)](_0x18f2d4[_0x310fb4(0x138)],[_0x3c6d1b]);}async[_0x9d338a(0x166)](_0x277343){const _0x5df064=_0x9d338a,_0x4b1408={'bMzof':_0x5df064(0x114)};return this['getFileCache'](_0x4b1408[_0x5df064(0x14c)],[_0x277343]);}async[_0x9d338a(0x13d)](_0x54bb51){const _0x4f68eb=_0x9d338a,_0x1e4fce={'WDEMj':_0x4f68eb(0x126),'CsZSr':function(_0x5a198a,_0x449fc4){return _0x5a198a(_0x449fc4);},'dLgCR':_0x4f68eb(0x122)},_0x471569=this['db'][_0x4f68eb(0x100)](_0x1e4fce[_0x4f68eb(0x15b)]);return new Promise((_0x54b94f,_0x3ec530)=>{const _0x29e611=_0x4f68eb;_0x471569[_0x29e611(0xf7)](_0x54bb51['path'],_0x54bb51[_0x29e611(0x134)],_0x54bb51['uuid'],function(_0xd3ddce){const _0x4d3603=_0x29e611;_0xd3ddce&&(logError(_0x1e4fce[_0x4d3603(0x170)],_0xd3ddce),_0x1e4fce[_0x4d3603(0x152)](_0x3ec530,_0xd3ddce)),_0x1e4fce[_0x4d3603(0x152)](_0x54b94f,null);});});}async[_0x9d338a(0x156)](){const _0x5a7b3f=_0x9d338a,_0x135db9={'VthHx':function(_0x3b5bcb,_0x260b51,_0x355c9f){return _0x3b5bcb(_0x260b51,_0x355c9f);},'ITafN':'db\x20could\x20not\x20get\x20temp\x20uin\x20map','rVYVU':function(_0x35a00e,_0x1998ed){return _0x35a00e(_0x1998ed);},'ucMKj':_0x5a7b3f(0x16e)},_0x39154d=_0x135db9[_0x5a7b3f(0x109)];return new Promise((_0x2d9dd6,_0x5830c6)=>{this['db']['all'](_0x39154d,(_0x31f17e,_0x16da97)=>{const _0x586e61=_0xcf9e;_0x31f17e&&(_0x135db9['VthHx'](logError,_0x135db9[_0x586e61(0xf6)],_0x31f17e),_0x135db9[_0x586e61(0x11e)](_0x5830c6,_0x31f17e));const _0x46a341={};_0x16da97[_0x586e61(0x180)](_0x1f616b=>{const _0x26a9a3=_0x586e61;_0x46a341[_0x1f616b[_0x26a9a3(0x119)]]=_0x1f616b[_0x26a9a3(0x11f)];}),_0x135db9[_0x586e61(0x11e)](_0x2d9dd6,_0x46a341);});});}async[_0x9d338a(0x110)](_0x11affd){const _0x3f1852=_0x9d338a,_0x188e95={'cWFoW':function(_0xf9ca47,_0x2df5aa,_0x7db1f8){return _0xf9ca47(_0x2df5aa,_0x7db1f8);},'KKBTM':'SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?'},_0x3880a8=_0x188e95[_0x3f1852(0x12e)];return new Promise((_0x3ccd0f,_0x836b28)=>{const _0x36fe5b=_0x3f1852,_0x3d2dea={'UkYgj':function(_0x34923c,_0x46448b,_0x1e711c){const _0x4041fe=_0xcf9e;return _0x188e95[_0x4041fe(0x153)](_0x34923c,_0x46448b,_0x1e711c);},'XkjSw':_0x36fe5b(0x105)};this['db'][_0x36fe5b(0x168)](_0x3880a8,[_0x11affd],(_0x4829c9,_0x8341ab)=>{const _0x5ee5ac=_0x36fe5b;_0x4829c9&&(_0x3d2dea['UkYgj'](logError,_0x3d2dea[_0x5ee5ac(0xfe)],_0x4829c9),_0x836b28(_0x4829c9)),_0x3ccd0f(_0x8341ab?.[_0x5ee5ac(0x11f)]);});});}async[_0x9d338a(0x121)](_0x10954d,_0x1c0f1a){const _0x362f46=_0x9d338a,_0x515cc6={'tgzfT':function(_0x1121da,_0x15e100,_0x484d7d){return _0x1121da(_0x15e100,_0x484d7d);},'YfmrZ':'db\x20could\x20not\x20add\x20temp\x20uin','fDeiL':function(_0x5c4bcb,_0x4baf9c){return _0x5c4bcb(_0x4baf9c);},'nucCh':'INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)'},_0x548ed8=await this[_0x362f46(0x110)](_0x10954d);if(!_0x548ed8){const _0xa4d7f8=this['db'][_0x362f46(0x100)](_0x515cc6['nucCh']);return new Promise((_0xc37ed1,_0x4074af)=>{const _0x1bec7a=_0x362f46;_0xa4d7f8[_0x1bec7a(0xf7)](_0x10954d,_0x1c0f1a,function(_0x38e1d1){const _0x3d47af=_0x1bec7a;_0x38e1d1&&(_0x515cc6[_0x3d47af(0x11a)](logError,_0x515cc6[_0x3d47af(0x15a)],_0x38e1d1),_0x515cc6['fDeiL'](_0x4074af,_0x38e1d1)),_0x515cc6[_0x3d47af(0x136)](_0xc37ed1,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file +const _0xb05f79=_0x4726;(function(_0x1a3eb1,_0x40f16a){const _0x39099c=_0x4726,_0x514e35=_0x1a3eb1();while(!![]){try{const _0x4a8a5c=parseInt(_0x39099c(0x114))/0x1+-parseInt(_0x39099c(0xd2))/0x2*(parseInt(_0x39099c(0x10b))/0x3)+-parseInt(_0x39099c(0x11a))/0x4*(parseInt(_0x39099c(0xd8))/0x5)+parseInt(_0x39099c(0xee))/0x6*(-parseInt(_0x39099c(0x10c))/0x7)+-parseInt(_0x39099c(0x140))/0x8*(parseInt(_0x39099c(0x145))/0x9)+-parseInt(_0x39099c(0xf3))/0xa+parseInt(_0x39099c(0x111))/0xb;if(_0x4a8a5c===_0x40f16a)break;else _0x514e35['push'](_0x514e35['shift']());}catch(_0x3f8a75){_0x514e35['push'](_0x514e35['shift']());}}}(_0x2c06,0xdba95));import _0x2c0625 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';function _0x4726(_0x1c333f,_0x4b20c5){const _0x2c0652=_0x2c06();return _0x4726=function(_0x472668,_0x1c2ce5){_0x472668=_0x472668-0xcc;let _0x28b340=_0x2c0652[_0x472668];return _0x28b340;},_0x4726(_0x1c333f,_0x4b20c5);}import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0xb05f79(0x11e)](_0x470d9d){const _0xd9f198={'eOTiU':function(_0x47b95b,_0x434186,_0x42b0b3){return _0x47b95b(_0x434186,_0x42b0b3);},'OvMHV':function(_0xdc298){return _0xdc298();},'qEotn':function(_0x319109,_0x3abc84){return _0x319109|_0x3abc84;}};if(this['db'])return;return new Promise((_0x67d4db,_0x110211)=>{const _0x556c59=_0x4726;this['db']=new _0x2c0625[(_0x556c59(0x137))](_0x470d9d,_0xd9f198[_0x556c59(0xef)](_0x2c0625['OPEN_READWRITE'],_0x2c0625['OPEN_CREATE']),_0x163d50=>{const _0x17003c=_0x556c59;if(_0x163d50){_0xd9f198[_0x17003c(0xdd)](logError,_0x17003c(0xf7),_0x163d50),_0x110211(_0x163d50);return;}this['createTable'](),_0xd9f198['OvMHV'](_0x67d4db);});});}[_0xb05f79(0x143)](){const _0x139169=_0xb05f79;throw new Error(_0x139169(0xec));}[_0xb05f79(0xe2)](){const _0x7f7521=_0xb05f79;this['db']?.[_0x7f7521(0xe2)]();}}class DBUtil extends DBUtilBase{['msgCache']=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x26a1c0=_0xb05f79,_0x3237ca={'oWJcy':function(_0x1c968b,_0x587886){return _0x1c968b>_0x587886;},'IBfMH':function(_0x3382fd,_0x5566a4){return _0x3382fd(_0x5566a4);},'qXiCG':function(_0x2aed82,_0x21a4e3){return _0x2aed82(_0x21a4e3);},'JBNLc':_0x26a1c0(0xf1),'tylCo':function(_0x40143b,_0x4acde6){return _0x40143b*_0x4acde6;}};super();const _0xa97945=_0x3237ca[_0x26a1c0(0xe8)](0x3e8*0x3c,0xa);setInterval(()=>{const _0x5a7006=_0x26a1c0;_0x3237ca[_0x5a7006(0x10a)](logDebug,_0x3237ca[_0x5a7006(0xdb)]),this[_0x5a7006(0x117)]['forEach']((_0xf892e2,_0x10cad2)=>{const _0x1e692=_0x5a7006;_0x3237ca['oWJcy'](Date[_0x1e692(0xce)]()-_0x3237ca[_0x1e692(0x128)](parseInt,_0xf892e2[_0x1e692(0x147)])*0x3e8,_0xa97945)&&this[_0x1e692(0x117)][_0x1e692(0x118)](_0x10cad2);});},_0xa97945);}async['init'](_0x20c34d){const _0x8ab96f=_0xb05f79;await super[_0x8ab96f(0x11e)](_0x20c34d),this[_0x8ab96f(0x152)]=await this[_0x8ab96f(0x12c)]();}[_0xb05f79(0x143)](){const _0x426ebd=_0xb05f79,_0x5b3149={'DhIzD':'Could\x20not\x20create\x20table\x20msgs','jUbtI':function(_0x120a27,_0x21d1c2,_0x5d3ba4){return _0x120a27(_0x21d1c2,_0x5d3ba4);},'xTfiz':'Could\x20not\x20create\x20table\x20files','ocsQO':function(_0x2a2031,_0x19b9e6,_0x2ce3cc){return _0x2a2031(_0x19b9e6,_0x2ce3cc);}},_0x172f8e='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)';this['db'][_0x426ebd(0xf5)](_0x172f8e,function(_0x4fbf04){const _0x10bf5f=_0x426ebd;_0x4fbf04&&logError(_0x5b3149['DhIzD'],_0x4fbf04[_0x10bf5f(0x12e)]);});const _0xf6c24b=_0x426ebd(0x136);this['db'][_0x426ebd(0xf5)](_0xf6c24b,function(_0x4a815f){_0x4a815f&&_0x5b3149['jUbtI'](logError,_0x5b3149['xTfiz'],_0x4a815f);});const _0x1cb2f5=_0x426ebd(0xcd);this['db']['run'](_0x1cb2f5,function(_0x339955){const _0x218fa1=_0x426ebd;_0x339955&&_0x5b3149[_0x218fa1(0x116)](logError,_0x218fa1(0xf2),_0x339955);});}async[_0xb05f79(0x12c)](){const _0x4f0a5b=_0xb05f79,_0x153024={'uHgfb':function(_0x2a4ec8,_0x12e389,_0x12e399){return _0x2a4ec8(_0x12e389,_0x12e399);},'pDTOm':_0x4f0a5b(0x148),'nQYvo':function(_0x334c6d,_0x16c958){return _0x334c6d(_0x16c958);},'HpLqc':_0x4f0a5b(0x101),'pWZZT':function(_0x4b7771,_0xe8757){return _0x4b7771(_0xe8757);},'GNwHN':'SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs'};return new Promise((_0x4af5c3,_0x3f02e3)=>{const _0x24972f=_0x4f0a5b;this['db'][_0x24972f(0x13a)](_0x153024[_0x24972f(0x149)],(_0x4dfc2c,_0x2273df)=>{const _0x45c024=_0x24972f;if(_0x4dfc2c)return _0x153024[_0x45c024(0x115)](logDebug,_0x153024[_0x45c024(0x127)],_0x4dfc2c),_0x153024[_0x45c024(0x11b)](_0x4af5c3,-0x7ffffff8);logDebug(_0x153024[_0x45c024(0xcf)],_0x2273df?.[_0x45c024(0xe3)]),_0x153024[_0x45c024(0x141)](_0x4af5c3,_0x2273df?.['maxId']??-0x7ffffff8);});});}async['getMsg'](_0x48e3d8,_0x5ac9c7){const _0x4258d9=_0xb05f79,_0x516025={'UXNGf':_0x4258d9(0x13c),'ItEmp':function(_0x3c276d,_0xb3ae83){return _0x3c276d(_0xb3ae83);}},_0x2b9a13=this['db'][_0x4258d9(0xed)](_0x48e3d8);return new Promise((_0x403dd7,_0x432517)=>{const _0x41b41b={'kgrtj':function(_0x3cfb57,_0x2b1f64){return _0x3cfb57(_0x2b1f64);}};_0x2b9a13['get'](..._0x5ac9c7,(_0x4d6c2d,_0x55908b)=>{const _0x47630f=_0x4726,_0x1d1c9f={'KKDgx':function(_0x33ee77,_0xc82326){return _0x33ee77(_0xc82326);}};if(_0x4d6c2d)return logError(_0x516025[_0x47630f(0xfb)],_0x4d6c2d,_0x48e3d8,_0x5ac9c7),_0x516025['ItEmp'](_0x403dd7,null);if(!_0x55908b){_0x516025['ItEmp'](_0x403dd7,null);return;}const _0x41652e=_0x55908b[_0x47630f(0xe7)];NTQQMsgApi[_0x47630f(0x153)]({'peerUid':_0x55908b['peerUid'],'chatType':_0x55908b['chatType']},[_0x41652e])[_0x47630f(0x14b)](_0x56c7f6=>{const _0xe31d43=_0x47630f,_0x1a52cb=_0x56c7f6[_0xe31d43(0x14e)][0x0];if(!_0x1a52cb){_0x41b41b['kgrtj'](_0x403dd7,null);return;}_0x1a52cb['id']=_0x55908b['shortId'],_0x41b41b[_0xe31d43(0x12a)](_0x403dd7,_0x1a52cb);})['catch'](_0x491991=>{const _0x6bcd8a=_0x47630f;_0x1d1c9f[_0x6bcd8a(0xfc)](_0x403dd7,null);});});});}async['getMsgByShortId'](_0x22082d){const _0x570f1c=_0xb05f79,_0x4e2770={'IXgtw':_0x570f1c(0x130)};if(this['msgCache']['has'](_0x22082d))return this['msgCache'][_0x570f1c(0x13a)](_0x22082d);const _0x102bc1=_0x4e2770['IXgtw'];return this[_0x570f1c(0x11c)](_0x102bc1,[_0x22082d]);}async[_0xb05f79(0x10f)](_0x1509bb){const _0x30a65b=_0xb05f79,_0x4b884c={'pnyQZ':_0x30a65b(0x151)};if(this['msgCache'][_0x30a65b(0x105)](_0x1509bb))return this[_0x30a65b(0x117)]['get'](_0x1509bb);return this[_0x30a65b(0x11c)](_0x4b884c[_0x30a65b(0x14f)],[_0x1509bb]);}async['getMsgBySeq'](_0x2247fe,_0x311d29){const _0x19168d=_0xb05f79,_0x13c3b6='SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?';return this[_0x19168d(0x11c)](_0x13c3b6,[_0x2247fe,_0x311d29]);}async[_0xb05f79(0x14c)](_0x243e50,_0x44c064=!![]){const _0x3ca0df=_0xb05f79,_0x2a9b6={'lkuDm':function(_0x43befe,_0x1692e5,_0x4610c4){return _0x43befe(_0x1692e5,_0x4610c4);},'jzdOF':_0x3ca0df(0xf9),'ylnaX':_0x3ca0df(0xea),'CdSVE':function(_0x3e8b06,_0xb34ea3){return _0x3e8b06(_0xb34ea3);}},_0x450dcd=await this[_0x3ca0df(0x10f)](_0x243e50[_0x3ca0df(0x108)]);if(_0x450dcd){if(_0x44c064)this[_0x3ca0df(0x120)](_0x243e50)['then']();return _0x450dcd['id'];}const _0x5c69a0=this['db'][_0x3ca0df(0xed)](_0x3ca0df(0x107)),_0x55290d=++this[_0x3ca0df(0x152)];return _0x243e50['id']=_0x55290d,_0x2a9b6[_0x3ca0df(0x123)](logDebug,_0x3ca0df(0x10d)+_0x243e50[_0x3ca0df(0x108)]+',\x20短id:\x20'+_0x243e50['id']),this[_0x3ca0df(0x117)][_0x3ca0df(0xd5)](_0x55290d,_0x243e50),this['msgCache'][_0x3ca0df(0xd5)](_0x243e50[_0x3ca0df(0x108)],_0x243e50),_0x5c69a0[_0x3ca0df(0xf5)](this[_0x3ca0df(0x152)],_0x243e50['msgId'],_0x243e50['msgSeq'][_0x3ca0df(0x142)](),_0x243e50[_0x3ca0df(0xeb)],_0x243e50['chatType'],_0x184913=>{const _0x39e12e=_0x3ca0df,_0x19496e={'QRVuZ':function(_0x9c47cd,_0x41aaed,_0x56ba62){const _0x9fee59=_0x4726;return _0x2a9b6[_0x9fee59(0x102)](_0x9c47cd,_0x41aaed,_0x56ba62);},'pVNwG':_0x2a9b6[_0x39e12e(0x100)]};_0x184913&&(_0x184913['errno']===0x13?this['getMsgByLongId'](_0x243e50['msgId'])[_0x39e12e(0x14b)](_0x222031=>{const _0x3bfe8e=_0x39e12e;_0x222031?(this[_0x3bfe8e(0x117)]['set'](_0x55290d,_0x222031),this[_0x3bfe8e(0x117)]['set'](_0x222031[_0x3bfe8e(0x108)],_0x222031)):_0x19496e[_0x3bfe8e(0xd1)](logError,_0x19496e[_0x3bfe8e(0xd0)],_0x184913);})[_0x39e12e(0xe4)](_0x92724b=>logError(_0x39e12e(0x13d),_0x92724b)):logError(_0x2a9b6[_0x39e12e(0xf6)],_0x184913));}),_0x55290d;}async[_0xb05f79(0x120)](_0x480e7c){const _0x38e14d=_0xb05f79,_0x47ccfc={'qnclT':function(_0x9d1b1c,_0xbcdc08,_0x3c0ab2){return _0x9d1b1c(_0xbcdc08,_0x3c0ab2);},'WGIQA':_0x38e14d(0xe5),'CvJbK':_0x38e14d(0xf4)},_0xa50b1c=this[_0x38e14d(0x117)][_0x38e14d(0x13a)](_0x480e7c[_0x38e14d(0x108)]);_0xa50b1c&&Object[_0x38e14d(0xdc)](_0xa50b1c,_0x480e7c);logDebug(_0x38e14d(0xcc)+_0x480e7c['id']+_0x38e14d(0x139)+_0x480e7c[_0x38e14d(0x138)]+_0x38e14d(0x150)+_0x480e7c['msgId']);const _0x31987c=this['db'][_0x38e14d(0xed)](_0x47ccfc['CvJbK']);_0x31987c[_0x38e14d(0xf5)](_0x480e7c[_0x38e14d(0x138)],_0x480e7c[_0x38e14d(0x108)],_0x58d3ff=>{const _0x43c3b0=_0x38e14d;_0x58d3ff&&_0x47ccfc[_0x43c3b0(0xd7)](logError,_0x47ccfc[_0x43c3b0(0x11f)],_0x58d3ff);});}async[_0xb05f79(0x131)](_0x577fc4){const _0x5b49b4=_0xb05f79,_0x113c9d={'NkcRY':_0x5b49b4(0x12d),'hhnKp':function(_0x2c994c,_0x102bf6){return _0x2c994c(_0x102bf6);},'leGts':_0x5b49b4(0xe9)},_0x38f28c=this['db'][_0x5b49b4(0xed)](_0x113c9d[_0x5b49b4(0x106)]);return new Promise((_0x32c921,_0x461bd5)=>{const _0x2f195a=_0x5b49b4,_0x162cc8={'zTpgL':function(_0x30f0f0,_0x4e8d91,_0x30e11d){return _0x30f0f0(_0x4e8d91,_0x30e11d);},'jSKIZ':_0x113c9d[_0x2f195a(0xd9)],'YoLcX':function(_0xf9725b,_0x3d5d70){return _0xf9725b(_0x3d5d70);},'cXEPB':function(_0x12fd6d,_0xe2f272){const _0x4e1f5a=_0x2f195a;return _0x113c9d[_0x4e1f5a(0xe6)](_0x12fd6d,_0xe2f272);}};_0x38f28c[_0x2f195a(0xf5)](_0x577fc4[_0x2f195a(0x13b)],_0x577fc4[_0x2f195a(0xf8)],_0x577fc4[_0x2f195a(0x103)],_0x577fc4[_0x2f195a(0xdf)],_0x577fc4[_0x2f195a(0x133)],_0x577fc4['elementType'],JSON['stringify'](_0x577fc4[_0x2f195a(0xd6)]),_0x577fc4[_0x2f195a(0x121)],_0x577fc4[_0x2f195a(0x108)],function(_0x415b06){const _0x4b8cee=_0x2f195a;_0x415b06&&(_0x162cc8[_0x4b8cee(0x112)](logError,_0x162cc8[_0x4b8cee(0x11d)],_0x415b06),_0x162cc8[_0x4b8cee(0x135)](_0x461bd5,_0x415b06)),_0x162cc8[_0x4b8cee(0x146)](_0x32c921,null);});});}async[_0xb05f79(0x12f)](_0x440067,_0x277a2c){const _0x49586e=_0xb05f79,_0xa2f65a={'CZRKd':function(_0x3ae023,_0xb4c09f,_0x157db0){return _0x3ae023(_0xb4c09f,_0x157db0);},'ayLvl':_0x49586e(0x13f),'eYLYQ':function(_0x556872,_0x544413){return _0x556872(_0x544413);}},_0x514d1d=this['db'][_0x49586e(0xed)](_0x440067);return new Promise((_0x4cc654,_0x158eb0)=>{const _0x1b04c7=_0x49586e;_0x514d1d[_0x1b04c7(0x13a)](..._0x277a2c,(_0x129922,_0x62d76a)=>{const _0x5b6932=_0x1b04c7;_0x129922&&(_0xa2f65a[_0x5b6932(0x10e)](logError,_0xa2f65a[_0x5b6932(0xff)],_0x129922),_0xa2f65a['eYLYQ'](_0x158eb0,_0x129922)),_0x62d76a&&(_0x62d76a[_0x5b6932(0xd6)]=JSON[_0x5b6932(0x14a)](_0x62d76a[_0x5b6932(0xd6)])),_0x4cc654(_0x62d76a);});});}async[_0xb05f79(0x12b)](_0x4cdb60){const _0x1c9869=_0xb05f79,_0x50b569={'SzpEk':_0x1c9869(0x125)};return this['getFileCache'](_0x50b569['SzpEk'],[_0x4cdb60]);}async[_0xb05f79(0x14d)](_0x8093ef){const _0x255bb4=_0xb05f79;return this[_0x255bb4(0x12f)](_0x255bb4(0x134),[_0x8093ef]);}async['updateFileCache'](_0x159530){const _0x250e11=_0xb05f79,_0x3b28a1={'bxhaA':function(_0x18f2c0,_0x16ef10,_0x3a113){return _0x18f2c0(_0x16ef10,_0x3a113);},'OdJNp':_0x250e11(0x13e)},_0x55535a=this['db']['prepare'](_0x3b28a1[_0x250e11(0xda)]);return new Promise((_0x77f475,_0x1228c3)=>{const _0x64f45c=_0x250e11;_0x55535a[_0x64f45c(0xf5)](_0x159530['path'],_0x159530['url'],_0x159530[_0x64f45c(0x133)],function(_0x54d175){const _0x13d02a=_0x64f45c;_0x54d175&&(_0x3b28a1[_0x13d02a(0x122)](logError,_0x13d02a(0x129),_0x54d175),_0x1228c3(_0x54d175)),_0x77f475(null);});});}async[_0xb05f79(0xfd)](){const _0x5989ee=_0xb05f79,_0x28ed84={'eWCST':function(_0x41523,_0x54cd51){return _0x41523(_0x54cd51);},'HnQhC':_0x5989ee(0xd3)},_0x1fa221=_0x28ed84['HnQhC'];return new Promise((_0x27937f,_0x11f1d3)=>{const _0x29f089=_0x5989ee;this['db'][_0x29f089(0x109)](_0x1fa221,(_0x36136e,_0x2ccaf6)=>{const _0x59b7b3=_0x29f089;_0x36136e&&(logError('db\x20could\x20not\x20get\x20temp\x20uin\x20map',_0x36136e),_0x28ed84['eWCST'](_0x11f1d3,_0x36136e));const _0x3fa6d4={};_0x2ccaf6[_0x59b7b3(0x113)](_0x2bf524=>{_0x3fa6d4[_0x2bf524['uin']]=_0x2bf524['uid'];}),_0x27937f(_0x3fa6d4);});});}async['getUidByTempUin'](_0x3ae95b){const _0x1866f9=_0xb05f79,_0x118d68={'ZzRtz':function(_0x1725a4,_0x5755c4,_0x3eae2e){return _0x1725a4(_0x5755c4,_0x3eae2e);},'PbBoB':function(_0x9a3fee,_0xf25a4){return _0x9a3fee(_0xf25a4);},'ItslP':_0x1866f9(0x154)},_0x12b6d2=_0x118d68[_0x1866f9(0x119)];return new Promise((_0x3a109e,_0x2c25d3)=>{const _0x2b479a=_0x1866f9,_0x31603b={'ZDZVY':function(_0x49a8f1,_0x2e696f,_0x192a92){const _0x3943ab=_0x4726;return _0x118d68[_0x3943ab(0x110)](_0x49a8f1,_0x2e696f,_0x192a92);},'iXSDY':function(_0x4b864d,_0x3ebe00){const _0x491113=_0x4726;return _0x118d68[_0x491113(0x126)](_0x4b864d,_0x3ebe00);},'mWnee':function(_0x14479c,_0x1079fe){return _0x14479c(_0x1079fe);}};this['db'][_0x2b479a(0x13a)](_0x12b6d2,[_0x3ae95b],(_0x1c6663,_0x495a26)=>{const _0x53f03e=_0x2b479a;_0x1c6663&&(_0x31603b[_0x53f03e(0x124)](logError,'db\x20could\x20not\x20get\x20temp\x20uin\x20map',_0x1c6663),_0x31603b[_0x53f03e(0xe1)](_0x2c25d3,_0x1c6663)),_0x31603b[_0x53f03e(0xe0)](_0x3a109e,_0x495a26?.['uid']);});});}async[_0xb05f79(0x104)](_0x9851ff,_0x5089ee){const _0x51568=_0xb05f79,_0x341bdc={'quvSQ':function(_0x28b664,_0x35db2f,_0x106c3b){return _0x28b664(_0x35db2f,_0x106c3b);}},_0x17a92f=await this[_0x51568(0xde)](_0x9851ff);if(!_0x17a92f){const _0x5cd0bd=this['db'][_0x51568(0xed)](_0x51568(0x132));return new Promise((_0x3baa82,_0x56b7cd)=>{const _0x76b054=_0x51568,_0x3eebad={'NeWcz':function(_0x448f1e,_0x27dffc,_0x5c85b9){const _0x294aea=_0x4726;return _0x341bdc[_0x294aea(0xfe)](_0x448f1e,_0x27dffc,_0x5c85b9);},'YhRYk':_0x76b054(0xf0),'ofNPQ':function(_0x4e28bb,_0x5cb4b7){return _0x4e28bb(_0x5cb4b7);}};_0x5cd0bd[_0x76b054(0xf5)](_0x9851ff,_0x5089ee,function(_0x2520aa){const _0x274346=_0x76b054;_0x2520aa&&(_0x3eebad[_0x274346(0xfa)](logError,_0x3eebad[_0x274346(0x144)],_0x2520aa),_0x3eebad[_0x274346(0xd4)](_0x56b7cd,_0x2520aa)),_0x3eebad[_0x274346(0xd4)](_0x3baa82,null);});});}}}export const dbUtil=new DBUtil();function _0x2c06(){const _0x47d345=['Database','msgSeq',',\x20seq:\x20','get','name','Could\x20not\x20get\x20msg','db\x20getMsgByLongId\x20error','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','db\x20could\x20not\x20get\x20file\x20cache','7712NIzWtW','pWZZT','toString','createTable','YhRYk','6705KnNlUK','cXEPB','msgTime','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','GNwHN','parse','then','addMsg','getFileCacheByUuid','msgList','pnyQZ',',\x20msgId:\x20','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','globalMsgShortId','getMsgsByMsgId','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','更新消息,\x20shortId:','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','now','HpLqc','pVNwG','QRVuZ','3447026UmqOoG','SELECT\x20*\x20FROM\x20temp_uins','ofNPQ','set','element','qnclT','95Keldid','NkcRY','OdJNp','JBNLc','assign','eOTiU','getUidByTempUin','size','mWnee','iXSDY','close','maxId','catch','updateMsg\x20db\x20error','hhnKp','longId','tylCo','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','db\x20could\x20not\x20add\x20msg','peerUid','Method\x20not\x20implemented.','prepare','16494GNgloE','qEotn','db\x20could\x20not\x20add\x20temp\x20uin','清理消息缓存','Could\x20not\x20create\x20table\x20temp_uins','12528760yDGZbS','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','run','ylnaX','Could\x20not\x20connect\x20to\x20database','path','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','NeWcz','UXNGf','KKDgx','getReceivedTempUinMap','quvSQ','ayLvl','jzdOF','数据库中消息最大短id','lkuDm','url','addTempUin','has','leGts','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','msgId','all','qXiCG','3NLEYBs','4200nhPbSo','记录消息到数据库,\x20消息长id:\x20','CZRKd','getMsgByLongId','ZzRtz','80303960fxPaVw','zTpgL','forEach','525225IfqSxc','uHgfb','ocsQO','msgCache','delete','ItslP','333028biSgzt','nQYvo','getMsg','jSKIZ','init','WGIQA','updateMsg','elementId','bxhaA','CdSVE','ZDZVY','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','PbBoB','pDTOm','IBfMH','db\x20could\x20not\x20update\x20file\x20cache','kgrtj','getFileCacheByName','getCurrentMaxShortId','db\x20could\x20not\x20add\x20file','stack','getFileCache','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','addFileCache','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','uuid','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','YoLcX','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)'];_0x2c06=function(){return _0x47d345;};return _0x2c06();} \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 25784144..181b9244 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x4a0526=_0x14c9;(function(_0x510263,_0x236fa5){const _0x169e14=_0x14c9,_0x4017e9=_0x510263();while(!![]){try{const _0x1ffee5=-parseInt(_0x169e14(0x141))/0x1*(-parseInt(_0x169e14(0x140))/0x2)+-parseInt(_0x169e14(0x13e))/0x3+-parseInt(_0x169e14(0x147))/0x4+parseInt(_0x169e14(0x145))/0x5+parseInt(_0x169e14(0x144))/0x6+-parseInt(_0x169e14(0x13d))/0x7*(parseInt(_0x169e14(0x13f))/0x8)+parseInt(_0x169e14(0x148))/0x9;if(_0x1ffee5===_0x236fa5)break;else _0x4017e9['push'](_0x4017e9['shift']());}catch(_0x31b40c){_0x4017e9['push'](_0x4017e9['shift']());}}}(_0x1b67,0x39387));import _0x53f6c9 from'node:path';function _0x14c9(_0x4bd986,_0x14d71f){const _0x1b6729=_0x1b67();return _0x14c9=function(_0x14c934,_0x34d03f){_0x14c934=_0x14c934-0x13c;let _0x267b3a=_0x1b6729[_0x14c934];return _0x267b3a;},_0x14c9(_0x4bd986,_0x14d71f);}import _0x5295c0 from'node:fs';function _0x1b67(){const _0x5dd790=['dirname','7gGCOZH','483801EkIevu','2434112SzRujq','292AQyHyH','868YRArcW','curVersion','execPath','2017818XGGSrg','2250700vsVPNg','/wrapper.node','1274084uAfmDs','947304tszKFG'];_0x1b67=function(){return _0x5dd790;};return _0x1b67();}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x53f6c9['resolve'](_0x53f6c9[_0x4a0526(0x13c)](process[_0x4a0526(0x143)]),'./resources/app/wrapper.node');!_0x5295c0['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x53f6c9['join'](_0x53f6c9[_0x4a0526(0x13c)](process['execPath']),'resources/app/versions/'+qqVersionConfigInfo[_0x4a0526(0x142)]+_0x4a0526(0x146)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file +const _0x1b27a5=_0x68dc;function _0x68dc(_0x153f90,_0x49c7ba){const _0x3079b7=_0x3079();return _0x68dc=function(_0x68dcf3,_0x87aafa){_0x68dcf3=_0x68dcf3-0x145;let _0x246622=_0x3079b7[_0x68dcf3];return _0x246622;},_0x68dc(_0x153f90,_0x49c7ba);}function _0x3079(){const _0x401d6b=['resources/app/versions/','existsSync','5787eVHLFk','execPath','join','1541379hHJKvY','381725vyAjOY','952654fpcKrG','5050002nIUhsT','/wrapper.node','4423468AylgxT','36AXxTmS','38660TqiPYH','5864776lJWGXI','resolve','2gfvwtj'];_0x3079=function(){return _0x401d6b;};return _0x3079();}(function(_0x470a8a,_0x310a8b){const _0x250d7a=_0x68dc,_0x5cfe55=_0x470a8a();while(!![]){try{const _0xbfa517=-parseInt(_0x250d7a(0x147))/0x1*(parseInt(_0x250d7a(0x14f))/0x2)+parseInt(_0x250d7a(0x145))/0x3+-parseInt(_0x250d7a(0x14b))/0x4*(-parseInt(_0x250d7a(0x146))/0x5)+-parseInt(_0x250d7a(0x148))/0x6+-parseInt(_0x250d7a(0x14a))/0x7+-parseInt(_0x250d7a(0x14d))/0x8+-parseInt(_0x250d7a(0x152))/0x9*(-parseInt(_0x250d7a(0x14c))/0xa);if(_0xbfa517===_0x310a8b)break;else _0x5cfe55['push'](_0x5cfe55['shift']());}catch(_0x33b6ce){_0x5cfe55['push'](_0x5cfe55['shift']());}}}(_0x3079,0x80c22));import _0x604654 from'node:path';import _0x15ca87 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x604654[_0x1b27a5(0x14e)](_0x604654['dirname'](process[_0x1b27a5(0x153)]),'./resources/app/wrapper.node');!_0x15ca87[_0x1b27a5(0x151)](wrapperNodePath)&&(wrapperNodePath=_0x604654[_0x1b27a5(0x154)](_0x604654['dirname'](process['execPath']),_0x1b27a5(0x150)+qqVersionConfigInfo['curVersion']+_0x1b27a5(0x149)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file diff --git a/src/hook/frida_lood.ts b/src/hook/frida_lood.ts new file mode 100644 index 00000000..770e0e1f --- /dev/null +++ b/src/hook/frida_lood.ts @@ -0,0 +1,39 @@ +import * as frida from 'frida'; +import { promises as fs } from 'fs'; +import path from 'node:path'; + +async function loadFridaScript(scriptPath: string): Promise { + try { + // Attach to the process + const currentPid = process.pid; + console.log('Attaching to process:', currentPid); + const targetProcess = await frida.attach(currentPid); + + // Read the script file + const scriptCode = await fs.readFile(scriptPath, { encoding: 'utf8' }); + + // Create the script in the target process + const script = await targetProcess.createScript(scriptCode); + + // Connect to script messages + script.message.connect((message, data) => { + if (message.type === 'send') { + console.log('[Script]:', message.payload); + } else if (message.type === 'error') { + console.error('[Script Error]:', message.stack); + } + }); + + // Load the script into the target process + await script.load(); + + console.log('Script loaded successfully and is now running.'); + } catch (error) { + console.error('Failed to load script:', error); + } +} + +export function hookInit() { +// Assuming the process name and script file path are correct + loadFridaScript(path.join(path.resolve(__dirname), 'frida_script.js')).catch(console.error); +} diff --git a/src/hook/frida_script.js b/src/hook/frida_script.js new file mode 100644 index 00000000..0dce7ecf --- /dev/null +++ b/src/hook/frida_script.js @@ -0,0 +1,24 @@ +const moduleName = 'wrapper.node'; +const offset = 0x18152AFE0; // 静态地址偏移 + +// 查找模块基地址 +const baseAddress = Module.findBaseAddress(moduleName); +if (!baseAddress) { + throw new Error('Module not found.'); +} + +// 计算绝对地址 +const absoluteAddress = baseAddress.add(offset); + +// 设置拦截器 +Interceptor.attach(absoluteAddress, { + onEnter: function(args) { + console.log(`[+] Function at offset ${offset} in wrapper.node was called`); + console.log('Argument 0:', args[0].toInt32()); + }, + onLeave: function(retval) { + console.log('Return value:', retval.toInt32()); + // 可以在这里修改返回值 + retval.replace(42); + } +}); diff --git a/src/hook/test.cjs b/src/hook/test.cjs new file mode 100644 index 00000000..eb57cf8c --- /dev/null +++ b/src/hook/test.cjs @@ -0,0 +1,23 @@ +const frida = require('frida'); +const fs = require('fs'); +const path = require('path'); + +async function main() { + // 获取当前 Node.js 进程的 ID + const pid = process.pid; + const session = await frida.attach(pid); // 附加到当前进程 + + const scriptCode = fs.readFileSync(path.join(path.resolve(__dirname), 'frida_script.js'), 'utf-8'); + const script = await session.createScript(scriptCode); + + script.message.connect(message => { + console.log('Message from Frida:', message); + }); + + await script.load(); + console.log('Frida script has been loaded successfully.'); +} + +main().catch(err => { + console.error(err); +}); diff --git a/vite.config.ts b/vite.config.ts index d75f68b1..1986e30c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,7 +11,7 @@ import os from 'node:os'; import fs from 'node:fs'; const external = ['silk-wasm', 'ws', 'express', 'uuid', 'fluent-ffmpeg', 'sqlite3', 'log4js', - 'qrcode-terminal', 'MoeHoo']; + 'qrcode-terminal', 'MoeHoo', 'frida']; const nodeModules = [...builtinModules, builtinModules.map(m => `node:${m}`)].flat(); // let nodeModules = ["fs", "path", "events", "buffer", "url", "crypto", "fs/promise", "fsPromise", "os", "http", "net"]