@dscord/daemon 0.1.89 → 0.1.91

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.
@@ -1,23 +1,25 @@
1
- const _0x5e089b = _0x28d5;
2
- (function (_0x46050b, _0x112ec5) {
3
- const _0x37ac56 = {
4
- _0x29f8f4: 0x24d,
5
- _0x1bf670: 0x338,
6
- _0x132e3a: 0x282,
7
- _0x47be30: 0x311
8
- }, _0x159067 = _0x28d5, _0x241b6f = _0x46050b();
1
+ const _0x42226e = _0x3c9f;
2
+ (function (_0x4bd9e7, _0x445972) {
3
+ const _0x1eeef6 = {
4
+ _0x537880: 0x249,
5
+ _0x153268: 0x239,
6
+ _0x8b8896: 0x237,
7
+ _0x1453b5: 0x1a9,
8
+ _0x15f3c7: 0x102,
9
+ _0xd767fe: 0x1b5
10
+ }, _0x39ca2b = _0x3c9f, _0xc9ced8 = _0x4bd9e7();
9
11
  while (!![]) {
10
12
  try {
11
- const _0x4fd4b0 = parseInt(_0x159067(_0x37ac56._0x29f8f4)) / 0x1 * (parseInt(_0x159067(0x273)) / 0x2) + -parseInt(_0x159067(_0x37ac56._0x1bf670)) / 0x3 + -parseInt(_0x159067(_0x37ac56._0x132e3a)) / 0x4 * (-parseInt(_0x159067(0x21c)) / 0x5) + parseInt(_0x159067(0x276)) / 0x6 * (-parseInt(_0x159067(0x2a0)) / 0x7) + parseInt(_0x159067(0x358)) / 0x8 + -parseInt(_0x159067(_0x37ac56._0x47be30)) / 0x9 + -parseInt(_0x159067(0x2a1)) / 0xa;
12
- if (_0x4fd4b0 === _0x112ec5)
13
+ const _0x1f9b48 = parseInt(_0x39ca2b(_0x1eeef6._0x537880)) / 0x1 * (-parseInt(_0x39ca2b(_0x1eeef6._0x153268)) / 0x2) + -parseInt(_0x39ca2b(0x1b7)) / 0x3 + -parseInt(_0x39ca2b(_0x1eeef6._0x8b8896)) / 0x4 + -parseInt(_0x39ca2b(_0x1eeef6._0x1453b5)) / 0x5 * (parseInt(_0x39ca2b(_0x1eeef6._0x15f3c7)) / 0x6) + parseInt(_0x39ca2b(_0x1eeef6._0xd767fe)) / 0x7 + -parseInt(_0x39ca2b(0x163)) / 0x8 + parseInt(_0x39ca2b(0x1e4)) / 0x9;
14
+ if (_0x1f9b48 === _0x445972)
13
15
  break;
14
16
  else
15
- _0x241b6f['push'](_0x241b6f['shift']());
16
- } catch (_0x2bd0a4) {
17
- _0x241b6f['push'](_0x241b6f['shift']());
17
+ _0xc9ced8['push'](_0xc9ced8['shift']());
18
+ } catch (_0x3d9906) {
19
+ _0xc9ced8['push'](_0xc9ced8['shift']());
18
20
  }
19
21
  }
20
- }(_0x3a73, 0x80152));
22
+ }(_0x1d81, 0x26d49));
21
23
  import { pathToFileURL } from 'node:url';
22
24
  import {
23
25
  mkdir,
@@ -27,88 +29,74 @@ import {
27
29
  writeFile
28
30
  } from 'node:fs/promises';
29
31
  import { homedir } from 'node:os';
30
- import _0x444fc4 from 'node:path';
32
+ import _0x176603 from 'node:path';
31
33
  var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
32
- '.csv': _0x5e089b(0x2fb),
33
- '.gif': _0x5e089b(0x309),
34
- '.jpeg': _0x5e089b(0x359),
35
- '.jpg': 'image/jpeg',
34
+ '.csv': _0x42226e(0x1cb),
35
+ '.gif': _0x42226e(0x246),
36
+ '.jpeg': _0x42226e(0x273),
37
+ '.jpg': _0x42226e(0x273),
36
38
  '.json': 'application/json',
37
- '.md': _0x5e089b(0x354),
38
- '.pdf': _0x5e089b(0x1e5),
39
- '.png': _0x5e089b(0x2f4),
40
- '.svg': 'image/svg+xml',
41
- '.txt': _0x5e089b(0x200),
42
- '.webp': _0x5e089b(0x29b),
43
- '.xml': 'application/xml',
44
- '.zip': _0x5e089b(0x2ee)
39
+ '.md': _0x42226e(0x11d),
40
+ '.pdf': _0x42226e(0x259),
41
+ '.png': _0x42226e(0x119),
42
+ '.svg': _0x42226e(0x177),
43
+ '.txt': 'text/plain',
44
+ '.webp': _0x42226e(0x1c5),
45
+ '.xml': _0x42226e(0x27a),
46
+ '.zip': _0x42226e(0x26f)
45
47
  };
46
- function guessContentType(_0x1b98f9) {
47
- const _0xb1cbf2 = {
48
- _0x3b3dcd: 0x360,
49
- _0x7d6768: 0x2b5,
50
- _0x4b92b0: 0x2a8
51
- }, _0x1b43be = _0x5e089b;
52
- return MIME_BY_EXTENSION[_0x444fc4[_0x1b43be(_0xb1cbf2._0x3b3dcd)](_0x1b98f9)[_0x1b43be(_0xb1cbf2._0x7d6768)]()] ?? _0x1b43be(_0xb1cbf2._0x4b92b0);
48
+ function guessContentType(_0x40984d) {
49
+ const _0x2a97d2 = { _0x21ee3e: 0xff }, _0x4ed3a2 = _0x42226e;
50
+ return MIME_BY_EXTENSION[_0x176603[_0x4ed3a2(0x227)](_0x40984d)['toLowerCase']()] ?? _0x4ed3a2(_0x2a97d2._0x21ee3e);
53
51
  }
54
- function safeFilename(_0x42f0a5) {
55
- return _0x42f0a5['replace'](/[\\/]/g, '-');
52
+ function safeFilename(_0x2bae97) {
53
+ const _0x4782d0 = { _0x5aeff4: 0x233 }, _0x236f15 = _0x42226e;
54
+ return _0x2bae97[_0x236f15(_0x4782d0._0x5aeff4)](/[\\/]/g, '-');
56
55
  }
57
- function extensionFor(_0x332c70) {
58
- const _0x5a9dd3 = {
59
- _0xa1f60e: 0x36c,
60
- _0x13b7a4: 0x2db
61
- }, _0x2f24fb = _0x5e089b, _0x225de9 = Object[_0x2f24fb(_0x5a9dd3._0xa1f60e)](MIME_BY_EXTENSION)[_0x2f24fb(_0x5a9dd3._0x13b7a4)](([, _0x1ab562]) => _0x1ab562 === _0x332c70);
62
- return _0x225de9?.[0x0] ?? '.bin';
56
+ function extensionFor(_0x54911d) {
57
+ const _0xb61329 = { _0x3341c9: 0x219 }, _0x1fd61e = _0x42226e, _0x3a006c = Object['entries'](MIME_BY_EXTENSION)[_0x1fd61e(_0xb61329._0x3341c9)](([, _0x1f36b6]) => _0x1f36b6 === _0x54911d);
58
+ return _0x3a006c?.[0x0] ?? _0x1fd61e(0x24c);
63
59
  }
64
- async function prepareUploadFile(_0x42ad13, _0x4c9eae = {}) {
65
- const _0x300c4e = {
66
- _0x194c26: 0x2e9,
67
- _0x48f68d: 0x31d
68
- }, _0x3ed2f2 = _0x5e089b;
69
- if (!_0x444fc4[_0x3ed2f2(0x289)](_0x42ad13))
70
- throw new Error(_0x3ed2f2(_0x300c4e._0x194c26));
71
- const _0x3d14af = await stat(_0x42ad13)['catch'](() => null);
72
- if (!_0x3d14af || !_0x3d14af[_0x3ed2f2(0x256)]())
73
- throw new Error(_0x3ed2f2(0x271) + _0x42ad13);
74
- const _0x76d734 = _0x4c9eae[_0x3ed2f2(0x35f)] ?? DEFAULT_MAX_FILE_SIZE;
75
- if (_0x3d14af[_0x3ed2f2(_0x300c4e._0x48f68d)] > _0x76d734)
76
- throw new Error(_0x3ed2f2(0x325) + _0x3d14af[_0x3ed2f2(0x31d)]);
77
- const _0x508d04 = await readFile(_0x42ad13), _0x2257d2 = _0x444fc4['basename'](_0x42ad13);
60
+ async function prepareUploadFile(_0x346161, _0x1f8137 = {}) {
61
+ const _0x261d33 = {
62
+ _0x2ed001: 0x1a2,
63
+ _0x4f0bd6: 0x18d,
64
+ _0x358e8d: 0x1b3
65
+ }, _0x29ea35 = _0x42226e;
66
+ if (!_0x176603['isAbsolute'](_0x346161))
67
+ throw new Error(_0x29ea35(0x25b));
68
+ const _0xbeee35 = await stat(_0x346161)[_0x29ea35(0x12d)](() => null);
69
+ if (!_0xbeee35 || !_0xbeee35[_0x29ea35(0x25c)]())
70
+ throw new Error(_0x29ea35(0x253) + _0x346161);
71
+ const _0xe67709 = _0x1f8137['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
72
+ if (_0xbeee35[_0x29ea35(0x1a2)] > _0xe67709)
73
+ throw new Error(_0x29ea35(0x100) + _0xbeee35[_0x29ea35(_0x261d33._0x2ed001)]);
74
+ const _0x53dff1 = await readFile(_0x346161), _0xaa1149 = _0x176603[_0x29ea35(0x240)](_0x346161);
78
75
  return {
79
- 'contentBase64': _0x508d04[_0x3ed2f2(0x265)]('base64'),
80
- 'contentType': guessContentType(_0x2257d2),
81
- 'filename': _0x2257d2,
82
- 'sizeBytes': _0x3d14af[_0x3ed2f2(0x31d)]
76
+ 'contentBase64': _0x53dff1[_0x29ea35(_0x261d33._0x4f0bd6)](_0x29ea35(_0x261d33._0x358e8d)),
77
+ 'contentType': guessContentType(_0xaa1149),
78
+ 'filename': _0xaa1149,
79
+ 'sizeBytes': _0xbeee35[_0x29ea35(_0x261d33._0x2ed001)]
83
80
  };
84
81
  }
85
- function createAttachmentCache(_0xcb5cf1 = {}) {
86
- const _0x1cad98 = {
87
- _0x517936: 0x2e3,
88
- _0x390929: 0x238
89
- }, _0x5b9cdb = {
90
- _0xb7192e: 0x20e,
91
- _0x430431: 0x33f,
92
- _0x58b6e0: 0x24c,
93
- _0x12ecb9: 0x2e3,
94
- _0x51ab92: 0x2f1
95
- }, _0x39d9dd = {
96
- _0x1612cc: 0x2db,
97
- _0x1e4c17: 0x2e3
98
- }, _0x1df9a7 = _0x5e089b, _0x5bca40 = _0xcb5cf1['cacheDir'] ?? _0x444fc4[_0x1df9a7(_0x1cad98._0x517936)](homedir(), _0x1df9a7(_0x1cad98._0x390929), _0x1df9a7(0x31e));
82
+ function createAttachmentCache(_0x46100e = {}) {
83
+ const _0xcf5a7b = {
84
+ _0x5927e7: 0x27f,
85
+ _0xa5185a: 0x15b
86
+ }, _0x3a7b47 = { _0x3a744a: 0x27f }, _0x2b4aa3 = _0x42226e, _0x4baab1 = _0x46100e[_0x2b4aa3(0x1a1)] ?? _0x176603[_0x2b4aa3(_0xcf5a7b._0x5927e7)](homedir(), _0x2b4aa3(0x226), _0x2b4aa3(_0xcf5a7b._0xa5185a));
99
87
  return {
100
- 'cacheDir': _0x5bca40,
101
- async 'findCachedPath'(_0x17cc71) {
102
- const _0x15374c = _0x1df9a7;
103
- await mkdir(_0x5bca40, { 'recursive': !![] });
104
- const _0x4fb260 = await readdir(_0x5bca40), _0x431fcc = _0x4fb260[_0x15374c(_0x39d9dd._0x1612cc)](_0x1c4d53 => _0x1c4d53[_0x15374c(0x31a)](_0x17cc71 + '-') || _0x1c4d53['startsWith'](_0x17cc71));
105
- return _0x431fcc ? _0x444fc4[_0x15374c(_0x39d9dd._0x1e4c17)](_0x5bca40, _0x431fcc) : null;
88
+ 'cacheDir': _0x4baab1,
89
+ async 'findCachedPath'(_0x4454c6) {
90
+ const _0x3037fe = _0x2b4aa3;
91
+ await mkdir(_0x4baab1, { 'recursive': !![] });
92
+ const _0xc18792 = await readdir(_0x4baab1), _0x2c88ae = _0xc18792['find'](_0x3a6bd1 => _0x3a6bd1[_0x3037fe(0x134)](_0x4454c6 + '-') || _0x3a6bd1[_0x3037fe(0x134)](_0x4454c6));
93
+ return _0x2c88ae ? _0x176603[_0x3037fe(_0x3a7b47._0x3a744a)](_0x4baab1, _0x2c88ae) : null;
106
94
  },
107
- async 'save'(_0x452322) {
108
- const _0x3410ac = _0x1df9a7;
109
- await mkdir(_0x5bca40, { 'recursive': !![] });
110
- const _0x165daf = _0x452322['originalFilename']?.[_0x3410ac(_0x5b9cdb._0xb7192e)]() ? safeFilename(_0x452322[_0x3410ac(_0x5b9cdb._0x430431)]) : '' + _0x452322[_0x3410ac(0x2f1)] + extensionFor(_0x452322[_0x3410ac(_0x5b9cdb._0x58b6e0)]), _0x3767ab = _0x444fc4[_0x3410ac(_0x5b9cdb._0x12ecb9)](_0x5bca40, _0x452322[_0x3410ac(_0x5b9cdb._0x51ab92)] + '-' + _0x165daf);
111
- return await writeFile(_0x3767ab, _0x452322['data']), _0x3767ab;
95
+ async 'save'(_0x575515) {
96
+ const _0xbd062f = _0x2b4aa3;
97
+ await mkdir(_0x4baab1, { 'recursive': !![] });
98
+ const _0x782434 = _0x575515[_0xbd062f(0x1b8)]?.['trim']() ? safeFilename(_0x575515[_0xbd062f(0x1b8)]) : '' + _0x575515[_0xbd062f(0x21b)] + extensionFor(_0x575515[_0xbd062f(0x138)]), _0x4263f3 = _0x176603[_0xbd062f(0x27f)](_0x4baab1, _0x575515[_0xbd062f(0x21b)] + '-' + _0x782434);
99
+ return await writeFile(_0x4263f3, _0x575515[_0xbd062f(0x1c7)]), _0x4263f3;
112
100
  }
113
101
  };
114
102
  }
@@ -116,2311 +104,2498 @@ import {
116
104
  createHash,
117
105
  randomUUID
118
106
  } from 'node:crypto';
119
- var UNSUPPORTED_TARGET_MESSAGE = _0x5e089b(0x216);
120
- function ensureSegment(_0x3120ed) {
121
- const _0x293dbd = { _0x237204: 0x36b }, _0xafd924 = _0x5e089b, _0x4449cd = _0x3120ed['trim']();
122
- if (!_0x4449cd || _0x4449cd[_0xafd924(_0x293dbd._0x237204)](':'))
107
+ var UNSUPPORTED_TARGET_MESSAGE = _0x42226e(0x106);
108
+ function ensureSegment(_0x134cac) {
109
+ const _0x138091 = { _0x4c3ad1: 0x165 }, _0x352183 = _0x42226e, _0x301457 = _0x134cac['trim']();
110
+ if (!_0x301457 || _0x301457[_0x352183(_0x138091._0x4c3ad1)](':'))
123
111
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
124
- return _0x4449cd;
112
+ return _0x301457;
125
113
  }
126
- function parseThreadParts(_0x325a26) {
127
- const _0x5aa3cb = { _0x24ea71: 0x2e8 }, _0x2fdd82 = _0x5e089b, _0x4373cd = _0x325a26[_0x2fdd82(_0x5aa3cb._0x24ea71)](':');
128
- if (_0x4373cd[_0x2fdd82(0x253)] < 0x1 || _0x4373cd[_0x2fdd82(0x253)] > 0x2)
114
+ function parseThreadParts(_0x3438c6) {
115
+ const _0x54076d = {
116
+ _0x374304: 0x27d,
117
+ _0x4ec280: 0x1d9
118
+ }, _0x4bed94 = _0x42226e, _0x41e2f4 = _0x3438c6[_0x4bed94(_0x54076d._0x374304)](':');
119
+ if (_0x41e2f4[_0x4bed94(_0x54076d._0x4ec280)] < 0x1 || _0x41e2f4[_0x4bed94(_0x54076d._0x4ec280)] > 0x2)
129
120
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
130
121
  return {
131
- 'channelName': ensureSegment(_0x4373cd[0x0] ?? ''),
132
- 'threadShortId': _0x4373cd[0x1] ? ensureSegment(_0x4373cd[0x1]) : null
122
+ 'channelName': ensureSegment(_0x41e2f4[0x0] ?? ''),
123
+ 'threadShortId': _0x41e2f4[0x1] ? ensureSegment(_0x41e2f4[0x1]) : null
133
124
  };
134
125
  }
135
- function parseTarget(_0x447679) {
136
- const _0x3e9791 = {
137
- _0x40fbef: 0x20e,
138
- _0x4ba329: 0x29a,
139
- _0x306f6a: 0x31a,
140
- _0x54ffa5: 0x2a4,
141
- _0x494dc8: 0x31c
142
- }, _0x4d3686 = _0x5e089b, _0x130f6e = _0x447679[_0x4d3686(_0x3e9791._0x40fbef)]();
143
- if (!_0x130f6e)
126
+ function parseTarget(_0x466b71) {
127
+ const _0x235c5d = {
128
+ _0x5049a5: 0x244,
129
+ _0x2a9ea4: 0x152,
130
+ _0x4fa51a: 0x103,
131
+ _0x1f23ef: 0x182,
132
+ _0x8cc872: 0x244,
133
+ _0x58e9dd: 0x247,
134
+ _0xb07789: 0x182,
135
+ _0x2d0356: 0x196,
136
+ _0x32c87f: 0x152
137
+ }, _0x1e8a29 = _0x42226e, _0x4af3f7 = _0x466b71['trim']();
138
+ if (!_0x4af3f7)
144
139
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
145
- if (_0x130f6e[_0x4d3686(0x31a)]('#')) {
146
- const _0x77ce7d = parseThreadParts(_0x130f6e['slice'](0x1)), _0x114049 = '#' + _0x77ce7d[_0x4d3686(0x31c)];
147
- if (!_0x77ce7d[_0x4d3686(_0x3e9791._0x4ba329)])
140
+ if (_0x4af3f7[_0x1e8a29(0x134)]('#')) {
141
+ const _0x462b95 = parseThreadParts(_0x4af3f7[_0x1e8a29(_0x235c5d._0x5049a5)](0x1)), _0x333a30 = '#' + _0x462b95['channelName'];
142
+ if (!_0x462b95[_0x1e8a29(_0x235c5d._0x2a9ea4)])
148
143
  return {
149
- 'channelName': _0x77ce7d[_0x4d3686(0x31c)],
150
- 'channelTarget': _0x114049,
151
- 'kind': _0x4d3686(0x302),
152
- 'target': _0x114049
144
+ 'channelName': _0x462b95['channelName'],
145
+ 'channelTarget': _0x333a30,
146
+ 'kind': 'channel',
147
+ 'target': _0x333a30
153
148
  };
154
149
  return {
155
- 'channelName': _0x77ce7d[_0x4d3686(0x31c)],
156
- 'channelTarget': _0x114049,
150
+ 'channelName': _0x462b95[_0x1e8a29(_0x235c5d._0x4fa51a)],
151
+ 'channelTarget': _0x333a30,
157
152
  'kind': 'thread',
158
- 'target': _0x114049 + ':' + _0x77ce7d['threadShortId'],
159
- 'threadShortId': _0x77ce7d['threadShortId']
153
+ 'target': _0x333a30 + ':' + _0x462b95[_0x1e8a29(0x152)],
154
+ 'threadShortId': _0x462b95[_0x1e8a29(0x152)]
160
155
  };
161
156
  }
162
- if (_0x130f6e['startsWith'](_0x4d3686(0x2a4))) {
163
- const _0x370494 = parseThreadParts(_0x130f6e['slice'](0x3));
164
- if (!_0x370494['channelName'][_0x4d3686(_0x3e9791._0x306f6a)](_0x4d3686(0x283)))
157
+ if (_0x4af3f7['startsWith'](_0x1e8a29(_0x235c5d._0x1f23ef))) {
158
+ const _0x5e1a19 = parseThreadParts(_0x4af3f7[_0x1e8a29(_0x235c5d._0x8cc872)](0x3));
159
+ if (!_0x5e1a19[_0x1e8a29(0x103)]['startsWith'](_0x1e8a29(_0x235c5d._0x58e9dd)))
165
160
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
166
- const _0xf7e7a8 = _0x4d3686(_0x3e9791._0x54ffa5) + _0x370494['channelName'];
167
- if (!_0x370494[_0x4d3686(0x29a)])
161
+ const _0x1b7cca = _0x1e8a29(_0x235c5d._0xb07789) + _0x5e1a19[_0x1e8a29(0x103)];
162
+ if (!_0x5e1a19[_0x1e8a29(0x152)])
168
163
  return {
169
- 'channelName': _0x370494[_0x4d3686(0x31c)],
170
- 'channelTarget': _0xf7e7a8,
171
- 'kind': 'channel',
172
- 'target': _0xf7e7a8
164
+ 'channelName': _0x5e1a19[_0x1e8a29(0x103)],
165
+ 'channelTarget': _0x1b7cca,
166
+ 'kind': _0x1e8a29(_0x235c5d._0x2d0356),
167
+ 'target': _0x1b7cca
173
168
  };
174
169
  return {
175
- 'channelName': _0x370494[_0x4d3686(_0x3e9791._0x494dc8)],
176
- 'channelTarget': _0xf7e7a8,
177
- 'kind': 'thread',
178
- 'target': _0xf7e7a8 + ':' + _0x370494[_0x4d3686(0x29a)],
179
- 'threadShortId': _0x370494['threadShortId']
170
+ 'channelName': _0x5e1a19[_0x1e8a29(0x103)],
171
+ 'channelTarget': _0x1b7cca,
172
+ 'kind': _0x1e8a29(0x231),
173
+ 'target': _0x1b7cca + ':' + _0x5e1a19[_0x1e8a29(_0x235c5d._0x2a9ea4)],
174
+ 'threadShortId': _0x5e1a19[_0x1e8a29(_0x235c5d._0x32c87f)]
180
175
  };
181
176
  }
182
177
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
183
178
  }
184
- function asErrorMessage(_0x877674, _0x5954a6) {
185
- if (typeof _0x877674 === 'string' && _0x877674['trim']())
186
- return _0x877674;
187
- return _0x5954a6;
179
+ function asErrorMessage(_0x36288d, _0x180ba0) {
180
+ const _0x10d513 = { _0x4ec763: 0x210 }, _0x33ffd4 = _0x42226e;
181
+ if (typeof _0x36288d === _0x33ffd4(0x257) && _0x36288d[_0x33ffd4(_0x10d513._0x4ec763)]())
182
+ return _0x36288d;
183
+ return _0x180ba0;
188
184
  }
189
- function asRecord(_0x2a49ee) {
190
- return typeof _0x2a49ee === 'object' && _0x2a49ee !== null ? _0x2a49ee : {};
185
+ function asRecord(_0x512185) {
186
+ return typeof _0x512185 === 'object' && _0x512185 !== null ? _0x512185 : {};
191
187
  }
192
- function stableStringify(_0x30bffe) {
193
- const _0x3a107e = {
194
- _0x5b2ff3: 0x229,
195
- _0x28f35d: 0x252,
196
- _0x2e61d8: 0x36c,
197
- _0x8e9f71: 0x26c,
198
- _0x5c59a7: 0x30a,
199
- _0x27344e: 0x252
200
- }, _0x26071e = _0x5e089b;
201
- if (_0x30bffe === null || typeof _0x30bffe !== _0x26071e(0x213))
202
- return JSON[_0x26071e(_0x3a107e._0x5b2ff3)](_0x30bffe);
203
- if (Array['isArray'](_0x30bffe))
204
- return '[' + _0x30bffe[_0x26071e(_0x3a107e._0x28f35d)](_0x12dce6 => stableStringify(_0x12dce6))['join'](',') + ']';
205
- const _0x3af98e = Object[_0x26071e(_0x3a107e._0x2e61d8)](_0x30bffe)[_0x26071e(_0x3a107e._0x8e9f71)](([, _0x36a2fa]) => _0x36a2fa !== void 0x0)[_0x26071e(_0x3a107e._0x5c59a7)](([_0x311bfa], [_0x59dec0]) => _0x311bfa['localeCompare'](_0x59dec0))[_0x26071e(_0x3a107e._0x27344e)](([_0x45f06b, _0x4228ea]) => JSON[_0x26071e(0x229)](_0x45f06b) + ':' + stableStringify(_0x4228ea));
206
- return '{' + _0x3af98e['join'](',') + '}';
188
+ var WORKER_AGENT_MESSAGE_FOLD_THRESHOLD = 0x140, WORKER_AGENT_MESSAGE_FOLD_HEAD = 0x78, WORKER_AGENT_MESSAGE_FOLD_TAIL = 0x50;
189
+ function stableStringify(_0x2bbc8c) {
190
+ const _0x506a5a = {
191
+ _0xb8df26: 0x229,
192
+ _0x3352b0: 0x27f,
193
+ _0x436a04: 0x28c,
194
+ _0x47e44a: 0x230,
195
+ _0x1da83b: 0x24b,
196
+ _0x28afbd: 0x27f
197
+ }, _0x4fb6a2 = _0x42226e;
198
+ if (_0x2bbc8c === null || typeof _0x2bbc8c !== _0x4fb6a2(_0x506a5a._0xb8df26))
199
+ return JSON['stringify'](_0x2bbc8c);
200
+ if (Array['isArray'](_0x2bbc8c))
201
+ return '[' + _0x2bbc8c[_0x4fb6a2(0x24b)](_0x197dae => stableStringify(_0x197dae))[_0x4fb6a2(_0x506a5a._0x3352b0)](',') + ']';
202
+ const _0x546a1e = Object[_0x4fb6a2(_0x506a5a._0x436a04)](_0x2bbc8c)[_0x4fb6a2(_0x506a5a._0x47e44a)](([, _0x195c75]) => _0x195c75 !== void 0x0)[_0x4fb6a2(0x16d)](([_0x2d1a98], [_0x505442]) => _0x2d1a98['localeCompare'](_0x505442))[_0x4fb6a2(_0x506a5a._0x1da83b)](([_0x538afc, _0x456011]) => JSON[_0x4fb6a2(0xf8)](_0x538afc) + ':' + stableStringify(_0x456011));
203
+ return '{' + _0x546a1e[_0x4fb6a2(_0x506a5a._0x28afbd)](',') + '}';
207
204
  }
208
- function createHeaders(_0xc42821) {
209
- const _0x484264 = _0x5e089b;
205
+ function createHeaders(_0x100914) {
206
+ const _0x19574e = _0x42226e;
210
207
  return {
211
- 'Content-Type': _0x484264(0x239),
212
- 'x-daemon-api-key': _0xc42821
208
+ 'Content-Type': _0x19574e(0x19c),
209
+ 'x-daemon-api-key': _0x100914
213
210
  };
214
211
  }
215
- function toHttpBaseUrl(_0x1d62ab) {
216
- const _0x493ac6 = {
217
- _0xff5118: 0x2a9,
218
- _0x4e6adc: 0x33c,
219
- _0x1eeeca: 0x33c,
220
- _0x7cb578: 0x25f,
221
- _0x43837b: 0x279,
222
- _0x319d0e: 0x2b9
223
- }, _0x45694e = _0x5e089b, _0x1c4392 = new URL(_0x1d62ab);
224
- if (_0x1c4392[_0x45694e(0x33c)] === _0x45694e(_0x493ac6._0xff5118))
225
- _0x1c4392[_0x45694e(_0x493ac6._0x4e6adc)] = _0x45694e(0x24a);
212
+ function toHttpBaseUrl(_0x37dcf9) {
213
+ const _0x1ff3f8 = {
214
+ _0x1f726b: 0x218,
215
+ _0x7da35a: 0x1e9,
216
+ _0x43d01a: 0x20d,
217
+ _0x1bbd34: 0x178
218
+ }, _0x45fd5d = _0x42226e, _0x5682bd = new URL(_0x37dcf9);
219
+ if (_0x5682bd[_0x45fd5d(0x218)] === 'ws:')
220
+ _0x5682bd[_0x45fd5d(_0x1ff3f8._0x1f726b)] = _0x45fd5d(_0x1ff3f8._0x7da35a);
226
221
  else
227
- _0x1c4392[_0x45694e(_0x493ac6._0x1eeeca)] === _0x45694e(_0x493ac6._0x7cb578) && (_0x1c4392[_0x45694e(_0x493ac6._0x4e6adc)] = _0x45694e(_0x493ac6._0x43837b));
228
- return _0x1c4392[_0x45694e(0x265)]()[_0x45694e(_0x493ac6._0x319d0e)](/\/$/, '');
229
- }
230
- function isMentionBoundary(_0x5dd05c) {
231
- const _0x2a610f = { _0x8e20a9: 0x2af }, _0x58ca68 = _0x5e089b;
232
- return !_0x5dd05c || /\s|[([{'",。!?、:;]/[_0x58ca68(_0x2a610f._0x8e20a9)](_0x5dd05c);
222
+ _0x5682bd['protocol'] === _0x45fd5d(_0x1ff3f8._0x43d01a) && (_0x5682bd[_0x45fd5d(_0x1ff3f8._0x1f726b)] = _0x45fd5d(_0x1ff3f8._0x1bbd34));
223
+ return _0x5682bd['toString']()[_0x45fd5d(0x233)](/\/$/, '');
233
224
  }
234
- function _0x28d5(_0xc28652, _0x4c1794) {
235
- _0xc28652 = _0xc28652 - 0x1e3;
236
- const _0x3a7330 = _0x3a73();
237
- let _0x28d593 = _0x3a7330[_0xc28652];
238
- if (_0x28d5['PruuaW'] === undefined) {
239
- var _0x52cfdc = function (_0x24801f) {
240
- const _0x45a35e = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
241
- let _0x444fc4 = '', _0x1b98f9 = '';
242
- for (let _0x42f0a5 = 0x0, _0x332c70, _0x225de9, _0x1ab562 = 0x0; _0x225de9 = _0x24801f['charAt'](_0x1ab562++); ~_0x225de9 && (_0x332c70 = _0x42f0a5 % 0x4 ? _0x332c70 * 0x40 + _0x225de9 : _0x225de9, _0x42f0a5++ % 0x4) ? _0x444fc4 += String['fromCharCode'](0xff & _0x332c70 >> (-0x2 * _0x42f0a5 & 0x6)) : 0x0) {
243
- _0x225de9 = _0x45a35e['indexOf'](_0x225de9);
244
- }
245
- for (let _0x42ad13 = 0x0, _0x4c9eae = _0x444fc4['length']; _0x42ad13 < _0x4c9eae; _0x42ad13++) {
246
- _0x1b98f9 += '%' + ('00' + _0x444fc4['charCodeAt'](_0x42ad13)['toString'](0x10))['slice'](-0x2);
247
- }
248
- return decodeURIComponent(_0x1b98f9);
249
- };
250
- _0x28d5['ZUsEXQ'] = _0x52cfdc, _0x28d5['dANKrl'] = {}, _0x28d5['PruuaW'] = !![];
251
- }
252
- const _0x1abbcb = _0x3a7330[0x0], _0x226c60 = _0xc28652 + _0x1abbcb, _0x2c7bd8 = _0x28d5['dANKrl'][_0x226c60];
253
- return !_0x2c7bd8 ? (_0x28d593 = _0x28d5['ZUsEXQ'](_0x28d593), _0x28d5['dANKrl'][_0x226c60] = _0x28d593) : _0x28d593 = _0x2c7bd8, _0x28d593;
225
+ function isMentionBoundary(_0x3fd783) {
226
+ const _0x2631a6 = { _0x3ef8b1: 0x25a }, _0x473a64 = _0x42226e;
227
+ return !_0x3fd783 || /\s|[([{'",。!?、:;]/[_0x473a64(_0x2631a6._0x3ef8b1)](_0x3fd783);
254
228
  }
255
- function isMentionTerminal(_0x5b2a58) {
256
- const _0x827a1d = { _0x35c050: 0x2af }, _0x5a801b = _0x5e089b;
257
- return !_0x5b2a58 || /\s|[)\]}'",。!?、:;,.!?]/[_0x5a801b(_0x827a1d._0x35c050)](_0x5b2a58);
229
+ function isMentionTerminal(_0x2bc08e) {
230
+ const _0x3a408e = _0x42226e;
231
+ return !_0x2bc08e || /\s|[)\]}'",。!?、:;,.!?]/[_0x3a408e(0x25a)](_0x2bc08e);
258
232
  }
259
- function buildMatchableEntries(_0x2ed637) {
260
- const _0x67454c = {
261
- _0x3bd0aa: 0x320,
262
- _0x22308: 0x320,
263
- _0x419b69: 0x29e
264
- }, _0x1efb65 = _0x5e089b, _0x594a25 = [];
265
- for (const _0x30df33 of [
266
- ..._0x2ed637[_0x1efb65(0x2e4)],
267
- ..._0x2ed637[_0x1efb65(0x33d)]
233
+ function buildMatchableEntries(_0x5e25af) {
234
+ const _0x15d9ba = _0x42226e, _0x2453e2 = [];
235
+ for (const _0x3d43ea of [
236
+ ..._0x5e25af[_0x15d9ba(0x1d0)],
237
+ ..._0x5e25af['humans']
268
238
  ]) {
269
- _0x594a25[_0x1efb65(_0x67454c._0x3bd0aa)]({
270
- 'matchName': _0x30df33[_0x1efb65(0x32a)],
271
- 'matchNameLower': _0x30df33['name'][_0x1efb65(0x29e)](),
272
- 'participantId': _0x30df33['id']
273
- }), _0x30df33['id'] !== _0x30df33[_0x1efb65(0x32a)] && _0x594a25[_0x1efb65(_0x67454c._0x22308)]({
274
- 'matchName': _0x30df33['id'],
275
- 'matchNameLower': _0x30df33['id'][_0x1efb65(_0x67454c._0x419b69)](),
276
- 'participantId': _0x30df33['id']
239
+ _0x2453e2[_0x15d9ba(0x16e)]({
240
+ 'matchName': _0x3d43ea['name'],
241
+ 'matchNameLower': _0x3d43ea['name'][_0x15d9ba(0x150)](),
242
+ 'participantId': _0x3d43ea['id']
243
+ }), _0x3d43ea['id'] !== _0x3d43ea[_0x15d9ba(0x252)] && _0x2453e2['push']({
244
+ 'matchName': _0x3d43ea['id'],
245
+ 'matchNameLower': _0x3d43ea['id']['toLocaleLowerCase'](),
246
+ 'participantId': _0x3d43ea['id']
277
247
  });
278
248
  }
279
- return _0x594a25;
249
+ return _0x2453e2;
280
250
  }
281
- function extractMentionedParticipantIds(_0x140f9d, _0x3fb23d) {
282
- const _0x3d0e81 = {
283
- _0x2dcce5: 0x33a,
284
- _0x151635: 0x209,
285
- _0x3b9db3: 0x2e6,
286
- _0x140003: 0x320
287
- }, _0x5d2792 = {
288
- _0x484c52: 0x21a,
289
- _0x2c52f2: 0x253
290
- }, _0x48b99d = _0x5e089b, _0x57db41 = buildMatchableEntries(_0x3fb23d)['sort']((_0x1da5a0, _0x2aa974) => _0x2aa974[_0x48b99d(0x21a)]['length'] - _0x1da5a0[_0x48b99d(0x21a)][_0x48b99d(0x253)]), _0x5e7fe3 = [], _0xaf3e0e = new Set();
291
- for (let _0x4e33ad = 0x0; _0x4e33ad < _0x140f9d[_0x48b99d(0x253)]; _0x4e33ad += 0x1) {
292
- if (_0x140f9d[_0x4e33ad] !== '@' || !isMentionBoundary(_0x140f9d[_0x4e33ad - 0x1]))
251
+ function extractMentionedParticipantIds(_0x2a236d, _0x468b45) {
252
+ const _0x107d9c = {
253
+ _0x2398a0: 0x16d,
254
+ _0x213caf: 0x244,
255
+ _0x5efff4: 0x150,
256
+ _0x5850a5: 0x219,
257
+ _0x3096a1: 0x16e,
258
+ _0x33e066: 0x23e,
259
+ _0x24b7e0: 0x1d9
260
+ }, _0x4c1193 = {
261
+ _0x2941db: 0x134,
262
+ _0x5079e3: 0x286
263
+ }, _0x4bb0c6 = _0x42226e, _0x290242 = buildMatchableEntries(_0x468b45)[_0x4bb0c6(_0x107d9c._0x2398a0)]((_0x2b60ab, _0x56e708) => _0x56e708[_0x4bb0c6(0x286)][_0x4bb0c6(0x1d9)] - _0x2b60ab[_0x4bb0c6(0x286)][_0x4bb0c6(0x1d9)]), _0x486d14 = [], _0x4a7abd = new Set();
264
+ for (let _0x5a116f = 0x0; _0x5a116f < _0x2a236d[_0x4bb0c6(0x1d9)]; _0x5a116f += 0x1) {
265
+ if (_0x2a236d[_0x5a116f] !== '@' || !isMentionBoundary(_0x2a236d[_0x5a116f - 0x1]))
293
266
  continue;
294
- const _0x497b94 = _0x140f9d[_0x48b99d(_0x3d0e81._0x2dcce5)](_0x4e33ad + 0x1), _0x7aa519 = _0x497b94[_0x48b99d(0x29e)](), _0x8d9be7 = _0x57db41['find'](_0x488ee8 => {
295
- const _0x5837d4 = _0x48b99d;
296
- if (!_0x7aa519[_0x5837d4(0x31a)](_0x488ee8[_0x5837d4(0x340)]))
267
+ const _0x5c7aef = _0x2a236d[_0x4bb0c6(_0x107d9c._0x213caf)](_0x5a116f + 0x1), _0x596bb5 = _0x5c7aef[_0x4bb0c6(_0x107d9c._0x5efff4)](), _0x393084 = _0x290242[_0x4bb0c6(_0x107d9c._0x5850a5)](_0x5dda51 => {
268
+ const _0x4516c2 = _0x4bb0c6;
269
+ if (!_0x596bb5[_0x4516c2(_0x4c1193._0x2941db)](_0x5dda51['matchNameLower']))
297
270
  return ![];
298
- return isMentionTerminal(_0x497b94[_0x488ee8[_0x5837d4(_0x5d2792._0x484c52)][_0x5837d4(_0x5d2792._0x2c52f2)]]);
271
+ return isMentionTerminal(_0x5c7aef[_0x5dda51[_0x4516c2(_0x4c1193._0x5079e3)][_0x4516c2(0x1d9)]]);
299
272
  });
300
- if (!_0x8d9be7 || _0xaf3e0e[_0x48b99d(_0x3d0e81._0x151635)](_0x8d9be7[_0x48b99d(_0x3d0e81._0x3b9db3)]))
273
+ if (!_0x393084 || _0x4a7abd[_0x4bb0c6(0x171)](_0x393084['participantId']))
301
274
  continue;
302
- _0xaf3e0e['add'](_0x8d9be7[_0x48b99d(0x2e6)]), _0x5e7fe3[_0x48b99d(_0x3d0e81._0x140003)](_0x8d9be7['participantId']), _0x4e33ad += _0x8d9be7['matchName']['length'];
275
+ _0x4a7abd['add'](_0x393084['participantId']), _0x486d14[_0x4bb0c6(_0x107d9c._0x3096a1)](_0x393084[_0x4bb0c6(_0x107d9c._0x33e066)]), _0x5a116f += _0x393084[_0x4bb0c6(0x286)][_0x4bb0c6(_0x107d9c._0x24b7e0)];
303
276
  }
304
- return _0x5e7fe3;
277
+ return _0x486d14;
278
+ }
279
+ function isTargetedToAgent(_0x213374, _0x51e181) {
280
+ const _0x3648fa = { _0x4af965: 0xf2 }, _0x3874dc = _0x42226e, _0x2023b4 = _0x213374?.[_0x3874dc(0x221)];
281
+ return Array[_0x3874dc(_0x3648fa._0x4af965)](_0x2023b4) && _0x2023b4[_0x3874dc(0x165)](_0x51e181);
282
+ }
283
+ function contentMentionsAgent(_0x188ae9, _0x11acf4, _0x465218) {
284
+ const _0x2f48c9 = _0x42226e, _0x374380 = _0x11acf4['agents'][_0x2f48c9(0x219)](_0x5b28d4 => _0x5b28d4['id'] === _0x465218);
285
+ if (!_0x374380)
286
+ return ![];
287
+ return extractMentionedParticipantIds(_0x188ae9, _0x11acf4)[_0x2f48c9(0x165)](_0x374380['id']);
288
+ }
289
+ function foldWorkerAgentMessageContent(_0x2a874d) {
290
+ const _0x1742b7 = {
291
+ _0x16eac5: 0x217,
292
+ _0x363504: 0x173,
293
+ _0x18101b: 0x1d9,
294
+ _0x5c2099: 0x107,
295
+ _0x2272ce: 0x213,
296
+ _0x149708: 0x10c,
297
+ _0x6ea813: 0x1d9,
298
+ _0x8f7ac8: 0x244,
299
+ _0x8ec7e0: 0x164,
300
+ _0x51e8d0: 0x107,
301
+ _0x5bb2fe: 0x132
302
+ }, _0x18ec09 = _0x42226e;
303
+ if (!_0x2a874d[_0x18ec09(0x172)] || _0x2a874d[_0x18ec09(_0x1742b7._0x16eac5)] !== _0x18ec09(_0x1742b7._0x363504))
304
+ return _0x2a874d['content'];
305
+ if (_0x2a874d[_0x18ec09(0x107)][_0x18ec09(_0x1742b7._0x18101b)] <= WORKER_AGENT_MESSAGE_FOLD_THRESHOLD)
306
+ return _0x2a874d[_0x18ec09(_0x1742b7._0x5c2099)];
307
+ if (isTargetedToAgent(_0x2a874d['eventPayload'], _0x2a874d[_0x18ec09(0x23d)]) || contentMentionsAgent(_0x2a874d[_0x18ec09(0x107)], _0x2a874d[_0x18ec09(_0x1742b7._0x2272ce)], _0x2a874d[_0x18ec09(0x23d)]))
308
+ return _0x2a874d[_0x18ec09(0x107)];
309
+ const _0x4cf426 = Math[_0x18ec09(_0x1742b7._0x149708)](0x0, _0x2a874d[_0x18ec09(0x107)][_0x18ec09(_0x1742b7._0x6ea813)] - WORKER_AGENT_MESSAGE_FOLD_HEAD - WORKER_AGENT_MESSAGE_FOLD_TAIL), _0x3929e9 = _0x2a874d[_0x18ec09(_0x1742b7._0x5c2099)][_0x18ec09(_0x1742b7._0x8f7ac8)](0x0, WORKER_AGENT_MESSAGE_FOLD_HEAD)[_0x18ec09(_0x1742b7._0x8ec7e0)](), _0x35e21b = _0x2a874d[_0x18ec09(_0x1742b7._0x51e8d0)]['slice'](-WORKER_AGENT_MESSAGE_FOLD_TAIL)['trimStart']();
310
+ return '[message\x20folded:\x20non-target\x20agent\x20message,\x20' + _0x2a874d[_0x18ec09(0x107)][_0x18ec09(0x1d9)] + '\x20chars,\x20' + _0x4cf426 + _0x18ec09(_0x1742b7._0x5bb2fe) + _0x3929e9 + '\x0a…\x0a' + _0x35e21b;
305
311
  }
306
312
  var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
307
- function anySignal(..._0x49e3b6) {
308
- const _0x5f071c = {
309
- _0x5f0b1a: 0x23d,
310
- _0x4d139f: 0x27c,
311
- _0x166c18: 0x315,
312
- _0x2c6fe5: 0x315
313
- }, _0x520724 = _0x5e089b, _0x5d8f16 = new AbortController();
314
- for (const _0x1447c7 of _0x49e3b6) {
315
- if (_0x1447c7[_0x520724(_0x5f071c._0x5f0b1a)])
316
- return _0x5d8f16['abort'](_0x1447c7[_0x520724(0x22f)]), _0x5d8f16['signal'];
317
- _0x1447c7['addEventListener'](_0x520724(_0x5f071c._0x4d139f), () => _0x5d8f16[_0x520724(0x27c)](_0x1447c7[_0x520724(0x22f)]), {
313
+ function anySignal(..._0x4097ff) {
314
+ const _0x165d68 = {
315
+ _0x26b094: 0x1cf,
316
+ _0x174250: 0xf7,
317
+ _0xd34034: 0x15c
318
+ }, _0x37831d = _0x42226e, _0x1fa5dc = new AbortController();
319
+ for (const _0x3cb0f4 of _0x4097ff) {
320
+ if (_0x3cb0f4[_0x37831d(0x25f)])
321
+ return _0x1fa5dc[_0x37831d(0x15c)](_0x3cb0f4[_0x37831d(0x186)]), _0x1fa5dc[_0x37831d(_0x165d68._0x26b094)];
322
+ _0x3cb0f4[_0x37831d(_0x165d68._0x174250)](_0x37831d(_0x165d68._0xd34034), () => _0x1fa5dc[_0x37831d(0x15c)](_0x3cb0f4[_0x37831d(0x186)]), {
318
323
  'once': !![],
319
- 'signal': _0x5d8f16[_0x520724(_0x5f071c._0x166c18)]
324
+ 'signal': _0x1fa5dc['signal']
320
325
  });
321
326
  }
322
- return _0x5d8f16[_0x520724(_0x5f071c._0x2c6fe5)];
327
+ return _0x1fa5dc[_0x37831d(0x1cf)];
328
+ }
329
+ function _0x3c9f(_0x5d832a, _0x5d0a48) {
330
+ _0x5d832a = _0x5d832a - 0xf2;
331
+ const _0x1d81a4 = _0x1d81();
332
+ let _0x3c9fc4 = _0x1d81a4[_0x5d832a];
333
+ if (_0x3c9f['XCOdHw'] === undefined) {
334
+ var _0x5ff147 = function (_0x6f65a8) {
335
+ const _0x1680b2 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
336
+ let _0x176603 = '', _0x40984d = '';
337
+ for (let _0x2bae97 = 0x0, _0x54911d, _0x3a006c, _0x1f36b6 = 0x0; _0x3a006c = _0x6f65a8['charAt'](_0x1f36b6++); ~_0x3a006c && (_0x54911d = _0x2bae97 % 0x4 ? _0x54911d * 0x40 + _0x3a006c : _0x3a006c, _0x2bae97++ % 0x4) ? _0x176603 += String['fromCharCode'](0xff & _0x54911d >> (-0x2 * _0x2bae97 & 0x6)) : 0x0) {
338
+ _0x3a006c = _0x1680b2['indexOf'](_0x3a006c);
339
+ }
340
+ for (let _0x346161 = 0x0, _0x1f8137 = _0x176603['length']; _0x346161 < _0x1f8137; _0x346161++) {
341
+ _0x40984d += '%' + ('00' + _0x176603['charCodeAt'](_0x346161)['toString'](0x10))['slice'](-0x2);
342
+ }
343
+ return decodeURIComponent(_0x40984d);
344
+ };
345
+ _0x3c9f['tezlbU'] = _0x5ff147, _0x3c9f['UDtAWE'] = {}, _0x3c9f['XCOdHw'] = !![];
346
+ }
347
+ const _0x59983e = _0x1d81a4[0x0], _0x348961 = _0x5d832a + _0x59983e, _0x441dc6 = _0x3c9f['UDtAWE'][_0x348961];
348
+ return !_0x441dc6 ? (_0x3c9fc4 = _0x3c9f['tezlbU'](_0x3c9fc4), _0x3c9f['UDtAWE'][_0x348961] = _0x3c9fc4) : _0x3c9fc4 = _0x441dc6, _0x3c9fc4;
323
349
  }
324
- function createInternalAgentClient(_0x2b7590) {
325
- const _0x3fa72f = {
326
- _0x139d21: 0x2fe,
327
- _0x349fed: 0x2fd,
328
- _0x4317b2: 0x2cd,
329
- _0x201556: 0x20e,
330
- _0x5725d7: 0x2b4,
331
- _0x47e7e7: 0x20e,
332
- _0x3186cc: 0x2ab,
333
- _0x19f546: 0x286,
334
- _0xae9895: 0x26e
335
- }, _0x50e3de = {
336
- _0x4174be: 0x250,
337
- _0x1bf4bb: 0x2ff,
338
- _0x8f42d4: 0x308,
339
- _0x378b59: 0x2c1,
340
- _0x2b70c7: 0x2a5,
341
- _0x57fd8e: 0x228,
342
- _0x33ef27: 0x253,
343
- _0x16584e: 0x228,
344
- _0x268b7f: 0x253,
345
- _0x4c2530: 0x253,
346
- _0x3e2111: 0x26c,
347
- _0x1f8627: 0x252,
348
- _0x1cd3aa: 0x27d,
349
- _0x3bd52f: 0x2d4,
350
- _0x5ceed7: 0x27d,
351
- _0x56e702: 0x2c0,
352
- _0x3c0199: 0x2c0,
353
- _0x2be863: 0x355,
354
- _0x4c1435: 0x2e0,
355
- _0x3bdc6d: 0x2be,
356
- _0x5234fb: 0x355,
357
- _0x5ca2d3: 0x2e0,
358
- _0x2dfac5: 0x28d,
359
- _0x18b076: 0x31b,
360
- _0x465031: 0x253,
361
- _0x574775: 0x1e8,
362
- _0x504d5b: 0x320,
363
- _0x1884d8: 0x350,
364
- _0xd8f79f: 0x275,
365
- _0xbc7b27: 0x21d,
366
- _0x142078: 0x1f4
367
- }, _0x9341bc = { _0xce52f5: 0x2c9 }, _0x5e201e = {
368
- _0x327be7: 0x302,
369
- _0x41231e: 0x2d4,
370
- _0x13c880: 0x259,
371
- _0x12b4d2: 0x2b8
372
- }, _0x4129f8 = {
373
- _0x400b12: 0x250,
374
- _0x3a995b: 0x2a5
375
- }, _0x1560d9 = {
376
- _0x2d738f: 0x1ec,
377
- _0x16fc47: 0x24c,
378
- _0x17e207: 0x1fc,
379
- _0x1b6207: 0x257,
380
- _0x1ebd7c: 0x2d0,
381
- _0x3427ad: 0x33f
382
- }, _0x3546b1 = {
383
- _0x267b66: 0x308,
384
- _0x5798f6: 0x204,
385
- _0x11d311: 0x333,
386
- _0x3a9279: 0x30d,
387
- _0x4feff6: 0x347
388
- }, _0xf3a834 = {
389
- _0x3e1815: 0x204,
390
- _0xda57d5: 0x229
391
- }, _0x3f4cca = {
392
- _0x3112ea: 0x308,
393
- _0x539b3e: 0x204,
394
- _0x59f0d2: 0x35b
395
- }, _0x4b4c60 = {
396
- _0x2b9638: 0x308,
397
- _0x503f2d: 0x204,
398
- _0x2e5628: 0x229
399
- }, _0x4bb2fd = { _0x1c43dd: 0x292 }, _0x9c02e2 = {
400
- _0x18311f: 0x302,
401
- _0x255bef: 0x308,
402
- _0x4df58c: 0x233,
403
- _0x2b1d69: 0x265
404
- }, _0x558603 = {
405
- _0x185135: 0x31f,
406
- _0x139853: 0x223,
407
- _0x3dc23a: 0x2c6,
408
- _0x176637: 0x229,
409
- _0x158070: 0x352,
410
- _0x5502b7: 0x34a
411
- }, _0x2158be = {
412
- _0x4615b7: 0x262,
413
- _0x8e4cac: 0x229,
414
- _0x13d2ba: 0x223
415
- }, _0x1979be = {
416
- _0x4a53d4: 0x24e,
417
- _0x40bc9e: 0x229
418
- }, _0x2375d6 = {
419
- _0x1a0303: 0x26b,
420
- _0x457d7a: 0x2c1
421
- }, _0x23ed14 = {
422
- _0x2e49d5: 0x259,
423
- _0xe23d44: 0x337,
424
- _0x51ada4: 0x36b,
425
- _0x345fb8: 0x253,
426
- _0xb654c0: 0x258,
427
- _0x1ed388: 0x313
428
- }, _0x2a0d08 = {
429
- _0x308dff: 0x25d,
430
- _0x31e996: 0x2d4,
431
- _0x414cfa: 0x250,
432
- _0x29ca11: 0x2f6,
433
- _0x56ecbb: 0x237,
434
- _0x36bd3f: 0x308,
435
- _0x2e5228: 0x2a5
436
- }, _0x9ab422 = { _0x5a2c27: 0x2e6 }, _0x176559 = {
437
- _0x4aaaeb: 0x21d,
438
- _0x2500cf: 0x355,
439
- _0x5cc1ad: 0x29a,
440
- _0x5c96fc: 0x2c0
441
- }, _0x22b75d = {
442
- _0x315b81: 0x2ac,
443
- _0x3cecf9: 0x218,
444
- _0x2cd395: 0x355,
445
- _0x138489: 0x29a,
446
- _0x5f139c: 0x2c0,
447
- _0x1d5db7: 0x2b8,
448
- _0x563680: 0x31a
449
- }, _0xc18b40 = {
450
- _0x2b2988: 0x355,
451
- _0x3eb4f0: 0x355,
452
- _0x16cf2b: 0x2c0,
453
- _0x1ce751: 0x218
454
- }, _0x4807bd = {
455
- _0x3d05be: 0x33d,
456
- _0x1a3c75: 0x32a
457
- }, _0x1b4ea1 = { _0x23a826: 0x245 }, _0xecc009 = { _0xfd9f4b: 0x287 }, _0x420418 = {
458
- _0x2d0a36: 0x308,
459
- _0x516ea9: 0x313,
460
- _0x115876: 0x2b8,
461
- _0x589183: 0x355
462
- }, _0x5c8c73 = { _0x562c07: 0x258 }, _0x40d634 = {
463
- _0x5aa295: 0x229,
464
- _0xc3a3c8: 0x2d6
465
- }, _0x2bdc58 = { _0x17721f: 0x315 }, _0x4882cb = {
466
- _0xc0da3c: 0x315,
467
- _0x3c0bec: 0x352,
468
- _0x2ecb14: 0x34a
469
- }, _0x3c07c3 = {
470
- _0x1b7956: 0x20e,
471
- _0x33df75: 0x24b,
472
- _0x19360b: 0x312,
473
- _0x3c44e3: 0x32c,
474
- _0x5278aa: 0x356,
475
- _0x423819: 0x2be
476
- }, _0x401ed0 = { _0x5038c8: 0x2d9 }, _0x12eadb = {
477
- _0xcc924f: 0x33a,
478
- _0x54ca3d: 0x205,
479
- _0x4ee96c: 0x25c,
480
- _0x24235d: 0x251,
481
- _0x39198e: 0x249,
482
- _0x43f11e: 0x293,
483
- _0xbb9e83: 0x1f0
484
- }, _0x2756a7 = _0x5e089b, _0x594bcc = _0x2b7590['fetchImpl'] ?? fetch, _0x371ab8 = _0x2b7590[_0x2756a7(_0x3fa72f._0x139d21)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2a7424 = typeof _0x2b7590[_0x2756a7(_0x3fa72f._0x349fed)] === 'number' && _0x2b7590[_0x2756a7(_0x3fa72f._0x349fed)] > 0x0 ? _0x2b7590['initialLastSeenSeq'] : 0x0, _0x2a6ff8 = _0x2b7590[_0x2756a7(_0x3fa72f._0x4317b2)]?.[_0x2756a7(_0x3fa72f._0x201556)]() || void 0x0, _0x2fe8c5 = _0x2b7590[_0x2756a7(_0x3fa72f._0x5725d7)]?.[_0x2756a7(_0x3fa72f._0x47e7e7)]() || void 0x0, _0x5f117b = _0x2b7590[_0x2756a7(_0x3fa72f._0x3186cc)] === !![], _0x2bfb67 = _0x2b7590[_0x2756a7(_0x3fa72f._0x19f546)]?.[_0x2756a7(0x20e)]() || void 0x0, _0x355eea = _0x2b7590[_0x2756a7(_0x3fa72f._0xae9895)]?.['trim']() || void 0x0, _0x4e5c5f = createHeaders(_0x2b7590['daemonApiKey']), _0x5b6c03 = toHttpBaseUrl(_0x2b7590[_0x2756a7(0x27f)]);
485
- let _0x4ccf24 = null;
486
- const _0x2e8d9a = new Map();
487
- let _0x528eb4 = _0x2a7424, _0x377367 = _0x2a7424;
488
- function _0x28eebd(_0x2218b9) {
489
- const _0x1e889f = _0x2756a7, _0x223ee9 = _0x2218b9['response'][_0x1e889f(0x1fc)]['get']('content-type') ?? 'unknown', _0x3c1a8b = _0x2218b9['bodyText']['trim']()['replace'](/\s+/g, '\x20')[_0x1e889f(_0x12eadb._0xcc924f)](0x0, 0x78) || _0x1e889f(_0x12eadb._0x54ca3d);
490
- return _0x1e889f(_0x12eadb._0x4ee96c) + _0x2218b9[_0x1e889f(0x2d7)] + _0x1e889f(0x28b) + _0x2218b9[_0x1e889f(_0x12eadb._0x24235d)]['status'] + _0x1e889f(_0x12eadb._0x39198e) + _0x223ee9 + _0x1e889f(_0x12eadb._0x43f11e) + _0x3c1a8b + _0x1e889f(_0x12eadb._0xbb9e83);
350
+ function createInternalAgentClient(_0x2473a7) {
351
+ const _0x526329 = {
352
+ _0x24162f: 0x13b,
353
+ _0x5cb9f3: 0x210,
354
+ _0x41304f: 0x225,
355
+ _0x4fb82f: 0xf6
356
+ }, _0x3dd138 = {
357
+ _0x10aeb6: 0x18d,
358
+ _0x929bdc: 0x17f,
359
+ _0x321f99: 0x23d,
360
+ _0x21eb8c: 0x203,
361
+ _0x485788: 0x10c,
362
+ _0x559fed: 0x1d9,
363
+ _0x5a1ed4: 0x230,
364
+ _0x426a6a: 0x263,
365
+ _0x215996: 0x24b,
366
+ _0xef921e: 0x257,
367
+ _0x10b71e: 0x12b,
368
+ _0x124ca9: 0x257,
369
+ _0x5606b6: 0x12b,
370
+ _0x26a91e: 0x156,
371
+ _0x3d86a0: 0x257,
372
+ _0x589817: 0x156,
373
+ _0x425d99: 0x16c,
374
+ _0x5a4f55: 0x116,
375
+ _0x29636e: 0x16c,
376
+ _0x290be7: 0x1da,
377
+ _0x50f3db: 0x1a8,
378
+ _0x93f854: 0x1be,
379
+ _0x57e104: 0x10c,
380
+ _0x155e86: 0x1d9,
381
+ _0x3ce148: 0x151,
382
+ _0x62a08a: 0x1a8,
383
+ _0x2286a6: 0x207,
384
+ _0x1017dc: 0x16e,
385
+ _0x2401e0: 0x15b,
386
+ _0x216228: 0x168,
387
+ _0xa70a3b: 0x205,
388
+ _0x258ccd: 0x217,
389
+ _0x38581b: 0x1ad,
390
+ _0x292e7b: 0x205,
391
+ _0x45bebc: 0x205,
392
+ _0x1e42f4: 0x23d
393
+ }, _0x1ad7bf = {
394
+ _0x1b2f34: 0x1f4,
395
+ _0x1c18d4: 0x1dd,
396
+ _0x3becfc: 0x23a,
397
+ _0x2ca7e: 0x12b
398
+ }, _0x408402 = {
399
+ _0x38f5e4: 0x1da,
400
+ _0x37cec3: 0x19b
401
+ }, _0x165ba7 = {
402
+ _0x4c6142: 0x1cf,
403
+ _0x450a04: 0x1a5,
404
+ _0x65d50d: 0x138,
405
+ _0x5b8740: 0x151,
406
+ _0x37b4a9: 0xff,
407
+ _0x1725aa: 0x15e
408
+ }, _0x205d95 = {
409
+ _0x813e2f: 0x196,
410
+ _0x4ec5d7: 0x17f,
411
+ _0x4d0d73: 0x23d,
412
+ _0x4ab2f5: 0xfc,
413
+ _0x459dfc: 0xf4,
414
+ _0x5d6d61: 0x1b8
415
+ }, _0x7a48e9 = {
416
+ _0x5356f2: 0x17f,
417
+ _0xfac6b5: 0x23d,
418
+ _0x342cb7: 0x251,
419
+ _0x598522: 0x1c7
420
+ }, _0x5e78cc = { _0x17f4de: 0x23d }, _0x2a26e6 = {
421
+ _0x3c3075: 0x17f,
422
+ _0x32f806: 0x143
423
+ }, _0x1f8f42 = {
424
+ _0x103ef8: 0x130,
425
+ _0x40b3c3: 0x143
426
+ }, _0x78f958 = {
427
+ _0x3c9af1: 0x1e0,
428
+ _0x42da7f: 0x143
429
+ }, _0xdc2989 = {
430
+ _0x32db31: 0x1da,
431
+ _0x58a84a: 0x196,
432
+ _0x39ac64: 0x1a5,
433
+ _0x4f742c: 0x1a5,
434
+ _0x55d37f: 0x23f,
435
+ _0x653b35: 0x18d,
436
+ _0x4dc76e: 0x203
437
+ }, _0x198eb7 = {
438
+ _0x4d1407: 0x274,
439
+ _0x430c82: 0x1a5,
440
+ _0x19554b: 0x1e5,
441
+ _0xbcf615: 0x1a5
442
+ }, _0x5e5de5 = {
443
+ _0x47ed66: 0x179,
444
+ _0x3be9af: 0x1e5,
445
+ _0x3c7494: 0x143,
446
+ _0x476373: 0x1b1
447
+ }, _0x4143c7 = {
448
+ _0x5377d3: 0x261,
449
+ _0x231098: 0xf8
450
+ }, _0x2433f4 = {
451
+ _0x2cc565: 0xf9,
452
+ _0x5daf00: 0x203,
453
+ _0x369242: 0x1c7
454
+ }, _0x29672e = {
455
+ _0x5bf6ea: 0x1dd,
456
+ _0x54e2f8: 0x107,
457
+ _0x1b6fb7: 0x165,
458
+ _0x371dd8: 0x1f3,
459
+ _0x2bb867: 0x1d9,
460
+ _0x2e48fa: 0x12b,
461
+ _0x44ef31: 0x22e
462
+ }, _0xc699f4 = {
463
+ _0x39867f: 0x12b,
464
+ _0x18cd4e: 0x1f3,
465
+ _0x29bf55: 0x1f3,
466
+ _0x5e505f: 0x125,
467
+ _0x70b06f: 0x1da,
468
+ _0x3283f9: 0x1f4,
469
+ _0x267c9d: 0x1f4,
470
+ _0x15250f: 0x23d,
471
+ _0x358287: 0x1c7,
472
+ _0xb3c60: 0x24b,
473
+ _0x4fb984: 0x245
474
+ }, _0x61f15d = { _0x1da682: 0x23e }, _0x174598 = {
475
+ _0x1ea0d2: 0x116,
476
+ _0x1a857e: 0x12f,
477
+ _0x374b04: 0x156,
478
+ _0x4fc1de: 0x257,
479
+ _0x23fae4: 0x156,
480
+ _0x4d256b: 0x134,
481
+ _0xdd9f4d: 0x12b
482
+ }, _0x3f0974 = {
483
+ _0x40e069: 0x156,
484
+ _0x303714: 0x152,
485
+ _0x31fe60: 0x152,
486
+ _0x4ac259: 0x12b,
487
+ _0x38f9a7: 0x152
488
+ }, _0x541e97 = {
489
+ _0xff3332: 0x16c,
490
+ _0x50ceb9: 0x228,
491
+ _0x24e3ac: 0x156,
492
+ _0x19cb01: 0x156,
493
+ _0x3bebfe: 0x244
494
+ }, _0xdc6f8c = {
495
+ _0x5dd29c: 0x1d0,
496
+ _0x430b0a: 0x252
497
+ }, _0x4917bb = { _0x4e13bc: 0x173 }, _0x16d7b6 = {
498
+ _0x740a19: 0x1dd,
499
+ _0x328619: 0x143,
500
+ _0x27de5e: 0x1c7,
501
+ _0x3dd916: 0x16c
502
+ }, _0x11de38 = {
503
+ _0x4503e6: 0x19c,
504
+ _0x4e07e5: 0x143,
505
+ _0x38101d: 0x1a5
506
+ }, _0x271ae8 = { _0x3c1f66: 0x190 }, _0x54f10c = {
507
+ _0x38e5d2: 0x1cf,
508
+ _0x311b0e: 0x128
509
+ }, _0x2a290d = {
510
+ _0x4a505f: 0x1cf,
511
+ _0x1d6c8f: 0x1cf,
512
+ _0x39cbd6: 0x274
513
+ }, _0x1d5b98 = {
514
+ _0x442eec: 0x104,
515
+ _0x318a02: 0x210,
516
+ _0x2d0c7b: 0x1b2,
517
+ _0x25254e: 0x12e,
518
+ _0x2aff12: 0x1fb,
519
+ _0x5212be: 0x1fa
520
+ }, _0x3f5f89 = {
521
+ _0x47f5f1: 0x288,
522
+ _0x363237: 0x15f
523
+ }, _0x3c5d8e = {
524
+ _0x1d8976: 0x210,
525
+ _0x1ea43d: 0x26a,
526
+ _0x57684f: 0x1c9,
527
+ _0x2c3ca5: 0x20f
528
+ }, _0x33fabc = _0x42226e, _0x5ce332 = _0x2473a7['fetchImpl'] ?? fetch, _0x57bab3 = _0x2473a7['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2df9c7 = typeof _0x2473a7[_0x33fabc(0x18f)] === _0x33fabc(0x116) && _0x2473a7[_0x33fabc(0x18f)] > 0x0 ? _0x2473a7['initialLastSeenSeq'] : 0x0, _0x4fbc45 = _0x2473a7[_0x33fabc(_0x526329._0x24162f)]?.[_0x33fabc(_0x526329._0x5cb9f3)]() || void 0x0, _0x358623 = _0x2473a7['sessionId']?.[_0x33fabc(0x210)]() || void 0x0, _0x166139 = _0x2473a7[_0x33fabc(0x109)]?.['trim']() || void 0x0, _0x5bfc07 = _0x2473a7['workerThreadTarget']?.['trim']() || void 0x0, _0xed62b4 = createHeaders(_0x2473a7[_0x33fabc(_0x526329._0x41304f)]), _0x1e501f = toHttpBaseUrl(_0x2473a7[_0x33fabc(_0x526329._0x4fb82f)]);
529
+ let _0x5cfe71 = null;
530
+ const _0x387fc7 = new Map();
531
+ let _0x18422f = _0x2df9c7, _0x27d994 = _0x2df9c7;
532
+ function _0x4f03b8(_0x388cc6) {
533
+ const _0x1b8c79 = _0x33fabc, _0x2f8f9a = _0x388cc6[_0x1b8c79(0x1c9)]['headers'][_0x1b8c79(0x151)](_0x1b8c79(0x22f)) ?? 'unknown', _0x4273c8 = _0x388cc6[_0x1b8c79(0x22c)][_0x1b8c79(_0x3c5d8e._0x1d8976)]()[_0x1b8c79(0x233)](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
534
+ return '请求\x20' + _0x388cc6[_0x1b8c79(0x133)] + _0x1b8c79(_0x3c5d8e._0x1ea43d) + _0x388cc6[_0x1b8c79(_0x3c5d8e._0x57684f)]['status'] + _0x1b8c79(0x23b) + _0x2f8f9a + ',\x20preview=' + _0x4273c8 + _0x1b8c79(_0x3c5d8e._0x2c3ca5);
491
535
  }
492
- async function _0x5b9099(_0x5bbb34, _0x1eb25a) {
493
- const _0x245af6 = _0x2756a7, _0x557b11 = Buffer['from'](await _0x1eb25a[_0x245af6(0x2d0)]())['toString'](_0x245af6(_0x401ed0._0x5038c8));
494
- if (!_0x557b11['trim']())
536
+ async function _0x4a146d(_0x39eade, _0x2502e3) {
537
+ const _0x2c9415 = _0x33fabc, _0x4902b2 = Buffer[_0x2c9415(0x22d)](await _0x2502e3[_0x2c9415(0x15e)]())[_0x2c9415(0x18d)](_0x2c9415(_0x3f5f89._0x47f5f1));
538
+ if (!_0x4902b2[_0x2c9415(0x210)]())
495
539
  return {};
496
540
  try {
497
- return JSON[_0x245af6(0x329)](_0x557b11);
541
+ return JSON[_0x2c9415(_0x3f5f89._0x363237)](_0x4902b2);
498
542
  } catch {
499
- throw new Error(_0x28eebd({
500
- 'bodyText': _0x557b11,
501
- 'requestUrl': _0x5bbb34,
502
- 'response': _0x1eb25a
543
+ throw new Error(_0x4f03b8({
544
+ 'bodyText': _0x4902b2,
545
+ 'requestUrl': _0x39eade,
546
+ 'response': _0x2502e3
503
547
  }));
504
548
  }
505
549
  }
506
- function _0x3bed44(_0x3e9fa4, _0x1eb425) {
507
- const _0x226be2 = _0x2756a7, _0xf0e561 = typeof _0x1eb425[_0x226be2(0x363)] === _0x226be2(0x27d) ? _0x1eb425['idempotency_key'][_0x226be2(_0x3c07c3._0x1b7956)]() : '';
508
- if (_0xf0e561)
509
- return _0xf0e561;
510
- const _0xc2fb = Date[_0x226be2(_0x3c07c3._0x33df75)]();
511
- for (const [_0x3f7e19, _0x4e8882] of _0x2e8d9a) {
512
- _0x4e8882[_0x226be2(_0x3c07c3._0x19360b)] <= _0xc2fb && _0x2e8d9a[_0x226be2(_0x3c07c3._0x3c44e3)](_0x3f7e19);
550
+ function _0x549620(_0x36612f, _0x5c5ea8) {
551
+ const _0x33edf1 = _0x33fabc, _0x5b7cdb = typeof _0x5c5ea8[_0x33edf1(_0x1d5b98._0x442eec)] === 'string' ? _0x5c5ea8['idempotency_key'][_0x33edf1(_0x1d5b98._0x318a02)]() : '';
552
+ if (_0x5b7cdb)
553
+ return _0x5b7cdb;
554
+ const _0x3bd05e = Date[_0x33edf1(0x194)]();
555
+ for (const [_0x105494, _0x3a1769] of _0x387fc7) {
556
+ _0x3a1769[_0x33edf1(_0x1d5b98._0x2d0c7b)] <= _0x3bd05e && _0x387fc7[_0x33edf1(_0x1d5b98._0x25254e)](_0x105494);
513
557
  }
514
- const _0x3e6726 = {
515
- ..._0x1eb425,
558
+ const _0xac3745 = {
559
+ ..._0x5c5ea8,
516
560
  'idempotency_key': void 0x0
517
- }, _0x4bbcfc = createHash(_0x226be2(0x2ae))['update'](_0x3e9fa4 + ':' + stableStringify(_0x3e6726))[_0x226be2(_0x3c07c3._0x5278aa)]('hex'), _0x2349e6 = _0x3e9fa4 + ':' + _0x4bbcfc, _0x265914 = _0x2e8d9a[_0x226be2(_0x3c07c3._0x423819)](_0x2349e6);
518
- if (_0x265914)
519
- return _0x265914['value'];
520
- const _0x65d34f = 'auto:' + _0x3e9fa4 + ':' + randomUUID();
521
- return _0x2e8d9a['set'](_0x2349e6, {
522
- 'expiresAt': _0xc2fb + 0x5 * 0x3c * 0x3e8,
523
- 'value': _0x65d34f
524
- }), _0x65d34f;
561
+ }, _0x1e4ff5 = createHash(_0x33edf1(_0x1d5b98._0x2aff12))[_0x33edf1(0x24e)](_0x36612f + ':' + stableStringify(_0xac3745))[_0x33edf1(0x1e1)]('hex'), _0x337291 = _0x36612f + ':' + _0x1e4ff5, _0x190987 = _0x387fc7['get'](_0x337291);
562
+ if (_0x190987)
563
+ return _0x190987[_0x33edf1(0x1d2)];
564
+ const _0x363174 = _0x33edf1(_0x1d5b98._0x5212be) + _0x36612f + ':' + randomUUID();
565
+ return _0x387fc7['set'](_0x337291, {
566
+ 'expiresAt': _0x3bd05e + 0x5 * 0x3c * 0x3e8,
567
+ 'value': _0x363174
568
+ }), _0x363174;
525
569
  }
526
- async function _0x1396b1(_0x567780, _0x4e1295) {
527
- const _0x1cecdf = _0x2756a7, _0x2b3d7c = new AbortController(), _0x1c6e13 = setTimeout(() => _0x2b3d7c[_0x1cecdf(0x27c)](), _0x371ab8), _0x59fe36 = _0x4e1295?.['signal'] ? anySignal(_0x4e1295[_0x1cecdf(_0x4882cb._0xc0da3c)], _0x2b3d7c['signal']) : _0x2b3d7c[_0x1cecdf(0x315)], _0x37d0e4 = '' + _0x5b6c03 + _0x567780;
570
+ async function _0x5de536(_0x5de682, _0x16cacd) {
571
+ const _0x3b6c50 = _0x33fabc, _0x3ec81a = new AbortController(), _0x576f42 = setTimeout(() => _0x3ec81a[_0x3b6c50(0x15c)](), _0x57bab3), _0x3b3564 = _0x16cacd?.[_0x3b6c50(0x1cf)] ? anySignal(_0x16cacd[_0x3b6c50(0x1cf)], _0x3ec81a[_0x3b6c50(_0x2a290d._0x4a505f)]) : _0x3ec81a[_0x3b6c50(_0x2a290d._0x1d6c8f)], _0x4734fb = '' + _0x1e501f + _0x5de682;
528
572
  try {
529
- const _0x564014 = await _0x594bcc(_0x37d0e4, {
530
- ..._0x4e1295,
531
- 'signal': _0x59fe36
532
- }), _0xe21b74 = await _0x5b9099(_0x37d0e4, _0x564014);
533
- if (!_0x564014['ok'] || _0xe21b74[_0x1cecdf(0x1fa)] === ![])
534
- throw new Error(asErrorMessage(_0xe21b74[_0x1cecdf(_0x4882cb._0x3c0bec)], _0x1cecdf(0x2b1) + _0x564014[_0x1cecdf(_0x4882cb._0x2ecb14)]));
535
- return _0xe21b74;
573
+ const _0x2e0588 = await _0x5ce332(_0x4734fb, {
574
+ ..._0x16cacd,
575
+ 'signal': _0x3b3564
576
+ }), _0x1a968f = await _0x4a146d(_0x4734fb, _0x2e0588);
577
+ if (!_0x2e0588['ok'] || _0x1a968f['success'] === ![])
578
+ throw new Error(asErrorMessage(_0x1a968f[_0x3b6c50(_0x2a290d._0x39cbd6)], 'HTTP\x20' + _0x2e0588[_0x3b6c50(0x1a5)]));
579
+ return _0x1a968f;
536
580
  } finally {
537
- clearTimeout(_0x1c6e13);
581
+ clearTimeout(_0x576f42);
538
582
  }
539
583
  }
540
- async function _0x4a359f(_0x2e48b0, _0x15ae04) {
541
- const _0xfb5e3a = _0x2756a7, _0x383fcc = new AbortController(), _0x3fbc09 = setTimeout(() => _0x383fcc['abort'](), _0x371ab8), _0xbf1163 = _0x15ae04?.['signal'] ? anySignal(_0x15ae04['signal'], _0x383fcc[_0xfb5e3a(_0x2bdc58._0x17721f)]) : _0x383fcc[_0xfb5e3a(0x315)], _0x28b3e9 = '' + _0x5b6c03 + _0x2e48b0;
584
+ async function _0x43f561(_0x44913a, _0x5db1fc) {
585
+ const _0x1413ee = _0x33fabc, _0x1eda98 = new AbortController(), _0x456eeb = setTimeout(() => _0x1eda98[_0x1413ee(0x15c)](), _0x57bab3), _0x16a5c9 = _0x5db1fc?.[_0x1413ee(0x1cf)] ? anySignal(_0x5db1fc[_0x1413ee(_0x54f10c._0x38e5d2)], _0x1eda98[_0x1413ee(0x1cf)]) : _0x1eda98[_0x1413ee(0x1cf)], _0x39d43c = '' + _0x1e501f + _0x44913a;
542
586
  try {
543
- const _0x491055 = await _0x594bcc(_0x28b3e9, {
544
- ..._0x15ae04,
545
- 'signal': _0xbf1163
546
- }), _0x4bbb82 = await _0x5b9099(_0x28b3e9, _0x491055);
547
- if (!_0x491055['ok'])
548
- throw new Error(asErrorMessage(_0x4bbb82[_0xfb5e3a(0x352)], 'HTTP\x20' + _0x491055[_0xfb5e3a(0x34a)]));
549
- return _0x4bbb82;
587
+ const _0x5cecc8 = await _0x5ce332(_0x39d43c, {
588
+ ..._0x5db1fc,
589
+ 'signal': _0x16a5c9
590
+ }), _0x122ecb = await _0x4a146d(_0x39d43c, _0x5cecc8);
591
+ if (!_0x5cecc8['ok'])
592
+ throw new Error(asErrorMessage(_0x122ecb[_0x1413ee(0x274)], _0x1413ee(_0x54f10c._0x311b0e) + _0x5cecc8[_0x1413ee(0x1a5)]));
593
+ return _0x122ecb;
550
594
  } finally {
551
- clearTimeout(_0x3fbc09);
595
+ clearTimeout(_0x456eeb);
552
596
  }
553
597
  }
554
- async function _0x1aa0ec(_0x439117) {
555
- const _0x346b08 = _0x2756a7;
556
- if (!_0x2fe8c5 || _0x439117 <= _0x377367)
598
+ async function _0x30c7bb(_0x41346e) {
599
+ const _0x6c62af = _0x33fabc;
600
+ if (!_0x358623 || _0x41346e <= _0x27d994)
557
601
  return;
558
- await _0x1396b1('/api/agent-sessions/' + encodeURIComponent(_0x2fe8c5) + '/context-metrics', {
559
- 'body': JSON[_0x346b08(_0x40d634._0x5aa295)]({ 'lastSeenSeq': _0x439117 }),
560
- 'headers': _0x4e5c5f,
561
- 'method': _0x346b08(_0x40d634._0xc3a3c8)
562
- }), _0x377367 = _0x439117;
602
+ await _0x5de536('/api/agent-sessions/' + encodeURIComponent(_0x358623) + _0x6c62af(_0x271ae8._0x3c1f66), {
603
+ 'body': JSON[_0x6c62af(0xf8)]({ 'lastSeenSeq': _0x41346e }),
604
+ 'headers': _0xed62b4,
605
+ 'method': 'PATCH'
606
+ }), _0x27d994 = _0x41346e;
563
607
  }
564
- async function _0x2c601c(_0x2afd09) {
565
- const _0x13491a = _0x2756a7;
566
- if (!_0x2a6ff8 || !_0x2bfb67 || _0x2afd09 <= _0x377367)
608
+ async function _0x1f5060(_0x43b2b3) {
609
+ const _0x12fad5 = _0x33fabc;
610
+ if (!_0x4fbc45 || !_0x166139 || _0x43b2b3 <= _0x27d994)
567
611
  return;
568
- const _0x281ff8 = await _0x594bcc(_0x2a6ff8 + _0x13491a(0x2c5), {
569
- 'body': JSON[_0x13491a(0x229)]({
570
- 'last_seen_seq': _0x2afd09,
571
- 'worker_session_id': _0x2bfb67
612
+ const _0x3e3cdb = await _0x5ce332(_0x4fbc45 + '/workers/context-metrics', {
613
+ 'body': JSON[_0x12fad5(0xf8)]({
614
+ 'last_seen_seq': _0x43b2b3,
615
+ 'worker_session_id': _0x166139
572
616
  }),
573
- 'headers': { 'Content-Type': _0x13491a(0x239) },
574
- 'method': _0x13491a(_0x5c8c73._0x562c07)
617
+ 'headers': { 'Content-Type': _0x12fad5(_0x11de38._0x4503e6) },
618
+ 'method': _0x12fad5(_0x11de38._0x4e07e5)
575
619
  });
576
- if (!_0x281ff8['ok'])
577
- throw new Error(_0x13491a(0x2b1) + _0x281ff8[_0x13491a(0x34a)]);
578
- _0x377367 = _0x2afd09;
620
+ if (!_0x3e3cdb['ok'])
621
+ throw new Error(_0x12fad5(0x128) + _0x3e3cdb[_0x12fad5(_0x11de38._0x38101d)]);
622
+ _0x27d994 = _0x43b2b3;
579
623
  }
580
- async function _0x5cf0f7(_0xf91416) {
581
- const _0x415070 = _0x2756a7, _0x1d4644 = parseTarget(_0xf91416), _0x287d62 = await _0x1396b1(_0x415070(_0x420418._0x2d0a36) + _0x2b7590[_0x415070(0x204)] + '/resolve-channel', {
582
- 'body': JSON[_0x415070(0x229)]({ 'target': _0x1d4644['target'] }),
583
- 'headers': _0x4e5c5f,
584
- 'method': 'POST'
624
+ async function _0x3fd0fe(_0x8333f7) {
625
+ const _0x3153cf = _0x33fabc, _0x5de406 = parseTarget(_0x8333f7), _0x2f49ff = await _0x5de536(_0x3153cf(0x17f) + _0x2473a7[_0x3153cf(0x23d)] + _0x3153cf(0x1a0), {
626
+ 'body': JSON['stringify']({ 'target': _0x5de406[_0x3153cf(_0x16d7b6._0x740a19)] }),
627
+ 'headers': _0xed62b4,
628
+ 'method': _0x3153cf(_0x16d7b6._0x328619)
585
629
  });
586
630
  return {
587
- 'channelId': _0x287d62[_0x415070(0x313)]?.[_0x415070(0x2d4)] ?? '',
588
- 'target': _0x1d4644['channelTarget'],
589
- 'task': _0x287d62['data']?.['task'],
590
- 'threadId': _0x287d62[_0x415070(_0x420418._0x516ea9)]?.[_0x415070(_0x420418._0x115876)],
591
- 'threadNumber': _0x287d62[_0x415070(0x313)]?.[_0x415070(_0x420418._0x589183)]
631
+ 'channelId': _0x2f49ff['data']?.[_0x3153cf(0x1f3)] ?? '',
632
+ 'target': _0x5de406[_0x3153cf(0x228)],
633
+ 'task': _0x2f49ff[_0x3153cf(0x1c7)]?.[_0x3153cf(0x202)],
634
+ 'threadId': _0x2f49ff[_0x3153cf(_0x16d7b6._0x27de5e)]?.[_0x3153cf(0x12b)],
635
+ 'threadNumber': _0x2f49ff[_0x3153cf(_0x16d7b6._0x27de5e)]?.[_0x3153cf(_0x16d7b6._0x3dd916)]
592
636
  };
593
637
  }
594
- async function _0xe6d09a(_0x502cfd = {}) {
595
- const _0x767b07 = {
596
- _0x405e85: 0x308,
597
- _0x5da4dd: 0x252,
598
- _0x2b0448: 0x26c,
599
- _0x514706: 0x26c,
600
- _0x346bbe: 0x317
601
- }, _0x59a0d7 = _0x2756a7;
602
- if (!_0x502cfd[_0x59a0d7(_0xecc009._0xfd9f4b)] && _0x4ccf24)
603
- return _0x4ccf24;
604
- return _0x4ccf24 = (async () => {
605
- const _0x5b68b7 = _0x59a0d7, _0x603695 = await _0x1396b1(_0x5b68b7(_0x767b07._0x405e85) + _0x2b7590[_0x5b68b7(0x204)] + '/server', {
606
- 'headers': _0x4e5c5f,
607
- 'method': _0x5b68b7(0x2c1)
608
- }), _0x3335e7 = _0x603695['data']?.['members'] ?? [], _0xd59374 = _0x3335e7[_0x5b68b7(0x26c)](_0x55d9b7 => _0x55d9b7[_0x5b68b7(0x1f5)]?.[_0x5b68b7(0x202)] === 'agent')[_0x5b68b7(_0x767b07._0x5da4dd)](_0x4e2902 => ({
609
- 'id': _0x164b3f(_0x4e2902),
610
- 'name': _0x160b3e(_0x4e2902)
611
- }))[_0x5b68b7(_0x767b07._0x2b0448)](_0x5c58b7 => _0x5c58b7['id']), _0x5e8aef = _0x3335e7[_0x5b68b7(0x26c)](_0x1d9a4d => _0x1d9a4d[_0x5b68b7(0x1f5)]?.['type'] !== _0x5b68b7(0x32e))[_0x5b68b7(0x252)](_0x115257 => ({
612
- 'id': _0x164b3f(_0x115257),
613
- 'name': _0x160b3e(_0x115257)
614
- }))[_0x5b68b7(_0x767b07._0x514706)](_0x891312 => _0x891312['id']), _0x4a16e1 = _0x603695[_0x5b68b7(0x313)]?.[_0x5b68b7(0x2e1)]['id'] ?? '';
638
+ async function _0x1a4a1c(_0x4c26bf = {}) {
639
+ const _0x5db04f = {
640
+ _0x305a3c: 0x1c7,
641
+ _0x343edd: 0x230,
642
+ _0x94351d: 0x24b,
643
+ _0x36ce94: 0x24b,
644
+ _0xcf8867: 0x263,
645
+ _0x3afda4: 0x1c7
646
+ }, _0x52fcb3 = _0x33fabc;
647
+ if (!_0x4c26bf['forceRefresh'] && _0x5cfe71)
648
+ return _0x5cfe71;
649
+ return _0x5cfe71 = (async () => {
650
+ const _0x12a0e4 = _0x3c9f, _0x1a320b = await _0x5de536('/internal/agent/' + _0x2473a7[_0x12a0e4(0x23d)] + _0x12a0e4(0x1f7), {
651
+ 'headers': _0xed62b4,
652
+ 'method': 'GET'
653
+ }), _0x55c6b4 = _0x1a320b[_0x12a0e4(_0x5db04f._0x305a3c)]?.[_0x12a0e4(0x13c)] ?? [], _0x2963b1 = _0x55c6b4[_0x12a0e4(_0x5db04f._0x343edd)](_0x4e4dcf => _0x4e4dcf[_0x12a0e4(0x1a3)]?.[_0x12a0e4(0x115)] === 'agent')[_0x12a0e4(_0x5db04f._0x94351d)](_0xd5ac85 => ({
654
+ 'id': _0x219d49(_0xd5ac85),
655
+ 'name': _0x4fffb7(_0xd5ac85)
656
+ }))['filter'](_0xef27ca => _0xef27ca['id']), _0x3213b7 = _0x55c6b4[_0x12a0e4(_0x5db04f._0x343edd)](_0xf780f5 => _0xf780f5['participant']?.[_0x12a0e4(0x115)] !== 'agent')[_0x12a0e4(_0x5db04f._0x36ce94)](_0x1aca20 => ({
657
+ 'id': _0x219d49(_0x1aca20),
658
+ 'name': _0x4fffb7(_0x1aca20)
659
+ }))[_0x12a0e4(0x230)](_0x53c8da => _0x53c8da['id']), _0x378dae = _0x1a320b[_0x12a0e4(0x1c7)]?.['server']['id'] ?? '';
615
660
  return {
616
- 'agents': _0xd59374,
617
- 'channels': _0x603695[_0x5b68b7(0x313)]?.[_0x5b68b7(_0x767b07._0x346bbe)] ?? [],
618
- 'humans': _0x5e8aef,
619
- 'serverId': _0x4a16e1,
620
- 'serverName': _0x603695[_0x5b68b7(0x313)]?.[_0x5b68b7(0x2e1)]['name'] ?? _0x4a16e1
661
+ 'agents': _0x2963b1,
662
+ 'channels': _0x1a320b['data']?.[_0x12a0e4(_0x5db04f._0xcf8867)] ?? [],
663
+ 'humans': _0x3213b7,
664
+ 'serverId': _0x378dae,
665
+ 'serverName': _0x1a320b[_0x12a0e4(_0x5db04f._0x3afda4)]?.['server'][_0x12a0e4(0x252)] ?? _0x378dae
621
666
  };
622
- })()[_0x59a0d7(0x217)](_0x3ab843 => {
623
- _0x4ccf24 = null;
624
- throw _0x3ab843;
625
- }), _0x4ccf24;
667
+ })()[_0x52fcb3(0x12d)](_0x73d568 => {
668
+ _0x5cfe71 = null;
669
+ throw _0x73d568;
670
+ }), _0x5cfe71;
626
671
  }
627
- function _0x3f0eb1(_0xc6c9ef, _0x131e25) {
628
- const _0x5e936b = _0x2756a7;
629
- return _0x131e25['agents'][_0x5e936b(0x2f2)](_0x5a2a7a => _0x5a2a7a['id'] === _0xc6c9ef || _0x5a2a7a[_0x5e936b(0x32a)] === _0xc6c9ef) ? 'agent' : _0x5e936b(_0x1b4ea1._0x23a826);
672
+ function _0x2f464d(_0x3ae902, _0x369d45) {
673
+ const _0x3511a7 = _0x33fabc;
674
+ return _0x369d45['agents'][_0x3511a7(0x270)](_0x29bc1a => _0x29bc1a['id'] === _0x3ae902 || _0x29bc1a[_0x3511a7(0x252)] === _0x3ae902) ? _0x3511a7(_0x4917bb._0x4e13bc) : 'human';
630
675
  }
631
- function _0x420347(_0x3bb7f6, _0x46e7cd) {
632
- const _0x124743 = _0x2756a7, _0x5c2a05 = [
633
- ..._0x46e7cd[_0x124743(0x2e4)],
634
- ..._0x46e7cd[_0x124743(_0x4807bd._0x3d05be)]
635
- ][_0x124743(0x2db)](_0x295a09 => _0x295a09['id'] === _0x3bb7f6);
636
- return _0x5c2a05?.[_0x124743(_0x4807bd._0x1a3c75)] ?? _0x3bb7f6;
676
+ function _0x5438ca(_0x45a5c8, _0x25ead5) {
677
+ const _0x1278d5 = _0x33fabc, _0x377547 = [
678
+ ..._0x25ead5[_0x1278d5(_0xdc6f8c._0x5dd29c)],
679
+ ..._0x25ead5['humans']
680
+ ][_0x1278d5(0x219)](_0x24d5ec => _0x24d5ec['id'] === _0x45a5c8);
681
+ return _0x377547?.[_0x1278d5(_0xdc6f8c._0x430b0a)] ?? _0x45a5c8;
637
682
  }
638
- function _0x5228c1(_0x4a52e8) {
639
- const _0x3c7abf = _0x2756a7;
640
- if (_0x4a52e8[_0x3c7abf(_0xc18b40._0x2b2988)] != null)
641
- return _0x4a52e8[_0x3c7abf(0x218)] + ':t' + _0x4a52e8[_0x3c7abf(_0xc18b40._0x3eb4f0)];
642
- if (_0x4a52e8[_0x3c7abf(_0xc18b40._0x16cf2b)])
643
- return _0x4a52e8[_0x3c7abf(0x218)] + ':' + _0x4a52e8[_0x3c7abf(_0xc18b40._0x16cf2b)];
644
- if (_0x4a52e8['threadId'])
645
- return _0x4a52e8['channelTarget'] + ':' + _0x4a52e8[_0x3c7abf(0x2b8)]['slice'](0x0, 0x8);
646
- return _0x4a52e8[_0x3c7abf(_0xc18b40._0x1ce751)];
683
+ function _0x1ebfc5(_0x2d49ce) {
684
+ const _0x511007 = _0x33fabc;
685
+ if (_0x2d49ce[_0x511007(_0x541e97._0xff3332)] != null)
686
+ return _0x2d49ce[_0x511007(_0x541e97._0x50ceb9)] + ':t' + _0x2d49ce[_0x511007(0x16c)];
687
+ if (_0x2d49ce[_0x511007(_0x541e97._0x24e3ac)])
688
+ return _0x2d49ce[_0x511007(_0x541e97._0x50ceb9)] + ':' + _0x2d49ce[_0x511007(_0x541e97._0x19cb01)];
689
+ if (_0x2d49ce[_0x511007(0x12b)])
690
+ return _0x2d49ce[_0x511007(_0x541e97._0x50ceb9)] + ':' + _0x2d49ce[_0x511007(0x12b)][_0x511007(_0x541e97._0x3bebfe)](0x0, 0x8);
691
+ return _0x2d49ce[_0x511007(0x228)];
647
692
  }
648
- function _0x24bd75(_0x5a8a1b, _0x2044a2) {
649
- const _0x28e11c = _0x2756a7;
693
+ function _0xf1a7a5(_0x4ac391, _0x3c6919) {
694
+ const _0x379b68 = _0x33fabc;
650
695
  try {
651
- const _0x2bd4c5 = parseTarget(_0x5a8a1b);
652
- if (_0x2bd4c5[_0x28e11c(0x21d)] !== _0x28e11c(_0x22b75d._0x315b81) || _0x2bd4c5[_0x28e11c(_0x22b75d._0x3cecf9)] !== _0x2044a2['channelTarget'])
696
+ const _0xecb65 = parseTarget(_0x4ac391);
697
+ if (_0xecb65[_0x379b68(0x205)] !== _0x379b68(0x231) || _0xecb65[_0x379b68(0x228)] !== _0x3c6919[_0x379b68(0x228)])
653
698
  return ![];
654
- if (_0x2044a2[_0x28e11c(_0x22b75d._0x2cd395)] != null && _0x2bd4c5[_0x28e11c(_0x22b75d._0x138489)] === 't' + _0x2044a2[_0x28e11c(0x355)])
699
+ if (_0x3c6919[_0x379b68(0x16c)] != null && _0xecb65[_0x379b68(0x152)] === 't' + _0x3c6919[_0x379b68(0x16c)])
655
700
  return !![];
656
- if (_0x2044a2[_0x28e11c(_0x22b75d._0x5f139c)])
657
- return _0x2bd4c5[_0x28e11c(0x29a)] === _0x2044a2[_0x28e11c(0x2c0)] || _0x2044a2['rootMessageId']['startsWith'](_0x2bd4c5[_0x28e11c(_0x22b75d._0x138489)]);
658
- if (_0x2044a2['threadId'])
659
- return _0x2bd4c5[_0x28e11c(_0x22b75d._0x138489)] === _0x2044a2[_0x28e11c(_0x22b75d._0x1d5db7)] || _0x2044a2[_0x28e11c(_0x22b75d._0x1d5db7)][_0x28e11c(_0x22b75d._0x563680)](_0x2bd4c5['threadShortId']);
701
+ if (_0x3c6919[_0x379b68(_0x3f0974._0x40e069)])
702
+ return _0xecb65[_0x379b68(_0x3f0974._0x303714)] === _0x3c6919[_0x379b68(0x156)] || _0x3c6919[_0x379b68(_0x3f0974._0x40e069)][_0x379b68(0x134)](_0xecb65[_0x379b68(_0x3f0974._0x31fe60)]);
703
+ if (_0x3c6919[_0x379b68(_0x3f0974._0x4ac259)])
704
+ return _0xecb65[_0x379b68(_0x3f0974._0x38f9a7)] === _0x3c6919[_0x379b68(0x12b)] || _0x3c6919[_0x379b68(0x12b)]['startsWith'](_0xecb65['threadShortId']);
660
705
  return ![];
661
706
  } catch {
662
707
  return ![];
663
708
  }
664
709
  }
665
- function _0x139358(_0x247e64, _0xfb6ac) {
666
- const _0x47d82b = _0x2756a7;
710
+ function _0x4a6b13(_0x31b75c, _0x3e64c9) {
711
+ const _0x16d778 = _0x33fabc;
667
712
  try {
668
- const _0x3a5191 = parseTarget(_0x247e64);
669
- if (_0x3a5191[_0x47d82b(_0x176559._0x4aaaeb)] !== _0x47d82b(0x2ac))
713
+ const _0x409654 = parseTarget(_0x31b75c);
714
+ if (_0x409654['kind'] !== _0x16d778(0x231))
670
715
  return ![];
671
- const _0x57366a = typeof _0xfb6ac['threadNumber'] === 'number' && Number[_0x47d82b(0x2d5)](_0xfb6ac[_0x47d82b(_0x176559._0x2500cf)]) ? _0xfb6ac['threadNumber'] : void 0x0;
672
- if (_0x57366a != null && _0x3a5191[_0x47d82b(_0x176559._0x5cc1ad)] === 't' + _0x57366a)
716
+ const _0x5cd3d1 = typeof _0x3e64c9[_0x16d778(0x16c)] === _0x16d778(_0x174598._0x1ea0d2) && Number[_0x16d778(_0x174598._0x1a857e)](_0x3e64c9['threadNumber']) ? _0x3e64c9[_0x16d778(0x16c)] : void 0x0;
717
+ if (_0x5cd3d1 != null && _0x409654[_0x16d778(0x152)] === 't' + _0x5cd3d1)
673
718
  return !![];
674
- const _0x18f0c3 = typeof _0xfb6ac['rootMessageId'] === _0x47d82b(0x27d) ? _0xfb6ac[_0x47d82b(_0x176559._0x5c96fc)] : void 0x0;
675
- if (_0x18f0c3)
676
- return _0x3a5191['threadShortId'] === _0x18f0c3 || _0x18f0c3[_0x47d82b(0x31a)](_0x3a5191['threadShortId']);
677
- const _0x205b91 = typeof _0xfb6ac['threadId'] === _0x47d82b(0x27d) ? _0xfb6ac['threadId'] : void 0x0;
678
- return Boolean(_0x205b91) && (_0x3a5191['threadShortId'] === _0x205b91 || _0x205b91[_0x47d82b(0x31a)](_0x3a5191[_0x47d82b(0x29a)]));
719
+ const _0x55410d = typeof _0x3e64c9[_0x16d778(_0x174598._0x374b04)] === _0x16d778(_0x174598._0x4fc1de) ? _0x3e64c9[_0x16d778(_0x174598._0x23fae4)] : void 0x0;
720
+ if (_0x55410d)
721
+ return _0x409654[_0x16d778(0x152)] === _0x55410d || _0x55410d[_0x16d778(_0x174598._0x4d256b)](_0x409654['threadShortId']);
722
+ const _0x3a14f0 = typeof _0x3e64c9['threadId'] === _0x16d778(_0x174598._0x4fc1de) ? _0x3e64c9[_0x16d778(_0x174598._0xdd9f4d)] : void 0x0;
723
+ return Boolean(_0x3a14f0) && (_0x409654[_0x16d778(0x152)] === _0x3a14f0 || _0x3a14f0['startsWith'](_0x409654[_0x16d778(0x152)]));
679
724
  } catch {
680
725
  return ![];
681
726
  }
682
727
  }
683
- function _0x164b3f(_0x5987be) {
684
- const _0x3b1f25 = _0x2756a7;
685
- return _0x5987be[_0x3b1f25(0x301)]?.[_0x3b1f25(_0x9ab422._0x5a2c27)] ?? _0x5987be['participant']?.['id'] ?? _0x5987be[_0x3b1f25(0x2e6)] ?? '';
728
+ function _0x219d49(_0xafa0c9) {
729
+ const _0x6f99a3 = _0x33fabc;
730
+ return _0xafa0c9[_0x6f99a3(0x1ec)]?.[_0x6f99a3(_0x61f15d._0x1da682)] ?? _0xafa0c9['participant']?.['id'] ?? _0xafa0c9['participantId'] ?? '';
686
731
  }
687
- function _0x160b3e(_0x3ddb87) {
688
- const _0x1a1bd3 = _0x2756a7;
689
- return _0x3ddb87[_0x1a1bd3(0x1f5)]?.[_0x1a1bd3(0x32a)] ?? _0x164b3f(_0x3ddb87);
732
+ function _0x4fffb7(_0x4a2b4d) {
733
+ const _0x506a79 = _0x33fabc;
734
+ return _0x4a2b4d[_0x506a79(0x1a3)]?.[_0x506a79(0x252)] ?? _0x219d49(_0x4a2b4d);
690
735
  }
691
- async function _0x186c67(_0x16b581) {
692
- const _0x59b023 = _0x2756a7, _0x1fda16 = Math[_0x59b023(_0x2a0d08._0x308dff)](_0x16b581[_0x59b023(0x304)] ?? 0x32, 0x64), _0x4b677d = await _0xe6d09a(), _0x588576 = new URLSearchParams();
693
- _0x588576[_0x59b023(0x250)](_0x59b023(0x304), String(_0x1fda16));
694
- _0x16b581[_0x59b023(0x2b8)] ? (_0x588576['set'](_0x59b023(0x2b8), _0x16b581['threadId']), _0x588576[_0x59b023(0x250)](_0x59b023(0x2d4), _0x16b581[_0x59b023(_0x2a0d08._0x31e996)])) : _0x588576[_0x59b023(_0x2a0d08._0x414cfa)](_0x59b023(0x2d4), _0x16b581[_0x59b023(0x2d4)]);
695
- _0x16b581['before'] && _0x588576['set'](_0x59b023(_0x2a0d08._0x29ca11), String(_0x16b581[_0x59b023(0x214)]));
696
- _0x16b581[_0x59b023(0x237)] !== void 0x0 && _0x588576[_0x59b023(0x250)](_0x59b023(0x237), String(_0x16b581[_0x59b023(_0x2a0d08._0x56ecbb)]));
697
- const _0x2e7224 = await _0x1396b1(_0x59b023(_0x2a0d08._0x36bd3f) + _0x2b7590[_0x59b023(0x204)] + _0x59b023(0x2cf) + _0x588576[_0x59b023(0x265)](), {
698
- 'headers': _0x4e5c5f,
699
- 'method': _0x59b023(0x2c1)
700
- }), _0x47f6c5 = (_0x2e7224[_0x59b023(0x313)] ?? [])[_0x59b023(0x252)](_0x296fb9 => ({
701
- 'attachments': (_0x296fb9[_0x59b023(0x31e)] ?? [])[_0x59b023(0x252)](_0x355b29 => ({
702
- 'filename': _0x355b29['filename'] ?? _0x355b29['id'],
703
- 'id': _0x355b29['id']
736
+ async function _0x362874(_0x6a2880) {
737
+ const _0x33e04e = _0x33fabc, _0x1e0173 = Math[_0x33e04e(0x20a)](_0x6a2880[_0x33e04e(0x23a)] ?? 0x32, 0x64), _0x4f8160 = await _0x1a4a1c(), _0x24e305 = new URLSearchParams();
738
+ _0x24e305[_0x33e04e(0x1da)]('limit', String(_0x1e0173));
739
+ _0x6a2880[_0x33e04e(0x12b)] ? (_0x24e305['set'](_0x33e04e(_0xc699f4._0x39867f), _0x6a2880[_0x33e04e(0x12b)]), _0x24e305['set'](_0x33e04e(0x1f3), _0x6a2880[_0x33e04e(0x1f3)])) : _0x24e305[_0x33e04e(0x1da)](_0x33e04e(_0xc699f4._0x18cd4e), _0x6a2880[_0x33e04e(_0xc699f4._0x29bf55)]);
740
+ _0x6a2880[_0x33e04e(_0xc699f4._0x5e505f)] && _0x24e305[_0x33e04e(_0xc699f4._0x70b06f)]('cursor', String(_0x6a2880[_0x33e04e(0x125)]));
741
+ _0x6a2880[_0x33e04e(_0xc699f4._0x3283f9)] !== void 0x0 && _0x24e305[_0x33e04e(0x1da)](_0x33e04e(_0xc699f4._0x267c9d), String(_0x6a2880[_0x33e04e(0x1f4)]));
742
+ const _0x3ad488 = await _0x5de536('/internal/agent/' + _0x2473a7[_0x33e04e(_0xc699f4._0x15250f)] + '/history?' + _0x24e305[_0x33e04e(0x18d)](), {
743
+ 'headers': _0xed62b4,
744
+ 'method': _0x33e04e(0x203)
745
+ }), _0x520f91 = (_0x3ad488[_0x33e04e(_0xc699f4._0x358287)] ?? [])[_0x33e04e(_0xc699f4._0xb3c60)](_0x2e216d => ({
746
+ 'attachments': (_0x2e216d[_0x33e04e(0x15b)] ?? [])[_0x33e04e(0x24b)](_0x1dd537 => ({
747
+ 'filename': _0x1dd537[_0x33e04e(0xf4)] ?? _0x1dd537['id'],
748
+ 'id': _0x1dd537['id']
704
749
  })),
705
- 'content': _0x296fb9[_0x59b023(0x275)] ?? '',
706
- 'createdAt': _0x296fb9[_0x59b023(0x350)],
707
- ..._0x296fb9['kind'] && _0x296fb9[_0x59b023(0x21d)] !== _0x59b023(0x32b) ? { 'kind': _0x296fb9['kind'] } : {},
708
- 'messageId': _0x296fb9['id'],
709
- 'senderName': _0x420347(_0x296fb9[_0x59b023(0x30b)], _0x4b677d),
710
- 'senderType': _0x3f0eb1(_0x296fb9['senderParticipantId'], _0x4b677d),
711
- 'seq': _0x296fb9[_0x59b023(0x2ba)] ?? 0x0
750
+ 'content': _0x2e216d[_0x33e04e(0x1ad)] ?? '',
751
+ 'createdAt': _0x2e216d[_0x33e04e(0x168)],
752
+ ..._0x2e216d[_0x33e04e(0x205)] && _0x2e216d[_0x33e04e(0x205)] !== _0x33e04e(0x108) ? { 'kind': _0x2e216d[_0x33e04e(0x205)] } : {},
753
+ 'messageId': _0x2e216d['id'],
754
+ 'senderName': _0x5438ca(_0x2e216d[_0x33e04e(0x1d5)], _0x4f8160),
755
+ 'senderType': _0x2f464d(_0x2e216d['senderParticipantId'], _0x4f8160),
756
+ 'seq': _0x2e216d[_0x33e04e(0x149)] ?? 0x0
712
757
  }));
713
758
  return {
714
- 'channel': _0x16b581['channelTarget'],
715
- 'hasMore': _0x2e7224['meta']?.[_0x59b023(0x2b7)] ?? ![],
716
- 'messages': _0x47f6c5,
717
- 'nextCursor': _0x2e7224[_0x59b023(_0x2a0d08._0x2e5228)]?.['cursor']
759
+ 'channel': _0x6a2880['channelTarget'],
760
+ 'hasMore': _0x3ad488['meta']?.[_0x33e04e(0x248)] ?? ![],
761
+ 'messages': _0x520f91,
762
+ 'nextCursor': _0x3ad488[_0x33e04e(_0xc699f4._0x4fb984)]?.[_0x33e04e(0x183)]
718
763
  };
719
764
  }
720
765
  return {
721
- async 'sendMessage'(_0x5843f4) {
722
- const _0x1f3a4a = _0x2756a7, _0x56f508 = await _0x5cf0f7(_0x5843f4[_0x1f3a4a(_0x23ed14._0x2e49d5)]), _0xd53ca8 = _0x5843f4[_0x1f3a4a(_0x23ed14._0xe23d44)][_0x1f3a4a(_0x23ed14._0x51ada4)]('@') ? extractMentionedParticipantIds(_0x5843f4[_0x1f3a4a(0x337)], await _0xe6d09a()) : [], _0x3d2669 = await _0x1396b1(_0x1f3a4a(0x308) + _0x2b7590[_0x1f3a4a(0x204)] + '/send', {
723
- 'body': JSON[_0x1f3a4a(0x229)]({
724
- 'attachment_ids': _0x5843f4['attachmentIds'],
725
- 'bodyMarkdown': _0x5843f4[_0x1f3a4a(0x337)],
726
- 'channelId': _0x56f508[_0x1f3a4a(0x2d4)],
727
- ..._0xd53ca8[_0x1f3a4a(_0x23ed14._0x345fb8)] > 0x0 ? { 'mentionedParticipantIds': _0xd53ca8 } : {},
728
- 'threadId': _0x56f508[_0x1f3a4a(0x2b8)],
729
- ..._0x5843f4[_0x1f3a4a(0x246)] ? { 'visibility': _0x5843f4[_0x1f3a4a(0x246)] } : {}
766
+ async 'sendMessage'(_0x273f1e) {
767
+ const _0x1763e6 = _0x33fabc, _0x299f0d = await _0x3fd0fe(_0x273f1e[_0x1763e6(_0x29672e._0x5bf6ea)]), _0x3d1e8f = _0x273f1e[_0x1763e6(_0x29672e._0x54e2f8)][_0x1763e6(_0x29672e._0x1b6fb7)]('@') ? extractMentionedParticipantIds(_0x273f1e[_0x1763e6(0x107)], await _0x1a4a1c()) : [], _0x2738c2 = await _0x5de536(_0x1763e6(0x17f) + _0x2473a7[_0x1763e6(0x23d)] + '/send', {
768
+ 'body': JSON['stringify']({
769
+ 'attachment_ids': _0x273f1e[_0x1763e6(0x28a)],
770
+ 'bodyMarkdown': _0x273f1e['content'],
771
+ 'channelId': _0x299f0d[_0x1763e6(_0x29672e._0x371dd8)],
772
+ ..._0x273f1e['metadataJson'] !== void 0x0 ? { 'metadataJson': _0x273f1e['metadataJson'] } : {},
773
+ ..._0x3d1e8f[_0x1763e6(_0x29672e._0x2bb867)] > 0x0 ? { 'mentionedParticipantIds': _0x3d1e8f } : {},
774
+ 'threadId': _0x299f0d[_0x1763e6(_0x29672e._0x2e48fa)],
775
+ ..._0x273f1e[_0x1763e6(0x22e)] ? { 'visibility': _0x273f1e[_0x1763e6(_0x29672e._0x44ef31)] } : {}
730
776
  }),
731
- 'headers': _0x4e5c5f,
732
- 'method': _0x1f3a4a(_0x23ed14._0xb654c0)
777
+ 'headers': _0xed62b4,
778
+ 'method': _0x1763e6(0x143)
733
779
  });
734
- return { 'messageId': _0x3d2669[_0x1f3a4a(_0x23ed14._0x1ed388)]?.['id'] ?? '' };
780
+ return { 'messageId': _0x2738c2[_0x1763e6(0x1c7)]?.['id'] ?? '' };
735
781
  },
736
782
  async 'listSchedules'() {
737
- const _0x9a51c3 = _0x2756a7, _0x64aa66 = await _0x1396b1(_0x9a51c3(_0x2375d6._0x1a0303), {
738
- 'headers': _0x4e5c5f,
739
- 'method': _0x9a51c3(_0x2375d6._0x457d7a)
783
+ const _0x4082ca = _0x33fabc, _0x15281c = await _0x5de536(_0x4082ca(_0x2433f4._0x2cc565), {
784
+ 'headers': _0xed62b4,
785
+ 'method': _0x4082ca(_0x2433f4._0x5daf00)
740
786
  });
741
- return _0x64aa66[_0x9a51c3(0x313)] ?? [];
787
+ return _0x15281c[_0x4082ca(_0x2433f4._0x369242)] ?? [];
742
788
  },
743
- async 'claimScheduleRun'(_0x2495d9) {
744
- const _0x158c8c = _0x2756a7, _0x181e70 = await _0x1396b1(_0x158c8c(_0x1979be._0x4a53d4), {
745
- 'body': JSON[_0x158c8c(_0x1979be._0x40bc9e)](_0x2495d9),
746
- 'headers': _0x4e5c5f,
789
+ async 'claimScheduleRun'(_0x509658) {
790
+ const _0x77e312 = _0x33fabc, _0x1d3919 = await _0x5de536(_0x77e312(_0x4143c7._0x5377d3), {
791
+ 'body': JSON[_0x77e312(_0x4143c7._0x231098)](_0x509658),
792
+ 'headers': _0xed62b4,
747
793
  'method': 'POST'
748
794
  });
749
- return _0x181e70[_0x158c8c(0x313)] ?? {
795
+ return _0x1d3919[_0x77e312(0x1c7)] ?? {
750
796
  'granted': ![],
751
797
  'runId': null,
752
798
  'schedule': null,
753
- 'scheduledFor': _0x2495d9[_0x158c8c(0x2cb)]
799
+ 'scheduledFor': _0x509658[_0x77e312(0x271)]
754
800
  };
755
801
  },
756
- async 'startScheduleRun'(_0x22a3db) {
757
- const _0x191d67 = _0x2756a7, _0xf6d222 = await _0x1396b1('/api/internal/schedules/' + encodeURIComponent(_0x22a3db[_0x191d67(0x223)]) + _0x191d67(_0x2158be._0x4615b7), {
758
- 'body': JSON[_0x191d67(_0x2158be._0x8e4cac)]({}),
759
- 'headers': _0x4e5c5f,
760
- 'method': _0x191d67(0x258)
802
+ async 'startScheduleRun'(_0x3b7133) {
803
+ const _0x5e11fd = _0x33fabc, _0x1bd3e0 = await _0x5de536(_0x5e11fd(_0x5e5de5._0x47ed66) + encodeURIComponent(_0x3b7133[_0x5e11fd(_0x5e5de5._0x3be9af)]) + _0x5e11fd(0x1df), {
804
+ 'body': JSON[_0x5e11fd(0xf8)]({}),
805
+ 'headers': _0xed62b4,
806
+ 'method': _0x5e11fd(_0x5e5de5._0x3c7494)
761
807
  });
762
- return _0xf6d222['data'] ?? {
808
+ return _0x1bd3e0[_0x5e11fd(0x1c7)] ?? {
763
809
  'claimedByDaemonId': '',
764
- 'id': _0x22a3db[_0x191d67(_0x2158be._0x13d2ba)],
810
+ 'id': _0x3b7133[_0x5e11fd(0x1e5)],
765
811
  'scheduleId': '',
766
- 'status': 'running'
812
+ 'status': _0x5e11fd(_0x5e5de5._0x476373)
767
813
  };
768
814
  },
769
- async 'finishScheduleRun'(_0x50c262) {
770
- const _0xb17363 = _0x2756a7, _0x3729ff = await _0x1396b1(_0xb17363(_0x558603._0x185135) + encodeURIComponent(_0x50c262[_0xb17363(_0x558603._0x139853)]) + _0xb17363(_0x558603._0x3dc23a), {
771
- 'body': JSON[_0xb17363(_0x558603._0x176637)]({
772
- 'error': _0x50c262[_0xb17363(_0x558603._0x158070)],
773
- 'resultJson': _0x50c262['resultJson'],
774
- 'status': _0x50c262[_0xb17363(_0x558603._0x5502b7)]
815
+ async 'finishScheduleRun'(_0x3eac34) {
816
+ const _0x13d950 = _0x33fabc, _0x404568 = await _0x5de536('/api/internal/schedules/' + encodeURIComponent(_0x3eac34['runId']) + _0x13d950(0x22a), {
817
+ 'body': JSON['stringify']({
818
+ 'error': _0x3eac34[_0x13d950(_0x198eb7._0x4d1407)],
819
+ 'resultJson': _0x3eac34[_0x13d950(0x279)],
820
+ 'status': _0x3eac34[_0x13d950(_0x198eb7._0x430c82)]
775
821
  }),
776
- 'headers': _0x4e5c5f,
777
- 'method': 'POST'
822
+ 'headers': _0xed62b4,
823
+ 'method': _0x13d950(0x143)
778
824
  });
779
- return _0x3729ff['data'] ?? {
825
+ return _0x404568[_0x13d950(0x1c7)] ?? {
780
826
  'nextRunAt': null,
781
827
  'run': {
782
828
  'claimedByDaemonId': '',
783
- 'id': _0x50c262[_0xb17363(_0x558603._0x139853)],
829
+ 'id': _0x3eac34[_0x13d950(_0x198eb7._0x19554b)],
784
830
  'scheduleId': '',
785
- 'status': _0x50c262[_0xb17363(_0x558603._0x5502b7)]
831
+ 'status': _0x3eac34[_0x13d950(_0x198eb7._0xbcf615)]
786
832
  }
787
833
  };
788
834
  },
789
- async 'listTasks'(_0x3c3337) {
790
- const _0x1adf87 = _0x2756a7, _0x48dba7 = new URLSearchParams();
791
- return _0x48dba7[_0x1adf87(0x250)](_0x1adf87(0x302), _0x3c3337[_0x1adf87(_0x9c02e2._0x18311f)]), _0x3c3337[_0x1adf87(0x34a)] && _0x48dba7[_0x1adf87(0x250)](_0x1adf87(0x34a), _0x3c3337[_0x1adf87(0x34a)]), _0x4a359f(_0x1adf87(_0x9c02e2._0x255bef) + _0x2b7590[_0x1adf87(0x204)] + _0x1adf87(_0x9c02e2._0x4df58c) + _0x48dba7[_0x1adf87(_0x9c02e2._0x2b1d69)](), {
792
- 'headers': _0x4e5c5f,
793
- 'method': _0x1adf87(0x2c1)
835
+ async 'listTasks'(_0x8d08fe) {
836
+ const _0x54dd98 = _0x33fabc, _0x3b95c9 = new URLSearchParams();
837
+ return _0x3b95c9[_0x54dd98(_0xdc2989._0x32db31)](_0x54dd98(_0xdc2989._0x58a84a), _0x8d08fe[_0x54dd98(0x196)]), _0x8d08fe[_0x54dd98(_0xdc2989._0x39ac64)] && _0x3b95c9[_0x54dd98(_0xdc2989._0x32db31)](_0x54dd98(_0xdc2989._0x4f742c), _0x8d08fe['status']), _0x43f561('/internal/agent/' + _0x2473a7['agentId'] + _0x54dd98(_0xdc2989._0x55d37f) + _0x3b95c9[_0x54dd98(_0xdc2989._0x653b35)](), {
838
+ 'headers': _0xed62b4,
839
+ 'method': _0x54dd98(_0xdc2989._0x4dc76e)
794
840
  });
795
841
  },
796
- async 'createTasks'(_0x14bbaf) {
797
- const _0x51b488 = _0x2756a7;
798
- return _0x4a359f('/internal/agent/' + _0x2b7590['agentId'] + _0x51b488(0x2ec), {
799
- 'body': JSON[_0x51b488(0x229)]({
800
- ..._0x14bbaf,
801
- 'idempotency_key': _0x3bed44(_0x51b488(_0x4bb2fd._0x1c43dd), _0x14bbaf)
842
+ async 'createTasks'(_0x1a9007) {
843
+ const _0x3493e6 = _0x33fabc;
844
+ return _0x43f561('/internal/agent/' + _0x2473a7[_0x3493e6(0x23d)] + _0x3493e6(_0x78f958._0x3c9af1), {
845
+ 'body': JSON[_0x3493e6(0xf8)]({
846
+ ..._0x1a9007,
847
+ 'idempotency_key': _0x549620(_0x3493e6(0x1ba), _0x1a9007)
802
848
  }),
803
- 'headers': _0x4e5c5f,
804
- 'method': _0x51b488(0x258)
849
+ 'headers': _0xed62b4,
850
+ 'method': _0x3493e6(_0x78f958._0x42da7f)
805
851
  });
806
852
  },
807
- async 'claimTasks'(_0x207203) {
808
- const _0x20155e = _0x2756a7;
809
- return _0x4a359f(_0x20155e(_0x4b4c60._0x2b9638) + _0x2b7590[_0x20155e(_0x4b4c60._0x503f2d)] + '/tasks/claim', {
810
- 'body': JSON[_0x20155e(_0x4b4c60._0x2e5628)]({
811
- ..._0x207203,
812
- 'idempotency_key': _0x3bed44('claim_tasks', _0x207203)
853
+ async 'claimTasks'(_0x56eb67) {
854
+ const _0x4da4f4 = _0x33fabc;
855
+ return _0x43f561('/internal/agent/' + _0x2473a7[_0x4da4f4(0x23d)] + _0x4da4f4(0x19a), {
856
+ 'body': JSON[_0x4da4f4(0xf8)]({
857
+ ..._0x56eb67,
858
+ 'idempotency_key': _0x549620(_0x4da4f4(_0x1f8f42._0x103ef8), _0x56eb67)
813
859
  }),
814
- 'headers': _0x4e5c5f,
815
- 'method': 'POST'
860
+ 'headers': _0xed62b4,
861
+ 'method': _0x4da4f4(_0x1f8f42._0x40b3c3)
816
862
  });
817
863
  },
818
- async 'unclaimTask'(_0x1d3eea) {
819
- const _0x3e8ffc = _0x2756a7;
820
- return _0x4a359f(_0x3e8ffc(_0x3f4cca._0x3112ea) + _0x2b7590[_0x3e8ffc(_0x3f4cca._0x539b3e)] + _0x3e8ffc(_0x3f4cca._0x59f0d2), {
821
- 'body': JSON['stringify']({
822
- ..._0x1d3eea,
823
- 'idempotency_key': _0x3bed44('unclaim_task', _0x1d3eea)
864
+ async 'unclaimTask'(_0x405dd2) {
865
+ const _0x5c93be = _0x33fabc;
866
+ return _0x43f561(_0x5c93be(_0x2a26e6._0x3c3075) + _0x2473a7[_0x5c93be(0x23d)] + '/tasks/unclaim', {
867
+ 'body': JSON[_0x5c93be(0xf8)]({
868
+ ..._0x405dd2,
869
+ 'idempotency_key': _0x549620(_0x5c93be(0x147), _0x405dd2)
824
870
  }),
825
- 'headers': _0x4e5c5f,
826
- 'method': _0x3e8ffc(0x258)
871
+ 'headers': _0xed62b4,
872
+ 'method': _0x5c93be(_0x2a26e6._0x32f806)
827
873
  });
828
874
  },
829
- async 'updateTaskStatus'(_0x577f11) {
830
- const _0x24ba7c = _0x2756a7;
831
- return _0x4a359f(_0x24ba7c(0x308) + _0x2b7590[_0x24ba7c(_0xf3a834._0x3e1815)] + '/tasks/update-status', {
832
- 'body': JSON[_0x24ba7c(_0xf3a834._0xda57d5)]({
833
- ..._0x577f11,
834
- 'idempotency_key': _0x3bed44(_0x24ba7c(0x219), _0x577f11)
875
+ async 'updateTaskStatus'(_0xae777a) {
876
+ const _0x49b56a = _0x33fabc;
877
+ return _0x43f561(_0x49b56a(0x17f) + _0x2473a7[_0x49b56a(_0x5e78cc._0x17f4de)] + _0x49b56a(0x211), {
878
+ 'body': JSON['stringify']({
879
+ ..._0xae777a,
880
+ 'idempotency_key': _0x549620(_0x49b56a(0x256), _0xae777a)
835
881
  }),
836
- 'headers': _0x4e5c5f,
882
+ 'headers': _0xed62b4,
837
883
  'method': 'POST'
838
884
  });
839
885
  },
840
- async 'uploadFile'(_0x522ee7) {
841
- const _0x4da94f = _0x2756a7, _0x5607ba = await _0x5cf0f7(_0x522ee7['channel']);
842
- if (_0x5607ba[_0x4da94f(0x2b8)])
843
- throw new Error(_0x4da94f(0x321));
844
- const _0x5a694e = await _0x1396b1(_0x4da94f(_0x3546b1._0x267b66) + _0x2b7590[_0x4da94f(_0x3546b1._0x5798f6)] + _0x4da94f(0x2df), {
845
- 'body': JSON[_0x4da94f(0x229)]({
846
- 'channel': _0x5607ba['target'],
847
- 'contentBase64': _0x522ee7[_0x4da94f(_0x3546b1._0x11d311)],
848
- 'contentType': _0x522ee7['contentType'],
849
- 'originalFilename': _0x522ee7[_0x4da94f(_0x3546b1._0x3a9279)]
886
+ async 'finalizePromotion'(_0x47e55c) {
887
+ const _0x4579d9 = _0x33fabc, _0x36a6c8 = await _0x5de536(_0x4579d9(_0x7a48e9._0x5356f2) + _0x2473a7[_0x4579d9(_0x7a48e9._0xfac6b5)] + _0x4579d9(_0x7a48e9._0x342cb7), {
888
+ 'body': JSON[_0x4579d9(0xf8)](_0x47e55c),
889
+ 'headers': _0xed62b4,
890
+ 'method': _0x4579d9(0x143)
891
+ });
892
+ return _0x36a6c8[_0x4579d9(_0x7a48e9._0x598522)] ?? {
893
+ 'draftMessageId': _0x47e55c['draftMessageId'],
894
+ 'taskIds': []
895
+ };
896
+ },
897
+ async 'uploadFile'(_0x58acbc) {
898
+ const _0x1cb98c = _0x33fabc, _0x1b1ede = await _0x3fd0fe(_0x58acbc[_0x1cb98c(_0x205d95._0x813e2f)]);
899
+ if (_0x1b1ede[_0x1cb98c(0x12b)])
900
+ throw new Error(_0x1cb98c(0x1d6));
901
+ const _0x24e3d8 = await _0x5de536(_0x1cb98c(_0x205d95._0x4ec5d7) + _0x2473a7[_0x1cb98c(_0x205d95._0x4d0d73)] + _0x1cb98c(0x1c6), {
902
+ 'body': JSON[_0x1cb98c(0xf8)]({
903
+ 'channel': _0x1b1ede['target'],
904
+ 'contentBase64': _0x58acbc[_0x1cb98c(_0x205d95._0x4ab2f5)],
905
+ 'contentType': _0x58acbc[_0x1cb98c(0x138)],
906
+ 'originalFilename': _0x58acbc[_0x1cb98c(_0x205d95._0x459dfc)]
850
907
  }),
851
- 'headers': _0x4e5c5f,
852
- 'method': _0x4da94f(0x258)
908
+ 'headers': _0xed62b4,
909
+ 'method': _0x1cb98c(0x143)
853
910
  });
854
911
  return {
855
- 'attachmentId': _0x5a694e[_0x4da94f(0x313)]?.['id'] ?? '',
856
- 'filename': _0x5a694e['data']?.[_0x4da94f(0x33f)] ?? _0x522ee7['filename'],
857
- 'sizeBytes': _0x5a694e['data']?.[_0x4da94f(_0x3546b1._0x4feff6)] ?? 0x0
912
+ 'attachmentId': _0x24e3d8['data']?.['id'] ?? '',
913
+ 'filename': _0x24e3d8[_0x1cb98c(0x1c7)]?.[_0x1cb98c(_0x205d95._0x5d6d61)] ?? _0x58acbc[_0x1cb98c(0xf4)],
914
+ 'sizeBytes': _0x24e3d8[_0x1cb98c(0x1c7)]?.[_0x1cb98c(0x1d8)] ?? 0x0
858
915
  };
859
916
  },
860
- async 'downloadAttachment'(_0x2797cf) {
861
- const _0x1a7376 = _0x2756a7, _0x41e410 = await _0x1396b1('/api/attachments/' + _0x2797cf, {
862
- 'headers': _0x4e5c5f,
863
- 'method': 'GET'
864
- }), _0x234a31 = new AbortController(), _0x22dca5 = setTimeout(() => _0x234a31[_0x1a7376(0x27c)](), _0x371ab8);
917
+ async 'downloadAttachment'(_0x1f38da) {
918
+ const _0x30ac5e = _0x33fabc, _0x238ee1 = await _0x5de536(_0x30ac5e(0x10a) + _0x1f38da, {
919
+ 'headers': _0xed62b4,
920
+ 'method': _0x30ac5e(0x203)
921
+ }), _0x36066b = new AbortController(), _0x1812ec = setTimeout(() => _0x36066b[_0x30ac5e(0x15c)](), _0x57bab3);
865
922
  try {
866
- const _0x1cb14c = await _0x594bcc(_0x5b6c03 + '/api/attachments/' + _0x2797cf + _0x1a7376(_0x1560d9._0x2d738f), {
867
- 'headers': _0x4e5c5f,
868
- 'method': 'GET',
869
- 'signal': _0x234a31['signal']
923
+ const _0x273209 = await _0x5ce332(_0x1e501f + '/api/attachments/' + _0x1f38da + _0x30ac5e(0x13f), {
924
+ 'headers': _0xed62b4,
925
+ 'method': _0x30ac5e(0x203),
926
+ 'signal': _0x36066b[_0x30ac5e(_0x165ba7._0x4c6142)]
870
927
  });
871
- if (!_0x1cb14c['ok'])
872
- throw new Error(_0x1a7376(0x2b1) + _0x1cb14c['status']);
928
+ if (!_0x273209['ok'])
929
+ throw new Error(_0x30ac5e(0x128) + _0x273209[_0x30ac5e(_0x165ba7._0x450a04)]);
873
930
  return {
874
- 'contentType': _0x41e410['data']?.[_0x1a7376(_0x1560d9._0x16fc47)] ?? _0x1cb14c[_0x1a7376(_0x1560d9._0x17e207)][_0x1a7376(0x2be)]('content-type') ?? _0x1a7376(0x2a8),
875
- 'data': Buffer[_0x1a7376(_0x1560d9._0x1b6207)](await _0x1cb14c[_0x1a7376(_0x1560d9._0x1ebd7c)]()),
876
- 'originalFilename': _0x41e410[_0x1a7376(0x313)]?.[_0x1a7376(_0x1560d9._0x3427ad)]
931
+ 'contentType': _0x238ee1['data']?.[_0x30ac5e(_0x165ba7._0x65d50d)] ?? _0x273209[_0x30ac5e(0x192)][_0x30ac5e(_0x165ba7._0x5b8740)](_0x30ac5e(0x22f)) ?? _0x30ac5e(_0x165ba7._0x37b4a9),
932
+ 'data': Buffer['from'](await _0x273209[_0x30ac5e(_0x165ba7._0x1725aa)]()),
933
+ 'originalFilename': _0x238ee1[_0x30ac5e(0x1c7)]?.[_0x30ac5e(0x1b8)]
877
934
  };
878
935
  } finally {
879
- clearTimeout(_0x22dca5);
936
+ clearTimeout(_0x1812ec);
880
937
  }
881
938
  },
882
939
  async 'listServer'() {
883
- return _0xe6d09a({ 'forceRefresh': !![] });
940
+ return _0x1a4a1c({ 'forceRefresh': !![] });
884
941
  },
885
942
  async 'getLatestEventSeq'() {
886
- const _0x55dc3a = _0x2756a7, _0x1878ba = new URLSearchParams();
887
- _0x1878ba[_0x55dc3a(_0x4129f8._0x400b12)](_0x55dc3a(0x2ff), '0'), _0x1878ba['set']('limit', '1');
888
- const _0x333993 = await _0x1396b1('/internal/agent/' + _0x2b7590['agentId'] + _0x55dc3a(0x244) + _0x1878ba['toString'](), {
889
- 'headers': _0x4e5c5f,
943
+ const _0x433614 = _0x33fabc, _0x1a6cb0 = new URLSearchParams();
944
+ _0x1a6cb0[_0x433614(_0x408402._0x38f5e4)](_0x433614(0x11b), '0'), _0x1a6cb0[_0x433614(0x1da)](_0x433614(0x23a), '1');
945
+ const _0x6aba0b = await _0x5de536('/internal/agent/' + _0x2473a7[_0x433614(0x23d)] + _0x433614(_0x408402._0x37cec3) + _0x1a6cb0[_0x433614(0x18d)](), {
946
+ 'headers': _0xed62b4,
890
947
  'method': 'GET'
891
- }), _0x4d4f20 = _0x333993[_0x55dc3a(_0x4129f8._0x3a995b)]?.[_0x55dc3a(0x2b3)];
892
- return typeof _0x4d4f20 === _0x55dc3a(0x201) && _0x4d4f20 > 0x0 ? _0x4d4f20 : 0x0;
948
+ }), _0x33a22f = _0x6aba0b[_0x433614(0x245)]?.[_0x433614(0x1ce)];
949
+ return typeof _0x33a22f === _0x433614(0x116) && _0x33a22f > 0x0 ? _0x33a22f : 0x0;
893
950
  },
894
- async 'readHistory'(_0x4cf961) {
895
- const _0x2c5620 = _0x2756a7, _0x457c88 = await _0x5cf0f7(_0x4cf961[_0x2c5620(_0x5e201e._0x327be7)]);
896
- return _0x186c67({
897
- 'after': _0x4cf961[_0x2c5620(0x237)],
898
- 'before': _0x4cf961[_0x2c5620(0x214)],
899
- 'channelId': _0x457c88[_0x2c5620(_0x5e201e._0x41231e)],
900
- 'channelTarget': _0x457c88[_0x2c5620(_0x5e201e._0x13c880)],
901
- 'limit': _0x4cf961['limit'],
902
- 'threadId': _0x457c88[_0x2c5620(_0x5e201e._0x12b4d2)]
951
+ async 'readHistory'(_0x596f0a) {
952
+ const _0x120cf2 = _0x33fabc, _0x54a7f7 = await _0x3fd0fe(_0x596f0a[_0x120cf2(0x196)]);
953
+ return _0x362874({
954
+ 'after': _0x596f0a[_0x120cf2(_0x1ad7bf._0x1b2f34)],
955
+ 'before': _0x596f0a[_0x120cf2(0x125)],
956
+ 'channelId': _0x54a7f7[_0x120cf2(0x1f3)],
957
+ 'channelTarget': _0x54a7f7[_0x120cf2(_0x1ad7bf._0x1c18d4)],
958
+ 'limit': _0x596f0a[_0x120cf2(_0x1ad7bf._0x3becfc)],
959
+ 'threadId': _0x54a7f7[_0x120cf2(_0x1ad7bf._0x2ca7e)]
903
960
  });
904
961
  },
905
- 'resolveTarget': _0x5cf0f7,
962
+ 'resolveTarget': _0x3fd0fe,
906
963
  async 'checkMessages'() {
907
- const _0x55fb9a = {
908
- _0x543577: 0x28d,
909
- _0x443d18: 0x2d4,
910
- _0x181732: 0x209
911
- }, _0x255e29 = _0x2756a7, _0x5cd995 = new URLSearchParams();
912
- _0x5cd995[_0x255e29(_0x50e3de._0x4174be)](_0x255e29(_0x50e3de._0x1bf4bb), String(_0x528eb4));
913
- const _0xb492b1 = _0x5cd995[_0x255e29(0x265)](), _0x5de225 = await _0x1396b1(_0x255e29(_0x50e3de._0x8f42d4) + _0x2b7590[_0x255e29(0x204)] + '/receive' + (_0xb492b1 ? '?' + _0xb492b1 : ''), {
914
- 'headers': _0x4e5c5f,
915
- 'method': _0x255e29(_0x50e3de._0x378b59)
916
- }), _0xa685e9 = _0x5de225[_0x255e29(0x313)] ?? [], _0x4c56a4 = _0x5de225[_0x255e29(_0x50e3de._0x2b70c7)]?.[_0x255e29(0x2f6)], _0x384c4f = _0x355eea ? _0xa685e9[_0x255e29(0x26c)](_0x32a40b => {
917
- const _0x4581d1 = _0x255e29;
918
- if (_0x32a40b[_0x4581d1(_0x9341bc._0xce52f5)] !== _0x4581d1(0x367))
964
+ const _0x140c0f = { _0x1ab41b: 0x171 }, _0x55fef8 = {
965
+ _0x2842b7: 0x204,
966
+ _0x7b43cc: 0x280,
967
+ _0x34373e: 0x1a8
968
+ }, _0x356e0f = _0x33fabc, _0x111bc3 = new URLSearchParams();
969
+ _0x111bc3[_0x356e0f(0x1da)]('afterSeq', String(_0x18422f));
970
+ const _0x56823d = _0x111bc3[_0x356e0f(_0x3dd138._0x10aeb6)](), _0x45907d = await _0x5de536(_0x356e0f(_0x3dd138._0x929bdc) + _0x2473a7[_0x356e0f(_0x3dd138._0x321f99)] + '/receive' + (_0x56823d ? '?' + _0x56823d : ''), {
971
+ 'headers': _0xed62b4,
972
+ 'method': _0x356e0f(_0x3dd138._0x21eb8c)
973
+ }), _0x4bbe39 = _0x45907d[_0x356e0f(0x1c7)] ?? [], _0x18ec47 = _0x45907d[_0x356e0f(0x245)]?.[_0x356e0f(0x183)], _0x43ccdc = _0x5bfc07 ? _0x4bbe39['filter'](_0x366624 => {
974
+ const _0x3de080 = _0x356e0f;
975
+ if (_0x366624[_0x3de080(_0x55fef8._0x2842b7)] !== _0x3de080(_0x55fef8._0x7b43cc))
919
976
  return ![];
920
- return _0x139358(_0x355eea, asRecord(_0x32a40b[_0x4581d1(0x28d)]));
921
- }) : _0xa685e9, _0x1707fe = _0x4c56a4 !== void 0x0 ? _0x355eea ? Math[_0x255e29(_0x50e3de._0x57fd8e)](_0x528eb4, _0x384c4f[_0x255e29(0x253)] > 0x0 ? _0x384c4f[_0x384c4f[_0x255e29(_0x50e3de._0x33ef27)] - 0x1][_0x255e29(0x31b)] : _0x528eb4) : Math[_0x255e29(_0x50e3de._0x16584e)](_0x528eb4, _0x4c56a4) : _0x384c4f[_0x255e29(_0x50e3de._0x268b7f)] > 0x0 ? Math[_0x255e29(0x228)](_0x528eb4, _0x384c4f[_0x384c4f[_0x255e29(_0x50e3de._0x4c2530)] - 0x1][_0x255e29(0x31b)]) : _0x528eb4, _0x4fece7 = (_0x355eea ? _0x384c4f : _0xa685e9)[_0x255e29(_0x50e3de._0x3e2111)](_0x9249c4 => _0x9249c4['aggregateType'] === _0x255e29(0x367));
922
- let _0x3ae9eb = await _0xe6d09a(), _0x3537f9 = new Map(_0x3ae9eb['channels'][_0x255e29(_0x50e3de._0x1f8627)](_0x5be3b4 => [
923
- _0x5be3b4['id'],
924
- _0x5be3b4
977
+ return _0x4a6b13(_0x5bfc07, asRecord(_0x366624[_0x3de080(_0x55fef8._0x34373e)]));
978
+ }) : _0x4bbe39, _0x2ea2b4 = _0x18ec47 !== void 0x0 ? _0x5bfc07 ? Math['max'](_0x18422f, _0x43ccdc[_0x356e0f(0x1d9)] > 0x0 ? _0x43ccdc[_0x43ccdc['length'] - 0x1]['seq'] : _0x18422f) : Math[_0x356e0f(_0x3dd138._0x485788)](_0x18422f, _0x18ec47) : _0x43ccdc[_0x356e0f(0x1d9)] > 0x0 ? Math[_0x356e0f(_0x3dd138._0x485788)](_0x18422f, _0x43ccdc[_0x43ccdc[_0x356e0f(_0x3dd138._0x559fed)] - 0x1][_0x356e0f(0x1be)]) : _0x18422f, _0x41bf10 = (_0x5bfc07 ? _0x43ccdc : _0x4bbe39)[_0x356e0f(_0x3dd138._0x5a1ed4)](_0x58edb6 => _0x58edb6['aggregateType'] === _0x356e0f(0x280));
979
+ let _0x5b0472 = await _0x1a4a1c(), _0x31d9a1 = new Map(_0x5b0472[_0x356e0f(_0x3dd138._0x426a6a)][_0x356e0f(_0x3dd138._0x215996)](_0x273b12 => [
980
+ _0x273b12['id'],
981
+ _0x273b12
925
982
  ]));
926
- const _0x2cc70a = _0x4fece7[_0x255e29(0x2f2)](_0x14cc82 => {
927
- const _0x504800 = _0x255e29, _0x421573 = asRecord(_0x14cc82[_0x504800(_0x55fb9a._0x543577)]), _0x4cb954 = typeof _0x421573?.[_0x504800(_0x55fb9a._0x443d18)] === 'string' ? _0x421573[_0x504800(0x2d4)] : '';
928
- return Boolean(_0x4cb954) && !_0x3537f9[_0x504800(_0x55fb9a._0x181732)](_0x4cb954);
983
+ const _0xca5134 = _0x41bf10[_0x356e0f(0x270)](_0x52607b => {
984
+ const _0x23a70 = _0x356e0f, _0x1bc3fc = asRecord(_0x52607b['payloadJson']), _0x5022c5 = typeof _0x1bc3fc?.['channelId'] === 'string' ? _0x1bc3fc['channelId'] : '';
985
+ return Boolean(_0x5022c5) && !_0x31d9a1[_0x23a70(_0x140c0f._0x1ab41b)](_0x5022c5);
929
986
  });
930
- _0x2cc70a && (_0x3ae9eb = await _0xe6d09a({ 'forceRefresh': !![] }), _0x3537f9 = new Map(_0x3ae9eb['channels'][_0x255e29(_0x50e3de._0x1f8627)](_0x3ec3ef => [
931
- _0x3ec3ef['id'],
932
- _0x3ec3ef
987
+ _0xca5134 && (_0x5b0472 = await _0x1a4a1c({ 'forceRefresh': !![] }), _0x31d9a1 = new Map(_0x5b0472['channels'][_0x356e0f(0x24b)](_0x4edb8f => [
988
+ _0x4edb8f['id'],
989
+ _0x4edb8f
933
990
  ])));
934
- const _0x122b8e = new Map();
935
- for (const _0x1b5f17 of _0x4fece7) {
936
- const _0x4515a7 = asRecord(_0x1b5f17['payloadJson']), _0x11cdee = typeof _0x4515a7[_0x255e29(0x2d4)] === _0x255e29(_0x50e3de._0x1cd3aa) ? _0x4515a7[_0x255e29(_0x50e3de._0x3bd52f)] : '';
937
- if (!_0x11cdee)
991
+ const _0x5159f9 = new Map();
992
+ for (const _0x3ba0ae of _0x41bf10) {
993
+ const _0x2e3191 = asRecord(_0x3ba0ae[_0x356e0f(0x1a8)]), _0xf1513e = typeof _0x2e3191['channelId'] === _0x356e0f(_0x3dd138._0xef921e) ? _0x2e3191['channelId'] : '';
994
+ if (!_0xf1513e)
938
995
  continue;
939
- const _0x11d288 = typeof _0x4515a7[_0x255e29(0x2b8)] === _0x255e29(_0x50e3de._0x5ceed7) ? _0x4515a7[_0x255e29(0x2b8)] : void 0x0, _0x5172be = typeof _0x4515a7[_0x255e29(_0x50e3de._0x56e702)] === _0x255e29(0x27d) ? _0x4515a7[_0x255e29(_0x50e3de._0x3c0199)] : void 0x0, _0x498d26 = typeof _0x4515a7[_0x255e29(0x355)] === 'number' && Number[_0x255e29(0x2d5)](_0x4515a7[_0x255e29(0x355)]) ? _0x4515a7[_0x255e29(_0x50e3de._0x2be863)] : void 0x0, _0x2dc639 = Boolean(_0x11d288 && (!_0x5172be || _0x1b5f17[_0x255e29(_0x50e3de._0x4c1435)] !== _0x5172be)), _0x2103ee = _0x2dc639 ? _0x11cdee + ':' + _0x11d288 : _0x11cdee, _0x1d2029 = _0x122b8e[_0x255e29(_0x50e3de._0x3bdc6d)](_0x2103ee) ?? {
996
+ const _0x2f3282 = typeof _0x2e3191[_0x356e0f(_0x3dd138._0x10b71e)] === _0x356e0f(_0x3dd138._0x124ca9) ? _0x2e3191[_0x356e0f(_0x3dd138._0x5606b6)] : void 0x0, _0x4e19e6 = typeof _0x2e3191[_0x356e0f(_0x3dd138._0x26a91e)] === _0x356e0f(_0x3dd138._0x3d86a0) ? _0x2e3191[_0x356e0f(_0x3dd138._0x589817)] : void 0x0, _0x30c23f = typeof _0x2e3191[_0x356e0f(_0x3dd138._0x425d99)] === _0x356e0f(_0x3dd138._0x5a4f55) && Number[_0x356e0f(0x12f)](_0x2e3191[_0x356e0f(0x16c)]) ? _0x2e3191[_0x356e0f(_0x3dd138._0x425d99)] : void 0x0, _0x45f23c = Boolean(_0x2f3282 && (!_0x4e19e6 || _0x3ba0ae['aggregateId'] !== _0x4e19e6)), _0x220fb0 = _0x45f23c ? _0xf1513e + ':' + _0x2f3282 : _0xf1513e, _0x3606e8 = _0x5159f9[_0x356e0f(0x151)](_0x220fb0) ?? {
940
997
  'aggregateIds': [],
941
- 'channelId': _0x11cdee,
998
+ 'channelId': _0xf1513e,
942
999
  'entries': new Map(),
943
- 'isThreadReply': _0x2dc639,
944
- 'rootMessageId': _0x5172be,
945
- 'threadNumber': _0x498d26,
946
- 'threadId': _0x2dc639 ? _0x11d288 : void 0x0
1000
+ 'isThreadReply': _0x45f23c,
1001
+ 'rootMessageId': _0x4e19e6,
1002
+ 'threadNumber': _0x30c23f,
1003
+ 'threadId': _0x45f23c ? _0x2f3282 : void 0x0
947
1004
  };
948
- _0x1d2029[_0x255e29(_0x50e3de._0x2be863)] == null && _0x498d26 != null && (_0x1d2029[_0x255e29(_0x50e3de._0x5234fb)] = _0x498d26), !_0x1d2029[_0x255e29(0x2c0)] && _0x5172be && (_0x1d2029[_0x255e29(0x2c0)] = _0x5172be), _0x1d2029['aggregateIds'][_0x255e29(0x320)](_0x1b5f17['aggregateId']), _0x1d2029[_0x255e29(0x36c)][_0x255e29(0x250)](_0x1b5f17[_0x255e29(_0x50e3de._0x5ca2d3)], {
949
- 'payloadJson': _0x1b5f17[_0x255e29(_0x50e3de._0x2dfac5)],
950
- 'seq': _0x1b5f17[_0x255e29(_0x50e3de._0x18b076)]
951
- }), _0x122b8e[_0x255e29(_0x50e3de._0x4174be)](_0x2103ee, _0x1d2029);
1005
+ _0x3606e8[_0x356e0f(_0x3dd138._0x29636e)] == null && _0x30c23f != null && (_0x3606e8['threadNumber'] = _0x30c23f), !_0x3606e8[_0x356e0f(_0x3dd138._0x26a91e)] && _0x4e19e6 && (_0x3606e8[_0x356e0f(0x156)] = _0x4e19e6), _0x3606e8[_0x356e0f(0x153)]['push'](_0x3ba0ae['aggregateId']), _0x3606e8['entries'][_0x356e0f(_0x3dd138._0x290be7)](_0x3ba0ae['aggregateId'], {
1006
+ 'payloadJson': _0x3ba0ae[_0x356e0f(_0x3dd138._0x50f3db)],
1007
+ 'seq': _0x3ba0ae[_0x356e0f(_0x3dd138._0x93f854)]
1008
+ }), _0x5159f9['set'](_0x220fb0, _0x3606e8);
952
1009
  }
953
- const _0x5355b0 = [];
954
- for (const _0x350057 of _0x122b8e[_0x255e29(0x21b)]()) {
1010
+ const _0x9e537c = [];
1011
+ for (const _0x10dfe of _0x5159f9[_0x356e0f(0x214)]()) {
955
1012
  const {
956
- channelId: _0x5c1fc2,
957
- threadId: _0xa5d112,
958
- rootMessageId: _0x18db65,
959
- threadNumber: _0x34cf08,
960
- aggregateIds: _0x494f09,
961
- isThreadReply: _0x2d2aed,
962
- entries: _0x912798
963
- } = _0x350057, _0x43e8c9 = _0x3537f9['get'](_0x5c1fc2), _0x259be3 = _0x43e8c9?.[_0x255e29(0x32a)] ?? _0x5c1fc2, _0x198314 = _0x43e8c9?.[_0x255e29(0x21d)] === 'dm' ? 'dm:' + _0x259be3 : '#' + _0x259be3, _0x4be76 = {
964
- 'channelTarget': _0x198314,
965
- 'rootMessageId': _0x18db65,
966
- 'threadId': _0xa5d112,
967
- 'threadNumber': _0x34cf08
968
- }, _0x4ce595 = await _0x186c67({
969
- 'channelId': _0x5c1fc2,
970
- 'channelTarget': _0x198314,
971
- 'limit': Math['max'](_0x494f09[_0x255e29(_0x50e3de._0x465031)], 0x32),
972
- 'threadId': _0xa5d112
973
- }), _0x94563d = new Map(_0x4ce595[_0x255e29(0x267)]['map'](_0x9ac603 => [
974
- _0x9ac603['messageId'],
975
- _0x9ac603
976
- ])), _0x4e24a4 = _0xa5d112 ? _0x5228c1(_0x4be76) : _0x198314, _0x300cbc = _0x355eea ? _0x2d2aed && _0x24bd75(_0x355eea, _0x4be76) : !![], _0x9cc178 = _0x2d2aed ? _0x300cbc && _0x355eea ? _0x355eea : _0x4e24a4 : _0x198314;
977
- for (const _0x1bc918 of _0x494f09) {
978
- if (!_0x300cbc)
1013
+ channelId: _0x1a783a,
1014
+ threadId: _0x3dc92c,
1015
+ rootMessageId: _0x37ee43,
1016
+ threadNumber: _0x4018ab,
1017
+ aggregateIds: _0x4ae91c,
1018
+ isThreadReply: _0x234d94,
1019
+ entries: _0x1cf524
1020
+ } = _0x10dfe, _0x44f9f8 = _0x31d9a1[_0x356e0f(0x151)](_0x1a783a), _0x54a264 = _0x44f9f8?.['name'] ?? _0x1a783a, _0x4ec112 = _0x44f9f8?.['kind'] === 'dm' ? _0x356e0f(0x182) + _0x54a264 : '#' + _0x54a264, _0x21af6c = {
1021
+ 'channelTarget': _0x4ec112,
1022
+ 'rootMessageId': _0x37ee43,
1023
+ 'threadId': _0x3dc92c,
1024
+ 'threadNumber': _0x4018ab
1025
+ }, _0x50a4e6 = await _0x362874({
1026
+ 'channelId': _0x1a783a,
1027
+ 'channelTarget': _0x4ec112,
1028
+ 'limit': Math[_0x356e0f(_0x3dd138._0x57e104)](_0x4ae91c[_0x356e0f(_0x3dd138._0x155e86)], 0x32),
1029
+ 'threadId': _0x3dc92c
1030
+ }), _0x2ddf52 = new Map(_0x50a4e6[_0x356e0f(0x1de)][_0x356e0f(0x24b)](_0x16ac63 => [
1031
+ _0x16ac63[_0x356e0f(0x175)],
1032
+ _0x16ac63
1033
+ ])), _0x1277f3 = _0x3dc92c ? _0x1ebfc5(_0x21af6c) : _0x4ec112, _0x3e6a30 = _0x5bfc07 ? _0x234d94 && _0xf1a7a5(_0x5bfc07, _0x21af6c) : !![], _0x2a4caa = _0x234d94 ? _0x3e6a30 && _0x5bfc07 ? _0x5bfc07 : _0x1277f3 : _0x4ec112;
1034
+ for (const _0x41be7a of _0x4ae91c) {
1035
+ if (!_0x3e6a30)
979
1036
  continue;
980
- const _0x4f2cde = _0x912798[_0x255e29(_0x50e3de._0x3bdc6d)](_0x1bc918), _0xb3f910 = _0x4f2cde ? asRecord(_0x4f2cde[_0x255e29(0x28d)]) : void 0x0, _0xca24e7 = _0xb3f910?.['taskDeliveryMode'] === _0x255e29(_0x50e3de._0x574775), _0x1f59de = _0x94563d[_0x255e29(0x2be)](_0x1bc918);
981
- if (_0x1f59de) {
982
- _0x5355b0[_0x255e29(_0x50e3de._0x504d5b)]({
983
- 'attachments': _0x1f59de[_0x255e29(0x31e)],
984
- 'content': _0x1f59de[_0x255e29(0x337)],
985
- 'createdAt': _0x1f59de[_0x255e29(_0x50e3de._0x1884d8)],
986
- ..._0x1f59de['kind'] ? { 'kind': _0x1f59de[_0x255e29(0x21d)] } : {},
987
- 'messageId': _0x1f59de[_0x255e29(0x20a)],
988
- 'senderName': _0x1f59de['senderName'],
989
- 'senderType': _0x1f59de[_0x255e29(0x2f5)],
990
- 'target': _0x9cc178,
991
- ..._0xca24e7 ? { 'targetedTask': !![] } : {}
1037
+ const _0x233fa2 = _0x1cf524[_0x356e0f(_0x3dd138._0x3ce148)](_0x41be7a), _0x110b2b = _0x233fa2 ? asRecord(_0x233fa2[_0x356e0f(_0x3dd138._0x62a08a)]) : void 0x0, _0x25b6be = _0x110b2b?.[_0x356e0f(_0x3dd138._0x2286a6)] === 'targeted', _0xbdc84d = _0x2ddf52[_0x356e0f(0x151)](_0x41be7a);
1038
+ if (_0xbdc84d) {
1039
+ const _0x3b5e7d = foldWorkerAgentMessageContent({
1040
+ 'agentId': _0x2473a7['agentId'],
1041
+ 'content': _0xbdc84d[_0x356e0f(0x107)],
1042
+ 'directory': _0x5b0472,
1043
+ 'eventPayload': _0x110b2b,
1044
+ 'senderType': _0xbdc84d[_0x356e0f(0x217)],
1045
+ 'workerThreadTarget': _0x5bfc07
1046
+ });
1047
+ _0x9e537c[_0x356e0f(_0x3dd138._0x1017dc)]({
1048
+ 'attachments': _0xbdc84d[_0x356e0f(_0x3dd138._0x2401e0)],
1049
+ 'content': _0x3b5e7d,
1050
+ 'createdAt': _0xbdc84d[_0x356e0f(_0x3dd138._0x216228)],
1051
+ ..._0xbdc84d['kind'] ? { 'kind': _0xbdc84d[_0x356e0f(_0x3dd138._0xa70a3b)] } : {},
1052
+ 'messageId': _0xbdc84d['messageId'],
1053
+ 'senderName': _0xbdc84d[_0x356e0f(0x224)],
1054
+ 'senderType': _0xbdc84d[_0x356e0f(_0x3dd138._0x258ccd)],
1055
+ 'target': _0x2a4caa,
1056
+ ..._0x25b6be ? { 'targetedTask': !![] } : {}
992
1057
  });
993
1058
  continue;
994
1059
  }
995
- if (_0x4f2cde) {
996
- const _0x5df203 = typeof _0xb3f910?.[_0x255e29(0x30b)] === _0x255e29(0x27d) ? _0xb3f910[_0x255e29(0x30b)] : '', _0x91b136 = typeof _0xb3f910?.['bodyMarkdown'] === 'string' ? _0xb3f910[_0x255e29(_0x50e3de._0xd8f79f)] : '', _0x207439 = typeof _0xb3f910?.[_0x255e29(_0x50e3de._0xbc7b27)] === _0x255e29(_0x50e3de._0x1cd3aa) && _0xb3f910[_0x255e29(0x21d)] !== _0x255e29(0x32b) ? _0xb3f910[_0x255e29(0x21d)] : void 0x0;
997
- _0x5df203 && _0x91b136 && _0x5355b0['push']({
998
- 'attachments': [],
999
- 'content': _0x91b136,
1000
- 'createdAt': new Date()[_0x255e29(_0x50e3de._0x142078)](),
1001
- ..._0x207439 ? { 'kind': _0x207439 } : {},
1002
- 'messageId': _0x1bc918,
1003
- 'senderName': _0x420347(_0x5df203, _0x3ae9eb),
1004
- 'senderType': _0x3f0eb1(_0x5df203, _0x3ae9eb),
1005
- 'target': _0x9cc178,
1006
- ..._0xca24e7 ? { 'targetedTask': !![] } : {}
1007
- });
1060
+ if (_0x233fa2) {
1061
+ const _0x2768a4 = typeof _0x110b2b?.[_0x356e0f(0x1d5)] === 'string' ? _0x110b2b['senderParticipantId'] : '', _0x2a4174 = typeof _0x110b2b?.[_0x356e0f(_0x3dd138._0x38581b)] === _0x356e0f(0x257) ? _0x110b2b[_0x356e0f(0x1ad)] : '', _0x32695f = typeof _0x110b2b?.[_0x356e0f(_0x3dd138._0x292e7b)] === 'string' && _0x110b2b[_0x356e0f(_0x3dd138._0x45bebc)] !== 'chat' ? _0x110b2b[_0x356e0f(0x205)] : void 0x0;
1062
+ if (_0x2768a4 && _0x2a4174) {
1063
+ const _0xe288e0 = _0x2f464d(_0x2768a4, _0x5b0472), _0x3a5c1e = foldWorkerAgentMessageContent({
1064
+ 'agentId': _0x2473a7[_0x356e0f(_0x3dd138._0x1e42f4)],
1065
+ 'content': _0x2a4174,
1066
+ 'directory': _0x5b0472,
1067
+ 'eventPayload': _0x110b2b,
1068
+ 'senderType': _0xe288e0,
1069
+ 'workerThreadTarget': _0x5bfc07
1070
+ });
1071
+ _0x9e537c[_0x356e0f(0x16e)]({
1072
+ 'attachments': [],
1073
+ 'content': _0x3a5c1e,
1074
+ 'createdAt': new Date()[_0x356e0f(0x157)](),
1075
+ ..._0x32695f ? { 'kind': _0x32695f } : {},
1076
+ 'messageId': _0x41be7a,
1077
+ 'senderName': _0x5438ca(_0x2768a4, _0x5b0472),
1078
+ 'senderType': _0xe288e0,
1079
+ 'target': _0x2a4caa,
1080
+ ..._0x25b6be ? { 'targetedTask': !![] } : {}
1081
+ });
1082
+ }
1008
1083
  }
1009
1084
  }
1010
1085
  }
1011
- if (_0x1707fe > 0x0) {
1012
- if (_0x2fe8c5)
1013
- await _0x1aa0ec(_0x1707fe);
1086
+ if (_0x2ea2b4 > 0x0) {
1087
+ if (_0x358623)
1088
+ await _0x30c7bb(_0x2ea2b4);
1014
1089
  else
1015
- _0x2bfb67 && await _0x2c601c(_0x1707fe);
1090
+ _0x166139 && await _0x1f5060(_0x2ea2b4);
1016
1091
  }
1017
- return _0x1707fe > _0x528eb4 && (_0x528eb4 = _0x1707fe), { 'messages': _0x5355b0 };
1092
+ return _0x2ea2b4 > _0x18422f && (_0x18422f = _0x2ea2b4), { 'messages': _0x9e537c };
1018
1093
  }
1019
1094
  };
1020
1095
  }
1021
- function toLocalTime(_0x849b73) {
1022
- const _0x4c6bbd = {
1023
- _0x24aad: 0x206,
1024
- _0x2d79b2: 0x1f6
1025
- }, _0x3e02fa = _0x5e089b, _0x26ca76 = new Date(_0x849b73);
1026
- if (Number[_0x3e02fa(0x23c)](_0x26ca76[_0x3e02fa(0x348)]()))
1027
- return _0x849b73;
1028
- const _0x2273bc = _0x55582c => String(_0x55582c)[_0x3e02fa(0x20b)](0x2, '0');
1029
- return _0x26ca76['getFullYear']() + '-' + _0x2273bc(_0x26ca76[_0x3e02fa(0x21f)]() + 0x1) + '-' + _0x2273bc(_0x26ca76[_0x3e02fa(_0x4c6bbd._0x24aad)]()) + '\x20' + _0x2273bc(_0x26ca76['getHours']()) + ':' + _0x2273bc(_0x26ca76[_0x3e02fa(_0x4c6bbd._0x2d79b2)]()) + ':' + _0x2273bc(_0x26ca76['getSeconds']());
1096
+ function toLocalTime(_0x6ddb7d) {
1097
+ const _0x1c6d84 = { _0x252a9c: 0x208 }, _0x448413 = _0x42226e, _0x10c331 = new Date(_0x6ddb7d);
1098
+ if (Number[_0x448413(0x1fe)](_0x10c331['getTime']()))
1099
+ return _0x6ddb7d;
1100
+ const _0x539f88 = _0x1fd80d => String(_0x1fd80d)['padStart'](0x2, '0');
1101
+ return _0x10c331[_0x448413(0x1c4)]() + '-' + _0x539f88(_0x10c331[_0x448413(0x105)]() + 0x1) + '-' + _0x539f88(_0x10c331['getDate']()) + '\x20' + _0x539f88(_0x10c331[_0x448413(_0x1c6d84._0x252a9c)]()) + ':' + _0x539f88(_0x10c331[_0x448413(0x181)]()) + ':' + _0x539f88(_0x10c331[_0x448413(0x161)]());
1030
1102
  }
1031
- function formatAttachmentSuffix(_0x8e71ea) {
1032
- const _0x4c13b8 = {
1033
- _0x1c94eb: 0x253,
1034
- _0x1938a2: 0x252
1035
- }, _0x4167e5 = _0x5e089b;
1036
- if (!_0x8e71ea || _0x8e71ea[_0x4167e5(_0x4c13b8._0x1c94eb)] === 0x0)
1103
+ function formatAttachmentSuffix(_0x5774f4) {
1104
+ const _0x3b8b94 = {
1105
+ _0x451147: 0x24b,
1106
+ _0x4c858f: 0x243
1107
+ }, _0x4285d5 = _0x42226e;
1108
+ if (!_0x5774f4 || _0x5774f4['length'] === 0x0)
1037
1109
  return '';
1038
- return '\x20[' + _0x8e71ea[_0x4167e5(0x253)] + _0x4167e5(0x1ff) + (_0x8e71ea[_0x4167e5(0x253)] > 0x1 ? 's' : '') + ':\x20' + _0x8e71ea[_0x4167e5(_0x4c13b8._0x1938a2)](_0x5292bf => _0x5292bf['filename'] + _0x4167e5(0x2d3) + _0x5292bf['id'] + ')')[_0x4167e5(0x2e3)](',\x20') + _0x4167e5(0x2fa);
1110
+ return '\x20[' + _0x5774f4['length'] + '\x20attachment' + (_0x5774f4['length'] > 0x1 ? 's' : '') + ':\x20' + _0x5774f4[_0x4285d5(_0x3b8b94._0x451147)](_0x5d9de8 => _0x5d9de8[_0x4285d5(0xf4)] + _0x4285d5(0xf5) + _0x5d9de8['id'] + ')')['join'](',\x20') + _0x4285d5(_0x3b8b94._0x4c858f);
1039
1111
  }
1040
- function formatCheckMessages(_0x3145f4) {
1041
- const _0x2184fd = {
1042
- _0x124032: 0x21d,
1043
- _0x598465: 0x32b,
1044
- _0x286273: 0x215,
1045
- _0x5ea064: 0x350,
1046
- _0x2667bb: 0x2c3
1047
- }, _0x3f8b47 = _0x5e089b;
1048
- if (_0x3145f4[_0x3f8b47(0x253)] === 0x0)
1049
- return 'No\x20new\x20messages.';
1050
- return _0x3145f4[_0x3f8b47(0x252)](_0x25beac => {
1051
- const _0x3093e3 = _0x3f8b47, _0x3889cf = _0x25beac[_0x3093e3(0x2f5)] === 'agent' ? '\x20type=agent' : '', _0xe35200 = _0x25beac[_0x3093e3(_0x2184fd._0x124032)] && _0x25beac[_0x3093e3(_0x2184fd._0x124032)] !== _0x3093e3(_0x2184fd._0x598465) ? '\x20kind=' + _0x25beac['kind'] : '';
1052
- return '[target=' + _0x25beac['target'] + _0x3093e3(_0x2184fd._0x286273) + _0x25beac[_0x3093e3(0x20a)]['slice'](0x0, 0x8) + '\x20time=' + toLocalTime(_0x25beac[_0x3093e3(_0x2184fd._0x5ea064)]) + _0x3889cf + _0xe35200 + _0x3093e3(_0x2184fd._0x2667bb) + _0x25beac[_0x3093e3(0x2f0)] + ':\x20' + _0x25beac[_0x3093e3(0x337)] + formatAttachmentSuffix(_0x25beac[_0x3093e3(0x31e)]);
1053
- })[_0x3f8b47(0x2e3)]('\x0a');
1112
+ function formatCheckMessages(_0x3be840) {
1113
+ const _0x38e1a5 = {
1114
+ _0x243b2f: 0x1d9,
1115
+ _0x2d452e: 0x27f
1116
+ }, _0x5eff2a = {
1117
+ _0x6c4f4d: 0x217,
1118
+ _0x416b12: 0x1cc,
1119
+ _0x10bdb9: 0x205,
1120
+ _0x2f2758: 0x275,
1121
+ _0x41df18: 0x11a,
1122
+ _0x21a4af: 0x175,
1123
+ _0x15ad7f: 0x168,
1124
+ _0x4de6c1: 0x139
1125
+ }, _0x3c6d7a = _0x42226e;
1126
+ if (_0x3be840[_0x3c6d7a(_0x38e1a5._0x243b2f)] === 0x0)
1127
+ return _0x3c6d7a(0x189);
1128
+ return _0x3be840[_0x3c6d7a(0x24b)](_0x2e4c14 => {
1129
+ const _0xb039bd = _0x3c6d7a, _0x7c9dbf = _0x2e4c14[_0xb039bd(_0x5eff2a._0x6c4f4d)] === _0xb039bd(0x173) ? _0xb039bd(_0x5eff2a._0x416b12) : '', _0x328ef2 = _0x2e4c14[_0xb039bd(0x205)] && _0x2e4c14[_0xb039bd(_0x5eff2a._0x10bdb9)] !== _0xb039bd(0x108) ? _0xb039bd(_0x5eff2a._0x2f2758) + _0x2e4c14[_0xb039bd(0x205)] : '';
1130
+ return _0xb039bd(0x1bb) + _0x2e4c14[_0xb039bd(0x1dd)] + _0xb039bd(_0x5eff2a._0x41df18) + _0x2e4c14[_0xb039bd(_0x5eff2a._0x21a4af)][_0xb039bd(0x244)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x2e4c14[_0xb039bd(_0x5eff2a._0x15ad7f)]) + _0x7c9dbf + _0x328ef2 + _0xb039bd(_0x5eff2a._0x4de6c1) + _0x2e4c14[_0xb039bd(0x224)] + ':\x20' + _0x2e4c14['content'] + formatAttachmentSuffix(_0x2e4c14[_0xb039bd(0x15b)]);
1131
+ })[_0x3c6d7a(_0x38e1a5._0x2d452e)]('\x0a');
1054
1132
  }
1055
- function formatHistory(_0x52c05e) {
1056
- const _0x1ec57a = {
1057
- _0x179f77: 0x253,
1058
- _0x253d1e: 0x1f7,
1059
- _0x3fb84f: 0x2e3,
1060
- _0x138c7b: 0x353,
1061
- _0x3198f1: 0x35c,
1062
- _0x156548: 0x327,
1063
- _0x450ecc: 0x1f7,
1064
- _0x5f0de0: 0x302
1065
- }, _0x3ac9f5 = {
1066
- _0x3daeb3: 0x35e,
1067
- _0x9df63c: 0x21d,
1068
- _0x1a5aa5: 0x20c,
1069
- _0x21b471: 0x350,
1070
- _0x5e4ac7: 0x337
1071
- }, _0x15542f = _0x5e089b;
1072
- if (_0x52c05e[_0x15542f(0x267)][_0x15542f(_0x1ec57a._0x179f77)] === 0x0)
1073
- return _0x15542f(_0x1ec57a._0x253d1e) + _0x52c05e[_0x15542f(0x302)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
1074
- const _0x52a1d3 = _0x52c05e['messages'][_0x15542f(0x252)](_0x23fdc5 => {
1075
- const _0x19749a = _0x15542f, _0x3ca896 = _0x23fdc5['senderType'] === 'agent' ? _0x19749a(_0x3ac9f5._0x3daeb3) : '', _0x2cc966 = _0x23fdc5[_0x19749a(0x21d)] && _0x23fdc5[_0x19749a(_0x3ac9f5._0x9df63c)] !== 'chat' ? _0x19749a(_0x3ac9f5._0x1a5aa5) + _0x23fdc5['kind'] : '';
1076
- return _0x19749a(0x248) + _0x23fdc5[_0x19749a(0x31b)] + '\x20msg=' + _0x23fdc5[_0x19749a(0x20a)] + '\x20time=' + toLocalTime(_0x23fdc5[_0x19749a(_0x3ac9f5._0x21b471)]) + _0x3ca896 + _0x2cc966 + _0x19749a(0x2c3) + _0x23fdc5[_0x19749a(0x2f0)] + ':\x20' + _0x23fdc5[_0x19749a(_0x3ac9f5._0x5e4ac7)] + formatAttachmentSuffix(_0x23fdc5[_0x19749a(0x31e)]);
1077
- })[_0x15542f(_0x1ec57a._0x3fb84f)]('\x0a'), _0x32a424 = _0x52c05e[_0x15542f(0x2b7)] && _0x52c05e[_0x15542f(0x2dd)] ? _0x15542f(_0x1ec57a._0x138c7b) + _0x52c05e[_0x15542f(0x267)]['length'] + _0x15542f(_0x1ec57a._0x3198f1) + _0x52c05e[_0x15542f(0x2dd)] + _0x15542f(_0x1ec57a._0x156548) : '';
1078
- return _0x15542f(_0x1ec57a._0x450ecc) + _0x52c05e[_0x15542f(_0x1ec57a._0x5f0de0)] + '\x20(' + _0x52c05e['messages'][_0x15542f(0x253)] + '\x20messages)\x0a\x0a' + _0x52a1d3 + _0x32a424;
1133
+ function formatHistory(_0xe39a0a) {
1134
+ const _0x445747 = {
1135
+ _0x430a60: 0x1de,
1136
+ _0x4fda31: 0x196,
1137
+ _0x2fe34c: 0x1d3,
1138
+ _0x50a269: 0x24b,
1139
+ _0x2a9eb8: 0x27f,
1140
+ _0x44ebf2: 0x268,
1141
+ _0x1a36f4: 0x26e,
1142
+ _0x59f3b6: 0x1d9,
1143
+ _0xc1cba9: 0x1e3,
1144
+ _0x45b04e: 0x1d9
1145
+ }, _0x19330f = {
1146
+ _0x3d7126: 0x173,
1147
+ _0x2295f8: 0x205,
1148
+ _0x458e5a: 0x205,
1149
+ _0x37cb1a: 0x108,
1150
+ _0x5d4961: 0x275,
1151
+ _0x1ba7c6: 0x1e6,
1152
+ _0x421c8e: 0x1be,
1153
+ _0x90aaee: 0x168,
1154
+ _0x350267: 0x139
1155
+ }, _0x4c2db5 = _0x42226e;
1156
+ if (_0xe39a0a[_0x4c2db5(_0x445747._0x430a60)][_0x4c2db5(0x1d9)] === 0x0)
1157
+ return '##\x20Message\x20History\x20for\x20' + _0xe39a0a[_0x4c2db5(_0x445747._0x4fda31)] + _0x4c2db5(_0x445747._0x2fe34c);
1158
+ const _0x225f44 = _0xe39a0a[_0x4c2db5(_0x445747._0x430a60)][_0x4c2db5(_0x445747._0x50a269)](_0x300bb6 => {
1159
+ const _0x588d8c = _0x4c2db5, _0x478e5b = _0x300bb6[_0x588d8c(0x217)] === _0x588d8c(_0x19330f._0x3d7126) ? _0x588d8c(0x1cc) : '', _0x241570 = _0x300bb6[_0x588d8c(_0x19330f._0x2295f8)] && _0x300bb6[_0x588d8c(_0x19330f._0x458e5a)] !== _0x588d8c(_0x19330f._0x37cb1a) ? _0x588d8c(_0x19330f._0x5d4961) + _0x300bb6['kind'] : '';
1160
+ return _0x588d8c(_0x19330f._0x1ba7c6) + _0x300bb6[_0x588d8c(_0x19330f._0x421c8e)] + _0x588d8c(0x11a) + _0x300bb6[_0x588d8c(0x175)] + _0x588d8c(0x1ed) + toLocalTime(_0x300bb6[_0x588d8c(_0x19330f._0x90aaee)]) + _0x478e5b + _0x241570 + _0x588d8c(_0x19330f._0x350267) + _0x300bb6[_0x588d8c(0x224)] + ':\x20' + _0x300bb6['content'] + formatAttachmentSuffix(_0x300bb6[_0x588d8c(0x15b)]);
1161
+ })[_0x4c2db5(_0x445747._0x2a9eb8)]('\x0a'), _0x1bf925 = _0xe39a0a['hasMore'] && _0xe39a0a[_0x4c2db5(_0x445747._0x44ebf2)] ? _0x4c2db5(_0x445747._0x1a36f4) + _0xe39a0a[_0x4c2db5(0x1de)][_0x4c2db5(_0x445747._0x59f3b6)] + _0x4c2db5(0x1bc) + _0xe39a0a['nextCursor'] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
1162
+ return _0x4c2db5(_0x445747._0xc1cba9) + _0xe39a0a['channel'] + '\x20(' + _0xe39a0a[_0x4c2db5(0x1de)][_0x4c2db5(_0x445747._0x45b04e)] + '\x20messages)\x0a\x0a' + _0x225f44 + _0x1bf925;
1079
1163
  }
1080
- function formatServerDirectory(_0x2c7d30) {
1081
- const _0x1cec6f = {
1082
- _0x44659e: 0x253,
1083
- _0x4e13a9: 0x2fc,
1084
- _0x1fc249: 0x253,
1085
- _0x5ee3d3: 0x2e4,
1086
- _0x3afdc0: 0x252,
1087
- _0x1e7a19: 0x2fc,
1088
- _0x44dcea: 0x33d,
1089
- _0x18f525: 0x253,
1090
- _0x41b12f: 0x33d,
1091
- _0x483eda: 0x295,
1092
- _0x26d09e: 0x339,
1093
- _0xfce3ba: 0x23b
1094
- }, _0x49888a = _0x5e089b, _0x4a1199 = _0x2c7d30['channels'][_0x49888a(_0x1cec6f._0x44659e)] > 0x0 ? _0x2c7d30[_0x49888a(0x317)]['map'](_0xe9fd31 => _0xe9fd31[_0x49888a(0x26d)] ? '-\x20#' + _0xe9fd31[_0x49888a(0x32a)] + '\x20—\x20' + _0xe9fd31[_0x49888a(0x26d)] : _0x49888a(0x335) + _0xe9fd31['name'])[_0x49888a(0x2e3)]('\x0a') : _0x49888a(_0x1cec6f._0x4e13a9), _0x375ec1 = _0x2c7d30['agents'][_0x49888a(_0x1cec6f._0x1fc249)] > 0x0 ? _0x2c7d30[_0x49888a(_0x1cec6f._0x5ee3d3)][_0x49888a(_0x1cec6f._0x3afdc0)](_0x1d888c => _0x49888a(0x227) + _0x1d888c['name'])['join']('\x0a') : _0x49888a(_0x1cec6f._0x1e7a19), _0x362793 = _0x2c7d30[_0x49888a(_0x1cec6f._0x44dcea)][_0x49888a(_0x1cec6f._0x18f525)] > 0x0 ? _0x2c7d30[_0x49888a(_0x1cec6f._0x41b12f)]['map'](_0x3abb07 => _0x49888a(0x227) + _0x3abb07[_0x49888a(0x32a)])[_0x49888a(0x2e3)]('\x0a') : _0x49888a(0x2fc);
1164
+ function formatServerDirectory(_0x4478f4) {
1165
+ const _0x25922b = {
1166
+ _0x4c2f9c: 0x1d9,
1167
+ _0x7084b7: 0x24b,
1168
+ _0x301eed: 0x140,
1169
+ _0x12a789: 0x1d0,
1170
+ _0x2f504f: 0x1d0,
1171
+ _0x3beb0a: 0x159
1172
+ }, _0x4578f9 = _0x42226e, _0x13d309 = _0x4478f4['channels'][_0x4578f9(_0x25922b._0x4c2f9c)] > 0x0 ? _0x4478f4['channels'][_0x4578f9(_0x25922b._0x7084b7)](_0x5131b6 => _0x5131b6[_0x4578f9(0x16b)] ? _0x4578f9(0x1ee) + _0x5131b6[_0x4578f9(0x252)] + _0x4578f9(0x21d) + _0x5131b6[_0x4578f9(0x16b)] : _0x4578f9(0x1ee) + _0x5131b6[_0x4578f9(0x252)])[_0x4578f9(0x27f)]('\x0a') : _0x4578f9(_0x25922b._0x301eed), _0x2e5654 = _0x4478f4[_0x4578f9(_0x25922b._0x12a789)]['length'] > 0x0 ? _0x4478f4[_0x4578f9(_0x25922b._0x2f504f)][_0x4578f9(0x24b)](_0x53754a => _0x4578f9(0x281) + _0x53754a['name'])[_0x4578f9(0x27f)]('\x0a') : '(none)', _0x24e2ea = _0x4478f4['humans'][_0x4578f9(0x1d9)] > 0x0 ? _0x4478f4[_0x4578f9(0x282)]['map'](_0x1ffb3d => _0x4578f9(0x281) + _0x1ffb3d[_0x4578f9(0x252)])[_0x4578f9(0x27f)]('\x0a') : _0x4578f9(0x140);
1095
1173
  return [
1096
- _0x49888a(_0x1cec6f._0x483eda) + _0x2c7d30[_0x49888a(_0x1cec6f._0x26d09e)],
1174
+ _0x4578f9(0x11e) + _0x4478f4[_0x4578f9(0x1ac)],
1097
1175
  '',
1098
- _0x49888a(0x319),
1099
- _0x4a1199,
1176
+ '###\x20Channels',
1177
+ _0x13d309,
1100
1178
  '',
1101
- _0x49888a(_0x1cec6f._0xfce3ba),
1102
- _0x375ec1,
1179
+ _0x4578f9(_0x25922b._0x3beb0a),
1180
+ _0x2e5654,
1103
1181
  '',
1104
- _0x49888a(0x1fb),
1105
- _0x362793
1106
- ][_0x49888a(0x2e3)]('\x0a');
1182
+ _0x4578f9(0x1c8),
1183
+ _0x24e2ea
1184
+ ][_0x4578f9(0x27f)]('\x0a');
1107
1185
  }
1108
- function formatUploadResult(_0x3b85f8) {
1109
- const _0x602ffa = {
1110
- _0x2e71cc: 0x306,
1111
- _0x50b948: 0x30d,
1112
- _0x95422f: 0x347
1113
- }, _0x165d5f = _0x5e089b;
1114
- return _0x165d5f(_0x602ffa._0x2e71cc) + _0x3b85f8[_0x165d5f(_0x602ffa._0x50b948)] + '\x20(' + (_0x3b85f8[_0x165d5f(_0x602ffa._0x95422f)] / 0x400)[_0x165d5f(0x25a)](0x1) + _0x165d5f(0x288) + _0x3b85f8['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
1186
+ function formatUploadResult(_0x2afe3d) {
1187
+ const _0x48124c = {
1188
+ _0xf695f4: 0x1f5,
1189
+ _0x79e7ad: 0xf4,
1190
+ _0xa31bce: 0x19d,
1191
+ _0x1ffe06: 0x142
1192
+ }, _0x471eb1 = _0x42226e;
1193
+ return _0x471eb1(_0x48124c._0xf695f4) + _0x2afe3d[_0x471eb1(_0x48124c._0x79e7ad)] + '\x20(' + (_0x2afe3d[_0x471eb1(0x1d8)] / 0x400)[_0x471eb1(_0x48124c._0xa31bce)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x2afe3d[_0x471eb1(0x21b)] + _0x471eb1(_0x48124c._0x1ffe06);
1115
1194
  }
1116
- function formatViewFileResult(_0x3cff96, _0x50d2a3) {
1117
- const _0x48c6a8 = _0x5e089b;
1118
- return _0x50d2a3 ? 'File\x20already\x20cached\x20at:\x20' + _0x3cff96 : _0x48c6a8(0x324) + _0x3cff96;
1195
+ function formatViewFileResult(_0x218220, _0x40758a) {
1196
+ return _0x40758a ? 'File\x20already\x20cached\x20at:\x20' + _0x218220 : 'Downloaded\x20to:\x20' + _0x218220;
1119
1197
  }
1120
- function formatTaskList(_0x38fba5, _0x200f7a) {
1121
- const _0x44727f = {
1122
- _0x7d3fe0: 0x253,
1123
- _0xb86a7a: 0x240
1124
- }, _0x42701e = {
1125
- _0x399cf9: 0x2b0,
1126
- _0x1aab39: 0x2e2,
1127
- _0x174541: 0x2b0,
1128
- _0x48372b: 0x20a,
1129
- _0x574d40: 0x34e,
1130
- _0x424725: 0x2de,
1131
- _0x406d48: 0x36a,
1132
- _0x673e6a: 0x234
1133
- }, _0x482336 = _0x5e089b;
1134
- if (_0x38fba5[_0x482336(_0x44727f._0x7d3fe0)] === 0x0)
1135
- return _0x482336(_0x44727f._0xb86a7a);
1136
- return _0x38fba5[_0x482336(0x252)](_0x58cced => {
1137
- const _0x5cfb33 = _0x482336, _0x20ffd0 = _0x58cced[_0x5cfb33(_0x42701e._0x399cf9)] == null ? _0x5cfb33(_0x42701e._0x1aab39) : _0x58cced[_0x5cfb33(0x274)] != null ? '#' + _0x58cced['taskNumber'] + '.' + _0x58cced[_0x5cfb33(0x274)] : '#' + _0x58cced[_0x5cfb33(_0x42701e._0x174541)], _0x57e60a = _0x58cced[_0x5cfb33(_0x42701e._0x48372b)] ? _0x5cfb33(_0x42701e._0x574d40) + _0x58cced[_0x5cfb33(0x20a)] : '', _0x5e1c89 = _0x200f7a && _0x58cced[_0x5cfb33(_0x42701e._0x174541)] != null && !_0x58cced[_0x5cfb33(0x274)] && _0x200f7a['has'](_0x58cced[_0x5cfb33(0x2b0)]) ? _0x5cfb33(0x1f3) : '', _0x6dfbc4 = _0x58cced[_0x5cfb33(0x36a)] != null && _0x58cced[_0x5cfb33(0x36a)] > 0x0 ? '\x20(' + (_0x58cced[_0x5cfb33(_0x42701e._0x424725)] ?? 0x0) + '/' + _0x58cced[_0x5cfb33(_0x42701e._0x406d48)] + _0x5cfb33(_0x42701e._0x673e6a) : '', _0x4affa9 = _0x58cced['assigneeName'] ? _0x5cfb33(0x2ad) + _0x58cced['assigneeName'] : '';
1138
- return _0x20ffd0 + '\x20[' + _0x58cced['status'] + ']\x20' + _0x58cced[_0x5cfb33(0x2ed)] + _0x6dfbc4 + _0x4affa9 + _0x57e60a + _0x5e1c89;
1139
- })[_0x482336(0x2e3)]('\x0a');
1198
+ function formatTaskList(_0x1ec882, _0x35b244) {
1199
+ const _0x15dc48 = { _0x266050: 0x24b }, _0xd52aae = {
1200
+ _0x59d612: 0x160,
1201
+ _0x573da2: 0x141,
1202
+ _0x5ce78f: 0x124,
1203
+ _0xf13fab: 0x171,
1204
+ _0x22b17c: 0x1fd,
1205
+ _0x261326: 0x16f,
1206
+ _0x33f760: 0x180,
1207
+ _0x4da42b: 0x23c
1208
+ }, _0x2d10f2 = _0x42226e;
1209
+ if (_0x1ec882['length'] === 0x0)
1210
+ return _0x2d10f2(0x26c);
1211
+ return _0x1ec882[_0x2d10f2(_0x15dc48._0x266050)](_0x47dff9 => {
1212
+ const _0x26f88b = _0x2d10f2, _0x230ffb = _0x47dff9[_0x26f88b(_0xd52aae._0x59d612)] == null ? _0x26f88b(_0xd52aae._0x573da2) : _0x47dff9[_0x26f88b(0x21c)] != null ? '#' + _0x47dff9[_0x26f88b(0x160)] + '.' + _0x47dff9['subtaskNumber'] : '#' + _0x47dff9[_0x26f88b(0x160)], _0x585085 = _0x47dff9[_0x26f88b(0x175)] ? _0x26f88b(_0xd52aae._0x5ce78f) + _0x47dff9[_0x26f88b(0x175)] : '', _0xf7cd36 = _0x35b244 && _0x47dff9[_0x26f88b(0x160)] != null && !_0x47dff9['subtaskNumber'] && _0x35b244[_0x26f88b(_0xd52aae._0xf13fab)](_0x47dff9[_0x26f88b(0x160)]) ? _0x26f88b(_0xd52aae._0x22b17c) : '', _0x337b15 = _0x47dff9[_0x26f88b(0x16f)] != null && _0x47dff9[_0x26f88b(0x16f)] > 0x0 ? '\x20(' + (_0x47dff9['childrenDone'] ?? 0x0) + '/' + _0x47dff9[_0x26f88b(_0xd52aae._0x261326)] + '\x20done)' : '', _0x47a4e7 = _0x47dff9[_0x26f88b(0x114)] ? _0x26f88b(_0xd52aae._0x33f760) + _0x47dff9['assigneeName'] : '';
1213
+ return _0x230ffb + '\x20[' + _0x47dff9['status'] + ']\x20' + _0x47dff9[_0x26f88b(_0xd52aae._0x4da42b)] + _0x337b15 + _0x47a4e7 + _0x585085 + _0xf7cd36;
1214
+ })[_0x2d10f2(0x27f)]('\x0a');
1140
1215
  }
1141
- function formatCreatedTasks(_0x5a0bfc) {
1142
- const _0x57d06b = {
1143
- _0x1aa83e: 0x2b0,
1144
- _0x45fec5: 0x2e2,
1145
- _0x4c0f0b: 0x274,
1146
- _0x2fe3c8: 0x2b0
1147
- }, _0x4e59d2 = _0x5e089b;
1148
- if (_0x5a0bfc[_0x4e59d2(0x253)] === 0x0)
1149
- return _0x4e59d2(0x33b);
1150
- return _0x5a0bfc['map'](_0x462b5d => {
1151
- const _0x230de0 = _0x4e59d2, _0x4633f0 = _0x462b5d[_0x230de0(_0x57d06b._0x1aa83e)] == null ? _0x230de0(_0x57d06b._0x45fec5) : _0x462b5d[_0x230de0(_0x57d06b._0x4c0f0b)] != null ? '#' + _0x462b5d[_0x230de0(_0x57d06b._0x2fe3c8)] + '.' + _0x462b5d[_0x230de0(0x274)] : '#' + _0x462b5d['taskNumber'], _0x266b71 = _0x462b5d[_0x230de0(0x20a)] ? _0x230de0(0x34e) + _0x462b5d[_0x230de0(0x20a)] : '';
1152
- return _0x4633f0 + '\x20' + _0x462b5d[_0x230de0(0x2ed)] + _0x266b71;
1153
- })['join']('\x0a');
1216
+ function formatCreatedTasks(_0x33dd50) {
1217
+ const _0x37e9ec = { _0x19f87f: 0x27f }, _0x4cea62 = {
1218
+ _0x34acb8: 0x160,
1219
+ _0x80bf44: 0x141,
1220
+ _0x35566e: 0x21c
1221
+ }, _0x121bf1 = _0x42226e;
1222
+ if (_0x33dd50[_0x121bf1(0x1d9)] === 0x0)
1223
+ return _0x121bf1(0x14f);
1224
+ return _0x33dd50['map'](_0x353972 => {
1225
+ const _0x39f430 = _0x121bf1, _0x2660d0 = _0x353972[_0x39f430(_0x4cea62._0x34acb8)] == null ? _0x39f430(_0x4cea62._0x80bf44) : _0x353972['subtaskNumber'] != null ? '#' + _0x353972[_0x39f430(_0x4cea62._0x34acb8)] + '.' + _0x353972[_0x39f430(_0x4cea62._0x35566e)] : '#' + _0x353972['taskNumber'], _0x3b9396 = _0x353972[_0x39f430(0x175)] ? '\x20message=' + _0x353972['messageId'] : '';
1226
+ return _0x2660d0 + '\x20' + _0x353972['title'] + _0x3b9396;
1227
+ })[_0x121bf1(_0x37e9ec._0x19f87f)]('\x0a');
1154
1228
  }
1155
- function formatClaimTaskLabel(_0x4d4ba3, _0x183b6b) {
1156
- const _0x5686ff = { _0xddd60b: 0x2e2 }, _0x21b3fb = _0x5e089b;
1157
- if (_0x4d4ba3 == null)
1158
- return _0x21b3fb(_0x5686ff._0xddd60b);
1159
- return _0x183b6b != null ? '#' + _0x4d4ba3 + '.' + _0x183b6b : '#' + _0x4d4ba3;
1229
+ function formatClaimTaskLabel(_0x354c5f, _0x153c3c) {
1230
+ if (_0x354c5f == null)
1231
+ return '(legacy)';
1232
+ return _0x153c3c != null ? '#' + _0x354c5f + '.' + _0x153c3c : '#' + _0x354c5f;
1160
1233
  }
1161
- function formatClaimTaskResults(_0xf58c30) {
1162
- const _0xdb7191 = {
1163
- _0x31beec: 0x253,
1164
- _0x3c6b50: 0x294,
1165
- _0x560117: 0x2e3
1166
- }, _0x92ab52 = {
1167
- _0x509640: 0x1fa,
1168
- _0x1572b6: 0x20a,
1169
- _0x26ea17: 0x243,
1170
- _0x5c74bb: 0x230,
1171
- _0x4a4f69: 0x26c,
1172
- _0x2343f5: 0x278,
1173
- _0x2a1469: 0x326,
1174
- _0x1ad635: 0x222,
1175
- _0x1de6ec: 0x33e,
1176
- _0x2a1ba1: 0x2f9,
1177
- _0x376581: 0x2b0,
1178
- _0x5145f3: 0x35a,
1179
- _0x1d8253: 0x322
1180
- }, _0x45e1a0 = _0x5e089b;
1181
- if (_0xf58c30[_0x45e1a0(_0xdb7191._0x31beec)] === 0x0)
1182
- return _0x45e1a0(_0xdb7191._0x3c6b50);
1183
- return _0xf58c30[_0x45e1a0(0x252)](_0x3a3ce8 => {
1184
- const _0x32b337 = _0x45e1a0;
1185
- if (_0x3a3ce8[_0x32b337(_0x92ab52._0x509640)]) {
1186
- const _0x18144f = formatClaimTaskLabel(_0x3a3ce8['taskNumber'], _0x3a3ce8[_0x32b337(0x274)]), _0x16f880 = _0x3a3ce8[_0x32b337(0x20a)] ? _0x32b337(0x34e) + _0x3a3ce8[_0x32b337(_0x92ab52._0x1572b6)] : '';
1187
- if (_0x3a3ce8['workerHandoff']) {
1188
- const _0x5b59b9 = [
1189
- _0x32b337(_0x92ab52._0x26ea17),
1190
- _0x3a3ce8[_0x32b337(0x241)] ? 'stopMain=true' : null,
1191
- _0x3a3ce8['executionMode'] ? _0x32b337(0x331) + _0x3a3ce8[_0x32b337(0x326)] : null,
1192
- _0x3a3ce8[_0x32b337(_0x92ab52._0x5c74bb)] ? 'threadTarget=' + _0x3a3ce8[_0x32b337(_0x92ab52._0x5c74bb)] : null,
1193
- _0x3a3ce8[_0x32b337(0x231)] ? _0x32b337(0x1e7) + _0x3a3ce8[_0x32b337(0x231)] : null
1194
- ][_0x32b337(_0x92ab52._0x4a4f69)](Boolean)['join']('\x20');
1195
- return _0x18144f + _0x32b337(_0x92ab52._0x2343f5) + _0x16f880 + '\x20' + _0x5b59b9 + _0x32b337(0x2aa);
1234
+ function formatClaimTaskResults(_0x1caa8d) {
1235
+ const _0x5a0d35 = {
1236
+ _0x5b154c: 0x1d9,
1237
+ _0x13ba56: 0x24b
1238
+ }, _0x4e573a = {
1239
+ _0x258257: 0x21c,
1240
+ _0x1f77b3: 0x137,
1241
+ _0x153659: 0x215,
1242
+ _0xbcc3f1: 0x1b9,
1243
+ _0x20c4da: 0x10f,
1244
+ _0x90c255: 0x18e,
1245
+ _0x590a90: 0x195,
1246
+ _0x4d86cc: 0x1b4,
1247
+ _0x908c28: 0x1f8,
1248
+ _0x13518e: 0x1b4,
1249
+ _0x6d02dc: 0x160,
1250
+ _0x2419c3: 0x175,
1251
+ _0x1d8c0f: 0x1a7,
1252
+ _0x45f93e: 0x20e,
1253
+ _0x7f8e38: 0x193
1254
+ }, _0x1e67fb = _0x42226e;
1255
+ if (_0x1caa8d[_0x1e67fb(_0x5a0d35._0x5b154c)] === 0x0)
1256
+ return _0x1e67fb(0x16a);
1257
+ return _0x1caa8d[_0x1e67fb(_0x5a0d35._0x13ba56)](_0x4f5037 => {
1258
+ const _0x295c82 = _0x1e67fb;
1259
+ if (_0x4f5037[_0x295c82(0x12a)]) {
1260
+ const _0x4385a8 = formatClaimTaskLabel(_0x4f5037[_0x295c82(0x160)], _0x4f5037[_0x295c82(_0x4e573a._0x258257)]), _0x5553fb = _0x4f5037[_0x295c82(0x175)] ? _0x295c82(0x124) + _0x4f5037['messageId'] : '';
1261
+ if (_0x4f5037[_0x295c82(_0x4e573a._0x1f77b3)]) {
1262
+ const _0x46bcc8 = [
1263
+ _0x295c82(_0x4e573a._0x153659),
1264
+ _0x4f5037[_0x295c82(_0x4e573a._0xbcc3f1)] ? _0x295c82(0x10d) : null,
1265
+ _0x4f5037[_0x295c82(_0x4e573a._0x20c4da)] ? _0x295c82(_0x4e573a._0x90c255) + _0x4f5037[_0x295c82(0x10f)] : null,
1266
+ _0x4f5037['threadTarget'] ? 'threadTarget=' + _0x4f5037[_0x295c82(_0x4e573a._0x590a90)] : null,
1267
+ _0x4f5037[_0x295c82(0x26d)] ? 'workerDisposition=' + _0x4f5037[_0x295c82(0x26d)] : null
1268
+ ][_0x295c82(0x230)](Boolean)['join']('\x20');
1269
+ return _0x4385a8 + _0x295c82(_0x4e573a._0x4d86cc) + _0x5553fb + '\x20' + _0x46bcc8 + _0x295c82(0x27b);
1196
1270
  }
1197
- if (_0x3a3ce8[_0x32b337(_0x92ab52._0x2a1469)] === _0x32b337(_0x92ab52._0x1ad635))
1198
- return _0x18144f + _0x32b337(_0x92ab52._0x2343f5) + _0x16f880 + '\x20workerHandoff=false\x20executionMode=main\x0aStay\x20in\x20main\x20session:\x20read\x20the\x20referenced\x20plan/document\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20(or\x20otherwise\x20advance\x20the\x20task\x20in\x20main\x20without\x20handing\x20off\x20to\x20a\x20worker).';
1199
- const _0x19f8b9 = _0x3a3ce8[_0x32b337(_0x92ab52._0x1de6ec)] ? _0x32b337(_0x92ab52._0x2a1ba1) + _0x3a3ce8['workerHandoffError'] : '';
1200
- return _0x18144f + _0x32b337(0x278) + _0x16f880 + _0x19f8b9;
1271
+ if (_0x4f5037[_0x295c82(_0x4e573a._0x20c4da)] === _0x295c82(0x14e))
1272
+ return _0x4385a8 + _0x295c82(0x1b4) + _0x5553fb + _0x295c82(0x19f);
1273
+ const _0x265db7 = _0x4f5037[_0x295c82(0x176)] ? _0x295c82(_0x4e573a._0x908c28) + _0x4f5037[_0x295c82(0x176)] : '';
1274
+ return _0x4385a8 + _0x295c82(_0x4e573a._0x13518e) + _0x5553fb + _0x265db7;
1201
1275
  }
1202
- const _0x2f0dfc = _0x3a3ce8['taskNumber'] == null ? _0x3a3ce8['messageId'] ?? _0x32b337(0x2ca) : formatClaimTaskLabel(_0x3a3ce8[_0x32b337(_0x92ab52._0x376581)], _0x3a3ce8[_0x32b337(0x274)]);
1203
- return _0x2f0dfc + _0x32b337(_0x92ab52._0x5145f3) + (_0x3a3ce8['reason'] ?? _0x32b337(_0x92ab52._0x1d8253));
1204
- })[_0x45e1a0(_0xdb7191._0x560117)]('\x0a');
1276
+ const _0x23a7a3 = _0x4f5037[_0x295c82(_0x4e573a._0x6d02dc)] == null ? _0x4f5037[_0x295c82(_0x4e573a._0x2419c3)] ?? _0x295c82(_0x4e573a._0x1d8c0f) : formatClaimTaskLabel(_0x4f5037[_0x295c82(0x160)], _0x4f5037[_0x295c82(0x21c)]);
1277
+ return _0x23a7a3 + _0x295c82(_0x4e573a._0x45f93e) + (_0x4f5037[_0x295c82(0x186)] ?? _0x295c82(_0x4e573a._0x7f8e38));
1278
+ })['join']('\x0a');
1279
+ }
1280
+ function formatUnclaimTaskResult(_0x497201) {
1281
+ const _0x520952 = {
1282
+ _0x588300: 0x160,
1283
+ _0x28dd23: 0x141,
1284
+ _0x225b6c: 0x21c,
1285
+ _0x174f31: 0x1a5
1286
+ }, _0x3ecdc6 = _0x42226e, _0x326e66 = _0x497201[_0x3ecdc6(_0x520952._0x588300)] == null ? _0x3ecdc6(_0x520952._0x28dd23) : _0x497201[_0x3ecdc6(0x21c)] != null ? '#' + _0x497201[_0x3ecdc6(0x160)] + '.' + _0x497201[_0x3ecdc6(_0x520952._0x225b6c)] : '#' + _0x497201[_0x3ecdc6(_0x520952._0x588300)];
1287
+ return _0x326e66 + _0x3ecdc6(0x1db) + _0x497201[_0x3ecdc6(_0x520952._0x174f31)];
1205
1288
  }
1206
- function formatUnclaimTaskResult(_0x1277ba) {
1207
- const _0x37c457 = { _0x2cd927: 0x34a }, _0x31a2dd = _0x5e089b, _0x126d52 = _0x1277ba['taskNumber'] == null ? _0x31a2dd(0x2e2) : _0x1277ba['subtaskNumber'] != null ? '#' + _0x1277ba['taskNumber'] + '.' + _0x1277ba[_0x31a2dd(0x274)] : '#' + _0x1277ba[_0x31a2dd(0x2b0)];
1208
- return _0x126d52 + _0x31a2dd(0x332) + _0x1277ba[_0x31a2dd(_0x37c457._0x2cd927)];
1289
+ function formatUpdateTaskStatusResult(_0x3fa50c) {
1290
+ const _0x1fa7e3 = {
1291
+ _0x3f5d00: 0x160,
1292
+ _0x298fe4: 0x141,
1293
+ _0xb74c9c: 0x21c,
1294
+ _0x45199b: 0x160,
1295
+ _0x30ae97: 0x1db,
1296
+ _0x7bdf29: 0x21a,
1297
+ _0x3ad56e: 0x122
1298
+ }, _0x460e7f = _0x42226e, _0x1c7da3 = _0x3fa50c[_0x460e7f(_0x1fa7e3._0x3f5d00)] == null ? _0x460e7f(_0x1fa7e3._0x298fe4) : _0x3fa50c[_0x460e7f(_0x1fa7e3._0xb74c9c)] != null ? '#' + _0x3fa50c[_0x460e7f(0x160)] + '.' + _0x3fa50c['subtaskNumber'] : '#' + _0x3fa50c[_0x460e7f(_0x1fa7e3._0x45199b)], _0x3ef4a7 = _0x1c7da3 + _0x460e7f(_0x1fa7e3._0x30ae97) + _0x3fa50c[_0x460e7f(0x1a5)];
1299
+ if (_0x3fa50c[_0x460e7f(0x1a5)] !== _0x460e7f(_0x1fa7e3._0x7bdf29))
1300
+ return _0x3ef4a7;
1301
+ return _0x3ef4a7 + _0x460e7f(_0x1fa7e3._0x3ad56e);
1209
1302
  }
1210
- function formatUpdateTaskStatusResult(_0x17e392) {
1211
- const _0x4f08ff = {
1212
- _0x171e77: 0x2b0,
1213
- _0x3bebb6: 0x2e2,
1214
- _0x53947a: 0x2b0,
1215
- _0x57de7a: 0x260
1216
- }, _0x574773 = _0x5e089b, _0x487c80 = _0x17e392[_0x574773(_0x4f08ff._0x171e77)] == null ? _0x574773(_0x4f08ff._0x3bebb6) : _0x17e392[_0x574773(0x274)] != null ? '#' + _0x17e392[_0x574773(_0x4f08ff._0x53947a)] + '.' + _0x17e392['subtaskNumber'] : '#' + _0x17e392[_0x574773(0x2b0)], _0x80e8c7 = _0x487c80 + _0x574773(0x332) + _0x17e392[_0x574773(0x34a)];
1217
- if (_0x17e392[_0x574773(0x34a)] !== _0x574773(0x34c))
1218
- return _0x80e8c7;
1219
- return _0x80e8c7 + _0x574773(_0x4f08ff._0x57de7a);
1303
+ function formatPromotionFinalizeResult(_0x2ed685) {
1304
+ const _0x2de098 = {
1305
+ _0x5a5f09: 0x18b,
1306
+ _0x136c15: 0xfd
1307
+ }, _0x4bee10 = _0x42226e, _0x2fc0a1 = _0x2ed685[_0x4bee10(0x118)][_0x4bee10(0x1d9)] > 0x0 ? _0x2ed685['taskIds'][_0x4bee10(0x27f)](',\x20') : _0x4bee10(0x140);
1308
+ return _0x4bee10(_0x2de098._0x5a5f09) + _0x2ed685[_0x4bee10(_0x2de098._0x136c15)] + _0x4bee10(0x199) + _0x2fc0a1;
1220
1309
  }
1221
1310
  function getChatBridgeToolDefinitions() {
1222
- const _0x2ac744 = {
1223
- _0xb3a13b: 0x1e9,
1224
- _0x26548a: 0x316,
1225
- _0x3a4cbf: 0x270,
1226
- _0x494ae5: 0x1fe,
1227
- _0x1a2c82: 0x303
1228
- }, _0x4a579f = _0x5e089b;
1311
+ const _0x1d06cb = {
1312
+ _0x449a02: 0x169,
1313
+ _0x2bf659: 0x1d4,
1314
+ _0x3537f8: 0x1a4,
1315
+ _0x44848c: 0x256,
1316
+ _0x25af14: 0x167,
1317
+ _0x4cfa75: 0x101
1318
+ }, _0x5ae674 = _0x42226e;
1229
1319
  return [
1230
- { 'name': _0x4a579f(0x362) },
1231
- { 'name': _0x4a579f(_0x2ac744._0xb3a13b) },
1232
- { 'name': 'read_history' },
1233
- { 'name': _0x4a579f(_0x2ac744._0x26548a) },
1234
- { 'name': _0x4a579f(_0x2ac744._0x3a4cbf) },
1235
- { 'name': _0x4a579f(_0x2ac744._0x494ae5) },
1236
- { 'name': 'list_tasks' },
1237
- { 'name': 'create_tasks' },
1238
- { 'name': 'claim_tasks' },
1239
- { 'name': _0x4a579f(0x2eb) },
1240
- { 'name': _0x4a579f(0x219) },
1241
- { 'name': 'get_worker_status' },
1242
- { 'name': 'park_worker' },
1243
- { 'name': _0x4a579f(_0x2ac744._0x1a2c82) },
1244
- { 'name': 'mark_waiting_input' }
1320
+ { 'name': _0x5ae674(_0x1d06cb._0x449a02) },
1321
+ { 'name': 'check_messages' },
1322
+ { 'name': _0x5ae674(_0x1d06cb._0x2bf659) },
1323
+ { 'name': _0x5ae674(0x1af) },
1324
+ { 'name': _0x5ae674(0x14b) },
1325
+ { 'name': _0x5ae674(0x262) },
1326
+ { 'name': _0x5ae674(_0x1d06cb._0x3537f8) },
1327
+ { 'name': _0x5ae674(0x1ba) },
1328
+ { 'name': _0x5ae674(0x130) },
1329
+ { 'name': 'unclaim_task' },
1330
+ { 'name': _0x5ae674(_0x1d06cb._0x44848c) },
1331
+ { 'name': _0x5ae674(_0x1d06cb._0x25af14) },
1332
+ { 'name': _0x5ae674(0x13d) },
1333
+ { 'name': _0x5ae674(0x1d1) },
1334
+ { 'name': _0x5ae674(0x15a) },
1335
+ { 'name': _0x5ae674(_0x1d06cb._0x4cfa75) }
1245
1336
  ];
1246
1337
  }
1247
- function createChatBridgeHandlers(_0x380bda) {
1248
- const _0x2b2a69 = {
1249
- _0x5ea9a3: 0x208,
1250
- _0xa8ad38: 0x36e,
1251
- _0x5d8039: 0x23f
1252
- }, _0x5e176e = {
1253
- _0x39f422: 0x2cd,
1254
- _0x3991ae: 0x2bb,
1255
- _0x1ed1e8: 0x2cd,
1256
- _0x1a90e9: 0x26a,
1257
- _0x18f46b: 0x258,
1258
- _0x54a3cb: 0x239,
1259
- _0x136a9b: 0x345,
1260
- _0x2ce291: 0x22f,
1261
- _0x38caa2: 0x22e,
1262
- _0x491876: 0x32f
1263
- }, _0x29779b = {
1264
- _0x19d442: 0x364,
1265
- _0x5d5412: 0x258,
1266
- _0x18fbf9: 0x229,
1267
- _0x464ce5: 0x204,
1268
- _0x30796f: 0x22e,
1269
- _0x30b04d: 0x352,
1270
- _0x2eeb0a: 0x298,
1271
- _0x3e992d: 0x345
1272
- }, _0x5e13fa = {
1273
- _0xdce8db: 0x2cd,
1274
- _0x57c0c1: 0x239,
1275
- _0x5939e6: 0x34f,
1276
- _0x28b124: 0x284,
1277
- _0x1f9d41: 0x2dc
1278
- }, _0xb2782a = {
1279
- _0x3126af: 0x2cd,
1280
- _0x3afb47: 0x22e,
1281
- _0x38c056: 0x2bf,
1282
- _0x94015d: 0x1eb
1283
- }, _0x1859c2 = {
1284
- _0x14ec5b: 0x34b,
1285
- _0x530248: 0x35d,
1286
- _0x106c3f: 0x24c
1287
- }, _0x25993c = {
1288
- _0x2766e6: 0x211,
1289
- _0x2fc583: 0x307,
1290
- _0x345296: 0x302
1291
- }, _0xd079eb = {
1292
- _0x47ef13: 0x224,
1293
- _0x458e35: 0x314
1294
- }, _0x3560c7 = {
1295
- _0x54eeb6: 0x2ea,
1296
- _0x44978d: 0x2da,
1297
- _0x40c14e: 0x336,
1298
- _0x4ce16d: 0x253,
1299
- _0xb1b29a: 0x22a,
1300
- _0x19ebde: 0x252
1301
- }, _0x11dcd9 = { _0x4d52b8: 0x263 }, _0x57ff4a = {
1302
- _0x23c900: 0x224,
1303
- _0x3654a9: 0x204,
1304
- _0x4c8703: 0x302,
1305
- _0x5c88d7: 0x2c8,
1306
- _0x408e01: 0x34a,
1307
- _0x537be9: 0x277,
1308
- _0xecdbbc: 0x25e,
1309
- _0x15f984: 0x31a,
1310
- _0x412757: 0x2db,
1311
- _0x4a2cb3: 0x1f2,
1312
- _0x92189b: 0x2b0,
1313
- _0x5f54ae: 0x212
1314
- }, _0x1a1645 = { _0x373ecf: 0x1ee }, _0x3eeb61 = { _0x2c25b4: 0x361 }, _0x26342f = {
1315
- _0x5dcdf5: 0x2ea,
1316
- _0x120521: 0x2ab,
1317
- _0x472f9d: 0x2c2,
1318
- _0x106bb2: 0x2e2,
1319
- _0x467297: 0x355,
1320
- _0xcef8e9: 0x259,
1321
- _0x27a70a: 0x330,
1322
- _0xfc0b47: 0x2e3,
1323
- _0xf6b3ac: 0x2e7,
1324
- _0x18a14e: 0x299,
1325
- _0x35e89f: 0x1f4,
1326
- _0x5e4cc8: 0x337,
1327
- _0x4434bc: 0x268,
1328
- _0x2aa75b: 0x36d,
1329
- _0x515159: 0x2cd,
1330
- _0x1a6261: 0x239,
1331
- _0xe4d7c6: 0x229,
1332
- _0x2f4bb4: 0x204,
1333
- _0x34ac83: 0x266,
1334
- _0xedfed7: 0x2bc,
1335
- _0x365ef5: 0x365,
1336
- _0x2ba83b: 0x365,
1337
- _0x227cce: 0x280,
1338
- _0x3b8e70: 0x259
1339
- }, _0x49d135 = {
1340
- _0x2c5b86: 0x22d,
1341
- _0x3e339f: 0x204,
1342
- _0x3d50d6: 0x22e,
1343
- _0x42d0e0: 0x34a,
1344
- _0xe16df7: 0x1f2
1345
- }, _0xef6b4 = {
1346
- _0x11b598: 0x2cd,
1347
- _0x44c303: 0x204,
1348
- _0x15ff56: 0x2cd,
1349
- _0x363fd9: 0x204,
1350
- _0x4aec73: 0x31d
1351
- }, _0x5c236b = {
1352
- _0x42042d: 0x204,
1353
- _0x4b8b73: 0x302,
1354
- _0x28bb69: 0x21d,
1355
- _0x505381: 0x2b0,
1356
- _0x54dda0: 0x355,
1357
- _0x54cdf9: 0x218,
1358
- _0x5ad1b9: 0x27a,
1359
- _0x20b620: 0x2e2,
1360
- _0x166650: 0x2b0,
1361
- _0x3dc17d: 0x215,
1362
- _0x457de8: 0x291,
1363
- _0x3ea19c: 0x337,
1364
- _0x2fcc54: 0x20f,
1365
- _0x5ba0cf: 0x2e3,
1366
- _0x51bb16: 0x2cd,
1367
- _0x544b12: 0x268,
1368
- _0x321f74: 0x352,
1369
- _0x5e1fdf: 0x2cc,
1370
- _0xed491c: 0x1f1
1371
- }, _0x376cec = {
1372
- _0x5dcdc5: 0x2ea,
1373
- _0x204441: 0x26e
1374
- }, _0xe4e7a5 = _0x5e089b;
1375
- function _0x209472(_0x4bbd40, _0x7e96a6) {
1376
- const _0x1ec77f = _0x28d5;
1377
- if (!_0x380bda[_0x1ec77f(_0x376cec._0x5dcdc5)])
1338
+ function createChatBridgeHandlers(_0x41541e) {
1339
+ const _0x4c6c42 = { _0x3ead2c: 0x127 }, _0x1861b4 = {
1340
+ _0x5075d7: 0xf3,
1341
+ _0x4866b9: 0x13b,
1342
+ _0x492f97: 0x17c,
1343
+ _0x119dce: 0x143,
1344
+ _0x1fd13e: 0xf8,
1345
+ _0x5eda39: 0x188,
1346
+ _0x66c154: 0x186,
1347
+ _0x5a453c: 0x1f6,
1348
+ _0x536ddc: 0x186
1349
+ }, _0x37480e = {
1350
+ _0x434df7: 0x1f0,
1351
+ _0x339cdd: 0x1ea
1352
+ }, _0x28479e = {
1353
+ _0x557738: 0x23d,
1354
+ _0x21409c: 0x13b,
1355
+ _0xdfd5fd: 0x19c,
1356
+ _0x236914: 0xf8,
1357
+ _0x3cd66c: 0x274
1358
+ }, _0xe00cc0 = {
1359
+ _0x384889: 0xf3,
1360
+ _0x42f5cc: 0x143,
1361
+ _0x313371: 0xf8,
1362
+ _0x137049: 0x11f,
1363
+ _0x49d283: 0x274,
1364
+ _0x47125a: 0x188
1365
+ }, _0x4e63eb = {
1366
+ _0x1b381a: 0x13b,
1367
+ _0x40285f: 0xf3,
1368
+ _0x4fc3a0: 0x13b,
1369
+ _0x1e3d6e: 0x188,
1370
+ _0x50a42e: 0x113,
1371
+ _0x342cf4: 0x21e
1372
+ }, _0x57aed1 = {
1373
+ _0x385b9d: 0x1c1,
1374
+ _0x51c97e: 0x123,
1375
+ _0x4a992f: 0x1ea,
1376
+ _0x45ee5f: 0x1c7
1377
+ }, _0x281de6 = {
1378
+ _0x42fa2c: 0x1ea,
1379
+ _0x40cfb4: 0x196
1380
+ }, _0x3c49e2 = { _0x4c5514: 0x256 }, _0x195a15 = { _0x4030b8: 0x196 }, _0x449fe6 = {
1381
+ _0x4bcb8f: 0x196,
1382
+ _0x44e0ed: 0x1d9,
1383
+ _0xb09dad: 0x17a,
1384
+ _0x451640: 0x145,
1385
+ _0xce54a5: 0x1d9
1386
+ }, _0x2fb287 = {
1387
+ _0xa38a56: 0x1ba,
1388
+ _0x4cb605: 0x1ea,
1389
+ _0x51bb36: 0x148,
1390
+ _0x457378: 0x10e
1391
+ }, _0x16a5b4 = {
1392
+ _0x15fe9f: 0x13b,
1393
+ _0x3cdfa7: 0x23d,
1394
+ _0x57cde4: 0x196,
1395
+ _0x3a4c88: 0x1a5,
1396
+ _0x22927e: 0xfa,
1397
+ _0x2398e8: 0x1d9,
1398
+ _0x3ce787: 0x1ae,
1399
+ _0x31a678: 0x1c0,
1400
+ _0x4fee02: 0x10e
1401
+ }, _0x5f148a = { _0x5919a0: 0x289 }, _0x2f8be6 = {
1402
+ _0x49bc9c: 0x28b,
1403
+ _0x5c4d3f: 0x1de,
1404
+ _0x4420d5: 0x230
1405
+ }, _0x375951 = {
1406
+ _0x13229c: 0x1ea,
1407
+ _0x44ea98: 0x1dd,
1408
+ _0xc364fd: 0x202,
1409
+ _0x204c45: 0x14e,
1410
+ _0x39aadb: 0x1ea,
1411
+ _0x4a0aac: 0x285,
1412
+ _0x218d10: 0x1cd,
1413
+ _0x5d1acb: 0x107,
1414
+ _0x19a42c: 0x202,
1415
+ _0x4ec786: 0x16c,
1416
+ _0x5e4666: 0x1dd,
1417
+ _0x608e42: 0x1fc,
1418
+ _0x213593: 0x1eb,
1419
+ _0x204bff: 0x157,
1420
+ _0x429ccd: 0x260,
1421
+ _0x290eba: 0x25d,
1422
+ _0x31759a: 0x13b,
1423
+ _0x388228: 0x23d,
1424
+ _0x44a96b: 0x1bf,
1425
+ _0x5bd036: 0x26b,
1426
+ _0x3ed33e: 0x11f,
1427
+ _0x2ce65a: 0x274,
1428
+ _0x59cf1c: 0x1e2,
1429
+ _0x29e9c3: 0x27f,
1430
+ _0x589a43: 0x1dc,
1431
+ _0x309581: 0x200
1432
+ }, _0x3aef42 = {
1433
+ _0x1e9277: 0x13b,
1434
+ _0x57326c: 0x23d,
1435
+ _0x30dfb9: 0x170,
1436
+ _0x50d2bb: 0x11f,
1437
+ _0x7af121: 0x1a5,
1438
+ _0x39cacd: 0xfa,
1439
+ _0x3b3b98: 0x1a2
1440
+ }, _0x2e553f = {
1441
+ _0x385d8d: 0x13b,
1442
+ _0x57d4d5: 0x23d,
1443
+ _0x1c36bf: 0x206,
1444
+ _0x3dd41e: 0xfa,
1445
+ _0x4e17c1: 0x1ae,
1446
+ _0x2ac2bb: 0x1a2
1447
+ }, _0x5a4d30 = {
1448
+ _0x57f01c: 0x13b,
1449
+ _0x2c79b9: 0x23d,
1450
+ _0x4a4b96: 0x1f0,
1451
+ _0x22ee7f: 0x205,
1452
+ _0x442641: 0x14e,
1453
+ _0x267400: 0x160,
1454
+ _0x33baf1: 0x141,
1455
+ _0x4833e9: 0x1bd,
1456
+ _0xe29db2: 0x228,
1457
+ _0xa98fc6: 0x175,
1458
+ _0x4686b7: 0x1ab,
1459
+ _0x42d96e: 0x11a,
1460
+ _0x3e3183: 0x175,
1461
+ _0x56a823: 0x157,
1462
+ _0x5ab6c4: 0x20c,
1463
+ _0x1cb119: 0x1e7,
1464
+ _0x1e2e71: 0x143,
1465
+ _0x1d3bb7: 0x19c,
1466
+ _0x34d81a: 0x1bf,
1467
+ _0x175369: 0x160,
1468
+ _0x455f2e: 0x274,
1469
+ _0x336558: 0x1e8,
1470
+ _0x32eb46: 0x136
1471
+ }, _0x390858 = { _0x204a09: 0x172 }, _0x49b506 = _0x42226e;
1472
+ function _0x424d90(_0x6890c3, _0x579ff0) {
1473
+ const _0x4c3601 = _0x3c9f;
1474
+ if (!_0x41541e['workerMode'])
1378
1475
  return;
1379
- if (!_0x380bda['workerThreadTarget'])
1380
- throw new Error(_0x4bbd40 + _0x1ec77f(0x242));
1381
- if (_0x7e96a6 !== _0x380bda[_0x1ec77f(0x26e)])
1382
- throw new Error(_0x4bbd40 + _0x1ec77f(0x343) + _0x380bda[_0x1ec77f(_0x376cec._0x204441)] + ');\x20got\x20channel=' + _0x7e96a6);
1476
+ if (!_0x41541e[_0x4c3601(_0x390858._0x204a09)])
1477
+ throw new Error(_0x6890c3 + ':\x20worker\x20runtime\x20missing\x20workerThreadTarget;\x20cannot\x20validate\x20scope');
1478
+ if (_0x579ff0 !== _0x41541e[_0x4c3601(0x172)])
1479
+ throw new Error(_0x6890c3 + ':\x20worker\x20can\x20only\x20operate\x20inside\x20its\x20own\x20task\x20thread\x20(' + _0x41541e[_0x4c3601(_0x390858._0x204a09)] + _0x4c3601(0x14d) + _0x579ff0);
1383
1480
  }
1384
- async function _0x29b190(_0x21bd33) {
1385
- const _0x75ea3b = _0x28d5;
1386
- if (!_0x380bda[_0x75ea3b(0x2cd)] || !_0x380bda[_0x75ea3b(_0x5c236b._0x42042d)] || _0x380bda[_0x75ea3b(0x2ea)] || _0x380bda[_0x75ea3b(0x2ab)] !== !![])
1481
+ async function _0x1f4e8d(_0x594680) {
1482
+ const _0x3f54e6 = _0x3c9f;
1483
+ if (!_0x41541e[_0x3f54e6(_0x5a4d30._0x57f01c)] || !_0x41541e[_0x3f54e6(_0x5a4d30._0x2c79b9)] || _0x41541e[_0x3f54e6(_0x5a4d30._0x4a4b96)] || _0x41541e['workerModeEnabled'] !== !![])
1387
1484
  return null;
1388
- const _0x1644bc = parseTarget(_0x21bd33[_0x75ea3b(_0x5c236b._0x4b8b73)]);
1389
- if (_0x1644bc[_0x75ea3b(_0x5c236b._0x28bb69)] !== _0x75ea3b(_0x5c236b._0x4b8b73))
1485
+ const _0x34fc01 = parseTarget(_0x594680['channel']);
1486
+ if (_0x34fc01[_0x3f54e6(_0x5a4d30._0x22ee7f)] !== 'channel')
1390
1487
  return null;
1391
- if (_0x21bd33[_0x75ea3b(0x326)] === _0x75ea3b(0x222)) {
1392
- const _0x1aa58f = _0x21bd33[_0x75ea3b(0x2b0)] == null ? _0x75ea3b(0x2e2) : '#' + _0x21bd33[_0x75ea3b(_0x5c236b._0x505381)];
1488
+ if (_0x594680['executionMode'] === _0x3f54e6(_0x5a4d30._0x442641)) {
1489
+ const _0x29cf51 = _0x594680[_0x3f54e6(_0x5a4d30._0x267400)] == null ? _0x3f54e6(_0x5a4d30._0x33baf1) : '#' + _0x594680[_0x3f54e6(0x160)];
1393
1490
  return {
1394
- 'executionMode': 'main',
1491
+ 'executionMode': _0x3f54e6(0x14e),
1395
1492
  'stopMain': ![],
1396
1493
  'workerHandoff': ![],
1397
- 'workerHandoffError': 'task\x20' + _0x1aa58f + '\x20stays\x20in\x20main\x20session\x20(executionMode=main);\x20remain\x20here,\x20read\x20the\x20referenced\x20plan/document,\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20if\x20that\x20is\x20the\x20intent.'
1494
+ 'workerHandoffError': _0x3f54e6(_0x5a4d30._0x4833e9) + _0x29cf51 + _0x3f54e6(0x14a)
1398
1495
  };
1399
1496
  }
1400
- const _0x4a13f7 = _0x21bd33[_0x75ea3b(_0x5c236b._0x54dda0)] != null ? _0x1644bc[_0x75ea3b(_0x5c236b._0x54cdf9)] + ':t' + _0x21bd33[_0x75ea3b(0x355)] : _0x1644bc[_0x75ea3b(0x218)] + ':' + _0x21bd33[_0x75ea3b(0x20a)];
1401
- let _0xc23fe3;
1497
+ const _0x1e87c9 = _0x594680[_0x3f54e6(0x16c)] != null ? _0x34fc01[_0x3f54e6(_0x5a4d30._0xe29db2)] + ':t' + _0x594680['threadNumber'] : _0x34fc01[_0x3f54e6(_0x5a4d30._0xe29db2)] + ':' + _0x594680[_0x3f54e6(_0x5a4d30._0xa98fc6)];
1498
+ let _0x5be8e7;
1402
1499
  try {
1403
- const _0x16662b = await _0x380bda[_0x75ea3b(0x224)][_0x75ea3b(_0x5c236b._0x5ad1b9)]({
1404
- 'channel': _0x4a13f7,
1500
+ const _0x95c552 = await _0x41541e[_0x3f54e6(0x1ea)][_0x3f54e6(_0x5a4d30._0x4686b7)]({
1501
+ 'channel': _0x1e87c9,
1405
1502
  'limit': 0x14
1406
1503
  });
1407
- _0xc23fe3 = _0x16662b[_0x75ea3b(0x267)][_0x75ea3b(0x2db)](_0xb24257 => _0xb24257[_0x75ea3b(0x20a)] === _0x21bd33['messageId']);
1504
+ _0x5be8e7 = _0x95c552['messages'][_0x3f54e6(0x219)](_0x5c02ea => _0x5c02ea['messageId'] === _0x594680[_0x3f54e6(0x175)]);
1408
1505
  } catch {
1409
- _0xc23fe3 = void 0x0;
1506
+ _0x5be8e7 = void 0x0;
1410
1507
  }
1411
- const _0x3021b1 = _0x21bd33[_0x75ea3b(0x2b0)] == null ? _0x75ea3b(_0x5c236b._0x20b620) : '#' + _0x21bd33[_0x75ea3b(_0x5c236b._0x166650)], _0x4e36f4 = [
1412
- _0x75ea3b(0x2e7) + _0x4a13f7 + _0x75ea3b(_0x5c236b._0x3dc17d) + _0x21bd33[_0x75ea3b(0x20a)]['slice'](0x0, 0x8) + _0x75ea3b(0x254) + new Date()[_0x75ea3b(0x1f4)]() + _0x75ea3b(0x323) + _0x3021b1 + '\x20已切换到\x20worker\x20执行',
1508
+ const _0x5ec810 = _0x594680['taskNumber'] == null ? '(legacy)' : '#' + _0x594680['taskNumber'], _0x4a1066 = [
1509
+ '[target=' + _0x1e87c9 + _0x3f54e6(_0x5a4d30._0x42d96e) + _0x594680[_0x3f54e6(_0x5a4d30._0x3e3183)][_0x3f54e6(0x244)](0x0, 0x8) + '\x20time=' + new Date()[_0x3f54e6(_0x5a4d30._0x56a823)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x5ec810 + '\x20已切换到\x20worker\x20执行',
1413
1510
  '',
1414
- _0xc23fe3 ? _0x75ea3b(_0x5c236b._0x457de8) + _0xc23fe3[_0x75ea3b(_0x5c236b._0x3ea19c)] : _0x75ea3b(_0x5c236b._0x2fcc54) + _0x21bd33['messageId'],
1511
+ _0x5be8e7 ? _0x3f54e6(0x24f) + _0x5be8e7[_0x3f54e6(0x107)] : _0x3f54e6(_0x5a4d30._0x5ab6c4) + _0x594680[_0x3f54e6(0x175)],
1415
1512
  '',
1416
- _0x75ea3b(0x36d) + _0x4a13f7,
1417
- 'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
1418
- ][_0x75ea3b(_0x5c236b._0x5ba0cf)]('\x0a'), _0x45f2f7 = await fetch(_0x380bda[_0x75ea3b(_0x5c236b._0x51bb16)] + _0x75ea3b(0x29d), {
1419
- 'method': 'POST',
1420
- 'headers': { 'Content-Type': _0x75ea3b(0x239) },
1421
- 'body': JSON['stringify']({
1422
- 'agent_id': _0x380bda['agentId'],
1423
- 'thread_target': _0x4a13f7,
1513
+ 'Thread\x20target:\x20' + _0x1e87c9,
1514
+ _0x3f54e6(0x13a)
1515
+ ][_0x3f54e6(0x27f)]('\x0a'), _0x4deba1 = await fetch(_0x41541e['daemonLocalUrl'] + _0x3f54e6(_0x5a4d30._0x1cb119), {
1516
+ 'method': _0x3f54e6(_0x5a4d30._0x1e2e71),
1517
+ 'headers': { 'Content-Type': _0x3f54e6(_0x5a4d30._0x1d3bb7) },
1518
+ 'body': JSON[_0x3f54e6(0xf8)]({
1519
+ 'agent_id': _0x41541e['agentId'],
1520
+ 'thread_target': _0x1e87c9,
1424
1521
  'spawn_packet': {
1425
- 'replyTarget': _0x4a13f7,
1426
- ..._0x21bd33[_0x75ea3b(_0x5c236b._0x544b12)] ? { 'taskId': _0x21bd33[_0x75ea3b(0x268)] } : _0x21bd33[_0x75ea3b(_0x5c236b._0x505381)] != null ? { 'taskId': _0x75ea3b(0x264) + _0x21bd33[_0x75ea3b(_0x5c236b._0x505381)] } : {}
1522
+ 'replyTarget': _0x1e87c9,
1523
+ ..._0x594680[_0x3f54e6(0x1bf)] ? { 'taskId': _0x594680[_0x3f54e6(_0x5a4d30._0x34d81a)] } : _0x594680[_0x3f54e6(_0x5a4d30._0x175369)] != null ? { 'taskId': _0x3f54e6(0x198) + _0x594680[_0x3f54e6(0x160)] } : {}
1427
1524
  },
1428
1525
  'payload': {
1429
- 'mode': _0x75ea3b(0x30e),
1430
- 'text': _0x4e36f4
1526
+ 'mode': 'user',
1527
+ 'text': _0x4a1066
1431
1528
  }
1432
1529
  })
1433
- }), _0x4ddb0d = await _0x45f2f7['json']();
1434
- if (!_0x4ddb0d['ok'])
1435
- throw new Error(_0x4ddb0d[_0x75ea3b(_0x5c236b._0x321f74)] ?? _0x75ea3b(0x2a7));
1530
+ }), _0x1fd7f0 = await _0x4deba1[_0x3f54e6(0x11f)]();
1531
+ if (!_0x1fd7f0['ok'])
1532
+ throw new Error(_0x1fd7f0[_0x3f54e6(_0x5a4d30._0x455f2e)] ?? _0x3f54e6(0x265));
1436
1533
  return {
1437
1534
  'stopMain': !![],
1438
- 'threadTarget': _0x4a13f7,
1439
- 'workerDisposition': _0x4ddb0d[_0x75ea3b(0x366)] === 'queued' ? _0x75ea3b(0x365) : _0x75ea3b(_0x5c236b._0x5e1fdf),
1535
+ 'threadTarget': _0x1e87c9,
1536
+ 'workerDisposition': _0x1fd7f0[_0x3f54e6(_0x5a4d30._0x336558)] === _0x3f54e6(0x1e2) ? 'queued' : _0x3f54e6(0x117),
1440
1537
  'workerHandoff': !![],
1441
- 'workerSessionId': _0x4ddb0d[_0x75ea3b(_0x5c236b._0xed491c)] ?? '',
1442
- 'executionMode': _0x75ea3b(0x207)
1538
+ 'workerSessionId': _0x1fd7f0[_0x3f54e6(0x174)] ?? '',
1539
+ 'executionMode': _0x3f54e6(_0x5a4d30._0x32eb46)
1443
1540
  };
1444
1541
  }
1445
- async function _0xf841ef() {
1446
- const _0x2bcdee = _0x28d5;
1447
- if (!_0x380bda[_0x2bcdee(_0xef6b4._0x11b598)] || !_0x380bda[_0x2bcdee(_0xef6b4._0x44c303)] || _0x380bda[_0x2bcdee(0x2ea)])
1542
+ async function _0x3e41ef() {
1543
+ const _0x44d596 = _0x3c9f;
1544
+ if (!_0x41541e[_0x44d596(_0x2e553f._0x385d8d)] || !_0x41541e[_0x44d596(_0x2e553f._0x57d4d5)] || _0x41541e[_0x44d596(0x1f0)])
1448
1545
  return null;
1449
1546
  try {
1450
- const _0x1ee8ce = await fetch(_0x380bda[_0x2bcdee(_0xef6b4._0x15ff56)] + '/workers/list?agent_id=' + encodeURIComponent(_0x380bda[_0x2bcdee(_0xef6b4._0x363fd9)])), _0x58fd48 = await _0x1ee8ce[_0x2bcdee(0x22e)]();
1451
- if (!_0x58fd48['ok'])
1547
+ const _0x33c9bf = await fetch(_0x41541e[_0x44d596(0x13b)] + _0x44d596(0x170) + encodeURIComponent(_0x41541e['agentId'])), _0x2bca92 = await _0x33c9bf[_0x44d596(0x11f)]();
1548
+ if (!_0x2bca92['ok'])
1452
1549
  return null;
1453
- const _0x4d4746 = new Set();
1454
- for (const _0x1aabe9 of _0x58fd48[_0x2bcdee(0x2c8)]) {
1455
- _0x1aabe9[_0x2bcdee(0x34a)] !== _0x2bcdee(0x277) && _0x1aabe9[_0x2bcdee(0x25e)] && _0x4d4746['add'](_0x1aabe9[_0x2bcdee(0x25e)]);
1550
+ const _0x30a725 = new Set();
1551
+ for (const _0x22b75b of _0x2bca92[_0x44d596(0x236)]) {
1552
+ _0x22b75b[_0x44d596(0x1a5)] !== _0x44d596(_0x2e553f._0x1c36bf) && _0x22b75b[_0x44d596(_0x2e553f._0x3dd41e)] && _0x30a725[_0x44d596(_0x2e553f._0x4e17c1)](_0x22b75b[_0x44d596(_0x2e553f._0x3dd41e)]);
1456
1553
  }
1457
- return _0x4d4746[_0x2bcdee(_0xef6b4._0x4aec73)] > 0x0 ? _0x4d4746 : null;
1554
+ return _0x30a725[_0x44d596(_0x2e553f._0x2ac2bb)] > 0x0 ? _0x30a725 : null;
1458
1555
  } catch {
1459
1556
  return null;
1460
1557
  }
1461
1558
  }
1462
- const _0x52c511 = new Set([
1463
- _0xe4e7a5(_0x2b2a69._0x5ea9a3),
1464
- _0xe4e7a5(_0x2b2a69._0xa8ad38),
1465
- _0xe4e7a5(_0x2b2a69._0x5d8039)
1559
+ const _0x23cbbe = new Set([
1560
+ _0x49b506(0x1b1),
1561
+ _0x49b506(0x1ca),
1562
+ _0x49b506(_0x4c6c42._0x3ead2c)
1466
1563
  ]);
1467
- async function _0x499b61() {
1468
- const _0x384be6 = _0xe4e7a5;
1469
- if (!_0x380bda[_0x384be6(0x2cd)] || !_0x380bda[_0x384be6(0x204)] || _0x380bda['workerMode'])
1564
+ async function _0x51e8f7() {
1565
+ const _0x49556c = _0x49b506;
1566
+ if (!_0x41541e[_0x49556c(_0x3aef42._0x1e9277)] || !_0x41541e[_0x49556c(_0x3aef42._0x57326c)] || _0x41541e[_0x49556c(0x1f0)])
1470
1567
  return null;
1471
1568
  try {
1472
- const _0x2ea094 = await fetch(_0x380bda[_0x384be6(0x2cd)] + _0x384be6(_0x49d135._0x2c5b86) + encodeURIComponent(_0x380bda[_0x384be6(_0x49d135._0x3e339f)])), _0x59321f = await _0x2ea094[_0x384be6(_0x49d135._0x3d50d6)]();
1473
- if (!_0x59321f['ok'])
1569
+ const _0x24849d = await fetch(_0x41541e[_0x49556c(0x13b)] + _0x49556c(_0x3aef42._0x30dfb9) + encodeURIComponent(_0x41541e[_0x49556c(0x23d)])), _0x46ef23 = await _0x24849d[_0x49556c(_0x3aef42._0x50d2bb)]();
1570
+ if (!_0x46ef23['ok'])
1474
1571
  return null;
1475
- const _0x3cf9c6 = new Set();
1476
- for (const _0x4d0891 of _0x59321f[_0x384be6(0x2c8)]) {
1477
- _0x52c511[_0x384be6(0x209)](_0x4d0891[_0x384be6(_0x49d135._0x42d0e0)]) && _0x4d0891[_0x384be6(0x25e)] && _0x3cf9c6[_0x384be6(_0x49d135._0xe16df7)](_0x4d0891['thread_target']);
1572
+ const _0x45fdde = new Set();
1573
+ for (const _0x4cb240 of _0x46ef23[_0x49556c(0x236)]) {
1574
+ _0x23cbbe['has'](_0x4cb240[_0x49556c(_0x3aef42._0x7af121)]) && _0x4cb240[_0x49556c(_0x3aef42._0x39cacd)] && _0x45fdde[_0x49556c(0x1ae)](_0x4cb240['thread_target']);
1478
1575
  }
1479
- return _0x3cf9c6['size'] > 0x0 ? _0x3cf9c6 : null;
1576
+ return _0x45fdde[_0x49556c(_0x3aef42._0x3b3b98)] > 0x0 ? _0x45fdde : null;
1480
1577
  } catch {
1481
1578
  return null;
1482
1579
  }
1483
1580
  }
1484
1581
  return {
1485
- async 'send_message'(_0x1ab233) {
1486
- const _0x50abb2 = _0xe4e7a5;
1487
- if (!_0x380bda[_0x50abb2(_0x26342f._0x5dcdf5)] && _0x380bda[_0x50abb2(_0x26342f._0x120521)] && _0x380bda[_0x50abb2(0x2cd)] && _0x380bda[_0x50abb2(0x204)]) {
1488
- const _0x23ffde = await _0x380bda[_0x50abb2(0x224)][_0x50abb2(0x344)](_0x1ab233['target']);
1489
- if (_0x23ffde[_0x50abb2(0x2c2)] && _0x23ffde[_0x50abb2(0x2b8)]) {
1490
- if (_0x23ffde[_0x50abb2(_0x26342f._0x472f9d)][_0x50abb2(0x326)] === _0x50abb2(0x222)) {
1491
- const _0x4b0cc2 = await _0x380bda[_0x50abb2(0x224)][_0x50abb2(0x297)]({
1492
- 'attachmentIds': _0x1ab233[_0x50abb2(0x280)],
1493
- 'content': _0x1ab233[_0x50abb2(0x337)],
1494
- 'target': _0x1ab233['target'],
1495
- 'visibility': _0x1ab233[_0x50abb2(0x246)]
1582
+ async 'send_message'(_0x5f0605) {
1583
+ const _0x276721 = _0x49b506;
1584
+ if (!_0x41541e['workerMode'] && _0x41541e[_0x276721(0x267)] && _0x41541e['daemonLocalUrl'] && _0x41541e[_0x276721(0x23d)]) {
1585
+ const _0x37218d = await _0x41541e[_0x276721(_0x375951._0x13229c)][_0x276721(0x220)](_0x5f0605[_0x276721(_0x375951._0x44ea98)]);
1586
+ if (_0x37218d[_0x276721(_0x375951._0xc364fd)] && _0x37218d[_0x276721(0x12b)]) {
1587
+ if (_0x37218d[_0x276721(0x202)]['executionMode'] === _0x276721(_0x375951._0x204c45)) {
1588
+ const _0x36b85e = await _0x41541e[_0x276721(_0x375951._0x39aadb)][_0x276721(_0x375951._0x4a0aac)]({
1589
+ 'attachmentIds': _0x5f0605[_0x276721(_0x375951._0x218d10)],
1590
+ 'content': _0x5f0605[_0x276721(_0x375951._0x5d1acb)],
1591
+ 'metadataJson': _0x5f0605[_0x276721(0x1f9)],
1592
+ 'target': _0x5f0605[_0x276721(_0x375951._0x44ea98)],
1593
+ 'visibility': _0x5f0605[_0x276721(0x22e)]
1496
1594
  });
1497
- return _0x50abb2(0x2f3) + _0x1ab233[_0x50abb2(0x259)] + '.\x20Message\x20ID:\x20' + _0x4b0cc2[_0x50abb2(0x20a)];
1595
+ return 'Message\x20sent\x20to\x20' + _0x5f0605['target'] + '.\x20Message\x20ID:\x20' + _0x36b85e['messageId'];
1498
1596
  }
1499
- const _0x288d80 = _0x23ffde[_0x50abb2(0x2c2)]['taskNumber'] != null ? '#' + _0x23ffde[_0x50abb2(0x2c2)][_0x50abb2(0x2b0)] : _0x50abb2(_0x26342f._0x106bb2), _0x3d896c = _0x23ffde[_0x50abb2(_0x26342f._0x467297)] != null ? _0x23ffde['target'] + ':t' + _0x23ffde[_0x50abb2(_0x26342f._0x467297)] : _0x23ffde[_0x50abb2(_0x26342f._0xcef8e9)] + ':' + _0x23ffde[_0x50abb2(0x2b8)][_0x50abb2(0x33a)](0x0, 0x8), _0x50456e = await _0x499b61();
1500
- if (_0x50456e?.[_0x50abb2(0x209)](_0x3d896c))
1597
+ const _0x4930ab = _0x37218d[_0x276721(_0x375951._0x19a42c)][_0x276721(0x160)] != null ? '#' + _0x37218d[_0x276721(_0x375951._0xc364fd)][_0x276721(0x160)] : '(legacy)', _0x5ef547 = _0x37218d[_0x276721(_0x375951._0x4ec786)] != null ? _0x37218d['target'] + ':t' + _0x37218d['threadNumber'] : _0x37218d[_0x276721(_0x375951._0x5e4666)] + ':' + _0x37218d['threadId'][_0x276721(0x244)](0x0, 0x8), _0x20db3a = await _0x51e8f7();
1598
+ if (_0x20db3a?.[_0x276721(0x171)](_0x5ef547))
1501
1599
  return [
1502
- _0x50abb2(_0x26342f._0x27a70a) + _0x288d80 + _0x50abb2(0x2b2) + _0x3d896c + _0x50abb2(0x290),
1503
- _0x50abb2(0x2c7)
1504
- ][_0x50abb2(_0x26342f._0xfc0b47)]('\x0a');
1505
- const _0x2ebba3 = [
1506
- _0x50abb2(_0x26342f._0xf6b3ac) + _0x3d896c + _0x50abb2(_0x26342f._0x18a14e) + new Date()[_0x50abb2(_0x26342f._0x35e89f)]() + _0x50abb2(0x203),
1600
+ _0x276721(0x222) + _0x4930ab + _0x276721(_0x375951._0x608e42) + _0x5ef547 + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
1601
+ 'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
1602
+ ][_0x276721(0x27f)]('\x0a');
1603
+ const _0x4fd32a = [
1604
+ _0x276721(0x1bb) + _0x5ef547 + _0x276721(_0x375951._0x213593) + new Date()[_0x276721(_0x375951._0x204bff)]() + ']\x20@system:\x20[enter-handoff]',
1507
1605
  '',
1508
- 'Original\x20message:\x20' + _0x1ab233[_0x50abb2(_0x26342f._0x5e4cc8)],
1509
- 'Task:\x20' + _0x288d80 + '\x20(' + _0x23ffde['task'][_0x50abb2(_0x26342f._0x4434bc)] + ')',
1510
- _0x50abb2(_0x26342f._0x2aa75b) + _0x3d896c,
1511
- _0x50abb2(0x1e6)
1512
- ][_0x50abb2(0x2e3)]('\x0a'), _0x2cc826 = await fetch(_0x380bda[_0x50abb2(_0x26342f._0x515159)] + _0x50abb2(0x29d), {
1513
- 'method': _0x50abb2(0x258),
1514
- 'headers': { 'Content-Type': _0x50abb2(_0x26342f._0x1a6261) },
1515
- 'body': JSON[_0x50abb2(_0x26342f._0xe4d7c6)]({
1516
- 'agent_id': _0x380bda[_0x50abb2(_0x26342f._0x2f4bb4)],
1517
- 'thread_target': _0x3d896c,
1606
+ _0x276721(0x1f1) + _0x5f0605['content'],
1607
+ 'Task:\x20' + _0x4930ab + '\x20(' + _0x37218d['task'][_0x276721(0x1bf)] + ')',
1608
+ _0x276721(_0x375951._0x429ccd) + _0x5ef547,
1609
+ _0x276721(_0x375951._0x290eba)
1610
+ ][_0x276721(0x27f)]('\x0a'), _0x107584 = await fetch(_0x41541e[_0x276721(_0x375951._0x31759a)] + _0x276721(0x1e7), {
1611
+ 'method': _0x276721(0x143),
1612
+ 'headers': { 'Content-Type': _0x276721(0x19c) },
1613
+ 'body': JSON['stringify']({
1614
+ 'agent_id': _0x41541e[_0x276721(_0x375951._0x388228)],
1615
+ 'thread_target': _0x5ef547,
1518
1616
  'spawn_packet': {
1519
- 'replyTarget': _0x3d896c,
1520
- 'taskId': _0x23ffde[_0x50abb2(0x2c2)][_0x50abb2(0x268)]
1617
+ 'replyTarget': _0x5ef547,
1618
+ 'taskId': _0x37218d[_0x276721(_0x375951._0xc364fd)][_0x276721(_0x375951._0x44a96b)]
1521
1619
  },
1522
1620
  'payload': {
1523
- 'mode': 'user',
1524
- 'text': _0x2ebba3
1621
+ 'mode': _0x276721(_0x375951._0x5bd036),
1622
+ 'text': _0x4fd32a
1525
1623
  }
1526
1624
  })
1527
- }), _0x5c9f31 = await _0x2cc826[_0x50abb2(0x22e)]();
1528
- if (!_0x5c9f31['ok'])
1529
- throw new Error(_0x5c9f31[_0x50abb2(0x352)] ?? 'enter-handoff\x20failed');
1625
+ }), _0x32f396 = await _0x107584[_0x276721(_0x375951._0x3ed33e)]();
1626
+ if (!_0x32f396['ok'])
1627
+ throw new Error(_0x32f396[_0x276721(_0x375951._0x2ce65a)] ?? _0x276721(0x111));
1530
1628
  return [
1531
- _0x50abb2(_0x26342f._0x34ac83) + _0x288d80 + '\x20in\x20' + _0x3d896c + _0x50abb2(_0x26342f._0xedfed7),
1532
- _0x50abb2(0x296) + (_0x5c9f31['disposition'] === _0x50abb2(_0x26342f._0x365ef5) ? _0x50abb2(_0x26342f._0x2ba83b) : _0x50abb2(0x2cc)) + '.',
1629
+ 'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x4930ab + '\x20in\x20' + _0x5ef547 + '.\x20stopMain=true\x20executionMode=worker',
1630
+ _0x276721(0x21f) + (_0x32f396[_0x276721(0x1e8)] === 'queued' ? _0x276721(_0x375951._0x59cf1c) : 'started') + '.',
1533
1631
  '⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
1534
- ][_0x50abb2(0x2e3)]('\x0a');
1632
+ ][_0x276721(_0x375951._0x29e9c3)]('\x0a');
1535
1633
  }
1536
1634
  }
1537
- const _0x2eac0b = await _0x380bda[_0x50abb2(0x224)][_0x50abb2(0x297)]({
1538
- 'attachmentIds': _0x1ab233[_0x50abb2(_0x26342f._0x227cce)],
1539
- 'content': _0x1ab233[_0x50abb2(_0x26342f._0x5e4cc8)],
1540
- 'target': _0x1ab233[_0x50abb2(_0x26342f._0x3b8e70)],
1541
- 'visibility': _0x1ab233['visibility']
1635
+ const _0x26e5fb = await _0x41541e[_0x276721(_0x375951._0x13229c)][_0x276721(0x285)]({
1636
+ 'attachmentIds': _0x5f0605[_0x276721(_0x375951._0x218d10)],
1637
+ 'content': _0x5f0605['content'],
1638
+ 'metadataJson': _0x5f0605['metadataJson'],
1639
+ 'target': _0x5f0605['target'],
1640
+ 'visibility': _0x5f0605[_0x276721(0x22e)]
1542
1641
  });
1543
- return _0x50abb2(0x2f3) + _0x1ab233['target'] + _0x50abb2(0x305) + _0x2eac0b[_0x50abb2(0x20a)];
1642
+ return _0x276721(_0x375951._0x589a43) + _0x5f0605[_0x276721(0x1dd)] + _0x276721(_0x375951._0x309581) + _0x26e5fb[_0x276721(0x175)];
1544
1643
  },
1545
1644
  async 'check_messages'() {
1546
- const _0x3e7325 = _0xe4e7a5, _0x1b59fc = await _0x380bda[_0x3e7325(0x224)][_0x3e7325(_0x3eeb61._0x2c25b4)]();
1547
- if (!_0x380bda[_0x3e7325(0x2ea)]) {
1548
- const _0x4701b7 = await _0xf841ef();
1549
- if (_0x4701b7)
1550
- return formatCheckMessages(_0x1b59fc['messages']['filter'](_0x46baf4 => !_0x4701b7[_0x3e7325(0x209)](_0x46baf4[_0x3e7325(0x259)])));
1645
+ const _0x587e7f = _0x49b506, _0xf02e60 = await _0x41541e[_0x587e7f(0x1ea)][_0x587e7f(_0x2f8be6._0x49bc9c)]();
1646
+ if (!_0x41541e[_0x587e7f(0x1f0)]) {
1647
+ const _0x377d42 = await _0x3e41ef();
1648
+ if (_0x377d42)
1649
+ return formatCheckMessages(_0xf02e60[_0x587e7f(_0x2f8be6._0x5c4d3f)][_0x587e7f(_0x2f8be6._0x4420d5)](_0x22d5a8 => !_0x377d42[_0x587e7f(0x171)](_0x22d5a8[_0x587e7f(0x1dd)])));
1551
1650
  }
1552
- return formatCheckMessages(_0x1b59fc[_0x3e7325(0x267)]);
1651
+ return formatCheckMessages(_0xf02e60['messages']);
1553
1652
  },
1554
- async 'read_history'(_0x4e0a3d) {
1555
- const _0x65ce3d = await _0x380bda['client']['readHistory'](_0x4e0a3d);
1556
- return formatHistory(_0x65ce3d);
1653
+ async 'read_history'(_0x21348b) {
1654
+ const _0xfcbb68 = _0x49b506, _0x2568e2 = await _0x41541e['client'][_0xfcbb68(0x1ab)](_0x21348b);
1655
+ return formatHistory(_0x2568e2);
1557
1656
  },
1558
1657
  async 'list_server'() {
1559
- const _0x401796 = _0xe4e7a5, _0x26ca9b = await _0x380bda['client'][_0x401796(_0x1a1645._0x373ecf)]();
1560
- return formatServerDirectory(_0x26ca9b);
1658
+ const _0x58f68d = _0x49b506, _0x14a2a9 = await _0x41541e['client'][_0x58f68d(_0x5f148a._0x5919a0)]();
1659
+ return formatServerDirectory(_0x14a2a9);
1561
1660
  },
1562
- async 'list_tasks'(_0x1e32ca) {
1563
- const _0xf7b8de = _0xe4e7a5, _0x292b63 = await _0x380bda[_0xf7b8de(_0x57ff4a._0x23c900)][_0xf7b8de(0x2f8)](_0x1e32ca);
1564
- let _0x4ef19e;
1565
- if (_0x380bda[_0xf7b8de(0x2cd)] && _0x380bda[_0xf7b8de(_0x57ff4a._0x3654a9)])
1661
+ async 'list_tasks'(_0xde21b6) {
1662
+ const _0x36c8b4 = _0x49b506, _0x602c99 = await _0x41541e[_0x36c8b4(0x1ea)][_0x36c8b4(0x184)](_0xde21b6);
1663
+ let _0x491d6e;
1664
+ if (_0x41541e[_0x36c8b4(0x13b)] && _0x41541e[_0x36c8b4(0x23d)])
1566
1665
  try {
1567
- const _0xeddc1c = await fetch(_0x380bda['daemonLocalUrl'] + _0xf7b8de(0x22d) + encodeURIComponent(_0x380bda[_0xf7b8de(0x204)])), _0x18b1b3 = await _0xeddc1c[_0xf7b8de(0x22e)]();
1568
- if (_0x18b1b3['ok']) {
1569
- const _0x26e9b6 = _0x1e32ca[_0xf7b8de(_0x57ff4a._0x4c8703)] + ':';
1570
- _0x4ef19e = new Set();
1571
- for (const _0x3b97ec of _0x18b1b3[_0xf7b8de(_0x57ff4a._0x5c88d7)]) {
1572
- if (_0x3b97ec[_0xf7b8de(_0x57ff4a._0x408e01)] === _0xf7b8de(_0x57ff4a._0x537be9))
1666
+ const _0x1e5b16 = await fetch(_0x41541e[_0x36c8b4(_0x16a5b4._0x15fe9f)] + _0x36c8b4(0x170) + encodeURIComponent(_0x41541e[_0x36c8b4(_0x16a5b4._0x3cdfa7)])), _0x403a93 = await _0x1e5b16['json']();
1667
+ if (_0x403a93['ok']) {
1668
+ const _0x588e4e = _0xde21b6[_0x36c8b4(_0x16a5b4._0x57cde4)] + ':';
1669
+ _0x491d6e = new Set();
1670
+ for (const _0x2761b3 of _0x403a93[_0x36c8b4(0x236)]) {
1671
+ if (_0x2761b3[_0x36c8b4(_0x16a5b4._0x3a4c88)] === _0x36c8b4(0x206))
1573
1672
  continue;
1574
- if (_0x3b97ec[_0xf7b8de(_0x57ff4a._0xecdbbc)]?.[_0xf7b8de(_0x57ff4a._0x15f984)](_0x26e9b6)) {
1575
- const _0x24d354 = _0x3b97ec[_0xf7b8de(0x25e)][_0xf7b8de(0x33a)](_0x26e9b6[_0xf7b8de(0x253)]), _0x490d97 = _0x292b63[_0xf7b8de(0x212)][_0xf7b8de(_0x57ff4a._0x412757)](_0x3b63ec => _0x3b63ec[_0xf7b8de(0x20a)]?.[_0xf7b8de(0x31a)](_0x24d354) === !![]);
1576
- if (_0x490d97?.[_0xf7b8de(0x2b0)] != null) {
1577
- _0x4ef19e[_0xf7b8de(_0x57ff4a._0x4a2cb3)](_0x490d97[_0xf7b8de(_0x57ff4a._0x92189b)]);
1673
+ if (_0x2761b3[_0x36c8b4(0xfa)]?.['startsWith'](_0x588e4e)) {
1674
+ const _0x537585 = _0x2761b3[_0x36c8b4(_0x16a5b4._0x22927e)][_0x36c8b4(0x244)](_0x588e4e[_0x36c8b4(_0x16a5b4._0x2398e8)]), _0x32c7e0 = _0x602c99[_0x36c8b4(0x10e)][_0x36c8b4(0x219)](_0x271efa => _0x271efa['messageId']?.[_0x36c8b4(0x134)](_0x537585) === !![]);
1675
+ if (_0x32c7e0?.[_0x36c8b4(0x160)] != null) {
1676
+ _0x491d6e[_0x36c8b4(_0x16a5b4._0x3ce787)](_0x32c7e0[_0x36c8b4(0x160)]);
1578
1677
  continue;
1579
1678
  }
1580
1679
  }
1581
- if (_0x3b97ec[_0xf7b8de(0x349)]) {
1582
- const _0x56b518 = _0x292b63[_0xf7b8de(_0x57ff4a._0x5f54ae)][_0xf7b8de(_0x57ff4a._0x412757)](_0x2852ed => _0x2852ed[_0xf7b8de(0x268)] === _0x3b97ec['task_id']);
1583
- _0x56b518?.['taskNumber'] != null && _0x4ef19e['add'](_0x56b518[_0xf7b8de(0x2b0)]);
1680
+ if (_0x2761b3[_0x36c8b4(_0x16a5b4._0x31a678)]) {
1681
+ const _0x27e8c5 = _0x602c99[_0x36c8b4(_0x16a5b4._0x4fee02)]['find'](_0x1e2409 => _0x1e2409[_0x36c8b4(0x1bf)] === _0x2761b3['task_id']);
1682
+ _0x27e8c5?.['taskNumber'] != null && _0x491d6e['add'](_0x27e8c5['taskNumber']);
1584
1683
  }
1585
1684
  }
1586
1685
  }
1587
1686
  } catch {
1588
1687
  }
1589
- return formatTaskList(_0x292b63['tasks'], _0x4ef19e);
1688
+ return formatTaskList(_0x602c99[_0x36c8b4(_0x16a5b4._0x4fee02)], _0x491d6e);
1590
1689
  },
1591
- async 'create_tasks'(_0xf32581) {
1592
- const _0x33d073 = _0xe4e7a5;
1593
- _0x209472('create_tasks', _0xf32581[_0x33d073(0x302)]);
1594
- const _0x4c8ddf = await _0x380bda['client'][_0x33d073(_0x11dcd9._0x4d52b8)](_0xf32581);
1595
- return formatCreatedTasks(_0x4c8ddf['tasks']);
1690
+ async 'create_tasks'(_0x17a257) {
1691
+ const _0x4243d0 = _0x49b506;
1692
+ _0x424d90(_0x4243d0(_0x2fb287._0xa38a56), _0x17a257['channel']);
1693
+ const _0x9265f0 = await _0x41541e[_0x4243d0(_0x2fb287._0x4cb605)][_0x4243d0(_0x2fb287._0x51bb36)](_0x17a257);
1694
+ return formatCreatedTasks(_0x9265f0[_0x4243d0(_0x2fb287._0x457378)]);
1596
1695
  },
1597
- async 'claim_tasks'(_0xd73cf) {
1598
- const _0x23b8ea = { _0xdd07d4: 0x355 }, _0x4081b6 = _0xe4e7a5;
1599
- if (_0x380bda[_0x4081b6(_0x3560c7._0x54eeb6)]) {
1600
- _0x209472(_0x4081b6(0x2a2), _0xd73cf['channel']);
1601
- if (_0xd73cf[_0x4081b6(0x342)] && _0xd73cf['message_ids'][_0x4081b6(0x253)] > 0x0)
1602
- throw new Error(_0x4081b6(_0x3560c7._0x44978d));
1603
- if (!_0xd73cf[_0x4081b6(_0x3560c7._0x40c14e)] || _0xd73cf[_0x4081b6(_0x3560c7._0x40c14e)][_0x4081b6(_0x3560c7._0x4ce16d)] === 0x0)
1604
- throw new Error('claim_tasks:\x20worker\x20can\x20only\x20claim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_numbers.');
1696
+ async 'claim_tasks'(_0x4ba855) {
1697
+ const _0x1bd9b0 = {
1698
+ _0x9e9922: 0x12a,
1699
+ _0x23d982: 0x10f,
1700
+ _0x5f21f8: 0x1bf,
1701
+ _0x2966ab: 0x160,
1702
+ _0xe1b42: 0x280,
1703
+ _0x58e471: 0x265
1704
+ }, _0x4c669c = _0x49b506;
1705
+ if (_0x41541e[_0x4c669c(0x1f0)]) {
1706
+ _0x424d90(_0x4c669c(0x130), _0x4ba855[_0x4c669c(_0x449fe6._0x4bcb8f)]);
1707
+ if (_0x4ba855[_0x4c669c(0x120)] && _0x4ba855[_0x4c669c(0x120)][_0x4c669c(_0x449fe6._0x44e0ed)] > 0x0)
1708
+ throw new Error(_0x4c669c(_0x449fe6._0xb09dad));
1709
+ if (!_0x4ba855[_0x4c669c(_0x449fe6._0x451640)] || _0x4ba855[_0x4c669c(0x145)][_0x4c669c(_0x449fe6._0xce54a5)] === 0x0)
1710
+ throw new Error(_0x4c669c(0x158));
1605
1711
  }
1606
- const _0x35eb48 = await _0x380bda[_0x4081b6(0x224)]['claimTasks'](_0xd73cf), _0x4d97e4 = await Promise[_0x4081b6(0x29f)](_0x35eb48[_0x4081b6(_0x3560c7._0xb1b29a)][_0x4081b6(_0x3560c7._0x19ebde)](async _0x470847 => {
1607
- const _0x4308ab = _0x4081b6;
1608
- if (!_0x470847[_0x4308ab(0x1fa)] || !_0x470847[_0x4308ab(0x20a)])
1609
- return _0x470847;
1712
+ const _0x26c63e = await _0x41541e[_0x4c669c(0x1ea)]['claimTasks'](_0x4ba855), _0x53c29c = await Promise[_0x4c669c(0x154)](_0x26c63e['results'][_0x4c669c(0x24b)](async _0x1d7f0a => {
1713
+ const _0x449643 = _0x4c669c;
1714
+ if (!_0x1d7f0a[_0x449643(_0x1bd9b0._0x9e9922)] || !_0x1d7f0a['messageId'])
1715
+ return _0x1d7f0a;
1610
1716
  try {
1611
- const _0x34802f = await _0x29b190({
1612
- 'channel': _0xd73cf[_0x4308ab(0x302)],
1613
- 'executionMode': _0x470847[_0x4308ab(0x326)],
1614
- 'messageId': _0x470847[_0x4308ab(0x20a)],
1615
- 'taskId': _0x470847['taskId'],
1616
- 'taskNumber': _0x470847[_0x4308ab(0x2b0)],
1617
- 'threadNumber': _0x470847[_0x4308ab(_0x23b8ea._0xdd07d4)]
1717
+ const _0x353799 = await _0x1f4e8d({
1718
+ 'channel': _0x4ba855[_0x449643(0x196)],
1719
+ 'executionMode': _0x1d7f0a[_0x449643(_0x1bd9b0._0x23d982)],
1720
+ 'messageId': _0x1d7f0a[_0x449643(0x175)],
1721
+ 'taskId': _0x1d7f0a[_0x449643(_0x1bd9b0._0x5f21f8)],
1722
+ 'taskNumber': _0x1d7f0a[_0x449643(_0x1bd9b0._0x2966ab)],
1723
+ 'threadNumber': _0x1d7f0a[_0x449643(0x16c)]
1618
1724
  });
1619
- return _0x34802f ? {
1620
- ..._0x470847,
1621
- ..._0x34802f
1622
- } : _0x470847;
1623
- } catch (_0x2ad7dd) {
1725
+ return _0x353799 ? {
1726
+ ..._0x1d7f0a,
1727
+ ..._0x353799
1728
+ } : _0x1d7f0a;
1729
+ } catch (_0x582b33) {
1624
1730
  return {
1625
- ..._0x470847,
1626
- 'workerHandoffError': _0x2ad7dd instanceof Error ? _0x2ad7dd['message'] : 'worker\x20handoff\x20failed'
1731
+ ..._0x1d7f0a,
1732
+ 'workerHandoffError': _0x582b33 instanceof Error ? _0x582b33[_0x449643(_0x1bd9b0._0xe1b42)] : _0x449643(_0x1bd9b0._0x58e471)
1627
1733
  };
1628
1734
  }
1629
1735
  }));
1630
- return formatClaimTaskResults(_0x4d97e4);
1736
+ return formatClaimTaskResults(_0x53c29c);
1631
1737
  },
1632
- async 'unclaim_task'(_0x1d8daf) {
1633
- const _0x1feb80 = _0xe4e7a5;
1634
- if (_0x380bda[_0x1feb80(0x2ea)]) {
1635
- _0x209472(_0x1feb80(0x2eb), _0x1d8daf['channel']);
1636
- if (_0x1d8daf['subtask_number'] == null)
1637
- throw new Error('unclaim_task:\x20worker\x20can\x20only\x20unclaim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_number.');
1738
+ async 'unclaim_task'(_0x1b0332) {
1739
+ const _0x57af30 = _0x49b506;
1740
+ if (_0x41541e[_0x57af30(0x1f0)]) {
1741
+ _0x424d90(_0x57af30(0x147), _0x1b0332[_0x57af30(_0x195a15._0x4030b8)]);
1742
+ if (_0x1b0332['subtask_number'] == null)
1743
+ throw new Error(_0x57af30(0x1f2));
1638
1744
  }
1639
- const _0x1c1420 = await _0x380bda[_0x1feb80(_0xd079eb._0x47ef13)][_0x1feb80(_0xd079eb._0x458e35)](_0x1d8daf);
1640
- return formatUnclaimTaskResult(_0x1c1420);
1745
+ const _0x5d8c97 = await _0x41541e['client']['unclaimTask'](_0x1b0332);
1746
+ return formatUnclaimTaskResult(_0x5d8c97);
1641
1747
  },
1642
- async 'update_task_status'(_0x5024e3) {
1643
- const _0x1cf785 = _0xe4e7a5;
1644
- _0x209472('update_task_status', _0x5024e3[_0x1cf785(0x302)]);
1645
- const _0x1a775a = await _0x380bda['client'][_0x1cf785(0x22b)](_0x5024e3);
1646
- return formatUpdateTaskStatusResult(_0x1a775a);
1748
+ async 'update_task_status'(_0x478250) {
1749
+ const _0x2003e9 = _0x49b506;
1750
+ _0x424d90(_0x2003e9(_0x3c49e2._0x4c5514), _0x478250['channel']);
1751
+ const _0x21a685 = await _0x41541e[_0x2003e9(0x1ea)][_0x2003e9(0x258)](_0x478250);
1752
+ return formatUpdateTaskStatusResult(_0x21a685);
1647
1753
  },
1648
- async 'upload_file'(_0x5eb9d7) {
1649
- const _0x5aee81 = _0xe4e7a5, _0x1cec57 = await _0x380bda['uploadPreparer'](_0x5eb9d7[_0x5aee81(_0x25993c._0x2766e6)]), {
1650
- sizeBytes: _0x1a460c,
1651
- ..._0x23f8d3
1652
- } = _0x1cec57, _0x1f3549 = await _0x380bda['client'][_0x5aee81(_0x25993c._0x2fc583)]({
1653
- 'channel': _0x5eb9d7[_0x5aee81(_0x25993c._0x345296)],
1654
- ..._0x23f8d3
1655
- });
1656
- return formatUploadResult(_0x1f3549);
1754
+ async 'upload_file'(_0x5ab23b) {
1755
+ const _0x3e61dd = _0x49b506, _0x2c9122 = await _0x41541e[_0x3e61dd(0x20b)](_0x5ab23b[_0x3e61dd(0x1ff)]), {
1756
+ sizeBytes: _0x3daea8,
1757
+ ..._0x457016
1758
+ } = _0x2c9122;
1759
+ void _0x3daea8;
1760
+ const _0x32350e = await _0x41541e[_0x3e61dd(_0x281de6._0x42fa2c)][_0x3e61dd(0x1ef)]({
1761
+ 'channel': _0x5ab23b[_0x3e61dd(_0x281de6._0x40cfb4)],
1762
+ ..._0x457016
1763
+ });
1764
+ return formatUploadResult(_0x32350e);
1657
1765
  },
1658
- async 'view_file'(_0xbcefaa) {
1659
- const _0x4bcf1f = _0xe4e7a5, _0x5035fa = await _0x380bda['attachmentCache'][_0x4bcf1f(0x27b)](_0xbcefaa[_0x4bcf1f(_0x1859c2._0x14ec5b)]);
1660
- if (_0x5035fa)
1661
- return formatViewFileResult(_0x5035fa, !![]);
1662
- const _0x3553e4 = await _0x380bda[_0x4bcf1f(0x224)]['downloadAttachment'](_0xbcefaa[_0x4bcf1f(_0x1859c2._0x14ec5b)]), _0x70975a = await _0x380bda[_0x4bcf1f(_0x1859c2._0x530248)][_0x4bcf1f(0x2e5)]({
1663
- 'attachmentId': _0xbcefaa[_0x4bcf1f(0x34b)],
1664
- 'contentType': _0x3553e4[_0x4bcf1f(_0x1859c2._0x106c3f)],
1665
- 'data': _0x3553e4['data'],
1666
- 'originalFilename': _0x3553e4[_0x4bcf1f(0x33f)]
1766
+ async 'view_file'(_0x5885fd) {
1767
+ const _0xc19bf3 = _0x49b506, _0x4c810f = await _0x41541e[_0xc19bf3(_0x57aed1._0x385b9d)][_0xc19bf3(_0x57aed1._0x51c97e)](_0x5885fd[_0xc19bf3(0x255)]);
1768
+ if (_0x4c810f)
1769
+ return formatViewFileResult(_0x4c810f, !![]);
1770
+ const _0xaf4f4f = await _0x41541e[_0xc19bf3(_0x57aed1._0x4a992f)]['downloadAttachment'](_0x5885fd[_0xc19bf3(0x255)]), _0x4192d0 = await _0x41541e['attachmentCache'][_0xc19bf3(0x197)]({
1771
+ 'attachmentId': _0x5885fd['attachment_id'],
1772
+ 'contentType': _0xaf4f4f['contentType'],
1773
+ 'data': _0xaf4f4f[_0xc19bf3(_0x57aed1._0x45ee5f)],
1774
+ 'originalFilename': _0xaf4f4f['originalFilename']
1667
1775
  });
1668
- return formatViewFileResult(_0x70975a, ![]);
1776
+ return formatViewFileResult(_0x4192d0, ![]);
1669
1777
  },
1670
- async 'get_worker_status'(_0x3605a1) {
1671
- const _0x4f145e = _0xe4e7a5;
1672
- if (!_0x380bda[_0x4f145e(0x2cd)])
1673
- return 'Worker\x20features\x20not\x20available';
1674
- const _0xc38a26 = await fetch(_0x380bda[_0x4f145e(_0xb2782a._0x3126af)] + _0x4f145e(0x2a3) + encodeURIComponent(_0x3605a1['work_key'])), _0x3280bd = await _0xc38a26[_0x4f145e(_0xb2782a._0x3afb47)]();
1675
- if (!_0x3280bd['ok'])
1676
- return _0x4f145e(0x284) + _0x3605a1['work_key'] + _0x4f145e(_0xb2782a._0x38c056);
1677
- return _0x4f145e(0x284) + _0x3605a1[_0x4f145e(0x345)] + _0x4f145e(_0xb2782a._0x94015d) + _0x3280bd[_0x4f145e(0x34a)];
1778
+ async 'get_worker_status'(_0x3bfbb1) {
1779
+ const _0xede4ca = _0x49b506;
1780
+ if (!_0x41541e[_0xede4ca(_0x4e63eb._0x1b381a)])
1781
+ return _0xede4ca(_0x4e63eb._0x40285f);
1782
+ const _0x359e4f = await fetch(_0x41541e[_0xede4ca(_0x4e63eb._0x4fc3a0)] + _0xede4ca(0x235) + encodeURIComponent(_0x3bfbb1['work_key'])), _0x26b0c4 = await _0x359e4f['json']();
1783
+ if (!_0x26b0c4['ok'])
1784
+ return _0xede4ca(0x113) + _0x3bfbb1[_0xede4ca(_0x4e63eb._0x1e3d6e)] + _0xede4ca(0x272);
1785
+ return _0xede4ca(_0x4e63eb._0x50a42e) + _0x3bfbb1[_0xede4ca(0x188)] + _0xede4ca(_0x4e63eb._0x342cf4) + _0x26b0c4[_0xede4ca(0x1a5)];
1678
1786
  },
1679
- async 'park_worker'(_0x4a944e) {
1680
- const _0x5c8d40 = _0xe4e7a5;
1681
- if (!_0x380bda[_0x5c8d40(_0x5e13fa._0xdce8db)])
1682
- return 'Worker\x20features\x20not\x20available';
1683
- const _0x50e5f0 = await fetch(_0x380bda['daemonLocalUrl'] + _0x5c8d40(0x269), {
1684
- 'method': 'POST',
1685
- 'headers': { 'Content-Type': _0x5c8d40(_0x5e13fa._0x57c0c1) },
1686
- 'body': JSON['stringify']({ 'work_key': _0x4a944e['work_key'] })
1687
- }), _0x4fe715 = await _0x50e5f0['json']();
1688
- if (!_0x4fe715['ok'])
1689
- throw new Error(_0x4fe715['error'] ?? _0x5c8d40(_0x5e13fa._0x5939e6));
1690
- return _0x5c8d40(_0x5e13fa._0x28b124) + _0x4a944e[_0x5c8d40(0x345)] + _0x5c8d40(_0x5e13fa._0x1f9d41);
1787
+ async 'park_worker'(_0x4bb741) {
1788
+ const _0x41116b = _0x49b506;
1789
+ if (!_0x41541e[_0x41116b(0x13b)])
1790
+ return _0x41116b(_0xe00cc0._0x384889);
1791
+ const _0x4733ff = await fetch(_0x41541e[_0x41116b(0x13b)] + '/workers/park', {
1792
+ 'method': _0x41116b(_0xe00cc0._0x42f5cc),
1793
+ 'headers': { 'Content-Type': _0x41116b(0x19c) },
1794
+ 'body': JSON[_0x41116b(_0xe00cc0._0x313371)]({ 'work_key': _0x4bb741[_0x41116b(0x188)] })
1795
+ }), _0x9a4521 = await _0x4733ff[_0x41116b(_0xe00cc0._0x137049)]();
1796
+ if (!_0x9a4521['ok'])
1797
+ throw new Error(_0x9a4521[_0x41116b(_0xe00cc0._0x49d283)] ?? 'park_worker\x20failed');
1798
+ return 'Worker\x20\x22' + _0x4bb741[_0x41116b(_0xe00cc0._0x47125a)] + _0x41116b(0x241);
1691
1799
  },
1692
- async 'mark_waiting_input'(_0x3db07a) {
1693
- const _0x544fe0 = _0xe4e7a5;
1694
- if (!_0x380bda['daemonLocalUrl'] || !_0x380bda[_0x544fe0(0x204)])
1695
- return _0x544fe0(0x2a6);
1696
- const _0x3e8f6d = await fetch(_0x380bda['daemonLocalUrl'] + _0x544fe0(_0x29779b._0x19d442), {
1697
- 'method': _0x544fe0(_0x29779b._0x5d5412),
1698
- 'headers': { 'Content-Type': 'application/json' },
1699
- 'body': JSON[_0x544fe0(_0x29779b._0x18fbf9)]({
1700
- 'work_key': _0x3db07a['work_key'],
1701
- 'agent_id': _0x380bda[_0x544fe0(_0x29779b._0x464ce5)]
1800
+ async 'mark_waiting_input'(_0x5a077e) {
1801
+ const _0x4309c3 = _0x49b506;
1802
+ if (!_0x41541e['daemonLocalUrl'] || !_0x41541e[_0x4309c3(_0x28479e._0x557738)])
1803
+ return _0x4309c3(0x17b);
1804
+ const _0x3a97a8 = await fetch(_0x41541e[_0x4309c3(_0x28479e._0x21409c)] + _0x4309c3(0x1b6), {
1805
+ 'method': 'POST',
1806
+ 'headers': { 'Content-Type': _0x4309c3(_0x28479e._0xdfd5fd) },
1807
+ 'body': JSON[_0x4309c3(_0x28479e._0x236914)]({
1808
+ 'work_key': _0x5a077e[_0x4309c3(0x188)],
1809
+ 'agent_id': _0x41541e['agentId']
1702
1810
  })
1703
- }), _0x19dc3d = await _0x3e8f6d[_0x544fe0(_0x29779b._0x30796f)]();
1704
- if (!_0x19dc3d['ok'])
1705
- throw new Error(_0x19dc3d[_0x544fe0(_0x29779b._0x30b04d)] ?? _0x544fe0(_0x29779b._0x2eeb0a));
1706
- return _0x544fe0(0x284) + _0x3db07a[_0x544fe0(_0x29779b._0x3e992d)] + _0x544fe0(0x28a);
1811
+ }), _0x360fc5 = await _0x3a97a8[_0x4309c3(0x11f)]();
1812
+ if (!_0x360fc5['ok'])
1813
+ throw new Error(_0x360fc5[_0x4309c3(_0x28479e._0x3cd66c)] ?? _0x4309c3(0x18c));
1814
+ return _0x4309c3(0x113) + _0x5a077e[_0x4309c3(0x188)] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
1707
1815
  },
1708
- async 'escalate_to_main'(_0x1ee280) {
1709
- const _0x2ce5cc = _0xe4e7a5;
1710
- if (!_0x380bda[_0x2ce5cc(_0x5e176e._0x39f422)])
1711
- return _0x2ce5cc(_0x5e176e._0x3991ae);
1712
- const _0x585485 = await fetch(_0x380bda[_0x2ce5cc(_0x5e176e._0x1ed1e8)] + _0x2ce5cc(_0x5e176e._0x1a90e9), {
1713
- 'method': _0x2ce5cc(_0x5e176e._0x18f46b),
1714
- 'headers': { 'Content-Type': _0x2ce5cc(_0x5e176e._0x54a3cb) },
1715
- 'body': JSON['stringify']({
1716
- 'work_key': _0x1ee280[_0x2ce5cc(_0x5e176e._0x136a9b)],
1717
- 'reason': _0x1ee280[_0x2ce5cc(_0x5e176e._0x2ce291)]
1816
+ async 'finalize_promotion'(_0x850aed) {
1817
+ const _0x2ee1e0 = _0x49b506;
1818
+ if (!_0x41541e[_0x2ee1e0(_0x37480e._0x434df7)])
1819
+ throw new Error(_0x2ee1e0(0x110));
1820
+ const _0x5c5f21 = await _0x41541e[_0x2ee1e0(_0x37480e._0x339cdd)][_0x2ee1e0(0x24d)](_0x850aed);
1821
+ return formatPromotionFinalizeResult(_0x5c5f21);
1822
+ },
1823
+ async 'escalate_to_main'(_0xe0018a) {
1824
+ const _0x1730b4 = _0x49b506;
1825
+ if (!_0x41541e[_0x1730b4(0x13b)])
1826
+ return _0x1730b4(_0x1861b4._0x5075d7);
1827
+ const _0x22e3be = await fetch(_0x41541e[_0x1730b4(_0x1861b4._0x4866b9)] + _0x1730b4(_0x1861b4._0x492f97), {
1828
+ 'method': _0x1730b4(_0x1861b4._0x119dce),
1829
+ 'headers': { 'Content-Type': _0x1730b4(0x19c) },
1830
+ 'body': JSON[_0x1730b4(_0x1861b4._0x1fd13e)]({
1831
+ 'work_key': _0xe0018a[_0x1730b4(_0x1861b4._0x5eda39)],
1832
+ 'reason': _0xe0018a[_0x1730b4(_0x1861b4._0x66c154)]
1718
1833
  })
1719
- }), _0x3006a3 = await _0x585485[_0x2ce5cc(_0x5e176e._0x38caa2)]();
1720
- if (!_0x3006a3['ok'])
1721
- throw new Error(_0x3006a3[_0x2ce5cc(0x352)] ?? _0x2ce5cc(0x351));
1722
- return _0x2ce5cc(_0x5e176e._0x491876) + _0x1ee280[_0x2ce5cc(0x22f)];
1834
+ }), _0x27a219 = await _0x22e3be[_0x1730b4(0x11f)]();
1835
+ if (!_0x27a219['ok'])
1836
+ throw new Error(_0x27a219[_0x1730b4(0x274)] ?? _0x1730b4(0x269));
1837
+ return _0x1730b4(_0x1861b4._0x5a453c) + _0xe0018a[_0x1730b4(_0x1861b4._0x536ddc)];
1723
1838
  }
1724
1839
  };
1725
1840
  }
1726
- function textResult(_0x42af71, _0x21ce2a = ![]) {
1727
- const _0x28eaef = _0x5e089b;
1841
+ function textResult(_0x182eca, _0x267833 = ![]) {
1842
+ const _0x32e793 = { _0x52add4: 0x250 }, _0x14b5a5 = _0x42226e;
1728
1843
  return {
1729
1844
  'content': [{
1730
- 'type': _0x28eaef(0x310),
1731
- 'text': _0x42af71
1845
+ 'type': _0x14b5a5(_0x32e793._0x52add4),
1846
+ 'text': _0x182eca
1732
1847
  }],
1733
- ..._0x21ce2a ? { 'isError': !![] } : {}
1848
+ ..._0x267833 ? { 'isError': !![] } : {}
1734
1849
  };
1735
1850
  }
1736
- async function registerChatBridgeTools(_0x38a904, _0x2c2534, _0x57c2d7) {
1737
- const _0x1a24f1 = {
1738
- _0x30c5f5: 0x2f7,
1739
- _0x1f0574: 0x27d,
1740
- _0x1ba18d: 0x27d,
1741
- _0x51de62: 0x236,
1742
- _0x11dc2e: 0x226,
1743
- _0x3225cf: 0x1ed,
1744
- _0x10955b: 0x1e9,
1745
- _0x1e6e14: 0x27d,
1746
- _0x260f21: 0x201,
1747
- _0x51b4b6: 0x236,
1748
- _0x75a72: 0x316,
1749
- _0x485218: 0x368,
1750
- _0x3740a0: 0x334,
1751
- _0x545a1f: 0x1fd,
1752
- _0xa8f343: 0x1ed,
1753
- _0x7e3cbf: 0x27d,
1754
- _0x29ccf5: 0x328,
1755
- _0x3621b0: 0x27d,
1756
- _0x36a916: 0x236,
1757
- _0x525e32: 0x334,
1758
- _0x4709c9: 0x357,
1759
- _0x51cac8: 0x2a2,
1760
- _0xfbe39: 0x328,
1761
- _0x13f4d5: 0x236,
1762
- _0x1f9e18: 0x21e,
1763
- _0x568765: 0x236,
1764
- _0x16f502: 0x201,
1765
- _0x346b5b: 0x1fd,
1766
- _0x10bfdf: 0x236,
1767
- _0x160e27: 0x32d,
1768
- _0x4abfa2: 0x210,
1769
- _0x1956cd: 0x27e,
1770
- _0x1d4a92: 0x2b6,
1771
- _0x2becc8: 0x27d
1772
- }, _0x5b436c = { _0x50df35: 0x351 }, _0x551a98 = { _0x47d2ab: 0x34f }, _0x4bac32 = {
1773
- _0x2a4b37: 0x261,
1774
- _0x2505e7: 0x367
1775
- }, _0x55c59b = {
1776
- _0x4d2dca: 0x270,
1777
- _0x58239d: 0x367,
1778
- _0xe07687: 0x255
1779
- }, _0x56ebed = { _0x2963f5: 0x2eb }, _0x2a00b9 = { _0x258f49: 0x22c }, _0x26cc25 = { _0x33df7: 0x367 }, _0x381cd6 = { _0x1717f2: 0x367 }, _0x134d0a = { _0x40a2cf: 0x367 }, _0x23bf1d = { _0x3bddce: 0x281 }, _0x76fdc5 = {
1780
- _0x383ca6: 0x362,
1781
- _0x4c69c2: 0x30f
1782
- }, _0x4202fe = _0x5e089b, {z: _0x5d1182} = await import(_0x4202fe(_0x1a24f1._0x30c5f5));
1783
- _0x38a904['tool']('send_message', _0x4202fe(0x341), {
1784
- 'target': _0x5d1182[_0x4202fe(_0x1a24f1._0x1f0574)](),
1785
- 'content': _0x5d1182['string'](),
1786
- 'attachment_ids': _0x5d1182[_0x4202fe(0x328)](_0x5d1182[_0x4202fe(_0x1a24f1._0x1ba18d)]())[_0x4202fe(_0x1a24f1._0x51de62)](),
1787
- 'visibility': _0x5d1182[_0x4202fe(0x334)]([
1788
- 'public',
1851
+ async function registerChatBridgeTools(_0x492ee7, _0x5bc2c6, _0x3d04af) {
1852
+ const _0x103352 = {
1853
+ _0x131500: 0x264,
1854
+ _0x1d44c2: 0x169,
1855
+ _0xeb3a1d: 0x126,
1856
+ _0x3e118e: 0x257,
1857
+ _0x368a6e: 0x257,
1858
+ _0x2d6a8f: 0x287,
1859
+ _0x3793d9: 0x277,
1860
+ _0x882640: 0x146,
1861
+ _0x3873de: 0x121,
1862
+ _0x735048: 0x27e,
1863
+ _0xaed51f: 0x162,
1864
+ _0x2835f3: 0x116,
1865
+ _0x141aa2: 0x238,
1866
+ _0x16e7c8: 0x1aa,
1867
+ _0x504a59: 0x1a4,
1868
+ _0x18764f: 0x17d,
1869
+ _0x937b6c: 0x129,
1870
+ _0x3e6c47: 0x144,
1871
+ _0x2aed98: 0x1ba,
1872
+ _0xaaaa8c: 0x209,
1873
+ _0x56ec31: 0x257,
1874
+ _0x2c3488: 0x146,
1875
+ _0x41f8bb: 0x24a,
1876
+ _0x1c9b01: 0x277,
1877
+ _0x4dc289: 0x25e,
1878
+ _0x1c90e3: 0x283,
1879
+ _0x129ac9: 0x116,
1880
+ _0x3c00e8: 0x257,
1881
+ _0x56a46c: 0x277,
1882
+ _0x1815fc: 0x15d,
1883
+ _0x1b7899: 0x257,
1884
+ _0x2f278c: 0x116,
1885
+ _0x4d3988: 0x277,
1886
+ _0x1792f1: 0x238,
1887
+ _0x30e08f: 0x256,
1888
+ _0x28a75a: 0x116,
1889
+ _0x2a3628: 0x14b,
1890
+ _0x1088e9: 0x257,
1891
+ _0x4f1b7f: 0x257,
1892
+ _0x1f739c: 0x1d1,
1893
+ _0x3c5f73: 0x266,
1894
+ _0x14553c: 0x257,
1895
+ _0x1259ef: 0x1f0,
1896
+ _0x306946: 0x101,
1897
+ _0x1d9488: 0x14c,
1898
+ _0x1c31fd: 0x229,
1899
+ _0x18bdf9: 0x116,
1900
+ _0x457bf5: 0x284,
1901
+ _0x55735b: 0x17e,
1902
+ _0xeb4bc9: 0x257,
1903
+ _0x269ecd: 0x15a,
1904
+ _0x20f97d: 0x257
1905
+ }, _0x5dc608 = { _0x759e61: 0x18c }, _0x267a55 = { _0x23e2e8: 0x280 }, _0x56259b = { _0x53342b: 0x280 }, _0x4ea85a = { _0x3b4f6c: 0x167 }, _0x5ba8b8 = {
1906
+ _0x406353: 0x262,
1907
+ _0x590024: 0x10b
1908
+ }, _0x3b6bde = {
1909
+ _0x2e55c8: 0x280,
1910
+ _0x1d145d: 0x234
1911
+ }, _0x5e2286 = {
1912
+ _0x1b0e14: 0x256,
1913
+ _0xc69948: 0x280
1914
+ }, _0x5b87e1 = {
1915
+ _0x441332: 0x147,
1916
+ _0x4ba804: 0x280
1917
+ }, _0x128ce9 = {
1918
+ _0x2a6819: 0x1ba,
1919
+ _0x1ea8a0: 0x280
1920
+ }, _0x1ec3ba = { _0x2cb8e6: 0x12c }, _0x4c60b4 = { _0x3b61b9: 0x280 }, _0x42ac97 = { _0x30d8ba: 0x169 }, _0x35dcf3 = _0x42226e, {z: _0x266501} = await import(_0x35dcf3(_0x103352._0x131500));
1921
+ _0x492ee7['tool'](_0x35dcf3(_0x103352._0x1d44c2), _0x35dcf3(_0x103352._0xeb3a1d), {
1922
+ 'target': _0x266501[_0x35dcf3(_0x103352._0x3e118e)](),
1923
+ 'content': _0x266501[_0x35dcf3(_0x103352._0x368a6e)](),
1924
+ 'attachment_ids': _0x266501[_0x35dcf3(0x283)](_0x266501[_0x35dcf3(0x257)]())['optional'](),
1925
+ 'metadataJson': _0x266501[_0x35dcf3(_0x103352._0x2d6a8f)]()[_0x35dcf3(_0x103352._0x3793d9)](),
1926
+ 'visibility': _0x266501[_0x35dcf3(_0x103352._0x882640)]([
1927
+ _0x35dcf3(0xfb),
1789
1928
  'aside'
1790
- ])[_0x4202fe(0x236)]()[_0x4202fe(_0x1a24f1._0x11dc2e)](_0x4202fe(0x2ef))
1791
- }, async _0x25aa6f => {
1792
- const _0x5b782e = _0x4202fe;
1929
+ ])[_0x35dcf3(_0x103352._0x3793d9)]()[_0x35dcf3(_0x103352._0x3873de)](_0x35dcf3(_0x103352._0x735048))
1930
+ }, async _0x58c4f4 => {
1931
+ const _0xefee25 = _0x35dcf3;
1793
1932
  try {
1794
- return textResult(await _0x2c2534[_0x5b782e(_0x76fdc5._0x383ca6)](_0x25aa6f));
1795
- } catch (_0x397790) {
1796
- return textResult(_0x397790 instanceof Error ? _0x397790['message'] : _0x5b782e(_0x76fdc5._0x4c69c2), !![]);
1933
+ return textResult(await _0x5bc2c6[_0xefee25(_0x42ac97._0x30d8ba)](_0x58c4f4));
1934
+ } catch (_0x21144d) {
1935
+ return textResult(_0x21144d instanceof Error ? _0x21144d[_0xefee25(0x280)] : _0xefee25(0x1c3), !![]);
1797
1936
  }
1798
- }), _0x38a904[_0x4202fe(_0x1a24f1._0x3225cf)](_0x4202fe(_0x1a24f1._0x10955b), _0x4202fe(0x2d8), {}, async () => {
1799
- const _0x3622b4 = _0x4202fe;
1937
+ }), _0x492ee7['tool']('check_messages', _0x35dcf3(_0x103352._0xaed51f), {}, async () => {
1938
+ const _0x5d3270 = _0x35dcf3;
1800
1939
  try {
1801
- return textResult(await _0x2c2534[_0x3622b4(0x1e9)]());
1802
- } catch (_0x29a126) {
1803
- return textResult(_0x29a126 instanceof Error ? _0x29a126[_0x3622b4(0x367)] : _0x3622b4(_0x23bf1d._0x3bddce), !![]);
1940
+ return textResult(await _0x5bc2c6['check_messages']());
1941
+ } catch (_0xdcc423) {
1942
+ return textResult(_0xdcc423 instanceof Error ? _0xdcc423[_0x5d3270(0x280)] : _0x5d3270(0x278), !![]);
1804
1943
  }
1805
- }), _0x38a904['tool']('read_history', _0x4202fe(0x1e4), {
1806
- 'channel': _0x5d1182[_0x4202fe(_0x1a24f1._0x1e6e14)](),
1807
- 'limit': _0x5d1182['number']()[_0x4202fe(0x236)](),
1808
- 'before': _0x5d1182[_0x4202fe(_0x1a24f1._0x260f21)]()['optional'](),
1809
- 'after': _0x5d1182['number']()[_0x4202fe(_0x1a24f1._0x51b4b6)]()
1810
- }, async _0xffcb10 => {
1811
- const _0x9d59ff = _0x4202fe;
1944
+ }), _0x492ee7['tool'](_0x35dcf3(0x1d4), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
1945
+ 'channel': _0x266501[_0x35dcf3(_0x103352._0x368a6e)](),
1946
+ 'limit': _0x266501[_0x35dcf3(_0x103352._0x2835f3)]()['optional'](),
1947
+ 'before': _0x266501[_0x35dcf3(0x116)]()['optional'](),
1948
+ 'after': _0x266501['number']()[_0x35dcf3(0x277)]()
1949
+ }, async _0x18dd5f => {
1950
+ const _0x25268a = _0x35dcf3;
1812
1951
  try {
1813
- return textResult(await _0x2c2534['read_history'](_0xffcb10));
1814
- } catch (_0x9355de) {
1815
- return textResult(_0x9355de instanceof Error ? _0x9355de[_0x9d59ff(_0x134d0a._0x40a2cf)] : _0x9d59ff(0x28c), !![]);
1952
+ return textResult(await _0x5bc2c6['read_history'](_0x18dd5f));
1953
+ } catch (_0x34937e) {
1954
+ return textResult(_0x34937e instanceof Error ? _0x34937e[_0x25268a(_0x4c60b4._0x3b61b9)] : _0x25268a(0x19e), !![]);
1816
1955
  }
1817
- }), _0x38a904[_0x4202fe(0x1ed)](_0x4202fe(_0x1a24f1._0x75a72), _0x4202fe(0x247), {}, async () => {
1818
- const _0x440c62 = _0x4202fe;
1956
+ }), _0x492ee7[_0x35dcf3(_0x103352._0x141aa2)](_0x35dcf3(0x1af), _0x35dcf3(_0x103352._0x16e7c8), {}, async () => {
1957
+ const _0x4936ce = _0x35dcf3;
1819
1958
  try {
1820
- return textResult(await _0x2c2534[_0x440c62(0x316)]());
1821
- } catch (_0x17c5c4) {
1822
- return textResult(_0x17c5c4 instanceof Error ? _0x17c5c4[_0x440c62(0x367)] : _0x440c62(0x30c), !![]);
1959
+ return textResult(await _0x5bc2c6[_0x4936ce(0x1af)]());
1960
+ } catch (_0x418847) {
1961
+ return textResult(_0x418847 instanceof Error ? _0x418847['message'] : 'list_server\x20failed', !![]);
1823
1962
  }
1824
- }), _0x38a904[_0x4202fe(0x1ed)](_0x4202fe(0x20d), _0x4202fe(_0x1a24f1._0x485218), {
1825
- 'channel': _0x5d1182[_0x4202fe(_0x1a24f1._0x1e6e14)](),
1826
- 'status': _0x5d1182[_0x4202fe(_0x1a24f1._0x3740a0)]([
1827
- _0x4202fe(0x225),
1828
- 'in_progress',
1829
- _0x4202fe(0x34c),
1830
- _0x4202fe(_0x1a24f1._0x545a1f)
1831
- ])['optional']()
1832
- }, async _0x3636b8 => {
1833
- const _0x3169c4 = _0x4202fe;
1963
+ }), _0x492ee7['tool'](_0x35dcf3(_0x103352._0x504a59), _0x35dcf3(_0x103352._0x18764f), {
1964
+ 'channel': _0x266501['string'](),
1965
+ 'status': _0x266501[_0x35dcf3(_0x103352._0x882640)]([
1966
+ _0x35dcf3(_0x103352._0x937b6c),
1967
+ _0x35dcf3(0x22b),
1968
+ _0x35dcf3(0x21a),
1969
+ _0x35dcf3(_0x103352._0x3e6c47)
1970
+ ])[_0x35dcf3(_0x103352._0x3793d9)]()
1971
+ }, async _0x2ee800 => {
1972
+ const _0x2e5417 = _0x35dcf3;
1834
1973
  try {
1835
- return textResult(await _0x2c2534['list_tasks'](_0x3636b8));
1836
- } catch (_0x339ce6) {
1837
- return textResult(_0x339ce6 instanceof Error ? _0x339ce6[_0x3169c4(_0x381cd6._0x1717f2)] : _0x3169c4(0x28f), !![]);
1974
+ return textResult(await _0x5bc2c6[_0x2e5417(0x1a4)](_0x2ee800));
1975
+ } catch (_0x3cfdb8) {
1976
+ return textResult(_0x3cfdb8 instanceof Error ? _0x3cfdb8[_0x2e5417(0x280)] : _0x2e5417(_0x1ec3ba._0x2cb8e6), !![]);
1838
1977
  }
1839
- }), _0x38a904[_0x4202fe(_0x1a24f1._0xa8f343)]('create_tasks', _0x4202fe(0x369), {
1840
- 'channel': _0x5d1182[_0x4202fe(0x27d)](),
1841
- 'idempotency_key': _0x5d1182[_0x4202fe(_0x1a24f1._0x7e3cbf)]()['optional'](),
1842
- 'tasks': _0x5d1182[_0x4202fe(_0x1a24f1._0x29ccf5)](_0x5d1182[_0x4202fe(0x213)]({
1843
- 'title': _0x5d1182[_0x4202fe(_0x1a24f1._0x3621b0)](),
1844
- 'description': _0x5d1182['string']()[_0x4202fe(_0x1a24f1._0x36a916)](),
1845
- 'priority': _0x5d1182[_0x4202fe(_0x1a24f1._0x525e32)]([
1978
+ }), _0x492ee7['tool'](_0x35dcf3(_0x103352._0x2aed98), _0x35dcf3(_0x103352._0xaaaa8c), {
1979
+ 'channel': _0x266501[_0x35dcf3(0x257)](),
1980
+ 'idempotency_key': _0x266501[_0x35dcf3(_0x103352._0x56ec31)]()[_0x35dcf3(_0x103352._0x3793d9)](),
1981
+ 'tasks': _0x266501['array'](_0x266501[_0x35dcf3(0x229)]({
1982
+ 'title': _0x266501[_0x35dcf3(_0x103352._0x56ec31)](),
1983
+ 'description': _0x266501['string']()[_0x35dcf3(0x277)](),
1984
+ 'priority': _0x266501[_0x35dcf3(_0x103352._0x2c3488)]([
1846
1985
  'low',
1847
- 'medium',
1848
- _0x4202fe(0x25b),
1849
- _0x4202fe(_0x1a24f1._0x4709c9)
1850
- ])[_0x4202fe(0x236)]()
1986
+ _0x35dcf3(_0x103352._0x41f8bb),
1987
+ _0x35dcf3(0x232),
1988
+ _0x35dcf3(0x223)
1989
+ ])[_0x35dcf3(_0x103352._0x1c9b01)]()
1851
1990
  }))
1852
- }, async _0x2a9fa2 => {
1853
- const _0x448af4 = _0x4202fe;
1991
+ }, async _0x2aacab => {
1992
+ const _0x83c636 = _0x35dcf3;
1854
1993
  try {
1855
- return textResult(await _0x2c2534[_0x448af4(0x292)](_0x2a9fa2));
1856
- } catch (_0x20ad59) {
1857
- return textResult(_0x20ad59 instanceof Error ? _0x20ad59[_0x448af4(_0x26cc25._0x33df7)] : _0x448af4(0x2d2), !![]);
1994
+ return textResult(await _0x5bc2c6[_0x83c636(_0x128ce9._0x2a6819)](_0x2aacab));
1995
+ } catch (_0x488b40) {
1996
+ return textResult(_0x488b40 instanceof Error ? _0x488b40[_0x83c636(_0x128ce9._0x1ea8a0)] : 'create_tasks\x20failed', !![]);
1858
1997
  }
1859
- }), _0x38a904[_0x4202fe(_0x1a24f1._0x3225cf)](_0x4202fe(_0x1a24f1._0x51cac8), '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.', {
1860
- 'channel': _0x5d1182[_0x4202fe(0x27d)](),
1861
- 'task_numbers': _0x5d1182[_0x4202fe(_0x1a24f1._0xfbe39)](_0x5d1182[_0x4202fe(0x201)]())[_0x4202fe(_0x1a24f1._0x13f4d5)](),
1862
- 'subtask_numbers': _0x5d1182[_0x4202fe(0x328)](_0x5d1182[_0x4202fe(0x201)]())[_0x4202fe(0x236)](),
1863
- 'message_ids': _0x5d1182['array'](_0x5d1182[_0x4202fe(0x27d)]())['optional'](),
1864
- 'evidence': _0x5d1182[_0x4202fe(0x1ea)](_0x5d1182['string'](), _0x5d1182[_0x4202fe(0x213)]({
1865
- 'create_thread': _0x5d1182[_0x4202fe(_0x1a24f1._0x1f9e18)]()[_0x4202fe(0x236)](),
1866
- 'create_task': _0x5d1182['unknown']()[_0x4202fe(0x236)]()
1867
- }))[_0x4202fe(0x236)](),
1868
- 'idempotency_key': _0x5d1182[_0x4202fe(_0x1a24f1._0x1f0574)]()[_0x4202fe(_0x1a24f1._0x568765)]()
1869
- }, async _0x31f520 => {
1870
- const _0x28c975 = _0x4202fe;
1998
+ }), _0x492ee7[_0x35dcf3(0x238)]('claim_tasks', _0x35dcf3(_0x103352._0x4dc289), {
1999
+ 'channel': _0x266501['string'](),
2000
+ 'task_numbers': _0x266501[_0x35dcf3(_0x103352._0x1c90e3)](_0x266501['number']())[_0x35dcf3(_0x103352._0x1c9b01)](),
2001
+ 'subtask_numbers': _0x266501[_0x35dcf3(0x283)](_0x266501[_0x35dcf3(_0x103352._0x129ac9)]())[_0x35dcf3(_0x103352._0x1c9b01)](),
2002
+ 'message_ids': _0x266501[_0x35dcf3(0x283)](_0x266501[_0x35dcf3(_0x103352._0x3c00e8)]())[_0x35dcf3(0x277)](),
2003
+ 'evidence': _0x266501[_0x35dcf3(0x201)](_0x266501['string'](), _0x266501['object']({
2004
+ 'create_thread': _0x266501[_0x35dcf3(0x287)]()[_0x35dcf3(_0x103352._0x3793d9)](),
2005
+ 'create_task': _0x266501[_0x35dcf3(0x287)]()[_0x35dcf3(_0x103352._0x56a46c)]()
2006
+ }))[_0x35dcf3(0x277)](),
2007
+ 'idempotency_key': _0x266501['string']()['optional']()
2008
+ }, async _0x22522f => {
2009
+ const _0x47b2b0 = _0x35dcf3;
1871
2010
  try {
1872
- return textResult(await _0x2c2534[_0x28c975(0x2a2)](_0x31f520));
1873
- } catch (_0x510a87) {
1874
- return textResult(_0x510a87 instanceof Error ? _0x510a87['message'] : _0x28c975(_0x2a00b9._0x258f49), !![]);
2011
+ return textResult(await _0x5bc2c6[_0x47b2b0(0x130)](_0x22522f));
2012
+ } catch (_0x51e5af) {
2013
+ return textResult(_0x51e5af instanceof Error ? _0x51e5af['message'] : _0x47b2b0(0x112), !![]);
1875
2014
  }
1876
- }), _0x38a904['tool'](_0x4202fe(0x2eb), _0x4202fe(0x28e), {
1877
- 'channel': _0x5d1182[_0x4202fe(0x27d)](),
1878
- 'task_number': _0x5d1182[_0x4202fe(0x201)](),
1879
- 'subtask_number': _0x5d1182[_0x4202fe(0x201)]()[_0x4202fe(_0x1a24f1._0x51de62)](),
1880
- 'idempotency_key': _0x5d1182[_0x4202fe(0x27d)]()['optional']()
1881
- }, async _0x8c6364 => {
1882
- const _0xe8d58 = _0x4202fe;
2015
+ }), _0x492ee7['tool'](_0x35dcf3(0x147), _0x35dcf3(_0x103352._0x1815fc), {
2016
+ 'channel': _0x266501[_0x35dcf3(_0x103352._0x1b7899)](),
2017
+ 'task_number': _0x266501[_0x35dcf3(_0x103352._0x2f278c)](),
2018
+ 'subtask_number': _0x266501[_0x35dcf3(0x116)]()[_0x35dcf3(_0x103352._0x4d3988)](),
2019
+ 'idempotency_key': _0x266501[_0x35dcf3(_0x103352._0x3e118e)]()[_0x35dcf3(0x277)]()
2020
+ }, async _0x520253 => {
2021
+ const _0xcf48c0 = _0x35dcf3;
1883
2022
  try {
1884
- return textResult(await _0x2c2534[_0xe8d58(_0x56ebed._0x2963f5)](_0x8c6364));
1885
- } catch (_0x3e6374) {
1886
- return textResult(_0x3e6374 instanceof Error ? _0x3e6374['message'] : _0xe8d58(0x29c), !![]);
2023
+ return textResult(await _0x5bc2c6[_0xcf48c0(_0x5b87e1._0x441332)](_0x520253));
2024
+ } catch (_0x5eb6de) {
2025
+ return textResult(_0x5eb6de instanceof Error ? _0x5eb6de[_0xcf48c0(_0x5b87e1._0x4ba804)] : _0xcf48c0(0x187), !![]);
1887
2026
  }
1888
- }), _0x38a904[_0x4202fe(0x1ed)](_0x4202fe(0x219), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.\x20Assignee\x20rules:\x20an\x20unclaimed\x20task/subtask\x20is\x20automatically\x20claimed\x20by\x20you\x20in\x20the\x20same\x20call\x20(caller\x20becomes\x20the\x20assignee);\x20if\x20the\x20task\x20is\x20already\x20claimed\x20by\x20another\x20participant,\x20the\x20server\x20returns\x20403\x20with\x20the\x20current\x20claimer\x27s\x20name\x20and\x20you\x20must\x20NOT\x20retry\x20—\x20let\x20the\x20assignee\x20finish\x20or\x20ask\x20them\x20to\x20release\x20the\x20task.\x20When\x20moving\x20work\x20to\x20in_review,\x20check\x20your\x20memory\x20or\x20channel\x20rules\x20and\x20send\x20a\x20reviewer\x20mention\x20yourself\x20when\x20appropriate.', {
1889
- 'channel': _0x5d1182['string'](),
1890
- 'task_number': _0x5d1182[_0x4202fe(_0x1a24f1._0x260f21)](),
1891
- 'subtask_number': _0x5d1182[_0x4202fe(_0x1a24f1._0x16f502)]()[_0x4202fe(0x236)](),
1892
- 'status': _0x5d1182['enum']([
2027
+ }), _0x492ee7[_0x35dcf3(_0x103352._0x1792f1)](_0x35dcf3(_0x103352._0x30e08f), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.\x20Assignee\x20rules:\x20an\x20unclaimed\x20task/subtask\x20is\x20automatically\x20claimed\x20by\x20you\x20in\x20the\x20same\x20call\x20(caller\x20becomes\x20the\x20assignee);\x20if\x20the\x20task\x20is\x20already\x20claimed\x20by\x20another\x20participant,\x20the\x20server\x20returns\x20403\x20with\x20the\x20current\x20claimer\x27s\x20name\x20and\x20you\x20must\x20NOT\x20retry\x20—\x20let\x20the\x20assignee\x20finish\x20or\x20ask\x20them\x20to\x20release\x20the\x20task.\x20When\x20moving\x20work\x20to\x20in_review,\x20check\x20your\x20memory\x20or\x20channel\x20rules\x20and\x20send\x20a\x20reviewer\x20mention\x20yourself\x20when\x20appropriate.', {
2028
+ 'channel': _0x266501[_0x35dcf3(_0x103352._0x368a6e)](),
2029
+ 'task_number': _0x266501[_0x35dcf3(_0x103352._0x28a75a)](),
2030
+ 'subtask_number': _0x266501[_0x35dcf3(0x116)]()[_0x35dcf3(0x277)](),
2031
+ 'status': _0x266501[_0x35dcf3(0x146)]([
1893
2032
  'todo',
1894
2033
  'in_progress',
1895
- _0x4202fe(0x34c),
1896
- _0x4202fe(_0x1a24f1._0x346b5b)
2034
+ 'in_review',
2035
+ _0x35dcf3(_0x103352._0x3e6c47)
1897
2036
  ]),
1898
- 'idempotency_key': _0x5d1182[_0x4202fe(0x27d)]()[_0x4202fe(_0x1a24f1._0x10bfdf)]()
1899
- }, async _0x6a8817 => {
1900
- const _0x560ec9 = _0x4202fe;
2037
+ 'idempotency_key': _0x266501['string']()['optional']()
2038
+ }, async _0x47f810 => {
2039
+ const _0x410c2d = _0x35dcf3;
2040
+ try {
2041
+ return textResult(await _0x5bc2c6[_0x410c2d(_0x5e2286._0x1b0e14)](_0x47f810));
2042
+ } catch (_0xf77d61) {
2043
+ return textResult(_0xf77d61 instanceof Error ? _0xf77d61[_0x410c2d(_0x5e2286._0xc69948)] : 'update_task_status\x20failed', !![]);
2044
+ }
2045
+ }), _0x492ee7[_0x35dcf3(0x238)](_0x35dcf3(_0x103352._0x2a3628), 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
2046
+ 'channel': _0x266501[_0x35dcf3(_0x103352._0x1088e9)](),
2047
+ 'file_path': _0x266501[_0x35dcf3(_0x103352._0x1b7899)]()
2048
+ }, async _0xd7d0 => {
2049
+ const _0x34f9da = _0x35dcf3;
1901
2050
  try {
1902
- return textResult(await _0x2c2534[_0x560ec9(0x219)](_0x6a8817));
1903
- } catch (_0x4c3dde) {
1904
- return textResult(_0x4c3dde instanceof Error ? _0x4c3dde[_0x560ec9(0x367)] : 'update_task_status\x20failed', !![]);
2051
+ return textResult(await _0x5bc2c6['upload_file'](_0xd7d0));
2052
+ } catch (_0x3821fa) {
2053
+ return textResult(_0x3821fa instanceof Error ? _0x3821fa[_0x34f9da(_0x3b6bde._0x2e55c8)] : _0x34f9da(_0x3b6bde._0x1d145d), !![]);
1905
2054
  }
1906
- }), _0x38a904[_0x4202fe(0x1ed)]('upload_file', _0x4202fe(_0x1a24f1._0x160e27), {
1907
- 'channel': _0x5d1182[_0x4202fe(0x27d)](),
1908
- 'file_path': _0x5d1182[_0x4202fe(0x27d)]()
1909
- }, async _0x10d408 => {
1910
- const _0xb847c9 = _0x4202fe;
2055
+ }), _0x492ee7[_0x35dcf3(0x238)](_0x35dcf3(0x262), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x266501[_0x35dcf3(0x257)]() }, async _0x1f3625 => {
2056
+ const _0x4bf809 = _0x35dcf3;
1911
2057
  try {
1912
- return textResult(await _0x2c2534[_0xb847c9(_0x55c59b._0x4d2dca)](_0x10d408));
1913
- } catch (_0x429d33) {
1914
- return textResult(_0x429d33 instanceof Error ? _0x429d33[_0xb847c9(_0x55c59b._0x58239d)] : _0xb847c9(_0x55c59b._0xe07687), !![]);
2058
+ return textResult(await _0x5bc2c6[_0x4bf809(_0x5ba8b8._0x406353)](_0x1f3625));
2059
+ } catch (_0x19485e) {
2060
+ return textResult(_0x19485e instanceof Error ? _0x19485e['message'] : _0x4bf809(_0x5ba8b8._0x590024), !![]);
1915
2061
  }
1916
- }), _0x38a904[_0x4202fe(0x1ed)](_0x4202fe(0x1fe), _0x4202fe(_0x1a24f1._0x4abfa2), { 'attachment_id': _0x5d1182[_0x4202fe(0x27d)]() }, async _0x2b057d => {
1917
- const _0x191d1d = _0x4202fe;
2062
+ }), _0x492ee7['tool'](_0x35dcf3(0x167), 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x266501[_0x35dcf3(_0x103352._0x4f1b7f)]() }, async _0x344f7f => {
2063
+ const _0x3a5ff5 = _0x35dcf3;
1918
2064
  try {
1919
- return textResult(await _0x2c2534[_0x191d1d(0x1fe)](_0x2b057d));
1920
- } catch (_0x46bc59) {
1921
- return textResult(_0x46bc59 instanceof Error ? _0x46bc59['message'] : 'view_file\x20failed', !![]);
2065
+ return textResult(await _0x5bc2c6[_0x3a5ff5(_0x4ea85a._0x3b4f6c)](_0x344f7f));
2066
+ } catch (_0x2817c2) {
2067
+ return textResult(_0x2817c2 instanceof Error ? _0x2817c2[_0x3a5ff5(0x280)] : 'get_worker_status\x20failed', !![]);
1922
2068
  }
1923
- }), _0x38a904[_0x4202fe(_0x1a24f1._0x3225cf)]('get_worker_status', _0x4202fe(_0x1a24f1._0x1956cd), { 'work_key': _0x5d1182['string']() }, async _0x5026f9 => {
1924
- const _0x53a571 = _0x4202fe;
2069
+ }), _0x492ee7[_0x35dcf3(0x238)]('park_worker', 'Worker-only.\x20Park\x20the\x20current\x20worker\x20lane\x20after\x20you\x20have\x20already\x20reported\x20results\x20in\x20this\x20thread.\x20This\x20does\x20not\x20end\x20the\x20session;\x20same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.', { 'work_key': _0x266501[_0x35dcf3(0x257)]() }, async _0x1e5e8d => {
2070
+ const _0x3a8fe3 = _0x35dcf3;
1925
2071
  try {
1926
- return textResult(await _0x2c2534[_0x53a571(_0x4bac32._0x2a4b37)](_0x5026f9));
1927
- } catch (_0x22fd81) {
1928
- return textResult(_0x22fd81 instanceof Error ? _0x22fd81[_0x53a571(_0x4bac32._0x2505e7)] : _0x53a571(0x1f9), !![]);
2072
+ return textResult(await _0x5bc2c6['park_worker'](_0x1e5e8d));
2073
+ } catch (_0x5d8e61) {
2074
+ return textResult(_0x5d8e61 instanceof Error ? _0x5d8e61[_0x3a8fe3(_0x56259b._0x53342b)] : 'park_worker\x20failed', !![]);
1929
2075
  }
1930
- }), _0x38a904[_0x4202fe(0x1ed)](_0x4202fe(0x26f), _0x4202fe(_0x1a24f1._0x1d4a92), { 'work_key': _0x5d1182[_0x4202fe(_0x1a24f1._0x2becc8)]() }, async _0x4b5d18 => {
1931
- const _0x27bc59 = _0x4202fe;
2076
+ }), !_0x3d04af?.[_0x35dcf3(0x1f0)] && _0x492ee7['tool'](_0x35dcf3(_0x103352._0x1f739c), _0x35dcf3(_0x103352._0x3c5f73), {
2077
+ 'work_key': _0x266501[_0x35dcf3(_0x103352._0x368a6e)](),
2078
+ 'reason': _0x266501[_0x35dcf3(_0x103352._0x14553c)]()
2079
+ }, async _0x1248bf => {
2080
+ const _0x1c945e = _0x35dcf3;
1932
2081
  try {
1933
- return textResult(await _0x2c2534['park_worker'](_0x4b5d18));
1934
- } catch (_0x183218) {
1935
- return textResult(_0x183218 instanceof Error ? _0x183218[_0x27bc59(0x367)] : _0x27bc59(_0x551a98._0x47d2ab), !![]);
2082
+ return textResult(await _0x5bc2c6['escalate_to_main'](_0x1248bf));
2083
+ } catch (_0x560ef6) {
2084
+ return textResult(_0x560ef6 instanceof Error ? _0x560ef6[_0x1c945e(_0x267a55._0x23e2e8)] : 'escalate_to_main\x20failed', !![]);
1936
2085
  }
1937
- }), !_0x57c2d7?.[_0x4202fe(0x2ea)] && _0x38a904['tool']('escalate_to_main', 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
1938
- 'work_key': _0x5d1182[_0x4202fe(_0x1a24f1._0x1ba18d)](),
1939
- 'reason': _0x5d1182[_0x4202fe(_0x1a24f1._0x3621b0)]()
1940
- }, async _0x235709 => {
1941
- const _0x31962d = _0x4202fe;
2086
+ }), _0x3d04af?.[_0x35dcf3(_0x103352._0x1259ef)] && (_0x492ee7[_0x35dcf3(_0x103352._0x141aa2)](_0x35dcf3(_0x103352._0x306946), _0x35dcf3(_0x103352._0x1d9488), {
2087
+ 'draftMessageId': _0x266501[_0x35dcf3(0x257)](),
2088
+ 'tasks': _0x266501[_0x35dcf3(0x283)](_0x266501[_0x35dcf3(_0x103352._0x1c31fd)]({
2089
+ 'stage': _0x266501[_0x35dcf3(_0x103352._0x18bdf9)]()[_0x35dcf3(_0x103352._0x457bf5)]()[_0x35dcf3(_0x103352._0x55735b)](),
2090
+ 'member': _0x266501[_0x35dcf3(0x116)]()['int']()[_0x35dcf3(0x17e)](),
2091
+ 'specPath': _0x266501[_0x35dcf3(_0x103352._0xeb4bc9)]()
2092
+ }))
2093
+ }, async _0x25a2af => {
1942
2094
  try {
1943
- return textResult(await _0x2c2534['escalate_to_main'](_0x235709));
1944
- } catch (_0x4fd142) {
1945
- return textResult(_0x4fd142 instanceof Error ? _0x4fd142['message'] : _0x31962d(_0x5b436c._0x50df35), !![]);
2095
+ return textResult(await _0x5bc2c6['finalize_promotion'](_0x25a2af));
2096
+ } catch (_0x4e78d5) {
2097
+ return textResult(_0x4e78d5 instanceof Error ? _0x4e78d5['message'] : 'finalize_promotion\x20failed', !![]);
1946
2098
  }
1947
- }), _0x57c2d7?.['workerMode'] && _0x38a904[_0x4202fe(0x1ed)](_0x4202fe(0x235), _0x4202fe(0x272), { 'work_key': _0x5d1182['string']() }, async _0x2f280d => {
1948
- const _0x5e3783 = _0x4202fe;
2099
+ }), _0x492ee7[_0x35dcf3(_0x103352._0x1792f1)](_0x35dcf3(_0x103352._0x269ecd), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x266501[_0x35dcf3(_0x103352._0x20f97d)]() }, async _0x56828b => {
2100
+ const _0x2925b1 = _0x35dcf3;
1949
2101
  try {
1950
- return textResult(await _0x2c2534['mark_waiting_input'](_0x2f280d));
1951
- } catch (_0x83818a) {
1952
- return textResult(_0x83818a instanceof Error ? _0x83818a['message'] : _0x5e3783(0x298), !![]);
2102
+ return textResult(await _0x5bc2c6['mark_waiting_input'](_0x56828b));
2103
+ } catch (_0x424523) {
2104
+ return textResult(_0x424523 instanceof Error ? _0x424523[_0x2925b1(0x280)] : _0x2925b1(_0x5dc608._0x759e61), !![]);
1953
2105
  }
1954
- });
2106
+ }));
1955
2107
  }
1956
- async function createChatBridgeServer(_0x1af2e7) {
1957
- const _0x26d291 = _0x5e089b, {McpServer: _0x2a3bb3} = await import(_0x26d291(0x220)), _0x8a9b80 = new _0x2a3bb3({
1958
- 'name': _0x26d291(0x32b),
1959
- 'version': _0x26d291(0x1e3)
1960
- }), _0x48f82d = createChatBridgeHandlers(_0x1af2e7);
1961
- return await registerChatBridgeTools(_0x8a9b80, _0x48f82d, { 'workerMode': _0x1af2e7[_0x26d291(0x2ea)] }), {
1962
- 'handlers': _0x48f82d,
1963
- 'server': _0x8a9b80
2108
+ async function createChatBridgeServer(_0x22fc7f) {
2109
+ const _0x406382 = {
2110
+ _0x4059a0: 0x11c,
2111
+ _0x4314b4: 0x1f0
2112
+ }, _0x4ce72e = _0x42226e, {McpServer: _0x31c9ec} = await import(_0x4ce72e(_0x406382._0x4059a0)), _0x4d6e6f = new _0x31c9ec({
2113
+ 'name': _0x4ce72e(0x108),
2114
+ 'version': '0.0.0'
2115
+ }), _0x12be5e = createChatBridgeHandlers(_0x22fc7f);
2116
+ return await registerChatBridgeTools(_0x4d6e6f, _0x12be5e, { 'workerMode': _0x22fc7f[_0x4ce72e(_0x406382._0x4314b4)] }), {
2117
+ 'handlers': _0x12be5e,
2118
+ 'server': _0x4d6e6f
1964
2119
  };
1965
2120
  }
1966
- function readFlag(_0x403d45, _0x4ed15b) {
1967
- const _0x33254 = _0x403d45['indexOf'](_0x4ed15b);
1968
- if (_0x33254 === -0x1)
2121
+ function readFlag(_0x5f0043, _0x31658f) {
2122
+ const _0x2b4e71 = { _0x4ff1aa: 0x131 }, _0x46e183 = _0x42226e, _0xd51c0b = _0x5f0043[_0x46e183(_0x2b4e71._0x4ff1aa)](_0x31658f);
2123
+ if (_0xd51c0b === -0x1)
1969
2124
  return void 0x0;
1970
- return _0x403d45[_0x33254 + 0x1];
2125
+ return _0x5f0043[_0xd51c0b + 0x1];
1971
2126
  }
1972
- function parseChatBridgeArgs(_0x132c98) {
1973
- const _0x4c6206 = {
1974
- _0x5319c4: 0x1f8,
1975
- _0x586bd1: 0x23e,
1976
- _0x290fec: 0x300,
1977
- _0x4a691c: 0x2d1,
1978
- _0x3b8545: 0x232,
1979
- _0x30a450: 0x2bd,
1980
- _0x55ad85: 0x346
1981
- }, _0x227ca3 = _0x5e089b, _0x4eaf23 = readFlag(_0x132c98, _0x227ca3(0x24f)), _0x1f2bc3 = readFlag(_0x132c98, _0x227ca3(_0x4c6206._0x5319c4)), _0x40ec94 = readFlag(_0x132c98, _0x227ca3(0x2ce)), _0x49add7 = readFlag(_0x132c98, _0x227ca3(_0x4c6206._0x586bd1)), _0x10e395 = readFlag(_0x132c98, _0x227ca3(0x221)) ?? _0x227ca3(0x23a), _0x11f80c = readFlag(_0x132c98, _0x227ca3(_0x4c6206._0x290fec)), _0x55a368 = readFlag(_0x132c98, '--session-id'), _0x342d2d = readFlag(_0x132c98, _0x227ca3(0x2c4)), _0x4c5e9b = readFlag(_0x132c98, _0x227ca3(_0x4c6206._0x4a691c)), _0xa2a742 = readFlag(_0x132c98, '--worker-thread-target'), _0x2b54e0 = _0x132c98[_0x227ca3(0x36b)](_0x227ca3(_0x4c6206._0x3b8545)), _0xb07b2b = _0x49add7 === void 0x0 ? void 0x0 : Number['parseInt'](_0x49add7, 0xa);
1982
- if (!_0x4eaf23)
1983
- throw new Error(_0x227ca3(_0x4c6206._0x30a450));
1984
- if (!_0x40ec94)
1985
- throw new Error('Missing\x20--daemon-api-key');
1986
- if (_0x49add7 !== void 0x0 && (_0xb07b2b === void 0x0 || !Number['isFinite'](_0xb07b2b) || _0xb07b2b < 0x0))
1987
- throw new Error('Invalid\x20--initial-last-seen-seq');
2127
+ function parseChatBridgeArgs(_0x3f7c07) {
2128
+ const _0x27ee5b = {
2129
+ _0x2b6d9d: 0x18a,
2130
+ _0x3f47ac: 0x242,
2131
+ _0x484ec7: 0x1d7,
2132
+ _0x4ac09d: 0x166,
2133
+ _0x335967: 0x276,
2134
+ _0x6c0ee8: 0x165,
2135
+ _0x4a4939: 0x1c2,
2136
+ _0x321126: 0x1b0,
2137
+ _0xa1fb7a: 0x191,
2138
+ _0x19beed: 0x212,
2139
+ _0x7f7876: 0x27c,
2140
+ _0x2c226b: 0x1a6
2141
+ }, _0xd13a0b = _0x42226e, _0x2633d8 = readFlag(_0x3f7c07, '--agent-id'), _0x36df2a = readFlag(_0x3f7c07, _0xd13a0b(_0x27ee5b._0x2b6d9d)), _0x1dc8f2 = readFlag(_0x3f7c07, _0xd13a0b(0x13e)), _0x111251 = readFlag(_0x3f7c07, _0xd13a0b(_0x27ee5b._0x3f47ac)), _0x280ac6 = readFlag(_0x3f7c07, '--server-url') ?? _0xd13a0b(_0x27ee5b._0x484ec7), _0x525e7 = readFlag(_0x3f7c07, _0xd13a0b(0x185)), _0x36cc95 = readFlag(_0x3f7c07, '--session-id'), _0x464064 = readFlag(_0x3f7c07, _0xd13a0b(_0x27ee5b._0x4ac09d)), _0x15b5bb = readFlag(_0x3f7c07, _0xd13a0b(_0x27ee5b._0x335967)), _0x7dfb54 = readFlag(_0x3f7c07, '--worker-thread-target'), _0x286e48 = _0x3f7c07[_0xd13a0b(_0x27ee5b._0x6c0ee8)](_0xd13a0b(_0x27ee5b._0x4a4939)), _0x1aa47b = _0x111251 === void 0x0 ? void 0x0 : Number['parseInt'](_0x111251, 0xa);
2142
+ if (!_0x2633d8)
2143
+ throw new Error(_0xd13a0b(_0x27ee5b._0x321126));
2144
+ if (!_0x1dc8f2)
2145
+ throw new Error(_0xd13a0b(_0x27ee5b._0xa1fb7a));
2146
+ if (_0x111251 !== void 0x0 && (_0x1aa47b === void 0x0 || !Number[_0xd13a0b(_0x27ee5b._0x19beed)](_0x1aa47b) || _0x1aa47b < 0x0))
2147
+ throw new Error(_0xd13a0b(_0x27ee5b._0x7f7876));
1988
2148
  return {
1989
- 'agentId': _0x4eaf23,
1990
- 'attachmentCacheDir': _0x1f2bc3,
1991
- 'daemonApiKey': _0x40ec94,
1992
- 'daemonLocalUrl': _0x11f80c,
1993
- 'initialLastSeenSeq': _0xb07b2b,
1994
- 'sessionId': _0x55a368,
1995
- 'serverUrl': _0x10e395,
1996
- 'workerModeEnabled': _0x342d2d === void 0x0 ? void 0x0 : _0x342d2d !== _0x227ca3(_0x4c6206._0x55ad85),
1997
- 'workerSessionId': _0x4c5e9b,
1998
- 'workerThreadTarget': _0xa2a742,
1999
- 'workerMode': _0x2b54e0
2149
+ 'agentId': _0x2633d8,
2150
+ 'attachmentCacheDir': _0x36df2a,
2151
+ 'daemonApiKey': _0x1dc8f2,
2152
+ 'daemonLocalUrl': _0x525e7,
2153
+ 'initialLastSeenSeq': _0x1aa47b,
2154
+ 'sessionId': _0x36cc95,
2155
+ 'serverUrl': _0x280ac6,
2156
+ 'workerModeEnabled': _0x464064 === void 0x0 ? void 0x0 : _0x464064 !== _0xd13a0b(_0x27ee5b._0x2c226b),
2157
+ 'workerSessionId': _0x15b5bb,
2158
+ 'workerThreadTarget': _0x7dfb54,
2159
+ 'workerMode': _0x286e48
2000
2160
  };
2001
2161
  }
2002
- async function runChatBridgeCli(_0x43ee23) {
2003
- const _0x5dd1f0 = {
2004
- _0xf878c2: 0x34d,
2005
- _0x5f4b85: 0x285
2006
- }, _0x298c56 = _0x5e089b, _0x30ac09 = parseChatBridgeArgs(_0x43ee23), {StdioServerTransport: _0x3e39af} = await import(_0x298c56(_0x5dd1f0._0xf878c2)), _0x4c69da = createInternalAgentClient(_0x30ac09), _0x1eee23 = createAttachmentCache({ 'cacheDir': _0x30ac09[_0x298c56(_0x5dd1f0._0x5f4b85)] }), _0x81c161 = await createChatBridgeServer({
2007
- 'agentId': _0x30ac09[_0x298c56(0x204)],
2008
- 'attachmentCache': _0x1eee23,
2009
- 'client': _0x4c69da,
2010
- 'daemonLocalUrl': _0x30ac09['daemonLocalUrl'],
2011
- 'uploadPreparer': prepareUploadFile,
2012
- 'workerModeEnabled': _0x30ac09['workerModeEnabled'],
2013
- 'workerMode': _0x30ac09['workerMode'],
2014
- 'workerThreadTarget': _0x30ac09[_0x298c56(0x26e)]
2015
- });
2016
- await _0x81c161[_0x298c56(0x2e1)][_0x298c56(0x1ef)](new _0x3e39af());
2017
- }
2018
- function _0x3a73() {
2019
- const _0x23d174 = [
2020
- 'ig1ZzZ0',
2021
- 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
2022
- 'y2f0y2G',
2023
- 'y2HHBM5LBfrHCMDLDa',
2024
- 'DxbKyxrLx3rHC2TFC3rHDhvZ',
2025
- 'Bwf0y2Hoyw1L',
2026
- 'DMfSDwvZ',
2027
- 'mJG5nJbmrgXWu2m',
2028
- 'A2LUza',
2029
- 'Dw5RBM93BG',
2030
- 'z2v0tw9UDgG',
2031
- 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
2032
- 'ls1Zzxj2zxiTDxjS',
2033
- 'BwfPBG',
2034
- 'CNvUswq',
2035
- 'y2XPzw50',
2036
- 'Dg9KBW',
2037
- 'zgvZy3jPyMu',
2038
- 'lsba',
2039
- 'Bwf4',
2040
- 'C3rYAw5NAwz5',
2041
- 'CMvZDwX0CW',
2042
- 'DxbKyxrLvgfZA1n0yxr1CW',
2043
- 'y2XHAw1FDgfZA3mGzMfPBgvK',
2044
- 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
2045
- 'ANnVBG',
2046
- 'CMvHC29U',
2047
- 'DgHYzwfKvgfYz2v0',
2048
- 'D29YA2vYrgLZCg9ZAxrPB24',
2049
- 'ls13B3jRzxiTBw9Kzq',
2050
- 'l3rHC2TZpW',
2051
- 'igrVBMuP',
2052
- 'BwfYA193ywL0Aw5Nx2LUChv0',
2053
- 'B3b0Aw9UywW',
2054
- 'ywz0zxi',
2055
- 'lMrZy29Yza',
2056
- 'yxbWBgLJyxrPB24VANnVBG',
2162
+ function _0x1d81() {
2163
+ const _0x3ecbaf = [
2164
+ 'zxnJywXHDgvFDg9FBwfPBG',
2165
+ 'DMfSDwu',
2166
+ 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
2167
+ 'CMvHzf9OAxn0B3j5',
2168
+ 'C2vUzgvYugfYDgLJAxbHBNrjza',
2169
+ 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
2057
2170
  'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
2058
- 'iYmJiefNzw50CW',
2059
- 'Axnoyu4',
2060
- 'ywjVCNrLza',
2061
- 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
2062
- 'D2fPDgLUz19PBNb1Da',
2063
- 'tM8GDgfZA3mGzM91BMqU',
2064
- 'C3rVCe1HAw4',
2065
- 'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
2066
- 'D29YA2vYsgfUzg9MzJ10CNvL',
2067
- 'l3jLy2vPDMu/',
2068
- 'AhvTyw4',
2069
- 'DMLZAwjPBgL0Eq',
2070
- 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
2171
+ 'C2L6zuj5DgvZ',
2172
+ 'BgvUz3rO',
2173
+ 'C2v0',
2174
+ 'ihn0yxr1CZ0',
2175
+ 'twvZC2fNzsbZzw50ihrVia',
2176
+ 'DgfYz2v0',
2177
+ 'BwvZC2fNzxm',
2178
+ 'l3n0yxj0',
2179
+ 'l3rHC2TZ',
2180
+ 'zgLNzxn0',
2181
+ 'CxvLDwvK',
2182
+ 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
2183
+ 'ndeWmta2nM9Tt1LUDa',
2184
+ 'CNvUswq',
2071
2185
  'w3nLCt0',
2072
- 'lcbJB250zw50lxr5Cgu9',
2186
+ 'l3DVCMTLCNmVzgvSAxzLCG',
2187
+ 'zgLZCg9ZAxrPB24',
2073
2188
  'Ahr0CdO',
2074
- 'BM93',
2075
- 'y29UDgvUDfr5Cgu',
2076
- 'nLPcz2jpza',
2077
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
2078
- 'ls1Hz2vUDc1Pza',
2079
- 'C2v0',
2080
- 'CMvZCg9UC2u',
2081
- 'BwfW',
2082
- 'BgvUz3rO',
2189
+ 'y2XPzw50',
2190
+ 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
2191
+ 'BwvTyMvY',
2083
2192
  'ihrPBwu9',
2084
- 'DxbSB2fKx2zPBguGzMfPBgvK',
2085
- 'AxngAwXL',
2086
- 'zNjVBq',
2087
- 'ue9tva',
2088
- 'DgfYz2v0',
2089
- 'Dg9gAxHLza',
2090
- 'AgLNAa',
2091
- '6k+35Rgcia',
2193
+ 'lsaJ',
2194
+ 'DxbSB2fKrMLSzq',
2195
+ 'D29YA2vYtw9Kzq',
2196
+ 't3jPz2LUywWGBwvZC2fNztOG',
2197
+ 'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
2198
+ 'y2HHBM5LBeLK',
2199
+ 'ywz0zxi',
2200
+ 'rMLSzsb1CgXVywrLzdOG',
2201
+ 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
2202
+ 'l3nLCNzLCG',
2203
+ 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
2204
+ 'Bwv0ywrHDgfkC29U',
2205
+ 'yxv0BZO',
2206
+ 'C2HHmJu2',
2207
+ 'igLUia',
2208
+ 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
2209
+ 'Axnoyu4',
2210
+ 'zMLSzv9WyxrO',
2211
+ 'lIbnzxnZywDLieLeoIa',
2212
+ 'CMvJB3jK',
2213
+ 'DgfZAW',
2214
+ 'r0vu',
2215
+ 'ywDNCMvNyxrLvhLWzq',
2216
+ 'A2LUza',
2217
+ 'zgvZDhjVEwvK',
2218
+ 'DgfZA0rLBgL2zxj5tw9Kzq',
2219
+ 'z2v0sg91CNm',
2220
+ 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
2092
2221
  'BwLU',
2093
- 'DgHYzwfKx3rHCMDLDa',
2222
+ 'DxbSB2fKuhjLCgfYzxi',
2223
+ 'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
2094
2224
  'D3nZoG',
2095
- 'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
2096
- 'z2v0x3DVCMTLCL9ZDgf0Dxm',
2097
- 'l3n0yxj0',
2098
- 'y3jLyxrLvgfZA3m',
2099
- 'DgfZAY0',
2100
- 'Dg9tDhjPBMC',
2101
- 'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
2102
- 'BwvZC2fNzxm',
2103
- 'DgfZA0LK',
2104
- 'l3DVCMTLCNmVCgfYAW',
2105
- 'l3DVCMTLCNmVzxnJywXHDgu',
2106
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
2107
- 'zMLSDgvY',
2108
- 'zgvZy3jPChrPB24',
2109
- 'D29YA2vYvgHYzwfKvgfYz2v0',
2110
- 'CgfYA193B3jRzxi',
2111
- 'DxbSB2fKx2zPBgu',
2112
- 'rMLSzsbUB3qGzM91BMq6ia',
2113
- 'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
2114
- 'mZi4mdu4zvvzBxbb',
2225
+ 'igzHAwXLzdOG',
2226
+ '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
2227
+ 'DhjPBq',
2228
+ 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
2229
+ 'AxngAw5PDgu',
2230
+ 'zgLYzwn0B3j5',
2231
+ 'DMfSDwvZ',
2232
+ 'D29YA2vYsgfUzg9MzJ10CNvL',
2233
+ 'C2vYDMvY',
2234
+ 'C2vUzgvYvhLWzq',
2235
+ 'ChjVDg9JB2W',
2236
+ 'zMLUza',
2237
+ 'Aw5FCMv2Awv3',
2238
+ 'yxr0ywnOBwvUDeLK',
2115
2239
  'C3vIDgfZA051BwjLCG',
2116
- 'yM9KEu1HCMTKB3DU',
2117
- 'nLnyrwTqsa',
2118
- 'zgvZDhjVEwvK',
2119
- 'ignSywLTzwq',
2120
- 'Ahr0Chm6',
2121
- 'CMvHzeHPC3rVCNK',
2122
- 'zMLUzenHy2HLzfbHDgG',
2123
- 'ywjVCNq',
2124
- 'C3rYAw5N',
2125
- 'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
2126
- 'C2vYDMvYvxjS',
2127
- 'yxr0ywnOBwvUDf9Pzhm',
2128
- 'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
2129
- 'nJqWBMzpDhn0',
2130
- 'zg0T',
2131
- 'v29YA2vYici',
2132
- 'yxr0ywnOBwvUDenHy2HLrgLY',
2133
- 'D29YA2vYu2vZC2LVBKLK',
2134
- 'zM9Yy2vszwzYzxnO',
2135
- 's0iPcKf0DgfJAg1LBNqGsuq6ia',
2136
- 'AxnbyNnVBhv0zq',
2137
- 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
2138
- 'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
2139
- 'CMvHzf9OAxn0B3j5igzHAwXLza',
2140
- 'Cgf5Bg9HzePZB24',
2141
- 'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
2142
- 'BgLZDf90yxnRCYbMywLSzwq',
2143
- 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
2144
- 'uM9VDcb0yxnRig1LC3nHz2u6cG',
2145
- 'y3jLyxrLx3rHC2TZ',
2146
- 'lcbWCMv2Awv3pq',
2147
- 'tM8GDgfZA3mGy2XHAw1Lzc4',
2148
- 'iYmGu2vYDMvYoIa',
2240
+ 'iokaLca',
2241
+ 'iJOGC3rHDhvZpq',
2149
2242
  'v29YA2vYia',
2150
- 'C2vUze1LC3nHz2u',
2151
- 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
2152
- 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
2153
- 'DgHYzwfKu2HVCNrjza',
2154
- 'Aw1Hz2uVD2vICa',
2155
- 'Dw5JBgfPBv90yxnRigzHAwXLza',
2156
- 'l3DVCMTLCNmVzgvSAxzLCG',
2157
- 'Dg9mB2nHBgvmB3DLCKnHC2u',
2158
- 'ywXS',
2159
- 'otqXntC3D0jxyNbK',
2160
- 'nZKXotK0mfzswuj0Dq',
2161
- 'y2XHAw1FDgfZA3m',
2162
- 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
2163
- 'zg06',
2164
- 'Bwv0yq',
2165
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
2166
- 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
2167
- 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
2168
- 'D3m6',
2169
- 'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
2170
- 'D29YA2vYtw9KzuvUywjSzwq',
2243
+ 'CMvZB2X2zvrHCMDLDa',
2244
+ 'DgfYz2v0qwDLBNrjzhm',
2245
+ 'vgfZAYa',
2246
+ 'DxjNzw50',
2247
+ 'C2vUzgvYtMfTzq',
2248
+ 'zgfLBw9UqxbPs2v5',
2249
+ 'lMrZy29Yza',
2250
+ 'zxH0BMfTzq',
2251
+ 'y2HHBM5LBfrHCMDLDa',
2252
+ 'B2jQzwn0',
2253
+ 'l2zPBMLZAa',
2254
+ 'Aw5FChjVz3jLC3m',
2255
+ 'yM9KEvrLEhq',
2256
+ 'zNjVBq',
2257
+ 'DMLZAwjPBgL0Eq',
2258
+ 'y29UDgvUDc10ExbL',
2259
+ 'zMLSDgvY',
2171
2260
  'DgHYzwfK',
2172
- 'igfZC2LNBMvLpua',
2173
- 'C2HHmJu2',
2174
- 'DgvZDa',
2175
- 'DgfZA051BwjLCG',
2176
- 'sfruuca',
2177
- 'igLUia',
2178
- 'Bgf0zxn0u2vX',
2179
- 'C2vZC2LVBKLK',
2180
- 'Dg9mB3DLCKnHC2u',
2181
- 'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
2182
- 'AgfZtw9Yzq',
2183
- 'DgHYzwfKswq',
2261
+ 'AgLNAa',
2184
2262
  'CMvWBgfJzq',
2185
- 'zxzLBNrtzxe',
2186
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
2187
- 'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
2188
- 'twLZC2LUzYaTlwfNzw50lwLK',
2189
- 'z2v0',
2190
- 'iIbUB3qGzM91BMq',
2191
- 'CM9VDe1LC3nHz2vjza',
2192
- 'r0vu',
2193
- 'DgfZAW',
2194
- 'xsba',
2195
- 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
2196
- 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
2197
- 'l2zPBMLZAa',
2198
- 'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
2263
+ 'DxbSB2fKx2zPBguGzMfPBgvK',
2264
+ 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
2199
2265
  'D29YA2vYCW',
2200
- 'ywDNCMvNyxrLvhLWzq',
2201
- 'khvUA25VD24P',
2202
- 'C2nOzwr1BgvKrM9Y',
2203
- 'C3rHCNrLza',
2204
- 'zgfLBw9Utg9JywXvCMW',
2205
- 'ls1KywvTB24TyxbPlwTLEq',
2206
- 'l2HPC3rVCNK/',
2207
- 'yxjYyxLcDwzMzxi',
2208
- 'ls13B3jRzxiTC2vZC2LVBI1Pza',
2209
- 'y3jLyxrLx3rHC2TZigzHAwXLza',
2210
- 'icHPzdO',
2211
- 'y2HHBM5LBeLK',
2212
- 'AxnjBNrLz2vY',
2213
- 'uefuq0G',
2214
- 'CMvXDwvZDfvYBa',
2215
- 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
2216
- 'DxrMoa',
2217
- 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
2218
- 'zMLUza',
2219
- 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
2220
- 'BMv4Den1CNnVCG',
2221
- 'y2HPBgrYzw5eB25L',
2222
- 'l3vWBg9Hza',
2223
- 'ywDNCMvNyxrLswq',
2224
- 'C2vYDMvY',
2225
- 'kgXLz2fJEsK',
2226
- 'AM9PBG',
2227
- 'ywDLBNrZ',
2228
- 'C2f2zq',
2229
- 'CgfYDgLJAxbHBNrjza',
2230
- 'w3rHCMDLDd0',
2231
- 'C3bSAxq',
2232
- 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
2233
- 'D29YA2vYtw9Kzq',
2234
- 'Dw5JBgfPBv90yxnR',
2235
- 'l3rHC2TZ',
2266
+ 'mtK1nti4BgrVCxHY',
2267
+ 'Dg9VBa',
2268
+ 'mtu3nhLmyM1QrW',
2269
+ 'BgLTAxq',
2270
+ 'lcbJB250zw50lxr5Cgu9',
2236
2271
  'DgL0Bgu',
2237
- 'yxbWBgLJyxrPB24VEMLW',
2238
- 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5igzVCIbWCM9NCMvZCYbUB3rLCYWGAw50zxjTzwrPyxrLihn0yxr1CYWGAw50zxjUywWGBM90zxmSig9YihjLy2vPChrZihrOyxqGzg8GBM90ig5LzwqGysbYzxnWB25Zzs4GvxnLihb1yMXPyYbMB3iGzMLUywWGCMvZDwX0CYWGyMXVy2TLCNmSigHHBMrVzMzZlcbYzxzPzxCGCMvXDwvZDhmSig9Yig1LC3nHz2vZig5LzwrPBMCGysbODw1HBIbVCIbHz2vUDcbYzxnWB25Zzs4GqwrKiebTzw50Aw9UCYb3AgvUigeGC3bLy2LMAwmGCgfYDgLJAxbHBNqGBxvZDcbIzsbUB3rPzMLLzc4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
2239
- 'C2vUzgvYtMfTzq',
2240
- 'yxr0ywnOBwvUDeLK',
2241
- 'C29Tzq',
2242
- 'twvZC2fNzsbZzw50ihrVia',
2243
- 'Aw1Hz2uVCg5N',
2244
- 'C2vUzgvYvhLWzq',
2245
- 'y3vYC29Y',
2246
- 'EM9K',
2247
- 'BgLZDfrHC2TZ',
2248
- 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
2272
+ 'ywDLBNrjza',
2273
+ 'CgfYDgLJAxbHBNrjza',
2274
+ 'l3rHC2TZpW',
2275
+ 'yMfZzw5HBwu',
2276
+ 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
2277
+ 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
2249
2278
  'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
2250
- 'Dgv4Dc9JC3y',
2251
- 'kg5VBMuP',
2252
- 'Aw5PDgLHBeXHC3rtzwvUu2vX',
2253
- 'zMv0y2HuAw1LB3v0txm',
2254
- 'ywz0zxjtzxe',
2255
- 'ls1KywvTB24TBg9JywWTDxjS',
2256
- 'BwvTyMvY',
2257
- 'y2HHBM5LBa',
2258
- 'zxnJywXHDgvFDg9FBwfPBG',
2259
- 'BgLTAxq',
2260
- 'lIbnzxnZywDLieLeoIa',
2261
- 'rMLSzsb1CgXVywrLzdOG',
2262
- 'DxbSB2fKrMLSzq',
2263
- 'l2LUDgvYBMfSl2fNzw50lW',
2279
+ 'C2XPy2u',
2280
+ 'Bwv0yq',
2264
2281
  'Aw1Hz2uVz2LM',
2265
- 'C29YDa',
2266
- 'C2vUzgvYugfYDgLJAxbHBNrjza',
2267
- 'BgLZDf9Zzxj2zxiGzMfPBgvK',
2268
- 'zMLSzw5HBwu',
2269
- 'DxnLCG',
2270
- 'C2vUzf9TzxnZywDLigzHAwXLza',
2282
+ 'zg0T',
2283
+ 'AgfZtw9Yzq',
2284
+ 'mJn5uuv4EK8',
2285
+ 'BwvKAxvT',
2286
+ 'BwfW',
2287
+ 'lMjPBG',
2288
+ 'zMLUywXPEMvqCM9TB3rPB24',
2289
+ 'DxbKyxrL',
2290
+ 'uM9VDcb0yxnRig1LC3nHz2u6cG',
2271
2291
  'Dgv4Da',
2272
- 'mJe3mdK4y2fTEvzQ',
2273
- 'zxHWAxjLC0f0',
2274
- 'zgf0yq',
2275
- 'Dw5JBgfPBvrHC2S',
2276
- 'C2LNBMfS',
2277
- 'BgLZDf9Zzxj2zxi',
2292
+ 'l3bYB21VDgLVBNmVzMLUywXPEMu',
2293
+ 'BMfTzq',
2294
+ 'rMLSzsbUB3qGzM91BMq6ia',
2295
+ 'yxr0ywnOBwvUDenHy2HLrgLY',
2296
+ 'yxr0ywnOBwvUDf9Pza',
2297
+ 'DxbKyxrLx3rHC2TFC3rHDhvZ',
2298
+ 'C3rYAw5N',
2299
+ 'DxbKyxrLvgfZA1n0yxr1CW',
2300
+ 'yxbWBgLJyxrPB24VCgrM',
2301
+ 'DgvZDa',
2302
+ 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
2303
+ 'AxngAwXL',
2304
+ 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
2305
+ 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
2306
+ 'ywjVCNrLza',
2307
+ 'vgHYzwfKihrHCMDLDdOG',
2308
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
2309
+ 'DMLLD19MAwXL',
2278
2310
  'y2HHBM5LBhm',
2279
- 'yxjNDG',
2280
- 'iYmJienOyw5UzwXZ',
2281
- 'C3rHCNrZv2L0Aa',
2282
- 'C2vX',
2283
- 'y2HHBM5LBe5HBwu',
2284
- 'C2L6zq',
2285
- 'yxr0ywnOBwvUDhm',
2286
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
2287
- 'ChvZAa',
2288
- 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
2289
- 'y2XHAw0GzMfPBgvK',
2290
- 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
2291
- 'rg93BMXVywrLzcb0BZOG',
2292
- 'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
2293
- 'zxHLy3v0Aw9Utw9Kzq',
2294
- 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
2311
+ 'EM9K',
2312
+ 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
2313
+ 'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
2314
+ 'D29YA2vYtw9KzuvUywjSzwq',
2315
+ 'BMv4Den1CNnVCG',
2316
+ 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
2317
+ 'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
2318
+ 'DxnLCG',
2319
+ 'tM8GDgfZA3mGzM91BMqU',
2320
+ 'D29YA2vYrgLZCg9ZAxrPB24',
2321
+ 'cGOTls0G',
2322
+ 'yxbWBgLJyxrPB24VEMLW',
2323
+ 'C29Tzq',
2324
+ 'C2nOzwr1BgvKrM9Y',
2325
+ 'iIbUB3qGzM91BMq',
2326
+ 'Aw1Hz2uVANbLzW',
2327
+ 'zxjYB3i',
2328
+ 'igTPBMq9',
2329
+ 'ls13B3jRzxiTC2vZC2LVBI1Pza',
2330
+ 'B3b0Aw9UywW',
2331
+ 'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
2332
+ 'CMvZDwX0sNnVBG',
2333
+ 'yxbWBgLJyxrPB24VEg1S',
2334
+ 'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
2335
+ 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
2336
+ 'C3bSAxq',
2337
+ 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5igzVCIbWCM9NCMvZCYbUB3rLCYWGAw50zxjTzwrPyxrLihn0yxr1CYWGAw50zxjUywWGBM90zxmSig9YihjLy2vPChrZihrOyxqGzg8GBM90ig5LzwqGysbYzxnWB25Zzs4GvxnLihb1yMXPyYbMB3iGzMLUywWGCMvZDwX0CYWGyMXVy2TLCNmSigHHBMrVzMzZlcbYzxzPzxCGCMvXDwvZDhmSig9Yig1LC3nHz2vZig5LzwrPBMCGysbODw1HBIbVCIbHz2vUDcbYzxnWB25Zzs4GqwrKiebTzw50Aw9UCYb3AgvUigeGC3bLy2LMAwmGCgfYDgLJAxbHBNqGBxvZDcbIzsbUB3rPzMLLzc4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
2338
+ 'AM9PBG',
2339
+ 'BwvZC2fNzq',
2340
+ 'lsba',
2341
+ 'AhvTyw5Z',
2295
2342
  'yxjYyxK',
2296
- 'CgfYC2u',
2297
- 'BMfTzq',
2343
+ 'Aw50',
2344
+ 'C2vUze1LC3nHz2u',
2345
+ 'Bwf0y2Hoyw1L',
2346
+ 'Dw5RBM93BG',
2347
+ 'DxrMoa',
2348
+ 'BgLZDfnLCNzLCG',
2349
+ 'yxr0ywnOBwvUDeLKCW',
2350
+ 'y2HLy2TnzxnZywDLCW',
2351
+ 'zw50CMLLCW',
2352
+ 'AxnbCNjHEq',
2353
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
2354
+ 'zMLSzw5HBwu',
2355
+ 'icHPzdO',
2356
+ 'C2vYDMvYvxjS',
2357
+ 'ywrKrxzLBNrmAxn0zw5LCG',
2358
+ 'C3rYAw5NAwz5',
2359
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
2360
+ 'DgHYzwfKx3rHCMDLDa',
2361
+ 'ChvIBgLJ',
2362
+ 'y29UDgvUDejHC2u2na',
2363
+ 'zhjHzNrnzxnZywDLswq',
2364
+ 'AhjLzG',
2365
+ 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
2366
+ 'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
2367
+ 'zMLUywXPEMvFChjVBw90Aw9U',
2368
+ 'nJC0mJmYzvbIwg12',
2369
+ 'y2HHBM5LBe5HBwu',
2370
+ 'AwrLBxbVDgvUy3LFA2v5',
2371
+ 'z2v0tw9UDgG',
2372
+ 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
2373
+ 'y29UDgvUDa',
2298
2374
  'y2HHDa',
2375
+ 'D29YA2vYu2vZC2LVBKLK',
2376
+ 'l2fWAs9HDhrHy2HTzw50CY8',
2377
+ 'DMLLD19MAwXLigzHAwXLza',
2378
+ 'Bwf4',
2379
+ 'C3rVCe1HAw49Dhj1zq',
2380
+ 'DgfZA3m',
2381
+ 'zxHLy3v0Aw9Utw9Kzq',
2382
+ 'zMLUywXPEMvFChjVBw90Aw9UigLZihDVCMTLCI1VBMX5',
2383
+ 'zw50zxiTAgfUzg9MzIbMywLSzwq',
2384
+ 'y2XHAw1FDgfZA3mGzMfPBgvK',
2385
+ 'v29YA2vYici',
2386
+ 'yxnZAwDUzwvoyw1L',
2387
+ 'DhLWzq',
2388
+ 'BNvTyMvY',
2389
+ 'C3rHCNrLza',
2390
+ 'DgfZA0LKCW',
2391
+ 'Aw1Hz2uVCg5N',
2392
+ 'ig1ZzZ0',
2393
+ 'ywz0zxjtzxe',
2394
+ 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
2395
+ 'Dgv4Dc9TyxjRzg93BG',
2396
+ 'iYmGu2vYDMvYoIa',
2397
+ 'ANnVBG',
2398
+ 'BwvZC2fNzv9Pzhm',
2399
+ 'zgvZy3jPyMu',
2400
+ 'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
2401
+ 'zMLUzenHy2HLzfbHDgG',
2402
+ 'ig1LC3nHz2u9',
2403
+ 'yMvMB3jL',
2404
+ 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihvZzsb2AxnPyMLSAxr5oIbHC2LKzsbMB3iGChjVz3jLC3mGBM90zxmSigLUDgvYBwvKAwf0zsbZDgf0DxmSigLUDgvYBMfSig5VDgvZlcbVCIbYzwnLAxb0CYb0Agf0igrVig5VDcbUzwvKigeGCMvZCg9UC2uUifvZzsbWDwjSAwmGzM9YigzPBMfSihjLC3vSDhmSigjSB2nRzxjZlcbOyw5KB2zMCYWGCMv2Awv3ihjLCxvLC3rZlcbVCIbHBNL0AgLUzYb0Agf0ig5LzwrZigeGAhvTyw4GB3iGywDLBNqGCMvZCg9UC2uUifvZzsbaBwvUDgLVBNmGD2HLBIbHihnWzwnPzMLJihbHCNrPy2LWyw50ig11C3qGyMuGBM90AwzPzwqUie91DhnPzguGDgHYzwfKCYWGzg8GBM90ihnLDcb2AxnPyMLSAxr5lIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZlG',
2405
+ 'D2fPDgLUz19PBNb1Da',
2406
+ 'sfruuca',
2407
+ 'Dg9KBW',
2408
+ 'C3vJy2vZCW',
2409
+ 'DgHYzwfKswq',
2410
+ 'BgLZDf90yxnRCYbMywLSzwq',
2411
+ 'y2f0y2G',
2299
2412
  'zgvSzxrL',
2300
- 'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
2301
- 'ywDLBNq',
2302
- 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
2303
- 'vgfZAYa',
2304
- 'zxHLy3v0Aw9Utw9Kzt0',
2305
- 'ihn0yxr1CZ0',
2306
- 'y29UDgvUDejHC2u2na',
2307
- 'zw51Bq',
2308
- 'lsaJ',
2413
+ 'AxnjBNrLz2vY',
2414
+ 'y2XHAw1FDgfZA3m',
2415
+ 'Aw5KzxHpzG',
2416
+ 'ig9TAxr0zwrDcG',
2417
+ 'CMvXDwvZDfvYBa',
2418
+ 'C3rHCNrZv2L0Aa',
2419
+ 'yxjNDG',
2420
+ 'D29YA2vY',
2421
+ 'D29YA2vYsgfUzg9MzG',
2422
+ 'y29UDgvUDfr5Cgu',
2423
+ 'xsba',
2424
+ 'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
2425
+ 'zgfLBw9Utg9JywXvCMW',
2426
+ 'BwvTyMvYCW',
2427
+ 'CgfYA193B3jRzxi',
2428
+ 'ls1KywvTB24TyxbPlwTLEq',
2429
+ 'l2nVBNrLBNq',
2430
+ 'kg5VBMuP',
2431
+ 'kgXLz2fJEsK',
2432
+ 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
2433
+ 'ue9tva',
2434
+ 'zg9Uzq',
2309
2435
  'C3vIDgfZA19UDw1IzxjZ',
2310
- 'y29UDgvUDa',
2311
- 'mty5mdCWmwjRAwPNqW',
2312
- 'C2vYDMvYtMfTzq',
2313
- 'C2XPy2u',
2436
+ 'zw51Bq',
2437
+ 'Dw5JBgfPBv90yxnR',
2438
+ 'y3jLyxrLvgfZA3m',
2439
+ 'zxzLBNrtzxe',
2440
+ 'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
2441
+ 'DxbSB2fKx2zPBgu',
2442
+ 'v29YA2vYlw9UBhKUiezPBMfSAxPLigfUigfJy2vWDgvKihbYB21VDgLVBIbKCMfMDcbHzNrLCIb3CML0Aw5NigL0CYbZCgvJCYb0BYbKB2nZl3bSyw4VlcbJCMvHDgLUzYb0AguGChjVBw90zwqGDg9WlwXLDMvSihrHC2TZihrOCM91z2GGDgHLihnLCNzLCI4',
2443
+ 'ktSGz290ignOyw5UzwW9',
2444
+ 'BwfPBG',
2314
2445
  'tM8GDgfZA3mGy3jLyxrLzc4',
2315
- 'ChjVDg9JB2W',
2316
- 'AhvTyw5Z',
2317
- 'D29YA2vYsgfUzg9MzKvYCM9Y',
2318
- 'B3jPz2LUywXgAwXLBMfTzq',
2319
- 'Bwf0y2Hoyw1Ltg93zxi',
2320
- 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihvZzsb2AxnPyMLSAxr5oIbHC2LKzsbMB3iGChjVz3jLC3mGBM90zxmSigLUDgvYBwvKAwf0zsbZDgf0DxmSigLUDgvYBMfSig5VDgvZlcbVCIbYzwnLAxb0CYb0Agf0igrVig5VDcbUzwvKigeGCMvZCg9UC2uUifvZzsbWDwjSAwmGzM9YigzPBMfSihjLC3vSDhmSigjSB2nRzxjZlcbOyw5KB2zMCYWGCMv2Awv3ihjLCxvLC3rZlcbVCIbHBNL0AgLUzYb0Agf0ig5LzwrZigeGAhvTyw4GB3iGywDLBNqGCMvZCg9UC2uUifvZzsbaBwvUDgLVBNmGD2HLBIbHihnWzwnPzMLJihbHCNrPy2LWyw50ig11C3qGyMuGBM90AwzPzwqUie91DhnPzguGDgHYzwfKCYWGzg8GBM90ihnLDcb2AxnPyMLSAxr5lIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZlG',
2321
- 'BwvZC2fNzv9Pzhm',
2322
- 'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
2323
- 'CMvZB2X2zvrHCMDLDa',
2324
- 'D29YA19RzxK',
2325
- 'zMfSC2u',
2326
- 'C2L6zuj5DgvZ',
2327
- 'z2v0vgLTzq',
2328
- 'DgfZA19Pza',
2329
- 'C3rHDhvZ',
2330
- 'yxr0ywnOBwvUDf9Pza',
2331
- 'Aw5FCMv2Awv3',
2446
+ 'Dg9mB2nHBgvmB3DLCKnHC2u',
2447
+ 'z2v0',
2448
+ 'DgHYzwfKu2HVCNrjza',
2449
+ 'ywDNCMvNyxrLswrZ',
2450
+ 'ywXS',
2332
2451
  'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
2333
- 'ig1LC3nHz2u9',
2334
- 'CgfYA193B3jRzxiGzMfPBgvK',
2452
+ 'CM9VDe1LC3nHz2vjza',
2453
+ 'Dg9ju09tDhjPBMC',
2454
+ 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
2455
+ 'iYmJiefNzw50CW',
2456
+ 'BwfYA193ywL0Aw5Nx2LUChv0',
2457
+ 'yxr0ywnOBwvUDhm',
2458
+ 'ywjVCNq',
2459
+ 'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
2460
+ 'yxjYyxLcDwzMzxi',
2461
+ 'CgfYC2u',
2462
+ 'DgfZA051BwjLCG',
2463
+ 'z2v0u2vJB25KCW',
2464
+ 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
2465
+ 'mJa1ntmZnLb3CMz0AG',
2466
+ 'DhjPBuvUza',
2467
+ 'Aw5JBhvKzxm',
2468
+ 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
2469
+ 'z2v0x3DVCMTLCL9ZDgf0Dxm',
2335
2470
  'y3jLyxrLzef0',
2336
- 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
2337
- 'zxjYB3i',
2338
- 'cGOTls0G',
2339
- 'Dgv4Dc9TyxjRzg93BG',
2340
- 'DgHYzwfKtNvTyMvY',
2341
- 'zgLNzxn0',
2342
- 'DxjNzw50',
2343
- 'mtaYmZqWoenKtejgBG',
2344
- 'Aw1Hz2uVANbLzW',
2345
- 'igzHAwXLzdOG',
2346
- 'l3rHC2TZl3vUy2XHAw0',
2347
- 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
2348
- 'yxr0ywnOBwvUDenHy2HL',
2349
- 'ihr5Cgu9ywDLBNq',
2350
- 'Bwf4rMLSzvnPEMvcExrLCW',
2351
- 'zxH0BMfTzq',
2352
- 'y2HLy2TnzxnZywDLCW',
2353
2471
  'C2vUzf9TzxnZywDL',
2354
- 'AwrLBxbVDgvUy3LFA2v5',
2355
- 'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
2356
- 'CxvLDwvK',
2357
- 'zgLZCg9ZAxrPB24',
2358
- 'BwvZC2fNzq',
2359
- 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
2360
- 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
2472
+ 'tM8GDgfZA3mGy2XHAw1Lzc4',
2473
+ 'zgvZy3jPChrPB24',
2474
+ 'DgHYzwfKtNvTyMvY',
2475
+ 'C29YDa',
2476
+ 'ChvZAa',
2361
2477
  'y2HPBgrYzw5uB3rHBa',
2362
- 'Aw5JBhvKzxm',
2363
- 'zw50CMLLCW',
2364
- 'vgHYzwfKihrHCMDLDdOG',
2365
- 'AwrSzq',
2366
- 'mc4WlJa',
2367
- 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
2368
- 'yxbWBgLJyxrPB24VCgrM',
2369
- 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
2370
- 'D29YA2vYrgLZCg9ZAxrPB249',
2371
- 'DgfYz2v0zwq',
2372
- 'y2HLy2TFBwvZC2fNzxm',
2373
- 'CMvJB3jK',
2374
- 'iJOGC3rHDhvZpq',
2375
- 'l2nVBNrLBNq',
2376
- 'Dg9VBa',
2377
- 'BgLZDfnLCNzLCG',
2378
- 'y29UBMvJDa',
2379
- '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
2478
+ 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
2479
+ 'AgfZ',
2480
+ 'D29YA2vYvgHYzwfKvgfYz2v0',
2481
+ 'ywDLBNq',
2380
2482
  'D29YA2vYx3nLC3nPB25FAwq',
2381
- 'ywrK',
2382
- 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
2383
- 'Dg9ju09tDhjPBMC',
2384
- 'CgfYDgLJAxbHBNq',
2483
+ 'BwvZC2fNzuLK',
2484
+ 'D29YA2vYsgfUzg9MzKvYCM9Y',
2485
+ 'Aw1Hz2uVC3zNk3HTBa',
2486
+ 'Ahr0Chm6',
2487
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
2488
+ 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
2489
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
2490
+ 'l3DVCMTLCNmVzxnJywXHDgu',
2491
+ 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
2492
+ 'Cg9ZAxrPDMu',
2493
+ 'l2LUDgvYBMfSl2fNzw50lW',
2494
+ 'igfZC2LNBMvLpua',
2385
2495
  'z2v0twLUDxrLCW',
2386
- 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
2496
+ 'zg06',
2497
+ 'y3vYC29Y',
2498
+ 'BgLZDfrHC2TZ',
2499
+ 'ls1KywvTB24TBg9JywWTDxjS',
2500
+ 'CMvHC29U',
2501
+ 'Dw5JBgfPBv90yxnRigzHAwXLza',
2502
+ 'D29YA19RzxK',
2503
+ 'tM8GBMv3ig1LC3nHz2vZlG',
2387
2504
  'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
2388
- 'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
2389
- 'C3vJy2vZCW',
2390
- 'iYmJieH1BwfUCW',
2505
+ 'uhjVBw90Aw9UigzPBMfSAxPLzcbMB3iGzhjHzNqG',
2506
+ 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
2507
+ 'Dg9tDhjPBMC',
2508
+ 'zxHLy3v0Aw9Utw9Kzt0',
2509
+ 'Aw5PDgLHBeXHC3rtzwvUu2vX',
2510
+ 'l2nVBNrLEhqTBwv0CMLJCW',
2511
+ 'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
2391
2512
  'AgvHzgvYCW',
2392
- 'zg9Uzq',
2393
- 'DMLLD19MAwXL',
2394
- 'igf0DgfJAg1LBNq',
2395
- 'Dgv4Dc9WBgfPBG',
2396
- 'BNvTyMvY',
2397
- 'DhLWzq',
2398
- 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
2399
- 'ywDLBNrjza',
2400
- 'pgvTChr5pG',
2401
- 'z2v0rgf0zq',
2402
- 'D29YA2vY',
2403
- 'CNvUBMLUzW',
2404
- 'AgfZ',
2405
- 'BwvZC2fNzuLK',
2406
- 'CgfKu3rHCNq',
2407
- 'igTPBMq9',
2513
+ 'y2XHAw0GzMfPBgvK',
2514
+ 'BM93',
2515
+ 'DgHYzwfKvgfYz2v0',
2516
+ 'y2HHBM5LBa',
2517
+ 'C2f2zq',
2518
+ 'DgfZAY0',
2519
+ 'lIbdCMvHDgvKihrHC2SGsurZoIa',
2520
+ 'l3rHC2TZl2nSywLT',
2521
+ 'l3jLy2vPDMu/',
2522
+ 'yxbWBgLJyxrPB24VANnVBG',
2523
+ 'Dg9gAxHLza',
2524
+ 'CMvHzf9OAxn0B3j5igzHAwXLza',
2525
+ 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
2526
+ 'l3jLC29SDMuTy2HHBM5LBa',
2527
+ 'y2fJAgveAxi',
2528
+ 'C2L6zq',
2529
+ 'CgfYDgLJAxbHBNq',
2408
2530
  'BgLZDf90yxnRCW',
2409
- 'DhjPBq',
2410
- 'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
2411
- 'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
2412
- 'zMLSzv9WyxrO',
2413
- 'DgfZA3m',
2414
- 'B2jQzwn0',
2415
- 'yMvMB3jL'
2531
+ 'C3rHDhvZ',
2532
+ 'zMfSC2u',
2533
+ 'khvUA25VD24P',
2534
+ 'Cgf5Bg9HzePZB24',
2535
+ 'nu5JDe1uCW',
2536
+ 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
2537
+ 'CMvHzeHPC3rVCNK',
2538
+ 'C2vYDMvYtMfTzq',
2539
+ 'yM9KEu1HCMTKB3DU',
2540
+ 'ywrK',
2541
+ 'BgLZDf9Zzxj2zxi',
2542
+ 'twLZC2LUzYaTlwfNzw50lwLK',
2543
+ 'CNvUBMLUzW',
2544
+ 'zxHWAxjLC0f0',
2545
+ 'yMfZzty0',
2546
+ 'ignSywLTzwq',
2547
+ 'mty4ntiYoxfIyunuCW',
2548
+ 'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
2549
+ 'mZaZmZaWDfLNsuD5',
2550
+ 'B3jPz2LUywXgAwXLBMfTzq',
2551
+ 'C3rVCe1HAw4',
2552
+ 'y3jLyxrLx3rHC2TZ',
2553
+ 'w3rHCMDLDd0',
2554
+ 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
2555
+ 'DgfZAYa',
2556
+ 'C2vX',
2557
+ 'DgfZA0LK',
2558
+ 'DgfZA19Pza',
2559
+ 'yxr0ywnOBwvUDenHy2HL',
2560
+ 'ls13B3jRzxiTBw9Kzq',
2561
+ 'C2vUzf9TzxnZywDLigzHAwXLza',
2562
+ 'z2v0rNvSBfLLyxi',
2563
+ 'Aw1Hz2uVD2vICa',
2564
+ 'l3vWBg9Hza',
2565
+ 'zgf0yq',
2566
+ 'iYmJieH1BwfUCW',
2567
+ 'CMvZCg9UC2u',
2568
+ 'AwrSzq',
2569
+ 'Dgv4Dc9JC3y',
2570
+ 'ihr5Cgu9ywDLBNq',
2571
+ 'yxr0ywnOBwvUDf9Pzhm',
2572
+ 'Bgf0zxn0u2vX',
2573
+ 'C2LNBMfS',
2574
+ 'ywDLBNrZ'
2416
2575
  ];
2417
- _0x3a73 = function () {
2418
- return _0x23d174;
2576
+ _0x1d81 = function () {
2577
+ return _0x3ecbaf;
2419
2578
  };
2420
- return _0x3a73();
2579
+ return _0x1d81();
2580
+ }
2581
+ async function runChatBridgeCli(_0x227b3f) {
2582
+ const _0x52c305 = {
2583
+ _0x13e0c8: 0x13b,
2584
+ _0xa0ee1b: 0x172
2585
+ }, _0x13963a = _0x42226e, _0xca33cc = parseChatBridgeArgs(_0x227b3f), {StdioServerTransport: _0x2d7c57} = await import(_0x13963a(0x155)), _0xe539e9 = createInternalAgentClient(_0xca33cc), _0x1bfc6c = createAttachmentCache({ 'cacheDir': _0xca33cc[_0x13963a(0x254)] }), _0x11ad22 = await createChatBridgeServer({
2586
+ 'agentId': _0xca33cc[_0x13963a(0x23d)],
2587
+ 'attachmentCache': _0x1bfc6c,
2588
+ 'client': _0xe539e9,
2589
+ 'daemonLocalUrl': _0xca33cc[_0x13963a(_0x52c305._0x13e0c8)],
2590
+ 'uploadPreparer': prepareUploadFile,
2591
+ 'workerModeEnabled': _0xca33cc['workerModeEnabled'],
2592
+ 'workerMode': _0xca33cc['workerMode'],
2593
+ 'workerThreadTarget': _0xca33cc[_0x13963a(_0x52c305._0xa0ee1b)]
2594
+ });
2595
+ await _0x11ad22[_0x13963a(0x216)]['connect'](new _0x2d7c57());
2421
2596
  }
2422
- var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x5e089b(0x318)][0x1])['href'] : ![];
2423
- executedAsEntry && await runChatBridgeCli(process['argv']['slice'](0x2));
2597
+ var executedAsEntry = process[_0x42226e(0x135)][0x1] ? import.meta.url === pathToFileURL(process[_0x42226e(0x135)][0x1])[_0x42226e(0xfe)] : ![];
2598
+ executedAsEntry && await runChatBridgeCli(process[_0x42226e(0x135)][_0x42226e(0x244)](0x2));
2424
2599
  export {
2425
2600
  createChatBridgeHandlers,
2426
2601
  createChatBridgeServer,