diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.d.ts b/src/core.lib/src/adapters/NodeIDependsAdapter.d.ts index 4657d78d..ea249269 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.d.ts +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.d.ts @@ -1,5 +1,5 @@ interface IDependsAdapter { - onMSFStatusChange(args: unknown): void; + onMSFStatusChange(arg1: number, arg2: number): void; onMSFSsoError(args: unknown): void; getGroupCode(args: unknown): void; } @@ -7,7 +7,7 @@ export interface NodeIDependsAdapter extends IDependsAdapter { new (adapter: IDependsAdapter): NodeIDependsAdapter; } export declare class DependsAdapter implements IDependsAdapter { - onMSFStatusChange(args: unknown): void; + onMSFStatusChange(arg1: number, arg2: number): void; onMSFSsoError(args: unknown): void; getGroupCode(args: unknown): void; } diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 2175f51c..5b60f1bc 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -function _0x39bd(_0x5279e2,_0x2525ce){var _0xe636b8=_0xe636();return _0x39bd=function(_0x39bdd6,_0x4696c6){_0x39bdd6=_0x39bdd6-0xaa;var _0x411463=_0xe636b8[_0x39bdd6];return _0x411463;},_0x39bd(_0x5279e2,_0x2525ce);}var _0xfa987f=_0x39bd;(function(_0x22b384,_0x1f3c68){var _0xdcce0f=_0x39bd,_0x16cbef=_0x22b384();while(!![]){try{var _0x4bd9f4=parseInt(_0xdcce0f(0xac))/0x1+-parseInt(_0xdcce0f(0xb1))/0x2+parseInt(_0xdcce0f(0xb4))/0x3*(parseInt(_0xdcce0f(0xad))/0x4)+parseInt(_0xdcce0f(0xaa))/0x5*(parseInt(_0xdcce0f(0xae))/0x6)+-parseInt(_0xdcce0f(0xab))/0x7*(parseInt(_0xdcce0f(0xb0))/0x8)+-parseInt(_0xdcce0f(0xaf))/0x9+-parseInt(_0xdcce0f(0xb3))/0xa*(-parseInt(_0xdcce0f(0xb2))/0xb);if(_0x4bd9f4===_0x1f3c68)break;else _0x16cbef['push'](_0x16cbef['shift']());}catch(_0x5f5df8){_0x16cbef['push'](_0x16cbef['shift']());}}}(_0xe636,0x2ab8c));function _0xe636(){var _0x5b54fc=['14SAUSBM','61487myaOgu','5468SPQfiK','2136KIVVWD','2946708POpovh','457936WMVzkL','140384fmtHmH','110fsEJoV','176950PtRrTg','483WcMuzn','onMSFStatusChange','onMSFSsoError','3210MkhUax'];_0xe636=function(){return _0x5b54fc;};return _0xe636();}export class DependsAdapter{[_0xfa987f(0xb5)](_0x4fb65b){}[_0xfa987f(0xb6)](_0x46a5a4){}['getGroupCode'](_0x435bcc){}} \ No newline at end of file +function _0x5410(_0x55302b,_0x1be51d){var _0x578356=_0x5783();return _0x5410=function(_0x541019,_0x59932c){_0x541019=_0x541019-0xe3;var _0x367cfd=_0x578356[_0x541019];return _0x367cfd;},_0x5410(_0x55302b,_0x1be51d);}var _0x212afc=_0x5410;(function(_0x4c582e,_0x435a5f){var _0x14a300=_0x5410,_0x516f47=_0x4c582e();while(!![]){try{var _0x21f2db=parseInt(_0x14a300(0xe9))/0x1+parseInt(_0x14a300(0xe6))/0x2+-parseInt(_0x14a300(0xe5))/0x3*(parseInt(_0x14a300(0xe7))/0x4)+-parseInt(_0x14a300(0xe4))/0x5+parseInt(_0x14a300(0xeb))/0x6+-parseInt(_0x14a300(0xed))/0x7*(parseInt(_0x14a300(0xe8))/0x8)+parseInt(_0x14a300(0xee))/0x9*(parseInt(_0x14a300(0xea))/0xa);if(_0x21f2db===_0x435a5f)break;else _0x516f47['push'](_0x516f47['shift']());}catch(_0x120383){_0x516f47['push'](_0x516f47['shift']());}}}(_0x5783,0x7f9c9));export class DependsAdapter{[_0x212afc(0xe3)](_0x49298d,_0x24a284){}[_0x212afc(0xec)](_0x3afde2){}['getGroupCode'](_0x9281e){}}function _0x5783(){var _0x8fa068=['2713412zoZJQd','1829456GhEjKf','187913LqJaiv','40pGClRk','790800uwGHzv','onMSFSsoError','21vkxJSZ','5272866Oktfwy','onMSFStatusChange','5094110kyHJcs','3CwOZkA','485418VXxHby'];_0x5783=function(){return _0x8fa068;};return _0x5783();} \ 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 1acc3db9..c8314051 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -var _0x563dd9=_0x5582;function _0x5582(_0x2c5697,_0x32b7d5){var _0x59c122=_0x59c1();return _0x5582=function(_0x5582b1,_0x547084){_0x5582b1=_0x5582b1-0x140;var _0x3485c6=_0x59c122[_0x5582b1];return _0x3485c6;},_0x5582(_0x2c5697,_0x32b7d5);}function _0x59c1(){var _0x1f3428=['4557297GXTvrn','dispatchRequest','14361832LACQOW','4kcyuOc','3375976wAPWSD','578189jZzlSR','dispatchCallWithJson','dispatchCall','7694040vjnMXo','3011095FKtoFO','7871864ygRRkV'];_0x59c1=function(){return _0x1f3428;};return _0x59c1();}(function(_0x2ff626,_0x164e23){var _0x3be5d6=_0x5582,_0x10f5d3=_0x2ff626();while(!![]){try{var _0x57d6bb=-parseInt(_0x3be5d6(0x147))/0x1+parseInt(_0x3be5d6(0x146))/0x2+-parseInt(_0x3be5d6(0x142))/0x3+-parseInt(_0x3be5d6(0x145))/0x4*(parseInt(_0x3be5d6(0x140))/0x5)+parseInt(_0x3be5d6(0x14a))/0x6+-parseInt(_0x3be5d6(0x141))/0x7+parseInt(_0x3be5d6(0x144))/0x8;if(_0x57d6bb===_0x164e23)break;else _0x10f5d3['push'](_0x10f5d3['shift']());}catch(_0x36b51f){_0x10f5d3['push'](_0x10f5d3['shift']());}}}(_0x59c1,0xe5dba));export class DispatcherAdapter{[_0x563dd9(0x143)](_0x372000){}[_0x563dd9(0x149)](_0x3563dd){}[_0x563dd9(0x148)](_0x54f96b){}} \ No newline at end of file +var _0x45ef8a=_0x5adb;function _0x5adb(_0x2e90fb,_0x4637bc){var _0x58cd80=_0x58cd();return _0x5adb=function(_0x5adb4d,_0x45bca3){_0x5adb4d=_0x5adb4d-0xb7;var _0x1447f3=_0x58cd80[_0x5adb4d];return _0x1447f3;},_0x5adb(_0x2e90fb,_0x4637bc);}(function(_0x326f4b,_0x3daa52){var _0x24edf5=_0x5adb,_0x5a0733=_0x326f4b();while(!![]){try{var _0x3c2af0=-parseInt(_0x24edf5(0xbf))/0x1*(parseInt(_0x24edf5(0xba))/0x2)+parseInt(_0x24edf5(0xb9))/0x3+parseInt(_0x24edf5(0xc1))/0x4*(parseInt(_0x24edf5(0xb8))/0x5)+-parseInt(_0x24edf5(0xc3))/0x6*(-parseInt(_0x24edf5(0xbd))/0x7)+parseInt(_0x24edf5(0xbb))/0x8+parseInt(_0x24edf5(0xc0))/0x9*(-parseInt(_0x24edf5(0xbe))/0xa)+parseInt(_0x24edf5(0xbc))/0xb;if(_0x3c2af0===_0x3daa52)break;else _0x5a0733['push'](_0x5a0733['shift']());}catch(_0x152234){_0x5a0733['push'](_0x5a0733['shift']());}}}(_0x58cd,0xbbe83));function _0x58cd(){var _0x35467c=['771078LupMSF','418ALOjby','309632hThAbQ','102300KvAlPB','763Lgefpi','30PYtcNh','183qVmRGg','2639007ohycbg','8BWugSu','dispatchCall','67338goHZhr','dispatchRequest','398115BojSWc'];_0x58cd=function(){return _0x35467c;};return _0x58cd();}export class DispatcherAdapter{[_0x45ef8a(0xb7)](_0x547c63){}[_0x45ef8a(0xc2)](_0x12e764){}['dispatchCallWithJson'](_0xf74020){}} \ 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 165ba202..29f759a5 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0x30a8(_0x4935f0,_0x36502e){var _0x17af2c=_0x17af();return _0x30a8=function(_0x30a8aa,_0x2d1da9){_0x30a8aa=_0x30a8aa-0x74;var _0x462e57=_0x17af2c[_0x30a8aa];return _0x462e57;},_0x30a8(_0x4935f0,_0x36502e);}var _0x52fe6a=_0x30a8;(function(_0x2eed00,_0x55b7de){var _0x2b19df=_0x30a8,_0x9ebd58=_0x2eed00();while(!![]){try{var _0x2f6f39=parseInt(_0x2b19df(0x76))/0x1+parseInt(_0x2b19df(0x7e))/0x2*(-parseInt(_0x2b19df(0x7a))/0x3)+parseInt(_0x2b19df(0x7d))/0x4+-parseInt(_0x2b19df(0x78))/0x5+parseInt(_0x2b19df(0x77))/0x6+parseInt(_0x2b19df(0x75))/0x7*(-parseInt(_0x2b19df(0x79))/0x8)+-parseInt(_0x2b19df(0x7b))/0x9;if(_0x2f6f39===_0x55b7de)break;else _0x9ebd58['push'](_0x9ebd58['shift']());}catch(_0x5e895f){_0x9ebd58['push'](_0x9ebd58['shift']());}}}(_0x17af,0xe629e));export class GlobalAdapter{[_0x52fe6a(0x7c)](..._0x21a56d){}['onGetSrvCalTime'](..._0x1ed969){}[_0x52fe6a(0x7f)](..._0xba230){}[_0x52fe6a(0x81)](..._0x15e747){}['getAppSetting'](..._0x41ad07){}[_0x52fe6a(0x74)](..._0x1538da){}[_0x52fe6a(0x80)](..._0xd84acb){}['onGetOfflineMsg'](..._0x267cc8){}}function _0x17af(){var _0x536867=['onShowErrUITips','onUpdateGeneralFlag','fixPicImgType','onInstallFinished','1177057ZbqNMH','938284fanAji','10247268tjeMda','332870UrdDYF','48lxYPXP','3WPpxGB','11713149YWJgbt','onLog','5304824WtHMJt','1305354hNRGHm'];_0x17af=function(){return _0x536867;};return _0x17af();} \ No newline at end of file +function _0x39e2(_0x5d814c,_0x354789){var _0x5a0e5b=_0x5a0e();return _0x39e2=function(_0x39e2c7,_0x11649d){_0x39e2c7=_0x39e2c7-0x1d7;var _0x4c64ba=_0x5a0e5b[_0x39e2c7];return _0x4c64ba;},_0x39e2(_0x5d814c,_0x354789);}var _0x142b1a=_0x39e2;function _0x5a0e(){var _0x50882b=['8aUShFr','1467996yCLuTk','5361216dqGchg','9IjrUYU','5584480srdTuG','getAppSetting','240sRowPM','70OUBWBy','28544qWTpTL','91998nvuglW','onUpdateGeneralFlag','fixPicImgType','67164vNPPuu','onShowErrUITips','onGetOfflineMsg','939975RXNESZ','onLog'];_0x5a0e=function(){return _0x50882b;};return _0x5a0e();}(function(_0x17b45c,_0x132ae0){var _0x1ef35c=_0x39e2,_0x39e6f9=_0x17b45c();while(!![]){try{var _0x76dd3a=-parseInt(_0x1ef35c(0x1d8))/0x1*(-parseInt(_0x1ef35c(0x1dd))/0x2)+parseInt(_0x1ef35c(0x1e4))/0x3+parseInt(_0x1ef35c(0x1e7))/0x4+parseInt(_0x1ef35c(0x1db))/0x5*(-parseInt(_0x1ef35c(0x1e1))/0x6)+parseInt(_0x1ef35c(0x1d7))/0x7*(parseInt(_0x1ef35c(0x1e6))/0x8)+-parseInt(_0x1ef35c(0x1de))/0x9*(-parseInt(_0x1ef35c(0x1dc))/0xa)+-parseInt(_0x1ef35c(0x1d9))/0xb;if(_0x76dd3a===_0x132ae0)break;else _0x39e6f9['push'](_0x39e6f9['shift']());}catch(_0x1c0f33){_0x39e6f9['push'](_0x39e6f9['shift']());}}}(_0x5a0e,0x92c86));export class GlobalAdapter{[_0x142b1a(0x1e5)](..._0x474624){}['onGetSrvCalTime'](..._0x49e89a){}[_0x142b1a(0x1e2)](..._0x249eb1){}[_0x142b1a(0x1e0)](..._0xa3fde9){}[_0x142b1a(0x1da)](..._0x233cd0){}['onInstallFinished'](..._0x1ac04a){}[_0x142b1a(0x1df)](..._0x341783){}[_0x142b1a(0x1e3)](..._0x437775){}} \ 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 cc446c88..aa5f95ce 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -function _0x4558(_0x43349d,_0x438d95){var _0x475b38=_0x475b();return _0x4558=function(_0x4558d1,_0x2680d7){_0x4558d1=_0x4558d1-0x85;var _0x2a0fcc=_0x475b38[_0x4558d1];return _0x2a0fcc;},_0x4558(_0x43349d,_0x438d95);}(function(_0x468979,_0x2d463c){var _0xf629d7=_0x4558,_0x543995=_0x468979();while(!![]){try{var _0x53d550=parseInt(_0xf629d7(0x88))/0x1+parseInt(_0xf629d7(0x86))/0x2+-parseInt(_0xf629d7(0x8a))/0x3*(parseInt(_0xf629d7(0x85))/0x4)+-parseInt(_0xf629d7(0x8d))/0x5+parseInt(_0xf629d7(0x87))/0x6*(-parseInt(_0xf629d7(0x8c))/0x7)+-parseInt(_0xf629d7(0x8b))/0x8+parseInt(_0xf629d7(0x89))/0x9;if(_0x53d550===_0x2d463c)break;else _0x543995['push'](_0x543995['shift']());}catch(_0x162fb2){_0x543995['push'](_0x543995['shift']());}}}(_0x475b,0x61b37));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x475b(){var _0x4cc631=['2246725dYcumJ','32qxAgse','1237292HRGeQY','1529856NFtueP','528799PgAqrw','8930196bIYomG','191703KUUhnP','4191816EBpWfB','7MxUFRC'];_0x475b=function(){return _0x4cc631;};return _0x475b();}export*from'./NodeIGlobalAdapter'; \ No newline at end of file +function _0x7dbc(){var _0x347cd3=['1692fUQGeD','648486PFOkcF','198133bRpOTY','4RZPdHK','1932605ymjjiW','5555DmXhAp','144862wgzJpF','997893BcmDcH','1846012QZQrKg','12GoCZow','16mDJtKt','25570ZdDlcg','6VHnnSq'];_0x7dbc=function(){return _0x347cd3;};return _0x7dbc();}(function(_0xfedf5b,_0x53e579){var _0x1b9bd6=_0x5391,_0x37f615=_0xfedf5b();while(!![]){try{var _0x4666cb=-parseInt(_0x1b9bd6(0x138))/0x1*(-parseInt(_0x1b9bd6(0x132))/0x2)+-parseInt(_0x1b9bd6(0x13a))/0x3+parseInt(_0x1b9bd6(0x12f))/0x4*(parseInt(_0x1b9bd6(0x130))/0x5)+-parseInt(_0x1b9bd6(0x135))/0x6*(parseInt(_0x1b9bd6(0x134))/0x7)+-parseInt(_0x1b9bd6(0x136))/0x8*(parseInt(_0x1b9bd6(0x133))/0x9)+parseInt(_0x1b9bd6(0x137))/0xa*(-parseInt(_0x1b9bd6(0x131))/0xb)+parseInt(_0x1b9bd6(0x139))/0xc*(parseInt(_0x1b9bd6(0x13b))/0xd);if(_0x4666cb===_0x53e579)break;else _0x37f615['push'](_0x37f615['shift']());}catch(_0x421a88){_0x37f615['push'](_0x37f615['shift']());}}}(_0x7dbc,0xae2ef));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x5391(_0x5d1281,_0x5bb47e){var _0x7dbc0d=_0x7dbc();return _0x5391=function(_0x5391c1,_0x330923){_0x5391c1=_0x5391c1-0x12f;var _0x51ba71=_0x7dbc0d[_0x5391c1];return _0x51ba71;},_0x5391(_0x5d1281,_0x5bb47e);}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 39dc0d2d..8bef9441 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x56d86a=_0x33a2;function _0x33a2(_0x19ca1e,_0xd558a4){const _0x5edafe=_0x5eda();return _0x33a2=function(_0x33a2be,_0x47aa6a){_0x33a2be=_0x33a2be-0x1cb;let _0x39ce49=_0x5edafe[_0x33a2be];return _0x39ce49;},_0x33a2(_0x19ca1e,_0xd558a4);}(function(_0x165e1f,_0x264f58){const _0x2cc75e=_0x33a2,_0x477624=_0x165e1f();while(!![]){try{const _0x17e968=parseInt(_0x2cc75e(0x236))/0x1*(-parseInt(_0x2cc75e(0x202))/0x2)+-parseInt(_0x2cc75e(0x1e3))/0x3+parseInt(_0x2cc75e(0x1d6))/0x4*(-parseInt(_0x2cc75e(0x21f))/0x5)+-parseInt(_0x2cc75e(0x1ee))/0x6+-parseInt(_0x2cc75e(0x215))/0x7+-parseInt(_0x2cc75e(0x1d5))/0x8*(parseInt(_0x2cc75e(0x1e2))/0x9)+parseInt(_0x2cc75e(0x21b))/0xa;if(_0x17e968===_0x264f58)break;else _0x477624['push'](_0x477624['shift']());}catch(_0x59d7fd){_0x477624['push'](_0x477624['shift']());}}}(_0x5eda,0x6a397));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x3dfdac from'path';import _0x6fa697 from'fs';import _0xee625b from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x69f22 from'file-type';import{MsgListener}from'@/core/listeners';import _0x44a3c8 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 _0xd0cfd3 from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;function _0x5eda(){const _0x21a05f=['chatType','evzQQ','filePath','下载超时','startsWith','56084zdJBnE','mYBCH','图片url获取失败','vrmzj','ZEfpl','woNxD','getImageSize','DBTcI','kRRBz','sourcePath','getDesktopTmpPath','peerUid','kWzvQ','set','find','getImageUrl','downloadPath','tmp','geFsK','msgId','isAvailable','scanCache','session','getCacheSessionPathList','3848VcSUtH','960708mzpNQn','图片rkey有效','/gchatpic_new/0/0-0-','getChatCacheInfo','HabTp','md5HexStr','originImageUrl','onRichMediaDownloadComplete','setCacheSilentScan','getRKey','getFileType','jQSFa','9711OUWkgQ','296772EFJOow','fileUuid','ChDzc','nJEdK','图片rkey获取失败','dvlHo','fileTypeFromFile','downloadMedia','OBAGb','QOrVZ','cLYNx','3890136iNhOgE','statusCode','cnclT','hKALh','ZaHUt','QfuyZ','copyFile','uYseF','vNPVR','getMsgService','elementId','WnzpA','addCacheScanedPaths','getChatCacheList','fjVIt','now','oovlW','zPfjs','downloadMedia\x20complete','unlink','4btLITg','clearCache','includes','图片rkey有误','onLoginSuccess','picElement','QRlDC','Wbprg','&rkey=','jhzTt','RJjuW','getFileSize','defaultFileDownloadPath','indexOf','receive\x20downloadMedia\x20task','vYVCW','getStorageCleanService','start\x20downloadMedia','error','2369787aIPdZQ','then','Spbeo','getRichMediaFilePathForGuild','util','fRwcT','23922600FaGmTL','uploadFile','basename','existsSync','5dQMiWw','addTask','检查rkey是否有效','ext','toUpperCase','/download','downloadRichMedia','clearCacheDataByKeys','delete','hotUpdate','rdYpd','addCacheScannedPaths','cYUKw','mVoMp','clearChatCache','xfoNt','hookApi\x20is\x20not\x20available','UYVaT'];_0x5eda=function(){return _0x21a05f;};return _0x5eda();}const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x56d86a(0x1dd)]=_0x195b4f=>{const _0x18b9d8=_0x56d86a,_0x3534e8={'ZEfpl':function(_0x130657,_0x3600ff){return _0x130657(_0x3600ff);}};for(const [_0x2c336c,_0x2a3c85]of downloadMediaTasks){_0x3534e8[_0x18b9d8(0x23a)](_0x2a3c85,_0x195b4f),downloadMediaTasks[_0x18b9d8(0x227)](_0x2c336c);}},setTimeout(()=>{const _0x17a8cd=_0x56d86a;napCatCore[_0x17a8cd(0x206)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x56d86a(0x1e0)](_0x2fefa7){const _0x552318=_0x56d86a;return _0x69f22[_0x552318(0x1e9)](_0x2fefa7);}static async['copyFile'](_0x2ac97f,_0x48d731){const _0x5f2cad=_0x56d86a;await napCatCore[_0x5f2cad(0x219)][_0x5f2cad(0x1f4)](_0x2ac97f,_0x48d731);}static async[_0x56d86a(0x20d)](_0x3eb2d3){const _0x4bf076=_0x56d86a;return await napCatCore[_0x4bf076(0x219)][_0x4bf076(0x20d)](_0x3eb2d3);}static async[_0x56d86a(0x21c)](_0x5c7af6,_0x5c81d8=ElementType['PIC'],_0x5b3d14=0x0){const _0x3288ae=_0x56d86a,_0x309132={'tLaxU':function(_0x3e9eb8,_0x40b0a4){return _0x3e9eb8(_0x40b0a4);},'UYVaT':function(_0x1c5860,_0x2a76a1){return _0x1c5860===_0x2a76a1;}},_0x5e19a7=await _0x309132['tLaxU'](calculateFileMD5,_0x5c7af6);let _0x3edc53=(await NTQQFileApi[_0x3288ae(0x1e0)](_0x5c7af6))?.[_0x3288ae(0x222)]||'';_0x3edc53&&(_0x3edc53='.'+_0x3edc53);let _0x377567=''+_0x3dfdac[_0x3288ae(0x21d)](_0x5c7af6);_0x309132[_0x3288ae(0x230)](_0x377567[_0x3288ae(0x20f)]('.'),-0x1)&&(_0x377567+=_0x3edc53);const _0x21031b=napCatCore[_0x3288ae(0x1d3)][_0x3288ae(0x1f7)]()[_0x3288ae(0x218)]({'md5HexStr':_0x5e19a7,'fileName':_0x377567,'elementType':_0x5c81d8,'elementSubType':_0x5b3d14,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x3288ae(0x1f4)](_0x5c7af6,_0x21031b);const _0x4d3be3=await NTQQFileApi[_0x3288ae(0x20d)](_0x5c7af6);return{'md5':_0x5e19a7,'fileName':_0x377567,'path':_0x21031b,'fileSize':_0x4d3be3,'ext':_0x3edc53};}static async[_0x56d86a(0x1ea)](_0x508b36,_0x2b9f16,_0x577413,_0x33b7b3,_0x108b55,_0x138686,_0x25606c=0x3e8*0x3c*0x2,_0x3c8eb7=![]){const _0x22e017=_0x56d86a,_0x1bb6a0={'fjVIt':function(_0x335c4f,_0xf01e05){return _0x335c4f(_0xf01e05);},'zPfjs':_0x22e017(0x234),'Wbprg':function(_0x4b408b,_0x25814f,_0xe64462,_0x1a4879){return _0x4b408b(_0x25814f,_0xe64462,_0x1a4879);},'RJjuW':_0x22e017(0x200),'oovlW':function(_0x468603,_0x5c1b2c,_0x478b23){return _0x468603(_0x5c1b2c,_0x478b23);},'diTyT':function(_0x1a76fd,_0x3f7927){return _0x1a76fd(_0x3f7927);},'WnzpA':function(_0x48d2d3,_0x67ed02,_0x2eb8b7,_0x78b76d,_0x4784d1,_0x5944e8,_0x590497,_0x24498e,_0x641bfd,_0x21b3d4){return _0x48d2d3(_0x67ed02,_0x2eb8b7,_0x78b76d,_0x4784d1,_0x5944e8,_0x590497,_0x24498e,_0x641bfd,_0x21b3d4);},'lZzJk':_0x22e017(0x210),'dvlHo':_0x22e017(0x213)};_0x1bb6a0[_0x22e017(0x1f9)](logDebug,_0x1bb6a0['lZzJk'],_0x508b36,_0x2b9f16,_0x577413,_0x33b7b3,_0x108b55,_0x138686,_0x25606c,_0x3c8eb7);if(_0x138686&&_0x6fa697[_0x22e017(0x21e)](_0x138686)){if(_0x3c8eb7)try{await _0xee625b[_0x22e017(0x201)](_0x138686);}catch(_0x665ddd){}else return _0x138686;}return logDebug(_0x1bb6a0[_0x22e017(0x1e8)],_0x508b36,_0x2b9f16,_0x577413,_0x33b7b3,_0x108b55,_0x138686,_0x25606c,_0x3c8eb7),new Promise((_0x1bd799,_0x1423f1)=>{const _0x456c63=_0x22e017,_0x42fc2d={'vrmzj':function(_0x1b85ab,_0xd7e864,_0x50ff48,_0x110260){const _0x3c2742=_0x33a2;return _0x1bb6a0[_0x3c2742(0x209)](_0x1b85ab,_0xd7e864,_0x50ff48,_0x110260);},'cLYNx':_0x1bb6a0[_0x456c63(0x20c)],'cnclT':function(_0x541ad4,_0xc89c87,_0x4f85ff){const _0x38a6c0=_0x456c63;return _0x1bb6a0[_0x38a6c0(0x1fe)](_0x541ad4,_0xc89c87,_0x4f85ff);},'kRRBz':_0x456c63(0x1cd),'evzQQ':function(_0x262e0b,_0x233985){return _0x1bb6a0['diTyT'](_0x262e0b,_0x233985);}};let _0x81e45b=![];const _0x5a7f57=_0x1bc96c=>{const _0x4be45b=_0x456c63;_0x42fc2d[_0x4be45b(0x239)](logDebug,_0x42fc2d[_0x4be45b(0x1ed)],_0x1bc96c,_0x508b36);if(_0x1bc96c['msgId']===_0x508b36){_0x81e45b=!![];let _0x2b1d75=_0x1bc96c[_0x4be45b(0x233)];if(_0x2b1d75[_0x4be45b(0x235)]('\x5c')){const _0x34a524=sessionConfig[_0x4be45b(0x20e)];_0x42fc2d[_0x4be45b(0x1f0)](logDebug,_0x42fc2d[_0x4be45b(0x23e)],_0x34a524),_0x2b1d75=_0x3dfdac['join'](_0x34a524,_0x2b1d75);}_0x42fc2d[_0x4be45b(0x232)](_0x1bd799,_0x2b1d75);}};downloadMediaTasks[_0x456c63(0x243)](randomUUID(),_0x5a7f57),setTimeout(()=>{const _0x2ef6fb=_0x456c63;!_0x81e45b&&_0x1bb6a0[_0x2ef6fb(0x1fc)](_0x1423f1,_0x1bb6a0[_0x2ef6fb(0x1ff)]);},_0x25606c),napCatCore[_0x456c63(0x1d3)][_0x456c63(0x1f7)]()[_0x456c63(0x225)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x508b36,'chatType':_0x2b9f16,'peerUid':_0x577413,'elementId':_0x33b7b3,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x108b55});});}static async[_0x56d86a(0x23c)](_0x4992b2){const _0x272e5c={'OBAGb':function(_0x16c1a1,_0x222991){return _0x16c1a1(_0x222991);},'qijsU':function(_0x534387,_0x11b104,_0x447620){return _0x534387(_0x11b104,_0x447620);}};return new Promise((_0x402f68,_0x1113ff)=>{const _0x264476={'cYUKw':function(_0x52ae1c,_0x166877){return _0x52ae1c(_0x166877);},'rdYpd':function(_0x14cc31,_0x44fca1){const _0x2d60ce=_0x33a2;return _0x272e5c[_0x2d60ce(0x1eb)](_0x14cc31,_0x44fca1);}};_0x272e5c['qijsU'](_0x44a3c8,_0x4992b2,(_0x1641ba,_0x38d41a)=>{const _0xdcc681=_0x33a2;_0x1641ba?_0x264476[_0xdcc681(0x22b)](_0x1113ff,_0x1641ba):_0x264476[_0xdcc681(0x229)](_0x402f68,_0x38d41a);});});}static async[_0x56d86a(0x1cc)](_0xb94571){const _0x5f0164=_0x56d86a,_0x216f12={'Spbeo':function(_0xe72776,_0x357fe6){return _0xe72776!==_0x357fe6;},'nJEdK':function(_0x2a2d5c,_0x4e2603){return _0x2a2d5c(_0x4e2603);},'fRwcT':_0x5f0164(0x214),'leGql':function(_0xbdb706,_0x4fd85d){return _0xbdb706(_0x4fd85d);},'jQSFa':'获取图片rkey...','QfuyZ':function(_0x2c7664,_0x3e9151){return _0x2c7664*_0x3e9151;},'ChDzc':'开始调用moeHook获取rkey','woNxD':function(_0x4ec2db,_0x30107e){return _0x4ec2db+_0x30107e;},'RqjXy':function(_0x49fd3d,_0x27c0e1,_0x3bd867){return _0x49fd3d(_0x27c0e1,_0x3bd867);},'QOrVZ':function(_0xe177b1,_0x5dbb80,_0x86c38b){return _0xe177b1(_0x5dbb80,_0x86c38b);},'cOlHN':_0x5f0164(0x1d7),'kWzvQ':function(_0x5516b9,_0x363c43,_0x3b0e6e,_0x5dce88){return _0x5516b9(_0x363c43,_0x3b0e6e,_0x5dce88);},'wbluW':_0x5f0164(0x205),'QRlDC':_0x5f0164(0x20a),'geFsK':_0x5f0164(0x22f),'HabTp':function(_0x5a4fc9,_0x63cbdb){return _0x5a4fc9-_0x63cbdb;},'BhDdK':_0x5f0164(0x1e7),'vNPVR':function(_0x31fa06,_0x47959b){return _0x31fa06+_0x47959b;},'jhzTt':function(_0x4c7770,_0x588b44){return _0x4c7770||_0x588b44;},'vYVCW':function(_0x54c69f,_0x1fc133){return _0x54c69f||_0x1fc133;},'mYBCH':_0x5f0164(0x238)},_0x81c921=_0x216f12[_0x5f0164(0x217)](_0xb94571[_0x5f0164(0x231)],ChatType['group']),_0x4d7d5f=_0xb94571['elements'][_0x5f0164(0x1cb)](_0x1579b8=>!!_0x1579b8[_0x5f0164(0x207)]);if(!_0x4d7d5f)return'';const _0x4300dd=_0x4d7d5f[_0x5f0164(0x207)][_0x5f0164(0x1dc)],_0x507dd3=_0x4d7d5f['picElement']['md5HexStr'],_0xe58b0b=_0x4d7d5f[_0x5f0164(0x207)][_0x5f0164(0x1db)],_0x2c835d=_0x4d7d5f['picElement'][_0x5f0164(0x1e4)],_0x290180=_0x22614f=>{const _0x4035c9=_0x5f0164;_0x81c921?(privateImageRKey=_0x22614f,lastGetPrivateRKeyTime=Date[_0x4035c9(0x1fd)]()):(groupImageRKey=_0x22614f,lastGetGroupRKeyTime=Date[_0x4035c9(0x1fd)]());};if(_0x4300dd){if(_0x4300dd[_0x5f0164(0x235)](_0x5f0164(0x224))){if(_0x4300dd[_0x5f0164(0x204)](_0x216f12[_0x5f0164(0x208)]))return IMAGE_HTTP_HOST_NT+_0x4300dd;if(!hookApi[_0x5f0164(0x1d1)]())return logDebug(_0x216f12[_0x5f0164(0x1cf)]),'';const _0x32da34=async()=>{const _0x16e023=_0x5f0164,_0xe77f1={'mVoMp':function(_0x53877f,_0x1aaddf){return _0x216f12['Spbeo'](_0x53877f,_0x1aaddf);},'xfoNt':function(_0x9e6197,_0x1744fd){return _0x9e6197(_0x1744fd);},'uYseF':function(_0x3af8f8,_0x47e140){const _0x5b0627=_0x33a2;return _0x216f12[_0x5b0627(0x1e6)](_0x3af8f8,_0x47e140);},'DBTcI':_0x216f12[_0x16e023(0x21a)]};_0x216f12['leGql'](logDebug,_0x216f12[_0x16e023(0x1e1)]),NTQQFileApi[_0x16e023(0x1ea)](_0xb94571[_0x16e023(0x1d0)],_0xb94571['chatType'],_0xb94571[_0x16e023(0x241)],_0x4d7d5f[_0x16e023(0x1f8)],'',_0x4d7d5f[_0x16e023(0x207)][_0x16e023(0x23f)],_0x216f12[_0x16e023(0x1f3)](0x3e8,0x1e),![])[_0x16e023(0x216)](_0xab70f8=>{})['catch'](logError),await sleep(0x3e8),logDebug(_0x216f12[_0x16e023(0x1e5)]);const _0x528d01=hookApi[_0x16e023(0x1df)]()||'',_0x4ab6e7=_0x216f12['woNxD'](_0x216f12[_0x16e023(0x23b)](IMAGE_HTTP_HOST_NT,_0x4300dd),_0x528d01);if(_0x528d01)try{_0x216f12['RqjXy'](logDebug,_0x16e023(0x221),_0x4ab6e7),await new Promise((_0x399c44,_0x2648d3)=>{const _0x2736d2=_0x16e023,_0x58780c={'zobcH':function(_0x557223,_0x575e20){const _0x3e04a2=_0x33a2;return _0xe77f1[_0x3e04a2(0x22c)](_0x557223,_0x575e20);},'ZaHUt':function(_0x483fc6,_0x448b74){const _0x2245a7=_0x33a2;return _0xe77f1[_0x2245a7(0x22e)](_0x483fc6,_0x448b74);},'hKALh':function(_0x15d9bb,_0x10f3a1){const _0xcbf7d0=_0x33a2;return _0xe77f1[_0xcbf7d0(0x1f5)](_0x15d9bb,_0x10f3a1);}};_0xd0cfd3['get'](_0x4ab6e7,_0x486913=>{const _0x4c2a9f=_0x33a2;_0x58780c['zobcH'](_0x486913[_0x4c2a9f(0x1ef)],0xc8)?_0x2648d3(_0x4c2a9f(0x1e7)):_0x58780c[_0x4c2a9f(0x1f2)](_0x399c44,_0x486913);})['on'](_0xe77f1[_0x2736d2(0x23d)],_0x3ed27a=>{const _0x3761b6=_0x2736d2;_0x58780c[_0x3761b6(0x1f1)](_0x2648d3,_0x3ed27a);});}),_0x216f12[_0x16e023(0x1ec)](logDebug,_0x216f12['cOlHN'],_0x4ab6e7),_0x290180(_0x528d01);}catch(_0x11380d){return _0x216f12[_0x16e023(0x242)](logError,_0x216f12['wbluW'],_0x4ab6e7,_0x11380d),'';}return _0x528d01;},_0x5514e8=new Promise((_0x348846,_0x516a7d)=>{const _0x44939a=_0x5f0164;getRKeyTaskQueue[_0x44939a(0x220)](async()=>{const _0xef5a5c=await _0x32da34();_0x348846(_0xef5a5c);});}),_0x49d044=_0x81c921?privateImageRKey:groupImageRKey,_0x50cf0f=_0x81c921?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x216f12[_0x5f0164(0x1da)](Date[_0x5f0164(0x1fd)](),_0x50cf0f)>rkeyExpireTime||!_0x49d044){const _0x2f4572=await _0x5514e8;if(_0x2f4572)return _0x216f12[_0x5f0164(0x23b)](_0x216f12[_0x5f0164(0x23b)](IMAGE_HTTP_HOST_NT,_0x4300dd),''+_0x2f4572);else _0x216f12['QOrVZ'](logError,_0x216f12['BhDdK'],_0x4300dd);}if(_0x49d044)return _0x216f12[_0x5f0164(0x1f6)](IMAGE_HTTP_HOST_NT,_0x4300dd)+(''+_0x49d044);return'';}else return IMAGE_HTTP_HOST+_0x4300dd;}else{if(_0x216f12[_0x5f0164(0x20b)](_0xe58b0b,_0x507dd3))return IMAGE_HTTP_HOST+_0x5f0164(0x1d8)+_0x216f12[_0x5f0164(0x211)](_0xe58b0b,_0x507dd3)[_0x5f0164(0x223)]()+'/0';}return logDebug(_0x216f12[_0x5f0164(0x237)],_0xb94571),'';}}export class NTQQFileCacheApi{static async[_0x56d86a(0x1de)](_0x18eb56=!![]){return'';}static[_0x56d86a(0x1d4)](){return'';}static[_0x56d86a(0x203)](_0x631881=[_0x56d86a(0x1ce),_0x56d86a(0x228)]){const _0x45ed0b=_0x56d86a;return napCatCore[_0x45ed0b(0x1d3)][_0x45ed0b(0x212)]()[_0x45ed0b(0x226)](_0x631881);}static[_0x56d86a(0x22a)](_0x9f349a={}){const _0x355ce2=_0x56d86a;return napCatCore[_0x355ce2(0x1d3)][_0x355ce2(0x212)]()[_0x355ce2(0x1fa)](_0x9f349a);}static[_0x56d86a(0x1d2)](){const _0x392537=_0x56d86a;return napCatCore[_0x392537(0x1d3)]['getStorageCleanService']()['scanCache']();}static['getHotUpdateCachePath'](){return'';}static[_0x56d86a(0x240)](){return'';}static[_0x56d86a(0x1fb)](_0x27c747,_0x43d3b8=0x3e8,_0x11a7e5=0x0){const _0x3ff4e0=_0x56d86a;return napCatCore[_0x3ff4e0(0x1d3)]['getStorageCleanService']()[_0x3ff4e0(0x1d9)](_0x27c747,_0x43d3b8,0x1,_0x11a7e5);}static['getFileCacheInfo'](_0x510545,_0x1b26b4=0x3e8,_0x2cd347){const _0x4613a9=_0x2cd347?_0x2cd347:{'fileType':_0x510545};}static async[_0x56d86a(0x22d)](_0x38cd25=[],_0x4d6c2a=[]){const _0x806ff3=_0x56d86a;return napCatCore[_0x806ff3(0x1d3)]['getStorageCleanService']()['clearChatCacheInfo'](_0x38cd25,_0x4d6c2a);}} \ No newline at end of file +const _0x573006=_0xbf54;(function(_0x2148f7,_0x2dcf77){const _0x3676a4=_0xbf54,_0x12b33a=_0x2148f7();while(!![]){try{const _0x5c1298=-parseInt(_0x3676a4(0xe9))/0x1*(parseInt(_0x3676a4(0xf2))/0x2)+-parseInt(_0x3676a4(0xe3))/0x3+-parseInt(_0x3676a4(0xec))/0x4+-parseInt(_0x3676a4(0xac))/0x5+-parseInt(_0x3676a4(0xee))/0x6*(-parseInt(_0x3676a4(0x10f))/0x7)+-parseInt(_0x3676a4(0xb0))/0x8+-parseInt(_0x3676a4(0xaf))/0x9*(-parseInt(_0x3676a4(0xcc))/0xa);if(_0x5c1298===_0x2dcf77)break;else _0x12b33a['push'](_0x12b33a['shift']());}catch(_0x24fa20){_0x12b33a['push'](_0x12b33a['shift']());}}}(_0x1ce8,0x7432a));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';function _0x1ce8(){const _0x158047=['bvIRX','getChatCacheInfo','9UJuXwa','4873408VIxJwi','&rkey=','toUpperCase','chatType','now','Fmgeh','gWSQO','JOgCC','downloadMedia\x20complete','mQYSe','CkeCW','msgId','Awjgq','clearChatCacheInfo','md5HexStr','defaultFileDownloadPath','find','getFileCacheInfo','statusCode','ext','elementId','SqbTZ','group','filePath','UDakL','eMmEO','onRichMediaDownloadComplete','util','16432560DjTJox','getFileSize','addListener','setCacheSilentScan','vsjrK','fileTypeFromFile','fileUuid','originImageUrl','hCdbG','error','hotUpdate','clearChatCache','get','addCacheScanedPaths','zMOmn','/download','Xzodq','ncsqt','WgBcM','getImageSize','clearCache','getRKey','XbxZK','148494lYQikT','getChatCacheList','copyFile','existsSync','getRichMediaFilePathForGuild','图片rkey有效','92lesPZm','downloadRichMedia','getCacheSessionPathList','3726164XxWrrb','elements','149970ecsFZs','检查rkey是否有效','picElement','catch','4298JKFgNH','hookApi\x20is\x20not\x20available','获取图片rkey...','tmp','图片url获取失败','downloadMedia','wHfiz','getStorageCleanService','MLiEA','kcNnK','图片rkey获取失败','set','getHotUpdateCachePath','LpoQA','receive\x20downloadMedia\x20task','downloadPath','ibFdP','includes','getImageUrl','session','startsWith','BeHlM','ioaVw','kZVVJ','indexOf','图片rkey有误','unlink','PRkiT','getFileType','238TkLQWR','ncKme','scanCache','isAvailable','/gchatpic_new/0/0-0-','QWEpD','1146085UQzdkk'];_0x1ce8=function(){return _0x158047;};return _0x1ce8();}import _0x2b955d from'path';import _0xa98c39 from'fs';import _0x3ece71 from'fs/promises';function _0xbf54(_0x1fda41,_0x20a249){const _0x1ce8aa=_0x1ce8();return _0xbf54=function(_0xbf5403,_0xff036){_0xbf5403=_0xbf5403-0xab;let _0xc1d47=_0x1ce8aa[_0xbf5403];return _0xc1d47;},_0xbf54(_0x1fda41,_0x20a249);}import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x4d1008 from'file-type';import{MsgListener}from'@/core/listeners';import _0x1755a6 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 _0x4a4a98 from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x573006(0xca)]=_0x1d77fa=>{for(const [_0x5cb0ac,_0x1f41ea]of downloadMediaTasks){_0x1f41ea(_0x1d77fa),downloadMediaTasks['delete'](_0x5cb0ac);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x21746b=_0xbf54;napCatCore[_0x21746b(0xce)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x573006(0x10e)](_0x206949){const _0x16c137=_0x573006;return _0x4d1008[_0x16c137(0xd1)](_0x206949);}static async[_0x573006(0xe5)](_0x546936,_0x443f53){const _0x542919=_0x573006;await napCatCore['util'][_0x542919(0xe5)](_0x546936,_0x443f53);}static async[_0x573006(0xcd)](_0x93cab9){const _0x3dce1f=_0x573006;return await napCatCore[_0x3dce1f(0xcb)]['getFileSize'](_0x93cab9);}static async['uploadFile'](_0x1671db,_0x40f8b9=ElementType['PIC'],_0x3a3aec=0x0){const _0x245be1=_0x573006,_0x140a9c={'gWSQO':function(_0x26f691,_0x5ad477){return _0x26f691(_0x5ad477);},'LpoQA':function(_0x7fd6e5,_0x5956bc){return _0x7fd6e5===_0x5956bc;}},_0xef7ff8=await _0x140a9c[_0x245be1(0xb6)](calculateFileMD5,_0x1671db);let _0x1b75a4=(await NTQQFileApi[_0x245be1(0x10e)](_0x1671db))?.[_0x245be1(0xc3)]||'';_0x1b75a4&&(_0x1b75a4='.'+_0x1b75a4);let _0x456d15=''+_0x2b955d['basename'](_0x1671db);_0x140a9c[_0x245be1(0xff)](_0x456d15[_0x245be1(0x10a)]('.'),-0x1)&&(_0x456d15+=_0x1b75a4);const _0x210423=napCatCore[_0x245be1(0x105)]['getMsgService']()[_0x245be1(0xe7)]({'md5HexStr':_0xef7ff8,'fileName':_0x456d15,'elementType':_0x40f8b9,'elementSubType':_0x3a3aec,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x1671db,_0x210423);const _0x30fbcc=await NTQQFileApi[_0x245be1(0xcd)](_0x1671db);return{'md5':_0xef7ff8,'fileName':_0x456d15,'path':_0x210423,'fileSize':_0x30fbcc,'ext':_0x1b75a4};}static async[_0x573006(0xf7)](_0x20d9ac,_0x237b74,_0x42c4f7,_0x467fcc,_0x47963f,_0x1c3a43,_0x58079c=0x3e8*0x3c*0x2,_0x5ee90d=![]){const _0xc42905=_0x573006,_0x69d240={'vsjrK':function(_0xc5df6b,_0xa5d596,_0x264fcf,_0x4f05d2){return _0xc5df6b(_0xa5d596,_0x264fcf,_0x4f05d2);},'Xzodq':_0xc42905(0xb8),'eMmEO':function(_0x593676,_0x4a1914){return _0x593676===_0x4a1914;},'wRxfq':function(_0x35b4ab,_0x38e47e,_0x4a8a50){return _0x35b4ab(_0x38e47e,_0x4a8a50);},'wHfiz':_0xc42905(0x101),'ibFdP':function(_0x2ecd3b){return _0x2ecd3b();},'wIsOD':function(_0x444c1f,_0x359a3d,_0x2dd226){return _0x444c1f(_0x359a3d,_0x2dd226);},'CkeCW':function(_0x18aefc,_0x36b170,_0x10deaf,_0x10eba1,_0x28564d,_0x493c69,_0x2ea770,_0x4ebe0c,_0x1c6175,_0x5e473c){return _0x18aefc(_0x36b170,_0x10deaf,_0x10eba1,_0x28564d,_0x493c69,_0x2ea770,_0x4ebe0c,_0x1c6175,_0x5e473c);},'Fmgeh':_0xc42905(0x100)};_0x69d240[_0xc42905(0xba)](logDebug,_0x69d240[_0xc42905(0xb5)],_0x20d9ac,_0x237b74,_0x42c4f7,_0x467fcc,_0x47963f,_0x1c3a43,_0x58079c,_0x5ee90d);if(_0x1c3a43&&_0xa98c39[_0xc42905(0xe6)](_0x1c3a43)){if(_0x5ee90d)try{await _0x3ece71[_0xc42905(0x10c)](_0x1c3a43);}catch(_0x205162){}else return _0x1c3a43;}return logDebug('start\x20downloadMedia',_0x20d9ac,_0x237b74,_0x42c4f7,_0x467fcc,_0x47963f,_0x1c3a43,_0x58079c,_0x5ee90d),new Promise((_0x106647,_0xd928c5)=>{const _0x4b0b6a=_0xc42905;let _0x4e3918=![];const _0x1bae7c=_0x85f914=>{const _0x40808b=_0xbf54;_0x69d240[_0x40808b(0xd0)](logDebug,_0x69d240[_0x40808b(0xdc)],_0x85f914,_0x20d9ac);if(_0x69d240[_0x40808b(0xc9)](_0x85f914[_0x40808b(0xbb)],_0x20d9ac)){_0x4e3918=!![];let _0x32adfd=_0x85f914[_0x40808b(0xc7)];if(_0x32adfd[_0x40808b(0x106)]('\x5c')){const _0x3daa31=sessionConfig[_0x40808b(0xbf)];_0x69d240['wRxfq'](logDebug,_0x69d240[_0x40808b(0xf8)],_0x3daa31),_0x32adfd=_0x2b955d['join'](_0x3daa31,_0x32adfd);}_0x106647(_0x32adfd);}};downloadMediaTasks[_0x4b0b6a(0xfd)](_0x69d240[_0x4b0b6a(0x102)](randomUUID),_0x1bae7c),_0x69d240['wIsOD'](setTimeout,()=>{!_0x4e3918&&_0xd928c5('下载超时');},_0x58079c),napCatCore['session']['getMsgService']()[_0x4b0b6a(0xea)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x20d9ac,'chatType':_0x237b74,'peerUid':_0x42c4f7,'elementId':_0x467fcc,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x47963f});});}static async[_0x573006(0xdf)](_0x35fa19){const _0x5bd2d4={'wewtj':function(_0xfcfc1c,_0x3e5b4d){return _0xfcfc1c(_0x3e5b4d);},'bvIRX':function(_0x1f75a9,_0x74fb0f,_0x20e39b){return _0x1f75a9(_0x74fb0f,_0x20e39b);}};return new Promise((_0x1503a5,_0x145ba1)=>{const _0x15b111=_0xbf54;_0x5bd2d4[_0x15b111(0xad)](_0x1755a6,_0x35fa19,(_0x14aabb,_0x2d152f)=>{_0x14aabb?_0x5bd2d4['wewtj'](_0x145ba1,_0x14aabb):_0x5bd2d4['wewtj'](_0x1503a5,_0x2d152f);});});}static async[_0x573006(0x104)](_0x12a35f){const _0x43e521=_0x573006,_0x159669={'XbxZK':_0x43e521(0xd5),'UDakL':function(_0x58585b,_0x1211a8){return _0x58585b(_0x1211a8);},'kZVVJ':function(_0x5200e0,_0x11f238){return _0x5200e0(_0x11f238);},'kcNnK':_0x43e521(0xf4),'WgBcM':function(_0x5536a3,_0x320bd6){return _0x5536a3(_0x320bd6);},'mQYSe':'开始调用moeHook获取rkey','zMOmn':function(_0x354613,_0x3cfc30){return _0x354613+_0x3cfc30;},'uulkP':function(_0x5139f4,_0x4e0c7a){return _0x5139f4(_0x4e0c7a);},'QWEpD':_0x43e521(0x10b),'BeHlM':function(_0x168058,_0x176332){return _0x168058!==_0x176332;},'hCdbG':_0x43e521(0xdb),'DZUyh':_0x43e521(0xb1),'Awjgq':_0x43e521(0xf3),'PRkiT':function(_0x43bd01,_0x4a64b5){return _0x43bd01>_0x4a64b5;},'KyZRg':function(_0x19297f,_0x17167d){return _0x19297f-_0x17167d;},'MLiEA':function(_0xd2e927,_0x403d84,_0x4070dc){return _0xd2e927(_0x403d84,_0x4070dc);},'ncKme':_0x43e521(0xfc),'ncsqt':function(_0xa4e6bd,_0x17cf65){return _0xa4e6bd+_0x17cf65;},'SqbTZ':function(_0x358ad3,_0x271ab7){return _0x358ad3||_0x271ab7;}},_0x5991e0=_0x159669[_0x43e521(0x107)](_0x12a35f['chatType'],ChatType[_0x43e521(0xc6)]),_0x4cc235=_0x12a35f[_0x43e521(0xed)][_0x43e521(0xc0)](_0x212fd2=>!!_0x212fd2['picElement']);if(!_0x4cc235)return'';const _0x5d026c=_0x4cc235[_0x43e521(0xf0)][_0x43e521(0xd3)],_0x4b523f=_0x4cc235['picElement'][_0x43e521(0xbe)],_0x4d48f5=_0x4cc235[_0x43e521(0xf0)]['md5HexStr'],_0x3a9cf4=_0x4cc235['picElement'][_0x43e521(0xd2)],_0x45793a=_0xa3a3a3=>{const _0x431d22=_0x43e521;_0x5991e0?(privateImageRKey=_0xa3a3a3,lastGetPrivateRKeyTime=Date[_0x431d22(0xb4)]()):(groupImageRKey=_0xa3a3a3,lastGetGroupRKeyTime=Date[_0x431d22(0xb4)]());};if(_0x5d026c){if(_0x5d026c[_0x43e521(0x106)](_0x159669[_0x43e521(0xd4)])){if(_0x5d026c[_0x43e521(0x103)](_0x159669['DZUyh']))return _0x159669[_0x43e521(0xda)](IMAGE_HTTP_HOST_NT,_0x5d026c);if(!hookApi[_0x43e521(0x112)]())return _0x159669[_0x43e521(0xde)](logDebug,_0x159669[_0x43e521(0xbc)]),'';const _0x4c23af=async()=>{const _0x2065cf=_0x43e521,_0x252bc1={'ioaVw':function(_0x5d58ba,_0x291f37){const _0x41a275=_0xbf54;return _0x159669[_0x41a275(0xc8)](_0x5d58ba,_0x291f37);},'fMgys':function(_0x356b0b,_0x2d22b5){return _0x356b0b(_0x2d22b5);}};_0x159669[_0x2065cf(0x109)](logDebug,_0x159669[_0x2065cf(0xfb)]),NTQQFileApi['downloadMedia'](_0x12a35f[_0x2065cf(0xbb)],_0x12a35f[_0x2065cf(0xb3)],_0x12a35f['peerUid'],_0x4cc235[_0x2065cf(0xc4)],'',_0x4cc235['picElement']['sourcePath'],0x3e8*0x1e,![])['then'](_0x5ab3c5=>{})[_0x2065cf(0xf1)](logError),await _0x159669['UDakL'](sleep,0x3e8),_0x159669['WgBcM'](logDebug,_0x159669[_0x2065cf(0xb9)]);const _0x5c20ca=hookApi[_0x2065cf(0xe1)]()||'',_0x113808=_0x159669[_0x2065cf(0xda)](IMAGE_HTTP_HOST_NT+_0x5d026c,_0x5c20ca);if(_0x5c20ca)try{logDebug(_0x2065cf(0xef),_0x113808),await new Promise((_0x60dd70,_0x381ff7)=>{const _0x12c1a7=_0x2065cf;_0x4a4a98[_0x12c1a7(0xd8)](_0x113808,_0x470a21=>{const _0x4ed582=_0x12c1a7;_0x470a21[_0x4ed582(0xc2)]!==0xc8?_0x252bc1[_0x4ed582(0x108)](_0x381ff7,_0x4ed582(0xfc)):_0x252bc1['fMgys'](_0x60dd70,_0x470a21);})['on'](_0x159669[_0x12c1a7(0xe2)],_0x51f444=>{_0x381ff7(_0x51f444);});}),logDebug(_0x2065cf(0xe8),_0x113808),_0x159669['uulkP'](_0x45793a,_0x5c20ca);}catch(_0x30a9ae){return logError(_0x159669[_0x2065cf(0xab)],_0x113808,_0x30a9ae),'';}return _0x5c20ca;},_0xbcdf3e=new Promise((_0x67751a,_0x3fa937)=>{const _0x4eb765={'JOgCC':function(_0x187241,_0x89c266){return _0x159669['uulkP'](_0x187241,_0x89c266);}};getRKeyTaskQueue['addTask'](async()=>{const _0x8c062f=_0xbf54,_0x2f970f=await _0x4c23af();_0x4eb765[_0x8c062f(0xb7)](_0x67751a,_0x2f970f);});}),_0x2436f2=_0x5991e0?privateImageRKey:groupImageRKey,_0x1dcd9f=_0x5991e0?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x159669[_0x43e521(0x10d)](_0x159669['KyZRg'](Date['now'](),_0x1dcd9f),rkeyExpireTime)||!_0x2436f2){const _0x274d5d=await _0xbcdf3e;if(_0x274d5d)return _0x159669[_0x43e521(0xda)](IMAGE_HTTP_HOST_NT,_0x5d026c)+(''+_0x274d5d);else _0x159669['MLiEA'](logError,_0x159669[_0x43e521(0x110)],_0x5d026c);}if(_0x2436f2)return _0x159669['ncsqt'](_0x159669[_0x43e521(0xdd)](IMAGE_HTTP_HOST_NT,_0x5d026c),''+_0x2436f2);return'';}else return IMAGE_HTTP_HOST+_0x5d026c;}else{if(_0x159669[_0x43e521(0xc5)](_0x4d48f5,_0x4b523f))return IMAGE_HTTP_HOST+_0x43e521(0x113)+(_0x4d48f5||_0x4b523f)[_0x43e521(0xb2)]()+'/0';}return _0x159669[_0x43e521(0xfa)](logDebug,_0x43e521(0xf6),_0x12a35f),'';}}export class NTQQFileCacheApi{static async[_0x573006(0xcf)](_0x22beb8=!![]){return'';}static[_0x573006(0xeb)](){return'';}static[_0x573006(0xe0)](_0x4347ea=[_0x573006(0xf5),_0x573006(0xd6)]){const _0x6cdff6=_0x573006;return napCatCore[_0x6cdff6(0x105)][_0x6cdff6(0xf9)]()['clearCacheDataByKeys'](_0x4347ea);}static['addCacheScannedPaths'](_0x48d3b6={}){const _0x3ac48c=_0x573006;return napCatCore['session']['getStorageCleanService']()[_0x3ac48c(0xd9)](_0x48d3b6);}static[_0x573006(0x111)](){const _0x38ebeb=_0x573006;return napCatCore[_0x38ebeb(0x105)][_0x38ebeb(0xf9)]()[_0x38ebeb(0x111)]();}static[_0x573006(0xfe)](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x573006(0xe4)](_0x4002c9,_0x1d6191=0x3e8,_0x43aff3=0x0){const _0x3ea9dd=_0x573006;return napCatCore['session'][_0x3ea9dd(0xf9)]()[_0x3ea9dd(0xae)](_0x4002c9,_0x1d6191,0x1,_0x43aff3);}static[_0x573006(0xc1)](_0x4e744e,_0x166903=0x3e8,_0x174b96){const _0x2e78f6=_0x174b96?_0x174b96:{'fileType':_0x4e744e};}static async[_0x573006(0xd7)](_0x5ab93b=[],_0x3d2ff7=[]){const _0x52ae3a=_0x573006;return napCatCore[_0x52ae3a(0x105)][_0x52ae3a(0xf9)]()[_0x52ae3a(0xbd)](_0x5ab93b,_0x3d2ff7);}} \ 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 6937daff..93f5c290 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x475a34=_0x5dae;function _0x5dae(_0x7a2a3a,_0x24a2b3){const _0x1f247b=_0x1f24();return _0x5dae=function(_0x5dae9e,_0x4d9970){_0x5dae9e=_0x5dae9e-0x10b;let _0x519bd6=_0x1f247b[_0x5dae9e];return _0x519bd6;},_0x5dae(_0x7a2a3a,_0x24a2b3);}(function(_0x2725d4,_0x184a2){const _0x246316=_0x5dae,_0x4cd17b=_0x2725d4();while(!![]){try{const _0x389cdb=parseInt(_0x246316(0x11f))/0x1+parseInt(_0x246316(0x10f))/0x2+parseInt(_0x246316(0x113))/0x3*(parseInt(_0x246316(0x118))/0x4)+-parseInt(_0x246316(0x112))/0x5*(parseInt(_0x246316(0x110))/0x6)+parseInt(_0x246316(0x12b))/0x7*(-parseInt(_0x246316(0x115))/0x8)+-parseInt(_0x246316(0x10e))/0x9*(parseInt(_0x246316(0x125))/0xa)+-parseInt(_0x246316(0x114))/0xb*(-parseInt(_0x246316(0x126))/0xc);if(_0x389cdb===_0x184a2)break;else _0x4cd17b['push'](_0x4cd17b['shift']());}catch(_0x190f77){_0x4cd17b['push'](_0x4cd17b['shift']());}}}(_0x1f24,0x4ec91));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[_0x475a34(0x128)]=_0x3f8d17=>{const _0x2ef167=_0x475a34;for(const [_0x55621d,_0x40e7d1]of buddyChangeTasks){_0x40e7d1(_0x3f8d17),buddyChangeTasks[_0x2ef167(0x11b)](_0x55621d);}},setTimeout(()=>{const _0xe71b1b=_0x475a34;napCatCore[_0xe71b1b(0x10b)](()=>{const _0x4ec780=_0xe71b1b;napCatCore[_0x4ec780(0x12d)](buddyListener);});},0x64);export class NTQQFriendApi{static async['getFriends'](_0x3114e5=![]){const _0x2aac59=_0x475a34,_0x35c45c={'nCdmS':function(_0x1ecde6,_0x2682e8,_0x18b3ef){return _0x1ecde6(_0x2682e8,_0x18b3ef);},'NZIoq':_0x2aac59(0x120),'PVWKI':function(_0x4671b5,_0x5ece2a){return _0x4671b5(_0x5ece2a);},'QYoNb':_0x2aac59(0x11e),'ckbhz':function(_0x4711f1,_0xb3fb1,_0x21daf3){return _0x4711f1(_0xb3fb1,_0x21daf3);},'Qmnnj':function(_0x4ad4f0){return _0x4ad4f0();}};return new Promise((_0x334987,_0xa8b17d)=>{const _0x1beb52=_0x2aac59,_0x197529={'WaDOB':function(_0x28e60f,_0x310bf5){const _0x452548=_0x5dae;return _0x35c45c[_0x452548(0x117)](_0x28e60f,_0x310bf5);},'hzAWF':_0x35c45c[_0x1beb52(0x121)],'hbpqo':function(_0x2555d0,_0x33c7ad,_0x5c06d2){const _0x314931=_0x1beb52;return _0x35c45c[_0x314931(0x10d)](_0x2555d0,_0x33c7ad,_0x5c06d2);}};let _0x18ce61=![];_0x35c45c[_0x1beb52(0x10d)](setTimeout,()=>{const _0x25a776=_0x1beb52;!_0x18ce61&&(_0x197529[_0x25a776(0x123)](logDebug,_0x197529[_0x25a776(0x11a)]),_0x197529[_0x25a776(0x123)](_0xa8b17d,_0x197529['hzAWF']));},0x1388);const _0x206ceb=[],_0x2ddd67=_0x27aacd=>{const _0x3e3863=_0x1beb52;for(const _0x2d9302 of _0x27aacd){for(const _0x3136e0 of _0x2d9302[_0x3e3863(0x124)]){_0x206ceb[_0x3e3863(0x11d)](_0x3136e0),uid2UinMap[_0x3136e0[_0x3e3863(0x127)]]=_0x3136e0['uin'];}}_0x18ce61=!![],_0x197529['hbpqo'](logDebug,'获取好友列表完成',_0x206ceb),_0x197529[_0x3e3863(0x123)](_0x334987,_0x206ceb);};buddyChangeTasks[_0x1beb52(0x12c)](_0x35c45c['Qmnnj'](randomUUID),_0x2ddd67),napCatCore[_0x1beb52(0x10c)][_0x1beb52(0x12a)]()[_0x1beb52(0x11c)](_0x3114e5)[_0x1beb52(0x111)](_0x598c96=>{const _0x881b17=_0x1beb52;_0x35c45c[_0x881b17(0x129)](logDebug,_0x35c45c[_0x881b17(0x119)],_0x598c96);});});}static async['handleFriendRequest'](_0x1230a0,_0x29c91a){const _0x75c2b8=_0x475a34;napCatCore[_0x75c2b8(0x10c)][_0x75c2b8(0x12a)]()?.['approvalFriendRequest']({'friendUid':_0x1230a0[_0x75c2b8(0x116)],'reqTime':_0x1230a0[_0x75c2b8(0x122)],'accept':_0x29c91a});}}function _0x1f24(){const _0x296d49=['getBuddyList','push','获取好友列表超时','118911Xxkmyt','开始获取好友列表','QYoNb','reqTime','WaDOB','buddyList','671890HKledG','36IaYDZp','uid','onBuddyListChange','nCdmS','getBuddyService','259JbBcAw','set','addListener','onLoginSuccess','session','ckbhz','36FaKRok','1278782WtbvPZ','492GpInxW','then','24985mquEuA','204VcnYqb','611281WRNlia','7872USwXsQ','friendUid','PVWKI','6624GErDKm','NZIoq','hzAWF','delete'];_0x1f24=function(){return _0x296d49;};return _0x1f24();} \ No newline at end of file +const _0x123c9d=_0x19d5;function _0x19d5(_0x2d25dd,_0x3eaed3){const _0x1eed08=_0x1eed();return _0x19d5=function(_0x19d5d4,_0x52fe3b){_0x19d5d4=_0x19d5d4-0x1cc;let _0x266bb2=_0x1eed08[_0x19d5d4];return _0x266bb2;},_0x19d5(_0x2d25dd,_0x3eaed3);}function _0x1eed(){const _0x2d0917=['buddyList','9765720rwdhDv','push','2736070sTXBce','dcOrt','getBuddyList','set','then','onLoginSuccess','zdMDl','8OtnWfe','uid','onBuddyListChange','getBuddyService','wbhgQ','1684902LaIScZ','JocOW','35NcJkfc','Eodji','addListener','aQfGz','ksFIV','开始获取好友列表','session','9548334oHbVPV','10909HQaaaj','ziJnA','738522kJhOaO','46enRaLC','5615985AitQyi','rGEoE','获取好友列表完成','UxLFm','friendUid','handleFriendRequest'];_0x1eed=function(){return _0x2d0917;};return _0x1eed();}(function(_0x475524,_0x1bc23a){const _0x354f84=_0x19d5,_0x1d598c=_0x475524();while(!![]){try{const _0x925270=parseInt(_0x354f84(0x1eb))/0x1*(parseInt(_0x354f84(0x1ee))/0x2)+parseInt(_0x354f84(0x1ed))/0x3*(parseInt(_0x354f84(0x1dc))/0x4)+parseInt(_0x354f84(0x1cc))/0x5+-parseInt(_0x354f84(0x1e1))/0x6*(-parseInt(_0x354f84(0x1e3))/0x7)+-parseInt(_0x354f84(0x1d3))/0x8+-parseInt(_0x354f84(0x1ea))/0x9+-parseInt(_0x354f84(0x1d5))/0xa;if(_0x925270===_0x1bc23a)break;else _0x1d598c['push'](_0x1d598c['shift']());}catch(_0x4f4792){_0x1d598c['push'](_0x1d598c['shift']());}}}(_0x1eed,0xaea19));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[_0x123c9d(0x1de)]=_0x75f921=>{const _0x51c3a3=_0x123c9d,_0x50a3f5={'ksFIV':function(_0x2804df,_0x14cc1c){return _0x2804df(_0x14cc1c);}};for(const [_0x42f0f5,_0x220535]of buddyChangeTasks){_0x50a3f5[_0x51c3a3(0x1e7)](_0x220535,_0x75f921),buddyChangeTasks['delete'](_0x42f0f5);}},setTimeout(()=>{const _0x247fc8=_0x123c9d;napCatCore[_0x247fc8(0x1da)](()=>{const _0x5085b1=_0x247fc8;napCatCore[_0x5085b1(0x1e5)](buddyListener);});},0x64);export class NTQQFriendApi{static async['getFriends'](_0x381585=![]){const _0x4aac32=_0x123c9d,_0x5a4d1d={'Eodji':function(_0x4e5489,_0x412f0d,_0x2f0945){return _0x4e5489(_0x412f0d,_0x2f0945);},'zdMDl':_0x4aac32(0x1e8),'UxLFm':'获取好友列表超时','ziJnA':function(_0xb5c81c,_0x487f89){return _0xb5c81c(_0x487f89);},'JocOW':function(_0x19350b,_0x4a3875,_0x383fe7){return _0x19350b(_0x4a3875,_0x383fe7);},'rGEoE':function(_0x24f4ac,_0x11a63f,_0x2fac0d){return _0x24f4ac(_0x11a63f,_0x2fac0d);}};return new Promise((_0x928c4,_0x4d3916)=>{const _0x42d8dd=_0x4aac32,_0x2b759d={'dcOrt':_0x5a4d1d[_0x42d8dd(0x1cf)],'wbhgQ':function(_0x399e02,_0x440e16){const _0x38c41f=_0x42d8dd;return _0x5a4d1d[_0x38c41f(0x1ec)](_0x399e02,_0x440e16);},'aQfGz':function(_0xc7bb25,_0x15570a,_0x445cd2){const _0x180bfc=_0x42d8dd;return _0x5a4d1d[_0x180bfc(0x1e2)](_0xc7bb25,_0x15570a,_0x445cd2);},'YWNRk':_0x42d8dd(0x1ce)};let _0x519187=![];_0x5a4d1d[_0x42d8dd(0x1cd)](setTimeout,()=>{const _0x1ff758=_0x42d8dd;!_0x519187&&(logDebug(_0x2b759d[_0x1ff758(0x1d6)]),_0x2b759d[_0x1ff758(0x1e0)](_0x4d3916,_0x2b759d[_0x1ff758(0x1d6)]));},0x1388);const _0x31de2a=[],_0x342581=_0x40bcc3=>{const _0x3840a2=_0x42d8dd;for(const _0x329a75 of _0x40bcc3){for(const _0x1925f2 of _0x329a75[_0x3840a2(0x1d2)]){_0x31de2a[_0x3840a2(0x1d4)](_0x1925f2),uid2UinMap[_0x1925f2[_0x3840a2(0x1dd)]]=_0x1925f2['uin'];}}_0x519187=!![],_0x2b759d[_0x3840a2(0x1e6)](logDebug,_0x2b759d['YWNRk'],_0x31de2a),_0x2b759d[_0x3840a2(0x1e0)](_0x928c4,_0x31de2a);};buddyChangeTasks[_0x42d8dd(0x1d8)](randomUUID(),_0x342581),napCatCore[_0x42d8dd(0x1e9)][_0x42d8dd(0x1df)]()[_0x42d8dd(0x1d7)](_0x381585)[_0x42d8dd(0x1d9)](_0x8be79d=>{const _0x3d9797=_0x42d8dd;_0x5a4d1d[_0x3d9797(0x1e4)](logDebug,_0x5a4d1d[_0x3d9797(0x1db)],_0x8be79d);});});}static async[_0x123c9d(0x1d1)](_0x3f3dae,_0x17d986){const _0x3fc88e=_0x123c9d;napCatCore['session'][_0x3fc88e(0x1df)]()?.['approvalFriendRequest']({'friendUid':_0x3f3dae[_0x3fc88e(0x1d0)],'reqTime':_0x3f3dae['reqTime'],'accept':_0x17d986});}} \ 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 444e9741..6c0481de 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x77b3d2=_0x2ec2;(function(_0x1c9ecf,_0x17e95f){const _0x3a4533=_0x2ec2,_0x452ede=_0x1c9ecf();while(!![]){try{const _0x29986b=-parseInt(_0x3a4533(0x1ee))/0x1+-parseInt(_0x3a4533(0x1ed))/0x2+-parseInt(_0x3a4533(0x1e8))/0x3+parseInt(_0x3a4533(0x1d6))/0x4+-parseInt(_0x3a4533(0x1f1))/0x5*(parseInt(_0x3a4533(0x1db))/0x6)+parseInt(_0x3a4533(0x1dc))/0x7*(-parseInt(_0x3a4533(0x1e5))/0x8)+parseInt(_0x3a4533(0x1df))/0x9;if(_0x29986b===_0x17e95f)break;else _0x452ede['push'](_0x452ede['shift']());}catch(_0xfa8e7){_0x452ede['push'](_0x452ede['shift']());}}}(_0x1ba2,0x64bf8));import{napCatCore}from'@/core';function _0x1ba2(){const _0x25075d=['addListener','modifyGroupName','YpiVf','finish','QQiQj','errMsg','banMember','mhPgx','handleGroupRequest','uid','EFvDn','jlERK','onLoginSuccess','onGroupListUpdate','session','TmRIp','quitGroup','qjMXn','errCode','group','operateSysNotify','setGroupName','set','getGroupService','banGroup','groupMemberList_MainWindow','hfsEz','57816lfCVSC','YBgRP','getGroupList','result','modifyMemberCardName','3586068RNPVuI','7qhwXsB','getGroupMembers','SdUdq','19105407IUSxwa','infos','xMPVb','finish:\x20','uin','getGroupNotifies','82376pJZTIs','groupCode','type','491583lFymJR','seq',')成员列表结果:','获取群(','获取群列表超时','791574nEXReC','556990ksdCtk','getGroups','获取群成员列表出错,','5Yhfken'];_0x1ba2=function(){return _0x25075d;};return _0x1ba2();}import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';function _0x2ec2(_0xd17e25,_0x3909ea){const _0x1ba2c6=_0x1ba2();return _0x2ec2=function(_0x2ec27d,_0x288bd6){_0x2ec27d=_0x2ec27d-0x1d3;let _0x30adcb=_0x1ba2c6[_0x2ec27d];return _0x30adcb;},_0x2ec2(_0xd17e25,_0x3909ea);}const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x77b3d2(0x1ff)]=(_0x816fe3,_0x3c7d43)=>{const _0x25b606=_0x77b3d2,_0x5f494c={'xMPVb':function(_0x3f575a,_0xf8bbe,_0x5b7df1){return _0x3f575a(_0xf8bbe,_0x5b7df1);}};for(const [_0x5d4781,_0xd2d75e]of groupMemberTasks){_0x5f494c[_0x25b606(0x1e1)](_0xd2d75e,_0x816fe3,_0x3c7d43),groupMemberTasks['delete'](_0x5d4781);}},setTimeout(()=>{const _0x51d1cf=_0x77b3d2;napCatCore[_0x51d1cf(0x1fe)](()=>{const _0x31eaa8=_0x51d1cf;napCatCore[_0x31eaa8(0x1f2)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x77b3d2(0x1ef)](_0x3ae9a1=![]){const _0x2bc257=_0x77b3d2,_0x39362d={'SdUdq':function(_0x156852,_0x54bbdf,_0x369f38){return _0x156852(_0x54bbdf,_0x369f38);},'YpiVf':function(_0x5c219e,_0x5d7eef){return _0x5c219e(_0x5d7eef);},'TmRIp':_0x2bc257(0x1ec),'vChwF':function(_0xdaaa15,_0x12570d){return _0xdaaa15(_0x12570d);},'mhPgx':function(_0x3a325b){return _0x3a325b();}};let _0x1f340b=![];return new Promise((_0x23e550,_0x4a91fc)=>{const _0x4de232=_0x2bc257,_0x215eca={'YBgRP':function(_0x2192c8,_0x1100fa){return _0x2192c8(_0x1100fa);},'hfsEz':_0x39362d[_0x4de232(0x201)],'cdiJr':function(_0x41bdfd,_0x166127){return _0x39362d['vChwF'](_0x41bdfd,_0x166127);}};_0x39362d[_0x4de232(0x1de)](setTimeout,()=>{const _0x5ab523=_0x4de232;!_0x1f340b&&(_0x215eca[_0x5ab523(0x1d7)](logDebug,_0x215eca[_0x5ab523(0x1d5)]),_0x215eca['cdiJr'](_0x4a91fc,_0x215eca[_0x5ab523(0x1d5)]));},0x1388);const _0x460b31=(_0x1b8cc8,_0x2509cb)=>{const _0xbdd1d=_0x4de232;_0x1f340b=!![],_0x39362d[_0xbdd1d(0x1de)](logDebug,'获取群列表完成',_0x2509cb),_0x39362d[_0xbdd1d(0x1f4)](_0x23e550,_0x2509cb);};groupMemberTasks[_0x4de232(0x208)](_0x39362d[_0x4de232(0x1f9)](randomUUID),_0x460b31),napCatCore[_0x4de232(0x200)][_0x4de232(0x209)]()[_0x4de232(0x1d8)](_0x3ae9a1)['then']();});}static async[_0x77b3d2(0x1dd)](_0x505e2b,_0x545734=0xbb8){const _0xd2d5ca=_0x77b3d2,_0x14fb4c={'jlERK':_0xd2d5ca(0x1d4),'EFvDn':function(_0x1fd91e,_0x5d62db){return _0x1fd91e!==_0x5d62db;},'QQiQj':function(_0x8e153d,_0x1e4f20){return _0x8e153d+_0x1e4f20;},'qjMXn':_0xd2d5ca(0x1f0),'wNdcK':function(_0x528a65,_0x30083e,_0x2f5f8a){return _0x528a65(_0x30083e,_0x2f5f8a);}},_0x56d19f=napCatCore['session'][_0xd2d5ca(0x209)](),_0x3aa985=_0x56d19f['createMemberListScene'](_0x505e2b,_0x14fb4c[_0xd2d5ca(0x1fd)]),_0x325990=await _0x56d19f['getNextMemberList'](_0x3aa985,undefined,_0x545734);if(_0x14fb4c[_0xd2d5ca(0x1fc)](_0x325990[_0xd2d5ca(0x204)],0x0))throw _0x14fb4c[_0xd2d5ca(0x1f6)](_0x14fb4c[_0xd2d5ca(0x203)],_0x325990[_0xd2d5ca(0x1f7)]);return _0x14fb4c['wNdcK'](logDebug,_0xd2d5ca(0x1eb)+_0x505e2b+_0xd2d5ca(0x1ea),_0xd2d5ca(0x1e2)+_0x325990[_0xd2d5ca(0x1d9)][_0xd2d5ca(0x1f5)]),_0x325990[_0xd2d5ca(0x1d9)][_0xd2d5ca(0x1e0)]['forEach'](_0x3d0831=>{const _0x267eaf=_0xd2d5ca;uid2UinMap[_0x3d0831[_0x267eaf(0x1fb)]]=_0x3d0831[_0x267eaf(0x1e3)];}),_0x325990[_0xd2d5ca(0x1d9)][_0xd2d5ca(0x1e0)];}static async[_0x77b3d2(0x1e4)](){}static async['getGroupIgnoreNotifies'](){}static async[_0x77b3d2(0x1fa)](_0x563760,_0x509883,_0x123d39){const _0x2f3906=_0x77b3d2;return napCatCore[_0x2f3906(0x200)][_0x2f3906(0x209)]()[_0x2f3906(0x206)](![],{'operateType':_0x509883,'targetMsg':{'seq':_0x563760[_0x2f3906(0x1e9)],'type':_0x563760[_0x2f3906(0x1e7)],'groupCode':_0x563760[_0x2f3906(0x205)][_0x2f3906(0x1e6)],'postscript':_0x123d39||''}});}static async[_0x77b3d2(0x202)](_0x1a8bf9){const _0x3e220e=_0x77b3d2;return napCatCore['session'][_0x3e220e(0x209)]()[_0x3e220e(0x202)](_0x1a8bf9);}static async['kickMember'](_0x1da304,_0x2e8208,_0xda5cbd=![],_0x4dff17=''){const _0x20ac00=_0x77b3d2;return napCatCore[_0x20ac00(0x200)][_0x20ac00(0x209)]()['kickMember'](_0x1da304,_0x2e8208,_0xda5cbd,_0x4dff17);}static async[_0x77b3d2(0x1f8)](_0x212cc0,_0x1757fd){const _0x381ae9=_0x77b3d2;return napCatCore[_0x381ae9(0x200)][_0x381ae9(0x209)]()['setMemberShutUp'](_0x212cc0,_0x1757fd);}static async[_0x77b3d2(0x1d3)](_0x439903,_0x395546){const _0xbb5b91=_0x77b3d2;return napCatCore['session'][_0xbb5b91(0x209)]()['setGroupShutUp'](_0x439903,_0x395546);}static async['setMemberCard'](_0x4eac65,_0x2c7ecf,_0xf1154){const _0x4d98b6=_0x77b3d2;return napCatCore[_0x4d98b6(0x200)][_0x4d98b6(0x209)]()[_0x4d98b6(0x1da)](_0x4eac65,_0x2c7ecf,_0xf1154);}static async['setMemberRole'](_0x171789,_0x22615a,_0x29aeff){const _0x1e8327=_0x77b3d2;return napCatCore[_0x1e8327(0x200)]['getGroupService']()['modifyMemberRole'](_0x171789,_0x22615a,_0x29aeff);}static async[_0x77b3d2(0x207)](_0x3d507e,_0x25f583){const _0x438bed=_0x77b3d2;return napCatCore[_0x438bed(0x200)][_0x438bed(0x209)]()[_0x438bed(0x1f3)](_0x3d507e,_0x25f583,![]);}static async['setGroupTitle'](_0x5e8d2a,_0x1c1ae5,_0x25735e){}static['publishGroupBulletin'](_0x36fc20,_0x336736,_0x3769e6){}} \ No newline at end of file +const _0x84f1cd=_0x5ef8;(function(_0x32101a,_0x3e46e5){const _0x2b1ff1=_0x5ef8,_0x26904d=_0x32101a();while(!![]){try{const _0x4059ff=parseInt(_0x2b1ff1(0x78))/0x1*(parseInt(_0x2b1ff1(0x92))/0x2)+-parseInt(_0x2b1ff1(0x88))/0x3*(parseInt(_0x2b1ff1(0x85))/0x4)+-parseInt(_0x2b1ff1(0x9d))/0x5+parseInt(_0x2b1ff1(0xa0))/0x6+parseInt(_0x2b1ff1(0x7a))/0x7+-parseInt(_0x2b1ff1(0xa5))/0x8*(-parseInt(_0x2b1ff1(0xa9))/0x9)+-parseInt(_0x2b1ff1(0x89))/0xa;if(_0x4059ff===_0x3e46e5)break;else _0x26904d['push'](_0x26904d['shift']());}catch(_0x36d748){_0x26904d['push'](_0x26904d['shift']());}}}(_0x46f0,0x37de9));function _0x46f0(){const _0x386f0c=['banGroup','ydAEE','setMemberCard','getGroupIgnoreNotifies','getGroups','获取群成员列表出错,','20RwWTfo','setMemberRole','KnWvz','208335npiJoM','1599240OBGxpv','session','seq','finish','quitGroup','infos','getGroupList','operateSysNotify',')成员列表结果:','4PiAquI','finish:\x20','onGroupListUpdate','获取群列表超时','onLoginSuccess','zxkjV','sxzLu','gtvJR','addListener','EhKyM','groupCode','660470JBCvwB','FMFLx','setGroupTitle','2378892DKqbqX','setGroupShutUp','获取群列表完成','获取群(','errMsg','23152lcbEgO','banMember','forEach','then','477VyRkJX','modifyMemberCardName','JfGiQ','getGroupMembers','result','uid','type','oLCXm','group','kickMember','XrFiL','getGroupService','148916myXBMf','cpUwb','142716SgvwWm','delete','handleGroupRequest','uin','modifyMemberRole'];_0x46f0=function(){return _0x386f0c;};return _0x46f0();}function _0x5ef8(_0x56650c,_0xd5d07a){const _0x46f0ec=_0x46f0();return _0x5ef8=function(_0x5ef8e9,_0x282800){_0x5ef8e9=_0x5ef8e9-0x77;let _0x3d71a3=_0x46f0ec[_0x5ef8e9];return _0x3d71a3;},_0x5ef8(_0x56650c,_0xd5d07a);}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[_0x84f1cd(0x94)]=(_0xa7184b,_0x541a26)=>{const _0x353cd5=_0x84f1cd;for(const [_0x349b41,_0x468476]of groupMemberTasks){_0x468476(_0xa7184b,_0x541a26),groupMemberTasks[_0x353cd5(0x7b)](_0x349b41);}},setTimeout(()=>{const _0x38eccc=_0x84f1cd;napCatCore[_0x38eccc(0x96)](()=>{const _0x7bb9a0=_0x38eccc;napCatCore[_0x7bb9a0(0x9a)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x84f1cd(0x83)](_0x2fc0a3=![]){const _0x1e0013=_0x84f1cd,_0x241d62={'JfGiQ':_0x1e0013(0xa2),'FMFLx':function(_0x56dd24,_0x136bbf){return _0x56dd24(_0x136bbf);},'gtvJR':function(_0x85426e,_0x3be598){return _0x85426e(_0x3be598);},'ydAEE':_0x1e0013(0x95),'EhKyM':function(_0x2c292f){return _0x2c292f();}};let _0x27102d=![];return new Promise((_0x3d4684,_0x36cfa6)=>{const _0x122a39=_0x1e0013,_0x19f664={'cpUwb':function(_0x2cbc82,_0x3cd10b){const _0x551cf8=_0x5ef8;return _0x241d62[_0x551cf8(0x99)](_0x2cbc82,_0x3cd10b);},'sxzLu':_0x241d62[_0x122a39(0x80)]};setTimeout(()=>{const _0x25c4d8=_0x122a39;!_0x27102d&&(_0x19f664[_0x25c4d8(0x79)](logDebug,_0x19f664[_0x25c4d8(0x98)]),_0x19f664['cpUwb'](_0x36cfa6,_0x25c4d8(0x95)));},0x1388);const _0x50634a=(_0x56d33b,_0x19e3fa)=>{const _0x15b25c=_0x122a39;_0x27102d=!![],logDebug(_0x241d62[_0x15b25c(0xab)],_0x19e3fa),_0x241d62[_0x15b25c(0x9e)](_0x3d4684,_0x19e3fa);};groupMemberTasks['set'](_0x241d62[_0x122a39(0x9b)](randomUUID),_0x50634a),napCatCore['session'][_0x122a39(0x77)]()[_0x122a39(0x8f)](_0x2fc0a3)[_0x122a39(0xa8)]();});}static async[_0x84f1cd(0xac)](_0x2ce8e2,_0x2c395f=0xbb8){const _0xa7f858=_0x84f1cd,_0x3117b1={'oLCXm':'groupMemberList_MainWindow','KnWvz':function(_0x39b895,_0x24282f){return _0x39b895+_0x24282f;},'XrFiL':_0xa7f858(0x84)},_0x8f19a8=napCatCore[_0xa7f858(0x8a)][_0xa7f858(0x77)](),_0x4964f5=_0x8f19a8['createMemberListScene'](_0x2ce8e2,_0x3117b1[_0xa7f858(0xb0)]),_0x3efdb2=await _0x8f19a8['getNextMemberList'](_0x4964f5,undefined,_0x2c395f);if(_0x3efdb2['errCode']!==0x0)throw _0x3117b1[_0xa7f858(0x87)](_0x3117b1[_0xa7f858(0xb3)],_0x3efdb2[_0xa7f858(0xa4)]);return logDebug(_0xa7f858(0xa3)+_0x2ce8e2+_0xa7f858(0x91),_0xa7f858(0x93)+_0x3efdb2['result'][_0xa7f858(0x8c)]),_0x3efdb2[_0xa7f858(0xad)][_0xa7f858(0x8e)][_0xa7f858(0xa7)](_0x4ad0fa=>{const _0x553a3f=_0xa7f858;uid2UinMap[_0x4ad0fa[_0x553a3f(0xae)]]=_0x4ad0fa[_0x553a3f(0x7d)];}),_0x3efdb2[_0xa7f858(0xad)][_0xa7f858(0x8e)];}static async['getGroupNotifies'](){}static async[_0x84f1cd(0x82)](){}static async[_0x84f1cd(0x7c)](_0x310c23,_0x587738,_0x127ad6){const _0xc648ea=_0x84f1cd,_0x347bc5={'zxkjV':function(_0xfb9ba7,_0x4c3134){return _0xfb9ba7||_0x4c3134;}};return napCatCore[_0xc648ea(0x8a)][_0xc648ea(0x77)]()[_0xc648ea(0x90)](![],{'operateType':_0x587738,'targetMsg':{'seq':_0x310c23[_0xc648ea(0x8b)],'type':_0x310c23[_0xc648ea(0xaf)],'groupCode':_0x310c23[_0xc648ea(0xb1)][_0xc648ea(0x9c)],'postscript':_0x347bc5[_0xc648ea(0x97)](_0x127ad6,'')}});}static async[_0x84f1cd(0x8d)](_0x1e97d5){const _0x43412d=_0x84f1cd;return napCatCore[_0x43412d(0x8a)]['getGroupService']()['quitGroup'](_0x1e97d5);}static async[_0x84f1cd(0xb2)](_0x195582,_0x3efb93,_0x25a387=![],_0x3b96e7=''){const _0x5078b7=_0x84f1cd;return napCatCore[_0x5078b7(0x8a)]['getGroupService']()[_0x5078b7(0xb2)](_0x195582,_0x3efb93,_0x25a387,_0x3b96e7);}static async[_0x84f1cd(0xa6)](_0x4dc41c,_0x79cf2a){const _0x49512a=_0x84f1cd;return napCatCore[_0x49512a(0x8a)][_0x49512a(0x77)]()['setMemberShutUp'](_0x4dc41c,_0x79cf2a);}static async[_0x84f1cd(0x7f)](_0x23b32a,_0x164d9e){const _0x1235e9=_0x84f1cd;return napCatCore[_0x1235e9(0x8a)][_0x1235e9(0x77)]()[_0x1235e9(0xa1)](_0x23b32a,_0x164d9e);}static async[_0x84f1cd(0x81)](_0x4c86af,_0x1cdd55,_0x535b9d){const _0x2bbecd=_0x84f1cd;return napCatCore[_0x2bbecd(0x8a)][_0x2bbecd(0x77)]()[_0x2bbecd(0xaa)](_0x4c86af,_0x1cdd55,_0x535b9d);}static async[_0x84f1cd(0x86)](_0x1bfea3,_0x53162b,_0xbb2dc3){const _0x40dbd1=_0x84f1cd;return napCatCore['session']['getGroupService']()[_0x40dbd1(0x7e)](_0x1bfea3,_0x53162b,_0xbb2dc3);}static async['setGroupName'](_0x5c3920,_0x24473d){const _0x15c644=_0x84f1cd;return napCatCore[_0x15c644(0x8a)][_0x15c644(0x77)]()['modifyGroupName'](_0x5c3920,_0x24473d,![]);}static async[_0x84f1cd(0x9f)](_0x317efd,_0x1e550c,_0x5915d8){}static['publishGroupBulletin'](_0x58d8dc,_0x1e7c49,_0x390f6a){}} \ 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 4af9a796..f376f104 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x4de085,_0xf6dc9d){var _0x26bb5f=_0x28b2,_0x36b7f8=_0x4de085();while(!![]){try{var _0x507cc4=-parseInt(_0x26bb5f(0x177))/0x1*(-parseInt(_0x26bb5f(0x17c))/0x2)+parseInt(_0x26bb5f(0x175))/0x3*(-parseInt(_0x26bb5f(0x179))/0x4)+parseInt(_0x26bb5f(0x17f))/0x5*(parseInt(_0x26bb5f(0x176))/0x6)+parseInt(_0x26bb5f(0x17a))/0x7+parseInt(_0x26bb5f(0x17b))/0x8*(parseInt(_0x26bb5f(0x180))/0x9)+-parseInt(_0x26bb5f(0x178))/0xa+-parseInt(_0x26bb5f(0x17d))/0xb*(parseInt(_0x26bb5f(0x17e))/0xc);if(_0x507cc4===_0xf6dc9d)break;else _0x36b7f8['push'](_0x36b7f8['shift']());}catch(_0x5dd7dc){_0x36b7f8['push'](_0x36b7f8['shift']());}}}(_0x19bb,0xa1114));export*from'./file';export*from'./friend';function _0x28b2(_0x484433,_0x1efb45){var _0x19bbbb=_0x19bb();return _0x28b2=function(_0x28b2b2,_0x525f9e){_0x28b2b2=_0x28b2b2-0x175;var _0x1c3271=_0x19bbbb[_0x28b2b2];return _0x1c3271;},_0x28b2(_0x484433,_0x1efb45);}function _0x19bb(){var _0xa420f1=['490458rKFhsY','114462OrLBJI','2030680oliPgI','17756HDoRde','7504406efihdb','11608hgJzyW','16ZLByvE','1216919qvdXXp','168WsRkFF','15wpVdYm','1989iWAYTT','96gdhYzw'];_0x19bb=function(){return _0xa420f1;};return _0x19bb();}export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi'; \ No newline at end of file +(function(_0x30a190,_0x924469){var _0x4c8014=_0x587d,_0x247605=_0x30a190();while(!![]){try{var _0x526cf3=-parseInt(_0x4c8014(0xaf))/0x1+parseInt(_0x4c8014(0xb0))/0x2*(-parseInt(_0x4c8014(0xb7))/0x3)+parseInt(_0x4c8014(0xb3))/0x4*(-parseInt(_0x4c8014(0xb6))/0x5)+parseInt(_0x4c8014(0xb2))/0x6+parseInt(_0x4c8014(0xae))/0x7+parseInt(_0x4c8014(0xb4))/0x8+parseInt(_0x4c8014(0xb1))/0x9*(-parseInt(_0x4c8014(0xb5))/0xa);if(_0x526cf3===_0x924469)break;else _0x247605['push'](_0x247605['shift']());}catch(_0x2f2815){_0x247605['push'](_0x247605['shift']());}}}(_0x5ab0,0xbccd3));export*from'./file';export*from'./friend';export*from'./group';function _0x5ab0(){var _0x497c8a=['2328752USQKvz','4720zzwFBY','978130ZVeLaZ','1194456toONDm','9398270nfHSGL','954896uPVDQS','2meoAvv','3294SyTOot','8687586inpHJi','16DpFwyF'];_0x5ab0=function(){return _0x497c8a;};return _0x5ab0();}export*from'./msg';function _0x587d(_0x5115ba,_0x57f0c0){var _0x5ab071=_0x5ab0();return _0x587d=function(_0x587d63,_0x463b94){_0x587d63=_0x587d63-0xae;var _0x1207ea=_0x5ab071[_0x587d63];return _0x1207ea;},_0x587d(_0x5115ba,_0x57f0c0);}export*from'./user';export*from'./webapi'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.d.ts b/src/core.lib/src/apis/msg.d.ts index 12e228d0..5cd7085f 100644 --- a/src/core.lib/src/apis/msg.d.ts +++ b/src/core.lib/src/apis/msg.d.ts @@ -20,6 +20,6 @@ export declare class NTQQMsgApi { static fetchRecentContact(): Promise; static recallMsg(peer: Peer, msgIds: string[]): Promise; static sendMsg(peer: Peer, msgElements: SendMessageElement[], waitComplete?: boolean, timeout?: number): Promise; - static forwardMsg(srcPeer: Peer, destPeer: Peer, msgIds: string[]): Promise; + static forwardMsg(srcPeer: Peer, destPeer: Peer, msgIds: string[]): Promise; static multiForwardMsg(srcPeer: Peer, destPeer: Peer, msgIds: string[]): Promise; } diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index 033434c3..39d732d0 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x4cb96a=_0xe7e0;(function(_0x21347d,_0x486a88){const _0x160427=_0xe7e0,_0x21abac=_0x21347d();while(!![]){try{const _0x21ebb4=parseInt(_0x160427(0xc3))/0x1+-parseInt(_0x160427(0xa9))/0x2*(-parseInt(_0x160427(0xb7))/0x3)+-parseInt(_0x160427(0x9a))/0x4*(-parseInt(_0x160427(0x94))/0x5)+-parseInt(_0x160427(0xa2))/0x6+-parseInt(_0x160427(0xc5))/0x7*(parseInt(_0x160427(0xb4))/0x8)+-parseInt(_0x160427(0x81))/0x9*(parseInt(_0x160427(0xbd))/0xa)+-parseInt(_0x160427(0x8d))/0xb;if(_0x21ebb4===_0x486a88)break;else _0x21abac['push'](_0x21abac['shift']());}catch(_0xef6740){_0x21abac['push'](_0x21abac['shift']());}}}(_0xbe84,0xc55f8));function _0xe7e0(_0x417906,_0x1714bd){const _0xbe8482=_0xbe84();return _0xe7e0=function(_0xe7e055,_0x2651c2){_0xe7e055=_0xe7e055-0x81;let _0x1efe5=_0xbe8482[_0xe7e055];return _0x1efe5;},_0xe7e0(_0x417906,_0x1714bd);}import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0xbe84(){const _0xee1c8e=['iMVfx','arkElement','sendMsg','sendStatus','60uCyLXk','then','setEmojiLike','OJVFo','delete','uid','nick','activateChatAndGetHistory','2028408asCQFo','addListener','getMsgsByMsgId','recallMsg','onLoginSuccess','IXzFA','biShs','748982POEqAd','chatType','setMsgRead','set','catch','WzYwG','forwardMsg','rMCQF','tADMd','map','owwgh','2746664DtCrxb','multiForwardMsg','forEach','6JVqHJe','length','getMsgService','yYyHU','IBYti','peerUid','2610tUQaxh','转发消息超时','bWEAm','hOZzJ','setMsgEmojiLikes','parse','1152700nHZUzN','DBwhm','14RYkaxs','getMsgsIncludeSelf','find','oSRNE','getMultiMsg','34461LqbJOH','qwmZs','session','kFsnv','gFmWV','onMsgInfoListUpdate','fetchRecentContact','getMsgsBySeqAndCount','activateChat','IiZJQ','DlcxW','BuJBQ','1329834YhotyP','JfgyW','getMsgHistory','gDQkX','Hsdrd','msgId','发送超时','350585qtntZf','senderUid'];_0xbe84=function(){return _0xee1c8e;};return _0xbe84();}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['onAddSendMsg']=_0x4c2084=>{const _0x305cdb=_0xe7e0,_0x3a81f7={'Hsdrd':function(_0x95399c,_0x355207){return _0x95399c(_0x355207);}};for(const [_0x16ca63,_0x1ad916]of sentMsgTasks){_0x3a81f7[_0x305cdb(0x91)](_0x1ad916,_0x4c2084),sentMsgTasks[_0x305cdb(0x9e)](_0x16ca63);}if(sendMessagePool[_0x4c2084['peerUid']]){const _0xc0c8b4=sendMessagePool[_0x4c2084['peerUid']]?.(_0x4c2084);_0xc0c8b4 instanceof Promise&&_0xc0c8b4[_0x305cdb(0x9b)]()[_0x305cdb(0xad)](logError);}},msgListener[_0x4cb96a(0x86)]=_0x8ab27=>{const _0x21c1eb=_0x4cb96a,_0x425e02={'tADMd':function(_0x515a79,_0x2f47ad){return _0x515a79(_0x2f47ad);},'BuJBQ':function(_0x5e2790,_0x1f8e22){return _0x5e2790 instanceof _0x1f8e22;}};_0x8ab27[_0x21c1eb(0xb6)](_0x230942=>{const _0xa34e15=_0x21c1eb,_0x5c6c6e={'yYyHU':function(_0x383dca,_0xa763ec){const _0x48ddf2=_0xe7e0;return _0x425e02[_0x48ddf2(0xb1)](_0x383dca,_0xa763ec);},'biShs':function(_0x899a04,_0x110d54){const _0x1d7d30=_0xe7e0;return _0x425e02[_0x1d7d30(0x8c)](_0x899a04,_0x110d54);},'IXzFA':function(_0x47850a,_0x7c9459){const _0xccadb7=_0xe7e0;return _0x425e02[_0xccadb7(0xb1)](_0x47850a,_0x7c9459);}};new Promise((_0xbea5f6,_0x32de5b)=>{const _0x4981ae=_0xe7e0;for(const _0x3653c1 in sendSuccessCBMap){const _0x30f4ab=sendSuccessCBMap[_0x3653c1],_0x5cc2a0=_0x5c6c6e[_0x4981ae(0xba)](_0x30f4ab,_0x230942),_0x1c1845=_0x16f89a=>{_0x16f89a&&delete sendSuccessCBMap[_0x3653c1];};_0x5c6c6e[_0x4981ae(0xa8)](_0x5cc2a0,Promise)?_0x5cc2a0[_0x4981ae(0x9b)](_0x1c1845):_0x5c6c6e[_0x4981ae(0xa7)](_0x1c1845,_0x5cc2a0);}})[_0xa34e15(0x9b)]()[_0xa34e15(0xad)](log);});},setTimeout(()=>{const _0x243056=_0x4cb96a;napCatCore[_0x243056(0xa6)](()=>{const _0x35817e=_0x243056;napCatCore[_0x35817e(0xa3)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x4cb96a(0x9c)](_0x118237,_0x1d91e7,_0x1ff673,_0x1141fe=!![]){const _0x117984=_0x4cb96a,_0x487e0e={'gFmWV':function(_0x3d89bc,_0x59d3a8){return _0x3d89bc>_0x59d3a8;}};return napCatCore[_0x117984(0x83)][_0x117984(0xb9)]()[_0x117984(0xc1)](_0x118237,_0x1d91e7,_0x1ff673,_0x487e0e[_0x117984(0x85)](_0x1ff673[_0x117984(0xb8)],0x3)?'2':'1',_0x1141fe);}static async[_0x4cb96a(0xc9)](_0x3fa483,_0x5b78b2,_0x236a32){const _0x241e3f=_0x4cb96a;return napCatCore[_0x241e3f(0x83)][_0x241e3f(0xb9)]()['getMultiMsg'](_0x3fa483,_0x5b78b2,_0x236a32);}static async[_0x4cb96a(0xa4)](_0x154750,_0x3a1384){const _0x1a5923=_0x4cb96a;return await napCatCore[_0x1a5923(0x83)][_0x1a5923(0xb9)]()[_0x1a5923(0xa4)](_0x154750,_0x3a1384);}static async[_0x4cb96a(0x88)](_0xee3927,_0x113717,_0xd42266,_0x14c082,_0x5e241e){const _0x942978=_0x4cb96a;return await napCatCore[_0x942978(0x83)]['getMsgService']()['getMsgsBySeqAndCount'](_0xee3927,_0x113717,_0xd42266,_0x14c082,_0x5e241e);}static async[_0x4cb96a(0x89)](_0x5ed0f6){}static async[_0x4cb96a(0xa1)](_0x2ca5d2){}static async[_0x4cb96a(0xab)](_0x5563ab){const _0x23c233=_0x4cb96a;return napCatCore['session']['getMsgService']()[_0x23c233(0xab)](_0x5563ab[_0x23c233(0xaa)],_0x5563ab[_0x23c233(0xbc)],_0x5563ab['guildId']);}static async[_0x4cb96a(0x8f)](_0x212dac,_0x242d28,_0x398f7b){const _0x1ebcf4=_0x4cb96a;return napCatCore[_0x1ebcf4(0x83)]['getMsgService']()[_0x1ebcf4(0xc6)](_0x212dac,_0x242d28,_0x398f7b,!![]);}static async[_0x4cb96a(0x87)](){}static async[_0x4cb96a(0xa5)](_0x1fe86e,_0x3b81c7){const _0x2b7513=_0x4cb96a;await napCatCore[_0x2b7513(0x83)][_0x2b7513(0xb9)]()['recallMsg']({'chatType':_0x1fe86e[_0x2b7513(0xaa)],'peerUid':_0x1fe86e[_0x2b7513(0xbc)]},_0x3b81c7);}static async[_0x4cb96a(0x98)](_0xb6dabe,_0x14eed1,_0x571730=!![],_0x330442=0x2710){const _0xb6d6fc=_0x4cb96a,_0x2cdffb={'ZIhgY':function(_0x2671d8,_0x2add65){return _0x2671d8>_0x2add65;},'kFsnv':function(_0x532faf,_0x265503){return _0x532faf(_0x265503);},'OJVFo':function(_0x3d4f2c){return _0x3d4f2c();},'mwxXf':function(_0x5cb3e4,_0x1b6688){return _0x5cb3e4===_0x1b6688;},'HrnSU':_0xb6d6fc(0x93),'bWEAm':function(_0x2087ea,_0x3b0c53,_0x4eaa6e){return _0x2087ea(_0x3b0c53,_0x4eaa6e);}},_0x57e74a=_0xb6dabe[_0xb6d6fc(0xbc)];let _0xf309=0x0;const _0x5346d5=async()=>{const _0x4eeae1=_0xb6d6fc;if(_0x2cdffb['ZIhgY'](_0xf309,_0x330442))throw _0x4eeae1(0x93);const _0xb673b5=sendMessagePool[_0xb6dabe[_0x4eeae1(0xbc)]];if(_0xb673b5)return await _0x2cdffb[_0x4eeae1(0x84)](sleep,0x1f4),_0xf309+=0x1f4,await _0x2cdffb[_0x4eeae1(0x9d)](_0x5346d5);else return;};return await _0x5346d5(),new Promise((_0x483421,_0x2f2bc8)=>{const _0x40fadc=_0xb6d6fc,_0x4cdc0c={'WzYwG':function(_0x5bb18d,_0x26a210){return _0x2cdffb['mwxXf'](_0x5bb18d,_0x26a210);},'qwmZs':function(_0x519499,_0x555327){return _0x519499(_0x555327);},'gDQkX':_0x2cdffb['HrnSU']};let _0xc635d7=![],_0x5a0082=null;const _0x1f0ea2=randomUUID();sendSuccessCBMap[_0x1f0ea2]=_0x4ebd3a=>{const _0x326495=_0xe7e0;if(_0x4ebd3a[_0x326495(0x92)]===_0x5a0082?.[_0x326495(0x92)]){if(_0x4cdc0c[_0x326495(0xae)](_0x4ebd3a[_0x326495(0x99)],0x2))return delete sendSuccessCBMap[_0x1f0ea2],_0xc635d7=!![],_0x4cdc0c[_0x326495(0x82)](_0x483421,_0x4ebd3a),!![];return![];}return![];},sendMessagePool[_0x57e74a]=async _0x53deca=>{delete sendMessagePool[_0x57e74a],_0x5a0082=_0x53deca;},_0x2cdffb[_0x40fadc(0xbf)](setTimeout,()=>{const _0x17dacf=_0x40fadc;if(_0xc635d7)return;delete sendMessagePool[_0x57e74a],delete sendSuccessCBMap[_0x1f0ea2],_0x4cdc0c['qwmZs'](_0x2f2bc8,_0x4cdc0c[_0x17dacf(0x90)]);},_0x330442);const _0x189a41=napCatCore[_0x40fadc(0x83)][_0x40fadc(0xb9)]()[_0x40fadc(0x98)]('0',_0xb6dabe,_0x14eed1,new Map());});}static async[_0x4cb96a(0xaf)](_0x2fc2c0,_0x58a3a9,_0x3628d6){}static async[_0x4cb96a(0xb5)](_0x2978fb,_0x5f249c,_0x55c0bf){const _0x237bdd=_0x4cb96a,_0x5de6a5={'iMVfx':function(_0xf0d64a,_0x30065a){return _0xf0d64a!=_0x30065a;},'DBwhm':'com.tencent.multimsg','oSRNE':function(_0x5d4c40,_0x149993){return _0x5d4c40==_0x149993;},'sGBLm':function(_0x5ed6ea,_0x57356a){return _0x5ed6ea==_0x57356a;},'rMCQF':function(_0x1adbb5,_0x297266){return _0x1adbb5(_0x297266);},'DlcxW':function(_0x58c943,_0x32cd00,_0x2be66f){return _0x58c943(_0x32cd00,_0x2be66f);}},_0x3a6f69=_0x55c0bf[_0x237bdd(0xb2)](_0x9fd9fc=>{const _0x4a599e=_0x237bdd;return{'msgId':_0x9fd9fc,'senderShowName':selfInfo[_0x4a599e(0xa0)]};});return new Promise((_0x3ca088,_0x24d4dd)=>{const _0x3d50d2=_0x237bdd,_0x240c9a={'owwgh':function(_0x4913d5,_0x2ccf23){const _0x4ac959=_0xe7e0;return _0x5de6a5[_0x4ac959(0x96)](_0x4913d5,_0x2ccf23);},'hOZzJ':_0x5de6a5[_0x3d50d2(0xc4)],'IiZJQ':function(_0x32d979,_0x4343d8){const _0x532256=_0x3d50d2;return _0x5de6a5[_0x532256(0xc8)](_0x32d979,_0x4343d8);},'JfgyW':function(_0x6ef6bb,_0x44e235){return _0x5de6a5['sGBLm'](_0x6ef6bb,_0x44e235);},'IBYti':function(_0x10aed2,_0x28dcc2){const _0x17ede1=_0x3d50d2;return _0x5de6a5[_0x17ede1(0xb0)](_0x10aed2,_0x28dcc2);}};let _0x5c6cd5=![];const _0x1f78bc=_0x194cee=>{const _0x53a7ec=_0x3d50d2,_0x1f8c03=_0x194cee['elements'][_0x53a7ec(0xc7)](_0x3c6443=>_0x3c6443[_0x53a7ec(0x97)]);if(!_0x1f8c03)return;const _0x4b9aa5=JSON[_0x53a7ec(0xc2)](_0x1f8c03[_0x53a7ec(0x97)]['bytesData']);if(_0x240c9a[_0x53a7ec(0xb3)](_0x4b9aa5['app'],_0x240c9a[_0x53a7ec(0xc0)]))return;_0x240c9a[_0x53a7ec(0x8a)](_0x194cee[_0x53a7ec(0xbc)],_0x5f249c[_0x53a7ec(0xbc)])&&_0x240c9a[_0x53a7ec(0x8e)](_0x194cee[_0x53a7ec(0x95)],selfInfo[_0x53a7ec(0x9f)])&&(_0x5c6cd5=!![],_0x240c9a[_0x53a7ec(0xbb)](_0x3ca088,_0x194cee));};sentMsgTasks[_0x3d50d2(0xac)](randomUUID(),_0x1f78bc),_0x5de6a5[_0x3d50d2(0x8b)](setTimeout,()=>{const _0x4b7725=_0x3d50d2;!_0x5c6cd5&&_0x24d4dd(_0x4b7725(0xbe));},0x1388),napCatCore[_0x3d50d2(0x83)]['getMsgService']()['multiForwardMsgWithComment'](_0x3a6f69,_0x2978fb,_0x5f249c,[],new Map());});}} \ No newline at end of file +const _0x28bbd3=_0x212d;(function(_0x483132,_0x99c5ac){const _0x1a8e83=_0x212d,_0x3b0568=_0x483132();while(!![]){try{const _0xc49d33=-parseInt(_0x1a8e83(0xdb))/0x1+parseInt(_0x1a8e83(0xd1))/0x2*(parseInt(_0x1a8e83(0xb0))/0x3)+-parseInt(_0x1a8e83(0xbd))/0x4+-parseInt(_0x1a8e83(0xb5))/0x5+parseInt(_0x1a8e83(0xd4))/0x6+parseInt(_0x1a8e83(0xda))/0x7*(parseInt(_0x1a8e83(0xc8))/0x8)+parseInt(_0x1a8e83(0xbe))/0x9;if(_0xc49d33===_0x99c5ac)break;else _0x3b0568['push'](_0x3b0568['shift']());}catch(_0x5a68a5){_0x3b0568['push'](_0x3b0568['shift']());}}}(_0x149f,0x1a931));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';function _0x212d(_0x9764f,_0x3aca11){const _0x149f10=_0x149f();return _0x212d=function(_0x212d91,_0x166d17){_0x212d91=_0x212d91-0xae;let _0x48be7a=_0x149f10[_0x212d91];return _0x48be7a;},_0x212d(_0x9764f,_0x3aca11);}function _0x149f(){const _0x2eac9e=['8hXSciI','catch','recallMsg','arkElement','session','JbUeC','nick','getMultiMsg','then','734tHsbkF','setEmojiLike','nQFyZ','752436aDdmsi','peerUid','multiForwardMsgWithComment','onMsgInfoListUpdate','haQGX','aYIoK','1199065WdLLnt','214775IkNzMI','app','XZCke','forwardMsg','getMsgsBySeqAndCount','multiForwardMsg','chatType','length','parse','CaHva','TMLTb','activateChat','uid','sendStatus','发送超时','PBSUe','fetchRecentContact','sendMsg','onLoginSuccess','setMsgRead','delete','set','com.tencent.multimsg','forEach','getMsgHistory','senderUid','1644VYRnZj','PDmNQ','msgId','getMsgService','mCOdg','809020ndwKYf','getMsgsIncludeSelf','dkMay','wOxys','WeBCG','guildId','FQITl','TMvFz','752120dgxpVT','1580769GxwGCS','EiTAd','elements','vrXOe','kVdQa','gXfpP','senzP','sRblR','setMsgEmojiLikes','meVjU'];_0x149f=function(){return _0x2eac9e;};return _0x149f();}import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0xb0c4fd=>{const _0x33630f=_0x212d,_0x397aa9={'nQFyZ':function(_0xc7b1ae,_0x24b0bd){return _0xc7b1ae(_0x24b0bd);}};for(const [_0x14f442,_0x470fd3]of sentMsgTasks){_0x397aa9[_0x33630f(0xd3)](_0x470fd3,_0xb0c4fd),sentMsgTasks[_0x33630f(0xef)](_0x14f442);}if(sendMessagePool[_0xb0c4fd[_0x33630f(0xd5)]]){const _0x2173b5=sendMessagePool[_0xb0c4fd['peerUid']]?.(_0xb0c4fd);_0x2173b5 instanceof Promise&&_0x2173b5[_0x33630f(0xd0)]()['catch'](logError);}},msgListener[_0x28bbd3(0xd7)]=_0x159df2=>{const _0x2ea3c3=_0x28bbd3,_0x474a59={'TMLTb':function(_0x3c6115,_0x81db06){return _0x3c6115(_0x81db06);},'XZCke':function(_0x43e68b,_0x372686){return _0x43e68b instanceof _0x372686;}};_0x159df2[_0x2ea3c3(0xf2)](_0x24fc70=>{const _0x431a0d=_0x2ea3c3;new Promise((_0x155f02,_0x3ba7cd)=>{const _0x3ea821=_0x212d;for(const _0x4737b4 in sendSuccessCBMap){const _0x420bcc=sendSuccessCBMap[_0x4737b4],_0xefc5c9=_0x474a59[_0x3ea821(0xe5)](_0x420bcc,_0x24fc70),_0x5c77a7=_0x4249fe=>{_0x4249fe&&delete sendSuccessCBMap[_0x4737b4];};_0x474a59[_0x3ea821(0xdd)](_0xefc5c9,Promise)?_0xefc5c9[_0x3ea821(0xd0)](_0x5c77a7):_0x474a59[_0x3ea821(0xe5)](_0x5c77a7,_0xefc5c9);}})[_0x431a0d(0xd0)]()[_0x431a0d(0xc9)](log);});},setTimeout(()=>{const _0x390ac5=_0x28bbd3;napCatCore[_0x390ac5(0xed)](()=>{napCatCore['addListener'](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x28bbd3(0xd2)](_0xf4e6fd,_0x1ede77,_0x424312,_0x25560a=!![]){const _0x1ee015=_0x28bbd3,_0x5a0a9b={'vrXOe':function(_0x383e4c,_0x468ea1){return _0x383e4c>_0x468ea1;}};return napCatCore[_0x1ee015(0xcc)][_0x1ee015(0xb3)]()[_0x1ee015(0xc6)](_0xf4e6fd,_0x1ede77,_0x424312,_0x5a0a9b[_0x1ee015(0xc1)](_0x424312[_0x1ee015(0xe2)],0x3)?'2':'1',_0x25560a);}static async[_0x28bbd3(0xcf)](_0x3c75aa,_0x219822,_0x2063f1){const _0x5adeac=_0x28bbd3;return napCatCore['session'][_0x5adeac(0xb3)]()[_0x5adeac(0xcf)](_0x3c75aa,_0x219822,_0x2063f1);}static async['getMsgsByMsgId'](_0x23a0d2,_0x6e9756){const _0xc2fb67=_0x28bbd3;return await napCatCore[_0xc2fb67(0xcc)]['getMsgService']()['getMsgsByMsgId'](_0x23a0d2,_0x6e9756);}static async[_0x28bbd3(0xdf)](_0xade1d7,_0x14f896,_0x55556b,_0x1d635b,_0xd63fc7){const _0x21a7d8=_0x28bbd3;return await napCatCore[_0x21a7d8(0xcc)][_0x21a7d8(0xb3)]()[_0x21a7d8(0xdf)](_0xade1d7,_0x14f896,_0x55556b,_0x1d635b,_0xd63fc7);}static async[_0x28bbd3(0xe6)](_0x250918){}static async['activateChatAndGetHistory'](_0x54b249){}static async[_0x28bbd3(0xee)](_0x3517ec){const _0x3ed889=_0x28bbd3;return napCatCore[_0x3ed889(0xcc)][_0x3ed889(0xb3)]()[_0x3ed889(0xee)](_0x3517ec[_0x3ed889(0xe1)],_0x3517ec[_0x3ed889(0xd5)],_0x3517ec[_0x3ed889(0xba)]);}static async[_0x28bbd3(0xae)](_0x3f556d,_0x3b8020,_0x10aebf){const _0xe3a7c=_0x28bbd3;return napCatCore[_0xe3a7c(0xcc)][_0xe3a7c(0xb3)]()[_0xe3a7c(0xb6)](_0x3f556d,_0x3b8020,_0x10aebf,!![]);}static async[_0x28bbd3(0xeb)](){}static async['recallMsg'](_0x182257,_0x390f0f){const _0x1a0669=_0x28bbd3;await napCatCore[_0x1a0669(0xcc)][_0x1a0669(0xb3)]()[_0x1a0669(0xca)]({'chatType':_0x182257[_0x1a0669(0xe1)],'peerUid':_0x182257[_0x1a0669(0xd5)]},_0x390f0f);}static async[_0x28bbd3(0xec)](_0x28f7af,_0x40ee00,_0x494d4c=!![],_0x3f663e=0x2710){const _0x12b364=_0x28bbd3,_0x260caa={'dkMay':function(_0x438a3c,_0xe1f60){return _0x438a3c>_0xe1f60;},'PDmNQ':function(_0x5ccf97){return _0x5ccf97();},'TMvFz':function(_0x5ea9af,_0x154416){return _0x5ea9af(_0x154416);},'JbUeC':'发送超时','ncuOr':function(_0x1c4cad,_0x1b3f85){return _0x1c4cad===_0x1b3f85;},'gXfpP':function(_0x486d8a,_0x4c6a61){return _0x486d8a===_0x4c6a61;},'meVjU':function(_0x50d0ca,_0x12d073){return _0x50d0ca(_0x12d073);},'sRblR':function(_0x12d6e3){return _0x12d6e3();},'SmJwb':function(_0x39483b,_0xeae124,_0x32986d){return _0x39483b(_0xeae124,_0x32986d);},'wOxys':function(_0x2fcba5){return _0x2fcba5();}},_0x4260ce=_0x28f7af['peerUid'];let _0xe658f1=0x0;const _0x212a40=async()=>{const _0x597424=_0x212d;if(_0x260caa[_0x597424(0xb7)](_0xe658f1,_0x3f663e))throw _0x597424(0xe9);const _0x31e873=sendMessagePool[_0x28f7af['peerUid']];if(_0x31e873)return await sleep(0x1f4),_0xe658f1+=0x1f4,await _0x260caa[_0x597424(0xb1)](_0x212a40);else return;};return await _0x260caa[_0x12b364(0xb8)](_0x212a40),new Promise((_0x3e6297,_0x5a96e8)=>{const _0x15ee37=_0x12b364,_0x19f292={'aYIoK':function(_0x2316e6,_0x2c876a){return _0x260caa['ncuOr'](_0x2316e6,_0x2c876a);},'kVdQa':function(_0xc04a8,_0x9cee2b){const _0x54d2d4=_0x212d;return _0x260caa[_0x54d2d4(0xc3)](_0xc04a8,_0x9cee2b);},'FQITl':function(_0x247c8d,_0x4f8047){const _0x5df39c=_0x212d;return _0x260caa[_0x5df39c(0xc7)](_0x247c8d,_0x4f8047);}};let _0x3d7ee4=![],_0x3a5dc1=null;const _0x2f00b4=_0x260caa[_0x15ee37(0xc5)](randomUUID);sendSuccessCBMap[_0x2f00b4]=_0x4fc860=>{const _0x7529d=_0x15ee37;if(_0x19f292[_0x7529d(0xd9)](_0x4fc860[_0x7529d(0xb2)],_0x3a5dc1?.['msgId'])){if(_0x19f292[_0x7529d(0xc2)](_0x4fc860[_0x7529d(0xe8)],0x2))return delete sendSuccessCBMap[_0x2f00b4],_0x3d7ee4=!![],_0x19f292[_0x7529d(0xbb)](_0x3e6297,_0x4fc860),!![];return![];}return![];},sendMessagePool[_0x4260ce]=async _0x4bf5b9=>{delete sendMessagePool[_0x4260ce],_0x3a5dc1=_0x4bf5b9;},_0x260caa['SmJwb'](setTimeout,()=>{const _0x5d4dfe=_0x15ee37;if(_0x3d7ee4)return;delete sendMessagePool[_0x4260ce],delete sendSuccessCBMap[_0x2f00b4],_0x260caa[_0x5d4dfe(0xbc)](_0x5a96e8,_0x260caa[_0x5d4dfe(0xcd)]);},_0x3f663e);const _0x3bb9fc=napCatCore[_0x15ee37(0xcc)]['getMsgService']()[_0x15ee37(0xec)]('0',_0x28f7af,_0x40ee00,new Map());});}static async[_0x28bbd3(0xde)](_0x2dded1,_0x4ace70,_0x696520){const _0x4dc2ae=_0x28bbd3;return napCatCore[_0x4dc2ae(0xcc)][_0x4dc2ae(0xb3)]()['forwardMsg'](_0x696520,_0x2dded1,[_0x4ace70],new Map());}static async[_0x28bbd3(0xe0)](_0x4b3f63,_0x533ee3,_0x516583){const _0x592d82=_0x28bbd3,_0x1aac72={'EiTAd':function(_0x46f0e5,_0x1a8056){return _0x46f0e5!=_0x1a8056;},'haQGX':_0x592d82(0xf1),'senzP':function(_0x1a2407,_0x56c6c7){return _0x1a2407(_0x56c6c7);},'mCOdg':'转发消息超时','CaHva':function(_0x5d7d73){return _0x5d7d73();}},_0x121736=_0x516583['map'](_0x9277ee=>{const _0x13d79b=_0x592d82;return{'msgId':_0x9277ee,'senderShowName':selfInfo[_0x13d79b(0xce)]};});return new Promise((_0x472269,_0x5e140c)=>{const _0x5ce307=_0x592d82,_0x5b9a51={'PBSUe':function(_0x46bdce,_0x54788a){const _0x17dbcb=_0x212d;return _0x1aac72[_0x17dbcb(0xc4)](_0x46bdce,_0x54788a);},'WeBCG':_0x1aac72[_0x5ce307(0xb4)]};let _0x354b16=![];const _0x369e2b=_0x45484f=>{const _0x25dc88=_0x5ce307,_0x2cb687=_0x45484f[_0x25dc88(0xc0)]['find'](_0x10ee35=>_0x10ee35[_0x25dc88(0xcb)]);if(!_0x2cb687)return;const _0x4a1242=JSON[_0x25dc88(0xe3)](_0x2cb687[_0x25dc88(0xcb)]['bytesData']);if(_0x1aac72[_0x25dc88(0xbf)](_0x4a1242[_0x25dc88(0xdc)],_0x1aac72[_0x25dc88(0xd8)]))return;_0x45484f[_0x25dc88(0xd5)]==_0x533ee3[_0x25dc88(0xd5)]&&_0x45484f[_0x25dc88(0xaf)]==selfInfo[_0x25dc88(0xe7)]&&(_0x354b16=!![],_0x1aac72['senzP'](_0x472269,_0x45484f));};sentMsgTasks[_0x5ce307(0xf0)](_0x1aac72[_0x5ce307(0xe4)](randomUUID),_0x369e2b),setTimeout(()=>{const _0x88e77=_0x5ce307;!_0x354b16&&_0x5b9a51[_0x88e77(0xea)](_0x5e140c,_0x5b9a51[_0x88e77(0xb9)]);},0x1388),napCatCore[_0x5ce307(0xcc)][_0x5ce307(0xb3)]()[_0x5ce307(0xd6)](_0x121736,_0x4b3f63,_0x533ee3,[],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 bbfb1128..23429f93 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -var _0x153bdf=_0x556a;function _0x556a(_0x109642,_0x48d222){var _0x14a8b7=_0x14a8();return _0x556a=function(_0x556ab0,_0x575fa8){_0x556ab0=_0x556ab0-0x13c;var _0x13f490=_0x14a8b7[_0x556ab0];return _0x13f490;},_0x556a(_0x109642,_0x48d222);}(function(_0xddf682,_0x7e9831){var _0x2aa30=_0x556a,_0x4c1d3b=_0xddf682();while(!![]){try{var _0x587b0f=parseInt(_0x2aa30(0x155))/0x1*(parseInt(_0x2aa30(0x14c))/0x2)+parseInt(_0x2aa30(0x14e))/0x3*(parseInt(_0x2aa30(0x14d))/0x4)+-parseInt(_0x2aa30(0x144))/0x5*(-parseInt(_0x2aa30(0x153))/0x6)+parseInt(_0x2aa30(0x14b))/0x7*(parseInt(_0x2aa30(0x149))/0x8)+parseInt(_0x2aa30(0x146))/0x9*(-parseInt(_0x2aa30(0x14f))/0xa)+-parseInt(_0x2aa30(0x151))/0xb*(parseInt(_0x2aa30(0x14a))/0xc)+parseInt(_0x2aa30(0x154))/0xd*(-parseInt(_0x2aa30(0x156))/0xe);if(_0x587b0f===_0x7e9831)break;else _0x4c1d3b['push'](_0x4c1d3b['shift']());}catch(_0xa2c3fe){_0x4c1d3b['push'](_0x4c1d3b['shift']());}}}(_0x14a8,0x23b1c));import{logDebug}from'@/common/utils/log';function _0x14a8(){var _0x19abee=['sign','POST','hlhlo','application/json','1409205qBeFqP','url','9etwoUx','statusText','cnBXR','904EYkekf','12JqwSrA','7371eoaKBU','28ZWOvWr','4rWJcqo','695082pLlXAi','2603540zGeKGY','then','2076657pJhCQs','stringify','6AIkhBe','247kvLMJQ','7166OamwTm','101318vkCTjc','catch','json','音乐消息生成成功','JVHfI'];_0x14a8=function(){return _0x19abee;};return _0x14a8();}export class MusicSign{[_0x153bdf(0x145)];constructor(_0x33dc55){var _0x182cc2=_0x153bdf;this[_0x182cc2(0x145)]=_0x33dc55;}[_0x153bdf(0x140)](_0x23d232){var _0x284fc9=_0x153bdf,_0x543b4c={'hlhlo':function(_0x24b3d1,_0x50d035,_0x45bd73){return _0x24b3d1(_0x50d035,_0x45bd73);},'JVHfI':_0x284fc9(0x13e),'rOEcD':function(_0x383df4,_0x51ece1){return _0x383df4(_0x51ece1);},'HtRHU':_0x284fc9(0x141),'cnBXR':_0x284fc9(0x143)};return new Promise((_0x2edd85,_0x184a5a)=>{var _0x34c5b3=_0x284fc9;_0x543b4c[_0x34c5b3(0x142)](fetch,this['url'],{'method':_0x543b4c['HtRHU'],'headers':{'Content-Type':_0x543b4c[_0x34c5b3(0x148)]},'body':JSON[_0x34c5b3(0x152)](_0x23d232)})[_0x34c5b3(0x150)](_0x1d8922=>{var _0x333b03=_0x34c5b3;return!_0x1d8922['ok']&&_0x184a5a(_0x1d8922[_0x333b03(0x147)]),_0x1d8922[_0x333b03(0x13d)]();})[_0x34c5b3(0x150)](_0x1a4a7c=>{var _0x16636c=_0x34c5b3;_0x543b4c[_0x16636c(0x142)](logDebug,_0x543b4c[_0x16636c(0x13f)],_0x1a4a7c),_0x543b4c['rOEcD'](_0x2edd85,_0x1a4a7c);})[_0x34c5b3(0x13c)](_0x2507c8=>{_0x184a5a(_0x2507c8);});});}} \ No newline at end of file +var _0x4b316c=_0x124e;(function(_0x142daf,_0x17a969){var _0x264f09=_0x124e,_0xf98c35=_0x142daf();while(!![]){try{var _0x4294f8=-parseInt(_0x264f09(0x1a0))/0x1*(-parseInt(_0x264f09(0x19d))/0x2)+-parseInt(_0x264f09(0x199))/0x3*(parseInt(_0x264f09(0x19f))/0x4)+-parseInt(_0x264f09(0x196))/0x5*(parseInt(_0x264f09(0x1a1))/0x6)+parseInt(_0x264f09(0x19a))/0x7+parseInt(_0x264f09(0x18c))/0x8+-parseInt(_0x264f09(0x18e))/0x9+parseInt(_0x264f09(0x1a3))/0xa*(parseInt(_0x264f09(0x18d))/0xb);if(_0x4294f8===_0x17a969)break;else _0xf98c35['push'](_0xf98c35['shift']());}catch(_0x465e29){_0xf98c35['push'](_0xf98c35['shift']());}}}(_0x711e,0x193ee));function _0x711e(){var _0x426072=['779849sYqIDQ','lEXrE','POST','2aLkbDN','evzlx','177308XEVulq','50999WYbeoa','186rVHzrJ','BFJQF','683030svfVxq','fjbmO','sign','643728xWUvzK','22mLWikL','1152198eSfBSA','then','LIweI','catch','rjBlz','json','statusText','url','9580UTzzPx','音乐消息生成成功','aernx','6dTEOaL'];_0x711e=function(){return _0x426072;};return _0x711e();}function _0x124e(_0x2b6e85,_0x3f3a51){var _0x711e46=_0x711e();return _0x124e=function(_0x124ef9,_0x411041){_0x124ef9=_0x124ef9-0x18a;var _0x154929=_0x711e46[_0x124ef9];return _0x154929;},_0x124e(_0x2b6e85,_0x3f3a51);}import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x4b316c(0x195)];constructor(_0x3b29ff){var _0x5f33dc=_0x4b316c;this[_0x5f33dc(0x195)]=_0x3b29ff;}[_0x4b316c(0x18b)](_0x5689a5){var _0xd80b6a=_0x4b316c,_0x31b482={'zMrZV':function(_0x813084,_0x1e8663){return _0x813084(_0x1e8663);},'fjbmO':function(_0x42adbb,_0x58df17){return _0x42adbb(_0x58df17);},'lEXrE':function(_0x3efeb9,_0x15a821,_0x3fcc1c){return _0x3efeb9(_0x15a821,_0x3fcc1c);},'evzlx':_0xd80b6a(0x19c),'BFJQF':'application/json'};return new Promise((_0x85b708,_0x5b260b)=>{var _0x5ed07d=_0xd80b6a,_0x5b56e6={'rjBlz':function(_0x1bce79,_0x4ae4d4,_0x4a634f){return _0x1bce79(_0x4ae4d4,_0x4a634f);},'aernx':_0x5ed07d(0x197),'LIweI':function(_0x3b465a,_0xabce0f){return _0x3b465a(_0xabce0f);}};_0x31b482[_0x5ed07d(0x19b)](fetch,this['url'],{'method':_0x31b482[_0x5ed07d(0x19e)],'headers':{'Content-Type':_0x31b482[_0x5ed07d(0x1a2)]},'body':JSON['stringify'](_0x5689a5)})[_0x5ed07d(0x18f)](_0x162ba9=>{var _0x1db713=_0x5ed07d;return!_0x162ba9['ok']&&_0x31b482['zMrZV'](_0x5b260b,_0x162ba9[_0x1db713(0x194)]),_0x162ba9[_0x1db713(0x193)]();})[_0x5ed07d(0x18f)](_0x4e9acd=>{var _0x32c264=_0x5ed07d;_0x5b56e6[_0x32c264(0x192)](logDebug,_0x5b56e6[_0x32c264(0x198)],_0x4e9acd),_0x5b56e6[_0x32c264(0x190)](_0x85b708,_0x4e9acd);})[_0x5ed07d(0x191)](_0x2ac11b=>{var _0x508277=_0x5ed07d;_0x31b482[_0x508277(0x18a)](_0x5b260b,_0x2ac11b);});});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/user.d.ts b/src/core.lib/src/apis/user.d.ts index 47270d66..abf36b46 100644 --- a/src/core.lib/src/apis/user.d.ts +++ b/src/core.lib/src/apis/user.d.ts @@ -14,7 +14,7 @@ export declare class NTQQUserApi { static getSelfInfo(): Promise; static getUserInfo(uid: string): Promise; static getUserDetailInfo(uid: string): Promise; - static getPSkey(domainList: string[]): Promise; + static getPSkey(domainList: string[]): Promise; static getRobotUinRange(): Promise>; static getSkey(): Promise; } diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index d01ca1c9..95cc3897 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x53a2e4=_0x5677;(function(_0x47a8ae,_0x5dc775){const _0x382f4a=_0x5677,_0x21379f=_0x47a8ae();while(!![]){try{const _0x439f9a=-parseInt(_0x382f4a(0x1bf))/0x1+-parseInt(_0x382f4a(0x199))/0x2+parseInt(_0x382f4a(0x189))/0x3*(-parseInt(_0x382f4a(0x19b))/0x4)+parseInt(_0x382f4a(0x1b6))/0x5+-parseInt(_0x382f4a(0x1ad))/0x6*(-parseInt(_0x382f4a(0x1af))/0x7)+parseInt(_0x382f4a(0x196))/0x8+parseInt(_0x382f4a(0x192))/0x9*(parseInt(_0x382f4a(0x19a))/0xa);if(_0x439f9a===_0x5dc775)break;else _0x21379f['push'](_0x21379f['shift']());}catch(_0x1ab58a){_0x21379f['push'](_0x21379f['shift']());}}}(_0x15b8,0xe793f));function _0x5677(_0x32a158,_0x48fe6e){const _0x15b8b9=_0x15b8();return _0x5677=function(_0x567798,_0x408bb1){_0x567798=_0x567798-0x182;let _0x5dec21=_0x15b8b9[_0x567798];return _0x5dec21;},_0x5677(_0x32a158,_0x48fe6e);}function _0x15b8(){const _0x5e0da1=['UpxGw','QnFGc','HBuCQ','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','getRobotService','session','IqIZH','RvloN','6rufIQH','getProfileLikeService','2034557swmqsw','get','sijwG','eWzjb','getRobotUinRange','uin','setStatus','1695950xfpFnd','getUserDetailInfo','delete','gMEoY','onProfileDetailInfoChanged','getPskey','oQLhM','getTipOffService','keyIndex','1651088HYXaGk','getTicketService','otRgh','response','PwOjR','then','now','fromEntries','468099JcMKHk','forEach','xNetc','DeiVF','onLoginSuccess','Skey','domainPskeyMap','getProfileService','result','2380419ZJptML','robotUinRanges','addListener','DQxSc','7520728fNuuYE','setSelfOnlineStatus','setQQAvatar','2389374IljdUh','90OOTOXy','4INDZzl','getPSkey','clientKey','getMsgService','setBuddyProfileLike','getSelfInfo','getUserDetailInfo\x20timeout','getSkey','CreatTime','gMlRd'];_0x15b8=function(){return _0x5e0da1;};return _0x15b8();}import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{HttpGetCookies}from'../../../common/utils/request';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x53a2e4(0x1ba)]=_0x4c7b42=>{const _0x587130=_0x53a2e4;userInfoCache[_0x4c7b42['uid']]=_0x4c7b42,userDetailHandlers[_0x587130(0x18a)](_0x14f975=>_0x14f975(_0x4c7b42));},setTimeout(()=>{const _0x1b38d0=_0x53a2e4;napCatCore[_0x1b38d0(0x18d)](()=>{const _0x49a0ec=_0x1b38d0;napCatCore[_0x49a0ec(0x194)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x53a2e4(0x197)](_0x133150,_0x26d7bd,_0x5415bb){const _0x51b4a9=_0x53a2e4;return napCatCore[_0x51b4a9(0x1aa)][_0x51b4a9(0x19e)]()[_0x51b4a9(0x1b5)]({'status':_0x133150,'extStatus':_0x26d7bd,'batteryStatus':_0x5415bb});}static async['like'](_0xb21f72,_0x2f1677=0x1){const _0xfc6c0e=_0x53a2e4;return napCatCore[_0xfc6c0e(0x1aa)][_0xfc6c0e(0x1ae)]()[_0xfc6c0e(0x19f)]({'friendUid':_0xb21f72,'sourceId':0x47,'doLikeCount':_0x2f1677,'doLikeTollCount':0x0});}static async[_0x53a2e4(0x198)](_0x446dd8){const _0x520b8b=_0x53a2e4,_0x35d405=napCatCore[_0x520b8b(0x1aa)][_0x520b8b(0x190)]()['setHeader'](_0x446dd8);return{'result':_0x35d405?.[_0x520b8b(0x191)],'errMsg':_0x35d405?.['errMsg']};}static async[_0x53a2e4(0x1a0)](){}static async['getUserInfo'](_0x16406a){}static async[_0x53a2e4(0x1b7)](_0x482c73){const _0x1b5750=_0x53a2e4,_0x5addbc={'UpxGw':function(_0x3851de,_0x8d6068){return _0x3851de(_0x8d6068);},'TmhEn':_0x1b5750(0x1a1),'sijwG':function(_0x1e404e,_0x4dbccd,_0x4ed22a){return _0x1e404e(_0x4dbccd,_0x4ed22a);}},_0x216c9c=napCatCore[_0x1b5750(0x1aa)]['getProfileService']();return new Promise((_0x575f97,_0x2b601c)=>{const _0x3f44f3=_0x1b5750,_0x657aa2={'eWzjb':function(_0x19d0e9,_0x2822f4){return _0x19d0e9===_0x2822f4;},'QnFGc':function(_0x1e3937,_0x18ee34){const _0xd0299b=_0x5677;return _0x5addbc[_0xd0299b(0x1a5)](_0x1e3937,_0x18ee34);}},_0x56c91f=randomUUID();let _0x473886=![];_0x5addbc[_0x3f44f3(0x1b1)](setTimeout,()=>{const _0x5f20c5=_0x3f44f3;!_0x473886&&_0x5addbc[_0x5f20c5(0x1a5)](_0x2b601c,_0x5addbc['TmhEn']);},0x1388),userDetailHandlers['set'](_0x56c91f,_0x4696e8=>{const _0x5ea12e=_0x3f44f3;_0x657aa2[_0x5ea12e(0x1b2)](_0x4696e8['uid'],_0x482c73)&&(_0x473886=!![],userDetailHandlers[_0x5ea12e(0x1b8)](_0x56c91f),_0x657aa2[_0x5ea12e(0x1a6)](_0x575f97,_0x4696e8));}),_0x216c9c['getUserDetailInfoWithBizInfo'](_0x482c73,[0x0])[_0x3f44f3(0x186)](_0x27a5af=>{});});}static async[_0x53a2e4(0x19c)](_0x372a79){const _0x2e4199=_0x53a2e4,_0x1b9d25={'RvloN':function(_0x178727,_0xce08be){return _0x178727===_0xce08be;}},_0x202d27=await napCatCore[_0x2e4199(0x1aa)][_0x2e4199(0x1bd)]()[_0x2e4199(0x1bb)](_0x372a79,!![]);if(_0x1b9d25[_0x2e4199(0x1ac)](_0x202d27[_0x2e4199(0x191)],0x0)){const _0x2cfa90=_0x202d27[_0x2e4199(0x18f)];return Object[_0x2e4199(0x188)](_0x2cfa90);}return{};}static async['getRobotUinRange'](){const _0x4ce5cb=_0x53a2e4,_0x54f18b=await napCatCore[_0x4ce5cb(0x1aa)][_0x4ce5cb(0x1a9)]()[_0x4ce5cb(0x1b3)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x54f18b?.[_0x4ce5cb(0x184)]?.[_0x4ce5cb(0x193)];}static async[_0x53a2e4(0x1a2)](){const _0x447515=_0x53a2e4,_0x1a1291={'UEkdo':function(_0xafb91,_0x15ad49){return _0xafb91==_0x15ad49;},'oQLhM':function(_0x5a84ca,_0x23f06d){return _0x5a84ca>_0x23f06d;},'otRgh':function(_0x18a894,_0x43004e){return _0x18a894*_0x43004e;},'IqIZH':function(_0x43d9f0,_0x2aaea3){return _0x43d9f0+_0x2aaea3;},'gMlRd':function(_0x533fdd,_0x5387a8){return _0x533fdd+_0x5387a8;},'PwOjR':function(_0x13fe80,_0xf59ffc){return _0x13fe80+_0xf59ffc;},'xNetc':function(_0x4eae93,_0x59a433){return _0x4eae93+_0x59a433;},'gMEoY':_0x447515(0x1a8),'DeiVF':'&clientkey=','DQxSc':'&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','HBuCQ':function(_0x294320,_0x2c337e){return _0x294320(_0x2c337e);},'YFgEb':'skey'};try{if(_0x1a1291['UEkdo'](Credentials[_0x447515(0x1a3)],0x0)||_0x1a1291[_0x447515(0x1bc)](Date[_0x447515(0x187)]()-Credentials[_0x447515(0x1a3)],_0x1a1291[_0x447515(0x183)](0x3e8,0xe10))){const _0x4835a3=await napCatCore[_0x447515(0x1aa)][_0x447515(0x182)]()['forceFetchClientKey']('');if(_0x4835a3[_0x447515(0x191)]!==0x0)return'';const _0x94cdce=_0x4835a3[_0x447515(0x19d)],_0x233c3f=_0x4835a3[_0x447515(0x1be)],_0xd76601=_0x1a1291[_0x447515(0x1ab)](_0x1a1291[_0x447515(0x1a4)](_0x1a1291['PwOjR'](_0x1a1291[_0x447515(0x185)](_0x1a1291[_0x447515(0x18b)](_0x1a1291[_0x447515(0x1b9)],selfInfo[_0x447515(0x1b4)]),_0x1a1291[_0x447515(0x18c)]),_0x94cdce),_0x1a1291[_0x447515(0x195)]),_0x233c3f),_0x251d12=await _0x1a1291[_0x447515(0x1a7)](HttpGetCookies,_0xd76601);let _0x3a91b8=_0x251d12[_0x447515(0x1b0)](_0x1a1291['YFgEb']);if(!_0x3a91b8)return'';return Credentials[_0x447515(0x1a3)]=Date[_0x447515(0x187)](),Credentials[_0x447515(0x18e)]=_0x3a91b8,_0x3a91b8;}return Credentials[_0x447515(0x18e)];}catch(_0x119695){}return undefined;}} \ No newline at end of file +const _0x5f9b19=_0x3ea8;(function(_0x12de20,_0x30e93d){const _0x1ce57e=_0x3ea8,_0x45bf63=_0x12de20();while(!![]){try{const _0x1c497d=-parseInt(_0x1ce57e(0x102))/0x1*(parseInt(_0x1ce57e(0x12d))/0x2)+parseInt(_0x1ce57e(0x113))/0x3*(-parseInt(_0x1ce57e(0x12e))/0x4)+-parseInt(_0x1ce57e(0x126))/0x5+-parseInt(_0x1ce57e(0x12a))/0x6+-parseInt(_0x1ce57e(0x13e))/0x7*(-parseInt(_0x1ce57e(0x104))/0x8)+parseInt(_0x1ce57e(0x132))/0x9*(parseInt(_0x1ce57e(0x137))/0xa)+parseInt(_0x1ce57e(0x105))/0xb*(parseInt(_0x1ce57e(0x118))/0xc);if(_0x1c497d===_0x30e93d)break;else _0x45bf63['push'](_0x45bf63['shift']());}catch(_0x5a88d8){_0x45bf63['push'](_0x45bf63['shift']());}}}(_0x4dc8,0x2e522));import{Credentials,selfInfo}from'@/core/data';function _0x3ea8(_0x3320cd,_0x41fde5){const _0x4dc849=_0x4dc8();return _0x3ea8=function(_0x3ea8b8,_0x3336ef){_0x3ea8b8=_0x3ea8b8-0xfd;let _0x59dea4=_0x4dc849[_0x3ea8b8];return _0x59dea4;},_0x3ea8(_0x3320cd,_0x41fde5);}import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';function _0x4dc8(){const _0x54539d=['set','getSkey','forceFetchClientKey','getUserInfo','rXeiX','robotUinRanges','domainPskeyMap','Skey','CreatTime','1551KwOCrR','setQQAvatar','clientKey','dlmOJ','pwSIY','18168okfCJP','XVpsR','&clientkey=','eNxao','like','getPSkey','now','fromEntries','then','getUserDetailInfo','uid','getPskey','onProfileDetailInfoChanged','setHeader','1617930oHWctT','FqPqP','addListener','cjvjc','1708374HipbWv','cGkUC','getSelfInfo','661562MTgBAe','1948FGddsv','session','JHcCV','获取Pskey失败','54dHZVwi','errMsg','xfKuI','getRobotService','getTipOffService','125370VuoVKd','setStatus','get','skey','setSelfOnlineStatus','VZBxV','delete','6867jtNlQW','OUWjC','result','forEach','FVPVZ','fTshp','1qXVevY','keyIndex','1336RcCmWH','8294VVNGBl','getTicketService','getRobotUinRange','getProfileLikeService','getMsgService'];_0x4dc8=function(){return _0x54539d;};return _0x4dc8();}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[_0x5f9b19(0x124)]=_0xa57595=>{const _0x41fe31=_0x5f9b19;userInfoCache[_0xa57595[_0x41fe31(0x122)]]=_0xa57595,userDetailHandlers[_0x41fe31(0xff)](_0x1f446a=>_0x1f446a(_0xa57595));},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x2a9a4e=_0x3ea8;napCatCore[_0x2a9a4e(0x128)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x5f9b19(0x13b)](_0x321946,_0x2161a7,_0xd4dcf1){const _0xb03d09=_0x5f9b19;return napCatCore[_0xb03d09(0x12f)][_0xb03d09(0x109)]()[_0xb03d09(0x138)]({'status':_0x321946,'extStatus':_0x2161a7,'batteryStatus':_0xd4dcf1});}static async[_0x5f9b19(0x11c)](_0x2f331e,_0x33290b=0x1){const _0x17f5dd=_0x5f9b19;return napCatCore[_0x17f5dd(0x12f)][_0x17f5dd(0x108)]()['setBuddyProfileLike']({'friendUid':_0x2f331e,'sourceId':0x47,'doLikeCount':_0x33290b,'doLikeTollCount':0x0});}static async[_0x5f9b19(0x114)](_0x1d4400){const _0x33d851=_0x5f9b19,_0x4dcea1=napCatCore[_0x33d851(0x12f)]['getProfileService']()[_0x33d851(0x125)](_0x1d4400);return{'result':_0x4dcea1?.[_0x33d851(0xfe)],'errMsg':_0x4dcea1?.[_0x33d851(0x133)]};}static async[_0x5f9b19(0x12c)](){}static async[_0x5f9b19(0x10d)](_0x478bd3){}static async[_0x5f9b19(0x121)](_0x3bc191){const _0x2954e2=_0x5f9b19,_0x4107b7={'cjvjc':function(_0x3d540c,_0x1beec8){return _0x3d540c(_0x1beec8);},'dlmOJ':function(_0x2bfd73,_0x162acb){return _0x2bfd73===_0x162acb;},'eNxao':function(_0x530ebc){return _0x530ebc();},'FVPVZ':function(_0x268821,_0x557b80,_0xd2005e){return _0x268821(_0x557b80,_0xd2005e);}},_0x492320=napCatCore[_0x2954e2(0x12f)]['getProfileService']();return new Promise((_0x552b39,_0xfaac85)=>{const _0x217ef3=_0x2954e2,_0x48fddd={'cGkUC':function(_0x67a705,_0x46b7a4){const _0x38ffd0=_0x3ea8;return _0x4107b7[_0x38ffd0(0x116)](_0x67a705,_0x46b7a4);},'VZBxV':function(_0x2af182,_0x51e840){return _0x2af182(_0x51e840);}},_0x4a865c=_0x4107b7[_0x217ef3(0x11b)](randomUUID);let _0x32ba5d=![];_0x4107b7[_0x217ef3(0x100)](setTimeout,()=>{const _0x9c34b=_0x217ef3;!_0x32ba5d&&_0x4107b7[_0x9c34b(0x129)](_0xfaac85,'getUserDetailInfo\x20timeout');},0x1388),userDetailHandlers[_0x217ef3(0x10a)](_0x4a865c,_0xe7b0b2=>{const _0x129e7a=_0x217ef3;_0x48fddd[_0x129e7a(0x12b)](_0xe7b0b2['uid'],_0x3bc191)&&(_0x32ba5d=!![],userDetailHandlers[_0x129e7a(0x13d)](_0x4a865c),_0x48fddd[_0x129e7a(0x13c)](_0x552b39,_0xe7b0b2));}),_0x492320['getUserDetailInfoWithBizInfo'](_0x3bc191,[0x0])[_0x217ef3(0x120)](_0x32a3aa=>{});});}static async[_0x5f9b19(0x11d)](_0x11cd6e){const _0x3a2dcd=_0x5f9b19,_0x367092={'JHcCV':function(_0x5da6b1,_0x2682b2,_0xf135b6){return _0x5da6b1(_0x2682b2,_0xf135b6);}},_0x17df6f=await napCatCore[_0x3a2dcd(0x12f)][_0x3a2dcd(0x136)]()[_0x3a2dcd(0x123)](_0x11cd6e,!![]);if(_0x17df6f[_0x3a2dcd(0xfe)]===0x0){const _0x14a065=_0x17df6f[_0x3a2dcd(0x110)];return Object[_0x3a2dcd(0x11f)](_0x14a065);}else _0x367092[_0x3a2dcd(0x130)](logError,_0x3a2dcd(0x131),_0x17df6f['errMsg']);return{};}static async[_0x5f9b19(0x107)](){const _0x12a4e7=_0x5f9b19,_0x293b6f=await napCatCore[_0x12a4e7(0x12f)][_0x12a4e7(0x135)]()[_0x12a4e7(0x107)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x293b6f?.['response']?.[_0x12a4e7(0x10f)];}static async[_0x5f9b19(0x10b)](){const _0x48c6c=_0x5f9b19,_0x2eb1ca={'OUWjC':function(_0x459288,_0x2bcf14){return _0x459288==_0x2bcf14;},'cedXC':function(_0x264abc,_0x5c11d4){return _0x264abc>_0x5c11d4;},'uEoFG':function(_0x4c0473,_0xd3a7dc){return _0x4c0473*_0xd3a7dc;},'jQHjn':function(_0x386c13,_0x3b52e9){return _0x386c13+_0x3b52e9;},'rXeiX':function(_0x4b508a,_0x43b612){return _0x4b508a+_0x43b612;},'FqPqP':function(_0x1ee144,_0x4ac861){return _0x1ee144+_0x4ac861;},'pwSIY':function(_0x1259c1,_0x3bd8af){return _0x1259c1+_0x3bd8af;},'xfKuI':_0x48c6c(0x11a),'gJwhw':'&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','fTshp':function(_0x4fba08,_0x48b58d){return _0x4fba08(_0x48b58d);},'XVpsR':_0x48c6c(0x13a)};try{if(_0x2eb1ca[_0x48c6c(0xfd)](Credentials[_0x48c6c(0x112)],0x0)||_0x2eb1ca['cedXC'](Date['now']()-Credentials[_0x48c6c(0x112)],_0x2eb1ca['uEoFG'](0x3e8,0xe10))){const _0x2d7ec1=await napCatCore[_0x48c6c(0x12f)][_0x48c6c(0x106)]()[_0x48c6c(0x10c)]('');if(_0x2d7ec1[_0x48c6c(0xfe)]!==0x0)return'';const _0x4cb7b2=_0x2d7ec1[_0x48c6c(0x115)],_0x8e5d81=_0x2d7ec1[_0x48c6c(0x103)],_0x4d1536=_0x2eb1ca['jQHjn'](_0x2eb1ca[_0x48c6c(0x10e)](_0x2eb1ca[_0x48c6c(0x127)](_0x2eb1ca[_0x48c6c(0x117)]('https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=',selfInfo['uin']),_0x2eb1ca[_0x48c6c(0x134)])+_0x4cb7b2,_0x2eb1ca['gJwhw']),_0x8e5d81),_0x487a80=await _0x2eb1ca[_0x48c6c(0x101)](HttpGetCookies,_0x4d1536),_0x3d2fd5=_0x487a80[_0x48c6c(0x139)](_0x2eb1ca[_0x48c6c(0x119)]);if(!_0x3d2fd5)return'';return Credentials[_0x48c6c(0x112)]=Date[_0x48c6c(0x11e)](),Credentials[_0x48c6c(0x111)]=_0x3d2fd5,_0x3d2fd5;}return Credentials[_0x48c6c(0x111)];}catch(_0x3d3b4d){}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 92050bab..0bb92ac7 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -function _0x2e23(){const _0x60b211=['httpDataText','RwikE','POST','14142wqfwGb','&page_limit=20','&qid=','eNQUc','18BYbCPG','GuOCk','okuci','errcode','text','cbjNR','eXbJv','rEBFn','uin','YRyWn','getSkey','XbSiT',';\x20skey=','qid=','eWgBM','dtFoy','DnhQi','ceil','QYonN','GET','count','p_skey=','setGroupNotice','rRhdi','&group_code=','bCJkJ','eSEmF','JDiDP','eOnEk','mMJmh','TgDQU','8153830ylaGtw','1402014ijjAdE','ZyFzY','getGroupMembers','VozXC','KadRQ','11fNSqHG','afMIG','YgJht','QUoAE','length','yyADh','&text=','HEAD','1093616aKAZlS',';\x20uin=o','RisQt','QIrQd','vzall','iIvUO','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','gCyXc','WNTiT','getPSkey','httpDataJson','&page_start=','TuKGx','tQQcm','toString','&bkn=','charCodeAt','1892832lJiamr','genBkn','getGrouptNotice','Wytyt','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','CSpxk','mems','wozYD','WuFtc','nuSiX','ZiEUW','yXbIc','getGroupEssenceMsg','1246WzIRiQ','YDanH','dnCbH','gKqkW','ohpEa','POgny','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','rPjhq','BwqGF','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','application/x-www-form-urlencoded',';\x20p_uin=o','push','json','paIMt','305520pMAEyJ','TZwvK','EeMCS','2061830BuVRlx','kpJvD','qun.qq.com','AjSkr','HgtfF','2HORUiw'];_0x2e23=function(){return _0x60b211;};return _0x2e23();}function _0x2c7b(_0x4cb365,_0x154ee0){const _0x2e23e6=_0x2e23();return _0x2c7b=function(_0x2c7b38,_0xadb781){_0x2c7b38=_0x2c7b38-0x71;let _0x1a3a59=_0x2e23e6[_0x2c7b38];return _0x1a3a59;},_0x2c7b(_0x4cb365,_0x154ee0);}const _0x479c3a=_0x2c7b;(function(_0x5e92c2,_0x54d436){const _0x12cb1b=_0x2c7b,_0x14ba99=_0x5e92c2();while(!![]){try{const _0x157702=-parseInt(_0x12cb1b(0x8d))/0x1*(-parseInt(_0x12cb1b(0xcf))/0x2)+parseInt(_0x12cb1b(0xab))/0x3+parseInt(_0x12cb1b(0xc7))/0x4+-parseInt(_0x12cb1b(0xca))/0x5+parseInt(_0x12cb1b(0xd3))/0x6*(-parseInt(_0x12cb1b(0xb8))/0x7)+-parseInt(_0x12cb1b(0x9a))/0x8*(-parseInt(_0x12cb1b(0xd7))/0x9)+parseInt(_0x12cb1b(0x8c))/0xa*(-parseInt(_0x12cb1b(0x92))/0xb);if(_0x157702===_0x54d436)break;else _0x14ba99['push'](_0x14ba99['shift']());}catch(_0x15a0a9){_0x14ba99['push'](_0x14ba99['shift']());}}}(_0x2e23,0xb38d7));import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';export class WebApi{static async[_0x479c3a(0xb7)](_0x5487bc,_0x3f6b0e){const _0x5470c1=_0x479c3a,_0x3aa50f={'AjSkr':_0x5470c1(0xcc),'QYonN':function(_0x328a1a,_0x3c80a6){return _0x328a1a+_0x3c80a6;},'BwqGF':function(_0x563786,_0x18f016){return _0x563786+_0x18f016;},'VozXC':function(_0x4ebd3c,_0x4f4d28){return _0x4ebd3c+_0x4f4d28;},'eSEmF':_0x5470c1(0x82),'paIMt':';\x20skey=','gCyXc':function(_0x17f3e6,_0x41a6cc){return _0x17f3e6||_0x41a6cc;},'voBGu':_0x5470c1(0xbe),'QUoAE':_0x5470c1(0x85),'dtFoy':_0x5470c1(0xd4),'vbKqj':_0x5470c1(0x80),'vtphM':function(_0x2f8fc3,_0x52b434){return _0x2f8fc3!==_0x52b434;}},_0x39c551=(await NTQQUserApi[_0x5470c1(0xa3)]([_0x3aa50f[_0x5470c1(0xcd)]]))[_0x3aa50f[_0x5470c1(0xcd)]],_0x56681a=await NTQQUserApi[_0x5470c1(0x77)](),_0x379eac=_0x3aa50f['QYonN'](_0x3aa50f['QYonN'](_0x3aa50f[_0x5470c1(0x7f)](_0x3aa50f[_0x5470c1(0xc0)](_0x3aa50f['VozXC'](_0x3aa50f[_0x5470c1(0x87)],_0x39c551),_0x3aa50f[_0x5470c1(0xc6)]),_0x56681a),_0x5470c1(0xc3)),selfInfo[_0x5470c1(0x75)])+_0x5470c1(0x9b)+selfInfo[_0x5470c1(0x75)];if(_0x3aa50f[_0x5470c1(0xa1)](!_0x56681a,!_0x39c551))return undefined;const _0x4342aa=WebApi['genBkn'](_0x56681a);let _0xa0ee70=_0x3aa50f[_0x5470c1(0xc0)](_0x3aa50f[_0x5470c1(0x7f)](_0x3aa50f[_0x5470c1(0x90)](_0x3aa50f['voBGu']+_0x4342aa,_0x3aa50f[_0x5470c1(0x95)])+_0x5487bc,_0x5470c1(0xa5)),_0x3f6b0e)+_0x3aa50f[_0x5470c1(0x7c)],_0x1eb7f2=await WebApi[_0x5470c1(0xa4)](_0xa0ee70,_0x3aa50f['vbKqj'],'',_0x379eac);if(_0x3aa50f['vtphM'](_0x1eb7f2['retcode'],0x0))return undefined;return _0x1eb7f2;}static async[_0x479c3a(0x8f)](_0x2445e8){const _0x24f1a2=_0x479c3a,_0x24b3ab={'KadRQ':'qun.qq.com','QIrQd':function(_0x5c1d7d,_0x588499){return _0x5c1d7d+_0x588499;},'okuci':function(_0x50ff35,_0x1bcf52){return _0x50ff35+_0x1bcf52;},'EeMCS':_0x24f1a2(0x79),'DnhQi':_0x24f1a2(0xc3),'YgJht':function(_0x3f924d,_0x489545){return _0x3f924d||_0x489545;},'dnCbH':function(_0x27e3b3,_0x10181f){return _0x27e3b3+_0x10181f;},'YDanH':_0x24f1a2(0xaf),'iIvUO':_0x24f1a2(0xd2),'ZiEUW':function(_0x3693e2,_0xc1ec4b){return _0x3693e2<=_0xc1ec4b;},'RwikE':function(_0x8c6d8a,_0xfa441e){return _0x8c6d8a+_0xfa441e;},'cbjNR':function(_0x2dc86b,_0x4dd915){return _0x2dc86b+_0x4dd915;},'taajF':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','qPHQu':function(_0x37b5f2,_0x394c37){return _0x37b5f2*_0x394c37;},'yXbIc':function(_0x59b300,_0x22e36d){return _0x59b300*_0x22e36d;},'XbSiT':'&sort=1&gc=','yyADh':'&bkn=','oKBiF':function(_0xbcd5c7,_0x178d8c){return _0xbcd5c7!==_0x178d8c;}},_0x357b28=(await NTQQUserApi[_0x24f1a2(0xa3)]([_0x24f1a2(0xcc)]))[_0x24b3ab[_0x24f1a2(0x91)]],_0x6d1386=await NTQQUserApi['getSkey'](),_0x21dccf=_0x24b3ab[_0x24f1a2(0x9d)](_0x24b3ab[_0x24f1a2(0x9d)](_0x24b3ab['okuci'](_0x24b3ab[_0x24f1a2(0xd9)](_0x24f1a2(0x82),_0x357b28),_0x24b3ab[_0x24f1a2(0xc9)])+_0x6d1386,_0x24b3ab[_0x24f1a2(0x7d)]),selfInfo[_0x24f1a2(0x75)]),_0x5d92ec=new Array();if(_0x24b3ab[_0x24f1a2(0x94)](!_0x6d1386,!_0x357b28))return _0x5d92ec;const _0x585003=WebApi[_0x24f1a2(0xac)](_0x6d1386);let _0x102ab5=[],_0x42fbaa=await WebApi['httpDataJson'](_0x24b3ab[_0x24f1a2(0xba)](_0x24b3ab[_0x24f1a2(0x9d)](_0x24b3ab[_0x24f1a2(0xb9)],_0x2445e8),_0x24f1a2(0xa9))+_0x585003,_0x24b3ab[_0x24f1a2(0x9f)],'',_0x21dccf);if(!_0x42fbaa?.[_0x24f1a2(0x81)]||_0x42fbaa?.['errcode']!==0x0||!_0x42fbaa?.[_0x24f1a2(0xb1)])return[];else for(let _0x23c14d in _0x42fbaa[_0x24f1a2(0xb1)]){_0x5d92ec[_0x24f1a2(0xc4)](_0x42fbaa[_0x24f1a2(0xb1)][_0x23c14d]);}let _0x46838a=Math[_0x24f1a2(0x7e)](_0x42fbaa[_0x24f1a2(0x81)]/0x28);for(let _0x318ec5=0x2;_0x24b3ab[_0x24f1a2(0xb5)](_0x318ec5,_0x46838a);_0x318ec5++){let _0x1387a3=WebApi[_0x24f1a2(0xa4)](_0x24b3ab[_0x24f1a2(0xd1)](_0x24b3ab['cbjNR'](_0x24b3ab[_0x24f1a2(0xba)](_0x24b3ab[_0x24f1a2(0xd1)](_0x24b3ab[_0x24f1a2(0x72)](_0x24b3ab['taajF']+_0x24b3ab['qPHQu'](_0x318ec5-0x1,0x28),'&end='),_0x24b3ab[_0x24f1a2(0xb6)](_0x318ec5,0x28)),_0x24b3ab[_0x24f1a2(0x78)]),_0x2445e8)+_0x24b3ab[_0x24f1a2(0x97)],_0x585003),'POST','',_0x21dccf);_0x102ab5[_0x24f1a2(0xc4)](_0x1387a3);}for(let _0x23b1ff=0x1;_0x24b3ab[_0x24f1a2(0xb5)](_0x23b1ff,_0x46838a);_0x23b1ff++){let _0xce579a=await _0x102ab5[_0x23b1ff];if(!_0xce579a?.['count']||_0x24b3ab['oKBiF'](_0xce579a?.[_0x24f1a2(0xda)],0x0)||!_0xce579a?.['mems'])continue;for(let _0x5d84cc in _0xce579a['mems']){_0x5d92ec['push'](_0xce579a[_0x24f1a2(0xb1)][_0x5d84cc]);}}return _0x5d92ec;}static async[_0x479c3a(0x83)](_0x1a9507,_0x388da9=''){const _0x477591=_0x479c3a,_0x4b3de5={'eXbJv':_0x477591(0xcc),'rPjhq':function(_0x450aec,_0x4ca2a0){return _0x450aec+_0x4ca2a0;},'rEBFn':function(_0x6dbddf,_0x5cdf90){return _0x6dbddf+_0x5cdf90;},'nuSiX':function(_0x57897e,_0x4db4e3){return _0x57897e+_0x4db4e3;},'GuOCk':function(_0x589811,_0x432772){return _0x589811+_0x432772;},'tQQcm':';\x20skey=','gKqkW':_0x477591(0xc3),'BbAoL':function(_0x243c39,_0x22f1d8){return _0x243c39||_0x22f1d8;},'JDiDP':function(_0x16c7e1,_0x4bbbfd){return _0x16c7e1+_0x4bbbfd;},'EOvCH':function(_0x26fa1f,_0x1f5700){return _0x26fa1f+_0x1f5700;},'eWgBM':_0x477591(0x98),'BHQOK':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','AJpvq':_0x477591(0xa0)};let _0x232fc2=(await NTQQUserApi['getPSkey']([_0x477591(0xcc)]))[_0x4b3de5[_0x477591(0x73)]],_0x493629=await NTQQUserApi['getSkey'](),_0x30bb63=_0x4b3de5[_0x477591(0xbf)](_0x4b3de5[_0x477591(0x74)](_0x4b3de5[_0x477591(0xb4)](_0x4b3de5[_0x477591(0xd8)](_0x477591(0x82),_0x232fc2),_0x4b3de5[_0x477591(0xa7)]),_0x493629)+_0x4b3de5[_0x477591(0xbb)],selfInfo[_0x477591(0x75)]),_0x356f17=undefined;if(_0x4b3de5['BbAoL'](!_0x493629,!_0x232fc2))return undefined;let _0x2143e6=WebApi[_0x477591(0xac)](_0x493629),_0xf344b1=_0x4b3de5[_0x477591(0x88)](_0x4b3de5['rEBFn'](_0x4b3de5['EOvCH'](_0x477591(0x7a)+_0x1a9507,_0x477591(0xa9)),_0x2143e6)+_0x4b3de5[_0x477591(0x7b)]+_0x388da9,_0x4b3de5['BHQOK']),_0x44fe8e=_0x4b3de5[_0x477591(0x88)](_0x4b3de5['AJpvq'],_0x2143e6);try{return _0x356f17=await WebApi[_0x477591(0xa4)](_0x44fe8e,_0x477591(0x80),'',_0x30bb63),_0x356f17;}catch(_0x3d3b3e){return undefined;}return undefined;}static async[_0x479c3a(0xad)](_0x5863ea){const _0x7d8a02=_0x479c3a,_0x237668={'CSpxk':_0x7d8a02(0xcc),'RisQt':function(_0x3fc301,_0x50e15f){return _0x3fc301+_0x50e15f;},'POgny':function(_0x1ce3ad,_0x689179){return _0x1ce3ad+_0x689179;},'YRyWn':'p_skey=','eOnEk':_0x7d8a02(0x79),'eNQUc':function(_0x58ea66,_0x2b26f7){return _0x58ea66||_0x2b26f7;},'wozYD':function(_0x36f64e,_0x21708d){return _0x36f64e+_0x21708d;},'TgDQU':function(_0x2e77e8,_0x520a1e){return _0x2e77e8+_0x520a1e;},'Wytyt':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','TZwvK':_0x7d8a02(0xd5),'ZyFzY':_0x7d8a02(0xc1),'rRhdi':_0x7d8a02(0x80),'ohpEa':function(_0x30a2c4,_0xf646f3){return _0x30a2c4!==_0xf646f3;}};let _0x2d1304=(await NTQQUserApi['getPSkey']([_0x237668[_0x7d8a02(0xb0)]]))[_0x237668[_0x7d8a02(0xb0)]],_0x2598c3=await NTQQUserApi[_0x7d8a02(0x77)](),_0x4e945d=_0x237668[_0x7d8a02(0x9c)](_0x237668['RisQt'](_0x237668[_0x7d8a02(0xbd)](_0x237668[_0x7d8a02(0xbd)](_0x237668[_0x7d8a02(0x76)],_0x2d1304)+_0x237668[_0x7d8a02(0x89)],_0x2598c3),_0x7d8a02(0xc3)),selfInfo[_0x7d8a02(0x75)]),_0x3d0aa8=undefined;if(_0x237668[_0x7d8a02(0xd6)](!_0x2598c3,!_0x2d1304))return undefined;let _0xc020f8=WebApi['genBkn'](_0x2598c3),_0x3a105d=_0x237668[_0x7d8a02(0xb2)](_0x237668[_0x7d8a02(0x8b)](_0x237668[_0x7d8a02(0xae)],_0xc020f8),_0x237668[_0x7d8a02(0xc8)])+_0x5863ea+_0x237668[_0x7d8a02(0x8e)];try{_0x3d0aa8=await WebApi[_0x7d8a02(0xa4)](_0x3a105d,_0x237668[_0x7d8a02(0x84)],'',_0x4e945d);if(_0x237668[_0x7d8a02(0xbc)](_0x3d0aa8?.['ec'],0x0))return undefined;return _0x3d0aa8;}catch(_0x5c9bda){return undefined;}return undefined;}static async[_0x479c3a(0xd0)](_0x1c2885='',_0x261007='GET',_0x40a361='',_0x385c33=''){const _0x2072fc=_0x479c3a,_0x1fe31d={'WuFtc':function(_0x2a8b7d,_0x54dcfa){return _0x2a8b7d===_0x54dcfa;},'vzall':_0x2072fc(0x80),'cTfoQ':_0x2072fc(0x99),'afMIG':function(_0x28a7d9,_0x576c2c,_0x22fd63){return _0x28a7d9(_0x576c2c,_0x22fd63);},'TuKGx':_0x2072fc(0xc2),'pztAE':function(_0x3d4cea,_0x134bbd){return _0x3d4cea(_0x134bbd);}};let _0x5a3ecc='';return new Promise(async(_0x2ace4f,_0x5a2125)=>{const _0x34873f=_0x2072fc;try{let _0x10fc99=undefined;_0x1fe31d[_0x34873f(0xb3)](_0x261007,_0x1fe31d[_0x34873f(0x9e)])||_0x261007===_0x1fe31d['cTfoQ']?_0x10fc99=await fetch(_0x1c2885,{'method':_0x261007,'headers':{'Content-Type':_0x34873f(0xc2),'Cookie':_0x385c33}}):_0x10fc99=await _0x1fe31d[_0x34873f(0x93)](fetch,_0x1c2885,{'method':_0x261007,'headers':{'Content-Type':_0x1fe31d[_0x34873f(0xa6)],'Cookie':_0x385c33},'body':_0x40a361});if(_0x10fc99['ok'])_0x5a3ecc=await _0x10fc99[_0x34873f(0x71)]();else{}}catch(_0x5d3e25){}_0x1fe31d['pztAE'](_0x2ace4f,_0x5a3ecc);});}static async[_0x479c3a(0xa4)](_0x170b47='',_0x185848='GET',_0x1bdbbb='',_0x16d7c8=''){const _0x67383b={'bCJkJ':function(_0x3bd945,_0x3bea7f){return _0x3bd945===_0x3bea7f;},'mYfXm':function(_0x458f94,_0x4740fd,_0x148e5f){return _0x458f94(_0x4740fd,_0x148e5f);},'kpJvD':'application/x-www-form-urlencoded','mMJmh':function(_0xea214a,_0x139549){return _0xea214a(_0x139549);}};let _0x38ef03=undefined;return new Promise(async(_0x53964b,_0x24e54c)=>{const _0xa4b88d=_0x2c7b;try{let _0x56a0d4=undefined;_0x67383b[_0xa4b88d(0x86)](_0x185848,_0xa4b88d(0x80))||_0x67383b[_0xa4b88d(0x86)](_0x185848,'HEAD')?_0x56a0d4=await fetch(_0x170b47,{'method':_0x185848,'headers':{'Content-Type':_0xa4b88d(0xc2),'Cookie':_0x16d7c8}}):_0x56a0d4=await _0x67383b['mYfXm'](fetch,_0x170b47,{'method':_0x185848,'headers':{'Content-Type':_0x67383b[_0xa4b88d(0xcb)],'Cookie':_0x16d7c8},'body':_0x1bdbbb});if(_0x56a0d4['ok'])_0x38ef03=await _0x56a0d4[_0xa4b88d(0xc5)]();else{}}catch(_0x53cd38){}_0x67383b[_0xa4b88d(0x8a)](_0x53964b,_0x38ef03);});}static[_0x479c3a(0xac)](_0x1a8034){const _0x213eb3=_0x479c3a,_0x49a923={'WNTiT':function(_0x10f768,_0x15a820){return _0x10f768||_0x15a820;},'HgtfF':function(_0x5d6c6c,_0x525781){return _0x5d6c6c<_0x525781;},'vfxkg':function(_0x4464d0,_0x204baa){return _0x4464d0+_0x204baa;}};_0x1a8034=_0x49a923[_0x213eb3(0xa2)](_0x1a8034,'');let _0x33bd99=0x1505;for(let _0x378548=0x0;_0x49a923[_0x213eb3(0xce)](_0x378548,_0x1a8034[_0x213eb3(0x96)]);_0x378548++){const _0x4fca8e=_0x1a8034[_0x213eb3(0xaa)](_0x378548);_0x33bd99=_0x49a923['vfxkg'](_0x33bd99,_0x33bd99<<0x5)+_0x4fca8e;}return(_0x33bd99&0x7fffffff)[_0x213eb3(0xa8)]();}} \ No newline at end of file +function _0x88bc(){const _0x5e35c4=['3678057sogvAD','8534920RbgAmp','Qgqfj','genBkn','zMXbb','getPSkey','hAjWO','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','UftsO','rZrUL','VrZDc','4572380KNjCHg','ygWNq','toString','&end=','20354syXsnt','CaAzS','MwjOf','ZndEE','yUyIR','aTlWu','&qid=','Mmrji','lqBij','VdqWz','gMoNm','MGZub','IFFag','p_skey=','18yKJZgK','length','ALKJd','aJBlG','14358212PnVuVm','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','getSkey','retcode','errcode','mJhdX','bbZFp','mKvoz','9mSkXQF','HnODE',';\x20p_uin=o','257970XgCTnO','GET','&page_limit=20','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','Zkspp','yoAAy','801944ZBwJCL','application/x-www-form-urlencoded','CWSel','rJiJO','NrsMv','CLRgg','fVUoj','CkTxA','qun.qq.com','QiPdM','getGroupEssenceMsg','lzxRz','nJlLW','spRlB','admmr','POST','AuyDj','uin','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','oJcVu','nmqgy','7tWWZpq','KXRDQ','charCodeAt','HSteZ','getGrouptNotice','NFWTa','ceTJd','71cNcTTy','gppSC','fkBHO','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','wOqBt',';\x20uin=o','HEAD','aTlcr','httpDataJson','HVJQV','mems','qFbYM','FrgsD','felNN','text','PBHaR','whPmQ','SRcSD','XjeJn','push','&bkn=','json','sZDaI','setGroupNotice','qid=','&sort=1&gc=','httpDataText',';\x20skey=','HbzxE','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','eJylr','WQHaI','count','iBfrc','UOcHl','ceil'];_0x88bc=function(){return _0x5e35c4;};return _0x88bc();}const _0x587db2=_0x5d56;function _0x5d56(_0x4353db,_0x3c088a){const _0x88bc78=_0x88bc();return _0x5d56=function(_0x5d5638,_0x2dbd5d){_0x5d5638=_0x5d5638-0x1d5;let _0x50ddad=_0x88bc78[_0x5d5638];return _0x50ddad;},_0x5d56(_0x4353db,_0x3c088a);}(function(_0x3d2938,_0x3bc5ef){const _0x36061b=_0x5d56,_0x425f41=_0x3d2938();while(!![]){try{const _0x43eddc=-parseInt(_0x36061b(0x1f8))/0x1*(parseInt(_0x36061b(0x22b))/0x2)+parseInt(_0x36061b(0x21c))/0x3+parseInt(_0x36061b(0x1dc))/0x4+-parseInt(_0x36061b(0x1d6))/0x5*(parseInt(_0x36061b(0x239))/0x6)+-parseInt(_0x36061b(0x1f1))/0x7*(-parseInt(_0x36061b(0x21d))/0x8)+parseInt(_0x36061b(0x245))/0x9*(parseInt(_0x36061b(0x227))/0xa)+-parseInt(_0x36061b(0x23d))/0xb;if(_0x43eddc===_0x3bc5ef)break;else _0x425f41['push'](_0x425f41['shift']());}catch(_0x2d9d80){_0x425f41['push'](_0x425f41['shift']());}}}(_0x88bc,0xbb7df));import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';export class WebApi{static async[_0x587db2(0x1e6)](_0x472150,_0x490216){const _0x2eb030=_0x587db2,_0xec25c={'aTlWu':'qun.qq.com','aTlcr':function(_0x5ad906,_0x5b3ce0){return _0x5ad906+_0x5b3ce0;},'WQHaI':function(_0x36adb7,_0x3a0383){return _0x36adb7+_0x3a0383;},'bbZFp':function(_0x3274e7,_0x5417d3){return _0x3274e7+_0x5417d3;},'yUyIR':function(_0x31b14b,_0xac16f4){return _0x31b14b+_0xac16f4;},'SRcSD':_0x2eb030(0x213),'ZndEE':';\x20p_uin=o','UftsO':_0x2eb030(0x1fd),'PhCca':function(_0x3c0f85,_0x30d1c1){return _0x3c0f85||_0x30d1c1;},'KXRDQ':function(_0xb2beb1,_0x4c13f4){return _0xb2beb1+_0x4c13f4;},'UOcHl':function(_0x10a11d,_0x2c9d4a){return _0x10a11d+_0x2c9d4a;},'dUafE':_0x2eb030(0x215),'ygWNq':'&group_code=','VrZDc':'&page_start=','VdqWz':_0x2eb030(0x1d8),'aJhKw':_0x2eb030(0x1d7)},_0x572a54=(await NTQQUserApi[_0x2eb030(0x221)]([_0xec25c[_0x2eb030(0x230)]]))[_0x2eb030(0x1e4)],_0x177925=await NTQQUserApi['getSkey'](),_0x20acd5=_0xec25c[_0x2eb030(0x1ff)](_0xec25c[_0x2eb030(0x1ff)](_0xec25c[_0x2eb030(0x217)](_0xec25c[_0x2eb030(0x243)](_0xec25c[_0x2eb030(0x22f)]('p_skey=',_0x572a54)+_0xec25c[_0x2eb030(0x209)],_0x177925),_0xec25c[_0x2eb030(0x22e)])+selfInfo['uin'],_0xec25c[_0x2eb030(0x224)]),selfInfo[_0x2eb030(0x1ed)]);if(_0xec25c['PhCca'](!_0x177925,!_0x572a54))return undefined;const _0x2c098f=WebApi[_0x2eb030(0x21f)](_0x177925),_0x1e532a=_0xec25c['aTlcr'](_0xec25c[_0x2eb030(0x1ff)](_0xec25c[_0x2eb030(0x1f2)](_0xec25c[_0x2eb030(0x21a)](_0xec25c['dUafE']+_0x2c098f,_0xec25c[_0x2eb030(0x228)]),_0x472150)+_0xec25c[_0x2eb030(0x226)],_0x490216),_0xec25c[_0x2eb030(0x234)]),_0x2c3ae1=await WebApi[_0x2eb030(0x200)](_0x1e532a,_0xec25c['aJhKw'],'',_0x20acd5);if(_0x2c3ae1[_0x2eb030(0x240)]!==0x0)return undefined;return _0x2c3ae1;}static async['getGroupMembers'](_0x5547f3){const _0x285676=_0x587db2,_0x31749c={'soKqs':'qun.qq.com','mKvoz':function(_0x2f99ee,_0x311d24){return _0x2f99ee+_0x311d24;},'GwzNZ':function(_0x4f96ae,_0x39d38b){return _0x4f96ae+_0x39d38b;},'gppSC':_0x285676(0x238),'Zkspp':_0x285676(0x213),'qFbYM':_0x285676(0x1d5),'CkTxA':function(_0xa53e63,_0x28582a){return _0xa53e63||_0x28582a;},'MGZub':function(_0x5a66dc,_0x3fc456){return _0x5a66dc+_0x3fc456;},'mJhdX':function(_0x3637dd,_0x485f0c){return _0x3637dd+_0x485f0c;},'Uscqw':_0x285676(0x1d9),'IFFag':_0x285676(0x1eb),'Yewqg':function(_0x374e6c,_0x81a1f2){return _0x374e6c<=_0x81a1f2;},'fVUoj':function(_0x1ced7b,_0x3a3aed){return _0x1ced7b+_0x3a3aed;},'MwjOf':function(_0x186465,_0x1e5c37){return _0x186465+_0x1e5c37;},'eJylr':function(_0x56d205,_0x1ac78c){return _0x56d205+_0x1ac78c;},'BsQBw':function(_0x1380c6,_0x4ac6ce){return _0x1380c6+_0x4ac6ce;},'oJcVu':_0x285676(0x23e),'CWSel':function(_0x2da041,_0x744daa){return _0x2da041*_0x744daa;},'yoAAy':_0x285676(0x22a),'Qgqfj':_0x285676(0x211),'nJlLW':function(_0x434a74,_0x2d2213){return _0x434a74<=_0x2d2213;},'admmr':function(_0x3addba,_0x8f783b){return _0x3addba!==_0x8f783b;}},_0x85c3be=(await NTQQUserApi[_0x285676(0x221)](['qun.qq.com']))[_0x31749c['soKqs']],_0x49225c=await NTQQUserApi[_0x285676(0x23f)](),_0xc30952=_0x31749c[_0x285676(0x244)](_0x31749c[_0x285676(0x244)](_0x31749c['GwzNZ'](_0x31749c[_0x285676(0x1f9)]+_0x85c3be,_0x31749c[_0x285676(0x1da)]),_0x49225c)+_0x31749c[_0x285676(0x203)],selfInfo['uin']),_0x15f891=new Array();if(_0x31749c[_0x285676(0x1e3)](!_0x49225c,!_0x85c3be))return _0x15f891;const _0x418c2a=WebApi[_0x285676(0x21f)](_0x49225c),_0x19f029=[],_0x215702=await WebApi['httpDataJson'](_0x31749c[_0x285676(0x236)](_0x31749c['mJhdX'](_0x31749c[_0x285676(0x242)](_0x31749c['Uscqw'],_0x5547f3),_0x285676(0x20c)),_0x418c2a),_0x31749c[_0x285676(0x237)],'',_0xc30952);if(!_0x215702?.[_0x285676(0x218)]||_0x215702?.[_0x285676(0x241)]!==0x0||!_0x215702?.[_0x285676(0x202)])return[];else for(const _0x5a0348 in _0x215702[_0x285676(0x202)]){_0x15f891[_0x285676(0x20b)](_0x215702[_0x285676(0x202)][_0x5a0348]);}const _0x31d4b2=Math[_0x285676(0x21b)](_0x215702[_0x285676(0x218)]/0x28);for(let _0x449adf=0x2;_0x31749c['Yewqg'](_0x449adf,_0x31d4b2);_0x449adf++){const _0x5cfb10=WebApi[_0x285676(0x200)](_0x31749c[_0x285676(0x1e2)](_0x31749c['MGZub'](_0x31749c[_0x285676(0x242)](_0x31749c[_0x285676(0x22d)](_0x31749c[_0x285676(0x22d)](_0x31749c[_0x285676(0x216)](_0x31749c['BsQBw'](_0x31749c[_0x285676(0x1ef)],_0x31749c['CWSel'](_0x449adf-0x1,0x28)),_0x31749c[_0x285676(0x1db)]),_0x31749c[_0x285676(0x1de)](_0x449adf,0x28)),_0x31749c[_0x285676(0x21e)]),_0x5547f3),_0x285676(0x20c)),_0x418c2a),_0x31749c[_0x285676(0x237)],'',_0xc30952);_0x19f029[_0x285676(0x20b)](_0x5cfb10);}for(let _0x4d954b=0x1;_0x31749c[_0x285676(0x1e8)](_0x4d954b,_0x31d4b2);_0x4d954b++){const _0x42e205=await _0x19f029[_0x4d954b];if(!_0x42e205?.['count']||_0x31749c[_0x285676(0x1ea)](_0x42e205?.[_0x285676(0x241)],0x0)||!_0x42e205?.[_0x285676(0x202)])continue;for(const _0x5cfef7 in _0x42e205[_0x285676(0x202)]){_0x15f891['push'](_0x42e205[_0x285676(0x202)][_0x5cfef7]);}}return _0x15f891;}static async[_0x587db2(0x20f)](_0x58d8fa,_0x1d5d93=''){const _0x3f46cd=_0x587db2,_0x305a23={'CaAzS':'qun.qq.com','HSteZ':function(_0x3c6d77,_0x18bce7){return _0x3c6d77+_0x18bce7;},'AuyDj':function(_0x50e508,_0x5ded6c){return _0x50e508+_0x5ded6c;},'wOqBt':'p_skey=','sHnzh':_0x3f46cd(0x213),'nyMWM':_0x3f46cd(0x1d5),'HnODE':function(_0x5e4a3f,_0x3a8384){return _0x5e4a3f||_0x3a8384;},'spRlB':function(_0xa9f99b,_0x124683){return _0xa9f99b+_0x124683;},'ceTJd':_0x3f46cd(0x210),'lqBij':_0x3f46cd(0x20c),'HVJQV':'&text=','zMXbb':function(_0x21079d,_0x4a8660){return _0x21079d+_0x4a8660;},'sZDaI':_0x3f46cd(0x223),'fkBHO':_0x3f46cd(0x1d7)},_0x2ee801=(await NTQQUserApi[_0x3f46cd(0x221)]([_0x3f46cd(0x1e4)]))[_0x305a23[_0x3f46cd(0x22c)]],_0xd0fa83=await NTQQUserApi[_0x3f46cd(0x23f)](),_0xfdd3f0=_0x305a23[_0x3f46cd(0x1f4)](_0x305a23[_0x3f46cd(0x1f4)](_0x305a23[_0x3f46cd(0x1ec)](_0x305a23[_0x3f46cd(0x1fc)]+_0x2ee801,_0x305a23['sHnzh']),_0xd0fa83),_0x305a23['nyMWM'])+selfInfo[_0x3f46cd(0x1ed)];let _0x100ff2=undefined;if(_0x305a23[_0x3f46cd(0x246)](!_0xd0fa83,!_0x2ee801))return undefined;const _0x1b8cc5=WebApi['genBkn'](_0xd0fa83),_0x5171fc=_0x305a23[_0x3f46cd(0x1ec)](_0x305a23[_0x3f46cd(0x1ec)](_0x305a23[_0x3f46cd(0x1ec)](_0x305a23[_0x3f46cd(0x1e9)](_0x305a23[_0x3f46cd(0x1f4)](_0x305a23[_0x3f46cd(0x1f7)],_0x58d8fa),_0x305a23[_0x3f46cd(0x233)]),_0x1b8cc5),_0x305a23[_0x3f46cd(0x201)]),_0x1d5d93)+_0x3f46cd(0x1ee),_0x4a206e=_0x305a23[_0x3f46cd(0x220)](_0x305a23[_0x3f46cd(0x20e)],_0x1b8cc5);try{return _0x100ff2=await WebApi[_0x3f46cd(0x200)](_0x4a206e,_0x305a23[_0x3f46cd(0x1fa)],'',_0xfdd3f0),_0x100ff2;}catch(_0x1237d0){return undefined;}return undefined;}static async[_0x587db2(0x1f5)](_0x2b2620){const _0x56f875=_0x587db2,_0x22ffc4={'hAjWO':_0x56f875(0x1e4),'ALKJd':function(_0x49ab6,_0x60a16d){return _0x49ab6+_0x60a16d;},'NFWTa':function(_0xd5320a,_0x53b8b9){return _0xd5320a+_0x53b8b9;},'uqMZf':_0x56f875(0x238),'CLRgg':_0x56f875(0x1d5),'NrsMv':function(_0x26bd8b,_0x16a81a){return _0x26bd8b||_0x16a81a;},'rZrUL':function(_0x1d33a3,_0x327ee0){return _0x1d33a3+_0x327ee0;},'iBfrc':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','VJHNV':_0x56f875(0x231),'HbzxE':_0x56f875(0x1fb),'aJBlG':_0x56f875(0x1d7)},_0x5d415c=(await NTQQUserApi['getPSkey']([_0x22ffc4[_0x56f875(0x222)]]))['qun.qq.com'],_0x4854ff=await NTQQUserApi['getSkey'](),_0x585615=_0x22ffc4['ALKJd'](_0x22ffc4[_0x56f875(0x1f6)](_0x22ffc4[_0x56f875(0x23b)](_0x22ffc4['uqMZf'],_0x5d415c),_0x56f875(0x213))+_0x4854ff+_0x22ffc4[_0x56f875(0x1e1)],selfInfo['uin']);let _0x4bff2b=undefined;if(_0x22ffc4[_0x56f875(0x1e0)](!_0x4854ff,!_0x5d415c))return undefined;const _0x36e717=WebApi[_0x56f875(0x21f)](_0x4854ff),_0x20a83b=_0x22ffc4['NFWTa'](_0x22ffc4['rZrUL'](_0x22ffc4[_0x56f875(0x225)](_0x22ffc4[_0x56f875(0x219)]+_0x36e717,_0x22ffc4['VJHNV']),_0x2b2620),_0x22ffc4[_0x56f875(0x214)]);try{_0x4bff2b=await WebApi[_0x56f875(0x200)](_0x20a83b,_0x22ffc4[_0x56f875(0x23c)],'',_0x585615);if(_0x4bff2b?.['ec']!==0x0)return undefined;return _0x4bff2b;}catch(_0x5de2b3){return undefined;}return undefined;}static async[_0x587db2(0x212)](_0x3a26ee='',_0x2b86ac='GET',_0x3deee4='',_0x58129b=''){const _0x5277f6=_0x587db2,_0x3605a0={'gMoNm':function(_0x300215,_0x1c0684){return _0x300215===_0x1c0684;},'jPOAU':_0x5277f6(0x1d7),'JAHKc':function(_0x10c5c2,_0x332147){return _0x10c5c2===_0x332147;},'felNN':_0x5277f6(0x1fe),'KIszm':function(_0x15e42d,_0x3a277b,_0x366fe0){return _0x15e42d(_0x3a277b,_0x366fe0);},'rJiJO':_0x5277f6(0x1dd),'bCTGB':function(_0xa6f8d5,_0x4059bf){return _0xa6f8d5(_0x4059bf);}};let _0x30fbba='';return new Promise(async(_0x10deba,_0x42ab6f)=>{const _0x4d53b3=_0x5277f6;try{let _0xd1b64a=undefined;_0x3605a0[_0x4d53b3(0x235)](_0x2b86ac,_0x3605a0['jPOAU'])||_0x3605a0['JAHKc'](_0x2b86ac,_0x3605a0[_0x4d53b3(0x205)])?_0xd1b64a=await fetch(_0x3a26ee,{'method':_0x2b86ac,'headers':{'Content-Type':_0x4d53b3(0x1dd),'Cookie':_0x58129b}}):_0xd1b64a=await _0x3605a0['KIszm'](fetch,_0x3a26ee,{'method':_0x2b86ac,'headers':{'Content-Type':_0x3605a0[_0x4d53b3(0x1df)],'Cookie':_0x58129b},'body':_0x3deee4});if(_0xd1b64a['ok'])_0x30fbba=await _0xd1b64a[_0x4d53b3(0x206)]();else{}}catch(_0x2da3c2){}_0x3605a0['bCTGB'](_0x10deba,_0x30fbba);});}static async['httpDataJson'](_0x1e25d2='',_0x145f9d='GET',_0x4f8520='',_0x24d1d3=''){const _0x5c2548=_0x587db2,_0x3f645b={'lzxRz':function(_0x3de68c,_0x12f261){return _0x3de68c===_0x12f261;},'PBHaR':_0x5c2548(0x1d7),'QiPdM':_0x5c2548(0x1fe),'whPmQ':function(_0x368e52,_0x202d36,_0x53ffa7){return _0x368e52(_0x202d36,_0x53ffa7);},'FrgsD':'application/x-www-form-urlencoded','IFvnp':function(_0x4a3a06,_0x37ec95){return _0x4a3a06(_0x37ec95);}};let _0x229b37=undefined;return new Promise(async(_0x42349c,_0x54639a)=>{const _0x299be0=_0x5c2548;try{let _0x375620=undefined;_0x3f645b[_0x299be0(0x1e7)](_0x145f9d,_0x3f645b[_0x299be0(0x207)])||_0x3f645b[_0x299be0(0x1e7)](_0x145f9d,_0x3f645b[_0x299be0(0x1e5)])?_0x375620=await _0x3f645b[_0x299be0(0x208)](fetch,_0x1e25d2,{'method':_0x145f9d,'headers':{'Content-Type':_0x3f645b['FrgsD'],'Cookie':_0x24d1d3}}):_0x375620=await fetch(_0x1e25d2,{'method':_0x145f9d,'headers':{'Content-Type':_0x3f645b[_0x299be0(0x204)],'Cookie':_0x24d1d3},'body':_0x4f8520});if(_0x375620['ok'])_0x229b37=await _0x375620[_0x299be0(0x20d)]();else{}}catch(_0x13a8ed){}_0x3f645b['IFvnp'](_0x42349c,_0x229b37);});}static[_0x587db2(0x21f)](_0x19f640){const _0x117074=_0x587db2,_0x49c83c={'nmqgy':function(_0x2fb33b,_0x21ff20){return _0x2fb33b||_0x21ff20;},'XjeJn':function(_0x40b9d7,_0x2225d2){return _0x40b9d7<_0x2225d2;},'WqNdE':function(_0x81e892,_0x410884){return _0x81e892+_0x410884;},'ZZrFR':function(_0x43be25,_0xbe5c66){return _0x43be25<<_0xbe5c66;},'Mmrji':function(_0x46953e,_0x4c2cd5){return _0x46953e&_0x4c2cd5;}};_0x19f640=_0x49c83c[_0x117074(0x1f0)](_0x19f640,'');let _0x8dd4b0=0x1505;for(let _0x26d1e2=0x0;_0x49c83c[_0x117074(0x20a)](_0x26d1e2,_0x19f640[_0x117074(0x23a)]);_0x26d1e2++){const _0x156f23=_0x19f640[_0x117074(0x1f3)](_0x26d1e2);_0x8dd4b0=_0x49c83c['WqNdE'](_0x49c83c['WqNdE'](_0x8dd4b0,_0x49c83c['ZZrFR'](_0x8dd4b0,0x5)),_0x156f23);}return _0x49c83c[_0x117074(0x232)](_0x8dd4b0,0x7fffffff)[_0x117074(0x229)]();}} \ No newline at end of file diff --git a/src/core.lib/src/apis/window.js b/src/core.lib/src/apis/window.js index b7e57e51..7a7e8615 100644 --- a/src/core.lib/src/apis/window.js +++ b/src/core.lib/src/apis/window.js @@ -1 +1 @@ -var _0x3a785e=_0xec23;(function(_0x53bd7f,_0x3de617){var _0x480673=_0xec23,_0x11a8c9=_0x53bd7f();while(!![]){try{var _0x2d1d65=parseInt(_0x480673(0x16e))/0x1*(parseInt(_0x480673(0x158))/0x2)+-parseInt(_0x480673(0x179))/0x3*(parseInt(_0x480673(0x189))/0x4)+parseInt(_0x480673(0x17c))/0x5+-parseInt(_0x480673(0x17d))/0x6+parseInt(_0x480673(0x16d))/0x7*(-parseInt(_0x480673(0x175))/0x8)+parseInt(_0x480673(0x182))/0x9+parseInt(_0x480673(0x15a))/0xa;if(_0x2d1d65===_0x3de617)break;else _0x11a8c9['push'](_0x11a8c9['shift']());}catch(_0x5c5e35){_0x11a8c9['push'](_0x11a8c9['shift']());}}}(_0x586f,0xea3cf));var _0x46abb0=_0x502b;(function(_0x55f2a6,_0x4587ab){var _0x5c90f7=_0xec23,_0x3c8c11={'mXiyC':function(_0x5cb12a){return _0x5cb12a();},'ZqqJp':function(_0x1b7ecf,_0x59f6d4){return _0x1b7ecf+_0x59f6d4;},'mOPTs':function(_0x29ff5e,_0x6f8f3){return _0x29ff5e+_0x6f8f3;},'PpXJM':function(_0x2e7213,_0x1b45c4){return _0x2e7213+_0x1b45c4;},'cyvNM':function(_0x2ce965,_0x16deb9){return _0x2ce965/_0x16deb9;},'SeOqC':function(_0x2e9c89,_0x4209c0){return _0x2e9c89*_0x4209c0;},'hxffF':function(_0x6638cd,_0xcc9e7b){return _0x6638cd(_0xcc9e7b);},'LbAlE':function(_0x4179be,_0x29eee0){return _0x4179be(_0x29eee0);},'IYuxk':function(_0x4d591f,_0xa314ec){return _0x4d591f/_0xa314ec;},'Jmegu':function(_0x5cda03,_0x27182b){return _0x5cda03(_0x27182b);},'sZaNj':function(_0x34e71d,_0x5e07ce){return _0x34e71d(_0x5e07ce);},'hfTtG':function(_0x5295b2,_0x319c05){return _0x5295b2/_0x319c05;},'MFICa':function(_0x1179cf,_0x3de7d3){return _0x1179cf/_0x3de7d3;},'EzcmA':function(_0xa329d8,_0x2f7046){return _0xa329d8/_0x2f7046;},'aEQhs':function(_0x53880a,_0x3c3617){return _0x53880a(_0x3c3617);},'TJpiV':function(_0x171f21,_0x178254){return _0x171f21(_0x178254);},'Keian':function(_0x52e94d,_0x4464be){return _0x52e94d/_0x4464be;},'YEPFS':function(_0x65993d,_0x59a87c){return _0x65993d===_0x59a87c;},'GzgAE':_0x5c90f7(0x172)},_0xcc5c94=_0x502b,_0x26a9de=_0x3c8c11[_0x5c90f7(0x170)](_0x55f2a6);while(!![]){try{var _0x42fbfb=_0x3c8c11[_0x5c90f7(0x153)](_0x3c8c11[_0x5c90f7(0x153)](_0x3c8c11[_0x5c90f7(0x153)](_0x3c8c11[_0x5c90f7(0x153)](_0x3c8c11[_0x5c90f7(0x164)](_0x3c8c11[_0x5c90f7(0x152)](_0x3c8c11[_0x5c90f7(0x185)](parseInt(_0xcc5c94(0x81)),0x1),_0x3c8c11[_0x5c90f7(0x16a)](_0x3c8c11[_0x5c90f7(0x185)](-_0x3c8c11[_0x5c90f7(0x156)](parseInt,_0x3c8c11[_0x5c90f7(0x162)](_0xcc5c94,0x75)),0x2),_0x3c8c11['IYuxk'](_0x3c8c11[_0x5c90f7(0x17f)](parseInt,_0x3c8c11['sZaNj'](_0xcc5c94,0x83)),0x3))),_0x3c8c11[_0x5c90f7(0x157)](-_0x3c8c11[_0x5c90f7(0x17f)](parseInt,_0xcc5c94(0x80)),0x4)),_0x3c8c11[_0x5c90f7(0x157)](-_0x3c8c11[_0x5c90f7(0x156)](parseInt,_0xcc5c94(0x78)),0x5)),_0x3c8c11[_0x5c90f7(0x16a)](_0x3c8c11[_0x5c90f7(0x185)](-_0x3c8c11[_0x5c90f7(0x169)](parseInt,_0xcc5c94(0x7d)),0x6),_0x3c8c11[_0x5c90f7(0x15c)](_0x3c8c11[_0x5c90f7(0x169)](parseInt,_0xcc5c94(0x79)),0x7))),_0x3c8c11[_0x5c90f7(0x15b)](_0x3c8c11['aEQhs'](parseInt,_0x3c8c11['TJpiV'](_0xcc5c94,0x7e)),0x8)),_0x3c8c11[_0x5c90f7(0x16a)](_0x3c8c11[_0x5c90f7(0x157)](_0x3c8c11[_0x5c90f7(0x169)](parseInt,_0x3c8c11[_0x5c90f7(0x162)](_0xcc5c94,0x77)),0x9),_0x3c8c11[_0x5c90f7(0x154)](parseInt(_0x3c8c11[_0x5c90f7(0x169)](_0xcc5c94,0x7f)),0xa)));if(_0x3c8c11[_0x5c90f7(0x174)](_0x42fbfb,_0x4587ab))break;else _0x26a9de['push'](_0x26a9de[_0x3c8c11[_0x5c90f7(0x163)]]());}catch(_0x24eedf){_0x26a9de[_0x5c90f7(0x161)](_0x26a9de[_0x3c8c11[_0x5c90f7(0x163)]]());}}}(_0x207e,0x874c8));function _0xec23(_0x58949c,_0x48fbce){var _0x586f7a=_0x586f();return _0xec23=function(_0xec2383,_0x4910f0){_0xec2383=_0xec2383-0x151;var _0x14f30d=_0x586f7a[_0xec2383];return _0x14f30d;},_0xec23(_0x58949c,_0x48fbce);}export class NTQQWindows{static ['GroupHomeWorkWindow']={'windowName':_0x3a785e(0x16b),'windowUrlHash':_0x46abb0(0x7c)};static [_0x46abb0(0x7a)]={'windowName':_0x3a785e(0x151),'windowUrlHash':_0x46abb0(0x7b)};static [_0x3a785e(0x15d)]={'windowName':_0x46abb0(0x82),'windowUrlHash':_0x46abb0(0x76)};}function _0x502b(_0x17907a,_0x411202){var _0x3f5ccb=_0x3a785e,_0x1d9a31={'pleDE':function(_0x253b20,_0x642edf){return _0x253b20-_0x642edf;},'LVkOQ':function(_0x18a78e){return _0x18a78e();},'ccOWO':function(_0xdaa286,_0x26b1d3,_0x565f5a){return _0xdaa286(_0x26b1d3,_0x565f5a);}},_0x3c24e1=_0x1d9a31[_0x3f5ccb(0x159)](_0x207e);return _0x502b=function(_0x3fbbbe,_0x9ae2d8){var _0x5e6763=_0x3f5ccb;_0x3fbbbe=_0x1d9a31[_0x5e6763(0x16f)](_0x3fbbbe,0x75);var _0xbfe52e=_0x3c24e1[_0x3fbbbe];return _0xbfe52e;},_0x1d9a31[_0x3f5ccb(0x166)](_0x502b,_0x17907a,_0x411202);}function _0x207e(){var _0x5dabdf=_0x3a785e,_0x19c767={'MPTxb':_0x5dabdf(0x15e),'ZTlLy':_0x5dabdf(0x151),'IrfeH':_0x5dabdf(0x165),'Holzq':_0x5dabdf(0x181),'IQGEr':'320934RniygA','mxtdv':_0x5dabdf(0x176),'eLOWw':'190OnGUBS','azVsE':_0x5dabdf(0x160),'oGjTG':_0x5dabdf(0x15f),'gwDkl':'196743kqmlyE','fxhLN':_0x5dabdf(0x173),'JcCwE':_0x5dabdf(0x186),'dujNL':_0x5dabdf(0x16c),'YHpRR':_0x5dabdf(0x155),'EJPnl':function(_0x1a795a){return _0x1a795a();}},_0x34938c=[_0x19c767[_0x5dabdf(0x178)],_0x19c767[_0x5dabdf(0x167)],_0x19c767[_0x5dabdf(0x17b)],_0x19c767[_0x5dabdf(0x188)],_0x19c767[_0x5dabdf(0x17e)],_0x19c767[_0x5dabdf(0x184)],_0x19c767[_0x5dabdf(0x171)],_0x19c767['azVsE'],_0x19c767[_0x5dabdf(0x168)],_0x5dabdf(0x15d),_0x19c767[_0x5dabdf(0x187)],_0x19c767[_0x5dabdf(0x177)],_0x19c767[_0x5dabdf(0x17a)],_0x19c767[_0x5dabdf(0x180)],_0x19c767[_0x5dabdf(0x18a)]];return _0x207e=function(){return _0x34938c;},_0x19c767[_0x5dabdf(0x183)](_0x207e);}function _0x586f(){var _0x3b48b9=['8972094BmtwkU','IQGEr','Jmegu','dujNL','#/group-home-work','14559759FVoksr','EJPnl','mxtdv','cyvNM','#/group-essence','gwDkl','Holzq','28xJooIp','YHpRR','GroupNotifyFilterWindow','PpXJM','ZqqJp','Keian','1141470dQduNl','hxffF','hfTtG','2374XXeqxQ','LVkOQ','8096280sGCCwn','EzcmA','MFICa','GroupEssenceWindow','77HOBIWb','318629hCyoUw','1245952qwucxb','push','LbAlE','GzgAE','mOPTs','#/group-notify-filter','ccOWO','ZTlLy','oGjTG','sZaNj','SeOqC','GroupHomeWorkWindow','675999ZZagbh','119fdcbbS','1138vCgEGK','pleDE','mXiyC','eLOWw','shift','28eFvzGQ','YEPFS','107704XPvske','6837928tHkGlb','fxhLN','MPTxb','752901PueHfK','JcCwE','IrfeH','3311215pDPMVa'];_0x586f=function(){return _0x3b48b9;};return _0x586f();}export class NTQQWindowApi{} \ No newline at end of file +var _0x1fbda7=_0x4751;(function(_0x35131c,_0x3ddf20){var _0x1d3aff=_0x4751,_0x4da9e6=_0x35131c();while(!![]){try{var _0x9b3564=parseInt(_0x1d3aff(0x188))/0x1+-parseInt(_0x1d3aff(0x17b))/0x2+parseInt(_0x1d3aff(0x182))/0x3*(parseInt(_0x1d3aff(0x193))/0x4)+parseInt(_0x1d3aff(0x169))/0x5+-parseInt(_0x1d3aff(0x185))/0x6+-parseInt(_0x1d3aff(0x17e))/0x7+-parseInt(_0x1d3aff(0x18c))/0x8*(-parseInt(_0x1d3aff(0x17f))/0x9);if(_0x9b3564===_0x3ddf20)break;else _0x4da9e6['push'](_0x4da9e6['shift']());}catch(_0x3c73f7){_0x4da9e6['push'](_0x4da9e6['shift']());}}}(_0x1497,0x4a6a6));var _0x29772f=_0x518d;function _0x1497(){var _0x40ddae=['DghCf','1924448aTHrxP','rZHxA','WSpsb','GroupHomeWorkWindow','1604575CQCLtm','push','VhaYr','302679gOofau','jzTbz','HelLT','SbAwZ','KNZzX','#/group-essence','259068vxmIDj','qwdWZ','HVagw','#/group-notify-filter','qsbGT','PhqIZ','GroupEssenceWindow','XQDRF','VDrCL','843886NXiJgz','sMsJh','lWdhw','1183476BcRKMc','5146497MANAoP','svGZt','pDaWw','3vcnYdJ','rgzsM','wQbub','3515052jqqgaw','152LifwQv','GMJrx','107799LYwbhJ','210066xBzhCx','AgrtZ','jRuth','8vljtYI','ekzCp','shift','702UPMOpA','Qtukt','1093275pghbSO'];_0x1497=function(){return _0x40ddae;};return _0x1497();}function _0x518d(_0x3f4d96,_0x10a3d0){var _0x2961ca=_0x4751,_0x10bf76={'DghCf':function(_0x415092,_0x459c39){return _0x415092-_0x459c39;},'ipPNf':function(_0x23155b){return _0x23155b();},'rgzsM':function(_0x598cef,_0xb3f82,_0x57c5b4){return _0x598cef(_0xb3f82,_0x57c5b4);}},_0x1a4f61=_0x10bf76['ipPNf'](_0x3977);return _0x518d=function(_0x305c71,_0x42d25b){var _0x1232fd=_0x4751;_0x305c71=_0x10bf76[_0x1232fd(0x192)](_0x305c71,0x1c5);var _0x2e0275=_0x1a4f61[_0x305c71];return _0x2e0275;},_0x10bf76[_0x2961ca(0x183)](_0x518d,_0x3f4d96,_0x10a3d0);}(function(_0x4e778b,_0x41c19b){var _0x2b148b=_0x4751,_0x41db70={'SbAwZ':function(_0x2d0067){return _0x2d0067();},'HelLT':function(_0x3a7bd3,_0x221c4e){return _0x3a7bd3+_0x221c4e;},'DNDFd':function(_0x76ec50,_0x2509df){return _0x76ec50+_0x2509df;},'OGnYf':function(_0x5bc1c4,_0x52bc7a){return _0x5bc1c4+_0x52bc7a;},'jRuth':function(_0x8fe016,_0x503a08){return _0x8fe016/_0x503a08;},'GMJrx':function(_0x59649d,_0x140e3e){return _0x59649d(_0x140e3e);},'lWdhw':function(_0x16316f,_0x506f05){return _0x16316f(_0x506f05);},'wQbub':function(_0x50eace,_0x1344c0){return _0x50eace/_0x1344c0;},'KNZzX':function(_0xc095a6,_0x4a7226){return _0xc095a6/_0x4a7226;},'AgrtZ':function(_0x5a31cc,_0x181b86){return _0x5a31cc/_0x181b86;},'HVagw':function(_0x24907e,_0x262470){return _0x24907e(_0x262470);},'rZHxA':function(_0x37346e,_0x17423d){return _0x37346e(_0x17423d);},'VhaYr':function(_0x6b10f2,_0x1f9946){return _0x6b10f2/_0x1f9946;},'Qtukt':function(_0x2df7d0,_0x2911eb){return _0x2df7d0*_0x2911eb;},'sZVRO':function(_0x394782,_0x2e6a32){return _0x394782(_0x2e6a32);},'qsbGT':function(_0x49f496,_0xe0566f){return _0x49f496(_0xe0566f);},'sMsJh':_0x2b148b(0x16a),'XQDRF':_0x2b148b(0x18e)},_0x53525e=_0x518d,_0x2d9818=_0x41db70[_0x2b148b(0x16f)](_0x4e778b);while(!![]){try{var _0x19782d=_0x41db70[_0x2b148b(0x16e)](_0x41db70[_0x2b148b(0x16e)](_0x41db70[_0x2b148b(0x16e)](_0x41db70['DNDFd'](_0x41db70['OGnYf'](_0x41db70[_0x2b148b(0x18b)](-parseInt(_0x41db70[_0x2b148b(0x187)](_0x53525e,0x1cb)),0x1),_0x41db70[_0x2b148b(0x18b)](_0x41db70[_0x2b148b(0x187)](parseInt,_0x41db70[_0x2b148b(0x17d)](_0x53525e,0x1cd)),0x2)),_0x41db70[_0x2b148b(0x184)](_0x41db70[_0x2b148b(0x187)](parseInt,_0x53525e(0x1d2)),0x3)),_0x41db70[_0x2b148b(0x170)](parseInt(_0x53525e(0x1d1)),0x4))+_0x41db70[_0x2b148b(0x18a)](parseInt(_0x41db70[_0x2b148b(0x187)](_0x53525e,0x1ca)),0x5)*(_0x41db70[_0x2b148b(0x174)](parseInt,_0x41db70[_0x2b148b(0x194)](_0x53525e,0x1c9))/0x6),_0x41db70[_0x2b148b(0x16b)](-_0x41db70[_0x2b148b(0x17d)](parseInt,_0x53525e(0x1d0)),0x7)),_0x41db70[_0x2b148b(0x190)](_0x41db70['sZVRO'](parseInt,_0x41db70['GMJrx'](_0x53525e,0x1c8))/0x8,_0x41db70[_0x2b148b(0x170)](_0x41db70[_0x2b148b(0x176)](parseInt,_0x41db70[_0x2b148b(0x187)](_0x53525e,0x1cc)),0x9)));if(_0x19782d===_0x41c19b)break;else _0x2d9818[_0x41db70[_0x2b148b(0x17c)]](_0x2d9818['shift']());}catch(_0x43f7e2){_0x2d9818[_0x2b148b(0x16a)](_0x2d9818[_0x41db70[_0x2b148b(0x179)]]());}}}(_0x3977,0x72377));function _0x3977(){var _0xc3fcc3=_0x4751,_0x60d2d0={'pDaWw':_0xc3fcc3(0x18f),'MJeaO':_0xc3fcc3(0x189),'qwdWZ':_0xc3fcc3(0x172),'ekzCp':'GroupNotifyFilterWindow','jzTbz':_0xc3fcc3(0x175),'PhqIZ':'409592unsVOZ','VDrCL':_0xc3fcc3(0x191),'WSpsb':_0xc3fcc3(0x178),'svGZt':_0xc3fcc3(0x186)},_0x2c0b2a=[_0x60d2d0[_0xc3fcc3(0x181)],'3955QSBcMD',_0x60d2d0['MJeaO'],_0xc3fcc3(0x16c),_0x60d2d0[_0xc3fcc3(0x173)],_0x60d2d0[_0xc3fcc3(0x18d)],_0x60d2d0[_0xc3fcc3(0x16d)],'4549972jjYsDH',_0x60d2d0[_0xc3fcc3(0x177)],_0x60d2d0[_0xc3fcc3(0x17a)],_0x60d2d0[_0xc3fcc3(0x195)],'GroupHomeWorkWindow','#/group-home-work',_0x60d2d0[_0xc3fcc3(0x180)]];return _0x3977=function(){return _0x2c0b2a;},_0x3977();}export class NTQQWindows{static [_0x1fbda7(0x196)]={'windowName':_0x29772f(0x1c6),'windowUrlHash':_0x29772f(0x1c7)};static [_0x29772f(0x1ce)]={'windowName':_0x29772f(0x1ce),'windowUrlHash':_0x29772f(0x1cf)};static [_0x29772f(0x1c5)]={'windowName':_0x29772f(0x1c5),'windowUrlHash':_0x1fbda7(0x171)};}function _0x4751(_0x3aef84,_0xccc4cd){var _0x149748=_0x1497();return _0x4751=function(_0x475149,_0x545c02){_0x475149=_0x475149-0x169;var _0x79684d=_0x149748[_0x475149];return _0x79684d;},_0x4751(_0x3aef84,_0xccc4cd);}export class NTQQWindowApi{} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index f468df07..c4137ee4 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x5b5dcd=_0xa7db;(function(_0x1a1f7d,_0x6f0171){const _0x15b320=_0xa7db,_0x173d9d=_0x1a1f7d();while(!![]){try{const _0x549d61=parseInt(_0x15b320(0x1e6))/0x1*(parseInt(_0x15b320(0x248))/0x2)+parseInt(_0x15b320(0x205))/0x3*(parseInt(_0x15b320(0x213))/0x4)+-parseInt(_0x15b320(0x220))/0x5+parseInt(_0x15b320(0x20c))/0x6*(parseInt(_0x15b320(0x1e0))/0x7)+-parseInt(_0x15b320(0x217))/0x8+parseInt(_0x15b320(0x1eb))/0x9*(-parseInt(_0x15b320(0x1f6))/0xa)+parseInt(_0x15b320(0x25f))/0xb*(parseInt(_0x15b320(0x1ee))/0xc);if(_0x549d61===_0x6f0171)break;else _0x173d9d['push'](_0x173d9d['shift']());}catch(_0x36f944){_0x173d9d['push'](_0x173d9d['shift']());}}}(_0x32ce,0xbcde5));import _0x395b45 from'@/core/wrapper';function _0xa7db(_0x230117,_0x2adf98){const _0x32ce68=_0x32ce();return _0xa7db=function(_0xa7dba0,_0x833d1c){_0xa7dba0=_0xa7dba0-0x1b9;let _0x1f8750=_0x32ce68[_0xa7dba0];return _0x1f8750;},_0xa7db(_0x230117,_0x2adf98);}import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x295624 from'node:path';import _0x1d0565 from'node:os';import _0x4cbe12 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';function _0x32ce(){const _0x3062fe=['clientType','hex','getMsgService','_GW_B','快速登录失败\x20','./nt_qq/global','faOde','addKernelLoginListener','pngBase64QrcodeData','dataPath','BuddyListener','快速登录不可用','UhqDT','8751925ekwzgQ','getNextMemberList','getLoginList','iDROC','getMsgByLongId','curVersion','628hgEusD','initSession','getProfileService','-v2.db','msgId','7629183lTxnHk','FGCZa','rgMBC','10337172KKXYxU','uid',')已登录,无法重复登录','数据库初始化失败','startNT','addListener','\x20has\x20no\x20method\x20','Seesv','10FsfKvq','uSSQi','wlUMF','catch','tipsDesc','GroupListener','iUBvz','md5','V1_WIN_NQ_','EWHeC','assign','getBuddyService','tipsTitle','sOaCN','NodeIKernelLoginService','9aUPbTX','iuTvo','addKernelGroupListener','onQRCodeLoginSucceed','consoleLog','onKickedOffLine','onMemberInfoChange','6byNTDs','iODSQ','fileLogLevel','forEach','xSNxz','undefined','ProfileListener','1504588EtgzRF','Hefxd','fOpqu','onMemberListChange','4449304yUtEuU','initDataListener','result','UBzpQ','createHash','createMemberListScene','errMsg','loginListener','onMsgInfoListUpdate','5344860WLgWUK','get','tyjZL','KcSPT','update','UCHvt','dbGur','zNYTU','getNTUserDataInfoConfig','OXoBP','FkhAw','NodeIKernelLoginListener','initConfig','resolve','yXDjw','NodeIQQNTWrapperSession','本账号数据/缓存目录:','onLoginFailed','qrcodeUrl','onLoginSuccessFuncList','vNrKe','dataPathGlobal','set','groupCode','登录失败','digest','HkTpr','addKernelBuddyListener','has','util','fileLog','./.config/QQ','\x20)\x20在线状态变更','[KickedOffLine]\x20[','getGroupService','NodeIGlobalAdapter','loginService','zOfHY','当前账号(','DCale','20vXCxlI','homedir','map','xkuQL','NodeIQQNTWrapperEngine','onLoginSuccess','split','passwordLogin','Windows\x2010\x20Pro','onUserLoggedIn','onGroupListUpdate','devUid','proxyHandler','LocalLoginInfoList','engine','没有可快速登录的QQ号','constructor','账号设备(\x20','onQRCodeSessionFailed','onQRCodeGetPicture','quickLogin','uin','dSIsz','11QHssUw','recallTime','kqixx','NodeIKernelMsgListener','then','data:image/png;base64,','addMsg','NodeIDependsAdapter','onBuddyListChange','push','consoleLogLevel','NodeIKernelBuddyListener','read','initSession\x20failed','NodeIKernelProfileListener','init','addKernelMsgListener','session','MWozP','onProfileDetailInfoChanged','NmpIS','YKaIU','name','sceneId','qrLogin','pZdUe','BWlAJ','onSessionInitComplete','NodeIDispatcherAdapter','infos','MsgListener','NodeQQNTWrapperUtil','buddyList'];_0x32ce=function(){return _0x3062fe;};return _0x32ce();}import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x2da1b7 from'node:crypto';import{friends,groupMembers,groups,selfInfo,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'];[_0x5b5dcd(0x23d)];[_0x5b5dcd(0x256)];['loginService'];[_0x5b5dcd(0x21e)];['onLoginSuccessFuncList']=[];[_0x5b5dcd(0x254)]={'get'(target,prop,receiver){const _0x14bf23=_0x5b5dcd,mLeIng={'OXoBP':function(callee,param1){return callee(param1);},'BWlAJ':function(x,y){return x===y;},'UhqDT':_0x14bf23(0x211)};if(mLeIng[_0x14bf23(0x1cc)](typeof target[prop],mLeIng[_0x14bf23(0x1df)]))return(...args)=>{const _0x4723b2=_0x14bf23;mLeIng[_0x4723b2(0x229)](logDebug,target['constructor'][_0x4723b2(0x1c8)]+_0x4723b2(0x1f4)+prop);};return Reflect[_0x14bf23(0x221)](target,prop,receiver);}};constructor(){const _0x5effc3=_0x5b5dcd,_0x47e124={'zNYTU':function(_0x105a2e,_0x247d88){return _0x105a2e(_0x247d88);},'FkhAw':function(_0xed5280,_0x130a7c){return _0xed5280+_0x130a7c;},'RrKRI':_0x5effc3(0x246),'YKaIU':_0x5effc3(0x1f0),'faOde':function(_0x319cde,_0x52867b){return _0x319cde instanceof _0x52867b;},'iDROC':function(_0x33485f,_0x5cc190,_0x4051c3){return _0x33485f(_0x5cc190,_0x4051c3);},'UCnUm':function(_0x3a8569,_0x4be9ca){return _0x3a8569(_0x4be9ca);},'MWozP':'./NapCat/data','HkTpr':function(_0x253992,_0x489d1d,_0xfa5949){return _0x253992(_0x489d1d,_0xfa5949);},'UBzpQ':function(_0x1ab350,_0x3312ee,_0x5b61b9){return _0x1ab350(_0x3312ee,_0x5b61b9);},'vLwcd':_0x5effc3(0x1bf),'PjdaS':_0x5effc3(0x1f1),'wrFQu':_0x5effc3(0x238)};this['engine']=new _0x395b45[(_0x5effc3(0x24c))](),this['util']=new _0x395b45[(_0x5effc3(0x1d1))](),this[_0x5effc3(0x244)]=new _0x395b45[(_0x5effc3(0x204))](),this[_0x5effc3(0x1c3)]=new _0x395b45[(_0x5effc3(0x22f))](),this['loginListener']=new LoginListener(),this[_0x5effc3(0x21e)][_0x5effc3(0x251)]=_0xccd926=>{const _0x520ffa=_0x5effc3;_0x47e124['zNYTU'](logError,_0x47e124[_0x520ffa(0x22a)](_0x47e124[_0x520ffa(0x22a)](_0x47e124['RrKRI'],_0xccd926),_0x47e124[_0x520ffa(0x1c7)]));},this[_0x5effc3(0x21e)][_0x5effc3(0x208)]=_0xe8be52=>{const _0xd97c0d=_0x5effc3,_0x42e2c1={'xSNxz':_0x47e124['PjdaS']};this['initSession'](_0xe8be52[_0xd97c0d(0x25d)],_0xe8be52[_0xd97c0d(0x1ef)])[_0xd97c0d(0x263)](_0x39809e=>{const _0x5954dd=_0xd97c0d,_0x3773ed={'Seesv':function(_0x1d1948,_0x4192e4){const _0x1ac32b=_0xa7db;return _0x47e124[_0x1ac32b(0x1d9)](_0x1d1948,_0x4192e4);}};selfInfo[_0x5954dd(0x25d)]=_0xe8be52[_0x5954dd(0x25d)],selfInfo[_0x5954dd(0x1ef)]=_0xe8be52['uid'],napCatConfig[_0x5954dd(0x1be)](),_0x47e124[_0x5954dd(0x1e3)](setLogLevel,napCatConfig[_0x5954dd(0x20e)],napCatConfig[_0x5954dd(0x1bc)]),_0x47e124['UCnUm'](enableFileLog,napCatConfig[_0x5954dd(0x23e)]),enableConsoleLog(napCatConfig[_0x5954dd(0x209)]),_0x47e124[_0x5954dd(0x227)](setLogSelfInfo,selfInfo);const _0x85c1f5=_0x295624[_0x5954dd(0x22d)](this['dataPath'],_0x47e124[_0x5954dd(0x1c4)]);_0x4cbe12['mkdirSync'](_0x85c1f5,{'recursive':!![]}),_0x47e124[_0x5954dd(0x23a)](logDebug,_0x5954dd(0x230),_0x85c1f5),dbUtil[_0x5954dd(0x1c1)](_0x295624[_0x5954dd(0x22d)](_0x85c1f5,'./'+_0xe8be52[_0x5954dd(0x25d)]+_0x5954dd(0x1e9)))['then'](()=>{const _0x237304=_0x5954dd,_0x3cbb06={'iuTvo':function(_0x23a1d4,_0x40d49c){const _0x106e82=_0xa7db;return _0x3773ed[_0x106e82(0x1f5)](_0x23a1d4,_0x40d49c);}};this[_0x237304(0x218)](),this[_0x237304(0x233)][_0x237304(0x24a)](_0xbcf813=>{const _0x2828b0=_0x237304;new Promise((_0x63e48b,_0x3e5926)=>{const _0x426651=_0xa7db,_0x2bb2d9=_0xbcf813(_0xe8be52[_0x426651(0x25d)],_0xe8be52['uid']);_0x3cbb06[_0x426651(0x206)](_0x2bb2d9,Promise)&&_0x2bb2d9[_0x426651(0x263)](_0x63e48b)['catch'](_0x3e5926);})[_0x2828b0(0x263)]();});})['catch'](_0x203b55=>{const _0x15f287=_0x5954dd;logError(_0x42e2c1[_0x15f287(0x210)],_0x203b55);});})[_0xd97c0d(0x1f9)](_0x3cc953=>{const _0x59015d=_0xd97c0d;_0x47e124[_0x59015d(0x21a)](logError,_0x47e124['vLwcd'],_0x3cc953);throw new Error('启动失败:\x20'+JSON['stringify'](_0x3cc953));});},this[_0x5effc3(0x21e)][_0x5effc3(0x25a)]=_0x3bcf01=>{logError(_0x47e124['wrFQu'],_0x3bcf01);},this[_0x5effc3(0x21e)][_0x5effc3(0x231)]=_0x1a4e23=>{logError(_0x47e124['wrFQu'],_0x1a4e23);},this[_0x5effc3(0x21e)]=new Proxy(this[_0x5effc3(0x21e)],this[_0x5effc3(0x254)]),this['loginService'][_0x5effc3(0x1da)](new _0x395b45[(_0x5effc3(0x22b))](this[_0x5effc3(0x21e)])),this[_0x5effc3(0x22c)]();}get[_0x5b5dcd(0x1dc)](){const _0x78731a=_0x5b5dcd,_0x3611ca={'reEyK':_0x78731a(0x23f)};let _0x380422=this[_0x78731a(0x23d)][_0x78731a(0x228)]();return!_0x380422&&(_0x380422=_0x295624[_0x78731a(0x22d)](_0x1d0565[_0x78731a(0x249)](),_0x3611ca['reEyK']),_0x4cbe12['mkdirSync'](_0x380422,{'recursive':!![]})),_0x380422;}get['dataPathGlobal'](){const _0x4e0e77=_0x5b5dcd;return _0x295624['resolve'](this['dataPath'],_0x4e0e77(0x1d8));}[_0x5b5dcd(0x22c)](){const _0xf30270=_0x5b5dcd,_0x15fbac={'kqixx':_0xf30270(0x250)};this[_0xf30270(0x256)]['initWithDeskTopConfig']({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0xf30270(0x1e5)],'os_version':_0x15fbac[_0xf30270(0x261)],'use_xlog':!![],'qua':_0xf30270(0x1fe)+qqVersionConfigInfo[_0xf30270(0x1e5)]['replace']('-','_')+_0xf30270(0x1d6),'global_path_config':{'desktopGlobalPath':this[_0xf30270(0x235)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x395b45[(_0xf30270(0x243))](new GlobalAdapter())),this[_0xf30270(0x244)][_0xf30270(0x22c)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0xf30270(0x235)],'clientVer':qqVersionConfigInfo[_0xf30270(0x1e5)],'hostName':hostname});}[_0x5b5dcd(0x1e7)](_0xe981ab,_0x2a5a73){const _0xc6bc22={'Hefxd':function(_0x5ac809,_0x57e34b){return _0x5ac809(_0x57e34b);},'CahhG':function(_0x376597,_0x15b4f4,_0x5ca255,_0x13dba3){return _0x376597(_0x15b4f4,_0x5ca255,_0x13dba3);},'dSIsz':function(_0x52977a,_0x19ff4d){return _0x52977a+_0x19ff4d;},'uSSQi':'init\x20failed\x20'};return new Promise((_0x37c6b6,_0x307c07)=>{const _0x2d706e=_0xa7db,_0x1fe24c={'pZdUe':function(_0x46e1c8,_0x57d841){return _0xc6bc22['Hefxd'](_0x46e1c8,_0x57d841);},'fOpqu':function(_0x1aa0f9,_0xe6de16){const _0x204bb9=_0xa7db;return _0xc6bc22[_0x204bb9(0x214)](_0x1aa0f9,_0xe6de16);}},_0x56c718=_0xc6bc22['CahhG'](genSessionConfig,_0xe981ab,_0x2a5a73,this[_0x2d706e(0x1dc)]),_0xc6950e=new SessionListener();_0xc6950e[_0x2d706e(0x1cd)]=_0x49fdfd=>{const _0x3c53e4=_0x2d706e;if(_0x49fdfd===0x0)return _0x1fe24c[_0x3c53e4(0x1cb)](_0x37c6b6,0x0);_0x1fe24c[_0x3c53e4(0x215)](_0x307c07,_0x49fdfd);},this[_0x2d706e(0x1c3)][_0x2d706e(0x1c1)](_0x56c718,new _0x395b45[(_0x2d706e(0x1b9))](new DependsAdapter()),new _0x395b45[(_0x2d706e(0x1ce))](new DispatcherAdapter()),new _0x395b45['NodeIKernelSessionListener'](_0xc6950e));try{this[_0x2d706e(0x1c3)]['startNT'](0x0);}catch(_0x37ec61){try{this['session'][_0x2d706e(0x1f2)]();}catch(_0x5bf5c0){_0xc6bc22[_0x2d706e(0x214)](_0x307c07,_0xc6bc22[_0x2d706e(0x25e)](_0xc6bc22[_0x2d706e(0x1f7)],_0x5bf5c0));}}});}['initDataListener'](){const _0x2b0328=_0x5b5dcd,_0x285d09={'yXDjw':_0x2b0328(0x240),'AYGaz':function(_0x5457f1,_0x1b7262){return _0x5457f1+_0x1b7262;},'uxbFJ':_0x2b0328(0x241),'xkuQL':function(_0x17deed,_0x5b7dcb){return _0x17deed===_0x5b7dcb;},'iOFlN':'groupMemberList_MainWindow'},_0x55a541=new MsgListener();_0x55a541['onLineDev']=_0x2c6256=>{const _0x2182d4=_0x2b0328,_0x81075={'dbGur':function(_0x5ef00b,_0x202485){return _0x5ef00b===_0x202485;},'KcSPT':function(_0x10293c,_0x3b10b0){return _0x10293c(_0x3b10b0);},'DCale':function(_0x423083,_0x45078b){return _0x423083+_0x45078b;},'MxoJi':_0x285d09[_0x2182d4(0x22e)]};_0x2c6256[_0x2182d4(0x24a)](_0x520e70=>{const _0x305b9c=_0x2182d4;_0x81075[_0x305b9c(0x226)](_0x520e70[_0x305b9c(0x1d3)],0x2)&&_0x81075[_0x305b9c(0x223)](log,_0x81075[_0x305b9c(0x247)](_0x81075[_0x305b9c(0x247)](_0x305b9c(0x259),_0x520e70[_0x305b9c(0x253)]),_0x81075['MxoJi']));});},_0x55a541[_0x2b0328(0x20a)]=_0x30099b=>{const _0x5638d1=_0x2b0328;log(_0x285d09['AYGaz'](_0x285d09['uxbFJ'],_0x30099b[_0x5638d1(0x202)])+']\x20'+_0x30099b[_0x5638d1(0x1fa)]);},_0x55a541[_0x2b0328(0x21f)]=_0x1af3fb=>{_0x1af3fb['map'](_0x1758a2=>{const _0x264cc4=_0xa7db;_0x1758a2[_0x264cc4(0x260)]==='0'?dbUtil[_0x264cc4(0x265)](_0x1758a2)[_0x264cc4(0x263)]()[_0x264cc4(0x1f9)]():dbUtil[_0x264cc4(0x1e4)](_0x1758a2[_0x264cc4(0x1ea)])['then'](_0x50338f=>{const _0x499102=_0x264cc4;_0x50338f&&(_0x50338f['recallTime']=_0x1758a2[_0x499102(0x260)],dbUtil['updateMsg'](_0x50338f)[_0x499102(0x263)]());});});},this[_0x2b0328(0x1f3)](_0x55a541);const _0x46b7f5=new BuddyListener();_0x46b7f5[_0x2b0328(0x1ba)]=_0x291985=>{const _0x46234e=_0x2b0328;for(const _0x5dc8c7 of _0x291985){for(const _0x43927d of _0x5dc8c7[_0x46234e(0x1d2)]){const _0x986873=friends[_0x46234e(0x221)](_0x43927d[_0x46234e(0x1ef)]);uid2UinMap[_0x43927d[_0x46234e(0x1ef)]]=_0x43927d[_0x46234e(0x25d)],_0x986873?Object[_0x46234e(0x200)](_0x986873,_0x43927d):friends['set'](_0x43927d['uid'],_0x43927d);}}},this[_0x2b0328(0x1f3)](_0x46b7f5),this[_0x2b0328(0x1c3)][_0x2b0328(0x201)]()['getBuddyList'](!![])['then'](_0x36ea22=>{});const _0x40325e=new ProfileListener();_0x40325e[_0x2b0328(0x1c5)]=_0x5e77dd=>{const _0x5a87dc=_0x2b0328;_0x285d09[_0x5a87dc(0x24b)](_0x5e77dd['uid'],selfInfo['uid'])&&Object['assign'](selfInfo,_0x5e77dd);},this[_0x2b0328(0x1f3)](_0x40325e);const _0x239221=new GroupListener();_0x239221[_0x2b0328(0x252)]=(_0x25a5b0,_0x3c07e2)=>{const _0x4ceb85=_0x2b0328,_0x58ea93={'sOaCN':_0x285d09['iOFlN']};_0x3c07e2[_0x4ceb85(0x24a)](_0x65f35c=>{const _0x1a68a1=_0x4ceb85,_0x161d58=groups[_0x1a68a1(0x221)](_0x65f35c[_0x1a68a1(0x237)]);if(_0x161d58)Object['assign'](_0x161d58,_0x65f35c);else{groups['set'](_0x65f35c[_0x1a68a1(0x237)],_0x65f35c);const _0x5479ab=this['session'][_0x1a68a1(0x242)]()[_0x1a68a1(0x21c)](_0x65f35c[_0x1a68a1(0x237)],_0x58ea93[_0x1a68a1(0x203)]);this[_0x1a68a1(0x1c3)]['getGroupService']()[_0x1a68a1(0x1e1)](_0x5479ab,undefined,0xbb8)[_0x1a68a1(0x263)](_0x3f7ec8=>{});}});},_0x239221[_0x2b0328(0x216)]=_0x4b2883=>{const _0x18f034=_0x2b0328,_0x35f88a=_0x4b2883[_0x18f034(0x1c9)]['split']('_')[0x0];if(groupMembers[_0x18f034(0x23c)](_0x35f88a)){const _0xd41819=groupMembers[_0x18f034(0x221)](_0x35f88a);_0x4b2883[_0x18f034(0x1cf)]['forEach']((_0x495196,_0x28f214)=>{const _0x196ef9=_0x18f034,_0x321470=_0xd41819['get'](_0x28f214);_0x321470?Object[_0x196ef9(0x200)](_0x321470,_0x495196):_0xd41819[_0x196ef9(0x236)](_0x28f214,_0x495196);});}else groupMembers[_0x18f034(0x236)](_0x35f88a,_0x4b2883[_0x18f034(0x1cf)]);},_0x239221[_0x2b0328(0x20b)]=(_0x4c1c77,_0x44dbf4,_0x2f37fb)=>{const _0x56fdec=_0x2b0328;_0x2f37fb['forEach']((_0x100771,_0x19f831)=>{const _0x26699c=_0xa7db;uid2UinMap[_0x19f831]=_0x100771[_0x26699c(0x25d)];});const _0x49d164=groupMembers['get'](_0x4c1c77);_0x49d164?_0x2f37fb[_0x56fdec(0x20f)]((_0x45dbb8,_0x2b106b)=>{const _0x420958=_0x56fdec,_0x1fd597=_0x49d164['get'](_0x2b106b);_0x1fd597?Object[_0x420958(0x200)](_0x1fd597,_0x45dbb8):_0x49d164[_0x420958(0x236)](_0x2b106b,_0x45dbb8);}):groupMembers['set'](_0x4c1c77,_0x2f37fb);},this[_0x2b0328(0x1f3)](_0x239221);}['addListener'](_0x55ee83){const _0x5ed123=_0x5b5dcd,_0x2285e1={'RZwLj':_0x5ed123(0x1dd),'GOfvg':_0x5ed123(0x1d0),'cJlIK':_0x5ed123(0x212)};_0x55ee83=new Proxy(_0x55ee83,this[_0x5ed123(0x254)]);switch(_0x55ee83[_0x5ed123(0x258)][_0x5ed123(0x1c8)]){case _0x2285e1['RZwLj']:{return this[_0x5ed123(0x1c3)][_0x5ed123(0x201)]()[_0x5ed123(0x23b)](new _0x395b45[(_0x5ed123(0x1bd))](_0x55ee83));}case _0x5ed123(0x1fb):{return this[_0x5ed123(0x1c3)][_0x5ed123(0x242)]()[_0x5ed123(0x207)](new _0x395b45['NodeIKernelGroupListener'](_0x55ee83));}case _0x2285e1['GOfvg']:{return this['session'][_0x5ed123(0x1d5)]()[_0x5ed123(0x1c2)](new _0x395b45[(_0x5ed123(0x262))](_0x55ee83));}case _0x2285e1['cJlIK']:{return this[_0x5ed123(0x1c3)][_0x5ed123(0x1e8)]()['addKernelProfileListener'](new _0x395b45[(_0x5ed123(0x1c0))](_0x55ee83));}default:return-0x1;}}[_0x5b5dcd(0x24d)](_0x20aa67){const _0x5a57b1=_0x5b5dcd;this[_0x5a57b1(0x233)][_0x5a57b1(0x1bb)](_0x20aa67);}async[_0x5b5dcd(0x25c)](_0x5d76ed){const _0x4df208=_0x5b5dcd,_0x569b24={'dzKpd':function(_0x28e726,_0x293cde){return _0x28e726!==_0x293cde;},'EWHeC':function(_0x8590c8,_0x5e2434){return _0x8590c8(_0x5e2434);}},_0x5ae06b=await this[_0x4df208(0x244)]['getLoginList']();if(_0x569b24['dzKpd'](_0x5ae06b[_0x4df208(0x219)],0x0))throw new Error(_0x4df208(0x257));const _0x144629=_0x5ae06b[_0x4df208(0x255)]['find'](_0x50db80=>_0x50db80[_0x4df208(0x25d)]===_0x5d76ed);if(!_0x144629||!_0x144629?.['isQuickLogin'])throw new Error(_0x5d76ed+_0x4df208(0x1de));await _0x569b24[_0x4df208(0x1ff)](sleep,0x3e8);const _0x319c75=await this[_0x4df208(0x244)]['quickLoginWithUin'](_0x5d76ed);if(!_0x319c75[_0x4df208(0x219)])throw new Error(_0x4df208(0x1d7)+_0x319c75['loginErrorInfo'][_0x4df208(0x21d)]);return _0x319c75;}async[_0x5b5dcd(0x1ca)](){const _0x290aaf=_0x5b5dcd,_0x48209f={'UCHvt':'获取二维码登录超时','zOfHY':_0x290aaf(0x264),'iODSQ':function(_0x443e8d,_0x14d044,_0x44ae14){return _0x443e8d(_0x14d044,_0x44ae14);}};let _0x5dd0b6=![];return new Promise((_0x2653a4,_0xb2ed75)=>{const _0x41880c=_0x290aaf,_0xfc70ea={'NmpIS':_0x48209f[_0x41880c(0x225)],'iUBvz':_0x48209f[_0x41880c(0x245)],'vNrKe':function(_0x288da6,_0x2444a5){return _0x288da6(_0x2444a5);}};_0x48209f[_0x41880c(0x20d)](setTimeout,()=>{const _0x570281=_0x41880c;!_0x5dd0b6&&_0xb2ed75(_0xfc70ea[_0x570281(0x1c6)]);},0x2710),this[_0x41880c(0x21e)][_0x41880c(0x25b)]=_0x12ad35=>{const _0x5f1022=_0x41880c;_0x5dd0b6=!![];const _0x80c214=_0x12ad35[_0x5f1022(0x1db)][_0x5f1022(0x24e)](_0xfc70ea[_0x5f1022(0x1fc)])[0x1],_0x4e2a53=Buffer['from'](_0x80c214,'base64');_0xfc70ea[_0x5f1022(0x234)](_0x2653a4,{'url':_0x12ad35[_0x5f1022(0x232)],'base64':_0x12ad35['pngBase64QrcodeData'],'buffer':_0x4e2a53});},this[_0x41880c(0x244)]['getQRCodePicture']();});}async['passwordLogin'](_0x16459f,_0x9a2baa,_0x5c8ac9,_0x1e53d8,_0x10e036){const _0x58acea=_0x5b5dcd,_0x4681c0={'tyjZL':_0x58acea(0x1d4),'FGCZa':function(_0x1d2ab7,_0x3971b5){return _0x1d2ab7&&_0x3971b5;},'wlUMF':function(_0x39da0b,_0x202efd){return _0x39da0b||_0x202efd;},'JCtfL':function(_0x2e1762,_0x3e2a44){return _0x2e1762(_0x3e2a44);},'rgMBC':'140022008'},_0x158816=_0x2da1b7[_0x58acea(0x21b)](_0x58acea(0x1fd))[_0x58acea(0x224)](_0x9a2baa)[_0x58acea(0x239)](_0x4681c0[_0x58acea(0x222)]),_0x3b07c4={'uin':_0x16459f,'passwordMd5':_0x158816,'step':_0x4681c0[_0x58acea(0x1ec)](_0x5c8ac9,_0x1e53d8)&&_0x10e036?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x4681c0[_0x58acea(0x1f8)](_0x5c8ac9,''),'proofWaterRand':_0x4681c0[_0x58acea(0x1f8)](_0x1e53d8,''),'proofWaterSid':_0x4681c0[_0x58acea(0x1f8)](_0x10e036,'')};await this['loginService'][_0x58acea(0x1e2)](),await _0x4681c0['JCtfL'](sleep,0x3e8);const _0x354426=await this[_0x58acea(0x244)][_0x58acea(0x24f)](_0x3b07c4);switch(_0x354426[_0x58acea(0x219)]){case'0':{break;}case _0x4681c0[_0x58acea(0x1ed)]:{break;}case'4':case'140022013':default:}}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x455c15=_0x4c91;(function(_0x4614aa,_0xb7395){const _0x1035fd=_0x4c91,_0x426b99=_0x4614aa();while(!![]){try{const _0x4798fe=parseInt(_0x1035fd(0xf4))/0x1+-parseInt(_0x1035fd(0xad))/0x2*(-parseInt(_0x1035fd(0xde))/0x3)+-parseInt(_0x1035fd(0xce))/0x4+parseInt(_0x1035fd(0xa9))/0x5*(-parseInt(_0x1035fd(0x12d))/0x6)+-parseInt(_0x1035fd(0x8d))/0x7*(-parseInt(_0x1035fd(0x10b))/0x8)+parseInt(_0x1035fd(0xbb))/0x9*(parseInt(_0x1035fd(0xd7))/0xa)+-parseInt(_0x1035fd(0xe0))/0xb*(parseInt(_0x1035fd(0x8e))/0xc);if(_0x4798fe===_0xb7395)break;else _0x426b99['push'](_0x426b99['shift']());}catch(_0xed0b31){_0x426b99['push'](_0x426b99['shift']());}}}(_0x527a,0x655aa));import _0x5c983a from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x5f1caa from'node:path';import _0x2b2cc6 from'node:os';import _0x4765b5 from'node:fs';function _0x527a(){const _0x207769=['onProfileDetailInfoChanged','message_sent','forEach','fileLogLevel','8469RJpZUK','then','devUid','getNextMemberList','curVersion','buddyList','uid','onRecvMsg','本账号数据/缓存目录:','groupCode','undefined','Eftpr','getBuddyService','initSession\x20failed','SsUJj','passwordLogin','constructor','fileLog','replace','791616SSmVdR','catch','now','czixX','set','NodeIKernelGroupListener','getQRCodePicture','iMrhq','session','2670JYOoVa','tipsDesc','NodeIQQNTWrapperSession','-v2.db','get','onQRCodeGetPicture','VUWby','1109523Psizvd','clientType','9110497NsINdn','addKernelBuddyListener','PzKFs','yvpnL','find','init\x20failed\x20','getGroupService','onLoginSuccessFuncList','getMsgByLongId','NodeIGlobalAdapter','XTLkP','VqXOH','onKickedOffLine','startNT','initWithDeskTopConfig','onSessionInitComplete','from','init','infos','[KickedOffLine]\x20[','51937HQdckI','./.config/QQ','update','loginService','msgId','stringify','qrLogin','addKernelLoginListener','DFXdl','recallTime','onMsgInfoListUpdate','split','engine','TDTmW','FBwRo','NeKVl','KbCrF','initConfig','NodeIKernelSessionListener','isQuickLogin',')已登录,无法重复登录','consoleLog','result','1224uqnrfc','onBuddyListChange','quickLogin','getBuddyList','updateMsg','uin','ACokX','initDataListener','140022013','hcNhR','V1_WIN_NQ_','./nt_qq/global','NodeIQQNTWrapperEngine','util','quickLoginWithUin','getLoginList','floor','NodeIKernelBuddyListener','resolve','last_message_time','homedir','FPpov','read','xReVl','packet_received','账号设备(\x20','YVBlJ','md5','NodeIKernelLoginService','onUserLoggedIn','onLineDev','onQRCodeSessionFailed','NzcSw','dataPathGlobal','336lJmyRj','pjiQb','onRecvSysMsg','map','createMemberListScene','Gegmy','bqfBq','mkdirSync','rbXwT','base64','19509NAHDOi','12CkHHtc','onMemberListChange','has','NodeIKernelLoginListener','name','jMLpq','ATReu','快速登录不可用','iWbyN','LocalLoginInfoList','yRISu','hNtel','onMemberInfoChange','dataPath','loginListener','onGroupListUpdate','getNTUserDataInfoConfig','NodeIDispatcherAdapter','qrcodeUrl','tipsTitle','woVOJ','GroupListener','packet_sent','proxyHandler','initSession','wThVv','assign','2500dMqEsu','hFspi','NodeQQNTWrapperUtil','addKernelProfileListener','4ixZHrD','NDmjy','addListener','MsgListener','onQRCodeLoginSucceed','length','UvHWT','getMsgService','hex','zBlvW'];_0x527a=function(){return _0x207769;};return _0x527a();}import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';function _0x4c91(_0xfa4d61,_0x139028){const _0x527afd=_0x527a();return _0x4c91=function(_0x4c9155,_0x264522){_0x4c9155=_0x4c9155-0x85;let _0x4c9933=_0x527afd[_0x4c9155];return _0x4c9933;},_0x4c91(_0xfa4d61,_0x139028);}import _0x361dbc 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{['session'];[_0x455c15(0x118)];[_0x455c15(0x100)];[_0x455c15(0xf7)];[_0x455c15(0x9c)];['onLoginSuccessFuncList']=[];['proxyHandler']={'get'(target,prop,receiver){const _0x5024ef=_0x455c15,nBSrXJ={'Eftpr':function(callee,param1){return callee(param1);},'zBlvW':function(x,y){return x===y;}};if(nBSrXJ[_0x5024ef(0xb6)](typeof target[prop],_0x5024ef(0xc5)))return(...args)=>{const _0x34baee=_0x5024ef;nBSrXJ[_0x34baee(0xc6)](logDebug,target[_0x34baee(0xcb)][_0x34baee(0x92)]+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x5024ef(0xdb)](target,prop,receiver);}};constructor(){const _0x762795=_0x455c15,_0x394959={'TDTmW':function(_0x5dda72,_0x2e2c71){return _0x5dda72(_0x2e2c71);},'NIQrK':function(_0x56c676,_0x2bffe9){return _0x56c676+_0x2bffe9;},'bqfBq':function(_0x14dbdd,_0x2d4e29){return _0x14dbdd+_0x2d4e29;},'EPpGv':'当前账号(','VqXOH':function(_0x3f54fc,_0x5f4a88,_0x28949e){return _0x3f54fc(_0x5f4a88,_0x28949e);},'pjiQb':'数据库初始化失败','DFXdl':function(_0x2522f2,_0x16cf4b){return _0x2522f2(_0x16cf4b);},'uHsgx':_0x762795(0xc3),'hFspi':function(_0x4cf9fd,_0x185821,_0x2a1ec){return _0x4cf9fd(_0x185821,_0x2a1ec);},'ATReu':'登录失败','crcVe':function(_0x363ef6,_0x44ec62,_0x324750){return _0x363ef6(_0x44ec62,_0x324750);}};this[_0x762795(0x100)]=new _0x5c983a[(_0x762795(0x117))](),this[_0x762795(0x118)]=new _0x5c983a[(_0x762795(0xab))](),this[_0x762795(0xf7)]=new _0x5c983a[(_0x762795(0x127))](),this[_0x762795(0xd6)]=new _0x5c983a[(_0x762795(0xd9))](),this[_0x762795(0x9c)]=new LoginListener(),this[_0x762795(0x9c)][_0x762795(0x128)]=_0x98e669=>{const _0x21ca6c=_0x762795;_0x394959['TDTmW'](logError,_0x394959['NIQrK'](_0x394959[_0x21ca6c(0x89)](_0x394959['EPpGv'],_0x98e669),_0x21ca6c(0x108)));},this[_0x762795(0x9c)][_0x762795(0xb1)]=_0x1f60e2=>{const _0x8d2541=_0x762795;this[_0x8d2541(0xa6)](_0x1f60e2['uin'],_0x1f60e2[_0x8d2541(0xc1)])[_0x8d2541(0xbc)](_0x11af65=>{const _0x5d19a6=_0x8d2541,_0x4e0255={'yRISu':function(_0x3f43d2,_0x397aa2,_0x4ecc02){const _0x47a47a=_0x4c91;return _0x394959[_0x47a47a(0xeb)](_0x3f43d2,_0x397aa2,_0x4ecc02);},'XTLkP':_0x394959[_0x5d19a6(0x12e)]};selfInfo[_0x5d19a6(0x110)]=_0x1f60e2['uin'],selfInfo[_0x5d19a6(0xc1)]=_0x1f60e2[_0x5d19a6(0xc1)],napCatConfig[_0x5d19a6(0x121)](),_0x394959[_0x5d19a6(0xeb)](setLogLevel,napCatConfig[_0x5d19a6(0xba)],napCatConfig['consoleLogLevel']),_0x394959[_0x5d19a6(0x101)](enableFileLog,napCatConfig[_0x5d19a6(0xcc)]),_0x394959[_0x5d19a6(0x101)](enableConsoleLog,napCatConfig[_0x5d19a6(0x109)]),_0x394959[_0x5d19a6(0xfc)](setLogSelfInfo,selfInfo);const _0x395a46=_0x5f1caa['resolve'](this[_0x5d19a6(0x9b)],'./NapCat/data');_0x4765b5[_0x5d19a6(0x8a)](_0x395a46,{'recursive':!![]}),_0x394959[_0x5d19a6(0xeb)](logDebug,_0x394959['uHsgx'],_0x395a46),dbUtil[_0x5d19a6(0xf1)](_0x5f1caa[_0x5d19a6(0x11d)](_0x395a46,'./'+_0x1f60e2['uin']+_0x5d19a6(0xda)))[_0x5d19a6(0xbc)](()=>{const _0x14a47a=_0x5d19a6,_0x7fc516={'npXTu':function(_0x3e2582,_0x57e766){return _0x3e2582 instanceof _0x57e766;}};this[_0x14a47a(0x112)](),this[_0x14a47a(0xe7)][_0x14a47a(0x86)](_0x3dbd25=>{const _0x5b987c=_0x14a47a;new Promise((_0x5263d8,_0x310509)=>{const _0x2c0019=_0x4c91,_0x290720=_0x3dbd25(_0x1f60e2[_0x2c0019(0x110)],_0x1f60e2[_0x2c0019(0xc1)]);_0x7fc516['npXTu'](_0x290720,Promise)&&_0x290720['then'](_0x5263d8)['catch'](_0x310509);})[_0x5b987c(0xbc)]();});})[_0x5d19a6(0xcf)](_0x3b2892=>{const _0x5573a6=_0x5d19a6;_0x4e0255[_0x5573a6(0x98)](logError,_0x4e0255[_0x5573a6(0xea)],_0x3b2892);});})[_0x8d2541(0xcf)](_0x166c3b=>{const _0x5491e2=_0x8d2541;_0x394959[_0x5491e2(0xaa)](logError,_0x5491e2(0xc8),_0x166c3b);throw new Error('启动失败:\x20'+JSON[_0x5491e2(0xf9)](_0x166c3b));});},this[_0x762795(0x9c)][_0x762795(0x12a)]=_0x7853ca=>{const _0x4e0de2=_0x762795;logError(_0x394959[_0x4e0de2(0x94)],_0x7853ca);},this[_0x762795(0x9c)]['onLoginFailed']=_0x42d2dc=>{const _0x5e051a=_0x762795;_0x394959['crcVe'](logError,_0x394959[_0x5e051a(0x94)],_0x42d2dc);},this[_0x762795(0x9c)]=new Proxy(this['loginListener'],this[_0x762795(0xa5)]),this[_0x762795(0xf7)][_0x762795(0xfb)](new _0x5c983a[(_0x762795(0x91))](this[_0x762795(0x9c)])),this[_0x762795(0x105)]();}get[_0x455c15(0x9b)](){const _0x5e3aca=_0x455c15;let _0x5bfccf=this[_0x5e3aca(0x118)][_0x5e3aca(0x9e)]();return!_0x5bfccf&&(_0x5bfccf=_0x5f1caa[_0x5e3aca(0x11d)](_0x2b2cc6[_0x5e3aca(0x11f)](),_0x5e3aca(0xf5)),_0x4765b5['mkdirSync'](_0x5bfccf,{'recursive':!![]})),_0x5bfccf;}get['dataPathGlobal'](){const _0x20f425=_0x455c15,_0x599a83={'hcNhR':_0x20f425(0x116)};return _0x5f1caa[_0x20f425(0x11d)](this[_0x20f425(0x9b)],_0x599a83[_0x20f425(0x114)]);}[_0x455c15(0x105)](){const _0x5a6f95=_0x455c15;this['engine'][_0x5a6f95(0xee)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x5a6f95(0xbf)],'os_version':'Windows\x2010\x20Pro','use_xlog':!![],'qua':_0x5a6f95(0x115)+qqVersionConfigInfo['curVersion'][_0x5a6f95(0xcd)]('-','_')+'_GW_B','global_path_config':{'desktopGlobalPath':this['dataPathGlobal']},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x5c983a[(_0x5a6f95(0xe9))](new GlobalAdapter())),this[_0x5a6f95(0xf7)]['initConfig']({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x5a6f95(0x12c)],'clientVer':qqVersionConfigInfo[_0x5a6f95(0xbf)],'hostName':hostname});}['initSession'](_0x19858c,_0x26e13b){const _0x13b73f=_0x455c15,_0x512de6={'iWbyN':function(_0x53308e,_0x345835){return _0x53308e===_0x345835;},'iMrhq':function(_0x187d53,_0x3a9903){return _0x187d53(_0x3a9903);},'NDmjy':function(_0x2f2b3a,_0x136a84){return _0x2f2b3a+_0x136a84;},'rbXwT':_0x13b73f(0xe5)};return new Promise((_0x348b16,_0x4e1078)=>{const _0x1b92f1=_0x13b73f,_0x4f5563=genSessionConfig(_0x19858c,_0x26e13b,this['dataPath']),_0xb16c71=new SessionListener();_0xb16c71[_0x1b92f1(0xef)]=_0xef6836=>{const _0xde8977=_0x1b92f1;if(_0x512de6[_0xde8977(0x96)](_0xef6836,0x0))return _0x512de6['iMrhq'](_0x348b16,0x0);_0x512de6[_0xde8977(0xd5)](_0x4e1078,_0xef6836);},this[_0x1b92f1(0xd6)][_0x1b92f1(0xf1)](_0x4f5563,new _0x5c983a['NodeIDependsAdapter'](new DependsAdapter()),new _0x5c983a[(_0x1b92f1(0x9f))](new DispatcherAdapter()),new _0x5c983a[(_0x1b92f1(0x106))](_0xb16c71));try{this[_0x1b92f1(0xd6)]['startNT'](0x0);}catch(_0x24fc95){try{this[_0x1b92f1(0xd6)][_0x1b92f1(0xed)]();}catch(_0x12bcaf){_0x512de6['iMrhq'](_0x4e1078,_0x512de6[_0x1b92f1(0xae)](_0x512de6[_0x1b92f1(0x8b)],_0x12bcaf));}}});}[_0x455c15(0x112)](){const _0x5bf15e=_0x455c15,_0x3e2288={'SsUJj':function(_0x1cd60e,_0x2a93af){return _0x1cd60e===_0x2a93af;},'YVBlJ':function(_0x24b67b,_0x29ede0){return _0x24b67b(_0x29ede0);},'woVOJ':function(_0x4aff08,_0x286fde){return _0x4aff08+_0x286fde;},'GmJLW':function(_0x3184f4,_0xc71407){return _0x3184f4+_0xc71407;},'NzcSw':_0x5bf15e(0x124),'Gegmy':'\x20)\x20在线状态变更','ejeoi':function(_0x36f6ef,_0x6248b0){return _0x36f6ef+_0x6248b0;},'NeKVl':_0x5bf15e(0xf3),'PzKFs':function(_0x2f08e2,_0x5446f6){return _0x2f08e2/_0x5446f6;},'wThVv':function(_0x521b91,_0x204f66){return _0x521b91===_0x204f66;},'FPpov':'groupMemberList_MainWindow'},_0x2b8b7e=new MsgListener();_0x2b8b7e[_0x5bf15e(0x129)]=_0x35a29c=>{const _0x121be7=_0x5bf15e;_0x35a29c[_0x121be7(0x86)](_0x4fc5af=>{const _0x4a7705=_0x121be7;_0x3e2288[_0x4a7705(0xc9)](_0x4fc5af[_0x4a7705(0xdf)],0x2)&&_0x3e2288[_0x4a7705(0x125)](log,_0x3e2288[_0x4a7705(0xa2)](_0x3e2288['GmJLW'](_0x3e2288[_0x4a7705(0x12b)],_0x4fc5af[_0x4a7705(0xbd)]),_0x3e2288[_0x4a7705(0x88)]));});},_0x2b8b7e[_0x5bf15e(0xec)]=_0xcbed5f=>{const _0x27cd4e=_0x5bf15e;_0x3e2288[_0x27cd4e(0x125)](log,_0x3e2288['GmJLW'](_0x3e2288['ejeoi'](_0x3e2288[_0x27cd4e(0x103)],_0xcbed5f[_0x27cd4e(0xa1)])+']\x20',_0xcbed5f[_0x27cd4e(0xd8)]));},_0x2b8b7e[_0x5bf15e(0xfe)]=_0x4c92ca=>{const _0x398699=_0x5bf15e;stat[_0x398699(0x123)]+=0x1,_0x4c92ca[_0x398699(0x86)](_0x4dc113=>{const _0x4c7631=_0x398699;_0x4dc113[_0x4c7631(0xfd)]==='0'?dbUtil['addMsg'](_0x4dc113)[_0x4c7631(0xbc)]()[_0x4c7631(0xcf)]():dbUtil[_0x4c7631(0xe8)](_0x4dc113[_0x4c7631(0xf8)])[_0x4c7631(0xbc)](_0x521e7a=>{const _0x239bb2=_0x4c7631;_0x521e7a&&(_0x521e7a[_0x239bb2(0xfd)]=_0x4dc113['recallTime'],dbUtil[_0x239bb2(0x10f)](_0x521e7a)[_0x239bb2(0xbc)]());});});},_0x2b8b7e['onAddSendMsg']=_0x26d4b7=>{const _0x515890=_0x5bf15e;stat[_0x515890(0xa4)]+=0x1,stat[_0x515890(0xb8)]+=0x1,stat[_0x515890(0x11e)]=Math['floor'](_0x3e2288[_0x515890(0xe2)](Date[_0x515890(0xd0)](),0x3e8));},_0x2b8b7e[_0x5bf15e(0xc2)]=_0x45029b=>{const _0x58cca7=_0x5bf15e;stat[_0x58cca7(0x123)]+=0x1,stat['message_received']+=_0x45029b[_0x58cca7(0xb2)],stat['last_message_time']=Math[_0x58cca7(0x11b)](Date[_0x58cca7(0xd0)]()/0x3e8);},_0x2b8b7e[_0x5bf15e(0x85)]=(..._0x26e0d3)=>{stat['packet_received']+=0x1;},this[_0x5bf15e(0xaf)](_0x2b8b7e);const _0x189455=new BuddyListener();_0x189455[_0x5bf15e(0x10c)]=_0x129b7a=>{const _0x3aa8e4=_0x5bf15e;for(const _0x5803f4 of _0x129b7a){for(const _0x7eba5b of _0x5803f4[_0x3aa8e4(0xc0)]){const _0xc28798=friends[_0x3aa8e4(0xdb)](_0x7eba5b[_0x3aa8e4(0xc1)]);uid2UinMap[_0x7eba5b[_0x3aa8e4(0xc1)]]=_0x7eba5b[_0x3aa8e4(0x110)],_0xc28798?Object['assign'](_0xc28798,_0x7eba5b):friends[_0x3aa8e4(0xd2)](_0x7eba5b[_0x3aa8e4(0xc1)],_0x7eba5b);}}},this[_0x5bf15e(0xaf)](_0x189455),this['session'][_0x5bf15e(0xc7)]()[_0x5bf15e(0x10e)](!![])[_0x5bf15e(0xbc)](_0x32751e=>{});const _0x739635=new ProfileListener();_0x739635[_0x5bf15e(0xb7)]=_0x5a1cc0=>{const _0x570714=_0x5bf15e;_0x3e2288[_0x570714(0xa7)](_0x5a1cc0['uid'],selfInfo[_0x570714(0xc1)])&&Object[_0x570714(0xa8)](selfInfo,_0x5a1cc0);},this[_0x5bf15e(0xaf)](_0x739635);const _0x16f358=new GroupListener();_0x16f358[_0x5bf15e(0x9d)]=(_0x4be97c,_0x567e54)=>{_0x567e54['map'](_0x316a30=>{const _0x341e07=_0x4c91,_0x279daf=groups[_0x341e07(0xdb)](_0x316a30[_0x341e07(0xc4)]);if(_0x279daf)Object[_0x341e07(0xa8)](_0x279daf,_0x316a30);else{groups['set'](_0x316a30[_0x341e07(0xc4)],_0x316a30);const _0xc3a607=this[_0x341e07(0xd6)][_0x341e07(0xe6)]()[_0x341e07(0x87)](_0x316a30['groupCode'],_0x3e2288[_0x341e07(0x120)]);this[_0x341e07(0xd6)]['getGroupService']()[_0x341e07(0xbe)](_0xc3a607,undefined,0xbb8)[_0x341e07(0xbc)](_0x201813=>{});}});},_0x16f358[_0x5bf15e(0x8f)]=_0x5c5d7e=>{const _0x2b2d4f=_0x5bf15e,_0x647e5d=_0x5c5d7e['sceneId'][_0x2b2d4f(0xff)]('_')[0x0];if(groupMembers[_0x2b2d4f(0x90)](_0x647e5d)){const _0x495875=groupMembers[_0x2b2d4f(0xdb)](_0x647e5d);_0x5c5d7e['infos']['forEach']((_0x493e51,_0x744846)=>{const _0x1b9ab7=_0x2b2d4f,_0x2637a1=_0x495875[_0x1b9ab7(0xdb)](_0x744846);_0x2637a1?Object[_0x1b9ab7(0xa8)](_0x2637a1,_0x493e51):_0x495875[_0x1b9ab7(0xd2)](_0x744846,_0x493e51);});}else groupMembers[_0x2b2d4f(0xd2)](_0x647e5d,_0x5c5d7e[_0x2b2d4f(0xf2)]);},_0x16f358[_0x5bf15e(0x9a)]=(_0x2b7463,_0xaf3283,_0x11a118)=>{const _0x27eede=_0x5bf15e;_0x11a118[_0x27eede(0xb9)]((_0x433471,_0x505b6f)=>{const _0x3e34d0=_0x27eede;uid2UinMap[_0x505b6f]=_0x433471[_0x3e34d0(0x110)];});const _0x47280d=groupMembers[_0x27eede(0xdb)](_0x2b7463);_0x47280d?_0x11a118[_0x27eede(0xb9)]((_0x29768f,_0x2a29ff)=>{const _0x22847e=_0x27eede,_0xed48a2=_0x47280d[_0x22847e(0xdb)](_0x2a29ff);_0xed48a2?Object[_0x22847e(0xa8)](_0xed48a2,_0x29768f):_0x47280d[_0x22847e(0xd2)](_0x2a29ff,_0x29768f);}):groupMembers[_0x27eede(0xd2)](_0x2b7463,_0x11a118);},this[_0x5bf15e(0xaf)](_0x16f358);}[_0x455c15(0xaf)](_0x56bf75){const _0x1eb5b6=_0x455c15,_0x481a62={'FBwRo':_0x1eb5b6(0xa3),'yvpnL':_0x1eb5b6(0xb0),'riahe':'ProfileListener'};_0x56bf75=new Proxy(_0x56bf75,this[_0x1eb5b6(0xa5)]);switch(_0x56bf75[_0x1eb5b6(0xcb)][_0x1eb5b6(0x92)]){case'BuddyListener':{return this['session'][_0x1eb5b6(0xc7)]()[_0x1eb5b6(0xe1)](new _0x5c983a[(_0x1eb5b6(0x11c))](_0x56bf75));}case _0x481a62[_0x1eb5b6(0x102)]:{return this[_0x1eb5b6(0xd6)][_0x1eb5b6(0xe6)]()['addKernelGroupListener'](new _0x5c983a[(_0x1eb5b6(0xd3))](_0x56bf75));}case _0x481a62[_0x1eb5b6(0xe3)]:{return this['session'][_0x1eb5b6(0xb4)]()['addKernelMsgListener'](new _0x5c983a['NodeIKernelMsgListener'](_0x56bf75));}case _0x481a62['riahe']:{return this['session']['getProfileService']()[_0x1eb5b6(0xac)](new _0x5c983a['NodeIKernelProfileListener'](_0x56bf75));}default:return-0x1;}}['onLoginSuccess'](_0xf0a86a){const _0x2af4fa=_0x455c15;this[_0x2af4fa(0xe7)]['push'](_0xf0a86a);}async[_0x455c15(0x10d)](_0x37f25f){const _0x188823=_0x455c15,_0x46c173={'ZjKpv':function(_0x36d17d,_0x47547e){return _0x36d17d!==_0x47547e;},'xReVl':'没有可快速登录的QQ号','czixX':function(_0x558df9,_0x1bfbde){return _0x558df9(_0x1bfbde);},'OAUFV':function(_0x4bb462,_0x28e1aa){return _0x4bb462+_0x28e1aa;},'VUWby':'快速登录失败\x20'},_0x1c6eab=await this[_0x188823(0xf7)][_0x188823(0x11a)]();if(_0x46c173['ZjKpv'](_0x1c6eab[_0x188823(0x10a)],0x0))throw new Error(_0x46c173[_0x188823(0x122)]);const _0x4a3afc=_0x1c6eab[_0x188823(0x97)][_0x188823(0xe4)](_0x447a9a=>_0x447a9a[_0x188823(0x110)]===_0x37f25f);if(!_0x4a3afc||!_0x4a3afc?.[_0x188823(0x107)])throw new Error(_0x37f25f+_0x188823(0x95));await _0x46c173[_0x188823(0xd1)](sleep,0x3e8);const _0x15c01c=await this[_0x188823(0xf7)][_0x188823(0x119)](_0x37f25f);if(!_0x15c01c[_0x188823(0x10a)])throw new Error(_0x46c173['OAUFV'](_0x46c173[_0x188823(0xdd)],_0x15c01c['loginErrorInfo']['errMsg']));return _0x15c01c;}async[_0x455c15(0xfa)](){const _0x9ab5fd=_0x455c15,_0x14a522={'UvHWT':function(_0x573a70,_0x2a1fc0){return _0x573a70(_0x2a1fc0);},'KbCrF':'获取二维码登录超时','ORYPw':'data:image/png;base64,','hNtel':_0x9ab5fd(0x8c),'IAlQT':function(_0xbdf2db,_0x3d058e,_0x3d8aaa){return _0xbdf2db(_0x3d058e,_0x3d8aaa);}};let _0xc2d577=![];return new Promise((_0x7f4c2b,_0x544824)=>{const _0x1b953b=_0x9ab5fd;_0x14a522['IAlQT'](setTimeout,()=>{const _0xa98806=_0x4c91;!_0xc2d577&&_0x14a522['UvHWT'](_0x544824,_0x14a522[_0xa98806(0x104)]);},0x2710),this['loginListener'][_0x1b953b(0xdc)]=_0x31fcf0=>{const _0x27b2aa=_0x1b953b;_0xc2d577=!![];const _0x29f814=_0x31fcf0['pngBase64QrcodeData'][_0x27b2aa(0xff)](_0x14a522['ORYPw'])[0x1],_0x100971=Buffer[_0x27b2aa(0xf0)](_0x29f814,_0x14a522[_0x27b2aa(0x99)]);_0x14a522[_0x27b2aa(0xb3)](_0x7f4c2b,{'url':_0x31fcf0[_0x27b2aa(0xa0)],'base64':_0x31fcf0['pngBase64QrcodeData'],'buffer':_0x100971});},this[_0x1b953b(0xf7)][_0x1b953b(0xd4)]();});}async[_0x455c15(0xca)](_0x4402a7,_0x7c1f68,_0x1c7c5b,_0x3ed2ad,_0x20ca78){const _0x32ad35=_0x455c15,_0x5b5608={'ACokX':_0x32ad35(0xb5),'pbslr':function(_0x135f89,_0x11a318){return _0x135f89||_0x11a318;},'kshgp':function(_0x133d66,_0x5bfada){return _0x133d66(_0x5bfada);},'jMLpq':'140022008','pNOOg':_0x32ad35(0x113)},_0x1c76a5=_0x361dbc['createHash'](_0x32ad35(0x126))[_0x32ad35(0xf6)](_0x7c1f68)['digest'](_0x5b5608[_0x32ad35(0x111)]),_0x2a1488={'uin':_0x4402a7,'passwordMd5':_0x1c76a5,'step':_0x1c7c5b&&_0x3ed2ad&&_0x20ca78?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x5b5608['pbslr'](_0x1c7c5b,''),'proofWaterRand':_0x5b5608['pbslr'](_0x3ed2ad,''),'proofWaterSid':_0x5b5608['pbslr'](_0x20ca78,'')};await this[_0x32ad35(0xf7)][_0x32ad35(0x11a)](),await _0x5b5608['kshgp'](sleep,0x3e8);const _0x5dd1d6=await this[_0x32ad35(0xf7)][_0x32ad35(0xca)](_0x2a1488);switch(_0x5dd1d6[_0x32ad35(0x10a)]){case'0':{break;}case _0x5b5608[_0x32ad35(0x93)]:{break;}case'4':case _0x5b5608['pNOOg']:default:}}}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 1f2fd294..16455963 100644 --- a/src/core.lib/src/data.d.ts +++ b/src/core.lib/src/data.d.ts @@ -22,3 +22,13 @@ 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 stat: { + packet_received: number; + packet_sent: number; + message_received: number; + message_sent: number; + last_message_time: number; + disconnect_times: number; + lost_times: number; + packet_lost: number; +}; diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index 5fa73248..0b3dfc42 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -(function(_0x3c36df,_0x3a38a9){const _0x5714b7=_0x4b80,_0x58ad7a=_0x3c36df();while(!![]){try{const _0x429102=-parseInt(_0x5714b7(0x16c))/0x1+parseInt(_0x5714b7(0x178))/0x2+-parseInt(_0x5714b7(0x16b))/0x3*(-parseInt(_0x5714b7(0x172))/0x4)+parseInt(_0x5714b7(0x169))/0x5*(parseInt(_0x5714b7(0x179))/0x6)+parseInt(_0x5714b7(0x17c))/0x7+parseInt(_0x5714b7(0x171))/0x8+-parseInt(_0x5714b7(0x177))/0x9;if(_0x429102===_0x3a38a9)break;else _0x58ad7a['push'](_0x58ad7a['shift']());}catch(_0x1b193f){_0x58ad7a['push'](_0x58ad7a['shift']());}}}(_0x22e7,0xdb52d));function _0x4b80(_0x296ffb,_0x444fda){const _0x22e773=_0x22e7();return _0x4b80=function(_0x4b80a0,_0x41cccd){_0x4b80a0=_0x4b80a0-0x165;let _0x5ee829=_0x22e773[_0x4b80a0];return _0x5ee829;},_0x4b80(_0x296ffb,_0x444fda);}import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x4f4338){const _0x518cd7=_0x4b80;groups[_0x518cd7(0x174)](_0x4f4338),groupMembers[_0x518cd7(0x174)](_0x4f4338);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x4185a0){const _0x32a26e=_0x4b80;_0x4185a0=_0x4185a0[_0x32a26e(0x170)]();if(isNumeric(_0x4185a0)){const _0x2177be=Array['from'](friends[_0x32a26e(0x16a)]());return _0x2177be['find'](_0x499b5c=>_0x499b5c[_0x32a26e(0x165)]===_0x4185a0);}else return friends[_0x32a26e(0x168)](_0x4185a0);}export async function getGroup(_0x101ec8){const _0x5b3b28=_0x4b80;let _0x18475d=groups['get'](_0x101ec8['toString']());if(!_0x18475d)try{const _0x2ce272=await NTQQGroupApi[_0x5b3b28(0x166)]();_0x2ce272[_0x5b3b28(0x17b)]&&_0x2ce272[_0x5b3b28(0x16d)](_0x32b78a=>{const _0x2ce395=_0x5b3b28;groups[_0x2ce395(0x176)](_0x32b78a[_0x2ce395(0x17a)],_0x32b78a);});}catch(_0xb66663){return undefined;}return _0x18475d=groups[_0x5b3b28(0x168)](_0x101ec8[_0x5b3b28(0x170)]()),_0x18475d;}export async function getGroupMember(_0x468c0c,_0x26dc1c){const _0x4cf0a2=_0x4b80,_0x3b80cd={'YRdSS':function(_0x169770,_0x488071){return _0x169770(_0x488071);},'HAdaL':function(_0x245d21){return _0x245d21();}};_0x468c0c=_0x468c0c[_0x4cf0a2(0x170)](),_0x26dc1c=_0x26dc1c[_0x4cf0a2(0x170)]();let _0x340f02=groupMembers[_0x4cf0a2(0x168)](_0x468c0c);if(!_0x340f02)try{_0x340f02=await NTQQGroupApi[_0x4cf0a2(0x16e)](_0x468c0c),groupMembers['set'](_0x468c0c,_0x340f02);}catch(_0x18eb3d){return null;}const _0x2e740e=()=>{const _0x235fc5=_0x4cf0a2;let _0x57240d=undefined;return _0x3b80cd[_0x235fc5(0x173)](isNumeric,_0x26dc1c)?_0x57240d=Array[_0x235fc5(0x175)](_0x340f02[_0x235fc5(0x16a)]())['find'](_0x2949e1=>_0x2949e1[_0x235fc5(0x165)]===_0x26dc1c):_0x57240d=_0x340f02[_0x235fc5(0x168)](_0x26dc1c),_0x57240d;};let _0x31b02f=_0x2e740e();return!_0x31b02f&&(_0x340f02=await NTQQGroupApi[_0x4cf0a2(0x16e)](_0x468c0c),_0x31b02f=_0x3b80cd[_0x4cf0a2(0x16f)](_0x2e740e)),_0x31b02f;}function _0x22e7(){const _0x44ba25=['YWnpX','get','5gyDHVj','values','183MJgzuV','1668154UtYGbX','forEach','getGroupMembers','HAdaL','toString','11090800xgoopO','117212hHYxip','YRdSS','delete','from','set','24987123wYMQUq','1338360FWNGHo','8194794tTyuwa','groupCode','length','938266gMRbdp','uin','getGroups'];_0x22e7=function(){return _0x44ba25;};return _0x22e7();}export const uid2UinMap={};export function getUidByUin(_0x23c3de){const _0x566a5c=_0x4b80,_0x52a1c2={'YWnpX':function(_0xc88518,_0xc5744a){return _0xc88518===_0xc5744a;}};for(const _0x255f2c in uid2UinMap){if(_0x52a1c2[_0x566a5c(0x167)](uid2UinMap[_0x255f2c],_0x23c3de))return _0x255f2c;}}export const tempGroupCodeMap={}; \ No newline at end of file +const _0x2ea154=_0x5817;(function(_0x2134b4,_0x8267da){const _0x273f06=_0x5817,_0x4e7b27=_0x2134b4();while(!![]){try{const _0x58375a=parseInt(_0x273f06(0x1bb))/0x1+parseInt(_0x273f06(0x1c6))/0x2*(-parseInt(_0x273f06(0x1bf))/0x3)+-parseInt(_0x273f06(0x1c1))/0x4+parseInt(_0x273f06(0x1b9))/0x5*(-parseInt(_0x273f06(0x1ba))/0x6)+-parseInt(_0x273f06(0x1c9))/0x7+parseInt(_0x273f06(0x1ca))/0x8*(-parseInt(_0x273f06(0x1cd))/0x9)+parseInt(_0x273f06(0x1d0))/0xa*(parseInt(_0x273f06(0x1d1))/0xb);if(_0x58375a===_0x8267da)break;else _0x4e7b27['push'](_0x4e7b27['shift']());}catch(_0x1b83cf){_0x4e7b27['push'](_0x4e7b27['shift']());}}}(_0x29e2,0x561ce));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x4c5390){const _0x1d5b45=_0x5817;groups[_0x1d5b45(0x1be)](_0x4c5390),groupMembers['delete'](_0x4c5390);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x2ea154(0x1bd)};export async function getFriend(_0x339c0a){const _0xe0feb2=_0x2ea154,_0x58aab1={'AkJtV':function(_0x1cd141,_0x2fa42f){return _0x1cd141(_0x2fa42f);}};_0x339c0a=_0x339c0a['toString']();if(_0x58aab1[_0xe0feb2(0x1c2)](isNumeric,_0x339c0a)){const _0x1b07e7=Array['from'](friends[_0xe0feb2(0x1b8)]());return _0x1b07e7[_0xe0feb2(0x1ce)](_0x3b4154=>_0x3b4154[_0xe0feb2(0x1c5)]===_0x339c0a);}else return friends[_0xe0feb2(0x1c0)](_0x339c0a);}export async function getGroup(_0xbcf6fb){const _0x2a497a=_0x2ea154;let _0x891de9=groups[_0x2a497a(0x1c0)](_0xbcf6fb['toString']());if(!_0x891de9)try{const _0xde37da=await NTQQGroupApi[_0x2a497a(0x1c4)]();_0xde37da[_0x2a497a(0x1c8)]&&_0xde37da[_0x2a497a(0x1c7)](_0x6dbde6=>{const _0x1af83b=_0x2a497a;groups[_0x1af83b(0x1bc)](_0x6dbde6[_0x1af83b(0x1cf)],_0x6dbde6);});}catch(_0x239783){return undefined;}return _0x891de9=groups['get'](_0xbcf6fb[_0x2a497a(0x1c3)]()),_0x891de9;}export async function getGroupMember(_0x34f0cc,_0x10533e){const _0x330d20=_0x2ea154,_0x3608ff={'YpZEC':function(_0x12816b,_0x4de983){return _0x12816b(_0x4de983);},'exNuP':function(_0x5af325){return _0x5af325();}};_0x34f0cc=_0x34f0cc[_0x330d20(0x1c3)](),_0x10533e=_0x10533e[_0x330d20(0x1c3)]();let _0x4b69d2=groupMembers['get'](_0x34f0cc);if(!_0x4b69d2)try{_0x4b69d2=await NTQQGroupApi['getGroupMembers'](_0x34f0cc),groupMembers['set'](_0x34f0cc,_0x4b69d2);}catch(_0x4d816c){return null;}const _0x33a727=()=>{const _0x342bfe=_0x330d20;let _0x191b4a=undefined;return _0x3608ff[_0x342bfe(0x1cc)](isNumeric,_0x10533e)?_0x191b4a=Array[_0x342bfe(0x1cb)](_0x4b69d2[_0x342bfe(0x1b8)]())[_0x342bfe(0x1ce)](_0x1b48bc=>_0x1b48bc[_0x342bfe(0x1c5)]===_0x10533e):_0x191b4a=_0x4b69d2[_0x342bfe(0x1c0)](_0x10533e),_0x191b4a;};let _0x124278=_0x3608ff['exNuP'](_0x33a727);return!_0x124278&&(_0x4b69d2=await NTQQGroupApi['getGroupMembers'](_0x34f0cc),_0x124278=_0x33a727()),_0x124278;}function _0x29e2(){const _0x3dfa15=['26517bndKUU','get','1755888MgFLYK','AkJtV','toString','getGroups','uin','46sruqVS','forEach','length','2743881skayWE','3132688NPgSRJ','from','YpZEC','9DUjdbt','find','groupCode','10mxrpUX','19861721WBPbpq','values','125OxhomI','61086MInznQ','227470HLjoeo','set','NapCat未能正常启动,请检查日志查看错误','delete'];_0x29e2=function(){return _0x3dfa15;};return _0x29e2();}export const uid2UinMap={};function _0x5817(_0x272be7,_0x595c6e){const _0x29e2ea=_0x29e2();return _0x5817=function(_0x5817d6,_0x362a46){_0x5817d6=_0x5817d6-0x1b8;let _0x189646=_0x29e2ea[_0x5817d6];return _0x189646;},_0x5817(_0x272be7,_0x595c6e);}export function getUidByUin(_0x116319){for(const _0x2f18c9 in uid2UinMap){if(uid2UinMap[_0x2f18c9]===_0x116319)return _0x2f18c9;}}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 diff --git a/src/core.lib/src/entities/cache.js b/src/core.lib/src/entities/cache.js index b88ca384..d60437df 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -function _0x1ef8(_0x12bcdd,_0xbf0b8){var _0x3a571e=_0x3a57();return _0x1ef8=function(_0x1ef858,_0x319fb0){_0x1ef858=_0x1ef858-0xc6;var _0xff2247=_0x3a571e[_0x1ef858];return _0xff2247;},_0x1ef8(_0x12bcdd,_0xbf0b8);}function _0x3a57(){var _0x2be57b=['1062992LcwUin','54lqqCTS','AUDIO','wYrsP','763616slTRnc','4795125mflGQE','238779tGTsTn','VIDEO','DOCUMENT','HQkyE','4739787getpeA','zRZOa','TQwAG','OTHER','2541387hVKeZJ','deNxY','4dwZyhg','apVnw','588602Dqmzzw'];_0x3a57=function(){return _0x2be57b;};return _0x3a57();}(function(_0x455fda,_0xf9158d){var _0xf71d58=_0x1ef8,_0x3285a3=_0x455fda();while(!![]){try{var _0x5efdcc=-parseInt(_0xf71d58(0xd4))/0x1+parseInt(_0xf71d58(0xce))/0x2+-parseInt(_0xf71d58(0xc9))/0x3*(-parseInt(_0xf71d58(0xcb))/0x4)+-parseInt(_0xf71d58(0xd3))/0x5+-parseInt(_0xf71d58(0xcf))/0x6*(-parseInt(_0xf71d58(0xcd))/0x7)+parseInt(_0xf71d58(0xd2))/0x8+-parseInt(_0xf71d58(0xd8))/0x9;if(_0x5efdcc===_0xf9158d)break;else _0x3285a3['push'](_0x3285a3['shift']());}catch(_0x4b607d){_0x3285a3['push'](_0x3285a3['shift']());}}}(_0x3a57,0x7ba24));export var CacheFileType;(function(_0x4ecc67){var _0x377244=_0x1ef8,_0x277810={'deNxY':'0|1|3|4|2','apVnw':'IMAGE','zRZOa':_0x377244(0xd5),'HQkyE':_0x377244(0xc8),'TQwAG':_0x377244(0xd0),'wYrsP':_0x377244(0xd6)},_0x51f0d3=_0x277810[_0x377244(0xca)]['split']('|'),_0x38f48e=0x0;while(!![]){switch(_0x51f0d3[_0x38f48e++]){case'0':_0x4ecc67[_0x4ecc67[_0x277810[_0x377244(0xcc)]]=0x0]=_0x277810[_0x377244(0xcc)];continue;case'1':_0x4ecc67[_0x4ecc67[_0x277810[_0x377244(0xc6)]]=0x1]=_0x277810[_0x377244(0xc6)];continue;case'2':_0x4ecc67[_0x4ecc67[_0x377244(0xc8)]=0x4]=_0x277810[_0x377244(0xd7)];continue;case'3':_0x4ecc67[_0x4ecc67[_0x277810[_0x377244(0xc7)]]=0x2]=_0x277810[_0x377244(0xc7)];continue;case'4':_0x4ecc67[_0x4ecc67[_0x277810[_0x377244(0xd1)]]=0x3]=_0x277810[_0x377244(0xd1)];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +(function(_0xc1a07d,_0x16c8d4){var _0x5762e0=_0x2520,_0x5a338b=_0xc1a07d();while(!![]){try{var _0x33523c=-parseInt(_0x5762e0(0x8d))/0x1*(parseInt(_0x5762e0(0x84))/0x2)+-parseInt(_0x5762e0(0x7e))/0x3+parseInt(_0x5762e0(0x8e))/0x4*(parseInt(_0x5762e0(0x7a))/0x5)+-parseInt(_0x5762e0(0x87))/0x6*(-parseInt(_0x5762e0(0x8f))/0x7)+-parseInt(_0x5762e0(0x85))/0x8*(parseInt(_0x5762e0(0x8c))/0x9)+parseInt(_0x5762e0(0x8b))/0xa+parseInt(_0x5762e0(0x82))/0xb;if(_0x33523c===_0x16c8d4)break;else _0x5a338b['push'](_0x5a338b['shift']());}catch(_0x1201ba){_0x5a338b['push'](_0x5a338b['shift']());}}}(_0x580b,0xef575));function _0x580b(){var _0x460f82=['FLmAm','OTHER','3419067GlMxal','kZyHj','split','IMAGE','50662414QHqOcj','VIDEO','14NlrYPl','4968FuElYh','XLEvx','510rRbRMG','FjymK','1|3|4|0|2','DOCUMENT','7905800MglVFb','27477tVdMDh','202642ZSAcYv','12EnJinH','1211TAJiZG','39130jKwLZQ','XRIhz'];_0x580b=function(){return _0x460f82;};return _0x580b();}export var CacheFileType;function _0x2520(_0x46dd31,_0xf3e8a8){var _0x580bd5=_0x580b();return _0x2520=function(_0x252065,_0x644183){_0x252065=_0x252065-0x7a;var _0x201c2c=_0x580bd5[_0x252065];return _0x201c2c;},_0x2520(_0x46dd31,_0xf3e8a8);}(function(_0x4eadd5){var _0x563fa0=_0x2520,_0x583a81={'kZyHj':_0x563fa0(0x8a),'XLEvx':_0x563fa0(0x81),'FLmAm':_0x563fa0(0x7d),'FjymK':_0x563fa0(0x83),'XRIhz':'AUDIO'},_0x478d08=_0x563fa0(0x89)[_0x563fa0(0x80)]('|'),_0x22d2a0=0x0;while(!![]){switch(_0x478d08[_0x22d2a0++]){case'0':_0x4eadd5[_0x4eadd5[_0x583a81[_0x563fa0(0x7f)]]=0x3]=_0x583a81[_0x563fa0(0x7f)];continue;case'1':_0x4eadd5[_0x4eadd5[_0x583a81[_0x563fa0(0x86)]]=0x0]=_0x583a81[_0x563fa0(0x86)];continue;case'2':_0x4eadd5[_0x4eadd5[_0x583a81[_0x563fa0(0x7c)]]=0x4]=_0x583a81['FLmAm'];continue;case'3':_0x4eadd5[_0x4eadd5[_0x583a81[_0x563fa0(0x88)]]=0x1]=_0x583a81[_0x563fa0(0x88)];continue;case'4':_0x4eadd5[_0x4eadd5[_0x583a81[_0x563fa0(0x7b)]]=0x2]=_0x583a81['XRIhz'];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/constructor.d.ts b/src/core.lib/src/entities/constructor.d.ts index 2950e6be..e3931d13 100644 --- a/src/core.lib/src/entities/constructor.d.ts +++ b/src/core.lib/src/entities/constructor.d.ts @@ -1,4 +1,5 @@ -import { AtType, SendArkElement, SendFaceElement, SendFileElement, SendMarkdownElement, SendPicElement, SendPttElement, SendReplyElement, SendTextElement, SendVideoElement } from './index'; +import { AtType, SendArkElement, SendFaceElement, SendFileElement, SendMarkdownElement, SendMarketFaceElement, SendPicElement, SendPttElement, SendReplyElement, SendTextElement, SendVideoElement } from './index'; +export declare const mFaceCache: Map; export declare class SendMsgElementConstructor { static text(content: string): SendTextElement; static at(atUid: string, atNtUid: string, atType: AtType, atName: string): SendTextElement; @@ -8,6 +9,7 @@ export declare class SendMsgElementConstructor { static video(filePath: string, fileName?: string, diyThumbPath?: string): Promise; static ptt(pttPath: string): Promise; static face(faceId: number): SendFaceElement; + static mface(emojiPackageId: number, emojiId: string, key: string, faceName: string): SendMarketFaceElement; static dice(resultId: number | null): SendFaceElement; static rps(resultId: number | null): SendFaceElement; static ark(data: any): SendArkElement; diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index 7ecc522b..0b01dc5d 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x3d354e=_0x2165;(function(_0x5eda51,_0x106abf){const _0x334169=_0x2165,_0x3e6443=_0x5eda51();while(!![]){try{const _0x3db82a=parseInt(_0x334169(0x1ea))/0x1*(-parseInt(_0x334169(0x1f2))/0x2)+parseInt(_0x334169(0x214))/0x3*(parseInt(_0x334169(0x1e1))/0x4)+parseInt(_0x334169(0x215))/0x5+-parseInt(_0x334169(0x1f5))/0x6*(parseInt(_0x334169(0x220))/0x7)+-parseInt(_0x334169(0x1de))/0x8*(-parseInt(_0x334169(0x200))/0x9)+-parseInt(_0x334169(0x224))/0xa*(-parseInt(_0x334169(0x1fa))/0xb)+-parseInt(_0x334169(0x1eb))/0xc;if(_0x3db82a===_0x106abf)break;else _0x3e6443['push'](_0x3e6443['shift']());}catch(_0x39f280){_0x3e6443['push'](_0x3e6443['shift']());}}}(_0x5122,0x32d39));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x12f345}from'node:fs';import _0x5b791f from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';function _0x5122(){const _0x4b85fa=['height','zpjzt','语音转换失败,\x20请检查语音文件是否正常','end','DMLxW','2178378riLemX','dice','size','rps','FILE','text','tXGtj','width','normal','PIC','EqBra','face','dirname','then','error','MARKDOWN','AoiAB','path','gif','ARK','1136166jtOmcG','2033615hyetiF','catch','replace','writeFile','FACE','normal2','[骰子]','iJbKY','ifDgq','jpg','RPS','77aulhex','图片信息','Ori','string','130vRtjpe','join','markdown','screenshots','MyCoL','wNdUz','sep','_0.png','视频信息','REPLY','ptt','unlink','eSgRy','获取视频信息失败','video','shiiI','8YXJqqo','XpQct','UZYVB','4taUdLY','zDJTP','bGlnQ','Qwmng','ark','file','PTT','文件异常,大小为0','QaCzM','1124PJwWPh','3061764EPYmvV','abzJP','uploadFile','vtQWv','FsMLU','ZGpsa','reply','618WsMSnh','fEEmH','QubIl','189426CDJrrn','PdKwZ','copyFile','VIDEO','pic','110374XECklW'];_0x5122=function(){return _0x4b85fa;};return _0x5122();}import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';function _0x2165(_0x5d48fd,_0x2a258a){const _0x512296=_0x5122();return _0x2165=function(_0x2165b0,_0x2920a1){_0x2165b0=_0x2165b0-0x1d4;let _0x355479=_0x512296[_0x2165b0];return _0x355479;},_0x2165(_0x5d48fd,_0x2a258a);}export class SendMsgElementConstructor{static[_0x3d354e(0x205)](_0x595786){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':_0x595786,'atType':AtType['notAt'],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x489b4f,_0x3e2caf,_0x439b18,_0x25fd78){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x25fd78,'atType':_0x439b18,'atUid':_0x489b4f,'atTinyId':'','atNtUid':_0x3e2caf}};}static[_0x3d354e(0x1f1)](_0x34d7ba,_0x5c1a86,_0x5a008d,_0x235d42){const _0x43655f=_0x3d354e;return{'elementType':ElementType[_0x43655f(0x1d7)],'elementId':'','replyElement':{'replayMsgSeq':_0x34d7ba,'replayMsgId':_0x5c1a86,'senderUin':_0x5a008d,'senderUinStr':_0x235d42}};}static async[_0x3d354e(0x1f9)](_0x3944a6,_0x11fd33='',_0x407bb2=0x0){const _0xb66668=_0x3d354e,_0x1856d3={'zDJTP':function(_0x22cd62,_0x387fc6){return _0x22cd62===_0x387fc6;},'euQxP':'文件异常,大小为0','tXGtj':function(_0x48d948,_0x27c1f3){return _0x48d948(_0x27c1f3);}},{md5:_0x262b52,fileName:_0x2efb16,path:_0x4fbd93,fileSize:_0x2a9974}=await NTQQFileApi[_0xb66668(0x1ed)](_0x3944a6,ElementType['PIC'],_0x407bb2);if(_0x1856d3[_0xb66668(0x1e2)](_0x2a9974,0x0))throw _0x1856d3['euQxP'];const _0x1bba97=await NTQQFileApi['getImageSize'](_0x3944a6),_0x2d810e={'md5HexStr':_0x262b52,'fileSize':_0x2a9974['toString'](),'picWidth':_0x1bba97?.[_0xb66668(0x207)],'picHeight':_0x1bba97?.[_0xb66668(0x1fb)],'fileName':_0x2efb16,'sourcePath':_0x4fbd93,'original':!![],'picType':_0x1856d3[_0xb66668(0x206)](isGIF,_0x3944a6)?PicType[_0xb66668(0x212)]:PicType[_0xb66668(0x21e)],'picSubType':_0x407bb2,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x11fd33};return logDebug(_0xb66668(0x221),_0x2d810e),{'elementType':ElementType[_0xb66668(0x209)],'elementId':'','picElement':_0x2d810e};}static async[_0x3d354e(0x1e6)](_0x5c4ed3,_0x17ba40=''){const _0x117498=_0x3d354e,_0x35a4c2={'QubIl':function(_0x1ca604,_0x4c17df){return _0x1ca604===_0x4c17df;},'eSgRy':_0x117498(0x1e8),'AoiAB':function(_0x23f56b,_0x8d127e){return _0x23f56b||_0x8d127e;}},{md5:_0x33d50b,fileName:_0x486006,path:_0xf45b88,fileSize:_0x41699b}=await NTQQFileApi['uploadFile'](_0x5c4ed3,ElementType[_0x117498(0x204)]);if(_0x35a4c2[_0x117498(0x1f4)](_0x41699b,0x0))throw _0x35a4c2[_0x117498(0x1da)];const _0x34b069={'elementType':ElementType[_0x117498(0x204)],'elementId':'','fileElement':{'fileName':_0x35a4c2[_0x117498(0x210)](_0x17ba40,_0x486006),'filePath':_0xf45b88,'fileSize':_0x41699b['toString']()}};return _0x34b069;}static async[_0x3d354e(0x1dc)](_0x4b522b,_0x132943='',_0xab8212=''){const _0x3551b7=_0x3d354e,_0x1b06eb={'zpjzt':function(_0x1b1e2e,_0x104c7f,_0x1d6c8a){return _0x1b1e2e(_0x104c7f,_0x1d6c8a);},'EqBra':'获取视频封面失败,使用默认封面','ZGpsa':_0x3551b7(0x20e),'QaCzM':function(_0x117373,_0x545eb2){return _0x117373+_0x545eb2;},'PdKwZ':_0x3551b7(0x1e8),'DMLxW':function(_0x5e11bc,_0x2a51f8){return _0x5e11bc(_0x2a51f8);},'fEEmH':'mp4','iJbKY':_0x3551b7(0x1d6),'UZYVB':function(_0x5ab2d9,_0x7594e5){return _0x5ab2d9||_0x7594e5;}},{fileName:_0x118ed5,path:_0x264ba4,fileSize:_0xc4a50f,md5:_0x14be1f}=await NTQQFileApi[_0x3551b7(0x1ed)](_0x4b522b,ElementType[_0x3551b7(0x1f8)]);if(_0xc4a50f===0x0)throw _0x1b06eb[_0x3551b7(0x1f6)];const _0x137af6=_0x1b06eb[_0x3551b7(0x1ff)](require,_0x3551b7(0x211));let _0x3542fe=_0x264ba4[_0x3551b7(0x217)](_0x137af6[_0x3551b7(0x1d4)]+_0x3551b7(0x222)+_0x137af6[_0x3551b7(0x1d4)],_0x137af6[_0x3551b7(0x1d4)]+'Thumb'+_0x137af6[_0x3551b7(0x1d4)]);_0x3542fe=_0x137af6[_0x3551b7(0x20c)](_0x3542fe);let _0x2d4634={'width':0x780,'height':0x438,'time':0xf,'format':_0x1b06eb[_0x3551b7(0x1f3)],'size':_0xc4a50f,'filePath':_0x4b522b};try{_0x2d4634=await getVideoInfo(_0x264ba4),logDebug(_0x1b06eb[_0x3551b7(0x21c)],_0x2d4634);}catch(_0x37c994){_0x1b06eb[_0x3551b7(0x1fc)](logError,_0x3551b7(0x1db),_0x37c994);}const _0x492806=new Promise((_0x251cb2,_0x8baa94)=>{const _0x501150=_0x3551b7,_0x158a9a={'vtQWv':function(_0xf4f9ef,_0x21e88e){return _0xf4f9ef(_0x21e88e);},'wNdUz':function(_0x4470d1,_0x4a7f24,_0x107a6a){const _0x1aa4ca=_0x2165;return _0x1b06eb[_0x1aa4ca(0x1fc)](_0x4470d1,_0x4a7f24,_0x107a6a);},'MyCoL':_0x1b06eb[_0x501150(0x20a)],'abzJP':function(_0x40b428,_0x48805f){return _0x40b428(_0x48805f);}},_0x1d9344=_0x14be1f+_0x501150(0x1d5),_0x3202dc=_0x137af6[_0x501150(0x225)](_0x3542fe,_0x1d9344);_0x5b791f(_0x4b522b)['on']('end',()=>{})['on'](_0x1b06eb[_0x501150(0x1f0)],_0x58f2b4=>{const _0x4a16b1=_0x501150;_0x158a9a[_0x4a16b1(0x229)](logDebug,_0x158a9a[_0x4a16b1(0x228)],_0x58f2b4),_0xab8212?_0x12f345[_0x4a16b1(0x1f7)](_0xab8212,_0x3202dc)[_0x4a16b1(0x20d)](()=>{const _0x5eb10a=_0x4a16b1;_0x158a9a[_0x5eb10a(0x1ee)](_0x251cb2,_0x3202dc);})[_0x4a16b1(0x216)](_0x8baa94):_0x12f345[_0x4a16b1(0x218)](_0x3202dc,defaultVideoThumb)[_0x4a16b1(0x20d)](()=>{_0x251cb2(_0x3202dc);})[_0x4a16b1(0x216)](_0x8baa94);})[_0x501150(0x227)]({'timestamps':[0x0],'filename':_0x1d9344,'folder':_0x3542fe,'size':_0x1b06eb[_0x501150(0x1e9)](_0x1b06eb['QaCzM'](_0x2d4634[_0x501150(0x207)],'x'),_0x2d4634['height'])})['on'](_0x501150(0x1fe),()=>{const _0x24b12b=_0x501150;_0x158a9a[_0x24b12b(0x1ec)](_0x251cb2,_0x3202dc);});}),_0x124310=new Map(),_0x5dce30=await _0x492806,_0x2d12c8=(await _0x12f345['stat'](_0x5dce30))[_0x3551b7(0x202)];_0x124310['set'](0x0,_0x5dce30);const _0x1ccf83=await _0x1b06eb[_0x3551b7(0x1ff)](calculateFileMD5,_0x5dce30),_0x573e0b={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x1b06eb[_0x3551b7(0x1e0)](_0x132943,_0x118ed5),'filePath':_0x264ba4,'videoMd5':_0x14be1f,'thumbMd5':_0x1ccf83,'fileTime':_0x2d4634['time'],'thumbPath':_0x124310,'thumbSize':_0x2d12c8,'thumbWidth':_0x2d4634[_0x3551b7(0x207)],'thumbHeight':_0x2d4634[_0x3551b7(0x1fb)],'fileSize':_0x1b06eb['QaCzM']('',_0xc4a50f)}};return _0x573e0b;}static async[_0x3d354e(0x1d8)](_0x263407){const _0x498842=_0x3d354e,_0x55d231={'ifDgq':function(_0x412060,_0x2cda81){return _0x412060(_0x2cda81);},'XpQct':_0x498842(0x1e8),'FsMLU':function(_0x390a6d,_0x192a9e){return _0x390a6d||_0x192a9e;}},{converted:_0x412709,path:_0x58cf16,duration:_0x3af15d}=await _0x55d231[_0x498842(0x21d)](encodeSilk,_0x263407);if(!_0x58cf16)throw _0x498842(0x1fd);const {md5:_0x20474d,fileName:_0x40af0b,path:_0x4b4f71,fileSize:_0x6fc1bb}=await NTQQFileApi[_0x498842(0x1ed)](_0x58cf16,ElementType['PTT']);if(_0x6fc1bb===0x0)throw _0x55d231[_0x498842(0x1df)];return _0x412709&&_0x12f345[_0x498842(0x1d9)](_0x58cf16)[_0x498842(0x20d)](),{'elementType':ElementType[_0x498842(0x1e7)],'elementId':'','pttElement':{'fileName':_0x40af0b,'filePath':_0x4b4f71,'md5HexStr':_0x20474d,'fileSize':_0x6fc1bb,'duration':_0x55d231[_0x498842(0x1ef)](_0x3af15d,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[_0x3d354e(0x20b)](_0x54106b){const _0x56d526=_0x3d354e,_0x185acd={'shiiI':function(_0x2cfe3f,_0x60f440){return _0x2cfe3f<_0x60f440;}};return{'elementType':ElementType[_0x56d526(0x219)],'elementId':'','faceElement':{'faceIndex':_0x54106b,'faceType':_0x185acd[_0x56d526(0x1dd)](_0x54106b,0xde)?FaceType[_0x56d526(0x208)]:FaceType[_0x56d526(0x21a)]}};}static[_0x3d354e(0x201)](_0xd66d31){const _0x39e291=_0x3d354e,_0x44bb87={'xjBtM':_0x39e291(0x21b)};return{'elementType':ElementType[_0x39e291(0x219)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x39e291(0x201)],'faceType':FaceType[_0x39e291(0x201)],'faceText':_0x44bb87['xjBtM'],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x3d354e(0x203)](_0x5afd80){const _0x569ef1=_0x3d354e,_0x3145a9={'Qwmng':'[包剪锤]'};return{'elementType':ElementType[_0x569ef1(0x219)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x569ef1(0x21f)],'faceText':_0x3145a9[_0x569ef1(0x1e4)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x3d354e(0x1e5)](_0x5bdfb5){const _0x2cb31c=_0x3d354e,_0x1dc517={'bGlnQ':function(_0x592517,_0x13bfad){return _0x592517!==_0x13bfad;},'PhcnU':_0x2cb31c(0x223)};return _0x1dc517[_0x2cb31c(0x1e3)](typeof _0x5bdfb5,_0x1dc517['PhcnU'])&&(_0x5bdfb5=JSON['stringify'](_0x5bdfb5)),{'elementType':ElementType[_0x2cb31c(0x213)],'elementId':'','arkElement':{'bytesData':_0x5bdfb5,'linkInfo':null,'subElementType':null}};}static[_0x3d354e(0x226)](_0x17ef64){const _0x231d96=_0x3d354e;return{'elementType':ElementType[_0x231d96(0x20f)],'elementId':'','markdownElement':{'content':_0x17ef64}};}} \ No newline at end of file +const _0x93ace4=_0x2b86;(function(_0x45e22a,_0x5307c3){const _0x11ac8c=_0x2b86,_0x1f1cd1=_0x45e22a();while(!![]){try{const _0x1e5cac=-parseInt(_0x11ac8c(0x123))/0x1+-parseInt(_0x11ac8c(0x12a))/0x2*(-parseInt(_0x11ac8c(0x151))/0x3)+-parseInt(_0x11ac8c(0x115))/0x4+parseInt(_0x11ac8c(0x14b))/0x5+parseInt(_0x11ac8c(0x15a))/0x6*(-parseInt(_0x11ac8c(0x112))/0x7)+-parseInt(_0x11ac8c(0x14d))/0x8*(-parseInt(_0x11ac8c(0x120))/0x9)+parseInt(_0x11ac8c(0x157))/0xa*(-parseInt(_0x11ac8c(0x13e))/0xb);if(_0x1e5cac===_0x5307c3)break;else _0x1f1cd1['push'](_0x1f1cd1['shift']());}catch(_0xcbb42c){_0x1f1cd1['push'](_0x1f1cd1['shift']());}}}(_0x4711,0x6169b));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x218cee}from'node:fs';import _0x54c5bb from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';function _0x4711(){const _0x3e1146=['视频信息','unlink','RPS','_0.png','jpg','Thumb','pEbRR','图片信息','获取视频信息失败','[骰子]','notAt','1489033WBwHAd','file','hWLKd','2761896reXCTW','[包剪锤]','mp4','MFACE','screenshots','TEXT','dirname','文件异常,大小为0','SgZpy','OozAu','ffUAs','9TvjOBn','normal2','width','368207VEdgYK','sep','语音转换失败,\x20请检查语音文件是否正常','toString','[商城表情]','path','RsQyf','20FCXJDa','text','REPLY','LnwqG','iOIWc','uploadFile','dice','FDVmF','video','string','PTT','then','copyFile','TlLud','idZfM','writeFile','hohLS','error','reply','获取视频封面失败,使用默认封面','102377LYNlHV','catch','GHvGx','rps','XHDMc','ark','stringify','njvzc','fphmf','SEnBg','FACE','uRhWr','JSirV','2781320HioVGh','RKfqW','4093184jaDuRE','set','sxfFK','height','200292ezPEiX','rEaRl','mface','time','HptIQ','PdxbX','70gauboc','gif','get','6RGlrbt'];_0x4711=function(){return _0x3e1146;};return _0x4711();}import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';function _0x2b86(_0x22fea1,_0x52971d){const _0x471115=_0x4711();return _0x2b86=function(_0x2b862a,_0x1528fa){_0x2b862a=_0x2b862a-0x111;let _0x174662=_0x471115[_0x2b862a];return _0x174662;},_0x2b86(_0x22fea1,_0x52971d);}export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x93ace4(0x12b)](_0x1f1cfd){const _0x330ea4=_0x93ace4;return{'elementType':ElementType[_0x330ea4(0x11a)],'elementId':'','textElement':{'content':_0x1f1cfd,'atType':AtType[_0x330ea4(0x111)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x33f89b,_0x4df2f7,_0x25729d,_0x4047ea){const _0x5c153d=_0x93ace4;return{'elementType':ElementType[_0x5c153d(0x11a)],'elementId':'','textElement':{'content':'@'+_0x4047ea,'atType':_0x25729d,'atUid':_0x33f89b,'atTinyId':'','atNtUid':_0x4df2f7}};}static[_0x93ace4(0x13c)](_0x5f46b3,_0x52c704,_0x213e89,_0x2e06c4){const _0x53f02d=_0x93ace4;return{'elementType':ElementType[_0x53f02d(0x12c)],'elementId':'','replyElement':{'replayMsgSeq':_0x5f46b3,'replayMsgId':_0x52c704,'senderUin':_0x213e89,'senderUinStr':_0x2e06c4}};}static async['pic'](_0x3551fa,_0x1bb43f='',_0xacaac4=0x0){const _0x379dcd=_0x93ace4,_0x1fa2fb={'FDVmF':function(_0x38145a,_0x40ee8a){return _0x38145a===_0x40ee8a;},'ffUAs':_0x379dcd(0x11c),'LnwqG':function(_0x3b214c,_0xf6d743,_0x2c9315){return _0x3b214c(_0xf6d743,_0x2c9315);},'AzhxS':_0x379dcd(0x162)},{md5:_0x5166ee,fileName:_0x775e9e,path:_0x3dfbab,fileSize:_0x33f3a0}=await NTQQFileApi[_0x379dcd(0x12f)](_0x3551fa,ElementType['PIC'],_0xacaac4);if(_0x1fa2fb[_0x379dcd(0x131)](_0x33f3a0,0x0))throw _0x1fa2fb[_0x379dcd(0x11f)];const _0x366b06=await NTQQFileApi['getImageSize'](_0x3551fa),_0x2059fd={'md5HexStr':_0x5166ee,'fileSize':_0x33f3a0[_0x379dcd(0x126)](),'picWidth':_0x366b06?.[_0x379dcd(0x122)],'picHeight':_0x366b06?.[_0x379dcd(0x150)],'fileName':_0x775e9e,'sourcePath':_0x3dfbab,'original':!![],'picType':isGIF(_0x3551fa)?PicType[_0x379dcd(0x158)]:PicType[_0x379dcd(0x15f)],'picSubType':_0xacaac4,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x1bb43f};return _0x1fa2fb[_0x379dcd(0x12d)](logDebug,_0x1fa2fb['AzhxS'],_0x2059fd),{'elementType':ElementType['PIC'],'elementId':'','picElement':_0x2059fd};}static async[_0x93ace4(0x113)](_0x28b688,_0x326293=''){const _0x22438f=_0x93ace4,_0x27d7fb={'uRhWr':function(_0x34fc81,_0x5dd9b3){return _0x34fc81===_0x5dd9b3;},'idZfM':function(_0x325d0d,_0x110305){return _0x325d0d||_0x110305;}},{md5:_0x4d26a7,fileName:_0x6e575b,path:_0x8b4d03,fileSize:_0x3b604f}=await NTQQFileApi['uploadFile'](_0x28b688,ElementType['FILE']);if(_0x27d7fb[_0x22438f(0x149)](_0x3b604f,0x0))throw _0x22438f(0x11c);const _0x5f4f42={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x27d7fb[_0x22438f(0x138)](_0x326293,_0x6e575b),'filePath':_0x8b4d03,'fileSize':_0x3b604f[_0x22438f(0x126)]()}};return _0x5f4f42;}static async[_0x93ace4(0x132)](_0x40ccfc,_0x5531c6='',_0x2b3198=''){const _0x12b2d7=_0x93ace4,_0x1f78b4={'HptIQ':function(_0x24e944,_0x384ef5,_0x1f02c9){return _0x24e944(_0x384ef5,_0x1f02c9);},'SEnBg':_0x12b2d7(0x13d),'ceDTx':function(_0x320c3e,_0x5921e3){return _0x320c3e(_0x5921e3);},'fphmf':'end','JRVFl':_0x12b2d7(0x13b),'SgZpy':function(_0x2a20d7,_0x18f92f){return _0x2a20d7+_0x18f92f;},'rEaRl':_0x12b2d7(0x11c),'sxfFK':_0x12b2d7(0x128),'hWLKd':_0x12b2d7(0x117),'pEbRR':function(_0x8a6818,_0x53189b){return _0x8a6818(_0x53189b);},'MPtYH':_0x12b2d7(0x15b),'JSirV':function(_0x16b6f4,_0x257be4,_0xdf3377){return _0x16b6f4(_0x257be4,_0xdf3377);},'RsQyf':_0x12b2d7(0x163),'RKfqW':function(_0x534df8,_0x556f9d){return _0x534df8(_0x556f9d);},'iDifi':function(_0x411b68,_0x2a28e6){return _0x411b68||_0x2a28e6;}},{fileName:_0x5d2dbb,path:_0x1d55fd,fileSize:_0x241caa,md5:_0x470cde}=await NTQQFileApi[_0x12b2d7(0x12f)](_0x40ccfc,ElementType['VIDEO']);if(_0x241caa===0x0)throw _0x1f78b4[_0x12b2d7(0x152)];const _0x52f981=require(_0x1f78b4[_0x12b2d7(0x14f)]);let _0x970504=_0x1d55fd['replace'](_0x52f981[_0x12b2d7(0x124)]+'Ori'+_0x52f981[_0x12b2d7(0x124)],_0x52f981[_0x12b2d7(0x124)]+_0x12b2d7(0x160)+_0x52f981['sep']);_0x970504=_0x52f981[_0x12b2d7(0x11b)](_0x970504);let _0x48b9da={'width':0x780,'height':0x438,'time':0xf,'format':_0x1f78b4[_0x12b2d7(0x114)],'size':_0x241caa,'filePath':_0x40ccfc};try{_0x48b9da=await _0x1f78b4[_0x12b2d7(0x161)](getVideoInfo,_0x1d55fd),_0x1f78b4['HptIQ'](logDebug,_0x1f78b4['MPtYH'],_0x48b9da);}catch(_0x4d81a9){_0x1f78b4[_0x12b2d7(0x14a)](logError,_0x1f78b4[_0x12b2d7(0x129)],_0x4d81a9);}const _0x46fcbe=new Promise((_0x487aeb,_0x685788)=>{const _0x39a6f6=_0x12b2d7,_0x362211={'PdxbX':function(_0x21728c,_0x17f423){return _0x1f78b4['ceDTx'](_0x21728c,_0x17f423);}},_0x3253ca=_0x470cde+_0x39a6f6(0x15e),_0x59aee7=_0x52f981['join'](_0x970504,_0x3253ca);_0x54c5bb(_0x40ccfc)['on'](_0x1f78b4[_0x39a6f6(0x146)],()=>{})['on'](_0x1f78b4['JRVFl'],_0xe1f5d1=>{const _0xfec582=_0x39a6f6,_0xfd46e5={'njvzc':function(_0x5e3d6c,_0x1414a1){return _0x5e3d6c(_0x1414a1);}};_0x1f78b4[_0xfec582(0x155)](logDebug,_0x1f78b4[_0xfec582(0x147)],_0xe1f5d1),_0x2b3198?_0x218cee[_0xfec582(0x136)](_0x2b3198,_0x59aee7)[_0xfec582(0x135)](()=>{const _0x594e6d=_0xfec582;_0x362211[_0x594e6d(0x156)](_0x487aeb,_0x59aee7);})['catch'](_0x685788):_0x218cee[_0xfec582(0x139)](_0x59aee7,defaultVideoThumb)[_0xfec582(0x135)](()=>{const _0x271dfc=_0xfec582;_0xfd46e5[_0x271dfc(0x145)](_0x487aeb,_0x59aee7);})[_0xfec582(0x13f)](_0x685788);})[_0x39a6f6(0x119)]({'timestamps':[0x0],'filename':_0x3253ca,'folder':_0x970504,'size':_0x1f78b4[_0x39a6f6(0x11d)](_0x48b9da[_0x39a6f6(0x122)]+'x',_0x48b9da[_0x39a6f6(0x150)])})['on'](_0x1f78b4[_0x39a6f6(0x146)],()=>{_0x487aeb(_0x59aee7);});}),_0x287510=new Map(),_0x41b11d=await _0x46fcbe,_0x2bc242=(await _0x218cee['stat'](_0x41b11d))['size'];_0x287510[_0x12b2d7(0x14e)](0x0,_0x41b11d);const _0x3d9585=await _0x1f78b4[_0x12b2d7(0x14c)](calculateFileMD5,_0x41b11d),_0x4b44a3={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x1f78b4['iDifi'](_0x5531c6,_0x5d2dbb),'filePath':_0x1d55fd,'videoMd5':_0x470cde,'thumbMd5':_0x3d9585,'fileTime':_0x48b9da[_0x12b2d7(0x154)],'thumbPath':_0x287510,'thumbSize':_0x2bc242,'thumbWidth':_0x48b9da['width'],'thumbHeight':_0x48b9da['height'],'fileSize':_0x1f78b4[_0x12b2d7(0x11d)]('',_0x241caa)}};return _0x4b44a3;}static async['ptt'](_0x10fe43){const _0x18e1de=_0x93ace4,_0x2aef60={'LpIGG':function(_0xbbd906,_0x478c02){return _0xbbd906(_0x478c02);},'zOVNN':_0x18e1de(0x125),'hohLS':_0x18e1de(0x11c)},{converted:_0x74ce87,path:_0x104e90,duration:_0x4c5ecf}=await _0x2aef60['LpIGG'](encodeSilk,_0x10fe43);if(!_0x104e90)throw _0x2aef60['zOVNN'];const {md5:_0x41e509,fileName:_0x1da344,path:_0x1141ed,fileSize:_0x46447a}=await NTQQFileApi[_0x18e1de(0x12f)](_0x104e90,ElementType[_0x18e1de(0x134)]);if(_0x46447a===0x0)throw _0x2aef60[_0x18e1de(0x13a)];return _0x74ce87&&_0x218cee[_0x18e1de(0x15c)](_0x104e90)['then'](),{'elementType':ElementType['PTT'],'elementId':'','pttElement':{'fileName':_0x1da344,'filePath':_0x1141ed,'md5HexStr':_0x41e509,'fileSize':_0x46447a,'duration':_0x4c5ecf||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'](_0x3d14e1){const _0xc9bf46=_0x93ace4,_0x5c04f0={'TlLud':function(_0x3a6b47,_0x2c6ddc){return _0x3a6b47<_0x2c6ddc;}};return{'elementType':ElementType[_0xc9bf46(0x148)],'elementId':'','faceElement':{'faceIndex':_0x3d14e1,'faceType':_0x5c04f0[_0xc9bf46(0x137)](_0x3d14e1,0xde)?FaceType['normal']:FaceType[_0xc9bf46(0x121)]}};}static[_0x93ace4(0x153)](_0xdcd6be,_0x4b3393,_0x5308bc,_0x50014e){const _0x311f1e=_0x93ace4,_0x48eb14={'iOIWc':_0x311f1e(0x127)};return{'elementType':ElementType[_0x311f1e(0x118)],'marketFaceElement':{'emojiPackageId':_0xdcd6be,'emojiId':_0x4b3393,'key':_0x5308bc,'faceName':_0x50014e||mFaceCache[_0x311f1e(0x159)](_0x4b3393)||_0x48eb14[_0x311f1e(0x12e)]}};}static['dice'](_0x4be4a6){const _0x2f3924=_0x93ace4,_0x1c70b3={'GHvGx':_0x2f3924(0x164)};return{'elementType':ElementType[_0x2f3924(0x148)],'elementId':'','faceElement':{'faceIndex':FaceIndex['dice'],'faceType':FaceType[_0x2f3924(0x130)],'faceText':_0x1c70b3[_0x2f3924(0x140)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x93ace4(0x141)](_0x480595){const _0x4e8976=_0x93ace4;return{'elementType':ElementType[_0x4e8976(0x148)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x4e8976(0x15d)],'faceText':_0x4e8976(0x116),'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x93ace4(0x143)](_0x2a568b){const _0x4d6b38=_0x93ace4,_0x167d2f={'XHDMc':function(_0x4227a6,_0x41c4fa){return _0x4227a6!==_0x41c4fa;},'OozAu':_0x4d6b38(0x133)};return _0x167d2f[_0x4d6b38(0x142)](typeof _0x2a568b,_0x167d2f[_0x4d6b38(0x11e)])&&(_0x2a568b=JSON[_0x4d6b38(0x144)](_0x2a568b)),{'elementType':ElementType['ARK'],'elementId':'','arkElement':{'bytesData':_0x2a568b,'linkInfo':null,'subElementType':null}};}static['markdown'](_0x5977f2){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0x5977f2}};}} \ 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 1ed6abe8..c7361d28 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -function _0x4bc8(){var _0x3e92e0=['CqYRV','1417838UlLefz','5xVSIkt','13360inmnBR','1192373aQUfGq','owner','VlFBp','3501908lYZwlX','2089428wgHjla','4023ZLpwzU','normal','1717065qLBzub','1758052dvVbsy'];_0x4bc8=function(){return _0x3e92e0;};return _0x4bc8();}(function(_0x561556,_0xdcbdee){var _0x1b1124=_0x4de8,_0x5ead07=_0x561556();while(!![]){try{var _0x34f4c0=parseInt(_0x1b1124(0x1b1))/0x1+parseInt(_0x1b1124(0x1af))/0x2+parseInt(_0x1b1124(0x1ae))/0x3+parseInt(_0x1b1124(0x1b7))/0x4*(-parseInt(_0x1b1124(0x1b2))/0x5)+-parseInt(_0x1b1124(0x1b8))/0x6+-parseInt(_0x1b1124(0x1b4))/0x7+-parseInt(_0x1b1124(0x1b3))/0x8*(parseInt(_0x1b1124(0x1ac))/0x9);if(_0x34f4c0===_0xdcbdee)break;else _0x5ead07['push'](_0x5ead07['shift']());}catch(_0x3d371f){_0x5ead07['push'](_0x5ead07['shift']());}}}(_0x4bc8,0xb1e63));function _0x4de8(_0x3998b8,_0x56fcf8){var _0x4bc864=_0x4bc8();return _0x4de8=function(_0x4de8b2,_0x370132){_0x4de8b2=_0x4de8b2-0x1ac;var _0xa86612=_0x4bc864[_0x4de8b2];return _0xa86612;},_0x4de8(_0x3998b8,_0x56fcf8);}export var GroupMemberRole;(function(_0x3ebe2d){var _0x3b8e5e=_0x4de8,_0x35dcd8={'VlFBp':_0x3b8e5e(0x1ad),'CqYRV':'admin'};_0x3ebe2d[_0x3ebe2d[_0x35dcd8[_0x3b8e5e(0x1b6)]]=0x2]=_0x3b8e5e(0x1ad),_0x3ebe2d[_0x3ebe2d[_0x35dcd8[_0x3b8e5e(0x1b0)]]=0x3]='admin',_0x3ebe2d[_0x3ebe2d[_0x3b8e5e(0x1b5)]=0x4]=_0x3b8e5e(0x1b5);}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +(function(_0xa45679,_0x25f57b){var _0x4c9242=_0x13b5,_0x512878=_0xa45679();while(!![]){try{var _0x325822=-parseInt(_0x4c9242(0x106))/0x1+parseInt(_0x4c9242(0xfc))/0x2+-parseInt(_0x4c9242(0xfd))/0x3*(parseInt(_0x4c9242(0x102))/0x4)+-parseInt(_0x4c9242(0xfa))/0x5+parseInt(_0x4c9242(0x103))/0x6+-parseInt(_0x4c9242(0xfe))/0x7*(parseInt(_0x4c9242(0xff))/0x8)+-parseInt(_0x4c9242(0xfb))/0x9*(-parseInt(_0x4c9242(0xf8))/0xa);if(_0x325822===_0x25f57b)break;else _0x512878['push'](_0x512878['shift']());}catch(_0x43b7f3){_0x512878['push'](_0x512878['shift']());}}}(_0xfe08,0x88617));function _0xfe08(){var _0x67310e=['306qkXjby','1215710dDeoPp','564bHUWmr','860209TyTErU','40KZmKgW','owner','vJfJs','5488FGrzYn','2126394BAzwjQ','normal','admin','1084659qWGVpm','530930yxYQab','FCzaj','1258855vsJxcU'];_0xfe08=function(){return _0x67310e;};return _0xfe08();}function _0x13b5(_0x3dd1ef,_0x1c2471){var _0xfe0878=_0xfe08();return _0x13b5=function(_0x13b5be,_0x6c5615){_0x13b5be=_0x13b5be-0xf8;var _0x3ceab5=_0xfe0878[_0x13b5be];return _0x3ceab5;},_0x13b5(_0x3dd1ef,_0x1c2471);}export var GroupMemberRole;(function(_0x559295){var _0x59a916=_0x13b5,_0x286012={'FCzaj':'normal','cuAdn':_0x59a916(0x105),'vJfJs':'owner'};_0x559295[_0x559295[_0x59a916(0x104)]=0x2]=_0x286012[_0x59a916(0xf9)],_0x559295[_0x559295[_0x59a916(0x105)]=0x3]=_0x286012['cuAdn'],_0x559295[_0x559295[_0x286012[_0x59a916(0x101)]]=0x4]=_0x59a916(0x100);}(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 6fe63538..7c7684f9 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x1e811d,_0x4a6d06){var _0x497b35=_0x136a,_0x5e25fb=_0x1e811d();while(!![]){try{var _0x5d8080=parseInt(_0x497b35(0x14b))/0x1*(parseInt(_0x497b35(0x148))/0x2)+parseInt(_0x497b35(0x14d))/0x3+parseInt(_0x497b35(0x149))/0x4*(parseInt(_0x497b35(0x147))/0x5)+parseInt(_0x497b35(0x14e))/0x6+-parseInt(_0x497b35(0x14a))/0x7*(-parseInt(_0x497b35(0x14c))/0x8)+parseInt(_0x497b35(0x14f))/0x9+-parseInt(_0x497b35(0x146))/0xa;if(_0x5d8080===_0x4a6d06)break;else _0x5e25fb['push'](_0x5e25fb['shift']());}catch(_0x256f03){_0x5e25fb['push'](_0x5e25fb['shift']());}}}(_0x12f1,0xb68d2));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';function _0x136a(_0x2dc42b,_0x12ccb9){var _0x12f159=_0x12f1();return _0x136a=function(_0x136a46,_0x2ea02f){_0x136a46=_0x136a46-0x146;var _0x3b0420=_0x12f159[_0x136a46];return _0x3b0420;},_0x136a(_0x2dc42b,_0x12ccb9);}function _0x12f1(){var _0x1e4a35=['3706185xbLxmY','130861thykoD','8zgEvtV','2353053KsxyLF','2359590fHSEtH','4342635AEaDde','28449720UNHVpt','5zKKvZp','6vgWyty','4042132AtiquO'];_0x12f1=function(){return _0x1e4a35;};return _0x12f1();}export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x4f07de,_0x53fe0d){var _0x3f1dcc=_0x26c2,_0x1dd834=_0x4f07de();while(!![]){try{var _0x58d6f6=-parseInt(_0x3f1dcc(0x1b6))/0x1+-parseInt(_0x3f1dcc(0x1bd))/0x2+-parseInt(_0x3f1dcc(0x1b8))/0x3*(-parseInt(_0x3f1dcc(0x1b9))/0x4)+-parseInt(_0x3f1dcc(0x1ba))/0x5+parseInt(_0x3f1dcc(0x1b5))/0x6*(parseInt(_0x3f1dcc(0x1bc))/0x7)+parseInt(_0x3f1dcc(0x1bb))/0x8+parseInt(_0x3f1dcc(0x1b7))/0x9;if(_0x58d6f6===_0x53fe0d)break;else _0x1dd834['push'](_0x1dd834['shift']());}catch(_0x25fa2b){_0x1dd834['push'](_0x1dd834['shift']());}}}(_0x48ce,0x302a1));function _0x48ce(){var _0x5b471e=['7nwUkhi','42162PIQXdR','2282448PJyzev','309390QIODbP','352935ilgnzs','41073ClGdpU','92NTGIzy','1501410pBXniN','748144YDfjCY'];_0x48ce=function(){return _0x5b471e;};return _0x48ce();}function _0x26c2(_0x1c9db0,_0x258510){var _0x48ce5c=_0x48ce();return _0x26c2=function(_0x26c258,_0x410e74){_0x26c258=_0x26c258-0x1b5;var _0x5297ae=_0x48ce5c[_0x26c258];return _0x5297ae;},_0x26c2(_0x1c9db0,_0x258510);}export*from'./user';export*from'./group';export*from'./msg';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 f6e93027..2e8303a9 100644 --- a/src/core.lib/src/entities/msg.d.ts +++ b/src/core.lib/src/entities/msg.d.ts @@ -13,6 +13,7 @@ export declare enum ElementType { FACE = 6, REPLY = 7, ARK = 10, + MFACE = 11, MARKDOWN = 14 } export interface SendTextElement { @@ -87,6 +88,10 @@ export interface SendFaceElement { elementId: ''; faceElement: FaceElement; } +export interface SendMarketFaceElement { + elementType: ElementType.MFACE; + marketFaceElement: MarketFaceElement; +} export interface FileElement { 'fileMd5'?: ''; 'fileName': string; @@ -123,7 +128,7 @@ export interface SendMarkdownElement { elementId: ''; markdownElement: MarkdownElement; } -export type SendMessageElement = SendTextElement | SendPttElement | SendPicElement | SendReplyElement | SendFaceElement | SendFileElement | SendVideoElement | SendArkElement | SendMarkdownElement; +export type SendMessageElement = SendTextElement | SendPttElement | SendPicElement | SendReplyElement | SendFaceElement | SendMarketFaceElement | SendFileElement | SendVideoElement | SendArkElement | SendMarkdownElement; export declare enum AtType { notAt = 0, atAll = 1, @@ -221,42 +226,10 @@ export interface FaceElement { randomType?: number; } export interface MarketFaceElement { - 'itemType': 6; - 'faceInfo': 1; - 'emojiPackageId': 203875; - 'subType': 3; - 'mediaType': 0; - 'imageWidth': 200; - 'imageHeight': 200; - 'faceName': string; - 'emojiId': '094d53bd1c9ac5d35d04b08e8a6c992c'; - 'key': 'a8b1dd0aebc8d910'; - 'param': null; - 'mobileParam': null; - 'sourceType': null; - 'startTime': null; - 'endTime': null; - 'emojiType': 1; - 'hasIpProduct': null; - 'voiceItemHeightArr': null; - 'sourceName': null; - 'sourceJumpUrl': null; - 'sourceTypeName': null; - 'backColor': null; - 'volumeColor': null; - 'staticFacePath': 'E:\\SystemDocuments\\QQ\\721011692\\nt_qq\\nt_data\\Emoji\\marketface\\203875\\094d53bd1c9ac5d35d04b08e8a6c992c_aio.png'; - 'dynamicFacePath': 'E:\\SystemDocuments\\QQ\\721011692\\nt_qq\\nt_data\\Emoji\\marketface\\203875\\094d53bd1c9ac5d35d04b08e8a6c992c'; - 'supportSize': [ - { - 'width': 300; - 'height': 300; - }, - { - 'width': 200; - 'height': 200; - } - ]; - 'apngSupportSize': null; + emojiPackageId: number; + faceName: string; + emojiId: string; + key: string; } export interface VideoElement { 'filePath': string; diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index b0d50c12..9734d508 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x5bd931=_0x1990;(function(_0x5bbc57,_0x4c344e){var _0x4709b2=_0x1990,_0x44ad99=_0x5bbc57();while(!![]){try{var _0x14169=-parseInt(_0x4709b2(0xcf))/0x1*(parseInt(_0x4709b2(0xea))/0x2)+-parseInt(_0x4709b2(0xd1))/0x3*(parseInt(_0x4709b2(0xec))/0x4)+parseInt(_0x4709b2(0x102))/0x5*(parseInt(_0x4709b2(0xed))/0x6)+-parseInt(_0x4709b2(0xd0))/0x7*(-parseInt(_0x4709b2(0x100))/0x8)+-parseInt(_0x4709b2(0xe2))/0x9+-parseInt(_0x4709b2(0xf8))/0xa+parseInt(_0x4709b2(0x108))/0xb;if(_0x14169===_0x4c344e)break;else _0x44ad99['push'](_0x44ad99['shift']());}catch(_0x145c0e){_0x44ad99['push'](_0x44ad99['shift']());}}}(_0x23d3,0xa18a8));export var ElementType;(function(_0x228299){var _0x126514=_0x1990,_0x66cb29={'gGNUQ':_0x126514(0xe5),'lYNqz':_0x126514(0xfd),'JYkKr':'FILE','TldKE':_0x126514(0xfb),'JyAsG':_0x126514(0xfa),'odVuy':'VIDEO','JamWq':_0x126514(0xee),'SrvRF':_0x126514(0xfe)},_0x33c555=_0x66cb29['gGNUQ']['split']('|'),_0x5ba7ea=0x0;while(!![]){switch(_0x33c555[_0x5ba7ea++]){case'0':_0x228299[_0x228299[_0x66cb29[_0x126514(0xf9)]]=0xa]=_0x66cb29[_0x126514(0xf9)];continue;case'1':_0x228299[_0x228299[_0x66cb29[_0x126514(0xdb)]]=0x3]=_0x66cb29[_0x126514(0xdb)];continue;case'2':_0x228299[_0x228299[_0x66cb29[_0x126514(0x105)]]=0x4]=_0x66cb29[_0x126514(0x105)];continue;case'3':_0x228299[_0x228299[_0x126514(0xd6)]=0x6]=_0x126514(0xd6);continue;case'4':_0x228299[_0x228299[_0x66cb29[_0x126514(0xd3)]]=0x1]=_0x66cb29[_0x126514(0xd3)];continue;case'5':_0x228299[_0x228299[_0x66cb29['odVuy']]=0x5]=_0x66cb29[_0x126514(0xeb)];continue;case'6':_0x228299[_0x228299[_0x66cb29[_0x126514(0xe6)]]=0x7]=_0x66cb29[_0x126514(0xe6)];continue;case'7':_0x228299[_0x228299[_0x66cb29[_0x126514(0xf2)]]=0x2]=_0x66cb29[_0x126514(0xf2)];continue;case'8':_0x228299[_0x228299[_0x126514(0xd7)]=0xe]=_0x126514(0xd7);continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x55d8b0){var _0x31277a=_0x1990,_0x12d7f6={'OJWTQ':_0x31277a(0xd5),'PRexu':'jpg'};_0x55d8b0[_0x55d8b0[_0x12d7f6[_0x31277a(0x104)]]=0x7d0]=_0x12d7f6[_0x31277a(0x104)],_0x55d8b0[_0x55d8b0['jpg']=0x3e8]=_0x12d7f6[_0x31277a(0xda)];}(PicType||(PicType={})));export var PicSubType;(function(_0x43b9ba){var _0x106d9f=_0x1990,_0x43fdb6={'hoxAT':_0x106d9f(0x103),'NfVBl':_0x106d9f(0x106)};_0x43b9ba[_0x43b9ba[_0x106d9f(0x103)]=0x0]=_0x43fdb6['hoxAT'],_0x43b9ba[_0x43b9ba[_0x43fdb6[_0x106d9f(0xfc)]]=0x1]=_0x43fdb6['NfVBl'];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x40c171){var _0x59ea26=_0x1990,_0x4bb700={'UMMAC':_0x59ea26(0xf1),'altqu':_0x59ea26(0xdf),'utOtt':'atUser'};_0x40c171[_0x40c171[_0x4bb700['UMMAC']]=0x0]=_0x4bb700['UMMAC'],_0x40c171[_0x40c171[_0x4bb700[_0x59ea26(0xf4)]]=0x1]=_0x4bb700['altqu'],_0x40c171[_0x40c171[_0x4bb700[_0x59ea26(0xf6)]]=0x2]=_0x4bb700[_0x59ea26(0xf6)];}(AtType||(AtType={})));export var ChatType;(function(_0x1cfe91){var _0x5823bd=_0x1990,_0x3e8e39={'UlSfD':_0x5823bd(0xf3),'OioVv':_0x5823bd(0xe9)};_0x1cfe91[_0x1cfe91[_0x3e8e39[_0x5823bd(0xe7)]]=0x1]=_0x3e8e39[_0x5823bd(0xe7)],_0x1cfe91[_0x1cfe91[_0x5823bd(0xe1)]=0x2]='group',_0x1cfe91[_0x1cfe91[_0x5823bd(0xe9)]=0x64]=_0x3e8e39[_0x5823bd(0xf5)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x5bd931(0xe3);export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0xbaef85){var _0x5e26d6=_0x5bd931,_0x4f438a={'dnrCA':'INVITE_NEW_MEMBER','ysObj':_0x5e26d6(0xde)};_0xbaef85[_0xbaef85[_0x5e26d6(0xff)]=0xc]=_0x4f438a['dnrCA'],_0xbaef85[_0xbaef85[_0x5e26d6(0xde)]=0x11]=_0x4f438a[_0x5e26d6(0xd9)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;function _0x23d3(){var _0x555a7e=['PRexu','JYkKr','OgZfO','ebhNC','MEMBER_NEW_TITLE','atAll','RPS','group','657126gIkcAC','https://gchat.qpic.cn','normal2','4|7|1|2|5|3|6|0|8','JamWq','UlSfD','dice','temp','6WdqEzK','odVuy','212500BptGRW','54oIFcrs','REPLY','aJNmS','bEAwN','notAt','SrvRF','friend','altqu','OioVv','utOtt','aDUJv','6310090JbgsdU','lYNqz','TEXT','PTT','NfVBl','ARK','PIC','INVITE_NEW_MEMBER','472qeSgUc','kicked','632855pbnajQ','normal','OJWTQ','TldKE','face','memberIncrease','1538460bueacg','190321EmbCyf','141057WAulYo','30BlGimT','aYRrm','JyAsG','MyPHc','gif','FACE','MARKDOWN','qtiKW','ysObj'];_0x23d3=function(){return _0x555a7e;};return _0x23d3();}(function(_0x4c256c){var _0xe20146=_0x5bd931,_0x425137={'aJNmS':_0xe20146(0x103),'bEAwN':_0xe20146(0xe4),'MyPHc':_0xe20146(0xe8)};_0x4c256c[_0x4c256c[_0x425137[_0xe20146(0xef)]]=0x1]=_0x425137[_0xe20146(0xef)],_0x4c256c[_0x4c256c[_0x425137['bEAwN']]=0x2]=_0x425137[_0xe20146(0xf0)],_0x4c256c[_0x4c256c[_0x425137[_0xe20146(0xd4)]]=0x3]=_0x425137[_0xe20146(0xd4)];}(FaceType||(FaceType={})));function _0x1990(_0x1accea,_0x4a9311){var _0x23d35b=_0x23d3();return _0x1990=function(_0x19902e,_0x55ea20){_0x19902e=_0x19902e-0xcf;var _0x4d7cdb=_0x23d35b[_0x19902e];return _0x4d7cdb;},_0x1990(_0x1accea,_0x4a9311);}export var FaceIndex;(function(_0x3c7812){var _0x4c711e=_0x5bd931,_0xfaee4b={'OgZfO':_0x4c711e(0xe8),'aDUJv':_0x4c711e(0xe0)};_0x3c7812[_0x3c7812[_0xfaee4b[_0x4c711e(0xdc)]]=0x166]='dice',_0x3c7812[_0x3c7812[_0xfaee4b[_0x4c711e(0xf7)]]=0x167]=_0xfaee4b['aDUJv'];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x4cf27a){var _0x48fae6=_0x5bd931,_0x5b4661={'ebhNC':_0x48fae6(0x107),'aYRrm':_0x48fae6(0x101),'qtiKW':'ban'};_0x4cf27a[_0x4cf27a[_0x48fae6(0x107)]=0x1]=_0x5b4661[_0x48fae6(0xdd)],_0x4cf27a[_0x4cf27a[_0x5b4661['aYRrm']]=0x3]=_0x5b4661[_0x48fae6(0xd2)],_0x4cf27a[_0x4cf27a[_0x5b4661[_0x48fae6(0xd8)]]=0x8]=_0x5b4661['qtiKW'];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x5e4cc1=_0x30e0;(function(_0x4d06b4,_0x262d34){var _0x2a8a2c=_0x30e0,_0x103fb0=_0x4d06b4();while(!![]){try{var _0x31ef14=-parseInt(_0x2a8a2c(0x1d4))/0x1+parseInt(_0x2a8a2c(0x1c8))/0x2*(-parseInt(_0x2a8a2c(0x1ba))/0x3)+parseInt(_0x2a8a2c(0x1d0))/0x4*(parseInt(_0x2a8a2c(0x1c3))/0x5)+parseInt(_0x2a8a2c(0x1cb))/0x6+parseInt(_0x2a8a2c(0x1b5))/0x7+parseInt(_0x2a8a2c(0x1ac))/0x8*(parseInt(_0x2a8a2c(0x1ab))/0x9)+parseInt(_0x2a8a2c(0x1b3))/0xa*(-parseInt(_0x2a8a2c(0x1bf))/0xb);if(_0x31ef14===_0x262d34)break;else _0x103fb0['push'](_0x103fb0['shift']());}catch(_0x480526){_0x103fb0['push'](_0x103fb0['shift']());}}}(_0x9049,0x455e9));export var ElementType;(function(_0x544030){var _0x2bf420=_0x30e0,_0x43cb0a={'BRrid':_0x2bf420(0x1bb),'wlYMA':_0x2bf420(0x1d3),'eiDRS':'FILE','moosO':_0x2bf420(0x1b8),'jsKzF':_0x2bf420(0x1c4),'Menjq':_0x2bf420(0x1ae),'yibNH':_0x2bf420(0x1b9),'WVBia':'VIDEO','ddcKt':_0x2bf420(0x1b4),'yPRfD':_0x2bf420(0x1c7)},_0x2ef200=_0x2bf420(0x1ad)['split']('|'),_0x1584d6=0x0;while(!![]){switch(_0x2ef200[_0x1584d6++]){case'0':_0x544030[_0x544030[_0x43cb0a[_0x2bf420(0x1cd)]]=0x1]=_0x43cb0a[_0x2bf420(0x1cd)];continue;case'1':_0x544030[_0x544030[_0x43cb0a[_0x2bf420(0x1ca)]]=0xa]=_0x43cb0a[_0x2bf420(0x1ca)];continue;case'2':_0x544030[_0x544030[_0x43cb0a['eiDRS']]=0x3]=_0x43cb0a['eiDRS'];continue;case'3':_0x544030[_0x544030[_0x43cb0a[_0x2bf420(0x1c5)]]=0xb]=_0x43cb0a[_0x2bf420(0x1c5)];continue;case'4':_0x544030[_0x544030[_0x43cb0a[_0x2bf420(0x1a7)]]=0x7]='REPLY';continue;case'5':_0x544030[_0x544030[_0x43cb0a[_0x2bf420(0x1b2)]]=0x6]=_0x2bf420(0x1ae);continue;case'6':_0x544030[_0x544030[_0x43cb0a[_0x2bf420(0x1cf)]]=0xe]=_0x43cb0a[_0x2bf420(0x1cf)];continue;case'7':_0x544030[_0x544030[_0x43cb0a['WVBia']]=0x5]='VIDEO';continue;case'8':_0x544030[_0x544030[_0x2bf420(0x1b4)]=0x4]=_0x43cb0a[_0x2bf420(0x1a8)];continue;case'9':_0x544030[_0x544030[_0x43cb0a[_0x2bf420(0x1d6)]]=0x2]=_0x43cb0a['yPRfD'];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x5f3c10){var _0xc4aed9=_0x30e0,_0x63c6d7={'oRRvF':'gif','aBALJ':_0xc4aed9(0x1c6)};_0x5f3c10[_0x5f3c10[_0x63c6d7[_0xc4aed9(0x1a3)]]=0x7d0]=_0x63c6d7['oRRvF'],_0x5f3c10[_0x5f3c10[_0x63c6d7[_0xc4aed9(0x1cc)]]=0x3e8]=_0x63c6d7[_0xc4aed9(0x1cc)];}(PicType||(PicType={})));export var PicSubType;(function(_0x8ce5d3){var _0x5d0d50=_0x30e0,_0x69e533={'yFlVy':'normal','roVAg':'face'};_0x8ce5d3[_0x8ce5d3[_0x69e533[_0x5d0d50(0x1d5)]]=0x0]=_0x69e533[_0x5d0d50(0x1d5)],_0x8ce5d3[_0x8ce5d3[_0x69e533[_0x5d0d50(0x1bc)]]=0x1]=_0x69e533[_0x5d0d50(0x1bc)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x909e3b){var _0x2d9bf1=_0x30e0,_0x3ce143={'yCaHc':_0x2d9bf1(0x1c9),'JKZzM':_0x2d9bf1(0x1a6)};_0x909e3b[_0x909e3b[_0x2d9bf1(0x1c1)]=0x0]='notAt',_0x909e3b[_0x909e3b[_0x3ce143[_0x2d9bf1(0x1aa)]]=0x1]=_0x2d9bf1(0x1c9),_0x909e3b[_0x909e3b[_0x3ce143[_0x2d9bf1(0x1b6)]]=0x2]=_0x3ce143[_0x2d9bf1(0x1b6)];}(AtType||(AtType={})));function _0x30e0(_0x55d26,_0x20cdb6){var _0x90496e=_0x9049();return _0x30e0=function(_0x30e0fe,_0x41242c){_0x30e0fe=_0x30e0fe-0x1a0;var _0x32e014=_0x90496e[_0x30e0fe];return _0x32e014;},_0x30e0(_0x55d26,_0x20cdb6);}export var ChatType;(function(_0x51ac86){var _0x204a03=_0x30e0,_0x1d2816={'yqpaO':_0x204a03(0x1a0),'SGLLp':_0x204a03(0x1b0),'rlKEg':_0x204a03(0x1d7)};_0x51ac86[_0x51ac86[_0x1d2816[_0x204a03(0x1b7)]]=0x1]=_0x1d2816[_0x204a03(0x1b7)],_0x51ac86[_0x51ac86[_0x1d2816[_0x204a03(0x1a4)]]=0x2]=_0x204a03(0x1b0),_0x51ac86[_0x51ac86[_0x1d2816['rlKEg']]=0x64]=_0x1d2816['rlKEg'];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x5e4cc1(0x1ce);export const IMAGE_HTTP_HOST_NT=_0x5e4cc1(0x1be);export var GrayTipElementSubType;(function(_0x4ee652){var _0x206d6d=_0x5e4cc1,_0x5a6812={'VzydX':_0x206d6d(0x1a9),'LlYss':'MEMBER_NEW_TITLE'};_0x4ee652[_0x4ee652[_0x5a6812[_0x206d6d(0x1b1)]]=0xc]=_0x5a6812[_0x206d6d(0x1b1)],_0x4ee652[_0x4ee652[_0x5a6812[_0x206d6d(0x1d8)]]=0x11]=_0x5a6812['LlYss'];}(GrayTipElementSubType||(GrayTipElementSubType={})));function _0x9049(){var _0x20de36=['12848ejzhAe','0|9|2|8|7|5|4|1|3|6','FACE','COqvl','group','VzydX','Menjq','1530unAWRq','PTT','3605525ZSsitd','JKZzM','yqpaO','MFACE','MARKDOWN','30yvIwYm','TEXT','roVAg','normal','https://multimedia.nt.qq.com.cn','43274kmfiHy','dice','notAt','cZjMJ','65ZtmDvG','REPLY','moosO','jpg','PIC','13458gIbYzO','atAll','wlYMA','1587210isBsAl','aBALJ','BRrid','https://gchat.qpic.cn','yibNH','58888svPwXk','kicked','MPWFP','ARK','22485hfDeTT','yFlVy','yPRfD','temp','LlYss','friend','SkIak','mZOTD','oRRvF','SGLLp','RPS','atUser','jsKzF','ddcKt','INVITE_NEW_MEMBER','yCaHc','27HwunCp'];_0x9049=function(){return _0x20de36;};return _0x9049();}export var FaceType;(function(_0x564f18){var _0x15e688=_0x5e4cc1,_0x1836f8={'cZjMJ':_0x15e688(0x1bd),'COqvl':'normal2','XveJl':_0x15e688(0x1c0)};_0x564f18[_0x564f18[_0x15e688(0x1bd)]=0x1]=_0x1836f8[_0x15e688(0x1c2)],_0x564f18[_0x564f18[_0x1836f8[_0x15e688(0x1af)]]=0x2]=_0x1836f8[_0x15e688(0x1af)],_0x564f18[_0x564f18[_0x1836f8['XveJl']]=0x3]=_0x15e688(0x1c0);}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x41095e){var _0x191ca9=_0x5e4cc1,_0x1aa750={'ZvGVW':_0x191ca9(0x1c0),'mZOTD':'RPS'};_0x41095e[_0x41095e[_0x191ca9(0x1c0)]=0x166]=_0x1aa750['ZvGVW'],_0x41095e[_0x41095e[_0x1aa750[_0x191ca9(0x1a2)]]=0x167]=_0x191ca9(0x1a5);}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x18a0fd){var _0x27356a=_0x5e4cc1,_0x5b1706={'MPWFP':'memberIncrease','ALcBD':_0x27356a(0x1d1),'SkIak':'ban'};_0x18a0fd[_0x18a0fd[_0x5b1706[_0x27356a(0x1d2)]]=0x1]='memberIncrease',_0x18a0fd[_0x18a0fd[_0x5b1706['ALcBD']]=0x3]=_0x5b1706['ALcBD'],_0x18a0fd[_0x18a0fd[_0x5b1706['SkIak']]=0x8]=_0x5b1706[_0x27356a(0x1a1)];}(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 dbc209d7..8989d102 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x452cd5,_0x33d588){var _0x132c3a=_0x22ae,_0x2c741a=_0x452cd5();while(!![]){try{var _0x4d7b25=parseInt(_0x132c3a(0x208))/0x1+parseInt(_0x132c3a(0x1f1))/0x2*(-parseInt(_0x132c3a(0x1fd))/0x3)+-parseInt(_0x132c3a(0x201))/0x4+parseInt(_0x132c3a(0x207))/0x5*(-parseInt(_0x132c3a(0x1ef))/0x6)+-parseInt(_0x132c3a(0x1eb))/0x7*(parseInt(_0x132c3a(0x1fa))/0x8)+parseInt(_0x132c3a(0x1f5))/0x9*(parseInt(_0x132c3a(0x1ed))/0xa)+parseInt(_0x132c3a(0x202))/0xb*(parseInt(_0x132c3a(0x200))/0xc);if(_0x4d7b25===_0x33d588)break;else _0x2c741a['push'](_0x2c741a['shift']());}catch(_0x21e6c8){_0x2c741a['push'](_0x2c741a['shift']());}}}(_0x17a7,0x9a132));export var GroupNotifyTypes;function _0x22ae(_0x4b4c0d,_0x323b09){var _0x17a7cb=_0x17a7();return _0x22ae=function(_0x22aebb,_0x3dff88){_0x22aebb=_0x22aebb-0x1ea;var _0x583e6b=_0x17a7cb[_0x22aebb];return _0x583e6b;},_0x22ae(_0x4b4c0d,_0x323b09);}(function(_0x15a53d){var _0x467d15=_0x22ae,_0x592705={'ArIAX':'2|1|3|4|5|6|0','RNxVV':_0x467d15(0x1ff),'xGfxC':_0x467d15(0x1f0),'vHubS':_0x467d15(0x1f2),'FpuMM':_0x467d15(0x1fc),'yNNHg':'ADMIN_SET','lHvtD':_0x467d15(0x1ee),'MBfmA':'MEMBER_EXIT'},_0x7f78e=_0x592705[_0x467d15(0x1f7)][_0x467d15(0x1f6)]('|'),_0x4c5176=0x0;while(!![]){switch(_0x7f78e[_0x4c5176++]){case'0':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x1ec)]]=0xc]=_0x592705['RNxVV'];continue;case'1':_0x15a53d[_0x15a53d[_0x592705['xGfxC']]=0x4]=_0x592705[_0x467d15(0x204)];continue;case'2':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x1fe)]]=0x1]=_0x592705[_0x467d15(0x1fe)];continue;case'3':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x203)]]=0x7]=_0x592705[_0x467d15(0x203)];continue;case'4':_0x15a53d[_0x15a53d[_0x467d15(0x206)]=0x8]=_0x592705['yNNHg'];continue;case'5':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x1f3)]]=0x9]=_0x592705['lHvtD'];continue;case'6':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x1ea)]]=0xb]=_0x592705[_0x467d15(0x1ea)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x368b08){var _0x165d91=_0x22ae,_0x55b7d3={'kMrNl':_0x165d91(0x1fb),'Hqswp':_0x165d91(0x1f8),'blQTX':'APPROVE','uQJtB':_0x165d91(0x209)};_0x368b08[_0x368b08[_0x55b7d3['kMrNl']]=0x0]=_0x55b7d3['kMrNl'],_0x368b08[_0x368b08['WAIT_HANDLE']=0x1]=_0x55b7d3[_0x165d91(0x1f4)],_0x368b08[_0x368b08[_0x55b7d3['blQTX']]=0x2]=_0x55b7d3['blQTX'],_0x368b08[_0x368b08[_0x55b7d3[_0x165d91(0x205)]]=0x3]=_0x55b7d3[_0x165d91(0x205)];}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0x17a7(){var _0x558259=['8617GEnPKN','RNxVV','1110xtqpeE','KICK_MEMBER','67836QSFVpU','INVITED_JOIN','14792TXlZnY','INVITE_ME','lHvtD','Hqswp','1089ajuQRB','split','ArIAX','WAIT_HANDLE','AMGFD','5000KzFEta','IGNORE','JOIN_REQUEST','459nLEfdQ','vHubS','ADMIN_UNSET','1629672aHWWLU','1026064cZpKgI','198IPZxbb','FpuMM','xGfxC','uQJtB','ADMIN_SET','110xnkTBy','579362qzzBYi','REJECT','MBfmA'];_0x17a7=function(){return _0x558259;};return _0x17a7();}export var GroupRequestOperateTypes;(function(_0x46e946){var _0x468bab=_0x22ae,_0x829194={'AMGFD':'approve','IpDMK':'reject'};_0x46e946[_0x46e946[_0x829194[_0x468bab(0x1f9)]]=0x1]='approve',_0x46e946[_0x46e946[_0x829194['IpDMK']]=0x2]='reject';}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +function _0x4168(_0xb5943e,_0x12f1b5){var _0x504c5a=_0x504c();return _0x4168=function(_0x4168fe,_0x11ca9b){_0x4168fe=_0x4168fe-0x14d;var _0x45624f=_0x504c5a[_0x4168fe];return _0x45624f;},_0x4168(_0xb5943e,_0x12f1b5);}(function(_0x1d3945,_0x2c1675){var _0x12b284=_0x4168,_0x1ca53a=_0x1d3945();while(!![]){try{var _0x583496=-parseInt(_0x12b284(0x16a))/0x1+parseInt(_0x12b284(0x14d))/0x2*(-parseInt(_0x12b284(0x161))/0x3)+parseInt(_0x12b284(0x15f))/0x4*(-parseInt(_0x12b284(0x16c))/0x5)+parseInt(_0x12b284(0x16e))/0x6+parseInt(_0x12b284(0x162))/0x7*(parseInt(_0x12b284(0x16d))/0x8)+-parseInt(_0x12b284(0x14e))/0x9*(parseInt(_0x12b284(0x15a))/0xa)+-parseInt(_0x12b284(0x167))/0xb*(-parseInt(_0x12b284(0x16b))/0xc);if(_0x583496===_0x2c1675)break;else _0x1ca53a['push'](_0x1ca53a['shift']());}catch(_0x2af550){_0x1ca53a['push'](_0x1ca53a['shift']());}}}(_0x504c,0xc7064));export var GroupNotifyTypes;(function(_0x2410db){var _0xa346a2=_0x4168,_0xb895b7={'oKxcP':_0xa346a2(0x15c),'RqxtF':_0xa346a2(0x172),'MuAgs':_0xa346a2(0x170),'PXfHm':_0xa346a2(0x166),'SiClG':_0xa346a2(0x156),'cGxxp':_0xa346a2(0x155),'DiCtI':_0xa346a2(0x171),'wyUwI':_0xa346a2(0x160)},_0x778730=_0xb895b7[_0xa346a2(0x164)][_0xa346a2(0x15e)]('|'),_0x466b9c=0x0;while(!![]){switch(_0x778730[_0x466b9c++]){case'0':_0x2410db[_0x2410db[_0xb895b7['RqxtF']]=0x7]=_0xb895b7[_0xa346a2(0x165)];continue;case'1':_0x2410db[_0x2410db[_0xb895b7['MuAgs']]=0xc]=_0xb895b7[_0xa346a2(0x158)];continue;case'2':_0x2410db[_0x2410db[_0xb895b7[_0xa346a2(0x14f)]]=0x4]=_0xb895b7['PXfHm'];continue;case'3':_0x2410db[_0x2410db[_0xa346a2(0x156)]=0x9]=_0xb895b7[_0xa346a2(0x15b)];continue;case'4':_0x2410db[_0x2410db[_0xa346a2(0x155)]=0x1]=_0xb895b7['cGxxp'];continue;case'5':_0x2410db[_0x2410db[_0xb895b7[_0xa346a2(0x169)]]=0x8]=_0xb895b7[_0xa346a2(0x169)];continue;case'6':_0x2410db[_0x2410db[_0xb895b7[_0xa346a2(0x157)]]=0xb]=_0xa346a2(0x160);continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x271053){var _0x1b7270=_0x4168,_0x1f590f={'ZuhqV':_0x1b7270(0x150),'ZFvpW':_0x1b7270(0x151),'kQaPi':'REJECT'};_0x271053[_0x271053[_0x1b7270(0x150)]=0x0]=_0x1f590f[_0x1b7270(0x152)],_0x271053[_0x271053[_0x1b7270(0x151)]=0x1]=_0x1f590f[_0x1b7270(0x154)],_0x271053[_0x271053[_0x1b7270(0x168)]=0x2]=_0x1b7270(0x168),_0x271053[_0x271053[_0x1f590f[_0x1b7270(0x159)]]=0x3]=_0x1b7270(0x163);}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0x504c(){var _0x2d52c2=['934722WkqhTP','PXfHm','IGNORE','WAIT_HANDLE','ZuhqV','khDPR','ZFvpW','INVITE_ME','KICK_MEMBER','wyUwI','MuAgs','kQaPi','130ElYAIX','SiClG','4|2|0|5|3|6|1','reject','split','8JNNEvz','MEMBER_EXIT','1749JPoepr','57659CIxuEJ','REJECT','oKxcP','RqxtF','INVITED_JOIN','24514292WMcYOc','APPROVE','DiCtI','193425zVRseH','12UlytDC','4765Kodpxf','776MzVYHG','3194154RPnpOj','Efoub','ADMIN_UNSET','ADMIN_SET','JOIN_REQUEST','4114YjBBEp'];_0x504c=function(){return _0x2d52c2;};return _0x504c();}export var GroupRequestOperateTypes;(function(_0x37b536){var _0x17e755=_0x4168,_0x5c3567={'Efoub':'approve','khDPR':_0x17e755(0x15d)};_0x37b536[_0x37b536[_0x5c3567[_0x17e755(0x16f)]]=0x1]=_0x5c3567[_0x17e755(0x16f)],_0x37b536[_0x37b536[_0x5c3567[_0x17e755(0x153)]]=0x2]=_0x5c3567[_0x17e755(0x153)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/user.js b/src/core.lib/src/entities/user.js index 068b9ebd..ab9fc23f 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -(function(_0x416fe6,_0x378ffc){var _0x271c94=_0xed10,_0x37715e=_0x416fe6();while(!![]){try{var _0x525895=parseInt(_0x271c94(0x7a))/0x1*(parseInt(_0x271c94(0x84))/0x2)+parseInt(_0x271c94(0x82))/0x3+parseInt(_0x271c94(0x81))/0x4*(-parseInt(_0x271c94(0x7b))/0x5)+-parseInt(_0x271c94(0x7d))/0x6+-parseInt(_0x271c94(0x7c))/0x7+-parseInt(_0x271c94(0x76))/0x8*(parseInt(_0x271c94(0x7e))/0x9)+parseInt(_0x271c94(0x85))/0xa;if(_0x525895===_0x378ffc)break;else _0x37715e['push'](_0x37715e['shift']());}catch(_0x45117a){_0x37715e['push'](_0x37715e['shift']());}}}(_0x4818,0x41cd0));function _0x4818(){var _0x438238=['voCbd','37gIhJtZ','102045rElYSI','521990Rwehng','2923962TUGnyT','53559lTOVoH','male','qPYhi','28sNkyel','1044339fWrihQ','unknown','12262znehYO','4469280EVNYlE','64PTnUYh','female','WqRnq'];_0x4818=function(){return _0x438238;};return _0x4818();}function _0xed10(_0x188a30,_0x4d0d63){var _0x481851=_0x4818();return _0xed10=function(_0xed104d,_0x448614){_0xed104d=_0xed104d-0x76;var _0x188a48=_0x481851[_0xed104d];return _0x188a48;},_0xed10(_0x188a30,_0x4d0d63);}export var Sex;(function(_0x43ca32){var _0x1c7738=_0xed10,_0x2432ca={'voCbd':_0x1c7738(0x7f),'qPYhi':_0x1c7738(0x77),'WqRnq':_0x1c7738(0x83)};_0x43ca32[_0x43ca32[_0x2432ca[_0x1c7738(0x79)]]=0x1]=_0x2432ca[_0x1c7738(0x79)],_0x43ca32[_0x43ca32[_0x2432ca[_0x1c7738(0x80)]]=0x2]=_0x1c7738(0x77),_0x43ca32[_0x43ca32[_0x2432ca[_0x1c7738(0x78)]]=0xff]=_0x2432ca[_0x1c7738(0x78)];}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x176dd5,_0x45de9c){var _0x5348a8=_0x13f6,_0x37e59f=_0x176dd5();while(!![]){try{var _0x3e5af5=-parseInt(_0x5348a8(0x111))/0x1+parseInt(_0x5348a8(0x117))/0x2+-parseInt(_0x5348a8(0x11b))/0x3+parseInt(_0x5348a8(0x112))/0x4*(parseInt(_0x5348a8(0x11f))/0x5)+-parseInt(_0x5348a8(0x116))/0x6*(parseInt(_0x5348a8(0x113))/0x7)+-parseInt(_0x5348a8(0x11c))/0x8*(-parseInt(_0x5348a8(0x11d))/0x9)+-parseInt(_0x5348a8(0x115))/0xa;if(_0x3e5af5===_0x45de9c)break;else _0x37e59f['push'](_0x37e59f['shift']());}catch(_0x57ec79){_0x37e59f['push'](_0x37e59f['shift']());}}}(_0xe15f,0x9d14d));function _0x13f6(_0x701119,_0x240b62){var _0xe15fd3=_0xe15f();return _0x13f6=function(_0x13f696,_0x132ea4){_0x13f696=_0x13f696-0x111;var _0x40b929=_0xe15fd3[_0x13f696];return _0x40b929;},_0x13f6(_0x701119,_0x240b62);}export var Sex;(function(_0x5d817b){var _0x488905=_0x13f6,_0x117377={'hMUoi':_0x488905(0x118),'Ksxxt':'female','WEnjy':_0x488905(0x114)};_0x5d817b[_0x5d817b['male']=0x1]=_0x117377[_0x488905(0x119)],_0x5d817b[_0x5d817b[_0x117377['Ksxxt']]=0x2]=_0x488905(0x11e),_0x5d817b[_0x5d817b[_0x117377[_0x488905(0x11a)]]=0xff]=_0x117377[_0x488905(0x11a)];}(Sex||(Sex={})));function _0xe15f(){var _0x267441=['male','hMUoi','WEnjy','890517EvOzrs','40QTfcME','1453698xiesuf','female','5096820TfVlcY','767292oXGMUD','4udPwhb','6839KCcjlt','unknown','3263120CEnjmj','192qrwJOz','476276irNeIc'];_0xe15f=function(){return _0x267441;};return _0xe15f();} \ 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 969f68ac..b4ceeb76 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x465ec4=_0x2124;function _0x3588(){const _0x17fd3f=['加载\x20moehoo\x20失败','upWfw','8bMFcSO','455PzJNiM','spmDH','24396qXHRfz','isAvailable','ooulL','6iquhyQ','6516iyyjoM','./MoeHoo.node','68119ZJIjCA','moeHook','220cXMhyS','362196BNaMyy','60905sAlmww','105804WUOZGd','HookRkey','1979047ytsyAW','STxmg','2860xgxcEC','getRKey','4ueuHms'];_0x3588=function(){return _0x17fd3f;};return _0x3588();}(function(_0x34d8fc,_0x495fa0){const _0x5d82f4=_0x2124,_0x1aeca1=_0x34d8fc();while(!![]){try{const _0x37da64=-parseInt(_0x5d82f4(0x1df))/0x1*(parseInt(_0x5d82f4(0x1dc))/0x2)+-parseInt(_0x5d82f4(0x1cb))/0x3*(-parseInt(_0x5d82f4(0x1d3))/0x4)+parseInt(_0x5d82f4(0x1d7))/0x5*(parseInt(_0x5d82f4(0x1d9))/0x6)+parseInt(_0x5d82f4(0x1cf))/0x7*(parseInt(_0x5d82f4(0x1d6))/0x8)+-parseInt(_0x5d82f4(0x1dd))/0x9*(parseInt(_0x5d82f4(0x1d1))/0xa)+-parseInt(_0x5d82f4(0x1ca))/0xb*(parseInt(_0x5d82f4(0x1cd))/0xc)+parseInt(_0x5d82f4(0x1cc))/0xd;if(_0x37da64===_0x495fa0)break;else _0x1aeca1['push'](_0x1aeca1['shift']());}catch(_0x2c8f51){_0x1aeca1['push'](_0x1aeca1['shift']());}}}(_0x3588,0x2e7af));import{logDebug,logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x2124(_0xc1df48,_0x489491){const _0x3588db=_0x3588();return _0x2124=function(_0x21240c,_0x209df4){_0x21240c=_0x21240c-0x1c9;let _0x1492e9=_0x3588db[_0x21240c];return _0x1492e9;},_0x2124(_0xc1df48,_0x489491);}class HookApi{[_0x465ec4(0x1c9)]=null;constructor(){const _0x33bf2a=_0x465ec4,_0x2c70d8={'spmDH':function(_0x41817d,_0x209090){return _0x41817d(_0x209090);},'sEYpy':'MoeHoo','upWfw':_0x33bf2a(0x1de),'STxmg':'moe\x20hook\x20address','ooulL':_0x33bf2a(0x1d4)};try{_0x2c70d8[_0x33bf2a(0x1d8)](cpModule,_0x2c70d8['sEYpy']),this['moeHook']=require(_0x2c70d8[_0x33bf2a(0x1d5)]),logDebug(_0x2c70d8[_0x33bf2a(0x1d0)],this[_0x33bf2a(0x1c9)][_0x33bf2a(0x1ce)]());}catch(_0x394f64){logError(_0x2c70d8[_0x33bf2a(0x1db)],_0x394f64);}}[_0x465ec4(0x1d2)](){const _0x666834=_0x465ec4;return this[_0x666834(0x1c9)]?.['GetRkey']()||'';}[_0x465ec4(0x1da)](){const _0x78f87b=_0x465ec4;return!!this[_0x78f87b(0x1c9)];}}export const hookApi=new HookApi(); \ No newline at end of file +const _0x387b4c=_0x1c70;function _0x413b(){const _0x5d3a22=['1608336wHNPGb','654235wpwCwY','145371VMSmzL','isAvailable','4877352BHodhU','HookRkey','GetRkey','30moIAgf','1874544CCysTd','./MoeHoo.node','bTnif','4NMxBVj','moe\x20hook\x20address','tnScx','moeHook','MoeHoo','9916860cDQtgW','AamMm','10387808KTlYCr','4HRUjpv','加载\x20moehoo\x20失败'];_0x413b=function(){return _0x5d3a22;};return _0x413b();}(function(_0x22645c,_0x54aaf8){const _0x1df3f2=_0x1c70,_0x27879=_0x22645c();while(!![]){try{const _0x5a957f=-parseInt(_0x1df3f2(0x11a))/0x1*(parseInt(_0x1df3f2(0x123))/0x2)+parseInt(_0x1df3f2(0x118))/0x3*(parseInt(_0x1df3f2(0x12b))/0x4)+parseInt(_0x1df3f2(0x119))/0x5*(parseInt(_0x1df3f2(0x11f))/0x6)+parseInt(_0x1df3f2(0x120))/0x7+parseInt(_0x1df3f2(0x12a))/0x8+-parseInt(_0x1df3f2(0x11c))/0x9+-parseInt(_0x1df3f2(0x128))/0xa;if(_0x5a957f===_0x54aaf8)break;else _0x27879['push'](_0x27879['shift']());}catch(_0x2a3b50){_0x27879['push'](_0x27879['shift']());}}}(_0x413b,0xe39a3));import{logDebug,logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x1c70(_0x346bdf,_0x18ebc9){const _0x413b2e=_0x413b();return _0x1c70=function(_0x1c708e,_0x49367e){_0x1c708e=_0x1c708e-0x117;let _0x24dbad=_0x413b2e[_0x1c708e];return _0x24dbad;},_0x1c70(_0x346bdf,_0x18ebc9);}class HookApi{['moeHook']=null;constructor(){const _0x152393=_0x1c70,_0x4636e9={'AamMm':function(_0x75ed7b,_0x280d14){return _0x75ed7b(_0x280d14);},'dYhZC':_0x152393(0x127),'bTnif':function(_0x5219b8,_0x4c96e8,_0x505b0d){return _0x5219b8(_0x4c96e8,_0x505b0d);},'tnScx':_0x152393(0x124),'hzbbv':_0x152393(0x117)};try{_0x4636e9[_0x152393(0x129)](cpModule,_0x4636e9['dYhZC']),this['moeHook']=_0x4636e9['AamMm'](require,_0x152393(0x121)),_0x4636e9['bTnif'](logDebug,_0x4636e9[_0x152393(0x125)],this['moeHook'][_0x152393(0x11d)]());}catch(_0x210305){_0x4636e9[_0x152393(0x122)](logError,_0x4636e9['hzbbv'],_0x210305);}}['getRKey'](){const _0x2dc352=_0x1c70;return this[_0x2dc352(0x126)]?.[_0x2dc352(0x11e)]()||'';}[_0x387b4c(0x11b)](){const _0xbc356=_0x387b4c;return!!this[_0xbc356(0x126)];}}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 d3acda0f..cb93f183 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x3dd2ad,_0x3323dd){var _0x5829c1=_0x2401,_0x4c23c4=_0x3dd2ad();while(!![]){try{var _0x3cc59b=parseInt(_0x5829c1(0x81))/0x1*(parseInt(_0x5829c1(0x86))/0x2)+parseInt(_0x5829c1(0x80))/0x3+parseInt(_0x5829c1(0x7b))/0x4*(parseInt(_0x5829c1(0x82))/0x5)+parseInt(_0x5829c1(0x7f))/0x6+-parseInt(_0x5829c1(0x7d))/0x7*(-parseInt(_0x5829c1(0x85))/0x8)+parseInt(_0x5829c1(0x84))/0x9*(parseInt(_0x5829c1(0x7e))/0xa)+-parseInt(_0x5829c1(0x83))/0xb*(parseInt(_0x5829c1(0x7c))/0xc);if(_0x3cc59b===_0x3323dd)break;else _0x4c23c4['push'](_0x4c23c4['shift']());}catch(_0x4f6854){_0x4c23c4['push'](_0x4c23c4['shift']());}}}(_0x4ca7,0x9e2ac));import _0x4b212b from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';function _0x4ca7(){var _0x101784=['11595GjXdfX','3890876WQTybp','4903533HMjTJi','11544xhnlTa','471550aypjBi','732fejdlU','132yVzCWw','3682bftdze','20ckiaLB','6735834tNzSrf','2721735YqEAKP','1QGhJYO'];_0x4ca7=function(){return _0x101784;};return _0x4ca7();}export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';function _0x2401(_0x54d15a,_0x31ab95){var _0x4ca72e=_0x4ca7();return _0x2401=function(_0x24016a,_0x811b6d){_0x24016a=_0x24016a-0x7b;var _0x5c09d0=_0x4ca72e[_0x24016a];return _0x5c09d0;},_0x2401(_0x54d15a,_0x31ab95);}export*as Listeners from'./listeners';export*as Services from'./services';export{_0x4b212b as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0xc0b0e1,_0x2907f6){var _0x277ca1=_0x76de,_0xd06112=_0xc0b0e1();while(!![]){try{var _0x2d986f=parseInt(_0x277ca1(0xd6))/0x1+-parseInt(_0x277ca1(0xd3))/0x2+parseInt(_0x277ca1(0xd5))/0x3*(parseInt(_0x277ca1(0xd1))/0x4)+-parseInt(_0x277ca1(0xd0))/0x5*(-parseInt(_0x277ca1(0xd4))/0x6)+-parseInt(_0x277ca1(0xd7))/0x7+-parseInt(_0x277ca1(0xda))/0x8*(-parseInt(_0x277ca1(0xd9))/0x9)+parseInt(_0x277ca1(0xd2))/0xa*(-parseInt(_0x277ca1(0xd8))/0xb);if(_0x2d986f===_0x2907f6)break;else _0xd06112['push'](_0xd06112['shift']());}catch(_0x494576){_0xd06112['push'](_0xd06112['shift']());}}}(_0x2a8b,0x4eba8));import _0x39d588 from'./wrapper';export*from'./adapters';export*from'./apis';function _0x76de(_0x438e1a,_0x4fbbb6){var _0x2a8b07=_0x2a8b();return _0x76de=function(_0x76de5,_0xb99295){_0x76de5=_0x76de5-0xd0;var _0x378626=_0x2a8b07[_0x76de5];return _0x378626;},_0x76de(_0x438e1a,_0x4fbbb6);}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';function _0x2a8b(){var _0x61d5e1=['326169bHBhtk','120VxTFXH','1250uPPWIP','34004PqVCny','20dBdEsI','705666yKszdK','4434IgSRZi','9xTTsZB','630593IJCJaP','2917544PsYTIB','1608002cKEtuh'];_0x2a8b=function(){return _0x61d5e1;};return _0x2a8b();}export{_0x39d588 as Wrapper};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 c81a79ce..17c3202b 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -function _0x83c9(){var _0x54aff0=['onBuddyReqUnreadCntChange','onAddMeSettingChanged','17846334fAiNXx','onDoubtBuddyReqUnreadNumChange','onSmartInfos','52FshKFs','2154SPZayi','onBuddyListChange','2380330wTtWIp','149989DwTCxk','6478710djVZLG','onDelBatchBuddyInfos','onAvatarUrlUpdated','62133rpKZHN','7453480kMOlfj','onBuddyRemarkUpdated','onBuddyDetailInfoChange','onBuddyReqChange','11641CjjIET','onDoubtBuddyReqChange','onBlockChanged'];_0x83c9=function(){return _0x54aff0;};return _0x83c9();}var _0x1652eb=_0x561e;(function(_0x36c3dd,_0x1991bc){var _0xfe1536=_0x561e,_0x2e99d8=_0x36c3dd();while(!![]){try{var _0x265fe5=-parseInt(_0xfe1536(0x16d))/0x1+-parseInt(_0xfe1536(0x181))/0x2+-parseInt(_0xfe1536(0x171))/0x3*(-parseInt(_0xfe1536(0x17e))/0x4)+parseInt(_0xfe1536(0x16e))/0x5+-parseInt(_0xfe1536(0x17f))/0x6*(parseInt(_0xfe1536(0x176))/0x7)+-parseInt(_0xfe1536(0x172))/0x8+parseInt(_0xfe1536(0x17b))/0x9;if(_0x265fe5===_0x1991bc)break;else _0x2e99d8['push'](_0x2e99d8['shift']());}catch(_0x5a86ff){_0x2e99d8['push'](_0x2e99d8['shift']());}}}(_0x83c9,0xa5c8f));function _0x561e(_0x210b24,_0x89a3ed){var _0x83c944=_0x83c9();return _0x561e=function(_0x561e33,_0x21ea1f){_0x561e33=_0x561e33-0x16d;var _0xe030a5=_0x83c944[_0x561e33];return _0xe030a5;},_0x561e(_0x210b24,_0x89a3ed);}export class BuddyListener{['onAddBuddyNeedVerify'](_0x43b07a){}[_0x1652eb(0x17a)](_0x3226fe){}[_0x1652eb(0x170)](_0x163ccd){}[_0x1652eb(0x178)](_0x165b8b){}[_0x1652eb(0x174)](_0x378d64){}['onBuddyInfoChange'](_0x8e356){}[_0x1652eb(0x180)](_0x164d8a){}[_0x1652eb(0x173)](_0xfcefbd){}[_0x1652eb(0x175)](_0x2d3e5a){}[_0x1652eb(0x179)](_0x32f0fa){}['onCheckBuddySettingResult'](_0x1960a2){}[_0x1652eb(0x16f)](_0x216e83){}[_0x1652eb(0x177)](_0x3d47f7){}[_0x1652eb(0x17c)](_0x2ba8a5){}['onNickUpdated'](_0x4ab2f9){}[_0x1652eb(0x17d)](_0xf97334){}['onSpacePermissionInfos'](_0x20b4db){}} \ No newline at end of file +var _0x43f88e=_0x126e;(function(_0x1345ee,_0x589f14){var _0x558ed0=_0x126e,_0x48ae46=_0x1345ee();while(!![]){try{var _0x34ae92=parseInt(_0x558ed0(0x1b2))/0x1+-parseInt(_0x558ed0(0x1c0))/0x2+parseInt(_0x558ed0(0x1b5))/0x3+-parseInt(_0x558ed0(0x1bd))/0x4+-parseInt(_0x558ed0(0x1be))/0x5+-parseInt(_0x558ed0(0x1b7))/0x6+parseInt(_0x558ed0(0x1af))/0x7;if(_0x34ae92===_0x589f14)break;else _0x48ae46['push'](_0x48ae46['shift']());}catch(_0x516233){_0x48ae46['push'](_0x48ae46['shift']());}}}(_0x9242,0xecf8d));function _0x126e(_0x133244,_0x58e3d6){var _0x924205=_0x9242();return _0x126e=function(_0x126e5c,_0x2f5dcd){_0x126e5c=_0x126e5c-0x1af;var _0xe0d22a=_0x924205[_0x126e5c];return _0xe0d22a;},_0x126e(_0x133244,_0x58e3d6);}export class BuddyListener{[_0x43f88e(0x1bc)](_0x4e8e90){}[_0x43f88e(0x1b4)](_0x44651d){}[_0x43f88e(0x1b8)](_0xabc474){}[_0x43f88e(0x1bb)](_0x4b98ba){}[_0x43f88e(0x1b0)](_0x274642){}[_0x43f88e(0x1c2)](_0x7223d8){}[_0x43f88e(0x1b6)](_0x48e62c){}[_0x43f88e(0x1b3)](_0x49a902){}[_0x43f88e(0x1b9)](_0x2ab521){}['onBuddyReqUnreadCntChange'](_0x117d7a){}['onCheckBuddySettingResult'](_0x29d21a){}[_0x43f88e(0x1c1)](_0x2f5ae8){}[_0x43f88e(0x1c3)](_0x3cef7b){}[_0x43f88e(0x1ba)](_0x4ad7d7){}[_0x43f88e(0x1bf)](_0x28be46){}[_0x43f88e(0x1b1)](_0x2cbef0){}['onSpacePermissionInfos'](_0x29c738){}}function _0x9242(){var _0x3754c2=['4312765GVOJea','onNickUpdated','2102554YsQGjS','onDelBatchBuddyInfos','onBuddyInfoChange','onDoubtBuddyReqChange','20522537pxkXhi','onBuddyDetailInfoChange','onSmartInfos','654703jTWccO','onBuddyRemarkUpdated','onAddMeSettingChanged','2232882qMDCOC','onBuddyListChange','6215070FMkkUq','onAvatarUrlUpdated','onBuddyReqChange','onDoubtBuddyReqUnreadNumChange','onBlockChanged','onAddBuddyNeedVerify','1641904LjlXQS'];_0x9242=function(){return _0x3754c2;};return _0x9242();} \ 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 dfd95722..6d7cc721 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -function _0x5f31(_0x2769c6,_0x15e404){var _0x5e916c=_0x5e91();return _0x5f31=function(_0x5f31b6,_0xe478c8){_0x5f31b6=_0x5f31b6-0x15f;var _0x2f3aa2=_0x5e916c[_0x5f31b6];return _0x2f3aa2;},_0x5f31(_0x2769c6,_0x15e404);}var _0x1e3403=_0x5f31;(function(_0x4d39e3,_0x4e2985){var _0x3b41ab=_0x5f31,_0x175993=_0x4d39e3();while(!![]){try{var _0x5d8941=-parseInt(_0x3b41ab(0x163))/0x1+parseInt(_0x3b41ab(0x167))/0x2+-parseInt(_0x3b41ab(0x16c))/0x3*(parseInt(_0x3b41ab(0x168))/0x4)+parseInt(_0x3b41ab(0x160))/0x5+-parseInt(_0x3b41ab(0x169))/0x6+parseInt(_0x3b41ab(0x15f))/0x7*(-parseInt(_0x3b41ab(0x165))/0x8)+-parseInt(_0x3b41ab(0x162))/0x9*(-parseInt(_0x3b41ab(0x164))/0xa);if(_0x5d8941===_0x4e2985)break;else _0x175993['push'](_0x175993['shift']());}catch(_0x1d719a){_0x175993['push'](_0x175993['shift']());}}}(_0x5e91,0xc1fc0));function _0x5e91(){var _0x572bc7=['7581EmUkGv','2674LsdtRY','7280455TRfOVV','onFileSearch','9ADapqZ','1015486rvFtNr','22937470KbFVrX','5096ppmbNw','onSessionListChanged','425122SLxgGZ','2340wtrxfi','2584344mXlxRI','onSessionChanged','onFileListChanged'];_0x5e91=function(){return _0x572bc7;};return _0x5e91();}export class KernelFileAssistantListener{['onFileStatusChanged'](..._0xd6a947){}[_0x1e3403(0x166)](..._0x2927df){}[_0x1e3403(0x16a)](..._0x50506d){}[_0x1e3403(0x16b)](..._0x4c9e9e){}[_0x1e3403(0x161)](..._0x43d7fe){}} \ No newline at end of file +function _0x26fc(_0x3f7c04,_0x40dcfa){var _0x386885=_0x3868();return _0x26fc=function(_0x26fc55,_0xafcfb4){_0x26fc55=_0x26fc55-0x14a;var _0x5be0f4=_0x386885[_0x26fc55];return _0x5be0f4;},_0x26fc(_0x3f7c04,_0x40dcfa);}var _0x3cc2b5=_0x26fc;(function(_0x4ae56a,_0x4a2718){var _0x2ac575=_0x26fc,_0x504ecf=_0x4ae56a();while(!![]){try{var _0x4b957e=-parseInt(_0x2ac575(0x14f))/0x1*(-parseInt(_0x2ac575(0x158))/0x2)+parseInt(_0x2ac575(0x159))/0x3*(parseInt(_0x2ac575(0x151))/0x4)+-parseInt(_0x2ac575(0x150))/0x5+-parseInt(_0x2ac575(0x154))/0x6*(parseInt(_0x2ac575(0x156))/0x7)+parseInt(_0x2ac575(0x14a))/0x8*(-parseInt(_0x2ac575(0x157))/0x9)+-parseInt(_0x2ac575(0x153))/0xa*(parseInt(_0x2ac575(0x155))/0xb)+parseInt(_0x2ac575(0x15a))/0xc;if(_0x4b957e===_0x4a2718)break;else _0x504ecf['push'](_0x504ecf['shift']());}catch(_0x271af9){_0x504ecf['push'](_0x504ecf['shift']());}}}(_0x3868,0x53670));export class KernelFileAssistantListener{[_0x3cc2b5(0x14d)](..._0xb03ce7){}[_0x3cc2b5(0x152)](..._0x13b74f){}[_0x3cc2b5(0x14b)](..._0x425d53){}[_0x3cc2b5(0x14c)](..._0x40eda6){}[_0x3cc2b5(0x14e)](..._0x5ae439){}}function _0x3868(){var _0x22637a=['9plprvx','790898emwZci','3txBtOL','12102948SwZqWC','1784472LfWwLr','onSessionChanged','onFileListChanged','onFileStatusChanged','onFileSearch','1jkzFcM','2067705bzFikk','1508368GSRrZf','onSessionListChanged','2060UkAWuQ','12FsgrPF','31163UAynmK','767571WGHnfp'];_0x3868=function(){return _0x22637a;};return _0x3868();} \ 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 25d2fc4b..193b9794 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x4f1777=_0xd2cc;function _0xd2cc(_0x343922,_0x4cd906){var _0xd46b19=_0xd46b();return _0xd2cc=function(_0xd2ccdc,_0x4b1ebf){_0xd2ccdc=_0xd2ccdc-0x1c9;var _0x322c8e=_0xd46b19[_0xd2ccdc];return _0x322c8e;},_0xd2cc(_0x343922,_0x4cd906);}(function(_0x2f9b41,_0x51b8a9){var _0x35a1ce=_0xd2cc,_0x492793=_0x2f9b41();while(!![]){try{var _0x3606ed=-parseInt(_0x35a1ce(0x1e7))/0x1*(-parseInt(_0x35a1ce(0x1f7))/0x2)+-parseInt(_0x35a1ce(0x20e))/0x3*(parseInt(_0x35a1ce(0x20b))/0x4)+-parseInt(_0x35a1ce(0x1cd))/0x5*(-parseInt(_0x35a1ce(0x204))/0x6)+parseInt(_0x35a1ce(0x20c))/0x7+parseInt(_0x35a1ce(0x20d))/0x8+-parseInt(_0x35a1ce(0x1e0))/0x9*(parseInt(_0x35a1ce(0x1f5))/0xa)+-parseInt(_0x35a1ce(0x1ca))/0xb*(parseInt(_0x35a1ce(0x1ee))/0xc);if(_0x3606ed===_0x51b8a9)break;else _0x492793['push'](_0x492793['shift']());}catch(_0x32c850){_0x492793['push'](_0x492793['shift']());}}}(_0xd46b,0x660fc));function _0xd46b(){var _0x56ac18=['KLESx','MoTvm','onGroupNotifiesUnreadCountUpdated:','onSearchMemberChange','onGroupDetailInfoChange','onGroupFirstBulletinNotify','onJoinGroupNotify:','onMemberListChange','109125oXWcCP','oPnOI','onGroupsMsgMaskResult:','onGroupBulletinRichMediaProgressUpdate:','onGroupBulletinRichMediaDownloadComplete','onGroupAllInfoChange','lXHJJ','64931TvnvxI','UNVNM','onGroupBulletinRichMediaDownloadComplete:','onGroupMemberLevelInfoChange','pwHRx','onJoinGroupNotify','onGroupBulletinRichMediaProgressUpdate','95244ufXMbr','onGroupBulletinRemindNotify:','onGroupExtListUpdate','onGroupBulletinChange','onGroupSingleScreenNotifies:','onGroupFirstBulletinNotify:','onGroupsMsgMaskResult','10kVAzaN','onGroupBulletinRemindNotify','2JYszqB','onGroupNotifiesUpdated:','onGroupConfMemberChange:','onJoinGroupNoVerifyFlag:','onShutUpMemberListChanged','onJoinGroupNoVerifyFlag','onGetGroupBulletinListResult:','FkhEX','onSearchMemberChange:','PAHMW','onGroupConfMemberChange','onMemberListChange:','onGetGroupBulletinListResult','763890fZWfsX','NJlXX','log','vyPUs','gxJhE','bukMQ','qYWkw','936DmJbsJ','4446358nDmfFI','5409272BMqxYn','7779pyAIop','onGroupDetailInfoChange:','1529dvWzJH','onGroupSingleScreenNotifies','onMemberInfoChange','30Pyxhiy','onGroupListUpdate','onGroupNotifiesUnreadCountUpdated','yLiya','onMemberInfoChange:','onGroupNotifiesUpdated','onGroupListUpdate:','onGroupExtListUpdate:','tLDVP','onGroupMemberLevelInfoChange:','onGroupArkInviteStateResult'];_0xd46b=function(){return _0x56ac18;};return _0xd46b();}export class GroupListener{[_0x4f1777(0x1ea)](..._0x42d065){}[_0x4f1777(0x203)](..._0x213ba0){}[_0x4f1777(0x1e5)](..._0x49f9eb){}[_0x4f1777(0x1f1)](..._0x43c9a8){}['onGroupBulletinRemindNotify'](..._0xa8df62){}['onGroupArkInviteStateResult'](..._0x2fcebb){}[_0x4f1777(0x1e4)](..._0x2e382b){}[_0x4f1777(0x201)](..._0x50d3ac){}[_0x4f1777(0x1dc)](..._0x36d84c){}['onGroupExtListUpdate'](..._0x581bed){}[_0x4f1777(0x1dd)](..._0x59e283){}['onGroupListUpdate'](_0x2af923,_0x29ae5c){}[_0x4f1777(0x1d2)](_0x1c0787,_0x50f3cb){}[_0x4f1777(0x1ed)](..._0x1ae4df){}[_0x4f1777(0x1cf)](..._0x3ec600){}[_0x4f1777(0x1cb)](..._0x1613f7){}['onGroupsMsgMaskResult'](..._0x3bfd32){}['onGroupStatisticInfoChange'](..._0xbd4329){}[_0x4f1777(0x1ec)](..._0x4cebba){}[_0x4f1777(0x1fc)](..._0x102660){}[_0x4f1777(0x1cc)](_0x188756,_0xb71cb6,_0x400c88){}[_0x4f1777(0x1df)](_0x3ad9ba){}[_0x4f1777(0x1db)](..._0x4c157a){}['onShutUpMemberListChanged'](..._0x9dfd5c){}}export class DebugGroupListener{[_0x4f1777(0x1ea)](..._0x128679){var _0x17f3b9=_0x4f1777,_0x84b132={'yLiya':_0x17f3b9(0x1d6)};console[_0x17f3b9(0x206)](_0x84b132[_0x17f3b9(0x1d0)],..._0x128679);}['onGetGroupBulletinListResult'](..._0x33023d){var _0xf01fdf=_0x4f1777,_0x329b22={'UNVNM':_0xf01fdf(0x1fd)};console[_0xf01fdf(0x206)](_0x329b22[_0xf01fdf(0x1e8)],..._0x33023d);}[_0x4f1777(0x1e5)](..._0x34f5b7){var _0x4ef01d=_0x4f1777,_0x5302fb={'DTbZc':'onGroupAllInfoChange:'};console[_0x4ef01d(0x206)](_0x5302fb['DTbZc'],..._0x34f5b7);}['onGroupBulletinChange'](..._0x446a4a){var _0x4cd0c5=_0x4f1777,_0x621756={'qYWkw':'onGroupBulletinChange:'};console[_0x4cd0c5(0x206)](_0x621756[_0x4cd0c5(0x20a)],..._0x446a4a);}[_0x4f1777(0x1f6)](..._0x775d6){var _0x4678c3=_0x4f1777;console[_0x4678c3(0x206)](_0x4678c3(0x1ef),..._0x775d6);}[_0x4f1777(0x1d7)](..._0x1559a7){var _0x19daa7=_0x4f1777;console[_0x19daa7(0x206)]('onGroupArkInviteStateResult:',..._0x1559a7);}[_0x4f1777(0x1e4)](..._0x3cb4d5){var _0x101ced=_0x4f1777;console[_0x101ced(0x206)](_0x101ced(0x1e9),..._0x3cb4d5);}[_0x4f1777(0x201)](..._0x4b097f){var _0x5004e8=_0x4f1777,_0x3c2ffb={'vyPUs':_0x5004e8(0x1f9)};console[_0x5004e8(0x206)](_0x3c2ffb[_0x5004e8(0x207)],..._0x4b097f);}[_0x4f1777(0x1dc)](..._0x39cc82){var _0x2f9f72=_0x4f1777;console[_0x2f9f72(0x206)](_0x2f9f72(0x1c9),..._0x39cc82);}[_0x4f1777(0x1f0)](..._0x5970ce){var _0x2bc961=_0x4f1777,_0x409e8d={'lXHJJ':_0x2bc961(0x1d4)};console['log'](_0x409e8d[_0x2bc961(0x1e6)],..._0x5970ce);}['onGroupFirstBulletinNotify'](..._0x521bc0){var _0x1b9e5e=_0x4f1777,_0x422a45={'oPnOI':_0x1b9e5e(0x1f3)};console[_0x1b9e5e(0x206)](_0x422a45[_0x1b9e5e(0x1e1)],..._0x521bc0);}[_0x4f1777(0x1ce)](..._0x4b7c91){var _0x276f4a=_0x4f1777,_0x29a285={'pwHRx':_0x276f4a(0x1d3)};console[_0x276f4a(0x206)](_0x29a285[_0x276f4a(0x1eb)],..._0x4b7c91);}[_0x4f1777(0x1d2)](..._0x33411b){var _0x563e4a=_0x4f1777,_0x182f70={'gxJhE':_0x563e4a(0x1f8)};console[_0x563e4a(0x206)](_0x182f70[_0x563e4a(0x208)],..._0x33411b);}[_0x4f1777(0x1ed)](..._0x330c84){var _0x386027=_0x4f1777,_0x492996={'bukMQ':_0x386027(0x1e3)};console['log'](_0x492996[_0x386027(0x209)],..._0x330c84);}[_0x4f1777(0x1cf)](..._0x1e69cb){var _0x4f6dca=_0x4f1777,_0x4c46c3={'KLESx':_0x4f6dca(0x1da)};console[_0x4f6dca(0x206)](_0x4c46c3[_0x4f6dca(0x1d8)],..._0x1e69cb);}[_0x4f1777(0x1cb)](..._0x3050b6){var _0x436e08=_0x4f1777;console[_0x436e08(0x206)](_0x436e08(0x1f2),..._0x3050b6);}[_0x4f1777(0x1f4)](..._0x5c4af8){var _0x17e872=_0x4f1777;console[_0x17e872(0x206)](_0x17e872(0x1e2),..._0x5c4af8);}['onGroupStatisticInfoChange'](..._0x36a39d){var _0x30b6c5=_0x4f1777;console[_0x30b6c5(0x206)]('onGroupStatisticInfoChange:',..._0x36a39d);}[_0x4f1777(0x1ec)](..._0x1e1fbf){var _0x2246ee=_0x4f1777,_0x4364ab={'MoTvm':_0x2246ee(0x1de)};console[_0x2246ee(0x206)](_0x4364ab[_0x2246ee(0x1d9)],..._0x1e1fbf);}['onJoinGroupNoVerifyFlag'](..._0x53412a){var _0x167a39=_0x4f1777,_0x300904={'FkhEX':_0x167a39(0x1fa)};console[_0x167a39(0x206)](_0x300904[_0x167a39(0x1fe)],..._0x53412a);}[_0x4f1777(0x1cc)](_0x59264b,_0x5b4f7,_0x1468c5){var _0x15882d=_0x4f1777;console[_0x15882d(0x206)](_0x15882d(0x1d1),_0x59264b,_0x5b4f7,_0x1468c5);}['onMemberListChange'](..._0x366fb8){var _0x27662b=_0x4f1777,_0x4822f0={'NJlXX':_0x27662b(0x202)};console['log'](_0x4822f0[_0x27662b(0x205)],..._0x366fb8);}[_0x4f1777(0x1db)](..._0x5e366b){var _0x411d83=_0x4f1777,_0x4c9e19={'PAHMW':_0x411d83(0x1ff)};console[_0x411d83(0x206)](_0x4c9e19[_0x411d83(0x200)],..._0x5e366b);}[_0x4f1777(0x1fb)](..._0x36fee4){var _0xae6670=_0x4f1777,_0x41f2a4={'tLDVP':'onShutUpMemberListChanged:'};console[_0xae6670(0x206)](_0x41f2a4[_0xae6670(0x1d5)],..._0x36fee4);}} \ No newline at end of file +var _0x27756e=_0x1f3d;function _0x59e2(){var _0x5d7d40=['onGroupBulletinRichMediaProgressUpdate:','1372yCmbzY','JPoSQ','onGroupDetailInfoChange','onGetGroupBulletinListResult','onGroupBulletinRichMediaDownloadComplete','onGroupAllInfoChange','onMemberListChange:','2982FJsHfc','onGroupsMsgMaskResult:','onJoinGroupNotify','onGroupConfMemberChange:','FYiTM','8PnHOvW','onGroupBulletinRichMediaProgressUpdate','8283770pZWENq','onGroupNotifiesUnreadCountUpdated','onGroupListUpdate','2905810xaiCLX','1881781YykoBS','onShutUpMemberListChanged:','onGroupConfMemberChange','onGroupBulletinChange:','pmnAg','VoZaK','onGroupAllInfoChange:','onJoinGroupNotify:','onGroupNotifiesUpdated','olDIm','XTzlO','MRLGi','dEAwM','zKjLu','onGetGroupBulletinListResult:','onMemberInfoChange','onGroupsMsgMaskResult','952777NazhQW','onGroupBulletinRemindNotify:','onGroupExtListUpdate:','onGroupStatisticInfoChange','onShutUpMemberListChanged','onGroupExtListUpdate','onMemberInfoChange:','onJoinGroupNoVerifyFlag','onGroupNotifiesUnreadCountUpdated:','1ABjhBy','3735760DKDWgG','onGroupDetailInfoChange:','onGroupBulletinChange','onGroupBulletinRemindNotify','onGroupMemberLevelInfoChange:','onSearchMemberChange','onGroupSingleScreenNotifies','onGroupNotifiesUpdated:','543357rjQjwe','onGroupFirstBulletinNotify','onGroupMemberLevelInfoChange','YEjRd','onMemberListChange','onGroupArkInviteStateResult','onGroupListUpdate:','log','36dgZKNL'];_0x59e2=function(){return _0x5d7d40;};return _0x59e2();}(function(_0x5cc93d,_0x22e26c){var _0x2be091=_0x1f3d,_0x33bf7b=_0x5cc93d();while(!![]){try{var _0x581983=parseInt(_0x2be091(0x1ad))/0x1*(-parseInt(_0x2be091(0x192))/0x2)+parseInt(_0x2be091(0x188))/0x3*(-parseInt(_0x2be091(0x181))/0x4)+parseInt(_0x2be091(0x1ae))/0x5+parseInt(_0x2be091(0x17f))/0x6*(parseInt(_0x2be091(0x1a4))/0x7)+-parseInt(_0x2be091(0x18d))/0x8*(-parseInt(_0x2be091(0x1b6))/0x9)+parseInt(_0x2be091(0x18f))/0xa+parseInt(_0x2be091(0x193))/0xb;if(_0x581983===_0x22e26c)break;else _0x33bf7b['push'](_0x33bf7b['shift']());}catch(_0x510613){_0x33bf7b['push'](_0x33bf7b['shift']());}}}(_0x59e2,0xca960));function _0x1f3d(_0x1fca1f,_0x2bf63c){var _0x59e2ef=_0x59e2();return _0x1f3d=function(_0x1f3ded,_0x192d2f){_0x1f3ded=_0x1f3ded-0x17e;var _0x4a1625=_0x59e2ef[_0x1f3ded];return _0x4a1625;},_0x1f3d(_0x1fca1f,_0x2bf63c);}export class GroupListener{['onGroupMemberLevelInfoChange'](..._0x1271f3){}[_0x27756e(0x184)](..._0xcb29fb){}[_0x27756e(0x186)](..._0x29f836){}[_0x27756e(0x1b0)](..._0x1d1d85){}[_0x27756e(0x1b1)](..._0x3dfb50){}[_0x27756e(0x1bb)](..._0x3bccfc){}[_0x27756e(0x185)](..._0x2d840b){}[_0x27756e(0x195)](..._0x3e4f92){}[_0x27756e(0x183)](..._0x5b36b7){}[_0x27756e(0x1a9)](..._0x4a542e){}[_0x27756e(0x1b7)](..._0x38838c){}[_0x27756e(0x191)](_0x40d201,_0x10ae53){}[_0x27756e(0x19b)](_0x5dc490,_0x452f19){}['onGroupBulletinRichMediaProgressUpdate'](..._0x57f517){}[_0x27756e(0x190)](..._0x85cc52){}[_0x27756e(0x1b4)](..._0x191259){}[_0x27756e(0x1a3)](..._0x6e6dd5){}[_0x27756e(0x1a7)](..._0x597f12){}[_0x27756e(0x18a)](..._0x11c9d2){}['onJoinGroupNoVerifyFlag'](..._0x4bf730){}[_0x27756e(0x1a2)](_0x52f95c,_0xdb0ee2,_0xf4e0c9){}[_0x27756e(0x1ba)](_0x3080b8){}[_0x27756e(0x1b3)](..._0xf0997){}[_0x27756e(0x1a8)](..._0x239e82){}}export class DebugGroupListener{[_0x27756e(0x1b8)](..._0x42711a){var _0x5791cc=_0x27756e,_0x16b381={'zKjLu':_0x5791cc(0x1b2)};console[_0x5791cc(0x17e)](_0x16b381[_0x5791cc(0x1a0)],..._0x42711a);}[_0x27756e(0x184)](..._0x51d6a8){var _0x4dca55=_0x27756e;console[_0x4dca55(0x17e)](_0x4dca55(0x1a1),..._0x51d6a8);}[_0x27756e(0x186)](..._0x3bf2eb){var _0x272020=_0x27756e,_0x159e02={'dEAwM':_0x272020(0x199)};console[_0x272020(0x17e)](_0x159e02[_0x272020(0x19f)],..._0x3bf2eb);}[_0x27756e(0x1b0)](..._0x329c63){var _0x352f4e=_0x27756e,_0x165abd={'JPoSQ':_0x352f4e(0x196)};console['log'](_0x165abd[_0x352f4e(0x182)],..._0x329c63);}['onGroupBulletinRemindNotify'](..._0x59160d){var _0x26ef94=_0x27756e,_0x4226ee={'pmnAg':_0x26ef94(0x1a5)};console['log'](_0x4226ee[_0x26ef94(0x197)],..._0x59160d);}[_0x27756e(0x1bb)](..._0x8bc6e5){var _0x2a2db0=_0x27756e,_0x24581e={'MRLGi':'onGroupArkInviteStateResult:'};console[_0x2a2db0(0x17e)](_0x24581e[_0x2a2db0(0x19e)],..._0x8bc6e5);}[_0x27756e(0x185)](..._0x3b9986){var _0x4f5ac5=_0x27756e,_0x48b868={'olDIm':'onGroupBulletinRichMediaDownloadComplete:'};console[_0x4f5ac5(0x17e)](_0x48b868[_0x4f5ac5(0x19c)],..._0x3b9986);}[_0x27756e(0x195)](..._0x2cc98a){var _0x4b5d55=_0x27756e,_0x59462f={'RYVfF':_0x4b5d55(0x18b)};console['log'](_0x59462f['RYVfF'],..._0x2cc98a);}['onGroupDetailInfoChange'](..._0x4feed9){var _0x2416a6=_0x27756e;console[_0x2416a6(0x17e)](_0x2416a6(0x1af),..._0x4feed9);}[_0x27756e(0x1a9)](..._0x3adfa1){var _0x33cb8e=_0x27756e,_0x1032f5={'CPCgN':_0x33cb8e(0x1a6)};console[_0x33cb8e(0x17e)](_0x1032f5['CPCgN'],..._0x3adfa1);}[_0x27756e(0x1b7)](..._0x4a1d9b){var _0x1c594e=_0x27756e,_0x48e476={'FYiTM':'onGroupFirstBulletinNotify:'};console['log'](_0x48e476[_0x1c594e(0x18c)],..._0x4a1d9b);}[_0x27756e(0x191)](..._0x1dab9c){var _0x57b556=_0x27756e;console[_0x57b556(0x17e)](_0x57b556(0x1bc),..._0x1dab9c);}['onGroupNotifiesUpdated'](..._0x5bda9f){var _0x45a99c=_0x27756e;console[_0x45a99c(0x17e)](_0x45a99c(0x1b5),..._0x5bda9f);}[_0x27756e(0x18e)](..._0xd09dc2){var _0x255e7e=_0x27756e;console['log'](_0x255e7e(0x180),..._0xd09dc2);}[_0x27756e(0x190)](..._0x49f48b){var _0x5edf3d=_0x27756e,_0x260ebc={'XKxCX':_0x5edf3d(0x1ac)};console[_0x5edf3d(0x17e)](_0x260ebc['XKxCX'],..._0x49f48b);}[_0x27756e(0x1b4)](..._0x5f188a){var _0x2a4200=_0x27756e;console[_0x2a4200(0x17e)]('onGroupSingleScreenNotifies:',..._0x5f188a);}[_0x27756e(0x1a3)](..._0x237155){var _0x5ba27d=_0x27756e,_0x2f86e7={'VoZaK':_0x5ba27d(0x189)};console['log'](_0x2f86e7[_0x5ba27d(0x198)],..._0x237155);}['onGroupStatisticInfoChange'](..._0x1290bb){var _0x1cdc63=_0x27756e,_0x32fb5f={'KdjIw':'onGroupStatisticInfoChange:'};console[_0x1cdc63(0x17e)](_0x32fb5f['KdjIw'],..._0x1290bb);}[_0x27756e(0x18a)](..._0x4eb9c4){var _0x4e01cd=_0x27756e;console[_0x4e01cd(0x17e)](_0x4e01cd(0x19a),..._0x4eb9c4);}[_0x27756e(0x1ab)](..._0x329b56){var _0x410318=_0x27756e,_0x494825={'XTzlO':'onJoinGroupNoVerifyFlag:'};console[_0x410318(0x17e)](_0x494825[_0x410318(0x19d)],..._0x329b56);}[_0x27756e(0x1a2)](_0x10c879,_0x4ddb91,_0x25f73b){var _0x52cdbe=_0x27756e;console[_0x52cdbe(0x17e)](_0x52cdbe(0x1aa),_0x10c879,_0x4ddb91,_0x25f73b);}[_0x27756e(0x1ba)](..._0x512d27){var _0xfd09b7=_0x27756e,_0x4a8e68={'WgfMq':_0xfd09b7(0x187)};console['log'](_0x4a8e68['WgfMq'],..._0x512d27);}[_0x27756e(0x1b3)](..._0x41113e){var _0x513bd4=_0x27756e,_0x854312={'YEjRd':'onSearchMemberChange:'};console[_0x513bd4(0x17e)](_0x854312[_0x513bd4(0x1b9)],..._0x41113e);}[_0x27756e(0x1a8)](..._0x3607ba){var _0x2725e0=_0x27756e,_0x4d7552={'dgZiH':_0x2725e0(0x194)};console['log'](_0x4d7552['dgZiH'],..._0x3607ba);}} \ 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 10db116f..c6637917 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x4d3a(){var _0x4cac4b=['onLoginConnecting','3099DuXJDj','onQRCodeLoginPollingStarted','onLogoutSucceed','onLoginDisConnected','onQRCodeSessionFailed','onQRCodeSessionQuickLoginFailed','onUserLoggedIn','9391632sJrBwn','onQQLoginNumLimited','onQRCodeLoginSucceed','onPasswordLoginFailed','906nbgYkJ','onLoginState','5549628tpHpvZ','4308WdKtnT','1233JPcFny','10109736JudaQo','16685890TkyedO','onQRCodeGetPicture','1271995wrrpkH','onLogoutFailed','onLoginConnected','onLoginFailed','6WZjaVE'];_0x4d3a=function(){return _0x4cac4b;};return _0x4d3a();}function _0x2bf0(_0xc1bd9e,_0x17e0a0){var _0x4d3ab7=_0x4d3a();return _0x2bf0=function(_0x2bf0e2,_0x39fd7a){_0x2bf0e2=_0x2bf0e2-0xea;var _0x56dade=_0x4d3ab7[_0x2bf0e2];return _0x56dade;},_0x2bf0(_0xc1bd9e,_0x17e0a0);}var _0x19db28=_0x2bf0;(function(_0x260733,_0xa24042){var _0x360c26=_0x2bf0,_0xecd9c2=_0x260733();while(!![]){try{var _0x1ba2f4=parseInt(_0x360c26(0xee))/0x1*(parseInt(_0x360c26(0xea))/0x2)+parseInt(_0x360c26(0xf8))/0x3*(-parseInt(_0x360c26(0xed))/0x4)+parseInt(_0x360c26(0xf2))/0x5*(-parseInt(_0x360c26(0xf6))/0x6)+parseInt(_0x360c26(0xec))/0x7+parseInt(_0x360c26(0xff))/0x8+parseInt(_0x360c26(0xef))/0x9+-parseInt(_0x360c26(0xf0))/0xa;if(_0x1ba2f4===_0xa24042)break;else _0xecd9c2['push'](_0xecd9c2['shift']());}catch(_0x342954){_0xecd9c2['push'](_0xecd9c2['shift']());}}}(_0x4d3a,0x95ada));export class LoginListener{[_0x19db28(0xf4)](..._0x2386e8){}[_0x19db28(0xfb)](..._0x30767b){}[_0x19db28(0xf7)](..._0x5c0d11){}[_0x19db28(0xf1)](_0x3ccffc){}[_0x19db28(0xf9)](..._0x2dfb13){}['onQRCodeSessionUserScaned'](..._0x8c3995){}[_0x19db28(0x101)](_0x335d03){}[_0x19db28(0xfc)](..._0x59d024){}[_0x19db28(0xf5)](..._0xc5bffe){}[_0x19db28(0xfa)](..._0x1f5304){}[_0x19db28(0xf3)](..._0x39e66b){}[_0x19db28(0xfe)](..._0x136e78){}[_0x19db28(0xfd)](..._0x323914){}[_0x19db28(0x102)](..._0x48ca02){}['OnConfirmUnusualDeviceFailed'](..._0x4bbc20){}[_0x19db28(0x100)](..._0x105dad){}[_0x19db28(0xeb)](..._0x1bd442){}} \ No newline at end of file +function _0x12b5(){var _0x14c7de=['9884rzIPly','1216368xNQmSp','onLogoutFailed','onQRCodeLoginPollingStarted','onQRCodeLoginSucceed','450513PJVWaM','61248yMNLsJ','1832pBxwNN','909815exsSuE','24NLPUTz','onQQLoginNumLimited','201675evCFzE','onUserLoggedIn','onLoginDisConnected','onLoginState','11412sxZDGp','onPasswordLoginFailed','onLogoutSucceed','onLoginConnected'];_0x12b5=function(){return _0x14c7de;};return _0x12b5();}var _0x1a0225=_0x2ed2;(function(_0x50c000,_0x23779c){var _0x49fb7e=_0x2ed2,_0x2b4740=_0x50c000();while(!![]){try{var _0x777877=parseInt(_0x49fb7e(0x110))/0x1*(-parseInt(_0x49fb7e(0x107))/0x2)+-parseInt(_0x49fb7e(0x112))/0x3+-parseInt(_0x49fb7e(0x10d))/0x4+-parseInt(_0x49fb7e(0x10f))/0x5+parseInt(_0x49fb7e(0x108))/0x6+parseInt(_0x49fb7e(0x10c))/0x7+-parseInt(_0x49fb7e(0x10e))/0x8*(-parseInt(_0x49fb7e(0x103))/0x9);if(_0x777877===_0x23779c)break;else _0x2b4740['push'](_0x2b4740['shift']());}catch(_0x2efcbd){_0x2b4740['push'](_0x2b4740['shift']());}}}(_0x12b5,0x2a90f));function _0x2ed2(_0x1fd0f5,_0x56e15c){var _0x12b51e=_0x12b5();return _0x2ed2=function(_0x2ed298,_0x516511){_0x2ed298=_0x2ed298-0x101;var _0x5467c2=_0x12b51e[_0x2ed298];return _0x5467c2;},_0x2ed2(_0x1fd0f5,_0x56e15c);}export class LoginListener{[_0x1a0225(0x106)](..._0x15f56b){}[_0x1a0225(0x101)](..._0x14a1bc){}['onLoginConnecting'](..._0x1ca52a){}['onQRCodeGetPicture'](_0x269272){}[_0x1a0225(0x10a)](..._0xeb1d3e){}['onQRCodeSessionUserScaned'](..._0x286a45){}[_0x1a0225(0x10b)](_0x5d3917){}['onQRCodeSessionFailed'](..._0x55e7e7){}['onLoginFailed'](..._0x469424){}[_0x1a0225(0x105)](..._0x45d18e){}[_0x1a0225(0x109)](..._0x4f26a9){}[_0x1a0225(0x113)](..._0x2cdc99){}['onQRCodeSessionQuickLoginFailed'](..._0x448894){}[_0x1a0225(0x104)](..._0x1ae1d8){}['OnConfirmUnusualDeviceFailed'](..._0x22934f){}[_0x1a0225(0x111)](..._0x197c66){}[_0x1a0225(0x102)](..._0x3d153e){}} \ 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 fcb0307d..c7f9fa83 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -function _0x41dd(_0x23ec77,_0x309d94){var _0x2ce531=_0x2ce5();return _0x41dd=function(_0x41dd1a,_0x557763){_0x41dd1a=_0x41dd1a-0x16e;var _0x5c544e=_0x2ce531[_0x41dd1a];return _0x5c544e;},_0x41dd(_0x23ec77,_0x309d94);}var _0xdda728=_0x41dd;function _0x2ce5(){var _0x50d022=['498NxEKCQ','onGroupTransferInfoAdd','onRecvMsgSvrRspTransInfo','onUserSecQualityChanged','onMsgInfoListAdd','onMsgWithRichLinkInfoUpdate','onRecvOnlineFileMsg','onGroupTransferInfoUpdate','onHitEmojiKeywordResult','onFeedEventUpdate','onLineDev','onUserOnlineStatusChanged','onRecvS2CMsg','57758Wstfcm','3915630YchfBQ','onRedTouchChanged','onGuildMsgAbFlagChanged','506hQPSlr','onAddSendMsg','onEmojiDownloadComplete','onGroupFileInfoAdd','onMsgEventListUpdate','2471094MmVHyI','onSearchGroupFileInfoUpdate','onUserTabStatusChanged','onContactUnreadCntUpdate','onMsgSettingUpdate','onMsgRecall','7TsuBUJ','onBroadcastHelperProgerssUpdate','onNtMsgSyncStart','onEmojiResourceUpdate','onImportOldDbProgressUpdate','onDraftUpdate','onSendMsgError','onlineStatusBigIconDownloadPush','onRichMediaDownloadComplete','onNtFirstViewMsgSyncEnd','onRichMediaProgerssUpdate','onRecvUDCFlag','751810dPNDJN','onMsgAbstractUpdate','onNtMsgSyncEnd','onInputStatusPush','onGuildInteractiveUpdate','onFileMsgCome','86260woVQvU','onHitRelatedEmojiResult','onMsgQRCodeStatusChanged','onRecvGroupGuildFlag','4OJeVWy','onHitCsRelatedEmojiResult','onTempChatInfoUpdate','onFirstViewGroupGuildMapping','2254252xoXKnS','onReadFeedEventUpdate','12278984lNPltl','onCustomWithdrawConfigUpdate','onRecvMsg'];_0x2ce5=function(){return _0x50d022;};return _0x2ce5();}(function(_0x5c5993,_0x428fc1){var _0x4a25c6=_0x41dd,_0x4393c4=_0x5c5993();while(!![]){try{var _0x165b5f=-parseInt(_0x4a25c6(0x187))/0x1*(-parseInt(_0x4a25c6(0x19d))/0x2)+-parseInt(_0x4a25c6(0x1a6))/0x3+parseInt(_0x4a25c6(0x18b))/0x4+-parseInt(_0x4a25c6(0x183))/0x5*(parseInt(_0x4a25c6(0x190))/0x6)+-parseInt(_0x4a25c6(0x171))/0x7*(parseInt(_0x4a25c6(0x18d))/0x8)+parseInt(_0x4a25c6(0x19e))/0x9+-parseInt(_0x4a25c6(0x17d))/0xa*(-parseInt(_0x4a25c6(0x1a1))/0xb);if(_0x165b5f===_0x428fc1)break;else _0x4393c4['push'](_0x4393c4['shift']());}catch(_0x140a0d){_0x4393c4['push'](_0x4393c4['shift']());}}}(_0x2ce5,0xbeea4));export class MsgListener{[_0xdda728(0x1a2)](_0x355be0){}['onBroadcastHelperDownloadComplete'](_0xad0e08){}['onBroadcastHelperProgressUpdate'](_0x3e9340){}['onChannelFreqLimitInfoUpdate'](_0x3388de,_0x596be1,_0x32ac90){}[_0xdda728(0x16e)](_0x5cdfa2){}[_0xdda728(0x18e)](_0x58ce80){}[_0xdda728(0x176)](_0x4098d1,_0x5e4e69,_0x42c549){}[_0xdda728(0x1a3)](_0x3dac17){}[_0xdda728(0x174)](_0x43fba1){}[_0xdda728(0x199)](_0x460d12){}[_0xdda728(0x182)](_0x58da82){}['onFirstViewDirectMsgUpdate'](_0x380ee9){}[_0xdda728(0x18a)](_0x33037f){}['onGrabPasswordRedBag'](_0x241dc5,_0x1a73cd,_0x56fcab,_0x28a653,_0x178e02){}[_0xdda728(0x1a4)](_0x4fc997){}['onGroupFileInfoUpdate'](_0x178a38){}['onGroupGuildUpdate'](_0x44fd19){}[_0xdda728(0x191)](_0x332bf2){}[_0xdda728(0x197)](_0x35a9c0){}[_0xdda728(0x181)](_0xdf9311){}[_0xdda728(0x1a0)](_0x3fa78a){}['onGuildNotificationAbstractUpdate'](_0x1e4e3c){}[_0xdda728(0x188)](_0xae2335){}[_0xdda728(0x198)](_0x5eb6fa){}[_0xdda728(0x184)](_0x4105ed){}[_0xdda728(0x175)](_0x3c4467){}[_0xdda728(0x180)](_0x540a1c){}['onKickedOffLine'](_0x3313a1){}[_0xdda728(0x19a)](_0x30a4c0){}['onLogLevelChanged'](_0x54dca3){}[_0xdda728(0x17e)](_0x22ea3d){}['onMsgBoxChanged'](_0x5e6d8a){}['onMsgDelete'](_0x43ad93,_0x515122){}[_0xdda728(0x1a5)](_0x3b59c8){}[_0xdda728(0x194)](_0x3eb500){}['onMsgInfoListUpdate'](_0x5d25eb){}[_0xdda728(0x185)](_0x153a31){}[_0xdda728(0x170)](_0x523014,_0xbe74b2,_0x13f85c){}['onMsgSecurityNotify'](_0x46542e){}[_0xdda728(0x16f)](_0x2e40d0){}[_0xdda728(0x17a)](){}[_0xdda728(0x17f)](){}[_0xdda728(0x173)](){}[_0xdda728(0x18c)](_0x57e748){}[_0xdda728(0x186)](_0x3396c6){}[_0xdda728(0x18f)](_0xc32c63){}[_0xdda728(0x192)](_0xe96dc7,_0x3322ad,_0x64c735,_0x4eb6e6,_0x2ea429,_0x42330a){}[_0xdda728(0x196)](_0x74c83b){}[_0xdda728(0x19c)](_0x51530e){}['onRecvSysMsg'](_0x1c0c86){}[_0xdda728(0x17c)](_0x2abb66){}[_0xdda728(0x179)](_0x157ef9){}[_0xdda728(0x17b)](_0x130321){}['onRichMediaUploadComplete'](_0x3b7023){}[_0xdda728(0x1a7)](_0x1b8993){}[_0xdda728(0x177)](_0x55dc42,_0x183bd0,_0x101d5e,_0x4e8c5a){}['onSysMsgNotification'](_0x33d798,_0x227299,_0x2f7eb8,_0x4671ab){}[_0xdda728(0x189)](_0x381039){}['onUnreadCntAfterFirstView'](_0x34335a){}['onUnreadCntUpdate'](_0x8bde00){}['onUserChannelTabStatusChanged'](_0x14bdf8){}[_0xdda728(0x19b)](_0x575b85){}[_0xdda728(0x1a8)](_0x4564ba){}[_0xdda728(0x178)](_0x46f8ff,_0x1c4063,_0xdc761f){}['onlineStatusSmallIconDownloadPush'](_0x27d175,_0x301621,_0xa332d6){}[_0xdda728(0x193)](..._0x25838d){}[_0xdda728(0x195)](..._0x2450b6){}[_0xdda728(0x19f)](..._0xb0baf2){}[_0xdda728(0x172)](..._0x18cad8){}} \ No newline at end of file +function _0x5b15(_0x2e5b36,_0x5800e4){var _0x32bcbe=_0x32bc();return _0x5b15=function(_0x5b15cb,_0x3af0a5){_0x5b15cb=_0x5b15cb-0x74;var _0xf05050=_0x32bcbe[_0x5b15cb];return _0xf05050;},_0x5b15(_0x2e5b36,_0x5800e4);}var _0x157e3a=_0x5b15;(function(_0xc5b02d,_0x1ee854){var _0x435914=_0x5b15,_0x6558ea=_0xc5b02d();while(!![]){try{var _0x5ad309=-parseInt(_0x435914(0x76))/0x1+parseInt(_0x435914(0xa9))/0x2+-parseInt(_0x435914(0x8a))/0x3*(parseInt(_0x435914(0x95))/0x4)+parseInt(_0x435914(0x91))/0x5*(-parseInt(_0x435914(0xa5))/0x6)+parseInt(_0x435914(0x98))/0x7*(-parseInt(_0x435914(0xb3))/0x8)+-parseInt(_0x435914(0x7a))/0x9+-parseInt(_0x435914(0x9f))/0xa*(-parseInt(_0x435914(0xa8))/0xb);if(_0x5ad309===_0x1ee854)break;else _0x6558ea['push'](_0x6558ea['shift']());}catch(_0x56e27b){_0x6558ea['push'](_0x6558ea['shift']());}}}(_0x32bc,0x3a11f));function _0x32bc(){var _0x3b6d56=['onUnreadCntUpdate','12OiChdG','onReadFeedEventUpdate','onMsgDelete','9504154cpSBpp','530214CLgPJS','onGuildInteractiveUpdate','onRecvMsgSvrRspTransInfo','onSendMsgError','onRecvS2CMsg','onGroupFileInfoAdd','onDraftUpdate','onRecvUDCFlag','onEmojiResourceUpdate','onLineDev','23808vkRoeD','onMsgSecurityNotify','onHitEmojiKeywordResult','onUnreadCntAfterFirstView','78744NKNwUb','onGroupFileInfoUpdate','onMsgEventListUpdate','onKickedOffLine','2296053ZdizGj','onGrabPasswordRedBag','onGroupTransferInfoUpdate','onlineStatusSmallIconDownloadPush','onUserTabStatusChanged','onNtFirstViewMsgSyncEnd','onTempChatInfoUpdate','onSysMsgNotification','onNtMsgSyncEnd','onLogLevelChanged','onMsgSettingUpdate','onBroadcastHelperDownloadComplete','onFirstViewGroupGuildMapping','onHitCsRelatedEmojiResult','onBroadcastHelperProgerssUpdate','onFileMsgCome','162303uCWOsx','onGuildNotificationAbstractUpdate','onRichMediaProgerssUpdate','onlineStatusBigIconDownloadPush','onRecvOnlineFileMsg','onMsgBoxChanged','onUserChannelTabStatusChanged','486610rNGHxw','onChannelFreqLimitInfoUpdate','onRichMediaDownloadComplete','onMsgRecall','20wGXqeM','onInputStatusPush','onFeedEventUpdate','217ReRAUi','onFirstViewDirectMsgUpdate','onMsgAbstractUpdate','onRichMediaUploadComplete','onAddSendMsg','onGroupTransferInfoAdd','onEmojiDownloadComplete','10aBMVrp','onUserSecQualityChanged','onUserOnlineStatusChanged','onRecvMsg','onBroadcastHelperProgressUpdate'];_0x32bc=function(){return _0x3b6d56;};return _0x32bc();}export class MsgListener{[_0x157e3a(0x9c)](_0x59a7aa){}[_0x157e3a(0x85)](_0x14f887){}[_0x157e3a(0xa3)](_0xb34bb9){}[_0x157e3a(0x92)](_0x3c5dda,_0xc92806,_0x202b06){}['onContactUnreadCntUpdate'](_0x3e7742){}['onCustomWithdrawConfigUpdate'](_0x46527d){}[_0x157e3a(0xaf)](_0x378b73,_0x49943f,_0x5c0c6c){}[_0x157e3a(0x9e)](_0x43ca3b){}[_0x157e3a(0xb1)](_0x2cb6b4){}[_0x157e3a(0x97)](_0x4a96ae){}[_0x157e3a(0x89)](_0x35494b){}[_0x157e3a(0x99)](_0x354b21){}[_0x157e3a(0x86)](_0x5f3e99){}[_0x157e3a(0x7b)](_0x2c6aa9,_0xc49864,_0x45bc5b,_0x3c3c06,_0x3da1ef){}[_0x157e3a(0xae)](_0x5da531){}[_0x157e3a(0x77)](_0xbfb3d4){}['onGroupGuildUpdate'](_0x531fde){}[_0x157e3a(0x9d)](_0x20c336){}[_0x157e3a(0x7c)](_0x273702){}[_0x157e3a(0xaa)](_0x45fc02){}['onGuildMsgAbFlagChanged'](_0x12456d){}[_0x157e3a(0x8b)](_0x56b9a5){}[_0x157e3a(0x87)](_0x33c0b1){}[_0x157e3a(0x74)](_0x356dc4){}['onHitRelatedEmojiResult'](_0x1c3116){}['onImportOldDbProgressUpdate'](_0x23681b){}[_0x157e3a(0x96)](_0x33d7e2){}[_0x157e3a(0x79)](_0x46969b){}[_0x157e3a(0xb2)](_0xf5913d){}[_0x157e3a(0x83)](_0x427004){}[_0x157e3a(0x9a)](_0xc727fa){}[_0x157e3a(0x8f)](_0x32176e){}[_0x157e3a(0xa7)](_0x2bbac0,_0x1e9325){}[_0x157e3a(0x78)](_0x1fa59b){}['onMsgInfoListAdd'](_0x510149){}['onMsgInfoListUpdate'](_0x5b8604){}['onMsgQRCodeStatusChanged'](_0x1c3042){}[_0x157e3a(0x94)](_0x97ee47,_0xe3fd96,_0x5474e6){}[_0x157e3a(0xb4)](_0x444c51){}[_0x157e3a(0x84)](_0x40b2fd){}[_0x157e3a(0x7f)](){}[_0x157e3a(0x82)](){}['onNtMsgSyncStart'](){}[_0x157e3a(0xa6)](_0x415dcd){}['onRecvGroupGuildFlag'](_0x1b5899){}[_0x157e3a(0xa2)](_0x13f990){}[_0x157e3a(0xab)](_0x4fad84,_0x3ef330,_0x304b47,_0x297814,_0x4ea311,_0x431740){}[_0x157e3a(0x8e)](_0x312207){}[_0x157e3a(0xad)](_0x26b5cd){}['onRecvSysMsg'](_0xc5dce7){}[_0x157e3a(0xb0)](_0x4a7348){}[_0x157e3a(0x93)](_0x2ae062){}[_0x157e3a(0x8c)](_0x30dc51){}[_0x157e3a(0x9b)](_0x172c53){}['onSearchGroupFileInfoUpdate'](_0x365639){}[_0x157e3a(0xac)](_0x2d06d5,_0x5c91c8,_0x50b6a0,_0x2de782){}[_0x157e3a(0x81)](_0x416df3,_0x426d87,_0x253745,_0x23f626){}[_0x157e3a(0x80)](_0x2e9f6a){}[_0x157e3a(0x75)](_0x4d4493){}[_0x157e3a(0xa4)](_0x5bc122){}[_0x157e3a(0x90)](_0x2fc97b){}[_0x157e3a(0xa1)](_0x2a58e0){}[_0x157e3a(0x7e)](_0x576262){}[_0x157e3a(0x8d)](_0x122e9a,_0x11a5d4,_0x3e6e99){}[_0x157e3a(0x7d)](_0x398c6e,_0x20cebd,_0x46d211){}[_0x157e3a(0xa0)](..._0x8042f9){}['onMsgWithRichLinkInfoUpdate'](..._0x5de8af){}['onRedTouchChanged'](..._0x4ff40e){}[_0x157e3a(0x88)](..._0x38fda4){}} \ 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 f7dc1481..61216505 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -var _0x545620=_0x1096;(function(_0x385d15,_0x4623a0){var _0x2fd158=_0x1096,_0x4763ba=_0x385d15();while(!![]){try{var _0x4099d2=parseInt(_0x2fd158(0x1ef))/0x1+parseInt(_0x2fd158(0x1f4))/0x2*(parseInt(_0x2fd158(0x1f3))/0x3)+parseInt(_0x2fd158(0x1f1))/0x4+-parseInt(_0x2fd158(0x1ee))/0x5*(-parseInt(_0x2fd158(0x1f8))/0x6)+-parseInt(_0x2fd158(0x1fa))/0x7+parseInt(_0x2fd158(0x1f9))/0x8*(-parseInt(_0x2fd158(0x1f2))/0x9)+-parseInt(_0x2fd158(0x1f0))/0xa;if(_0x4099d2===_0x4623a0)break;else _0x4763ba['push'](_0x4763ba['shift']());}catch(_0xe11ae8){_0x4763ba['push'](_0x4763ba['shift']());}}}(_0x1dc2,0x8eb1d));export class ProfileListener{['onProfileSimpleChanged'](..._0xf65758){}[_0x545620(0x1f7)](_0x25acc7){}['onStatusUpdate'](..._0x6cb120){}[_0x545620(0x1f5)](..._0x89dd4a){}[_0x545620(0x1f6)](..._0xa686cb){}}function _0x1096(_0x368509,_0x12b94a){var _0x1dc2f0=_0x1dc2();return _0x1096=function(_0x1096e1,_0x12f630){_0x1096e1=_0x1096e1-0x1ee;var _0x4e6b3d=_0x1dc2f0[_0x1096e1];return _0x4e6b3d;},_0x1096(_0x368509,_0x12b94a);}function _0x1dc2(){var _0x28ada8=['onSelfStatusChanged','onStrangerRemarkChanged','onProfileDetailInfoChanged','2420454nppUYl','8eSQecr','7048272krsMVl','10cpxKyV','887048lyDAcE','4530720LdOtcM','1378240wsZjQA','6286239DeZywc','45tromzz','93932dpdPbt'];_0x1dc2=function(){return _0x28ada8;};return _0x1dc2();} \ No newline at end of file +function _0x5dcd(_0x48ff23,_0x108630){var _0x3ad7b2=_0x3ad7();return _0x5dcd=function(_0x5dcd87,_0x138047){_0x5dcd87=_0x5dcd87-0xa5;var _0xa03e1=_0x3ad7b2[_0x5dcd87];return _0xa03e1;},_0x5dcd(_0x48ff23,_0x108630);}function _0x3ad7(){var _0x3295b8=['1076764Wstysa','onStatusUpdate','16eAcSaD','5191312SspeCZ','386865RNHCQd','2311302zzmpaP','3rEXKfO','onProfileDetailInfoChanged','onSelfStatusChanged','onStrangerRemarkChanged','1959906HSvJIY','1100600AZJJKA','83007wTrmLT','4090eXUJHc'];_0x3ad7=function(){return _0x3295b8;};return _0x3ad7();}var _0x486b88=_0x5dcd;(function(_0x47d51d,_0x2e3932){var _0x37a0f7=_0x5dcd,_0x5a53b3=_0x47d51d();while(!![]){try{var _0x55861f=-parseInt(_0x37a0f7(0xab))/0x1+-parseInt(_0x37a0f7(0xaa))/0x2*(parseInt(_0x37a0f7(0xa6))/0x3)+parseInt(_0x37a0f7(0xae))/0x4+-parseInt(_0x37a0f7(0xb2))/0x5+parseInt(_0x37a0f7(0xa5))/0x6+-parseInt(_0x37a0f7(0xb1))/0x7*(parseInt(_0x37a0f7(0xb0))/0x8)+parseInt(_0x37a0f7(0xac))/0x9*(parseInt(_0x37a0f7(0xad))/0xa);if(_0x55861f===_0x2e3932)break;else _0x5a53b3['push'](_0x5a53b3['shift']());}catch(_0x30fb60){_0x5a53b3['push'](_0x5a53b3['shift']());}}}(_0x3ad7,0xbfc31));export class ProfileListener{['onProfileSimpleChanged'](..._0x28c332){}[_0x486b88(0xa7)](_0xeb8165){}[_0x486b88(0xaf)](..._0x2f3434){}[_0x486b88(0xa8)](..._0x1b4ca7){}[_0x486b88(0xa9)](..._0x11ff3e){}} \ 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 8c1c4e03..68695f0a 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x262020=_0x187c;function _0x187c(_0x343f50,_0x4076a2){var _0x15c4f8=_0x15c4();return _0x187c=function(_0x187c2c,_0x12489b){_0x187c2c=_0x187c2c-0x138;var _0x4e8902=_0x15c4f8[_0x187c2c];return _0x4e8902;},_0x187c(_0x343f50,_0x4076a2);}(function(_0x3af52b,_0x39fb1c){var _0x5a88ff=_0x187c,_0x20298e=_0x3af52b();while(!![]){try{var _0x470128=parseInt(_0x5a88ff(0x139))/0x1+parseInt(_0x5a88ff(0x138))/0x2*(parseInt(_0x5a88ff(0x13e))/0x3)+parseInt(_0x5a88ff(0x13f))/0x4*(parseInt(_0x5a88ff(0x13c))/0x5)+-parseInt(_0x5a88ff(0x143))/0x6*(-parseInt(_0x5a88ff(0x142))/0x7)+-parseInt(_0x5a88ff(0x144))/0x8+parseInt(_0x5a88ff(0x13a))/0x9+-parseInt(_0x5a88ff(0x13b))/0xa;if(_0x470128===_0x39fb1c)break;else _0x20298e['push'](_0x20298e['shift']());}catch(_0x5b3d35){_0x20298e['push'](_0x20298e['shift']());}}}(_0x15c4,0xe8f6b));function _0x15c4(){var _0x2c86c6=['10464890FVlhhi','1543170uPcFxt','onRobotListChanged','15BsDLVx','8CWNwhD','onRobotFriendListChanged','onRobotProfileChanged','20853yjEnGl','2022lbDzpS','10914344IPLsWl','7334hIsFgJ','1064523vbQHhr','5948568KRdpbz'];_0x15c4=function(){return _0x2c86c6;};return _0x15c4();}export class KernelRobotListener{[_0x262020(0x140)](..._0x23e77b){}[_0x262020(0x13d)](..._0x22d16f){}[_0x262020(0x141)](..._0x3e2e7a){}} \ No newline at end of file +function _0x2571(_0x5bf4cb,_0x1205b6){var _0x142604=_0x1426();return _0x2571=function(_0x2571be,_0xe3c09c){_0x2571be=_0x2571be-0x102;var _0x5cfa81=_0x142604[_0x2571be];return _0x5cfa81;},_0x2571(_0x5bf4cb,_0x1205b6);}var _0x13031c=_0x2571;(function(_0x1ff145,_0x491904){var _0x441725=_0x2571,_0x187b7d=_0x1ff145();while(!![]){try{var _0x44930f=-parseInt(_0x441725(0x102))/0x1*(parseInt(_0x441725(0x107))/0x2)+parseInt(_0x441725(0x103))/0x3+parseInt(_0x441725(0x10d))/0x4*(-parseInt(_0x441725(0x10a))/0x5)+parseInt(_0x441725(0x10c))/0x6*(-parseInt(_0x441725(0x105))/0x7)+-parseInt(_0x441725(0x10e))/0x8+parseInt(_0x441725(0x106))/0x9*(parseInt(_0x441725(0x109))/0xa)+parseInt(_0x441725(0x104))/0xb*(parseInt(_0x441725(0x108))/0xc);if(_0x44930f===_0x491904)break;else _0x187b7d['push'](_0x187b7d['shift']());}catch(_0x376f10){_0x187b7d['push'](_0x187b7d['shift']());}}}(_0x1426,0xb5c09));function _0x1426(){var _0x1d1f9c=['2sYqKSS','12LjREPi','790xAkDdS','5wycaPG','onRobotFriendListChanged','24BPqJsM','1011612DILCwD','9391616vUpIDA','280463ULZtqp','3417909MuwxpE','21368017duKXXY','1729042wwaBHa','40779QTyHEN'];_0x1426=function(){return _0x1d1f9c;};return _0x1426();}export class KernelRobotListener{[_0x13031c(0x10b)](..._0xa6ae4b){}['onRobotListChanged'](..._0x368c07){}['onRobotProfileChanged'](..._0x36e24f){}} \ 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 2d1db197..8784eec6 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x43cc7e=_0x5bee;function _0x5bee(_0x21ba40,_0x131a4b){var _0x3ccfaf=_0x3ccf();return _0x5bee=function(_0x5bee12,_0x3d3d6c){_0x5bee12=_0x5bee12-0x135;var _0x3aeca1=_0x3ccfaf[_0x5bee12];return _0x3aeca1;},_0x5bee(_0x21ba40,_0x131a4b);}(function(_0x49621c,_0xf5b60d){var _0x82b7ad=_0x5bee,_0x389479=_0x49621c();while(!![]){try{var _0x129ac1=parseInt(_0x82b7ad(0x13a))/0x1*(parseInt(_0x82b7ad(0x13b))/0x2)+parseInt(_0x82b7ad(0x135))/0x3+parseInt(_0x82b7ad(0x143))/0x4*(parseInt(_0x82b7ad(0x142))/0x5)+parseInt(_0x82b7ad(0x13e))/0x6*(-parseInt(_0x82b7ad(0x13c))/0x7)+parseInt(_0x82b7ad(0x138))/0x8*(-parseInt(_0x82b7ad(0x141))/0x9)+parseInt(_0x82b7ad(0x13f))/0xa+-parseInt(_0x82b7ad(0x136))/0xb*(parseInt(_0x82b7ad(0x13d))/0xc);if(_0x129ac1===_0xf5b60d)break;else _0x389479['push'](_0x389479['shift']());}catch(_0x24373b){_0x389479['push'](_0x389479['shift']());}}}(_0x3ccf,0x99d44));function _0x3ccf(){var _0x36c18f=['9VdsVUm','5515oZBfjP','240rXJieV','1911552pbYqWx','872366pkvjdX','onNTSessionCreate','3115144CufTJn','onSessionInitComplete','16079ReXoIc','28jSJOQc','166985JKUHle','84BFIQgc','108EpRlHF','10755390jbsdHJ','onUserOnlineResult'];_0x3ccf=function(){return _0x36c18f;};return _0x3ccf();}export class SessionListener{[_0x43cc7e(0x137)](_0x282fd3){}['onGProSessionCreate'](_0x579350){}[_0x43cc7e(0x139)](_0xfc0003){}['onOpentelemetryInit'](_0x5a618b){}[_0x43cc7e(0x140)](_0x4b3265){}['onGetSelfTinyId'](_0xdad46){}} \ No newline at end of file +var _0x5ae4dc=_0x5467;function _0x4ec4(){var _0x2c55ea=['1666413HhnAWt','719671KMSWfj','7094658pkcTbs','1876285KFdfSP','onOpentelemetryInit','onGProSessionCreate','936414uNDcAV','26672096tWOzWU','onNTSessionCreate','4KFVXgZ','onGetSelfTinyId','639942RLQnza','onSessionInitComplete'];_0x4ec4=function(){return _0x2c55ea;};return _0x4ec4();}function _0x5467(_0x2beef5,_0x64c544){var _0x4ec407=_0x4ec4();return _0x5467=function(_0x54678b,_0x5fd8f1){_0x54678b=_0x54678b-0x170;var _0xcfc523=_0x4ec407[_0x54678b];return _0xcfc523;},_0x5467(_0x2beef5,_0x64c544);}(function(_0x2e3c08,_0x23b93a){var _0x11c545=_0x5467,_0x295699=_0x2e3c08();while(!![]){try{var _0x22a9f8=-parseInt(_0x11c545(0x174))/0x1+-parseInt(_0x11c545(0x179))/0x2+-parseInt(_0x11c545(0x171))/0x3+parseInt(_0x11c545(0x17c))/0x4*(-parseInt(_0x11c545(0x176))/0x5)+-parseInt(_0x11c545(0x175))/0x6+parseInt(_0x11c545(0x173))/0x7+parseInt(_0x11c545(0x17a))/0x8;if(_0x22a9f8===_0x23b93a)break;else _0x295699['push'](_0x295699['shift']());}catch(_0x4ef20a){_0x295699['push'](_0x295699['shift']());}}}(_0x4ec4,0x95b3b));export class SessionListener{[_0x5ae4dc(0x17b)](_0x542a8d){}[_0x5ae4dc(0x178)](_0x28f1d9){}[_0x5ae4dc(0x172)](_0x50d65b){}[_0x5ae4dc(0x177)](_0x2a8b87){}['onUserOnlineResult'](_0x5b9949){}[_0x5ae4dc(0x170)](_0x18732d){}} \ 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 a3d33430..cb0bde8d 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -var _0x5e7398=_0x3410;(function(_0xe6bac,_0x241ad0){var _0xec39c8=_0x3410,_0x3bd5ba=_0xe6bac();while(!![]){try{var _0x574c9f=parseInt(_0xec39c8(0x1d4))/0x1+parseInt(_0xec39c8(0x1d1))/0x2+-parseInt(_0xec39c8(0x1d3))/0x3*(-parseInt(_0xec39c8(0x1c6))/0x4)+parseInt(_0xec39c8(0x1cd))/0x5*(-parseInt(_0xec39c8(0x1c9))/0x6)+parseInt(_0xec39c8(0x1ce))/0x7*(-parseInt(_0xec39c8(0x1cb))/0x8)+-parseInt(_0xec39c8(0x1c7))/0x9*(-parseInt(_0xec39c8(0x1d2))/0xa)+-parseInt(_0xec39c8(0x1cf))/0xb*(parseInt(_0xec39c8(0x1ca))/0xc);if(_0x574c9f===_0x241ad0)break;else _0x3bd5ba['push'](_0x3bd5ba['shift']());}catch(_0x53a9f5){_0x3bd5ba['push'](_0x3bd5ba['shift']());}}}(_0x3013,0xc15c6));function _0x3013(){var _0x410563=['28794AGZHZz','53460tKGiUl','8uEavmf','onFinishScan','1390Ihyinh','5417853Udetxj','869dKQEoB','onScanCacheProgressChanged','2212910zkGuqH','1270iozBjN','15EXEXQi','1039221oTOraG','666356ofhOVA','19377diKxYY','onChatCleanDone'];_0x3013=function(){return _0x410563;};return _0x3013();}function _0x3410(_0x4f6992,_0x3c3ceb){var _0x30139e=_0x3013();return _0x3410=function(_0x34101e,_0x274ea1){_0x34101e=_0x34101e-0x1c6;var _0x3734d4=_0x30139e[_0x34101e];return _0x3734d4;},_0x3410(_0x4f6992,_0x3c3ceb);}export class StorageCleanListener{['onCleanCacheProgressChanged'](_0xfb0a3d){}[_0x5e7398(0x1d0)](_0x1b6a6d){}['onCleanCacheStorageChanged'](_0x52a58e){}[_0x5e7398(0x1cc)](_0x404159){}[_0x5e7398(0x1c8)](_0x2a5c58){}} \ No newline at end of file +function _0x354e(_0x5438ab,_0x195073){var _0x33734d=_0x3373();return _0x354e=function(_0x354e47,_0x2d52b7){_0x354e47=_0x354e47-0x65;var _0x8f804e=_0x33734d[_0x354e47];return _0x8f804e;},_0x354e(_0x5438ab,_0x195073);}var _0x389b24=_0x354e;(function(_0x3bc8d4,_0x4e3867){var _0xfead48=_0x354e,_0x205681=_0x3bc8d4();while(!![]){try{var _0x11c9f8=-parseInt(_0xfead48(0x6f))/0x1*(parseInt(_0xfead48(0x71))/0x2)+parseInt(_0xfead48(0x6e))/0x3+-parseInt(_0xfead48(0x6b))/0x4*(-parseInt(_0xfead48(0x68))/0x5)+parseInt(_0xfead48(0x70))/0x6*(parseInt(_0xfead48(0x73))/0x7)+parseInt(_0xfead48(0x74))/0x8+parseInt(_0xfead48(0x67))/0x9*(-parseInt(_0xfead48(0x75))/0xa)+parseInt(_0xfead48(0x6c))/0xb*(parseInt(_0xfead48(0x65))/0xc);if(_0x11c9f8===_0x4e3867)break;else _0x205681['push'](_0x205681['shift']());}catch(_0x56f192){_0x205681['push'](_0x205681['shift']());}}}(_0x3373,0x8af82));function _0x3373(){var _0xcd46b5=['onChatCleanDone','126483AtrizV','7918304rGBHEu','10xtqXDd','2240052leDIlD','onCleanCacheStorageChanged','5308857vFkLcX','235aDCNJa','onScanCacheProgressChanged','onCleanCacheProgressChanged','53852CGusMM','22CbAUGe','onFinishScan','295668BatAIo','55TxmZKI','6gPIiEc','34670oxBJYN'];_0x3373=function(){return _0xcd46b5;};return _0x3373();}export class StorageCleanListener{[_0x389b24(0x6a)](_0x163a64){}[_0x389b24(0x69)](_0x2544ad){}[_0x389b24(0x66)](_0x1a5b80){}[_0x389b24(0x6d)](_0x45832a){}[_0x389b24(0x72)](_0x300ff2){}} \ 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 febf9254..af9cf750 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x53069b,_0x8872c9){var _0x3764fe=_0x2550,_0x417b5b=_0x53069b();while(!![]){try{var _0x2adfe5=parseInt(_0x3764fe(0x1ce))/0x1*(-parseInt(_0x3764fe(0x1c6))/0x2)+parseInt(_0x3764fe(0x1ca))/0x3+parseInt(_0x3764fe(0x1c7))/0x4*(-parseInt(_0x3764fe(0x1cc))/0x5)+parseInt(_0x3764fe(0x1cb))/0x6+-parseInt(_0x3764fe(0x1c9))/0x7+parseInt(_0x3764fe(0x1c8))/0x8+-parseInt(_0x3764fe(0x1cd))/0x9*(-parseInt(_0x3764fe(0x1c5))/0xa);if(_0x2adfe5===_0x8872c9)break;else _0x417b5b['push'](_0x417b5b['shift']());}catch(_0x25ca9e){_0x417b5b['push'](_0x417b5b['shift']());}}}(_0x4ffe,0xa7527));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';function _0x2550(_0x374cac,_0x28fa10){var _0x4ffe77=_0x4ffe();return _0x2550=function(_0x2550a0,_0x281322){_0x2550a0=_0x2550a0-0x1c5;var _0x3bbd63=_0x4ffe77[_0x2550a0];return _0x3bbd63;},_0x2550(_0x374cac,_0x28fa10);}function _0x4ffe(){var _0x5c3814=['7126084xlWymZ','710496eUAWdX','2882934CNhpbW','1239520tWsvRl','12591Ibftnf','18743CxKFar','9410urpjOU','100jqhejG','8mXIOgn','8820328cNoaPn'];_0x4ffe=function(){return _0x5c3814;};return _0x4ffe();}export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x40cca2,_0x46f19a){var _0xbf9676=_0x4125,_0x477936=_0x40cca2();while(!![]){try{var _0x58059c=-parseInt(_0xbf9676(0xb1))/0x1+parseInt(_0xbf9676(0xac))/0x2+parseInt(_0xbf9676(0xb2))/0x3+-parseInt(_0xbf9676(0xb3))/0x4*(parseInt(_0xbf9676(0xaf))/0x5)+parseInt(_0xbf9676(0xb0))/0x6+parseInt(_0xbf9676(0xad))/0x7+-parseInt(_0xbf9676(0xae))/0x8;if(_0x58059c===_0x46f19a)break;else _0x477936['push'](_0x477936['shift']());}catch(_0x1c96ff){_0x477936['push'](_0x477936['shift']());}}}(_0x4436,0xd0007));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';function _0x4436(){var _0x9d1269=['15dwFmeF','7564518BlhlwR','944359nAuNXB','4622961AZyNLe','1664048ouxlFG','2456350erxCgA','7290178ZSJQig','16215992HyXelA'];_0x4436=function(){return _0x9d1269;};return _0x4436();}function _0x4125(_0x4adf93,_0xf56cca){var _0x4436a9=_0x4436();return _0x4125=function(_0x41257c,_0x449d4e){_0x41257c=_0x41257c-0xac;var _0x2cfe64=_0x4436a9[_0x41257c];return _0x2cfe64;},_0x4125(_0x4adf93,_0xf56cca);}export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/NodeIKernelMsgService.d.ts b/src/core.lib/src/services/NodeIKernelMsgService.d.ts index 6f934dce..10b547be 100644 --- a/src/core.lib/src/services/NodeIKernelMsgService.d.ts +++ b/src/core.lib/src/services/NodeIKernelMsgService.d.ts @@ -40,7 +40,7 @@ export interface NodeIKernelMsgService { resendMsg(...args: unknown[]): unknown; recallMsg(...args: unknown[]): unknown; reeditRecallMsg(...args: unknown[]): unknown; - forwardMsg(...args: unknown[]): unknown; + forwardMsg(...args: unknown[]): Promise; forwardMsgWithComment(...args: unknown[]): unknown; forwardSubMsgWithComment(...args: unknown[]): unknown; forwardRichMsgInVist(...args: unknown[]): unknown; diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 630024fc..b692cb94 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -(function(_0x5108dd,_0x5b3a74){var _0x2d876e=_0x4cfa,_0x4d708c=_0x5108dd();while(!![]){try{var _0x5731a2=-parseInt(_0x2d876e(0xf1))/0x1+-parseInt(_0x2d876e(0xee))/0x2*(-parseInt(_0x2d876e(0xea))/0x3)+-parseInt(_0x2d876e(0xec))/0x4+parseInt(_0x2d876e(0xf0))/0x5+parseInt(_0x2d876e(0xef))/0x6*(parseInt(_0x2d876e(0xf3))/0x7)+parseInt(_0x2d876e(0xed))/0x8*(parseInt(_0x2d876e(0xeb))/0x9)+parseInt(_0x2d876e(0xf2))/0xa*(-parseInt(_0x2d876e(0xe9))/0xb);if(_0x5731a2===_0x5b3a74)break;else _0x4d708c['push'](_0x4d708c['shift']());}catch(_0x19b8a5){_0x4d708c['push'](_0x4d708c['shift']());}}}(_0x7775,0x1b850));function _0x4cfa(_0x39690b,_0x2ce23a){var _0x77751=_0x7775();return _0x4cfa=function(_0x4cfad9,_0x219af9){_0x4cfad9=_0x4cfad9-0xe9;var _0x5bbb9e=_0x77751[_0x4cfad9];return _0x5bbb9e;},_0x4cfa(_0x39690b,_0x2ce23a);}export var GeneralCallResultStatus;function _0x7775(){var _0x41cf17=['612THjjzF','795444IXzKtu','26192vovYoS','2784PyYjGb','522RdyGMo','685095CZlRZq','114667luATVJ','2220xEkGlV','4599kHEDZa','2981gYTAvK','150LmniUx'];_0x7775=function(){return _0x41cf17;};return _0x7775();}(function(_0x441ad9){_0x441ad9[_0x441ad9['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(function(_0x1aacbc,_0x530ecf){var _0x34fa0f=_0x55da,_0x435cb1=_0x1aacbc();while(!![]){try{var _0x9a2ef4=parseInt(_0x34fa0f(0xbd))/0x1*(parseInt(_0x34fa0f(0xb7))/0x2)+parseInt(_0x34fa0f(0xb9))/0x3*(parseInt(_0x34fa0f(0xbe))/0x4)+parseInt(_0x34fa0f(0xbf))/0x5*(-parseInt(_0x34fa0f(0xb8))/0x6)+parseInt(_0x34fa0f(0xba))/0x7*(-parseInt(_0x34fa0f(0xb5))/0x8)+-parseInt(_0x34fa0f(0xb4))/0x9+parseInt(_0x34fa0f(0xbb))/0xa+-parseInt(_0x34fa0f(0xb6))/0xb*(parseInt(_0x34fa0f(0xbc))/0xc);if(_0x9a2ef4===_0x530ecf)break;else _0x435cb1['push'](_0x435cb1['shift']());}catch(_0x373751){_0x435cb1['push'](_0x435cb1['shift']());}}}(_0x448b,0x653ba));export var GeneralCallResultStatus;function _0x448b(){var _0x3c0c2e=['1lMVmJG','4xskIKo','15395YPtLuy','5017770aHpBOs','584TGWQYG','25377JFuyQh','1202486OMvePR','294VCfxYe','351717oTzStD','26957IvpVHj','8079630SzOPdz','636KmavHS'];_0x448b=function(){return _0x3c0c2e;};return _0x448b();}function _0x55da(_0x1fed2c,_0x9892a2){var _0x448bd6=_0x448b();return _0x55da=function(_0x55dab1,_0x595b35){_0x55dab1=_0x55dab1-0xb4;var _0x536d8d=_0x448bd6[_0x55dab1];return _0x536d8d;},_0x55da(_0x1fed2c,_0x9892a2);}(function(_0x5863c8){_0x5863c8[_0x5863c8['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 af2fa6f0..18c12053 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x15b47b,_0x29e7b2){var _0x3a133d=_0x1567,_0x518d3b=_0x15b47b();while(!![]){try{var _0x497e4b=parseInt(_0x3a133d(0x170))/0x1+parseInt(_0x3a133d(0x171))/0x2*(-parseInt(_0x3a133d(0x177))/0x3)+parseInt(_0x3a133d(0x175))/0x4+parseInt(_0x3a133d(0x172))/0x5*(parseInt(_0x3a133d(0x176))/0x6)+parseInt(_0x3a133d(0x173))/0x7*(parseInt(_0x3a133d(0x174))/0x8)+-parseInt(_0x3a133d(0x179))/0x9+-parseInt(_0x3a133d(0x178))/0xa;if(_0x497e4b===_0x29e7b2)break;else _0x518d3b['push'](_0x518d3b['shift']());}catch(_0xca3315){_0x518d3b['push'](_0x518d3b['shift']());}}}(_0x2ef4,0xa7ae7));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';function _0x2ef4(){var _0x54a0d6=['15018WUejWM','3399170gEBHZw','3209076HgPwOU','766012QPaEyk','514RRLEhO','650iKHyMY','21ijaoxl','530248WAmcAL','1982404ERFmyw','55818jcPDLB'];_0x2ef4=function(){return _0x54a0d6;};return _0x2ef4();}export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';function _0x1567(_0x513127,_0x59e366){var _0x2ef4af=_0x2ef4();return _0x1567=function(_0x15675c,_0x4cd81e){_0x15675c=_0x15675c-0x170;var _0x4063d4=_0x2ef4af[_0x15675c];return _0x4063d4;},_0x1567(_0x513127,_0x59e366);}export*from'./NodeIKernelTipOffService'; \ No newline at end of file +(function(_0x496ba5,_0x27058d){var _0xf071e3=_0x465f,_0x5c9276=_0x496ba5();while(!![]){try{var _0x2524b5=parseInt(_0xf071e3(0xaf))/0x1+parseInt(_0xf071e3(0xb6))/0x2+parseInt(_0xf071e3(0xb4))/0x3*(parseInt(_0xf071e3(0xb2))/0x4)+parseInt(_0xf071e3(0xb1))/0x5*(-parseInt(_0xf071e3(0xb3))/0x6)+-parseInt(_0xf071e3(0xae))/0x7+parseInt(_0xf071e3(0xb5))/0x8+-parseInt(_0xf071e3(0xb0))/0x9;if(_0x2524b5===_0x27058d)break;else _0x5c9276['push'](_0x5c9276['shift']());}catch(_0x5e5463){_0x5c9276['push'](_0x5c9276['shift']());}}}(_0x45e3,0xd32d3));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 _0x45e3(){var _0x37ffe2=['6GtUDrr','2035587lvaMpG','6130320OmAcGT','3129998pQxWmK','5277797PSuJHH','286007Cgbvph','7252155tYuQFQ','7748045acEeza','8NBaDnu'];_0x45e3=function(){return _0x37ffe2;};return _0x45e3();}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';function _0x465f(_0x2894ba,_0x3665b8){var _0x45e3cf=_0x45e3();return _0x465f=function(_0x465ff1,_0x422b8f){_0x465ff1=_0x465ff1-0xae;var _0x2911d8=_0x45e3cf[_0x465ff1];return _0x2911d8;},_0x465f(_0x2894ba,_0x3665b8);}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 a3c347db..185a90a4 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x231df2,_0x2e30ec){const _0x49ca7d=_0x5f2f,_0xb1f01b=_0x231df2();while(!![]){try{const _0xd9fe0f=-parseInt(_0x49ca7d(0x79))/0x1+-parseInt(_0x49ca7d(0x73))/0x2*(-parseInt(_0x49ca7d(0x74))/0x3)+parseInt(_0x49ca7d(0x6f))/0x4*(-parseInt(_0x49ca7d(0x7f))/0x5)+parseInt(_0x49ca7d(0x6c))/0x6*(-parseInt(_0x49ca7d(0x7b))/0x7)+parseInt(_0x49ca7d(0x7d))/0x8+-parseInt(_0x49ca7d(0x6d))/0x9*(parseInt(_0x49ca7d(0x78))/0xa)+parseInt(_0x49ca7d(0x6e))/0xb;if(_0xd9fe0f===_0x2e30ec)break;else _0xb1f01b['push'](_0xb1f01b['shift']());}catch(_0x32cf6f){_0xb1f01b['push'](_0xb1f01b['shift']());}}}(_0x680a,0xaedec));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';function _0x5f2f(_0x88826f,_0xd901d5){const _0x680aef=_0x680a();return _0x5f2f=function(_0x5f2f8f,_0x5885b9){_0x5f2f8f=_0x5f2f8f-0x6b;let _0x494e23=_0x680aef[_0x5f2f8f];return _0x494e23;},_0x5f2f(_0x88826f,_0xd901d5);}import _0x28be37 from'node:path';import _0x14f843 from'node:fs';import{randomUUID}from'crypto';function _0x680a(){const _0x36a9fe=['OqwtY','NapCat','YHwjL','362EOXiyD','10083WcdCJC','guid.txt','join','readFileSync','380dVLqwn','1310930wSndsk','jutoN','7iUnOHj','YWrFG','5021896HdYzTb','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','322725xxEsDj','utf-8','mkdirSync','assign','DDxyv','582786Pdhyfy','20160EvCKXe','24196986Wzlgkx','76AaySSI'];_0x680a=function(){return _0x36a9fe;};return _0x680a();}export const sessionConfig={};export function genSessionConfig(_0xb99a1f,_0x176c35,_0x278b92){const _0x3bf9f1=_0x5f2f,_0x24a14f={'OqwtY':_0x3bf9f1(0x71),'YWrFG':'temp','YHwjL':_0x3bf9f1(0x75),'DDxyv':function(_0x40b407){return _0x40b407();},'jutoN':_0x3bf9f1(0x80)},_0x526d0a=_0x28be37[_0x3bf9f1(0x76)](_0x278b92,_0x24a14f[_0x3bf9f1(0x70)],_0x24a14f[_0x3bf9f1(0x7c)]);_0x14f843[_0x3bf9f1(0x81)](_0x526d0a,{'recursive':!![]});const _0x44880d=_0x28be37[_0x3bf9f1(0x76)](_0x278b92,_0x24a14f[_0x3bf9f1(0x70)],_0x24a14f[_0x3bf9f1(0x72)]);let _0x1833f9=_0x24a14f[_0x3bf9f1(0x6b)](randomUUID);try{_0x1833f9=_0x14f843[_0x3bf9f1(0x77)](_0x28be37[_0x3bf9f1(0x76)](_0x44880d),_0x3bf9f1(0x80));}catch(_0x53bcfd){_0x14f843['writeFileSync'](_0x28be37['join'](_0x44880d),_0x1833f9,_0x24a14f[_0x3bf9f1(0x7a)]);}const _0x144c0a={'selfUin':_0xb99a1f,'selfUid':_0x176c35,'desktopPathConfig':{'account_path':_0x278b92},'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':_0x526d0a,'deviceInfo':{'guid':_0x1833f9,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x3bf9f1(0x7e)};return Object[_0x3bf9f1(0x82)](sessionConfig,_0x144c0a),_0x144c0a;} \ No newline at end of file +(function(_0x752ee1,_0x2baad2){const _0x37d0f6=_0x4e73,_0x3b31d7=_0x752ee1();while(!![]){try{const _0x47d3ff=-parseInt(_0x37d0f6(0x1e0))/0x1+parseInt(_0x37d0f6(0x1e2))/0x2*(parseInt(_0x37d0f6(0x1d8))/0x3)+-parseInt(_0x37d0f6(0x1dd))/0x4+-parseInt(_0x37d0f6(0x1d7))/0x5+parseInt(_0x37d0f6(0x1e5))/0x6*(parseInt(_0x37d0f6(0x1e4))/0x7)+parseInt(_0x37d0f6(0x1df))/0x8*(parseInt(_0x37d0f6(0x1e9))/0x9)+-parseInt(_0x37d0f6(0x1e6))/0xa*(-parseInt(_0x37d0f6(0x1e8))/0xb);if(_0x47d3ff===_0x2baad2)break;else _0x3b31d7['push'](_0x3b31d7['shift']());}catch(_0x25ef1d){_0x3b31d7['push'](_0x3b31d7['shift']());}}}(_0x289c,0x9adf3));function _0x4e73(_0x26ba89,_0x37b168){const _0x289c1d=_0x289c();return _0x4e73=function(_0x4e7383,_0x52a69d){_0x4e7383=_0x4e7383-0x1d3;let _0x4a7e81=_0x289c1d[_0x4e7383];return _0x4a7e81;},_0x4e73(_0x26ba89,_0x37b168);}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';function _0x289c(){const _0xc138e9=['280LdrBvm','487918CuBzEP','NVTQG','212GMHjkP','writeFileSync','4165IoOxIw','3606kYvVgC','78410uTXykB','readFileSync','2453WRzfXI','65601CuKIux','assign','curVersion','NapCat','guid.txt','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','join','ClZGg','5532435YABvkY','3723RtReRp','utf-8','temp','tOAXA','AyEtu','1056156xWezVN','mkdirSync'];_0x289c=function(){return _0xc138e9;};return _0x289c();}import _0x295732 from'node:path';import _0x16a43b from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x3157da,_0xb855fc,_0x1fb6bd){const _0x3f06a3=_0x4e73,_0x42cc41={'tOAXA':_0x3f06a3(0x1ec),'ClZGg':_0x3f06a3(0x1da),'AyEtu':_0x3f06a3(0x1d3),'NVTQG':function(_0x38f69d){return _0x38f69d();},'baNoS':_0x3f06a3(0x1d9),'hjaVW':_0x3f06a3(0x1d4)},_0x8ff240=_0x295732[_0x3f06a3(0x1d5)](_0x1fb6bd,_0x42cc41['tOAXA'],_0x42cc41[_0x3f06a3(0x1d6)]);_0x16a43b[_0x3f06a3(0x1de)](_0x8ff240,{'recursive':!![]});const _0x42425d=_0x295732[_0x3f06a3(0x1d5)](_0x1fb6bd,_0x42cc41[_0x3f06a3(0x1db)],_0x42cc41[_0x3f06a3(0x1dc)]);let _0x4a3a57=_0x42cc41[_0x3f06a3(0x1e1)](randomUUID);try{_0x4a3a57=_0x16a43b[_0x3f06a3(0x1e7)](_0x295732['join'](_0x42425d),_0x42cc41['baNoS']);}catch(_0x1ef4d5){_0x16a43b[_0x3f06a3(0x1e3)](_0x295732[_0x3f06a3(0x1d5)](_0x42425d),_0x4a3a57,_0x42cc41['baNoS']);}const _0x447602={'selfUin':_0x3157da,'selfUid':_0xb855fc,'desktopPathConfig':{'account_path':_0x1fb6bd},'clientVer':qqVersionConfigInfo[_0x3f06a3(0x1eb)],'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':_0x8ff240,'deviceInfo':{'guid':_0x4a3a57,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x42cc41['hjaVW']};return Object[_0x3f06a3(0x1ea)](sessionConfig,_0x447602),_0x447602;} \ 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 2070a20d..065d46b8 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0xbbe0fb=_0x3c74;(function(_0x52f7ee,_0x99ae0a){const _0x556c45=_0x3c74,_0x20a947=_0x52f7ee();while(!![]){try{const _0x2ab472=parseInt(_0x556c45(0x187))/0x1*(parseInt(_0x556c45(0x197))/0x2)+parseInt(_0x556c45(0x18d))/0x3+-parseInt(_0x556c45(0x19a))/0x4*(parseInt(_0x556c45(0x18e))/0x5)+parseInt(_0x556c45(0x18b))/0x6*(parseInt(_0x556c45(0x195))/0x7)+-parseInt(_0x556c45(0x191))/0x8+-parseInt(_0x556c45(0x199))/0x9+-parseInt(_0x556c45(0x192))/0xa*(-parseInt(_0x556c45(0x18c))/0xb);if(_0x2ab472===_0x99ae0a)break;else _0x20a947['push'](_0x20a947['shift']());}catch(_0x2b5aa1){_0x20a947['push'](_0x20a947['shift']());}}}(_0x2910,0xc58d9));function _0x2910(){const _0x2b3fd2=['consoleLog','6764085iXaYMj','1212zPekvE','getConfigDir','213209uDuieM','consoleLogLevel','DEBUG','.json','7698zUqgsH','3103628lBMjer','4505166dsMxWE','23355YvyYli','INFO','uin','8916168qXRrIV','10ZVUypW','fileLogLevel','napcat_','6769HAMJJH','join','10fjEjWb'];_0x2910=function(){return _0x2b3fd2;};return _0x2910();}import _0x28d34c from'node:path';function _0x3c74(_0x594c76,_0x48c7de){const _0x291003=_0x2910();return _0x3c74=function(_0x3c7415,_0x5b810a){_0x3c7415=_0x3c7415-0x187;let _0xd190de=_0x291003[_0x3c7415];return _0xd190de;},_0x3c74(_0x594c76,_0x48c7de);}import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0xbbe0fb(0x198)]=!![];[_0xbbe0fb(0x193)]=LogLevel[_0xbbe0fb(0x189)];[_0xbbe0fb(0x188)]=LogLevel[_0xbbe0fb(0x18f)];constructor(){super();}['getConfigPath'](){const _0x223467=_0xbbe0fb;return _0x28d34c[_0x223467(0x196)](this[_0x223467(0x19b)](),_0x223467(0x194)+selfInfo[_0x223467(0x190)]+_0x223467(0x18a));}}export const napCatConfig=new Config(); \ No newline at end of file +function _0xad41(){const _0x295937=['162009zmNsHS','6XRRwHo','28hcJlYi','getConfigPath','napcat_','consoleLog','504wbjrAv','4575705gjjCRw','56514xNbLSx','13979DIHnno','DEBUG','INFO','fileLogLevel','join','3321516OjXXMq','10oaGwgU','1898217OAbAxv','.json','150850NyjSFL'];_0xad41=function(){return _0x295937;};return _0xad41();}const _0x190c82=_0x3cd8;(function(_0x411e99,_0x412d40){const _0x4ba467=_0x3cd8,_0x4ea816=_0x411e99();while(!![]){try{const _0x2d779e=parseInt(_0x4ba467(0xd6))/0x1+-parseInt(_0x4ba467(0xcd))/0x2+parseInt(_0x4ba467(0xce))/0x3*(-parseInt(_0x4ba467(0xd0))/0x4)+-parseInt(_0x4ba467(0xd5))/0x5*(-parseInt(_0x4ba467(0xcf))/0x6)+-parseInt(_0x4ba467(0xd7))/0x7*(parseInt(_0x4ba467(0xd4))/0x8)+parseInt(_0x4ba467(0xde))/0x9*(-parseInt(_0x4ba467(0xdd))/0xa)+parseInt(_0x4ba467(0xdc))/0xb;if(_0x2d779e===_0x412d40)break;else _0x4ea816['push'](_0x4ea816['shift']());}catch(_0x3c6ee7){_0x4ea816['push'](_0x4ea816['shift']());}}}(_0xad41,0x76071));import _0xa7e955 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0x3cd8(_0x3021b4,_0x231a38){const _0xad412b=_0xad41();return _0x3cd8=function(_0x3cd841,_0x2d5192){_0x3cd841=_0x3cd841-0xcc;let _0x2fd9e9=_0xad412b[_0x3cd841];return _0x2fd9e9;},_0x3cd8(_0x3021b4,_0x231a38);}import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0x190c82(0xd3)]=!![];[_0x190c82(0xda)]=LogLevel[_0x190c82(0xd8)];['consoleLogLevel']=LogLevel[_0x190c82(0xd9)];constructor(){super();}[_0x190c82(0xd1)](){const _0x1b0d10=_0x190c82;return _0xa7e955[_0x1b0d10(0xdb)](this['getConfigDir'](),_0x1b0d10(0xd2)+selfInfo['uin']+_0x1b0d10(0xcc));}}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 9278698e..e232fc3f 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0x4dff26=_0x1e4d;function _0x1e4d(_0x290d83,_0x1b0505){const _0x368c61=_0x368c();return _0x1e4d=function(_0x1e4dff,_0x1e29be){_0x1e4dff=_0x1e4dff-0x19c;let _0x43a268=_0x368c61[_0x1e4dff];return _0x43a268;},_0x1e4d(_0x290d83,_0x1b0505);}function _0x368c(){const _0x38f04e=['getFileCacheByUuid','Could\x20not\x20connect\x20to\x20database','AUCOt','catch','CjLCv','ADhme','3RtGcAq','elementType','uuid','BxTNi','Database','db\x20could\x20not\x20get\x20file\x20cache','SUNPy','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','35slixLd','797762hepVCx','OVnUO','tvHSE','WNaQL','getMsgsByMsgId','ydCvJ','LfBiT','cbEms','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','8OmURqn','wjzvm','forEach','LvQtf','22152lVWsOK','33686KGOyLY','NvSJo','getFileCacheByName','vqkvc','adjIn','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','nYdjq','getUidByTempUin','stMnQ','2493SFmhFm','init','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','get','msgSeq','bvNZB','shortId','EiQpP','kVAOG','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','db\x20could\x20not\x20update\x20file\x20cache','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','prepare','KMoeU','Could\x20not\x20create\x20table\x20files','msgTime','HvxHO','HVfGS','hgCRq','BbaBV','db\x20getMsgByLongId\x20error','jHjye','dEjAa','dMADG','path','\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)','msgList','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','\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)','pNfzo','kYXXT','hRkMv','maxId','msgId','wsIkP','1790658gMphNM','清理消息缓存','getMsgByLongId','createTable','set','YPOIL','getReceivedTempUinMap','globalMsgShortId','SELECT\x20*\x20FROM\x20temp_uins','errno','NEqRW','WzcoD',',\x20短id:\x20','element','getCurrentMaxShortId','KkuUo','longId','tgleO','yqPNN','name','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','size','QiaOA','KQIQP','xeBvy',',\x20seq:\x20','parse','getMsgByShortId','db\x20could\x20not\x20get\x20temp\x20uin\x20map','mWLOA','run','1165969tVdBkK','Could\x20not\x20get\x20msg','all','YgjOA','updateMsg','getFileCache','OPEN_CREATE','assign','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','peerUid','db\x20could\x20not\x20add\x20file','数据库中消息最大短id','then','eQNgw','elementId','chatType','getMsgBySeq','yprSz','PTyIk','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','getMsg','stringify','now','104660jeUHjA','tfYWh','nFZmW','627iuoHCx','stack','url','OKeON','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','has','msgCache','deEIT','close','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','ZAHLd','TqOBU','10180dnUVSA'];_0x368c=function(){return _0x38f04e;};return _0x368c();}(function(_0x1856c9,_0x27b570){const _0x787914=_0x1e4d,_0x1370e5=_0x1856c9();while(!![]){try{const _0xd857a6=-parseInt(_0x787914(0x1a7))/0x1+-parseInt(_0x787914(0x228))/0x2*(-parseInt(_0x787914(0x21f))/0x3)+-parseInt(_0x787914(0x209))/0x4*(parseInt(_0x787914(0x227))/0x5)+parseInt(_0x787914(0x1d3))/0x6+parseInt(_0x787914(0x1f2))/0x7*(parseInt(_0x787914(0x1a2))/0x8)+-parseInt(_0x787914(0x1b0))/0x9*(parseInt(_0x787914(0x218))/0xa)+-parseInt(_0x787914(0x20c))/0xb*(parseInt(_0x787914(0x1a6))/0xc);if(_0xd857a6===_0x27b570)break;else _0x1370e5['push'](_0x1370e5['shift']());}catch(_0x45336e){_0x1370e5['push'](_0x1370e5['shift']());}}}(_0x368c,0x3f702));import _0x23abcb from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x4dff26(0x1b1)](_0x214a66){const _0x5150d8={'LvQtf':function(_0x36aaf3,_0x3d127e){return _0x36aaf3(_0x3d127e);},'PTyIk':function(_0x12fcd7){return _0x12fcd7();},'yprSz':function(_0x363caf,_0x506d84){return _0x363caf|_0x506d84;}};if(this['db'])return;return new Promise((_0x5d6ba4,_0x1d35a8)=>{const _0x24cf89=_0x1e4d,_0x57a73a={'NEqRW':_0x24cf89(0x21a),'nYdjq':function(_0x487ec0,_0x4692f8){const _0x3d8d44=_0x24cf89;return _0x5150d8[_0x3d8d44(0x1a5)](_0x487ec0,_0x4692f8);},'keyKx':function(_0xda210f){const _0x492390=_0x24cf89;return _0x5150d8[_0x492390(0x204)](_0xda210f);}};this['db']=new _0x23abcb[(_0x24cf89(0x223))](_0x214a66,_0x5150d8[_0x24cf89(0x203)](_0x23abcb['OPEN_READWRITE'],_0x23abcb[_0x24cf89(0x1f8)]),_0x545e33=>{const _0x3e1be3=_0x24cf89;if(_0x545e33){logError(_0x57a73a[_0x3e1be3(0x1dd)],_0x545e33),_0x57a73a[_0x3e1be3(0x1ad)](_0x1d35a8,_0x545e33);return;}this[_0x3e1be3(0x1d6)](),_0x57a73a['keyKx'](_0x5d6ba4);});});}['createTable'](){const _0x2ad742=_0x4dff26,_0x4d99be={'wjzvm':'Method\x20not\x20implemented.'};throw new Error(_0x4d99be[_0x2ad742(0x1a3)]);}[_0x4dff26(0x214)](){const _0x4dbc61=_0x4dff26;this['db']?.[_0x4dbc61(0x214)]();}}class DBUtil extends DBUtilBase{[_0x4dff26(0x212)]=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0xd0e084=_0x4dff26,_0x4d8a18={'OVnUO':function(_0x448e4a,_0x35aa54){return _0x448e4a>_0x35aa54;},'ucmXy':function(_0x1629cc,_0x1ec1c1){return _0x1629cc-_0x1ec1c1;},'oJsEw':function(_0x12af1e,_0x15c27e){return _0x12af1e*_0x15c27e;},'hRkMv':function(_0x3ddc4e,_0xc25268){return _0x3ddc4e*_0xc25268;}};super();const _0x395cfb=_0x4d8a18[_0xd0e084(0x1cf)](0x3e8,0x3c)*0xa;setInterval(()=>{const _0x56c640=_0xd0e084,_0x3fd193={'VhIdM':function(_0x4e71a2,_0x5ac688){const _0x19a298=_0x1e4d;return _0x4d8a18[_0x19a298(0x229)](_0x4e71a2,_0x5ac688);},'adjIn':function(_0x35c25c,_0x31f244){return _0x4d8a18['ucmXy'](_0x35c25c,_0x31f244);},'ydCvJ':function(_0x4b8f30,_0x4bce40){return _0x4d8a18['oJsEw'](_0x4b8f30,_0x4bce40);}};logDebug(_0x56c640(0x1d4)),this[_0x56c640(0x212)][_0x56c640(0x1a4)]((_0x111ceb,_0x25fc68)=>{const _0x4dd70f=_0x56c640;_0x3fd193['VhIdM'](_0x3fd193[_0x4dd70f(0x1ab)](Date[_0x4dd70f(0x208)](),_0x3fd193[_0x4dd70f(0x19e)](parseInt(_0x111ceb[_0x4dd70f(0x1bf)]),0x3e8)),_0x395cfb)&&this[_0x4dd70f(0x212)]['delete'](_0x25fc68);});},_0x395cfb);}async[_0x4dff26(0x1b1)](_0x55fed0){const _0x30a240=_0x4dff26;await super[_0x30a240(0x1b1)](_0x55fed0),this[_0x30a240(0x1da)]=await this[_0x30a240(0x1e1)]();}['createTable'](){const _0x22ce96=_0x4dff26,_0x1969b4={'tfYWh':function(_0x1ee538,_0x1703f3,_0x40ae09){return _0x1ee538(_0x1703f3,_0x40ae09);},'ZAHLd':'Could\x20not\x20create\x20table\x20msgs','wsIkP':function(_0x10fd90,_0x599c25,_0x568af5){return _0x10fd90(_0x599c25,_0x568af5);},'fzioK':_0x22ce96(0x1be)},_0x2710a1=_0x22ce96(0x1c9);this['db'][_0x22ce96(0x1f1)](_0x2710a1,function(_0x29b21c){const _0x421910=_0x22ce96;_0x29b21c&&_0x1969b4[_0x421910(0x20a)](logError,_0x1969b4[_0x421910(0x216)],_0x29b21c[_0x421910(0x20d)]);});const _0x522080=_0x22ce96(0x1cc);this['db']['run'](_0x522080,function(_0x1b1e5b){const _0x471f03=_0x22ce96;_0x1b1e5b&&_0x1969b4[_0x471f03(0x1d2)](logError,_0x1969b4['fzioK'],_0x1b1e5b);});const _0xed66d7='\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)';this['db']['run'](_0xed66d7,function(_0x41d646){const _0x1fbfab=_0x22ce96;_0x41d646&&_0x1969b4[_0x1fbfab(0x20a)](logError,'Could\x20not\x20create\x20table\x20temp_uins',_0x41d646);});}async['getCurrentMaxShortId'](){const _0x1a7feb=_0x4dff26,_0x66c40e={'tvHSE':function(_0x290680,_0x96902d,_0x15f4d8){return _0x290680(_0x96902d,_0x15f4d8);},'CjLCv':_0x1a7feb(0x210),'yqPNN':function(_0x47228e,_0x19b7f1){return _0x47228e(_0x19b7f1);}};return new Promise((_0x2324b4,_0x358bae)=>{const _0x304df8=_0x1a7feb,_0x37aa7b={'cXvMB':function(_0x5e5583,_0x2d48ea,_0x5bc6fc){const _0x1ee3fc=_0x1e4d;return _0x66c40e[_0x1ee3fc(0x22a)](_0x5e5583,_0x2d48ea,_0x5bc6fc);},'BxTNi':_0x66c40e[_0x304df8(0x21d)],'kVAOG':function(_0x1cf89b,_0x54d053){const _0x534216=_0x304df8;return _0x66c40e[_0x534216(0x1e5)](_0x1cf89b,_0x54d053);},'vqkvc':function(_0x26290a,_0x5ebc0f){const _0x4f8472=_0x304df8;return _0x66c40e[_0x4f8472(0x1e5)](_0x26290a,_0x5ebc0f);}};this['db'][_0x304df8(0x1b3)](_0x304df8(0x1cb),(_0x5127e7,_0x20d8bc)=>{const _0x574534=_0x304df8;if(_0x5127e7)return _0x37aa7b['cXvMB'](logDebug,_0x37aa7b[_0x574534(0x222)],_0x5127e7),_0x37aa7b[_0x574534(0x1b8)](_0x2324b4,-0x7ffffff8);logDebug(_0x574534(0x1fd),_0x20d8bc?.[_0x574534(0x1d0)]),_0x37aa7b[_0x574534(0x1aa)](_0x2324b4,_0x20d8bc?.[_0x574534(0x1d0)]??-0x7ffffff8);});});}async[_0x4dff26(0x206)](_0xff55c9,_0x1fc16e){const _0x5c7c87={'EiQpP':function(_0x15ea4f,_0x2a3900){return _0x15ea4f(_0x2a3900);},'jHjye':function(_0x5c5098,_0xe2fd08){return _0x5c5098(_0xe2fd08);},'lxfzp':function(_0x174413,_0x4155b4,_0x5b0867,_0x5b5952,_0x581e64){return _0x174413(_0x4155b4,_0x5b0867,_0x5b5952,_0x581e64);},'WNaQL':function(_0x2cc921,_0x27000d){return _0x2cc921(_0x27000d);}},_0x4cbc8c=this['db']['prepare'](_0xff55c9);return new Promise((_0x318d74,_0x3cb8df)=>{const _0x234bf8=_0x1e4d;_0x4cbc8c[_0x234bf8(0x1b3)](..._0x1fc16e,(_0x10f4c5,_0x331ad)=>{const _0x575dc5=_0x234bf8,_0x23a84d={'brNkT':function(_0x3569fd,_0x99532b){const _0x2b3e00=_0x1e4d;return _0x5c7c87[_0x2b3e00(0x1b7)](_0x3569fd,_0x99532b);},'ADhme':function(_0x330e75,_0x1733f5){return _0x330e75(_0x1733f5);},'stMnQ':function(_0x1b643b,_0x5aeead){const _0x2df420=_0x1e4d;return _0x5c7c87[_0x2df420(0x1c5)](_0x1b643b,_0x5aeead);}};if(_0x10f4c5)return _0x5c7c87['lxfzp'](logError,_0x575dc5(0x1f3),_0x10f4c5,_0xff55c9,_0x1fc16e),_0x318d74(null);if(!_0x331ad){_0x5c7c87[_0x575dc5(0x19c)](_0x318d74,null);return;}const _0x1f2756=_0x331ad[_0x575dc5(0x1e3)];NTQQMsgApi[_0x575dc5(0x19d)]({'peerUid':_0x331ad[_0x575dc5(0x1fb)],'chatType':_0x331ad[_0x575dc5(0x201)]},[_0x1f2756])[_0x575dc5(0x1fe)](_0x125551=>{const _0x1c929d=_0x575dc5,_0x5c149b=_0x125551[_0x1c929d(0x1ca)][0x0];if(!_0x5c149b){_0x23a84d['brNkT'](_0x318d74,null);return;}_0x5c149b['id']=_0x331ad[_0x1c929d(0x1b6)],_0x23a84d[_0x1c929d(0x21e)](_0x318d74,_0x5c149b);})[_0x575dc5(0x21c)](_0x4c6553=>{const _0x378b9a=_0x575dc5;_0x23a84d[_0x378b9a(0x1af)](_0x318d74,null);});});});}async[_0x4dff26(0x1ee)](_0xe7c8f){const _0x5ae023=_0x4dff26,_0x50b5a2={'WzcoD':_0x5ae023(0x205)};if(this[_0x5ae023(0x212)][_0x5ae023(0x211)](_0xe7c8f))return this[_0x5ae023(0x212)]['get'](_0xe7c8f);const _0x210156=_0x50b5a2[_0x5ae023(0x1de)];return this[_0x5ae023(0x206)](_0x210156,[_0xe7c8f]);}async[_0x4dff26(0x1d5)](_0x450921){const _0x28aef8=_0x4dff26;if(this[_0x28aef8(0x212)][_0x28aef8(0x211)](_0x450921))return this[_0x28aef8(0x212)]['get'](_0x450921);return this[_0x28aef8(0x206)]('SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?',[_0x450921]);}async[_0x4dff26(0x202)](_0x52223b,_0xdd10d9){const _0xbb5aba=_0x4dff26,_0x54728c='SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?';return this[_0xbb5aba(0x206)](_0x54728c,[_0x52223b,_0xdd10d9]);}async['addMsg'](_0x364771,_0x538846=!![]){const _0x158b25=_0x4dff26,_0x2bfa98={'bvNZB':function(_0x4e3ed5,_0x257e92,_0xd9709a){return _0x4e3ed5(_0x257e92,_0xd9709a);},'AuCRp':_0x158b25(0x1a1),'NvSJo':function(_0x5a2deb,_0x22dd8b){return _0x5a2deb===_0x22dd8b;},'lnUts':'db\x20could\x20not\x20add\x20msg','pNfzo':_0x158b25(0x215),'KkuUo':function(_0x424f58,_0x40c923){return _0x424f58(_0x40c923);}},_0x4dca85=await this[_0x158b25(0x1d5)](_0x364771[_0x158b25(0x1d1)]);if(_0x4dca85){if(_0x538846)this[_0x158b25(0x1f6)](_0x364771)['then']();return _0x4dca85['id'];}const _0x2cadc5=this['db'][_0x158b25(0x1bc)](_0x2bfa98[_0x158b25(0x1cd)]),_0x4763e8=++this[_0x158b25(0x1da)];return _0x364771['id']=_0x4763e8,_0x2bfa98[_0x158b25(0x1e2)](logDebug,'记录消息到数据库,\x20消息长id:\x20'+_0x364771['msgId']+_0x158b25(0x1df)+_0x364771['id']),this[_0x158b25(0x212)]['set'](_0x4763e8,_0x364771),this[_0x158b25(0x212)][_0x158b25(0x1d7)](_0x364771[_0x158b25(0x1d1)],_0x364771),_0x2cadc5[_0x158b25(0x1f1)](this['globalMsgShortId'],_0x364771[_0x158b25(0x1d1)],_0x364771['msgSeq']['toString'](),_0x364771['peerUid'],_0x364771[_0x158b25(0x201)],_0x751e64=>{const _0xf1dae2=_0x158b25;_0x751e64&&(_0x2bfa98[_0xf1dae2(0x1a8)](_0x751e64[_0xf1dae2(0x1dc)],0x13)?this[_0xf1dae2(0x1d5)](_0x364771['msgId'])[_0xf1dae2(0x1fe)](_0x4c81e3=>{const _0x30c4e3=_0xf1dae2;_0x4c81e3?(this['msgCache'][_0x30c4e3(0x1d7)](_0x4763e8,_0x4c81e3),this[_0x30c4e3(0x212)][_0x30c4e3(0x1d7)](_0x4c81e3[_0x30c4e3(0x1d1)],_0x4c81e3)):_0x2bfa98[_0x30c4e3(0x1b5)](logError,_0x2bfa98['AuCRp'],_0x751e64);})[_0xf1dae2(0x21c)](_0x3723fa=>logError(_0xf1dae2(0x1c4),_0x3723fa)):_0x2bfa98[_0xf1dae2(0x1b5)](logError,_0x2bfa98['lnUts'],_0x751e64));}),_0x4763e8;}async[_0x4dff26(0x1f6)](_0x5b83e6){const _0x21dc85=_0x4dff26,_0x48b8b6={'iAWCM':function(_0x3fdc6f,_0x2fd49e,_0x1987e0){return _0x3fdc6f(_0x2fd49e,_0x1987e0);},'xeBvy':_0x21dc85(0x1b9)},_0x2b3b86=this['msgCache']['get'](_0x5b83e6[_0x21dc85(0x1d1)]);_0x2b3b86&&Object[_0x21dc85(0x1f9)](_0x2b3b86,_0x5b83e6);logDebug('更新消息,\x20shortId:'+_0x5b83e6['id']+_0x21dc85(0x1ec)+_0x5b83e6[_0x21dc85(0x1b4)]+',\x20msgId:\x20'+_0x5b83e6[_0x21dc85(0x1d1)]);const _0x5dbfaa=this['db'][_0x21dc85(0x1bc)](_0x48b8b6[_0x21dc85(0x1eb)]);_0x5dbfaa[_0x21dc85(0x1f1)](_0x5b83e6[_0x21dc85(0x1b4)],_0x5b83e6[_0x21dc85(0x1d1)],_0x51a73d=>{_0x51a73d&&_0x48b8b6['iAWCM'](logError,'updateMsg\x20db\x20error',_0x51a73d);});}async['addFileCache'](_0x49101d){const _0x31e245=_0x4dff26,_0x5e929c={'mWLOA':function(_0x2c54d7,_0x177305){return _0x2c54d7(_0x177305);}},_0x319ca1=this['db']['prepare'](_0x31e245(0x1bb));return new Promise((_0x3d5770,_0x444eaa)=>{const _0x596338=_0x31e245,_0x451c7c={'vTRkw':_0x596338(0x1fc),'cbEms':function(_0x321633,_0x27bd32){const _0xb6b1c=_0x596338;return _0x5e929c[_0xb6b1c(0x1f0)](_0x321633,_0x27bd32);}};_0x319ca1['run'](_0x49101d[_0x596338(0x1e6)],_0x49101d['path'],_0x49101d['url'],_0x49101d[_0x596338(0x1e8)],_0x49101d[_0x596338(0x221)],_0x49101d[_0x596338(0x220)],JSON[_0x596338(0x207)](_0x49101d[_0x596338(0x1e0)]),_0x49101d[_0x596338(0x200)],_0x49101d['msgId'],function(_0x4b8647){const _0x5b4f74=_0x596338;_0x4b8647&&(logError(_0x451c7c['vTRkw'],_0x4b8647),_0x444eaa(_0x4b8647)),_0x451c7c[_0x5b4f74(0x1a0)](_0x3d5770,null);});});}async[_0x4dff26(0x1f7)](_0x546055,_0x49c1f6){const _0x4fa33c=_0x4dff26,_0x194631={'BbaBV':_0x4fa33c(0x224)},_0x3c35c0=this['db']['prepare'](_0x546055);return new Promise((_0x30d92f,_0x4463b8)=>{const _0x4a9dc8=_0x4fa33c,_0x50033a={'OKeON':_0x194631[_0x4a9dc8(0x1c3)],'YYHHD':function(_0x34f4da,_0x1abb39){return _0x34f4da(_0x1abb39);}};_0x3c35c0[_0x4a9dc8(0x1b3)](..._0x49c1f6,(_0x3f3ea5,_0x6bebc5)=>{const _0x5d9947=_0x4a9dc8;_0x3f3ea5&&(logError(_0x50033a[_0x5d9947(0x20f)],_0x3f3ea5),_0x4463b8(_0x3f3ea5)),_0x6bebc5&&(_0x6bebc5[_0x5d9947(0x1e0)]=JSON[_0x5d9947(0x1ed)](_0x6bebc5[_0x5d9947(0x1e0)])),_0x50033a['YYHHD'](_0x30d92f,_0x6bebc5);});});}async[_0x4dff26(0x1a9)](_0x1336b9){const _0x4b3f75=_0x4dff26;return this[_0x4b3f75(0x1f7)](_0x4b3f75(0x1ac),[_0x1336b9]);}async[_0x4dff26(0x219)](_0x46e9c8){const _0x158c77=_0x4dff26,_0x34e5de={'vykZg':_0x158c77(0x1fa)};return this['getFileCache'](_0x34e5de['vykZg'],[_0x46e9c8]);}async['updateFileCache'](_0x16789b){const _0x1fdb37=_0x4dff26,_0x1405bc={'dMADG':function(_0x5ca78d,_0x5b353b,_0x28044d){return _0x5ca78d(_0x5b353b,_0x28044d);},'HVfGS':_0x1fdb37(0x1ba),'YgjOA':function(_0x2aa457,_0x4e0a66){return _0x2aa457(_0x4e0a66);},'nFZmW':_0x1fdb37(0x226)},_0x5da5f8=this['db']['prepare'](_0x1405bc[_0x1fdb37(0x20b)]);return new Promise((_0xea572f,_0x214f8d)=>{const _0x94df37=_0x1fdb37,_0x517e15={'tgleO':function(_0x5ef1d9,_0x2d0c71,_0x48b805){const _0x2c3042=_0x1e4d;return _0x1405bc[_0x2c3042(0x1c7)](_0x5ef1d9,_0x2d0c71,_0x48b805);},'HvxHO':_0x1405bc[_0x94df37(0x1c1)],'SUNPy':function(_0x5c0b42,_0x15cd7e){const _0x276463=_0x94df37;return _0x1405bc[_0x276463(0x1f5)](_0x5c0b42,_0x15cd7e);}};_0x5da5f8[_0x94df37(0x1f1)](_0x16789b[_0x94df37(0x1c8)],_0x16789b[_0x94df37(0x20e)],_0x16789b['uuid'],function(_0x19f366){const _0x5a48de=_0x94df37;_0x19f366&&(_0x517e15[_0x5a48de(0x1e4)](logError,_0x517e15[_0x5a48de(0x1c0)],_0x19f366),_0x214f8d(_0x19f366)),_0x517e15[_0x5a48de(0x225)](_0xea572f,null);});});}async[_0x4dff26(0x1d9)](){const _0xbc12ed=_0x4dff26,_0x4993a6={'mpZWH':function(_0x3abd69,_0x51e027){return _0x3abd69(_0x51e027);},'eQNgw':_0xbc12ed(0x1db)},_0x5807eb=_0x4993a6[_0xbc12ed(0x1ff)];return new Promise((_0x837203,_0x315803)=>{const _0x4b6054=_0xbc12ed,_0x417c11={'kYXXT':_0x4b6054(0x1ef),'QiaOA':function(_0x244795,_0x444cda){return _0x4993a6['mpZWH'](_0x244795,_0x444cda);}};this['db'][_0x4b6054(0x1f4)](_0x5807eb,(_0x4e9110,_0x15eb91)=>{const _0x5d343e=_0x4b6054;_0x4e9110&&(logError(_0x417c11[_0x5d343e(0x1ce)],_0x4e9110),_0x417c11[_0x5d343e(0x1e9)](_0x315803,_0x4e9110));const _0x32d2f1={};_0x15eb91['forEach'](_0x5cdbea=>{_0x32d2f1[_0x5cdbea['uin']]=_0x5cdbea['uid'];}),_0x417c11[_0x5d343e(0x1e9)](_0x837203,_0x32d2f1);});});}async[_0x4dff26(0x1ae)](_0x504a95){const _0x2bd784=_0x4dff26,_0x1ea741={'KMoeU':function(_0x1553f6,_0x2f1694,_0x2d44f5){return _0x1553f6(_0x2f1694,_0x2d44f5);},'hgCRq':function(_0x1d0ab9,_0x5b4e5a){return _0x1d0ab9(_0x5b4e5a);},'zLAEi':_0x2bd784(0x1b2)},_0x3535aa=_0x1ea741['zLAEi'];return new Promise((_0x446d6e,_0x3990f6)=>{const _0x41fc51={'LfBiT':function(_0x3461c1,_0x2a551e,_0x306bea){const _0x5bf16e=_0x1e4d;return _0x1ea741[_0x5bf16e(0x1bd)](_0x3461c1,_0x2a551e,_0x306bea);},'TqOBU':function(_0x368af0,_0x1847de){const _0xbee734=_0x1e4d;return _0x1ea741[_0xbee734(0x1c2)](_0x368af0,_0x1847de);}};this['db']['get'](_0x3535aa,[_0x504a95],(_0x4a9f4b,_0x178faf)=>{const _0x41c1ca=_0x1e4d;_0x4a9f4b&&(_0x41fc51[_0x41c1ca(0x19f)](logError,'db\x20could\x20not\x20get\x20temp\x20uin\x20map',_0x4a9f4b),_0x41fc51['TqOBU'](_0x3990f6,_0x4a9f4b)),_0x41fc51[_0x41c1ca(0x217)](_0x446d6e,_0x178faf?.['uid']);});});}async['addTempUin'](_0x29ae61,_0x343988){const _0x50c960=_0x4dff26,_0x623cd4={'YPOIL':function(_0x5b8a55,_0x51fd33,_0x13d08e){return _0x5b8a55(_0x51fd33,_0x13d08e);},'dEjAa':'db\x20could\x20not\x20add\x20temp\x20uin','KQIQP':_0x50c960(0x1e7)},_0x254e05=await this[_0x50c960(0x1ae)](_0x29ae61);if(!_0x254e05){const _0x1c180e=this['db'][_0x50c960(0x1bc)](_0x623cd4[_0x50c960(0x1ea)]);return new Promise((_0x313a59,_0x20ee71)=>{const _0x5e9272=_0x50c960,_0x43ed5d={'deEIT':function(_0xf49af3,_0x1ec076,_0x4ffbb0){const _0x64a177=_0x1e4d;return _0x623cd4[_0x64a177(0x1d8)](_0xf49af3,_0x1ec076,_0x4ffbb0);},'AUCOt':_0x623cd4[_0x5e9272(0x1c6)]};_0x1c180e['run'](_0x29ae61,_0x343988,function(_0x303c71){const _0x2b899e=_0x5e9272;_0x303c71&&(_0x43ed5d[_0x2b899e(0x213)](logError,_0x43ed5d[_0x2b899e(0x21b)],_0x303c71),_0x20ee71(_0x303c71)),_0x313a59(null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file +const _0x3c108a=_0x1daf;(function(_0x34c19d,_0x25804c){const _0x1cd1e6=_0x1daf,_0x6529d6=_0x34c19d();while(!![]){try{const _0x4236ea=parseInt(_0x1cd1e6(0xd2))/0x1*(parseInt(_0x1cd1e6(0xbf))/0x2)+-parseInt(_0x1cd1e6(0x88))/0x3+parseInt(_0x1cd1e6(0xc1))/0x4+parseInt(_0x1cd1e6(0xd8))/0x5+parseInt(_0x1cd1e6(0xce))/0x6*(-parseInt(_0x1cd1e6(0x97))/0x7)+-parseInt(_0x1cd1e6(0xea))/0x8+parseInt(_0x1cd1e6(0x7f))/0x9*(parseInt(_0x1cd1e6(0xdd))/0xa);if(_0x4236ea===_0x25804c)break;else _0x6529d6['push'](_0x6529d6['shift']());}catch(_0x5dc576){_0x6529d6['push'](_0x6529d6['shift']());}}}(_0x46bf,0x77316));function _0x46bf(){const _0x3bdc4b=['AamSi','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','msgSeq','db\x20could\x20not\x20get\x20file\x20cache','addTempUin','peerUid','Could\x20not\x20connect\x20to\x20database','getMsg','\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)','GxlHM','getFileCacheByUuid','close','6GaZHng','set','elementType','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','77FLElrd','all','ahpJM','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','mycEw','errno','3324760lQpnGl','has','msgCache','WFCIs','UIAER','1838980eyffvZ','bHjar','gePbe','UPust','msgList','elementId','eoVEe','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','cuBAr','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','url','catch','HwCzz','5515240bwitkQ','getCurrentMaxShortId','SELECT\x20*\x20FROM\x20temp_uins','getMsgByShortId','EpKRp','YUHPU','\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)','Could\x20not\x20get\x20msg','lPFOH','uuid','stringify','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','uid','GgMEe','chvrp','EAaMg','Database','数据库中消息最大短id','Could\x20not\x20create\x20table\x20files','shortId','getMsgBySeq','Mghzl','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','bmzDs','QZZxl','size','globalMsgShortId','IwCJn','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','9OGDgch','uglwn','lEvZU','记录消息到数据库,\x20消息长id:\x20','forEach','npIjf','OPEN_READWRITE','lrlso','db\x20could\x20not\x20add\x20file','2288811ESwCca','msgId','xZfOt','parse','mkHxW','getFileCache','toString','getMsgByLongId','path','MQHyo','OPEN_CREATE','addFileCache','updateFileCache','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','UxnNf','3479252jnomtm','chatType','SwycN','getReceivedTempUinMap','then','pJOqz','element','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','maxId','Could\x20not\x20create\x20table\x20temp_uins','hvKHc','lNblI','tjNGZ','prepare','xwwLR','FoNne','longId','updateMsg','run','iRZJp','init','get','HMwiI','updateMsg\x20db\x20error','tqcsX','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','db\x20could\x20not\x20add\x20temp\x20uin','getMsgsByMsgId','Method\x20not\x20implemented.','DoGxe','BWMbS','uRIhD','IzdAi',',\x20短id:\x20','txtFr','now','createTable','Could\x20not\x20create\x20table\x20msgs','db\x20could\x20not\x20get\x20temp\x20uin\x20map','EKPKN','21818WeRPSl','wDBuG','2994996ylGQRR'];_0x46bf=function(){return _0x3bdc4b;};return _0x46bf();}import _0x2a3e02 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';function _0x1daf(_0x4a3023,_0x2138e0){const _0x46bf65=_0x46bf();return _0x1daf=function(_0x1dafbb,_0x59f2bf){_0x1dafbb=_0x1dafbb-0x7e;let _0x2922d9=_0x46bf65[_0x1dafbb];return _0x2922d9;},_0x1daf(_0x4a3023,_0x2138e0);}class DBUtilBase{['db'];async[_0x3c108a(0xab)](_0x5f43ae){const _0x33ac48=_0x3c108a,_0x31bf7f={'YOwNI':function(_0x21217c,_0x54b737,_0x54921d){return _0x21217c(_0x54b737,_0x54921d);},'eoVEe':_0x33ac48(0xc8),'DFrXW':function(_0x435db5,_0x2341f8){return _0x435db5(_0x2341f8);},'HwCzz':function(_0x19313c){return _0x19313c();},'UPust':function(_0x2c7fc0,_0x356417){return _0x2c7fc0|_0x356417;}};if(this['db'])return;return new Promise((_0x50851a,_0x25f403)=>{const _0x574dd1=_0x33ac48,_0x567b63={'lNblI':function(_0x58cfdc,_0xd32c33,_0x44674c){return _0x31bf7f['YOwNI'](_0x58cfdc,_0xd32c33,_0x44674c);},'UIAER':_0x31bf7f[_0x574dd1(0xe3)],'RRXGZ':function(_0x584008,_0x1e0491){return _0x31bf7f['DFrXW'](_0x584008,_0x1e0491);},'kRspE':function(_0xae7d2c){const _0x59a65b=_0x574dd1;return _0x31bf7f[_0x59a65b(0xe9)](_0xae7d2c);}};this['db']=new _0x2a3e02[(_0x574dd1(0xfa))](_0x5f43ae,_0x31bf7f[_0x574dd1(0xe0)](_0x2a3e02[_0x574dd1(0x85)],_0x2a3e02[_0x574dd1(0x92)]),_0x53653a=>{const _0x2aee5f=_0x574dd1;if(_0x53653a){_0x567b63[_0x2aee5f(0xa2)](logError,_0x567b63[_0x2aee5f(0xdc)],_0x53653a),_0x567b63['RRXGZ'](_0x25f403,_0x53653a);return;}this[_0x2aee5f(0xbb)](),_0x567b63['kRspE'](_0x50851a);});});}['createTable'](){const _0x21d5b9=_0x3c108a;throw new Error(_0x21d5b9(0xb3));}[_0x3c108a(0xcd)](){const _0x2fa751=_0x3c108a;this['db']?.[_0x2fa751(0xcd)]();}}class DBUtil extends DBUtilBase{['msgCache']=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x4fb388=_0x3c108a,_0xb816ca={'mycEw':function(_0x45bb4c,_0x2123cc){return _0x45bb4c>_0x2123cc;},'uglwn':function(_0x544705,_0x5c6372){return _0x544705(_0x5c6372);},'npIjf':function(_0x49f601,_0x4b46a3){return _0x49f601*_0x4b46a3;}};super();const _0x43f902=_0xb816ca[_0x4fb388(0x84)](_0xb816ca[_0x4fb388(0x84)](0x3e8,0x3c),0xa);setInterval(()=>{const _0x457e4a=_0x4fb388;_0xb816ca[_0x457e4a(0x80)](logDebug,'清理消息缓存'),this[_0x457e4a(0xda)][_0x457e4a(0x83)]((_0x4e6314,_0x3b5d22)=>{const _0x3d0367=_0x457e4a;_0xb816ca[_0x3d0367(0xd6)](Date[_0x3d0367(0xba)]()-parseInt(_0x4e6314['msgTime'])*0x3e8,_0x43f902)&&this[_0x3d0367(0xda)]['delete'](_0x3b5d22);});},_0x43f902);}async[_0x3c108a(0xab)](_0x32627c){const _0x49de2f=_0x3c108a;await super[_0x49de2f(0xab)](_0x32627c),this[_0x49de2f(0x105)]=await this[_0x49de2f(0xeb)]();}[_0x3c108a(0xbb)](){const _0x5e108c=_0x3c108a,_0x5b2384={'BWMbS':function(_0x2e5531,_0x49914a,_0x56cdf2){return _0x2e5531(_0x49914a,_0x56cdf2);},'hvKHc':_0x5e108c(0xfc),'bmzDs':_0x5e108c(0xa0)},_0x5893e0=_0x5e108c(0xca);this['db'][_0x5e108c(0xa9)](_0x5893e0,function(_0x119eac){const _0x172fb7=_0x5e108c;_0x119eac&&_0x5b2384[_0x172fb7(0xb5)](logError,_0x172fb7(0xbc),_0x119eac['stack']);});const _0x2d0eff='\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)';this['db'][_0x5e108c(0xa9)](_0x2d0eff,function(_0x4818a6){const _0x50b414=_0x5e108c;_0x4818a6&&_0x5b2384[_0x50b414(0xb5)](logError,_0x5b2384[_0x50b414(0xa1)],_0x4818a6);});const _0x22c104=_0x5e108c(0xf0);this['db'][_0x5e108c(0xa9)](_0x22c104,function(_0x40a8c3){const _0x3f2366=_0x5e108c;_0x40a8c3&&_0x5b2384[_0x3f2366(0xb5)](logError,_0x5b2384[_0x3f2366(0x102)],_0x40a8c3);});}async[_0x3c108a(0xeb)](){const _0x4887f0=_0x3c108a,_0x2da667={'lEvZU':function(_0x5d254e,_0x56305d,_0x54dd4f){return _0x5d254e(_0x56305d,_0x54dd4f);},'lPFOH':_0x4887f0(0x7e),'UxnNf':function(_0x12669b,_0x463fad){return _0x12669b(_0x463fad);},'lrlso':'SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs'};return new Promise((_0x4c690e,_0x251c52)=>{const _0x4fd42e=_0x4887f0;this['db'][_0x4fd42e(0xac)](_0x2da667[_0x4fd42e(0x86)],(_0xb55667,_0xe1bfaf)=>{const _0x2b5a5b=_0x4fd42e;if(_0xb55667)return _0x2da667[_0x2b5a5b(0x81)](logDebug,_0x2da667[_0x2b5a5b(0xf2)],_0xb55667),_0x2da667[_0x2b5a5b(0x96)](_0x4c690e,-0x7ffffff8);_0x2da667[_0x2b5a5b(0x81)](logDebug,_0x2b5a5b(0xfb),_0xe1bfaf?.[_0x2b5a5b(0x9f)]),_0x2da667[_0x2b5a5b(0x96)](_0x4c690e,_0xe1bfaf?.[_0x2b5a5b(0x9f)]??-0x7ffffff8);});});}async[_0x3c108a(0xc9)](_0x23d738,_0x3c3b4a){const _0x1ee3c0=_0x3c108a,_0x1ab048={'tjNGZ':function(_0x224598,_0x105609){return _0x224598(_0x105609);},'HMwiI':function(_0x4fba61,_0x405337,_0x182572,_0x97d407,_0x317579){return _0x4fba61(_0x405337,_0x182572,_0x97d407,_0x317579);},'TFyzs':_0x1ee3c0(0xf1),'WeEKA':function(_0x19293d,_0x3f3f34){return _0x19293d(_0x3f3f34);},'IwCJn':function(_0x19b01d,_0x39e964){return _0x19b01d(_0x39e964);}},_0x45189e=this['db'][_0x1ee3c0(0xa4)](_0x23d738);return new Promise((_0x1bcf6f,_0x5d823e)=>{_0x45189e['get'](..._0x3c3b4a,(_0x3a8737,_0x1cb138)=>{const _0x39c59a=_0x1daf,_0x28431f={'EKPKN':function(_0x554018,_0x248a68){const _0x761687=_0x1daf;return _0x1ab048[_0x761687(0xa3)](_0x554018,_0x248a68);}};if(_0x3a8737)return _0x1ab048[_0x39c59a(0xad)](logError,_0x1ab048['TFyzs'],_0x3a8737,_0x23d738,_0x3c3b4a),_0x1ab048['WeEKA'](_0x1bcf6f,null);if(!_0x1cb138){_0x1ab048[_0x39c59a(0x106)](_0x1bcf6f,null);return;}const _0x3558a4=_0x1cb138[_0x39c59a(0xa7)];NTQQMsgApi[_0x39c59a(0xb2)]({'peerUid':_0x1cb138[_0x39c59a(0xc7)],'chatType':_0x1cb138[_0x39c59a(0x98)]},[_0x3558a4])[_0x39c59a(0x9b)](_0x59e89d=>{const _0x119e70=_0x39c59a,_0x2c1f6c=_0x59e89d[_0x119e70(0xe1)][0x0];if(!_0x2c1f6c){_0x1bcf6f(null);return;}_0x2c1f6c['id']=_0x1cb138[_0x119e70(0xfd)],_0x28431f[_0x119e70(0xbe)](_0x1bcf6f,_0x2c1f6c);})[_0x39c59a(0xe8)](_0x5d2aad=>{_0x1bcf6f(null);});});});}async[_0x3c108a(0xed)](_0x2e2d8f){const _0x360f49=_0x3c108a,_0x364cb9={'chvrp':_0x360f49(0xd5)};if(this[_0x360f49(0xda)]['has'](_0x2e2d8f))return this['msgCache'][_0x360f49(0xac)](_0x2e2d8f);const _0x4b5b95=_0x364cb9[_0x360f49(0xf8)];return this['getMsg'](_0x4b5b95,[_0x2e2d8f]);}async[_0x3c108a(0x8f)](_0x784535){const _0x26c3ed=_0x3c108a,_0xbfc24={'EpKRp':_0x26c3ed(0xd1)};if(this[_0x26c3ed(0xda)][_0x26c3ed(0xd9)](_0x784535))return this[_0x26c3ed(0xda)][_0x26c3ed(0xac)](_0x784535);return this[_0x26c3ed(0xc9)](_0xbfc24[_0x26c3ed(0xee)],[_0x784535]);}async[_0x3c108a(0xfe)](_0x41b2a9,_0x18f84c){const _0xab5284=_0x3c108a,_0x4bd53f={'cuBAr':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?'},_0x289573=_0x4bd53f[_0xab5284(0xe5)];return this[_0xab5284(0xc9)](_0x289573,[_0x41b2a9,_0x18f84c]);}async['addMsg'](_0x1c5205,_0x5b72e5=!![]){const _0x3c6da9=_0x3c108a,_0x407675={'DoGxe':function(_0x1d1d06,_0xb39497,_0x3fdc6c){return _0x1d1d06(_0xb39497,_0x3fdc6c);},'txtFr':_0x3c6da9(0xf5),'FoNne':'db\x20could\x20not\x20add\x20msg','IzdAi':function(_0x4c35c0,_0x172ec0){return _0x4c35c0(_0x172ec0);}},_0xe1f411=await this['getMsgByLongId'](_0x1c5205[_0x3c6da9(0x89)]);if(_0xe1f411){if(_0x5b72e5)this[_0x3c6da9(0xa8)](_0x1c5205)['then']();return _0xe1f411['id'];}const _0x39f0f0=this['db'][_0x3c6da9(0xa4)](_0x3c6da9(0x95)),_0x30f959=++this['globalMsgShortId'];return _0x1c5205['id']=_0x30f959,_0x407675[_0x3c6da9(0xb7)](logDebug,_0x3c6da9(0x82)+_0x1c5205[_0x3c6da9(0x89)]+_0x3c6da9(0xb8)+_0x1c5205['id']),this[_0x3c6da9(0xda)]['set'](_0x30f959,_0x1c5205),this['msgCache'][_0x3c6da9(0xcf)](_0x1c5205[_0x3c6da9(0x89)],_0x1c5205),_0x39f0f0[_0x3c6da9(0xa9)](this[_0x3c6da9(0x105)],_0x1c5205[_0x3c6da9(0x89)],_0x1c5205[_0x3c6da9(0xc4)][_0x3c6da9(0x8e)](),_0x1c5205[_0x3c6da9(0xc7)],_0x1c5205['chatType'],_0x1a13dd=>{const _0x39367b=_0x3c6da9,_0x631f47={'gePbe':function(_0x43654e,_0x44ad84,_0x559dc0){const _0x1aa506=_0x1daf;return _0x407675[_0x1aa506(0xb4)](_0x43654e,_0x44ad84,_0x559dc0);},'wDBuG':_0x407675[_0x39367b(0xb9)]};_0x1a13dd&&(_0x1a13dd[_0x39367b(0xd7)]===0x13?this[_0x39367b(0x8f)](_0x1c5205[_0x39367b(0x89)])['then'](_0x28fda8=>{const _0x3b0f37=_0x39367b;_0x28fda8?(this[_0x3b0f37(0xda)][_0x3b0f37(0xcf)](_0x30f959,_0x28fda8),this['msgCache']['set'](_0x28fda8[_0x3b0f37(0x89)],_0x28fda8)):_0x631f47[_0x3b0f37(0xdf)](logError,_0x631f47[_0x3b0f37(0xc0)],_0x1a13dd);})[_0x39367b(0xe8)](_0x111df9=>logError('db\x20getMsgByLongId\x20error',_0x111df9)):logError(_0x407675[_0x39367b(0xa6)],_0x1a13dd));}),_0x30f959;}async[_0x3c108a(0xa8)](_0x4e0262){const _0x3b6f57=_0x3c108a,_0xdb483a={'GgMEe':function(_0x4eb653,_0x55fcc7,_0x31ba3f){return _0x4eb653(_0x55fcc7,_0x31ba3f);},'ObQIj':function(_0x38a5ca,_0x1d9071){return _0x38a5ca(_0x1d9071);},'AamSi':_0x3b6f57(0xb0)},_0x172942=this['msgCache'][_0x3b6f57(0xac)](_0x4e0262[_0x3b6f57(0x89)]);_0x172942&&Object['assign'](_0x172942,_0x4e0262);_0xdb483a['ObQIj'](logDebug,'更新消息,\x20shortId:'+_0x4e0262['id']+',\x20seq:\x20'+_0x4e0262[_0x3b6f57(0xc4)]+',\x20msgId:\x20'+_0x4e0262[_0x3b6f57(0x89)]);const _0x56f25e=this['db']['prepare'](_0xdb483a[_0x3b6f57(0xc2)]);_0x56f25e[_0x3b6f57(0xa9)](_0x4e0262[_0x3b6f57(0xc4)],_0x4e0262[_0x3b6f57(0x89)],_0x2ffd9d=>{const _0x37df56=_0x3b6f57;_0x2ffd9d&&_0xdb483a[_0x37df56(0xf7)](logError,_0x37df56(0xae),_0x2ffd9d);});}async[_0x3c108a(0x93)](_0x4e23bf){const _0x40b384=_0x3c108a,_0x3335f3={'bHjar':function(_0x279fad,_0xd5a877,_0x501157){return _0x279fad(_0xd5a877,_0x501157);},'xwwLR':function(_0x4be1ec,_0x3f4798){return _0x4be1ec(_0x3f4798);},'sIfVm':function(_0x38158d,_0x37ce7f){return _0x38158d(_0x37ce7f);},'EAaMg':_0x40b384(0xc3)},_0x2e0563=this['db']['prepare'](_0x3335f3[_0x40b384(0xf9)]);return new Promise((_0x232eef,_0x5b91db)=>{const _0xcc52f9=_0x40b384;_0x2e0563[_0xcc52f9(0xa9)](_0x4e23bf['name'],_0x4e23bf[_0xcc52f9(0x90)],_0x4e23bf[_0xcc52f9(0xe7)],_0x4e23bf[_0xcc52f9(0x104)],_0x4e23bf[_0xcc52f9(0xf3)],_0x4e23bf[_0xcc52f9(0xd0)],JSON[_0xcc52f9(0xf4)](_0x4e23bf[_0xcc52f9(0x9d)]),_0x4e23bf[_0xcc52f9(0xe2)],_0x4e23bf[_0xcc52f9(0x89)],function(_0x3b51a2){const _0x1e2f83=_0xcc52f9;_0x3b51a2&&(_0x3335f3[_0x1e2f83(0xde)](logError,_0x1e2f83(0x87),_0x3b51a2),_0x3335f3[_0x1e2f83(0xa5)](_0x5b91db,_0x3b51a2)),_0x3335f3['sIfVm'](_0x232eef,null);});});}async['getFileCache'](_0x4e9b70,_0x5536a1){const _0x1b005e=_0x3c108a,_0xfd40b7={'APZjW':function(_0x332c8b,_0x4a31ef,_0x13cf5d){return _0x332c8b(_0x4a31ef,_0x13cf5d);},'QZZxl':_0x1b005e(0xc5),'MQHyo':function(_0x49a4b7,_0xa0314f){return _0x49a4b7(_0xa0314f);}},_0x1d5edf=this['db'][_0x1b005e(0xa4)](_0x4e9b70);return new Promise((_0x460a76,_0x58057e)=>{const _0x53a236=_0x1b005e;_0x1d5edf[_0x53a236(0xac)](..._0x5536a1,(_0x97e9b9,_0x591c45)=>{const _0x12b9c3=_0x53a236;_0x97e9b9&&(_0xfd40b7['APZjW'](logError,_0xfd40b7[_0x12b9c3(0x103)],_0x97e9b9),_0xfd40b7[_0x12b9c3(0x91)](_0x58057e,_0x97e9b9)),_0x591c45&&(_0x591c45[_0x12b9c3(0x9d)]=JSON[_0x12b9c3(0x8b)](_0x591c45[_0x12b9c3(0x9d)])),_0x460a76(_0x591c45);});});}async['getFileCacheByName'](_0xc369ce){const _0x566bb2=_0x3c108a,_0x11e866={'WFCIs':_0x566bb2(0x101)};return this[_0x566bb2(0x8d)](_0x11e866[_0x566bb2(0xdb)],[_0xc369ce]);}async[_0x3c108a(0xcc)](_0x3db125){const _0x47d1bb=_0x3c108a,_0x406222={'GxlHM':_0x47d1bb(0xe4)};return this[_0x47d1bb(0x8d)](_0x406222[_0x47d1bb(0xcb)],[_0x3db125]);}async[_0x3c108a(0x94)](_0x54d3f1){const _0x1c18ba=_0x3c108a,_0x5b8722={'Mghzl':'db\x20could\x20not\x20update\x20file\x20cache','YUHPU':function(_0x413178,_0x355bd1){return _0x413178(_0x355bd1);},'ZEHZF':_0x1c18ba(0x100)},_0xa1722=this['db'][_0x1c18ba(0xa4)](_0x5b8722['ZEHZF']);return new Promise((_0x56bfb3,_0x245a2b)=>{const _0x31374f=_0x1c18ba;_0xa1722[_0x31374f(0xa9)](_0x54d3f1[_0x31374f(0x90)],_0x54d3f1[_0x31374f(0xe7)],_0x54d3f1[_0x31374f(0xf3)],function(_0x2d7e2b){const _0x43a8f1=_0x31374f;_0x2d7e2b&&(logError(_0x5b8722[_0x43a8f1(0xff)],_0x2d7e2b),_0x245a2b(_0x2d7e2b)),_0x5b8722[_0x43a8f1(0xef)](_0x56bfb3,null);});});}async[_0x3c108a(0x9a)](){const _0x127cb8=_0x3c108a,_0x850368={'Cldqp':function(_0x2ba4ff,_0x4981cb,_0x217f4d){return _0x2ba4ff(_0x4981cb,_0x217f4d);},'pJOqz':function(_0x3a3074,_0x5c1014){return _0x3a3074(_0x5c1014);},'DYfOj':_0x127cb8(0xec)},_0x39a246=_0x850368['DYfOj'];return new Promise((_0x2cf1eb,_0x470755)=>{const _0xa9d514=_0x127cb8,_0x56c9df={'ahpJM':function(_0x3e340e,_0x3190da,_0x18c08d){return _0x850368['Cldqp'](_0x3e340e,_0x3190da,_0x18c08d);},'iRZJp':function(_0x137aa0,_0x3ea7e5){const _0x4256e1=_0x1daf;return _0x850368[_0x4256e1(0x9c)](_0x137aa0,_0x3ea7e5);}};this['db'][_0xa9d514(0xd3)](_0x39a246,(_0x3a38d5,_0x43a20d)=>{const _0x5a8c36=_0xa9d514;_0x3a38d5&&(_0x56c9df[_0x5a8c36(0xd4)](logError,'db\x20could\x20not\x20get\x20temp\x20uin\x20map',_0x3a38d5),_0x56c9df[_0x5a8c36(0xaa)](_0x470755,_0x3a38d5));const _0x22bee4={};_0x43a20d[_0x5a8c36(0x83)](_0x382325=>{_0x22bee4[_0x382325['uin']]=_0x382325['uid'];}),_0x2cf1eb(_0x22bee4);});});}async['getUidByTempUin'](_0x3b569b){const _0x1c21bb=_0x3c108a,_0x1caad4={'uRIhD':_0x1c21bb(0xbd),'mkHxW':_0x1c21bb(0xe6)},_0x20b7f8=_0x1caad4[_0x1c21bb(0x8c)];return new Promise((_0x44a44b,_0x2fcc91)=>{const _0x5e6e7f=_0x1c21bb,_0x5a2230={'xZfOt':_0x1caad4[_0x5e6e7f(0xb6)]};this['db'][_0x5e6e7f(0xac)](_0x20b7f8,[_0x3b569b],(_0x3cc48d,_0x3976bb)=>{const _0x56f505=_0x5e6e7f;_0x3cc48d&&(logError(_0x5a2230[_0x56f505(0x8a)],_0x3cc48d),_0x2fcc91(_0x3cc48d)),_0x44a44b(_0x3976bb?.[_0x56f505(0xf6)]);});});}async[_0x3c108a(0xc6)](_0x21eb88,_0x530ed6){const _0x1863d0=_0x3c108a,_0xef7041={'tqcsX':_0x1863d0(0xb1),'SwycN':function(_0x1a6383,_0x221cf3){return _0x1a6383(_0x221cf3);},'biZBZ':function(_0x1039b1,_0x8bb317){return _0x1039b1(_0x8bb317);}},_0x1b3e0b=await this['getUidByTempUin'](_0x21eb88);if(!_0x1b3e0b){const _0x54bb20=this['db'][_0x1863d0(0xa4)](_0x1863d0(0x9e));return new Promise((_0x59b179,_0x26a0a8)=>{const _0x50bf4d=_0x1863d0;_0x54bb20[_0x50bf4d(0xa9)](_0x21eb88,_0x530ed6,function(_0x13572a){const _0x2047a0=_0x50bf4d;_0x13572a&&(logError(_0xef7041[_0x2047a0(0xaf)],_0x13572a),_0xef7041[_0x2047a0(0x99)](_0x26a0a8,_0x13572a)),_0xef7041['biZBZ'](_0x59b179,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index b6346e99..2595c8e1 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x59eaaf=_0x178b;(function(_0x1c4c97,_0x25bbae){const _0x507032=_0x178b,_0x4542e2=_0x1c4c97();while(!![]){try{const _0x4f6768=parseInt(_0x507032(0x136))/0x1*(-parseInt(_0x507032(0x12f))/0x2)+-parseInt(_0x507032(0x137))/0x3+-parseInt(_0x507032(0x12a))/0x4+-parseInt(_0x507032(0x133))/0x5*(parseInt(_0x507032(0x12b))/0x6)+-parseInt(_0x507032(0x135))/0x7*(parseInt(_0x507032(0x132))/0x8)+parseInt(_0x507032(0x134))/0x9+-parseInt(_0x507032(0x139))/0xa*(-parseInt(_0x507032(0x12c))/0xb);if(_0x4f6768===_0x25bbae)break;else _0x4542e2['push'](_0x4542e2['shift']());}catch(_0x18da06){_0x4542e2['push'](_0x4542e2['shift']());}}}(_0x171f,0xd5ddf));import _0x3679f2 from'node:path';import _0x4979b3 from'node:fs';function _0x178b(_0x35e9cc,_0x528f37){const _0x171f0c=_0x171f();return _0x178b=function(_0x178ba3,_0x2ad6d8){_0x178ba3=_0x178ba3-0x128;let _0x83cdfa=_0x171f0c[_0x178ba3];return _0x83cdfa;},_0x178b(_0x35e9cc,_0x528f37);}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x171f(){const _0x51a2a4=['./resources/app/wrapper.node','execPath','6sHZOQl','join','curVersion','16sfladr','10195egXLZW','3223278uMTHvp','1057539OGbJUe','147249XosgwO','873045Eisoev','dirname','10DJNHPy','existsSync','resources/app/versions/','4886028DXXHVa','2454ZfWnhT','39690541MgOQqV'];_0x171f=function(){return _0x51a2a4;};return _0x171f();}let wrapperNodePath=_0x3679f2['resolve'](_0x3679f2[_0x59eaaf(0x138)](process['execPath']),_0x59eaaf(0x12d));!_0x4979b3[_0x59eaaf(0x128)](wrapperNodePath)&&(wrapperNodePath=_0x3679f2[_0x59eaaf(0x130)](_0x3679f2[_0x59eaaf(0x138)](process[_0x59eaaf(0x12e)]),_0x59eaaf(0x129)+qqVersionConfigInfo[_0x59eaaf(0x131)]+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file +const _0x4d5673=_0x4dfe;(function(_0x2d1216,_0xa780d8){const _0x250a7c=_0x4dfe,_0x27b38a=_0x2d1216();while(!![]){try{const _0xd32e5a=-parseInt(_0x250a7c(0x98))/0x1*(-parseInt(_0x250a7c(0x96))/0x2)+-parseInt(_0x250a7c(0x9b))/0x3+-parseInt(_0x250a7c(0x8e))/0x4*(-parseInt(_0x250a7c(0x8b))/0x5)+-parseInt(_0x250a7c(0x92))/0x6*(parseInt(_0x250a7c(0x9a))/0x7)+-parseInt(_0x250a7c(0x8a))/0x8*(parseInt(_0x250a7c(0x99))/0x9)+parseInt(_0x250a7c(0x94))/0xa*(-parseInt(_0x250a7c(0x8d))/0xb)+-parseInt(_0x250a7c(0x87))/0xc*(-parseInt(_0x250a7c(0x8f))/0xd);if(_0xd32e5a===_0xa780d8)break;else _0x27b38a['push'](_0x27b38a['shift']());}catch(_0x3ae80e){_0x27b38a['push'](_0x27b38a['shift']());}}}(_0x2a14,0xa782f));import _0x3a6c48 from'node:path';import _0x2a1de4 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x3a6c48[_0x4d5673(0x95)](_0x3a6c48['dirname'](process['execPath']),_0x4d5673(0x89));function _0x4dfe(_0x5785f1,_0x72ccb9){const _0x2a14a5=_0x2a14();return _0x4dfe=function(_0x4dfe0b,_0x587713){_0x4dfe0b=_0x4dfe0b-0x87;let _0x46388a=_0x2a14a5[_0x4dfe0b];return _0x46388a;},_0x4dfe(_0x5785f1,_0x72ccb9);}!_0x2a1de4[_0x4d5673(0x90)](wrapperNodePath)&&(wrapperNodePath=_0x3a6c48[_0x4d5673(0x91)](_0x3a6c48[_0x4d5673(0x88)](process[_0x4d5673(0x93)]),_0x4d5673(0x8c)+qqVersionConfigInfo[_0x4d5673(0x97)]+_0x4d5673(0x9c)));const QQWrapper=require(wrapperNodePath);function _0x2a14(){const _0x3720d2=['./resources/app/wrapper.node','1376yXsJBq','1824490wIrReI','resources/app/versions/','10786127hpSSZJ','4vHOtnC','42625063YzExDC','existsSync','join','202722TZZdPL','execPath','10eLvrQA','resolve','2PgRLYH','curVersion','322206Aqhzfg','46152aAXRnD','112MsJCkR','2629989tyFsgm','/wrapper.node','12PHlGdI','dirname'];_0x2a14=function(){return _0x3720d2;};return _0x2a14();}export default QQWrapper; \ No newline at end of file