@dscord/daemon 0.1.22 → 0.1.24

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.
Files changed (3) hide show
  1. package/dist/chat-bridge.js +1940 -1932
  2. package/dist/index.js +8106 -8077
  3. package/package.json +1 -1
@@ -1,26 +1,23 @@
1
- const _0xd0824a = _0x5931;
2
- (function (_0x3c15b2, _0x35594e) {
3
- const _0x17e712 = {
4
- _0x548944: 0x1f7,
5
- _0x577873: 0x1ed,
6
- _0x29e1a1: 0x285,
7
- _0x1c3058: 0x22b,
8
- _0x32d667: 0x2e8,
9
- _0x331d84: 0x2d4,
10
- _0x2d4fbc: 0x23f
11
- }, _0x5ae86c = _0x5931, _0x27eb0d = _0x3c15b2();
1
+ const _0x15d6d8 = _0x3844;
2
+ (function (_0x40a4b1, _0x2a22b6) {
3
+ const _0x4e1f87 = {
4
+ _0x2d0e7a: 0x1a0,
5
+ _0x22cde3: 0x1b8,
6
+ _0x32803d: 0x1e2,
7
+ _0xb73754: 0x2a3
8
+ }, _0x4ba255 = _0x3844, _0x51ca58 = _0x40a4b1();
12
9
  while (!![]) {
13
10
  try {
14
- const _0x3b3d45 = parseInt(_0x5ae86c(_0x17e712._0x548944)) / 0x1 + -parseInt(_0x5ae86c(0x1dd)) / 0x2 + parseInt(_0x5ae86c(_0x17e712._0x577873)) / 0x3 * (parseInt(_0x5ae86c(_0x17e712._0x29e1a1)) / 0x4) + -parseInt(_0x5ae86c(0x187)) / 0x5 * (parseInt(_0x5ae86c(_0x17e712._0x1c3058)) / 0x6) + parseInt(_0x5ae86c(_0x17e712._0x32d667)) / 0x7 * (-parseInt(_0x5ae86c(0x245)) / 0x8) + -parseInt(_0x5ae86c(_0x17e712._0x331d84)) / 0x9 * (parseInt(_0x5ae86c(0x230)) / 0xa) + -parseInt(_0x5ae86c(0x2a8)) / 0xb * (-parseInt(_0x5ae86c(_0x17e712._0x2d4fbc)) / 0xc);
15
- if (_0x3b3d45 === _0x35594e)
11
+ const _0x28065d = parseInt(_0x4ba255(0x186)) / 0x1 * (-parseInt(_0x4ba255(0x1fb)) / 0x2) + -parseInt(_0x4ba255(0x273)) / 0x3 * (parseInt(_0x4ba255(0x150)) / 0x4) + parseInt(_0x4ba255(_0x4e1f87._0x2d0e7a)) / 0x5 * (-parseInt(_0x4ba255(0x205)) / 0x6) + -parseInt(_0x4ba255(0x1e9)) / 0x7 + -parseInt(_0x4ba255(_0x4e1f87._0x22cde3)) / 0x8 + -parseInt(_0x4ba255(_0x4e1f87._0x32803d)) / 0x9 + parseInt(_0x4ba255(0x20c)) / 0xa * (parseInt(_0x4ba255(_0x4e1f87._0xb73754)) / 0xb);
12
+ if (_0x28065d === _0x2a22b6)
16
13
  break;
17
14
  else
18
- _0x27eb0d['push'](_0x27eb0d['shift']());
19
- } catch (_0x933238) {
20
- _0x27eb0d['push'](_0x27eb0d['shift']());
15
+ _0x51ca58['push'](_0x51ca58['shift']());
16
+ } catch (_0x1a4276) {
17
+ _0x51ca58['push'](_0x51ca58['shift']());
21
18
  }
22
19
  }
23
- }(_0x3e90, 0xc0aa5));
20
+ }(_0x4199, 0x99348));
24
21
  import { pathToFileURL } from 'node:url';
25
22
  import {
26
23
  mkdir,
@@ -30,83 +27,82 @@ import {
30
27
  writeFile
31
28
  } from 'node:fs/promises';
32
29
  import { homedir } from 'node:os';
33
- import _0x3d8400 from 'node:path';
30
+ import _0x5e67bd from 'node:path';
34
31
  var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
35
- '.csv': _0xd0824a(0x1ce),
36
- '.gif': _0xd0824a(0x232),
37
- '.jpeg': _0xd0824a(0x2ca),
38
- '.jpg': _0xd0824a(0x2ca),
39
- '.json': 'application/json',
40
- '.md': _0xd0824a(0x238),
41
- '.pdf': _0xd0824a(0x1e6),
32
+ '.csv': _0x15d6d8(0x13a),
33
+ '.gif': _0x15d6d8(0x244),
34
+ '.jpeg': 'image/jpeg',
35
+ '.jpg': _0x15d6d8(0x1a3),
36
+ '.json': _0x15d6d8(0x12a),
37
+ '.md': 'text/markdown',
38
+ '.pdf': _0x15d6d8(0x14e),
42
39
  '.png': 'image/png',
43
- '.svg': _0xd0824a(0x244),
44
- '.txt': _0xd0824a(0x1ae),
45
- '.webp': 'image/webp',
46
- '.xml': _0xd0824a(0x288),
47
- '.zip': _0xd0824a(0x2a6)
40
+ '.svg': _0x15d6d8(0x19d),
41
+ '.txt': _0x15d6d8(0x23d),
42
+ '.webp': _0x15d6d8(0x1c4),
43
+ '.xml': 'application/xml',
44
+ '.zip': 'application/zip'
48
45
  };
49
- function guessContentType(_0x41f792) {
50
- const _0x36621b = { _0x207f28: 0x208 }, _0x3fc90a = _0xd0824a;
51
- return MIME_BY_EXTENSION[_0x3d8400[_0x3fc90a(_0x36621b._0x207f28)](_0x41f792)['toLowerCase']()] ?? _0x3fc90a(0x21e);
46
+ function guessContentType(_0xfe6095) {
47
+ const _0x16b3a0 = { _0x4aca58: 0x1b2 }, _0x4d8bb6 = _0x15d6d8;
48
+ return MIME_BY_EXTENSION[_0x5e67bd[_0x4d8bb6(0x27d)](_0xfe6095)[_0x4d8bb6(_0x16b3a0._0x4aca58)]()] ?? 'application/octet-stream';
52
49
  }
53
- function safeFilename(_0x5756f4) {
54
- const _0x3ea66b = { _0x32dd5c: 0x1c0 }, _0x25ee40 = _0xd0824a;
55
- return _0x5756f4[_0x25ee40(_0x3ea66b._0x32dd5c)](/[\\/]/g, '-');
50
+ function safeFilename(_0x429db5) {
51
+ const _0x31ccb4 = _0x15d6d8;
52
+ return _0x429db5[_0x31ccb4(0x27a)](/[\\/]/g, '-');
56
53
  }
57
- function extensionFor(_0x3a742e) {
58
- const _0x38b7b7 = {
59
- _0x390407: 0x2ec,
60
- _0x512c2d: 0x1d7
61
- }, _0x1919c6 = _0xd0824a, _0x15cd91 = Object[_0x1919c6(0x2e2)](MIME_BY_EXTENSION)[_0x1919c6(_0x38b7b7._0x390407)](([, _0x1fe0dc]) => _0x1fe0dc === _0x3a742e);
62
- return _0x15cd91?.[0x0] ?? _0x1919c6(_0x38b7b7._0x512c2d);
54
+ function extensionFor(_0x5123a9) {
55
+ const _0x2443e2 = {
56
+ _0x59fa23: 0x23a,
57
+ _0x41c7f4: 0x160
58
+ }, _0x1c4845 = _0x15d6d8, _0x2743f4 = Object[_0x1c4845(_0x2443e2._0x59fa23)](MIME_BY_EXTENSION)[_0x1c4845(0x21e)](([, _0x50482c]) => _0x50482c === _0x5123a9);
59
+ return _0x2743f4?.[0x0] ?? _0x1c4845(_0x2443e2._0x41c7f4);
63
60
  }
64
- async function prepareUploadFile(_0x1481af, _0x594bf4 = {}) {
65
- const _0x1d3854 = {
66
- _0x5a292a: 0x296,
67
- _0xefce86: 0x1fe,
68
- _0x5c512f: 0x190,
69
- _0x52b7fa: 0x1b1
70
- }, _0xb5a35d = _0xd0824a;
71
- if (!_0x3d8400['isAbsolute'](_0x1481af))
61
+ async function prepareUploadFile(_0x2d4983, _0x3223aa = {}) {
62
+ const _0x584610 = {
63
+ _0x5a9cfb: 0x297,
64
+ _0x3d35ce: 0x1b5,
65
+ _0x51b64c: 0x1b5
66
+ }, _0x4aeb82 = _0x15d6d8;
67
+ if (!_0x5e67bd['isAbsolute'](_0x2d4983))
72
68
  throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
73
- const _0x9a07cf = await stat(_0x1481af)[_0xb5a35d(0x1e8)](() => null);
74
- if (!_0x9a07cf || !_0x9a07cf[_0xb5a35d(_0x1d3854._0x5a292a)]())
75
- throw new Error('File\x20not\x20found:\x20' + _0x1481af);
76
- const _0x51532b = _0x594bf4[_0xb5a35d(0x2a7)] ?? DEFAULT_MAX_FILE_SIZE;
77
- if (_0x9a07cf[_0xb5a35d(0x1b1)] > _0x51532b)
78
- throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x9a07cf['size']);
79
- const _0x57d9f8 = await readFile(_0x1481af), _0x49ba05 = _0x3d8400[_0xb5a35d(0x1e4)](_0x1481af);
69
+ const _0xa34989 = await stat(_0x2d4983)[_0x4aeb82(0x198)](() => null);
70
+ if (!_0xa34989 || !_0xa34989['isFile']())
71
+ throw new Error(_0x4aeb82(0x1dd) + _0x2d4983);
72
+ const _0x2a8c11 = _0x3223aa[_0x4aeb82(_0x584610._0x5a9cfb)] ?? DEFAULT_MAX_FILE_SIZE;
73
+ if (_0xa34989[_0x4aeb82(_0x584610._0x3d35ce)] > _0x2a8c11)
74
+ throw new Error(_0x4aeb82(0x21b) + _0xa34989[_0x4aeb82(_0x584610._0x51b64c)]);
75
+ const _0x1619b5 = await readFile(_0x2d4983), _0x43faf9 = _0x5e67bd[_0x4aeb82(0x164)](_0x2d4983);
80
76
  return {
81
- 'contentBase64': _0x57d9f8[_0xb5a35d(_0x1d3854._0xefce86)](_0xb5a35d(_0x1d3854._0x5c512f)),
82
- 'contentType': guessContentType(_0x49ba05),
83
- 'filename': _0x49ba05,
84
- 'sizeBytes': _0x9a07cf[_0xb5a35d(_0x1d3854._0x52b7fa)]
77
+ 'contentBase64': _0x1619b5['toString'](_0x4aeb82(0x230)),
78
+ 'contentType': guessContentType(_0x43faf9),
79
+ 'filename': _0x43faf9,
80
+ 'sizeBytes': _0xa34989[_0x4aeb82(_0x584610._0x3d35ce)]
85
81
  };
86
82
  }
87
- function createAttachmentCache(_0x4479b7 = {}) {
88
- const _0x528b3e = {
89
- _0x123942: 0x269,
90
- _0x512b26: 0x267
91
- }, _0x7b1717 = {
92
- _0xd39a27: 0x220,
93
- _0x3fd3da: 0x20e,
94
- _0x4e2c14: 0x25f,
95
- _0x32ddca: 0x1fa
96
- }, _0x36e605 = _0xd0824a, _0x490d93 = _0x4479b7[_0x36e605(_0x528b3e._0x123942)] ?? _0x3d8400[_0x36e605(0x248)](homedir(), _0x36e605(0x195), _0x36e605(_0x528b3e._0x512b26));
83
+ function createAttachmentCache(_0x3e7efd = {}) {
84
+ const _0x52bb2c = {
85
+ _0x234a16: 0x1b9,
86
+ _0x4e3861: 0x26a,
87
+ _0x5cb0d8: 0x2a1
88
+ }, _0x3b0a9d = {
89
+ _0x17ef56: 0x13e,
90
+ _0x257c97: 0x13e,
91
+ _0x21220b: 0x153
92
+ }, _0xcab1c0 = _0x15d6d8, _0x218ee6 = _0x3e7efd[_0xcab1c0(_0x52bb2c._0x234a16)] ?? _0x5e67bd[_0xcab1c0(0x15d)](homedir(), _0xcab1c0(_0x52bb2c._0x4e3861), _0xcab1c0(_0x52bb2c._0x5cb0d8));
97
93
  return {
98
- 'cacheDir': _0x490d93,
99
- async 'findCachedPath'(_0x2569e6) {
100
- const _0x4a827c = _0x36e605;
101
- await mkdir(_0x490d93, { 'recursive': !![] });
102
- const _0x358d4c = await readdir(_0x490d93), _0x2a8a49 = _0x358d4c['find'](_0x4ff982 => _0x4ff982[_0x4a827c(0x2c2)](_0x2569e6 + '-') || _0x4ff982[_0x4a827c(0x2c2)](_0x2569e6));
103
- return _0x2a8a49 ? _0x3d8400[_0x4a827c(0x248)](_0x490d93, _0x2a8a49) : null;
94
+ 'cacheDir': _0x218ee6,
95
+ async 'findCachedPath'(_0x2ed894) {
96
+ const _0x1eaab1 = _0xcab1c0;
97
+ await mkdir(_0x218ee6, { 'recursive': !![] });
98
+ const _0x4a2a8e = await readdir(_0x218ee6), _0x257746 = _0x4a2a8e['find'](_0x27db84 => _0x27db84['startsWith'](_0x2ed894 + '-') || _0x27db84[_0x1eaab1(0x215)](_0x2ed894));
99
+ return _0x257746 ? _0x5e67bd['join'](_0x218ee6, _0x257746) : null;
104
100
  },
105
- async 'save'(_0x107861) {
106
- const _0x3366b2 = _0x36e605;
107
- await mkdir(_0x490d93, { 'recursive': !![] });
108
- const _0x51f6c4 = _0x107861[_0x3366b2(0x220)]?.[_0x3366b2(0x256)]() ? safeFilename(_0x107861[_0x3366b2(_0x7b1717._0xd39a27)]) : '' + _0x107861['attachmentId'] + extensionFor(_0x107861[_0x3366b2(_0x7b1717._0x3fd3da)]), _0x55e0d4 = _0x3d8400[_0x3366b2(0x248)](_0x490d93, _0x107861[_0x3366b2(_0x7b1717._0x4e2c14)] + '-' + _0x51f6c4);
109
- return await writeFile(_0x55e0d4, _0x107861[_0x3366b2(_0x7b1717._0x32ddca)]), _0x55e0d4;
101
+ async 'save'(_0x4355dc) {
102
+ const _0x31293d = _0xcab1c0;
103
+ await mkdir(_0x218ee6, { 'recursive': !![] });
104
+ const _0x21bcd = _0x4355dc['originalFilename']?.[_0x31293d(0x269)]() ? safeFilename(_0x4355dc['originalFilename']) : '' + _0x4355dc[_0x31293d(_0x3b0a9d._0x17ef56)] + extensionFor(_0x4355dc['contentType']), _0x505ebe = _0x5e67bd[_0x31293d(0x15d)](_0x218ee6, _0x4355dc[_0x31293d(_0x3b0a9d._0x257c97)] + '-' + _0x21bcd);
105
+ return await writeFile(_0x505ebe, _0x4355dc[_0x31293d(_0x3b0a9d._0x21220b)]), _0x505ebe;
110
106
  }
111
107
  };
112
108
  }
@@ -114,2186 +110,2198 @@ import {
114
110
  createHash,
115
111
  randomUUID
116
112
  } from 'node:crypto';
117
- var UNSUPPORTED_TARGET_MESSAGE = _0xd0824a(0x198);
118
- function ensureSegment(_0x5059fc) {
119
- const _0x133ca8 = { _0x55f433: 0x256 }, _0x3a8f2a = _0xd0824a, _0x371cac = _0x5059fc[_0x3a8f2a(_0x133ca8._0x55f433)]();
120
- if (!_0x371cac || _0x371cac[_0x3a8f2a(0x1b5)](':'))
113
+ var UNSUPPORTED_TARGET_MESSAGE = _0x15d6d8(0x207);
114
+ function ensureSegment(_0x46d629) {
115
+ const _0x49a5f2 = {
116
+ _0x319679: 0x269,
117
+ _0x33e1e8: 0x135
118
+ }, _0x4a6222 = _0x15d6d8, _0x35f431 = _0x46d629[_0x4a6222(_0x49a5f2._0x319679)]();
119
+ if (!_0x35f431 || _0x35f431[_0x4a6222(_0x49a5f2._0x33e1e8)](':'))
121
120
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
122
- return _0x371cac;
121
+ return _0x35f431;
123
122
  }
124
- function parseThreadParts(_0x39391d) {
125
- const _0x200463 = { _0x3ed62d: 0x276 }, _0x5b6c93 = _0xd0824a, _0x65cde = _0x39391d[_0x5b6c93(_0x200463._0x3ed62d)](':');
126
- if (_0x65cde['length'] < 0x1 || _0x65cde['length'] > 0x2)
123
+ function parseThreadParts(_0x24bd8f) {
124
+ const _0x1d97c8 = {
125
+ _0x41c8b4: 0x197,
126
+ _0x23ddf8: 0x190
127
+ }, _0x2cb299 = _0x15d6d8, _0x2ff131 = _0x24bd8f[_0x2cb299(_0x1d97c8._0x41c8b4)](':');
128
+ if (_0x2ff131[_0x2cb299(_0x1d97c8._0x23ddf8)] < 0x1 || _0x2ff131['length'] > 0x2)
127
129
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
128
130
  return {
129
- 'channelName': ensureSegment(_0x65cde[0x0] ?? ''),
130
- 'threadShortId': _0x65cde[0x1] ? ensureSegment(_0x65cde[0x1]) : null
131
+ 'channelName': ensureSegment(_0x2ff131[0x0] ?? ''),
132
+ 'threadShortId': _0x2ff131[0x1] ? ensureSegment(_0x2ff131[0x1]) : null
131
133
  };
132
134
  }
133
- function parseTarget(_0x53e49b) {
134
- const _0xd89a36 = {
135
- _0x160ef5: 0x2c2,
136
- _0xbb8b84: 0x1b9,
137
- _0x2db248: 0x2c2,
138
- _0x436aa8: 0x1d3,
139
- _0x125edd: 0x17c,
140
- _0x4ba619: 0x1d3,
141
- _0x156cb4: 0x1b9
142
- }, _0x554c54 = _0xd0824a, _0x3f4f99 = _0x53e49b[_0x554c54(0x256)]();
143
- if (!_0x3f4f99)
135
+ function parseTarget(_0x64f36f) {
136
+ const _0x5528fe = {
137
+ _0x5f2b23: 0x263,
138
+ _0x3978e2: 0x13b,
139
+ _0x39a982: 0x13b,
140
+ _0x449732: 0x215,
141
+ _0x4ab642: 0x259,
142
+ _0x222380: 0x1f8,
143
+ _0x5ec508: 0x268
144
+ }, _0x4b9271 = _0x15d6d8, _0x48cebd = _0x64f36f[_0x4b9271(0x269)]();
145
+ if (!_0x48cebd)
144
146
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
145
- if (_0x3f4f99[_0x554c54(_0xd89a36._0x160ef5)]('#')) {
146
- const _0x36c397 = parseThreadParts(_0x3f4f99[_0x554c54(0x1b4)](0x1)), _0x301247 = '#' + _0x36c397['channelName'];
147
- if (!_0x36c397[_0x554c54(_0xd89a36._0xbb8b84)])
147
+ if (_0x48cebd[_0x4b9271(0x215)]('#')) {
148
+ const _0x4bc6ab = parseThreadParts(_0x48cebd[_0x4b9271(_0x5528fe._0x5f2b23)](0x1)), _0x489a6c = '#' + _0x4bc6ab['channelName'];
149
+ if (!_0x4bc6ab[_0x4b9271(0x13b)])
148
150
  return {
149
- 'channelName': _0x36c397[_0x554c54(0x1d3)],
150
- 'channelTarget': _0x301247,
151
- 'kind': _0x554c54(0x23e),
152
- 'target': _0x301247
151
+ 'channelName': _0x4bc6ab['channelName'],
152
+ 'channelTarget': _0x489a6c,
153
+ 'kind': _0x4b9271(0x268),
154
+ 'target': _0x489a6c
153
155
  };
154
156
  return {
155
- 'channelName': _0x36c397[_0x554c54(0x1d3)],
156
- 'channelTarget': _0x301247,
157
- 'kind': _0x554c54(0x1b7),
158
- 'target': _0x301247 + ':' + _0x36c397['threadShortId'],
159
- 'threadShortId': _0x36c397[_0x554c54(_0xd89a36._0xbb8b84)]
157
+ 'channelName': _0x4bc6ab[_0x4b9271(0x1f8)],
158
+ 'channelTarget': _0x489a6c,
159
+ 'kind': 'thread',
160
+ 'target': _0x489a6c + ':' + _0x4bc6ab[_0x4b9271(_0x5528fe._0x3978e2)],
161
+ 'threadShortId': _0x4bc6ab[_0x4b9271(_0x5528fe._0x39a982)]
160
162
  };
161
163
  }
162
- if (_0x3f4f99[_0x554c54(_0xd89a36._0x2db248)]('dm:')) {
163
- const _0x19a912 = parseThreadParts(_0x3f4f99[_0x554c54(0x1b4)](0x3));
164
- if (!_0x19a912[_0x554c54(_0xd89a36._0x436aa8)][_0x554c54(_0xd89a36._0x2db248)](_0x554c54(_0xd89a36._0x125edd)))
164
+ if (_0x48cebd[_0x4b9271(_0x5528fe._0x449732)](_0x4b9271(0x258))) {
165
+ const _0x1395fa = parseThreadParts(_0x48cebd['slice'](0x3));
166
+ if (!_0x1395fa[_0x4b9271(0x1f8)]['startsWith'](_0x4b9271(_0x5528fe._0x4ab642)))
165
167
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
166
- const _0x23ef86 = 'dm:' + _0x19a912[_0x554c54(0x1d3)];
167
- if (!_0x19a912['threadShortId'])
168
+ const _0x290cbe = _0x4b9271(0x258) + _0x1395fa[_0x4b9271(0x1f8)];
169
+ if (!_0x1395fa[_0x4b9271(0x13b)])
168
170
  return {
169
- 'channelName': _0x19a912[_0x554c54(_0xd89a36._0x436aa8)],
170
- 'channelTarget': _0x23ef86,
171
- 'kind': 'channel',
172
- 'target': _0x23ef86
171
+ 'channelName': _0x1395fa[_0x4b9271(_0x5528fe._0x222380)],
172
+ 'channelTarget': _0x290cbe,
173
+ 'kind': _0x4b9271(_0x5528fe._0x5ec508),
174
+ 'target': _0x290cbe
173
175
  };
174
176
  return {
175
- 'channelName': _0x19a912[_0x554c54(_0xd89a36._0x4ba619)],
176
- 'channelTarget': _0x23ef86,
177
+ 'channelName': _0x1395fa['channelName'],
178
+ 'channelTarget': _0x290cbe,
177
179
  'kind': 'thread',
178
- 'target': _0x23ef86 + ':' + _0x19a912[_0x554c54(_0xd89a36._0xbb8b84)],
179
- 'threadShortId': _0x19a912[_0x554c54(_0xd89a36._0x156cb4)]
180
+ 'target': _0x290cbe + ':' + _0x1395fa[_0x4b9271(0x13b)],
181
+ 'threadShortId': _0x1395fa[_0x4b9271(_0x5528fe._0x3978e2)]
180
182
  };
181
183
  }
182
184
  throw new Error(UNSUPPORTED_TARGET_MESSAGE);
183
185
  }
184
- function asErrorMessage(_0xd0f088, _0x51442f) {
185
- const _0x2e7d31 = { _0x4feed6: 0x2c9 }, _0x180e76 = _0xd0824a;
186
- if (typeof _0xd0f088 === _0x180e76(_0x2e7d31._0x4feed6) && _0xd0f088[_0x180e76(0x256)]())
187
- return _0xd0f088;
188
- return _0x51442f;
186
+ function _0x3844(_0x383972, _0x284cad) {
187
+ _0x383972 = _0x383972 - 0x11e;
188
+ const _0x419973 = _0x4199();
189
+ let _0x38441b = _0x419973[_0x383972];
190
+ if (_0x3844['HFsmfV'] === undefined) {
191
+ var _0x161da8 = function (_0x2d0bc1) {
192
+ const _0x3923fe = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
193
+ let _0x5e67bd = '', _0xfe6095 = '';
194
+ for (let _0x429db5 = 0x0, _0x5123a9, _0x2743f4, _0x50482c = 0x0; _0x2743f4 = _0x2d0bc1['charAt'](_0x50482c++); ~_0x2743f4 && (_0x5123a9 = _0x429db5 % 0x4 ? _0x5123a9 * 0x40 + _0x2743f4 : _0x2743f4, _0x429db5++ % 0x4) ? _0x5e67bd += String['fromCharCode'](0xff & _0x5123a9 >> (-0x2 * _0x429db5 & 0x6)) : 0x0) {
195
+ _0x2743f4 = _0x3923fe['indexOf'](_0x2743f4);
196
+ }
197
+ for (let _0x2d4983 = 0x0, _0x3223aa = _0x5e67bd['length']; _0x2d4983 < _0x3223aa; _0x2d4983++) {
198
+ _0xfe6095 += '%' + ('00' + _0x5e67bd['charCodeAt'](_0x2d4983)['toString'](0x10))['slice'](-0x2);
199
+ }
200
+ return decodeURIComponent(_0xfe6095);
201
+ };
202
+ _0x3844['ZTsBkI'] = _0x161da8, _0x3844['SmQLjy'] = {}, _0x3844['HFsmfV'] = !![];
203
+ }
204
+ const _0x2144f6 = _0x419973[0x0], _0x22ad2b = _0x383972 + _0x2144f6, _0xf5275c = _0x3844['SmQLjy'][_0x22ad2b];
205
+ return !_0xf5275c ? (_0x38441b = _0x3844['ZTsBkI'](_0x38441b), _0x3844['SmQLjy'][_0x22ad2b] = _0x38441b) : _0x38441b = _0xf5275c, _0x38441b;
206
+ }
207
+ function asErrorMessage(_0x1b3f64, _0x2c5414) {
208
+ const _0x3e879e = _0x15d6d8;
209
+ if (typeof _0x1b3f64 === _0x3e879e(0x140) && _0x1b3f64[_0x3e879e(0x269)]())
210
+ return _0x1b3f64;
211
+ return _0x2c5414;
189
212
  }
190
- function asRecord(_0x2916fe) {
191
- const _0x37d1f3 = _0xd0824a;
192
- return typeof _0x2916fe === _0x37d1f3(0x1b6) && _0x2916fe !== null ? _0x2916fe : {};
213
+ function asRecord(_0x1bde71) {
214
+ const _0x213c74 = _0x15d6d8;
215
+ return typeof _0x1bde71 === _0x213c74(0x20e) && _0x1bde71 !== null ? _0x1bde71 : {};
193
216
  }
194
- function stableStringify(_0x519f2d) {
195
- const _0x41b94c = {
196
- _0x491fa9: 0x2e4,
197
- _0x507960: 0x1ad,
198
- _0x12ad5c: 0x248,
199
- _0x302740: 0x2e2,
200
- _0x2d56d4: 0x1d0
201
- }, _0x3fe3d3 = _0xd0824a;
202
- if (_0x519f2d === null || typeof _0x519f2d !== 'object')
203
- return JSON['stringify'](_0x519f2d);
204
- if (Array[_0x3fe3d3(_0x41b94c._0x491fa9)](_0x519f2d))
205
- return '[' + _0x519f2d[_0x3fe3d3(_0x41b94c._0x507960)](_0x54b4a7 => stableStringify(_0x54b4a7))[_0x3fe3d3(_0x41b94c._0x12ad5c)](',') + ']';
206
- const _0x4dc791 = Object[_0x3fe3d3(_0x41b94c._0x302740)](_0x519f2d)[_0x3fe3d3(0x2b8)](([, _0x2d7715]) => _0x2d7715 !== void 0x0)[_0x3fe3d3(_0x41b94c._0x2d56d4)](([_0x27767e], [_0x1cdd17]) => _0x27767e[_0x3fe3d3(0x2c7)](_0x1cdd17))[_0x3fe3d3(0x1ad)](([_0x2e814a, _0x29a71f]) => JSON[_0x3fe3d3(0x17d)](_0x2e814a) + ':' + stableStringify(_0x29a71f));
207
- return '{' + _0x4dc791[_0x3fe3d3(_0x41b94c._0x12ad5c)](',') + '}';
217
+ function stableStringify(_0x10b8da) {
218
+ const _0xb37a88 = {
219
+ _0x2675bd: 0x20e,
220
+ _0x5f2117: 0x15d,
221
+ _0xe361: 0x1a7,
222
+ _0x28707b: 0x15d
223
+ }, _0x39e887 = _0x15d6d8;
224
+ if (_0x10b8da === null || typeof _0x10b8da !== _0x39e887(_0xb37a88._0x2675bd))
225
+ return JSON[_0x39e887(0x14b)](_0x10b8da);
226
+ if (Array['isArray'](_0x10b8da))
227
+ return '[' + _0x10b8da[_0x39e887(0x208)](_0x47d4a9 => stableStringify(_0x47d4a9))[_0x39e887(_0xb37a88._0x5f2117)](',') + ']';
228
+ const _0x5bbeb1 = Object[_0x39e887(0x23a)](_0x10b8da)[_0x39e887(_0xb37a88._0xe361)](([, _0x1f9422]) => _0x1f9422 !== void 0x0)['sort'](([_0xfdd987], [_0x3f50ac]) => _0xfdd987[_0x39e887(0x1d6)](_0x3f50ac))[_0x39e887(0x208)](([_0x117e51, _0x266b49]) => JSON[_0x39e887(0x14b)](_0x117e51) + ':' + stableStringify(_0x266b49));
229
+ return '{' + _0x5bbeb1[_0x39e887(_0xb37a88._0x28707b)](',') + '}';
208
230
  }
209
- function createHeaders(_0x313b47) {
210
- const _0x16d6b0 = { _0xb4ddd2: 0x2ee }, _0x236e12 = _0xd0824a;
231
+ function createHeaders(_0x1e2b64) {
232
+ const _0x2832a5 = { _0x5f04bf: 0x12a }, _0x48a60c = _0x15d6d8;
211
233
  return {
212
- 'Content-Type': _0x236e12(_0x16d6b0._0xb4ddd2),
213
- 'x-daemon-api-key': _0x313b47
234
+ 'Content-Type': _0x48a60c(_0x2832a5._0x5f04bf),
235
+ 'x-daemon-api-key': _0x1e2b64
214
236
  };
215
237
  }
216
- function toHttpBaseUrl(_0x528cae) {
217
- const _0x34b2ea = {
218
- _0x1eb0a0: 0x184,
219
- _0x2e7301: 0x1a9
220
- }, _0x1e6b34 = _0xd0824a, _0x30f867 = new URL(_0x528cae);
221
- if (_0x30f867[_0x1e6b34(0x260)] === _0x1e6b34(0x1b0))
222
- _0x30f867[_0x1e6b34(0x260)] = _0x1e6b34(0x1cc);
238
+ function toHttpBaseUrl(_0x72e409) {
239
+ const _0x39e7c4 = {
240
+ _0x2054e0: 0x1a2,
241
+ _0x4a3748: 0x22e,
242
+ _0x5d2516: 0x27a
243
+ }, _0x21508e = _0x15d6d8, _0x1f1ae0 = new URL(_0x72e409);
244
+ if (_0x1f1ae0[_0x21508e(0x22e)] === 'ws:')
245
+ _0x1f1ae0[_0x21508e(0x22e)] = _0x21508e(0x29a);
223
246
  else
224
- _0x30f867['protocol'] === _0x1e6b34(_0x34b2ea._0x1eb0a0) && (_0x30f867[_0x1e6b34(0x260)] = _0x1e6b34(_0x34b2ea._0x2e7301));
225
- return _0x30f867[_0x1e6b34(0x1fe)]()[_0x1e6b34(0x1c0)](/\/$/, '');
247
+ _0x1f1ae0[_0x21508e(0x22e)] === _0x21508e(_0x39e7c4._0x2054e0) && (_0x1f1ae0[_0x21508e(_0x39e7c4._0x4a3748)] = _0x21508e(0x18e));
248
+ return _0x1f1ae0[_0x21508e(0x1f9)]()[_0x21508e(_0x39e7c4._0x5d2516)](/\/$/, '');
226
249
  }
227
- function isMentionBoundary(_0x122224) {
228
- return !_0x122224 || /\s|[([{'",。!?、:;]/['test'](_0x122224);
250
+ function isMentionBoundary(_0x22a2ff) {
251
+ const _0x25eda3 = { _0x2f3b09: 0x184 }, _0x93cce6 = _0x15d6d8;
252
+ return !_0x22a2ff || /\s|[([{'",。!?、:;]/[_0x93cce6(_0x25eda3._0x2f3b09)](_0x22a2ff);
229
253
  }
230
- function isMentionTerminal(_0x15058b) {
231
- const _0x10ca7c = { _0x5128b4: 0x24b }, _0x2cca29 = _0xd0824a;
232
- return !_0x15058b || /\s|[)\]}'",。!?、:;,.!?]/[_0x2cca29(_0x10ca7c._0x5128b4)](_0x15058b);
254
+ function isMentionTerminal(_0x5b2761) {
255
+ return !_0x5b2761 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x5b2761);
233
256
  }
234
- function buildMatchableEntries(_0x307c8f) {
235
- const _0x54adf3 = { _0x32d284: 0x290 }, _0xb85316 = _0xd0824a, _0xdeee9b = [];
236
- for (const _0x518b1b of [
237
- ..._0x307c8f[_0xb85316(0x268)],
238
- ..._0x307c8f[_0xb85316(_0x54adf3._0x32d284)]
257
+ function buildMatchableEntries(_0x1dcec4) {
258
+ const _0x5af7f6 = {
259
+ _0x44bb5b: 0x14d,
260
+ _0x47758d: 0x12e,
261
+ _0x350624: 0x130
262
+ }, _0x38dcd9 = _0x15d6d8, _0x2290ac = [];
263
+ for (const _0x2601d7 of [
264
+ ..._0x1dcec4[_0x38dcd9(_0x5af7f6._0x44bb5b)],
265
+ ..._0x1dcec4['humans']
239
266
  ]) {
240
- _0xdeee9b[_0xb85316(0x27b)]({
241
- 'matchName': _0x518b1b[_0xb85316(0x25d)],
242
- 'matchNameLower': _0x518b1b[_0xb85316(0x25d)]['toLocaleLowerCase'](),
243
- 'participantId': _0x518b1b['id']
244
- }), _0x518b1b['id'] !== _0x518b1b['name'] && _0xdeee9b[_0xb85316(0x27b)]({
245
- 'matchName': _0x518b1b['id'],
246
- 'matchNameLower': _0x518b1b['id']['toLocaleLowerCase'](),
247
- 'participantId': _0x518b1b['id']
267
+ _0x2290ac[_0x38dcd9(_0x5af7f6._0x47758d)]({
268
+ 'matchName': _0x2601d7[_0x38dcd9(0x130)],
269
+ 'matchNameLower': _0x2601d7['name'][_0x38dcd9(0x1ee)](),
270
+ 'participantId': _0x2601d7['id']
271
+ }), _0x2601d7['id'] !== _0x2601d7[_0x38dcd9(_0x5af7f6._0x350624)] && _0x2290ac[_0x38dcd9(0x12e)]({
272
+ 'matchName': _0x2601d7['id'],
273
+ 'matchNameLower': _0x2601d7['id']['toLocaleLowerCase'](),
274
+ 'participantId': _0x2601d7['id']
248
275
  });
249
276
  }
250
- return _0xdeee9b;
277
+ return _0x2290ac;
251
278
  }
252
- function extractMentionedParticipantIds(_0x104f9c, _0x1ea862) {
253
- const _0x2ff0b3 = { _0x73ab9d: 0x1d0 }, _0x78c8b5 = { _0x79a9af: 0x2aa }, _0x10afa9 = _0xd0824a, _0x5b9aff = buildMatchableEntries(_0x1ea862)[_0x10afa9(_0x2ff0b3._0x73ab9d)]((_0x3fb616, _0x56f980) => _0x56f980['matchName'][_0x10afa9(0x2aa)] - _0x3fb616[_0x10afa9(0x19b)][_0x10afa9(0x2aa)]), _0x426925 = [], _0x2c2481 = new Set();
254
- for (let _0x5e29ae = 0x0; _0x5e29ae < _0x104f9c[_0x10afa9(0x2aa)]; _0x5e29ae += 0x1) {
255
- if (_0x104f9c[_0x5e29ae] !== '@' || !isMentionBoundary(_0x104f9c[_0x5e29ae - 0x1]))
279
+ function extractMentionedParticipantIds(_0x158b70, _0x486a7c) {
280
+ const _0x2913e5 = {
281
+ _0x5cdc8b: 0x21e,
282
+ _0x335b7e: 0x248,
283
+ _0x4d8cc0: 0x159,
284
+ _0x286d47: 0x12e
285
+ }, _0x236341 = {
286
+ _0x372c7a: 0x215,
287
+ _0x5e9884: 0x1c0
288
+ }, _0x360e4e = _0x15d6d8, _0x54a4c1 = buildMatchableEntries(_0x486a7c)[_0x360e4e(0x136)]((_0x3f5e9b, _0x2f4ec1) => _0x2f4ec1[_0x360e4e(0x1c0)][_0x360e4e(0x190)] - _0x3f5e9b[_0x360e4e(0x1c0)][_0x360e4e(0x190)]), _0x3a6315 = [], _0x47378b = new Set();
289
+ for (let _0x4f4e56 = 0x0; _0x4f4e56 < _0x158b70['length']; _0x4f4e56 += 0x1) {
290
+ if (_0x158b70[_0x4f4e56] !== '@' || !isMentionBoundary(_0x158b70[_0x4f4e56 - 0x1]))
256
291
  continue;
257
- const _0x593570 = _0x104f9c['slice'](_0x5e29ae + 0x1), _0x37e48a = _0x593570['toLocaleLowerCase'](), _0x55651d = _0x5b9aff[_0x10afa9(0x2ec)](_0x478105 => {
258
- const _0x1a4483 = _0x10afa9;
259
- if (!_0x37e48a['startsWith'](_0x478105['matchNameLower']))
292
+ const _0x19da58 = _0x158b70['slice'](_0x4f4e56 + 0x1), _0x2c8a19 = _0x19da58[_0x360e4e(0x1ee)](), _0x15455e = _0x54a4c1[_0x360e4e(_0x2913e5._0x5cdc8b)](_0x35cbe9 => {
293
+ const _0x11e551 = _0x360e4e;
294
+ if (!_0x2c8a19[_0x11e551(_0x236341._0x372c7a)](_0x35cbe9[_0x11e551(0x188)]))
260
295
  return ![];
261
- return isMentionTerminal(_0x593570[_0x478105[_0x1a4483(0x19b)][_0x1a4483(_0x78c8b5._0x79a9af)]]);
296
+ return isMentionTerminal(_0x19da58[_0x35cbe9[_0x11e551(_0x236341._0x5e9884)]['length']]);
262
297
  });
263
- if (!_0x55651d || _0x2c2481[_0x10afa9(0x234)](_0x55651d['participantId']))
298
+ if (!_0x15455e || _0x47378b[_0x360e4e(_0x2913e5._0x335b7e)](_0x15455e[_0x360e4e(0x159)]))
264
299
  continue;
265
- _0x2c2481[_0x10afa9(0x274)](_0x55651d['participantId']), _0x426925[_0x10afa9(0x27b)](_0x55651d[_0x10afa9(0x1c9)]), _0x5e29ae += _0x55651d['matchName']['length'];
300
+ _0x47378b['add'](_0x15455e[_0x360e4e(_0x2913e5._0x4d8cc0)]), _0x3a6315[_0x360e4e(_0x2913e5._0x286d47)](_0x15455e[_0x360e4e(0x159)]), _0x4f4e56 += _0x15455e['matchName']['length'];
266
301
  }
267
- return _0x426925;
302
+ return _0x3a6315;
268
303
  }
269
304
  var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
270
- function anySignal(..._0x4df33) {
271
- const _0x117028 = {
272
- _0x356dd2: 0x247,
273
- _0x135dcf: 0x25c
274
- }, _0x553605 = _0xd0824a, _0x1eb710 = new AbortController();
275
- for (const _0xdfe464 of _0x4df33) {
276
- if (_0xdfe464[_0x553605(_0x117028._0x356dd2)])
277
- return _0x1eb710[_0x553605(0x2ed)](_0xdfe464[_0x553605(_0x117028._0x135dcf)]), _0x1eb710[_0x553605(0x2ef)];
278
- _0xdfe464[_0x553605(0x192)](_0x553605(0x2ed), () => _0x1eb710[_0x553605(0x2ed)](_0xdfe464['reason']), {
305
+ function anySignal(..._0x4a2234) {
306
+ const _0x4e33a3 = { _0x4b3ece: 0x156 }, _0x84c8e6 = _0x15d6d8, _0x19bf04 = new AbortController();
307
+ for (const _0x1ceaf2 of _0x4a2234) {
308
+ if (_0x1ceaf2['aborted'])
309
+ return _0x19bf04[_0x84c8e6(0x1b4)](_0x1ceaf2[_0x84c8e6(0x127)]), _0x19bf04['signal'];
310
+ _0x1ceaf2[_0x84c8e6(0x221)]('abort', () => _0x19bf04[_0x84c8e6(0x1b4)](_0x1ceaf2[_0x84c8e6(0x127)]), {
279
311
  'once': !![],
280
- 'signal': _0x1eb710[_0x553605(0x2ef)]
312
+ 'signal': _0x19bf04[_0x84c8e6(_0x4e33a3._0x4b3ece)]
281
313
  });
282
314
  }
283
- return _0x1eb710[_0x553605(0x2ef)];
315
+ return _0x19bf04[_0x84c8e6(0x156)];
284
316
  }
285
- function createInternalAgentClient(_0x576bbf) {
286
- const _0x12cebf = {
287
- _0x2d3d00: 0x1f3,
288
- _0x271a72: 0x255,
289
- _0x345d56: 0x256,
290
- _0xd3c958: 0x2a5
291
- }, _0x52838f = {
292
- _0x4779e2: 0x2d3,
293
- _0x1e204d: 0x221,
294
- _0x43795e: 0x22f,
295
- _0x1a814: 0x278,
296
- _0x1e6cbc: 0x1ef,
297
- _0xf9ed34: 0x2c9,
298
- _0x5d045d: 0x1aa,
299
- _0x1a8b92: 0x29e,
300
- _0x359547: 0x1a0,
301
- _0x8e252e: 0x207,
302
- _0x33281f: 0x1d1,
303
- _0x2f33db: 0x1a0,
304
- _0x145106: 0x275,
305
- _0xc6998b: 0x207,
306
- _0x2926bc: 0x2e2,
307
- _0x974904: 0x207,
308
- _0x1660bd: 0x25d,
309
- _0x3d7436: 0x1e1,
310
- _0x14cfee: 0x2aa,
311
- _0x58e471: 0x23d,
312
- _0x3dd8e8: 0x2c1,
313
- _0x52d73e: 0x19f,
314
- _0x3def6a: 0x27b,
315
- _0x19ab84: 0x236,
316
- _0x9f3b2b: 0x2d8,
317
- _0x4278be: 0x23c,
318
- _0x57eebb: 0x279,
319
- _0x328e53: 0x2f5,
320
- _0x57d919: 0x215
321
- }, _0x4ddc11 = {
322
- _0x241356: 0x280,
323
- _0x25890c: 0x1aa,
324
- _0x6bdd78: 0x217,
325
- _0xcbd734: 0x2dd
326
- }, _0x2fc491 = {
327
- _0x2757f2: 0x218,
328
- _0x199ee4: 0x1f0,
329
- _0x533b50: 0x1fa,
330
- _0x5854f8: 0x20e,
331
- _0x14b4b7: 0x21e,
332
- _0x24e500: 0x2e9
333
- }, _0x39eed1 = {
334
- _0x5bf48c: 0x23e,
335
- _0x348af9: 0x263,
336
- _0x1be013: 0x221,
337
- _0x146ee3: 0x217,
338
- _0x44c0cf: 0x1fa,
339
- _0x6316c3: 0x1fa,
340
- _0x4904ac: 0x1fa
341
- }, _0x97e405 = {
342
- _0x2d17a4: 0x295,
343
- _0x1201ae: 0x17d
344
- }, _0x499713 = { _0x1aaeff: 0x17d }, _0x3e0644 = {
345
- _0x42e218: 0x205,
346
- _0x563a46: 0x17d
347
- }, _0x2fdf6f = {
348
- _0x13ce92: 0x2f4,
349
- _0x5a0b75: 0x1f0,
350
- _0x14a2fc: 0x1c2
351
- }, _0x2cb30b = { _0x7fe1ea: 0x2a0 }, _0xbf21bf = {
352
- _0x26f5a9: 0x2a0,
353
- _0x2c9ced: 0x19c,
354
- _0x4dc470: 0x17d,
355
- _0x460278: 0x1fa
356
- }, _0x552af8 = { _0x7b716d: 0x1fa }, _0x5ea85d = {
357
- _0xec7c68: 0x233,
358
- _0x2c7493: 0x203
359
- }, _0xec068a = {
360
- _0xa1a20c: 0x236,
361
- _0x433b00: 0x1b5,
362
- _0x1d0c5f: 0x295,
363
- _0x18ce55: 0x221,
364
- _0x375ae9: 0x17d,
365
- _0x2b1763: 0x2a4,
366
- _0xd27a75: 0x2a4
367
- }, _0x536b01 = {
368
- _0x5ab9c3: 0x2f4,
369
- _0x5f0177: 0x26a,
370
- _0x2e865f: 0x2dd,
371
- _0x114b3f: 0x2f4,
372
- _0xdeb5e2: 0x1aa,
373
- _0x5bb9b6: 0x2bf,
374
- _0x113517: 0x1a3,
375
- _0x2afc7d: 0x280,
376
- _0x8a7377: 0x295,
377
- _0x24e224: 0x1fe,
378
- _0x5e51a5: 0x183,
379
- _0x382007: 0x1b8,
380
- _0x1dc32e: 0x210,
381
- _0x4f540f: 0x2bf
382
- }, _0x320bc9 = { _0x287142: 0x25d }, _0x349997 = {
383
- _0x5c27e4: 0x23a,
384
- _0x22bfc4: 0x1c9
385
- }, _0x18ddd9 = {
386
- _0x5d0527: 0x1e1,
387
- _0xa8ea5: 0x183,
388
- _0x3e9dbb: 0x183,
389
- _0x18b01d: 0x1a0,
390
- _0x3bc0a2: 0x1b9,
391
- _0x32c44f: 0x2c5,
392
- _0x478ad5: 0x2c2,
393
- _0x565943: 0x1b9,
394
- _0x576a9c: 0x2dd
395
- }, _0xc63c66 = {
396
- _0x204965: 0x183,
397
- _0x3c9a62: 0x2c5,
398
- _0x11d6fc: 0x2c5,
399
- _0x516f57: 0x183
400
- }, _0xccdd25 = {
401
- _0x2dfa86: 0x1ef,
402
- _0xe241e0: 0x2cf
403
- }, _0x114449 = {
404
- _0x4ac560: 0x295,
405
- _0xb8c9a0: 0x221,
406
- _0x5592c4: 0x17d,
407
- _0x173829: 0x186,
408
- _0x1b8b2f: 0x183,
409
- _0x491512: 0x2dd,
410
- _0x51d0ef: 0x1a0
411
- }, _0x419f20 = {
412
- _0x1614ba: 0x28c,
413
- _0x56062d: 0x17d,
414
- _0x47d35e: 0x186
415
- }, _0x2a1d87 = {
416
- _0x29587b: 0x18a,
417
- _0x4c242f: 0x265
418
- }, _0x483d5f = {
419
- _0x58931a: 0x2ef,
420
- _0x264086: 0x1f0
421
- }, _0x587836 = {
422
- _0x1a8ef0: 0x2ef,
423
- _0x50d353: 0x2ef,
424
- _0x375cc1: 0x1d8,
425
- _0xd7c5a8: 0x1f0
426
- }, _0x5c9b8e = {
427
- _0xf54458: 0x2c9,
428
- _0xd0b5ce: 0x1c3,
429
- _0x506885: 0x2a2,
430
- _0x12943b: 0x2ac,
431
- _0x4e6e4e: 0x22d,
432
- _0x14691: 0x1d1,
433
- _0x38dd2b: 0x297,
434
- _0x3a1ea0: 0x2f4
435
- }, _0x1ddf26 = {
436
- _0x2edffd: 0x257,
437
- _0x1bc8ce: 0x1fe,
438
- _0x5da0a6: 0x1f4,
439
- _0x5de3f1: 0x256,
440
- _0x52dce7: 0x250
441
- }, _0x5e594a = {
442
- _0x1ac6e2: 0x1c7,
443
- _0x53579a: 0x1b4,
444
- _0x2cf14d: 0x1e2,
445
- _0x51b9ed: 0x1f0,
446
- _0x48cece: 0x19a
447
- }, _0xc1769 = _0xd0824a, _0x4e1e5e = _0x576bbf[_0xc1769(0x298)] ?? fetch, _0x2c566b = _0x576bbf['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x1641bf = typeof _0x576bbf[_0xc1769(0x255)] === _0xc1769(_0x12cebf._0x2d3d00) && _0x576bbf[_0xc1769(_0x12cebf._0x271a72)] > 0x0 ? _0x576bbf['initialLastSeenSeq'] : 0x0, _0x256f2b = _0x576bbf['daemonLocalUrl']?.['trim']() || void 0x0, _0x46167e = _0x576bbf['sessionId']?.[_0xc1769(_0x12cebf._0x345d56)]() || void 0x0, _0x1b1d55 = _0x576bbf['workerModeEnabled'] === !![], _0x4e58e6 = _0x576bbf[_0xc1769(0x1a4)]?.[_0xc1769(0x256)]() || void 0x0, _0x3a277b = _0x576bbf['workerThreadTarget']?.[_0xc1769(0x256)]() || void 0x0, _0x2c8b82 = createHeaders(_0x576bbf[_0xc1769(_0x12cebf._0xd3c958)]), _0x3007ce = toHttpBaseUrl(_0x576bbf[_0xc1769(0x2e3)]);
448
- let _0x3634a9 = null;
449
- const _0x2f353d = new Map();
450
- let _0x36bf63 = _0x1641bf, _0x233519 = _0x1641bf;
451
- function _0x1b8769(_0x772bc2) {
452
- const _0x3a5e16 = _0xc1769, _0x3cffa6 = _0x772bc2['response']['headers'][_0x3a5e16(0x1d1)]('content-type') ?? 'unknown', _0x5247f0 = _0x772bc2[_0x3a5e16(_0x5e594a._0x1ac6e2)]['trim']()[_0x3a5e16(0x1c0)](/\s+/g, '\x20')[_0x3a5e16(_0x5e594a._0x53579a)](0x0, 0x78) || _0x3a5e16(0x213);
453
- return _0x3a5e16(_0x5e594a._0x2cf14d) + _0x772bc2['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x772bc2['response'][_0x3a5e16(_0x5e594a._0x51b9ed)] + ',\x20content-type=' + _0x3cffa6 + _0x3a5e16(0x2bc) + _0x5247f0 + _0x3a5e16(_0x5e594a._0x48cece);
317
+ function createInternalAgentClient(_0x13d36f) {
318
+ const _0x43e8f8 = {
319
+ _0x139ca8: 0x11e,
320
+ _0x537ee3: 0x269,
321
+ _0x118f56: 0x28d,
322
+ _0x3eb146: 0x1ba,
323
+ _0x532984: 0x20a,
324
+ _0x29017e: 0x17a
325
+ }, _0x3728a0 = {
326
+ _0x2e7a91: 0x149,
327
+ _0x16b3f4: 0x1f9,
328
+ _0xd9f26a: 0x1cf,
329
+ _0x5bfccf: 0x15b,
330
+ _0x3b5cdd: 0x1c8,
331
+ _0x48f231: 0x289,
332
+ _0x3c9109: 0x12d,
333
+ _0xb985d1: 0x12d,
334
+ _0x55fe5c: 0x190,
335
+ _0xb77e4d: 0x1a7,
336
+ _0x43bc7e: 0x163,
337
+ _0x331fd8: 0x208,
338
+ _0x17f0d7: 0x20f,
339
+ _0x1e18a8: 0x140,
340
+ _0x26e0c3: 0x28b,
341
+ _0x7fa418: 0x24b,
342
+ _0x4c9f7f: 0x18a,
343
+ _0x46d0f6: 0x18a,
344
+ _0x35f363: 0x12e,
345
+ _0x554284: 0x1e5,
346
+ _0x4f0a12: 0x130,
347
+ _0x44f2b7: 0x12d,
348
+ _0x487be4: 0x218,
349
+ _0x58237b: 0x245,
350
+ _0x15eaf0: 0x2a1,
351
+ _0x3ec5cf: 0x13c,
352
+ _0x42d982: 0x1ff,
353
+ _0x2cb224: 0x228,
354
+ _0x367c52: 0x12e,
355
+ _0x1a2d54: 0x25e,
356
+ _0x6e0d76: 0x1a7
357
+ }, _0x103a32 = {
358
+ _0x533010: 0x26b,
359
+ _0xc1267e: 0x1fd
360
+ }, _0x3ba4af = {
361
+ _0x288724: 0x25a,
362
+ _0x279eb3: 0x153,
363
+ _0x6b8881: 0x151,
364
+ _0x1d84b3: 0x1ea,
365
+ _0x3a4013: 0x141
366
+ }, _0x3ea8a0 = {
367
+ _0x5499db: 0x28b,
368
+ _0x45cdc7: 0x241,
369
+ _0x592796: 0x14b,
370
+ _0x502405: 0x1fe,
371
+ _0x35fedc: 0x1b6,
372
+ _0x545740: 0x199,
373
+ _0x254a57: 0x153
374
+ }, _0x3ffdc5 = {
375
+ _0x5771f2: 0x203,
376
+ _0x3fe330: 0x14b
377
+ }, _0x29cc52 = {
378
+ _0x4c7ac1: 0x1cf,
379
+ _0x5ad920: 0x16a
380
+ }, _0x2598d4 = { _0x482643: 0x199 }, _0x2337a0 = {
381
+ _0x1c7347: 0x242,
382
+ _0x5c8a09: 0x14b,
383
+ _0x693190: 0x199
384
+ }, _0x2c7e73 = { _0x3a1d80: 0x15b }, _0x13e5e5 = {
385
+ _0x5b047b: 0x26d,
386
+ _0x312946: 0x14b,
387
+ _0x3d0059: 0x153,
388
+ _0x206a25: 0x250,
389
+ _0x207b94: 0x27f
390
+ }, _0x28060a = {
391
+ _0x22aec3: 0x250,
392
+ _0x32a397: 0x14b,
393
+ _0x57e62f: 0x153
394
+ }, _0x3fb387 = {
395
+ _0x2390cf: 0x22d,
396
+ _0x15ede1: 0x153
397
+ }, _0x4cc4ed = {
398
+ _0x28f41d: 0x24e,
399
+ _0x2ab48a: 0x153
400
+ }, _0x3e364b = {
401
+ _0x2c5a00: 0x23f,
402
+ _0x43864d: 0x1cf,
403
+ _0x2c55fe: 0x15b,
404
+ _0x36776d: 0x28b,
405
+ _0x48a3fe: 0x24a
406
+ }, _0x1f8d88 = {
407
+ _0x3819e7: 0x214,
408
+ _0x1b89fa: 0x28b,
409
+ _0x55d8c1: 0x1fd,
410
+ _0x1a689c: 0x1fd,
411
+ _0x488bea: 0x1e5,
412
+ _0x391dee: 0x289,
413
+ _0x11873e: 0x26b,
414
+ _0x4de3c9: 0x1e5,
415
+ _0x83960d: 0x26b,
416
+ _0x2ba919: 0x1cf,
417
+ _0x256cce: 0x1d9,
418
+ _0x22f7b4: 0x153,
419
+ _0x398e5f: 0x208,
420
+ _0x2d235c: 0x1c8
421
+ }, _0x33b904 = { _0x5d384b: 0x159 }, _0x538919 = {
422
+ _0x34cd4a: 0x24b,
423
+ _0x1096b6: 0x18a
424
+ }, _0x3ae324 = {
425
+ _0x1ced37: 0x24b,
426
+ _0xe33fdc: 0x185,
427
+ _0x163088: 0x185,
428
+ _0x3fb75d: 0x18a,
429
+ _0x38a87c: 0x263,
430
+ _0x16cafa: 0x185
431
+ }, _0x2b9292 = {
432
+ _0x4f62f6: 0x14d,
433
+ _0x2d8c75: 0x20f,
434
+ _0x3feaa6: 0x171
435
+ }, _0x3367ee = { _0x24d387: 0x1c6 }, _0x5032ff = {
436
+ _0x25e293: 0x15b,
437
+ _0x114812: 0x1d1,
438
+ _0x44c811: 0x14b,
439
+ _0x312f1f: 0x1fe,
440
+ _0x89fa65: 0x199,
441
+ _0x3dbc01: 0x153,
442
+ _0x4a980a: 0x1fd,
443
+ _0xad8d80: 0x2a5,
444
+ _0xfc4e5f: 0x28b,
445
+ _0x3d662b: 0x153,
446
+ _0x1f1382: 0x24b
447
+ }, _0x52aba0 = {
448
+ _0x2ddeb1: 0x1a8,
449
+ _0x152833: 0x12a,
450
+ _0x107674: 0x27f
451
+ }, _0x84a6a9 = {
452
+ _0x16d9c2: 0x14b,
453
+ _0x3c425a: 0x279
454
+ }, _0x3d3b94 = {
455
+ _0x4d1d06: 0x156,
456
+ _0x27d405: 0x156,
457
+ _0x3fb042: 0x283
458
+ }, _0x1e3afb = {
459
+ _0x394742: 0x156,
460
+ _0xb0050a: 0x227,
461
+ _0x7c0fb5: 0x1c5
462
+ }, _0x1d94eb = {
463
+ _0x1c38a9: 0x140,
464
+ _0x4a728a: 0x269,
465
+ _0x442ffc: 0x161,
466
+ _0x1fb6ed: 0x275,
467
+ _0x12557c: 0x145,
468
+ _0x480223: 0x218
469
+ }, _0x2acac8 = {
470
+ _0x5ba471: 0x1ea,
471
+ _0x419384: 0x1e7,
472
+ _0x4a2051: 0x269
473
+ }, _0x5a799b = {
474
+ _0x5c2a27: 0x1af,
475
+ _0x566c30: 0x23b,
476
+ _0x4949e9: 0x22b,
477
+ _0x3a897e: 0x22a
478
+ }, _0x48cdc4 = _0x15d6d8, _0x489cf6 = _0x13d36f['fetchImpl'] ?? fetch, _0x5dad0a = _0x13d36f[_0x48cdc4(_0x43e8f8._0x139ca8)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x1caab5 = typeof _0x13d36f['initialLastSeenSeq'] === _0x48cdc4(0x2a4) && _0x13d36f[_0x48cdc4(0x262)] > 0x0 ? _0x13d36f['initialLastSeenSeq'] : 0x0, _0x5979b7 = _0x13d36f['daemonLocalUrl']?.['trim']() || void 0x0, _0x299cbf = _0x13d36f['sessionId']?.[_0x48cdc4(_0x43e8f8._0x537ee3)]() || void 0x0, _0x31c393 = _0x13d36f[_0x48cdc4(_0x43e8f8._0x118f56)] === !![], _0x50f71f = _0x13d36f[_0x48cdc4(_0x43e8f8._0x3eb146)]?.[_0x48cdc4(_0x43e8f8._0x537ee3)]() || void 0x0, _0x2255dd = _0x13d36f[_0x48cdc4(_0x43e8f8._0x532984)]?.[_0x48cdc4(0x269)]() || void 0x0, _0x260a25 = createHeaders(_0x13d36f[_0x48cdc4(_0x43e8f8._0x29017e)]), _0x558658 = toHttpBaseUrl(_0x13d36f['serverUrl']);
479
+ let _0x4627c1 = null;
480
+ const _0x4d25d3 = new Map();
481
+ let _0x16e3b1 = _0x1caab5, _0x27a6f4 = _0x1caab5;
482
+ function _0x3d2826(_0x211204) {
483
+ const _0x5bae67 = _0x48cdc4, _0x4edfae = _0x211204[_0x5bae67(0x152)][_0x5bae67(_0x5a799b._0x5c2a27)][_0x5bae67(0x218)](_0x5bae67(0x19b)) ?? _0x5bae67(0x16c), _0x4016af = _0x211204[_0x5bae67(_0x5a799b._0x566c30)][_0x5bae67(0x269)]()[_0x5bae67(0x27a)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x5bae67(0x1f4);
484
+ return _0x5bae67(_0x5a799b._0x4949e9) + _0x211204[_0x5bae67(0x169)] + '\x20返回了非\x20JSON\x20响应(status=' + _0x211204[_0x5bae67(0x152)][_0x5bae67(0x27f)] + _0x5bae67(0x204) + _0x4edfae + ',\x20preview=' + _0x4016af + _0x5bae67(_0x5a799b._0x3a897e);
454
485
  }
455
- async function _0xa8b046(_0x21246b, _0x2caece) {
456
- const _0x2da5de = _0xc1769, _0x3fd267 = Buffer[_0x2da5de(_0x1ddf26._0x2edffd)](await _0x2caece[_0x2da5de(0x2e9)]())[_0x2da5de(_0x1ddf26._0x1bc8ce)](_0x2da5de(_0x1ddf26._0x5da0a6));
457
- if (!_0x3fd267[_0x2da5de(_0x1ddf26._0x5de3f1)]())
486
+ async function _0x3d15cc(_0x2cde0d, _0x4cf454) {
487
+ const _0x5f1c22 = _0x48cdc4, _0x19fff2 = Buffer[_0x5f1c22(_0x2acac8._0x5ba471)](await _0x4cf454['arrayBuffer']())[_0x5f1c22(0x1f9)](_0x5f1c22(_0x2acac8._0x419384));
488
+ if (!_0x19fff2[_0x5f1c22(_0x2acac8._0x4a2051)]())
458
489
  return {};
459
490
  try {
460
- return JSON[_0x2da5de(_0x1ddf26._0x52dce7)](_0x3fd267);
491
+ return JSON[_0x5f1c22(0x25f)](_0x19fff2);
461
492
  } catch {
462
- throw new Error(_0x1b8769({
463
- 'bodyText': _0x3fd267,
464
- 'requestUrl': _0x21246b,
465
- 'response': _0x2caece
493
+ throw new Error(_0x3d2826({
494
+ 'bodyText': _0x19fff2,
495
+ 'requestUrl': _0x2cde0d,
496
+ 'response': _0x4cf454
466
497
  }));
467
498
  }
468
499
  }
469
- function _0x384454(_0x42f4f5, _0xaf2ad2) {
470
- const _0x3b3ca5 = _0xc1769, _0x12d9ee = typeof _0xaf2ad2[_0x3b3ca5(0x1c3)] === _0x3b3ca5(_0x5c9b8e._0xf54458) ? _0xaf2ad2[_0x3b3ca5(_0x5c9b8e._0xd0b5ce)]['trim']() : '';
471
- if (_0x12d9ee)
472
- return _0x12d9ee;
473
- const _0x5cbb33 = Date[_0x3b3ca5(0x29b)]();
474
- for (const [_0x45f1de, _0x250f98] of _0x2f353d) {
475
- _0x250f98[_0x3b3ca5(0x2c4)] <= _0x5cbb33 && _0x2f353d[_0x3b3ca5(_0x5c9b8e._0x506885)](_0x45f1de);
500
+ function _0x12772a(_0x47b996, _0x4e58b2) {
501
+ const _0x13b74c = _0x48cdc4, _0x447aee = typeof _0x4e58b2[_0x13b74c(0x286)] === _0x13b74c(_0x1d94eb._0x1c38a9) ? _0x4e58b2[_0x13b74c(0x286)][_0x13b74c(_0x1d94eb._0x4a728a)]() : '';
502
+ if (_0x447aee)
503
+ return _0x447aee;
504
+ const _0x5c286e = Date[_0x13b74c(0x18c)]();
505
+ for (const [_0x3f3211, _0x195dd8] of _0x4d25d3) {
506
+ _0x195dd8[_0x13b74c(0x1ef)] <= _0x5c286e && _0x4d25d3['delete'](_0x3f3211);
476
507
  }
477
- const _0x35cf0a = {
478
- ..._0xaf2ad2,
508
+ const _0x3b54d1 = {
509
+ ..._0x4e58b2,
479
510
  'idempotency_key': void 0x0
480
- }, _0x56a73c = createHash(_0x3b3ca5(0x17e))[_0x3b3ca5(_0x5c9b8e._0x12943b)](_0x42f4f5 + ':' + stableStringify(_0x35cf0a))[_0x3b3ca5(0x1c1)](_0x3b3ca5(_0x5c9b8e._0x4e6e4e)), _0x50e6b8 = _0x42f4f5 + ':' + _0x56a73c, _0x13bff8 = _0x2f353d[_0x3b3ca5(_0x5c9b8e._0x14691)](_0x50e6b8);
481
- if (_0x13bff8)
482
- return _0x13bff8['value'];
483
- const _0x25fbae = _0x3b3ca5(_0x5c9b8e._0x38dd2b) + _0x42f4f5 + ':' + randomUUID();
484
- return _0x2f353d[_0x3b3ca5(_0x5c9b8e._0x3a1ea0)](_0x50e6b8, {
485
- 'expiresAt': _0x5cbb33 + 0x5 * 0x3c * 0x3e8,
486
- 'value': _0x25fbae
487
- }), _0x25fbae;
511
+ }, _0xb161a7 = createHash(_0x13b74c(_0x1d94eb._0x442ffc))[_0x13b74c(_0x1d94eb._0x1fb6ed)](_0x47b996 + ':' + stableStringify(_0x3b54d1))['digest'](_0x13b74c(_0x1d94eb._0x12557c)), _0x11ee55 = _0x47b996 + ':' + _0xb161a7, _0x4e5fa2 = _0x4d25d3[_0x13b74c(_0x1d94eb._0x480223)](_0x11ee55);
512
+ if (_0x4e5fa2)
513
+ return _0x4e5fa2[_0x13b74c(0x1ec)];
514
+ const _0x35216d = _0x13b74c(0x26e) + _0x47b996 + ':' + randomUUID();
515
+ return _0x4d25d3[_0x13b74c(0x1e5)](_0x11ee55, {
516
+ 'expiresAt': _0x5c286e + 0x5 * 0x3c * 0x3e8,
517
+ 'value': _0x35216d
518
+ }), _0x35216d;
488
519
  }
489
- async function _0x373ec4(_0x2be8f0, _0xfa9f0) {
490
- const _0x3e0535 = _0xc1769, _0x22c251 = new AbortController(), _0xb53723 = setTimeout(() => _0x22c251[_0x3e0535(0x2ed)](), _0x2c566b), _0xacff8f = _0xfa9f0?.[_0x3e0535(_0x587836._0x1a8ef0)] ? anySignal(_0xfa9f0[_0x3e0535(_0x587836._0x50d353)], _0x22c251[_0x3e0535(_0x587836._0x1a8ef0)]) : _0x22c251[_0x3e0535(_0x587836._0x1a8ef0)], _0x3c8efd = '' + _0x3007ce + _0x2be8f0;
520
+ async function _0x1d8040(_0xea6379, _0x2d9e45) {
521
+ const _0x35b8f3 = _0x48cdc4, _0x3c6be1 = new AbortController(), _0x15bb94 = setTimeout(() => _0x3c6be1['abort'](), _0x5dad0a), _0x4988a4 = _0x2d9e45?.[_0x35b8f3(_0x1e3afb._0x394742)] ? anySignal(_0x2d9e45['signal'], _0x3c6be1['signal']) : _0x3c6be1[_0x35b8f3(0x156)], _0x21f228 = '' + _0x558658 + _0xea6379;
491
522
  try {
492
- const _0x30ae53 = await _0x4e1e5e(_0x3c8efd, {
493
- ..._0xfa9f0,
494
- 'signal': _0xacff8f
495
- }), _0x1363f5 = await _0xa8b046(_0x3c8efd, _0x30ae53);
496
- if (!_0x30ae53['ok'] || _0x1363f5[_0x3e0535(0x254)] === ![])
497
- throw new Error(asErrorMessage(_0x1363f5[_0x3e0535(_0x587836._0x375cc1)], 'HTTP\x20' + _0x30ae53[_0x3e0535(_0x587836._0xd7c5a8)]));
498
- return _0x1363f5;
523
+ const _0x26d60a = await _0x489cf6(_0x21f228, {
524
+ ..._0x2d9e45,
525
+ 'signal': _0x4988a4
526
+ }), _0x2d7c08 = await _0x3d15cc(_0x21f228, _0x26d60a);
527
+ if (!_0x26d60a['ok'] || _0x2d7c08[_0x35b8f3(_0x1e3afb._0xb0050a)] === ![])
528
+ throw new Error(asErrorMessage(_0x2d7c08[_0x35b8f3(_0x1e3afb._0x7c0fb5)], 'HTTP\x20' + _0x26d60a['status']));
529
+ return _0x2d7c08;
499
530
  } finally {
500
- clearTimeout(_0xb53723);
531
+ clearTimeout(_0x15bb94);
501
532
  }
502
533
  }
503
- async function _0xbd1ee8(_0x4f84cf, _0x164ca2) {
504
- const _0x157984 = _0xc1769, _0x483c62 = new AbortController(), _0xc38bfe = setTimeout(() => _0x483c62['abort'](), _0x2c566b), _0x265ac0 = _0x164ca2?.[_0x157984(0x2ef)] ? anySignal(_0x164ca2['signal'], _0x483c62[_0x157984(0x2ef)]) : _0x483c62[_0x157984(_0x483d5f._0x58931a)], _0x53cb22 = '' + _0x3007ce + _0x4f84cf;
534
+ async function _0x270d3b(_0x659414, _0x570fd5) {
535
+ const _0x359047 = _0x48cdc4, _0x32a2d3 = new AbortController(), _0x3309c3 = setTimeout(() => _0x32a2d3['abort'](), _0x5dad0a), _0x1ccb99 = _0x570fd5?.[_0x359047(_0x3d3b94._0x4d1d06)] ? anySignal(_0x570fd5[_0x359047(_0x3d3b94._0x27d405)], _0x32a2d3[_0x359047(0x156)]) : _0x32a2d3['signal'], _0x338c99 = '' + _0x558658 + _0x659414;
505
536
  try {
506
- const _0x43d0fc = await _0x4e1e5e(_0x53cb22, {
507
- ..._0x164ca2,
508
- 'signal': _0x265ac0
509
- }), _0x18f4ac = await _0xa8b046(_0x53cb22, _0x43d0fc);
510
- if (!_0x43d0fc['ok'])
511
- throw new Error(asErrorMessage(_0x18f4ac['error'], 'HTTP\x20' + _0x43d0fc[_0x157984(_0x483d5f._0x264086)]));
512
- return _0x18f4ac;
537
+ const _0x547631 = await _0x489cf6(_0x338c99, {
538
+ ..._0x570fd5,
539
+ 'signal': _0x1ccb99
540
+ }), _0x17b816 = await _0x3d15cc(_0x338c99, _0x547631);
541
+ if (!_0x547631['ok'])
542
+ throw new Error(asErrorMessage(_0x17b816[_0x359047(0x1c5)], _0x359047(_0x3d3b94._0x3fb042) + _0x547631['status']));
543
+ return _0x17b816;
513
544
  } finally {
514
- clearTimeout(_0xc38bfe);
545
+ clearTimeout(_0x3309c3);
515
546
  }
516
547
  }
517
- async function _0x145107(_0x4cd66e) {
518
- const _0x5d0d5c = _0xc1769;
519
- if (!_0x46167e || _0x4cd66e <= _0x233519)
548
+ async function _0x3e053b(_0x1e8a46) {
549
+ const _0x5ac911 = _0x48cdc4;
550
+ if (!_0x299cbf || _0x1e8a46 <= _0x27a6f4)
520
551
  return;
521
- await _0x373ec4(_0x5d0d5c(_0x2a1d87._0x29587b) + encodeURIComponent(_0x46167e) + '/context-metrics', {
522
- 'body': JSON['stringify']({ 'lastSeenSeq': _0x4cd66e }),
523
- 'headers': _0x2c8b82,
524
- 'method': _0x5d0d5c(_0x2a1d87._0x4c242f)
525
- }), _0x233519 = _0x4cd66e;
552
+ await _0x1d8040(_0x5ac911(0x143) + encodeURIComponent(_0x299cbf) + _0x5ac911(0x123), {
553
+ 'body': JSON[_0x5ac911(_0x84a6a9._0x16d9c2)]({ 'lastSeenSeq': _0x1e8a46 }),
554
+ 'headers': _0x260a25,
555
+ 'method': _0x5ac911(_0x84a6a9._0x3c425a)
556
+ }), _0x27a6f4 = _0x1e8a46;
526
557
  }
527
- async function _0x3acd1c(_0xeb24a2) {
528
- const _0x2e84eb = _0xc1769;
529
- if (!_0x256f2b || !_0x4e58e6 || _0xeb24a2 <= _0x233519)
558
+ async function _0x1b8e6a(_0x835acd) {
559
+ const _0x583bfa = _0x48cdc4;
560
+ if (!_0x5979b7 || !_0x50f71f || _0x835acd <= _0x27a6f4)
530
561
  return;
531
- const _0x55cee1 = await _0x4e1e5e(_0x256f2b + _0x2e84eb(_0x419f20._0x1614ba), {
532
- 'body': JSON[_0x2e84eb(_0x419f20._0x56062d)]({
533
- 'last_seen_seq': _0xeb24a2,
534
- 'worker_session_id': _0x4e58e6
562
+ const _0x58302d = await _0x489cf6(_0x5979b7 + _0x583bfa(_0x52aba0._0x2ddeb1), {
563
+ 'body': JSON[_0x583bfa(0x14b)]({
564
+ 'last_seen_seq': _0x835acd,
565
+ 'worker_session_id': _0x50f71f
535
566
  }),
536
- 'headers': { 'Content-Type': _0x2e84eb(0x2ee) },
537
- 'method': _0x2e84eb(_0x419f20._0x47d35e)
567
+ 'headers': { 'Content-Type': _0x583bfa(_0x52aba0._0x152833) },
568
+ 'method': 'POST'
538
569
  });
539
- if (!_0x55cee1['ok'])
540
- throw new Error('HTTP\x20' + _0x55cee1['status']);
541
- _0x233519 = _0xeb24a2;
570
+ if (!_0x58302d['ok'])
571
+ throw new Error('HTTP\x20' + _0x58302d[_0x583bfa(_0x52aba0._0x107674)]);
572
+ _0x27a6f4 = _0x835acd;
542
573
  }
543
- async function _0x496959(_0x30d05f) {
544
- const _0x14f146 = _0xc1769, _0x5e5f38 = parseTarget(_0x30d05f), _0x11b2f3 = await _0x373ec4(_0x14f146(_0x114449._0x4ac560) + _0x576bbf[_0x14f146(_0x114449._0xb8c9a0)] + _0x14f146(0x2d5), {
545
- 'body': JSON[_0x14f146(_0x114449._0x5592c4)]({ 'target': _0x5e5f38[_0x14f146(0x217)] }),
546
- 'headers': _0x2c8b82,
547
- 'method': _0x14f146(_0x114449._0x173829)
574
+ async function _0x459e2f(_0x307d22) {
575
+ const _0x2093d1 = _0x48cdc4, _0x12b5f4 = parseTarget(_0x307d22), _0x8aea97 = await _0x1d8040(_0x2093d1(0x1cf) + _0x13d36f[_0x2093d1(_0x5032ff._0x25e293)] + _0x2093d1(_0x5032ff._0x114812), {
576
+ 'body': JSON[_0x2093d1(_0x5032ff._0x44c811)]({ 'target': _0x12b5f4[_0x2093d1(_0x5032ff._0x312f1f)] }),
577
+ 'headers': _0x260a25,
578
+ 'method': _0x2093d1(_0x5032ff._0x89fa65)
548
579
  });
549
580
  return {
550
- 'channelId': _0x11b2f3['data']?.[_0x14f146(0x1aa)] ?? '',
551
- 'target': _0x5e5f38[_0x14f146(_0x114449._0x1b8b2f)],
552
- 'task': _0x11b2f3[_0x14f146(0x1fa)]?.[_0x14f146(0x1da)],
553
- 'threadId': _0x11b2f3[_0x14f146(0x1fa)]?.[_0x14f146(_0x114449._0x491512)],
554
- 'threadNumber': _0x11b2f3[_0x14f146(0x1fa)]?.[_0x14f146(_0x114449._0x51d0ef)]
581
+ 'channelId': _0x8aea97[_0x2093d1(_0x5032ff._0x3dbc01)]?.[_0x2093d1(_0x5032ff._0x4a980a)] ?? '',
582
+ 'target': _0x12b5f4[_0x2093d1(0x185)],
583
+ 'task': _0x8aea97[_0x2093d1(_0x5032ff._0x3dbc01)]?.[_0x2093d1(_0x5032ff._0xad8d80)],
584
+ 'threadId': _0x8aea97[_0x2093d1(_0x5032ff._0x3dbc01)]?.[_0x2093d1(_0x5032ff._0xfc4e5f)],
585
+ 'threadNumber': _0x8aea97[_0x2093d1(_0x5032ff._0x3d662b)]?.[_0x2093d1(_0x5032ff._0x1f1382)]
555
586
  };
556
587
  }
557
- async function _0x2b8765(_0x49afda = {}) {
558
- const _0x5c8ce0 = {
559
- _0x3279dd: 0x2e1,
560
- _0x975dce: 0x2b8,
561
- _0x14d8f3: 0x1fa,
562
- _0x27d407: 0x25d
563
- }, _0x2a34f3 = _0xc1769;
564
- if (!_0x49afda[_0x2a34f3(0x2da)] && _0x3634a9)
565
- return _0x3634a9;
566
- return _0x3634a9 = (async () => {
567
- const _0x411ab9 = _0x2a34f3, _0x5a54f8 = await _0x373ec4(_0x411ab9(0x295) + _0x576bbf[_0x411ab9(0x221)] + _0x411ab9(_0x5c8ce0._0x3279dd), {
568
- 'headers': _0x2c8b82,
569
- 'method': _0x411ab9(0x203)
570
- }), _0x31de87 = _0x5a54f8[_0x411ab9(0x1fa)]?.[_0x411ab9(0x24c)] ?? [], _0x3b04c1 = _0x31de87['filter'](_0x27e591 => _0x27e591[_0x411ab9(0x23a)]?.['type'] === 'agent')['map'](_0x228ce5 => ({
571
- 'id': _0x3aa6a9(_0x228ce5),
572
- 'name': _0x17154e(_0x228ce5)
573
- }))['filter'](_0x57d5b2 => _0x57d5b2['id']), _0x31e08c = _0x31de87[_0x411ab9(_0x5c8ce0._0x975dce)](_0x2739c2 => _0x2739c2['participant']?.[_0x411ab9(0x241)] !== _0x411ab9(0x1f8))[_0x411ab9(0x1ad)](_0x2460ac => ({
574
- 'id': _0x3aa6a9(_0x2460ac),
575
- 'name': _0x17154e(_0x2460ac)
576
- }))[_0x411ab9(_0x5c8ce0._0x975dce)](_0x5e86b1 => _0x5e86b1['id']), _0x31af1e = _0x5a54f8['data']?.[_0x411ab9(0x2dc)]['id'] ?? '';
588
+ async function _0x1c8519(_0x1df72a = {}) {
589
+ const _0x36ae33 = {
590
+ _0xf9cd50: 0x1cf,
591
+ _0x177c4f: 0x15b,
592
+ _0x294f77: 0x17c,
593
+ _0x4e8218: 0x153,
594
+ _0x1ad01f: 0x1a7,
595
+ _0x26413e: 0x208,
596
+ _0xb61623: 0x1a7,
597
+ _0x583af6: 0x224,
598
+ _0xab712e: 0x163
599
+ }, _0x13b2a0 = _0x48cdc4;
600
+ if (!_0x1df72a[_0x13b2a0(_0x3367ee._0x24d387)] && _0x4627c1)
601
+ return _0x4627c1;
602
+ return _0x4627c1 = (async () => {
603
+ const _0x53f05d = _0x13b2a0, _0x5085f0 = await _0x1d8040(_0x53f05d(_0x36ae33._0xf9cd50) + _0x13d36f[_0x53f05d(_0x36ae33._0x177c4f)] + _0x53f05d(_0x36ae33._0x294f77), {
604
+ 'headers': _0x260a25,
605
+ 'method': 'GET'
606
+ }), _0x2ccd51 = _0x5085f0[_0x53f05d(_0x36ae33._0x4e8218)]?.[_0x53f05d(0x206)] ?? [], _0x436d9e = _0x2ccd51[_0x53f05d(_0x36ae33._0x1ad01f)](_0x14164f => _0x14164f[_0x53f05d(0x29e)]?.['type'] === 'agent')['map'](_0x1d7c2a => ({
607
+ 'id': _0x3974b5(_0x1d7c2a),
608
+ 'name': _0xe4f041(_0x1d7c2a)
609
+ }))['filter'](_0x58ed01 => _0x58ed01['id']), _0x1e16c7 = _0x2ccd51[_0x53f05d(_0x36ae33._0x1ad01f)](_0x50aced => _0x50aced[_0x53f05d(0x29e)]?.['type'] !== _0x53f05d(0x171))[_0x53f05d(_0x36ae33._0x26413e)](_0x4e28f9 => ({
610
+ 'id': _0x3974b5(_0x4e28f9),
611
+ 'name': _0xe4f041(_0x4e28f9)
612
+ }))[_0x53f05d(_0x36ae33._0xb61623)](_0x24c410 => _0x24c410['id']), _0x286c67 = _0x5085f0['data']?.[_0x53f05d(_0x36ae33._0x583af6)]['id'] ?? '';
577
613
  return {
578
- 'agents': _0x3b04c1,
579
- 'channels': _0x5a54f8[_0x411ab9(_0x5c8ce0._0x14d8f3)]?.[_0x411ab9(0x188)] ?? [],
580
- 'humans': _0x31e08c,
581
- 'serverId': _0x31af1e,
582
- 'serverName': _0x5a54f8['data']?.[_0x411ab9(0x2dc)][_0x411ab9(_0x5c8ce0._0x27d407)] ?? _0x31af1e
614
+ 'agents': _0x436d9e,
615
+ 'channels': _0x5085f0[_0x53f05d(0x153)]?.[_0x53f05d(_0x36ae33._0xab712e)] ?? [],
616
+ 'humans': _0x1e16c7,
617
+ 'serverId': _0x286c67,
618
+ 'serverName': _0x5085f0['data']?.[_0x53f05d(0x224)]['name'] ?? _0x286c67
583
619
  };
584
- })()[_0x2a34f3(0x1e8)](_0xa52926 => {
585
- _0x3634a9 = null;
586
- throw _0xa52926;
587
- }), _0x3634a9;
620
+ })()['catch'](_0x4e7aa3 => {
621
+ _0x4627c1 = null;
622
+ throw _0x4e7aa3;
623
+ }), _0x4627c1;
588
624
  }
589
- function _0x59948e(_0x224b40, _0x2f8d5e) {
590
- const _0x5273e2 = _0xc1769;
591
- return _0x2f8d5e[_0x5273e2(0x268)][_0x5273e2(_0xccdd25._0x2dfa86)](_0x3713dc => _0x3713dc['id'] === _0x224b40 || _0x3713dc[_0x5273e2(0x25d)] === _0x224b40) ? 'agent' : _0x5273e2(_0xccdd25._0xe241e0);
625
+ function _0x2db2d6(_0x1589d2, _0x248ac8) {
626
+ const _0x1641f4 = _0x48cdc4;
627
+ return _0x248ac8[_0x1641f4(_0x2b9292._0x4f62f6)][_0x1641f4(_0x2b9292._0x2d8c75)](_0x40b1b4 => _0x40b1b4['id'] === _0x1589d2 || _0x40b1b4[_0x1641f4(0x130)] === _0x1589d2) ? _0x1641f4(_0x2b9292._0x3feaa6) : _0x1641f4(0x294);
592
628
  }
593
- function _0x3ec05a(_0xf374f6) {
594
- const _0x511ae1 = _0xc1769;
595
- if (_0xf374f6['threadNumber'] != null)
596
- return _0xf374f6[_0x511ae1(_0xc63c66._0x204965)] + ':t' + _0xf374f6['threadNumber'];
597
- if (_0xf374f6[_0x511ae1(_0xc63c66._0x3c9a62)])
598
- return _0xf374f6[_0x511ae1(_0xc63c66._0x204965)] + ':' + _0xf374f6[_0x511ae1(_0xc63c66._0x11d6fc)];
599
- if (_0xf374f6[_0x511ae1(0x2dd)])
600
- return _0xf374f6[_0x511ae1(_0xc63c66._0x516f57)] + ':' + _0xf374f6['threadId'][_0x511ae1(0x1b4)](0x0, 0x8);
601
- return _0xf374f6[_0x511ae1(0x183)];
629
+ function _0x442be0(_0xdbf355) {
630
+ const _0x3ace90 = _0x48cdc4;
631
+ if (_0xdbf355[_0x3ace90(_0x3ae324._0x1ced37)] != null)
632
+ return _0xdbf355[_0x3ace90(_0x3ae324._0xe33fdc)] + ':t' + _0xdbf355[_0x3ace90(_0x3ae324._0x1ced37)];
633
+ if (_0xdbf355['rootMessageId'])
634
+ return _0xdbf355[_0x3ace90(_0x3ae324._0x163088)] + ':' + _0xdbf355[_0x3ace90(_0x3ae324._0x3fb75d)];
635
+ if (_0xdbf355[_0x3ace90(0x28b)])
636
+ return _0xdbf355['channelTarget'] + ':' + _0xdbf355[_0x3ace90(0x28b)][_0x3ace90(_0x3ae324._0x38a87c)](0x0, 0x8);
637
+ return _0xdbf355[_0x3ace90(_0x3ae324._0x16cafa)];
602
638
  }
603
- function _0x113a01(_0x54e75d, _0x174c92) {
604
- const _0x5db927 = _0xc1769;
639
+ function _0x59142d(_0x1de55c, _0x564973) {
640
+ const _0x574d85 = _0x48cdc4;
605
641
  try {
606
- const _0x4aea3e = parseTarget(_0x54e75d);
607
- if (_0x4aea3e[_0x5db927(_0x18ddd9._0x5d0527)] !== _0x5db927(0x1b7) || _0x4aea3e[_0x5db927(_0x18ddd9._0xa8ea5)] !== _0x174c92[_0x5db927(_0x18ddd9._0x3e9dbb)])
642
+ const _0x3475a5 = parseTarget(_0x1de55c);
643
+ if (_0x3475a5['kind'] !== _0x574d85(0x148) || _0x3475a5['channelTarget'] !== _0x564973[_0x574d85(0x185)])
608
644
  return ![];
609
- if (_0x174c92[_0x5db927(_0x18ddd9._0x18b01d)] != null && _0x4aea3e[_0x5db927(_0x18ddd9._0x3bc0a2)] === 't' + _0x174c92[_0x5db927(_0x18ddd9._0x18b01d)])
645
+ if (_0x564973[_0x574d85(_0x538919._0x34cd4a)] != null && _0x3475a5[_0x574d85(0x13b)] === 't' + _0x564973['threadNumber'])
610
646
  return !![];
611
- if (_0x174c92[_0x5db927(_0x18ddd9._0x32c44f)])
612
- return _0x4aea3e[_0x5db927(0x1b9)] === _0x174c92[_0x5db927(0x2c5)] || _0x174c92['rootMessageId'][_0x5db927(_0x18ddd9._0x478ad5)](_0x4aea3e[_0x5db927(_0x18ddd9._0x565943)]);
613
- if (_0x174c92['threadId'])
614
- return _0x4aea3e[_0x5db927(_0x18ddd9._0x565943)] === _0x174c92[_0x5db927(0x2dd)] || _0x174c92[_0x5db927(_0x18ddd9._0x576a9c)][_0x5db927(0x2c2)](_0x4aea3e[_0x5db927(_0x18ddd9._0x565943)]);
647
+ if (_0x564973['rootMessageId'])
648
+ return _0x3475a5[_0x574d85(0x13b)] === _0x564973[_0x574d85(_0x538919._0x1096b6)] || _0x564973[_0x574d85(_0x538919._0x1096b6)]['startsWith'](_0x3475a5[_0x574d85(0x13b)]);
649
+ if (_0x564973[_0x574d85(0x28b)])
650
+ return _0x3475a5[_0x574d85(0x13b)] === _0x564973['threadId'] || _0x564973['threadId'][_0x574d85(0x215)](_0x3475a5[_0x574d85(0x13b)]);
615
651
  return ![];
616
652
  } catch {
617
653
  return ![];
618
654
  }
619
655
  }
620
- function _0x3aa6a9(_0x3940ed) {
621
- const _0x388b7c = _0xc1769;
622
- return _0x3940ed[_0x388b7c(0x2f7)]?.['participantId'] ?? _0x3940ed[_0x388b7c(_0x349997._0x5c27e4)]?.['id'] ?? _0x3940ed[_0x388b7c(_0x349997._0x22bfc4)] ?? '';
656
+ function _0x3974b5(_0x508374) {
657
+ const _0x3d0d5d = _0x48cdc4;
658
+ return _0x508374['member']?.['participantId'] ?? _0x508374['participant']?.['id'] ?? _0x508374[_0x3d0d5d(_0x33b904._0x5d384b)] ?? '';
623
659
  }
624
- function _0x17154e(_0x2d1f67) {
625
- const _0x50ee09 = _0xc1769;
626
- return _0x2d1f67[_0x50ee09(0x23a)]?.[_0x50ee09(_0x320bc9._0x287142)] ?? _0x3aa6a9(_0x2d1f67);
660
+ function _0xe4f041(_0x4390af) {
661
+ const _0x32e3e7 = _0x48cdc4;
662
+ return _0x4390af[_0x32e3e7(0x29e)]?.['name'] ?? _0x3974b5(_0x4390af);
627
663
  }
628
- async function _0x294331(_0x4314ce) {
629
- const _0x14d93b = _0xc1769, _0xdef528 = Math['min'](_0x4314ce['limit'] ?? 0x32, 0x64), _0x1adf71 = await _0x2b8765(), _0x531c5c = new URLSearchParams();
630
- _0x531c5c[_0x14d93b(_0x536b01._0x5ab9c3)](_0x14d93b(_0x536b01._0x5f0177), String(_0xdef528));
631
- _0x4314ce['threadId'] ? (_0x531c5c[_0x14d93b(0x2f4)](_0x14d93b(_0x536b01._0x2e865f), _0x4314ce[_0x14d93b(0x2dd)]), _0x531c5c[_0x14d93b(_0x536b01._0x114b3f)]('channelId', _0x4314ce[_0x14d93b(0x1aa)])) : _0x531c5c[_0x14d93b(_0x536b01._0x5ab9c3)](_0x14d93b(_0x536b01._0xdeb5e2), _0x4314ce[_0x14d93b(_0x536b01._0xdeb5e2)]);
632
- _0x4314ce[_0x14d93b(0x1a3)] && _0x531c5c[_0x14d93b(_0x536b01._0x5ab9c3)](_0x14d93b(_0x536b01._0x5bb9b6), String(_0x4314ce[_0x14d93b(_0x536b01._0x113517)]));
633
- _0x4314ce[_0x14d93b(0x280)] !== void 0x0 && _0x531c5c['set'](_0x14d93b(_0x536b01._0x2afc7d), String(_0x4314ce['after']));
634
- const _0x15c7ba = await _0x373ec4(_0x14d93b(_0x536b01._0x8a7377) + _0x576bbf[_0x14d93b(0x221)] + _0x14d93b(0x284) + _0x531c5c[_0x14d93b(_0x536b01._0x24e224)](), {
635
- 'headers': _0x2c8b82,
636
- 'method': 'GET'
637
- }), _0x221dec = (_0x15c7ba[_0x14d93b(0x1fa)] ?? [])['map'](_0x1d0877 => ({
638
- 'attachments': (_0x1d0877['attachments'] ?? [])[_0x14d93b(0x1ad)](_0x4a6bd3 => ({
639
- 'filename': _0x4a6bd3[_0x14d93b(0x235)] ?? _0x4a6bd3['id'],
640
- 'id': _0x4a6bd3['id']
664
+ async function _0x5a8c6e(_0x3beeb5) {
665
+ const _0x2a78dd = _0x48cdc4, _0x26fbcb = Math[_0x2a78dd(0x1cd)](_0x3beeb5[_0x2a78dd(0x214)] ?? 0x32, 0x64), _0x4cccfd = await _0x1c8519(), _0x1a55d6 = new URLSearchParams();
666
+ _0x1a55d6[_0x2a78dd(0x1e5)](_0x2a78dd(_0x1f8d88._0x3819e7), String(_0x26fbcb));
667
+ _0x3beeb5[_0x2a78dd(0x28b)] ? (_0x1a55d6[_0x2a78dd(0x1e5)](_0x2a78dd(_0x1f8d88._0x1b89fa), _0x3beeb5[_0x2a78dd(0x28b)]), _0x1a55d6[_0x2a78dd(0x1e5)](_0x2a78dd(_0x1f8d88._0x55d8c1), _0x3beeb5[_0x2a78dd(_0x1f8d88._0x1a689c)])) : _0x1a55d6[_0x2a78dd(_0x1f8d88._0x488bea)]('channelId', _0x3beeb5[_0x2a78dd(_0x1f8d88._0x55d8c1)]);
668
+ _0x3beeb5['before'] && _0x1a55d6['set'](_0x2a78dd(_0x1f8d88._0x391dee), String(_0x3beeb5['before']));
669
+ _0x3beeb5[_0x2a78dd(_0x1f8d88._0x11873e)] !== void 0x0 && _0x1a55d6[_0x2a78dd(_0x1f8d88._0x4de3c9)](_0x2a78dd(_0x1f8d88._0x83960d), String(_0x3beeb5[_0x2a78dd(0x26b)]));
670
+ const _0x131704 = await _0x1d8040(_0x2a78dd(_0x1f8d88._0x2ba919) + _0x13d36f['agentId'] + _0x2a78dd(_0x1f8d88._0x256cce) + _0x1a55d6[_0x2a78dd(0x1f9)](), {
671
+ 'headers': _0x260a25,
672
+ 'method': _0x2a78dd(0x24e)
673
+ }), _0xb9599d = (_0x131704[_0x2a78dd(_0x1f8d88._0x22f7b4)] ?? [])[_0x2a78dd(_0x1f8d88._0x398e5f)](_0x28fd52 => ({
674
+ 'attachments': (_0x28fd52['attachments'] ?? [])[_0x2a78dd(0x208)](_0x4a9bc2 => ({
675
+ 'filename': _0x4a9bc2[_0x2a78dd(0x1b6)] ?? _0x4a9bc2['id'],
676
+ 'id': _0x4a9bc2['id']
641
677
  })),
642
- 'content': _0x1d0877[_0x14d93b(0x2d1)] ?? '',
643
- 'createdAt': _0x1d0877['createdAt'],
644
- 'messageId': _0x1d0877['id'],
645
- 'senderName': _0x1d0877[_0x14d93b(0x2f5)],
646
- 'senderType': _0x59948e(_0x1d0877[_0x14d93b(0x2f5)], _0x1adf71),
647
- 'seq': _0x1d0877[_0x14d93b(0x1a7)] ?? 0x0
678
+ 'content': _0x28fd52['bodyMarkdown'] ?? '',
679
+ 'createdAt': _0x28fd52[_0x2a78dd(0x13c)],
680
+ 'messageId': _0x28fd52['id'],
681
+ 'senderName': _0x28fd52[_0x2a78dd(0x228)],
682
+ 'senderType': _0x2db2d6(_0x28fd52[_0x2a78dd(0x228)], _0x4cccfd),
683
+ 'seq': _0x28fd52[_0x2a78dd(0x209)] ?? 0x0
648
684
  }));
649
685
  return {
650
- 'channel': _0x4314ce[_0x14d93b(_0x536b01._0x5e51a5)],
651
- 'hasMore': _0x15c7ba[_0x14d93b(_0x536b01._0x382007)]?.[_0x14d93b(_0x536b01._0x1dc32e)] ?? ![],
652
- 'messages': _0x221dec,
653
- 'nextCursor': _0x15c7ba[_0x14d93b(_0x536b01._0x382007)]?.[_0x14d93b(_0x536b01._0x4f540f)]
686
+ 'channel': _0x3beeb5[_0x2a78dd(0x185)],
687
+ 'hasMore': _0x131704[_0x2a78dd(0x1c8)]?.['hasMore'] ?? ![],
688
+ 'messages': _0xb9599d,
689
+ 'nextCursor': _0x131704[_0x2a78dd(_0x1f8d88._0x2d235c)]?.[_0x2a78dd(0x289)]
654
690
  };
655
691
  }
656
692
  return {
657
- async 'sendMessage'(_0x452245) {
658
- const _0x3a4c52 = _0xc1769, _0x3b5172 = await _0x496959(_0x452245[_0x3a4c52(0x217)]), _0x424af9 = _0x452245[_0x3a4c52(_0xec068a._0xa1a20c)][_0x3a4c52(_0xec068a._0x433b00)]('@') ? extractMentionedParticipantIds(_0x452245[_0x3a4c52(_0xec068a._0xa1a20c)], await _0x2b8765()) : [], _0x48a669 = await _0x373ec4(_0x3a4c52(_0xec068a._0x1d0c5f) + _0x576bbf[_0x3a4c52(_0xec068a._0x18ce55)] + _0x3a4c52(0x26d), {
659
- 'body': JSON[_0x3a4c52(_0xec068a._0x375ae9)]({
660
- 'attachment_ids': _0x452245['attachmentIds'],
661
- 'bodyMarkdown': _0x452245[_0x3a4c52(0x236)],
662
- 'channelId': _0x3b5172[_0x3a4c52(0x1aa)],
663
- ..._0x424af9[_0x3a4c52(0x2aa)] > 0x0 ? { 'mentionedParticipantIds': _0x424af9 } : {},
664
- 'threadId': _0x3b5172['threadId'],
665
- ..._0x452245[_0x3a4c52(_0xec068a._0x2b1763)] ? { 'visibility': _0x452245[_0x3a4c52(_0xec068a._0xd27a75)] } : {}
693
+ async 'sendMessage'(_0xa2f20d) {
694
+ const _0xb7de02 = _0x48cdc4, _0x182b41 = await _0x459e2f(_0xa2f20d[_0xb7de02(0x1fe)]), _0x42831e = _0xa2f20d[_0xb7de02(_0x3e364b._0x2c5a00)][_0xb7de02(0x135)]('@') ? extractMentionedParticipantIds(_0xa2f20d[_0xb7de02(0x23f)], await _0x1c8519()) : [], _0x3dca04 = await _0x1d8040(_0xb7de02(_0x3e364b._0x43864d) + _0x13d36f[_0xb7de02(_0x3e364b._0x2c55fe)] + _0xb7de02(0x1da), {
695
+ 'body': JSON['stringify']({
696
+ 'attachment_ids': _0xa2f20d[_0xb7de02(0x1ab)],
697
+ 'bodyMarkdown': _0xa2f20d[_0xb7de02(0x23f)],
698
+ 'channelId': _0x182b41['channelId'],
699
+ ..._0x42831e[_0xb7de02(0x190)] > 0x0 ? { 'mentionedParticipantIds': _0x42831e } : {},
700
+ 'threadId': _0x182b41[_0xb7de02(_0x3e364b._0x36776d)],
701
+ ..._0xa2f20d[_0xb7de02(_0x3e364b._0x48a3fe)] ? { 'visibility': _0xa2f20d[_0xb7de02(0x24a)] } : {}
666
702
  }),
667
- 'headers': _0x2c8b82,
668
- 'method': 'POST'
703
+ 'headers': _0x260a25,
704
+ 'method': _0xb7de02(0x199)
669
705
  });
670
- return { 'messageId': _0x48a669[_0x3a4c52(0x1fa)]?.['id'] ?? '' };
706
+ return { 'messageId': _0x3dca04[_0xb7de02(0x153)]?.['id'] ?? '' };
671
707
  },
672
708
  async 'listSchedules'() {
673
- const _0x4ccc50 = _0xc1769, _0x1ed07b = await _0x373ec4(_0x4ccc50(_0x5ea85d._0xec7c68), {
674
- 'headers': _0x2c8b82,
675
- 'method': _0x4ccc50(_0x5ea85d._0x2c7493)
709
+ const _0x152da3 = _0x48cdc4, _0x116ff5 = await _0x1d8040(_0x152da3(0x158), {
710
+ 'headers': _0x260a25,
711
+ 'method': _0x152da3(_0x4cc4ed._0x28f41d)
676
712
  });
677
- return _0x1ed07b[_0x4ccc50(0x1fa)] ?? [];
713
+ return _0x116ff5[_0x152da3(_0x4cc4ed._0x2ab48a)] ?? [];
678
714
  },
679
- async 'claimScheduleRun'(_0x30bdb6) {
680
- const _0x4b9e87 = _0xc1769, _0x5043a2 = await _0x373ec4('/api/internal/schedules/claim', {
681
- 'body': JSON['stringify'](_0x30bdb6),
682
- 'headers': _0x2c8b82,
715
+ async 'claimScheduleRun'(_0xab9d7a) {
716
+ const _0x1cbccb = _0x48cdc4, _0x1241df = await _0x1d8040(_0x1cbccb(_0x3fb387._0x2390cf), {
717
+ 'body': JSON[_0x1cbccb(0x14b)](_0xab9d7a),
718
+ 'headers': _0x260a25,
683
719
  'method': 'POST'
684
720
  });
685
- return _0x5043a2[_0x4b9e87(_0x552af8._0x7b716d)] ?? {
721
+ return _0x1241df[_0x1cbccb(_0x3fb387._0x15ede1)] ?? {
686
722
  'granted': ![],
687
723
  'runId': null,
688
724
  'schedule': null,
689
- 'scheduledFor': _0x30bdb6[_0x4b9e87(0x2b5)]
725
+ 'scheduledFor': _0xab9d7a[_0x1cbccb(0x29f)]
690
726
  };
691
727
  },
692
- async 'startScheduleRun'(_0x5597ff) {
693
- const _0x3accdb = _0xc1769, _0x56e9dc = await _0x373ec4(_0x3accdb(0x1f1) + encodeURIComponent(_0x5597ff[_0x3accdb(_0xbf21bf._0x26f5a9)]) + _0x3accdb(_0xbf21bf._0x2c9ced), {
694
- 'body': JSON[_0x3accdb(_0xbf21bf._0x4dc470)]({}),
695
- 'headers': _0x2c8b82,
728
+ async 'startScheduleRun'(_0x344c5b) {
729
+ const _0x2c4b25 = _0x48cdc4, _0x5dfbce = await _0x1d8040(_0x2c4b25(0x26d) + encodeURIComponent(_0x344c5b[_0x2c4b25(_0x28060a._0x22aec3)]) + '/start', {
730
+ 'body': JSON[_0x2c4b25(_0x28060a._0x32a397)]({}),
731
+ 'headers': _0x260a25,
696
732
  'method': 'POST'
697
733
  });
698
- return _0x56e9dc[_0x3accdb(_0xbf21bf._0x460278)] ?? {
734
+ return _0x5dfbce[_0x2c4b25(_0x28060a._0x57e62f)] ?? {
699
735
  'claimedByDaemonId': '',
700
- 'id': _0x5597ff['runId'],
736
+ 'id': _0x344c5b[_0x2c4b25(_0x28060a._0x22aec3)],
701
737
  'scheduleId': '',
702
- 'status': _0x3accdb(0x2d9)
738
+ 'status': _0x2c4b25(0x28a)
703
739
  };
704
740
  },
705
- async 'finishScheduleRun'(_0x2e9774) {
706
- const _0x3c48bf = _0xc1769, _0xa70ca8 = await _0x373ec4('/api/internal/schedules/' + encodeURIComponent(_0x2e9774[_0x3c48bf(_0x2cb30b._0x7fe1ea)]) + '/finish', {
707
- 'body': JSON[_0x3c48bf(0x17d)]({
708
- 'error': _0x2e9774['error'],
709
- 'resultJson': _0x2e9774[_0x3c48bf(0x2cc)],
710
- 'status': _0x2e9774['status']
741
+ async 'finishScheduleRun'(_0x197bf9) {
742
+ const _0x8b1159 = _0x48cdc4, _0x5d5358 = await _0x1d8040(_0x8b1159(_0x13e5e5._0x5b047b) + encodeURIComponent(_0x197bf9[_0x8b1159(0x250)]) + _0x8b1159(0x121), {
743
+ 'body': JSON[_0x8b1159(_0x13e5e5._0x312946)]({
744
+ 'error': _0x197bf9['error'],
745
+ 'resultJson': _0x197bf9[_0x8b1159(0x252)],
746
+ 'status': _0x197bf9['status']
711
747
  }),
712
- 'headers': _0x2c8b82,
748
+ 'headers': _0x260a25,
713
749
  'method': 'POST'
714
750
  });
715
- return _0xa70ca8[_0x3c48bf(0x1fa)] ?? {
751
+ return _0x5d5358[_0x8b1159(_0x13e5e5._0x3d0059)] ?? {
716
752
  'nextRunAt': null,
717
753
  'run': {
718
754
  'claimedByDaemonId': '',
719
- 'id': _0x2e9774[_0x3c48bf(0x2a0)],
755
+ 'id': _0x197bf9[_0x8b1159(_0x13e5e5._0x206a25)],
720
756
  'scheduleId': '',
721
- 'status': _0x2e9774[_0x3c48bf(0x1f0)]
757
+ 'status': _0x197bf9[_0x8b1159(_0x13e5e5._0x207b94)]
722
758
  }
723
759
  };
724
760
  },
725
- async 'listTasks'(_0x193dea) {
726
- const _0x5f3357 = _0xc1769, _0x52b1e7 = new URLSearchParams();
727
- return _0x52b1e7[_0x5f3357(_0x2fdf6f._0x13ce92)](_0x5f3357(0x23e), _0x193dea[_0x5f3357(0x23e)]), _0x193dea['status'] && _0x52b1e7[_0x5f3357(0x2f4)]('status', _0x193dea[_0x5f3357(_0x2fdf6f._0x5a0b75)]), _0xbd1ee8('/internal/agent/' + _0x576bbf['agentId'] + _0x5f3357(_0x2fdf6f._0x14a2fc) + _0x52b1e7['toString'](), {
728
- 'headers': _0x2c8b82,
729
- 'method': _0x5f3357(0x203)
761
+ async 'listTasks'(_0x322069) {
762
+ const _0x4ec7d4 = _0x48cdc4, _0x47ccd7 = new URLSearchParams();
763
+ return _0x47ccd7[_0x4ec7d4(0x1e5)](_0x4ec7d4(0x268), _0x322069[_0x4ec7d4(0x268)]), _0x322069[_0x4ec7d4(0x27f)] && _0x47ccd7[_0x4ec7d4(0x1e5)](_0x4ec7d4(0x27f), _0x322069[_0x4ec7d4(0x27f)]), _0x270d3b('/internal/agent/' + _0x13d36f[_0x4ec7d4(_0x2c7e73._0x3a1d80)] + _0x4ec7d4(0x271) + _0x47ccd7[_0x4ec7d4(0x1f9)](), {
764
+ 'headers': _0x260a25,
765
+ 'method': _0x4ec7d4(0x24e)
730
766
  });
731
767
  },
732
- async 'createTasks'(_0x35fde2) {
733
- const _0x439be7 = _0xc1769;
734
- return _0xbd1ee8(_0x439be7(0x295) + _0x576bbf[_0x439be7(0x221)] + _0x439be7(_0x3e0644._0x42e218), {
735
- 'body': JSON[_0x439be7(_0x3e0644._0x563a46)]({
736
- ..._0x35fde2,
737
- 'idempotency_key': _0x384454(_0x439be7(0x17f), _0x35fde2)
768
+ async 'createTasks'(_0x14e6fc) {
769
+ const _0x50a3de = _0x48cdc4;
770
+ return _0x270d3b(_0x50a3de(0x1cf) + _0x13d36f['agentId'] + _0x50a3de(_0x2337a0._0x1c7347), {
771
+ 'body': JSON[_0x50a3de(_0x2337a0._0x5c8a09)]({
772
+ ..._0x14e6fc,
773
+ 'idempotency_key': _0x12772a(_0x50a3de(0x222), _0x14e6fc)
738
774
  }),
739
- 'headers': _0x2c8b82,
740
- 'method': 'POST'
775
+ 'headers': _0x260a25,
776
+ 'method': _0x50a3de(_0x2337a0._0x693190)
741
777
  });
742
778
  },
743
- async 'claimTasks'(_0x571e80) {
744
- const _0x33efa1 = _0xc1769;
745
- return _0xbd1ee8(_0x33efa1(0x295) + _0x576bbf[_0x33efa1(0x221)] + _0x33efa1(0x1a8), {
746
- 'body': JSON[_0x33efa1(_0x499713._0x1aaeff)]({
747
- ..._0x571e80,
748
- 'idempotency_key': _0x384454('claim_tasks', _0x571e80)
779
+ async 'claimTasks'(_0xd8c161) {
780
+ const _0x39d41b = _0x48cdc4;
781
+ return _0x270d3b(_0x39d41b(0x1cf) + _0x13d36f[_0x39d41b(0x15b)] + _0x39d41b(0x277), {
782
+ 'body': JSON[_0x39d41b(0x14b)]({
783
+ ..._0xd8c161,
784
+ 'idempotency_key': _0x12772a(_0x39d41b(0x1c3), _0xd8c161)
749
785
  }),
750
- 'headers': _0x2c8b82,
751
- 'method': _0x33efa1(0x186)
786
+ 'headers': _0x260a25,
787
+ 'method': _0x39d41b(_0x2598d4._0x482643)
752
788
  });
753
789
  },
754
- async 'unclaimTask'(_0x4cd6cd) {
755
- const _0x3e0842 = _0xc1769;
756
- return _0xbd1ee8(_0x3e0842(_0x97e405._0x2d17a4) + _0x576bbf[_0x3e0842(0x221)] + '/tasks/unclaim', {
757
- 'body': JSON[_0x3e0842(_0x97e405._0x1201ae)]({
758
- ..._0x4cd6cd,
759
- 'idempotency_key': _0x384454('unclaim_task', _0x4cd6cd)
790
+ async 'unclaimTask'(_0x42b4b8) {
791
+ const _0x201902 = _0x48cdc4;
792
+ return _0x270d3b(_0x201902(_0x29cc52._0x4c7ac1) + _0x13d36f['agentId'] + '/tasks/unclaim', {
793
+ 'body': JSON[_0x201902(0x14b)]({
794
+ ..._0x42b4b8,
795
+ 'idempotency_key': _0x12772a(_0x201902(_0x29cc52._0x5ad920), _0x42b4b8)
760
796
  }),
761
- 'headers': _0x2c8b82,
762
- 'method': _0x3e0842(0x186)
797
+ 'headers': _0x260a25,
798
+ 'method': _0x201902(0x199)
763
799
  });
764
800
  },
765
- async 'updateTaskStatus'(_0x2d31d1) {
766
- const _0x3af610 = _0xc1769;
767
- return _0xbd1ee8(_0x3af610(0x295) + _0x576bbf['agentId'] + _0x3af610(0x28d), {
768
- 'body': JSON['stringify']({
769
- ..._0x2d31d1,
770
- 'idempotency_key': _0x384454(_0x3af610(0x2cd), _0x2d31d1)
801
+ async 'updateTaskStatus'(_0x5044b4) {
802
+ const _0x49c7a6 = _0x48cdc4;
803
+ return _0x270d3b(_0x49c7a6(0x1cf) + _0x13d36f[_0x49c7a6(0x15b)] + _0x49c7a6(_0x3ffdc5._0x5771f2), {
804
+ 'body': JSON[_0x49c7a6(_0x3ffdc5._0x3fe330)]({
805
+ ..._0x5044b4,
806
+ 'idempotency_key': _0x12772a(_0x49c7a6(0x1c9), _0x5044b4)
771
807
  }),
772
- 'headers': _0x2c8b82,
808
+ 'headers': _0x260a25,
773
809
  'method': 'POST'
774
810
  });
775
811
  },
776
- async 'uploadFile'(_0x303196) {
777
- const _0x1fd805 = _0xc1769, _0x4a54ee = await _0x496959(_0x303196[_0x1fd805(_0x39eed1._0x5bf48c)]);
778
- if (_0x4a54ee[_0x1fd805(0x2dd)])
779
- throw new Error(_0x1fd805(_0x39eed1._0x348af9));
780
- const _0x44f4ac = await _0x373ec4('/internal/agent/' + _0x576bbf[_0x1fd805(_0x39eed1._0x1be013)] + _0x1fd805(0x2a9), {
781
- 'body': JSON['stringify']({
782
- 'channel': _0x4a54ee[_0x1fd805(_0x39eed1._0x146ee3)],
783
- 'contentBase64': _0x303196[_0x1fd805(0x2e5)],
784
- 'contentType': _0x303196['contentType'],
785
- 'originalFilename': _0x303196[_0x1fd805(0x235)]
812
+ async 'uploadFile'(_0x30bbbc) {
813
+ const _0x3b300f = _0x48cdc4, _0x57510a = await _0x459e2f(_0x30bbbc[_0x3b300f(0x268)]);
814
+ if (_0x57510a[_0x3b300f(_0x3ea8a0._0x5499db)])
815
+ throw new Error(_0x3b300f(_0x3ea8a0._0x45cdc7));
816
+ const _0x4c1ad6 = await _0x1d8040(_0x3b300f(0x1cf) + _0x13d36f['agentId'] + _0x3b300f(0x12c), {
817
+ 'body': JSON[_0x3b300f(_0x3ea8a0._0x592796)]({
818
+ 'channel': _0x57510a[_0x3b300f(_0x3ea8a0._0x502405)],
819
+ 'contentBase64': _0x30bbbc['contentBase64'],
820
+ 'contentType': _0x30bbbc['contentType'],
821
+ 'originalFilename': _0x30bbbc[_0x3b300f(_0x3ea8a0._0x35fedc)]
786
822
  }),
787
- 'headers': _0x2c8b82,
788
- 'method': 'POST'
823
+ 'headers': _0x260a25,
824
+ 'method': _0x3b300f(_0x3ea8a0._0x545740)
789
825
  });
790
826
  return {
791
- 'attachmentId': _0x44f4ac[_0x1fd805(_0x39eed1._0x44c0cf)]?.['id'] ?? '',
792
- 'filename': _0x44f4ac[_0x1fd805(_0x39eed1._0x6316c3)]?.[_0x1fd805(0x220)] ?? _0x303196['filename'],
793
- 'sizeBytes': _0x44f4ac[_0x1fd805(_0x39eed1._0x4904ac)]?.[_0x1fd805(0x212)] ?? 0x0
827
+ 'attachmentId': _0x4c1ad6[_0x3b300f(_0x3ea8a0._0x254a57)]?.['id'] ?? '',
828
+ 'filename': _0x4c1ad6[_0x3b300f(0x153)]?.[_0x3b300f(0x141)] ?? _0x30bbbc[_0x3b300f(_0x3ea8a0._0x35fedc)],
829
+ 'sizeBytes': _0x4c1ad6['data']?.[_0x3b300f(0x267)] ?? 0x0
794
830
  };
795
831
  },
796
- async 'downloadAttachment'(_0x5544da) {
797
- const _0x223809 = _0xc1769, _0x371e3b = await _0x373ec4(_0x223809(_0x2fc491._0x2757f2) + _0x5544da, {
798
- 'headers': _0x2c8b82,
832
+ async 'downloadAttachment'(_0x9e0588) {
833
+ const _0x3ac7d0 = _0x48cdc4, _0x5eddaf = await _0x1d8040(_0x3ac7d0(0x193) + _0x9e0588, {
834
+ 'headers': _0x260a25,
799
835
  'method': 'GET'
800
- }), _0x270ce6 = new AbortController(), _0x3473ae = setTimeout(() => _0x270ce6[_0x223809(0x2ed)](), _0x2c566b);
836
+ }), _0x1fd0e2 = new AbortController(), _0x4731a6 = setTimeout(() => _0x1fd0e2[_0x3ac7d0(0x1b4)](), _0x5dad0a);
801
837
  try {
802
- const _0x32a31e = await _0x4e1e5e(_0x3007ce + '/api/attachments/' + _0x5544da + _0x223809(0x20d), {
803
- 'headers': _0x2c8b82,
804
- 'method': _0x223809(0x203),
805
- 'signal': _0x270ce6[_0x223809(0x2ef)]
838
+ const _0x52486d = await _0x489cf6(_0x558658 + '/api/attachments/' + _0x9e0588 + _0x3ac7d0(_0x3ba4af._0x288724), {
839
+ 'headers': _0x260a25,
840
+ 'method': 'GET',
841
+ 'signal': _0x1fd0e2[_0x3ac7d0(0x156)]
806
842
  });
807
- if (!_0x32a31e['ok'])
808
- throw new Error('HTTP\x20' + _0x32a31e[_0x223809(_0x2fc491._0x199ee4)]);
843
+ if (!_0x52486d['ok'])
844
+ throw new Error(_0x3ac7d0(0x283) + _0x52486d[_0x3ac7d0(0x27f)]);
809
845
  return {
810
- 'contentType': _0x371e3b[_0x223809(_0x2fc491._0x533b50)]?.[_0x223809(_0x2fc491._0x5854f8)] ?? _0x32a31e['headers']['get'](_0x223809(0x185)) ?? _0x223809(_0x2fc491._0x14b4b7),
811
- 'data': Buffer[_0x223809(0x257)](await _0x32a31e[_0x223809(_0x2fc491._0x24e500)]()),
812
- 'originalFilename': _0x371e3b['data']?.['originalFilename']
846
+ 'contentType': _0x5eddaf[_0x3ac7d0(_0x3ba4af._0x279eb3)]?.[_0x3ac7d0(_0x3ba4af._0x6b8881)] ?? _0x52486d['headers'][_0x3ac7d0(0x218)]('content-type') ?? _0x3ac7d0(0x1a4),
847
+ 'data': Buffer[_0x3ac7d0(_0x3ba4af._0x1d84b3)](await _0x52486d[_0x3ac7d0(0x247)]()),
848
+ 'originalFilename': _0x5eddaf['data']?.[_0x3ac7d0(_0x3ba4af._0x3a4013)]
813
849
  };
814
850
  } finally {
815
- clearTimeout(_0x3473ae);
851
+ clearTimeout(_0x4731a6);
816
852
  }
817
853
  },
818
854
  async 'listServer'() {
819
- return _0x2b8765({ 'forceRefresh': !![] });
855
+ return _0x1c8519({ 'forceRefresh': !![] });
820
856
  },
821
- async 'readHistory'(_0x56daab) {
822
- const _0xd28801 = _0xc1769, _0x5a4b98 = await _0x496959(_0x56daab['channel']);
823
- return _0x294331({
824
- 'after': _0x56daab[_0xd28801(_0x4ddc11._0x241356)],
825
- 'before': _0x56daab['before'],
826
- 'channelId': _0x5a4b98[_0xd28801(_0x4ddc11._0x25890c)],
827
- 'channelTarget': _0x5a4b98[_0xd28801(_0x4ddc11._0x6bdd78)],
828
- 'limit': _0x56daab['limit'],
829
- 'threadId': _0x5a4b98[_0xd28801(_0x4ddc11._0xcbd734)]
857
+ async 'readHistory'(_0x15719b) {
858
+ const _0x20ea48 = _0x48cdc4, _0x1f6faf = await _0x459e2f(_0x15719b['channel']);
859
+ return _0x5a8c6e({
860
+ 'after': _0x15719b[_0x20ea48(_0x103a32._0x533010)],
861
+ 'before': _0x15719b[_0x20ea48(0x25d)],
862
+ 'channelId': _0x1f6faf[_0x20ea48(_0x103a32._0xc1267e)],
863
+ 'channelTarget': _0x1f6faf[_0x20ea48(0x1fe)],
864
+ 'limit': _0x15719b['limit'],
865
+ 'threadId': _0x1f6faf['threadId']
830
866
  });
831
867
  },
832
- 'resolveTarget': _0x496959,
868
+ 'resolveTarget': _0x459e2f,
833
869
  async 'checkMessages'() {
834
- const _0x21806c = {
835
- _0x4a936f: 0x1aa,
836
- _0x8e813a: 0x2c9,
837
- _0x522d5b: 0x234
838
- }, _0x346779 = _0xc1769, _0x4ec796 = new URLSearchParams();
839
- _0x4ec796[_0x346779(0x2f4)](_0x346779(_0x52838f._0x4779e2), String(_0x36bf63));
840
- const _0x4b5371 = _0x4ec796['toString'](), _0x2ea8ce = await _0x373ec4('/internal/agent/' + _0x576bbf[_0x346779(_0x52838f._0x1e204d)] + _0x346779(0x289) + (_0x4b5371 ? '?' + _0x4b5371 : ''), {
841
- 'headers': _0x2c8b82,
870
+ const _0x5cab76 = { _0x38b32d: 0x140 }, _0xce13b5 = _0x48cdc4, _0xe35dab = new URLSearchParams();
871
+ _0xe35dab[_0xce13b5(0x1e5)](_0xce13b5(_0x3728a0._0x2e7a91), String(_0x16e3b1));
872
+ const _0x5f075b = _0xe35dab[_0xce13b5(_0x3728a0._0x16b3f4)](), _0x9a779c = await _0x1d8040(_0xce13b5(_0x3728a0._0xd9f26a) + _0x13d36f[_0xce13b5(_0x3728a0._0x5bfccf)] + '/receive' + (_0x5f075b ? '?' + _0x5f075b : ''), {
873
+ 'headers': _0x260a25,
842
874
  'method': 'GET'
843
- }), _0x4a23ba = _0x2ea8ce[_0x346779(0x1fa)] ?? [], _0x2d8db7 = _0x2ea8ce['meta']?.[_0x346779(0x2bf)], _0x5d501e = _0x2d8db7 !== void 0x0 ? Math[_0x346779(0x22f)](_0x36bf63, _0x2d8db7) : _0x4a23ba['length'] > 0x0 ? Math[_0x346779(_0x52838f._0x43795e)](_0x36bf63, _0x4a23ba[_0x4a23ba[_0x346779(0x2aa)] - 0x1][_0x346779(_0x52838f._0x1a814)]) : _0x36bf63, _0x32f78a = _0x4a23ba['filter'](_0x415cd7 => _0x415cd7[_0x346779(0x294)] === _0x346779(0x281)), _0x2fde62 = _0x3a277b === void 0x0 && _0x1b1d55;
844
- let _0x43c2e7 = await _0x2b8765(), _0x4949d0 = new Map(_0x43c2e7[_0x346779(0x188)][_0x346779(0x1ad)](_0x5bc5a8 => [
845
- _0x5bc5a8['id'],
846
- _0x5bc5a8
875
+ }), _0x907ad7 = _0x9a779c[_0xce13b5(0x153)] ?? [], _0x48a36f = _0x9a779c[_0xce13b5(_0x3728a0._0x3b5cdd)]?.[_0xce13b5(_0x3728a0._0x48f231)], _0x531496 = _0x48a36f !== void 0x0 ? Math[_0xce13b5(_0x3728a0._0x3c9109)](_0x16e3b1, _0x48a36f) : _0x907ad7[_0xce13b5(0x190)] > 0x0 ? Math[_0xce13b5(_0x3728a0._0xb985d1)](_0x16e3b1, _0x907ad7[_0x907ad7[_0xce13b5(_0x3728a0._0x55fe5c)] - 0x1]['seq']) : _0x16e3b1, _0x3e960d = _0x907ad7[_0xce13b5(_0x3728a0._0xb77e4d)](_0xc42a06 => _0xc42a06[_0xce13b5(0x232)] === 'message'), _0x207d0f = _0x2255dd === void 0x0 && _0x31c393;
876
+ let _0x3bdb1f = await _0x1c8519(), _0x5c7de7 = new Map(_0x3bdb1f[_0xce13b5(_0x3728a0._0x43bc7e)][_0xce13b5(_0x3728a0._0x331fd8)](_0x1d9dd3 => [
877
+ _0x1d9dd3['id'],
878
+ _0x1d9dd3
847
879
  ]));
848
- const _0x5e3a51 = _0x32f78a[_0x346779(_0x52838f._0x1e6cbc)](_0x59e031 => {
849
- const _0x283ac5 = _0x346779, _0x21e6d6 = asRecord(_0x59e031[_0x283ac5(0x2c1)]), _0xaf9ba9 = typeof _0x21e6d6?.[_0x283ac5(_0x21806c._0x4a936f)] === _0x283ac5(_0x21806c._0x8e813a) ? _0x21e6d6[_0x283ac5(0x1aa)] : '';
850
- return Boolean(_0xaf9ba9) && !_0x4949d0[_0x283ac5(_0x21806c._0x522d5b)](_0xaf9ba9);
880
+ const _0x14ea6b = _0x3e960d[_0xce13b5(_0x3728a0._0x17f0d7)](_0x4e3e36 => {
881
+ const _0x5641de = _0xce13b5, _0x2b3097 = asRecord(_0x4e3e36[_0x5641de(0x1e0)]), _0x32408c = typeof _0x2b3097?.['channelId'] === _0x5641de(_0x5cab76._0x38b32d) ? _0x2b3097[_0x5641de(0x1fd)] : '';
882
+ return Boolean(_0x32408c) && !_0x5c7de7[_0x5641de(0x248)](_0x32408c);
851
883
  });
852
- _0x5e3a51 && (_0x43c2e7 = await _0x2b8765({ 'forceRefresh': !![] }), _0x4949d0 = new Map(_0x43c2e7[_0x346779(0x188)][_0x346779(0x1ad)](_0x1dd394 => [
853
- _0x1dd394['id'],
854
- _0x1dd394
884
+ _0x14ea6b && (_0x3bdb1f = await _0x1c8519({ 'forceRefresh': !![] }), _0x5c7de7 = new Map(_0x3bdb1f['channels'][_0xce13b5(0x208)](_0x5e9682 => [
885
+ _0x5e9682['id'],
886
+ _0x5e9682
855
887
  ])));
856
- const _0xeb41cb = new Map();
857
- for (const _0x11bb06 of _0x32f78a) {
858
- const _0x1e5643 = asRecord(_0x11bb06[_0x346779(0x2c1)]), _0x3cfa6a = typeof _0x1e5643[_0x346779(0x1aa)] === _0x346779(_0x52838f._0xf9ed34) ? _0x1e5643[_0x346779(_0x52838f._0x5d045d)] : '';
859
- if (!_0x3cfa6a)
888
+ const _0x440dd6 = new Map();
889
+ for (const _0x3102f6 of _0x3e960d) {
890
+ const _0x1682bb = asRecord(_0x3102f6[_0xce13b5(0x1e0)]), _0x4349b8 = typeof _0x1682bb['channelId'] === _0xce13b5(_0x3728a0._0x1e18a8) ? _0x1682bb[_0xce13b5(0x1fd)] : '';
891
+ if (!_0x4349b8)
860
892
  continue;
861
- const _0x191b1b = typeof _0x1e5643['threadId'] === 'string' ? _0x1e5643[_0x346779(0x2dd)] : void 0x0, _0x12a892 = typeof _0x1e5643[_0x346779(0x2c5)] === 'string' ? _0x1e5643[_0x346779(0x2c5)] : void 0x0, _0x430a8b = typeof _0x1e5643['threadNumber'] === _0x346779(0x1f3) && Number[_0x346779(_0x52838f._0x1a8b92)](_0x1e5643[_0x346779(0x1a0)]) ? _0x1e5643[_0x346779(_0x52838f._0x359547)] : void 0x0, _0x15fae6 = Boolean(_0x191b1b && (!_0x12a892 || _0x11bb06[_0x346779(_0x52838f._0x8e252e)] !== _0x12a892)), _0x527556 = _0x15fae6 ? _0x3cfa6a + ':' + _0x191b1b : _0x3cfa6a, _0x141ae7 = _0xeb41cb[_0x346779(_0x52838f._0x33281f)](_0x527556) ?? {
893
+ const _0x37775c = typeof _0x1682bb['threadId'] === _0xce13b5(0x140) ? _0x1682bb[_0xce13b5(_0x3728a0._0x26e0c3)] : void 0x0, _0x50520f = typeof _0x1682bb[_0xce13b5(0x18a)] === 'string' ? _0x1682bb[_0xce13b5(0x18a)] : void 0x0, _0x2c8e52 = typeof _0x1682bb['threadNumber'] === _0xce13b5(0x2a4) && Number[_0xce13b5(0x191)](_0x1682bb[_0xce13b5(0x24b)]) ? _0x1682bb[_0xce13b5(0x24b)] : void 0x0, _0x2a0adc = Boolean(_0x37775c && (!_0x50520f || _0x3102f6['aggregateId'] !== _0x50520f)), _0x2c5a81 = _0x2a0adc ? _0x4349b8 + ':' + _0x37775c : _0x4349b8, _0x1db3e4 = _0x440dd6['get'](_0x2c5a81) ?? {
862
894
  'aggregateIds': [],
863
- 'channelId': _0x3cfa6a,
895
+ 'channelId': _0x4349b8,
864
896
  'entries': new Map(),
865
- 'isThreadReply': _0x15fae6,
866
- 'rootMessageId': _0x12a892,
867
- 'threadNumber': _0x430a8b,
868
- 'threadId': _0x15fae6 ? _0x191b1b : void 0x0
897
+ 'isThreadReply': _0x2a0adc,
898
+ 'rootMessageId': _0x50520f,
899
+ 'threadNumber': _0x2c8e52,
900
+ 'threadId': _0x2a0adc ? _0x37775c : void 0x0
869
901
  };
870
- _0x141ae7[_0x346779(_0x52838f._0x2f33db)] == null && _0x430a8b != null && (_0x141ae7['threadNumber'] = _0x430a8b), !_0x141ae7['rootMessageId'] && _0x12a892 && (_0x141ae7[_0x346779(0x2c5)] = _0x12a892), _0x141ae7[_0x346779(_0x52838f._0x145106)][_0x346779(0x27b)](_0x11bb06[_0x346779(_0x52838f._0xc6998b)]), _0x141ae7[_0x346779(_0x52838f._0x2926bc)]['set'](_0x11bb06[_0x346779(_0x52838f._0x974904)], {
871
- 'payloadJson': _0x11bb06[_0x346779(0x2c1)],
872
- 'seq': _0x11bb06[_0x346779(0x278)]
873
- }), _0xeb41cb['set'](_0x527556, _0x141ae7);
902
+ _0x1db3e4[_0xce13b5(0x24b)] == null && _0x2c8e52 != null && (_0x1db3e4[_0xce13b5(_0x3728a0._0x7fa418)] = _0x2c8e52), !_0x1db3e4[_0xce13b5(_0x3728a0._0x4c9f7f)] && _0x50520f && (_0x1db3e4[_0xce13b5(_0x3728a0._0x46d0f6)] = _0x50520f), _0x1db3e4['aggregateIds'][_0xce13b5(_0x3728a0._0x35f363)](_0x3102f6['aggregateId']), _0x1db3e4[_0xce13b5(0x23a)][_0xce13b5(_0x3728a0._0x554284)](_0x3102f6[_0xce13b5(0x226)], {
903
+ 'payloadJson': _0x3102f6[_0xce13b5(0x1e0)],
904
+ 'seq': _0x3102f6[_0xce13b5(0x1d3)]
905
+ }), _0x440dd6[_0xce13b5(0x1e5)](_0x2c5a81, _0x1db3e4);
874
906
  }
875
- const _0xea7ac7 = [];
876
- for (const _0xbcd35b of _0xeb41cb[_0x346779(0x200)]()) {
907
+ const _0xa7b6a3 = [];
908
+ for (const _0x57a4f5 of _0x440dd6['values']()) {
877
909
  const {
878
- channelId: _0xb9eeee,
879
- threadId: _0x18a9d7,
880
- rootMessageId: _0x592aea,
881
- threadNumber: _0x9e0978,
882
- aggregateIds: _0x5ac7a1,
883
- isThreadReply: _0x8f7b60,
884
- entries: _0x11712d
885
- } = _0xbcd35b, _0x544ca1 = _0x4949d0[_0x346779(0x1d1)](_0xb9eeee), _0x4d2edd = _0x544ca1?.[_0x346779(_0x52838f._0x1660bd)] ?? _0xb9eeee, _0x1b6f1d = _0x544ca1?.[_0x346779(_0x52838f._0x3d7436)] === 'dm' ? _0x346779(0x2b4) + _0x4d2edd : '#' + _0x4d2edd, _0x8c4bd = {
886
- 'channelTarget': _0x1b6f1d,
887
- 'rootMessageId': _0x592aea,
888
- 'threadId': _0x18a9d7,
889
- 'threadNumber': _0x9e0978
890
- }, _0x18f356 = await _0x294331({
891
- 'channelId': _0xb9eeee,
892
- 'channelTarget': _0x1b6f1d,
893
- 'limit': Math[_0x346779(0x22f)](_0x5ac7a1[_0x346779(_0x52838f._0x14cfee)], 0x32),
894
- 'threadId': _0x18a9d7
895
- }), _0x6d9cd4 = new Map(_0x18f356[_0x346779(_0x52838f._0x58e471)]['map'](_0x4fd039 => [
896
- _0x4fd039[_0x346779(0x23c)],
897
- _0x4fd039
898
- ])), _0x10849b = _0x18a9d7 ? _0x3ec05a(_0x8c4bd) : _0x1b6f1d, _0x43d4ab = _0x3a277b ? _0x8f7b60 && _0x113a01(_0x3a277b, _0x8c4bd) : !![], _0x5db725 = _0x8f7b60 ? _0x43d4ab && _0x3a277b ? _0x3a277b : _0x10849b : _0x1b6f1d;
899
- for (const _0x1aaa16 of _0x5ac7a1) {
900
- if (!_0x43d4ab)
910
+ channelId: _0x4287a9,
911
+ threadId: _0x3345b1,
912
+ rootMessageId: _0x18ea10,
913
+ threadNumber: _0x511bb0,
914
+ aggregateIds: _0x3d01a0,
915
+ isThreadReply: _0x31adbc,
916
+ entries: _0x26b7ef
917
+ } = _0x57a4f5, _0x14b4ff = _0x5c7de7[_0xce13b5(0x218)](_0x4287a9), _0x5d1a37 = _0x14b4ff?.[_0xce13b5(_0x3728a0._0x4f0a12)] ?? _0x4287a9, _0x45b195 = _0x14b4ff?.['kind'] === 'dm' ? 'dm:' + _0x5d1a37 : '#' + _0x5d1a37, _0x4f5b00 = {
918
+ 'channelTarget': _0x45b195,
919
+ 'rootMessageId': _0x18ea10,
920
+ 'threadId': _0x3345b1,
921
+ 'threadNumber': _0x511bb0
922
+ }, _0x4aee6a = await _0x5a8c6e({
923
+ 'channelId': _0x4287a9,
924
+ 'channelTarget': _0x45b195,
925
+ 'limit': Math[_0xce13b5(_0x3728a0._0x44f2b7)](_0x3d01a0[_0xce13b5(_0x3728a0._0x55fe5c)], 0x32),
926
+ 'threadId': _0x3345b1
927
+ }), _0x9b38f = new Map(_0x4aee6a[_0xce13b5(0x20d)][_0xce13b5(_0x3728a0._0x331fd8)](_0x36330c => [
928
+ _0x36330c[_0xce13b5(0x212)],
929
+ _0x36330c
930
+ ])), _0x39530b = _0x3345b1 ? _0x442be0(_0x4f5b00) : _0x45b195, _0x4c1370 = _0x2255dd ? _0x31adbc && _0x59142d(_0x2255dd, _0x4f5b00) : !![], _0xfb84e6 = _0x31adbc ? _0x4c1370 && _0x2255dd ? _0x2255dd : _0x39530b : _0x45b195;
931
+ for (const _0xef93f0 of _0x3d01a0) {
932
+ if (!_0x4c1370)
901
933
  continue;
902
- const _0x303d13 = _0x11712d['get'](_0x1aaa16), _0x39ae81 = _0x303d13 ? asRecord(_0x303d13[_0x346779(_0x52838f._0x3dd8e8)]) : void 0x0, _0x365ecd = _0x39ae81?.[_0x346779(_0x52838f._0x52d73e)] === 'targeted';
903
- if (_0x2fde62 && _0x365ecd)
934
+ const _0x50ff0c = _0x26b7ef[_0xce13b5(_0x3728a0._0x487be4)](_0xef93f0), _0x41716c = _0x50ff0c ? asRecord(_0x50ff0c[_0xce13b5(0x1e0)]) : void 0x0, _0x13721e = _0x41716c?.[_0xce13b5(_0x3728a0._0x58237b)] === _0xce13b5(0x174);
935
+ if (_0x207d0f && _0x13721e)
904
936
  continue;
905
- const _0xb8f741 = _0x6d9cd4[_0x346779(0x1d1)](_0x1aaa16);
906
- if (_0xb8f741) {
907
- _0xea7ac7[_0x346779(_0x52838f._0x3def6a)]({
908
- 'attachments': _0xb8f741['attachments'],
909
- 'content': _0xb8f741[_0x346779(_0x52838f._0x19ab84)],
910
- 'createdAt': _0xb8f741[_0x346779(_0x52838f._0x9f3b2b)],
911
- 'messageId': _0xb8f741[_0x346779(_0x52838f._0x4278be)],
912
- 'senderName': _0xb8f741[_0x346779(0x2b1)],
913
- 'senderType': _0xb8f741[_0x346779(_0x52838f._0x57eebb)],
914
- 'target': _0x5db725,
915
- ..._0x365ecd ? { 'targetedTask': !![] } : {}
937
+ const _0x21dd7e = _0x9b38f['get'](_0xef93f0);
938
+ if (_0x21dd7e) {
939
+ _0xa7b6a3[_0xce13b5(_0x3728a0._0x35f363)]({
940
+ 'attachments': _0x21dd7e[_0xce13b5(_0x3728a0._0x15eaf0)],
941
+ 'content': _0x21dd7e[_0xce13b5(0x23f)],
942
+ 'createdAt': _0x21dd7e[_0xce13b5(_0x3728a0._0x3ec5cf)],
943
+ 'messageId': _0x21dd7e['messageId'],
944
+ 'senderName': _0x21dd7e[_0xce13b5(0x24f)],
945
+ 'senderType': _0x21dd7e[_0xce13b5(_0x3728a0._0x42d982)],
946
+ 'target': _0xfb84e6,
947
+ ..._0x13721e ? { 'targetedTask': !![] } : {}
916
948
  });
917
949
  continue;
918
950
  }
919
- if (_0x303d13) {
920
- const _0x249f6a = typeof _0x39ae81?.[_0x346779(0x2f5)] === _0x346779(0x2c9) ? _0x39ae81[_0x346779(_0x52838f._0x328e53)] : '', _0x35b088 = typeof _0x39ae81?.['bodyMarkdown'] === 'string' ? _0x39ae81['bodyMarkdown'] : '';
921
- _0x249f6a && _0x35b088 && _0xea7ac7[_0x346779(0x27b)]({
951
+ if (_0x50ff0c) {
952
+ const _0x330f56 = typeof _0x41716c?.[_0xce13b5(0x228)] === _0xce13b5(0x140) ? _0x41716c[_0xce13b5(_0x3728a0._0x2cb224)] : '', _0x5be27a = typeof _0x41716c?.[_0xce13b5(0x243)] === _0xce13b5(_0x3728a0._0x1e18a8) ? _0x41716c[_0xce13b5(0x243)] : '';
953
+ _0x330f56 && _0x5be27a && _0xa7b6a3[_0xce13b5(_0x3728a0._0x367c52)]({
922
954
  'attachments': [],
923
- 'content': _0x35b088,
924
- 'createdAt': new Date()[_0x346779(_0x52838f._0x57d919)](),
925
- 'messageId': _0x1aaa16,
926
- 'senderName': _0x249f6a,
927
- 'senderType': _0x59948e(_0x249f6a, _0x43c2e7),
928
- 'target': _0x5db725,
929
- ..._0x365ecd ? { 'targetedTask': !![] } : {}
955
+ 'content': _0x5be27a,
956
+ 'createdAt': new Date()[_0xce13b5(_0x3728a0._0x1a2d54)](),
957
+ 'messageId': _0xef93f0,
958
+ 'senderName': _0x330f56,
959
+ 'senderType': _0x2db2d6(_0x330f56, _0x3bdb1f),
960
+ 'target': _0xfb84e6,
961
+ ..._0x13721e ? { 'targetedTask': !![] } : {}
930
962
  });
931
963
  }
932
964
  }
933
965
  }
934
- if (_0x5d501e > 0x0) {
935
- if (_0x46167e)
936
- await _0x145107(_0x5d501e);
966
+ if (_0x531496 > 0x0) {
967
+ if (_0x299cbf)
968
+ await _0x3e053b(_0x531496);
937
969
  else
938
- _0x4e58e6 && await _0x3acd1c(_0x5d501e);
970
+ _0x50f71f && await _0x1b8e6a(_0x531496);
939
971
  }
940
- return _0x5d501e > _0x36bf63 && (_0x36bf63 = _0x5d501e), { 'messages': _0x3a277b ? _0xea7ac7 : _0x2fde62 ? _0xea7ac7[_0x346779(0x2b8)](_0x2f00f4 => _0x2f00f4[_0x346779(0x1e0)] !== !![]) : _0xea7ac7 };
972
+ return _0x531496 > _0x16e3b1 && (_0x16e3b1 = _0x531496), { 'messages': _0x2255dd ? _0xa7b6a3 : _0x207d0f ? _0xa7b6a3[_0xce13b5(_0x3728a0._0x6e0d76)](_0x3100fb => _0x3100fb[_0xce13b5(0x1cb)] !== !![]) : _0xa7b6a3 };
941
973
  }
942
974
  };
943
975
  }
944
- function toLocalTime(_0x2e202e) {
945
- const _0x56fe72 = {
946
- _0x5294cf: 0x26c,
947
- _0x1e1eca: 0x27e,
948
- _0x34cb0b: 0x1bf
949
- }, _0xbefcc1 = _0xd0824a, _0x2e256e = new Date(_0x2e202e);
950
- if (Number[_0xbefcc1(_0x56fe72._0x5294cf)](_0x2e256e['getTime']()))
951
- return _0x2e202e;
952
- const _0x3e7876 = _0x2b191b => String(_0x2b191b)[_0xbefcc1(0x2d6)](0x2, '0');
953
- return _0x2e256e['getFullYear']() + '-' + _0x3e7876(_0x2e256e[_0xbefcc1(_0x56fe72._0x1e1eca)]() + 0x1) + '-' + _0x3e7876(_0x2e256e['getDate']()) + '\x20' + _0x3e7876(_0x2e256e[_0xbefcc1(0x2ea)]()) + ':' + _0x3e7876(_0x2e256e[_0xbefcc1(_0x56fe72._0x34cb0b)]()) + ':' + _0x3e7876(_0x2e256e['getSeconds']());
976
+ function toLocalTime(_0x2c27ec) {
977
+ const _0x7c7b15 = { _0x4e7f38: 0x21f }, _0x12455a = _0x15d6d8, _0xfdfb2f = new Date(_0x2c27ec);
978
+ if (Number[_0x12455a(_0x7c7b15._0x4e7f38)](_0xfdfb2f[_0x12455a(0x1b7)]()))
979
+ return _0x2c27ec;
980
+ const _0x38e79d = _0x4b4ea2 => String(_0x4b4ea2)[_0x12455a(0x16f)](0x2, '0');
981
+ return _0xfdfb2f[_0x12455a(0x287)]() + '-' + _0x38e79d(_0xfdfb2f['getMonth']() + 0x1) + '-' + _0x38e79d(_0xfdfb2f['getDate']()) + '\x20' + _0x38e79d(_0xfdfb2f[_0x12455a(0x180)]()) + ':' + _0x38e79d(_0xfdfb2f[_0x12455a(0x179)]()) + ':' + _0x38e79d(_0xfdfb2f[_0x12455a(0x128)]());
954
982
  }
955
- function formatAttachmentSuffix(_0x43ad2d) {
956
- const _0x5e46fe = { _0x2ac12f: 0x2aa }, _0x2006a7 = _0xd0824a;
957
- if (!_0x43ad2d || _0x43ad2d['length'] === 0x0)
983
+ function formatAttachmentSuffix(_0x105ebf) {
984
+ const _0x43ec7f = {
985
+ _0x380d70: 0x190,
986
+ _0x4bea1a: 0x16e
987
+ }, _0x4a3b38 = _0x15d6d8;
988
+ if (!_0x105ebf || _0x105ebf[_0x4a3b38(_0x43ec7f._0x380d70)] === 0x0)
958
989
  return '';
959
- return '\x20[' + _0x43ad2d[_0x2006a7(_0x5e46fe._0x2ac12f)] + _0x2006a7(0x1fc) + (_0x43ad2d[_0x2006a7(0x2aa)] > 0x1 ? 's' : '') + ':\x20' + _0x43ad2d['map'](_0x2e993a => _0x2e993a[_0x2006a7(0x235)] + _0x2006a7(0x223) + _0x2e993a['id'] + ')')[_0x2006a7(0x248)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
990
+ return '\x20[' + _0x105ebf[_0x4a3b38(0x190)] + _0x4a3b38(0x225) + (_0x105ebf[_0x4a3b38(_0x43ec7f._0x380d70)] > 0x1 ? 's' : '') + ':\x20' + _0x105ebf['map'](_0x5f8828 => _0x5f8828[_0x4a3b38(0x1b6)] + _0x4a3b38(0x137) + _0x5f8828['id'] + ')')[_0x4a3b38(0x15d)](',\x20') + _0x4a3b38(_0x43ec7f._0x4bea1a);
960
991
  }
961
- function formatCheckMessages(_0x261a9c) {
962
- const _0x3db6b3 = {
963
- _0xf4a347: 0x2aa,
964
- _0x1b6784: 0x27a,
965
- _0x46fda0: 0x248
966
- }, _0x51237d = {
967
- _0x137dc8: 0x279,
968
- _0x299e5e: 0x1f8,
969
- _0xd621f: 0x217,
970
- _0x40698a: 0x251,
971
- _0x5b13f8: 0x1b4,
972
- _0x3b947a: 0x1d9,
973
- _0x4bac6b: 0x2d8,
974
- _0x5adea2: 0x2b1
975
- }, _0xaa505e = _0xd0824a;
976
- if (_0x261a9c[_0xaa505e(_0x3db6b3._0xf4a347)] === 0x0)
977
- return _0xaa505e(_0x3db6b3._0x1b6784);
978
- return _0x261a9c['map'](_0x161d8f => {
979
- const _0x3172ca = _0xaa505e, _0x4e68f2 = _0x161d8f[_0x3172ca(_0x51237d._0x137dc8)] === _0x3172ca(_0x51237d._0x299e5e) ? '\x20type=agent' : '';
980
- return '[target=' + _0x161d8f[_0x3172ca(_0x51237d._0xd621f)] + _0x3172ca(_0x51237d._0x40698a) + _0x161d8f['messageId'][_0x3172ca(_0x51237d._0x5b13f8)](0x0, 0x8) + _0x3172ca(_0x51237d._0x3b947a) + toLocalTime(_0x161d8f[_0x3172ca(_0x51237d._0x4bac6b)]) + _0x4e68f2 + _0x3172ca(0x259) + _0x161d8f[_0x3172ca(_0x51237d._0x5adea2)] + ':\x20' + _0x161d8f['content'] + formatAttachmentSuffix(_0x161d8f['attachments']);
981
- })[_0xaa505e(_0x3db6b3._0x46fda0)]('\x0a');
992
+ function formatCheckMessages(_0x4dd1a4) {
993
+ const _0x8029e0 = {
994
+ _0x1ce265: 0x190,
995
+ _0x49d51b: 0x15d
996
+ }, _0xe15d74 = {
997
+ _0xe7cc73: 0x292,
998
+ _0x12fe02: 0x201,
999
+ _0x15e034: 0x212,
1000
+ _0xf36a10: 0x24f,
1001
+ _0x586dab: 0x2a1
1002
+ }, _0x5af5a3 = _0x15d6d8;
1003
+ if (_0x4dd1a4[_0x5af5a3(_0x8029e0._0x1ce265)] === 0x0)
1004
+ return 'No\x20new\x20messages.';
1005
+ return _0x4dd1a4[_0x5af5a3(0x208)](_0x31ee44 => {
1006
+ const _0x209e31 = _0x5af5a3, _0x45c81d = _0x31ee44[_0x209e31(0x1ff)] === _0x209e31(0x171) ? _0x209e31(_0xe15d74._0xe7cc73) : '';
1007
+ return _0x209e31(0x213) + _0x31ee44[_0x209e31(0x1fe)] + _0x209e31(_0xe15d74._0x12fe02) + _0x31ee44[_0x209e31(_0xe15d74._0x15e034)][_0x209e31(0x263)](0x0, 0x8) + _0x209e31(0x120) + toLocalTime(_0x31ee44[_0x209e31(0x13c)]) + _0x45c81d + _0x209e31(0x229) + _0x31ee44[_0x209e31(_0xe15d74._0xf36a10)] + ':\x20' + _0x31ee44[_0x209e31(0x23f)] + formatAttachmentSuffix(_0x31ee44[_0x209e31(_0xe15d74._0x586dab)]);
1008
+ })[_0x5af5a3(_0x8029e0._0x49d51b)]('\x0a');
982
1009
  }
983
- function formatHistory(_0x53256f) {
984
- const _0x1e8296 = {
985
- _0x289cab: 0x23e,
986
- _0x7ed036: 0x248,
987
- _0x14105e: 0x23d,
988
- _0x4f7f03: 0x2b2,
989
- _0x22da38: 0x2aa
990
- }, _0x4195ba = {
991
- _0x4bae6c: 0x279,
992
- _0x16ce30: 0x216,
993
- _0x5f3c68: 0x2b1
994
- }, _0x214345 = _0xd0824a;
995
- if (_0x53256f['messages'][_0x214345(0x2aa)] === 0x0)
996
- return _0x214345(0x19e) + _0x53256f[_0x214345(_0x1e8296._0x289cab)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
997
- const _0x30f4f1 = _0x53256f[_0x214345(0x23d)][_0x214345(0x1ad)](_0x2a01e7 => {
998
- const _0x355eea = _0x214345, _0x29925 = _0x2a01e7[_0x355eea(_0x4195ba._0x4bae6c)] === _0x355eea(0x1f8) ? _0x355eea(0x206) : '';
999
- return _0x355eea(_0x4195ba._0x16ce30) + _0x2a01e7['seq'] + '\x20msg=' + _0x2a01e7['messageId'] + '\x20time=' + toLocalTime(_0x2a01e7[_0x355eea(0x2d8)]) + _0x29925 + ']\x20@' + _0x2a01e7[_0x355eea(_0x4195ba._0x5f3c68)] + ':\x20' + _0x2a01e7[_0x355eea(0x236)] + formatAttachmentSuffix(_0x2a01e7[_0x355eea(0x267)]);
1000
- })[_0x214345(_0x1e8296._0x7ed036)]('\x0a'), _0x24fe41 = _0x53256f['hasMore'] && _0x53256f[_0x214345(0x2c8)] ? '\x0a\x0a---\x20' + _0x53256f[_0x214345(_0x1e8296._0x14105e)]['length'] + _0x214345(_0x1e8296._0x4f7f03) + _0x53256f[_0x214345(0x2c8)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
1001
- return _0x214345(0x19e) + _0x53256f[_0x214345(0x23e)] + '\x20(' + _0x53256f[_0x214345(0x23d)][_0x214345(_0x1e8296._0x22da38)] + _0x214345(0x22a) + _0x30f4f1 + _0x24fe41;
1010
+ function formatHistory(_0x370cc7) {
1011
+ const _0x483f21 = {
1012
+ _0x32e7f5: 0x20d,
1013
+ _0xd4266d: 0x190,
1014
+ _0xa7d70b: 0x21d,
1015
+ _0x2e173f: 0x219,
1016
+ _0x261fb1: 0x12b,
1017
+ _0xbb3cb3: 0x190
1018
+ }, _0x2edde9 = {
1019
+ _0x1cdcbc: 0x1ff,
1020
+ _0x376b72: 0x171,
1021
+ _0x2486b6: 0x1d3,
1022
+ _0x48a18f: 0x201,
1023
+ _0x371e9c: 0x229
1024
+ }, _0x4a8ea9 = _0x15d6d8;
1025
+ if (_0x370cc7[_0x4a8ea9(_0x483f21._0x32e7f5)][_0x4a8ea9(_0x483f21._0xd4266d)] === 0x0)
1026
+ return _0x4a8ea9(_0x483f21._0xa7d70b) + _0x370cc7['channel'] + _0x4a8ea9(0x27c);
1027
+ const _0x281c12 = _0x370cc7['messages']['map'](_0x2ff3a => {
1028
+ const _0x2c007e = _0x4a8ea9, _0x2a7c1d = _0x2ff3a[_0x2c007e(_0x2edde9._0x1cdcbc)] === _0x2c007e(_0x2edde9._0x376b72) ? _0x2c007e(0x292) : '';
1029
+ return '[seq=' + _0x2ff3a[_0x2c007e(_0x2edde9._0x2486b6)] + _0x2c007e(_0x2edde9._0x48a18f) + _0x2ff3a[_0x2c007e(0x212)] + _0x2c007e(0x120) + toLocalTime(_0x2ff3a['createdAt']) + _0x2a7c1d + _0x2c007e(_0x2edde9._0x371e9c) + _0x2ff3a[_0x2c007e(0x24f)] + ':\x20' + _0x2ff3a[_0x2c007e(0x23f)] + formatAttachmentSuffix(_0x2ff3a[_0x2c007e(0x2a1)]);
1030
+ })['join']('\x0a'), _0x2b3e17 = _0x370cc7[_0x4a8ea9(_0x483f21._0x2e173f)] && _0x370cc7[_0x4a8ea9(0x12b)] ? '\x0a\x0a---\x20' + _0x370cc7[_0x4a8ea9(0x20d)]['length'] + _0x4a8ea9(0x144) + _0x370cc7[_0x4a8ea9(_0x483f21._0x261fb1)] + _0x4a8ea9(0x1bf) : '';
1031
+ return '##\x20Message\x20History\x20for\x20' + _0x370cc7['channel'] + '\x20(' + _0x370cc7[_0x4a8ea9(_0x483f21._0x32e7f5)][_0x4a8ea9(_0x483f21._0xbb3cb3)] + _0x4a8ea9(0x15f) + _0x281c12 + _0x2b3e17;
1002
1032
  }
1003
- function formatServerDirectory(_0x408393) {
1004
- const _0x4337c3 = {
1005
- _0x14df3d: 0x188,
1006
- _0x11e3bc: 0x188,
1007
- _0x2c927b: 0x1d6,
1008
- _0x2e934f: 0x268,
1009
- _0x5c3feb: 0x2aa,
1010
- _0x2a53c4: 0x248,
1011
- _0xa17b63: 0x1ad,
1012
- _0x145d70: 0x248,
1013
- _0x1455ab: 0x2d2,
1014
- _0xfe1672: 0x248
1015
- }, _0x2c6653 = _0xd0824a, _0x3d0433 = _0x408393[_0x2c6653(_0x4337c3._0x14df3d)]['length'] > 0x0 ? _0x408393[_0x2c6653(_0x4337c3._0x11e3bc)]['map'](_0x50888b => _0x50888b[_0x2c6653(0x219)] ? _0x2c6653(0x28e) + _0x50888b['name'] + _0x2c6653(0x26f) + _0x50888b[_0x2c6653(0x219)] : '-\x20#' + _0x50888b['name'])['join']('\x0a') : _0x2c6653(_0x4337c3._0x2c927b), _0x53ed89 = _0x408393[_0x2c6653(_0x4337c3._0x2e934f)][_0x2c6653(_0x4337c3._0x5c3feb)] > 0x0 ? _0x408393['agents'][_0x2c6653(0x1ad)](_0x13f29e => _0x2c6653(0x21b) + _0x13f29e['name'])[_0x2c6653(_0x4337c3._0x2a53c4)]('\x0a') : _0x2c6653(0x1d6), _0x21b414 = _0x408393[_0x2c6653(0x290)][_0x2c6653(_0x4337c3._0x5c3feb)] > 0x0 ? _0x408393['humans'][_0x2c6653(_0x4337c3._0xa17b63)](_0x562e8a => '-\x20@' + _0x562e8a[_0x2c6653(0x25d)])[_0x2c6653(_0x4337c3._0x145d70)]('\x0a') : '(none)';
1033
+ function formatServerDirectory(_0x32bdf4) {
1034
+ const _0x518eac = {
1035
+ _0x29649e: 0x163,
1036
+ _0x357b79: 0x190,
1037
+ _0x8b1180: 0x208,
1038
+ _0x469548: 0x15d,
1039
+ _0x2a446d: 0x190,
1040
+ _0x3377df: 0x14d,
1041
+ _0x261430: 0x195,
1042
+ _0x26451c: 0x1d2,
1043
+ _0x446629: 0x15d,
1044
+ _0x285418: 0x21c,
1045
+ _0x4f2f2b: 0x18d,
1046
+ _0x4d2945: 0x27b
1047
+ }, _0x569ec0 = _0x15d6d8, _0x41ec80 = _0x32bdf4[_0x569ec0(_0x518eac._0x29649e)][_0x569ec0(_0x518eac._0x357b79)] > 0x0 ? _0x32bdf4[_0x569ec0(_0x518eac._0x29649e)][_0x569ec0(_0x518eac._0x8b1180)](_0x469ead => _0x469ead[_0x569ec0(0x13d)] ? _0x569ec0(0x1fa) + _0x469ead[_0x569ec0(0x130)] + _0x569ec0(0x231) + _0x469ead[_0x569ec0(0x13d)] : _0x569ec0(0x1fa) + _0x469ead[_0x569ec0(0x130)])[_0x569ec0(_0x518eac._0x469548)]('\x0a') : _0x569ec0(0x195), _0x159029 = _0x32bdf4[_0x569ec0(0x14d)][_0x569ec0(_0x518eac._0x2a446d)] > 0x0 ? _0x32bdf4[_0x569ec0(_0x518eac._0x3377df)]['map'](_0x2a551d => '-\x20@' + _0x2a551d['name'])[_0x569ec0(0x15d)]('\x0a') : _0x569ec0(_0x518eac._0x261430), _0x5dbd32 = _0x32bdf4[_0x569ec0(0x1d2)][_0x569ec0(_0x518eac._0x2a446d)] > 0x0 ? _0x32bdf4[_0x569ec0(_0x518eac._0x26451c)][_0x569ec0(0x208)](_0x3fc970 => _0x569ec0(0x2a6) + _0x3fc970['name'])[_0x569ec0(_0x518eac._0x446629)]('\x0a') : _0x569ec0(_0x518eac._0x261430);
1016
1048
  return [
1017
- _0x2c6653(0x201) + _0x408393[_0x2c6653(_0x4337c3._0x1455ab)],
1049
+ '##\x20Server:\x20' + _0x32bdf4[_0x569ec0(_0x518eac._0x285418)],
1018
1050
  '',
1019
- '###\x20Channels',
1020
- _0x3d0433,
1051
+ _0x569ec0(_0x518eac._0x4f2f2b),
1052
+ _0x41ec80,
1021
1053
  '',
1022
- '###\x20Agents',
1023
- _0x53ed89,
1054
+ _0x569ec0(_0x518eac._0x4d2945),
1055
+ _0x159029,
1024
1056
  '',
1025
1057
  '###\x20Humans',
1026
- _0x21b414
1027
- ][_0x2c6653(_0x4337c3._0xfe1672)]('\x0a');
1058
+ _0x5dbd32
1059
+ ][_0x569ec0(0x15d)]('\x0a');
1028
1060
  }
1029
- function formatUploadResult(_0x19c5d3) {
1030
- const _0xff19f4 = {
1031
- _0xb05073: 0x235,
1032
- _0x15c761: 0x212,
1033
- _0x4d17e4: 0x19d,
1034
- _0x28c5cd: 0x2e6,
1035
- _0x1e2d45: 0x25f
1036
- }, _0xb4de2b = _0xd0824a;
1037
- return 'File\x20uploaded:\x20' + _0x19c5d3[_0xb4de2b(_0xff19f4._0xb05073)] + '\x20(' + (_0x19c5d3[_0xb4de2b(_0xff19f4._0x15c761)] / 0x400)[_0xb4de2b(_0xff19f4._0x4d17e4)](0x1) + _0xb4de2b(_0xff19f4._0x28c5cd) + _0x19c5d3[_0xb4de2b(_0xff19f4._0x1e2d45)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
1061
+ function formatUploadResult(_0x11c05b) {
1062
+ const _0x1297e9 = {
1063
+ _0x40413a: 0x1b6,
1064
+ _0x278026: 0x167
1065
+ }, _0x5693b5 = _0x15d6d8;
1066
+ return _0x5693b5(0x240) + _0x11c05b[_0x5693b5(_0x1297e9._0x40413a)] + '\x20(' + (_0x11c05b['sizeBytes'] / 0x400)[_0x5693b5(0x1bc)](0x1) + _0x5693b5(_0x1297e9._0x278026) + _0x11c05b['attachmentId'] + _0x5693b5(0x14c);
1038
1067
  }
1039
- function formatViewFileResult(_0x509769, _0x572167) {
1040
- const _0x1d2f0a = { _0x4bbca3: 0x282 }, _0x50cb1f = _0xd0824a;
1041
- return _0x572167 ? 'File\x20already\x20cached\x20at:\x20' + _0x509769 : _0x50cb1f(_0x1d2f0a._0x4bbca3) + _0x509769;
1068
+ function formatViewFileResult(_0x2da695, _0x247d5c) {
1069
+ const _0x5611bc = _0x15d6d8;
1070
+ return _0x247d5c ? 'File\x20already\x20cached\x20at:\x20' + _0x2da695 : _0x5611bc(0x125) + _0x2da695;
1042
1071
  }
1043
- function formatTaskList(_0x4a5b2b, _0x5d9ac4) {
1044
- const _0x4338c7 = {
1045
- _0x3d0dfd: 0x2aa,
1046
- _0x240513: 0x246,
1047
- _0x119c2c: 0x1ad
1048
- }, _0x5c2d9c = { _0x915f6f: 0x1ea }, _0x13f72c = _0xd0824a;
1049
- if (_0x4a5b2b[_0x13f72c(_0x4338c7._0x3d0dfd)] === 0x0)
1050
- return _0x13f72c(_0x4338c7._0x240513);
1051
- return _0x4a5b2b[_0x13f72c(_0x4338c7._0x119c2c)](_0x69535b => {
1052
- const _0x16c3f2 = _0x13f72c, _0x4e6d51 = _0x69535b['taskNumber'] == null ? '(legacy)' : '#' + _0x69535b[_0x16c3f2(0x1ea)], _0x1579db = _0x69535b[_0x16c3f2(0x23c)] ? '\x20message=' + _0x69535b['messageId'] : '', _0x181788 = _0x5d9ac4 && _0x69535b[_0x16c3f2(_0x5c2d9c._0x915f6f)] != null && _0x5d9ac4[_0x16c3f2(0x234)](_0x69535b['taskNumber']) ? _0x16c3f2(0x1d5) : '';
1053
- return _0x4e6d51 + '\x20[' + _0x69535b[_0x16c3f2(0x1f0)] + ']\x20' + _0x69535b['title'] + _0x1579db + _0x181788;
1054
- })[_0x13f72c(0x248)]('\x0a');
1072
+ function formatTaskList(_0x36ce51, _0x1b9da5) {
1073
+ const _0x2cb346 = {
1074
+ _0x1f7e6c: 0x190,
1075
+ _0x2096ca: 0x1ad,
1076
+ _0x28fdcb: 0x208,
1077
+ _0xb1781e: 0x15d
1078
+ }, _0x3b16f7 = {
1079
+ _0x266e12: 0x1b3,
1080
+ _0x17151a: 0x16d,
1081
+ _0x10a099: 0x16d,
1082
+ _0x538105: 0x23e,
1083
+ _0x4e3123: 0x132
1084
+ }, _0x206037 = _0x15d6d8;
1085
+ if (_0x36ce51[_0x206037(_0x2cb346._0x1f7e6c)] === 0x0)
1086
+ return _0x206037(_0x2cb346._0x2096ca);
1087
+ return _0x36ce51[_0x206037(_0x2cb346._0x28fdcb)](_0x1dacb2 => {
1088
+ const _0x2a2811 = _0x206037, _0x4f8175 = _0x1dacb2[_0x2a2811(0x16d)] == null ? _0x2a2811(_0x3b16f7._0x266e12) : '#' + _0x1dacb2[_0x2a2811(_0x3b16f7._0x17151a)], _0x36e225 = _0x1dacb2['messageId'] ? _0x2a2811(0x272) + _0x1dacb2['messageId'] : '', _0x5b7323 = _0x1b9da5 && _0x1dacb2[_0x2a2811(0x16d)] != null && _0x1b9da5['has'](_0x1dacb2[_0x2a2811(_0x3b16f7._0x10a099)]) ? _0x2a2811(_0x3b16f7._0x538105) : '';
1089
+ return _0x4f8175 + '\x20[' + _0x1dacb2['status'] + ']\x20' + _0x1dacb2[_0x2a2811(_0x3b16f7._0x4e3123)] + _0x36e225 + _0x5b7323;
1090
+ })[_0x206037(_0x2cb346._0xb1781e)]('\x0a');
1055
1091
  }
1056
- function formatCreatedTasks(_0x482dc8) {
1057
- const _0x4655ed = _0xd0824a;
1058
- if (_0x482dc8[_0x4655ed(0x2aa)] === 0x0)
1059
- return _0x4655ed(0x1cf);
1060
- return _0x482dc8[_0x4655ed(0x1ad)](_0x50184a => {
1061
- const _0x126361 = _0x4655ed, _0x3589dd = _0x50184a[_0x126361(0x1ea)] == null ? '(legacy)' : '#' + _0x50184a[_0x126361(0x1ea)];
1062
- return _0x3589dd + '\x20' + _0x50184a['title'] + _0x126361(0x24d) + _0x50184a[_0x126361(0x23c)];
1063
- })[_0x4655ed(0x248)]('\x0a');
1092
+ function formatCreatedTasks(_0x54b07b) {
1093
+ const _0x410cb9 = { _0x5a9306: 0x15d }, _0x2fc4c6 = {
1094
+ _0x3da679: 0x16d,
1095
+ _0x408a84: 0x1b3
1096
+ }, _0x7eb530 = _0x15d6d8;
1097
+ if (_0x54b07b[_0x7eb530(0x190)] === 0x0)
1098
+ return _0x7eb530(0x187);
1099
+ return _0x54b07b[_0x7eb530(0x208)](_0x32a854 => {
1100
+ const _0x2d75d3 = _0x7eb530, _0x448e52 = _0x32a854[_0x2d75d3(_0x2fc4c6._0x3da679)] == null ? _0x2d75d3(_0x2fc4c6._0x408a84) : '#' + _0x32a854[_0x2d75d3(_0x2fc4c6._0x3da679)];
1101
+ return _0x448e52 + '\x20' + _0x32a854['title'] + _0x2d75d3(0x272) + _0x32a854[_0x2d75d3(0x212)];
1102
+ })[_0x7eb530(_0x410cb9._0x5a9306)]('\x0a');
1064
1103
  }
1065
- function formatClaimTaskResults(_0x3246d6) {
1066
- const _0x10fcc2 = {
1067
- _0x1cbbe1: 0x2aa,
1068
- _0x38cc47: 0x1f6,
1069
- _0x1ebea8: 0x1ad
1070
- }, _0x1f3d7f = {
1071
- _0x26d9c8: 0x254,
1072
- _0x5c4888: 0x1ea,
1073
- _0x265efb: 0x240,
1074
- _0x515b74: 0x24d,
1075
- _0xc4043e: 0x23c,
1076
- _0x245d24: 0x1c4,
1077
- _0x54e5d5: 0x202,
1078
- _0x297156: 0x2b9,
1079
- _0x4e3842: 0x21f,
1080
- _0x7404d7: 0x2b8,
1081
- _0x1b7d3b: 0x2b8,
1082
- _0x156fae: 0x25e,
1083
- _0x35f754: 0x22c
1084
- }, _0x62a399 = _0xd0824a;
1085
- if (_0x3246d6[_0x62a399(_0x10fcc2._0x1cbbe1)] === 0x0)
1086
- return _0x62a399(_0x10fcc2._0x38cc47);
1087
- return _0x3246d6[_0x62a399(_0x10fcc2._0x1ebea8)](_0x1551be => {
1088
- const _0x67a447 = _0x62a399;
1089
- if (_0x1551be[_0x67a447(_0x1f3d7f._0x26d9c8)]) {
1090
- const _0x476d5d = _0x1551be[_0x67a447(_0x1f3d7f._0x5c4888)] == null ? _0x67a447(_0x1f3d7f._0x265efb) : '#' + _0x1551be['taskNumber'], _0x47fd13 = _0x1551be[_0x67a447(0x23c)] ? _0x67a447(_0x1f3d7f._0x515b74) + _0x1551be[_0x67a447(_0x1f3d7f._0xc4043e)] : '', _0x5a0499 = _0x1551be[_0x67a447(0x1a2)] ? [
1091
- 'workerHandoff=true',
1092
- _0x1551be[_0x67a447(_0x1f3d7f._0x245d24)] ? _0x67a447(0x29f) : null,
1093
- _0x1551be[_0x67a447(_0x1f3d7f._0x54e5d5)] ? _0x67a447(0x2eb) + _0x1551be['executionMode'] : null,
1094
- _0x1551be[_0x67a447(0x1d2)] ? _0x67a447(_0x1f3d7f._0x297156) + _0x1551be[_0x67a447(0x1d2)] : null,
1095
- _0x1551be[_0x67a447(0x21f)] ? _0x67a447(0x262) + _0x1551be[_0x67a447(_0x1f3d7f._0x4e3842)] : null
1096
- ][_0x67a447(_0x1f3d7f._0x7404d7)](Boolean)[_0x67a447(0x248)]('\x20') : _0x1551be[_0x67a447(0x2b6)] ? _0x67a447(0x2bb) + _0x1551be[_0x67a447(0x2b6)] : '';
1104
+ function formatClaimTaskResults(_0xa86bf4) {
1105
+ const _0x22f664 = { _0xd67b0e: 0x131 }, _0x76e3a6 = {
1106
+ _0x236951: 0x227,
1107
+ _0x58b40c: 0x16d,
1108
+ _0x3d690d: 0x212,
1109
+ _0x1c5747: 0x272,
1110
+ _0x34e229: 0x26c,
1111
+ _0x93bdb2: 0x261,
1112
+ _0x38b9ee: 0x233,
1113
+ _0x538c38: 0x19e,
1114
+ _0x2c7d22: 0x202,
1115
+ _0x184988: 0x1a7,
1116
+ _0x203554: 0x1ca,
1117
+ _0x136b04: 0x142,
1118
+ _0x2fe657: 0x1dc
1119
+ }, _0x4088f4 = _0x15d6d8;
1120
+ if (_0xa86bf4[_0x4088f4(0x190)] === 0x0)
1121
+ return _0x4088f4(_0x22f664._0xd67b0e);
1122
+ return _0xa86bf4['map'](_0x5e3ad0 => {
1123
+ const _0x133b23 = _0x4088f4;
1124
+ if (_0x5e3ad0[_0x133b23(_0x76e3a6._0x236951)]) {
1125
+ const _0x8134fd = _0x5e3ad0[_0x133b23(0x16d)] == null ? '(legacy)' : '#' + _0x5e3ad0[_0x133b23(_0x76e3a6._0x58b40c)], _0x40b7de = _0x5e3ad0[_0x133b23(_0x76e3a6._0x3d690d)] ? _0x133b23(_0x76e3a6._0x1c5747) + _0x5e3ad0[_0x133b23(0x212)] : '', _0x30a599 = _0x5e3ad0[_0x133b23(0x284)] ? [
1126
+ _0x133b23(0x293),
1127
+ _0x5e3ad0[_0x133b23(0x26f)] ? _0x133b23(_0x76e3a6._0x34e229) : null,
1128
+ _0x5e3ad0[_0x133b23(0x1f0)] ? _0x133b23(_0x76e3a6._0x93bdb2) + _0x5e3ad0[_0x133b23(0x1f0)] : null,
1129
+ _0x5e3ad0[_0x133b23(_0x76e3a6._0x38b9ee)] ? _0x133b23(0x1a5) + _0x5e3ad0[_0x133b23(0x233)] : null,
1130
+ _0x5e3ad0[_0x133b23(_0x76e3a6._0x538c38)] ? _0x133b23(_0x76e3a6._0x2c7d22) + _0x5e3ad0[_0x133b23(_0x76e3a6._0x538c38)] : null
1131
+ ][_0x133b23(_0x76e3a6._0x184988)](Boolean)[_0x133b23(0x15d)]('\x20') : _0x5e3ad0['workerHandoffError'] ? _0x133b23(_0x76e3a6._0x203554) + _0x5e3ad0[_0x133b23(_0x76e3a6._0x136b04)] : '';
1097
1132
  return [
1098
- _0x476d5d + '\x20claimed' + _0x47fd13,
1099
- _0x5a0499
1100
- ][_0x67a447(_0x1f3d7f._0x1b7d3b)](Boolean)['join']('\x20');
1133
+ _0x8134fd + _0x133b23(0x278) + _0x40b7de,
1134
+ _0x30a599
1135
+ ]['filter'](Boolean)[_0x133b23(0x15d)]('\x20');
1101
1136
  }
1102
- const _0x378660 = _0x1551be[_0x67a447(0x1ea)] == null ? _0x1551be[_0x67a447(_0x1f3d7f._0xc4043e)] ?? _0x67a447(_0x1f3d7f._0x156fae) : '#' + _0x1551be[_0x67a447(0x1ea)];
1103
- return _0x378660 + _0x67a447(_0x1f3d7f._0x35f754) + (_0x1551be[_0x67a447(0x25c)] ?? _0x67a447(0x293));
1104
- })[_0x62a399(0x248)]('\x0a');
1137
+ const _0x50b51c = _0x5e3ad0['taskNumber'] == null ? _0x5e3ad0[_0x133b23(_0x76e3a6._0x3d690d)] ?? _0x133b23(_0x76e3a6._0x2fe657) : '#' + _0x5e3ad0[_0x133b23(_0x76e3a6._0x58b40c)];
1138
+ return _0x50b51c + _0x133b23(0x216) + (_0x5e3ad0['reason'] ?? 'claim\x20failed');
1139
+ })['join']('\x0a');
1105
1140
  }
1106
- function formatUnclaimTaskResult(_0x3f7efb) {
1107
- const _0x4eb811 = { _0x446257: 0x1f0 }, _0x2247b0 = _0xd0824a, _0x427231 = _0x3f7efb[_0x2247b0(0x1ea)] == null ? _0x2247b0(0x240) : '#' + _0x3f7efb['taskNumber'];
1108
- return _0x427231 + '\x20status=' + _0x3f7efb[_0x2247b0(_0x4eb811._0x446257)];
1141
+ function formatUnclaimTaskResult(_0x27ba99) {
1142
+ const _0x2ea1c2 = {
1143
+ _0x4bf6ef: 0x16d,
1144
+ _0x4edfe9: 0x211
1145
+ }, _0x579db0 = _0x15d6d8, _0x59da56 = _0x27ba99[_0x579db0(_0x2ea1c2._0x4bf6ef)] == null ? '(legacy)' : '#' + _0x27ba99[_0x579db0(_0x2ea1c2._0x4bf6ef)];
1146
+ return _0x59da56 + _0x579db0(_0x2ea1c2._0x4edfe9) + _0x27ba99[_0x579db0(0x27f)];
1109
1147
  }
1110
- function formatUpdateTaskStatusResult(_0x52725e) {
1111
- const _0x10c550 = { _0x3051f2: 0x21d }, _0x27cf3e = _0xd0824a, _0x3c0bf1 = _0x52725e[_0x27cf3e(0x1ea)] == null ? '(legacy)' : '#' + _0x52725e[_0x27cf3e(0x1ea)];
1112
- return _0x3c0bf1 + _0x27cf3e(_0x10c550._0x3051f2) + _0x52725e['status'];
1148
+ function formatUpdateTaskStatusResult(_0x303632) {
1149
+ const _0x227591 = {
1150
+ _0x783ee: 0x1b3,
1151
+ _0x572afd: 0x211
1152
+ }, _0x20541f = _0x15d6d8, _0x4dc1e5 = _0x303632['taskNumber'] == null ? _0x20541f(_0x227591._0x783ee) : '#' + _0x303632[_0x20541f(0x16d)];
1153
+ return _0x4dc1e5 + _0x20541f(_0x227591._0x572afd) + _0x303632[_0x20541f(0x27f)];
1113
1154
  }
1114
1155
  function getChatBridgeToolDefinitions() {
1115
- const _0x1b648f = {
1116
- _0x3a9aad: 0x258,
1117
- _0x1f2595: 0x270,
1118
- _0x1dcc60: 0x29a,
1119
- _0x24fd7e: 0x2b7
1120
- }, _0x3495a5 = _0xd0824a;
1156
+ const _0x4ff73e = {
1157
+ _0x5b7d5a: 0x251,
1158
+ _0x10b9b0: 0x254,
1159
+ _0x1407b7: 0x266,
1160
+ _0x41cba4: 0x1de,
1161
+ _0x36af71: 0x1db,
1162
+ _0x2dd22b: 0x1eb,
1163
+ _0x5397b5: 0x222,
1164
+ _0x2b2480: 0x1c9,
1165
+ _0x5471a2: 0x173,
1166
+ _0x429f70: 0x27e
1167
+ }, _0x4ba0ad = _0x15d6d8;
1121
1168
  return [
1122
- { 'name': _0x3495a5(_0x1b648f._0x3a9aad) },
1123
- { 'name': _0x3495a5(0x1db) },
1124
- { 'name': _0x3495a5(_0x1b648f._0x1f2595) },
1125
- { 'name': _0x3495a5(0x229) },
1126
- { 'name': _0x3495a5(_0x1b648f._0x1dcc60) },
1127
- { 'name': 'view_file' },
1128
- { 'name': 'list_tasks' },
1129
- { 'name': 'create_tasks' },
1169
+ { 'name': _0x4ba0ad(_0x4ff73e._0x5b7d5a) },
1170
+ { 'name': _0x4ba0ad(_0x4ff73e._0x10b9b0) },
1171
+ { 'name': _0x4ba0ad(_0x4ff73e._0x1407b7) },
1172
+ { 'name': _0x4ba0ad(_0x4ff73e._0x41cba4) },
1173
+ { 'name': _0x4ba0ad(0x1e8) },
1174
+ { 'name': _0x4ba0ad(_0x4ff73e._0x36af71) },
1175
+ { 'name': _0x4ba0ad(_0x4ff73e._0x2dd22b) },
1176
+ { 'name': _0x4ba0ad(_0x4ff73e._0x5397b5) },
1130
1177
  { 'name': 'claim_tasks' },
1131
- { 'name': _0x3495a5(0x242) },
1132
- { 'name': _0x3495a5(0x2cd) },
1133
- { 'name': _0x3495a5(0x1bb) },
1178
+ { 'name': _0x4ba0ad(0x16a) },
1179
+ { 'name': _0x4ba0ad(_0x4ff73e._0x2b2480) },
1180
+ { 'name': 'get_worker_status' },
1134
1181
  { 'name': 'get_worker_result' },
1135
- { 'name': 'finish_worker' },
1136
- { 'name': _0x3495a5(0x2c6) },
1137
- { 'name': _0x3495a5(_0x1b648f._0x24fd7e) }
1182
+ { 'name': _0x4ba0ad(_0x4ff73e._0x5471a2) },
1183
+ { 'name': _0x4ba0ad(_0x4ff73e._0x429f70) },
1184
+ { 'name': 'mark_waiting_input' }
1138
1185
  ];
1139
1186
  }
1140
- function createChatBridgeHandlers(_0x3b16be) {
1141
- const _0x199cdc = {
1142
- _0x415e6b: 0x186,
1143
- _0x43b3df: 0x2ee,
1144
- _0x23e3f2: 0x17d,
1145
- _0x14034b: 0x227,
1146
- _0x2fdf72: 0x209,
1147
- _0x2c5c3e: 0x277,
1148
- _0x1563d8: 0x25c
1149
- }, _0x191d10 = {
1150
- _0x59b164: 0x29d,
1151
- _0x5386c6: 0x221,
1152
- _0x113b88: 0x1be,
1153
- _0x4baf39: 0x186,
1154
- _0x37d63a: 0x2ee,
1155
- _0x5b6a0e: 0x227,
1156
- _0x1ef272: 0x209,
1157
- _0x5956f2: 0x1d8,
1158
- _0x46ddc2: 0x1af,
1159
- _0x1cd1b8: 0x2d7,
1160
- _0x321c3d: 0x2b3
1161
- }, _0x249b15 = {
1162
- _0x4ab51a: 0x29d,
1163
- _0xc2cd0f: 0x20b,
1164
- _0x55b462: 0x29d,
1165
- _0x5bfb35: 0x2f0,
1166
- _0x24e86a: 0x186,
1167
- _0x49ece5: 0x227,
1168
- _0x5a858b: 0x199,
1169
- _0xfc0d4b: 0x1df,
1170
- _0x2fd134: 0x1d8,
1171
- _0x50b566: 0x2d7
1172
- }, _0x683e5b = {
1173
- _0x46f343: 0x1b3,
1174
- _0x1ec782: 0x181,
1175
- _0x13fd93: 0x1eb,
1176
- _0x62404e: 0x17d
1177
- }, _0x2d5fb0 = {
1178
- _0x234f70: 0x29d,
1179
- _0x57001d: 0x20b,
1180
- _0x59daa4: 0x29d,
1181
- _0x40cd44: 0x1c5,
1182
- _0x2db0ea: 0x227,
1183
- _0x882054: 0x2d7
1184
- }, _0x6e5cdc = {
1185
- _0x2b5d4c: 0x2de,
1186
- _0x30ee35: 0x1ca,
1187
- _0xaa92f0: 0x291,
1188
- _0x376364: 0x189,
1189
- _0x361871: 0x24a,
1190
- _0x11f315: 0x2bd,
1191
- _0x2335a8: 0x1fa
1192
- }, _0x4b6d38 = {
1193
- _0x1f1e0b: 0x299,
1194
- _0x40d842: 0x28f,
1195
- _0x4cc7e7: 0x1e3,
1196
- _0xba26cd: 0x23e
1197
- }, _0x2cf5d0 = { _0x437005: 0x291 }, _0x37ccff = { _0x14c313: 0x1ad }, _0x5df220 = {
1198
- _0x194e72: 0x23c,
1199
- _0x208f95: 0x1a0
1200
- }, _0x112db9 = {
1201
- _0x4473e8: 0x291,
1202
- _0x461a71: 0x2db,
1203
- _0x4320a7: 0x18d
1204
- }, _0x2376df = {
1205
- _0x4dfe60: 0x29d,
1206
- _0x2c89ba: 0x221,
1207
- _0x56b39d: 0x18e,
1208
- _0x40b3ee: 0x221,
1209
- _0x5043a6: 0x23e,
1210
- _0x5ddfdb: 0x1f0,
1211
- _0x14bc9b: 0x2e7,
1212
- _0x2b27c4: 0x2c2,
1213
- _0x32312a: 0x1b4,
1214
- _0x455c08: 0x2aa,
1215
- _0x4cc3ec: 0x18d,
1216
- _0x56c39c: 0x2ec,
1217
- _0x3c073d: 0x1ea
1218
- }, _0x1ee0b4 = {
1219
- _0x3320f0: 0x291,
1220
- _0x1b7c91: 0x1bc,
1221
- _0x3de43c: 0x2b8
1222
- }, _0x544954 = {
1223
- _0x2913bb: 0x231,
1224
- _0x554c14: 0x1da,
1225
- _0x41d9e2: 0x240,
1226
- _0x29ff84: 0x2dd,
1227
- _0x5899c3: 0x1b4,
1228
- _0x172048: 0x196,
1229
- _0x492dfc: 0x236,
1230
- _0x4e068a: 0x1e9,
1231
- _0x16f8f8: 0x226,
1232
- _0x72f9: 0x186,
1233
- _0x515638: 0x2ee,
1234
- _0x1987c3: 0x209,
1235
- _0x58bc21: 0x1d8,
1236
- _0x4bdab6: 0x193,
1237
- _0x1f7913: 0x2af,
1238
- _0x3f712a: 0x1f9,
1239
- _0x1d3156: 0x248,
1240
- _0x35b5ac: 0x1d4,
1241
- _0x462314: 0x217,
1242
- _0x1ce093: 0x2f8,
1243
- _0x3e075f: 0x217
1244
- }, _0x3d37a3 = {
1245
- _0xba4771: 0x221,
1246
- _0x1661a5: 0x231,
1247
- _0x350800: 0x23e,
1248
- _0x59aa5a: 0x1a0,
1249
- _0x1aa44d: 0x183,
1250
- _0x1e1ca0: 0x183,
1251
- _0x3358f7: 0x291,
1252
- _0x2593f4: 0x224,
1253
- _0x1ae347: 0x2ec,
1254
- _0x4e1afd: 0x240,
1255
- _0x299ccc: 0x23c,
1256
- _0x4fa208: 0x1d9,
1257
- _0x50a651: 0x28a,
1258
- _0xf6caa9: 0x1ff,
1259
- _0x4534be: 0x1ea,
1260
- _0x591375: 0x2df,
1261
- _0x38a634: 0x2cb,
1262
- _0x2762ff: 0x2f6,
1263
- _0x36bc50: 0x2f6
1187
+ function createChatBridgeHandlers(_0x783ce3) {
1188
+ const _0xdd6200 = {
1189
+ _0x561c26: 0x17b,
1190
+ _0x4d57d5: 0x14b,
1191
+ _0x56c091: 0x24d,
1192
+ _0x480e89: 0x1f6,
1193
+ _0x5ae416: 0x1c5,
1194
+ _0xb2b391: 0x276
1195
+ }, _0x1d15da = {
1196
+ _0x432cbc: 0x1d4,
1197
+ _0x5220cd: 0x15b,
1198
+ _0xf857d2: 0x18b,
1199
+ _0x245ccf: 0x12a,
1200
+ _0x52d8af: 0x15b,
1201
+ _0x5597ef: 0x1c5,
1202
+ _0x36967c: 0x122,
1203
+ _0x1d0814: 0x1b0
1204
+ }, _0x2b29a9 = {
1205
+ _0x297571: 0x17b,
1206
+ _0x2b506d: 0x1d4,
1207
+ _0x37ca03: 0x14b,
1208
+ _0xce1a12: 0x253,
1209
+ _0x11bb22: 0x1c7,
1210
+ _0x19a7d1: 0x1b0
1211
+ }, _0x554245 = {
1212
+ _0x7d9090: 0x1d4,
1213
+ _0x46f1d9: 0x1f6
1214
+ }, _0x5eda22 = {
1215
+ _0x33f96c: 0x1f6,
1216
+ _0x45fc75: 0x1b0,
1217
+ _0x1019ef: 0x1b0
1218
+ }, _0x4364de = {
1219
+ _0x3e905e: 0x126,
1220
+ _0x331f81: 0x177,
1221
+ _0xdcbc6a: 0x153,
1222
+ _0x32eb45: 0x141
1223
+ }, _0x354a35 = {
1224
+ _0x714231: 0x196,
1225
+ _0xe55152: 0x1c1,
1226
+ _0x625f2a: 0x208
1227
+ }, _0x371f1c = { _0x5876b3: 0x236 }, _0x2be618 = {
1228
+ _0x59c6af: 0x288,
1229
+ _0x46fd55: 0x15b,
1230
+ _0x150a09: 0x194,
1231
+ _0x21c227: 0x181,
1232
+ _0x443ead: 0x190,
1233
+ _0x157249: 0x16d,
1234
+ _0x246e9b: 0x155,
1235
+ _0x53770c: 0x1f1,
1236
+ _0x3a701c: 0x16d
1237
+ }, _0x29cc42 = { _0x33961c: 0x288 }, _0x109f69 = { _0x549000: 0x189 }, _0x1c712d = {
1238
+ _0x48e42c: 0x288,
1239
+ _0x3c460c: 0x19a,
1240
+ _0x20d1d3: 0x20d
1241
+ }, _0x2ec10b = {
1242
+ _0x2eaa8a: 0x19a,
1243
+ _0x138f0e: 0x15b,
1244
+ _0x4b3345: 0x28b,
1245
+ _0x132a87: 0x16d,
1246
+ _0x5a6c97: 0x1b3,
1247
+ _0x1b0f86: 0x24b,
1248
+ _0x201b72: 0x25e,
1249
+ _0x2d1fe7: 0x24c,
1250
+ _0x573f5b: 0x1d4,
1251
+ _0x6d1101: 0x199,
1252
+ _0x17bc27: 0x14b,
1253
+ _0x30402b: 0x255,
1254
+ _0x26725c: 0x19c,
1255
+ _0x43ec72: 0x14a,
1256
+ _0x3b6b67: 0x2a0,
1257
+ _0xd874f1: 0x1fe,
1258
+ _0x4e7cf2: 0x29b
1259
+ }, _0x48769b = {
1260
+ _0x318c93: 0x1d4,
1261
+ _0x4f1b19: 0x1f6,
1262
+ _0x23c946: 0x155
1263
+ }, _0x2186e0 = {
1264
+ _0x2c64ab: 0x28d,
1265
+ _0x398104: 0x17f,
1266
+ _0x2ee000: 0x268,
1267
+ _0x17c4db: 0x20d,
1268
+ _0x339e27: 0x1b3,
1269
+ _0x229c18: 0x213,
1270
+ _0x1d66ac: 0x212,
1271
+ _0x11bf9d: 0x263,
1272
+ _0x22a602: 0x1a9,
1273
+ _0x1822d3: 0x176,
1274
+ _0x3e045d: 0x14b,
1275
+ _0x5f3d48: 0x15b,
1276
+ _0xdf7408: 0x2a2,
1277
+ _0x49b5f6: 0x1c5,
1278
+ _0x4b1db1: 0x1bb,
1279
+ _0x3df26f: 0x17e,
1280
+ _0x4d58df: 0x257
1264
1281
  };
1265
- async function _0x3138ed(_0xc4df84) {
1266
- const _0x525fe8 = _0x5931;
1267
- if (!_0x3b16be['daemonLocalUrl'] || !_0x3b16be[_0x525fe8(_0x3d37a3._0xba4771)] || _0x3b16be[_0x525fe8(_0x3d37a3._0x1661a5)] || _0x3b16be['workerModeEnabled'] !== !![])
1282
+ async function _0x23bc3f(_0x5418da) {
1283
+ const _0x1524c2 = _0x3844;
1284
+ if (!_0x783ce3['daemonLocalUrl'] || !_0x783ce3['agentId'] || _0x783ce3[_0x1524c2(0x19a)] || _0x783ce3[_0x1524c2(_0x2186e0._0x2c64ab)] !== !![])
1268
1285
  return null;
1269
- const _0x4fcacf = parseTarget(_0xc4df84[_0x525fe8(_0x3d37a3._0x350800)]);
1270
- if (_0x4fcacf[_0x525fe8(0x1e1)] !== 'channel')
1286
+ const _0x4f38cf = parseTarget(_0x5418da[_0x1524c2(0x268)]);
1287
+ if (_0x4f38cf[_0x1524c2(_0x2186e0._0x398104)] !== _0x1524c2(_0x2186e0._0x2ee000))
1271
1288
  return null;
1272
- const _0x45a9e9 = _0xc4df84[_0x525fe8(_0x3d37a3._0x59aa5a)] != null ? _0x4fcacf[_0x525fe8(_0x3d37a3._0x1aa44d)] + ':t' + _0xc4df84[_0x525fe8(0x1a0)] : _0x4fcacf[_0x525fe8(_0x3d37a3._0x1e1ca0)] + ':' + _0xc4df84[_0x525fe8(0x23c)];
1273
- let _0x2c6ba5;
1289
+ const _0x3017e0 = _0x5418da['threadNumber'] != null ? _0x4f38cf[_0x1524c2(0x185)] + ':t' + _0x5418da['threadNumber'] : _0x4f38cf[_0x1524c2(0x185)] + ':' + _0x5418da[_0x1524c2(0x212)];
1290
+ let _0x5ef5b6;
1274
1291
  try {
1275
- const _0x2182a5 = await _0x3b16be[_0x525fe8(_0x3d37a3._0x3358f7)][_0x525fe8(_0x3d37a3._0x2593f4)]({
1276
- 'channel': _0x45a9e9,
1292
+ const _0xd52fa7 = await _0x783ce3['client'][_0x1524c2(0x189)]({
1293
+ 'channel': _0x3017e0,
1277
1294
  'limit': 0x14
1278
1295
  });
1279
- _0x2c6ba5 = _0x2182a5['messages'][_0x525fe8(_0x3d37a3._0x1ae347)](_0x343cd2 => _0x343cd2[_0x525fe8(0x23c)] === _0xc4df84[_0x525fe8(0x23c)]);
1296
+ _0x5ef5b6 = _0xd52fa7[_0x1524c2(_0x2186e0._0x17c4db)]['find'](_0x48c7ae => _0x48c7ae[_0x1524c2(0x212)] === _0x5418da['messageId']);
1280
1297
  } catch {
1281
- _0x2c6ba5 = void 0x0;
1298
+ _0x5ef5b6 = void 0x0;
1282
1299
  }
1283
- const _0xc8f352 = _0xc4df84[_0x525fe8(0x1ea)] == null ? _0x525fe8(_0x3d37a3._0x4e1afd) : '#' + _0xc4df84[_0x525fe8(0x1ea)], _0x370c10 = [
1284
- '[target=' + _0x45a9e9 + _0x525fe8(0x251) + _0xc4df84[_0x525fe8(_0x3d37a3._0x299ccc)]['slice'](0x0, 0x8) + _0x525fe8(_0x3d37a3._0x4fa208) + new Date()['toISOString']() + ']\x20@system:\x20[claim-handoff]\x20' + _0xc8f352 + _0x525fe8(0x253),
1300
+ const _0x60533c = _0x5418da[_0x1524c2(0x16d)] == null ? _0x1524c2(_0x2186e0._0x339e27) : '#' + _0x5418da['taskNumber'], _0x57fb3d = [
1301
+ _0x1524c2(_0x2186e0._0x229c18) + _0x3017e0 + '\x20msg=' + _0x5418da[_0x1524c2(_0x2186e0._0x1d66ac)][_0x1524c2(_0x2186e0._0x11bf9d)](0x0, 0x8) + _0x1524c2(0x120) + new Date()[_0x1524c2(0x25e)]() + _0x1524c2(0x264) + _0x60533c + '\x20已切换到\x20worker\x20执行',
1285
1302
  '',
1286
- _0x2c6ba5 ? _0x525fe8(_0x3d37a3._0x50a651) + _0x2c6ba5[_0x525fe8(0x236)] : 'Root\x20task\x20message\x20id:\x20' + _0xc4df84[_0x525fe8(0x23c)],
1303
+ _0x5ef5b6 ? _0x1524c2(0x172) + _0x5ef5b6[_0x1524c2(0x23f)] : _0x1524c2(0x25c) + _0x5418da[_0x1524c2(0x212)],
1287
1304
  '',
1288
- 'Thread\x20target:\x20' + _0x45a9e9,
1289
- 'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
1290
- ][_0x525fe8(0x248)]('\x0a'), _0x207be6 = await fetch(_0x3b16be['daemonLocalUrl'] + _0x525fe8(0x23b), {
1291
- 'method': 'POST',
1292
- 'headers': { 'Content-Type': _0x525fe8(0x2ee) },
1293
- 'body': JSON['stringify']({
1294
- 'agent_id': _0x3b16be['agentId'],
1295
- 'thread_target': _0x45a9e9,
1305
+ _0x1524c2(_0x2186e0._0x22a602) + _0x3017e0,
1306
+ _0x1524c2(0x238)
1307
+ ][_0x1524c2(0x15d)]('\x0a'), _0x19141e = await fetch(_0x783ce3[_0x1524c2(0x1d4)] + _0x1524c2(_0x2186e0._0x1822d3), {
1308
+ 'method': _0x1524c2(0x199),
1309
+ 'headers': { 'Content-Type': _0x1524c2(0x12a) },
1310
+ 'body': JSON[_0x1524c2(_0x2186e0._0x3e045d)]({
1311
+ 'agent_id': _0x783ce3[_0x1524c2(_0x2186e0._0x5f3d48)],
1312
+ 'thread_target': _0x3017e0,
1296
1313
  'spawn_packet': {
1297
- 'replyTarget': _0x45a9e9,
1298
- ..._0xc4df84[_0x525fe8(0x1ff)] ? { 'taskId': _0xc4df84[_0x525fe8(_0x3d37a3._0xf6caa9)] } : _0xc4df84[_0x525fe8(_0x3d37a3._0x4534be)] != null ? { 'taskId': _0x525fe8(_0x3d37a3._0x591375) + _0xc4df84['taskNumber'] } : {}
1314
+ 'replyTarget': _0x3017e0,
1315
+ ..._0x5418da['taskId'] ? { 'taskId': _0x5418da[_0x1524c2(0x133)] } : _0x5418da['taskNumber'] != null ? { 'taskId': _0x1524c2(_0x2186e0._0xdf7408) + _0x5418da[_0x1524c2(0x16d)] } : {}
1299
1316
  },
1300
1317
  'payload': {
1301
- 'mode': _0x525fe8(0x237),
1302
- 'text': _0x370c10
1318
+ 'mode': _0x1524c2(0x265),
1319
+ 'text': _0x57fb3d
1303
1320
  }
1304
1321
  })
1305
- }), _0x54adc4 = await _0x207be6['json']();
1306
- if (!_0x54adc4['ok'])
1307
- throw new Error(_0x54adc4[_0x525fe8(0x1d8)] ?? _0x525fe8(_0x3d37a3._0x38a634));
1322
+ }), _0x1a5a0c = await _0x19141e['json']();
1323
+ if (!_0x1a5a0c['ok'])
1324
+ throw new Error(_0x1a5a0c[_0x1524c2(_0x2186e0._0x49b5f6)] ?? 'worker\x20handoff\x20failed');
1308
1325
  return {
1309
1326
  'stopMain': !![],
1310
- 'threadTarget': _0x45a9e9,
1311
- 'workerDisposition': _0x54adc4[_0x525fe8(0x1f9)] === _0x525fe8(_0x3d37a3._0x2762ff) ? _0x525fe8(_0x3d37a3._0x36bc50) : _0x525fe8(0x21c),
1327
+ 'threadTarget': _0x3017e0,
1328
+ 'workerDisposition': _0x1a5a0c[_0x1524c2(_0x2186e0._0x4b1db1)] === _0x1524c2(0x138) ? 'queued' : 'started',
1312
1329
  'workerHandoff': !![],
1313
- 'workerSessionId': _0x54adc4['worker_session_id'] ?? '',
1314
- 'executionMode': 'worker'
1330
+ 'workerSessionId': _0x1a5a0c[_0x1524c2(_0x2186e0._0x3df26f)] ?? '',
1331
+ 'executionMode': _0x1524c2(_0x2186e0._0x4d58df)
1315
1332
  };
1316
1333
  }
1317
- async function _0x35e251() {
1318
- const _0x366968 = _0x5931;
1319
- if (!_0x3b16be['daemonLocalUrl'] || !_0x3b16be['agentId'] || _0x3b16be[_0x366968(0x231)])
1334
+ async function _0x3b6e28() {
1335
+ const _0x331ee0 = _0x3844;
1336
+ if (!_0x783ce3[_0x331ee0(_0x48769b._0x318c93)] || !_0x783ce3[_0x331ee0(0x15b)] || _0x783ce3[_0x331ee0(0x19a)])
1320
1337
  return null;
1321
1338
  try {
1322
- const _0x59bb19 = await fetch(_0x3b16be[_0x366968(0x29d)] + _0x366968(0x18e) + encodeURIComponent(_0x3b16be[_0x366968(0x221)])), _0x868817 = await _0x59bb19['json']();
1323
- if (!_0x868817['ok'])
1339
+ const _0x266594 = await fetch(_0x783ce3[_0x331ee0(0x1d4)] + _0x331ee0(0x290) + encodeURIComponent(_0x783ce3[_0x331ee0(0x15b)])), _0x545529 = await _0x266594[_0x331ee0(_0x48769b._0x4f1b19)]();
1340
+ if (!_0x545529['ok'])
1324
1341
  return null;
1325
- const _0x47b0e8 = new Set();
1326
- for (const _0x118680 of _0x868817[_0x366968(0x26b)]) {
1327
- _0x118680[_0x366968(0x1f0)] !== 'destroyed' && _0x118680[_0x366968(0x2e7)] && _0x47b0e8['add'](_0x118680['thread_target']);
1342
+ const _0x1bcdbf = new Set();
1343
+ for (const _0x21c695 of _0x545529[_0x331ee0(0x194)]) {
1344
+ _0x21c695[_0x331ee0(0x27f)] !== 'destroyed' && _0x21c695[_0x331ee0(0x181)] && _0x1bcdbf[_0x331ee0(_0x48769b._0x23c946)](_0x21c695['thread_target']);
1328
1345
  }
1329
- return _0x47b0e8[_0x366968(0x1b1)] > 0x0 ? _0x47b0e8 : null;
1346
+ return _0x1bcdbf[_0x331ee0(0x1b5)] > 0x0 ? _0x1bcdbf : null;
1330
1347
  } catch {
1331
1348
  return null;
1332
1349
  }
1333
1350
  }
1334
1351
  return {
1335
- async 'send_message'(_0xf2855a) {
1336
- const _0x1c7aa3 = _0x5931;
1337
- if (!_0x3b16be[_0x1c7aa3(_0x544954._0x2913bb)] && _0x3b16be[_0x1c7aa3(0x1f2)] && _0x3b16be['daemonLocalUrl'] && _0x3b16be[_0x1c7aa3(0x221)]) {
1338
- const _0x18a123 = await _0x3b16be[_0x1c7aa3(0x291)]['resolveTarget'](_0xf2855a['target']);
1339
- if (_0x18a123[_0x1c7aa3(_0x544954._0x554c14)] && _0x18a123['threadId']) {
1340
- const _0x4e57c7 = _0x18a123[_0x1c7aa3(0x1da)]['taskNumber'] != null ? '#' + _0x18a123['task'][_0x1c7aa3(0x1ea)] : _0x1c7aa3(_0x544954._0x41d9e2), _0x2edaf9 = _0x18a123[_0x1c7aa3(0x1a0)] != null ? _0x18a123[_0x1c7aa3(0x217)] + ':t' + _0x18a123[_0x1c7aa3(0x1a0)] : _0x18a123[_0x1c7aa3(0x217)] + ':' + _0x18a123[_0x1c7aa3(_0x544954._0x29ff84)][_0x1c7aa3(_0x544954._0x5899c3)](0x0, 0x8), _0x1c6214 = [
1341
- _0x1c7aa3(_0x544954._0x172048) + _0x2edaf9 + _0x1c7aa3(0x1fd) + new Date()['toISOString']() + _0x1c7aa3(0x18f),
1352
+ async 'send_message'(_0x255485) {
1353
+ const _0x32c2a0 = _0x3844;
1354
+ if (!_0x783ce3[_0x32c2a0(_0x2ec10b._0x2eaa8a)] && _0x783ce3[_0x32c2a0(0x28d)] && _0x783ce3['daemonLocalUrl'] && _0x783ce3[_0x32c2a0(_0x2ec10b._0x138f0e)]) {
1355
+ const _0x13c297 = await _0x783ce3['client']['resolveTarget'](_0x255485[_0x32c2a0(0x1fe)]);
1356
+ if (_0x13c297[_0x32c2a0(0x2a5)] && _0x13c297[_0x32c2a0(_0x2ec10b._0x4b3345)]) {
1357
+ const _0xdf26a4 = _0x13c297[_0x32c2a0(0x2a5)][_0x32c2a0(_0x2ec10b._0x132a87)] != null ? '#' + _0x13c297[_0x32c2a0(0x2a5)][_0x32c2a0(_0x2ec10b._0x132a87)] : _0x32c2a0(_0x2ec10b._0x5a6c97), _0x52f36d = _0x13c297[_0x32c2a0(_0x2ec10b._0x1b0f86)] != null ? _0x13c297[_0x32c2a0(0x1fe)] + ':t' + _0x13c297[_0x32c2a0(0x24b)] : _0x13c297[_0x32c2a0(0x1fe)] + ':' + _0x13c297[_0x32c2a0(_0x2ec10b._0x4b3345)]['slice'](0x0, 0x8), _0x565c4e = [
1358
+ '[target=' + _0x52f36d + _0x32c2a0(0x178) + new Date()[_0x32c2a0(_0x2ec10b._0x201b72)]() + ']\x20@system:\x20[enter-handoff]',
1342
1359
  '',
1343
- _0x1c7aa3(0x243) + _0xf2855a[_0x1c7aa3(_0x544954._0x492dfc)],
1344
- _0x1c7aa3(_0x544954._0x4e068a) + _0x4e57c7 + '\x20(' + _0x18a123[_0x1c7aa3(0x1da)][_0x1c7aa3(0x1ff)] + ')',
1345
- 'Thread\x20target:\x20' + _0x2edaf9,
1346
- _0x1c7aa3(_0x544954._0x16f8f8)
1347
- ]['join']('\x0a'), _0x2ef2da = await fetch(_0x3b16be['daemonLocalUrl'] + '/workers/deliver', {
1348
- 'method': _0x1c7aa3(_0x544954._0x72f9),
1349
- 'headers': { 'Content-Type': _0x1c7aa3(_0x544954._0x515638) },
1350
- 'body': JSON['stringify']({
1351
- 'agent_id': _0x3b16be[_0x1c7aa3(0x221)],
1352
- 'thread_target': _0x2edaf9,
1360
+ _0x32c2a0(_0x2ec10b._0x2d1fe7) + _0x255485[_0x32c2a0(0x23f)],
1361
+ _0x32c2a0(0x239) + _0xdf26a4 + '\x20(' + _0x13c297['task'][_0x32c2a0(0x133)] + ')',
1362
+ _0x32c2a0(0x1a9) + _0x52f36d,
1363
+ _0x32c2a0(0x154)
1364
+ ][_0x32c2a0(0x15d)]('\x0a'), _0x18f7ea = await fetch(_0x783ce3[_0x32c2a0(_0x2ec10b._0x573f5b)] + '/workers/deliver', {
1365
+ 'method': _0x32c2a0(_0x2ec10b._0x6d1101),
1366
+ 'headers': { 'Content-Type': 'application/json' },
1367
+ 'body': JSON[_0x32c2a0(_0x2ec10b._0x17bc27)]({
1368
+ 'agent_id': _0x783ce3[_0x32c2a0(0x15b)],
1369
+ 'thread_target': _0x52f36d,
1353
1370
  'spawn_packet': {
1354
- 'replyTarget': _0x2edaf9,
1355
- 'taskId': _0x18a123[_0x1c7aa3(0x1da)][_0x1c7aa3(0x1ff)]
1371
+ 'replyTarget': _0x52f36d,
1372
+ 'taskId': _0x13c297['task']['taskId']
1356
1373
  },
1357
1374
  'payload': {
1358
- 'mode': _0x1c7aa3(0x237),
1359
- 'text': _0x1c6214
1375
+ 'mode': 'user',
1376
+ 'text': _0x565c4e
1360
1377
  }
1361
1378
  })
1362
- }), _0x5b85e6 = await _0x2ef2da[_0x1c7aa3(_0x544954._0x1987c3)]();
1363
- if (!_0x5b85e6['ok'])
1364
- throw new Error(_0x5b85e6[_0x1c7aa3(_0x544954._0x58bc21)] ?? _0x1c7aa3(_0x544954._0x4bdab6));
1379
+ }), _0x37137b = await _0x18f7ea['json']();
1380
+ if (!_0x37137b['ok'])
1381
+ throw new Error(_0x37137b[_0x32c2a0(0x1c5)] ?? _0x32c2a0(_0x2ec10b._0x30402b));
1365
1382
  return [
1366
- _0x1c7aa3(0x1cb) + _0x4e57c7 + '\x20in\x20' + _0x2edaf9 + '.',
1383
+ 'Handoff\x20to\x20worker\x20for\x20task\x20' + _0xdf26a4 + '\x20in\x20' + _0x52f36d + '.',
1367
1384
  'stopMain=true\x20executionMode=worker',
1368
- _0x1c7aa3(_0x544954._0x1f7913) + (_0x5b85e6[_0x1c7aa3(_0x544954._0x3f712a)] === 'queued' ? _0x1c7aa3(0x2f6) : 'started') + '.',
1385
+ _0x32c2a0(_0x2ec10b._0x26725c) + (_0x37137b[_0x32c2a0(0x1bb)] === _0x32c2a0(0x138) ? 'queued' : _0x32c2a0(_0x2ec10b._0x43ec72)) + '.',
1369
1386
  'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
1370
- ][_0x1c7aa3(_0x544954._0x1d3156)]('\x20');
1387
+ ]['join']('\x20');
1371
1388
  }
1372
1389
  }
1373
- const _0x4f52b6 = await _0x3b16be['client'][_0x1c7aa3(0x1ee)]({
1374
- 'attachmentIds': _0xf2855a[_0x1c7aa3(_0x544954._0x35b5ac)],
1375
- 'content': _0xf2855a[_0x1c7aa3(0x236)],
1376
- 'target': _0xf2855a[_0x1c7aa3(_0x544954._0x462314)],
1377
- 'visibility': _0xf2855a['visibility']
1390
+ const _0x236043 = await _0x783ce3['client']['sendMessage']({
1391
+ 'attachmentIds': _0x255485[_0x32c2a0(_0x2ec10b._0x3b6b67)],
1392
+ 'content': _0x255485['content'],
1393
+ 'target': _0x255485[_0x32c2a0(0x1fe)],
1394
+ 'visibility': _0x255485[_0x32c2a0(0x24a)]
1378
1395
  });
1379
- return _0x1c7aa3(_0x544954._0x1ce093) + _0xf2855a[_0x1c7aa3(_0x544954._0x3e075f)] + '.\x20Message\x20ID:\x20' + _0x4f52b6[_0x1c7aa3(0x23c)];
1396
+ return _0x32c2a0(0x12f) + _0x255485[_0x32c2a0(_0x2ec10b._0xd874f1)] + _0x32c2a0(_0x2ec10b._0x4e7cf2) + _0x236043[_0x32c2a0(0x212)];
1380
1397
  },
1381
1398
  async 'check_messages'() {
1382
- const _0x4601cc = _0x5931, _0x165415 = await _0x3b16be[_0x4601cc(_0x1ee0b4._0x3320f0)][_0x4601cc(_0x1ee0b4._0x1b7c91)]();
1383
- if (!_0x3b16be[_0x4601cc(0x231)]) {
1384
- const _0x10e7cd = await _0x35e251();
1385
- if (_0x10e7cd)
1386
- return formatCheckMessages(_0x165415['messages'][_0x4601cc(_0x1ee0b4._0x3de43c)](_0x37e48b => !_0x10e7cd['has'](_0x37e48b[_0x4601cc(0x217)])));
1399
+ const _0x30684a = _0x3844, _0x3f2d23 = await _0x783ce3[_0x30684a(_0x1c712d._0x48e42c)][_0x30684a(0x165)]();
1400
+ if (!_0x783ce3[_0x30684a(_0x1c712d._0x3c460c)]) {
1401
+ const _0x1b9dc3 = await _0x3b6e28();
1402
+ if (_0x1b9dc3)
1403
+ return formatCheckMessages(_0x3f2d23[_0x30684a(_0x1c712d._0x20d1d3)]['filter'](_0x2f30a8 => !_0x1b9dc3[_0x30684a(0x248)](_0x2f30a8['target'])));
1387
1404
  }
1388
- return formatCheckMessages(_0x165415[_0x4601cc(0x23d)]);
1405
+ return formatCheckMessages(_0x3f2d23[_0x30684a(0x20d)]);
1389
1406
  },
1390
- async 'read_history'(_0x5e04a2) {
1391
- const _0x1708bf = _0x5931, _0x10e86c = await _0x3b16be['client'][_0x1708bf(0x224)](_0x5e04a2);
1392
- return formatHistory(_0x10e86c);
1407
+ async 'read_history'(_0x445ea1) {
1408
+ const _0x286d4b = _0x3844, _0x17af99 = await _0x783ce3[_0x286d4b(0x288)][_0x286d4b(_0x109f69._0x549000)](_0x445ea1);
1409
+ return formatHistory(_0x17af99);
1393
1410
  },
1394
1411
  async 'list_server'() {
1395
- const _0x3fd7cb = _0x5931, _0x47d7f1 = await _0x3b16be['client'][_0x3fd7cb(0x1e5)]();
1396
- return formatServerDirectory(_0x47d7f1);
1412
+ const _0x5325f2 = _0x3844, _0x21b2f9 = await _0x783ce3[_0x5325f2(_0x29cc42._0x33961c)][_0x5325f2(0x11f)]();
1413
+ return formatServerDirectory(_0x21b2f9);
1397
1414
  },
1398
- async 'list_tasks'(_0x13a7ca) {
1399
- const _0x2078dd = _0x5931, _0x518552 = await _0x3b16be[_0x2078dd(0x291)][_0x2078dd(0x1a5)](_0x13a7ca);
1400
- let _0x2ccd51;
1401
- if (_0x3b16be[_0x2078dd(_0x2376df._0x4dfe60)] && _0x3b16be[_0x2078dd(_0x2376df._0x2c89ba)])
1415
+ async 'list_tasks'(_0x52254d) {
1416
+ const _0x200762 = _0x3844, _0x392033 = await _0x783ce3[_0x200762(_0x2be618._0x59c6af)]['listTasks'](_0x52254d);
1417
+ let _0x55f818;
1418
+ if (_0x783ce3['daemonLocalUrl'] && _0x783ce3[_0x200762(_0x2be618._0x46fd55)])
1402
1419
  try {
1403
- const _0x586368 = await fetch(_0x3b16be['daemonLocalUrl'] + _0x2078dd(_0x2376df._0x56b39d) + encodeURIComponent(_0x3b16be[_0x2078dd(_0x2376df._0x40b3ee)])), _0x14cfe0 = await _0x586368[_0x2078dd(0x209)]();
1404
- if (_0x14cfe0['ok']) {
1405
- const _0x19e20b = _0x13a7ca[_0x2078dd(_0x2376df._0x5043a6)] + ':';
1406
- _0x2ccd51 = new Set();
1407
- for (const _0x51fd20 of _0x14cfe0['workers']) {
1408
- if (_0x51fd20[_0x2078dd(_0x2376df._0x5ddfdb)] === _0x2078dd(0x2d0))
1420
+ const _0x5c2cda = await fetch(_0x783ce3[_0x200762(0x1d4)] + '/workers/list?agent_id=' + encodeURIComponent(_0x783ce3[_0x200762(0x15b)])), _0x30c668 = await _0x5c2cda[_0x200762(0x1f6)]();
1421
+ if (_0x30c668['ok']) {
1422
+ const _0xec47d0 = _0x52254d[_0x200762(0x268)] + ':';
1423
+ _0x55f818 = new Set();
1424
+ for (const _0x592a7b of _0x30c668[_0x200762(_0x2be618._0x150a09)]) {
1425
+ if (_0x592a7b['status'] === _0x200762(0x170))
1409
1426
  continue;
1410
- if (_0x51fd20[_0x2078dd(_0x2376df._0x14bc9b)]?.[_0x2078dd(_0x2376df._0x2b27c4)](_0x19e20b)) {
1411
- const _0xce7845 = _0x51fd20['thread_target'][_0x2078dd(_0x2376df._0x32312a)](_0x19e20b[_0x2078dd(_0x2376df._0x455c08)]), _0x37c0f7 = _0x518552[_0x2078dd(_0x2376df._0x4cc3ec)][_0x2078dd(_0x2376df._0x56c39c)](_0x40499f => _0x40499f[_0x2078dd(0x23c)]?.[_0x2078dd(0x2c2)](_0xce7845) === !![]);
1412
- if (_0x37c0f7?.[_0x2078dd(_0x2376df._0x3c073d)] != null) {
1413
- _0x2ccd51['add'](_0x37c0f7[_0x2078dd(_0x2376df._0x3c073d)]);
1427
+ if (_0x592a7b[_0x200762(_0x2be618._0x21c227)]?.['startsWith'](_0xec47d0)) {
1428
+ const _0x178e73 = _0x592a7b[_0x200762(0x181)]['slice'](_0xec47d0[_0x200762(_0x2be618._0x443ead)]), _0x93e99 = _0x392033['tasks']['find'](_0x952db0 => _0x952db0[_0x200762(0x212)]?.['startsWith'](_0x178e73) === !![]);
1429
+ if (_0x93e99?.[_0x200762(_0x2be618._0x157249)] != null) {
1430
+ _0x55f818[_0x200762(_0x2be618._0x246e9b)](_0x93e99[_0x200762(0x16d)]);
1414
1431
  continue;
1415
1432
  }
1416
1433
  }
1417
- if (_0x51fd20[_0x2078dd(0x182)]) {
1418
- const _0x4bd9f2 = _0x518552[_0x2078dd(0x18d)][_0x2078dd(_0x2376df._0x56c39c)](_0x292b43 => _0x292b43[_0x2078dd(0x1ff)] === _0x51fd20[_0x2078dd(0x182)]);
1419
- _0x4bd9f2?.['taskNumber'] != null && _0x2ccd51[_0x2078dd(0x274)](_0x4bd9f2['taskNumber']);
1434
+ if (_0x592a7b[_0x200762(_0x2be618._0x53770c)]) {
1435
+ const _0x552645 = _0x392033['tasks'][_0x200762(0x21e)](_0xe5ded5 => _0xe5ded5['taskId'] === _0x592a7b[_0x200762(0x1f1)]);
1436
+ _0x552645?.[_0x200762(0x16d)] != null && _0x55f818[_0x200762(0x155)](_0x552645[_0x200762(_0x2be618._0x3a701c)]);
1420
1437
  }
1421
1438
  }
1422
1439
  }
1423
1440
  } catch {
1424
1441
  }
1425
- return formatTaskList(_0x518552[_0x2078dd(0x18d)], _0x2ccd51);
1442
+ return formatTaskList(_0x392033[_0x200762(0x236)], _0x55f818);
1426
1443
  },
1427
- async 'create_tasks'(_0xe3129b) {
1428
- const _0x27cfb7 = _0x5931, _0x154eef = await _0x3b16be[_0x27cfb7(_0x112db9._0x4473e8)][_0x27cfb7(_0x112db9._0x461a71)](_0xe3129b);
1429
- return formatCreatedTasks(_0x154eef[_0x27cfb7(_0x112db9._0x4320a7)]);
1444
+ async 'create_tasks'(_0x297034) {
1445
+ const _0x32becd = _0x3844, _0x4a17e3 = await _0x783ce3['client'][_0x32becd(0x1e3)](_0x297034);
1446
+ return formatCreatedTasks(_0x4a17e3[_0x32becd(_0x371f1c._0x5876b3)]);
1430
1447
  },
1431
- async 'claim_tasks'(_0x19d573) {
1432
- const _0x34e280 = _0x5931, _0x2235c0 = await _0x3b16be['client'][_0x34e280(0x292)](_0x19d573), _0x976403 = await Promise[_0x34e280(0x191)](_0x2235c0[_0x34e280(0x1ec)][_0x34e280(_0x37ccff._0x14c313)](async _0x58d214 => {
1433
- const _0x35b543 = _0x34e280;
1434
- if (!_0x58d214[_0x35b543(0x254)] || !_0x58d214[_0x35b543(_0x5df220._0x194e72)])
1435
- return _0x58d214;
1448
+ async 'claim_tasks'(_0x1c0836) {
1449
+ const _0x547130 = { _0x598e9f: 0x212 }, _0x5498f3 = _0x3844, _0x37a157 = await _0x783ce3['client']['claimTasks'](_0x1c0836), _0x39451d = await Promise[_0x5498f3(_0x354a35._0x714231)](_0x37a157[_0x5498f3(_0x354a35._0xe55152)][_0x5498f3(_0x354a35._0x625f2a)](async _0x2fcb9e => {
1450
+ const _0x33cab4 = _0x5498f3;
1451
+ if (!_0x2fcb9e['success'] || !_0x2fcb9e['messageId'])
1452
+ return _0x2fcb9e;
1436
1453
  try {
1437
- const _0x4e98e1 = await _0x3138ed({
1438
- 'channel': _0x19d573[_0x35b543(0x23e)],
1439
- 'messageId': _0x58d214['messageId'],
1440
- 'taskId': _0x58d214[_0x35b543(0x1ff)],
1441
- 'taskNumber': _0x58d214['taskNumber'],
1442
- 'threadNumber': _0x58d214[_0x35b543(_0x5df220._0x208f95)]
1454
+ const _0x4d669b = await _0x23bc3f({
1455
+ 'channel': _0x1c0836[_0x33cab4(0x268)],
1456
+ 'messageId': _0x2fcb9e[_0x33cab4(_0x547130._0x598e9f)],
1457
+ 'taskId': _0x2fcb9e[_0x33cab4(0x133)],
1458
+ 'taskNumber': _0x2fcb9e[_0x33cab4(0x16d)],
1459
+ 'threadNumber': _0x2fcb9e['threadNumber']
1443
1460
  });
1444
- return _0x4e98e1 ? {
1445
- ..._0x58d214,
1446
- ..._0x4e98e1
1447
- } : _0x58d214;
1448
- } catch (_0x5ac786) {
1461
+ return _0x4d669b ? {
1462
+ ..._0x2fcb9e,
1463
+ ..._0x4d669b
1464
+ } : _0x2fcb9e;
1465
+ } catch (_0x270ec2) {
1449
1466
  return {
1450
- ..._0x58d214,
1451
- 'workerHandoffError': _0x5ac786 instanceof Error ? _0x5ac786[_0x35b543(0x281)] : _0x35b543(0x2cb)
1467
+ ..._0x2fcb9e,
1468
+ 'workerHandoffError': _0x270ec2 instanceof Error ? _0x270ec2['message'] : 'worker\x20handoff\x20failed'
1452
1469
  };
1453
1470
  }
1454
1471
  }));
1455
- return formatClaimTaskResults(_0x976403);
1472
+ return formatClaimTaskResults(_0x39451d);
1456
1473
  },
1457
- async 'unclaim_task'(_0x1f9c4a) {
1458
- const _0x593ce8 = await _0x3b16be['client']['unclaimTask'](_0x1f9c4a);
1459
- return formatUnclaimTaskResult(_0x593ce8);
1474
+ async 'unclaim_task'(_0x28d6cd) {
1475
+ const _0x9ff59d = _0x3844, _0x85d53c = await _0x783ce3[_0x9ff59d(0x288)]['unclaimTask'](_0x28d6cd);
1476
+ return formatUnclaimTaskResult(_0x85d53c);
1460
1477
  },
1461
- async 'update_task_status'(_0x5ddfc4) {
1462
- const _0x518fc8 = _0x5931, _0x1d5dbb = await _0x3b16be[_0x518fc8(_0x2cf5d0._0x437005)][_0x518fc8(0x20f)](_0x5ddfc4);
1463
- return formatUpdateTaskStatusResult(_0x1d5dbb);
1478
+ async 'update_task_status'(_0x55d930) {
1479
+ const _0x285828 = _0x3844, _0x57a4bb = await _0x783ce3[_0x285828(0x288)]['updateTaskStatus'](_0x55d930);
1480
+ return formatUpdateTaskStatusResult(_0x57a4bb);
1464
1481
  },
1465
- async 'upload_file'(_0x40c509) {
1466
- const _0x47ca8f = _0x5931, _0x4572c9 = await _0x3b16be[_0x47ca8f(_0x4b6d38._0x1f1e0b)](_0x40c509[_0x47ca8f(_0x4b6d38._0x40d842)]), {
1467
- sizeBytes: _0x42c6ba,
1468
- ..._0x1818a0
1469
- } = _0x4572c9, _0x3d52ae = await _0x3b16be['client'][_0x47ca8f(_0x4b6d38._0x4cc7e7)]({
1470
- 'channel': _0x40c509[_0x47ca8f(_0x4b6d38._0xba26cd)],
1471
- ..._0x1818a0
1482
+ async 'upload_file'(_0x13a80b) {
1483
+ const _0x155e67 = _0x3844, _0x21b4da = await _0x783ce3[_0x155e67(0x220)](_0x13a80b['file_path']), {
1484
+ sizeBytes: _0x10d744,
1485
+ ..._0x5efd0a
1486
+ } = _0x21b4da, _0x384d74 = await _0x783ce3[_0x155e67(0x288)]['uploadFile']({
1487
+ 'channel': _0x13a80b[_0x155e67(0x268)],
1488
+ ..._0x5efd0a
1472
1489
  });
1473
- return formatUploadResult(_0x3d52ae);
1490
+ return formatUploadResult(_0x384d74);
1474
1491
  },
1475
- async 'view_file'(_0x486e3d) {
1476
- const _0x58cf62 = _0x5931, _0x5b38b1 = await _0x3b16be[_0x58cf62(_0x6e5cdc._0x2b5d4c)][_0x58cf62(_0x6e5cdc._0x30ee35)](_0x486e3d['attachment_id']);
1477
- if (_0x5b38b1)
1478
- return formatViewFileResult(_0x5b38b1, !![]);
1479
- const _0x524453 = await _0x3b16be[_0x58cf62(_0x6e5cdc._0xaa92f0)][_0x58cf62(_0x6e5cdc._0x376364)](_0x486e3d[_0x58cf62(0x2bd)]), _0x3acc90 = await _0x3b16be[_0x58cf62(_0x6e5cdc._0x2b5d4c)][_0x58cf62(_0x6e5cdc._0x361871)]({
1480
- 'attachmentId': _0x486e3d[_0x58cf62(_0x6e5cdc._0x11f315)],
1481
- 'contentType': _0x524453[_0x58cf62(0x20e)],
1482
- 'data': _0x524453[_0x58cf62(_0x6e5cdc._0x2335a8)],
1483
- 'originalFilename': _0x524453[_0x58cf62(0x220)]
1492
+ async 'view_file'(_0x51f82c) {
1493
+ const _0x2d3825 = _0x3844, _0x4e6bd5 = await _0x783ce3[_0x2d3825(0x177)][_0x2d3825(_0x4364de._0x3e905e)](_0x51f82c[_0x2d3825(0x13f)]);
1494
+ if (_0x4e6bd5)
1495
+ return formatViewFileResult(_0x4e6bd5, !![]);
1496
+ const _0x338e64 = await _0x783ce3['client'][_0x2d3825(0x146)](_0x51f82c[_0x2d3825(0x13f)]), _0x2a27bf = await _0x783ce3[_0x2d3825(_0x4364de._0x331f81)]['save']({
1497
+ 'attachmentId': _0x51f82c['attachment_id'],
1498
+ 'contentType': _0x338e64['contentType'],
1499
+ 'data': _0x338e64[_0x2d3825(_0x4364de._0xdcbc6a)],
1500
+ 'originalFilename': _0x338e64[_0x2d3825(_0x4364de._0x32eb45)]
1484
1501
  });
1485
- return formatViewFileResult(_0x3acc90, ![]);
1502
+ return formatViewFileResult(_0x2a27bf, ![]);
1486
1503
  },
1487
- async 'get_worker_status'(_0x4ca5bc) {
1488
- const _0x52c7ce = _0x5931;
1489
- if (!_0x3b16be[_0x52c7ce(_0x2d5fb0._0x234f70)])
1490
- return _0x52c7ce(_0x2d5fb0._0x57001d);
1491
- const _0x2fe21a = await fetch(_0x3b16be[_0x52c7ce(_0x2d5fb0._0x59daa4)] + _0x52c7ce(_0x2d5fb0._0x40cd44) + encodeURIComponent(_0x4ca5bc[_0x52c7ce(0x227)])), _0x2498da = await _0x2fe21a['json']();
1492
- if (!_0x2498da['ok'])
1493
- return _0x52c7ce(0x2d7) + _0x4ca5bc[_0x52c7ce(_0x2d5fb0._0x2db0ea)] + _0x52c7ce(0x18c);
1494
- return _0x52c7ce(_0x2d5fb0._0x882054) + _0x4ca5bc['work_key'] + '\x22:\x20status=' + _0x2498da[_0x52c7ce(0x1f0)];
1504
+ async 'get_worker_status'(_0x118603) {
1505
+ const _0x57dfa9 = _0x3844;
1506
+ if (!_0x783ce3[_0x57dfa9(0x1d4)])
1507
+ return 'Worker\x20features\x20not\x20available';
1508
+ const _0x48829d = await fetch(_0x783ce3['daemonLocalUrl'] + _0x57dfa9(0x139) + encodeURIComponent(_0x118603['work_key'])), _0x5c6d59 = await _0x48829d[_0x57dfa9(_0x5eda22._0x33f96c)]();
1509
+ if (!_0x5c6d59['ok'])
1510
+ return _0x57dfa9(_0x5eda22._0x45fc75) + _0x118603['work_key'] + '\x22\x20not\x20found';
1511
+ return _0x57dfa9(_0x5eda22._0x1019ef) + _0x118603['work_key'] + _0x57dfa9(0x1f3) + _0x5c6d59[_0x57dfa9(0x27f)];
1495
1512
  },
1496
- async 'get_worker_result'(_0x33ec38) {
1497
- const _0x52b80f = _0x5931;
1498
- if (!_0x3b16be[_0x52b80f(0x29d)])
1513
+ async 'get_worker_result'(_0x102906) {
1514
+ const _0x369d45 = _0x3844;
1515
+ if (!_0x783ce3[_0x369d45(_0x554245._0x7d9090)])
1499
1516
  return 'Worker\x20features\x20not\x20available';
1500
- const _0x2d3ea7 = await fetch(_0x3b16be[_0x52b80f(0x29d)] + _0x52b80f(_0x683e5b._0x46f343) + encodeURIComponent(_0x33ec38[_0x52b80f(0x227)])), _0x5befcc = await _0x2d3ea7[_0x52b80f(0x209)]();
1501
- if (!_0x5befcc[_0x52b80f(_0x683e5b._0x1ec782)])
1502
- return _0x52b80f(_0x683e5b._0x13fd93) + _0x33ec38['work_key'] + '\x22';
1503
- return JSON[_0x52b80f(_0x683e5b._0x62404e)](_0x5befcc[_0x52b80f(0x181)], null, 0x2);
1517
+ const _0x4b9352 = await fetch(_0x783ce3[_0x369d45(_0x554245._0x7d9090)] + _0x369d45(0x210) + encodeURIComponent(_0x102906['work_key'])), _0x1bead1 = await _0x4b9352[_0x369d45(_0x554245._0x46f1d9)]();
1518
+ if (!_0x1bead1[_0x369d45(0x28f)])
1519
+ return _0x369d45(0x274) + _0x102906[_0x369d45(0x24d)] + '\x22';
1520
+ return JSON['stringify'](_0x1bead1[_0x369d45(0x28f)], null, 0x2);
1504
1521
  },
1505
- async 'finish_worker'(_0x27b95e) {
1506
- const _0x3d49cf = _0x5931;
1507
- if (!_0x3b16be[_0x3d49cf(_0x249b15._0x4ab51a)])
1508
- return _0x3d49cf(_0x249b15._0xc2cd0f);
1509
- const _0x7ba08 = await fetch(_0x3b16be[_0x3d49cf(_0x249b15._0x55b462)] + _0x3d49cf(_0x249b15._0x5bfb35), {
1510
- 'method': _0x3d49cf(_0x249b15._0x24e86a),
1511
- 'headers': { 'Content-Type': _0x3d49cf(0x2ee) },
1512
- 'body': JSON['stringify']({
1513
- 'work_key': _0x27b95e[_0x3d49cf(_0x249b15._0x49ece5)],
1522
+ async 'finish_worker'(_0x51de75) {
1523
+ const _0x588bdd = _0x3844;
1524
+ if (!_0x783ce3[_0x588bdd(0x1d4)])
1525
+ return _0x588bdd(_0x2b29a9._0x297571);
1526
+ const _0x68bb35 = await fetch(_0x783ce3[_0x588bdd(_0x2b29a9._0x2b506d)] + _0x588bdd(0x270), {
1527
+ 'method': _0x588bdd(0x199),
1528
+ 'headers': { 'Content-Type': _0x588bdd(0x12a) },
1529
+ 'body': JSON[_0x588bdd(_0x2b29a9._0x37ca03)]({
1530
+ 'work_key': _0x51de75[_0x588bdd(0x24d)],
1514
1531
  'resume_packet': {
1515
1532
  'objective': '',
1516
- 'result': _0x27b95e['result'],
1517
- 'summary': _0x27b95e[_0x3d49cf(_0x249b15._0x5a858b)],
1518
- 'decisions': _0x27b95e[_0x3d49cf(_0x249b15._0xfc0d4b)] ?? [],
1519
- 'filesChanged': _0x27b95e['files_changed'] ?? [],
1520
- 'openIssues': _0x27b95e[_0x3d49cf(0x228)] ?? [],
1521
- 'nextSteps': _0x27b95e[_0x3d49cf(0x22e)] ?? []
1533
+ 'result': _0x51de75[_0x588bdd(_0x2b29a9._0xce1a12)],
1534
+ 'summary': _0x51de75[_0x588bdd(_0x2b29a9._0x11bb22)],
1535
+ 'decisions': _0x51de75[_0x588bdd(0x183)] ?? [],
1536
+ 'filesChanged': _0x51de75[_0x588bdd(0x223)] ?? [],
1537
+ 'openIssues': _0x51de75[_0x588bdd(0x129)] ?? [],
1538
+ 'nextSteps': _0x51de75[_0x588bdd(0x1b1)] ?? []
1522
1539
  }
1523
1540
  })
1524
- }), _0x3aeba8 = await _0x7ba08[_0x3d49cf(0x209)]();
1525
- if (!_0x3aeba8['ok'])
1526
- throw new Error(_0x3aeba8[_0x3d49cf(_0x249b15._0x2fd134)] ?? 'finish_worker\x20failed');
1527
- return _0x3d49cf(_0x249b15._0x50b566) + _0x27b95e[_0x3d49cf(0x227)] + '\x22\x20finished\x20with\x20result:\x20' + _0x27b95e['result'];
1541
+ }), _0x7871c6 = await _0x68bb35['json']();
1542
+ if (!_0x7871c6['ok'])
1543
+ throw new Error(_0x7871c6['error'] ?? _0x588bdd(0x134));
1544
+ return _0x588bdd(_0x2b29a9._0x19a7d1) + _0x51de75['work_key'] + _0x588bdd(0x25b) + _0x51de75['result'];
1528
1545
  },
1529
- async 'mark_waiting_input'(_0x31de6f) {
1530
- const _0x3a7342 = _0x5931;
1531
- if (!_0x3b16be[_0x3a7342(_0x191d10._0x59b164)] || !_0x3b16be[_0x3a7342(_0x191d10._0x5386c6)])
1532
- return _0x3a7342(_0x191d10._0x113b88);
1533
- const _0x44c1dc = await fetch(_0x3b16be['daemonLocalUrl'] + '/workers/waiting_input', {
1534
- 'method': _0x3a7342(_0x191d10._0x4baf39),
1535
- 'headers': { 'Content-Type': _0x3a7342(_0x191d10._0x37d63a) },
1536
- 'body': JSON[_0x3a7342(0x17d)]({
1537
- 'work_key': _0x31de6f[_0x3a7342(_0x191d10._0x5b6a0e)],
1538
- 'agent_id': _0x3b16be[_0x3a7342(_0x191d10._0x5386c6)]
1546
+ async 'mark_waiting_input'(_0x5a10aa) {
1547
+ const _0x476c66 = _0x3844;
1548
+ if (!_0x783ce3[_0x476c66(_0x1d15da._0x432cbc)] || !_0x783ce3[_0x476c66(_0x1d15da._0x5220cd)])
1549
+ return _0x476c66(_0x1d15da._0xf857d2);
1550
+ const _0x120919 = await fetch(_0x783ce3[_0x476c66(0x1d4)] + '/workers/waiting_input', {
1551
+ 'method': 'POST',
1552
+ 'headers': { 'Content-Type': _0x476c66(_0x1d15da._0x245ccf) },
1553
+ 'body': JSON['stringify']({
1554
+ 'work_key': _0x5a10aa['work_key'],
1555
+ 'agent_id': _0x783ce3[_0x476c66(_0x1d15da._0x52d8af)]
1539
1556
  })
1540
- }), _0x38e1d7 = await _0x44c1dc[_0x3a7342(_0x191d10._0x1ef272)]();
1541
- if (!_0x38e1d7['ok'])
1542
- throw new Error(_0x38e1d7[_0x3a7342(_0x191d10._0x5956f2)] ?? _0x3a7342(_0x191d10._0x46ddc2));
1543
- return _0x3a7342(_0x191d10._0x1cd1b8) + _0x31de6f[_0x3a7342(0x227)] + _0x3a7342(_0x191d10._0x321c3d);
1557
+ }), _0x18fbbf = await _0x120919[_0x476c66(0x1f6)]();
1558
+ if (!_0x18fbbf['ok'])
1559
+ throw new Error(_0x18fbbf[_0x476c66(_0x1d15da._0x5597ef)] ?? _0x476c66(_0x1d15da._0x36967c));
1560
+ return _0x476c66(_0x1d15da._0x1d0814) + _0x5a10aa[_0x476c66(0x24d)] + _0x476c66(0x1bd);
1544
1561
  },
1545
- async 'escalate_to_main'(_0x51b7de) {
1546
- const _0x3468d6 = _0x5931;
1547
- if (!_0x3b16be[_0x3468d6(0x29d)])
1548
- return _0x3468d6(0x20b);
1549
- const _0x494efd = await fetch(_0x3b16be[_0x3468d6(0x29d)] + '/workers/escalate', {
1550
- 'method': _0x3468d6(_0x199cdc._0x415e6b),
1551
- 'headers': { 'Content-Type': _0x3468d6(_0x199cdc._0x43b3df) },
1552
- 'body': JSON[_0x3468d6(_0x199cdc._0x23e3f2)]({
1553
- 'work_key': _0x51b7de[_0x3468d6(_0x199cdc._0x14034b)],
1554
- 'reason': _0x51b7de[_0x3468d6(0x25c)]
1562
+ async 'escalate_to_main'(_0x2626ba) {
1563
+ const _0x5a1297 = _0x3844;
1564
+ if (!_0x783ce3[_0x5a1297(0x1d4)])
1565
+ return _0x5a1297(_0xdd6200._0x561c26);
1566
+ const _0x3b3c86 = await fetch(_0x783ce3['daemonLocalUrl'] + _0x5a1297(0x23c), {
1567
+ 'method': _0x5a1297(0x199),
1568
+ 'headers': { 'Content-Type': _0x5a1297(0x12a) },
1569
+ 'body': JSON[_0x5a1297(_0xdd6200._0x4d57d5)]({
1570
+ 'work_key': _0x2626ba[_0x5a1297(_0xdd6200._0x56c091)],
1571
+ 'reason': _0x2626ba[_0x5a1297(0x127)]
1555
1572
  })
1556
- }), _0x1bb675 = await _0x494efd[_0x3468d6(_0x199cdc._0x2fdf72)]();
1557
- if (!_0x1bb675['ok'])
1558
- throw new Error(_0x1bb675['error'] ?? 'escalate_to_main\x20failed');
1559
- return _0x3468d6(_0x199cdc._0x2c5c3e) + _0x51b7de[_0x3468d6(_0x199cdc._0x1563d8)];
1573
+ }), _0x30b472 = await _0x3b3c86[_0x5a1297(_0xdd6200._0x480e89)]();
1574
+ if (!_0x30b472['ok'])
1575
+ throw new Error(_0x30b472[_0x5a1297(_0xdd6200._0x5ae416)] ?? _0x5a1297(0x22c));
1576
+ return _0x5a1297(_0xdd6200._0xb2b391) + _0x2626ba[_0x5a1297(0x127)];
1560
1577
  }
1561
1578
  };
1562
1579
  }
1563
- function textResult(_0x1e9e14, _0x2fa16d = ![]) {
1564
- const _0x37a09e = { _0x1df765: 0x2ad }, _0xcbad92 = _0xd0824a;
1580
+ function textResult(_0x102a12, _0x378451 = ![]) {
1581
+ const _0x2d91f9 = { _0x1d5bb8: 0x1aa }, _0x460d3c = _0x15d6d8;
1565
1582
  return {
1566
1583
  'content': [{
1567
- 'type': _0xcbad92(_0x37a09e._0x1df765),
1568
- 'text': _0x1e9e14
1584
+ 'type': _0x460d3c(_0x2d91f9._0x1d5bb8),
1585
+ 'text': _0x102a12
1569
1586
  }],
1570
- ..._0x2fa16d ? { 'isError': !![] } : {}
1587
+ ..._0x378451 ? { 'isError': !![] } : {}
1571
1588
  };
1572
1589
  }
1573
- function _0x3e90() {
1574
- const _0x3aaf42 = [
1575
- 'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
1576
- 'Dg9ju09tDhjPBMC',
1577
- 'w3nLCt0',
1578
- 'DgfYz2v0',
1579
- 'l2fWAs9HDhrHy2HTzw50CY8',
1580
- 'zgvZy3jPChrPB24',
1581
- 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
1582
- 'lsba',
1583
- 'C3rHCNrLza',
1584
- 'ihn0yxr1CZ0',
1585
- 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
1586
- 'D29YA2vYrgLZCg9ZAxrPB24',
1587
- 'B3jPz2LUywXgAwXLBMfTzq',
1588
- 'ywDLBNrjza',
1589
- 'yxjYyxK',
1590
- 'icHPzdO',
1591
- 'CMvHzeHPC3rVCNK',
1592
- 'Bg93',
1593
- 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
1594
- 'D29YA19RzxK',
1595
- 'B3bLBL9PC3n1zxm',
1596
- 'BgLZDf9Zzxj2zxi',
1597
- 'ig1LC3nHz2vZkqOk',
1598
- 'mJa3nJzNrgPRBMi',
1599
- 'igzHAwXLzdOG',
1600
- 'Agv4',
1601
- 'BMv4Df9ZDgvWCW',
1602
- 'Bwf4',
1603
- 'mtiZotbTyMn0B0i',
1604
- 'D29YA2vYtw9Kzq',
1590
+ async function registerChatBridgeTools(_0x2c0a4f, _0x1acf13, _0x2e1d17) {
1591
+ const _0x384acc = {
1592
+ _0x51be69: 0x1d5,
1593
+ _0xa56e21: 0x140,
1594
+ _0x50a13d: 0x217,
1595
+ _0x2f3f83: 0x1d7,
1596
+ _0x4fa223: 0x1d7,
1597
+ _0x3b6a3d: 0x285,
1598
+ _0x59b3b7: 0x15e,
1599
+ _0x11092a: 0x2a4,
1600
+ _0x53dc76: 0x1de,
1601
+ _0x25a79a: 0x124,
1602
+ _0x14e924: 0x1eb,
1603
+ _0x237a1a: 0x15e,
1604
+ _0x39ba14: 0x235,
1605
+ _0x5f26a5: 0x15e,
1606
+ _0x5c72b1: 0x29c,
1607
+ _0x47a94d: 0x182,
1608
+ _0x2141af: 0x15e,
1609
+ _0x4a6e4a: 0x1c3,
1610
+ _0x5a88a7: 0x140,
1611
+ _0x5cd37e: 0x15e,
1612
+ _0xb0077b: 0x20e,
1613
+ _0x521342: 0x16c,
1614
+ _0x5dd328: 0x15e,
1615
+ _0x27e913: 0x1c9,
1616
+ _0x5d44f0: 0x140,
1617
+ _0x2cb6ad: 0x1cc,
1618
+ _0x10a7e4: 0x140,
1619
+ _0x383d96: 0x1db,
1620
+ _0x53f615: 0x260,
1621
+ _0x3f6cfc: 0x1d7,
1622
+ _0x5c15d7: 0x1d0,
1623
+ _0x46165c: 0x1e1,
1624
+ _0x36b6b6: 0x173,
1625
+ _0x490d1c: 0x15a,
1626
+ _0x312220: 0x147,
1627
+ _0x448a61: 0x235,
1628
+ _0xb57de5: 0x140,
1629
+ _0x309b93: 0x235,
1630
+ _0x3961d0: 0x27e,
1631
+ _0xa7a56b: 0x140,
1632
+ _0x4fb54c: 0x1d7,
1633
+ _0x122931: 0x295
1634
+ }, _0x13b04d = { _0x24d0c9: 0x200 }, _0x31442a = { _0x2f8090: 0x22c }, _0x4bb5d0 = {
1635
+ _0x100d01: 0x173,
1636
+ _0x5784b7: 0x134
1637
+ }, _0x17f107 = { _0x11a3cb: 0x1e1 }, _0x5dbbe3 = { _0x3449f8: 0x28c }, _0x4dc651 = {
1638
+ _0x4a41f7: 0x200,
1639
+ _0x1cd2e1: 0x168
1640
+ }, _0x19c879 = {
1641
+ _0x41b495: 0x200,
1642
+ _0xc5a405: 0x1f5
1643
+ }, _0x28efe4 = { _0xc9d9cc: 0x16a }, _0xdc4f45 = {
1644
+ _0x5c88fd: 0x200,
1645
+ _0x2a9069: 0x246
1646
+ }, _0x299cf4 = { _0x5465f9: 0x222 }, _0x520729 = { _0x350146: 0x234 }, _0x1d08a4 = {
1647
+ _0x16efb9: 0x1de,
1648
+ _0x47ac4b: 0x200
1649
+ }, _0x37fc1a = {
1650
+ _0x1407c6: 0x200,
1651
+ _0x4c6009: 0x22f
1652
+ }, _0x579c4f = { _0x3bc9e4: 0x254 }, _0x94f102 = { _0x23643a: 0x251 }, _0x33e4d4 = _0x15d6d8, {z: _0x58654b} = await import(_0x33e4d4(0x1ed));
1653
+ _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(0x251), _0x33e4d4(_0x384acc._0x51be69), {
1654
+ 'target': _0x58654b[_0x33e4d4(0x140)](),
1655
+ 'content': _0x58654b[_0x33e4d4(_0x384acc._0xa56e21)](),
1656
+ 'attachment_ids': _0x58654b['array'](_0x58654b[_0x33e4d4(0x140)]())['optional'](),
1657
+ 'visibility': _0x58654b[_0x33e4d4(0x1a1)]([
1658
+ _0x33e4d4(_0x384acc._0x50a13d),
1659
+ 'aside'
1660
+ ])[_0x33e4d4(0x15e)]()
1661
+ }, async _0x42b8ca => {
1662
+ const _0x51febf = _0x33e4d4;
1663
+ try {
1664
+ return textResult(await _0x1acf13[_0x51febf(_0x94f102._0x23643a)](_0x42b8ca));
1665
+ } catch (_0x3581e4) {
1666
+ return textResult(_0x3581e4 instanceof Error ? _0x3581e4['message'] : 'send_message\x20failed', !![]);
1667
+ }
1668
+ }), _0x2c0a4f[_0x33e4d4(_0x384acc._0x2f3f83)]('check_messages', _0x33e4d4(0x19f), {}, async () => {
1669
+ const _0x4227d9 = _0x33e4d4;
1670
+ try {
1671
+ return textResult(await _0x1acf13[_0x4227d9(_0x579c4f._0x3bc9e4)]());
1672
+ } catch (_0x8b2e82) {
1673
+ return textResult(_0x8b2e82 instanceof Error ? _0x8b2e82['message'] : 'check_messages\x20failed', !![]);
1674
+ }
1675
+ }), _0x2c0a4f[_0x33e4d4(_0x384acc._0x4fa223)](_0x33e4d4(0x266), _0x33e4d4(_0x384acc._0x3b6a3d), {
1676
+ 'channel': _0x58654b[_0x33e4d4(0x140)](),
1677
+ 'limit': _0x58654b[_0x33e4d4(0x2a4)]()['optional'](),
1678
+ 'before': _0x58654b['number']()[_0x33e4d4(_0x384acc._0x59b3b7)](),
1679
+ 'after': _0x58654b[_0x33e4d4(_0x384acc._0x11092a)]()['optional']()
1680
+ }, async _0x3cc0e2 => {
1681
+ const _0x23b768 = _0x33e4d4;
1682
+ try {
1683
+ return textResult(await _0x1acf13[_0x23b768(0x266)](_0x3cc0e2));
1684
+ } catch (_0x3a3a34) {
1685
+ return textResult(_0x3a3a34 instanceof Error ? _0x3a3a34[_0x23b768(_0x37fc1a._0x1407c6)] : _0x23b768(_0x37fc1a._0x4c6009), !![]);
1686
+ }
1687
+ }), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x53dc76), _0x33e4d4(_0x384acc._0x25a79a), {}, async () => {
1688
+ const _0x55d42a = _0x33e4d4;
1689
+ try {
1690
+ return textResult(await _0x1acf13[_0x55d42a(_0x1d08a4._0x16efb9)]());
1691
+ } catch (_0x1d4af9) {
1692
+ return textResult(_0x1d4af9 instanceof Error ? _0x1d4af9[_0x55d42a(_0x1d08a4._0x47ac4b)] : _0x55d42a(0x20b), !![]);
1693
+ }
1694
+ }), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x14e924), _0x33e4d4(0x1ce), {
1695
+ 'channel': _0x58654b[_0x33e4d4(0x140)](),
1696
+ 'status': _0x58654b[_0x33e4d4(0x1a1)]([
1697
+ 'todo',
1698
+ _0x33e4d4(0x1cc),
1699
+ _0x33e4d4(0x175),
1700
+ _0x33e4d4(0x291)
1701
+ ])['optional']()
1702
+ }, async _0x513ecb => {
1703
+ const _0x23aee5 = _0x33e4d4;
1704
+ try {
1705
+ return textResult(await _0x1acf13[_0x23aee5(0x1eb)](_0x513ecb));
1706
+ } catch (_0x47472b) {
1707
+ return textResult(_0x47472b instanceof Error ? _0x47472b[_0x23aee5(0x200)] : _0x23aee5(_0x520729._0x350146), !![]);
1708
+ }
1709
+ }), _0x2c0a4f['tool'](_0x33e4d4(0x222), _0x33e4d4(0x18f), {
1710
+ 'channel': _0x58654b[_0x33e4d4(0x140)](),
1711
+ 'idempotency_key': _0x58654b['string']()[_0x33e4d4(_0x384acc._0x237a1a)](),
1712
+ 'tasks': _0x58654b[_0x33e4d4(_0x384acc._0x39ba14)](_0x58654b['object']({
1713
+ 'title': _0x58654b[_0x33e4d4(_0x384acc._0xa56e21)](),
1714
+ 'description': _0x58654b[_0x33e4d4(0x140)]()[_0x33e4d4(_0x384acc._0x5f26a5)](),
1715
+ 'priority': _0x58654b['enum']([
1716
+ 'low',
1717
+ _0x33e4d4(_0x384acc._0x5c72b1),
1718
+ 'high',
1719
+ _0x33e4d4(_0x384acc._0x47a94d)
1720
+ ])[_0x33e4d4(_0x384acc._0x2141af)]()
1721
+ }))
1722
+ }, async _0x28fb6b => {
1723
+ const _0x569bbe = _0x33e4d4;
1724
+ try {
1725
+ return textResult(await _0x1acf13[_0x569bbe(_0x299cf4._0x5465f9)](_0x28fb6b));
1726
+ } catch (_0x10e1f8) {
1727
+ return textResult(_0x10e1f8 instanceof Error ? _0x10e1f8['message'] : _0x569bbe(0x282), !![]);
1728
+ }
1729
+ }), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x4a6e4a), _0x33e4d4(0x16b), {
1730
+ 'channel': _0x58654b[_0x33e4d4(_0x384acc._0x5a88a7)](),
1731
+ 'task_numbers': _0x58654b[_0x33e4d4(0x235)](_0x58654b[_0x33e4d4(0x2a4)]())[_0x33e4d4(_0x384acc._0x5cd37e)](),
1732
+ 'message_ids': _0x58654b[_0x33e4d4(0x235)](_0x58654b[_0x33e4d4(0x140)]())[_0x33e4d4(_0x384acc._0x5cd37e)](),
1733
+ 'evidence': _0x58654b['record'](_0x58654b[_0x33e4d4(0x140)](), _0x58654b[_0x33e4d4(_0x384acc._0xb0077b)]({
1734
+ 'create_thread': _0x58654b[_0x33e4d4(_0x384acc._0x521342)]()[_0x33e4d4(_0x384acc._0x5dd328)](),
1735
+ 'create_task': _0x58654b[_0x33e4d4(0x16c)]()[_0x33e4d4(0x15e)]()
1736
+ }))[_0x33e4d4(0x15e)](),
1737
+ 'idempotency_key': _0x58654b[_0x33e4d4(0x140)]()[_0x33e4d4(0x15e)]()
1738
+ }, async _0x5e0476 => {
1739
+ const _0x5857b0 = _0x33e4d4;
1740
+ try {
1741
+ return textResult(await _0x1acf13['claim_tasks'](_0x5e0476));
1742
+ } catch (_0x127630) {
1743
+ return textResult(_0x127630 instanceof Error ? _0x127630[_0x5857b0(_0xdc4f45._0x5c88fd)] : _0x5857b0(_0xdc4f45._0x2a9069), !![]);
1744
+ }
1745
+ }), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(0x16a), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.', {
1746
+ 'channel': _0x58654b[_0x33e4d4(_0x384acc._0x5a88a7)](),
1747
+ 'task_number': _0x58654b[_0x33e4d4(0x2a4)](),
1748
+ 'idempotency_key': _0x58654b[_0x33e4d4(0x140)]()[_0x33e4d4(_0x384acc._0x2141af)]()
1749
+ }, async _0x46bfd6 => {
1750
+ const _0x248c72 = _0x33e4d4;
1751
+ try {
1752
+ return textResult(await _0x1acf13[_0x248c72(_0x28efe4._0xc9d9cc)](_0x46bfd6));
1753
+ } catch (_0x1e2652) {
1754
+ return textResult(_0x1e2652 instanceof Error ? _0x1e2652[_0x248c72(0x200)] : _0x248c72(0x298), !![]);
1755
+ }
1756
+ }), _0x2c0a4f[_0x33e4d4(_0x384acc._0x4fa223)](_0x33e4d4(_0x384acc._0x27e913), _0x33e4d4(0x192), {
1757
+ 'channel': _0x58654b[_0x33e4d4(_0x384acc._0x5d44f0)](),
1758
+ 'task_number': _0x58654b[_0x33e4d4(_0x384acc._0x11092a)](),
1759
+ 'status': _0x58654b['enum']([
1760
+ _0x33e4d4(0x1fc),
1761
+ _0x33e4d4(_0x384acc._0x2cb6ad),
1762
+ _0x33e4d4(0x175),
1763
+ _0x33e4d4(0x291)
1764
+ ]),
1765
+ 'idempotency_key': _0x58654b[_0x33e4d4(_0x384acc._0x5a88a7)]()['optional']()
1766
+ }, async _0x9f868 => {
1767
+ const _0x9f5cad = _0x33e4d4;
1768
+ try {
1769
+ return textResult(await _0x1acf13[_0x9f5cad(0x1c9)](_0x9f868));
1770
+ } catch (_0x470e9b) {
1771
+ return textResult(_0x470e9b instanceof Error ? _0x470e9b[_0x9f5cad(_0x19c879._0x41b495)] : _0x9f5cad(_0x19c879._0xc5a405), !![]);
1772
+ }
1773
+ }), _0x2c0a4f[_0x33e4d4(0x1d7)]('upload_file', _0x33e4d4(0x166), {
1774
+ 'channel': _0x58654b[_0x33e4d4(_0x384acc._0xa56e21)](),
1775
+ 'file_path': _0x58654b[_0x33e4d4(_0x384acc._0x10a7e4)]()
1776
+ }, async _0x318b2a => {
1777
+ const _0x16ad5a = _0x33e4d4;
1778
+ try {
1779
+ return textResult(await _0x1acf13[_0x16ad5a(0x1e8)](_0x318b2a));
1780
+ } catch (_0x204209) {
1781
+ return textResult(_0x204209 instanceof Error ? _0x204209['message'] : _0x16ad5a(0x299), !![]);
1782
+ }
1783
+ }), _0x2c0a4f['tool'](_0x33e4d4(_0x384acc._0x383d96), _0x33e4d4(_0x384acc._0x53f615), { 'attachment_id': _0x58654b['string']() }, async _0x56f547 => {
1784
+ const _0xa1c9f1 = _0x33e4d4;
1785
+ try {
1786
+ return textResult(await _0x1acf13[_0xa1c9f1(0x1db)](_0x56f547));
1787
+ } catch (_0x3e7418) {
1788
+ return textResult(_0x3e7418 instanceof Error ? _0x3e7418[_0xa1c9f1(_0x4dc651._0x4a41f7)] : _0xa1c9f1(_0x4dc651._0x1cd2e1), !![]);
1789
+ }
1790
+ }), _0x2c0a4f[_0x33e4d4(_0x384acc._0x3f6cfc)](_0x33e4d4(0x28c), _0x33e4d4(_0x384acc._0x5c15d7), { 'work_key': _0x58654b['string']() }, async _0xfa660a => {
1791
+ const _0x615eb0 = _0x33e4d4;
1792
+ try {
1793
+ return textResult(await _0x1acf13[_0x615eb0(_0x5dbbe3._0x3449f8)](_0xfa660a));
1794
+ } catch (_0x322694) {
1795
+ return textResult(_0x322694 instanceof Error ? _0x322694[_0x615eb0(0x200)] : 'get_worker_status\x20failed', !![]);
1796
+ }
1797
+ }), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x46165c), _0x33e4d4(0x1e6), { 'work_key': _0x58654b[_0x33e4d4(0x140)]() }, async _0xfde60a => {
1798
+ const _0x2be5f7 = _0x33e4d4;
1799
+ try {
1800
+ return textResult(await _0x1acf13[_0x2be5f7(_0x17f107._0x11a3cb)](_0xfde60a));
1801
+ } catch (_0x3e3e9f) {
1802
+ return textResult(_0x3e3e9f instanceof Error ? _0x3e3e9f['message'] : 'get_worker_result\x20failed', !![]);
1803
+ }
1804
+ }), _0x2c0a4f[_0x33e4d4(_0x384acc._0x4fa223)](_0x33e4d4(_0x384acc._0x36b6b6), _0x33e4d4(_0x384acc._0x490d1c), {
1805
+ 'work_key': _0x58654b[_0x33e4d4(0x140)](),
1806
+ 'result': _0x58654b['enum']([
1807
+ _0x33e4d4(0x15c),
1808
+ _0x33e4d4(0x162),
1809
+ _0x33e4d4(_0x384acc._0x312220)
1810
+ ]),
1811
+ 'summary': _0x58654b[_0x33e4d4(0x140)](),
1812
+ 'decisions': _0x58654b[_0x33e4d4(0x235)](_0x58654b[_0x33e4d4(0x140)]())[_0x33e4d4(0x15e)](),
1813
+ 'files_changed': _0x58654b[_0x33e4d4(_0x384acc._0x39ba14)](_0x58654b[_0x33e4d4(_0x384acc._0x5a88a7)]())[_0x33e4d4(0x15e)](),
1814
+ 'open_issues': _0x58654b[_0x33e4d4(_0x384acc._0x448a61)](_0x58654b[_0x33e4d4(_0x384acc._0xb57de5)]())[_0x33e4d4(0x15e)](),
1815
+ 'next_steps': _0x58654b[_0x33e4d4(_0x384acc._0x309b93)](_0x58654b['string']())['optional']()
1816
+ }, async _0x3f4c52 => {
1817
+ const _0x1e5ca0 = _0x33e4d4;
1818
+ try {
1819
+ return textResult(await _0x1acf13[_0x1e5ca0(_0x4bb5d0._0x100d01)](_0x3f4c52));
1820
+ } catch (_0x12e88b) {
1821
+ return textResult(_0x12e88b instanceof Error ? _0x12e88b['message'] : _0x1e5ca0(_0x4bb5d0._0x5784b7), !![]);
1822
+ }
1823
+ }), _0x2c0a4f[_0x33e4d4(0x1d7)](_0x33e4d4(_0x384acc._0x3961d0), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
1824
+ 'work_key': _0x58654b[_0x33e4d4(_0x384acc._0xb57de5)](),
1825
+ 'reason': _0x58654b[_0x33e4d4(_0x384acc._0xa7a56b)]()
1826
+ }, async _0x884e6e => {
1827
+ const _0xde809e = _0x33e4d4;
1828
+ try {
1829
+ return textResult(await _0x1acf13['escalate_to_main'](_0x884e6e));
1830
+ } catch (_0x55a6d2) {
1831
+ return textResult(_0x55a6d2 instanceof Error ? _0x55a6d2[_0xde809e(0x200)] : _0xde809e(_0x31442a._0x2f8090), !![]);
1832
+ }
1833
+ }), _0x2e1d17?.['workerMode'] && _0x2c0a4f[_0x33e4d4(_0x384acc._0x4fb54c)](_0x33e4d4(0x29d), _0x33e4d4(_0x384acc._0x122931), { 'work_key': _0x58654b[_0x33e4d4(_0x384acc._0x5d44f0)]() }, async _0x1453cc => {
1834
+ const _0x364fdd = _0x33e4d4;
1835
+ try {
1836
+ return textResult(await _0x1acf13['mark_waiting_input'](_0x1453cc));
1837
+ } catch (_0x993bc6) {
1838
+ return textResult(_0x993bc6 instanceof Error ? _0x993bc6[_0x364fdd(_0x13b04d._0x24d0c9)] : _0x364fdd(0x122), !![]);
1839
+ }
1840
+ });
1841
+ }
1842
+ async function createChatBridgeServer(_0x3bab65) {
1843
+ const _0x44402d = { _0x5477a2: 0x1d8 }, _0x6619e7 = _0x15d6d8, {McpServer: _0x30c9db} = await import(_0x6619e7(_0x44402d._0x5477a2)), _0x423a32 = new _0x30c9db({
1844
+ 'name': _0x6619e7(0x157),
1845
+ 'version': _0x6619e7(0x249)
1846
+ }), _0x36997f = createChatBridgeHandlers(_0x3bab65);
1847
+ return await registerChatBridgeTools(_0x423a32, _0x36997f, { 'workerMode': _0x3bab65[_0x6619e7(0x19a)] }), {
1848
+ 'handlers': _0x36997f,
1849
+ 'server': _0x423a32
1850
+ };
1851
+ }
1852
+ function readFlag(_0x305340, _0x5a20e9) {
1853
+ const _0x14e4df = { _0x12b5ec: 0x1f2 }, _0x2364d3 = _0x15d6d8, _0x49ae2f = _0x305340[_0x2364d3(_0x14e4df._0x12b5ec)](_0x5a20e9);
1854
+ if (_0x49ae2f === -0x1)
1855
+ return void 0x0;
1856
+ return _0x305340[_0x49ae2f + 0x1];
1857
+ }
1858
+ function parseChatBridgeArgs(_0x3a68d2) {
1859
+ const _0x4af55b = {
1860
+ _0x44483f: 0x1f7,
1861
+ _0x5c1a01: 0x1e4,
1862
+ _0x22db9d: 0x135,
1863
+ _0x55c423: 0x281,
1864
+ _0x187f08: 0x256,
1865
+ _0x27dd05: 0x237
1866
+ }, _0x49e93d = _0x15d6d8, _0x254323 = readFlag(_0x3a68d2, _0x49e93d(0x28e)), _0x2aee04 = readFlag(_0x3a68d2, _0x49e93d(_0x4af55b._0x44483f)), _0x5f53f6 = readFlag(_0x3a68d2, _0x49e93d(0x296)), _0x118169 = readFlag(_0x3a68d2, _0x49e93d(0x21a)) ?? _0x49e93d(_0x4af55b._0x5c1a01), _0xae2c11 = readFlag(_0x3a68d2, '--daemon-local-url'), _0x365ebc = readFlag(_0x3a68d2, '--session-id'), _0x5a53bd = readFlag(_0x3a68d2, _0x49e93d(0x1ac)), _0x3ec9e7 = readFlag(_0x3a68d2, _0x49e93d(0x1df)), _0x25f8e1 = readFlag(_0x3a68d2, '--worker-thread-target'), _0x5b540f = _0x3a68d2[_0x49e93d(_0x4af55b._0x22db9d)]('--worker-mode'), _0x415c1c = _0x5f53f6 === void 0x0 ? void 0x0 : Number[_0x49e93d(_0x4af55b._0x55c423)](_0x5f53f6, 0xa);
1867
+ if (!_0x254323)
1868
+ throw new Error(_0x49e93d(0x14f));
1869
+ if (!_0x2aee04)
1870
+ throw new Error(_0x49e93d(_0x4af55b._0x187f08));
1871
+ if (_0x5f53f6 !== void 0x0 && (_0x415c1c === void 0x0 || !Number[_0x49e93d(_0x4af55b._0x27dd05)](_0x415c1c) || _0x415c1c < 0x0))
1872
+ throw new Error(_0x49e93d(0x1ae));
1873
+ return {
1874
+ 'agentId': _0x254323,
1875
+ 'daemonApiKey': _0x2aee04,
1876
+ 'daemonLocalUrl': _0xae2c11,
1877
+ 'initialLastSeenSeq': _0x415c1c,
1878
+ 'sessionId': _0x365ebc,
1879
+ 'serverUrl': _0x118169,
1880
+ 'workerModeEnabled': _0x5a53bd === void 0x0 ? void 0x0 : _0x5a53bd !== _0x49e93d(0x1c2),
1881
+ 'workerSessionId': _0x3ec9e7,
1882
+ 'workerThreadTarget': _0x25f8e1,
1883
+ 'workerMode': _0x5b540f
1884
+ };
1885
+ }
1886
+ async function runChatBridgeCli(_0x2b9b0a) {
1887
+ const _0x36dca9 = { _0x1c145e: 0x17d }, _0x3d3a98 = _0x15d6d8, _0x20fccd = parseChatBridgeArgs(_0x2b9b0a), {StdioServerTransport: _0x3569e9} = await import(_0x3d3a98(_0x36dca9._0x1c145e)), _0x26264e = createInternalAgentClient(_0x20fccd), _0x555850 = createAttachmentCache(), _0x229ddb = await createChatBridgeServer({
1888
+ 'agentId': _0x20fccd['agentId'],
1889
+ 'attachmentCache': _0x555850,
1890
+ 'client': _0x26264e,
1891
+ 'daemonLocalUrl': _0x20fccd[_0x3d3a98(0x1d4)],
1892
+ 'uploadPreparer': prepareUploadFile,
1893
+ 'workerModeEnabled': _0x20fccd['workerModeEnabled'],
1894
+ 'workerMode': _0x20fccd['workerMode']
1895
+ });
1896
+ await _0x229ddb['server'][_0x3d3a98(0x1be)](new _0x3569e9());
1897
+ }
1898
+ var executedAsEntry = process[_0x15d6d8(0x1a6)][0x1] ? import.meta.url === pathToFileURL(process[_0x15d6d8(0x1a6)][0x1])[_0x15d6d8(0x280)] : ![];
1899
+ executedAsEntry && await runChatBridgeCli(process[_0x15d6d8(0x1a6)][_0x15d6d8(0x263)](0x2));
1900
+ export {
1901
+ createChatBridgeHandlers,
1902
+ createChatBridgeServer,
1903
+ getChatBridgeToolDefinitions,
1904
+ parseChatBridgeArgs,
1905
+ runChatBridgeCli
1906
+ };
1907
+ function _0x4199() {
1908
+ const _0xb40cad = [
1909
+ 'yM9KEvrLEhq',
1910
+ 'l3DVCMTLCNmVzxnJywXHDgu',
1911
+ 'Dgv4Dc9WBgfPBG',
1912
+ 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
1913
+ 'y29UDgvUDa',
1914
+ 'rMLSzsb1CgXVywrLzdOG',
1915
+ 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
1916
+ 'l3rHC2TZ',
1917
+ 'yM9KEu1HCMTKB3DU',
1605
1918
  'Aw1Hz2uVz2LM',
1606
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
1919
+ 'DgfZA0rLBgL2zxj5tw9Kzq',
1920
+ 'y2XHAw1FDgfZA3mGzMfPBgvK',
1921
+ 'yxjYyxLcDwzMzxi',
1607
1922
  'AgfZ',
1608
- 'zMLSzw5HBwu',
1609
- 'y29UDgvUDa',
1610
- 'DxnLCG',
1611
- 'Dgv4Dc9TyxjRzg93BG',
1612
- 'DMLLD19MAwXL',
1613
- 'CgfYDgLJAxbHBNq',
1614
- 'l3DVCMTLCNmVzgvSAxzLCG',
1615
- 'BwvZC2fNzuLK',
1616
- 'BwvZC2fNzxm',
1617
- 'y2HHBM5LBa',
1618
- 'mtC1nJy4zMH3zKvp',
1619
- 'kgXLz2fJEsK',
1620
- 'DhLWzq',
1621
- 'Dw5JBgfPBv90yxnR',
1923
+ 'mc4WlJa',
1924
+ 'DMLZAwjPBgL0Eq',
1925
+ 'DgHYzwfKtNvTyMvY',
1622
1926
  't3jPz2LUywWGBwvZC2fNztOG',
1623
- 'Aw1Hz2uVC3zNk3HTBa',
1624
- 'mtC5nJi0s3bmu2zk',
1625
- 'tM8GDgfZA3mGzM91BMqU',
1626
- 'ywjVCNrLza',
1627
- 'AM9PBG',
1628
- 'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
1629
- 'C2f2zq',
1630
- 'DgvZDa',
1631
- 'BwvTyMvYCW',
1632
- 'ig1LC3nHz2u9',
1633
- 'y2XHAw1FDgfZA3m',
1634
- 'Dw5JBgfPBv90yxnRigzHAwXLza',
1927
+ 'D29YA19RzxK',
1928
+ 'r0vu',
1929
+ 'C2vUzgvYtMfTzq',
1930
+ 'CNvUswq',
1931
+ 'C2vUzf9TzxnZywDL',
1932
+ 'CMvZDwX0sNnVBG',
1933
+ 'CMvZDwX0',
1934
+ 'y2HLy2TFBwvZC2fNzxm',
1935
+ 'zw50zxiTAgfUzg9MzIbMywLSzwq',
1936
+ 'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
1937
+ 'D29YA2vY',
1938
+ 'zg06',
1939
+ 'zg0T',
1940
+ 'l2nVBNrLBNq',
1941
+ 'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
1942
+ 'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
1943
+ 'yMvMB3jL',
1944
+ 'Dg9ju09tDhjPBMC',
1635
1945
  'CgfYC2u',
1636
- 'ig1ZzZ0',
1637
- 'Aw5FCMv2Awv3',
1638
- 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
1639
- 'C3vJy2vZCW',
1946
+ 'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
1947
+ 'zxHLy3v0Aw9Utw9Kzt0',
1640
1948
  'Aw5PDgLHBeXHC3rtzwvUu2vX',
1641
- 'DhjPBq',
1642
- 'zNjVBq',
1643
- 'C2vUzf9TzxnZywDL',
1644
- 'xsba',
1645
- 'zg9Uzq',
1646
- 'Dg9KBW',
1647
- 'CMvHC29U',
1648
- 'BMfTzq',
1649
- 'khvUA25VD24P',
1650
- 'yxr0ywnOBwvUDeLK',
1651
- 'ChjVDg9JB2W',
1652
- 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
1653
- 'D29YA2vYrgLZCg9ZAxrPB249',
1654
- 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
1655
- 'zw51Bq',
1656
- 'uefuq0G',
1657
- 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
1658
- 'yxr0ywnOBwvUDhm',
1659
- 'ywDLBNrZ',
1660
- 'y2fJAgveAxi',
1661
- 'BgLTAxq',
1662
- 'D29YA2vYCW',
1663
- 'Axnoyu4',
1664
- 'l3nLBMq',
1665
- 'z2v0x3DVCMTLCL9Yzxn1Bhq',
1666
- 'iokaLca',
1949
+ 'C2XPy2u',
1950
+ 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
1951
+ 'DxnLCG',
1667
1952
  'CMvHzf9OAxn0B3j5',
1668
- 'Aw5KzxHpzG',
1669
- 'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
1670
- 'twLZC2LUzYaTlwfNzw50lwLK',
1671
- 'ywrK',
1672
- 'ywDNCMvNyxrLswrZ',
1673
- 'C3bSAxq',
1674
- 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
1675
- 'C2vX',
1676
- 'C2vUzgvYvhLWzq',
1677
- 'tM8GBMv3ig1LC3nHz2vZlG',
1678
- 'ChvZAa',
1679
- 'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
1680
- 'EM9K',
1681
- 'z2v0tw9UDgG',
1682
- 'yxjNDG',
1953
+ 'C2L6zuj5DgvZ',
1954
+ 'y2HHBM5LBa',
1955
+ 'DhjPBq',
1956
+ 'lNnSB2nR',
1683
1957
  'ywz0zxi',
1684
- 'BwvZC2fNzq',
1685
- 'rg93BMXVywrLzcb0BZOG',
1686
- 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
1687
- 'l2HPC3rVCNK/',
1688
- 'odrwzfjfvKK',
1689
- 'zMLUAxnOx3DVCMTLCIbMywLSzwq',
1690
- 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
1691
- 'yxbWBgLJyxrPB24VEg1S',
1692
- 'l3jLy2vPDMu',
1693
- 'uM9VDcb0yxnRig1LC3nHz2u6cG',
1694
- 'ChvIBgLJ',
1695
- 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
1696
- 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
1697
- 'lsaJ',
1698
- 'zMLSzv9WyxrO',
1699
- 'AhvTyw5Z',
1700
- 'y2XPzw50',
1701
- 'y2XHAw1uyxnRCW',
1702
- 'y2XHAw0GzMfPBgvK',
1703
- 'ywDNCMvNyxrLvhLWzq',
1704
- 'l2LUDgvYBMfSl2fNzw50lW',
1705
- 'AxngAwXL',
1706
- 'yxv0BZO',
1707
- 'zMv0y2HjBxbS',
1708
- 'DxbSB2fKuhjLCgfYzxi',
1709
- 'DxbSB2fKx2zPBgu',
1710
- 'BM93',
1711
- 'AgLNAa',
1712
- 'zgfLBw9Utg9JywXvCMW',
1713
- 'AxnjBNrLz2vY',
1714
1958
  'C3rVCe1HAw49Dhj1zq',
1715
- 'CNvUswq',
1716
- 'zMLUAxnOx3DVCMTLCG',
1717
- 'zgvSzxrL',
1718
- 'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
1719
- 'DMLZAwjPBgL0Eq',
1720
- 'zgfLBw9UqxbPs2v5',
1721
- 'yxbWBgLJyxrPB24VEMLW',
1722
- 'Bwf4rMLSzvnPEMvcExrLCW',
1723
- 'mJiWEfHsteTq',
1724
- 'l3vWBg9Hza',
1725
- 'BgvUz3rO',
1726
- 'yxnPzgu',
1959
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
1960
+ 'yxv0BZO',
1961
+ 'C3rVCe1HAw4',
1962
+ 'l3DVCMTLCNmVzMLUAxnO',
1963
+ 'l3rHC2TZpW',
1964
+ 'ig1LC3nHz2u9',
1965
+ 'mJC0ndKXCNjHugXd',
1966
+ 'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
1727
1967
  'DxbKyxrL',
1728
- 'Dgv4Da',
1729
- 'BgLZDf9Zzxj2zxiGzMfPBgvK',
1730
- 'v29YA2vYia',
1731
- 'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
1732
- 'C2vUzgvYtMfTzq',
1733
- 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
1734
- 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
1735
- 'zg06',
1736
- 'C2nOzwr1BgvKrM9Y',
1737
- 'D29YA2vYsgfUzg9MzKvYCM9Y',
1738
- 'BwfYA193ywL0Aw5Nx2LUChv0',
1739
- 'zMLSDgvY',
1740
- 'DgHYzwfKvgfYz2v0pq',
1968
+ 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
1969
+ 'l3rHC2TZl2nSywLT',
1970
+ 'ignSywLTzwq',
1971
+ 'uefuq0G',
1972
+ 'CMvWBgfJzq',
1973
+ 'iYmJiefNzw50CW',
1974
+ 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
1975
+ 'zxH0BMfTzq',
1976
+ 'zxnJywXHDgvFDg9FBwfPBG',
1977
+ 'C3rHDhvZ',
1978
+ 'AhjLzG',
1979
+ 'CgfYC2vjBNq',
1980
+ 'y3jLyxrLx3rHC2TZigzHAwXLza',
1981
+ 'sfruuca',
1982
+ 'D29YA2vYsgfUzg9MzG',
1741
1983
  'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
1742
- 'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
1743
- 'lcbWCMv2Awv3pq',
1744
- 'yxr0ywnOBwvUDf9Pza',
1745
- 'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
1984
+ 'AwrLBxbVDgvUy3LFA2v5',
1985
+ 'z2v0rNvSBfLLyxi',
1986
+ 'y2XPzw50',
1746
1987
  'y3vYC29Y',
1747
- 'CMvJB3jK',
1748
- 'Cgf5Bg9HzePZB24',
1749
- 'C3rHCNrZv2L0Aa',
1750
- 'y2XHAw1FDgfZA3mGzMfPBgvK',
1751
- 'zxHWAxjLC0f0',
1752
- 'CM9VDe1LC3nHz2vjza',
1753
- 'zxnJywXHDgvFDg9FBwfPBG',
1754
- 'Bg9JywXLq29TCgfYzq',
1988
+ 'CNvUBMLUzW',
1989
+ 'DgHYzwfKswq',
1990
+ 'z2v0x3DVCMTLCL9ZDgf0Dxm',
1991
+ 'D29YA2vYtw9KzuvUywjSzwq',
1992
+ 'ls1Hz2vUDc1Pza',
1993
+ 'CMvZDw1Lx3bHy2TLDa',
1994
+ 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
1995
+ 'zg9Uzq',
1996
+ 'ihr5Cgu9ywDLBNq',
1997
+ 'D29YA2vYsgfUzg9MzJ10CNvL',
1998
+ 'AhvTyw4',
1999
+ 'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
2000
+ 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
2001
+ 'Bwf4rMLSzvnPEMvcExrLCW',
2002
+ 'Dw5JBgfPBv90yxnRigzHAwXLza',
2003
+ 'DxbSB2fKx2zPBguGzMfPBgvK',
2004
+ 'Ahr0CdO',
2005
+ 'lIbnzxnZywDLieLeoIa',
2006
+ 'BwvKAxvT',
2007
+ 'BwfYA193ywL0Aw5Nx2LUChv0',
2008
+ 'CgfYDgLJAxbHBNq',
2009
+ 'C2nOzwr1BgvKrM9Y',
2010
+ 'yxr0ywnOBwvUDf9Pzhm',
2011
+ 'yxr0ywnOBwvUDhm',
2012
+ 'DgfZAY0',
2013
+ 'mtfMyNz4q1y',
2014
+ 'BNvTyMvY',
2015
+ 'DgfZAW',
2016
+ 'lsba',
2017
+ 'zMv0y2HuAw1LB3v0txm',
2018
+ 'BgLZDfnLCNzLCG',
2019
+ 'ihrPBwu9',
2020
+ 'l2zPBMLZAa',
2021
+ 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
2022
+ 'l2nVBNrLEhqTBwv0CMLJCW',
2023
+ 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
2024
+ 'rg93BMXVywrLzcb0BZOG',
2025
+ 'zMLUzenHy2HLzfbHDgG',
2026
+ 'CMvHC29U',
2027
+ 'z2v0u2vJB25KCW',
2028
+ 'B3bLBL9PC3n1zxm',
2029
+ 'yxbWBgLJyxrPB24VANnVBG',
1755
2030
  'BMv4Den1CNnVCG',
2031
+ 'l3vWBg9Hza',
2032
+ 'Bwf4',
2033
+ 'ChvZAa',
2034
+ 'twvZC2fNzsbZzw50ihrVia',
2035
+ 'BMfTzq',
2036
+ 'tM8GDgfZA3mGy2XHAw1Lzc4',
2037
+ 'DgL0Bgu',
2038
+ 'DgfZA0LK',
2039
+ 'zMLUAxnOx3DVCMTLCIbMywLSzwq',
2040
+ 'Aw5JBhvKzxm',
2041
+ 'C29YDa',
2042
+ 'icHPzdO',
2043
+ 'CxvLDwvK',
2044
+ 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
2045
+ 'Dgv4Dc9JC3y',
2046
+ 'DgHYzwfKu2HVCNrjza',
2047
+ 'y3jLyxrLzef0',
2048
+ 'zgvZy3jPChrPB24',
2049
+ 'yxr0ywnOBwvUDeLK',
2050
+ 'yxr0ywnOBwvUDf9Pza',
1756
2051
  'C3rYAw5N',
1757
- 'Aw1Hz2uVANbLzW',
1758
- 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
1759
- 'CMvZDwX0sNnVBG',
1760
- 'DxbKyxrLx3rHC2TFC3rHDhvZ',
1761
- 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
1762
- 'AhvTyw4',
1763
- 'zgvZDhjVEwvK',
1764
- 'yM9KEu1HCMTKB3DU',
1765
- 'C2vYDMvYtMfTzq',
2052
+ 'B3jPz2LUywXgAwXLBMfTzq',
2053
+ 'D29YA2vYsgfUzg9MzKvYCM9Y',
2054
+ 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
2055
+ 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
2056
+ 'Agv4',
2057
+ 'zg93BMXVywrbDhrHy2HTzw50',
2058
+ 'zMfPBgvK',
2059
+ 'DgHYzwfK',
1766
2060
  'ywz0zxjtzxe',
1767
- 'mZq4m3jyu3jkuW',
1768
- 'l3jLC29SDMuTy2HHBM5LBa',
2061
+ 'C3rHCNrLza',
2062
+ 'C3rYAw5NAwz5',
2063
+ 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
2064
+ 'ywDLBNrZ',
2065
+ 'yxbWBgLJyxrPB24VCgrM',
2066
+ 'twLZC2LUzYaTlwfNzw50lwLK',
2067
+ 'ntjwtNjHyxm',
2068
+ 'y29UDgvUDfr5Cgu',
2069
+ 'CMvZCg9UC2u',
2070
+ 'zgf0yq',
2071
+ 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
2072
+ 'ywrK',
2073
+ 'C2LNBMfS',
2074
+ 'y2HHDa',
2075
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
2076
+ 'CgfYDgLJAxbHBNrjza',
2077
+ 'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
2078
+ 'ywDLBNrjza',
2079
+ 'y29TCgXLDgvK',
2080
+ 'AM9PBG',
2081
+ 'B3b0Aw9UywW',
2082
+ 'ig1LC3nHz2vZkqOk',
2083
+ 'lMjPBG',
2084
+ 'C2HHmJu2',
2085
+ 'yMXVy2TLza',
2086
+ 'y2HHBM5LBhm',
2087
+ 'yMfZzw5HBwu',
2088
+ 'y2HLy2TnzxnZywDLCW',
2089
+ 'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
2090
+ 's0iPcKf0DgfJAg1LBNqGsuq6ia',
2091
+ 'DMLLD19MAwXLigzHAwXLza',
2092
+ 'CMvXDwvZDfvYBa',
2093
+ 'Dw5JBgfPBv90yxnR',
2094
+ 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
2095
+ 'Dw5RBM93BG',
2096
+ 'DgfZA051BwjLCG',
2097
+ 'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
1769
2098
  'CgfKu3rHCNq',
1770
- 'v29YA2vYici',
1771
- 'y3jLyxrLzef0',
1772
- 'CNvUBMLUzW',
1773
- 'zM9Yy2vszwzYzxnO',
1774
- 'y3jLyxrLvgfZA3m',
1775
- 'C2vYDMvY',
1776
- 'DgHYzwfKswq',
2099
+ 'zgvZDhjVEwvK',
2100
+ 'ywDLBNq',
2101
+ 'uM9VDcb0yxnRig1LC3nHz2u6cG',
2102
+ 'zMLUAxnOx3DVCMTLCG',
2103
+ 'DgfYz2v0zwq',
2104
+ 'Aw5FCMv2Awv3',
2105
+ 'l3DVCMTLCNmVzgvSAxzLCG',
1777
2106
  'yxr0ywnOBwvUDenHy2HL',
1778
- 'DgfZAY0',
1779
- 'DxjNzw50',
2107
+ 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
2108
+ 'z2v0twLUDxrLCW',
2109
+ 'zgfLBw9UqxbPs2v5',
2110
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
1780
2111
  'l3nLCNzLCG',
1781
- 'zw50CMLLCW',
1782
- 'C2vYDMvYvxjS',
1783
- 'AxnbCNjHEq',
1784
- 'y29UDgvUDejHC2u2na',
1785
- 's0iPcKf0DgfJAg1LBNqGsuq6ia',
1786
- 'DgHYzwfKx3rHCMDLDa',
1787
- 'mtG5zgXgDgHi',
1788
- 'yxjYyxLcDwzMzxi',
2112
+ 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
2113
+ 'D29YA2vYx3nLC3nPB25FAwq',
2114
+ 'A2LUza',
1789
2115
  'z2v0sg91CNm',
1790
- 'zxHLy3v0Aw9Utw9Kzt0',
1791
- 'zMLUza',
2116
+ 'DgHYzwfKx3rHCMDLDa',
2117
+ 'DxjNzw50',
2118
+ 'zgvJAxnPB25Z',
2119
+ 'DgvZDa',
2120
+ 'y2HHBM5LBfrHCMDLDa',
2121
+ 'nJHUBwHHCgC',
2122
+ 'tM8GDgfZA3mGy3jLyxrLzc4',
2123
+ 'Bwf0y2Hoyw1Ltg93zxi',
2124
+ 'CMvHzeHPC3rVCNK',
2125
+ 'CM9VDe1LC3nHz2vjza',
2126
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
2127
+ 'BM93',
2128
+ 'iYmJienOyw5UzwXZ',
2129
+ 'Ahr0Chm6',
2130
+ 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
2131
+ 'BgvUz3rO',
2132
+ 'AxnjBNrLz2vY',
2133
+ 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
2134
+ 'l2fWAs9HDhrHy2HTzw50CY8',
2135
+ 'D29YA2vYCW',
2136
+ 'kg5VBMuP',
2137
+ 'ywXS',
2138
+ 'C3bSAxq',
2139
+ 'y2f0y2G',
2140
+ 'ue9tva',
2141
+ 'D29YA2vYtw9Kzq',
2142
+ 'y29UDgvUDc10ExbL',
2143
+ 'v29YA2vYia',
2144
+ 'Aw1Hz2uVC3zNk3HTBa',
2145
+ 'D29YA2vYrgLZCg9ZAxrPB24',
2146
+ 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
2147
+ 'mte1me5owNPTtG',
2148
+ 'zw51Bq',
2149
+ 'D3nZoG',
2150
+ 'Aw1Hz2uVANbLzW',
2151
+ 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
2152
+ 'DgHYzwfKvgfYz2v0pq',
2153
+ 'yxjNDG',
2154
+ 'zMLSDgvY',
2155
+ 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
2156
+ 'vgHYzwfKihrHCMDLDdOG',
2157
+ 'Dgv4Da',
2158
+ 'yxr0ywnOBwvUDeLKCW',
2159
+ 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
2160
+ 'tM8GDgfZA3mGzM91BMqU',
2161
+ 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
2162
+ 'AgvHzgvYCW',
2163
+ 'v29YA2vYici',
2164
+ 'BMv4Df9ZDgvWCW',
2165
+ 'Dg9mB3DLCKnHC2u',
2166
+ 'kgXLz2fJEsK',
1792
2167
  'ywjVCNq',
1793
- 'yxbWBgLJyxrPB24VANnVBG',
1794
- 'C2LNBMfS',
1795
- 'l3DVCMTLCNmVzMLUAxnO',
2168
+ 'C2L6zq',
2169
+ 'zMLSzw5HBwu',
2170
+ 'z2v0vgLTzq',
2171
+ 'ndi5nZG1nK5oCeTPvW',
2172
+ 'y2fJAgveAxi',
2173
+ 'D29YA2vYu2vZC2LVBKLK',
2174
+ 'zgLZCg9ZAxrPB24',
2175
+ 'Dg9gAxHLza',
2176
+ 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
2177
+ 'y29UBMvJDa',
2178
+ 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
2179
+ 'Bwf0y2Hoyw1L',
2180
+ 'CMvZDwX0CW',
2181
+ 'zMfSC2u',
2182
+ 'y2XHAw1FDgfZA3m',
2183
+ 'Aw1Hz2uVD2vICa',
2184
+ 'zxjYB3i',
2185
+ 'zM9Yy2vszwzYzxnO',
2186
+ 'C3vTBwfYEq',
2187
+ 'Bwv0yq',
2188
+ 'DxbKyxrLx3rHC2TFC3rHDhvZ',
2189
+ 'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
2190
+ 'DgfYz2v0zwruyxnR',
2191
+ 'Aw5FChjVz3jLC3m',
2192
+ 'BwLU',
2193
+ 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
2194
+ 'l2LUDgvYBMfSl2fNzw50lW',
1796
2195
  'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
2196
+ 'l3jLC29SDMuTy2HHBM5LBa',
2197
+ 'AhvTyw5Z',
2198
+ 'C2vX',
2199
+ 'zgfLBw9Utg9JywXvCMW',
2200
+ 'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
2201
+ 'Bg9JywXLq29TCgfYzq',
2202
+ 'Dg9VBa',
2203
+ 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
2204
+ 'l2HPC3rVCNK/',
2205
+ 'l3nLBMq',
2206
+ 'DMLLD19MAwXL',
2207
+ 'khvUA25VD24P',
2208
+ 'rMLSzsbUB3qGzM91BMq6ia',
2209
+ 'BgLZDf9Zzxj2zxi',
1797
2210
  'ls13B3jRzxiTC2vZC2LVBI1Pza',
1798
- 'y2HHDa',
2211
+ 'Cgf5Bg9HzePZB24',
2212
+ 'z2v0x3DVCMTLCL9Yzxn1Bhq',
2213
+ 'odiWota1m3nUBxD2qq',
2214
+ 'y3jLyxrLvgfZA3m',
2215
+ 'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
1799
2216
  'C2v0',
1800
- 'C2vUzgvYugfYDgLJAxbHBNrjza',
1801
- 'CxvLDwvK',
1802
- 'BwvTyMvY',
1803
- 'twvZC2fNzsbZzw50ihrVia',
1804
- 'BwvKAxvT',
1805
- 'zg0T',
1806
- 'C3rYAw5NAwz5',
1807
- 'C2HHmJu2',
1808
- 'y3jLyxrLx3rHC2TZ',
1809
- 'ls1ZzxnZAw9UlwLK',
1810
- 'CMvZDw1Lx3bHy2TLDa',
1811
- 'DgfZA19Pza',
1812
- 'y2HHBM5LBfrHCMDLDa',
1813
- 'D3nZoG',
1814
- 'y29UDgvUDc10ExbL',
1815
- 'ue9tva',
1816
- 'ntCWBxHVsNDL',
1817
- 'y2HHBM5LBhm',
1818
- 'zg93BMXVywrbDhrHy2HTzw50',
1819
- 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
1820
- 'y29UBMvJDa',
1821
- 'iIbUB3qGzM91BMq',
1822
- 'DgfZA3m',
1823
- 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
1824
- 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
1825
- 'yMfZzty0',
1826
- 'ywXS',
1827
- 'ywrKrxzLBNrmAxn0zw5LCG',
1828
- 'zw50zxiTAgfUzg9MzIbMywLSzwq',
1829
2217
  'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
1830
- 'lNnSB2nR',
1831
- 'w3rHCMDLDd0',
1832
- 'Dg9VBa',
1833
- 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
1834
- 'C3vTBwfYEq',
1835
- '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
1836
- 'Bwf0y2Hoyw1L',
1837
- 'l3n0yxj0',
1838
- 'Dg9gAxHLza',
1839
- 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
1840
- 'DgfZA0rLBgL2zxj5tw9Kzq',
1841
- 'DgHYzwfKtNvTyMvY',
1842
- 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
1843
- 'D29YA2vYsgfUzg9MzG',
1844
- 'yMvMB3jL',
1845
- 'D29YA2vYu2vZC2LVBKLK',
1846
- 'BgLZDfrHC2TZ',
2218
+ 'DxrMoa',
2219
+ 'DxbSB2fKx2zPBgu',
2220
+ 'mJCXodK4oxHwvLbyqq',
2221
+ 'zNjVBq',
1847
2222
  'BgLZDf90yxnRCW',
1848
- 'zxzLBNrtzxe',
1849
- 'l3rHC2TZl2nSywLT',
1850
- 'Ahr0Chm6',
2223
+ 'DMfSDwu',
2224
+ 'EM9K',
2225
+ 'Dg9mB2nHBgvmB3DLCKnHC2u',
2226
+ 'zxHWAxjLC0f0',
2227
+ 'zxHLy3v0Aw9Utw9Kzq',
2228
+ 'DgfZA19Pza',
2229
+ 'Aw5KzxHpzG',
2230
+ 'iJOGC3rHDhvZpq',
2231
+ 'pgvTChr5pG',
2232
+ 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
2233
+ 'ANnVBG',
2234
+ 'ls1KywvTB24TyxbPlwTLEq',
2235
+ 'y2HHBM5LBe5HBwu',
2236
+ 'Dg9tDhjPBMC',
2237
+ 'lsaJ',
2238
+ 'mtuXmtbYwhj3B0O',
2239
+ 'Dg9KBW',
1851
2240
  'y2HHBM5LBeLK',
1852
- 'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
1853
- 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
2241
+ 'DgfYz2v0',
2242
+ 'C2vUzgvYvhLWzq',
2243
+ 'BwvZC2fNzq',
2244
+ 'ig1ZzZ0',
2245
+ 'D29YA2vYrgLZCg9ZAxrPB249',
2246
+ 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
2247
+ 'lcbJB250zw50lxr5Cgu9',
2248
+ 'odC3mNHSDuP1ta',
2249
+ 'BwvTyMvYCW',
2250
+ 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
1854
2251
  'BwfW',
1855
- 'Dgv4Dc9WBgfPBG',
1856
- 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
1857
- 'D3m6',
1858
- 'C2L6zq',
1859
- 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
1860
- 'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
1861
- 'C2XPy2u',
1862
- 'Aw5JBhvKzxm',
2252
+ 'zxzLBNrtzxe',
2253
+ 'D29YA2vYvgHYzwfKvgfYz2v0',
2254
+ 'BgLZDf9Zzxj2zxiGzMfPBgvK',
2255
+ 'nduWndC2ntbWuKLOD04',
2256
+ 'BwvZC2fNzxm',
1863
2257
  'B2jQzwn0',
1864
- 'DgHYzwfK',
1865
- 'Bwv0yq',
1866
- 'DgHYzwfKu2HVCNrjza',
1867
- 'ls1KywvTB24TyxbPlwTLEq',
1868
- 'z2v0x3DVCMTLCL9ZDgf0Dxm',
1869
- 'y2HLy2TnzxnZywDLCW',
1870
- 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
1871
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
1872
- 'z2v0twLUDxrLCW',
1873
- 'CMvWBgfJzq',
1874
- 'zgLNzxn0',
1875
- 'l3rHC2TZpW',
1876
- 'AwrLBxbVDgvUy3LFA2v5',
1877
- 'C3rVCe1HAw4',
1878
- 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
1879
- 'ls13B3jRzxiTBw9Kzq',
1880
- 'yM9KEvrLEhq',
1881
- 'Dw5RBM93BG',
1882
- 'CgfYDgLJAxbHBNrjza',
1883
- 'zMLUzenHy2HLzfbHDgG',
1884
- 'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
1885
- 'Ahr0CdO',
1886
- 'DxbSB2fKx2zPBguGzMfPBgvK',
1887
- 'Dgv4Dc9JC3y',
1888
- 'tM8GDgfZA3mGy3jLyxrLzc4',
1889
- 'C29YDa',
1890
- 'z2v0',
1891
- 'DgHYzwfKvgfYz2v0',
1892
- 'y2HHBM5LBe5HBwu',
1893
- 'yxr0ywnOBwvUDf9Pzhm',
1894
- 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
1895
- 'kg5VBMuP',
1896
- 'lMjPBG',
1897
- 'zxjYB3i',
1898
- 'ihrPBwu9',
1899
- 'DgfZAW',
1900
- 'y2HLy2TFBwvZC2fNzxm',
1901
- 'B3b0Aw9UywW',
1902
- 'odC4ndC4AMf1u2Xb',
1903
- 'ls1Hz2vUDc1Pza',
1904
- 'zgvJAxnPB25Z',
1905
- 'DgfYz2v0zwruyxnR',
1906
- 'A2LUza',
1907
- '6k+35Rgcia',
1908
- 'DxbSB2fKrMLSzq',
1909
- 'yMfZzw5HBwu',
1910
- 'BgLZDfnLCNzLCG',
1911
- 'yxbWBgLJyxrPB24VCgrM',
1912
- 'y29TCgXLDgvK',
1913
- 'y2f0y2G',
1914
- 'vgfZAZOG',
1915
- 'DgfZA051BwjLCG',
1916
- 'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
1917
- 'CMvZDwX0CW',
1918
- 'mJe1nZaZA2HPBKDV',
1919
- 'C2vUze1LC3nHz2u',
1920
2258
  'C29Tzq',
1921
- 'C3rHDhvZ',
1922
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
1923
- 'D29YA2vYtw9KzuvUywjSzwq',
1924
- 'BNvTyMvY',
1925
- 'DxrMoa',
1926
- 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
1927
- 'tM8GDgfZA3mGy2XHAw1Lzc4',
1928
- 'ota1otCZtuPQsxb1',
1929
- 'ywDLBNq',
1930
- 'zgLZCg9ZAxrPB24',
1931
- 'zgf0yq',
1932
- 'C2vUzf9TzxnZywDLigzHAwXLza',
2259
+ 'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
2260
+ 'ihn0yxr1CZ0',
2261
+ 'BwvZC2fNzuLK',
2262
+ 'w3rHCMDLDd0',
2263
+ 'BgLTAxq',
2264
+ 'C3rHCNrZv2L0Aa',
2265
+ 'igzHAwXLzdOG',
2266
+ 'ChvIBgLJ',
2267
+ 'z2v0',
2268
+ 'AgfZtw9Yzq',
2269
+ 'ls1Zzxj2zxiTDxjS',
2270
+ 'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
2271
+ 'C2vYDMvYtMfTzq',
2272
+ 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
2273
+ 'zMLUza',
2274
+ 'Axnoyu4',
2275
+ 'DxbSB2fKuhjLCgfYzxi',
2276
+ 'ywrKrxzLBNrmAxn0zw5LCG',
2277
+ 'y3jLyxrLx3rHC2TZ',
2278
+ 'zMLSzxnFy2HHBMDLza',
2279
+ 'C2vYDMvY',
1933
2280
  'igf0DgfJAg1LBNq',
1934
- 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
1935
- 'Dg9tDhjPBMC',
1936
- 'DgfZA0LK',
1937
- 'DMfSDwvZ',
1938
- 'iYmGu2vYDMvYoIa',
1939
- 'zxHLy3v0Aw9Utw9Kzq',
1940
- 'r0vu',
1941
- 'CgfYC2vjBNq',
1942
- 'l3rHC2TZ',
1943
- 'ihr5Cgu9ywDLBNq',
1944
2281
  'ywDNCMvNyxrLswq',
1945
- 'zxH0BMfTzq',
1946
- 'ANnVBG',
1947
- 'ls1KywvTB24TBg9JywWTDxjS',
1948
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
1949
- 'yMXVy2TLza',
1950
- 'l2nVBNrLBNq',
1951
- 'y29UDgvUDfr5Cgu',
1952
- 'DxbKyxrLvgfZA1n0yxr1CW',
1953
- 'AgfZtw9Yzq',
1954
- 'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
1955
- 'C2L6zuj5DgvZ',
1956
- 'pgvTChr5pG'
2282
+ 'C3vJy2vZCW',
2283
+ 'C2vUzgvYugfYDgLJAxbHBNrjza',
2284
+ 'xsba',
2285
+ '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
2286
+ '6k+35Rgcia',
2287
+ 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
2288
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
2289
+ 'ChjVDg9JB2W',
2290
+ 'CMvHzf9OAxn0B3j5igzHAwXLza',
2291
+ 'yMfZzty0',
2292
+ 'iokaLca',
2293
+ 'ywDNCMvNyxrLvhLWzq',
2294
+ 'DgHYzwfKvgfYz2v0',
2295
+ 'BgLZDf90yxnRCYbMywLSzwq',
2296
+ 'yxjYyxK',
2297
+ 'DgfZA3m',
2298
+ 'AxngAw5PDgu',
2299
+ 'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
2300
+ 'vgfZAZOG',
2301
+ 'zw50CMLLCW'
1957
2302
  ];
1958
- _0x3e90 = function () {
1959
- return _0x3aaf42;
1960
- };
1961
- return _0x3e90();
1962
- }
1963
- async function registerChatBridgeTools(_0x2bff0e, _0x4b3a84, _0x3d795d) {
1964
- const _0x23265a = {
1965
- _0x484445: 0x27d,
1966
- _0x13428f: 0x197,
1967
- _0x39d0ad: 0x258,
1968
- _0x5ec6f1: 0x2b0,
1969
- _0x57a62d: 0x2c9,
1970
- _0x33e509: 0x1dc,
1971
- _0x265284: 0x28b,
1972
- _0x4a53ac: 0x1db,
1973
- _0x310d24: 0x270,
1974
- _0x241269: 0x2ba,
1975
- _0x3d854e: 0x1f3,
1976
- _0x1631f5: 0x1f3,
1977
- _0x588314: 0x197,
1978
- _0x173c17: 0x1b2,
1979
- _0x538e02: 0x1a6,
1980
- _0x27e922: 0x1ac,
1981
- _0x5a6738: 0x264,
1982
- _0xf7897d: 0x252,
1983
- _0x1c5914: 0x17b,
1984
- _0x29819b: 0x2e0,
1985
- _0x48dbc8: 0x2ce,
1986
- _0x2db687: 0x2c9,
1987
- _0x1878ff: 0x1b6,
1988
- _0x386995: 0x1c8,
1989
- _0x4b71a5: 0x1dc,
1990
- _0x31613e: 0x242,
1991
- _0x528d8e: 0x211,
1992
- _0x48e2b7: 0x2c9,
1993
- _0x2f74fd: 0x2cd,
1994
- _0x5a5277: 0x2c9,
1995
- _0x2793c9: 0x1f3,
1996
- _0x2c2625: 0x264,
1997
- _0xbf3e8f: 0x2c9,
1998
- _0x26d812: 0x272,
1999
- _0x531e2b: 0x20c,
2000
- _0x35c878: 0x222,
2001
- _0x48bf45: 0x2c9,
2002
- _0x4c4b48: 0x197
2003
- }, _0xa7c180 = { _0x289561: 0x1af }, _0x571331 = {
2004
- _0x549140: 0x2c6,
2005
- _0x4eb010: 0x281,
2006
- _0x4227e5: 0x1bd
2007
- }, _0x37e8ab = {
2008
- _0x433717: 0x26e,
2009
- _0x568637: 0x281
2010
- }, _0x99c5e0 = { _0x34c524: 0x1bb }, _0x54f4f5 = {
2011
- _0xed5de7: 0x239,
2012
- _0x284f7f: 0x281
2013
- }, _0x2ccb54 = { _0x7dda06: 0x281 }, _0xabb27 = { _0x16ee01: 0x2cd }, _0x180d4d = { _0x2cd15d: 0x24f }, _0x52eaf1 = { _0x540c0e: 0x281 }, _0x3b0b3e = { _0x2241a9: 0x281 }, _0x5ab597 = {
2014
- _0x1752b1: 0x281,
2015
- _0x21b405: 0x2ae
2016
- }, _0x3a03eb = {
2017
- _0x27a14d: 0x1db,
2018
- _0x16d597: 0x281
2019
- }, _0x2e5036 = {
2020
- _0x4e97b6: 0x258,
2021
- _0x27fdcf: 0x281
2022
- }, _0x17332e = _0xd0824a, {z: _0x7bc2e} = await import(_0x17332e(_0x23265a._0x484445));
2023
- _0x2bff0e[_0x17332e(_0x23265a._0x13428f)](_0x17332e(_0x23265a._0x39d0ad), _0x17332e(_0x23265a._0x5ec6f1), {
2024
- 'target': _0x7bc2e[_0x17332e(0x2c9)](),
2025
- 'content': _0x7bc2e['string'](),
2026
- 'attachment_ids': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e[_0x17332e(_0x23265a._0x57a62d)]())[_0x17332e(_0x23265a._0x33e509)](),
2027
- 'visibility': _0x7bc2e[_0x17332e(0x264)]([
2028
- _0x17332e(_0x23265a._0x265284),
2029
- _0x17332e(0x2ab)
2030
- ])[_0x17332e(0x1dc)]()
2031
- }, async _0x47a3cf => {
2032
- const _0x293ff2 = _0x17332e;
2033
- try {
2034
- return textResult(await _0x4b3a84[_0x293ff2(_0x2e5036._0x4e97b6)](_0x47a3cf));
2035
- } catch (_0x2f4052) {
2036
- return textResult(_0x2f4052 instanceof Error ? _0x2f4052[_0x293ff2(_0x2e5036._0x27fdcf)] : _0x293ff2(0x1fb), !![]);
2037
- }
2038
- }), _0x2bff0e[_0x17332e(0x197)](_0x17332e(_0x23265a._0x4a53ac), _0x17332e(0x21a), {}, async () => {
2039
- const _0x4a202d = _0x17332e;
2040
- try {
2041
- return textResult(await _0x4b3a84[_0x4a202d(_0x3a03eb._0x27a14d)]());
2042
- } catch (_0x2bd74f) {
2043
- return textResult(_0x2bd74f instanceof Error ? _0x2bd74f[_0x4a202d(_0x3a03eb._0x16d597)] : _0x4a202d(0x2a3), !![]);
2044
- }
2045
- }), _0x2bff0e['tool'](_0x17332e(_0x23265a._0x310d24), _0x17332e(_0x23265a._0x241269), {
2046
- 'channel': _0x7bc2e[_0x17332e(0x2c9)](),
2047
- 'limit': _0x7bc2e[_0x17332e(_0x23265a._0x3d854e)]()[_0x17332e(0x1dc)](),
2048
- 'before': _0x7bc2e[_0x17332e(0x1f3)]()['optional'](),
2049
- 'after': _0x7bc2e[_0x17332e(_0x23265a._0x1631f5)]()['optional']()
2050
- }, async _0x3ca7e9 => {
2051
- const _0x2ecfba = _0x17332e;
2052
- try {
2053
- return textResult(await _0x4b3a84['read_history'](_0x3ca7e9));
2054
- } catch (_0x4bf082) {
2055
- return textResult(_0x4bf082 instanceof Error ? _0x4bf082[_0x2ecfba(0x281)] : 'read_history\x20failed', !![]);
2056
- }
2057
- }), _0x2bff0e[_0x17332e(_0x23265a._0x588314)](_0x17332e(0x229), _0x17332e(_0x23265a._0x173c17), {}, async () => {
2058
- const _0x35ea88 = _0x17332e;
2059
- try {
2060
- return textResult(await _0x4b3a84['list_server']());
2061
- } catch (_0x2d7278) {
2062
- return textResult(_0x2d7278 instanceof Error ? _0x2d7278[_0x35ea88(_0x5ab597._0x1752b1)] : _0x35ea88(_0x5ab597._0x21b405), !![]);
2063
- }
2064
- }), _0x2bff0e[_0x17332e(_0x23265a._0x588314)](_0x17332e(_0x23265a._0x538e02), _0x17332e(_0x23265a._0x27e922), {
2065
- 'channel': _0x7bc2e['string'](),
2066
- 'status': _0x7bc2e[_0x17332e(_0x23265a._0x5a6738)]([
2067
- _0x17332e(0x25b),
2068
- 'in_progress',
2069
- _0x17332e(_0x23265a._0xf7897d),
2070
- _0x17332e(0x25a)
2071
- ])[_0x17332e(0x1dc)]()
2072
- }, async _0x334d9e => {
2073
- const _0x5b1ce4 = _0x17332e;
2074
- try {
2075
- return textResult(await _0x4b3a84[_0x5b1ce4(0x1a6)](_0x334d9e));
2076
- } catch (_0x3f0063) {
2077
- return textResult(_0x3f0063 instanceof Error ? _0x3f0063[_0x5b1ce4(_0x3b0b3e._0x2241a9)] : 'list_tasks\x20failed', !![]);
2078
- }
2079
- }), _0x2bff0e['tool']('create_tasks', _0x17332e(0x283), {
2080
- 'channel': _0x7bc2e[_0x17332e(0x2c9)](),
2081
- 'idempotency_key': _0x7bc2e[_0x17332e(_0x23265a._0x57a62d)]()['optional'](),
2082
- 'tasks': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e['object']({
2083
- 'title': _0x7bc2e[_0x17332e(0x2c9)](),
2084
- 'description': _0x7bc2e[_0x17332e(_0x23265a._0x57a62d)]()['optional'](),
2085
- 'priority': _0x7bc2e[_0x17332e(_0x23265a._0x5a6738)]([
2086
- _0x17332e(0x225),
2087
- _0x17332e(_0x23265a._0x1c5914),
2088
- _0x17332e(0x29c),
2089
- _0x17332e(_0x23265a._0x29819b)
2090
- ])[_0x17332e(0x1dc)]()
2091
- }))
2092
- }, async _0x5b7d43 => {
2093
- const _0x5e1c50 = _0x17332e;
2094
- try {
2095
- return textResult(await _0x4b3a84[_0x5e1c50(0x17f)](_0x5b7d43));
2096
- } catch (_0x4152e1) {
2097
- return textResult(_0x4152e1 instanceof Error ? _0x4152e1[_0x5e1c50(_0x52eaf1._0x540c0e)] : 'create_tasks\x20failed', !![]);
2098
- }
2099
- }), _0x2bff0e['tool'](_0x17332e(0x24e), _0x17332e(_0x23265a._0x48dbc8), {
2100
- 'channel': _0x7bc2e[_0x17332e(_0x23265a._0x2db687)](),
2101
- 'task_numbers': _0x7bc2e['array'](_0x7bc2e['number']())[_0x17332e(0x1dc)](),
2102
- 'message_ids': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e[_0x17332e(0x2c9)]())[_0x17332e(_0x23265a._0x33e509)](),
2103
- 'evidence': _0x7bc2e[_0x17332e(0x2c0)](_0x7bc2e[_0x17332e(0x2c9)](), _0x7bc2e[_0x17332e(_0x23265a._0x1878ff)]({
2104
- 'create_thread': _0x7bc2e['unknown']()[_0x17332e(0x1dc)](),
2105
- 'create_task': _0x7bc2e[_0x17332e(_0x23265a._0x386995)]()[_0x17332e(_0x23265a._0x4b71a5)]()
2106
- }))['optional'](),
2107
- 'idempotency_key': _0x7bc2e['string']()[_0x17332e(_0x23265a._0x4b71a5)]()
2108
- }, async _0x327d6d => {
2109
- const _0x22d454 = _0x17332e;
2110
- try {
2111
- return textResult(await _0x4b3a84[_0x22d454(0x24e)](_0x327d6d));
2112
- } catch (_0x24359c) {
2113
- return textResult(_0x24359c instanceof Error ? _0x24359c['message'] : _0x22d454(0x2c3), !![]);
2114
- }
2115
- }), _0x2bff0e[_0x17332e(0x197)](_0x17332e(_0x23265a._0x31613e), _0x17332e(_0x23265a._0x528d8e), {
2116
- 'channel': _0x7bc2e[_0x17332e(_0x23265a._0x2db687)](),
2117
- 'task_number': _0x7bc2e[_0x17332e(0x1f3)](),
2118
- 'idempotency_key': _0x7bc2e[_0x17332e(_0x23265a._0x48e2b7)]()[_0x17332e(_0x23265a._0x33e509)]()
2119
- }, async _0x4933ac => {
2120
- const _0x38436d = _0x17332e;
2121
- try {
2122
- return textResult(await _0x4b3a84['unclaim_task'](_0x4933ac));
2123
- } catch (_0x4a0bb7) {
2124
- return textResult(_0x4a0bb7 instanceof Error ? _0x4a0bb7['message'] : _0x38436d(_0x180d4d._0x2cd15d), !![]);
2125
- }
2126
- }), _0x2bff0e[_0x17332e(_0x23265a._0x588314)](_0x17332e(_0x23265a._0x2f74fd), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.', {
2127
- 'channel': _0x7bc2e[_0x17332e(_0x23265a._0x5a5277)](),
2128
- 'task_number': _0x7bc2e[_0x17332e(_0x23265a._0x2793c9)](),
2129
- 'status': _0x7bc2e[_0x17332e(_0x23265a._0x2c2625)]([
2130
- 'todo',
2131
- 'in_progress',
2132
- 'in_review',
2133
- 'done'
2134
- ]),
2135
- 'idempotency_key': _0x7bc2e[_0x17332e(_0x23265a._0x2db687)]()[_0x17332e(0x1dc)]()
2136
- }, async _0x46d858 => {
2137
- const _0x56d98c = _0x17332e;
2138
- try {
2139
- return textResult(await _0x4b3a84[_0x56d98c(_0xabb27._0x16ee01)](_0x46d858));
2140
- } catch (_0x4f86b4) {
2141
- return textResult(_0x4f86b4 instanceof Error ? _0x4f86b4['message'] : _0x56d98c(0x266), !![]);
2142
- }
2143
- }), _0x2bff0e['tool']('upload_file', 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
2144
- 'channel': _0x7bc2e[_0x17332e(_0x23265a._0xbf3e8f)](),
2145
- 'file_path': _0x7bc2e[_0x17332e(_0x23265a._0x57a62d)]()
2146
- }, async _0x1ebcbd => {
2147
- const _0x78ddc1 = _0x17332e;
2148
- try {
2149
- return textResult(await _0x4b3a84[_0x78ddc1(0x29a)](_0x1ebcbd));
2150
- } catch (_0x4c7b00) {
2151
- return textResult(_0x4c7b00 instanceof Error ? _0x4c7b00[_0x78ddc1(_0x2ccb54._0x7dda06)] : _0x78ddc1(0x1cd), !![]);
2152
- }
2153
- }), _0x2bff0e[_0x17332e(0x197)](_0x17332e(0x239), _0x17332e(_0x23265a._0x26d812), { 'attachment_id': _0x7bc2e[_0x17332e(0x2c9)]() }, async _0x145bd3 => {
2154
- const _0x394e0b = _0x17332e;
2155
- try {
2156
- return textResult(await _0x4b3a84[_0x394e0b(_0x54f4f5._0xed5de7)](_0x145bd3));
2157
- } catch (_0x13e20b) {
2158
- return textResult(_0x13e20b instanceof Error ? _0x13e20b[_0x394e0b(_0x54f4f5._0x284f7f)] : 'view_file\x20failed', !![]);
2159
- }
2160
- }), _0x2bff0e[_0x17332e(_0x23265a._0x13428f)](_0x17332e(0x1bb), _0x17332e(0x2f1), { 'work_key': _0x7bc2e[_0x17332e(0x2c9)]() }, async _0x3aa78a => {
2161
- const _0x80a356 = _0x17332e;
2162
- try {
2163
- return textResult(await _0x4b3a84[_0x80a356(_0x99c5e0._0x34c524)](_0x3aa78a));
2164
- } catch (_0x14b819) {
2165
- return textResult(_0x14b819 instanceof Error ? _0x14b819[_0x80a356(0x281)] : 'get_worker_status\x20failed', !![]);
2166
- }
2167
- }), _0x2bff0e[_0x17332e(0x197)](_0x17332e(0x26e), _0x17332e(0x194), { 'work_key': _0x7bc2e['string']() }, async _0x155071 => {
2168
- const _0x4d4849 = _0x17332e;
2169
- try {
2170
- return textResult(await _0x4b3a84[_0x4d4849(_0x37e8ab._0x433717)](_0x155071));
2171
- } catch (_0x5080fc) {
2172
- return textResult(_0x5080fc instanceof Error ? _0x5080fc[_0x4d4849(_0x37e8ab._0x568637)] : _0x4d4849(0x249), !![]);
2173
- }
2174
- }), _0x2bff0e['tool'](_0x17332e(0x2a1), 'Signal\x20that\x20the\x20current\x20worker\x20session\x20is\x20finished\x20and\x20provide\x20a\x20result\x20summary.', {
2175
- 'work_key': _0x7bc2e[_0x17332e(_0x23265a._0x5a5277)](),
2176
- 'result': _0x7bc2e['enum']([
2177
- _0x17332e(0x1e7),
2178
- _0x17332e(_0x23265a._0x531e2b),
2179
- 'failed'
2180
- ]),
2181
- 'summary': _0x7bc2e[_0x17332e(0x2c9)](),
2182
- 'decisions': _0x7bc2e[_0x17332e(_0x23265a._0x35c878)](_0x7bc2e['string']())['optional'](),
2183
- 'files_changed': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e[_0x17332e(_0x23265a._0x48bf45)]())['optional'](),
2184
- 'open_issues': _0x7bc2e['array'](_0x7bc2e['string']())['optional'](),
2185
- 'next_steps': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e[_0x17332e(_0x23265a._0x5a5277)]())[_0x17332e(_0x23265a._0x4b71a5)]()
2186
- }, async _0x352b1f => {
2187
- const _0x1863c6 = _0x17332e;
2188
- try {
2189
- return textResult(await _0x4b3a84[_0x1863c6(0x2a1)](_0x352b1f));
2190
- } catch (_0x25aecc) {
2191
- return textResult(_0x25aecc instanceof Error ? _0x25aecc['message'] : _0x1863c6(0x286), !![]);
2192
- }
2193
- }), _0x2bff0e['tool']('escalate_to_main', _0x17332e(0x27c), {
2194
- 'work_key': _0x7bc2e[_0x17332e(0x2c9)](),
2195
- 'reason': _0x7bc2e[_0x17332e(_0x23265a._0x48e2b7)]()
2196
- }, async _0x22440a => {
2197
- const _0x202c72 = _0x17332e;
2198
- try {
2199
- return textResult(await _0x4b3a84[_0x202c72(_0x571331._0x549140)](_0x22440a));
2200
- } catch (_0x56ee89) {
2201
- return textResult(_0x56ee89 instanceof Error ? _0x56ee89[_0x202c72(_0x571331._0x4eb010)] : _0x202c72(_0x571331._0x4227e5), !![]);
2202
- }
2203
- }), _0x3d795d?.['workerMode'] && _0x2bff0e[_0x17332e(_0x23265a._0x4c4b48)](_0x17332e(0x2b7), _0x17332e(0x2be), { 'work_key': _0x7bc2e[_0x17332e(0x2c9)]() }, async _0x3c284d => {
2204
- const _0x11e25f = _0x17332e;
2205
- try {
2206
- return textResult(await _0x4b3a84[_0x11e25f(0x2b7)](_0x3c284d));
2207
- } catch (_0x527abb) {
2208
- return textResult(_0x527abb instanceof Error ? _0x527abb[_0x11e25f(0x281)] : _0x11e25f(_0xa7c180._0x289561), !![]);
2209
- }
2210
- });
2211
- }
2212
- function _0x5931(_0x48cfc7, _0x52190c) {
2213
- _0x48cfc7 = _0x48cfc7 - 0x17b;
2214
- const _0x3e90c7 = _0x3e90();
2215
- let _0x5931a1 = _0x3e90c7[_0x48cfc7];
2216
- if (_0x5931['hPTbpZ'] === undefined) {
2217
- var _0x10a547 = function (_0x5c0022) {
2218
- const _0x47ebb6 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
2219
- let _0x3d8400 = '', _0x41f792 = '';
2220
- for (let _0x5756f4 = 0x0, _0x3a742e, _0x15cd91, _0x1fe0dc = 0x0; _0x15cd91 = _0x5c0022['charAt'](_0x1fe0dc++); ~_0x15cd91 && (_0x3a742e = _0x5756f4 % 0x4 ? _0x3a742e * 0x40 + _0x15cd91 : _0x15cd91, _0x5756f4++ % 0x4) ? _0x3d8400 += String['fromCharCode'](0xff & _0x3a742e >> (-0x2 * _0x5756f4 & 0x6)) : 0x0) {
2221
- _0x15cd91 = _0x47ebb6['indexOf'](_0x15cd91);
2222
- }
2223
- for (let _0x1481af = 0x0, _0x594bf4 = _0x3d8400['length']; _0x1481af < _0x594bf4; _0x1481af++) {
2224
- _0x41f792 += '%' + ('00' + _0x3d8400['charCodeAt'](_0x1481af)['toString'](0x10))['slice'](-0x2);
2225
- }
2226
- return decodeURIComponent(_0x41f792);
2227
- };
2228
- _0x5931['QcxbJj'] = _0x10a547, _0x5931['VjddUy'] = {}, _0x5931['hPTbpZ'] = !![];
2229
- }
2230
- const _0x17ecd4 = _0x3e90c7[0x0], _0x23d328 = _0x48cfc7 + _0x17ecd4, _0x1cc221 = _0x5931['VjddUy'][_0x23d328];
2231
- return !_0x1cc221 ? (_0x5931a1 = _0x5931['QcxbJj'](_0x5931a1), _0x5931['VjddUy'][_0x23d328] = _0x5931a1) : _0x5931a1 = _0x1cc221, _0x5931a1;
2232
- }
2233
- async function createChatBridgeServer(_0x160f5b) {
2234
- const _0x1e5a16 = { _0x325767: 0x1f5 }, _0x3d4449 = _0xd0824a, {McpServer: _0x11c7d1} = await import(_0x3d4449(_0x1e5a16._0x325767)), _0x3ba025 = new _0x11c7d1({
2235
- 'name': _0x3d4449(0x2f3),
2236
- 'version': '0.0.0'
2237
- }), _0x253361 = createChatBridgeHandlers(_0x160f5b);
2238
- return await registerChatBridgeTools(_0x3ba025, _0x253361, { 'workerMode': _0x160f5b['workerMode'] }), {
2239
- 'handlers': _0x253361,
2240
- 'server': _0x3ba025
2241
- };
2242
- }
2243
- function readFlag(_0x4aa13e, _0x545e6d) {
2244
- const _0x2ca026 = _0xd0824a, _0x3900ef = _0x4aa13e[_0x2ca026(0x271)](_0x545e6d);
2245
- if (_0x3900ef === -0x1)
2246
- return void 0x0;
2247
- return _0x4aa13e[_0x3900ef + 0x1];
2248
- }
2249
- function parseChatBridgeArgs(_0x4c9684) {
2250
- const _0x3ccfb7 = {
2251
- _0x296c74: 0x1ba,
2252
- _0x2ba561: 0x20a,
2253
- _0x354c6b: 0x287,
2254
- _0x47098c: 0x2f2,
2255
- _0x58fd55: 0x204
2256
- }, _0x125ebe = _0xd0824a, _0x4de9ee = readFlag(_0x4c9684, _0x125ebe(0x1de)), _0x336716 = readFlag(_0x4c9684, _0x125ebe(_0x3ccfb7._0x296c74)), _0x4786b5 = readFlag(_0x4c9684, _0x125ebe(0x261)), _0x425875 = readFlag(_0x4c9684, '--server-url') ?? 'http://localhost:8121', _0x2dbf9c = readFlag(_0x4c9684, _0x125ebe(_0x3ccfb7._0x2ba561)), _0x18fa29 = readFlag(_0x4c9684, _0x125ebe(0x180)), _0x244f6f = readFlag(_0x4c9684, _0x125ebe(_0x3ccfb7._0x354c6b)), _0x1e6140 = readFlag(_0x4c9684, _0x125ebe(_0x3ccfb7._0x47098c)), _0x313fd6 = readFlag(_0x4c9684, _0x125ebe(0x214)), _0x1f2709 = _0x4c9684['includes'](_0x125ebe(0x1c6)), _0x5aea68 = _0x4786b5 === void 0x0 ? void 0x0 : Number[_0x125ebe(_0x3ccfb7._0x58fd55)](_0x4786b5, 0xa);
2257
- if (!_0x4de9ee)
2258
- throw new Error(_0x125ebe(0x273));
2259
- if (!_0x336716)
2260
- throw new Error(_0x125ebe(0x1ab));
2261
- if (_0x4786b5 !== void 0x0 && (_0x5aea68 === void 0x0 || !Number['isFinite'](_0x5aea68) || _0x5aea68 < 0x0))
2262
- throw new Error(_0x125ebe(0x1a1));
2263
- return {
2264
- 'agentId': _0x4de9ee,
2265
- 'daemonApiKey': _0x336716,
2266
- 'daemonLocalUrl': _0x2dbf9c,
2267
- 'initialLastSeenSeq': _0x5aea68,
2268
- 'sessionId': _0x18fa29,
2269
- 'serverUrl': _0x425875,
2270
- 'workerModeEnabled': _0x244f6f === void 0x0 ? void 0x0 : _0x244f6f !== 'false',
2271
- 'workerSessionId': _0x1e6140,
2272
- 'workerThreadTarget': _0x313fd6,
2273
- 'workerMode': _0x1f2709
2303
+ _0x4199 = function () {
2304
+ return _0xb40cad;
2274
2305
  };
2306
+ return _0x4199();
2275
2307
  }
2276
- async function runChatBridgeCli(_0xa391de) {
2277
- const _0x5cd43e = {
2278
- _0x35cd66: 0x2dc,
2279
- _0x402f29: 0x18b
2280
- }, _0xbbda71 = _0xd0824a, _0x11cf24 = parseChatBridgeArgs(_0xa391de), {StdioServerTransport: _0x44a6f9} = await import('@modelcontextprotocol/sdk/server/stdio.js'), _0x44f745 = createInternalAgentClient(_0x11cf24), _0x15f98c = createAttachmentCache(), _0x2df31f = await createChatBridgeServer({
2281
- 'agentId': _0x11cf24[_0xbbda71(0x221)],
2282
- 'attachmentCache': _0x15f98c,
2283
- 'client': _0x44f745,
2284
- 'daemonLocalUrl': _0x11cf24[_0xbbda71(0x29d)],
2285
- 'uploadPreparer': prepareUploadFile,
2286
- 'workerModeEnabled': _0x11cf24[_0xbbda71(0x1f2)],
2287
- 'workerMode': _0x11cf24[_0xbbda71(0x231)]
2288
- });
2289
- await _0x2df31f[_0xbbda71(_0x5cd43e._0x35cd66)][_0xbbda71(_0x5cd43e._0x402f29)](new _0x44a6f9());
2290
- }
2291
- var executedAsEntry = process[_0xd0824a(0x27f)][0x1] ? import.meta.url === pathToFileURL(process[_0xd0824a(0x27f)][0x1])['href'] : ![];
2292
- executedAsEntry && await runChatBridgeCli(process[_0xd0824a(0x27f)][_0xd0824a(0x1b4)](0x2));
2293
- export {
2294
- createChatBridgeHandlers,
2295
- createChatBridgeServer,
2296
- getChatBridgeToolDefinitions,
2297
- parseChatBridgeArgs,
2298
- runChatBridgeCli
2299
- };