@dscord/daemon 0.1.58 → 0.1.59
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 +1998 -1975
- package/dist/index.js +10594 -10592
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,2352 +1,2375 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let _0x1754b5 = '', _0x2d13c1 = '';
|
|
30
|
-
for (let _0x5149dd = 0x0, _0x23723c, _0x19b1e4, _0x323dfd = 0x0; _0x19b1e4 = _0x4207ee['charAt'](_0x323dfd++); ~_0x19b1e4 && (_0x23723c = _0x5149dd % 0x4 ? _0x23723c * 0x40 + _0x19b1e4 : _0x19b1e4, _0x5149dd++ % 0x4) ? _0x1754b5 += String['fromCharCode'](0xff & _0x23723c >> (-0x2 * _0x5149dd & 0x6)) : 0x0) {
|
|
31
|
-
_0x19b1e4 = _0x4e1bf8['indexOf'](_0x19b1e4);
|
|
32
|
-
}
|
|
33
|
-
for (let _0x533353 = 0x0, _0x3f048d = _0x1754b5['length']; _0x533353 < _0x3f048d; _0x533353++) {
|
|
34
|
-
_0x2d13c1 += '%' + ('00' + _0x1754b5['charCodeAt'](_0x533353)['toString'](0x10))['slice'](-0x2);
|
|
35
|
-
}
|
|
36
|
-
return decodeURIComponent(_0x2d13c1);
|
|
37
|
-
};
|
|
38
|
-
_0x1a4c['MIKKHJ'] = _0x95ab44, _0x1a4c['qhMGSq'] = {}, _0x1a4c['iVoWcv'] = !![];
|
|
39
|
-
}
|
|
40
|
-
const _0x211221 = _0x4f0b2b[0x0], _0x2fe278 = _0x1aa018 + _0x211221, _0x3d801c = _0x1a4c['qhMGSq'][_0x2fe278];
|
|
41
|
-
return !_0x3d801c ? (_0x1a4c77 = _0x1a4c['MIKKHJ'](_0x1a4c77), _0x1a4c['qhMGSq'][_0x2fe278] = _0x1a4c77) : _0x1a4c77 = _0x3d801c, _0x1a4c77;
|
|
42
|
-
}
|
|
43
|
-
import {
|
|
44
|
-
mkdir,
|
|
45
|
-
readFile,
|
|
46
|
-
readdir,
|
|
47
|
-
stat,
|
|
48
|
-
writeFile
|
|
49
|
-
} from 'node:fs/promises';
|
|
50
|
-
import { homedir } from 'node:os';
|
|
51
|
-
import _0x1754b5 from 'node:path';
|
|
52
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
53
|
-
'.csv': _0xba094d(0x25e),
|
|
54
|
-
'.gif': _0xba094d(0x125),
|
|
55
|
-
'.jpeg': _0xba094d(0x23c),
|
|
56
|
-
'.jpg': _0xba094d(0x23c),
|
|
57
|
-
'.json': _0xba094d(0x246),
|
|
58
|
-
'.md': _0xba094d(0x1d5),
|
|
59
|
-
'.pdf': _0xba094d(0x255),
|
|
60
|
-
'.png': _0xba094d(0x225),
|
|
61
|
-
'.svg': _0xba094d(0x19f),
|
|
62
|
-
'.txt': _0xba094d(0x1fd),
|
|
63
|
-
'.webp': _0xba094d(0x238),
|
|
64
|
-
'.xml': 'application/xml',
|
|
65
|
-
'.zip': 'application/zip'
|
|
66
|
-
};
|
|
67
|
-
function guessContentType(_0x2d13c1) {
|
|
68
|
-
const _0x37f10c = _0xba094d;
|
|
69
|
-
return MIME_BY_EXTENSION[_0x1754b5[_0x37f10c(0x184)](_0x2d13c1)[_0x37f10c(0x1e3)]()] ?? 'application/octet-stream';
|
|
70
|
-
}
|
|
71
|
-
function safeFilename(_0x5149dd) {
|
|
72
|
-
const _0x2308cd = { _0x34e7f6: 0x1ec }, _0x405292 = _0xba094d;
|
|
73
|
-
return _0x5149dd[_0x405292(_0x2308cd._0x34e7f6)](/[\\/]/g, '-');
|
|
74
|
-
}
|
|
75
|
-
function extensionFor(_0x23723c) {
|
|
76
|
-
const _0xbac121 = { _0x4bc82f: 0x1cb }, _0x38bf3e = _0xba094d, _0x19b1e4 = Object['entries'](MIME_BY_EXTENSION)[_0x38bf3e(0x254)](([, _0x323dfd]) => _0x323dfd === _0x23723c);
|
|
77
|
-
return _0x19b1e4?.[0x0] ?? _0x38bf3e(_0xbac121._0x4bc82f);
|
|
78
|
-
}
|
|
79
|
-
async function prepareUploadFile(_0x533353, _0x3f048d = {}) {
|
|
80
|
-
const _0x11f745 = {
|
|
81
|
-
_0x5140d7: 0xed,
|
|
82
|
-
_0x51b61d: 0x206
|
|
83
|
-
}, _0x59ccec = _0xba094d;
|
|
84
|
-
if (!_0x1754b5[_0x59ccec(0x15e)](_0x533353))
|
|
85
|
-
throw new Error(_0x59ccec(0x12a));
|
|
86
|
-
const _0x20fcae = await stat(_0x533353)[_0x59ccec(0xf8)](() => null);
|
|
87
|
-
if (!_0x20fcae || !_0x20fcae['isFile']())
|
|
88
|
-
throw new Error(_0x59ccec(0xe4) + _0x533353);
|
|
89
|
-
const _0x1f6298 = _0x3f048d[_0x59ccec(_0x11f745._0x5140d7)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
90
|
-
if (_0x20fcae['size'] > _0x1f6298)
|
|
91
|
-
throw new Error(_0x59ccec(0x227) + _0x20fcae['size']);
|
|
92
|
-
const _0x539a13 = await readFile(_0x533353), _0x324030 = _0x1754b5[_0x59ccec(0x12d)](_0x533353);
|
|
93
|
-
return {
|
|
94
|
-
'contentBase64': _0x539a13[_0x59ccec(_0x11f745._0x51b61d)]('base64'),
|
|
95
|
-
'contentType': guessContentType(_0x324030),
|
|
96
|
-
'filename': _0x324030,
|
|
97
|
-
'sizeBytes': _0x20fcae['size']
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function createAttachmentCache(_0x3facc8 = {}) {
|
|
101
|
-
const _0xfa294e = {
|
|
102
|
-
_0xa0ed7f: 0x234,
|
|
103
|
-
_0xdad024: 0xf6
|
|
104
|
-
}, _0x405856 = {
|
|
105
|
-
_0x24e227: 0x1bf,
|
|
106
|
-
_0x189955: 0x1f5,
|
|
107
|
-
_0x4245e4: 0x1e2
|
|
108
|
-
}, _0x8bd20a = _0xba094d, _0x2116a3 = _0x3facc8[_0x8bd20a(0xe9)] ?? _0x1754b5[_0x8bd20a(_0xfa294e._0xa0ed7f)](homedir(), _0x8bd20a(0x1ff), _0x8bd20a(_0xfa294e._0xdad024));
|
|
109
|
-
return {
|
|
110
|
-
'cacheDir': _0x2116a3,
|
|
111
|
-
async 'findCachedPath'(_0x528132) {
|
|
112
|
-
const _0x130e3e = _0x8bd20a;
|
|
113
|
-
await mkdir(_0x2116a3, { 'recursive': !![] });
|
|
114
|
-
const _0x42f976 = await readdir(_0x2116a3), _0x5002ab = _0x42f976[_0x130e3e(0x254)](_0x271054 => _0x271054[_0x130e3e(0x1a8)](_0x528132 + '-') || _0x271054[_0x130e3e(0x1a8)](_0x528132));
|
|
115
|
-
return _0x5002ab ? _0x1754b5[_0x130e3e(0x234)](_0x2116a3, _0x5002ab) : null;
|
|
116
|
-
},
|
|
117
|
-
async 'save'(_0x1b49ec) {
|
|
118
|
-
const _0x190d44 = _0x8bd20a;
|
|
119
|
-
await mkdir(_0x2116a3, { 'recursive': !![] });
|
|
120
|
-
const _0x10230b = _0x1b49ec[_0x190d44(0x1bf)]?.[_0x190d44(0x10b)]() ? safeFilename(_0x1b49ec[_0x190d44(_0x405856._0x24e227)]) : '' + _0x1b49ec[_0x190d44(0x1e2)] + extensionFor(_0x1b49ec[_0x190d44(_0x405856._0x189955)]), _0x56a1fc = _0x1754b5['join'](_0x2116a3, _0x1b49ec[_0x190d44(_0x405856._0x4245e4)] + '-' + _0x10230b);
|
|
121
|
-
return await writeFile(_0x56a1fc, _0x1b49ec[_0x190d44(0x14f)]), _0x56a1fc;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
import {
|
|
126
|
-
createHash,
|
|
127
|
-
randomUUID
|
|
128
|
-
} from 'node:crypto';
|
|
129
|
-
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
130
|
-
function ensureSegment(_0x4e9554) {
|
|
131
|
-
const _0x435b45 = _0xba094d, _0x33d029 = _0x4e9554[_0x435b45(0x10b)]();
|
|
132
|
-
if (!_0x33d029 || _0x33d029[_0x435b45(0x23a)](':'))
|
|
133
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
134
|
-
return _0x33d029;
|
|
135
|
-
}
|
|
136
|
-
function parseThreadParts(_0x3dc79f) {
|
|
137
|
-
const _0x1f2b8a = { _0x32da18: 0x190 }, _0x77b57f = _0xba094d, _0x493eb5 = _0x3dc79f[_0x77b57f(0x243)](':');
|
|
138
|
-
if (_0x493eb5[_0x77b57f(0x190)] < 0x1 || _0x493eb5[_0x77b57f(_0x1f2b8a._0x32da18)] > 0x2)
|
|
139
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
140
|
-
return {
|
|
141
|
-
'channelName': ensureSegment(_0x493eb5[0x0] ?? ''),
|
|
142
|
-
'threadShortId': _0x493eb5[0x1] ? ensureSegment(_0x493eb5[0x1]) : null
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
function _0x4f0b() {
|
|
146
|
-
const _0x262487 = [
|
|
147
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
148
|
-
'ktSGz290ignOyw5UzwW9',
|
|
149
|
-
'v29YA2vYia',
|
|
150
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
151
|
-
'Aw1Hz2uVCg5N',
|
|
152
|
-
'DMfSDwvZ',
|
|
153
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1
|
+
function _0x5b92() {
|
|
2
|
+
const _0x543c38 = [
|
|
3
|
+
'DgHYzwfK',
|
|
4
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
5
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
6
|
+
'ignSywLTzwq',
|
|
7
|
+
'DMLLD19MAwXL',
|
|
8
|
+
'y2HHBM5LBeLK',
|
|
9
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
10
|
+
'zxHWAxjLC0f0',
|
|
11
|
+
'cGOTls0G',
|
|
12
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
13
|
+
'r0vu',
|
|
14
|
+
'C2L6zq',
|
|
15
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
16
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
17
|
+
'icHPzdO',
|
|
18
|
+
'CMvHzf9OAxn0B3j5',
|
|
19
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
20
|
+
'C2vUzgvYvhLWzq',
|
|
21
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
22
|
+
'C2vYDMvYtMfTzq',
|
|
23
|
+
'y3jLyxrLzef0',
|
|
24
|
+
'DxjNzw50',
|
|
25
|
+
'CgfYC2u',
|
|
26
|
+
'ihn0yxr1CZ0',
|
|
27
|
+
'igLUia',
|
|
28
|
+
'ywjVCNrLza',
|
|
154
29
|
'BwvZC2fNzq',
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
'ywXS',
|
|
162
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
163
|
-
'y2XPzw50',
|
|
164
|
-
'CMvXDwvZDfvYBa',
|
|
165
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
166
|
-
'AM9PBG',
|
|
167
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
168
|
-
'y3jLyxrLvgfZA3m',
|
|
169
|
-
'AgfZ',
|
|
170
|
-
'Aw1Hz2uVD2vICa',
|
|
30
|
+
'DhLWzq',
|
|
31
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
32
|
+
'mc4WlJa',
|
|
33
|
+
'AgLNAa',
|
|
34
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
35
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
171
36
|
'CMvHzeHPC3rVCNK',
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
176
|
-
'zNjVBq',
|
|
177
|
-
'w3nLCt0',
|
|
178
|
-
'mJrQyvnOzxa',
|
|
179
|
-
'z2v0',
|
|
180
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
181
|
-
'C3bSAxq',
|
|
182
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
183
|
-
'y29UDgvUDa',
|
|
184
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
185
|
-
'DgfYz2v0zwruyxnR',
|
|
37
|
+
'ANnVBG',
|
|
38
|
+
'C2nOzwr1BgvKrM9Y',
|
|
39
|
+
'vgfZAYa',
|
|
186
40
|
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
187
|
-
'
|
|
41
|
+
'CMvZCg9UC2u',
|
|
188
42
|
'yxr0ywnOBwvUDf9Pzhm',
|
|
189
|
-
'
|
|
190
|
-
'
|
|
191
|
-
'
|
|
43
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
44
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
45
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
46
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
47
|
+
'y2XHAw1uyxnRCW',
|
|
48
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
49
|
+
'CMvHC29U',
|
|
50
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
51
|
+
'DgHYzwfKtNvTyMvY',
|
|
52
|
+
'l2HPC3rVCNK/',
|
|
53
|
+
'D3m6',
|
|
54
|
+
'ihr5Cgu9ywDLBNq',
|
|
55
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
56
|
+
'ChjVDg9JB2W',
|
|
57
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
58
|
+
'ywDLBNrZ',
|
|
59
|
+
'Dg9gAxHLza',
|
|
60
|
+
'igTPBMq9',
|
|
61
|
+
'l3nLCNzLCG',
|
|
62
|
+
'l3vWBg9Hza',
|
|
63
|
+
'D29YA2vYCW',
|
|
64
|
+
'DgfYz2v0',
|
|
65
|
+
'y2HPBgrYzw5eB25L',
|
|
66
|
+
'Dw5RBM93BG',
|
|
67
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
192
68
|
'zMLSDgvY',
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
196
|
-
'lIbnzxnZywDLieLeoIa',
|
|
197
|
-
'z2v0sg91CNm',
|
|
198
|
-
'zMLUza',
|
|
199
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
200
|
-
'C29Tzq',
|
|
201
|
-
'DgfZAW',
|
|
202
|
-
'ntu1mJK3AwnmAePn',
|
|
203
|
-
'lsba',
|
|
204
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
205
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
206
|
-
'C2HHmJu2',
|
|
69
|
+
'ywjVCNq',
|
|
70
|
+
'ig1LC3nHz2u9',
|
|
207
71
|
'ywDLBNq',
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
'
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
72
|
+
'C3rHCNrZv2L0Aa',
|
|
73
|
+
'z2v0twLUDxrLCW',
|
|
74
|
+
'z2v0u2vJB25KCW',
|
|
75
|
+
'zxH0BMfTzq',
|
|
76
|
+
'y29UBMvJDa',
|
|
77
|
+
'zMLSzv9WyxrO',
|
|
78
|
+
'y29UDgvUDfr5Cgu',
|
|
79
|
+
'w3nLCt0',
|
|
80
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
81
|
+
'v29YA2vYia',
|
|
82
|
+
'C3rYAw5N',
|
|
83
|
+
'ig1LC3nHz2vZkqOk',
|
|
84
|
+
'ChvZAa',
|
|
85
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
86
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
87
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
88
|
+
'6k+35Rgcia',
|
|
89
|
+
'B3b0Aw9UywW',
|
|
215
90
|
'DgHYzwfKvgfYz2v0pq',
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'yxjYyxLcDwzMzxi',
|
|
226
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
227
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
228
|
-
'DgfZA19Pza',
|
|
229
|
-
'Agv4',
|
|
230
|
-
'zxjYB3i',
|
|
231
|
-
'ihn0yxr1CZ0',
|
|
232
|
-
'BwfW',
|
|
233
|
-
'z2v0vgLTzq',
|
|
234
|
-
'Dw5JBgfPBvrHC2S',
|
|
235
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
236
|
-
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
237
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
238
|
-
'y3vYC29Y',
|
|
239
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
240
|
-
'y2fJAgveAxi',
|
|
241
|
-
'CgfYC2u',
|
|
242
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
243
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
91
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
92
|
+
'mZbIsxziCva',
|
|
93
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
94
|
+
'y2XHAw0GzMfPBgvK',
|
|
95
|
+
'AgfZ',
|
|
96
|
+
'y3jLyxrLvgfZA3m',
|
|
97
|
+
'D29YA2vY',
|
|
98
|
+
'zgfLBw9UqxbPs2v5',
|
|
99
|
+
'v29YA2vYici',
|
|
244
100
|
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
245
|
-
'yxnPzgu',
|
|
246
|
-
'iYmJienOyw5UzwXZ',
|
|
247
|
-
'zgvZy3jPChrPB24',
|
|
248
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
249
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
250
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
251
|
-
'l3DVCMTLCNmVCgfYAW',
|
|
252
|
-
'DxnLCG',
|
|
253
101
|
'yxr0ywnOBwvUDhm',
|
|
254
|
-
'mKTvAwXdwq',
|
|
255
|
-
'y2f0y2G',
|
|
256
|
-
'BNvTyMvY',
|
|
257
|
-
'y2HHBM5LBeLK',
|
|
258
|
-
'CMvZB2X2zvrHCMDLDa',
|
|
259
|
-
'l3jLy2vPDMu',
|
|
260
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
261
|
-
'C2vX',
|
|
262
|
-
'BgLZDf9Zzxj2zxi',
|
|
263
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
264
|
-
'y29UDgvUDc10ExbL',
|
|
265
|
-
'AgvHzgvYCW',
|
|
266
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
267
|
-
'y2XHAw0GzMfPBgvK',
|
|
268
|
-
'C2v0',
|
|
269
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
270
|
-
'z2v0u2vJB25KCW',
|
|
271
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
272
|
-
'C2vUzgvYvhLWzq',
|
|
273
|
-
'CgfYC2vjBNq',
|
|
274
|
-
'DhjPBq',
|
|
275
|
-
'pgvTChr5pG',
|
|
276
|
-
'yMvMB3jL',
|
|
277
|
-
'kg5VBMuP',
|
|
278
|
-
'AxnbCNjHEq',
|
|
279
|
-
'C29YDa',
|
|
280
|
-
'zMv0y2HjBxbS',
|
|
281
|
-
'ywDLBNrZ',
|
|
282
|
-
'zMLSzw5HBwu',
|
|
283
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
284
|
-
'D3m6',
|
|
285
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
286
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
287
|
-
'CxvLDwvK',
|
|
288
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
289
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
290
|
-
'ig1ZzZ0',
|
|
291
|
-
'y29UBMvJDa',
|
|
292
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
293
|
-
'zMfSC2u',
|
|
294
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
295
|
-
'DgvZDa',
|
|
296
|
-
'zgLZCg9ZAxrPB24',
|
|
297
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
298
|
-
'C2vUzf9TzxnZywDL',
|
|
299
|
-
'AgLNAa',
|
|
300
|
-
'Aw1Hz2uVz2LM',
|
|
301
|
-
'CMvJB3jK',
|
|
302
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
303
|
-
'AhvTyw5Z',
|
|
304
|
-
'zM9Yy2vszwzYzxnO',
|
|
305
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
306
|
-
'BgLTAxq',
|
|
307
|
-
'l3n0yxj0',
|
|
308
|
-
'yMfZzw5HBwu',
|
|
309
|
-
'BM93',
|
|
310
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
311
|
-
'DxbKyxrL',
|
|
312
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
313
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
314
|
-
'mtyXodeWDKr4t1Po',
|
|
315
|
-
'CgfYDgLJAxbHBNq',
|
|
316
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
317
|
-
'z2v0rNvSBfLLyxi',
|
|
318
102
|
'zw51Bq',
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
330
|
-
'Bwf4',
|
|
331
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
332
|
-
'ig1LC3nHz2vZkqOk',
|
|
333
|
-
'Dw5RBM93BG',
|
|
103
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
104
|
+
'BgLTAxq',
|
|
105
|
+
'pgvTChr5pG',
|
|
106
|
+
'DgHYzwfKu2HVCNrjza',
|
|
107
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
108
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
109
|
+
'l3rHC2TZl2nSywLT',
|
|
110
|
+
'iJOGC3rHDhvZpq',
|
|
111
|
+
'Cgf5Bg9HzePZB24',
|
|
112
|
+
'yxnPzgu',
|
|
334
113
|
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
335
|
-
'
|
|
336
|
-
'
|
|
114
|
+
'BgLZDfnLCNzLCG',
|
|
115
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
116
|
+
'zg0T',
|
|
117
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
118
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
337
119
|
'BwvZC2fNzv9Pzhm',
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'
|
|
343
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
344
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
345
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
346
|
-
'C2L6zuj5DgvZ',
|
|
347
|
-
'DhLWzq',
|
|
348
|
-
'Aw5FChjVz3jLC3m',
|
|
349
|
-
'DxjNzw50',
|
|
350
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
351
|
-
'C2vYDMvYvxjS',
|
|
352
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
353
|
-
'ywz0zxi',
|
|
354
|
-
'DxrMoa',
|
|
355
|
-
'DgfZA0LK',
|
|
356
|
-
'DgfYz2v0',
|
|
357
|
-
'AxnbyNnVBhv0zq',
|
|
358
|
-
'DgHYzwfKvgfYz2v0',
|
|
359
|
-
'C2nOzwr1BgvKrM9Y',
|
|
360
|
-
'DgHYzwfKswq',
|
|
361
|
-
'A2LUza',
|
|
362
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
363
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
364
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
365
|
-
'l2zPBMLZAa',
|
|
366
|
-
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
367
|
-
'DMLLD19MAwXL',
|
|
120
|
+
'zNjVBq',
|
|
121
|
+
'CxvLDwvK',
|
|
122
|
+
'ywDNCMvNyxrLswrZ',
|
|
123
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
124
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
368
125
|
'C2vZC2LVBKLK',
|
|
369
|
-
'
|
|
370
|
-
'Ahr0Chm6',
|
|
126
|
+
'ig1ZzZ0',
|
|
371
127
|
'CgfYA193B3jRzxi',
|
|
372
|
-
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
373
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
374
|
-
'D2fPDgLUz19PBNb1Da',
|
|
375
|
-
'D3nZoG',
|
|
376
|
-
'igTPBMq9',
|
|
377
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
378
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
379
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
380
|
-
'zMLSzv9WyxrO',
|
|
381
|
-
'ywDLBNrjza',
|
|
382
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
383
|
-
'D29YA2vYCW',
|
|
384
|
-
'yxjYyxK',
|
|
385
|
-
'ywDNCMvNyxrLswq',
|
|
386
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
387
|
-
'DMLZAwjPBgL0Eq',
|
|
388
|
-
'igrVBMuP',
|
|
389
|
-
'z2v0tw9UDgG',
|
|
390
|
-
'C2LNBMfS',
|
|
391
|
-
'y2HPBgrYzw5uB3rHBa',
|
|
392
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
393
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
394
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
395
|
-
'zxH0BMfTzq',
|
|
396
|
-
'EM9K',
|
|
397
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
398
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
399
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
400
|
-
'igf0DgfJAg1LBNq',
|
|
401
|
-
'zgvZy3jPyMu',
|
|
402
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
403
|
-
'ywrK',
|
|
404
|
-
'kgXLz2fJEsK',
|
|
405
128
|
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
129
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
130
|
+
'Aw5JBhvKzxm',
|
|
131
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
132
|
+
'CMvZDwX0CW',
|
|
406
133
|
'CgfYDgLJAxbHBNrjza',
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'
|
|
414
|
-
'
|
|
415
|
-
'
|
|
134
|
+
'zgvZy3jPyMu',
|
|
135
|
+
'C2vYDMvY',
|
|
136
|
+
'ywDLBNrjza',
|
|
137
|
+
'y29UDgvUDa',
|
|
138
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
139
|
+
'DgfZAW',
|
|
140
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
141
|
+
'C2vUzgvYtMfTzq',
|
|
142
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
416
143
|
'AgfZtw9Yzq',
|
|
417
|
-
'
|
|
418
|
-
'
|
|
419
|
-
'
|
|
420
|
-
'
|
|
421
|
-
'
|
|
422
|
-
'
|
|
144
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
145
|
+
'ntKYodvKtxjxAKC',
|
|
146
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
147
|
+
'DxbKyxrL',
|
|
148
|
+
'otu3nJKWmhfVvNjNrq',
|
|
149
|
+
'D2fPDgLUz19PBNb1Da',
|
|
150
|
+
'Aw5KzxHpzG',
|
|
151
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
152
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
153
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
154
|
+
'C2f2zq',
|
|
155
|
+
'DxbSB2fKrMLSzq',
|
|
156
|
+
'yMfZzty0',
|
|
157
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
158
|
+
'BwvKAxvT',
|
|
159
|
+
'z2v0tw9UDgG',
|
|
160
|
+
'iYmJieH1BwfUCW',
|
|
161
|
+
'CMvJB3jK',
|
|
162
|
+
'C3vJy2vZCW',
|
|
163
|
+
'y2XHAw1FDgfZA3m',
|
|
164
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
165
|
+
'Axnoyu4',
|
|
166
|
+
'Aw1Hz2uVz2LM',
|
|
167
|
+
'lsba',
|
|
168
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
169
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
170
|
+
'y2HHBM5LBe5HBwu',
|
|
171
|
+
'CMvXDwvZDfvYBa',
|
|
172
|
+
'Dg9ju09tDhjPBMC',
|
|
173
|
+
'CgfKu3rHCNq',
|
|
174
|
+
'B2jQzwn0',
|
|
175
|
+
'C2LNBMfS',
|
|
176
|
+
'DgHYzwfKswq',
|
|
177
|
+
'Dgv4Dc9JC3y',
|
|
178
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
179
|
+
'AhvTyw5Z',
|
|
180
|
+
'Dg9VBa',
|
|
181
|
+
'BwvTyMvY',
|
|
423
182
|
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
183
|
+
'zMLUza',
|
|
184
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
185
|
+
'ywz0zxi',
|
|
186
|
+
'Ahr0CdO',
|
|
187
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
188
|
+
'AhvTyw4',
|
|
189
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
190
|
+
'yxjNDG',
|
|
191
|
+
'DhjPBq',
|
|
192
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
193
|
+
'BwvTyMvYCW',
|
|
194
|
+
'DMfSDwvZ',
|
|
195
|
+
'DxnLCG',
|
|
424
196
|
'C2XPy2u',
|
|
425
|
-
'
|
|
426
|
-
'
|
|
427
|
-
'
|
|
197
|
+
'Bwv0yq',
|
|
198
|
+
'kgXLz2fJEsK',
|
|
199
|
+
'ywXS',
|
|
428
200
|
'y2HHBM5LBfrHCMDLDa',
|
|
429
|
-
'
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
434
|
-
'
|
|
201
|
+
'Dgv4Da',
|
|
202
|
+
'xsba',
|
|
203
|
+
'zMv0y2HjBxbS',
|
|
204
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
205
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
206
|
+
'Dw5JBgfPBvrHC2S',
|
|
207
|
+
'BgLZDf9Zzxj2zxi',
|
|
435
208
|
'y2HHBM5LBa',
|
|
436
|
-
'
|
|
437
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
438
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
439
|
-
'BwvZC2fNzuLK',
|
|
440
|
-
'z2v0twLUDxrLCW',
|
|
441
|
-
'r0vu',
|
|
442
|
-
'w3rHCMDLDd0',
|
|
443
|
-
'mtzYCMfqq2K',
|
|
444
|
-
'CNvUBMLUzW',
|
|
445
|
-
'BwLU',
|
|
446
|
-
'AxngAw5PDgu',
|
|
447
|
-
'ChvZAa',
|
|
448
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
449
|
-
'ywjVCNq',
|
|
450
|
-
'C2f2zq',
|
|
451
|
-
'ihr5Cgu9ywDLBNq',
|
|
452
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
453
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
454
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
455
|
-
'CMvZDwX0CW',
|
|
456
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
457
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
458
|
-
'CNvUswq',
|
|
459
|
-
'DgfZA3m',
|
|
460
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
461
|
-
'D29YA19RzxK',
|
|
462
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
463
|
-
'Dg9KBW',
|
|
464
|
-
'mJK4otGXowPushnXzG',
|
|
465
|
-
'y2HHBM5LBe5HBwu',
|
|
466
|
-
'lMjPBG',
|
|
467
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
468
|
-
'DxbSB2fKx2zPBgu',
|
|
209
|
+
'sfruuca',
|
|
469
210
|
'y2HHBM5LBhm',
|
|
470
|
-
'
|
|
211
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
212
|
+
'BNvTyMvY',
|
|
213
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
214
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
215
|
+
'DxbSB2fKx2zPBgu',
|
|
216
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
217
|
+
'zMLSzw5HBwu',
|
|
218
|
+
'lMjPBG',
|
|
219
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
471
220
|
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
472
|
-
'
|
|
473
|
-
'
|
|
474
|
-
'
|
|
475
|
-
'C3rHCNrLza',
|
|
476
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
477
|
-
'C3rYAw5NAwz5',
|
|
221
|
+
'CMvWBgfJzq',
|
|
222
|
+
'BM93',
|
|
223
|
+
'C3bSAxq',
|
|
478
224
|
'AxnjBNrLz2vY',
|
|
479
|
-
'
|
|
480
|
-
'
|
|
481
|
-
'
|
|
482
|
-
'
|
|
483
|
-
'
|
|
484
|
-
'
|
|
485
|
-
'
|
|
486
|
-
'
|
|
487
|
-
'
|
|
488
|
-
'
|
|
489
|
-
'
|
|
490
|
-
'
|
|
491
|
-
'
|
|
492
|
-
'
|
|
225
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
226
|
+
'DMfSDwu',
|
|
227
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
228
|
+
'yM9KEvrLEhq',
|
|
229
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
230
|
+
'BgLZDf90yxnRCW',
|
|
231
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
232
|
+
'Bwf4',
|
|
233
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
234
|
+
'ls1ZzxnZAw9UlwLK',
|
|
235
|
+
'y2HLy2TnzxnZywDLCW',
|
|
236
|
+
'zMfSC2u',
|
|
237
|
+
'y29UDgvUDejHC2u2na',
|
|
238
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
239
|
+
'khvUA25VD24P',
|
|
240
|
+
'DgfZA051BwjLCG',
|
|
241
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
242
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
243
|
+
'BgLZDfrHC2TZ',
|
|
493
244
|
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
245
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
246
|
+
'AxnbyNnVBhv0zq',
|
|
247
|
+
'kg5VBMuP',
|
|
248
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
249
|
+
'ywDNCMvNyxrLswq',
|
|
250
|
+
'igzHAwXLzdOG',
|
|
251
|
+
'zgf0yq',
|
|
252
|
+
'DgHYzwfKvgfYz2v0',
|
|
253
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
254
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
255
|
+
'yxv0BZO',
|
|
256
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
257
|
+
'AxnbCNjHEq',
|
|
258
|
+
'zw50CMLLCW',
|
|
259
|
+
'DgfZA3m',
|
|
260
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
261
|
+
'DgfZAY0',
|
|
262
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
263
|
+
'Bg9JywXLq29TCgfYzq',
|
|
264
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
265
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
266
|
+
'ue9tva',
|
|
267
|
+
'EM9K',
|
|
268
|
+
'ywz0zxjtzxe',
|
|
269
|
+
'BwfW',
|
|
270
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
271
|
+
'ihrPBwu9',
|
|
272
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
273
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
274
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
275
|
+
'C2vUze1LC3nHz2u',
|
|
276
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
277
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
278
|
+
'zg06',
|
|
279
|
+
'y3vYC29Y',
|
|
280
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
281
|
+
'z2v0vgLTzq',
|
|
282
|
+
'zgLZCg9ZAxrPB24',
|
|
283
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
284
|
+
'mti0nZm1mw5cBMLorW',
|
|
285
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
286
|
+
'mty4zKD2C3rf',
|
|
494
287
|
'lsaJ',
|
|
288
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
289
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
290
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
291
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
292
|
+
'iYmJiefNzw50CW',
|
|
293
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
294
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
295
|
+
'DMLZAwjPBgL0Eq',
|
|
296
|
+
'C3rYAw5NAwz5',
|
|
297
|
+
'Dg9KBW',
|
|
298
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
299
|
+
'C3rHCNrLza',
|
|
300
|
+
'Aw5FCMv2Awv3',
|
|
301
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
302
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
303
|
+
'yxjYyxK',
|
|
304
|
+
'C29YDa',
|
|
305
|
+
'yM9KEu1HCMTKB3DU',
|
|
306
|
+
'DgfZA19Pza',
|
|
307
|
+
'Aw1Hz2uVCg5N',
|
|
308
|
+
'D29YA19RzxK',
|
|
309
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
310
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
495
311
|
'D29YA2vYsgfUzg9MzG',
|
|
496
|
-
'
|
|
497
|
-
'
|
|
498
|
-
'
|
|
499
|
-
'
|
|
500
|
-
'
|
|
501
|
-
'
|
|
312
|
+
'iIbUB3qGzM91BMq',
|
|
313
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
314
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
315
|
+
'C2L6zuj5DgvZ',
|
|
316
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
317
|
+
'Bg93',
|
|
318
|
+
'CM9VDe1LC3nHz2vjza',
|
|
319
|
+
'C2vYDMvYvxjS',
|
|
320
|
+
'z2v0sg91CNm',
|
|
321
|
+
'DgfZA0LK',
|
|
322
|
+
'DgL0Bgu',
|
|
323
|
+
'ChvIBgLJ',
|
|
502
324
|
'C3rHDhvZ',
|
|
503
|
-
'
|
|
504
|
-
'
|
|
505
|
-
'
|
|
506
|
-
'
|
|
507
|
-
'
|
|
508
|
-
'
|
|
509
|
-
'
|
|
510
|
-
'
|
|
511
|
-
'
|
|
512
|
-
'
|
|
513
|
-
'
|
|
514
|
-
'
|
|
515
|
-
'
|
|
325
|
+
'nJC4ndKWC25OAwvv',
|
|
326
|
+
'zg9Uzq',
|
|
327
|
+
'C2vUzf9TzxnZywDL',
|
|
328
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
329
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
330
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
331
|
+
'w3rHCMDLDd0',
|
|
332
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
333
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
334
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
335
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
336
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
337
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
338
|
+
'ywrK',
|
|
339
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
340
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
516
341
|
'Dgv4Dc9WBgfPBG',
|
|
517
|
-
'
|
|
518
|
-
'
|
|
519
|
-
'
|
|
520
|
-
'
|
|
521
|
-
'
|
|
522
|
-
'ANnVBG',
|
|
342
|
+
'Agv4',
|
|
343
|
+
'C2vX',
|
|
344
|
+
'iYmJienOyw5UzwXZ',
|
|
345
|
+
'zgvZDhjVEwvK',
|
|
346
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
523
347
|
'BMfTzq',
|
|
524
|
-
'
|
|
348
|
+
'BgvUz3rO',
|
|
349
|
+
'mZm4ndqWsw11A2Pq',
|
|
350
|
+
'Dw5JBgfPBv90yxnR',
|
|
351
|
+
'yxr0ywnOBwvUDeLK',
|
|
352
|
+
'D29YA2vYtw9Kzq',
|
|
353
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
354
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
355
|
+
'zxjYB3i',
|
|
356
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
525
357
|
'Dg9tDhjPBMC',
|
|
526
|
-
'ChvIBgLJ',
|
|
527
|
-
'zg06',
|
|
528
|
-
'mtjUzej4zvy',
|
|
529
|
-
'yM9KEu1HCMTKB3DU',
|
|
530
|
-
'AwrSzq',
|
|
531
358
|
'BMv4Den1CNnVCG',
|
|
532
|
-
'
|
|
533
|
-
'
|
|
534
|
-
'
|
|
535
|
-
'
|
|
359
|
+
'y2HHDa',
|
|
360
|
+
'CNvUswq',
|
|
361
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
362
|
+
'l3n0yxj0',
|
|
363
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
364
|
+
'C3vIDgfZA051BwjLCG',
|
|
365
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
366
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
367
|
+
'Dg9mB3DLCKnHC2u',
|
|
368
|
+
'ktSGz290ignOyw5UzwW9',
|
|
369
|
+
'l2nVBNrLBNq',
|
|
370
|
+
'CgfYDgLJAxbHBNq',
|
|
536
371
|
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
537
|
-
'
|
|
372
|
+
'BwvZC2fNzuLK',
|
|
373
|
+
'A2LUza',
|
|
374
|
+
'mtq0nZGZsKvsu3bU',
|
|
375
|
+
'z2v0',
|
|
376
|
+
'AgvHzgvYCW',
|
|
377
|
+
'y3jLyxrLx3rHC2TZ',
|
|
378
|
+
'Bwf0y2Hoyw1L',
|
|
379
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
380
|
+
'lIbnzxnZywDLieLeoIa',
|
|
381
|
+
'y2XPzw50',
|
|
382
|
+
'CNvUBMLUzW',
|
|
383
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
384
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
385
|
+
'mZmWmti2BKr2yLvf',
|
|
386
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
387
|
+
'ndj3ufjxteC',
|
|
388
|
+
'BwvZC2fNzxm',
|
|
389
|
+
'C2v0',
|
|
390
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
391
|
+
'zgvSzxrL',
|
|
392
|
+
'AM9PBG',
|
|
393
|
+
'Aw1Hz2uVANbLzW',
|
|
538
394
|
'ls1Zzxj2zxiTDxjS',
|
|
539
|
-
'
|
|
540
|
-
'
|
|
541
|
-
'
|
|
542
|
-
'
|
|
543
|
-
'
|
|
544
|
-
'
|
|
545
|
-
'
|
|
546
|
-
'D29YA2vY',
|
|
547
|
-
'C3vIDgfZA19UDw1Izxi',
|
|
548
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
549
|
-
'iYmJieH1BwfUCW',
|
|
550
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
551
|
-
'Dg9VBa'
|
|
395
|
+
'l3rHC2TZpW',
|
|
396
|
+
'C29Tzq',
|
|
397
|
+
'igrVBMuP',
|
|
398
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
399
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
400
|
+
'yMvMB3jL',
|
|
401
|
+
'ywrKrxzLBNrmAxn0zw5LCG'
|
|
552
402
|
];
|
|
553
|
-
|
|
554
|
-
return
|
|
403
|
+
_0x5b92 = function () {
|
|
404
|
+
return _0x543c38;
|
|
405
|
+
};
|
|
406
|
+
return _0x5b92();
|
|
407
|
+
}
|
|
408
|
+
const _0x77ce4b = _0x4210;
|
|
409
|
+
(function (_0x44f5a5, _0xc7f535) {
|
|
410
|
+
const _0x1f5cae = {
|
|
411
|
+
_0x3fc08c: 0x16b,
|
|
412
|
+
_0x5cfb8f: 0x12f,
|
|
413
|
+
_0x3bfd52: 0x147,
|
|
414
|
+
_0x594efe: 0x16d,
|
|
415
|
+
_0x341798: 0x20d
|
|
416
|
+
}, _0x10548d = _0x4210, _0x269c42 = _0x44f5a5();
|
|
417
|
+
while (!![]) {
|
|
418
|
+
try {
|
|
419
|
+
const _0x36c4fc = -parseInt(_0x10548d(_0x1f5cae._0x3fc08c)) / 0x1 + parseInt(_0x10548d(_0x1f5cae._0x5cfb8f)) / 0x2 + parseInt(_0x10548d(0x1d5)) / 0x3 * (-parseInt(_0x10548d(_0x1f5cae._0x3bfd52)) / 0x4) + -parseInt(_0x10548d(0x20a)) / 0x5 * (parseInt(_0x10548d(_0x1f5cae._0x594efe)) / 0x6) + parseInt(_0x10548d(0x106)) / 0x7 + -parseInt(_0x10548d(0x108)) / 0x8 * (-parseInt(_0x10548d(0x160)) / 0x9) + parseInt(_0x10548d(_0x1f5cae._0x341798)) / 0xa;
|
|
420
|
+
if (_0x36c4fc === _0xc7f535)
|
|
421
|
+
break;
|
|
422
|
+
else
|
|
423
|
+
_0x269c42['push'](_0x269c42['shift']());
|
|
424
|
+
} catch (_0x36d0c3) {
|
|
425
|
+
_0x269c42['push'](_0x269c42['shift']());
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}(_0x5b92, 0x87302));
|
|
429
|
+
import { pathToFileURL } from 'node:url';
|
|
430
|
+
import {
|
|
431
|
+
mkdir,
|
|
432
|
+
readFile,
|
|
433
|
+
readdir,
|
|
434
|
+
stat,
|
|
435
|
+
writeFile
|
|
436
|
+
} from 'node:fs/promises';
|
|
437
|
+
import { homedir } from 'node:os';
|
|
438
|
+
import _0x3bc217 from 'node:path';
|
|
439
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
440
|
+
'.csv': _0x77ce4b(0x22a),
|
|
441
|
+
'.gif': _0x77ce4b(0x21f),
|
|
442
|
+
'.jpeg': _0x77ce4b(0x173),
|
|
443
|
+
'.jpg': _0x77ce4b(0x173),
|
|
444
|
+
'.json': _0x77ce4b(0xdc),
|
|
445
|
+
'.md': _0x77ce4b(0x22b),
|
|
446
|
+
'.pdf': _0x77ce4b(0xc2),
|
|
447
|
+
'.png': _0x77ce4b(0x11d),
|
|
448
|
+
'.svg': _0x77ce4b(0x14c),
|
|
449
|
+
'.txt': _0x77ce4b(0x13f),
|
|
450
|
+
'.webp': 'image/webp',
|
|
451
|
+
'.xml': _0x77ce4b(0xe2),
|
|
452
|
+
'.zip': _0x77ce4b(0x1ee)
|
|
453
|
+
};
|
|
454
|
+
function guessContentType(_0xe73669) {
|
|
455
|
+
const _0x4c310e = { _0x191e12: 0x1c4 }, _0x40ba56 = _0x77ce4b;
|
|
456
|
+
return MIME_BY_EXTENSION[_0x3bc217[_0x40ba56(_0x4c310e._0x191e12)](_0xe73669)[_0x40ba56(0x159)]()] ?? _0x40ba56(0x170);
|
|
457
|
+
}
|
|
458
|
+
function safeFilename(_0x3b24f5) {
|
|
459
|
+
return _0x3b24f5['replace'](/[\\/]/g, '-');
|
|
460
|
+
}
|
|
461
|
+
function extensionFor(_0x1c7017) {
|
|
462
|
+
const _0x5c0d53 = {
|
|
463
|
+
_0x44fb4c: 0xec,
|
|
464
|
+
_0x3314e3: 0xc4
|
|
465
|
+
}, _0x185b39 = _0x77ce4b, _0xb948bf = Object[_0x185b39(_0x5c0d53._0x44fb4c)](MIME_BY_EXTENSION)['find'](([, _0x4d18b5]) => _0x4d18b5 === _0x1c7017);
|
|
466
|
+
return _0xb948bf?.[0x0] ?? _0x185b39(_0x5c0d53._0x3314e3);
|
|
467
|
+
}
|
|
468
|
+
async function prepareUploadFile(_0x49c4a4, _0x1c7c61 = {}) {
|
|
469
|
+
const _0x3b2f42 = {
|
|
470
|
+
_0x4746b7: 0x1dd,
|
|
471
|
+
_0xfa8a96: 0x1c9,
|
|
472
|
+
_0x5bbe2e: 0x187,
|
|
473
|
+
_0x1d6619: 0x215
|
|
474
|
+
}, _0x2117bf = _0x77ce4b;
|
|
475
|
+
if (!_0x3bc217[_0x2117bf(0xe0)](_0x49c4a4))
|
|
476
|
+
throw new Error(_0x2117bf(0x11f));
|
|
477
|
+
const _0x519531 = await stat(_0x49c4a4)['catch'](() => null);
|
|
478
|
+
if (!_0x519531 || !_0x519531['isFile']())
|
|
479
|
+
throw new Error('File\x20not\x20found:\x20' + _0x49c4a4);
|
|
480
|
+
const _0xae7671 = _0x1c7c61[_0x2117bf(_0x3b2f42._0x4746b7)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
481
|
+
if (_0x519531['size'] > _0xae7671)
|
|
482
|
+
throw new Error(_0x2117bf(_0x3b2f42._0xfa8a96) + _0x519531[_0x2117bf(_0x3b2f42._0x5bbe2e)]);
|
|
483
|
+
const _0x22c89a = await readFile(_0x49c4a4), _0x18942e = _0x3bc217['basename'](_0x49c4a4);
|
|
484
|
+
return {
|
|
485
|
+
'contentBase64': _0x22c89a[_0x2117bf(0x14f)](_0x2117bf(_0x3b2f42._0x1d6619)),
|
|
486
|
+
'contentType': guessContentType(_0x18942e),
|
|
487
|
+
'filename': _0x18942e,
|
|
488
|
+
'sizeBytes': _0x519531[_0x2117bf(0x187)]
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
function createAttachmentCache(_0xbd544 = {}) {
|
|
492
|
+
const _0x211b68 = { _0x5572b1: 0x1de }, _0x119f69 = {
|
|
493
|
+
_0x2f2ab2: 0x18c,
|
|
494
|
+
_0x5275a3: 0xe5
|
|
495
|
+
}, _0x2c6b81 = {
|
|
496
|
+
_0x23e3e9: 0x230,
|
|
497
|
+
_0x2f76dc: 0x172
|
|
498
|
+
}, _0x8918c6 = _0x77ce4b, _0x358dad = _0xbd544['cacheDir'] ?? _0x3bc217[_0x8918c6(0x172)](homedir(), '.dscord', _0x8918c6(_0x211b68._0x5572b1));
|
|
499
|
+
return {
|
|
500
|
+
'cacheDir': _0x358dad,
|
|
501
|
+
async 'findCachedPath'(_0xb141a6) {
|
|
502
|
+
const _0x54c0d4 = _0x8918c6;
|
|
503
|
+
await mkdir(_0x358dad, { 'recursive': !![] });
|
|
504
|
+
const _0x1130c9 = await readdir(_0x358dad), _0x4a922f = _0x1130c9[_0x54c0d4(_0x2c6b81._0x23e3e9)](_0x202b18 => _0x202b18[_0x54c0d4(0x1c1)](_0xb141a6 + '-') || _0x202b18[_0x54c0d4(0x1c1)](_0xb141a6));
|
|
505
|
+
return _0x4a922f ? _0x3bc217[_0x54c0d4(_0x2c6b81._0x2f76dc)](_0x358dad, _0x4a922f) : null;
|
|
506
|
+
},
|
|
507
|
+
async 'save'(_0x5ae7ef) {
|
|
508
|
+
const _0x2cbd63 = _0x8918c6;
|
|
509
|
+
await mkdir(_0x358dad, { 'recursive': !![] });
|
|
510
|
+
const _0x361841 = _0x5ae7ef['originalFilename']?.['trim']() ? safeFilename(_0x5ae7ef[_0x2cbd63(_0x119f69._0x2f2ab2)]) : '' + _0x5ae7ef['attachmentId'] + extensionFor(_0x5ae7ef[_0x2cbd63(0x1c7)]), _0x1ad2c9 = _0x3bc217['join'](_0x358dad, _0x5ae7ef[_0x2cbd63(0x149)] + '-' + _0x361841);
|
|
511
|
+
return await writeFile(_0x1ad2c9, _0x5ae7ef[_0x2cbd63(_0x119f69._0x5275a3)]), _0x1ad2c9;
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
import {
|
|
516
|
+
createHash,
|
|
517
|
+
randomUUID
|
|
518
|
+
} from 'node:crypto';
|
|
519
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x77ce4b(0x1fc);
|
|
520
|
+
function ensureSegment(_0x97dcee) {
|
|
521
|
+
const _0x5438af = { _0x1be54b: 0x1fb }, _0x1b142a = _0x77ce4b, _0x10772c = _0x97dcee['trim']();
|
|
522
|
+
if (!_0x10772c || _0x10772c[_0x1b142a(_0x5438af._0x1be54b)](':'))
|
|
523
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
524
|
+
return _0x10772c;
|
|
525
|
+
}
|
|
526
|
+
function parseThreadParts(_0x2676f6) {
|
|
527
|
+
const _0x55693b = { _0x80e6e: 0x146 }, _0x5e33c1 = _0x77ce4b, _0xf49f9f = _0x2676f6[_0x5e33c1(0xc9)](':');
|
|
528
|
+
if (_0xf49f9f['length'] < 0x1 || _0xf49f9f[_0x5e33c1(_0x55693b._0x80e6e)] > 0x2)
|
|
529
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
530
|
+
return {
|
|
531
|
+
'channelName': ensureSegment(_0xf49f9f[0x0] ?? ''),
|
|
532
|
+
'threadShortId': _0xf49f9f[0x1] ? ensureSegment(_0xf49f9f[0x1]) : null
|
|
555
533
|
};
|
|
556
|
-
return _0x4f0b();
|
|
557
534
|
}
|
|
558
|
-
function parseTarget(
|
|
559
|
-
const
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
535
|
+
function parseTarget(_0x23cf35) {
|
|
536
|
+
const _0x1f8521 = {
|
|
537
|
+
_0x201415: 0x238,
|
|
538
|
+
_0x127c40: 0x1e3,
|
|
539
|
+
_0x40f1c8: 0x17c,
|
|
540
|
+
_0x304860: 0x1c1,
|
|
541
|
+
_0x3d905c: 0x100,
|
|
542
|
+
_0x348342: 0x223,
|
|
543
|
+
_0xf9a60f: 0x1ed,
|
|
544
|
+
_0xe52e81: 0x1e3
|
|
545
|
+
}, _0x1c7d57 = _0x77ce4b, _0x540b43 = _0x23cf35[_0x1c7d57(_0x1f8521._0x201415)]();
|
|
546
|
+
if (!_0x540b43)
|
|
569
547
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
570
|
-
if (
|
|
571
|
-
const
|
|
572
|
-
if (!
|
|
548
|
+
if (_0x540b43[_0x1c7d57(0x1c1)]('#')) {
|
|
549
|
+
const _0x2a72ac = parseThreadParts(_0x540b43[_0x1c7d57(0x23d)](0x1)), _0x4cd7a1 = '#' + _0x2a72ac[_0x1c7d57(0x223)];
|
|
550
|
+
if (!_0x2a72ac[_0x1c7d57(_0x1f8521._0x127c40)])
|
|
573
551
|
return {
|
|
574
|
-
'channelName':
|
|
575
|
-
'channelTarget':
|
|
576
|
-
'kind':
|
|
577
|
-
'target':
|
|
552
|
+
'channelName': _0x2a72ac['channelName'],
|
|
553
|
+
'channelTarget': _0x4cd7a1,
|
|
554
|
+
'kind': _0x1c7d57(0xba),
|
|
555
|
+
'target': _0x4cd7a1
|
|
578
556
|
};
|
|
579
557
|
return {
|
|
580
|
-
'channelName':
|
|
581
|
-
'channelTarget':
|
|
582
|
-
'kind':
|
|
583
|
-
'target':
|
|
584
|
-
'threadShortId':
|
|
558
|
+
'channelName': _0x2a72ac[_0x1c7d57(0x223)],
|
|
559
|
+
'channelTarget': _0x4cd7a1,
|
|
560
|
+
'kind': _0x1c7d57(_0x1f8521._0x40f1c8),
|
|
561
|
+
'target': _0x4cd7a1 + ':' + _0x2a72ac[_0x1c7d57(0x1e3)],
|
|
562
|
+
'threadShortId': _0x2a72ac['threadShortId']
|
|
585
563
|
};
|
|
586
564
|
}
|
|
587
|
-
if (
|
|
588
|
-
const
|
|
589
|
-
if (!
|
|
565
|
+
if (_0x540b43[_0x1c7d57(_0x1f8521._0x304860)](_0x1c7d57(_0x1f8521._0x3d905c))) {
|
|
566
|
+
const _0x5a751e = parseThreadParts(_0x540b43[_0x1c7d57(0x23d)](0x3));
|
|
567
|
+
if (!_0x5a751e[_0x1c7d57(_0x1f8521._0x348342)][_0x1c7d57(0x1c1)](_0x1c7d57(_0x1f8521._0xf9a60f)))
|
|
590
568
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
591
|
-
const
|
|
592
|
-
if (!
|
|
569
|
+
const _0x4c42b5 = 'dm:' + _0x5a751e[_0x1c7d57(0x223)];
|
|
570
|
+
if (!_0x5a751e['threadShortId'])
|
|
593
571
|
return {
|
|
594
|
-
'channelName':
|
|
595
|
-
'channelTarget':
|
|
596
|
-
'kind':
|
|
597
|
-
'target':
|
|
572
|
+
'channelName': _0x5a751e['channelName'],
|
|
573
|
+
'channelTarget': _0x4c42b5,
|
|
574
|
+
'kind': 'channel',
|
|
575
|
+
'target': _0x4c42b5
|
|
598
576
|
};
|
|
599
577
|
return {
|
|
600
|
-
'channelName':
|
|
601
|
-
'channelTarget':
|
|
602
|
-
'kind':
|
|
603
|
-
'target':
|
|
604
|
-
'threadShortId':
|
|
578
|
+
'channelName': _0x5a751e[_0x1c7d57(0x223)],
|
|
579
|
+
'channelTarget': _0x4c42b5,
|
|
580
|
+
'kind': _0x1c7d57(_0x1f8521._0x40f1c8),
|
|
581
|
+
'target': _0x4c42b5 + ':' + _0x5a751e['threadShortId'],
|
|
582
|
+
'threadShortId': _0x5a751e[_0x1c7d57(_0x1f8521._0xe52e81)]
|
|
605
583
|
};
|
|
606
584
|
}
|
|
607
585
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
608
586
|
}
|
|
609
|
-
function asErrorMessage(
|
|
610
|
-
const
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
if (typeof _0x21467a === _0x23e20f(_0x13fd82._0x400ab2) && _0x21467a[_0x23e20f(_0x13fd82._0x218bd8)]())
|
|
615
|
-
return _0x21467a;
|
|
616
|
-
return _0x22f81a;
|
|
587
|
+
function asErrorMessage(_0x31d18c, _0x18fba7) {
|
|
588
|
+
const _0x54b348 = _0x77ce4b;
|
|
589
|
+
if (typeof _0x31d18c === 'string' && _0x31d18c[_0x54b348(0x238)]())
|
|
590
|
+
return _0x31d18c;
|
|
591
|
+
return _0x18fba7;
|
|
617
592
|
}
|
|
618
|
-
function asRecord(
|
|
619
|
-
return typeof
|
|
593
|
+
function asRecord(_0x37d8cd) {
|
|
594
|
+
return typeof _0x37d8cd === 'object' && _0x37d8cd !== null ? _0x37d8cd : {};
|
|
620
595
|
}
|
|
621
|
-
function stableStringify(
|
|
622
|
-
const
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
return '{' + _0x2fa895['join'](',') + '}';
|
|
596
|
+
function stableStringify(_0x8c2560) {
|
|
597
|
+
const _0x4cd153 = {
|
|
598
|
+
_0x1e11e1: 0xf7,
|
|
599
|
+
_0x551551: 0x11a
|
|
600
|
+
}, _0x5e06b2 = _0x77ce4b;
|
|
601
|
+
if (_0x8c2560 === null || typeof _0x8c2560 !== 'object')
|
|
602
|
+
return JSON[_0x5e06b2(0x112)](_0x8c2560);
|
|
603
|
+
if (Array[_0x5e06b2(0xeb)](_0x8c2560))
|
|
604
|
+
return '[' + _0x8c2560[_0x5e06b2(_0x4cd153._0x1e11e1)](_0xdebb11 => stableStringify(_0xdebb11))[_0x5e06b2(0x172)](',') + ']';
|
|
605
|
+
const _0x49bcf3 = Object[_0x5e06b2(0xec)](_0x8c2560)['filter'](([, _0x20c879]) => _0x20c879 !== void 0x0)[_0x5e06b2(_0x4cd153._0x551551)](([_0xd72224], [_0x3d7a88]) => _0xd72224[_0x5e06b2(0xf1)](_0x3d7a88))['map'](([_0x4ee06f, _0x3aba3e]) => JSON[_0x5e06b2(0x112)](_0x4ee06f) + ':' + stableStringify(_0x3aba3e));
|
|
606
|
+
return '{' + _0x49bcf3['join'](',') + '}';
|
|
633
607
|
}
|
|
634
|
-
function createHeaders(
|
|
635
|
-
const
|
|
608
|
+
function createHeaders(_0x3917d6) {
|
|
609
|
+
const _0x290a29 = _0x77ce4b;
|
|
636
610
|
return {
|
|
637
|
-
'Content-Type':
|
|
638
|
-
'x-daemon-api-key':
|
|
611
|
+
'Content-Type': _0x290a29(0xdc),
|
|
612
|
+
'x-daemon-api-key': _0x3917d6
|
|
639
613
|
};
|
|
640
614
|
}
|
|
641
|
-
function toHttpBaseUrl(
|
|
642
|
-
const
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
615
|
+
function toHttpBaseUrl(_0x3a855e) {
|
|
616
|
+
const _0x13b186 = {
|
|
617
|
+
_0x59814c: 0x1ae,
|
|
618
|
+
_0x1830a7: 0x1b1,
|
|
619
|
+
_0x2b792a: 0x233,
|
|
620
|
+
_0x34fd16: 0x14f,
|
|
621
|
+
_0x45aaf3: 0xc7
|
|
622
|
+
}, _0x5c9b36 = _0x77ce4b, _0x22e2aa = new URL(_0x3a855e);
|
|
623
|
+
if (_0x22e2aa['protocol'] === _0x5c9b36(_0x13b186._0x59814c))
|
|
624
|
+
_0x22e2aa[_0x5c9b36(_0x13b186._0x1830a7)] = _0x5c9b36(_0x13b186._0x2b792a);
|
|
650
625
|
else
|
|
651
|
-
|
|
652
|
-
return
|
|
626
|
+
_0x22e2aa[_0x5c9b36(0x1b1)] === 'wss:' && (_0x22e2aa[_0x5c9b36(_0x13b186._0x1830a7)] = 'https:');
|
|
627
|
+
return _0x22e2aa[_0x5c9b36(_0x13b186._0x34fd16)]()[_0x5c9b36(_0x13b186._0x45aaf3)](/\/$/, '');
|
|
653
628
|
}
|
|
654
|
-
function isMentionBoundary(
|
|
655
|
-
|
|
656
|
-
return !_0x2ba8dc || /\s|[([{'",。!?、:;]/[_0x1f8437(_0x2e9a62._0x3591af)](_0x2ba8dc);
|
|
629
|
+
function isMentionBoundary(_0x543e04) {
|
|
630
|
+
return !_0x543e04 || /\s|[([{'",。!?、:;]/['test'](_0x543e04);
|
|
657
631
|
}
|
|
658
|
-
function isMentionTerminal(
|
|
659
|
-
|
|
660
|
-
return !_0x33b1e9 || /\s|[)\]}'",。!?、:;,.!?]/[_0x71812a(_0x502861._0x4e0b5c)](_0x33b1e9);
|
|
632
|
+
function isMentionTerminal(_0x2aee97) {
|
|
633
|
+
return !_0x2aee97 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x2aee97);
|
|
661
634
|
}
|
|
662
|
-
function buildMatchableEntries(
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
...
|
|
635
|
+
function buildMatchableEntries(_0x5a51bc) {
|
|
636
|
+
const _0x4ea667 = {
|
|
637
|
+
_0x7397d8: 0x1b3,
|
|
638
|
+
_0x134fa0: 0x1cd,
|
|
639
|
+
_0x3abb81: 0x169
|
|
640
|
+
}, _0x29012f = _0x77ce4b, _0x3aa7d7 = [];
|
|
641
|
+
for (const _0x55adb1 of [
|
|
642
|
+
..._0x5a51bc[_0x29012f(_0x4ea667._0x7397d8)],
|
|
643
|
+
..._0x5a51bc[_0x29012f(0x22c)]
|
|
670
644
|
]) {
|
|
671
|
-
|
|
672
|
-
'matchName':
|
|
673
|
-
'matchNameLower':
|
|
674
|
-
'participantId':
|
|
675
|
-
}),
|
|
676
|
-
'matchName':
|
|
677
|
-
'matchNameLower':
|
|
678
|
-
'participantId':
|
|
645
|
+
_0x3aa7d7[_0x29012f(0x1cd)]({
|
|
646
|
+
'matchName': _0x55adb1[_0x29012f(0x145)],
|
|
647
|
+
'matchNameLower': _0x55adb1[_0x29012f(0x145)][_0x29012f(0x169)](),
|
|
648
|
+
'participantId': _0x55adb1['id']
|
|
649
|
+
}), _0x55adb1['id'] !== _0x55adb1[_0x29012f(0x145)] && _0x3aa7d7[_0x29012f(_0x4ea667._0x134fa0)]({
|
|
650
|
+
'matchName': _0x55adb1['id'],
|
|
651
|
+
'matchNameLower': _0x55adb1['id'][_0x29012f(_0x4ea667._0x3abb81)](),
|
|
652
|
+
'participantId': _0x55adb1['id']
|
|
679
653
|
});
|
|
680
654
|
}
|
|
681
|
-
return
|
|
655
|
+
return _0x3aa7d7;
|
|
682
656
|
}
|
|
683
|
-
function extractMentionedParticipantIds(
|
|
684
|
-
const
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
},
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
},
|
|
694
|
-
for (let
|
|
695
|
-
if (
|
|
657
|
+
function extractMentionedParticipantIds(_0x48469f, _0x15eb36) {
|
|
658
|
+
const _0x15ed40 = {
|
|
659
|
+
_0x3af4f5: 0x146,
|
|
660
|
+
_0x326e10: 0x23d,
|
|
661
|
+
_0x4a7139: 0x1d8,
|
|
662
|
+
_0x19dab3: 0x13c,
|
|
663
|
+
_0x34ec5e: 0x1cd
|
|
664
|
+
}, _0x593cbe = {
|
|
665
|
+
_0x3dcd21: 0x164,
|
|
666
|
+
_0x3c6e55: 0x146
|
|
667
|
+
}, _0x32f41d = _0x77ce4b, _0x436497 = buildMatchableEntries(_0x15eb36)[_0x32f41d(0x11a)]((_0x114a80, _0xe6b260) => _0xe6b260[_0x32f41d(0x164)]['length'] - _0x114a80['matchName']['length']), _0x4d8fe9 = [], _0x47a6c8 = new Set();
|
|
668
|
+
for (let _0x47cae6 = 0x0; _0x47cae6 < _0x48469f[_0x32f41d(_0x15ed40._0x3af4f5)]; _0x47cae6 += 0x1) {
|
|
669
|
+
if (_0x48469f[_0x47cae6] !== '@' || !isMentionBoundary(_0x48469f[_0x47cae6 - 0x1]))
|
|
696
670
|
continue;
|
|
697
|
-
const
|
|
698
|
-
const
|
|
699
|
-
if (!
|
|
671
|
+
const _0x5cfe4b = _0x48469f[_0x32f41d(_0x15ed40._0x326e10)](_0x47cae6 + 0x1), _0xa5d2e1 = _0x5cfe4b[_0x32f41d(0x169)](), _0x7d2580 = _0x436497[_0x32f41d(0x230)](_0x5dec6d => {
|
|
672
|
+
const _0x4f2dbf = _0x32f41d;
|
|
673
|
+
if (!_0xa5d2e1[_0x4f2dbf(0x1c1)](_0x5dec6d[_0x4f2dbf(0xfe)]))
|
|
700
674
|
return ![];
|
|
701
|
-
return isMentionTerminal(
|
|
675
|
+
return isMentionTerminal(_0x5cfe4b[_0x5dec6d[_0x4f2dbf(_0x593cbe._0x3dcd21)][_0x4f2dbf(_0x593cbe._0x3c6e55)]]);
|
|
702
676
|
});
|
|
703
|
-
if (!
|
|
677
|
+
if (!_0x7d2580 || _0x47a6c8[_0x32f41d(_0x15ed40._0x4a7139)](_0x7d2580[_0x32f41d(0x1fe)]))
|
|
704
678
|
continue;
|
|
705
|
-
|
|
679
|
+
_0x47a6c8[_0x32f41d(_0x15ed40._0x19dab3)](_0x7d2580['participantId']), _0x4d8fe9[_0x32f41d(_0x15ed40._0x34ec5e)](_0x7d2580[_0x32f41d(0x1fe)]), _0x47cae6 += _0x7d2580[_0x32f41d(0x164)][_0x32f41d(0x146)];
|
|
706
680
|
}
|
|
707
|
-
return
|
|
681
|
+
return _0x4d8fe9;
|
|
708
682
|
}
|
|
709
683
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
710
|
-
function anySignal(...
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
684
|
+
function anySignal(..._0x4b6c3f) {
|
|
685
|
+
const _0x4692c5 = {
|
|
686
|
+
_0x2c984b: 0x1aa,
|
|
687
|
+
_0x508e8d: 0x17b,
|
|
688
|
+
_0x52b6d4: 0x228,
|
|
689
|
+
_0x3ca165: 0x228
|
|
690
|
+
}, _0x5abb1b = _0x77ce4b, _0x36ee4e = new AbortController();
|
|
691
|
+
for (const _0x44ca63 of _0x4b6c3f) {
|
|
692
|
+
if (_0x44ca63[_0x5abb1b(0x195)])
|
|
693
|
+
return _0x36ee4e['abort'](_0x44ca63[_0x5abb1b(_0x4692c5._0x2c984b)]), _0x36ee4e[_0x5abb1b(0x228)];
|
|
694
|
+
_0x44ca63[_0x5abb1b(_0x4692c5._0x508e8d)](_0x5abb1b(0x1be), () => _0x36ee4e[_0x5abb1b(0x1be)](_0x44ca63['reason']), {
|
|
720
695
|
'once': !![],
|
|
721
|
-
'signal':
|
|
696
|
+
'signal': _0x36ee4e[_0x5abb1b(_0x4692c5._0x52b6d4)]
|
|
722
697
|
});
|
|
723
698
|
}
|
|
724
|
-
return
|
|
699
|
+
return _0x36ee4e[_0x5abb1b(_0x4692c5._0x3ca165)];
|
|
725
700
|
}
|
|
726
|
-
function createInternalAgentClient(
|
|
727
|
-
const
|
|
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
|
-
|
|
701
|
+
function createInternalAgentClient(_0x17262b) {
|
|
702
|
+
const _0x4cccbb = {
|
|
703
|
+
_0x49999b: 0x244,
|
|
704
|
+
_0x107fb2: 0x1bc,
|
|
705
|
+
_0x6b6218: 0x238,
|
|
706
|
+
_0x485086: 0x1f6,
|
|
707
|
+
_0x1cedb1: 0x238,
|
|
708
|
+
_0x34b6c5: 0x1db,
|
|
709
|
+
_0x36f012: 0x129
|
|
710
|
+
}, _0x5eb86d = {
|
|
711
|
+
_0x5211aa: 0xf6,
|
|
712
|
+
_0x5c99df: 0x14f,
|
|
713
|
+
_0x10cbf9: 0x201,
|
|
714
|
+
_0x5036b3: 0xe5,
|
|
715
|
+
_0x9c83a5: 0x23e,
|
|
716
|
+
_0x2dcf9d: 0x146,
|
|
717
|
+
_0x1b2e6f: 0xbc,
|
|
718
|
+
_0x1ab9ee: 0xf7,
|
|
719
|
+
_0xba0cf2: 0x1e8,
|
|
720
|
+
_0x1fc159: 0x1cb,
|
|
721
|
+
_0x4dc78b: 0x229,
|
|
722
|
+
_0x5c65d1: 0x128,
|
|
723
|
+
_0x6b6ebb: 0x1ac,
|
|
724
|
+
_0x2616dd: 0xe3,
|
|
725
|
+
_0x195701: 0x1ac,
|
|
726
|
+
_0x5ca5a2: 0x1f3,
|
|
727
|
+
_0x1c8f2d: 0xe3,
|
|
728
|
+
_0x35a1ee: 0x141,
|
|
729
|
+
_0x405f28: 0x16f,
|
|
730
|
+
_0x64deb5: 0x23b,
|
|
731
|
+
_0x248a3f: 0x145,
|
|
732
|
+
_0x331458: 0x15f,
|
|
733
|
+
_0x50df31: 0x1e8,
|
|
734
|
+
_0x3e7ad3: 0x1de,
|
|
735
|
+
_0x4a4596: 0x18e,
|
|
736
|
+
_0x39d06a: 0x18e,
|
|
737
|
+
_0x5469f2: 0x11b,
|
|
738
|
+
_0x8d02ed: 0x11b
|
|
739
|
+
}, _0x37d62d = {
|
|
740
|
+
_0x31e0ff: 0x232,
|
|
741
|
+
_0x421439: 0x229
|
|
742
|
+
}, _0x79709b = {
|
|
743
|
+
_0xec87a1: 0x179,
|
|
744
|
+
_0x47cd7a: 0x15b,
|
|
745
|
+
_0x264bcd: 0x186,
|
|
746
|
+
_0x5ad6ca: 0x162,
|
|
747
|
+
_0x592170: 0x161,
|
|
748
|
+
_0x48f7d5: 0x170,
|
|
749
|
+
_0x42a5f7: 0x1f1,
|
|
750
|
+
_0x3330: 0xe5
|
|
751
|
+
}, _0x59c219 = {
|
|
752
|
+
_0x2ef705: 0xba,
|
|
753
|
+
_0xeb7af1: 0x229,
|
|
754
|
+
_0x10894e: 0x1f9,
|
|
755
|
+
_0x3b43f8: 0x201,
|
|
756
|
+
_0x4b9117: 0x112,
|
|
757
|
+
_0x5cbe6e: 0xd7,
|
|
758
|
+
_0xb8ff69: 0x1c7,
|
|
759
|
+
_0xe8cb0b: 0xf4,
|
|
760
|
+
_0x5d2ddd: 0xe5
|
|
761
|
+
}, _0x1e3217 = { _0x2b975f: 0x201 }, _0x1c41eb = {
|
|
762
|
+
_0x98c01e: 0x201,
|
|
763
|
+
_0x1b0c3e: 0x112,
|
|
764
|
+
_0x4636e4: 0xf4
|
|
765
|
+
}, _0x1ee795 = {
|
|
766
|
+
_0x38044b: 0xcf,
|
|
767
|
+
_0xf9120b: 0x1e6,
|
|
768
|
+
_0x525d95: 0xf4
|
|
769
|
+
}, _0x1f62fd = {
|
|
770
|
+
_0xa88028: 0xcf,
|
|
771
|
+
_0x4dc32e: 0x112
|
|
772
|
+
}, _0x19ff08 = {
|
|
773
|
+
_0x50c22c: 0x12e,
|
|
774
|
+
_0xebf989: 0x186
|
|
775
|
+
}, _0x4732ae = {
|
|
776
|
+
_0x1bcd45: 0x12e,
|
|
777
|
+
_0x43e7c4: 0xf4,
|
|
778
|
+
_0x5c2126: 0xe5,
|
|
779
|
+
_0x1ea312: 0x152
|
|
780
|
+
}, _0x334940 = { _0x29cba5: 0x168 }, _0x12f6eb = {
|
|
781
|
+
_0x4d193e: 0x112,
|
|
782
|
+
_0x5e874b: 0xf4
|
|
783
|
+
}, _0x1d8d90 = { _0x39cbd8: 0x186 }, _0x1a5601 = {
|
|
784
|
+
_0x96342b: 0x1b9,
|
|
785
|
+
_0x20175a: 0x202,
|
|
786
|
+
_0x4e45ee: 0xcf,
|
|
787
|
+
_0x566a05: 0x112,
|
|
788
|
+
_0x4a85b1: 0x229,
|
|
789
|
+
_0x181916: 0x111,
|
|
790
|
+
_0x428acc: 0xe5
|
|
791
|
+
}, _0xbdddf3 = {
|
|
792
|
+
_0x351cbe: 0x1e1,
|
|
793
|
+
_0x37a14f: 0x1e1,
|
|
794
|
+
_0x37d0bc: 0x16f,
|
|
795
|
+
_0xd0ea38: 0x181,
|
|
796
|
+
_0x5b401e: 0x17a,
|
|
797
|
+
_0x473ba5: 0x232,
|
|
798
|
+
_0x3de3db: 0xcf,
|
|
799
|
+
_0x5ec29d: 0x14f,
|
|
800
|
+
_0x5f5860: 0x186,
|
|
801
|
+
_0x3945d1: 0xf7,
|
|
802
|
+
_0x1660e5: 0x241,
|
|
803
|
+
_0x58a87: 0x208
|
|
804
|
+
}, _0x86e614 = { _0x433040: 0x145 }, _0x1fef53 = {
|
|
805
|
+
_0x33af9d: 0x22e,
|
|
806
|
+
_0x4d52dd: 0x1fe
|
|
807
|
+
}, _0x475d86 = {
|
|
808
|
+
_0x110104: 0x241,
|
|
809
|
+
_0x104bb6: 0x241,
|
|
810
|
+
_0x2ca3c3: 0x128,
|
|
811
|
+
_0x2bc81b: 0x1c1,
|
|
812
|
+
_0x26e801: 0x1e3,
|
|
813
|
+
_0x3583ee: 0x229,
|
|
814
|
+
_0x5ba51d: 0x229
|
|
815
|
+
}, _0x565212 = {
|
|
816
|
+
_0x32b250: 0x1ac,
|
|
817
|
+
_0x57264e: 0x1ac,
|
|
818
|
+
_0x3afbd3: 0x128,
|
|
819
|
+
_0x4e8d8a: 0x229,
|
|
820
|
+
_0x420f5a: 0x241
|
|
821
|
+
}, _0x1ba010 = {
|
|
822
|
+
_0x484a56: 0x1b3,
|
|
823
|
+
_0x4d251b: 0x235
|
|
824
|
+
}, _0x460f5d = {
|
|
825
|
+
_0xa58413: 0x201,
|
|
826
|
+
_0x2eaede: 0x10a,
|
|
827
|
+
_0x365299: 0xe5,
|
|
828
|
+
_0x3f2b0e: 0xe5,
|
|
829
|
+
_0x57ab94: 0x229,
|
|
830
|
+
_0x434c45: 0x1ac
|
|
831
|
+
}, _0x1116b3 = {
|
|
832
|
+
_0x12e2ca: 0xdf,
|
|
833
|
+
_0x49a26b: 0xdc
|
|
834
|
+
}, _0x1c9961 = {
|
|
835
|
+
_0x134a2b: 0x158,
|
|
836
|
+
_0x34cd20: 0x114
|
|
837
|
+
}, _0x1665e5 = {
|
|
838
|
+
_0x3a92b5: 0x228,
|
|
839
|
+
_0x4a7092: 0x228,
|
|
840
|
+
_0x3bb7d2: 0x228,
|
|
841
|
+
_0x5270bc: 0xbb
|
|
842
|
+
}, _0x45358f = {
|
|
843
|
+
_0x53fc06: 0x228,
|
|
844
|
+
_0x492b44: 0x228,
|
|
845
|
+
_0x2d8e52: 0x21b,
|
|
846
|
+
_0x58358c: 0xbb,
|
|
847
|
+
_0x41a709: 0x12e
|
|
848
|
+
}, _0x324c4b = {
|
|
849
|
+
_0x9cd001: 0x1cb,
|
|
850
|
+
_0x4c3d34: 0xd1,
|
|
851
|
+
_0x485492: 0x183,
|
|
852
|
+
_0x5e1e99: 0x171,
|
|
853
|
+
_0x3af37f: 0x20c
|
|
854
|
+
}, _0x4bd8da = {
|
|
855
|
+
_0x6d6384: 0x1f1,
|
|
856
|
+
_0x52486f: 0x14f,
|
|
857
|
+
_0x27b7fd: 0x238
|
|
858
|
+
}, _0x38143e = {
|
|
859
|
+
_0x4c4252: 0x1a2,
|
|
860
|
+
_0x3e924d: 0x161,
|
|
861
|
+
_0x1a84d0: 0xce,
|
|
862
|
+
_0x2e3dc3: 0x238,
|
|
863
|
+
_0x32fb11: 0xc7,
|
|
864
|
+
_0x48d641: 0x1e2
|
|
865
|
+
}, _0x51700c = _0x77ce4b, _0x56c41b = _0x17262b[_0x51700c(_0x4cccbb._0x49999b)] ?? fetch, _0x44146a = _0x17262b[_0x51700c(0xdb)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x35dec7 = typeof _0x17262b['initialLastSeenSeq'] === _0x51700c(0xbe) && _0x17262b[_0x51700c(_0x4cccbb._0x107fb2)] > 0x0 ? _0x17262b[_0x51700c(_0x4cccbb._0x107fb2)] : 0x0, _0x190988 = _0x17262b[_0x51700c(0x1f4)]?.[_0x51700c(_0x4cccbb._0x6b6218)]() || void 0x0, _0x2dd09a = _0x17262b[_0x51700c(_0x4cccbb._0x485086)]?.[_0x51700c(0x238)]() || void 0x0, _0x5a3c40 = _0x17262b[_0x51700c(0x211)] === !![], _0x4d1720 = _0x17262b[_0x51700c(0x222)]?.[_0x51700c(_0x4cccbb._0x1cedb1)]() || void 0x0, _0x1f9804 = _0x17262b['workerThreadTarget']?.[_0x51700c(_0x4cccbb._0x1cedb1)]() || void 0x0, _0x597408 = createHeaders(_0x17262b[_0x51700c(_0x4cccbb._0x34b6c5)]), _0x558388 = toHttpBaseUrl(_0x17262b[_0x51700c(_0x4cccbb._0x36f012)]);
|
|
866
|
+
let _0x382a40 = null;
|
|
867
|
+
const _0x30575d = new Map();
|
|
868
|
+
let _0xdfb599 = _0x35dec7, _0x443b7c = _0x35dec7;
|
|
869
|
+
function _0x5123c0(_0x390e0c) {
|
|
870
|
+
const _0x4cc795 = _0x51700c, _0x370df0 = _0x390e0c[_0x4cc795(_0x38143e._0x4c4252)][_0x4cc795(0x162)][_0x4cc795(_0x38143e._0x3e924d)]('content-type') ?? 'unknown', _0x2b818c = _0x390e0c[_0x4cc795(_0x38143e._0x1a84d0)][_0x4cc795(_0x38143e._0x2e3dc3)]()[_0x4cc795(_0x38143e._0x32fb11)](/\s+/g, '\x20')[_0x4cc795(0x23d)](0x0, 0x78) || _0x4cc795(_0x38143e._0x48d641);
|
|
871
|
+
return _0x4cc795(0x1d1) + _0x390e0c[_0x4cc795(0x224)] + _0x4cc795(0x16c) + _0x390e0c[_0x4cc795(0x1a2)]['status'] + _0x4cc795(0x107) + _0x370df0 + ',\x20preview=' + _0x2b818c + _0x4cc795(0x1e5);
|
|
881
872
|
}
|
|
882
|
-
async function
|
|
883
|
-
const
|
|
884
|
-
if (!
|
|
873
|
+
async function _0x458481(_0x315432, _0x15a37b) {
|
|
874
|
+
const _0xa62eea = _0x51700c, _0x2c2596 = Buffer[_0xa62eea(_0x4bd8da._0x6d6384)](await _0x15a37b['arrayBuffer']())[_0xa62eea(_0x4bd8da._0x52486f)]('utf8');
|
|
875
|
+
if (!_0x2c2596[_0xa62eea(_0x4bd8da._0x27b7fd)]())
|
|
885
876
|
return {};
|
|
886
877
|
try {
|
|
887
|
-
return JSON[
|
|
878
|
+
return JSON[_0xa62eea(0x192)](_0x2c2596);
|
|
888
879
|
} catch {
|
|
889
|
-
throw new Error(
|
|
890
|
-
'bodyText':
|
|
891
|
-
'requestUrl':
|
|
892
|
-
'response':
|
|
880
|
+
throw new Error(_0x5123c0({
|
|
881
|
+
'bodyText': _0x2c2596,
|
|
882
|
+
'requestUrl': _0x315432,
|
|
883
|
+
'response': _0x15a37b
|
|
893
884
|
}));
|
|
894
885
|
}
|
|
895
886
|
}
|
|
896
|
-
function
|
|
897
|
-
const
|
|
898
|
-
if (
|
|
899
|
-
return
|
|
900
|
-
const
|
|
901
|
-
for (const [
|
|
902
|
-
|
|
887
|
+
function _0x390ff5(_0xdedfbd, _0x21443c) {
|
|
888
|
+
const _0x367d93 = _0x51700c, _0x1d05fa = typeof _0x21443c['idempotency_key'] === _0x367d93(_0x324c4b._0x9cd001) ? _0x21443c[_0x367d93(_0x324c4b._0x4c3d34)]['trim']() : '';
|
|
889
|
+
if (_0x1d05fa)
|
|
890
|
+
return _0x1d05fa;
|
|
891
|
+
const _0x3ea6ec = Date[_0x367d93(0xc8)]();
|
|
892
|
+
for (const [_0x5849df, _0x5c1f4c] of _0x30575d) {
|
|
893
|
+
_0x5c1f4c[_0x367d93(_0x324c4b._0x485492)] <= _0x3ea6ec && _0x30575d[_0x367d93(_0x324c4b._0x5e1e99)](_0x5849df);
|
|
903
894
|
}
|
|
904
|
-
const
|
|
905
|
-
...
|
|
895
|
+
const _0x2586a8 = {
|
|
896
|
+
..._0x21443c,
|
|
906
897
|
'idempotency_key': void 0x0
|
|
907
|
-
},
|
|
908
|
-
if (
|
|
909
|
-
return
|
|
910
|
-
const
|
|
911
|
-
return
|
|
912
|
-
'expiresAt':
|
|
913
|
-
'value':
|
|
914
|
-
}),
|
|
898
|
+
}, _0x223fac = createHash('sha256')[_0x367d93(_0x324c4b._0x3af37f)](_0xdedfbd + ':' + stableStringify(_0x2586a8))['digest'](_0x367d93(0x140)), _0x2b6baa = _0xdedfbd + ':' + _0x223fac, _0x3bad23 = _0x30575d['get'](_0x2b6baa);
|
|
899
|
+
if (_0x3bad23)
|
|
900
|
+
return _0x3bad23[_0x367d93(0xcc)];
|
|
901
|
+
const _0x5f241c = _0x367d93(0xe9) + _0xdedfbd + ':' + randomUUID();
|
|
902
|
+
return _0x30575d[_0x367d93(0x16f)](_0x2b6baa, {
|
|
903
|
+
'expiresAt': _0x3ea6ec + 0x5 * 0x3c * 0x3e8,
|
|
904
|
+
'value': _0x5f241c
|
|
905
|
+
}), _0x5f241c;
|
|
915
906
|
}
|
|
916
|
-
async function
|
|
917
|
-
const
|
|
907
|
+
async function _0x236761(_0x5b0687, _0x606404) {
|
|
908
|
+
const _0x521a31 = _0x51700c, _0x422026 = new AbortController(), _0x1eb447 = setTimeout(() => _0x422026['abort'](), _0x44146a), _0x3c0347 = _0x606404?.[_0x521a31(_0x45358f._0x53fc06)] ? anySignal(_0x606404[_0x521a31(_0x45358f._0x492b44)], _0x422026[_0x521a31(0x228)]) : _0x422026[_0x521a31(_0x45358f._0x53fc06)], _0x197e51 = '' + _0x558388 + _0x5b0687;
|
|
918
909
|
try {
|
|
919
|
-
const
|
|
920
|
-
...
|
|
921
|
-
'signal':
|
|
922
|
-
}),
|
|
923
|
-
if (!
|
|
924
|
-
throw new Error(asErrorMessage(
|
|
925
|
-
return
|
|
910
|
+
const _0x21c541 = await _0x56c41b(_0x197e51, {
|
|
911
|
+
..._0x606404,
|
|
912
|
+
'signal': _0x3c0347
|
|
913
|
+
}), _0x3bf181 = await _0x458481(_0x197e51, _0x21c541);
|
|
914
|
+
if (!_0x21c541['ok'] || _0x3bf181[_0x521a31(_0x45358f._0x2d8e52)] === ![])
|
|
915
|
+
throw new Error(asErrorMessage(_0x3bf181['error'], _0x521a31(_0x45358f._0x58358c) + _0x21c541[_0x521a31(_0x45358f._0x41a709)]));
|
|
916
|
+
return _0x3bf181;
|
|
926
917
|
} finally {
|
|
927
|
-
clearTimeout(
|
|
918
|
+
clearTimeout(_0x1eb447);
|
|
928
919
|
}
|
|
929
920
|
}
|
|
930
|
-
async function
|
|
931
|
-
const
|
|
921
|
+
async function _0x4e5101(_0xe41b8b, _0x13fb25) {
|
|
922
|
+
const _0x42c733 = _0x51700c, _0x1cb598 = new AbortController(), _0xa21c8e = setTimeout(() => _0x1cb598[_0x42c733(0x1be)](), _0x44146a), _0x4b50ce = _0x13fb25?.[_0x42c733(_0x1665e5._0x3a92b5)] ? anySignal(_0x13fb25[_0x42c733(_0x1665e5._0x4a7092)], _0x1cb598[_0x42c733(_0x1665e5._0x3bb7d2)]) : _0x1cb598[_0x42c733(0x228)], _0x5b5143 = '' + _0x558388 + _0xe41b8b;
|
|
932
923
|
try {
|
|
933
|
-
const
|
|
934
|
-
...
|
|
935
|
-
'signal':
|
|
936
|
-
}),
|
|
937
|
-
if (!
|
|
938
|
-
throw new Error(asErrorMessage(
|
|
939
|
-
return
|
|
924
|
+
const _0x4e68cd = await _0x56c41b(_0x5b5143, {
|
|
925
|
+
..._0x13fb25,
|
|
926
|
+
'signal': _0x4b50ce
|
|
927
|
+
}), _0x1472c0 = await _0x458481(_0x5b5143, _0x4e68cd);
|
|
928
|
+
if (!_0x4e68cd['ok'])
|
|
929
|
+
throw new Error(asErrorMessage(_0x1472c0[_0x42c733(0x14d)], _0x42c733(_0x1665e5._0x5270bc) + _0x4e68cd['status']));
|
|
930
|
+
return _0x1472c0;
|
|
940
931
|
} finally {
|
|
941
|
-
clearTimeout(
|
|
932
|
+
clearTimeout(_0xa21c8e);
|
|
942
933
|
}
|
|
943
934
|
}
|
|
944
|
-
async function
|
|
945
|
-
const
|
|
946
|
-
if (!
|
|
935
|
+
async function _0x455686(_0x1a0120) {
|
|
936
|
+
const _0xb79838 = _0x51700c;
|
|
937
|
+
if (!_0x2dd09a || _0x1a0120 <= _0x443b7c)
|
|
947
938
|
return;
|
|
948
|
-
await
|
|
949
|
-
'body': JSON[
|
|
950
|
-
'headers':
|
|
939
|
+
await _0x236761(_0xb79838(_0x1c9961._0x134a2b) + encodeURIComponent(_0x2dd09a) + _0xb79838(_0x1c9961._0x34cd20), {
|
|
940
|
+
'body': JSON[_0xb79838(0x112)]({ 'lastSeenSeq': _0x1a0120 }),
|
|
941
|
+
'headers': _0x597408,
|
|
951
942
|
'method': 'PATCH'
|
|
952
|
-
}),
|
|
943
|
+
}), _0x443b7c = _0x1a0120;
|
|
953
944
|
}
|
|
954
|
-
async function
|
|
955
|
-
const
|
|
956
|
-
if (!
|
|
945
|
+
async function _0x61fc0e(_0x44bebc) {
|
|
946
|
+
const _0x486af4 = _0x51700c;
|
|
947
|
+
if (!_0x190988 || !_0x4d1720 || _0x44bebc <= _0x443b7c)
|
|
957
948
|
return;
|
|
958
|
-
const
|
|
959
|
-
'body': JSON[
|
|
960
|
-
'last_seen_seq':
|
|
961
|
-
'worker_session_id':
|
|
949
|
+
const _0x31f820 = await _0x56c41b(_0x190988 + _0x486af4(_0x1116b3._0x12e2ca), {
|
|
950
|
+
'body': JSON[_0x486af4(0x112)]({
|
|
951
|
+
'last_seen_seq': _0x44bebc,
|
|
952
|
+
'worker_session_id': _0x4d1720
|
|
962
953
|
}),
|
|
963
|
-
'headers': { 'Content-Type':
|
|
964
|
-
'method':
|
|
954
|
+
'headers': { 'Content-Type': _0x486af4(_0x1116b3._0x49a26b) },
|
|
955
|
+
'method': 'POST'
|
|
965
956
|
});
|
|
966
|
-
if (!
|
|
967
|
-
throw new Error(
|
|
968
|
-
|
|
957
|
+
if (!_0x31f820['ok'])
|
|
958
|
+
throw new Error(_0x486af4(0xbb) + _0x31f820['status']);
|
|
959
|
+
_0x443b7c = _0x44bebc;
|
|
969
960
|
}
|
|
970
|
-
async function
|
|
971
|
-
const
|
|
972
|
-
'body': JSON[
|
|
973
|
-
'headers':
|
|
974
|
-
'method':
|
|
961
|
+
async function _0x5322c7(_0x28b5fd) {
|
|
962
|
+
const _0x198d3 = _0x51700c, _0x1102fa = parseTarget(_0x28b5fd), _0x757c5 = await _0x236761('/internal/agent/' + _0x17262b[_0x198d3(_0x460f5d._0xa58413)] + _0x198d3(_0x460f5d._0x2eaede), {
|
|
963
|
+
'body': JSON['stringify']({ 'target': _0x1102fa[_0x198d3(0x1b9)] }),
|
|
964
|
+
'headers': _0x597408,
|
|
965
|
+
'method': 'POST'
|
|
975
966
|
});
|
|
976
967
|
return {
|
|
977
|
-
'channelId':
|
|
978
|
-
'target':
|
|
979
|
-
'task':
|
|
980
|
-
'threadId':
|
|
981
|
-
'threadNumber':
|
|
968
|
+
'channelId': _0x757c5['data']?.[_0x198d3(0x181)] ?? '',
|
|
969
|
+
'target': _0x1102fa['channelTarget'],
|
|
970
|
+
'task': _0x757c5[_0x198d3(_0x460f5d._0x365299)]?.['task'],
|
|
971
|
+
'threadId': _0x757c5[_0x198d3(_0x460f5d._0x3f2b0e)]?.[_0x198d3(_0x460f5d._0x57ab94)],
|
|
972
|
+
'threadNumber': _0x757c5[_0x198d3(0xe5)]?.[_0x198d3(_0x460f5d._0x434c45)]
|
|
982
973
|
};
|
|
983
974
|
}
|
|
984
|
-
async function
|
|
985
|
-
const
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
'
|
|
997
|
-
'
|
|
998
|
-
}))['filter'](
|
|
975
|
+
async function _0x3307fb(_0x3a5314 = {}) {
|
|
976
|
+
const _0x7b5865 = {
|
|
977
|
+
_0x46b924: 0x186,
|
|
978
|
+
_0x2a225e: 0x1bd,
|
|
979
|
+
_0x5b2f17: 0x1bd,
|
|
980
|
+
_0x3e3ad6: 0x200,
|
|
981
|
+
_0x4a3269: 0x200
|
|
982
|
+
};
|
|
983
|
+
if (!_0x3a5314['forceRefresh'] && _0x382a40)
|
|
984
|
+
return _0x382a40;
|
|
985
|
+
return _0x382a40 = (async () => {
|
|
986
|
+
const _0x392985 = _0x4210, _0x3f40f0 = await _0x236761(_0x392985(0xcf) + _0x17262b['agentId'] + _0x392985(0x1b6), {
|
|
987
|
+
'headers': _0x597408,
|
|
988
|
+
'method': _0x392985(_0x7b5865._0x46b924)
|
|
989
|
+
}), _0x33cd32 = _0x3f40f0[_0x392985(0xe5)]?.[_0x392985(0x23a)] ?? [], _0x7a425d = _0x33cd32['filter'](_0x2f6a70 => _0x2f6a70['participant']?.[_0x392985(0x197)] === _0x392985(0x1c0))['map'](_0x2f3b8e => ({
|
|
990
|
+
'id': _0x5bbe81(_0x2f3b8e),
|
|
991
|
+
'name': _0x3b4522(_0x2f3b8e)
|
|
992
|
+
}))[_0x392985(_0x7b5865._0x2a225e)](_0x4e5480 => _0x4e5480['id']), _0x31536d = _0x33cd32[_0x392985(_0x7b5865._0x5b2f17)](_0x5497cf => _0x5497cf['participant']?.[_0x392985(0x197)] !== _0x392985(0x1c0))[_0x392985(0xf7)](_0x52feda => ({
|
|
993
|
+
'id': _0x5bbe81(_0x52feda),
|
|
994
|
+
'name': _0x3b4522(_0x52feda)
|
|
995
|
+
}))[_0x392985(0x1bd)](_0x17892b => _0x17892b['id']), _0x4c5acc = _0x3f40f0[_0x392985(0xe5)]?.[_0x392985(_0x7b5865._0x3e3ad6)]['id'] ?? '';
|
|
999
996
|
return {
|
|
1000
|
-
'agents':
|
|
1001
|
-
'channels':
|
|
1002
|
-
'humans':
|
|
1003
|
-
'serverId':
|
|
1004
|
-
'serverName':
|
|
997
|
+
'agents': _0x7a425d,
|
|
998
|
+
'channels': _0x3f40f0[_0x392985(0xe5)]?.['channels'] ?? [],
|
|
999
|
+
'humans': _0x31536d,
|
|
1000
|
+
'serverId': _0x4c5acc,
|
|
1001
|
+
'serverName': _0x3f40f0['data']?.[_0x392985(_0x7b5865._0x4a3269)][_0x392985(0x145)] ?? _0x4c5acc
|
|
1005
1002
|
};
|
|
1006
|
-
})()['catch'](
|
|
1007
|
-
|
|
1008
|
-
throw
|
|
1009
|
-
}),
|
|
1003
|
+
})()['catch'](_0x592546 => {
|
|
1004
|
+
_0x382a40 = null;
|
|
1005
|
+
throw _0x592546;
|
|
1006
|
+
}), _0x382a40;
|
|
1010
1007
|
}
|
|
1011
|
-
function
|
|
1012
|
-
const
|
|
1013
|
-
return
|
|
1008
|
+
function _0x4c91ee(_0x586cf4, _0x3b5010) {
|
|
1009
|
+
const _0x486681 = _0x51700c;
|
|
1010
|
+
return _0x3b5010[_0x486681(_0x1ba010._0x484a56)][_0x486681(0x176)](_0x4753c7 => _0x4753c7['id'] === _0x586cf4 || _0x4753c7[_0x486681(0x145)] === _0x586cf4) ? 'agent' : _0x486681(_0x1ba010._0x4d251b);
|
|
1014
1011
|
}
|
|
1015
|
-
function
|
|
1016
|
-
const
|
|
1017
|
-
if (
|
|
1018
|
-
return
|
|
1019
|
-
if (
|
|
1020
|
-
return
|
|
1021
|
-
if (
|
|
1022
|
-
return
|
|
1023
|
-
return
|
|
1012
|
+
function _0x2e978f(_0x52b938) {
|
|
1013
|
+
const _0x1c3d58 = _0x51700c;
|
|
1014
|
+
if (_0x52b938[_0x1c3d58(_0x565212._0x32b250)] != null)
|
|
1015
|
+
return _0x52b938[_0x1c3d58(0x241)] + ':t' + _0x52b938[_0x1c3d58(_0x565212._0x57264e)];
|
|
1016
|
+
if (_0x52b938[_0x1c3d58(0x128)])
|
|
1017
|
+
return _0x52b938[_0x1c3d58(0x241)] + ':' + _0x52b938[_0x1c3d58(_0x565212._0x3afbd3)];
|
|
1018
|
+
if (_0x52b938[_0x1c3d58(_0x565212._0x4e8d8a)])
|
|
1019
|
+
return _0x52b938['channelTarget'] + ':' + _0x52b938[_0x1c3d58(_0x565212._0x4e8d8a)][_0x1c3d58(0x23d)](0x0, 0x8);
|
|
1020
|
+
return _0x52b938[_0x1c3d58(_0x565212._0x420f5a)];
|
|
1024
1021
|
}
|
|
1025
|
-
function
|
|
1026
|
-
const
|
|
1022
|
+
function _0x4d7892(_0x2552e3, _0x1fa855) {
|
|
1023
|
+
const _0x3de046 = _0x51700c;
|
|
1027
1024
|
try {
|
|
1028
|
-
const
|
|
1029
|
-
if (
|
|
1025
|
+
const _0x5c2974 = parseTarget(_0x2552e3);
|
|
1026
|
+
if (_0x5c2974[_0x3de046(0x15f)] !== _0x3de046(0x17c) || _0x5c2974[_0x3de046(_0x475d86._0x110104)] !== _0x1fa855[_0x3de046(_0x475d86._0x104bb6)])
|
|
1030
1027
|
return ![];
|
|
1031
|
-
if (
|
|
1028
|
+
if (_0x1fa855[_0x3de046(0x1ac)] != null && _0x5c2974[_0x3de046(0x1e3)] === 't' + _0x1fa855[_0x3de046(0x1ac)])
|
|
1032
1029
|
return !![];
|
|
1033
|
-
if (
|
|
1034
|
-
return
|
|
1035
|
-
if (
|
|
1036
|
-
return
|
|
1030
|
+
if (_0x1fa855[_0x3de046(0x128)])
|
|
1031
|
+
return _0x5c2974['threadShortId'] === _0x1fa855[_0x3de046(_0x475d86._0x2ca3c3)] || _0x1fa855[_0x3de046(0x128)][_0x3de046(_0x475d86._0x2bc81b)](_0x5c2974[_0x3de046(_0x475d86._0x26e801)]);
|
|
1032
|
+
if (_0x1fa855[_0x3de046(_0x475d86._0x3583ee)])
|
|
1033
|
+
return _0x5c2974[_0x3de046(0x1e3)] === _0x1fa855[_0x3de046(_0x475d86._0x5ba51d)] || _0x1fa855[_0x3de046(0x229)][_0x3de046(0x1c1)](_0x5c2974['threadShortId']);
|
|
1037
1034
|
return ![];
|
|
1038
1035
|
} catch {
|
|
1039
1036
|
return ![];
|
|
1040
1037
|
}
|
|
1041
1038
|
}
|
|
1042
|
-
function
|
|
1043
|
-
const
|
|
1044
|
-
return
|
|
1039
|
+
function _0x5bbe81(_0x40941a) {
|
|
1040
|
+
const _0x20927d = _0x51700c;
|
|
1041
|
+
return _0x40941a[_0x20927d(_0x1fef53._0x33af9d)]?.['participantId'] ?? _0x40941a[_0x20927d(0x15c)]?.['id'] ?? _0x40941a[_0x20927d(_0x1fef53._0x4d52dd)] ?? '';
|
|
1045
1042
|
}
|
|
1046
|
-
function
|
|
1047
|
-
const
|
|
1048
|
-
return
|
|
1043
|
+
function _0x3b4522(_0x368670) {
|
|
1044
|
+
const _0x3974be = _0x51700c;
|
|
1045
|
+
return _0x368670[_0x3974be(0x15c)]?.[_0x3974be(_0x86e614._0x433040)] ?? _0x5bbe81(_0x368670);
|
|
1049
1046
|
}
|
|
1050
|
-
async function
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
const
|
|
1057
|
-
'headers':
|
|
1058
|
-
'method':
|
|
1059
|
-
}),
|
|
1060
|
-
'attachments': (
|
|
1061
|
-
'filename':
|
|
1062
|
-
'id':
|
|
1047
|
+
async function _0x3af4b2(_0x401cdb) {
|
|
1048
|
+
const _0x322ed3 = _0x51700c, _0x1a5d1f = Math['min'](_0x401cdb[_0x322ed3(_0xbdddf3._0x351cbe)] ?? 0x32, 0x64), _0x474d75 = await _0x3307fb(), _0x5bbea2 = new URLSearchParams();
|
|
1049
|
+
_0x5bbea2[_0x322ed3(0x16f)](_0x322ed3(_0xbdddf3._0x37a14f), String(_0x1a5d1f));
|
|
1050
|
+
_0x401cdb[_0x322ed3(0x229)] ? (_0x5bbea2[_0x322ed3(_0xbdddf3._0x37d0bc)](_0x322ed3(0x229), _0x401cdb[_0x322ed3(0x229)]), _0x5bbea2[_0x322ed3(0x16f)]('channelId', _0x401cdb[_0x322ed3(0x181)])) : _0x5bbea2['set'](_0x322ed3(_0xbdddf3._0xd0ea38), _0x401cdb[_0x322ed3(_0xbdddf3._0xd0ea38)]);
|
|
1051
|
+
_0x401cdb[_0x322ed3(_0xbdddf3._0x5b401e)] && _0x5bbea2[_0x322ed3(_0xbdddf3._0x37d0bc)](_0x322ed3(0x101), String(_0x401cdb['before']));
|
|
1052
|
+
_0x401cdb[_0x322ed3(0x232)] !== void 0x0 && _0x5bbea2['set'](_0x322ed3(_0xbdddf3._0x473ba5), String(_0x401cdb[_0x322ed3(_0xbdddf3._0x473ba5)]));
|
|
1053
|
+
const _0x21c61f = await _0x236761(_0x322ed3(_0xbdddf3._0x3de3db) + _0x17262b[_0x322ed3(0x201)] + _0x322ed3(0x1ad) + _0x5bbea2[_0x322ed3(_0xbdddf3._0x5ec29d)](), {
|
|
1054
|
+
'headers': _0x597408,
|
|
1055
|
+
'method': _0x322ed3(_0xbdddf3._0x5f5860)
|
|
1056
|
+
}), _0x4e5cfe = (_0x21c61f[_0x322ed3(0xe5)] ?? [])[_0x322ed3(_0xbdddf3._0x3945d1)](_0x91d02c => ({
|
|
1057
|
+
'attachments': (_0x91d02c['attachments'] ?? [])[_0x322ed3(0xf7)](_0x360864 => ({
|
|
1058
|
+
'filename': _0x360864[_0x322ed3(0xc3)] ?? _0x360864['id'],
|
|
1059
|
+
'id': _0x360864['id']
|
|
1063
1060
|
})),
|
|
1064
|
-
'content':
|
|
1065
|
-
'createdAt':
|
|
1066
|
-
...
|
|
1067
|
-
'messageId':
|
|
1068
|
-
'senderName':
|
|
1069
|
-
'senderType':
|
|
1070
|
-
'seq':
|
|
1061
|
+
'content': _0x91d02c[_0x322ed3(0x11b)] ?? '',
|
|
1062
|
+
'createdAt': _0x91d02c[_0x322ed3(0x190)],
|
|
1063
|
+
..._0x91d02c['kind'] && _0x91d02c['kind'] !== _0x322ed3(0x151) ? { 'kind': _0x91d02c[_0x322ed3(0x15f)] } : {},
|
|
1064
|
+
'messageId': _0x91d02c['id'],
|
|
1065
|
+
'senderName': _0x91d02c['senderParticipantId'],
|
|
1066
|
+
'senderType': _0x4c91ee(_0x91d02c[_0x322ed3(0x18e)], _0x474d75),
|
|
1067
|
+
'seq': _0x91d02c['eventSeq'] ?? 0x0
|
|
1071
1068
|
}));
|
|
1072
1069
|
return {
|
|
1073
|
-
'channel':
|
|
1074
|
-
'hasMore':
|
|
1075
|
-
'messages':
|
|
1076
|
-
'nextCursor':
|
|
1070
|
+
'channel': _0x401cdb[_0x322ed3(_0xbdddf3._0x1660e5)],
|
|
1071
|
+
'hasMore': _0x21c61f[_0x322ed3(0x23e)]?.[_0x322ed3(_0xbdddf3._0x58a87)] ?? ![],
|
|
1072
|
+
'messages': _0x4e5cfe,
|
|
1073
|
+
'nextCursor': _0x21c61f[_0x322ed3(0x23e)]?.[_0x322ed3(0x101)]
|
|
1077
1074
|
};
|
|
1078
1075
|
}
|
|
1079
1076
|
return {
|
|
1080
|
-
async 'sendMessage'(
|
|
1081
|
-
const
|
|
1082
|
-
'body': JSON[
|
|
1083
|
-
'attachment_ids':
|
|
1084
|
-
'bodyMarkdown':
|
|
1085
|
-
'channelId':
|
|
1086
|
-
...
|
|
1087
|
-
'threadId':
|
|
1088
|
-
...
|
|
1077
|
+
async 'sendMessage'(_0x50cfb7) {
|
|
1078
|
+
const _0x37a5a9 = _0x51700c, _0x257706 = await _0x5322c7(_0x50cfb7[_0x37a5a9(_0x1a5601._0x96342b)]), _0x5ae3c9 = _0x50cfb7[_0x37a5a9(0x202)][_0x37a5a9(0x1fb)]('@') ? extractMentionedParticipantIds(_0x50cfb7[_0x37a5a9(_0x1a5601._0x20175a)], await _0x3307fb()) : [], _0x3e6d41 = await _0x236761(_0x37a5a9(_0x1a5601._0x4e45ee) + _0x17262b[_0x37a5a9(0x201)] + '/send', {
|
|
1079
|
+
'body': JSON[_0x37a5a9(_0x1a5601._0x566a05)]({
|
|
1080
|
+
'attachment_ids': _0x50cfb7['attachmentIds'],
|
|
1081
|
+
'bodyMarkdown': _0x50cfb7['content'],
|
|
1082
|
+
'channelId': _0x257706[_0x37a5a9(0x181)],
|
|
1083
|
+
..._0x5ae3c9[_0x37a5a9(0x146)] > 0x0 ? { 'mentionedParticipantIds': _0x5ae3c9 } : {},
|
|
1084
|
+
'threadId': _0x257706[_0x37a5a9(_0x1a5601._0x4a85b1)],
|
|
1085
|
+
..._0x50cfb7['visibility'] ? { 'visibility': _0x50cfb7[_0x37a5a9(_0x1a5601._0x181916)] } : {}
|
|
1089
1086
|
}),
|
|
1090
|
-
'headers':
|
|
1091
|
-
'method':
|
|
1087
|
+
'headers': _0x597408,
|
|
1088
|
+
'method': _0x37a5a9(0xf4)
|
|
1092
1089
|
});
|
|
1093
|
-
return { 'messageId':
|
|
1090
|
+
return { 'messageId': _0x3e6d41[_0x37a5a9(_0x1a5601._0x428acc)]?.['id'] ?? '' };
|
|
1094
1091
|
},
|
|
1095
1092
|
async 'listSchedules'() {
|
|
1096
|
-
const
|
|
1097
|
-
'headers':
|
|
1098
|
-
'method':
|
|
1093
|
+
const _0x168381 = _0x51700c, _0x844dbb = await _0x236761(_0x168381(0x1e0), {
|
|
1094
|
+
'headers': _0x597408,
|
|
1095
|
+
'method': _0x168381(_0x1d8d90._0x39cbd8)
|
|
1099
1096
|
});
|
|
1100
|
-
return
|
|
1097
|
+
return _0x844dbb[_0x168381(0xe5)] ?? [];
|
|
1101
1098
|
},
|
|
1102
|
-
async 'claimScheduleRun'(
|
|
1103
|
-
const
|
|
1104
|
-
'body': JSON[
|
|
1105
|
-
'headers':
|
|
1106
|
-
'method':
|
|
1099
|
+
async 'claimScheduleRun'(_0xa17036) {
|
|
1100
|
+
const _0x35ae17 = _0x51700c, _0x3be6b5 = await _0x236761('/api/internal/schedules/claim', {
|
|
1101
|
+
'body': JSON[_0x35ae17(_0x12f6eb._0x4d193e)](_0xa17036),
|
|
1102
|
+
'headers': _0x597408,
|
|
1103
|
+
'method': _0x35ae17(_0x12f6eb._0x5e874b)
|
|
1107
1104
|
});
|
|
1108
|
-
return
|
|
1105
|
+
return _0x3be6b5['data'] ?? {
|
|
1109
1106
|
'granted': ![],
|
|
1110
1107
|
'runId': null,
|
|
1111
1108
|
'schedule': null,
|
|
1112
|
-
'scheduledFor':
|
|
1109
|
+
'scheduledFor': _0xa17036[_0x35ae17(0x19f)]
|
|
1113
1110
|
};
|
|
1114
1111
|
},
|
|
1115
|
-
async 'startScheduleRun'(
|
|
1116
|
-
const
|
|
1117
|
-
'body': JSON[
|
|
1118
|
-
'headers':
|
|
1119
|
-
'method':
|
|
1112
|
+
async 'startScheduleRun'(_0x5cb60a) {
|
|
1113
|
+
const _0x5b76db = _0x51700c, _0x38c95d = await _0x236761(_0x5b76db(0x1b0) + encodeURIComponent(_0x5cb60a[_0x5b76db(0x152)]) + _0x5b76db(0x154), {
|
|
1114
|
+
'body': JSON[_0x5b76db(0x112)]({}),
|
|
1115
|
+
'headers': _0x597408,
|
|
1116
|
+
'method': _0x5b76db(0xf4)
|
|
1120
1117
|
});
|
|
1121
|
-
return
|
|
1118
|
+
return _0x38c95d['data'] ?? {
|
|
1122
1119
|
'claimedByDaemonId': '',
|
|
1123
|
-
'id':
|
|
1120
|
+
'id': _0x5cb60a['runId'],
|
|
1124
1121
|
'scheduleId': '',
|
|
1125
|
-
'status':
|
|
1122
|
+
'status': _0x5b76db(_0x334940._0x29cba5)
|
|
1126
1123
|
};
|
|
1127
1124
|
},
|
|
1128
|
-
async 'finishScheduleRun'(
|
|
1129
|
-
const
|
|
1130
|
-
'body': JSON[
|
|
1131
|
-
'error':
|
|
1132
|
-
'resultJson':
|
|
1133
|
-
'status':
|
|
1125
|
+
async 'finishScheduleRun'(_0x57b832) {
|
|
1126
|
+
const _0x226397 = _0x51700c, _0x43d825 = await _0x236761('/api/internal/schedules/' + encodeURIComponent(_0x57b832[_0x226397(0x152)]) + '/finish', {
|
|
1127
|
+
'body': JSON['stringify']({
|
|
1128
|
+
'error': _0x57b832[_0x226397(0x14d)],
|
|
1129
|
+
'resultJson': _0x57b832['resultJson'],
|
|
1130
|
+
'status': _0x57b832[_0x226397(_0x4732ae._0x1bcd45)]
|
|
1134
1131
|
}),
|
|
1135
|
-
'headers':
|
|
1136
|
-
'method':
|
|
1132
|
+
'headers': _0x597408,
|
|
1133
|
+
'method': _0x226397(_0x4732ae._0x43e7c4)
|
|
1137
1134
|
});
|
|
1138
|
-
return
|
|
1135
|
+
return _0x43d825[_0x226397(_0x4732ae._0x5c2126)] ?? {
|
|
1139
1136
|
'nextRunAt': null,
|
|
1140
1137
|
'run': {
|
|
1141
1138
|
'claimedByDaemonId': '',
|
|
1142
|
-
'id':
|
|
1139
|
+
'id': _0x57b832[_0x226397(_0x4732ae._0x1ea312)],
|
|
1143
1140
|
'scheduleId': '',
|
|
1144
|
-
'status':
|
|
1141
|
+
'status': _0x57b832[_0x226397(0x12e)]
|
|
1145
1142
|
}
|
|
1146
1143
|
};
|
|
1147
1144
|
},
|
|
1148
|
-
async 'listTasks'(
|
|
1149
|
-
const
|
|
1150
|
-
return
|
|
1151
|
-
'headers':
|
|
1152
|
-
'method':
|
|
1145
|
+
async 'listTasks'(_0x1a25c4) {
|
|
1146
|
+
const _0x2e0dd4 = _0x51700c, _0x31f29f = new URLSearchParams();
|
|
1147
|
+
return _0x31f29f['set'](_0x2e0dd4(0xba), _0x1a25c4['channel']), _0x1a25c4[_0x2e0dd4(_0x19ff08._0x50c22c)] && _0x31f29f[_0x2e0dd4(0x16f)](_0x2e0dd4(0x12e), _0x1a25c4[_0x2e0dd4(_0x19ff08._0x50c22c)]), _0x4e5101('/internal/agent/' + _0x17262b['agentId'] + _0x2e0dd4(0x175) + _0x31f29f['toString'](), {
|
|
1148
|
+
'headers': _0x597408,
|
|
1149
|
+
'method': _0x2e0dd4(_0x19ff08._0xebf989)
|
|
1153
1150
|
});
|
|
1154
1151
|
},
|
|
1155
|
-
async 'createTasks'(
|
|
1156
|
-
const
|
|
1157
|
-
return
|
|
1158
|
-
'body': JSON[
|
|
1159
|
-
...
|
|
1160
|
-
'idempotency_key':
|
|
1152
|
+
async 'createTasks'(_0x36209d) {
|
|
1153
|
+
const _0x61776e = _0x51700c;
|
|
1154
|
+
return _0x4e5101(_0x61776e(_0x1f62fd._0xa88028) + _0x17262b[_0x61776e(0x201)] + '/tasks', {
|
|
1155
|
+
'body': JSON[_0x61776e(_0x1f62fd._0x4dc32e)]({
|
|
1156
|
+
..._0x36209d,
|
|
1157
|
+
'idempotency_key': _0x390ff5(_0x61776e(0x163), _0x36209d)
|
|
1161
1158
|
}),
|
|
1162
|
-
'headers':
|
|
1163
|
-
'method':
|
|
1159
|
+
'headers': _0x597408,
|
|
1160
|
+
'method': 'POST'
|
|
1164
1161
|
});
|
|
1165
1162
|
},
|
|
1166
|
-
async 'claimTasks'(
|
|
1167
|
-
const
|
|
1168
|
-
return
|
|
1163
|
+
async 'claimTasks'(_0x4944a5) {
|
|
1164
|
+
const _0x2b59a6 = _0x51700c;
|
|
1165
|
+
return _0x4e5101(_0x2b59a6(_0x1ee795._0x38044b) + _0x17262b[_0x2b59a6(0x201)] + _0x2b59a6(_0x1ee795._0xf9120b), {
|
|
1169
1166
|
'body': JSON['stringify']({
|
|
1170
|
-
...
|
|
1171
|
-
'idempotency_key':
|
|
1167
|
+
..._0x4944a5,
|
|
1168
|
+
'idempotency_key': _0x390ff5(_0x2b59a6(0x21c), _0x4944a5)
|
|
1172
1169
|
}),
|
|
1173
|
-
'headers':
|
|
1174
|
-
'method':
|
|
1170
|
+
'headers': _0x597408,
|
|
1171
|
+
'method': _0x2b59a6(_0x1ee795._0x525d95)
|
|
1175
1172
|
});
|
|
1176
1173
|
},
|
|
1177
|
-
async 'unclaimTask'(
|
|
1178
|
-
const
|
|
1179
|
-
return
|
|
1180
|
-
'body': JSON[
|
|
1181
|
-
...
|
|
1182
|
-
'idempotency_key':
|
|
1174
|
+
async 'unclaimTask'(_0x40fe53) {
|
|
1175
|
+
const _0x3b9459 = _0x51700c;
|
|
1176
|
+
return _0x4e5101(_0x3b9459(0xcf) + _0x17262b[_0x3b9459(_0x1c41eb._0x98c01e)] + _0x3b9459(0x10b), {
|
|
1177
|
+
'body': JSON[_0x3b9459(_0x1c41eb._0x1b0c3e)]({
|
|
1178
|
+
..._0x40fe53,
|
|
1179
|
+
'idempotency_key': _0x390ff5(_0x3b9459(0x148), _0x40fe53)
|
|
1183
1180
|
}),
|
|
1184
|
-
'headers':
|
|
1185
|
-
'method':
|
|
1181
|
+
'headers': _0x597408,
|
|
1182
|
+
'method': _0x3b9459(_0x1c41eb._0x4636e4)
|
|
1186
1183
|
});
|
|
1187
1184
|
},
|
|
1188
|
-
async 'updateTaskStatus'(
|
|
1189
|
-
const
|
|
1190
|
-
return
|
|
1191
|
-
'body': JSON[
|
|
1192
|
-
...
|
|
1193
|
-
'idempotency_key':
|
|
1185
|
+
async 'updateTaskStatus'(_0x133ef4) {
|
|
1186
|
+
const _0x25b0e3 = _0x51700c;
|
|
1187
|
+
return _0x4e5101(_0x25b0e3(0xcf) + _0x17262b[_0x25b0e3(_0x1e3217._0x2b975f)] + _0x25b0e3(0x132), {
|
|
1188
|
+
'body': JSON[_0x25b0e3(0x112)]({
|
|
1189
|
+
..._0x133ef4,
|
|
1190
|
+
'idempotency_key': _0x390ff5(_0x25b0e3(0x1d4), _0x133ef4)
|
|
1194
1191
|
}),
|
|
1195
|
-
'headers':
|
|
1196
|
-
'method':
|
|
1192
|
+
'headers': _0x597408,
|
|
1193
|
+
'method': _0x25b0e3(0xf4)
|
|
1197
1194
|
});
|
|
1198
1195
|
},
|
|
1199
|
-
async 'uploadFile'(
|
|
1200
|
-
const
|
|
1201
|
-
if (
|
|
1202
|
-
throw new Error(
|
|
1203
|
-
const
|
|
1204
|
-
'body': JSON[
|
|
1205
|
-
'channel':
|
|
1206
|
-
'contentBase64':
|
|
1207
|
-
'contentType':
|
|
1208
|
-
'originalFilename':
|
|
1196
|
+
async 'uploadFile'(_0x52122c) {
|
|
1197
|
+
const _0x5bede0 = _0x51700c, _0x3c4059 = await _0x5322c7(_0x52122c[_0x5bede0(_0x59c219._0x2ef705)]);
|
|
1198
|
+
if (_0x3c4059[_0x5bede0(_0x59c219._0xeb7af1)])
|
|
1199
|
+
throw new Error(_0x5bede0(_0x59c219._0x10894e));
|
|
1200
|
+
const _0x410a4f = await _0x236761(_0x5bede0(0xcf) + _0x17262b[_0x5bede0(_0x59c219._0x3b43f8)] + _0x5bede0(0x1b7), {
|
|
1201
|
+
'body': JSON[_0x5bede0(_0x59c219._0x4b9117)]({
|
|
1202
|
+
'channel': _0x3c4059['target'],
|
|
1203
|
+
'contentBase64': _0x52122c[_0x5bede0(_0x59c219._0x5cbe6e)],
|
|
1204
|
+
'contentType': _0x52122c[_0x5bede0(_0x59c219._0xb8ff69)],
|
|
1205
|
+
'originalFilename': _0x52122c['filename']
|
|
1209
1206
|
}),
|
|
1210
|
-
'headers':
|
|
1211
|
-
'method':
|
|
1207
|
+
'headers': _0x597408,
|
|
1208
|
+
'method': _0x5bede0(_0x59c219._0xe8cb0b)
|
|
1212
1209
|
});
|
|
1213
1210
|
return {
|
|
1214
|
-
'attachmentId':
|
|
1215
|
-
'filename':
|
|
1216
|
-
'sizeBytes':
|
|
1211
|
+
'attachmentId': _0x410a4f[_0x5bede0(_0x59c219._0x5d2ddd)]?.['id'] ?? '',
|
|
1212
|
+
'filename': _0x410a4f['data']?.[_0x5bede0(0x18c)] ?? _0x52122c[_0x5bede0(0xc3)],
|
|
1213
|
+
'sizeBytes': _0x410a4f[_0x5bede0(_0x59c219._0x5d2ddd)]?.[_0x5bede0(0x125)] ?? 0x0
|
|
1217
1214
|
};
|
|
1218
1215
|
},
|
|
1219
|
-
async 'downloadAttachment'(
|
|
1220
|
-
const
|
|
1221
|
-
'headers':
|
|
1222
|
-
'method':
|
|
1223
|
-
}),
|
|
1216
|
+
async 'downloadAttachment'(_0x15e0f4) {
|
|
1217
|
+
const _0xa82a43 = _0x51700c, _0x4a9e80 = await _0x236761(_0xa82a43(_0x79709b._0xec87a1) + _0x15e0f4, {
|
|
1218
|
+
'headers': _0x597408,
|
|
1219
|
+
'method': _0xa82a43(0x186)
|
|
1220
|
+
}), _0x18636f = new AbortController(), _0x48e02e = setTimeout(() => _0x18636f[_0xa82a43(0x1be)](), _0x44146a);
|
|
1224
1221
|
try {
|
|
1225
|
-
const
|
|
1226
|
-
'headers':
|
|
1227
|
-
'method':
|
|
1228
|
-
'signal':
|
|
1222
|
+
const _0x59421a = await _0x56c41b(_0x558388 + _0xa82a43(0x179) + _0x15e0f4 + _0xa82a43(_0x79709b._0x47cd7a), {
|
|
1223
|
+
'headers': _0x597408,
|
|
1224
|
+
'method': _0xa82a43(_0x79709b._0x264bcd),
|
|
1225
|
+
'signal': _0x18636f['signal']
|
|
1229
1226
|
});
|
|
1230
|
-
if (!
|
|
1231
|
-
throw new Error(
|
|
1227
|
+
if (!_0x59421a['ok'])
|
|
1228
|
+
throw new Error(_0xa82a43(0xbb) + _0x59421a['status']);
|
|
1232
1229
|
return {
|
|
1233
|
-
'contentType':
|
|
1234
|
-
'data': Buffer[
|
|
1235
|
-
'originalFilename':
|
|
1230
|
+
'contentType': _0x4a9e80['data']?.['contentType'] ?? _0x59421a[_0xa82a43(_0x79709b._0x5ad6ca)][_0xa82a43(_0x79709b._0x592170)]('content-type') ?? _0xa82a43(_0x79709b._0x48f7d5),
|
|
1231
|
+
'data': Buffer[_0xa82a43(_0x79709b._0x42a5f7)](await _0x59421a['arrayBuffer']()),
|
|
1232
|
+
'originalFilename': _0x4a9e80[_0xa82a43(_0x79709b._0x3330)]?.[_0xa82a43(0x18c)]
|
|
1236
1233
|
};
|
|
1237
1234
|
} finally {
|
|
1238
|
-
clearTimeout(
|
|
1235
|
+
clearTimeout(_0x48e02e);
|
|
1239
1236
|
}
|
|
1240
1237
|
},
|
|
1241
1238
|
async 'listServer'() {
|
|
1242
|
-
return
|
|
1239
|
+
return _0x3307fb({ 'forceRefresh': !![] });
|
|
1243
1240
|
},
|
|
1244
|
-
async 'readHistory'(
|
|
1245
|
-
const
|
|
1246
|
-
return
|
|
1247
|
-
'after':
|
|
1248
|
-
'before':
|
|
1249
|
-
'channelId':
|
|
1250
|
-
'channelTarget':
|
|
1251
|
-
'limit':
|
|
1252
|
-
'threadId':
|
|
1241
|
+
async 'readHistory'(_0x287452) {
|
|
1242
|
+
const _0x24141b = _0x51700c, _0x25e009 = await _0x5322c7(_0x287452[_0x24141b(0xba)]);
|
|
1243
|
+
return _0x3af4b2({
|
|
1244
|
+
'after': _0x287452[_0x24141b(_0x37d62d._0x31e0ff)],
|
|
1245
|
+
'before': _0x287452[_0x24141b(0x17a)],
|
|
1246
|
+
'channelId': _0x25e009[_0x24141b(0x181)],
|
|
1247
|
+
'channelTarget': _0x25e009['target'],
|
|
1248
|
+
'limit': _0x287452[_0x24141b(0x1e1)],
|
|
1249
|
+
'threadId': _0x25e009[_0x24141b(_0x37d62d._0x421439)]
|
|
1253
1250
|
});
|
|
1254
1251
|
},
|
|
1255
|
-
'resolveTarget':
|
|
1252
|
+
'resolveTarget': _0x5322c7,
|
|
1256
1253
|
async 'checkMessages'() {
|
|
1257
|
-
const
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
'
|
|
1265
|
-
|
|
1266
|
-
let _0x3098c4 = await _0x6bf2ff(), _0x20a516 = new Map(_0x3098c4[_0xf370c8(_0x31733e._0x349552)][_0xf370c8(0xe1)](_0x2bc340 => [
|
|
1267
|
-
_0x2bc340['id'],
|
|
1268
|
-
_0x2bc340
|
|
1254
|
+
const _0x4291d9 = { _0x2ae815: 0x1e8 }, _0x3cda68 = _0x51700c, _0x4082eb = new URLSearchParams();
|
|
1255
|
+
_0x4082eb['set'](_0x3cda68(_0x5eb86d._0x5211aa), String(_0xdfb599));
|
|
1256
|
+
const _0x516920 = _0x4082eb[_0x3cda68(_0x5eb86d._0x5c99df)](), _0x555e65 = await _0x236761(_0x3cda68(0xcf) + _0x17262b[_0x3cda68(_0x5eb86d._0x10cbf9)] + '/receive' + (_0x516920 ? '?' + _0x516920 : ''), {
|
|
1257
|
+
'headers': _0x597408,
|
|
1258
|
+
'method': _0x3cda68(0x186)
|
|
1259
|
+
}), _0xd77f2d = _0x555e65[_0x3cda68(_0x5eb86d._0x5036b3)] ?? [], _0x1a7890 = _0x555e65[_0x3cda68(_0x5eb86d._0x9c83a5)]?.[_0x3cda68(0x101)], _0x922da4 = _0x1a7890 !== void 0x0 ? Math['max'](_0xdfb599, _0x1a7890) : _0xd77f2d[_0x3cda68(_0x5eb86d._0x2dcf9d)] > 0x0 ? Math[_0x3cda68(0xd2)](_0xdfb599, _0xd77f2d[_0xd77f2d[_0x3cda68(_0x5eb86d._0x2dcf9d)] - 0x1]['seq']) : _0xdfb599, _0x593e45 = _0xd77f2d[_0x3cda68(0x1bd)](_0x5e006b => _0x5e006b[_0x3cda68(0x14b)] === 'message'), _0xe69790 = _0x1f9804 === void 0x0 && _0x5a3c40;
|
|
1260
|
+
let _0x128078 = await _0x3307fb(), _0x4434a9 = new Map(_0x128078[_0x3cda68(_0x5eb86d._0x1b2e6f)][_0x3cda68(_0x5eb86d._0x1ab9ee)](_0x5c066e => [
|
|
1261
|
+
_0x5c066e['id'],
|
|
1262
|
+
_0x5c066e
|
|
1269
1263
|
]));
|
|
1270
|
-
const
|
|
1271
|
-
const
|
|
1272
|
-
return Boolean(
|
|
1264
|
+
const _0x312f0b = _0x593e45['some'](_0x1fe5f4 => {
|
|
1265
|
+
const _0x2d3711 = _0x3cda68, _0x20b60c = asRecord(_0x1fe5f4[_0x2d3711(_0x4291d9._0x2ae815)]), _0x52c678 = typeof _0x20b60c?.['channelId'] === _0x2d3711(0x1cb) ? _0x20b60c[_0x2d3711(0x181)] : '';
|
|
1266
|
+
return Boolean(_0x52c678) && !_0x4434a9['has'](_0x52c678);
|
|
1273
1267
|
});
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1268
|
+
_0x312f0b && (_0x128078 = await _0x3307fb({ 'forceRefresh': !![] }), _0x4434a9 = new Map(_0x128078[_0x3cda68(0xbc)][_0x3cda68(0xf7)](_0x595838 => [
|
|
1269
|
+
_0x595838['id'],
|
|
1270
|
+
_0x595838
|
|
1277
1271
|
])));
|
|
1278
|
-
const
|
|
1279
|
-
for (const
|
|
1280
|
-
const
|
|
1281
|
-
if (!
|
|
1272
|
+
const _0x882ad9 = new Map();
|
|
1273
|
+
for (const _0x327196 of _0x593e45) {
|
|
1274
|
+
const _0x1c2c93 = asRecord(_0x327196[_0x3cda68(_0x5eb86d._0xba0cf2)]), _0x3b1401 = typeof _0x1c2c93[_0x3cda68(0x181)] === _0x3cda68(_0x5eb86d._0x1fc159) ? _0x1c2c93['channelId'] : '';
|
|
1275
|
+
if (!_0x3b1401)
|
|
1282
1276
|
continue;
|
|
1283
|
-
const
|
|
1277
|
+
const _0x89d110 = typeof _0x1c2c93[_0x3cda68(0x229)] === 'string' ? _0x1c2c93[_0x3cda68(_0x5eb86d._0x4dc78b)] : void 0x0, _0x482c55 = typeof _0x1c2c93['rootMessageId'] === _0x3cda68(0x1cb) ? _0x1c2c93[_0x3cda68(_0x5eb86d._0x5c65d1)] : void 0x0, _0x6e5080 = typeof _0x1c2c93[_0x3cda68(0x1ac)] === _0x3cda68(0xbe) && Number[_0x3cda68(0xca)](_0x1c2c93[_0x3cda68(0x1ac)]) ? _0x1c2c93[_0x3cda68(_0x5eb86d._0x6b6ebb)] : void 0x0, _0x576c36 = Boolean(_0x89d110 && (!_0x482c55 || _0x327196[_0x3cda68(_0x5eb86d._0x2616dd)] !== _0x482c55)), _0x35bfe3 = _0x576c36 ? _0x3b1401 + ':' + _0x89d110 : _0x3b1401, _0x1b8cb0 = _0x882ad9[_0x3cda68(0x161)](_0x35bfe3) ?? {
|
|
1284
1278
|
'aggregateIds': [],
|
|
1285
|
-
'channelId':
|
|
1279
|
+
'channelId': _0x3b1401,
|
|
1286
1280
|
'entries': new Map(),
|
|
1287
|
-
'isThreadReply':
|
|
1288
|
-
'rootMessageId':
|
|
1289
|
-
'threadNumber':
|
|
1290
|
-
'threadId':
|
|
1281
|
+
'isThreadReply': _0x576c36,
|
|
1282
|
+
'rootMessageId': _0x482c55,
|
|
1283
|
+
'threadNumber': _0x6e5080,
|
|
1284
|
+
'threadId': _0x576c36 ? _0x89d110 : void 0x0
|
|
1291
1285
|
};
|
|
1292
|
-
|
|
1293
|
-
'payloadJson':
|
|
1294
|
-
'seq':
|
|
1295
|
-
}),
|
|
1286
|
+
_0x1b8cb0[_0x3cda68(_0x5eb86d._0x195701)] == null && _0x6e5080 != null && (_0x1b8cb0['threadNumber'] = _0x6e5080), !_0x1b8cb0[_0x3cda68(0x128)] && _0x482c55 && (_0x1b8cb0['rootMessageId'] = _0x482c55), _0x1b8cb0[_0x3cda68(_0x5eb86d._0x5ca5a2)][_0x3cda68(0x1cd)](_0x327196[_0x3cda68(_0x5eb86d._0x1c8f2d)]), _0x1b8cb0[_0x3cda68(0xec)]['set'](_0x327196[_0x3cda68(_0x5eb86d._0x1c8f2d)], {
|
|
1287
|
+
'payloadJson': _0x327196[_0x3cda68(0x1e8)],
|
|
1288
|
+
'seq': _0x327196[_0x3cda68(_0x5eb86d._0x35a1ee)]
|
|
1289
|
+
}), _0x882ad9[_0x3cda68(_0x5eb86d._0x405f28)](_0x35bfe3, _0x1b8cb0);
|
|
1296
1290
|
}
|
|
1297
|
-
const
|
|
1298
|
-
for (const
|
|
1291
|
+
const _0x1deb9b = [];
|
|
1292
|
+
for (const _0x4c7636 of _0x882ad9[_0x3cda68(_0x5eb86d._0x64deb5)]()) {
|
|
1299
1293
|
const {
|
|
1300
|
-
channelId:
|
|
1301
|
-
threadId:
|
|
1302
|
-
rootMessageId:
|
|
1303
|
-
threadNumber:
|
|
1304
|
-
aggregateIds:
|
|
1305
|
-
isThreadReply:
|
|
1306
|
-
entries:
|
|
1307
|
-
} =
|
|
1308
|
-
'channelTarget':
|
|
1309
|
-
'rootMessageId':
|
|
1310
|
-
'threadId':
|
|
1311
|
-
'threadNumber':
|
|
1312
|
-
},
|
|
1313
|
-
'channelId':
|
|
1314
|
-
'channelTarget':
|
|
1315
|
-
'limit': Math[
|
|
1316
|
-
'threadId':
|
|
1317
|
-
}),
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
])),
|
|
1321
|
-
for (const
|
|
1322
|
-
if (!
|
|
1294
|
+
channelId: _0x4f9650,
|
|
1295
|
+
threadId: _0x19cc33,
|
|
1296
|
+
rootMessageId: _0x485965,
|
|
1297
|
+
threadNumber: _0x3bc4ab,
|
|
1298
|
+
aggregateIds: _0x37bb6c,
|
|
1299
|
+
isThreadReply: _0x56ab18,
|
|
1300
|
+
entries: _0x453026
|
|
1301
|
+
} = _0x4c7636, _0x43ccc7 = _0x4434a9[_0x3cda68(0x161)](_0x4f9650), _0x428f4c = _0x43ccc7?.[_0x3cda68(_0x5eb86d._0x248a3f)] ?? _0x4f9650, _0x3aaaf1 = _0x43ccc7?.[_0x3cda68(_0x5eb86d._0x331458)] === 'dm' ? _0x3cda68(0x100) + _0x428f4c : '#' + _0x428f4c, _0x52cefd = {
|
|
1302
|
+
'channelTarget': _0x3aaaf1,
|
|
1303
|
+
'rootMessageId': _0x485965,
|
|
1304
|
+
'threadId': _0x19cc33,
|
|
1305
|
+
'threadNumber': _0x3bc4ab
|
|
1306
|
+
}, _0x5a163d = await _0x3af4b2({
|
|
1307
|
+
'channelId': _0x4f9650,
|
|
1308
|
+
'channelTarget': _0x3aaaf1,
|
|
1309
|
+
'limit': Math[_0x3cda68(0xd2)](_0x37bb6c[_0x3cda68(0x146)], 0x32),
|
|
1310
|
+
'threadId': _0x19cc33
|
|
1311
|
+
}), _0x28ec32 = new Map(_0x5a163d['messages'][_0x3cda68(_0x5eb86d._0x1ab9ee)](_0x464a56 => [
|
|
1312
|
+
_0x464a56[_0x3cda68(0x15e)],
|
|
1313
|
+
_0x464a56
|
|
1314
|
+
])), _0x339d9e = _0x19cc33 ? _0x2e978f(_0x52cefd) : _0x3aaaf1, _0x2f7408 = _0x1f9804 ? _0x56ab18 && _0x4d7892(_0x1f9804, _0x52cefd) : !![], _0xd80891 = _0x56ab18 ? _0x2f7408 && _0x1f9804 ? _0x1f9804 : _0x339d9e : _0x3aaaf1;
|
|
1315
|
+
for (const _0x2811fa of _0x37bb6c) {
|
|
1316
|
+
if (!_0x2f7408)
|
|
1323
1317
|
continue;
|
|
1324
|
-
const
|
|
1325
|
-
if (
|
|
1318
|
+
const _0x37bc26 = _0x453026[_0x3cda68(0x161)](_0x2811fa), _0x4643b6 = _0x37bc26 ? asRecord(_0x37bc26[_0x3cda68(_0x5eb86d._0x50df31)]) : void 0x0, _0x1ed7d9 = _0x4643b6?.[_0x3cda68(0x126)] === 'targeted';
|
|
1319
|
+
if (_0xe69790 && _0x1ed7d9)
|
|
1326
1320
|
continue;
|
|
1327
|
-
const
|
|
1328
|
-
if (
|
|
1329
|
-
|
|
1330
|
-
'attachments':
|
|
1331
|
-
'content':
|
|
1332
|
-
'createdAt':
|
|
1333
|
-
...
|
|
1334
|
-
'messageId':
|
|
1335
|
-
'senderName':
|
|
1336
|
-
'senderType':
|
|
1337
|
-
'target':
|
|
1338
|
-
...
|
|
1321
|
+
const _0x49b982 = _0x28ec32[_0x3cda68(0x161)](_0x2811fa);
|
|
1322
|
+
if (_0x49b982) {
|
|
1323
|
+
_0x1deb9b['push']({
|
|
1324
|
+
'attachments': _0x49b982[_0x3cda68(_0x5eb86d._0x3e7ad3)],
|
|
1325
|
+
'content': _0x49b982['content'],
|
|
1326
|
+
'createdAt': _0x49b982[_0x3cda68(0x190)],
|
|
1327
|
+
..._0x49b982[_0x3cda68(0x15f)] ? { 'kind': _0x49b982[_0x3cda68(_0x5eb86d._0x331458)] } : {},
|
|
1328
|
+
'messageId': _0x49b982['messageId'],
|
|
1329
|
+
'senderName': _0x49b982['senderName'],
|
|
1330
|
+
'senderType': _0x49b982[_0x3cda68(0x18d)],
|
|
1331
|
+
'target': _0xd80891,
|
|
1332
|
+
..._0x1ed7d9 ? { 'targetedTask': !![] } : {}
|
|
1339
1333
|
});
|
|
1340
1334
|
continue;
|
|
1341
1335
|
}
|
|
1342
|
-
if (
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1336
|
+
if (_0x37bc26) {
|
|
1337
|
+
const _0x3d9f05 = typeof _0x4643b6?.[_0x3cda68(_0x5eb86d._0x4a4596)] === _0x3cda68(0x1cb) ? _0x4643b6[_0x3cda68(_0x5eb86d._0x39d06a)] : '', _0x5f1f28 = typeof _0x4643b6?.[_0x3cda68(_0x5eb86d._0x5469f2)] === _0x3cda68(_0x5eb86d._0x1fc159) ? _0x4643b6[_0x3cda68(_0x5eb86d._0x8d02ed)] : '', _0x2b442e = typeof _0x4643b6?.[_0x3cda68(0x15f)] === 'string' && _0x4643b6[_0x3cda68(0x15f)] !== 'chat' ? _0x4643b6[_0x3cda68(_0x5eb86d._0x331458)] : void 0x0;
|
|
1338
|
+
_0x3d9f05 && _0x5f1f28 && _0x1deb9b['push']({
|
|
1345
1339
|
'attachments': [],
|
|
1346
|
-
'content':
|
|
1347
|
-
'createdAt': new Date()[
|
|
1348
|
-
...
|
|
1349
|
-
'messageId':
|
|
1350
|
-
'senderName':
|
|
1351
|
-
'senderType':
|
|
1352
|
-
'target':
|
|
1353
|
-
...
|
|
1340
|
+
'content': _0x5f1f28,
|
|
1341
|
+
'createdAt': new Date()['toISOString'](),
|
|
1342
|
+
..._0x2b442e ? { 'kind': _0x2b442e } : {},
|
|
1343
|
+
'messageId': _0x2811fa,
|
|
1344
|
+
'senderName': _0x3d9f05,
|
|
1345
|
+
'senderType': _0x4c91ee(_0x3d9f05, _0x128078),
|
|
1346
|
+
'target': _0xd80891,
|
|
1347
|
+
..._0x1ed7d9 ? { 'targetedTask': !![] } : {}
|
|
1354
1348
|
});
|
|
1355
1349
|
}
|
|
1356
1350
|
}
|
|
1357
1351
|
}
|
|
1358
|
-
if (
|
|
1359
|
-
if (
|
|
1360
|
-
await
|
|
1352
|
+
if (_0x922da4 > 0x0) {
|
|
1353
|
+
if (_0x2dd09a)
|
|
1354
|
+
await _0x455686(_0x922da4);
|
|
1361
1355
|
else
|
|
1362
|
-
|
|
1356
|
+
_0x4d1720 && await _0x61fc0e(_0x922da4);
|
|
1363
1357
|
}
|
|
1364
|
-
return
|
|
1358
|
+
return _0x922da4 > _0xdfb599 && (_0xdfb599 = _0x922da4), { 'messages': _0x1f9804 ? _0x1deb9b : _0xe69790 ? _0x1deb9b[_0x3cda68(0x1bd)](_0x306cbe => _0x306cbe['targetedTask'] !== !![]) : _0x1deb9b };
|
|
1365
1359
|
}
|
|
1366
1360
|
};
|
|
1367
1361
|
}
|
|
1368
|
-
function toLocalTime(
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1362
|
+
function toLocalTime(_0x18c512) {
|
|
1363
|
+
const _0x688624 = {
|
|
1364
|
+
_0x11b363: 0x21e,
|
|
1365
|
+
_0x371214: 0x103,
|
|
1366
|
+
_0xa14129: 0x12a,
|
|
1367
|
+
_0x178524: 0x1c2,
|
|
1368
|
+
_0x4291cf: 0x1c3
|
|
1369
|
+
}, _0xa58538 = _0x77ce4b, _0x9c3873 = new Date(_0x18c512);
|
|
1370
|
+
if (Number[_0xa58538(_0x688624._0x11b363)](_0x9c3873[_0xa58538(_0x688624._0x371214)]()))
|
|
1371
|
+
return _0x18c512;
|
|
1372
|
+
const _0x42da82 = _0x463b9e => String(_0x463b9e)[_0xa58538(0x226)](0x2, '0');
|
|
1373
|
+
return _0x9c3873['getFullYear']() + '-' + _0x42da82(_0x9c3873[_0xa58538(0x218)]() + 0x1) + '-' + _0x42da82(_0x9c3873['getDate']()) + '\x20' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0xa14129)]()) + ':' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0x178524)]()) + ':' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0x4291cf)]());
|
|
1379
1374
|
}
|
|
1380
|
-
function formatAttachmentSuffix(
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1383
|
-
_0x4c8f35: 0x119
|
|
1384
|
-
}, _0xa703be = _0xba094d;
|
|
1385
|
-
if (!_0x23c9ce || _0x23c9ce['length'] === 0x0)
|
|
1375
|
+
function formatAttachmentSuffix(_0x1cc08e) {
|
|
1376
|
+
const _0x16bf13 = _0x77ce4b;
|
|
1377
|
+
if (!_0x1cc08e || _0x1cc08e[_0x16bf13(0x146)] === 0x0)
|
|
1386
1378
|
return '';
|
|
1387
|
-
return '\x20[' +
|
|
1379
|
+
return '\x20[' + _0x1cc08e[_0x16bf13(0x146)] + '\x20attachment' + (_0x1cc08e[_0x16bf13(0x146)] > 0x1 ? 's' : '') + ':\x20' + _0x1cc08e[_0x16bf13(0xf7)](_0x45e1f0 => _0x45e1f0['filename'] + _0x16bf13(0x18a) + _0x45e1f0['id'] + ')')['join'](',\x20') + _0x16bf13(0x188);
|
|
1388
1380
|
}
|
|
1389
|
-
function formatCheckMessages(
|
|
1390
|
-
const
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
})['join']('\x0a');
|
|
1381
|
+
function formatCheckMessages(_0x1e2190) {
|
|
1382
|
+
const _0x49e9a3 = { _0x414d8e: 0x146 }, _0x27b6e7 = {
|
|
1383
|
+
_0x12d667: 0x1af,
|
|
1384
|
+
_0xdeacd8: 0x15f,
|
|
1385
|
+
_0x5b3fdb: 0x1b5,
|
|
1386
|
+
_0x429b89: 0x135,
|
|
1387
|
+
_0x2242f1: 0xf9,
|
|
1388
|
+
_0x2af270: 0x190,
|
|
1389
|
+
_0x16d7e8: 0x202
|
|
1390
|
+
}, _0x4c0ef5 = _0x77ce4b;
|
|
1391
|
+
if (_0x1e2190[_0x4c0ef5(_0x49e9a3._0x414d8e)] === 0x0)
|
|
1392
|
+
return _0x4c0ef5(0xfc);
|
|
1393
|
+
return _0x1e2190['map'](_0x262962 => {
|
|
1394
|
+
const _0xf02aad = _0x4c0ef5, _0x12231a = _0x262962['senderType'] === _0xf02aad(0x1c0) ? _0xf02aad(_0x27b6e7._0x12d667) : '', _0x3b869f = _0x262962[_0xf02aad(0x15f)] && _0x262962[_0xf02aad(_0x27b6e7._0xdeacd8)] !== 'chat' ? _0xf02aad(_0x27b6e7._0x5b3fdb) + _0x262962[_0xf02aad(_0x27b6e7._0xdeacd8)] : '';
|
|
1395
|
+
return _0xf02aad(_0x27b6e7._0x429b89) + _0x262962[_0xf02aad(0x1b9)] + _0xf02aad(0x1f7) + _0x262962['messageId'][_0xf02aad(0x23d)](0x0, 0x8) + _0xf02aad(_0x27b6e7._0x2242f1) + toLocalTime(_0x262962[_0xf02aad(_0x27b6e7._0x2af270)]) + _0x12231a + _0x3b869f + _0xf02aad(0x243) + _0x262962[_0xf02aad(0x206)] + ':\x20' + _0x262962[_0xf02aad(_0x27b6e7._0x16d7e8)] + formatAttachmentSuffix(_0x262962[_0xf02aad(0x1de)]);
|
|
1396
|
+
})[_0x4c0ef5(0x172)]('\x0a');
|
|
1406
1397
|
}
|
|
1407
|
-
function formatHistory(
|
|
1408
|
-
const
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1398
|
+
function formatHistory(_0x21b53f) {
|
|
1399
|
+
const _0x5b10fb = {
|
|
1400
|
+
_0x1710bc: 0x16e,
|
|
1401
|
+
_0x19050c: 0x207,
|
|
1402
|
+
_0x31567e: 0x172,
|
|
1403
|
+
_0x6b0cb8: 0x150,
|
|
1404
|
+
_0x5c999b: 0x184,
|
|
1405
|
+
_0x18b78d: 0x146
|
|
1406
|
+
}, _0x48083e = {
|
|
1407
|
+
_0x5ed52a: 0x18d,
|
|
1408
|
+
_0x527bd8: 0x1af,
|
|
1409
|
+
_0x366f34: 0x15f,
|
|
1410
|
+
_0x53490a: 0x15f,
|
|
1411
|
+
_0xca3a36: 0x15e,
|
|
1412
|
+
_0x3ca5d9: 0xf9,
|
|
1413
|
+
_0x487b77: 0x202,
|
|
1414
|
+
_0x435689: 0x1de
|
|
1415
|
+
}, _0x349759 = _0x77ce4b;
|
|
1416
|
+
if (_0x21b53f[_0x349759(_0x5b10fb._0x1710bc)][_0x349759(0x146)] === 0x0)
|
|
1417
|
+
return _0x349759(0xd3) + _0x21b53f['channel'] + _0x349759(_0x5b10fb._0x19050c);
|
|
1418
|
+
const _0x58d6bc = _0x21b53f['messages']['map'](_0x451878 => {
|
|
1419
|
+
const _0x52dc38 = _0x349759, _0x107f4e = _0x451878[_0x52dc38(_0x48083e._0x5ed52a)] === _0x52dc38(0x1c0) ? _0x52dc38(_0x48083e._0x527bd8) : '', _0x30f245 = _0x451878[_0x52dc38(_0x48083e._0x366f34)] && _0x451878[_0x52dc38(_0x48083e._0x53490a)] !== _0x52dc38(0x151) ? _0x52dc38(0x1b5) + _0x451878['kind'] : '';
|
|
1420
|
+
return _0x52dc38(0x1c8) + _0x451878['seq'] + _0x52dc38(0x1f7) + _0x451878[_0x52dc38(_0x48083e._0xca3a36)] + _0x52dc38(_0x48083e._0x3ca5d9) + toLocalTime(_0x451878['createdAt']) + _0x107f4e + _0x30f245 + _0x52dc38(0x243) + _0x451878['senderName'] + ':\x20' + _0x451878[_0x52dc38(_0x48083e._0x487b77)] + formatAttachmentSuffix(_0x451878[_0x52dc38(_0x48083e._0x435689)]);
|
|
1421
|
+
})[_0x349759(_0x5b10fb._0x31567e)]('\x0a'), _0x50f3c3 = _0x21b53f[_0x349759(0x208)] && _0x21b53f[_0x349759(_0x5b10fb._0x6b0cb8)] ? _0x349759(_0x5b10fb._0x5c999b) + _0x21b53f[_0x349759(0x16e)][_0x349759(0x146)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x21b53f[_0x349759(_0x5b10fb._0x6b0cb8)] + _0x349759(0x21d) : '';
|
|
1422
|
+
return _0x349759(0xd3) + _0x21b53f['channel'] + '\x20(' + _0x21b53f[_0x349759(0x16e)][_0x349759(_0x5b10fb._0x18b78d)] + _0x349759(0x1cc) + _0x58d6bc + _0x50f3c3;
|
|
1431
1423
|
}
|
|
1432
|
-
function formatServerDirectory(
|
|
1433
|
-
const
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1424
|
+
function formatServerDirectory(_0x588a54) {
|
|
1425
|
+
const _0x15992f = {
|
|
1426
|
+
_0x343599: 0x146,
|
|
1427
|
+
_0x3e6632: 0x1b3,
|
|
1428
|
+
_0x2ddec2: 0xf7,
|
|
1429
|
+
_0x56325c: 0x146,
|
|
1430
|
+
_0x575f7b: 0x22c,
|
|
1431
|
+
_0x44b21e: 0xe1,
|
|
1432
|
+
_0x76e0ba: 0x142,
|
|
1433
|
+
_0x47addc: 0x10e,
|
|
1434
|
+
_0x3780da: 0x172
|
|
1435
|
+
}, _0x546416 = _0x77ce4b, _0x2c4b09 = _0x588a54['channels'][_0x546416(_0x15992f._0x343599)] > 0x0 ? _0x588a54[_0x546416(0xbc)]['map'](_0x4d703c => _0x4d703c['description'] ? _0x546416(0x109) + _0x4d703c['name'] + '\x20—\x20' + _0x4d703c['description'] : '-\x20#' + _0x4d703c[_0x546416(0x145)])[_0x546416(0x172)]('\x0a') : '(none)', _0x2604c8 = _0x588a54[_0x546416(0x1b3)][_0x546416(_0x15992f._0x343599)] > 0x0 ? _0x588a54[_0x546416(_0x15992f._0x3e6632)][_0x546416(_0x15992f._0x2ddec2)](_0x309e4b => _0x546416(0x220) + _0x309e4b['name'])[_0x546416(0x172)]('\x0a') : _0x546416(0xe1), _0x24290e = _0x588a54[_0x546416(0x22c)][_0x546416(_0x15992f._0x56325c)] > 0x0 ? _0x588a54[_0x546416(_0x15992f._0x575f7b)][_0x546416(0xf7)](_0x2e08ea => '-\x20@' + _0x2e08ea[_0x546416(0x145)])[_0x546416(0x172)]('\x0a') : _0x546416(_0x15992f._0x44b21e);
|
|
1441
1436
|
return [
|
|
1442
|
-
|
|
1437
|
+
'##\x20Server:\x20' + _0x588a54[_0x546416(0x18f)],
|
|
1443
1438
|
'',
|
|
1444
|
-
|
|
1445
|
-
|
|
1439
|
+
_0x546416(_0x15992f._0x76e0ba),
|
|
1440
|
+
_0x2c4b09,
|
|
1446
1441
|
'',
|
|
1447
|
-
|
|
1448
|
-
|
|
1442
|
+
_0x546416(_0x15992f._0x47addc),
|
|
1443
|
+
_0x2604c8,
|
|
1449
1444
|
'',
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
][
|
|
1445
|
+
_0x546416(0x219),
|
|
1446
|
+
_0x24290e
|
|
1447
|
+
][_0x546416(_0x15992f._0x3780da)]('\x0a');
|
|
1453
1448
|
}
|
|
1454
|
-
function formatUploadResult(
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1449
|
+
function formatUploadResult(_0x5ea479) {
|
|
1450
|
+
const _0x38a2fc = {
|
|
1451
|
+
_0x149b39: 0x10d,
|
|
1452
|
+
_0x22b857: 0xc3,
|
|
1453
|
+
_0x1e424d: 0x234,
|
|
1454
|
+
_0x320f0f: 0x149,
|
|
1455
|
+
_0x4a1a03: 0xff
|
|
1456
|
+
}, _0x28145e = _0x77ce4b;
|
|
1457
|
+
return _0x28145e(_0x38a2fc._0x149b39) + _0x5ea479[_0x28145e(_0x38a2fc._0x22b857)] + '\x20(' + (_0x5ea479[_0x28145e(0x125)] / 0x400)[_0x28145e(0x1b4)](0x1) + _0x28145e(_0x38a2fc._0x1e424d) + _0x5ea479[_0x28145e(_0x38a2fc._0x320f0f)] + _0x28145e(_0x38a2fc._0x4a1a03);
|
|
1457
1458
|
}
|
|
1458
|
-
function formatViewFileResult(
|
|
1459
|
-
const
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1459
|
+
function formatViewFileResult(_0x5d99c3, _0x431ade) {
|
|
1460
|
+
const _0x380d8b = _0x77ce4b;
|
|
1461
|
+
return _0x431ade ? 'File\x20already\x20cached\x20at:\x20' + _0x5d99c3 : _0x380d8b(0xbf) + _0x5d99c3;
|
|
1462
|
+
}
|
|
1463
|
+
function _0x4210(_0x5f2d22, _0x441680) {
|
|
1464
|
+
_0x5f2d22 = _0x5f2d22 - 0xb9;
|
|
1465
|
+
const _0x5b9233 = _0x5b92();
|
|
1466
|
+
let _0x4210ab = _0x5b9233[_0x5f2d22];
|
|
1467
|
+
if (_0x4210['fiuQGB'] === undefined) {
|
|
1468
|
+
var _0xbfa810 = function (_0x4264d9) {
|
|
1469
|
+
const _0x2b6932 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1470
|
+
let _0x3bc217 = '', _0xe73669 = '';
|
|
1471
|
+
for (let _0x3b24f5 = 0x0, _0x1c7017, _0xb948bf, _0x4d18b5 = 0x0; _0xb948bf = _0x4264d9['charAt'](_0x4d18b5++); ~_0xb948bf && (_0x1c7017 = _0x3b24f5 % 0x4 ? _0x1c7017 * 0x40 + _0xb948bf : _0xb948bf, _0x3b24f5++ % 0x4) ? _0x3bc217 += String['fromCharCode'](0xff & _0x1c7017 >> (-0x2 * _0x3b24f5 & 0x6)) : 0x0) {
|
|
1472
|
+
_0xb948bf = _0x2b6932['indexOf'](_0xb948bf);
|
|
1473
|
+
}
|
|
1474
|
+
for (let _0x49c4a4 = 0x0, _0x1c7c61 = _0x3bc217['length']; _0x49c4a4 < _0x1c7c61; _0x49c4a4++) {
|
|
1475
|
+
_0xe73669 += '%' + ('00' + _0x3bc217['charCodeAt'](_0x49c4a4)['toString'](0x10))['slice'](-0x2);
|
|
1476
|
+
}
|
|
1477
|
+
return decodeURIComponent(_0xe73669);
|
|
1478
|
+
};
|
|
1479
|
+
_0x4210['LjVwCm'] = _0xbfa810, _0x4210['rIlSeZ'] = {}, _0x4210['fiuQGB'] = !![];
|
|
1480
|
+
}
|
|
1481
|
+
const _0x989cb9 = _0x5b9233[0x0], _0x554e6d = _0x5f2d22 + _0x989cb9, _0x3d4cff = _0x4210['rIlSeZ'][_0x554e6d];
|
|
1482
|
+
return !_0x3d4cff ? (_0x4210ab = _0x4210['LjVwCm'](_0x4210ab), _0x4210['rIlSeZ'][_0x554e6d] = _0x4210ab) : _0x4210ab = _0x3d4cff, _0x4210ab;
|
|
1464
1483
|
}
|
|
1465
|
-
function formatTaskList(
|
|
1466
|
-
const
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
if (_0x4cfcf9[_0x388799(0x190)] === 0x0)
|
|
1474
|
-
return _0x388799(_0x378e53._0xb952b2);
|
|
1475
|
-
return _0x4cfcf9[_0x388799(0xe1)](_0x1a5d92 => {
|
|
1476
|
-
const _0x2f5c12 = _0x388799, _0x5a9c60 = _0x1a5d92[_0x2f5c12(0x1ee)] == null ? _0x2f5c12(_0xf1438d._0x2dfbb5) : _0x1a5d92[_0x2f5c12(0x1a9)] != null ? '#' + _0x1a5d92['taskNumber'] + '.' + _0x1a5d92[_0x2f5c12(_0xf1438d._0x5a42de)] : '#' + _0x1a5d92[_0x2f5c12(_0xf1438d._0xcc885e)], _0x232c64 = _0x1a5d92[_0x2f5c12(0x1b0)] ? '\x20message=' + _0x1a5d92['messageId'] : '', _0x432539 = _0x4a784a && _0x1a5d92[_0x2f5c12(0x1ee)] != null && !_0x1a5d92[_0x2f5c12(0x1a9)] && _0x4a784a[_0x2f5c12(0x237)](_0x1a5d92[_0x2f5c12(_0xf1438d._0x3277c9)]) ? _0x2f5c12(0x165) : '', _0x12de45 = _0x1a5d92[_0x2f5c12(_0xf1438d._0x45b3c9)] != null && _0x1a5d92[_0x2f5c12(_0xf1438d._0x45b3c9)] > 0x0 ? '\x20(' + (_0x1a5d92['childrenDone'] ?? 0x0) + '/' + _0x1a5d92['childrenTotal'] + _0x2f5c12(0x17d) : '';
|
|
1477
|
-
return _0x5a9c60 + '\x20[' + _0x1a5d92[_0x2f5c12(0x1ef)] + ']\x20' + _0x1a5d92['title'] + _0x12de45 + _0x232c64 + _0x432539;
|
|
1478
|
-
})[_0x388799(0x234)]('\x0a');
|
|
1484
|
+
function formatTaskList(_0x592dc5, _0x20d4ba) {
|
|
1485
|
+
const _0x4d4645 = { _0x25099a: 0xee }, _0x4055c6 = { _0x296a96: 0xda }, _0x593291 = _0x77ce4b;
|
|
1486
|
+
if (_0x592dc5[_0x593291(0x146)] === 0x0)
|
|
1487
|
+
return _0x593291(_0x4d4645._0x25099a);
|
|
1488
|
+
return _0x592dc5[_0x593291(0xf7)](_0x56acd6 => {
|
|
1489
|
+
const _0x178808 = _0x593291, _0x4578d5 = _0x56acd6[_0x178808(0xda)] == null ? _0x178808(0x23f) : _0x56acd6[_0x178808(0x156)] != null ? '#' + _0x56acd6[_0x178808(0xda)] + '.' + _0x56acd6[_0x178808(0x156)] : '#' + _0x56acd6[_0x178808(_0x4055c6._0x296a96)], _0x3e7a4d = _0x56acd6[_0x178808(0x15e)] ? _0x178808(0x1bf) + _0x56acd6['messageId'] : '', _0x378733 = _0x20d4ba && _0x56acd6[_0x178808(_0x4055c6._0x296a96)] != null && !_0x56acd6['subtaskNumber'] && _0x20d4ba[_0x178808(0x1d8)](_0x56acd6[_0x178808(_0x4055c6._0x296a96)]) ? '\x20executionMode=worker' : '', _0x1d97de = _0x56acd6['childrenTotal'] != null && _0x56acd6['childrenTotal'] > 0x0 ? '\x20(' + (_0x56acd6[_0x178808(0x1ba)] ?? 0x0) + '/' + _0x56acd6['childrenTotal'] + _0x178808(0x177) : '';
|
|
1490
|
+
return _0x4578d5 + '\x20[' + _0x56acd6[_0x178808(0x12e)] + ']\x20' + _0x56acd6['title'] + _0x1d97de + _0x3e7a4d + _0x378733;
|
|
1491
|
+
})[_0x593291(0x172)]('\x0a');
|
|
1479
1492
|
}
|
|
1480
|
-
function formatCreatedTasks(
|
|
1481
|
-
const
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
},
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
return _0x4597be[_0x2fdf90(_0x35da32._0x379356)](_0x1fcc61 => {
|
|
1493
|
-
const _0x3ed20d = _0x2fdf90, _0xd7e090 = _0x1fcc61[_0x3ed20d(0x1ee)] == null ? _0x3ed20d(_0x560f12._0x464144) : _0x1fcc61[_0x3ed20d(0x1a9)] != null ? '#' + _0x1fcc61[_0x3ed20d(0x1ee)] + '.' + _0x1fcc61['subtaskNumber'] : '#' + _0x1fcc61[_0x3ed20d(_0x560f12._0x1a9f0d)], _0x12b7c9 = _0x1fcc61['messageId'] ? _0x3ed20d(_0x560f12._0x5278ca) + _0x1fcc61[_0x3ed20d(0x1b0)] : '';
|
|
1494
|
-
return _0xd7e090 + '\x20' + _0x1fcc61[_0x3ed20d(0x1d2)] + _0x12b7c9;
|
|
1495
|
-
})[_0x2fdf90(0x234)]('\x0a');
|
|
1493
|
+
function formatCreatedTasks(_0x571ac2) {
|
|
1494
|
+
const _0x2af328 = { _0x2fe035: 0x172 }, _0x4f3a6f = {
|
|
1495
|
+
_0x117745: 0x23f,
|
|
1496
|
+
_0x14d908: 0xda,
|
|
1497
|
+
_0x3b6404: 0x15e
|
|
1498
|
+
}, _0x241e1b = _0x77ce4b;
|
|
1499
|
+
if (_0x571ac2['length'] === 0x0)
|
|
1500
|
+
return _0x241e1b(0xf2);
|
|
1501
|
+
return _0x571ac2[_0x241e1b(0xf7)](_0x193e67 => {
|
|
1502
|
+
const _0x3b2253 = _0x241e1b, _0x541e03 = _0x193e67['taskNumber'] == null ? _0x3b2253(_0x4f3a6f._0x117745) : _0x193e67['subtaskNumber'] != null ? '#' + _0x193e67[_0x3b2253(0xda)] + '.' + _0x193e67[_0x3b2253(0x156)] : '#' + _0x193e67[_0x3b2253(_0x4f3a6f._0x14d908)], _0x35d8a7 = _0x193e67[_0x3b2253(_0x4f3a6f._0x3b6404)] ? '\x20message=' + _0x193e67[_0x3b2253(0x15e)] : '';
|
|
1503
|
+
return _0x541e03 + '\x20' + _0x193e67[_0x3b2253(0x12c)] + _0x35d8a7;
|
|
1504
|
+
})[_0x241e1b(_0x2af328._0x2fe035)]('\x0a');
|
|
1496
1505
|
}
|
|
1497
|
-
function formatClaimTaskResults(
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1506
|
+
function formatClaimTaskResults(_0xf98e3b) {
|
|
1507
|
+
const _0x56e7e2 = {
|
|
1508
|
+
_0x668dc6: 0x146,
|
|
1509
|
+
_0x17a08e: 0x172
|
|
1510
|
+
}, _0x338681 = {
|
|
1511
|
+
_0x2c7a6e: 0x21b,
|
|
1512
|
+
_0x3d9a1e: 0x156,
|
|
1513
|
+
_0x1560bd: 0xda,
|
|
1514
|
+
_0x5d1546: 0x15e,
|
|
1515
|
+
_0x484a9e: 0x121,
|
|
1516
|
+
_0x2b6876: 0x136,
|
|
1517
|
+
_0x2b874f: 0x1ab,
|
|
1518
|
+
_0x1369d1: 0x246,
|
|
1519
|
+
_0x2f4274: 0xe6,
|
|
1520
|
+
_0x17990c: 0x144,
|
|
1521
|
+
_0x209746: 0x1ce,
|
|
1522
|
+
_0x3358ae: 0x17f,
|
|
1523
|
+
_0xa47efb: 0xbd,
|
|
1524
|
+
_0x81ba70: 0x1d7
|
|
1525
|
+
}, _0x5980d6 = _0x77ce4b;
|
|
1526
|
+
if (_0xf98e3b[_0x5980d6(_0x56e7e2._0x668dc6)] === 0x0)
|
|
1527
|
+
return 'No\x20tasks\x20claimed.';
|
|
1528
|
+
return _0xf98e3b['map'](_0x5902bf => {
|
|
1529
|
+
const _0xd46be4 = _0x5980d6;
|
|
1530
|
+
if (_0x5902bf[_0xd46be4(_0x338681._0x2c7a6e)]) {
|
|
1531
|
+
const _0x5e84b2 = _0x5902bf[_0xd46be4(0xda)] == null ? '(legacy)' : _0x5902bf['subtaskNumber'] != null ? '#' + _0x5902bf[_0xd46be4(0xda)] + '.' + _0x5902bf[_0xd46be4(_0x338681._0x3d9a1e)] : '#' + _0x5902bf[_0xd46be4(_0x338681._0x1560bd)], _0x26bbcc = _0x5902bf[_0xd46be4(_0x338681._0x5d1546)] ? _0xd46be4(0x1bf) + _0x5902bf[_0xd46be4(0x15e)] : '';
|
|
1532
|
+
if (_0x5902bf[_0xd46be4(_0x338681._0x484a9e)]) {
|
|
1533
|
+
const _0xaba746 = [
|
|
1534
|
+
_0xd46be4(_0x338681._0x2b6876),
|
|
1535
|
+
_0x5902bf['stopMain'] ? _0xd46be4(_0x338681._0x2b874f) : null,
|
|
1536
|
+
_0x5902bf['executionMode'] ? _0xd46be4(_0x338681._0x1369d1) + _0x5902bf['executionMode'] : null,
|
|
1537
|
+
_0x5902bf['threadTarget'] ? _0xd46be4(0x1d3) + _0x5902bf[_0xd46be4(_0x338681._0x2f4274)] : null,
|
|
1538
|
+
_0x5902bf[_0xd46be4(_0x338681._0x17990c)] ? _0xd46be4(_0x338681._0x209746) + _0x5902bf[_0xd46be4(0x144)] : null
|
|
1539
|
+
][_0xd46be4(0x1bd)](Boolean)[_0xd46be4(0x172)]('\x20');
|
|
1540
|
+
return _0x5e84b2 + _0xd46be4(_0x338681._0x3358ae) + _0x26bbcc + '\x20' + _0xaba746 + '\x0a⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Worker\x20handles\x20execution\x20end-to-end.';
|
|
1527
1541
|
}
|
|
1528
|
-
const
|
|
1529
|
-
return
|
|
1542
|
+
const _0x424ead = _0x5902bf['workerHandoffError'] ? _0xd46be4(_0x338681._0xa47efb) + _0x5902bf[_0xd46be4(0x185)] : '';
|
|
1543
|
+
return _0x5e84b2 + '\x20claimed' + _0x26bbcc + _0x424ead;
|
|
1530
1544
|
}
|
|
1531
|
-
const
|
|
1532
|
-
return
|
|
1533
|
-
})[
|
|
1545
|
+
const _0x47ea16 = _0x5902bf[_0xd46be4(0xda)] == null ? _0x5902bf['messageId'] ?? _0xd46be4(0xd9) : '#' + _0x5902bf[_0xd46be4(_0x338681._0x1560bd)];
|
|
1546
|
+
return _0x47ea16 + _0xd46be4(0xe4) + (_0x5902bf[_0xd46be4(0x1aa)] ?? _0xd46be4(_0x338681._0x81ba70));
|
|
1547
|
+
})[_0x5980d6(_0x56e7e2._0x17a08e)]('\x0a');
|
|
1534
1548
|
}
|
|
1535
|
-
function formatUnclaimTaskResult(
|
|
1536
|
-
const
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
_0x3f7eb2: 0x1ef
|
|
1542
|
-
}, _0x18b502 = _0xba094d, _0x1425db = _0x4e0a8b[_0x18b502(_0x218f5b._0x4eaaaa)] == null ? _0x18b502(_0x218f5b._0x35e5f5) : _0x4e0a8b[_0x18b502(0x1a9)] != null ? '#' + _0x4e0a8b[_0x18b502(_0x218f5b._0x4eaaaa)] + '.' + _0x4e0a8b[_0x18b502(_0x218f5b._0x513f46)] : '#' + _0x4e0a8b[_0x18b502(_0x218f5b._0xbb4570)];
|
|
1543
|
-
return _0x1425db + '\x20status=' + _0x4e0a8b[_0x18b502(_0x218f5b._0x3f7eb2)];
|
|
1549
|
+
function formatUnclaimTaskResult(_0x846aec) {
|
|
1550
|
+
const _0x2d4ae5 = {
|
|
1551
|
+
_0x15ee15: 0x156,
|
|
1552
|
+
_0x4eeae5: 0xda
|
|
1553
|
+
}, _0x12fb05 = _0x77ce4b, _0x2d6bc2 = _0x846aec[_0x12fb05(0xda)] == null ? _0x12fb05(0x23f) : _0x846aec[_0x12fb05(_0x2d4ae5._0x15ee15)] != null ? '#' + _0x846aec[_0x12fb05(_0x2d4ae5._0x4eeae5)] + '.' + _0x846aec[_0x12fb05(0x156)] : '#' + _0x846aec['taskNumber'];
|
|
1554
|
+
return _0x2d6bc2 + _0x12fb05(0x193) + _0x846aec[_0x12fb05(0x12e)];
|
|
1544
1555
|
}
|
|
1545
|
-
function formatUpdateTaskStatusResult(
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1556
|
+
function formatUpdateTaskStatusResult(_0x2c672b) {
|
|
1557
|
+
const _0x1c6086 = {
|
|
1558
|
+
_0x5f3727: 0xda,
|
|
1559
|
+
_0x4c0106: 0x156,
|
|
1560
|
+
_0x50d98b: 0xda
|
|
1561
|
+
}, _0x21e892 = _0x77ce4b, _0x224e74 = _0x2c672b[_0x21e892(_0x1c6086._0x5f3727)] == null ? _0x21e892(0x23f) : _0x2c672b[_0x21e892(_0x1c6086._0x4c0106)] != null ? '#' + _0x2c672b[_0x21e892(_0x1c6086._0x5f3727)] + '.' + _0x2c672b[_0x21e892(_0x1c6086._0x4c0106)] : '#' + _0x2c672b[_0x21e892(_0x1c6086._0x50d98b)];
|
|
1562
|
+
return _0x224e74 + '\x20status=' + _0x2c672b['status'];
|
|
1551
1563
|
}
|
|
1552
1564
|
function getChatBridgeToolDefinitions() {
|
|
1553
|
-
const
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1565
|
+
const _0x5f2ebc = {
|
|
1566
|
+
_0x5e2768: 0x131,
|
|
1567
|
+
_0x5318b9: 0x18b,
|
|
1568
|
+
_0x143801: 0x180,
|
|
1569
|
+
_0x5d762d: 0x163,
|
|
1570
|
+
_0x443357: 0x148,
|
|
1571
|
+
_0x2b52e9: 0x1d0
|
|
1572
|
+
}, _0x344d5d = _0x77ce4b;
|
|
1558
1573
|
return [
|
|
1559
|
-
{ 'name':
|
|
1560
|
-
{ 'name':
|
|
1561
|
-
{ 'name':
|
|
1562
|
-
{ 'name':
|
|
1574
|
+
{ 'name': _0x344d5d(_0x5f2ebc._0x5e2768) },
|
|
1575
|
+
{ 'name': 'check_messages' },
|
|
1576
|
+
{ 'name': _0x344d5d(_0x5f2ebc._0x5318b9) },
|
|
1577
|
+
{ 'name': _0x344d5d(0xb9) },
|
|
1563
1578
|
{ 'name': 'upload_file' },
|
|
1564
|
-
{ 'name':
|
|
1565
|
-
{ 'name':
|
|
1566
|
-
{ 'name':
|
|
1567
|
-
{ 'name':
|
|
1568
|
-
{ 'name':
|
|
1569
|
-
{ 'name':
|
|
1570
|
-
{ 'name':
|
|
1571
|
-
{ 'name':
|
|
1572
|
-
{ 'name':
|
|
1573
|
-
{ 'name':
|
|
1579
|
+
{ 'name': _0x344d5d(_0x5f2ebc._0x143801) },
|
|
1580
|
+
{ 'name': 'list_tasks' },
|
|
1581
|
+
{ 'name': _0x344d5d(_0x5f2ebc._0x5d762d) },
|
|
1582
|
+
{ 'name': 'claim_tasks' },
|
|
1583
|
+
{ 'name': _0x344d5d(_0x5f2ebc._0x443357) },
|
|
1584
|
+
{ 'name': 'update_task_status' },
|
|
1585
|
+
{ 'name': _0x344d5d(0x231) },
|
|
1586
|
+
{ 'name': _0x344d5d(0x1f8) },
|
|
1587
|
+
{ 'name': _0x344d5d(_0x5f2ebc._0x2b52e9) },
|
|
1588
|
+
{ 'name': _0x344d5d(0x1a1) }
|
|
1574
1589
|
];
|
|
1575
1590
|
}
|
|
1576
|
-
function createChatBridgeHandlers(
|
|
1577
|
-
const
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
},
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
},
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
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
|
-
_0x5245d8: 0x14e,
|
|
1711
|
-
_0x4de46d: 0x14e
|
|
1712
|
-
}, _0x4f29a2 = _0xba094d;
|
|
1713
|
-
function _0x4db941(_0x32d47d, _0x3fa5f9) {
|
|
1714
|
-
const _0x47320d = _0x1a4c;
|
|
1715
|
-
if (!_0x2999e5[_0x47320d(_0x591773._0x4fedb3)])
|
|
1591
|
+
function createChatBridgeHandlers(_0x1423f4) {
|
|
1592
|
+
const _0x1db53f = {
|
|
1593
|
+
_0x4ef7a1: 0x168,
|
|
1594
|
+
_0x2e50f4: 0x20e
|
|
1595
|
+
}, _0x3e4170 = {
|
|
1596
|
+
_0x54aba4: 0x1f4,
|
|
1597
|
+
_0x6c3ce: 0xf4,
|
|
1598
|
+
_0x2d9516: 0x14d,
|
|
1599
|
+
_0x10486d: 0x1d6
|
|
1600
|
+
}, _0x1d03c = {
|
|
1601
|
+
_0x33f496: 0x1f4,
|
|
1602
|
+
_0x594420: 0x216,
|
|
1603
|
+
_0x312b4c: 0x112,
|
|
1604
|
+
_0x1efdbb: 0x19e,
|
|
1605
|
+
_0x4e0410: 0x11e,
|
|
1606
|
+
_0x4757ef: 0x1a4
|
|
1607
|
+
}, _0x4313a3 = {
|
|
1608
|
+
_0x26f4ee: 0xdc,
|
|
1609
|
+
_0x3ad986: 0x1dc,
|
|
1610
|
+
_0x3c13ae: 0x11e,
|
|
1611
|
+
_0x282fa5: 0xc5
|
|
1612
|
+
}, _0x253e2f = {
|
|
1613
|
+
_0x1c5026: 0xd8,
|
|
1614
|
+
_0x2540fa: 0xc6,
|
|
1615
|
+
_0x2cb4a2: 0x11e,
|
|
1616
|
+
_0x6a8d90: 0x19e,
|
|
1617
|
+
_0x58d0a4: 0x1dc,
|
|
1618
|
+
_0x3110ac: 0x1dc,
|
|
1619
|
+
_0x5cd365: 0x11e
|
|
1620
|
+
}, _0x376121 = {
|
|
1621
|
+
_0x100aa6: 0x19b,
|
|
1622
|
+
_0x3b5019: 0x155,
|
|
1623
|
+
_0x3e832f: 0x1c7
|
|
1624
|
+
}, _0x38e71d = {
|
|
1625
|
+
_0xb40706: 0x1c6,
|
|
1626
|
+
_0x225744: 0x214
|
|
1627
|
+
}, _0x2063b0 = {
|
|
1628
|
+
_0x3953e6: 0x1d4,
|
|
1629
|
+
_0x4c7f4d: 0x167
|
|
1630
|
+
}, _0x5c01d4 = {
|
|
1631
|
+
_0x13446f: 0xba,
|
|
1632
|
+
_0x4034ee: 0x1cf,
|
|
1633
|
+
_0x3a2ac5: 0x138
|
|
1634
|
+
}, _0x17001a = {
|
|
1635
|
+
_0x114449: 0x146,
|
|
1636
|
+
_0x87ebca: 0x134,
|
|
1637
|
+
_0x54ce4d: 0xe7,
|
|
1638
|
+
_0x5ed3c5: 0x167,
|
|
1639
|
+
_0x2bffcd: 0x1a8,
|
|
1640
|
+
_0x2c10c7: 0x240,
|
|
1641
|
+
_0x8f27f8: 0xf7
|
|
1642
|
+
}, _0x1ab349 = { _0x2b2aa8: 0x163 }, _0x5f4dc5 = {
|
|
1643
|
+
_0x56ad80: 0x1f4,
|
|
1644
|
+
_0x1080ad: 0xba,
|
|
1645
|
+
_0x21ed2d: 0x1b8,
|
|
1646
|
+
_0x3320d9: 0x133,
|
|
1647
|
+
_0x47c8bc: 0xed,
|
|
1648
|
+
_0x5714e7: 0xda,
|
|
1649
|
+
_0x3c4980: 0x11c,
|
|
1650
|
+
_0xd34cc8: 0xed,
|
|
1651
|
+
_0x4a718a: 0xed
|
|
1652
|
+
}, _0x1ae460 = { _0x57a2ab: 0x1eb }, _0x298ff5 = { _0x1feda4: 0x19d }, _0x2b9617 = { _0x47917e: 0x16e }, _0x1deb74 = {
|
|
1653
|
+
_0x1166a4: 0x14a,
|
|
1654
|
+
_0x16ec6d: 0x1f4,
|
|
1655
|
+
_0x1aebfd: 0x167,
|
|
1656
|
+
_0xa0cbca: 0x1b9,
|
|
1657
|
+
_0x42be42: 0x229,
|
|
1658
|
+
_0xb7629f: 0x204,
|
|
1659
|
+
_0x3456f0: 0xda,
|
|
1660
|
+
_0x593951: 0x1b9,
|
|
1661
|
+
_0x35dfef: 0x1ac,
|
|
1662
|
+
_0x541ee8: 0x229,
|
|
1663
|
+
_0x19064a: 0x1a0,
|
|
1664
|
+
_0x5c77ce: 0x172,
|
|
1665
|
+
_0x2f9b88: 0x135,
|
|
1666
|
+
_0x1fee48: 0x225,
|
|
1667
|
+
_0x233ec3: 0x120,
|
|
1668
|
+
_0x5d327b: 0xf8,
|
|
1669
|
+
_0xd3043c: 0x202,
|
|
1670
|
+
_0x4d1388: 0x1a9,
|
|
1671
|
+
_0x20af05: 0x201,
|
|
1672
|
+
_0x50616a: 0x204,
|
|
1673
|
+
_0x3a55c6: 0x12b,
|
|
1674
|
+
_0x401fe5: 0x19e,
|
|
1675
|
+
_0x528fa1: 0xfa,
|
|
1676
|
+
_0x2d78e6: 0x1ca,
|
|
1677
|
+
_0x735711: 0xfd,
|
|
1678
|
+
_0x2f9d06: 0x1b9,
|
|
1679
|
+
_0x3e8485: 0xcb,
|
|
1680
|
+
_0x4eab13: 0x166
|
|
1681
|
+
}, _0x16242b = {
|
|
1682
|
+
_0x1e65c0: 0x201,
|
|
1683
|
+
_0x49be13: 0x1b8,
|
|
1684
|
+
_0x40ff58: 0x187
|
|
1685
|
+
}, _0x1deec9 = {
|
|
1686
|
+
_0x8ad15b: 0x1f4,
|
|
1687
|
+
_0x10570b: 0x17e,
|
|
1688
|
+
_0x438e14: 0x201,
|
|
1689
|
+
_0x3163a7: 0x19e,
|
|
1690
|
+
_0x2fded8: 0x143,
|
|
1691
|
+
_0x4bef18: 0x133,
|
|
1692
|
+
_0xf2b9ba: 0x13c,
|
|
1693
|
+
_0x205aff: 0x133
|
|
1694
|
+
}, _0x5ad453 = {
|
|
1695
|
+
_0x37c804: 0xba,
|
|
1696
|
+
_0x1337e3: 0x15e,
|
|
1697
|
+
_0x18d1cd: 0x16e,
|
|
1698
|
+
_0x151cee: 0x230,
|
|
1699
|
+
_0x1699e2: 0xda,
|
|
1700
|
+
_0x5e0d54: 0x135,
|
|
1701
|
+
_0x3b1ed0: 0x15e,
|
|
1702
|
+
_0x53850c: 0xf9,
|
|
1703
|
+
_0x2b5a9c: 0x225,
|
|
1704
|
+
_0xaa2b18: 0x1ea,
|
|
1705
|
+
_0x14b122: 0x202,
|
|
1706
|
+
_0x1f77d2: 0x198,
|
|
1707
|
+
_0x438c90: 0x1a9,
|
|
1708
|
+
_0x2c9f97: 0xdc,
|
|
1709
|
+
_0x130321: 0x112,
|
|
1710
|
+
_0x248270: 0x201,
|
|
1711
|
+
_0x2f20cb: 0x12b,
|
|
1712
|
+
_0x2be5d3: 0xef,
|
|
1713
|
+
_0x3b4e8f: 0x19e,
|
|
1714
|
+
_0x31e2ec: 0x14d,
|
|
1715
|
+
_0x4b11a2: 0x104,
|
|
1716
|
+
_0x14228a: 0x1f2,
|
|
1717
|
+
_0x435d06: 0x115
|
|
1718
|
+
}, _0x5acba3 = {
|
|
1719
|
+
_0xbdb81a: 0x178,
|
|
1720
|
+
_0x292681: 0x15a
|
|
1721
|
+
}, _0x3727a4 = _0x77ce4b;
|
|
1722
|
+
function _0x5af70d(_0x29f296, _0x7fe21b) {
|
|
1723
|
+
const _0x119c97 = _0x4210;
|
|
1724
|
+
if (!_0x1423f4[_0x119c97(0x14a)])
|
|
1716
1725
|
return;
|
|
1717
|
-
if (!
|
|
1718
|
-
throw new Error(
|
|
1719
|
-
if (
|
|
1720
|
-
throw new Error(
|
|
1726
|
+
if (!_0x1423f4[_0x119c97(0x178)])
|
|
1727
|
+
throw new Error(_0x29f296 + _0x119c97(0x203));
|
|
1728
|
+
if (_0x7fe21b !== _0x1423f4[_0x119c97(_0x5acba3._0xbdb81a)])
|
|
1729
|
+
throw new Error(_0x29f296 + _0x119c97(0x189) + _0x1423f4[_0x119c97(0x178)] + _0x119c97(_0x5acba3._0x292681) + _0x7fe21b);
|
|
1721
1730
|
}
|
|
1722
|
-
async function
|
|
1723
|
-
const
|
|
1724
|
-
if (!
|
|
1731
|
+
async function _0xc552ae(_0xefd027) {
|
|
1732
|
+
const _0x37ec20 = _0x4210;
|
|
1733
|
+
if (!_0x1423f4[_0x37ec20(0x1f4)] || !_0x1423f4['agentId'] || _0x1423f4['workerMode'] || _0x1423f4[_0x37ec20(0x211)] !== !![])
|
|
1725
1734
|
return null;
|
|
1726
|
-
const
|
|
1727
|
-
if (
|
|
1735
|
+
const _0x169c28 = parseTarget(_0xefd027[_0x37ec20(0xba)]);
|
|
1736
|
+
if (_0x169c28[_0x37ec20(0x15f)] !== _0x37ec20(_0x5ad453._0x37c804))
|
|
1728
1737
|
return null;
|
|
1729
|
-
const
|
|
1730
|
-
let
|
|
1738
|
+
const _0x2c375b = _0xefd027['threadNumber'] != null ? _0x169c28[_0x37ec20(0x241)] + ':t' + _0xefd027['threadNumber'] : _0x169c28['channelTarget'] + ':' + _0xefd027[_0x37ec20(_0x5ad453._0x1337e3)];
|
|
1739
|
+
let _0x2c4afe;
|
|
1731
1740
|
try {
|
|
1732
|
-
const
|
|
1733
|
-
'channel':
|
|
1741
|
+
const _0x19d6d2 = await _0x1423f4['client']['readHistory']({
|
|
1742
|
+
'channel': _0x2c375b,
|
|
1734
1743
|
'limit': 0x14
|
|
1735
1744
|
});
|
|
1736
|
-
|
|
1745
|
+
_0x2c4afe = _0x19d6d2[_0x37ec20(_0x5ad453._0x18d1cd)][_0x37ec20(_0x5ad453._0x151cee)](_0x37bc8e => _0x37bc8e[_0x37ec20(0x15e)] === _0xefd027[_0x37ec20(0x15e)]);
|
|
1737
1746
|
} catch {
|
|
1738
|
-
|
|
1747
|
+
_0x2c4afe = void 0x0;
|
|
1739
1748
|
}
|
|
1740
|
-
const
|
|
1741
|
-
|
|
1749
|
+
const _0x355549 = _0xefd027[_0x37ec20(_0x5ad453._0x1699e2)] == null ? '(legacy)' : '#' + _0xefd027[_0x37ec20(0xda)], _0x364bf6 = [
|
|
1750
|
+
_0x37ec20(_0x5ad453._0x5e0d54) + _0x2c375b + '\x20msg=' + _0xefd027[_0x37ec20(_0x5ad453._0x3b1ed0)][_0x37ec20(0x23d)](0x0, 0x8) + _0x37ec20(_0x5ad453._0x53850c) + new Date()[_0x37ec20(_0x5ad453._0x2b5a9c)]() + _0x37ec20(0x10c) + _0x355549 + _0x37ec20(_0x5ad453._0xaa2b18),
|
|
1742
1751
|
'',
|
|
1743
|
-
|
|
1752
|
+
_0x2c4afe ? _0x37ec20(0x1a7) + _0x2c4afe[_0x37ec20(_0x5ad453._0x14b122)] : 'Root\x20task\x20message\x20id:\x20' + _0xefd027['messageId'],
|
|
1744
1753
|
'',
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
][
|
|
1748
|
-
'method':
|
|
1749
|
-
'headers': { 'Content-Type':
|
|
1750
|
-
'body': JSON[
|
|
1751
|
-
'agent_id':
|
|
1752
|
-
'thread_target':
|
|
1754
|
+
_0x37ec20(0x212) + _0x2c375b,
|
|
1755
|
+
_0x37ec20(_0x5ad453._0x1f77d2)
|
|
1756
|
+
]['join']('\x0a'), _0x447ed8 = await fetch(_0x1423f4[_0x37ec20(0x1f4)] + _0x37ec20(_0x5ad453._0x438c90), {
|
|
1757
|
+
'method': _0x37ec20(0xf4),
|
|
1758
|
+
'headers': { 'Content-Type': _0x37ec20(_0x5ad453._0x2c9f97) },
|
|
1759
|
+
'body': JSON[_0x37ec20(_0x5ad453._0x130321)]({
|
|
1760
|
+
'agent_id': _0x1423f4[_0x37ec20(_0x5ad453._0x248270)],
|
|
1761
|
+
'thread_target': _0x2c375b,
|
|
1753
1762
|
'spawn_packet': {
|
|
1754
|
-
'replyTarget':
|
|
1755
|
-
...
|
|
1763
|
+
'replyTarget': _0x2c375b,
|
|
1764
|
+
..._0xefd027[_0x37ec20(_0x5ad453._0x2f20cb)] ? { 'taskId': _0xefd027[_0x37ec20(0x12b)] } : _0xefd027[_0x37ec20(0xda)] != null ? { 'taskId': _0x37ec20(_0x5ad453._0x2be5d3) + _0xefd027[_0x37ec20(0xda)] } : {}
|
|
1756
1765
|
},
|
|
1757
1766
|
'payload': {
|
|
1758
|
-
'mode':
|
|
1759
|
-
'text':
|
|
1767
|
+
'mode': _0x37ec20(0x23c),
|
|
1768
|
+
'text': _0x364bf6
|
|
1760
1769
|
}
|
|
1761
1770
|
})
|
|
1762
|
-
}),
|
|
1763
|
-
if (!
|
|
1764
|
-
throw new Error(
|
|
1771
|
+
}), _0x2e1acc = await _0x447ed8[_0x37ec20(_0x5ad453._0x3b4e8f)]();
|
|
1772
|
+
if (!_0x2e1acc['ok'])
|
|
1773
|
+
throw new Error(_0x2e1acc[_0x37ec20(_0x5ad453._0x31e2ec)] ?? 'worker\x20handoff\x20failed');
|
|
1765
1774
|
return {
|
|
1766
1775
|
'stopMain': !![],
|
|
1767
|
-
'threadTarget':
|
|
1768
|
-
'workerDisposition':
|
|
1776
|
+
'threadTarget': _0x2c375b,
|
|
1777
|
+
'workerDisposition': _0x2e1acc[_0x37ec20(_0x5ad453._0x4b11a2)] === _0x37ec20(_0x5ad453._0x14228a) ? _0x37ec20(0x1f2) : _0x37ec20(_0x5ad453._0x435d06),
|
|
1769
1778
|
'workerHandoff': !![],
|
|
1770
|
-
'workerSessionId':
|
|
1771
|
-
'executionMode':
|
|
1779
|
+
'workerSessionId': _0x2e1acc[_0x37ec20(0x110)] ?? '',
|
|
1780
|
+
'executionMode': _0x37ec20(0x1da)
|
|
1772
1781
|
};
|
|
1773
1782
|
}
|
|
1774
|
-
async function
|
|
1775
|
-
const
|
|
1776
|
-
if (!
|
|
1783
|
+
async function _0x47f2d9() {
|
|
1784
|
+
const _0x56536a = _0x4210;
|
|
1785
|
+
if (!_0x1423f4[_0x56536a(_0x1deec9._0x8ad15b)] || !_0x1423f4[_0x56536a(0x201)] || _0x1423f4[_0x56536a(0x14a)])
|
|
1777
1786
|
return null;
|
|
1778
1787
|
try {
|
|
1779
|
-
const
|
|
1780
|
-
if (!
|
|
1788
|
+
const _0xf4e038 = await fetch(_0x1423f4[_0x56536a(_0x1deec9._0x8ad15b)] + _0x56536a(_0x1deec9._0x10570b) + encodeURIComponent(_0x1423f4[_0x56536a(_0x1deec9._0x438e14)])), _0x325ca6 = await _0xf4e038[_0x56536a(_0x1deec9._0x3163a7)]();
|
|
1789
|
+
if (!_0x325ca6['ok'])
|
|
1781
1790
|
return null;
|
|
1782
|
-
const
|
|
1783
|
-
for (const
|
|
1784
|
-
|
|
1791
|
+
const _0x5506d8 = new Set();
|
|
1792
|
+
for (const _0x51fd7c of _0x325ca6['workers']) {
|
|
1793
|
+
_0x51fd7c[_0x56536a(0x12e)] !== _0x56536a(_0x1deec9._0x2fded8) && _0x51fd7c[_0x56536a(_0x1deec9._0x4bef18)] && _0x5506d8[_0x56536a(_0x1deec9._0xf2b9ba)](_0x51fd7c[_0x56536a(_0x1deec9._0x205aff)]);
|
|
1785
1794
|
}
|
|
1786
|
-
return
|
|
1795
|
+
return _0x5506d8['size'] > 0x0 ? _0x5506d8 : null;
|
|
1787
1796
|
} catch {
|
|
1788
1797
|
return null;
|
|
1789
1798
|
}
|
|
1790
1799
|
}
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1800
|
+
const _0x36e7a8 = new Set([
|
|
1801
|
+
_0x3727a4(_0x1db53f._0x4ef7a1),
|
|
1802
|
+
'idle',
|
|
1803
|
+
_0x3727a4(_0x1db53f._0x2e50f4)
|
|
1795
1804
|
]);
|
|
1796
|
-
async function
|
|
1797
|
-
const
|
|
1798
|
-
if (!
|
|
1805
|
+
async function _0x13d77c() {
|
|
1806
|
+
const _0x10c13b = _0x3727a4;
|
|
1807
|
+
if (!_0x1423f4[_0x10c13b(0x1f4)] || !_0x1423f4[_0x10c13b(_0x16242b._0x1e65c0)] || _0x1423f4[_0x10c13b(0x14a)])
|
|
1799
1808
|
return null;
|
|
1800
1809
|
try {
|
|
1801
|
-
const
|
|
1802
|
-
if (!
|
|
1810
|
+
const _0x3ffa58 = await fetch(_0x1423f4[_0x10c13b(0x1f4)] + '/workers/list?agent_id=' + encodeURIComponent(_0x1423f4['agentId'])), _0x39dcb7 = await _0x3ffa58[_0x10c13b(0x19e)]();
|
|
1811
|
+
if (!_0x39dcb7['ok'])
|
|
1803
1812
|
return null;
|
|
1804
|
-
const
|
|
1805
|
-
for (const
|
|
1806
|
-
|
|
1813
|
+
const _0x27deb1 = new Set();
|
|
1814
|
+
for (const _0x19576a of _0x39dcb7[_0x10c13b(_0x16242b._0x49be13)]) {
|
|
1815
|
+
_0x36e7a8[_0x10c13b(0x1d8)](_0x19576a['status']) && _0x19576a[_0x10c13b(0x133)] && _0x27deb1[_0x10c13b(0x13c)](_0x19576a['thread_target']);
|
|
1807
1816
|
}
|
|
1808
|
-
return
|
|
1817
|
+
return _0x27deb1[_0x10c13b(_0x16242b._0x40ff58)] > 0x0 ? _0x27deb1 : null;
|
|
1809
1818
|
} catch {
|
|
1810
1819
|
return null;
|
|
1811
1820
|
}
|
|
1812
1821
|
}
|
|
1813
1822
|
return {
|
|
1814
|
-
async 'send_message'(
|
|
1815
|
-
const
|
|
1816
|
-
if (!
|
|
1817
|
-
const
|
|
1818
|
-
if (
|
|
1819
|
-
const
|
|
1820
|
-
if (
|
|
1823
|
+
async 'send_message'(_0x467ba3) {
|
|
1824
|
+
const _0x5c9f80 = _0x3727a4;
|
|
1825
|
+
if (!_0x1423f4[_0x5c9f80(_0x1deb74._0x1166a4)] && _0x1423f4['workerModeEnabled'] && _0x1423f4[_0x5c9f80(_0x1deb74._0x16ec6d)] && _0x1423f4[_0x5c9f80(0x201)]) {
|
|
1826
|
+
const _0x129720 = await _0x1423f4[_0x5c9f80(_0x1deb74._0x1aebfd)][_0x5c9f80(0x182)](_0x467ba3[_0x5c9f80(_0x1deb74._0xa0cbca)]);
|
|
1827
|
+
if (_0x129720[_0x5c9f80(0x204)] && _0x129720[_0x5c9f80(_0x1deb74._0x42be42)]) {
|
|
1828
|
+
const _0x205530 = _0x129720['task'][_0x5c9f80(0xda)] != null ? '#' + _0x129720[_0x5c9f80(_0x1deb74._0xb7629f)][_0x5c9f80(_0x1deb74._0x3456f0)] : '(legacy)', _0x5e61aa = _0x129720[_0x5c9f80(0x1ac)] != null ? _0x129720[_0x5c9f80(_0x1deb74._0x593951)] + ':t' + _0x129720[_0x5c9f80(_0x1deb74._0x35dfef)] : _0x129720[_0x5c9f80(_0x1deb74._0x593951)] + ':' + _0x129720[_0x5c9f80(_0x1deb74._0x541ee8)][_0x5c9f80(0x23d)](0x0, 0x8), _0x413c80 = await _0x13d77c();
|
|
1829
|
+
if (_0x413c80?.['has'](_0x5e61aa))
|
|
1821
1830
|
return [
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
][
|
|
1825
|
-
const
|
|
1826
|
-
|
|
1831
|
+
_0x5c9f80(_0x1deb74._0x19064a) + _0x205530 + _0x5c9f80(0x194) + _0x5e61aa + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1832
|
+
_0x5c9f80(0x15d)
|
|
1833
|
+
][_0x5c9f80(_0x1deb74._0x5c77ce)]('\x0a');
|
|
1834
|
+
const _0x297c9b = [
|
|
1835
|
+
_0x5c9f80(_0x1deb74._0x2f9b88) + _0x5e61aa + _0x5c9f80(0x13d) + new Date()[_0x5c9f80(_0x1deb74._0x1fee48)]() + _0x5c9f80(_0x1deb74._0x233ec3),
|
|
1827
1836
|
'',
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1837
|
+
_0x5c9f80(_0x1deb74._0x5d327b) + _0x467ba3[_0x5c9f80(_0x1deb74._0xd3043c)],
|
|
1838
|
+
'Task:\x20' + _0x205530 + '\x20(' + _0x129720[_0x5c9f80(_0x1deb74._0xb7629f)][_0x5c9f80(0x12b)] + ')',
|
|
1839
|
+
_0x5c9f80(0x212) + _0x5e61aa,
|
|
1831
1840
|
'Read\x20thread\x20history\x20before\x20taking\x20action.\x20Do\x20not\x20echo\x20this\x20message\x20to\x20the\x20thread.'
|
|
1832
|
-
][
|
|
1833
|
-
'method':
|
|
1834
|
-
'headers': { 'Content-Type':
|
|
1835
|
-
'body': JSON[
|
|
1836
|
-
'agent_id':
|
|
1837
|
-
'thread_target':
|
|
1841
|
+
][_0x5c9f80(_0x1deb74._0x5c77ce)]('\x0a'), _0x11a6cd = await fetch(_0x1423f4[_0x5c9f80(0x1f4)] + _0x5c9f80(_0x1deb74._0x4d1388), {
|
|
1842
|
+
'method': 'POST',
|
|
1843
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1844
|
+
'body': JSON['stringify']({
|
|
1845
|
+
'agent_id': _0x1423f4[_0x5c9f80(_0x1deb74._0x20af05)],
|
|
1846
|
+
'thread_target': _0x5e61aa,
|
|
1838
1847
|
'spawn_packet': {
|
|
1839
|
-
'replyTarget':
|
|
1840
|
-
'taskId':
|
|
1848
|
+
'replyTarget': _0x5e61aa,
|
|
1849
|
+
'taskId': _0x129720[_0x5c9f80(_0x1deb74._0x50616a)][_0x5c9f80(_0x1deb74._0x3a55c6)]
|
|
1841
1850
|
},
|
|
1842
1851
|
'payload': {
|
|
1843
|
-
'mode':
|
|
1844
|
-
'text':
|
|
1852
|
+
'mode': _0x5c9f80(0x23c),
|
|
1853
|
+
'text': _0x297c9b
|
|
1845
1854
|
}
|
|
1846
1855
|
})
|
|
1847
|
-
}),
|
|
1848
|
-
if (!
|
|
1849
|
-
throw new Error(
|
|
1856
|
+
}), _0xc5cbd2 = await _0x11a6cd[_0x5c9f80(_0x1deb74._0x401fe5)]();
|
|
1857
|
+
if (!_0xc5cbd2['ok'])
|
|
1858
|
+
throw new Error(_0xc5cbd2['error'] ?? _0x5c9f80(0x1ef));
|
|
1850
1859
|
return [
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
][
|
|
1860
|
+
'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x205530 + _0x5c9f80(0x194) + _0x5e61aa + _0x5c9f80(_0x1deb74._0x528fa1),
|
|
1861
|
+
_0x5c9f80(_0x1deb74._0x2d78e6) + (_0xc5cbd2['disposition'] === _0x5c9f80(0x1f2) ? 'queued' : 'started') + '.',
|
|
1862
|
+
_0x5c9f80(0x1b2)
|
|
1863
|
+
][_0x5c9f80(0x172)]('\x0a');
|
|
1855
1864
|
}
|
|
1856
1865
|
}
|
|
1857
|
-
const
|
|
1858
|
-
'attachmentIds':
|
|
1859
|
-
'content':
|
|
1860
|
-
'target':
|
|
1861
|
-
'visibility':
|
|
1866
|
+
const _0xcf96a = await _0x1423f4[_0x5c9f80(0x167)][_0x5c9f80(_0x1deb74._0x735711)]({
|
|
1867
|
+
'attachmentIds': _0x467ba3[_0x5c9f80(0x1a3)],
|
|
1868
|
+
'content': _0x467ba3[_0x5c9f80(0x202)],
|
|
1869
|
+
'target': _0x467ba3[_0x5c9f80(_0x1deb74._0x2f9d06)],
|
|
1870
|
+
'visibility': _0x467ba3[_0x5c9f80(0x111)]
|
|
1862
1871
|
});
|
|
1863
|
-
return
|
|
1872
|
+
return _0x5c9f80(_0x1deb74._0x3e8485) + _0x467ba3['target'] + _0x5c9f80(_0x1deb74._0x4eab13) + _0xcf96a['messageId'];
|
|
1864
1873
|
},
|
|
1865
1874
|
async 'check_messages'() {
|
|
1866
|
-
const
|
|
1867
|
-
if (!
|
|
1868
|
-
const
|
|
1869
|
-
if (
|
|
1870
|
-
return formatCheckMessages(
|
|
1875
|
+
const _0x62dd63 = _0x3727a4, _0x77a0df = await _0x1423f4[_0x62dd63(0x167)][_0x62dd63(0xd5)]();
|
|
1876
|
+
if (!_0x1423f4['workerMode']) {
|
|
1877
|
+
const _0x1376b2 = await _0x47f2d9();
|
|
1878
|
+
if (_0x1376b2)
|
|
1879
|
+
return formatCheckMessages(_0x77a0df[_0x62dd63(_0x2b9617._0x47917e)]['filter'](_0x550747 => !_0x1376b2[_0x62dd63(0x1d8)](_0x550747['target'])));
|
|
1871
1880
|
}
|
|
1872
|
-
return formatCheckMessages(
|
|
1881
|
+
return formatCheckMessages(_0x77a0df[_0x62dd63(_0x2b9617._0x47917e)]);
|
|
1873
1882
|
},
|
|
1874
|
-
async 'read_history'(
|
|
1875
|
-
const
|
|
1876
|
-
return formatHistory(
|
|
1883
|
+
async 'read_history'(_0x3aef81) {
|
|
1884
|
+
const _0x9f5c4c = _0x3727a4, _0x5563d6 = await _0x1423f4[_0x9f5c4c(0x167)][_0x9f5c4c(_0x298ff5._0x1feda4)](_0x3aef81);
|
|
1885
|
+
return formatHistory(_0x5563d6);
|
|
1877
1886
|
},
|
|
1878
1887
|
async 'list_server'() {
|
|
1879
|
-
const
|
|
1880
|
-
return formatServerDirectory(
|
|
1888
|
+
const _0x1584fd = _0x3727a4, _0x349bcf = await _0x1423f4['client'][_0x1584fd(_0x1ae460._0x57a2ab)]();
|
|
1889
|
+
return formatServerDirectory(_0x349bcf);
|
|
1881
1890
|
},
|
|
1882
|
-
async 'list_tasks'(
|
|
1883
|
-
const
|
|
1884
|
-
let
|
|
1885
|
-
if (
|
|
1891
|
+
async 'list_tasks'(_0x5e988f) {
|
|
1892
|
+
const _0x292728 = _0x3727a4, _0x5e724c = await _0x1423f4[_0x292728(0x167)][_0x292728(0xdd)](_0x5e988f);
|
|
1893
|
+
let _0x1786c6;
|
|
1894
|
+
if (_0x1423f4['daemonLocalUrl'] && _0x1423f4['agentId'])
|
|
1886
1895
|
try {
|
|
1887
|
-
const
|
|
1888
|
-
if (
|
|
1889
|
-
const
|
|
1890
|
-
|
|
1891
|
-
for (const
|
|
1892
|
-
if (
|
|
1896
|
+
const _0x492d3a = await fetch(_0x1423f4[_0x292728(_0x5f4dc5._0x56ad80)] + _0x292728(0x17e) + encodeURIComponent(_0x1423f4['agentId'])), _0x5c7353 = await _0x492d3a[_0x292728(0x19e)]();
|
|
1897
|
+
if (_0x5c7353['ok']) {
|
|
1898
|
+
const _0x493cc3 = _0x5e988f[_0x292728(_0x5f4dc5._0x1080ad)] + ':';
|
|
1899
|
+
_0x1786c6 = new Set();
|
|
1900
|
+
for (const _0x4d708f of _0x5c7353[_0x292728(_0x5f4dc5._0x21ed2d)]) {
|
|
1901
|
+
if (_0x4d708f['status'] === _0x292728(0x143))
|
|
1893
1902
|
continue;
|
|
1894
|
-
if (
|
|
1895
|
-
const
|
|
1896
|
-
if (
|
|
1897
|
-
|
|
1903
|
+
if (_0x4d708f[_0x292728(_0x5f4dc5._0x3320d9)]?.['startsWith'](_0x493cc3)) {
|
|
1904
|
+
const _0x3344cc = _0x4d708f[_0x292728(_0x5f4dc5._0x3320d9)][_0x292728(0x23d)](_0x493cc3[_0x292728(0x146)]), _0x34dc85 = _0x5e724c[_0x292728(_0x5f4dc5._0x47c8bc)][_0x292728(0x230)](_0xafe803 => _0xafe803['messageId']?.[_0x292728(0x1c1)](_0x3344cc) === !![]);
|
|
1905
|
+
if (_0x34dc85?.[_0x292728(_0x5f4dc5._0x5714e7)] != null) {
|
|
1906
|
+
_0x1786c6['add'](_0x34dc85[_0x292728(_0x5f4dc5._0x5714e7)]);
|
|
1898
1907
|
continue;
|
|
1899
1908
|
}
|
|
1900
1909
|
}
|
|
1901
|
-
if (
|
|
1902
|
-
const
|
|
1903
|
-
|
|
1910
|
+
if (_0x4d708f[_0x292728(_0x5f4dc5._0x3c4980)]) {
|
|
1911
|
+
const _0x54ed4d = _0x5e724c[_0x292728(_0x5f4dc5._0xd34cc8)][_0x292728(0x230)](_0x377a8b => _0x377a8b[_0x292728(0x12b)] === _0x4d708f['task_id']);
|
|
1912
|
+
_0x54ed4d?.[_0x292728(0xda)] != null && _0x1786c6[_0x292728(0x13c)](_0x54ed4d['taskNumber']);
|
|
1904
1913
|
}
|
|
1905
1914
|
}
|
|
1906
1915
|
}
|
|
1907
1916
|
} catch {
|
|
1908
1917
|
}
|
|
1909
|
-
return formatTaskList(
|
|
1918
|
+
return formatTaskList(_0x5e724c[_0x292728(_0x5f4dc5._0x4a718a)], _0x1786c6);
|
|
1910
1919
|
},
|
|
1911
|
-
async 'create_tasks'(
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1914
|
-
const
|
|
1915
|
-
return formatCreatedTasks(
|
|
1920
|
+
async 'create_tasks'(_0x8ed7bc) {
|
|
1921
|
+
const _0xbbd311 = _0x3727a4;
|
|
1922
|
+
_0x5af70d(_0xbbd311(_0x1ab349._0x2b2aa8), _0x8ed7bc['channel']);
|
|
1923
|
+
const _0x4bce9e = await _0x1423f4['client'][_0xbbd311(0x1d9)](_0x8ed7bc);
|
|
1924
|
+
return formatCreatedTasks(_0x4bce9e['tasks']);
|
|
1916
1925
|
},
|
|
1917
|
-
async 'claim_tasks'(
|
|
1918
|
-
const
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1926
|
+
async 'claim_tasks'(_0x3e35cc) {
|
|
1927
|
+
const _0x4756a5 = {
|
|
1928
|
+
_0x327087: 0x15e,
|
|
1929
|
+
_0x483de7: 0x15e,
|
|
1930
|
+
_0x31cc88: 0x12b,
|
|
1931
|
+
_0x888b6e: 0x1ac
|
|
1932
|
+
}, _0x40ad70 = _0x3727a4;
|
|
1933
|
+
if (_0x1423f4[_0x40ad70(0x14a)]) {
|
|
1934
|
+
_0x5af70d(_0x40ad70(0x21c), _0x3e35cc['channel']);
|
|
1935
|
+
if (_0x3e35cc[_0x40ad70(0x1f0)] && _0x3e35cc[_0x40ad70(0x1f0)][_0x40ad70(_0x17001a._0x114449)] > 0x0)
|
|
1936
|
+
throw new Error(_0x40ad70(0x1a5));
|
|
1937
|
+
if (!_0x3e35cc['subtask_numbers'] || _0x3e35cc[_0x40ad70(_0x17001a._0x87ebca)]['length'] === 0x0)
|
|
1938
|
+
throw new Error(_0x40ad70(_0x17001a._0x54ce4d));
|
|
1925
1939
|
}
|
|
1926
|
-
const
|
|
1927
|
-
const
|
|
1928
|
-
if (!
|
|
1929
|
-
return
|
|
1940
|
+
const _0x207bc7 = await _0x1423f4[_0x40ad70(_0x17001a._0x5ed3c5)][_0x40ad70(_0x17001a._0x2bffcd)](_0x3e35cc), _0x2825d1 = await Promise[_0x40ad70(_0x17001a._0x2c10c7)](_0x207bc7[_0x40ad70(0x1fd)][_0x40ad70(_0x17001a._0x8f27f8)](async _0x4dae3e => {
|
|
1941
|
+
const _0x149052 = _0x40ad70;
|
|
1942
|
+
if (!_0x4dae3e[_0x149052(0x21b)] || !_0x4dae3e[_0x149052(_0x4756a5._0x327087)])
|
|
1943
|
+
return _0x4dae3e;
|
|
1930
1944
|
try {
|
|
1931
|
-
const
|
|
1932
|
-
'channel':
|
|
1933
|
-
'messageId':
|
|
1934
|
-
'taskId':
|
|
1935
|
-
'taskNumber':
|
|
1936
|
-
'threadNumber':
|
|
1945
|
+
const _0x4e7f75 = await _0xc552ae({
|
|
1946
|
+
'channel': _0x3e35cc[_0x149052(0xba)],
|
|
1947
|
+
'messageId': _0x4dae3e[_0x149052(_0x4756a5._0x483de7)],
|
|
1948
|
+
'taskId': _0x4dae3e[_0x149052(_0x4756a5._0x31cc88)],
|
|
1949
|
+
'taskNumber': _0x4dae3e['taskNumber'],
|
|
1950
|
+
'threadNumber': _0x4dae3e[_0x149052(_0x4756a5._0x888b6e)]
|
|
1937
1951
|
});
|
|
1938
|
-
return
|
|
1939
|
-
...
|
|
1940
|
-
...
|
|
1941
|
-
} :
|
|
1942
|
-
} catch (
|
|
1952
|
+
return _0x4e7f75 ? {
|
|
1953
|
+
..._0x4dae3e,
|
|
1954
|
+
..._0x4e7f75
|
|
1955
|
+
} : _0x4dae3e;
|
|
1956
|
+
} catch (_0xf9fdcd) {
|
|
1943
1957
|
return {
|
|
1944
|
-
...
|
|
1945
|
-
'workerHandoffError':
|
|
1958
|
+
..._0x4dae3e,
|
|
1959
|
+
'workerHandoffError': _0xf9fdcd instanceof Error ? _0xf9fdcd['message'] : _0x149052(0x10f)
|
|
1946
1960
|
};
|
|
1947
1961
|
}
|
|
1948
1962
|
}));
|
|
1949
|
-
return formatClaimTaskResults(
|
|
1963
|
+
return formatClaimTaskResults(_0x2825d1);
|
|
1950
1964
|
},
|
|
1951
|
-
async 'unclaim_task'(
|
|
1952
|
-
const
|
|
1953
|
-
if (
|
|
1954
|
-
|
|
1955
|
-
if (
|
|
1956
|
-
throw new Error(
|
|
1965
|
+
async 'unclaim_task'(_0x39e5b1) {
|
|
1966
|
+
const _0x759094 = _0x3727a4;
|
|
1967
|
+
if (_0x1423f4['workerMode']) {
|
|
1968
|
+
_0x5af70d('unclaim_task', _0x39e5b1[_0x759094(_0x5c01d4._0x13446f)]);
|
|
1969
|
+
if (_0x39e5b1[_0x759094(_0x5c01d4._0x4034ee)] == null)
|
|
1970
|
+
throw new Error(_0x759094(_0x5c01d4._0x3a2ac5));
|
|
1957
1971
|
}
|
|
1958
|
-
const
|
|
1959
|
-
return formatUnclaimTaskResult(
|
|
1972
|
+
const _0x2f1d7b = await _0x1423f4['client'][_0x759094(0x247)](_0x39e5b1);
|
|
1973
|
+
return formatUnclaimTaskResult(_0x2f1d7b);
|
|
1960
1974
|
},
|
|
1961
|
-
async 'update_task_status'(
|
|
1962
|
-
const
|
|
1963
|
-
|
|
1964
|
-
const
|
|
1965
|
-
return formatUpdateTaskStatusResult(
|
|
1975
|
+
async 'update_task_status'(_0x741793) {
|
|
1976
|
+
const _0x534446 = _0x3727a4;
|
|
1977
|
+
_0x5af70d(_0x534446(_0x2063b0._0x3953e6), _0x741793[_0x534446(0xba)]);
|
|
1978
|
+
const _0xb3ddc6 = await _0x1423f4[_0x534446(_0x2063b0._0x4c7f4d)][_0x534446(0x123)](_0x741793);
|
|
1979
|
+
return formatUpdateTaskStatusResult(_0xb3ddc6);
|
|
1966
1980
|
},
|
|
1967
|
-
async 'upload_file'(
|
|
1968
|
-
const
|
|
1969
|
-
sizeBytes:
|
|
1970
|
-
...
|
|
1971
|
-
} =
|
|
1972
|
-
'channel':
|
|
1973
|
-
...
|
|
1981
|
+
async 'upload_file'(_0x4d7766) {
|
|
1982
|
+
const _0xce5a6a = _0x3727a4, _0x4193b3 = await _0x1423f4['uploadPreparer'](_0x4d7766[_0xce5a6a(_0x38e71d._0xb40706)]), {
|
|
1983
|
+
sizeBytes: _0x1e0d9d,
|
|
1984
|
+
..._0x3663d9
|
|
1985
|
+
} = _0x4193b3, _0xab27f4 = await _0x1423f4['client'][_0xce5a6a(_0x38e71d._0x225744)]({
|
|
1986
|
+
'channel': _0x4d7766[_0xce5a6a(0xba)],
|
|
1987
|
+
..._0x3663d9
|
|
1974
1988
|
});
|
|
1975
|
-
return formatUploadResult(
|
|
1989
|
+
return formatUploadResult(_0xab27f4);
|
|
1976
1990
|
},
|
|
1977
|
-
async 'view_file'(
|
|
1978
|
-
const
|
|
1979
|
-
if (
|
|
1980
|
-
return formatViewFileResult(
|
|
1981
|
-
const
|
|
1982
|
-
'attachmentId':
|
|
1983
|
-
'contentType':
|
|
1984
|
-
'data':
|
|
1985
|
-
'originalFilename':
|
|
1991
|
+
async 'view_file'(_0x51ddfb) {
|
|
1992
|
+
const _0x1de03f = _0x3727a4, _0x571f54 = await _0x1423f4['attachmentCache']['findCachedPath'](_0x51ddfb[_0x1de03f(0x19b)]);
|
|
1993
|
+
if (_0x571f54)
|
|
1994
|
+
return formatViewFileResult(_0x571f54, !![]);
|
|
1995
|
+
const _0x57e57c = await _0x1423f4[_0x1de03f(0x167)][_0x1de03f(0x117)](_0x51ddfb[_0x1de03f(_0x376121._0x100aa6)]), _0xed9b90 = await _0x1423f4[_0x1de03f(_0x376121._0x3b5019)][_0x1de03f(0x213)]({
|
|
1996
|
+
'attachmentId': _0x51ddfb[_0x1de03f(0x19b)],
|
|
1997
|
+
'contentType': _0x57e57c[_0x1de03f(_0x376121._0x3e832f)],
|
|
1998
|
+
'data': _0x57e57c['data'],
|
|
1999
|
+
'originalFilename': _0x57e57c['originalFilename']
|
|
1986
2000
|
});
|
|
1987
|
-
return formatViewFileResult(
|
|
2001
|
+
return formatViewFileResult(_0xed9b90, ![]);
|
|
1988
2002
|
},
|
|
1989
|
-
async 'get_worker_status'(
|
|
1990
|
-
const
|
|
1991
|
-
if (!
|
|
1992
|
-
return
|
|
1993
|
-
const
|
|
1994
|
-
if (!
|
|
1995
|
-
return
|
|
1996
|
-
return
|
|
2003
|
+
async 'get_worker_status'(_0x2eaa6c) {
|
|
2004
|
+
const _0x588873 = _0x3727a4;
|
|
2005
|
+
if (!_0x1423f4[_0x588873(0x1f4)])
|
|
2006
|
+
return _0x588873(_0x253e2f._0x1c5026);
|
|
2007
|
+
const _0x1dc2be = await fetch(_0x1423f4[_0x588873(0x1f4)] + _0x588873(_0x253e2f._0x2540fa) + encodeURIComponent(_0x2eaa6c[_0x588873(_0x253e2f._0x2cb4a2)])), _0x1c122d = await _0x1dc2be[_0x588873(_0x253e2f._0x6a8d90)]();
|
|
2008
|
+
if (!_0x1c122d['ok'])
|
|
2009
|
+
return _0x588873(_0x253e2f._0x58d0a4) + _0x2eaa6c['work_key'] + _0x588873(0x122);
|
|
2010
|
+
return _0x588873(_0x253e2f._0x3110ac) + _0x2eaa6c[_0x588873(_0x253e2f._0x5cd365)] + _0x588873(0x1e7) + _0x1c122d[_0x588873(0x12e)];
|
|
1997
2011
|
},
|
|
1998
|
-
async 'park_worker'(
|
|
1999
|
-
const
|
|
2000
|
-
if (!
|
|
2001
|
-
return
|
|
2002
|
-
const
|
|
2003
|
-
'method':
|
|
2004
|
-
'headers': { 'Content-Type':
|
|
2005
|
-
'body': JSON[
|
|
2006
|
-
}),
|
|
2007
|
-
if (!
|
|
2008
|
-
throw new Error(
|
|
2009
|
-
return
|
|
2012
|
+
async 'park_worker'(_0x1543cf) {
|
|
2013
|
+
const _0x3d758e = _0x3727a4;
|
|
2014
|
+
if (!_0x1423f4['daemonLocalUrl'])
|
|
2015
|
+
return _0x3d758e(0xd8);
|
|
2016
|
+
const _0x2aea52 = await fetch(_0x1423f4[_0x3d758e(0x1f4)] + _0x3d758e(0xcd), {
|
|
2017
|
+
'method': _0x3d758e(0xf4),
|
|
2018
|
+
'headers': { 'Content-Type': _0x3d758e(_0x4313a3._0x26f4ee) },
|
|
2019
|
+
'body': JSON['stringify']({ 'work_key': _0x1543cf[_0x3d758e(0x11e)] })
|
|
2020
|
+
}), _0x17ec14 = await _0x2aea52[_0x3d758e(0x19e)]();
|
|
2021
|
+
if (!_0x17ec14['ok'])
|
|
2022
|
+
throw new Error(_0x17ec14[_0x3d758e(0x14d)] ?? 'park_worker\x20failed');
|
|
2023
|
+
return _0x3d758e(_0x4313a3._0x3ad986) + _0x1543cf[_0x3d758e(_0x4313a3._0x3c13ae)] + _0x3d758e(_0x4313a3._0x282fa5);
|
|
2010
2024
|
},
|
|
2011
|
-
async 'mark_waiting_input'(
|
|
2012
|
-
const
|
|
2013
|
-
if (!
|
|
2014
|
-
return
|
|
2015
|
-
const
|
|
2016
|
-
'method':
|
|
2017
|
-
'headers': { 'Content-Type':
|
|
2018
|
-
'body': JSON[
|
|
2019
|
-
'work_key':
|
|
2020
|
-
'agent_id':
|
|
2025
|
+
async 'mark_waiting_input'(_0xa6987e) {
|
|
2026
|
+
const _0x16b204 = _0x3727a4;
|
|
2027
|
+
if (!_0x1423f4[_0x16b204(_0x1d03c._0x33f496)] || !_0x1423f4[_0x16b204(0x201)])
|
|
2028
|
+
return _0x16b204(_0x1d03c._0x594420);
|
|
2029
|
+
const _0xf7b9fa = await fetch(_0x1423f4[_0x16b204(0x1f4)] + _0x16b204(0x13b), {
|
|
2030
|
+
'method': 'POST',
|
|
2031
|
+
'headers': { 'Content-Type': _0x16b204(0xdc) },
|
|
2032
|
+
'body': JSON[_0x16b204(_0x1d03c._0x312b4c)]({
|
|
2033
|
+
'work_key': _0xa6987e[_0x16b204(0x11e)],
|
|
2034
|
+
'agent_id': _0x1423f4['agentId']
|
|
2021
2035
|
})
|
|
2022
|
-
}),
|
|
2023
|
-
if (!
|
|
2024
|
-
throw new Error(
|
|
2025
|
-
return
|
|
2036
|
+
}), _0x25060c = await _0xf7b9fa[_0x16b204(_0x1d03c._0x1efdbb)]();
|
|
2037
|
+
if (!_0x25060c['ok'])
|
|
2038
|
+
throw new Error(_0x25060c['error'] ?? _0x16b204(0xf0));
|
|
2039
|
+
return _0x16b204(0x1dc) + _0xa6987e[_0x16b204(_0x1d03c._0x4e0410)] + _0x16b204(_0x1d03c._0x4757ef);
|
|
2026
2040
|
},
|
|
2027
|
-
async 'escalate_to_main'(
|
|
2028
|
-
const
|
|
2029
|
-
if (!
|
|
2030
|
-
return
|
|
2031
|
-
const
|
|
2032
|
-
'method':
|
|
2033
|
-
'headers': { 'Content-Type':
|
|
2034
|
-
'body': JSON[
|
|
2035
|
-
'work_key':
|
|
2036
|
-
'reason':
|
|
2041
|
+
async 'escalate_to_main'(_0x179c6d) {
|
|
2042
|
+
const _0x192d95 = _0x3727a4;
|
|
2043
|
+
if (!_0x1423f4[_0x192d95(_0x3e4170._0x54aba4)])
|
|
2044
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2045
|
+
const _0x11d1c7 = await fetch(_0x1423f4['daemonLocalUrl'] + _0x192d95(0x1f5), {
|
|
2046
|
+
'method': _0x192d95(_0x3e4170._0x6c3ce),
|
|
2047
|
+
'headers': { 'Content-Type': _0x192d95(0xdc) },
|
|
2048
|
+
'body': JSON['stringify']({
|
|
2049
|
+
'work_key': _0x179c6d[_0x192d95(0x11e)],
|
|
2050
|
+
'reason': _0x179c6d[_0x192d95(0x1aa)]
|
|
2037
2051
|
})
|
|
2038
|
-
}),
|
|
2039
|
-
if (!
|
|
2040
|
-
throw new Error(
|
|
2041
|
-
return
|
|
2052
|
+
}), _0x1bec12 = await _0x11d1c7['json']();
|
|
2053
|
+
if (!_0x1bec12['ok'])
|
|
2054
|
+
throw new Error(_0x1bec12[_0x192d95(_0x3e4170._0x2d9516)] ?? _0x192d95(_0x3e4170._0x10486d));
|
|
2055
|
+
return _0x192d95(0x236) + _0x179c6d[_0x192d95(0x1aa)];
|
|
2042
2056
|
}
|
|
2043
2057
|
};
|
|
2044
2058
|
}
|
|
2045
|
-
function textResult(
|
|
2046
|
-
const
|
|
2059
|
+
function textResult(_0x1ada2c, _0x3a528c = ![]) {
|
|
2060
|
+
const _0x459bb1 = _0x77ce4b;
|
|
2047
2061
|
return {
|
|
2048
2062
|
'content': [{
|
|
2049
|
-
'type':
|
|
2050
|
-
'text':
|
|
2063
|
+
'type': _0x459bb1(0x242),
|
|
2064
|
+
'text': _0x1ada2c
|
|
2051
2065
|
}],
|
|
2052
|
-
...
|
|
2066
|
+
..._0x3a528c ? { 'isError': !![] } : {}
|
|
2053
2067
|
};
|
|
2054
2068
|
}
|
|
2055
|
-
async function registerChatBridgeTools(
|
|
2056
|
-
const
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
]
|
|
2119
|
-
|
|
2120
|
-
|
|
2069
|
+
async function registerChatBridgeTools(_0x5391b9, _0x1364a7, _0x560ea8) {
|
|
2070
|
+
const _0x575365 = {
|
|
2071
|
+
_0x542bf2: 0x22d,
|
|
2072
|
+
_0x250a89: 0x131,
|
|
2073
|
+
_0x1ba32d: 0x1cb,
|
|
2074
|
+
_0x170289: 0x1d2,
|
|
2075
|
+
_0x2d2d5d: 0x1df,
|
|
2076
|
+
_0x5e6cb7: 0x12d,
|
|
2077
|
+
_0x4ed69e: 0x124,
|
|
2078
|
+
_0x177a87: 0x18b,
|
|
2079
|
+
_0x19e050: 0x1d2,
|
|
2080
|
+
_0x12c246: 0xb9,
|
|
2081
|
+
_0xdc0d23: 0x16a,
|
|
2082
|
+
_0x383448: 0x137,
|
|
2083
|
+
_0x52b624: 0x1df,
|
|
2084
|
+
_0x5382de: 0x113,
|
|
2085
|
+
_0x5b37cd: 0x116,
|
|
2086
|
+
_0x40abd3: 0x130,
|
|
2087
|
+
_0x4496ce: 0x1cb,
|
|
2088
|
+
_0x193f9f: 0x127,
|
|
2089
|
+
_0x2156b5: 0x217,
|
|
2090
|
+
_0x351417: 0x191,
|
|
2091
|
+
_0x48e366: 0x21c,
|
|
2092
|
+
_0x1d52df: 0x119,
|
|
2093
|
+
_0x663c39: 0xbe,
|
|
2094
|
+
_0x8ce38e: 0x119,
|
|
2095
|
+
_0x140765: 0xbe,
|
|
2096
|
+
_0x520015: 0x21a,
|
|
2097
|
+
_0x2f465e: 0x227,
|
|
2098
|
+
_0x200468: 0x1bb,
|
|
2099
|
+
_0x441598: 0xde,
|
|
2100
|
+
_0xc915e2: 0xbe,
|
|
2101
|
+
_0x23c1cd: 0x1d4,
|
|
2102
|
+
_0x503e87: 0x113,
|
|
2103
|
+
_0x5d326e: 0x116,
|
|
2104
|
+
_0x47a63a: 0x1cb,
|
|
2105
|
+
_0x48548a: 0x1cb,
|
|
2106
|
+
_0x49528b: 0x22d,
|
|
2107
|
+
_0x365def: 0x231,
|
|
2108
|
+
_0x9d5e14: 0x205,
|
|
2109
|
+
_0xa2a0f2: 0x1cb
|
|
2110
|
+
}, _0x5d2d80 = {
|
|
2111
|
+
_0x290399: 0x1a1,
|
|
2112
|
+
_0x2f901b: 0x196
|
|
2113
|
+
}, _0x102ace = { _0x2887a7: 0x1d0 }, _0x124aba = { _0x26cc7d: 0x196 }, _0x2a1e70 = {
|
|
2114
|
+
_0x9d2939: 0x231,
|
|
2115
|
+
_0x31af4c: 0x157
|
|
2116
|
+
}, _0x3bce40 = { _0x291584: 0x239 }, _0x902716 = { _0x4b1085: 0xc1 }, _0x5635b7 = { _0x2ff3bc: 0x196 }, _0x1f9631 = {
|
|
2117
|
+
_0x1cc852: 0x196,
|
|
2118
|
+
_0x1d6c44: 0x19c
|
|
2119
|
+
}, _0x544322 = { _0x456e90: 0x21c }, _0x697838 = {
|
|
2120
|
+
_0x269bc7: 0xd0,
|
|
2121
|
+
_0xc20f51: 0xe8
|
|
2122
|
+
}, _0x3d98ee = {
|
|
2123
|
+
_0x400965: 0xb9,
|
|
2124
|
+
_0x27b333: 0x118
|
|
2125
|
+
}, _0x592fc3 = { _0x235017: 0x196 }, _0x4aa75b = {
|
|
2126
|
+
_0x128618: 0x196,
|
|
2127
|
+
_0x5b34e9: 0x139
|
|
2128
|
+
}, _0x1bea5f = _0x77ce4b, {z: _0xb4e087} = await import(_0x1bea5f(0xf5));
|
|
2129
|
+
_0x5391b9[_0x1bea5f(_0x575365._0x542bf2)](_0x1bea5f(_0x575365._0x250a89), '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.', {
|
|
2130
|
+
'target': _0xb4e087[_0x1bea5f(_0x575365._0x1ba32d)](),
|
|
2131
|
+
'content': _0xb4e087[_0x1bea5f(_0x575365._0x1ba32d)](),
|
|
2132
|
+
'attachment_ids': _0xb4e087[_0x1bea5f(0x119)](_0xb4e087['string']())[_0x1bea5f(_0x575365._0x170289)](),
|
|
2133
|
+
'visibility': _0xb4e087[_0x1bea5f(_0x575365._0x2d2d5d)]([
|
|
2134
|
+
_0x1bea5f(_0x575365._0x5e6cb7),
|
|
2135
|
+
_0x1bea5f(0x1e9)
|
|
2136
|
+
])[_0x1bea5f(0x1d2)]()[_0x1bea5f(0x1ff)](_0x1bea5f(_0x575365._0x4ed69e))
|
|
2137
|
+
}, async _0x2dd9c7 => {
|
|
2138
|
+
const _0x2ffb66 = _0x1bea5f;
|
|
2121
2139
|
try {
|
|
2122
|
-
return textResult(await
|
|
2123
|
-
} catch (
|
|
2124
|
-
return textResult(
|
|
2140
|
+
return textResult(await _0x1364a7[_0x2ffb66(0x131)](_0x2dd9c7));
|
|
2141
|
+
} catch (_0x3f6642) {
|
|
2142
|
+
return textResult(_0x3f6642 instanceof Error ? _0x3f6642[_0x2ffb66(0x196)] : 'send_message\x20failed', !![]);
|
|
2125
2143
|
}
|
|
2126
|
-
}),
|
|
2127
|
-
const
|
|
2144
|
+
}), _0x5391b9['tool'](_0x1bea5f(0x165), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2145
|
+
const _0x12bb1c = _0x1bea5f;
|
|
2128
2146
|
try {
|
|
2129
|
-
return textResult(await
|
|
2130
|
-
} catch (
|
|
2131
|
-
return textResult(
|
|
2147
|
+
return textResult(await _0x1364a7['check_messages']());
|
|
2148
|
+
} catch (_0x4ae4a4) {
|
|
2149
|
+
return textResult(_0x4ae4a4 instanceof Error ? _0x4ae4a4[_0x12bb1c(_0x4aa75b._0x128618)] : _0x12bb1c(_0x4aa75b._0x5b34e9), !![]);
|
|
2132
2150
|
}
|
|
2133
|
-
}),
|
|
2134
|
-
'channel':
|
|
2135
|
-
'limit':
|
|
2136
|
-
'before':
|
|
2137
|
-
'after':
|
|
2138
|
-
}, async
|
|
2139
|
-
const
|
|
2151
|
+
}), _0x5391b9[_0x1bea5f(_0x575365._0x542bf2)](_0x1bea5f(_0x575365._0x177a87), _0x1bea5f(0x245), {
|
|
2152
|
+
'channel': _0xb4e087[_0x1bea5f(0x1cb)](),
|
|
2153
|
+
'limit': _0xb4e087[_0x1bea5f(0xbe)]()['optional'](),
|
|
2154
|
+
'before': _0xb4e087[_0x1bea5f(0xbe)]()['optional'](),
|
|
2155
|
+
'after': _0xb4e087[_0x1bea5f(0xbe)]()[_0x1bea5f(_0x575365._0x19e050)]()
|
|
2156
|
+
}, async _0xdbbce8 => {
|
|
2157
|
+
const _0x10c90e = _0x1bea5f;
|
|
2140
2158
|
try {
|
|
2141
|
-
return textResult(await
|
|
2142
|
-
} catch (
|
|
2143
|
-
return textResult(
|
|
2159
|
+
return textResult(await _0x1364a7['read_history'](_0xdbbce8));
|
|
2160
|
+
} catch (_0x13fb7d) {
|
|
2161
|
+
return textResult(_0x13fb7d instanceof Error ? _0x13fb7d[_0x10c90e(_0x592fc3._0x235017)] : 'read_history\x20failed', !![]);
|
|
2144
2162
|
}
|
|
2145
|
-
}),
|
|
2146
|
-
const
|
|
2163
|
+
}), _0x5391b9[_0x1bea5f(0x22d)](_0x1bea5f(_0x575365._0x12c246), _0x1bea5f(_0x575365._0xdc0d23), {}, async () => {
|
|
2164
|
+
const _0x258c46 = _0x1bea5f;
|
|
2147
2165
|
try {
|
|
2148
|
-
return textResult(await
|
|
2149
|
-
} catch (
|
|
2150
|
-
return textResult(
|
|
2166
|
+
return textResult(await _0x1364a7[_0x258c46(_0x3d98ee._0x400965)]());
|
|
2167
|
+
} catch (_0x4c2534) {
|
|
2168
|
+
return textResult(_0x4c2534 instanceof Error ? _0x4c2534[_0x258c46(0x196)] : _0x258c46(_0x3d98ee._0x27b333), !![]);
|
|
2151
2169
|
}
|
|
2152
|
-
}),
|
|
2153
|
-
'channel':
|
|
2154
|
-
'status':
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
])[
|
|
2160
|
-
}, async
|
|
2161
|
-
const
|
|
2170
|
+
}), _0x5391b9[_0x1bea5f(_0x575365._0x542bf2)](_0x1bea5f(0xd0), _0x1bea5f(_0x575365._0x383448), {
|
|
2171
|
+
'channel': _0xb4e087['string'](),
|
|
2172
|
+
'status': _0xb4e087[_0x1bea5f(_0x575365._0x52b624)]([
|
|
2173
|
+
_0x1bea5f(_0x575365._0x5382de),
|
|
2174
|
+
'in_progress',
|
|
2175
|
+
_0x1bea5f(_0x575365._0x5b37cd),
|
|
2176
|
+
_0x1bea5f(_0x575365._0x40abd3)
|
|
2177
|
+
])[_0x1bea5f(0x1d2)]()
|
|
2178
|
+
}, async _0x18806f => {
|
|
2179
|
+
const _0x1a5e75 = _0x1bea5f;
|
|
2162
2180
|
try {
|
|
2163
|
-
return textResult(await
|
|
2164
|
-
} catch (
|
|
2165
|
-
return textResult(
|
|
2181
|
+
return textResult(await _0x1364a7[_0x1a5e75(_0x697838._0x269bc7)](_0x18806f));
|
|
2182
|
+
} catch (_0x459c7e) {
|
|
2183
|
+
return textResult(_0x459c7e instanceof Error ? _0x459c7e['message'] : _0x1a5e75(_0x697838._0xc20f51), !![]);
|
|
2166
2184
|
}
|
|
2167
|
-
}),
|
|
2168
|
-
'channel':
|
|
2169
|
-
'idempotency_key':
|
|
2170
|
-
'tasks':
|
|
2171
|
-
'title':
|
|
2172
|
-
'description':
|
|
2173
|
-
'priority':
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
])[
|
|
2185
|
+
}), _0x5391b9['tool']('create_tasks', 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.\x20In\x20a\x20thread\x20target\x20(e.g.\x20\x22#channel:threadId\x22),\x20creates\x20subtasks\x20under\x20the\x20existing\x20parent\x20task.', {
|
|
2186
|
+
'channel': _0xb4e087[_0x1bea5f(0x1cb)](),
|
|
2187
|
+
'idempotency_key': _0xb4e087[_0x1bea5f(_0x575365._0x1ba32d)]()['optional'](),
|
|
2188
|
+
'tasks': _0xb4e087[_0x1bea5f(0x119)](_0xb4e087[_0x1bea5f(0x227)]({
|
|
2189
|
+
'title': _0xb4e087[_0x1bea5f(_0x575365._0x4496ce)](),
|
|
2190
|
+
'description': _0xb4e087['string']()[_0x1bea5f(0x1d2)](),
|
|
2191
|
+
'priority': _0xb4e087['enum']([
|
|
2192
|
+
_0x1bea5f(_0x575365._0x193f9f),
|
|
2193
|
+
_0x1bea5f(_0x575365._0x2156b5),
|
|
2194
|
+
_0x1bea5f(0x19a),
|
|
2195
|
+
_0x1bea5f(_0x575365._0x351417)
|
|
2196
|
+
])[_0x1bea5f(0x1d2)]()
|
|
2179
2197
|
}))
|
|
2180
|
-
}, async
|
|
2181
|
-
const
|
|
2198
|
+
}, async _0x204e02 => {
|
|
2199
|
+
const _0x1368fa = _0x1bea5f;
|
|
2182
2200
|
try {
|
|
2183
|
-
return textResult(await
|
|
2184
|
-
} catch (
|
|
2185
|
-
return textResult(
|
|
2201
|
+
return textResult(await _0x1364a7[_0x1368fa(0x163)](_0x204e02));
|
|
2202
|
+
} catch (_0x5d2ff1) {
|
|
2203
|
+
return textResult(_0x5d2ff1 instanceof Error ? _0x5d2ff1['message'] : _0x1368fa(0x102), !![]);
|
|
2186
2204
|
}
|
|
2187
|
-
}),
|
|
2188
|
-
'channel':
|
|
2189
|
-
'task_numbers':
|
|
2190
|
-
'subtask_numbers':
|
|
2191
|
-
'message_ids':
|
|
2192
|
-
'evidence':
|
|
2193
|
-
'create_thread':
|
|
2194
|
-
'create_task':
|
|
2195
|
-
}))[
|
|
2196
|
-
'idempotency_key':
|
|
2197
|
-
}, async
|
|
2198
|
-
const
|
|
2205
|
+
}), _0x5391b9[_0x1bea5f(0x22d)](_0x1bea5f(_0x575365._0x48e366), 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.\x20For\x20subtasks\x20in\x20a\x20thread,\x20use\x20subtask_numbers\x20with\x20a\x20single\x20task_numbers\x20entry.', {
|
|
2206
|
+
'channel': _0xb4e087['string'](),
|
|
2207
|
+
'task_numbers': _0xb4e087[_0x1bea5f(_0x575365._0x1d52df)](_0xb4e087[_0x1bea5f(_0x575365._0x663c39)]())[_0x1bea5f(0x1d2)](),
|
|
2208
|
+
'subtask_numbers': _0xb4e087[_0x1bea5f(_0x575365._0x8ce38e)](_0xb4e087[_0x1bea5f(_0x575365._0x140765)]())[_0x1bea5f(_0x575365._0x170289)](),
|
|
2209
|
+
'message_ids': _0xb4e087['array'](_0xb4e087['string']())['optional'](),
|
|
2210
|
+
'evidence': _0xb4e087[_0x1bea5f(_0x575365._0x520015)](_0xb4e087['string'](), _0xb4e087[_0x1bea5f(_0x575365._0x2f465e)]({
|
|
2211
|
+
'create_thread': _0xb4e087[_0x1bea5f(_0x575365._0x200468)]()[_0x1bea5f(_0x575365._0x170289)](),
|
|
2212
|
+
'create_task': _0xb4e087['unknown']()[_0x1bea5f(0x1d2)]()
|
|
2213
|
+
}))[_0x1bea5f(_0x575365._0x19e050)](),
|
|
2214
|
+
'idempotency_key': _0xb4e087['string']()[_0x1bea5f(0x1d2)]()
|
|
2215
|
+
}, async _0x2bf4e3 => {
|
|
2216
|
+
const _0x25e743 = _0x1bea5f;
|
|
2199
2217
|
try {
|
|
2200
|
-
return textResult(await
|
|
2201
|
-
} catch (
|
|
2202
|
-
return textResult(
|
|
2218
|
+
return textResult(await _0x1364a7[_0x25e743(_0x544322._0x456e90)](_0x2bf4e3));
|
|
2219
|
+
} catch (_0x2d5202) {
|
|
2220
|
+
return textResult(_0x2d5202 instanceof Error ? _0x2d5202[_0x25e743(0x196)] : _0x25e743(0x210), !![]);
|
|
2203
2221
|
}
|
|
2204
|
-
}),
|
|
2205
|
-
'channel':
|
|
2206
|
-
'task_number':
|
|
2207
|
-
'subtask_number':
|
|
2208
|
-
'idempotency_key':
|
|
2209
|
-
}, async
|
|
2210
|
-
const
|
|
2222
|
+
}), _0x5391b9[_0x1bea5f(0x22d)]('unclaim_task', _0x1bea5f(_0x575365._0x441598), {
|
|
2223
|
+
'channel': _0xb4e087[_0x1bea5f(0x1cb)](),
|
|
2224
|
+
'task_number': _0xb4e087['number'](),
|
|
2225
|
+
'subtask_number': _0xb4e087[_0x1bea5f(_0x575365._0xc915e2)]()[_0x1bea5f(0x1d2)](),
|
|
2226
|
+
'idempotency_key': _0xb4e087['string']()['optional']()
|
|
2227
|
+
}, async _0x5416ab => {
|
|
2228
|
+
const _0x8596b6 = _0x1bea5f;
|
|
2211
2229
|
try {
|
|
2212
|
-
return textResult(await
|
|
2213
|
-
} catch (
|
|
2214
|
-
return textResult(
|
|
2230
|
+
return textResult(await _0x1364a7[_0x8596b6(0x148)](_0x5416ab));
|
|
2231
|
+
} catch (_0x525712) {
|
|
2232
|
+
return textResult(_0x525712 instanceof Error ? _0x525712[_0x8596b6(_0x1f9631._0x1cc852)] : _0x8596b6(_0x1f9631._0x1d6c44), !![]);
|
|
2215
2233
|
}
|
|
2216
|
-
}),
|
|
2217
|
-
'channel':
|
|
2218
|
-
'task_number':
|
|
2219
|
-
'subtask_number':
|
|
2220
|
-
'status':
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2234
|
+
}), _0x5391b9[_0x1bea5f(_0x575365._0x542bf2)](_0x1bea5f(_0x575365._0x23c1cd), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
|
|
2235
|
+
'channel': _0xb4e087['string'](),
|
|
2236
|
+
'task_number': _0xb4e087[_0x1bea5f(0xbe)](),
|
|
2237
|
+
'subtask_number': _0xb4e087[_0x1bea5f(0xbe)]()[_0x1bea5f(_0x575365._0x19e050)](),
|
|
2238
|
+
'status': _0xb4e087[_0x1bea5f(_0x575365._0x52b624)]([
|
|
2239
|
+
_0x1bea5f(_0x575365._0x503e87),
|
|
2240
|
+
'in_progress',
|
|
2241
|
+
_0x1bea5f(_0x575365._0x5d326e),
|
|
2242
|
+
_0x1bea5f(_0x575365._0x40abd3)
|
|
2225
2243
|
]),
|
|
2226
|
-
'idempotency_key':
|
|
2227
|
-
}, async
|
|
2228
|
-
const
|
|
2244
|
+
'idempotency_key': _0xb4e087[_0x1bea5f(0x1cb)]()['optional']()
|
|
2245
|
+
}, async _0x5e06c5 => {
|
|
2246
|
+
const _0x16fb3d = _0x1bea5f;
|
|
2229
2247
|
try {
|
|
2230
|
-
return textResult(await
|
|
2231
|
-
} catch (
|
|
2232
|
-
return textResult(
|
|
2248
|
+
return textResult(await _0x1364a7['update_task_status'](_0x5e06c5));
|
|
2249
|
+
} catch (_0xfc954b) {
|
|
2250
|
+
return textResult(_0xfc954b instanceof Error ? _0xfc954b[_0x16fb3d(_0x5635b7._0x2ff3bc)] : _0x16fb3d(0x1ec), !![]);
|
|
2233
2251
|
}
|
|
2234
|
-
}),
|
|
2235
|
-
'channel':
|
|
2236
|
-
'file_path':
|
|
2237
|
-
}, async
|
|
2238
|
-
const
|
|
2252
|
+
}), _0x5391b9[_0x1bea5f(0x22d)]('upload_file', _0x1bea5f(0xf3), {
|
|
2253
|
+
'channel': _0xb4e087[_0x1bea5f(_0x575365._0x47a63a)](),
|
|
2254
|
+
'file_path': _0xb4e087[_0x1bea5f(0x1cb)]()
|
|
2255
|
+
}, async _0x77f71f => {
|
|
2256
|
+
const _0x1d8018 = _0x1bea5f;
|
|
2239
2257
|
try {
|
|
2240
|
-
return textResult(await
|
|
2241
|
-
} catch (
|
|
2242
|
-
return textResult(
|
|
2258
|
+
return textResult(await _0x1364a7[_0x1d8018(_0x902716._0x4b1085)](_0x77f71f));
|
|
2259
|
+
} catch (_0x443a71) {
|
|
2260
|
+
return textResult(_0x443a71 instanceof Error ? _0x443a71[_0x1d8018(0x196)] : _0x1d8018(0x14e), !![]);
|
|
2243
2261
|
}
|
|
2244
|
-
}),
|
|
2245
|
-
const
|
|
2262
|
+
}), _0x5391b9[_0x1bea5f(0x22d)]('view_file', _0x1bea5f(0xc0), { 'attachment_id': _0xb4e087[_0x1bea5f(_0x575365._0x48548a)]() }, async _0x321189 => {
|
|
2263
|
+
const _0x4cc828 = _0x1bea5f;
|
|
2246
2264
|
try {
|
|
2247
|
-
return textResult(await
|
|
2248
|
-
} catch (
|
|
2249
|
-
return textResult(
|
|
2265
|
+
return textResult(await _0x1364a7['view_file'](_0x321189));
|
|
2266
|
+
} catch (_0x27b3cf) {
|
|
2267
|
+
return textResult(_0x27b3cf instanceof Error ? _0x27b3cf[_0x4cc828(0x196)] : _0x4cc828(_0x3bce40._0x291584), !![]);
|
|
2250
2268
|
}
|
|
2251
|
-
}),
|
|
2252
|
-
const
|
|
2269
|
+
}), _0x5391b9[_0x1bea5f(_0x575365._0x49528b)](_0x1bea5f(_0x575365._0x365def), _0x1bea5f(_0x575365._0x9d5e14), { 'work_key': _0xb4e087[_0x1bea5f(_0x575365._0xa2a0f2)]() }, async _0x349a99 => {
|
|
2270
|
+
const _0x450941 = _0x1bea5f;
|
|
2253
2271
|
try {
|
|
2254
|
-
return textResult(await
|
|
2255
|
-
} catch (
|
|
2256
|
-
return textResult(
|
|
2272
|
+
return textResult(await _0x1364a7[_0x450941(_0x2a1e70._0x9d2939)](_0x349a99));
|
|
2273
|
+
} catch (_0x44518d) {
|
|
2274
|
+
return textResult(_0x44518d instanceof Error ? _0x44518d[_0x450941(0x196)] : _0x450941(_0x2a1e70._0x31af4c), !![]);
|
|
2257
2275
|
}
|
|
2258
|
-
}),
|
|
2259
|
-
const
|
|
2276
|
+
}), _0x5391b9['tool'](_0x1bea5f(0x1f8), _0x1bea5f(0x13e), { 'work_key': _0xb4e087[_0x1bea5f(0x1cb)]() }, async _0x5bf9e6 => {
|
|
2277
|
+
const _0x14cd5b = _0x1bea5f;
|
|
2260
2278
|
try {
|
|
2261
|
-
return textResult(await
|
|
2262
|
-
} catch (
|
|
2263
|
-
return textResult(
|
|
2279
|
+
return textResult(await _0x1364a7[_0x14cd5b(0x1f8)](_0x5bf9e6));
|
|
2280
|
+
} catch (_0x2d66a4) {
|
|
2281
|
+
return textResult(_0x2d66a4 instanceof Error ? _0x2d66a4[_0x14cd5b(_0x124aba._0x26cc7d)] : 'park_worker\x20failed', !![]);
|
|
2264
2282
|
}
|
|
2265
|
-
}),
|
|
2266
|
-
'work_key':
|
|
2267
|
-
'reason':
|
|
2268
|
-
}, async
|
|
2269
|
-
const
|
|
2283
|
+
}), _0x5391b9[_0x1bea5f(0x22d)]('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.', {
|
|
2284
|
+
'work_key': _0xb4e087[_0x1bea5f(0x1cb)](),
|
|
2285
|
+
'reason': _0xb4e087['string']()
|
|
2286
|
+
}, async _0x23cfa4 => {
|
|
2287
|
+
const _0x544666 = _0x1bea5f;
|
|
2270
2288
|
try {
|
|
2271
|
-
return textResult(await
|
|
2272
|
-
} catch (
|
|
2273
|
-
return textResult(
|
|
2289
|
+
return textResult(await _0x1364a7[_0x544666(_0x102ace._0x2887a7)](_0x23cfa4));
|
|
2290
|
+
} catch (_0x531e28) {
|
|
2291
|
+
return textResult(_0x531e28 instanceof Error ? _0x531e28['message'] : _0x544666(0x1d6), !![]);
|
|
2274
2292
|
}
|
|
2275
|
-
}),
|
|
2276
|
-
const
|
|
2293
|
+
}), _0x560ea8?.[_0x1bea5f(0x14a)] && _0x5391b9['tool'](_0x1bea5f(0x1a1), _0x1bea5f(0x221), { 'work_key': _0xb4e087[_0x1bea5f(_0x575365._0x4496ce)]() }, async _0x59df14 => {
|
|
2294
|
+
const _0x124f78 = _0x1bea5f;
|
|
2277
2295
|
try {
|
|
2278
|
-
return textResult(await
|
|
2279
|
-
} catch (
|
|
2280
|
-
return textResult(
|
|
2296
|
+
return textResult(await _0x1364a7[_0x124f78(_0x5d2d80._0x290399)](_0x59df14));
|
|
2297
|
+
} catch (_0x17cadb) {
|
|
2298
|
+
return textResult(_0x17cadb instanceof Error ? _0x17cadb[_0x124f78(_0x5d2d80._0x2f901b)] : 'mark_waiting_input\x20failed', !![]);
|
|
2281
2299
|
}
|
|
2282
2300
|
});
|
|
2283
2301
|
}
|
|
2284
|
-
async function createChatBridgeServer(
|
|
2285
|
-
const
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
},
|
|
2290
|
-
'name':
|
|
2291
|
-
'version':
|
|
2292
|
-
}),
|
|
2293
|
-
return await registerChatBridgeTools(
|
|
2294
|
-
'handlers':
|
|
2295
|
-
'server':
|
|
2302
|
+
async function createChatBridgeServer(_0x531467) {
|
|
2303
|
+
const _0xb3e166 = {
|
|
2304
|
+
_0x407e7e: 0x209,
|
|
2305
|
+
_0x34a73e: 0x199,
|
|
2306
|
+
_0x20b861: 0x14a
|
|
2307
|
+
}, _0x18eac7 = _0x77ce4b, {McpServer: _0xa6f356} = await import(_0x18eac7(_0xb3e166._0x407e7e)), _0x59b300 = new _0xa6f356({
|
|
2308
|
+
'name': _0x18eac7(0x151),
|
|
2309
|
+
'version': _0x18eac7(_0xb3e166._0x34a73e)
|
|
2310
|
+
}), _0x5d1cf1 = createChatBridgeHandlers(_0x531467);
|
|
2311
|
+
return await registerChatBridgeTools(_0x59b300, _0x5d1cf1, { 'workerMode': _0x531467[_0x18eac7(_0xb3e166._0x20b861)] }), {
|
|
2312
|
+
'handlers': _0x5d1cf1,
|
|
2313
|
+
'server': _0x59b300
|
|
2296
2314
|
};
|
|
2297
2315
|
}
|
|
2298
|
-
function readFlag(
|
|
2299
|
-
const
|
|
2300
|
-
if (
|
|
2316
|
+
function readFlag(_0x13c405, _0x1764df) {
|
|
2317
|
+
const _0x3dbcbf = { _0x4f75c4: 0x20f }, _0xff98b4 = _0x77ce4b, _0x12cdbd = _0x13c405[_0xff98b4(_0x3dbcbf._0x4f75c4)](_0x1764df);
|
|
2318
|
+
if (_0x12cdbd === -0x1)
|
|
2301
2319
|
return void 0x0;
|
|
2302
|
-
return
|
|
2320
|
+
return _0x13c405[_0x12cdbd + 0x1];
|
|
2303
2321
|
}
|
|
2304
|
-
function parseChatBridgeArgs(
|
|
2305
|
-
const
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
if (
|
|
2316
|
-
throw new Error(
|
|
2322
|
+
function parseChatBridgeArgs(_0x227136) {
|
|
2323
|
+
const _0x2ee99d = {
|
|
2324
|
+
_0x2dbace: 0x17d,
|
|
2325
|
+
_0x5d9175: 0x153,
|
|
2326
|
+
_0x33d4c6: 0xd4,
|
|
2327
|
+
_0x30cf09: 0x1e4,
|
|
2328
|
+
_0x46db3c: 0x13a,
|
|
2329
|
+
_0x47492e: 0x1fa,
|
|
2330
|
+
_0x41aada: 0xea,
|
|
2331
|
+
_0x1db49e: 0x22f
|
|
2332
|
+
}, _0x5b9163 = _0x77ce4b, _0x3e2ca2 = readFlag(_0x227136, '--agent-id'), _0xe15f1 = readFlag(_0x227136, _0x5b9163(0x1a6)), _0x94494e = readFlag(_0x227136, '--daemon-api-key'), _0x3409f2 = readFlag(_0x227136, _0x5b9163(0x20b)), _0x180fcc = readFlag(_0x227136, _0x5b9163(0x174)) ?? _0x5b9163(_0x2ee99d._0x2dbace), _0x3aca88 = readFlag(_0x227136, _0x5b9163(_0x2ee99d._0x5d9175)), _0x2c01fb = readFlag(_0x227136, _0x5b9163(_0x2ee99d._0x33d4c6)), _0x2ee61d = readFlag(_0x227136, _0x5b9163(_0x2ee99d._0x30cf09)), _0x14ae21 = readFlag(_0x227136, _0x5b9163(_0x2ee99d._0x46db3c)), _0x518d20 = readFlag(_0x227136, _0x5b9163(0xfb)), _0x5632dd = _0x227136[_0x5b9163(0x1fb)](_0x5b9163(_0x2ee99d._0x47492e)), _0xb46e9 = _0x3409f2 === void 0x0 ? void 0x0 : Number['parseInt'](_0x3409f2, 0xa);
|
|
2333
|
+
if (!_0x3e2ca2)
|
|
2334
|
+
throw new Error('Missing\x20--agent-id');
|
|
2335
|
+
if (!_0x94494e)
|
|
2336
|
+
throw new Error(_0x5b9163(_0x2ee99d._0x41aada));
|
|
2337
|
+
if (_0x3409f2 !== void 0x0 && (_0xb46e9 === void 0x0 || !Number['isFinite'](_0xb46e9) || _0xb46e9 < 0x0))
|
|
2338
|
+
throw new Error(_0x5b9163(_0x2ee99d._0x1db49e));
|
|
2317
2339
|
return {
|
|
2318
|
-
'agentId':
|
|
2319
|
-
'attachmentCacheDir':
|
|
2320
|
-
'daemonApiKey':
|
|
2321
|
-
'daemonLocalUrl':
|
|
2322
|
-
'initialLastSeenSeq':
|
|
2323
|
-
'sessionId':
|
|
2324
|
-
'serverUrl':
|
|
2325
|
-
'workerModeEnabled':
|
|
2326
|
-
'workerSessionId':
|
|
2327
|
-
'workerThreadTarget':
|
|
2328
|
-
'workerMode':
|
|
2340
|
+
'agentId': _0x3e2ca2,
|
|
2341
|
+
'attachmentCacheDir': _0xe15f1,
|
|
2342
|
+
'daemonApiKey': _0x94494e,
|
|
2343
|
+
'daemonLocalUrl': _0x3aca88,
|
|
2344
|
+
'initialLastSeenSeq': _0xb46e9,
|
|
2345
|
+
'sessionId': _0x2c01fb,
|
|
2346
|
+
'serverUrl': _0x180fcc,
|
|
2347
|
+
'workerModeEnabled': _0x2ee61d === void 0x0 ? void 0x0 : _0x2ee61d !== _0x5b9163(0xd6),
|
|
2348
|
+
'workerSessionId': _0x14ae21,
|
|
2349
|
+
'workerThreadTarget': _0x518d20,
|
|
2350
|
+
'workerMode': _0x5632dd
|
|
2329
2351
|
};
|
|
2330
2352
|
}
|
|
2331
|
-
async function runChatBridgeCli(
|
|
2332
|
-
const
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
'
|
|
2339
|
-
'
|
|
2340
|
-
'
|
|
2353
|
+
async function runChatBridgeCli(_0x51d944) {
|
|
2354
|
+
const _0x1110cf = {
|
|
2355
|
+
_0x29f346: 0x211,
|
|
2356
|
+
_0x20b292: 0x14a,
|
|
2357
|
+
_0x3a1d36: 0x200,
|
|
2358
|
+
_0x2aa1de: 0x1c5
|
|
2359
|
+
}, _0x13711d = _0x77ce4b, _0x5e4bfd = parseChatBridgeArgs(_0x51d944), {StdioServerTransport: _0x18dd92} = await import(_0x13711d(0x105)), _0x1a7c9a = createInternalAgentClient(_0x5e4bfd), _0x2c3e21 = createAttachmentCache({ 'cacheDir': _0x5e4bfd['attachmentCacheDir'] }), _0x2c9a9c = await createChatBridgeServer({
|
|
2360
|
+
'agentId': _0x5e4bfd['agentId'],
|
|
2361
|
+
'attachmentCache': _0x2c3e21,
|
|
2362
|
+
'client': _0x1a7c9a,
|
|
2363
|
+
'daemonLocalUrl': _0x5e4bfd['daemonLocalUrl'],
|
|
2341
2364
|
'uploadPreparer': prepareUploadFile,
|
|
2342
|
-
'workerModeEnabled':
|
|
2343
|
-
'workerMode':
|
|
2344
|
-
'workerThreadTarget':
|
|
2365
|
+
'workerModeEnabled': _0x5e4bfd[_0x13711d(_0x1110cf._0x29f346)],
|
|
2366
|
+
'workerMode': _0x5e4bfd[_0x13711d(_0x1110cf._0x20b292)],
|
|
2367
|
+
'workerThreadTarget': _0x5e4bfd['workerThreadTarget']
|
|
2345
2368
|
});
|
|
2346
|
-
await
|
|
2369
|
+
await _0x2c9a9c[_0x13711d(_0x1110cf._0x3a1d36)][_0x13711d(_0x1110cf._0x2aa1de)](new _0x18dd92());
|
|
2347
2370
|
}
|
|
2348
|
-
var executedAsEntry = process[
|
|
2349
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2371
|
+
var executedAsEntry = process[_0x77ce4b(0x237)][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])['href'] : ![];
|
|
2372
|
+
executedAsEntry && await runChatBridgeCli(process[_0x77ce4b(0x237)][_0x77ce4b(0x23d)](0x2));
|
|
2350
2373
|
export {
|
|
2351
2374
|
createChatBridgeHandlers,
|
|
2352
2375
|
createChatBridgeServer,
|