@dscord/daemon 0.1.69 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat-bridge.js +2005 -1979
- package/dist/index.js +10830 -10856
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const _0x2869e3 = _0x355a;
|
|
2
|
+
(function (_0x357d71, _0x49e847) {
|
|
3
|
+
const _0xf93d92 = {
|
|
4
|
+
_0x339e9d: 0x280,
|
|
5
|
+
_0xd877c: 0x2b2,
|
|
6
|
+
_0x16996b: 0x253,
|
|
7
|
+
_0x36f7f8: 0x2b3,
|
|
8
|
+
_0x44b8a8: 0x233,
|
|
9
|
+
_0x42e8a3: 0x22a,
|
|
10
|
+
_0x192a5a: 0x2f6,
|
|
11
|
+
_0x1acbc5: 0x2a6
|
|
12
|
+
}, _0x1a23fa = _0x355a, _0x4fd799 = _0x357d71();
|
|
9
13
|
while (!![]) {
|
|
10
14
|
try {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
15
|
+
const _0x5c1b1f = parseInt(_0x1a23fa(_0xf93d92._0x339e9d)) / 0x1 * (parseInt(_0x1a23fa(_0xf93d92._0xd877c)) / 0x2) + -parseInt(_0x1a23fa(_0xf93d92._0x16996b)) / 0x3 * (-parseInt(_0x1a23fa(0x18e)) / 0x4) + -parseInt(_0x1a23fa(0x1ca)) / 0x5 + -parseInt(_0x1a23fa(_0xf93d92._0x36f7f8)) / 0x6 + parseInt(_0x1a23fa(_0xf93d92._0x44b8a8)) / 0x7 * (-parseInt(_0x1a23fa(0x25d)) / 0x8) + -parseInt(_0x1a23fa(0x2ee)) / 0x9 * (parseInt(_0x1a23fa(_0xf93d92._0x42e8a3)) / 0xa) + -parseInt(_0x1a23fa(_0xf93d92._0x192a5a)) / 0xb * (-parseInt(_0x1a23fa(_0xf93d92._0x1acbc5)) / 0xc);
|
|
16
|
+
if (_0x5c1b1f === _0x49e847)
|
|
13
17
|
break;
|
|
14
18
|
else
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
19
|
+
_0x4fd799['push'](_0x4fd799['shift']());
|
|
20
|
+
} catch (_0x3ff5e7) {
|
|
21
|
+
_0x4fd799['push'](_0x4fd799['shift']());
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
|
-
}(
|
|
24
|
+
}(_0x2c5c, 0xeaf96));
|
|
21
25
|
import { pathToFileURL } from 'node:url';
|
|
22
26
|
import {
|
|
23
27
|
mkdir,
|
|
@@ -26,508 +30,502 @@ import {
|
|
|
26
30
|
stat,
|
|
27
31
|
writeFile
|
|
28
32
|
} from 'node:fs/promises';
|
|
29
|
-
function _0x35b1(_0x25d2f7, _0x42d6f9) {
|
|
30
|
-
_0x25d2f7 = _0x25d2f7 - 0x123;
|
|
31
|
-
const _0xdbc3f1 = _0xdbc3();
|
|
32
|
-
let _0x35b16 = _0xdbc3f1[_0x25d2f7];
|
|
33
|
-
if (_0x35b1['LFfwkS'] === undefined) {
|
|
34
|
-
var _0x59037e = function (_0x475388) {
|
|
35
|
-
const _0x2e067d = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
36
|
-
let _0x5b4675 = '', _0x985aa9 = '';
|
|
37
|
-
for (let _0x4eaa38 = 0x0, _0x3414fe, _0x8ff712, _0x16da02 = 0x0; _0x8ff712 = _0x475388['charAt'](_0x16da02++); ~_0x8ff712 && (_0x3414fe = _0x4eaa38 % 0x4 ? _0x3414fe * 0x40 + _0x8ff712 : _0x8ff712, _0x4eaa38++ % 0x4) ? _0x5b4675 += String['fromCharCode'](0xff & _0x3414fe >> (-0x2 * _0x4eaa38 & 0x6)) : 0x0) {
|
|
38
|
-
_0x8ff712 = _0x2e067d['indexOf'](_0x8ff712);
|
|
39
|
-
}
|
|
40
|
-
for (let _0x537c0a = 0x0, _0x23cab0 = _0x5b4675['length']; _0x537c0a < _0x23cab0; _0x537c0a++) {
|
|
41
|
-
_0x985aa9 += '%' + ('00' + _0x5b4675['charCodeAt'](_0x537c0a)['toString'](0x10))['slice'](-0x2);
|
|
42
|
-
}
|
|
43
|
-
return decodeURIComponent(_0x985aa9);
|
|
44
|
-
};
|
|
45
|
-
_0x35b1['ClFfcR'] = _0x59037e, _0x35b1['aXMnUm'] = {}, _0x35b1['LFfwkS'] = !![];
|
|
46
|
-
}
|
|
47
|
-
const _0x463234 = _0xdbc3f1[0x0], _0x43ce6b = _0x25d2f7 + _0x463234, _0x5d4ee6 = _0x35b1['aXMnUm'][_0x43ce6b];
|
|
48
|
-
return !_0x5d4ee6 ? (_0x35b16 = _0x35b1['ClFfcR'](_0x35b16), _0x35b1['aXMnUm'][_0x43ce6b] = _0x35b16) : _0x35b16 = _0x5d4ee6, _0x35b16;
|
|
49
|
-
}
|
|
50
33
|
import { homedir } from 'node:os';
|
|
51
|
-
import
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
'
|
|
77
|
-
'otyXmJm1r09bqNbm',
|
|
78
|
-
'BMv4Den1CNnVCG',
|
|
79
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
80
|
-
'ywDNCMvNyxrLswrZ',
|
|
81
|
-
'C2XPy2u',
|
|
82
|
-
'CgfKu3rHCNq',
|
|
83
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
84
|
-
'AxnbCNjHEq',
|
|
85
|
-
'Agv4',
|
|
86
|
-
'yxjYyxLcDwzMzxi',
|
|
87
|
-
'yMfZzw5HBwu',
|
|
88
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
89
|
-
'Bwv0yq',
|
|
90
|
-
'Cgf5Bg9HzePZB24',
|
|
91
|
-
'BgLZDf90yxnRCW',
|
|
92
|
-
'zgf0yq',
|
|
93
|
-
'zgLZCg9ZAxrPB24',
|
|
94
|
-
'lcbWCMv2Awv3pq',
|
|
95
|
-
'y3jLyxrLvgfZA3m',
|
|
96
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
97
|
-
'Bgf0zxn0u2vX',
|
|
98
|
-
'ANnVBG',
|
|
99
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
100
|
-
'z2v0u2vJB25KCW',
|
|
101
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
102
|
-
'lMjPBG',
|
|
103
|
-
'DxnLCG',
|
|
104
|
-
'zMv0y2HjBxbS',
|
|
105
|
-
'icHPzdO',
|
|
106
|
-
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
107
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
108
|
-
'DxbKyxrL',
|
|
109
|
-
'ywDLBNq',
|
|
110
|
-
'Dgv4Da',
|
|
111
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
112
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
113
|
-
'igLUia',
|
|
114
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
115
|
-
'vgfZAZOG',
|
|
116
|
-
'Ahr0Chm6',
|
|
117
|
-
'l3rHC2TZ',
|
|
118
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
119
|
-
'DgfZA19Pza',
|
|
120
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
121
|
-
'DgHYzwfK',
|
|
122
|
-
'z2v0vgLTzq',
|
|
123
|
-
'ywrK',
|
|
34
|
+
import _0x40ff1a from 'node:path';
|
|
35
|
+
function _0x2c5c() {
|
|
36
|
+
const _0xb4c733 = [
|
|
37
|
+
'Dg9KBW',
|
|
38
|
+
'yxjNDG',
|
|
39
|
+
'DMfSDwu',
|
|
40
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
|
|
41
|
+
'CMvZDwX0CW',
|
|
42
|
+
'iokaLca',
|
|
43
|
+
'BwvZC2fNzv9Pzhm',
|
|
44
|
+
'mti5otK2mZz2yKXYDu0',
|
|
45
|
+
'zMLSzw5HBwu',
|
|
46
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
47
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
48
|
+
'AwrSzq',
|
|
49
|
+
'l3rHC2TZpW',
|
|
50
|
+
'DgfZA0LK',
|
|
51
|
+
'ywDLBNrjza',
|
|
52
|
+
'mJqYnZD3EgzKA2u',
|
|
53
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
54
|
+
'l3rHC2TZl2nSywLT',
|
|
55
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
56
|
+
'CgfYC2vjBNq',
|
|
57
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
58
|
+
'C2vYDMvY',
|
|
59
|
+
'v29YA2vYia',
|
|
124
60
|
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'DxjNzw50',
|
|
137
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
138
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
139
|
-
'AhvTyw4',
|
|
140
|
-
'CMvHzeHPC3rVCNK',
|
|
141
|
-
'y2HHBM5LBa',
|
|
142
|
-
'ndj0qNjYwu4',
|
|
143
|
-
'Aw5FChjVz3jLC3m',
|
|
144
|
-
'CgfYA193B3jRzxi',
|
|
145
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
146
|
-
'zgvZy3jPyMu',
|
|
147
|
-
'CM9VDe1LC3nHz2vjza',
|
|
61
|
+
'yM9KEvrLEhq',
|
|
62
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
63
|
+
'D29YA2vY',
|
|
64
|
+
'y2HHDa',
|
|
65
|
+
'DgfZA19Pza',
|
|
66
|
+
'Dg9mB3DLCKnHC2u',
|
|
67
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
68
|
+
'cGOTls0G',
|
|
69
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
70
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
71
|
+
'C3rHDhvZ',
|
|
148
72
|
'AhvTyw5Z',
|
|
149
|
-
'
|
|
150
|
-
'ig1LC3nHz2vZkqOk',
|
|
151
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
152
|
-
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
153
|
-
'ywDNCMvNyxrLswq',
|
|
154
|
-
'Dg9KBW',
|
|
155
|
-
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
73
|
+
'w3nLCt0',
|
|
156
74
|
'y29UBMvJDa',
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
75
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
76
|
+
'zw51Bq',
|
|
77
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
78
|
+
'Aw5JBhvKzxm',
|
|
79
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
80
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
81
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
82
|
+
'ig1ZzZ0',
|
|
83
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
84
|
+
'y2HHBM5LBa',
|
|
85
|
+
'C2HHmJu2',
|
|
86
|
+
'y29UDgvUDc10ExbL',
|
|
87
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
88
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
89
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
90
|
+
'mJuYnhfOC3vcsa',
|
|
91
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
92
|
+
'zgvZy3jPChrPB24',
|
|
93
|
+
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
94
|
+
'zgvZy3jPyMu',
|
|
95
|
+
'igLUia',
|
|
96
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
97
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
164
98
|
'C2L6zuj5DgvZ',
|
|
165
|
-
'
|
|
166
|
-
'ihrPBwu9',
|
|
167
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
99
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
168
100
|
'Dw5JBgfPBv90yxnR',
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
101
|
+
'Dg9ju09tDhjPBMC',
|
|
102
|
+
'y29UDgvUDejHC2u2na',
|
|
103
|
+
'l3n0yxj0',
|
|
104
|
+
'DgfZAY0',
|
|
105
|
+
'D2fPDgLUz19PBNb1Da',
|
|
106
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
107
|
+
'Aw1Hz2uVANbLzW',
|
|
108
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
109
|
+
'AgvHzgvYCW',
|
|
110
|
+
'yMvMB3jL',
|
|
111
|
+
'y3jLyxrLx3rHC2TZ',
|
|
112
|
+
'ywz0zxi',
|
|
113
|
+
'y2HHBM5LBeLK',
|
|
114
|
+
'D29YA2vYtw9Kzq',
|
|
115
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
116
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
176
117
|
'C3rHCNrZv2L0Aa',
|
|
118
|
+
'Agv4',
|
|
119
|
+
'ig1LC3nHz2u9',
|
|
120
|
+
'CM9VDe1LC3nHz2vjza',
|
|
121
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
122
|
+
'igzHAwXLzdOG',
|
|
123
|
+
'ywrK',
|
|
124
|
+
'yMfZzw5HBwu',
|
|
125
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
126
|
+
'yMfZzty0',
|
|
127
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
128
|
+
'pgvTChr5pG',
|
|
129
|
+
'Bg9JywXLq29TCgfYzq',
|
|
130
|
+
'ls1Zzxj2zxiTDxjS',
|
|
131
|
+
'DxbSB2fKrMLSzq',
|
|
132
|
+
'DgvZDa',
|
|
133
|
+
'C3vJy2vZCW',
|
|
134
|
+
'C3rYAw5NAwz5',
|
|
135
|
+
'yxjYyxK',
|
|
136
|
+
'DgHYzwfKu2HVCNrjza',
|
|
137
|
+
'zw50CMLLCW',
|
|
177
138
|
'C2vYDMvYvxjS',
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'BwvTyMvYCW',
|
|
182
|
-
'v29YA2vYici',
|
|
183
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
184
|
-
'BgLZDf9Zzxj2zxi',
|
|
185
|
-
'C3rYAw5N',
|
|
186
|
-
'y3jLyxrLx3rHC2TZ',
|
|
187
|
-
'zxzLBNrtzxe',
|
|
188
|
-
'BwfPBG',
|
|
189
|
-
'z2v0twLUDxrLCW',
|
|
190
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
191
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
192
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
193
|
-
'D29YA2vY',
|
|
194
|
-
'BwfW',
|
|
195
|
-
'D29YA19RzxK',
|
|
196
|
-
'mtq1nJGZCLvkA2Hg',
|
|
197
|
-
'Bwf0y2Hoyw1L',
|
|
198
|
-
'ChvZAa',
|
|
199
|
-
'AxnjBNrLz2vY',
|
|
200
|
-
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
201
|
-
'BgLTAxq',
|
|
202
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
139
|
+
'mc4WlJa',
|
|
140
|
+
'iJOGC3rHDhvZpq',
|
|
141
|
+
'BgLZDfnLCNzLCG',
|
|
203
142
|
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
204
|
-
'AgvHzgvYCW',
|
|
205
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
206
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
207
|
-
'mtv6sgL5C0y',
|
|
208
|
-
'AgfZ',
|
|
209
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
210
|
-
'w3rHCMDLDd0',
|
|
211
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
212
|
-
'nteZntiYmJbqrhLlweK',
|
|
213
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
214
|
-
'A2LUza',
|
|
215
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
216
|
-
'nZG2nJu4nLrzEgvdqq',
|
|
217
|
-
'DgfZA051BwjLCG',
|
|
218
|
-
'xsba',
|
|
219
|
-
'y3jLyxrLzef0',
|
|
220
|
-
'zg0T',
|
|
221
|
-
'y2XPzw50',
|
|
222
|
-
'D3m6',
|
|
223
|
-
'iYmJienOyw5UzwXZ',
|
|
224
|
-
'yxv0BZO',
|
|
225
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
226
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
227
|
-
'C2vYDMvYtMfTzq',
|
|
228
|
-
'DgfZA3m',
|
|
229
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
230
|
-
'CgfYDgLJAxbHBNrjza',
|
|
231
143
|
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
232
|
-
'
|
|
144
|
+
'B3b0Aw9UywW',
|
|
233
145
|
'DMLLD19MAwXL',
|
|
234
|
-
'
|
|
235
|
-
'
|
|
236
|
-
'
|
|
237
|
-
'
|
|
238
|
-
'
|
|
239
|
-
'
|
|
240
|
-
'C2HHmJu2',
|
|
241
|
-
'Aw5JBhvKzxm',
|
|
242
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
243
|
-
'y2HHBM5LBe5HBwu',
|
|
244
|
-
'zg06',
|
|
245
|
-
'yxjYyxK',
|
|
246
|
-
'cGOTls0G',
|
|
247
|
-
'DMLZAwjPBgL0Eq',
|
|
248
|
-
'BwvZC2fNzv9Pzhm',
|
|
249
|
-
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
250
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
146
|
+
'y3vYC29Y',
|
|
147
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
148
|
+
'yxjYyxLcDwzMzxi',
|
|
149
|
+
'ywjVCNq',
|
|
150
|
+
'nZe0odG0nvLvyNnICa',
|
|
151
|
+
'icHPzdO',
|
|
251
152
|
'yM9KEu1HCMTKB3DU',
|
|
252
|
-
'
|
|
253
|
-
'y29UDgvUDa',
|
|
254
|
-
'Axnoyu4',
|
|
255
|
-
'l3n0yxj0',
|
|
256
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
257
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
258
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
153
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
259
154
|
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
260
|
-
'
|
|
261
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
262
|
-
'CMvHzf9OAxn0B3j5',
|
|
263
|
-
'l3rHC2TZl2nSywLT',
|
|
264
|
-
'C2LNBMfS',
|
|
265
|
-
'Aw1Hz2uVANbLzW',
|
|
266
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
267
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
268
|
-
'l3rHC2TZpW',
|
|
269
|
-
'C2vUze1LC3nHz2u',
|
|
270
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
271
|
-
'C3vJy2vZCW',
|
|
272
|
-
'y2HPBgrYzw5uB3rHBa',
|
|
273
|
-
'C3vIDgfZA19UDw1Izxi',
|
|
274
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
275
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
276
|
-
'DgfZA0LK',
|
|
277
|
-
'DhLWzq',
|
|
278
|
-
'yM9KEvrLEhq',
|
|
279
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
280
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
281
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
282
|
-
'D29YA2vYCW',
|
|
283
|
-
'zMLSDgvY',
|
|
284
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
|
|
285
|
-
'nJi0A2n1Bfnj',
|
|
286
|
-
'Aw1Hz2uVD2vICa',
|
|
287
|
-
'zgvZy3jPChrPB24',
|
|
288
|
-
'BwvZC2fNzq',
|
|
155
|
+
'DgfZAW',
|
|
289
156
|
'ihr5Cgu9ywDLBNq',
|
|
290
|
-
'
|
|
291
|
-
'
|
|
292
|
-
'
|
|
157
|
+
'zg0T',
|
|
158
|
+
'CgfYA193B3jRzxi',
|
|
159
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
160
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
161
|
+
'B2jQzwn0',
|
|
162
|
+
'Dgv4Dc9WBgfPBG',
|
|
163
|
+
'BgLZDfrHC2TZ',
|
|
293
164
|
'DgfYz2v0zwq',
|
|
294
|
-
'
|
|
295
|
-
'
|
|
296
|
-
'
|
|
297
|
-
'
|
|
298
|
-
'
|
|
299
|
-
'
|
|
300
|
-
'
|
|
301
|
-
'
|
|
302
|
-
'
|
|
303
|
-
'
|
|
165
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
166
|
+
'AgfZ',
|
|
167
|
+
'CNvUswq',
|
|
168
|
+
'ANnVBG',
|
|
169
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
170
|
+
'BgvUz3rO',
|
|
171
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
172
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
173
|
+
'C2vUzgvYtMfTzq',
|
|
174
|
+
'Aw1Hz2uVCg5N',
|
|
175
|
+
'CgfYDgLJAxbHBNrjza',
|
|
176
|
+
'ignSywLTzwq',
|
|
177
|
+
'y2HLy2TnzxnZywDLCW',
|
|
178
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
179
|
+
'y2HHBM5LBe5HBwu',
|
|
180
|
+
'lIbnzxnZywDLieLeoIa',
|
|
181
|
+
'BwfPBG',
|
|
182
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
183
|
+
'ChvZAa',
|
|
184
|
+
'CxvLDwvK',
|
|
185
|
+
'BgLZDf9Zzxj2zxi',
|
|
186
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
187
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
188
|
+
'Bwf0y2Hoyw1L',
|
|
189
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
190
|
+
'BNvTyMvY',
|
|
191
|
+
'ywDLBNq',
|
|
192
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
304
193
|
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
305
194
|
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
306
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
307
|
-
'r0vu',
|
|
308
|
-
'yxr0ywnOBwvUDeLK',
|
|
309
|
-
'zw51Bq',
|
|
310
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
311
|
-
'z2v0',
|
|
312
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
313
|
-
'C3rVCe1HAw4',
|
|
314
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
315
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
316
195
|
'Bg93',
|
|
317
|
-
'
|
|
318
|
-
'
|
|
196
|
+
'z2v0rgf0zq',
|
|
197
|
+
'y2HPBgrYzw5eB25L',
|
|
198
|
+
'iYmJienOyw5UzwXZ',
|
|
199
|
+
'CMvHzeHPC3rVCNK',
|
|
200
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
201
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
202
|
+
'iYmGu2vYDMvYoIa',
|
|
203
|
+
'Dw5RBM93BG',
|
|
319
204
|
'ihn0yxr1CZ0',
|
|
320
|
-
'
|
|
205
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
206
|
+
'y2f0y2G',
|
|
207
|
+
'igf0DgfJAg1LBNq',
|
|
208
|
+
'AgfZtw9Yzq',
|
|
209
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
210
|
+
'l3nLCNzLCG',
|
|
211
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
212
|
+
'yxv0BZO',
|
|
213
|
+
'BMv4Den1CNnVCG',
|
|
214
|
+
'yxr0ywnOBwvUDhm',
|
|
215
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
216
|
+
'ywDNCMvNyxrLswq',
|
|
217
|
+
'CMvHC29U',
|
|
218
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
219
|
+
'C29YDa',
|
|
220
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
221
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
321
222
|
'lsaJ',
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'C2vUzgvYvhLWzq',
|
|
332
|
-
'CMvZCg9UC2u',
|
|
333
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
334
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
335
|
-
'B3b0Aw9UywW',
|
|
336
|
-
'ywz0zxi',
|
|
337
|
-
'DgfZAY0',
|
|
338
|
-
'C2vUzf9TzxnZywDL',
|
|
339
|
-
'y2XHAw1FDgfZA3m',
|
|
340
|
-
'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
|
|
341
|
-
'ywXS',
|
|
342
|
-
'l3vWBg9Hza',
|
|
343
|
-
'z2v0sg91CNm',
|
|
344
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
223
|
+
'DxnLCG',
|
|
224
|
+
'zMv0y2HjBxbS',
|
|
225
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
226
|
+
'DgfZA051BwjLCG',
|
|
227
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
228
|
+
'zgvZDhjVEwvK',
|
|
229
|
+
'lcbWCMv2Awv3pq',
|
|
230
|
+
'C2L6zq',
|
|
231
|
+
'ywjVCNrLza',
|
|
345
232
|
'kgXLz2fJEsK',
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
351
|
-
'
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
233
|
+
'AxngAwXL',
|
|
234
|
+
'sfruuca',
|
|
235
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
236
|
+
'w3rHCMDLDd0',
|
|
237
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
238
|
+
'D29YA19RzxK',
|
|
239
|
+
'C2v0',
|
|
240
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
241
|
+
'AxnbyNnVBhv0zq',
|
|
242
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
243
|
+
'yxr0ywnOBwvUDeLK',
|
|
244
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
245
|
+
'zM9Yy2vszwzYzxnO',
|
|
246
|
+
'mtbfswTHqMO',
|
|
247
|
+
'iIbUB3qGzM91BMq',
|
|
248
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
249
|
+
'ywz0zxjtzxe',
|
|
358
250
|
'l2nVBNrLBNq',
|
|
359
|
-
'ig1LC3nHz2u9',
|
|
360
251
|
'Dg9gAxHLza',
|
|
252
|
+
'v29YA2vYici',
|
|
253
|
+
'C2XPy2u',
|
|
254
|
+
'ywXS',
|
|
255
|
+
'mJfeu2f3wee',
|
|
256
|
+
'BwvZC2fNzq',
|
|
361
257
|
'l3rHC2TZl3vUy2XHAw0',
|
|
362
|
-
'
|
|
363
|
-
'
|
|
364
|
-
'
|
|
365
|
-
'
|
|
366
|
-
'
|
|
367
|
-
'
|
|
368
|
-
'
|
|
369
|
-
'
|
|
258
|
+
'DgfZA3m',
|
|
259
|
+
'lMjPBG',
|
|
260
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
261
|
+
'z2v0u2vJB25KCW',
|
|
262
|
+
'CMvZDwX0sNnVBG',
|
|
263
|
+
'z2v0tw9UDgG',
|
|
264
|
+
'zxzLBNrtzxe',
|
|
265
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
266
|
+
'C2vX',
|
|
267
|
+
'zg06',
|
|
268
|
+
'D29YA2vYCW',
|
|
269
|
+
'BwLU',
|
|
270
|
+
'Aw5FChjVz3jLC3m',
|
|
271
|
+
'C2vUze1LC3nHz2u',
|
|
272
|
+
'BwvZC2fNzuLK',
|
|
273
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
274
|
+
'C2LNBMfS',
|
|
275
|
+
'DMfSDwvZ',
|
|
276
|
+
'DxbKyxrL',
|
|
277
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
278
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
279
|
+
'C3rYAw5N',
|
|
280
|
+
'DhjPBq',
|
|
281
|
+
'zNjVBq',
|
|
282
|
+
'C3rVCe1HAw4',
|
|
283
|
+
'zMLSzv9WyxrO',
|
|
284
|
+
'BwvZC2fNzxm',
|
|
370
285
|
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
371
|
-
'
|
|
372
|
-
'
|
|
373
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
374
|
-
'Dg9mB3DLCKnHC2u',
|
|
375
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
286
|
+
'DgHYzwfKswq',
|
|
287
|
+
'ndyXngLKD3PrzG',
|
|
376
288
|
'zxnJywXHDgvFDg9FBwfPBG',
|
|
377
|
-
'
|
|
289
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
290
|
+
'ihrPBwu9',
|
|
291
|
+
'y29UDgvUDfr5Cgu',
|
|
292
|
+
'zgLNzxn0',
|
|
293
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
294
|
+
'z2v0rNvSBfLLyxi',
|
|
295
|
+
'DgHYzwfKvgfYz2v0',
|
|
378
296
|
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
379
|
-
'
|
|
297
|
+
'ntC5ndq4BK1kEeXc',
|
|
298
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
299
|
+
'Cgf5Bg9HzePZB24',
|
|
380
300
|
'ls1KywvTB24TyxbPlwTLEq',
|
|
381
|
-
'
|
|
382
|
-
'
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'
|
|
388
|
-
'
|
|
389
|
-
'
|
|
390
|
-
'
|
|
391
|
-
'
|
|
392
|
-
'
|
|
393
|
-
'
|
|
394
|
-
'
|
|
395
|
-
'
|
|
396
|
-
'
|
|
397
|
-
'
|
|
398
|
-
'
|
|
399
|
-
'
|
|
301
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
302
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
303
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
304
|
+
'DxbSB2fKx2zPBgu',
|
|
305
|
+
'l3jLy2vPDMu/',
|
|
306
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
307
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
308
|
+
'y29UDgvUDa',
|
|
309
|
+
'Bwv0yq',
|
|
310
|
+
'CgfYDgLJAxbHBNq',
|
|
311
|
+
'Dg9VBa',
|
|
312
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
313
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
314
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
315
|
+
'DgHYzwfKtNvTyMvY',
|
|
316
|
+
'zg9Uzq',
|
|
317
|
+
'BgLZDf90yxnRCW',
|
|
318
|
+
'ywDNCMvNyxrLswrZ',
|
|
319
|
+
'Dgv4Da',
|
|
320
|
+
'z2v0',
|
|
321
|
+
'C2vUzf9TzxnZywDL',
|
|
322
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
323
|
+
'Aw5FCMv2Awv3',
|
|
324
|
+
'AxngAw5PDgu',
|
|
325
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
400
326
|
'zxH0BMfTzq',
|
|
327
|
+
'zMLSDgvY',
|
|
401
328
|
'C2vZC2LVBKLK',
|
|
402
|
-
'
|
|
403
|
-
'
|
|
404
|
-
'
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
329
|
+
'DgfYz2v0zwruyxnR',
|
|
330
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
331
|
+
'igTPBMq9',
|
|
332
|
+
'mtaZnJm2DvncC3zo',
|
|
333
|
+
'C2f2zq',
|
|
334
|
+
'y2XHAw0GzMfPBgvK',
|
|
335
|
+
'C2vUzgvYvhLWzq',
|
|
336
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
337
|
+
'DgfYz2v0',
|
|
338
|
+
'l3rHC2TZ',
|
|
339
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
340
|
+
'DgHYzwfK',
|
|
409
341
|
'y2XHAw1uyxnRCW',
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'y2HHBM5LBeLK',
|
|
414
|
-
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
415
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
416
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
417
|
-
'mJy5odCWwLLOuePr',
|
|
418
|
-
'Dg9VBa',
|
|
419
|
-
'CxvLDwvK',
|
|
420
|
-
'yxjNDG',
|
|
421
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
342
|
+
'r0vu',
|
|
343
|
+
'zgf0yq',
|
|
344
|
+
'C3bSAxq',
|
|
422
345
|
'vgHYzwfKihrHCMDLDdOG',
|
|
423
|
-
'
|
|
424
|
-
'
|
|
425
|
-
'
|
|
426
|
-
'
|
|
427
|
-
'
|
|
428
|
-
'
|
|
429
|
-
'
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
434
|
-
'
|
|
435
|
-
'
|
|
436
|
-
'
|
|
437
|
-
'
|
|
438
|
-
'
|
|
439
|
-
'
|
|
440
|
-
'
|
|
441
|
-
'
|
|
442
|
-
'
|
|
443
|
-
'
|
|
444
|
-
'
|
|
445
|
-
'
|
|
446
|
-
'
|
|
447
|
-
'
|
|
448
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
449
|
-
'z2v0rNvSBfLLyxi',
|
|
450
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
451
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
452
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
453
|
-
'BwvTyMvY',
|
|
454
|
-
'l2HPC3rVCNK/',
|
|
346
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
347
|
+
'y2XPzw50',
|
|
348
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
349
|
+
'AxnjBNrLz2vY',
|
|
350
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
351
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
352
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
353
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
354
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
355
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
356
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
357
|
+
'lsba',
|
|
358
|
+
'D3m6',
|
|
359
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
360
|
+
'Bgf0zxn0u2vX',
|
|
361
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
362
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
363
|
+
'DhLWzq',
|
|
364
|
+
'ls1Hz2vUDc1Pza',
|
|
365
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
366
|
+
'zgLZCg9ZAxrPB24',
|
|
367
|
+
'C29Tzq',
|
|
368
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
369
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
370
|
+
'mte5odHTyvjiqxG',
|
|
455
371
|
'zMfSC2u',
|
|
456
|
-
'
|
|
372
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
373
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
374
|
+
'A2LUza',
|
|
457
375
|
'y2HHBM5LBhm',
|
|
458
|
-
'
|
|
459
|
-
'
|
|
376
|
+
'ywDLBNrZ',
|
|
377
|
+
'AhjLzG',
|
|
378
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
379
|
+
'D3nZoG',
|
|
380
|
+
'BwfW',
|
|
381
|
+
'l2HPC3rVCNK/',
|
|
382
|
+
'mZrJvMfmq0W',
|
|
383
|
+
'nti5odK3ogXfEhrABW',
|
|
384
|
+
'CMvZCg9UC2u',
|
|
385
|
+
'AM9PBG',
|
|
386
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
387
|
+
'Dgv4Dc9JC3y',
|
|
388
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
389
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
390
|
+
'CMvWBgfJzq',
|
|
391
|
+
'y3jLyxrLzef0',
|
|
392
|
+
'ue9tva',
|
|
393
|
+
'uefuq0G',
|
|
394
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
395
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
396
|
+
'DMLZAwjPBgL0Eq',
|
|
397
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
398
|
+
'Aw5KzxHpzG',
|
|
399
|
+
'BMfTzq',
|
|
400
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
401
|
+
'Aw1Hz2uVD2vICa',
|
|
402
|
+
'Bwf4',
|
|
403
|
+
'BgLTAxq',
|
|
404
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
405
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
406
|
+
'ChjVDg9JB2W',
|
|
407
|
+
'C2vYDMvYtMfTzq',
|
|
408
|
+
'AgLNAa',
|
|
409
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
410
|
+
'C3vIDgfZA051BwjLCG',
|
|
411
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
412
|
+
'zMLUza',
|
|
413
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
414
|
+
'D29YA2vYsgfUzg9MzG',
|
|
415
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
416
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
417
|
+
'CMvHzf9OAxn0B3j5',
|
|
418
|
+
'CgfKu3rHCNq',
|
|
419
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
420
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
421
|
+
'zxjYB3i',
|
|
422
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
423
|
+
'kg5VBMuP',
|
|
460
424
|
'Dg9tDhjPBMC',
|
|
461
|
-
'
|
|
462
|
-
'
|
|
463
|
-
'
|
|
464
|
-
'
|
|
465
|
-
'
|
|
466
|
-
'
|
|
467
|
-
'
|
|
468
|
-
'
|
|
469
|
-
'
|
|
470
|
-
'
|
|
471
|
-
'ktSGz290ignOyw5UzwW9',
|
|
472
|
-
'DxbSB2fKrMLSzq',
|
|
473
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
474
|
-
'zgLNzxn0',
|
|
475
|
-
'Dgv4Dc9WBgfPBG'
|
|
425
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
426
|
+
'CMvXDwvZDfvYBa',
|
|
427
|
+
'y2XHAw1FDgfZA3m',
|
|
428
|
+
'Dw5JBgfPBvrHC2S',
|
|
429
|
+
'DxrMoa',
|
|
430
|
+
'yxnPzgu',
|
|
431
|
+
'xsba',
|
|
432
|
+
'z2v0twLUDxrLCW',
|
|
433
|
+
'DgL0Bgu',
|
|
434
|
+
'B3jPz2LUywXgAwXLBMfTzq'
|
|
476
435
|
];
|
|
477
|
-
|
|
478
|
-
return
|
|
436
|
+
_0x2c5c = function () {
|
|
437
|
+
return _0xb4c733;
|
|
438
|
+
};
|
|
439
|
+
return _0x2c5c();
|
|
440
|
+
}
|
|
441
|
+
function _0x355a(_0x5f470c, _0x1572cb) {
|
|
442
|
+
_0x5f470c = _0x5f470c - 0x178;
|
|
443
|
+
const _0x2c5cdd = _0x2c5c();
|
|
444
|
+
let _0x355aca = _0x2c5cdd[_0x5f470c];
|
|
445
|
+
if (_0x355a['kpbAtO'] === undefined) {
|
|
446
|
+
var _0x57dd42 = function (_0x377d78) {
|
|
447
|
+
const _0x1326b5 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
448
|
+
let _0x40ff1a = '', _0x3f2382 = '';
|
|
449
|
+
for (let _0x1e4bb0 = 0x0, _0x2fb04b, _0x1ecc76, _0x5e4ce8 = 0x0; _0x1ecc76 = _0x377d78['charAt'](_0x5e4ce8++); ~_0x1ecc76 && (_0x2fb04b = _0x1e4bb0 % 0x4 ? _0x2fb04b * 0x40 + _0x1ecc76 : _0x1ecc76, _0x1e4bb0++ % 0x4) ? _0x40ff1a += String['fromCharCode'](0xff & _0x2fb04b >> (-0x2 * _0x1e4bb0 & 0x6)) : 0x0) {
|
|
450
|
+
_0x1ecc76 = _0x1326b5['indexOf'](_0x1ecc76);
|
|
451
|
+
}
|
|
452
|
+
for (let _0x1c7101 = 0x0, _0x4bb0a5 = _0x40ff1a['length']; _0x1c7101 < _0x4bb0a5; _0x1c7101++) {
|
|
453
|
+
_0x3f2382 += '%' + ('00' + _0x40ff1a['charCodeAt'](_0x1c7101)['toString'](0x10))['slice'](-0x2);
|
|
454
|
+
}
|
|
455
|
+
return decodeURIComponent(_0x3f2382);
|
|
456
|
+
};
|
|
457
|
+
_0x355a['CNTcXr'] = _0x57dd42, _0x355a['WITemE'] = {}, _0x355a['kpbAtO'] = !![];
|
|
458
|
+
}
|
|
459
|
+
const _0x3a5664 = _0x2c5cdd[0x0], _0x373a41 = _0x5f470c + _0x3a5664, _0x44162a = _0x355a['WITemE'][_0x373a41];
|
|
460
|
+
return !_0x44162a ? (_0x355aca = _0x355a['CNTcXr'](_0x355aca), _0x355a['WITemE'][_0x373a41] = _0x355aca) : _0x355aca = _0x44162a, _0x355aca;
|
|
461
|
+
}
|
|
462
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
463
|
+
'.csv': _0x2869e3(0x2b7),
|
|
464
|
+
'.gif': 'image/gif',
|
|
465
|
+
'.jpeg': _0x2869e3(0x19f),
|
|
466
|
+
'.jpg': _0x2869e3(0x19f),
|
|
467
|
+
'.json': 'application/json',
|
|
468
|
+
'.md': 'text/markdown',
|
|
469
|
+
'.pdf': _0x2869e3(0x2cd),
|
|
470
|
+
'.png': _0x2869e3(0x1e2),
|
|
471
|
+
'.svg': _0x2869e3(0x2b8),
|
|
472
|
+
'.txt': _0x2869e3(0x1d6),
|
|
473
|
+
'.webp': _0x2869e3(0x2c5),
|
|
474
|
+
'.xml': _0x2869e3(0x2f9),
|
|
475
|
+
'.zip': _0x2869e3(0x221)
|
|
479
476
|
};
|
|
480
|
-
|
|
477
|
+
function guessContentType(_0x3f2382) {
|
|
478
|
+
const _0x44eba1 = { _0xe18630: 0x304 }, _0x200fc6 = _0x2869e3;
|
|
479
|
+
return MIME_BY_EXTENSION[_0x40ff1a[_0x200fc6(0x27a)](_0x3f2382)[_0x200fc6(_0x44eba1._0xe18630)]()] ?? 'application/octet-stream';
|
|
481
480
|
}
|
|
482
|
-
function safeFilename(
|
|
483
|
-
const
|
|
484
|
-
return
|
|
481
|
+
function safeFilename(_0x1e4bb0) {
|
|
482
|
+
const _0x20862e = _0x2869e3;
|
|
483
|
+
return _0x1e4bb0[_0x20862e(0x2ba)](/[\\/]/g, '-');
|
|
485
484
|
}
|
|
486
|
-
function extensionFor(
|
|
487
|
-
const
|
|
488
|
-
return
|
|
485
|
+
function extensionFor(_0x2fb04b) {
|
|
486
|
+
const _0x3e004a = { _0x3ce397: 0x1bd }, _0x5ead75 = _0x2869e3, _0x1ecc76 = Object[_0x5ead75(_0x3e004a._0x3ce397)](MIME_BY_EXTENSION)[_0x5ead75(0x2d0)](([, _0x5e4ce8]) => _0x5e4ce8 === _0x2fb04b);
|
|
487
|
+
return _0x1ecc76?.[0x0] ?? _0x5ead75(0x237);
|
|
489
488
|
}
|
|
490
|
-
async function prepareUploadFile(
|
|
491
|
-
const
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
489
|
+
async function prepareUploadFile(_0x1c7101, _0x4bb0a5 = {}) {
|
|
490
|
+
const _0x376178 = {
|
|
491
|
+
_0x474d67: 0x305,
|
|
492
|
+
_0x5845d6: 0x297,
|
|
493
|
+
_0x5794f4: 0x1b0
|
|
494
|
+
}, _0x97f84 = _0x2869e3;
|
|
495
|
+
if (!_0x40ff1a[_0x97f84(0x225)](_0x1c7101))
|
|
496
|
+
throw new Error(_0x97f84(0x17f));
|
|
497
|
+
const _0x4b6e10 = await stat(_0x1c7101)['catch'](() => null);
|
|
498
|
+
if (!_0x4b6e10 || !_0x4b6e10[_0x97f84(0x21d)]())
|
|
499
|
+
throw new Error(_0x97f84(_0x376178._0x474d67) + _0x1c7101);
|
|
500
|
+
const _0x53d29c = _0x4bb0a5[_0x97f84(_0x376178._0x5845d6)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
501
|
+
if (_0x4b6e10['size'] > _0x53d29c)
|
|
502
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x4b6e10[_0x97f84(0x21a)]);
|
|
503
|
+
const _0x30788c = await readFile(_0x1c7101), _0x470faa = _0x40ff1a[_0x97f84(_0x376178._0x5794f4)](_0x1c7101);
|
|
504
504
|
return {
|
|
505
|
-
'contentBase64':
|
|
506
|
-
'contentType': guessContentType(
|
|
507
|
-
'filename':
|
|
508
|
-
'sizeBytes':
|
|
505
|
+
'contentBase64': _0x30788c[_0x97f84(0x2dc)](_0x97f84(0x1b2)),
|
|
506
|
+
'contentType': guessContentType(_0x470faa),
|
|
507
|
+
'filename': _0x470faa,
|
|
508
|
+
'sizeBytes': _0x4b6e10[_0x97f84(0x21a)]
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
|
-
function createAttachmentCache(
|
|
512
|
-
const
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
_0x42681f: 0x281
|
|
517
|
-
}, _0x2845e8 = _0x10d6b5, _0x1a5bcf = _0x3e323a['cacheDir'] ?? _0x5b4675[_0x2845e8(_0x5d78b4._0x12e4b7)](homedir(), '.dscord', 'attachments');
|
|
511
|
+
function createAttachmentCache(_0x59b61d = {}) {
|
|
512
|
+
const _0x1adf7f = {
|
|
513
|
+
_0x144023: 0x2e6,
|
|
514
|
+
_0x12aa20: 0x227
|
|
515
|
+
}, _0x5e9ae9 = { _0x39fdbd: 0x2b5 }, _0x52246d = _0x2869e3, _0xedfc7b = _0x59b61d['cacheDir'] ?? _0x40ff1a['join'](homedir(), '.dscord', _0x52246d(0x20a));
|
|
518
516
|
return {
|
|
519
|
-
'cacheDir':
|
|
520
|
-
async 'findCachedPath'(
|
|
521
|
-
const
|
|
522
|
-
await mkdir(
|
|
523
|
-
const
|
|
524
|
-
return
|
|
517
|
+
'cacheDir': _0xedfc7b,
|
|
518
|
+
async 'findCachedPath'(_0x1724b8) {
|
|
519
|
+
const _0x484247 = _0x52246d;
|
|
520
|
+
await mkdir(_0xedfc7b, { 'recursive': !![] });
|
|
521
|
+
const _0x325d43 = await readdir(_0xedfc7b), _0x40b50e = _0x325d43['find'](_0x43ffca => _0x43ffca[_0x484247(0x1a9)](_0x1724b8 + '-') || _0x43ffca[_0x484247(0x1a9)](_0x1724b8));
|
|
522
|
+
return _0x40b50e ? _0x40ff1a[_0x484247(_0x5e9ae9._0x39fdbd)](_0xedfc7b, _0x40b50e) : null;
|
|
525
523
|
},
|
|
526
|
-
async 'save'(
|
|
527
|
-
const
|
|
528
|
-
await mkdir(
|
|
529
|
-
const
|
|
530
|
-
return await writeFile(
|
|
524
|
+
async 'save'(_0x49ae21) {
|
|
525
|
+
const _0x5a98fb = _0x52246d;
|
|
526
|
+
await mkdir(_0xedfc7b, { 'recursive': !![] });
|
|
527
|
+
const _0x56e425 = _0x49ae21[_0x5a98fb(_0x1adf7f._0x144023)]?.[_0x5a98fb(0x24c)]() ? safeFilename(_0x49ae21['originalFilename']) : '' + _0x49ae21[_0x5a98fb(0x227)] + extensionFor(_0x49ae21['contentType']), _0x2fcd5a = _0x40ff1a['join'](_0xedfc7b, _0x49ae21[_0x5a98fb(_0x1adf7f._0x12aa20)] + '-' + _0x56e425);
|
|
528
|
+
return await writeFile(_0x2fcd5a, _0x49ae21[_0x5a98fb(0x28b)]), _0x2fcd5a;
|
|
531
529
|
}
|
|
532
530
|
};
|
|
533
531
|
}
|
|
@@ -535,1880 +533,1908 @@ import {
|
|
|
535
533
|
createHash,
|
|
536
534
|
randomUUID
|
|
537
535
|
} from 'node:crypto';
|
|
538
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
539
|
-
function ensureSegment(
|
|
540
|
-
const
|
|
541
|
-
if (!
|
|
536
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x2869e3(0x20e);
|
|
537
|
+
function ensureSegment(_0x2bf25a) {
|
|
538
|
+
const _0x3c6851 = { _0x46ae5c: 0x24c }, _0x21ca8b = _0x2869e3, _0x148b3f = _0x2bf25a[_0x21ca8b(_0x3c6851._0x46ae5c)]();
|
|
539
|
+
if (!_0x148b3f || _0x148b3f[_0x21ca8b(0x182)](':'))
|
|
542
540
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
543
|
-
return
|
|
541
|
+
return _0x148b3f;
|
|
544
542
|
}
|
|
545
|
-
function parseThreadParts(
|
|
546
|
-
const
|
|
547
|
-
if (
|
|
543
|
+
function parseThreadParts(_0x316c70) {
|
|
544
|
+
const _0x514d53 = _0x2869e3, _0x499adc = _0x316c70[_0x514d53(0x28c)](':');
|
|
545
|
+
if (_0x499adc['length'] < 0x1 || _0x499adc[_0x514d53(0x1de)] > 0x2)
|
|
548
546
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
549
547
|
return {
|
|
550
|
-
'channelName': ensureSegment(
|
|
551
|
-
'threadShortId':
|
|
548
|
+
'channelName': ensureSegment(_0x499adc[0x0] ?? ''),
|
|
549
|
+
'threadShortId': _0x499adc[0x1] ? ensureSegment(_0x499adc[0x1]) : null
|
|
552
550
|
};
|
|
553
551
|
}
|
|
554
|
-
function parseTarget(
|
|
555
|
-
const
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
552
|
+
function parseTarget(_0x473680) {
|
|
553
|
+
const _0x5e9b97 = {
|
|
554
|
+
_0x1df5a0: 0x24c,
|
|
555
|
+
_0xc9e4de: 0x1a9,
|
|
556
|
+
_0x437668: 0x231,
|
|
557
|
+
_0x337a31: 0x1e7,
|
|
558
|
+
_0x3343b6: 0x288,
|
|
559
|
+
_0x18497e: 0x1bc,
|
|
560
|
+
_0x4bf678: 0x1d1,
|
|
561
|
+
_0x5cccb5: 0x23f,
|
|
562
|
+
_0x49523d: 0x188,
|
|
563
|
+
_0x45622a: 0x288,
|
|
564
|
+
_0x1c8fc9: 0x1bc
|
|
565
|
+
}, _0x5eb34a = _0x2869e3, _0x442014 = _0x473680[_0x5eb34a(_0x5e9b97._0x1df5a0)]();
|
|
566
|
+
if (!_0x442014)
|
|
564
567
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
565
|
-
if (
|
|
566
|
-
const
|
|
567
|
-
if (!
|
|
568
|
+
if (_0x442014[_0x5eb34a(_0x5e9b97._0xc9e4de)]('#')) {
|
|
569
|
+
const _0x2cdf3e = parseThreadParts(_0x442014[_0x5eb34a(_0x5e9b97._0x437668)](0x1)), _0x1d3401 = '#' + _0x2cdf3e['channelName'];
|
|
570
|
+
if (!_0x2cdf3e[_0x5eb34a(0x1bc)])
|
|
568
571
|
return {
|
|
569
|
-
'channelName':
|
|
570
|
-
'channelTarget':
|
|
571
|
-
'kind':
|
|
572
|
-
'target':
|
|
572
|
+
'channelName': _0x2cdf3e[_0x5eb34a(0x1e7)],
|
|
573
|
+
'channelTarget': _0x1d3401,
|
|
574
|
+
'kind': 'channel',
|
|
575
|
+
'target': _0x1d3401
|
|
573
576
|
};
|
|
574
577
|
return {
|
|
575
|
-
'channelName':
|
|
576
|
-
'channelTarget':
|
|
577
|
-
'kind':
|
|
578
|
-
'target':
|
|
579
|
-
'threadShortId':
|
|
578
|
+
'channelName': _0x2cdf3e[_0x5eb34a(_0x5e9b97._0x337a31)],
|
|
579
|
+
'channelTarget': _0x1d3401,
|
|
580
|
+
'kind': _0x5eb34a(_0x5e9b97._0x3343b6),
|
|
581
|
+
'target': _0x1d3401 + ':' + _0x2cdf3e[_0x5eb34a(_0x5e9b97._0x18497e)],
|
|
582
|
+
'threadShortId': _0x2cdf3e[_0x5eb34a(0x1bc)]
|
|
580
583
|
};
|
|
581
584
|
}
|
|
582
|
-
if (
|
|
583
|
-
const
|
|
584
|
-
if (!
|
|
585
|
+
if (_0x442014['startsWith']('dm:')) {
|
|
586
|
+
const _0x5539c7 = parseThreadParts(_0x442014[_0x5eb34a(0x231)](0x3));
|
|
587
|
+
if (!_0x5539c7['channelName']['startsWith'](_0x5eb34a(_0x5e9b97._0x4bf678)))
|
|
585
588
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
586
|
-
const
|
|
587
|
-
if (!
|
|
589
|
+
const _0x34d5df = _0x5eb34a(_0x5e9b97._0x5cccb5) + _0x5539c7[_0x5eb34a(0x1e7)];
|
|
590
|
+
if (!_0x5539c7['threadShortId'])
|
|
588
591
|
return {
|
|
589
|
-
'channelName':
|
|
590
|
-
'channelTarget':
|
|
591
|
-
'kind':
|
|
592
|
-
'target':
|
|
592
|
+
'channelName': _0x5539c7['channelName'],
|
|
593
|
+
'channelTarget': _0x34d5df,
|
|
594
|
+
'kind': _0x5eb34a(_0x5e9b97._0x49523d),
|
|
595
|
+
'target': _0x34d5df
|
|
593
596
|
};
|
|
594
597
|
return {
|
|
595
|
-
'channelName':
|
|
596
|
-
'channelTarget':
|
|
597
|
-
'kind':
|
|
598
|
-
'target':
|
|
599
|
-
'threadShortId':
|
|
598
|
+
'channelName': _0x5539c7[_0x5eb34a(0x1e7)],
|
|
599
|
+
'channelTarget': _0x34d5df,
|
|
600
|
+
'kind': _0x5eb34a(_0x5e9b97._0x45622a),
|
|
601
|
+
'target': _0x34d5df + ':' + _0x5539c7[_0x5eb34a(_0x5e9b97._0x1c8fc9)],
|
|
602
|
+
'threadShortId': _0x5539c7[_0x5eb34a(0x1bc)]
|
|
600
603
|
};
|
|
601
604
|
}
|
|
602
605
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
603
606
|
}
|
|
604
|
-
function asErrorMessage(
|
|
605
|
-
const
|
|
606
|
-
if (typeof
|
|
607
|
-
return
|
|
608
|
-
return
|
|
607
|
+
function asErrorMessage(_0x11d7de, _0x5ad964) {
|
|
608
|
+
const _0x5133b2 = { _0x3df1cb: 0x24c }, _0xb92643 = _0x2869e3;
|
|
609
|
+
if (typeof _0x11d7de === _0xb92643(0x24b) && _0x11d7de[_0xb92643(_0x5133b2._0x3df1cb)]())
|
|
610
|
+
return _0x11d7de;
|
|
611
|
+
return _0x5ad964;
|
|
609
612
|
}
|
|
610
|
-
function asRecord(
|
|
611
|
-
const
|
|
612
|
-
return typeof
|
|
613
|
+
function asRecord(_0x44d096) {
|
|
614
|
+
const _0x1bcbc1 = _0x2869e3;
|
|
615
|
+
return typeof _0x44d096 === _0x1bcbc1(0x1d5) && _0x44d096 !== null ? _0x44d096 : {};
|
|
613
616
|
}
|
|
614
|
-
function stableStringify(
|
|
615
|
-
const
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
return '[' + _0x582f5e[_0x2d713a(_0x36d44c._0x48443e)](_0x592680 => stableStringify(_0x592680))[_0x2d713a(_0x36d44c._0x597d48)](',') + ']';
|
|
627
|
-
const _0x1ebc3a = Object['entries'](_0x582f5e)[_0x2d713a(0x16a)](([, _0x39297b]) => _0x39297b !== void 0x0)[_0x2d713a(_0x36d44c._0x39cf03)](([_0x1adb7d], [_0x43c2f8]) => _0x1adb7d[_0x2d713a(0x28b)](_0x43c2f8))[_0x2d713a(0x2a1)](([_0x4ec2f0, _0x4afe18]) => JSON[_0x2d713a(0x191)](_0x4ec2f0) + ':' + stableStringify(_0x4afe18));
|
|
628
|
-
return '{' + _0x1ebc3a[_0x2d713a(0x281)](',') + '}';
|
|
617
|
+
function stableStringify(_0x435e88) {
|
|
618
|
+
const _0x4fbeea = {
|
|
619
|
+
_0x70f7cd: 0x1ba,
|
|
620
|
+
_0x2adaa4: 0x2b5,
|
|
621
|
+
_0x4a7e8d: 0x20f
|
|
622
|
+
}, _0x3fe34b = _0x2869e3;
|
|
623
|
+
if (_0x435e88 === null || typeof _0x435e88 !== 'object')
|
|
624
|
+
return JSON[_0x3fe34b(_0x4fbeea._0x70f7cd)](_0x435e88);
|
|
625
|
+
if (Array['isArray'](_0x435e88))
|
|
626
|
+
return '[' + _0x435e88[_0x3fe34b(0x2b0)](_0x1789ff => stableStringify(_0x1789ff))[_0x3fe34b(_0x4fbeea._0x2adaa4)](',') + ']';
|
|
627
|
+
const _0x344eae = Object[_0x3fe34b(0x1bd)](_0x435e88)[_0x3fe34b(0x27b)](([, _0x36d979]) => _0x36d979 !== void 0x0)[_0x3fe34b(_0x4fbeea._0x4a7e8d)](([_0x57bc2c], [_0x1d49f2]) => _0x57bc2c[_0x3fe34b(0x1b5)](_0x1d49f2))[_0x3fe34b(0x2b0)](([_0x1d5289, _0x9fd737]) => JSON[_0x3fe34b(0x1ba)](_0x1d5289) + ':' + stableStringify(_0x9fd737));
|
|
628
|
+
return '{' + _0x344eae[_0x3fe34b(0x2b5)](',') + '}';
|
|
629
629
|
}
|
|
630
|
-
function createHeaders(
|
|
631
|
-
const
|
|
630
|
+
function createHeaders(_0x3ba942) {
|
|
631
|
+
const _0x13ffab = _0x2869e3;
|
|
632
632
|
return {
|
|
633
|
-
'Content-Type':
|
|
634
|
-
'x-daemon-api-key':
|
|
633
|
+
'Content-Type': _0x13ffab(0x1f4),
|
|
634
|
+
'x-daemon-api-key': _0x3ba942
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function toHttpBaseUrl(
|
|
638
|
-
const
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
},
|
|
644
|
-
if (
|
|
645
|
-
|
|
637
|
+
function toHttpBaseUrl(_0x3b1963) {
|
|
638
|
+
const _0x32313c = {
|
|
639
|
+
_0x1f08f4: 0x2ca,
|
|
640
|
+
_0xf3e6ec: 0x2ca,
|
|
641
|
+
_0x4847a1: 0x2dc,
|
|
642
|
+
_0x67afb4: 0x2ba
|
|
643
|
+
}, _0x3328d2 = _0x2869e3, _0x5594a9 = new URL(_0x3b1963);
|
|
644
|
+
if (_0x5594a9[_0x3328d2(_0x32313c._0x1f08f4)] === _0x3328d2(0x29a))
|
|
645
|
+
_0x5594a9[_0x3328d2(0x2ca)] = 'http:';
|
|
646
646
|
else
|
|
647
|
-
|
|
648
|
-
return
|
|
647
|
+
_0x5594a9[_0x3328d2(_0x32313c._0xf3e6ec)] === _0x3328d2(0x2af) && (_0x5594a9[_0x3328d2(_0x32313c._0xf3e6ec)] = 'https:');
|
|
648
|
+
return _0x5594a9[_0x3328d2(_0x32313c._0x4847a1)]()[_0x3328d2(_0x32313c._0x67afb4)](/\/$/, '');
|
|
649
649
|
}
|
|
650
|
-
function isMentionBoundary(
|
|
651
|
-
const
|
|
652
|
-
return !
|
|
650
|
+
function isMentionBoundary(_0x1b4362) {
|
|
651
|
+
const _0x236d84 = _0x2869e3;
|
|
652
|
+
return !_0x1b4362 || /\s|[([{'",。!?、:;]/[_0x236d84(0x1b8)](_0x1b4362);
|
|
653
653
|
}
|
|
654
|
-
function isMentionTerminal(
|
|
655
|
-
return !
|
|
654
|
+
function isMentionTerminal(_0x15a07e) {
|
|
655
|
+
return !_0x15a07e || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x15a07e);
|
|
656
656
|
}
|
|
657
|
-
function buildMatchableEntries(
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
...
|
|
665
|
-
..._0x2e54b2[_0x26c9d5(0x273)]
|
|
657
|
+
function buildMatchableEntries(_0x33551f) {
|
|
658
|
+
const _0x31e882 = {
|
|
659
|
+
_0x38c2c9: 0x2c3,
|
|
660
|
+
_0x2cb4df: 0x18f
|
|
661
|
+
}, _0x5222a2 = _0x2869e3, _0x466f34 = [];
|
|
662
|
+
for (const _0x8a69f1 of [
|
|
663
|
+
..._0x33551f[_0x5222a2(0x2ac)],
|
|
664
|
+
..._0x33551f['humans']
|
|
666
665
|
]) {
|
|
667
|
-
|
|
668
|
-
'matchName':
|
|
669
|
-
'matchNameLower':
|
|
670
|
-
'participantId':
|
|
671
|
-
}),
|
|
672
|
-
'matchName':
|
|
673
|
-
'matchNameLower':
|
|
674
|
-
'participantId':
|
|
666
|
+
_0x466f34[_0x5222a2(0x1eb)]({
|
|
667
|
+
'matchName': _0x8a69f1[_0x5222a2(0x2c3)],
|
|
668
|
+
'matchNameLower': _0x8a69f1[_0x5222a2(0x2c3)]['toLocaleLowerCase'](),
|
|
669
|
+
'participantId': _0x8a69f1['id']
|
|
670
|
+
}), _0x8a69f1['id'] !== _0x8a69f1[_0x5222a2(_0x31e882._0x38c2c9)] && _0x466f34[_0x5222a2(0x1eb)]({
|
|
671
|
+
'matchName': _0x8a69f1['id'],
|
|
672
|
+
'matchNameLower': _0x8a69f1['id'][_0x5222a2(_0x31e882._0x2cb4df)](),
|
|
673
|
+
'participantId': _0x8a69f1['id']
|
|
675
674
|
});
|
|
676
675
|
}
|
|
677
|
-
return
|
|
676
|
+
return _0x466f34;
|
|
678
677
|
}
|
|
679
|
-
function extractMentionedParticipantIds(
|
|
680
|
-
const
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
678
|
+
function extractMentionedParticipantIds(_0x39f9e9, _0x855f7f) {
|
|
679
|
+
const _0xf83848 = {
|
|
680
|
+
_0x5c329c: 0x1de,
|
|
681
|
+
_0x1d79d0: 0x231,
|
|
682
|
+
_0x229f5e: 0x18f,
|
|
683
|
+
_0x3d6efb: 0x1af,
|
|
684
|
+
_0x12cb41: 0x1eb,
|
|
685
|
+
_0x50f31e: 0x1f0
|
|
686
|
+
}, _0x40f660 = _0x2869e3, _0x17035f = buildMatchableEntries(_0x855f7f)[_0x40f660(0x20f)]((_0x583533, _0x1224da) => _0x1224da[_0x40f660(0x1f0)][_0x40f660(0x1de)] - _0x583533[_0x40f660(0x1f0)][_0x40f660(0x1de)]), _0x21d3f8 = [], _0x35a3e3 = new Set();
|
|
687
|
+
for (let _0x41a63c = 0x0; _0x41a63c < _0x39f9e9[_0x40f660(_0xf83848._0x5c329c)]; _0x41a63c += 0x1) {
|
|
688
|
+
if (_0x39f9e9[_0x41a63c] !== '@' || !isMentionBoundary(_0x39f9e9[_0x41a63c - 0x1]))
|
|
689
689
|
continue;
|
|
690
|
-
const
|
|
691
|
-
const
|
|
692
|
-
if (!
|
|
690
|
+
const _0xbffd99 = _0x39f9e9[_0x40f660(_0xf83848._0x1d79d0)](_0x41a63c + 0x1), _0x1d805a = _0xbffd99[_0x40f660(_0xf83848._0x229f5e)](), _0x1b9f87 = _0x17035f[_0x40f660(0x2d0)](_0x29e062 => {
|
|
691
|
+
const _0x35ac7b = _0x40f660;
|
|
692
|
+
if (!_0x1d805a[_0x35ac7b(0x1a9)](_0x29e062[_0x35ac7b(0x2a5)]))
|
|
693
693
|
return ![];
|
|
694
|
-
return isMentionTerminal(
|
|
694
|
+
return isMentionTerminal(_0xbffd99[_0x29e062['matchName'][_0x35ac7b(0x1de)]]);
|
|
695
695
|
});
|
|
696
|
-
if (!
|
|
696
|
+
if (!_0x1b9f87 || _0x35a3e3[_0x40f660(0x1da)](_0x1b9f87['participantId']))
|
|
697
697
|
continue;
|
|
698
|
-
|
|
698
|
+
_0x35a3e3[_0x40f660(_0xf83848._0x3d6efb)](_0x1b9f87[_0x40f660(0x1e3)]), _0x21d3f8[_0x40f660(_0xf83848._0x12cb41)](_0x1b9f87[_0x40f660(0x1e3)]), _0x41a63c += _0x1b9f87[_0x40f660(_0xf83848._0x50f31e)]['length'];
|
|
699
699
|
}
|
|
700
|
-
return
|
|
700
|
+
return _0x21d3f8;
|
|
701
701
|
}
|
|
702
702
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
703
|
-
function anySignal(...
|
|
704
|
-
const
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
703
|
+
function anySignal(..._0x2aabec) {
|
|
704
|
+
const _0x28aef1 = {
|
|
705
|
+
_0x50655d: 0x246,
|
|
706
|
+
_0x5e2361: 0x1ea
|
|
707
|
+
}, _0x3d259e = _0x2869e3, _0x205cfe = new AbortController();
|
|
708
|
+
for (const _0x9dca44 of _0x2aabec) {
|
|
709
|
+
if (_0x9dca44[_0x3d259e(0x21b)])
|
|
710
|
+
return _0x205cfe['abort'](_0x9dca44[_0x3d259e(0x20d)]), _0x205cfe[_0x3d259e(_0x28aef1._0x50655d)];
|
|
711
|
+
_0x9dca44[_0x3d259e(_0x28aef1._0x5e2361)]('abort', () => _0x205cfe[_0x3d259e(0x1c9)](_0x9dca44['reason']), {
|
|
709
712
|
'once': !![],
|
|
710
|
-
'signal':
|
|
713
|
+
'signal': _0x205cfe['signal']
|
|
711
714
|
});
|
|
712
715
|
}
|
|
713
|
-
return
|
|
716
|
+
return _0x205cfe[_0x3d259e(_0x28aef1._0x50655d)];
|
|
714
717
|
}
|
|
715
|
-
function createInternalAgentClient(
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
},
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
},
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
},
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
},
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
},
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
718
|
+
function createInternalAgentClient(_0x197643) {
|
|
719
|
+
const _0xc89b44 = {
|
|
720
|
+
_0x5d2d88: 0x1f2,
|
|
721
|
+
_0x597d2b: 0x292,
|
|
722
|
+
_0x554900: 0x24c,
|
|
723
|
+
_0x142f2c: 0x27c,
|
|
724
|
+
_0x518f3f: 0x187
|
|
725
|
+
}, _0x3878f7 = {
|
|
726
|
+
_0x50f31a: 0x223,
|
|
727
|
+
_0x249357: 0x2f5,
|
|
728
|
+
_0x34586c: 0x28b,
|
|
729
|
+
_0x5ad3a2: 0x269,
|
|
730
|
+
_0x97af5f: 0x27b,
|
|
731
|
+
_0x33cca8: 0x2c6,
|
|
732
|
+
_0x4b619a: 0x1de,
|
|
733
|
+
_0x5730d3: 0x23e,
|
|
734
|
+
_0x261ef1: 0x1de,
|
|
735
|
+
_0x2a0a14: 0x23e,
|
|
736
|
+
_0x4ddc0d: 0x2a3,
|
|
737
|
+
_0x1f7599: 0x26f,
|
|
738
|
+
_0x51e308: 0x1f2,
|
|
739
|
+
_0x150f43: 0x1ac,
|
|
740
|
+
_0x271177: 0x272,
|
|
741
|
+
_0x405578: 0x1bd,
|
|
742
|
+
_0x1a0639: 0x223,
|
|
743
|
+
_0x27cd82: 0x247,
|
|
744
|
+
_0x32fb4b: 0x2c3,
|
|
745
|
+
_0x3f457e: 0x23f,
|
|
746
|
+
_0x567c1a: 0x2b0,
|
|
747
|
+
_0x394e3d: 0x268,
|
|
748
|
+
_0x4e3572: 0x24b
|
|
749
|
+
}, _0x511f33 = {
|
|
750
|
+
_0x4bb8bf: 0x188,
|
|
751
|
+
_0x22fe52: 0x1a2,
|
|
752
|
+
_0x477d6b: 0x2c7,
|
|
753
|
+
_0x6fe7a7: 0x252
|
|
754
|
+
}, _0x4b9dab = {
|
|
755
|
+
_0x1308b3: 0x2c7,
|
|
756
|
+
_0x35c5dc: 0x265,
|
|
757
|
+
_0x37fa34: 0x2dc
|
|
758
|
+
}, _0x467253 = {
|
|
759
|
+
_0x44c03c: 0x255,
|
|
760
|
+
_0x1cb2c4: 0x28a,
|
|
761
|
+
_0x49576f: 0x255,
|
|
762
|
+
_0x17f23e: 0x22e,
|
|
763
|
+
_0x381139: 0x28a,
|
|
764
|
+
_0x2f2c60: 0x17b,
|
|
765
|
+
_0x48cebf: 0x1a1,
|
|
766
|
+
_0x4fa3b4: 0x274,
|
|
767
|
+
_0x4429b7: 0x2e6
|
|
768
|
+
}, _0x236892 = {
|
|
769
|
+
_0x2fd404: 0x188,
|
|
770
|
+
_0x63117f: 0x252,
|
|
771
|
+
_0x2907fb: 0x2f5,
|
|
772
|
+
_0x46226b: 0x285,
|
|
773
|
+
_0x131759: 0x19a,
|
|
774
|
+
_0xdce5ae: 0x28b,
|
|
775
|
+
_0x1e2e70: 0x2ef
|
|
776
|
+
}, _0x3a34f9 = {
|
|
777
|
+
_0x5457eb: 0x226,
|
|
778
|
+
_0x30fc68: 0x1ba
|
|
779
|
+
}, _0xa97e57 = {
|
|
780
|
+
_0x440c8f: 0x2f5,
|
|
781
|
+
_0x262448: 0x1ba,
|
|
782
|
+
_0x5a8d21: 0x198
|
|
783
|
+
}, _0x16a8cc = {
|
|
784
|
+
_0x3884d3: 0x226,
|
|
785
|
+
_0x4fc07a: 0x2f5,
|
|
786
|
+
_0x25a827: 0x2f8
|
|
787
|
+
}, _0x2b76e4 = { _0x5ab9d3: 0x226 }, _0x4ccf82 = {
|
|
788
|
+
_0x473d68: 0x223,
|
|
789
|
+
_0x2e34c2: 0x17b,
|
|
790
|
+
_0x141241: 0x226,
|
|
791
|
+
_0x89682a: 0x2dc
|
|
792
|
+
}, _0x29660a = {
|
|
793
|
+
_0x475f64: 0x1db,
|
|
794
|
+
_0x4d1d02: 0x1ba,
|
|
795
|
+
_0x4b49ad: 0x23a,
|
|
796
|
+
_0x2528e3: 0x17b
|
|
797
|
+
}, _0x16b67 = {
|
|
798
|
+
_0x127993: 0x19b,
|
|
799
|
+
_0x29cbb1: 0x1db
|
|
800
|
+
}, _0x4376d8 = {
|
|
801
|
+
_0x5c9a28: 0x26e,
|
|
802
|
+
_0x184df9: 0x28b
|
|
803
|
+
}, _0x5acd38 = { _0x28a10a: 0x28a }, _0x30f55f = {
|
|
804
|
+
_0x59ad51: 0x268,
|
|
805
|
+
_0xc420d5: 0x226,
|
|
806
|
+
_0x406e5b: 0x1a5,
|
|
807
|
+
_0x4be859: 0x252,
|
|
808
|
+
_0x55742d: 0x2c0,
|
|
809
|
+
_0x46495b: 0x28b
|
|
810
|
+
}, _0x2c8127 = {
|
|
811
|
+
_0x57fa3b: 0x241,
|
|
812
|
+
_0x2a2f2e: 0x2c7,
|
|
813
|
+
_0x51be1c: 0x223,
|
|
814
|
+
_0x23b2e1: 0x1a5,
|
|
815
|
+
_0x350998: 0x1c6,
|
|
816
|
+
_0x2dbdd5: 0x1a2,
|
|
817
|
+
_0x7a28e2: 0x1a4,
|
|
818
|
+
_0x40bb08: 0x226,
|
|
819
|
+
_0x4e5c4f: 0x2f5,
|
|
820
|
+
_0x202829: 0x269
|
|
821
|
+
}, _0x11d1c8 = { _0x45927b: 0x2c3 }, _0x4b82da = {
|
|
822
|
+
_0x33ff78: 0x1e3,
|
|
823
|
+
_0x5e2095: 0x26a
|
|
824
|
+
}, _0x11c970 = {
|
|
825
|
+
_0xb017ae: 0x2aa,
|
|
826
|
+
_0x3654bf: 0x26f,
|
|
827
|
+
_0x4c2f0d: 0x1bc,
|
|
828
|
+
_0xe2ab10: 0x24b,
|
|
829
|
+
_0x18ed65: 0x1a9,
|
|
830
|
+
_0x4594a8: 0x1bc
|
|
831
|
+
}, _0x54ad71 = {
|
|
832
|
+
_0x4d6a8e: 0x288,
|
|
833
|
+
_0x1862a7: 0x1ac,
|
|
834
|
+
_0x456d30: 0x1bc,
|
|
835
|
+
_0x582822: 0x252,
|
|
836
|
+
_0x2b886b: 0x1a9,
|
|
837
|
+
_0x2d9e2c: 0x1bc
|
|
838
|
+
}, _0x2281d3 = {
|
|
839
|
+
_0x2ffe82: 0x26f,
|
|
840
|
+
_0x4f67b9: 0x252,
|
|
841
|
+
_0x394d27: 0x231,
|
|
842
|
+
_0x202e3a: 0x2a1
|
|
843
|
+
}, _0xeaa39e = {
|
|
844
|
+
_0x2976e6: 0x2ac,
|
|
845
|
+
_0x2a6b44: 0x17c
|
|
846
|
+
}, _0x3d027e = {
|
|
847
|
+
_0x383b1c: 0x229,
|
|
848
|
+
_0x4b8d7c: 0x202
|
|
849
|
+
}, _0x3edb50 = {
|
|
850
|
+
_0x47c609: 0x2f5,
|
|
851
|
+
_0x594472: 0x206,
|
|
852
|
+
_0x5d293b: 0x28b,
|
|
853
|
+
_0x268df4: 0x27b,
|
|
854
|
+
_0x16efbb: 0x2b0,
|
|
855
|
+
_0x3a2289: 0x28b,
|
|
856
|
+
_0x328fa6: 0x2fc
|
|
857
|
+
}, _0x413953 = {
|
|
858
|
+
_0x1817f6: 0x2f5,
|
|
859
|
+
_0x54f5d5: 0x2bc,
|
|
860
|
+
_0x59d8db: 0x1a5,
|
|
861
|
+
_0x18c6b4: 0x1cf,
|
|
862
|
+
_0x4722d7: 0x252,
|
|
863
|
+
_0x3739c9: 0x28b
|
|
864
|
+
}, _0x4bb20d = {
|
|
865
|
+
_0x52047d: 0x1dd,
|
|
866
|
+
_0x29ec0d: 0x2bd
|
|
867
|
+
}, _0x1746f7 = {
|
|
868
|
+
_0x3f94be: 0x246,
|
|
869
|
+
_0x2955fb: 0x246,
|
|
870
|
+
_0x220f1d: 0x17b
|
|
871
|
+
}, _0x39e7fc = {
|
|
872
|
+
_0x488dc4: 0x246,
|
|
873
|
+
_0x41edd4: 0x1b9
|
|
874
|
+
}, _0x1078ca = {
|
|
875
|
+
_0x5b6019: 0x24b,
|
|
876
|
+
_0x423ea5: 0x248,
|
|
877
|
+
_0xc79f32: 0x208,
|
|
878
|
+
_0x30a433: 0x223
|
|
879
|
+
}, _0x8933cc = {
|
|
880
|
+
_0x46f24c: 0x1c8,
|
|
881
|
+
_0x2da697: 0x2dc,
|
|
882
|
+
_0x59feac: 0x2e1,
|
|
883
|
+
_0x4e7aa6: 0x24c
|
|
884
|
+
}, _0x57a6bb = {
|
|
885
|
+
_0x4ccbec: 0x18a,
|
|
886
|
+
_0x6ae259: 0x2ff,
|
|
887
|
+
_0x281be4: 0x2de,
|
|
888
|
+
_0x3b0906: 0x2b4,
|
|
889
|
+
_0x3e2a2c: 0x17b,
|
|
890
|
+
_0xcfb774: 0x219,
|
|
891
|
+
_0x2fd5bd: 0x2c9
|
|
892
|
+
}, _0x3793bc = _0x2869e3, _0x4c5200 = _0x197643[_0x3793bc(0x214)] ?? fetch, _0x4147f9 = _0x197643[_0x3793bc(0x1d3)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4c8a18 = typeof _0x197643['initialLastSeenSeq'] === _0x3793bc(_0xc89b44._0x5d2d88) && _0x197643[_0x3793bc(_0xc89b44._0x597d2b)] > 0x0 ? _0x197643[_0x3793bc(0x292)] : 0x0, _0x38591a = _0x197643[_0x3793bc(0x18b)]?.[_0x3793bc(_0xc89b44._0x554900)]() || void 0x0, _0x30023b = _0x197643[_0x3793bc(_0xc89b44._0x142f2c)]?.['trim']() || void 0x0, _0x414a64 = _0x197643[_0x3793bc(_0xc89b44._0x518f3f)] === !![], _0x576566 = _0x197643[_0x3793bc(0x211)]?.[_0x3793bc(_0xc89b44._0x554900)]() || void 0x0, _0x3c19e6 = _0x197643[_0x3793bc(0x267)]?.[_0x3793bc(_0xc89b44._0x554900)]() || void 0x0, _0x5d2e87 = createHeaders(_0x197643['daemonApiKey']), _0xea0e6e = toHttpBaseUrl(_0x197643[_0x3793bc(0x1be)]);
|
|
893
|
+
let _0xc8a8dc = null;
|
|
894
|
+
const _0x92329d = new Map();
|
|
895
|
+
let _0x3f1834 = _0x4c8a18, _0x1bc613 = _0x4c8a18;
|
|
896
|
+
function _0x3a5168(_0x3744a2) {
|
|
897
|
+
const _0x94f3d4 = _0x3793bc, _0x454cf5 = _0x3744a2[_0x94f3d4(0x2b4)][_0x94f3d4(0x1a1)]['get'](_0x94f3d4(_0x57a6bb._0x4ccbec)) ?? _0x94f3d4(0x1ff), _0x233305 = _0x3744a2[_0x94f3d4(_0x57a6bb._0x6ae259)][_0x94f3d4(0x24c)]()[_0x94f3d4(0x2ba)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x94f3d4(0x1b4);
|
|
898
|
+
return '请求\x20' + _0x3744a2[_0x94f3d4(_0x57a6bb._0x281be4)] + _0x94f3d4(0x1ce) + _0x3744a2[_0x94f3d4(_0x57a6bb._0x3b0906)][_0x94f3d4(_0x57a6bb._0x3e2a2c)] + ',\x20content-type=' + _0x454cf5 + _0x94f3d4(_0x57a6bb._0xcfb774) + _0x233305 + _0x94f3d4(_0x57a6bb._0x2fd5bd);
|
|
888
899
|
}
|
|
889
|
-
async function
|
|
890
|
-
const
|
|
891
|
-
if (!
|
|
900
|
+
async function _0x1f549d(_0x2c6e98, _0x18483c) {
|
|
901
|
+
const _0x34e2e3 = _0x3793bc, _0x1c1ceb = Buffer[_0x34e2e3(0x24d)](await _0x18483c[_0x34e2e3(_0x8933cc._0x46f24c)]())[_0x34e2e3(_0x8933cc._0x2da697)](_0x34e2e3(_0x8933cc._0x59feac));
|
|
902
|
+
if (!_0x1c1ceb[_0x34e2e3(_0x8933cc._0x4e7aa6)]())
|
|
892
903
|
return {};
|
|
893
904
|
try {
|
|
894
|
-
return JSON[
|
|
905
|
+
return JSON['parse'](_0x1c1ceb);
|
|
895
906
|
} catch {
|
|
896
|
-
throw new Error(
|
|
897
|
-
'bodyText':
|
|
898
|
-
'requestUrl':
|
|
899
|
-
'response':
|
|
907
|
+
throw new Error(_0x3a5168({
|
|
908
|
+
'bodyText': _0x1c1ceb,
|
|
909
|
+
'requestUrl': _0x2c6e98,
|
|
910
|
+
'response': _0x18483c
|
|
900
911
|
}));
|
|
901
912
|
}
|
|
902
913
|
}
|
|
903
|
-
function
|
|
904
|
-
const
|
|
905
|
-
if (
|
|
906
|
-
return
|
|
907
|
-
const
|
|
908
|
-
for (const [
|
|
909
|
-
|
|
914
|
+
function _0x56036f(_0x2a598c, _0x551761) {
|
|
915
|
+
const _0x6a9a34 = _0x3793bc, _0x579096 = typeof _0x551761['idempotency_key'] === _0x6a9a34(_0x1078ca._0x5b6019) ? _0x551761['idempotency_key'][_0x6a9a34(0x24c)]() : '';
|
|
916
|
+
if (_0x579096)
|
|
917
|
+
return _0x579096;
|
|
918
|
+
const _0x2905da = Date['now']();
|
|
919
|
+
for (const [_0x44097e, _0x575bad] of _0x92329d) {
|
|
920
|
+
_0x575bad['expiresAt'] <= _0x2905da && _0x92329d['delete'](_0x44097e);
|
|
910
921
|
}
|
|
911
|
-
const
|
|
912
|
-
...
|
|
922
|
+
const _0x50f7bb = {
|
|
923
|
+
..._0x551761,
|
|
913
924
|
'idempotency_key': void 0x0
|
|
914
|
-
},
|
|
915
|
-
if (
|
|
916
|
-
return
|
|
917
|
-
const
|
|
918
|
-
return
|
|
919
|
-
'expiresAt':
|
|
920
|
-
'value':
|
|
921
|
-
}),
|
|
925
|
+
}, _0x114a39 = createHash(_0x6a9a34(0x189))[_0x6a9a34(_0x1078ca._0x423ea5)](_0x2a598c + ':' + stableStringify(_0x50f7bb))[_0x6a9a34(0x258)](_0x6a9a34(0x1aa)), _0x2709e4 = _0x2a598c + ':' + _0x114a39, _0x55c166 = _0x92329d[_0x6a9a34(0x274)](_0x2709e4);
|
|
926
|
+
if (_0x55c166)
|
|
927
|
+
return _0x55c166[_0x6a9a34(0x2e9)];
|
|
928
|
+
const _0x9bfe4d = _0x6a9a34(_0x1078ca._0xc79f32) + _0x2a598c + ':' + randomUUID();
|
|
929
|
+
return _0x92329d[_0x6a9a34(_0x1078ca._0x30a433)](_0x2709e4, {
|
|
930
|
+
'expiresAt': _0x2905da + 0x5 * 0x3c * 0x3e8,
|
|
931
|
+
'value': _0x9bfe4d
|
|
932
|
+
}), _0x9bfe4d;
|
|
922
933
|
}
|
|
923
|
-
async function
|
|
924
|
-
const
|
|
934
|
+
async function _0x372d0f(_0x5676e6, _0x36a76c) {
|
|
935
|
+
const _0x4a5f2e = _0x3793bc, _0x437ca5 = new AbortController(), _0x195545 = setTimeout(() => _0x437ca5[_0x4a5f2e(0x1c9)](), _0x4147f9), _0xb92915 = _0x36a76c?.[_0x4a5f2e(_0x39e7fc._0x488dc4)] ? anySignal(_0x36a76c[_0x4a5f2e(_0x39e7fc._0x488dc4)], _0x437ca5[_0x4a5f2e(0x246)]) : _0x437ca5[_0x4a5f2e(_0x39e7fc._0x488dc4)], _0x131e67 = '' + _0xea0e6e + _0x5676e6;
|
|
925
936
|
try {
|
|
926
|
-
const
|
|
927
|
-
...
|
|
928
|
-
'signal':
|
|
929
|
-
}),
|
|
930
|
-
if (!
|
|
931
|
-
throw new Error(asErrorMessage(
|
|
932
|
-
return
|
|
937
|
+
const _0x1da50a = await _0x4c5200(_0x131e67, {
|
|
938
|
+
..._0x36a76c,
|
|
939
|
+
'signal': _0xb92915
|
|
940
|
+
}), _0x440efa = await _0x1f549d(_0x131e67, _0x1da50a);
|
|
941
|
+
if (!_0x1da50a['ok'] || _0x440efa[_0x4a5f2e(_0x39e7fc._0x41edd4)] === ![])
|
|
942
|
+
throw new Error(asErrorMessage(_0x440efa['error'], 'HTTP\x20' + _0x1da50a['status']));
|
|
943
|
+
return _0x440efa;
|
|
933
944
|
} finally {
|
|
934
|
-
clearTimeout(
|
|
945
|
+
clearTimeout(_0x195545);
|
|
935
946
|
}
|
|
936
947
|
}
|
|
937
|
-
async function
|
|
938
|
-
const
|
|
948
|
+
async function _0xd80a40(_0x2585ef, _0x3f2448) {
|
|
949
|
+
const _0x3f9854 = _0x3793bc, _0x5b76b1 = new AbortController(), _0x47094a = setTimeout(() => _0x5b76b1[_0x3f9854(0x1c9)](), _0x4147f9), _0x590abf = _0x3f2448?.[_0x3f9854(0x246)] ? anySignal(_0x3f2448[_0x3f9854(_0x1746f7._0x3f94be)], _0x5b76b1[_0x3f9854(_0x1746f7._0x3f94be)]) : _0x5b76b1[_0x3f9854(_0x1746f7._0x2955fb)], _0x3a297b = '' + _0xea0e6e + _0x2585ef;
|
|
939
950
|
try {
|
|
940
|
-
const
|
|
941
|
-
...
|
|
942
|
-
'signal':
|
|
943
|
-
}),
|
|
944
|
-
if (!
|
|
945
|
-
throw new Error(asErrorMessage(
|
|
946
|
-
return
|
|
951
|
+
const _0x325d2d = await _0x4c5200(_0x3a297b, {
|
|
952
|
+
..._0x3f2448,
|
|
953
|
+
'signal': _0x590abf
|
|
954
|
+
}), _0x2d96d5 = await _0x1f549d(_0x3a297b, _0x325d2d);
|
|
955
|
+
if (!_0x325d2d['ok'])
|
|
956
|
+
throw new Error(asErrorMessage(_0x2d96d5['error'], 'HTTP\x20' + _0x325d2d[_0x3f9854(_0x1746f7._0x220f1d)]));
|
|
957
|
+
return _0x2d96d5;
|
|
947
958
|
} finally {
|
|
948
|
-
clearTimeout(
|
|
959
|
+
clearTimeout(_0x47094a);
|
|
949
960
|
}
|
|
950
961
|
}
|
|
951
|
-
async function
|
|
952
|
-
const
|
|
953
|
-
if (!
|
|
962
|
+
async function _0x5705da(_0xcddd30) {
|
|
963
|
+
const _0x5b138a = _0x3793bc;
|
|
964
|
+
if (!_0x30023b || _0xcddd30 <= _0x1bc613)
|
|
954
965
|
return;
|
|
955
|
-
await
|
|
956
|
-
'body': JSON[
|
|
957
|
-
'headers':
|
|
958
|
-
'method':
|
|
959
|
-
}),
|
|
966
|
+
await _0x372d0f(_0x5b138a(_0x4bb20d._0x52047d) + encodeURIComponent(_0x30023b) + _0x5b138a(0x22c), {
|
|
967
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0xcddd30 }),
|
|
968
|
+
'headers': _0x5d2e87,
|
|
969
|
+
'method': _0x5b138a(_0x4bb20d._0x29ec0d)
|
|
970
|
+
}), _0x1bc613 = _0xcddd30;
|
|
960
971
|
}
|
|
961
|
-
async function
|
|
962
|
-
const
|
|
963
|
-
if (!
|
|
972
|
+
async function _0x21c1a9(_0x4694ad) {
|
|
973
|
+
const _0x20a12e = _0x3793bc;
|
|
974
|
+
if (!_0x38591a || !_0x576566 || _0x4694ad <= _0x1bc613)
|
|
964
975
|
return;
|
|
965
|
-
const
|
|
976
|
+
const _0x5ba364 = await _0x4c5200(_0x38591a + _0x20a12e(0x238), {
|
|
966
977
|
'body': JSON['stringify']({
|
|
967
|
-
'last_seen_seq':
|
|
968
|
-
'worker_session_id':
|
|
978
|
+
'last_seen_seq': _0x4694ad,
|
|
979
|
+
'worker_session_id': _0x576566
|
|
969
980
|
}),
|
|
970
|
-
'headers': { 'Content-Type':
|
|
971
|
-
'method':
|
|
981
|
+
'headers': { 'Content-Type': _0x20a12e(0x1f4) },
|
|
982
|
+
'method': _0x20a12e(0x2bc)
|
|
972
983
|
});
|
|
973
|
-
if (!
|
|
974
|
-
throw new Error(
|
|
975
|
-
|
|
984
|
+
if (!_0x5ba364['ok'])
|
|
985
|
+
throw new Error(_0x20a12e(0x21e) + _0x5ba364[_0x20a12e(0x17b)]);
|
|
986
|
+
_0x1bc613 = _0x4694ad;
|
|
976
987
|
}
|
|
977
|
-
async function
|
|
978
|
-
const
|
|
979
|
-
'body': JSON['stringify']({ 'target':
|
|
980
|
-
'headers':
|
|
981
|
-
'method':
|
|
988
|
+
async function _0x2b9c99(_0x2b1e04) {
|
|
989
|
+
const _0x410985 = _0x3793bc, _0x501b62 = parseTarget(_0x2b1e04), _0x48303a = await _0x372d0f(_0x410985(0x226) + _0x197643[_0x410985(_0x413953._0x1817f6)] + _0x410985(0x2fb), {
|
|
990
|
+
'body': JSON['stringify']({ 'target': _0x501b62[_0x410985(0x285)] }),
|
|
991
|
+
'headers': _0x5d2e87,
|
|
992
|
+
'method': _0x410985(_0x413953._0x54f5d5)
|
|
982
993
|
});
|
|
983
994
|
return {
|
|
984
|
-
'channelId':
|
|
985
|
-
'target':
|
|
986
|
-
'task':
|
|
987
|
-
'threadId':
|
|
988
|
-
'threadNumber':
|
|
995
|
+
'channelId': _0x48303a[_0x410985(0x28b)]?.[_0x410985(_0x413953._0x59d8db)] ?? '',
|
|
996
|
+
'target': _0x501b62['channelTarget'],
|
|
997
|
+
'task': _0x48303a[_0x410985(0x28b)]?.[_0x410985(_0x413953._0x18c6b4)],
|
|
998
|
+
'threadId': _0x48303a['data']?.[_0x410985(_0x413953._0x4722d7)],
|
|
999
|
+
'threadNumber': _0x48303a[_0x410985(_0x413953._0x3739c9)]?.[_0x410985(0x26f)]
|
|
989
1000
|
};
|
|
990
1001
|
}
|
|
991
|
-
async function
|
|
992
|
-
const
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
'
|
|
1004
|
-
'
|
|
1005
|
-
})
|
|
1006
|
-
'id': _0x25321d(_0x545bc6),
|
|
1007
|
-
'name': _0x1af7d6(_0x545bc6)
|
|
1008
|
-
}))[_0x1b4e8f(0x16a)](_0x38267b => _0x38267b['id']), _0x121f49 = _0x66c1bc[_0x1b4e8f(_0x2a1053._0x33cbb0)](_0x499e6b => _0x499e6b[_0x1b4e8f(0x22b)]?.[_0x1b4e8f(0x164)] !== _0x1b4e8f(0x24c))[_0x1b4e8f(0x2a1)](_0x507d71 => ({
|
|
1009
|
-
'id': _0x25321d(_0x507d71),
|
|
1010
|
-
'name': _0x1af7d6(_0x507d71)
|
|
1011
|
-
}))[_0x1b4e8f(0x16a)](_0x2ff635 => _0x2ff635['id']), _0x3a6d8c = _0x1f3900[_0x1b4e8f(0x23b)]?.['server']['id'] ?? '';
|
|
1002
|
+
async function _0x331252(_0x21f887 = {}) {
|
|
1003
|
+
const _0x2def84 = _0x3793bc;
|
|
1004
|
+
if (!_0x21f887[_0x2def84(_0x3d027e._0x383b1c)] && _0xc8a8dc)
|
|
1005
|
+
return _0xc8a8dc;
|
|
1006
|
+
return _0xc8a8dc = (async () => {
|
|
1007
|
+
const _0x4aeeac = _0x2def84, _0x9d6284 = await _0x372d0f(_0x4aeeac(0x226) + _0x197643[_0x4aeeac(_0x3edb50._0x47c609)] + _0x4aeeac(_0x3edb50._0x594472), {
|
|
1008
|
+
'headers': _0x5d2e87,
|
|
1009
|
+
'method': _0x4aeeac(0x28a)
|
|
1010
|
+
}), _0x4ff1ab = _0x9d6284[_0x4aeeac(_0x3edb50._0x5d293b)]?.['members'] ?? [], _0x52ca3c = _0x4ff1ab[_0x4aeeac(_0x3edb50._0x268df4)](_0x525e95 => _0x525e95[_0x4aeeac(0x26a)]?.[_0x4aeeac(0x29f)] === _0x4aeeac(0x1f3))['map'](_0x3ba925 => ({
|
|
1011
|
+
'id': _0xad0202(_0x3ba925),
|
|
1012
|
+
'name': _0x232cf9(_0x3ba925)
|
|
1013
|
+
}))[_0x4aeeac(0x27b)](_0x1b1241 => _0x1b1241['id']), _0xd9b616 = _0x4ff1ab[_0x4aeeac(0x27b)](_0x117896 => _0x117896[_0x4aeeac(0x26a)]?.[_0x4aeeac(0x29f)] !== _0x4aeeac(0x1f3))[_0x4aeeac(_0x3edb50._0x16efbb)](_0x3a2d1e => ({
|
|
1014
|
+
'id': _0xad0202(_0x3a2d1e),
|
|
1015
|
+
'name': _0x232cf9(_0x3a2d1e)
|
|
1016
|
+
}))[_0x4aeeac(0x27b)](_0x392daa => _0x392daa['id']), _0x481570 = _0x9d6284[_0x4aeeac(_0x3edb50._0x3a2289)]?.[_0x4aeeac(0x2fc)]['id'] ?? '';
|
|
1012
1017
|
return {
|
|
1013
|
-
'agents':
|
|
1014
|
-
'channels':
|
|
1015
|
-
'humans':
|
|
1016
|
-
'serverId':
|
|
1017
|
-
'serverName':
|
|
1018
|
+
'agents': _0x52ca3c,
|
|
1019
|
+
'channels': _0x9d6284['data']?.['channels'] ?? [],
|
|
1020
|
+
'humans': _0xd9b616,
|
|
1021
|
+
'serverId': _0x481570,
|
|
1022
|
+
'serverName': _0x9d6284[_0x4aeeac(0x28b)]?.[_0x4aeeac(_0x3edb50._0x328fa6)]['name'] ?? _0x481570
|
|
1018
1023
|
};
|
|
1019
|
-
})()[
|
|
1020
|
-
|
|
1021
|
-
throw
|
|
1022
|
-
}),
|
|
1024
|
+
})()[_0x2def84(_0x3d027e._0x4b8d7c)](_0x297e52 => {
|
|
1025
|
+
_0xc8a8dc = null;
|
|
1026
|
+
throw _0x297e52;
|
|
1027
|
+
}), _0xc8a8dc;
|
|
1023
1028
|
}
|
|
1024
|
-
function
|
|
1025
|
-
const
|
|
1026
|
-
return
|
|
1029
|
+
function _0x45d3d3(_0x53a201, _0x53d2f5) {
|
|
1030
|
+
const _0x121a42 = _0x3793bc;
|
|
1031
|
+
return _0x53d2f5[_0x121a42(0x2ac)]['some'](_0x5dad7b => _0x5dad7b['id'] === _0x53a201 || _0x5dad7b[_0x121a42(0x2c3)] === _0x53a201) ? _0x121a42(0x1f3) : 'human';
|
|
1027
1032
|
}
|
|
1028
|
-
function
|
|
1029
|
-
const
|
|
1030
|
-
...
|
|
1031
|
-
...
|
|
1032
|
-
][
|
|
1033
|
-
return
|
|
1033
|
+
function _0xba39f1(_0x5e20e9, _0x3f2dc1) {
|
|
1034
|
+
const _0x5eabdc = _0x3793bc, _0xbc0a6d = [
|
|
1035
|
+
..._0x3f2dc1[_0x5eabdc(_0xeaa39e._0x2976e6)],
|
|
1036
|
+
..._0x3f2dc1[_0x5eabdc(_0xeaa39e._0x2a6b44)]
|
|
1037
|
+
][_0x5eabdc(0x2d0)](_0x40211f => _0x40211f['id'] === _0x5e20e9);
|
|
1038
|
+
return _0xbc0a6d?.['name'] ?? _0x5e20e9;
|
|
1034
1039
|
}
|
|
1035
|
-
function
|
|
1036
|
-
const
|
|
1037
|
-
if (
|
|
1038
|
-
return
|
|
1039
|
-
if (
|
|
1040
|
-
return
|
|
1041
|
-
if (
|
|
1042
|
-
return
|
|
1043
|
-
return
|
|
1040
|
+
function _0x4115cc(_0x54148f) {
|
|
1041
|
+
const _0x4e96fd = _0x3793bc;
|
|
1042
|
+
if (_0x54148f[_0x4e96fd(0x26f)] != null)
|
|
1043
|
+
return _0x54148f[_0x4e96fd(0x2a1)] + ':t' + _0x54148f[_0x4e96fd(_0x2281d3._0x2ffe82)];
|
|
1044
|
+
if (_0x54148f[_0x4e96fd(0x1ac)])
|
|
1045
|
+
return _0x54148f['channelTarget'] + ':' + _0x54148f[_0x4e96fd(0x1ac)];
|
|
1046
|
+
if (_0x54148f[_0x4e96fd(_0x2281d3._0x4f67b9)])
|
|
1047
|
+
return _0x54148f[_0x4e96fd(0x2a1)] + ':' + _0x54148f[_0x4e96fd(0x252)][_0x4e96fd(_0x2281d3._0x394d27)](0x0, 0x8);
|
|
1048
|
+
return _0x54148f[_0x4e96fd(_0x2281d3._0x202e3a)];
|
|
1044
1049
|
}
|
|
1045
|
-
function
|
|
1046
|
-
const
|
|
1050
|
+
function _0x5bc090(_0x32a3e5, _0x1352c7) {
|
|
1051
|
+
const _0x3b25bd = _0x3793bc;
|
|
1047
1052
|
try {
|
|
1048
|
-
const
|
|
1049
|
-
if (
|
|
1053
|
+
const _0x4ee605 = parseTarget(_0x32a3e5);
|
|
1054
|
+
if (_0x4ee605[_0x3b25bd(0x2aa)] !== _0x3b25bd(_0x54ad71._0x4d6a8e) || _0x4ee605[_0x3b25bd(0x2a1)] !== _0x1352c7['channelTarget'])
|
|
1050
1055
|
return ![];
|
|
1051
|
-
if (
|
|
1056
|
+
if (_0x1352c7[_0x3b25bd(0x26f)] != null && _0x4ee605['threadShortId'] === 't' + _0x1352c7[_0x3b25bd(0x26f)])
|
|
1052
1057
|
return !![];
|
|
1053
|
-
if (
|
|
1054
|
-
return
|
|
1055
|
-
if (
|
|
1056
|
-
return
|
|
1058
|
+
if (_0x1352c7['rootMessageId'])
|
|
1059
|
+
return _0x4ee605[_0x3b25bd(0x1bc)] === _0x1352c7[_0x3b25bd(0x1ac)] || _0x1352c7[_0x3b25bd(_0x54ad71._0x1862a7)][_0x3b25bd(0x1a9)](_0x4ee605[_0x3b25bd(_0x54ad71._0x456d30)]);
|
|
1060
|
+
if (_0x1352c7[_0x3b25bd(0x252)])
|
|
1061
|
+
return _0x4ee605['threadShortId'] === _0x1352c7['threadId'] || _0x1352c7[_0x3b25bd(_0x54ad71._0x582822)][_0x3b25bd(_0x54ad71._0x2b886b)](_0x4ee605[_0x3b25bd(_0x54ad71._0x2d9e2c)]);
|
|
1057
1062
|
return ![];
|
|
1058
1063
|
} catch {
|
|
1059
1064
|
return ![];
|
|
1060
1065
|
}
|
|
1061
1066
|
}
|
|
1062
|
-
function
|
|
1063
|
-
const
|
|
1067
|
+
function _0x4020d7(_0x36607b, _0x12b4aa) {
|
|
1068
|
+
const _0x1af121 = _0x3793bc;
|
|
1064
1069
|
try {
|
|
1065
|
-
const
|
|
1066
|
-
if (
|
|
1070
|
+
const _0x3452ff = parseTarget(_0x36607b);
|
|
1071
|
+
if (_0x3452ff[_0x1af121(_0x11c970._0xb017ae)] !== _0x1af121(0x288))
|
|
1067
1072
|
return ![];
|
|
1068
|
-
const
|
|
1069
|
-
if (
|
|
1073
|
+
const _0x33fd60 = typeof _0x12b4aa['threadNumber'] === 'number' && Number['isInteger'](_0x12b4aa['threadNumber']) ? _0x12b4aa[_0x1af121(_0x11c970._0x3654bf)] : void 0x0;
|
|
1074
|
+
if (_0x33fd60 != null && _0x3452ff[_0x1af121(_0x11c970._0x4c2f0d)] === 't' + _0x33fd60)
|
|
1070
1075
|
return !![];
|
|
1071
|
-
const
|
|
1072
|
-
if (
|
|
1073
|
-
return
|
|
1074
|
-
const
|
|
1075
|
-
return Boolean(
|
|
1076
|
+
const _0x538de0 = typeof _0x12b4aa[_0x1af121(0x1ac)] === _0x1af121(_0x11c970._0xe2ab10) ? _0x12b4aa['rootMessageId'] : void 0x0;
|
|
1077
|
+
if (_0x538de0)
|
|
1078
|
+
return _0x3452ff[_0x1af121(0x1bc)] === _0x538de0 || _0x538de0[_0x1af121(_0x11c970._0x18ed65)](_0x3452ff[_0x1af121(0x1bc)]);
|
|
1079
|
+
const _0x3b13d7 = typeof _0x12b4aa['threadId'] === 'string' ? _0x12b4aa['threadId'] : void 0x0;
|
|
1080
|
+
return Boolean(_0x3b13d7) && (_0x3452ff[_0x1af121(0x1bc)] === _0x3b13d7 || _0x3b13d7['startsWith'](_0x3452ff[_0x1af121(_0x11c970._0x4594a8)]));
|
|
1076
1081
|
} catch {
|
|
1077
1082
|
return ![];
|
|
1078
1083
|
}
|
|
1079
1084
|
}
|
|
1080
|
-
function
|
|
1081
|
-
const
|
|
1082
|
-
return
|
|
1085
|
+
function _0xad0202(_0x49338d) {
|
|
1086
|
+
const _0xe54f6a = _0x3793bc;
|
|
1087
|
+
return _0x49338d['member']?.[_0xe54f6a(_0x4b82da._0x33ff78)] ?? _0x49338d[_0xe54f6a(_0x4b82da._0x5e2095)]?.['id'] ?? _0x49338d[_0xe54f6a(0x1e3)] ?? '';
|
|
1083
1088
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const
|
|
1086
|
-
return
|
|
1089
|
+
function _0x232cf9(_0x4e1761) {
|
|
1090
|
+
const _0x52aeaf = _0x3793bc;
|
|
1091
|
+
return _0x4e1761[_0x52aeaf(0x26a)]?.[_0x52aeaf(_0x11d1c8._0x45927b)] ?? _0xad0202(_0x4e1761);
|
|
1087
1092
|
}
|
|
1088
|
-
async function
|
|
1089
|
-
const
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
const
|
|
1095
|
-
'headers':
|
|
1096
|
-
'method':
|
|
1097
|
-
}),
|
|
1098
|
-
'attachments': (
|
|
1099
|
-
'filename':
|
|
1100
|
-
'id':
|
|
1093
|
+
async function _0x44fd12(_0x596e74) {
|
|
1094
|
+
const _0x31ee1a = _0x3793bc, _0x13fd66 = Math[_0x31ee1a(_0x2c8127._0x57fa3b)](_0x596e74[_0x31ee1a(_0x2c8127._0x2a2f2e)] ?? 0x32, 0x64), _0x596083 = await _0x331252(), _0x293bca = new URLSearchParams();
|
|
1095
|
+
_0x293bca[_0x31ee1a(_0x2c8127._0x51be1c)](_0x31ee1a(0x2c7), String(_0x13fd66));
|
|
1096
|
+
_0x596e74[_0x31ee1a(0x252)] ? (_0x293bca[_0x31ee1a(_0x2c8127._0x51be1c)]('threadId', _0x596e74[_0x31ee1a(0x252)]), _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(_0x2c8127._0x23b2e1), _0x596e74[_0x31ee1a(0x1a5)])) : _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(_0x2c8127._0x23b2e1), _0x596e74['channelId']);
|
|
1097
|
+
_0x596e74[_0x31ee1a(0x1a2)] && _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(_0x2c8127._0x350998), String(_0x596e74[_0x31ee1a(_0x2c8127._0x2dbdd5)]));
|
|
1098
|
+
_0x596e74[_0x31ee1a(0x1a4)] !== void 0x0 && _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(0x1a4), String(_0x596e74[_0x31ee1a(_0x2c8127._0x7a28e2)]));
|
|
1099
|
+
const _0xd7b596 = await _0x372d0f(_0x31ee1a(_0x2c8127._0x40bb08) + _0x197643[_0x31ee1a(_0x2c8127._0x4e5c4f)] + _0x31ee1a(0x2b1) + _0x293bca[_0x31ee1a(0x2dc)](), {
|
|
1100
|
+
'headers': _0x5d2e87,
|
|
1101
|
+
'method': 'GET'
|
|
1102
|
+
}), _0x30140e = (_0xd7b596[_0x31ee1a(0x28b)] ?? [])[_0x31ee1a(0x2b0)](_0x55f3ef => ({
|
|
1103
|
+
'attachments': (_0x55f3ef[_0x31ee1a(0x20a)] ?? [])['map'](_0x887f90 => ({
|
|
1104
|
+
'filename': _0x887f90[_0x31ee1a(0x2ef)] ?? _0x887f90['id'],
|
|
1105
|
+
'id': _0x887f90['id']
|
|
1101
1106
|
})),
|
|
1102
|
-
'content':
|
|
1103
|
-
'createdAt':
|
|
1104
|
-
...
|
|
1105
|
-
'messageId':
|
|
1106
|
-
'senderName':
|
|
1107
|
-
'senderType':
|
|
1108
|
-
'seq':
|
|
1107
|
+
'content': _0x55f3ef[_0x31ee1a(0x1cc)] ?? '',
|
|
1108
|
+
'createdAt': _0x55f3ef[_0x31ee1a(0x2bb)],
|
|
1109
|
+
..._0x55f3ef[_0x31ee1a(0x2aa)] && _0x55f3ef['kind'] !== _0x31ee1a(0x302) ? { 'kind': _0x55f3ef['kind'] } : {},
|
|
1110
|
+
'messageId': _0x55f3ef['id'],
|
|
1111
|
+
'senderName': _0xba39f1(_0x55f3ef[_0x31ee1a(0x249)], _0x596083),
|
|
1112
|
+
'senderType': _0x45d3d3(_0x55f3ef[_0x31ee1a(0x249)], _0x596083),
|
|
1113
|
+
'seq': _0x55f3ef[_0x31ee1a(0x23c)] ?? 0x0
|
|
1109
1114
|
}));
|
|
1110
1115
|
return {
|
|
1111
|
-
'channel':
|
|
1112
|
-
'hasMore':
|
|
1113
|
-
'messages':
|
|
1114
|
-
'nextCursor':
|
|
1116
|
+
'channel': _0x596e74[_0x31ee1a(0x2a1)],
|
|
1117
|
+
'hasMore': _0xd7b596['meta']?.['hasMore'] ?? ![],
|
|
1118
|
+
'messages': _0x30140e,
|
|
1119
|
+
'nextCursor': _0xd7b596[_0x31ee1a(_0x2c8127._0x202829)]?.[_0x31ee1a(0x1c6)]
|
|
1115
1120
|
};
|
|
1116
1121
|
}
|
|
1117
1122
|
return {
|
|
1118
|
-
async 'sendMessage'(
|
|
1119
|
-
const
|
|
1120
|
-
'body': JSON[
|
|
1121
|
-
'attachment_ids':
|
|
1122
|
-
'bodyMarkdown':
|
|
1123
|
-
'channelId':
|
|
1124
|
-
...
|
|
1125
|
-
'threadId':
|
|
1126
|
-
...
|
|
1123
|
+
async 'sendMessage'(_0x12a246) {
|
|
1124
|
+
const _0x3f071a = _0x3793bc, _0x4e45ca = await _0x2b9c99(_0x12a246[_0x3f071a(0x285)]), _0x57fa16 = _0x12a246[_0x3f071a(_0x30f55f._0x59ad51)]['includes']('@') ? extractMentionedParticipantIds(_0x12a246['content'], await _0x331252()) : [], _0x335723 = await _0x372d0f(_0x3f071a(_0x30f55f._0xc420d5) + _0x197643['agentId'] + '/send', {
|
|
1125
|
+
'body': JSON['stringify']({
|
|
1126
|
+
'attachment_ids': _0x12a246['attachmentIds'],
|
|
1127
|
+
'bodyMarkdown': _0x12a246[_0x3f071a(0x268)],
|
|
1128
|
+
'channelId': _0x4e45ca[_0x3f071a(_0x30f55f._0x406e5b)],
|
|
1129
|
+
..._0x57fa16[_0x3f071a(0x1de)] > 0x0 ? { 'mentionedParticipantIds': _0x57fa16 } : {},
|
|
1130
|
+
'threadId': _0x4e45ca[_0x3f071a(_0x30f55f._0x4be859)],
|
|
1131
|
+
..._0x12a246[_0x3f071a(_0x30f55f._0x55742d)] ? { 'visibility': _0x12a246[_0x3f071a(0x2c0)] } : {}
|
|
1127
1132
|
}),
|
|
1128
|
-
'headers':
|
|
1129
|
-
'method':
|
|
1133
|
+
'headers': _0x5d2e87,
|
|
1134
|
+
'method': _0x3f071a(0x2bc)
|
|
1130
1135
|
});
|
|
1131
|
-
return { 'messageId':
|
|
1136
|
+
return { 'messageId': _0x335723[_0x3f071a(_0x30f55f._0x46495b)]?.['id'] ?? '' };
|
|
1132
1137
|
},
|
|
1133
1138
|
async 'listSchedules'() {
|
|
1134
|
-
const
|
|
1135
|
-
'headers':
|
|
1136
|
-
'method':
|
|
1139
|
+
const _0x45b0fc = _0x3793bc, _0x5416ef = await _0x372d0f(_0x45b0fc(0x1c3), {
|
|
1140
|
+
'headers': _0x5d2e87,
|
|
1141
|
+
'method': _0x45b0fc(_0x5acd38._0x28a10a)
|
|
1137
1142
|
});
|
|
1138
|
-
return
|
|
1143
|
+
return _0x5416ef[_0x45b0fc(0x28b)] ?? [];
|
|
1139
1144
|
},
|
|
1140
|
-
async 'claimScheduleRun'(
|
|
1141
|
-
const
|
|
1142
|
-
'body': JSON[
|
|
1143
|
-
'headers':
|
|
1144
|
-
'method':
|
|
1145
|
+
async 'claimScheduleRun'(_0x4725c3) {
|
|
1146
|
+
const _0x49cc2f = _0x3793bc, _0x342ae2 = await _0x372d0f(_0x49cc2f(_0x4376d8._0x5c9a28), {
|
|
1147
|
+
'body': JSON[_0x49cc2f(0x1ba)](_0x4725c3),
|
|
1148
|
+
'headers': _0x5d2e87,
|
|
1149
|
+
'method': 'POST'
|
|
1145
1150
|
});
|
|
1146
|
-
return
|
|
1151
|
+
return _0x342ae2[_0x49cc2f(_0x4376d8._0x184df9)] ?? {
|
|
1147
1152
|
'granted': ![],
|
|
1148
1153
|
'runId': null,
|
|
1149
1154
|
'schedule': null,
|
|
1150
|
-
'scheduledFor':
|
|
1155
|
+
'scheduledFor': _0x4725c3['scheduledFor']
|
|
1151
1156
|
};
|
|
1152
1157
|
},
|
|
1153
|
-
async 'startScheduleRun'(
|
|
1154
|
-
const
|
|
1155
|
-
'body': JSON[
|
|
1156
|
-
'headers':
|
|
1157
|
-
'method':
|
|
1158
|
+
async 'startScheduleRun'(_0x204384) {
|
|
1159
|
+
const _0x196e94 = _0x3793bc, _0x44573e = await _0x372d0f(_0x196e94(0x20b) + encodeURIComponent(_0x204384[_0x196e94(0x1db)]) + _0x196e94(_0x16b67._0x127993), {
|
|
1160
|
+
'body': JSON[_0x196e94(0x1ba)]({}),
|
|
1161
|
+
'headers': _0x5d2e87,
|
|
1162
|
+
'method': _0x196e94(0x2bc)
|
|
1158
1163
|
});
|
|
1159
|
-
return
|
|
1164
|
+
return _0x44573e[_0x196e94(0x28b)] ?? {
|
|
1160
1165
|
'claimedByDaemonId': '',
|
|
1161
|
-
'id':
|
|
1166
|
+
'id': _0x204384[_0x196e94(_0x16b67._0x29cbb1)],
|
|
1162
1167
|
'scheduleId': '',
|
|
1163
|
-
'status':
|
|
1168
|
+
'status': 'running'
|
|
1164
1169
|
};
|
|
1165
1170
|
},
|
|
1166
|
-
async 'finishScheduleRun'(
|
|
1167
|
-
const
|
|
1168
|
-
'body': JSON[
|
|
1169
|
-
'error':
|
|
1170
|
-
'resultJson':
|
|
1171
|
-
'status':
|
|
1171
|
+
async 'finishScheduleRun'(_0x303e76) {
|
|
1172
|
+
const _0x5dcda8 = _0x3793bc, _0x53f50c = await _0x372d0f('/api/internal/schedules/' + encodeURIComponent(_0x303e76[_0x5dcda8(_0x29660a._0x475f64)]) + '/finish', {
|
|
1173
|
+
'body': JSON[_0x5dcda8(_0x29660a._0x4d1d02)]({
|
|
1174
|
+
'error': _0x303e76['error'],
|
|
1175
|
+
'resultJson': _0x303e76[_0x5dcda8(_0x29660a._0x4b49ad)],
|
|
1176
|
+
'status': _0x303e76[_0x5dcda8(_0x29660a._0x2528e3)]
|
|
1172
1177
|
}),
|
|
1173
|
-
'headers':
|
|
1174
|
-
'method':
|
|
1178
|
+
'headers': _0x5d2e87,
|
|
1179
|
+
'method': _0x5dcda8(0x2bc)
|
|
1175
1180
|
});
|
|
1176
|
-
return
|
|
1181
|
+
return _0x53f50c[_0x5dcda8(0x28b)] ?? {
|
|
1177
1182
|
'nextRunAt': null,
|
|
1178
1183
|
'run': {
|
|
1179
1184
|
'claimedByDaemonId': '',
|
|
1180
|
-
'id':
|
|
1185
|
+
'id': _0x303e76['runId'],
|
|
1181
1186
|
'scheduleId': '',
|
|
1182
|
-
'status':
|
|
1187
|
+
'status': _0x303e76[_0x5dcda8(_0x29660a._0x2528e3)]
|
|
1183
1188
|
}
|
|
1184
1189
|
};
|
|
1185
1190
|
},
|
|
1186
|
-
async 'listTasks'(
|
|
1187
|
-
const
|
|
1188
|
-
return
|
|
1189
|
-
'headers':
|
|
1190
|
-
'method':
|
|
1191
|
+
async 'listTasks'(_0x17ef71) {
|
|
1192
|
+
const _0x2dfa9c = _0x3793bc, _0x147ff3 = new URLSearchParams();
|
|
1193
|
+
return _0x147ff3[_0x2dfa9c(_0x4ccf82._0x473d68)](_0x2dfa9c(0x188), _0x17ef71['channel']), _0x17ef71['status'] && _0x147ff3['set'](_0x2dfa9c(_0x4ccf82._0x2e34c2), _0x17ef71[_0x2dfa9c(0x17b)]), _0xd80a40(_0x2dfa9c(_0x4ccf82._0x141241) + _0x197643['agentId'] + _0x2dfa9c(0x2f3) + _0x147ff3[_0x2dfa9c(_0x4ccf82._0x89682a)](), {
|
|
1194
|
+
'headers': _0x5d2e87,
|
|
1195
|
+
'method': 'GET'
|
|
1191
1196
|
});
|
|
1192
1197
|
},
|
|
1193
|
-
async 'createTasks'(
|
|
1194
|
-
const
|
|
1195
|
-
return
|
|
1196
|
-
'body': JSON[
|
|
1197
|
-
...
|
|
1198
|
-
'idempotency_key':
|
|
1198
|
+
async 'createTasks'(_0x192133) {
|
|
1199
|
+
const _0x62e6d3 = _0x3793bc;
|
|
1200
|
+
return _0xd80a40(_0x62e6d3(_0x2b76e4._0x5ab9d3) + _0x197643['agentId'] + _0x62e6d3(0x286), {
|
|
1201
|
+
'body': JSON[_0x62e6d3(0x1ba)]({
|
|
1202
|
+
..._0x192133,
|
|
1203
|
+
'idempotency_key': _0x56036f(_0x62e6d3(0x1a3), _0x192133)
|
|
1199
1204
|
}),
|
|
1200
|
-
'headers':
|
|
1201
|
-
'method':
|
|
1205
|
+
'headers': _0x5d2e87,
|
|
1206
|
+
'method': 'POST'
|
|
1202
1207
|
});
|
|
1203
1208
|
},
|
|
1204
|
-
async 'claimTasks'(
|
|
1205
|
-
const
|
|
1206
|
-
return
|
|
1209
|
+
async 'claimTasks'(_0x1ff39d) {
|
|
1210
|
+
const _0x5b4c09 = _0x3793bc;
|
|
1211
|
+
return _0xd80a40(_0x5b4c09(_0x16a8cc._0x3884d3) + _0x197643[_0x5b4c09(_0x16a8cc._0x4fc07a)] + _0x5b4c09(_0x16a8cc._0x25a827), {
|
|
1207
1212
|
'body': JSON['stringify']({
|
|
1208
|
-
...
|
|
1209
|
-
'idempotency_key':
|
|
1213
|
+
..._0x1ff39d,
|
|
1214
|
+
'idempotency_key': _0x56036f(_0x5b4c09(0x2df), _0x1ff39d)
|
|
1210
1215
|
}),
|
|
1211
|
-
'headers':
|
|
1212
|
-
'method':
|
|
1216
|
+
'headers': _0x5d2e87,
|
|
1217
|
+
'method': 'POST'
|
|
1213
1218
|
});
|
|
1214
1219
|
},
|
|
1215
|
-
async 'unclaimTask'(
|
|
1216
|
-
const
|
|
1217
|
-
return
|
|
1218
|
-
'body': JSON[
|
|
1219
|
-
...
|
|
1220
|
-
'idempotency_key':
|
|
1220
|
+
async 'unclaimTask'(_0x16cec7) {
|
|
1221
|
+
const _0x1ce9c8 = _0x3793bc;
|
|
1222
|
+
return _0xd80a40('/internal/agent/' + _0x197643[_0x1ce9c8(_0xa97e57._0x440c8f)] + _0x1ce9c8(0x235), {
|
|
1223
|
+
'body': JSON[_0x1ce9c8(_0xa97e57._0x262448)]({
|
|
1224
|
+
..._0x16cec7,
|
|
1225
|
+
'idempotency_key': _0x56036f(_0x1ce9c8(_0xa97e57._0x5a8d21), _0x16cec7)
|
|
1221
1226
|
}),
|
|
1222
|
-
'headers':
|
|
1223
|
-
'method':
|
|
1227
|
+
'headers': _0x5d2e87,
|
|
1228
|
+
'method': _0x1ce9c8(0x2bc)
|
|
1224
1229
|
});
|
|
1225
1230
|
},
|
|
1226
|
-
async 'updateTaskStatus'(
|
|
1227
|
-
const
|
|
1228
|
-
return
|
|
1229
|
-
'body': JSON[
|
|
1230
|
-
...
|
|
1231
|
-
'idempotency_key':
|
|
1231
|
+
async 'updateTaskStatus'(_0x21ed09) {
|
|
1232
|
+
const _0x2b811e = _0x3793bc;
|
|
1233
|
+
return _0xd80a40(_0x2b811e(_0x3a34f9._0x5457eb) + _0x197643['agentId'] + '/tasks/update-status', {
|
|
1234
|
+
'body': JSON[_0x2b811e(_0x3a34f9._0x30fc68)]({
|
|
1235
|
+
..._0x21ed09,
|
|
1236
|
+
'idempotency_key': _0x56036f(_0x2b811e(0x296), _0x21ed09)
|
|
1232
1237
|
}),
|
|
1233
|
-
'headers':
|
|
1234
|
-
'method':
|
|
1238
|
+
'headers': _0x5d2e87,
|
|
1239
|
+
'method': 'POST'
|
|
1235
1240
|
});
|
|
1236
1241
|
},
|
|
1237
|
-
async 'uploadFile'(
|
|
1238
|
-
const
|
|
1239
|
-
if (
|
|
1242
|
+
async 'uploadFile'(_0x20b55d) {
|
|
1243
|
+
const _0x4eb5d1 = _0x3793bc, _0x36e66f = await _0x2b9c99(_0x20b55d[_0x4eb5d1(_0x236892._0x2fd404)]);
|
|
1244
|
+
if (_0x36e66f[_0x4eb5d1(_0x236892._0x63117f)])
|
|
1240
1245
|
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1241
|
-
const
|
|
1242
|
-
'body': JSON[
|
|
1243
|
-
'channel':
|
|
1244
|
-
'contentBase64':
|
|
1245
|
-
'contentType':
|
|
1246
|
-
'originalFilename':
|
|
1246
|
+
const _0x185c97 = await _0x372d0f(_0x4eb5d1(0x226) + _0x197643[_0x4eb5d1(_0x236892._0x2907fb)] + '/upload', {
|
|
1247
|
+
'body': JSON[_0x4eb5d1(0x1ba)]({
|
|
1248
|
+
'channel': _0x36e66f[_0x4eb5d1(_0x236892._0x46226b)],
|
|
1249
|
+
'contentBase64': _0x20b55d[_0x4eb5d1(_0x236892._0x131759)],
|
|
1250
|
+
'contentType': _0x20b55d[_0x4eb5d1(0x257)],
|
|
1251
|
+
'originalFilename': _0x20b55d[_0x4eb5d1(0x2ef)]
|
|
1247
1252
|
}),
|
|
1248
|
-
'headers':
|
|
1249
|
-
'method':
|
|
1253
|
+
'headers': _0x5d2e87,
|
|
1254
|
+
'method': 'POST'
|
|
1250
1255
|
});
|
|
1251
1256
|
return {
|
|
1252
|
-
'attachmentId':
|
|
1253
|
-
'filename':
|
|
1254
|
-
'sizeBytes':
|
|
1257
|
+
'attachmentId': _0x185c97[_0x4eb5d1(_0x236892._0xdce5ae)]?.['id'] ?? '',
|
|
1258
|
+
'filename': _0x185c97[_0x4eb5d1(0x28b)]?.[_0x4eb5d1(0x2e6)] ?? _0x20b55d[_0x4eb5d1(_0x236892._0x1e2e70)],
|
|
1259
|
+
'sizeBytes': _0x185c97[_0x4eb5d1(_0x236892._0xdce5ae)]?.['sizeBytes'] ?? 0x0
|
|
1255
1260
|
};
|
|
1256
1261
|
},
|
|
1257
|
-
async 'downloadAttachment'(
|
|
1258
|
-
const
|
|
1259
|
-
'headers':
|
|
1260
|
-
'method':
|
|
1261
|
-
}),
|
|
1262
|
+
async 'downloadAttachment'(_0x538a90) {
|
|
1263
|
+
const _0xbb8f1b = _0x3793bc, _0x3b0281 = await _0x372d0f(_0xbb8f1b(_0x467253._0x44c03c) + _0x538a90, {
|
|
1264
|
+
'headers': _0x5d2e87,
|
|
1265
|
+
'method': _0xbb8f1b(_0x467253._0x1cb2c4)
|
|
1266
|
+
}), _0x468a9e = new AbortController(), _0x17d4b6 = setTimeout(() => _0x468a9e[_0xbb8f1b(0x1c9)](), _0x4147f9);
|
|
1262
1267
|
try {
|
|
1263
|
-
const
|
|
1264
|
-
'headers':
|
|
1265
|
-
'method':
|
|
1266
|
-
'signal':
|
|
1268
|
+
const _0x122eaa = await _0x4c5200(_0xea0e6e + _0xbb8f1b(_0x467253._0x49576f) + _0x538a90 + _0xbb8f1b(_0x467253._0x17f23e), {
|
|
1269
|
+
'headers': _0x5d2e87,
|
|
1270
|
+
'method': _0xbb8f1b(_0x467253._0x381139),
|
|
1271
|
+
'signal': _0x468a9e['signal']
|
|
1267
1272
|
});
|
|
1268
|
-
if (!
|
|
1269
|
-
throw new Error('HTTP\x20' +
|
|
1273
|
+
if (!_0x122eaa['ok'])
|
|
1274
|
+
throw new Error('HTTP\x20' + _0x122eaa[_0xbb8f1b(_0x467253._0x2f2c60)]);
|
|
1270
1275
|
return {
|
|
1271
|
-
'contentType':
|
|
1272
|
-
'data': Buffer[
|
|
1273
|
-
'originalFilename':
|
|
1276
|
+
'contentType': _0x3b0281[_0xbb8f1b(0x28b)]?.[_0xbb8f1b(0x257)] ?? _0x122eaa[_0xbb8f1b(_0x467253._0x48cebf)][_0xbb8f1b(_0x467253._0x4fa3b4)](_0xbb8f1b(0x18a)) ?? _0xbb8f1b(0x1c7),
|
|
1277
|
+
'data': Buffer[_0xbb8f1b(0x24d)](await _0x122eaa['arrayBuffer']()),
|
|
1278
|
+
'originalFilename': _0x3b0281['data']?.[_0xbb8f1b(_0x467253._0x4429b7)]
|
|
1274
1279
|
};
|
|
1275
1280
|
} finally {
|
|
1276
|
-
clearTimeout(
|
|
1281
|
+
clearTimeout(_0x17d4b6);
|
|
1277
1282
|
}
|
|
1278
1283
|
},
|
|
1279
1284
|
async 'listServer'() {
|
|
1280
|
-
return
|
|
1285
|
+
return _0x331252({ 'forceRefresh': !![] });
|
|
1281
1286
|
},
|
|
1282
1287
|
async 'getLatestEventSeq'() {
|
|
1283
|
-
const
|
|
1284
|
-
|
|
1285
|
-
const
|
|
1286
|
-
'headers':
|
|
1287
|
-
'method':
|
|
1288
|
-
}),
|
|
1289
|
-
return typeof
|
|
1288
|
+
const _0x5cd583 = _0x3793bc, _0x3787ce = new URLSearchParams();
|
|
1289
|
+
_0x3787ce['set'](_0x5cd583(0x22d), '0'), _0x3787ce[_0x5cd583(0x223)](_0x5cd583(_0x4b9dab._0x1308b3), '1');
|
|
1290
|
+
const _0xe3ce14 = await _0x372d0f('/internal/agent/' + _0x197643[_0x5cd583(0x2f5)] + _0x5cd583(_0x4b9dab._0x35c5dc) + _0x3787ce[_0x5cd583(_0x4b9dab._0x37fa34)](), {
|
|
1291
|
+
'headers': _0x5d2e87,
|
|
1292
|
+
'method': 'GET'
|
|
1293
|
+
}), _0x417f2b = _0xe3ce14[_0x5cd583(0x269)]?.[_0x5cd583(0x29c)];
|
|
1294
|
+
return typeof _0x417f2b === _0x5cd583(0x1f2) && _0x417f2b > 0x0 ? _0x417f2b : 0x0;
|
|
1290
1295
|
},
|
|
1291
|
-
async 'readHistory'(
|
|
1292
|
-
const
|
|
1293
|
-
return
|
|
1294
|
-
'after':
|
|
1295
|
-
'before':
|
|
1296
|
-
'channelId':
|
|
1297
|
-
'channelTarget':
|
|
1298
|
-
'limit':
|
|
1299
|
-
'threadId':
|
|
1296
|
+
async 'readHistory'(_0x46ce01) {
|
|
1297
|
+
const _0x12339b = _0x3793bc, _0x483d9 = await _0x2b9c99(_0x46ce01[_0x12339b(_0x511f33._0x4bb8bf)]);
|
|
1298
|
+
return _0x44fd12({
|
|
1299
|
+
'after': _0x46ce01['after'],
|
|
1300
|
+
'before': _0x46ce01[_0x12339b(_0x511f33._0x22fe52)],
|
|
1301
|
+
'channelId': _0x483d9['channelId'],
|
|
1302
|
+
'channelTarget': _0x483d9['target'],
|
|
1303
|
+
'limit': _0x46ce01[_0x12339b(_0x511f33._0x477d6b)],
|
|
1304
|
+
'threadId': _0x483d9[_0x12339b(_0x511f33._0x6fe7a7)]
|
|
1300
1305
|
});
|
|
1301
1306
|
},
|
|
1302
|
-
'resolveTarget':
|
|
1307
|
+
'resolveTarget': _0x2b9c99,
|
|
1303
1308
|
async 'checkMessages'() {
|
|
1304
|
-
const
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
_0xb256d7[_0x409a70(0x13c)](_0x409a70(_0x5b753f._0x14987c), String(_0x3fb905));
|
|
1309
|
-
const _0x3e1550 = _0xb256d7[_0x409a70(0x21b)](), _0x5d339e = await _0x2c8a06(_0x409a70(_0x5b753f._0x8beaa9) + _0x976918[_0x409a70(_0x5b753f._0x4ba87d)] + '/receive' + (_0x3e1550 ? '?' + _0x3e1550 : ''), {
|
|
1310
|
-
'headers': _0x53c501,
|
|
1309
|
+
const _0x2fda8c = { _0x154021: 0x25f }, _0x479a45 = _0x3793bc, _0x4dfb9f = new URLSearchParams();
|
|
1310
|
+
_0x4dfb9f[_0x479a45(_0x3878f7._0x50f31a)](_0x479a45(0x22d), String(_0x3f1834));
|
|
1311
|
+
const _0x4425c7 = _0x4dfb9f['toString'](), _0x43ca45 = await _0x372d0f(_0x479a45(0x226) + _0x197643[_0x479a45(_0x3878f7._0x249357)] + '/receive' + (_0x4425c7 ? '?' + _0x4425c7 : ''), {
|
|
1312
|
+
'headers': _0x5d2e87,
|
|
1311
1313
|
'method': 'GET'
|
|
1312
|
-
}),
|
|
1313
|
-
const
|
|
1314
|
-
if (
|
|
1314
|
+
}), _0x290dd0 = _0x43ca45[_0x479a45(_0x3878f7._0x34586c)] ?? [], _0x2c1a3c = _0x43ca45[_0x479a45(_0x3878f7._0x5ad3a2)]?.[_0x479a45(0x1c6)], _0xae8572 = _0x3c19e6 ? _0x290dd0[_0x479a45(_0x3878f7._0x97af5f)](_0x2eb1c3 => {
|
|
1315
|
+
const _0x54f98d = _0x479a45;
|
|
1316
|
+
if (_0x2eb1c3[_0x54f98d(0x23d)] !== _0x54f98d(0x234))
|
|
1315
1317
|
return ![];
|
|
1316
|
-
return
|
|
1317
|
-
}) :
|
|
1318
|
-
let
|
|
1319
|
-
|
|
1320
|
-
|
|
1318
|
+
return _0x4020d7(_0x3c19e6, asRecord(_0x2eb1c3[_0x54f98d(0x25f)]));
|
|
1319
|
+
}) : _0x290dd0, _0x6eef14 = _0x2c1a3c !== void 0x0 ? _0x3c19e6 ? Math[_0x479a45(_0x3878f7._0x33cca8)](_0x3f1834, _0xae8572[_0x479a45(_0x3878f7._0x4b619a)] > 0x0 ? _0xae8572[_0xae8572[_0x479a45(0x1de)] - 0x1][_0x479a45(_0x3878f7._0x5730d3)] : _0x3f1834) : Math[_0x479a45(0x2c6)](_0x3f1834, _0x2c1a3c) : _0xae8572[_0x479a45(0x1de)] > 0x0 ? Math[_0x479a45(0x2c6)](_0x3f1834, _0xae8572[_0xae8572[_0x479a45(_0x3878f7._0x261ef1)] - 0x1][_0x479a45(_0x3878f7._0x2a0a14)]) : _0x3f1834, _0x781d72 = (_0x3c19e6 ? _0xae8572 : _0x290dd0)[_0x479a45(0x27b)](_0x188345 => _0x188345['aggregateType'] === _0x479a45(0x234)), _0x111984 = _0x3c19e6 === void 0x0 && _0x414a64;
|
|
1320
|
+
let _0x50a2d8 = await _0x331252(), _0x25e943 = new Map(_0x50a2d8[_0x479a45(0x2ab)]['map'](_0x3c2f58 => [
|
|
1321
|
+
_0x3c2f58['id'],
|
|
1322
|
+
_0x3c2f58
|
|
1321
1323
|
]));
|
|
1322
|
-
const
|
|
1323
|
-
const
|
|
1324
|
-
return Boolean(
|
|
1324
|
+
const _0x439e63 = _0x781d72[_0x479a45(_0x3878f7._0x4ddc0d)](_0x24b44b => {
|
|
1325
|
+
const _0x4241b3 = _0x479a45, _0x515aa5 = asRecord(_0x24b44b[_0x4241b3(_0x2fda8c._0x154021)]), _0x5aaa93 = typeof _0x515aa5?.[_0x4241b3(0x1a5)] === 'string' ? _0x515aa5['channelId'] : '';
|
|
1326
|
+
return Boolean(_0x5aaa93) && !_0x25e943['has'](_0x5aaa93);
|
|
1325
1327
|
});
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1328
|
+
_0x439e63 && (_0x50a2d8 = await _0x331252({ 'forceRefresh': !![] }), _0x25e943 = new Map(_0x50a2d8[_0x479a45(0x2ab)]['map'](_0x495d42 => [
|
|
1329
|
+
_0x495d42['id'],
|
|
1330
|
+
_0x495d42
|
|
1329
1331
|
])));
|
|
1330
|
-
const
|
|
1331
|
-
for (const
|
|
1332
|
-
const
|
|
1333
|
-
if (!
|
|
1332
|
+
const _0x342985 = new Map();
|
|
1333
|
+
for (const _0x5b5c1f of _0x781d72) {
|
|
1334
|
+
const _0x5760d0 = asRecord(_0x5b5c1f['payloadJson']), _0x1ee4cd = typeof _0x5760d0[_0x479a45(0x1a5)] === 'string' ? _0x5760d0[_0x479a45(0x1a5)] : '';
|
|
1335
|
+
if (!_0x1ee4cd)
|
|
1334
1336
|
continue;
|
|
1335
|
-
const
|
|
1337
|
+
const _0x34f5d6 = typeof _0x5760d0['threadId'] === _0x479a45(0x24b) ? _0x5760d0['threadId'] : void 0x0, _0x2cdcb5 = typeof _0x5760d0[_0x479a45(0x1ac)] === 'string' ? _0x5760d0[_0x479a45(0x1ac)] : void 0x0, _0x424105 = typeof _0x5760d0[_0x479a45(_0x3878f7._0x1f7599)] === _0x479a45(_0x3878f7._0x51e308) && Number[_0x479a45(0x291)](_0x5760d0['threadNumber']) ? _0x5760d0[_0x479a45(0x26f)] : void 0x0, _0x1f5302 = Boolean(_0x34f5d6 && (!_0x2cdcb5 || _0x5b5c1f[_0x479a45(0x20c)] !== _0x2cdcb5)), _0x3dcfe6 = _0x1f5302 ? _0x1ee4cd + ':' + _0x34f5d6 : _0x1ee4cd, _0x229ea2 = _0x342985['get'](_0x3dcfe6) ?? {
|
|
1336
1338
|
'aggregateIds': [],
|
|
1337
|
-
'channelId':
|
|
1339
|
+
'channelId': _0x1ee4cd,
|
|
1338
1340
|
'entries': new Map(),
|
|
1339
|
-
'isThreadReply':
|
|
1340
|
-
'rootMessageId':
|
|
1341
|
-
'threadNumber':
|
|
1342
|
-
'threadId':
|
|
1341
|
+
'isThreadReply': _0x1f5302,
|
|
1342
|
+
'rootMessageId': _0x2cdcb5,
|
|
1343
|
+
'threadNumber': _0x424105,
|
|
1344
|
+
'threadId': _0x1f5302 ? _0x34f5d6 : void 0x0
|
|
1343
1345
|
};
|
|
1344
|
-
|
|
1345
|
-
'payloadJson':
|
|
1346
|
-
'seq':
|
|
1347
|
-
}),
|
|
1346
|
+
_0x229ea2[_0x479a45(0x26f)] == null && _0x424105 != null && (_0x229ea2[_0x479a45(_0x3878f7._0x1f7599)] = _0x424105), !_0x229ea2[_0x479a45(_0x3878f7._0x150f43)] && _0x2cdcb5 && (_0x229ea2['rootMessageId'] = _0x2cdcb5), _0x229ea2[_0x479a45(_0x3878f7._0x271177)]['push'](_0x5b5c1f[_0x479a45(0x20c)]), _0x229ea2[_0x479a45(_0x3878f7._0x405578)][_0x479a45(_0x3878f7._0x1a0639)](_0x5b5c1f['aggregateId'], {
|
|
1347
|
+
'payloadJson': _0x5b5c1f[_0x479a45(0x25f)],
|
|
1348
|
+
'seq': _0x5b5c1f[_0x479a45(0x23e)]
|
|
1349
|
+
}), _0x342985['set'](_0x3dcfe6, _0x229ea2);
|
|
1348
1350
|
}
|
|
1349
|
-
const
|
|
1350
|
-
for (const
|
|
1351
|
+
const _0x456c39 = [];
|
|
1352
|
+
for (const _0x5d751c of _0x342985[_0x479a45(_0x3878f7._0x27cd82)]()) {
|
|
1351
1353
|
const {
|
|
1352
|
-
channelId:
|
|
1353
|
-
threadId:
|
|
1354
|
-
rootMessageId:
|
|
1355
|
-
threadNumber:
|
|
1356
|
-
aggregateIds:
|
|
1357
|
-
isThreadReply:
|
|
1358
|
-
entries:
|
|
1359
|
-
} =
|
|
1360
|
-
'channelTarget':
|
|
1361
|
-
'rootMessageId':
|
|
1362
|
-
'threadId':
|
|
1363
|
-
'threadNumber':
|
|
1364
|
-
},
|
|
1365
|
-
'channelId':
|
|
1366
|
-
'channelTarget':
|
|
1367
|
-
'limit': Math[
|
|
1368
|
-
'threadId':
|
|
1369
|
-
}),
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
])),
|
|
1373
|
-
for (const
|
|
1374
|
-
if (!
|
|
1354
|
+
channelId: _0x1b6da5,
|
|
1355
|
+
threadId: _0x45f709,
|
|
1356
|
+
rootMessageId: _0x333e54,
|
|
1357
|
+
threadNumber: _0x4d04f8,
|
|
1358
|
+
aggregateIds: _0x416495,
|
|
1359
|
+
isThreadReply: _0x11a514,
|
|
1360
|
+
entries: _0x3de9af
|
|
1361
|
+
} = _0x5d751c, _0x305620 = _0x25e943['get'](_0x1b6da5), _0x52734b = _0x305620?.[_0x479a45(_0x3878f7._0x32fb4b)] ?? _0x1b6da5, _0x19d9dd = _0x305620?.[_0x479a45(0x2aa)] === 'dm' ? _0x479a45(_0x3878f7._0x3f457e) + _0x52734b : '#' + _0x52734b, _0x36eb04 = {
|
|
1362
|
+
'channelTarget': _0x19d9dd,
|
|
1363
|
+
'rootMessageId': _0x333e54,
|
|
1364
|
+
'threadId': _0x45f709,
|
|
1365
|
+
'threadNumber': _0x4d04f8
|
|
1366
|
+
}, _0x4d53e2 = await _0x44fd12({
|
|
1367
|
+
'channelId': _0x1b6da5,
|
|
1368
|
+
'channelTarget': _0x19d9dd,
|
|
1369
|
+
'limit': Math[_0x479a45(0x2c6)](_0x416495[_0x479a45(0x1de)], 0x32),
|
|
1370
|
+
'threadId': _0x45f709
|
|
1371
|
+
}), _0x16b171 = new Map(_0x4d53e2['messages'][_0x479a45(_0x3878f7._0x567c1a)](_0xa67492 => [
|
|
1372
|
+
_0xa67492[_0x479a45(0x244)],
|
|
1373
|
+
_0xa67492
|
|
1374
|
+
])), _0x2a3256 = _0x45f709 ? _0x4115cc(_0x36eb04) : _0x19d9dd, _0x4cd834 = _0x3c19e6 ? _0x11a514 && _0x5bc090(_0x3c19e6, _0x36eb04) : !![], _0xebfd10 = _0x11a514 ? _0x4cd834 && _0x3c19e6 ? _0x3c19e6 : _0x2a3256 : _0x19d9dd;
|
|
1375
|
+
for (const _0x59aa4d of _0x416495) {
|
|
1376
|
+
if (!_0x4cd834)
|
|
1375
1377
|
continue;
|
|
1376
|
-
const
|
|
1377
|
-
if (
|
|
1378
|
+
const _0x488ffa = _0x3de9af[_0x479a45(0x274)](_0x59aa4d), _0x17f45b = _0x488ffa ? asRecord(_0x488ffa[_0x479a45(0x25f)]) : void 0x0, _0x5ad34f = _0x17f45b?.['taskDeliveryMode'] === _0x479a45(0x1d8);
|
|
1379
|
+
if (_0x111984 && _0x5ad34f)
|
|
1378
1380
|
continue;
|
|
1379
|
-
const
|
|
1380
|
-
if (
|
|
1381
|
-
|
|
1382
|
-
'attachments':
|
|
1383
|
-
'content':
|
|
1384
|
-
'createdAt':
|
|
1385
|
-
...
|
|
1386
|
-
'messageId':
|
|
1387
|
-
'senderName':
|
|
1388
|
-
'senderType':
|
|
1389
|
-
'target':
|
|
1390
|
-
...
|
|
1381
|
+
const _0x360e90 = _0x16b171[_0x479a45(0x274)](_0x59aa4d);
|
|
1382
|
+
if (_0x360e90) {
|
|
1383
|
+
_0x456c39[_0x479a45(0x1eb)]({
|
|
1384
|
+
'attachments': _0x360e90[_0x479a45(0x20a)],
|
|
1385
|
+
'content': _0x360e90[_0x479a45(_0x3878f7._0x394e3d)],
|
|
1386
|
+
'createdAt': _0x360e90[_0x479a45(0x2bb)],
|
|
1387
|
+
..._0x360e90['kind'] ? { 'kind': _0x360e90['kind'] } : {},
|
|
1388
|
+
'messageId': _0x360e90['messageId'],
|
|
1389
|
+
'senderName': _0x360e90[_0x479a45(0x1e1)],
|
|
1390
|
+
'senderType': _0x360e90[_0x479a45(0x283)],
|
|
1391
|
+
'target': _0xebfd10,
|
|
1392
|
+
..._0x5ad34f ? { 'targetedTask': !![] } : {}
|
|
1391
1393
|
});
|
|
1392
1394
|
continue;
|
|
1393
1395
|
}
|
|
1394
|
-
if (
|
|
1395
|
-
const
|
|
1396
|
-
|
|
1396
|
+
if (_0x488ffa) {
|
|
1397
|
+
const _0x428a9c = typeof _0x17f45b?.['senderParticipantId'] === _0x479a45(_0x3878f7._0x4e3572) ? _0x17f45b[_0x479a45(0x249)] : '', _0x52d458 = typeof _0x17f45b?.['bodyMarkdown'] === _0x479a45(0x24b) ? _0x17f45b['bodyMarkdown'] : '', _0x588485 = typeof _0x17f45b?.[_0x479a45(0x2aa)] === _0x479a45(0x24b) && _0x17f45b['kind'] !== _0x479a45(0x302) ? _0x17f45b['kind'] : void 0x0;
|
|
1398
|
+
_0x428a9c && _0x52d458 && _0x456c39[_0x479a45(0x1eb)]({
|
|
1397
1399
|
'attachments': [],
|
|
1398
|
-
'content':
|
|
1399
|
-
'createdAt': new Date()[
|
|
1400
|
-
...
|
|
1401
|
-
'messageId':
|
|
1402
|
-
'senderName':
|
|
1403
|
-
'senderType':
|
|
1404
|
-
'target':
|
|
1405
|
-
...
|
|
1400
|
+
'content': _0x52d458,
|
|
1401
|
+
'createdAt': new Date()[_0x479a45(0x199)](),
|
|
1402
|
+
..._0x588485 ? { 'kind': _0x588485 } : {},
|
|
1403
|
+
'messageId': _0x59aa4d,
|
|
1404
|
+
'senderName': _0xba39f1(_0x428a9c, _0x50a2d8),
|
|
1405
|
+
'senderType': _0x45d3d3(_0x428a9c, _0x50a2d8),
|
|
1406
|
+
'target': _0xebfd10,
|
|
1407
|
+
..._0x5ad34f ? { 'targetedTask': !![] } : {}
|
|
1406
1408
|
});
|
|
1407
1409
|
}
|
|
1408
1410
|
}
|
|
1409
1411
|
}
|
|
1410
|
-
if (
|
|
1411
|
-
if (
|
|
1412
|
-
await
|
|
1412
|
+
if (_0x6eef14 > 0x0) {
|
|
1413
|
+
if (_0x30023b)
|
|
1414
|
+
await _0x5705da(_0x6eef14);
|
|
1413
1415
|
else
|
|
1414
|
-
|
|
1416
|
+
_0x576566 && await _0x21c1a9(_0x6eef14);
|
|
1415
1417
|
}
|
|
1416
|
-
return
|
|
1418
|
+
return _0x6eef14 > _0x3f1834 && (_0x3f1834 = _0x6eef14), { 'messages': _0x3c19e6 ? _0x456c39 : _0x111984 ? _0x456c39[_0x479a45(0x27b)](_0x5c0b72 => _0x5c0b72[_0x479a45(0x27d)] !== !![]) : _0x456c39 };
|
|
1417
1419
|
}
|
|
1418
1420
|
};
|
|
1419
1421
|
}
|
|
1420
|
-
function toLocalTime(
|
|
1421
|
-
const
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1422
|
+
function toLocalTime(_0x786f80) {
|
|
1423
|
+
const _0x5735f3 = {
|
|
1424
|
+
_0x742c32: 0x23b,
|
|
1425
|
+
_0x55318c: 0x1f8,
|
|
1426
|
+
_0xb52c5d: 0x2e4
|
|
1427
|
+
}, _0x2789b7 = _0x2869e3, _0x22c52d = new Date(_0x786f80);
|
|
1428
|
+
if (Number['isNaN'](_0x22c52d['getTime']()))
|
|
1429
|
+
return _0x786f80;
|
|
1430
|
+
const _0x33e05f = _0x35bae8 => String(_0x35bae8)[_0x2789b7(0x2d6)](0x2, '0');
|
|
1431
|
+
return _0x22c52d[_0x2789b7(0x25a)]() + '-' + _0x33e05f(_0x22c52d[_0x2789b7(_0x5735f3._0x742c32)]() + 0x1) + '-' + _0x33e05f(_0x22c52d[_0x2789b7(_0x5735f3._0x55318c)]()) + '\x20' + _0x33e05f(_0x22c52d['getHours']()) + ':' + _0x33e05f(_0x22c52d[_0x2789b7(_0x5735f3._0xb52c5d)]()) + ':' + _0x33e05f(_0x22c52d[_0x2789b7(0x239)]());
|
|
1429
1432
|
}
|
|
1430
|
-
function formatAttachmentSuffix(
|
|
1431
|
-
const
|
|
1432
|
-
|
|
1433
|
+
function formatAttachmentSuffix(_0x89c2c4) {
|
|
1434
|
+
const _0x1bf2e2 = {
|
|
1435
|
+
_0x102c1a: 0x1de,
|
|
1436
|
+
_0x325616: 0x2b0
|
|
1437
|
+
}, _0x221382 = _0x2869e3;
|
|
1438
|
+
if (!_0x89c2c4 || _0x89c2c4['length'] === 0x0)
|
|
1433
1439
|
return '';
|
|
1434
|
-
return '\x20[' +
|
|
1440
|
+
return '\x20[' + _0x89c2c4[_0x221382(_0x1bf2e2._0x102c1a)] + _0x221382(0x203) + (_0x89c2c4[_0x221382(0x1de)] > 0x1 ? 's' : '') + ':\x20' + _0x89c2c4[_0x221382(_0x1bf2e2._0x325616)](_0x139ede => _0x139ede[_0x221382(0x2ef)] + _0x221382(0x1cb) + _0x139ede['id'] + ')')[_0x221382(0x2b5)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1435
1441
|
}
|
|
1436
|
-
function formatCheckMessages(
|
|
1437
|
-
const
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1442
|
+
function formatCheckMessages(_0x143d77) {
|
|
1443
|
+
const _0x1876e8 = {
|
|
1444
|
+
_0x1f2907: 0x1de,
|
|
1445
|
+
_0x4a8a22: 0x2b0
|
|
1446
|
+
}, _0x4772c0 = {
|
|
1447
|
+
_0x4e5359: 0x283,
|
|
1448
|
+
_0x36758c: 0x1f3,
|
|
1449
|
+
_0x5054f8: 0x1d0,
|
|
1450
|
+
_0x785fd: 0x2aa,
|
|
1451
|
+
_0x5a000f: 0x285,
|
|
1452
|
+
_0x42fda2: 0x256,
|
|
1453
|
+
_0x42cf4e: 0x2e3,
|
|
1454
|
+
_0x96bd3c: 0x268,
|
|
1455
|
+
_0x261bf8: 0x20a
|
|
1456
|
+
}, _0x714e41 = _0x2869e3;
|
|
1457
|
+
if (_0x143d77[_0x714e41(_0x1876e8._0x1f2907)] === 0x0)
|
|
1458
|
+
return _0x714e41(0x1a0);
|
|
1459
|
+
return _0x143d77[_0x714e41(_0x1876e8._0x4a8a22)](_0x3be252 => {
|
|
1460
|
+
const _0x417c01 = _0x714e41, _0x4d8d26 = _0x3be252[_0x417c01(_0x4772c0._0x4e5359)] === _0x417c01(_0x4772c0._0x36758c) ? _0x417c01(_0x4772c0._0x5054f8) : '', _0x180627 = _0x3be252[_0x417c01(_0x4772c0._0x785fd)] && _0x3be252[_0x417c01(_0x4772c0._0x785fd)] !== 'chat' ? '\x20kind=' + _0x3be252['kind'] : '';
|
|
1461
|
+
return _0x417c01(0x220) + _0x3be252[_0x417c01(_0x4772c0._0x5a000f)] + _0x417c01(0x186) + _0x3be252[_0x417c01(0x244)][_0x417c01(0x231)](0x0, 0x8) + _0x417c01(_0x4772c0._0x42fda2) + toLocalTime(_0x3be252[_0x417c01(0x2bb)]) + _0x4d8d26 + _0x180627 + _0x417c01(_0x4772c0._0x42cf4e) + _0x3be252['senderName'] + ':\x20' + _0x3be252[_0x417c01(_0x4772c0._0x96bd3c)] + formatAttachmentSuffix(_0x3be252[_0x417c01(_0x4772c0._0x261bf8)]);
|
|
1462
|
+
})[_0x714e41(0x2b5)]('\x0a');
|
|
1448
1463
|
}
|
|
1449
|
-
function formatHistory(
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1464
|
+
function formatHistory(_0x575b54) {
|
|
1465
|
+
const _0x5ddb40 = {
|
|
1466
|
+
_0x913ae3: 0x250,
|
|
1467
|
+
_0x3b4855: 0x185,
|
|
1468
|
+
_0x1e76e0: 0x2b0,
|
|
1469
|
+
_0x2e6a48: 0x2b5,
|
|
1470
|
+
_0x1fbf8b: 0x209,
|
|
1471
|
+
_0x122d23: 0x178,
|
|
1472
|
+
_0x21b6cc: 0x250,
|
|
1473
|
+
_0x3be653: 0x209,
|
|
1474
|
+
_0x483a2f: 0x2ae,
|
|
1475
|
+
_0x4b37f5: 0x250,
|
|
1476
|
+
_0xea2382: 0x1de
|
|
1477
|
+
}, _0xd107dd = {
|
|
1478
|
+
_0x38a432: 0x283,
|
|
1479
|
+
_0x2f9695: 0x2aa,
|
|
1480
|
+
_0x5e4086: 0x302,
|
|
1481
|
+
_0x5275eb: 0x2aa,
|
|
1482
|
+
_0xf1b7b7: 0x244,
|
|
1483
|
+
_0x259f2d: 0x256,
|
|
1484
|
+
_0x5048b0: 0x2bb,
|
|
1485
|
+
_0x4a728f: 0x1e1,
|
|
1486
|
+
_0x21eaa1: 0x20a
|
|
1487
|
+
}, _0x4aa0a9 = _0x2869e3;
|
|
1488
|
+
if (_0x575b54[_0x4aa0a9(_0x5ddb40._0x913ae3)]['length'] === 0x0)
|
|
1489
|
+
return '##\x20Message\x20History\x20for\x20' + _0x575b54[_0x4aa0a9(0x188)] + _0x4aa0a9(_0x5ddb40._0x3b4855);
|
|
1490
|
+
const _0x1184af = _0x575b54['messages'][_0x4aa0a9(_0x5ddb40._0x1e76e0)](_0x29d76b => {
|
|
1491
|
+
const _0x34e8bf = _0x4aa0a9, _0x31c29b = _0x29d76b[_0x34e8bf(_0xd107dd._0x38a432)] === 'agent' ? _0x34e8bf(0x1d0) : '', _0x11fa3d = _0x29d76b['kind'] && _0x29d76b[_0x34e8bf(_0xd107dd._0x2f9695)] !== _0x34e8bf(_0xd107dd._0x5e4086) ? _0x34e8bf(0x27f) + _0x29d76b[_0x34e8bf(_0xd107dd._0x5275eb)] : '';
|
|
1492
|
+
return _0x34e8bf(0x17d) + _0x29d76b[_0x34e8bf(0x23e)] + _0x34e8bf(0x186) + _0x29d76b[_0x34e8bf(_0xd107dd._0xf1b7b7)] + _0x34e8bf(_0xd107dd._0x259f2d) + toLocalTime(_0x29d76b[_0x34e8bf(_0xd107dd._0x5048b0)]) + _0x31c29b + _0x11fa3d + _0x34e8bf(0x2e3) + _0x29d76b[_0x34e8bf(_0xd107dd._0x4a728f)] + ':\x20' + _0x29d76b[_0x34e8bf(0x268)] + formatAttachmentSuffix(_0x29d76b[_0x34e8bf(_0xd107dd._0x21eaa1)]);
|
|
1493
|
+
})[_0x4aa0a9(_0x5ddb40._0x2e6a48)]('\x0a'), _0x24159e = _0x575b54[_0x4aa0a9(0x204)] && _0x575b54[_0x4aa0a9(_0x5ddb40._0x1fbf8b)] ? _0x4aa0a9(_0x5ddb40._0x122d23) + _0x575b54[_0x4aa0a9(_0x5ddb40._0x21b6cc)]['length'] + _0x4aa0a9(0x259) + _0x575b54[_0x4aa0a9(_0x5ddb40._0x3be653)] + _0x4aa0a9(_0x5ddb40._0x483a2f) : '';
|
|
1494
|
+
return _0x4aa0a9(0x1e0) + _0x575b54['channel'] + '\x20(' + _0x575b54[_0x4aa0a9(_0x5ddb40._0x4b37f5)][_0x4aa0a9(_0x5ddb40._0xea2382)] + '\x20messages)\x0a\x0a' + _0x1184af + _0x24159e;
|
|
1469
1495
|
}
|
|
1470
|
-
function formatServerDirectory(
|
|
1471
|
-
const
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1496
|
+
function formatServerDirectory(_0x551f55) {
|
|
1497
|
+
const _0x1087d9 = {
|
|
1498
|
+
_0x36cf87: 0x2ab,
|
|
1499
|
+
_0x3ee647: 0x2ac,
|
|
1500
|
+
_0x3a89a6: 0x2ac,
|
|
1501
|
+
_0x541c62: 0x17c,
|
|
1502
|
+
_0x2351d9: 0x2b0,
|
|
1503
|
+
_0x4ed322: 0x2b5,
|
|
1504
|
+
_0x457121: 0x1fe,
|
|
1505
|
+
_0x317bbf: 0x2cb,
|
|
1506
|
+
_0x579951: 0x1fa,
|
|
1507
|
+
_0x1cd793: 0x2b5
|
|
1508
|
+
}, _0x15ae96 = _0x2869e3, _0x144b55 = _0x551f55[_0x15ae96(_0x1087d9._0x36cf87)][_0x15ae96(0x1de)] > 0x0 ? _0x551f55[_0x15ae96(0x2ab)][_0x15ae96(0x2b0)](_0x410fa8 => _0x410fa8['description'] ? _0x15ae96(0x212) + _0x410fa8['name'] + _0x15ae96(0x2ec) + _0x410fa8[_0x15ae96(0x190)] : _0x15ae96(0x212) + _0x410fa8['name'])['join']('\x0a') : _0x15ae96(0x2db), _0x29c670 = _0x551f55[_0x15ae96(_0x1087d9._0x3ee647)][_0x15ae96(0x1de)] > 0x0 ? _0x551f55[_0x15ae96(_0x1087d9._0x3a89a6)][_0x15ae96(0x2b0)](_0x5cb8e9 => _0x15ae96(0x299) + _0x5cb8e9['name'])[_0x15ae96(0x2b5)]('\x0a') : '(none)', _0x4cb1bc = _0x551f55[_0x15ae96(_0x1087d9._0x541c62)][_0x15ae96(0x1de)] > 0x0 ? _0x551f55[_0x15ae96(0x17c)][_0x15ae96(_0x1087d9._0x2351d9)](_0xac2f18 => _0x15ae96(0x299) + _0xac2f18[_0x15ae96(0x2c3)])[_0x15ae96(_0x1087d9._0x4ed322)]('\x0a') : _0x15ae96(0x2db);
|
|
1479
1509
|
return [
|
|
1480
|
-
|
|
1510
|
+
_0x15ae96(_0x1087d9._0x457121) + _0x551f55[_0x15ae96(_0x1087d9._0x317bbf)],
|
|
1481
1511
|
'',
|
|
1482
|
-
|
|
1483
|
-
|
|
1512
|
+
_0x15ae96(_0x1087d9._0x579951),
|
|
1513
|
+
_0x144b55,
|
|
1484
1514
|
'',
|
|
1485
|
-
|
|
1486
|
-
|
|
1515
|
+
'###\x20Agents',
|
|
1516
|
+
_0x29c670,
|
|
1487
1517
|
'',
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
][
|
|
1518
|
+
'###\x20Humans',
|
|
1519
|
+
_0x4cb1bc
|
|
1520
|
+
][_0x15ae96(_0x1087d9._0x1cd793)]('\x0a');
|
|
1491
1521
|
}
|
|
1492
|
-
function formatUploadResult(
|
|
1493
|
-
const
|
|
1494
|
-
|
|
1495
|
-
_0x5a08b8: 0x1b7,
|
|
1496
|
-
_0x2e977f: 0x148
|
|
1497
|
-
}, _0x2fa946 = _0x10d6b5;
|
|
1498
|
-
return 'File\x20uploaded:\x20' + _0x160e45[_0x2fa946(_0x3ad140._0x58ad2f)] + '\x20(' + (_0x160e45['sizeBytes'] / 0x400)[_0x2fa946(_0x3ad140._0x5a08b8)](0x1) + _0x2fa946(0x14f) + _0x160e45[_0x2fa946(0x183)] + _0x2fa946(_0x3ad140._0x2e977f);
|
|
1522
|
+
function formatUploadResult(_0x17d411) {
|
|
1523
|
+
const _0xd537c4 = { _0x2a4abd: 0x22f }, _0x137bf5 = _0x2869e3;
|
|
1524
|
+
return _0x137bf5(0x290) + _0x17d411['filename'] + '\x20(' + (_0x17d411[_0x137bf5(0x196)] / 0x400)[_0x137bf5(_0xd537c4._0x2a4abd)](0x1) + _0x137bf5(0x2f1) + _0x17d411[_0x137bf5(0x227)] + _0x137bf5(0x1d4);
|
|
1499
1525
|
}
|
|
1500
|
-
function formatViewFileResult(
|
|
1501
|
-
const
|
|
1502
|
-
return
|
|
1526
|
+
function formatViewFileResult(_0x119f32, _0x15e4df) {
|
|
1527
|
+
const _0x3fd338 = { _0xc3d485: 0x183 }, _0x2a2e6c = _0x2869e3;
|
|
1528
|
+
return _0x15e4df ? _0x2a2e6c(_0x3fd338._0xc3d485) + _0x119f32 : _0x2a2e6c(0x224) + _0x119f32;
|
|
1503
1529
|
}
|
|
1504
|
-
function formatTaskList(
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
},
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
return _0x5129ad + '\x20[' + _0x24fa97[_0x2a1976(_0x1e4307._0x3f2cad)] + ']\x20' + _0x24fa97[_0x2a1976(_0x1e4307._0x1eb23e)] + _0x1f7b8a + _0x1ea21e + _0x4775c5;
|
|
1525
|
-
})[_0x28f071(_0x4768d7._0x2b6db1)]('\x0a');
|
|
1530
|
+
function formatTaskList(_0x29515d, _0x516677) {
|
|
1531
|
+
const _0x14cce7 = {
|
|
1532
|
+
_0x5a04a6: 0x2b0,
|
|
1533
|
+
_0x47ab14: 0x2b5
|
|
1534
|
+
}, _0x1e0d27 = {
|
|
1535
|
+
_0x15d245: 0x21c,
|
|
1536
|
+
_0x398d8f: 0x2ce,
|
|
1537
|
+
_0x39730d: 0x244,
|
|
1538
|
+
_0x1e8bd5: 0x216,
|
|
1539
|
+
_0x2333b6: 0x2ce,
|
|
1540
|
+
_0x5c58d6: 0x1da,
|
|
1541
|
+
_0x1e09dd: 0x216,
|
|
1542
|
+
_0x10dc13: 0x197
|
|
1543
|
+
}, _0x15dc2b = _0x2869e3;
|
|
1544
|
+
if (_0x29515d[_0x15dc2b(0x1de)] === 0x0)
|
|
1545
|
+
return _0x15dc2b(0x2be);
|
|
1546
|
+
return _0x29515d[_0x15dc2b(_0x14cce7._0x5a04a6)](_0x39d14 => {
|
|
1547
|
+
const _0x19d025 = _0x15dc2b, _0x3ebc36 = _0x39d14[_0x19d025(0x216)] == null ? _0x19d025(_0x1e0d27._0x15d245) : _0x39d14[_0x19d025(_0x1e0d27._0x398d8f)] != null ? '#' + _0x39d14['taskNumber'] + '.' + _0x39d14[_0x19d025(0x2ce)] : '#' + _0x39d14['taskNumber'], _0x21c6d0 = _0x39d14[_0x19d025(_0x1e0d27._0x39730d)] ? '\x20message=' + _0x39d14[_0x19d025(_0x1e0d27._0x39730d)] : '', _0x2c09f4 = _0x516677 && _0x39d14[_0x19d025(_0x1e0d27._0x1e8bd5)] != null && !_0x39d14[_0x19d025(_0x1e0d27._0x2333b6)] && _0x516677[_0x19d025(_0x1e0d27._0x5c58d6)](_0x39d14[_0x19d025(_0x1e0d27._0x1e09dd)]) ? _0x19d025(0x26c) : '', _0x20c6fb = _0x39d14[_0x19d025(_0x1e0d27._0x10dc13)] != null && _0x39d14[_0x19d025(0x197)] > 0x0 ? '\x20(' + (_0x39d14[_0x19d025(0x1f9)] ?? 0x0) + '/' + _0x39d14['childrenTotal'] + '\x20done)' : '';
|
|
1548
|
+
return _0x3ebc36 + '\x20[' + _0x39d14['status'] + ']\x20' + _0x39d14['title'] + _0x20c6fb + _0x21c6d0 + _0x2c09f4;
|
|
1549
|
+
})[_0x15dc2b(_0x14cce7._0x47ab14)]('\x0a');
|
|
1526
1550
|
}
|
|
1527
|
-
function formatCreatedTasks(
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
})['join']('\x0a');
|
|
1551
|
+
function formatCreatedTasks(_0x9c4e41) {
|
|
1552
|
+
const _0x55474d = {
|
|
1553
|
+
_0x3f5d6a: 0x2f0,
|
|
1554
|
+
_0x493bc3: 0x2b5
|
|
1555
|
+
}, _0x459ac0 = {
|
|
1556
|
+
_0x376a76: 0x216,
|
|
1557
|
+
_0x45286b: 0x21c
|
|
1558
|
+
}, _0x526515 = _0x2869e3;
|
|
1559
|
+
if (_0x9c4e41['length'] === 0x0)
|
|
1560
|
+
return _0x526515(_0x55474d._0x3f5d6a);
|
|
1561
|
+
return _0x9c4e41[_0x526515(0x2b0)](_0x43c135 => {
|
|
1562
|
+
const _0x3854d2 = _0x526515, _0x3253d7 = _0x43c135[_0x3854d2(_0x459ac0._0x376a76)] == null ? _0x3854d2(_0x459ac0._0x45286b) : _0x43c135[_0x3854d2(0x2ce)] != null ? '#' + _0x43c135[_0x3854d2(0x216)] + '.' + _0x43c135['subtaskNumber'] : '#' + _0x43c135[_0x3854d2(0x216)], _0xf7d997 = _0x43c135['messageId'] ? _0x3854d2(0x1ab) + _0x43c135[_0x3854d2(0x244)] : '';
|
|
1563
|
+
return _0x3253d7 + '\x20' + _0x43c135[_0x3854d2(0x2e5)] + _0xf7d997;
|
|
1564
|
+
})[_0x526515(_0x55474d._0x493bc3)]('\x0a');
|
|
1542
1565
|
}
|
|
1543
|
-
function formatClaimTaskLabel(
|
|
1544
|
-
const
|
|
1545
|
-
if (
|
|
1546
|
-
return
|
|
1547
|
-
return
|
|
1566
|
+
function formatClaimTaskLabel(_0x159e43, _0x4e59a4) {
|
|
1567
|
+
const _0x23cb47 = _0x2869e3;
|
|
1568
|
+
if (_0x159e43 == null)
|
|
1569
|
+
return _0x23cb47(0x21c);
|
|
1570
|
+
return _0x4e59a4 != null ? '#' + _0x159e43 + '.' + _0x4e59a4 : '#' + _0x159e43;
|
|
1548
1571
|
}
|
|
1549
|
-
function formatClaimTaskResults(
|
|
1550
|
-
const
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1572
|
+
function formatClaimTaskResults(_0x247d02) {
|
|
1573
|
+
const _0xe61263 = {
|
|
1574
|
+
_0xdc6ad1: 0x1de,
|
|
1575
|
+
_0x17a8b4: 0x2b0
|
|
1576
|
+
}, _0x27e519 = {
|
|
1577
|
+
_0x416c49: 0x1b9,
|
|
1578
|
+
_0x516309: 0x244,
|
|
1579
|
+
_0x1b0294: 0x2dd,
|
|
1580
|
+
_0x39a2be: 0x276,
|
|
1581
|
+
_0x18d92e: 0x25b,
|
|
1582
|
+
_0x18109e: 0x298,
|
|
1583
|
+
_0x5a887e: 0x1e4,
|
|
1584
|
+
_0x77e4e3: 0x266,
|
|
1585
|
+
_0x5e4e91: 0x25c,
|
|
1586
|
+
_0x5be9ca: 0x20d,
|
|
1587
|
+
_0x3ca800: 0x282
|
|
1588
|
+
}, _0x19b06f = _0x2869e3;
|
|
1589
|
+
if (_0x247d02[_0x19b06f(_0xe61263._0xdc6ad1)] === 0x0)
|
|
1590
|
+
return 'No\x20tasks\x20claimed.';
|
|
1591
|
+
return _0x247d02[_0x19b06f(_0xe61263._0x17a8b4)](_0x433712 => {
|
|
1592
|
+
const _0x29a5ab = _0x19b06f;
|
|
1593
|
+
if (_0x433712[_0x29a5ab(_0x27e519._0x416c49)]) {
|
|
1594
|
+
const _0x483172 = formatClaimTaskLabel(_0x433712[_0x29a5ab(0x216)], _0x433712[_0x29a5ab(0x2ce)]), _0xcabde = _0x433712[_0x29a5ab(_0x27e519._0x516309)] ? _0x29a5ab(0x1ab) + _0x433712[_0x29a5ab(_0x27e519._0x516309)] : '';
|
|
1595
|
+
if (_0x433712[_0x29a5ab(0x2d2)]) {
|
|
1596
|
+
const _0x715117 = [
|
|
1597
|
+
_0x29a5ab(0x293),
|
|
1598
|
+
_0x433712[_0x29a5ab(0x24e)] ? _0x29a5ab(_0x27e519._0x1b0294) : null,
|
|
1599
|
+
_0x433712[_0x29a5ab(0x18c)] ? _0x29a5ab(_0x27e519._0x39a2be) + _0x433712[_0x29a5ab(0x18c)] : null,
|
|
1600
|
+
_0x433712[_0x29a5ab(_0x27e519._0x18d92e)] ? _0x29a5ab(0x294) + _0x433712['threadTarget'] : null,
|
|
1601
|
+
_0x433712['workerDisposition'] ? 'workerDisposition=' + _0x433712['workerDisposition'] : null
|
|
1602
|
+
][_0x29a5ab(0x27b)](Boolean)[_0x29a5ab(0x2b5)]('\x20');
|
|
1603
|
+
return _0x483172 + _0x29a5ab(0x1e4) + _0xcabde + '\x20' + _0x715117 + _0x29a5ab(_0x27e519._0x18109e);
|
|
1580
1604
|
}
|
|
1581
|
-
if (
|
|
1582
|
-
return
|
|
1583
|
-
const
|
|
1584
|
-
return
|
|
1605
|
+
if (_0x433712[_0x29a5ab(0x18c)] === 'main')
|
|
1606
|
+
return _0x483172 + _0x29a5ab(_0x27e519._0x5a887e) + _0xcabde + '\x20workerHandoff=false\x20executionMode=main\x0aStay\x20in\x20main\x20session:\x20read\x20the\x20referenced\x20plan/document\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20(or\x20otherwise\x20advance\x20the\x20task\x20in\x20main\x20without\x20handing\x20off\x20to\x20a\x20worker).';
|
|
1607
|
+
const _0x4b9b00 = _0x433712[_0x29a5ab(_0x27e519._0x77e4e3)] ? _0x29a5ab(_0x27e519._0x5e4e91) + _0x433712[_0x29a5ab(0x266)] : '';
|
|
1608
|
+
return _0x483172 + _0x29a5ab(0x1e4) + _0xcabde + _0x4b9b00;
|
|
1585
1609
|
}
|
|
1586
|
-
const
|
|
1587
|
-
return
|
|
1610
|
+
const _0x1428d6 = _0x433712[_0x29a5ab(0x216)] == null ? _0x433712[_0x29a5ab(0x244)] ?? '(unknown)' : formatClaimTaskLabel(_0x433712['taskNumber'], _0x433712['subtaskNumber']);
|
|
1611
|
+
return _0x1428d6 + _0x29a5ab(0x1ae) + (_0x433712[_0x29a5ab(_0x27e519._0x5be9ca)] ?? _0x29a5ab(_0x27e519._0x3ca800));
|
|
1588
1612
|
})['join']('\x0a');
|
|
1589
1613
|
}
|
|
1590
|
-
function formatUnclaimTaskResult(
|
|
1591
|
-
const
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
return _0x4dad7b + _0x33a667(_0x4d4ea4._0x4d41a6) + _0x363c42[_0x33a667(_0x4d4ea4._0x2d1f39)];
|
|
1614
|
+
function formatUnclaimTaskResult(_0x2c7edf) {
|
|
1615
|
+
const _0x2b845a = {
|
|
1616
|
+
_0x1c7317: 0x21c,
|
|
1617
|
+
_0x2fb5dd: 0x200
|
|
1618
|
+
}, _0x7f1193 = _0x2869e3, _0x484dab = _0x2c7edf[_0x7f1193(0x216)] == null ? _0x7f1193(_0x2b845a._0x1c7317) : _0x2c7edf[_0x7f1193(0x2ce)] != null ? '#' + _0x2c7edf['taskNumber'] + '.' + _0x2c7edf['subtaskNumber'] : '#' + _0x2c7edf[_0x7f1193(0x216)];
|
|
1619
|
+
return _0x484dab + _0x7f1193(_0x2b845a._0x2fb5dd) + _0x2c7edf['status'];
|
|
1597
1620
|
}
|
|
1598
|
-
function formatUpdateTaskStatusResult(
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
return _0x565ad2 + _0x3d906a(0x1fa);
|
|
1621
|
+
function formatUpdateTaskStatusResult(_0x45cc52) {
|
|
1622
|
+
const _0x38f2f5 = {
|
|
1623
|
+
_0x2695e8: 0x21c,
|
|
1624
|
+
_0x482d10: 0x216,
|
|
1625
|
+
_0x523a5c: 0x2ce,
|
|
1626
|
+
_0x28a2c0: 0x17b,
|
|
1627
|
+
_0x47c10e: 0x277
|
|
1628
|
+
}, _0x5e4443 = _0x2869e3, _0x411bfd = _0x45cc52[_0x5e4443(0x216)] == null ? _0x5e4443(_0x38f2f5._0x2695e8) : _0x45cc52[_0x5e4443(0x2ce)] != null ? '#' + _0x45cc52[_0x5e4443(_0x38f2f5._0x482d10)] + '.' + _0x45cc52[_0x5e4443(_0x38f2f5._0x523a5c)] : '#' + _0x45cc52['taskNumber'], _0x3536bf = _0x411bfd + _0x5e4443(0x200) + _0x45cc52[_0x5e4443(_0x38f2f5._0x28a2c0)];
|
|
1629
|
+
if (_0x45cc52[_0x5e4443(_0x38f2f5._0x28a2c0)] !== _0x5e4443(_0x38f2f5._0x47c10e))
|
|
1630
|
+
return _0x3536bf;
|
|
1631
|
+
return _0x3536bf + '\x0aIf\x20your\x20memory\x20or\x20channel\x20rules\x20require\x20review,\x20send\x20a\x20message\x20mentioning\x20the\x20reviewer\x20before\x20parking.';
|
|
1610
1632
|
}
|
|
1611
1633
|
function getChatBridgeToolDefinitions() {
|
|
1612
|
-
const
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1634
|
+
const _0x199deb = {
|
|
1635
|
+
_0x1b331b: 0x275,
|
|
1636
|
+
_0x133d4a: 0x1ed,
|
|
1637
|
+
_0x305268: 0x1c5,
|
|
1638
|
+
_0xadcc5a: 0x1a3,
|
|
1639
|
+
_0x22dfe9: 0x198,
|
|
1640
|
+
_0x2676cb: 0x1d2,
|
|
1641
|
+
_0x439688: 0x1ad
|
|
1642
|
+
}, _0x4f5994 = _0x2869e3;
|
|
1618
1643
|
return [
|
|
1619
|
-
{ 'name':
|
|
1620
|
-
{ 'name':
|
|
1621
|
-
{ 'name':
|
|
1622
|
-
{ 'name':
|
|
1623
|
-
{ 'name':
|
|
1624
|
-
{ 'name':
|
|
1625
|
-
{ 'name':
|
|
1626
|
-
{ 'name':
|
|
1644
|
+
{ 'name': _0x4f5994(_0x199deb._0x1b331b) },
|
|
1645
|
+
{ 'name': _0x4f5994(0x2c4) },
|
|
1646
|
+
{ 'name': _0x4f5994(0x2d5) },
|
|
1647
|
+
{ 'name': _0x4f5994(_0x199deb._0x133d4a) },
|
|
1648
|
+
{ 'name': _0x4f5994(0x264) },
|
|
1649
|
+
{ 'name': _0x4f5994(_0x199deb._0x305268) },
|
|
1650
|
+
{ 'name': _0x4f5994(0x271) },
|
|
1651
|
+
{ 'name': _0x4f5994(_0x199deb._0xadcc5a) },
|
|
1627
1652
|
{ 'name': 'claim_tasks' },
|
|
1628
|
-
{ 'name':
|
|
1629
|
-
{ 'name':
|
|
1630
|
-
{ 'name':
|
|
1631
|
-
{ 'name':
|
|
1632
|
-
{ 'name':
|
|
1633
|
-
{ 'name':
|
|
1653
|
+
{ 'name': _0x4f5994(_0x199deb._0x22dfe9) },
|
|
1654
|
+
{ 'name': 'update_task_status' },
|
|
1655
|
+
{ 'name': _0x4f5994(0x2c1) },
|
|
1656
|
+
{ 'name': _0x4f5994(_0x199deb._0x2676cb) },
|
|
1657
|
+
{ 'name': _0x4f5994(0x254) },
|
|
1658
|
+
{ 'name': _0x4f5994(_0x199deb._0x439688) }
|
|
1634
1659
|
];
|
|
1635
1660
|
}
|
|
1636
|
-
function createChatBridgeHandlers(
|
|
1637
|
-
const
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
},
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
},
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1661
|
+
function createChatBridgeHandlers(_0x2eac44) {
|
|
1662
|
+
const _0x55bc82 = { _0x1d6f34: 0x2f2 }, _0x18484e = {
|
|
1663
|
+
_0x5acab8: 0x217,
|
|
1664
|
+
_0x3f9ebf: 0x1ba,
|
|
1665
|
+
_0x20d25f: 0x20d,
|
|
1666
|
+
_0x25fbb3: 0x1dc,
|
|
1667
|
+
_0xdd250: 0x2d1,
|
|
1668
|
+
_0x51f409: 0x20d
|
|
1669
|
+
}, _0x4506ca = {
|
|
1670
|
+
_0xdd4657: 0x18b,
|
|
1671
|
+
_0x312a17: 0x2f5,
|
|
1672
|
+
_0x11147c: 0x2cf,
|
|
1673
|
+
_0x7f6f24: 0x207,
|
|
1674
|
+
_0x4dce5f: 0x1ba,
|
|
1675
|
+
_0x220e4a: 0x1ee,
|
|
1676
|
+
_0x49a269: 0x222,
|
|
1677
|
+
_0x20bc12: 0x1fc
|
|
1678
|
+
}, _0x206e4e = {
|
|
1679
|
+
_0x460371: 0x1ba,
|
|
1680
|
+
_0x1a2fa: 0x2d9,
|
|
1681
|
+
_0x32582d: 0x222
|
|
1682
|
+
}, _0x26e494 = {
|
|
1683
|
+
_0x2cc407: 0x18b,
|
|
1684
|
+
_0x1b8c68: 0x222,
|
|
1685
|
+
_0xd17bf5: 0x230,
|
|
1686
|
+
_0x439be6: 0x22b,
|
|
1687
|
+
_0x241a93: 0x222,
|
|
1688
|
+
_0x34231c: 0x1c0
|
|
1689
|
+
}, _0xf165d0 = {
|
|
1690
|
+
_0x162ac1: 0x1b1,
|
|
1691
|
+
_0x428b5c: 0x279,
|
|
1692
|
+
_0x286ac9: 0x28f,
|
|
1693
|
+
_0x4cd857: 0x279,
|
|
1694
|
+
_0x5e969f: 0x28b,
|
|
1695
|
+
_0x4202d6: 0x2e6
|
|
1696
|
+
}, _0x511d57 = {
|
|
1697
|
+
_0x37f89c: 0x296,
|
|
1698
|
+
_0x4d9925: 0x228
|
|
1699
|
+
}, _0x41273c = {
|
|
1700
|
+
_0x5316a4: 0x198,
|
|
1701
|
+
_0x4e3e11: 0x188,
|
|
1702
|
+
_0x1adc2b: 0x2d8
|
|
1703
|
+
}, _0x29428a = {
|
|
1704
|
+
_0x567194: 0x1a6,
|
|
1705
|
+
_0x376be1: 0x2df,
|
|
1706
|
+
_0xfecf4f: 0x2ed,
|
|
1707
|
+
_0x4fca2c: 0x2ed,
|
|
1708
|
+
_0x5c5683: 0x2da,
|
|
1709
|
+
_0xed11b0: 0x1de,
|
|
1710
|
+
_0x3f2def: 0x19e,
|
|
1711
|
+
_0x29171e: 0x2eb
|
|
1712
|
+
}, _0xf8060a = {
|
|
1713
|
+
_0x367a77: 0x1d7,
|
|
1714
|
+
_0x6bbeec: 0x18b,
|
|
1715
|
+
_0xad94e2: 0x1f1,
|
|
1716
|
+
_0x588ef4: 0x2f5,
|
|
1717
|
+
_0x5c3e36: 0x1dc,
|
|
1718
|
+
_0x54d750: 0x218,
|
|
1719
|
+
_0x503d5e: 0x27e,
|
|
1720
|
+
_0x125fff: 0x1a9,
|
|
1721
|
+
_0x2d9878: 0x1de,
|
|
1722
|
+
_0x42db94: 0x236,
|
|
1723
|
+
_0x3ac155: 0x2d0,
|
|
1724
|
+
_0xf6b4d4: 0x216,
|
|
1725
|
+
_0x47a3d2: 0x303,
|
|
1726
|
+
_0x1a66ec: 0x216
|
|
1727
|
+
}, _0x1cc49c = {
|
|
1728
|
+
_0x5c392e: 0x28f,
|
|
1729
|
+
_0x3870ec: 0x1c1
|
|
1730
|
+
}, _0x15f2e8 = {
|
|
1731
|
+
_0x575192: 0x28f,
|
|
1732
|
+
_0x57c8b0: 0x1fb
|
|
1733
|
+
}, _0x52a1d8 = {
|
|
1734
|
+
_0x4ac305: 0x1e5,
|
|
1735
|
+
_0x15e9a1: 0x250,
|
|
1736
|
+
_0x19496b: 0x27b
|
|
1737
|
+
}, _0x363cdb = {
|
|
1738
|
+
_0x383862: 0x1a6,
|
|
1739
|
+
_0x328785: 0x2f5,
|
|
1740
|
+
_0x4c992c: 0x285,
|
|
1741
|
+
_0xafcf7d: 0x1cf,
|
|
1742
|
+
_0x8629d4: 0x216,
|
|
1743
|
+
_0x4807f6: 0x252,
|
|
1744
|
+
_0x1443bf: 0x1da,
|
|
1745
|
+
_0x2d937c: 0x2b5,
|
|
1746
|
+
_0x28d2ec: 0x1c2,
|
|
1747
|
+
_0x34689e: 0x284,
|
|
1748
|
+
_0x4544a1: 0x268,
|
|
1749
|
+
_0x21ac43: 0x2f4,
|
|
1750
|
+
_0x5da222: 0x2b9,
|
|
1751
|
+
_0x57f1a7: 0x18b,
|
|
1752
|
+
_0x58a7d0: 0x1f4,
|
|
1753
|
+
_0x4647df: 0x213,
|
|
1754
|
+
_0x1ed9ce: 0x181,
|
|
1755
|
+
_0x4baeb6: 0x2f7,
|
|
1756
|
+
_0x5e0d26: 0x25e,
|
|
1757
|
+
_0x388f4b: 0x28f,
|
|
1758
|
+
_0x36561c: 0x243,
|
|
1759
|
+
_0x263383: 0x2a9,
|
|
1760
|
+
_0xcc9269: 0x2c0,
|
|
1761
|
+
_0x375150: 0x1e8
|
|
1762
|
+
}, _0x4f31e0 = {
|
|
1763
|
+
_0x2e7fa0: 0x18b,
|
|
1764
|
+
_0x1da587: 0x1a6,
|
|
1765
|
+
_0x357b5e: 0x27e,
|
|
1766
|
+
_0x21c7dd: 0x21a
|
|
1767
|
+
}, _0x512970 = {
|
|
1768
|
+
_0x481bda: 0x18b,
|
|
1769
|
+
_0x1d1eaa: 0x2f5,
|
|
1770
|
+
_0x35cc14: 0x18b,
|
|
1771
|
+
_0x577ddb: 0x1f1,
|
|
1772
|
+
_0x366ad3: 0x240,
|
|
1773
|
+
_0x181b65: 0x218,
|
|
1774
|
+
_0x240ede: 0x21a
|
|
1775
|
+
}, _0x433c4f = {
|
|
1776
|
+
_0x23a738: 0x18b,
|
|
1777
|
+
_0x4a77a1: 0x2f5,
|
|
1778
|
+
_0x4f19d4: 0x18c,
|
|
1779
|
+
_0x458545: 0x21c,
|
|
1780
|
+
_0x5ef3ca: 0x216,
|
|
1781
|
+
_0x525216: 0x28f,
|
|
1782
|
+
_0x478ab1: 0x250,
|
|
1783
|
+
_0x547c8b: 0x216,
|
|
1784
|
+
_0x37b218: 0x210,
|
|
1785
|
+
_0x540a77: 0x244,
|
|
1786
|
+
_0xf85da0: 0x18d,
|
|
1787
|
+
_0x546cd7: 0x1f4,
|
|
1788
|
+
_0x4fc3f0: 0x2f4,
|
|
1789
|
+
_0x2de0c9: 0x19c,
|
|
1790
|
+
_0xc11f29: 0x213,
|
|
1791
|
+
_0x1e7610: 0x2d9,
|
|
1792
|
+
_0x346190: 0x2c8,
|
|
1793
|
+
_0x518cb9: 0x2a4,
|
|
1794
|
+
_0x3b4cc2: 0x301
|
|
1795
|
+
}, _0x39a7bc = {
|
|
1796
|
+
_0x2a234c: 0x1ef,
|
|
1797
|
+
_0x3c2a4e: 0x267,
|
|
1798
|
+
_0x1dc6a0: 0x251,
|
|
1799
|
+
_0x1a37bd: 0x267
|
|
1800
|
+
}, _0x359f22 = _0x2869e3;
|
|
1801
|
+
function _0x2022e6(_0x4e66c2, _0x26aea1) {
|
|
1802
|
+
const _0x4c1ddb = _0x355a;
|
|
1803
|
+
if (!_0x2eac44[_0x4c1ddb(0x1a6)])
|
|
1768
1804
|
return;
|
|
1769
|
-
if (!
|
|
1770
|
-
throw new Error(
|
|
1771
|
-
if (
|
|
1772
|
-
throw new Error(
|
|
1805
|
+
if (!_0x2eac44[_0x4c1ddb(0x267)])
|
|
1806
|
+
throw new Error(_0x4e66c2 + _0x4c1ddb(_0x39a7bc._0x2a234c));
|
|
1807
|
+
if (_0x26aea1 !== _0x2eac44[_0x4c1ddb(_0x39a7bc._0x3c2a4e)])
|
|
1808
|
+
throw new Error(_0x4e66c2 + _0x4c1ddb(_0x39a7bc._0x1dc6a0) + _0x2eac44[_0x4c1ddb(_0x39a7bc._0x1a37bd)] + ');\x20got\x20channel=' + _0x26aea1);
|
|
1773
1809
|
}
|
|
1774
|
-
async function
|
|
1775
|
-
const
|
|
1776
|
-
if (!
|
|
1810
|
+
async function _0x3a1b08(_0x84fe47) {
|
|
1811
|
+
const _0x3777e8 = _0x355a;
|
|
1812
|
+
if (!_0x2eac44[_0x3777e8(_0x433c4f._0x23a738)] || !_0x2eac44[_0x3777e8(_0x433c4f._0x4a77a1)] || _0x2eac44[_0x3777e8(0x1a6)] || _0x2eac44[_0x3777e8(0x187)] !== !![])
|
|
1777
1813
|
return null;
|
|
1778
|
-
const
|
|
1779
|
-
if (
|
|
1814
|
+
const _0x487d68 = parseTarget(_0x84fe47[_0x3777e8(0x188)]);
|
|
1815
|
+
if (_0x487d68[_0x3777e8(0x2aa)] !== 'channel')
|
|
1780
1816
|
return null;
|
|
1781
|
-
if (
|
|
1782
|
-
const
|
|
1817
|
+
if (_0x84fe47[_0x3777e8(_0x433c4f._0x4f19d4)] === _0x3777e8(0x1e9)) {
|
|
1818
|
+
const _0xd32c55 = _0x84fe47[_0x3777e8(0x216)] == null ? _0x3777e8(_0x433c4f._0x458545) : '#' + _0x84fe47[_0x3777e8(_0x433c4f._0x5ef3ca)];
|
|
1783
1819
|
return {
|
|
1784
|
-
'executionMode':
|
|
1820
|
+
'executionMode': 'main',
|
|
1785
1821
|
'stopMain': ![],
|
|
1786
1822
|
'workerHandoff': ![],
|
|
1787
|
-
'workerHandoffError':
|
|
1823
|
+
'workerHandoffError': 'task\x20' + _0xd32c55 + '\x20stays\x20in\x20main\x20session\x20(executionMode=main);\x20remain\x20here,\x20read\x20the\x20referenced\x20plan/document,\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20if\x20that\x20is\x20the\x20intent.'
|
|
1788
1824
|
};
|
|
1789
1825
|
}
|
|
1790
|
-
const
|
|
1791
|
-
let
|
|
1826
|
+
const _0x2f7c31 = _0x84fe47['threadNumber'] != null ? _0x487d68['channelTarget'] + ':t' + _0x84fe47['threadNumber'] : _0x487d68['channelTarget'] + ':' + _0x84fe47['messageId'];
|
|
1827
|
+
let _0x4caedf;
|
|
1792
1828
|
try {
|
|
1793
|
-
const
|
|
1794
|
-
'channel':
|
|
1829
|
+
const _0x2cbe03 = await _0x2eac44[_0x3777e8(_0x433c4f._0x525216)][_0x3777e8(0x1fb)]({
|
|
1830
|
+
'channel': _0x2f7c31,
|
|
1795
1831
|
'limit': 0x14
|
|
1796
1832
|
});
|
|
1797
|
-
|
|
1833
|
+
_0x4caedf = _0x2cbe03[_0x3777e8(_0x433c4f._0x478ab1)][_0x3777e8(0x2d0)](_0x219861 => _0x219861['messageId'] === _0x84fe47[_0x3777e8(0x244)]);
|
|
1798
1834
|
} catch {
|
|
1799
|
-
|
|
1835
|
+
_0x4caedf = void 0x0;
|
|
1800
1836
|
}
|
|
1801
|
-
const
|
|
1802
|
-
|
|
1837
|
+
const _0x248aca = _0x84fe47['taskNumber'] == null ? _0x3777e8(0x21c) : '#' + _0x84fe47[_0x3777e8(_0x433c4f._0x547c8b)], _0x4d5bb2 = [
|
|
1838
|
+
_0x3777e8(0x220) + _0x2f7c31 + _0x3777e8(0x186) + _0x84fe47[_0x3777e8(0x244)]['slice'](0x0, 0x8) + '\x20time=' + new Date()[_0x3777e8(0x199)]() + _0x3777e8(0x1e6) + _0x248aca + '\x20已切换到\x20worker\x20执行',
|
|
1803
1839
|
'',
|
|
1804
|
-
|
|
1840
|
+
_0x4caedf ? _0x3777e8(0x24a) + _0x4caedf[_0x3777e8(0x268)] : _0x3777e8(_0x433c4f._0x37b218) + _0x84fe47[_0x3777e8(_0x433c4f._0x540a77)],
|
|
1805
1841
|
'',
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
][
|
|
1842
|
+
_0x3777e8(0x28d) + _0x2f7c31,
|
|
1843
|
+
_0x3777e8(_0x433c4f._0xf85da0)
|
|
1844
|
+
]['join']('\x0a'), _0x1c746c = await fetch(_0x2eac44[_0x3777e8(0x18b)] + _0x3777e8(0x2fe), {
|
|
1809
1845
|
'method': 'POST',
|
|
1810
|
-
'headers': { 'Content-Type':
|
|
1811
|
-
'body': JSON[
|
|
1812
|
-
'agent_id':
|
|
1813
|
-
'thread_target':
|
|
1846
|
+
'headers': { 'Content-Type': _0x3777e8(_0x433c4f._0x546cd7) },
|
|
1847
|
+
'body': JSON[_0x3777e8(0x1ba)]({
|
|
1848
|
+
'agent_id': _0x2eac44[_0x3777e8(0x2f5)],
|
|
1849
|
+
'thread_target': _0x2f7c31,
|
|
1814
1850
|
'spawn_packet': {
|
|
1815
|
-
'replyTarget':
|
|
1816
|
-
...
|
|
1851
|
+
'replyTarget': _0x2f7c31,
|
|
1852
|
+
..._0x84fe47[_0x3777e8(0x2f4)] ? { 'taskId': _0x84fe47[_0x3777e8(_0x433c4f._0x4fc3f0)] } : _0x84fe47[_0x3777e8(0x216)] != null ? { 'taskId': _0x3777e8(_0x433c4f._0x2de0c9) + _0x84fe47['taskNumber'] } : {}
|
|
1817
1853
|
},
|
|
1818
1854
|
'payload': {
|
|
1819
|
-
'mode':
|
|
1820
|
-
'text':
|
|
1855
|
+
'mode': _0x3777e8(_0x433c4f._0xc11f29),
|
|
1856
|
+
'text': _0x4d5bb2
|
|
1821
1857
|
}
|
|
1822
1858
|
})
|
|
1823
|
-
}),
|
|
1824
|
-
if (!
|
|
1825
|
-
throw new Error(
|
|
1859
|
+
}), _0x579cc5 = await _0x1c746c[_0x3777e8(0x1dc)]();
|
|
1860
|
+
if (!_0x579cc5['ok'])
|
|
1861
|
+
throw new Error(_0x579cc5[_0x3777e8(_0x433c4f._0x1e7610)] ?? _0x3777e8(_0x433c4f._0x346190));
|
|
1826
1862
|
return {
|
|
1827
1863
|
'stopMain': !![],
|
|
1828
|
-
'threadTarget':
|
|
1829
|
-
'workerDisposition':
|
|
1864
|
+
'threadTarget': _0x2f7c31,
|
|
1865
|
+
'workerDisposition': _0x579cc5[_0x3777e8(0x2a2)] === 'queued' ? _0x3777e8(0x1ec) : 'started',
|
|
1830
1866
|
'workerHandoff': !![],
|
|
1831
|
-
'workerSessionId':
|
|
1832
|
-
'executionMode':
|
|
1867
|
+
'workerSessionId': _0x579cc5[_0x3777e8(_0x433c4f._0x518cb9)] ?? '',
|
|
1868
|
+
'executionMode': _0x3777e8(_0x433c4f._0x3b4cc2)
|
|
1833
1869
|
};
|
|
1834
1870
|
}
|
|
1835
|
-
async function
|
|
1836
|
-
const
|
|
1837
|
-
if (!
|
|
1871
|
+
async function _0x2fee84() {
|
|
1872
|
+
const _0x1f6314 = _0x355a;
|
|
1873
|
+
if (!_0x2eac44[_0x1f6314(_0x512970._0x481bda)] || !_0x2eac44[_0x1f6314(_0x512970._0x1d1eaa)] || _0x2eac44[_0x1f6314(0x1a6)])
|
|
1838
1874
|
return null;
|
|
1839
1875
|
try {
|
|
1840
|
-
const
|
|
1841
|
-
if (!
|
|
1876
|
+
const _0x3cb389 = await fetch(_0x2eac44[_0x1f6314(_0x512970._0x35cc14)] + _0x1f6314(_0x512970._0x577ddb) + encodeURIComponent(_0x2eac44[_0x1f6314(0x2f5)])), _0x14346f = await _0x3cb389[_0x1f6314(0x1dc)]();
|
|
1877
|
+
if (!_0x14346f['ok'])
|
|
1842
1878
|
return null;
|
|
1843
|
-
const
|
|
1844
|
-
for (const
|
|
1845
|
-
|
|
1879
|
+
const _0x25e71c = new Set();
|
|
1880
|
+
for (const _0x3dd397 of _0x14346f[_0x1f6314(_0x512970._0x366ad3)]) {
|
|
1881
|
+
_0x3dd397['status'] !== _0x1f6314(_0x512970._0x181b65) && _0x3dd397['thread_target'] && _0x25e71c[_0x1f6314(0x1af)](_0x3dd397[_0x1f6314(0x27e)]);
|
|
1846
1882
|
}
|
|
1847
|
-
return
|
|
1883
|
+
return _0x25e71c[_0x1f6314(_0x512970._0x240ede)] > 0x0 ? _0x25e71c : null;
|
|
1848
1884
|
} catch {
|
|
1849
1885
|
return null;
|
|
1850
1886
|
}
|
|
1851
1887
|
}
|
|
1852
|
-
const
|
|
1888
|
+
const _0x592876 = new Set([
|
|
1853
1889
|
'running',
|
|
1854
|
-
|
|
1855
|
-
|
|
1890
|
+
_0x359f22(_0x55bc82._0x1d6f34),
|
|
1891
|
+
_0x359f22(0x19d)
|
|
1856
1892
|
]);
|
|
1857
|
-
async function
|
|
1858
|
-
const
|
|
1859
|
-
if (!
|
|
1893
|
+
async function _0xd802e7() {
|
|
1894
|
+
const _0x21947e = _0x359f22;
|
|
1895
|
+
if (!_0x2eac44[_0x21947e(_0x4f31e0._0x2e7fa0)] || !_0x2eac44[_0x21947e(0x2f5)] || _0x2eac44[_0x21947e(_0x4f31e0._0x1da587)])
|
|
1860
1896
|
return null;
|
|
1861
1897
|
try {
|
|
1862
|
-
const
|
|
1863
|
-
if (!
|
|
1898
|
+
const _0x6aaabc = await fetch(_0x2eac44[_0x21947e(0x18b)] + '/workers/list?agent_id=' + encodeURIComponent(_0x2eac44[_0x21947e(0x2f5)])), _0x2ed562 = await _0x6aaabc[_0x21947e(0x1dc)]();
|
|
1899
|
+
if (!_0x2ed562['ok'])
|
|
1864
1900
|
return null;
|
|
1865
|
-
const
|
|
1866
|
-
for (const
|
|
1867
|
-
|
|
1901
|
+
const _0x292bcb = new Set();
|
|
1902
|
+
for (const _0x469deb of _0x2ed562[_0x21947e(0x240)]) {
|
|
1903
|
+
_0x592876['has'](_0x469deb['status']) && _0x469deb[_0x21947e(0x27e)] && _0x292bcb[_0x21947e(0x1af)](_0x469deb[_0x21947e(_0x4f31e0._0x357b5e)]);
|
|
1868
1904
|
}
|
|
1869
|
-
return
|
|
1905
|
+
return _0x292bcb[_0x21947e(_0x4f31e0._0x21c7dd)] > 0x0 ? _0x292bcb : null;
|
|
1870
1906
|
} catch {
|
|
1871
1907
|
return null;
|
|
1872
1908
|
}
|
|
1873
1909
|
}
|
|
1874
1910
|
return {
|
|
1875
|
-
async 'send_message'(
|
|
1876
|
-
const
|
|
1877
|
-
if (!
|
|
1878
|
-
const
|
|
1879
|
-
if (
|
|
1880
|
-
const
|
|
1881
|
-
if (
|
|
1911
|
+
async 'send_message'(_0x5bc612) {
|
|
1912
|
+
const _0x203b08 = _0x359f22;
|
|
1913
|
+
if (!_0x2eac44[_0x203b08(_0x363cdb._0x383862)] && _0x2eac44['workerModeEnabled'] && _0x2eac44[_0x203b08(0x18b)] && _0x2eac44[_0x203b08(_0x363cdb._0x328785)]) {
|
|
1914
|
+
const _0x3d09a8 = await _0x2eac44[_0x203b08(0x28f)][_0x203b08(0x1a8)](_0x5bc612[_0x203b08(_0x363cdb._0x4c992c)]);
|
|
1915
|
+
if (_0x3d09a8[_0x203b08(0x1cf)] && _0x3d09a8['threadId']) {
|
|
1916
|
+
const _0x263066 = _0x3d09a8[_0x203b08(_0x363cdb._0xafcf7d)][_0x203b08(0x216)] != null ? '#' + _0x3d09a8['task'][_0x203b08(_0x363cdb._0x8629d4)] : _0x203b08(0x21c), _0x1eb3ca = _0x3d09a8[_0x203b08(0x26f)] != null ? _0x3d09a8['target'] + ':t' + _0x3d09a8[_0x203b08(0x26f)] : _0x3d09a8[_0x203b08(0x285)] + ':' + _0x3d09a8[_0x203b08(_0x363cdb._0x4807f6)]['slice'](0x0, 0x8), _0x50ba48 = await _0xd802e7();
|
|
1917
|
+
if (_0x50ba48?.[_0x203b08(_0x363cdb._0x1443bf)](_0x1eb3ca))
|
|
1882
1918
|
return [
|
|
1883
|
-
'Task\x20' +
|
|
1884
|
-
|
|
1885
|
-
][
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1919
|
+
'Task\x20' + _0x263066 + _0x203b08(0x193) + _0x1eb3ca + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1920
|
+
_0x203b08(0x1b3)
|
|
1921
|
+
][_0x203b08(_0x363cdb._0x2d937c)]('\x0a');
|
|
1922
|
+
const _0x50ec75 = [
|
|
1923
|
+
_0x203b08(0x220) + _0x1eb3ca + _0x203b08(_0x363cdb._0x28d2ec) + new Date()[_0x203b08(0x199)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1888
1924
|
'',
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
][
|
|
1894
|
-
'method':
|
|
1895
|
-
'headers': { 'Content-Type':
|
|
1896
|
-
'body': JSON[
|
|
1897
|
-
'agent_id':
|
|
1898
|
-
'thread_target':
|
|
1925
|
+
_0x203b08(_0x363cdb._0x34689e) + _0x5bc612[_0x203b08(_0x363cdb._0x4544a1)],
|
|
1926
|
+
'Task:\x20' + _0x263066 + '\x20(' + _0x3d09a8[_0x203b08(_0x363cdb._0xafcf7d)][_0x203b08(_0x363cdb._0x21ac43)] + ')',
|
|
1927
|
+
_0x203b08(0x28d) + _0x1eb3ca,
|
|
1928
|
+
_0x203b08(_0x363cdb._0x5da222)
|
|
1929
|
+
][_0x203b08(0x2b5)]('\x0a'), _0xbfad7 = await fetch(_0x2eac44[_0x203b08(_0x363cdb._0x57f1a7)] + _0x203b08(0x2fe), {
|
|
1930
|
+
'method': 'POST',
|
|
1931
|
+
'headers': { 'Content-Type': _0x203b08(_0x363cdb._0x58a7d0) },
|
|
1932
|
+
'body': JSON[_0x203b08(0x1ba)]({
|
|
1933
|
+
'agent_id': _0x2eac44[_0x203b08(_0x363cdb._0x328785)],
|
|
1934
|
+
'thread_target': _0x1eb3ca,
|
|
1899
1935
|
'spawn_packet': {
|
|
1900
|
-
'replyTarget':
|
|
1901
|
-
'taskId':
|
|
1936
|
+
'replyTarget': _0x1eb3ca,
|
|
1937
|
+
'taskId': _0x3d09a8[_0x203b08(0x1cf)][_0x203b08(0x2f4)]
|
|
1902
1938
|
},
|
|
1903
1939
|
'payload': {
|
|
1904
|
-
'mode':
|
|
1905
|
-
'text':
|
|
1940
|
+
'mode': _0x203b08(_0x363cdb._0x4647df),
|
|
1941
|
+
'text': _0x50ec75
|
|
1906
1942
|
}
|
|
1907
1943
|
})
|
|
1908
|
-
}),
|
|
1909
|
-
if (!
|
|
1910
|
-
throw new Error(
|
|
1944
|
+
}), _0x2b58ef = await _0xbfad7[_0x203b08(0x1dc)]();
|
|
1945
|
+
if (!_0x2b58ef['ok'])
|
|
1946
|
+
throw new Error(_0x2b58ef[_0x203b08(0x2d9)] ?? _0x203b08(_0x363cdb._0x1ed9ce));
|
|
1911
1947
|
return [
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
][
|
|
1948
|
+
'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x263066 + '\x20in\x20' + _0x1eb3ca + _0x203b08(_0x363cdb._0x4baeb6),
|
|
1949
|
+
_0x203b08(0x2fd) + (_0x2b58ef['disposition'] === _0x203b08(0x1ec) ? _0x203b08(0x1ec) : 'started') + '.',
|
|
1950
|
+
_0x203b08(_0x363cdb._0x5e0d26)
|
|
1951
|
+
][_0x203b08(0x2b5)]('\x0a');
|
|
1916
1952
|
}
|
|
1917
1953
|
}
|
|
1918
|
-
const
|
|
1919
|
-
'attachmentIds':
|
|
1920
|
-
'content':
|
|
1921
|
-
'target':
|
|
1922
|
-
'visibility':
|
|
1954
|
+
const _0x4d688e = await _0x2eac44[_0x203b08(_0x363cdb._0x388f4b)][_0x203b08(_0x363cdb._0x36561c)]({
|
|
1955
|
+
'attachmentIds': _0x5bc612[_0x203b08(_0x363cdb._0x263383)],
|
|
1956
|
+
'content': _0x5bc612[_0x203b08(0x268)],
|
|
1957
|
+
'target': _0x5bc612[_0x203b08(0x285)],
|
|
1958
|
+
'visibility': _0x5bc612[_0x203b08(_0x363cdb._0xcc9269)]
|
|
1923
1959
|
});
|
|
1924
|
-
return 'Message\x20sent\x20to\x20' +
|
|
1960
|
+
return 'Message\x20sent\x20to\x20' + _0x5bc612[_0x203b08(_0x363cdb._0x4c992c)] + _0x203b08(_0x363cdb._0x375150) + _0x4d688e[_0x203b08(0x244)];
|
|
1925
1961
|
},
|
|
1926
1962
|
async 'check_messages'() {
|
|
1927
|
-
const
|
|
1928
|
-
if (!
|
|
1929
|
-
const
|
|
1930
|
-
if (
|
|
1931
|
-
return formatCheckMessages(
|
|
1963
|
+
const _0x170133 = _0x359f22, _0x5a9f0b = await _0x2eac44[_0x170133(0x28f)][_0x170133(_0x52a1d8._0x4ac305)]();
|
|
1964
|
+
if (!_0x2eac44[_0x170133(0x1a6)]) {
|
|
1965
|
+
const _0x3b0273 = await _0x2fee84();
|
|
1966
|
+
if (_0x3b0273)
|
|
1967
|
+
return formatCheckMessages(_0x5a9f0b[_0x170133(_0x52a1d8._0x15e9a1)][_0x170133(_0x52a1d8._0x19496b)](_0x105cbb => !_0x3b0273['has'](_0x105cbb[_0x170133(0x285)])));
|
|
1932
1968
|
}
|
|
1933
|
-
return formatCheckMessages(
|
|
1969
|
+
return formatCheckMessages(_0x5a9f0b[_0x170133(0x250)]);
|
|
1934
1970
|
},
|
|
1935
|
-
async 'read_history'(
|
|
1936
|
-
const
|
|
1937
|
-
return formatHistory(
|
|
1971
|
+
async 'read_history'(_0xe21d36) {
|
|
1972
|
+
const _0xdee610 = _0x359f22, _0x5a0228 = await _0x2eac44[_0xdee610(_0x15f2e8._0x575192)][_0xdee610(_0x15f2e8._0x57c8b0)](_0xe21d36);
|
|
1973
|
+
return formatHistory(_0x5a0228);
|
|
1938
1974
|
},
|
|
1939
1975
|
async 'list_server'() {
|
|
1940
|
-
const
|
|
1941
|
-
return formatServerDirectory(
|
|
1976
|
+
const _0x18269c = _0x359f22, _0xd8cd42 = await _0x2eac44[_0x18269c(_0x1cc49c._0x5c392e)][_0x18269c(_0x1cc49c._0x3870ec)]();
|
|
1977
|
+
return formatServerDirectory(_0xd8cd42);
|
|
1942
1978
|
},
|
|
1943
|
-
async 'list_tasks'(
|
|
1944
|
-
const
|
|
1945
|
-
let
|
|
1946
|
-
if (
|
|
1979
|
+
async 'list_tasks'(_0x78afde) {
|
|
1980
|
+
const _0x5c8a1f = _0x359f22, _0x32d241 = await _0x2eac44['client'][_0x5c8a1f(_0xf8060a._0x367a77)](_0x78afde);
|
|
1981
|
+
let _0x4459d7;
|
|
1982
|
+
if (_0x2eac44[_0x5c8a1f(_0xf8060a._0x6bbeec)] && _0x2eac44[_0x5c8a1f(0x2f5)])
|
|
1947
1983
|
try {
|
|
1948
|
-
const
|
|
1949
|
-
if (
|
|
1950
|
-
const
|
|
1951
|
-
|
|
1952
|
-
for (const
|
|
1953
|
-
if (
|
|
1984
|
+
const _0x3c95c8 = await fetch(_0x2eac44[_0x5c8a1f(0x18b)] + _0x5c8a1f(_0xf8060a._0xad94e2) + encodeURIComponent(_0x2eac44[_0x5c8a1f(_0xf8060a._0x588ef4)])), _0x35ee10 = await _0x3c95c8[_0x5c8a1f(_0xf8060a._0x5c3e36)]();
|
|
1985
|
+
if (_0x35ee10['ok']) {
|
|
1986
|
+
const _0x343e79 = _0x78afde[_0x5c8a1f(0x188)] + ':';
|
|
1987
|
+
_0x4459d7 = new Set();
|
|
1988
|
+
for (const _0xe89865 of _0x35ee10['workers']) {
|
|
1989
|
+
if (_0xe89865[_0x5c8a1f(0x17b)] === _0x5c8a1f(_0xf8060a._0x54d750))
|
|
1954
1990
|
continue;
|
|
1955
|
-
if (
|
|
1956
|
-
const
|
|
1957
|
-
if (
|
|
1958
|
-
|
|
1991
|
+
if (_0xe89865[_0x5c8a1f(_0xf8060a._0x503d5e)]?.[_0x5c8a1f(_0xf8060a._0x125fff)](_0x343e79)) {
|
|
1992
|
+
const _0x57fd7c = _0xe89865[_0x5c8a1f(0x27e)][_0x5c8a1f(0x231)](_0x343e79[_0x5c8a1f(_0xf8060a._0x2d9878)]), _0x27a74b = _0x32d241[_0x5c8a1f(_0xf8060a._0x42db94)][_0x5c8a1f(_0xf8060a._0x3ac155)](_0x49b653 => _0x49b653['messageId']?.[_0x5c8a1f(0x1a9)](_0x57fd7c) === !![]);
|
|
1993
|
+
if (_0x27a74b?.[_0x5c8a1f(_0xf8060a._0xf6b4d4)] != null) {
|
|
1994
|
+
_0x4459d7['add'](_0x27a74b[_0x5c8a1f(_0xf8060a._0xf6b4d4)]);
|
|
1959
1995
|
continue;
|
|
1960
1996
|
}
|
|
1961
1997
|
}
|
|
1962
|
-
if (
|
|
1963
|
-
const
|
|
1964
|
-
|
|
1998
|
+
if (_0xe89865[_0x5c8a1f(_0xf8060a._0x47a3d2)]) {
|
|
1999
|
+
const _0x134ba2 = _0x32d241[_0x5c8a1f(_0xf8060a._0x42db94)][_0x5c8a1f(0x2d0)](_0x15b0bb => _0x15b0bb[_0x5c8a1f(0x2f4)] === _0xe89865['task_id']);
|
|
2000
|
+
_0x134ba2?.[_0x5c8a1f(_0xf8060a._0xf6b4d4)] != null && _0x4459d7['add'](_0x134ba2[_0x5c8a1f(_0xf8060a._0x1a66ec)]);
|
|
1965
2001
|
}
|
|
1966
2002
|
}
|
|
1967
2003
|
}
|
|
1968
2004
|
} catch {
|
|
1969
2005
|
}
|
|
1970
|
-
return formatTaskList(
|
|
2006
|
+
return formatTaskList(_0x32d241[_0x5c8a1f(0x236)], _0x4459d7);
|
|
1971
2007
|
},
|
|
1972
|
-
async 'create_tasks'(
|
|
1973
|
-
const
|
|
1974
|
-
|
|
1975
|
-
const
|
|
1976
|
-
return formatCreatedTasks(
|
|
2008
|
+
async 'create_tasks'(_0xc4c089) {
|
|
2009
|
+
const _0x3e38a3 = _0x359f22;
|
|
2010
|
+
_0x2022e6(_0x3e38a3(0x1a3), _0xc4c089['channel']);
|
|
2011
|
+
const _0x44d1a1 = await _0x2eac44[_0x3e38a3(0x28f)]['createTasks'](_0xc4c089);
|
|
2012
|
+
return formatCreatedTasks(_0x44d1a1['tasks']);
|
|
1977
2013
|
},
|
|
1978
|
-
async 'claim_tasks'(
|
|
1979
|
-
const
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
if (
|
|
1988
|
-
throw new Error(
|
|
1989
|
-
if (!_0x2aa068['subtask_numbers'] || _0x2aa068[_0x5a0448(_0x1843ac._0x18ad0a)][_0x5a0448(0x1ad)] === 0x0)
|
|
1990
|
-
throw new Error(_0x5a0448(_0x1843ac._0x415b64));
|
|
2014
|
+
async 'claim_tasks'(_0x10cbbd) {
|
|
2015
|
+
const _0x4d71b0 = {
|
|
2016
|
+
_0x308b61: 0x26f,
|
|
2017
|
+
_0x11a028: 0x2c8
|
|
2018
|
+
}, _0x545b09 = _0x359f22;
|
|
2019
|
+
if (_0x2eac44[_0x545b09(_0x29428a._0x567194)]) {
|
|
2020
|
+
_0x2022e6(_0x545b09(_0x29428a._0x376be1), _0x10cbbd[_0x545b09(0x188)]);
|
|
2021
|
+
if (_0x10cbbd[_0x545b09(_0x29428a._0xfecf4f)] && _0x10cbbd[_0x545b09(_0x29428a._0x4fca2c)][_0x545b09(0x1de)] > 0x0)
|
|
2022
|
+
throw new Error('claim_tasks:\x20worker\x20cannot\x20claim\x20by\x20message_ids\x20(top-level\x20message\x20promotion\x20is\x20main-agent\x20only);\x20use\x20subtask_numbers\x20inside\x20your\x20own\x20task\x20thread.');
|
|
2023
|
+
if (!_0x10cbbd[_0x545b09(_0x29428a._0x5c5683)] || _0x10cbbd[_0x545b09(_0x29428a._0x5c5683)][_0x545b09(_0x29428a._0xed11b0)] === 0x0)
|
|
2024
|
+
throw new Error(_0x545b09(_0x29428a._0x3f2def));
|
|
1991
2025
|
}
|
|
1992
|
-
const
|
|
1993
|
-
const
|
|
1994
|
-
if (!
|
|
1995
|
-
return
|
|
2026
|
+
const _0x11f138 = await _0x2eac44[_0x545b09(0x28f)][_0x545b09(0x289)](_0x10cbbd), _0x3cd150 = await Promise[_0x545b09(0x232)](_0x11f138[_0x545b09(_0x29428a._0x29171e)][_0x545b09(0x2b0)](async _0x422215 => {
|
|
2027
|
+
const _0x17715a = _0x545b09;
|
|
2028
|
+
if (!_0x422215[_0x17715a(0x1b9)] || !_0x422215['messageId'])
|
|
2029
|
+
return _0x422215;
|
|
1996
2030
|
try {
|
|
1997
|
-
const
|
|
1998
|
-
'channel':
|
|
1999
|
-
'executionMode':
|
|
2000
|
-
'messageId':
|
|
2001
|
-
'taskId':
|
|
2002
|
-
'taskNumber':
|
|
2003
|
-
'threadNumber':
|
|
2031
|
+
const _0x78647a = await _0x3a1b08({
|
|
2032
|
+
'channel': _0x10cbbd['channel'],
|
|
2033
|
+
'executionMode': _0x422215[_0x17715a(0x18c)],
|
|
2034
|
+
'messageId': _0x422215[_0x17715a(0x244)],
|
|
2035
|
+
'taskId': _0x422215[_0x17715a(0x2f4)],
|
|
2036
|
+
'taskNumber': _0x422215[_0x17715a(0x216)],
|
|
2037
|
+
'threadNumber': _0x422215[_0x17715a(_0x4d71b0._0x308b61)]
|
|
2004
2038
|
});
|
|
2005
|
-
return
|
|
2006
|
-
...
|
|
2007
|
-
...
|
|
2008
|
-
} :
|
|
2009
|
-
} catch (
|
|
2039
|
+
return _0x78647a ? {
|
|
2040
|
+
..._0x422215,
|
|
2041
|
+
..._0x78647a
|
|
2042
|
+
} : _0x422215;
|
|
2043
|
+
} catch (_0x7a744a) {
|
|
2010
2044
|
return {
|
|
2011
|
-
...
|
|
2012
|
-
'workerHandoffError':
|
|
2045
|
+
..._0x422215,
|
|
2046
|
+
'workerHandoffError': _0x7a744a instanceof Error ? _0x7a744a['message'] : _0x17715a(_0x4d71b0._0x11a028)
|
|
2013
2047
|
};
|
|
2014
2048
|
}
|
|
2015
2049
|
}));
|
|
2016
|
-
return formatClaimTaskResults(
|
|
2050
|
+
return formatClaimTaskResults(_0x3cd150);
|
|
2017
2051
|
},
|
|
2018
|
-
async 'unclaim_task'(
|
|
2019
|
-
const
|
|
2020
|
-
if (
|
|
2021
|
-
|
|
2022
|
-
if (
|
|
2023
|
-
throw new Error(
|
|
2052
|
+
async 'unclaim_task'(_0x3c1110) {
|
|
2053
|
+
const _0x39fe1a = _0x359f22;
|
|
2054
|
+
if (_0x2eac44[_0x39fe1a(0x1a6)]) {
|
|
2055
|
+
_0x2022e6(_0x39fe1a(_0x41273c._0x5316a4), _0x3c1110[_0x39fe1a(_0x41273c._0x4e3e11)]);
|
|
2056
|
+
if (_0x3c1110[_0x39fe1a(0x295)] == null)
|
|
2057
|
+
throw new Error(_0x39fe1a(_0x41273c._0x1adc2b));
|
|
2024
2058
|
}
|
|
2025
|
-
const
|
|
2026
|
-
return formatUnclaimTaskResult(
|
|
2059
|
+
const _0x5f360a = await _0x2eac44[_0x39fe1a(0x28f)][_0x39fe1a(0x2e0)](_0x3c1110);
|
|
2060
|
+
return formatUnclaimTaskResult(_0x5f360a);
|
|
2027
2061
|
},
|
|
2028
|
-
async 'update_task_status'(
|
|
2029
|
-
const
|
|
2030
|
-
|
|
2031
|
-
const
|
|
2032
|
-
return formatUpdateTaskStatusResult(
|
|
2062
|
+
async 'update_task_status'(_0x12ef08) {
|
|
2063
|
+
const _0x16a144 = _0x359f22;
|
|
2064
|
+
_0x2022e6(_0x16a144(_0x511d57._0x37f89c), _0x12ef08['channel']);
|
|
2065
|
+
const _0x4cc07b = await _0x2eac44[_0x16a144(0x28f)][_0x16a144(_0x511d57._0x4d9925)](_0x12ef08);
|
|
2066
|
+
return formatUpdateTaskStatusResult(_0x4cc07b);
|
|
2033
2067
|
},
|
|
2034
|
-
async 'upload_file'(
|
|
2035
|
-
const
|
|
2036
|
-
sizeBytes:
|
|
2037
|
-
...
|
|
2038
|
-
} =
|
|
2039
|
-
'channel':
|
|
2040
|
-
...
|
|
2068
|
+
async 'upload_file'(_0x29c4c9) {
|
|
2069
|
+
const _0x3124a2 = _0x359f22, _0x35b9a0 = await _0x2eac44['uploadPreparer'](_0x29c4c9[_0x3124a2(0x24f)]), {
|
|
2070
|
+
sizeBytes: _0x41d74e,
|
|
2071
|
+
..._0x1ebe0f
|
|
2072
|
+
} = _0x35b9a0, _0x1008e0 = await _0x2eac44[_0x3124a2(0x28f)][_0x3124a2(0x1b7)]({
|
|
2073
|
+
'channel': _0x29c4c9['channel'],
|
|
2074
|
+
..._0x1ebe0f
|
|
2041
2075
|
});
|
|
2042
|
-
return formatUploadResult(
|
|
2076
|
+
return formatUploadResult(_0x1008e0);
|
|
2043
2077
|
},
|
|
2044
|
-
async 'view_file'(
|
|
2045
|
-
const
|
|
2046
|
-
if (
|
|
2047
|
-
return formatViewFileResult(
|
|
2048
|
-
const
|
|
2049
|
-
'attachmentId':
|
|
2050
|
-
'contentType':
|
|
2051
|
-
'data':
|
|
2052
|
-
'originalFilename':
|
|
2078
|
+
async 'view_file'(_0x3690b3) {
|
|
2079
|
+
const _0x465f96 = _0x359f22, _0x566175 = await _0x2eac44[_0x465f96(0x29e)][_0x465f96(_0xf165d0._0x162ac1)](_0x3690b3[_0x465f96(_0xf165d0._0x428b5c)]);
|
|
2080
|
+
if (_0x566175)
|
|
2081
|
+
return formatViewFileResult(_0x566175, !![]);
|
|
2082
|
+
const _0x200c27 = await _0x2eac44[_0x465f96(_0xf165d0._0x286ac9)][_0x465f96(0x2bf)](_0x3690b3[_0x465f96(_0xf165d0._0x4cd857)]), _0x361fc7 = await _0x2eac44['attachmentCache'][_0x465f96(0x281)]({
|
|
2083
|
+
'attachmentId': _0x3690b3[_0x465f96(0x279)],
|
|
2084
|
+
'contentType': _0x200c27[_0x465f96(0x257)],
|
|
2085
|
+
'data': _0x200c27[_0x465f96(_0xf165d0._0x5e969f)],
|
|
2086
|
+
'originalFilename': _0x200c27[_0x465f96(_0xf165d0._0x4202d6)]
|
|
2053
2087
|
});
|
|
2054
|
-
return formatViewFileResult(
|
|
2088
|
+
return formatViewFileResult(_0x361fc7, ![]);
|
|
2055
2089
|
},
|
|
2056
|
-
async 'get_worker_status'(
|
|
2057
|
-
const
|
|
2058
|
-
if (!
|
|
2059
|
-
return
|
|
2060
|
-
const
|
|
2061
|
-
if (!
|
|
2062
|
-
return
|
|
2063
|
-
return
|
|
2090
|
+
async 'get_worker_status'(_0x1a8916) {
|
|
2091
|
+
const _0x19054e = _0x359f22;
|
|
2092
|
+
if (!_0x2eac44[_0x19054e(0x18b)])
|
|
2093
|
+
return _0x19054e(0x2d4);
|
|
2094
|
+
const _0x34f3b7 = await fetch(_0x2eac44[_0x19054e(_0x26e494._0x2cc407)] + _0x19054e(0x194) + encodeURIComponent(_0x1a8916[_0x19054e(_0x26e494._0x1b8c68)])), _0x417320 = await _0x34f3b7['json']();
|
|
2095
|
+
if (!_0x417320['ok'])
|
|
2096
|
+
return _0x19054e(_0x26e494._0xd17bf5) + _0x1a8916[_0x19054e(_0x26e494._0x1b8c68)] + _0x19054e(_0x26e494._0x439be6);
|
|
2097
|
+
return _0x19054e(0x230) + _0x1a8916[_0x19054e(_0x26e494._0x241a93)] + _0x19054e(_0x26e494._0x34231c) + _0x417320['status'];
|
|
2064
2098
|
},
|
|
2065
|
-
async 'park_worker'(
|
|
2066
|
-
const
|
|
2067
|
-
if (!
|
|
2068
|
-
return
|
|
2069
|
-
const
|
|
2070
|
-
'method':
|
|
2071
|
-
'headers': { 'Content-Type':
|
|
2072
|
-
'body': JSON[
|
|
2073
|
-
}),
|
|
2074
|
-
if (!
|
|
2075
|
-
throw new Error(
|
|
2076
|
-
return
|
|
2099
|
+
async 'park_worker'(_0x28f0a1) {
|
|
2100
|
+
const _0x11724b = _0x359f22;
|
|
2101
|
+
if (!_0x2eac44['daemonLocalUrl'])
|
|
2102
|
+
return _0x11724b(0x2d4);
|
|
2103
|
+
const _0x8fe9e9 = await fetch(_0x2eac44['daemonLocalUrl'] + '/workers/park', {
|
|
2104
|
+
'method': _0x11724b(0x2bc),
|
|
2105
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2106
|
+
'body': JSON[_0x11724b(_0x206e4e._0x460371)]({ 'work_key': _0x28f0a1['work_key'] })
|
|
2107
|
+
}), _0xae437f = await _0x8fe9e9[_0x11724b(0x1dc)]();
|
|
2108
|
+
if (!_0xae437f['ok'])
|
|
2109
|
+
throw new Error(_0xae437f[_0x11724b(_0x206e4e._0x1a2fa)] ?? 'park_worker\x20failed');
|
|
2110
|
+
return _0x11724b(0x230) + _0x28f0a1[_0x11724b(_0x206e4e._0x32582d)] + _0x11724b(0x300);
|
|
2077
2111
|
},
|
|
2078
|
-
async 'mark_waiting_input'(
|
|
2079
|
-
const
|
|
2080
|
-
if (!
|
|
2081
|
-
return
|
|
2082
|
-
const
|
|
2083
|
-
'method':
|
|
2084
|
-
'headers': { 'Content-Type':
|
|
2085
|
-
'body': JSON[
|
|
2086
|
-
'work_key':
|
|
2087
|
-
'agent_id':
|
|
2112
|
+
async 'mark_waiting_input'(_0x4a41e3) {
|
|
2113
|
+
const _0x2bdd10 = _0x359f22;
|
|
2114
|
+
if (!_0x2eac44[_0x2bdd10(_0x4506ca._0xdd4657)] || !_0x2eac44[_0x2bdd10(_0x4506ca._0x312a17)])
|
|
2115
|
+
return _0x2bdd10(_0x4506ca._0x11147c);
|
|
2116
|
+
const _0x1c82d2 = await fetch(_0x2eac44['daemonLocalUrl'] + _0x2bdd10(_0x4506ca._0x7f6f24), {
|
|
2117
|
+
'method': _0x2bdd10(0x2bc),
|
|
2118
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2119
|
+
'body': JSON[_0x2bdd10(_0x4506ca._0x4dce5f)]({
|
|
2120
|
+
'work_key': _0x4a41e3[_0x2bdd10(0x222)],
|
|
2121
|
+
'agent_id': _0x2eac44[_0x2bdd10(_0x4506ca._0x312a17)]
|
|
2088
2122
|
})
|
|
2089
|
-
}),
|
|
2090
|
-
if (!
|
|
2091
|
-
throw new Error(
|
|
2092
|
-
return
|
|
2123
|
+
}), _0x560fcb = await _0x1c82d2['json']();
|
|
2124
|
+
if (!_0x560fcb['ok'])
|
|
2125
|
+
throw new Error(_0x560fcb[_0x2bdd10(0x2d9)] ?? _0x2bdd10(_0x4506ca._0x220e4a));
|
|
2126
|
+
return 'Worker\x20\x22' + _0x4a41e3[_0x2bdd10(_0x4506ca._0x49a269)] + _0x2bdd10(_0x4506ca._0x20bc12);
|
|
2093
2127
|
},
|
|
2094
|
-
async 'escalate_to_main'(
|
|
2095
|
-
const
|
|
2096
|
-
if (!
|
|
2128
|
+
async 'escalate_to_main'(_0x509af7) {
|
|
2129
|
+
const _0x28850c = _0x359f22;
|
|
2130
|
+
if (!_0x2eac44[_0x28850c(0x18b)])
|
|
2097
2131
|
return 'Worker\x20features\x20not\x20available';
|
|
2098
|
-
const
|
|
2099
|
-
'method':
|
|
2100
|
-
'headers': { 'Content-Type':
|
|
2101
|
-
'body': JSON[
|
|
2102
|
-
'work_key':
|
|
2103
|
-
'reason':
|
|
2132
|
+
const _0x1a4075 = await fetch(_0x2eac44[_0x28850c(0x18b)] + _0x28850c(_0x18484e._0x5acab8), {
|
|
2133
|
+
'method': 'POST',
|
|
2134
|
+
'headers': { 'Content-Type': _0x28850c(0x1f4) },
|
|
2135
|
+
'body': JSON[_0x28850c(_0x18484e._0x3f9ebf)]({
|
|
2136
|
+
'work_key': _0x509af7[_0x28850c(0x222)],
|
|
2137
|
+
'reason': _0x509af7[_0x28850c(_0x18484e._0x20d25f)]
|
|
2104
2138
|
})
|
|
2105
|
-
}),
|
|
2106
|
-
if (!
|
|
2107
|
-
throw new Error(
|
|
2108
|
-
return
|
|
2139
|
+
}), _0x2a2ad6 = await _0x1a4075[_0x28850c(_0x18484e._0x25fbb3)]();
|
|
2140
|
+
if (!_0x2a2ad6['ok'])
|
|
2141
|
+
throw new Error(_0x2a2ad6[_0x28850c(0x2d9)] ?? _0x28850c(0x2a8));
|
|
2142
|
+
return _0x28850c(_0x18484e._0xdd250) + _0x509af7[_0x28850c(_0x18484e._0x51f409)];
|
|
2109
2143
|
}
|
|
2110
2144
|
};
|
|
2111
2145
|
}
|
|
2112
|
-
function textResult(
|
|
2113
|
-
const
|
|
2146
|
+
function textResult(_0x2dd268, _0x164d4f = ![]) {
|
|
2147
|
+
const _0x46dc22 = _0x2869e3;
|
|
2114
2148
|
return {
|
|
2115
2149
|
'content': [{
|
|
2116
|
-
'type':
|
|
2117
|
-
'text':
|
|
2150
|
+
'type': _0x46dc22(0x273),
|
|
2151
|
+
'text': _0x2dd268
|
|
2118
2152
|
}],
|
|
2119
|
-
...
|
|
2153
|
+
..._0x164d4f ? { 'isError': !![] } : {}
|
|
2120
2154
|
};
|
|
2121
2155
|
}
|
|
2122
|
-
async function registerChatBridgeTools(
|
|
2123
|
-
const
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
},
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
},
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
'
|
|
2171
|
-
'
|
|
2172
|
-
'
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
const _0xac494 = _0x176228;
|
|
2156
|
+
async function registerChatBridgeTools(_0x344239, _0x350f7a, _0xc2221d) {
|
|
2157
|
+
const _0x21ffd7 = {
|
|
2158
|
+
_0x3601ac: 0x26b,
|
|
2159
|
+
_0x3f4fbe: 0x1c4,
|
|
2160
|
+
_0x416ffa: 0x2e2,
|
|
2161
|
+
_0x4ac8bc: 0x192,
|
|
2162
|
+
_0x5ce774: 0x2c4,
|
|
2163
|
+
_0x1b1c7e: 0x1f2,
|
|
2164
|
+
_0x16d72c: 0x1f2,
|
|
2165
|
+
_0x17c60b: 0x1ed,
|
|
2166
|
+
_0x30394f: 0x1f6,
|
|
2167
|
+
_0x566f74: 0x24b,
|
|
2168
|
+
_0x46791e: 0x180,
|
|
2169
|
+
_0x18c48c: 0x2e7,
|
|
2170
|
+
_0x4b93c6: 0x26b,
|
|
2171
|
+
_0x2f5e88: 0x1f7,
|
|
2172
|
+
_0x44d579: 0x2df,
|
|
2173
|
+
_0x1b1d83: 0x201,
|
|
2174
|
+
_0x4c6f45: 0x1bb,
|
|
2175
|
+
_0x1cd85b: 0x1c4,
|
|
2176
|
+
_0x166a25: 0x26b,
|
|
2177
|
+
_0x14b6ab: 0x1f2,
|
|
2178
|
+
_0x5334a8: 0x1f2,
|
|
2179
|
+
_0x521f21: 0x1c4,
|
|
2180
|
+
_0x3f48c7: 0x180,
|
|
2181
|
+
_0x111761: 0x242,
|
|
2182
|
+
_0x22aa95: 0x261,
|
|
2183
|
+
_0x3edef4: 0x21f,
|
|
2184
|
+
_0x130919: 0x1a6,
|
|
2185
|
+
_0x1a56e3: 0x1ad
|
|
2186
|
+
}, _0x83cedd = {
|
|
2187
|
+
_0x56d594: 0x234,
|
|
2188
|
+
_0x46c481: 0x1ee
|
|
2189
|
+
}, _0x4b1812 = { _0x4059f3: 0x234 }, _0x458f8e = {
|
|
2190
|
+
_0x5301c4: 0x234,
|
|
2191
|
+
_0x2071bf: 0x29d
|
|
2192
|
+
}, _0x67650f = { _0x570a7f: 0x296 }, _0x33475f = {
|
|
2193
|
+
_0x581bc8: 0x198,
|
|
2194
|
+
_0x2db86e: 0x1df
|
|
2195
|
+
}, _0x468c76 = {
|
|
2196
|
+
_0x45a3e6: 0x1a3,
|
|
2197
|
+
_0x2b8abd: 0x1a7
|
|
2198
|
+
}, _0x30ee8e = { _0x4134a5: 0x271 }, _0x50056d = { _0x595670: 0x234 }, _0x4153f9 = {
|
|
2199
|
+
_0x2ce1eb: 0x234,
|
|
2200
|
+
_0x4fb6e8: 0x179
|
|
2201
|
+
}, _0x688378 = { _0xe4713b: 0x1fd }, _0x10b531 = _0x2869e3, {z: _0x3dc1fa} = await import('zod');
|
|
2202
|
+
_0x344239[_0x10b531(_0x21ffd7._0x3601ac)](_0x10b531(0x275), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
2203
|
+
'target': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2204
|
+
'content': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2205
|
+
'attachment_ids': _0x3dc1fa[_0x10b531(0x1bb)](_0x3dc1fa['string']())[_0x10b531(_0x21ffd7._0x3f4fbe)](),
|
|
2206
|
+
'visibility': _0x3dc1fa['enum']([
|
|
2207
|
+
'public',
|
|
2208
|
+
_0x10b531(_0x21ffd7._0x416ffa)
|
|
2209
|
+
])[_0x10b531(0x1c4)]()[_0x10b531(_0x21ffd7._0x4ac8bc)](_0x10b531(0x17a))
|
|
2210
|
+
}, async _0x1df345 => {
|
|
2211
|
+
const _0xacff69 = _0x10b531;
|
|
2179
2212
|
try {
|
|
2180
|
-
return textResult(await
|
|
2181
|
-
} catch (
|
|
2182
|
-
return textResult(
|
|
2213
|
+
return textResult(await _0x350f7a[_0xacff69(0x275)](_0x1df345));
|
|
2214
|
+
} catch (_0x4d50b2) {
|
|
2215
|
+
return textResult(_0x4d50b2 instanceof Error ? _0x4d50b2[_0xacff69(0x234)] : _0xacff69(_0x688378._0xe4713b), !![]);
|
|
2183
2216
|
}
|
|
2184
|
-
}),
|
|
2185
|
-
const
|
|
2217
|
+
}), _0x344239[_0x10b531(0x26b)](_0x10b531(_0x21ffd7._0x5ce774), _0x10b531(0x26d), {}, async () => {
|
|
2218
|
+
const _0x227876 = _0x10b531;
|
|
2186
2219
|
try {
|
|
2187
|
-
return textResult(await
|
|
2188
|
-
} catch (
|
|
2189
|
-
return textResult(
|
|
2220
|
+
return textResult(await _0x350f7a[_0x227876(0x2c4)]());
|
|
2221
|
+
} catch (_0x46dd56) {
|
|
2222
|
+
return textResult(_0x46dd56 instanceof Error ? _0x46dd56[_0x227876(_0x4153f9._0x2ce1eb)] : _0x227876(_0x4153f9._0x4fb6e8), !![]);
|
|
2190
2223
|
}
|
|
2191
|
-
}),
|
|
2192
|
-
'channel':
|
|
2193
|
-
'limit':
|
|
2194
|
-
'before':
|
|
2195
|
-
'after':
|
|
2196
|
-
}, async
|
|
2197
|
-
const
|
|
2224
|
+
}), _0x344239['tool'](_0x10b531(0x2d5), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
2225
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2226
|
+
'limit': _0x3dc1fa[_0x10b531(_0x21ffd7._0x1b1c7e)]()[_0x10b531(0x1c4)](),
|
|
2227
|
+
'before': _0x3dc1fa[_0x10b531(_0x21ffd7._0x16d72c)]()['optional'](),
|
|
2228
|
+
'after': _0x3dc1fa[_0x10b531(0x1f2)]()[_0x10b531(_0x21ffd7._0x3f4fbe)]()
|
|
2229
|
+
}, async _0x4f104c => {
|
|
2230
|
+
const _0x269718 = _0x10b531;
|
|
2198
2231
|
try {
|
|
2199
|
-
return textResult(await
|
|
2200
|
-
} catch (
|
|
2201
|
-
return textResult(
|
|
2232
|
+
return textResult(await _0x350f7a['read_history'](_0x4f104c));
|
|
2233
|
+
} catch (_0x18ef28) {
|
|
2234
|
+
return textResult(_0x18ef28 instanceof Error ? _0x18ef28[_0x269718(0x234)] : _0x269718(0x29b), !![]);
|
|
2202
2235
|
}
|
|
2203
|
-
}),
|
|
2204
|
-
const
|
|
2236
|
+
}), _0x344239[_0x10b531(0x26b)](_0x10b531(_0x21ffd7._0x17c60b), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2237
|
+
const _0x1b5e38 = _0x10b531;
|
|
2205
2238
|
try {
|
|
2206
|
-
return textResult(await
|
|
2207
|
-
} catch (
|
|
2208
|
-
return textResult(
|
|
2239
|
+
return textResult(await _0x350f7a[_0x1b5e38(0x1ed)]());
|
|
2240
|
+
} catch (_0x4f89e4) {
|
|
2241
|
+
return textResult(_0x4f89e4 instanceof Error ? _0x4f89e4[_0x1b5e38(_0x50056d._0x595670)] : _0x1b5e38(0x195), !![]);
|
|
2209
2242
|
}
|
|
2210
|
-
}),
|
|
2211
|
-
'channel':
|
|
2212
|
-
'status':
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
])[
|
|
2218
|
-
}, async
|
|
2219
|
-
const
|
|
2243
|
+
}), _0x344239[_0x10b531(_0x21ffd7._0x3601ac)](_0x10b531(0x271), _0x10b531(_0x21ffd7._0x30394f), {
|
|
2244
|
+
'channel': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)](),
|
|
2245
|
+
'status': _0x3dc1fa[_0x10b531(_0x21ffd7._0x46791e)]([
|
|
2246
|
+
_0x10b531(_0x21ffd7._0x18c48c),
|
|
2247
|
+
'in_progress',
|
|
2248
|
+
_0x10b531(0x277),
|
|
2249
|
+
'done'
|
|
2250
|
+
])['optional']()
|
|
2251
|
+
}, async _0x39a9cf => {
|
|
2252
|
+
const _0x427744 = _0x10b531;
|
|
2220
2253
|
try {
|
|
2221
|
-
return textResult(await
|
|
2222
|
-
} catch (
|
|
2223
|
-
return textResult(
|
|
2254
|
+
return textResult(await _0x350f7a[_0x427744(_0x30ee8e._0x4134a5)](_0x39a9cf));
|
|
2255
|
+
} catch (_0x4af79c) {
|
|
2256
|
+
return textResult(_0x4af79c instanceof Error ? _0x4af79c[_0x427744(0x234)] : 'list_tasks\x20failed', !![]);
|
|
2224
2257
|
}
|
|
2225
|
-
}),
|
|
2226
|
-
'channel':
|
|
2227
|
-
'idempotency_key':
|
|
2228
|
-
'tasks':
|
|
2229
|
-
'title':
|
|
2230
|
-
'description':
|
|
2231
|
-
'priority':
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2258
|
+
}), _0x344239[_0x10b531(_0x21ffd7._0x4b93c6)]('create_tasks', _0x10b531(0x215), {
|
|
2259
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2260
|
+
'idempotency_key': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)]()[_0x10b531(0x1c4)](),
|
|
2261
|
+
'tasks': _0x3dc1fa[_0x10b531(0x1bb)](_0x3dc1fa[_0x10b531(0x1d5)]({
|
|
2262
|
+
'title': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)](),
|
|
2263
|
+
'description': _0x3dc1fa[_0x10b531(0x24b)]()[_0x10b531(0x1c4)](),
|
|
2264
|
+
'priority': _0x3dc1fa[_0x10b531(0x180)]([
|
|
2265
|
+
_0x10b531(_0x21ffd7._0x2f5e88),
|
|
2266
|
+
'medium',
|
|
2267
|
+
_0x10b531(0x2cc),
|
|
2268
|
+
'urgent'
|
|
2236
2269
|
])['optional']()
|
|
2237
2270
|
}))
|
|
2238
|
-
}, async
|
|
2239
|
-
const
|
|
2271
|
+
}, async _0x53099f => {
|
|
2272
|
+
const _0xfd10f0 = _0x10b531;
|
|
2240
2273
|
try {
|
|
2241
|
-
return textResult(await
|
|
2242
|
-
} catch (
|
|
2243
|
-
return textResult(
|
|
2274
|
+
return textResult(await _0x350f7a[_0xfd10f0(_0x468c76._0x45a3e6)](_0x53099f));
|
|
2275
|
+
} catch (_0x457bea) {
|
|
2276
|
+
return textResult(_0x457bea instanceof Error ? _0x457bea[_0xfd10f0(0x234)] : _0xfd10f0(_0x468c76._0x2b8abd), !![]);
|
|
2244
2277
|
}
|
|
2245
|
-
}),
|
|
2246
|
-
'channel':
|
|
2247
|
-
'task_numbers':
|
|
2248
|
-
'subtask_numbers':
|
|
2249
|
-
'message_ids':
|
|
2250
|
-
'evidence':
|
|
2251
|
-
'create_thread':
|
|
2252
|
-
'create_task':
|
|
2253
|
-
}))[
|
|
2254
|
-
'idempotency_key':
|
|
2255
|
-
}, async
|
|
2256
|
-
const
|
|
2278
|
+
}), _0x344239[_0x10b531(0x26b)](_0x10b531(_0x21ffd7._0x44d579), _0x10b531(_0x21ffd7._0x1b1d83), {
|
|
2279
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2280
|
+
'task_numbers': _0x3dc1fa[_0x10b531(0x1bb)](_0x3dc1fa[_0x10b531(0x1f2)]())[_0x10b531(0x1c4)](),
|
|
2281
|
+
'subtask_numbers': _0x3dc1fa['array'](_0x3dc1fa[_0x10b531(_0x21ffd7._0x16d72c)]())['optional'](),
|
|
2282
|
+
'message_ids': _0x3dc1fa[_0x10b531(_0x21ffd7._0x4c6f45)](_0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)]())[_0x10b531(0x1c4)](),
|
|
2283
|
+
'evidence': _0x3dc1fa['record'](_0x3dc1fa[_0x10b531(0x24b)](), _0x3dc1fa['object']({
|
|
2284
|
+
'create_thread': _0x3dc1fa[_0x10b531(0x1ff)]()['optional'](),
|
|
2285
|
+
'create_task': _0x3dc1fa[_0x10b531(0x1ff)]()['optional']()
|
|
2286
|
+
}))[_0x10b531(_0x21ffd7._0x1cd85b)](),
|
|
2287
|
+
'idempotency_key': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)]()['optional']()
|
|
2288
|
+
}, async _0x17cceb => {
|
|
2289
|
+
const _0x53b556 = _0x10b531;
|
|
2257
2290
|
try {
|
|
2258
|
-
return textResult(await
|
|
2259
|
-
} catch (
|
|
2260
|
-
return textResult(
|
|
2291
|
+
return textResult(await _0x350f7a[_0x53b556(0x2df)](_0x17cceb));
|
|
2292
|
+
} catch (_0x2e0c20) {
|
|
2293
|
+
return textResult(_0x2e0c20 instanceof Error ? _0x2e0c20['message'] : _0x53b556(0x287), !![]);
|
|
2261
2294
|
}
|
|
2262
|
-
}),
|
|
2263
|
-
'channel':
|
|
2264
|
-
'task_number':
|
|
2265
|
-
'subtask_number':
|
|
2266
|
-
'idempotency_key':
|
|
2267
|
-
}, async
|
|
2268
|
-
const
|
|
2295
|
+
}), _0x344239['tool']('unclaim_task', 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
|
|
2296
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2297
|
+
'task_number': _0x3dc1fa[_0x10b531(0x1f2)](),
|
|
2298
|
+
'subtask_number': _0x3dc1fa[_0x10b531(0x1f2)]()[_0x10b531(_0x21ffd7._0x3f4fbe)](),
|
|
2299
|
+
'idempotency_key': _0x3dc1fa[_0x10b531(0x24b)]()[_0x10b531(0x1c4)]()
|
|
2300
|
+
}, async _0x106d73 => {
|
|
2301
|
+
const _0x15eff5 = _0x10b531;
|
|
2269
2302
|
try {
|
|
2270
|
-
return textResult(await
|
|
2271
|
-
} catch (
|
|
2272
|
-
return textResult(
|
|
2303
|
+
return textResult(await _0x350f7a[_0x15eff5(_0x33475f._0x581bc8)](_0x106d73));
|
|
2304
|
+
} catch (_0x455208) {
|
|
2305
|
+
return textResult(_0x455208 instanceof Error ? _0x455208[_0x15eff5(0x234)] : _0x15eff5(_0x33475f._0x2db86e), !![]);
|
|
2273
2306
|
}
|
|
2274
|
-
}),
|
|
2275
|
-
'channel':
|
|
2276
|
-
'task_number':
|
|
2277
|
-
'subtask_number':
|
|
2278
|
-
'status':
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2307
|
+
}), _0x344239[_0x10b531(_0x21ffd7._0x166a25)]('update_task_status', _0x10b531(0x2ea), {
|
|
2308
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2309
|
+
'task_number': _0x3dc1fa[_0x10b531(_0x21ffd7._0x14b6ab)](),
|
|
2310
|
+
'subtask_number': _0x3dc1fa[_0x10b531(_0x21ffd7._0x5334a8)]()[_0x10b531(_0x21ffd7._0x521f21)](),
|
|
2311
|
+
'status': _0x3dc1fa[_0x10b531(_0x21ffd7._0x3f48c7)]([
|
|
2312
|
+
_0x10b531(0x2e7),
|
|
2313
|
+
_0x10b531(_0x21ffd7._0x111761),
|
|
2314
|
+
_0x10b531(0x277),
|
|
2315
|
+
_0x10b531(0x270)
|
|
2283
2316
|
]),
|
|
2284
|
-
'idempotency_key':
|
|
2285
|
-
}, async
|
|
2286
|
-
const
|
|
2317
|
+
'idempotency_key': _0x3dc1fa[_0x10b531(0x24b)]()['optional']()
|
|
2318
|
+
}, async _0x1abd68 => {
|
|
2319
|
+
const _0x4e6ae0 = _0x10b531;
|
|
2287
2320
|
try {
|
|
2288
|
-
return textResult(await
|
|
2289
|
-
} catch (
|
|
2290
|
-
return textResult(
|
|
2321
|
+
return textResult(await _0x350f7a[_0x4e6ae0(_0x67650f._0x570a7f)](_0x1abd68));
|
|
2322
|
+
} catch (_0x264c97) {
|
|
2323
|
+
return textResult(_0x264c97 instanceof Error ? _0x264c97['message'] : _0x4e6ae0(0x1d9), !![]);
|
|
2291
2324
|
}
|
|
2292
|
-
}),
|
|
2293
|
-
'channel':
|
|
2294
|
-
'file_path':
|
|
2295
|
-
}, async
|
|
2296
|
-
const
|
|
2325
|
+
}), _0x344239[_0x10b531(0x26b)]('upload_file', 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2326
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2327
|
+
'file_path': _0x3dc1fa[_0x10b531(0x24b)]()
|
|
2328
|
+
}, async _0x1db35e => {
|
|
2329
|
+
const _0x164ef4 = _0x10b531;
|
|
2297
2330
|
try {
|
|
2298
|
-
return textResult(await
|
|
2299
|
-
} catch (
|
|
2300
|
-
return textResult(
|
|
2331
|
+
return textResult(await _0x350f7a['upload_file'](_0x1db35e));
|
|
2332
|
+
} catch (_0x48d754) {
|
|
2333
|
+
return textResult(_0x48d754 instanceof Error ? _0x48d754[_0x164ef4(0x234)] : _0x164ef4(0x263), !![]);
|
|
2301
2334
|
}
|
|
2302
|
-
}),
|
|
2303
|
-
const
|
|
2335
|
+
}), _0x344239[_0x10b531(0x26b)](_0x10b531(0x1c5), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x3dc1fa['string']() }, async _0xb3a571 => {
|
|
2336
|
+
const _0x496cca = _0x10b531;
|
|
2304
2337
|
try {
|
|
2305
|
-
return textResult(await
|
|
2306
|
-
} catch (
|
|
2307
|
-
return textResult(
|
|
2338
|
+
return textResult(await _0x350f7a[_0x496cca(0x1c5)](_0xb3a571));
|
|
2339
|
+
} catch (_0x56a6c6) {
|
|
2340
|
+
return textResult(_0x56a6c6 instanceof Error ? _0x56a6c6[_0x496cca(0x234)] : _0x496cca(0x1cd), !![]);
|
|
2308
2341
|
}
|
|
2309
|
-
}),
|
|
2310
|
-
const
|
|
2342
|
+
}), _0x344239['tool'](_0x10b531(0x2c1), _0x10b531(_0x21ffd7._0x22aa95), { 'work_key': _0x3dc1fa[_0x10b531(0x24b)]() }, async _0x42b868 => {
|
|
2343
|
+
const _0x15e377 = _0x10b531;
|
|
2311
2344
|
try {
|
|
2312
|
-
return textResult(await
|
|
2313
|
-
} catch (
|
|
2314
|
-
return textResult(
|
|
2345
|
+
return textResult(await _0x350f7a['get_worker_status'](_0x42b868));
|
|
2346
|
+
} catch (_0x4f387e) {
|
|
2347
|
+
return textResult(_0x4f387e instanceof Error ? _0x4f387e[_0x15e377(_0x458f8e._0x5301c4)] : _0x15e377(_0x458f8e._0x2071bf), !![]);
|
|
2315
2348
|
}
|
|
2316
|
-
}),
|
|
2317
|
-
const
|
|
2349
|
+
}), _0x344239[_0x10b531(0x26b)]('park_worker', _0x10b531(_0x21ffd7._0x3edef4), { 'work_key': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)]() }, async _0x1904cb => {
|
|
2350
|
+
const _0xfcc0cf = _0x10b531;
|
|
2318
2351
|
try {
|
|
2319
|
-
return textResult(await
|
|
2320
|
-
} catch (
|
|
2321
|
-
return textResult(
|
|
2352
|
+
return textResult(await _0x350f7a['park_worker'](_0x1904cb));
|
|
2353
|
+
} catch (_0x5ce590) {
|
|
2354
|
+
return textResult(_0x5ce590 instanceof Error ? _0x5ce590[_0xfcc0cf(_0x4b1812._0x4059f3)] : 'park_worker\x20failed', !![]);
|
|
2322
2355
|
}
|
|
2323
|
-
}), !
|
|
2324
|
-
'work_key':
|
|
2325
|
-
'reason':
|
|
2326
|
-
}, async
|
|
2327
|
-
const _0x1e20cd = _0x176228;
|
|
2356
|
+
}), !_0xc2221d?.[_0x10b531(_0x21ffd7._0x130919)] && _0x344239['tool']('escalate_to_main', 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
2357
|
+
'work_key': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2358
|
+
'reason': _0x3dc1fa['string']()
|
|
2359
|
+
}, async _0x27610a => {
|
|
2328
2360
|
try {
|
|
2329
|
-
return textResult(await
|
|
2330
|
-
} catch (
|
|
2331
|
-
return textResult(
|
|
2361
|
+
return textResult(await _0x350f7a['escalate_to_main'](_0x27610a));
|
|
2362
|
+
} catch (_0x5092d4) {
|
|
2363
|
+
return textResult(_0x5092d4 instanceof Error ? _0x5092d4['message'] : 'escalate_to_main\x20failed', !![]);
|
|
2332
2364
|
}
|
|
2333
|
-
}),
|
|
2334
|
-
const
|
|
2365
|
+
}), _0xc2221d?.[_0x10b531(0x1a6)] && _0x344239[_0x10b531(_0x21ffd7._0x4b93c6)](_0x10b531(_0x21ffd7._0x1a56e3), _0x10b531(0x184), { 'work_key': _0x3dc1fa[_0x10b531(0x24b)]() }, async _0x32285d => {
|
|
2366
|
+
const _0x29e945 = _0x10b531;
|
|
2335
2367
|
try {
|
|
2336
|
-
return textResult(await
|
|
2337
|
-
} catch (
|
|
2338
|
-
return textResult(
|
|
2368
|
+
return textResult(await _0x350f7a[_0x29e945(0x1ad)](_0x32285d));
|
|
2369
|
+
} catch (_0x492711) {
|
|
2370
|
+
return textResult(_0x492711 instanceof Error ? _0x492711[_0x29e945(_0x83cedd._0x56d594)] : _0x29e945(_0x83cedd._0x46c481), !![]);
|
|
2339
2371
|
}
|
|
2340
2372
|
});
|
|
2341
2373
|
}
|
|
2342
|
-
async function createChatBridgeServer(
|
|
2343
|
-
const
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
},
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
return await registerChatBridgeTools(_0x16ddad, _0x1d4e14, { 'workerMode': _0x23824f[_0x366b73(0x17b)] }), {
|
|
2351
|
-
'handlers': _0x1d4e14,
|
|
2352
|
-
'server': _0x16ddad
|
|
2374
|
+
async function createChatBridgeServer(_0x52f588) {
|
|
2375
|
+
const _0x525f5b = { _0x1b18d4: 0x302 }, _0x1dd534 = _0x2869e3, {McpServer: _0x34cc28} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x4d5fe7 = new _0x34cc28({
|
|
2376
|
+
'name': _0x1dd534(_0x525f5b._0x1b18d4),
|
|
2377
|
+
'version': _0x1dd534(0x1bf)
|
|
2378
|
+
}), _0x1da85a = createChatBridgeHandlers(_0x52f588);
|
|
2379
|
+
return await registerChatBridgeTools(_0x4d5fe7, _0x1da85a, { 'workerMode': _0x52f588[_0x1dd534(0x1a6)] }), {
|
|
2380
|
+
'handlers': _0x1da85a,
|
|
2381
|
+
'server': _0x4d5fe7
|
|
2353
2382
|
};
|
|
2354
2383
|
}
|
|
2355
|
-
function readFlag(
|
|
2356
|
-
const
|
|
2357
|
-
if (
|
|
2384
|
+
function readFlag(_0x4ef45f, _0x59f1ff) {
|
|
2385
|
+
const _0x532126 = _0x2869e3, _0x63680c = _0x4ef45f[_0x532126(0x2c2)](_0x59f1ff);
|
|
2386
|
+
if (_0x63680c === -0x1)
|
|
2358
2387
|
return void 0x0;
|
|
2359
|
-
return
|
|
2388
|
+
return _0x4ef45f[_0x63680c + 0x1];
|
|
2360
2389
|
}
|
|
2361
|
-
function parseChatBridgeArgs(
|
|
2362
|
-
const
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
throw new Error(_0xf384d3(0x242));
|
|
2377
|
-
if (_0x2a7f10 !== void 0x0 && (_0x4a7827 === void 0x0 || !Number[_0xf384d3(_0x115544._0x343e09)](_0x4a7827) || _0x4a7827 < 0x0))
|
|
2378
|
-
throw new Error(_0xf384d3(_0x115544._0x546230));
|
|
2390
|
+
function parseChatBridgeArgs(_0x41d417) {
|
|
2391
|
+
const _0x285a44 = {
|
|
2392
|
+
_0x110135: 0x2a0,
|
|
2393
|
+
_0x4f977d: 0x2d3,
|
|
2394
|
+
_0x3f0a14: 0x262,
|
|
2395
|
+
_0x1d1b07: 0x2fa,
|
|
2396
|
+
_0x396e68: 0x1f5,
|
|
2397
|
+
_0x19466f: 0x2a7
|
|
2398
|
+
}, _0x39ea12 = _0x2869e3, _0x12ba8d = readFlag(_0x41d417, _0x39ea12(_0x285a44._0x110135)), _0x4d6162 = readFlag(_0x41d417, _0x39ea12(0x2d7)), _0x810aa5 = readFlag(_0x41d417, _0x39ea12(0x260)), _0x46a73b = readFlag(_0x41d417, '--initial-last-seen-seq'), _0x449174 = readFlag(_0x41d417, _0x39ea12(0x1b6)) ?? _0x39ea12(0x245), _0x2aac81 = readFlag(_0x41d417, '--daemon-local-url'), _0x2fc759 = readFlag(_0x41d417, '--session-id'), _0x10507e = readFlag(_0x41d417, '--worker-mode-enabled'), _0x41c537 = readFlag(_0x41d417, _0x39ea12(_0x285a44._0x4f977d)), _0x47fac6 = readFlag(_0x41d417, _0x39ea12(_0x285a44._0x3f0a14)), _0x3e6c22 = _0x41d417[_0x39ea12(0x182)](_0x39ea12(0x28e)), _0x1ef668 = _0x46a73b === void 0x0 ? void 0x0 : Number[_0x39ea12(_0x285a44._0x1d1b07)](_0x46a73b, 0xa);
|
|
2399
|
+
if (!_0x12ba8d)
|
|
2400
|
+
throw new Error(_0x39ea12(_0x285a44._0x396e68));
|
|
2401
|
+
if (!_0x810aa5)
|
|
2402
|
+
throw new Error('Missing\x20--daemon-api-key');
|
|
2403
|
+
if (_0x46a73b !== void 0x0 && (_0x1ef668 === void 0x0 || !Number[_0x39ea12(0x278)](_0x1ef668) || _0x1ef668 < 0x0))
|
|
2404
|
+
throw new Error(_0x39ea12(0x2b6));
|
|
2379
2405
|
return {
|
|
2380
|
-
'agentId':
|
|
2381
|
-
'attachmentCacheDir':
|
|
2382
|
-
'daemonApiKey':
|
|
2383
|
-
'daemonLocalUrl':
|
|
2384
|
-
'initialLastSeenSeq':
|
|
2385
|
-
'sessionId':
|
|
2386
|
-
'serverUrl':
|
|
2387
|
-
'workerModeEnabled':
|
|
2388
|
-
'workerSessionId':
|
|
2389
|
-
'workerThreadTarget':
|
|
2390
|
-
'workerMode':
|
|
2406
|
+
'agentId': _0x12ba8d,
|
|
2407
|
+
'attachmentCacheDir': _0x4d6162,
|
|
2408
|
+
'daemonApiKey': _0x810aa5,
|
|
2409
|
+
'daemonLocalUrl': _0x2aac81,
|
|
2410
|
+
'initialLastSeenSeq': _0x1ef668,
|
|
2411
|
+
'sessionId': _0x2fc759,
|
|
2412
|
+
'serverUrl': _0x449174,
|
|
2413
|
+
'workerModeEnabled': _0x10507e === void 0x0 ? void 0x0 : _0x10507e !== _0x39ea12(_0x285a44._0x19466f),
|
|
2414
|
+
'workerSessionId': _0x41c537,
|
|
2415
|
+
'workerThreadTarget': _0x47fac6,
|
|
2416
|
+
'workerMode': _0x3e6c22
|
|
2391
2417
|
};
|
|
2392
2418
|
}
|
|
2393
|
-
async function runChatBridgeCli(
|
|
2394
|
-
const
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
},
|
|
2399
|
-
'agentId':
|
|
2400
|
-
'attachmentCache':
|
|
2401
|
-
'client':
|
|
2402
|
-
'daemonLocalUrl':
|
|
2419
|
+
async function runChatBridgeCli(_0x221ee0) {
|
|
2420
|
+
const _0x1ea745 = {
|
|
2421
|
+
_0x53a74e: 0x205,
|
|
2422
|
+
_0x40509a: 0x2fc,
|
|
2423
|
+
_0x1da39a: 0x17e
|
|
2424
|
+
}, _0x21764a = _0x2869e3, _0x307d59 = parseChatBridgeArgs(_0x221ee0), {StdioServerTransport: _0x4a4ba0} = await import(_0x21764a(_0x1ea745._0x53a74e)), _0x4e637a = createInternalAgentClient(_0x307d59), _0xab1659 = createAttachmentCache({ 'cacheDir': _0x307d59[_0x21764a(0x191)] }), _0x11e8e3 = await createChatBridgeServer({
|
|
2425
|
+
'agentId': _0x307d59[_0x21764a(0x2f5)],
|
|
2426
|
+
'attachmentCache': _0xab1659,
|
|
2427
|
+
'client': _0x4e637a,
|
|
2428
|
+
'daemonLocalUrl': _0x307d59['daemonLocalUrl'],
|
|
2403
2429
|
'uploadPreparer': prepareUploadFile,
|
|
2404
|
-
'workerModeEnabled':
|
|
2405
|
-
'workerMode':
|
|
2406
|
-
'workerThreadTarget':
|
|
2430
|
+
'workerModeEnabled': _0x307d59['workerModeEnabled'],
|
|
2431
|
+
'workerMode': _0x307d59[_0x21764a(0x1a6)],
|
|
2432
|
+
'workerThreadTarget': _0x307d59['workerThreadTarget']
|
|
2407
2433
|
});
|
|
2408
|
-
await
|
|
2434
|
+
await _0x11e8e3[_0x21764a(_0x1ea745._0x40509a)][_0x21764a(_0x1ea745._0x1da39a)](new _0x4a4ba0());
|
|
2409
2435
|
}
|
|
2410
|
-
var executedAsEntry = process[
|
|
2411
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2436
|
+
var executedAsEntry = process[_0x2869e3(0x2e8)][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])[_0x2869e3(0x2ad)] : ![];
|
|
2437
|
+
executedAsEntry && await runChatBridgeCli(process[_0x2869e3(0x2e8)][_0x2869e3(0x231)](0x2));
|
|
2412
2438
|
export {
|
|
2413
2439
|
createChatBridgeHandlers,
|
|
2414
2440
|
createChatBridgeServer,
|