From 2c70b2af68219e67d9ba804f0d2e313d8d522f84 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Thu, 2 May 2024 18:17:33 +0800 Subject: [PATCH] =?UTF-8?q?build:=20v1.2.0.beta11.=E4=BF=AE=E5=A4=8Dlinux?= =?UTF-8?q?=E5=9B=BE=E9=93=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/utils/ConfigBase.ts | 4 +- src/core.lib/MoeHoo-linux-x64.node | Bin 63360 -> 63360 bytes .../src/adapters/NodeIDependsAdapter.js | 2 +- .../src/adapters/NodeIDispatcherAdapter.js | 2 +- .../src/adapters/NodeIGlobalAdapter.js | 2 +- src/core.lib/src/adapters/index.js | 2 +- src/core.lib/src/apis/file.js | 2 +- src/core.lib/src/apis/friend.js | 2 +- src/core.lib/src/apis/group.js | 2 +- src/core.lib/src/apis/index.js | 2 +- src/core.lib/src/apis/msg.js | 2 +- src/core.lib/src/apis/sign.js | 2 +- src/core.lib/src/apis/user.js | 2 +- src/core.lib/src/apis/webapi.js | 2 +- src/core.lib/src/apis/window.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.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/wrapper.js | 2 +- src/onebot11/constructor.ts | 68 ++++++++++++------ 43 files changed, 87 insertions(+), 65 deletions(-) diff --git a/src/common/utils/ConfigBase.ts b/src/common/utils/ConfigBase.ts index 54bb9e93..6bfce0fc 100644 --- a/src/common/utils/ConfigBase.ts +++ b/src/common/utils/ConfigBase.ts @@ -1,6 +1,6 @@ import path from 'node:path'; import fs from 'node:fs'; -import { logDebug, logError } from '@/common/utils/log'; +import { log, logDebug, logError } from '@/common/utils/log'; const configDir = path.resolve(__dirname, 'config'); fs.mkdirSync(configDir, { recursive: true }); @@ -25,7 +25,7 @@ export class ConfigBase{ if (!fs.existsSync(configPath)) { try{ fs.writeFileSync(configPath, JSON.stringify(this, null, 2)); - logDebug(`配置文件${configPath}已创建, 修改此文件后重启NapCat生效`); + log(`配置文件${configPath}已创建\n如果修改此文件后需要重启 NapCat 生效`); } catch (e: any) { logError(`创建配置文件 ${configPath} 时发生错误:`, e.message); diff --git a/src/core.lib/MoeHoo-linux-x64.node b/src/core.lib/MoeHoo-linux-x64.node index 2d911d18b80289d50ad43feba0d78c344bc983b2..36c4c527b5e71e6c1f7ecfaeb00edbd1fa85164a 100644 GIT binary patch delta 9616 zcmZu%3tSZS_MaVgbwS((gG79=*s5TPK%r=oK%j#yh6?yrR7CiTNw%n!xhP;x%NpHZ zUFmV}#a^2ED!ipex(JAt8qrHl4NI@HYNBSQJ)Hmd%nZ13?|eRResg~3{X6IPJ2N{a zZ9XM!K9yB|#gjSZDxUn}8&STE0qR}j`zK^w&}#!y&i}dK{%(+I>~gt&3H}5y+zJdB`S}C7REEDw_L9GliS3B1VFr zu7MhT;(YbKmuB1Vyeh{%Nx`#C-6KO2*Q+!RoeF1YHe@Vf7rRIC?gAESisGw_*?3cw zqq7@PU?OL8G)FXhxjn!uF`B3fouUG6aaWc8s!K(rY51vKRJ>cmx63)J8CpMOQB*T7r?ozRl>s>{UA+afU1#O$u^n? z@$QA}Q*+d`YAyaxYxZSprhg#1fe7t1siaazMS01|z5fr{|e@NsNnz+<7E zohR3by0U=n4fwg+oT8-#kK6O+%+Fs`^IqV;bv29c`R<-xt(xkbBdRQ;CbE*v9n`az z`!V&lsMBn9&5MIZ_jgzXr`;MYMBWj~WxGKN_*0ez=Sr(lz1{c+ZpAj~_8k?SL)1kY z^}W&$n7(8t`h1oC36*|d6m$yWX{nCxF`YMhrAD^{)E^; zh!9mlpvL(ZL)J^viS9X~3lK(rZ#N0f6stvW73rizVt@zn@L)ehMtb;nvME?DgNaT@ zTr)wjNpKpvlw(xt4iLny(nX3x`A>Eu@%{rGHt~Y=3y_tnkl%h&gnXc}L!G~(E-tQ=<6>GUTrR`I z*%Y|0${I^sZ_Bc@0kQV9j^;R3X}z+LQaGjr@q1~HvUG+IAVQ5$nYBpAjJA-T=hgs) zwad7R$2u)zBW%$j>Drv7eeO7_S^EAKbJzyxjO=aOF#h;$_Khu4m;Sf(FrAB8@P9E& zOpl8iL5fQoEtkF(oMqNS;8QZf0<>qHlF((=jCQOadoz7l*vVUD>m|onGw>ZMVR&6QI=zuwHZ^k$Sdiz5;m}G$D~dCReI+ph?atA-wI;J z%uB4-V}l*O%6ywN7osaE>{)_q=y{46NVbwU&V=+5y1g<>a0TzhjK=^Tb6ASHOi7tG z*MK*HCdT_{ZNxUA^s-S}qA~}7*(Uw~e(5M|5S(#q9UyWhi~z8)1CRB!{R8;CD03Jx z50^O%VNOUR6I_O50wZtPgHc|~h_Bpj_mx}CVUWsk^%?|yFNHp?2fII`k1m}F8T}%^ zUJa7s`?G}7g#TNGp&*{O`$O?|;H6$S5V>5e(m}&E_Cm%$M|PTcGbt-gJeri5CjOB% zS#XXK#4n``@3I^y1J4R44)ovhEV*}9a7IfG_Rom}9KC))NZTVy%bJv( zl%;wmh`-SK*qlSlz(rPF264H&INjzf4xn7AfPTa&PMN+Ib2CkJ3(hGEhY8NuiU= zRkd>kr@s}cWx>24o}s+!4L%q&PH=X&Kv`;xJEkS(W;z_ik}It!f~ ztE*<|lS6bHSl;C2L+2>26j~!}I43N$KLsI^CO*S)CGniO%*}ILX{u32UVn9+`DI$s z!VSxe4f+fYrHyO=KFvI~K@jVu6E|3KX1H!U+W?|)R-4&JSIACe&eECKh^$DA=VlGp zrLw9lE4qtMvIg>=>+F11n(kpXEIWk%a|KJwj?m3uOS5C){@dBZ`D@GB>Fl9=%W~#F zCH=mdD~O;gp+-QEny#W&EvVJJO2L_hTA36eJQO^Ut(+38i()&bOt<)`)ImhulcdKNkL?Oy#rr0w3GS3#t0s-Cs%!qg#_6K%4*7Yz@W;<9qT9v9|I>GRJC z;iqlle<;eM*aOoB>h59FrwxtGx`bee2h-_{cNf<{%WGqyWj*90f9vj+E@qyf89UoE zZLp&dLt*vh2xN7x;M5O@P-?Ku8UjR&Tfp%!;wMV9(bh{Tl}N{!Vvb8HLDHGaOdz3k zp;IR`31_j<(`qcer8AdNyGeY4Sg0I7=CWDXKZVjJVUItR5Du6#l4CptiKt3% z$@YK}M>1#kD{&-p=5jZPq#2iKI$m(*qZV=@M;vXnjXZDPi7YXfFGh8d_E%uoEB1E7 z%AWvwH~!?SN#;73Mdp+*#eJGnZxx)0SSZ8wC*eYQN;jCKxf9Mx%7PuEH8K>A;LHfY zk{(tlH=`4jGmK=arw?efV!x^+CRyg8eX26gyu=WKknRsA?{^E%nbvst*;Hn&1|rEE zn0m0x`WA)}=EyQ@B?iQCGZn;Q8O{alo;0yjo4A4rFdWCNM0mG?Z*vPxDb{F=L5vni z`t_nLJ1Z0wf-56f5P{4yx49v^LQx`MRigKI1A{08m_MvgOdw>$UhzM&yiN!*2O7y- zc65f(QD#Mt#N~-ES*gc{etPneNM{BHiq1r-1UjLt8!1cNue5?NL1BbP$%;prIP68E z`J)O&5IN8ae)2dL^Le6RBwI*2*&?hH{Dj@+K!@Hs16wl%ghPt$uE*wq02(o#oit}w z9`ODclenv3m45ZmHoD{`MYtd~Vr;eI-|Nb>IWWK+I5mKp1CnNr%(dnSVyXrABvDL_ zFn^>9%o9_GP)q4RFXyH$D0ui%Y(b-t>hB{>N)xdKx$NM^KTFKvm=@ZQdP_LEvHtnk zevpdh^63yNlz(R~`+^2Y7wI@EQ*ccV5+V->jXS@rur+k_$$>&C8}_s4^hi3S7Evc%Au$;&qNTYf>i^| zb*VIQ=qfh%@u2(4SE0x9s_xrM$b!E^m`3&_&sLWOIRu3)$f{I#GOF9q ztWYk7t@0$JCj#?%DB?Ev{z%G7q&!qn)}&Z-B>M$2xQQ|X!mqk(_WYMv3eB4C{mK}m+4EYq5AjM`1T*o8ZEe zj+$sUrKE45E8Hvo-ftPHFIcyW}P{MPX9a_RGcAR@$wZj31Trm9i zVQ`B=LRE1R34_MUkDe9YLGA2Sb`J3%3W9nRA4rD@1C+v9hIt{fUJy@uva#}Vi>DY3 z@KrL$lSXp1B1*$SauSSq&iqRuQNh#`9_UVWv{gZ)jyzQ)h}!fd45XKU_l&@(BkTM< z;fR&0lpc`1>H&K`ro0ew{vHt+7@7|eYK7zg;gy*wizzc(5DsnOKID|lZ27Ou?5$Al z2PI|Z2c1<{0f7LZ2IoMRYTu5(>N;GA*7`|Bk9{_+2~{8+&}t1fDb#8)IGjo~Y$lE= zr0+dUdUI2DkyT0Hn$1+S{B)Pc}-5 zTAn$`YR}W!4fb%)!(QVf$k_J2=!)0)cdzlCj&Y->rej?1838%efUlfu4Y;fF39+*$VR+-Ae4nRU)l3Qy z8#}#yXgkZs%un=7e~2WtNx`j5oIh~jVD0w&_e!65vDJpsJ$f|bB=AujpLU$T%5 z&&%c`7P9qukMiH;vG4Mp#s{G!3?*;6&{8@Z$F8eKiE&s;%Y)!#^gBYBFz%=pC zcA2Yz@sc@QaQ3}8pB*WP;HQ4aZWcVxA30gG=Kowee#&VUSU76%nA3RZRyV-k@syM1 zLcd714FcXv&d{W}thjJ~VCyL;Ooj*J6{;^zF;8Izf6uoy4=sL6-|g8i)lhl(Dv1A)hJK~)oJMLD@yOUWa|WBYG@Jipdd=RYMxE)^FH|Aee>@L< z!=JWi$Atp+{u73}O7d zg-u&t#J~AD`)v78-(8<6HpOKz-HI4~UKV?Bh2UFBBAkZ0Ojf=kj($`pU&A-vC`HyYBFCKml{&w*bLAmfpjPQ%g+ zC0uwNhxWmh3J9Oj+)AsP*y3mV@sSzK_3UZ>Z%wRlRT?i(U>~h2<*zrg(TszV1Mz**lV#L4Dc?xJf^Qla5wZ8~b-cAj!$5HV$p0>5u2Y3N@g-*4W26m)mFrR&p z-74wBAF5~ft{#4Gw4yDQ+e@#d(I!Qs^%!Df^Hx8?4?4g$t$vHwHL~fxb1lxTun!;0GM?+nH|}Ev&&BYsrn1+c>&*|SWqY2R#9!OTy04qX z_y2?yt_$VQq_B1CmhdmvvfJwf$M5$-VBW`&;YxU>Pn;WRZy$Dc9Z94EI|8# zwGzQa2Gevb`8)dkI=t#~yMn;B9+Z*kire$IgDHQpAkxPQ&SqRK4JQAgKpX zdCCh*<%On)@3m6{X1;tEd!_O|zVbu1ud*M{?P6yt zCpm`fQda-G3F~C3QO37voQtu#Hcisz4}dR4!_Cp7pPf1Y+(>mGkxmi6linS~3nQ@; z+J6$9MFB$TL7lV_^Ow%3LK>yX{{|si04E>{T|t*#uG#V8i~fO2itUyqd6vaXigODW zSQb2<%eq%P*xu@aEQ9xBt<|j-L9|;VglRT3t0K;ie4`VsnwSwFxNKIu#Jf=A-k9Oz zxQr4#`<5&p!n51Xw`JLC;J9W$J>C-qy(7zofO&v_0G=w?HO29)nuq^O!ce5;?0t~@3Lnb^t1Xu(G#{tU#CBQ1cTYy^u zjd+lD15O3J0eBp*GuE+!cb2EdW8v^Fi8CTL%I|z*O#$oqR8xq{C)H%B(5ILp)*6yb z(WPCU^)p2znJmeskYrOpvdK8ETL}1e;;)dUZ|dndf{_J92Jy-jfd8%d>jPZ-&y&P) z1AhXvO#$QtlZ8+7GZ~Y*ab!sVR;2=Sc*DwZiX~9z@=5NnWSl9Q&w?Q-UWR}-2pb(| z19LN&hY|BkQ@|vXk&DKVp3x*`*gPz%3M2b_cg-Oaw*prL9HOXP#Nh_cwvWx*oWL6f zvyGeY@e2V3{XDAg%Jyv@Kd_-%mLox^KL(tsQdin_ZI=pzOTXUd1wIG(3M{^5CyRP_ zp5N;`Wto1!)=yxszI&fc4r ze5O5)#a1p=-dEpX4XM$C{1ynWI z=+}MyNw$9Lz2-jT8mjmRltpk1@NLLW)OxADPy(V(A`k*ZTK(+`h zdE2O{8$dk{Dl1X>LXj!4W0f+1BR7Q~WSKs)(ErS~Y#VFJ2kNUPS)PTHUjG@pvu$i_ zEl{8SLzb5l)pC-u)30-Sw1TGgj4Z!PnijHU+XtIMuz{RMiqIUXEoD5*=~rWq^2toe>{Hn zuNqHxYT^^5QYXBd#ng}EqZhKL>!W(@)`%V<3S2KErbP4ytE=ysHsMhfOTnk>yf(WN z@2=^h6`*S>VntjBHF{bGx@eCl{6!Yt&{H>;jcgc)A4pa=j0=pWRq?v2*tLe9>}rD% zzu?>kRVzzs9H)DUiH*zQAma~y6WaOXi6ICvecoW1#;zY+AKv*Bl9^Z)n(p|vf^BRX z1MO#jTA7c8-dujqEN@K0ahOY+zUpGL)Y{(xmv z_y7Ij3DfZSil@hC-|+a>=i+BkIydWeWE_3cGw(=LZ08Su!UO;J7bVkxC*wF5J8)zy zf7QkOj^ewTg>2N(W%OOm2S>;9tuFT4(Ph4OKRS8p*b=^VF}rwdA78YvX3OXObfKL; z{;3aXH=X^^ygs(`H$d5;s#d4x|U&lbwN#R%M}aXn8y15 j9OakKR9dXu^q&vvB3Ss1VS!cKRb)FHS~K@Xn9u(M?n$HT delta 9322 zcmZu%3tUvy)<5Sk=zuT-DS@Q&XjCvoAThK^K#?;#==cD|C&oimQqnQe(gA1iIu4`Q zuKW3w*YMu@e57WPW@b9bOTC(ptgM@_Ogp2fl=(=@`Tpyi86Os_Vq`fUyAPA`{!xv zJN#m(e7CkmXyEyEjPDT24ynrcUs#&&0bZ=-JD7RC3#;h3iT9(<+EjHi&nL-z)qe48 zrz(t{@eAWe*Z$%+MBx8mAE`q9vs4`S1gGIzXR@&YapBx*W%T!b6#A1d$3;`OoxL3p zCj?coBLQ*2I}4TGbcJv~GQYqGv$H_C-Q+<{ev0bI5(PL4U39I2ZW_`!PPzA22=}SS zloPoMu(_i`dwKZFXDIhwJ+?g%6g|~rWt?paj14cZQh3a~LMMA{sGh~H2F3|oF$>qk z2^SWy5t=yj<8DMjh@7qQIO4IF+XkErF7-^*1VuOZG7KdCc+a4E4?eMjf^#0+tLLJ} z;5?7PcQwI$9`n=opOtD?M7MY}_FU(W` zgj&90*qETv;g35{t`YZ%nQU*+Ep{sSiQ1#V8~K3g(@W>inrkYWo?kqtwxsh9omq8n zb#UHMMVDG3oRQ7w9on^gv~pYeSZ`kK+TJfjo8v{hNtY_dJ`^k6CSNJ&Pq$mNzpe{Y zZa4mcTiZ?P_lF7`qrj^G?~j9CgY9S0c2@eH*dS#jWqEDN>OJsZ#@Hxr1AOgm;*Sx{ z7BzqPDFjPu-WQDiPW#xq?{e?Mu~)&+ACU ztJ3aKc?m2Yv!wg7SzAbzJ!wgs#+}sinDr*u6({y8+^?Axc0(Kc@^x-VQj-%;kQs1lHu@-F9_t>EKCg8*a6`Pq+lDj9!zC@Wa9qME3YWuoSq}M}*iqua zCAIvHf8Qe5uDs_tP8qbG^cPDr&?VZ=OTW`p*nNLx&l`G%>Y$0bjf!hlT`5+Xw3{t5 z#D_VSD}9mPzBAMp@jE+U=*f%hvZ22acAq_&70WwVYE}e)jOF3~c2=I16t{>5vouCt z`&P7Db%!7*r$HWI*Gf4FtvaI@9l2|x*Y*RVcLz!=%u7J{N{-w<9W87m zg4U{rcIkt=u;-yX1)u0npvw?@Ba6asfXEGW8f8*gy*yabp8^A$nS z(xR3=RD_KXHrRfIyc7sIq+^qu=P8Ro3`{U~H=KoSMRD2)WE(DR1j3wRqj_`qE+;bR zo+$*Ay_@7JohCo`1#JYha$LQKfD!X_UEO)1Jm1_3C^rRO^cHB{LQRE4`1z9@a08yYgA6@vH}$p#X#iZFY_MHWT%1;KYnFIG)vS7KL6M8a5d!P}+WF$BfP9@yQg2U)srik_Ni1m0R*5wu( zF)oom!Iq8-LtJ1?EUdk{5jSPrZKE#d^dhQ^UI#fzsP20$D+M9 zdmz7%9m>}6PIf)Jm(cYV3(3**bJ_HqFrnXKwm2t-x3hodB*Oi#a|Q}gWh`()KS3yC zFHFdK`qB+V)sb>uM3C;bV(ms^?G{yw_H5LSu|eYVAr)-fghYNCJ3nDk0er_**C|i}=FR}6(Wqwl@?bFVMwHT#&I7ZnI{Rz%%b&r-Zdj3H@?=e?y zAM-ji#flaQV-$#XRnHiCOht+flPs%U8zKMO#gnKqkql8Hh^BZ!uJ zZc|XXIh`~4mzz^LZDk#}Bx?)xCmZZ}SotMTWCO2$P>X2?R=&3KWh^@y{O>TV&g3zy zaskl2_;a^v>#}8YD(4g9quJ_iLiN&C-bI2bzMMtNo)O?Mx^3A3mV3OmGEJ7qK+@k7 z?Zz-n@$U;r<^a5K8(|F$aYcbiiA<{}5@e)nHegRNEYi;N%|oaUgutCC6)8&I6~c+bCVTN&zwG7D96;(ri3H zr#3QoXNICVPqeAEpBi*a$;28@=fBWdWE0ie-3FbRhMKri^cVMNgH^i8D4n9ss&j&M zPrZRNlfQ>>gOWM52px3HBwaf}r8zJFqrE9>MtMTJKo^An>*aoJaF8~5Vi0ZhPFbu# z7paGtk+k;%NJBeD`>CR|i0=B*(GZ7ICl!&9_vT~#^1(<`H>TE-iYnqLL5*>kbn&0@ zT)EF)o-6gCJ=r2rBv6D0N@&z~kF+I!H?^fg9{t5E%*A6Hd|Q^)xc~{wv-zls&_&s2#81 zz+%#=Ex+@o90~$0%L4HkWu0m(=h9lLXpn#!Y*PEJscq-pV@4Lz637T}bw|0XMkc#Y zx!hEXB|}>#ndQli zf{bGLYBKyUMe;cyN~T4_3U8*(ybLwSH0wKbinP@G({7K6!=bZLv>n6&#><%k&b_p3 zm91Xt4g+9ngj}2?^BR(YYqsxQeG!0Gve@+i^Y2Yx(N>~U>+zI!Tee(&O2hO~&OXtW z%iqa;1bg#2l=@QTETE*`<7JRD+w}~r-a|8QZpG9ihg=On9@S&lQogzF9x2V^`Lq(2aI@4megrNg^#f8N$^bXCahMEUW|b+E0Y z-gTv2`|Y-NqiX}&^6~M7d|l8ssx<|& z*czzZVJ3pGNO6$ZzdiwGCENO0ja2{ZLIy@L5bB#I2 zw#+pOU!AFaF!w!Gr;=_^GE_Da_$-?Hk3Cxn(0Y|6@LW_>kJ8`@9K52|2g(&Q8D)~k#B z4j!je@Ew}V7A)#5_)lW%7ftT=)=3%cfwzKq+{J;)s=I(P3BFFbtaDk?g*<{HZ0)KVZ4H& z=W%JrVb;1VwAWj`$#~?Y-8T{M7?rmJ8F&!Rz?&raL}#?L!>pgVhu|8+vdm|Nv4>gT za=mcC$QG4bgpZrqALWCDMa^<#CN#4N6=_13X7+Z)Q+{`wWDnG%+5U>IA=gLA>QgCB z^hyLH9vsbDDxxDcD10}G0p9)frAkFJ>$g1Sx#`r2vsN)J6I|Zc81l=Ns||Pn`5MoP z@}6(7;g!)1+ECtTVpYrg2u~hjdzN<-RyMM4mJfWgwUMmK;P%p+P|=zTuvAZVJH6Mbd%?25IwaG+7{i>+r# zm8rr6x{K(D(a%YB2W$UP`2`>HaUIr}cK4T}Pn9lG_Bv^ip3VE)HQ`hp5__WGy#sQP zW{B*Im0br97iHJvAkiBd1Zj=}VLGh3R%EgC>lY-kPf51h&=00NnJmZ_DpWdItSv#9 zl*y*po)Rv9!4})b3LiPyG22w($NjADs&HY$a3-#rCuHwupRE$jpNBzVFH-18@#%{8 z*8Ot(F5x%!VK4Yh>3oBLKLLR8dupFl+DoW?S!o}n_AEugZfb8=@EmH_Q5&YXJh}-M{{5*A6`R2=CXfy{sLN5xALzU4z;<8eI?D+V!r2cHGhRk2F5r zu06aR|CM&QrX7CA`ABv`8&9KaZoTeN$2aW;JJ-fk@A~;5dr(y<1ngteM|WkfIeKV@ zB4%W_-qz?!u4kJZ&!(NiDWFJx-zLA0a~*8E7oSgh84m&UT5V>Ksi$aPhH8)$4oDny z*A!Adq>m{~vV6{-T0Q)Uk&qJYbCT(SG}2)2S)a}ptnMwmozB*SypmqqxY{WQy+37t zTYEyt*v)d^cv>*-Vawj=Avkxj4R4G!x9pN<|NS7$(}hpu_Gi@A0r$+AR7|)9`#VR^ zIVL&+(22GJEYkYjWC0H7_GEDoN}=hxXfMU1brUbmK>xLKijqdD^QU0M8DJzRR=NyZ zT59L9wE?x&&pP?Q`Gxtfj-6AucyMIT1^z6!#@z3v!lHTe3r80f73Q0OmX!H(GYSgk z7cN-fxhq;YH^0<0A9tnxY)wsX=B&9;>)dGcF^8!*?&5oH_iv!{-gmo=z8qH#+7~Z4 zPJ_M)+Ux(^ZXLFm4WQMa2SF#|Cy+r~-R@67i$SMgg|7oGh5Vrp-0pj*87sHB-8HoG zLHB`{ZFjr>0No5qFC2<@xXo@6jj|n30J;*i0aT4Rz5s(H&>GNnSR-LjyazR>3P%Q0^Qs&86LyK7t^@5x1K@POlg;|SMFa9M zg?RbF9om8sK)K>ujr7bNw##%)T9d2*+<(#%=%8l z{58qwNz=rDGhGvwt_e!ls53ipC>7ip{HZp(-OrHD3{B7qVUh-hG787ysEXMe5>n93kwVs)E3`&Oe>#lG9rKdu3-FrA5sg-s-`YDLCs@+_(qK9r-f z`7L0JWJy~i%oKnwU?{%mcEc+9A}j`20kHOSMoSRfJR`i#l04C$Xn^-tBxOD(c7ul7q1H(_FS&aU4xs#LUUjp{tUN-Q9 z!6RZ|(*UeM?|hNU7l6e-hEeID-OS6E3O-uhF~F>dmnxs_{a~P`3ec1dZud}ht76#0 z51!QQ1Y|^VS`aT)0JyrdA=|np{suT1ob-#X>J<7Y<5u`qsT@A5DYC`*qxw~bGH?`w zt9G+h+omOwyZ8TrN|O+qY^iWR2h~U>_feOMLvZjKP8b{c{TD!SQX%6aW53z!xl6 z{~gCyv#v)o=|h#5j>aWE{y9rj@PGeKA{RIrmuhDRj}8~&tC;^Wd@WMM1|NHsz83lT z*l;1Tirqi@2L^db|f8{`e;?^k7=~fdaKI*sr R!Ok5D=%qbtXZ#l7^Zz1v12X^s diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 93244a97..289e4549 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x535d6c=_0x56a7;(function(_0x5e7506,_0x55bac3){var _0x169bb6=_0x56a7,_0x4b753b=_0x5e7506();while(!![]){try{var _0x377349=-parseInt(_0x169bb6(0x125))/0x1+-parseInt(_0x169bb6(0x123))/0x2*(-parseInt(_0x169bb6(0x12d))/0x3)+parseInt(_0x169bb6(0x124))/0x4*(-parseInt(_0x169bb6(0x127))/0x5)+-parseInt(_0x169bb6(0x12b))/0x6+-parseInt(_0x169bb6(0x126))/0x7+-parseInt(_0x169bb6(0x12a))/0x8+parseInt(_0x169bb6(0x12c))/0x9;if(_0x377349===_0x55bac3)break;else _0x4b753b['push'](_0x4b753b['shift']());}catch(_0x20be2a){_0x4b753b['push'](_0x4b753b['shift']());}}}(_0x1f0c,0x5d76f));export class DependsAdapter{[_0x535d6c(0x129)](_0x3e00ba){}['onMSFSsoError'](_0x2efe99){}[_0x535d6c(0x128)](_0x73c8e9){}}function _0x56a7(_0x4de768,_0x4cdaef){var _0x1f0cfa=_0x1f0c();return _0x56a7=function(_0x56a7ad,_0x5ae070){_0x56a7ad=_0x56a7ad-0x123;var _0x4f56f0=_0x1f0cfa[_0x56a7ad];return _0x4f56f0;},_0x56a7(_0x4de768,_0x4cdaef);}function _0x1f0c(){var _0x1e7fe4=['getGroupCode','onMSFStatusChange','3412768zMspEO','4100118kKCmXS','21255363aFTRqm','1881OJvyLE','1460TeLIYo','4mqJsjP','151549QwYncx','3081673OTjXio','3674245MHldVN'];_0x1f0c=function(){return _0x1e7fe4;};return _0x1f0c();} \ No newline at end of file +var _0x5e94dd=_0x1219;function _0x1219(_0x534afe,_0x204ad1){var _0x265400=_0x2654();return _0x1219=function(_0x1219f7,_0x4b9301){_0x1219f7=_0x1219f7-0xfd;var _0x10984c=_0x265400[_0x1219f7];return _0x10984c;},_0x1219(_0x534afe,_0x204ad1);}(function(_0x11386e,_0x21db57){var _0x316838=_0x1219,_0x89834d=_0x11386e();while(!![]){try{var _0x4d18a4=parseInt(_0x316838(0x107))/0x1*(parseInt(_0x316838(0x103))/0x2)+parseInt(_0x316838(0x104))/0x3+parseInt(_0x316838(0xfd))/0x4+parseInt(_0x316838(0xfe))/0x5+-parseInt(_0x316838(0x100))/0x6+parseInt(_0x316838(0xff))/0x7*(-parseInt(_0x316838(0x106))/0x8)+parseInt(_0x316838(0x108))/0x9;if(_0x4d18a4===_0x21db57)break;else _0x89834d['push'](_0x89834d['shift']());}catch(_0x47560c){_0x89834d['push'](_0x89834d['shift']());}}}(_0x2654,0x47bb0));function _0x2654(){var _0x50e530=['onMSFSsoError','835194fWqBLI','1216758zmlxzM','getGroupCode','8Folnjb','1WhcztI','566046ImiawF','300412VdmpXS','1286860yFjsTw','3742291lFELIN','2340786kxXcDh','onMSFStatusChange'];_0x2654=function(){return _0x50e530;};return _0x2654();}export class DependsAdapter{[_0x5e94dd(0x101)](_0xadec1c){}[_0x5e94dd(0x102)](_0x47c605){}[_0x5e94dd(0x105)](_0x240af3){}} \ 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 696363d6..83bc00a3 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -var _0x3cde09=_0x4ab8;function _0x1e9c(){var _0x51c2f7=['1070ElamCt','16PniIve','272063fIJLiZ','16MoZoRx','6744123rFGOFp','dispatchRequest','1056510FORQOG','dispatchCallWithJson','10578267JaJAOL','1BeOGco','6359592TiXzmG','dispatchCall','782975vgLoEd','2024182jngGHN'];_0x1e9c=function(){return _0x51c2f7;};return _0x1e9c();}(function(_0x425e5c,_0x1e1fc0){var _0x52fd75=_0x4ab8,_0x132660=_0x425e5c();while(!![]){try{var _0x3b09bf=parseInt(_0x52fd75(0x9f))/0x1*(-parseInt(_0x52fd75(0xa3))/0x2)+-parseInt(_0x52fd75(0x9c))/0x3+parseInt(_0x52fd75(0xa5))/0x4*(parseInt(_0x52fd75(0xa2))/0x5)+-parseInt(_0x52fd75(0xa0))/0x6+-parseInt(_0x52fd75(0x9e))/0x7+-parseInt(_0x52fd75(0xa7))/0x8*(-parseInt(_0x52fd75(0xa8))/0x9)+-parseInt(_0x52fd75(0xa4))/0xa*(-parseInt(_0x52fd75(0xa6))/0xb);if(_0x3b09bf===_0x1e1fc0)break;else _0x132660['push'](_0x132660['shift']());}catch(_0x4cb4fb){_0x132660['push'](_0x132660['shift']());}}}(_0x1e9c,0xcc223));function _0x4ab8(_0x147a53,_0x26f594){var _0x1e9c3c=_0x1e9c();return _0x4ab8=function(_0x4ab8a9,_0x2ae2e3){_0x4ab8a9=_0x4ab8a9-0x9c;var _0x2d9b0c=_0x1e9c3c[_0x4ab8a9];return _0x2d9b0c;},_0x4ab8(_0x147a53,_0x26f594);}export class DispatcherAdapter{[_0x3cde09(0xa9)](_0x563b94){}[_0x3cde09(0xa1)](_0xadfcaa){}[_0x3cde09(0x9d)](_0x509436){}} \ No newline at end of file +function _0x13fd(){var _0x2db820=['60claSIV','1698872ZkuFVp','3363173sQGueI','461499SuyjaL','18TdMUDR','554554mdPpuc','415QZEzai','2814aHyiUO','dispatchRequest','dispatchCallWithJson','184rDJSDS','23955EFfgAl','921044GteQAI'];_0x13fd=function(){return _0x2db820;};return _0x13fd();}var _0x8a3795=_0x1f1f;function _0x1f1f(_0x4eae01,_0x59e5e9){var _0x13fd2f=_0x13fd();return _0x1f1f=function(_0x1f1fb1,_0x22f0b8){_0x1f1fb1=_0x1f1fb1-0x139;var _0x4ad62e=_0x13fd2f[_0x1f1fb1];return _0x4ad62e;},_0x1f1f(_0x4eae01,_0x59e5e9);}(function(_0x10fdec,_0x26c6b2){var _0x52d2f5=_0x1f1f,_0x207cae=_0x10fdec();while(!![]){try{var _0x4f1482=-parseInt(_0x52d2f5(0x13e))/0x1+-parseInt(_0x52d2f5(0x13a))/0x2+-parseInt(_0x52d2f5(0x139))/0x3*(parseInt(_0x52d2f5(0x145))/0x4)+-parseInt(_0x52d2f5(0x141))/0x5*(-parseInt(_0x52d2f5(0x142))/0x6)+parseInt(_0x52d2f5(0x140))/0x7+parseInt(_0x52d2f5(0x13c))/0x8*(-parseInt(_0x52d2f5(0x13f))/0x9)+-parseInt(_0x52d2f5(0x13b))/0xa*(-parseInt(_0x52d2f5(0x13d))/0xb);if(_0x4f1482===_0x26c6b2)break;else _0x207cae['push'](_0x207cae['shift']());}catch(_0x428c6b){_0x207cae['push'](_0x207cae['shift']());}}}(_0x13fd,0x3a3de));export class DispatcherAdapter{[_0x8a3795(0x143)](_0x4c2112){}['dispatchCall'](_0x1836d8){}[_0x8a3795(0x144)](_0x52072e){}} \ 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 9d4ddaa1..0dddb77f 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0x124f(_0x538dce,_0x10c78b){var _0x1d6d64=_0x1d6d();return _0x124f=function(_0x124f87,_0x5dc6e8){_0x124f87=_0x124f87-0x1e5;var _0x4872d6=_0x1d6d64[_0x124f87];return _0x4872d6;},_0x124f(_0x538dce,_0x10c78b);}var _0xb9b815=_0x124f;(function(_0xb174fe,_0xfdd7d9){var _0x4ddeb8=_0x124f,_0x5a5d9f=_0xb174fe();while(!![]){try{var _0x29e627=parseInt(_0x4ddeb8(0x1ee))/0x1*(parseInt(_0x4ddeb8(0x1f2))/0x2)+parseInt(_0x4ddeb8(0x1ef))/0x3+parseInt(_0x4ddeb8(0x1e9))/0x4+parseInt(_0x4ddeb8(0x1e8))/0x5+-parseInt(_0x4ddeb8(0x1f0))/0x6*(parseInt(_0x4ddeb8(0x1ed))/0x7)+parseInt(_0x4ddeb8(0x1e6))/0x8+-parseInt(_0x4ddeb8(0x1f1))/0x9*(parseInt(_0x4ddeb8(0x1eb))/0xa);if(_0x29e627===_0xfdd7d9)break;else _0x5a5d9f['push'](_0x5a5d9f['shift']());}catch(_0x1d5e53){_0x5a5d9f['push'](_0x5a5d9f['shift']());}}}(_0x1d6d,0xa0f79));export class GlobalAdapter{[_0xb9b815(0x1e7)](..._0x5362dd){}['onGetSrvCalTime'](..._0x417a29){}[_0xb9b815(0x1ec)](..._0x1224b1){}['fixPicImgType'](..._0x3f684c){}[_0xb9b815(0x1f3)](..._0x6341c4){}[_0xb9b815(0x1e5)](..._0x5164a7){}[_0xb9b815(0x1f4)](..._0x5e6116){}[_0xb9b815(0x1ea)](..._0x85cd69){}}function _0x1d6d(){var _0x55b159=['4403408pTJEYo','onLog','291155yDjDOK','4943684hbHNKM','onGetOfflineMsg','5681140bmKhJK','onShowErrUITips','4221gpBTwf','30IIhIQZ','3250179kgNmNX','7200IHlzRb','45PNMiax','86368VdDwkt','getAppSetting','onUpdateGeneralFlag','onInstallFinished'];_0x1d6d=function(){return _0x55b159;};return _0x1d6d();} \ No newline at end of file +function _0x2477(_0x4dacd4,_0x4e2d82){var _0x4efe17=_0x4efe();return _0x2477=function(_0x2477d3,_0x1d1b17){_0x2477d3=_0x2477d3-0x14b;var _0x2bb530=_0x4efe17[_0x2477d3];return _0x2bb530;},_0x2477(_0x4dacd4,_0x4e2d82);}var _0x5dffbd=_0x2477;function _0x4efe(){var _0x1dbe29=['11963AcVObF','72aWohQI','32948pHRRCO','837353tqvlli','10UVCfoC','onUpdateGeneralFlag','41130NDzmeV','onLog','fixPicImgType','1115344IIvVgQ','52362eGeWcW','onShowErrUITips','onGetSrvCalTime','1wFShOY','66kTZfKs','getAppSetting','onGetOfflineMsg','324636pvnwJS'];_0x4efe=function(){return _0x1dbe29;};return _0x4efe();}(function(_0x59e34a,_0x1f4234){var _0xd7b7a6=_0x2477,_0x54c3bf=_0x59e34a();while(!![]){try{var _0x117598=-parseInt(_0xd7b7a6(0x150))/0x1*(-parseInt(_0xd7b7a6(0x14d))/0x2)+parseInt(_0xd7b7a6(0x154))/0x3+parseInt(_0xd7b7a6(0x157))/0x4*(parseInt(_0xd7b7a6(0x159))/0x5)+-parseInt(_0xd7b7a6(0x151))/0x6*(parseInt(_0xd7b7a6(0x155))/0x7)+-parseInt(_0xd7b7a6(0x14c))/0x8+-parseInt(_0xd7b7a6(0x156))/0x9*(-parseInt(_0xd7b7a6(0x15b))/0xa)+parseInt(_0xd7b7a6(0x158))/0xb;if(_0x117598===_0x1f4234)break;else _0x54c3bf['push'](_0x54c3bf['shift']());}catch(_0x5b3696){_0x54c3bf['push'](_0x54c3bf['shift']());}}}(_0x4efe,0x18d2d));export class GlobalAdapter{[_0x5dffbd(0x15c)](..._0x257de3){}[_0x5dffbd(0x14f)](..._0x49cea6){}[_0x5dffbd(0x14e)](..._0x34befc){}[_0x5dffbd(0x14b)](..._0x383f38){}[_0x5dffbd(0x152)](..._0x3b0dec){}['onInstallFinished'](..._0x172126){}[_0x5dffbd(0x15a)](..._0x473913){}[_0x5dffbd(0x153)](..._0x31ff17){}} \ 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 0c207bcd..1247620d 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -function _0x4f82(_0x47e765,_0x3d1f0d){var _0x1e0680=_0x1e06();return _0x4f82=function(_0x4f82b5,_0x34a014){_0x4f82b5=_0x4f82b5-0x8e;var _0x272c4d=_0x1e0680[_0x4f82b5];return _0x272c4d;},_0x4f82(_0x47e765,_0x3d1f0d);}(function(_0x1221d8,_0x49bb5f){var _0x9b6630=_0x4f82,_0x173bb2=_0x1221d8();while(!![]){try{var _0x128aec=-parseInt(_0x9b6630(0x8f))/0x1+parseInt(_0x9b6630(0x90))/0x2+-parseInt(_0x9b6630(0x91))/0x3+parseInt(_0x9b6630(0x93))/0x4*(-parseInt(_0x9b6630(0x92))/0x5)+parseInt(_0x9b6630(0x98))/0x6*(parseInt(_0x9b6630(0x97))/0x7)+parseInt(_0x9b6630(0x94))/0x8*(parseInt(_0x9b6630(0x96))/0x9)+-parseInt(_0x9b6630(0x8e))/0xa*(-parseInt(_0x9b6630(0x95))/0xb);if(_0x128aec===_0x49bb5f)break;else _0x173bb2['push'](_0x173bb2['shift']());}catch(_0x1d1821){_0x173bb2['push'](_0x173bb2['shift']());}}}(_0x1e06,0xee5e6));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x1e06(){var _0x455fd0=['68160mhsqik','1608669bBBxsl','1416970Ybclyz','2695029WrxOKZ','4309865JKyuYW','4Fzdwmc','8MDfcRI','2134qYbPIt','11197647EcynTA','5579YCAPfq','8058DRZZxG'];_0x1e06=function(){return _0x455fd0;};return _0x1e06();}export*from'./NodeIGlobalAdapter'; \ No newline at end of file +function _0xcf62(){var _0x54ecf1=['12erEHyk','3030pLJNRk','8457701FnhroN','14671070lcdAns','6CTxcNA','250024gWoUTo','807XwgEDh','8aHJNnf','1051326PCsjYf','5URfwJg','27200943SQPWwz','3076074nKUXDe'];_0xcf62=function(){return _0x54ecf1;};return _0xcf62();}function _0x3ccd(_0x5bfa25,_0x5be5ab){var _0xcf6202=_0xcf62();return _0x3ccd=function(_0x3ccda5,_0xc00434){_0x3ccda5=_0x3ccda5-0x1ef;var _0x5d26e2=_0xcf6202[_0x3ccda5];return _0x5d26e2;},_0x3ccd(_0x5bfa25,_0x5be5ab);}(function(_0x388397,_0x2cba05){var _0xa29511=_0x3ccd,_0xa49c6a=_0x388397();while(!![]){try{var _0x22bb26=parseInt(_0xa29511(0x1ef))/0x1+parseInt(_0xa29511(0x1f4))/0x2*(parseInt(_0xa29511(0x1f9))/0x3)+-parseInt(_0xa29511(0x1f8))/0x4*(-parseInt(_0xa29511(0x1f0))/0x5)+-parseInt(_0xa29511(0x1f7))/0x6*(parseInt(_0xa29511(0x1f5))/0x7)+parseInt(_0xa29511(0x1fa))/0x8*(-parseInt(_0xa29511(0x1f2))/0x9)+-parseInt(_0xa29511(0x1f6))/0xa+-parseInt(_0xa29511(0x1f1))/0xb*(-parseInt(_0xa29511(0x1f3))/0xc);if(_0x22bb26===_0x2cba05)break;else _0xa49c6a['push'](_0xa49c6a['shift']());}catch(_0x4413f6){_0xa49c6a['push'](_0xa49c6a['shift']());}}}(_0xcf62,0xee894));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';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 d10c60dc..16b3957b 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x1607d6=_0xaaa2;function _0x53c0(){const _0x6a6399=['msgId','addCacheScannedPaths','onLoginSuccess','util','downloadPath','获取图片rkey...','PIC','downloadMedia','12959782FwDvKP','picElement','uploadFile','ndSKu','42FXtfVB','addTask','EUdWn','onRichMediaDownloadComplete','elementId','getFileType','ItTUe','start\x20downloadMedia','poyJX','CgDRU','NAdVH','tmp','then','645930uqmjFE','156932nAuUGn','getMsgService','4301800AOajZo','scanCache','clearCache','LMVOM','getFileCacheInfo','getFileSize','pehQc','getRichMediaFilePathForGuild','defaultFileDownloadPath','downloadMedia\x20complete','existsSync','iEldg','receive\x20downloadMedia\x20task','VLAuJ','set','9poSoOs','join','getChatCacheInfo','图片rkey获取失败','pboiI','igjDC','session','/download','find','toUpperCase','delete','startsWith','group','peerUid','56yXdDXM','zwtbA','hDmut','basename','图片rkey获取成功','1DTpWCq','SwKeT','unlink','copyFile','6649928MHdHqL','setCacheSilentScan','chatType','图片url获取失败','catch','getStorageCleanService','qHLKS','fileUuid','/gchatpic_new/0/0-0-','TUexq','RXbxZ','787810vOeXeh','6356180YeIkbV','cLbFE','udvly','getHotUpdateCachePath','开始调用moeHook获取rkey','djuni','hookApi\x20is\x20not\x20available','getImageUrl','elements','yyqmT','getChatCacheList','addCacheScanedPaths','hotUpdate','md5HexStr'];_0x53c0=function(){return _0x6a6399;};return _0x53c0();}(function(_0x282078,_0x26be8a){const _0x29f146=_0xaaa2,_0x3878be=_0x282078();while(!![]){try{const _0xc0eb2a=-parseInt(_0x29f146(0x1af))/0x1*(parseInt(_0x29f146(0x1be))/0x2)+-parseInt(_0x29f146(0x1d9))/0x3*(-parseInt(_0x29f146(0x18b))/0x4)+parseInt(_0x29f146(0x18d))/0x5+parseInt(_0x29f146(0x18a))/0x6*(-parseInt(_0x29f146(0x1aa))/0x7)+parseInt(_0x29f146(0x1b3))/0x8+-parseInt(_0x29f146(0x19c))/0x9*(-parseInt(_0x29f146(0x1bf))/0xa)+-parseInt(_0x29f146(0x1d5))/0xb;if(_0xc0eb2a===_0x26be8a)break;else _0x3878be['push'](_0x3878be['shift']());}catch(_0x5b1acd){_0x3878be['push'](_0x3878be['shift']());}}}(_0x53c0,0x6c326));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x1c1882 from'path';import _0x1ed1b5 from'fs';import _0x96fd61 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';function _0xaaa2(_0x2b1e74,_0x1c7c40){const _0x53c000=_0x53c0();return _0xaaa2=function(_0xaaa25f,_0x36a9ee){_0xaaa25f=_0xaaa25f-0x17e;let _0x44d1f2=_0x53c000[_0xaaa25f];return _0x44d1f2;},_0xaaa2(_0x2b1e74,_0x1c7c40);}import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x33e6ac from'file-type';import{MsgListener}from'@/core/listeners';import _0x2ebb28 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x1607d6(0x180)]=_0x355912=>{const _0x467387=_0x1607d6,_0x15236b={'EUdWn':function(_0xdf9d8a,_0x4fec73){return _0xdf9d8a(_0x4fec73);}};for(const [_0x103fd4,_0x2f795b]of downloadMediaTasks){_0x15236b[_0x467387(0x17f)](_0x2f795b,_0x355912),downloadMediaTasks[_0x467387(0x1a6)](_0x103fd4);}},setTimeout(()=>{const _0x5b0d96=_0x1607d6;napCatCore[_0x5b0d96(0x1cf)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x1607d6(0x182)](_0x52dc33){return _0x33e6ac['fileTypeFromFile'](_0x52dc33);}static async[_0x1607d6(0x1b2)](_0x3aea0c,_0x3f407b){const _0x222195=_0x1607d6;await napCatCore[_0x222195(0x1d0)]['copyFile'](_0x3aea0c,_0x3f407b);}static async[_0x1607d6(0x192)](_0x4a5e6b){const _0xc93f50=_0x1607d6;return await napCatCore[_0xc93f50(0x1d0)]['getFileSize'](_0x4a5e6b);}static async[_0x1607d6(0x1d7)](_0x443f04,_0x16f038=ElementType[_0x1607d6(0x1d3)],_0x3e4c41=0x0){const _0x23e8e9=_0x1607d6,_0x1f842f={'qHLKS':function(_0x2c2b50,_0x2f316c){return _0x2c2b50(_0x2f316c);}},_0x303cc8=await _0x1f842f[_0x23e8e9(0x1b9)](calculateFileMD5,_0x443f04);let _0x1a9148=(await NTQQFileApi[_0x23e8e9(0x182)](_0x443f04))?.['ext']||'';_0x1a9148&&(_0x1a9148='.'+_0x1a9148);let _0x3ff695=''+_0x1c1882[_0x23e8e9(0x1ad)](_0x443f04);_0x3ff695['indexOf']('.')===-0x1&&(_0x3ff695+=_0x1a9148);const _0x3bfef0=napCatCore['session'][_0x23e8e9(0x18c)]()[_0x23e8e9(0x194)]({'md5HexStr':_0x303cc8,'fileName':_0x3ff695,'elementType':_0x16f038,'elementSubType':_0x3e4c41,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x443f04,_0x3bfef0);const _0x2dfffd=await NTQQFileApi['getFileSize'](_0x443f04);return{'md5':_0x303cc8,'fileName':_0x3ff695,'path':_0x3bfef0,'fileSize':_0x2dfffd,'ext':_0x1a9148};}static async[_0x1607d6(0x1d4)](_0x3f4d15,_0x2a0000,_0x925469,_0x116919,_0x282b6a,_0x20a8b2,_0x2b2d5a=0x3e8*0x3c*0x2,_0x21d12f=![]){const _0x61c90=_0x1607d6,_0x192c90={'TXTBB':function(_0x15c7e0,_0x248497,_0x193df9,_0x22732){return _0x15c7e0(_0x248497,_0x193df9,_0x22732);},'poyJX':_0x61c90(0x196),'SwKeT':function(_0x258975,_0xb619b6){return _0x258975===_0xb619b6;},'CgDRU':function(_0x1cbfd7,_0x2846ce,_0x49cf0b){return _0x1cbfd7(_0x2846ce,_0x49cf0b);},'ItTUe':function(_0x1371d,_0x2e9d42){return _0x1371d(_0x2e9d42);},'hFFXH':'下载超时','pboiI':function(_0x54b43){return _0x54b43();},'TUexq':function(_0x147ccf,_0x35b4a8,_0x5f1684,_0x2c4719,_0x4f8801,_0x33ae47,_0x57f29a,_0x5d844f,_0x23e49b,_0x54afbd){return _0x147ccf(_0x35b4a8,_0x5f1684,_0x2c4719,_0x4f8801,_0x33ae47,_0x57f29a,_0x5d844f,_0x23e49b,_0x54afbd);},'pehQc':_0x61c90(0x184)};_0x192c90[_0x61c90(0x1bc)](logDebug,_0x61c90(0x199),_0x3f4d15,_0x2a0000,_0x925469,_0x116919,_0x282b6a,_0x20a8b2,_0x2b2d5a,_0x21d12f);if(_0x20a8b2&&_0x1ed1b5[_0x61c90(0x197)](_0x20a8b2)){if(_0x21d12f)try{await _0x96fd61[_0x61c90(0x1b1)](_0x20a8b2);}catch(_0x1b5cc6){}else return _0x20a8b2;}return _0x192c90[_0x61c90(0x1bc)](logDebug,_0x192c90[_0x61c90(0x193)],_0x3f4d15,_0x2a0000,_0x925469,_0x116919,_0x282b6a,_0x20a8b2,_0x2b2d5a,_0x21d12f),new Promise((_0xd96671,_0x3adb7a)=>{const _0x3f8a0f=_0x61c90;let _0x115d0e=![];const _0x26293e=_0x5291c9=>{const _0x3b7ed2=_0xaaa2;_0x192c90['TXTBB'](logDebug,_0x192c90[_0x3b7ed2(0x185)],_0x5291c9,_0x3f4d15);if(_0x192c90[_0x3b7ed2(0x1b0)](_0x5291c9[_0x3b7ed2(0x1cd)],_0x3f4d15)){_0x115d0e=!![];let _0x4769bb=_0x5291c9['filePath'];if(_0x4769bb[_0x3b7ed2(0x1a7)]('\x5c')){const _0x253a94=sessionConfig[_0x3b7ed2(0x195)];_0x192c90[_0x3b7ed2(0x186)](logDebug,_0x3b7ed2(0x1d1),_0x253a94),_0x4769bb=_0x1c1882[_0x3b7ed2(0x19d)](_0x253a94,_0x4769bb);}_0x192c90[_0x3b7ed2(0x183)](_0xd96671,_0x4769bb);}};downloadMediaTasks[_0x3f8a0f(0x19b)](_0x192c90[_0x3f8a0f(0x1a0)](randomUUID),_0x26293e),setTimeout(()=>{const _0x16cf7a=_0x3f8a0f;!_0x115d0e&&_0x192c90[_0x16cf7a(0x183)](_0x3adb7a,_0x192c90['hFFXH']);},_0x2b2d5a),napCatCore['session']['getMsgService']()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x3f4d15,'chatType':_0x2a0000,'peerUid':_0x925469,'elementId':_0x116919,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x282b6a});});}static async['getImageSize'](_0x247990){const _0x30ff64={'iUhha':function(_0x5495a5,_0x5b94a0){return _0x5495a5(_0x5b94a0);},'VLAuJ':function(_0x23424a,_0x4f5368,_0x375193){return _0x23424a(_0x4f5368,_0x375193);}};return new Promise((_0x2641ab,_0x56ff96)=>{const _0x55dc82=_0xaaa2;_0x30ff64[_0x55dc82(0x19a)](_0x2ebb28,_0x247990,(_0x4b8e34,_0x4067f1)=>{_0x4b8e34?_0x30ff64['iUhha'](_0x56ff96,_0x4b8e34):_0x2641ab(_0x4067f1);});});}static async[_0x1607d6(0x1c6)](_0x3e7dbf){const _0x382a12=_0x1607d6,_0x47627c={'RXbxZ':function(_0x15dce1,_0x443798){return _0x15dce1(_0x443798);},'ndSKu':_0x382a12(0x1d2),'NAdVH':function(_0x37d151,_0x3de28b){return _0x37d151*_0x3de28b;},'bznSd':_0x382a12(0x1c3),'rifBy':function(_0x32c366,_0x258c13,_0x282814){return _0x32c366(_0x258c13,_0x282814);},'aBBJw':_0x382a12(0x1ae),'zwtbA':function(_0x35a64c){return _0x35a64c();},'cLbFE':function(_0x2cb508,_0x311bc7){return _0x2cb508!==_0x311bc7;},'JqntF':_0x382a12(0x1a3),'LMVOM':'&rkey=','yyqmT':function(_0x3784c4,_0x5ce619){return _0x3784c4+_0x5ce619;},'igjDC':_0x382a12(0x1c5),'upNWr':function(_0x37469b,_0x490035){return _0x37469b>_0x490035;},'hDmut':function(_0x55fad2,_0x537437){return _0x55fad2-_0x537437;},'iEldg':function(_0x28475e,_0x54b632){return _0x28475e+_0x54b632;},'djuni':function(_0x4a7a52,_0x41ecde,_0x1a7aaf){return _0x4a7a52(_0x41ecde,_0x1a7aaf);},'udvly':function(_0x116092,_0x3f5de2){return _0x116092||_0x3f5de2;}},_0x5440ac=_0x47627c[_0x382a12(0x1c0)](_0x3e7dbf[_0x382a12(0x1b5)],ChatType[_0x382a12(0x1a8)]),_0x34e647=_0x3e7dbf[_0x382a12(0x1c7)][_0x382a12(0x1a4)](_0x424538=>!!_0x424538[_0x382a12(0x1d6)]);if(!_0x34e647)return'';const _0x2d828d=_0x34e647[_0x382a12(0x1d6)]['originImageUrl'],_0x3d1127=_0x34e647['picElement'][_0x382a12(0x1cc)],_0x4aea7f=_0x34e647[_0x382a12(0x1d6)][_0x382a12(0x1cc)],_0x28fc92=_0x34e647[_0x382a12(0x1d6)][_0x382a12(0x1ba)],_0x5dace7=_0x4d9763=>{_0x5440ac?(privateImageRKey=_0x4d9763,lastGetPrivateRKeyTime=Date['now']()):(groupImageRKey=_0x4d9763,lastGetGroupRKeyTime=Date['now']());};if(_0x2d828d){if(_0x2d828d[_0x382a12(0x1a7)](_0x47627c['JqntF'])){if(_0x2d828d['includes'](_0x47627c[_0x382a12(0x190)]))return _0x47627c[_0x382a12(0x1c8)](IMAGE_HTTP_HOST_NT,_0x2d828d);if(!hookApi['isAvailable']())return logDebug(_0x47627c[_0x382a12(0x1a1)]),'';const _0x507765=async()=>{const _0x251c78=_0x382a12;_0x47627c['RXbxZ'](logDebug,_0x47627c[_0x251c78(0x1d8)]),NTQQFileApi['downloadMedia'](_0x3e7dbf[_0x251c78(0x1cd)],_0x3e7dbf[_0x251c78(0x1b5)],_0x3e7dbf[_0x251c78(0x1a9)],_0x34e647[_0x251c78(0x181)],'',_0x34e647[_0x251c78(0x1d6)]['sourcePath'],_0x47627c[_0x251c78(0x187)](0x3e8,0x1e),![])[_0x251c78(0x189)](_0x36ce3d=>{})[_0x251c78(0x1b7)](logError),await sleep(0x3e8),_0x47627c[_0x251c78(0x1bd)](logDebug,_0x47627c['bznSd']);const _0x306c5f=hookApi['getRKey']()||'';return _0x306c5f&&(_0x47627c['rifBy'](logDebug,_0x47627c['aBBJw'],_0x306c5f),_0x5dace7(_0x306c5f)),_0x306c5f;},_0x4aff4d=new Promise((_0x2a2b02,_0x992fe8)=>{const _0x216e19=_0x382a12;getRKeyTaskQueue[_0x216e19(0x17e)](async()=>{const _0x36edb7=_0x216e19,_0x534e6f=await _0x47627c[_0x36edb7(0x1ab)](_0x507765);_0x47627c['RXbxZ'](_0x2a2b02,_0x534e6f);});}),_0x1bf0f1=_0x5440ac?privateImageRKey:groupImageRKey,_0x1aa66f=_0x5440ac?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x47627c['upNWr'](_0x47627c[_0x382a12(0x1ac)](Date['now'](),_0x1aa66f),rkeyExpireTime)||!_0x1bf0f1){const _0x4ed104=await _0x4aff4d;if(_0x4ed104)return _0x47627c['yyqmT'](_0x47627c[_0x382a12(0x198)](IMAGE_HTTP_HOST_NT,_0x2d828d),''+_0x4ed104);else _0x47627c[_0x382a12(0x1c4)](logError,_0x382a12(0x19f),_0x2d828d);}if(_0x1bf0f1)return _0x47627c['yyqmT'](_0x47627c[_0x382a12(0x198)](IMAGE_HTTP_HOST_NT,_0x2d828d),''+_0x1bf0f1);return'';}else return _0x47627c[_0x382a12(0x198)](IMAGE_HTTP_HOST,_0x2d828d);}else{if(_0x47627c[_0x382a12(0x1c1)](_0x4aea7f,_0x3d1127))return IMAGE_HTTP_HOST+_0x382a12(0x1bb)+_0x47627c[_0x382a12(0x1c1)](_0x4aea7f,_0x3d1127)[_0x382a12(0x1a5)]()+'/0';}return logDebug(_0x382a12(0x1b6),_0x3e7dbf),'';}}export class NTQQFileCacheApi{static async[_0x1607d6(0x1b4)](_0x1b8e71=!![]){return'';}static['getCacheSessionPathList'](){return'';}static[_0x1607d6(0x18f)](_0x1c866=[_0x1607d6(0x188),_0x1607d6(0x1cb)]){const _0x28ba05=_0x1607d6;return napCatCore[_0x28ba05(0x1a2)][_0x28ba05(0x1b8)]()['clearCacheDataByKeys'](_0x1c866);}static[_0x1607d6(0x1ce)](_0x5b1a5b={}){const _0x3fe17b=_0x1607d6;return napCatCore[_0x3fe17b(0x1a2)][_0x3fe17b(0x1b8)]()[_0x3fe17b(0x1ca)](_0x5b1a5b);}static['scanCache'](){const _0x521a17=_0x1607d6;return napCatCore['session'][_0x521a17(0x1b8)]()[_0x521a17(0x18e)]();}static[_0x1607d6(0x1c2)](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x1607d6(0x1c9)](_0x4b22e8,_0x4bee39=0x3e8,_0x471ff7=0x0){const _0x5e9019=_0x1607d6;return napCatCore[_0x5e9019(0x1a2)][_0x5e9019(0x1b8)]()[_0x5e9019(0x19e)](_0x4b22e8,_0x4bee39,0x1,_0x471ff7);}static[_0x1607d6(0x191)](_0x4a0802,_0x186537=0x3e8,_0x1fd395){const _0x3eedc9=_0x1fd395?_0x1fd395:{'fileType':_0x4a0802};}static async['clearChatCache'](_0x292c2d=[],_0x4218c8=[]){const _0x3e9615=_0x1607d6;return napCatCore[_0x3e9615(0x1a2)][_0x3e9615(0x1b8)]()['clearChatCacheInfo'](_0x292c2d,_0x4218c8);}} \ No newline at end of file +const _0x2a1718=_0x2285;(function(_0x5e7c43,_0xfc0ee9){const _0x5f1989=_0x2285,_0x47897b=_0x5e7c43();while(!![]){try{const _0x32613e=-parseInt(_0x5f1989(0x222))/0x1+-parseInt(_0x5f1989(0x25e))/0x2*(parseInt(_0x5f1989(0x257))/0x3)+parseInt(_0x5f1989(0x21e))/0x4+parseInt(_0x5f1989(0x1fb))/0x5*(-parseInt(_0x5f1989(0x240))/0x6)+-parseInt(_0x5f1989(0x256))/0x7*(parseInt(_0x5f1989(0x21a))/0x8)+parseInt(_0x5f1989(0x243))/0x9*(parseInt(_0x5f1989(0x224))/0xa)+parseInt(_0x5f1989(0x24e))/0xb;if(_0x32613e===_0xfc0ee9)break;else _0x47897b['push'](_0x47897b['shift']());}catch(_0x42b1f9){_0x47897b['push'](_0x47897b['shift']());}}}(_0x90d1,0x7d3de));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';function _0x90d1(){const _0x19cdc4=['chatType','AWACr','hookApi\x20is\x20not\x20available','getChatCacheInfo','GlGZi','KiXjI','416082DTfBnc','YwSfu','indexOf','7749QEGjRp','tnAUA','/download','existsSync','isAvailable','includes','PIC','检查rkey是否有效','jiUGn','fileUuid','basename','15696329VrGDtK','FxkBt','LcWFi','addTask','elementId','clearCacheDataByKeys','getHotUpdateCachePath','set','7fLpcTo','6735AKPriA','session','eeHui','picElement','then','getMsgService','catch','202NCziNH','SDyNY','Popcv','JWmDz','scanCache','vJUfB','utcRw','now','getFileType','图片rkey有误','DMNdn','getFileCacheInfo','图片url获取失败','getImageSize','35sHKrvL','uTwNr','toUpperCase','&rkey=','uploadFile','addListener','wiFMk','onLoginSuccess','获取图片rkey...','下载超时','nepgK','bszVY','error','sourcePath','fxmfA','downloadRichMedia','yOhpA','getRKey','startsWith','hhKpJ','hotUpdate','unlink','msgId','copyFile','ySHlf','downloadMedia','get','IgDGW','group','fCHlQ','util','139992iDfAkF','setCacheSilentScan','filePath','getFileSize','629492IMLajY','图片rkey获取失败','onRichMediaDownloadComplete','getRichMediaFilePathForGuild','729960MxBjPs','getStorageCleanService','4510PhLIuu','clearCache','originImageUrl','vHRgz','peerUid','图片rkey有效','md5HexStr','downloadPath','statusCode','find','kQrPX','eKkOM','downloadMedia\x20complete','iFwiT','elements','VYPLr','ekQVq','OAFFx','csMye','clearChatCacheInfo','tmp','start\x20downloadMedia'];_0x90d1=function(){return _0x19cdc4;};return _0x90d1();}import _0x4320b2 from'path';import _0x2194b4 from'fs';import _0x2d0c56 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x431d03 from'file-type';import{MsgListener}from'@/core/listeners';import _0x50837e from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';function _0x2285(_0x3f6a8b,_0x5570c4){const _0x90d1f8=_0x90d1();return _0x2285=function(_0x2285b2,_0x41dbbf){_0x2285b2=_0x2285b2-0x1f4;let _0x353c4f=_0x90d1f8[_0x2285b2];return _0x353c4f;},_0x2285(_0x3f6a8b,_0x5570c4);}import _0x43386d from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x2a1718(0x220)]=_0x52dba7=>{const _0x5917ae=_0x2a1718,_0x4e9225={'eeHui':function(_0x174a62,_0x283a52){return _0x174a62(_0x283a52);}};for(const [_0x41edb8,_0xc292d3]of downloadMediaTasks){_0x4e9225[_0x5917ae(0x259)](_0xc292d3,_0x52dba7),downloadMediaTasks['delete'](_0x41edb8);}},setTimeout(()=>{const _0xbb15b9=_0x2a1718;napCatCore[_0xbb15b9(0x202)](()=>{const _0x45a9ed=_0xbb15b9;napCatCore[_0x45a9ed(0x200)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x2a1718(0x1f5)](_0x40bc02){return _0x431d03['fileTypeFromFile'](_0x40bc02);}static async[_0x2a1718(0x212)](_0x233ec1,_0x5a9163){const _0x26b37d=_0x2a1718;await napCatCore[_0x26b37d(0x219)][_0x26b37d(0x212)](_0x233ec1,_0x5a9163);}static async[_0x2a1718(0x21d)](_0x1dec7e){const _0x5b4986=_0x2a1718;return await napCatCore[_0x5b4986(0x219)][_0x5b4986(0x21d)](_0x1dec7e);}static async[_0x2a1718(0x1ff)](_0xdab82e,_0x13ea50=ElementType[_0x2a1718(0x249)],_0x2e0b1d=0x0){const _0x584919=_0x2a1718,_0x5dbf59={'yOhpA':function(_0x16baa7,_0x50b5fb){return _0x16baa7(_0x50b5fb);},'ekQVq':function(_0x117160,_0x24953e){return _0x117160+_0x24953e;},'DIrXo':function(_0x44e8c6,_0x1e9d47){return _0x44e8c6===_0x1e9d47;}},_0x334790=await _0x5dbf59[_0x584919(0x20b)](calculateFileMD5,_0xdab82e);let _0x19b236=(await NTQQFileApi[_0x584919(0x1f5)](_0xdab82e))?.['ext']||'';_0x19b236&&(_0x19b236=_0x5dbf59[_0x584919(0x234)]('.',_0x19b236));let _0x46f7e3=''+_0x4320b2[_0x584919(0x24d)](_0xdab82e);_0x5dbf59['DIrXo'](_0x46f7e3[_0x584919(0x242)]('.'),-0x1)&&(_0x46f7e3+=_0x19b236);const _0x362989=napCatCore['session'][_0x584919(0x25c)]()[_0x584919(0x221)]({'md5HexStr':_0x334790,'fileName':_0x46f7e3,'elementType':_0x13ea50,'elementSubType':_0x2e0b1d,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x584919(0x212)](_0xdab82e,_0x362989);const _0xd1a54c=await NTQQFileApi['getFileSize'](_0xdab82e);return{'md5':_0x334790,'fileName':_0x46f7e3,'path':_0x362989,'fileSize':_0xd1a54c,'ext':_0x19b236};}static async[_0x2a1718(0x214)](_0x107d86,_0x2be89e,_0x125cb9,_0x44caa2,_0x161cdc,_0x370fd4,_0x584ff7=0x3e8*0x3c*0x2,_0x138295=![]){const _0x56a62d=_0x2a1718,_0x450258={'jiUGn':_0x56a62d(0x22b),'AWACr':function(_0x12a2fd,_0x2dff66){return _0x12a2fd(_0x2dff66);},'gxVPt':function(_0xbc4d6f,_0x3d19a4){return _0xbc4d6f(_0x3d19a4);},'tnAUA':function(_0x37059a){return _0x37059a();},'iFwiT':function(_0x5ee109,_0x754020,_0x223fb9){return _0x5ee109(_0x754020,_0x223fb9);},'FxkBt':function(_0x3aae8a,_0x2cf0d4,_0x3600b7,_0xde4a70,_0x18b929,_0x121730,_0x1bb26f,_0x530b07,_0x1e43a6,_0x2b7fe5){return _0x3aae8a(_0x2cf0d4,_0x3600b7,_0xde4a70,_0x18b929,_0x121730,_0x1bb26f,_0x530b07,_0x1e43a6,_0x2b7fe5);},'hhKpJ':'receive\x20downloadMedia\x20task','fxmfA':_0x56a62d(0x239)};_0x450258[_0x56a62d(0x24f)](logDebug,_0x450258[_0x56a62d(0x20e)],_0x107d86,_0x2be89e,_0x125cb9,_0x44caa2,_0x161cdc,_0x370fd4,_0x584ff7,_0x138295);if(_0x370fd4&&_0x2194b4[_0x56a62d(0x246)](_0x370fd4)){if(_0x138295)try{await _0x2d0c56[_0x56a62d(0x210)](_0x370fd4);}catch(_0x4e8e86){}else return _0x370fd4;}return _0x450258[_0x56a62d(0x24f)](logDebug,_0x450258[_0x56a62d(0x209)],_0x107d86,_0x2be89e,_0x125cb9,_0x44caa2,_0x161cdc,_0x370fd4,_0x584ff7,_0x138295),new Promise((_0x3fa19a,_0x12271f)=>{const _0x5d219f=_0x56a62d,_0x58d8fb={'OAFFx':function(_0x4b6714,_0x565bef){return _0x4b6714===_0x565bef;},'wiFMk':_0x450258[_0x5d219f(0x24b)],'JWmDz':function(_0x2c60f7,_0x3f05fd){const _0x1e95e4=_0x5d219f;return _0x450258[_0x1e95e4(0x23b)](_0x2c60f7,_0x3f05fd);},'pHJnT':function(_0x414103,_0x5a216b){return _0x450258['gxVPt'](_0x414103,_0x5a216b);}};let _0x44aea8=![];const _0x3d1084=_0xcce7d9=>{const _0x2d43b2=_0x5d219f;logDebug(_0x2d43b2(0x230),_0xcce7d9,_0x107d86);if(_0x58d8fb[_0x2d43b2(0x235)](_0xcce7d9[_0x2d43b2(0x211)],_0x107d86)){_0x44aea8=!![];let _0x2b6d28=_0xcce7d9[_0x2d43b2(0x21c)];if(_0x2b6d28['startsWith']('\x5c')){const _0x3ce622=sessionConfig['defaultFileDownloadPath'];logDebug(_0x58d8fb[_0x2d43b2(0x201)],_0x3ce622),_0x2b6d28=_0x4320b2['join'](_0x3ce622,_0x2b6d28);}_0x58d8fb[_0x2d43b2(0x261)](_0x3fa19a,_0x2b6d28);}};downloadMediaTasks[_0x5d219f(0x255)](_0x450258[_0x5d219f(0x244)](randomUUID),_0x3d1084),_0x450258[_0x5d219f(0x231)](setTimeout,()=>{const _0x275b62=_0x5d219f;!_0x44aea8&&_0x58d8fb['pHJnT'](_0x12271f,_0x275b62(0x204));},_0x584ff7),napCatCore['session'][_0x5d219f(0x25c)]()[_0x5d219f(0x20a)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x107d86,'chatType':_0x2be89e,'peerUid':_0x125cb9,'elementId':_0x44caa2,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x161cdc});});}static async[_0x2a1718(0x1fa)](_0x2f720b){const _0x375d4f={'YwSfu':function(_0x276d52,_0x1597f4){return _0x276d52(_0x1597f4);},'uTwNr':function(_0x88a1cd,_0x75a9fd,_0x5ee469){return _0x88a1cd(_0x75a9fd,_0x5ee469);}};return new Promise((_0x5056d8,_0x446590)=>{const _0x5bf495=_0x2285;_0x375d4f[_0x5bf495(0x1fc)](_0x50837e,_0x2f720b,(_0x10a164,_0x5e731c)=>{const _0x558f3e=_0x5bf495;_0x10a164?_0x446590(_0x10a164):_0x375d4f[_0x558f3e(0x241)](_0x5056d8,_0x5e731c);});});}static async['getImageUrl'](_0x5cc172){const _0x483984=_0x2a1718,_0x246e7c={'bszVY':function(_0x191a49,_0x3a217c){return _0x191a49(_0x3a217c);},'nepgK':_0x483984(0x21f),'EgaOK':_0x483984(0x203),'ySHlf':function(_0x5248e7,_0x5d5da9){return _0x5248e7*_0x5d5da9;},'BFBBq':'开始调用moeHook获取rkey','csMye':function(_0xc493b3,_0x18fc65){return _0xc493b3+_0x18fc65;},'DMNdn':function(_0x409a9a,_0x164f13){return _0x409a9a+_0x164f13;},'RjaWH':function(_0x5af818,_0x4c5515,_0x448f0f){return _0x5af818(_0x4c5515,_0x448f0f);},'IgDGW':_0x483984(0x24a),'GlGZi':_0x483984(0x229),'utcRw':function(_0x4c96e0,_0x120168,_0x2e04ce,_0x162266){return _0x4c96e0(_0x120168,_0x2e04ce,_0x162266);},'ozcgA':_0x483984(0x1f6),'lTazS':function(_0xa510d2){return _0xa510d2();},'vJUfB':function(_0x29eeae,_0x41fed4){return _0x29eeae!==_0x41fed4;},'fpsQf':_0x483984(0x245),'ScIWV':function(_0x2cdb0d,_0x52afaa){return _0x2cdb0d(_0x52afaa);},'SDyNY':_0x483984(0x23c),'VYPLr':function(_0x3eb822,_0x2b6df7){return _0x3eb822-_0x2b6df7;},'vHRgz':function(_0x23a2bd,_0x266173){return _0x23a2bd+_0x266173;},'Bjshq':function(_0x3b612b,_0xbf2317,_0x4e5aaa){return _0x3b612b(_0xbf2317,_0x4e5aaa);},'eKkOM':function(_0x2df501,_0x25a15c){return _0x2df501+_0x25a15c;},'KiXjI':function(_0xcdd65d,_0x305ce7){return _0xcdd65d||_0x305ce7;},'LcWFi':_0x483984(0x1f9)},_0x5ccace=_0x246e7c[_0x483984(0x263)](_0x5cc172['chatType'],ChatType[_0x483984(0x217)]),_0x4a7529=_0x5cc172[_0x483984(0x232)][_0x483984(0x22d)](_0x17d5cb=>!!_0x17d5cb['picElement']);if(!_0x4a7529)return'';const _0x125558=_0x4a7529['picElement'][_0x483984(0x226)],_0x3aae5d=_0x4a7529[_0x483984(0x25a)][_0x483984(0x22a)],_0x201070=_0x4a7529[_0x483984(0x25a)][_0x483984(0x22a)],_0x41d766=_0x4a7529[_0x483984(0x25a)][_0x483984(0x24c)],_0x120313=_0x1cb2bb=>{const _0x32e2b9=_0x483984;_0x5ccace?(privateImageRKey=_0x1cb2bb,lastGetPrivateRKeyTime=Date[_0x32e2b9(0x1f4)]()):(groupImageRKey=_0x1cb2bb,lastGetGroupRKeyTime=Date[_0x32e2b9(0x1f4)]());};if(_0x125558){if(_0x125558[_0x483984(0x20d)](_0x246e7c['fpsQf'])){if(_0x125558[_0x483984(0x248)](_0x483984(0x1fe)))return _0x246e7c['DMNdn'](IMAGE_HTTP_HOST_NT,_0x125558);if(!hookApi[_0x483984(0x247)]())return _0x246e7c['ScIWV'](logDebug,_0x246e7c[_0x483984(0x25f)]),'';const _0x491dd2=async()=>{const _0x30337f=_0x483984,_0x505068={'kQrPX':function(_0x402a9f,_0x182da3){return _0x402a9f(_0x182da3);}};_0x246e7c['bszVY'](logDebug,_0x246e7c['EgaOK']),NTQQFileApi[_0x30337f(0x214)](_0x5cc172[_0x30337f(0x211)],_0x5cc172[_0x30337f(0x23a)],_0x5cc172[_0x30337f(0x228)],_0x4a7529[_0x30337f(0x252)],'',_0x4a7529[_0x30337f(0x25a)][_0x30337f(0x208)],_0x246e7c[_0x30337f(0x213)](0x3e8,0x1e),![])[_0x30337f(0x25b)](_0x509009=>{})[_0x30337f(0x25d)](logError),await sleep(0x3e8),_0x246e7c[_0x30337f(0x206)](logDebug,_0x246e7c['BFBBq']);const _0x362a39=hookApi[_0x30337f(0x20c)]()||'',_0xeaaac=_0x246e7c[_0x30337f(0x236)](_0x246e7c['DMNdn'](IMAGE_HTTP_HOST_NT,_0x125558),_0x362a39);if(_0x362a39)try{_0x246e7c['RjaWH'](logDebug,_0x246e7c[_0x30337f(0x216)],_0xeaaac),await new Promise((_0x6a8f31,_0x30bcac)=>{const _0x16cefd=_0x30337f,_0x1f959a={'GrWpm':function(_0x28838a,_0x159b02){return _0x28838a!==_0x159b02;},'fCHlQ':function(_0x4241b1,_0x21b9e9){const _0x744ec8=_0x2285;return _0x246e7c[_0x744ec8(0x206)](_0x4241b1,_0x21b9e9);},'Popcv':_0x246e7c[_0x16cefd(0x205)]};_0x43386d[_0x16cefd(0x215)](_0xeaaac,_0xfc98ea=>{const _0x5d9a7d=_0x16cefd;_0x1f959a['GrWpm'](_0xfc98ea[_0x5d9a7d(0x22c)],0xc8)?_0x1f959a[_0x5d9a7d(0x218)](_0x30bcac,_0x1f959a[_0x5d9a7d(0x260)]):_0x6a8f31(_0xfc98ea);})['on'](_0x16cefd(0x207),_0x12de1b=>{const _0x3afb30=_0x16cefd;_0x505068[_0x3afb30(0x22e)](_0x30bcac,_0x12de1b);});}),logDebug(_0x246e7c[_0x30337f(0x23e)],_0xeaaac),_0x246e7c['bszVY'](_0x120313,_0x362a39);}catch(_0x28dc63){return _0x246e7c[_0x30337f(0x264)](logError,_0x246e7c['ozcgA'],_0xeaaac,_0x28dc63),'';}return _0x362a39;},_0x29c515=new Promise((_0x3d8909,_0x22699e)=>{const _0x2d3775=_0x483984;getRKeyTaskQueue[_0x2d3775(0x251)](async()=>{const _0x5b2153=_0x2d3775,_0x2bebbf=await _0x246e7c['lTazS'](_0x491dd2);_0x246e7c[_0x5b2153(0x206)](_0x3d8909,_0x2bebbf);});}),_0x36c593=_0x5ccace?privateImageRKey:groupImageRKey,_0x25410a=_0x5ccace?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x246e7c[_0x483984(0x233)](Date['now'](),_0x25410a)>rkeyExpireTime||!_0x36c593){const _0x156857=await _0x29c515;if(_0x156857)return _0x246e7c[_0x483984(0x227)](_0x246e7c[_0x483984(0x1f7)](IMAGE_HTTP_HOST_NT,_0x125558),''+_0x156857);else _0x246e7c['Bjshq'](logError,_0x246e7c['nepgK'],_0x125558);}if(_0x36c593)return _0x246e7c[_0x483984(0x22f)](IMAGE_HTTP_HOST_NT+_0x125558,''+_0x36c593);return'';}else return _0x246e7c[_0x483984(0x236)](IMAGE_HTTP_HOST,_0x125558);}else{if(_0x246e7c[_0x483984(0x23f)](_0x201070,_0x3aae5d))return IMAGE_HTTP_HOST+'/gchatpic_new/0/0-0-'+_0x246e7c[_0x483984(0x23f)](_0x201070,_0x3aae5d)[_0x483984(0x1fd)]()+'/0';}return logDebug(_0x246e7c[_0x483984(0x250)],_0x5cc172),'';}}export class NTQQFileCacheApi{static async[_0x2a1718(0x21b)](_0x5392fe=!![]){return'';}static['getCacheSessionPathList'](){return'';}static[_0x2a1718(0x225)](_0x503ee7=[_0x2a1718(0x238),_0x2a1718(0x20f)]){const _0x48a876=_0x2a1718;return napCatCore['session'][_0x48a876(0x223)]()[_0x48a876(0x253)](_0x503ee7);}static['addCacheScannedPaths'](_0x7d5509={}){const _0x4fead3=_0x2a1718;return napCatCore[_0x4fead3(0x258)][_0x4fead3(0x223)]()['addCacheScanedPaths'](_0x7d5509);}static[_0x2a1718(0x262)](){const _0x5816c4=_0x2a1718;return napCatCore[_0x5816c4(0x258)][_0x5816c4(0x223)]()['scanCache']();}static[_0x2a1718(0x254)](){return'';}static['getDesktopTmpPath'](){return'';}static['getChatCacheList'](_0x4e3a22,_0x248033=0x3e8,_0x3bbf8b=0x0){const _0x516e25=_0x2a1718;return napCatCore['session'][_0x516e25(0x223)]()[_0x516e25(0x23d)](_0x4e3a22,_0x248033,0x1,_0x3bbf8b);}static[_0x2a1718(0x1f8)](_0x329df9,_0x233fd6=0x3e8,_0x3b4d22){const _0xd1104d=_0x3b4d22?_0x3b4d22:{'fileType':_0x329df9};}static async['clearChatCache'](_0x511194=[],_0x8b88c0=[]){const _0x29187a=_0x2a1718;return napCatCore[_0x29187a(0x258)][_0x29187a(0x223)]()[_0x29187a(0x237)](_0x511194,_0x8b88c0);}} \ 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 ba979298..abf7a241 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -function _0x35fe(){const _0x4b98f5=['xhrQw','开始获取好友列表','3EOIXPR','uid','push','uepXE','179720kTLqkY','getBuddyList','11668ywXZPU','8DOpeDG','JQarV','BivHe','获取好友列表完成','onLoginSuccess','zdvca','594tllWdn','bgfPp','buddyList','uin','516AiVTrp','getFriends','获取好友列表超时','29753112onZUnh','onBuddyListChange','delete','getBuddyService','MfDdZ','REPKy','then','38752YBEjOZ','set','addListener','1544607yFobFX','214394XbLhjK','1827640CtlXAO','handleFriendRequest','ImXUC','981eBMSDE'];_0x35fe=function(){return _0x4b98f5;};return _0x35fe();}const _0x2df2f5=_0x3f43;(function(_0x34cc4d,_0x5059e0){const _0x12d8c1=_0x3f43,_0x1739f4=_0x34cc4d();while(!![]){try{const _0x2a117a=-parseInt(_0x12d8c1(0xec))/0x1*(-parseInt(_0x12d8c1(0xe5))/0x2)+-parseInt(_0x12d8c1(0xe9))/0x3*(parseInt(_0x12d8c1(0xf2))/0x4)+parseInt(_0x12d8c1(0xe6))/0x5+-parseInt(_0x12d8c1(0xfd))/0x6*(parseInt(_0x12d8c1(0xe1))/0x7)+-parseInt(_0x12d8c1(0xf3))/0x8*(parseInt(_0x12d8c1(0xe4))/0x9)+-parseInt(_0x12d8c1(0xf0))/0xa*(parseInt(_0x12d8c1(0xf9))/0xb)+parseInt(_0x12d8c1(0x100))/0xc;if(_0x2a117a===_0x5059e0)break;else _0x1739f4['push'](_0x1739f4['shift']());}catch(_0x738426){_0x1739f4['push'](_0x1739f4['shift']());}}}(_0x35fe,0x9122f));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';function _0x3f43(_0x12feea,_0x487f86){const _0x35fe4b=_0x35fe();return _0x3f43=function(_0x3f4322,_0x3d4e0c){_0x3f4322=_0x3f4322-0xdf;let _0x4e0b28=_0x35fe4b[_0x3f4322];return _0x4e0b28;},_0x3f43(_0x12feea,_0x487f86);}import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x2df2f5(0x101)]=_0x569ccc=>{const _0x36abe=_0x2df2f5,_0x40073c={'bgfPp':function(_0x146761,_0x19e0ee){return _0x146761(_0x19e0ee);}};for(const [_0x2935a9,_0x565d3a]of buddyChangeTasks){_0x40073c[_0x36abe(0xfa)](_0x565d3a,_0x569ccc),buddyChangeTasks[_0x36abe(0x102)](_0x2935a9);}},setTimeout(()=>{const _0x5e243f=_0x2df2f5;napCatCore[_0x5e243f(0xf7)](()=>{const _0x5d8fff=_0x5e243f;napCatCore[_0x5d8fff(0xe3)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x2df2f5(0xfe)](_0x41900d=![]){const _0x34576a=_0x2df2f5,_0x1cbde7={'cqkKH':function(_0x4f61ef,_0x264354,_0x1f849e){return _0x4f61ef(_0x264354,_0x1f849e);},'maKXj':_0x34576a(0xf6),'BivHe':function(_0x209076,_0x46b2f3){return _0x209076(_0x46b2f3);},'ImXUC':_0x34576a(0xff),'zdvca':function(_0x5a95e0,_0x307e1f,_0x10afc9){return _0x5a95e0(_0x307e1f,_0x10afc9);},'kKzPO':function(_0x202d79){return _0x202d79();}};return new Promise((_0x218f5f,_0x5c1810)=>{const _0x326fe2=_0x34576a,_0x3b415e={'uepXE':function(_0x352c63,_0x121c72){const _0x51de5e=_0x3f43;return _0x1cbde7[_0x51de5e(0xf5)](_0x352c63,_0x121c72);},'xhrQw':_0x1cbde7[_0x326fe2(0xe8)],'MfDdZ':function(_0x3ed5f6,_0x45db31){const _0x452323=_0x326fe2;return _0x1cbde7[_0x452323(0xf5)](_0x3ed5f6,_0x45db31);},'REPKy':function(_0x18888a,_0x462e3c,_0xe14d8e){const _0x2da236=_0x326fe2;return _0x1cbde7[_0x2da236(0xf8)](_0x18888a,_0x462e3c,_0xe14d8e);},'JQarV':_0x326fe2(0xeb)};let _0x435ac0=![];_0x1cbde7[_0x326fe2(0xf8)](setTimeout,()=>{const _0x58a3af=_0x326fe2;!_0x435ac0&&(_0x3b415e[_0x58a3af(0xef)](logDebug,_0x3b415e[_0x58a3af(0xea)]),_0x3b415e[_0x58a3af(0x104)](_0x5c1810,_0x3b415e['xhrQw']));},0x1388);const _0x3efcc3=[],_0x2b2214=_0x3bfc5f=>{const _0x59a258=_0x326fe2;for(const _0x177c6b of _0x3bfc5f){for(const _0x5e51cb of _0x177c6b[_0x59a258(0xfb)]){_0x3efcc3[_0x59a258(0xee)](_0x5e51cb),uid2UinMap[_0x5e51cb[_0x59a258(0xed)]]=_0x5e51cb[_0x59a258(0xfc)];}}_0x435ac0=!![],_0x1cbde7['cqkKH'](logDebug,_0x1cbde7['maKXj'],_0x3efcc3),_0x218f5f(_0x3efcc3);};buddyChangeTasks[_0x326fe2(0xe2)](_0x1cbde7['kKzPO'](randomUUID),_0x2b2214),napCatCore['session'][_0x326fe2(0x103)]()[_0x326fe2(0xf1)](_0x41900d)[_0x326fe2(0xe0)](_0x498c42=>{const _0x3ed981=_0x326fe2;_0x3b415e[_0x3ed981(0xdf)](logDebug,_0x3b415e[_0x3ed981(0xf4)],_0x498c42);});});}static async[_0x2df2f5(0xe7)](_0x153650,_0x343781){const _0x1f7b6f=_0x2df2f5;napCatCore['session'][_0x1f7b6f(0x103)]()?.['approvalFriendRequest']({'friendUid':_0x153650['friendUid'],'reqTime':_0x153650['reqTime'],'accept':_0x343781});}} \ No newline at end of file +const _0x44ff18=_0x20d0;(function(_0x21096c,_0xbc48cf){const _0x100c5a=_0x20d0,_0x1653c5=_0x21096c();while(!![]){try{const _0x4cb060=parseInt(_0x100c5a(0x123))/0x1*(parseInt(_0x100c5a(0x131))/0x2)+-parseInt(_0x100c5a(0x127))/0x3*(-parseInt(_0x100c5a(0x12b))/0x4)+-parseInt(_0x100c5a(0x122))/0x5+-parseInt(_0x100c5a(0x137))/0x6*(parseInt(_0x100c5a(0x12a))/0x7)+parseInt(_0x100c5a(0x11f))/0x8+-parseInt(_0x100c5a(0x13a))/0x9*(parseInt(_0x100c5a(0x12d))/0xa)+parseInt(_0x100c5a(0x135))/0xb*(parseInt(_0x100c5a(0x138))/0xc);if(_0x4cb060===_0xbc48cf)break;else _0x1653c5['push'](_0x1653c5['shift']());}catch(_0x4ae66e){_0x1653c5['push'](_0x1653c5['shift']());}}}(_0x3ed9,0x439ef));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();function _0x3ed9(){const _0x33d42b=['getFriends','uin','80mmaNxZ','addListener','cjMFN','okFNL','8140187URvWRq','XLrsz','984SUbije','12jqwura','approvalFriendRequest','1656ysbrTe','onLoginSuccess','uid','push','session','获取好友列表超时','2301416CIliKd','buddyList','set','2291485nsabCM','10006MdKIgw','then','getBuddyService','reqTime','19338FcmPJE','delete','开始获取好友列表','8533OJlArK','4jLLTzY','jihBp','27130tLgWQk','UvsxQ'];_0x3ed9=function(){return _0x33d42b;};return _0x3ed9();}function _0x20d0(_0x1b466a,_0x1ff148){const _0x3ed9c5=_0x3ed9();return _0x20d0=function(_0x20d0c5,_0x5e210d){_0x20d0c5=_0x20d0c5-0x11a;let _0x3d05c2=_0x3ed9c5[_0x20d0c5];return _0x3d05c2;},_0x20d0(_0x1b466a,_0x1ff148);}buddyListener['onBuddyListChange']=_0x5e1b7c=>{const _0x176815=_0x20d0;for(const [_0x28b424,_0x3dc56d]of buddyChangeTasks){_0x3dc56d(_0x5e1b7c),buddyChangeTasks[_0x176815(0x128)](_0x28b424);}},setTimeout(()=>{const _0x165407=_0x20d0;napCatCore[_0x165407(0x11a)](()=>{const _0x35baee=_0x165407;napCatCore[_0x35baee(0x132)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x44ff18(0x12f)](_0x3a6e33=![]){const _0x13db76=_0x44ff18,_0x475e1b={'bcsxL':function(_0x5d85ba,_0x20f9c1,_0x2f69b5){return _0x5d85ba(_0x20f9c1,_0x2f69b5);},'okFNL':_0x13db76(0x129),'cjMFN':'获取好友列表超时','BnHZB':function(_0x5e946f,_0x4d69c2,_0x2eff4f){return _0x5e946f(_0x4d69c2,_0x2eff4f);},'jihBp':'获取好友列表完成','acGUm':function(_0x2ead41){return _0x2ead41();}};return new Promise((_0x28a579,_0x396b1e)=>{const _0x111b5a=_0x13db76,_0x5a6893={'XLrsz':function(_0x46a3f2,_0xe01927){return _0x46a3f2(_0xe01927);},'AJZDB':_0x475e1b[_0x111b5a(0x133)],'dARyd':function(_0x105e8e,_0x367a73,_0x46b1ea){return _0x475e1b['BnHZB'](_0x105e8e,_0x367a73,_0x46b1ea);},'UvsxQ':_0x475e1b[_0x111b5a(0x12c)]};let _0x3830ce=![];setTimeout(()=>{const _0x2df1b4=_0x111b5a;!_0x3830ce&&(_0x5a6893[_0x2df1b4(0x136)](logDebug,_0x2df1b4(0x11e)),_0x396b1e(_0x5a6893['AJZDB']));},0x1388);const _0x4677bc=[],_0x21555b=_0x18422b=>{const _0xac08cb=_0x111b5a;for(const _0x5b7209 of _0x18422b){for(const _0x4f7b5f of _0x5b7209[_0xac08cb(0x120)]){_0x4677bc[_0xac08cb(0x11c)](_0x4f7b5f),uid2UinMap[_0x4f7b5f[_0xac08cb(0x11b)]]=_0x4f7b5f[_0xac08cb(0x130)];}}_0x3830ce=!![],_0x5a6893['dARyd'](logDebug,_0x5a6893[_0xac08cb(0x12e)],_0x4677bc),_0x5a6893[_0xac08cb(0x136)](_0x28a579,_0x4677bc);};buddyChangeTasks[_0x111b5a(0x121)](_0x475e1b['acGUm'](randomUUID),_0x21555b),napCatCore[_0x111b5a(0x11d)][_0x111b5a(0x125)]()['getBuddyList'](_0x3a6e33)[_0x111b5a(0x124)](_0x329deb=>{const _0x581a6a=_0x111b5a;_0x475e1b['bcsxL'](logDebug,_0x475e1b[_0x581a6a(0x134)],_0x329deb);});});}static async['handleFriendRequest'](_0x39bcc5,_0x2a8a72){const _0x5ec3c1=_0x44ff18;napCatCore[_0x5ec3c1(0x11d)][_0x5ec3c1(0x125)]()?.[_0x5ec3c1(0x139)]({'friendUid':_0x39bcc5['friendUid'],'reqTime':_0x39bcc5[_0x5ec3c1(0x126)],'accept':_0x2a8a72});}} \ 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 f02f98bf..c3b8b884 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x2f642f=_0x32d2;(function(_0x1a7863,_0x223439){const _0x1f04b5=_0x32d2,_0xb3b918=_0x1a7863();while(!![]){try{const _0x152272=-parseInt(_0x1f04b5(0xde))/0x1*(-parseInt(_0x1f04b5(0xc4))/0x2)+-parseInt(_0x1f04b5(0xed))/0x3*(-parseInt(_0x1f04b5(0xcd))/0x4)+parseInt(_0x1f04b5(0xf6))/0x5*(-parseInt(_0x1f04b5(0xf0))/0x6)+-parseInt(_0x1f04b5(0xd5))/0x7+-parseInt(_0x1f04b5(0xd9))/0x8*(parseInt(_0x1f04b5(0xec))/0x9)+-parseInt(_0x1f04b5(0xee))/0xa+parseInt(_0x1f04b5(0xc1))/0xb;if(_0x152272===_0x223439)break;else _0xb3b918['push'](_0xb3b918['shift']());}catch(_0x5cbea4){_0xb3b918['push'](_0xb3b918['shift']());}}}(_0x237b,0x65afe));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';function _0x32d2(_0x562eaa,_0x259b9f){const _0x237bd0=_0x237b();return _0x32d2=function(_0x32d23e,_0x1c8c38){_0x32d23e=_0x32d23e-0xbe;let _0x174dd1=_0x237bd0[_0x32d23e];return _0x174dd1;},_0x32d2(_0x562eaa,_0x259b9f);}import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();function _0x237b(){const _0xf4b266=['banMember','groupMemberList_MainWindow','4enSafB','type','errCode','zybKP','onGroupListUpdate','PUZlJ','uin','VIKEx','modifyMemberCardName','1141692XcBQvG','group','set','handleGroupRequest','getNextMemberList','createMemberListScene','RelZH','获取群成员列表出错,','3627519ZAjJVG','yKEyH','getGroupService','getGroupList','24xdlZpe','获取群列表超时','HcMpD','kickMember','publishGroupBulletin','401669NhfbXl','groupCode','quitGroup','iEBIM','infos','then','modifyMemberRole','finish','addListener','uid','getGroupIgnoreNotifies','SlVaK',')成员列表结果:','getGroups','446895gBlGMW','6BVhqXa','2516740COhPpy','lfLNj','6yPHDaM','operateSysNotify','获取群(','getGroupNotifies','banGroup','setMemberShutUp','2060735PQLbpP','session','forEach','jhgAY','PJSbf','modifyGroupName','onLoginSuccess','获取群列表完成','4106619qfNsMA'];_0x237b=function(){return _0xf4b266;};return _0x237b();}groupListener[_0x2f642f(0xc8)]=(_0x3e9bda,_0x588b66)=>{const _0x583a7c=_0x2f642f,_0xddc456={'iEBIM':function(_0x5c814d,_0x40614e,_0x248385){return _0x5c814d(_0x40614e,_0x248385);}};for(const [_0x2f5cd6,_0xe4dbb]of groupMemberTasks){_0xddc456[_0x583a7c(0xe1)](_0xe4dbb,_0x3e9bda,_0x588b66),groupMemberTasks['delete'](_0x2f5cd6);}},setTimeout(()=>{const _0x7336dd=_0x2f642f;napCatCore[_0x7336dd(0xbf)](()=>{const _0x17ba46=_0x7336dd;napCatCore[_0x17ba46(0xe6)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x2f642f(0xeb)](_0x7d95c5=![]){const _0xa1f2e4=_0x2f642f,_0x5049b4={'jhgAY':_0xa1f2e4(0xda),'RelZH':function(_0x5e31be,_0x1f36cd){return _0x5e31be(_0x1f36cd);},'HcMpD':function(_0x28838b,_0x488a64,_0xc30cd2){return _0x28838b(_0x488a64,_0xc30cd2);},'zybKP':_0xa1f2e4(0xc0),'PUZlJ':function(_0x2b8b73,_0x3f47eb){return _0x2b8b73(_0x3f47eb);},'TANHd':function(_0x395092,_0x228989,_0x41930f){return _0x395092(_0x228989,_0x41930f);},'SuSrc':function(_0x135a16){return _0x135a16();}};let _0x35609a=![];return new Promise((_0xcc84e4,_0x2f3968)=>{const _0xeb711e=_0xa1f2e4,_0x228be8={'SlVaK':function(_0x975c0c,_0xc29904,_0x1be332){const _0x35ae05=_0x32d2;return _0x5049b4[_0x35ae05(0xdb)](_0x975c0c,_0xc29904,_0x1be332);},'tLuLp':_0x5049b4[_0xeb711e(0xc7)],'yKEyH':function(_0x391e77,_0x232400){const _0x5a5b07=_0xeb711e;return _0x5049b4[_0x5a5b07(0xc9)](_0x391e77,_0x232400);}};_0x5049b4['TANHd'](setTimeout,()=>{const _0x510754=_0xeb711e;!_0x35609a&&(logDebug(_0x5049b4[_0x510754(0xf9)]),_0x5049b4[_0x510754(0xd3)](_0x2f3968,_0x5049b4[_0x510754(0xf9)]));},0x1388);const _0x3d9d07=(_0x10f3be,_0x2dc96a)=>{const _0x270176=_0xeb711e;_0x35609a=!![],_0x228be8[_0x270176(0xe9)](logDebug,_0x228be8['tLuLp'],_0x2dc96a),_0x228be8[_0x270176(0xd6)](_0xcc84e4,_0x2dc96a);};groupMemberTasks[_0xeb711e(0xcf)](_0x5049b4['SuSrc'](randomUUID),_0x3d9d07),napCatCore[_0xeb711e(0xf7)]['getGroupService']()[_0xeb711e(0xd8)](_0x7d95c5)[_0xeb711e(0xe3)]();});}static async['getGroupMembers'](_0x3fa614,_0x33105a=0xbb8){const _0x5e50be=_0x2f642f,_0x36dfed={'ySjNp':_0x5e50be(0xc3),'PJSbf':function(_0x71c5af,_0x5cc89a){return _0x71c5af!==_0x5cc89a;},'VIKEx':function(_0x1cbe5c,_0xd5f12f){return _0x1cbe5c+_0xd5f12f;},'llBPH':_0x5e50be(0xd4)},_0x30272a=napCatCore[_0x5e50be(0xf7)][_0x5e50be(0xd7)](),_0x51f305=_0x30272a[_0x5e50be(0xd2)](_0x3fa614,_0x36dfed['ySjNp']),_0x2deaa1=await _0x30272a[_0x5e50be(0xd1)](_0x51f305,undefined,_0x33105a);if(_0x36dfed[_0x5e50be(0xfa)](_0x2deaa1[_0x5e50be(0xc6)],0x0))throw _0x36dfed[_0x5e50be(0xcb)](_0x36dfed['llBPH'],_0x2deaa1['errMsg']);return logDebug(_0x5e50be(0xf2)+_0x3fa614+_0x5e50be(0xea),'finish:\x20'+_0x2deaa1['result'][_0x5e50be(0xe5)]),_0x2deaa1['result'][_0x5e50be(0xe2)][_0x5e50be(0xf8)](_0x44f2c8=>{const _0x5e28c4=_0x5e50be;uid2UinMap[_0x44f2c8[_0x5e28c4(0xe7)]]=_0x44f2c8[_0x5e28c4(0xca)];}),_0x2deaa1['result'][_0x5e50be(0xe2)];}static async[_0x2f642f(0xf3)](){}static async[_0x2f642f(0xe8)](){}static async[_0x2f642f(0xd0)](_0x3ab103,_0x5dd3e0,_0x3bc4ab){const _0x463fa2=_0x2f642f,_0x3ed321={'lfLNj':function(_0xabf3f9,_0x25e3cc){return _0xabf3f9||_0x25e3cc;}};return napCatCore['session'][_0x463fa2(0xd7)]()[_0x463fa2(0xf1)](![],{'operateType':_0x5dd3e0,'targetMsg':{'seq':_0x3ab103['seq'],'type':_0x3ab103[_0x463fa2(0xc5)],'groupCode':_0x3ab103[_0x463fa2(0xce)][_0x463fa2(0xdf)],'postscript':_0x3ed321[_0x463fa2(0xef)](_0x3bc4ab,'')}});}static async[_0x2f642f(0xe0)](_0x95ebe1){const _0x5c9466=_0x2f642f;return napCatCore[_0x5c9466(0xf7)][_0x5c9466(0xd7)]()['quitGroup'](_0x95ebe1);}static async[_0x2f642f(0xdc)](_0x6a1e59,_0x976597,_0x575acf=![],_0x16ed28=''){const _0x454c3e=_0x2f642f;return napCatCore[_0x454c3e(0xf7)][_0x454c3e(0xd7)]()[_0x454c3e(0xdc)](_0x6a1e59,_0x976597,_0x575acf,_0x16ed28);}static async[_0x2f642f(0xc2)](_0x3179aa,_0x441abc){const _0x91fc07=_0x2f642f;return napCatCore[_0x91fc07(0xf7)][_0x91fc07(0xd7)]()[_0x91fc07(0xf5)](_0x3179aa,_0x441abc);}static async[_0x2f642f(0xf4)](_0x2abbd7,_0x43ddeb){const _0x295800=_0x2f642f;return napCatCore[_0x295800(0xf7)]['getGroupService']()['setGroupShutUp'](_0x2abbd7,_0x43ddeb);}static async['setMemberCard'](_0x32d281,_0x1e4ec0,_0x1bd417){const _0x4f7d61=_0x2f642f;return napCatCore[_0x4f7d61(0xf7)][_0x4f7d61(0xd7)]()[_0x4f7d61(0xcc)](_0x32d281,_0x1e4ec0,_0x1bd417);}static async['setMemberRole'](_0x20bc3e,_0x465808,_0x34ed37){const _0xb98efc=_0x2f642f;return napCatCore[_0xb98efc(0xf7)][_0xb98efc(0xd7)]()[_0xb98efc(0xe4)](_0x20bc3e,_0x465808,_0x34ed37);}static async['setGroupName'](_0x399382,_0x1f030d){const _0x38f0c3=_0x2f642f;return napCatCore[_0x38f0c3(0xf7)][_0x38f0c3(0xd7)]()[_0x38f0c3(0xbe)](_0x399382,_0x1f030d,![]);}static async['setGroupTitle'](_0x569824,_0x42d374,_0x17761a){}static[_0x2f642f(0xdd)](_0x20405f,_0x11bbd4,_0x60847d){}} \ No newline at end of file +const _0x4be569=_0x11c2;(function(_0x4e5f6d,_0x175daf){const _0x346ff0=_0x11c2,_0x44dc5b=_0x4e5f6d();while(!![]){try{const _0xb3c6ff=parseInt(_0x346ff0(0x215))/0x1*(parseInt(_0x346ff0(0x1ef))/0x2)+-parseInt(_0x346ff0(0x1f1))/0x3*(parseInt(_0x346ff0(0x1e6))/0x4)+-parseInt(_0x346ff0(0x1e9))/0x5+-parseInt(_0x346ff0(0x1eb))/0x6+-parseInt(_0x346ff0(0x214))/0x7*(parseInt(_0x346ff0(0x1e4))/0x8)+-parseInt(_0x346ff0(0x20a))/0x9+-parseInt(_0x346ff0(0x20e))/0xa*(-parseInt(_0x346ff0(0x1f6))/0xb);if(_0xb3c6ff===_0x175daf)break;else _0x44dc5b['push'](_0x44dc5b['shift']());}catch(_0x5bc654){_0x44dc5b['push'](_0x44dc5b['shift']());}}}(_0x19e9,0x540b2));import{napCatCore}from'@/core';function _0x11c2(_0xe698dc,_0x5807c5){const _0x19e964=_0x19e9();return _0x11c2=function(_0x11c213,_0x726ede){_0x11c213=_0x11c213-0x1e2;let _0xc56a18=_0x19e964[_0x11c213];return _0xc56a18;},_0x11c2(_0xe698dc,_0x5807c5);}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();function _0x19e9(){const _0x3b5758=['sUocQ','166OlWmgY','addListener','2946CdXHwe','uid','onGroupListUpdate','onLoginSuccess','getGroupIgnoreNotifies','10050073zdJntA','setGroupName','setGroupShutUp','getNextMemberList','ayrNL','getGroupNotifies','forEach','errCode','modifyMemberRole','infos','getGroupService','setMemberShutUp','获取群列表超时','getGroupMembers','kickMember','handleGroupRequest','modifyMemberCardName','set','JrIIF','result','124209ZqAJlx','uoMoS','finish:\x20','createMemberListScene','10SjSxfX','banGroup','fsbNX','operateSysNotify','publishGroupBulletin','getGroupList','1261911BYThZT','7417MOKqeB','errMsg','modifyGroupName','uin','banMember','setMemberRole','type','获取群(','quitGroup','HBqyO','获取群成员列表出错,','16BeOLFR','session','1756gvgcoU','获取群列表完成','seq','1160625NrfNTD','QyEWB','884652aNnPPa','Faoxp','groupCode'];_0x19e9=function(){return _0x3b5758;};return _0x19e9();}groupListener[_0x4be569(0x1f3)]=(_0x627bee,_0x31e034)=>{const _0x9ee9c2=_0x4be569,_0x220a8a={'ayrNL':function(_0x4b8dca,_0x1b0b16,_0x5af05a){return _0x4b8dca(_0x1b0b16,_0x5af05a);}};for(const [_0x29f01c,_0x3d73ec]of groupMemberTasks){_0x220a8a[_0x9ee9c2(0x1fa)](_0x3d73ec,_0x627bee,_0x31e034),groupMemberTasks['delete'](_0x29f01c);}},setTimeout(()=>{const _0x53b22f=_0x4be569;napCatCore[_0x53b22f(0x1f4)](()=>{const _0x18f91f=_0x53b22f;napCatCore[_0x18f91f(0x1f0)](groupListener);});},0x64);export class NTQQGroupApi{static async['getGroups'](_0x4f891e=![]){const _0x1a6694=_0x4be569,_0x178c16={'sUocQ':function(_0x1c16c5,_0x27bd65){return _0x1c16c5(_0x27bd65);},'JrIIF':_0x1a6694(0x202),'HBqyO':function(_0x393691,_0x1878db,_0x3e7577){return _0x393691(_0x1878db,_0x3e7577);},'uoMoS':_0x1a6694(0x1e7),'JnzBs':function(_0x4f1084,_0x548785,_0x2501f4){return _0x4f1084(_0x548785,_0x2501f4);}};let _0x4f5ea8=![];return new Promise((_0x436668,_0x271657)=>{const _0x37a1b2=_0x1a6694;_0x178c16['JnzBs'](setTimeout,()=>{const _0x13e294=_0x11c2;!_0x4f5ea8&&(_0x178c16[_0x13e294(0x1ee)](logDebug,_0x178c16['JrIIF']),_0x178c16[_0x13e294(0x1ee)](_0x271657,_0x178c16[_0x13e294(0x208)]));},0x1388);const _0x5b1415=(_0x4a326f,_0x47ac47)=>{const _0xbfc122=_0x11c2;_0x4f5ea8=!![],_0x178c16[_0xbfc122(0x1e2)](logDebug,_0x178c16[_0xbfc122(0x20b)],_0x47ac47),_0x436668(_0x47ac47);};groupMemberTasks[_0x37a1b2(0x207)](randomUUID(),_0x5b1415),napCatCore[_0x37a1b2(0x1e5)][_0x37a1b2(0x200)]()[_0x37a1b2(0x213)](_0x4f891e)['then']();});}static async[_0x4be569(0x203)](_0x297ae5,_0x539aba=0xbb8){const _0x43e6a1=_0x4be569,_0x43ec90={'Faoxp':'groupMemberList_MainWindow','QyEWB':function(_0x2a9649,_0x287858){return _0x2a9649!==_0x287858;},'fsbNX':function(_0x10595f,_0x2d2187,_0x4eaa2a){return _0x10595f(_0x2d2187,_0x4eaa2a);}},_0x27127a=napCatCore[_0x43e6a1(0x1e5)][_0x43e6a1(0x200)](),_0x41839e=_0x27127a[_0x43e6a1(0x20d)](_0x297ae5,_0x43ec90[_0x43e6a1(0x1ec)]),_0x3e8234=await _0x27127a[_0x43e6a1(0x1f9)](_0x41839e,undefined,_0x539aba);if(_0x43ec90[_0x43e6a1(0x1ea)](_0x3e8234[_0x43e6a1(0x1fd)],0x0))throw _0x43e6a1(0x1e3)+_0x3e8234[_0x43e6a1(0x216)];return _0x43ec90[_0x43e6a1(0x210)](logDebug,_0x43e6a1(0x21c)+_0x297ae5+')成员列表结果:',_0x43e6a1(0x20c)+_0x3e8234[_0x43e6a1(0x209)]['finish']),_0x3e8234['result']['infos'][_0x43e6a1(0x1fc)](_0x5731a2=>{const _0x120226=_0x43e6a1;uid2UinMap[_0x5731a2[_0x120226(0x1f2)]]=_0x5731a2[_0x120226(0x218)];}),_0x3e8234[_0x43e6a1(0x209)][_0x43e6a1(0x1ff)];}static async[_0x4be569(0x1fb)](){}static async[_0x4be569(0x1f5)](){}static async[_0x4be569(0x205)](_0x25b11a,_0x43f37b,_0x45f501){const _0x1f7bbe=_0x4be569;return napCatCore[_0x1f7bbe(0x1e5)]['getGroupService']()[_0x1f7bbe(0x211)](![],{'operateType':_0x43f37b,'targetMsg':{'seq':_0x25b11a[_0x1f7bbe(0x1e8)],'type':_0x25b11a[_0x1f7bbe(0x21b)],'groupCode':_0x25b11a['group'][_0x1f7bbe(0x1ed)],'postscript':_0x45f501||''}});}static async['quitGroup'](_0xeff448){const _0x3b85dd=_0x4be569;return napCatCore[_0x3b85dd(0x1e5)][_0x3b85dd(0x200)]()[_0x3b85dd(0x21d)](_0xeff448);}static async[_0x4be569(0x204)](_0x54df4d,_0x3918a7,_0x4f7140=![],_0x2cc174=''){const _0x4cb876=_0x4be569;return napCatCore['session']['getGroupService']()[_0x4cb876(0x204)](_0x54df4d,_0x3918a7,_0x4f7140,_0x2cc174);}static async[_0x4be569(0x219)](_0x17a1ff,_0x107860){const _0x43eef7=_0x4be569;return napCatCore[_0x43eef7(0x1e5)]['getGroupService']()[_0x43eef7(0x201)](_0x17a1ff,_0x107860);}static async[_0x4be569(0x20f)](_0x42632d,_0x1d1679){const _0x14b921=_0x4be569;return napCatCore[_0x14b921(0x1e5)]['getGroupService']()[_0x14b921(0x1f8)](_0x42632d,_0x1d1679);}static async['setMemberCard'](_0x11dbc6,_0x20d397,_0x59f268){const _0x2c6f2a=_0x4be569;return napCatCore[_0x2c6f2a(0x1e5)]['getGroupService']()[_0x2c6f2a(0x206)](_0x11dbc6,_0x20d397,_0x59f268);}static async[_0x4be569(0x21a)](_0x407b44,_0x757d8e,_0xf8e4d7){const _0x3b30ae=_0x4be569;return napCatCore[_0x3b30ae(0x1e5)][_0x3b30ae(0x200)]()[_0x3b30ae(0x1fe)](_0x407b44,_0x757d8e,_0xf8e4d7);}static async[_0x4be569(0x1f7)](_0xdf173d,_0xd3462e){const _0x2706bf=_0x4be569;return napCatCore[_0x2706bf(0x1e5)][_0x2706bf(0x200)]()[_0x2706bf(0x217)](_0xdf173d,_0xd3462e,![]);}static async['setGroupTitle'](_0x340048,_0x42dce5,_0x40fffa){}static[_0x4be569(0x212)](_0x507b48,_0x53fed5,_0x5476bf){}} \ 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 a57d680e..d2cc6db6 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x57316c,_0x1e2b29){var _0x11e8ad=_0x19c3,_0x33c184=_0x57316c();while(!![]){try{var _0xe45816=-parseInt(_0x11e8ad(0x1a1))/0x1*(-parseInt(_0x11e8ad(0x19d))/0x2)+parseInt(_0x11e8ad(0x19e))/0x3*(-parseInt(_0x11e8ad(0x19f))/0x4)+parseInt(_0x11e8ad(0x199))/0x5*(parseInt(_0x11e8ad(0x1a0))/0x6)+-parseInt(_0x11e8ad(0x198))/0x7+-parseInt(_0x11e8ad(0x19a))/0x8*(parseInt(_0x11e8ad(0x197))/0x9)+-parseInt(_0x11e8ad(0x19c))/0xa*(-parseInt(_0x11e8ad(0x196))/0xb)+parseInt(_0x11e8ad(0x19b))/0xc;if(_0xe45816===_0x1e2b29)break;else _0x33c184['push'](_0x33c184['shift']());}catch(_0x4882fa){_0x33c184['push'](_0x33c184['shift']());}}}(_0x27af,0xc3754));export*from'./file';function _0x27af(){var _0x239a67=['4pTsAPl','303uXWCzx','43916VWajJv','1470eVCNqa','466891FMmZyS','14003396anGmlR','9eOpuDg','10854578IfDkIk','965dlwvIv','3961064rsLWFj','20413908vnFrSI','10tfkAMC'];_0x27af=function(){return _0x239a67;};return _0x27af();}export*from'./friend';export*from'./group';function _0x19c3(_0x253f89,_0x5e154f){var _0x27afdb=_0x27af();return _0x19c3=function(_0x19c3af,_0x21ca05){_0x19c3af=_0x19c3af-0x196;var _0x4b2466=_0x27afdb[_0x19c3af];return _0x4b2466;},_0x19c3(_0x253f89,_0x5e154f);}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./window'; \ No newline at end of file +(function(_0x48ebc7,_0x4e0c5b){var _0x2915da=_0x29ac,_0x46f6ae=_0x48ebc7();while(!![]){try{var _0x2041d8=parseInt(_0x2915da(0x89))/0x1+-parseInt(_0x2915da(0x8b))/0x2+parseInt(_0x2915da(0x85))/0x3+-parseInt(_0x2915da(0x8c))/0x4+parseInt(_0x2915da(0x8d))/0x5*(-parseInt(_0x2915da(0x87))/0x6)+-parseInt(_0x2915da(0x86))/0x7*(-parseInt(_0x2915da(0x88))/0x8)+-parseInt(_0x2915da(0x84))/0x9*(-parseInt(_0x2915da(0x8a))/0xa);if(_0x2041d8===_0x4e0c5b)break;else _0x46f6ae['push'](_0x46f6ae['shift']());}catch(_0x55e138){_0x46f6ae['push'](_0x46f6ae['shift']());}}}(_0x51f3,0xd03f2));export*from'./file';export*from'./friend';function _0x29ac(_0x33fd01,_0x14fca4){var _0x51f3a5=_0x51f3();return _0x29ac=function(_0x29ace3,_0x4b2bb7){_0x29ace3=_0x29ace3-0x84;var _0x389160=_0x51f3a5[_0x29ace3];return _0x389160;},_0x29ac(_0x33fd01,_0x14fca4);}export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';function _0x51f3(){var _0x42993c=['8UoSJHo','707729aFelqf','5229620fkfEZh','3267744NQuxqH','328972WqYgTp','5CCpBku','9DzydfE','4230108VkbMVB','4063759QAqqSz','3913026TGoztJ'];_0x51f3=function(){return _0x42993c;};return _0x51f3();}export*from'./window'; \ 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 ea10d5d7..be36fb73 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x37bea7=_0x5702;(function(_0x33ac15,_0x3a12f5){const _0x55f1d6=_0x5702,_0x5400da=_0x33ac15();while(!![]){try{const _0x3d52e8=-parseInt(_0x55f1d6(0x149))/0x1*(parseInt(_0x55f1d6(0x137))/0x2)+-parseInt(_0x55f1d6(0x128))/0x3+-parseInt(_0x55f1d6(0x124))/0x4*(parseInt(_0x55f1d6(0x13c))/0x5)+-parseInt(_0x55f1d6(0x154))/0x6+-parseInt(_0x55f1d6(0x14f))/0x7+parseInt(_0x55f1d6(0x14e))/0x8*(-parseInt(_0x55f1d6(0x12c))/0x9)+-parseInt(_0x55f1d6(0x138))/0xa*(-parseInt(_0x55f1d6(0x12b))/0xb);if(_0x3d52e8===_0x3a12f5)break;else _0x5400da['push'](_0x5400da['shift']());}catch(_0x5acfa6){_0x5400da['push'](_0x5400da['shift']());}}}(_0x142a,0x71fb0));function _0x142a(){const _0x3ca95a=['19774yBrFOy','721450elpsZC','getMsgsBySeqAndCount','app','RXgEi','130Jgpeqe','onMsgInfoListUpdate','com.tencent.multimsg','getMultiMsg','length','map','vkvss','peerUid','multiForwardMsgWithComment','fetchRecentContact','TJGYV','recallMsg','parse','41YhJivP','sONiv','getMsgService','then','senderUid','8HMFwwW','2068934ofhOBS','nick','delete','bytesData','qbZSJ','3880812oeVRch','cTtMz','OSPBz','set','session','mMAHL','onLoginSuccess','nraax','tfKCU','OtwKg','activateChat','getMsgsIncludeSelf','find','catch','msgId','addListener','uid','12316fIfHIz','AtuHy','发送超时','sendMsg','142149aZETFG','szxMe','guildId','385lxIIoB','5247387SjQfZq','elements','chatType','getMsgsByMsgId','sendStatus','vxJQt','jbvrS','setMsgRead','edNLT','onAddSendMsg','getMsgHistory'];_0x142a=function(){return _0x3ca95a;};return _0x142a();}import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x37bea7(0x135)]=_0x23dab8=>{const _0xfb4074=_0x37bea7,_0x54280f={'UVyGB':function(_0x52f6a9,_0xba9710){return _0x52f6a9(_0xba9710);},'OSPBz':function(_0x5dfcb1,_0x49f5b0){return _0x5dfcb1 instanceof _0x49f5b0;}};for(const [_0x1917b6,_0x55db9b]of sentMsgTasks){_0x54280f['UVyGB'](_0x55db9b,_0x23dab8),sentMsgTasks[_0xfb4074(0x151)](_0x1917b6);}if(sendMessagePool[_0x23dab8[_0xfb4074(0x143)]]){const _0x30f8eb=sendMessagePool[_0x23dab8[_0xfb4074(0x143)]]?.(_0x23dab8);_0x54280f[_0xfb4074(0x156)](_0x30f8eb,Promise)&&_0x30f8eb[_0xfb4074(0x14c)]()[_0xfb4074(0x120)](logError);}},msgListener[_0x37bea7(0x13d)]=_0x12291b=>{const _0x10d337={'jbvrS':function(_0x579d85,_0x268a25){return _0x579d85 instanceof _0x268a25;}};_0x12291b['forEach'](_0x2924ba=>{const _0x27a042={'edNLT':function(_0x53afcf,_0x25696b){return _0x53afcf(_0x25696b);},'kPggl':function(_0x363293,_0x2ac91a){const _0x19ef96=_0x5702;return _0x10d337[_0x19ef96(0x132)](_0x363293,_0x2ac91a);}};new Promise((_0x5790a9,_0x56ad9c)=>{const _0x770409=_0x5702;for(const _0xd9695c in sendSuccessCBMap){const _0x1f55cb=sendSuccessCBMap[_0xd9695c],_0x20d5a2=_0x27a042['edNLT'](_0x1f55cb,_0x2924ba),_0x3c4095=_0x333760=>{_0x333760&&delete sendSuccessCBMap[_0xd9695c];};_0x27a042['kPggl'](_0x20d5a2,Promise)?_0x20d5a2['then'](_0x3c4095):_0x27a042[_0x770409(0x134)](_0x3c4095,_0x20d5a2);}})['then']()['catch'](log);});},setTimeout(()=>{const _0x444328=_0x37bea7;napCatCore[_0x444328(0x119)](()=>{const _0x7d2b00=_0x444328;napCatCore[_0x7d2b00(0x122)](msgListener);});},0x64);function _0x5702(_0xb88da5,_0x2bf19f){const _0x142af8=_0x142a();return _0x5702=function(_0x57021a,_0x24e07f){_0x57021a=_0x57021a-0x118;let _0x25ebfd=_0x142af8[_0x57021a];return _0x25ebfd;},_0x5702(_0xb88da5,_0x2bf19f);}export class NTQQMsgApi{static async['setEmojiLike'](_0x4f2dac,_0x4de3c9,_0x16fe2e,_0x1e5ab7=!![]){const _0x12c641=_0x37bea7,_0x5dce2d={'qbZSJ':function(_0x23c3ce,_0x29c3bb){return _0x23c3ce>_0x29c3bb;}};return napCatCore[_0x12c641(0x158)]['getMsgService']()['setMsgEmojiLikes'](_0x4f2dac,_0x4de3c9,_0x16fe2e,_0x5dce2d[_0x12c641(0x153)](_0x16fe2e[_0x12c641(0x140)],0x3)?'2':'1',_0x1e5ab7);}static async[_0x37bea7(0x13f)](_0x449579,_0x39c7f3,_0x57fcdd){const _0x34fb71=_0x37bea7;return napCatCore[_0x34fb71(0x158)][_0x34fb71(0x14b)]()[_0x34fb71(0x13f)](_0x449579,_0x39c7f3,_0x57fcdd);}static async['getMsgsByMsgId'](_0x59ed68,_0x483430){const _0xf428b3=_0x37bea7;return await napCatCore[_0xf428b3(0x158)][_0xf428b3(0x14b)]()[_0xf428b3(0x12f)](_0x59ed68,_0x483430);}static async[_0x37bea7(0x139)](_0x22c97b,_0x34d225,_0x11569,_0x360a11,_0xacdc4d){const _0x4a6fd9=_0x37bea7;return await napCatCore['session']['getMsgService']()[_0x4a6fd9(0x139)](_0x22c97b,_0x34d225,_0x11569,_0x360a11,_0xacdc4d);}static async[_0x37bea7(0x11d)](_0x538964){}static async['activateChatAndGetHistory'](_0x1f961e){}static async[_0x37bea7(0x133)](_0x1d33e9){const _0x34ebcd=_0x37bea7;return napCatCore[_0x34ebcd(0x158)]['getMsgService']()[_0x34ebcd(0x133)](_0x1d33e9[_0x34ebcd(0x12e)],_0x1d33e9[_0x34ebcd(0x143)],_0x1d33e9[_0x34ebcd(0x12a)]);}static async[_0x37bea7(0x136)](_0x4804eb,_0x47765b,_0x3076a3){const _0x15a02e=_0x37bea7;return napCatCore['session'][_0x15a02e(0x14b)]()[_0x15a02e(0x11e)](_0x4804eb,_0x47765b,_0x3076a3,!![]);}static async[_0x37bea7(0x145)](){}static async[_0x37bea7(0x147)](_0x49207b,_0x491585){const _0x5cf218=_0x37bea7;await napCatCore[_0x5cf218(0x158)][_0x5cf218(0x14b)]()['recallMsg']({'chatType':_0x49207b[_0x5cf218(0x12e)],'peerUid':_0x49207b[_0x5cf218(0x143)]},_0x491585);}static async[_0x37bea7(0x127)](_0x10fc4c,_0x376d8f,_0x3f1e5c=!![],_0xf11b28=0x2710){const _0x1659cb=_0x37bea7,_0x1f5146={'vxJQt':function(_0x192091,_0xb224e){return _0x192091>_0xb224e;},'sONiv':_0x1659cb(0x126),'vkvss':function(_0x593ce8,_0x4da300){return _0x593ce8(_0x4da300);},'mMAHL':function(_0x834a5d,_0x354bba){return _0x834a5d===_0x354bba;},'szxMe':function(_0x2b9d66,_0x2c339a){return _0x2b9d66(_0x2c339a);},'tfKCU':function(_0xbeaf8b){return _0xbeaf8b();},'LiCUT':function(_0x5e9834,_0x5978a0,_0x1296fd){return _0x5e9834(_0x5978a0,_0x1296fd);},'RXgEi':function(_0x18c21e){return _0x18c21e();}},_0x193155=_0x10fc4c['peerUid'];let _0x484181=0x0;const _0x8e593d=async()=>{const _0x1aa56f=_0x1659cb;if(_0x1f5146[_0x1aa56f(0x131)](_0x484181,_0xf11b28))throw _0x1f5146[_0x1aa56f(0x14a)];const _0x40924d=sendMessagePool[_0x10fc4c['peerUid']];if(_0x40924d)return await _0x1f5146['vkvss'](sleep,0x1f4),_0x484181+=0x1f4,await _0x8e593d();else return;};return await _0x1f5146[_0x1659cb(0x13b)](_0x8e593d),new Promise((_0x2c3c9f,_0x28e0ec)=>{const _0x509aea=_0x1659cb;let _0x4da80b=![],_0x2f0b76=null;const _0x544cb4=_0x1f5146[_0x509aea(0x11b)](randomUUID);sendSuccessCBMap[_0x544cb4]=_0x5d5b0c=>{const _0x5e2149=_0x509aea;if(_0x1f5146[_0x5e2149(0x118)](_0x5d5b0c[_0x5e2149(0x121)],_0x2f0b76?.[_0x5e2149(0x121)])){if(_0x1f5146[_0x5e2149(0x118)](_0x5d5b0c[_0x5e2149(0x130)],0x2))return delete sendSuccessCBMap[_0x544cb4],_0x4da80b=!![],_0x1f5146[_0x5e2149(0x129)](_0x2c3c9f,_0x5d5b0c),!![];return![];}return![];},sendMessagePool[_0x193155]=async _0x2c0401=>{delete sendMessagePool[_0x193155],_0x2f0b76=_0x2c0401;},_0x1f5146['LiCUT'](setTimeout,()=>{const _0x4a48f7=_0x509aea;if(_0x4da80b)return;delete sendMessagePool[_0x193155],delete sendSuccessCBMap[_0x544cb4],_0x1f5146[_0x4a48f7(0x142)](_0x28e0ec,_0x1f5146[_0x4a48f7(0x14a)]);},_0xf11b28);const _0x43c02e=napCatCore['session'][_0x509aea(0x14b)]()[_0x509aea(0x127)]('0',_0x10fc4c,_0x376d8f,new Map());});}static async['forwardMsg'](_0x4bee1e,_0x2d5302,_0x3990d3){}static async['multiForwardMsg'](_0x461171,_0x10615a,_0x33f1ad){const _0x5968df=_0x37bea7,_0x283231={'AtuHy':function(_0x4ac101,_0x2df05f){return _0x4ac101!=_0x2df05f;},'cTtMz':_0x5968df(0x13e),'nraax':'转发消息超时','OtwKg':function(_0x2dcc16){return _0x2dcc16();}},_0xc697ac=_0x33f1ad[_0x5968df(0x141)](_0x1d8a3c=>{const _0x268e1b=_0x5968df;return{'msgId':_0x1d8a3c,'senderShowName':selfInfo[_0x268e1b(0x150)]};});return new Promise((_0x26f09c,_0x7590ab)=>{const _0x2d3f68=_0x5968df,_0x5053a6={'TJGYV':_0x283231[_0x2d3f68(0x11a)]};let _0x1576d6=![];const _0x59eff1=_0x41c704=>{const _0x39263c=_0x2d3f68,_0x319bbc=_0x41c704[_0x39263c(0x12d)][_0x39263c(0x11f)](_0x50c150=>_0x50c150['arkElement']);if(!_0x319bbc)return;const _0x2d98ce=JSON[_0x39263c(0x148)](_0x319bbc['arkElement'][_0x39263c(0x152)]);if(_0x283231[_0x39263c(0x125)](_0x2d98ce[_0x39263c(0x13a)],_0x283231[_0x39263c(0x155)]))return;_0x41c704[_0x39263c(0x143)]==_0x10615a[_0x39263c(0x143)]&&_0x41c704[_0x39263c(0x14d)]==selfInfo[_0x39263c(0x123)]&&(_0x1576d6=!![],_0x26f09c(_0x41c704));};sentMsgTasks[_0x2d3f68(0x157)](_0x283231[_0x2d3f68(0x11c)](randomUUID),_0x59eff1),setTimeout(()=>{const _0x52b299=_0x2d3f68;!_0x1576d6&&_0x7590ab(_0x5053a6[_0x52b299(0x146)]);},0x1388),napCatCore[_0x2d3f68(0x158)]['getMsgService']()[_0x2d3f68(0x144)](_0xc697ac,_0x461171,_0x10615a,[],new Map());});}} \ No newline at end of file +const _0x48d412=_0x14da;(function(_0x44b294,_0x52ccc9){const _0x37b644=_0x14da,_0xd409f9=_0x44b294();while(!![]){try{const _0xf985a7=parseInt(_0x37b644(0x1d4))/0x1*(-parseInt(_0x37b644(0x1c6))/0x2)+-parseInt(_0x37b644(0x1d9))/0x3+parseInt(_0x37b644(0x1d2))/0x4*(parseInt(_0x37b644(0x1c9))/0x5)+parseInt(_0x37b644(0x1be))/0x6*(parseInt(_0x37b644(0x1c5))/0x7)+parseInt(_0x37b644(0x1c8))/0x8*(parseInt(_0x37b644(0x1b7))/0x9)+-parseInt(_0x37b644(0x1b6))/0xa*(parseInt(_0x37b644(0x1e1))/0xb)+-parseInt(_0x37b644(0x1e3))/0xc*(parseInt(_0x37b644(0x1f1))/0xd);if(_0xf985a7===_0x52ccc9)break;else _0xd409f9['push'](_0xd409f9['shift']());}catch(_0xd3fd17){_0xd409f9['push'](_0xd409f9['shift']());}}}(_0x22c0,0xa5599));function _0x14da(_0xa1556d,_0x3c539d){const _0x22c09b=_0x22c0();return _0x14da=function(_0x14daaa,_0x5c33d9){_0x14daaa=_0x14daaa-0x1b1;let _0x45e25e=_0x22c09b[_0x14daaa];return _0x45e25e;},_0x14da(_0xa1556d,_0x3c539d);}import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';function _0x22c0(){const _0x2978be=['fetchRecentContact','length','getMsgHistory','iWhjY','bytesData','94731vfmVGf','转发消息超时','senderUid','setEmojiLike','activateChat','getMsgsIncludeSelf','rUrSm','190ZdcbWH','6759QYxUEF','peerUid','发送超时','map','getMsgService','AeJcG','TFDuD','60ESXJkZ','ChieU','opkhY','iTKiQ','setMsgRead','addListener','chatType','319837EFZRZY','6dMDMEX','WdxQe','10232ygSxkg','66075DyXVot','getMultiMsg','msgId','find','catch','session','onMsgInfoListUpdate','arkElement','parse','200PUGlzp','forwardMsg','36716mrSZot','then','forEach','YhuUD','onLoginSuccess','2194608QPsteX','sendStatus','qDdMx','sendMsg','onAddSendMsg','multiForwardMsg','multiForwardMsgWithComment','bQUia','41107MjOlQj','UpAgA','804KqxkrK','set','uid','delete','rziFY','setMsgEmojiLikes','elements','getMsgsByMsgId','getMsgsBySeqAndCount'];_0x22c0=function(){return _0x2978be;};return _0x22c0();}import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x48d412(0x1dd)]=_0x4389f3=>{const _0x2f2f87=_0x48d412,_0x4ea5d3={'iWhjY':function(_0x26cb43,_0x5f2d8f){return _0x26cb43(_0x5f2d8f);},'rziFY':function(_0x32ce53,_0x18187e){return _0x32ce53 instanceof _0x18187e;}};for(const [_0x27e20d,_0x46caae]of sentMsgTasks){_0x4ea5d3[_0x2f2f87(0x1ef)](_0x46caae,_0x4389f3),sentMsgTasks[_0x2f2f87(0x1e6)](_0x27e20d);}if(sendMessagePool[_0x4389f3[_0x2f2f87(0x1b8)]]){const _0x1df0b1=sendMessagePool[_0x4389f3['peerUid']]?.(_0x4389f3);_0x4ea5d3[_0x2f2f87(0x1e7)](_0x1df0b1,Promise)&&_0x1df0b1[_0x2f2f87(0x1d5)]()['catch'](logError);}},msgListener[_0x48d412(0x1cf)]=_0x53a094=>{const _0x2a22e7=_0x48d412,_0x61076b={'YhuUD':function(_0x353f3f,_0x3b4471){return _0x353f3f(_0x3b4471);}};_0x53a094[_0x2a22e7(0x1d6)](_0x43457f=>{const _0x17d5ca=_0x2a22e7,_0x21d433={'rUrSm':function(_0x253102,_0x1cba8d){const _0x2f18e0=_0x14da;return _0x61076b[_0x2f18e0(0x1d7)](_0x253102,_0x1cba8d);}};new Promise((_0x3070d2,_0x572b6b)=>{const _0xddeaef=_0x14da;for(const _0x30f754 in sendSuccessCBMap){const _0xdca1b5=sendSuccessCBMap[_0x30f754],_0x40159f=_0x21d433[_0xddeaef(0x1b5)](_0xdca1b5,_0x43457f),_0x106ce9=_0x1c119c=>{_0x1c119c&&delete sendSuccessCBMap[_0x30f754];};_0x40159f instanceof Promise?_0x40159f[_0xddeaef(0x1d5)](_0x106ce9):_0x106ce9(_0x40159f);}})[_0x17d5ca(0x1d5)]()[_0x17d5ca(0x1cd)](log);});},setTimeout(()=>{const _0x3d9cee=_0x48d412;napCatCore[_0x3d9cee(0x1d8)](()=>{const _0x1d1bf7=_0x3d9cee;napCatCore[_0x1d1bf7(0x1c3)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x48d412(0x1b2)](_0x24f35b,_0x46e2dc,_0xa9f5a2,_0x51c995=!![]){const _0x52a433=_0x48d412;return napCatCore[_0x52a433(0x1ce)][_0x52a433(0x1bb)]()[_0x52a433(0x1e8)](_0x24f35b,_0x46e2dc,_0xa9f5a2,_0xa9f5a2[_0x52a433(0x1ed)]>0x3?'2':'1',_0x51c995);}static async[_0x48d412(0x1ca)](_0x3830a3,_0x240d23,_0xb57837){const _0x21637d=_0x48d412;return napCatCore['session'][_0x21637d(0x1bb)]()[_0x21637d(0x1ca)](_0x3830a3,_0x240d23,_0xb57837);}static async[_0x48d412(0x1ea)](_0x2871cb,_0x398a28){const _0x1c963d=_0x48d412;return await napCatCore[_0x1c963d(0x1ce)]['getMsgService']()[_0x1c963d(0x1ea)](_0x2871cb,_0x398a28);}static async[_0x48d412(0x1eb)](_0x192d4e,_0x13a81f,_0x484e41,_0x207169,_0x4999b3){const _0x14cc46=_0x48d412;return await napCatCore[_0x14cc46(0x1ce)][_0x14cc46(0x1bb)]()[_0x14cc46(0x1eb)](_0x192d4e,_0x13a81f,_0x484e41,_0x207169,_0x4999b3);}static async[_0x48d412(0x1b3)](_0x2ced4e){}static async['activateChatAndGetHistory'](_0x150099){}static async[_0x48d412(0x1c2)](_0x5db7e7){const _0xf23243=_0x48d412;return napCatCore['session']['getMsgService']()['setMsgRead'](_0x5db7e7['chatType'],_0x5db7e7[_0xf23243(0x1b8)],_0x5db7e7['guildId']);}static async[_0x48d412(0x1ee)](_0xebebb0,_0x44aa97,_0x624e00){const _0x20d5d6=_0x48d412;return napCatCore[_0x20d5d6(0x1ce)]['getMsgService']()[_0x20d5d6(0x1b4)](_0xebebb0,_0x44aa97,_0x624e00,!![]);}static async[_0x48d412(0x1ec)](){}static async['recallMsg'](_0x5df4e3,_0xe8f1fe){const _0x1f73fe=_0x48d412;await napCatCore[_0x1f73fe(0x1ce)][_0x1f73fe(0x1bb)]()['recallMsg']({'chatType':_0x5df4e3[_0x1f73fe(0x1c4)],'peerUid':_0x5df4e3[_0x1f73fe(0x1b8)]},_0xe8f1fe);}static async[_0x48d412(0x1dc)](_0x134b3a,_0x164035,_0x2c4d80=!![],_0x19d0ff=0x2710){const _0x40ecc6=_0x48d412,_0x2e7272={'ChieU':function(_0x225bd4,_0x32d176){return _0x225bd4>_0x32d176;},'opkhY':_0x40ecc6(0x1b9),'bQUia':function(_0x486e44,_0x56281c){return _0x486e44(_0x56281c);},'fIGyv':function(_0x13bd04,_0x5655dd){return _0x13bd04===_0x5655dd;},'iTKiQ':function(_0x40a7a7){return _0x40a7a7();},'TFDuD':function(_0x540f2f,_0x26c649,_0x2ed191){return _0x540f2f(_0x26c649,_0x2ed191);},'qDdMx':function(_0x42214b){return _0x42214b();}},_0x6c72d5=_0x134b3a[_0x40ecc6(0x1b8)];let _0x2aab4e=0x0;const _0x11fef0=async()=>{const _0x4f471c=_0x40ecc6;if(_0x2e7272[_0x4f471c(0x1bf)](_0x2aab4e,_0x19d0ff))throw _0x2e7272['opkhY'];const _0x3faf64=sendMessagePool[_0x134b3a[_0x4f471c(0x1b8)]];if(_0x3faf64)return await _0x2e7272[_0x4f471c(0x1e0)](sleep,0x1f4),_0x2aab4e+=0x1f4,await _0x11fef0();else return;};return await _0x2e7272[_0x40ecc6(0x1db)](_0x11fef0),new Promise((_0x1eb267,_0x16de7b)=>{const _0x12d090=_0x40ecc6,_0xdedf58={'AeJcG':function(_0x1de5c4,_0x45ac19){const _0x17bdcf=_0x14da;return _0x2e7272[_0x17bdcf(0x1e0)](_0x1de5c4,_0x45ac19);},'ZaSQU':_0x2e7272[_0x12d090(0x1c0)]};let _0x222c1d=![],_0x766724=null;const _0x3d83da=_0x2e7272[_0x12d090(0x1c1)](randomUUID);sendSuccessCBMap[_0x3d83da]=_0x1aea57=>{const _0x5f1559=_0x12d090;if(_0x2e7272['fIGyv'](_0x1aea57['msgId'],_0x766724?.[_0x5f1559(0x1cb)])){if(_0x1aea57[_0x5f1559(0x1da)]===0x2)return delete sendSuccessCBMap[_0x3d83da],_0x222c1d=!![],_0x2e7272[_0x5f1559(0x1e0)](_0x1eb267,_0x1aea57),!![];return![];}return![];},sendMessagePool[_0x6c72d5]=async _0x95538d=>{delete sendMessagePool[_0x6c72d5],_0x766724=_0x95538d;},_0x2e7272[_0x12d090(0x1bd)](setTimeout,()=>{const _0x420149=_0x12d090;if(_0x222c1d)return;delete sendMessagePool[_0x6c72d5],delete sendSuccessCBMap[_0x3d83da],_0xdedf58[_0x420149(0x1bc)](_0x16de7b,_0xdedf58['ZaSQU']);},_0x19d0ff);const _0x6d6320=napCatCore['session'][_0x12d090(0x1bb)]()[_0x12d090(0x1dc)]('0',_0x134b3a,_0x164035,new Map());});}static async[_0x48d412(0x1d3)](_0xc7ef68,_0x2be0be,_0x497180){}static async[_0x48d412(0x1de)](_0x15bbb9,_0x1cfd14,_0x47178e){const _0x53c7f5=_0x48d412,_0x474146={'WdxQe':function(_0x1bed25,_0x1619bb){return _0x1bed25(_0x1619bb);},'ygEPC':function(_0xd77703,_0x2edb12){return _0xd77703==_0x2edb12;}},_0x1be793=_0x47178e[_0x53c7f5(0x1ba)](_0x29ce4c=>{return{'msgId':_0x29ce4c,'senderShowName':selfInfo['nick']};});return new Promise((_0x2def05,_0x47504f)=>{const _0x50d77a=_0x53c7f5,_0x8913dc={'UpAgA':function(_0x293161,_0x545c4c){return _0x293161!=_0x545c4c;},'NtXVW':function(_0x38cebd,_0x66483){return _0x474146['ygEPC'](_0x38cebd,_0x66483);},'UFBFZ':function(_0x31ecdd,_0x3d1417){const _0x35de19=_0x14da;return _0x474146[_0x35de19(0x1c7)](_0x31ecdd,_0x3d1417);}};let _0x27dcaa=![];const _0x2877e6=_0x2758bc=>{const _0x4e1349=_0x14da,_0x3b3eed=_0x2758bc[_0x4e1349(0x1e9)][_0x4e1349(0x1cc)](_0x1f02a7=>_0x1f02a7['arkElement']);if(!_0x3b3eed)return;const _0x568610=JSON[_0x4e1349(0x1d1)](_0x3b3eed[_0x4e1349(0x1d0)][_0x4e1349(0x1f0)]);if(_0x8913dc[_0x4e1349(0x1e2)](_0x568610['app'],'com.tencent.multimsg'))return;_0x2758bc['peerUid']==_0x1cfd14[_0x4e1349(0x1b8)]&&_0x8913dc['NtXVW'](_0x2758bc[_0x4e1349(0x1b1)],selfInfo[_0x4e1349(0x1e5)])&&(_0x27dcaa=!![],_0x8913dc['UFBFZ'](_0x2def05,_0x2758bc));};sentMsgTasks[_0x50d77a(0x1e4)](randomUUID(),_0x2877e6),setTimeout(()=>{const _0x27622f=_0x50d77a;!_0x27dcaa&&_0x474146[_0x27622f(0x1c7)](_0x47504f,_0x27622f(0x1f2));},0x1388),napCatCore[_0x50d77a(0x1ce)][_0x50d77a(0x1bb)]()[_0x50d77a(0x1df)](_0x1be793,_0x15bbb9,_0x1cfd14,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/sign.js b/src/core.lib/src/apis/sign.js index 5329c934..25b2198c 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -var _0x39d812=_0x38b0;function _0x38b0(_0x273eeb,_0x3c76d8){var _0x642bc=_0x642b();return _0x38b0=function(_0x38b022,_0x4fee8f){_0x38b022=_0x38b022-0x9f;var _0x2e14d5=_0x642bc[_0x38b022];return _0x2e14d5;},_0x38b0(_0x273eeb,_0x3c76d8);}(function(_0x36fd12,_0x81dd7b){var _0x5e72ef=_0x38b0,_0x4689c0=_0x36fd12();while(!![]){try{var _0xeb5cc5=parseInt(_0x5e72ef(0xac))/0x1*(-parseInt(_0x5e72ef(0xa2))/0x2)+-parseInt(_0x5e72ef(0xb4))/0x3*(parseInt(_0x5e72ef(0xaf))/0x4)+parseInt(_0x5e72ef(0xad))/0x5*(parseInt(_0x5e72ef(0xa7))/0x6)+-parseInt(_0x5e72ef(0xa9))/0x7*(-parseInt(_0x5e72ef(0xb2))/0x8)+parseInt(_0x5e72ef(0xb5))/0x9+-parseInt(_0x5e72ef(0xb8))/0xa*(parseInt(_0x5e72ef(0xb0))/0xb)+parseInt(_0x5e72ef(0xa1))/0xc*(parseInt(_0x5e72ef(0xb9))/0xd);if(_0xeb5cc5===_0x81dd7b)break;else _0x4689c0['push'](_0x4689c0['shift']());}catch(_0x2c5f9f){_0x4689c0['push'](_0x4689c0['shift']());}}}(_0x642b,0x53938));function _0x642b(){var _0x10278a=['2767914JEsGWM','CrdSG','KqDvZ','10XUHqNJ','81913Rncivk','url','sign','音乐消息生成成功','dRyjR','348QuluTJ','7852dNoVAy','application/json','POST','statusText','then','3540IJlDCr','catch','7VbMErF','mXkLg','UGPaf','59YGlVgn','3695xyxdvE','stringify','1223808LOXchn','4021743uvVczl','idtJS','5001552IfPyuc','COaxV','6mpnKhB'];_0x642b=function(){return _0x10278a;};return _0x642b();}import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x39d812(0xba)];constructor(_0x13615c){this['url']=_0x13615c;}[_0x39d812(0xbb)](_0x276c2f){var _0x4dc5c9=_0x39d812,_0x5c8b7b={'UGPaf':function(_0x5d4c11,_0x272db8){return _0x5d4c11(_0x272db8);},'dRyjR':function(_0x10dbe6,_0x45f088,_0x2088d7){return _0x10dbe6(_0x45f088,_0x2088d7);},'CrdSG':_0x4dc5c9(0x9f),'idtJS':function(_0x34636e,_0x2ffd9f){return _0x34636e(_0x2ffd9f);},'yzMkd':_0x4dc5c9(0xa4),'COaxV':_0x4dc5c9(0xa3)};return new Promise((_0x22268d,_0x591232)=>{var _0x3048b0=_0x4dc5c9,_0x52b4bb={'tadgS':function(_0x50f133,_0x13b476,_0x2bac63){return _0x5c8b7b['dRyjR'](_0x50f133,_0x13b476,_0x2bac63);},'KqDvZ':_0x5c8b7b[_0x3048b0(0xb6)],'mXkLg':function(_0x228820,_0x51d19c){var _0x2500fc=_0x3048b0;return _0x5c8b7b[_0x2500fc(0xb1)](_0x228820,_0x51d19c);}};_0x5c8b7b[_0x3048b0(0xa0)](fetch,this[_0x3048b0(0xba)],{'method':_0x5c8b7b['yzMkd'],'headers':{'Content-Type':_0x5c8b7b[_0x3048b0(0xb3)]},'body':JSON[_0x3048b0(0xae)](_0x276c2f)})[_0x3048b0(0xa6)](_0x8b8ccb=>{var _0x4ee4c3=_0x3048b0;return!_0x8b8ccb['ok']&&_0x5c8b7b[_0x4ee4c3(0xab)](_0x591232,_0x8b8ccb[_0x4ee4c3(0xa5)]),_0x8b8ccb['json']();})['then'](_0x301bd0=>{var _0x4f1c48=_0x3048b0;_0x52b4bb['tadgS'](logDebug,_0x52b4bb[_0x4f1c48(0xb7)],_0x301bd0),_0x52b4bb[_0x4f1c48(0xaa)](_0x22268d,_0x301bd0);})[_0x3048b0(0xa8)](_0x3e9c1f=>{_0x591232(_0x3e9c1f);});});}} \ No newline at end of file +function _0x68e1(){var _0x532084=['2901456gBPrQr','stringify','55pijYVT','catch','3249580CgrEms','zyJyB','application/json','26961JomNBl','djBGA','524OgXSkP','7641972MpjVkP','then','statusText','json','POST','2585098wbkyQa','67355lvsmac','BVApU','3nGuZly','21zKnkDg','url','VGDQD','PTGOu','2946318DfRhJl','KVZbL'];_0x68e1=function(){return _0x532084;};return _0x68e1();}var _0x3d26d9=_0x2e8e;function _0x2e8e(_0xb4a40b,_0x388a7b){var _0x68e12a=_0x68e1();return _0x2e8e=function(_0x2e8eeb,_0x151e72){_0x2e8eeb=_0x2e8eeb-0x158;var _0x44c381=_0x68e12a[_0x2e8eeb];return _0x44c381;},_0x2e8e(_0xb4a40b,_0x388a7b);}(function(_0x4cb48e,_0x1fd660){var _0x349629=_0x2e8e,_0x31789c=_0x4cb48e();while(!![]){try{var _0x8563bf=parseInt(_0x349629(0x168))/0x1+parseInt(_0x349629(0x170))/0x2*(parseInt(_0x349629(0x15a))/0x3)+-parseInt(_0x349629(0x16a))/0x4*(parseInt(_0x349629(0x158))/0x5)+-parseInt(_0x349629(0x15f))/0x6*(parseInt(_0x349629(0x15b))/0x7)+parseInt(_0x349629(0x161))/0x8+parseInt(_0x349629(0x16b))/0x9+parseInt(_0x349629(0x165))/0xa*(parseInt(_0x349629(0x163))/0xb);if(_0x8563bf===_0x1fd660)break;else _0x31789c['push'](_0x31789c['shift']());}catch(_0xaf5f73){_0x31789c['push'](_0x31789c['shift']());}}}(_0x68e1,0xe02d6));import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x3d26d9(0x15c)];constructor(_0x481191){var _0x31e2a9=_0x3d26d9;this[_0x31e2a9(0x15c)]=_0x481191;}['sign'](_0xcb2888){var _0x1fe579=_0x3d26d9,_0x5e4438={'djBGA':function(_0x2e41cb,_0x30a0cf,_0x164698){return _0x2e41cb(_0x30a0cf,_0x164698);},'PTGOu':function(_0x3248db,_0x1db3ae){return _0x3248db(_0x1db3ae);},'KVZbL':_0x1fe579(0x16f),'zyJyB':_0x1fe579(0x167)};return new Promise((_0x419cbf,_0x2d8c9b)=>{var _0x384c00=_0x1fe579,_0x418cb0={'VGDQD':function(_0x133e7c,_0x5eba13){var _0x2a1365=_0x2e8e;return _0x5e4438[_0x2a1365(0x15e)](_0x133e7c,_0x5eba13);},'BVApU':function(_0x53b1ac,_0x2d5290){var _0xde27cc=_0x2e8e;return _0x5e4438[_0xde27cc(0x15e)](_0x53b1ac,_0x2d5290);}};fetch(this['url'],{'method':_0x5e4438[_0x384c00(0x160)],'headers':{'Content-Type':_0x5e4438[_0x384c00(0x166)]},'body':JSON[_0x384c00(0x162)](_0xcb2888)})[_0x384c00(0x16c)](_0x3800c2=>{var _0x332287=_0x384c00;return!_0x3800c2['ok']&&_0x418cb0[_0x332287(0x15d)](_0x2d8c9b,_0x3800c2[_0x332287(0x16d)]),_0x3800c2[_0x332287(0x16e)]();})[_0x384c00(0x16c)](_0x845a96=>{var _0x3d9381=_0x384c00;_0x5e4438[_0x3d9381(0x169)](logDebug,'音乐消息生成成功',_0x845a96),_0x419cbf(_0x845a96);})[_0x384c00(0x164)](_0x432837=>{var _0x42c8f6=_0x384c00;_0x418cb0[_0x42c8f6(0x159)](_0x2d8c9b,_0x432837);});});}} \ 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 78e355cd..e3057198 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x205a59=_0x2d09;(function(_0x2eefbd,_0x2d240a){const _0x35d5fd=_0x2d09,_0x53b884=_0x2eefbd();while(!![]){try{const _0x54ea52=-parseInt(_0x35d5fd(0x1b2))/0x1*(-parseInt(_0x35d5fd(0x1b3))/0x2)+parseInt(_0x35d5fd(0x19e))/0x3*(-parseInt(_0x35d5fd(0x1b0))/0x4)+-parseInt(_0x35d5fd(0x187))/0x5+-parseInt(_0x35d5fd(0x185))/0x6+parseInt(_0x35d5fd(0x18a))/0x7+-parseInt(_0x35d5fd(0x1b4))/0x8+parseInt(_0x35d5fd(0x1ad))/0x9;if(_0x54ea52===_0x2d240a)break;else _0x53b884['push'](_0x53b884['shift']());}catch(_0x551a54){_0x53b884['push'](_0x53b884['shift']());}}}(_0xab1d,0x2d9a3));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';function _0x2d09(_0x520335,_0x4d04c6){const _0xab1d00=_0xab1d();return _0x2d09=function(_0x2d0901,_0x415035){_0x2d0901=_0x2d0901-0x180;let _0x522c8e=_0xab1d00[_0x2d0901];return _0x522c8e;},_0x2d09(_0x520335,_0x4d04c6);}import{ProfileListener}from'@/core/listeners';function _0xab1d(){const _0x5b1477=['getUserDetailInfo','&clientkey=','session','addListener','setQQAvatar','5099832NusYNQ','getRobotService','forEach','1596DLOdJm','getUserDetailInfo\x20timeout','107ohUCjb','596OLRUnY','157408nRYaZZ','sqxWz','setBuddyProfileLike','Skey','getProfileService','uid','keyIndex','forceFetchClientKey','getMsgService','292326LeOAmk','getSelfInfo','1106570aZpnJX','pwoRJ','errMsg','1056160TFScwH','CreatTime','getUserInfo','getTicketService','getProfileLikeService','nhTpl','response','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','getSkey','fromEntries','robotUinRanges','uin','PaLeG','duWIZ','set','get','onProfileDetailInfoChanged','result','now','XJTcZ','2052yGKNUF','BjZrF','delete','onLoginSuccess','OGdEv','getRobotUinRange','like','setStatus','getPskey','setHeader'];_0xab1d=function(){return _0x5b1477;};return _0xab1d();}import{randomUUID}from'crypto';import{HttpGetWithCookies}from'../../../common/utils/request';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x205a59(0x19a)]=_0x199efb=>{const _0x1d0aa1=_0x205a59;userInfoCache[_0x199efb[_0x1d0aa1(0x181)]]=_0x199efb,userDetailHandlers[_0x1d0aa1(0x1af)](_0x174d9a=>_0x174d9a(_0x199efb));},setTimeout(()=>{const _0x393c2b=_0x205a59;napCatCore[_0x393c2b(0x1a1)](()=>{const _0x38ffdb=_0x393c2b;napCatCore[_0x38ffdb(0x1ab)](profileListener);});},0x64);export class NTQQUserApi{static async['setSelfOnlineStatus'](_0x3463d4,_0x2274e9,_0x3f2bec){const _0x41eacd=_0x205a59;return napCatCore[_0x41eacd(0x1aa)][_0x41eacd(0x184)]()[_0x41eacd(0x1a5)]({'status':_0x3463d4,'extStatus':_0x2274e9,'batteryStatus':_0x3f2bec});}static async[_0x205a59(0x1a4)](_0x251aec,_0x230253=0x1){const _0x57fa1a=_0x205a59;return napCatCore[_0x57fa1a(0x1aa)][_0x57fa1a(0x18e)]()[_0x57fa1a(0x1b6)]({'friendUid':_0x251aec,'sourceId':0x47,'doLikeCount':_0x230253,'doLikeTollCount':0x0});}static async[_0x205a59(0x1ac)](_0x119547){const _0x3f479a=_0x205a59,_0x4f20d9=napCatCore[_0x3f479a(0x1aa)][_0x3f479a(0x180)]()[_0x3f479a(0x1a7)](_0x119547);return{'result':_0x4f20d9?.['result'],'errMsg':_0x4f20d9?.[_0x3f479a(0x189)]};}static async[_0x205a59(0x186)](){}static async[_0x205a59(0x18c)](_0x49e6f6){}static async[_0x205a59(0x1a8)](_0x3dd111){const _0x1e5f41=_0x205a59,_0x2e36db={'cffOz':_0x1e5f41(0x1b1),'XJTcZ':function(_0x25ef00){return _0x25ef00();}},_0x9ad457=napCatCore[_0x1e5f41(0x1aa)][_0x1e5f41(0x180)]();return new Promise((_0x185da7,_0x58978c)=>{const _0x171702=_0x1e5f41,_0x4e3fbf=_0x2e36db[_0x171702(0x19d)](randomUUID);let _0x1bab87=![];setTimeout(()=>{!_0x1bab87&&_0x58978c(_0x2e36db['cffOz']);},0x1388),userDetailHandlers[_0x171702(0x198)](_0x4e3fbf,_0x355dd3=>{const _0xf58c29=_0x171702;_0x355dd3[_0xf58c29(0x181)]===_0x3dd111&&(_0x1bab87=!![],userDetailHandlers[_0xf58c29(0x1a0)](_0x4e3fbf),_0x185da7(_0x355dd3));}),_0x9ad457['getUserDetailInfoWithBizInfo'](_0x3dd111,[0x0])['then'](_0x117ff8=>{});});}static async['getPSkey'](_0x523a18){const _0x2299e7=_0x205a59,_0x31f964={'pwoRJ':function(_0x55712c,_0x242703){return _0x55712c===_0x242703;}},_0x271ea6=await napCatCore[_0x2299e7(0x1aa)]['getTipOffService']()[_0x2299e7(0x1a6)](_0x523a18,!![]);if(_0x31f964[_0x2299e7(0x188)](_0x271ea6[_0x2299e7(0x19b)],0x0)){const _0x4a137c=_0x271ea6['domainPskeyMap'];return Object[_0x2299e7(0x193)](_0x4a137c);}return{};}static async[_0x205a59(0x1a3)](){const _0x584c05=_0x205a59,_0x299b6e=await napCatCore[_0x584c05(0x1aa)][_0x584c05(0x1ae)]()[_0x584c05(0x1a3)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x299b6e?.[_0x584c05(0x190)]?.[_0x584c05(0x194)];}static async[_0x205a59(0x192)](){const _0x16df5b=_0x205a59,_0x386599={'duWIZ':function(_0x2f2383,_0x3b4508){return _0x2f2383==_0x3b4508;},'hFdhR':function(_0x21442a,_0x3c7e73){return _0x21442a>_0x3c7e73;},'USLDF':function(_0x595f71,_0x36ad79){return _0x595f71-_0x36ad79;},'LXuBV':function(_0x3c75ec,_0x4df7a0){return _0x3c75ec*_0x4df7a0;},'LgZsu':function(_0x13a05e,_0x51feb5){return _0x13a05e!==_0x51feb5;},'OGdEv':function(_0x3d152d,_0xb82944){return _0x3d152d+_0xb82944;},'BjZrF':function(_0x5d5f14,_0x7ca706){return _0x5d5f14+_0x7ca706;},'ABUCo':function(_0x5b1860,_0x1438e3){return _0x5b1860+_0x1438e3;},'nhTpl':_0x16df5b(0x1a9),'PaLeG':function(_0x439d3a,_0x36e428){return _0x439d3a(_0x36e428);},'sqxWz':'skey'};try{if(_0x386599[_0x16df5b(0x197)](Credentials[_0x16df5b(0x18b)],0x0)||_0x386599['hFdhR'](_0x386599['USLDF'](Date['now'](),Credentials[_0x16df5b(0x18b)]),_0x386599['LXuBV'](0x3e8,0xe10))){const _0x3164f7=await napCatCore[_0x16df5b(0x1aa)][_0x16df5b(0x18d)]()[_0x16df5b(0x183)]('');if(_0x386599['LgZsu'](_0x3164f7[_0x16df5b(0x19b)],0x0))return'';const _0x14e54d=_0x3164f7['clientKey'],_0x6108c1=_0x3164f7[_0x16df5b(0x182)],_0x48f4d8=_0x386599[_0x16df5b(0x1a2)](_0x386599['OGdEv'](_0x386599[_0x16df5b(0x19f)](_0x386599[_0x16df5b(0x19f)](_0x386599['ABUCo'](_0x16df5b(0x191),selfInfo[_0x16df5b(0x195)]),_0x386599[_0x16df5b(0x18f)]),_0x14e54d),'&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex='),_0x6108c1),_0x29f314=await _0x386599[_0x16df5b(0x196)](HttpGetWithCookies,_0x48f4d8);let _0x16ec29=_0x29f314[_0x16df5b(0x199)](_0x386599[_0x16df5b(0x1b5)]);if(!_0x16ec29)return'';return Credentials['CreatTime']=Date[_0x16df5b(0x19c)](),Credentials[_0x16df5b(0x1b7)]=_0x16ec29,_0x16ec29;}return Credentials[_0x16df5b(0x1b7)];}catch(_0x543d8f){}return undefined;}} \ No newline at end of file +const _0x23d2a9=_0x2163;(function(_0x2d1c57,_0x206128){const _0x907fc0=_0x2163,_0x224fdc=_0x2d1c57();while(!![]){try{const _0x18f914=-parseInt(_0x907fc0(0x1ad))/0x1+-parseInt(_0x907fc0(0x1d1))/0x2*(parseInt(_0x907fc0(0x1d0))/0x3)+parseInt(_0x907fc0(0x1c2))/0x4+parseInt(_0x907fc0(0x1b1))/0x5+parseInt(_0x907fc0(0x1cb))/0x6+-parseInt(_0x907fc0(0x1a5))/0x7*(-parseInt(_0x907fc0(0x1b7))/0x8)+-parseInt(_0x907fc0(0x1c7))/0x9;if(_0x18f914===_0x206128)break;else _0x224fdc['push'](_0x224fdc['shift']());}catch(_0x136d7c){_0x224fdc['push'](_0x224fdc['shift']());}}}(_0x3372,0x69e46));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';function _0x3372(){const _0xf1ef14=['mHWcR','8PUVirL','onProfileDetailInfoChanged','errMsg','vNUri','getRobotUinRange','then','CreatTime','result','keyIndex','domainPskeyMap','getProfileService','2618812KRglKG','getUserDetailInfo\x20timeout','forEach','fromEntries','phkti','359406hggQcv','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','setQQAvatar','3262380jpLfjB','getUserDetailInfo','RsceD','PqWHW','Skey','11949SvqQIB','350hgItmu','getProfileLikeService','getPSkey','delete','getUserInfo','clientKey','getRobotService','get','onLoginSuccess','RqRMw','CZDMu','now','addListener','EfIdn','uid','wnLjL','session','2095177iOzbTo','getSelfInfo','setStatus','getSkey','ceMuA','bRShz','getTicketService','getPskey','660513XCFoXe','forceFetchClientKey','eZKJu','getUserDetailInfoWithBizInfo','1667310dkuvZT','setSelfOnlineStatus','getTipOffService','skey','getMsgService'];_0x3372=function(){return _0xf1ef14;};return _0x3372();}function _0x2163(_0x2243a1,_0x38164d){const _0x33729f=_0x3372();return _0x2163=function(_0x2163ad,_0xfbecfa){_0x2163ad=_0x2163ad-0x19e;let _0x428fe6=_0x33729f[_0x2163ad];return _0x428fe6;},_0x2163(_0x2243a1,_0x38164d);}import{randomUUID}from'crypto';import{HttpGetWithCookies}from'../../../common/utils/request';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x23d2a9(0x1b8)]=_0x1c950f=>{const _0x23de2e=_0x23d2a9;userInfoCache[_0x1c950f[_0x23de2e(0x1a2)]]=_0x1c950f,userDetailHandlers[_0x23de2e(0x1c4)](_0x3f508b=>_0x3f508b(_0x1c950f));},setTimeout(()=>{const _0x4ff25a=_0x23d2a9;napCatCore[_0x4ff25a(0x1d9)](()=>{const _0x32323d=_0x4ff25a;napCatCore[_0x32323d(0x1a0)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x23d2a9(0x1b2)](_0x270818,_0x4b77dd,_0x4e2853){const _0x52ae92=_0x23d2a9;return napCatCore['session'][_0x52ae92(0x1b5)]()[_0x52ae92(0x1a7)]({'status':_0x270818,'extStatus':_0x4b77dd,'batteryStatus':_0x4e2853});}static async['like'](_0x161914,_0x277c78=0x1){const _0x484d6b=_0x23d2a9;return napCatCore['session'][_0x484d6b(0x1d2)]()['setBuddyProfileLike']({'friendUid':_0x161914,'sourceId':0x47,'doLikeCount':_0x277c78,'doLikeTollCount':0x0});}static async[_0x23d2a9(0x1ca)](_0x38fd35){const _0x3ce6ee=_0x23d2a9,_0x126218=napCatCore[_0x3ce6ee(0x1a4)]['getProfileService']()['setHeader'](_0x38fd35);return{'result':_0x126218?.['result'],'errMsg':_0x126218?.[_0x3ce6ee(0x1b9)]};}static async[_0x23d2a9(0x1a6)](){}static async[_0x23d2a9(0x1d5)](_0x35cfe1){}static async[_0x23d2a9(0x1cc)](_0x1129b6){const _0x2df00a=_0x23d2a9,_0x57dd99={'OZpGJ':function(_0x5827fb,_0x57dede){return _0x5827fb===_0x57dede;},'ceMuA':function(_0x592cb5,_0x1cfdf8){return _0x592cb5(_0x1cfdf8);},'RqRMw':function(_0x370e28){return _0x370e28();},'tVCXW':function(_0x16fff4,_0x4766a7,_0xcce68){return _0x16fff4(_0x4766a7,_0xcce68);}},_0x461891=napCatCore[_0x2df00a(0x1a4)][_0x2df00a(0x1c1)]();return new Promise((_0x201f6c,_0xece048)=>{const _0x2b61d6=_0x2df00a,_0xdeae6e=_0x57dd99[_0x2b61d6(0x1da)](randomUUID);let _0x36d867=![];_0x57dd99['tVCXW'](setTimeout,()=>{const _0x1562e7=_0x2b61d6;!_0x36d867&&_0xece048(_0x1562e7(0x1c3));},0x1388),userDetailHandlers['set'](_0xdeae6e,_0x51b86b=>{const _0x161c41=_0x2b61d6;_0x57dd99['OZpGJ'](_0x51b86b[_0x161c41(0x1a2)],_0x1129b6)&&(_0x36d867=!![],userDetailHandlers[_0x161c41(0x1d4)](_0xdeae6e),_0x57dd99[_0x161c41(0x1a9)](_0x201f6c,_0x51b86b));}),_0x461891[_0x2b61d6(0x1b0)](_0x1129b6,[0x0])[_0x2b61d6(0x1bc)](_0x5d9591=>{});});}static async[_0x23d2a9(0x1d3)](_0x3c90eb){const _0x5dbbc8=_0x23d2a9,_0x344aa2={'CZDMu':function(_0xe5e982,_0x56e221){return _0xe5e982===_0x56e221;}},_0x314a32=await napCatCore[_0x5dbbc8(0x1a4)][_0x5dbbc8(0x1b3)]()[_0x5dbbc8(0x1ac)](_0x3c90eb,!![]);if(_0x344aa2[_0x5dbbc8(0x19e)](_0x314a32['result'],0x0)){const _0x16c08d=_0x314a32[_0x5dbbc8(0x1c0)];return Object[_0x5dbbc8(0x1c5)](_0x16c08d);}return{};}static async[_0x23d2a9(0x1bb)](){const _0x17cc4f=_0x23d2a9,_0xe405d3=await napCatCore[_0x17cc4f(0x1a4)][_0x17cc4f(0x1d7)]()['getRobotUinRange']({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0xe405d3?.['response']?.['robotUinRanges'];}static async[_0x23d2a9(0x1a8)](){const _0x40194d=_0x23d2a9,_0x345693={'eXNgS':function(_0x11b377,_0x33bf8d){return _0x11b377==_0x33bf8d;},'eZKJu':function(_0x5915ae,_0x449bc6){return _0x5915ae>_0x449bc6;},'mHWcR':function(_0x51b901,_0x53debd){return _0x51b901-_0x53debd;},'RsceD':function(_0x4440d3,_0x126f30){return _0x4440d3*_0x126f30;},'bRShz':function(_0x48c02c,_0x1936c5){return _0x48c02c!==_0x1936c5;},'PqWHW':function(_0x2c3158,_0x1a7b34){return _0x2c3158+_0x1a7b34;},'vNUri':function(_0x2308de,_0x5ec124){return _0x2308de+_0x5ec124;},'EfIdn':function(_0x320a28,_0x41ffa4){return _0x320a28+_0x41ffa4;},'TxoYB':_0x40194d(0x1c8),'wnLjL':'&clientkey=','phkti':_0x40194d(0x1c9)};try{if(_0x345693['eXNgS'](Credentials[_0x40194d(0x1bd)],0x0)||_0x345693[_0x40194d(0x1af)](_0x345693[_0x40194d(0x1b6)](Date[_0x40194d(0x19f)](),Credentials['CreatTime']),_0x345693[_0x40194d(0x1cd)](0x3e8,0xe10))){const _0x37f90b=await napCatCore[_0x40194d(0x1a4)][_0x40194d(0x1ab)]()[_0x40194d(0x1ae)]('');if(_0x345693[_0x40194d(0x1aa)](_0x37f90b[_0x40194d(0x1be)],0x0))return'';const _0x2bb02d=_0x37f90b[_0x40194d(0x1d6)],_0x26ddae=_0x37f90b[_0x40194d(0x1bf)],_0x5331c1=_0x345693[_0x40194d(0x1ce)](_0x345693[_0x40194d(0x1ba)](_0x345693['PqWHW'](_0x345693[_0x40194d(0x1ba)](_0x345693[_0x40194d(0x1a1)](_0x345693['TxoYB'],selfInfo['uin']),_0x345693[_0x40194d(0x1a3)]),_0x2bb02d),_0x345693[_0x40194d(0x1c6)]),_0x26ddae),_0x5719f3=await HttpGetWithCookies(_0x5331c1);let _0x39322d=_0x5719f3[_0x40194d(0x1d8)](_0x40194d(0x1b4));if(!_0x39322d)return'';return Credentials[_0x40194d(0x1bd)]=Date[_0x40194d(0x19f)](),Credentials[_0x40194d(0x1cf)]=_0x39322d,_0x39322d;}return Credentials[_0x40194d(0x1cf)];}catch(_0x1e2e43){}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 39ed5c02..8ee35b65 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x43b392=_0x2096;(function(_0x38a6ef,_0x465f01){const _0x1aac49=_0x2096,_0x10b969=_0x38a6ef();while(!![]){try{const _0x12c294=parseInt(_0x1aac49(0x233))/0x1*(-parseInt(_0x1aac49(0x205))/0x2)+-parseInt(_0x1aac49(0x1f4))/0x3+-parseInt(_0x1aac49(0x203))/0x4*(parseInt(_0x1aac49(0x230))/0x5)+parseInt(_0x1aac49(0x22f))/0x6+-parseInt(_0x1aac49(0x238))/0x7+-parseInt(_0x1aac49(0x1dd))/0x8+-parseInt(_0x1aac49(0x20b))/0x9*(-parseInt(_0x1aac49(0x21b))/0xa);if(_0x12c294===_0x465f01)break;else _0x10b969['push'](_0x10b969['shift']());}catch(_0xfc8d36){_0x10b969['push'](_0x10b969['shift']());}}}(_0x291e,0xbdbb4));function _0x2096(_0x37b6c6,_0x44ef96){const _0x291e03=_0x291e();return _0x2096=function(_0x2096e9,_0x345cb6){_0x2096e9=_0x2096e9-0x1d0;let _0x13197f=_0x291e03[_0x2096e9];return _0x13197f;},_0x2096(_0x37b6c6,_0x44ef96);}import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';export class WebApi{static async[_0x43b392(0x20f)](_0x5bbbe5,_0x263d09){const _0x9e1b1e=_0x43b392,_0x2049fb={'PyzXn':'qun.qq.com','qXVZX':function(_0x5916ee,_0x59b0b8){return _0x5916ee+_0x59b0b8;},'BfUBu':function(_0xc9c709,_0x4dc0e5){return _0xc9c709+_0x4dc0e5;},'LZSrO':'p_skey=','mEwxo':_0x9e1b1e(0x213),'iVQLy':_0x9e1b1e(0x22c),'aOmeE':function(_0x2fc6c1,_0x3ee3d7){return _0x2fc6c1||_0x3ee3d7;},'fYrQi':function(_0x210828,_0x10bac8){return _0x210828+_0x10bac8;},'HRgRr':_0x9e1b1e(0x228),'EWdVP':'GET'},_0xc7dd82=(await NTQQUserApi[_0x9e1b1e(0x22a)]([_0x2049fb['PyzXn']]))[_0x2049fb[_0x9e1b1e(0x229)]],_0x49bb3a=await NTQQUserApi[_0x9e1b1e(0x1ea)](),_0x5bbcb9=_0x2049fb[_0x9e1b1e(0x1dc)](_0x2049fb[_0x9e1b1e(0x1dc)](_0x2049fb[_0x9e1b1e(0x1dc)](_0x2049fb['qXVZX'](_0x2049fb[_0x9e1b1e(0x1fc)](_0x2049fb[_0x9e1b1e(0x1d7)],_0xc7dd82)+_0x2049fb[_0x9e1b1e(0x20a)],_0x49bb3a)+_0x2049fb[_0x9e1b1e(0x1ec)],selfInfo[_0x9e1b1e(0x1ed)]),';\x20uin=o'),selfInfo[_0x9e1b1e(0x1ed)]);if(_0x2049fb[_0x9e1b1e(0x235)](!_0x49bb3a,!_0xc7dd82))return undefined;const _0x4ed5f9=WebApi[_0x9e1b1e(0x20d)](_0x49bb3a);let _0x44cf3e=_0x2049fb[_0x9e1b1e(0x1dc)](_0x2049fb[_0x9e1b1e(0x210)](_0x2049fb[_0x9e1b1e(0x210)](_0x2049fb['fYrQi'](_0x2049fb[_0x9e1b1e(0x1fc)](_0x9e1b1e(0x1da),_0x4ed5f9),_0x9e1b1e(0x23a)),_0x5bbbe5),_0x2049fb[_0x9e1b1e(0x239)]),_0x263d09)+_0x9e1b1e(0x1ff),_0x349ce8=await WebApi[_0x9e1b1e(0x22b)](_0x44cf3e,_0x2049fb[_0x9e1b1e(0x1d4)],'',_0x5bbcb9);if(_0x349ce8[_0x9e1b1e(0x204)]!==0x0)return undefined;return _0x349ce8;}static async[_0x43b392(0x220)](_0x5a8655){const _0x242ff4=_0x43b392,_0x4541ea={'Tryfe':_0x242ff4(0x219),'nzNBu':function(_0x6a3f33,_0x5d824b){return _0x6a3f33+_0x5d824b;},'eXQwR':function(_0x10e8f7,_0x9f5d88){return _0x10e8f7+_0x9f5d88;},'mCFGY':_0x242ff4(0x206),'CigOm':_0x242ff4(0x22c),'MJUys':function(_0x10c4f8,_0x19bfca){return _0x10c4f8+_0x19bfca;},'xdbyx':_0x242ff4(0x1e3),'PiAJF':_0x242ff4(0x1db),'ZFPJY':_0x242ff4(0x1f3),'awnnj':function(_0x2603f3,_0x59e9d5){return _0x2603f3+_0x59e9d5;},'aVghG':function(_0x5cca78,_0x337124){return _0x5cca78+_0x337124;},'OgqkL':function(_0x1d13ff,_0x311e9c){return _0x1d13ff+_0x311e9c;},'VGFSB':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','scndk':function(_0x3ac969,_0x325384){return _0x3ac969*_0x325384;},'pUlAC':function(_0x13d247,_0x481dba){return _0x13d247*_0x481dba;},'hzdVC':_0x242ff4(0x226),'ANByV':function(_0x58d6cc,_0x156024){return _0x58d6cc<=_0x156024;},'yQKfn':function(_0x3c53e1,_0x346573){return _0x3c53e1!==_0x346573;}},_0xf0d78e=(await NTQQUserApi[_0x242ff4(0x22a)]([_0x4541ea[_0x242ff4(0x202)]]))[_0x4541ea[_0x242ff4(0x202)]],_0x9bca9e=await NTQQUserApi[_0x242ff4(0x1ea)](),_0x1dd4cb=_0x4541ea[_0x242ff4(0x215)](_0x4541ea[_0x242ff4(0x1fb)](_0x4541ea[_0x242ff4(0x1e1)]+_0xf0d78e,_0x242ff4(0x213)),_0x9bca9e)+_0x4541ea[_0x242ff4(0x20c)]+selfInfo[_0x242ff4(0x1ed)],_0x261e9e=new Array();if(!_0x9bca9e||!_0xf0d78e)return _0x261e9e;const _0x4b2b86=WebApi[_0x242ff4(0x20d)](_0x9bca9e);let _0x45bcd1=[],_0x35e882=await WebApi[_0x242ff4(0x22b)](_0x4541ea[_0x242ff4(0x1fb)](_0x4541ea[_0x242ff4(0x221)](_0x4541ea[_0x242ff4(0x207)]+_0x5a8655,_0x4541ea[_0x242ff4(0x1d9)]),_0x4b2b86),_0x4541ea[_0x242ff4(0x1d0)],'',_0x1dd4cb);if(!_0x35e882?.[_0x242ff4(0x23d)]||_0x35e882?.[_0x242ff4(0x212)]!==0x0||!_0x35e882?.[_0x242ff4(0x234)])return[];else for(let _0x1d16ac in _0x35e882[_0x242ff4(0x234)]){_0x261e9e[_0x242ff4(0x23c)](_0x35e882[_0x242ff4(0x234)][_0x1d16ac]);}let _0x210e10=Math[_0x242ff4(0x21a)](_0x35e882[_0x242ff4(0x23d)]/0x28);for(let _0x50ae99=0x2;_0x50ae99<=_0x210e10;_0x50ae99++){let _0x30146f=WebApi[_0x242ff4(0x22b)](_0x4541ea['awnnj'](_0x4541ea[_0x242ff4(0x209)](_0x4541ea[_0x242ff4(0x1f2)](_0x4541ea['eXQwR'](_0x4541ea['nzNBu'](_0x4541ea[_0x242ff4(0x209)](_0x4541ea[_0x242ff4(0x209)](_0x4541ea[_0x242ff4(0x236)],_0x4541ea[_0x242ff4(0x23e)](_0x50ae99-0x1,0x28)),_0x242ff4(0x1f8)),_0x4541ea['pUlAC'](_0x50ae99,0x28)),_0x4541ea[_0x242ff4(0x222)]),_0x5a8655),_0x4541ea[_0x242ff4(0x1d9)]),_0x4b2b86),_0x4541ea['ZFPJY'],'',_0x1dd4cb);_0x45bcd1[_0x242ff4(0x23c)](_0x30146f);}for(let _0x3a32de=0x1;_0x4541ea[_0x242ff4(0x1df)](_0x3a32de,_0x210e10);_0x3a32de++){let _0x4bf8f9=await _0x45bcd1[_0x3a32de];if(!_0x4bf8f9?.[_0x242ff4(0x23d)]||_0x4541ea['yQKfn'](_0x4bf8f9?.[_0x242ff4(0x212)],0x0)||!_0x4bf8f9?.[_0x242ff4(0x234)])continue;for(let _0x18d260 in _0x4bf8f9[_0x242ff4(0x234)]){_0x261e9e[_0x242ff4(0x23c)](_0x4bf8f9[_0x242ff4(0x234)][_0x18d260]);}}return _0x261e9e;}static async['setGroupNotice'](_0x20e489,_0x199ea4=''){const _0x2c9b98=_0x43b392,_0x4a23ff={'LzZBE':_0x2c9b98(0x219),'dKeNd':function(_0x4c8224,_0x1416b8){return _0x4c8224+_0x1416b8;},'RSMOH':function(_0x2bf33a,_0x3b8cd7){return _0x2bf33a+_0x3b8cd7;},'dorFP':function(_0x1d3dd9,_0x493d4a){return _0x1d3dd9+_0x493d4a;},'rpWMe':_0x2c9b98(0x206),'XrYzX':_0x2c9b98(0x213),'yBsLI':_0x2c9b98(0x22c),'MKsIH':function(_0xde2154,_0x33e0d8){return _0xde2154||_0x33e0d8;},'qquPl':function(_0x464592,_0x382705){return _0x464592+_0x382705;},'nsugd':function(_0x21d77c,_0x494ba8){return _0x21d77c+_0x494ba8;},'RsKCn':function(_0x253475,_0x571a07){return _0x253475+_0x571a07;},'SVZsF':_0x2c9b98(0x21f),'nekyT':_0x2c9b98(0x1f6),'DyLjy':function(_0x5733e1,_0x16e2cc){return _0x5733e1+_0x16e2cc;},'qEcwv':_0x2c9b98(0x211),'dxcyK':_0x2c9b98(0x232)};let _0x1cc215=(await NTQQUserApi['getPSkey']([_0x4a23ff[_0x2c9b98(0x1d1)]]))['qun.qq.com'],_0x4806fc=await NTQQUserApi[_0x2c9b98(0x1ea)](),_0x2d7c8e=_0x4a23ff[_0x2c9b98(0x225)](_0x4a23ff[_0x2c9b98(0x1d3)](_0x4a23ff['dorFP'](_0x4a23ff[_0x2c9b98(0x1d3)](_0x4a23ff['rpWMe'],_0x1cc215)+_0x4a23ff[_0x2c9b98(0x1ee)],_0x4806fc),_0x4a23ff['yBsLI']),selfInfo['uin']),_0x33746c=undefined;if(_0x4a23ff['MKsIH'](!_0x4806fc,!_0x1cc215))return undefined;let _0x284134=WebApi[_0x2c9b98(0x20d)](_0x4806fc),_0x540b48=_0x4a23ff[_0x2c9b98(0x1d3)](_0x4a23ff[_0x2c9b98(0x217)](_0x4a23ff['nsugd'](_0x4a23ff[_0x2c9b98(0x22d)](_0x4a23ff[_0x2c9b98(0x22e)](_0x4a23ff['dKeNd'](_0x4a23ff[_0x2c9b98(0x1e2)],_0x20e489),_0x2c9b98(0x1db)),_0x284134),_0x4a23ff[_0x2c9b98(0x200)]),_0x199ea4),_0x2c9b98(0x1e9)),_0x248514=_0x4a23ff['DyLjy'](_0x4a23ff[_0x2c9b98(0x1f1)],_0x284134);try{return _0x33746c=await WebApi[_0x2c9b98(0x22b)](_0x248514,_0x4a23ff[_0x2c9b98(0x21c)],'',_0x2d7c8e),_0x33746c;}catch(_0x54ee97){return undefined;}return undefined;}static async['getGrouptNotice'](_0x23324c){const _0x4b3ddc=_0x43b392,_0x3be045={'YFGML':'qun.qq.com','AIliG':function(_0x4f6298,_0x3c4582){return _0x4f6298+_0x3c4582;},'trVnA':function(_0xfe23ee,_0x13c7f9){return _0xfe23ee+_0x13c7f9;},'aVtnM':function(_0x214739,_0xd97e1e){return _0x214739+_0xd97e1e;},'KebNU':';\x20skey=','xUPsN':_0x4b3ddc(0x22c),'oVoIg':function(_0x598deb,_0x42659c){return _0x598deb||_0x42659c;},'MfgwC':function(_0x17421c,_0x2e0c29){return _0x17421c+_0x2e0c29;},'gDrjc':'&qid=','XBMLb':'GET','OVEgY':function(_0x93bfe4,_0xcea070){return _0x93bfe4!==_0xcea070;}};let _0x5f0788=(await NTQQUserApi[_0x4b3ddc(0x22a)]([_0x3be045['YFGML']]))[_0x3be045[_0x4b3ddc(0x214)]],_0x110180=await NTQQUserApi[_0x4b3ddc(0x1ea)](),_0x5432d4=_0x3be045[_0x4b3ddc(0x1eb)](_0x3be045[_0x4b3ddc(0x1e7)](_0x3be045[_0x4b3ddc(0x1f9)](_0x3be045['AIliG'](_0x4b3ddc(0x206)+_0x5f0788,_0x3be045[_0x4b3ddc(0x1f7)]),_0x110180),_0x3be045[_0x4b3ddc(0x1e4)]),selfInfo['uin']),_0x112ab2=undefined;if(_0x3be045[_0x4b3ddc(0x237)](!_0x110180,!_0x5f0788))return undefined;let _0x2464cc=WebApi['genBkn'](_0x110180),_0x1710ba=_0x3be045[_0x4b3ddc(0x1eb)](_0x3be045[_0x4b3ddc(0x20e)](_0x3be045['AIliG'](_0x4b3ddc(0x208)+_0x2464cc,_0x3be045['gDrjc']),_0x23324c),_0x4b3ddc(0x1d2));try{_0x112ab2=await WebApi['httpDataJson'](_0x1710ba,_0x3be045[_0x4b3ddc(0x227)],'',_0x5432d4);if(_0x3be045[_0x4b3ddc(0x1e6)](_0x112ab2?.['ec'],0x0))return undefined;return _0x112ab2;}catch(_0x23d757){return undefined;}return undefined;}static async[_0x43b392(0x1e8)](_0x5a9796='',_0xedf6ec='GET',_0x10e36f='',_0x3ce3b9=''){const _0x3f4d8b=_0x43b392,_0xdcf14a={'HULAP':function(_0x11daf2,_0x10b993){return _0x11daf2===_0x10b993;},'WSmqE':_0x3f4d8b(0x232),'EpKfa':_0x3f4d8b(0x1e5),'bBtOq':function(_0x2a9cdd,_0x47f234,_0x1cf357){return _0x2a9cdd(_0x47f234,_0x1cf357);},'IrBCf':function(_0x184d89,_0xf9ae7b,_0x238d65){return _0x184d89(_0xf9ae7b,_0x238d65);},'hianq':_0x3f4d8b(0x218),'mZcgb':function(_0x42875c,_0x470ae2){return _0x42875c(_0x470ae2);}};let _0x48244c='';return new Promise(async(_0x2ec188,_0xd7555d)=>{const _0x42c8d3=_0x3f4d8b;try{let _0x5f315b=undefined;_0xdcf14a['HULAP'](_0xedf6ec,_0xdcf14a[_0x42c8d3(0x1d8)])||_0xedf6ec===_0xdcf14a[_0x42c8d3(0x1d5)]?_0x5f315b=await _0xdcf14a[_0x42c8d3(0x1f5)](fetch,_0x5a9796,{'method':_0xedf6ec,'headers':{'Content-Type':'application/x-www-form-urlencoded','Cookie':_0x3ce3b9}}):_0x5f315b=await _0xdcf14a[_0x42c8d3(0x1e0)](fetch,_0x5a9796,{'method':_0xedf6ec,'headers':{'Content-Type':_0xdcf14a[_0x42c8d3(0x1d6)],'Cookie':_0x3ce3b9},'body':_0x10e36f});if(_0x5f315b['ok'])_0x48244c=await _0x5f315b[_0x42c8d3(0x1f0)]();else{}}catch(_0x1439ed){}_0xdcf14a[_0x42c8d3(0x1ef)](_0x2ec188,_0x48244c);});}static async['httpDataJson'](_0x22cbfc='',_0x19e002=_0x43b392(0x232),_0x225150='',_0xf21b35=''){const _0x48ec38=_0x43b392,_0x23f450={'jdFVg':function(_0x3d7783,_0xde2d6b){return _0x3d7783===_0xde2d6b;},'osZrw':_0x48ec38(0x232),'VxEhW':function(_0xbfdfdf,_0x2cbdf3){return _0xbfdfdf===_0x2cbdf3;},'PtYyR':_0x48ec38(0x1e5),'Gfdud':_0x48ec38(0x218),'yOMep':function(_0x5479ab,_0x1274f5,_0x27c4f3){return _0x5479ab(_0x1274f5,_0x27c4f3);},'HAjfR':function(_0x5d5e87,_0x5d04df){return _0x5d5e87(_0x5d04df);}};let _0x483a6c=undefined;return new Promise(async(_0x2a11af,_0x3aa98b)=>{const _0x4ea915=_0x48ec38;try{let _0xdf0c67=undefined;_0x23f450[_0x4ea915(0x21d)](_0x19e002,_0x23f450[_0x4ea915(0x1fe)])||_0x23f450[_0x4ea915(0x224)](_0x19e002,_0x23f450['PtYyR'])?_0xdf0c67=await fetch(_0x22cbfc,{'method':_0x19e002,'headers':{'Content-Type':_0x23f450[_0x4ea915(0x1fa)],'Cookie':_0xf21b35}}):_0xdf0c67=await _0x23f450[_0x4ea915(0x1fd)](fetch,_0x22cbfc,{'method':_0x19e002,'headers':{'Content-Type':_0x23f450['Gfdud'],'Cookie':_0xf21b35},'body':_0x225150});if(_0xdf0c67['ok'])_0x483a6c=await _0xdf0c67[_0x4ea915(0x23b)]();else{}}catch(_0x5364f9){}_0x23f450[_0x4ea915(0x1de)](_0x2a11af,_0x483a6c);});}static['genBkn'](_0x3ea7be){const _0x57029e=_0x43b392,_0x5cc3f7={'dCima':function(_0x1f048c,_0x24c84e){return _0x1f048c||_0x24c84e;},'lUydW':function(_0x2bb667,_0x2624ab){return _0x2bb667<_0x2624ab;},'tcEvm':function(_0x82427d,_0x23eb9d){return _0x82427d+_0x23eb9d;},'fYqik':function(_0xdb52cc,_0x1d159c){return _0xdb52cc<<_0x1d159c;}};_0x3ea7be=_0x5cc3f7[_0x57029e(0x216)](_0x3ea7be,'');let _0x3af802=0x1505;for(let _0x380f57=0x0;_0x5cc3f7['lUydW'](_0x380f57,_0x3ea7be[_0x57029e(0x223)]);_0x380f57++){const _0x592a79=_0x3ea7be['charCodeAt'](_0x380f57);_0x3af802=_0x5cc3f7[_0x57029e(0x21e)](_0x3af802+_0x5cc3f7[_0x57029e(0x201)](_0x3af802,0x5),_0x592a79);}return(_0x3af802&0x7fffffff)[_0x57029e(0x231)]();}}function _0x291e(){const _0x577169=['dCima','qquPl','application/x-www-form-urlencoded','qun.qq.com','ceil','10iCDgkG','dxcyK','jdFVg','tcEvm','qid=','getGroupMembers','MJUys','hzdVC','length','VxEhW','dKeNd','&sort=1&gc=','XBMLb','&page_start=','PyzXn','getPSkey','httpDataJson',';\x20p_uin=o','dorFP','RsKCn','7573380zBLEpy','2216090KVoZDx','toString','GET','114031ZLixzh','mems','aOmeE','VGFSB','oVoIg','383922kQUVAV','HRgRr','&group_code=','json','push','count','scndk','ZFPJY','LzZBE','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','RSMOH','EWdVP','EpKfa','hianq','LZSrO','WSmqE','PiAJF','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','&bkn=','qXVZX','7618592eyHCfS','HAjfR','ANByV','IrBCf','mCFGY','SVZsF','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','xUPsN','HEAD','OVEgY','trVnA','httpDataText','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','getSkey','AIliG','iVQLy','uin','XrYzX','mZcgb','text','qEcwv','OgqkL','POST','2701632jxTubM','bBtOq','&text=','KebNU','&end=','aVtnM','Gfdud','eXQwR','BfUBu','yOMep','osZrw','&page_limit=20','nekyT','fYqik','Tryfe','12hHJGmT','retcode','2ljGcMk','p_skey=','xdbyx','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','aVghG','mEwxo','25796781IClETg','CigOm','genBkn','MfgwC','getGroupEssenceMsg','fYrQi','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','errcode',';\x20skey=','YFGML','nzNBu'];_0x291e=function(){return _0x577169;};return _0x291e();} \ No newline at end of file +const _0xc785de=_0x1287;(function(_0x10530e,_0x449f9b){const _0xcfa018=_0x1287,_0x325480=_0x10530e();while(!![]){try{const _0x4b1a23=-parseInt(_0xcfa018(0x134))/0x1+parseInt(_0xcfa018(0x152))/0x2*(parseInt(_0xcfa018(0x11b))/0x3)+parseInt(_0xcfa018(0x10e))/0x4+parseInt(_0xcfa018(0x159))/0x5*(parseInt(_0xcfa018(0x133))/0x6)+parseInt(_0xcfa018(0x112))/0x7+parseInt(_0xcfa018(0x119))/0x8+-parseInt(_0xcfa018(0x144))/0x9;if(_0x4b1a23===_0x449f9b)break;else _0x325480['push'](_0x325480['shift']());}catch(_0x2536b4){_0x325480['push'](_0x325480['shift']());}}}(_0x2e34,0xcfe24));import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';function _0x1287(_0x3b1db6,_0x2c26f5){const _0x2e34b0=_0x2e34();return _0x1287=function(_0x1287b9,_0x251e47){_0x1287b9=_0x1287b9-0x10e;let _0x51ff04=_0x2e34b0[_0x1287b9];return _0x51ff04;},_0x1287(_0x3b1db6,_0x2c26f5);}export class WebApi{static async[_0xc785de(0x13f)](_0x24042c,_0x468869){const _0x3d0692=_0xc785de,_0x14f99c={'KyTFa':'qun.qq.com','sybdz':function(_0x56343d,_0x5d2f06){return _0x56343d+_0x5d2f06;},'XcDuQ':function(_0x475532,_0x5673b1){return _0x475532+_0x5673b1;},'REBgR':_0x3d0692(0x114),'lNGvV':_0x3d0692(0x136),'ZaqXK':_0x3d0692(0x14c),'eWKuW':';\x20uin=o','Ujppj':function(_0x463e21,_0xc372bb){return _0x463e21||_0xc372bb;},'JwfsS':function(_0x25a9f6,_0x260c0d){return _0x25a9f6+_0x260c0d;},'KrPaE':function(_0xec457f,_0x4b884e){return _0xec457f+_0x4b884e;},'YCFad':_0x3d0692(0x13a),'rStvx':_0x3d0692(0x137),'mcxLX':_0x3d0692(0x16a),'yFhiL':function(_0x1f3ca5,_0x5f5b0e){return _0x1f3ca5!==_0x5f5b0e;}},_0x200c27=(await NTQQUserApi['getPSkey']([_0x3d0692(0x145)]))[_0x14f99c[_0x3d0692(0x13d)]],_0x47f49d=await NTQQUserApi[_0x3d0692(0x16e)](),_0x4946f2=_0x14f99c[_0x3d0692(0x15b)](_0x14f99c[_0x3d0692(0x161)](_0x14f99c['sybdz'](_0x14f99c['REBgR']+_0x200c27+_0x14f99c['lNGvV'],_0x47f49d),_0x14f99c[_0x3d0692(0x148)]),selfInfo[_0x3d0692(0x14b)])+_0x14f99c[_0x3d0692(0x163)]+selfInfo['uin'];if(_0x14f99c[_0x3d0692(0x12a)](!_0x47f49d,!_0x200c27))return undefined;const _0x50e9c9=WebApi[_0x3d0692(0x177)](_0x47f49d);let _0x5b181e=_0x14f99c[_0x3d0692(0x161)](_0x14f99c['XcDuQ'](_0x14f99c[_0x3d0692(0x117)](_0x14f99c[_0x3d0692(0x12e)](_0x14f99c[_0x3d0692(0x16f)],_0x50e9c9),_0x14f99c[_0x3d0692(0x129)]),_0x24042c)+_0x14f99c[_0x3d0692(0x12f)],_0x468869)+_0x3d0692(0x166),_0x27ef25=await WebApi[_0x3d0692(0x162)](_0x5b181e,'GET','',_0x4946f2);if(_0x14f99c[_0x3d0692(0x14e)](_0x27ef25[_0x3d0692(0x126)],0x0))return undefined;return _0x27ef25;}static async[_0xc785de(0x13c)](_0x309420){const _0x36ea1f=_0xc785de,_0x5b15df={'CmZEG':_0x36ea1f(0x145),'GYiYb':function(_0x4f2ca6,_0x2e6257){return _0x4f2ca6+_0x2e6257;},'RjkRp':_0x36ea1f(0x114),'exmaY':_0x36ea1f(0x136),'XuHNo':_0x36ea1f(0x14c),'ScTSd':function(_0x50801d,_0x2497b1){return _0x50801d||_0x2497b1;},'hQMGw':function(_0x1d0dc3,_0x1a2fe4){return _0x1d0dc3+_0x1a2fe4;},'zizkR':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','nWBiI':_0x36ea1f(0x15a),'mmYQb':function(_0x12dc35,_0x37e6e3){return _0x12dc35/_0x37e6e3;},'mEiok':function(_0x47c61b,_0x4fa8c2){return _0x47c61b<=_0x4fa8c2;},'cUAcn':function(_0x3cab41,_0x394403){return _0x3cab41+_0x394403;},'WymVT':function(_0x47e0c1,_0x5e8712){return _0x47e0c1+_0x5e8712;},'CNLrC':_0x36ea1f(0x16c),'wWIFh':function(_0x4485ea,_0x2c1677){return _0x4485ea*_0x2c1677;},'xIYqb':function(_0x26d463,_0x41dd47){return _0x26d463-_0x41dd47;},'dcNLf':'&end=','NxaHq':_0x36ea1f(0x124),'KzHXV':_0x36ea1f(0x122),'QHQIp':function(_0x49c4bc,_0x5ec5c0){return _0x49c4bc<=_0x5ec5c0;}},_0x201bdf=(await NTQQUserApi[_0x36ea1f(0x175)]([_0x5b15df['CmZEG']]))[_0x36ea1f(0x145)],_0x2b9c26=await NTQQUserApi[_0x36ea1f(0x16e)](),_0x178227=_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x158)],_0x201bdf),_0x5b15df[_0x36ea1f(0x130)])+_0x2b9c26+_0x5b15df[_0x36ea1f(0x176)],selfInfo[_0x36ea1f(0x14b)]),_0x5c31a4=new Array();if(_0x5b15df[_0x36ea1f(0x174)](!_0x2b9c26,!_0x201bdf))return _0x5c31a4;const _0x38981f=WebApi[_0x36ea1f(0x177)](_0x2b9c26);let _0x238363=[],_0x2fc2dc=await WebApi[_0x36ea1f(0x162)](_0x5b15df[_0x36ea1f(0x16d)](_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x127)],_0x309420)+_0x5b15df[_0x36ea1f(0x143)],_0x38981f),_0x36ea1f(0x122),'',_0x178227);if(!_0x2fc2dc?.[_0x36ea1f(0x172)]||_0x2fc2dc?.[_0x36ea1f(0x138)]!==0x0||!_0x2fc2dc?.[_0x36ea1f(0x123)])return[];else for(let _0x3528cf in _0x2fc2dc[_0x36ea1f(0x123)]){_0x5c31a4[_0x36ea1f(0x121)](_0x2fc2dc['mems'][_0x3528cf]);}let _0x3edcb2=Math[_0x36ea1f(0x15f)](_0x5b15df[_0x36ea1f(0x168)](_0x2fc2dc[_0x36ea1f(0x172)],0x28));for(let _0x2c3108=0x2;_0x5b15df[_0x36ea1f(0x15c)](_0x2c3108,_0x3edcb2);_0x2c3108++){let _0x178005=WebApi['httpDataJson'](_0x5b15df[_0x36ea1f(0x13e)](_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x12d)](_0x5b15df[_0x36ea1f(0x16d)](_0x5b15df[_0x36ea1f(0x12c)],_0x5b15df[_0x36ea1f(0x155)](_0x5b15df[_0x36ea1f(0x154)](_0x2c3108,0x1),0x28))+_0x5b15df[_0x36ea1f(0x11a)],_0x2c3108*0x28)+_0x5b15df['NxaHq'],_0x309420)+_0x36ea1f(0x15a),_0x38981f),_0x5b15df[_0x36ea1f(0x110)],'',_0x178227);_0x238363[_0x36ea1f(0x121)](_0x178005);}for(let _0x291ba5=0x1;_0x5b15df[_0x36ea1f(0x11e)](_0x291ba5,_0x3edcb2);_0x291ba5++){let _0x1d3e2e=await _0x238363[_0x291ba5];if(!_0x1d3e2e?.[_0x36ea1f(0x172)]||_0x1d3e2e?.[_0x36ea1f(0x138)]!==0x0||!_0x1d3e2e?.[_0x36ea1f(0x123)])continue;for(let _0x1b0091 in _0x1d3e2e[_0x36ea1f(0x123)]){_0x5c31a4['push'](_0x1d3e2e[_0x36ea1f(0x123)][_0x1b0091]);}}return _0x5c31a4;}static async[_0xc785de(0x132)](_0x4f10c2,_0x28e72c=''){const _0x3c4483=_0xc785de,_0x947f8b={'FSfQj':'qun.qq.com','otIRw':function(_0x119e29,_0x200386){return _0x119e29+_0x200386;},'cJpQa':function(_0x37bf3f,_0x5aa847){return _0x37bf3f+_0x5aa847;},'CmvcN':function(_0x1bb6a9,_0x5052ba){return _0x1bb6a9+_0x5052ba;},'gRQiJ':_0x3c4483(0x114),'ihrHk':_0x3c4483(0x136),'dopyH':_0x3c4483(0x14c),'oFjcW':function(_0x2400bb,_0x78f910){return _0x2400bb||_0x78f910;},'EFsEM':function(_0x56f389,_0x55900d){return _0x56f389+_0x55900d;},'HoPoH':function(_0x2ae6f1,_0x4ca3b7){return _0x2ae6f1+_0x4ca3b7;},'RNbol':function(_0x29dd17,_0xaa9b64){return _0x29dd17+_0xaa9b64;},'LTesV':'&text=','KaHut':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','AKWaX':function(_0x369b04,_0x4fbecb){return _0x369b04+_0x4fbecb;},'PXHzk':'GET'};let _0x9ea507=(await NTQQUserApi[_0x3c4483(0x175)]([_0x3c4483(0x145)]))[_0x947f8b[_0x3c4483(0x160)]],_0x184895=await NTQQUserApi[_0x3c4483(0x16e)](),_0x3f40af=_0x947f8b[_0x3c4483(0x156)](_0x947f8b[_0x3c4483(0x156)](_0x947f8b[_0x3c4483(0x15d)](_0x947f8b[_0x3c4483(0x147)](_0x947f8b[_0x3c4483(0x165)],_0x9ea507),_0x947f8b['ihrHk']),_0x184895),_0x947f8b[_0x3c4483(0x116)])+selfInfo[_0x3c4483(0x14b)],_0x14b4af=undefined;if(_0x947f8b['oFjcW'](!_0x184895,!_0x9ea507))return undefined;let _0x1580e0=WebApi[_0x3c4483(0x177)](_0x184895),_0x2908a5=_0x947f8b[_0x3c4483(0x140)](_0x947f8b[_0x3c4483(0x128)](_0x947f8b[_0x3c4483(0x139)]('qid='+_0x4f10c2,_0x3c4483(0x15a))+_0x1580e0+_0x947f8b[_0x3c4483(0x149)],_0x28e72c),_0x947f8b[_0x3c4483(0x141)]),_0x1daaaf=_0x947f8b['AKWaX'](_0x3c4483(0x146),_0x1580e0);try{return _0x14b4af=await WebApi[_0x3c4483(0x162)](_0x1daaaf,_0x947f8b[_0x3c4483(0x14a)],'',_0x3f40af),_0x14b4af;}catch(_0x29b955){return undefined;}return undefined;}static async[_0xc785de(0x150)](_0x1bc185){const _0x472c02=_0xc785de,_0x2efb87={'ZXsRn':'qun.qq.com','Esnzl':function(_0x27232a,_0xdd15cf){return _0x27232a+_0xdd15cf;},'lOQia':_0x472c02(0x114),'SXixl':function(_0x967f67,_0x4ced1f){return _0x967f67+_0x4ced1f;},'ruacb':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','GrYoH':'&qid=','EhaVl':_0x472c02(0x135),'dxcuo':function(_0x530ffe,_0x820ef7){return _0x530ffe!==_0x820ef7;}};let _0x1c4378=(await NTQQUserApi[_0x472c02(0x175)]([_0x2efb87['ZXsRn']]))[_0x2efb87[_0x472c02(0x170)]],_0x2141f6=await NTQQUserApi[_0x472c02(0x16e)](),_0x4cab43=_0x2efb87['Esnzl'](_0x2efb87['Esnzl'](_0x2efb87[_0x472c02(0x113)]+_0x1c4378+_0x472c02(0x136),_0x2141f6)+_0x472c02(0x14c),selfInfo[_0x472c02(0x14b)]),_0x395991=undefined;if(!_0x2141f6||!_0x1c4378)return undefined;let _0x5961ab=WebApi[_0x472c02(0x177)](_0x2141f6),_0x207248=_0x2efb87[_0x472c02(0x118)](_0x2efb87[_0x472c02(0x118)](_0x2efb87['SXixl'](_0x2efb87[_0x472c02(0x125)]+_0x5961ab,_0x2efb87[_0x472c02(0x12b)]),_0x1bc185),_0x2efb87['EhaVl']);try{_0x395991=await WebApi['httpDataJson'](_0x207248,'GET','',_0x4cab43);if(_0x2efb87[_0x472c02(0x11f)](_0x395991?.['ec'],0x0))return undefined;return _0x395991;}catch(_0xfbf74){return undefined;}return undefined;}static async[_0xc785de(0x13b)](_0x8d9750='',_0x2f7b1e='GET',_0x18fdf2='',_0x6a0c09=''){const _0x11e0ab=_0xc785de,_0x5e470c={'RPiCj':_0x11e0ab(0x120),'EUjqV':function(_0x202071,_0x40864e){return _0x202071===_0x40864e;},'qJEwh':_0x11e0ab(0x11c),'xCeXT':_0x11e0ab(0x153),'INKxo':function(_0x2b126a,_0x52c74a,_0x5a7434){return _0x2b126a(_0x52c74a,_0x5a7434);},'hmggG':function(_0x440e20,_0x1ff9e8){return _0x440e20(_0x1ff9e8);}};let _0x45e21e='';return new Promise(async(_0x41b1ca,_0x332535)=>{const _0x1d5beb=_0x11e0ab;try{let _0x4b501a=undefined;_0x2f7b1e===_0x5e470c[_0x1d5beb(0x14d)]||_0x5e470c[_0x1d5beb(0x151)](_0x2f7b1e,_0x5e470c['qJEwh'])?_0x4b501a=await fetch(_0x8d9750,{'method':_0x2f7b1e,'headers':{'Content-Type':_0x5e470c[_0x1d5beb(0x142)],'Cookie':_0x6a0c09}}):_0x4b501a=await _0x5e470c['INKxo'](fetch,_0x8d9750,{'method':_0x2f7b1e,'headers':{'Content-Type':_0x1d5beb(0x153),'Cookie':_0x6a0c09},'body':_0x18fdf2});if(_0x4b501a['ok'])_0x45e21e=await _0x4b501a[_0x1d5beb(0x167)]();else{}}catch(_0x544b24){}_0x5e470c['hmggG'](_0x41b1ca,_0x45e21e);});}static async[_0xc785de(0x162)](_0x326e98='',_0x1651e9='GET',_0x473b3e='',_0x476e9e=''){const _0x4a2a63=_0xc785de,_0x356e0a={'agjcO':function(_0x1d0587,_0x4a43f2){return _0x1d0587===_0x4a43f2;},'hUbZc':_0x4a2a63(0x120),'oawPd':_0x4a2a63(0x153),'YkJCi':function(_0xcb17b2,_0x1b66c9){return _0xcb17b2(_0x1b66c9);}};let _0x6dc820=undefined;return new Promise(async(_0x497754,_0x2db933)=>{const _0x4b7c48=_0x4a2a63;try{let _0x115c9e=undefined;_0x356e0a[_0x4b7c48(0x131)](_0x1651e9,_0x356e0a[_0x4b7c48(0x16b)])||_0x356e0a[_0x4b7c48(0x131)](_0x1651e9,_0x4b7c48(0x11c))?_0x115c9e=await fetch(_0x326e98,{'method':_0x1651e9,'headers':{'Content-Type':_0x356e0a[_0x4b7c48(0x157)],'Cookie':_0x476e9e}}):_0x115c9e=await fetch(_0x326e98,{'method':_0x1651e9,'headers':{'Content-Type':_0x4b7c48(0x153),'Cookie':_0x476e9e},'body':_0x473b3e});if(_0x115c9e['ok'])_0x6dc820=await _0x115c9e['json']();else{}}catch(_0x1b3440){}_0x356e0a[_0x4b7c48(0x171)](_0x497754,_0x6dc820);});}static[_0xc785de(0x177)](_0x350683){const _0x45c5ca=_0xc785de,_0x596cfd={'NVlPC':function(_0x5d88bd,_0x5b7626){return _0x5d88bd||_0x5b7626;},'uVIwF':function(_0x169c71,_0x471757){return _0x169c71<_0x471757;},'Klqlv':function(_0x1c40cd,_0x5a2ae1){return _0x1c40cd+_0x5a2ae1;},'FtCdr':function(_0x36af2a,_0x119671){return _0x36af2a+_0x119671;},'foJOY':function(_0x162b16,_0x4b51b5){return _0x162b16<<_0x4b51b5;},'islxj':function(_0x5ddd12,_0x2f829d){return _0x5ddd12&_0x2f829d;}};_0x350683=_0x596cfd[_0x45c5ca(0x15e)](_0x350683,'');let _0x35879c=0x1505;for(let _0xc9e247=0x0;_0x596cfd['uVIwF'](_0xc9e247,_0x350683[_0x45c5ca(0x169)]);_0xc9e247++){const _0x468549=_0x350683[_0x45c5ca(0x11d)](_0xc9e247);_0x35879c=_0x596cfd[_0x45c5ca(0x173)](_0x596cfd[_0x45c5ca(0x115)](_0x35879c,_0x596cfd[_0x45c5ca(0x111)](_0x35879c,0x5)),_0x468549);}return _0x596cfd[_0x45c5ca(0x164)](_0x35879c,0x7fffffff)[_0x45c5ca(0x10f)]();}}function _0x2e34(){const _0x1ca029=['KyTFa','cUAcn','getGroupEssenceMsg','EFsEM','KaHut','xCeXT','nWBiI','6787449AzZjii','qun.qq.com','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','CmvcN','ZaqXK','LTesV','PXHzk','uin',';\x20p_uin=o','RPiCj','yFhiL','GYiYb','getGrouptNotice','EUjqV','21706euQjqW','application/x-www-form-urlencoded','xIYqb','wWIFh','otIRw','oawPd','RjkRp','5TvIFdV','&bkn=','sybdz','mEiok','cJpQa','NVlPC','ceil','FSfQj','XcDuQ','httpDataJson','eWKuW','islxj','gRQiJ','&page_limit=20','text','mmYQb','length','&page_start=','hUbZc','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','hQMGw','getSkey','YCFad','ZXsRn','YkJCi','count','Klqlv','ScTSd','getPSkey','XuHNo','genBkn','4362388INJkgW','toString','KzHXV','foJOY','2878897JJqRGB','lOQia','p_skey=','FtCdr','dopyH','JwfsS','SXixl','2492456WmaSEG','dcNLf','75qcAOvQ','HEAD','charCodeAt','QHQIp','dxcuo','GET','push','POST','mems','&sort=1&gc=','ruacb','retcode','zizkR','HoPoH','rStvx','Ujppj','GrYoH','CNLrC','WymVT','KrPaE','mcxLX','exmaY','agjcO','setGroupNotice','7282482hBfUSp','1692844PGpzBr','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20',';\x20skey=','&group_code=','errcode','RNbol','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','httpDataText','getGroupMembers'];_0x2e34=function(){return _0x1ca029;};return _0x2e34();} \ No newline at end of file diff --git a/src/core.lib/src/apis/window.js b/src/core.lib/src/apis/window.js index 3627951c..e9e27365 100644 --- a/src/core.lib/src/apis/window.js +++ b/src/core.lib/src/apis/window.js @@ -1 +1 @@ -function _0x3f4f(_0xcf3413,_0x330aec){var _0x282f46=_0x282f();return _0x3f4f=function(_0x3f4f91,_0x23b810){_0x3f4f91=_0x3f4f91-0x1e7;var _0x341471=_0x282f46[_0x3f4f91];return _0x341471;},_0x3f4f(_0xcf3413,_0x330aec);}var _0x38f7e9=_0x3f4f;function _0x282f(){var _0x5616b4=['2163007sfWdlf','4722700apBgRN','2112buOIGQ','GroupEssenceWindow','#/group-essence','3678ZKrGLj','GroupHomeWorkWindow','4nRgFwN','13266LAYlyX','44qboeHp','4135kcybhQ','2696571MrMTVn','16898xMsOQT','GroupNotifyFilterWindow','#/group-notify-filter','14686jerLgz','#/group-home-work'];_0x282f=function(){return _0x5616b4;};return _0x282f();}(function(_0x89292a,_0xa5cb23){var _0x4d0b65=_0x3f4f,_0x51b029=_0x89292a();while(!![]){try{var _0xba4c66=parseInt(_0x4d0b65(0x1ed))/0x1*(parseInt(_0x4d0b65(0x1f2))/0x2)+parseInt(_0x4d0b65(0x1ee))/0x3*(-parseInt(_0x4d0b65(0x1ef))/0x4)+parseInt(_0x4d0b65(0x1f0))/0x5*(-parseInt(_0x4d0b65(0x1eb))/0x6)+-parseInt(_0x4d0b65(0x1f5))/0x7*(-parseInt(_0x4d0b65(0x1e8))/0x8)+-parseInt(_0x4d0b65(0x1f1))/0x9+parseInt(_0x4d0b65(0x1e7))/0xa+parseInt(_0x4d0b65(0x1f7))/0xb;if(_0xba4c66===_0xa5cb23)break;else _0x51b029['push'](_0x51b029['shift']());}catch(_0x1f8d7b){_0x51b029['push'](_0x51b029['shift']());}}}(_0x282f,0x61fd3));export class NTQQWindows{static ['GroupHomeWorkWindow']={'windowName':_0x38f7e9(0x1ec),'windowUrlHash':_0x38f7e9(0x1f6)};static [_0x38f7e9(0x1f3)]={'windowName':_0x38f7e9(0x1f3),'windowUrlHash':_0x38f7e9(0x1f4)};static [_0x38f7e9(0x1e9)]={'windowName':_0x38f7e9(0x1e9),'windowUrlHash':_0x38f7e9(0x1ea)};}export class NTQQWindowApi{} \ No newline at end of file +var _0x29772f=_0x518d;function _0x518d(_0xff759d,_0x3ccf15){var _0x39775a=_0x3977();return _0x518d=function(_0x518d48,_0xa84b9b){_0x518d48=_0x518d48-0x1c5;var _0xff57d=_0x39775a[_0x518d48];return _0xff57d;},_0x518d(_0xff759d,_0x3ccf15);}(function(_0xcf76d8,_0x28dd05){var _0x59af77=_0x518d,_0x509296=_0xcf76d8();while(!![]){try{var _0x5de1b1=-parseInt(_0x59af77(0x1cb))/0x1+parseInt(_0x59af77(0x1cd))/0x2+parseInt(_0x59af77(0x1d2))/0x3+parseInt(_0x59af77(0x1d1))/0x4+parseInt(_0x59af77(0x1ca))/0x5*(parseInt(_0x59af77(0x1c9))/0x6)+-parseInt(_0x59af77(0x1d0))/0x7+parseInt(_0x59af77(0x1c8))/0x8*(parseInt(_0x59af77(0x1cc))/0x9);if(_0x5de1b1===_0x28dd05)break;else _0x509296['push'](_0x509296['shift']());}catch(_0x5cbee5){_0x509296['push'](_0x509296['shift']());}}}(_0x3977,0x72377));function _0x3977(){var _0x17d690=['702UPMOpA','3955QSBcMD','210066xBzhCx','302679gOofau','259068vxmIDj','GroupNotifyFilterWindow','#/group-notify-filter','4549972jjYsDH','409592unsVOZ','1093275pghbSO','GroupEssenceWindow','GroupHomeWorkWindow','#/group-home-work','152LifwQv'];_0x3977=function(){return _0x17d690;};return _0x3977();}export class NTQQWindows{static ['GroupHomeWorkWindow']={'windowName':_0x29772f(0x1c6),'windowUrlHash':_0x29772f(0x1c7)};static [_0x29772f(0x1ce)]={'windowName':_0x29772f(0x1ce),'windowUrlHash':_0x29772f(0x1cf)};static [_0x29772f(0x1c5)]={'windowName':_0x29772f(0x1c5),'windowUrlHash':'#/group-essence'};}export class NTQQWindowApi{} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 0f208a77..53062fcf 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x38334f=_0x570e;(function(_0x235243,_0x3bbc1d){const _0x8ffae0=_0x570e,_0x4e7b37=_0x235243();while(!![]){try{const _0x50aa33=parseInt(_0x8ffae0(0xf0))/0x1+-parseInt(_0x8ffae0(0xce))/0x2*(parseInt(_0x8ffae0(0x125))/0x3)+parseInt(_0x8ffae0(0xcb))/0x4*(-parseInt(_0x8ffae0(0xe6))/0x5)+-parseInt(_0x8ffae0(0xdb))/0x6+parseInt(_0x8ffae0(0xca))/0x7+-parseInt(_0x8ffae0(0xc1))/0x8+parseInt(_0x8ffae0(0x10f))/0x9*(parseInt(_0x8ffae0(0xdc))/0xa);if(_0x50aa33===_0x3bbc1d)break;else _0x4e7b37['push'](_0x4e7b37['shift']());}catch(_0x4ff3e3){_0x4e7b37['push'](_0x4e7b37['shift']());}}}(_0x33a8,0x4fcbd));import _0x531d56 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x101742 from'node:path';import _0x40b0eb from'node:os';import _0x5c6f2f from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';function _0x33a8(){const _0x29784e=['push','getMsgByLongId','base64','./.config/QQ','NodeIKernelLoginListener','ZLTvI','forEach','GroupListener','updateMsg','initConfig','onProfileDetailInfoChanged','digest','homedir','onQRCodeLoginSucceed','./NapCat/data','onQRCodeSessionFailed','XSjVh','TbOqR','vmrCq','addKernelBuddyListener','find','HSsch','startNT','onLoginSuccess','constructor','140022008','getBuddyService','addKernelGroupListener','NodeIKernelProfileListener','cHiMB','2664208zaRyfV','TWvCO','快速登录不可用','passwordLogin','vJezi','resolve','name','YKQVA','dataPathGlobal','993552eHVIpn','69356CCvcIz','ProfileListener','Zcxzc','10194rqVLQI','jWWHq','kGktn','quickLogin','ERbMh','getProfileService','msgId','uYMrX','proxyHandler','loginService','initWithDeskTopConfig','update','VLovb','799308PyfyRV','10AHnuUD','启动失败:\x20','getNTUserDataInfoConfig','NodeQQNTWrapperUtil','getMsgService','onMsgInfoListUpdate','catch','split','NodeIQQNTWrapperSession','assign','75wFXJCK','iYQsl','initSession','getGroupService','groupMemberList_MainWindow','V1_WIN_NQ_','-v2.db','onLoginFailed','Jfyto','init','271459XqdEUc','onBuddyListChange','NodeIKernelLoginService','vScdT','then','NodeIDependsAdapter','_GW_B','replace','curVersion','jvUiZ','map','uid','\x20has\x20no\x20method\x20','BuddyListener','uin','本账号数据/缓存目录:','Windows\x2010\x20Pro','addListener','result','infos','getLoginList','TBjPN','getNextMemberList','ZRyvh','addMsg','HMNTY','onLoginState','set','快速登录失败\x20','NodeIKernelMsgListener','Mgaww','9703089tvCaeH','CINBe','hRyMw','md5','addKernelMsgListener','NodeIDispatcherAdapter','data:image/png;base64,','getBuddyList','onMemberInfoChange','PQXVH','没有可快速登录的QQ号','addKernelProfileListener','stringify','undefined','UmDKH','NodeIKernelGroupListener','SMPyq','quickLoginWithUin','NodeIKernelBuddyListener','loginListener','init\x20failed\x20','登录失败','258LxVQfx','Dcxzh','dataPath','pBGcK','initDataListener','pngBase64QrcodeData','./nt_qq/global','groupCode','recallTime','session','get','zOlCR','当前账号已登录,无法重复登录','onMemberListChange','consoleLogLevel','leRVW','onSessionInitComplete','createHash','fileLog','NodeIGlobalAdapter','NodeIKernelSessionListener','onLoginSuccessFuncList','util','mKsVu'];_0x33a8=function(){return _0x29784e;};return _0x33a8();}import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x40a5b3 from'node:crypto';function _0x570e(_0x1c4ce1,_0xdcc05d){const _0x33a879=_0x33a8();return _0x570e=function(_0x570e2a,_0x141413){_0x570e2a=_0x570e2a-0x9d;let _0x52ae25=_0x33a879[_0x570e2a];return _0x52ae25;},_0x570e(_0x1c4ce1,_0xdcc05d);}import{friends,groupMembers,groups,selfInfo,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x38334f(0x12e)];[_0x38334f(0xa1)];['engine'];[_0x38334f(0xd7)];[_0x38334f(0x122)];['onLoginSuccessFuncList']=[];[_0x38334f(0xd6)]={'get'(target,prop,receiver){const _0x5f237f=_0x38334f,Mijbzd={'HSsch':function(callee,param1){return callee(param1);},'HMNTY':function(x,y){return x===y;}};if(Mijbzd[_0x5f237f(0x109)](typeof target[prop],_0x5f237f(0x11c)))return(...args)=>{const _0x4a8811=_0x5f237f;Mijbzd[_0x4a8811(0xb8)](logDebug,target[_0x4a8811(0xbb)][_0x4a8811(0xc7)]+_0x4a8811(0xfc)+prop);};return Reflect[_0x5f237f(0x12f)](target,prop,receiver);}};constructor(){const _0x5e5cea=_0x38334f,_0x50afe0={'vJezi':function(_0x360bf5,_0x4433c8){return _0x360bf5(_0x4433c8);},'mKsVu':function(_0x440889,_0x4209c1,_0x5c19cd){return _0x440889(_0x4209c1,_0x5c19cd);},'pBGcK':'initSession\x20failed','jvUiZ':'数据库初始化失败','vmrCq':'登录失败'};this['engine']=new _0x531d56['NodeIQQNTWrapperEngine'](),this[_0x5e5cea(0xa1)]=new _0x531d56[(_0x5e5cea(0xdf))](),this['loginService']=new _0x531d56[(_0x5e5cea(0xf2))](),this[_0x5e5cea(0x12e)]=new _0x531d56[(_0x5e5cea(0xe4))](),this[_0x5e5cea(0x122)]=new LoginListener(),this[_0x5e5cea(0x122)][_0x5e5cea(0x10a)]=_0x2f4ee4=>{const _0x49051e=_0x5e5cea;_0x2f4ee4==0x3&&_0x50afe0['vJezi'](logError,_0x49051e(0x131));},this[_0x5e5cea(0x122)][_0x5e5cea(0xb0)]=_0x42ecab=>{const _0xd1b07f=_0x5e5cea,_0x4f785f={'Jfyto':_0x50afe0[_0xd1b07f(0xf9)],'PQXVH':function(_0x38c6f1,_0xa43111,_0x4c1f37){return _0x38c6f1(_0xa43111,_0x4c1f37);},'XpRSw':function(_0x396a69,_0x3f9a20){const _0x1f9e67=_0xd1b07f;return _0x50afe0[_0x1f9e67(0xc5)](_0x396a69,_0x3f9a20);},'Mgaww':function(_0x39e1e2,_0x4c4dbe){const _0xd38455=_0xd1b07f;return _0x50afe0[_0xd38455(0xc5)](_0x39e1e2,_0x4c4dbe);},'vScdT':_0xd1b07f(0xff)};this[_0xd1b07f(0xe8)](_0x42ecab[_0xd1b07f(0xfe)],_0x42ecab['uid'])[_0xd1b07f(0xf4)](_0x48637e=>{const _0x3e1a18=_0xd1b07f;selfInfo[_0x3e1a18(0xfe)]=_0x42ecab['uin'],selfInfo[_0x3e1a18(0xfb)]=_0x42ecab[_0x3e1a18(0xfb)],napCatConfig['read'](),_0x4f785f[_0x3e1a18(0x118)](setLogLevel,napCatConfig['fileLogLevel'],napCatConfig[_0x3e1a18(0x133)]),_0x4f785f['XpRSw'](enableFileLog,napCatConfig[_0x3e1a18(0x9d)]),enableConsoleLog(napCatConfig['consoleLog']),_0x4f785f[_0x3e1a18(0x10e)](setLogSelfInfo,selfInfo);const _0x50287b=_0x101742['resolve'](this[_0x3e1a18(0x127)],_0x3e1a18(0xb1));_0x5c6f2f['mkdirSync'](_0x50287b,{'recursive':!![]}),logDebug(_0x4f785f[_0x3e1a18(0xf3)],_0x50287b),dbUtil[_0x3e1a18(0xef)](_0x101742['resolve'](_0x50287b,'./'+_0x42ecab[_0x3e1a18(0xfe)]+_0x3e1a18(0xec)))['then'](()=>{const _0x391513=_0x3e1a18;this[_0x391513(0x129)](),this['onLoginSuccessFuncList'][_0x391513(0xfa)](_0x1f56ea=>{const _0x337ea0=_0x391513,_0x23083b={'VLovb':function(_0x3cb480,_0x2456eb){return _0x3cb480 instanceof _0x2456eb;}};new Promise((_0x2eb2f9,_0x4717b)=>{const _0x45e4e8=_0x570e,_0x2669ea=_0x1f56ea(_0x42ecab[_0x45e4e8(0xfe)],_0x42ecab['uid']);_0x23083b[_0x45e4e8(0xda)](_0x2669ea,Promise)&&_0x2669ea[_0x45e4e8(0xf4)](_0x2eb2f9)['catch'](_0x4717b);})[_0x337ea0(0xf4)]();});})[_0x3e1a18(0xe2)](_0x3a5712=>{const _0x303b5d=_0x3e1a18;logError(_0x4f785f[_0x303b5d(0xee)],_0x3a5712);});})[_0xd1b07f(0xe2)](_0x507ae9=>{const _0x138ea7=_0xd1b07f;_0x50afe0[_0x138ea7(0xa2)](logError,_0x50afe0[_0x138ea7(0x128)],_0x507ae9);throw new Error(_0x138ea7(0xdd)+JSON[_0x138ea7(0x11b)](_0x507ae9));});},this['loginListener'][_0x5e5cea(0xb2)]=_0x4e9d0b=>{const _0x571e15=_0x5e5cea;logError(_0x571e15(0x124),_0x4e9d0b);},this['loginListener'][_0x5e5cea(0xed)]=_0x3a2316=>{const _0x43193f=_0x5e5cea;logError(_0x50afe0[_0x43193f(0xb5)],_0x3a2316);},this[_0x5e5cea(0x122)]=new Proxy(this[_0x5e5cea(0x122)],this[_0x5e5cea(0xd6)]),this[_0x5e5cea(0xd7)]['addKernelLoginListener'](new _0x531d56[(_0x5e5cea(0xa7))](this[_0x5e5cea(0x122)])),this[_0x5e5cea(0xac)]();}get['dataPath'](){const _0x2a65d7=_0x38334f,_0x13c79a={'ZRyvh':_0x2a65d7(0xa6)};let _0x1aac63=this[_0x2a65d7(0xa1)][_0x2a65d7(0xde)]();return!_0x1aac63&&(_0x1aac63=_0x101742[_0x2a65d7(0xc6)](_0x40b0eb[_0x2a65d7(0xaf)](),_0x13c79a[_0x2a65d7(0x107)]),_0x5c6f2f['mkdirSync'](_0x1aac63,{'recursive':!![]})),_0x1aac63;}get[_0x38334f(0xc9)](){const _0x12dd4f=_0x38334f,_0x9f8eb1={'TBjPN':_0x12dd4f(0x12b)};return _0x101742['resolve'](this['dataPath'],_0x9f8eb1[_0x12dd4f(0x105)]);}[_0x38334f(0xac)](){const _0x284323=_0x38334f,_0x510521={'Zcxzc':_0x284323(0x100)};this['engine'][_0x284323(0xd8)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x284323(0xf8)],'os_version':_0x510521[_0x284323(0xcd)],'use_xlog':!![],'qua':_0x284323(0xeb)+qqVersionConfigInfo[_0x284323(0xf8)][_0x284323(0xf7)]('-','_')+_0x284323(0xf6),'global_path_config':{'desktopGlobalPath':this['dataPathGlobal']},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x531d56[(_0x284323(0x9e))](new GlobalAdapter())),this['loginService'][_0x284323(0xac)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x284323(0xc9)],'clientVer':qqVersionConfigInfo[_0x284323(0xf8)],'hostName':hostname});}[_0x38334f(0xe8)](_0x26278b,_0x3f85c5){const _0x2ba7d4=_0x38334f,_0x237241={'IdWqY':function(_0x52eaf9,_0x224512){return _0x52eaf9===_0x224512;},'XSjVh':function(_0x3f651d,_0x4572db){return _0x3f651d(_0x4572db);},'FaVUm':function(_0x21592e,_0x5d2ddf,_0x11b331,_0x1b21a7){return _0x21592e(_0x5d2ddf,_0x11b331,_0x1b21a7);},'uYMrX':function(_0x5ccef1,_0x38206e){return _0x5ccef1+_0x38206e;},'YKQVA':_0x2ba7d4(0x123)};return new Promise((_0x88fd4c,_0x4d679c)=>{const _0x52e7d6=_0x2ba7d4,_0x459983=_0x237241['FaVUm'](genSessionConfig,_0x26278b,_0x3f85c5,this['dataPath']),_0x167225=new SessionListener();_0x167225[_0x52e7d6(0x135)]=_0x4151c7=>{const _0x1696fc=_0x52e7d6;if(_0x237241['IdWqY'](_0x4151c7,0x0))return _0x237241[_0x1696fc(0xb3)](_0x88fd4c,0x0);_0x4d679c(_0x4151c7);},this['session'][_0x52e7d6(0xef)](_0x459983,new _0x531d56[(_0x52e7d6(0xf5))](new DependsAdapter()),new _0x531d56[(_0x52e7d6(0x114))](new DispatcherAdapter()),new _0x531d56[(_0x52e7d6(0x9f))](_0x167225));try{this[_0x52e7d6(0x12e)][_0x52e7d6(0xb9)](0x0);}catch(_0x410f97){try{this[_0x52e7d6(0x12e)]['startNT']();}catch(_0x16aaab){_0x237241['XSjVh'](_0x4d679c,_0x237241[_0x52e7d6(0xd5)](_0x237241[_0x52e7d6(0xc8)],_0x16aaab));}}});}[_0x38334f(0x129)](){const _0xbc2812=_0x38334f,_0x45103b={'ZLTvI':function(_0x40b1de,_0x1243fc){return _0x40b1de===_0x1243fc;}},_0x468004=new MsgListener();_0x468004[_0xbc2812(0xe1)]=_0x33820c=>{const _0x4446d6={'ePtxU':function(_0x3e3d6f,_0x40c48f){const _0x5c22d3=_0x570e;return _0x45103b[_0x5c22d3(0xa8)](_0x3e3d6f,_0x40c48f);}};_0x33820c['map'](_0x47815e=>{const _0x2b1e9f=_0x570e;_0x4446d6['ePtxU'](_0x47815e[_0x2b1e9f(0x12d)],'0')?dbUtil[_0x2b1e9f(0x108)](_0x47815e)[_0x2b1e9f(0xf4)]()[_0x2b1e9f(0xe2)]():dbUtil[_0x2b1e9f(0xa4)](_0x47815e[_0x2b1e9f(0xd4)])[_0x2b1e9f(0xf4)](_0xac3ab2=>{const _0xf3026=_0x2b1e9f;_0xac3ab2&&(_0xac3ab2[_0xf3026(0x12d)]=_0x47815e[_0xf3026(0x12d)],dbUtil[_0xf3026(0xab)](_0xac3ab2)[_0xf3026(0xf4)]());});});},this[_0xbc2812(0x101)](_0x468004);const _0x1535ed=new BuddyListener();_0x1535ed[_0xbc2812(0xf1)]=_0x1a8d1c=>{const _0x1f9309=_0xbc2812;for(const _0x37dbd3 of _0x1a8d1c){for(const _0x199f2f of _0x37dbd3['buddyList']){const _0x64e7fc=friends['get'](_0x199f2f['uid']);uid2UinMap[_0x199f2f[_0x1f9309(0xfb)]]=_0x199f2f[_0x1f9309(0xfe)],_0x64e7fc?Object[_0x1f9309(0xe5)](_0x64e7fc,_0x199f2f):friends['set'](_0x199f2f[_0x1f9309(0xfb)],_0x199f2f);}}},this[_0xbc2812(0x101)](_0x1535ed),this['session'][_0xbc2812(0xbd)]()[_0xbc2812(0x116)](!![])[_0xbc2812(0xf4)](_0x3b5a75=>{});const _0xb1da6c=new ProfileListener();_0xb1da6c[_0xbc2812(0xad)]=_0xe685c8=>{const _0x51ae7c=_0xbc2812;_0x45103b[_0x51ae7c(0xa8)](_0xe685c8[_0x51ae7c(0xfb)],selfInfo[_0x51ae7c(0xfb)])&&Object[_0x51ae7c(0xe5)](selfInfo,_0xe685c8);},this[_0xbc2812(0x101)](_0xb1da6c);const _0x30def5=new GroupListener();_0x30def5['onGroupListUpdate']=(_0x493799,_0x257b3)=>{_0x257b3['map'](_0x6bdd54=>{const _0x1ea671=_0x570e,_0x361f3d=groups['get'](_0x6bdd54['groupCode']);if(_0x361f3d)Object[_0x1ea671(0xe5)](_0x361f3d,_0x6bdd54);else{groups[_0x1ea671(0x10b)](_0x6bdd54[_0x1ea671(0x12c)],_0x6bdd54);const _0x3fb9cd=this['session']['getGroupService']()['createMemberListScene'](_0x6bdd54[_0x1ea671(0x12c)],_0x1ea671(0xea));this[_0x1ea671(0x12e)]['getGroupService']()[_0x1ea671(0x106)](_0x3fb9cd,undefined,0xbb8)[_0x1ea671(0xf4)](_0x5c9210=>{});}});},_0x30def5[_0xbc2812(0x132)]=_0x12c9b5=>{const _0x167531=_0xbc2812,_0x5e435b=_0x12c9b5['sceneId'][_0x167531(0xe3)]('_')[0x0];if(groupMembers['has'](_0x5e435b)){const _0x46f783=groupMembers[_0x167531(0x12f)](_0x5e435b);_0x12c9b5[_0x167531(0x103)][_0x167531(0xa9)]((_0x7c7c96,_0x22d408)=>{const _0x5e8d2d=_0x167531,_0x2df85e=_0x46f783[_0x5e8d2d(0x12f)](_0x22d408);_0x2df85e?Object[_0x5e8d2d(0xe5)](_0x2df85e,_0x7c7c96):_0x46f783['set'](_0x22d408,_0x7c7c96);});}else groupMembers[_0x167531(0x10b)](_0x5e435b,_0x12c9b5[_0x167531(0x103)]);},_0x30def5[_0xbc2812(0x117)]=(_0x1c91fc,_0x18ca8d,_0x21fdf3)=>{const _0x42c397=_0xbc2812;_0x21fdf3[_0x42c397(0xa9)]((_0x92b1d9,_0x1ab087)=>{const _0x48889a=_0x42c397;uid2UinMap[_0x1ab087]=_0x92b1d9[_0x48889a(0xfe)];});const _0x2ad2e8=groupMembers[_0x42c397(0x12f)](_0x1c91fc);_0x2ad2e8?_0x21fdf3[_0x42c397(0xa9)]((_0x357dd6,_0xd5e0dd)=>{const _0x142c61=_0x42c397,_0x461472=_0x2ad2e8[_0x142c61(0x12f)](_0xd5e0dd);_0x461472?Object['assign'](_0x461472,_0x357dd6):_0x2ad2e8[_0x142c61(0x10b)](_0xd5e0dd,_0x357dd6);}):groupMembers['set'](_0x1c91fc,_0x21fdf3);},this[_0xbc2812(0x101)](_0x30def5);}[_0x38334f(0x101)](_0x50ee23){const _0xa4fa30=_0x38334f,_0x595ab5={'cHiMB':_0xa4fa30(0xfd),'IBNmi':_0xa4fa30(0xcc)};_0x50ee23=new Proxy(_0x50ee23,this['proxyHandler']);switch(_0x50ee23[_0xa4fa30(0xbb)][_0xa4fa30(0xc7)]){case _0x595ab5[_0xa4fa30(0xc0)]:{return this[_0xa4fa30(0x12e)][_0xa4fa30(0xbd)]()[_0xa4fa30(0xb6)](new _0x531d56[(_0xa4fa30(0x121))](_0x50ee23));}case _0xa4fa30(0xaa):{return this[_0xa4fa30(0x12e)][_0xa4fa30(0xe9)]()[_0xa4fa30(0xbe)](new _0x531d56[(_0xa4fa30(0x11e))](_0x50ee23));}case'MsgListener':{return this[_0xa4fa30(0x12e)][_0xa4fa30(0xe0)]()[_0xa4fa30(0x113)](new _0x531d56[(_0xa4fa30(0x10d))](_0x50ee23));}case _0x595ab5['IBNmi']:{return this['session'][_0xa4fa30(0xd3)]()[_0xa4fa30(0x11a)](new _0x531d56[(_0xa4fa30(0xbf))](_0x50ee23));}default:return-0x1;}}[_0x38334f(0xba)](_0x3913f8){const _0x58adac=_0x38334f;this[_0x58adac(0xa0)][_0x58adac(0xa3)](_0x3913f8);}async[_0x38334f(0xd1)](_0x5ea256){const _0x26b375=_0x38334f,_0x24f6a0={'pfmEe':function(_0x1b358e,_0x10d01e){return _0x1b358e!==_0x10d01e;},'ERbMh':_0x26b375(0x119),'TWvCO':function(_0x458259,_0x13f4dc){return _0x458259(_0x13f4dc);},'jWWHq':function(_0x5e2ddb,_0x6f80bf){return _0x5e2ddb+_0x6f80bf;}},_0x3574e4=await this['loginService'][_0x26b375(0x104)]();if(_0x24f6a0['pfmEe'](_0x3574e4['result'],0x0))throw new Error(_0x24f6a0[_0x26b375(0xd2)]);const _0x5f4e61=_0x3574e4['LocalLoginInfoList'][_0x26b375(0xb7)](_0x50deb4=>_0x50deb4[_0x26b375(0xfe)]===_0x5ea256);if(!_0x5f4e61||!_0x5f4e61?.['isQuickLogin'])throw new Error(_0x5ea256+_0x26b375(0xc3));await _0x24f6a0[_0x26b375(0xc2)](sleep,0x3e8);const _0x1a504f=await this[_0x26b375(0xd7)][_0x26b375(0x120)](_0x5ea256);if(!_0x1a504f[_0x26b375(0x102)])throw new Error(_0x24f6a0[_0x26b375(0xcf)](_0x26b375(0x10c),_0x1a504f['loginErrorInfo']['errMsg']));return _0x1a504f;}async['qrLogin'](){const _0xced23=_0x38334f,_0x3fcd01={'Dcxzh':_0xced23(0x115),'hRyMw':function(_0x101aa3,_0x57d3da){return _0x101aa3(_0x57d3da);},'kMJbM':'获取二维码登录超时','UmDKH':function(_0x314436,_0x41a471,_0x2522c7){return _0x314436(_0x41a471,_0x2522c7);}};let _0x404159=![];return new Promise((_0xbca97,_0x4bd2f8)=>{const _0x38915f=_0xced23,_0x133648={'kGktn':function(_0x553944,_0x398ddd){return _0x553944(_0x398ddd);},'TbOqR':_0x3fcd01['kMJbM']};_0x3fcd01[_0x38915f(0x11d)](setTimeout,()=>{const _0x17da8f=_0x38915f;!_0x404159&&_0x133648[_0x17da8f(0xd0)](_0x4bd2f8,_0x133648[_0x17da8f(0xb4)]);},0x2710),this[_0x38915f(0x122)]['onQRCodeGetPicture']=_0x4c653d=>{const _0x30c3da=_0x38915f;_0x404159=!![];const _0x4876eb=_0x4c653d[_0x30c3da(0x12a)][_0x30c3da(0xe3)](_0x3fcd01[_0x30c3da(0x126)])[0x1],_0x5d3c34=Buffer['from'](_0x4876eb,_0x30c3da(0xa5));_0x3fcd01[_0x30c3da(0x111)](_0xbca97,{'url':_0x4c653d['qrcodeUrl'],'base64':_0x4c653d[_0x30c3da(0x12a)],'buffer':_0x5d3c34});},this[_0x38915f(0xd7)]['getQRCodePicture']();});}async[_0x38334f(0xc4)](_0x3c98d,_0x53df7d,_0x324e12,_0x58ca4a,_0x34109f){const _0x12cbd8=_0x38334f,_0x44f5ea={'zOlCR':_0x12cbd8(0x112),'dxbNx':'hex','leRVW':function(_0x2d6dcc,_0xd3e7da){return _0x2d6dcc||_0xd3e7da;},'CINBe':function(_0x5ab527,_0x1c445a){return _0x5ab527||_0x1c445a;},'SMPyq':function(_0x2a70d0,_0x4c9046){return _0x2a70d0(_0x4c9046);},'iYQsl':'140022013'},_0x44e893=_0x40a5b3[_0x12cbd8(0x136)](_0x44f5ea[_0x12cbd8(0x130)])[_0x12cbd8(0xd9)](_0x53df7d)[_0x12cbd8(0xae)](_0x44f5ea['dxbNx']),_0x15c6e6={'uin':_0x3c98d,'passwordMd5':_0x44e893,'step':_0x324e12&&_0x58ca4a&&_0x34109f?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x44f5ea[_0x12cbd8(0x134)](_0x324e12,''),'proofWaterRand':_0x58ca4a||'','proofWaterSid':_0x44f5ea[_0x12cbd8(0x110)](_0x34109f,'')};await this[_0x12cbd8(0xd7)][_0x12cbd8(0x104)](),await _0x44f5ea[_0x12cbd8(0x11f)](sleep,0x3e8);const _0x2e81f7=await this[_0x12cbd8(0xd7)][_0x12cbd8(0xc4)](_0x15c6e6);switch(_0x2e81f7[_0x12cbd8(0x102)]){case'0':{break;}case _0x12cbd8(0xbc):{break;}case'4':case _0x44f5ea[_0x12cbd8(0xe7)]:default:}}}export const napCatCore=new NapCatCore(); \ No newline at end of file +function _0x1fdc(_0x47742e,_0x59eb4a){const _0x26e234=_0x26e2();return _0x1fdc=function(_0x1fdcec,_0x326a44){_0x1fdcec=_0x1fdcec-0x1b3;let _0x16c243=_0x26e234[_0x1fdcec];return _0x16c243;},_0x1fdc(_0x47742e,_0x59eb4a);}const _0x3cedf5=_0x1fdc;(function(_0x364f7c,_0x391b5b){const _0x2f5623=_0x1fdc,_0x49789e=_0x364f7c();while(!![]){try{const _0x217d7a=-parseInt(_0x2f5623(0x1cb))/0x1*(-parseInt(_0x2f5623(0x1d1))/0x2)+-parseInt(_0x2f5623(0x1d3))/0x3*(-parseInt(_0x2f5623(0x23b))/0x4)+parseInt(_0x2f5623(0x1ec))/0x5+-parseInt(_0x2f5623(0x23d))/0x6+-parseInt(_0x2f5623(0x202))/0x7+-parseInt(_0x2f5623(0x1bf))/0x8*(parseInt(_0x2f5623(0x1f3))/0x9)+parseInt(_0x2f5623(0x234))/0xa;if(_0x217d7a===_0x391b5b)break;else _0x49789e['push'](_0x49789e['shift']());}catch(_0x34029e){_0x49789e['push'](_0x49789e['shift']());}}}(_0x26e2,0xd808a));import _0x456cfe from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x330b58 from'node:path';import _0x1491bc from'node:os';function _0x26e2(){const _0x4c70ba=['assign','msgId','fileLogLevel','loginErrorInfo','NodeIKernelLoginService','forEach','updateMsg','engine','\x20has\x20no\x20method\x20','split','启动失败:\x20','curVersion','onQRCodeGetPicture','onSessionInitComplete','登录失败','groupCode','MsgListener','addKernelBuddyListener','pngBase64QrcodeData','createMemberListScene','getLoginList','3516220MFzMJj','getQRCodePicture','PNoRr','快速登录不可用','onMsgInfoListUpdate','onMemberListChange','hSXxF','2718IhhlHf','sceneId','DzgXK','KRQeN','dataPath','nUzjT','addKernelMsgListener','initSession','getBuddyList','QlYZh','startNT','proxyHandler','NodeIQQNTWrapperEngine','mkdirSync','onLoginSuccess','9021453VRaQiF','loginService','getProfileService','groupMemberList_MainWindow','base64','qHaGc','快速登录失败\x20','NodeIKernelGroupListener','initDataListener','gjIUx','result','yZPzJ','quickLogin','fiCYn','onLoginSuccessFuncList','getGroupService','aBXPF','-v2.db','find','eTZYm','set','init','tWdrQ','onGroupListUpdate','addKernelLoginListener','read','passwordLogin','gBWPa','uid','ZmgAA','140022008','errMsg','addListener','map','hex','jTjcC','buddyList','getMsgService','sdJja','digest','onBuddyListChange','constructor','onQRCodeSessionFailed','uin','infos','NxmRh','./NapCat/data','onLoginState','md5','uwDng','11076560yLQxrA','consoleLog','onMemberInfoChange','initSession\x20failed','hvOjc','addKernelGroupListener','catch','30756vMdllp','XxuXA','5428020kBOYCX','loginListener','getBuddyService','LocalLoginInfoList','leBiW','NodeIKernelProfileListener','XivYB','nPceC','stringify','dataPathGlobal','data:image/png;base64,','jHFKQ','resolve','NodeIKernelMsgListener','addKernelProfileListener','./nt_qq/global','DOWvQ','omNYc','获取二维码登录超时','update','NodeIQQNTWrapperSession','push','recallTime','msrmG','NodeIKernelLoginListener','qrLogin','BuddyListener','NodeIDispatcherAdapter','session','then','initConfig','384COJEIl','qrcodeUrl','getNTUserDataInfoConfig','ProfileListener','数据库初始化失败','consoleLogLevel','onQRCodeLoginSucceed','getNextMemberList','VyLRd','get','frkNF','GroupListener','2476HYQMgB','util','没有可快速登录的QQ号','dmwvi','from','hiQML','992buJJkf','name','21DGGcpB','NodeIDependsAdapter','NodeIKernelBuddyListener','addMsg'];_0x26e2=function(){return _0x4c70ba;};return _0x26e2();}import _0x45228e 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 _0x30ccd8 from'node:crypto';import{friends,groupMembers,groups,selfInfo,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x3cedf5(0x1bc)];['util'];[_0x3cedf5(0x1de)];['loginService'];['loginListener'];[_0x3cedf5(0x210)]=[];[_0x3cedf5(0x1fe)]={'get'(target,prop,receiver){const GDcZTs={'dmwvi':function(callee,param1){return callee(param1);},'MJjbU':function(x,y){return x===y;}};if(GDcZTs['MJjbU'](typeof target[prop],'undefined'))return(...args)=>{const _0x4d2a38=_0x1fdc;GDcZTs[_0x4d2a38(0x1ce)](logDebug,target[_0x4d2a38(0x22b)][_0x4d2a38(0x1d2)]+_0x4d2a38(0x1df)+prop);};return Reflect['get'](target,prop,receiver);}};constructor(){const _0x444d6e=_0x3cedf5,_0x4b8c80={'eTZYm':function(_0x1ea04c,_0x3b4826){return _0x1ea04c==_0x3b4826;},'BmzPs':function(_0x52ea4a,_0x46a4c5){return _0x52ea4a(_0x46a4c5);},'KRQeN':function(_0x1965fb,_0x3647c9,_0x5491c1){return _0x1965fb(_0x3647c9,_0x5491c1);},'wBRIt':function(_0x7a8b4c,_0x4a3221,_0x346179){return _0x7a8b4c(_0x4a3221,_0x346179);},'sdJja':_0x444d6e(0x230),'QlYZh':function(_0x5c04f6,_0x892b48,_0xde9552){return _0x5c04f6(_0x892b48,_0xde9552);},'MDWgk':'本账号数据/缓存目录:','BBIoM':function(_0x28d413,_0x2037d6){return _0x28d413 instanceof _0x2037d6;},'tIflP':_0x444d6e(0x1e5),'SWIOv':function(_0x2ddf88,_0x1b55e2,_0x1eda27){return _0x2ddf88(_0x1b55e2,_0x1eda27);}};this[_0x444d6e(0x1de)]=new _0x456cfe[(_0x444d6e(0x1ff))](),this[_0x444d6e(0x1cc)]=new _0x456cfe['NodeQQNTWrapperUtil'](),this['loginService']=new _0x456cfe[(_0x444d6e(0x1db))](),this[_0x444d6e(0x1bc)]=new _0x456cfe[(_0x444d6e(0x1b4))](),this['loginListener']=new LoginListener(),this[_0x444d6e(0x23e)][_0x444d6e(0x231)]=_0x4e25c7=>{const _0x2bc639=_0x444d6e;_0x4b8c80[_0x2bc639(0x215)](_0x4e25c7,0x3)&&_0x4b8c80['BmzPs'](logError,'当前账号已登录,无法重复登录');},this[_0x444d6e(0x23e)][_0x444d6e(0x1c5)]=_0x5b1696=>{const _0x2ed741=_0x444d6e,_0x3cae58={'gBWPa':function(_0x4994ba,_0x96e8f0){return _0x4b8c80['BBIoM'](_0x4994ba,_0x96e8f0);}};this[_0x2ed741(0x1fa)](_0x5b1696[_0x2ed741(0x22d)],_0x5b1696[_0x2ed741(0x21e)])[_0x2ed741(0x1bd)](_0x1aab5a=>{const _0x32015e=_0x2ed741,_0xf522c3={'gjIUx':function(_0x15bdfc,_0xec9b6c,_0x5757b8){const _0x3c88da=_0x1fdc;return _0x4b8c80[_0x3c88da(0x1f6)](_0x15bdfc,_0xec9b6c,_0x5757b8);},'jTjcC':_0x32015e(0x1c3)};selfInfo['uin']=_0x5b1696[_0x32015e(0x22d)],selfInfo[_0x32015e(0x21e)]=_0x5b1696[_0x32015e(0x21e)],napCatConfig[_0x32015e(0x21b)](),_0x4b8c80['wBRIt'](setLogLevel,napCatConfig[_0x32015e(0x1d9)],napCatConfig[_0x32015e(0x1c4)]),enableFileLog(napCatConfig['fileLog']),enableConsoleLog(napCatConfig[_0x32015e(0x235)]),setLogSelfInfo(selfInfo);const _0x267fb4=_0x330b58[_0x32015e(0x249)](this[_0x32015e(0x1f7)],_0x4b8c80[_0x32015e(0x228)]);_0x45228e[_0x32015e(0x200)](_0x267fb4,{'recursive':!![]}),_0x4b8c80[_0x32015e(0x1fc)](logDebug,_0x4b8c80['MDWgk'],_0x267fb4),dbUtil['init'](_0x330b58[_0x32015e(0x249)](_0x267fb4,'./'+_0x5b1696[_0x32015e(0x22d)]+_0x32015e(0x213)))[_0x32015e(0x1bd)](()=>{const _0x515fe2=_0x32015e,_0xe0f7ac={'hIFhk':function(_0x23e1b7,_0x3d200f){const _0x50133e=_0x1fdc;return _0x3cae58[_0x50133e(0x21d)](_0x23e1b7,_0x3d200f);}};this['initDataListener'](),this[_0x515fe2(0x210)]['map'](_0x3e76af=>{const _0x3e1204=_0x515fe2,_0x23a4a7={'msrmG':function(_0xe91eb9,_0x5164e0,_0xad261){return _0xe91eb9(_0x5164e0,_0xad261);},'yZPzJ':function(_0x1ca055,_0x36a23c){return _0xe0f7ac['hIFhk'](_0x1ca055,_0x36a23c);}};new Promise((_0x56d035,_0x244426)=>{const _0x4601c7=_0x1fdc,_0x378bab=_0x23a4a7[_0x4601c7(0x1b7)](_0x3e76af,_0x5b1696[_0x4601c7(0x22d)],_0x5b1696[_0x4601c7(0x21e)]);_0x23a4a7[_0x4601c7(0x20d)](_0x378bab,Promise)&&_0x378bab['then'](_0x56d035)[_0x4601c7(0x23a)](_0x244426);})[_0x3e1204(0x1bd)]();});})[_0x32015e(0x23a)](_0x33b7ac=>{const _0x195bc6=_0x32015e;_0xf522c3[_0x195bc6(0x20b)](logError,_0xf522c3[_0x195bc6(0x225)],_0x33b7ac);});})[_0x2ed741(0x23a)](_0x56bd42=>{const _0x10fb46=_0x2ed741;logError(_0x10fb46(0x237),_0x56bd42);throw new Error(_0x10fb46(0x1e1)+JSON[_0x10fb46(0x245)](_0x56bd42));});},this[_0x444d6e(0x23e)][_0x444d6e(0x22c)]=_0x4541ac=>{_0x4b8c80['KRQeN'](logError,_0x4b8c80['tIflP'],_0x4541ac);},this[_0x444d6e(0x23e)]['onLoginFailed']=_0x4e45c7=>{_0x4b8c80['SWIOv'](logError,_0x4b8c80['tIflP'],_0x4e45c7);},this[_0x444d6e(0x23e)]=new Proxy(this[_0x444d6e(0x23e)],this[_0x444d6e(0x1fe)]),this[_0x444d6e(0x203)][_0x444d6e(0x21a)](new _0x456cfe[(_0x444d6e(0x1b8))](this['loginListener'])),this['initConfig']();}get[_0x3cedf5(0x1f7)](){const _0x5caa2e=_0x3cedf5,_0x201f17={'PQSkV':'./.config/QQ'};let _0x4c6b68=this[_0x5caa2e(0x1cc)][_0x5caa2e(0x1c1)]();return!_0x4c6b68&&(_0x4c6b68=_0x330b58['resolve'](_0x1491bc['homedir'](),_0x201f17['PQSkV']),_0x45228e[_0x5caa2e(0x200)](_0x4c6b68,{'recursive':!![]})),_0x4c6b68;}get[_0x3cedf5(0x246)](){const _0x5ba827=_0x3cedf5,_0x1bbdab={'fiCYn':_0x5ba827(0x24c)};return _0x330b58['resolve'](this[_0x5ba827(0x1f7)],_0x1bbdab[_0x5ba827(0x20f)]);}['initConfig'](){const _0x5b44e0=_0x3cedf5,_0x5e0ef8={'nPceC':'Windows\x2010\x20Pro'};this[_0x5b44e0(0x1de)]['initWithDeskTopConfig']({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x5b44e0(0x1e2)],'os_version':_0x5e0ef8[_0x5b44e0(0x244)],'use_xlog':!![],'qua':'V1_WIN_NQ_'+qqVersionConfigInfo['curVersion']['replace']('-','_')+'_GW_B','global_path_config':{'desktopGlobalPath':this[_0x5b44e0(0x246)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x456cfe['NodeIGlobalAdapter'](new GlobalAdapter())),this[_0x5b44e0(0x203)][_0x5b44e0(0x1be)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x5b44e0(0x246)],'clientVer':qqVersionConfigInfo[_0x5b44e0(0x1e2)],'hostName':hostname});}[_0x3cedf5(0x1fa)](_0xa1679,_0x2c20db){const _0x21e1ef={'omNYc':function(_0x13a7af,_0x39b6e2){return _0x13a7af(_0x39b6e2);},'frkNF':function(_0x33ec8f,_0x218e40,_0x4a4c02,_0x5e6ff5){return _0x33ec8f(_0x218e40,_0x4a4c02,_0x5e6ff5);},'hSXxF':function(_0x4d5fbb,_0x51f7bd){return _0x4d5fbb(_0x51f7bd);},'XxuXA':function(_0xb476e9,_0x53e4b5){return _0xb476e9+_0x53e4b5;},'leBiW':'init\x20failed\x20'};return new Promise((_0x45dad5,_0x3b6521)=>{const _0x1bf145=_0x1fdc,_0x35ffed={'UMBTa':function(_0x521b77,_0x259ebb){return _0x521b77===_0x259ebb;},'DzgXK':function(_0x521da7,_0x417e01){return _0x21e1ef['omNYc'](_0x521da7,_0x417e01);},'tWdrQ':function(_0x3ff160,_0x2442d7){const _0x57cf87=_0x1fdc;return _0x21e1ef[_0x57cf87(0x24e)](_0x3ff160,_0x2442d7);}},_0xf39608=_0x21e1ef[_0x1bf145(0x1c9)](genSessionConfig,_0xa1679,_0x2c20db,this[_0x1bf145(0x1f7)]),_0x161437=new SessionListener();_0x161437[_0x1bf145(0x1e4)]=_0x1e941d=>{const _0x26f633=_0x1bf145;if(_0x35ffed['UMBTa'](_0x1e941d,0x0))return _0x35ffed[_0x26f633(0x1f5)](_0x45dad5,0x0);_0x35ffed[_0x26f633(0x218)](_0x3b6521,_0x1e941d);},this[_0x1bf145(0x1bc)][_0x1bf145(0x217)](_0xf39608,new _0x456cfe[(_0x1bf145(0x1d4))](new DependsAdapter()),new _0x456cfe[(_0x1bf145(0x1bb))](new DispatcherAdapter()),new _0x456cfe['NodeIKernelSessionListener'](_0x161437));try{this['session'][_0x1bf145(0x1fd)](0x0);}catch(_0x138827){try{this[_0x1bf145(0x1bc)][_0x1bf145(0x1fd)]();}catch(_0x5d5219){_0x21e1ef[_0x1bf145(0x1f2)](_0x3b6521,_0x21e1ef[_0x1bf145(0x23c)](_0x21e1ef[_0x1bf145(0x241)],_0x5d5219));}}});}[_0x3cedf5(0x20a)](){const _0x47e149=_0x3cedf5,_0x47274b={'VyLRd':_0x47e149(0x205)},_0x3b179f=new MsgListener();_0x3b179f[_0x47e149(0x1f0)]=_0x41b0c9=>{const _0xafbb08=_0x47e149,_0x2e1e4d={'uwDng':function(_0x280766,_0x33d4d7){return _0x280766===_0x33d4d7;}};_0x41b0c9[_0xafbb08(0x223)](_0x455996=>{const _0x1b9a96=_0xafbb08;_0x2e1e4d[_0x1b9a96(0x233)](_0x455996[_0x1b9a96(0x1b6)],'0')?dbUtil[_0x1b9a96(0x1d6)](_0x455996)[_0x1b9a96(0x1bd)]()['catch']():dbUtil['getMsgByLongId'](_0x455996[_0x1b9a96(0x1d8)])[_0x1b9a96(0x1bd)](_0x434ee2=>{const _0xe743b0=_0x1b9a96;_0x434ee2&&(_0x434ee2[_0xe743b0(0x1b6)]=_0x455996['recallTime'],dbUtil[_0xe743b0(0x1dd)](_0x434ee2)[_0xe743b0(0x1bd)]());});});},this['addListener'](_0x3b179f);const _0x2b19c4=new BuddyListener();_0x2b19c4[_0x47e149(0x22a)]=_0x3fd654=>{const _0x5473b9=_0x47e149;for(const _0x43fc19 of _0x3fd654){for(const _0x15665f of _0x43fc19[_0x5473b9(0x226)]){const _0x24a9a0=friends[_0x5473b9(0x1c8)](_0x15665f[_0x5473b9(0x21e)]);uid2UinMap[_0x15665f[_0x5473b9(0x21e)]]=_0x15665f[_0x5473b9(0x22d)],_0x24a9a0?Object[_0x5473b9(0x1d7)](_0x24a9a0,_0x15665f):friends[_0x5473b9(0x216)](_0x15665f['uid'],_0x15665f);}}},this[_0x47e149(0x222)](_0x2b19c4),this[_0x47e149(0x1bc)]['getBuddyService']()[_0x47e149(0x1fb)](!![])[_0x47e149(0x1bd)](_0x48a534=>{});const _0x3e3382=new ProfileListener();_0x3e3382['onProfileDetailInfoChanged']=_0x377f3f=>{const _0x3226b7=_0x47e149;_0x377f3f[_0x3226b7(0x21e)]===selfInfo['uid']&&Object['assign'](selfInfo,_0x377f3f);},this['addListener'](_0x3e3382);const _0x23d763=new GroupListener();_0x23d763[_0x47e149(0x219)]=(_0xed178b,_0x1be658)=>{const _0xa0aa3c=_0x47e149;_0x1be658[_0xa0aa3c(0x223)](_0x568d74=>{const _0x56cc0c=_0xa0aa3c,_0x52e812=groups[_0x56cc0c(0x1c8)](_0x568d74[_0x56cc0c(0x1e6)]);if(_0x52e812)Object['assign'](_0x52e812,_0x568d74);else{groups[_0x56cc0c(0x216)](_0x568d74[_0x56cc0c(0x1e6)],_0x568d74);const _0x5b3284=this[_0x56cc0c(0x1bc)][_0x56cc0c(0x211)]()[_0x56cc0c(0x1ea)](_0x568d74[_0x56cc0c(0x1e6)],_0x47274b[_0x56cc0c(0x1c7)]);this['session'][_0x56cc0c(0x211)]()[_0x56cc0c(0x1c6)](_0x5b3284,undefined,0xbb8)[_0x56cc0c(0x1bd)](_0x477730=>{});}});},_0x23d763[_0x47e149(0x1f1)]=_0x46a623=>{const _0x5e5daa=_0x47e149,_0x233d0f=_0x46a623[_0x5e5daa(0x1f4)][_0x5e5daa(0x1e0)]('_')[0x0];if(groupMembers['has'](_0x233d0f)){const _0x22252b=groupMembers['get'](_0x233d0f);_0x46a623[_0x5e5daa(0x22e)][_0x5e5daa(0x1dc)]((_0x4c3bc5,_0x2b371f)=>{const _0x374159=_0x5e5daa,_0x2503f5=_0x22252b[_0x374159(0x1c8)](_0x2b371f);_0x2503f5?Object[_0x374159(0x1d7)](_0x2503f5,_0x4c3bc5):_0x22252b[_0x374159(0x216)](_0x2b371f,_0x4c3bc5);});}else groupMembers[_0x5e5daa(0x216)](_0x233d0f,_0x46a623[_0x5e5daa(0x22e)]);},_0x23d763[_0x47e149(0x236)]=(_0xa92294,_0x3a6264,_0xe00db7)=>{const _0x5f0eb2=_0x47e149;_0xe00db7[_0x5f0eb2(0x1dc)]((_0x24fe7a,_0x5749f2)=>{uid2UinMap[_0x5749f2]=_0x24fe7a['uin'];});const _0x1fec1f=groupMembers[_0x5f0eb2(0x1c8)](_0xa92294);_0x1fec1f?_0xe00db7[_0x5f0eb2(0x1dc)]((_0x16b133,_0x258c47)=>{const _0x63fc6d=_0x5f0eb2,_0x120902=_0x1fec1f[_0x63fc6d(0x1c8)](_0x258c47);_0x120902?Object[_0x63fc6d(0x1d7)](_0x120902,_0x16b133):_0x1fec1f['set'](_0x258c47,_0x16b133);}):groupMembers[_0x5f0eb2(0x216)](_0xa92294,_0xe00db7);},this[_0x47e149(0x222)](_0x23d763);}[_0x3cedf5(0x222)](_0x5b2076){const _0x3f6623=_0x3cedf5,_0x525945={'XivYB':_0x3f6623(0x1ba),'sucvY':_0x3f6623(0x1c2)};_0x5b2076=new Proxy(_0x5b2076,this[_0x3f6623(0x1fe)]);switch(_0x5b2076[_0x3f6623(0x22b)][_0x3f6623(0x1d2)]){case _0x525945[_0x3f6623(0x243)]:{return this['session'][_0x3f6623(0x23f)]()[_0x3f6623(0x1e8)](new _0x456cfe[(_0x3f6623(0x1d5))](_0x5b2076));}case _0x3f6623(0x1ca):{return this['session']['getGroupService']()[_0x3f6623(0x239)](new _0x456cfe[(_0x3f6623(0x209))](_0x5b2076));}case _0x3f6623(0x1e7):{return this[_0x3f6623(0x1bc)][_0x3f6623(0x227)]()[_0x3f6623(0x1f9)](new _0x456cfe[(_0x3f6623(0x24a))](_0x5b2076));}case _0x525945['sucvY']:{return this[_0x3f6623(0x1bc)][_0x3f6623(0x204)]()[_0x3f6623(0x24b)](new _0x456cfe[(_0x3f6623(0x242))](_0x5b2076));}default:return-0x1;}}[_0x3cedf5(0x201)](_0x2713da){const _0x47af56=_0x3cedf5;this[_0x47af56(0x210)][_0x47af56(0x1b5)](_0x2713da);}async[_0x3cedf5(0x20e)](_0x2201d0){const _0x4ed571=_0x3cedf5,_0x3aa49f={'PNoRr':function(_0x51b552,_0x55883a){return _0x51b552!==_0x55883a;},'hiQML':function(_0x5d5125,_0x120291){return _0x5d5125(_0x120291);},'qHaGc':_0x4ed571(0x208)},_0x285bae=await this[_0x4ed571(0x203)][_0x4ed571(0x1eb)]();if(_0x3aa49f[_0x4ed571(0x1ee)](_0x285bae[_0x4ed571(0x20c)],0x0))throw new Error(_0x4ed571(0x1cd));const _0x595532=_0x285bae[_0x4ed571(0x240)][_0x4ed571(0x214)](_0x29cb2f=>_0x29cb2f[_0x4ed571(0x22d)]===_0x2201d0);if(!_0x595532||!_0x595532?.['isQuickLogin'])throw new Error(_0x2201d0+_0x4ed571(0x1ef));await _0x3aa49f[_0x4ed571(0x1d0)](sleep,0x3e8);const _0x49e3ef=await this[_0x4ed571(0x203)]['quickLoginWithUin'](_0x2201d0);if(!_0x49e3ef[_0x4ed571(0x20c)])throw new Error(_0x3aa49f[_0x4ed571(0x207)]+_0x49e3ef[_0x4ed571(0x1da)][_0x4ed571(0x221)]);return _0x49e3ef;}async[_0x3cedf5(0x1b9)](){const _0xd68552=_0x3cedf5,_0x4911d1={'jHFKQ':_0xd68552(0x247),'aBXPF':_0xd68552(0x206),'DjeDT':function(_0x2e1c62,_0x268b37){return _0x2e1c62(_0x268b37);}};let _0x30d7d1=![];return new Promise((_0x27bb14,_0x5adb68)=>{const _0x1ff0c4=_0xd68552,_0x4203ad={'ZmgAA':_0x1ff0c4(0x24f)};setTimeout(()=>{const _0x37f4dd=_0x1ff0c4;!_0x30d7d1&&_0x5adb68(_0x4203ad[_0x37f4dd(0x21f)]);},0x2710),this[_0x1ff0c4(0x23e)][_0x1ff0c4(0x1e3)]=_0x345e35=>{const _0x7db24d=_0x1ff0c4;_0x30d7d1=!![];const _0x742a27=_0x345e35[_0x7db24d(0x1e9)][_0x7db24d(0x1e0)](_0x4911d1[_0x7db24d(0x248)])[0x1],_0x960ccf=Buffer[_0x7db24d(0x1cf)](_0x742a27,_0x4911d1[_0x7db24d(0x212)]);_0x4911d1['DjeDT'](_0x27bb14,{'url':_0x345e35[_0x7db24d(0x1c0)],'base64':_0x345e35[_0x7db24d(0x1e9)],'buffer':_0x960ccf});},this[_0x1ff0c4(0x203)][_0x1ff0c4(0x1ed)]();});}async[_0x3cedf5(0x21c)](_0x22b2f6,_0x139a49,_0x23b42d,_0x3dba0a,_0x1c7d43){const _0x3ff95f=_0x3cedf5,_0x208fa0={'nUzjT':_0x3ff95f(0x232),'fbaDj':_0x3ff95f(0x224),'NxmRh':function(_0x53d3ef,_0x2a6c62){return _0x53d3ef&&_0x2a6c62;},'hvOjc':function(_0x2aea8a,_0x332376){return _0x2aea8a||_0x332376;},'DOWvQ':function(_0x116ff1,_0x411a22){return _0x116ff1(_0x411a22);},'lHPrK':_0x3ff95f(0x220),'omFlx':'140022013'},_0x5f5c8c=_0x30ccd8['createHash'](_0x208fa0[_0x3ff95f(0x1f8)])[_0x3ff95f(0x1b3)](_0x139a49)[_0x3ff95f(0x229)](_0x208fa0['fbaDj']),_0x373e4a={'uin':_0x22b2f6,'passwordMd5':_0x5f5c8c,'step':_0x208fa0[_0x3ff95f(0x22f)](_0x23b42d,_0x3dba0a)&&_0x1c7d43?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x208fa0[_0x3ff95f(0x238)](_0x23b42d,''),'proofWaterRand':_0x208fa0['hvOjc'](_0x3dba0a,''),'proofWaterSid':_0x1c7d43||''};await this[_0x3ff95f(0x203)]['getLoginList'](),await _0x208fa0[_0x3ff95f(0x24d)](sleep,0x3e8);const _0x5c9c94=await this[_0x3ff95f(0x203)][_0x3ff95f(0x21c)](_0x373e4a);switch(_0x5c9c94[_0x3ff95f(0x20c)]){case'0':{break;}case _0x208fa0['lHPrK']:{break;}case'4':case _0x208fa0['omFlx']:default:}}}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 5b07e7be..31f3976f 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0x3f6401=_0x2060;(function(_0x582b42,_0x2302a7){const _0x50fa20=_0x2060,_0x1f80a1=_0x582b42();while(!![]){try{const _0x4075b9=-parseInt(_0x50fa20(0x1d6))/0x1*(parseInt(_0x50fa20(0x1d0))/0x2)+-parseInt(_0x50fa20(0x1d2))/0x3*(parseInt(_0x50fa20(0x1d7))/0x4)+parseInt(_0x50fa20(0x1d4))/0x5*(-parseInt(_0x50fa20(0x1cc))/0x6)+-parseInt(_0x50fa20(0x1c7))/0x7*(parseInt(_0x50fa20(0x1d1))/0x8)+-parseInt(_0x50fa20(0x1be))/0x9+-parseInt(_0x50fa20(0x1c0))/0xa+parseInt(_0x50fa20(0x1bf))/0xb;if(_0x4075b9===_0x2302a7)break;else _0x1f80a1['push'](_0x1f80a1['shift']());}catch(_0x1996b6){_0x1f80a1['push'](_0x1f80a1['shift']());}}}(_0x29b2,0xcec33));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};function _0x2060(_0x56be57,_0xa4cb0a){const _0x29b2a6=_0x29b2();return _0x2060=function(_0x206078,_0x1e4110){_0x206078=_0x206078-0x1be;let _0x10a0d1=_0x29b2a6[_0x206078];return _0x10a0d1;},_0x2060(_0x56be57,_0xa4cb0a);}export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};function _0x29b2(){const _0x5df709=['80137497rJtdgI','12813610sGvqzm','NapCat未能正常启动,请检查日志查看错误','getGroupMembers','from','length','delete','uin','5159154mzZavv','find','groupCode','RhZnf','set','6xNoylo','toString','MDnhQ','values','26odFJXj','16kuZmzm','902289vzPDTY','get','5403865PdRNyj','GuSoy','5097CRuymI','20PqrgEF','9288666qyFEyL'];_0x29b2=function(){return _0x5df709;};return _0x29b2();}export const groups=new Map();export function deleteGroup(_0x5d4146){const _0x330582=_0x2060;groups[_0x330582(0x1c5)](_0x5d4146),groupMembers['delete'](_0x5d4146);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x3f6401(0x1c1)};export async function getFriend(_0x5def35){const _0x30467c=_0x3f6401;_0x5def35=_0x5def35['toString']();if(isNumeric(_0x5def35)){const _0x3f58c7=Array[_0x30467c(0x1c3)](friends[_0x30467c(0x1cf)]());return _0x3f58c7[_0x30467c(0x1c8)](_0x3ae692=>_0x3ae692['uin']===_0x5def35);}else return friends[_0x30467c(0x1d3)](_0x5def35);}export async function getGroup(_0x107cb7){const _0x57a0f8=_0x3f6401;let _0x3d6a34=groups[_0x57a0f8(0x1d3)](_0x107cb7[_0x57a0f8(0x1cd)]());if(!_0x3d6a34)try{const _0x57ab63=await NTQQGroupApi['getGroups']();_0x57ab63[_0x57a0f8(0x1c4)]&&_0x57ab63['forEach'](_0x2fe575=>{const _0x4f3c27=_0x57a0f8;groups[_0x4f3c27(0x1cb)](_0x2fe575[_0x4f3c27(0x1c9)],_0x2fe575);});}catch(_0x536306){return undefined;}return _0x3d6a34=groups[_0x57a0f8(0x1d3)](_0x107cb7[_0x57a0f8(0x1cd)]()),_0x3d6a34;}export async function getGroupMember(_0xb751f8,_0x15e5aa){const _0x1cd4c0=_0x3f6401,_0x3c4a71={'RhZnf':function(_0x3f8eb5,_0x582301){return _0x3f8eb5(_0x582301);},'GuSoy':function(_0x4fb4a1){return _0x4fb4a1();}};_0xb751f8=_0xb751f8[_0x1cd4c0(0x1cd)](),_0x15e5aa=_0x15e5aa[_0x1cd4c0(0x1cd)]();let _0x48b791=groupMembers[_0x1cd4c0(0x1d3)](_0xb751f8);if(!_0x48b791)try{_0x48b791=await NTQQGroupApi[_0x1cd4c0(0x1c2)](_0xb751f8),groupMembers[_0x1cd4c0(0x1cb)](_0xb751f8,_0x48b791);}catch(_0x87a774){return null;}const _0x3e9a2d=()=>{const _0x427591=_0x1cd4c0;let _0x4eadc6=undefined;return _0x3c4a71[_0x427591(0x1ca)](isNumeric,_0x15e5aa)?_0x4eadc6=Array['from'](_0x48b791[_0x427591(0x1cf)]())[_0x427591(0x1c8)](_0x20ffe0=>_0x20ffe0[_0x427591(0x1c6)]===_0x15e5aa):_0x4eadc6=_0x48b791[_0x427591(0x1d3)](_0x15e5aa),_0x4eadc6;};let _0x43db96=_0x3e9a2d();return!_0x43db96&&(_0x48b791=await NTQQGroupApi[_0x1cd4c0(0x1c2)](_0xb751f8),_0x43db96=_0x3c4a71[_0x1cd4c0(0x1d5)](_0x3e9a2d)),_0x43db96;}export const uid2UinMap={};export function getUidByUin(_0x22c742){const _0x12d8fa=_0x3f6401,_0x71df34={'MDnhQ':function(_0x174769,_0x57a243){return _0x174769===_0x57a243;}};for(const _0x25cd2e in uid2UinMap){if(_0x71df34[_0x12d8fa(0x1ce)](uid2UinMap[_0x25cd2e],_0x22c742))return _0x25cd2e;}}export const tempGroupCodeMap={}; \ No newline at end of file +const _0x392222=_0x165c;(function(_0x57b93b,_0x345e23){const _0x485459=_0x165c,_0x1dcf27=_0x57b93b();while(!![]){try{const _0x48959d=parseInt(_0x485459(0x136))/0x1*(-parseInt(_0x485459(0x13b))/0x2)+parseInt(_0x485459(0x132))/0x3*(parseInt(_0x485459(0x131))/0x4)+-parseInt(_0x485459(0x138))/0x5+-parseInt(_0x485459(0x140))/0x6+parseInt(_0x485459(0x135))/0x7*(parseInt(_0x485459(0x134))/0x8)+parseInt(_0x485459(0x137))/0x9*(parseInt(_0x485459(0x141))/0xa)+-parseInt(_0x485459(0x12d))/0xb*(-parseInt(_0x485459(0x12e))/0xc);if(_0x48959d===_0x345e23)break;else _0x1dcf27['push'](_0x1dcf27['shift']());}catch(_0x1bb744){_0x1dcf27['push'](_0x1dcf27['shift']());}}}(_0x34fc,0x533e2));function _0x165c(_0x364785,_0x1c814f){const _0x34fc86=_0x34fc();return _0x165c=function(_0x165c67,_0x88ed3b){_0x165c67=_0x165c67-0x12b;let _0x37c7fb=_0x34fc86[_0x165c67];return _0x37c7fb;},_0x165c(_0x364785,_0x1c814f);}import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x5c29b2){groups['delete'](_0x5c29b2),groupMembers['delete'](_0x5c29b2);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x392222(0x139)};export async function getFriend(_0x1dc363){const _0x4802b0=_0x392222,_0xfe0f78={'umiAI':function(_0x2298e6,_0x32c9bc){return _0x2298e6(_0x32c9bc);}};_0x1dc363=_0x1dc363[_0x4802b0(0x130)]();if(_0xfe0f78['umiAI'](isNumeric,_0x1dc363)){const _0x176459=Array[_0x4802b0(0x13d)](friends[_0x4802b0(0x13c)]());return _0x176459['find'](_0x208cf4=>_0x208cf4[_0x4802b0(0x13e)]===_0x1dc363);}else return friends['get'](_0x1dc363);}export async function getGroup(_0x485eca){const _0xe899d5=_0x392222;let _0x19d350=groups['get'](_0x485eca[_0xe899d5(0x130)]());if(!_0x19d350)try{const _0x34c12d=await NTQQGroupApi[_0xe899d5(0x133)]();_0x34c12d[_0xe899d5(0x142)]&&_0x34c12d['forEach'](_0x38f0a5=>{const _0x35a7d1=_0xe899d5;groups[_0x35a7d1(0x144)](_0x38f0a5[_0x35a7d1(0x143)],_0x38f0a5);});}catch(_0x5dd9e3){return undefined;}return _0x19d350=groups[_0xe899d5(0x13a)](_0x485eca[_0xe899d5(0x130)]()),_0x19d350;}export async function getGroupMember(_0x2820af,_0x4332bc){const _0x1a0269=_0x392222,_0x24191e={'BMXcn':function(_0xd23fef,_0x10c240){return _0xd23fef(_0x10c240);},'Nzreg':function(_0x2ef51e){return _0x2ef51e();}};_0x2820af=_0x2820af[_0x1a0269(0x130)](),_0x4332bc=_0x4332bc['toString']();let _0x5c4c81=groupMembers[_0x1a0269(0x13a)](_0x2820af);if(!_0x5c4c81)try{_0x5c4c81=await NTQQGroupApi['getGroupMembers'](_0x2820af),groupMembers[_0x1a0269(0x144)](_0x2820af,_0x5c4c81);}catch(_0x246e22){return null;}const _0x603d3c=()=>{const _0x3eaecd=_0x1a0269;let _0x5a51f5=undefined;return _0x24191e['BMXcn'](isNumeric,_0x4332bc)?_0x5a51f5=Array['from'](_0x5c4c81[_0x3eaecd(0x13c)]())[_0x3eaecd(0x12f)](_0xab5b2d=>_0xab5b2d[_0x3eaecd(0x13e)]===_0x4332bc):_0x5a51f5=_0x5c4c81[_0x3eaecd(0x13a)](_0x4332bc),_0x5a51f5;};let _0x57cad4=_0x24191e[_0x1a0269(0x13f)](_0x603d3c);return!_0x57cad4&&(_0x5c4c81=await NTQQGroupApi[_0x1a0269(0x12b)](_0x2820af),_0x57cad4=_0x24191e[_0x1a0269(0x13f)](_0x603d3c)),_0x57cad4;}export const uid2UinMap={};function _0x34fc(){const _0x593a39=['uin','Nzreg','3266112lHHIQO','940MafrWp','length','groupCode','set','getGroupMembers','HhoQL','11wxwmCP','4791564ROaGVm','find','toString','76SPzwLO','23487aySJmZ','getGroups','1352eVztlS','26551YJnUdX','173953PHVFDk','18594HKWweI','1620010xMmQpB','NapCat未能正常启动,请检查日志查看错误','get','2PfgdRf','values','from'];_0x34fc=function(){return _0x593a39;};return _0x34fc();}export function getUidByUin(_0x561288){const _0x217e6f=_0x392222,_0x2cd8de={'HhoQL':function(_0x2d4e82,_0x30cf9f){return _0x2d4e82===_0x30cf9f;}};for(const _0x33f605 in uid2UinMap){if(_0x2cd8de[_0x217e6f(0x12c)](uid2UinMap[_0x33f605],_0x561288))return _0x33f605;}}export const tempGroupCodeMap={}; \ 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 54eb7057..fa9a0110 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -function _0xd382(){var _0x10c2ba=['vYUpA','30EoYePl','5376000vDwHpn','1625514RnlHND','VIDEO','1943140XSOsPU','575447rYoqyp','1511960NNXxNI','split','DOCUMENT','gwRCI','1421700FRZnsS','TFNZm','AUDIO','104020qwDLuv','OTHER','2|3|0|1|4'];_0xd382=function(){return _0x10c2ba;};return _0xd382();}function _0x2034(_0x41cf7a,_0x18fd5e){var _0xd38288=_0xd382();return _0x2034=function(_0x203481,_0x3d077e){_0x203481=_0x203481-0x1d7;var _0x1b23d2=_0xd38288[_0x203481];return _0x1b23d2;},_0x2034(_0x41cf7a,_0x18fd5e);}(function(_0x37d3b8,_0x3a8f36){var _0x41cc54=_0x2034,_0x38cf8e=_0x37d3b8();while(!![]){try{var _0x1866e6=-parseInt(_0x41cc54(0x1dd))/0x1+parseInt(_0x41cc54(0x1e5))/0x2*(parseInt(_0x41cc54(0x1d8))/0x3)+-parseInt(_0x41cc54(0x1dc))/0x4+-parseInt(_0x41cc54(0x1de))/0x5+parseInt(_0x41cc54(0x1da))/0x6+parseInt(_0x41cc54(0x1e2))/0x7+parseInt(_0x41cc54(0x1d9))/0x8;if(_0x1866e6===_0x3a8f36)break;else _0x38cf8e['push'](_0x38cf8e['shift']());}catch(_0x3d3ef1){_0x38cf8e['push'](_0x38cf8e['shift']());}}}(_0xd382,0x49d9f));export var CacheFileType;(function(_0x8f35){var _0x3944a9=_0x2034,_0x2ccb55={'vYUpA':_0x3944a9(0x1e4),'gwRCI':_0x3944a9(0x1e0),'TFNZm':'IMAGE','TGqAa':_0x3944a9(0x1db),'OrEnj':_0x3944a9(0x1e6)},_0x3954ba=_0x3944a9(0x1e7)[_0x3944a9(0x1df)]('|'),_0x21fb63=0x0;while(!![]){switch(_0x3954ba[_0x21fb63++]){case'0':_0x8f35[_0x8f35[_0x2ccb55[_0x3944a9(0x1d7)]]=0x2]=_0x2ccb55[_0x3944a9(0x1d7)];continue;case'1':_0x8f35[_0x8f35[_0x3944a9(0x1e0)]=0x3]=_0x2ccb55[_0x3944a9(0x1e1)];continue;case'2':_0x8f35[_0x8f35[_0x2ccb55[_0x3944a9(0x1e3)]]=0x0]=_0x2ccb55[_0x3944a9(0x1e3)];continue;case'3':_0x8f35[_0x8f35[_0x2ccb55['TGqAa']]=0x1]=_0x3944a9(0x1db);continue;case'4':_0x8f35[_0x8f35['OTHER']=0x4]=_0x2ccb55['OrEnj'];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +(function(_0x22c34e,_0x3b3a19){var _0x374186=_0x5981,_0x1f2b0e=_0x22c34e();while(!![]){try{var _0x366db9=parseInt(_0x374186(0x123))/0x1+parseInt(_0x374186(0x117))/0x2+parseInt(_0x374186(0x122))/0x3*(-parseInt(_0x374186(0x125))/0x4)+-parseInt(_0x374186(0x127))/0x5+-parseInt(_0x374186(0x118))/0x6*(parseInt(_0x374186(0x124))/0x7)+-parseInt(_0x374186(0x11b))/0x8*(-parseInt(_0x374186(0x11d))/0x9)+parseInt(_0x374186(0x11c))/0xa;if(_0x366db9===_0x3b3a19)break;else _0x1f2b0e['push'](_0x1f2b0e['shift']());}catch(_0x5a2731){_0x1f2b0e['push'](_0x1f2b0e['shift']());}}}(_0x30b1,0x79a4c));function _0x30b1(){var _0x168033=['9RAuSxC','OTHER','cTwLN','VIDEO','QsNxj','42tWqjmj','345318fhPWKu','21TWCHGW','103108sFvmwd','PxrlW','4283045AIxSYd','IMAGE','704620CiBMXM','997446UVFEzi','AUDIO','DOCUMENT','1089384nXkuHd','13806610roFkNe'];_0x30b1=function(){return _0x168033;};return _0x30b1();}export var CacheFileType;function _0x5981(_0x413ee1,_0x52113e){var _0x30b144=_0x30b1();return _0x5981=function(_0x5981bf,_0x3cba65){_0x5981bf=_0x5981bf-0x117;var _0x51888e=_0x30b144[_0x5981bf];return _0x51888e;},_0x5981(_0x413ee1,_0x52113e);}(function(_0x3e0864){var _0xa792d4=_0x5981,_0x1d0b24={'PxrlW':_0xa792d4(0x128),'VbJHN':'VIDEO','QsNxj':_0xa792d4(0x119),'cTwLN':_0xa792d4(0x11a)};_0x3e0864[_0x3e0864[_0x1d0b24['PxrlW']]=0x0]=_0x1d0b24[_0xa792d4(0x126)],_0x3e0864[_0x3e0864[_0xa792d4(0x120)]=0x1]=_0x1d0b24['VbJHN'],_0x3e0864[_0x3e0864[_0x1d0b24[_0xa792d4(0x121)]]=0x2]=_0x1d0b24[_0xa792d4(0x121)],_0x3e0864[_0x3e0864[_0x1d0b24[_0xa792d4(0x11f)]]=0x3]=_0x1d0b24[_0xa792d4(0x11f)],_0x3e0864[_0x3e0864[_0xa792d4(0x11e)]=0x4]=_0xa792d4(0x11e);}(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 1c37df9e..6c23f0d9 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x5294ca=_0x18e6;(function(_0x2d8590,_0x446afd){const _0x18e06e=_0x18e6,_0x7505c8=_0x2d8590();while(!![]){try{const _0x141aa6=parseInt(_0x18e06e(0x134))/0x1*(parseInt(_0x18e06e(0x10b))/0x2)+parseInt(_0x18e06e(0x118))/0x3*(-parseInt(_0x18e06e(0x11a))/0x4)+-parseInt(_0x18e06e(0x109))/0x5+-parseInt(_0x18e06e(0x112))/0x6*(-parseInt(_0x18e06e(0x132))/0x7)+-parseInt(_0x18e06e(0xfb))/0x8+-parseInt(_0x18e06e(0xfe))/0x9+parseInt(_0x18e06e(0x127))/0xa;if(_0x141aa6===_0x446afd)break;else _0x7505c8['push'](_0x7505c8['shift']());}catch(_0x56f768){_0x7505c8['push'](_0x7505c8['shift']());}}}(_0x351b,0xca069));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';function _0x351b(){const _0x6b943c=['4151295nYCLSj','Hjwbk','18brkMAu','time','AfzYK','Ori','PIC','BHYQr','CGgjz','234hCbrBO','replace','VIDEO','markdown','PTT','width','3210558VtmdXk','FACE','4IVdNsQ','LOHZz','end','Thumb','uploadFile','语音转换失败,\x20请检查语音文件是否正常','获取视频信息失败','dXWYb','getImageSize','video','normal','join','normal2','27748070uwOyZh','then','copyFile','face','coJQO','cLYMb','FILE','catch','EEHHs','视频信息','vzOqM','105959ZxWfip','aoQJA','29881JkJouT','jlleq','vfzxE','height','TEXT','notAt','MARKDOWN','rcfhh','stringify','文件异常,大小为0','mp4','text','ark','JrFvM','path','error','TcEmn','snNjF','string','ptt','jpg','_0.png','获取视频封面失败,使用默认封面','iOhgo','writeFile','screenshots','[骰子]','4903016inUSnK','dice','set','2639340fJkPVu','XLNFE','ejXwy','图片信息','file','sep','toString','RPS','gif','dirname','mucvy'];_0x351b=function(){return _0x6b943c;};return _0x351b();}import{promises as _0x1ac955}from'node:fs';import _0xebb3d2 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';function _0x18e6(_0x32258a,_0x5c46c7){const _0x351bb4=_0x351b();return _0x18e6=function(_0x18e693,_0x540fe9){_0x18e693=_0x18e693-0xed;let _0x4105af=_0x351bb4[_0x18e693];return _0x4105af;},_0x18e6(_0x32258a,_0x5c46c7);}export class SendMsgElementConstructor{static[_0x5294ca(0x13f)](_0x20ecd2){const _0x360791=_0x5294ca;return{'elementType':ElementType[_0x360791(0x138)],'elementId':'','textElement':{'content':_0x20ecd2,'atType':AtType[_0x360791(0x139)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x52642d,_0x3f00a2,_0x4f0b79,_0x50d213){const _0x1e0cf0=_0x5294ca;return{'elementType':ElementType[_0x1e0cf0(0x138)],'elementId':'','textElement':{'content':'@'+_0x50d213,'atType':_0x4f0b79,'atUid':_0x52642d,'atTinyId':'','atNtUid':_0x3f00a2}};}static['reply'](_0x5e2854,_0x54d363,_0x55cbab,_0xc60292){return{'elementType':ElementType['REPLY'],'elementId':'','replyElement':{'replayMsgSeq':_0x5e2854,'replayMsgId':_0x54d363,'senderUin':_0x55cbab,'senderUinStr':_0xc60292}};}static async['pic'](_0x339774,_0x3636ef='',_0xd3e49c=0x0){const _0x4fd27c=_0x5294ca,_0x3f7189={'mucvy':function(_0x27a557,_0x2740a6){return _0x27a557===_0x2740a6;},'rcfhh':_0x4fd27c(0x13d),'jlJIe':function(_0x58eb69,_0x580c4c){return _0x58eb69(_0x580c4c);},'XLNFE':function(_0xbea493,_0x14fc17,_0x1abea2){return _0xbea493(_0x14fc17,_0x1abea2);}},{md5:_0x312b99,fileName:_0xa87643,path:_0x4586a9,fileSize:_0x107b2d}=await NTQQFileApi['uploadFile'](_0x339774,ElementType[_0x4fd27c(0x10f)],_0xd3e49c);if(_0x3f7189[_0x4fd27c(0x108)](_0x107b2d,0x0))throw _0x3f7189[_0x4fd27c(0x13b)];const _0x3d7c8b=await NTQQFileApi[_0x4fd27c(0x122)](_0x339774),_0x25325d={'md5HexStr':_0x312b99,'fileSize':_0x107b2d[_0x4fd27c(0x104)](),'picWidth':_0x3d7c8b?.[_0x4fd27c(0x117)],'picHeight':_0x3d7c8b?.[_0x4fd27c(0x137)],'fileName':_0xa87643,'sourcePath':_0x4586a9,'original':!![],'picType':_0x3f7189['jlJIe'](isGIF,_0x339774)?PicType[_0x4fd27c(0x106)]:PicType[_0x4fd27c(0xf4)],'picSubType':_0xd3e49c,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x3636ef};return _0x3f7189[_0x4fd27c(0xff)](logDebug,_0x4fd27c(0x101),_0x25325d),{'elementType':ElementType[_0x4fd27c(0x10f)],'elementId':'','picElement':_0x25325d};}static async[_0x5294ca(0x102)](_0x5bbb6a,_0x23dc64=''){const _0x49fd8b=_0x5294ca,_0x2dc23c={'KaaDl':function(_0x57d3a4,_0x2cd101){return _0x57d3a4||_0x2cd101;}},{md5:_0x88a9b8,fileName:_0x6e8e7a,path:_0x9ae96a,fileSize:_0x40ddbd}=await NTQQFileApi[_0x49fd8b(0x11e)](_0x5bbb6a,ElementType[_0x49fd8b(0x12d)]);if(_0x40ddbd===0x0)throw _0x49fd8b(0x13d);const _0x1004e7={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x2dc23c['KaaDl'](_0x23dc64,_0x6e8e7a),'filePath':_0x9ae96a,'fileSize':_0x40ddbd[_0x49fd8b(0x104)]()}};return _0x1004e7;}static async[_0x5294ca(0x123)](_0x5693e7,_0x29c2f8='',_0x5ae564=''){const _0x254cf4=_0x5294ca,_0x411d51={'LOHZz':function(_0x5f2f68,_0x3b60d8){return _0x5f2f68(_0x3b60d8);},'CGgjz':_0x254cf4(0xf6),'EEHHs':function(_0x38c522,_0x2ba941){return _0x38c522(_0x2ba941);},'dXWYb':_0x254cf4(0x11c),'jlleq':_0x254cf4(0xef),'BHYQr':function(_0x4bea7e,_0x7a6ce4){return _0x4bea7e+_0x7a6ce4;},'Hjwbk':function(_0xaf7ac0,_0x1c0413){return _0xaf7ac0===_0x1c0413;},'TcEmn':_0x254cf4(0x13d),'vfzxE':_0x254cf4(0xee),'ejXwy':_0x254cf4(0x13e),'iOhgo':function(_0x4e8aa6,_0x3730ae,_0x39cbc4){return _0x4e8aa6(_0x3730ae,_0x39cbc4);},'cLYMb':_0x254cf4(0x120)},{fileName:_0x23e46d,path:_0x46c7ae,fileSize:_0x3c905e,md5:_0x591f28}=await NTQQFileApi[_0x254cf4(0x11e)](_0x5693e7,ElementType[_0x254cf4(0x114)]);if(_0x411d51[_0x254cf4(0x10a)](_0x3c905e,0x0))throw _0x411d51[_0x254cf4(0xf0)];const _0x270fc6=_0x411d51[_0x254cf4(0x11b)](require,_0x411d51[_0x254cf4(0x136)]);let _0x1d83f5=_0x46c7ae[_0x254cf4(0x113)](_0x270fc6[_0x254cf4(0x103)]+_0x254cf4(0x10e)+_0x270fc6[_0x254cf4(0x103)],_0x270fc6[_0x254cf4(0x103)]+_0x254cf4(0x11d)+_0x270fc6['sep']);_0x1d83f5=_0x270fc6[_0x254cf4(0x107)](_0x1d83f5);let _0x55aaea={'width':0x780,'height':0x438,'time':0xf,'format':_0x411d51[_0x254cf4(0x100)],'size':_0x3c905e,'filePath':_0x5693e7};try{_0x55aaea=await _0x411d51[_0x254cf4(0x12f)](getVideoInfo,_0x46c7ae),_0x411d51[_0x254cf4(0xf7)](logDebug,_0x254cf4(0x130),_0x55aaea);}catch(_0x4b6f2f){_0x411d51[_0x254cf4(0xf7)](logError,_0x411d51[_0x254cf4(0x12c)],_0x4b6f2f);}const _0x4cd681=new Promise((_0x3701e1,_0x5f2fce)=>{const _0x2e7932=_0x254cf4,_0x355e91={'JrFvM':function(_0x2b180d,_0x2c042d){const _0x58cdf5=_0x18e6;return _0x411d51[_0x58cdf5(0x11b)](_0x2b180d,_0x2c042d);}},_0x59736a=_0x591f28+_0x2e7932(0xf5),_0x1f967d=_0x270fc6[_0x2e7932(0x125)](_0x1d83f5,_0x59736a);_0x411d51[_0x2e7932(0x12f)](_0xebb3d2,_0x5693e7)['on'](_0x411d51[_0x2e7932(0x121)],()=>{})['on'](_0x411d51[_0x2e7932(0x135)],_0x59ead4=>{const _0x40ad1c=_0x2e7932,_0x29d7d0={'vzOqM':function(_0x229bf5,_0xaa812c){const _0x307544=_0x18e6;return _0x411d51[_0x307544(0x11b)](_0x229bf5,_0xaa812c);}};logDebug(_0x411d51[_0x40ad1c(0x111)],_0x59ead4),_0x5ae564?_0x1ac955[_0x40ad1c(0x129)](_0x5ae564,_0x1f967d)['then'](()=>{const _0x1211a1=_0x40ad1c;_0x29d7d0[_0x1211a1(0x131)](_0x3701e1,_0x1f967d);})[_0x40ad1c(0x12e)](_0x5f2fce):_0x1ac955[_0x40ad1c(0xf8)](_0x1f967d,defaultVideoThumb)['then'](()=>{const _0x391c48=_0x40ad1c;_0x29d7d0[_0x391c48(0x131)](_0x3701e1,_0x1f967d);})[_0x40ad1c(0x12e)](_0x5f2fce);})[_0x2e7932(0xf9)]({'timestamps':[0x0],'filename':_0x59736a,'folder':_0x1d83f5,'size':_0x411d51[_0x2e7932(0x110)](_0x55aaea['width']+'x',_0x55aaea[_0x2e7932(0x137)])})['on'](_0x411d51[_0x2e7932(0x121)],()=>{const _0x51dd87=_0x2e7932;_0x355e91[_0x51dd87(0xed)](_0x3701e1,_0x1f967d);});}),_0x10848d=new Map(),_0x1ee739=await _0x4cd681,_0xf7560a=(await _0x1ac955['stat'](_0x1ee739))['size'];_0x10848d[_0x254cf4(0xfd)](0x0,_0x1ee739);const _0x5a88cc=await calculateFileMD5(_0x1ee739),_0x4cb28e={'elementType':ElementType[_0x254cf4(0x114)],'elementId':'','videoElement':{'fileName':_0x29c2f8||_0x23e46d,'filePath':_0x46c7ae,'videoMd5':_0x591f28,'thumbMd5':_0x5a88cc,'fileTime':_0x55aaea[_0x254cf4(0x10c)],'thumbPath':_0x10848d,'thumbSize':_0xf7560a,'thumbWidth':_0x55aaea['width'],'thumbHeight':_0x55aaea['height'],'fileSize':''+_0x3c905e}};return _0x4cb28e;}static async[_0x5294ca(0xf3)](_0x4ce23c){const _0x6f09f1=_0x5294ca,_0x5c6b67={'AfzYK':function(_0x2dc061,_0x2a666f){return _0x2dc061(_0x2a666f);},'HxICh':_0x6f09f1(0x11f),'coJQO':function(_0x629cd1,_0x419a4e){return _0x629cd1===_0x419a4e;},'aiYXW':_0x6f09f1(0x13d)},{converted:_0x5bcf30,path:_0x53fc3b,duration:_0x118c67}=await _0x5c6b67[_0x6f09f1(0x10d)](encodeSilk,_0x4ce23c);if(!_0x53fc3b)throw _0x5c6b67['HxICh'];const {md5:_0x33bab4,fileName:_0x323d51,path:_0x1d2af8,fileSize:_0x421e14}=await NTQQFileApi[_0x6f09f1(0x11e)](_0x53fc3b,ElementType[_0x6f09f1(0x116)]);if(_0x5c6b67[_0x6f09f1(0x12b)](_0x421e14,0x0))throw _0x5c6b67['aiYXW'];return _0x5bcf30&&_0x1ac955['unlink'](_0x53fc3b)[_0x6f09f1(0x128)](),{'elementType':ElementType[_0x6f09f1(0x116)],'elementId':'','pttElement':{'fileName':_0x323d51,'filePath':_0x1d2af8,'md5HexStr':_0x33bab4,'fileSize':_0x421e14,'duration':_0x118c67||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[_0x5294ca(0x12a)](_0x1bf5f5){const _0x2921d1=_0x5294ca;return{'elementType':ElementType[_0x2921d1(0x119)],'elementId':'','faceElement':{'faceIndex':_0x1bf5f5,'faceType':_0x1bf5f5<0xde?FaceType[_0x2921d1(0x124)]:FaceType[_0x2921d1(0x126)]}};}static[_0x5294ca(0xfc)](_0x525fa0){const _0x1ab916=_0x5294ca,_0x286f4e={'aoQJA':_0x1ab916(0xfa)};return{'elementType':ElementType[_0x1ab916(0x119)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x1ab916(0xfc)],'faceType':FaceType[_0x1ab916(0xfc)],'faceText':_0x286f4e[_0x1ab916(0x133)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x1264c2){const _0x1956bc=_0x5294ca,_0x5b3936={'snNjF':'[包剪锤]'};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x1956bc(0x105)],'faceText':_0x5b3936[_0x1956bc(0xf1)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x5294ca(0x140)](_0x2f0741){const _0xe0c16b=_0x5294ca,_0x536daa={'NskSF':function(_0x3e4aeb,_0x4bc036){return _0x3e4aeb!==_0x4bc036;},'zzfOx':_0xe0c16b(0xf2)};return _0x536daa['NskSF'](typeof _0x2f0741,_0x536daa['zzfOx'])&&(_0x2f0741=JSON[_0xe0c16b(0x13c)](_0x2f0741)),{'elementType':ElementType['ARK'],'elementId':'','arkElement':{'bytesData':_0x2f0741,'linkInfo':null,'subElementType':null}};}static[_0x5294ca(0x115)](_0x1e9934){const _0xce017d=_0x5294ca;return{'elementType':ElementType[_0xce017d(0x13a)],'elementId':'','markdownElement':{'content':_0x1e9934}};}} \ No newline at end of file +const _0x3b7f0c=_0x13eb;(function(_0x150985,_0x372471){const _0x47bedf=_0x13eb,_0x5a7129=_0x150985();while(!![]){try{const _0x3eefc2=-parseInt(_0x47bedf(0x154))/0x1*(-parseInt(_0x47bedf(0x15b))/0x2)+-parseInt(_0x47bedf(0x17a))/0x3+parseInt(_0x47bedf(0x199))/0x4*(parseInt(_0x47bedf(0x171))/0x5)+parseInt(_0x47bedf(0x173))/0x6+parseInt(_0x47bedf(0x16e))/0x7*(parseInt(_0x47bedf(0x18a))/0x8)+-parseInt(_0x47bedf(0x186))/0x9*(-parseInt(_0x47bedf(0x14f))/0xa)+-parseInt(_0x47bedf(0x162))/0xb*(parseInt(_0x47bedf(0x159))/0xc);if(_0x3eefc2===_0x372471)break;else _0x5a7129['push'](_0x5a7129['shift']());}catch(_0x4e0819){_0x5a7129['push'](_0x5a7129['shift']());}}}(_0x114c,0x8b7a8));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x38468f}from'node:fs';import _0xd8c793 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';function _0x13eb(_0x152362,_0x37be38){const _0x114ca5=_0x114c();return _0x13eb=function(_0x13ebda,_0x5dd08b){_0x13ebda=_0x13ebda-0x148;let _0x1153c2=_0x114ca5[_0x13ebda];return _0x1153c2;},_0x13eb(_0x152362,_0x37be38);}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';function _0x114c(){const _0xa048c=['yYTQF','MnQus','ark','9281295yyfbrt','[骰子]','stringify','wfwlC','8NvPoyg','pic','aHFyr','end','width','hehwW','PTT','fFDNG','height','set','stat','gif','join','string','vHjRn','768FUulvG','SsNra','图片信息','mp4','获取视频封面失败,使用默认封面','replace','视频信息','ttHFb','_0.png','copyFile','[包剪锤]','video','VIDEO','jpg','text','jvYOp','vqTjC','10ryLEug','rps','tAMZa','reply','TEXT','262792HreiDB','FACE','Hiiqs','YCcsW','获取视频信息失败','84jRriZp','FILE','8YGZoQy','文件异常,大小为0','LgJKJ','Ori','语音转换失败,\x20请检查语音文件是否正常','ZAmXZ','VGFpc','5660853uNRnyI','normal2','toString','PIC','uploadFile','SxyGa','markdown','path','XUvcP','notAt','usriY','dirname','4470067OqMqDO','oWzhQ','MARKDOWN','20260kTNQKc','qbsQQ','6248556ctJgMV','pdnHP','dice','sep','ARK','then','SIXnU','1100247hGbbNg','unlink','REPLY','catch','error','file','cFuPt','face','time'];_0x114c=function(){return _0xa048c;};return _0x114c();}export class SendMsgElementConstructor{static[_0x3b7f0c(0x14c)](_0x470b9f){const _0x4a140f=_0x3b7f0c;return{'elementType':ElementType[_0x4a140f(0x153)],'elementId':'','textElement':{'content':_0x470b9f,'atType':AtType[_0x4a140f(0x16b)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x10ffea,_0x29bd85,_0x468cb6,_0xa3453){const _0xa03067=_0x3b7f0c;return{'elementType':ElementType[_0xa03067(0x153)],'elementId':'','textElement':{'content':'@'+_0xa3453,'atType':_0x468cb6,'atUid':_0x10ffea,'atTinyId':'','atNtUid':_0x29bd85}};}static[_0x3b7f0c(0x152)](_0x3563fa,_0x447b5e,_0x45a650,_0x4986e1){const _0x2778a4=_0x3b7f0c;return{'elementType':ElementType[_0x2778a4(0x17c)],'elementId':'','replyElement':{'replayMsgSeq':_0x3563fa,'replayMsgId':_0x447b5e,'senderUin':_0x45a650,'senderUinStr':_0x4986e1}};}static async[_0x3b7f0c(0x18b)](_0x1fb64e,_0x2e75ee='',_0x4d7a0b=0x0){const _0x1e3598=_0x3b7f0c,_0x580005={'Wfdsh':function(_0x4cefff,_0x31a77a){return _0x4cefff===_0x31a77a;},'tAMZa':_0x1e3598(0x15c),'ZAmXZ':function(_0xd63dfa,_0x3d1d03,_0x57a41f){return _0xd63dfa(_0x3d1d03,_0x57a41f);},'MnQus':_0x1e3598(0x19b)},{md5:_0x21296e,fileName:_0x1737ee,path:_0x1755ad,fileSize:_0x6ebfe}=await NTQQFileApi['uploadFile'](_0x1fb64e,ElementType[_0x1e3598(0x165)],_0x4d7a0b);if(_0x580005['Wfdsh'](_0x6ebfe,0x0))throw _0x580005[_0x1e3598(0x151)];const _0x1f2916=await NTQQFileApi['getImageSize'](_0x1fb64e),_0x506de7={'md5HexStr':_0x21296e,'fileSize':_0x6ebfe[_0x1e3598(0x164)](),'picWidth':_0x1f2916?.[_0x1e3598(0x18e)],'picHeight':_0x1f2916?.[_0x1e3598(0x192)],'fileName':_0x1737ee,'sourcePath':_0x1755ad,'original':!![],'picType':isGIF(_0x1fb64e)?PicType[_0x1e3598(0x195)]:PicType[_0x1e3598(0x14b)],'picSubType':_0x4d7a0b,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x2e75ee};return _0x580005[_0x1e3598(0x160)](logDebug,_0x580005[_0x1e3598(0x184)],_0x506de7),{'elementType':ElementType[_0x1e3598(0x165)],'elementId':'','picElement':_0x506de7};}static async[_0x3b7f0c(0x17f)](_0x2df02d,_0x3027ab=''){const _0xfc67a4=_0x3b7f0c,_0x24737f={'KBoFH':function(_0x2ac416,_0x4c68c1){return _0x2ac416===_0x4c68c1;},'Hiiqs':_0xfc67a4(0x15c),'SsNra':function(_0x4de403,_0x35890f){return _0x4de403||_0x35890f;}},{md5:_0x4848aa,fileName:_0x4d4b80,path:_0x5b68c3,fileSize:_0x50b5a7}=await NTQQFileApi[_0xfc67a4(0x166)](_0x2df02d,ElementType['FILE']);if(_0x24737f['KBoFH'](_0x50b5a7,0x0))throw _0x24737f[_0xfc67a4(0x156)];const _0xafe858={'elementType':ElementType[_0xfc67a4(0x15a)],'elementId':'','fileElement':{'fileName':_0x24737f[_0xfc67a4(0x19a)](_0x3027ab,_0x4d4b80),'filePath':_0x5b68c3,'fileSize':_0x50b5a7['toString']()}};return _0xafe858;}static async[_0x3b7f0c(0x149)](_0x3bc7e0,_0x33fddf='',_0x2f3d12=''){const _0x1137a4=_0x3b7f0c,_0x3815b4={'kpZNg':function(_0x50bd55,_0x3ffb4e){return _0x50bd55(_0x3ffb4e);},'pdnHP':function(_0x13acee,_0x2f6cc5){return _0x13acee(_0x2f6cc5);},'ovYHf':function(_0x79df68,_0xac5cb8,_0x3c604a){return _0x79df68(_0xac5cb8,_0x3c604a);},'cFuPt':_0x1137a4(0x19d),'yYTQF':_0x1137a4(0x18d),'Txnks':_0x1137a4(0x17e),'vcSxz':function(_0x3ee3b7,_0x32910c){return _0x3ee3b7+_0x32910c;},'qbsQQ':function(_0x4feabd,_0x5ef611){return _0x4feabd+_0x5ef611;},'SxyGa':_0x1137a4(0x15c),'XUvcP':function(_0x40c950,_0x5e24e1){return _0x40c950(_0x5e24e1);},'fFDNG':_0x1137a4(0x169),'oWzhQ':_0x1137a4(0x19c),'wfwlC':function(_0x408ca1,_0x4cf2eb,_0x5572ff){return _0x408ca1(_0x4cf2eb,_0x5572ff);},'jvYOp':_0x1137a4(0x19f),'WSnRs':_0x1137a4(0x158),'Qfndo':function(_0x208566,_0x5ccd5c){return _0x208566||_0x5ccd5c;},'usriY':function(_0x2a3b89,_0x2f9e46){return _0x2a3b89+_0x2f9e46;}},{fileName:_0xc0a333,path:_0x21e391,fileSize:_0x50cb31,md5:_0x2fc696}=await NTQQFileApi[_0x1137a4(0x166)](_0x3bc7e0,ElementType[_0x1137a4(0x14a)]);if(_0x50cb31===0x0)throw _0x3815b4[_0x1137a4(0x167)];const _0x36092d=_0x3815b4[_0x1137a4(0x16a)](require,_0x3815b4[_0x1137a4(0x191)]);let _0x47a45d=_0x21e391[_0x1137a4(0x19e)](_0x36092d[_0x1137a4(0x176)]+_0x1137a4(0x15e)+_0x36092d[_0x1137a4(0x176)],_0x36092d['sep']+'Thumb'+_0x36092d['sep']);_0x47a45d=_0x36092d[_0x1137a4(0x16d)](_0x47a45d);let _0x55060f={'width':0x780,'height':0x438,'time':0xf,'format':_0x3815b4[_0x1137a4(0x16f)],'size':_0x50cb31,'filePath':_0x3bc7e0};try{_0x55060f=await _0x3815b4[_0x1137a4(0x16a)](getVideoInfo,_0x21e391),_0x3815b4[_0x1137a4(0x189)](logDebug,_0x3815b4[_0x1137a4(0x14d)],_0x55060f);}catch(_0x20bc95){logError(_0x3815b4['WSnRs'],_0x20bc95);}const _0x2777ef=new Promise((_0x1164a9,_0x57220b)=>{const _0x444927=_0x1137a4,_0x4f806f={'vqTjC':function(_0xe88a62,_0x43bc40){const _0x3a4534=_0x13eb;return _0x3815b4[_0x3a4534(0x174)](_0xe88a62,_0x43bc40);},'LgJKJ':function(_0x56dd57,_0x1d1228){return _0x56dd57(_0x1d1228);},'VGFpc':function(_0x1ef84c,_0x1a7a47,_0x467212){return _0x3815b4['ovYHf'](_0x1ef84c,_0x1a7a47,_0x467212);},'zSQzG':_0x3815b4[_0x444927(0x180)]},_0x4d87c6=_0x2fc696+_0x444927(0x1a1),_0x1b01fd=_0x36092d[_0x444927(0x196)](_0x47a45d,_0x4d87c6);_0x3815b4['kpZNg'](_0xd8c793,_0x3bc7e0)['on'](_0x3815b4[_0x444927(0x183)],()=>{})['on'](_0x3815b4['Txnks'],_0xc48625=>{const _0x128c7e=_0x444927,_0x18c1f6={'hehwW':function(_0x302b6d,_0x40f8e5){const _0x424e5e=_0x13eb;return _0x4f806f[_0x424e5e(0x15d)](_0x302b6d,_0x40f8e5);}};_0x4f806f[_0x128c7e(0x161)](logDebug,_0x4f806f['zSQzG'],_0xc48625),_0x2f3d12?_0x38468f[_0x128c7e(0x1a2)](_0x2f3d12,_0x1b01fd)[_0x128c7e(0x178)](()=>{const _0x328935=_0x128c7e;_0x4f806f[_0x328935(0x14e)](_0x1164a9,_0x1b01fd);})['catch'](_0x57220b):_0x38468f['writeFile'](_0x1b01fd,defaultVideoThumb)[_0x128c7e(0x178)](()=>{const _0x31ecbf=_0x128c7e;_0x18c1f6[_0x31ecbf(0x18f)](_0x1164a9,_0x1b01fd);})[_0x128c7e(0x17d)](_0x57220b);})['screenshots']({'timestamps':[0x0],'filename':_0x4d87c6,'folder':_0x47a45d,'size':_0x3815b4['vcSxz'](_0x3815b4[_0x444927(0x172)](_0x55060f[_0x444927(0x18e)],'x'),_0x55060f[_0x444927(0x192)])})['on'](_0x3815b4[_0x444927(0x183)],()=>{_0x3815b4['kpZNg'](_0x1164a9,_0x1b01fd);});}),_0x98b530=new Map(),_0x32a76d=await _0x2777ef,_0x57e472=(await _0x38468f[_0x1137a4(0x194)](_0x32a76d))['size'];_0x98b530[_0x1137a4(0x193)](0x0,_0x32a76d);const _0x2cded6=await calculateFileMD5(_0x32a76d),_0x3a70ea={'elementType':ElementType[_0x1137a4(0x14a)],'elementId':'','videoElement':{'fileName':_0x3815b4['Qfndo'](_0x33fddf,_0xc0a333),'filePath':_0x21e391,'videoMd5':_0x2fc696,'thumbMd5':_0x2cded6,'fileTime':_0x55060f[_0x1137a4(0x182)],'thumbPath':_0x98b530,'thumbSize':_0x57e472,'thumbWidth':_0x55060f['width'],'thumbHeight':_0x55060f['height'],'fileSize':_0x3815b4[_0x1137a4(0x16c)]('',_0x50cb31)}};return _0x3a70ea;}static async['ptt'](_0x9d9222){const _0x4527d4=_0x3b7f0c,_0x23b980={'SIXnU':function(_0x2d2fd0,_0x6ddb38){return _0x2d2fd0(_0x6ddb38);},'ttHFb':_0x4527d4(0x15f),'vHjRn':function(_0x373bed,_0x971c9a){return _0x373bed||_0x971c9a;}},{converted:_0x4c874b,path:_0x278ef3,duration:_0x8a4165}=await _0x23b980[_0x4527d4(0x179)](encodeSilk,_0x9d9222);if(!_0x278ef3)throw _0x23b980[_0x4527d4(0x1a0)];const {md5:_0x25e700,fileName:_0x7cac24,path:_0x5b0124,fileSize:_0x1eb690}=await NTQQFileApi[_0x4527d4(0x166)](_0x278ef3,ElementType[_0x4527d4(0x190)]);if(_0x1eb690===0x0)throw _0x4527d4(0x15c);return _0x4c874b&&_0x38468f[_0x4527d4(0x17b)](_0x278ef3)[_0x4527d4(0x178)](),{'elementType':ElementType['PTT'],'elementId':'','pttElement':{'fileName':_0x7cac24,'filePath':_0x5b0124,'md5HexStr':_0x25e700,'fileSize':_0x1eb690,'duration':_0x23b980[_0x4527d4(0x198)](_0x8a4165,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[_0x3b7f0c(0x181)](_0x177290){const _0x5235be=_0x3b7f0c,_0x3ac4e5={'aHFyr':function(_0x1cdabb,_0x23daa1){return _0x1cdabb<_0x23daa1;}};return{'elementType':ElementType[_0x5235be(0x155)],'elementId':'','faceElement':{'faceIndex':_0x177290,'faceType':_0x3ac4e5[_0x5235be(0x18c)](_0x177290,0xde)?FaceType['normal']:FaceType[_0x5235be(0x163)]}};}static[_0x3b7f0c(0x175)](_0x5b5e16){const _0xc3219a=_0x3b7f0c;return{'elementType':ElementType[_0xc3219a(0x155)],'elementId':'','faceElement':{'faceIndex':FaceIndex['dice'],'faceType':FaceType[_0xc3219a(0x175)],'faceText':_0xc3219a(0x187),'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x3b7f0c(0x150)](_0x10d04a){const _0x5bbb1b=_0x3b7f0c,_0x3b5565={'YCcsW':_0x5bbb1b(0x148)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex['RPS'],'faceText':_0x3b5565[_0x5bbb1b(0x157)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x3b7f0c(0x185)](_0xb8a31a){const _0x628ab7=_0x3b7f0c;return typeof _0xb8a31a!==_0x628ab7(0x197)&&(_0xb8a31a=JSON[_0x628ab7(0x188)](_0xb8a31a)),{'elementType':ElementType[_0x628ab7(0x177)],'elementId':'','arkElement':{'bytesData':_0xb8a31a,'linkInfo':null,'subElementType':null}};}static[_0x3b7f0c(0x168)](_0xa03120){const _0xf76118=_0x3b7f0c;return{'elementType':ElementType[_0xf76118(0x170)],'elementId':'','markdownElement':{'content':_0xa03120}};}} \ 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 95d39779..1ee157e6 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -(function(_0x386120,_0x105f2b){var _0x34ddc1=_0x2238,_0x29bd56=_0x386120();while(!![]){try{var _0x529ddc=-parseInt(_0x34ddc1(0x12b))/0x1*(parseInt(_0x34ddc1(0x130))/0x2)+-parseInt(_0x34ddc1(0x129))/0x3+parseInt(_0x34ddc1(0x12a))/0x4+parseInt(_0x34ddc1(0x127))/0x5+-parseInt(_0x34ddc1(0x12e))/0x6*(parseInt(_0x34ddc1(0x128))/0x7)+parseInt(_0x34ddc1(0x12c))/0x8+parseInt(_0x34ddc1(0x131))/0x9;if(_0x529ddc===_0x105f2b)break;else _0x29bd56['push'](_0x29bd56['shift']());}catch(_0x27152c){_0x29bd56['push'](_0x29bd56['shift']());}}}(_0x45dc,0x3935c));export var GroupMemberRole;function _0x45dc(){var _0x166830=['110XezFKI','1361700OaksNf','normal','admin','HiLQR','1463780exYTfY','2343607gPcgho','351828RnNnVy','1275448NjsIDS','7405oACyJm','2646128KvPQax','ylhwz','6VpgXMQ','owner'];_0x45dc=function(){return _0x166830;};return _0x45dc();}function _0x2238(_0x3186f8,_0x3b4202){var _0x45dce4=_0x45dc();return _0x2238=function(_0x22382a,_0x4828f0){_0x22382a=_0x22382a-0x125;var _0x3ce346=_0x45dce4[_0x22382a];return _0x3ce346;},_0x2238(_0x3186f8,_0x3b4202);}(function(_0x32c10b){var _0x28ab73=_0x2238,_0x4f3ac8={'HiLQR':_0x28ab73(0x132),'YxmHs':_0x28ab73(0x125),'ylhwz':_0x28ab73(0x12f)};_0x32c10b[_0x32c10b[_0x4f3ac8[_0x28ab73(0x126)]]=0x2]=_0x4f3ac8['HiLQR'],_0x32c10b[_0x32c10b['admin']=0x3]=_0x4f3ac8['YxmHs'],_0x32c10b[_0x32c10b[_0x4f3ac8[_0x28ab73(0x12d)]]=0x4]=_0x4f3ac8['ylhwz'];}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +(function(_0x3f07dd,_0x81e067){var _0x495735=_0x1058,_0x3e5138=_0x3f07dd();while(!![]){try{var _0x149fca=parseInt(_0x495735(0x18b))/0x1+-parseInt(_0x495735(0x181))/0x2*(parseInt(_0x495735(0x186))/0x3)+parseInt(_0x495735(0x184))/0x4*(parseInt(_0x495735(0x17f))/0x5)+-parseInt(_0x495735(0x18c))/0x6*(-parseInt(_0x495735(0x18e))/0x7)+parseInt(_0x495735(0x187))/0x8+parseInt(_0x495735(0x182))/0x9*(-parseInt(_0x495735(0x18d))/0xa)+parseInt(_0x495735(0x18f))/0xb*(-parseInt(_0x495735(0x190))/0xc);if(_0x149fca===_0x81e067)break;else _0x3e5138['push'](_0x3e5138['shift']());}catch(_0x6b2f){_0x3e5138['push'](_0x3e5138['shift']());}}}(_0x17e1,0x8beca));function _0x1058(_0x35c486,_0x32c53f){var _0x17e17b=_0x17e1();return _0x1058=function(_0x105802,_0x3a1755){_0x105802=_0x105802-0x17f;var _0x34b1f0=_0x17e17b[_0x105802];return _0x34b1f0;},_0x1058(_0x35c486,_0x32c53f);}export var GroupMemberRole;(function(_0x2fb345){var _0x4e7b28=_0x1058,_0x2f4622={'pSfcY':_0x4e7b28(0x18a),'uylpJ':'admin','sCDKt':_0x4e7b28(0x189)};_0x2fb345[_0x2fb345[_0x2f4622[_0x4e7b28(0x185)]]=0x2]=_0x4e7b28(0x18a),_0x2fb345[_0x2fb345[_0x4e7b28(0x188)]=0x3]=_0x2f4622[_0x4e7b28(0x183)],_0x2fb345[_0x2fb345[_0x2f4622['sCDKt']]=0x4]=_0x2f4622[_0x4e7b28(0x180)];}(GroupMemberRole||(GroupMemberRole={})));function _0x17e1(){var _0x48a85f=['236667CuUxMr','601504HDGIrk','admin','owner','normal','103387XTUiTu','66aFMcjD','6307010OfRlba','474607ZPQfco','898447QTdmzU','72FPGlsa','5NQWuoo','sCDKt','6gxnNQe','9ZRLvrE','uylpJ','4024696DucioX','pSfcY'];_0x17e1=function(){return _0x48a85f;};return _0x17e1();} \ 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 b57e9000..6fd0352b 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x22ecf0,_0x5723c8){var _0x2f3ff3=_0x4d87,_0x2c7a01=_0x22ecf0();while(!![]){try{var _0x1ea440=parseInt(_0x2f3ff3(0x131))/0x1+parseInt(_0x2f3ff3(0x135))/0x2*(-parseInt(_0x2f3ff3(0x12f))/0x3)+-parseInt(_0x2f3ff3(0x132))/0x4+-parseInt(_0x2f3ff3(0x12d))/0x5*(-parseInt(_0x2f3ff3(0x133))/0x6)+parseInt(_0x2f3ff3(0x134))/0x7+-parseInt(_0x2f3ff3(0x130))/0x8+parseInt(_0x2f3ff3(0x12e))/0x9;if(_0x1ea440===_0x5723c8)break;else _0x2c7a01['push'](_0x2c7a01['shift']());}catch(_0x1fb045){_0x2c7a01['push'](_0x2c7a01['shift']());}}}(_0x30a5,0xb2f7d));export*from'./user';export*from'./group';function _0x4d87(_0x14e701,_0xdf7e2d){var _0x30a535=_0x30a5();return _0x4d87=function(_0x4d878d,_0x2ae83e){_0x4d878d=_0x4d878d-0x12d;var _0x41fe5c=_0x30a535[_0x4d878d];return _0x41fe5c;},_0x4d87(_0x14e701,_0xdf7e2d);}export*from'./msg';export*from'./notify';function _0x30a5(){var _0x2cba56=['372695gSjshJ','3499904FjeFcW','24eLJvmC','3694320RVjEAy','49332qqDKXp','1003965gulMNN','6053040LeRZpj','84BKSHah','620080ThaSgX'];_0x30a5=function(){return _0x2cba56;};return _0x30a5();}export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x4c9883,_0x377983){var _0x1998a7=_0x1364,_0x3c4b13=_0x4c9883();while(!![]){try{var _0x2ecbfe=parseInt(_0x1998a7(0xdf))/0x1*(parseInt(_0x1998a7(0xe9))/0x2)+parseInt(_0x1998a7(0xe8))/0x3*(parseInt(_0x1998a7(0xe5))/0x4)+parseInt(_0x1998a7(0xe7))/0x5+-parseInt(_0x1998a7(0xea))/0x6*(parseInt(_0x1998a7(0xe0))/0x7)+-parseInt(_0x1998a7(0xe4))/0x8*(-parseInt(_0x1998a7(0xe1))/0x9)+-parseInt(_0x1998a7(0xe6))/0xa+parseInt(_0x1998a7(0xe2))/0xb*(-parseInt(_0x1998a7(0xe3))/0xc);if(_0x2ecbfe===_0x377983)break;else _0x3c4b13['push'](_0x3c4b13['shift']());}catch(_0x280283){_0x3c4b13['push'](_0x3c4b13['shift']());}}}(_0x1230,0x8f979));export*from'./user';export*from'./group';export*from'./msg';function _0x1230(){var _0xe801be=['4181752GkLxsO','8eprNXl','2772270aYPMZB','3536505ijuhEd','1344837hLsfRy','2eRQjul','3296526YOSlsy','1027819hYUyDZ','7UrNtzK','9IJqNKq','11GTVcAi','20875152OPFXWh'];_0x1230=function(){return _0xe801be;};return _0x1230();}export*from'./notify';function _0x1364(_0x40726b,_0x481c12){var _0x1230e9=_0x1230();return _0x1364=function(_0x1364e4,_0x51cdbb){_0x1364e4=_0x1364e4-0xdf;var _0x296f69=_0x1230e9[_0x1364e4];return _0x296f69;},_0x1364(_0x40726b,_0x481c12);}export*from'./cache';export*from'./constructor'; \ No newline at end of file diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index 2d03d9df..7bb2329d 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0xce2357=_0x1a72;(function(_0x5e88f0,_0x35801e){var _0x25ad22=_0x1a72,_0xdb4056=_0x5e88f0();while(!![]){try{var _0x4f1d36=-parseInt(_0x25ad22(0x12a))/0x1+parseInt(_0x25ad22(0x123))/0x2+parseInt(_0x25ad22(0x112))/0x3+parseInt(_0x25ad22(0x11c))/0x4*(parseInt(_0x25ad22(0xfd))/0x5)+-parseInt(_0x25ad22(0x12c))/0x6*(parseInt(_0x25ad22(0x104))/0x7)+-parseInt(_0x25ad22(0x10a))/0x8*(parseInt(_0x25ad22(0x117))/0x9)+-parseInt(_0x25ad22(0x118))/0xa;if(_0x4f1d36===_0x35801e)break;else _0xdb4056['push'](_0xdb4056['shift']());}catch(_0x2bac0c){_0xdb4056['push'](_0xdb4056['shift']());}}}(_0x4a4c,0x18a27));export var ElementType;function _0x4a4c(){var _0x34840a=['BGYup','KFvKO','memberIncrease','49gecEJr','RLocV','SrHFV','FACE','HCvBf','split','72khfjri','normal','5|1|8|0|2|4|3|7|6','xoQAa','PGKYt','https://multimedia.nt.qq.com.cn','face','temp','30123bSMmRI','MARKDOWN','JVuBy','SBJVQ','atAll','981QcGLHj','271270MWQGuf','kicked','group','RkTnS','16njmVtv','Rnmfq','LsxYe','normal2','TEXT','ARK','atUser','231836dGWrWg','PIC','xEMDJ','VIDEO','jpg','lQvnR','gif','156411kNcmxp','WNxfJ','29994BJsUoy','wQfNL','VVNwm','INVITE_NEW_MEMBER','QSQCp','IvJmf','RPS','QAkch','REPLY','MEMBER_NEW_TITLE','243070CLOtGO','PTT','dice','ban'];_0x4a4c=function(){return _0x34840a;};return _0x4a4c();}(function(_0x302443){var _0x58247a=_0x1a72,_0x288c22={'jysOk':_0x58247a(0x10c),'RLocV':'PTT','SBJVQ':'PIC','xoQAa':_0x58247a(0x126),'KFvKO':_0x58247a(0x134),'mzAOS':_0x58247a(0x120),'DCDdu':_0x58247a(0x113),'DDhsg':_0x58247a(0x121),'PGKYt':'FILE'},_0x1011ec=_0x288c22['jysOk'][_0x58247a(0x109)]('|'),_0x536d99=0x0;while(!![]){switch(_0x1011ec[_0x536d99++]){case'0':_0x302443[_0x302443[_0x288c22[_0x58247a(0x105)]]=0x4]=_0x58247a(0xfe);continue;case'1':_0x302443[_0x302443[_0x288c22[_0x58247a(0x115)]]=0x2]=_0x58247a(0x124);continue;case'2':_0x302443[_0x302443[_0x288c22[_0x58247a(0x10d)]]=0x5]=_0x288c22[_0x58247a(0x10d)];continue;case'3':_0x302443[_0x302443[_0x288c22[_0x58247a(0x102)]]=0x7]=_0x288c22['KFvKO'];continue;case'4':_0x302443[_0x302443[_0x58247a(0x107)]=0x6]='FACE';continue;case'5':_0x302443[_0x302443[_0x288c22['mzAOS']]=0x1]='TEXT';continue;case'6':_0x302443[_0x302443[_0x288c22['DCDdu']]=0xe]=_0x288c22['DCDdu'];continue;case'7':_0x302443[_0x302443[_0x288c22['DDhsg']]=0xa]=_0x58247a(0x121);continue;case'8':_0x302443[_0x302443[_0x288c22[_0x58247a(0x10e)]]=0x3]=_0x288c22[_0x58247a(0x10e)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x383da1){var _0x2448a6=_0x1a72,_0x4e7d29={'IvJmf':_0x2448a6(0x129),'WNxfJ':_0x2448a6(0x127)};_0x383da1[_0x383da1[_0x4e7d29['IvJmf']]=0x7d0]=_0x4e7d29[_0x2448a6(0x131)],_0x383da1[_0x383da1[_0x2448a6(0x127)]=0x3e8]=_0x4e7d29[_0x2448a6(0x12b)];}(PicType||(PicType={})));export var PicSubType;(function(_0x57d711){var _0x388391=_0x1a72,_0x599ecd={'xEMDJ':_0x388391(0x10b),'eELRU':_0x388391(0x110)};_0x57d711[_0x57d711[_0x599ecd[_0x388391(0x125)]]=0x0]=_0x599ecd[_0x388391(0x125)],_0x57d711[_0x57d711[_0x599ecd['eELRU']]=0x1]='face';}(PicSubType||(PicSubType={})));export var AtType;(function(_0x1a64a4){var _0x1e0bd1=_0x1a72,_0x2f0448={'Rnmfq':'notAt','QVmmh':_0x1e0bd1(0x122)};_0x1a64a4[_0x1a64a4[_0x2f0448[_0x1e0bd1(0x11d)]]=0x0]=_0x2f0448[_0x1e0bd1(0x11d)],_0x1a64a4[_0x1a64a4['atAll']=0x1]=_0x1e0bd1(0x116),_0x1a64a4[_0x1a64a4[_0x1e0bd1(0x122)]=0x2]=_0x2f0448['QVmmh'];}(AtType||(AtType={})));export var ChatType;(function(_0x3c8465){var _0x2471a0=_0x1a72,_0x16ecd5={'JVuBy':'friend','RkTnS':_0x2471a0(0x11a),'BGYup':_0x2471a0(0x111)};_0x3c8465[_0x3c8465[_0x16ecd5[_0x2471a0(0x114)]]=0x1]='friend',_0x3c8465[_0x3c8465[_0x16ecd5['RkTnS']]=0x2]=_0x16ecd5[_0x2471a0(0x11b)],_0x3c8465[_0x3c8465['temp']=0x64]=_0x16ecd5[_0x2471a0(0x101)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST='https://gchat.qpic.cn';export const IMAGE_HTTP_HOST_NT=_0xce2357(0x10f);export var GrayTipElementSubType;(function(_0x9688ab){var _0x1db4d9=_0xce2357,_0x5d81c5={'SrHFV':_0x1db4d9(0x12f),'VVNwm':_0x1db4d9(0x135)};_0x9688ab[_0x9688ab[_0x5d81c5[_0x1db4d9(0x106)]]=0xc]=_0x1db4d9(0x12f),_0x9688ab[_0x9688ab[_0x5d81c5[_0x1db4d9(0x12e)]]=0x11]=_0x5d81c5[_0x1db4d9(0x12e)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x31c116){var _0x192f79=_0xce2357,_0x82f4a5={'QzLmt':_0x192f79(0x10b),'wQfNL':_0x192f79(0x11f),'QSQCp':_0x192f79(0xff)};_0x31c116[_0x31c116[_0x82f4a5['QzLmt']]=0x1]='normal',_0x31c116[_0x31c116[_0x82f4a5[_0x192f79(0x12d)]]=0x2]=_0x82f4a5[_0x192f79(0x12d)],_0x31c116[_0x31c116[_0x82f4a5[_0x192f79(0x130)]]=0x3]=_0x82f4a5[_0x192f79(0x130)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x59d601){var _0xb0a4bd=_0xce2357,_0x427239={'HCvBf':'dice','LsxYe':_0xb0a4bd(0x132)};_0x59d601[_0x59d601[_0x427239['HCvBf']]=0x166]=_0x427239[_0xb0a4bd(0x108)],_0x59d601[_0x59d601[_0x427239[_0xb0a4bd(0x11e)]]=0x167]=_0x427239[_0xb0a4bd(0x11e)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;function _0x1a72(_0x3cc7bb,_0x301b5e){var _0x4a4c35=_0x4a4c();return _0x1a72=function(_0x1a7296,_0xaeba19){_0x1a7296=_0x1a7296-0xfd;var _0x2f0859=_0x4a4c35[_0x1a7296];return _0x2f0859;},_0x1a72(_0x3cc7bb,_0x301b5e);}(function(_0xab8697){var _0x34e6c4=_0xce2357,_0x39a98d={'QAkch':_0x34e6c4(0x103),'pRKaE':_0x34e6c4(0x119),'lQvnR':_0x34e6c4(0x100)};_0xab8697[_0xab8697[_0x39a98d[_0x34e6c4(0x133)]]=0x1]=_0x39a98d[_0x34e6c4(0x133)],_0xab8697[_0xab8697[_0x34e6c4(0x119)]=0x3]=_0x39a98d['pRKaE'],_0xab8697[_0xab8697[_0x34e6c4(0x100)]=0x8]=_0x39a98d[_0x34e6c4(0x128)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x42d477=_0x55c9;(function(_0x23925c,_0x102e14){var _0x91a322=_0x55c9,_0xe52b94=_0x23925c();while(!![]){try{var _0x421e08=parseInt(_0x91a322(0x134))/0x1+parseInt(_0x91a322(0x124))/0x2+parseInt(_0x91a322(0x130))/0x3+-parseInt(_0x91a322(0x109))/0x4+-parseInt(_0x91a322(0x121))/0x5+parseInt(_0x91a322(0x110))/0x6*(-parseInt(_0x91a322(0x119))/0x7)+-parseInt(_0x91a322(0x111))/0x8*(parseInt(_0x91a322(0x11c))/0x9);if(_0x421e08===_0x102e14)break;else _0xe52b94['push'](_0xe52b94['shift']());}catch(_0xf47a7){_0xe52b94['push'](_0xe52b94['shift']());}}}(_0x4205,0xe2b38));function _0x4205(){var _0x19b984=['ZioWP','yZgRk','6BrQMbB','1448bUQLXB','OJYir','BWsqX','FILE','atUser','face','Ipijd','mdDQC','4316949JFydmW','NWLQX','MARKDOWN','15867rncmMd','VGkwF','oCcwh','PIC','XgzMu','7156260JFmlfl','jpg','friend','3503410msrgoo','normal','temp','RlFZv','INVITE_NEW_MEMBER','UjUbC','BKCmD','normal2','XGHqm','https://gchat.qpic.cn','MUgWG','MEMBER_NEW_TITLE','1622235iHAfcC','naZCf','notAt','jvhpC','1722857rnTAZJ','JRYNF','RPS','dice','qdwQD','ARK','CoGzq','ban','Wppdj','kicked','FACE','lDXKM','gif','memberIncrease','fcEQU','VIDEO','https://multimedia.nt.qq.com.cn','5|8|6|4|1|2|0|3|7','2878708FwqxWR','iRAsA','PbKsm','UXFFn','split'];_0x4205=function(){return _0x19b984;};return _0x4205();}export var ElementType;(function(_0x5cb246){var _0x525ef8=_0x55c9,_0x17f7d9={'JRYNF':_0x525ef8(0x108),'RlFZv':'REPLY','PbKsm':_0x525ef8(0x143),'Wppdj':_0x525ef8(0x13e),'mdDQC':_0x525ef8(0x139),'XGHqm':'PTT','lDXKM':'TEXT','VGkwF':_0x525ef8(0x114),'naZCf':_0x525ef8(0x11b),'BWsqX':_0x525ef8(0x11f)},_0x663d08=_0x17f7d9[_0x525ef8(0x135)][_0x525ef8(0x10d)]('|'),_0x36497c=0x0;while(!![]){switch(_0x663d08[_0x36497c++]){case'0':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x127)]]=0x7]=_0x17f7d9[_0x525ef8(0x127)];continue;case'1':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x10b)]]=0x5]=_0x17f7d9['PbKsm'];continue;case'2':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x13c)]]=0x6]=_0x17f7d9[_0x525ef8(0x13c)];continue;case'3':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x118)]]=0xa]=_0x17f7d9[_0x525ef8(0x118)];continue;case'4':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x12c)]]=0x4]=_0x17f7d9[_0x525ef8(0x12c)];continue;case'5':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x13f)]]=0x1]=_0x17f7d9[_0x525ef8(0x13f)];continue;case'6':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x11d)]]=0x3]=_0x17f7d9[_0x525ef8(0x11d)];continue;case'7':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x131)]]=0xe]=_0x17f7d9[_0x525ef8(0x131)];continue;case'8':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x113)]]=0x2]=_0x17f7d9[_0x525ef8(0x113)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x409273){var _0x598f2a=_0x55c9,_0x4e26ad={'BKCmD':_0x598f2a(0x140),'VIPKC':'jpg'};_0x409273[_0x409273[_0x4e26ad[_0x598f2a(0x12a)]]=0x7d0]=_0x598f2a(0x140),_0x409273[_0x409273[_0x598f2a(0x122)]=0x3e8]=_0x4e26ad['VIPKC'];}(PicType||(PicType={})));export var PicSubType;(function(_0x293e84){var _0x587ced=_0x55c9,_0xe2211d={'ZioWP':_0x587ced(0x125),'MUgWG':_0x587ced(0x116)};_0x293e84[_0x293e84['normal']=0x0]=_0xe2211d[_0x587ced(0x10e)],_0x293e84[_0x293e84[_0x587ced(0x116)]=0x1]=_0xe2211d[_0x587ced(0x12e)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x5699fc){var _0x371461=_0x55c9,_0x53ae75={'XHDvp':_0x371461(0x132),'fcEQU':'atAll','NWLQX':_0x371461(0x115)};_0x5699fc[_0x5699fc[_0x53ae75['XHDvp']]=0x0]=_0x371461(0x132),_0x5699fc[_0x5699fc[_0x53ae75[_0x371461(0x142)]]=0x1]=_0x53ae75[_0x371461(0x142)],_0x5699fc[_0x5699fc[_0x53ae75[_0x371461(0x11a)]]=0x2]=_0x53ae75[_0x371461(0x11a)];}(AtType||(AtType={})));function _0x55c9(_0x12cb95,_0xf70578){var _0x4205b6=_0x4205();return _0x55c9=function(_0x55c99e,_0x14ab16){_0x55c99e=_0x55c99e-0x107;var _0x5d6187=_0x4205b6[_0x55c99e];return _0x5d6187;},_0x55c9(_0x12cb95,_0xf70578);}export var ChatType;(function(_0x563922){var _0x38a32f=_0x55c9,_0xd287b3={'OJYir':_0x38a32f(0x123),'Ipijd':'group','SfenN':_0x38a32f(0x126)};_0x563922[_0x563922[_0xd287b3[_0x38a32f(0x112)]]=0x1]=_0xd287b3[_0x38a32f(0x112)],_0x563922[_0x563922['group']=0x2]=_0xd287b3[_0x38a32f(0x117)],_0x563922[_0x563922[_0xd287b3['SfenN']]=0x64]=_0x38a32f(0x126);}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x42d477(0x12d);export const IMAGE_HTTP_HOST_NT=_0x42d477(0x107);export var GrayTipElementSubType;(function(_0x216309){var _0x49c050=_0x42d477,_0x4e874f={'CoGzq':_0x49c050(0x128),'iRAsA':_0x49c050(0x12f)};_0x216309[_0x216309[_0x4e874f[_0x49c050(0x13a)]]=0xc]=_0x4e874f[_0x49c050(0x13a)],_0x216309[_0x216309[_0x49c050(0x12f)]=0x11]=_0x4e874f[_0x49c050(0x10a)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x1b3a3e){var _0x457eca=_0x42d477,_0x45b6cb={'yZgRk':_0x457eca(0x125),'jvhpC':_0x457eca(0x12b),'XgzMu':_0x457eca(0x137)};_0x1b3a3e[_0x1b3a3e[_0x457eca(0x125)]=0x1]=_0x45b6cb[_0x457eca(0x10f)],_0x1b3a3e[_0x1b3a3e[_0x45b6cb[_0x457eca(0x133)]]=0x2]=_0x45b6cb[_0x457eca(0x133)],_0x1b3a3e[_0x1b3a3e[_0x457eca(0x137)]=0x3]=_0x45b6cb[_0x457eca(0x120)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x331814){var _0x54f6d1=_0x42d477,_0x11c3ab={'oCcwh':_0x54f6d1(0x137),'UjUbC':_0x54f6d1(0x136)};_0x331814[_0x331814[_0x11c3ab[_0x54f6d1(0x11e)]]=0x166]=_0x11c3ab['oCcwh'],_0x331814[_0x331814[_0x11c3ab[_0x54f6d1(0x129)]]=0x167]=_0x11c3ab[_0x54f6d1(0x129)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x2ff562){var _0x419ce9=_0x42d477,_0x21adff={'UXFFn':_0x419ce9(0x13d),'qdwQD':_0x419ce9(0x13b)};_0x2ff562[_0x2ff562[_0x419ce9(0x141)]=0x1]=_0x419ce9(0x141),_0x2ff562[_0x2ff562[_0x21adff[_0x419ce9(0x10c)]]=0x3]=_0x21adff[_0x419ce9(0x10c)],_0x2ff562[_0x2ff562['ban']=0x8]=_0x21adff[_0x419ce9(0x138)];}(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 d9eb85fd..b51fb9b5 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x2e848e,_0x329525){var _0x39ae92=_0x1631,_0x2405d9=_0x2e848e();while(!![]){try{var _0x15e37f=parseInt(_0x39ae92(0x103))/0x1+-parseInt(_0x39ae92(0xf4))/0x2*(-parseInt(_0x39ae92(0x100))/0x3)+parseInt(_0x39ae92(0xe7))/0x4+parseInt(_0x39ae92(0x102))/0x5+-parseInt(_0x39ae92(0xeb))/0x6+-parseInt(_0x39ae92(0xfa))/0x7*(parseInt(_0x39ae92(0xe8))/0x8)+parseInt(_0x39ae92(0xf3))/0x9;if(_0x15e37f===_0x329525)break;else _0x2405d9['push'](_0x2405d9['shift']());}catch(_0x58203a){_0x2405d9['push'](_0x2405d9['shift']());}}}(_0x2465,0xca87a));export var GroupNotifyTypes;(function(_0x298cf0){var _0x288d95=_0x1631,_0x46f981={'XJlXn':_0x288d95(0xf0),'ESbxY':'INVITED_JOIN','AKalQ':_0x288d95(0xff),'ZgWxB':_0x288d95(0xf1),'uSMfR':_0x288d95(0xfb),'VenYZ':_0x288d95(0xed)};_0x298cf0[_0x298cf0[_0x288d95(0xf0)]=0x1]=_0x46f981[_0x288d95(0x101)],_0x298cf0[_0x298cf0[_0x46f981[_0x288d95(0xea)]]=0x4]=_0x46f981[_0x288d95(0xea)],_0x298cf0[_0x298cf0[_0x46f981[_0x288d95(0xe5)]]=0x7]=_0x46f981[_0x288d95(0xe5)],_0x298cf0[_0x298cf0[_0x288d95(0xf1)]=0x8]=_0x46f981[_0x288d95(0xf2)],_0x298cf0[_0x298cf0[_0x46f981[_0x288d95(0xfe)]]=0x9]=_0x288d95(0xfb),_0x298cf0[_0x298cf0[_0x288d95(0xed)]=0xb]=_0x46f981['VenYZ'],_0x298cf0[_0x298cf0['ADMIN_UNSET']=0xc]=_0x288d95(0xf9);}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x1631(_0x30a62f,_0x367209){var _0x246596=_0x2465();return _0x1631=function(_0x163111,_0x4afeee){_0x163111=_0x163111-0xe4;var _0x21d344=_0x246596[_0x163111];return _0x21d344;},_0x1631(_0x30a62f,_0x367209);}export var GroupNotifyStatus;(function(_0x4a657b){var _0xc0d196=_0x1631,_0x320a0b={'HHQgi':_0xc0d196(0xec),'uxdKL':_0xc0d196(0xfd),'WUtzp':_0xc0d196(0xf6),'atqwt':_0xc0d196(0xfc)};_0x4a657b[_0x4a657b[_0x320a0b[_0xc0d196(0xef)]]=0x0]=_0x320a0b['HHQgi'],_0x4a657b[_0x4a657b[_0x320a0b[_0xc0d196(0xe4)]]=0x1]=_0x320a0b[_0xc0d196(0xe4)],_0x4a657b[_0x4a657b[_0x320a0b['WUtzp']]=0x2]=_0x320a0b[_0xc0d196(0xf7)],_0x4a657b[_0x4a657b[_0x320a0b[_0xc0d196(0xe9)]]=0x3]=_0x320a0b[_0xc0d196(0xe9)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x213ca5){var _0x3e47d4=_0x1631,_0x48f687={'EonoM':_0x3e47d4(0xe6),'TuyyA':_0x3e47d4(0xf8)};_0x213ca5[_0x213ca5[_0x48f687[_0x3e47d4(0xee)]]=0x1]='approve',_0x213ca5[_0x213ca5[_0x48f687[_0x3e47d4(0xf5)]]=0x2]=_0x48f687[_0x3e47d4(0xf5)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x2465(){var _0x4f8077=['1447376HxxBIe','atqwt','ESbxY','1684734bbnMZj','IGNORE','MEMBER_EXIT','EonoM','HHQgi','INVITE_ME','ADMIN_SET','ZgWxB','5046912HdTkmV','4754ypJFkq','TuyyA','APPROVE','WUtzp','reject','ADMIN_UNSET','49NKCDow','KICK_MEMBER','REJECT','WAIT_HANDLE','uSMfR','JOIN_REQUEST','57RxwiOf','XJlXn','1728385tduPVg','820925OGPHTe','uxdKL','AKalQ','approve','2417088SVBVuI'];_0x2465=function(){return _0x4f8077;};return _0x2465();} \ No newline at end of file +(function(_0x13425d,_0x471325){var _0x2d5723=_0x5a4b,_0x5aba17=_0x13425d();while(!![]){try{var _0x16ffff=-parseInt(_0x2d5723(0x106))/0x1*(-parseInt(_0x2d5723(0x103))/0x2)+parseInt(_0x2d5723(0x100))/0x3*(-parseInt(_0x2d5723(0x109))/0x4)+-parseInt(_0x2d5723(0x118))/0x5*(parseInt(_0x2d5723(0x107))/0x6)+parseInt(_0x2d5723(0xff))/0x7*(parseInt(_0x2d5723(0x110))/0x8)+-parseInt(_0x2d5723(0x116))/0x9*(parseInt(_0x2d5723(0xfa))/0xa)+-parseInt(_0x2d5723(0x119))/0xb*(-parseInt(_0x2d5723(0x11a))/0xc)+parseInt(_0x2d5723(0x101))/0xd;if(_0x16ffff===_0x471325)break;else _0x5aba17['push'](_0x5aba17['shift']());}catch(_0x354ed3){_0x5aba17['push'](_0x5aba17['shift']());}}}(_0x5cde,0xb9c93));export var GroupNotifyTypes;(function(_0x346d4c){var _0x4c5826=_0x5a4b,_0x286fec={'WYdXl':_0x4c5826(0x112),'oEUcF':'INVITED_JOIN','wYnSG':_0x4c5826(0x10c),'XfJhF':_0x4c5826(0xf9),'Myiip':_0x4c5826(0x108),'bBbWE':_0x4c5826(0x117),'QAlOd':_0x4c5826(0x10b),'ybQxV':_0x4c5826(0xfd)},_0x4b0e8e=_0x286fec[_0x4c5826(0x10e)]['split']('|'),_0x36b46c=0x0;while(!![]){switch(_0x4b0e8e[_0x36b46c++]){case'0':_0x346d4c[_0x346d4c[_0x286fec['oEUcF']]=0x4]=_0x286fec['oEUcF'];continue;case'1':_0x346d4c[_0x346d4c[_0x4c5826(0x10c)]=0x1]=_0x286fec[_0x4c5826(0x10f)];continue;case'2':_0x346d4c[_0x346d4c[_0x286fec['XfJhF']]=0x7]=_0x4c5826(0xf9);continue;case'3':_0x346d4c[_0x346d4c[_0x286fec[_0x4c5826(0x115)]]=0x8]=_0x286fec['Myiip'];continue;case'4':_0x346d4c[_0x346d4c[_0x286fec[_0x4c5826(0xfb)]]=0xb]=_0x286fec['bBbWE'];continue;case'5':_0x346d4c[_0x346d4c[_0x286fec[_0x4c5826(0xfe)]]=0xc]=_0x286fec[_0x4c5826(0xfe)];continue;case'6':_0x346d4c[_0x346d4c[_0x286fec['ybQxV']]=0x9]=_0x286fec[_0x4c5826(0x105)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x2710a7){var _0x462ac5=_0x5a4b,_0x30256c={'NMYuS':_0x462ac5(0xfc),'uJRyw':'WAIT_HANDLE','QLBLi':_0x462ac5(0x114),'LIqvS':_0x462ac5(0x11b)};_0x2710a7[_0x2710a7[_0x30256c[_0x462ac5(0x10a)]]=0x0]=_0x30256c[_0x462ac5(0x10a)],_0x2710a7[_0x2710a7[_0x30256c[_0x462ac5(0x10d)]]=0x1]=_0x30256c[_0x462ac5(0x10d)],_0x2710a7[_0x2710a7[_0x30256c['QLBLi']]=0x2]=_0x462ac5(0x114),_0x2710a7[_0x2710a7[_0x30256c[_0x462ac5(0x104)]]=0x3]='REJECT';}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x3280e9){var _0x325b65=_0x5a4b,_0x45ed12={'OFlXa':_0x325b65(0x113),'pNUXD':_0x325b65(0x111)};_0x3280e9[_0x3280e9[_0x45ed12['OFlXa']]=0x1]=_0x45ed12[_0x325b65(0x102)],_0x3280e9[_0x3280e9[_0x45ed12['pNUXD']]=0x2]=_0x45ed12['pNUXD'];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x5a4b(_0x4061d1,_0x3aeb9f){var _0x5cde17=_0x5cde();return _0x5a4b=function(_0x5a4bf9,_0x3e6df4){_0x5a4bf9=_0x5a4bf9-0xf9;var _0x38a74d=_0x5cde17[_0x5a4bf9];return _0x38a74d;},_0x5a4b(_0x4061d1,_0x3aeb9f);}function _0x5cde(){var _0xe0271f=['2208177IvEyNp','MEMBER_EXIT','182635SJUOuL','22ShjdGp','8952348hIUsHM','REJECT','JOIN_REQUEST','40jkmkoz','bBbWE','IGNORE','KICK_MEMBER','QAlOd','3143blMaGo','9Ttlnyk','6542588gAFLLK','OFlXa','432iYbUWD','LIqvS','ybQxV','107GiCmij','186yKfEgg','ADMIN_SET','436376tqZcdF','NMYuS','ADMIN_UNSET','INVITE_ME','uJRyw','WYdXl','wYnSG','21088knTYOQ','reject','1|0|2|3|6|4|5','approve','APPROVE','Myiip'];_0x5cde=function(){return _0xe0271f;};return _0x5cde();} \ 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 8cf37697..7ac9dbba 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -function _0x16c1(_0x5776b9,_0x5e236e){var _0x15ed12=_0x15ed();return _0x16c1=function(_0x16c1c1,_0xd12bb8){_0x16c1c1=_0x16c1c1-0xd3;var _0x4c8413=_0x15ed12[_0x16c1c1];return _0x4c8413;},_0x16c1(_0x5776b9,_0x5e236e);}(function(_0x3d0145,_0x371e4b){var _0x572981=_0x16c1,_0x89c393=_0x3d0145();while(!![]){try{var _0x5497ef=parseInt(_0x572981(0xe0))/0x1+parseInt(_0x572981(0xd5))/0x2*(parseInt(_0x572981(0xe2))/0x3)+parseInt(_0x572981(0xd3))/0x4*(-parseInt(_0x572981(0xdc))/0x5)+parseInt(_0x572981(0xe1))/0x6*(parseInt(_0x572981(0xdf))/0x7)+parseInt(_0x572981(0xd7))/0x8*(-parseInt(_0x572981(0xd6))/0x9)+-parseInt(_0x572981(0xdd))/0xa*(parseInt(_0x572981(0xdb))/0xb)+parseInt(_0x572981(0xe3))/0xc;if(_0x5497ef===_0x371e4b)break;else _0x89c393['push'](_0x89c393['shift']());}catch(_0x2e8305){_0x89c393['push'](_0x89c393['shift']());}}}(_0x15ed,0xe0b23));function _0x15ed(){var _0x365142=['2820918QKHPpQ','3XvShbw','6848520vRuBxq','unknown','148dmmTLd','male','3439406mLUZWf','13383Uijxay','4376rCqMYo','tQFbQ','female','QNVOa','821150TMycKG','188000yBtXnV','80MviRRJ','ZHllI','7VwzQTn','961578pTjAdF'];_0x15ed=function(){return _0x365142;};return _0x15ed();}export var Sex;(function(_0x20406c){var _0x2b1eeb=_0x16c1,_0x27d9bf={'tQFbQ':_0x2b1eeb(0xd4),'ZHllI':'female','QNVOa':_0x2b1eeb(0xe4)};_0x20406c[_0x20406c[_0x2b1eeb(0xd4)]=0x1]=_0x27d9bf[_0x2b1eeb(0xd8)],_0x20406c[_0x20406c[_0x2b1eeb(0xd9)]=0x2]=_0x27d9bf[_0x2b1eeb(0xde)],_0x20406c[_0x20406c[_0x27d9bf['QNVOa']]=0xff]=_0x27d9bf[_0x2b1eeb(0xda)];}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x21dd51,_0x9ab317){var _0x560f4a=_0x3491,_0x495810=_0x21dd51();while(!![]){try{var _0x219463=parseInt(_0x560f4a(0x1c5))/0x1+parseInt(_0x560f4a(0x1c3))/0x2*(parseInt(_0x560f4a(0x1b9))/0x3)+-parseInt(_0x560f4a(0x1bc))/0x4+parseInt(_0x560f4a(0x1c4))/0x5*(parseInt(_0x560f4a(0x1c0))/0x6)+parseInt(_0x560f4a(0x1bf))/0x7+-parseInt(_0x560f4a(0x1c2))/0x8*(parseInt(_0x560f4a(0x1c1))/0x9)+parseInt(_0x560f4a(0x1bd))/0xa;if(_0x219463===_0x9ab317)break;else _0x495810['push'](_0x495810['shift']());}catch(_0x46030b){_0x495810['push'](_0x495810['shift']());}}}(_0x37b9,0x89950));function _0x37b9(){var _0x4b046c=['8GITXUl','1006CJLTYE','14285xshoKI','576027puMkgK','597qbjvVM','hTKHU','male','2180708IJDisI','3853920qKuwUr','unknown','4717776cCoAba','276YnzDxr','6823737DMkyRd'];_0x37b9=function(){return _0x4b046c;};return _0x37b9();}function _0x3491(_0x3eac75,_0x22a57b){var _0x37b9b0=_0x37b9();return _0x3491=function(_0x349130,_0xfa4ff8){_0x349130=_0x349130-0x1b9;var _0x50f2dd=_0x37b9b0[_0x349130];return _0x50f2dd;},_0x3491(_0x3eac75,_0x22a57b);}export var Sex;(function(_0x50c6e8){var _0x134ae6=_0x3491,_0x147f9f={'eXfeI':'male','hTKHU':'female'};_0x50c6e8[_0x50c6e8[_0x147f9f['eXfeI']]=0x1]=_0x134ae6(0x1bb),_0x50c6e8[_0x50c6e8[_0x147f9f['hTKHU']]=0x2]=_0x147f9f[_0x134ae6(0x1ba)],_0x50c6e8[_0x50c6e8[_0x134ae6(0x1be)]=0xff]=_0x134ae6(0x1be);}(Sex||(Sex={}))); \ No newline at end of file diff --git a/src/core.lib/src/external/hook.js b/src/core.lib/src/external/hook.js index f5a47c89..f7578705 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -function _0x269d(){const _0x256ca2=['erkna','./MoeHoo.node','2257088llqdBo','18454EmdwAF','moeHook','655440GLURKS','加载\x20moehoo\x20失败','HookRkey','25713QQJmeW','3896830gnSHxd','935145cxmXVW','getRKey','hImUo','5mMMPpf','2aLDyHm','isAvailable','1882048hInMOp','1832IaDyEd','loMXg','MoeHoo'];_0x269d=function(){return _0x256ca2;};return _0x269d();}const _0x54d27a=_0x4e8a;(function(_0x5f1f4d,_0x9e7f80){const _0x367390=_0x4e8a,_0x405426=_0x5f1f4d();while(!![]){try{const _0xb82360=-parseInt(_0x367390(0x159))/0x1*(parseInt(_0x367390(0x150))/0x2)+parseInt(_0x367390(0x14c))/0x3+-parseInt(_0x367390(0x158))/0x4+-parseInt(_0x367390(0x14f))/0x5*(-parseInt(_0x367390(0x15b))/0x6)+parseInt(_0x367390(0x152))/0x7+parseInt(_0x367390(0x153))/0x8*(parseInt(_0x367390(0x14a))/0x9)+-parseInt(_0x367390(0x14b))/0xa;if(_0xb82360===_0x9e7f80)break;else _0x405426['push'](_0x405426['shift']());}catch(_0x2c820a){_0x405426['push'](_0x405426['shift']());}}}(_0x269d,0x5abcf));import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';class HookApi{[_0x54d27a(0x15a)]=null;constructor(){const _0x45a960=_0x54d27a,_0x239356={'erkna':_0x45a960(0x155),'hImUo':function(_0x1172cf,_0x2bb739){return _0x1172cf(_0x2bb739);},'loMXg':_0x45a960(0x157),'YumLF':function(_0x2e38fa,_0x5843dd,_0x140e2d){return _0x2e38fa(_0x5843dd,_0x140e2d);}};try{cpModule(_0x239356[_0x45a960(0x156)]),this[_0x45a960(0x15a)]=_0x239356[_0x45a960(0x14e)](require,_0x239356[_0x45a960(0x154)]),this[_0x45a960(0x15a)][_0x45a960(0x149)]();}catch(_0x3c9e8b){_0x239356['YumLF'](logError,_0x45a960(0x15c),_0x3c9e8b);}}[_0x54d27a(0x14d)](){const _0x59b38d=_0x54d27a;return this[_0x59b38d(0x15a)]?.['GetRkey']()||'';}[_0x54d27a(0x151)](){const _0x93ad15=_0x54d27a;return!!this[_0x93ad15(0x15a)];}}function _0x4e8a(_0xbabd3f,_0x185c64){const _0x269d17=_0x269d();return _0x4e8a=function(_0x4e8a47,_0x3def6c){_0x4e8a47=_0x4e8a47-0x149;let _0x95288c=_0x269d17[_0x4e8a47];return _0x95288c;},_0x4e8a(_0xbabd3f,_0x185c64);}export const hookApi=new HookApi(); \ No newline at end of file +const _0x3f58ba=_0x1119;(function(_0x15065a,_0x2683a3){const _0x56163a=_0x1119,_0x3ae616=_0x15065a();while(!![]){try{const _0x4ae5d7=-parseInt(_0x56163a(0x168))/0x1*(-parseInt(_0x56163a(0x159))/0x2)+parseInt(_0x56163a(0x165))/0x3*(parseInt(_0x56163a(0x164))/0x4)+parseInt(_0x56163a(0x162))/0x5*(-parseInt(_0x56163a(0x15c))/0x6)+parseInt(_0x56163a(0x156))/0x7*(-parseInt(_0x56163a(0x15d))/0x8)+parseInt(_0x56163a(0x155))/0x9*(parseInt(_0x56163a(0x158))/0xa)+parseInt(_0x56163a(0x15a))/0xb*(-parseInt(_0x56163a(0x163))/0xc)+parseInt(_0x56163a(0x16a))/0xd;if(_0x4ae5d7===_0x2683a3)break;else _0x3ae616['push'](_0x3ae616['shift']());}catch(_0x5f3314){_0x3ae616['push'](_0x3ae616['shift']());}}}(_0x150a,0x51e0c));import{logDebug,logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x150a(){const _0x285248=['getRKey','pRDIz','23TmyMzN','GetRkey','13436865QruZgh','18igNMEa','108731qGYxUD','axUYd','1250970XgezDY','33554XjKfjk','319vpvPhR','moeHook','30agvfcy','248gXowOl','MoeHoo','加载\x20moehoo\x20失败','yIMhC','moe\x20hook\x20address','276620gDTXCp','249720FRbyWR','1420unscpj','231QIhKaL'];_0x150a=function(){return _0x285248;};return _0x150a();}function _0x1119(_0x5ba558,_0x105025){const _0x150afc=_0x150a();return _0x1119=function(_0x11190b,_0x5e7e7d){_0x11190b=_0x11190b-0x155;let _0xdcdbcd=_0x150afc[_0x11190b];return _0xdcdbcd;},_0x1119(_0x5ba558,_0x105025);}class HookApi{['moeHook']=null;constructor(){const _0x1392c6=_0x1119,_0x1e6b15={'utdBz':function(_0x1c81b8,_0x3aadd4){return _0x1c81b8(_0x3aadd4);},'axUYd':'./MoeHoo.node','yIMhC':function(_0xb1a86a,_0x49024f,_0x51dd20){return _0xb1a86a(_0x49024f,_0x51dd20);},'pRDIz':_0x1392c6(0x161),'iXebO':_0x1392c6(0x15f)};try{_0x1e6b15['utdBz'](cpModule,_0x1392c6(0x15e)),this['moeHook']=require(_0x1e6b15[_0x1392c6(0x157)]),_0x1e6b15[_0x1392c6(0x160)](logDebug,_0x1e6b15[_0x1392c6(0x167)],this[_0x1392c6(0x15b)]['HookRkey']());}catch(_0x26fd45){logError(_0x1e6b15['iXebO'],_0x26fd45);}}[_0x3f58ba(0x166)](){const _0x436251=_0x3f58ba;return this[_0x436251(0x15b)]?.[_0x436251(0x169)]()||'';}['isAvailable'](){const _0x347110=_0x3f58ba;return!!this[_0x347110(0x15b)];}}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 c93a6b8e..d3318604 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -function _0x563d(){var _0x4fe3a5=['7679371MDRSwJ','9ftwDfA','8RlwGSP','2501022efVyRG','1510999MtyRiH','4Yhjnth','12148100GJxjhB','3753380OxRwMt','2909094KgpFNI','6767058hOolId'];_0x563d=function(){return _0x4fe3a5;};return _0x563d();}(function(_0x4442d2,_0x4fecab){var _0x453a81=_0x4903,_0x4ef078=_0x4442d2();while(!![]){try{var _0x146592=-parseInt(_0x453a81(0x91))/0x1+parseInt(_0x453a81(0x90))/0x2+-parseInt(_0x453a81(0x8b))/0x3*(parseInt(_0x453a81(0x88))/0x4)+parseInt(_0x453a81(0x8a))/0x5+parseInt(_0x453a81(0x8c))/0x6+-parseInt(_0x453a81(0x8d))/0x7*(parseInt(_0x453a81(0x8f))/0x8)+parseInt(_0x453a81(0x8e))/0x9*(parseInt(_0x453a81(0x89))/0xa);if(_0x146592===_0x4fecab)break;else _0x4ef078['push'](_0x4ef078['shift']());}catch(_0x326062){_0x4ef078['push'](_0x4ef078['shift']());}}}(_0x563d,0xbb08a));import _0x5ccfed from'./wrapper';export*from'./adapters';function _0x4903(_0x41b61,_0x32dfcc){var _0x563d19=_0x563d();return _0x4903=function(_0x4903bf,_0xe95c38){_0x4903bf=_0x4903bf-0x88;var _0x189796=_0x563d19[_0x4903bf];return _0x189796;},_0x4903(_0x41b61,_0x32dfcc);}export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x5ccfed as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x16fd73,_0x47f0d6){var _0x3a6218=_0x204c,_0xa5d45b=_0x16fd73();while(!![]){try{var _0x7ddf0b=parseInt(_0x3a6218(0x135))/0x1+-parseInt(_0x3a6218(0x130))/0x2+-parseInt(_0x3a6218(0x12f))/0x3*(-parseInt(_0x3a6218(0x133))/0x4)+-parseInt(_0x3a6218(0x132))/0x5*(parseInt(_0x3a6218(0x131))/0x6)+parseInt(_0x3a6218(0x12e))/0x7+-parseInt(_0x3a6218(0x134))/0x8+parseInt(_0x3a6218(0x136))/0x9;if(_0x7ddf0b===_0x47f0d6)break;else _0xa5d45b['push'](_0xa5d45b['shift']());}catch(_0x3aa08a){_0xa5d45b['push'](_0xa5d45b['shift']());}}}(_0x2a66,0x1b444));import _0x544a1a from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0x2a66(){var _0x3ccf11=['5xIAKnq','4sInIoh','1578664XcnYjf','167213ZIQdIL','1192266QADUgS','476938yfTOoj','81633xSHUai','15408jWMLBr','469866WrJghI'];_0x2a66=function(){return _0x3ccf11;};return _0x2a66();}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';function _0x204c(_0x340ea4,_0x1511a9){var _0x2a660f=_0x2a66();return _0x204c=function(_0x204c51,_0x3564bd){_0x204c51=_0x204c51-0x12e;var _0x120bfa=_0x2a660f[_0x204c51];return _0x120bfa;},_0x204c(_0x340ea4,_0x1511a9);}export*as Listeners from'./listeners';export*as Services from'./services';export{_0x544a1a 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 592825fc..fa688f21 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -function _0x12a5(_0x3fe0f7,_0x29a2bf){var _0x23a591=_0x23a5();return _0x12a5=function(_0x12a586,_0xa00828){_0x12a586=_0x12a586-0xae;var _0x4c0ecd=_0x23a591[_0x12a586];return _0x4c0ecd;},_0x12a5(_0x3fe0f7,_0x29a2bf);}var _0x59002a=_0x12a5;(function(_0x1246a5,_0x16961c){var _0x191c17=_0x12a5,_0x18e156=_0x1246a5();while(!![]){try{var _0x358ec2=parseInt(_0x191c17(0xbd))/0x1*(parseInt(_0x191c17(0xae))/0x2)+parseInt(_0x191c17(0xb3))/0x3*(parseInt(_0x191c17(0xb0))/0x4)+-parseInt(_0x191c17(0xc2))/0x5*(-parseInt(_0x191c17(0xb2))/0x6)+-parseInt(_0x191c17(0xc0))/0x7+-parseInt(_0x191c17(0xc1))/0x8+-parseInt(_0x191c17(0xb6))/0x9*(-parseInt(_0x191c17(0xb9))/0xa)+-parseInt(_0x191c17(0xc3))/0xb;if(_0x358ec2===_0x16961c)break;else _0x18e156['push'](_0x18e156['shift']());}catch(_0x52c3a8){_0x18e156['push'](_0x18e156['shift']());}}}(_0x23a5,0x3dda1));export class BuddyListener{['onAddBuddyNeedVerify'](_0x3810fd){}[_0x59002a(0xb8)](_0x4a0c90){}['onAvatarUrlUpdated'](_0x5544df){}[_0x59002a(0xbf)](_0x5b955e){}['onBuddyDetailInfoChange'](_0x4a157e){}[_0x59002a(0xb7)](_0x230250){}[_0x59002a(0xbb)](_0x53c69b){}[_0x59002a(0xba)](_0x3eea6e){}[_0x59002a(0xc4)](_0x3226c3){}[_0x59002a(0xb4)](_0x308625){}[_0x59002a(0xbe)](_0x51539b){}[_0x59002a(0xb5)](_0x24228e){}['onDoubtBuddyReqChange'](_0x37c4bf){}[_0x59002a(0xbc)](_0x2ed7c4){}['onNickUpdated'](_0x51be46){}[_0x59002a(0xaf)](_0x186ea5){}[_0x59002a(0xb1)](_0x5781a5){}}function _0x23a5(){var _0x452fa0=['onDelBatchBuddyInfos','819EHgAid','onBuddyInfoChange','onAddMeSettingChanged','50380QgTKvN','onBuddyRemarkUpdated','onBuddyListChange','onDoubtBuddyReqUnreadNumChange','9751UGbKIB','onCheckBuddySettingResult','onBlockChanged','2600549ZcHCkz','1489248pexMXt','685PdpGCY','2410595QMRquS','onBuddyReqChange','14KsNPfS','onSmartInfos','636628LACiZb','onSpacePermissionInfos','15078euHOAZ','3rMLztO','onBuddyReqUnreadCntChange'];_0x23a5=function(){return _0x452fa0;};return _0x23a5();} \ No newline at end of file +var _0x10af1f=_0x3ff6;(function(_0x38040e,_0x3ff4ae){var _0x21add2=_0x3ff6,_0x5cc0d0=_0x38040e();while(!![]){try{var _0x259111=parseInt(_0x21add2(0xea))/0x1+-parseInt(_0x21add2(0xe3))/0x2+parseInt(_0x21add2(0xec))/0x3*(-parseInt(_0x21add2(0xe7))/0x4)+parseInt(_0x21add2(0xee))/0x5*(-parseInt(_0x21add2(0xf2))/0x6)+-parseInt(_0x21add2(0xed))/0x7*(parseInt(_0x21add2(0xe1))/0x8)+-parseInt(_0x21add2(0xeb))/0x9+-parseInt(_0x21add2(0xe2))/0xa*(-parseInt(_0x21add2(0xe4))/0xb);if(_0x259111===_0x3ff4ae)break;else _0x5cc0d0['push'](_0x5cc0d0['shift']());}catch(_0x4de4c0){_0x5cc0d0['push'](_0x5cc0d0['shift']());}}}(_0x3cf6,0xb878f));function _0x3ff6(_0x4c9f6a,_0x5e0a93){var _0x3cf6af=_0x3cf6();return _0x3ff6=function(_0x3ff6dd,_0x169eeb){_0x3ff6dd=_0x3ff6dd-0xdc;var _0x2389af=_0x3cf6af[_0x3ff6dd];return _0x2389af;},_0x3ff6(_0x4c9f6a,_0x5e0a93);}function _0x3cf6(){var _0x2de8ee=['onBuddyReqChange','onDoubtBuddyReqChange','4PwsTLM','onDoubtBuddyReqUnreadNumChange','onBlockChanged','73694Wpwfud','10962855QoXNLQ','346062dTfCnK','21AuHJKT','1465lsCmqe','onAddBuddyNeedVerify','onBuddyInfoChange','onAddMeSettingChanged','19254slFZcg','onSpacePermissionInfos','onDelBatchBuddyInfos','onAvatarUrlUpdated','onBuddyListChange','onNickUpdated','onCheckBuddySettingResult','onBuddyReqUnreadCntChange','2988536nfslOE','55504690gaatmd','2948354PhaggS','11Yxtywg'];_0x3cf6=function(){return _0x2de8ee;};return _0x3cf6();}export class BuddyListener{[_0x10af1f(0xef)](_0x40bfcd){}[_0x10af1f(0xf1)](_0x3eb262){}[_0x10af1f(0xdc)](_0x546a34){}[_0x10af1f(0xe9)](_0x4c78e5){}['onBuddyDetailInfoChange'](_0x59aee6){}[_0x10af1f(0xf0)](_0x43a124){}[_0x10af1f(0xdd)](_0x313417){}['onBuddyRemarkUpdated'](_0x1df87e){}[_0x10af1f(0xe5)](_0x4f2cb6){}[_0x10af1f(0xe0)](_0x4dce9e){}[_0x10af1f(0xdf)](_0x1d57e5){}[_0x10af1f(0xf4)](_0x708ec6){}[_0x10af1f(0xe6)](_0x7a84ee){}[_0x10af1f(0xe8)](_0x5775c0){}[_0x10af1f(0xde)](_0x3d1e66){}['onSmartInfos'](_0x3ed1c8){}[_0x10af1f(0xf3)](_0x59e67a){}} \ 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 3eebe66d..9fda5f0e 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x1f4e80=_0x22e2;(function(_0x1ce2ae,_0x1faf4c){var _0x3734f7=_0x22e2,_0x486078=_0x1ce2ae();while(!![]){try{var _0x594ac0=parseInt(_0x3734f7(0x1b3))/0x1*(parseInt(_0x3734f7(0x1c0))/0x2)+parseInt(_0x3734f7(0x1ba))/0x3*(-parseInt(_0x3734f7(0x1b4))/0x4)+parseInt(_0x3734f7(0x1bf))/0x5*(parseInt(_0x3734f7(0x1b6))/0x6)+-parseInt(_0x3734f7(0x1c2))/0x7*(-parseInt(_0x3734f7(0x1bc))/0x8)+parseInt(_0x3734f7(0x1b7))/0x9*(parseInt(_0x3734f7(0x1b5))/0xa)+-parseInt(_0x3734f7(0x1be))/0xb+-parseInt(_0x3734f7(0x1bd))/0xc;if(_0x594ac0===_0x1faf4c)break;else _0x486078['push'](_0x486078['shift']());}catch(_0x2eaa8d){_0x486078['push'](_0x486078['shift']());}}}(_0x55a2,0x8b61d));function _0x55a2(){var _0x27ccff=['54218Plithf','onFileStatusChanged','17045oRDwUq','onFileSearch','15fkNkif','2040868hBaFDC','162250QJvDxr','6JrDAke','459iAiUxs','onFileListChanged','onSessionListChanged','3zLCrZz','onSessionChanged','248UxtIya','3007788ixMSJl','2790601YyDqnw','1379355LUdFSd'];_0x55a2=function(){return _0x27ccff;};return _0x55a2();}function _0x22e2(_0x554954,_0x24fcc1){var _0x55a27b=_0x55a2();return _0x22e2=function(_0x22e2bf,_0x18cb2a){_0x22e2bf=_0x22e2bf-0x1b3;var _0x16c315=_0x55a27b[_0x22e2bf];return _0x16c315;},_0x22e2(_0x554954,_0x24fcc1);}export class KernelFileAssistantListener{[_0x1f4e80(0x1c1)](..._0x59b9e3){}[_0x1f4e80(0x1b9)](..._0x21f9b6){}[_0x1f4e80(0x1bb)](..._0x2b2c8f){}[_0x1f4e80(0x1b8)](..._0x1cd059){}[_0x1f4e80(0x1c3)](..._0xd1ce8e){}} \ No newline at end of file +function _0x2aea(_0x23ad52,_0x19d3e3){var _0x4f6da7=_0x4f6d();return _0x2aea=function(_0x2aea3e,_0x1eac3d){_0x2aea3e=_0x2aea3e-0xa5;var _0x3fb991=_0x4f6da7[_0x2aea3e];return _0x3fb991;},_0x2aea(_0x23ad52,_0x19d3e3);}var _0x44602c=_0x2aea;(function(_0x1d11a3,_0x6c4cc5){var _0x87bafd=_0x2aea,_0x5ecaf1=_0x1d11a3();while(!![]){try{var _0x2a5ed9=parseInt(_0x87bafd(0xa8))/0x1*(-parseInt(_0x87bafd(0xb1))/0x2)+parseInt(_0x87bafd(0xb0))/0x3+-parseInt(_0x87bafd(0xaa))/0x4*(parseInt(_0x87bafd(0xac))/0x5)+parseInt(_0x87bafd(0xa5))/0x6*(parseInt(_0x87bafd(0xae))/0x7)+-parseInt(_0x87bafd(0xa6))/0x8+parseInt(_0x87bafd(0xb2))/0x9+parseInt(_0x87bafd(0xa7))/0xa*(-parseInt(_0x87bafd(0xaf))/0xb);if(_0x2a5ed9===_0x6c4cc5)break;else _0x5ecaf1['push'](_0x5ecaf1['shift']());}catch(_0x24930c){_0x5ecaf1['push'](_0x5ecaf1['shift']());}}}(_0x4f6d,0x6e9d5));export class KernelFileAssistantListener{['onFileStatusChanged'](..._0x25ca36){}[_0x44602c(0xab)](..._0x19138b){}[_0x44602c(0xad)](..._0x273582){}[_0x44602c(0xa9)](..._0x5437c6){}[_0x44602c(0xb3)](..._0x156eb6){}}function _0x4f6d(){var _0x4d1327=['326375sXTAqB','46838CRQJyp','774768EsTYBP','504GSZloh','7574130ZcsZqF','onFileSearch','114ehVstf','2005648uSKErk','170xKidVU','1959xzVZAI','onFileListChanged','8NqoDRz','onSessionListChanged','1789660ybHPlI','onSessionChanged'];_0x4f6d=function(){return _0x4d1327;};return _0x4f6d();} \ 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 39153548..ef5d98c5 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x3f471f=_0x1112;function _0x1112(_0x6cd6fe,_0x4f8140){var _0x2d61d8=_0x2d61();return _0x1112=function(_0x11120d,_0x5f5131){_0x11120d=_0x11120d-0x10a;var _0x49361a=_0x2d61d8[_0x11120d];return _0x49361a;},_0x1112(_0x6cd6fe,_0x4f8140);}(function(_0x1a4672,_0x4f7dd0){var _0x5401a2=_0x1112,_0x5302a0=_0x1a4672();while(!![]){try{var _0x352f0a=-parseInt(_0x5401a2(0x11c))/0x1+parseInt(_0x5401a2(0x138))/0x2*(-parseInt(_0x5401a2(0x11d))/0x3)+-parseInt(_0x5401a2(0x10e))/0x4*(-parseInt(_0x5401a2(0x11e))/0x5)+parseInt(_0x5401a2(0x139))/0x6+parseInt(_0x5401a2(0x111))/0x7+parseInt(_0x5401a2(0x113))/0x8*(parseInt(_0x5401a2(0x12a))/0x9)+parseInt(_0x5401a2(0x12b))/0xa;if(_0x352f0a===_0x4f7dd0)break;else _0x5302a0['push'](_0x5302a0['shift']());}catch(_0x3f4491){_0x5302a0['push'](_0x5302a0['shift']());}}}(_0x2d61,0x493d8));function _0x2d61(){var _0x5b4509=['yHWdC','BUvPb','onGroupDetailInfoChange','onGroupBulletinRichMediaDownloadComplete','onGroupConfMemberChange','onMemberListChange:','onGroupBulletinRemindNotify','onGroupFirstBulletinNotify','onGroupStatisticInfoChange','Evxwm','onGroupMemberLevelInfoChange','onGroupAllInfoChange','onMemberListChange','VswDt','271436wpVyYe','onJoinGroupNotify','onSearchMemberChange','1837563CjAgRW','onGroupListUpdate','620344lcPdBg','CczCk','onGetGroupBulletinListResult:','onGroupsMsgMaskResult','PFSkW','onMemberInfoChange:','onGroupStatisticInfoChange:','onGroupBulletinChange','onGroupMemberLevelInfoChange:','103218tLOMRC','3ohWKJg','25ahsPSr','iZijB','DJpmQ','onGroupsMsgMaskResult:','onGroupFirstBulletinNotify:','mcWqx','eRpzS','onShutUpMemberListChanged:','onGroupConfMemberChange:','onJoinGroupNotify:','onGroupListUpdate:','onGroupNotifiesUpdated','9FpEQOA','1681900klmIjU','onGetGroupBulletinListResult','onGroupArkInviteStateResult','onGroupArkInviteStateResult:','atXKp','onSearchMemberChange:','onGroupBulletinRemindNotify:','log','onGroupBulletinChange:','onGroupDetailInfoChange:','onJoinGroupNoVerifyFlag','onGroupNotifiesUpdated:','onGroupExtListUpdate','946618NSleQF','173892ZXUfzx','onGroupNotifiesUnreadCountUpdated:','onGroupSingleScreenNotifies','onGroupNotifiesUnreadCountUpdated','onMemberInfoChange','qlCpy','EBRZP'];_0x2d61=function(){return _0x5b4509;};return _0x2d61();}export class GroupListener{['onGroupMemberLevelInfoChange'](..._0x537e4e){}[_0x3f471f(0x12c)](..._0xce6023){}[_0x3f471f(0x10b)](..._0x226b9b){}[_0x3f471f(0x11a)](..._0x33fa7a){}[_0x3f471f(0x146)](..._0x50b7d5){}[_0x3f471f(0x12d)](..._0x2d891e){}['onGroupBulletinRichMediaDownloadComplete'](..._0x43b2d3){}[_0x3f471f(0x144)](..._0x534a36){}['onGroupDetailInfoChange'](..._0x3d1234){}[_0x3f471f(0x137)](..._0x4af23b){}[_0x3f471f(0x147)](..._0x19f905){}[_0x3f471f(0x112)](_0xe53d6e,_0x41d1ac){}['onGroupNotifiesUpdated'](_0x3deafa,_0x19c9f4){}['onGroupBulletinRichMediaProgressUpdate'](..._0x4104dd){}[_0x3f471f(0x13c)](..._0x42f86f){}['onGroupSingleScreenNotifies'](..._0x3e18d9){}[_0x3f471f(0x116)](..._0x309491){}[_0x3f471f(0x148)](..._0x30b449){}['onJoinGroupNotify'](..._0x15acf6){}[_0x3f471f(0x135)](..._0xe1d6c9){}[_0x3f471f(0x13d)](_0x23c55b,_0x5ecb10,_0x25bf29){}['onMemberListChange'](_0x222763){}['onSearchMemberChange'](..._0x5dfbc2){}['onShutUpMemberListChanged'](..._0x24ff8b){}}export class DebugGroupListener{[_0x3f471f(0x10a)](..._0x45bfaa){var _0xbcf208=_0x3f471f;console['log'](_0xbcf208(0x11b),..._0x45bfaa);}['onGetGroupBulletinListResult'](..._0x50f204){var _0x119f52=_0x3f471f,_0x4809d6={'yHWdC':_0x119f52(0x115)};console[_0x119f52(0x132)](_0x4809d6[_0x119f52(0x140)],..._0x50f204);}[_0x3f471f(0x10b)](..._0x3d3ba9){var _0x3dc5cb=_0x3f471f,_0x32a1d1={'eRpzS':'onGroupAllInfoChange:'};console[_0x3dc5cb(0x132)](_0x32a1d1[_0x3dc5cb(0x124)],..._0x3d3ba9);}['onGroupBulletinChange'](..._0x5af2bb){var _0x320ec7=_0x3f471f,_0x1fe5f0={'iZijB':_0x320ec7(0x133)};console['log'](_0x1fe5f0[_0x320ec7(0x11f)],..._0x5af2bb);}[_0x3f471f(0x146)](..._0x3f5e92){var _0x341119=_0x3f471f,_0x5f5559={'DJpmQ':_0x341119(0x131)};console[_0x341119(0x132)](_0x5f5559[_0x341119(0x120)],..._0x3f5e92);}[_0x3f471f(0x12d)](..._0x478ba1){var _0x1248ac=_0x3f471f;console[_0x1248ac(0x132)](_0x1248ac(0x12e),..._0x478ba1);}[_0x3f471f(0x143)](..._0x141e6c){var _0x40179c=_0x3f471f,_0x5a392e={'atXKp':'onGroupBulletinRichMediaDownloadComplete:'};console[_0x40179c(0x132)](_0x5a392e[_0x40179c(0x12f)],..._0x141e6c);}[_0x3f471f(0x144)](..._0x3b640f){var _0x27fb16=_0x3f471f;console[_0x27fb16(0x132)](_0x27fb16(0x126),..._0x3b640f);}[_0x3f471f(0x142)](..._0x49135b){var _0x277109=_0x3f471f,_0x5ccd2a={'PFSkW':_0x277109(0x134)};console[_0x277109(0x132)](_0x5ccd2a[_0x277109(0x117)],..._0x49135b);}['onGroupExtListUpdate'](..._0x1102fa){var _0x36e845=_0x3f471f,_0x1f09ac={'EBRZP':'onGroupExtListUpdate:'};console[_0x36e845(0x132)](_0x1f09ac[_0x36e845(0x13f)],..._0x1102fa);}['onGroupFirstBulletinNotify'](..._0x30cef3){var _0x4969a7=_0x3f471f;console[_0x4969a7(0x132)](_0x4969a7(0x122),..._0x30cef3);}['onGroupListUpdate'](..._0x38ac9d){var _0x1dc672=_0x3f471f,_0x48b6d2={'Evxwm':_0x1dc672(0x128)};console[_0x1dc672(0x132)](_0x48b6d2[_0x1dc672(0x149)],..._0x38ac9d);}[_0x3f471f(0x129)](..._0x56d6f9){var _0x1239bd=_0x3f471f,_0x33d51a={'VswDt':_0x1239bd(0x136)};console[_0x1239bd(0x132)](_0x33d51a[_0x1239bd(0x10d)],..._0x56d6f9);}['onGroupBulletinRichMediaProgressUpdate'](..._0x30b8ba){var _0x4e45ad=_0x3f471f;console[_0x4e45ad(0x132)]('onGroupBulletinRichMediaProgressUpdate:',..._0x30b8ba);}[_0x3f471f(0x13c)](..._0x590044){var _0x163951=_0x3f471f,_0x170f38={'waQzP':_0x163951(0x13a)};console['log'](_0x170f38['waQzP'],..._0x590044);}[_0x3f471f(0x13b)](..._0x3158e2){var _0x570c4d=_0x3f471f;console[_0x570c4d(0x132)]('onGroupSingleScreenNotifies:',..._0x3158e2);}[_0x3f471f(0x116)](..._0x1ca963){var _0x38bdfb=_0x3f471f;console['log'](_0x38bdfb(0x121),..._0x1ca963);}[_0x3f471f(0x148)](..._0x4dc178){var _0x2ab36b=_0x3f471f;console[_0x2ab36b(0x132)](_0x2ab36b(0x119),..._0x4dc178);}[_0x3f471f(0x10f)](..._0x11ba51){var _0x5dc14f=_0x3f471f,_0x4645c6={'qlCpy':_0x5dc14f(0x127)};console[_0x5dc14f(0x132)](_0x4645c6[_0x5dc14f(0x13e)],..._0x11ba51);}[_0x3f471f(0x135)](..._0x510964){var _0x35f710=_0x3f471f,_0x420564={'BUvPb':'onJoinGroupNoVerifyFlag:'};console['log'](_0x420564[_0x35f710(0x141)],..._0x510964);}[_0x3f471f(0x13d)](_0x198a79,_0x481f2c,_0xb39f6f){var _0x311d5a=_0x3f471f;console['log'](_0x311d5a(0x118),_0x198a79,_0x481f2c,_0xb39f6f);}[_0x3f471f(0x10c)](..._0x391cdd){var _0x5ae68b=_0x3f471f,_0x149849={'CczCk':_0x5ae68b(0x145)};console[_0x5ae68b(0x132)](_0x149849[_0x5ae68b(0x114)],..._0x391cdd);}[_0x3f471f(0x110)](..._0x2e2970){var _0x4ce621=_0x3f471f,_0x1a469b={'mcWqx':_0x4ce621(0x130)};console[_0x4ce621(0x132)](_0x1a469b[_0x4ce621(0x123)],..._0x2e2970);}['onShutUpMemberListChanged'](..._0x1d7525){var _0x3ee359=_0x3f471f,_0x296831={'Knpaq':_0x3ee359(0x125)};console[_0x3ee359(0x132)](_0x296831['Knpaq'],..._0x1d7525);}} \ No newline at end of file +var _0x574461=_0x35d6;(function(_0x561b94,_0xcc58ba){var _0x118660=_0x35d6,_0x486b17=_0x561b94();while(!![]){try{var _0x31d76c=parseInt(_0x118660(0x172))/0x1+-parseInt(_0x118660(0x175))/0x2*(parseInt(_0x118660(0x185))/0x3)+parseInt(_0x118660(0x173))/0x4+-parseInt(_0x118660(0x17f))/0x5+-parseInt(_0x118660(0x16b))/0x6+parseInt(_0x118660(0x165))/0x7*(-parseInt(_0x118660(0x18c))/0x8)+-parseInt(_0x118660(0x162))/0x9*(-parseInt(_0x118660(0x161))/0xa);if(_0x31d76c===_0xcc58ba)break;else _0x486b17['push'](_0x486b17['shift']());}catch(_0x4a48b9){_0x486b17['push'](_0x486b17['shift']());}}}(_0x5bb8,0x995e1));function _0x35d6(_0x25f445,_0xd3eb6a){var _0x5bb8c0=_0x5bb8();return _0x35d6=function(_0x35d678,_0x2ecbd3){_0x35d678=_0x35d678-0x15a;var _0x4936ac=_0x5bb8c0[_0x35d678];return _0x4936ac;},_0x35d6(_0x25f445,_0xd3eb6a);}export class GroupListener{[_0x574461(0x160)](..._0x673879){}[_0x574461(0x16e)](..._0x647457){}[_0x574461(0x189)](..._0x297282){}[_0x574461(0x191)](..._0x4a1f4d){}[_0x574461(0x196)](..._0x509fa9){}[_0x574461(0x164)](..._0x26934d){}[_0x574461(0x15f)](..._0xfbb185){}[_0x574461(0x187)](..._0x17d611){}[_0x574461(0x163)](..._0x5e5277){}[_0x574461(0x18b)](..._0x211d9c){}['onGroupFirstBulletinNotify'](..._0x3dc410){}['onGroupListUpdate'](_0x5036e1,_0x946046){}['onGroupNotifiesUpdated'](_0x108416,_0x3f9323){}[_0x574461(0x16d)](..._0x24f6a5){}[_0x574461(0x195)](..._0x263f84){}[_0x574461(0x17d)](..._0x21d343){}[_0x574461(0x18e)](..._0x43d636){}[_0x574461(0x169)](..._0x5441b0){}[_0x574461(0x17e)](..._0x2339e8){}[_0x574461(0x180)](..._0x4cbbce){}['onMemberInfoChange'](_0x11e5d9,_0x20163b,_0x18900b){}['onMemberListChange'](_0x43102a){}[_0x574461(0x15d)](..._0x5a8c97){}[_0x574461(0x199)](..._0xe7ad81){}}export class DebugGroupListener{[_0x574461(0x160)](..._0x1af9c7){var _0x41e1dd=_0x574461,_0x1e79ad={'jIJKf':_0x41e1dd(0x178)};console[_0x41e1dd(0x181)](_0x1e79ad['jIJKf'],..._0x1af9c7);}['onGetGroupBulletinListResult'](..._0x302625){var _0x20fc94=_0x574461,_0x7ac8f={'txSgD':_0x20fc94(0x15e)};console[_0x20fc94(0x181)](_0x7ac8f[_0x20fc94(0x190)],..._0x302625);}[_0x574461(0x189)](..._0x11ba67){var _0x24612f=_0x574461;console[_0x24612f(0x181)]('onGroupAllInfoChange:',..._0x11ba67);}['onGroupBulletinChange'](..._0x45a16){var _0x2dd960=_0x574461,_0x475b1a={'SlAfD':_0x2dd960(0x18f)};console[_0x2dd960(0x181)](_0x475b1a[_0x2dd960(0x174)],..._0x45a16);}[_0x574461(0x196)](..._0x149a3e){var _0x2b4756=_0x574461,_0xafc57b={'CdaRU':_0x2b4756(0x168)};console[_0x2b4756(0x181)](_0xafc57b[_0x2b4756(0x198)],..._0x149a3e);}['onGroupArkInviteStateResult'](..._0x196f98){var _0x4698a7=_0x574461,_0x6f0ae4={'uqrtv':_0x4698a7(0x177)};console[_0x4698a7(0x181)](_0x6f0ae4[_0x4698a7(0x18a)],..._0x196f98);}['onGroupBulletinRichMediaDownloadComplete'](..._0x36de89){var _0x25fe91=_0x574461,_0x3f3435={'oqbzR':_0x25fe91(0x194)};console[_0x25fe91(0x181)](_0x3f3435[_0x25fe91(0x170)],..._0x36de89);}[_0x574461(0x187)](..._0x3e8e04){var _0x3e3135=_0x574461;console[_0x3e3135(0x181)]('onGroupConfMemberChange:',..._0x3e8e04);}[_0x574461(0x163)](..._0x5f4c7b){var _0x56bd29=_0x574461,_0x38beb1={'OBxjw':_0x56bd29(0x15a)};console[_0x56bd29(0x181)](_0x38beb1[_0x56bd29(0x193)],..._0x5f4c7b);}['onGroupExtListUpdate'](..._0x5e77ee){var _0x5e758e=_0x574461,_0x33b4f8={'rzQOW':_0x5e758e(0x192)};console['log'](_0x33b4f8['rzQOW'],..._0x5e77ee);}[_0x574461(0x15c)](..._0x11946d){var _0x5647b9=_0x574461,_0x28dae6={'MSwpQ':_0x5647b9(0x188)};console[_0x5647b9(0x181)](_0x28dae6['MSwpQ'],..._0x11946d);}['onGroupListUpdate'](..._0x4ba1c7){var _0x3f4362=_0x574461,_0x4b7948={'DOquA':_0x3f4362(0x184)};console[_0x3f4362(0x181)](_0x4b7948[_0x3f4362(0x15b)],..._0x4ba1c7);}[_0x574461(0x17a)](..._0x1b9619){var _0x110a6b=_0x574461,_0x21336c={'kvoJi':_0x110a6b(0x17b)};console[_0x110a6b(0x181)](_0x21336c['kvoJi'],..._0x1b9619);}['onGroupBulletinRichMediaProgressUpdate'](..._0x4b4014){var _0x42aa6a=_0x574461,_0x2a4853={'rUMDs':_0x42aa6a(0x182)};console[_0x42aa6a(0x181)](_0x2a4853[_0x42aa6a(0x179)],..._0x4b4014);}['onGroupNotifiesUnreadCountUpdated'](..._0x4e578e){var _0xbbc6c5=_0x574461;console[_0xbbc6c5(0x181)](_0xbbc6c5(0x171),..._0x4e578e);}['onGroupSingleScreenNotifies'](..._0x480c1f){var _0x21d36f=_0x574461,_0x50e97b={'VumDg':'onGroupSingleScreenNotifies:'};console[_0x21d36f(0x181)](_0x50e97b[_0x21d36f(0x176)],..._0x480c1f);}['onGroupsMsgMaskResult'](..._0x9a4f91){console['log']('onGroupsMsgMaskResult:',..._0x9a4f91);}[_0x574461(0x169)](..._0x29da2d){var _0x5adb40=_0x574461;console['log'](_0x5adb40(0x166),..._0x29da2d);}[_0x574461(0x17e)](..._0x310ca2){var _0x443855=_0x574461;console[_0x443855(0x181)](_0x443855(0x17c),..._0x310ca2);}[_0x574461(0x180)](..._0xf618c3){var _0x1a5997=_0x574461,_0x124f9e={'zVphJ':_0x1a5997(0x167)};console[_0x1a5997(0x181)](_0x124f9e[_0x1a5997(0x16f)],..._0xf618c3);}[_0x574461(0x186)](_0x27a562,_0x27891d,_0x4628b0){var _0x4e99cd=_0x574461;console[_0x4e99cd(0x181)]('onMemberInfoChange:',_0x27a562,_0x27891d,_0x4628b0);}[_0x574461(0x197)](..._0xbe9141){var _0x513271=_0x574461,_0x4be82f={'AnaTv':_0x513271(0x183)};console[_0x513271(0x181)](_0x4be82f[_0x513271(0x16a)],..._0xbe9141);}[_0x574461(0x15d)](..._0x13fb5c){var _0x13de3d=_0x574461,_0x2691b3={'VShdl':_0x13de3d(0x18d)};console['log'](_0x2691b3[_0x13de3d(0x16c)],..._0x13fb5c);}[_0x574461(0x199)](..._0x31689a){var _0xb858db=_0x574461;console[_0xb858db(0x181)]('onShutUpMemberListChanged:',..._0x31689a);}}function _0x5bb8(){var _0x1a8dab=['onMemberInfoChange','onGroupConfMemberChange','onGroupFirstBulletinNotify:','onGroupAllInfoChange','uqrtv','onGroupExtListUpdate','314888ksijEw','onSearchMemberChange:','onGroupsMsgMaskResult','onGroupBulletinChange:','txSgD','onGroupBulletinChange','onGroupExtListUpdate:','OBxjw','onGroupBulletinRichMediaDownloadComplete:','onGroupNotifiesUnreadCountUpdated','onGroupBulletinRemindNotify','onMemberListChange','CdaRU','onShutUpMemberListChanged','onGroupDetailInfoChange:','DOquA','onGroupFirstBulletinNotify','onSearchMemberChange','onGetGroupBulletinListResult:','onGroupBulletinRichMediaDownloadComplete','onGroupMemberLevelInfoChange','950ZsKkyG','235944yDouub','onGroupDetailInfoChange','onGroupArkInviteStateResult','56DjswpT','onGroupStatisticInfoChange:','onJoinGroupNoVerifyFlag:','onGroupBulletinRemindNotify:','onGroupStatisticInfoChange','AnaTv','3528960IzwmHU','VShdl','onGroupBulletinRichMediaProgressUpdate','onGetGroupBulletinListResult','zVphJ','oqbzR','onGroupNotifiesUnreadCountUpdated:','330299iHyyxJ','3466756xVNHPa','SlAfD','681776tEfkOO','VumDg','onGroupArkInviteStateResult:','onGroupMemberLevelInfoChange:','rUMDs','onGroupNotifiesUpdated','onGroupNotifiesUpdated:','onJoinGroupNotify:','onGroupSingleScreenNotifies','onJoinGroupNotify','5668015ZOffvJ','onJoinGroupNoVerifyFlag','log','onGroupBulletinRichMediaProgressUpdate:','onMemberListChange:','onGroupListUpdate:','9GMCpvu'];_0x5bb8=function(){return _0x1a8dab;};return _0x5bb8();} \ 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 600f93e6..c12fab61 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x582b(){var _0x5d0961=['onLoginFailed','onLogoutFailed','onQRCodeSessionQuickLoginFailed','onLoginConnected','onUserLoggedIn','onLoginState','7RzOPKB','3sDcZWz','175808qclkaI','1456180LtkSHk','onQRCodeSessionFailed','onLoginConnecting','248bKZkcs','onQRCodeGetPicture','OnConfirmUnusualDeviceFailed','27QGZqhd','907992lLYYlt','70314PgzoOI','6486294WXDzFZ','onQRCodeLoginPollingStarted','onPasswordLoginFailed','2774270rKJftz','3869140TbYJMo'];_0x582b=function(){return _0x5d0961;};return _0x582b();}var _0x2c2b5a=_0x5dca;function _0x5dca(_0x59c7b7,_0xc2c639){var _0x582b2f=_0x582b();return _0x5dca=function(_0x5dca4e,_0x57466c){_0x5dca4e=_0x5dca4e-0xb6;var _0x1b9d92=_0x582b2f[_0x5dca4e];return _0x1b9d92;},_0x5dca(_0x59c7b7,_0xc2c639);}(function(_0x10e212,_0x4fa8cb){var _0x2910d8=_0x5dca,_0x493dd6=_0x10e212();while(!![]){try{var _0xab017d=parseInt(_0x2910d8(0xc5))/0x1*(-parseInt(_0x2910d8(0xc6))/0x2)+-parseInt(_0x2910d8(0xb8))/0x3*(-parseInt(_0x2910d8(0xca))/0x4)+-parseInt(_0x2910d8(0xc7))/0x5+-parseInt(_0x2910d8(0xb9))/0x6*(parseInt(_0x2910d8(0xc4))/0x7)+-parseInt(_0x2910d8(0xb7))/0x8+parseInt(_0x2910d8(0xb6))/0x9*(parseInt(_0x2910d8(0xbc))/0xa)+parseInt(_0x2910d8(0xbd))/0xb;if(_0xab017d===_0x4fa8cb)break;else _0x493dd6['push'](_0x493dd6['shift']());}catch(_0x541992){_0x493dd6['push'](_0x493dd6['shift']());}}}(_0x582b,0xd8b81));export class LoginListener{[_0x2c2b5a(0xc1)](..._0x56a31b){}['onLoginDisConnected'](..._0x4472ec){}[_0x2c2b5a(0xc9)](..._0x170f19){}[_0x2c2b5a(0xcb)](_0x4be3ab){}[_0x2c2b5a(0xba)](..._0x594745){}['onQRCodeSessionUserScaned'](..._0x5a0399){}['onQRCodeLoginSucceed'](_0x20184f){}[_0x2c2b5a(0xc8)](..._0x21e99d){}[_0x2c2b5a(0xbe)](..._0x2e1ae9){}['onLogoutSucceed'](..._0x431595){}[_0x2c2b5a(0xbf)](..._0xe75afb){}[_0x2c2b5a(0xc2)](..._0x4d160e){}[_0x2c2b5a(0xc0)](..._0x55dcec){}[_0x2c2b5a(0xbb)](..._0x4f6f73){}[_0x2c2b5a(0xcc)](..._0x58e066){}['onQQLoginNumLimited'](..._0x228e64){}[_0x2c2b5a(0xc3)](..._0x208827){}} \ No newline at end of file +function _0x82ed(_0x12d722,_0x333a51){var _0x5b0a70=_0x5b0a();return _0x82ed=function(_0x82edee,_0x123278){_0x82edee=_0x82edee-0x78;var _0x4a3e64=_0x5b0a70[_0x82edee];return _0x4a3e64;},_0x82ed(_0x12d722,_0x333a51);}var _0x285073=_0x82ed;(function(_0x526271,_0x57d790){var _0x576982=_0x82ed,_0xc63cf1=_0x526271();while(!![]){try{var _0x5e575d=parseInt(_0x576982(0x89))/0x1*(parseInt(_0x576982(0x84))/0x2)+parseInt(_0x576982(0x8a))/0x3+-parseInt(_0x576982(0x7c))/0x4+-parseInt(_0x576982(0x83))/0x5*(parseInt(_0x576982(0x78))/0x6)+-parseInt(_0x576982(0x87))/0x7+parseInt(_0x576982(0x79))/0x8*(-parseInt(_0x576982(0x8e))/0x9)+parseInt(_0x576982(0x88))/0xa;if(_0x5e575d===_0x57d790)break;else _0xc63cf1['push'](_0xc63cf1['shift']());}catch(_0x7fe55e){_0xc63cf1['push'](_0xc63cf1['shift']());}}}(_0x5b0a,0x8ec2f));function _0x5b0a(){var _0x48c3b7=['onUserLoggedIn','onQRCodeSessionFailed','5qGfaau','61924XeUisn','onLoginConnecting','onLogoutSucceed','6220599AZrBZm','25671400diSztQ','32ofeFzy','1407105NFAANd','onLoginFailed','onQRCodeGetPicture','onLogoutFailed','355329eucYTm','2111856uiVsyB','216oAUvMP','onLoginState','onQRCodeSessionQuickLoginFailed','4542352jErHMz','onQRCodeSessionUserScaned','onPasswordLoginFailed','OnConfirmUnusualDeviceFailed','onQRCodeLoginSucceed'];_0x5b0a=function(){return _0x48c3b7;};return _0x5b0a();}export class LoginListener{['onLoginConnected'](..._0x49df2d){}['onLoginDisConnected'](..._0xc21ac3){}[_0x285073(0x85)](..._0x2c716b){}[_0x285073(0x8c)](_0x5cf3c3){}['onQRCodeLoginPollingStarted'](..._0x3fda99){}[_0x285073(0x7d)](..._0x105883){}[_0x285073(0x80)](_0x73305d){}[_0x285073(0x82)](..._0x322d2d){}[_0x285073(0x8b)](..._0x12212e){}[_0x285073(0x86)](..._0x50a70e){}[_0x285073(0x8d)](..._0x1ad184){}[_0x285073(0x81)](..._0x5ece24){}[_0x285073(0x7b)](..._0x5a4517){}[_0x285073(0x7e)](..._0xe375e1){}[_0x285073(0x7f)](..._0x54c302){}['onQQLoginNumLimited'](..._0x22a28b){}[_0x285073(0x7a)](..._0x20f36b){}} \ 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 33836cc5..8f40e3ca 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -function _0x218c(){var _0x105ea5=['onUnreadCntUpdate','onFeedEventUpdate','380548ltVsCA','onRichMediaDownloadComplete','onGroupFileInfoAdd','onRecvS2CMsg','onRedTouchChanged','48fWMTdj','onBroadcastHelperDownloadComplete','onContactUnreadCntUpdate','2621744EOFDzB','onNtFirstViewMsgSyncEnd','onFirstViewDirectMsgUpdate','onRecvSysMsg','5FjkwqL','onRichMediaUploadComplete','onlineStatusBigIconDownloadPush','onRecvGroupGuildFlag','onMsgRecall','onUserSecQualityChanged','onMsgInfoListAdd','141172vFiuWz','onTempChatInfoUpdate','onHitEmojiKeywordResult','onlineStatusSmallIconDownloadPush','7986573eSOgiF','onGroupTransferInfoUpdate','2140868hdruUl','onGroupTransferInfoAdd','120lsErTA','onUnreadCntAfterFirstView','onGroupGuildUpdate','970516hRhJnW','onGroupFileInfoUpdate','22908960tdkcUP','onSearchGroupFileInfoUpdate','onGrabPasswordRedBag','onLineDev','onLogLevelChanged','onSysMsgNotification','onUserOnlineStatusChanged','onUserChannelTabStatusChanged','onBroadcastHelperProgerssUpdate','onMsgBoxChanged','onGuildMsgAbFlagChanged','onAddSendMsg','onRichMediaProgerssUpdate','onGuildNotificationAbstractUpdate','onRecvOnlineFileMsg','onMsgAbstractUpdate','onMsgSettingUpdate','onMsgWithRichLinkInfoUpdate','onBroadcastHelperProgressUpdate','onFileMsgCome','onInputStatusPush','onEmojiDownloadComplete','onHitCsRelatedEmojiResult','onUserTabStatusChanged','onDraftUpdate','onFirstViewGroupGuildMapping','onMsgSecurityNotify','onHitRelatedEmojiResult','onRecvUDCFlag','onMsgEventListUpdate'];_0x218c=function(){return _0x105ea5;};return _0x218c();}var _0x22bd07=_0xb647;(function(_0x3d4901,_0x38e564){var _0x188c81=_0xb647,_0x282308=_0x3d4901();while(!![]){try{var _0x4b2510=-parseInt(_0x188c81(0x13c))/0x1+parseInt(_0x188c81(0x131))/0x2*(-parseInt(_0x188c81(0x123))/0x3)+-parseInt(_0x188c81(0x137))/0x4*(-parseInt(_0x188c81(0x12a))/0x5)+-parseInt(_0x188c81(0x139))/0x6*(-parseInt(_0x188c81(0x11e))/0x7)+-parseInt(_0x188c81(0x126))/0x8+-parseInt(_0x188c81(0x135))/0x9+parseInt(_0x188c81(0x13e))/0xa;if(_0x4b2510===_0x38e564)break;else _0x282308['push'](_0x282308['shift']());}catch(_0x52a7af){_0x282308['push'](_0x282308['shift']());}}}(_0x218c,0x92172));function _0xb647(_0x500d81,_0x1ec910){var _0x218c01=_0x218c();return _0xb647=function(_0xb64745,_0x1455b3){_0xb64745=_0xb64745-0x104;var _0x35f73b=_0x218c01[_0xb64745];return _0x35f73b;},_0xb647(_0x500d81,_0x1ec910);}export class MsgListener{[_0x22bd07(0x109)](_0x3d571e){}[_0x22bd07(0x124)](_0x1cab30){}[_0x22bd07(0x110)](_0x558124){}['onChannelFreqLimitInfoUpdate'](_0x3438ca,_0x3e3633,_0x3268ea){}[_0x22bd07(0x125)](_0x2867e4){}['onCustomWithdrawConfigUpdate'](_0x4a3c77){}[_0x22bd07(0x116)](_0x58dd3d,_0x5aec32,_0x1254cb){}[_0x22bd07(0x113)](_0x185e6e){}['onEmojiResourceUpdate'](_0x31519f){}[_0x22bd07(0x11d)](_0x5e22f6){}[_0x22bd07(0x111)](_0x5d51e4){}[_0x22bd07(0x128)](_0x5926e2){}[_0x22bd07(0x117)](_0x5254e3){}[_0x22bd07(0x140)](_0x575ae3,_0x4b697b,_0x28ad71,_0x35c61e,_0x3b8270){}[_0x22bd07(0x120)](_0x1ab9bb){}[_0x22bd07(0x13d)](_0x437239){}[_0x22bd07(0x13b)](_0x405b58){}[_0x22bd07(0x138)](_0x2b5a52){}[_0x22bd07(0x136)](_0x3cab22){}['onGuildInteractiveUpdate'](_0x52cb30){}[_0x22bd07(0x108)](_0x5043ba){}[_0x22bd07(0x10b)](_0x1d8b36){}[_0x22bd07(0x114)](_0x81a6b){}[_0x22bd07(0x133)](_0x142d4b){}[_0x22bd07(0x119)](_0x2eca08){}['onImportOldDbProgressUpdate'](_0x3210e1){}[_0x22bd07(0x112)](_0x181ef1){}['onKickedOffLine'](_0x529c5b){}[_0x22bd07(0x141)](_0x37489f){}[_0x22bd07(0x142)](_0x568f3d){}[_0x22bd07(0x10d)](_0x5b6cc5){}[_0x22bd07(0x107)](_0x5df4f2){}['onMsgDelete'](_0x29dbe2,_0x6dd4f4){}[_0x22bd07(0x11b)](_0x467bcd){}[_0x22bd07(0x130)](_0x2514f9){}['onMsgInfoListUpdate'](_0x59f5df){}['onMsgQRCodeStatusChanged'](_0x3b7bf9){}[_0x22bd07(0x12e)](_0x28f599,_0x1ad17c,_0x230cdd){}[_0x22bd07(0x118)](_0x57a3d2){}[_0x22bd07(0x10e)](_0x56deaf){}[_0x22bd07(0x127)](){}['onNtMsgSyncEnd'](){}['onNtMsgSyncStart'](){}['onReadFeedEventUpdate'](_0x7bf450){}[_0x22bd07(0x12d)](_0x1f03d1){}['onRecvMsg'](_0x1994a8){}['onRecvMsgSvrRspTransInfo'](_0x23b040,_0x2858c1,_0x10f2b1,_0x5958e9,_0x12521a,_0x14f5a5){}[_0x22bd07(0x10c)](_0x1a7510){}[_0x22bd07(0x121)](_0x2f7d27){}[_0x22bd07(0x129)](_0x2527e5){}[_0x22bd07(0x11a)](_0x22b50c){}[_0x22bd07(0x11f)](_0x4d12a2){}[_0x22bd07(0x10a)](_0x5e4789){}[_0x22bd07(0x12b)](_0x3c869d){}[_0x22bd07(0x13f)](_0x3e6222){}['onSendMsgError'](_0x4a1748,_0xe0a1d8,_0x2c25b0,_0x49406d){}[_0x22bd07(0x143)](_0x38c274,_0x2b37af,_0x43181e,_0x919505){}[_0x22bd07(0x132)](_0x226f78){}[_0x22bd07(0x13a)](_0x18de31){}[_0x22bd07(0x11c)](_0x5cf896){}[_0x22bd07(0x105)](_0x50df4c){}[_0x22bd07(0x104)](_0x492368){}[_0x22bd07(0x115)](_0x125721){}[_0x22bd07(0x12c)](_0x439b41,_0x1259cc,_0x477cf8){}[_0x22bd07(0x134)](_0x2cc4cb,_0x354888,_0x54921e){}[_0x22bd07(0x12f)](..._0x424710){}[_0x22bd07(0x10f)](..._0xc3e7b3){}[_0x22bd07(0x122)](..._0x11dd16){}[_0x22bd07(0x106)](..._0x3a3683){}} \ No newline at end of file +var _0x4acc15=_0x1d8e;function _0x1d8e(_0x40143f,_0xa9a2f1){var _0xdca204=_0xdca2();return _0x1d8e=function(_0x1d8ec1,_0x43853a){_0x1d8ec1=_0x1d8ec1-0xe8;var _0x338520=_0xdca204[_0x1d8ec1];return _0x338520;},_0x1d8e(_0x40143f,_0xa9a2f1);}(function(_0x5ee8bc,_0x435994){var _0x466f6b=_0x1d8e,_0x378ee9=_0x5ee8bc();while(!![]){try{var _0x180f6b=-parseInt(_0x466f6b(0x123))/0x1*(parseInt(_0x466f6b(0x100))/0x2)+-parseInt(_0x466f6b(0xec))/0x3*(-parseInt(_0x466f6b(0x107))/0x4)+-parseInt(_0x466f6b(0x112))/0x5+-parseInt(_0x466f6b(0x108))/0x6+parseInt(_0x466f6b(0x111))/0x7+-parseInt(_0x466f6b(0x124))/0x8*(parseInt(_0x466f6b(0x10e))/0x9)+parseInt(_0x466f6b(0xf8))/0xa;if(_0x180f6b===_0x435994)break;else _0x378ee9['push'](_0x378ee9['shift']());}catch(_0x1d87cc){_0x378ee9['push'](_0x378ee9['shift']());}}}(_0xdca2,0x2e71a));function _0xdca2(){var _0x69fe28=['onImportOldDbProgressUpdate','onLineDev','10GgMxKM','onRecvUDCFlag','onRecvS2CMsg','onEmojiDownloadComplete','onGroupFileInfoUpdate','onMsgInfoListUpdate','onSearchGroupFileInfoUpdate','119216RFMczt','1712178NbNDJE','onCustomWithdrawConfigUpdate','onMsgInfoListAdd','onRichMediaUploadComplete','onHitCsRelatedEmojiResult','onFileMsgCome','27QczEYs','onRichMediaDownloadComplete','onMsgSettingUpdate','1194200cYztyV','841670RAOFNA','onUserSecQualityChanged','onMsgDelete','onUserTabStatusChanged','onNtMsgSyncEnd','onLogLevelChanged','onMsgRecall','onChannelFreqLimitInfoUpdate','onRecvSysMsg','onFirstViewGroupGuildMapping','onUserChannelTabStatusChanged','onEmojiResourceUpdate','onDraftUpdate','onContactUnreadCntUpdate','onBroadcastHelperProgressUpdate','onRecvGroupGuildFlag','onSendMsgError','67739pUjkQh','650632WilwQP','onMsgEventListUpdate','onNtFirstViewMsgSyncEnd','onMsgWithRichLinkInfoUpdate','onFirstViewDirectMsgUpdate','36jrRgKP','onGuildNotificationAbstractUpdate','onHitEmojiKeywordResult','onInputStatusPush','onGroupGuildUpdate','onGroupFileInfoAdd','onGroupTransferInfoAdd','onBroadcastHelperDownloadComplete','onBroadcastHelperProgerssUpdate','onHitRelatedEmojiResult','onMsgQRCodeStatusChanged','onReadFeedEventUpdate','6983650BVEQuK','onAddSendMsg','onRecvOnlineFileMsg','onNtMsgSyncStart','onTempChatInfoUpdate','onUnreadCntUpdate'];_0xdca2=function(){return _0x69fe28;};return _0xdca2();}export class MsgListener{[_0x4acc15(0xf9)](_0x622ae0){}[_0x4acc15(0xf3)](_0x3e2ff6){}[_0x4acc15(0x120)](_0x5331a3){}[_0x4acc15(0x119)](_0x455a45,_0x317b63,_0x1f605f){}[_0x4acc15(0x11f)](_0x2d152e){}[_0x4acc15(0x109)](_0x224254){}[_0x4acc15(0x11e)](_0x3e0a6e,_0x3ef087,_0x1d441c){}[_0x4acc15(0x103)](_0xec3f0a){}[_0x4acc15(0x11d)](_0x467a30){}['onFeedEventUpdate'](_0x205052){}[_0x4acc15(0x10d)](_0x3ba451){}[_0x4acc15(0xeb)](_0x204a86){}[_0x4acc15(0x11b)](_0x45856b){}['onGrabPasswordRedBag'](_0x129158,_0x52d09b,_0x2fb890,_0x20d8fa,_0x547405){}[_0x4acc15(0xf1)](_0xde5744){}[_0x4acc15(0x104)](_0x28c3d4){}[_0x4acc15(0xf0)](_0x44b4ee){}[_0x4acc15(0xf2)](_0x19c8d6){}['onGroupTransferInfoUpdate'](_0x47c3e6){}['onGuildInteractiveUpdate'](_0x5b19b2){}['onGuildMsgAbFlagChanged'](_0x3cc165){}[_0x4acc15(0xed)](_0x4979ae){}[_0x4acc15(0x10c)](_0x229076){}[_0x4acc15(0xee)](_0x51db3f){}[_0x4acc15(0xf5)](_0x9ad2b8){}[_0x4acc15(0xfe)](_0x33582e){}[_0x4acc15(0xef)](_0x21ed33){}['onKickedOffLine'](_0x471123){}[_0x4acc15(0xff)](_0x442b12){}[_0x4acc15(0x117)](_0x2a46ab){}['onMsgAbstractUpdate'](_0x211da0){}['onMsgBoxChanged'](_0x145d31){}[_0x4acc15(0x114)](_0x2ab496,_0x3a7d2b){}[_0x4acc15(0xe8)](_0x582875){}[_0x4acc15(0x10a)](_0x338d4f){}[_0x4acc15(0x105)](_0x16763c){}[_0x4acc15(0xf6)](_0x378121){}[_0x4acc15(0x118)](_0x5728e8,_0x1fbc47,_0x43302b){}['onMsgSecurityNotify'](_0x1d7508){}[_0x4acc15(0x110)](_0x14b457){}[_0x4acc15(0xe9)](){}[_0x4acc15(0x116)](){}[_0x4acc15(0xfb)](){}[_0x4acc15(0xf7)](_0x46c7eb){}[_0x4acc15(0x121)](_0x2e9dda){}['onRecvMsg'](_0x1c31f6){}['onRecvMsgSvrRspTransInfo'](_0x3cabb7,_0x26b398,_0x29f3f6,_0x217def,_0x142c7b,_0x5c4048){}[_0x4acc15(0xfa)](_0x41aca4){}[_0x4acc15(0x102)](_0x225d40){}[_0x4acc15(0x11a)](_0x7a59cc){}[_0x4acc15(0x101)](_0x11862b){}[_0x4acc15(0x10f)](_0x4ed3e4){}['onRichMediaProgerssUpdate'](_0x385ad9){}[_0x4acc15(0x10b)](_0x27fa25){}[_0x4acc15(0x106)](_0x1be7a9){}[_0x4acc15(0x122)](_0x1fddab,_0x29f1e5,_0x14c65f,_0x443e9c){}['onSysMsgNotification'](_0x9b534,_0x106989,_0x57009f,_0x2a2e26){}[_0x4acc15(0xfc)](_0x207d73){}['onUnreadCntAfterFirstView'](_0x40a3d4){}[_0x4acc15(0xfd)](_0x35ba0d){}[_0x4acc15(0x11c)](_0x853ab2){}['onUserOnlineStatusChanged'](_0xbb3172){}[_0x4acc15(0x115)](_0x115a51){}['onlineStatusBigIconDownloadPush'](_0x4bf7fe,_0x11c847,_0x398976){}['onlineStatusSmallIconDownloadPush'](_0x88a5fa,_0x113467,_0x132cb9){}[_0x4acc15(0x113)](..._0x18fc04){}[_0x4acc15(0xea)](..._0x3f6dc4){}['onRedTouchChanged'](..._0x26cf0e){}[_0x4acc15(0xf4)](..._0x67a612){}} \ 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 6a3f7482..5aec7253 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -function _0x5968(_0x10a104,_0x4b350c){var _0x2ae14e=_0x2ae1();return _0x5968=function(_0x596849,_0x2995db){_0x596849=_0x596849-0x1c9;var _0x4fc6b7=_0x2ae14e[_0x596849];return _0x4fc6b7;},_0x5968(_0x10a104,_0x4b350c);}var _0x43a2cb=_0x5968;(function(_0x98cb85,_0x5e7b60){var _0x2161a1=_0x5968,_0x137d08=_0x98cb85();while(!![]){try{var _0x58ad88=parseInt(_0x2161a1(0x1ce))/0x1*(parseInt(_0x2161a1(0x1d1))/0x2)+parseInt(_0x2161a1(0x1d5))/0x3*(-parseInt(_0x2161a1(0x1cc))/0x4)+-parseInt(_0x2161a1(0x1cf))/0x5*(-parseInt(_0x2161a1(0x1ca))/0x6)+-parseInt(_0x2161a1(0x1d7))/0x7+-parseInt(_0x2161a1(0x1d0))/0x8*(-parseInt(_0x2161a1(0x1cb))/0x9)+-parseInt(_0x2161a1(0x1d4))/0xa*(parseInt(_0x2161a1(0x1c9))/0xb)+parseInt(_0x2161a1(0x1d3))/0xc;if(_0x58ad88===_0x5e7b60)break;else _0x137d08['push'](_0x137d08['shift']());}catch(_0x2d0309){_0x137d08['push'](_0x137d08['shift']());}}}(_0x2ae1,0xf3b3b));export class ProfileListener{[_0x43a2cb(0x1d6)](..._0x2ac0e9){}['onProfileDetailInfoChanged'](_0x5af307){}[_0x43a2cb(0x1cd)](..._0xc72f31){}[_0x43a2cb(0x1d2)](..._0x542477){}[_0x43a2cb(0x1d8)](..._0x362175){}}function _0x2ae1(){var _0x4826ae=['16466ZVCKHq','1213130YnVQdC','6318920eqgucL','72FogOUm','onSelfStatusChanged','12817008digalS','10LejEzx','1044XTyXpE','onProfileSimpleChanged','10474002urjhmT','onStrangerRemarkChanged','5096487outKyX','12CJkfXA','18sRoWYY','8828rIZJHb','onStatusUpdate'];_0x2ae1=function(){return _0x4826ae;};return _0x2ae1();} \ No newline at end of file +var _0x25b3f6=_0x2b98;(function(_0x299df5,_0x1895e4){var _0x52c9ba=_0x2b98,_0x1eb2fc=_0x299df5();while(!![]){try{var _0x54953b=parseInt(_0x52c9ba(0xf2))/0x1*(parseInt(_0x52c9ba(0xf5))/0x2)+parseInt(_0x52c9ba(0xfa))/0x3*(parseInt(_0x52c9ba(0xfb))/0x4)+-parseInt(_0x52c9ba(0xee))/0x5*(-parseInt(_0x52c9ba(0xf6))/0x6)+parseInt(_0x52c9ba(0xed))/0x7+parseInt(_0x52c9ba(0xec))/0x8*(parseInt(_0x52c9ba(0xf1))/0x9)+-parseInt(_0x52c9ba(0xef))/0xa*(parseInt(_0x52c9ba(0xf3))/0xb)+-parseInt(_0x52c9ba(0xf9))/0xc*(parseInt(_0x52c9ba(0xfc))/0xd);if(_0x54953b===_0x1895e4)break;else _0x1eb2fc['push'](_0x1eb2fc['shift']());}catch(_0x4e0501){_0x1eb2fc['push'](_0x1eb2fc['shift']());}}}(_0x55c1,0x52dd1));export class ProfileListener{[_0x25b3f6(0xf4)](..._0x54ca04){}[_0x25b3f6(0xf0)](_0x3831dd){}['onStatusUpdate'](..._0x241658){}[_0x25b3f6(0xf8)](..._0x4aca99){}[_0x25b3f6(0xf7)](..._0x4e5da6){}}function _0x2b98(_0x46df04,_0xd93992){var _0x55c126=_0x55c1();return _0x2b98=function(_0x2b9890,_0x336730){_0x2b9890=_0x2b9890-0xec;var _0x29248d=_0x55c126[_0x2b9890];return _0x29248d;},_0x2b98(_0x46df04,_0xd93992);}function _0x55c1(){var _0x4c9a80=['onProfileSimpleChanged','114wBrsfe','144UZgMqE','onStrangerRemarkChanged','onSelfStatusChanged','84iiohxm','17439pMxWQu','452cfODdQ','4342741lxKIxn','1335240GOBbjl','4547676UfyheI','117340fEgnfj','20FaQSHg','onProfileDetailInfoChanged','36nilcLk','4201boBwRe','544709TTsBtD'];_0x55c1=function(){return _0x4c9a80;};return _0x55c1();} \ 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 54cd8df6..d7dc2d22 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x4f5e3c=_0x24f9;function _0x24f9(_0x41c9dc,_0x5ed004){var _0x15d7ee=_0x15d7();return _0x24f9=function(_0x24f9d5,_0x350725){_0x24f9d5=_0x24f9d5-0xd9;var _0x16f5bf=_0x15d7ee[_0x24f9d5];return _0x16f5bf;},_0x24f9(_0x41c9dc,_0x5ed004);}(function(_0x2a5932,_0x5155e9){var _0x1bac60=_0x24f9,_0x2366c2=_0x2a5932();while(!![]){try{var _0x3c62d2=parseInt(_0x1bac60(0xdc))/0x1*(parseInt(_0x1bac60(0xe4))/0x2)+-parseInt(_0x1bac60(0xe2))/0x3+-parseInt(_0x1bac60(0xe5))/0x4+parseInt(_0x1bac60(0xde))/0x5+-parseInt(_0x1bac60(0xe0))/0x6*(-parseInt(_0x1bac60(0xda))/0x7)+parseInt(_0x1bac60(0xe3))/0x8*(parseInt(_0x1bac60(0xdd))/0x9)+-parseInt(_0x1bac60(0xdf))/0xa*(parseInt(_0x1bac60(0xe1))/0xb);if(_0x3c62d2===_0x5155e9)break;else _0x2366c2['push'](_0x2366c2['shift']());}catch(_0x1c0c2f){_0x2366c2['push'](_0x2366c2['shift']());}}}(_0x15d7,0x212a0));function _0x15d7(){var _0x15e045=['32951ldCltf','10872rahaSW','799265pDCMQv','62590STTdqb','1251672LjwWxA','363AkDrbp','566994plsVMU','1712MFMEge','10BwXoYk','1041388dmuCuo','onRobotProfileChanged','7AKSKCA','onRobotListChanged'];_0x15d7=function(){return _0x15e045;};return _0x15d7();}export class KernelRobotListener{['onRobotFriendListChanged'](..._0x1e7be8){}[_0x4f5e3c(0xdb)](..._0x1247d0){}[_0x4f5e3c(0xd9)](..._0x1ac5df){}} \ No newline at end of file +var _0x4c5c18=_0x2078;function _0x2078(_0xce22f9,_0x4e5efa){var _0x166dcd=_0x166d();return _0x2078=function(_0x207838,_0x305c88){_0x207838=_0x207838-0x10a;var _0x32d417=_0x166dcd[_0x207838];return _0x32d417;},_0x2078(_0xce22f9,_0x4e5efa);}(function(_0x1355bd,_0x4ab387){var _0x55f5c2=_0x2078,_0x5b00c4=_0x1355bd();while(!![]){try{var _0x3a655f=parseInt(_0x55f5c2(0x113))/0x1*(parseInt(_0x55f5c2(0x10e))/0x2)+parseInt(_0x55f5c2(0x10a))/0x3+parseInt(_0x55f5c2(0x114))/0x4+parseInt(_0x55f5c2(0x10d))/0x5*(parseInt(_0x55f5c2(0x112))/0x6)+-parseInt(_0x55f5c2(0x110))/0x7*(parseInt(_0x55f5c2(0x111))/0x8)+parseInt(_0x55f5c2(0x10f))/0x9+-parseInt(_0x55f5c2(0x10c))/0xa;if(_0x3a655f===_0x4ab387)break;else _0x5b00c4['push'](_0x5b00c4['shift']());}catch(_0x137b0d){_0x5b00c4['push'](_0x5b00c4['shift']());}}}(_0x166d,0x49246));export class KernelRobotListener{['onRobotFriendListChanged'](..._0x375b0b){}['onRobotListChanged'](..._0x569982){}[_0x4c5c18(0x10b)](..._0x496753){}}function _0x166d(){var _0x159b8c=['15800ULBtEE','6rTKGfd','14684FxRWEA','1981840mpEwmI','705948ewkYoS','onRobotProfileChanged','4866010ErPFBC','1297795zBVQab','14RNrZfS','668187YJCrEq','1351UVUmHE'];_0x166d=function(){return _0x159b8c;};return _0x166d();} \ 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 086d6f1c..2366af59 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -function _0x1b91(){var _0x409bbe=['7888342yxUuib','537522fXRTcs','64646dLKRvj','onOpentelemetryInit','onGProSessionCreate','7019560wYaRar','onSessionInitComplete','5791370efnpzk','1839200QfKidS','69CxGLai','onGetSelfTinyId','1070044GDIwWk'];_0x1b91=function(){return _0x409bbe;};return _0x1b91();}var _0x35fcc1=_0x406e;(function(_0x5f0222,_0x17fda4){var _0x3f8463=_0x406e,_0x294564=_0x5f0222();while(!![]){try{var _0x5bd5b5=parseInt(_0x3f8463(0x1e5))/0x1+-parseInt(_0x3f8463(0x1e8))/0x2*(-parseInt(_0x3f8463(0x1ef))/0x3)+-parseInt(_0x3f8463(0x1ee))/0x4+parseInt(_0x3f8463(0x1ed))/0x5+parseInt(_0x3f8463(0x1e7))/0x6+-parseInt(_0x3f8463(0x1e6))/0x7+-parseInt(_0x3f8463(0x1eb))/0x8;if(_0x5bd5b5===_0x17fda4)break;else _0x294564['push'](_0x294564['shift']());}catch(_0x128f3d){_0x294564['push'](_0x294564['shift']());}}}(_0x1b91,0x91cbf));function _0x406e(_0x31312e,_0x5bb25a){var _0x1b91c6=_0x1b91();return _0x406e=function(_0x406e9f,_0x3b4532){_0x406e9f=_0x406e9f-0x1e5;var _0x5c55b2=_0x1b91c6[_0x406e9f];return _0x5c55b2;},_0x406e(_0x31312e,_0x5bb25a);}export class SessionListener{['onNTSessionCreate'](_0x449150){}[_0x35fcc1(0x1ea)](_0x246d30){}[_0x35fcc1(0x1ec)](_0x5de750){}[_0x35fcc1(0x1e9)](_0x2f51c9){}['onUserOnlineResult'](_0x54eb75){}[_0x35fcc1(0x1f0)](_0x662ac4){}} \ No newline at end of file +var _0x592279=_0x41b1;(function(_0x5c3449,_0x6e327d){var _0x226ecf=_0x41b1,_0x142fc8=_0x5c3449();while(!![]){try{var _0x1ab3f7=-parseInt(_0x226ecf(0x1ad))/0x1*(parseInt(_0x226ecf(0x1af))/0x2)+parseInt(_0x226ecf(0x1b0))/0x3*(-parseInt(_0x226ecf(0x1b1))/0x4)+-parseInt(_0x226ecf(0x1b4))/0x5+parseInt(_0x226ecf(0x1b6))/0x6+parseInt(_0x226ecf(0x1ac))/0x7*(-parseInt(_0x226ecf(0x1b8))/0x8)+parseInt(_0x226ecf(0x1b3))/0x9+parseInt(_0x226ecf(0x1b5))/0xa*(parseInt(_0x226ecf(0x1b7))/0xb);if(_0x1ab3f7===_0x6e327d)break;else _0x142fc8['push'](_0x142fc8['shift']());}catch(_0x500de2){_0x142fc8['push'](_0x142fc8['shift']());}}}(_0x3c3f,0xc97b0));function _0x41b1(_0x28cee1,_0x3e6962){var _0x3c3fbd=_0x3c3f();return _0x41b1=function(_0x41b140,_0xc36ffd){_0x41b140=_0x41b140-0x1ac;var _0x618ffb=_0x3c3fbd[_0x41b140];return _0x618ffb;},_0x41b1(_0x28cee1,_0x3e6962);}export class SessionListener{[_0x592279(0x1ae)](_0x3ad8ca){}['onGProSessionCreate'](_0x4eb58b){}[_0x592279(0x1b2)](_0x560d00){}[_0x592279(0x1ba)](_0x5c8694){}[_0x592279(0x1b9)](_0x25415d){}['onGetSelfTinyId'](_0xabfe69){}}function _0x3c3f(){var _0x522460=['1047080pRmeQF','onSessionInitComplete','14303439tRqfWa','5561475vLALrM','20MrtNxA','3585462OhfKig','2779898ApjizD','8xAyGGC','onUserOnlineResult','onOpentelemetryInit','1737309ssHowN','61192vDhmpb','onNTSessionCreate','8CscAcB','3XvOMMO'];_0x3c3f=function(){return _0x522460;};return _0x3c3f();} \ 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 6ff9fae4..e8748aae 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -function _0x21cd(){var _0x250c48=['6iWEdUq','190110rPgztq','9635HZABYq','56942NyVQHy','onChatCleanDone','716067VhlcbM','296cToAUo','3MAksHa','63JNStRC','472WJWFTI','117418rKoFqf','6195360yAPYZa','onFinishScan','9543ZplJog'];_0x21cd=function(){return _0x250c48;};return _0x21cd();}function _0x5c3c(_0x62de6b,_0x4a7340){var _0x21cdc8=_0x21cd();return _0x5c3c=function(_0x5c3c1d,_0x398e44){_0x5c3c1d=_0x5c3c1d-0xc6;var _0x5292c2=_0x21cdc8[_0x5c3c1d];return _0x5292c2;},_0x5c3c(_0x62de6b,_0x4a7340);}var _0x32f1f3=_0x5c3c;(function(_0x5b3d2a,_0x495ba1){var _0x8b812c=_0x5c3c,_0x5564fb=_0x5b3d2a();while(!![]){try{var _0x227902=parseInt(_0x8b812c(0xca))/0x1*(parseInt(_0x8b812c(0xc6))/0x2)+parseInt(_0x8b812c(0xd0))/0x3*(parseInt(_0x8b812c(0xcc))/0x4)+-parseInt(_0x8b812c(0xd3))/0x5*(parseInt(_0x8b812c(0xd1))/0x6)+-parseInt(_0x8b812c(0xcd))/0x7*(parseInt(_0x8b812c(0xc9))/0x8)+-parseInt(_0x8b812c(0xcb))/0x9*(-parseInt(_0x8b812c(0xd2))/0xa)+-parseInt(_0x8b812c(0xc8))/0xb+parseInt(_0x8b812c(0xce))/0xc;if(_0x227902===_0x495ba1)break;else _0x5564fb['push'](_0x5564fb['shift']());}catch(_0x3679bf){_0x5564fb['push'](_0x5564fb['shift']());}}}(_0x21cd,0x67242));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x106422){}['onScanCacheProgressChanged'](_0x41f2b1){}['onCleanCacheStorageChanged'](_0x5adade){}[_0x32f1f3(0xcf)](_0xd43430){}[_0x32f1f3(0xc7)](_0x1e5543){}} \ No newline at end of file +function _0x33a3(_0x39b490,_0x35250c){var _0x563672=_0x5636();return _0x33a3=function(_0x33a3a7,_0x4b6ffe){_0x33a3a7=_0x33a3a7-0x10a;var _0x30e4f1=_0x563672[_0x33a3a7];return _0x30e4f1;},_0x33a3(_0x39b490,_0x35250c);}var _0x5b751b=_0x33a3;(function(_0x328e41,_0x22f3a4){var _0x5a6397=_0x33a3,_0x3976d8=_0x328e41();while(!![]){try{var _0x24b05e=-parseInt(_0x5a6397(0x10f))/0x1+-parseInt(_0x5a6397(0x112))/0x2*(-parseInt(_0x5a6397(0x113))/0x3)+-parseInt(_0x5a6397(0x117))/0x4*(parseInt(_0x5a6397(0x111))/0x5)+parseInt(_0x5a6397(0x116))/0x6*(-parseInt(_0x5a6397(0x110))/0x7)+parseInt(_0x5a6397(0x10b))/0x8*(parseInt(_0x5a6397(0x10a))/0x9)+-parseInt(_0x5a6397(0x115))/0xa*(-parseInt(_0x5a6397(0x10d))/0xb)+-parseInt(_0x5a6397(0x114))/0xc;if(_0x24b05e===_0x22f3a4)break;else _0x3976d8['push'](_0x3976d8['shift']());}catch(_0x1c6248){_0x3976d8['push'](_0x3976d8['shift']());}}}(_0x5636,0x25521));function _0x5636(){var _0x388a42=['8072xBrLZA','onCleanCacheStorageChanged','3036XQiqYa','onChatCleanDone','59225XTTSAg','648347PWeCSe','805EqnKVX','538834tqJdfY','3FikJUG','1569492YFklTk','4690isrZDO','6eZvfnX','2148NhXTfn','onCleanCacheProgressChanged','1098XxKwvt'];_0x5636=function(){return _0x388a42;};return _0x5636();}export class StorageCleanListener{[_0x5b751b(0x118)](_0x5ab385){}['onScanCacheProgressChanged'](_0x24db5b){}[_0x5b751b(0x10c)](_0x101be8){}['onFinishScan'](_0x2fe6cf){}[_0x5b751b(0x10e)](_0x3ec951){}} \ 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 6354441c..eedf071c 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x2c8bfd,_0x5de64c){var _0x4ae7eb=_0x335e,_0x462a1b=_0x2c8bfd();while(!![]){try{var _0x56e981=-parseInt(_0x4ae7eb(0xe6))/0x1+parseInt(_0x4ae7eb(0xe9))/0x2*(parseInt(_0x4ae7eb(0xe3))/0x3)+-parseInt(_0x4ae7eb(0xe4))/0x4*(parseInt(_0x4ae7eb(0xe7))/0x5)+parseInt(_0x4ae7eb(0xe8))/0x6+parseInt(_0x4ae7eb(0xea))/0x7*(-parseInt(_0x4ae7eb(0xeb))/0x8)+parseInt(_0x4ae7eb(0xe2))/0x9+parseInt(_0x4ae7eb(0xe5))/0xa;if(_0x56e981===_0x5de64c)break;else _0x462a1b['push'](_0x462a1b['shift']());}catch(_0x5b3b4f){_0x462a1b['push'](_0x462a1b['shift']());}}}(_0xf74a,0xe9909));export*from'./NodeIKernelSessionListener';function _0x335e(_0x5e66cd,_0x6bd2f5){var _0xf74adf=_0xf74a();return _0x335e=function(_0x335e43,_0x2a15c0){_0x335e43=_0x335e43-0xe2;var _0x16d139=_0xf74adf[_0x335e43];return _0x16d139;},_0x335e(_0x5e66cd,_0x6bd2f5);}export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';function _0xf74a(){var _0xa3394a=['707544dOAHEe','862438URKrYh','1712935dgaPdc','48QZHsxP','12354876htOLdF','6olFBuw','67220UWjEby','25270160KPJMXu','1362906qmtmht','325gkQBrq'];_0xf74a=function(){return _0xa3394a;};return _0xf74a();}export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x8c04bf,_0x5e7762){var _0x58354c=_0x29ed,_0x153c44=_0x8c04bf();while(!![]){try{var _0x4eb94e=parseInt(_0x58354c(0x157))/0x1+parseInt(_0x58354c(0x156))/0x2+-parseInt(_0x58354c(0x155))/0x3+-parseInt(_0x58354c(0x158))/0x4+-parseInt(_0x58354c(0x152))/0x5*(-parseInt(_0x58354c(0x151))/0x6)+parseInt(_0x58354c(0x154))/0x7+-parseInt(_0x58354c(0x159))/0x8*(parseInt(_0x58354c(0x153))/0x9);if(_0x4eb94e===_0x5e7762)break;else _0x153c44['push'](_0x153c44['shift']());}catch(_0x556de9){_0x153c44['push'](_0x153c44['shift']());}}}(_0x48e5,0xb9851));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x48e5(){var _0x259ff5=['256160GKbpSS','219747bZvhvF','1785492vYXSFJ','112664jnEmYx','470790xrBRyO','95ymvAOg','387nrPyDK','5862143fGurmY','2592840TEJjuh'];_0x48e5=function(){return _0x259ff5;};return _0x48e5();}export*from'./NodeIKernelBuddyListener';function _0x29ed(_0x2e0c23,_0x1abf8e){var _0x48e564=_0x48e5();return _0x29ed=function(_0x29ed5c,_0x8156c){_0x29ed5c=_0x29ed5c-0x151;var _0x811987=_0x48e564[_0x29ed5c];return _0x811987;},_0x29ed(_0x2e0c23,_0x1abf8e);}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 970bef50..ae897257 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -(function(_0x4d7016,_0x589b3f){var _0x13a304=_0x1ddc,_0xff1385=_0x4d7016();while(!![]){try{var _0x439d9b=parseInt(_0x13a304(0x155))/0x1*(parseInt(_0x13a304(0x157))/0x2)+parseInt(_0x13a304(0x159))/0x3+-parseInt(_0x13a304(0x158))/0x4+-parseInt(_0x13a304(0x154))/0x5*(parseInt(_0x13a304(0x156))/0x6)+parseInt(_0x13a304(0x153))/0x7+parseInt(_0x13a304(0x152))/0x8+-parseInt(_0x13a304(0x15a))/0x9*(-parseInt(_0x13a304(0x151))/0xa);if(_0x439d9b===_0x589b3f)break;else _0xff1385['push'](_0xff1385['shift']());}catch(_0x46e28d){_0xff1385['push'](_0xff1385['shift']());}}}(_0x22ed,0x30534));function _0x22ed(){var _0x1058e8=['1OpUHex','1308MwQxbG','56230SnWngZ','256444rfsZWE','147480UZMAzT','42777rjkpTr','360qhcUfv','504568eTKoDs','910077PjfLCc','4115dUZoPB'];_0x22ed=function(){return _0x1058e8;};return _0x22ed();}function _0x1ddc(_0x3a39fe,_0x29273f){var _0x22ed36=_0x22ed();return _0x1ddc=function(_0x1ddc68,_0x3467b3){_0x1ddc68=_0x1ddc68-0x151;var _0xe12936=_0x22ed36[_0x1ddc68];return _0xe12936;},_0x1ddc(_0x3a39fe,_0x29273f);}export var GeneralCallResultStatus;(function(_0x12f781){_0x12f781[_0x12f781['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +function _0x3ca4(_0xa7bf6a,_0x1b7ea5){var _0xd9f78f=_0xd9f7();return _0x3ca4=function(_0x3ca4b4,_0x458adf){_0x3ca4b4=_0x3ca4b4-0xdb;var _0x298e42=_0xd9f78f[_0x3ca4b4];return _0x298e42;},_0x3ca4(_0xa7bf6a,_0x1b7ea5);}(function(_0x357931,_0x5d8b19){var _0xf7285b=_0x3ca4,_0x45fd8c=_0x357931();while(!![]){try{var _0x237171=-parseInt(_0xf7285b(0xe4))/0x1*(parseInt(_0xf7285b(0xdb))/0x2)+parseInt(_0xf7285b(0xe3))/0x3*(parseInt(_0xf7285b(0xdd))/0x4)+parseInt(_0xf7285b(0xe5))/0x5+-parseInt(_0xf7285b(0xde))/0x6*(parseInt(_0xf7285b(0xe1))/0x7)+parseInt(_0xf7285b(0xdc))/0x8+parseInt(_0xf7285b(0xe2))/0x9*(-parseInt(_0xf7285b(0xdf))/0xa)+parseInt(_0xf7285b(0xe0))/0xb;if(_0x237171===_0x5d8b19)break;else _0x45fd8c['push'](_0x45fd8c['shift']());}catch(_0x50751f){_0x45fd8c['push'](_0x45fd8c['shift']());}}}(_0xd9f7,0x28ea4));export var GeneralCallResultStatus;(function(_0x3b4066){_0x3b4066[_0x3b4066['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0xd9f7(){var _0x43cd9b=['9459rdcsSe','3IirkaJ','1EroqnN','383855sdgbfK','451760XJwwLL','1712008GYBPUk','561784NBBjsW','12PHceki','1770QaJGrz','2326115dMXrHq','221158IYlVXK'];_0xd9f7=function(){return _0x43cd9b;};return _0xd9f7();} \ 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 bff60a32..43b832de 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x1e981e,_0x4f0d88){var _0x1b88a0=_0x5ee0,_0x31ab8e=_0x1e981e();while(!![]){try{var _0x3bef9d=parseInt(_0x1b88a0(0x14b))/0x1+parseInt(_0x1b88a0(0x148))/0x2*(-parseInt(_0x1b88a0(0x14c))/0x3)+-parseInt(_0x1b88a0(0x149))/0x4*(parseInt(_0x1b88a0(0x145))/0x5)+parseInt(_0x1b88a0(0x14d))/0x6+parseInt(_0x1b88a0(0x144))/0x7+-parseInt(_0x1b88a0(0x143))/0x8*(-parseInt(_0x1b88a0(0x14a))/0x9)+parseInt(_0x1b88a0(0x146))/0xa*(-parseInt(_0x1b88a0(0x147))/0xb);if(_0x3bef9d===_0x4f0d88)break;else _0x31ab8e['push'](_0x31ab8e['shift']());}catch(_0x51ebe8){_0x31ab8e['push'](_0x31ab8e['shift']());}}}(_0x5be0,0x81495));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';function _0x5be0(){var _0x5a79e1=['897426oXPFsT','1398688PosaEi','3591910VVRXVK','31765EObafg','7790ZYlZWN','3377pBEQoW','286612JpLOcC','316iGghFd','45jZOrAz','450246ITgbPw','15StZSSd'];_0x5be0=function(){return _0x5a79e1;};return _0x5be0();}export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0x5ee0(_0x413482,_0x127c3d){var _0x5be0f5=_0x5be0();return _0x5ee0=function(_0x5ee007,_0x564268){_0x5ee007=_0x5ee007-0x143;var _0x1f7899=_0x5be0f5[_0x5ee007];return _0x1f7899;},_0x5ee0(_0x413482,_0x127c3d);}export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService'; \ No newline at end of file +(function(_0x97e45c,_0x45deff){var _0x51eca0=_0x388d,_0x2670a6=_0x97e45c();while(!![]){try{var _0x8be78=parseInt(_0x51eca0(0x102))/0x1+-parseInt(_0x51eca0(0x107))/0x2+-parseInt(_0x51eca0(0x106))/0x3+parseInt(_0x51eca0(0x103))/0x4+-parseInt(_0x51eca0(0x104))/0x5+-parseInt(_0x51eca0(0x108))/0x6*(-parseInt(_0x51eca0(0x100))/0x7)+-parseInt(_0x51eca0(0x101))/0x8*(-parseInt(_0x51eca0(0x105))/0x9);if(_0x8be78===_0x45deff)break;else _0x2670a6['push'](_0x2670a6['shift']());}catch(_0x2e9288){_0x2670a6['push'](_0x2670a6['shift']());}}}(_0x5127,0x52aa0));export*from'./common';export*from'./NodeIKernelAvatarService';function _0x388d(_0x50259f,_0x59b6ed){var _0x5127b7=_0x5127();return _0x388d=function(_0x388d9d,_0x45770e){_0x388d9d=_0x388d9d-0x100;var _0x2097c6=_0x5127b7[_0x388d9d];return _0x2097c6;},_0x388d(_0x50259f,_0x59b6ed);}export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0x5127(){var _0x401d99=['273882pIrnZg','28RFwykq','8twAzzl','239469BVgBtj','2052908gYeXhr','3238705CDpBAm','9873054ZGavEN','1550385OvdBvn','1058324EZunRc'];_0x5127=function(){return _0x401d99;};return _0x5127();}export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index cc523551..37c01176 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x295a99,_0x15d88a){const _0x2cb5b0=_0x4be2,_0x113fc6=_0x295a99();while(!![]){try{const _0x5e71fa=parseInt(_0x2cb5b0(0x12f))/0x1+-parseInt(_0x2cb5b0(0x139))/0x2*(parseInt(_0x2cb5b0(0x130))/0x3)+parseInt(_0x2cb5b0(0x13d))/0x4*(-parseInt(_0x2cb5b0(0x131))/0x5)+-parseInt(_0x2cb5b0(0x13c))/0x6*(parseInt(_0x2cb5b0(0x136))/0x7)+parseInt(_0x2cb5b0(0x128))/0x8*(parseInt(_0x2cb5b0(0x12a))/0x9)+-parseInt(_0x2cb5b0(0x12c))/0xa+-parseInt(_0x2cb5b0(0x12d))/0xb*(-parseInt(_0x2cb5b0(0x126))/0xc);if(_0x5e71fa===_0x15d88a)break;else _0x113fc6['push'](_0x113fc6['shift']());}catch(_0x4b3c21){_0x113fc6['push'](_0x113fc6['shift']());}}}(_0x303f,0xe7d42));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x2a2aea from'node:path';function _0x303f(){const _0x4209f6=['NapCat','17364690CNsdNp','385dsiFAN','ouYlm','1854392vtYSOL','32139CiEmIG','95HmCPpt','join','assign','utf-8','lyEuV','7QemKrh','guid.txt','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','274wTcfFW','writeFileSync','readFileSync','5453982ejwwCM','381180XAhKyG','mkdirSync','1639392KYRXMQ','curVersion','280ZIRnWd','GxtlC','61038eDYppW'];_0x303f=function(){return _0x4209f6;};return _0x303f();}import _0x55eaf8 from'node:fs';function _0x4be2(_0x53497a,_0x1b0f48){const _0x303f19=_0x303f();return _0x4be2=function(_0x4be2a1,_0x487abc){_0x4be2a1=_0x4be2a1-0x125;let _0x2d54b8=_0x303f19[_0x4be2a1];return _0x2d54b8;},_0x4be2(_0x53497a,_0x1b0f48);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x189516,_0x109f45,_0x522ec0){const _0x570ff6=_0x4be2,_0x1f8b92={'GxtlC':_0x570ff6(0x12b),'lyEuV':'temp','yzbfh':_0x570ff6(0x137),'ouYlm':_0x570ff6(0x134),'hVDBS':_0x570ff6(0x138)},_0x50ab54=_0x2a2aea[_0x570ff6(0x132)](_0x522ec0,_0x1f8b92[_0x570ff6(0x129)],_0x1f8b92[_0x570ff6(0x135)]);_0x55eaf8[_0x570ff6(0x125)](_0x50ab54,{'recursive':!![]});const _0xc707a7=_0x2a2aea['join'](_0x522ec0,_0x1f8b92['GxtlC'],_0x1f8b92['yzbfh']);let _0x534f91=randomUUID();try{_0x534f91=_0x55eaf8[_0x570ff6(0x13b)](_0x2a2aea['join'](_0xc707a7),_0x1f8b92[_0x570ff6(0x12e)]);}catch(_0x1978dc){_0x55eaf8[_0x570ff6(0x13a)](_0x2a2aea[_0x570ff6(0x132)](_0xc707a7),_0x534f91,_0x1f8b92[_0x570ff6(0x12e)]);}const _0x1598f5={'selfUin':_0x189516,'selfUid':_0x109f45,'desktopPathConfig':{'account_path':_0x522ec0},'clientVer':qqVersionConfigInfo[_0x570ff6(0x127)],'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':_0x50ab54,'deviceInfo':{'guid':_0x534f91,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x1f8b92['hVDBS']};return Object[_0x570ff6(0x133)](sessionConfig,_0x1598f5),_0x1598f5;} \ No newline at end of file +(function(_0x12c441,_0x2a4698){const _0x42d8f1=_0x1dda,_0xe34156=_0x12c441();while(!![]){try{const _0x1349e9=-parseInt(_0x42d8f1(0x188))/0x1+-parseInt(_0x42d8f1(0x18d))/0x2+-parseInt(_0x42d8f1(0x18a))/0x3*(-parseInt(_0x42d8f1(0x189))/0x4)+parseInt(_0x42d8f1(0x193))/0x5*(-parseInt(_0x42d8f1(0x184))/0x6)+parseInt(_0x42d8f1(0x18c))/0x7*(parseInt(_0x42d8f1(0x181))/0x8)+parseInt(_0x42d8f1(0x18b))/0x9*(parseInt(_0x42d8f1(0x183))/0xa)+parseInt(_0x42d8f1(0x195))/0xb*(-parseInt(_0x42d8f1(0x196))/0xc);if(_0x1349e9===_0x2a4698)break;else _0xe34156['push'](_0xe34156['shift']());}catch(_0xd994c){_0xe34156['push'](_0xe34156['shift']());}}}(_0x5503,0x617e1));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x338557 from'node:path';function _0x5503(){const _0x22f625=['curVersion','AnfHn','readFileSync','499548YXktHv','4MPHoBw','1128447odlZog','1629WnjYMO','7ZUxLKW','405598dzqEGN','utf-8','Ehimz','TXecI','temp','writeFileSync','1630VDCbyq','mkdirSync','33EKwMBd','538680EuiEid','guid.txt','FnUuH','version','jAZRh','NapCat','5062256BoKsVj','join','15230xMiZUm','888WLeSlm'];_0x5503=function(){return _0x22f625;};return _0x5503();}import _0x5cbeb9 from'node:fs';function _0x1dda(_0xb19bd7,_0x3e0da4){const _0x5503ec=_0x5503();return _0x1dda=function(_0x1dda8d,_0x1d1331){_0x1dda8d=_0x1dda8d-0x17e;let _0x44fbec=_0x5503ec[_0x1dda8d];return _0x44fbec;},_0x1dda(_0xb19bd7,_0x3e0da4);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x22ae67,_0x37bcab,_0x1a7ee6){const _0x336316=_0x1dda,_0x3517a3={'Ehimz':'NapCat','AnfHn':_0x336316(0x191),'FnUuH':_0x336316(0x197),'TXecI':function(_0x18d02b){return _0x18d02b();},'jAZRh':_0x336316(0x18e),'Ftgpg':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x812a0d=_0x338557[_0x336316(0x182)](_0x1a7ee6,_0x3517a3[_0x336316(0x18f)],_0x3517a3[_0x336316(0x186)]);_0x5cbeb9[_0x336316(0x194)](_0x812a0d,{'recursive':!![]});const _0x1b2165=_0x338557[_0x336316(0x182)](_0x1a7ee6,_0x336316(0x180),_0x3517a3[_0x336316(0x198)]);let _0x16e2be=_0x3517a3[_0x336316(0x190)](randomUUID);try{_0x16e2be=_0x5cbeb9[_0x336316(0x187)](_0x338557[_0x336316(0x182)](_0x1b2165),_0x336316(0x18e));}catch(_0x2d7ce9){_0x5cbeb9[_0x336316(0x192)](_0x338557['join'](_0x1b2165),_0x16e2be,_0x3517a3[_0x336316(0x17f)]);}const _0x145ea7={'selfUin':_0x22ae67,'selfUid':_0x37bcab,'desktopPathConfig':{'account_path':_0x1a7ee6},'clientVer':qqVersionConfigInfo[_0x336316(0x185)],'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':_0x812a0d,'deviceInfo':{'guid':_0x16e2be,'buildVer':qqPkgInfo[_0x336316(0x17e)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x3517a3['Ftgpg']};return Object['assign'](sessionConfig,_0x145ea7),_0x145ea7;} \ 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 ea49bdbb..a43ab2d0 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0x24a3cb=_0x3560;function _0x3560(_0x512cc7,_0x1e4e0f){const _0x4feb47=_0x4feb();return _0x3560=function(_0x356041,_0x2cf41b){_0x356041=_0x356041-0x1f3;let _0x19457e=_0x4feb47[_0x356041];return _0x19457e;},_0x3560(_0x512cc7,_0x1e4e0f);}(function(_0x301dd6,_0x243158){const _0x334cc7=_0x3560,_0x410cc0=_0x301dd6();while(!![]){try{const _0xbcffa8=-parseInt(_0x334cc7(0x1fc))/0x1+-parseInt(_0x334cc7(0x1f4))/0x2*(-parseInt(_0x334cc7(0x206))/0x3)+-parseInt(_0x334cc7(0x1f7))/0x4*(parseInt(_0x334cc7(0x201))/0x5)+-parseInt(_0x334cc7(0x1fd))/0x6+-parseInt(_0x334cc7(0x1f8))/0x7*(-parseInt(_0x334cc7(0x1f5))/0x8)+-parseInt(_0x334cc7(0x1fb))/0x9+-parseInt(_0x334cc7(0x1ff))/0xa*(-parseInt(_0x334cc7(0x200))/0xb);if(_0xbcffa8===_0x243158)break;else _0x410cc0['push'](_0x410cc0['shift']());}catch(_0x2d46ae){_0x410cc0['push'](_0x410cc0['shift']());}}}(_0x4feb,0x6f56f));import _0x1e4070 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';function _0x4feb(){const _0x1883e7=['468069MALmKT','fileLog','consoleLogLevel','6775686KWiBGD','140357QxdTcj','5293140XGwRcw','uin','790WNnxAw','237831cXwYKE','1276775wzihFb','.json','INFO','getConfigDir','fileLogLevel','3vbMKka','DEBUG','join','1156286dUjznI','24hTSdSY','napcat_','4QgXFyV'];_0x4feb=function(){return _0x1883e7;};return _0x4feb();}class Config extends ConfigBase{[_0x24a3cb(0x1f9)]=!![];['consoleLog']=!![];[_0x24a3cb(0x205)]=LogLevel[_0x24a3cb(0x207)];[_0x24a3cb(0x1fa)]=LogLevel[_0x24a3cb(0x203)];constructor(){super();}['getConfigPath'](){const _0x4654a0=_0x24a3cb;return _0x1e4070[_0x4654a0(0x1f3)](this[_0x4654a0(0x204)](),_0x4654a0(0x1f6)+selfInfo[_0x4654a0(0x1fe)]+_0x4654a0(0x202));}}export const napCatConfig=new Config(); \ No newline at end of file +const _0x44b370=_0x5076;(function(_0x5e25bc,_0x1351cc){const _0x595554=_0x5076,_0x596f9c=_0x5e25bc();while(!![]){try{const _0x511c87=parseInt(_0x595554(0x1cd))/0x1+-parseInt(_0x595554(0x1ce))/0x2+parseInt(_0x595554(0x1c6))/0x3+parseInt(_0x595554(0x1d2))/0x4+parseInt(_0x595554(0x1d0))/0x5+parseInt(_0x595554(0x1cc))/0x6*(parseInt(_0x595554(0x1c7))/0x7)+-parseInt(_0x595554(0x1c9))/0x8;if(_0x511c87===_0x1351cc)break;else _0x596f9c['push'](_0x596f9c['shift']());}catch(_0x299cd4){_0x596f9c['push'](_0x596f9c['shift']());}}}(_0x4ead,0xd4c53));import _0x3cd09a from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0x5076(_0x45d590,_0x1fa311){const _0x4eada8=_0x4ead();return _0x5076=function(_0x5076ae,_0x39d429){_0x5076ae=_0x5076ae-0x1c5;let _0x5d2f23=_0x4eada8[_0x5076ae];return _0x5d2f23;},_0x5076(_0x45d590,_0x1fa311);}import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];['consoleLog']=!![];[_0x44b370(0x1d1)]=LogLevel[_0x44b370(0x1cf)];['consoleLogLevel']=LogLevel['INFO'];constructor(){super();}[_0x44b370(0x1c8)](){const _0x5e2378=_0x44b370;return _0x3cd09a[_0x5e2378(0x1d3)](this[_0x5e2378(0x1ca)](),'napcat_'+selfInfo[_0x5e2378(0x1cb)]+_0x5e2378(0x1c5));}}function _0x4ead(){const _0x13c6cd=['32225BjUeCX','fileLogLevel','5319220nJFHsZ','join','.json','3090837mxIttP','140560VsDiqO','getConfigPath','29541208mIiwMx','getConfigDir','uin','156aGdckj','1741239XZNdAK','131380qYLuyU','DEBUG'];_0x4ead=function(){return _0x13c6cd;};return _0x4ead();}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 1042ba88..b29b1046 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0x8b3eaf=_0x57e2;function _0x36c3(){const _0x1d02b4=['EBbiX','qMmsu','Could\x20not\x20create\x20table\x20msgs','forEach','14024iUCuUO','delete','lkkef','peerUid','PfVCJ','hivXF','toString','Database','feHsd','get','createTable','yeLjF','UMOwt','db\x20getMsgByLongId\x20error','15262lEhuZW','HSbyf','init','msgSeq','290440ZwOeWL','ffzOe','db\x20could\x20not\x20add\x20msg','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','PwRpq','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','msgTime','SRptl','prepare','Vgzck','set','getMsg','element','518991jbtcaK','SsGvE','getMsgByLongId','getMsgBySeq','\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)','22dyscjI','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','msgCache','uapmk','1117745BjGPNq','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','errno','21qyGUAA','kpmAd','addFileCache','all','msgList','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','mBgiP','updateMsg\x20db\x20error','bmJVN','catch','\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)','lsGAZ','updateMsg','jTmmg','db\x20could\x20not\x20add\x20temp\x20uin','WZckF','cHTdV','OPEN_READWRITE','gdwlI','uuid','parse','run','OJtdW','4TCHIRs','清理消息缓存','brgHj','getUidByTempUin','19730scfnOk','Could\x20not\x20create\x20table\x20temp_uins','path','SSCJr','RhaHy','chatType','db\x20could\x20not\x20get\x20temp\x20uin\x20map','tpIPw','\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)','then','wKggL','msgId','vYpEB','maxId','72078hIVnUk','uin','xAzMt','xPPxl','getFileCacheByName','elementId','BsitP','jUcOC','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','tZDqG','db\x20could\x20not\x20add\x20file',',\x20seq:\x20','261vTXGWG','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','ohVXX','Method\x20not\x20implemented.','数据库中消息最大短id','SELECT\x20*\x20FROM\x20temp_uins','jRaNx','stringify','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','更新消息,\x20shortId:','Could\x20not\x20get\x20msg','oRORh','Could\x20not\x20connect\x20to\x20database','db\x20could\x20not\x20update\x20file\x20cache','addMsg','sgSpo','NEgBm','close','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','147PDBXjX','globalMsgShortId','yNxQd','addTempUin','eciqq','PbQqG','CzYQe','KiaTz',',\x20msgId:\x20','Could\x20not\x20create\x20table\x20files','getFileCache','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','urGkM','assign','longId','5748ThBMfw','name','FFmXM','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)',',\x20短id:\x20','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','ImBKV','gweth','getCurrentMaxShortId'];_0x36c3=function(){return _0x1d02b4;};return _0x36c3();}(function(_0x4343fd,_0xff074c){const _0x1595ef=_0x57e2,_0x2aa685=_0x4343fd();while(!![]){try{const _0x187825=parseInt(_0x1595ef(0xbe))/0x1*(parseInt(_0x1595ef(0xd9))/0x2)+parseInt(_0x1595ef(0xb1))/0x3+parseInt(_0x1595ef(0xd5))/0x4*(parseInt(_0x1595ef(0xba))/0x5)+parseInt(_0x1595ef(0xe7))/0x6*(parseInt(_0x1595ef(0x106))/0x7)+-parseInt(_0x1595ef(0x122))/0x8*(parseInt(_0x1595ef(0xf3))/0x9)+parseInt(_0x1595ef(0xa4))/0xa*(-parseInt(_0x1595ef(0xb6))/0xb)+parseInt(_0x1595ef(0x115))/0xc*(-parseInt(_0x1595ef(0x130))/0xd);if(_0x187825===_0xff074c)break;else _0x2aa685['push'](_0x2aa685['shift']());}catch(_0x22abc1){_0x2aa685['push'](_0x2aa685['shift']());}}}(_0x36c3,0x2d189));import _0x572174 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0x592273){const _0x316180={'BsitP':function(_0x57481b){return _0x57481b();},'eciqq':function(_0x1487a2,_0x36147e){return _0x1487a2|_0x36147e;}};if(this['db'])return;return new Promise((_0x453b7a,_0x25ae6b)=>{const _0x2d9547=_0x57e2;this['db']=new _0x572174[(_0x2d9547(0x129))](_0x592273,_0x316180[_0x2d9547(0x10a)](_0x572174[_0x2d9547(0xcf)],_0x572174['OPEN_CREATE']),_0x2cd0f8=>{const _0x15d60d=_0x2d9547;if(_0x2cd0f8){logError(_0x15d60d(0xff),_0x2cd0f8),_0x25ae6b(_0x2cd0f8);return;}this[_0x15d60d(0x12c)](),_0x316180[_0x15d60d(0xed)](_0x453b7a);});});}[_0x8b3eaf(0x12c)](){const _0x155cd0=_0x8b3eaf,_0x4317f0={'sgSpo':_0x155cd0(0xf6)};throw new Error(_0x4317f0[_0x155cd0(0x102)]);}['close'](){const _0x2e9e09=_0x8b3eaf;this['db']?.[_0x2e9e09(0x104)]();}}class DBUtil extends DBUtilBase{[_0x8b3eaf(0xb8)]=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x39417f=_0x8b3eaf,_0x2b22de={'kdXno':function(_0x305e3a,_0x582546){return _0x305e3a>_0x582546;},'tpIPw':function(_0x5a4ffa,_0x27c444){return _0x5a4ffa-_0x27c444;},'hochJ':function(_0x219a01,_0x79abae){return _0x219a01*_0x79abae;},'yNxQd':function(_0x59c5f3,_0x48cc11){return _0x59c5f3(_0x48cc11);},'eUlWT':function(_0xa482ff,_0x272526){return _0xa482ff(_0x272526);},'HSbyf':_0x39417f(0xd6),'yeLjF':function(_0x36d1b5,_0x3f4f5f){return _0x36d1b5*_0x3f4f5f;},'gweth':function(_0x351154,_0x225a38,_0x567a8a){return _0x351154(_0x225a38,_0x567a8a);}};super();const _0x255717=_0x2b22de[_0x39417f(0x12d)](0x3e8,0x3c)*0xa;_0x2b22de[_0x39417f(0x11c)](setInterval,()=>{const _0x31bda1=_0x39417f;_0x2b22de['eUlWT'](logDebug,_0x2b22de[_0x31bda1(0x131)]),this[_0x31bda1(0xb8)][_0x31bda1(0x121)]((_0x38d4a4,_0x40b704)=>{const _0x18444d=_0x31bda1;_0x2b22de['kdXno'](_0x2b22de[_0x18444d(0xe0)](Date['now'](),_0x2b22de['hochJ'](_0x2b22de[_0x18444d(0x108)](parseInt,_0x38d4a4[_0x18444d(0xaa)]),0x3e8)),_0x255717)&&this['msgCache'][_0x18444d(0x123)](_0x40b704);});},_0x255717);}async['init'](_0x1804f1){const _0x406d33=_0x8b3eaf;await super[_0x406d33(0x132)](_0x1804f1),this[_0x406d33(0x107)]=await this[_0x406d33(0x11d)]();}[_0x8b3eaf(0x12c)](){const _0x1164c8=_0x8b3eaf,_0x5eaa2c={'ffzOe':function(_0x365d89,_0x14b45f,_0x12f597){return _0x365d89(_0x14b45f,_0x12f597);},'UMOwt':_0x1164c8(0x120),'PfVCJ':_0x1164c8(0x10f),'jUcOC':_0x1164c8(0xda)},_0x2d4f99=_0x1164c8(0xe1);this['db']['run'](_0x2d4f99,function(_0x4c44d8){const _0x4ca0e1=_0x1164c8;_0x4c44d8&&_0x5eaa2c[_0x4ca0e1(0xa5)](logError,_0x5eaa2c[_0x4ca0e1(0x12e)],_0x4c44d8['stack']);});const _0x5cfbc6=_0x1164c8(0xb5);this['db'][_0x1164c8(0xd3)](_0x5cfbc6,function(_0xd2703e){const _0x5512b9=_0x1164c8;_0xd2703e&&_0x5eaa2c[_0x5512b9(0xa5)](logError,_0x5eaa2c[_0x5512b9(0x126)],_0xd2703e);});const _0xde1b0e=_0x1164c8(0xc8);this['db'][_0x1164c8(0xd3)](_0xde1b0e,function(_0x5190a2){const _0x161fa0=_0x1164c8;_0x5190a2&&_0x5eaa2c[_0x161fa0(0xa5)](logError,_0x5eaa2c[_0x161fa0(0xee)],_0x5190a2);});}async[_0x8b3eaf(0x11d)](){const _0x18f60b=_0x8b3eaf,_0x4d98d3={'RhaHy':function(_0x3469b7,_0x51ec2d,_0x72b6c9){return _0x3469b7(_0x51ec2d,_0x72b6c9);},'kpmAd':_0x18f60b(0xa9),'RHZoE':function(_0x5978b5,_0x3e6072){return _0x5978b5(_0x3e6072);},'hivXF':function(_0x2374d6,_0x57bc77,_0x4f0dff){return _0x2374d6(_0x57bc77,_0x4f0dff);},'Vgzck':_0x18f60b(0xf7),'oStla':_0x18f60b(0xf4)};return new Promise((_0x16e80e,_0x48e61d)=>{const _0x442de5=_0x18f60b;this['db'][_0x442de5(0x12b)](_0x4d98d3['oStla'],(_0x1630ec,_0x369b16)=>{const _0x9b0c13=_0x442de5;if(_0x1630ec)return _0x4d98d3[_0x9b0c13(0xdd)](logDebug,_0x4d98d3[_0x9b0c13(0xbf)],_0x1630ec),_0x4d98d3['RHZoE'](_0x16e80e,-0x7ffffff8);_0x4d98d3[_0x9b0c13(0x127)](logDebug,_0x4d98d3[_0x9b0c13(0xad)],_0x369b16?.[_0x9b0c13(0xe6)]),_0x16e80e(_0x369b16?.[_0x9b0c13(0xe6)]??-0x7ffffff8);});});}async['getMsg'](_0x5662d7,_0x5d2a5b){const _0x1fc012=_0x8b3eaf,_0x38b93a={'uapmk':function(_0xdeb563,_0x4d3a85){return _0xdeb563(_0x4d3a85);},'feHsd':_0x1fc012(0xfd)},_0x154055=this['db'][_0x1fc012(0xac)](_0x5662d7);return new Promise((_0x2918c8,_0x2429d4)=>{const _0x257edd=_0x1fc012,_0x1a2e87={'wKggL':function(_0x259d83,_0xea1195){const _0x1fdc7d=_0x57e2;return _0x38b93a[_0x1fdc7d(0xb9)](_0x259d83,_0xea1195);},'PbQqG':function(_0x4f5b97,_0x12916c,_0x1b8165,_0x338308,_0x8a17bb){return _0x4f5b97(_0x12916c,_0x1b8165,_0x338308,_0x8a17bb);},'NEgBm':_0x38b93a[_0x257edd(0x12a)]};_0x154055[_0x257edd(0x12b)](..._0x5d2a5b,(_0x3400a5,_0x285eaa)=>{const _0x502f0c=_0x257edd;if(_0x3400a5)return _0x1a2e87[_0x502f0c(0x10b)](logError,_0x1a2e87[_0x502f0c(0x103)],_0x3400a5,_0x5662d7,_0x5d2a5b),_0x1a2e87['wKggL'](_0x2918c8,null);if(!_0x285eaa){_0x1a2e87[_0x502f0c(0xe3)](_0x2918c8,null);return;}const _0xc897d8=_0x285eaa[_0x502f0c(0x114)];NTQQMsgApi['getMsgsByMsgId']({'peerUid':_0x285eaa['peerUid'],'chatType':_0x285eaa[_0x502f0c(0xde)]},[_0xc897d8])['then'](_0x42a228=>{const _0x5a4869=_0x502f0c,_0x415b52=_0x42a228[_0x5a4869(0xc2)][0x0];if(!_0x415b52){_0x1a2e87[_0x5a4869(0xe3)](_0x2918c8,null);return;}_0x415b52['id']=_0x285eaa['shortId'],_0x2918c8(_0x415b52);})[_0x502f0c(0xc7)](_0x58500e=>{_0x2918c8(null);});});});}async['getMsgByShortId'](_0x514bdd){const _0x5ad528=_0x8b3eaf,_0x393b8c={'SSCJr':_0x5ad528(0x105)};if(this[_0x5ad528(0xb8)]['has'](_0x514bdd))return this['msgCache'][_0x5ad528(0x12b)](_0x514bdd);const _0xd58a5a=_0x393b8c[_0x5ad528(0xdc)];return this[_0x5ad528(0xaf)](_0xd58a5a,[_0x514bdd]);}async[_0x8b3eaf(0xb3)](_0x4a0e2){const _0x58e88e=_0x8b3eaf,_0x20d465={'jRaNx':_0x58e88e(0xbb)};if(this['msgCache']['has'](_0x4a0e2))return this[_0x58e88e(0xb8)]['get'](_0x4a0e2);return this[_0x58e88e(0xaf)](_0x20d465[_0x58e88e(0xf9)],[_0x4a0e2]);}async[_0x8b3eaf(0xb4)](_0x2cf764,_0x55c396){const _0x35bfa1=_0x8b3eaf,_0x524b14=_0x35bfa1(0xbc);return this[_0x35bfa1(0xaf)](_0x524b14,[_0x2cf764,_0x55c396]);}async[_0x8b3eaf(0x101)](_0x51c46b,_0xc117b8=!![]){const _0x5f2345=_0x8b3eaf,_0x2f9bbb={'CzYQe':function(_0x329f49,_0x874686){return _0x329f49===_0x874686;},'ohVXX':_0x5f2345(0xa6),'ocBrU':_0x5f2345(0xa7)},_0x508f03=await this['getMsgByLongId'](_0x51c46b[_0x5f2345(0xe4)]);if(_0x508f03){if(_0xc117b8)this[_0x5f2345(0xca)](_0x51c46b)[_0x5f2345(0xe2)]();return _0x508f03['id'];}const _0x2fdf6e=this['db']['prepare'](_0x2f9bbb['ocBrU']),_0x31e5ac=++this[_0x5f2345(0x107)];return _0x51c46b['id']=_0x31e5ac,logDebug('记录消息到数据库,\x20消息长id:\x20'+_0x51c46b[_0x5f2345(0xe4)]+_0x5f2345(0x119)+_0x51c46b['id']),this['msgCache'][_0x5f2345(0xae)](_0x31e5ac,_0x51c46b),this[_0x5f2345(0xb8)][_0x5f2345(0xae)](_0x51c46b['msgId'],_0x51c46b),_0x2fdf6e[_0x5f2345(0xd3)](this[_0x5f2345(0x107)],_0x51c46b[_0x5f2345(0xe4)],_0x51c46b['msgSeq'][_0x5f2345(0x128)](),_0x51c46b[_0x5f2345(0x125)],_0x51c46b['chatType'],_0x5b4737=>{const _0x36ba60=_0x5f2345;_0x5b4737&&(_0x2f9bbb[_0x36ba60(0x10c)](_0x5b4737[_0x36ba60(0xbd)],0x13)?this[_0x36ba60(0xb3)](_0x51c46b[_0x36ba60(0xe4)])['then'](_0x543858=>{const _0xe9a579=_0x36ba60;_0x543858?(this[_0xe9a579(0xb8)][_0xe9a579(0xae)](_0x31e5ac,_0x543858),this['msgCache'][_0xe9a579(0xae)](_0x543858[_0xe9a579(0xe4)],_0x543858)):logError(_0xe9a579(0x11a),_0x5b4737);})[_0x36ba60(0xc7)](_0x52939e=>logError(_0x36ba60(0x12f),_0x52939e)):logError(_0x2f9bbb[_0x36ba60(0xf5)],_0x5b4737));}),_0x31e5ac;}async[_0x8b3eaf(0xca)](_0x416696){const _0x167683=_0x8b3eaf,_0x2fd8ba={'ycwQp':function(_0x268b7c,_0x205350,_0x43d0a8){return _0x268b7c(_0x205350,_0x43d0a8);},'urGkM':_0x167683(0xc5),'FFmXM':function(_0x359e20,_0x3cb1ef){return _0x359e20(_0x3cb1ef);},'bmJVN':_0x167683(0xef)},_0x3723b0=this['msgCache']['get'](_0x416696[_0x167683(0xe4)]);_0x3723b0&&Object[_0x167683(0x113)](_0x3723b0,_0x416696);_0x2fd8ba[_0x167683(0x117)](logDebug,_0x167683(0xfc)+_0x416696['id']+_0x167683(0xf2)+_0x416696[_0x167683(0x133)]+_0x167683(0x10e)+_0x416696['msgId']);const _0x127d57=this['db'][_0x167683(0xac)](_0x2fd8ba[_0x167683(0xc6)]);_0x127d57[_0x167683(0xd3)](_0x416696[_0x167683(0x133)],_0x416696[_0x167683(0xe4)],_0xbac90d=>{const _0xb2a2ff=_0x167683;_0xbac90d&&_0x2fd8ba['ycwQp'](logError,_0x2fd8ba[_0xb2a2ff(0x112)],_0xbac90d);});}async[_0x8b3eaf(0xc0)](_0x453328){const _0xfdb65a=_0x8b3eaf,_0x671d59={'lsGAZ':function(_0x548e26,_0x3228e3,_0x28d167){return _0x548e26(_0x3228e3,_0x28d167);},'zQuer':_0xfdb65a(0x118)},_0x3640aa=this['db'][_0xfdb65a(0xac)](_0x671d59['zQuer']);return new Promise((_0xbfa9b4,_0x4720f1)=>{const _0x1aa9af=_0xfdb65a,_0x2afee9={'gdwlI':function(_0x7c5ba,_0x4aa27e,_0x4e9b64){const _0xbca27f=_0x57e2;return _0x671d59[_0xbca27f(0xc9)](_0x7c5ba,_0x4aa27e,_0x4e9b64);},'vYpEB':function(_0x494708,_0x5014c7){return _0x494708(_0x5014c7);}};_0x3640aa[_0x1aa9af(0xd3)](_0x453328[_0x1aa9af(0x116)],_0x453328[_0x1aa9af(0xdb)],_0x453328['url'],_0x453328['size'],_0x453328[_0x1aa9af(0xd1)],_0x453328['elementType'],JSON[_0x1aa9af(0xfa)](_0x453328['element']),_0x453328[_0x1aa9af(0xec)],_0x453328[_0x1aa9af(0xe4)],function(_0x35bf8b){const _0x10c3be=_0x1aa9af;_0x35bf8b&&(_0x2afee9[_0x10c3be(0xd0)](logError,_0x10c3be(0xf1),_0x35bf8b),_0x4720f1(_0x35bf8b)),_0x2afee9[_0x10c3be(0xe5)](_0xbfa9b4,null);});});}async[_0x8b3eaf(0x110)](_0x3993cb,_0x2bcc50){const _0x4230e2={'xAzMt':'db\x20could\x20not\x20get\x20file\x20cache','lCTuk':function(_0x4aa945,_0x12daa8){return _0x4aa945(_0x12daa8);}},_0x3458c8=this['db']['prepare'](_0x3993cb);return new Promise((_0x37de5f,_0x2c37ea)=>{const _0x133ddb=_0x57e2,_0x51dec6={'ImBKV':_0x4230e2[_0x133ddb(0xe9)],'brgHj':function(_0x1721e8,_0x212d1e){return _0x4230e2['lCTuk'](_0x1721e8,_0x212d1e);},'SRptl':function(_0x4ca43e,_0x5987ea){return _0x4ca43e(_0x5987ea);}};_0x3458c8['get'](..._0x2bcc50,(_0x1751f7,_0x51ddc4)=>{const _0x26e2a8=_0x133ddb;_0x1751f7&&(logError(_0x51dec6[_0x26e2a8(0x11b)],_0x1751f7),_0x51dec6[_0x26e2a8(0xd7)](_0x2c37ea,_0x1751f7)),_0x51ddc4&&(_0x51ddc4[_0x26e2a8(0xb0)]=JSON[_0x26e2a8(0xd2)](_0x51ddc4['element'])),_0x51dec6[_0x26e2a8(0xab)](_0x37de5f,_0x51ddc4);});});}async[_0x8b3eaf(0xeb)](_0x52978a){const _0x8587dd=_0x8b3eaf,_0x5340ed={'lkkef':_0x8587dd(0xfb)};return this[_0x8587dd(0x110)](_0x5340ed[_0x8587dd(0x124)],[_0x52978a]);}async['getFileCacheByUuid'](_0x48e540){const _0x49043a=_0x8b3eaf;return this[_0x49043a(0x110)]('SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?',[_0x48e540]);}async['updateFileCache'](_0x80ca58){const _0x574b24=_0x8b3eaf,_0x4ccbda={'XdiXE':function(_0x1a3c1a,_0x5da923,_0x3d2ffd){return _0x1a3c1a(_0x5da923,_0x3d2ffd);},'jTmmg':function(_0x29ff3a,_0x314644){return _0x29ff3a(_0x314644);},'qMmsu':_0x574b24(0xb7)},_0x3d3293=this['db'][_0x574b24(0xac)](_0x4ccbda[_0x574b24(0x11f)]);return new Promise((_0x541971,_0x1e9912)=>{const _0x30432b=_0x574b24;_0x3d3293[_0x30432b(0xd3)](_0x80ca58['path'],_0x80ca58['url'],_0x80ca58[_0x30432b(0xd1)],function(_0x521a58){const _0x3d5d16=_0x30432b;_0x521a58&&(_0x4ccbda['XdiXE'](logError,_0x3d5d16(0x100),_0x521a58),_0x4ccbda[_0x3d5d16(0xcb)](_0x1e9912,_0x521a58)),_0x4ccbda['jTmmg'](_0x541971,null);});});}async['getReceivedTempUinMap'](){const _0x315bec=_0x8b3eaf,_0x1ffe44={'KiaTz':function(_0x2c17a6,_0x38af86,_0x3a06d6){return _0x2c17a6(_0x38af86,_0x3a06d6);},'EBbiX':function(_0x294dbe,_0x3a57e5){return _0x294dbe(_0x3a57e5);},'cHTdV':function(_0x3b2a7b,_0x1ac70c){return _0x3b2a7b(_0x1ac70c);}},_0x358d00=_0x315bec(0xf8);return new Promise((_0x47fa89,_0x697131)=>{const _0x5ba772=_0x315bec;this['db'][_0x5ba772(0xc1)](_0x358d00,(_0x549a04,_0x1cb179)=>{const _0x1366ac=_0x5ba772;_0x549a04&&(_0x1ffe44[_0x1366ac(0x10d)](logError,_0x1366ac(0xdf),_0x549a04),_0x1ffe44[_0x1366ac(0x11e)](_0x697131,_0x549a04));const _0x2add75={};_0x1cb179['forEach'](_0x5cc30e=>{const _0xdcec97=_0x1366ac;_0x2add75[_0x5cc30e[_0xdcec97(0xe8)]]=_0x5cc30e['uid'];}),_0x1ffe44[_0x1366ac(0xce)](_0x47fa89,_0x2add75);});});}async[_0x8b3eaf(0xd8)](_0x2abc04){const _0x385f04=_0x8b3eaf,_0x4082be={'PwRpq':function(_0x1960d1,_0x307305,_0x25780d){return _0x1960d1(_0x307305,_0x25780d);},'OJtdW':'db\x20could\x20not\x20get\x20temp\x20uin\x20map','tZDqG':function(_0x51fb98,_0x2a91fe){return _0x51fb98(_0x2a91fe);},'xPPxl':_0x385f04(0xc3)},_0x5ba749=_0x4082be[_0x385f04(0xea)];return new Promise((_0x979ea6,_0x330855)=>{const _0x24c6f0=_0x385f04;this['db'][_0x24c6f0(0x12b)](_0x5ba749,[_0x2abc04],(_0x3b9bc2,_0x374438)=>{const _0x55638b=_0x24c6f0;_0x3b9bc2&&(_0x4082be[_0x55638b(0xa8)](logError,_0x4082be[_0x55638b(0xd4)],_0x3b9bc2),_0x4082be['tZDqG'](_0x330855,_0x3b9bc2)),_0x4082be[_0x55638b(0xf0)](_0x979ea6,_0x374438?.['uid']);});});}async[_0x8b3eaf(0x109)](_0x534bd1,_0x526078){const _0x64b795=_0x8b3eaf,_0xcfd4d2={'WZckF':function(_0x1311d0,_0x23757d,_0x59762e){return _0x1311d0(_0x23757d,_0x59762e);},'mBgiP':_0x64b795(0xcc),'SsGvE':function(_0x2e45bb,_0x4c267e){return _0x2e45bb(_0x4c267e);},'oRORh':_0x64b795(0x111)},_0xeedbc7=await this[_0x64b795(0xd8)](_0x534bd1);if(!_0xeedbc7){const _0xbf199=this['db'][_0x64b795(0xac)](_0xcfd4d2[_0x64b795(0xfe)]);return new Promise((_0xf2f4a2,_0x3d7bd4)=>{_0xbf199['run'](_0x534bd1,_0x526078,function(_0x146044){const _0x47fadb=_0x57e2;_0x146044&&(_0xcfd4d2[_0x47fadb(0xcd)](logError,_0xcfd4d2[_0x47fadb(0xc4)],_0x146044),_0xcfd4d2[_0x47fadb(0xb2)](_0x3d7bd4,_0x146044)),_0xcfd4d2[_0x47fadb(0xb2)](_0xf2f4a2,null);});});}}}function _0x57e2(_0x4e478c,_0x1fed25){const _0x36c381=_0x36c3();return _0x57e2=function(_0x57e24f,_0xdec2ae){_0x57e24f=_0x57e24f-0xa4;let _0xbabb8c=_0x36c381[_0x57e24f];return _0xbabb8c;},_0x57e2(_0x4e478c,_0x1fed25);}export const dbUtil=new DBUtil(); \ No newline at end of file +function _0x2606(){const _0x4fbcf3=[',\x20短id:\x20','SELECT\x20*\x20FROM\x20temp_uins','CeKgE','get','DgRgB','SkiLa','清理消息缓存','getMsg','qddKr','MmNmX','globalMsgShortId','fXHnm','msgId','OPEN_CREATE','ygHBD','NSNSm','db\x20could\x20not\x20get\x20temp\x20uin\x20map','UhzMn','数据库中消息最大短id','run','65jcumDr','getFileCacheByName','addTempUin','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','KOVVl','\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)','getMsgByLongId','SHUoL','gZqef','YiOTe','delete','name','kxEYB','msgSeq','2HCVsyX','sltzM','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','all','createTable','LJZvM','now','slPHk',',\x20msgId:\x20','addMsg','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','maxId','Could\x20not\x20get\x20msg','\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)','5nRbJSX','\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','4740nSpZOR','db\x20could\x20not\x20add\x20temp\x20uin','deOGO','oRxvG','1592223HaAcWa','UahwS','prepare','element','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','CqQYY','getCurrentMaxShortId','path','YQkSG','561387obHHmw','5841AUxcqA','size','UPeUe','SZbAv','uid','url','Could\x20not\x20create\x20table\x20temp_uins','qGApq','Could\x20not\x20create\x20table\x20msgs','close','dLWHD','APfez','aCQJl','init','jCmUr','XjuWZ','1073352ZctSVP','rFxXS','6VJdjsF','GkkXR','1064456eSaFwC','addFileCache','xKKsR','Database','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','PNexS','stringify','jcOwX','toString','longId','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','msgList','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','Method\x20not\x20implemented.','rOxeN','记录消息到数据库,\x20消息长id:\x20','getMsgBySeq','sNwvZ','db\x20getMsgByLongId\x20error','vvyaC','msgTime','WzEad','uuid','peerUid','XWFNK','MPSlQ','qUxrk','3641708DvLTfY','getMsgsByMsgId','ZgTpw','catch',',\x20seq:\x20','208TlnHAM','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','vrDpG','elementType','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','ENjZp','chatType','MenIl','updateMsg','msgCache','db\x20could\x20not\x20add\x20msg','db\x20could\x20not\x20add\x20file','getFileCache','TyuDk','forEach','db\x20could\x20not\x20update\x20file\x20cache','Ctoho','then','DotEZ','getUidByTempUin','116568CpfraA','Could\x20not\x20connect\x20to\x20database','set'];_0x2606=function(){return _0x4fbcf3;};return _0x2606();}const _0x400dfd=_0x2ee3;(function(_0xdadc3c,_0x1a2536){const _0x7dea6c=_0x2ee3,_0x2ee6cd=_0xdadc3c();while(!![]){try{const _0x5f418d=parseInt(_0x7dea6c(0xd0))/0x1+-parseInt(_0x7dea6c(0xb2))/0x2*(parseInt(_0x7dea6c(0xc7))/0x3)+-parseInt(_0x7dea6c(0xe5))/0x4*(-parseInt(_0x7dea6c(0xc0))/0x5)+parseInt(_0x7dea6c(0xe3))/0x6*(-parseInt(_0x7dea6c(0x101))/0x7)+parseInt(_0x7dea6c(0x79))/0x8*(parseInt(_0x7dea6c(0x8d))/0x9)+parseInt(_0x7dea6c(0xc3))/0xa*(-parseInt(_0x7dea6c(0xd1))/0xb)+-parseInt(_0x7dea6c(0xe1))/0xc*(-parseInt(_0x7dea6c(0xa4))/0xd);if(_0x5f418d===_0x1a2536)break;else _0x2ee6cd['push'](_0x2ee6cd['shift']());}catch(_0x546fab){_0x2ee6cd['push'](_0x2ee6cd['shift']());}}}(_0x2606,0x4b644));import _0x331a59 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x400dfd(0xde)](_0x4072d1){const _0x4c8b98=_0x400dfd,_0xe61559={'CeKgE':_0x4c8b98(0x8e),'YQkSG':function(_0x270ab5,_0xbf3742){return _0x270ab5|_0xbf3742;}};if(this['db'])return;return new Promise((_0x4dac6f,_0x40d495)=>{const _0xc8da4e=_0x4c8b98,_0x22a941={'UahwS':function(_0x35b26e,_0x1e767a,_0x40c41e){return _0x35b26e(_0x1e767a,_0x40c41e);},'MmNmX':_0xe61559[_0xc8da4e(0x92)]};this['db']=new _0x331a59[(_0xc8da4e(0xe8))](_0x4072d1,_0xe61559[_0xc8da4e(0xcf)](_0x331a59['OPEN_READWRITE'],_0x331a59[_0xc8da4e(0x9d)]),_0x3d07cd=>{const _0x5f25e8=_0xc8da4e;if(_0x3d07cd){_0x22a941[_0x5f25e8(0xc8)](logError,_0x22a941[_0x5f25e8(0x99)],_0x3d07cd),_0x40d495(_0x3d07cd);return;}this['createTable'](),_0x4dac6f();});});}[_0x400dfd(0xb6)](){const _0x3e197a=_0x400dfd,_0x483ce4={'CqQYY':_0x3e197a(0xf3)};throw new Error(_0x483ce4[_0x3e197a(0xcc)]);}[_0x400dfd(0xda)](){const _0x5712bb=_0x400dfd;this['db']?.[_0x5712bb(0xda)]();}}class DBUtil extends DBUtilBase{[_0x400dfd(0x82)]=new Map();[_0x400dfd(0x9a)]=-0x7ffffff8;constructor(){const _0x374537={'rFxXS':function(_0x19ce81,_0x5ac04b){return _0x19ce81>_0x5ac04b;},'RECvU':function(_0x336c62,_0x1dc7a6){return _0x336c62-_0x1dc7a6;},'Ctoho':function(_0x3182e5,_0x7d35b6){return _0x3182e5*_0x7d35b6;},'SZbAv':function(_0x228fd2,_0x21f6bd){return _0x228fd2(_0x21f6bd);},'EUtsX':function(_0x1b5faa,_0x2cbe4f){return _0x1b5faa*_0x2cbe4f;}};super();const _0x578d23=_0x374537['EUtsX'](_0x374537['Ctoho'](0x3e8,0x3c),0xa);setInterval(()=>{const _0x212c1b=_0x2ee3,_0x2338f1={'gRPGZ':function(_0x560e6f,_0x237708){const _0x1bf259=_0x2ee3;return _0x374537[_0x1bf259(0xe2)](_0x560e6f,_0x237708);},'fXHnm':function(_0xaa1e00,_0x5b510c){return _0x374537['RECvU'](_0xaa1e00,_0x5b510c);},'IMxCc':function(_0x2ca8be,_0x13e8c4){const _0x120928=_0x2ee3;return _0x374537[_0x120928(0x89)](_0x2ca8be,_0x13e8c4);},'sNwvZ':function(_0x2a8131,_0x25aac9){return _0x374537['SZbAv'](_0x2a8131,_0x25aac9);}};_0x374537[_0x212c1b(0xd4)](logDebug,_0x212c1b(0x96)),this[_0x212c1b(0x82)][_0x212c1b(0x87)]((_0x46e3d2,_0x40a2ea)=>{const _0x3bea01=_0x212c1b;_0x2338f1['gRPGZ'](_0x2338f1[_0x3bea01(0x9b)](Date[_0x3bea01(0xb8)](),_0x2338f1['IMxCc'](_0x2338f1[_0x3bea01(0xf7)](parseInt,_0x46e3d2[_0x3bea01(0xfa)]),0x3e8)),_0x578d23)&&this[_0x3bea01(0x82)][_0x3bea01(0xae)](_0x40a2ea);});},_0x578d23);}async[_0x400dfd(0xde)](_0x16fabe){const _0x4f8071=_0x400dfd;await super[_0x4f8071(0xde)](_0x16fabe),this['globalMsgShortId']=await this[_0x4f8071(0xcd)]();}[_0x400dfd(0xb6)](){const _0x195bab=_0x400dfd,_0x47b83c={'PjzGy':_0x195bab(0xd9),'qddKr':'Could\x20not\x20create\x20table\x20files','aCQJl':function(_0x3a3690,_0x32b63b,_0x56d916){return _0x3a3690(_0x32b63b,_0x56d916);},'UPeUe':_0x195bab(0xd7)},_0x4f2fa9=_0x195bab(0xbf);this['db'][_0x195bab(0xa3)](_0x4f2fa9,function(_0x1cf488){_0x1cf488&&logError(_0x47b83c['PjzGy'],_0x1cf488['stack']);});const _0x33d70c=_0x195bab(0xc1);this['db'][_0x195bab(0xa3)](_0x33d70c,function(_0x54ea42){const _0x51e0ea=_0x195bab;_0x54ea42&&logError(_0x47b83c[_0x51e0ea(0x98)],_0x54ea42);});const _0x3c4bbe=_0x195bab(0xa9);this['db'][_0x195bab(0xa3)](_0x3c4bbe,function(_0x48d19a){const _0x41c929=_0x195bab;_0x48d19a&&_0x47b83c[_0x41c929(0xdd)](logError,_0x47b83c[_0x41c929(0xd3)],_0x48d19a);});}async['getCurrentMaxShortId'](){const _0x1b8622=_0x400dfd,_0x165899={'dLWHD':_0x1b8622(0x7a),'UhzMn':function(_0x32054a,_0x108f61){return _0x32054a(_0x108f61);},'YVSyU':function(_0x32f84c,_0x20be03,_0x35e38e){return _0x32f84c(_0x20be03,_0x35e38e);},'DotEZ':_0x1b8622(0xa2),'slPHk':_0x1b8622(0xf2)};return new Promise((_0x275533,_0x18d619)=>{const _0x55d0ea=_0x1b8622;this['db'][_0x55d0ea(0x93)](_0x165899[_0x55d0ea(0xb9)],(_0x1abf51,_0x54c972)=>{const _0x121f05=_0x55d0ea;if(_0x1abf51)return logDebug(_0x165899[_0x121f05(0xdb)],_0x1abf51),_0x165899[_0x121f05(0xa1)](_0x275533,-0x7ffffff8);_0x165899['YVSyU'](logDebug,_0x165899[_0x121f05(0x8b)],_0x54c972?.[_0x121f05(0xbd)]),_0x165899['UhzMn'](_0x275533,_0x54c972?.[_0x121f05(0xbd)]??-0x7ffffff8);});});}async[_0x400dfd(0x97)](_0xe6c28c,_0x301e16){const _0x37c637={'nmdRm':function(_0x3f4ae6,_0x1b8e25,_0x376445,_0x442729,_0x4e5beb){return _0x3f4ae6(_0x1b8e25,_0x376445,_0x442729,_0x4e5beb);},'YiOTe':function(_0x1c4728,_0xca31e5){return _0x1c4728(_0xca31e5);}},_0x59c80e=this['db']['prepare'](_0xe6c28c);return new Promise((_0x3910aa,_0xb26b8a)=>{const _0x393faf=_0x2ee3,_0x1ff608={'rOxeN':function(_0x584eef,_0x1aa4ae){return _0x37c637['YiOTe'](_0x584eef,_0x1aa4ae);},'gZqef':function(_0x5ea03a,_0x173968){const _0x38e7b5=_0x2ee3;return _0x37c637[_0x38e7b5(0xad)](_0x5ea03a,_0x173968);}};_0x59c80e[_0x393faf(0x93)](..._0x301e16,(_0x23f093,_0x3c6948)=>{const _0x38cfcf=_0x393faf;if(_0x23f093)return _0x37c637['nmdRm'](logError,_0x38cfcf(0xbe),_0x23f093,_0xe6c28c,_0x301e16),_0x3910aa(null);if(!_0x3c6948){_0x3910aa(null);return;}const _0x5da78f=_0x3c6948[_0x38cfcf(0xee)];NTQQMsgApi[_0x38cfcf(0x102)]({'peerUid':_0x3c6948[_0x38cfcf(0xfd)],'chatType':_0x3c6948[_0x38cfcf(0x7f)]},[_0x5da78f])[_0x38cfcf(0x8a)](_0x516a4a=>{const _0x224955=_0x38cfcf,_0x339ce=_0x516a4a[_0x224955(0xf0)][0x0];if(!_0x339ce){_0x1ff608[_0x224955(0xf4)](_0x3910aa,null);return;}_0x339ce['id']=_0x3c6948['shortId'],_0x1ff608[_0x224955(0xac)](_0x3910aa,_0x339ce);})['catch'](_0x312117=>{_0x3910aa(null);});});});}async['getMsgByShortId'](_0x23b83a){const _0x36d28d=_0x400dfd,_0x103691={'vvyaC':_0x36d28d(0xef)};if(this[_0x36d28d(0x82)][_0x36d28d(0xc2)](_0x23b83a))return this[_0x36d28d(0x82)][_0x36d28d(0x93)](_0x23b83a);const _0x295968=_0x103691[_0x36d28d(0xf9)];return this[_0x36d28d(0x97)](_0x295968,[_0x23b83a]);}async[_0x400dfd(0xaa)](_0x12c6fc){const _0x946178=_0x400dfd,_0x39f49d={'qGApq':_0x946178(0xbc)};if(this[_0x946178(0x82)][_0x946178(0xc2)](_0x12c6fc))return this['msgCache'][_0x946178(0x93)](_0x12c6fc);return this[_0x946178(0x97)](_0x39f49d[_0x946178(0xd8)],[_0x12c6fc]);}async[_0x400dfd(0xf6)](_0x2fed87,_0x51c9f9){const _0x2865a0=_0x400dfd,_0x11a9d7={'vrDpG':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?'},_0x3b4e04=_0x11a9d7[_0x2865a0(0x7b)];return this[_0x2865a0(0x97)](_0x3b4e04,[_0x2fed87,_0x51c9f9]);}async[_0x400dfd(0xbb)](_0x29a2e1,_0x26f2d4=!![]){const _0x37781d=_0x400dfd,_0x4c2660={'TyuDk':function(_0x448940,_0x488352,_0xcd90cb){return _0x448940(_0x488352,_0xcd90cb);},'jCmUr':'db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','XjuWZ':function(_0x572a4b,_0x2a096d){return _0x572a4b===_0x2a096d;},'APfez':function(_0x44254a,_0x287189,_0x5a01ec){return _0x44254a(_0x287189,_0x5a01ec);},'kxEYB':_0x37781d(0x83),'MenIl':_0x37781d(0xb4)},_0xba4a64=await this['getMsgByLongId'](_0x29a2e1[_0x37781d(0x9c)]);if(_0xba4a64){if(_0x26f2d4)this[_0x37781d(0x81)](_0x29a2e1)['then']();return _0xba4a64['id'];}const _0x380c21=this['db']['prepare'](_0x4c2660[_0x37781d(0x80)]),_0x596c87=++this[_0x37781d(0x9a)];return _0x29a2e1['id']=_0x596c87,logDebug(_0x37781d(0xf5)+_0x29a2e1[_0x37781d(0x9c)]+_0x37781d(0x90)+_0x29a2e1['id']),this[_0x37781d(0x82)][_0x37781d(0x8f)](_0x596c87,_0x29a2e1),this['msgCache']['set'](_0x29a2e1[_0x37781d(0x9c)],_0x29a2e1),_0x380c21[_0x37781d(0xa3)](this['globalMsgShortId'],_0x29a2e1[_0x37781d(0x9c)],_0x29a2e1[_0x37781d(0xb1)][_0x37781d(0xed)](),_0x29a2e1[_0x37781d(0xfd)],_0x29a2e1[_0x37781d(0x7f)],_0x142d41=>{const _0x15f558=_0x37781d;_0x142d41&&(_0x4c2660[_0x15f558(0xe0)](_0x142d41['errno'],0x13)?this[_0x15f558(0xaa)](_0x29a2e1[_0x15f558(0x9c)])['then'](_0x1e8ffb=>{const _0x5b6111=_0x15f558;_0x1e8ffb?(this['msgCache']['set'](_0x596c87,_0x1e8ffb),this[_0x5b6111(0x82)][_0x5b6111(0x8f)](_0x1e8ffb[_0x5b6111(0x9c)],_0x1e8ffb)):_0x4c2660[_0x5b6111(0x86)](logError,_0x4c2660[_0x5b6111(0xdf)],_0x142d41);})[_0x15f558(0x77)](_0x177144=>logError(_0x15f558(0xf8),_0x177144)):_0x4c2660[_0x15f558(0xdc)](logError,_0x4c2660[_0x15f558(0xb0)],_0x142d41));}),_0x596c87;}async['updateMsg'](_0x3e6726){const _0x5d416d=_0x400dfd,_0x5ec124={'WzEad':function(_0x42baca,_0x2e5d92){return _0x42baca(_0x2e5d92);},'SHUoL':'UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?'},_0x5c39bf=this['msgCache'][_0x5d416d(0x93)](_0x3e6726[_0x5d416d(0x9c)]);_0x5c39bf&&Object['assign'](_0x5c39bf,_0x3e6726);_0x5ec124[_0x5d416d(0xfb)](logDebug,'更新消息,\x20shortId:'+_0x3e6726['id']+_0x5d416d(0x78)+_0x3e6726[_0x5d416d(0xb1)]+_0x5d416d(0xba)+_0x3e6726[_0x5d416d(0x9c)]);const _0x838bc4=this['db'][_0x5d416d(0xc9)](_0x5ec124[_0x5d416d(0xab)]);_0x838bc4[_0x5d416d(0xa3)](_0x3e6726['msgSeq'],_0x3e6726[_0x5d416d(0x9c)],_0x240f91=>{_0x240f91&&logError('updateMsg\x20db\x20error',_0x240f91);});}async[_0x400dfd(0xe6)](_0x5880a2){const _0x2c947d=_0x400dfd,_0x47342c={'KOVVl':function(_0xadc38f,_0x254b87,_0x1ec5fb){return _0xadc38f(_0x254b87,_0x1ec5fb);},'jcOwX':function(_0x144b7d,_0x43c0f9){return _0x144b7d(_0x43c0f9);},'NSNSm':function(_0x3844ab,_0x330099){return _0x3844ab(_0x330099);},'YuWvg':_0x2c947d(0x7d)},_0xc5b2e5=this['db'][_0x2c947d(0xc9)](_0x47342c['YuWvg']);return new Promise((_0x3b66b2,_0x5149d6)=>{const _0x489c3f=_0x2c947d,_0x294cab={'AHMwC':function(_0x752f7,_0x465461,_0x2fa57a){const _0x41625d=_0x2ee3;return _0x47342c[_0x41625d(0xa8)](_0x752f7,_0x465461,_0x2fa57a);},'LJZvM':function(_0x7dca43,_0x2e5340){const _0x4ea71b=_0x2ee3;return _0x47342c[_0x4ea71b(0xec)](_0x7dca43,_0x2e5340);},'MPSlQ':function(_0x4977c5,_0x5541d7){const _0x2e4d0e=_0x2ee3;return _0x47342c[_0x2e4d0e(0x9f)](_0x4977c5,_0x5541d7);}};_0xc5b2e5[_0x489c3f(0xa3)](_0x5880a2[_0x489c3f(0xaf)],_0x5880a2[_0x489c3f(0xce)],_0x5880a2[_0x489c3f(0xd6)],_0x5880a2[_0x489c3f(0xd2)],_0x5880a2['uuid'],_0x5880a2[_0x489c3f(0x7c)],JSON[_0x489c3f(0xeb)](_0x5880a2[_0x489c3f(0xca)]),_0x5880a2['elementId'],_0x5880a2[_0x489c3f(0x9c)],function(_0x45aaef){const _0x87d43b=_0x489c3f;_0x45aaef&&(_0x294cab['AHMwC'](logError,_0x87d43b(0x84),_0x45aaef),_0x294cab[_0x87d43b(0xb7)](_0x5149d6,_0x45aaef)),_0x294cab[_0x87d43b(0xff)](_0x3b66b2,null);});});}async['getFileCache'](_0x5e5ed7,_0x5e1b93){const _0x2864e0={'ENjZp':'db\x20could\x20not\x20get\x20file\x20cache','oRxvG':function(_0x21ba51,_0x892687){return _0x21ba51(_0x892687);}},_0x16f5e1=this['db']['prepare'](_0x5e5ed7);return new Promise((_0x932927,_0x7c34b7)=>{const _0x4641d1=_0x2ee3;_0x16f5e1[_0x4641d1(0x93)](..._0x5e1b93,(_0x545537,_0x2f4bae)=>{const _0x4559d4=_0x4641d1;_0x545537&&(logError(_0x2864e0[_0x4559d4(0x7e)],_0x545537),_0x2864e0[_0x4559d4(0xc6)](_0x7c34b7,_0x545537)),_0x2f4bae&&(_0x2f4bae[_0x4559d4(0xca)]=JSON['parse'](_0x2f4bae['element'])),_0x932927(_0x2f4bae);});});}async[_0x400dfd(0xa5)](_0x322359){const _0x1e8d74=_0x400dfd,_0xb03ad3={'qUxrk':_0x1e8d74(0xa7)};return this[_0x1e8d74(0x85)](_0xb03ad3[_0x1e8d74(0x100)],[_0x322359]);}async['getFileCacheByUuid'](_0x1006f3){const _0x12e340=_0x400dfd;return this[_0x12e340(0x85)](_0x12e340(0xe9),[_0x1006f3]);}async['updateFileCache'](_0x40eb8c){const _0x57e813=_0x400dfd,_0xfb0ee1={'IgJEv':function(_0x454bf3,_0x271eb7,_0x3ab284){return _0x454bf3(_0x271eb7,_0x3ab284);},'eTLIf':_0x57e813(0xf1)},_0x37e3eb=this['db'][_0x57e813(0xc9)](_0xfb0ee1['eTLIf']);return new Promise((_0x2a90a5,_0x19beb1)=>{const _0x25e31a=_0x57e813,_0x101f3c={'KRwDi':function(_0xe10d54,_0x27aee7,_0x596317){return _0xfb0ee1['IgJEv'](_0xe10d54,_0x27aee7,_0x596317);},'iCuBI':_0x25e31a(0x88)};_0x37e3eb['run'](_0x40eb8c['path'],_0x40eb8c['url'],_0x40eb8c[_0x25e31a(0xfc)],function(_0x5a44d9){_0x5a44d9&&(_0x101f3c['KRwDi'](logError,_0x101f3c['iCuBI'],_0x5a44d9),_0x19beb1(_0x5a44d9)),_0x2a90a5(null);});});}async['getReceivedTempUinMap'](){const _0x218e3a=_0x400dfd,_0x29fd40={'sltzM':function(_0x4bc89f,_0xe6669d,_0x4a4a71){return _0x4bc89f(_0xe6669d,_0x4a4a71);},'DgRgB':function(_0x2d1397,_0x1784eb){return _0x2d1397(_0x1784eb);},'xKKsR':_0x218e3a(0x91)},_0x3b5f4c=_0x29fd40[_0x218e3a(0xe7)];return new Promise((_0x8ec630,_0x28921b)=>{const _0x1b654c=_0x218e3a;this['db'][_0x1b654c(0xb5)](_0x3b5f4c,(_0x1a6477,_0x4c8cdf)=>{const _0x567982=_0x1b654c;_0x1a6477&&(_0x29fd40[_0x567982(0xb3)](logError,_0x567982(0xa0),_0x1a6477),_0x29fd40[_0x567982(0x94)](_0x28921b,_0x1a6477));const _0x9a2613={};_0x4c8cdf[_0x567982(0x87)](_0x4deabc=>{const _0x4d9fbd=_0x567982;_0x9a2613[_0x4deabc['uin']]=_0x4deabc[_0x4d9fbd(0xd5)];}),_0x8ec630(_0x9a2613);});});}async[_0x400dfd(0x8c)](_0x14c897){const _0xfa760c=_0x400dfd,_0x48af3a={'deOGO':function(_0x278c2b,_0x1002af,_0xf6fd98){return _0x278c2b(_0x1002af,_0xf6fd98);},'hiDtt':function(_0x501db1,_0x30ec24){return _0x501db1(_0x30ec24);},'ZgTpw':_0xfa760c(0xcb)},_0x425b98=_0x48af3a[_0xfa760c(0x103)];return new Promise((_0x29e4d9,_0x33705d)=>{const _0x44697f=_0xfa760c,_0x4ca303={'GkkXR':function(_0x4ef24c,_0x185c20,_0x57cb63){const _0x5de776=_0x2ee3;return _0x48af3a[_0x5de776(0xc5)](_0x4ef24c,_0x185c20,_0x57cb63);},'ygHBD':_0x44697f(0xa0),'XWFNK':function(_0x5d524a,_0xd37af0){return _0x48af3a['hiDtt'](_0x5d524a,_0xd37af0);},'HxVSB':function(_0xd0affb,_0x3916aa){return _0xd0affb(_0x3916aa);}};this['db'][_0x44697f(0x93)](_0x425b98,[_0x14c897],(_0x47267d,_0x45356a)=>{const _0x5f3d6f=_0x44697f;_0x47267d&&(_0x4ca303[_0x5f3d6f(0xe4)](logError,_0x4ca303[_0x5f3d6f(0x9e)],_0x47267d),_0x4ca303[_0x5f3d6f(0xfe)](_0x33705d,_0x47267d)),_0x4ca303['HxVSB'](_0x29e4d9,_0x45356a?.['uid']);});});}async[_0x400dfd(0xa6)](_0x4abae2,_0x46134b){const _0x5c674b=_0x400dfd,_0x5383a9={'PNexS':_0x5c674b(0xc4),'SkiLa':function(_0x33e7a0,_0x38f61e){return _0x33e7a0(_0x38f61e);}},_0x50bdf5=await this[_0x5c674b(0x8c)](_0x4abae2);if(!_0x50bdf5){const _0x251c74=this['db']['prepare']('INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)');return new Promise((_0x5c88c7,_0x571c47)=>{const _0x1fc7e9=_0x5c674b;_0x251c74[_0x1fc7e9(0xa3)](_0x4abae2,_0x46134b,function(_0x38d2aa){const _0x439704=_0x1fc7e9;_0x38d2aa&&(logError(_0x5383a9[_0x439704(0xea)],_0x38d2aa),_0x5383a9[_0x439704(0x95)](_0x571c47,_0x38d2aa)),_0x5383a9[_0x439704(0x95)](_0x5c88c7,null);});});}}}function _0x2ee3(_0x1976ea,_0xc0c479){const _0x260641=_0x2606();return _0x2ee3=function(_0x2ee363,_0xe184fd){_0x2ee363=_0x2ee363-0x77;let _0x3cbbfe=_0x260641[_0x2ee363];return _0x3cbbfe;},_0x2ee3(_0x1976ea,_0xc0c479);}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 4727be23..8ed35bc3 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x15b232=_0x1bae;(function(_0x41abec,_0x495522){const _0xbfdf93=_0x1bae,_0x335898=_0x41abec();while(!![]){try{const _0x284676=-parseInt(_0xbfdf93(0x13c))/0x1+parseInt(_0xbfdf93(0x139))/0x2*(-parseInt(_0xbfdf93(0x13a))/0x3)+parseInt(_0xbfdf93(0x137))/0x4*(parseInt(_0xbfdf93(0x143))/0x5)+-parseInt(_0xbfdf93(0x13b))/0x6*(parseInt(_0xbfdf93(0x144))/0x7)+-parseInt(_0xbfdf93(0x13d))/0x8+parseInt(_0xbfdf93(0x145))/0x9+parseInt(_0xbfdf93(0x138))/0xa;if(_0x284676===_0x495522)break;else _0x335898['push'](_0x335898['shift']());}catch(_0x115e46){_0x335898['push'](_0x335898['shift']());}}}(_0x2f37,0x6e2c8));import _0x2e2ccd from'node:path';import _0x44ba15 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x2f37(){const _0x164cac=['24458520PsWVLm','576762cPxkPS','9vxjFpx','12HcbeCD','845028hGHkDW','6939088hpvGKx','execPath','dirname','curVersion','join','/wrapper.node','140fkWzvi','1352442ddLOZI','612117wXPXzI','existsSync','128768jSkPgh'];_0x2f37=function(){return _0x164cac;};return _0x2f37();}let wrapperNodePath=_0x2e2ccd['resolve'](_0x2e2ccd[_0x15b232(0x13f)](process[_0x15b232(0x13e)]),'./resources/app/wrapper.node');!_0x44ba15[_0x15b232(0x136)](wrapperNodePath)&&(wrapperNodePath=_0x2e2ccd[_0x15b232(0x141)](_0x2e2ccd[_0x15b232(0x13f)](process[_0x15b232(0x13e)]),'resources/app/versions/'+qqVersionConfigInfo[_0x15b232(0x140)]+_0x15b232(0x142)));const QQWrapper=require(wrapperNodePath);function _0x1bae(_0x5172ea,_0x530561){const _0x2f375e=_0x2f37();return _0x1bae=function(_0x1bae55,_0x3d7bf0){_0x1bae55=_0x1bae55-0x136;let _0x2b4ab5=_0x2f375e[_0x1bae55];return _0x2b4ab5;},_0x1bae(_0x5172ea,_0x530561);}export default QQWrapper; \ No newline at end of file +const _0x5e54ca=_0x179a;(function(_0x477e69,_0x2dae53){const _0x2e673a=_0x179a,_0x4c63eb=_0x477e69();while(!![]){try{const _0x3405cd=parseInt(_0x2e673a(0x94))/0x1+parseInt(_0x2e673a(0x98))/0x2*(parseInt(_0x2e673a(0x99))/0x3)+-parseInt(_0x2e673a(0x96))/0x4*(parseInt(_0x2e673a(0x9a))/0x5)+-parseInt(_0x2e673a(0x8e))/0x6+-parseInt(_0x2e673a(0x8d))/0x7*(parseInt(_0x2e673a(0x92))/0x8)+-parseInt(_0x2e673a(0x9b))/0x9*(-parseInt(_0x2e673a(0x90))/0xa)+parseInt(_0x2e673a(0x97))/0xb;if(_0x3405cd===_0x2dae53)break;else _0x4c63eb['push'](_0x4c63eb['shift']());}catch(_0x1c2ec8){_0x4c63eb['push'](_0x4c63eb['shift']());}}}(_0x239f,0x1c604));import _0x5b052b from'node:path';import _0x4656ce from'node:fs';function _0x179a(_0x108f1a,_0x4f6d28){const _0x239f4e=_0x239f();return _0x179a=function(_0x179a70,_0x393638){_0x179a70=_0x179a70-0x8d;let _0x5c9ffb=_0x239f4e[_0x179a70];return _0x5c9ffb;},_0x179a(_0x108f1a,_0x4f6d28);}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x239f(){const _0x2c7417=['1438ldzPck','492MMAzBa','5KkhPrZ','5652zeJQQc','77GewMDe','1247376TzqPMS','/wrapper.node','2740ZocEyQ','execPath','164048LgJpEB','./resources/app/wrapper.node','149797iRWyLR','dirname','270436xrjbKa','1952654nonLRi'];_0x239f=function(){return _0x2c7417;};return _0x239f();}let wrapperNodePath=_0x5b052b['resolve'](_0x5b052b[_0x5e54ca(0x95)](process[_0x5e54ca(0x91)]),_0x5e54ca(0x93));!_0x4656ce['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x5b052b['join'](_0x5b052b[_0x5e54ca(0x95)](process[_0x5e54ca(0x91)]),'resources/app/versions/'+qqVersionConfigInfo['curVersion']+_0x5e54ca(0x8f)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file diff --git a/src/onebot11/constructor.ts b/src/onebot11/constructor.ts index c5f9286b..247c5921 100644 --- a/src/onebot11/constructor.ts +++ b/src/onebot11/constructor.ts @@ -76,13 +76,15 @@ export class OB11Constructor { resMsg.sender.role = OB11Constructor.groupMemberRole(member.role); resMsg.sender.nickname = member.nick; } - } else if (msg.chatType == ChatType.friend) { + } + else if (msg.chatType == ChatType.friend) { resMsg.sub_type = 'friend'; const friend = await getFriend(msg.senderUin!); if (friend) { resMsg.sender.nickname = friend.nick; } - } else if (msg.chatType == ChatType.temp) { + } + else if (msg.chatType == ChatType.temp) { resMsg.sub_type = 'group'; const tempGroupCode = tempGroupCodeMap[msg.peerUin]; if (tempGroupCode) { @@ -100,7 +102,8 @@ export class OB11Constructor { if (element.textElement.atType == AtType.atAll) { // message_data["data"]["mention"] = "all" message_data['data']['qq'] = 'all'; - } else { + } + else { const atUid = element.textElement.atNtUid; let atQQ = element.textElement.atUid; if (!atQQ || atQQ === '0') { @@ -114,14 +117,16 @@ export class OB11Constructor { message_data['data']['qq'] = atQQ; } } - } else if (element.textElement) { + } + else if (element.textElement) { message_data['type'] = 'text'; const text = element.textElement.content; if (!text.trim()) { continue; } message_data['data']['text'] = text; - } else if (element.replyElement) { + } + else if (element.replyElement) { message_data['type'] = 'reply'; // log("收到回复消息", element.replyElement.replayMsgSeq) try { @@ -129,14 +134,16 @@ export class OB11Constructor { // log("找到回复消息", replyMsg.msgShortId, replyMsg.msgId) if (replyMsg && replyMsg.id) { message_data['data']['id'] = replyMsg.id!.toString(); - } else { + } + else { continue; } } catch (e: any) { logError('获取不到引用的消息', e.stack, element.replyElement.replayMsgSeq); } - } else if (element.picElement) { + } + else if (element.picElement) { message_data['type'] = 'image'; // message_data["data"]["file"] = element.picElement.sourcePath message_data['data']['file'] = element.picElement.fileName; @@ -145,7 +152,7 @@ export class OB11Constructor { try { message_data['data']['url'] = await NTQQFileApi.getImageUrl(msg); - }catch (e: any) { + } catch (e: any) { logError('获取图片url失败', e.stack); } // message_data["data"]["file_id"] = element.picElement.fileUuid @@ -163,7 +170,8 @@ export class OB11Constructor { }).then(); // 不自动下载图片 - } else if (element.videoElement || element.fileElement) { + } + else if (element.videoElement || element.fileElement) { const videoOrFileElement = element.videoElement || element.fileElement; const ob11MessageDataType = element.videoElement ? OB11MessageDataType.video : OB11MessageDataType.file; message_data['type'] = ob11MessageDataType; @@ -183,7 +191,8 @@ export class OB11Constructor { elementType: element.videoElement ? ElementType.VIDEO : ElementType.FILE, elementId: element.elementId }).then(); - } else if (element.pttElement) { + } + else if (element.pttElement) { message_data['type'] = OB11MessageDataType.voice; message_data['data']['file'] = element.pttElement.fileName; message_data['data']['path'] = element.pttElement.filePath; @@ -201,22 +210,27 @@ export class OB11Constructor { elementId: element.elementId }).then(); - } else if (element.arkElement) { + } + else if (element.arkElement) { message_data['type'] = OB11MessageDataType.json; message_data['data']['data'] = element.arkElement.bytesData; - } else if (element.faceElement) { + } + else if (element.faceElement) { const faceId = element.faceElement.faceIndex; if (faceId === FaceIndex.dice) { message_data['type'] = OB11MessageDataType.dice; message_data['data']['result'] = element.faceElement.resultId; - } else if (faceId === FaceIndex.RPS) { + } + else if (faceId === FaceIndex.RPS) { message_data['type'] = OB11MessageDataType.RPS; message_data['data']['result'] = element.faceElement.resultId; - } else { + } + else { message_data['type'] = OB11MessageDataType.face; message_data['data']['id'] = element.faceElement.faceIndex.toString(); } - } else if (element.marketFaceElement) { + } + else if (element.marketFaceElement) { message_data['type'] = OB11MessageDataType.mface; message_data['data']['text'] = element.marketFaceElement.faceName; const md5 = element.marketFaceElement.emojiId; @@ -226,10 +240,12 @@ export class OB11Constructor { // const url = `https://p.qpic.cn/CDN_STATIC/0/data/imgcache/htdocs/club/item/parcel/item/${dir}/${md5}/300x300.gif?max_age=31536000`; const url = `https://gxh.vip.qq.com/club/item/parcel/item/${dir}/${md5}/raw300.gif`; message_data['data']['url'] = url; - } else if (element.markdownElement) { + } + else if (element.markdownElement) { message_data['type'] = OB11MessageDataType.markdown; message_data['data']['data'] = element.markdownElement.content; - } else if (element.multiForwardMsgElement) { + } + else if (element.multiForwardMsgElement) { message_data['type'] = OB11MessageDataType.forward; message_data['data']['id'] = msg.msgId; } @@ -237,7 +253,8 @@ export class OB11Constructor { const cqCode = encodeCQCode(message_data); if (messagePostFormat === 'string') { (resMsg.message as string) += cqCode; - } else (resMsg.message as OB11MessageData[]).push(message_data); + } + else (resMsg.message as OB11MessageData[]).push(message_data); resMsg.raw_message += cqCode; } } @@ -281,7 +298,8 @@ export class OB11Constructor { // log("构造群增加事件", event) return event; } - } else if (groupElement.type === TipGroupElementType.ban) { + } + else if (groupElement.type === TipGroupElementType.ban) { logDebug('收到群群员禁言提示', groupElement); const memberUid = groupElement.shutUp!.member.uid; const adminUid = groupElement.shutUp!.admin.uid; @@ -291,7 +309,8 @@ export class OB11Constructor { // log('OB11被禁言事件', adminUid); if (memberUid) { memberUin = (await getGroupMember(msg.peerUid, memberUid))?.uin || ''; // || (await NTQQUserApi.getUserDetailInfo(memberUid))?.uin - } else { + } + else { memberUin = '0'; // 0表示全员禁言 if (duration > 0) { duration = -1; @@ -303,7 +322,8 @@ export class OB11Constructor { const event = new OB11GroupBanEvent(parseInt(msg.peerUid), parseInt(memberUin), parseInt(adminUin), duration, sub_type); return event; } - } else if (groupElement.type == TipGroupElementType.kicked) { + } + else if (groupElement.type == TipGroupElementType.kicked) { logDebug(`收到我被踢出或退群提示, 群${msg.peerUid}`, groupElement); deleteGroup(msg.peerUid); NTQQGroupApi.quitGroup(msg.peerUid).then(); @@ -316,7 +336,8 @@ export class OB11Constructor { return new OB11GroupDecreaseEvent(parseInt(msg.peerUid), parseInt(selfInfo.uin), 0, 'leave'); } } - } else if (element.fileElement) { + } + else if (element.fileElement) { return new OB11GroupUploadNoticeEvent(parseInt(msg.peerUid), parseInt(msg.senderUin || ''), { id: element.fileElement.fileUuid!, name: element.fileElement.fileName, @@ -376,7 +397,8 @@ export class OB11Constructor { return new OB11GroupIncreaseEvent(parseInt(msg.peerUid), parseInt(invitee), parseInt(inviter), 'invite'); } } - } else if (grayTipElement.subElementType == GrayTipElementSubType.MEMBER_NEW_TITLE) { + } + else if (grayTipElement.subElementType == GrayTipElementSubType.MEMBER_NEW_TITLE) { const json = JSON.parse(grayTipElement.jsonGrayTipElement.jsonStr); /* {