From cad824dcbcdd1e9f188866b2d1acdf68a4a37411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 17 May 2024 19:22:36 +0800 Subject: [PATCH] refactor: powershell script --- script/napcat-utf8.ps1 | 32 ++++++++++++++----- script/napcat.ps1 | 29 +++++++++++++---- .../src/adapters/NodeIDependsAdapter.js | 2 +- .../src/adapters/NodeIDispatcherAdapter.js | 2 +- .../src/adapters/NodeIGlobalAdapter.js | 2 +- src/core.lib/src/adapters/index.js | 2 +- src/core.lib/src/apis/file.js | 2 +- src/core.lib/src/apis/friend.js | 2 +- src/core.lib/src/apis/group.js | 2 +- src/core.lib/src/apis/index.js | 2 +- src/core.lib/src/apis/msg.js | 2 +- src/core.lib/src/apis/system.js | 2 +- src/core.lib/src/apis/user.js | 2 +- src/core.lib/src/apis/webapi.js | 2 +- src/core.lib/src/core.js | 2 +- src/core.lib/src/data.js | 2 +- src/core.lib/src/entities/cache.js | 2 +- src/core.lib/src/entities/constructor.js | 2 +- src/core.lib/src/entities/group.js | 2 +- src/core.lib/src/entities/index.js | 2 +- src/core.lib/src/entities/msg.d.ts | 9 ++++++ src/core.lib/src/entities/msg.js | 2 +- src/core.lib/src/entities/notify.js | 2 +- src/core.lib/src/entities/user.js | 2 +- src/core.lib/src/external/hook.js | 2 +- src/core.lib/src/index.js | 2 +- .../src/listeners/NodeIKernelBuddyListener.js | 2 +- .../NodeIKernelFileAssistantListener.js | 2 +- .../src/listeners/NodeIKernelGroupListener.js | 2 +- .../src/listeners/NodeIKernelLoginListener.js | 2 +- .../src/listeners/NodeIKernelMsgListener.js | 2 +- .../listeners/NodeIKernelProfileListener.js | 2 +- .../src/listeners/NodeIKernelRobotListener.js | 2 +- .../listeners/NodeIKernelSessionListener.js | 2 +- .../NodeIKernelStorageCleanListener.js | 2 +- src/core.lib/src/listeners/index.js | 2 +- src/core.lib/src/services/common.js | 2 +- src/core.lib/src/services/index.js | 2 +- src/core.lib/src/sessionConfig.js | 2 +- src/core.lib/src/utils/config.js | 2 +- src/core.lib/src/utils/db.js | 2 +- src/core.lib/src/utils/rkey.js | 2 +- src/core.lib/src/wrapper.js | 2 +- 43 files changed, 95 insertions(+), 55 deletions(-) diff --git a/script/napcat-utf8.ps1 b/script/napcat-utf8.ps1 index 7b05d0cd..7ea11c49 100644 --- a/script/napcat-utf8.ps1 +++ b/script/napcat-utf8.ps1 @@ -2,20 +2,36 @@ function Get-QQpath { try { $key = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" $uninstallString = $key.UninstallString + throw "get QQ path error:" return [System.IO.Path]::GetDirectoryName($uninstallString) + "\QQ.exe" - } catch { + } + catch { throw "get QQ path error: $_" } } +function Select-QQPath { + Add-Type -AssemblyName System.Windows.Forms + [System.Windows.Forms.Application]::EnableVisualStyles() + + $dialogTitle = "Select an EXE File" + + $filePicker = New-Object System.Windows.Forms.OpenFileDialog + $filePicker.Title = $dialogTitle + $filePicker.Filter = "Executable Files (*.exe)|*.exe|All Files (*.*)|*.*" + $filePicker.FilterIndex = 1 + $null = $filePicker.ShowDialog() + if (-not ($filePicker.FileName)) { + throw "User did not select an .exe file." + } + return $filePicker.FileName +} + $params = $args -join " " Try { $QQpath = Get-QQpath -} Catch { - $QQpath = Read-Host -Prompt "select QQ path" - if (!$QQpath) { - Write-Host "not select QQ path, exit" - exit - } +} +Catch { + $QQpath = Select-QQPath } if (!(Test-Path $QQpath)) { @@ -25,4 +41,4 @@ if (!(Test-Path $QQpath)) { $Bootfile = Join-Path $PSScriptRoot "napcat.cjs" $env:ELECTRON_RUN_AS_NODE = 1 $commandInfo = Get-Command $QQpath -ErrorAction Stop -Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' $Bootfile $params}" +Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' $Bootfile $params}" \ No newline at end of file diff --git a/script/napcat.ps1 b/script/napcat.ps1 index a6bcfb2f..527de0ac 100644 --- a/script/napcat.ps1 +++ b/script/napcat.ps1 @@ -3,19 +3,34 @@ function Get-QQpath { $key = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" $uninstallString = $key.UninstallString return [System.IO.Path]::GetDirectoryName($uninstallString) + "\QQ.exe" - } catch { + } + catch { throw "get QQ path error: $_" } } +function Select-QQPath { + Add-Type -AssemblyName System.Windows.Forms + [System.Windows.Forms.Application]::EnableVisualStyles() + + $dialogTitle = "Select QQ.exe" + + $filePicker = New-Object System.Windows.Forms.OpenFileDialog + $filePicker.Title = $dialogTitle + $filePicker.Filter = "Executable Files (*.exe)|*.exe|All Files (*.*)|*.*" + $filePicker.FilterIndex = 1 + $null = $filePicker.ShowDialog() + if (-not ($filePicker.FileName)) { + throw "User did not select an .exe file." + } + return $filePicker.FileName +} + $params = $args -join " " Try { $QQpath = Get-QQpath -} Catch { - $QQpath = Read-Host -Prompt "select QQ path" - if (!$QQpath) { - Write-Host "not select QQ path, exit" - exit - } +} +Catch { + $QQpath = Select-QQPath } if (!(Test-Path $QQpath)) { diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 745dd662..84346c4f 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -function _0x9626(_0x4aba00,_0x38c36b){var _0x110e42=_0x110e();return _0x9626=function(_0x9626c4,_0x4efc59){_0x9626c4=_0x9626c4-0x164;var _0x33e068=_0x110e42[_0x9626c4];return _0x33e068;},_0x9626(_0x4aba00,_0x38c36b);}function _0x110e(){var _0x43af00=['1916166uTCjhe','406554sDWftS','508yENioM','263439djNVEv','2YiWkKo','6310VXBCyC','onMSFStatusChange','getGroupCode','1422747nRkvtD','2105752HTWNVa','6ScGjRl','3341380fKPYss'];_0x110e=function(){return _0x43af00;};return _0x110e();}var _0x4b3007=_0x9626;(function(_0x688874,_0x5521c8){var _0x1c250f=_0x9626,_0x599e21=_0x688874();while(!![]){try{var _0x421d57=parseInt(_0x1c250f(0x16e))/0x1+parseInt(_0x1c250f(0x16f))/0x2*(-parseInt(_0x1c250f(0x16c))/0x3)+parseInt(_0x1c250f(0x16d))/0x4*(-parseInt(_0x1c250f(0x164))/0x5)+parseInt(_0x1c250f(0x169))/0x6*(parseInt(_0x1c250f(0x16b))/0x7)+-parseInt(_0x1c250f(0x168))/0x8+-parseInt(_0x1c250f(0x167))/0x9+parseInt(_0x1c250f(0x16a))/0xa;if(_0x421d57===_0x5521c8)break;else _0x599e21['push'](_0x599e21['shift']());}catch(_0x39e7eb){_0x599e21['push'](_0x599e21['shift']());}}}(_0x110e,0x25a6d));export class DependsAdapter{[_0x4b3007(0x165)](_0x39d652,_0x4459ef){}['onMSFSsoError'](_0x21204b){}[_0x4b3007(0x166)](_0x183212){}} \ No newline at end of file +var _0x3bb0de=_0x41ba;(function(_0xb76a3a,_0x2e4947){var _0x48fc7c=_0x41ba,_0x4ceb73=_0xb76a3a();while(!![]){try{var _0xa050b2=parseInt(_0x48fc7c(0xbf))/0x1+-parseInt(_0x48fc7c(0xbd))/0x2*(-parseInt(_0x48fc7c(0xc4))/0x3)+parseInt(_0x48fc7c(0xbe))/0x4*(-parseInt(_0x48fc7c(0xc0))/0x5)+parseInt(_0x48fc7c(0xbb))/0x6+parseInt(_0x48fc7c(0xc1))/0x7+-parseInt(_0x48fc7c(0xbc))/0x8*(parseInt(_0x48fc7c(0xc2))/0x9)+parseInt(_0x48fc7c(0xc3))/0xa;if(_0xa050b2===_0x2e4947)break;else _0x4ceb73['push'](_0x4ceb73['shift']());}catch(_0x5d3eac){_0x4ceb73['push'](_0x4ceb73['shift']());}}}(_0xff21,0x586c8));function _0xff21(){var _0x2baaee=['1086WIZpxh','onMSFStatusChange','959634ijXvAp','130600WVJwNs','386YcJrlc','73660CcfDaX','141012JkprIa','190lwDbEA','1992046XnyXCL','36XoQtgy','4718590mlmkOD'];_0xff21=function(){return _0x2baaee;};return _0xff21();}function _0x41ba(_0x1c4112,_0x265f63){var _0xff2185=_0xff21();return _0x41ba=function(_0x41ba9f,_0x368860){_0x41ba9f=_0x41ba9f-0xba;var _0x551888=_0xff2185[_0x41ba9f];return _0x551888;},_0x41ba(_0x1c4112,_0x265f63);}export class DependsAdapter{[_0x3bb0de(0xba)](_0x2c9aed,_0x5b75bd){}['onMSFSsoError'](_0x1492ea){}['getGroupCode'](_0x4ef44c){}} \ 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 d02d8d0e..f99e8e67 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -function _0x1674(_0x105230,_0x94ac2b){var _0x1731a5=_0x1731();return _0x1674=function(_0x16742d,_0x2b5fc3){_0x16742d=_0x16742d-0xe7;var _0x1e9d8f=_0x1731a5[_0x16742d];return _0x1e9d8f;},_0x1674(_0x105230,_0x94ac2b);}var _0x39a435=_0x1674;(function(_0x499b50,_0x4a9aaa){var _0x5145f2=_0x1674,_0xf0fe22=_0x499b50();while(!![]){try{var _0x597330=parseInt(_0x5145f2(0xed))/0x1*(-parseInt(_0x5145f2(0xf0))/0x2)+parseInt(_0x5145f2(0xf2))/0x3+-parseInt(_0x5145f2(0xf1))/0x4*(parseInt(_0x5145f2(0xeb))/0x5)+-parseInt(_0x5145f2(0xe9))/0x6*(parseInt(_0x5145f2(0xe8))/0x7)+-parseInt(_0x5145f2(0xef))/0x8*(-parseInt(_0x5145f2(0xee))/0x9)+parseInt(_0x5145f2(0xea))/0xa+parseInt(_0x5145f2(0xe7))/0xb;if(_0x597330===_0x4a9aaa)break;else _0xf0fe22['push'](_0xf0fe22['shift']());}catch(_0x43db2b){_0xf0fe22['push'](_0xf0fe22['shift']());}}}(_0x1731,0x4a1df));export class DispatcherAdapter{['dispatchRequest'](_0x44db15){}['dispatchCall'](_0x37bbc5){}[_0x39a435(0xec)](_0x3ca58d){}}function _0x1731(){var _0x118f85=['2bsrUPC','2178teBdqd','4576AxaNDK','492826klNdFX','4yBCotF','1194081ApfmyA','8495817BFJudF','14eNrRKZ','1399638HKrqea','3441380hUuJrY','1949905RWEMvH','dispatchCallWithJson'];_0x1731=function(){return _0x118f85;};return _0x1731();} \ No newline at end of file +var _0x39470e=_0x4b0a;function _0x4b0a(_0xe3baaf,_0xd08613){var _0x2422d2=_0x2422();return _0x4b0a=function(_0x4b0ae9,_0x40ec9f){_0x4b0ae9=_0x4b0ae9-0x16c;var _0x3baaf1=_0x2422d2[_0x4b0ae9];return _0x3baaf1;},_0x4b0a(_0xe3baaf,_0xd08613);}(function(_0x18cfe0,_0x6254ed){var _0x150ad7=_0x4b0a,_0x4cb4d9=_0x18cfe0();while(!![]){try{var _0x4bebca=parseInt(_0x150ad7(0x16f))/0x1+-parseInt(_0x150ad7(0x175))/0x2+-parseInt(_0x150ad7(0x171))/0x3+-parseInt(_0x150ad7(0x16e))/0x4*(-parseInt(_0x150ad7(0x170))/0x5)+-parseInt(_0x150ad7(0x176))/0x6*(parseInt(_0x150ad7(0x16c))/0x7)+-parseInt(_0x150ad7(0x172))/0x8+parseInt(_0x150ad7(0x173))/0x9;if(_0x4bebca===_0x6254ed)break;else _0x4cb4d9['push'](_0x4cb4d9['shift']());}catch(_0x20b73b){_0x4cb4d9['push'](_0x4cb4d9['shift']());}}}(_0x2422,0xb1219));export class DispatcherAdapter{[_0x39470e(0x16d)](_0x2dd8c8){}['dispatchCall'](_0x3f8e71){}[_0x39470e(0x174)](_0x3686da){}}function _0x2422(){var _0xdc4274=['1897136dSatFg','6BgDYvL','5743612wcbOeC','dispatchRequest','5113244NHfYBp','1021558RHtYSa','5TfFZTL','1967979mccoEe','9094192VtofVY','17887599aYzsKo','dispatchCallWithJson'];_0x2422=function(){return _0xdc4274;};return _0x2422();} \ 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 51691635..297df0e1 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0x1a3b(){var _0x3302f7=['onLog','onUpdateGeneralFlag','onGetOfflineMsg','648282PJneqT','441060kjQqqI','40258iuiMpu','378351IYwVRF','938035MhXOOk','onGetSrvCalTime','4XcdERe','6932NYmZht','getAppSetting','8EzSmlm','250qsySzo','onShowErrUITips','2871540bUzHqy'];_0x1a3b=function(){return _0x3302f7;};return _0x1a3b();}function _0x4957(_0x3f3a22,_0x382643){var _0x1a3b99=_0x1a3b();return _0x4957=function(_0x495706,_0x63993d){_0x495706=_0x495706-0x19c;var _0x3c52dd=_0x1a3b99[_0x495706];return _0x3c52dd;},_0x4957(_0x3f3a22,_0x382643);}var _0x3dc70d=_0x4957;(function(_0x2c94c7,_0x4d76fa){var _0x56d730=_0x4957,_0x475d2e=_0x2c94c7();while(!![]){try{var _0x3cbc1a=-parseInt(_0x56d730(0x1a3))/0x1*(-parseInt(_0x56d730(0x19f))/0x2)+-parseInt(_0x56d730(0x19e))/0x3+parseInt(_0x56d730(0x1a4))/0x4*(parseInt(_0x56d730(0x1a7))/0x5)+-parseInt(_0x56d730(0x19d))/0x6+parseInt(_0x56d730(0x1a1))/0x7*(-parseInt(_0x56d730(0x1a6))/0x8)+parseInt(_0x56d730(0x1a0))/0x9+parseInt(_0x56d730(0x1a9))/0xa;if(_0x3cbc1a===_0x4d76fa)break;else _0x475d2e['push'](_0x475d2e['shift']());}catch(_0x39007c){_0x475d2e['push'](_0x475d2e['shift']());}}}(_0x1a3b,0x1a317));export class GlobalAdapter{[_0x3dc70d(0x1aa)](..._0x2c7e6c){}[_0x3dc70d(0x1a2)](..._0x131af5){}[_0x3dc70d(0x1a8)](..._0x2a0fbc){}['fixPicImgType'](..._0x51d41b){}[_0x3dc70d(0x1a5)](..._0x537831){}['onInstallFinished'](..._0x1e5165){}[_0x3dc70d(0x1ab)](..._0x291846){}[_0x3dc70d(0x19c)](..._0x587506){}} \ No newline at end of file +var _0x37a9b3=_0x5464;(function(_0x7b1b25,_0x53f65d){var _0x4cce04=_0x5464,_0x3321e1=_0x7b1b25();while(!![]){try{var _0xc14cde=-parseInt(_0x4cce04(0xa0))/0x1+parseInt(_0x4cce04(0xa5))/0x2+-parseInt(_0x4cce04(0xa2))/0x3*(-parseInt(_0x4cce04(0x9f))/0x4)+parseInt(_0x4cce04(0x9d))/0x5+-parseInt(_0x4cce04(0xa6))/0x6+-parseInt(_0x4cce04(0x9c))/0x7*(parseInt(_0x4cce04(0xa4))/0x8)+-parseInt(_0x4cce04(0xa1))/0x9;if(_0xc14cde===_0x53f65d)break;else _0x3321e1['push'](_0x3321e1['shift']());}catch(_0x254bf9){_0x3321e1['push'](_0x3321e1['shift']());}}}(_0x1be3,0xac6d6));function _0x1be3(){var _0x3a0975=['6201630kxiorc','getAppSetting','onUpdateGeneralFlag','onGetOfflineMsg','49OuLWja','4835155oQWXXe','onLog','3897428PyiCZN','634128uTMJDc','3396924ENVpBE','3WfyZTD','onShowErrUITips','396440qzEbfC','2313856cMHzXV'];_0x1be3=function(){return _0x3a0975;};return _0x1be3();}function _0x5464(_0x1a3ddd,_0x43d978){var _0x1be3fb=_0x1be3();return _0x5464=function(_0x5464fe,_0x3c0230){_0x5464fe=_0x5464fe-0x9a;var _0xa5a052=_0x1be3fb[_0x5464fe];return _0xa5a052;},_0x5464(_0x1a3ddd,_0x43d978);}export class GlobalAdapter{[_0x37a9b3(0x9e)](..._0x1df613){}['onGetSrvCalTime'](..._0x1f9578){}[_0x37a9b3(0xa3)](..._0x28cc80){}['fixPicImgType'](..._0x5e1c59){}[_0x37a9b3(0xa7)](..._0x21ce99){}['onInstallFinished'](..._0x81b3e5){}[_0x37a9b3(0x9a)](..._0x12e9dd){}[_0x37a9b3(0x9b)](..._0x117911){}} \ 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 7f7e0344..c8644765 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(function(_0x5dcf99,_0x31fda6){var _0x1ed331=_0xa0c0,_0x320ed2=_0x5dcf99();while(!![]){try{var _0x36cfb5=parseInt(_0x1ed331(0x102))/0x1*(parseInt(_0x1ed331(0x109))/0x2)+-parseInt(_0x1ed331(0x104))/0x3*(-parseInt(_0x1ed331(0x10c))/0x4)+parseInt(_0x1ed331(0x10a))/0x5*(parseInt(_0x1ed331(0x107))/0x6)+-parseInt(_0x1ed331(0x106))/0x7+parseInt(_0x1ed331(0x108))/0x8+parseInt(_0x1ed331(0x105))/0x9*(-parseInt(_0x1ed331(0x103))/0xa)+-parseInt(_0x1ed331(0x10b))/0xb;if(_0x36cfb5===_0x31fda6)break;else _0x320ed2['push'](_0x320ed2['shift']());}catch(_0x242613){_0x320ed2['push'](_0x320ed2['shift']());}}}(_0x4943,0x683d0));export*from'./NodeIDependsAdapter';function _0x4943(){var _0x3760ec=['3119184vFIqMv','2hPmiTn','61630JnpcLK','9140725XKkQVT','828220sktmBJ','852184flJaXh','50YUXSUd','3vJjMBz','269721kcbeOn','1238601HMpvsV','66cDNKBQ'];_0x4943=function(){return _0x3760ec;};return _0x4943();}function _0xa0c0(_0x120f06,_0xb82652){var _0x4943be=_0x4943();return _0xa0c0=function(_0xa0c048,_0x2571cb){_0xa0c048=_0xa0c048-0x102;var _0x107b21=_0x4943be[_0xa0c048];return _0x107b21;},_0xa0c0(_0x120f06,_0xb82652);}export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file +function _0x3fb4(){var _0x29fc97=['1022820PdKzIw','2xTZvLP','2781WFRvvm','16938RfUrAb','4546512qUvXxs','3241945nPLVwv','580cJnNLx','1911882bmTFCF','2229784YQxfos','7hiLySU'];_0x3fb4=function(){return _0x29fc97;};return _0x3fb4();}(function(_0x119719,_0x1bc550){var _0x4443c1=_0x54d3,_0x486c6e=_0x119719();while(!![]){try{var _0x21c9d1=-parseInt(_0x4443c1(0x106))/0x1*(parseInt(_0x4443c1(0x105))/0x2)+-parseInt(_0x4443c1(0x104))/0x3+parseInt(_0x4443c1(0x102))/0x4+-parseInt(_0x4443c1(0xff))/0x5+parseInt(_0x4443c1(0x101))/0x6*(parseInt(_0x4443c1(0x103))/0x7)+parseInt(_0x4443c1(0x108))/0x8+-parseInt(_0x4443c1(0x107))/0x9*(parseInt(_0x4443c1(0x100))/0xa);if(_0x21c9d1===_0x1bc550)break;else _0x486c6e['push'](_0x486c6e['shift']());}catch(_0x47a4e9){_0x486c6e['push'](_0x486c6e['shift']());}}}(_0x3fb4,0x53c65));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x54d3(_0x233311,_0x341a6f){var _0x3fb44a=_0x3fb4();return _0x54d3=function(_0x54d3a0,_0x356fb4){_0x54d3a0=_0x54d3a0-0xff;var _0x3f61f4=_0x3fb44a[_0x54d3a0];return _0x3f61f4;},_0x54d3(_0x233311,_0x341a6f);}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 84d3352d..09aceda5 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x4f84e1=_0x2261;(function(_0x2ff7b9,_0x120443){const _0x5a7ee8=_0x2261,_0x5981b3=_0x2ff7b9();while(!![]){try{const _0x5ad13a=-parseInt(_0x5a7ee8(0x109))/0x1*(-parseInt(_0x5a7ee8(0x106))/0x2)+-parseInt(_0x5a7ee8(0xdf))/0x3*(parseInt(_0x5a7ee8(0x117))/0x4)+-parseInt(_0x5a7ee8(0xf5))/0x5*(parseInt(_0x5a7ee8(0x11b))/0x6)+-parseInt(_0x5a7ee8(0xf3))/0x7+parseInt(_0x5a7ee8(0x11c))/0x8*(-parseInt(_0x5a7ee8(0xeb))/0x9)+-parseInt(_0x5a7ee8(0x101))/0xa+parseInt(_0x5a7ee8(0x121))/0xb;if(_0x5ad13a===_0x120443)break;else _0x5981b3['push'](_0x5981b3['shift']());}catch(_0x585716){_0x5981b3['push'](_0x5981b3['shift']());}}}(_0x20eb,0xe14d1));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x34774 from'path';import _0x3e1b39 from'fs';import _0x140e5e from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';function _0x2261(_0x13945c,_0x47b305){const _0x20eb16=_0x20eb();return _0x2261=function(_0x2261f1,_0x149b0a){_0x2261f1=_0x2261f1-0xd8;let _0x3ae41e=_0x20eb16[_0x2261f1];return _0x3ae41e;},_0x2261(_0x13945c,_0x47b305);}import{calculateFileMD5}from'@/common/utils/file';function _0x20eb(){const _0x2bd610=['clearCacheDataByKeys','downloadRichMedia','start\x20downloadMedia','158oUDLOk','ModSE','yBiRA','18353hHbNCD','group_rkey','下载超时','receive\x20downloadMedia\x20task','downloadMedia','msgId','basename','iTtss','图片url获取失败','util','/gchatpic_new/0/0-0-','private_rkey','getChatCacheList','OSQTb','2344984LoztPZ','getRkey','VwOMG','onLoginSuccess','984vUAMjd','8SfzIrC','DLSUx','md5HexStr','CaVBe','delete','46319702VfGyyX','filePath','downloadMedia\x20complete','copyFile','getImageSize','getFileType','scanCache','addCacheScannedPaths','&rkey=','includes','getStorageCleanService','9PjayXQ','getMsgService','qEgGy','eFYFo','ext','uiNFx','onRichMediaDownloadComplete','getHotUpdateCachePath','KFPOP','fileTypeFromFile','hotUpdate','tmp','2929023vGOyqf','/download','wiVxY','clearCache','fileUuid','unlink','setCacheSilentScan','HUmfB','12094012eBiqvv','getCacheSessionPathList','10405WxBGVi','getDesktopTmpPath','startsWith','downloadPath','getImageUrl','addCacheScanedPaths','izlBj','session','getChatCacheInfo','set','getFileSize','PIC','5847510ZlcmcG','existsSync'];_0x20eb=function(){return _0x2bd610;};return _0x20eb();}import*as _0xe32f95 from'file-type';import{MsgListener}from'@/core/listeners';import _0x505c5f from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x4f84e1(0xe5)]=_0x507c1e=>{const _0x77dd68=_0x4f84e1;for(const [_0x99e4e3,_0xc29a33]of downloadMediaTasks){_0xc29a33(_0x507c1e),downloadMediaTasks[_0x77dd68(0x120)](_0x99e4e3);}},setTimeout(()=>{const _0x527428=_0x4f84e1;napCatCore[_0x527428(0x11a)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async['getFileType'](_0x1608d5){const _0x23b7db=_0x4f84e1;return _0xe32f95[_0x23b7db(0xe8)](_0x1608d5);}static async[_0x4f84e1(0x124)](_0x240829,_0x38ed63){const _0x2f7a56=_0x4f84e1;await napCatCore[_0x2f7a56(0x112)][_0x2f7a56(0x124)](_0x240829,_0x38ed63);}static async[_0x4f84e1(0xff)](_0x3282ca){const _0xdc46b1=_0x4f84e1;return await napCatCore['util'][_0xdc46b1(0xff)](_0x3282ca);}static async['uploadFile'](_0xbbba9b,_0x212a27=ElementType[_0x4f84e1(0x100)],_0x3fc526=0x0){const _0x2baabb=_0x4f84e1,_0x26f7da={'KFPOP':function(_0x285bb5,_0xbd8264){return _0x285bb5(_0xbd8264);}},_0x9052ac=await _0x26f7da[_0x2baabb(0xe7)](calculateFileMD5,_0xbbba9b);let _0x1b5097=(await NTQQFileApi[_0x2baabb(0xd9)](_0xbbba9b))?.[_0x2baabb(0xe3)]||'';_0x1b5097&&(_0x1b5097='.'+_0x1b5097);let _0x3adc57=''+_0x34774[_0x2baabb(0x10f)](_0xbbba9b);_0x3adc57['indexOf']('.')===-0x1&&(_0x3adc57+=_0x1b5097);const _0x341c02=napCatCore[_0x2baabb(0xfc)][_0x2baabb(0xe0)]()['getRichMediaFilePathForGuild']({'md5HexStr':_0x9052ac,'fileName':_0x3adc57,'elementType':_0x212a27,'elementSubType':_0x3fc526,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x2baabb(0x124)](_0xbbba9b,_0x341c02);const _0x3b77a1=await NTQQFileApi[_0x2baabb(0xff)](_0xbbba9b);return{'md5':_0x9052ac,'fileName':_0x3adc57,'path':_0x341c02,'fileSize':_0x3b77a1,'ext':_0x1b5097};}static async[_0x4f84e1(0x10d)](_0x9d3637,_0x4ffa12,_0x479e82,_0x927a01,_0x5d49fc,_0x1a2d71,_0xdd7a3c=0x3e8*0x3c*0x2,_0x50a2c3=![]){const _0x90baf8=_0x4f84e1,_0x517b1d={'CaVBe':_0x90baf8(0x123),'eFYFo':_0x90baf8(0xf8),'OSQTb':function(_0x1b6213,_0x5c8d6e){return _0x1b6213(_0x5c8d6e);},'JInvf':function(_0xda4b23){return _0xda4b23();},'izlBj':function(_0x3804d0,_0x3213f4,_0x115f52,_0x555ca2,_0xd9d82,_0x3d1c3f,_0x32b187,_0x1651d0,_0x463d7f,_0x5f4bdf){return _0x3804d0(_0x3213f4,_0x115f52,_0x555ca2,_0xd9d82,_0x3d1c3f,_0x32b187,_0x1651d0,_0x463d7f,_0x5f4bdf);},'HUmfB':_0x90baf8(0x10c),'wiVxY':_0x90baf8(0x105)};_0x517b1d[_0x90baf8(0xfb)](logDebug,_0x517b1d[_0x90baf8(0xf2)],_0x9d3637,_0x4ffa12,_0x479e82,_0x927a01,_0x5d49fc,_0x1a2d71,_0xdd7a3c,_0x50a2c3);if(_0x1a2d71&&_0x3e1b39[_0x90baf8(0x102)](_0x1a2d71)){if(_0x50a2c3)try{await _0x140e5e[_0x90baf8(0xf0)](_0x1a2d71);}catch(_0xb653a2){}else return _0x1a2d71;}return _0x517b1d['izlBj'](logDebug,_0x517b1d[_0x90baf8(0xed)],_0x9d3637,_0x4ffa12,_0x479e82,_0x927a01,_0x5d49fc,_0x1a2d71,_0xdd7a3c,_0x50a2c3),new Promise((_0x5bb1ab,_0x4d4823)=>{const _0x563661=_0x90baf8,_0x25a14d={'uiNFx':function(_0x380267,_0x445ba2){const _0x1cd1dc=_0x2261;return _0x517b1d[_0x1cd1dc(0x116)](_0x380267,_0x445ba2);}};let _0x3a848f=![];const _0x4cb605=_0x418c25=>{const _0x28d435=_0x2261;logDebug(_0x517b1d[_0x28d435(0x11f)],_0x418c25,_0x9d3637);if(_0x418c25[_0x28d435(0x10e)]===_0x9d3637){_0x3a848f=!![];let _0x494805=_0x418c25[_0x28d435(0x122)];if(_0x494805['startsWith']('\x5c')){const _0x517cdf=sessionConfig['defaultFileDownloadPath'];logDebug(_0x517b1d[_0x28d435(0xe2)],_0x517cdf),_0x494805=_0x34774['join'](_0x517cdf,_0x494805);}_0x517b1d[_0x28d435(0x116)](_0x5bb1ab,_0x494805);}};downloadMediaTasks[_0x563661(0xfe)](_0x517b1d['JInvf'](randomUUID),_0x4cb605),setTimeout(()=>{const _0x3eba1f=_0x563661;!_0x3a848f&&_0x25a14d[_0x3eba1f(0xe4)](_0x4d4823,_0x3eba1f(0x10b));},_0xdd7a3c),napCatCore[_0x563661(0xfc)][_0x563661(0xe0)]()[_0x563661(0x104)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x9d3637,'chatType':_0x4ffa12,'peerUid':_0x479e82,'elementId':_0x927a01,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x5d49fc});});}static async[_0x4f84e1(0xd8)](_0x4d7309){const _0x100135={'VwOMG':function(_0x155637,_0x5c0b70){return _0x155637(_0x5c0b70);}};return new Promise((_0xfa3143,_0x3f5d73)=>{_0x505c5f(_0x4d7309,(_0x15b730,_0x54208b)=>{const _0x5a5020=_0x2261;_0x15b730?_0x100135[_0x5a5020(0x119)](_0x3f5d73,_0x15b730):_0x100135[_0x5a5020(0x119)](_0xfa3143,_0x54208b);});});}static async[_0x4f84e1(0xf9)](_0x4d03af,_0x6b6bb5){const _0x36a132=_0x4f84e1,_0x89201={'DLSUx':_0x36a132(0xec),'EYGLl':_0x36a132(0xdc),'yBiRA':function(_0x2b3ae4,_0x379916){return _0x2b3ae4+_0x379916;},'qEgGy':function(_0x17b9e4,_0x33a21c){return _0x17b9e4||_0x33a21c;},'iTtss':function(_0x2fe937,_0x33b697,_0x1b250d){return _0x2fe937(_0x33b697,_0x1b250d);},'ModSE':_0x36a132(0x111)};if(!_0x4d03af)return'';const _0x375a94=_0x4d03af['originImageUrl'],_0x4c3598=_0x4d03af['md5HexStr'],_0x4a12dc=_0x4d03af[_0x36a132(0x11e)],_0x2e16e5=_0x4d03af[_0x36a132(0xef)];if(_0x375a94){if(_0x375a94[_0x36a132(0xf7)](_0x89201[_0x36a132(0x11d)])){if(_0x375a94[_0x36a132(0xdd)](_0x89201['EYGLl']))return IMAGE_HTTP_HOST_NT+_0x375a94;const _0x592286=await rkeyManager[_0x36a132(0x118)](),_0x4d4015=_0x6b6bb5?_0x592286[_0x36a132(0x114)]:_0x592286[_0x36a132(0x10a)];return _0x89201[_0x36a132(0x108)](_0x89201[_0x36a132(0x108)](IMAGE_HTTP_HOST_NT,_0x375a94),''+_0x4d4015);}else return _0x89201[_0x36a132(0x108)](IMAGE_HTTP_HOST,_0x375a94);}else{if(_0x89201[_0x36a132(0xe1)](_0x4a12dc,_0x4c3598))return IMAGE_HTTP_HOST+_0x36a132(0x113)+_0x89201[_0x36a132(0xe1)](_0x4a12dc,_0x4c3598)['toUpperCase']()+'/0';}return _0x89201[_0x36a132(0x110)](logDebug,_0x89201[_0x36a132(0x107)],_0x4d03af),'';}}export class NTQQFileCacheApi{static async[_0x4f84e1(0xf1)](_0x35c2d1=!![]){return'';}static[_0x4f84e1(0xf4)](){return'';}static[_0x4f84e1(0xee)](_0x2a2db2=[_0x4f84e1(0xea),_0x4f84e1(0xe9)]){const _0x283300=_0x4f84e1;return napCatCore[_0x283300(0xfc)][_0x283300(0xde)]()[_0x283300(0x103)](_0x2a2db2);}static[_0x4f84e1(0xdb)](_0x3fcfa5={}){const _0x47b225=_0x4f84e1;return napCatCore[_0x47b225(0xfc)][_0x47b225(0xde)]()[_0x47b225(0xfa)](_0x3fcfa5);}static['scanCache'](){const _0x3bd264=_0x4f84e1;return napCatCore[_0x3bd264(0xfc)][_0x3bd264(0xde)]()[_0x3bd264(0xda)]();}static[_0x4f84e1(0xe6)](){return'';}static[_0x4f84e1(0xf6)](){return'';}static[_0x4f84e1(0x115)](_0x76f688,_0x57626f=0x3e8,_0x42437f=0x0){const _0x1cbaf1=_0x4f84e1;return napCatCore['session'][_0x1cbaf1(0xde)]()[_0x1cbaf1(0xfd)](_0x76f688,_0x57626f,0x1,_0x42437f);}static['getFileCacheInfo'](_0x1dbb65,_0x4e51f8=0x3e8,_0x2bc411){const _0x1095e4=_0x2bc411?_0x2bc411:{'fileType':_0x1dbb65};}static async['clearChatCache'](_0x54708a=[],_0x124665=[]){return napCatCore['session']['getStorageCleanService']()['clearChatCacheInfo'](_0x54708a,_0x124665);}} \ No newline at end of file +const _0x2d2469=_0x7077;(function(_0x29acf2,_0x2e5e0b){const _0x20e2af=_0x7077,_0x26d222=_0x29acf2();while(!![]){try{const _0x11fb27=parseInt(_0x20e2af(0xd2))/0x1+-parseInt(_0x20e2af(0xab))/0x2+parseInt(_0x20e2af(0xdb))/0x3+parseInt(_0x20e2af(0xa4))/0x4*(-parseInt(_0x20e2af(0xae))/0x5)+parseInt(_0x20e2af(0xde))/0x6*(parseInt(_0x20e2af(0x9c))/0x7)+parseInt(_0x20e2af(0xb7))/0x8*(-parseInt(_0x20e2af(0xa5))/0x9)+-parseInt(_0x20e2af(0xd7))/0xa*(-parseInt(_0x20e2af(0x9f))/0xb);if(_0x11fb27===_0x2e5e0b)break;else _0x26d222['push'](_0x26d222['shift']());}catch(_0x11b3ca){_0x26d222['push'](_0x26d222['shift']());}}}(_0x81f9,0xa0d18));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x5d0363 from'path';import _0x575994 from'fs';import _0x2bc589 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x5d5aa1 from'file-type';import{MsgListener}from'@/core/listeners';import _0x743ee7 from'image-size';function _0x7077(_0x4315dc,_0xc43aa2){const _0x81f9ff=_0x81f9();return _0x7077=function(_0x707799,_0x5e59b5){_0x707799=_0x707799-0x99;let _0x4d8c53=_0x81f9ff[_0x707799];return _0x4d8c53;},_0x7077(_0x4315dc,_0xc43aa2);}import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x2d2469(0x9a)]=_0x3f5ea1=>{const _0x25a71f=_0x2d2469,_0x3af15d={'cQuqh':function(_0x19e174,_0x43e5d){return _0x19e174(_0x43e5d);}};for(const [_0x118e89,_0x2d023f]of downloadMediaTasks){_0x3af15d[_0x25a71f(0xb4)](_0x2d023f,_0x3f5ea1),downloadMediaTasks['delete'](_0x118e89);}},setTimeout(()=>{const _0x5ce57a=_0x2d2469;napCatCore[_0x5ce57a(0xe0)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x2d2469(0xe1)](_0x326f10){const _0x1e4bd7=_0x2d2469;return _0x5d5aa1[_0x1e4bd7(0xbf)](_0x326f10);}static async[_0x2d2469(0xc9)](_0x381f5,_0x12e39c){const _0x12d161=_0x2d2469;await napCatCore[_0x12d161(0xdc)]['copyFile'](_0x381f5,_0x12e39c);}static async['getFileSize'](_0x33c9bf){const _0x1c5b9b=_0x2d2469;return await napCatCore[_0x1c5b9b(0xdc)][_0x1c5b9b(0xdf)](_0x33c9bf);}static async['uploadFile'](_0x4c04fb,_0x47db6e=ElementType[_0x2d2469(0x9b)],_0x49b405=0x0){const _0x5a0f62=_0x2d2469,_0x58fc9d={'Vssbk':function(_0x44185e,_0x200dd7){return _0x44185e(_0x200dd7);}},_0x597329=await _0x58fc9d[_0x5a0f62(0xe5)](calculateFileMD5,_0x4c04fb);let _0x54e4b1=(await NTQQFileApi[_0x5a0f62(0xe1)](_0x4c04fb))?.[_0x5a0f62(0xb1)]||'';_0x54e4b1&&(_0x54e4b1='.'+_0x54e4b1);let _0x2bf9e6=''+_0x5d0363[_0x5a0f62(0xcd)](_0x4c04fb);_0x2bf9e6[_0x5a0f62(0xdd)]('.')===-0x1&&(_0x2bf9e6+=_0x54e4b1);const _0x49dd68=napCatCore['session'][_0x5a0f62(0x9e)]()[_0x5a0f62(0x9d)]({'md5HexStr':_0x597329,'fileName':_0x2bf9e6,'elementType':_0x47db6e,'elementSubType':_0x49b405,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x5a0f62(0xc9)](_0x4c04fb,_0x49dd68);const _0x50ea4a=await NTQQFileApi[_0x5a0f62(0xdf)](_0x4c04fb);return{'md5':_0x597329,'fileName':_0x2bf9e6,'path':_0x49dd68,'fileSize':_0x50ea4a,'ext':_0x54e4b1};}static async['downloadMedia'](_0x2bc0c5,_0x22cdae,_0x20d3a0,_0x202555,_0xaa676b,_0x4bab31,_0x144842=0x3e8*0x3c*0x2,_0x3d5d97=![]){const _0x29f4db=_0x2d2469,_0x4963b6={'SeJmh':function(_0x499df3,_0x251f9a){return _0x499df3(_0x251f9a);},'oqHfN':function(_0x100d80){return _0x100d80();},'Kmlus':function(_0x3e5ad1,_0x55af90,_0x5dca5b){return _0x3e5ad1(_0x55af90,_0x5dca5b);},'UDdrN':function(_0x62c2bc,_0x3265cb,_0x312d54,_0x1afa6a,_0x53dee8,_0x4fad9a,_0x5d4bcf,_0x5aee38,_0x1ca809,_0x25b345){return _0x62c2bc(_0x3265cb,_0x312d54,_0x1afa6a,_0x53dee8,_0x4fad9a,_0x5d4bcf,_0x5aee38,_0x1ca809,_0x25b345);},'DUDwY':_0x29f4db(0xe3),'jagAy':function(_0x436a84,_0x113ae9,_0x3c35f4,_0x1a77b8,_0x225023,_0x227f72,_0x17ab91,_0x11142e,_0x555308,_0x5e3fc5){return _0x436a84(_0x113ae9,_0x3c35f4,_0x1a77b8,_0x225023,_0x227f72,_0x17ab91,_0x11142e,_0x555308,_0x5e3fc5);},'qqdqI':_0x29f4db(0xb9)};_0x4963b6[_0x29f4db(0xa1)](logDebug,_0x4963b6[_0x29f4db(0xc1)],_0x2bc0c5,_0x22cdae,_0x20d3a0,_0x202555,_0xaa676b,_0x4bab31,_0x144842,_0x3d5d97);if(_0x4bab31&&_0x575994[_0x29f4db(0xce)](_0x4bab31)){if(_0x3d5d97)try{await _0x2bc589[_0x29f4db(0xad)](_0x4bab31);}catch(_0xa6f1bb){}else return _0x4bab31;}return _0x4963b6[_0x29f4db(0xb3)](logDebug,_0x4963b6[_0x29f4db(0xa7)],_0x2bc0c5,_0x22cdae,_0x20d3a0,_0x202555,_0xaa676b,_0x4bab31,_0x144842,_0x3d5d97),new Promise((_0x536c46,_0x57584f)=>{const _0x418941=_0x29f4db,_0x98384={'rWbbq':function(_0x30b1e5,_0x329028,_0x482378,_0x37e211){return _0x30b1e5(_0x329028,_0x482378,_0x37e211);},'eWQEf':_0x418941(0xc4),'IHJsC':function(_0x558362,_0x12e7c8){const _0x1b3ded=_0x418941;return _0x4963b6[_0x1b3ded(0xc0)](_0x558362,_0x12e7c8);}};let _0x2af6d7=![];const _0x40f516=_0x548c60=>{const _0x4438d8=_0x418941;_0x98384[_0x4438d8(0xbd)](logDebug,_0x4438d8(0xb0),_0x548c60,_0x2bc0c5);if(_0x548c60[_0x4438d8(0xa0)]===_0x2bc0c5){_0x2af6d7=!![];let _0x5afba8=_0x548c60['filePath'];if(_0x5afba8[_0x4438d8(0xcb)]('\x5c')){const _0x22e050=sessionConfig[_0x4438d8(0xaa)];logDebug(_0x98384[_0x4438d8(0xd3)],_0x22e050),_0x5afba8=_0x5d0363[_0x4438d8(0xc3)](_0x22e050,_0x5afba8);}_0x98384[_0x4438d8(0xbb)](_0x536c46,_0x5afba8);}};downloadMediaTasks[_0x418941(0xca)](_0x4963b6[_0x418941(0xc2)](randomUUID),_0x40f516),_0x4963b6[_0x418941(0xbe)](setTimeout,()=>{const _0x318978=_0x418941;!_0x2af6d7&&_0x4963b6[_0x318978(0xc0)](_0x57584f,_0x318978(0xa9));},_0x144842),napCatCore['session']['getMsgService']()[_0x418941(0xd0)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x2bc0c5,'chatType':_0x22cdae,'peerUid':_0x20d3a0,'elementId':_0x202555,'thumbSize':0x0,'downloadType':0x1,'filePath':_0xaa676b});});}static async[_0x2d2469(0xd1)](_0x47d5d6){const _0x4b5256={'vfMqM':function(_0x2cd3cf,_0xa453ff){return _0x2cd3cf(_0xa453ff);}};return new Promise((_0xa530c4,_0x120b9f)=>{const _0x3374a4={'gjrFL':function(_0xc99474,_0x2029ae){const _0x1c6c9d=_0x7077;return _0x4b5256[_0x1c6c9d(0xaf)](_0xc99474,_0x2029ae);}};_0x743ee7(_0x47d5d6,(_0x9566be,_0x5959d5)=>{_0x9566be?_0x120b9f(_0x9566be):_0x3374a4['gjrFL'](_0xa530c4,_0x5959d5);});});}static async[_0x2d2469(0xc5)](_0x1f7660,_0x534435){const _0x578601=_0x2d2469,_0x23f333={'zOaQl':function(_0x94d910,_0x3e2561){return _0x94d910+_0x3e2561;},'gEFkq':function(_0x52935c,_0x4cf30a){return _0x52935c||_0x4cf30a;},'LTlsA':function(_0x2ac2e8,_0x5f53d0,_0x12086f){return _0x2ac2e8(_0x5f53d0,_0x12086f);}};if(!_0x1f7660)return'';const _0x16d442=_0x1f7660[_0x578601(0xb8)],_0x78440=_0x1f7660[_0x578601(0xc6)],_0x37fba9=_0x1f7660[_0x578601(0xc6)],_0x221c93=_0x1f7660[_0x578601(0xac)];if(_0x16d442){if(_0x16d442[_0x578601(0xcb)](_0x578601(0xb5))){if(_0x16d442[_0x578601(0xcc)]('&rkey='))return _0x23f333[_0x578601(0xa6)](IMAGE_HTTP_HOST_NT,_0x16d442);const _0x32ce1b=await rkeyManager[_0x578601(0xe2)](),_0x3a16cf=_0x534435?_0x32ce1b['private_rkey']:_0x32ce1b[_0x578601(0xa3)];return IMAGE_HTTP_HOST_NT+_0x16d442+(''+_0x3a16cf);}else return IMAGE_HTTP_HOST+_0x16d442;}else{if(_0x23f333[_0x578601(0xc8)](_0x37fba9,_0x78440))return IMAGE_HTTP_HOST+_0x578601(0xa8)+_0x23f333[_0x578601(0xc8)](_0x37fba9,_0x78440)[_0x578601(0xd4)]()+'/0';}return _0x23f333[_0x578601(0xb2)](logDebug,'图片url获取失败',_0x1f7660),'';}}function _0x81f9(){const _0x54069b=['session','gEFkq','copyFile','set','startsWith','includes','basename','existsSync','clearChatCacheInfo','downloadRichMedia','getImageSize','675595OuvHjJ','eWQEf','toUpperCase','getChatCacheInfo','getDesktopTmpPath','10UjdNYZ','clearCacheDataByKeys','scanCache','getHotUpdateCachePath','1938483Qshffw','util','indexOf','1126056SpvqMN','getFileSize','onLoginSuccess','getFileType','getRkey','receive\x20downloadMedia\x20task','getCacheSessionPathList','Vssbk','getChatCacheList','onRichMediaDownloadComplete','PIC','35SoXOFP','getRichMediaFilePathForGuild','getMsgService','10093292GrvrNV','msgId','UDdrN','getStorageCleanService','group_rkey','8108upCxux','333rKVctW','zOaQl','qqdqI','/gchatpic_new/0/0-0-','下载超时','defaultFileDownloadPath','1280520ItfEWn','fileUuid','unlink','1835dqdwQX','vfMqM','downloadMedia\x20complete','ext','LTlsA','jagAy','cQuqh','/download','clearCache','245368Lfcztz','originImageUrl','start\x20downloadMedia','addCacheScannedPaths','IHJsC','tmp','rWbbq','Kmlus','fileTypeFromFile','SeJmh','DUDwY','oqHfN','join','downloadPath','getImageUrl','md5HexStr'];_0x81f9=function(){return _0x54069b;};return _0x81f9();}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0x59df8a=!![]){return'';}static[_0x2d2469(0xe4)](){return'';}static[_0x2d2469(0xb6)](_0xdd001f=[_0x2d2469(0xbc),'hotUpdate']){const _0x411e47=_0x2d2469;return napCatCore['session'][_0x411e47(0xa2)]()[_0x411e47(0xd8)](_0xdd001f);}static[_0x2d2469(0xba)](_0x40e734={}){const _0x3e46bc=_0x2d2469;return napCatCore['session'][_0x3e46bc(0xa2)]()['addCacheScanedPaths'](_0x40e734);}static[_0x2d2469(0xd9)](){const _0x40912f=_0x2d2469;return napCatCore['session'][_0x40912f(0xa2)]()['scanCache']();}static[_0x2d2469(0xda)](){return'';}static[_0x2d2469(0xd6)](){return'';}static[_0x2d2469(0x99)](_0x31f3bb,_0x4a6391=0x3e8,_0x25f13b=0x0){const _0x11e55f=_0x2d2469;return napCatCore['session']['getStorageCleanService']()[_0x11e55f(0xd5)](_0x31f3bb,_0x4a6391,0x1,_0x25f13b);}static['getFileCacheInfo'](_0x1bf80b,_0x712333=0x3e8,_0x520564){const _0x35d146=_0x520564?_0x520564:{'fileType':_0x1bf80b};}static async['clearChatCache'](_0x5d465c=[],_0x2f556a=[]){const _0x53197a=_0x2d2469;return napCatCore[_0x53197a(0xc7)][_0x53197a(0xa2)]()[_0x53197a(0xcf)](_0x5d465c,_0x2f556a);}} \ 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 55474c9d..2eaa567d 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x3c2e30=_0x2673;(function(_0x1ebd25,_0x2e26cc){const _0x2250c4=_0x2673,_0x67ff14=_0x1ebd25();while(!![]){try{const _0x4f6741=parseInt(_0x2250c4(0x88))/0x1+parseInt(_0x2250c4(0x8c))/0x2+parseInt(_0x2250c4(0x83))/0x3*(-parseInt(_0x2250c4(0x72))/0x4)+parseInt(_0x2250c4(0x74))/0x5*(parseInt(_0x2250c4(0x7e))/0x6)+-parseInt(_0x2250c4(0x71))/0x7*(parseInt(_0x2250c4(0x84))/0x8)+-parseInt(_0x2250c4(0x78))/0x9*(parseInt(_0x2250c4(0x86))/0xa)+-parseInt(_0x2250c4(0x7b))/0xb*(-parseInt(_0x2250c4(0x7c))/0xc);if(_0x4f6741===_0x2e26cc)break;else _0x67ff14['push'](_0x67ff14['shift']());}catch(_0x4712c3){_0x67ff14['push'](_0x67ff14['shift']());}}}(_0x17b4,0xa9e73));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x2673(_0x272e0f,_0x1ec048){const _0x17b4f0=_0x17b4();return _0x2673=function(_0x26732b,_0x3acf33){_0x26732b=_0x26732b-0x6e;let _0x57603d=_0x17b4f0[_0x26732b];return _0x57603d;},_0x2673(_0x272e0f,_0x1ec048);}import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';function _0x17b4(){const _0x1d5f55=['push','then','VUcuE','获取好友列表超时','friendUid','3577kVMTVE','596DNFIFc','MJSfG','262295bbWTNm','ThHXh','handleFriendRequest','uid','1107OsYiXA','session','getBuddyService','307725bDsjZW','528dOQQex','onBuddyListChange','102gSpqfc','reqTime','获取好友列表完成','UdQjv','addListener','27903QiKJaA','3992iOSCII','buddyList','32420gMyaqs','uin','41339tYLmhO','set','delete','gXlXE','1142970wXgJvM'];_0x17b4=function(){return _0x1d5f55;};return _0x17b4();}const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x3c2e30(0x7d)]=_0x481410=>{const _0x4ddd70=_0x3c2e30,_0x4f33ff={'cpGos':function(_0x1d3e82,_0x1c42b9){return _0x1d3e82(_0x1c42b9);}};for(const [_0x1134ca,_0x3d4b92]of buddyChangeTasks){_0x4f33ff['cpGos'](_0x3d4b92,_0x481410),buddyChangeTasks[_0x4ddd70(0x8a)](_0x1134ca);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x267f62=_0x2673;napCatCore[_0x267f62(0x82)](buddyListener);});},0x64);export class NTQQFriendApi{static async['getFriends'](_0x463ac9=![]){const _0x17849e=_0x3c2e30,_0x44ea8a={'gXlXE':function(_0x2fbbca,_0x385728){return _0x2fbbca(_0x385728);},'UdQjv':'获取好友列表超时','ThHXh':_0x17849e(0x80),'MJSfG':function(_0x4d24e8,_0x5873ef){return _0x4d24e8(_0x5873ef);},'IVFCA':'开始获取好友列表','VUcuE':function(_0x196289,_0x5aa0c2,_0x1ace4e){return _0x196289(_0x5aa0c2,_0x1ace4e);},'ZYwPE':function(_0x3161cc){return _0x3161cc();}};return new Promise((_0x3c4ecd,_0x511540)=>{const _0x28b8af=_0x17849e;let _0x275cc1=![];_0x44ea8a[_0x28b8af(0x6e)](setTimeout,()=>{const _0x467ce9=_0x28b8af;!_0x275cc1&&(_0x44ea8a[_0x467ce9(0x8b)](logDebug,_0x44ea8a[_0x467ce9(0x81)]),_0x44ea8a[_0x467ce9(0x8b)](_0x511540,_0x467ce9(0x6f)));},0x1388);const _0x1a7556=[],_0x10c548=_0x4207ad=>{const _0x20482a=_0x28b8af;for(const _0x4982e7 of _0x4207ad){for(const _0x3abcf4 of _0x4982e7[_0x20482a(0x85)]){_0x1a7556[_0x20482a(0x8d)](_0x3abcf4),uid2UinMap[_0x3abcf4[_0x20482a(0x77)]]=_0x3abcf4[_0x20482a(0x87)];}}_0x275cc1=!![],logDebug(_0x44ea8a[_0x20482a(0x75)],_0x1a7556),_0x44ea8a[_0x20482a(0x73)](_0x3c4ecd,_0x1a7556);};buddyChangeTasks[_0x28b8af(0x89)](_0x44ea8a['ZYwPE'](randomUUID),_0x10c548),napCatCore[_0x28b8af(0x79)][_0x28b8af(0x7a)]()['getBuddyList'](_0x463ac9)[_0x28b8af(0x8e)](_0x389739=>{logDebug(_0x44ea8a['IVFCA'],_0x389739);});});}static async[_0x3c2e30(0x76)](_0x156375,_0x74df93){const _0x1ad834=_0x3c2e30;napCatCore['session'][_0x1ad834(0x7a)]()?.['approvalFriendRequest']({'friendUid':_0x156375[_0x1ad834(0x70)],'reqTime':_0x156375[_0x1ad834(0x7f)],'accept':_0x74df93});}} \ No newline at end of file +const _0x160e60=_0xf4f7;(function(_0x313596,_0x5a7f8a){const _0xd8bc05=_0xf4f7,_0x36beb0=_0x313596();while(!![]){try{const _0x48bc80=-parseInt(_0xd8bc05(0xaa))/0x1+parseInt(_0xd8bc05(0x99))/0x2+-parseInt(_0xd8bc05(0x91))/0x3+parseInt(_0xd8bc05(0xa5))/0x4*(parseInt(_0xd8bc05(0xac))/0x5)+parseInt(_0xd8bc05(0x9e))/0x6*(parseInt(_0xd8bc05(0xa7))/0x7)+parseInt(_0xd8bc05(0x92))/0x8*(parseInt(_0xd8bc05(0xa8))/0x9)+parseInt(_0xd8bc05(0x8f))/0xa*(parseInt(_0xd8bc05(0xa9))/0xb);if(_0x48bc80===_0x5a7f8a)break;else _0x36beb0['push'](_0x36beb0['shift']());}catch(_0x17c980){_0x36beb0['push'](_0x36beb0['shift']());}}}(_0xf23c,0xf10e4));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['onBuddyListChange']=_0x87be7=>{const _0x12dce4=_0xf4f7,_0xa9a52e={'EZuUJ':function(_0x601a00,_0x1ed192){return _0x601a00(_0x1ed192);}};for(const [_0x495cc4,_0x43974c]of buddyChangeTasks){_0xa9a52e[_0x12dce4(0x96)](_0x43974c,_0x87be7),buddyChangeTasks[_0x12dce4(0xa6)](_0x495cc4);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x160e60(0x90)](_0x5449e5=![]){const _0x2202e2=_0x160e60,_0x5c9a8b={'pFyts':function(_0xb0a178,_0x4df831,_0x4c792f){return _0xb0a178(_0x4df831,_0x4c792f);},'kHbyu':'获取好友列表完成','wjhRB':function(_0x952b9d,_0x538773){return _0x952b9d(_0x538773);},'Qlkyf':_0x2202e2(0x9a),'IwEoW':function(_0x223770,_0xbdb9fc,_0x998b44){return _0x223770(_0xbdb9fc,_0x998b44);}};return new Promise((_0x10c5df,_0x362bc9)=>{const _0x41bda5=_0x2202e2,_0x2c0a31={'QkbGS':function(_0x120154,_0x228293){const _0x35a973=_0xf4f7;return _0x5c9a8b[_0x35a973(0x95)](_0x120154,_0x228293);},'xWAIo':_0x41bda5(0x9f),'lHdAy':_0x5c9a8b['Qlkyf']};let _0x296e75=![];_0x5c9a8b[_0x41bda5(0x93)](setTimeout,()=>{const _0x4086e7=_0x41bda5;!_0x296e75&&(_0x2c0a31[_0x4086e7(0x8e)](logDebug,_0x4086e7(0x9f)),_0x362bc9(_0x2c0a31[_0x4086e7(0x97)]));},0x1388);const _0x44ad7f=[],_0x38b3c5=_0x375027=>{const _0x5ebd08=_0x41bda5;for(const _0x4580e2 of _0x375027){for(const _0x525c75 of _0x4580e2[_0x5ebd08(0x94)]){_0x44ad7f['push'](_0x525c75),uid2UinMap[_0x525c75[_0x5ebd08(0xa4)]]=_0x525c75[_0x5ebd08(0xab)];}}_0x296e75=!![],_0x5c9a8b[_0x5ebd08(0xa3)](logDebug,_0x5c9a8b[_0x5ebd08(0x98)],_0x44ad7f),_0x5c9a8b['wjhRB'](_0x10c5df,_0x44ad7f);};buddyChangeTasks[_0x41bda5(0x9d)](randomUUID(),_0x38b3c5),napCatCore[_0x41bda5(0x9b)][_0x41bda5(0xa1)]()[_0x41bda5(0x9c)](_0x5449e5)['then'](_0x53ef0c=>{const _0x4ab0e3=_0x41bda5;logDebug(_0x2c0a31[_0x4ab0e3(0xa2)],_0x53ef0c);});});}static async[_0x160e60(0xad)](_0x124d9e,_0x3a5200){const _0x7e59f6=_0x160e60;napCatCore[_0x7e59f6(0x9b)][_0x7e59f6(0xa1)]()?.['approvalFriendRequest']({'friendUid':_0x124d9e['friendUid'],'reqTime':_0x124d9e[_0x7e59f6(0xa0)],'accept':_0x3a5200});}}function _0xf4f7(_0x31587f,_0x44a9c3){const _0xf23ce3=_0xf23c();return _0xf4f7=function(_0xf4f779,_0x4cfac0){_0xf4f779=_0xf4f779-0x8e;let _0x212a32=_0xf23ce3[_0xf4f779];return _0x212a32;},_0xf4f7(_0x31587f,_0x44a9c3);}function _0xf23c(){const _0x4a6bf8=['IwEoW','buddyList','wjhRB','EZuUJ','xWAIo','kHbyu','232282wFXmBC','开始获取好友列表','session','getBuddyList','set','1603626binkon','获取好友列表超时','reqTime','getBuddyService','lHdAy','pFyts','uid','42452LWTNoD','delete','35pSLRVK','5483331fpnhGF','132TKzKfV','1591797jXVHEf','uin','70ixINCz','handleFriendRequest','QkbGS','1326470wMOawf','getFriends','5496597RxRnJd','16kMezqI'];_0xf23c=function(){return _0x4a6bf8;};return _0xf23c();} \ 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 88ca73e1..3db009e5 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x76843d=_0x9909;(function(_0x2027e6,_0x20d9df){const _0x3ea7fd=_0x9909,_0x3718ee=_0x2027e6();while(!![]){try{const _0x5d2c4e=-parseInt(_0x3ea7fd(0x16b))/0x1*(parseInt(_0x3ea7fd(0x168))/0x2)+parseInt(_0x3ea7fd(0x178))/0x3+-parseInt(_0x3ea7fd(0x14d))/0x4+-parseInt(_0x3ea7fd(0x14a))/0x5+-parseInt(_0x3ea7fd(0x166))/0x6+parseInt(_0x3ea7fd(0x14c))/0x7+parseInt(_0x3ea7fd(0x147))/0x8;if(_0x5d2c4e===_0x20d9df)break;else _0x3718ee['push'](_0x3718ee['shift']());}catch(_0x41826a){_0x3718ee['push'](_0x3718ee['shift']());}}}(_0x4a0b,0x8d095));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';function _0x4a0b(){const _0x4fb0f9=['getGroupNotifies','618042alGtxq','PoGfA','operateSysNotify','1otzxVD','onGroupListUpdate','infos','group','groupMemberList_MainWindow','bFENh','uin','eERqC','type','set','getNextMemberList','nJxVY','result','1584294Ykspsr','modifyMemberRole','session','MPjeH','getPSkey','SvUXr','modifyMemberCardName','获取群列表超时','setMemberRole','hpxmu','banGroup','获取群(','4274304IjygYo','forEach','获取群成员列表出错,','3266725usRIBg','TYZHF','5265743UeyNoX','527884fZgjcV','getGroupService','getGroupList','获取群列表完成','errMsg','finish:\x20','ScyvF','createMemberListScene','publishGroupBulletin','TghyK','iyhjJ','setGroupShutUp','ybMDW','banMember',')成员列表结果:','quitGroup','groupCode','seq','uploadGroupBulletinPic','fjSHC','qun.qq.com','setGroupName','setGroupTitle','onLoginSuccess','addListener','855678VfWCzR'];_0x4a0b=function(){return _0x4fb0f9;};return _0x4a0b();}function _0x9909(_0x2525b9,_0x39d848){const _0x4a0b56=_0x4a0b();return _0x9909=function(_0x9909e4,_0x2b3ed8){_0x9909e4=_0x9909e4-0x143;let _0x48333f=_0x4a0b56[_0x9909e4];return _0x48333f;},_0x9909(_0x2525b9,_0x39d848);}import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x76843d(0x16c)]=(_0x28f691,_0x355763)=>{const _0x4f1d63=_0x76843d,_0x57ec48={'PoGfA':function(_0x1e17d6,_0x3bdd8d,_0x42bcd2){return _0x1e17d6(_0x3bdd8d,_0x42bcd2);}};for(const [_0x27ba36,_0x58ce8d]of groupMemberTasks){_0x57ec48[_0x4f1d63(0x169)](_0x58ce8d,_0x28f691,_0x355763),groupMemberTasks['delete'](_0x27ba36);}},setTimeout(()=>{const _0x4c3842=_0x76843d;napCatCore[_0x4c3842(0x164)](()=>{const _0x5d4074=_0x4c3842;napCatCore[_0x5d4074(0x165)](groupListener);});},0x64);export class NTQQGroupApi{static async['getGroups'](_0xd6cae0=![]){const _0x4882b=_0x76843d,_0x1e060f={'ScyvF':function(_0x4381bb,_0x1db562,_0x2b55e2){return _0x4381bb(_0x1db562,_0x2b55e2);},'fjSHC':function(_0x3557ce,_0x2be4bf){return _0x3557ce(_0x2be4bf);},'SvUXr':_0x4882b(0x17f),'TYZHF':function(_0x67c26d,_0xfab70d){return _0x67c26d(_0xfab70d);},'ybMDW':function(_0x2f176d){return _0x2f176d();}};let _0x357c0a=![];return new Promise((_0x28d492,_0x57c6cb)=>{const _0x4222ac=_0x4882b,_0x4ab19f={'TghyK':_0x1e060f[_0x4222ac(0x17d)],'MPjeH':function(_0x16a306,_0x315cad){const _0x31d82c=_0x4222ac;return _0x1e060f[_0x31d82c(0x14b)](_0x16a306,_0x315cad);}};_0x1e060f[_0x4222ac(0x153)](setTimeout,()=>{const _0x24af76=_0x4222ac;!_0x357c0a&&(logDebug(_0x4ab19f[_0x24af76(0x156)]),_0x4ab19f[_0x24af76(0x17b)](_0x57c6cb,_0x24af76(0x17f)));},0x1388);const _0x2cff59=(_0x2f370e,_0x4e2257)=>{const _0x5dc8b7=_0x4222ac;_0x357c0a=!![],_0x1e060f[_0x5dc8b7(0x153)](logDebug,_0x5dc8b7(0x150),_0x4e2257),_0x1e060f[_0x5dc8b7(0x160)](_0x28d492,_0x4e2257);};groupMemberTasks[_0x4222ac(0x174)](_0x1e060f[_0x4222ac(0x159)](randomUUID),_0x2cff59),napCatCore[_0x4222ac(0x17a)]['getGroupService']()[_0x4222ac(0x14f)](_0xd6cae0)['then']();});}static async['getGroupMembers'](_0x5c3172,_0x2deac0=0xbb8){const _0x15956f=_0x76843d,_0x4f6e13={'nJxVY':_0x15956f(0x16f),'IhJUe':function(_0x2335c4,_0x2b0868){return _0x2335c4!==_0x2b0868;},'HpwDw':function(_0x4aafe6,_0x1ac525,_0x351aea){return _0x4aafe6(_0x1ac525,_0x351aea);}},_0x8e32f8=napCatCore[_0x15956f(0x17a)]['getGroupService'](),_0x53024a=_0x8e32f8[_0x15956f(0x154)](_0x5c3172,_0x4f6e13[_0x15956f(0x176)]),_0x3dae59=await _0x8e32f8[_0x15956f(0x175)](_0x53024a,undefined,_0x2deac0);if(_0x4f6e13['IhJUe'](_0x3dae59['errCode'],0x0))throw _0x15956f(0x149)+_0x3dae59[_0x15956f(0x151)];return _0x4f6e13['HpwDw'](logDebug,_0x15956f(0x146)+_0x5c3172+_0x15956f(0x15b),_0x15956f(0x152)+_0x3dae59[_0x15956f(0x177)]['finish']),_0x3dae59['result'][_0x15956f(0x16d)][_0x15956f(0x148)](_0x1a40e9=>{const _0x1206ef=_0x15956f;uid2UinMap[_0x1a40e9['uid']]=_0x1a40e9[_0x1206ef(0x171)];}),_0x3dae59[_0x15956f(0x177)]['infos'];}static async[_0x76843d(0x167)](){}static async['getGroupIgnoreNotifies'](){}static async[_0x76843d(0x15f)](_0x5ecb78,_0x157f6d){const _0x338830=_0x76843d,_0x39373f={'hpxmu':'qun.qq.com'},_0x4ca8d5=(await NTQQUserApi[_0x338830(0x17c)]([_0x39373f[_0x338830(0x144)]]))[_0x39373f['hpxmu']];return napCatCore[_0x338830(0x17a)][_0x338830(0x14e)]()[_0x338830(0x15f)](_0x5ecb78,_0x4ca8d5,_0x157f6d);}static async['handleGroupRequest'](_0x56cea6,_0x3c2ebc,_0x63f701){const _0x23d236=_0x76843d,_0x56bb9={'eERqC':function(_0x277ac1,_0x5d98b7){return _0x277ac1||_0x5d98b7;}};return napCatCore[_0x23d236(0x17a)]['getGroupService']()[_0x23d236(0x16a)](![],{'operateType':_0x3c2ebc,'targetMsg':{'seq':_0x56cea6[_0x23d236(0x15e)],'type':_0x56cea6[_0x23d236(0x173)],'groupCode':_0x56cea6[_0x23d236(0x16e)][_0x23d236(0x15d)],'postscript':_0x56bb9[_0x23d236(0x172)](_0x63f701,'')}});}static async[_0x76843d(0x15c)](_0x2cdc56){const _0x4d6b66=_0x76843d;return napCatCore[_0x4d6b66(0x17a)][_0x4d6b66(0x14e)]()[_0x4d6b66(0x15c)](_0x2cdc56);}static async['kickMember'](_0x1205a6,_0x45c1cc,_0x5de520=![],_0x27e6a4=''){const _0x598382=_0x76843d;return napCatCore[_0x598382(0x17a)][_0x598382(0x14e)]()['kickMember'](_0x1205a6,_0x45c1cc,_0x5de520,_0x27e6a4);}static async[_0x76843d(0x15a)](_0x78953d,_0x196bf3){const _0x22b2c8=_0x76843d;return napCatCore[_0x22b2c8(0x17a)][_0x22b2c8(0x14e)]()['setMemberShutUp'](_0x78953d,_0x196bf3);}static async[_0x76843d(0x145)](_0x1dcc61,_0x44d877){const _0x418d62=_0x76843d;return napCatCore[_0x418d62(0x17a)]['getGroupService']()[_0x418d62(0x158)](_0x1dcc61,_0x44d877);}static async['setMemberCard'](_0x155f2a,_0x3cd1bf,_0x2a97d3){const _0x5f3e4d=_0x76843d;return napCatCore['session'][_0x5f3e4d(0x14e)]()[_0x5f3e4d(0x17e)](_0x155f2a,_0x3cd1bf,_0x2a97d3);}static async[_0x76843d(0x143)](_0x345011,_0x542636,_0x219e20){const _0x2e96b5=_0x76843d;return napCatCore[_0x2e96b5(0x17a)][_0x2e96b5(0x14e)]()[_0x2e96b5(0x179)](_0x345011,_0x542636,_0x219e20);}static async[_0x76843d(0x162)](_0x58b00a,_0x28a279){const _0x5bf3bf=_0x76843d;return napCatCore[_0x5bf3bf(0x17a)][_0x5bf3bf(0x14e)]()['modifyGroupName'](_0x58b00a,_0x28a279,![]);}static async[_0x76843d(0x163)](_0x38989f,_0x20ad2d,_0x5aa449){}static async[_0x76843d(0x155)](_0x5c2484,_0x189d8d,_0x34fd12=undefined,_0x17e245=0x0,_0x398ed3=0x0){const _0x524a0c=_0x76843d,_0x56a5c2={'bFENh':_0x524a0c(0x161),'iyhjJ':function(_0x2948d5,_0x3e7835){return _0x2948d5(_0x3e7835);}},_0x512ee5=(await NTQQUserApi[_0x524a0c(0x17c)]([_0x56a5c2['bFENh']]))[_0x56a5c2[_0x524a0c(0x170)]];let _0x392209={'text':_0x56a5c2[_0x524a0c(0x157)](encodeURI,_0x189d8d),'picInfo':_0x34fd12,'oldFeedsId':'','pinned':_0x17e245,'confirmRequired':_0x398ed3};return napCatCore[_0x524a0c(0x17a)][_0x524a0c(0x14e)]()[_0x524a0c(0x155)](_0x5c2484,_0x512ee5,_0x392209);}} \ No newline at end of file +const _0x4fc5d9=_0x81d1;(function(_0x1d0742,_0x4ac0c3){const _0x4ebb6f=_0x81d1,_0x1db4e7=_0x1d0742();while(!![]){try{const _0x2ad1b1=-parseInt(_0x4ebb6f(0x9f))/0x1*(parseInt(_0x4ebb6f(0xb4))/0x2)+parseInt(_0x4ebb6f(0xb1))/0x3*(parseInt(_0x4ebb6f(0xa8))/0x4)+-parseInt(_0x4ebb6f(0xa5))/0x5*(parseInt(_0x4ebb6f(0x8e))/0x6)+parseInt(_0x4ebb6f(0x89))/0x7+parseInt(_0x4ebb6f(0xc2))/0x8*(-parseInt(_0x4ebb6f(0x8b))/0x9)+-parseInt(_0x4ebb6f(0xc8))/0xa*(parseInt(_0x4ebb6f(0xa4))/0xb)+-parseInt(_0x4ebb6f(0x9a))/0xc*(-parseInt(_0x4ebb6f(0x8c))/0xd);if(_0x2ad1b1===_0x4ac0c3)break;else _0x1db4e7['push'](_0x1db4e7['shift']());}catch(_0x4e8df0){_0x1db4e7['push'](_0x1db4e7['shift']());}}}(_0x2530,0xcaca7));function _0x81d1(_0x235166,_0x159c23){const _0x2530f0=_0x2530();return _0x81d1=function(_0x81d1a0,_0x4fe2ea){_0x81d1a0=_0x81d1a0-0x82;let _0x217a7e=_0x2530f0[_0x81d1a0];return _0x217a7e;},_0x81d1(_0x235166,_0x159c23);}import{NTQQUserApi,napCatCore}from'@/core';function _0x2530(){const _0x54a5a9=['getNextMemberList','modifyMemberCardName','then','infos','49195VCeJEr','setMemberRole','errMsg','ebzeT','uid','26928FZFzYW','50FacBIy','setGroupName','session','20012zFVgyq','groupMemberList_MainWindow','errCode','QDwrs','WhGWT','banMember','kickMember','forEach','getGroupList','843laqGBw','getGroups','onGroupListUpdate','8jFUqsW','handleGroupRequest','operateSysNotify','Ylebm','set','groupCode','setGroupShutUp','FdRgS','delete','getPSkey','获取群列表完成','获取群列表超时','uploadGroupBulletinPic','modifyGroupName','16WqGeFq','addListener','OPloe','aCWPy','uin','onLoginSuccess','5190JxlgaT','seq','获取群成员列表出错,','finish','getGroupService','qun.qq.com','banGroup','CBJSB','180684IWghHG','result','1170486KvLXhZ','1705587xJQPWd','NlSbb','426246cVXWZC','group','获取群(','setGroupTitle','quitGroup','hjhTi','getGroupMembers','setMemberCard','type','getGroupNotifies','publishGroupBulletin',')成员列表结果:','168jxlsfG'];_0x2530=function(){return _0x54a5a9;};return _0x2530();}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[_0x4fc5d9(0xb3)]=(_0x38daee,_0x5e576e)=>{const _0x41ce40=_0x4fc5d9,_0x20b6e9={'OPloe':function(_0x16422e,_0xa1c2fe,_0x100074){return _0x16422e(_0xa1c2fe,_0x100074);}};for(const [_0x5005b7,_0x581f93]of groupMemberTasks){_0x20b6e9[_0x41ce40(0xc4)](_0x581f93,_0x38daee,_0x5e576e),groupMemberTasks[_0x41ce40(0xbc)](_0x5005b7);}},setTimeout(()=>{const _0xabd96e=_0x4fc5d9;napCatCore[_0xabd96e(0xc7)](()=>{const _0x5be751=_0xabd96e;napCatCore[_0x5be751(0xc3)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x4fc5d9(0xb2)](_0x1d063b=![]){const _0x46505e=_0x4fc5d9,_0x3a68f2={'hjhTi':_0x46505e(0xbf),'Ylebm':function(_0x1b617c,_0xf4649d){return _0x1b617c(_0xf4649d);},'cXYpM':function(_0x93ced1,_0x3e100c,_0x2bcee7){return _0x93ced1(_0x3e100c,_0x2bcee7);},'QDwrs':function(_0x1e6e1b,_0x415d5b){return _0x1e6e1b(_0x415d5b);}};let _0x3a374f=![];return new Promise((_0x326a05,_0x2d3c83)=>{const _0x45b260=_0x46505e,_0x195139={'JKXBi':function(_0x51dc89,_0x247aec,_0xeef88b){return _0x3a68f2['cXYpM'](_0x51dc89,_0x247aec,_0xeef88b);},'hNqHt':_0x45b260(0xbe),'FdRgS':function(_0x120f06,_0x1d327b){const _0x4b6df7=_0x45b260;return _0x3a68f2[_0x4b6df7(0xab)](_0x120f06,_0x1d327b);}};setTimeout(()=>{const _0x3cd1ef=_0x45b260;!_0x3a374f&&(logDebug(_0x3a68f2['hjhTi']),_0x3a68f2[_0x3cd1ef(0xb7)](_0x2d3c83,_0x3a68f2[_0x3cd1ef(0x93)]));},0x1388);const _0x38d12d=(_0x2f882e,_0x30cfae)=>{const _0x86ce2f=_0x45b260;_0x3a374f=!![],_0x195139['JKXBi'](logDebug,_0x195139['hNqHt'],_0x30cfae),_0x195139[_0x86ce2f(0xbb)](_0x326a05,_0x30cfae);};groupMemberTasks[_0x45b260(0xb8)](randomUUID(),_0x38d12d),napCatCore[_0x45b260(0xa7)][_0x45b260(0x85)]()[_0x45b260(0xb0)](_0x1d063b)[_0x45b260(0x9d)]();});}static async[_0x4fc5d9(0x94)](_0x2426c5,_0x19146e=0xbb8){const _0x47d211=_0x4fc5d9,_0x3ba7be={'RmsWG':_0x47d211(0xa9),'WhGWT':function(_0x24683,_0x555286){return _0x24683!==_0x555286;},'ebzeT':_0x47d211(0x83),'hSyQm':function(_0x3cf51a,_0x2deed0,_0x3c2537){return _0x3cf51a(_0x2deed0,_0x3c2537);}},_0x374692=napCatCore[_0x47d211(0xa7)]['getGroupService'](),_0x2064bd=_0x374692['createMemberListScene'](_0x2426c5,_0x3ba7be['RmsWG']),_0x243067=await _0x374692[_0x47d211(0x9b)](_0x2064bd,undefined,_0x19146e);if(_0x3ba7be[_0x47d211(0xac)](_0x243067[_0x47d211(0xaa)],0x0))throw _0x3ba7be[_0x47d211(0xa2)]+_0x243067[_0x47d211(0xa1)];return _0x3ba7be['hSyQm'](logDebug,_0x47d211(0x90)+_0x2426c5+_0x47d211(0x99),'finish:\x20'+_0x243067['result'][_0x47d211(0x84)]),_0x243067[_0x47d211(0x8a)][_0x47d211(0x9e)][_0x47d211(0xaf)](_0x167c08=>{const _0x47120d=_0x47d211;uid2UinMap[_0x167c08[_0x47120d(0xa3)]]=_0x167c08[_0x47120d(0xc6)];}),_0x243067[_0x47d211(0x8a)]['infos'];}static async[_0x4fc5d9(0x97)](){}static async['getGroupIgnoreNotifies'](){}static async[_0x4fc5d9(0xc0)](_0x5be200,_0x253518){const _0x877810=_0x4fc5d9,_0x313408={'aCWPy':_0x877810(0x86)},_0x5cc8d2=(await NTQQUserApi[_0x877810(0xbd)]([_0x313408[_0x877810(0xc5)]]))[_0x313408[_0x877810(0xc5)]];return napCatCore[_0x877810(0xa7)][_0x877810(0x85)]()[_0x877810(0xc0)](_0x5be200,_0x5cc8d2,_0x253518);}static async[_0x4fc5d9(0xb5)](_0x19edea,_0x1ca5a8,_0x134e6c){const _0x1f03c3=_0x4fc5d9,_0x18e89e={'CBJSB':function(_0x39ffc7,_0x933d09){return _0x39ffc7||_0x933d09;}};return napCatCore['session'][_0x1f03c3(0x85)]()[_0x1f03c3(0xb6)](![],{'operateType':_0x1ca5a8,'targetMsg':{'seq':_0x19edea[_0x1f03c3(0x82)],'type':_0x19edea[_0x1f03c3(0x96)],'groupCode':_0x19edea[_0x1f03c3(0x8f)][_0x1f03c3(0xb9)],'postscript':_0x18e89e[_0x1f03c3(0x88)](_0x134e6c,'')}});}static async[_0x4fc5d9(0x92)](_0x5b8125){const _0x4228a1=_0x4fc5d9;return napCatCore['session'][_0x4228a1(0x85)]()[_0x4228a1(0x92)](_0x5b8125);}static async[_0x4fc5d9(0xae)](_0xc57ab3,_0x22cca8,_0x594bd4=![],_0x1c6af2=''){const _0x5b1202=_0x4fc5d9;return napCatCore[_0x5b1202(0xa7)]['getGroupService']()[_0x5b1202(0xae)](_0xc57ab3,_0x22cca8,_0x594bd4,_0x1c6af2);}static async[_0x4fc5d9(0xad)](_0x3ae98f,_0x525f63){const _0x2669c8=_0x4fc5d9;return napCatCore[_0x2669c8(0xa7)][_0x2669c8(0x85)]()['setMemberShutUp'](_0x3ae98f,_0x525f63);}static async[_0x4fc5d9(0x87)](_0x1c7218,_0x28ecb3){const _0x3ec697=_0x4fc5d9;return napCatCore[_0x3ec697(0xa7)][_0x3ec697(0x85)]()[_0x3ec697(0xba)](_0x1c7218,_0x28ecb3);}static async[_0x4fc5d9(0x95)](_0x58f2d5,_0x31def9,_0x1381ab){const _0x5b097c=_0x4fc5d9;return napCatCore[_0x5b097c(0xa7)]['getGroupService']()[_0x5b097c(0x9c)](_0x58f2d5,_0x31def9,_0x1381ab);}static async[_0x4fc5d9(0xa0)](_0x2cee5b,_0x13a4a8,_0x4e5426){const _0x235cad=_0x4fc5d9;return napCatCore[_0x235cad(0xa7)][_0x235cad(0x85)]()['modifyMemberRole'](_0x2cee5b,_0x13a4a8,_0x4e5426);}static async[_0x4fc5d9(0xa6)](_0x23dcfa,_0x411944){const _0x27db81=_0x4fc5d9;return napCatCore[_0x27db81(0xa7)]['getGroupService']()[_0x27db81(0xc1)](_0x23dcfa,_0x411944,![]);}static async[_0x4fc5d9(0x91)](_0x549d22,_0x157158,_0x7b47a8){}static async[_0x4fc5d9(0x98)](_0xd89784,_0x205d25,_0x37f8a0=undefined,_0x3f8d37=0x0,_0xaff523=0x0){const _0x1a8777=_0x4fc5d9,_0x24dfe5={'NlSbb':_0x1a8777(0x86)},_0x38749d=(await NTQQUserApi[_0x1a8777(0xbd)]([_0x24dfe5[_0x1a8777(0x8d)]]))[_0x1a8777(0x86)];let _0x56391f={'text':encodeURI(_0x205d25),'picInfo':_0x37f8a0,'oldFeedsId':'','pinned':_0x3f8d37,'confirmRequired':_0xaff523};return napCatCore['session'][_0x1a8777(0x85)]()[_0x1a8777(0x98)](_0xd89784,_0x38749d,_0x56391f);}} \ 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 b9355339..8c2772be 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x1ce419,_0x27739c){var _0x48cb51=_0x5365,_0x55d201=_0x1ce419();while(!![]){try{var _0x2484ab=parseInt(_0x48cb51(0x85))/0x1+parseInt(_0x48cb51(0x83))/0x2*(-parseInt(_0x48cb51(0x87))/0x3)+-parseInt(_0x48cb51(0x86))/0x4+-parseInt(_0x48cb51(0x82))/0x5*(-parseInt(_0x48cb51(0x84))/0x6)+-parseInt(_0x48cb51(0x8a))/0x7+-parseInt(_0x48cb51(0x89))/0x8*(parseInt(_0x48cb51(0x88))/0x9)+parseInt(_0x48cb51(0x8b))/0xa;if(_0x2484ab===_0x27739c)break;else _0x55d201['push'](_0x55d201['shift']());}catch(_0x3d8849){_0x55d201['push'](_0x55d201['shift']());}}}(_0x3ea7,0x39436));export*from'./file';export*from'./friend';export*from'./group';function _0x3ea7(){var _0x577ed8=['2101128LmhibR','539203GuciDp','6672870JktYvt','5WYMlGK','13362aXPIxX','59466DvsfvL','120158wQBBuO','277892CMGCQp','69SkTQDa','9YHlddV'];_0x3ea7=function(){return _0x577ed8;};return _0x3ea7();}export*from'./msg';export*from'./user';export*from'./webapi';function _0x5365(_0x1dde6a,_0xb5616a){var _0x3ea726=_0x3ea7();return _0x5365=function(_0x53659c,_0x24cf72){_0x53659c=_0x53659c-0x82;var _0x40c21c=_0x3ea726[_0x53659c];return _0x40c21c;},_0x5365(_0x1dde6a,_0xb5616a);}export*from'./sign';export*from'./system'; \ No newline at end of file +function _0x2c17(_0x494391,_0x27c53e){var _0x8892d8=_0x8892();return _0x2c17=function(_0x2c1735,_0x40855c){_0x2c1735=_0x2c1735-0x1f4;var _0x49dd5d=_0x8892d8[_0x2c1735];return _0x49dd5d;},_0x2c17(_0x494391,_0x27c53e);}(function(_0x109c32,_0xc4a49a){var _0x42be19=_0x2c17,_0x2c3c2a=_0x109c32();while(!![]){try{var _0x39ce0f=parseInt(_0x42be19(0x1fe))/0x1*(-parseInt(_0x42be19(0x1f4))/0x2)+parseInt(_0x42be19(0x1f7))/0x3*(-parseInt(_0x42be19(0x1fb))/0x4)+-parseInt(_0x42be19(0x1fc))/0x5*(parseInt(_0x42be19(0x1fa))/0x6)+parseInt(_0x42be19(0x1f5))/0x7+parseInt(_0x42be19(0x1f6))/0x8*(-parseInt(_0x42be19(0x1f8))/0x9)+parseInt(_0x42be19(0x1f9))/0xa*(-parseInt(_0x42be19(0x1fd))/0xb)+parseInt(_0x42be19(0x1ff))/0xc;if(_0x39ce0f===_0xc4a49a)break;else _0x2c3c2a['push'](_0x2c3c2a['shift']());}catch(_0x5204cd){_0x2c3c2a['push'](_0x2c3c2a['shift']());}}}(_0x8892,0xc0eb9));function _0x8892(){var _0x2e2691=['1917846PWkIEo','2531896iLItJC','155175DRYQXz','27GsvByy','30KNCDVL','5082066xjBqnA','12cstfOO','5kfRgvp','1048553lWSlAC','1lWIwsH','43263696pCwccF','1702938bbfwkL'];_0x8892=function(){return _0x2e2691;};return _0x8892();}export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index e1602a3e..df47117d 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x164336=_0x67ec;(function(_0x5ac9cb,_0x3b382b){const _0x288adf=_0x67ec,_0xc44baf=_0x5ac9cb();while(!![]){try{const _0x361d9c=parseInt(_0x288adf(0x219))/0x1*(-parseInt(_0x288adf(0x1f6))/0x2)+-parseInt(_0x288adf(0x1eb))/0x3*(-parseInt(_0x288adf(0x1e6))/0x4)+-parseInt(_0x288adf(0x1fa))/0x5*(-parseInt(_0x288adf(0x20c))/0x6)+-parseInt(_0x288adf(0x1f9))/0x7+-parseInt(_0x288adf(0x1e9))/0x8+-parseInt(_0x288adf(0x21a))/0x9+parseInt(_0x288adf(0x209))/0xa*(parseInt(_0x288adf(0x1ff))/0xb);if(_0x361d9c===_0x3b382b)break;else _0xc44baf['push'](_0xc44baf['shift']());}catch(_0x1d5ed7){_0xc44baf['push'](_0xc44baf['shift']());}}}(_0x1b23,0x94482));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';function _0x67ec(_0x178041,_0x251638){const _0x1b236b=_0x1b23();return _0x67ec=function(_0x67ec15,_0x5b898d){_0x67ec15=_0x67ec15-0x1df;let _0x4e9fd7=_0x1b236b[_0x67ec15];return _0x4e9fd7;},_0x67ec(_0x178041,_0x251638);}import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x1b23(){const _0x5b9724=['HgVJy','PdqPB','getMsgsIncludeSelf','2372556ijojGs','YQdda','onLoginSuccess','3767256EOLzFM','oKqDk','3YbutUo','npBwd','jyHrf','parse','Jgdiz','uXASE','uid','arkElement','senderUid','catch','HOcrh','32218aLPUiv','peerUid','转发消息超时','3690260FthqNx','1356755EbRrcU','lQbMD','msgId','onAddSendMsg','tQbDo','1614602sUDIrO','multiForwardMsg','nick','session','forwardMsg','delete','sendMsg','Oddev','HTnMB','发送超时','170menesW','XSfzz','then','6iqmVIA','set','com.tencent.multimsg','chatType','getMsgsByMsgId','elements','onMsgInfoListUpdate','setMsgEmojiLikes','SViOC','activateChatAndGetHistory','sendStatus','qxBWV','getMultiMsg','59QAFWNT','7235136iXGONz','map','find','getMsgService','getMsgsBySeqAndCount','multiForwardMsgWithComment','recallMsg','forEach','fetchRecentContact','setEmojiLike','qGDGA','setMsgRead'];_0x1b23=function(){return _0x5b9724;};return _0x1b23();}const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x164336(0x1fd)]=_0x333c31=>{const _0x5411d1=_0x164336,_0x5b36bd={'HgVJy':function(_0x2b3b0e,_0x90b4b8){return _0x2b3b0e instanceof _0x90b4b8;}};for(const [_0x4bbbc4,_0x25eaf5]of sentMsgTasks){_0x25eaf5(_0x333c31),sentMsgTasks[_0x5411d1(0x204)](_0x4bbbc4);}if(sendMessagePool[_0x333c31['peerUid']]){const _0x41ba05=sendMessagePool[_0x333c31[_0x5411d1(0x1f7)]]?.(_0x333c31);_0x5b36bd[_0x5411d1(0x1e3)](_0x41ba05,Promise)&&_0x41ba05[_0x5411d1(0x20b)]()[_0x5411d1(0x1f4)](logError);}},msgListener[_0x164336(0x212)]=_0x4a335a=>{const _0x313ebe=_0x164336,_0x2af9c0={'TpeyD':function(_0x2a48d3,_0x4d1ff7){return _0x2a48d3(_0x4d1ff7);},'tQbDo':function(_0x121c85,_0x3b1804){return _0x121c85 instanceof _0x3b1804;}};_0x4a335a[_0x313ebe(0x221)](_0x4d11ce=>{const _0x4cd891=_0x313ebe,_0x2fcfd4={'jyHrf':function(_0x5774cc,_0x32f66d){return _0x2af9c0['TpeyD'](_0x5774cc,_0x32f66d);},'Oddev':function(_0x6af6d2,_0x4adabd){const _0x2d1900=_0x67ec;return _0x2af9c0[_0x2d1900(0x1fe)](_0x6af6d2,_0x4adabd);}};new Promise((_0x7c928f,_0x4ea86f)=>{const _0x31ffc0=_0x67ec;for(const _0x178a9d in sendSuccessCBMap){const _0x5a298d=sendSuccessCBMap[_0x178a9d],_0x1d07d2=_0x2fcfd4[_0x31ffc0(0x1ed)](_0x5a298d,_0x4d11ce),_0x2d490a=_0x2bd559=>{_0x2bd559&&delete sendSuccessCBMap[_0x178a9d];};_0x2fcfd4[_0x31ffc0(0x206)](_0x1d07d2,Promise)?_0x1d07d2[_0x31ffc0(0x20b)](_0x2d490a):_0x2fcfd4['jyHrf'](_0x2d490a,_0x1d07d2);}})['then']()[_0x4cd891(0x1f4)](log);});},setTimeout(()=>{const _0x109ec5=_0x164336;napCatCore[_0x109ec5(0x1e8)](()=>{napCatCore['addListener'](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x164336(0x1e0)](_0xcd94ec,_0x90e38f,_0x1f406a,_0x32959b=!![]){const _0x5d5841=_0x164336,_0x5c946d={'PdqPB':function(_0x2de22d,_0xdbfb2a){return _0x2de22d>_0xdbfb2a;}};return _0x1f406a=_0x1f406a['toString'](),napCatCore['session'][_0x5d5841(0x21d)]()[_0x5d5841(0x213)](_0xcd94ec,_0x90e38f,_0x1f406a,_0x5c946d[_0x5d5841(0x1e4)](_0x1f406a['length'],0x3)?'2':'1',_0x32959b);}static async[_0x164336(0x218)](_0x3ea536,_0x529e65,_0x2f1ec6){const _0x1e064f=_0x164336;return napCatCore['session'][_0x1e064f(0x21d)]()[_0x1e064f(0x218)](_0x3ea536,_0x529e65,_0x2f1ec6);}static async['getMsgsByMsgId'](_0x38dcd0,_0x54f563){const _0x1479a0=_0x164336;return await napCatCore['session'][_0x1479a0(0x21d)]()[_0x1479a0(0x210)](_0x38dcd0,_0x54f563);}static async['getMsgsBySeqAndCount'](_0x226fdf,_0x59ddf4,_0x5a370e,_0x3045a0,_0x20ca1d){const _0xcb5ce=_0x164336;return await napCatCore[_0xcb5ce(0x202)]['getMsgService']()[_0xcb5ce(0x21e)](_0x226fdf,_0x59ddf4,_0x5a370e,_0x3045a0,_0x20ca1d);}static async['activateChat'](_0x128dcf){}static async[_0x164336(0x215)](_0x312c9f){}static async[_0x164336(0x1e2)](_0x123b88){const _0xf9c8c0=_0x164336;return napCatCore['session'][_0xf9c8c0(0x21d)]()[_0xf9c8c0(0x1e2)](_0x123b88);}static async['getMsgHistory'](_0x258172,_0x4b5338,_0x4b32ea){const _0x45c79b=_0x164336;return napCatCore[_0x45c79b(0x202)][_0x45c79b(0x21d)]()[_0x45c79b(0x1e5)](_0x258172,_0x4b5338,_0x4b32ea,!![]);}static async[_0x164336(0x1df)](){}static async[_0x164336(0x220)](_0x4d84ed,_0x462156){const _0x3db827=_0x164336;await napCatCore['session'][_0x3db827(0x21d)]()[_0x3db827(0x220)]({'chatType':_0x4d84ed[_0x3db827(0x20f)],'peerUid':_0x4d84ed[_0x3db827(0x1f7)]},_0x462156);}static async['sendMsg'](_0xd12582,_0x2979ef,_0x1ed060=!![],_0x4f18f0=0x2710){const _0x499fa3=_0x164336,_0x39d536={'npBwd':function(_0x3c37cf,_0x4fd600){return _0x3c37cf>_0x4fd600;},'XSfzz':_0x499fa3(0x208),'Wyfcz':function(_0x32ac8d,_0x2185cd){return _0x32ac8d===_0x2185cd;},'lQbMD':function(_0x3ac5a7,_0x329986){return _0x3ac5a7(_0x329986);},'HTnMB':function(_0x126d8e,_0x3b5e74,_0x191683){return _0x126d8e(_0x3b5e74,_0x191683);}},_0x52ed06=_0xd12582[_0x499fa3(0x1f7)];let _0x4dfd26=0x0;const _0xb0e393=async()=>{const _0x47ad97=_0x499fa3;if(_0x39d536[_0x47ad97(0x1ec)](_0x4dfd26,_0x4f18f0))throw _0x39d536[_0x47ad97(0x20a)];const _0x2c0d48=sendMessagePool[_0xd12582[_0x47ad97(0x1f7)]];if(_0x2c0d48)return await sleep(0x1f4),_0x4dfd26+=0x1f4,await _0xb0e393();else return;};return await _0xb0e393(),new Promise((_0x10ea9e,_0x86f6d9)=>{const _0x45b134=_0x499fa3;let _0x336d98=![],_0x24b131=null;const _0x31686f=randomUUID();sendSuccessCBMap[_0x31686f]=_0x1773ae=>{const _0x43adcb=_0x67ec;if(_0x39d536['Wyfcz'](_0x1773ae[_0x43adcb(0x1fc)],_0x24b131?.[_0x43adcb(0x1fc)])){if(_0x1773ae[_0x43adcb(0x216)]===0x2)return delete sendSuccessCBMap[_0x31686f],_0x336d98=!![],_0x39d536[_0x43adcb(0x1fb)](_0x10ea9e,_0x1773ae),!![];return![];}return![];},sendMessagePool[_0x52ed06]=async _0x412022=>{delete sendMessagePool[_0x52ed06],_0x24b131=_0x412022;},_0x39d536[_0x45b134(0x207)](setTimeout,()=>{const _0x111656=_0x45b134;if(_0x336d98)return;delete sendMessagePool[_0x52ed06],delete sendSuccessCBMap[_0x31686f],_0x39d536[_0x111656(0x1fb)](_0x86f6d9,_0x111656(0x208));},_0x4f18f0);const _0x52478c=napCatCore[_0x45b134(0x202)][_0x45b134(0x21d)]()[_0x45b134(0x205)]('0',_0xd12582,_0x2979ef,new Map());});}static async[_0x164336(0x203)](_0xb358f,_0x5edc7d,_0x12723a){const _0x45b3ab=_0x164336;return napCatCore[_0x45b3ab(0x202)]['getMsgService']()[_0x45b3ab(0x203)](_0x12723a,_0xb358f,[_0x5edc7d],new Map());}static async[_0x164336(0x200)](_0x4257b5,_0x29a79c,_0x10761a){const _0x386202=_0x164336,_0x35508b={'uXASE':function(_0x8bba6a,_0x4c3e77){return _0x8bba6a!=_0x4c3e77;},'Jgdiz':_0x386202(0x20e),'CqErE':function(_0x3a8bab,_0x348a1b){return _0x3a8bab==_0x348a1b;},'nVwxO':function(_0xfb2177,_0x4c9acf){return _0xfb2177(_0x4c9acf);},'RAFpZ':function(_0x53b383,_0x2c6d4d){return _0x53b383(_0x2c6d4d);},'qxBWV':function(_0x59fa5e){return _0x59fa5e();}},_0x121090=_0x10761a[_0x386202(0x21b)](_0x37dd0a=>{const _0x5afe92=_0x386202;return{'msgId':_0x37dd0a,'senderShowName':selfInfo[_0x5afe92(0x201)]};});return new Promise((_0x1d1ac0,_0x423122)=>{const _0x34cb0e=_0x386202,_0x4c1d90={'SViOC':function(_0xccf2d8,_0x2b927c){const _0x225e92=_0x67ec;return _0x35508b[_0x225e92(0x1f0)](_0xccf2d8,_0x2b927c);},'YQdda':_0x35508b[_0x34cb0e(0x1ef)],'oKqDk':function(_0x15aee6,_0x5b6ddf){return _0x35508b['CqErE'](_0x15aee6,_0x5b6ddf);},'qGDGA':function(_0x29c960,_0x441c2e){return _0x35508b['nVwxO'](_0x29c960,_0x441c2e);},'HOcrh':function(_0x4cac69,_0x25985e){return _0x35508b['RAFpZ'](_0x4cac69,_0x25985e);}};let _0x4772bc=![];const _0x352b80=_0x378919=>{const _0x2b401b=_0x34cb0e,_0x59355b=_0x378919[_0x2b401b(0x211)][_0x2b401b(0x21c)](_0x45daa8=>_0x45daa8[_0x2b401b(0x1f2)]);if(!_0x59355b)return;const _0x2671cb=JSON[_0x2b401b(0x1ee)](_0x59355b[_0x2b401b(0x1f2)]['bytesData']);if(_0x4c1d90[_0x2b401b(0x214)](_0x2671cb['app'],_0x4c1d90[_0x2b401b(0x1e7)]))return;_0x4c1d90[_0x2b401b(0x1ea)](_0x378919[_0x2b401b(0x1f7)],_0x29a79c[_0x2b401b(0x1f7)])&&_0x378919[_0x2b401b(0x1f3)]==selfInfo[_0x2b401b(0x1f1)]&&(_0x4772bc=!![],_0x4c1d90[_0x2b401b(0x1e1)](_0x1d1ac0,_0x378919));};sentMsgTasks[_0x34cb0e(0x20d)](_0x35508b[_0x34cb0e(0x217)](randomUUID),_0x352b80),setTimeout(()=>{const _0x2e9882=_0x34cb0e;!_0x4772bc&&_0x4c1d90[_0x2e9882(0x1f5)](_0x423122,_0x2e9882(0x1f8));},0x1388),napCatCore[_0x34cb0e(0x202)][_0x34cb0e(0x21d)]()[_0x34cb0e(0x21f)](_0x121090,_0x4257b5,_0x29a79c,[],new Map());});}} \ No newline at end of file +const _0x3f5823=_0x1858;function _0x46dc(){const _0x183b29=['onMsgInfoListUpdate','setMsgRead','com.tencent.multimsg','nick','VKZEi','getMsgsByMsgId','YAzBQ','scfiG','sendStatus','peerUid','activateChat','1722536EwmGnV','527945RCnpRO','parse','getMsgsBySeqAndCount','msgId','AQkYX','recallMsg','arkElement','ELMFy','getMsgHistory','pxRKw','22932bEnThC','toString','session','getMsgsIncludeSelf','1409943MAizQi','DAzFQ','VEKKo','getMsgService','dXbuz','转发消息超时','YDONm','bytesData','activateChatAndGetHistory','JSzng','multiForwardMsgWithComment','uid','onLoginSuccess','401766jqWxdh','DiHtL','then','579781XEhbqi','jrxUr','app','vZYdj','HEWdN','senderUid','nrRyh','setMsgEmojiLikes','addListener','XlCfW','AmDOZ','chatType','UcwmX','tWNIJ','sniOT','vfsWY','forEach','1001OXTyJA','catch','LXkac','sendMsg','getMultiMsg','10103568FwAbBv','multiForwardMsg'];_0x46dc=function(){return _0x183b29;};return _0x46dc();}(function(_0x3d7fa9,_0x35dea4){const _0x4fac30=_0x1858,_0x333e3a=_0x3d7fa9();while(!![]){try{const _0x2e4efa=-parseInt(_0x4fac30(0x1c3))/0x1+parseInt(_0x4fac30(0x1c0))/0x2+-parseInt(_0x4fac30(0x1f5))/0x3+parseInt(_0x4fac30(0x1e6))/0x4+parseInt(_0x4fac30(0x1e7))/0x5+parseInt(_0x4fac30(0x1f1))/0x6*(-parseInt(_0x4fac30(0x1d4))/0x7)+parseInt(_0x4fac30(0x1d9))/0x8;if(_0x2e4efa===_0x35dea4)break;else _0x333e3a['push'](_0x333e3a['shift']());}catch(_0x333388){_0x333e3a['push'](_0x333e3a['shift']());}}}(_0x46dc,0x62920));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';function _0x1858(_0x1274f5,_0x398186){const _0x46dcea=_0x46dc();return _0x1858=function(_0x185819,_0x45ca22){_0x185819=_0x185819-0x1b6;let _0x485d94=_0x46dcea[_0x185819];return _0x485d94;},_0x1858(_0x1274f5,_0x398186);}import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0x2d65e7=>{const _0x51887b=_0x1858,_0x5722de={'sniOT':function(_0x46f591,_0x1c874c){return _0x46f591(_0x1c874c);},'JYYXF':function(_0x295d1f,_0x21717c){return _0x295d1f instanceof _0x21717c;}};for(const [_0x25043a,_0x4d8de1]of sentMsgTasks){_0x5722de[_0x51887b(0x1d1)](_0x4d8de1,_0x2d65e7),sentMsgTasks['delete'](_0x25043a);}if(sendMessagePool[_0x2d65e7['peerUid']]){const _0x1f595b=sendMessagePool[_0x2d65e7['peerUid']]?.(_0x2d65e7);_0x5722de['JYYXF'](_0x1f595b,Promise)&&_0x1f595b['then']()[_0x51887b(0x1d5)](logError);}},msgListener[_0x3f5823(0x1db)]=_0x39f471=>{const _0x22443e=_0x3f5823,_0x23cfb4={'kPkkg':function(_0x1070c7,_0x1eebfe){return _0x1070c7(_0x1eebfe);},'tWNIJ':function(_0x4378d2,_0x23eb33){return _0x4378d2(_0x23eb33);}};_0x39f471[_0x22443e(0x1d3)](_0x52bad8=>{const _0x6a25e4=_0x22443e,_0x23eacd={'jrxUr':function(_0x563d53,_0x3474aa){return _0x23cfb4['kPkkg'](_0x563d53,_0x3474aa);},'vfsWY':function(_0x4fcf69,_0xfc21bc){const _0x23d7a8=_0x1858;return _0x23cfb4[_0x23d7a8(0x1d0)](_0x4fcf69,_0xfc21bc);}};new Promise((_0x38074e,_0x27a374)=>{const _0x187afa=_0x1858;for(const _0x4ddf17 in sendSuccessCBMap){const _0x5f4c3e=sendSuccessCBMap[_0x4ddf17],_0x52530f=_0x23eacd[_0x187afa(0x1c4)](_0x5f4c3e,_0x52bad8),_0x7f9423=_0x37e108=>{_0x37e108&&delete sendSuccessCBMap[_0x4ddf17];};_0x52530f instanceof Promise?_0x52530f['then'](_0x7f9423):_0x23eacd[_0x187afa(0x1d2)](_0x7f9423,_0x52530f);}})[_0x6a25e4(0x1c2)]()[_0x6a25e4(0x1d5)](log);});},setTimeout(()=>{const _0x4f9073=_0x3f5823;napCatCore[_0x4f9073(0x1bf)](()=>{const _0x20ff50=_0x4f9073;napCatCore[_0x20ff50(0x1cb)](msgListener);});},0x64);export class NTQQMsgApi{static async['setEmojiLike'](_0xa47540,_0x137e1e,_0x4adb8e,_0x2e9207=!![]){const _0x2b5032=_0x3f5823,_0xd10205={'pxRKw':function(_0x1ddbb2,_0x2d1fd6){return _0x1ddbb2>_0x2d1fd6;}};return _0x4adb8e=_0x4adb8e[_0x2b5032(0x1f2)](),napCatCore['session'][_0x2b5032(0x1b6)]()[_0x2b5032(0x1ca)](_0xa47540,_0x137e1e,_0x4adb8e,_0xd10205[_0x2b5032(0x1f0)](_0x4adb8e['length'],0x3)?'2':'1',_0x2e9207);}static async[_0x3f5823(0x1d8)](_0x57b639,_0x57fc6e,_0x21cd2c){const _0x3228c9=_0x3f5823;return napCatCore[_0x3228c9(0x1f3)][_0x3228c9(0x1b6)]()['getMultiMsg'](_0x57b639,_0x57fc6e,_0x21cd2c);}static async[_0x3f5823(0x1e0)](_0x1620e3,_0x2d6bdf){const _0x4e3d49=_0x3f5823;return await napCatCore['session'][_0x4e3d49(0x1b6)]()[_0x4e3d49(0x1e0)](_0x1620e3,_0x2d6bdf);}static async[_0x3f5823(0x1e9)](_0xdeb07a,_0x35cd9d,_0x4a08b8,_0x3d43e1,_0x1aaca8){const _0x33eb22=_0x3f5823;return await napCatCore[_0x33eb22(0x1f3)][_0x33eb22(0x1b6)]()[_0x33eb22(0x1e9)](_0xdeb07a,_0x35cd9d,_0x4a08b8,_0x3d43e1,_0x1aaca8);}static async[_0x3f5823(0x1e5)](_0x1c20d1){}static async[_0x3f5823(0x1bb)](_0x287a6a){}static async[_0x3f5823(0x1dc)](_0x38306d){const _0xca140a=_0x3f5823;return napCatCore[_0xca140a(0x1f3)][_0xca140a(0x1b6)]()[_0xca140a(0x1dc)](_0x38306d);}static async[_0x3f5823(0x1ef)](_0x433bbb,_0x24413a,_0x3a492c){const _0x56c95a=_0x3f5823;return napCatCore['session'][_0x56c95a(0x1b6)]()[_0x56c95a(0x1f4)](_0x433bbb,_0x24413a,_0x3a492c,!![]);}static async['fetchRecentContact'](){}static async[_0x3f5823(0x1ec)](_0x30d1f7,_0x222cc9){const _0x62467d=_0x3f5823;await napCatCore[_0x62467d(0x1f3)][_0x62467d(0x1b6)]()[_0x62467d(0x1ec)]({'chatType':_0x30d1f7[_0x62467d(0x1ce)],'peerUid':_0x30d1f7[_0x62467d(0x1e4)]},_0x222cc9);}static async[_0x3f5823(0x1d7)](_0x511768,_0x5e32bf,_0x3c4882=!![],_0x419986=0x2710){const _0x2b92ea=_0x3f5823,_0x533853={'XlCfW':function(_0x108022,_0x5ed224){return _0x108022>_0x5ed224;},'JSzng':'发送超时','HEWdN':function(_0x211a01,_0xf9d4bc){return _0x211a01(_0xf9d4bc);},'nrRyh':function(_0x5b12f6){return _0x5b12f6();},'VKZEi':function(_0x1c0168,_0x38c672){return _0x1c0168(_0x38c672);},'UcwmX':function(_0x4c882e,_0x2deca7){return _0x4c882e===_0x2deca7;},'XesdB':function(_0xfca957,_0x690772,_0x4d2281){return _0xfca957(_0x690772,_0x4d2281);}},_0x50a2e1=_0x511768[_0x2b92ea(0x1e4)];let _0x2194a7=0x0;const _0x372a12=async()=>{const _0x1e27c4=_0x2b92ea;if(_0x533853[_0x1e27c4(0x1cc)](_0x2194a7,_0x419986))throw _0x533853[_0x1e27c4(0x1bc)];const _0x5d22b8=sendMessagePool[_0x511768['peerUid']];if(_0x5d22b8)return await _0x533853[_0x1e27c4(0x1c7)](sleep,0x1f4),_0x2194a7+=0x1f4,await _0x533853['nrRyh'](_0x372a12);else return;};return await _0x533853[_0x2b92ea(0x1c9)](_0x372a12),new Promise((_0x24dbbc,_0x23c74d)=>{const _0x3dc5af=_0x2b92ea,_0x4e134d={'dXbuz':function(_0x24990a,_0x510dc6){const _0x2616cb=_0x1858;return _0x533853[_0x2616cb(0x1cf)](_0x24990a,_0x510dc6);},'VEKKo':function(_0x4b5282,_0x50c095){const _0x53a278=_0x1858;return _0x533853[_0x53a278(0x1c7)](_0x4b5282,_0x50c095);}};let _0x486aeb=![],_0x3f75c4=null;const _0x5abb83=_0x533853[_0x3dc5af(0x1c9)](randomUUID);sendSuccessCBMap[_0x5abb83]=_0x14f3db=>{const _0x5b63a1=_0x3dc5af;if(_0x14f3db[_0x5b63a1(0x1ea)]===_0x3f75c4?.[_0x5b63a1(0x1ea)]){if(_0x4e134d[_0x5b63a1(0x1b7)](_0x14f3db[_0x5b63a1(0x1e3)],0x2))return delete sendSuccessCBMap[_0x5abb83],_0x486aeb=!![],_0x4e134d[_0x5b63a1(0x1f7)](_0x24dbbc,_0x14f3db),!![];return![];}return![];},sendMessagePool[_0x50a2e1]=async _0x460f71=>{delete sendMessagePool[_0x50a2e1],_0x3f75c4=_0x460f71;},_0x533853['XesdB'](setTimeout,()=>{const _0x1d9ae3=_0x3dc5af;if(_0x486aeb)return;delete sendMessagePool[_0x50a2e1],delete sendSuccessCBMap[_0x5abb83],_0x533853[_0x1d9ae3(0x1df)](_0x23c74d,_0x533853[_0x1d9ae3(0x1bc)]);},_0x419986);const _0xe0e2dc=napCatCore[_0x3dc5af(0x1f3)][_0x3dc5af(0x1b6)]()[_0x3dc5af(0x1d7)]('0',_0x511768,_0x5e32bf,new Map());});}static async['forwardMsg'](_0x5d76cd,_0x3a943c,_0x31d534){const _0x5e3edd=_0x3f5823;return napCatCore['session'][_0x5e3edd(0x1b6)]()['forwardMsg'](_0x31d534,_0x5d76cd,[_0x3a943c],new Map());}static async[_0x3f5823(0x1da)](_0x56e090,_0x395e16,_0x4a0949){const _0x2215ac=_0x3f5823,_0x2964e6={'AQkYX':function(_0x3e650e,_0x38b416){return _0x3e650e!=_0x38b416;},'eShzF':_0x2215ac(0x1dd),'LXkac':function(_0x4381ad,_0x474723){return _0x4381ad==_0x474723;},'YAzBQ':function(_0x2a18e5,_0x277ac4){return _0x2a18e5==_0x277ac4;},'vZYdj':_0x2215ac(0x1b8),'YDONm':function(_0x343a6f){return _0x343a6f();},'dbgaY':function(_0x4972da,_0xa2c0eb,_0x265215){return _0x4972da(_0xa2c0eb,_0x265215);}},_0x55d727=_0x4a0949['map'](_0x3b775a=>{const _0x1703d7=_0x2215ac;return{'msgId':_0x3b775a,'senderShowName':selfInfo[_0x1703d7(0x1de)]};});return new Promise((_0x14ff69,_0x1b20d8)=>{const _0x5dc4da=_0x2215ac,_0x40c8aa={'DiHtL':function(_0x477609,_0x34c0d5){const _0x1600fa=_0x1858;return _0x2964e6[_0x1600fa(0x1eb)](_0x477609,_0x34c0d5);},'DAzFQ':_0x2964e6['eShzF'],'scfiG':function(_0xab8922,_0x4d159b){const _0x56f810=_0x1858;return _0x2964e6[_0x56f810(0x1d6)](_0xab8922,_0x4d159b);},'ELMFy':function(_0x5337eb,_0x5d4083){const _0x3bd290=_0x1858;return _0x2964e6[_0x3bd290(0x1e1)](_0x5337eb,_0x5d4083);},'AmDOZ':function(_0x1446b9,_0xc9bb88){return _0x1446b9(_0xc9bb88);},'fjgkP':_0x2964e6[_0x5dc4da(0x1c6)]};let _0xa2cd9=![];const _0x436a5d=_0x10566f=>{const _0x20a4fc=_0x5dc4da,_0x220568=_0x10566f['elements']['find'](_0x49853b=>_0x49853b[_0x20a4fc(0x1ed)]);if(!_0x220568)return;const _0x216b12=JSON[_0x20a4fc(0x1e8)](_0x220568[_0x20a4fc(0x1ed)][_0x20a4fc(0x1ba)]);if(_0x40c8aa[_0x20a4fc(0x1c1)](_0x216b12[_0x20a4fc(0x1c5)],_0x40c8aa[_0x20a4fc(0x1f6)]))return;_0x40c8aa[_0x20a4fc(0x1e2)](_0x10566f[_0x20a4fc(0x1e4)],_0x395e16[_0x20a4fc(0x1e4)])&&_0x40c8aa[_0x20a4fc(0x1ee)](_0x10566f[_0x20a4fc(0x1c8)],selfInfo[_0x20a4fc(0x1be)])&&(_0xa2cd9=!![],_0x40c8aa[_0x20a4fc(0x1cd)](_0x14ff69,_0x10566f));};sentMsgTasks['set'](_0x2964e6[_0x5dc4da(0x1b9)](randomUUID),_0x436a5d),_0x2964e6['dbgaY'](setTimeout,()=>{!_0xa2cd9&&_0x1b20d8(_0x40c8aa['fjgkP']);},0x1388),napCatCore[_0x5dc4da(0x1f3)][_0x5dc4da(0x1b6)]()[_0x5dc4da(0x1bd)](_0x55d727,_0x56e090,_0x395e16,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/system.js b/src/core.lib/src/apis/system.js index 79862983..278d8e2a 100644 --- a/src/core.lib/src/apis/system.js +++ b/src/core.lib/src/apis/system.js @@ -1 +1 @@ -(function(_0x45f63d,_0x1b96c2){var _0x27a84d=_0x4af0,_0x3bb1e9=_0x45f63d();while(!![]){try{var _0x492ff6=-parseInt(_0x27a84d(0x16f))/0x1+-parseInt(_0x27a84d(0x164))/0x2*(parseInt(_0x27a84d(0x166))/0x3)+-parseInt(_0x27a84d(0x165))/0x4*(parseInt(_0x27a84d(0x168))/0x5)+parseInt(_0x27a84d(0x170))/0x6+parseInt(_0x27a84d(0x16a))/0x7+parseInt(_0x27a84d(0x16e))/0x8*(parseInt(_0x27a84d(0x16d))/0x9)+parseInt(_0x27a84d(0x16c))/0xa*(-parseInt(_0x27a84d(0x169))/0xb);if(_0x492ff6===_0x1b96c2)break;else _0x3bb1e9['push'](_0x3bb1e9['shift']());}catch(_0x2b31f6){_0x3bb1e9['push'](_0x3bb1e9['shift']());}}}(_0x31ed,0x552bd));function _0x4af0(_0x26646e,_0x1fec93){var _0x31edba=_0x31ed();return _0x4af0=function(_0x4af0a1,_0x160484){_0x4af0a1=_0x4af0a1-0x164;var _0x1326df=_0x31edba[_0x4af0a1];return _0x1326df;},_0x4af0(_0x26646e,_0x1fec93);}import{napCatCore}from'@/core';export class NTQQSystemApi{static async['hasOtherRunningQQProcess'](){var _0x59f319=_0x4af0;return napCatCore[_0x59f319(0x16b)][_0x59f319(0x167)]();}}function _0x31ed(){var _0x1740b6=['870hOgOeh','18rKWnsq','1547800fWTtcT','83525WtHEMT','3611556USwSbW','578742gXuufk','607672zJIOkr','3TjZtOY','hasOtherRunningQQProcess','10zzNBqi','15026wiSQuE','1088913hwLzNI','util'];_0x31ed=function(){return _0x1740b6;};return _0x31ed();} \ No newline at end of file +var _0x3626ff=_0x43a4;function _0x43a4(_0x4fd82c,_0x61d320){var _0x8337a9=_0x8337();return _0x43a4=function(_0x43a4d2,_0x274b3b){_0x43a4d2=_0x43a4d2-0x162;var _0x1b68b1=_0x8337a9[_0x43a4d2];return _0x1b68b1;},_0x43a4(_0x4fd82c,_0x61d320);}(function(_0x5e2cfa,_0x1ad495){var _0x3fdb7b=_0x43a4,_0x224e03=_0x5e2cfa();while(!![]){try{var _0x299c85=parseInt(_0x3fdb7b(0x16b))/0x1*(parseInt(_0x3fdb7b(0x169))/0x2)+parseInt(_0x3fdb7b(0x16f))/0x3+-parseInt(_0x3fdb7b(0x16e))/0x4*(-parseInt(_0x3fdb7b(0x166))/0x5)+-parseInt(_0x3fdb7b(0x163))/0x6+-parseInt(_0x3fdb7b(0x16d))/0x7*(-parseInt(_0x3fdb7b(0x162))/0x8)+parseInt(_0x3fdb7b(0x167))/0x9*(-parseInt(_0x3fdb7b(0x16c))/0xa)+parseInt(_0x3fdb7b(0x165))/0xb*(parseInt(_0x3fdb7b(0x16a))/0xc);if(_0x299c85===_0x1ad495)break;else _0x224e03['push'](_0x224e03['shift']());}catch(_0x242cb3){_0x224e03['push'](_0x224e03['shift']());}}}(_0x8337,0x1e3a1));import{napCatCore}from'@/core';function _0x8337(){var _0x45e8b9=['2401780qhkggc','7wtJjmZ','10852sHwjXP','227469CeJrUL','830432qRVFOT','1374120VQRnYN','hasOtherRunningQQProcess','33HgUejz','5OnYkzX','9fTgjYn','util','1890DRoNiS','826188usJCaX','216brUoQl'];_0x8337=function(){return _0x45e8b9;};return _0x8337();}export class NTQQSystemApi{static async[_0x3626ff(0x164)](){var _0xa51501=_0x3626ff;return napCatCore[_0xa51501(0x168)][_0xa51501(0x164)]();}} \ No newline at end of file diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index cb0be989..c9c4e27c 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -function _0x12f5(){const _0x58c0d6=['8pVApuH','getSelfInfo','uin','BviaD','rrlat','fromEntries','then','IfmHz','addListener','QuXnd','rKaKK','hOqNK','请求获取Skey时失败','keyIndex','318180qARfVQ','skey','getPSkey','get','CreatTime','getSkey','getPskey','30syjANy','825975ZyUWIm','getTicketService','getRobotUinRange','push','setStatus','setQQAvatar','bNuKJ','assign','THBxV','getUserDetailInfo\x20timeout','PskeyData','361827Muuwji','getProfileLikeService','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','uVEhm','getUserDetailInfo','response','176XzkCcW','setHeader','session','AaBWH','getTipOffService','12OUlAHo','sCkFP','2276085oaiQSv','MtELk','errMsg','1463ebDufK','set','3234616nTsOsx','Skey','HttpsGetCookies','1018lbweZo','clientKey','result','now','length','RciqI','1628949WGpZIO','robotUinRanges','PskeyTime','getProfileService','uid','AUkCw','HPpNP','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','UBqkM','domainPskeyMap','setSelfOnlineStatus'];_0x12f5=function(){return _0x58c0d6;};return _0x12f5();}const _0x1a662b=_0x31a9;(function(_0x4ac19b,_0x28609c){const _0xcd7bf5=_0x31a9,_0x44f490=_0x4ac19b();while(!![]){try{const _0x585c47=-parseInt(_0xcd7bf5(0xc9))/0x1*(parseInt(_0xcd7bf5(0xce))/0x2)+parseInt(_0xcd7bf5(0xf5))/0x3*(parseInt(_0xcd7bf5(0xdf))/0x4)+parseInt(_0xcd7bf5(0x10d))/0x5+-parseInt(_0xcd7bf5(0x10b))/0x6*(parseInt(_0xcd7bf5(0xd4))/0x7)+parseInt(_0xcd7bf5(0xcb))/0x8+-parseInt(_0xcd7bf5(0x100))/0x9*(parseInt(_0xcd7bf5(0xf4))/0xa)+parseInt(_0xcd7bf5(0x106))/0xb*(parseInt(_0xcd7bf5(0xed))/0xc);if(_0x585c47===_0x28609c)break;else _0x44f490['push'](_0x44f490['shift']());}catch(_0x31086f){_0x44f490['push'](_0x44f490['shift']());}}}(_0x12f5,0x7afc0));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x31a9(_0x4b1799,_0x1a6c9b){const _0x12f598=_0x12f5();return _0x31a9=function(_0x31a9dd,_0x37ea6c){_0x31a9dd=_0x31a9dd-0xc7;let _0x23af02=_0x12f598[_0x31a9dd];return _0x23af02;},_0x31a9(_0x4b1799,_0x1a6c9b);}import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener['onProfileDetailInfoChanged']=_0x8726b4=>{const _0x2175ff=_0x31a9;userInfoCache[_0x8726b4[_0x2175ff(0xd8)]]=_0x8726b4,userDetailHandlers['forEach'](_0x43ff89=>_0x43ff89(_0x8726b4));},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x212ebf=_0x31a9;napCatCore[_0x212ebf(0xe7)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x1a662b(0xde)](_0x12452f,_0x399d1d,_0x334647){const _0x22a3d3=_0x1a662b;return napCatCore[_0x22a3d3(0x108)]['getMsgService']()[_0x22a3d3(0xf9)]({'status':_0x12452f,'extStatus':_0x399d1d,'batteryStatus':_0x334647});}static async['like'](_0x4435aa,_0x113bda=0x1){const _0x2e422e=_0x1a662b;return napCatCore[_0x2e422e(0x108)][_0x2e422e(0x101)]()['setBuddyProfileLike']({'friendUid':_0x4435aa,'sourceId':0x47,'doLikeCount':_0x113bda,'doLikeTollCount':0x0});}static async[_0x1a662b(0xfa)](_0x488219){const _0x2d953e=_0x1a662b,_0x4aeb1d=napCatCore['session'][_0x2d953e(0xd7)]()[_0x2d953e(0x107)](_0x488219);return{'result':_0x4aeb1d?.[_0x2d953e(0xd0)],'errMsg':_0x4aeb1d?.[_0x2d953e(0xc8)]};}static async[_0x1a662b(0xe0)](){}static async['getUserInfo'](_0x2e6776){}static async[_0x1a662b(0x104)](_0x315445){const _0x15aee2=_0x1a662b,_0xcf1f1d={'oRNNj':function(_0x4927c2,_0x1d5b88){return _0x4927c2(_0x1d5b88);},'HPpNP':_0x15aee2(0xfe),'RciqI':function(_0x599a76,_0x1574cd){return _0x599a76===_0x1574cd;},'hOqNK':function(_0x4e6a28,_0x9d4b55){return _0x4e6a28(_0x9d4b55);},'rKaKK':function(_0x3b7f35,_0x19a19d,_0x1ed798){return _0x3b7f35(_0x19a19d,_0x1ed798);}},_0x5d9136=napCatCore[_0x15aee2(0x108)][_0x15aee2(0xd7)]();return new Promise((_0x24d7f7,_0x18396f)=>{const _0xfcd87c=_0x15aee2,_0x1258c8=randomUUID();let _0x4a0022=![];_0xcf1f1d[_0xfcd87c(0xe9)](setTimeout,()=>{const _0x15867=_0xfcd87c;!_0x4a0022&&_0xcf1f1d['oRNNj'](_0x18396f,_0xcf1f1d[_0x15867(0xda)]);},0x1388),userDetailHandlers[_0xfcd87c(0xca)](_0x1258c8,_0x3ec37c=>{const _0x58e30a=_0xfcd87c;_0xcf1f1d[_0x58e30a(0xd3)](_0x3ec37c['uid'],_0x315445)&&(_0x4a0022=!![],userDetailHandlers['delete'](_0x1258c8),uid2UinMap[_0x315445]=_0x3ec37c[_0x58e30a(0xe1)],_0xcf1f1d[_0x58e30a(0xea)](_0x24d7f7,_0x3ec37c));}),_0x5d9136['getUserDetailInfoWithBizInfo'](_0x315445,[0x0])[_0xfcd87c(0xe5)](_0x431809=>{});});}static async[_0x1a662b(0xef)](_0x542321,_0x40bb91=!![]){const _0x5683a3=_0x1a662b,_0x1dc861={'rrlat':function(_0x48cd70,_0x4092cf){return _0x48cd70||_0x4092cf;},'MtELk':function(_0x50cb93,_0x141bd5){return _0x50cb93>_0x141bd5;},'bNuKJ':function(_0x3fc626,_0x6e36b1){return _0x3fc626*_0x6e36b1;},'QuXnd':function(_0x5cf7d3,_0x1c1be7){return _0x5cf7d3===_0x1c1be7;},'IfmHz':function(_0x2d8e05,_0x2e8a04,_0x483190){return _0x2d8e05(_0x2e8a04,_0x483190);},'sZMrV':'获取Pskey失败'},_0x69a630=[],_0x408a8d={};for(const _0x5a922a in _0x542321){const _0x2938cb=Credentials[_0x5683a3(0xff)][_0x5683a3(0xf0)](_0x542321[_0x5a922a]),_0x2c4823=Credentials[_0x5683a3(0xd6)][_0x5683a3(0xf0)](_0x542321[_0x5a922a]);_0x1dc861[_0x5683a3(0xe3)](!_0x2938cb,!_0x2c4823)||_0x1dc861[_0x5683a3(0xc7)](Date['now']()-_0x2c4823,_0x1dc861[_0x5683a3(0xfb)](0x708,0x3e8))||!_0x40bb91?_0x69a630[_0x5683a3(0xf8)](_0x542321[_0x5a922a]):_0x408a8d[_0x542321[_0x5a922a]]=_0x2938cb;}let _0x43749b={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x1dc861['MtELk'](_0x69a630[_0x5683a3(0xd2)],0x0)&&(_0x43749b=await napCatCore['session'][_0x5683a3(0x10a)]()[_0x5683a3(0xf3)](_0x69a630,!![]));const _0x187dff=_0x43749b[_0x5683a3(0xdd)];for(const _0x3be8dd of _0x187dff['entries']()){Credentials[_0x5683a3(0xff)]['set'](_0x3be8dd[0x0],_0x3be8dd[0x1]),Credentials[_0x5683a3(0xd6)][_0x5683a3(0xca)](_0x3be8dd[0x0],Date[_0x5683a3(0xd1)]());}const _0xd3245a=Object[_0x5683a3(0xfc)](Object[_0x5683a3(0xe4)](_0x187dff),_0x408a8d);if(_0x1dc861[_0x5683a3(0xe8)](_0x43749b[_0x5683a3(0xd0)],0x0))return _0xd3245a;else _0x1dc861[_0x5683a3(0xe6)](logError,_0x1dc861['sZMrV'],_0x43749b['errMsg']);return{};}static async[_0x1a662b(0xf7)](){const _0x56fc6e=_0x1a662b,_0x4328ef=await napCatCore[_0x56fc6e(0x108)]['getRobotService']()[_0x56fc6e(0xf7)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x4328ef?.[_0x56fc6e(0x105)]?.[_0x56fc6e(0xd5)];}static async[_0x1a662b(0xf2)](_0x3eb135=!![]){const _0x21d057=_0x1a662b,_0x4416c6={'KpzSP':function(_0x88b3b0,_0x928dac){return _0x88b3b0==_0x928dac;},'dafeG':function(_0x581ecf,_0x4af6ec){return _0x581ecf-_0x4af6ec;},'BviaD':function(_0x2a751d,_0x30a07a){return _0x2a751d!==_0x30a07a;},'AaBWH':function(_0xe7ec4,_0x3d76a5){return _0xe7ec4+_0x3d76a5;},'UBqkM':function(_0x1f0eec,_0x3ad4fe){return _0x1f0eec+_0x3ad4fe;},'AUkCw':function(_0x39467b,_0x2a3965){return _0x39467b+_0x2a3965;},'sCkFP':_0x21d057(0x102),'uVEhm':function(_0x5ceda3,_0x32f59c,_0x22c901){return _0x5ceda3(_0x32f59c,_0x22c901);},'CYecL':_0x21d057(0xeb),'THBxV':_0x21d057(0xee)};try{if(_0x4416c6['KpzSP'](Credentials[_0x21d057(0xf1)],0x0)||_0x4416c6['dafeG'](Date[_0x21d057(0xd1)](),Credentials[_0x21d057(0xf1)])>0x3e8*0xe10||!_0x3eb135){const _0x4a899f=await napCatCore[_0x21d057(0x108)][_0x21d057(0xf6)]()['forceFetchClientKey']('');if(_0x4416c6[_0x21d057(0xe2)](_0x4a899f[_0x21d057(0xd0)],0x0))return'';const _0x38dcdd=_0x4a899f[_0x21d057(0xcf)],_0x48d470=_0x4a899f[_0x21d057(0xec)],_0x1b48b4=_0x4416c6['AaBWH'](_0x4416c6[_0x21d057(0x109)](_0x4416c6[_0x21d057(0xdc)](_0x4416c6[_0x21d057(0xd9)](_0x21d057(0xdb),selfInfo['uin']),'&clientkey='),_0x38dcdd),_0x4416c6[_0x21d057(0x10c)])+_0x48d470;let _0x418e04;try{_0x418e04=await RequestUtil[_0x21d057(0xcd)](_0x1b48b4);}catch(_0x133f86){_0x4416c6[_0x21d057(0x103)](logDebug,_0x4416c6['CYecL'],_0x133f86),_0x418e04=new Map();}const _0x59721a=_0x418e04[_0x21d057(0xf0)](_0x4416c6[_0x21d057(0xfd)]);if(!_0x59721a)return'';return Credentials[_0x21d057(0xf1)]=Date[_0x21d057(0xd1)](),Credentials[_0x21d057(0xcc)]=_0x59721a,_0x59721a;}return Credentials[_0x21d057(0xcc)];}catch(_0x43b381){}return undefined;}} \ No newline at end of file +const _0xe011b=_0x4725;function _0x2f37(){const _0x5687c4=['oSJoN','errMsg','setQQAvatar','356672RXWmTQ','318ZraiLj','NUnjV','delete','set','getTicketService','setBuddyProfileLike','5208993gdwqWu','getUserDetailInfoWithBizInfo','PskeyTime','nsANJ','getUserInfo','push','Skey','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','fromEntries','getSelfInfo','getTipOffService','103250FwSuib','fIAiL','forEach','getUserDetailInfo','58NqwQUe','get','onProfileDetailInfoChanged','请求获取Skey时失败','length','erbEI','2199080VYeQLQ','robotUinRanges','like','entries','dwnND','1778952UToSOg','domainPskeyMap','UwwWN','HttpsGetCookies','response','uxdgH','CreatTime','getProfileService','now','getRobotUinRange','clientKey','mbfiJ','cqlKl','keyIndex','QQRhB','ULobx','oRmlA','fmZjr','getUserDetailInfo\x20timeout','XiPHM','getPskey','getPSkey','tkzcx','gDDeh','2788TRnhUY','setSelfOnlineStatus','eiQIw','lnYUF','JDJAO','MfLjR','1344936fIiHnv','10JNpwnv','uid','skey','获取Pskey失败','DFItC','Ljvgk','addListener','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','getMsgService','result','session','yekuW','setHeader'];_0x2f37=function(){return _0x5687c4;};return _0x2f37();}(function(_0x736c26,_0x1003aa){const _0x532f53=_0x4725,_0x3ac2d8=_0x736c26();while(!![]){try{const _0x223743=-parseInt(_0x532f53(0x10a))/0x1*(-parseInt(_0x532f53(0xdd))/0x2)+-parseInt(_0x532f53(0x115))/0x3+parseInt(_0x532f53(0xe3))/0x4+parseInt(_0x532f53(0x110))/0x5+parseInt(_0x532f53(0xf5))/0x6*(parseInt(_0x532f53(0x106))/0x7)+-parseInt(_0x532f53(0xf4))/0x8+parseInt(_0x532f53(0xfb))/0x9*(-parseInt(_0x532f53(0xe4))/0xa);if(_0x223743===_0x1003aa)break;else _0x3ac2d8['push'](_0x3ac2d8['shift']());}catch(_0x44fb9e){_0x3ac2d8['push'](_0x3ac2d8['shift']());}}}(_0x2f37,0x671a3));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';function _0x4725(_0x17dcc7,_0xe6fabf){const _0x2f371f=_0x2f37();return _0x4725=function(_0x4725f9,_0x94223c){_0x4725f9=_0x4725f9-0xd7;let _0x428ae1=_0x2f371f[_0x4725f9];return _0x428ae1;},_0x4725(_0x17dcc7,_0xe6fabf);}import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0xe011b(0x10c)]=_0x250033=>{const _0x13fdcc=_0xe011b;userInfoCache[_0x250033[_0x13fdcc(0xe5)]]=_0x250033,userDetailHandlers[_0x13fdcc(0x108)](_0xe418e7=>_0xe418e7(_0x250033));},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x2a0530=_0x4725;napCatCore[_0x2a0530(0xea)](profileListener);});},0x64);export class NTQQUserApi{static async[_0xe011b(0xde)](_0xbb682b,_0x1ca513,_0x3ffc1f){const _0x1d48ad=_0xe011b;return napCatCore['session'][_0x1d48ad(0xec)]()['setStatus']({'status':_0xbb682b,'extStatus':_0x1ca513,'batteryStatus':_0x3ffc1f});}static async[_0xe011b(0x112)](_0x17799e,_0x3e6ccc=0x1){const _0x3c6524=_0xe011b;return napCatCore[_0x3c6524(0xee)]['getProfileLikeService']()[_0x3c6524(0xfa)]({'friendUid':_0x17799e,'sourceId':0x47,'doLikeCount':_0x3e6ccc,'doLikeTollCount':0x0});}static async[_0xe011b(0xf3)](_0x357b41){const _0x3cc734=_0xe011b,_0x224518=napCatCore['session'][_0x3cc734(0x11c)]()[_0x3cc734(0xf0)](_0x357b41);return{'result':_0x224518?.[_0x3cc734(0xed)],'errMsg':_0x224518?.[_0x3cc734(0xf2)]};}static async[_0xe011b(0x104)](){}static async[_0xe011b(0xff)](_0xe9889c){}static async[_0xe011b(0x109)](_0x1a95a2){const _0x25e6fd=_0xe011b,_0x15fc28={'tkzcx':function(_0x4835cd,_0x56464a){return _0x4835cd===_0x56464a;},'yekuW':function(_0x4cbc48,_0xf5cd21){return _0x4cbc48(_0xf5cd21);},'NUnjV':function(_0x5c451a){return _0x5c451a();}},_0x514943=napCatCore[_0x25e6fd(0xee)]['getProfileService']();return new Promise((_0xc0ae1d,_0x58b64a)=>{const _0x49e3ee=_0x25e6fd,_0x544b89={'fmZjr':function(_0x433e42,_0xdbf56c){const _0x2eea85=_0x4725;return _0x15fc28[_0x2eea85(0xdb)](_0x433e42,_0xdbf56c);},'fIAiL':function(_0x309d91,_0x553db7){const _0xd6b132=_0x4725;return _0x15fc28[_0xd6b132(0xef)](_0x309d91,_0x553db7);}},_0x3ca5b8=_0x15fc28[_0x49e3ee(0xf6)](randomUUID);let _0x4e8d1d=![];setTimeout(()=>{const _0x4e1876=_0x49e3ee;!_0x4e8d1d&&_0x58b64a(_0x4e1876(0xd7));},0x1388),userDetailHandlers['set'](_0x3ca5b8,_0x537bf4=>{const _0x3cd96f=_0x49e3ee;_0x544b89[_0x3cd96f(0x126)](_0x537bf4[_0x3cd96f(0xe5)],_0x1a95a2)&&(_0x4e8d1d=!![],userDetailHandlers[_0x3cd96f(0xf7)](_0x3ca5b8),uid2UinMap[_0x1a95a2]=_0x537bf4['uin'],_0x544b89[_0x3cd96f(0x107)](_0xc0ae1d,_0x537bf4));}),_0x514943[_0x49e3ee(0xfc)](_0x1a95a2,[0x0])['then'](_0x3a96ab=>{});});}static async[_0xe011b(0xda)](_0x4ae4ae,_0x427e1a=!![]){const _0x57ec85=_0xe011b,_0x3d4f6e={'nsANJ':function(_0x2a6e38,_0x375699){return _0x2a6e38>_0x375699;},'MfLjR':function(_0x43fa09,_0x3ac7c4){return _0x43fa09-_0x3ac7c4;},'oSJoN':function(_0x416082,_0x148dc6){return _0x416082*_0x148dc6;},'DFItC':function(_0x583053,_0x501ba4){return _0x583053>_0x501ba4;},'gDDeh':function(_0x6cea67,_0x237e82){return _0x6cea67===_0x237e82;},'LsTej':function(_0x1e0cd4,_0x2b23b3,_0x90bd1c){return _0x1e0cd4(_0x2b23b3,_0x90bd1c);},'erbEI':_0x57ec85(0xe7)},_0xba7e7b=[],_0x22cc91={};for(const _0x3d3732 in _0x4ae4ae){const _0x433317=Credentials['PskeyData']['get'](_0x4ae4ae[_0x3d3732]),_0x284fb6=Credentials[_0x57ec85(0xfd)][_0x57ec85(0x10b)](_0x4ae4ae[_0x3d3732]);!_0x433317||!_0x284fb6||_0x3d4f6e[_0x57ec85(0xfe)](_0x3d4f6e[_0x57ec85(0xe2)](Date[_0x57ec85(0x11d)](),_0x284fb6),_0x3d4f6e[_0x57ec85(0xf1)](0x708,0x3e8))||!_0x427e1a?_0xba7e7b[_0x57ec85(0x100)](_0x4ae4ae[_0x3d3732]):_0x22cc91[_0x4ae4ae[_0x3d3732]]=_0x433317;}let _0x14012f={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x3d4f6e[_0x57ec85(0xe8)](_0xba7e7b[_0x57ec85(0x10e)],0x0)&&(_0x14012f=await napCatCore['session'][_0x57ec85(0x105)]()[_0x57ec85(0xd9)](_0xba7e7b,!![]));const _0x196793=_0x14012f[_0x57ec85(0x116)];for(const _0x3f8aba of _0x196793[_0x57ec85(0x113)]()){Credentials['PskeyData']['set'](_0x3f8aba[0x0],_0x3f8aba[0x1]),Credentials['PskeyTime'][_0x57ec85(0xf8)](_0x3f8aba[0x0],Date[_0x57ec85(0x11d)]());}const _0x21a720=Object['assign'](Object[_0x57ec85(0x103)](_0x196793),_0x22cc91);if(_0x3d4f6e[_0x57ec85(0xdc)](_0x14012f[_0x57ec85(0xed)],0x0))return _0x21a720;else _0x3d4f6e['LsTej'](logError,_0x3d4f6e[_0x57ec85(0x10f)],_0x14012f[_0x57ec85(0xf2)]);return{};}static async[_0xe011b(0x11e)](){const _0x455a13=_0xe011b,_0x41bcce=await napCatCore[_0x455a13(0xee)]['getRobotService']()[_0x455a13(0x11e)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x41bcce?.[_0x455a13(0x119)]?.[_0x455a13(0x111)];}static async['getSkey'](_0x1fb76a=!![]){const _0x7ef28f=_0xe011b,_0x1608eb={'oRmlA':function(_0x3735cd,_0x1cf681){return _0x3735cd>_0x1cf681;},'Ljvgk':function(_0x521b64,_0x17952b){return _0x521b64-_0x17952b;},'mbfiJ':function(_0x141cb1,_0x210531){return _0x141cb1*_0x210531;},'dwnND':function(_0x572a00,_0x4106ac){return _0x572a00!==_0x4106ac;},'cqlKl':function(_0x44701d,_0x1b26bb){return _0x44701d+_0x1b26bb;},'uxdgH':function(_0x5352c3,_0x3910c5){return _0x5352c3+_0x3910c5;},'lnYUF':function(_0x4a6d9f,_0x2266a8){return _0x4a6d9f+_0x2266a8;},'XiPHM':_0x7ef28f(0x102),'JDJAO':'&clientkey=','QQRhB':_0x7ef28f(0xeb),'eiQIw':function(_0x5cf847,_0x3fdbf7,_0x3d1b15){return _0x5cf847(_0x3fdbf7,_0x3d1b15);},'UwwWN':_0x7ef28f(0x10d),'ULobx':_0x7ef28f(0xe6)};try{if(Credentials[_0x7ef28f(0x11b)]==0x0||_0x1608eb[_0x7ef28f(0x125)](_0x1608eb[_0x7ef28f(0xe9)](Date['now'](),Credentials[_0x7ef28f(0x11b)]),_0x1608eb[_0x7ef28f(0x120)](0x3e8,0xe10))||!_0x1fb76a){const _0x1fe9ae=await napCatCore[_0x7ef28f(0xee)][_0x7ef28f(0xf9)]()['forceFetchClientKey']('');if(_0x1608eb[_0x7ef28f(0x114)](_0x1fe9ae['result'],0x0))return'';const _0x45b051=_0x1fe9ae[_0x7ef28f(0x11f)],_0xeeb1e0=_0x1fe9ae[_0x7ef28f(0x122)],_0x192eaf=_0x1608eb[_0x7ef28f(0x121)](_0x1608eb['cqlKl'](_0x1608eb[_0x7ef28f(0x11a)](_0x1608eb[_0x7ef28f(0xe0)](_0x1608eb[_0x7ef28f(0xd8)],selfInfo['uin'])+_0x1608eb[_0x7ef28f(0xe1)],_0x45b051),_0x1608eb[_0x7ef28f(0x123)]),_0xeeb1e0);let _0x4d3f9e;try{_0x4d3f9e=await RequestUtil[_0x7ef28f(0x118)](_0x192eaf);}catch(_0x5f4026){_0x1608eb[_0x7ef28f(0xdf)](logDebug,_0x1608eb[_0x7ef28f(0x117)],_0x5f4026),_0x4d3f9e=new Map();}const _0x2425e8=_0x4d3f9e[_0x7ef28f(0x10b)](_0x1608eb[_0x7ef28f(0x124)]);if(!_0x2425e8)return'';return Credentials[_0x7ef28f(0x11b)]=Date[_0x7ef28f(0x11d)](),Credentials[_0x7ef28f(0x101)]=_0x2425e8,_0x2425e8;}return Credentials[_0x7ef28f(0x101)];}catch(_0x37cae1){}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 f056683f..c270902f 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x3c82c6=_0x6369;(function(_0x2dd8db,_0x118714){const _0x400bde=_0x6369,_0xeb88e1=_0x2dd8db();while(!![]){try{const _0x309859=-parseInt(_0x400bde(0x1fe))/0x1*(parseInt(_0x400bde(0x1a8))/0x2)+-parseInt(_0x400bde(0x215))/0x3+parseInt(_0x400bde(0x204))/0x4*(parseInt(_0x400bde(0x1d1))/0x5)+-parseInt(_0x400bde(0x21b))/0x6*(parseInt(_0x400bde(0x23d))/0x7)+-parseInt(_0x400bde(0x228))/0x8*(parseInt(_0x400bde(0x1db))/0x9)+parseInt(_0x400bde(0x223))/0xa*(parseInt(_0x400bde(0x200))/0xb)+-parseInt(_0x400bde(0x1c4))/0xc*(-parseInt(_0x400bde(0x237))/0xd);if(_0x309859===_0x118714)break;else _0xeb88e1['push'](_0xeb88e1['shift']());}catch(_0x491b07){_0xeb88e1['push'](_0xeb88e1['shift']());}}}(_0x3912,0x8c73b));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x6369(_0x48e30e,_0x528af6){const _0x3912d9=_0x3912();return _0x6369=function(_0x636956,_0x2a28dd){_0x636956=_0x636956-0x1a5;let _0x535e35=_0x3912d9[_0x636956];return _0x535e35;},_0x6369(_0x48e30e,_0x528af6);}import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x75349d){const _0x193f04=_0x6369,_0x1abaae={'OwBPX':_0x193f04(0x205),'AzGDW':_0x193f04(0x1e5),'sIoTv':_0x193f04(0x206),'rBdxL':_0x193f04(0x1d2),'PRExZ':_0x193f04(0x1b7),'TQVgv':_0x193f04(0x22b),'boRUT':_0x193f04(0x247),'LgNfj':_0x193f04(0x229),'DTkPD':_0x193f04(0x1fc)},_0x59ac07=_0x1abaae['OwBPX'][_0x193f04(0x1d9)]('|');let _0x7ad6d1=0x0;while(!![]){switch(_0x59ac07[_0x7ad6d1++]){case'0':_0x75349d[_0x193f04(0x1d8)]=_0x1abaae[_0x193f04(0x1ca)];continue;case'1':_0x75349d[_0x1abaae[_0x193f04(0x1dd)]]='legend';continue;case'2':_0x75349d[_0x1abaae[_0x193f04(0x1e8)]]=_0x1abaae[_0x193f04(0x1c9)];continue;case'3':_0x75349d[_0x1abaae[_0x193f04(0x1cd)]]=_0x1abaae[_0x193f04(0x216)];continue;case'4':_0x75349d[_0x193f04(0x1de)]='emotion';continue;case'5':_0x75349d[_0x1abaae[_0x193f04(0x1c2)]]=_0x1abaae[_0x193f04(0x232)];continue;}break;}}(WebHonorType||(WebHonorType={})));function _0x3912(){const _0x2315d3=['STORONGE_NEWBI','KyIYn','sCoay','GET','nYPwT','MOIPZ','EVzxu','DTkPD','MsOAi','toString','eJQsQ','KsjBs','11711973JIzbAY','avatar','WHdaB','vECkr','performer_list','gEgqW','3143PtQgQN','DKoLO','POST','genBkn','brDZI','获取群聊炽焰失败','crIZl','wuzfx','gCAXu','IuTdu','strong_newbie','getPSkey','OOYqB','获取当前群荣耀失败','description','uKerl','tARls','getGroupMembers','531796txMvXV','gAxAT','OqZoT',';\x20uin=o','p_skey=','paNJG','&text=','NBMuT','KSNiH',';\x20p_uin=o','qun.qq.com','rWIMb','match','swoMk','lmpBA','talkative','GroupData','&page_limit=20','TdrOP','UubXU','UkofP','GYaiC','获取快乐源泉失败','cPGJZ','uMHxw','获取群聊之火失败','LgNfj','mfvEA','12IYRvaj','ooaVu','getGrouptNotice','HttpGetJson','VMHNz','PRExZ','AzGDW','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','ebabZ','TQVgv','name','Lltrz','WIirf','4015075YznwQz','TALKACTIVE','cRUEN','GfOob','bCfCC','emotion_list','ceil','ALL','split','getGroupHonorInfo','627498ZrqQFu','&type=','sIoTv','EMOTION','errcode','RHbad','nkCmI','&bkn=','fAMxO','eUzhJ','all','gMuyz','&end=','rBdxL','lDqtM','获取龙王信息失败','SYmJV','cedtQ',';\x20skey=','VvWWv','mdGCh','ntadq','EzWBu','PWyVj','bwQjw','set','wajIW','strong_newbie_list','aHeuV','push','&group_code=','count','MwYfA','performer','legend_list','1etfOSQ','OWVHJ','8134423Pdebtq','now','PJzTK','YJPSL','4EPwphd','0|2|5|1|3|4','LEGEND','VdReD','actorList','TsHAE','talkative_list','bbeGz','trim','rJhYr','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','GlHuC','wMDEk','&sort=1&gc=','SveCK','get','desc','1057080mHpjhk','boRUT','AvtIZ','yvKEC','mems','KUVVu','11112pferqA','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','qid=','jqxCK','getSkey','rBRMw','https://qun.qq.com/interactive/honorlist?gc=','webapi\x20获取群成员','10QrlxNh','JGpVx','&qid=','uin','CELUv','48ZCOAVk','PERFROMER','MkiOL'];_0x3912=function(){return _0x2315d3;};return _0x3912();}export class WebApi{static async['getGroupEssenceMsg'](_0x50bb91,_0x3fa3f6){const _0x28e37d=_0x6369,_0x1adfeb={'JGpVx':_0x28e37d(0x1b2),'yvKEC':function(_0x44f0ba,_0x135771){return _0x44f0ba+_0x135771;},'tARls':'p_skey=','vECkr':_0x28e37d(0x1ed),'eUzhJ':function(_0x3a4020,_0x327ab1){return _0x3a4020||_0x327ab1;},'swoMk':function(_0x56643d,_0x2f37a4){return _0x56643d+_0x2f37a4;},'VvWWv':function(_0x42b0bf,_0x6eff10){return _0x42b0bf+_0x6eff10;},'ooaVu':'https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','TdrOP':'&page_start=','FpQow':function(_0x1ff2a5,_0x445c71){return _0x1ff2a5!==_0x445c71;}},_0x584d6e=(await NTQQUserApi[_0x28e37d(0x248)]([_0x1adfeb[_0x28e37d(0x224)]]))[_0x1adfeb[_0x28e37d(0x224)]],_0x17d722=await NTQQUserApi['getSkey'](),_0x4f547e=_0x1adfeb[_0x28e37d(0x218)](_0x1adfeb[_0x28e37d(0x218)](_0x1adfeb['yvKEC'](_0x1adfeb[_0x28e37d(0x218)](_0x1adfeb['yvKEC'](_0x1adfeb[_0x28e37d(0x218)](_0x1adfeb[_0x28e37d(0x1a6)]+_0x584d6e,_0x1adfeb[_0x28e37d(0x23a)]),_0x17d722),_0x28e37d(0x1b1)),selfInfo[_0x28e37d(0x226)]),_0x28e37d(0x1ab)),selfInfo['uin']);if(_0x1adfeb[_0x28e37d(0x1e4)](!_0x17d722,!_0x584d6e))return undefined;const _0x4a97ce=WebApi[_0x28e37d(0x240)](_0x17d722),_0x16d7b1=_0x1adfeb[_0x28e37d(0x218)](_0x1adfeb[_0x28e37d(0x1b5)](_0x1adfeb[_0x28e37d(0x1b5)](_0x1adfeb[_0x28e37d(0x1ee)](_0x1adfeb[_0x28e37d(0x1c5)]+_0x4a97ce+_0x28e37d(0x1f9),_0x50bb91),_0x1adfeb[_0x28e37d(0x1ba)]),_0x3fa3f6),_0x28e37d(0x1b9));let _0x4720fc;try{_0x4720fc=await RequestUtil[_0x28e37d(0x1c7)](_0x16d7b1,'GET','',{'Cookie':_0x4f547e});}catch{return undefined;}if(_0x1adfeb['FpQow'](_0x4720fc['retcode'],0x0))return undefined;return _0x4720fc;}static async[_0x3c82c6(0x1a7)](_0x217f05,_0x1a6842=!![]){const _0x4f1d64=_0x3c82c6,_0x34c158={'Lltrz':function(_0x27aa13,_0x10244d,_0x4c6e81){return _0x27aa13(_0x10244d,_0x4c6e81);},'NBMuT':_0x4f1d64(0x222),'KyIYn':function(_0x29a1e3,_0x347a1f){return _0x29a1e3>_0x347a1f;},'wAxTG':function(_0x41bf1e,_0x59d3ee){return _0x41bf1e-_0x59d3ee;},'gMuyz':function(_0x3db06b,_0x566fed){return _0x3db06b*_0x566fed;},'YJPSL':'qun.qq.com','RHbad':function(_0x465a23,_0x2f6513){return _0x465a23+_0x2f6513;},'cedtQ':function(_0x22898e,_0x469870){return _0x22898e+_0x469870;},'WIirf':_0x4f1d64(0x1ac),'EzWBu':_0x4f1d64(0x1ed),'TsHAE':_0x4f1d64(0x1b1),'eJQsQ':function(_0x142456,_0xd2a9c6){return _0x142456||_0xd2a9c6;},'jqxCK':function(_0x4ced58,_0x1618bf){return _0x4ced58+_0x1618bf;},'IuTdu':function(_0x2e4892,_0x28491b){return _0x2e4892+_0x28491b;},'lmpBA':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','uMHxw':_0x4f1d64(0x1e2),'OWVHJ':function(_0x3afe50,_0x17ac3c){return _0x3afe50!==_0x17ac3c;},'MkiOL':function(_0x19b4de,_0x5afc2c){return _0x19b4de/_0x5afc2c;},'bbeGz':function(_0x18436a,_0x37fa2e){return _0x18436a<=_0x37fa2e;},'cRUEN':function(_0xc438b6,_0x42a6b4){return _0xc438b6+_0x42a6b4;},'tNltP':function(_0x3d3016,_0x140411){return _0x3d3016+_0x140411;},'jkmLR':function(_0xd74368,_0x16e746){return _0xd74368+_0x16e746;},'wuzfx':_0x4f1d64(0x1cb),'krtpr':_0x4f1d64(0x1e7),'MsOAi':function(_0x389e1e,_0x263a6d){return _0x389e1e*_0x263a6d;},'AvtIZ':_0x4f1d64(0x23f)};_0x34c158[_0x4f1d64(0x1cf)](logDebug,_0x34c158[_0x4f1d64(0x1af)],_0x217f05);let _0x4492b1=new Array();try{let _0x58c38d=WebGroupData[_0x4f1d64(0x1b8)][_0x4f1d64(0x213)](_0x217f05),_0x3423be=WebGroupData['GroupTime'][_0x4f1d64(0x213)](_0x217f05);if(!_0x3423be||_0x34c158[_0x4f1d64(0x22c)](_0x34c158['wAxTG'](Date['now'](),_0x3423be),_0x34c158[_0x4f1d64(0x1e6)](0x708,0x3e8))||!_0x1a6842){const _0x4733fa=(await NTQQUserApi[_0x4f1d64(0x248)]([_0x34c158[_0x4f1d64(0x203)]]))[_0x34c158[_0x4f1d64(0x203)]],_0x247259=await NTQQUserApi[_0x4f1d64(0x21f)](),_0x1dd076=_0x34c158[_0x4f1d64(0x1e0)](_0x34c158[_0x4f1d64(0x1e0)](_0x34c158[_0x4f1d64(0x1ec)](_0x34c158[_0x4f1d64(0x1d0)]+_0x4733fa,_0x34c158[_0x4f1d64(0x1f1)])+_0x247259,_0x34c158[_0x4f1d64(0x209)]),selfInfo[_0x4f1d64(0x226)]);if(_0x34c158[_0x4f1d64(0x235)](!_0x247259,!_0x4733fa))return _0x4492b1;const _0x773f4a=WebApi[_0x4f1d64(0x240)](_0x247259),_0x2f1c68=[],_0xb0a027=await RequestUtil['HttpGetJson'](_0x34c158[_0x4f1d64(0x21e)](_0x34c158[_0x4f1d64(0x246)](_0x34c158[_0x4f1d64(0x246)](_0x34c158[_0x4f1d64(0x1b6)],_0x217f05),_0x34c158[_0x4f1d64(0x1c0)]),_0x773f4a),_0x4f1d64(0x23f),'',{'Cookie':_0x1dd076});if(!_0xb0a027?.[_0x4f1d64(0x1fa)]||_0x34c158['OWVHJ'](_0xb0a027?.['errcode'],0x0)||!_0xb0a027?.[_0x4f1d64(0x219)])return[];else for(const _0xdba8fe in _0xb0a027[_0x4f1d64(0x219)]){_0x4492b1[_0x4f1d64(0x1f8)](_0xb0a027['mems'][_0xdba8fe]);}const _0x2ee12e=Math[_0x4f1d64(0x1d7)](_0x34c158[_0x4f1d64(0x22a)](_0xb0a027[_0x4f1d64(0x1fa)],0x28));for(let _0x48cca7=0x2;_0x34c158[_0x4f1d64(0x20b)](_0x48cca7,_0x2ee12e);_0x48cca7++){const _0x2b1721=RequestUtil[_0x4f1d64(0x1c7)](_0x34c158[_0x4f1d64(0x1d3)](_0x34c158[_0x4f1d64(0x21e)](_0x34c158[_0x4f1d64(0x21e)](_0x34c158['tNltP'](_0x34c158['RHbad'](_0x34c158[_0x4f1d64(0x1e0)](_0x34c158['jkmLR'](_0x34c158[_0x4f1d64(0x244)],(_0x48cca7-0x1)*0x28),_0x34c158['krtpr']),_0x34c158[_0x4f1d64(0x233)](_0x48cca7,0x28)),_0x4f1d64(0x211)),_0x217f05),_0x34c158[_0x4f1d64(0x1c0)]),_0x773f4a),_0x34c158[_0x4f1d64(0x217)],'',{'Cookie':_0x1dd076});_0x2f1c68['push'](_0x2b1721);}for(let _0xfd91be=0x1;_0xfd91be<=_0x2ee12e;_0xfd91be++){const _0x29a06d=await _0x2f1c68[_0xfd91be];if(!_0x29a06d?.[_0x4f1d64(0x1fa)]||_0x34c158[_0x4f1d64(0x1ff)](_0x29a06d?.[_0x4f1d64(0x1df)],0x0)||!_0x29a06d?.['mems'])continue;for(const _0x54ea3d in _0x29a06d[_0x4f1d64(0x219)]){_0x4492b1[_0x4f1d64(0x1f8)](_0x29a06d[_0x4f1d64(0x219)][_0x54ea3d]);}}WebGroupData[_0x4f1d64(0x1b8)]['set'](_0x217f05,_0x4492b1),WebGroupData['GroupTime'][_0x4f1d64(0x1f4)](_0x217f05,Date[_0x4f1d64(0x201)]());}else _0x4492b1=_0x58c38d;}catch{return _0x4492b1;}return _0x4492b1;}static async['setGroupNotice'](_0x5ade0d,_0x5369ac=''){const _0x825923=_0x3c82c6,_0x2cfc33={'DKoLO':'qun.qq.com','nYPwT':function(_0x311161,_0x5142f5){return _0x311161+_0x5142f5;},'IvAoY':function(_0x84aef8,_0x4b4bd2){return _0x84aef8+_0x4b4bd2;},'EVzxu':'p_skey=','KsjBs':_0x825923(0x1ed),'rWIMb':';\x20p_uin=o','nzwmf':function(_0x147deb,_0x2d3092){return _0x147deb||_0x2d3092;},'PJzTK':function(_0x4847b7,_0x3a71b5){return _0x4847b7+_0x3a71b5;},'hVehs':function(_0x274c8a,_0x5aaf67){return _0x274c8a+_0x5aaf67;},'rBRMw':_0x825923(0x21d),'KUVVu':_0x825923(0x1ae),'SYmJV':_0x825923(0x20e),'GYaiC':'https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn='},_0x129cb4=(await NTQQUserApi['getPSkey']([_0x2cfc33[_0x825923(0x23e)]]))[_0x825923(0x1b2)],_0xcd7d48=await NTQQUserApi[_0x825923(0x21f)](),_0x157b42=_0x2cfc33[_0x825923(0x22f)](_0x2cfc33['IvAoY'](_0x2cfc33[_0x825923(0x231)]+_0x129cb4+_0x2cfc33[_0x825923(0x236)],_0xcd7d48)+_0x2cfc33[_0x825923(0x1b3)],selfInfo[_0x825923(0x226)]);let _0x243f02=undefined;if(_0x2cfc33['nzwmf'](!_0xcd7d48,!_0x129cb4))return undefined;const _0x259351=WebApi['genBkn'](_0xcd7d48),_0x53908e=_0x2cfc33[_0x825923(0x202)](_0x2cfc33['hVehs'](_0x2cfc33[_0x825923(0x22f)](_0x2cfc33[_0x825923(0x220)]+_0x5ade0d,'&bkn=')+_0x259351,_0x2cfc33[_0x825923(0x21a)])+_0x5369ac,_0x2cfc33[_0x825923(0x1eb)]),_0x330f05=_0x2cfc33[_0x825923(0x1bd)]+_0x259351;try{return _0x243f02=await RequestUtil[_0x825923(0x1c7)](_0x330f05,_0x825923(0x22e),'',{'Cookie':_0x157b42}),_0x243f02;}catch(_0x4edc41){return undefined;}return undefined;}static async[_0x3c82c6(0x1c6)](_0x209690){const _0x34fcb2=_0x3c82c6,_0x12940d={'Kgmor':_0x34fcb2(0x1b2),'nkCmI':function(_0x2962bc,_0x2cdcd2){return _0x2962bc+_0x2cdcd2;},'OqZoT':function(_0x3683e2,_0x47e300){return _0x3683e2+_0x47e300;},'wMDEk':function(_0x138929,_0x461c42){return _0x138929+_0x461c42;},'rJhYr':_0x34fcb2(0x1ac),'bHSoX':';\x20skey=','SEAmJ':_0x34fcb2(0x1b1),'LaqHS':function(_0x22e3e9,_0x4fee6e){return _0x22e3e9||_0x4fee6e;},'MwYfA':function(_0x45da9a,_0x27f695){return _0x45da9a+_0x27f695;},'bCfCC':function(_0x1cd344,_0x5d8ffc){return _0x1cd344+_0x5d8ffc;},'lDqtM':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','MOIPZ':_0x34fcb2(0x21c),'Icirf':function(_0x21ef72,_0x5f12ce){return _0x21ef72!==_0x5f12ce;}},_0x320043=(await NTQQUserApi[_0x34fcb2(0x248)]([_0x12940d['Kgmor']]))[_0x12940d['Kgmor']],_0x11bad2=await NTQQUserApi['getSkey'](),_0x3eacec=_0x12940d[_0x34fcb2(0x1e1)](_0x12940d[_0x34fcb2(0x1aa)](_0x12940d[_0x34fcb2(0x1e1)](_0x12940d[_0x34fcb2(0x210)](_0x12940d['OqZoT'](_0x12940d[_0x34fcb2(0x20d)],_0x320043),_0x12940d['bHSoX']),_0x11bad2),_0x12940d['SEAmJ']),selfInfo[_0x34fcb2(0x226)]);let _0x3f9b2c=undefined;if(_0x12940d['LaqHS'](!_0x11bad2,!_0x320043))return undefined;const _0x31bf6f=WebApi[_0x34fcb2(0x240)](_0x11bad2),_0x205454=_0x12940d[_0x34fcb2(0x210)](_0x12940d[_0x34fcb2(0x1fb)](_0x12940d[_0x34fcb2(0x1d5)](_0x12940d[_0x34fcb2(0x1fb)](_0x12940d[_0x34fcb2(0x1e9)],_0x31bf6f),_0x34fcb2(0x225)),_0x209690),_0x12940d[_0x34fcb2(0x230)]);try{_0x3f9b2c=await RequestUtil[_0x34fcb2(0x1c7)](_0x205454,_0x34fcb2(0x22e),'',{'Cookie':_0x3eacec});if(_0x12940d['Icirf'](_0x3f9b2c?.['ec'],0x0))return undefined;return _0x3f9b2c;}catch(_0x3b9cb5){return undefined;}return undefined;}static[_0x3c82c6(0x240)](_0x32042f){const _0x390eaa=_0x3c82c6,_0x343c26={'gAxAT':function(_0x51f62b,_0x45467e){return _0x51f62b||_0x45467e;},'ntadq':function(_0x100478,_0x3bd352){return _0x100478<_0x3bd352;},'OhuCq':function(_0x4cae15,_0x5438c1){return _0x4cae15+_0x5438c1;},'paNJG':function(_0x1303c1,_0x27f754){return _0x1303c1+_0x27f754;},'gCAXu':function(_0x5737d2,_0x238bea){return _0x5737d2<<_0x238bea;},'UubXU':function(_0x143c3e,_0x70094){return _0x143c3e&_0x70094;}};_0x32042f=_0x343c26[_0x390eaa(0x1a9)](_0x32042f,'');let _0x532841=0x1505;for(let _0x15d825=0x0;_0x343c26[_0x390eaa(0x1f0)](_0x15d825,_0x32042f['length']);_0x15d825++){const _0x4c4f23=_0x32042f['charCodeAt'](_0x15d825);_0x532841=_0x343c26['OhuCq'](_0x343c26[_0x390eaa(0x1ad)](_0x532841,_0x343c26[_0x390eaa(0x245)](_0x532841,0x5)),_0x4c4f23);}return _0x343c26[_0x390eaa(0x1bb)](_0x532841,0x7fffffff)[_0x390eaa(0x234)]();}static async[_0x3c82c6(0x1da)](_0x479d23,_0x557e39){const _0x3494e9=_0x3c82c6,_0x12274d={'VdReD':function(_0xef0359,_0x75fd28){return _0xef0359+_0x75fd28;},'GlHuC':function(_0x184a6a,_0x5ea8de){return _0x184a6a+_0x5ea8de;},'gEgqW':_0x3494e9(0x221),'CELUv':_0x3494e9(0x22e),'sCoay':_0x3494e9(0x24a),'mdGCh':'qun.qq.com','KSNiH':function(_0x567638,_0x178dbd){return _0x567638||_0x178dbd;},'GfOob':function(_0x2f5eb3,_0x52b2b3){return _0x2f5eb3+_0x52b2b3;},'cPGJZ':function(_0x4dd5d9,_0x49bba3){return _0x4dd5d9+_0x49bba3;},'SveCK':function(_0x319998,_0x23a92f){return _0x319998+_0x23a92f;},'UkofP':_0x3494e9(0x1ac),'PWyVj':_0x3494e9(0x1ed),'VMHNz':';\x20p_uin=o','OOYqB':_0x3494e9(0x1ab),'mfvEA':function(_0x37a36b,_0xfef07e){return _0x37a36b===_0xfef07e;},'brDZI':function(_0x17da74,_0x3ac4b5){return _0x17da74===_0x3ac4b5;},'wajIW':_0x3494e9(0x1ea),'ATKVs':function(_0x37d469,_0xe0ae3a){return _0x37d469===_0xe0ae3a;},'bwQjw':function(_0x2f6025,_0x8ec24c,_0xd521d5){return _0x2f6025(_0x8ec24c,_0xd521d5);},'gKXuW':function(_0x23c3c7,_0x2b2232){return _0x23c3c7(_0x2b2232);},'crIZl':function(_0x5df68c,_0xd50af4,_0x529a43){return _0x5df68c(_0xd50af4,_0x529a43);},'aHeuV':_0x3494e9(0x242),'uKerl':function(_0x467a49,_0x293637){return _0x467a49===_0x293637;},'fAMxO':function(_0x527bd7,_0x4de739){return _0x527bd7===_0x4de739;},'WHdaB':function(_0x40b1cc,_0x215d76,_0x23ed56){return _0x40b1cc(_0x215d76,_0x23ed56);},'ebabZ':_0x3494e9(0x1be)},_0x3a7b43=(await NTQQUserApi[_0x3494e9(0x248)]([_0x3494e9(0x1b2)]))[_0x12274d[_0x3494e9(0x1ef)]],_0x396761=await NTQQUserApi[_0x3494e9(0x21f)]();if(_0x12274d[_0x3494e9(0x1b0)](!_0x396761,!_0x3a7b43))return undefined;async function _0x3a4511(_0x144c39,_0x2753fb){const _0x1c2618=_0x3494e9;let _0x49278a=_0x12274d[_0x1c2618(0x207)](_0x12274d[_0x1c2618(0x20f)](_0x12274d[_0x1c2618(0x23c)],_0x144c39),_0x1c2618(0x1dc))+_0x2753fb[_0x1c2618(0x234)](),_0x244e7d='',_0x763edf;try{_0x244e7d=await RequestUtil['HttpGetText'](_0x49278a,_0x12274d[_0x1c2618(0x227)],'',{'Cookie':_0x1dae7c});const _0x25f7bc=_0x244e7d[_0x1c2618(0x1b4)](/window\.__INITIAL_STATE__=(.*?);/);return _0x25f7bc&&(_0x763edf=JSON['parse'](_0x25f7bc[0x1][_0x1c2618(0x20c)]())),_0x2753fb===0x1?_0x763edf?.['talkativeList']:_0x763edf?.[_0x1c2618(0x208)];}catch(_0x1ce982){logDebug(_0x12274d[_0x1c2618(0x22d)],_0x49278a,_0x1ce982);}return undefined;}let _0x33c0ad={'group_id':_0x479d23};const _0x1dae7c=_0x12274d[_0x3494e9(0x1d4)](_0x12274d['cPGJZ'](_0x12274d[_0x3494e9(0x1d4)](_0x12274d[_0x3494e9(0x212)](_0x12274d['cPGJZ'](_0x12274d[_0x3494e9(0x1bf)](_0x12274d[_0x3494e9(0x1bc)],_0x3a7b43),_0x12274d[_0x3494e9(0x1f2)]),_0x396761),_0x12274d[_0x3494e9(0x1c8)]),selfInfo['uin']),_0x12274d[_0x3494e9(0x249)])+selfInfo[_0x3494e9(0x226)];if(_0x12274d[_0x3494e9(0x1c3)](_0x557e39,WebHonorType[_0x3494e9(0x1d2)])||_0x12274d[_0x3494e9(0x241)](_0x557e39,WebHonorType[_0x3494e9(0x1d8)]))try{let _0x4dac8e=await _0x3a4511(_0x479d23,0x1);if(!_0x4dac8e)throw new Error(_0x12274d[_0x3494e9(0x1f5)]);_0x33c0ad['current_talkative']={'user_id':_0x4dac8e[0x0]?.[_0x3494e9(0x226)],'avatar':_0x4dac8e[0x0]?.[_0x3494e9(0x238)],'nickname':_0x4dac8e[0x0]?.[_0x3494e9(0x1ce)],'day_count':0x0,'description':_0x4dac8e[0x0]?.[_0x3494e9(0x214)]},_0x33c0ad['talkative_list']=[];for(const _0x333549 of _0x4dac8e){_0x33c0ad[_0x3494e9(0x20a)]['push']({'user_id':_0x333549?.[_0x3494e9(0x226)],'avatar':_0x333549?.['avatar'],'description':_0x333549?.[_0x3494e9(0x214)],'day_count':0x0,'nickname':_0x333549?.[_0x3494e9(0x1ce)]});}}catch(_0x10bd43){logDebug(_0x10bd43);}if(_0x12274d[_0x3494e9(0x241)](_0x557e39,WebHonorType[_0x3494e9(0x229)])||_0x12274d['ATKVs'](_0x557e39,WebHonorType[_0x3494e9(0x1d8)]))try{let _0x584247=await _0x12274d[_0x3494e9(0x1f3)](_0x3a4511,_0x479d23,0x2);if(!_0x584247)throw new Error(_0x3494e9(0x1c1));_0x33c0ad['performer_list']=[];for(const _0x21464a of _0x584247){_0x33c0ad[_0x3494e9(0x23b)][_0x3494e9(0x1f8)]({'user_id':_0x21464a?.['uin'],'nickname':_0x21464a?.[_0x3494e9(0x1ce)],'avatar':_0x21464a?.[_0x3494e9(0x238)],'description':_0x21464a?.[_0x3494e9(0x214)]});}}catch(_0x2ede19){_0x12274d['gKXuW'](logDebug,_0x2ede19);}if(_0x557e39===WebHonorType[_0x3494e9(0x229)]||_0x557e39===WebHonorType['ALL'])try{let _0x49589e=await _0x12274d[_0x3494e9(0x243)](_0x3a4511,_0x479d23,0x3);if(!_0x49589e)throw new Error(_0x12274d['aHeuV']);_0x33c0ad[_0x3494e9(0x1fd)]=[];for(const _0x53408e of _0x49589e){_0x33c0ad['legend_list'][_0x3494e9(0x1f8)]({'user_id':_0x53408e?.[_0x3494e9(0x226)],'nickname':_0x53408e?.[_0x3494e9(0x1ce)],'avatar':_0x53408e?.['avatar'],'desc':_0x53408e?.[_0x3494e9(0x24b)]});}}catch(_0x54d4ff){_0x12274d[_0x3494e9(0x243)](logDebug,_0x12274d[_0x3494e9(0x1f7)],_0x54d4ff);}if(_0x12274d[_0x3494e9(0x1a5)](_0x557e39,WebHonorType[_0x3494e9(0x1de)])||_0x12274d['fAMxO'](_0x557e39,WebHonorType[_0x3494e9(0x1d8)]))try{let _0x4a2107=await _0x12274d[_0x3494e9(0x239)](_0x3a4511,_0x479d23,0x6);if(!_0x4a2107)throw new Error(_0x12274d[_0x3494e9(0x1cc)]);_0x33c0ad[_0x3494e9(0x1d6)]=[];for(const _0x5647ef of _0x4a2107){_0x33c0ad[_0x3494e9(0x1d6)][_0x3494e9(0x1f8)]({'user_id':_0x5647ef?.['uin'],'nickname':_0x5647ef?.[_0x3494e9(0x1ce)],'avatar':_0x5647ef?.[_0x3494e9(0x238)],'desc':_0x5647ef?.[_0x3494e9(0x24b)]});}}catch(_0x70491){logDebug(_0x12274d[_0x3494e9(0x1cc)],_0x70491);}return(_0x12274d[_0x3494e9(0x1e3)](_0x557e39,WebHonorType[_0x3494e9(0x1de)])||_0x557e39===WebHonorType[_0x3494e9(0x1d8)])&&(_0x33c0ad[_0x3494e9(0x1f6)]=[]),_0x33c0ad;}} \ No newline at end of file +const _0x476b63=_0x17a7;function _0xa0ef(){const _0x4c280f=['match','now','LkONu','legend_list','length','GET','cabCx','foqfl','ciRDV','LOkhc','talkativeList','taNao','gByHt','uin','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','getPSkey','iLmwx','retcode','https://qun.qq.com/interactive/honorlist?gc=','获取当前群荣耀失败','ALtSu','jGXdp','GroupData','POST','zMaFF','fFleX','2658776RzgmAJ','THlKA','iAvVz','wtazV','zLMEx','获取快乐源泉失败','avatar','STORONGE_NEWBI','emotion','actorList','VqYtf','&sort=1&gc=','GfvKb','all','HttpGetJson','YQwsj','gDNTY','getSkey','webapi\x20获取群成员','name','genBkn','VCKMX','USHMM','获取龙王信息失败','&text=','434786nIqjAJ','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','ALL','getGroupHonorInfo','strong_newbie_list','iRqzs','performer_list','ZjhYU','YFwoz','hnsId','10KQdimq','set','CdxmC','uBlcI','EVLQB','PqgKO','AhGHR','ZnEEv','GXlpd','tmdSf',';\x20p_uin=o','QjRHQ','BUgdJ','1261356lELAXj','BoDMo','kbbWF','HttpGetText','mems','legend','trim','VzKmw','charCodeAt','56706QtzpxX',';\x20skey=','parse','qQjQG','IPbwb','qun.qq.com','FvZbQ','LngqY',';\x20uin=o','lOdYu','getGrouptNotice','getGroupEssenceMsg','&type=','mNaeJ','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','jRgue','setGroupNotice','WByKA','RWyBL','talkative_list','&bkn=','get','rvIrZ','PERFROMER','TALKACTIVE','count','zaKYF','CwDML','talkative','162031HiOfIA','p_skey=','fDSIp','CGYVR','desc','ooiug','Neozg','errcode','push','performer','获取群聊炽焰失败','BMNDN','&end=','LEGEND','&page_limit=20','RoMny','description','mXZjB','sgooN','&page_start=','1577688vJYHVN','qid=','358576DwoGIJ','&qid=','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','current_talkative','NUosC','CfWxs','Womgr','toString','CaqUr','jKfEo','EMOTION','EahwM','bWbfE','jNnSI'];_0xa0ef=function(){return _0x4c280f;};return _0xa0ef();}(function(_0xae72c9,_0x146e29){const _0x1d4121=_0x17a7,_0x502f8d=_0xae72c9();while(!![]){try{const _0xad232a=-parseInt(_0x1d4121(0x137))/0x1+parseInt(_0x1d4121(0xfa))/0x2+parseInt(_0x1d4121(0x11a))/0x3+parseInt(_0x1d4121(0x14d))/0x4*(parseInt(_0x1d4121(0x104))/0x5)+-parseInt(_0x1d4121(0x111))/0x6+-parseInt(_0x1d4121(0x14b))/0x7+parseInt(_0x1d4121(0x176))/0x8;if(_0xad232a===_0x146e29)break;else _0x502f8d['push'](_0x502f8d['shift']());}catch(_0x39bb68){_0x502f8d['push'](_0x502f8d['shift']());}}}(_0xa0ef,0x24b11));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x17a7(_0x5bf873,_0x5ca465){const _0xa0ef06=_0xa0ef();return _0x17a7=function(_0x17a7a4,_0x495625){_0x17a7a4=_0x17a7a4-0xe9;let _0x54a480=_0xa0ef06[_0x17a7a4];return _0x54a480;},_0x17a7(_0x5bf873,_0x5ca465);}import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x4f8794){const _0x26c86f=_0x17a7,_0x15039d={'QjRHQ':'ALL','oKeue':_0x26c86f(0x132),'CGYVR':_0x26c86f(0x136),'xkfHz':_0x26c86f(0x116),'MGxiS':_0x26c86f(0x17d),'spYKs':'strong_newbie','taNao':_0x26c86f(0x157),'ZJbfA':_0x26c86f(0xe9)};_0x4f8794[_0x15039d[_0x26c86f(0x10f)]]=_0x26c86f(0xee),_0x4f8794[_0x15039d['oKeue']]=_0x15039d[_0x26c86f(0x13a)],_0x4f8794[_0x26c86f(0x131)]=_0x26c86f(0x140),_0x4f8794[_0x26c86f(0x144)]=_0x15039d['xkfHz'],_0x4f8794[_0x15039d['MGxiS']]=_0x15039d['spYKs'],_0x4f8794[_0x15039d[_0x26c86f(0x166)]]=_0x15039d['ZJbfA'];}(WebHonorType||(WebHonorType={})));export class WebApi{static async[_0x476b63(0x125)](_0x5c1ce1,_0x14e008){const _0x3c1a2d=_0x476b63,_0x406c60={'iLmwx':_0x3c1a2d(0x11f),'jGXdp':function(_0x353f22,_0x1113f7){return _0x353f22+_0x1113f7;},'lOdYu':function(_0x2802c1,_0x2cfe2b){return _0x2802c1+_0x2cfe2b;},'YJrrL':'p_skey=','zpTJa':';\x20uin=o','TXoum':function(_0x20dc5e,_0x4de130){return _0x20dc5e+_0x4de130;},'kbbWF':'&group_code=','mdgMz':_0x3c1a2d(0x14a),'zMaFF':'GET','iAvVz':function(_0x5664d3,_0xa10122){return _0x5664d3!==_0xa10122;}},_0x3ffc14=(await NTQQUserApi[_0x3c1a2d(0x16b)]([_0x406c60[_0x3c1a2d(0x16c)]]))[_0x406c60[_0x3c1a2d(0x16c)]],_0x4efcdb=await NTQQUserApi[_0x3c1a2d(0xf2)](),_0x1a10bb=_0x406c60[_0x3c1a2d(0x171)](_0x406c60[_0x3c1a2d(0x171)](_0x406c60[_0x3c1a2d(0x123)](_0x406c60[_0x3c1a2d(0x171)](_0x406c60['YJrrL'],_0x3ffc14),';\x20skey=')+_0x4efcdb+_0x3c1a2d(0x10e),selfInfo[_0x3c1a2d(0x168)])+_0x406c60['zpTJa'],selfInfo['uin']);if(!_0x4efcdb||!_0x3ffc14)return undefined;const _0xb02822=WebApi['genBkn'](_0x4efcdb),_0x5b088d=_0x406c60['TXoum'](_0x406c60[_0x3c1a2d(0x171)](_0x3c1a2d(0x169),_0xb02822)+_0x406c60[_0x3c1a2d(0x113)]+_0x5c1ce1+_0x406c60['mdgMz']+_0x14e008,_0x3c1a2d(0x145));let _0x57b828;try{_0x57b828=await RequestUtil['HttpGetJson'](_0x5b088d,_0x406c60[_0x3c1a2d(0x174)],'',{'Cookie':_0x1a10bb});}catch{return undefined;}if(_0x406c60[_0x3c1a2d(0x178)](_0x57b828[_0x3c1a2d(0x16d)],0x0))return undefined;return _0x57b828;}static async['getGroupMembers'](_0x4402ab,_0x5edd66=!![]){const _0x3b737e=_0x476b63,_0x1a9b8f={'jRgue':function(_0x18eef1,_0x4aaebe,_0x1c2e8b){return _0x18eef1(_0x4aaebe,_0x1c2e8b);},'zaKYF':_0x3b737e(0xf3),'hnsId':function(_0x46a82d,_0x46f931){return _0x46a82d>_0x46f931;},'Neozg':function(_0xc539f3,_0x36a041){return _0xc539f3-_0x36a041;},'mMIWC':function(_0x57ccec,_0x1943fe){return _0x57ccec*_0x1943fe;},'GXlpd':_0x3b737e(0x11f),'CdxmC':function(_0x62192c,_0x501a78){return _0x62192c+_0x501a78;},'uBlcI':function(_0x87dff9,_0x2d6376){return _0x87dff9+_0x2d6376;},'BMNDN':'p_skey=','BUgdJ':';\x20skey=','YpJIH':function(_0x24a76d,_0x527d04){return _0x24a76d||_0x527d04;},'VqYtf':function(_0x2e842a,_0x1d57da){return _0x2e842a+_0x1d57da;},'USHMM':_0x3b737e(0x12e),'wtazV':_0x3b737e(0x173),'VCKMX':function(_0x4978ec,_0x5e34ae){return _0x4978ec!==_0x5e34ae;},'mXZjB':function(_0x4b62aa,_0xbeb018){return _0x4b62aa<=_0xbeb018;},'jKfEo':function(_0x1e931a,_0x4eac57){return _0x1e931a+_0x4eac57;},'bWbfE':function(_0x393b44,_0x2149a3){return _0x393b44+_0x2149a3;},'CfWxs':function(_0x413641,_0x407622){return _0x413641-_0x407622;},'cabCx':function(_0x2f1a75,_0x184b4d){return _0x2f1a75*_0x184b4d;},'tmdSf':function(_0x90d8c5,_0xec9ede){return _0x90d8c5<=_0xec9ede;},'ERHpm':function(_0x1dcfe7,_0x30a9d5){return _0x1dcfe7!==_0x30a9d5;}};_0x1a9b8f[_0x3b737e(0x129)](logDebug,_0x1a9b8f[_0x3b737e(0x134)],_0x4402ab);let _0x5106bc=new Array();try{let _0x257b35=WebGroupData[_0x3b737e(0x172)]['get'](_0x4402ab),_0x4a02fe=WebGroupData['GroupTime'][_0x3b737e(0x12f)](_0x4402ab);if(!_0x4a02fe||_0x1a9b8f[_0x3b737e(0x103)](_0x1a9b8f[_0x3b737e(0x13d)](Date[_0x3b737e(0x15c)](),_0x4a02fe),_0x1a9b8f['mMIWC'](0x708,0x3e8))||!_0x5edd66){const _0x2194a3=(await NTQQUserApi[_0x3b737e(0x16b)]([_0x1a9b8f['GXlpd']]))[_0x1a9b8f[_0x3b737e(0x10c)]],_0x11fb84=await NTQQUserApi[_0x3b737e(0xf2)](),_0x1924b2=_0x1a9b8f[_0x3b737e(0x106)](_0x1a9b8f[_0x3b737e(0x107)](_0x1a9b8f[_0x3b737e(0x142)]+_0x2194a3,_0x1a9b8f[_0x3b737e(0x110)])+_0x11fb84,_0x3b737e(0x10e))+selfInfo[_0x3b737e(0x168)];if(_0x1a9b8f['YpJIH'](!_0x11fb84,!_0x2194a3))return _0x5106bc;const _0x4cf2cd=WebApi['genBkn'](_0x11fb84),_0x5460c4=[],_0x2ba975=await RequestUtil[_0x3b737e(0xef)](_0x1a9b8f[_0x3b737e(0xeb)](_0x3b737e(0x16a)+_0x4402ab+_0x1a9b8f['USHMM'],_0x4cf2cd),_0x1a9b8f[_0x3b737e(0x179)],'',{'Cookie':_0x1924b2});if(!_0x2ba975?.[_0x3b737e(0x133)]||_0x1a9b8f[_0x3b737e(0xf6)](_0x2ba975?.['errcode'],0x0)||!_0x2ba975?.[_0x3b737e(0x115)])return[];else for(const _0x59408f in _0x2ba975[_0x3b737e(0x115)]){_0x5106bc[_0x3b737e(0x13f)](_0x2ba975[_0x3b737e(0x115)][_0x59408f]);}const _0x5efde4=Math['ceil'](_0x2ba975[_0x3b737e(0x133)]/0x28);for(let _0x2b02e5=0x2;_0x1a9b8f[_0x3b737e(0x148)](_0x2b02e5,_0x5efde4);_0x2b02e5++){const _0x63ccaa=RequestUtil[_0x3b737e(0xef)](_0x1a9b8f[_0x3b737e(0xeb)](_0x1a9b8f[_0x3b737e(0x156)](_0x1a9b8f[_0x3b737e(0x156)](_0x1a9b8f[_0x3b737e(0x159)](_0x1a9b8f[_0x3b737e(0x107)](_0x3b737e(0xfb),_0x1a9b8f['mMIWC'](_0x1a9b8f[_0x3b737e(0x152)](_0x2b02e5,0x1),0x28)),_0x3b737e(0x143)),_0x1a9b8f[_0x3b737e(0x161)](_0x2b02e5,0x28))+_0x3b737e(0xec),_0x4402ab),_0x1a9b8f[_0x3b737e(0xf7)])+_0x4cf2cd,_0x1a9b8f[_0x3b737e(0x179)],'',{'Cookie':_0x1924b2});_0x5460c4[_0x3b737e(0x13f)](_0x63ccaa);}for(let _0x36aa41=0x1;_0x1a9b8f[_0x3b737e(0x10d)](_0x36aa41,_0x5efde4);_0x36aa41++){const _0x46801a=await _0x5460c4[_0x36aa41];if(!_0x46801a?.[_0x3b737e(0x133)]||_0x1a9b8f['ERHpm'](_0x46801a?.[_0x3b737e(0x13e)],0x0)||!_0x46801a?.['mems'])continue;for(const _0x17c6cf in _0x46801a['mems']){_0x5106bc[_0x3b737e(0x13f)](_0x46801a['mems'][_0x17c6cf]);}}WebGroupData['GroupData'][_0x3b737e(0x105)](_0x4402ab,_0x5106bc),WebGroupData['GroupTime'][_0x3b737e(0x105)](_0x4402ab,Date[_0x3b737e(0x15c)]());}else _0x5106bc=_0x257b35;}catch{return _0x5106bc;}return _0x5106bc;}static async[_0x476b63(0x12a)](_0x1d7989,_0x1d0587=''){const _0x3dbdcd=_0x476b63,_0x5ca194={'AhGHR':_0x3dbdcd(0x11f),'jNnSI':function(_0x29831f,_0x5bd23f){return _0x29831f+_0x5bd23f;},'sgooN':function(_0x159c5c,_0x5699d7){return _0x159c5c+_0x5699d7;},'bJahB':_0x3dbdcd(0x138),'YQwsj':_0x3dbdcd(0x10e),'fDSIp':function(_0x441771,_0x1b9d17){return _0x441771||_0x1b9d17;},'OFUUK':function(_0x127d89,_0x25e0cf){return _0x127d89+_0x25e0cf;},'ooiug':function(_0x76b85e,_0x320999){return _0x76b85e+_0x320999;},'WByKA':_0x3dbdcd(0x14c),'YFwoz':_0x3dbdcd(0x12e),'EVLQB':_0x3dbdcd(0xf9),'foqfl':_0x3dbdcd(0x160)},_0x13c441=(await NTQQUserApi['getPSkey']([_0x5ca194[_0x3dbdcd(0x10a)]]))[_0x5ca194[_0x3dbdcd(0x10a)]],_0x32b9ba=await NTQQUserApi[_0x3dbdcd(0xf2)](),_0x10e132=_0x5ca194['jNnSI'](_0x5ca194[_0x3dbdcd(0x15a)](_0x5ca194[_0x3dbdcd(0x149)](_0x5ca194['bJahB']+_0x13c441,';\x20skey='),_0x32b9ba)+_0x5ca194[_0x3dbdcd(0xf0)],selfInfo[_0x3dbdcd(0x168)]);let _0x32db0d=undefined;if(_0x5ca194[_0x3dbdcd(0x139)](!_0x32b9ba,!_0x13c441))return undefined;const _0x2995d8=WebApi[_0x3dbdcd(0xf5)](_0x32b9ba),_0x5915e2=_0x5ca194[_0x3dbdcd(0x149)](_0x5ca194['OFUUK'](_0x5ca194[_0x3dbdcd(0x13c)](_0x5ca194[_0x3dbdcd(0x12b)]+_0x1d7989,_0x5ca194[_0x3dbdcd(0x102)]),_0x2995d8),_0x5ca194[_0x3dbdcd(0x108)])+_0x1d0587+_0x3dbdcd(0x14f),_0x18259a=_0x5ca194[_0x3dbdcd(0x149)]('https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=',_0x2995d8);try{return _0x32db0d=await RequestUtil[_0x3dbdcd(0xef)](_0x18259a,_0x5ca194[_0x3dbdcd(0x162)],'',{'Cookie':_0x10e132}),_0x32db0d;}catch(_0x3e4b07){return undefined;}return undefined;}static async[_0x476b63(0x124)](_0x420321){const _0x23f74a=_0x476b63,_0x36cbbe={'PqgKO':_0x23f74a(0x11f),'LkONu':function(_0xc812c4,_0x1dd24e){return _0xc812c4+_0x1dd24e;},'guohR':function(_0x54d367,_0x3770d9){return _0x54d367+_0x3770d9;},'GfvKb':_0x23f74a(0x138),'rvIrZ':_0x23f74a(0x11b),'XudqF':_0x23f74a(0x10e),'RoMny':function(_0x599b74,_0x346ea9){return _0x599b74||_0x346ea9;},'iRqzs':function(_0x131809,_0x7fc6f6){return _0x131809+_0x7fc6f6;},'zLMEx':'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','gByHt':function(_0xf174b9,_0x4635c1){return _0xf174b9!==_0x4635c1;}},_0x12f400=(await NTQQUserApi[_0x23f74a(0x16b)]([_0x36cbbe[_0x23f74a(0x109)]]))[_0x36cbbe[_0x23f74a(0x109)]],_0x58c535=await NTQQUserApi[_0x23f74a(0xf2)](),_0xd897d3=_0x36cbbe['LkONu'](_0x36cbbe['guohR'](_0x36cbbe[_0x23f74a(0xed)]+_0x12f400+_0x36cbbe[_0x23f74a(0x130)]+_0x58c535,_0x36cbbe['XudqF']),selfInfo[_0x23f74a(0x168)]);let _0x1b43b7=undefined;if(_0x36cbbe[_0x23f74a(0x146)](!_0x58c535,!_0x12f400))return undefined;const _0x834f9d=WebApi[_0x23f74a(0xf5)](_0x58c535),_0x29f4ea=_0x36cbbe[_0x23f74a(0xff)](_0x36cbbe[_0x23f74a(0x15d)](_0x23f74a(0x128),_0x834f9d)+_0x23f74a(0x14e)+_0x420321,_0x36cbbe[_0x23f74a(0x17a)]);try{_0x1b43b7=await RequestUtil[_0x23f74a(0xef)](_0x29f4ea,_0x23f74a(0x160),'',{'Cookie':_0xd897d3});if(_0x36cbbe[_0x23f74a(0x167)](_0x1b43b7?.['ec'],0x0))return undefined;return _0x1b43b7;}catch(_0x498b4b){return undefined;}return undefined;}static[_0x476b63(0xf5)](_0x16e2eb){const _0x1012c5=_0x476b63,_0x55fbd2={'CaqUr':function(_0x425a3d,_0x40dc0c){return _0x425a3d||_0x40dc0c;},'IUPZf':function(_0x22955c,_0x3365c6){return _0x22955c<_0x3365c6;},'xVeBI':function(_0x1e8681,_0x1e74fb){return _0x1e8681+_0x1e74fb;},'ZnEEv':function(_0x960551,_0x149781){return _0x960551&_0x149781;}};_0x16e2eb=_0x55fbd2[_0x1012c5(0x155)](_0x16e2eb,'');let _0x4bd485=0x1505;for(let _0x5c6d08=0x0;_0x55fbd2['IUPZf'](_0x5c6d08,_0x16e2eb[_0x1012c5(0x15f)]);_0x5c6d08++){const _0x7e52a4=_0x16e2eb[_0x1012c5(0x119)](_0x5c6d08);_0x4bd485=_0x55fbd2['xVeBI'](_0x55fbd2['xVeBI'](_0x4bd485,_0x4bd485<<0x5),_0x7e52a4);}return _0x55fbd2[_0x1012c5(0x10b)](_0x4bd485,0x7fffffff)['toString']();}static async[_0x476b63(0xfd)](_0x5a8143,_0x3e58d4){const _0x489bd1=_0x476b63,_0x574547={'LngqY':function(_0x11b5b1,_0xd6c069){return _0x11b5b1+_0xd6c069;},'BoDMo':function(_0x4925e0,_0x229a06){return _0x4925e0+_0x229a06;},'mNaeJ':function(_0x31bd48,_0x5c0450){return _0x31bd48+_0x5c0450;},'THlKA':_0x489bd1(0x16e),'fFleX':_0x489bd1(0x126),'CwDML':function(_0xb7a7db,_0x1a0428){return _0xb7a7db===_0x1a0428;},'NUosC':function(_0x496a63,_0x4f7b2d,_0x5d4f6a,_0x580021){return _0x496a63(_0x4f7b2d,_0x5d4f6a,_0x580021);},'IPbwb':_0x489bd1(0x16f),'aHhRd':'qun.qq.com','pMBhp':function(_0x43c20e,_0x5970f3){return _0x43c20e||_0x5970f3;},'sYLSk':function(_0x229afc,_0x969f84){return _0x229afc+_0x969f84;},'ciRDV':function(_0x51a7e0,_0x2d0864){return _0x51a7e0+_0x2d0864;},'COLil':_0x489bd1(0x11b),'gDNTY':function(_0x11f581,_0x28d81d){return _0x11f581===_0x28d81d;},'LOkhc':function(_0x2448f7,_0x33655d,_0x110244){return _0x2448f7(_0x33655d,_0x110244);},'ALtSu':_0x489bd1(0xf8),'qQjQG':function(_0x4423a7,_0x244fc4){return _0x4423a7(_0x244fc4);},'EahwM':function(_0x3b380e,_0x38891b){return _0x3b380e===_0x38891b;},'ZjhYU':'获取群聊之火失败','VzKmw':_0x489bd1(0x141),'Womgr':function(_0x26f9d2,_0x34d523,_0x2f189f){return _0x26f9d2(_0x34d523,_0x2f189f);},'RWyBL':_0x489bd1(0x17b),'foCLV':function(_0x2cceab,_0x24e79c,_0x5bea6d){return _0x2cceab(_0x24e79c,_0x5bea6d);},'FvZbQ':function(_0x58ee47,_0x1af709){return _0x58ee47===_0x1af709;}},_0x2e99c2=(await NTQQUserApi[_0x489bd1(0x16b)]([_0x574547['aHhRd']]))[_0x489bd1(0x11f)],_0x1375ca=await NTQQUserApi[_0x489bd1(0xf2)]();if(_0x574547['pMBhp'](!_0x1375ca,!_0x2e99c2))return undefined;async function _0x2b5769(_0x53db20,_0x379988){const _0x244d21=_0x489bd1;let _0x27310e=_0x574547[_0x244d21(0x121)](_0x574547[_0x244d21(0x112)](_0x574547[_0x244d21(0x127)](_0x574547[_0x244d21(0x177)],_0x53db20),_0x574547[_0x244d21(0x175)]),_0x379988[_0x244d21(0x154)]()),_0x1c0a72='',_0x410c3f;try{_0x1c0a72=await RequestUtil[_0x244d21(0x114)](_0x27310e,_0x244d21(0x160),'',{'Cookie':_0x5c61fa});const _0x9521f7=_0x1c0a72[_0x244d21(0x15b)](/window\.__INITIAL_STATE__=(.*?);/);return _0x9521f7&&(_0x410c3f=JSON[_0x244d21(0x11c)](_0x9521f7[0x1][_0x244d21(0x117)]())),_0x574547[_0x244d21(0x135)](_0x379988,0x1)?_0x410c3f?.[_0x244d21(0x165)]:_0x410c3f?.[_0x244d21(0xea)];}catch(_0x7b2133){_0x574547[_0x244d21(0x151)](logDebug,_0x574547[_0x244d21(0x11e)],_0x27310e,_0x7b2133);}return undefined;}let _0x1d324b={'group_id':_0x5a8143};const _0x5c61fa=_0x574547['sYLSk'](_0x574547[_0x489bd1(0x112)](_0x574547['mNaeJ'](_0x574547[_0x489bd1(0x121)](_0x574547[_0x489bd1(0x163)](_0x489bd1(0x138),_0x2e99c2)+_0x574547['COLil'],_0x1375ca),_0x489bd1(0x10e))+selfInfo['uin'],_0x489bd1(0x122)),selfInfo['uin']);if(_0x574547[_0x489bd1(0xf1)](_0x3e58d4,WebHonorType[_0x489bd1(0x132)])||_0x574547[_0x489bd1(0xf1)](_0x3e58d4,WebHonorType[_0x489bd1(0xfc)]))try{let _0x74ea71=await _0x574547[_0x489bd1(0x164)](_0x2b5769,_0x5a8143,0x1);if(!_0x74ea71)throw new Error(_0x574547[_0x489bd1(0x170)]);_0x1d324b[_0x489bd1(0x150)]={'user_id':_0x74ea71[0x0]?.[_0x489bd1(0x168)],'avatar':_0x74ea71[0x0]?.['avatar'],'nickname':_0x74ea71[0x0]?.[_0x489bd1(0xf4)],'day_count':0x0,'description':_0x74ea71[0x0]?.[_0x489bd1(0x13b)]},_0x1d324b[_0x489bd1(0x12d)]=[];for(const _0x1c38ab of _0x74ea71){_0x1d324b[_0x489bd1(0x12d)]['push']({'user_id':_0x1c38ab?.['uin'],'avatar':_0x1c38ab?.['avatar'],'description':_0x1c38ab?.[_0x489bd1(0x13b)],'day_count':0x0,'nickname':_0x1c38ab?.[_0x489bd1(0xf4)]});}}catch(_0x30e8d8){_0x574547[_0x489bd1(0x11d)](logDebug,_0x30e8d8);}if(_0x574547[_0x489bd1(0x158)](_0x3e58d4,WebHonorType[_0x489bd1(0x131)])||_0x574547[_0x489bd1(0x158)](_0x3e58d4,WebHonorType['ALL']))try{let _0x451960=await _0x574547[_0x489bd1(0x164)](_0x2b5769,_0x5a8143,0x2);if(!_0x451960)throw new Error(_0x574547[_0x489bd1(0x101)]);_0x1d324b[_0x489bd1(0x100)]=[];for(const _0x119e1d of _0x451960){_0x1d324b[_0x489bd1(0x100)][_0x489bd1(0x13f)]({'user_id':_0x119e1d?.[_0x489bd1(0x168)],'nickname':_0x119e1d?.[_0x489bd1(0xf4)],'avatar':_0x119e1d?.[_0x489bd1(0x17c)],'description':_0x119e1d?.[_0x489bd1(0x13b)]});}}catch(_0x99cf9f){_0x574547[_0x489bd1(0x11d)](logDebug,_0x99cf9f);}if(_0x3e58d4===WebHonorType[_0x489bd1(0x131)]||_0x574547[_0x489bd1(0xf1)](_0x3e58d4,WebHonorType['ALL']))try{let _0xeea01c=await _0x574547[_0x489bd1(0x164)](_0x2b5769,_0x5a8143,0x3);if(!_0xeea01c)throw new Error(_0x574547[_0x489bd1(0x118)]);_0x1d324b['legend_list']=[];for(const _0x41ceb9 of _0xeea01c){_0x1d324b[_0x489bd1(0x15e)][_0x489bd1(0x13f)]({'user_id':_0x41ceb9?.[_0x489bd1(0x168)],'nickname':_0x41ceb9?.['name'],'avatar':_0x41ceb9?.[_0x489bd1(0x17c)],'desc':_0x41ceb9?.['description']});}}catch(_0x873656){logDebug(_0x489bd1(0x141),_0x873656);}if(_0x3e58d4===WebHonorType['EMOTION']||_0x3e58d4===WebHonorType[_0x489bd1(0xfc)])try{let _0x1cd315=await _0x574547[_0x489bd1(0x153)](_0x2b5769,_0x5a8143,0x6);if(!_0x1cd315)throw new Error(_0x574547['RWyBL']);_0x1d324b['emotion_list']=[];for(const _0xd4a7d3 of _0x1cd315){_0x1d324b['emotion_list'][_0x489bd1(0x13f)]({'user_id':_0xd4a7d3?.[_0x489bd1(0x168)],'nickname':_0xd4a7d3?.[_0x489bd1(0xf4)],'avatar':_0xd4a7d3?.[_0x489bd1(0x17c)],'desc':_0xd4a7d3?.[_0x489bd1(0x147)]});}}catch(_0x4c890d){_0x574547['foCLV'](logDebug,_0x574547[_0x489bd1(0x12c)],_0x4c890d);}return(_0x574547[_0x489bd1(0x120)](_0x3e58d4,WebHonorType[_0x489bd1(0x157)])||_0x574547['EahwM'](_0x3e58d4,WebHonorType[_0x489bd1(0xfc)]))&&(_0x1d324b[_0x489bd1(0xfe)]=[]),_0x1d324b;}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index f1017bee..d673e2d5 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x2d0b46=_0x10f4;function _0x17ab(){const _0x35d79e=['140022008','306724UqdZfA','数据库初始化失败','undefined','_GW_B','init','oJANL','dxNXn','UbJiQ','createMemberListScene','jGZoQ','data:image/png;base64,','WzJMt','登录失败','onGroupListUpdate','getNTUserDataInfoConfig','[KickedOffLine]\x20[','addKernelGroupListener','getProfileService','NodeIKernelMsgListener','getLoginList','getBuddyService','jDphp','quickLogin','constructor',')已登录,无法重复登录','set','INMoB','getBuddyList','initSession','keVzC','LaDxB','orbSU','ZCONH','get','delete','push','230352WmNbQZ','GIApW','GZNJk','length','groupMemberList_MainWindow','CvqhT','message_sent','map','1173428zzxbFT','uid','lqFTL','msgId','result','onMemberListChange','MsgListener','IoZqr','hex','HLtUG','cPgoF','PiqNF','本账号数据/缓存目录:','nTTAA','jefoK','21uswSNL','assign','catch','当前账号(','cNXDe','fileLogLevel','addMsg','onQRCodeLoginSucceed','NodeIGlobalAdapter','getQRCodePicture','LocalLoginInfoList','recallTime','now','getMsgService','jzIJk','MleUa','快速登录不可用','57123oGCogE','3ibTlLv','xRunz','ymfRv','./nt_qq/global','onLoginSuccessFuncList','qblhc','onLoginFailed','tipsDesc','session','Sjqci','forEach','consoleLogLevel','iDUZp','loginService','NodeIKernelGroupListener','V1_WIN_NQ_','isQuickLogin','NodeIKernelProfileListener','ProfileListener','clientType','BuddyListener','onProfileDetailInfoChanged','zvOaa','450WzqlQD','curVersion','xQIFO','GroupListener','kUKyB','md5','NodeQQNTWrapperUtil','addKernelLoginListener','NodeIKernelBuddyListener','loginListener','onRecvSysMsg','GZXFN','init\x20failed\x20','split','packet_received','base64','tipsTitle','EGVPU','uin','stringify','uPRQp','-v2.db','groupCode','floor','kdQRu','onKickedOffLine','digest','NodeIDependsAdapter','has','gfwad','resolve','onAddSendMsg','buddyList','initConfig','getNextMemberList','账号设备(','tXiyo','onBuddyListChange','CZWjR','EVxZH','last_message_time','engine','342950EmjQFi','RklOO','NodeIKernelLoginService','update','onQRCodeGetPicture','wUiGd','consoleLog','dataPath','then','VMNss','eHrRr','passwordLogin','addKernelMsgListener','./.config/QQ','\x20has\x20no\x20method\x20','IVBdd','klfBS','42dHRFbg','proxyHandler','pJzTl','getGroupService','mkdirSync','onSelfStatusChanged','hLFRw','addKernelProfileListener','initDataListener','util','onRecvMsg','onSessionInitComplete','dataPathGlobal','initWithDeskTopConfig','addListener','quickLoginWithUin','./NapCat/data','702440rCDPqh','5562469WuEvrF','getMsgByLongId','没有可快速登录的QQ号'];_0x17ab=function(){return _0x35d79e;};return _0x17ab();}(function(_0x462a95,_0x270fae){const _0x4c1e12=_0x10f4,_0x414398=_0x462a95();while(!![]){try{const _0x583c3f=parseInt(_0x4c1e12(0x170))/0x1+parseInt(_0x4c1e12(0xec))/0x2*(-parseInt(_0x4c1e12(0x10d))/0x3)+parseInt(_0x4c1e12(0x175))/0x4+parseInt(_0x4c1e12(0x14e))/0x5*(parseInt(_0x4c1e12(0x15f))/0x6)+parseInt(_0x4c1e12(0xfb))/0x7*(parseInt(_0x4c1e12(0x199))/0x8)+parseInt(_0x4c1e12(0x10c))/0x9*(-parseInt(_0x4c1e12(0x124))/0xa)+parseInt(_0x4c1e12(0x171))/0xb;if(_0x583c3f===_0x270fae)break;else _0x414398['push'](_0x414398['shift']());}catch(_0x292958){_0x414398['push'](_0x414398['shift']());}}}(_0x17ab,0xef027));import _0x4abd27 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x598642 from'node:path';import _0x3e3427 from'node:os';function _0x10f4(_0xbb1991,_0xe5a5b8){const _0x17ab76=_0x17ab();return _0x10f4=function(_0x10f41a,_0x15981e){_0x10f41a=_0x10f41a-0xea;let _0x4a8bd7=_0x17ab76[_0x10f41a];return _0x4a8bd7;},_0x10f4(_0xbb1991,_0xe5a5b8);}import _0x56ce36 from'node:fs';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';import _0x366ad8 from'node:crypto';import{rawFriends,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{[_0x2d0b46(0x115)];[_0x2d0b46(0x168)];[_0x2d0b46(0x14d)];[_0x2d0b46(0x12d)];['loginService'];[_0x2d0b46(0x111)]=[];[_0x2d0b46(0x160)]={'get'(target,prop,receiver){const _0x50e564=_0x2d0b46,cGesin={'IoZqr':function(callee,param1){return callee(param1);},'keVzC':_0x50e564(0x177)};if(typeof target[prop]===cGesin[_0x50e564(0x192)])return(...args)=>{const _0xd3a33f=_0x50e564;cGesin[_0xd3a33f(0xf3)](logDebug,target[_0xd3a33f(0x18c)]['name']+_0xd3a33f(0x15c)+prop);};return Reflect[_0x50e564(0x196)](target,prop,receiver);}};constructor(){const _0x28b474=_0x2d0b46,_0x483cc0={'dxNXn':function(_0x237436,_0x353504){return _0x237436(_0x353504);},'UbJiQ':function(_0xd13e,_0x412290){return _0xd13e+_0x412290;},'INMoB':_0x28b474(0x18d),'gfwad':function(_0x3246fa,_0x608fca,_0x2151ad){return _0x3246fa(_0x608fca,_0x2151ad);},'oDSrv':function(_0x18ebbc,_0x19aa6d){return _0x18ebbc instanceof _0x19aa6d;},'HLtUG':function(_0x2de282,_0x246c25){return _0x2de282(_0x246c25);},'cPgoF':function(_0x4bcaa2,_0x4c54df,_0x47bc32){return _0x4bcaa2(_0x4c54df,_0x47bc32);},'GIApW':_0x28b474(0xf8),'klfBS':'initSession\x20failed','tXiyo':_0x28b474(0x181),'WzJMt':function(_0x1e9157,_0x5d545f){return _0x1e9157==_0x5d545f;}};this[_0x28b474(0x14d)]=new _0x4abd27['NodeIQQNTWrapperEngine'](),this['util']=new _0x4abd27[(_0x28b474(0x12a))](),this['loginService']=new _0x4abd27[(_0x28b474(0x150))](),this[_0x28b474(0x115)]=new _0x4abd27['NodeIQQNTWrapperSession'](),this[_0x28b474(0x12d)]=new LoginListener(),this[_0x28b474(0x12d)]['onUserLoggedIn']=_0x76cae8=>{const _0x444e82=_0x28b474;_0x483cc0[_0x444e82(0x17b)](logError,_0x483cc0[_0x444e82(0x17c)](_0x444e82(0xfe),_0x76cae8)+_0x483cc0[_0x444e82(0x18f)]);},this[_0x28b474(0x12d)][_0x28b474(0x102)]=_0x515ea1=>{const _0x3fe6ea=_0x28b474;this[_0x3fe6ea(0x191)](_0x515ea1[_0x3fe6ea(0x136)],_0x515ea1[_0x3fe6ea(0xed)])[_0x3fe6ea(0x156)](_0x59b024=>{const _0x27f538=_0x3fe6ea,_0x31df37={'wUiGd':function(_0x21c923,_0x3fbf8a,_0x5175bf){const _0x30dbb5=_0x10f4;return _0x483cc0[_0x30dbb5(0x141)](_0x21c923,_0x3fbf8a,_0x5175bf);},'ebwiV':function(_0x2067c4,_0x1e61f7){return _0x483cc0['oDSrv'](_0x2067c4,_0x1e61f7);}};selfInfo[_0x27f538(0x136)]=_0x515ea1['uin'],selfInfo[_0x27f538(0xed)]=_0x515ea1[_0x27f538(0xed)],napCatConfig['read'](),setLogLevel(napCatConfig[_0x27f538(0x100)],napCatConfig[_0x27f538(0x118)]),_0x483cc0[_0x27f538(0xf5)](enableFileLog,napCatConfig['fileLog']),_0x483cc0['dxNXn'](enableConsoleLog,napCatConfig[_0x27f538(0x154)]),_0x483cc0[_0x27f538(0xf5)](setLogSelfInfo,selfInfo);const _0x5b9949=_0x598642['resolve'](this[_0x27f538(0x155)],_0x27f538(0x16f));_0x56ce36[_0x27f538(0x163)](_0x5b9949,{'recursive':!![]}),_0x483cc0['cPgoF'](logDebug,_0x483cc0[_0x27f538(0x19a)],_0x5b9949),dbUtil[_0x27f538(0x179)](_0x598642[_0x27f538(0x142)](_0x5b9949,'./'+_0x515ea1[_0x27f538(0x136)]+_0x27f538(0x139)))['then'](()=>{const _0x697eae=_0x27f538,_0x49b131={'RfWBX':function(_0x1e2f79,_0x47709b,_0x37df7e){const _0x31e13e=_0x10f4;return _0x31df37[_0x31e13e(0x153)](_0x1e2f79,_0x47709b,_0x37df7e);},'xQIFO':function(_0xb63fc8,_0xfb38b7){return _0x31df37['ebwiV'](_0xb63fc8,_0xfb38b7);}};this[_0x697eae(0x167)](),this[_0x697eae(0x111)][_0x697eae(0xeb)](_0x5a3c91=>{const _0xd666a8=_0x697eae,_0x1ed62a={'EGVPU':function(_0x5e407d,_0x5436eb,_0x21d432){return _0x49b131['RfWBX'](_0x5e407d,_0x5436eb,_0x21d432);},'jefoK':function(_0x4c990c,_0x318e47){const _0x3f460d=_0x10f4;return _0x49b131[_0x3f460d(0x126)](_0x4c990c,_0x318e47);}};new Promise((_0x3c5367,_0x4d5448)=>{const _0x1b52cc=_0x10f4,_0x2c3e39=_0x1ed62a[_0x1b52cc(0x135)](_0x5a3c91,_0x515ea1[_0x1b52cc(0x136)],_0x515ea1['uid']);_0x1ed62a[_0x1b52cc(0xfa)](_0x2c3e39,Promise)&&_0x2c3e39['then'](_0x3c5367)['catch'](_0x4d5448);})[_0xd666a8(0x156)]();});})['catch'](_0x4377d6=>{const _0xac5002=_0x27f538;_0x31df37['wUiGd'](logError,_0xac5002(0x176),_0x4377d6);});})[_0x3fe6ea(0xfd)](_0x5b96b2=>{const _0x515889=_0x3fe6ea;_0x483cc0[_0x515889(0xf6)](logError,_0x483cc0[_0x515889(0x15e)],_0x5b96b2);throw new Error('启动失败:\x20'+JSON[_0x515889(0x137)](_0x5b96b2));});},this[_0x28b474(0x12d)]['onQRCodeSessionFailed']=(_0x895edb,_0xcb8ab3,_0x156530)=>{const _0x13701d=_0x28b474;_0x483cc0[_0x13701d(0x141)](logError,_0x483cc0[_0x13701d(0x148)],_0x156530),_0x483cc0['WzJMt'](_0x895edb,0x1)&&_0x483cc0[_0x13701d(0x180)](_0xcb8ab3,0x3)&&this['loginService'][_0x13701d(0x104)]();},this[_0x28b474(0x12d)][_0x28b474(0x113)]=_0x1e89ec=>{const _0x435198=_0x28b474;_0x483cc0[_0x435198(0xf6)](logError,_0x435198(0x181),_0x1e89ec);},this[_0x28b474(0x12d)]=new Proxy(this[_0x28b474(0x12d)],this[_0x28b474(0x160)]),this[_0x28b474(0x11a)][_0x28b474(0x12b)](new _0x4abd27['NodeIKernelLoginListener'](this[_0x28b474(0x12d)])),this[_0x28b474(0x145)]();}get[_0x2d0b46(0x155)](){const _0x4f93da=_0x2d0b46,_0x2d1e73={'eHrRr':_0x4f93da(0x15b)};let _0x422208=this[_0x4f93da(0x168)][_0x4f93da(0x183)]();return!_0x422208&&(_0x422208=_0x598642[_0x4f93da(0x142)](_0x3e3427['homedir'](),_0x2d1e73[_0x4f93da(0x158)]),_0x56ce36[_0x4f93da(0x163)](_0x422208,{'recursive':!![]})),_0x422208;}get['dataPathGlobal'](){const _0x3dcacb=_0x2d0b46,_0x22d0ba={'iDUZp':_0x3dcacb(0x110)};return _0x598642[_0x3dcacb(0x142)](this[_0x3dcacb(0x155)],_0x22d0ba[_0x3dcacb(0x119)]);}[_0x2d0b46(0x145)](){const _0x24cd77=_0x2d0b46,_0x2c51bb={'uPRQp':'Windows\x2010\x20Pro'};this[_0x24cd77(0x14d)][_0x24cd77(0x16c)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x24cd77(0x125)],'os_version':_0x2c51bb[_0x24cd77(0x138)],'use_xlog':!![],'qua':_0x24cd77(0x11c)+qqVersionConfigInfo[_0x24cd77(0x125)]['replace']('-','_')+_0x24cd77(0x178),'global_path_config':{'desktopGlobalPath':this[_0x24cd77(0x16b)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x4abd27[(_0x24cd77(0x103))](new GlobalAdapter())),this[_0x24cd77(0x11a)][_0x24cd77(0x145)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this['dataPathGlobal'],'clientVer':qqVersionConfigInfo[_0x24cd77(0x125)],'hostName':hostname});}[_0x2d0b46(0x191)](_0x23082d,_0x3068c3){const _0x5aef36=_0x2d0b46,_0xe427e2={'CZWjR':function(_0x2a815e,_0x34747f){return _0x2a815e===_0x34747f;},'GZXFN':function(_0x571ed2,_0x3efa93,_0x12d4cd,_0x1a9e99){return _0x571ed2(_0x3efa93,_0x12d4cd,_0x1a9e99);},'kdQRu':function(_0x6e45ea,_0x4c3515){return _0x6e45ea(_0x4c3515);},'orbSU':function(_0x48541a,_0x40d1ec){return _0x48541a+_0x40d1ec;},'xRunz':_0x5aef36(0x130)};return new Promise((_0x204c97,_0x45eece)=>{const _0x187ae4=_0x5aef36,_0x296508=_0xe427e2[_0x187ae4(0x12f)](genSessionConfig,_0x23082d,_0x3068c3,this[_0x187ae4(0x155)]),_0x3673e9=new SessionListener();_0x3673e9[_0x187ae4(0x16a)]=_0x271d1d=>{const _0x19091c=_0x187ae4;if(_0xe427e2[_0x19091c(0x14a)](_0x271d1d,0x0))return _0x204c97(0x0);_0x45eece(_0x271d1d);},this[_0x187ae4(0x115)][_0x187ae4(0x179)](_0x296508,new _0x4abd27[(_0x187ae4(0x13f))](new DependsAdapter()),new _0x4abd27['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x4abd27['NodeIKernelSessionListener'](_0x3673e9));try{this['session']['startNT'](0x0);}catch(_0x535a1e){try{this['session']['startNT']();}catch(_0xb35feb){_0xe427e2[_0x187ae4(0x13c)](_0x45eece,_0xe427e2[_0x187ae4(0x194)](_0xe427e2[_0x187ae4(0x10e)],_0xb35feb));}}});}[_0x2d0b46(0x167)](){const _0x88abe3=_0x2d0b46,_0x3e5a0b={'CvqhT':function(_0x3976c2,_0x47401b){return _0x3976c2===_0x47401b;},'Sjqci':function(_0x304c41,_0x5c72aa){return _0x304c41+_0x5c72aa;},'jDphp':_0x88abe3(0x147),'oJANL':')\x20在线状态变更','pJzTl':function(_0x20e337,_0x5008f1){return _0x20e337(_0x5008f1);},'IVBdd':function(_0x5c2afd,_0x4f7cda){return _0x5c2afd+_0x4f7cda;},'MiWcC':_0x88abe3(0x184),'RklOO':function(_0x1d1981,_0x27677a){return _0x1d1981/_0x27677a;},'EVxZH':function(_0x3a8aa7,_0x5c1548){return _0x3a8aa7===_0x5c1548;},'jzIJk':_0x88abe3(0x19d)},_0x53faf0=new MsgListener();_0x53faf0['onLineDev']=_0x2eea80=>{const _0x2436c4=_0x88abe3,_0x4e3dde={'PiqNF':function(_0x5ceb76,_0x1ad98b){const _0x5d59a3=_0x10f4;return _0x3e5a0b[_0x5d59a3(0x19e)](_0x5ceb76,_0x1ad98b);},'jTMRe':function(_0x4ddfdc,_0x4ef350){return _0x4ddfdc(_0x4ef350);},'QxROI':function(_0x225df8,_0x361c1a){const _0x2613e5=_0x10f4;return _0x3e5a0b[_0x2613e5(0x116)](_0x225df8,_0x361c1a);},'VMNss':_0x3e5a0b[_0x2436c4(0x18a)],'jGZoQ':_0x3e5a0b[_0x2436c4(0x17a)]};_0x2eea80[_0x2436c4(0xeb)](_0x2bfbcd=>{const _0x36409e=_0x2436c4;_0x4e3dde[_0x36409e(0xf7)](_0x2bfbcd[_0x36409e(0x120)],0x2)&&_0x4e3dde['jTMRe'](log,_0x4e3dde['QxROI'](_0x4e3dde[_0x36409e(0x157)],_0x2bfbcd['devUid'])+_0x4e3dde[_0x36409e(0x17e)]);});},_0x53faf0[_0x88abe3(0x13d)]=_0x2da15d=>{const _0x49a9c2=_0x88abe3;_0x3e5a0b[_0x49a9c2(0x161)](log,_0x3e5a0b[_0x49a9c2(0x15d)](_0x3e5a0b['Sjqci'](_0x3e5a0b['MiWcC']+_0x2da15d[_0x49a9c2(0x134)],']\x20'),_0x2da15d[_0x49a9c2(0x114)]));},_0x53faf0['onMsgInfoListUpdate']=_0x2b6720=>{const _0x97b13e=_0x88abe3;stat[_0x97b13e(0x132)]+=0x1,_0x2b6720[_0x97b13e(0xeb)](_0x4356f1=>{const _0x4bf5ad=_0x97b13e;_0x4356f1[_0x4bf5ad(0x106)]==='0'?dbUtil[_0x4bf5ad(0x101)](_0x4356f1)[_0x4bf5ad(0x156)]()['catch']():dbUtil[_0x4bf5ad(0x172)](_0x4356f1[_0x4bf5ad(0xef)])[_0x4bf5ad(0x156)](_0x20162e=>{const _0x121b5e=_0x4bf5ad;_0x20162e&&(_0x20162e[_0x121b5e(0x106)]=_0x4356f1['recallTime'],dbUtil['updateMsg'](_0x20162e)[_0x121b5e(0x156)]());});});},_0x53faf0[_0x88abe3(0x143)]=_0x4aab32=>{const _0x35ee54=_0x88abe3;stat['packet_sent']+=0x1,stat[_0x35ee54(0xea)]+=0x1,stat[_0x35ee54(0x14c)]=Math[_0x35ee54(0x13b)](_0x3e5a0b[_0x35ee54(0x14f)](Date[_0x35ee54(0x107)](),0x3e8));},_0x53faf0[_0x88abe3(0x169)]=_0x595354=>{const _0x4358d6=_0x88abe3;stat[_0x4358d6(0x132)]+=0x1,stat['message_received']+=_0x595354[_0x4358d6(0x19c)],stat[_0x4358d6(0x14c)]=Math[_0x4358d6(0x13b)](Date[_0x4358d6(0x107)]()/0x3e8);},_0x53faf0[_0x88abe3(0x12e)]=(..._0x59b28b)=>{const _0x9a4bc6=_0x88abe3;stat[_0x9a4bc6(0x132)]+=0x1;},this[_0x88abe3(0x16d)](_0x53faf0);const _0x5020cd=new BuddyListener();_0x5020cd[_0x88abe3(0x149)]=_0x594019=>{const _0x10dc41=_0x88abe3;rawFriends[_0x10dc41(0x19c)]=0x0,rawFriends['push'](..._0x594019);for(const _0x2d9efe of _0x594019){for(const _0x1e0342 of _0x2d9efe[_0x10dc41(0x144)]){const _0x28f45c=friends[_0x10dc41(0x196)](_0x1e0342[_0x10dc41(0xed)]);uid2UinMap[_0x1e0342[_0x10dc41(0xed)]]=_0x1e0342[_0x10dc41(0x136)],_0x28f45c?Object[_0x10dc41(0xfc)](_0x28f45c,_0x1e0342):friends[_0x10dc41(0x18e)](_0x1e0342['uid'],_0x1e0342);}}},this[_0x88abe3(0x16d)](_0x5020cd),this[_0x88abe3(0x115)][_0x88abe3(0x189)]()[_0x88abe3(0x190)](!![])['then'](_0x54b9da=>{});const _0x4f5c3d=new ProfileListener();_0x4f5c3d[_0x88abe3(0x122)]=_0x39855e=>{const _0x95564c=_0x88abe3;_0x3e5a0b[_0x95564c(0x14b)](_0x39855e[_0x95564c(0xed)],selfInfo[_0x95564c(0xed)])&&Object[_0x95564c(0xfc)](selfInfo,_0x39855e);},_0x4f5c3d[_0x88abe3(0x164)]=_0xbebdb4=>{},this[_0x88abe3(0x16d)](_0x4f5c3d);const _0x1ebd71=new GroupListener();_0x1ebd71[_0x88abe3(0x182)]=(_0x5562b6,_0x43c47e)=>{const _0x15adde=_0x88abe3;_0x43c47e[_0x15adde(0xeb)](_0x407050=>{const _0x195379=_0x15adde,_0x227b2e=groups[_0x195379(0x196)](_0x407050[_0x195379(0x13a)]);if(_0x227b2e)Object[_0x195379(0xfc)](_0x227b2e,_0x407050);else{groups[_0x195379(0x18e)](_0x407050[_0x195379(0x13a)],_0x407050);const _0x139023=this[_0x195379(0x115)]['getGroupService']()[_0x195379(0x17d)](_0x407050['groupCode'],_0x3e5a0b[_0x195379(0x109)]);this['session'][_0x195379(0x162)]()[_0x195379(0x146)](_0x139023,undefined,0xbb8)[_0x195379(0x156)](_0x3e5978=>{});}});},_0x1ebd71[_0x88abe3(0xf1)]=_0xb0535=>{const _0xb639e8=_0x88abe3,_0x3a2536=_0xb0535['sceneId'][_0xb639e8(0x131)]('_')[0x0];if(groupMembers[_0xb639e8(0x140)](_0x3a2536)){const _0x3a5fa1=groupMembers[_0xb639e8(0x196)](_0x3a2536);_0xb0535['infos'][_0xb639e8(0x117)]((_0x199adc,_0x388139)=>{const _0x3f3684=_0xb639e8,_0x37c63d=_0x3a5fa1[_0x3f3684(0x196)](_0x388139);_0x37c63d?Object[_0x3f3684(0xfc)](_0x37c63d,_0x199adc):_0x3a5fa1[_0x3f3684(0x18e)](_0x388139,_0x199adc);});}else groupMembers[_0xb639e8(0x18e)](_0x3a2536,_0xb0535['infos']);},_0x1ebd71['onMemberInfoChange']=(_0x2f9f2f,_0xf58c1e,_0x493098)=>{const _0x2540f3=_0x88abe3;_0x3e5a0b[_0x2540f3(0x14b)](_0xf58c1e,0x0)&&_0x493098['get'](selfInfo[_0x2540f3(0xed)])&&_0x493098[_0x2540f3(0x196)](selfInfo[_0x2540f3(0xed)])?.['isDelete']&&setTimeout(()=>{const _0x506e3b=_0x2540f3;groups[_0x506e3b(0x197)](_0x2f9f2f);},0x1388);_0x493098['forEach']((_0x3a0611,_0xcb6af1)=>{const _0x36f78b=_0x2540f3;uid2UinMap[_0xcb6af1]=_0x3a0611[_0x36f78b(0x136)];});const _0x3ea969=groupMembers[_0x2540f3(0x196)](_0x2f9f2f);_0x3ea969?_0x493098['forEach']((_0xfc93b5,_0x2e0dd4)=>{const _0x3b204a=_0x2540f3,_0x15596f=_0x3ea969['get'](_0x2e0dd4);_0x15596f?Object['assign'](_0x15596f,_0xfc93b5):_0x3ea969[_0x3b204a(0x18e)](_0x2e0dd4,_0xfc93b5);}):groupMembers[_0x2540f3(0x18e)](_0x2f9f2f,_0x493098);},this[_0x88abe3(0x16d)](_0x1ebd71);}[_0x2d0b46(0x16d)](_0x1da2fd){const _0x148f4a=_0x2d0b46,_0x39ca6e={'cOaSU':_0x148f4a(0x121),'JLPuM':_0x148f4a(0x11f)};_0x1da2fd=new Proxy(_0x1da2fd,this['proxyHandler']);switch(_0x1da2fd[_0x148f4a(0x18c)]['name']){case _0x39ca6e['cOaSU']:{return this[_0x148f4a(0x115)]['getBuddyService']()['addKernelBuddyListener'](new _0x4abd27[(_0x148f4a(0x12c))](_0x1da2fd));}case _0x148f4a(0x127):{return this[_0x148f4a(0x115)][_0x148f4a(0x162)]()[_0x148f4a(0x185)](new _0x4abd27[(_0x148f4a(0x11b))](_0x1da2fd));}case _0x148f4a(0xf2):{return this['session'][_0x148f4a(0x108)]()[_0x148f4a(0x15a)](new _0x4abd27[(_0x148f4a(0x187))](_0x1da2fd));}case _0x39ca6e['JLPuM']:{return this[_0x148f4a(0x115)][_0x148f4a(0x186)]()[_0x148f4a(0x166)](new _0x4abd27[(_0x148f4a(0x11e))](_0x1da2fd));}default:return-0x1;}}['onLoginSuccess'](_0x14eea2){const _0xd3f93d=_0x2d0b46;this[_0xd3f93d(0x111)][_0xd3f93d(0x198)](_0x14eea2);}async[_0x2d0b46(0x18b)](_0x2785e8){const _0x438d48=_0x2d0b46,_0x193758={'ZCONH':function(_0x49a43a,_0x5c81ae){return _0x49a43a!==_0x5c81ae;},'ymfRv':_0x438d48(0x173),'hLFRw':function(_0x4ae98b,_0x34e338){return _0x4ae98b(_0x34e338);},'zvOaa':function(_0x4d6d5e,_0x583d38){return _0x4d6d5e+_0x583d38;},'LaDxB':'快速登录失败\x20'},_0x2d882a=await this[_0x438d48(0x11a)][_0x438d48(0x188)]();if(_0x193758[_0x438d48(0x195)](_0x2d882a[_0x438d48(0xf0)],0x0))throw new Error(_0x193758[_0x438d48(0x10f)]);const _0x445fc9=_0x2d882a[_0x438d48(0x105)]['find'](_0x31104f=>_0x31104f[_0x438d48(0x136)]===_0x2785e8);if(!_0x445fc9||!_0x445fc9?.[_0x438d48(0x11d)])throw new Error(_0x2785e8+_0x438d48(0x10b));await _0x193758[_0x438d48(0x165)](sleep,0x3e8);const _0x5b506e=await this[_0x438d48(0x11a)][_0x438d48(0x16e)](_0x2785e8);if(!_0x5b506e[_0x438d48(0xf0)])throw new Error(_0x193758[_0x438d48(0x123)](_0x193758[_0x438d48(0x193)],_0x5b506e['loginErrorInfo']['errMsg']));return _0x5b506e;}async['qrLogin'](_0x277090){const _0x585858=_0x2d0b46,_0x4ba9bd={'MleUa':_0x585858(0x133),'nTTAA':function(_0x17e1e8,_0x4e9203,_0x54a71f,_0x827aba){return _0x17e1e8(_0x4e9203,_0x54a71f,_0x827aba);}};return new Promise((_0x1ca646,_0x2cc769)=>{const _0x23f04b=_0x585858;this[_0x23f04b(0x12d)][_0x23f04b(0x152)]=_0x1a1c08=>{const _0x4a767a=_0x23f04b,_0x37d4b8=_0x1a1c08['pngBase64QrcodeData'][_0x4a767a(0x131)](_0x4a767a(0x17f))[0x1],_0x3dc116=Buffer['from'](_0x37d4b8,_0x4ba9bd[_0x4a767a(0x10a)]);_0x4ba9bd[_0x4a767a(0xf9)](_0x277090,_0x1a1c08['qrcodeUrl'],_0x1a1c08['pngBase64QrcodeData'],_0x3dc116);},this[_0x23f04b(0x11a)]['getQRCodePicture']();});}async[_0x2d0b46(0x159)](_0xb770cd,_0x5d3263,_0x37bc97,_0x13bf38,_0x33c993){const _0x4a4cc9=_0x2d0b46,_0x4d93d1={'kUKyB':_0x4a4cc9(0xf4),'cNXDe':function(_0x475454,_0x5cfcc2){return _0x475454&&_0x5cfcc2;},'lqFTL':function(_0x4b92dd,_0x4dd670){return _0x4b92dd||_0x4dd670;},'dQCby':function(_0x2799fe,_0x41154f){return _0x2799fe||_0x41154f;},'qblhc':_0x4a4cc9(0x174),'GZNJk':'140022013'},_0x4dcb98=_0x366ad8['createHash'](_0x4a4cc9(0x129))[_0x4a4cc9(0x151)](_0x5d3263)[_0x4a4cc9(0x13e)](_0x4d93d1[_0x4a4cc9(0x128)]),_0xc74db4={'uin':_0xb770cd,'passwordMd5':_0x4dcb98,'step':_0x4d93d1[_0x4a4cc9(0xff)](_0x37bc97,_0x13bf38)&&_0x33c993?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x4d93d1[_0x4a4cc9(0xee)](_0x37bc97,''),'proofWaterRand':_0x4d93d1['lqFTL'](_0x13bf38,''),'proofWaterSid':_0x4d93d1['dQCby'](_0x33c993,'')};await this['loginService']['getLoginList'](),await sleep(0x3e8);const _0x341069=await this['loginService'][_0x4a4cc9(0x159)](_0xc74db4);switch(_0x341069[_0x4a4cc9(0xf0)]){case'0':{break;}case _0x4d93d1[_0x4a4cc9(0x112)]:{break;}case'4':case _0x4d93d1[_0x4a4cc9(0x19b)]:default:}}async['getQuickLoginList'](){const _0x6b2e8a=_0x2d0b46,_0x5a6658=await this[_0x6b2e8a(0x11a)][_0x6b2e8a(0x188)]();return _0x5a6658;}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x51e0cc=_0x40a9;(function(_0x28c1e2,_0x44be30){const _0x48110d=_0x40a9,_0x38190b=_0x28c1e2();while(!![]){try{const _0x3ed40d=-parseInt(_0x48110d(0x12f))/0x1*(-parseInt(_0x48110d(0x123))/0x2)+parseInt(_0x48110d(0xf1))/0x3+-parseInt(_0x48110d(0x16a))/0x4+parseInt(_0x48110d(0xfa))/0x5*(-parseInt(_0x48110d(0x145))/0x6)+-parseInt(_0x48110d(0x137))/0x7*(-parseInt(_0x48110d(0x12b))/0x8)+-parseInt(_0x48110d(0x199))/0x9+-parseInt(_0x48110d(0x113))/0xa*(-parseInt(_0x48110d(0xe8))/0xb);if(_0x3ed40d===_0x44be30)break;else _0x38190b['push'](_0x38190b['shift']());}catch(_0x58fdfe){_0x38190b['push'](_0x38190b['shift']());}}}(_0x5212,0xa1714));import _0x1fb4f9 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x5d940f from'node:path';import _0x1f5d87 from'node:os';import _0x50f2b0 from'node:fs';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';import _0x2b8576 from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';function _0x40a9(_0x43aaf2,_0x4375a1){const _0x521218=_0x5212();return _0x40a9=function(_0x40a94a,_0x13cf1a){_0x40a94a=_0x40a94a-0xdb;let _0x58b343=_0x521218[_0x40a94a];return _0x58b343;},_0x40a9(_0x43aaf2,_0x4375a1);}import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';function _0x5212(){const _0x20133e=['ZTGZX','onLoginSuccess','getGroupService','onKickedOffLine','本账号数据/缓存目录:','-v2.db','BrErv','packet_sent','getNTUserDataInfoConfig','登录失败','iCXiE','140022013','没有可快速登录的QQ号','16740670FrooCu','VPnDi','oZzta','onMemberInfoChange','VSJdw','onUserLoggedIn','now','JhuER','onMsgInfoListUpdate','./nt_qq/global','onMemberListChange','tZYfP','uin','getQRCodePicture','ScZkC','base64','66iUtlKK','result','NodeIKernelSessionListener','errMsg','NodeIKernelLoginService','loginListener','getNextMemberList','NodeIKernelBuddyListener','510728tjLsLs','initSession','msgId','dataPath','12542rOowwY',')已登录,无法重复登录','./.config/QQ','dataPathGlobal','快速登录失败\x20','pngBase64QrcodeData','OqKjP','onSessionInitComplete','70jmppYv','NodeIKernelMsgListener','YIQxc','[KickedOffLine]\x20[','floor','addListener','infos','message_sent','md5','WdPHx','getMsgByLongId','rvmcW','140022008','name','72NryJaC','curVersion','V1_WIN_NQ_','DUOpx','message_received','znWJO','./NapCat/data','forEach','onGroupListUpdate','ynzkd','NodeQQNTWrapperUtil','groupCode','MsgListener','catch','clientType','getProfileService','loginService','NodeIKernelLoginListener','qrLogin','then','fileLogLevel','sceneId','mkdirSync','buddyList','quickLogin','packet_received','fileLog','LlxSU','KcSny','addKernelBuddyListener','init','YfIAM','last_message_time','onBuddyListChange','assign','NodeIQQNTWrapperSession','dPvcm','79964WLVeyC','split','util','zgpvY','delete','getBuddyService','NodeIGlobalAdapter','proxyHandler','getQuickLoginList','UcmlN','NodeIDispatcherAdapter','NodeIDependsAdapter','data:image/png;base64,','GroupListener','engine','find','NIeJN','consoleLogLevel','BuddyListener','LEPDa','awNwx','DjdHL','onLineDev','homedir','Windows\x2010\x20Pro','eiobm',')\x20在线状态变更','startNT','consoleLog','init\x20failed\x20','wXvKK','tipsTitle','hex','devUid','TzBnp','onQRCodeGetPicture','NodeIKernelGroupListener','isQuickLogin','XtDeK','TZwHk','get','quickLoginWithUin','qmnkx','onSelfStatusChanged','addKernelProfileListener','set','uid','6888780ujCVVq','push','initDataListener','VzSOj','_GW_B','stringify','undefined','initSession\x20failed','cCPqX','onAddSendMsg','PvCtw','LoKdr','eJMBB','bdZaK','resolve','qrcodeUrl','11UNUimz','getBuddyList','constructor','LgHEy','initConfig','dVKGm','数据库初始化失败','ProfileListener','loginErrorInfo','126312tyCMeB','session','onLoginSuccessFuncList','from','XLYsN','onQRCodeSessionFailed','getLoginList','length','replace','550745UGCCun','onProfileDetailInfoChanged','map','onQRCodeLoginSucceed','isDelete','lyuHg','updateMsg','kVnoC','账号设备(','onRecvMsg','recallTime','createMemberListScene'];_0x5212=function(){return _0x20133e;};return _0x5212();}export class NapCatCore{[_0x51e0cc(0xf2)];['util'];[_0x51e0cc(0x178)];[_0x51e0cc(0x128)];[_0x51e0cc(0x155)];[_0x51e0cc(0xf3)]=[];[_0x51e0cc(0x171)]={'get'(target,prop,receiver){const _0x7c867f=_0x51e0cc,WMsrhU={'nhOvj':function(callee,param1){return callee(param1);},'OqKjP':_0x7c867f(0xde)};if(typeof target[prop]===WMsrhU[_0x7c867f(0x135)])return(...args)=>{const _0x5b650d=_0x7c867f;WMsrhU['nhOvj'](logDebug,target[_0x5b650d(0xea)][_0x5b650d(0x144)]+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x7c867f(0x192)](target,prop,receiver);}};constructor(){const _0x4ebcf7=_0x51e0cc,_0x5e513b={'iCXiE':function(_0x28bfc4,_0x3a456e){return _0x28bfc4+_0x3a456e;},'ScZkC':_0x4ebcf7(0xdf),'tZYfP':function(_0x14d1e5,_0xba1316,_0x2083b2){return _0x14d1e5(_0xba1316,_0x2083b2);},'MdUYK':_0x4ebcf7(0xee),'bdZaK':function(_0x5d7721,_0x3808c8){return _0x5d7721(_0x3808c8);},'DjdHL':_0x4ebcf7(0x14b),'SULfA':_0x4ebcf7(0x10a),'KcSny':function(_0x47bd96,_0x88dbde){return _0x47bd96==_0x88dbde;},'BrErv':function(_0x1f5a74,_0x5ed9ef){return _0x1f5a74==_0x5ed9ef;},'XtDeK':_0x4ebcf7(0x10f)};this[_0x4ebcf7(0x178)]=new _0x1fb4f9['NodeIQQNTWrapperEngine'](),this[_0x4ebcf7(0x16c)]=new _0x1fb4f9[(_0x4ebcf7(0x14f))](),this[_0x4ebcf7(0x155)]=new _0x1fb4f9[(_0x4ebcf7(0x127))](),this[_0x4ebcf7(0xf2)]=new _0x1fb4f9[(_0x4ebcf7(0x168))](),this[_0x4ebcf7(0x128)]=new LoginListener(),this[_0x4ebcf7(0x128)][_0x4ebcf7(0x118)]=_0x5991f0=>{const _0x270ec2=_0x4ebcf7;logError(_0x5e513b[_0x270ec2(0x110)]('当前账号(',_0x5991f0)+_0x270ec2(0x130));},this[_0x4ebcf7(0x128)][_0x4ebcf7(0xfd)]=_0x5627e7=>{const _0x18ac80=_0x4ebcf7,_0x419ced={'ynzkd':function(_0x314d90,_0xb5e59a,_0x5334d3){const _0x95f076=_0x40a9;return _0x5e513b[_0x95f076(0x11e)](_0x314d90,_0xb5e59a,_0x5334d3);},'VSJdw':_0x5e513b['MdUYK'],'PbUEk':function(_0x4e7fa0,_0x31aeed,_0x7b9b0b){return _0x4e7fa0(_0x31aeed,_0x7b9b0b);},'DUOpx':function(_0x4445ce,_0x5cdf02){return _0x5e513b['bdZaK'](_0x4445ce,_0x5cdf02);},'TzBnp':function(_0x128b02,_0x10dcdd){const _0x359c99=_0x40a9;return _0x5e513b[_0x359c99(0xe5)](_0x128b02,_0x10dcdd);},'ZTGZX':_0x5e513b[_0x18ac80(0x17f)],'oZzta':_0x5e513b['SULfA']};this['initSession'](_0x5627e7['uin'],_0x5627e7[_0x18ac80(0x198)])[_0x18ac80(0x158)](_0x56ad4a=>{const _0x288cdd=_0x18ac80;selfInfo[_0x288cdd(0x11f)]=_0x5627e7[_0x288cdd(0x11f)],selfInfo[_0x288cdd(0x198)]=_0x5627e7[_0x288cdd(0x198)],napCatConfig['read'](),_0x419ced['PbUEk'](setLogLevel,napCatConfig[_0x288cdd(0x159)],napCatConfig[_0x288cdd(0x17b)]),_0x419ced[_0x288cdd(0x148)](enableFileLog,napCatConfig[_0x288cdd(0x15f)]),_0x419ced[_0x288cdd(0x18c)](enableConsoleLog,napCatConfig[_0x288cdd(0x186)]),_0x419ced[_0x288cdd(0x148)](setLogSelfInfo,selfInfo);const _0x4017a2=_0x5d940f[_0x288cdd(0xe6)](this[_0x288cdd(0x12e)],_0x419ced[_0x288cdd(0x106)]);_0x50f2b0[_0x288cdd(0x15b)](_0x4017a2,{'recursive':!![]}),logDebug(_0x419ced[_0x288cdd(0x115)],_0x4017a2),dbUtil[_0x288cdd(0x163)](_0x5d940f[_0x288cdd(0xe6)](_0x4017a2,'./'+_0x5627e7[_0x288cdd(0x11f)]+_0x288cdd(0x10b)))[_0x288cdd(0x158)](()=>{const _0x5dd2b5=_0x288cdd;this[_0x5dd2b5(0x19b)](),this['onLoginSuccessFuncList'][_0x5dd2b5(0xfc)](_0x1a880a=>{const _0x5789cc=_0x5dd2b5;new Promise((_0x4bb82b,_0x35936a)=>{const _0x76dfa1=_0x40a9,_0x96c864=_0x1a880a(_0x5627e7['uin'],_0x5627e7[_0x76dfa1(0x198)]);_0x96c864 instanceof Promise&&_0x96c864[_0x76dfa1(0x158)](_0x4bb82b)[_0x76dfa1(0x152)](_0x35936a);})[_0x5789cc(0x158)]();});})['catch'](_0x22c349=>{const _0x46f838=_0x288cdd;_0x419ced[_0x46f838(0x14e)](logError,_0x419ced[_0x46f838(0x117)],_0x22c349);});})[_0x18ac80(0x152)](_0x4c2be5=>{const _0x2885c9=_0x18ac80;logError(_0x5e513b[_0x2885c9(0x121)],_0x4c2be5);throw new Error('启动失败:\x20'+JSON[_0x2885c9(0xdd)](_0x4c2be5));});},this[_0x4ebcf7(0x128)][_0x4ebcf7(0xf6)]=(_0x56140c,_0x39e8fe,_0x25966f)=>{const _0x3d0983=_0x4ebcf7;logError(_0x3d0983(0x10f),_0x25966f),_0x5e513b[_0x3d0983(0x161)](_0x56140c,0x1)&&_0x5e513b[_0x3d0983(0x10c)](_0x39e8fe,0x3)&&this[_0x3d0983(0x155)][_0x3d0983(0x120)]();},this[_0x4ebcf7(0x128)]['onLoginFailed']=_0x1c30a0=>{const _0x126a58=_0x4ebcf7;_0x5e513b[_0x126a58(0x11e)](logError,_0x5e513b[_0x126a58(0x190)],_0x1c30a0);},this[_0x4ebcf7(0x128)]=new Proxy(this[_0x4ebcf7(0x128)],this[_0x4ebcf7(0x171)]),this[_0x4ebcf7(0x155)]['addKernelLoginListener'](new _0x1fb4f9[(_0x4ebcf7(0x156))](this[_0x4ebcf7(0x128)])),this['initConfig']();}get['dataPath'](){const _0x12df81=_0x51e0cc;let _0x25c5b5=this[_0x12df81(0x16c)][_0x12df81(0x10e)]();return!_0x25c5b5&&(_0x25c5b5=_0x5d940f[_0x12df81(0xe6)](_0x1f5d87[_0x12df81(0x181)](),_0x12df81(0x131)),_0x50f2b0['mkdirSync'](_0x25c5b5,{'recursive':!![]})),_0x25c5b5;}get[_0x51e0cc(0x132)](){const _0x47debc=_0x51e0cc,_0x22c369={'VPnDi':_0x47debc(0x11c)};return _0x5d940f[_0x47debc(0xe6)](this[_0x47debc(0x12e)],_0x22c369[_0x47debc(0x114)]);}[_0x51e0cc(0xec)](){const _0x91ab57=_0x51e0cc,_0x1b62cc={'dVKGm':_0x91ab57(0x182)};this[_0x91ab57(0x178)]['initWithDeskTopConfig']({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x91ab57(0x146)],'os_version':_0x1b62cc[_0x91ab57(0xed)],'use_xlog':!![],'qua':_0x91ab57(0x147)+qqVersionConfigInfo[_0x91ab57(0x146)][_0x91ab57(0xf9)]('-','_')+_0x91ab57(0xdc),'global_path_config':{'desktopGlobalPath':this['dataPathGlobal']},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x1fb4f9[(_0x91ab57(0x170))](new GlobalAdapter())),this[_0x91ab57(0x155)][_0x91ab57(0xec)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x91ab57(0x132)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}[_0x51e0cc(0x12c)](_0x464d42,_0x29faf4){const _0x3f11bb=_0x51e0cc,_0x3aa385={'WdPHx':function(_0x3f7819,_0x5a548a){return _0x3f7819===_0x5a548a;},'YfIAM':function(_0x586ff7,_0x2b467c){return _0x586ff7(_0x2b467c);},'qmnkx':function(_0x341f8c,_0x17e0e2,_0x4ca272,_0x3dc4f6){return _0x341f8c(_0x17e0e2,_0x4ca272,_0x3dc4f6);},'LEPDa':function(_0x2a96d6,_0x2a76c6){return _0x2a96d6(_0x2a76c6);},'PztAn':function(_0x3b3149,_0x444c93){return _0x3b3149+_0x444c93;},'JhuER':_0x3f11bb(0x187)};return new Promise((_0x95d870,_0x49a38e)=>{const _0x253e54=_0x3f11bb,_0x1b7e1d=_0x3aa385[_0x253e54(0x194)](genSessionConfig,_0x464d42,_0x29faf4,this['dataPath']),_0x5ec4aa=new SessionListener();_0x5ec4aa[_0x253e54(0x136)]=_0xaba25e=>{const _0x1b7ef3=_0x253e54;if(_0x3aa385[_0x1b7ef3(0x140)](_0xaba25e,0x0))return _0x95d870(0x0);_0x3aa385[_0x1b7ef3(0x164)](_0x49a38e,_0xaba25e);},this[_0x253e54(0xf2)]['init'](_0x1b7e1d,new _0x1fb4f9[(_0x253e54(0x175))](new DependsAdapter()),new _0x1fb4f9[(_0x253e54(0x174))](new DispatcherAdapter()),new _0x1fb4f9[(_0x253e54(0x125))](_0x5ec4aa));try{this[_0x253e54(0xf2)][_0x253e54(0x185)](0x0);}catch(_0x21074c){try{this[_0x253e54(0xf2)]['startNT']();}catch(_0x1b82d9){_0x3aa385[_0x253e54(0x17d)](_0x49a38e,_0x3aa385['PztAn'](_0x3aa385[_0x253e54(0x11a)],_0x1b82d9));}}});}['initDataListener'](){const _0x134c01=_0x51e0cc,_0x5dd3b3={'LlxSU':function(_0x4d65eb,_0x3384b8){return _0x4d65eb===_0x3384b8;},'UcmlN':function(_0x451eff,_0x28cd9d){return _0x451eff+_0x28cd9d;},'LgHEy':_0x134c01(0x184),'zgpvY':function(_0x4a490f,_0x1b7306){return _0x4a490f(_0x1b7306);},'lyuHg':function(_0x2607a2,_0x344295){return _0x2607a2+_0x344295;},'dAdti':_0x134c01(0x13a),'awNwx':function(_0x5c3ec8,_0x552dff){return _0x5c3ec8/_0x552dff;},'dPvcm':function(_0x426e00,_0x3a8324){return _0x426e00===_0x3a8324;}},_0x7e9d10=new MsgListener();_0x7e9d10[_0x134c01(0x180)]=_0x12d7fe=>{const _0x288e27=_0x134c01;_0x12d7fe[_0x288e27(0xfc)](_0x887fc5=>{const _0x34e81a=_0x288e27;_0x5dd3b3[_0x34e81a(0x160)](_0x887fc5[_0x34e81a(0x153)],0x2)&&log(_0x5dd3b3[_0x34e81a(0x173)](_0x34e81a(0x102)+_0x887fc5[_0x34e81a(0x18b)],_0x5dd3b3[_0x34e81a(0xeb)]));});},_0x7e9d10[_0x134c01(0x109)]=_0x3543ae=>{const _0x5ed279=_0x134c01;_0x5dd3b3[_0x5ed279(0x16d)](log,_0x5dd3b3[_0x5ed279(0xff)](_0x5dd3b3[_0x5ed279(0xff)](_0x5dd3b3['lyuHg'](_0x5dd3b3['dAdti'],_0x3543ae[_0x5ed279(0x189)]),']\x20'),_0x3543ae['tipsDesc']));},_0x7e9d10[_0x134c01(0x11b)]=_0x291489=>{const _0x50da2f=_0x134c01,_0x3f37b2={'eJMBB':function(_0x1d1447,_0xcd6b2){return _0x1d1447===_0xcd6b2;}};stat[_0x50da2f(0x15e)]+=0x1,_0x291489['map'](_0x559d84=>{const _0x5e8be3=_0x50da2f;_0x3f37b2[_0x5e8be3(0xe4)](_0x559d84[_0x5e8be3(0x104)],'0')?dbUtil['addMsg'](_0x559d84)[_0x5e8be3(0x158)]()[_0x5e8be3(0x152)]():dbUtil[_0x5e8be3(0x141)](_0x559d84[_0x5e8be3(0x12d)])[_0x5e8be3(0x158)](_0x1e87f1=>{const _0x506bff=_0x5e8be3;_0x1e87f1&&(_0x1e87f1[_0x506bff(0x104)]=_0x559d84[_0x506bff(0x104)],dbUtil[_0x506bff(0x100)](_0x1e87f1)[_0x506bff(0x158)]());});});},_0x7e9d10[_0x134c01(0xe1)]=_0x5c0ab6=>{const _0x1fdaac=_0x134c01;stat[_0x1fdaac(0x10d)]+=0x1,stat[_0x1fdaac(0x13e)]+=0x1,stat[_0x1fdaac(0x165)]=Math['floor'](Date['now']()/0x3e8);},_0x7e9d10[_0x134c01(0x103)]=_0x1ff1a1=>{const _0x5cc0a1=_0x134c01;stat[_0x5cc0a1(0x15e)]+=0x1,stat[_0x5cc0a1(0x149)]+=_0x1ff1a1[_0x5cc0a1(0xf8)],stat[_0x5cc0a1(0x165)]=Math[_0x5cc0a1(0x13b)](_0x5dd3b3[_0x5cc0a1(0x17e)](Date[_0x5cc0a1(0x119)](),0x3e8));},_0x7e9d10['onRecvSysMsg']=(..._0x81176b)=>{const _0x11ab5b=_0x134c01;stat[_0x11ab5b(0x15e)]+=0x1;},this[_0x134c01(0x13c)](_0x7e9d10);const _0x4d36ef=new BuddyListener();_0x4d36ef[_0x134c01(0x166)]=_0x45a056=>{const _0x11e7b1=_0x134c01;rawFriends[_0x11e7b1(0xf8)]=0x0,rawFriends[_0x11e7b1(0x19a)](..._0x45a056);for(const _0x3fdd9d of _0x45a056){for(const _0x554605 of _0x3fdd9d[_0x11e7b1(0x15c)]){const _0x4792b9=friends[_0x11e7b1(0x192)](_0x554605[_0x11e7b1(0x198)]);uid2UinMap[_0x554605[_0x11e7b1(0x198)]]=_0x554605[_0x11e7b1(0x11f)],_0x4792b9?Object[_0x11e7b1(0x167)](_0x4792b9,_0x554605):friends[_0x11e7b1(0x197)](_0x554605['uid'],_0x554605);}}},this[_0x134c01(0x13c)](_0x4d36ef),this[_0x134c01(0xf2)][_0x134c01(0x16f)]()[_0x134c01(0xe9)](!![])[_0x134c01(0x158)](_0xba34a6=>{});const _0x4207bb=new ProfileListener();_0x4207bb[_0x134c01(0xfb)]=_0xb2750b=>{const _0xe141c2=_0x134c01;_0x5dd3b3['dPvcm'](_0xb2750b[_0xe141c2(0x198)],selfInfo[_0xe141c2(0x198)])&&Object['assign'](selfInfo,_0xb2750b);},_0x4207bb[_0x134c01(0x195)]=_0x28b8c0=>{},this[_0x134c01(0x13c)](_0x4207bb);const _0x4cb67c=new GroupListener();_0x4cb67c[_0x134c01(0x14d)]=(_0x3e7a7c,_0x1bdf9f)=>{const _0x1f522c=_0x134c01;_0x1bdf9f[_0x1f522c(0xfc)](_0x12663d=>{const _0x194330=_0x1f522c,_0x391f9e=groups[_0x194330(0x192)](_0x12663d[_0x194330(0x150)]);if(_0x391f9e)Object[_0x194330(0x167)](_0x391f9e,_0x12663d);else{groups[_0x194330(0x197)](_0x12663d['groupCode'],_0x12663d);const _0x5d31a2=this['session'][_0x194330(0x108)]()[_0x194330(0x105)](_0x12663d[_0x194330(0x150)],'groupMemberList_MainWindow');this[_0x194330(0xf2)]['getGroupService']()[_0x194330(0x129)](_0x5d31a2,undefined,0xbb8)[_0x194330(0x158)](_0x48c4a1=>{});}});},_0x4cb67c[_0x134c01(0x11d)]=_0x46982d=>{const _0x55cd48=_0x134c01,_0x43cf70=_0x46982d[_0x55cd48(0x15a)][_0x55cd48(0x16b)]('_')[0x0];if(groupMembers['has'](_0x43cf70)){const _0x285005=groupMembers['get'](_0x43cf70);_0x46982d[_0x55cd48(0x13d)][_0x55cd48(0x14c)]((_0x3166b4,_0x22f913)=>{const _0x7f32ad=_0x55cd48,_0x9bbd8=_0x285005[_0x7f32ad(0x192)](_0x22f913);_0x9bbd8?Object[_0x7f32ad(0x167)](_0x9bbd8,_0x3166b4):_0x285005[_0x7f32ad(0x197)](_0x22f913,_0x3166b4);});}else groupMembers[_0x55cd48(0x197)](_0x43cf70,_0x46982d[_0x55cd48(0x13d)]);},_0x4cb67c[_0x134c01(0x116)]=(_0xddd4f6,_0x495b5f,_0x57ba2b)=>{const _0x3de4d9=_0x134c01;_0x5dd3b3[_0x3de4d9(0x169)](_0x495b5f,0x0)&&_0x57ba2b['get'](selfInfo[_0x3de4d9(0x198)])&&_0x57ba2b['get'](selfInfo[_0x3de4d9(0x198)])?.[_0x3de4d9(0xfe)]&&setTimeout(()=>{const _0x1c3583=_0x3de4d9;groups[_0x1c3583(0x16e)](_0xddd4f6);},0x1388);_0x57ba2b[_0x3de4d9(0x14c)]((_0x3d2e5c,_0x554aa6)=>{uid2UinMap[_0x554aa6]=_0x3d2e5c['uin'];});const _0x1611a9=groupMembers[_0x3de4d9(0x192)](_0xddd4f6);_0x1611a9?_0x57ba2b[_0x3de4d9(0x14c)]((_0x6f61af,_0x47e9c7)=>{const _0x448bab=_0x3de4d9,_0x253b6a=_0x1611a9[_0x448bab(0x192)](_0x47e9c7);_0x253b6a?Object[_0x448bab(0x167)](_0x253b6a,_0x6f61af):_0x1611a9[_0x448bab(0x197)](_0x47e9c7,_0x6f61af);}):groupMembers[_0x3de4d9(0x197)](_0xddd4f6,_0x57ba2b);},this['addListener'](_0x4cb67c);}[_0x51e0cc(0x13c)](_0x550e17){const _0x3d6b02=_0x51e0cc,_0x129660={'IGuwz':_0x3d6b02(0x17c),'LoKdr':_0x3d6b02(0x177),'NIeJN':_0x3d6b02(0x151),'PvCtw':_0x3d6b02(0xef)};_0x550e17=new Proxy(_0x550e17,this[_0x3d6b02(0x171)]);switch(_0x550e17[_0x3d6b02(0xea)][_0x3d6b02(0x144)]){case _0x129660['IGuwz']:{return this['session']['getBuddyService']()[_0x3d6b02(0x162)](new _0x1fb4f9[(_0x3d6b02(0x12a))](_0x550e17));}case _0x129660[_0x3d6b02(0xe3)]:{return this[_0x3d6b02(0xf2)]['getGroupService']()['addKernelGroupListener'](new _0x1fb4f9[(_0x3d6b02(0x18e))](_0x550e17));}case _0x129660[_0x3d6b02(0x17a)]:{return this[_0x3d6b02(0xf2)]['getMsgService']()['addKernelMsgListener'](new _0x1fb4f9[(_0x3d6b02(0x138))](_0x550e17));}case _0x129660[_0x3d6b02(0xe2)]:{return this[_0x3d6b02(0xf2)][_0x3d6b02(0x154)]()[_0x3d6b02(0x196)](new _0x1fb4f9['NodeIKernelProfileListener'](_0x550e17));}default:return-0x1;}}[_0x51e0cc(0x107)](_0x1cc344){const _0x51b9ec=_0x51e0cc;this[_0x51b9ec(0xf3)][_0x51b9ec(0x19a)](_0x1cc344);}async[_0x51e0cc(0x15d)](_0x1e6fcb){const _0x18c7f5=_0x51e0cc,_0x7f2645={'eiobm':function(_0x4e05f3,_0x548229){return _0x4e05f3!==_0x548229;},'tPlrH':_0x18c7f5(0x112),'bIMze':function(_0x16bba9,_0x3bc829){return _0x16bba9(_0x3bc829);},'wXvKK':function(_0x520059,_0x32fb02){return _0x520059+_0x32fb02;},'rvmcW':_0x18c7f5(0x133)},_0x3f348f=await this['loginService'][_0x18c7f5(0xf7)]();if(_0x7f2645[_0x18c7f5(0x183)](_0x3f348f['result'],0x0))throw new Error(_0x7f2645['tPlrH']);const _0x229be0=_0x3f348f['LocalLoginInfoList'][_0x18c7f5(0x179)](_0x5ba141=>_0x5ba141[_0x18c7f5(0x11f)]===_0x1e6fcb);if(!_0x229be0||!_0x229be0?.[_0x18c7f5(0x18f)])throw new Error(_0x1e6fcb+'快速登录不可用');await _0x7f2645['bIMze'](sleep,0x3e8);const _0x5ec1d4=await this[_0x18c7f5(0x155)][_0x18c7f5(0x193)](_0x1e6fcb);if(!_0x5ec1d4[_0x18c7f5(0x124)])throw new Error(_0x7f2645[_0x18c7f5(0x188)](_0x7f2645[_0x18c7f5(0x142)],_0x5ec1d4[_0x18c7f5(0xf0)][_0x18c7f5(0x126)]));return _0x5ec1d4;}async[_0x51e0cc(0x157)](_0x426cf3){const _0x4b5616=_0x51e0cc,_0x26de5b={'TZwHk':_0x4b5616(0x176)};return new Promise((_0x46eca5,_0x51ea15)=>{const _0x192690=_0x4b5616,_0xb2a374={'ipkMf':_0x26de5b[_0x192690(0x191)]};this[_0x192690(0x128)][_0x192690(0x18d)]=_0x252098=>{const _0x34f15d=_0x192690,_0x2426d5=_0x252098[_0x34f15d(0x134)][_0x34f15d(0x16b)](_0xb2a374['ipkMf'])[0x1],_0x4fda82=Buffer[_0x34f15d(0xf4)](_0x2426d5,_0x34f15d(0x122));_0x426cf3(_0x252098[_0x34f15d(0xe7)],_0x252098[_0x34f15d(0x134)],_0x4fda82);},this[_0x192690(0x155)]['getQRCodePicture']();});}async['passwordLogin'](_0x2a7c87,_0x5d6215,_0x2c433e,_0xd7752,_0x20ff62){const _0x1a03c8=_0x51e0cc,_0x9c59f1={'kVnoC':_0x1a03c8(0x13f),'YIQxc':_0x1a03c8(0x18a),'VzSOj':function(_0x37ae49,_0x53237b){return _0x37ae49||_0x53237b;},'XLYsN':function(_0x1f2063,_0x405197){return _0x1f2063||_0x405197;},'cCPqX':_0x1a03c8(0x143),'znWJO':_0x1a03c8(0x111)},_0x208d23=_0x2b8576['createHash'](_0x9c59f1[_0x1a03c8(0x101)])['update'](_0x5d6215)['digest'](_0x9c59f1[_0x1a03c8(0x139)]),_0xe94480={'uin':_0x2a7c87,'passwordMd5':_0x208d23,'step':_0x2c433e&&_0xd7752&&_0x20ff62?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x9c59f1[_0x1a03c8(0xdb)](_0x2c433e,''),'proofWaterRand':_0x9c59f1[_0x1a03c8(0xf5)](_0xd7752,''),'proofWaterSid':_0x20ff62||''};await this[_0x1a03c8(0x155)][_0x1a03c8(0xf7)](),await sleep(0x3e8);const _0x839f6f=await this[_0x1a03c8(0x155)]['passwordLogin'](_0xe94480);switch(_0x839f6f[_0x1a03c8(0x124)]){case'0':{break;}case _0x9c59f1[_0x1a03c8(0xe0)]:{break;}case'4':case _0x9c59f1[_0x1a03c8(0x14a)]:default:}}async[_0x51e0cc(0x172)](){const _0x1a4cc0=_0x51e0cc,_0x53304b=await this[_0x1a4cc0(0x155)][_0x1a4cc0(0xf7)]();return _0x53304b;}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index 46ff26b5..ed55b0bf 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0x3c3e59=_0x1947;(function(_0x64d918,_0x1b5cc1){const _0x3551b1=_0x1947,_0x417298=_0x64d918();while(!![]){try{const _0x17c33d=parseInt(_0x3551b1(0x7c))/0x1*(-parseInt(_0x3551b1(0x7d))/0x2)+parseInt(_0x3551b1(0x76))/0x3*(-parseInt(_0x3551b1(0x69))/0x4)+-parseInt(_0x3551b1(0x70))/0x5*(parseInt(_0x3551b1(0x7a))/0x6)+parseInt(_0x3551b1(0x6a))/0x7+-parseInt(_0x3551b1(0x72))/0x8+-parseInt(_0x3551b1(0x6e))/0x9+parseInt(_0x3551b1(0x68))/0xa;if(_0x17c33d===_0x1b5cc1)break;else _0x417298['push'](_0x417298['shift']());}catch(_0xd2b573){_0x417298['push'](_0x417298['shift']());}}}(_0x50f0,0x30a29));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};function _0x50f0(){const _0x178115=['4aJtzoz','2575727XXYAwi','EFjCC','uin','getGroupMembers','1461834SkSkBj','values','382705usPvtI','groupCode','1385096HDZTVM','from','getGroups','SJpzh','462657ajolpt','toString','NapCat未能正常启动,请检查日志查看错误','get','12TSKMYf','delete','301133yKTscV','2ggicRX','nqZtQ','find','forEach','set','7752450hAaIKv'];_0x50f0=function(){return _0x178115;};return _0x50f0();}export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x1ef7bb){const _0x2ec15b=_0x1947;groups[_0x2ec15b(0x7b)](_0x1ef7bb),groupMembers['delete'](_0x1ef7bb);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x3c3e59(0x78)};export async function getFriend(_0x5c8ea3){const _0x18f29e=_0x3c3e59,_0x58bafa={'SJpzh':function(_0x1f57eb,_0x2e5cf8){return _0x1f57eb(_0x2e5cf8);}};_0x5c8ea3=_0x5c8ea3['toString']();if(_0x58bafa[_0x18f29e(0x75)](isNumeric,_0x5c8ea3)){const _0x432057=Array['from'](friends[_0x18f29e(0x6f)]());return _0x432057[_0x18f29e(0x7f)](_0xd1df80=>_0xd1df80['uin']===_0x5c8ea3);}else return friends[_0x18f29e(0x79)](_0x5c8ea3);}function _0x1947(_0x22beee,_0x3009a3){const _0x50f0fc=_0x50f0();return _0x1947=function(_0x19475a,_0x2475fc){_0x19475a=_0x19475a-0x66;let _0x4d4419=_0x50f0fc[_0x19475a];return _0x4d4419;},_0x1947(_0x22beee,_0x3009a3);}export async function getGroup(_0x234200){const _0x56ed20=_0x3c3e59;let _0x2b1bb4=groups[_0x56ed20(0x79)](_0x234200['toString']());if(!_0x2b1bb4)try{const _0x216164=await NTQQGroupApi[_0x56ed20(0x74)]();_0x216164['length']&&_0x216164[_0x56ed20(0x66)](_0x2b819a=>{const _0x1dddfe=_0x56ed20;groups[_0x1dddfe(0x67)](_0x2b819a[_0x1dddfe(0x71)],_0x2b819a);});}catch(_0x24d234){return undefined;}return _0x2b1bb4=groups[_0x56ed20(0x79)](_0x234200['toString']()),_0x2b1bb4;}export async function getGroupMember(_0x1a93ab,_0x330b43){const _0x58f39e=_0x3c3e59,_0x2f99d2={'EFjCC':function(_0x33d188,_0x1784fa){return _0x33d188(_0x1784fa);},'nqZtQ':function(_0x503eed){return _0x503eed();}};_0x1a93ab=_0x1a93ab['toString'](),_0x330b43=_0x330b43[_0x58f39e(0x77)]();let _0x2b6d34=groupMembers[_0x58f39e(0x79)](_0x1a93ab);if(!_0x2b6d34)try{_0x2b6d34=await NTQQGroupApi[_0x58f39e(0x6d)](_0x1a93ab),groupMembers['set'](_0x1a93ab,_0x2b6d34);}catch(_0x44ba55){return null;}const _0x361076=()=>{const _0x33efa2=_0x58f39e;let _0x47f408=undefined;return _0x2f99d2[_0x33efa2(0x6b)](isNumeric,_0x330b43)?_0x47f408=Array[_0x33efa2(0x73)](_0x2b6d34[_0x33efa2(0x6f)]())['find'](_0x465dee=>_0x465dee[_0x33efa2(0x6c)]===_0x330b43):_0x47f408=_0x2b6d34[_0x33efa2(0x79)](_0x330b43),_0x47f408;};let _0x2e293f=_0x2f99d2[_0x58f39e(0x7e)](_0x361076);return!_0x2e293f&&(_0x2b6d34=await NTQQGroupApi[_0x58f39e(0x6d)](_0x1a93ab),_0x2e293f=_0x361076()),_0x2e293f;}export const uid2UinMap={};export function getUidByUin(_0x1abb5b){for(const _0x582847 in uid2UinMap){if(uid2UinMap[_0x582847]===_0x1abb5b)return _0x582847;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +const _0x4e212e=_0x3f2e;(function(_0x2c95fe,_0x2275f9){const _0x3f2dbc=_0x3f2e,_0x727fdd=_0x2c95fe();while(!![]){try{const _0x5cbc4d=parseInt(_0x3f2dbc(0x189))/0x1*(parseInt(_0x3f2dbc(0x184))/0x2)+parseInt(_0x3f2dbc(0x19b))/0x3*(parseInt(_0x3f2dbc(0x187))/0x4)+parseInt(_0x3f2dbc(0x188))/0x5*(-parseInt(_0x3f2dbc(0x185))/0x6)+parseInt(_0x3f2dbc(0x191))/0x7+-parseInt(_0x3f2dbc(0x18d))/0x8+-parseInt(_0x3f2dbc(0x19c))/0x9*(-parseInt(_0x3f2dbc(0x18b))/0xa)+parseInt(_0x3f2dbc(0x18c))/0xb;if(_0x5cbc4d===_0x2275f9)break;else _0x727fdd['push'](_0x727fdd['shift']());}catch(_0x44c4bf){_0x727fdd['push'](_0x727fdd['shift']());}}}(_0x9041,0x34634));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};function _0x9041(){const _0x1f796b=['values','xGmtJ','601643iAZiix','getGroupMembers','groupCode','toString','from','mBLmM','set','uin','znqnf','forEach','537MPFibU','1549629RApElU','find','getGroups','length','get','2UekIoX','4782XdXzVJ','iQXjF','572RHdGht','1985iDImqa','30587vjOeJR','NapCat未能正常启动,请检查日志查看错误','10eycaTH','2525787TVzRZd','103536nfgwSe','delete'];_0x9041=function(){return _0x1f796b;};return _0x9041();}export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};function _0x3f2e(_0x1715d3,_0xca9706){const _0x90418d=_0x9041();return _0x3f2e=function(_0x3f2e02,_0x262ac7){_0x3f2e02=_0x3f2e02-0x182;let _0x456fb0=_0x90418d[_0x3f2e02];return _0x456fb0;},_0x3f2e(_0x1715d3,_0xca9706);}export const groups=new Map();export function deleteGroup(_0x51d68b){const _0x496828=_0x3f2e;groups[_0x496828(0x18e)](_0x51d68b),groupMembers[_0x496828(0x18e)](_0x51d68b);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x4e212e(0x18a)};export async function getFriend(_0x342a7c){const _0x57e299=_0x4e212e,_0x1bb04b={'znqnf':function(_0x12775a,_0x166697){return _0x12775a(_0x166697);}};_0x342a7c=_0x342a7c[_0x57e299(0x194)]();if(_0x1bb04b[_0x57e299(0x199)](isNumeric,_0x342a7c)){const _0x5b3522=Array[_0x57e299(0x195)](friends['values']());return _0x5b3522[_0x57e299(0x19d)](_0x26b8ca=>_0x26b8ca['uin']===_0x342a7c);}else return friends[_0x57e299(0x183)](_0x342a7c);}export async function getGroup(_0x411a57){const _0x243381=_0x4e212e;let _0x1579d1=groups[_0x243381(0x183)](_0x411a57[_0x243381(0x194)]());if(!_0x1579d1)try{const _0x2525c7=await NTQQGroupApi[_0x243381(0x19e)]();_0x2525c7[_0x243381(0x182)]&&_0x2525c7[_0x243381(0x19a)](_0x2da519=>{const _0x3d7089=_0x243381;groups[_0x3d7089(0x197)](_0x2da519[_0x3d7089(0x193)],_0x2da519);});}catch(_0x1702d3){return undefined;}return _0x1579d1=groups[_0x243381(0x183)](_0x411a57[_0x243381(0x194)]()),_0x1579d1;}export async function getGroupMember(_0x4d8e2b,_0x4388ee){const _0x15b516=_0x4e212e,_0x59423f={'iQXjF':function(_0x3ce466,_0x118015){return _0x3ce466(_0x118015);},'mBLmM':function(_0x3c72f4){return _0x3c72f4();}};_0x4d8e2b=_0x4d8e2b['toString'](),_0x4388ee=_0x4388ee[_0x15b516(0x194)]();let _0x48e37f=groupMembers[_0x15b516(0x183)](_0x4d8e2b);if(!_0x48e37f)try{_0x48e37f=await NTQQGroupApi[_0x15b516(0x192)](_0x4d8e2b),groupMembers[_0x15b516(0x197)](_0x4d8e2b,_0x48e37f);}catch(_0x32eabc){return null;}const _0x4801e1=()=>{const _0x1f7bdc=_0x15b516;let _0x3fe831=undefined;return _0x59423f[_0x1f7bdc(0x186)](isNumeric,_0x4388ee)?_0x3fe831=Array[_0x1f7bdc(0x195)](_0x48e37f[_0x1f7bdc(0x18f)]())[_0x1f7bdc(0x19d)](_0x3f8275=>_0x3f8275[_0x1f7bdc(0x198)]===_0x4388ee):_0x3fe831=_0x48e37f[_0x1f7bdc(0x183)](_0x4388ee),_0x3fe831;};let _0x552d5f=_0x59423f[_0x15b516(0x196)](_0x4801e1);return!_0x552d5f&&(_0x48e37f=await NTQQGroupApi[_0x15b516(0x192)](_0x4d8e2b),_0x552d5f=_0x59423f[_0x15b516(0x196)](_0x4801e1)),_0x552d5f;}export const uid2UinMap={};export function getUidByUin(_0x151b42){const _0x346a19=_0x4e212e,_0x1a4dc7={'xGmtJ':function(_0x415dfe,_0x12215b){return _0x415dfe===_0x12215b;}};for(const _0x10c72d in uid2UinMap){if(_0x1a4dc7[_0x346a19(0x190)](uid2UinMap[_0x10c72d],_0x151b42))return _0x10c72d;}}export const tempGroupCodeMap={};export const rawFriends=[];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 39b214cf..d7e9b27f 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -(function(_0x594fe7,_0x2e27ef){var _0x51f4b1=_0xa81e,_0x33f8e8=_0x594fe7();while(!![]){try{var _0x35751d=parseInt(_0x51f4b1(0x1cd))/0x1*(-parseInt(_0x51f4b1(0x1cf))/0x2)+-parseInt(_0x51f4b1(0x1c1))/0x3*(parseInt(_0x51f4b1(0x1cc))/0x4)+parseInt(_0x51f4b1(0x1c3))/0x5*(-parseInt(_0x51f4b1(0x1c0))/0x6)+-parseInt(_0x51f4b1(0x1c8))/0x7+-parseInt(_0x51f4b1(0x1d1))/0x8*(-parseInt(_0x51f4b1(0x1d0))/0x9)+parseInt(_0x51f4b1(0x1c4))/0xa*(-parseInt(_0x51f4b1(0x1ce))/0xb)+parseInt(_0x51f4b1(0x1c2))/0xc*(parseInt(_0x51f4b1(0x1cb))/0xd);if(_0x35751d===_0x2e27ef)break;else _0x33f8e8['push'](_0x33f8e8['shift']());}catch(_0x565e2a){_0x33f8e8['push'](_0x33f8e8['shift']());}}}(_0x4563,0x8c18f));function _0xa81e(_0x3ac586,_0x41c281){var _0x4563eb=_0x4563();return _0xa81e=function(_0xa81e3e,_0x309d4c){_0xa81e3e=_0xa81e3e-0x1c0;var _0x25cb43=_0x4563eb[_0xa81e3e];return _0x25cb43;},_0xa81e(_0x3ac586,_0x41c281);}function _0x4563(){var _0x28a14a=['1056YErwvP','6XIaaCP','27925476atkYJo','210ahHofP','10EUjZsd','UWPxL','OTHER','qLZWy','6494768ersEuq','DOoJt','IMAGE','13VKvrbX','612748ryJbnw','41gotvEv','8514451rJLTMk','358priidd','16074XwoGcm','1208QYtFqn'];_0x4563=function(){return _0x28a14a;};return _0x4563();};export var CacheFileType;(function(_0x4ec210){var _0x1f0361=_0xa81e,_0x569a84={'UWPxL':_0x1f0361(0x1ca),'qLZWy':'VIDEO','vsGTG':'AUDIO','DOoJt':'DOCUMENT','bUjPV':_0x1f0361(0x1c6)};_0x4ec210[_0x4ec210[_0x569a84['UWPxL']]=0x0]=_0x569a84[_0x1f0361(0x1c5)],_0x4ec210[_0x4ec210[_0x569a84['qLZWy']]=0x1]=_0x569a84[_0x1f0361(0x1c7)],_0x4ec210[_0x4ec210['AUDIO']=0x2]=_0x569a84['vsGTG'],_0x4ec210[_0x4ec210[_0x569a84[_0x1f0361(0x1c9)]]=0x3]='DOCUMENT',_0x4ec210[_0x4ec210[_0x1f0361(0x1c6)]=0x4]=_0x569a84['bUjPV'];}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +(function(_0x236fe2,_0x21515a){var _0x4b7111=_0x1541,_0xbe77a=_0x236fe2();while(!![]){try{var _0x312b32=-parseInt(_0x4b7111(0xc8))/0x1+-parseInt(_0x4b7111(0xcc))/0x2+-parseInt(_0x4b7111(0xc5))/0x3+parseInt(_0x4b7111(0xd2))/0x4*(parseInt(_0x4b7111(0xd0))/0x5)+parseInt(_0x4b7111(0xc6))/0x6+-parseInt(_0x4b7111(0xcd))/0x7+parseInt(_0x4b7111(0xc7))/0x8;if(_0x312b32===_0x21515a)break;else _0xbe77a['push'](_0xbe77a['shift']());}catch(_0x3de78a){_0xbe77a['push'](_0xbe77a['shift']());}}}(_0x27c8,0x6fb5f));function _0x27c8(){var _0x4a4fbc=['1641822jtLqDj','14969992wKVlGo','497792gzNFKQ','IMAGE','NYXdx','AUDIO','1583456PqGnEF','1773009xlMSrT','DOCUMENT','split','1585nOXkQX','txnWc','3844MdoELU','cnqWn','4|3|2|0|1','1347447VMdMsY'];_0x27c8=function(){return _0x4a4fbc;};return _0x27c8();};function _0x1541(_0x6eabd,_0x280a61){var _0x27c88d=_0x27c8();return _0x1541=function(_0x154146,_0x20947b){_0x154146=_0x154146-0xc3;var _0x56c317=_0x27c88d[_0x154146];return _0x56c317;},_0x1541(_0x6eabd,_0x280a61);}export var CacheFileType;(function(_0x59884f){var _0x4397b2=_0x1541,_0x3b3480={'ZdQkX':_0x4397b2(0xc4),'txnWc':'OTHER','NYXdx':'AUDIO','cnqWn':'VIDEO','tNBhI':_0x4397b2(0xc9)},_0x3f309a=_0x3b3480['ZdQkX'][_0x4397b2(0xcf)]('|'),_0x53c911=0x0;while(!![]){switch(_0x3f309a[_0x53c911++]){case'0':_0x59884f[_0x59884f[_0x4397b2(0xce)]=0x3]=_0x4397b2(0xce);continue;case'1':_0x59884f[_0x59884f[_0x3b3480['txnWc']]=0x4]=_0x3b3480[_0x4397b2(0xd1)];continue;case'2':_0x59884f[_0x59884f[_0x3b3480[_0x4397b2(0xca)]]=0x2]=_0x4397b2(0xcb);continue;case'3':_0x59884f[_0x59884f[_0x3b3480[_0x4397b2(0xc3)]]=0x1]=_0x3b3480[_0x4397b2(0xc3)];continue;case'4':_0x59884f[_0x59884f[_0x3b3480['tNBhI']]=0x0]='IMAGE';continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index 10c5ea8c..530d8649 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x38f35c=_0x1c93;function _0x1c93(_0x56b978,_0x2a713e){const _0x27fcf3=_0x27fc();return _0x1c93=function(_0x1c93d8,_0x2c9d4a){_0x1c93d8=_0x1c93d8-0x102;let _0x28b559=_0x27fcf3[_0x1c93d8];return _0x28b559;},_0x1c93(_0x56b978,_0x2a713e);}(function(_0x56ddcf,_0x43fcba){const _0x50ce28=_0x1c93,_0x57e7d7=_0x56ddcf();while(!![]){try{const _0x5001a4=-parseInt(_0x50ce28(0x13a))/0x1*(parseInt(_0x50ce28(0x15d))/0x2)+parseInt(_0x50ce28(0x136))/0x3+parseInt(_0x50ce28(0x102))/0x4*(-parseInt(_0x50ce28(0x119))/0x5)+-parseInt(_0x50ce28(0x132))/0x6*(-parseInt(_0x50ce28(0x15e))/0x7)+parseInt(_0x50ce28(0x12a))/0x8*(parseInt(_0x50ce28(0x143))/0x9)+parseInt(_0x50ce28(0x126))/0xa*(parseInt(_0x50ce28(0x152))/0xb)+-parseInt(_0x50ce28(0x14a))/0xc;if(_0x5001a4===_0x43fcba)break;else _0x57e7d7['push'](_0x57e7d7['shift']());}catch(_0x7c789b){_0x57e7d7['push'](_0x57e7d7['shift']());}}}(_0x27fc,0xcbb6d));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x428b96}from'node:fs';import _0x1eea64 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';function _0x27fc(){const _0x47b8bb=['set','视频信息','4XbSmNy','6088586ZQbSdY','7316ANvJdV','fhMVY','dirname','PIC','notAt','copyFile','error','rGhzV','Ori','reply','HadWD','IGJIt','REPLY','图片信息','FILE','path','TEXT','then','emoji','sep','mface','VIDEO','ark','1090XLJAqr','AniStickerPackId','video','get','toString','获取视频封面失败,使用默认封面','gif','MFACE','ARK','guKjk','MgerZ','markdown','jpg','10QyuVkU','uuBFF','qVznw','stringify','1822272FVHXOO','width','oylnb','FACE','GaOvG','[包剪锤]','face','AniStickerType','6XxVUSG','getImageSize','end','PNUTS','2353404sIkMfq','_0.png','PTT','time','834343hreQbS','writeFile','cTieB','find','文件异常,大小为0','QDes','height','QSid','gcELJ','54Kxdrfk','replace','UdqdK','size','jyeYF','catch','stat','19533696mZDSXk','QkUaE','unlink','uploadFile','TxRfQ','text','dice','UIkBm','16595249DGdTOX','ciPff','rps','语音转换失败,\x20请检查语音文件是否正常','file','mp4','RPS','YoqrM','iCBLB'];_0x27fc=function(){return _0x47b8bb;};return _0x27fc();}import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';import _0x25e016 from'./face_config.json';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x38f35c(0x14f)](_0x3ca08b){const _0x41cc06=_0x38f35c;return{'elementType':ElementType[_0x41cc06(0x112)],'elementId':'','textElement':{'content':_0x3ca08b,'atType':AtType[_0x41cc06(0x106)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x494599,_0x1e3c80,_0x52d97c,_0xde29ec){const _0xe6822b=_0x38f35c;return{'elementType':ElementType[_0xe6822b(0x112)],'elementId':'','textElement':{'content':'@'+_0xde29ec,'atType':_0x52d97c,'atUid':_0x494599,'atTinyId':'','atNtUid':_0x1e3c80}};}static[_0x38f35c(0x10b)](_0x59acc2,_0x27dbba,_0x503892,_0x549afb){const _0x178dbb=_0x38f35c;return{'elementType':ElementType[_0x178dbb(0x10e)],'elementId':'','replyElement':{'replayMsgSeq':_0x59acc2,'replayMsgId':_0x27dbba,'senderUin':_0x503892,'senderUinStr':_0x549afb}};}static async['pic'](_0x2aac99,_0x2e963d='',_0x48bc87=0x0){const _0x2f593c=_0x38f35c,_0x4e9793={'UIkBm':'文件异常,大小为0','uuBFF':function(_0x5d25d8,_0x2de8eb,_0x125407){return _0x5d25d8(_0x2de8eb,_0x125407);},'eMUFW':_0x2f593c(0x10f)},{md5:_0x3db373,fileName:_0x52476a,path:_0x20409b,fileSize:_0x242679}=await NTQQFileApi[_0x2f593c(0x14d)](_0x2aac99,ElementType[_0x2f593c(0x105)],_0x48bc87);if(_0x242679===0x0)throw _0x4e9793[_0x2f593c(0x151)];const _0xc85b66=await NTQQFileApi[_0x2f593c(0x133)](_0x2aac99),_0x585f5b={'md5HexStr':_0x3db373,'fileSize':_0x242679[_0x2f593c(0x11d)](),'picWidth':_0xc85b66?.[_0x2f593c(0x12b)],'picHeight':_0xc85b66?.[_0x2f593c(0x140)],'fileName':_0x52476a,'sourcePath':_0x20409b,'original':!![],'picType':isGIF(_0x2aac99)?PicType[_0x2f593c(0x11f)]:PicType[_0x2f593c(0x125)],'picSubType':_0x48bc87,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x2e963d};return _0x4e9793[_0x2f593c(0x127)](logDebug,_0x4e9793['eMUFW'],_0x585f5b),{'elementType':ElementType[_0x2f593c(0x105)],'elementId':'','picElement':_0x585f5b};}static async[_0x38f35c(0x156)](_0x46c0a2,_0x437356=''){const _0x4bbd1f=_0x38f35c,_0x1ece31={'ciPff':function(_0x388ade,_0x2993b8){return _0x388ade===_0x2993b8;},'rGhzV':_0x4bbd1f(0x13e)},{md5:_0x1607b9,fileName:_0x5a5def,path:_0x503dfc,fileSize:_0x3438ca}=await NTQQFileApi[_0x4bbd1f(0x14d)](_0x46c0a2,ElementType['FILE']);if(_0x1ece31[_0x4bbd1f(0x153)](_0x3438ca,0x0))throw _0x1ece31[_0x4bbd1f(0x109)];const _0x30e92c={'elementType':ElementType[_0x4bbd1f(0x110)],'elementId':'','fileElement':{'fileName':_0x437356||_0x5a5def,'filePath':_0x503dfc,'fileSize':_0x3438ca['toString']()}};return _0x30e92c;}static async[_0x38f35c(0x11b)](_0x2b8b17,_0x1cff9b='',_0x32282c=''){const _0x505d29=_0x38f35c,_0x1f7eb8={'jyeYF':function(_0x3f2cf2,_0x137243){return _0x3f2cf2(_0x137243);},'iCBLB':function(_0x154a27,_0x319a1c){return _0x154a27(_0x319a1c);},'TxRfQ':function(_0x205d93,_0x3ff650,_0x96e1d7){return _0x205d93(_0x3ff650,_0x96e1d7);},'pKGAO':_0x505d29(0x11e),'YoqrM':_0x505d29(0x134),'fhMVY':function(_0x54cf6d,_0x21d265){return _0x54cf6d+_0x21d265;},'oylnb':'文件异常,大小为0','gcELJ':_0x505d29(0x111),'guKjk':_0x505d29(0x157),'cTieB':function(_0x512cd6,_0x108c6b,_0x4b5dff){return _0x512cd6(_0x108c6b,_0x4b5dff);},'GaOvG':_0x505d29(0x15c),'xeueW':function(_0x184ff2,_0x41c2cb){return _0x184ff2||_0x41c2cb;},'UdqdK':function(_0x1292b9,_0x2ea87e){return _0x1292b9+_0x2ea87e;}},{fileName:_0x895f12,path:_0x3d8450,fileSize:_0x2386ba,md5:_0x1b93b6}=await NTQQFileApi[_0x505d29(0x14d)](_0x2b8b17,ElementType[_0x505d29(0x117)]);if(_0x2386ba===0x0)throw _0x1f7eb8[_0x505d29(0x12c)];const _0x5b9d16=_0x1f7eb8['jyeYF'](require,_0x1f7eb8[_0x505d29(0x142)]);let _0x203208=_0x3d8450[_0x505d29(0x144)](_0x5b9d16[_0x505d29(0x115)]+_0x505d29(0x10a)+_0x5b9d16['sep'],_0x5b9d16[_0x505d29(0x115)]+'Thumb'+_0x5b9d16['sep']);_0x203208=_0x5b9d16[_0x505d29(0x104)](_0x203208);let _0x23ab14={'width':0x780,'height':0x438,'time':0xf,'format':_0x1f7eb8[_0x505d29(0x122)],'size':_0x2386ba,'filePath':_0x2b8b17};try{_0x23ab14=await _0x1f7eb8['iCBLB'](getVideoInfo,_0x3d8450),_0x1f7eb8[_0x505d29(0x13c)](logDebug,_0x1f7eb8[_0x505d29(0x12e)],_0x23ab14);}catch(_0x2bfdc7){_0x1f7eb8[_0x505d29(0x14e)](logError,'获取视频信息失败',_0x2bfdc7);}const _0x2f163e=new Promise((_0x897849,_0x3b6bc3)=>{const _0x221d7a=_0x505d29,_0x864095={'pMHaY':function(_0x412c65,_0x277e08){const _0xe9e6c8=_0x1c93;return _0x1f7eb8[_0xe9e6c8(0x15a)](_0x412c65,_0x277e08);},'qVznw':function(_0x3f8ce5,_0x2dba1b,_0x116994){const _0x552a2e=_0x1c93;return _0x1f7eb8[_0x552a2e(0x14e)](_0x3f8ce5,_0x2dba1b,_0x116994);},'ERAaR':_0x1f7eb8['pKGAO']},_0x553d1a=_0x1b93b6+_0x221d7a(0x137),_0x6286f2=_0x5b9d16['join'](_0x203208,_0x553d1a);_0x1eea64(_0x2b8b17)['on'](_0x1f7eb8[_0x221d7a(0x159)],()=>{})['on'](_0x221d7a(0x108),_0x53bf3b=>{const _0x2c8923=_0x221d7a;_0x864095[_0x2c8923(0x128)](logDebug,_0x864095['ERAaR'],_0x53bf3b),_0x32282c?_0x428b96[_0x2c8923(0x107)](_0x32282c,_0x6286f2)['then'](()=>{_0x864095['pMHaY'](_0x897849,_0x6286f2);})[_0x2c8923(0x148)](_0x3b6bc3):_0x428b96[_0x2c8923(0x13b)](_0x6286f2,defaultVideoThumb)[_0x2c8923(0x113)](()=>{_0x864095['pMHaY'](_0x897849,_0x6286f2);})[_0x2c8923(0x148)](_0x3b6bc3);})['screenshots']({'timestamps':[0x0],'filename':_0x553d1a,'folder':_0x203208,'size':_0x1f7eb8[_0x221d7a(0x103)](_0x23ab14[_0x221d7a(0x12b)],'x')+_0x23ab14[_0x221d7a(0x140)]})['on'](_0x1f7eb8[_0x221d7a(0x159)],()=>{const _0xb8452b=_0x221d7a;_0x1f7eb8[_0xb8452b(0x147)](_0x897849,_0x6286f2);});}),_0x3030dc=new Map(),_0x3089e8=await _0x2f163e,_0x56792f=(await _0x428b96[_0x505d29(0x149)](_0x3089e8))[_0x505d29(0x146)];_0x3030dc[_0x505d29(0x15b)](0x0,_0x3089e8);const _0x1f5873=await calculateFileMD5(_0x3089e8),_0x535ac0={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x1f7eb8['xeueW'](_0x1cff9b,_0x895f12),'filePath':_0x3d8450,'videoMd5':_0x1b93b6,'thumbMd5':_0x1f5873,'fileTime':_0x23ab14[_0x505d29(0x139)],'thumbPath':_0x3030dc,'thumbSize':_0x56792f,'thumbWidth':_0x23ab14[_0x505d29(0x12b)],'thumbHeight':_0x23ab14['height'],'fileSize':_0x1f7eb8[_0x505d29(0x145)]('',_0x2386ba)}};return _0x535ac0;}static async['ptt'](_0x4b3605){const _0x46f0ca=_0x38f35c,_0x24b30f={'IGJIt':_0x46f0ca(0x155),'VRUfa':_0x46f0ca(0x13e),'eXrsi':function(_0x5ecace,_0x2e30a5){return _0x5ecace||_0x2e30a5;}},{converted:_0x194a5e,path:_0x470c6c,duration:_0x150aab}=await encodeSilk(_0x4b3605);if(!_0x470c6c)throw _0x24b30f[_0x46f0ca(0x10d)];const {md5:_0x33a7d4,fileName:_0x4f2005,path:_0x526d2b,fileSize:_0x50dcd6}=await NTQQFileApi[_0x46f0ca(0x14d)](_0x470c6c,ElementType[_0x46f0ca(0x138)]);if(_0x50dcd6===0x0)throw _0x24b30f['VRUfa'];return _0x194a5e&&_0x428b96[_0x46f0ca(0x14c)](_0x470c6c)[_0x46f0ca(0x113)](),{'elementType':ElementType[_0x46f0ca(0x138)],'elementId':'','pttElement':{'fileName':_0x4f2005,'filePath':_0x526d2b,'md5HexStr':_0x33a7d4,'fileSize':_0x50dcd6,'duration':_0x24b30f['eXrsi'](_0x150aab,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[_0x38f35c(0x130)](_0x6c472e){const _0xa0e329=_0x38f35c,_0x1a35cf={'QkUaE':function(_0x2eb84c,_0x2bb1dd){return _0x2eb84c(_0x2bb1dd);},'PNUTS':function(_0x3da88c,_0x3b32f3){return _0x3da88c>=_0x3b32f3;}},_0x56cf32=_0x25e016['sysface'],_0x39f26c=_0x25e016[_0xa0e329(0x114)],_0x26179f=_0x56cf32[_0xa0e329(0x13d)](_0x2730f3=>_0x2730f3[_0xa0e329(0x141)]===_0x6c472e[_0xa0e329(0x11d)]());_0x6c472e=_0x1a35cf[_0xa0e329(0x14b)](parseInt,_0x6c472e[_0xa0e329(0x11d)]());let _0x2572fa=0x1;return _0x1a35cf[_0xa0e329(0x135)](_0x6c472e,0xde)&&(_0x2572fa=0x2),_0x26179f[_0xa0e329(0x131)]&&(_0x2572fa=0x3),{'elementType':ElementType[_0xa0e329(0x12d)],'elementId':'','faceElement':{'faceIndex':_0x6c472e,'faceType':_0x2572fa,'faceText':_0x26179f[_0xa0e329(0x13f)],'stickerId':_0x26179f['AniStickerId'],'stickerType':_0x26179f[_0xa0e329(0x131)],'packId':_0x26179f[_0xa0e329(0x11a)],'sourceType':0x1}};}static[_0x38f35c(0x116)](_0x3178ba,_0x22c559,_0x520107,_0x4ae1b0){const _0x3dbe07=_0x38f35c,_0x1dfe0e={'FjFpr':'[商城表情]'};return{'elementType':ElementType[_0x3dbe07(0x120)],'marketFaceElement':{'emojiPackageId':_0x3178ba,'emojiId':_0x22c559,'key':_0x520107,'faceName':_0x4ae1b0||mFaceCache[_0x3dbe07(0x11c)](_0x22c559)||_0x1dfe0e['FjFpr']}};}static[_0x38f35c(0x150)](_0x370982){const _0x4f7e8c=_0x38f35c,_0xb6a46={'oihjK':'[骰子]'};return{'elementType':ElementType[_0x4f7e8c(0x12d)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x4f7e8c(0x150)],'faceType':FaceType['dice'],'faceText':_0xb6a46['oihjK'],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x38f35c(0x154)](_0x561220){const _0x41ccd9=_0x38f35c,_0x306945={'MgerZ':_0x41ccd9(0x12f)};return{'elementType':ElementType[_0x41ccd9(0x12d)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x41ccd9(0x158)],'faceText':_0x306945[_0x41ccd9(0x123)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x38f35c(0x118)](_0x54f8d4){const _0x74bcd3=_0x38f35c,_0x48fb56={'cOfRH':function(_0x26a5ff,_0x313b70){return _0x26a5ff!==_0x313b70;},'HadWD':'string'};return _0x48fb56['cOfRH'](typeof _0x54f8d4,_0x48fb56[_0x74bcd3(0x10c)])&&(_0x54f8d4=JSON[_0x74bcd3(0x129)](_0x54f8d4)),{'elementType':ElementType[_0x74bcd3(0x121)],'elementId':'','arkElement':{'bytesData':_0x54f8d4,'linkInfo':null,'subElementType':null}};}static[_0x38f35c(0x124)](_0x5513c5){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0x5513c5}};}} \ No newline at end of file +const _0x2fcd48=_0x5c47;(function(_0x2edb19,_0x45dbcc){const _0x49fb83=_0x5c47,_0x4601db=_0x2edb19();while(!![]){try{const _0x155078=parseInt(_0x49fb83(0x12e))/0x1+-parseInt(_0x49fb83(0x164))/0x2+parseInt(_0x49fb83(0x12f))/0x3*(-parseInt(_0x49fb83(0x13d))/0x4)+parseInt(_0x49fb83(0x15a))/0x5*(-parseInt(_0x49fb83(0x13e))/0x6)+parseInt(_0x49fb83(0x132))/0x7*(-parseInt(_0x49fb83(0x13c))/0x8)+-parseInt(_0x49fb83(0x157))/0x9*(-parseInt(_0x49fb83(0x140))/0xa)+parseInt(_0x49fb83(0x139))/0xb;if(_0x155078===_0x45dbcc)break;else _0x4601db['push'](_0x4601db['shift']());}catch(_0x4f7210){_0x4601db['push'](_0x4601db['shift']());}}}(_0x4144,0xc77fc));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x4e2587}from'node:fs';import _0x2e48e3 from'fluent-ffmpeg';function _0x4144(){const _0x5eb05=['581290YxtOjK','sep','mp4','ARK','dice','DBUAE','AudDo','MFACE','replace','join','视频信息','catch','XWEuC','uoAoe','MARKDOWN','get','FILE','mface','notAt','bdaqd','PIC','video','QSid','copyFile','RPS','pic','REPLY','YeINh','uploadFile','Ori','zyfSC','height','918940JyEWAA','737589WghsGu','AniStickerType','XovgX','3851554YtkcQt','sysface','Thumb','writeFile','YZSwc','PTT','oUFXV','13814735zdiQdV','语音转换失败,\x20请检查语音文件是否正常','ZGjrq','16yGFKaU','4lwUEUT','93354WCjQeg','AniStickerPackId','80ZyJgph','FACE','time','TEXT','wljjy','unlink','bgYLg','emoji','文件异常,大小为0','VIDEO','getImageSize','ptt','HicER','OdGPt','exhrj','SxrTu','AniStickerId','gHwbp','error','kPpHF','gif','eFuqI','width','506727uqDYQE','set','then','55obVcIT','reply','text','screenshots','[包剪锤]','end','stringify','[骰子]','toString','获取视频信息失败'];_0x4144=function(){return _0x5eb05;};return _0x4144();}import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';import _0x3a956f from'./face_config.json';export const mFaceCache=new Map();function _0x5c47(_0x4d6132,_0x4d1226){const _0x4144d8=_0x4144();return _0x5c47=function(_0x5c478f,_0x22e704){_0x5c478f=_0x5c478f-0x118;let _0x14a089=_0x4144d8[_0x5c478f];return _0x14a089;},_0x5c47(_0x4d6132,_0x4d1226);}export class SendMsgElementConstructor{static[_0x2fcd48(0x15c)](_0x48c892){const _0x35a68b=_0x2fcd48;return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':_0x48c892,'atType':AtType[_0x35a68b(0x120)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x46ff2a,_0x4e7384,_0x358f35,_0x57acde){const _0x179c51=_0x2fcd48;return{'elementType':ElementType[_0x179c51(0x143)],'elementId':'','textElement':{'content':'@'+_0x57acde,'atType':_0x358f35,'atUid':_0x46ff2a,'atTinyId':'','atNtUid':_0x4e7384}};}static[_0x2fcd48(0x15b)](_0x42254b,_0x310cec,_0x3ed2cb,_0x43eb6c){const _0x57d0fd=_0x2fcd48;return{'elementType':ElementType[_0x57d0fd(0x128)],'elementId':'','replyElement':{'replayMsgSeq':_0x42254b,'replayMsgId':_0x310cec,'senderUin':_0x3ed2cb,'senderUinStr':_0x43eb6c}};}static async[_0x2fcd48(0x127)](_0x30118b,_0x385c8a='',_0x195eef=0x0){const _0x4ff030=_0x2fcd48,_0x28d14d={'ldOWH':function(_0x1c9a9e,_0x598485){return _0x1c9a9e===_0x598485;},'ULqrf':_0x4ff030(0x148),'tKZhC':function(_0xe9c1ee,_0x4f8a3a){return _0xe9c1ee(_0x4f8a3a);}},{md5:_0x219710,fileName:_0x359d29,path:_0x3d32a5,fileSize:_0x58b092}=await NTQQFileApi[_0x4ff030(0x12a)](_0x30118b,ElementType[_0x4ff030(0x122)],_0x195eef);if(_0x28d14d['ldOWH'](_0x58b092,0x0))throw _0x28d14d['ULqrf'];const _0x19f270=await NTQQFileApi[_0x4ff030(0x14a)](_0x30118b),_0x599c18={'md5HexStr':_0x219710,'fileSize':_0x58b092['toString'](),'picWidth':_0x19f270?.[_0x4ff030(0x156)],'picHeight':_0x19f270?.[_0x4ff030(0x12d)],'fileName':_0x359d29,'sourcePath':_0x3d32a5,'original':!![],'picType':_0x28d14d['tKZhC'](isGIF,_0x30118b)?PicType[_0x4ff030(0x154)]:PicType['jpg'],'picSubType':_0x195eef,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x385c8a};return logDebug('图片信息',_0x599c18),{'elementType':ElementType['PIC'],'elementId':'','picElement':_0x599c18};}static async['file'](_0x1fdb3c,_0x5a3bad=''){const _0xcbee4d=_0x2fcd48,_0x5b1609={'tDPRQ':_0xcbee4d(0x148),'uoAoe':function(_0x177db5,_0x826f7e){return _0x177db5||_0x826f7e;}},{md5:_0x3ecf04,fileName:_0xdcb245,path:_0x1a63cb,fileSize:_0x32c38a}=await NTQQFileApi['uploadFile'](_0x1fdb3c,ElementType[_0xcbee4d(0x11e)]);if(_0x32c38a===0x0)throw _0x5b1609['tDPRQ'];const _0x39d757={'elementType':ElementType[_0xcbee4d(0x11e)],'elementId':'','fileElement':{'fileName':_0x5b1609[_0xcbee4d(0x11b)](_0x5a3bad,_0xdcb245),'filePath':_0x1a63cb,'fileSize':_0x32c38a[_0xcbee4d(0x162)]()}};return _0x39d757;}static async[_0x2fcd48(0x123)](_0x49ffb6,_0x21a208='',_0x5a9034=''){const _0x2edf3c=_0x2fcd48,_0x1bb5a0={'wljjy':function(_0x1387b,_0x502147){return _0x1387b(_0x502147);},'XovgX':_0x2edf3c(0x15f),'bgYLg':function(_0xfbde6f,_0x32ff5d){return _0xfbde6f+_0x32ff5d;},'gHwbp':function(_0x15b476,_0x216cd4){return _0x15b476+_0x216cd4;},'kPpHF':function(_0x2d9b21,_0x57f774){return _0x2d9b21===_0x57f774;},'YZSwc':_0x2edf3c(0x148),'xRclV':'path','SxrTu':function(_0x5b58ab,_0x45ec15,_0x4aed7a){return _0x5b58ab(_0x45ec15,_0x4aed7a);},'TYGiU':_0x2edf3c(0x118),'YeINh':function(_0x43f070,_0x505952,_0x3c76b3){return _0x43f070(_0x505952,_0x3c76b3);},'oUFXV':_0x2edf3c(0x163)},{fileName:_0x27711b,path:_0x407932,fileSize:_0x34f1ea,md5:_0x3151d2}=await NTQQFileApi[_0x2edf3c(0x12a)](_0x49ffb6,ElementType[_0x2edf3c(0x149)]);if(_0x1bb5a0[_0x2edf3c(0x153)](_0x34f1ea,0x0))throw _0x1bb5a0[_0x2edf3c(0x136)];const _0x14b1c7=_0x1bb5a0[_0x2edf3c(0x144)](require,_0x1bb5a0['xRclV']);let _0x2c8b91=_0x407932[_0x2edf3c(0x16c)](_0x14b1c7['sep']+_0x2edf3c(0x12b)+_0x14b1c7[_0x2edf3c(0x165)],_0x14b1c7['sep']+_0x2edf3c(0x134)+_0x14b1c7[_0x2edf3c(0x165)]);_0x2c8b91=_0x14b1c7['dirname'](_0x2c8b91);let _0x46ea3d={'width':0x780,'height':0x438,'time':0xf,'format':_0x2edf3c(0x166),'size':_0x34f1ea,'filePath':_0x49ffb6};try{_0x46ea3d=await _0x1bb5a0[_0x2edf3c(0x144)](getVideoInfo,_0x407932),_0x1bb5a0[_0x2edf3c(0x14f)](logDebug,_0x1bb5a0['TYGiU'],_0x46ea3d);}catch(_0x3b2190){_0x1bb5a0[_0x2edf3c(0x129)](logError,_0x1bb5a0[_0x2edf3c(0x138)],_0x3b2190);}const _0x27e0ef=new Promise((_0x6ae0df,_0x154020)=>{const _0x44b9de=_0x2edf3c,_0x5d6632={'bdaqd':function(_0x2abbe9,_0x1746cb){const _0x227483=_0x5c47;return _0x1bb5a0[_0x227483(0x144)](_0x2abbe9,_0x1746cb);}},_0x39c507=_0x3151d2+'_0.png',_0x562a76=_0x14b1c7[_0x44b9de(0x16d)](_0x2c8b91,_0x39c507);_0x1bb5a0[_0x44b9de(0x144)](_0x2e48e3,_0x49ffb6)['on'](_0x1bb5a0[_0x44b9de(0x131)],()=>{})['on'](_0x44b9de(0x152),_0x5286a0=>{const _0x58df2e=_0x44b9de;logDebug('获取视频封面失败,使用默认封面',_0x5286a0),_0x5a9034?_0x4e2587[_0x58df2e(0x125)](_0x5a9034,_0x562a76)[_0x58df2e(0x159)](()=>{const _0xb5e2f2=_0x58df2e;_0x5d6632[_0xb5e2f2(0x121)](_0x6ae0df,_0x562a76);})['catch'](_0x154020):_0x4e2587[_0x58df2e(0x135)](_0x562a76,defaultVideoThumb)[_0x58df2e(0x159)](()=>{_0x6ae0df(_0x562a76);})[_0x58df2e(0x119)](_0x154020);})[_0x44b9de(0x15d)]({'timestamps':[0x0],'filename':_0x39c507,'folder':_0x2c8b91,'size':_0x1bb5a0[_0x44b9de(0x146)](_0x1bb5a0[_0x44b9de(0x151)](_0x46ea3d[_0x44b9de(0x156)],'x'),_0x46ea3d['height'])})['on'](_0x1bb5a0['XovgX'],()=>{_0x6ae0df(_0x562a76);});}),_0x9bb283=new Map(),_0x44e3ae=await _0x27e0ef,_0x326425=(await _0x4e2587['stat'](_0x44e3ae))['size'];_0x9bb283[_0x2edf3c(0x158)](0x0,_0x44e3ae);const _0x378313=await calculateFileMD5(_0x44e3ae),_0x27fd4f={'elementType':ElementType[_0x2edf3c(0x149)],'elementId':'','videoElement':{'fileName':_0x21a208||_0x27711b,'filePath':_0x407932,'videoMd5':_0x3151d2,'thumbMd5':_0x378313,'fileTime':_0x46ea3d[_0x2edf3c(0x142)],'thumbPath':_0x9bb283,'thumbSize':_0x326425,'thumbWidth':_0x46ea3d[_0x2edf3c(0x156)],'thumbHeight':_0x46ea3d[_0x2edf3c(0x12d)],'fileSize':''+_0x34f1ea}};return _0x27fd4f;}static async[_0x2fcd48(0x14b)](_0x1df016){const _0x21dd97=_0x2fcd48,_0x347ea4={'OdGPt':function(_0x36b521,_0x354141){return _0x36b521(_0x354141);},'zyfSC':_0x21dd97(0x13a),'dmMyT':_0x21dd97(0x148),'eFuqI':function(_0xc91078,_0x5dd5e5){return _0xc91078||_0x5dd5e5;}},{converted:_0x3e87dd,path:_0x23269d,duration:_0x3fa068}=await _0x347ea4[_0x21dd97(0x14d)](encodeSilk,_0x1df016);if(!_0x23269d)throw _0x347ea4[_0x21dd97(0x12c)];const {md5:_0x2abf81,fileName:_0x39a823,path:_0x43d29b,fileSize:_0x255445}=await NTQQFileApi[_0x21dd97(0x12a)](_0x23269d,ElementType[_0x21dd97(0x137)]);if(_0x255445===0x0)throw _0x347ea4['dmMyT'];return _0x3e87dd&&_0x4e2587[_0x21dd97(0x145)](_0x23269d)[_0x21dd97(0x159)](),{'elementType':ElementType[_0x21dd97(0x137)],'elementId':'','pttElement':{'fileName':_0x39a823,'filePath':_0x43d29b,'md5HexStr':_0x2abf81,'fileSize':_0x255445,'duration':_0x347ea4[_0x21dd97(0x155)](_0x3fa068,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'](_0x3f62b5){const _0x547d87=_0x2fcd48,_0x2393ef={'exhrj':function(_0x5eb6d6,_0x50b2d0){return _0x5eb6d6(_0x50b2d0);},'HicER':function(_0x22b6b8,_0x7e9d2){return _0x22b6b8>=_0x7e9d2;}},_0x5906f9=_0x3a956f[_0x547d87(0x133)],_0x2d2030=_0x3a956f[_0x547d87(0x147)],_0x337b02=_0x5906f9['find'](_0x5a8cac=>_0x5a8cac[_0x547d87(0x124)]===_0x3f62b5['toString']());_0x3f62b5=_0x2393ef[_0x547d87(0x14e)](parseInt,_0x3f62b5[_0x547d87(0x162)]());let _0x1b330f=0x1;return _0x2393ef[_0x547d87(0x14c)](_0x3f62b5,0xde)&&(_0x1b330f=0x2),_0x337b02[_0x547d87(0x130)]&&(_0x1b330f=0x3),{'elementType':ElementType[_0x547d87(0x141)],'elementId':'','faceElement':{'faceIndex':_0x3f62b5,'faceType':_0x1b330f,'faceText':_0x337b02['QDes'],'stickerId':_0x337b02[_0x547d87(0x150)],'stickerType':_0x337b02[_0x547d87(0x130)],'packId':_0x337b02[_0x547d87(0x13f)],'sourceType':0x1}};}static[_0x2fcd48(0x11f)](_0x1eb3a5,_0x96c83e,_0x3a90ff,_0xf67156){const _0x2ac292=_0x2fcd48,_0x44b9d9={'WsMGW':'[商城表情]'};return{'elementType':ElementType[_0x2ac292(0x16b)],'marketFaceElement':{'emojiPackageId':_0x1eb3a5,'emojiId':_0x96c83e,'key':_0x3a90ff,'faceName':_0xf67156||mFaceCache[_0x2ac292(0x11d)](_0x96c83e)||_0x44b9d9['WsMGW']}};}static[_0x2fcd48(0x168)](_0x1c87d6){const _0x387d90=_0x2fcd48,_0x1c4c4d={'DBUAE':_0x387d90(0x161)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x387d90(0x168)],'faceType':FaceType[_0x387d90(0x168)],'faceText':_0x1c4c4d[_0x387d90(0x169)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x141441){const _0x2436c3=_0x2fcd48,_0x382a76={'ZGjrq':_0x2436c3(0x15e)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x2436c3(0x126)],'faceText':_0x382a76[_0x2436c3(0x13b)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['ark'](_0x42f08b){const _0x2669e0=_0x2fcd48,_0x3ea6b6={'AudDo':function(_0x2fc12d,_0x165f92){return _0x2fc12d!==_0x165f92;},'XWEuC':'string'};return _0x3ea6b6[_0x2669e0(0x16a)](typeof _0x42f08b,_0x3ea6b6[_0x2669e0(0x11a)])&&(_0x42f08b=JSON[_0x2669e0(0x160)](_0x42f08b)),{'elementType':ElementType[_0x2669e0(0x167)],'elementId':'','arkElement':{'bytesData':_0x42f08b,'linkInfo':null,'subElementType':null}};}static['markdown'](_0x4e1b3c){const _0x188690=_0x2fcd48;return{'elementType':ElementType[_0x188690(0x11c)],'elementId':'','markdownElement':{'content':_0x4e1b3c}};}} \ 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 46ac6fac..dcafa2fe 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -(function(_0x33e778,_0x44a95a){var _0x421da2=_0x581f,_0x3a2442=_0x33e778();while(!![]){try{var _0x3436e1=-parseInt(_0x421da2(0xc2))/0x1*(parseInt(_0x421da2(0xc5))/0x2)+-parseInt(_0x421da2(0xc7))/0x3+-parseInt(_0x421da2(0xca))/0x4+parseInt(_0x421da2(0xce))/0x5*(parseInt(_0x421da2(0xc4))/0x6)+parseInt(_0x421da2(0xc0))/0x7*(parseInt(_0x421da2(0xbf))/0x8)+-parseInt(_0x421da2(0xcf))/0x9*(parseInt(_0x421da2(0xc3))/0xa)+parseInt(_0x421da2(0xcd))/0xb*(parseInt(_0x421da2(0xc6))/0xc);if(_0x3436e1===_0x44a95a)break;else _0x3a2442['push'](_0x3a2442['shift']());}catch(_0x461408){_0x3a2442['push'](_0x3a2442['shift']());}}}(_0x3dc7,0x4a50d));export var GroupMemberRole;function _0x581f(_0x4650fb,_0x26cf6b){var _0x3dc7c4=_0x3dc7();return _0x581f=function(_0x581fc2,_0x4f5f99){_0x581fc2=_0x581fc2-0xbf;var _0x433f44=_0x3dc7c4[_0x581fc2];return _0x433f44;},_0x581f(_0x4650fb,_0x26cf6b);}(function(_0x28abeb){var _0x1c0caf=_0x581f,_0x218261={'NroYp':'normal','RFwJt':_0x1c0caf(0xcc),'xoVcu':_0x1c0caf(0xc8)};_0x28abeb[_0x28abeb[_0x218261[_0x1c0caf(0xc9)]]=0x2]=_0x218261['NroYp'],_0x28abeb[_0x28abeb[_0x218261['RFwJt']]=0x3]=_0x218261[_0x1c0caf(0xcb)],_0x28abeb[_0x28abeb[_0x218261[_0x1c0caf(0xc1)]]=0x4]=_0x218261[_0x1c0caf(0xc1)];}(GroupMemberRole||(GroupMemberRole={})));function _0x3dc7(){var _0x558fba=['5330vOuaex','16074LKaolq','787922LsEgiF','3996pyAwgt','287070KASvSJ','owner','NroYp','326808vaapIt','RFwJt','admin','29469Naetcf','315mYmaxV','9675JRPmVa','3102728SIvcds','7ZzyATk','xoVcu','1PxnPKi'];_0x3dc7=function(){return _0x558fba;};return _0x3dc7();} \ No newline at end of file +function _0x99b5(_0x4d923d,_0x542612){var _0x37bed9=_0x37be();return _0x99b5=function(_0x99b52e,_0x4cbf0d){_0x99b52e=_0x99b52e-0x17b;var _0x471e92=_0x37bed9[_0x99b52e];return _0x471e92;},_0x99b5(_0x4d923d,_0x542612);}function _0x37be(){var _0x3fa1a7=['4978216vjIPrB','834eIYXBP','530350zFUjzc','LllUN','63679HxFkAR','Eagxn','CxguC','normal','11EbgQNZ','12337210szqUdS','2698ZLnOiN','55611144azRnrH','2412CGfVFm','owner','87899OaJPgb','44SUOHIp','9BvcGlt'];_0x37be=function(){return _0x3fa1a7;};return _0x37be();}(function(_0x9421c9,_0x95fcdd){var _0x571a43=_0x99b5,_0x127497=_0x9421c9();while(!![]){try{var _0x484fa6=-parseInt(_0x571a43(0x17b))/0x1+parseInt(_0x571a43(0x188))/0x2*(parseInt(_0x571a43(0x18a))/0x3)+parseInt(_0x571a43(0x17c))/0x4*(parseInt(_0x571a43(0x180))/0x5)+-parseInt(_0x571a43(0x17f))/0x6*(-parseInt(_0x571a43(0x182))/0x7)+parseInt(_0x571a43(0x17e))/0x8*(parseInt(_0x571a43(0x17d))/0x9)+-parseInt(_0x571a43(0x187))/0xa*(-parseInt(_0x571a43(0x186))/0xb)+-parseInt(_0x571a43(0x189))/0xc;if(_0x484fa6===_0x95fcdd)break;else _0x127497['push'](_0x127497['shift']());}catch(_0x288b1d){_0x127497['push'](_0x127497['shift']());}}}(_0x37be,0x9e9d6));export var GroupMemberRole;(function(_0x4c45b1){var _0x128bb6=_0x99b5,_0x57c587={'CxguC':_0x128bb6(0x185),'Eagxn':'admin','LllUN':_0x128bb6(0x18b)};_0x4c45b1[_0x4c45b1[_0x128bb6(0x185)]=0x2]=_0x57c587[_0x128bb6(0x184)],_0x4c45b1[_0x4c45b1[_0x57c587[_0x128bb6(0x183)]]=0x3]=_0x57c587[_0x128bb6(0x183)],_0x4c45b1[_0x4c45b1[_0x57c587[_0x128bb6(0x181)]]=0x4]=_0x57c587[_0x128bb6(0x181)];}(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 11433876..08e31d3b 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x5cd2dd,_0x33e956){var _0x4f4d65=_0x5e45,_0x54891=_0x5cd2dd();while(!![]){try{var _0x13f21d=-parseInt(_0x4f4d65(0x1d6))/0x1+-parseInt(_0x4f4d65(0x1d7))/0x2*(parseInt(_0x4f4d65(0x1d3))/0x3)+-parseInt(_0x4f4d65(0x1d8))/0x4+parseInt(_0x4f4d65(0x1d9))/0x5*(parseInt(_0x4f4d65(0x1dc))/0x6)+-parseInt(_0x4f4d65(0x1da))/0x7*(-parseInt(_0x4f4d65(0x1d5))/0x8)+parseInt(_0x4f4d65(0x1d4))/0x9+parseInt(_0x4f4d65(0x1db))/0xa;if(_0x13f21d===_0x33e956)break;else _0x54891['push'](_0x54891['shift']());}catch(_0x13ddc4){_0x54891['push'](_0x54891['shift']());}}}(_0x1227,0x33465));export*from'./user';export*from'./group';function _0x1227(){var _0x27b089=['1437712tGcpJM','232818UeLxhA','194466ccXgAf','241872ChOwjv','725AaLLEF','14vzWTpb','222430lhxgZf','11274xyNhzu','12FpjPhc','2143017kRETtf'];_0x1227=function(){return _0x27b089;};return _0x1227();}export*from'./msg';export*from'./notify';function _0x5e45(_0x24116f,_0x37b042){var _0x12277f=_0x1227();return _0x5e45=function(_0x5e454e,_0x57122d){_0x5e454e=_0x5e454e-0x1d3;var _0x642e44=_0x12277f[_0x5e454e];return _0x642e44;},_0x5e45(_0x24116f,_0x37b042);}export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x50bd35,_0x366773){var _0x2e9aba=_0x4660,_0x488b63=_0x50bd35();while(!![]){try{var _0x4a034c=-parseInt(_0x2e9aba(0xc9))/0x1+-parseInt(_0x2e9aba(0xc8))/0x2+-parseInt(_0x2e9aba(0xd0))/0x3+parseInt(_0x2e9aba(0xcc))/0x4+-parseInt(_0x2e9aba(0xcf))/0x5*(parseInt(_0x2e9aba(0xc7))/0x6)+parseInt(_0x2e9aba(0xce))/0x7*(parseInt(_0x2e9aba(0xca))/0x8)+-parseInt(_0x2e9aba(0xcb))/0x9*(-parseInt(_0x2e9aba(0xcd))/0xa);if(_0x4a034c===_0x366773)break;else _0x488b63['push'](_0x488b63['shift']());}catch(_0x5b3984){_0x488b63['push'](_0x488b63['shift']());}}}(_0x3d8d,0xf33b5));function _0x4660(_0xad0f95,_0x1c953){var _0x3d8d8f=_0x3d8d();return _0x4660=function(_0x46605a,_0x40fb75){_0x46605a=_0x46605a-0xc7;var _0x161fb9=_0x3d8d8f[_0x46605a];return _0x161fb9;},_0x4660(_0xad0f95,_0x1c953);}export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x3d8d(){var _0x3de35a=['1100652pHZxVa','16IteUXK','19816596cYfhFt','1814860CeCwCw','20ljprYF','4583271JDJUEN','74435BnJGaQ','5192880PNgIqD','390PfbTwG','2742730JMvWfx'];_0x3d8d=function(){return _0x3de35a;};return _0x3d8d();}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 ee1b525a..eca2dbca 100644 --- a/src/core.lib/src/entities/msg.d.ts +++ b/src/core.lib/src/entities/msg.d.ts @@ -4,6 +4,15 @@ export interface Peer { peerUid: string; guildId?: string; } +export interface KickedOffLineInfo { + appId: number; + instanceId: number; + sameDevice: boolean; + tipsDesc: string; + tipsTitle: string; + kickedType: number; + securityKickedType: number; +} export declare enum ElementType { TEXT = 1, PIC = 2, diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index 819bf213..8c2ef236 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x1dcad0=_0x5022;(function(_0x216201,_0x4658c4){var _0x4dd203=_0x5022,_0x463742=_0x216201();while(!![]){try{var _0x4305d7=parseInt(_0x4dd203(0xee))/0x1+parseInt(_0x4dd203(0x103))/0x2+-parseInt(_0x4dd203(0x100))/0x3*(-parseInt(_0x4dd203(0xf7))/0x4)+-parseInt(_0x4dd203(0xdd))/0x5+-parseInt(_0x4dd203(0x104))/0x6*(-parseInt(_0x4dd203(0x105))/0x7)+parseInt(_0x4dd203(0xe8))/0x8+-parseInt(_0x4dd203(0xdb))/0x9;if(_0x4305d7===_0x4658c4)break;else _0x463742['push'](_0x463742['shift']());}catch(_0x4e5787){_0x463742['push'](_0x463742['shift']());}}}(_0x5327,0x52c44));export var ElementType;(function(_0x153ff7){var _0x546987=_0x5022,_0x36633f={'OFmGF':'VIDEO','MolIN':_0x546987(0x10a),'wHDxK':_0x546987(0xe9),'OGkmB':'REPLY','mqgBJ':_0x546987(0xf6),'GYjAh':_0x546987(0xfb),'gWwID':_0x546987(0xf2),'HTuCD':_0x546987(0xe1),'vfsqm':_0x546987(0xe0)},_0x3e52e2=_0x546987(0x101)[_0x546987(0xdf)]('|'),_0x5036eb=0x0;while(!![]){switch(_0x3e52e2[_0x5036eb++]){case'0':_0x153ff7[_0x153ff7[_0x546987(0xec)]=0x4]='PTT';continue;case'1':_0x153ff7[_0x153ff7[_0x546987(0xef)]=0x5]=_0x36633f['OFmGF'];continue;case'2':_0x153ff7[_0x153ff7[_0x546987(0x10a)]=0xb]=_0x36633f['MolIN'];continue;case'3':_0x153ff7[_0x153ff7[_0x36633f[_0x546987(0x102)]]=0x3]=_0x36633f['wHDxK'];continue;case'4':_0x153ff7[_0x153ff7[_0x36633f[_0x546987(0xf5)]]=0x7]=_0x36633f[_0x546987(0xf5)];continue;case'5':_0x153ff7[_0x153ff7[_0x36633f[_0x546987(0xe7)]]=0x6]=_0x36633f['mqgBJ'];continue;case'6':_0x153ff7[_0x153ff7[_0x36633f[_0x546987(0xfd)]]=0x2]=_0x36633f['GYjAh'];continue;case'7':_0x153ff7[_0x153ff7[_0x546987(0xf2)]=0x1]=_0x36633f[_0x546987(0xf1)];continue;case'8':_0x153ff7[_0x153ff7[_0x36633f[_0x546987(0xdc)]]=0xe]=_0x36633f[_0x546987(0xdc)];continue;case'9':_0x153ff7[_0x153ff7[_0x36633f[_0x546987(0xd9)]]=0xa]=_0x36633f['vfsqm'];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x1e9e6b){var _0x406a36=_0x5022,_0x53c9e3={'kLZpO':_0x406a36(0xeb),'ojBOJ':'jpg'};_0x1e9e6b[_0x1e9e6b[_0x53c9e3[_0x406a36(0xfa)]]=0x7d0]=_0x53c9e3[_0x406a36(0xfa)],_0x1e9e6b[_0x1e9e6b[_0x406a36(0xd4)]=0x3e8]=_0x53c9e3['ojBOJ'];}(PicType||(PicType={})));export var PicSubType;(function(_0x5edf2c){var _0x24b055=_0x5022,_0x10c353={'VueiD':_0x24b055(0xda),'Aozwr':_0x24b055(0xde)};_0x5edf2c[_0x5edf2c[_0x24b055(0xda)]=0x0]=_0x10c353[_0x24b055(0x10b)],_0x5edf2c[_0x5edf2c[_0x10c353['Aozwr']]=0x1]=_0x10c353['Aozwr'];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x5503a8){var _0x1ebb7a=_0x5022,_0x34e8b6={'Snvkm':'notAt','rbnbW':'atAll','arjJp':_0x1ebb7a(0xe2)};_0x5503a8[_0x5503a8[_0x34e8b6[_0x1ebb7a(0xed)]]=0x0]=_0x34e8b6['Snvkm'],_0x5503a8[_0x5503a8[_0x1ebb7a(0xf9)]=0x1]=_0x34e8b6[_0x1ebb7a(0xff)],_0x5503a8[_0x5503a8[_0x34e8b6[_0x1ebb7a(0xd7)]]=0x2]=_0x34e8b6[_0x1ebb7a(0xd7)];}(AtType||(AtType={})));export var ChatType;(function(_0x1dff67){var _0x5aa33f=_0x5022,_0x274bf5={'zemwJ':_0x5aa33f(0xf0),'fkRJI':_0x5aa33f(0x10c),'IXMqS':'chatDevice','mXPer':_0x5aa33f(0x107)};_0x1dff67[_0x1dff67[_0x274bf5['zemwJ']]=0x1]=_0x5aa33f(0xf0),_0x1dff67[_0x1dff67[_0x274bf5[_0x5aa33f(0x108)]]=0x2]=_0x274bf5[_0x5aa33f(0x108)],_0x1dff67[_0x1dff67[_0x274bf5[_0x5aa33f(0xe3)]]=0x8]=_0x274bf5[_0x5aa33f(0xe3)],_0x1dff67[_0x1dff67[_0x274bf5[_0x5aa33f(0xe5)]]=0x64]=_0x274bf5[_0x5aa33f(0xe5)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x1dcad0(0x106);export const IMAGE_HTTP_HOST_NT=_0x1dcad0(0x10e);export var GrayTipElementSubType;function _0x5022(_0x11a026,_0x5b86de){var _0x5327e8=_0x5327();return _0x5022=function(_0x502236,_0x520937){_0x502236=_0x502236-0xd3;var _0x183de7=_0x5327e8[_0x502236];return _0x183de7;},_0x5022(_0x11a026,_0x5b86de);}(function(_0xbde99){var _0xd0ae54=_0x1dcad0,_0x44bcd2={'TpFYV':_0xd0ae54(0xf4),'NMWup':_0xd0ae54(0x109)};_0xbde99[_0xbde99['INVITE_NEW_MEMBER']=0xc]=_0x44bcd2[_0xd0ae54(0xd3)],_0xbde99[_0xbde99[_0x44bcd2[_0xd0ae54(0xe6)]]=0x11]=_0x44bcd2[_0xd0ae54(0xe6)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x5347c5){var _0x1d87f8=_0x1dcad0,_0x406634={'LkRZA':'normal','EKmkT':_0x1d87f8(0xf8),'JLoQs':_0x1d87f8(0xfe)};_0x5347c5[_0x5347c5[_0x406634['LkRZA']]=0x1]=_0x406634['LkRZA'],_0x5347c5[_0x5347c5[_0x406634[_0x1d87f8(0xd5)]]=0x2]=_0x406634[_0x1d87f8(0xd5)],_0x5347c5[_0x5347c5[_0x406634[_0x1d87f8(0x10d)]]=0x3]=_0x1d87f8(0xfe);}(FaceType||(FaceType={})));export var FaceIndex;function _0x5327(){var _0x4aecbd=['kLZpO','PIC','ban','GYjAh','dice','rbnbW','165uQwpPl','7|6|3|0|1|5|4|9|2|8','wHDxK','228340NQMAmi','5286YXJXRx','238Ncalwf','https://gchat.qpic.cn','temp','fkRJI','MEMBER_NEW_TITLE','MFACE','VueiD','group','JLoQs','https://multimedia.nt.qq.com.cn','TpFYV','jpg','EKmkT','memberIncrease','arjJp','RPS','vfsqm','normal','721710WbWdBn','HTuCD','2177360LMibay','face','split','ARK','MARKDOWN','atUser','IXMqS','VyuJL','mXPer','NMWup','mqgBJ','951632XliVHe','FILE','pMyQS','gif','PTT','Snvkm','360541KVdvCw','VIDEO','friend','gWwID','TEXT','pmmvo','INVITE_NEW_MEMBER','OGkmB','FACE','16804MrfMdh','normal2','atAll'];_0x5327=function(){return _0x4aecbd;};return _0x5327();}(function(_0x45df72){var _0x33f88a=_0x1dcad0,_0x1c073d={'pmmvo':_0x33f88a(0xfe),'VyuJL':'RPS'};_0x45df72[_0x45df72[_0x1c073d[_0x33f88a(0xf3)]]=0x166]=_0x1c073d[_0x33f88a(0xf3)],_0x45df72[_0x45df72[_0x1c073d[_0x33f88a(0xe4)]]=0x167]=_0x33f88a(0xd8);}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x258cb5){var _0x2cc97f=_0x1dcad0,_0x3edbbf={'pMyQS':'kicked'};_0x258cb5[_0x258cb5['memberIncrease']=0x1]=_0x2cc97f(0xd6),_0x258cb5[_0x258cb5[_0x3edbbf[_0x2cc97f(0xea)]]=0x3]=_0x3edbbf[_0x2cc97f(0xea)],_0x258cb5[_0x258cb5[_0x2cc97f(0xfc)]=0x8]=_0x2cc97f(0xfc);}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x50daac=_0x21db;(function(_0x25eab3,_0x289c90){var _0x27374e=_0x21db,_0x4acc4b=_0x25eab3();while(!![]){try{var _0x179175=-parseInt(_0x27374e(0xa0))/0x1+-parseInt(_0x27374e(0x9e))/0x2+parseInt(_0x27374e(0xa6))/0x3*(parseInt(_0x27374e(0xa3))/0x4)+-parseInt(_0x27374e(0x9c))/0x5*(-parseInt(_0x27374e(0x84))/0x6)+-parseInt(_0x27374e(0x98))/0x7*(-parseInt(_0x27374e(0x85))/0x8)+parseInt(_0x27374e(0x83))/0x9+parseInt(_0x27374e(0x89))/0xa*(parseInt(_0x27374e(0x8b))/0xb);if(_0x179175===_0x289c90)break;else _0x4acc4b['push'](_0x4acc4b['shift']());}catch(_0x3a2ed0){_0x4acc4b['push'](_0x4acc4b['shift']());}}}(_0xd17e,0x93f2e));function _0xd17e(){var _0x61e3f5=['RPS','PTT','YPixd','vqxDW','memberIncrease','dice','jAFZx','Mdwus','pxJEZ','MFACE','INCRp','jrecr','onRnv','ARK','522990EpFisD','4397034jAiQIA','8mEtVjv','FACE','atUser','gMmSO','3362010BdSNjl','vxxWi','33tbrjEA','ThsuP','FILE','WHyHS','kicked','temp','normal','friend','uQhik','iRisL','OOmDA','qPnYm','XccPy','2462719wmLdtm','ZsZMp','EVhjN','REPLY','5KpYyLj','rzgDu','2337786HruSko','VzkZw','1170899BVVUbO','INVITE_NEW_MEMBER','dFzxR','4ZDTROe','uhcas','MARKDOWN','2383263vYVWPT','Bgvkx','TEXT','jyAXU','MopOW','https://gchat.qpic.cn','vUTRZ','PIC','MEMBER_NEW_TITLE','group'];_0xd17e=function(){return _0x61e3f5;};return _0xd17e();}export var ElementType;(function(_0x394baa){var _0x516733=_0x21db,_0x24885a={'dFzxR':_0x516733(0xa8),'uhcas':_0x516733(0x72),'TJyMH':'FILE','Mdwus':_0x516733(0x76),'jyAXU':'VIDEO','jrecr':_0x516733(0x86),'WHyHS':'REPLY','pxJEZ':_0x516733(0x82),'XccPy':_0x516733(0x7e),'kiCLm':_0x516733(0xa5)};_0x394baa[_0x394baa[_0x24885a[_0x516733(0xa2)]]=0x1]=_0x24885a[_0x516733(0xa2)],_0x394baa[_0x394baa[_0x24885a[_0x516733(0xa4)]]=0x2]=_0x24885a[_0x516733(0xa4)],_0x394baa[_0x394baa[_0x516733(0x8d)]=0x3]=_0x24885a['TJyMH'],_0x394baa[_0x394baa[_0x24885a['Mdwus']]=0x4]=_0x24885a[_0x516733(0x7c)],_0x394baa[_0x394baa[_0x24885a['jyAXU']]=0x5]=_0x24885a[_0x516733(0x6e)],_0x394baa[_0x394baa[_0x24885a['jrecr']]=0x6]=_0x24885a[_0x516733(0x80)],_0x394baa[_0x394baa[_0x516733(0x9b)]=0x7]=_0x24885a[_0x516733(0x8e)],_0x394baa[_0x394baa[_0x24885a[_0x516733(0x7d)]]=0xa]=_0x24885a[_0x516733(0x7d)],_0x394baa[_0x394baa[_0x24885a[_0x516733(0x97)]]=0xb]=_0x24885a[_0x516733(0x97)],_0x394baa[_0x394baa[_0x24885a['kiCLm']]=0xe]=_0x516733(0xa5);}(ElementType||(ElementType={})));export var PicType;(function(_0x3fb848){var _0x10a1db=_0x21db,_0x10955e={'iRisL':'gif','EVhjN':'jpg'};_0x3fb848[_0x3fb848[_0x10955e[_0x10a1db(0x94)]]=0x7d0]=_0x10955e[_0x10a1db(0x94)],_0x3fb848[_0x3fb848[_0x10955e[_0x10a1db(0x9a)]]=0x3e8]=_0x10955e[_0x10a1db(0x9a)];}(PicType||(PicType={})));export var PicSubType;(function(_0x2150a6){var _0x4eb105=_0x21db,_0x53557f={'Bgvkx':'normal','gMmSO':'face'};_0x2150a6[_0x2150a6[_0x53557f[_0x4eb105(0xa7)]]=0x0]=_0x53557f[_0x4eb105(0xa7)],_0x2150a6[_0x2150a6[_0x53557f[_0x4eb105(0x88)]]=0x1]=_0x53557f[_0x4eb105(0x88)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x316fb6){var _0x261eca=_0x21db,_0x574727={'vxxWi':'notAt','ZsZMp':'atAll','INCRp':_0x261eca(0x87)};_0x316fb6[_0x316fb6[_0x574727[_0x261eca(0x8a)]]=0x0]=_0x574727['vxxWi'],_0x316fb6[_0x316fb6[_0x574727['ZsZMp']]=0x1]=_0x574727[_0x261eca(0x99)],_0x316fb6[_0x316fb6[_0x574727['INCRp']]=0x2]=_0x574727[_0x261eca(0x7f)];}(AtType||(AtType={})));export var ChatType;(function(_0x184890){var _0x5e7dba=_0x21db,_0x639aa2={'vqxDW':_0x5e7dba(0x92),'rzgDu':'group','onRnv':'chatDevice','jAFZx':_0x5e7dba(0x90)};_0x184890[_0x184890[_0x639aa2[_0x5e7dba(0x78)]]=0x1]=_0x5e7dba(0x92),_0x184890[_0x184890[_0x639aa2[_0x5e7dba(0x9d)]]=0x2]=_0x5e7dba(0x74),_0x184890[_0x184890[_0x639aa2['onRnv']]=0x8]=_0x639aa2[_0x5e7dba(0x81)],_0x184890[_0x184890[_0x639aa2[_0x5e7dba(0x7b)]]=0x64]=_0x639aa2['jAFZx'];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x50daac(0x70);export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0x48e131){var _0x1e0d59=_0x50daac,_0xadec96={'vUTRZ':_0x1e0d59(0x73)};_0x48e131[_0x48e131[_0x1e0d59(0xa1)]=0xc]=_0x1e0d59(0xa1),_0x48e131[_0x48e131[_0xadec96[_0x1e0d59(0x71)]]=0x11]=_0xadec96['vUTRZ'];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x50d2ea){var _0x412200=_0x50daac,_0x4ef094={'VzkZw':_0x412200(0x91),'uQhik':'normal2','qPnYm':_0x412200(0x7a)};_0x50d2ea[_0x50d2ea[_0x4ef094[_0x412200(0x9f)]]=0x1]=_0x4ef094[_0x412200(0x9f)],_0x50d2ea[_0x50d2ea[_0x4ef094[_0x412200(0x93)]]=0x2]=_0x4ef094['uQhik'],_0x50d2ea[_0x50d2ea[_0x4ef094[_0x412200(0x96)]]=0x3]=_0x412200(0x7a);}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x2f984a){var _0x5426fd=_0x50daac,_0x29deb0={'OOmDA':_0x5426fd(0x7a),'YPixd':_0x5426fd(0x75)};_0x2f984a[_0x2f984a[_0x29deb0[_0x5426fd(0x95)]]=0x166]=_0x29deb0[_0x5426fd(0x95)],_0x2f984a[_0x2f984a[_0x5426fd(0x75)]=0x167]=_0x29deb0[_0x5426fd(0x77)];}(FaceIndex||(FaceIndex={})));function _0x21db(_0x43d9e4,_0x13b540){var _0xd17e87=_0xd17e();return _0x21db=function(_0x21db99,_0x568210){_0x21db99=_0x21db99-0x6e;var _0x3734a3=_0xd17e87[_0x21db99];return _0x3734a3;},_0x21db(_0x43d9e4,_0x13b540);}export var TipGroupElementType;(function(_0x30dd73){var _0x452766=_0x50daac,_0x2ddf91={'yWEST':_0x452766(0x79),'MopOW':_0x452766(0x8f),'ThsuP':'ban'};_0x30dd73[_0x30dd73['memberIncrease']=0x1]=_0x2ddf91['yWEST'],_0x30dd73[_0x30dd73[_0x2ddf91[_0x452766(0x6f)]]=0x3]=_0x452766(0x8f),_0x30dd73[_0x30dd73[_0x2ddf91[_0x452766(0x8c)]]=0x8]=_0x2ddf91['ThsuP'];}(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 2b5483a5..55017ae1 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x4ff19b,_0xac9719){var _0x46410c=_0x18fc,_0x3c4c4e=_0x4ff19b();while(!![]){try{var _0x5abd77=-parseInt(_0x46410c(0xb2))/0x1*(-parseInt(_0x46410c(0xcb))/0x2)+parseInt(_0x46410c(0xc6))/0x3*(parseInt(_0x46410c(0xd1))/0x4)+-parseInt(_0x46410c(0xbd))/0x5*(parseInt(_0x46410c(0xaf))/0x6)+parseInt(_0x46410c(0xb8))/0x7+parseInt(_0x46410c(0xcc))/0x8+-parseInt(_0x46410c(0xbb))/0x9+parseInt(_0x46410c(0xcd))/0xa;if(_0x5abd77===_0xac9719)break;else _0x3c4c4e['push'](_0x3c4c4e['shift']());}catch(_0x34dfe0){_0x3c4c4e['push'](_0x3c4c4e['shift']());}}}(_0x5cb4,0x786e1));export var GroupNotifyTypes;(function(_0xeca5c6){var _0x2c1d3b=_0x18fc,_0x68de92={'cHwIg':_0x2c1d3b(0xc0),'qBFWV':_0x2c1d3b(0xc4),'SjgLU':_0x2c1d3b(0xbf),'BVYiO':_0x2c1d3b(0xb9),'NHNWm':_0x2c1d3b(0xca),'tNvLi':_0x2c1d3b(0xc2),'Vdzeh':'INVITE_ME','qqTLg':_0x2c1d3b(0xb5),'WNmJb':_0x2c1d3b(0xc7)},_0xa042c2=_0x68de92['cHwIg']['split']('|'),_0x58a04f=0x0;while(!![]){switch(_0xa042c2[_0x58a04f++]){case'0':_0xeca5c6[_0xeca5c6[_0x68de92[_0x2c1d3b(0xc8)]]=0xd]=_0x68de92[_0x2c1d3b(0xc8)];continue;case'1':_0xeca5c6[_0xeca5c6[_0x68de92['SjgLU']]=0xc]=_0x2c1d3b(0xbf);continue;case'2':_0xeca5c6[_0xeca5c6[_0x2c1d3b(0xb9)]=0x8]=_0x68de92['BVYiO'];continue;case'3':_0xeca5c6[_0xeca5c6[_0x2c1d3b(0xca)]=0x7]=_0x68de92[_0x2c1d3b(0xb1)];continue;case'4':_0xeca5c6[_0xeca5c6[_0x68de92['tNvLi']]=0x9]=_0x68de92[_0x2c1d3b(0xcf)];continue;case'5':_0xeca5c6[_0xeca5c6[_0x68de92[_0x2c1d3b(0xc9)]]=0x1]=_0x68de92[_0x2c1d3b(0xc9)];continue;case'6':_0xeca5c6[_0xeca5c6[_0x68de92[_0x2c1d3b(0xc3)]]=0xb]=_0x68de92[_0x2c1d3b(0xc3)];continue;case'7':_0xeca5c6[_0xeca5c6[_0x68de92[_0x2c1d3b(0xd0)]]=0x4]='INVITED_JOIN';continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;function _0x18fc(_0x4e51e1,_0xf3428d){var _0x5cb422=_0x5cb4();return _0x18fc=function(_0x18fccc,_0x579711){_0x18fccc=_0x18fccc-0xaf;var _0x54b5b8=_0x5cb422[_0x18fccc];return _0x54b5b8;},_0x18fc(_0x4e51e1,_0xf3428d);}(function(_0x51ec75){var _0xddbc91=_0x18fc,_0x45e766={'AbTLo':_0xddbc91(0xc1),'tAesy':_0xddbc91(0xb7),'CvZoo':_0xddbc91(0xc5),'eXKCH':_0xddbc91(0xb0)};_0x51ec75[_0x51ec75[_0x45e766['AbTLo']]=0x0]=_0x45e766[_0xddbc91(0xbe)],_0x51ec75[_0x51ec75[_0x45e766['tAesy']]=0x1]=_0x45e766[_0xddbc91(0xba)],_0x51ec75[_0x51ec75[_0x45e766[_0xddbc91(0xb6)]]=0x2]=_0x45e766[_0xddbc91(0xb6)],_0x51ec75[_0x51ec75[_0x45e766['eXKCH']]=0x3]=_0x45e766[_0xddbc91(0xbc)];}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0x5cb4(){var _0x3556b8=['564KCJKOB','REJECT','NHNWm','172cGDLCx','reject','approve','MEMBER_EXIT','CvZoo','WAIT_HANDLE','6733405cTfEHX','ADMIN_SET','tAesy','8190189GxdhZi','eXKCH','46030TuXNDr','AbTLo','ADMIN_UNSET','5|7|3|2|4|6|1|0','IGNORE','KICK_MEMBER','qqTLg','ADMIN_UNSET_OTHER','APPROVE','71520IAWhvv','INVITED_JOIN','qBFWV','Vdzeh','JOIN_REQUEST','5314amrorE','3332224JGmbtE','2663390iZesRG','ByKAX','tNvLi','WNmJb','28PMMOrz'];_0x5cb4=function(){return _0x3556b8;};return _0x5cb4();}export var GroupRequestOperateTypes;(function(_0x5be7ed){var _0x4447b0=_0x18fc,_0x35f4e4={'ByKAX':_0x4447b0(0xb4),'Qycak':_0x4447b0(0xb3)};_0x5be7ed[_0x5be7ed[_0x35f4e4['ByKAX']]=0x1]=_0x35f4e4[_0x4447b0(0xce)],_0x5be7ed[_0x5be7ed[_0x35f4e4['Qycak']]=0x2]=_0x35f4e4['Qycak'];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(function(_0x58a02b,_0x4e35e6){var _0x556f54=_0x12eb,_0x1debc0=_0x58a02b();while(!![]){try{var _0x31c3d2=parseInt(_0x556f54(0x147))/0x1+parseInt(_0x556f54(0x15c))/0x2+parseInt(_0x556f54(0x15a))/0x3+-parseInt(_0x556f54(0x163))/0x4+parseInt(_0x556f54(0x162))/0x5*(parseInt(_0x556f54(0x155))/0x6)+parseInt(_0x556f54(0x143))/0x7*(-parseInt(_0x556f54(0x158))/0x8)+-parseInt(_0x556f54(0x152))/0x9;if(_0x31c3d2===_0x4e35e6)break;else _0x1debc0['push'](_0x1debc0['shift']());}catch(_0x190f20){_0x1debc0['push'](_0x1debc0['shift']());}}}(_0x3d63,0xf286e));export var GroupNotifyTypes;(function(_0x1f790f){var _0x28d3d5=_0x12eb,_0x1b3859={'XeHEl':'7|2|3|1|4|0|5|6','JOkvz':'MEMBER_EXIT','Rmyrp':'ADMIN_SET','MBDyT':_0x28d3d5(0x157),'XNfRh':_0x28d3d5(0x142),'buqVD':'KICK_MEMBER','hwbZK':_0x28d3d5(0x15d),'qulyv':_0x28d3d5(0x145),'fWvkI':_0x28d3d5(0x14d)},_0x490894=_0x1b3859[_0x28d3d5(0x159)]['split']('|'),_0x50eead=0x0;while(!![]){switch(_0x490894[_0x50eead++]){case'0':_0x1f790f[_0x1f790f[_0x1b3859[_0x28d3d5(0x14b)]]=0xb]=_0x28d3d5(0x14f);continue;case'1':_0x1f790f[_0x1f790f[_0x1b3859[_0x28d3d5(0x146)]]=0x8]=_0x1b3859[_0x28d3d5(0x146)];continue;case'2':_0x1f790f[_0x1f790f[_0x1b3859[_0x28d3d5(0x15f)]]=0x4]=_0x1b3859['MBDyT'];continue;case'3':_0x1f790f[_0x1f790f[_0x1b3859[_0x28d3d5(0x15b)]]=0x7]=_0x1b3859[_0x28d3d5(0x15b)];continue;case'4':_0x1f790f[_0x1f790f[_0x1b3859[_0x28d3d5(0x156)]]=0x9]=_0x1b3859[_0x28d3d5(0x156)];continue;case'5':_0x1f790f[_0x1f790f[_0x1b3859['hwbZK']]=0xc]=_0x1b3859[_0x28d3d5(0x14e)];continue;case'6':_0x1f790f[_0x1f790f[_0x28d3d5(0x145)]=0xd]=_0x1b3859[_0x28d3d5(0x153)];continue;case'7':_0x1f790f[_0x1f790f[_0x1b3859[_0x28d3d5(0x160)]]=0x1]=_0x28d3d5(0x14d);continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x12eb(_0x5a6646,_0x51a909){var _0x3d63d0=_0x3d63();return _0x12eb=function(_0x12eb42,_0x5b5789){_0x12eb42=_0x12eb42-0x142;var _0x179ab0=_0x3d63d0[_0x12eb42];return _0x179ab0;},_0x12eb(_0x5a6646,_0x51a909);}export var GroupNotifyStatus;(function(_0xccbc9f){var _0x5358d0=_0x12eb,_0x433f27={'QFnnk':'IGNORE','vvuZJ':_0x5358d0(0x161),'ClbpY':_0x5358d0(0x151),'Hblre':_0x5358d0(0x144)};_0xccbc9f[_0xccbc9f[_0x433f27['QFnnk']]=0x0]=_0x433f27['QFnnk'],_0xccbc9f[_0xccbc9f[_0x433f27[_0x5358d0(0x148)]]=0x1]=_0x5358d0(0x161),_0xccbc9f[_0xccbc9f[_0x433f27[_0x5358d0(0x14c)]]=0x2]=_0x433f27[_0x5358d0(0x14c)],_0xccbc9f[_0xccbc9f[_0x5358d0(0x144)]=0x3]=_0x433f27[_0x5358d0(0x149)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x3e7b57){var _0x3045fb=_0x12eb,_0x5439d5={'wrwcr':_0x3045fb(0x14a),'xwlVh':_0x3045fb(0x150)};_0x3e7b57[_0x3e7b57[_0x5439d5[_0x3045fb(0x15e)]]=0x1]=_0x5439d5[_0x3045fb(0x15e)],_0x3e7b57[_0x3e7b57[_0x5439d5[_0x3045fb(0x154)]]=0x2]=_0x3045fb(0x150);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x3d63(){var _0x841988=['wrwcr','MBDyT','fWvkI','WAIT_HANDLE','667785DCSHAk','7613560AErStM','JOIN_REQUEST','1001liWvLg','REJECT','ADMIN_UNSET_OTHER','Rmyrp','379439QEMXCM','vvuZJ','Hblre','approve','JOkvz','ClbpY','INVITE_ME','hwbZK','MEMBER_EXIT','reject','APPROVE','10531539duUSrM','qulyv','xwlVh','72QbdnRI','buqVD','INVITED_JOIN','2224nyDRgR','XeHEl','797649sfAscY','XNfRh','3717398PlDhkz','ADMIN_UNSET'];_0x3d63=function(){return _0x841988;};return _0x3d63();} \ 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 0639339d..2ba9861e 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -function _0x321d(_0x3b36dd,_0x502bd8){var _0x2e0986=_0x2e09();return _0x321d=function(_0x321d28,_0x5653a7){_0x321d28=_0x321d28-0xab;var _0x1c49dd=_0x2e0986[_0x321d28];return _0x1c49dd;},_0x321d(_0x3b36dd,_0x502bd8);}(function(_0x37b893,_0x3863bd){var _0x618c8b=_0x321d,_0x57c12d=_0x37b893();while(!![]){try{var _0x38b0f2=-parseInt(_0x618c8b(0xb5))/0x1+parseInt(_0x618c8b(0xb6))/0x2+-parseInt(_0x618c8b(0xaf))/0x3+parseInt(_0x618c8b(0xb4))/0x4+-parseInt(_0x618c8b(0xab))/0x5+parseInt(_0x618c8b(0xac))/0x6+parseInt(_0x618c8b(0xb7))/0x7*(parseInt(_0x618c8b(0xad))/0x8);if(_0x38b0f2===_0x3863bd)break;else _0x57c12d['push'](_0x57c12d['shift']());}catch(_0x572705){_0x57c12d['push'](_0x57c12d['shift']());}}}(_0x2e09,0x280f1));export var Sex;(function(_0x53e7c4){var _0x4e405d=_0x321d,_0x2d1430={'RYqwv':_0x4e405d(0xb3),'ryfFO':_0x4e405d(0xb2)};_0x53e7c4[_0x53e7c4['male']=0x1]=_0x2d1430[_0x4e405d(0xb0)],_0x53e7c4[_0x53e7c4[_0x2d1430['ryfFO']]=0x2]=_0x2d1430[_0x4e405d(0xae)],_0x53e7c4[_0x53e7c4[_0x4e405d(0xb1)]=0xff]=_0x4e405d(0xb1);}(Sex||(Sex={})));function _0x2e09(){var _0x4a81dd=['male','332776FRrkGs','144415OugfFQ','477504fWGWmv','27587HrufSo','1598455blBfDN','748470AFRHld','784mCvdqA','ryfFO','614166CLBuVf','RYqwv','unknown','female'];_0x2e09=function(){return _0x4a81dd;};return _0x2e09();} \ No newline at end of file +function _0x2ef7(_0x43439f,_0x4baad8){var _0x1eb6f1=_0x1eb6();return _0x2ef7=function(_0x2ef795,_0xeb0a28){_0x2ef795=_0x2ef795-0x174;var _0x16c694=_0x1eb6f1[_0x2ef795];return _0x16c694;},_0x2ef7(_0x43439f,_0x4baad8);}(function(_0x23b385,_0x11c8f8){var _0x511340=_0x2ef7,_0x4c83a3=_0x23b385();while(!![]){try{var _0x506a9d=-parseInt(_0x511340(0x174))/0x1*(parseInt(_0x511340(0x180))/0x2)+-parseInt(_0x511340(0x177))/0x3+-parseInt(_0x511340(0x17e))/0x4*(-parseInt(_0x511340(0x17f))/0x5)+parseInt(_0x511340(0x182))/0x6*(parseInt(_0x511340(0x17a))/0x7)+parseInt(_0x511340(0x181))/0x8+-parseInt(_0x511340(0x179))/0x9+parseInt(_0x511340(0x17b))/0xa;if(_0x506a9d===_0x11c8f8)break;else _0x4c83a3['push'](_0x4c83a3['shift']());}catch(_0x369cd7){_0x4c83a3['push'](_0x4c83a3['shift']());}}}(_0x1eb6,0x7593b));export var Sex;(function(_0x11cfaf){var _0x19445a=_0x2ef7,_0x2c0df0={'PwGLy':_0x19445a(0x176),'qeGXK':_0x19445a(0x17c),'filgn':_0x19445a(0x178)};_0x11cfaf[_0x11cfaf[_0x19445a(0x176)]=0x1]=_0x2c0df0[_0x19445a(0x17d)],_0x11cfaf[_0x11cfaf[_0x2c0df0[_0x19445a(0x175)]]=0x2]='female',_0x11cfaf[_0x11cfaf['unknown']=0xff]=_0x2c0df0['filgn'];}(Sex||(Sex={})));function _0x1eb6(){var _0x4ff009=['female','PwGLy','4zrghhN','1094495kUUPMZ','18514zrriMI','2579368UGAqIw','3366iHgrMe','75HoDPkU','qeGXK','male','2877783WrmFCT','unknown','5739867cnCrIH','9597YQdICE','14624430FLTuWu'];_0x1eb6=function(){return _0x4ff009;};return _0x1eb6();} \ 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 afc13e4d..16fa65f1 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x4ea059=_0x206f;(function(_0x3b75d5,_0x1eed46){const _0x4e2376=_0x206f,_0x3aa72b=_0x3b75d5();while(!![]){try{const _0x4abdef=-parseInt(_0x4e2376(0x76))/0x1+parseInt(_0x4e2376(0x6e))/0x2*(-parseInt(_0x4e2376(0x77))/0x3)+parseInt(_0x4e2376(0x6c))/0x4+-parseInt(_0x4e2376(0x6d))/0x5*(-parseInt(_0x4e2376(0x6b))/0x6)+-parseInt(_0x4e2376(0x6a))/0x7+-parseInt(_0x4e2376(0x68))/0x8*(parseInt(_0x4e2376(0x79))/0x9)+-parseInt(_0x4e2376(0x78))/0xa*(-parseInt(_0x4e2376(0x73))/0xb);if(_0x4abdef===_0x1eed46)break;else _0x3aa72b['push'](_0x3aa72b['shift']());}catch(_0x3c9047){_0x3aa72b['push'](_0x3aa72b['shift']());}}}(_0x11f0,0xa012a));import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x11f0(){const _0x3526c5=['150889QyMQtE','3ameUdx','913030raeJDY','185373dzZpbw','inYeM','moeHook','jeKsf','24GjyJjY','JVqjB','8632456WfSFZM','130404IrQtjK','407608cLWvXa','25ulXLPQ','52778OrpIDF','SqGvJ','DEltV','TQkmT','MoeHoo','231TtiyrB','getRKey','isAvailable'];_0x11f0=function(){return _0x3526c5;};return _0x11f0();}function _0x206f(_0x2734fc,_0x341d6c){const _0x11f0da=_0x11f0();return _0x206f=function(_0x206f26,_0x183b48){_0x206f26=_0x206f26-0x68;let _0x784dc8=_0x11f0da[_0x206f26];return _0x784dc8;},_0x206f(_0x2734fc,_0x341d6c);}import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x4ea059(0x7b)]=null;constructor(){const _0x2eb95b=_0x4ea059,_0x3d4d69={'TQkmT':function(_0x4da841,_0x3e28a2){return _0x4da841(_0x3e28a2);},'inYeM':_0x2eb95b(0x72),'jeKsf':function(_0x103ca3,_0x415c71){return _0x103ca3(_0x415c71);},'DEltV':'./MoeHoo.node','JVqjB':function(_0x39b950,_0x1c87a0,_0x3ac983){return _0x39b950(_0x1c87a0,_0x3ac983);},'SqGvJ':'加载\x20moehoo\x20失败'};try{_0x3d4d69[_0x2eb95b(0x71)](cpModule,_0x3d4d69[_0x2eb95b(0x7a)]),this[_0x2eb95b(0x7b)]=_0x3d4d69[_0x2eb95b(0x7c)](require,_0x3d4d69[_0x2eb95b(0x70)]),this['moeHook']['HookRkey'](qqPkgInfo['version']);}catch(_0x28ef2f){_0x3d4d69[_0x2eb95b(0x69)](logError,_0x3d4d69[_0x2eb95b(0x6f)],_0x28ef2f);}}[_0x4ea059(0x74)](){const _0x209c98=_0x4ea059;return this[_0x209c98(0x7b)]?.['GetRkey']()||'';}[_0x4ea059(0x75)](){const _0x58100a=_0x4ea059;return!!this[_0x58100a(0x7b)];}}export const hookApi=new HookApi(); \ No newline at end of file +const _0x1ddf62=_0x40ff;function _0x40ff(_0x4f7488,_0x51eb2b){const _0x55edf2=_0x55ed();return _0x40ff=function(_0x40ff8c,_0x37a1fb){_0x40ff8c=_0x40ff8c-0x188;let _0xe17123=_0x55edf2[_0x40ff8c];return _0xe17123;},_0x40ff(_0x4f7488,_0x51eb2b);}(function(_0x58abaa,_0x39fc24){const _0x815325=_0x40ff,_0x11e52e=_0x58abaa();while(!![]){try{const _0x3f1594=-parseInt(_0x815325(0x189))/0x1*(parseInt(_0x815325(0x198))/0x2)+parseInt(_0x815325(0x18a))/0x3*(parseInt(_0x815325(0x194))/0x4)+parseInt(_0x815325(0x19c))/0x5*(parseInt(_0x815325(0x19e))/0x6)+parseInt(_0x815325(0x18b))/0x7*(-parseInt(_0x815325(0x19a))/0x8)+-parseInt(_0x815325(0x18d))/0x9+parseInt(_0x815325(0x190))/0xa+-parseInt(_0x815325(0x18c))/0xb*(-parseInt(_0x815325(0x192))/0xc);if(_0x3f1594===_0x39fc24)break;else _0x11e52e['push'](_0x11e52e['shift']());}catch(_0x4a8824){_0x11e52e['push'](_0x11e52e['shift']());}}}(_0x55ed,0x7c9db));function _0x55ed(){const _0x2d7a3f=['xCTWS','./MoeHoo.node','7116350gNbXmi','getRKey','1750596iLtCsr','GetRkey','133968CxqnDU','version','MoeHoo','afcZD','2MyHyNV','moeHook','8rAldSh','加载\x20moehoo\x20失败','15cRZfIM','HookRkey','88134wukVgf','isAvailable','814876HSAHNC','63vVCjHO','1123255AIopHI','55pXbLkY','6324129iNVkJm'];_0x55ed=function(){return _0x2d7a3f;};return _0x55ed();}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x1ddf62(0x199)]=null;constructor(){const _0x2347b2=_0x1ddf62,_0x50284d={'afcZD':function(_0x527384,_0x2a1072){return _0x527384(_0x2a1072);},'ZTMrF':_0x2347b2(0x196),'IYPpO':function(_0x159e47,_0x363eb8){return _0x159e47(_0x363eb8);},'xCTWS':function(_0x1223f2,_0x2ee8d4,_0x1a1b57){return _0x1223f2(_0x2ee8d4,_0x1a1b57);}};try{_0x50284d[_0x2347b2(0x197)](cpModule,_0x50284d['ZTMrF']),this['moeHook']=_0x50284d['IYPpO'](require,_0x2347b2(0x18f)),this[_0x2347b2(0x199)][_0x2347b2(0x19d)](qqPkgInfo[_0x2347b2(0x195)]);}catch(_0x1d8f31){_0x50284d[_0x2347b2(0x18e)](logError,_0x2347b2(0x19b),_0x1d8f31);}}[_0x1ddf62(0x191)](){const _0x5e3db0=_0x1ddf62;return this['moeHook']?.[_0x5e3db0(0x193)]()||'';}[_0x1ddf62(0x188)](){const _0x4146be=_0x1ddf62;return!!this[_0x4146be(0x199)];}}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 65a97b98..06adcca7 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x4403e1,_0x5afc27){var _0x212c69=_0x2495,_0xa4f852=_0x4403e1();while(!![]){try{var _0x429f95=parseInt(_0x212c69(0x11b))/0x1*(-parseInt(_0x212c69(0x119))/0x2)+parseInt(_0x212c69(0x11c))/0x3+-parseInt(_0x212c69(0x115))/0x4+parseInt(_0x212c69(0x114))/0x5+-parseInt(_0x212c69(0x116))/0x6+-parseInt(_0x212c69(0x117))/0x7*(parseInt(_0x212c69(0x118))/0x8)+parseInt(_0x212c69(0x113))/0x9*(parseInt(_0x212c69(0x11a))/0xa);if(_0x429f95===_0x5afc27)break;else _0xa4f852['push'](_0xa4f852['shift']());}catch(_0x35a707){_0xa4f852['push'](_0xa4f852['shift']());}}}(_0x341a,0xcf280));import _0x415224 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0x2495(_0x18a30a,_0x209921){var _0x341a24=_0x341a();return _0x2495=function(_0x2495a8,_0x22c880){_0x2495a8=_0x2495a8-0x113;var _0x13ac5b=_0x341a24[_0x2495a8];return _0x13ac5b;},_0x2495(_0x18a30a,_0x209921);}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';function _0x341a(){var _0x195c9c=['90624JkXQWm','9520212pMabhH','3121293XlerNF','8sUUhVh','109638cIxQaF','945140KubKqD','1IDjwyb','1298751ajvWQS','108deVILi','6957515wullFh'];_0x341a=function(){return _0x195c9c;};return _0x341a();}export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x415224 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +function _0x1e8a(){var _0xcb1440=['2Wlplll','880983LtwhCq','3016670MXQNUC','3941994neosBl','9771720amqZYA','1168652kbjgYW','14551236sLPLyN','12Nddtir','3955208yQuqWq'];_0x1e8a=function(){return _0xcb1440;};return _0x1e8a();}(function(_0x1cf667,_0x2650cd){var _0x592d6f=_0x2674,_0x351ab0=_0x1cf667();while(!![]){try{var _0x5c77cc=parseInt(_0x592d6f(0xc0))/0x1*(parseInt(_0x592d6f(0xbf))/0x2)+parseInt(_0x592d6f(0xbd))/0x3*(parseInt(_0x592d6f(0xbb))/0x4)+parseInt(_0x592d6f(0xc1))/0x5+parseInt(_0x592d6f(0xb9))/0x6+-parseInt(_0x592d6f(0xba))/0x7+parseInt(_0x592d6f(0xbe))/0x8+-parseInt(_0x592d6f(0xbc))/0x9;if(_0x5c77cc===_0x2650cd)break;else _0x351ab0['push'](_0x351ab0['shift']());}catch(_0x257cbc){_0x351ab0['push'](_0x351ab0['shift']());}}}(_0x1e8a,0xc1435));import _0x194df5 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';function _0x2674(_0x30c655,_0x578c5f){var _0x1e8a9c=_0x1e8a();return _0x2674=function(_0x2674d0,_0xa20625){_0x2674d0=_0x2674d0-0xb9;var _0x405346=_0x1e8a9c[_0x2674d0];return _0x405346;},_0x2674(_0x30c655,_0x578c5f);}export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x194df5 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 7f809888..856e5277 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0x1959b9=_0x55a2;function _0x55a2(_0x3b44f8,_0xa601c1){var _0x1ad969=_0x1ad9();return _0x55a2=function(_0x55a28b,_0x1ca347){_0x55a28b=_0x55a28b-0xf5;var _0x4d0214=_0x1ad969[_0x55a28b];return _0x4d0214;},_0x55a2(_0x3b44f8,_0xa601c1);}function _0x1ad9(){var _0x18f1aa=['3807320nsAFoE','319944GUkHhL','onBuddyReqChange','onDoubtBuddyReqUnreadNumChange','21SLmmbN','onDoubtBuddyReqChange','onBuddyDetailInfoChange','411924fPQCHg','8hzJeGR','onNickUpdated','onDelBatchBuddyInfos','2253309zHMWmF','1780255nIcNgG','onSmartInfos','onBuddyReqUnreadCntChange','274152UvWQRJ','onSpacePermissionInfos','598600AMlEFK','onBuddyRemarkUpdated','onBuddyInfoChange','onAvatarUrlUpdated','63BmUFDX'];_0x1ad9=function(){return _0x18f1aa;};return _0x1ad9();}(function(_0x595378,_0x1f018f){var _0x31d75b=_0x55a2,_0x195ae0=_0x595378();while(!![]){try{var _0x5b8294=-parseInt(_0x31d75b(0xf7))/0x1+parseInt(_0x31d75b(0x107))/0x2+parseInt(_0x31d75b(0x101))/0x3+parseInt(_0x31d75b(0xfe))/0x4*(-parseInt(_0x31d75b(0x102))/0x5)+parseInt(_0x31d75b(0xfd))/0x6*(-parseInt(_0x31d75b(0xfa))/0x7)+parseInt(_0x31d75b(0x105))/0x8*(parseInt(_0x31d75b(0xf5))/0x9)+parseInt(_0x31d75b(0xf6))/0xa;if(_0x5b8294===_0x1f018f)break;else _0x195ae0['push'](_0x195ae0['shift']());}catch(_0x4f36f6){_0x195ae0['push'](_0x195ae0['shift']());}}}(_0x1ad9,0x69b72));export class BuddyListener{['onAddBuddyNeedVerify'](_0x599b32){}['onAddMeSettingChanged'](_0x4bc316){}[_0x1959b9(0x10a)](_0x281dd7){}['onBlockChanged'](_0x4c9bce){}[_0x1959b9(0xfc)](_0x1f195c){}[_0x1959b9(0x109)](_0xd24c1a){}['onBuddyListChange'](_0x4d074b){}[_0x1959b9(0x108)](_0x1e1c63){}[_0x1959b9(0xf8)](_0x1ff607){}[_0x1959b9(0x104)](_0x3dea71){}['onCheckBuddySettingResult'](_0x135c5f){}[_0x1959b9(0x100)](_0x4d5469){}[_0x1959b9(0xfb)](_0x40060f){}[_0x1959b9(0xf9)](_0x154d00){}[_0x1959b9(0xff)](_0x1c8f95){}[_0x1959b9(0x103)](_0x34634f){}[_0x1959b9(0x106)](_0x4a06cf){}} \ No newline at end of file +var _0x4f45d1=_0x3f90;function _0x3f90(_0xa8a33c,_0x2698dc){var _0x189c96=_0x189c();return _0x3f90=function(_0x3f904a,_0x5ebb33){_0x3f904a=_0x3f904a-0x165;var _0x4cf4d2=_0x189c96[_0x3f904a];return _0x4cf4d2;},_0x3f90(_0xa8a33c,_0x2698dc);}(function(_0x1d7b4f,_0x516797){var _0x5a885d=_0x3f90,_0x411577=_0x1d7b4f();while(!![]){try{var _0x14ad75=parseInt(_0x5a885d(0x168))/0x1+-parseInt(_0x5a885d(0x166))/0x2+-parseInt(_0x5a885d(0x16b))/0x3+parseInt(_0x5a885d(0x173))/0x4*(parseInt(_0x5a885d(0x174))/0x5)+-parseInt(_0x5a885d(0x178))/0x6+parseInt(_0x5a885d(0x16d))/0x7+parseInt(_0x5a885d(0x177))/0x8*(parseInt(_0x5a885d(0x165))/0x9);if(_0x14ad75===_0x516797)break;else _0x411577['push'](_0x411577['shift']());}catch(_0x2334bf){_0x411577['push'](_0x411577['shift']());}}}(_0x189c,0x52cb7));function _0x189c(){var _0x4198fb=['1417050rXZovC','3935637bLnnDw','496330rQKyxX','onAddBuddyNeedVerify','409226lLssTa','onBuddyDetailInfoChange','onBuddyReqUnreadCntChange','1307559hPZWIC','onBuddyInfoChange','783909AjomNN','onDoubtBuddyReqUnreadNumChange','onCheckBuddySettingResult','onNickUpdated','onAddMeSettingChanged','onBuddyListChange','8wtFBMH','752035RkKnPw','onBuddyReqChange','onSpacePermissionInfos','8dZFijM'];_0x189c=function(){return _0x4198fb;};return _0x189c();}export class BuddyListener{[_0x4f45d1(0x167)](_0x9a7b4b){}[_0x4f45d1(0x171)](_0x61eea1){}['onAvatarUrlUpdated'](_0x544c29){}['onBlockChanged'](_0x230536){}[_0x4f45d1(0x169)](_0x4b73d4){}[_0x4f45d1(0x16c)](_0x53b763){}[_0x4f45d1(0x172)](_0x5562c0){}['onBuddyRemarkUpdated'](_0x53c54c){}[_0x4f45d1(0x175)](_0x14e087){}[_0x4f45d1(0x16a)](_0xeaeb23){}[_0x4f45d1(0x16f)](_0x429f2f){}['onDelBatchBuddyInfos'](_0x424931){}['onDoubtBuddyReqChange'](_0x42dd74){}[_0x4f45d1(0x16e)](_0x3b75d9){}[_0x4f45d1(0x170)](_0x2432d6){}['onSmartInfos'](_0x580a82){}[_0x4f45d1(0x176)](_0x3b931e){}} \ 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 23014159..6206e4bb 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x5213e2=_0x3588;function _0x3588(_0x3851a8,_0x302380){var _0x392154=_0x3921();return _0x3588=function(_0x358893,_0xeaf144){_0x358893=_0x358893-0xf8;var _0x53336c=_0x392154[_0x358893];return _0x53336c;},_0x3588(_0x3851a8,_0x302380);}function _0x3921(){var _0x539fb3=['718644OLSyOL','onSessionListChanged','onFileSearch','onSessionChanged','8tNhqth','576499FLuXvV','4946820cnpJXq','4KtoEzY','onFileStatusChanged','5403822FHkwCm','1047362hOywzQ','6661095CmdUOF','3zSNqiW','8537733FefwOR'];_0x3921=function(){return _0x539fb3;};return _0x3921();}(function(_0x5c0935,_0x47af73){var _0x898d9a=_0x3588,_0xe41e7=_0x5c0935();while(!![]){try{var _0x1ac83e=-parseInt(_0x898d9a(0xfa))/0x1+parseInt(_0x898d9a(0x104))/0x2*(-parseInt(_0x898d9a(0xf8))/0x3)+-parseInt(_0x898d9a(0x101))/0x4*(-parseInt(_0x898d9a(0x105))/0x5)+-parseInt(_0x898d9a(0x103))/0x6+parseInt(_0x898d9a(0xff))/0x7+parseInt(_0x898d9a(0xfe))/0x8*(parseInt(_0x898d9a(0xf9))/0x9)+parseInt(_0x898d9a(0x100))/0xa;if(_0x1ac83e===_0x47af73)break;else _0xe41e7['push'](_0xe41e7['shift']());}catch(_0x36aa46){_0xe41e7['push'](_0xe41e7['shift']());}}}(_0x3921,0xae8b5));export class KernelFileAssistantListener{[_0x5213e2(0x102)](..._0x154fdf){}[_0x5213e2(0xfb)](..._0x455003){}[_0x5213e2(0xfd)](..._0x48b03e){}['onFileListChanged'](..._0x45b487){}[_0x5213e2(0xfc)](..._0x1e4f7f){}} \ No newline at end of file +function _0x1f74(){var _0x1113e6=['onSessionChanged','19545hqeJGO','3852dgfusF','10704kbBJUZ','onSessionListChanged','onFileListChanged','141579rGvWfv','3dIOwCL','onFileSearch','21272ibmGUm','12BOUmlB','7832KpfQuG','5018839QPNmwj','8344440ctgpht','558fpfqyk','621844KNBRXn','onFileStatusChanged'];_0x1f74=function(){return _0x1113e6;};return _0x1f74();}function _0x250e(_0x112115,_0x1fb66d){var _0x1f74cb=_0x1f74();return _0x250e=function(_0x250edb,_0x1c50f7){_0x250edb=_0x250edb-0x193;var _0x2bffed=_0x1f74cb[_0x250edb];return _0x2bffed;},_0x250e(_0x112115,_0x1fb66d);}var _0x12aaab=_0x250e;(function(_0x2d5d06,_0x349354){var _0x3ccf6f=_0x250e,_0x51c5dd=_0x2d5d06();while(!![]){try{var _0x5d29dd=-parseInt(_0x3ccf6f(0x1a1))/0x1*(-parseInt(_0x3ccf6f(0x194))/0x2)+parseInt(_0x3ccf6f(0x1a2))/0x3*(parseInt(_0x3ccf6f(0x199))/0x4)+-parseInt(_0x3ccf6f(0x19c))/0x5*(-parseInt(_0x3ccf6f(0x198))/0x6)+parseInt(_0x3ccf6f(0x196))/0x7+parseInt(_0x3ccf6f(0x193))/0x8*(-parseInt(_0x3ccf6f(0x19d))/0x9)+-parseInt(_0x3ccf6f(0x197))/0xa+parseInt(_0x3ccf6f(0x195))/0xb*(parseInt(_0x3ccf6f(0x19e))/0xc);if(_0x5d29dd===_0x349354)break;else _0x51c5dd['push'](_0x51c5dd['shift']());}catch(_0x5261d5){_0x51c5dd['push'](_0x51c5dd['shift']());}}}(_0x1f74,0xb6a19));export class KernelFileAssistantListener{[_0x12aaab(0x19a)](..._0x240f43){}[_0x12aaab(0x19f)](..._0x36baf4){}[_0x12aaab(0x19b)](..._0x12986f){}[_0x12aaab(0x1a0)](..._0x11e0ee){}[_0x12aaab(0x1a3)](..._0xdddb7b){}} \ 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 b82e9d0a..3970df6a 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -function _0x180c(){var _0x5e7505=['onGroupStatisticInfoChange','onMemberInfoChange','onSearchMemberChange:','onGroupSingleScreenNotifies','2151MEHGCX','onGroupNotifiesUpdated','1166970DUiIQy','onGroupAllInfoChange:','onGroupSingleScreenNotifies:','onShutUpMemberListChanged:','dubMF','WZMyL','onGroupBulletinRichMediaProgressUpdate','onGroupBulletinChange','onGroupConfMemberChange:','MOxTR','taeMk','10990AbYdjj','ngfyQ','log','uuMHC','onGetGroupBulletinListResult','285726kszLSn','onGroupListUpdate:','onGroupMemberLevelInfoChange','onGroupNotifiesUnreadCountUpdated','Dnkdl','onGroupConfMemberChange','onGroupBulletinRemindNotify','dPMXL','onGroupBulletinRichMediaDownloadComplete','onGroupNotifiesUpdated:','pmCxf','onJoinGroupNoVerifyFlag:','nhnNA','onGroupsMsgMaskResult:','onGroupAllInfoChange','onGroupArkInviteStateResult','onSearchMemberChange','onGroupBulletinRichMediaDownloadComplete:','onGroupExtListUpdate:','onGroupListUpdate','onJoinGroupNoVerifyFlag','uIKwR','8641798ZBaNey','Njhfp','onGroupFirstBulletinNotify','onGroupArkInviteStateResult:','dgtYi','ojhrU','onMemberListChange','onMemberListChange:','onGroupDetailInfoChange:','LvMcS','14254darKpP','onGroupBulletinRichMediaProgressUpdate:','35XmMJAZ','onGroupNotifiesUnreadCountUpdated:','onGroupExtListUpdate','4SHlNjo','onGroupDetailInfoChange','1884657GFBQde','onShutUpMemberListChanged','onJoinGroupNotify:','82AcxvVK','5584208ladscL','onGroupStatisticInfoChange:'];_0x180c=function(){return _0x5e7505;};return _0x180c();}var _0x2d1283=_0x3b93;function _0x3b93(_0x47cc57,_0x2ef160){var _0x180c34=_0x180c();return _0x3b93=function(_0x3b9368,_0x5751bb){_0x3b9368=_0x3b9368-0x88;var _0x45b61d=_0x180c34[_0x3b9368];return _0x45b61d;},_0x3b93(_0x47cc57,_0x2ef160);}(function(_0x5416bd,_0x51415e){var _0x1a7cad=_0x3b93,_0x212b50=_0x5416bd();while(!![]){try{var _0x5d72e7=parseInt(_0x1a7cad(0xc7))/0x1*(-parseInt(_0x1a7cad(0x8e))/0x2)+-parseInt(_0x1a7cad(0x8b))/0x3*(-parseInt(_0x1a7cad(0x89))/0x4)+parseInt(_0x1a7cad(0x97))/0x5+-parseInt(_0x1a7cad(0xa7))/0x6*(parseInt(_0x1a7cad(0xc9))/0x7)+-parseInt(_0x1a7cad(0x8f))/0x8+parseInt(_0x1a7cad(0x95))/0x9*(parseInt(_0x1a7cad(0xa2))/0xa)+parseInt(_0x1a7cad(0xbd))/0xb;if(_0x5d72e7===_0x51415e)break;else _0x212b50['push'](_0x212b50['shift']());}catch(_0x36372f){_0x212b50['push'](_0x212b50['shift']());}}}(_0x180c,0x5f0e3));export class GroupListener{[_0x2d1283(0xa9)](..._0x3bbcbc){}[_0x2d1283(0xa6)](..._0x5c9024){}['onGroupAllInfoChange'](..._0x8c7dd6){}[_0x2d1283(0x9e)](..._0x196887){}['onGroupBulletinRemindNotify'](..._0x577b81){}['onGroupArkInviteStateResult'](..._0x2a5420){}[_0x2d1283(0xaf)](..._0x201885){}[_0x2d1283(0xac)](..._0x46943c){}[_0x2d1283(0x8a)](..._0x484e11){}[_0x2d1283(0x88)](..._0x42b7d7){}[_0x2d1283(0xbf)](..._0x8a64b4){}[_0x2d1283(0xba)](_0x37f97e,_0x3ef4b6){}['onGroupNotifiesUpdated'](_0x501897,_0xc477f7){}[_0x2d1283(0x9d)](..._0x4e6881){}[_0x2d1283(0xaa)](..._0x992b6e){}[_0x2d1283(0x94)](..._0x18dfd6){}['onGroupsMsgMaskResult'](..._0x5c0dba){}[_0x2d1283(0x91)](..._0xa49bff){}['onJoinGroupNotify'](..._0x181dc6){}['onJoinGroupNoVerifyFlag'](..._0x73468){}[_0x2d1283(0x92)](_0x37cf1d,_0x5e6de3,_0x21a302){}[_0x2d1283(0xc3)](_0x83fbfc){}['onSearchMemberChange'](..._0x488e06){}[_0x2d1283(0x8c)](..._0x2abcb6){}}export class DebugGroupListener{[_0x2d1283(0xa9)](..._0x3e5e28){var _0x563156=_0x2d1283,_0x2fb615={'dubMF':'onGroupMemberLevelInfoChange:'};console[_0x563156(0xa4)](_0x2fb615[_0x563156(0x9b)],..._0x3e5e28);}[_0x2d1283(0xa6)](..._0x4150ce){var _0x2d9ed7=_0x2d1283,_0x30394d={'MOxTR':'onGetGroupBulletinListResult:'};console[_0x2d9ed7(0xa4)](_0x30394d[_0x2d9ed7(0xa0)],..._0x4150ce);}[_0x2d1283(0xb5)](..._0x2c2500){var _0x1c0acf=_0x2d1283,_0x39f659={'Ciwxj':_0x1c0acf(0x98)};console[_0x1c0acf(0xa4)](_0x39f659['Ciwxj'],..._0x2c2500);}[_0x2d1283(0x9e)](..._0x49123a){var _0x695e33=_0x2d1283,_0x498be1={'pmCxf':'onGroupBulletinChange:'};console['log'](_0x498be1[_0x695e33(0xb1)],..._0x49123a);}[_0x2d1283(0xad)](..._0x50e40f){var _0x41c9e6=_0x2d1283,_0x156e46={'Njhfp':'onGroupBulletinRemindNotify:'};console[_0x41c9e6(0xa4)](_0x156e46[_0x41c9e6(0xbe)],..._0x50e40f);}[_0x2d1283(0xb6)](..._0x1d359d){var _0x3f749f=_0x2d1283,_0x386008={'ngfyQ':_0x3f749f(0xc0)};console[_0x3f749f(0xa4)](_0x386008[_0x3f749f(0xa3)],..._0x1d359d);}[_0x2d1283(0xaf)](..._0x3939ef){var _0x539b5f=_0x2d1283,_0x598fc1={'uIKwR':_0x539b5f(0xb8)};console[_0x539b5f(0xa4)](_0x598fc1[_0x539b5f(0xbc)],..._0x3939ef);}[_0x2d1283(0xac)](..._0x459624){var _0x21ee32=_0x2d1283,_0x30afe1={'ojhrU':_0x21ee32(0x9f)};console[_0x21ee32(0xa4)](_0x30afe1[_0x21ee32(0xc2)],..._0x459624);}[_0x2d1283(0x8a)](..._0x1f4662){var _0x3286bd=_0x2d1283,_0x395b98={'taeMk':_0x3286bd(0xc5)};console[_0x3286bd(0xa4)](_0x395b98[_0x3286bd(0xa1)],..._0x1f4662);}['onGroupExtListUpdate'](..._0x3c4a8f){var _0x5b5dba=_0x2d1283;console[_0x5b5dba(0xa4)](_0x5b5dba(0xb9),..._0x3c4a8f);}[_0x2d1283(0xbf)](..._0x4cee35){var _0x5a40be=_0x2d1283,_0x30c3a6={'dgtYi':'onGroupFirstBulletinNotify:'};console['log'](_0x30c3a6[_0x5a40be(0xc1)],..._0x4cee35);}[_0x2d1283(0xba)](..._0xa9ed2a){var _0x4976b9=_0x2d1283;console[_0x4976b9(0xa4)](_0x4976b9(0xa8),..._0xa9ed2a);}[_0x2d1283(0x96)](..._0x4a0944){var _0x63852b=_0x2d1283,_0x53356a={'Dnkdl':_0x63852b(0xb0)};console[_0x63852b(0xa4)](_0x53356a[_0x63852b(0xab)],..._0x4a0944);}[_0x2d1283(0x9d)](..._0x173e93){var _0x3b8db8=_0x2d1283,_0x35c5c3={'WpLbg':_0x3b8db8(0xc8)};console['log'](_0x35c5c3['WpLbg'],..._0x173e93);}[_0x2d1283(0xaa)](..._0x145a64){var _0x53e423=_0x2d1283,_0x53b475={'iCyeQ':_0x53e423(0xca)};console['log'](_0x53b475['iCyeQ'],..._0x145a64);}[_0x2d1283(0x94)](..._0x55e0f6){var _0x41f112=_0x2d1283,_0x2f73ca={'GUMpY':_0x41f112(0x99)};console[_0x41f112(0xa4)](_0x2f73ca['GUMpY'],..._0x55e0f6);}['onGroupsMsgMaskResult'](..._0x4dcfbd){var _0x2e73b0=_0x2d1283,_0x33edec={'TzbXj':_0x2e73b0(0xb4)};console[_0x2e73b0(0xa4)](_0x33edec['TzbXj'],..._0x4dcfbd);}[_0x2d1283(0x91)](..._0x5628ab){var _0x4ef134=_0x2d1283,_0x12be5d={'YRegw':_0x4ef134(0x90)};console[_0x4ef134(0xa4)](_0x12be5d['YRegw'],..._0x5628ab);}['onJoinGroupNotify'](..._0x3749c0){var _0x22d6ef=_0x2d1283,_0x52b0bc={'WZMyL':_0x22d6ef(0x8d)};console[_0x22d6ef(0xa4)](_0x52b0bc[_0x22d6ef(0x9c)],..._0x3749c0);}[_0x2d1283(0xbb)](..._0x315dab){var _0x4b04a8=_0x2d1283,_0x2dba69={'LvMcS':_0x4b04a8(0xb2)};console[_0x4b04a8(0xa4)](_0x2dba69[_0x4b04a8(0xc6)],..._0x315dab);}['onMemberInfoChange'](_0x53865e,_0x53c667,_0xb59f24){var _0x2786c2=_0x2d1283,_0x92f028={'uuMHC':'onMemberInfoChange:'};console[_0x2786c2(0xa4)](_0x92f028[_0x2786c2(0xa5)],_0x53865e,_0x53c667,_0xb59f24);}[_0x2d1283(0xc3)](..._0x3974ed){var _0x198e4a=_0x2d1283,_0x1f63b4={'dPMXL':_0x198e4a(0xc4)};console['log'](_0x1f63b4[_0x198e4a(0xae)],..._0x3974ed);}[_0x2d1283(0xb7)](..._0x5956df){var _0x1eff9c=_0x2d1283,_0x1efcd1={'nhnNA':_0x1eff9c(0x93)};console[_0x1eff9c(0xa4)](_0x1efcd1[_0x1eff9c(0xb3)],..._0x5956df);}[_0x2d1283(0x8c)](..._0x48cd47){var _0x1c85da=_0x2d1283;console['log'](_0x1c85da(0x9a),..._0x48cd47);}} \ No newline at end of file +function _0x2b79(_0x318dba,_0x58eb3d){var _0x23dbf9=_0x23db();return _0x2b79=function(_0x2b79b2,_0x15cac2){_0x2b79b2=_0x2b79b2-0x171;var _0x3146be=_0x23dbf9[_0x2b79b2];return _0x3146be;},_0x2b79(_0x318dba,_0x58eb3d);}var _0x370a13=_0x2b79;(function(_0x6328c5,_0x4dcbff){var _0x44581f=_0x2b79,_0x1fd80d=_0x6328c5();while(!![]){try{var _0x3a8dbb=-parseInt(_0x44581f(0x179))/0x1*(-parseInt(_0x44581f(0x197))/0x2)+-parseInt(_0x44581f(0x192))/0x3*(-parseInt(_0x44581f(0x196))/0x4)+-parseInt(_0x44581f(0x18d))/0x5*(-parseInt(_0x44581f(0x17d))/0x6)+parseInt(_0x44581f(0x1b0))/0x7+parseInt(_0x44581f(0x193))/0x8+parseInt(_0x44581f(0x195))/0x9*(-parseInt(_0x44581f(0x174))/0xa)+-parseInt(_0x44581f(0x176))/0xb*(parseInt(_0x44581f(0x171))/0xc);if(_0x3a8dbb===_0x4dcbff)break;else _0x1fd80d['push'](_0x1fd80d['shift']());}catch(_0x551dda){_0x1fd80d['push'](_0x1fd80d['shift']());}}}(_0x23db,0xa83e2));export class GroupListener{[_0x370a13(0x1a7)](..._0x29cf6c){}[_0x370a13(0x1af)](..._0x1a5d1b){}['onGroupAllInfoChange'](..._0xc1f6a9){}[_0x370a13(0x184)](..._0x6287ee){}[_0x370a13(0x182)](..._0x38e0f9){}[_0x370a13(0x181)](..._0x2b1947){}['onGroupBulletinRichMediaDownloadComplete'](..._0x56ed3a){}['onGroupConfMemberChange'](..._0x10e35a){}['onGroupDetailInfoChange'](..._0x5f5545){}['onGroupExtListUpdate'](..._0x16a0d3){}['onGroupFirstBulletinNotify'](..._0x1d72d1){}[_0x370a13(0x1a5)](_0x1fdf88,_0x103def){}['onGroupNotifiesUpdated'](_0x1d2917,_0x2b6058){}[_0x370a13(0x1aa)](..._0x4523ea){}[_0x370a13(0x1a4)](..._0x5ea8dd){}[_0x370a13(0x178)](..._0x57bad7){}[_0x370a13(0x198)](..._0x2fa4b7){}[_0x370a13(0x17a)](..._0x3c46db){}[_0x370a13(0x1ab)](..._0x283894){}['onJoinGroupNoVerifyFlag'](..._0x5b2dd8){}[_0x370a13(0x1a0)](_0x2cc695,_0x5ccf84,_0x5b0626){}[_0x370a13(0x1ac)](_0x58c56e){}[_0x370a13(0x1a6)](..._0x47819d){}[_0x370a13(0x175)](..._0x17690e){}}function _0x23db(){var _0x2186f4=['onJoinGroupNoVerifyFlag','2091438VHdsMx','682592dCbrTG','46eeDGms','onGroupsMsgMaskResult','xRQVi','onGroupStatisticInfoChange:','tOidL','log','onGroupsMsgMaskResult:','onGroupBulletinRemindNotify:','vHOnJ','onMemberInfoChange','onGroupBulletinRichMediaDownloadComplete:','onSearchMemberChange:','onGroupConfMemberChange','onGroupNotifiesUnreadCountUpdated','onGroupListUpdate','onSearchMemberChange','onGroupMemberLevelInfoChange','onGroupNotifiesUnreadCountUpdated:','onJoinGroupNotify:','onGroupBulletinRichMediaProgressUpdate','onJoinGroupNotify','onMemberListChange','dSGLT','onGroupExtListUpdate:','onGetGroupBulletinListResult','4346538NtUCNg','onGetGroupBulletinListResult:','onGroupSingleScreenNotifies:','12jtptKv','wCoPz','onGroupAllInfoChange','40tbFFKD','onShutUpMemberListChanged','23888007TmBiXs','onGroupArkInviteStateResult:','onGroupSingleScreenNotifies','45237IUIrQE','onGroupStatisticInfoChange','onGroupMemberLevelInfoChange:','MOhnp','6dzKoaF','pSmQr','onGroupBulletinChange:','onGroupExtListUpdate','onGroupArkInviteStateResult','onGroupBulletinRemindNotify','onGroupAllInfoChange:','onGroupBulletinChange','onGroupNotifiesUpdated:','onMemberInfoChange:','eNYwN','eKyGw','hzwto','sEUiC','UzcIA','onJoinGroupNoVerifyFlag:','3460075xhOPZT','onShutUpMemberListChanged:','onGroupBulletinRichMediaProgressUpdate:','onGroupFirstBulletinNotify:','onGroupConfMemberChange:','18CbEHIy','3303992WMMsHw'];_0x23db=function(){return _0x2186f4;};return _0x23db();}export class DebugGroupListener{[_0x370a13(0x1a7)](..._0x156a02){var _0x41b5f8=_0x370a13,_0x46d087={'wCoPz':_0x41b5f8(0x17b)};console[_0x41b5f8(0x19c)](_0x46d087[_0x41b5f8(0x172)],..._0x156a02);}[_0x370a13(0x1af)](..._0x139aec){var _0x3f13ac=_0x370a13;console[_0x3f13ac(0x19c)](_0x3f13ac(0x1b1),..._0x139aec);}[_0x370a13(0x173)](..._0x45fcc7){var _0x19ed91=_0x370a13;console[_0x19ed91(0x19c)](_0x19ed91(0x183),..._0x45fcc7);}[_0x370a13(0x184)](..._0x4127cf){var _0x41a1b6=_0x370a13;console['log'](_0x41a1b6(0x17f),..._0x4127cf);}['onGroupBulletinRemindNotify'](..._0x501027){var _0x45577a=_0x370a13,_0x3918a4={'sEUiC':_0x45577a(0x19e)};console['log'](_0x3918a4[_0x45577a(0x18a)],..._0x501027);}[_0x370a13(0x181)](..._0x1b04c2){var _0x27b40e=_0x370a13;console[_0x27b40e(0x19c)](_0x27b40e(0x177),..._0x1b04c2);}['onGroupBulletinRichMediaDownloadComplete'](..._0x408418){var _0x4fcf59=_0x370a13,_0x2a232a={'UzcIA':_0x4fcf59(0x1a1)};console[_0x4fcf59(0x19c)](_0x2a232a[_0x4fcf59(0x18b)],..._0x408418);}[_0x370a13(0x1a3)](..._0x39a7b5){var _0x424bcd=_0x370a13,_0x2fee07={'OMAeM':_0x424bcd(0x191)};console['log'](_0x2fee07['OMAeM'],..._0x39a7b5);}['onGroupDetailInfoChange'](..._0x8f959){var _0x5d0eea=_0x370a13;console[_0x5d0eea(0x19c)]('onGroupDetailInfoChange:',..._0x8f959);}[_0x370a13(0x180)](..._0x223da4){var _0x1f20e2=_0x370a13,_0x5ef1bb={'eKyGw':_0x1f20e2(0x1ae)};console[_0x1f20e2(0x19c)](_0x5ef1bb[_0x1f20e2(0x188)],..._0x223da4);}['onGroupFirstBulletinNotify'](..._0x1c8775){var _0x1de926=_0x370a13,_0x2aa873={'MOhnp':_0x1de926(0x190)};console[_0x1de926(0x19c)](_0x2aa873[_0x1de926(0x17c)],..._0x1c8775);}[_0x370a13(0x1a5)](..._0x447e48){var _0x4c5963=_0x370a13,_0x3d266f={'wuIKY':'onGroupListUpdate:'};console[_0x4c5963(0x19c)](_0x3d266f['wuIKY'],..._0x447e48);}['onGroupNotifiesUpdated'](..._0x491464){var _0x2f422e=_0x370a13,_0x1b76dc={'dSGLT':_0x2f422e(0x185)};console[_0x2f422e(0x19c)](_0x1b76dc[_0x2f422e(0x1ad)],..._0x491464);}['onGroupBulletinRichMediaProgressUpdate'](..._0xe98fb7){var _0x2deaba=_0x370a13,_0x386c6b={'xRQVi':_0x2deaba(0x18f)};console[_0x2deaba(0x19c)](_0x386c6b[_0x2deaba(0x199)],..._0xe98fb7);}[_0x370a13(0x1a4)](..._0x404e06){var _0x5c7768=_0x370a13,_0x464d64={'msIFF':_0x5c7768(0x1a8)};console[_0x5c7768(0x19c)](_0x464d64['msIFF'],..._0x404e06);}[_0x370a13(0x178)](..._0x2fe2b2){var _0x93e835=_0x370a13,_0x6c8055={'vHOnJ':_0x93e835(0x1b2)};console[_0x93e835(0x19c)](_0x6c8055[_0x93e835(0x19f)],..._0x2fe2b2);}[_0x370a13(0x198)](..._0x303024){var _0xf3e7b6=_0x370a13;console['log'](_0xf3e7b6(0x19d),..._0x303024);}[_0x370a13(0x17a)](..._0x140111){var _0xf8b511=_0x370a13,_0x16621f={'eNYwN':_0xf8b511(0x19a)};console[_0xf8b511(0x19c)](_0x16621f[_0xf8b511(0x187)],..._0x140111);}[_0x370a13(0x1ab)](..._0x57c3f3){var _0x15cf0c=_0x370a13,_0x4eccd8={'hzwto':_0x15cf0c(0x1a9)};console[_0x15cf0c(0x19c)](_0x4eccd8[_0x15cf0c(0x189)],..._0x57c3f3);}[_0x370a13(0x194)](..._0x40285a){var _0x50629a=_0x370a13;console[_0x50629a(0x19c)](_0x50629a(0x18c),..._0x40285a);}[_0x370a13(0x1a0)](_0x5d197d,_0x64839f,_0x12bf9e){var _0x450d46=_0x370a13,_0x2c4445={'tOidL':_0x450d46(0x186)};console[_0x450d46(0x19c)](_0x2c4445[_0x450d46(0x19b)],_0x5d197d,_0x64839f,_0x12bf9e);}[_0x370a13(0x1ac)](..._0x2f6464){var _0xe7c4e5=_0x370a13,_0x12123d={'nmryZ':'onMemberListChange:'};console[_0xe7c4e5(0x19c)](_0x12123d['nmryZ'],..._0x2f6464);}[_0x370a13(0x1a6)](..._0xce8c13){var _0x5c37cd=_0x370a13;console[_0x5c37cd(0x19c)](_0x5c37cd(0x1a2),..._0xce8c13);}[_0x370a13(0x175)](..._0x4d744f){var _0x156bb3=_0x370a13,_0x3e65e7={'pSmQr':_0x156bb3(0x18e)};console[_0x156bb3(0x19c)](_0x3e65e7[_0x156bb3(0x17e)],..._0x4d744f);}} \ 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 d12edd94..b72a7a64 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x13f2(_0x5f2724,_0x1a256e){var _0x22e118=_0x22e1();return _0x13f2=function(_0x13f255,_0x7ecf56){_0x13f255=_0x13f255-0x1dd;var _0x52ed27=_0x22e118[_0x13f255];return _0x52ed27;},_0x13f2(_0x5f2724,_0x1a256e);}var _0x23a8e5=_0x13f2;function _0x22e1(){var _0x15079a=['onQRCodeSessionUserScaned','onQRCodeLoginPollingStarted','812535iroOIq','438774xstifM','558862VoCmid','15360UTKMWL','onUserLoggedIn','onQQLoginNumLimited','onQRCodeSessionQuickLoginFailed','onQRCodeSessionFailed','onLoginConnecting','415gJdkws','onPasswordLoginFailed','101308jtQquo','onLogoutSucceed','onLoginDisConnected','OnConfirmUnusualDeviceFailed','onLogoutFailed','382440mrDJuD','onQRCodeLoginSucceed','4434600KqbdQw'];_0x22e1=function(){return _0x15079a;};return _0x22e1();}(function(_0x258bbb,_0x3e8224){var _0x4c3ec4=_0x13f2,_0x53ae3f=_0x258bbb();while(!![]){try{var _0x4a6bf4=-parseInt(_0x4c3ec4(0x1ea))/0x1+-parseInt(_0x4c3ec4(0x1e1))/0x2+-parseInt(_0x4c3ec4(0x1df))/0x3+parseInt(_0x4c3ec4(0x1ef))/0x4+parseInt(_0x4c3ec4(0x1e8))/0x5*(parseInt(_0x4c3ec4(0x1e2))/0x6)+-parseInt(_0x4c3ec4(0x1e0))/0x7+parseInt(_0x4c3ec4(0x1f1))/0x8;if(_0x4a6bf4===_0x3e8224)break;else _0x53ae3f['push'](_0x53ae3f['shift']());}catch(_0x18f34b){_0x53ae3f['push'](_0x53ae3f['shift']());}}}(_0x22e1,0x242b5));export class LoginListener{['onLoginConnected'](..._0x26afbc){}[_0x23a8e5(0x1ec)](..._0x39801c){}[_0x23a8e5(0x1e7)](..._0x7c8ca){}['onQRCodeGetPicture'](_0x3a904f){}[_0x23a8e5(0x1de)](..._0x47f2a3){}[_0x23a8e5(0x1dd)](..._0x4dd717){}[_0x23a8e5(0x1f0)](_0x978736){}[_0x23a8e5(0x1e6)](..._0x43a0a3){}['onLoginFailed'](..._0x2a2dc6){}[_0x23a8e5(0x1eb)](..._0x5f1d45){}[_0x23a8e5(0x1ee)](..._0x4c3d41){}[_0x23a8e5(0x1e3)](..._0x1a2dd2){}[_0x23a8e5(0x1e5)](..._0x2f52ff){}[_0x23a8e5(0x1e9)](..._0x5cba21){}[_0x23a8e5(0x1ed)](..._0x455da6){}[_0x23a8e5(0x1e4)](..._0x24d3fb){}['onLoginState'](..._0x4c36c3){}} \ No newline at end of file +var _0x59b71d=_0x2690;(function(_0x4290ed,_0x740bfb){var _0x5a3142=_0x2690,_0x45291f=_0x4290ed();while(!![]){try{var _0xc0200=-parseInt(_0x5a3142(0x191))/0x1+parseInt(_0x5a3142(0x1a3))/0x2*(-parseInt(_0x5a3142(0x193))/0x3)+-parseInt(_0x5a3142(0x199))/0x4*(-parseInt(_0x5a3142(0x19e))/0x5)+parseInt(_0x5a3142(0x1a6))/0x6*(-parseInt(_0x5a3142(0x1a0))/0x7)+-parseInt(_0x5a3142(0x1a2))/0x8*(-parseInt(_0x5a3142(0x198))/0x9)+parseInt(_0x5a3142(0x19f))/0xa*(parseInt(_0x5a3142(0x19b))/0xb)+-parseInt(_0x5a3142(0x1a5))/0xc*(-parseInt(_0x5a3142(0x197))/0xd);if(_0xc0200===_0x740bfb)break;else _0x45291f['push'](_0x45291f['shift']());}catch(_0x347ef3){_0x45291f['push'](_0x45291f['shift']());}}}(_0x55c4,0xc43b3));function _0x55c4(){var _0x55e8b6=['onUserLoggedIn','525zUiOke','onLogoutFailed','onQRCodeLoginPollingStarted','onLoginDisConnected','247bfwSwU','402201sfRLFB','4hGTavj','onQRCodeGetPicture','187UcOhyG','onQQLoginNumLimited','onLoginConnected','7857725iqgutv','216490dcCCgi','1092cFTfnn','onLoginConnecting','256xFrzkA','12404piMZpG','onLoginState','191628JFjPyy','49596lEEgDm','onQRCodeSessionFailed','onLogoutSucceed','494428GJUXQm'];_0x55c4=function(){return _0x55e8b6;};return _0x55c4();}function _0x2690(_0x2ebf09,_0x1888e1){var _0x55c423=_0x55c4();return _0x2690=function(_0x269000,_0x50994d){_0x269000=_0x269000-0x190;var _0x22df39=_0x55c423[_0x269000];return _0x22df39;},_0x2690(_0x2ebf09,_0x1888e1);}export class LoginListener{[_0x59b71d(0x19d)](..._0x56c796){}[_0x59b71d(0x196)](..._0x1dd5f0){}[_0x59b71d(0x1a1)](..._0xbcf2bb){}[_0x59b71d(0x19a)](_0x53674e){}[_0x59b71d(0x195)](..._0x57a772){}['onQRCodeSessionUserScaned'](..._0x125f5d){}['onQRCodeLoginSucceed'](_0x58ea1f){}[_0x59b71d(0x1a7)](..._0x1b5f71){}['onLoginFailed'](..._0x4fbb12){}[_0x59b71d(0x190)](..._0xe7590f){}[_0x59b71d(0x194)](..._0x1b32e6){}[_0x59b71d(0x192)](..._0x4ec901){}['onQRCodeSessionQuickLoginFailed'](..._0x46cb03){}['onPasswordLoginFailed'](..._0x439ea1){}['OnConfirmUnusualDeviceFailed'](..._0x2482a5){}[_0x59b71d(0x19c)](..._0x45f37b){}[_0x59b71d(0x1a4)](..._0x21991c){}} \ 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 1a912941..f95bc01c 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -function _0x2159(){var _0x4aa3cd=['22337yRKoEF','onGrabPasswordRedBag','onUserOnlineStatusChanged','onlineStatusSmallIconDownloadPush','2816184xdaOLG','onGroupGuildUpdate','333256nZVlje','onHitEmojiKeywordResult','onLineDev','9ptrAUI','onRedTouchChanged','onMsgInfoListUpdate','onUserSecQualityChanged','onFeedEventUpdate','onMsgEventListUpdate','onRecvUDCFlag','onMsgSettingUpdate','onSysMsgNotification','onLogLevelChanged','onTempChatInfoUpdate','onUnreadCntUpdate','onGuildNotificationAbstractUpdate','onRecvGroupGuildFlag','onGuildMsgAbFlagChanged','onRecvOnlineFileMsg','onFirstViewGroupGuildMapping','onRichMediaProgerssUpdate','onlineStatusBigIconDownloadPush','2065335NRUehz','onGroupTransferInfoAdd','onAddSendMsg','onUnreadCntAfterFirstView','onEmojiResourceUpdate','onRecvMsg','onEmojiDownloadComplete','onRichMediaUploadComplete','onSearchGroupFileInfoUpdate','onMsgBoxChanged','onMsgSecurityNotify','onMsgInfoListAdd','onChannelFreqLimitInfoUpdate','onRecvS2CMsg','2bmNgjI','onSendMsgError','onUserTabStatusChanged','90fvmoWz','onNtMsgSyncStart','11344910nHgCqu','onHitCsRelatedEmojiResult','4547688gUFXTL','onRecvSysMsg','onContactUnreadCntUpdate','onHitRelatedEmojiResult','onFileMsgCome','onKickedOffLine','onGroupFileInfoUpdate','onMsgRecall','onFirstViewDirectMsgUpdate','onGroupFileInfoAdd','onUserChannelTabStatusChanged','763306RiBrXL'];_0x2159=function(){return _0x4aa3cd;};return _0x2159();}var _0x3eddff=_0x574f;function _0x574f(_0xf57fdb,_0x926d84){var _0x215931=_0x2159();return _0x574f=function(_0x574fd7,_0x3636f1){_0x574fd7=_0x574fd7-0x153;var _0x26937b=_0x215931[_0x574fd7];return _0x26937b;},_0x574f(_0xf57fdb,_0x926d84);}(function(_0x1f3ef8,_0x1aba5f){var _0x52834f=_0x574f,_0x50f284=_0x1f3ef8();while(!![]){try{var _0x3100a8=-parseInt(_0x52834f(0x156))/0x1+parseInt(_0x52834f(0x181))/0x2*(parseInt(_0x52834f(0x15b))/0x3)+parseInt(_0x52834f(0x188))/0x4+parseInt(_0x52834f(0x173))/0x5+parseInt(_0x52834f(0x184))/0x6*(parseInt(_0x52834f(0x157))/0x7)+-parseInt(_0x52834f(0x15d))/0x8*(parseInt(_0x52834f(0x160))/0x9)+-parseInt(_0x52834f(0x186))/0xa;if(_0x3100a8===_0x1aba5f)break;else _0x50f284['push'](_0x50f284['shift']());}catch(_0x100408){_0x50f284['push'](_0x50f284['shift']());}}}(_0x2159,0x91c88));export class MsgListener{[_0x3eddff(0x175)](_0x40b36b){}['onBroadcastHelperDownloadComplete'](_0x147d85){}['onBroadcastHelperProgressUpdate'](_0x4f6532){}[_0x3eddff(0x17f)](_0x2b1a2f,_0x3fb82a,_0x2dfa15){}[_0x3eddff(0x18a)](_0x2768b4){}['onCustomWithdrawConfigUpdate'](_0x424e33){}['onDraftUpdate'](_0x54216b,_0x3a4e8c,_0x20d1df){}[_0x3eddff(0x179)](_0xd07e5b){}[_0x3eddff(0x177)](_0xd201e0){}[_0x3eddff(0x164)](_0x4396be){}[_0x3eddff(0x18c)](_0x4f5a5e){}[_0x3eddff(0x153)](_0x57c0c8){}[_0x3eddff(0x170)](_0x2d3542){}[_0x3eddff(0x158)](_0x4582b9,_0x3b61d5,_0x24090e,_0x2e7dd7,_0x497142){}[_0x3eddff(0x154)](_0x393730){}[_0x3eddff(0x18e)](_0x4daa16){}[_0x3eddff(0x15c)](_0x289392){}[_0x3eddff(0x174)](_0x555e3b){}['onGroupTransferInfoUpdate'](_0x5a2be2){}['onGuildInteractiveUpdate'](_0x59ab7d){}[_0x3eddff(0x16e)](_0x2a6dfc){}[_0x3eddff(0x16c)](_0x21710b){}[_0x3eddff(0x187)](_0x2e2221){}[_0x3eddff(0x15e)](_0x136192){}[_0x3eddff(0x18b)](_0x2c7519){}['onImportOldDbProgressUpdate'](_0x4ccfac){}['onInputStatusPush'](_0x212e8f){}[_0x3eddff(0x18d)](_0x2a6e1e){}[_0x3eddff(0x15f)](_0x40081a){}[_0x3eddff(0x169)](_0x678eba){}['onMsgAbstractUpdate'](_0xe838b1){}[_0x3eddff(0x17c)](_0x452c03){}['onMsgDelete'](_0x4cb51e,_0x3f852c){}[_0x3eddff(0x165)](_0x5364e2){}[_0x3eddff(0x17e)](_0x29f030){}[_0x3eddff(0x162)](_0x5026e3){}['onMsgQRCodeStatusChanged'](_0x2578ab){}[_0x3eddff(0x18f)](_0x2f9fcb,_0xf5287e,_0x3fa154){}[_0x3eddff(0x17d)](_0x5204c7){}[_0x3eddff(0x167)](_0x464161){}['onNtFirstViewMsgSyncEnd'](){}['onNtMsgSyncEnd'](){}[_0x3eddff(0x185)](){}['onReadFeedEventUpdate'](_0x4fb4de){}[_0x3eddff(0x16d)](_0x3cd5c8){}[_0x3eddff(0x178)](_0x156358){}['onRecvMsgSvrRspTransInfo'](_0x1f4eb6,_0x17cbd9,_0x4e0288,_0xec5984,_0x16b02b,_0x52a168){}[_0x3eddff(0x16f)](_0x51131c){}[_0x3eddff(0x180)](_0x2c3ad2){}[_0x3eddff(0x189)](_0x5d7812){}[_0x3eddff(0x166)](_0x4ef1d1){}['onRichMediaDownloadComplete'](_0x43a8f3){}[_0x3eddff(0x171)](_0x16f898){}[_0x3eddff(0x17a)](_0x56bb72){}[_0x3eddff(0x17b)](_0x3c0c8d){}[_0x3eddff(0x182)](_0x4294e5,_0x5cf5b0,_0x24f0e7,_0x5033e8){}[_0x3eddff(0x168)](_0x84a3a4,_0x3bf420,_0x298761,_0x53c321){}[_0x3eddff(0x16a)](_0x262e3c){}[_0x3eddff(0x176)](_0x571d9e){}[_0x3eddff(0x16b)](_0x1ab45e){}[_0x3eddff(0x155)](_0x285bbd){}[_0x3eddff(0x159)](_0x4c114c){}[_0x3eddff(0x183)](_0x178772){}[_0x3eddff(0x172)](_0x1f0cfc,_0x2d9cac,_0x187fe9){}[_0x3eddff(0x15a)](_0x1e1258,_0x484aa9,_0x504c89){}[_0x3eddff(0x163)](..._0x46a570){}['onMsgWithRichLinkInfoUpdate'](..._0x2b35f5){}[_0x3eddff(0x161)](..._0x3d8445){}['onBroadcastHelperProgerssUpdate'](..._0xb77feb){}} \ No newline at end of file +var _0x58761b=_0x4c4a;(function(_0x56709e,_0xc21b4c){var _0x124218=_0x4c4a,_0x2ade50=_0x56709e();while(!![]){try{var _0xa2616d=-parseInt(_0x124218(0x1b8))/0x1+parseInt(_0x124218(0x19d))/0x2*(parseInt(_0x124218(0x1bc))/0x3)+parseInt(_0x124218(0x1ae))/0x4*(parseInt(_0x124218(0x1b1))/0x5)+-parseInt(_0x124218(0x19f))/0x6*(parseInt(_0x124218(0x19c))/0x7)+parseInt(_0x124218(0x1b7))/0x8*(parseInt(_0x124218(0x1c5))/0x9)+parseInt(_0x124218(0x1a9))/0xa+-parseInt(_0x124218(0x1af))/0xb;if(_0xa2616d===_0xc21b4c)break;else _0x2ade50['push'](_0x2ade50['shift']());}catch(_0xf856b5){_0x2ade50['push'](_0x2ade50['shift']());}}}(_0xf23a,0x44a68));function _0x4c4a(_0x1ead19,_0x31762a){var _0xf23ad0=_0xf23a();return _0x4c4a=function(_0x4c4a61,_0x31f35d){_0x4c4a61=_0x4c4a61-0x191;var _0x26d46e=_0xf23ad0[_0x4c4a61];return _0x26d46e;},_0x4c4a(_0x1ead19,_0x31762a);}export class MsgListener{['onAddSendMsg'](_0x111b99){}[_0x58761b(0x1a7)](_0x3f4ede){}['onBroadcastHelperProgressUpdate'](_0x4be99e){}[_0x58761b(0x19e)](_0xbea72,_0x53c87b,_0x1b17f8){}[_0x58761b(0x1c1)](_0x3db2df){}[_0x58761b(0x1ac)](_0xc00ffa){}[_0x58761b(0x1a1)](_0x22bd76,_0x2a7b07,_0x108f6d){}[_0x58761b(0x194)](_0x41224f){}[_0x58761b(0x199)](_0x23cc1f){}[_0x58761b(0x1c8)](_0x26a10c){}[_0x58761b(0x1a5)](_0x51490f){}[_0x58761b(0x1b9)](_0x2f761e){}['onFirstViewGroupGuildMapping'](_0x55135d){}[_0x58761b(0x1c9)](_0x178de7,_0x6055c3,_0x53dc61,_0x4e4300,_0x5562ad){}['onGroupFileInfoAdd'](_0x156427){}[_0x58761b(0x1aa)](_0x4de418){}[_0x58761b(0x195)](_0x22f2c0){}[_0x58761b(0x1b2)](_0x16cebc){}[_0x58761b(0x1b0)](_0xe064be){}['onGuildInteractiveUpdate'](_0x482caa){}[_0x58761b(0x1c7)](_0x3b6da0){}[_0x58761b(0x198)](_0xbdfe11){}['onHitCsRelatedEmojiResult'](_0x2e0514){}['onHitEmojiKeywordResult'](_0x59997a){}['onHitRelatedEmojiResult'](_0x53fa97){}[_0x58761b(0x1bb)](_0x2473ac){}[_0x58761b(0x1a3)](_0x3283ed){}['onKickedOffLine'](_0x2b34c4){}[_0x58761b(0x1ca)](_0xaccdb5){}[_0x58761b(0x1bf)](_0x2103a4){}[_0x58761b(0x1b5)](_0x5eccd3){}['onMsgBoxChanged'](_0x171bbf){}[_0x58761b(0x1ba)](_0x288ad4,_0x126c93){}['onMsgEventListUpdate'](_0x543354){}[_0x58761b(0x1a2)](_0x1bbfb7){}['onMsgInfoListUpdate'](_0x4a931c){}['onMsgQRCodeStatusChanged'](_0x4030e7){}[_0x58761b(0x19a)](_0x29e931,_0x30c2fd,_0x3c70f7){}[_0x58761b(0x1a4)](_0x37189d){}[_0x58761b(0x1c4)](_0x44a0b4){}['onNtFirstViewMsgSyncEnd'](){}[_0x58761b(0x1cc)](){}[_0x58761b(0x1bd)](){}[_0x58761b(0x193)](_0xdbdf4b){}['onRecvGroupGuildFlag'](_0x87ba6c){}[_0x58761b(0x192)](_0x189cc0){}[_0x58761b(0x1b6)](_0x23fc79,_0x5d926e,_0x1c814f,_0x5cec9b,_0x26bbd0,_0x4e2295){}[_0x58761b(0x1a0)](_0x4be371){}[_0x58761b(0x1b4)](_0x3a511c){}[_0x58761b(0x1c6)](_0x35a7eb){}[_0x58761b(0x1a8)](_0x68e951){}[_0x58761b(0x1a6)](_0x4e7699){}[_0x58761b(0x1c2)](_0x19678f){}[_0x58761b(0x191)](_0x1ff5fd){}[_0x58761b(0x1cb)](_0xd1e6a9){}[_0x58761b(0x1be)](_0x4d23fa,_0x7df552,_0x337788,_0x4caaff){}[_0x58761b(0x1ab)](_0x1af86b,_0xf17486,_0x2154ff,_0x1d4250){}[_0x58761b(0x197)](_0x123f3e){}[_0x58761b(0x19b)](_0x1658a5){}['onUnreadCntUpdate'](_0x242c93){}['onUserChannelTabStatusChanged'](_0x2814cd){}['onUserOnlineStatusChanged'](_0x3a9a99){}[_0x58761b(0x1b3)](_0x3c7636){}[_0x58761b(0x1c3)](_0x39796a,_0x367343,_0xfc9a2d){}[_0x58761b(0x1ad)](_0x4f6e5c,_0x5b3ca0,_0x3fe486){}[_0x58761b(0x196)](..._0x3ffa42){}['onMsgWithRichLinkInfoUpdate'](..._0x338cfc){}[_0x58761b(0x1c0)](..._0x1213d1){}['onBroadcastHelperProgerssUpdate'](..._0x3af678){}}function _0xf23a(){var _0x55b339=['onRecvMsgSvrRspTransInfo','4352HvkGvB','212509egSUVE','onFirstViewDirectMsgUpdate','onMsgDelete','onImportOldDbProgressUpdate','19896lrBsuF','onNtMsgSyncStart','onSendMsgError','onLogLevelChanged','onRedTouchChanged','onContactUnreadCntUpdate','onRichMediaProgerssUpdate','onlineStatusBigIconDownloadPush','onMsgSettingUpdate','279ANtayY','onRecvSysMsg','onGuildMsgAbFlagChanged','onFeedEventUpdate','onGrabPasswordRedBag','onLineDev','onSearchGroupFileInfoUpdate','onNtMsgSyncEnd','onRichMediaUploadComplete','onRecvMsg','onReadFeedEventUpdate','onEmojiDownloadComplete','onGroupGuildUpdate','onUserSecQualityChanged','onTempChatInfoUpdate','onGuildNotificationAbstractUpdate','onEmojiResourceUpdate','onMsgRecall','onUnreadCntAfterFirstView','3402ILdemy','36eCzosu','onChannelFreqLimitInfoUpdate','1290aWafGT','onRecvOnlineFileMsg','onDraftUpdate','onMsgInfoListAdd','onInputStatusPush','onMsgSecurityNotify','onFileMsgCome','onRichMediaDownloadComplete','onBroadcastHelperDownloadComplete','onRecvUDCFlag','611460qKKrzA','onGroupFileInfoUpdate','onSysMsgNotification','onCustomWithdrawConfigUpdate','onlineStatusSmallIconDownloadPush','6648YcGnWJ','764951vNRKHo','onGroupTransferInfoUpdate','1415MWINHA','onGroupTransferInfoAdd','onUserTabStatusChanged','onRecvS2CMsg','onMsgAbstractUpdate'];_0xf23a=function(){return _0x55b339;};return _0xf23a();} \ 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 d492d798..92dd7b52 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -var _0x35ea8d=_0x3fc9;(function(_0x1dab25,_0x358c7e){var _0x3148c4=_0x3fc9,_0x2727d7=_0x1dab25();while(!![]){try{var _0x406091=parseInt(_0x3148c4(0x148))/0x1+parseInt(_0x3148c4(0x149))/0x2*(parseInt(_0x3148c4(0x141))/0x3)+-parseInt(_0x3148c4(0x14a))/0x4*(parseInt(_0x3148c4(0x147))/0x5)+-parseInt(_0x3148c4(0x14d))/0x6*(-parseInt(_0x3148c4(0x146))/0x7)+-parseInt(_0x3148c4(0x144))/0x8*(parseInt(_0x3148c4(0x145))/0x9)+-parseInt(_0x3148c4(0x14b))/0xa+-parseInt(_0x3148c4(0x142))/0xb;if(_0x406091===_0x358c7e)break;else _0x2727d7['push'](_0x2727d7['shift']());}catch(_0x3cd5a2){_0x2727d7['push'](_0x2727d7['shift']());}}}(_0x335b,0x58a75));function _0x335b(){var _0x189a11=['6093285Zmxpry','onStrangerRemarkChanged','48uDOfMl','493092KvQzrE','125713demgdB','55255uyVzMf','608417nTJvEg','100SRKQDU','116dKwYSD','664110lXTOOE','onProfileSimpleChanged','174sjrJCD','30207nrAHqY'];_0x335b=function(){return _0x189a11;};return _0x335b();}function _0x3fc9(_0x334af2,_0x3364fb){var _0x335b52=_0x335b();return _0x3fc9=function(_0x3fc934,_0x40658b){_0x3fc934=_0x3fc934-0x141;var _0x540924=_0x335b52[_0x3fc934];return _0x540924;},_0x3fc9(_0x334af2,_0x3364fb);}export class ProfileListener{[_0x35ea8d(0x14c)](..._0x93fbad){}['onProfileDetailInfoChanged'](_0x14cec6){}['onStatusUpdate'](..._0x21e338){}['onSelfStatusChanged'](..._0x2f82e3){}[_0x35ea8d(0x143)](..._0x592c3a){}} \ No newline at end of file +function _0x3ca0(_0x247751,_0x5a3df4){var _0x4264cb=_0x4264();return _0x3ca0=function(_0x3ca083,_0x40d0f8){_0x3ca083=_0x3ca083-0x167;var _0x56a12d=_0x4264cb[_0x3ca083];return _0x56a12d;},_0x3ca0(_0x247751,_0x5a3df4);}function _0x4264(){var _0x781d6b=['onProfileSimpleChanged','889caYicc','6roraCu','27672GWVuyo','886105ZgZaDG','28yavgfT','91856YEGJtg','24KUkjyb','onSelfStatusChanged','onProfileDetailInfoChanged','2019776WVbOlc','20hnuLkd','onStrangerRemarkChanged','3364361QRmHPB','28mnseMe','1745262rmaDDs','133797nDVGLf','10Ucfyjr','onStatusUpdate'];_0x4264=function(){return _0x781d6b;};return _0x4264();}var _0x4410f5=_0x3ca0;(function(_0x24226e,_0x353f05){var _0x5e2e8c=_0x3ca0,_0x5c77a7=_0x24226e();while(!![]){try{var _0x30df28=parseInt(_0x5e2e8c(0x169))/0x1*(-parseInt(_0x5e2e8c(0x171))/0x2)+-parseInt(_0x5e2e8c(0x168))/0x3*(-parseInt(_0x5e2e8c(0x170))/0x4)+parseInt(_0x5e2e8c(0x16f))/0x5*(parseInt(_0x5e2e8c(0x16d))/0x6)+-parseInt(_0x5e2e8c(0x16c))/0x7*(-parseInt(_0x5e2e8c(0x16e))/0x8)+parseInt(_0x5e2e8c(0x167))/0x9*(-parseInt(_0x5e2e8c(0x176))/0xa)+-parseInt(_0x5e2e8c(0x175))/0xb*(parseInt(_0x5e2e8c(0x172))/0xc)+-parseInt(_0x5e2e8c(0x178))/0xd*(-parseInt(_0x5e2e8c(0x179))/0xe);if(_0x30df28===_0x353f05)break;else _0x5c77a7['push'](_0x5c77a7['shift']());}catch(_0x2b6010){_0x5c77a7['push'](_0x5c77a7['shift']());}}}(_0x4264,0x38a11));export class ProfileListener{[_0x4410f5(0x16b)](..._0x599eec){}[_0x4410f5(0x174)](_0x2543d9){}[_0x4410f5(0x16a)](..._0x4cd488){}[_0x4410f5(0x173)](..._0x219fa2){}[_0x4410f5(0x177)](..._0x1e6730){}} \ 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 77f02056..337516b0 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -function _0x1f28(_0x36e0ac,_0x3ecf36){var _0x3cb76c=_0x3cb7();return _0x1f28=function(_0x1f289d,_0x74013f){_0x1f289d=_0x1f289d-0x18c;var _0x4c4172=_0x3cb76c[_0x1f289d];return _0x4c4172;},_0x1f28(_0x36e0ac,_0x3ecf36);}function _0x3cb7(){var _0x2b75a9=['1649562NpkTVH','552088ENmRxE','onRobotProfileChanged','71406NlISPP','7237510lvbuFE','2933556JXIGOA','2073390pYiKff','onRobotFriendListChanged','1625jjEaXP','117mFcZKA','8504qwYKPD'];_0x3cb7=function(){return _0x2b75a9;};return _0x3cb7();}var _0x58cbd2=_0x1f28;(function(_0xb7442a,_0x4f515e){var _0x4ab8cd=_0x1f28,_0x3fd6b0=_0xb7442a();while(!![]){try{var _0x45e250=parseInt(_0x4ab8cd(0x194))/0x1+-parseInt(_0x4ab8cd(0x18c))/0x2+parseInt(_0x4ab8cd(0x196))/0x3+-parseInt(_0x4ab8cd(0x190))/0x4*(-parseInt(_0x4ab8cd(0x18e))/0x5)+-parseInt(_0x4ab8cd(0x191))/0x6+parseInt(_0x4ab8cd(0x195))/0x7+parseInt(_0x4ab8cd(0x192))/0x8*(-parseInt(_0x4ab8cd(0x18f))/0x9);if(_0x45e250===_0x4f515e)break;else _0x3fd6b0['push'](_0x3fd6b0['shift']());}catch(_0x340018){_0x3fd6b0['push'](_0x3fd6b0['shift']());}}}(_0x3cb7,0x8a07d));export class KernelRobotListener{[_0x58cbd2(0x18d)](..._0x59174f){}['onRobotListChanged'](..._0x4d00a4){}[_0x58cbd2(0x193)](..._0x43a248){}} \ No newline at end of file +function _0x42ae(_0x89672e,_0xe9bde5){var _0x286da0=_0x286d();return _0x42ae=function(_0x42ae7c,_0x1c000d){_0x42ae7c=_0x42ae7c-0x1bf;var _0xfc5f58=_0x286da0[_0x42ae7c];return _0xfc5f58;},_0x42ae(_0x89672e,_0xe9bde5);}var _0x518a1c=_0x42ae;(function(_0x19fb69,_0x32362b){var _0x216321=_0x42ae,_0x12241b=_0x19fb69();while(!![]){try{var _0x4ac971=-parseInt(_0x216321(0x1c7))/0x1+-parseInt(_0x216321(0x1c8))/0x2+parseInt(_0x216321(0x1c0))/0x3*(-parseInt(_0x216321(0x1c3))/0x4)+-parseInt(_0x216321(0x1c2))/0x5*(-parseInt(_0x216321(0x1c5))/0x6)+-parseInt(_0x216321(0x1c4))/0x7+parseInt(_0x216321(0x1c9))/0x8+parseInt(_0x216321(0x1c1))/0x9;if(_0x4ac971===_0x32362b)break;else _0x12241b['push'](_0x12241b['shift']());}catch(_0x4a7812){_0x12241b['push'](_0x12241b['shift']());}}}(_0x286d,0xa298e));export class KernelRobotListener{[_0x518a1c(0x1ca)](..._0x5662e2){}[_0x518a1c(0x1c6)](..._0x3ea697){}[_0x518a1c(0x1bf)](..._0x57b253){}}function _0x286d(){var _0x3132d4=['onRobotFriendListChanged','onRobotProfileChanged','3htmLeV','24681816CgbRxx','5EBuBVm','311576nIzclR','2853172uKzyfE','4056054FLygBu','onRobotListChanged','1326497AdZnIu','2109346NaDoOI','913800nHKidJ'];_0x286d=function(){return _0x3132d4;};return _0x286d();} \ 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 2986224e..3f95d067 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x2230e5=_0x9d14;function _0x9d14(_0x3e503c,_0x1111ec){var _0x1aae02=_0x1aae();return _0x9d14=function(_0x9d146f,_0x93eeff){_0x9d146f=_0x9d146f-0x110;var _0xcb53ab=_0x1aae02[_0x9d146f];return _0xcb53ab;},_0x9d14(_0x3e503c,_0x1111ec);}(function(_0x1f06ca,_0x170d04){var _0x301a90=_0x9d14,_0x4dfa50=_0x1f06ca();while(!![]){try{var _0x2ca900=-parseInt(_0x301a90(0x11a))/0x1*(-parseInt(_0x301a90(0x112))/0x2)+parseInt(_0x301a90(0x113))/0x3*(parseInt(_0x301a90(0x11e))/0x4)+parseInt(_0x301a90(0x110))/0x5+parseInt(_0x301a90(0x11d))/0x6*(parseInt(_0x301a90(0x118))/0x7)+parseInt(_0x301a90(0x119))/0x8*(-parseInt(_0x301a90(0x11b))/0x9)+parseInt(_0x301a90(0x114))/0xa*(-parseInt(_0x301a90(0x120))/0xb)+parseInt(_0x301a90(0x111))/0xc*(-parseInt(_0x301a90(0x115))/0xd);if(_0x2ca900===_0x170d04)break;else _0x4dfa50['push'](_0x4dfa50['shift']());}catch(_0x2a8d78){_0x4dfa50['push'](_0x4dfa50['shift']());}}}(_0x1aae,0xc4b07));function _0x1aae(){var _0x1b5991=['onGProSessionCreate','1464VvGeIz','48fQvEJo','onSessionInitComplete','86966IgdQBx','6960865trpTvq','36NhShux','2odJqkZ','245331Hqplyk','730XolNHN','3965611xILfUf','onNTSessionCreate','onUserOnlineResult','7483jhcpYI','6001440gMPGGO','1163945QwnlMW','18WWBIjf'];_0x1aae=function(){return _0x1b5991;};return _0x1aae();}export class SessionListener{[_0x2230e5(0x116)](_0x583e7a){}[_0x2230e5(0x11c)](_0x32c724){}[_0x2230e5(0x11f)](_0x1531bb){}['onOpentelemetryInit'](_0x40924c){}[_0x2230e5(0x117)](_0x235f9e){}['onGetSelfTinyId'](_0x48fd04){}} \ No newline at end of file +function _0x1d27(){var _0x3fc17a=['3407472jULLRD','3928870VYyZRX','31384kSVGPW','24yuFIbh','onSessionInitComplete','8635mbneJq','6632736QWfNuh','1328156HzNFsa','onGetSelfTinyId','onUserOnlineResult','978wPBViX','onNTSessionCreate','2967Emqkjk','3SUACvj','onGProSessionCreate','onOpentelemetryInit','336hiqRmP'];_0x1d27=function(){return _0x3fc17a;};return _0x1d27();}function _0x47ec(_0x3cf335,_0x2e174b){var _0x1d2790=_0x1d27();return _0x47ec=function(_0x47ecc0,_0x5590a1){_0x47ecc0=_0x47ecc0-0xc7;var _0x374a52=_0x1d2790[_0x47ecc0];return _0x374a52;},_0x47ec(_0x3cf335,_0x2e174b);}var _0x4017d8=_0x47ec;(function(_0x4b2246,_0xdfa55a){var _0x493a60=_0x47ec,_0xa87f57=_0x4b2246();while(!![]){try{var _0x49c745=-parseInt(_0x493a60(0xd5))/0x1*(-parseInt(_0x493a60(0xcc))/0x2)+-parseInt(_0x493a60(0xd6))/0x3*(parseInt(_0x493a60(0xd0))/0x4)+parseInt(_0x493a60(0xce))/0x5*(-parseInt(_0x493a60(0xd3))/0x6)+-parseInt(_0x493a60(0xc8))/0x7*(-parseInt(_0x493a60(0xcb))/0x8)+parseInt(_0x493a60(0xc9))/0x9+-parseInt(_0x493a60(0xca))/0xa+parseInt(_0x493a60(0xcf))/0xb;if(_0x49c745===_0xdfa55a)break;else _0xa87f57['push'](_0xa87f57['shift']());}catch(_0x382379){_0xa87f57['push'](_0xa87f57['shift']());}}}(_0x1d27,0x30999));export class SessionListener{[_0x4017d8(0xd4)](_0x17dbca){}[_0x4017d8(0xd7)](_0x2e6b62){}[_0x4017d8(0xcd)](_0x3c298f){}[_0x4017d8(0xc7)](_0x5be800){}[_0x4017d8(0xd2)](_0x163f0d){}[_0x4017d8(0xd1)](_0x2f9eb2){}} \ 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 6f444477..406529b7 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -var _0x29ecf6=_0x3cd4;(function(_0x428b7c,_0x37bd38){var _0x197a0b=_0x3cd4,_0x50b60d=_0x428b7c();while(!![]){try{var _0x1d46bf=parseInt(_0x197a0b(0x17e))/0x1+-parseInt(_0x197a0b(0x17c))/0x2+-parseInt(_0x197a0b(0x184))/0x3+parseInt(_0x197a0b(0x183))/0x4*(parseInt(_0x197a0b(0x17a))/0x5)+parseInt(_0x197a0b(0x179))/0x6*(parseInt(_0x197a0b(0x17d))/0x7)+-parseInt(_0x197a0b(0x17b))/0x8+parseInt(_0x197a0b(0x178))/0x9*(parseInt(_0x197a0b(0x185))/0xa);if(_0x1d46bf===_0x37bd38)break;else _0x50b60d['push'](_0x50b60d['shift']());}catch(_0x2552b5){_0x50b60d['push'](_0x50b60d['shift']());}}}(_0x1e84,0xa2081));function _0x3cd4(_0x2dbae8,_0x4b4bd7){var _0x1e8496=_0x1e84();return _0x3cd4=function(_0x3cd46d,_0x266ff5){_0x3cd46d=_0x3cd46d-0x178;var _0x1bb244=_0x1e8496[_0x3cd46d];return _0x1bb244;},_0x3cd4(_0x2dbae8,_0x4b4bd7);}function _0x1e84(){var _0x567c71=['816tmUbFI','75iTkLlb','5494616XMFTky','861590KYSLKx','29687CcCFyJ','64258GzFubX','onCleanCacheStorageChanged','onChatCleanDone','onCleanCacheProgressChanged','onScanCacheProgressChanged','260828snhiLQ','2634831DwZKpl','10404410hiSdoL','9jVBnmz'];_0x1e84=function(){return _0x567c71;};return _0x1e84();}export class StorageCleanListener{[_0x29ecf6(0x181)](_0x5a0de){}[_0x29ecf6(0x182)](_0x52e148){}[_0x29ecf6(0x17f)](_0x50f412){}['onFinishScan'](_0x8605a4){}[_0x29ecf6(0x180)](_0x46076c){}} \ No newline at end of file +function _0xced6(_0x523c76,_0x35f32d){var _0x50de0a=_0x50de();return _0xced6=function(_0xced6a2,_0x17d681){_0xced6a2=_0xced6a2-0x18f;var _0x2358f6=_0x50de0a[_0xced6a2];return _0x2358f6;},_0xced6(_0x523c76,_0x35f32d);}function _0x50de(){var _0x15c948=['8726KrAuyp','onCleanCacheStorageChanged','8712eUaWVi','54TiBnIk','68740ZOENOm','onFinishScan','54228vTMzNI','444KlBrfy','208235dxBNbm','onChatCleanDone','208992LDVNtR','70ehbBpF','288XfXiFA','2236XotzXE','66536MVpocV','935LgKMeL'];_0x50de=function(){return _0x15c948;};return _0x50de();}var _0x18526b=_0xced6;(function(_0x39d961,_0x5bd54f){var _0x10dc74=_0xced6,_0x4e858d=_0x39d961();while(!![]){try{var _0x34c546=parseInt(_0x10dc74(0x199))/0x1*(parseInt(_0x10dc74(0x19e))/0x2)+-parseInt(_0x10dc74(0x195))/0x3*(-parseInt(_0x10dc74(0x190))/0x4)+-parseInt(_0x10dc74(0x196))/0x5+-parseInt(_0x10dc74(0x191))/0x6*(parseInt(_0x10dc74(0x198))/0x7)+parseInt(_0x10dc74(0x19c))/0x8*(parseInt(_0x10dc74(0x19a))/0x9)+-parseInt(_0x10dc74(0x192))/0xa*(-parseInt(_0x10dc74(0x19d))/0xb)+-parseInt(_0x10dc74(0x194))/0xc*(parseInt(_0x10dc74(0x19b))/0xd);if(_0x34c546===_0x5bd54f)break;else _0x4e858d['push'](_0x4e858d['shift']());}catch(_0x14c75f){_0x4e858d['push'](_0x4e858d['shift']());}}}(_0x50de,0x5f5a9));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x2d0475){}['onScanCacheProgressChanged'](_0x13304d){}[_0x18526b(0x18f)](_0x30f0ad){}[_0x18526b(0x193)](_0x1b1e2a){}[_0x18526b(0x197)](_0x2807c2){}} \ 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 327dff6b..26cc96ed 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x54e230,_0x5b9336){var _0x4d29af=_0x3c25,_0x3b62ff=_0x54e230();while(!![]){try{var _0x53c4d7=-parseInt(_0x4d29af(0x98))/0x1+-parseInt(_0x4d29af(0x9a))/0x2+parseInt(_0x4d29af(0xa0))/0x3+parseInt(_0x4d29af(0xa1))/0x4+-parseInt(_0x4d29af(0x9b))/0x5*(parseInt(_0x4d29af(0x9c))/0x6)+parseInt(_0x4d29af(0x99))/0x7*(-parseInt(_0x4d29af(0x9e))/0x8)+-parseInt(_0x4d29af(0x9d))/0x9*(-parseInt(_0x4d29af(0x9f))/0xa);if(_0x53c4d7===_0x5b9336)break;else _0x3b62ff['push'](_0x3b62ff['shift']());}catch(_0x45f131){_0x3b62ff['push'](_0x3b62ff['shift']());}}}(_0x2d72,0xc696e));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';function _0x3c25(_0x197738,_0x4a4dbd){var _0x2d72a2=_0x2d72();return _0x3c25=function(_0x3c2594,_0x57cf20){_0x3c2594=_0x3c2594-0x98;var _0x110150=_0x2d72a2[_0x3c2594];return _0x110150;},_0x3c25(_0x197738,_0x4a4dbd);}export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';function _0x2d72(){var _0xf5ec0d=['122763GwzWuW','10852429OPgxeo','2423720cSLUTH','675jyBaiw','1662TxpftG','9UdUzkd','8ieFYJt','8407730jFjfKj','4198038HkCwej','5982672aTMYch'];_0x2d72=function(){return _0xf5ec0d;};return _0x2d72();}export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x1a8fcb,_0x2c1ef1){var _0x1458d2=_0x54cd,_0x275d68=_0x1a8fcb();while(!![]){try{var _0x61996a=-parseInt(_0x1458d2(0x19d))/0x1*(-parseInt(_0x1458d2(0x196))/0x2)+parseInt(_0x1458d2(0x193))/0x3*(parseInt(_0x1458d2(0x19b))/0x4)+parseInt(_0x1458d2(0x19e))/0x5+parseInt(_0x1458d2(0x19c))/0x6*(-parseInt(_0x1458d2(0x198))/0x7)+parseInt(_0x1458d2(0x197))/0x8*(parseInt(_0x1458d2(0x199))/0x9)+parseInt(_0x1458d2(0x192))/0xa*(-parseInt(_0x1458d2(0x194))/0xb)+-parseInt(_0x1458d2(0x195))/0xc*(parseInt(_0x1458d2(0x19a))/0xd);if(_0x61996a===_0x2c1ef1)break;else _0x275d68['push'](_0x275d68['shift']());}catch(_0x513c90){_0x275d68['push'](_0x275d68['shift']());}}}(_0x24d6,0xb822c));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';function _0x54cd(_0x12c795,_0x449cc9){var _0x24d604=_0x24d6();return _0x54cd=function(_0x54cd11,_0x33c0ba){_0x54cd11=_0x54cd11-0x192;var _0x182d77=_0x24d604[_0x54cd11];return _0x182d77;},_0x54cd(_0x12c795,_0x449cc9);}function _0x24d6(){var _0x593dad=['40ySlETH','2561922IRJfIN','5115yQOxqI','7458620FHhIVo','130nNuPQN','181074ZWkuzm','437063hAtfbG','276HoGPUn','274DZCfhO','10096EbmwgM','7HgPPzV','4842lDKthG','1004549BoAVrz'];_0x24d6=function(){return _0x593dad;};return _0x24d6();}export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 29325d1f..c9bdec00 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -function _0x5025(_0x110723,_0x1aab14){var _0x118a88=_0x118a();return _0x5025=function(_0x5025a5,_0x45730e){_0x5025a5=_0x5025a5-0x1d7;var _0x37200e=_0x118a88[_0x5025a5];return _0x37200e;},_0x5025(_0x110723,_0x1aab14);}(function(_0x13d00a,_0x484f3c){var _0x60545f=_0x5025,_0x5f52c4=_0x13d00a();while(!![]){try{var _0x273fb3=parseInt(_0x60545f(0x1db))/0x1+-parseInt(_0x60545f(0x1d9))/0x2+-parseInt(_0x60545f(0x1d7))/0x3+-parseInt(_0x60545f(0x1da))/0x4+-parseInt(_0x60545f(0x1dd))/0x5*(parseInt(_0x60545f(0x1d8))/0x6)+parseInt(_0x60545f(0x1dc))/0x7+-parseInt(_0x60545f(0x1df))/0x8*(-parseInt(_0x60545f(0x1de))/0x9);if(_0x273fb3===_0x484f3c)break;else _0x5f52c4['push'](_0x5f52c4['shift']());}catch(_0xdf3394){_0x5f52c4['push'](_0x5f52c4['shift']());}}}(_0x118a,0x6b594));export var GeneralCallResultStatus;function _0x118a(){var _0x2f94a4=['509658xjKRBN','426867SFcTvI','139390hbFFrV','27xFUVjw','5547576BGCOlU','650871pLvAiU','186qsMAmd','1410706GCEFUI','1699008cNAQDi'];_0x118a=function(){return _0x2f94a4;};return _0x118a();}(function(_0x366b36){_0x366b36[_0x366b36['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(function(_0x355c61,_0x27912f){var _0xe6f2c4=_0x4d06,_0x597da8=_0x355c61();while(!![]){try{var _0x23918b=-parseInt(_0xe6f2c4(0xcb))/0x1*(-parseInt(_0xe6f2c4(0xd5))/0x2)+parseInt(_0xe6f2c4(0xd0))/0x3*(parseInt(_0xe6f2c4(0xcc))/0x4)+parseInt(_0xe6f2c4(0xcd))/0x5+-parseInt(_0xe6f2c4(0xd3))/0x6*(-parseInt(_0xe6f2c4(0xce))/0x7)+-parseInt(_0xe6f2c4(0xd1))/0x8+-parseInt(_0xe6f2c4(0xcf))/0x9*(-parseInt(_0xe6f2c4(0xd4))/0xa)+-parseInt(_0xe6f2c4(0xd2))/0xb;if(_0x23918b===_0x27912f)break;else _0x597da8['push'](_0x597da8['shift']());}catch(_0x573d5d){_0x597da8['push'](_0x597da8['shift']());}}}(_0x5f54,0xf2e64));export var GeneralCallResultStatus;function _0x4d06(_0x1cd433,_0x274e58){var _0x5f5473=_0x5f54();return _0x4d06=function(_0x4d06f4,_0xc8a401){_0x4d06f4=_0x4d06f4-0xcb;var _0x34bf45=_0x5f5473[_0x4d06f4];return _0x34bf45;},_0x4d06(_0x1cd433,_0x274e58);}function _0x5f54(){var _0x58501f=['2061nCPadT','6346656eZgfXm','54565489BVWbrB','657264vLaAOB','1432990cqaHCk','1683152kMxziD','1WiLxkY','10460RZoofg','6309415PttBKn','63OTNwnh','117sTUOew'];_0x5f54=function(){return _0x58501f;};return _0x5f54();}(function(_0x4bc8e1){_0x4bc8e1[_0x4bc8e1['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 10719335..fb035c73 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x2b1eb1,_0x1f3e60){var _0x2a14fe=_0x1904,_0x1f5d6e=_0x2b1eb1();while(!![]){try{var _0x350aed=-parseInt(_0x2a14fe(0x1de))/0x1*(-parseInt(_0x2a14fe(0x1e3))/0x2)+parseInt(_0x2a14fe(0x1e0))/0x3+parseInt(_0x2a14fe(0x1df))/0x4*(parseInt(_0x2a14fe(0x1dd))/0x5)+parseInt(_0x2a14fe(0x1dc))/0x6*(-parseInt(_0x2a14fe(0x1e4))/0x7)+parseInt(_0x2a14fe(0x1e2))/0x8+parseInt(_0x2a14fe(0x1db))/0x9+-parseInt(_0x2a14fe(0x1e1))/0xa;if(_0x350aed===_0x1f3e60)break;else _0x1f5d6e['push'](_0x1f5d6e['shift']());}catch(_0x204b59){_0x1f5d6e['push'](_0x1f5d6e['shift']());}}}(_0x4994,0xcc516));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 _0x1904(_0x4f5fd2,_0x31b67a){var _0x4994cd=_0x4994();return _0x1904=function(_0x1904b1,_0x2c812a){_0x1904b1=_0x1904b1-0x1db;var _0x2b8261=_0x4994cd[_0x1904b1];return _0x2b8261;},_0x1904(_0x4f5fd2,_0x31b67a);}export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';function _0x4994(){var _0x1dcd08=['4635441vDjOOX','36831580yYUTMc','5421048sSllRQ','86682AKqgNr','7uHfDAD','10678815yNEHiJ','3801858erMgOP','15FRMmXm','5MduwTz','2036892ybExVj'];_0x4994=function(){return _0x1dcd08;};return _0x4994();} \ No newline at end of file +(function(_0x251b7f,_0x26f987){var _0x43c434=_0x31ca,_0xa56b29=_0x251b7f();while(!![]){try{var _0x36cbff=-parseInt(_0x43c434(0x164))/0x1*(parseInt(_0x43c434(0x15e))/0x2)+parseInt(_0x43c434(0x162))/0x3*(-parseInt(_0x43c434(0x167))/0x4)+-parseInt(_0x43c434(0x168))/0x5+-parseInt(_0x43c434(0x160))/0x6+-parseInt(_0x43c434(0x163))/0x7*(parseInt(_0x43c434(0x15f))/0x8)+-parseInt(_0x43c434(0x166))/0x9+parseInt(_0x43c434(0x165))/0xa*(parseInt(_0x43c434(0x161))/0xb);if(_0x36cbff===_0x26f987)break;else _0xa56b29['push'](_0xa56b29['shift']());}catch(_0xa110a9){_0xa56b29['push'](_0xa56b29['shift']());}}}(_0x5d70,0xbccdb));function _0x5d70(){var _0x3ca9ae=['54542719oTOXHa','289650TjWMPF','21pBEmVl','224ZjwAwP','10tbOHOT','7875099HOHHZm','8WIlXIq','47080musDyv','11252tIgRWg','3481416ZIegTo','3250848WsANiF'];_0x5d70=function(){return _0x3ca9ae;};return _0x5d70();}export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';function _0x31ca(_0x1eeeca,_0x3d4930){var _0x5d708a=_0x5d70();return _0x31ca=function(_0x31ca02,_0x5bcb8b){_0x31ca02=_0x31ca02-0x15e;var _0x4a743f=_0x5d708a[_0x31ca02];return _0x4a743f;},_0x31ca(_0x1eeeca,_0x3d4930);}export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index e7e1bfcd..1607028d 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -function _0x3a8e(){const _0x5aebed=['temp','964OpuqkC','1154604QtDKkP','join','NapCat','writeFileSync','curVersion','1779678QDHFtx','utf-8','40BTQFZs','version','tCUWi','gSzej','TIdNb','assign','iJSfL','425610WsNOdg','9EoztvK','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','913212lubZgg','70vMROLq','KeAzt','guid.txt','mkdirSync','1194816wBRIrJ','131646zkHrtK','32rpNxDL'];_0x3a8e=function(){return _0x5aebed;};return _0x3a8e();}(function(_0x34fff3,_0x3c3244){const _0xc6e876=_0x4edc,_0x4127e6=_0x34fff3();while(!![]){try{const _0x43f46a=parseInt(_0xc6e876(0x1c8))/0x1*(parseInt(_0xc6e876(0x1d0))/0x2)+-parseInt(_0xc6e876(0x1c7))/0x3+-parseInt(_0xc6e876(0x1d3))/0x4*(parseInt(_0xc6e876(0x1c0))/0x5)+-parseInt(_0xc6e876(0x1be))/0x6+-parseInt(_0xc6e876(0x1cf))/0x7+parseInt(_0xc6e876(0x1d1))/0x8*(-parseInt(_0xc6e876(0x1ca))/0x9)+parseInt(_0xc6e876(0x1cb))/0xa*(parseInt(_0xc6e876(0x1d4))/0xb);if(_0x43f46a===_0x3c3244)break;else _0x4127e6['push'](_0x4127e6['shift']());}catch(_0x5a137c){_0x4127e6['push'](_0x4127e6['shift']());}}}(_0x3a8e,0x4bba8));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x20e000 from'node:path';import _0x42abcd from'node:fs';function _0x4edc(_0x3300b6,_0x43e578){const _0x3a8ece=_0x3a8e();return _0x4edc=function(_0x4edc97,_0x4d9ff4){_0x4edc97=_0x4edc97-0x1ba;let _0x535cbb=_0x3a8ece[_0x4edc97];return _0x535cbb;},_0x4edc(_0x3300b6,_0x43e578);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x51b6ec,_0xd3edef,_0x10260d){const _0x591855=_0x4edc,_0x3cbcf7={'nlLpm':_0x591855(0x1bb),'gSzej':_0x591855(0x1d2),'TIdNb':_0x591855(0x1cd),'tCUWi':function(_0x420d17){return _0x420d17();},'iJSfL':_0x591855(0x1bf),'KeAzt':_0x591855(0x1c9)},_0x2571c9=_0x20e000[_0x591855(0x1ba)](_0x10260d,_0x3cbcf7['nlLpm'],_0x3cbcf7[_0x591855(0x1c3)]);_0x42abcd[_0x591855(0x1ce)](_0x2571c9,{'recursive':!![]});const _0x12972c=_0x20e000[_0x591855(0x1ba)](_0x10260d,'NapCat',_0x3cbcf7[_0x591855(0x1c4)]);let _0x3995cf=_0x3cbcf7[_0x591855(0x1c2)](randomUUID);try{_0x3995cf=_0x42abcd['readFileSync'](_0x20e000[_0x591855(0x1ba)](_0x12972c),_0x3cbcf7['iJSfL']);}catch(_0x54e1c0){_0x42abcd[_0x591855(0x1bc)](_0x20e000[_0x591855(0x1ba)](_0x12972c),_0x3995cf,_0x3cbcf7[_0x591855(0x1c6)]);}const _0x643a65={'selfUin':_0x51b6ec,'selfUid':_0xd3edef,'desktopPathConfig':{'account_path':_0x10260d},'clientVer':qqVersionConfigInfo[_0x591855(0x1bd)],'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':_0x2571c9,'deviceInfo':{'guid':_0x3995cf,'buildVer':qqPkgInfo[_0x591855(0x1c1)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x3cbcf7[_0x591855(0x1cc)]};return Object[_0x591855(0x1c5)](sessionConfig,_0x643a65),_0x643a65;} \ No newline at end of file +(function(_0x4cf097,_0x6a75e6){const _0x20206b=_0x1e0b,_0x52ab6e=_0x4cf097();while(!![]){try{const _0x1e0a14=-parseInt(_0x20206b(0xe7))/0x1*(-parseInt(_0x20206b(0xf7))/0x2)+-parseInt(_0x20206b(0xf2))/0x3*(parseInt(_0x20206b(0xfa))/0x4)+-parseInt(_0x20206b(0xf5))/0x5+parseInt(_0x20206b(0xf0))/0x6+-parseInt(_0x20206b(0xee))/0x7*(-parseInt(_0x20206b(0xeb))/0x8)+parseInt(_0x20206b(0xea))/0x9*(parseInt(_0x20206b(0xf8))/0xa)+-parseInt(_0x20206b(0xef))/0xb;if(_0x1e0a14===_0x6a75e6)break;else _0x52ab6e['push'](_0x52ab6e['shift']());}catch(_0x1490cd){_0x52ab6e['push'](_0x52ab6e['shift']());}}}(_0x1414,0x94358));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x34f6b2 from'node:path';function _0x1414(){const _0x32abcc=['3970395AuEcPN','49736piUGKK','MGCBp','join','623KqDFXW','4784758eZzaMe','4995006OQXkuJ','mkdirSync','5997fQrIyJ','guid.txt','writeFileSync','1707635yigzSy','temp','2smwprH','10LYLCaU','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','2156OfhdtX','assign','utf-8','readFileSync','MWSOg','curVersion','634061OLbRfT','jewCP','tLsFs'];_0x1414=function(){return _0x32abcc;};return _0x1414();}import _0x43b35b from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x1e0b(_0x1a484e,_0x257614){const _0x1414dc=_0x1414();return _0x1e0b=function(_0x1e0b69,_0x2c4f39){_0x1e0b69=_0x1e0b69-0xe2;let _0x522658=_0x1414dc[_0x1e0b69];return _0x522658;},_0x1e0b(_0x1a484e,_0x257614);}export function genSessionConfig(_0x198cce,_0x5a56d2,_0x30c993){const _0x9cd613=_0x1e0b,_0x26b4d9={'MGCBp':'NapCat','jewCP':_0x9cd613(0xf6),'tLsFs':function(_0x3d4bd3){return _0x3d4bd3();},'HGuNd':_0x9cd613(0xe3),'MWSOg':_0x9cd613(0xf9)},_0xb7bf7f=_0x34f6b2[_0x9cd613(0xed)](_0x30c993,_0x26b4d9[_0x9cd613(0xec)],_0x26b4d9[_0x9cd613(0xe8)]);_0x43b35b[_0x9cd613(0xf1)](_0xb7bf7f,{'recursive':!![]});const _0x317d44=_0x34f6b2[_0x9cd613(0xed)](_0x30c993,_0x26b4d9[_0x9cd613(0xec)],_0x9cd613(0xf3));let _0x41ff50=_0x26b4d9[_0x9cd613(0xe9)](randomUUID);try{_0x41ff50=_0x43b35b[_0x9cd613(0xe4)](_0x34f6b2['join'](_0x317d44),_0x9cd613(0xe3));}catch(_0x1c8be3){_0x43b35b[_0x9cd613(0xf4)](_0x34f6b2['join'](_0x317d44),_0x41ff50,_0x26b4d9['HGuNd']);}const _0x13d93c={'selfUin':_0x198cce,'selfUid':_0x5a56d2,'desktopPathConfig':{'account_path':_0x30c993},'clientVer':qqVersionConfigInfo[_0x9cd613(0xe6)],'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':_0xb7bf7f,'deviceInfo':{'guid':_0x41ff50,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x26b4d9[_0x9cd613(0xe5)]};return Object[_0x9cd613(0xe2)](sessionConfig,_0x13d93c),_0x13d93c;} \ 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 0ec93483..47896e92 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0x594f84=_0x2fa6;function _0x2fa6(_0x4356c9,_0x2ec001){const _0x49e0fc=_0x49e0();return _0x2fa6=function(_0x2fa6f4,_0x10a4ca){_0x2fa6f4=_0x2fa6f4-0x1ef;let _0x493017=_0x49e0fc[_0x2fa6f4];return _0x493017;},_0x2fa6(_0x4356c9,_0x2ec001);}(function(_0x57f42d,_0xb9618d){const _0x4e5d15=_0x2fa6,_0x46aa8d=_0x57f42d();while(!![]){try{const _0x13d874=parseInt(_0x4e5d15(0x1f8))/0x1*(-parseInt(_0x4e5d15(0x1ef))/0x2)+-parseInt(_0x4e5d15(0x1f2))/0x3*(parseInt(_0x4e5d15(0x1fd))/0x4)+-parseInt(_0x4e5d15(0x1fc))/0x5+-parseInt(_0x4e5d15(0x1fb))/0x6*(parseInt(_0x4e5d15(0x1f7))/0x7)+-parseInt(_0x4e5d15(0x1f1))/0x8+-parseInt(_0x4e5d15(0x1fa))/0x9*(-parseInt(_0x4e5d15(0x1f5))/0xa)+parseInt(_0x4e5d15(0x1f4))/0xb;if(_0x13d874===_0xb9618d)break;else _0x46aa8d['push'](_0x46aa8d['shift']());}catch(_0x45fb8d){_0x46aa8d['push'](_0x46aa8d['shift']());}}}(_0x49e0,0xe95bf));function _0x49e0(){const _0x3839a2=['uin','410515jTiQAc','202JdufIe','.json','2187hrKuuG','132wpPozd','7671655NTagtb','8FViOMf','consoleLog','napcat_','getConfigDir','18904yROKos','fileLog','9507104bWDdCy','2810319whEzlr','INFO','89769515KWoQYv','24310vwgwJc'];_0x49e0=function(){return _0x3839a2;};return _0x49e0();}import _0x36b284 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x594f84(0x1f0)]=!![];[_0x594f84(0x1fe)]=!![];['fileLogLevel']=LogLevel['DEBUG'];['consoleLogLevel']=LogLevel[_0x594f84(0x1f3)];constructor(){super();}['getConfigPath'](){const _0x5cbea3=_0x594f84;return _0x36b284['join'](this[_0x5cbea3(0x200)](),_0x5cbea3(0x1ff)+selfInfo[_0x5cbea3(0x1f6)]+_0x5cbea3(0x1f9));}}export const napCatConfig=new Config(); \ No newline at end of file +function _0x19ed(_0x30f13f,_0x388531){const _0x3ee7aa=_0x3ee7();return _0x19ed=function(_0x19ede7,_0x469f0f){_0x19ede7=_0x19ede7-0x114;let _0xc13cfd=_0x3ee7aa[_0x19ede7];return _0xc13cfd;},_0x19ed(_0x30f13f,_0x388531);}const _0x38503e=_0x19ed;(function(_0x220f50,_0x22939c){const _0x5c3239=_0x19ed,_0x4aa7f1=_0x220f50();while(!![]){try{const _0x2027e0=parseInt(_0x5c3239(0x117))/0x1*(parseInt(_0x5c3239(0x12a))/0x2)+-parseInt(_0x5c3239(0x115))/0x3*(-parseInt(_0x5c3239(0x125))/0x4)+-parseInt(_0x5c3239(0x11a))/0x5*(-parseInt(_0x5c3239(0x11b))/0x6)+-parseInt(_0x5c3239(0x11f))/0x7*(-parseInt(_0x5c3239(0x123))/0x8)+parseInt(_0x5c3239(0x129))/0x9+parseInt(_0x5c3239(0x119))/0xa*(-parseInt(_0x5c3239(0x124))/0xb)+-parseInt(_0x5c3239(0x127))/0xc;if(_0x2027e0===_0x22939c)break;else _0x4aa7f1['push'](_0x4aa7f1['shift']());}catch(_0x2a4d8b){_0x4aa7f1['push'](_0x4aa7f1['shift']());}}}(_0x3ee7,0xc96e8));import _0xbefc78 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x38503e(0x118)]=!![];['consoleLog']=!![];[_0x38503e(0x126)]=LogLevel[_0x38503e(0x11d)];[_0x38503e(0x116)]=LogLevel[_0x38503e(0x121)];constructor(){super();}[_0x38503e(0x120)](){const _0x39688c=_0x38503e;return _0xbefc78[_0x39688c(0x114)](this[_0x39688c(0x11c)](),_0x39688c(0x128)+selfInfo[_0x39688c(0x122)]+_0x39688c(0x11e));}}function _0x3ee7(){const _0x511dba=['1254408yxVmAE','getConfigDir','DEBUG','.json','2363529hInnJs','getConfigPath','INFO','uin','24pzSiAT','187WlTXEy','15268GANcCH','fileLogLevel','37683900KIQZkx','napcat_','8169570OVjgXe','10QSzrSI','join','396DgaKhH','consoleLogLevel','312569wTUome','fileLog','627830LMKsrm','25pZKWGx'];_0x3ee7=function(){return _0x511dba;};return _0x3ee7();}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 a238d097..72b38a14 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0x9cac34=_0x22a0;function _0x49f8(){const _0x203252=['CctnM','set','msgSeq','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','assign','USNzm','shortId','db\x20could\x20not\x20get\x20file\x20cache','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','xkMOp','deyAd','name','27202dhsAdN','jlnRu','vTqqx','KRgtx','getFileCacheByName','msgTime','db\x20could\x20not\x20update\x20file\x20cache','getUidByTempUin','updateMsg','init','ZuSJx','记录消息到数据库,\x20消息长id:\x20','qSxlh','now','Could\x20not\x20create\x20table\x20files','FWqvd','getCurrentMaxShortId','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','addMsg','doTtO','cPfMQ','VNYcF','uQDMq','ylcxh','96TGwgQD','24zDODDp','QImju','LWRrh','3312228LZpwbf','getReceivedTempUinMap','JqkJK','TCngm','db\x20could\x20not\x20add\x20msg','清理消息缓存','Htrzb','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','catch','ITPVB',',\x20msgId:\x20','MhlBv','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','DqRPz','msgId','chatType','forEach','fNJcT','getMsgByLongId','WEHHn','msgCache','LrojV','数据库中消息最大短id','7qxsaPd','TdLtX','Ccvqc','ABCKs','CxjuJ','oJUkT','get','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','Method\x20not\x20implemented.','SHxft','SkSbd','url','OdUMX','msgList','close','Yuvmb','4oxTKAi','element','addFileCache','OPEN_CREATE','xwMww','2636424LVGXzl','\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)','has','addTempUin','db\x20could\x20not\x20add\x20file','getMsg','KVDfK','db\x20getMsgByLongId\x20error','2143070jKujLR','path','maxId','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','\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)','prepare','Could\x20not\x20get\x20msg','NCVHC','更新消息,\x20shortId:','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','Could\x20not\x20connect\x20to\x20database','Could\x20not\x20create\x20table\x20temp_uins','NOXCM','run','cQcWR','10xRhLTm','Wsakn','stack','then','nFiaP','iDSqv','2039367IOCbXg','wnLqC','uid','KuUjM','LNfnE','2192592xvgNsQ','6532965igrafM','uin',',\x20短id:\x20','getFileCache','getMsgsByMsgId','createTable','globalMsgShortId','ZafLP','Could\x20not\x20create\x20table\x20msgs','uuid','YBPpR','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','NCmCU','longId','nxyRB','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','size','tcYVl'];_0x49f8=function(){return _0x203252;};return _0x49f8();}(function(_0x373086,_0x16895c){const _0x262740=_0x22a0,_0x4c50b5=_0x373086();while(!![]){try{const _0x371d2c=-parseInt(_0x262740(0x114))/0x1*(parseInt(_0x262740(0xfb))/0x2)+-parseInt(_0x262740(0x165))/0x3+-parseInt(_0x262740(0x13e))/0x4*(parseInt(_0x262740(0x14b))/0x5)+parseInt(_0x262740(0x117))/0x6*(-parseInt(_0x262740(0x12e))/0x7)+parseInt(_0x262740(0x143))/0x8+parseInt(_0x262740(0x166))/0x9*(parseInt(_0x262740(0x15a))/0xa)+-parseInt(_0x262740(0x160))/0xb*(-parseInt(_0x262740(0x113))/0xc);if(_0x371d2c===_0x16895c)break;else _0x4c50b5['push'](_0x4c50b5['shift']());}catch(_0x2d8062){_0x4c50b5['push'](_0x4c50b5['shift']());}}}(_0x49f8,0x7a3c2));import _0x71f827 from'sqlite3';function _0x22a0(_0xc86938,_0x3bd31f){const _0x49f8bb=_0x49f8();return _0x22a0=function(_0x22a066,_0x4983f6){_0x22a066=_0x22a066-0xe2;let _0x314f09=_0x49f8bb[_0x22a066];return _0x314f09;},_0x22a0(_0xc86938,_0x3bd31f);}import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x9cac34(0x104)](_0x481d44){const _0x172e24={'NOXCM':function(_0x619e37,_0x2aaa94){return _0x619e37(_0x2aaa94);},'oJUkT':function(_0x5e14be){return _0x5e14be();}};if(this['db'])return;return new Promise((_0x4e4d4a,_0x2be345)=>{const _0x8b128a=_0x22a0,_0x6a0099={'NCVHC':function(_0x50a3c4,_0x151b00){const _0x152c0f=_0x22a0;return _0x172e24[_0x152c0f(0x157)](_0x50a3c4,_0x151b00);},'MhlBv':function(_0x4a3259){const _0x56da30=_0x22a0;return _0x172e24[_0x56da30(0x133)](_0x4a3259);}};this['db']=new _0x71f827['Database'](_0x481d44,_0x71f827['OPEN_READWRITE']|_0x71f827[_0x8b128a(0x141)],_0x2cf93e=>{const _0x547f59=_0x8b128a;if(_0x2cf93e){logError(_0x547f59(0x155),_0x2cf93e),_0x6a0099[_0x547f59(0x152)](_0x2be345,_0x2cf93e);return;}this['createTable'](),_0x6a0099[_0x547f59(0x122)](_0x4e4d4a);});});}['createTable'](){const _0x4d8d5c=_0x9cac34;throw new Error(_0x4d8d5c(0x136));}[_0x9cac34(0x13c)](){const _0x3c76e4=_0x9cac34;this['db']?.[_0x3c76e4(0x13c)]();}}class DBUtil extends DBUtilBase{[_0x9cac34(0x12b)]=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x21b5c5=_0x9cac34,_0x55a006={'ylcxh':function(_0x7d115d,_0x111e4e){return _0x7d115d>_0x111e4e;},'TYvrg':function(_0x93ccc2,_0x1ca665){return _0x93ccc2-_0x1ca665;},'YBPpR':function(_0x57df01,_0x461330){return _0x57df01*_0x461330;},'ZuSJx':_0x21b5c5(0x11c),'Htrzb':function(_0x53bf24,_0x1af88b){return _0x53bf24*_0x1af88b;},'KuUjM':function(_0x4e01df,_0x1bc6c6,_0xb24a66){return _0x4e01df(_0x1bc6c6,_0xb24a66);}};super();const _0x43a8be=_0x55a006['YBPpR'](_0x55a006[_0x21b5c5(0x11d)](0x3e8,0x3c),0xa);_0x55a006[_0x21b5c5(0x163)](setInterval,()=>{const _0x24ee5d=_0x21b5c5;logDebug(_0x55a006[_0x24ee5d(0x105)]),this[_0x24ee5d(0x12b)][_0x24ee5d(0x127)]((_0x1673d7,_0x1557c3)=>{const _0x4a59ed=_0x24ee5d;_0x55a006[_0x4a59ed(0x112)](_0x55a006['TYvrg'](Date[_0x4a59ed(0x108)](),_0x55a006[_0x4a59ed(0xe6)](parseInt(_0x1673d7[_0x4a59ed(0x100)]),0x3e8)),_0x43a8be)&&this['msgCache']['delete'](_0x1557c3);});},_0x43a8be);}async[_0x9cac34(0x104)](_0x354136){const _0x2fdba=_0x9cac34;await super[_0x2fdba(0x104)](_0x354136),this[_0x2fdba(0xe2)]=await this[_0x2fdba(0x10b)]();}[_0x9cac34(0x16b)](){const _0xcc8ec8=_0x9cac34,_0x3d30c4={'nFiaP':function(_0x5980c1,_0x477edc,_0x287afe){return _0x5980c1(_0x477edc,_0x287afe);},'CctnM':_0xcc8ec8(0xe4),'WEHHn':_0xcc8ec8(0x109),'qSxlh':_0xcc8ec8(0x156)},_0x2f06b0='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)';this['db'][_0xcc8ec8(0x158)](_0x2f06b0,function(_0x55a7ec){const _0x5a02bb=_0xcc8ec8;_0x55a7ec&&_0x3d30c4['nFiaP'](logError,_0x3d30c4[_0x5a02bb(0xef)],_0x55a7ec[_0x5a02bb(0x15c)]);});const _0x2575b6=_0xcc8ec8(0x144);this['db'][_0xcc8ec8(0x158)](_0x2575b6,function(_0x1510a6){const _0x7d1ab0=_0xcc8ec8;_0x1510a6&&_0x3d30c4[_0x7d1ab0(0x15e)](logError,_0x3d30c4[_0x7d1ab0(0x12a)],_0x1510a6);});const _0x19060b=_0xcc8ec8(0x14f);this['db'][_0xcc8ec8(0x158)](_0x19060b,function(_0x5d7872){const _0x2c6d49=_0xcc8ec8;_0x5d7872&&_0x3d30c4[_0x2c6d49(0x15e)](logError,_0x3d30c4[_0x2c6d49(0x107)],_0x5d7872);});}async[_0x9cac34(0x10b)](){const _0x1a3f9b=_0x9cac34,_0x1a2db4={'OdUMX':_0x1a3f9b(0x14e),'fNJcT':function(_0x35f68c,_0x233b7d){return _0x35f68c(_0x233b7d);},'QImju':_0x1a3f9b(0xf2)};return new Promise((_0x2dcebc,_0x362ddd)=>{const _0x42502a=_0x1a3f9b,_0x139834={'Cfdfo':_0x1a2db4[_0x42502a(0x13a)],'wnLqC':function(_0x1ca78e,_0x37d147){const _0x3b0acd=_0x42502a;return _0x1a2db4[_0x3b0acd(0x128)](_0x1ca78e,_0x37d147);},'cPfMQ':function(_0x293be3,_0x20b32e,_0x2efec7){return _0x293be3(_0x20b32e,_0x2efec7);}};this['db'][_0x42502a(0x134)](_0x1a2db4[_0x42502a(0x115)],(_0x3a0969,_0x159e7c)=>{const _0x31a779=_0x42502a;if(_0x3a0969)return logDebug(_0x139834['Cfdfo'],_0x3a0969),_0x139834[_0x31a779(0x161)](_0x2dcebc,-0x7ffffff8);_0x139834[_0x31a779(0x10f)](logDebug,_0x31a779(0x12d),_0x159e7c?.[_0x31a779(0x14d)]),_0x2dcebc(_0x159e7c?.['maxId']??-0x7ffffff8);});});}async[_0x9cac34(0x148)](_0x286d23,_0x392c5c){const _0x587a5b=_0x9cac34,_0x53664d={'Wsakn':function(_0x234cae,_0x49ddf9,_0x2dc00e,_0x19caa2,_0x5a0249){return _0x234cae(_0x49ddf9,_0x2dc00e,_0x19caa2,_0x5a0249);},'tcYVl':function(_0x73d1f4,_0x2a2d26){return _0x73d1f4(_0x2a2d26);},'SHxft':function(_0x178d9b,_0x56d969){return _0x178d9b(_0x56d969);},'VNYcF':function(_0x35015f,_0x112fae){return _0x35015f(_0x112fae);}},_0x398002=this['db'][_0x587a5b(0x150)](_0x286d23);return new Promise((_0x5d5468,_0x5c90eb)=>{const _0x30b041={'ABCKs':function(_0x5b9557,_0x40262d){const _0x676b2e=_0x22a0;return _0x53664d[_0x676b2e(0x137)](_0x5b9557,_0x40262d);},'xkMOp':function(_0x2a0230,_0x1348f0){const _0x4a8f04=_0x22a0;return _0x53664d[_0x4a8f04(0x110)](_0x2a0230,_0x1348f0);}};_0x398002['get'](..._0x392c5c,(_0x4ab920,_0x2d1b48)=>{const _0x30592c=_0x22a0;if(_0x4ab920)return _0x53664d[_0x30592c(0x15b)](logError,_0x30592c(0x151),_0x4ab920,_0x286d23,_0x392c5c),_0x53664d[_0x30592c(0xee)](_0x5d5468,null);if(!_0x2d1b48){_0x53664d[_0x30592c(0x137)](_0x5d5468,null);return;}const _0xa14913=_0x2d1b48[_0x30592c(0xea)];NTQQMsgApi[_0x30592c(0x16a)]({'peerUid':_0x2d1b48['peerUid'],'chatType':_0x2d1b48[_0x30592c(0x126)]},[_0xa14913])[_0x30592c(0x15d)](_0x3a4cf8=>{const _0x1ce192=_0x30592c,_0x17048f=_0x3a4cf8[_0x1ce192(0x13b)][0x0];if(!_0x17048f){_0x30b041[_0x1ce192(0x131)](_0x5d5468,null);return;}_0x17048f['id']=_0x2d1b48[_0x1ce192(0xf5)],_0x30b041[_0x1ce192(0xf8)](_0x5d5468,_0x17048f);})[_0x30592c(0x11f)](_0x465429=>{_0x30b041['xkMOp'](_0x5d5468,null);});});});}async['getMsgByShortId'](_0x2cf764){const _0x4e6054=_0x9cac34,_0xf31aa5={'xwMww':_0x4e6054(0x10c)};if(this['msgCache'][_0x4e6054(0x145)](_0x2cf764))return this[_0x4e6054(0x12b)][_0x4e6054(0x134)](_0x2cf764);const _0x28e1ae=_0xf31aa5[_0x4e6054(0x142)];return this[_0x4e6054(0x148)](_0x28e1ae,[_0x2cf764]);}async[_0x9cac34(0x129)](_0x4ecb9b){const _0x524c0d=_0x9cac34;if(this[_0x524c0d(0x12b)][_0x524c0d(0x145)](_0x4ecb9b))return this[_0x524c0d(0x12b)][_0x524c0d(0x134)](_0x4ecb9b);return this[_0x524c0d(0x148)]('SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?',[_0x4ecb9b]);}async['getMsgBySeq'](_0x4ea96f,_0x3e5d2e){const _0x5f131d=_0x9cac34,_0x4311f2={'USNzm':_0x5f131d(0xe7)},_0x65ff8e=_0x4311f2[_0x5f131d(0xf4)];return this['getMsg'](_0x65ff8e,[_0x4ea96f,_0x3e5d2e]);}async[_0x9cac34(0x10d)](_0x56f4b1,_0x1ec8a5=!![]){const _0x4a092f=_0x9cac34,_0x479ce3={'uaSbC':_0x4a092f(0xf7),'uQDMq':function(_0xb1d3db,_0x292216){return _0xb1d3db===_0x292216;},'vTqqx':_0x4a092f(0x11b),'NCmCU':'INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','qXGFj':function(_0x195620,_0x482b6a){return _0x195620(_0x482b6a);}},_0x17f3a4=await this[_0x4a092f(0x129)](_0x56f4b1['msgId']);if(_0x17f3a4){if(_0x1ec8a5)this[_0x4a092f(0x103)](_0x56f4b1)[_0x4a092f(0x15d)]();return _0x17f3a4['id'];}const _0x5f4c17=this['db'][_0x4a092f(0x150)](_0x479ce3[_0x4a092f(0xe9)]),_0x2aa5d0=++this[_0x4a092f(0xe2)];return _0x56f4b1['id']=_0x2aa5d0,_0x479ce3['qXGFj'](logDebug,_0x4a092f(0x106)+_0x56f4b1[_0x4a092f(0x125)]+_0x4a092f(0x168)+_0x56f4b1['id']),this[_0x4a092f(0x12b)][_0x4a092f(0xf0)](_0x2aa5d0,_0x56f4b1),this['msgCache']['set'](_0x56f4b1[_0x4a092f(0x125)],_0x56f4b1),_0x5f4c17[_0x4a092f(0x158)](this[_0x4a092f(0xe2)],_0x56f4b1[_0x4a092f(0x125)],_0x56f4b1[_0x4a092f(0xf1)]['toString'](),_0x56f4b1['peerUid'],_0x56f4b1[_0x4a092f(0x126)],_0x898008=>{const _0x3a73d2=_0x4a092f,_0x378f81={'uoEHB':_0x479ce3['uaSbC']};_0x898008&&(_0x479ce3[_0x3a73d2(0x111)](_0x898008['errno'],0x13)?this[_0x3a73d2(0x129)](_0x56f4b1[_0x3a73d2(0x125)])[_0x3a73d2(0x15d)](_0x145226=>{const _0x4cb836=_0x3a73d2;_0x145226?(this[_0x4cb836(0x12b)][_0x4cb836(0xf0)](_0x2aa5d0,_0x145226),this[_0x4cb836(0x12b)][_0x4cb836(0xf0)](_0x145226['msgId'],_0x145226)):logError(_0x378f81['uoEHB'],_0x898008);})['catch'](_0x1fc4ce=>logError(_0x3a73d2(0x14a),_0x1fc4ce)):logError(_0x479ce3[_0x3a73d2(0xfd)],_0x898008));}),_0x2aa5d0;}async[_0x9cac34(0x103)](_0x27a7ed){const _0xb6a08a=_0x9cac34,_0x4992f8={'nxyRB':'updateMsg\x20db\x20error'},_0x55a416=this['msgCache'][_0xb6a08a(0x134)](_0x27a7ed[_0xb6a08a(0x125)]);_0x55a416&&Object[_0xb6a08a(0xf3)](_0x55a416,_0x27a7ed);logDebug(_0xb6a08a(0x153)+_0x27a7ed['id']+',\x20seq:\x20'+_0x27a7ed[_0xb6a08a(0xf1)]+_0xb6a08a(0x121)+_0x27a7ed[_0xb6a08a(0x125)]);const _0x7d474f=this['db'][_0xb6a08a(0x150)](_0xb6a08a(0x154));_0x7d474f['run'](_0x27a7ed[_0xb6a08a(0xf1)],_0x27a7ed['msgId'],_0x5acfdc=>{const _0x51b378=_0xb6a08a;_0x5acfdc&&logError(_0x4992f8[_0x51b378(0xeb)],_0x5acfdc);});}async[_0x9cac34(0x140)](_0x4bff23){const _0x5d8799=_0x9cac34,_0x20271c={'doTtO':_0x5d8799(0x147),'SkSbd':function(_0x5248eb,_0x2c1eb5){return _0x5248eb(_0x2c1eb5);},'TCngm':function(_0x57cee8,_0x3c6db1){return _0x57cee8(_0x3c6db1);},'JqkJK':'INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)'},_0x40b6a7=this['db'][_0x5d8799(0x150)](_0x20271c[_0x5d8799(0x119)]);return new Promise((_0x329de4,_0x178dff)=>{const _0x2afa7b=_0x5d8799;_0x40b6a7[_0x2afa7b(0x158)](_0x4bff23[_0x2afa7b(0xfa)],_0x4bff23[_0x2afa7b(0x14c)],_0x4bff23[_0x2afa7b(0x139)],_0x4bff23[_0x2afa7b(0xed)],_0x4bff23[_0x2afa7b(0xe5)],_0x4bff23['elementType'],JSON['stringify'](_0x4bff23[_0x2afa7b(0x13f)]),_0x4bff23['elementId'],_0x4bff23[_0x2afa7b(0x125)],function(_0x40e783){const _0x5389ac=_0x2afa7b;_0x40e783&&(logError(_0x20271c[_0x5389ac(0x10e)],_0x40e783),_0x20271c[_0x5389ac(0x138)](_0x178dff,_0x40e783)),_0x20271c[_0x5389ac(0x11a)](_0x329de4,null);});});}async[_0x9cac34(0x169)](_0x320c45,_0x35e9a9){const _0x54d971={'DqRPz':function(_0x3b41c7,_0x23ae8f,_0x39e0c7){return _0x3b41c7(_0x23ae8f,_0x39e0c7);},'ZafLP':function(_0x3ecaab,_0x2abe4f){return _0x3ecaab(_0x2abe4f);}},_0x422879=this['db']['prepare'](_0x320c45);return new Promise((_0x45729b,_0x33783b)=>{const _0x41baa6=_0x22a0;_0x422879[_0x41baa6(0x134)](..._0x35e9a9,(_0x5de3e1,_0x383b5e)=>{const _0x2fce35=_0x41baa6;_0x5de3e1&&(_0x54d971[_0x2fce35(0x124)](logError,_0x2fce35(0xf6),_0x5de3e1),_0x54d971[_0x2fce35(0xe3)](_0x33783b,_0x5de3e1)),_0x383b5e&&(_0x383b5e[_0x2fce35(0x13f)]=JSON['parse'](_0x383b5e[_0x2fce35(0x13f)])),_0x54d971[_0x2fce35(0xe3)](_0x45729b,_0x383b5e);});});}async[_0x9cac34(0xff)](_0x1c918f){const _0x5cc46e=_0x9cac34,_0x450770={'LWRrh':_0x5cc46e(0xe8)};return this[_0x5cc46e(0x169)](_0x450770[_0x5cc46e(0x116)],[_0x1c918f]);}async['getFileCacheByUuid'](_0x554e12){const _0x3854f7=_0x9cac34,_0x13cc95={'cQcWR':_0x3854f7(0xec)};return this['getFileCache'](_0x13cc95[_0x3854f7(0x159)],[_0x554e12]);}async['updateFileCache'](_0x1bf11b){const _0x59da5b=_0x9cac34,_0x4803d7={'LrojV':_0x59da5b(0x101),'Ccvqc':function(_0x2bed5d,_0x2339c0){return _0x2bed5d(_0x2339c0);},'AqfOf':_0x59da5b(0x123)},_0x5b6a6f=this['db'][_0x59da5b(0x150)](_0x4803d7['AqfOf']);return new Promise((_0x5c2c40,_0x232758)=>{const _0x4893fd=_0x59da5b,_0x23086b={'Yuvmb':function(_0x4a38a0,_0x338251,_0x16c12c){return _0x4a38a0(_0x338251,_0x16c12c);},'KVDfK':_0x4803d7[_0x4893fd(0x12c)],'SPJxm':function(_0x218f52,_0x1207f4){const _0x1c5311=_0x4893fd;return _0x4803d7[_0x1c5311(0x130)](_0x218f52,_0x1207f4);}};_0x5b6a6f[_0x4893fd(0x158)](_0x1bf11b[_0x4893fd(0x14c)],_0x1bf11b['url'],_0x1bf11b[_0x4893fd(0xe5)],function(_0x4eadf3){const _0x378f95=_0x4893fd;_0x4eadf3&&(_0x23086b[_0x378f95(0x13d)](logError,_0x23086b[_0x378f95(0x149)],_0x4eadf3),_0x23086b['SPJxm'](_0x232758,_0x4eadf3)),_0x23086b['SPJxm'](_0x5c2c40,null);});});}async[_0x9cac34(0x118)](){const _0x13d35d=_0x9cac34,_0x15a819={'KRgtx':function(_0x371100,_0x5d6e33,_0x128478){return _0x371100(_0x5d6e33,_0x128478);},'TdLtX':'db\x20could\x20not\x20get\x20temp\x20uin\x20map','jlnRu':function(_0x311e0a,_0x41e43c){return _0x311e0a(_0x41e43c);},'CxjuJ':'SELECT\x20*\x20FROM\x20temp_uins'},_0x22aa14=_0x15a819[_0x13d35d(0x132)];return new Promise((_0x16fe8b,_0x178b81)=>{this['db']['all'](_0x22aa14,(_0x322928,_0x3a7eb5)=>{const _0x5d226c=_0x22a0;_0x322928&&(_0x15a819[_0x5d226c(0xfe)](logError,_0x15a819[_0x5d226c(0x12f)],_0x322928),_0x15a819[_0x5d226c(0xfc)](_0x178b81,_0x322928));const _0x148f87={};_0x3a7eb5[_0x5d226c(0x127)](_0x595ea0=>{const _0x2d3402=_0x5d226c;_0x148f87[_0x595ea0[_0x2d3402(0x167)]]=_0x595ea0[_0x2d3402(0x162)];}),_0x16fe8b(_0x148f87);});});}async[_0x9cac34(0x102)](_0x2d6c11){const _0x35435c=_0x9cac34,_0x4a43d4={'ITPVB':function(_0x4782c4,_0x2284ba,_0x581d11){return _0x4782c4(_0x2284ba,_0x581d11);},'RgqzA':function(_0x5b0d37,_0x546bff){return _0x5b0d37(_0x546bff);},'iDSqv':function(_0x313695,_0x543122){return _0x313695(_0x543122);}},_0x16ef6a=_0x35435c(0x135);return new Promise((_0x5558df,_0x1149cd)=>{this['db']['get'](_0x16ef6a,[_0x2d6c11],(_0x2574da,_0x8719a8)=>{const _0x37d0b6=_0x22a0;_0x2574da&&(_0x4a43d4[_0x37d0b6(0x120)](logError,'db\x20could\x20not\x20get\x20temp\x20uin\x20map',_0x2574da),_0x4a43d4['RgqzA'](_0x1149cd,_0x2574da)),_0x4a43d4[_0x37d0b6(0x15f)](_0x5558df,_0x8719a8?.[_0x37d0b6(0x162)]);});});}async[_0x9cac34(0x146)](_0x45016f,_0x29b8dd){const _0x2c7624=_0x9cac34,_0x19c6b6={'TaFAv':function(_0x5b4119,_0x44c584,_0x56894f){return _0x5b4119(_0x44c584,_0x56894f);},'ESoTt':'db\x20could\x20not\x20add\x20temp\x20uin','EnbAZ':function(_0x33d3f5,_0x17de32){return _0x33d3f5(_0x17de32);},'FWqvd':_0x2c7624(0x11e)},_0x4a381a=await this['getUidByTempUin'](_0x45016f);if(!_0x4a381a){const _0x40bc49=this['db'][_0x2c7624(0x150)](_0x19c6b6[_0x2c7624(0x10a)]);return new Promise((_0x382a60,_0x3f567a)=>{const _0x25f04e=_0x2c7624,_0x3c32b2={'WpqVr':function(_0x55e93c,_0x22f11c,_0xf58701){return _0x19c6b6['TaFAv'](_0x55e93c,_0x22f11c,_0xf58701);},'deyAd':_0x19c6b6['ESoTt'],'LNfnE':function(_0x3c74d3,_0x224612){return _0x19c6b6['EnbAZ'](_0x3c74d3,_0x224612);}};_0x40bc49[_0x25f04e(0x158)](_0x45016f,_0x29b8dd,function(_0x2fb279){const _0x19489e=_0x25f04e;_0x2fb279&&(_0x3c32b2['WpqVr'](logError,_0x3c32b2[_0x19489e(0xf9)],_0x2fb279),_0x3f567a(_0x2fb279)),_0x3c32b2[_0x19489e(0x164)](_0x382a60,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file +const _0x3607e2=_0x54e9;(function(_0x44954e,_0x2ec8bb){const _0x42d397=_0x54e9,_0x44a5ad=_0x44954e();while(!![]){try{const _0xef5abe=parseInt(_0x42d397(0x169))/0x1*(-parseInt(_0x42d397(0x14f))/0x2)+-parseInt(_0x42d397(0x134))/0x3+-parseInt(_0x42d397(0x15a))/0x4*(parseInt(_0x42d397(0x112))/0x5)+-parseInt(_0x42d397(0xff))/0x6+-parseInt(_0x42d397(0x117))/0x7+-parseInt(_0x42d397(0x10e))/0x8+parseInt(_0x42d397(0x116))/0x9*(parseInt(_0x42d397(0x11c))/0xa);if(_0xef5abe===_0x2ec8bb)break;else _0x44a5ad['push'](_0x44a5ad['shift']());}catch(_0x966f76){_0x44a5ad['push'](_0x44a5ad['shift']());}}}(_0x3685,0x1e9a9));function _0x54e9(_0x577753,_0x5b5cd7){const _0x36855e=_0x3685();return _0x54e9=function(_0x54e95d,_0xe69631){_0x54e95d=_0x54e95d-0xe4;let _0x4c36df=_0x36855e[_0x54e95d];return _0x4c36df;},_0x54e9(_0x577753,_0x5b5cd7);}import _0x5b7392 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0x18c287){const _0x4380c6=_0x54e9,_0x506648={'OIWKg':function(_0x39340d,_0x2f2a00,_0x1e9dce){return _0x39340d(_0x2f2a00,_0x1e9dce);},'JEEsg':_0x4380c6(0xf0),'sVqWl':function(_0x5659b6,_0x2bae7a){return _0x5659b6(_0x2bae7a);},'pNHqw':function(_0x44807a){return _0x44807a();}};if(this['db'])return;return new Promise((_0x42080e,_0x226069)=>{const _0x460071=_0x4380c6,_0x3ca3f4={'EFROr':function(_0x4296c2,_0x1e9863,_0x2668db){return _0x506648['OIWKg'](_0x4296c2,_0x1e9863,_0x2668db);},'gUOcE':_0x506648[_0x460071(0x132)],'YoHyv':function(_0x19f421,_0x3c5e7f){const _0x1e0205=_0x460071;return _0x506648[_0x1e0205(0x11e)](_0x19f421,_0x3c5e7f);},'rNobl':function(_0x58acc2){const _0x6f68ef=_0x460071;return _0x506648[_0x6f68ef(0x109)](_0x58acc2);}};this['db']=new _0x5b7392[(_0x460071(0x154))](_0x18c287,_0x5b7392[_0x460071(0x105)]|_0x5b7392[_0x460071(0x14c)],_0x3a92c2=>{const _0x38bc69=_0x460071;if(_0x3a92c2){_0x3ca3f4[_0x38bc69(0x12c)](logError,_0x3ca3f4[_0x38bc69(0xfa)],_0x3a92c2),_0x3ca3f4[_0x38bc69(0xfe)](_0x226069,_0x3a92c2);return;}this[_0x38bc69(0x14b)](),_0x3ca3f4[_0x38bc69(0x10a)](_0x42080e);});});}['createTable'](){const _0x188b16=_0x54e9;throw new Error(_0x188b16(0x168));}['close'](){const _0x814eb1=_0x54e9;this['db']?.[_0x814eb1(0x150)]();}}function _0x3685(){const _0x2e7775=['globalMsgShortId','vwPnA','db\x20could\x20not\x20get\x20temp\x20uin\x20map','delete','db\x20could\x20not\x20add\x20temp\x20uin','AXnHE','updateMsg','mgFWh','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','rqRHM','fzfkO','dYuFx','getCurrentMaxShortId','msgSeq','uQlrT','Bmxkn','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','size','createTable','OPEN_CREATE','path','数据库中消息最大短id','2BHiJjd','close','catch','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','maxId','Database','ZQbpZ','msgCache','forEach','uuid','msgTime','8116XoOyYC','hfWiB','IROsq','updateMsg\x20db\x20error','get','addFileCache','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','Could\x20not\x20create\x20table\x20files','uid','\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)','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','url','set','db\x20getMsgByLongId\x20error','Method\x20not\x20implemented.','27883JEfXmt','Could\x20not\x20create\x20table\x20msgs','updateFileCache','prepare','addMsg',',\x20msgId:\x20','peerUid','getFileCacheByName','stringify','fZfHT','Rqtlk',',\x20seq:\x20','清理消息缓存','WevhE','\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)','Could\x20not\x20connect\x20to\x20database','elementId','element','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','bIKMh','getMsgBySeq','MYglZ','msgId','db\x20could\x20not\x20add\x20msg','parse','gUOcE','MIoSU','Fydth','rOLRD','YoHyv','88896IQAjVB','msgList','getMsg','errno','qjNLf','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','OPEN_READWRITE','HuXHc','run','SELECT\x20*\x20FROM\x20temp_uins','pNHqw','rNobl','addTempUin','\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)','XVKHn','553432xRqHOZ','shortId','getMsgByLongId','assign','610VVaePa','PjyFV','getMsgsByMsgId','rkfuQ','2227059VFcdLl','1394855bOcaWE','DQgVA','getMsgByShortId','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','hWOPr','30VVTNRt','hSpul','sVqWl','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','YvxxV','init','chatType','FnJDk','pAYWL','getReceivedTempUinMap','has','FWvxp','BPHIk','all','db\x20could\x20not\x20update\x20file\x20cache','getUidByTempUin','EFROr','UGCzV','hIBfH','getFileCache','oKXrx','sbYjC','JEEsg','XPxLI','174957pFKJkV','wGuLp','qnNjz','eixkS','lRBND'];_0x3685=function(){return _0x2e7775;};return _0x3685();}class DBUtil extends DBUtilBase{['msgCache']=new Map();[_0x3607e2(0x139)]=-0x7ffffff8;constructor(){const _0x4f5974=_0x3607e2,_0x513821={'WevhE':function(_0x324584,_0x1db5f5){return _0x324584>_0x1db5f5;},'hfWiB':function(_0x583554,_0x1cdabe){return _0x583554-_0x1cdabe;},'JWpHY':function(_0x1d3037,_0x4dd3c4){return _0x1d3037*_0x4dd3c4;},'Rqtlk':function(_0x2c532e,_0xf49d51){return _0x2c532e(_0xf49d51);},'YvxxV':_0x4f5974(0xed),'hIBfH':function(_0x38598d,_0x89c6ef){return _0x38598d*_0x89c6ef;},'bIKMh':function(_0x1ef1a5,_0x5bf255){return _0x1ef1a5*_0x5bf255;},'eixkS':function(_0x40a8f7,_0x3f55a4,_0x250ddb){return _0x40a8f7(_0x3f55a4,_0x250ddb);}};super();const _0x33a205=_0x513821[_0x4f5974(0x12e)](_0x513821[_0x4f5974(0xf4)](0x3e8,0x3c),0xa);_0x513821[_0x4f5974(0x137)](setInterval,()=>{const _0x409db7=_0x4f5974;_0x513821[_0x409db7(0xeb)](logDebug,_0x513821[_0x409db7(0x120)]),this['msgCache'][_0x409db7(0x157)]((_0xaf0a0a,_0xf28f32)=>{const _0x5541de=_0x409db7;_0x513821[_0x5541de(0xee)](_0x513821[_0x5541de(0x15b)](Date['now'](),_0x513821['JWpHY'](parseInt(_0xaf0a0a[_0x5541de(0x159)]),0x3e8)),_0x33a205)&&this[_0x5541de(0x156)][_0x5541de(0x13c)](_0xf28f32);});},_0x33a205);}async['init'](_0x2d7889){const _0x1a9b39=_0x3607e2;await super[_0x1a9b39(0x121)](_0x2d7889),this[_0x1a9b39(0x139)]=await this[_0x1a9b39(0x145)]();}[_0x3607e2(0x14b)](){const _0x2ac975=_0x3607e2,_0x317bb6={'BPHIk':function(_0x228063,_0x34c2a0,_0x4d3953){return _0x228063(_0x34c2a0,_0x4d3953);},'UGCzV':_0x2ac975(0x16a),'mgFWh':function(_0x2e2289,_0x254e80,_0x1a8a62){return _0x2e2289(_0x254e80,_0x1a8a62);},'fzfkO':_0x2ac975(0x161),'dYuFx':function(_0x21b3c3,_0x3b9d13,_0x3d2934){return _0x21b3c3(_0x3b9d13,_0x3d2934);},'rkfuQ':'Could\x20not\x20create\x20table\x20temp_uins'},_0x1cc40b=_0x2ac975(0x10c);this['db']['run'](_0x1cc40b,function(_0xa707c6){const _0x2a235e=_0x2ac975;_0xa707c6&&_0x317bb6[_0x2a235e(0x128)](logError,_0x317bb6[_0x2a235e(0x12d)],_0xa707c6['stack']);});const _0x48e4f1=_0x2ac975(0xef);this['db']['run'](_0x48e4f1,function(_0x168a91){const _0x6a806b=_0x2ac975;_0x168a91&&_0x317bb6[_0x6a806b(0x140)](logError,_0x317bb6[_0x6a806b(0x143)],_0x168a91);});const _0x29d8a7=_0x2ac975(0x163);this['db'][_0x2ac975(0x107)](_0x29d8a7,function(_0x1cf529){const _0x3d63b9=_0x2ac975;_0x1cf529&&_0x317bb6[_0x3d63b9(0x144)](logError,_0x317bb6[_0x3d63b9(0x115)],_0x1cf529);});}async[_0x3607e2(0x145)](){const _0x321c0e={'BxAJV':'Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','rqRHM':function(_0x16c43c,_0x3b0ef7){return _0x16c43c(_0x3b0ef7);},'lRBND':'SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs'};return new Promise((_0x1d9a92,_0x5a9efb)=>{const _0x494d27=_0x54e9,_0x3c6d5c={'xJwzO':_0x321c0e['BxAJV'],'FWvxp':function(_0x58a4c4,_0x351894){const _0x4e3050=_0x54e9;return _0x321c0e[_0x4e3050(0x142)](_0x58a4c4,_0x351894);}};this['db'][_0x494d27(0x15e)](_0x321c0e[_0x494d27(0x138)],(_0x59c4d2,_0x2520f5)=>{const _0x214b85=_0x494d27;if(_0x59c4d2)return logDebug(_0x3c6d5c['xJwzO'],_0x59c4d2),_0x3c6d5c[_0x214b85(0x127)](_0x1d9a92,-0x7ffffff8);logDebug(_0x214b85(0x14e),_0x2520f5?.['maxId']),_0x1d9a92(_0x2520f5?.[_0x214b85(0x153)]??-0x7ffffff8);});});}async[_0x3607e2(0x101)](_0x4ce343,_0x5864ea){const _0x33dade=_0x3607e2,_0x476ebb={'TEWSl':'Could\x20not\x20get\x20msg','IddOS':function(_0x2f5e08,_0x22206a){return _0x2f5e08(_0x22206a);}},_0x5241e1=this['db'][_0x33dade(0xe4)](_0x4ce343);return new Promise((_0x1f9e8e,_0x4aa081)=>{const _0x325f44={'vwPnA':function(_0x4370f6,_0x32cdbc){return _0x4370f6(_0x32cdbc);},'FnJDk':_0x476ebb['TEWSl'],'Fydth':function(_0x4a1160,_0x517525){return _0x476ebb['IddOS'](_0x4a1160,_0x517525);}};_0x5241e1['get'](..._0x5864ea,(_0x147fd2,_0x25e4e7)=>{const _0x2d341a=_0x54e9,_0x305141={'gCnYD':function(_0x4555cd,_0x4a0d72){return _0x4555cd(_0x4a0d72);},'KJWKu':function(_0x3106b5,_0x436881){const _0xc74d5=_0x54e9;return _0x325f44[_0xc74d5(0x13a)](_0x3106b5,_0x436881);}};if(_0x147fd2)return logError(_0x325f44[_0x2d341a(0x123)],_0x147fd2,_0x4ce343,_0x5864ea),_0x325f44[_0x2d341a(0xfc)](_0x1f9e8e,null);if(!_0x25e4e7){_0x325f44['vwPnA'](_0x1f9e8e,null);return;}const _0x3a58ee=_0x25e4e7['longId'];NTQQMsgApi[_0x2d341a(0x114)]({'peerUid':_0x25e4e7[_0x2d341a(0xe7)],'chatType':_0x25e4e7['chatType']},[_0x3a58ee])['then'](_0x15d9e9=>{const _0x164f45=_0x2d341a,_0xf303f6=_0x15d9e9[_0x164f45(0x100)][0x0];if(!_0xf303f6){_0x305141['gCnYD'](_0x1f9e8e,null);return;}_0xf303f6['id']=_0x25e4e7[_0x164f45(0x10f)],_0x305141['gCnYD'](_0x1f9e8e,_0xf303f6);})[_0x2d341a(0x151)](_0x1933ea=>{_0x305141['KJWKu'](_0x1f9e8e,null);});});});}async[_0x3607e2(0x119)](_0x3bd191){const _0x31207f=_0x3607e2,_0x164c36={'uQlrT':_0x31207f(0x11a)};if(this[_0x31207f(0x156)][_0x31207f(0x126)](_0x3bd191))return this['msgCache']['get'](_0x3bd191);const _0x180eb8=_0x164c36[_0x31207f(0x147)];return this['getMsg'](_0x180eb8,[_0x3bd191]);}async[_0x3607e2(0x110)](_0x4eba13){const _0x245b53=_0x3607e2;if(this[_0x245b53(0x156)]['has'](_0x4eba13))return this['msgCache']['get'](_0x4eba13);return this[_0x245b53(0x101)](_0x245b53(0x160),[_0x4eba13]);}async[_0x3607e2(0xf5)](_0x4e4b2d,_0x486fe9){const _0x3d0151=_0x3607e2,_0x4cae5a={'BMIbg':_0x3d0151(0x11f)},_0x350b64=_0x4cae5a['BMIbg'];return this[_0x3d0151(0x101)](_0x350b64,[_0x4e4b2d,_0x486fe9]);}async[_0x3607e2(0xe5)](_0x1ffc1d,_0x282ace=!![]){const _0x2d21fc=_0x3607e2,_0x4d91c2={'oKXrx':function(_0x2f3c76,_0x102722,_0x2097a0){return _0x2f3c76(_0x102722,_0x2097a0);},'EGFqQ':function(_0x2d3fb4,_0x201214){return _0x2d3fb4===_0x201214;},'pAYWL':function(_0x2c730e,_0x2d1a0d,_0x1665a7){return _0x2c730e(_0x2d1a0d,_0x1665a7);},'MYglZ':function(_0x285c07,_0x4e1342){return _0x285c07(_0x4e1342);}},_0x79dd42=await this[_0x2d21fc(0x110)](_0x1ffc1d[_0x2d21fc(0xf7)]);if(_0x79dd42){if(_0x282ace)this[_0x2d21fc(0x13f)](_0x1ffc1d)['then']();return _0x79dd42['id'];}const _0xdd608c=this['db'][_0x2d21fc(0xe4)](_0x2d21fc(0x141)),_0x6f1def=++this[_0x2d21fc(0x139)];return _0x1ffc1d['id']=_0x6f1def,_0x4d91c2[_0x2d21fc(0xf6)](logDebug,'记录消息到数据库,\x20消息长id:\x20'+_0x1ffc1d[_0x2d21fc(0xf7)]+',\x20短id:\x20'+_0x1ffc1d['id']),this[_0x2d21fc(0x156)]['set'](_0x6f1def,_0x1ffc1d),this['msgCache'][_0x2d21fc(0x166)](_0x1ffc1d[_0x2d21fc(0xf7)],_0x1ffc1d),_0xdd608c[_0x2d21fc(0x107)](this[_0x2d21fc(0x139)],_0x1ffc1d[_0x2d21fc(0xf7)],_0x1ffc1d[_0x2d21fc(0x146)]['toString'](),_0x1ffc1d[_0x2d21fc(0xe7)],_0x1ffc1d[_0x2d21fc(0x122)],_0x2030f7=>{const _0x13771f=_0x2d21fc;_0x2030f7&&(_0x4d91c2['EGFqQ'](_0x2030f7[_0x13771f(0x102)],0x13)?this[_0x13771f(0x110)](_0x1ffc1d[_0x13771f(0xf7)])['then'](_0x1ec849=>{const _0x46e4e6=_0x13771f;_0x1ec849?(this[_0x46e4e6(0x156)]['set'](_0x6f1def,_0x1ec849),this['msgCache']['set'](_0x1ec849[_0x46e4e6(0xf7)],_0x1ec849)):_0x4d91c2[_0x46e4e6(0x130)](logError,_0x46e4e6(0x149),_0x2030f7);})['catch'](_0x1bc102=>logError(_0x13771f(0x167),_0x1bc102)):_0x4d91c2[_0x13771f(0x124)](logError,_0x13771f(0xf8),_0x2030f7));}),_0x6f1def;}async[_0x3607e2(0x13f)](_0x35a9d5){const _0x35f928=_0x3607e2,_0x5420f9={'DQgVA':function(_0x4b3ee4,_0x28cd51,_0x4a80a7){return _0x4b3ee4(_0x28cd51,_0x4a80a7);},'MIoSU':function(_0x2ea150,_0x2c2d39){return _0x2ea150(_0x2c2d39);},'hSpul':_0x35f928(0x164)},_0x3c36e2=this[_0x35f928(0x156)][_0x35f928(0x15e)](_0x35a9d5[_0x35f928(0xf7)]);_0x3c36e2&&Object[_0x35f928(0x111)](_0x3c36e2,_0x35a9d5);_0x5420f9[_0x35f928(0xfb)](logDebug,'更新消息,\x20shortId:'+_0x35a9d5['id']+_0x35f928(0xec)+_0x35a9d5[_0x35f928(0x146)]+_0x35f928(0xe6)+_0x35a9d5[_0x35f928(0xf7)]);const _0x192dca=this['db'][_0x35f928(0xe4)](_0x5420f9[_0x35f928(0x11d)]);_0x192dca['run'](_0x35a9d5[_0x35f928(0x146)],_0x35a9d5[_0x35f928(0xf7)],_0x2cf5ce=>{const _0x54716c=_0x35f928;_0x2cf5ce&&_0x5420f9[_0x54716c(0x118)](logError,_0x54716c(0x15d),_0x2cf5ce);});}async[_0x3607e2(0x15f)](_0x3730b8){const _0x3d507e=_0x3607e2,_0x441fcb={'Bmxkn':function(_0x326200,_0x16f920){return _0x326200(_0x16f920);}},_0x3bcac8=this['db'][_0x3d507e(0xe4)]('INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)');return new Promise((_0x29f617,_0x54c9e5)=>{const _0xa24e14=_0x3d507e,_0x47247d={'XPxLI':function(_0x49ac4d,_0x2e123f,_0x1c861c){return _0x49ac4d(_0x2e123f,_0x1c861c);},'sbYjC':'db\x20could\x20not\x20add\x20file','HuXHc':function(_0x1a8f3f,_0x93b40c){const _0x2fb8d0=_0x54e9;return _0x441fcb[_0x2fb8d0(0x148)](_0x1a8f3f,_0x93b40c);}};_0x3bcac8[_0xa24e14(0x107)](_0x3730b8['name'],_0x3730b8[_0xa24e14(0x14d)],_0x3730b8['url'],_0x3730b8[_0xa24e14(0x14a)],_0x3730b8[_0xa24e14(0x158)],_0x3730b8['elementType'],JSON[_0xa24e14(0xe9)](_0x3730b8[_0xa24e14(0xf2)]),_0x3730b8[_0xa24e14(0xf1)],_0x3730b8[_0xa24e14(0xf7)],function(_0x430284){const _0x3c4f24=_0xa24e14;_0x430284&&(_0x47247d[_0x3c4f24(0x133)](logError,_0x47247d[_0x3c4f24(0x131)],_0x430284),_0x47247d[_0x3c4f24(0x106)](_0x54c9e5,_0x430284)),_0x29f617(null);});});}async[_0x3607e2(0x12f)](_0x5962a7,_0x48243e){const _0xa1c214=_0x3607e2,_0x3110f9={'hWOPr':'db\x20could\x20not\x20get\x20file\x20cache','xJXFn':function(_0x2022f7,_0x12c117){return _0x2022f7(_0x12c117);}},_0xc3f2db=this['db'][_0xa1c214(0xe4)](_0x5962a7);return new Promise((_0x1f8bdf,_0x390062)=>{const _0x5545ad=_0xa1c214;_0xc3f2db[_0x5545ad(0x15e)](..._0x48243e,(_0x351215,_0x2faa3f)=>{const _0x1cbe7a=_0x5545ad;_0x351215&&(logError(_0x3110f9[_0x1cbe7a(0x11b)],_0x351215),_0x3110f9['xJXFn'](_0x390062,_0x351215)),_0x2faa3f&&(_0x2faa3f[_0x1cbe7a(0xf2)]=JSON[_0x1cbe7a(0xf9)](_0x2faa3f[_0x1cbe7a(0xf2)])),_0x3110f9['xJXFn'](_0x1f8bdf,_0x2faa3f);});});}async[_0x3607e2(0xe8)](_0x4b5e2a){const _0x59af3f=_0x3607e2,_0x2b909d={'MKSPW':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?'};return this[_0x59af3f(0x12f)](_0x2b909d['MKSPW'],[_0x4b5e2a]);}async['getFileCacheByUuid'](_0x3308ab){const _0x450253=_0x3607e2;return this[_0x450253(0x12f)]('SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?',[_0x3308ab]);}async[_0x3607e2(0x16b)](_0x47814e){const _0x112464=_0x3607e2,_0x4d468a={'fZfHT':function(_0x426a67,_0x5ebfcf,_0xcb03de){return _0x426a67(_0x5ebfcf,_0xcb03de);},'XVKHn':_0x112464(0x12a),'EuIMD':function(_0xe1df38,_0x20115b){return _0xe1df38(_0x20115b);},'rOLRD':_0x112464(0x152)},_0x585c92=this['db'][_0x112464(0xe4)](_0x4d468a[_0x112464(0xfd)]);return new Promise((_0x5795c2,_0x2e1d71)=>{const _0x258571=_0x112464;_0x585c92[_0x258571(0x107)](_0x47814e[_0x258571(0x14d)],_0x47814e[_0x258571(0x165)],_0x47814e[_0x258571(0x158)],function(_0x521b9b){const _0x174a63=_0x258571;_0x521b9b&&(_0x4d468a[_0x174a63(0xea)](logError,_0x4d468a[_0x174a63(0x10d)],_0x521b9b),_0x2e1d71(_0x521b9b)),_0x4d468a['EuIMD'](_0x5795c2,null);});});}async[_0x3607e2(0x125)](){const _0xc0aa3a=_0x3607e2,_0x5e0c36={'qnNjz':function(_0xfdaa58,_0x1b3b12,_0x7144cb){return _0xfdaa58(_0x1b3b12,_0x7144cb);},'qjNLf':_0xc0aa3a(0x13b),'JTnIC':function(_0x3a1775,_0x24222d){return _0x3a1775(_0x24222d);},'IROsq':_0xc0aa3a(0x108)},_0x2e66d3=_0x5e0c36[_0xc0aa3a(0x15c)];return new Promise((_0x1e806d,_0x2d74cc)=>{const _0x757918=_0xc0aa3a;this['db'][_0x757918(0x129)](_0x2e66d3,(_0x4220de,_0x5cc311)=>{const _0x386348=_0x757918;_0x4220de&&(_0x5e0c36[_0x386348(0x136)](logError,_0x5e0c36[_0x386348(0x103)],_0x4220de),_0x5e0c36['JTnIC'](_0x2d74cc,_0x4220de));const _0x5c3178={};_0x5cc311['forEach'](_0x2ffd32=>{const _0x2998b2=_0x386348;_0x5c3178[_0x2ffd32['uin']]=_0x2ffd32[_0x2998b2(0x162)];}),_0x1e806d(_0x5c3178);});});}async[_0x3607e2(0x12b)](_0x175a7b){const _0x4d1f0f=_0x3607e2,_0xdff391={'PjyFV':'db\x20could\x20not\x20get\x20temp\x20uin\x20map','ajrrN':function(_0x55c2b0,_0xfa4762){return _0x55c2b0(_0xfa4762);},'ihMTp':_0x4d1f0f(0x104)},_0x3ab60a=_0xdff391['ihMTp'];return new Promise((_0x22b0cb,_0x4a5e0f)=>{const _0x38b867=_0x4d1f0f,_0x208eb2={'AXnHE':_0xdff391[_0x38b867(0x113)],'gyMUy':function(_0x261a51,_0xf7b2b6){return _0xdff391['ajrrN'](_0x261a51,_0xf7b2b6);}};this['db']['get'](_0x3ab60a,[_0x175a7b],(_0x3b6925,_0x11a77a)=>{const _0x1c0202=_0x38b867;_0x3b6925&&(logError(_0x208eb2[_0x1c0202(0x13e)],_0x3b6925),_0x208eb2['gyMUy'](_0x4a5e0f,_0x3b6925)),_0x22b0cb(_0x11a77a?.['uid']);});});}async[_0x3607e2(0x10b)](_0x4e5b06,_0x5b341){const _0x55c26c=_0x3607e2,_0xd890e3={'wGuLp':function(_0x3663d4,_0x4b92d5,_0x1fb24f){return _0x3663d4(_0x4b92d5,_0x1fb24f);},'oiVWl':_0x55c26c(0x13d),'ZQbpZ':function(_0x41f2db,_0x4f917c){return _0x41f2db(_0x4f917c);}},_0x21ef29=await this[_0x55c26c(0x12b)](_0x4e5b06);if(!_0x21ef29){const _0x1d8cb8=this['db'][_0x55c26c(0xe4)](_0x55c26c(0xf3));return new Promise((_0xe178bd,_0x3c484b)=>{const _0x20b3cf=_0x55c26c;_0x1d8cb8[_0x20b3cf(0x107)](_0x4e5b06,_0x5b341,function(_0x511570){const _0x5dd1b3=_0x20b3cf;_0x511570&&(_0xd890e3[_0x5dd1b3(0x135)](logError,_0xd890e3['oiVWl'],_0x511570),_0xd890e3[_0x5dd1b3(0x155)](_0x3c484b,_0x511570)),_0xd890e3[_0x5dd1b3(0x155)](_0xe178bd,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/utils/rkey.js b/src/core.lib/src/utils/rkey.js index 0a3db482..4dc3a386 100644 --- a/src/core.lib/src/utils/rkey.js +++ b/src/core.lib/src/utils/rkey.js @@ -1 +1 @@ -const _0x591b2a=_0x38cc;(function(_0x5a81ad,_0x452c5e){const _0x5c11f6=_0x38cc,_0x177546=_0x5a81ad();while(!![]){try{const _0x152bdb=-parseInt(_0x5c11f6(0xc4))/0x1+-parseInt(_0x5c11f6(0xcc))/0x2+-parseInt(_0x5c11f6(0xc7))/0x3*(-parseInt(_0x5c11f6(0xc8))/0x4)+parseInt(_0x5c11f6(0xd3))/0x5+parseInt(_0x5c11f6(0xd5))/0x6+-parseInt(_0x5c11f6(0xce))/0x7+-parseInt(_0x5c11f6(0xca))/0x8;if(_0x152bdb===_0x452c5e)break;else _0x177546['push'](_0x177546['shift']());}catch(_0x3de495){_0x177546['push'](_0x177546['shift']());}}}(_0x8506,0x5eec3));import{logError}from'@/common/utils/log';function _0x8506(){const _0x185007=['brFCF','2060miSpYy','IMHOA','70077dMJdEN','isExpired','GET','refreshRkey','http://napcat-sign.wumiao.wang:2082/rkey','2820355HvuPaY','getTime','3669246kPTgfO','AOPCE','serverUrl','747662oGvFaS','rkeyData','ZPXrn','3hIhGGR','809348jTsnJp','sBWMh','1843544GpeOww'];_0x8506=function(){return _0x185007;};return _0x8506();}import{RequestUtil}from'@/common/utils/request';class RkeyManager{['serverUrl']='';[_0x591b2a(0xc5)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x529008){this['serverUrl']=_0x529008;}async['getRkey'](){const _0x448257=_0x591b2a,_0x97b4cc={'sBWMh':function(_0x5affca,_0x1ccb76,_0x5259ff){return _0x5affca(_0x1ccb76,_0x5259ff);},'ZPXrn':'获取rkey失败'};if(this['isExpired']())try{await this[_0x448257(0xd1)]();}catch(_0x4e924d){_0x97b4cc[_0x448257(0xc9)](logError,_0x97b4cc[_0x448257(0xc6)],_0x4e924d);}return this[_0x448257(0xc5)];}[_0x591b2a(0xcf)](){const _0x27d1c4=_0x591b2a,_0x13016d={'IMHOA':function(_0xfb8961,_0x509cb9){return _0xfb8961/_0x509cb9;},'AOPCE':function(_0x31ae94,_0x146d2e){return _0x31ae94>_0x146d2e;}},_0x1b8ad=_0x13016d[_0x27d1c4(0xcd)](new Date()[_0x27d1c4(0xd4)](),0x3e8);return _0x13016d[_0x27d1c4(0xd6)](_0x1b8ad,this[_0x27d1c4(0xc5)]['expired_time']);}async[_0x591b2a(0xd1)](){const _0x24f173=_0x591b2a,_0x3cb37b={'brFCF':_0x24f173(0xd0)};this['rkeyData']=await RequestUtil['HttpGetJson'](this[_0x24f173(0xc3)],_0x3cb37b[_0x24f173(0xcb)]);}}function _0x38cc(_0x1bed4a,_0x267e61){const _0x8506d2=_0x8506();return _0x38cc=function(_0x38ccea,_0x46605d){_0x38ccea=_0x38ccea-0xc3;let _0x426400=_0x8506d2[_0x38ccea];return _0x426400;},_0x38cc(_0x1bed4a,_0x267e61);}export const rkeyManager=new RkeyManager(_0x591b2a(0xd2)); \ No newline at end of file +const _0x28fa31=_0x5357;(function(_0x36960f,_0x433b14){const _0x38231d=_0x5357,_0x439cd2=_0x36960f();while(!![]){try{const _0x3b2391=-parseInt(_0x38231d(0x19c))/0x1*(-parseInt(_0x38231d(0x1a2))/0x2)+-parseInt(_0x38231d(0x1a5))/0x3+-parseInt(_0x38231d(0x19d))/0x4+-parseInt(_0x38231d(0x1a0))/0x5*(parseInt(_0x38231d(0x1a7))/0x6)+-parseInt(_0x38231d(0x1a9))/0x7*(-parseInt(_0x38231d(0x1af))/0x8)+parseInt(_0x38231d(0x1a6))/0x9*(-parseInt(_0x38231d(0x1a8))/0xa)+parseInt(_0x38231d(0x1a1))/0xb;if(_0x3b2391===_0x433b14)break;else _0x439cd2['push'](_0x439cd2['shift']());}catch(_0x7c4e85){_0x439cd2['push'](_0x439cd2['shift']());}}}(_0x34b3,0x70ed7));function _0x34b3(){const _0x358fe9=['992eMLpvU','refreshRkey','GET','mDlvv','serverUrl','98963cdwnZw','2485448JpWLvw','xvGdq','rkeyData','5iluBuf','28603399vNlrDi','4YFfCpK','获取rkey失败','expired_time','2064075TvtwhB','56241sKncEn','5315946nVObTD','620sLpphO','13951cyUQte','http://napcat-sign.wumiao.wang:2082/rkey','getRkey','HttpGetJson','isExpired','cQLzA'];_0x34b3=function(){return _0x358fe9;};return _0x34b3();}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';function _0x5357(_0x1d564c,_0x18b703){const _0x34b3e9=_0x34b3();return _0x5357=function(_0x5357a2,_0x27e4b9){_0x5357a2=_0x5357a2-0x19c;let _0x150c05=_0x34b3e9[_0x5357a2];return _0x150c05;},_0x5357(_0x1d564c,_0x18b703);}class RkeyManager{[_0x28fa31(0x1b3)]='';[_0x28fa31(0x19f)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x4d0c29){const _0x48a88d=_0x28fa31;this[_0x48a88d(0x1b3)]=_0x4d0c29;}async[_0x28fa31(0x1ab)](){const _0x5098e7=_0x28fa31,_0x2b710c={'xvGdq':function(_0x32c669,_0x1d1d86,_0x593d51){return _0x32c669(_0x1d1d86,_0x593d51);},'oQsos':_0x5098e7(0x1a3)};if(this['isExpired']())try{await this[_0x5098e7(0x1b0)]();}catch(_0x3129f3){_0x2b710c[_0x5098e7(0x19e)](logError,_0x2b710c['oQsos'],_0x3129f3);}return this[_0x5098e7(0x19f)];}[_0x28fa31(0x1ad)](){const _0xc188af=_0x28fa31,_0x2135e={'mDlvv':function(_0x3ed48e,_0x51682c){return _0x3ed48e/_0x51682c;}},_0xbdeec1=_0x2135e[_0xc188af(0x1b2)](new Date()['getTime'](),0x3e8);return _0xbdeec1>this[_0xc188af(0x19f)][_0xc188af(0x1a4)];}async[_0x28fa31(0x1b0)](){const _0x329545=_0x28fa31,_0x2d8bd0={'cQLzA':_0x329545(0x1b1)};this['rkeyData']=await RequestUtil[_0x329545(0x1ac)](this[_0x329545(0x1b3)],_0x2d8bd0[_0x329545(0x1ae)]);}}export const rkeyManager=new RkeyManager(_0x28fa31(0x1aa)); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index b1d5105a..63bdbc58 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x4fa59=_0x3c43;(function(_0x56584b,_0xcb2ed5){const _0x57c9cf=_0x3c43,_0x1c6081=_0x56584b();while(!![]){try{const _0x24f8ce=-parseInt(_0x57c9cf(0x11b))/0x1+parseInt(_0x57c9cf(0x115))/0x2*(parseInt(_0x57c9cf(0x11c))/0x3)+parseInt(_0x57c9cf(0x117))/0x4*(parseInt(_0x57c9cf(0x10f))/0x5)+-parseInt(_0x57c9cf(0x116))/0x6*(parseInt(_0x57c9cf(0x111))/0x7)+-parseInt(_0x57c9cf(0x10b))/0x8+-parseInt(_0x57c9cf(0x10d))/0x9*(-parseInt(_0x57c9cf(0x113))/0xa)+parseInt(_0x57c9cf(0x11d))/0xb*(parseInt(_0x57c9cf(0x114))/0xc);if(_0x24f8ce===_0xcb2ed5)break;else _0x1c6081['push'](_0x1c6081['shift']());}catch(_0x5c6c3b){_0x1c6081['push'](_0x1c6081['shift']());}}}(_0x4beb,0x8f1bf));import _0x262a20 from'node:path';import _0x1dbeb4 from'node:fs';function _0x4beb(){const _0x11ffab=['execPath','existsSync','722488YbtFEd','14073ocPdRi','11heOaFy','6595952LYTHae','resolve','45JZYLeo','./resources/app/wrapper.node','5161165LGZNHq','/wrapper.node','230258KfVPzN','dirname','1129340kRsWwM','13322508XAmNSh','162ymdoHh','174vkHCaG','4hMujEI','resources/app/versions/'];_0x4beb=function(){return _0x11ffab;};return _0x4beb();}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x262a20[_0x4fa59(0x10c)](_0x262a20[_0x4fa59(0x112)](process['execPath']),_0x4fa59(0x10e));!_0x1dbeb4[_0x4fa59(0x11a)](wrapperNodePath)&&(wrapperNodePath=_0x262a20['join'](_0x262a20[_0x4fa59(0x112)](process[_0x4fa59(0x119)]),_0x4fa59(0x118)+qqVersionConfigInfo['curVersion']+_0x4fa59(0x110)));const QQWrapper=require(wrapperNodePath);function _0x3c43(_0xc7b0d5,_0x585353){const _0x4bebd5=_0x4beb();return _0x3c43=function(_0x3c4371,_0x3c6773){_0x3c4371=_0x3c4371-0x10b;let _0x411b3d=_0x4bebd5[_0x3c4371];return _0x411b3d;},_0x3c43(_0xc7b0d5,_0x585353);}export default QQWrapper; \ No newline at end of file +const _0x5274cc=_0xb6a0;function _0xb6a0(_0x3cce54,_0x343610){const _0x422155=_0x4221();return _0xb6a0=function(_0xb6a0a8,_0x33ab04){_0xb6a0a8=_0xb6a0a8-0x139;let _0x4ae6ce=_0x422155[_0xb6a0a8];return _0x4ae6ce;},_0xb6a0(_0x3cce54,_0x343610);}(function(_0x17fb68,_0x87a5b9){const _0x1c7685=_0xb6a0,_0x40a625=_0x17fb68();while(!![]){try{const _0x550aa9=-parseInt(_0x1c7685(0x13a))/0x1*(-parseInt(_0x1c7685(0x14a))/0x2)+parseInt(_0x1c7685(0x13c))/0x3*(parseInt(_0x1c7685(0x139))/0x4)+parseInt(_0x1c7685(0x142))/0x5*(parseInt(_0x1c7685(0x146))/0x6)+-parseInt(_0x1c7685(0x144))/0x7+-parseInt(_0x1c7685(0x147))/0x8+-parseInt(_0x1c7685(0x13e))/0x9*(parseInt(_0x1c7685(0x148))/0xa)+parseInt(_0x1c7685(0x149))/0xb;if(_0x550aa9===_0x87a5b9)break;else _0x40a625['push'](_0x40a625['shift']());}catch(_0x264433){_0x40a625['push'](_0x40a625['shift']());}}}(_0x4221,0x47237));import _0x2d1e93 from'node:path';import _0x4c1af5 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x2d1e93[_0x5274cc(0x13d)](_0x2d1e93[_0x5274cc(0x13f)](process['execPath']),_0x5274cc(0x143));!_0x4c1af5['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x2d1e93[_0x5274cc(0x141)](_0x2d1e93[_0x5274cc(0x13f)](process[_0x5274cc(0x145)]),_0x5274cc(0x140)+qqVersionConfigInfo[_0x5274cc(0x13b)]+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);export default QQWrapper;function _0x4221(){const _0x18937c=['1904300dXykcH','3277153ZXTlRn','218gqvhfe','1072osoxfQ','2953WHDiGw','curVersion','1206zwffCz','resolve','9rYEfrF','dirname','resources/app/versions/','join','57710HQeebr','./resources/app/wrapper.node','1885625pCHpGn','execPath','174lBlYkg','2488528RHyeaV'];_0x4221=function(){return _0x18937c;};return _0x4221();} \ No newline at end of file