@opentiny/next 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/server.js CHANGED
@@ -1,509 +1,561 @@
1
- import _0x561361 from "jsonwebtoken";
1
+ import _0x164627 from "jsonwebtoken";
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
4
4
  import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
5
5
  import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
6
6
  import { EmptyResultSchema, CreateMessageResultSchema, ListRootsResultSchema, isInitializeRequest } from "@modelcontextprotocol/sdk/types.js";
7
- (function(_0x380907, _0x564c67) {
8
- const _0x2cb38d = _0x1729, _0x20b6ee = _0x1729, _0x29c08f = _0x380907();
7
+ (function(_0x15e9b1, _0x4ee6f0) {
8
+ const _0x581adc = _0x55b9, _0x17b01d = _0x55b9, _0x369cf0 = _0x15e9b1();
9
9
  while (!![]) {
10
10
  try {
11
- const _0x511e43 = -parseInt(_0x2cb38d(218)) / (-1209 * 6 + -6046 + 13301) + parseInt(_0x2cb38d(204)) / (-111 + 5807 + -6 * 949) + -parseInt(_0x20b6ee(165)) / (13 * 273 + -950 + -2596 * 1) + parseInt(_0x2cb38d(175)) / (5482 * -1 + 6139 + -1 * 653) * (parseInt(_0x2cb38d(205)) / (4977 + 5762 + -10734)) + -parseInt(_0x2cb38d(216)) / (4296 + -7752 + -1731 * -2) + -parseInt(_0x2cb38d(214)) / (-7175 + -9142 * -1 + 28 * -70) * (-parseInt(_0x20b6ee(222)) / (-5673 * 1 + 11 + -567 * -10)) + -parseInt(_0x20b6ee(203)) / (9453 + 4645 + -14089) * (-parseInt(_0x20b6ee(177)) / (1680 + 190 * -21 + 2320));
12
- if (_0x511e43 === _0x564c67) break;
13
- else _0x29c08f["push"](_0x29c08f["shift"]());
14
- } catch (_0x47ffc9) {
15
- _0x29c08f["push"](_0x29c08f["shift"]());
11
+ const _0x493bfb = parseInt(_0x581adc(176)) / (6465 + -511 + -5953) * (parseInt(_0x581adc(189)) / (24 * -6 + -43 * 159 + 6983 * 1)) + -parseInt(_0x581adc(208)) / (-3369 + 2 * -20 + 3412) * (parseInt(_0x17b01d(181)) / (4219 * -1 + 61 * 31 + 2332)) + parseInt(_0x581adc(177)) / (4771 + 2 * 4552 + -730 * 19) + -parseInt(_0x581adc(243)) / (-6855 + 1605 + 5256) + parseInt(_0x581adc(218)) / (-5306 + 1 * -1871 + 7184) * (-parseInt(_0x17b01d(230)) / (9783 + 5763 + -17 * 914)) + -parseInt(_0x581adc(244)) / (-7509 + 5806 * -1 + 13324) * (-parseInt(_0x581adc(251)) / (1647 * -4 + 8378 + -1780)) + parseInt(_0x581adc(213)) / (-35 * 280 + 7002 + 2809) * (parseInt(_0x17b01d(245)) / (1867 + 201 * 35 + -35 * 254));
12
+ if (_0x493bfb === _0x4ee6f0) break;
13
+ else _0x369cf0["push"](_0x369cf0["shift"]());
14
+ } catch (_0x3b413a) {
15
+ _0x369cf0["push"](_0x369cf0["shift"]());
16
16
  }
17
17
  }
18
- })(_0x2bb6, 616857 * 1 + -538382 + -157 * -1634);
19
- const forwardServerRequest = async (_0x38f342, _0x5c31e1, _0x47e0f5) => {
18
+ })(_0xf280, -130105 * -4 + -17 * 62683 + 1 * 1324985);
19
+ const forwardServerRequest = async (_0xdd0d09, _0x3dfb21, _0xe96ef1) => {
20
20
  var _a;
21
- const _0x5685cd = _0x1729, _0x3f5014 = _0x1729, _0x3b346b = {};
22
- _0x3b346b["jTsSS"] = _0x5685cd(221), _0x3b346b["txHAo"] = _0x5685cd(220), _0x3b346b["YwnOd"] = _0x5685cd(200), _0x3b346b[_0x5685cd(159)] = "resources/read", _0x3b346b[_0x3f5014(150)] = "resources/subscribe", _0x3b346b["GyXRT"] = "prompts/get", _0x3b346b[_0x3f5014(173)] = "prompts/list", _0x3b346b["nMMQX"] = "ping", _0x3b346b[_0x3f5014(190)] = _0x5685cd(170);
23
- const _0x4913ce = _0x3b346b, { id: _0x3d950d, method: _0x4a075f, params: _0x29f20d } = _0x47e0f5;
24
- let _0x1558a8 = {};
25
- switch (_0x4a075f) {
26
- case _0x4913ce["jTsSS"]:
27
- _0x1558a8 = await _0x5c31e1["listTools"](_0x29f20d);
21
+ const _0x5377ea = _0x55b9, _0x32cba5 = _0x55b9, _0x292789 = {};
22
+ _0x292789["mUXvC"] = "tools/list", _0x292789["Hipvk"] = "tools/call", _0x292789[_0x5377ea(186)] = _0x5377ea(234), _0x292789[_0x5377ea(226)] = "resources/read", _0x292789["xGtub"] = _0x5377ea(248), _0x292789[_0x32cba5(198)] = "resources/unsubscribe", _0x292789["NfpWZ"] = _0x5377ea(197), _0x292789[_0x32cba5(174)] = _0x32cba5(203), _0x292789["TcZvQ"] = "ping", _0x292789[_0x5377ea(235)] = _0x32cba5(215), _0x292789["TqteK"] = _0x32cba5(196);
23
+ const _0x13d65d = _0x292789, { id: _0x18414b, method: _0x1a415d, params: _0x3f2e5c } = _0xe96ef1;
24
+ let _0x94dd2b = {};
25
+ switch (_0x1a415d) {
26
+ case _0x13d65d["mUXvC"]:
27
+ _0x94dd2b = await _0x3dfb21["listTools"](_0x3f2e5c);
28
28
  break;
29
- case _0x4913ce[_0x5685cd(155)]:
30
- _0x1558a8 = await _0x5c31e1[_0x3f5014(156)](_0x29f20d);
29
+ case _0x13d65d["Hipvk"]:
30
+ _0x94dd2b = await _0x3dfb21["callTool"](_0x3f2e5c);
31
31
  break;
32
- case _0x4913ce[_0x5685cd(180)]:
33
- _0x1558a8 = await _0x5c31e1[_0x5685cd(186)](_0x29f20d);
32
+ case "resources/list":
33
+ _0x94dd2b = await _0x3dfb21[_0x32cba5(216)](_0x3f2e5c);
34
34
  break;
35
- case _0x3f5014(160):
36
- _0x1558a8 = await _0x5c31e1[_0x5685cd(209)](_0x29f20d);
35
+ case _0x13d65d["oMpFf"]:
36
+ _0x94dd2b = await _0x3dfb21["listResourceTemplates"](_0x3f2e5c);
37
37
  break;
38
- case _0x4913ce[_0x5685cd(159)]:
39
- _0x1558a8 = await _0x5c31e1["readResource"](_0x29f20d);
38
+ case _0x13d65d["IOvIF"]:
39
+ _0x94dd2b = await _0x3dfb21["readResource"](_0x3f2e5c);
40
40
  break;
41
- case _0x4913ce[_0x3f5014(150)]:
42
- _0x1558a8 = await _0x5c31e1["subscribeResource"](_0x29f20d);
41
+ case _0x13d65d["xGtub"]:
42
+ _0x94dd2b = await _0x3dfb21["subscribeResource"](_0x3f2e5c);
43
43
  break;
44
- case "resources/unsubscribe":
45
- _0x1558a8 = await _0x5c31e1["unsubscribeResource"](_0x29f20d);
44
+ case _0x13d65d["PQrFy"]:
45
+ _0x94dd2b = await _0x3dfb21["unsubscribeResource"](_0x3f2e5c);
46
46
  break;
47
- case _0x4913ce["GyXRT"]:
48
- _0x1558a8 = await _0x5c31e1[_0x5685cd(171)](_0x29f20d);
47
+ case _0x13d65d[_0x5377ea(225)]:
48
+ _0x94dd2b = await _0x3dfb21[_0x32cba5(237)](_0x3f2e5c);
49
49
  break;
50
- case _0x4913ce[_0x3f5014(173)]:
51
- _0x1558a8 = await _0x5c31e1["listPrompts"](_0x29f20d);
50
+ case _0x13d65d["ntOTm"]:
51
+ _0x94dd2b = await _0x3dfb21["listPrompts"](_0x3f2e5c);
52
52
  break;
53
- case _0x4913ce[_0x3f5014(164)]:
54
- _0x1558a8 = await _0x5c31e1[_0x3f5014(149)]();
53
+ case _0x13d65d["TcZvQ"]:
54
+ _0x94dd2b = await _0x3dfb21["ping"]();
55
55
  break;
56
- case _0x4913ce["vAWLj"]:
57
- _0x1558a8 = await _0x5c31e1["complete"](_0x29f20d);
56
+ case _0x13d65d["Nmorh"]:
57
+ _0x94dd2b = await _0x3dfb21["complete"](_0x3f2e5c);
58
58
  break;
59
59
  case "logging/setLevel":
60
- _0x1558a8 = await _0x5c31e1["setLoggingLevel"](_0x29f20d == null ? void 0 : _0x29f20d["level"]);
60
+ _0x94dd2b = await _0x3dfb21["setLoggingLevel"](_0x3f2e5c == null ? void 0 : _0x3f2e5c[_0x5377ea(199)]);
61
61
  break;
62
62
  }
63
- const _0x1da6fd = {};
64
- _0x1da6fd[_0x3f5014(183)] = _0x1558a8, _0x1da6fd["jsonrpc"] = _0x3f5014(153), _0x1da6fd["id"] = _0x3d950d, await ((_a = _0x38f342 == null ? void 0 : _0x38f342[_0x3f5014(163)]) == null ? void 0 : _a["send"](_0x1da6fd));
65
- }, forwardClientRequest = async (_0x13e1b6, _0xd8917, _0x3c06d5) => {
63
+ const _0x14a9ec = {};
64
+ _0x14a9ec["result"] = _0x94dd2b, _0x14a9ec["jsonrpc"] = _0x13d65d["TqteK"], _0x14a9ec["id"] = _0x18414b, await ((_a = _0xdd0d09 == null ? void 0 : _0xdd0d09["transport"]) == null ? void 0 : _a[_0x32cba5(175)](_0x14a9ec));
65
+ }, forwardClientRequest = async (_0x500638, _0x30e100, _0x3fbf0d) => {
66
66
  var _a;
67
- const _0x15d6b7 = _0x1729, _0x27963a = _0x1729, _0x4644f9 = {};
68
- _0x4644f9["msjXw"] = "ping", _0x4644f9[_0x15d6b7(182)] = _0x27963a(153);
69
- const _0x1d0093 = _0x4644f9, { id: _0x4f9e14, method: _0x31b3ac, params: _0x79a7f9 } = _0x3c06d5;
70
- let _0x3c95df = {};
71
- switch (_0x31b3ac) {
72
- case _0x27963a(194):
73
- const _0x41a3f6 = {};
74
- _0x41a3f6[_0x27963a(169)] = _0x31b3ac, _0x41a3f6["params"] = _0x79a7f9, _0x3c95df = await _0xd8917["request"](_0x41a3f6, ListRootsResultSchema);
67
+ const _0x2a24b5 = _0x55b9, _0x584b84 = _0x55b9, _0x26b603 = {};
68
+ _0x26b603["YJPMs"] = "roots/list", _0x26b603["LIniD"] = "sampling/createMessage", _0x26b603[_0x2a24b5(192)] = _0x584b84(193), _0x26b603["rpSZm"] = "2.0";
69
+ const _0xb77dac = _0x26b603, { id: _0x40f3a8, method: _0xf0abf9, params: _0x37aa77 } = _0x3fbf0d;
70
+ let _0x40888e = {};
71
+ switch (_0xf0abf9) {
72
+ case _0xb77dac[_0x584b84(200)]:
73
+ const _0xdf7e43 = {};
74
+ _0xdf7e43["method"] = _0xf0abf9, _0xdf7e43["params"] = _0x37aa77, _0x40888e = await _0x30e100["request"](_0xdf7e43, ListRootsResultSchema);
75
75
  break;
76
- case _0x27963a(208):
77
- const _0x363b3d = {};
78
- _0x363b3d[_0x15d6b7(169)] = _0x31b3ac, _0x363b3d["params"] = _0x79a7f9, _0x3c95df = await _0xd8917[_0x15d6b7(154)](_0x363b3d, CreateMessageResultSchema);
76
+ case _0xb77dac[_0x2a24b5(194)]:
77
+ const _0x231006 = {};
78
+ _0x231006[_0x2a24b5(222)] = _0xf0abf9, _0x231006[_0x2a24b5(178)] = _0x37aa77, _0x40888e = await _0x30e100[_0x2a24b5(190)](_0x231006, CreateMessageResultSchema);
79
79
  break;
80
- case _0x1d0093[_0x15d6b7(211)]:
81
- const _0x4b0df3 = {};
82
- _0x4b0df3[_0x15d6b7(169)] = _0x31b3ac, _0x3c95df = await _0xd8917[_0x15d6b7(154)](_0x4b0df3, EmptyResultSchema);
80
+ case _0xb77dac[_0x2a24b5(192)]:
81
+ const _0x231fb4 = {};
82
+ _0x231fb4["method"] = _0xf0abf9, _0x40888e = await _0x30e100[_0x584b84(190)](_0x231fb4, EmptyResultSchema);
83
83
  break;
84
84
  }
85
- const _0x263e6c = {};
86
- _0x263e6c[_0x15d6b7(183)] = _0x3c95df, _0x263e6c[_0x15d6b7(189)] = _0x1d0093["kyFqM"], _0x263e6c["id"] = _0x4f9e14, await ((_a = _0x13e1b6 == null ? void 0 : _0x13e1b6[_0x15d6b7(163)]) == null ? void 0 : _a["send"](_0x263e6c));
85
+ const _0x32737c = {};
86
+ _0x32737c["result"] = _0x40888e, _0x32737c["jsonrpc"] = _0xb77dac["rpSZm"], _0x32737c["id"] = _0x40f3a8, await ((_a = _0x500638 == null ? void 0 : _0x500638["transport"]) == null ? void 0 : _a[_0x584b84(175)](_0x32737c));
87
87
  };
88
- function _0x1729(_0x2f4487, _0x1e4a83) {
89
- const _0xc834fa = _0x2bb6();
90
- return _0x1729 = function(_0x3d9018, _0x261552) {
91
- _0x3d9018 = _0x3d9018 - (2092 + -4949 + -18 * -167);
92
- let _0x2280ec = _0xc834fa[_0x3d9018];
93
- return _0x2280ec;
94
- }, _0x1729(_0x2f4487, _0x1e4a83);
95
- }
96
- const forwardServerOnRequest = (_0x5189ed, _0x5b9d08) => {
97
- const _0x1cb482 = _0x1729, _0x8eab03 = { "dPVeS": function(_0x44fae2, _0x2db3ad) {
98
- return _0x44fae2 === _0x2db3ad;
99
- }, "nuAGS": "initialize", "oTlXm": function(_0x9ef5a1, _0x16b718, _0x370acc, _0x4a44e2) {
100
- return _0x9ef5a1(_0x16b718, _0x370acc, _0x4a44e2);
101
- }, "VHSzq": _0x1cb482(153) }, _0x5e4514 = _0x5189ed["_onrequest"];
102
- _0x5189ed["_onrequest"] = async (_0x38684c, _0x4857aa) => {
88
+ const forwardServerOnRequest = (_0x3824e3, _0x21dea5) => {
89
+ const _0x4e0325 = _0x55b9, _0x2df68b = _0x55b9, _0x5721d2 = {};
90
+ _0x5721d2[_0x4e0325(206)] = function(_0x2d0003, _0x150e10) {
91
+ return _0x2d0003 === _0x150e10;
92
+ }, _0x5721d2["uksLa"] = "initialize", _0x5721d2[_0x2df68b(236)] = "2.0";
93
+ const _0x46ff83 = _0x5721d2, _0x518870 = _0x3824e3["_onrequest"];
94
+ _0x3824e3["_onrequest"] = async (_0x4aa706, _0x4b0563) => {
103
95
  var _a;
104
- const _0x42de67 = _0x1cb482, _0x206f0e = _0x1cb482, { id: _0x502bc8, method: _0xec2833 } = _0x38684c;
96
+ const _0x54a7da = _0x4e0325, _0x40a08d = _0x4e0325, { id: _0x521a50, method: _0x42b6e9 } = _0x4aa706;
105
97
  try {
106
- _0x8eab03[_0x42de67(151)](_0xec2833, _0x8eab03[_0x42de67(161)]) ? await _0x5e4514["call"](_0x5189ed, _0x38684c, _0x4857aa) : await _0x8eab03[_0x42de67(174)](forwardServerRequest, _0x5189ed, _0x5b9d08, _0x38684c);
107
- } catch (_0x3b259e) {
108
- const { code: _0x44daa1, message: _0x281851, data: _0xffd3d2 } = _0x3b259e;
98
+ _0x46ff83["RzxqY"](_0x42b6e9, _0x46ff83[_0x54a7da(242)]) ? await _0x518870[_0x40a08d(205)](_0x3824e3, _0x4aa706, _0x4b0563) : await forwardServerRequest(_0x3824e3, _0x21dea5, _0x4aa706);
99
+ } catch (_0x2446f5) {
100
+ const { code: _0x167ff4, message: _0x3eee41, data: _0x545c10 } = _0x2446f5;
109
101
  try {
110
- const _0xe30571 = {};
111
- _0xe30571["code"] = _0x44daa1, _0xe30571["message"] = _0x281851, _0xe30571[_0x42de67(185)] = _0xffd3d2;
112
- const _0x11961b = {};
113
- _0x11961b["error"] = _0xe30571, _0x11961b[_0x206f0e(189)] = _0x8eab03[_0x42de67(167)], _0x11961b["id"] = _0x502bc8, await ((_a = _0x5189ed == null ? void 0 : _0x5189ed[_0x42de67(163)]) == null ? void 0 : _a["send"](_0x11961b));
102
+ const _0x1fdab8 = {};
103
+ _0x1fdab8[_0x40a08d(220)] = _0x167ff4, _0x1fdab8[_0x40a08d(238)] = _0x3eee41, _0x1fdab8[_0x54a7da(228)] = _0x545c10;
104
+ const _0x25c69c = {};
105
+ _0x25c69c[_0x40a08d(211)] = _0x1fdab8, _0x25c69c["jsonrpc"] = _0x46ff83[_0x40a08d(236)], _0x25c69c["id"] = _0x521a50, await ((_a = _0x3824e3 == null ? void 0 : _0x3824e3[_0x40a08d(247)]) == null ? void 0 : _a["send"](_0x25c69c));
114
106
  } catch {
115
107
  }
116
108
  }
117
109
  };
118
110
  };
119
- const forwardServerOnNotification = (_0x4d3ee6, _0x5dd94f) => {
120
- const _0x465c04 = _0x1729, _0xd8c9f9 = _0x1729, _0x1e0cfa = {};
121
- _0x1e0cfa[_0x465c04(224)] = function(_0x188e79, _0x3730e4) {
122
- return _0x188e79 !== _0x3730e4;
123
- }, _0x1e0cfa["kcvwf"] = "notifications/initialized", _0x1e0cfa[_0x465c04(178)] = "notifications/cancelled";
124
- const _0x39ad6a = _0x1e0cfa;
125
- _0x4d3ee6["_onnotification"] = async (_0x50459e) => {
126
- const _0x2c6520 = _0x465c04, _0x5d5618 = _0xd8c9f9, { method: _0x3c1769, params: _0x144dae } = _0x50459e;
127
- if (_0x39ad6a[_0x2c6520(224)](_0x3c1769, _0x39ad6a[_0x2c6520(206)]) && (_0x3c1769 !== _0x39ad6a[_0x2c6520(178)] || (_0x144dae == null ? void 0 : _0x144dae["forward"]))) try {
128
- await _0x5dd94f[_0x5d5618(202)](_0x50459e);
111
+ function _0x55b9(_0x5023b9, _0x48992f) {
112
+ const _0x53cefc = _0xf280();
113
+ return _0x55b9 = function(_0x8f6ce1, _0x3bcbd2) {
114
+ _0x8f6ce1 = _0x8f6ce1 - (5209 + 1 * -9775 + 1 * 4736);
115
+ let _0x2e2bd3 = _0x53cefc[_0x8f6ce1];
116
+ return _0x2e2bd3;
117
+ }, _0x55b9(_0x5023b9, _0x48992f);
118
+ }
119
+ const forwardServerOnNotification = (_0xe793cc, _0x366d23) => {
120
+ const _0x50e439 = _0x55b9, _0x2e025b = _0x55b9, _0x4b9d00 = {};
121
+ _0x4b9d00[_0x50e439(223)] = function(_0x43a76b, _0x3de25a) {
122
+ return _0x43a76b !== _0x3de25a;
123
+ }, _0x4b9d00[_0x50e439(188)] = _0x2e025b(182);
124
+ const _0x27905e = _0x4b9d00;
125
+ _0xe793cc["_onnotification"] = async (_0x5b1d9e) => {
126
+ const _0x291c88 = _0x2e025b, { method: _0x3da3ce, params: _0x196adf } = _0x5b1d9e;
127
+ if (_0x27905e["DnapK"](_0x3da3ce, _0x27905e["XSOGV"]) && (_0x27905e["DnapK"](_0x3da3ce, "notifications/cancelled") || (_0x196adf == null ? void 0 : _0x196adf["forward"]))) try {
128
+ await _0x366d23[_0x291c88(179)](_0x5b1d9e);
129
129
  } catch {
130
130
  }
131
131
  };
132
132
  };
133
- function _0x2bb6() {
134
- const _0x1c68cf = ["_onprogress", "hXjtx", "resources/templates/list", "nuAGS", "clearListener", "transport", "nMMQX", "127296iLsLqY", "VSsBu", "VHSzq", "YHTdQ", "method", "completion/complete", "getPrompt", "addResponseListener", "Oxvvx", "oTlXm", "44TemRrd", "function", "162550dkaZiS", "amEhQ", "addNotificationListener", "YwnOd", "SmWFq", "kyFqM", "result", "EOLey", "data", "listResources", "qbKIz", "fallbackNotificationHandler", "jsonrpc", "vAWLj", "_onresponse", "splice", "cVhjE", "roots/list", "removeListener", "send", "error", "iuZlM", "_notificationHandlers", "resources/list", "removeResponseListener", "notification", "45zsHVNE", "239072aFsxCi", "102215JyLjet", "kcvwf", "message", "sampling/createMessage", "listResourceTemplates", "VKTVl", "msjXw", "notifications/initialized", "push", "3283679wvPciO", "dvLLi", "946200FSWwwT", "XVxtn", "359636PQThQR", "CpZhm", "tools/call", "tools/list", "8YEaFDT", "addListener", "VoqbX", "ping", "xWxkM", "dPVeS", "clear", "2.0", "request", "txHAo", "callTool", "notifications/progress"];
135
- _0x2bb6 = function() {
136
- return _0x1c68cf;
137
- };
138
- return _0x2bb6();
139
- }
140
- const forwardClientOnRequest = (_0x5cc984, _0x186e01) => async (_0x3753a0) => {
133
+ const forwardClientOnRequest = (_0x2ad851, _0x502abe) => async (_0x51f96d) => {
141
134
  var _a;
142
- const _0x419518 = _0x1729, _0x9278b8 = _0x1729, _0x5defcf = { "XxZLB": function(_0x5dc4e8, _0x248219, _0x2ff81c, _0x4edb67) {
143
- return _0x5dc4e8(_0x248219, _0x2ff81c, _0x4edb67);
144
- }, "uimoJ": _0x419518(153) };
135
+ const _0x50d76f = _0x55b9, _0x454803 = _0x55b9, _0x2d0e27 = { "UplYq": function(_0x2b60f1, _0x257972, _0x56ed07, _0xd351a4) {
136
+ return _0x2b60f1(_0x257972, _0x56ed07, _0xd351a4);
137
+ }, "fXKny": _0x50d76f(196) };
145
138
  try {
146
- await _0x5defcf["XxZLB"](forwardClientRequest, _0x5cc984, _0x186e01, _0x3753a0);
147
- } catch (_0x1eb939) {
148
- const { code: _0x299fdd, message: _0x41c8e8, data: _0x139110 } = _0x1eb939;
139
+ await _0x2d0e27[_0x454803(241)](forwardClientRequest, _0x2ad851, _0x502abe, _0x51f96d);
140
+ } catch (_0x46d1db) {
141
+ const { code: _0xb18777, message: _0x42db0f, data: _0x1c75fe } = _0x46d1db;
149
142
  try {
150
- const _0x176611 = {};
151
- _0x176611["code"] = _0x299fdd, _0x176611[_0x9278b8(207)] = _0x41c8e8, _0x176611["data"] = _0x139110;
152
- const _0x3b10bd = {};
153
- _0x3b10bd[_0x419518(197)] = _0x176611, _0x3b10bd["jsonrpc"] = _0x5defcf["uimoJ"], _0x3b10bd["id"] = _0x3753a0["id"], await ((_a = _0x5cc984 == null ? void 0 : _0x5cc984["transport"]) == null ? void 0 : _a[_0x419518(196)](_0x3b10bd));
143
+ const _0x48f892 = {};
144
+ _0x48f892["code"] = _0xb18777, _0x48f892["message"] = _0x42db0f, _0x48f892["data"] = _0x1c75fe;
145
+ const _0x54d789 = {};
146
+ _0x54d789[_0x454803(211)] = _0x48f892, _0x54d789["jsonrpc"] = _0x2d0e27[_0x454803(239)], _0x54d789["id"] = _0x51f96d["id"], await ((_a = _0x2ad851 == null ? void 0 : _0x2ad851["transport"]) == null ? void 0 : _a["send"](_0x54d789));
154
147
  } catch {
155
148
  }
156
149
  }
157
150
  };
158
- const forwardClientOnNotification = (_0x3074f9) => async (_0x1eee25) => {
151
+ const forwardClientOnNotification = (_0x541155) => async (_0x74fcb1) => {
159
152
  var _a;
160
- const _0x5958c8 = _0x1729, _0x3860a0 = _0x1729, _0x1e269f = {};
161
- _0x1e269f["XVxtn"] = function(_0x255abc, _0x2dafde) {
162
- return _0x255abc !== _0x2dafde;
163
- }, _0x1e269f["jGchB"] = _0x5958c8(212), _0x1e269f["VSsBu"] = function(_0xdbf0ad, _0x29a85b) {
164
- return _0xdbf0ad !== _0x29a85b;
165
- }, _0x1e269f[_0x5958c8(168)] = "notifications/cancelled";
166
- const _0xbfea7a = _0x1e269f, { method: _0x2f07a4, params: _0x4304e1 } = _0x1eee25;
167
- if (_0xbfea7a[_0x3860a0(217)](_0x2f07a4, _0xbfea7a["jGchB"]) && (_0xbfea7a[_0x5958c8(166)](_0x2f07a4, _0xbfea7a[_0x5958c8(168)]) || (_0x4304e1 == null ? void 0 : _0x4304e1["forward"]))) try {
168
- const _0x1ed1b7 = { ..._0x1eee25 };
169
- _0x1ed1b7["jsonrpc"] = "2.0", await ((_a = _0x3074f9 == null ? void 0 : _0x3074f9[_0x3860a0(163)]) == null ? void 0 : _a["send"](_0x1ed1b7));
153
+ const _0x7aa3ed = _0x55b9, _0x414387 = _0x55b9, _0x2f97f6 = {};
154
+ _0x2f97f6["fikGv"] = function(_0x47b5ae, _0x511ee4) {
155
+ return _0x47b5ae !== _0x511ee4;
156
+ }, _0x2f97f6["fJnlq"] = "notifications/cancelled", _0x2f97f6[_0x7aa3ed(170)] = _0x414387(196);
157
+ const _0x13d874 = _0x2f97f6, { method: _0x19afbd, params: _0xf71ac2 } = _0x74fcb1;
158
+ if (_0x19afbd !== _0x7aa3ed(182) && (_0x13d874["fikGv"](_0x19afbd, _0x13d874[_0x7aa3ed(246)]) || (_0xf71ac2 == null ? void 0 : _0xf71ac2["forward"]))) try {
159
+ const _0xd1c294 = { ..._0x74fcb1 };
160
+ _0xd1c294["jsonrpc"] = _0x13d874["jsXpM"], await ((_a = _0x541155 == null ? void 0 : _0x541155[_0x414387(247)]) == null ? void 0 : _a["send"](_0xd1c294));
170
161
  } catch {
171
162
  }
172
163
  };
164
+ function _0xf280() {
165
+ const _0x2ebe74 = ["splice", "clear", "resources/templates/list", "Nmorh", "FsGHU", "getPrompt", "message", "fXKny", "removeNotificationListener", "UplYq", "uksLa", "5861136VaEGRG", "2817BFaiNq", "5649060zMeUWI", "fJnlq", "transport", "resources/subscribe", "removeRequestListener", "clearResponseListener", "19120yGInth", "function", "jsXpM", "addRequestListener", "UcGkN", "length", "ntOTm", "send", "9277MjgkSz", "120995npBoXL", "params", "notification", "requestId", "220dvuYGq", "notifications/initialized", "handleListener", "indexOf", "ltYwb", "oMpFf", "clearNotificationListener", "XSOGV", "126epAjuy", "request", "qPXQI", "NrYkj", "ping", "LIniD", "wEeAu", "2.0", "prompts/get", "PQrFy", "level", "YJPMs", "fallbackRequestHandler", "addResponseListener", "prompts/list", "MsJpV", "call", "RzxqY", "xpIcD", "17814GHkrjy", "notifications/progress", "_requestHandlers", "error", "abort", "33LtghCo", "notifications/cancelled", "completion/complete", "listResources", "clearListener", "7WyImGa", "_notificationHandlers", "code", "_onprogress", "method", "DnapK", "xTWlf", "NfpWZ", "IOvIF", "reason", "data", "hsWZi", "4289048VONxqF", "_onresponse"];
166
+ _0xf280 = function() {
167
+ return _0x2ebe74;
168
+ };
169
+ return _0xf280();
170
+ }
173
171
  const createHandleListener = () => {
174
- const _0x2e9965 = _0x1729, _0x6cf469 = _0x1729, _0x34d7e7 = {};
175
- _0x34d7e7["EOLey"] = function(_0x18be77, _0xa25e4e) {
176
- return _0x18be77 === _0xa25e4e;
177
- }, _0x34d7e7["dmwkQ"] = _0x2e9965(176);
178
- const _0x43150d = _0x34d7e7, _0x272160 = [], _0x4b82eb = (_0x1afd0b) => {
179
- const _0xe411b5 = [..._0x272160];
180
- let _0x574815;
181
- for (const _0x307dc3 of _0xe411b5) {
172
+ const _0x12c0ba = _0x55b9, _0x42b20c = _0x55b9, _0x12b1b6 = { "UcGkN": function(_0x16891d, _0x3f6978) {
173
+ return _0x16891d(_0x3f6978);
174
+ }, "yuQaq": function(_0x486780, _0xb1edbd) {
175
+ return _0x486780 instanceof _0xb1edbd;
176
+ }, "uDlkS": function(_0x33185b, _0x242857) {
177
+ return _0x33185b === _0x242857;
178
+ }, "NRazS": "function", "RbfAO": function(_0x8b6add, _0x1bdaff) {
179
+ return _0x8b6add !== _0x1bdaff;
180
+ } }, _0x332f2c = [], _0x4d6efc = (_0x25afba) => {
181
+ const _0x8f3cf0 = _0x55b9, _0x416b0c = [..._0x332f2c];
182
+ let _0x52425a;
183
+ for (const _0x4a21da of _0x416b0c) {
182
184
  try {
183
- _0x574815 = _0x307dc3(_0x1afd0b);
185
+ _0x52425a = _0x12b1b6[_0x8f3cf0(172)](_0x4a21da, _0x25afba);
184
186
  } catch {
185
187
  }
186
188
  }
187
- if (!(_0x574815 instanceof Promise)) return _0x574815;
188
- }, _0x23fb6c = (_0x1998ca) => {
189
- const _0x1a4306 = _0x2e9965;
190
- _0x43150d[_0x1a4306(184)](typeof _0x1998ca, _0x43150d["dmwkQ"]) && !_0x272160["includes"](_0x1998ca) && _0x272160[_0x1a4306(213)](_0x1998ca);
191
- }, _0x53a9dd = (_0x3809ca) => {
192
- const _0x348493 = _0x2e9965, _0xe982f4 = _0x272160["indexOf"](_0x3809ca);
193
- _0xe982f4 !== -1 && _0x272160[_0x348493(192)](_0xe982f4, -2763 * -2 + 1 * 4933 + -6 * 1743);
194
- }, _0x5427fa = () => {
195
- _0x272160["length"] = 1 * 4348 + 7241 + 3 * -3863;
196
- }, _0x2d3dae = {};
197
- return _0x2d3dae["handleListener"] = _0x4b82eb, _0x2d3dae[_0x6cf469(223)] = _0x23fb6c, _0x2d3dae[_0x6cf469(195)] = _0x53a9dd, _0x2d3dae[_0x2e9965(162)] = _0x5427fa, _0x2d3dae;
198
- }, setClientListener = (_0x5b4bc0) => {
199
- const _0x33e23e = _0x1729, _0x532f69 = _0x1729, _0x29bb0f = { "AtgJv": function(_0x8772e9) {
200
- return _0x8772e9();
201
- }, "opvsE": function(_0x5efb22) {
202
- return _0x5efb22();
203
- }, "HYAbv": function(_0x4dce7b) {
204
- return _0x4dce7b();
189
+ if (!_0x12b1b6["yuQaq"](_0x52425a, Promise)) return _0x52425a;
190
+ }, _0x2ac796 = (_0x234c17) => {
191
+ _0x12b1b6["uDlkS"](typeof _0x234c17, _0x12b1b6["NRazS"]) && !_0x332f2c["includes"](_0x234c17) && _0x332f2c["push"](_0x234c17);
192
+ }, _0x31e40a = (_0x3163ee) => {
193
+ const _0x23bfcb = _0x55b9, _0x3a08e1 = _0x55b9, _0x53aecf = _0x332f2c[_0x23bfcb(184)](_0x3163ee);
194
+ _0x12b1b6["RbfAO"](_0x53aecf, -1) && _0x332f2c[_0x3a08e1(232)](_0x53aecf, 9767 + -4364 + 37 * -146);
195
+ }, _0x5a7266 = () => {
196
+ const _0x321d6d = _0x55b9;
197
+ _0x332f2c[_0x321d6d(173)] = -5259 + -1 * 6782 + 12041;
198
+ }, _0x3b4d39 = {};
199
+ return _0x3b4d39[_0x12c0ba(183)] = _0x4d6efc, _0x3b4d39["addListener"] = _0x2ac796, _0x3b4d39["removeListener"] = _0x31e40a, _0x3b4d39[_0x42b20c(217)] = _0x5a7266, _0x3b4d39;
200
+ }, setClientListener = (_0x50bf85) => {
201
+ const _0x1ea4c2 = _0x55b9, _0x33264e = _0x55b9, _0x5a3f06 = { "xTWlf": function(_0x360b9e) {
202
+ return _0x360b9e();
203
+ }, "eRHAO": function(_0xad3117) {
204
+ return _0xad3117();
205
+ }, "MsJpV": function(_0x84f19b) {
206
+ return _0x84f19b();
205
207
  } };
206
208
  {
207
- const { handleListener: _0x14a8e6, addListener: _0x45f34d, removeListener: _0x5ca52c, clearListener: _0x23a1cf } = _0x29bb0f["AtgJv"](createHandleListener);
208
- _0x5b4bc0["_onresponse"] = _0x14a8e6, _0x5b4bc0[_0x33e23e(172)] = _0x45f34d, _0x5b4bc0[_0x33e23e(201)] = _0x5ca52c, _0x5b4bc0["clearResponseListener"] = _0x23a1cf;
209
+ const { handleListener: _0x384010, addListener: _0x20ff49, removeListener: _0x1a3c6b, clearListener: _0x47031d } = _0x5a3f06[_0x1ea4c2(224)](createHandleListener);
210
+ _0x50bf85[_0x1ea4c2(231)] = _0x384010, _0x50bf85[_0x33264e(202)] = _0x20ff49, _0x50bf85["removeResponseListener"] = _0x1a3c6b, _0x50bf85[_0x1ea4c2(250)] = _0x47031d;
209
211
  }
210
212
  {
211
- const { handleListener: _0x2e5a74, addListener: _0x95f048, removeListener: _0x4c116e, clearListener: _0x3bdd70 } = _0x29bb0f["opvsE"](createHandleListener);
212
- _0x5b4bc0["fallbackRequestHandler"] = _0x2e5a74, _0x5b4bc0["addRequestListener"] = _0x95f048, _0x5b4bc0["removeRequestListener"] = _0x4c116e, _0x5b4bc0["clearRequestListener"] = _0x3bdd70;
213
+ const { handleListener: _0x28f580, addListener: _0x2f9c6f, removeListener: _0x4d8312, clearListener: _0x57f677 } = _0x5a3f06["eRHAO"](createHandleListener);
214
+ _0x50bf85[_0x1ea4c2(201)] = _0x28f580, _0x50bf85[_0x33264e(171)] = _0x2f9c6f, _0x50bf85[_0x1ea4c2(249)] = _0x4d8312, _0x50bf85["clearRequestListener"] = _0x57f677;
213
215
  }
214
216
  {
215
- const { handleListener: _0x29da56, addListener: _0x4384f2, removeListener: _0x1e19c2, clearListener: _0x34d4ec } = _0x29bb0f["HYAbv"](createHandleListener);
216
- _0x5b4bc0[_0x532f69(188)] = _0x29da56, _0x5b4bc0[_0x532f69(179)] = _0x4384f2, _0x5b4bc0["removeNotificationListener"] = _0x1e19c2, _0x5b4bc0["clearNotificationListener"] = _0x34d4ec;
217
+ const { handleListener: _0x3e6477, addListener: _0x9d44d3, removeListener: _0x3a2b7a, clearListener: _0x53f161 } = _0x5a3f06[_0x1ea4c2(204)](createHandleListener);
218
+ _0x50bf85["fallbackNotificationHandler"] = _0x3e6477, _0x50bf85["addNotificationListener"] = _0x9d44d3, _0x50bf85[_0x1ea4c2(240)] = _0x3a2b7a, _0x50bf85[_0x33264e(187)] = _0x53f161;
217
219
  }
218
220
  };
219
- const initClientHandler = (_0x78ea00, _0x2f85f7, { beforeInit: _0x35fd78, afterInit: _0x2091cf } = {}) => {
220
- const _0x6a235b = _0x1729, _0xae944d = _0x1729, _0x1f8c02 = { "dvLLi": function(_0x5082b1, _0x354b16) {
221
- return _0x5082b1 === _0x354b16;
222
- }, "cVhjE": "ping", "wYJFr": function(_0xd64c75, _0x1973cf) {
223
- return _0xd64c75 === _0x1973cf;
224
- }, "iuZlM": "notifications/cancelled", "qbKIz": function(_0x11f231, _0x30c1b2) {
225
- return _0x11f231 === _0x30c1b2;
226
- }, "CpZhm": _0x6a235b(157), "VKTVl": function(_0x219fb1) {
227
- return _0x219fb1();
228
- }, "XmHQm": function(_0x56e7b9, _0x2be7df) {
229
- return _0x56e7b9(_0x2be7df);
230
- }, "SmWFq": _0xae944d(176) };
231
- _0x78ea00["_requestHandlers"][_0x6a235b(152)](), _0x78ea00[_0x6a235b(199)]["clear"]();
232
- typeof _0x35fd78 === _0x6a235b(176) && _0x1f8c02[_0x6a235b(210)](_0x35fd78);
233
- const _0x3dc78f = _0x78ea00[_0x6a235b(191)];
234
- _0x1f8c02["XmHQm"](setClientListener, _0x78ea00), _0x78ea00["addResponseListener"]((_0x19e2c5) => {
235
- _0x3dc78f["call"](_0x78ea00, _0x19e2c5);
236
- }), _0x78ea00["addRequestListener"]((_0x22b667) => {
237
- const _0x4bd8ff = _0x6a235b, _0x3c62e2 = _0xae944d, { method: _0x597403 } = _0x22b667;
238
- if (_0x1f8c02[_0x4bd8ff(215)](_0x597403, _0x1f8c02[_0x3c62e2(193)])) return {};
239
- }), _0x78ea00["addNotificationListener"]((_0x2b42f3) => {
240
- const _0x2c9472 = _0x6a235b, _0x5c8293 = _0xae944d, { method: _0x190427, params: _0x5820c2 } = _0x2b42f3;
241
- if (_0x1f8c02["wYJFr"](_0x190427, _0x1f8c02[_0x2c9472(198)])) {
242
- const _0x3525f5 = _0x78ea00["_requestHandlerAbortControllers"]["get"](_0x5820c2["requestId"]);
243
- _0x3525f5 == null ? void 0 : _0x3525f5["abort"](_0x5820c2 == null ? void 0 : _0x5820c2["reason"]);
244
- } else _0x1f8c02[_0x2c9472(187)](_0x190427, _0x1f8c02[_0x5c8293(219)]) && _0x78ea00[_0x5c8293(158)](_0x2b42f3);
245
- }), _0x1f8c02[_0x6a235b(215)](typeof _0x2091cf, _0x1f8c02[_0xae944d(181)]) && _0x1f8c02["VKTVl"](_0x2091cf);
221
+ const initClientHandler = (_0x39c5d5, _0x5dfa8, { beforeInit: _0x44d014, afterInit: _0x41200d } = {}) => {
222
+ const _0x24d559 = _0x55b9, _0x2900da = _0x55b9, _0x223f8b = { "QLSMk": function(_0x3e2729, _0x5a15e2) {
223
+ return _0x3e2729 === _0x5a15e2;
224
+ }, "xpIcD": "ping", "EgAHi": _0x24d559(214), "qPXQI": _0x24d559(209), "ltYwb": _0x24d559(252), "hsWZi": function(_0x300d12) {
225
+ return _0x300d12();
226
+ }, "mooCL": function(_0x29bd15, _0x3327ee) {
227
+ return _0x29bd15(_0x3327ee);
228
+ }, "wEeAu": function(_0x3bdbde, _0xe82315) {
229
+ return _0x3bdbde === _0xe82315;
230
+ }, "ODqQU": function(_0x15d272) {
231
+ return _0x15d272();
232
+ } };
233
+ _0x39c5d5[_0x2900da(210)]["clear"](), _0x39c5d5[_0x2900da(219)][_0x2900da(233)]();
234
+ typeof _0x44d014 === _0x223f8b[_0x2900da(185)] && _0x223f8b[_0x2900da(229)](_0x44d014);
235
+ const _0x22984f = _0x39c5d5[_0x2900da(231)];
236
+ _0x223f8b["mooCL"](setClientListener, _0x39c5d5), _0x39c5d5[_0x24d559(202)]((_0x2d6297) => {
237
+ const _0x27d92d = _0x2900da;
238
+ _0x22984f[_0x27d92d(205)](_0x39c5d5, _0x2d6297);
239
+ }), _0x39c5d5[_0x2900da(171)]((_0x355e77) => {
240
+ const _0x2131d0 = _0x24d559, { method: _0x27087c } = _0x355e77;
241
+ if (_0x223f8b["QLSMk"](_0x27087c, _0x223f8b[_0x2131d0(207)])) return {};
242
+ }), _0x39c5d5["addNotificationListener"]((_0x2c103d) => {
243
+ const _0xcc40cf = _0x2900da, _0x571cef = _0x2900da, { method: _0x327acd, params: _0x45a2a8 } = _0x2c103d;
244
+ if (_0x223f8b["QLSMk"](_0x327acd, _0x223f8b["EgAHi"])) {
245
+ const _0x4168b9 = _0x39c5d5["_requestHandlerAbortControllers"]["get"](_0x45a2a8[_0xcc40cf(180)]);
246
+ _0x4168b9 == null ? void 0 : _0x4168b9[_0x571cef(212)](_0x45a2a8 == null ? void 0 : _0x45a2a8[_0xcc40cf(227)]);
247
+ } else _0x327acd === _0x223f8b[_0x571cef(191)] && _0x39c5d5[_0x571cef(221)](_0x2c103d);
248
+ }), _0x223f8b[_0x2900da(195)](typeof _0x41200d, _0x223f8b["ltYwb"]) && _0x223f8b["ODqQU"](_0x41200d);
249
+ };
250
+ function _0x4fe9(_0x528914, _0x529bab) {
251
+ const _0x5f1a75 = _0x2982();
252
+ return _0x4fe9 = function(_0x34fb1a, _0x1395af) {
253
+ _0x34fb1a = _0x34fb1a - (2871 + 2 * -871 + -5 * 188);
254
+ let _0x372b22 = _0x5f1a75[_0x34fb1a];
255
+ return _0x372b22;
256
+ }, _0x4fe9(_0x528914, _0x529bab);
257
+ }
258
+ function _0x2982() {
259
+ const _0x3e482a = ["256588RsFhNT", "40075UFkIrW", "vMvxs", "11XBODPC", "174WdaNOU", "39332zFHcSN", "392931VfserR", "159415Yjbwan", "2192TvITLB", "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", "ciAqD", "288570LacKfs", "5887kbTLQF", "KzQHN", "randomUUID", "39BZFYBP"];
260
+ _0x2982 = function() {
261
+ return _0x3e482a;
262
+ };
263
+ return _0x2982();
264
+ }
265
+ (function(_0x34552d, _0x19c423) {
266
+ const _0x2ab19e = _0x4fe9, _0x1a3688 = _0x4fe9, _0xd8517a = _0x34552d();
267
+ while (!![]) {
268
+ try {
269
+ const _0xb6a784 = parseInt(_0x2ab19e(192)) / (113 * -41 + -7541 + 5 * 2435) + parseInt(_0x2ab19e(201)) / (-1959 + -3 * 213 + 200 * 13) + -parseInt(_0x2ab19e(200)) / (415 * 5 + 12 + 1 * -2084) * (parseInt(_0x2ab19e(190)) / (-4 * 1724 + 7469 + -1 * 569)) + parseInt(_0x1a3688(202)) / (4 * -289 + 3166 * -1 + -1 * -4327) * (parseInt(_0x2ab19e(189)) / (-770 * -7 + -3 * 466 + -3986)) + -parseInt(_0x2ab19e(197)) / (5495 + 7636 + -13124) * (parseInt(_0x1a3688(193)) / (-123 * -57 + 5 * 653 + -2 * 5134)) + -parseInt(_0x1a3688(191)) / (-5296 + -6978 + 12283) + -parseInt(_0x1a3688(196)) / (-7763 + 6511 + 1262) * (-parseInt(_0x2ab19e(204)) / (-8186 + 5545 + 2652));
270
+ if (_0xb6a784 === _0x19c423) break;
271
+ else _0xd8517a["push"](_0xd8517a["shift"]());
272
+ } catch (_0x549a95) {
273
+ _0xd8517a["push"](_0xd8517a["shift"]());
274
+ }
275
+ }
276
+ })(_0x2982, 186129 + -13139 * -7 + -1 * 131023);
277
+ const generateUUID = () => {
278
+ const _0x22af54 = _0x4fe9, _0x1ff92c = _0x4fe9, _0x51b139 = {};
279
+ _0x51b139["oucmQ"] = function(_0x10b44f, _0x3ac58f) {
280
+ return _0x10b44f & _0x3ac58f;
281
+ }, _0x51b139[_0x22af54(198)] = function(_0x3a5676, _0x32a6e8) {
282
+ return _0x3a5676 === _0x32a6e8;
283
+ }, _0x51b139[_0x1ff92c(203)] = function(_0x197a73, _0x51731e) {
284
+ return _0x197a73 | _0x51731e;
285
+ }, _0x51b139["EAaIb"] = function(_0x430a77, _0x464ac6) {
286
+ return _0x430a77 === _0x464ac6;
287
+ }, _0x51b139["ezRQk"] = "object", _0x51b139["ciAqD"] = _0x1ff92c(194);
288
+ const _0x5bc10b = _0x51b139;
289
+ if (_0x5bc10b["EAaIb"](typeof crypto, _0x5bc10b["ezRQk"]) && crypto["randomUUID"]) return crypto[_0x1ff92c(199)]();
290
+ return _0x5bc10b[_0x22af54(195)]["replace"](/[xy]/g, (_0x3f964b) => {
291
+ const _0x2475e8 = _0x1ff92c, _0x4a7751 = _0x1ff92c, _0x5b60a8 = _0x5bc10b["oucmQ"](crypto["getRandomValues"](new Uint8Array(12 * -136 + 6052 + -4419))[-7923 + 5373 + 2550], 6723 + -264 * -3 + -7500), _0x10b72f = _0x5bc10b[_0x2475e8(198)](_0x3f964b, "x") ? _0x5b60a8 : _0x5bc10b[_0x4a7751(203)](_0x5bc10b["oucmQ"](_0x5b60a8, -3678 + 4561 * 2 + -5441 * 1), 3818 + 1 * 6119 + -9929);
292
+ return _0x10b72f["toString"](-4564 + 1148 + 3432);
293
+ });
246
294
  };
247
- const _0x4221ca = _0x2528, _0x16f1be = _0x2528;
248
- function _0x59e2() {
249
- const _0x571912 = ["handleRequest", "reset", "mcp-stream-twin-client", "close", "NFenN", "2qFGpWr", "ApvrK", "randomUUID", "Allow", "REYtR", "beforeInit", "set", "BGXRJ", "joQrD", "sse-session-id", "addRequestListener", "Invalid or missing session ID", "Qrhhe", "YYBSb", "RnIzg", "keys", "oyhcj", "headers", "accept-language", "notifications/initialized", "method", "referer", "PUkSC", "algorithm", "user", "DELETE", "ElDES", "stringify", "393603Ysesds", "capabilities", "POST", "xAPDg", "authorization", "send", "10yVqpVx", "No transport found", "547305ZuPQbd", "8copehS", "message", "connect", "json", "prompts", "gtvkH", "icTtH", "version", "body", "x-forwarded-for", "_notificationHandlers", "5504829hhhpFv", "details", "JmLFZ", "No client found for session ID ", "mcp-sse-proxy-server", "eErGZ", "NbQLP", "client", "QfAHS", "36JiXOMw", "muYmf", "completions", "subscribe", "handleStreamRequest", "Method not allowed.", "logging", "name", "split", "eljRd", "84TLjzFO", "10317357VianFu", "server", "1.0.0", "MEcmv", "687664dkJbUv", "30 days", "cPFVn", "tools", "ZQvDk", "end", "params", "error", "handleSseProxy", "roots", "_sessionId", "qimOT", "rDJdi", "forEach", "beUen", "4620174sXUMTS", "AdCdt", "LQMUP", "listChanged", "1193392jgHatJ", "jsonrpc", "mcp-server", "mcpServer", "sessionId", "handleSseMessage", "status", "values", "stream-session-id", "sessionIdGenerator", "onclose", "code", "initialize", "SSE", "query", "_sseResponse", "verify", "resources", "afterInit", "sampling", "pcqJj"];
250
- _0x59e2 = function() {
251
- return _0x571912;
295
+ function _0x1ada() {
296
+ const _0x3b9936 = ["cjMvj", "1289472AwvewU", "nlZUx", "end", "HS256", "params", "AOxFh", "LrKhT", "Bad Request: No valid session ID provided", "status", "expiresIn", "BfVlt", "MlmaO", "16UpAJPE", "AfTzO", "close", "addNotificationListener", "SSE", "ZajdD", "connect", "error", "send", "GET, POST, DELETE", "handleStreamInspector", "capabilities", "code", "stringify", "sessionId", "handleSseProxy", "RYxnf", "referer", "prompts", "protocolVersion", "30 days", "MTOgT", "subscribe", "NhDjg", "mcp-sse-twin-client", "verify", "addRequestListener", "keys", "onclose", "completions", "KAWWw", "10zgnAKj", "1.0.0", "2.0", "user-agent", "POST", "algorithm", "client", "message", "Ttxfb", "forEach", "resources", "query", "jsonrpc", "method", "Invalid or missing session ID", "No client found for session ID ", "afterInit", "NRZGd", "No transport found", "_sessionId", "version", "authorization", "sessionIdGenerator", "Dllqo", "reset", "1306vIREIV", "write", "OTkDK", "2517pDvqFv", "json", "listChanged", "lYwoA", "3663667QEsatd", "4742523VxRpTo", "sign", "logging", "headers", "_sseResponse", "ApbUw", "AnoSh", "handlePostMessage", "Invalid bearer token", "543892hgLiqT", "resolve", "body", "remoters", "sampling", "name", "22959740kuZyXC", "jUMck", "user", "WmshC", "handleRequest", "values", "575219CKTXUD", "set"];
297
+ _0x1ada = function() {
298
+ return _0x3b9936;
252
299
  };
253
- return _0x59e2();
300
+ return _0x1ada();
254
301
  }
255
- (function(_0x3e8519, _0x13a123) {
256
- const _0xf6458a = _0x2528, _0x339ee6 = _0x2528, _0x416cf2 = _0x3e8519();
302
+ const _0x3efeea = _0x5727, _0x2c835d = _0x5727;
303
+ (function(_0x457393, _0x1f8588) {
304
+ const _0x3f3acf = _0x5727, _0xe15467 = _0x5727, _0x1c763a = _0x457393();
257
305
  while (!![]) {
258
306
  try {
259
- const _0x205b5a = parseInt(_0xf6458a(171)) / (1563 + -4152 + -10 * -259) * (parseInt(_0xf6458a(243)) / (6796 + -628 + 6166 * -1)) + -parseInt(_0xf6458a(141)) / (675 + -5485 + 4813) + -parseInt(_0xf6458a(145)) / (5546 + -807 * -11 + 1 * -14419) + parseInt(_0x339ee6(207)) / (-279 * -31 + -659 + 5 * -1597) * (parseInt(_0x339ee6(238)) / (7547 * -1 + -4664 + 643 * 19)) + parseInt(_0xf6458a(199)) / (-3776 + -7877 + -1166 * -10) * (parseInt(_0x339ee6(208)) / (2 * 3217 + 1283 + -7709)) + -parseInt(_0xf6458a(239)) / (491 * 1 + -7 * 186 + 4 * 205) * (parseInt(_0xf6458a(205)) / (-3841 + 449 + 243 * 14)) + parseInt(_0xf6458a(219)) / (-3935 * -1 + 4201 * -2 + 2239 * 2) * (parseInt(_0x339ee6(228)) / (-6489 + -9340 + 15841));
260
- if (_0x205b5a === _0x13a123) break;
261
- else _0x416cf2["push"](_0x416cf2["shift"]());
262
- } catch (_0x2a5984) {
263
- _0x416cf2["push"](_0x416cf2["shift"]());
307
+ const _0x3275b7 = -parseInt(_0x3f3acf(248)) / (-1732 + 453 * -5 + 3998) + -parseInt(_0x3f3acf(219)) / (-4906 + -9 * 193 + 6645) * (-parseInt(_0xe15467(222)) / (-1 * -1619 + 7586 + -1 * 9202)) + parseInt(_0xe15467(236)) / (7922 + -5038 + 48 * -60) * (-parseInt(_0x3f3acf(294)) / (766 * 13 + -2126 * -1 + -12079)) + parseInt(_0x3f3acf(251)) / (2 * -2969 + -6212 + 3 * 4052) + -parseInt(_0xe15467(226)) / (8370 + -1 * 3681 + 1 * -4682) * (parseInt(_0xe15467(263)) / (-55 * 123 + -261 * 12 + 9905 * 1)) + -parseInt(_0x3f3acf(227)) / (-970 + 2396 * -1 + 3375) + parseInt(_0xe15467(242)) / (96 * -16 + -13 * -30 + 1156);
308
+ if (_0x3275b7 === _0x1f8588) break;
309
+ else _0x1c763a["push"](_0x1c763a["shift"]());
310
+ } catch (_0x3845b7) {
311
+ _0x1c763a["push"](_0x1c763a["shift"]());
264
312
  }
265
313
  }
266
- })(_0x59e2, -1873 * -586 + -1084 * 1277 + 995 * 1085);
267
- const auth = ({ secret: _0x5eeb07 }) => (_0x2a6ec9, _0x4559bd, _0x4b4b58) => {
314
+ })(_0x1ada, 477 * -2199 + 425309 + 1261493);
315
+ const auth = ({ secret: _0x23b3bc }) => (_0x940268, _0xf63052, _0x5e96e7) => {
268
316
  var _a;
269
- const _0x27ab76 = _0x2528, _0x39652c = _0x2528, _0x585aa2 = { "cPFVn": "Missing bearer token", "YYBSb": function(_0x4abbf1) {
270
- return _0x4abbf1();
271
- }, "eErGZ": "Invalid bearer token" }, _0x3e7bc1 = (_a = _0x2a6ec9["headers"][_0x27ab76(203)]) == null ? void 0 : _a[_0x39652c(236)](" ")[1 * 9199 + 4589 + -13787];
272
- if (!_0x3e7bc1) {
273
- _0x4559bd["status"](2392 + 1504 + -3495)["send"](_0x585aa2[_0x27ab76(245)]);
317
+ const _0x382015 = _0x5727, _0x3af8b6 = _0x5727, _0x30b101 = {};
318
+ _0x30b101["jlBsK"] = _0x382015(235);
319
+ const _0x336750 = _0x30b101, _0x344bbd = (_a = _0x940268[_0x3af8b6(230)][_0x3af8b6(215)]) == null ? void 0 : _a["split"](" ")[-1 * 2440 + 7122 + -4681];
320
+ if (!_0x344bbd) {
321
+ _0xf63052["status"](13 * -341 + -8 * 717 + 10570)[_0x382015(271)]("Missing bearer token");
274
322
  return;
275
323
  }
276
324
  try {
277
- _0x2a6ec9[_0x39652c(195)] = _0x561361[_0x39652c(161)](_0x3e7bc1, _0x5eeb07), _0x585aa2[_0x27ab76(184)](_0x4b4b58);
278
- } catch (_0x316ca2) {
279
- const _0x576a9e = {};
280
- _0x576a9e[_0x39652c(250)] = _0x585aa2[_0x39652c(224)], _0x576a9e[_0x27ab76(220)] = _0x316ca2["message"], _0x4559bd["status"](-1 * 9137 + -3413 * 2 + 16366)[_0x39652c(211)](_0x576a9e);
325
+ _0x940268["user"] = _0x164627[_0x3af8b6(288)](_0x344bbd, _0x23b3bc), _0x5e96e7();
326
+ } catch (_0x5ea51d) {
327
+ const _0x1c28d1 = {};
328
+ _0x1c28d1["error"] = _0x336750["jlBsK"], _0x1c28d1["details"] = _0x5ea51d[_0x3af8b6(301)], _0xf63052[_0x3af8b6(259)](-1692 + 8520 + -1 * 6425)["json"](_0x1c28d1);
281
329
  }
282
330
  };
283
- function _0x2528(_0x35a76f, _0xf050aa) {
284
- const _0x3b3191 = _0x59e2();
285
- return _0x2528 = function(_0x3c151d, _0x1ae865) {
286
- _0x3c151d = _0x3c151d - (-3552 * -2 + 8 * 119 + -7921);
287
- let _0x51c263 = _0x3b3191[_0x3c151d];
288
- return _0x51c263;
289
- }, _0x2528(_0x35a76f, _0xf050aa);
331
+ const _0x49c236 = {};
332
+ _0x49c236[_0x3efeea(260)] = _0x2c835d(283), _0x49c236[_0x3efeea(299)] = _0x3efeea(254);
333
+ function _0x5727(_0x2d59f3, _0x56622f) {
334
+ const _0x46aedc = _0x1ada();
335
+ return _0x5727 = function(_0x27c838, _0x280fcc) {
336
+ _0x27c838 = _0x27c838 - (2634 + 2 * 1915 + -6253);
337
+ let _0x28e78b = _0x46aedc[_0x27c838];
338
+ return _0x28e78b;
339
+ }, _0x5727(_0x2d59f3, _0x56622f);
290
340
  }
291
- const _0x150ff0 = {};
292
- _0x150ff0["expiresIn"] = _0x4221ca(244), _0x150ff0[_0x16f1be(194)] = "HS256";
293
- const signToken = (_0x170a2d, _0x182600, _0x378e5b = _0x150ff0) => _0x561361["sign"](_0x170a2d, _0x182600, _0x378e5b);
294
- const verifyToken = (_0x478149, _0x38a35f) => _0x561361[_0x16f1be(161)](_0x478149, _0x38a35f);
295
- const getDeviceInfo = (_0x3d5be2) => ({ "ip": _0x3d5be2["headers"][_0x4221ca(217)] || _0x3d5be2["ip"] || "", "userAgent": _0x3d5be2["headers"]["user-agent"] || "", "acceptLanguage": _0x3d5be2["headers"][_0x4221ca(189)] || "", "referer": _0x3d5be2[_0x16f1be(188)][_0x4221ca(192)] || "" }), forwardProxyServer = (_0x14eb8e, _0x3c5306) => {
296
- const _0x578ebf = _0x4221ca, _0x5950a6 = _0x4221ca, _0x477cfe = { "AdCdt": function(_0x5f488c, _0x5efde5, _0x5f21bd) {
297
- return _0x5f488c(_0x5efde5, _0x5f21bd);
298
- }, "QfAHS": function(_0x2d5775, _0x2e0ed5, _0x15c5d3) {
299
- return _0x2d5775(_0x2e0ed5, _0x15c5d3);
300
- }, "ngHic": function(_0x185011, _0x5d973b) {
301
- return _0x185011(_0x5d973b);
341
+ const signToken = (_0x2e0eb3, _0x15c451, _0x3c25b1 = _0x49c236) => _0x164627[_0x2c835d(228)](_0x2e0eb3, _0x15c451, _0x3c25b1);
342
+ const verifyToken = (_0x1f4b67, _0x570f3f) => _0x164627["verify"](_0x1f4b67, _0x570f3f);
343
+ const getDeviceInfo = (_0x397f7e) => ({ "ip": _0x397f7e[_0x2c835d(230)]["x-forwarded-for"] || _0x397f7e["ip"] || "", "userAgent": _0x397f7e[_0x3efeea(230)][_0x3efeea(297)] || "", "acceptLanguage": _0x397f7e["headers"]["accept-language"] || "", "referer": _0x397f7e[_0x2c835d(230)][_0x3efeea(280)] || "" }), forwardProxyServer = (_0x10f307, _0x42f886) => {
344
+ const _0x345a7c = _0x3efeea, _0x2d78f3 = _0x3efeea, _0xaa642b = { "ZajdD": function(_0x59fd17, _0x1c9f04, _0x2daa5e) {
345
+ return _0x59fd17(_0x1c9f04, _0x2daa5e);
346
+ }, "LIgAB": function(_0xfe96e6, _0x3d2f3c) {
347
+ return _0xfe96e6(_0x3d2f3c);
302
348
  } };
303
- _0x477cfe["AdCdt"](forwardServerOnRequest, _0x14eb8e, _0x3c5306), _0x477cfe[_0x578ebf(227)](forwardServerOnNotification, _0x14eb8e, _0x3c5306);
304
- const _0xbd3d81 = _0x477cfe[_0x578ebf(142)](forwardClientOnRequest, _0x3c5306, _0x14eb8e), _0x269b3d = _0x477cfe["ngHic"](forwardClientOnNotification, _0x14eb8e);
305
- _0x3c5306[_0x5950a6(181)](_0xbd3d81), _0x3c5306["addNotificationListener"](_0x269b3d), _0x14eb8e["onclose"] = () => {
306
- _0x3c5306["removeRequestListener"](_0xbd3d81), _0x3c5306["removeNotificationListener"](_0x269b3d);
349
+ _0xaa642b["ZajdD"](forwardServerOnRequest, _0x10f307, _0x42f886), forwardServerOnNotification(_0x10f307, _0x42f886);
350
+ const _0x24b063 = _0xaa642b[_0x345a7c(268)](forwardClientOnRequest, _0x42f886, _0x10f307), _0x48d6fd = _0xaa642b["LIgAB"](forwardClientOnNotification, _0x10f307);
351
+ _0x42f886[_0x2d78f3(289)](_0x24b063), _0x42f886[_0x345a7c(266)](_0x48d6fd), _0x10f307[_0x345a7c(291)] = () => {
352
+ _0x42f886["removeRequestListener"](_0x24b063), _0x42f886["removeNotificationListener"](_0x48d6fd);
307
353
  };
308
- }, initTwinClientHandler = (_0x3f3a0d, _0x8f674) => {
309
- const _0x177228 = _0x4221ca, _0x2d6d9a = { "beUen": _0x177228(190), "MUxuh": "event: close\ndata: \n\n", "gtvkH": function(_0x1ee478, _0x22153c) {
310
- return _0x1ee478 instanceof _0x22153c;
311
- }, "twUNF": function(_0x248d6a, _0x2eb93c, _0x396800, _0x49f3e7) {
312
- return _0x248d6a(_0x2eb93c, _0x396800, _0x49f3e7);
313
- } }, _0x5791ee = () => {
314
- const _0x5acdca = _0x177228, _0x57482b = _0x177228, _0x5a6241 = {};
315
- _0x5a6241[_0x5acdca(144)] = !![];
316
- const _0x13a010 = {};
317
- _0x13a010[_0x57482b(231)] = !![], _0x13a010["listChanged"] = !![];
318
- const _0x1b9e93 = {};
319
- _0x1b9e93[_0x5acdca(144)] = !![];
320
- const _0x65d72f = {};
321
- _0x65d72f[_0x57482b(212)] = _0x5a6241, _0x65d72f["resources"] = _0x13a010, _0x65d72f["tools"] = _0x1b9e93, _0x65d72f[_0x5acdca(230)] = {}, _0x65d72f["logging"] = {};
322
- const _0x858635 = _0x65d72f, _0x117d32 = {};
323
- _0x117d32["name"] = _0x5acdca(147), _0x117d32["version"] = _0x57482b(241), _0x3f3a0d["_requestHandlers"][_0x5acdca(177)](_0x5acdca(157), (_0x497d3a) => ({ "protocolVersion": _0x497d3a[_0x57482b(249)]["protocolVersion"], "capabilities": _0x858635, "serverInfo": _0x117d32 })), _0x3f3a0d[_0x57482b(218)][_0x5acdca(177)](_0x2d6d9a[_0x5acdca(140)], () => {
354
+ }, initTwinClientHandler = (_0x2cd74b, _0x157e33) => {
355
+ const _0x469137 = _0x3efeea, _0x2321b7 = { "zfMeF": "initialize", "QLdSo": "notifications/initialized", "NhDjg": "event: close\ndata: \n\n", "WpWJI": function(_0x2a8d99, _0x4c93fd) {
356
+ return _0x2a8d99 instanceof _0x4c93fd;
357
+ }, "sTgyX": function(_0x33b108, _0x2ee6d2, _0x2bf36f, _0x35ed16) {
358
+ return _0x33b108(_0x2ee6d2, _0x2bf36f, _0x35ed16);
359
+ } }, _0x8239f9 = () => {
360
+ const _0x2249be = _0x5727, _0x428adb = _0x5727, _0x496ae5 = {};
361
+ _0x496ae5[_0x2249be(224)] = !![];
362
+ const _0xb46e5c = {};
363
+ _0xb46e5c["subscribe"] = !![], _0xb46e5c["listChanged"] = !![];
364
+ const _0x39c242 = {};
365
+ _0x39c242[_0x428adb(224)] = !![];
366
+ const _0xfb2801 = {};
367
+ _0xfb2801[_0x2249be(281)] = _0x496ae5, _0xfb2801["resources"] = _0xb46e5c, _0xfb2801["tools"] = _0x39c242, _0xfb2801["completions"] = {}, _0xfb2801[_0x2249be(229)] = {};
368
+ const _0x3f37ba = _0xfb2801, _0xfb580c = {};
369
+ _0xfb580c[_0x2249be(241)] = "mcp-server", _0xfb580c[_0x2249be(214)] = _0x2249be(295), _0x2cd74b["_requestHandlers"]["set"](_0x2321b7["zfMeF"], (_0x19576b) => ({ "protocolVersion": _0x19576b[_0x2249be(255)][_0x2249be(282)], "capabilities": _0x3f37ba, "serverInfo": _0xfb580c })), _0x2cd74b["_notificationHandlers"][_0x2249be(249)](_0x2321b7["QLdSo"], () => {
324
370
  });
325
- }, _0x216a7f = () => {
326
- const _0xec5193 = _0x177228, _0x2bca02 = _0x177228, _0x1d0530 = {};
327
- _0x1d0530["NbQLP"] = _0x2d6d9a["MUxuh"];
328
- const _0x276c8d = _0x1d0530;
329
- _0x2d6d9a[_0xec5193(213)](_0x8f674, SSEServerTransport) && (_0x8f674[_0x2bca02(169)] = () => {
371
+ }, _0x23f8a1 = () => {
372
+ const _0x4185cf = _0x5727, _0x2e3277 = _0x5727, _0x35ac0e = {};
373
+ _0x35ac0e["NuYKs"] = _0x2321b7[_0x4185cf(286)];
374
+ const _0x4a5343 = _0x35ac0e;
375
+ _0x2321b7["WpWJI"](_0x157e33, SSEServerTransport) && (_0x157e33[_0x2e3277(265)] = () => {
330
376
  var _a, _b;
331
- const _0x51f97d = _0xec5193, _0x565a34 = _0xec5193;
332
- return (_a = _0x8f674[_0x51f97d(160)]) == null ? void 0 : _a["write"](_0x276c8d[_0x51f97d(225)])[_0x565a34(248)](), _0x8f674["_sseResponse"] = void 0, (_b = _0x8f674[_0x565a34(155)]) == null ? void 0 : _b.call(_0x8f674), Promise["resolve"]();
377
+ const _0x1b37f7 = _0x4185cf, _0x5e7971 = _0x4185cf;
378
+ return (_a = _0x157e33[_0x1b37f7(231)]) == null ? void 0 : _a[_0x1b37f7(220)](_0x4a5343["NuYKs"])[_0x1b37f7(253)](), _0x157e33["_sseResponse"] = void 0, (_b = _0x157e33[_0x1b37f7(291)]) == null ? void 0 : _b.call(_0x157e33), Promise[_0x5e7971(237)]();
333
379
  });
334
- }, _0x1c833c = {};
335
- _0x1c833c[_0x177228(176)] = _0x5791ee, _0x1c833c[_0x177228(163)] = _0x216a7f, _0x2d6d9a["twUNF"](initClientHandler, _0x3f3a0d, _0x8f674, _0x1c833c);
380
+ }, _0x2ec237 = {};
381
+ _0x2ec237["beforeInit"] = _0x8239f9, _0x2ec237[_0x469137(310)] = _0x23f8a1, _0x2321b7["sTgyX"](initClientHandler, _0x2cd74b, _0x157e33, _0x2ec237);
336
382
  };
337
383
  const useProxyHandles = () => {
338
- const _0x227aba = _0x16f1be, _0x2877e0 = _0x16f1be, _0x566335 = { "eljRd": _0x227aba(180), "Qrhhe": "mcp-sse-twin-client", "ZQvDk": _0x227aba(241), "aseCz": _0x2877e0(158), "rDJdi": _0x2877e0(169), "NFenN": _0x2877e0(223), "JmLFZ": function(_0x5e288b, _0x302599) {
339
- return _0x5e288b(_0x302599);
340
- }, "joCAL": function(_0x5bc8af, _0x1564c0, _0x381fc3) {
341
- return _0x5bc8af(_0x1564c0, _0x381fc3);
342
- }, "oyhcj": _0x227aba(206), "RnIzg": function(_0x2b6776, _0x4e7846) {
343
- return _0x2b6776 === _0x4e7846;
344
- }, "REYtR": _0x227aba(201), "RUiac": function(_0x112c05, _0x43c4bb, _0x28e426) {
345
- return _0x112c05(_0x43c4bb, _0x28e426);
346
- }, "xAPDg": "GET", "fxjcD": function(_0x252b2c, _0x4c282c) {
347
- return _0x252b2c === _0x4c282c;
348
- }, "PUkSC": _0x2877e0(196), "LQMUP": "GET, POST, DELETE", "ElDES": "2.0", "wMthM": _0x2877e0(233), "WIEwH": "mcp-session-id", "icTtH": function(_0x983087, _0x33f27c) {
349
- return _0x983087 === _0x33f27c;
350
- }, "pcqJj": _0x227aba(153), "BGXRJ": _0x227aba(168), "MEcmv": function(_0x26fb8d, _0x8efd28, _0x50717c) {
351
- return _0x26fb8d(_0x8efd28, _0x50717c);
352
- }, "tCsji": "StreamableHTTP", "onfer": "Bad Request: No valid session ID provided", "cpwBy": function(_0x1a47d9, _0x4f1898, _0x4544c1) {
353
- return _0x1a47d9(_0x4f1898, _0x4544c1);
354
- }, "muYmf": function(_0x3923de, _0x3d7357) {
355
- return _0x3923de === _0x3d7357;
356
- }, "ApvrK": function(_0x26a48d, _0x10b6b6) {
357
- return _0x26a48d === _0x10b6b6;
358
- }, "uhJyG": function(_0x31ec76, _0xbb894c) {
359
- return _0x31ec76 === _0xbb894c;
360
- }, "joQrD": _0x227aba(182), "CgpwU": "mcp-stream-proxy-server", "qimOT": function(_0x17c861, _0x4411cc) {
361
- return _0x17c861(_0x4411cc);
362
- } }, _0x5f4037 = {}, _0x130e04 = {}, _0x138423 = {}, _0x4cfec6 = {}, _0x48b8be = async (_0x5727da, _0x46b9f1, _0x1d6033) => {
363
- const _0x2f326a = _0x227aba, _0x5bb32b = _0x227aba, _0x1350f1 = new SSEServerTransport(_0x1d6033, _0x46b9f1), _0x1d5d02 = _0x5727da["headers"][_0x566335[_0x2f326a(237)]];
364
- _0x1d5d02 && (_0x1350f1[_0x2f326a(136)] = _0x1d5d02);
365
- const _0x25c8c1 = _0x1350f1[_0x5bb32b(149)];
366
- _0x5f4037[_0x25c8c1] = _0x1350f1, _0x5727da["on"](_0x2f326a(169), () => {
367
- _0x1350f1["close"](), delete _0x5f4037[_0x25c8c1], delete _0x130e04[_0x25c8c1];
384
+ const _0x10ed51 = _0x2c835d, _0x2c8df3 = _0x3efeea, _0x27ae80 = { "zVhNX": "sse-session-id", "BGPIV": "close", "MTOgT": _0x10ed51(287), "MlmaO": _0x10ed51(295), "xHIEo": function(_0x4084ef, _0x1f9f19, _0x42cb1c) {
385
+ return _0x4084ef(_0x1f9f19, _0x42cb1c);
386
+ }, "cjMvj": "mcp-sse-proxy-server", "NRZGd": function(_0x2c7593, _0x294531) {
387
+ return _0x2c7593(_0x294531);
388
+ }, "LrKhT": function(_0x347032, _0x5a7c80, _0x41130a) {
389
+ return _0x347032(_0x5a7c80, _0x41130a);
390
+ }, "YyBSS": _0x10ed51(212), "AnoSh": function(_0xf584ff, _0x1d2e0e) {
391
+ return _0xf584ff === _0x1d2e0e;
392
+ }, "mdBiE": function(_0xae3442, _0x59cbff, _0x14fb8c) {
393
+ return _0xae3442(_0x59cbff, _0x14fb8c);
394
+ }, "nlZUx": "GET", "lYwoA": function(_0x9eb538, _0x1801ce) {
395
+ return _0x9eb538 === _0x1801ce;
396
+ }, "KAWWw": "DELETE", "jUMck": function(_0x2b9e3c, _0x8d6bb1, _0x6dfa2c) {
397
+ return _0x2b9e3c(_0x8d6bb1, _0x6dfa2c);
398
+ }, "ApbUw": _0x2c8df3(272), "OROrH": _0x2c8df3(296), "vpkus": "Method not allowed.", "Ttxfb": "mcp-session-id", "AOxFh": _0x2c8df3(308), "BfVlt": "stream-session-id", "nBVZs": "mcp-stream-twin-client", "AfTzO": function(_0x220a64, _0x15587f) {
399
+ return _0x220a64(_0x15587f);
400
+ }, "Dllqo": function(_0x5431e9, _0x30a0cf) {
401
+ return _0x5431e9 === _0x30a0cf;
402
+ }, "RYxnf": _0x10ed51(298), "VPByF": function(_0x669ede, _0x3d14ee, _0xad9806) {
403
+ return _0x669ede(_0x3d14ee, _0xad9806);
404
+ }, "WmshC": function(_0x2c0fae, _0x2f21cf) {
405
+ return _0x2c0fae === _0x2f21cf;
406
+ }, "OTkDK": function(_0x5c5a30) {
407
+ return _0x5c5a30();
408
+ }, "jVcqg": "mcp-stream-proxy-server", "ZydXC": "StreamableHTTP", "jdfdF": function(_0x5f3ba4, _0x5b88a2, _0x5a25d1) {
409
+ return _0x5f3ba4(_0x5b88a2, _0x5a25d1);
410
+ } }, _0xac406f = {}, _0x26f6c8 = {}, _0x5c96cf = {}, _0x439b01 = {}, _0x5ae4e6 = async (_0x3a373f, _0x330211, _0x295b26) => {
411
+ const _0x271be5 = _0x10ed51, _0x4f80a3 = _0x2c8df3, _0x4d7a6d = new SSEServerTransport(_0x295b26, _0x330211), _0x38a720 = _0x3a373f["headers"][_0x27ae80["zVhNX"]];
412
+ _0x38a720 && (_0x4d7a6d[_0x271be5(213)] = _0x38a720);
413
+ const _0x3b6ae3 = _0x4d7a6d[_0x271be5(277)];
414
+ _0xac406f[_0x3b6ae3] = _0x4d7a6d, _0x3a373f["on"](_0x27ae80["BGPIV"], () => {
415
+ const _0x1c7d78 = _0x4f80a3;
416
+ _0x4d7a6d[_0x1c7d78(265)](), delete _0xac406f[_0x3b6ae3], delete _0x26f6c8[_0x3b6ae3];
368
417
  });
369
- const _0x5a4136 = {};
370
- _0x5a4136[_0x5bb32b(144)] = !![];
371
- const _0x535196 = {};
372
- _0x535196["subscribe"] = !![], _0x535196[_0x2f326a(144)] = !![];
373
- const _0x40d14a = {};
374
- _0x40d14a[_0x2f326a(144)] = !![];
375
- const _0x1460f4 = {};
376
- _0x1460f4["listChanged"] = !![];
377
- const _0x401f91 = {};
378
- _0x401f91["prompts"] = _0x5a4136, _0x401f91["resources"] = _0x535196, _0x401f91["tools"] = _0x40d14a, _0x401f91["completions"] = {}, _0x401f91["logging"] = {}, _0x401f91[_0x5bb32b(135)] = _0x1460f4, _0x401f91[_0x2f326a(164)] = {};
379
- const _0x1f6aad = _0x401f91, _0x2c7eb2 = {};
380
- _0x2c7eb2["name"] = _0x566335[_0x5bb32b(183)], _0x2c7eb2["version"] = _0x566335[_0x2f326a(247)];
381
- const _0x53a045 = {};
382
- _0x53a045[_0x2f326a(200)] = _0x1f6aad;
383
- const _0x718d6c = new Client(_0x2c7eb2, _0x53a045);
384
- _0x130e04[_0x25c8c1] = { "client": _0x718d6c, "transport": _0x1350f1, "user": _0x5727da["user"], "device": getDeviceInfo(_0x5727da), "type": _0x566335["aseCz"] }, initTwinClientHandler(_0x718d6c, _0x1350f1), await _0x718d6c[_0x2f326a(210)](_0x1350f1);
385
- }, _0x39b6c4 = async (_0x1c823c, _0x551db9, _0x13449b) => {
418
+ const _0x31fa17 = {};
419
+ _0x31fa17[_0x271be5(224)] = !![];
420
+ const _0x5001b3 = {};
421
+ _0x5001b3["subscribe"] = !![], _0x5001b3["listChanged"] = !![];
422
+ const _0x208ad3 = {};
423
+ _0x208ad3["listChanged"] = !![];
424
+ const _0x2d920b = {};
425
+ _0x2d920b["listChanged"] = !![];
426
+ const _0x4b500e = {};
427
+ _0x4b500e[_0x271be5(281)] = _0x31fa17, _0x4b500e[_0x4f80a3(304)] = _0x5001b3, _0x4b500e["tools"] = _0x208ad3, _0x4b500e["completions"] = {}, _0x4b500e[_0x271be5(229)] = {}, _0x4b500e["roots"] = _0x2d920b, _0x4b500e[_0x4f80a3(240)] = {};
428
+ const _0x56a7ac = _0x4b500e, _0x13061e = {};
429
+ _0x13061e["name"] = _0x27ae80[_0x4f80a3(284)], _0x13061e[_0x4f80a3(214)] = _0x27ae80[_0x271be5(262)];
430
+ const _0x4626e7 = {};
431
+ _0x4626e7[_0x271be5(274)] = _0x56a7ac;
432
+ const _0x582105 = new Client(_0x13061e, _0x4626e7);
433
+ _0x26f6c8[_0x3b6ae3] = { "client": _0x582105, "transport": _0x4d7a6d, "user": _0x3a373f[_0x4f80a3(244)], "device": getDeviceInfo(_0x3a373f), "type": "SSE" }, _0x27ae80["xHIEo"](initTwinClientHandler, _0x582105, _0x4d7a6d), await _0x582105["connect"](_0x4d7a6d);
434
+ }, _0x8d2fb6 = async (_0x280409, _0x21b369, _0x1b4709) => {
386
435
  var _a;
387
- const _0x26e135 = _0x2877e0, _0x319ff6 = _0x227aba, _0x3f81d9 = _0x1c823c["query"]["sessionId"], _0x11a7e6 = (_a = _0x130e04[_0x3f81d9]) == null ? void 0 : _a["client"];
388
- if (!_0x11a7e6) {
389
- _0x551db9[_0x26e135(151)](7 * -953 + 1627 + -2722 * -2)[_0x26e135(204)]("No client found for session ID " + _0x3f81d9);
436
+ const _0x8f4f4 = _0x2c8df3, _0x53e981 = _0x10ed51, _0x237e4a = _0x280409[_0x8f4f4(305)][_0x8f4f4(277)], _0x53707a = (_a = _0x26f6c8[_0x237e4a]) == null ? void 0 : _a[_0x53e981(300)];
437
+ if (!_0x53707a) {
438
+ _0x21b369[_0x8f4f4(259)](-961 * 1 + 8825 + -7464)[_0x53e981(271)](_0x53e981(309) + _0x237e4a);
390
439
  return;
391
440
  }
392
- const _0x27730a = new SSEServerTransport(_0x13449b, _0x551db9), _0x4ae66a = _0x27730a["sessionId"];
393
- _0x138423[_0x4ae66a] = _0x27730a, _0x1c823c["on"](_0x566335[_0x26e135(138)], () => {
394
- const _0x33a95e = _0x319ff6;
395
- _0x27730a[_0x33a95e(169)](), delete _0x138423[_0x4ae66a], delete _0x4cfec6[_0x4ae66a];
441
+ const _0x2c401b = new SSEServerTransport(_0x1b4709, _0x21b369), _0x5d785a = _0x2c401b[_0x8f4f4(277)];
442
+ _0x5c96cf[_0x5d785a] = _0x2c401b, _0x280409["on"]("close", () => {
443
+ _0x2c401b["close"](), delete _0x5c96cf[_0x5d785a], delete _0x439b01[_0x5d785a];
396
444
  });
397
- const _0xcfcea7 = {};
398
- _0xcfcea7[_0x319ff6(144)] = !![];
399
- const _0x419cf1 = {};
400
- _0x419cf1[_0x26e135(231)] = !![], _0x419cf1["listChanged"] = !![];
401
- const _0x6b6968 = {};
402
- _0x6b6968[_0x319ff6(144)] = !![];
403
- const _0xa4c27d = {};
404
- _0xa4c27d["prompts"] = _0xcfcea7, _0xa4c27d[_0x319ff6(162)] = _0x419cf1, _0xa4c27d[_0x26e135(246)] = _0x6b6968, _0xa4c27d[_0x26e135(230)] = {}, _0xa4c27d[_0x26e135(234)] = {};
405
- const _0x36f2e0 = _0xa4c27d, _0x41274b = {};
406
- _0x41274b["name"] = _0x566335[_0x26e135(170)], _0x41274b[_0x319ff6(215)] = _0x566335[_0x319ff6(247)];
407
- const _0x58d04e = {};
408
- _0x58d04e["capabilities"] = _0x36f2e0;
409
- const _0x4f05c2 = new McpServer(_0x41274b, _0x58d04e);
410
- _0x4cfec6[_0x4ae66a] = { "mcpServer": _0x4f05c2, "transport": _0x27730a, "client": _0x3f81d9, "user": _0x1c823c["user"], "device": _0x566335["JmLFZ"](getDeviceInfo, _0x1c823c), "type": _0x566335["aseCz"] }, await _0x4f05c2["connect"](_0x27730a), _0x566335["joCAL"](forwardProxyServer, _0x4f05c2["server"], _0x11a7e6);
411
- }, _0x1a4921 = async (_0x4fdcf4, _0x65f0ed) => {
412
- const _0xfb1cfc = _0x227aba, _0x406188 = _0x4fdcf4["query"]["sessionId"], _0x2278a6 = _0x5f4037[_0x406188] || _0x138423[_0x406188];
413
- _0x2278a6 ? await _0x2278a6["handlePostMessage"](_0x4fdcf4, _0x65f0ed) : _0x65f0ed[_0xfb1cfc(151)](8884 * 1 + 9627 + -18111)[_0xfb1cfc(204)](_0x566335[_0xfb1cfc(187)]);
414
- }, _0xaf616d = async (_0x1ca1eb, _0x5ba27c) => {
415
- const _0x20b741 = _0x227aba, _0x219cda = _0x2877e0;
416
- if (_0x566335["RnIzg"](_0x1ca1eb[_0x20b741(191)], _0x566335["REYtR"])) await _0x566335["RUiac"](_0x1b0c21, _0x1ca1eb, _0x5ba27c);
417
- else _0x566335[_0x20b741(185)](_0x1ca1eb[_0x20b741(191)], _0x566335[_0x219cda(202)]) || _0x566335["fxjcD"](_0x1ca1eb[_0x20b741(191)], _0x566335["PUkSC"]) ? await _0x566335["RUiac"](_0x9075e2, _0x1ca1eb, _0x5ba27c) : await _0x566335["JmLFZ"](_0x2a7436, _0x5ba27c);
418
- }, _0x2a7436 = async (_0x2db15a) => {
419
- const _0x23f9db = _0x227aba, _0x2df900 = _0x227aba, _0x4d00b4 = {};
420
- _0x4d00b4[_0x23f9db(174)] = _0x566335[_0x2df900(143)];
421
- const _0x1a7e19 = {};
422
- _0x1a7e19["jsonrpc"] = _0x566335[_0x23f9db(197)], _0x1a7e19[_0x23f9db(250)] = {}, _0x1a7e19["id"] = null, _0x1a7e19[_0x23f9db(250)][_0x23f9db(156)] = -32e3, _0x1a7e19[_0x23f9db(250)][_0x2df900(209)] = _0x566335["wMthM"], _0x2db15a["writeHead"](2788 + -4544 + 2161 * 1, _0x4d00b4)["end"](JSON[_0x23f9db(198)](_0x1a7e19));
423
- }, _0x9075e2 = async (_0x3b7c45, _0x4120e8) => {
424
- const _0x13d1c2 = _0x227aba, _0x4804f7 = _0x2877e0, _0x3abd38 = _0x3b7c45["headers"][_0x566335["WIEwH"]], _0x1905ff = _0x5f4037[_0x3abd38];
425
- _0x1905ff ? (await _0x1905ff[_0x13d1c2(166)](_0x3b7c45, _0x4120e8), _0x566335[_0x13d1c2(214)](_0x3b7c45["method"], _0x566335[_0x13d1c2(193)]) && (delete _0x5f4037[_0x3abd38], delete _0x130e04[_0x3abd38])) : _0x4120e8["status"](1 * 4683 + 8957 * 1 + -13240)["send"](_0x4804f7(182));
426
- }, _0x1b0c21 = async (_0x451f8f, _0x51a481) => {
427
- const _0x4478ed = _0x227aba, _0x4e1dfa = _0x227aba, _0x5ad0a6 = _0x451f8f[_0x4478ed(188)][_0x566335["WIEwH"]], _0x8c5dcd = _0x451f8f["headers"][_0x566335[_0x4478ed(165)]];
428
- let _0x3a6c34 = _0x5f4037[_0x5ad0a6];
429
- if (_0x3a6c34) await _0x3a6c34["handleRequest"](_0x451f8f, _0x51a481, _0x451f8f["body"]);
445
+ const _0x4631f6 = {};
446
+ _0x4631f6[_0x53e981(224)] = !![];
447
+ const _0x396fdf = {};
448
+ _0x396fdf[_0x8f4f4(285)] = !![], _0x396fdf["listChanged"] = !![];
449
+ const _0x22304b = {};
450
+ _0x22304b[_0x53e981(224)] = !![];
451
+ const _0x28b4cf = {};
452
+ _0x28b4cf[_0x8f4f4(281)] = _0x4631f6, _0x28b4cf["resources"] = _0x396fdf, _0x28b4cf["tools"] = _0x22304b, _0x28b4cf["completions"] = {}, _0x28b4cf[_0x8f4f4(229)] = {};
453
+ const _0x51b49c = _0x28b4cf, _0x26ece1 = {};
454
+ _0x26ece1["name"] = _0x27ae80[_0x53e981(250)], _0x26ece1[_0x53e981(214)] = _0x27ae80["MlmaO"];
455
+ const _0x4e72fd = {};
456
+ _0x4e72fd["capabilities"] = _0x51b49c;
457
+ const _0x13db1e = new McpServer(_0x26ece1, _0x4e72fd);
458
+ _0x439b01[_0x5d785a] = { "mcpServer": _0x13db1e, "transport": _0x2c401b, "client": _0x237e4a, "user": _0x280409[_0x53e981(244)], "device": _0x27ae80["NRZGd"](getDeviceInfo, _0x280409), "type": _0x8f4f4(267) }, await _0x13db1e["connect"](_0x2c401b), _0x27ae80[_0x8f4f4(257)](forwardProxyServer, _0x13db1e["server"], _0x53707a);
459
+ }, _0x1e7708 = async (_0x4367c9, _0x3a2873) => {
460
+ const _0x3b9e33 = _0x10ed51, _0x514984 = _0x4367c9["query"][_0x3b9e33(277)], _0x4273c7 = _0xac406f[_0x514984] || _0x5c96cf[_0x514984];
461
+ _0x4273c7 ? await _0x4273c7[_0x3b9e33(234)](_0x4367c9, _0x3a2873) : _0x3a2873["status"](-278 * 1 + -2518 * -1 + -40 * 46)["send"](_0x27ae80["YyBSS"]);
462
+ }, _0x47bd50 = async (_0x59f307, _0x5d1cdd) => {
463
+ const _0x14a9e9 = _0x10ed51, _0x3a03d2 = _0x10ed51;
464
+ if (_0x27ae80["AnoSh"](_0x59f307[_0x14a9e9(307)], _0x14a9e9(298))) await _0x27ae80["mdBiE"](_0x2d9b97, _0x59f307, _0x5d1cdd);
465
+ else _0x27ae80["AnoSh"](_0x59f307[_0x3a03d2(307)], _0x27ae80[_0x14a9e9(252)]) || _0x27ae80[_0x14a9e9(225)](_0x59f307["method"], _0x27ae80["KAWWw"]) ? await _0x27ae80["jUMck"](_0xc127e6, _0x59f307, _0x5d1cdd) : await _0x27ae80["NRZGd"](_0x24b013, _0x5d1cdd);
466
+ }, _0x24b013 = async (_0x225e8b) => {
467
+ const _0x22c98f = _0x2c8df3, _0x3b1bca = _0x2c8df3, _0x23adaf = {};
468
+ _0x23adaf["Allow"] = _0x27ae80[_0x22c98f(232)];
469
+ const _0xf34ff1 = {};
470
+ _0xf34ff1["jsonrpc"] = _0x27ae80["OROrH"], _0xf34ff1[_0x3b1bca(270)] = {}, _0xf34ff1["id"] = null, _0xf34ff1[_0x3b1bca(270)]["code"] = -32e3, _0xf34ff1[_0x3b1bca(270)]["message"] = _0x27ae80["vpkus"], _0x225e8b["writeHead"](-922 * -6 + -9959 + 4832, _0x23adaf)["end"](JSON[_0x3b1bca(276)](_0xf34ff1));
471
+ }, _0xc127e6 = async (_0x2e5a96, _0x58719e) => {
472
+ const _0x1d3d1a = _0x10ed51, _0x431f88 = _0x2c8df3, _0x4788ad = _0x2e5a96["headers"][_0x27ae80[_0x1d3d1a(302)]], _0x25827e = _0xac406f[_0x4788ad];
473
+ _0x25827e ? (await _0x25827e[_0x431f88(246)](_0x2e5a96, _0x58719e), _0x27ae80[_0x431f88(225)](_0x2e5a96["method"], _0x27ae80[_0x1d3d1a(293)]) && (delete _0xac406f[_0x4788ad], delete _0x26f6c8[_0x4788ad])) : _0x58719e["status"](-847 * -1 + -99 * 6 + 147)[_0x431f88(271)](_0x27ae80[_0x1d3d1a(256)]);
474
+ }, _0x2d9b97 = async (_0x591974, _0x3fadaa) => {
475
+ const _0x3206b1 = _0x10ed51, _0x480c5e = _0x2c8df3, _0x4841ce = _0x591974[_0x3206b1(230)][_0x27ae80["Ttxfb"]], _0x35c693 = _0x591974["headers"][_0x27ae80[_0x480c5e(261)]];
476
+ let _0x237403 = _0xac406f[_0x4841ce];
477
+ if (_0x237403) await _0x237403["handleRequest"](_0x591974, _0x3fadaa, _0x591974["body"]);
430
478
  else {
431
- if (!_0x5ad0a6 && _0x566335[_0x4e1dfa(221)](isInitializeRequest, _0x451f8f["body"])) {
432
- const _0x394e77 = {};
433
- _0x394e77[_0x4478ed(154)] = () => _0x8c5dcd, _0x3a6c34 = new StreamableHTTPServerTransport(_0x394e77);
434
- const _0x2155cf = {};
435
- _0x2155cf["listChanged"] = !![];
436
- const _0x59fd45 = {};
437
- _0x59fd45["subscribe"] = !![], _0x59fd45["listChanged"] = !![];
438
- const _0x1290b4 = {};
439
- _0x1290b4[_0x4478ed(144)] = !![];
440
- const _0x3c950c = {};
441
- _0x3c950c["listChanged"] = !![];
442
- const _0x28fa00 = {};
443
- _0x28fa00["prompts"] = _0x2155cf, _0x28fa00["resources"] = _0x59fd45, _0x28fa00["tools"] = _0x1290b4, _0x28fa00[_0x4e1dfa(230)] = {}, _0x28fa00[_0x4478ed(234)] = {}, _0x28fa00[_0x4478ed(135)] = _0x3c950c, _0x28fa00[_0x4478ed(164)] = {};
444
- const _0x26004c = _0x28fa00, _0x30b87b = {};
445
- _0x30b87b["name"] = _0x566335[_0x4478ed(178)], _0x30b87b["version"] = "1.0.0";
446
- const _0x4ea34d = {};
447
- _0x4ea34d["capabilities"] = _0x26004c;
448
- const _0x3966c6 = new Client(_0x30b87b, _0x4ea34d);
449
- _0x566335[_0x4e1dfa(242)](initTwinClientHandler, _0x3966c6, _0x3a6c34), _0x130e04[_0x8c5dcd] = { "client": _0x3966c6, "transport": _0x3a6c34, "user": _0x451f8f["user"], "device": _0x566335["JmLFZ"](getDeviceInfo, _0x451f8f), "type": _0x566335["tCsji"] }, _0x5f4037[_0x8c5dcd] = _0x3a6c34, _0x3a6c34["sessionId"] = _0x8c5dcd, await _0x3966c6[_0x4e1dfa(210)](_0x3a6c34), await _0x3a6c34["handleRequest"](_0x451f8f, _0x51a481, _0x451f8f[_0x4e1dfa(216)]);
479
+ if (!_0x4841ce && _0x27ae80[_0x3206b1(211)](isInitializeRequest, _0x591974["body"])) {
480
+ const _0xa3a504 = {};
481
+ _0xa3a504["sessionIdGenerator"] = () => _0x35c693, _0x237403 = new StreamableHTTPServerTransport(_0xa3a504);
482
+ const _0x997047 = {};
483
+ _0x997047["listChanged"] = !![];
484
+ const _0x524b44 = {};
485
+ _0x524b44[_0x480c5e(285)] = !![], _0x524b44[_0x480c5e(224)] = !![];
486
+ const _0x4d5035 = {};
487
+ _0x4d5035["listChanged"] = !![];
488
+ const _0x2b2cc3 = {};
489
+ _0x2b2cc3[_0x480c5e(224)] = !![];
490
+ const _0x3563eb = {};
491
+ _0x3563eb["prompts"] = _0x997047, _0x3563eb[_0x480c5e(304)] = _0x524b44, _0x3563eb["tools"] = _0x4d5035, _0x3563eb[_0x3206b1(292)] = {}, _0x3563eb[_0x3206b1(229)] = {}, _0x3563eb["roots"] = _0x2b2cc3, _0x3563eb[_0x480c5e(240)] = {};
492
+ const _0x1ce703 = _0x3563eb, _0xd2c912 = {};
493
+ _0xd2c912["name"] = _0x27ae80["nBVZs"], _0xd2c912["version"] = _0x27ae80[_0x480c5e(262)];
494
+ const _0x192f3 = {};
495
+ _0x192f3[_0x3206b1(274)] = _0x1ce703;
496
+ const _0x40559c = new Client(_0xd2c912, _0x192f3);
497
+ _0x27ae80[_0x3206b1(257)](initTwinClientHandler, _0x40559c, _0x237403), _0x26f6c8[_0x35c693] = { "client": _0x40559c, "transport": _0x237403, "user": _0x591974[_0x480c5e(244)], "device": _0x27ae80[_0x3206b1(264)](getDeviceInfo, _0x591974), "type": "StreamableHTTP" }, _0xac406f[_0x35c693] = _0x237403, _0x237403[_0x480c5e(277)] = _0x35c693, await _0x40559c[_0x480c5e(269)](_0x237403), await _0x237403["handleRequest"](_0x591974, _0x3fadaa, _0x591974[_0x3206b1(238)]);
450
498
  } else {
451
- const _0x2f8e40 = {};
452
- _0x2f8e40[_0x4478ed(146)] = _0x566335[_0x4478ed(197)], _0x2f8e40[_0x4e1dfa(250)] = {}, _0x2f8e40["id"] = null, _0x2f8e40[_0x4e1dfa(250)]["code"] = -32e3, _0x2f8e40[_0x4e1dfa(250)][_0x4478ed(209)] = _0x566335["onfer"], _0x51a481["status"](-3935 + -8137 * 1 + 12472)["json"](_0x2f8e40);
499
+ const _0x1f8bf6 = {};
500
+ _0x1f8bf6[_0x3206b1(275)] = -32e3, _0x1f8bf6["message"] = "Bad Request: No valid session ID provided";
501
+ const _0x209c4f = {};
502
+ _0x209c4f[_0x480c5e(306)] = _0x480c5e(296), _0x209c4f["error"] = _0x1f8bf6, _0x209c4f["id"] = null, _0x3fadaa[_0x3206b1(259)](1292 + 79 * 9 + 1603 * -1)[_0x3206b1(223)](_0x209c4f);
453
503
  }
454
504
  }
455
- }, _0x5d81a5 = async (_0x2d138a, _0x267ed7) => {
456
- const _0x20f1ed = _0x2877e0, _0x548511 = _0x2877e0;
457
- if (_0x566335[_0x20f1ed(185)](_0x2d138a[_0x548511(191)], _0x566335[_0x20f1ed(175)])) await _0x566335["cpwBy"](_0x31e5c3, _0x2d138a, _0x267ed7);
458
- else _0x566335[_0x20f1ed(229)](_0x2d138a[_0x548511(191)], _0x566335[_0x20f1ed(202)]) || _0x566335[_0x20f1ed(172)](_0x2d138a["method"], _0x566335["PUkSC"]) ? await _0x566335[_0x20f1ed(242)](_0x107ceb, _0x2d138a, _0x267ed7) : await _0x2a7436(_0x267ed7);
459
- }, _0x107ceb = async (_0x437933, _0x2dcf3a) => {
460
- const _0x237d7b = _0x227aba, _0x447725 = _0x227aba, _0x1a4c38 = _0x437933["headers"][_0x566335["WIEwH"]], _0x304297 = _0x138423[_0x1a4c38];
461
- _0x304297 ? (await _0x304297[_0x237d7b(166)](_0x437933, _0x2dcf3a), _0x566335["uhJyG"](_0x437933[_0x447725(191)], _0x566335["PUkSC"]) && (delete _0x138423[_0x1a4c38], delete _0x4cfec6[_0x1a4c38])) : _0x2dcf3a[_0x447725(151)](-69 * -123 + -3 * 487 + -2 * 3313)["send"](_0x566335[_0x447725(179)]);
462
- }, _0x31e5c3 = async (_0x505691, _0x19b530) => {
505
+ }, _0x1ff718 = async (_0xb40392, _0x50eef5) => {
506
+ const _0x163c94 = _0x10ed51, _0x2e01e8 = _0x10ed51;
507
+ if (_0x27ae80[_0x163c94(217)](_0xb40392[_0x2e01e8(307)], _0x27ae80[_0x163c94(279)])) await _0x27ae80["VPByF"](_0x271ac2, _0xb40392, _0x50eef5);
508
+ else _0xb40392[_0x163c94(307)] === _0x27ae80["nlZUx"] || _0x27ae80[_0x2e01e8(245)](_0xb40392[_0x2e01e8(307)], _0x27ae80[_0x163c94(293)]) ? await _0x27ae80[_0x163c94(243)](_0x223ac0, _0xb40392, _0x50eef5) : await _0x27ae80[_0x163c94(264)](_0x24b013, _0x50eef5);
509
+ }, _0x223ac0 = async (_0x5872dd, _0x42fcc7) => {
510
+ const _0x3061c3 = _0x10ed51, _0x573299 = _0x2c8df3, _0x5f1ad5 = _0x5872dd[_0x3061c3(230)]["mcp-session-id"], _0x5bacd2 = _0x5c96cf[_0x5f1ad5];
511
+ _0x5bacd2 ? (await _0x5bacd2[_0x3061c3(246)](_0x5872dd, _0x42fcc7), _0x27ae80[_0x3061c3(233)](_0x5872dd["method"], _0x27ae80[_0x573299(293)]) && (delete _0x5c96cf[_0x5f1ad5], delete _0x439b01[_0x5f1ad5])) : _0x42fcc7[_0x573299(259)](-9524 + -8556 + 18480)["send"](_0x27ae80[_0x573299(256)]);
512
+ }, _0x271ac2 = async (_0x3fa36c, _0x2ac443) => {
463
513
  var _a;
464
- const _0x1c273b = _0x2877e0, _0x33fd89 = _0x227aba, _0x475f1c = _0x505691["headers"]["mcp-session-id"], _0x415256 = _0x505691[_0x1c273b(159)]["sessionId"];
465
- let _0x1f3cb5 = _0x138423[_0x475f1c];
466
- if (_0x1f3cb5) await _0x1f3cb5[_0x33fd89(166)](_0x505691, _0x19b530, _0x505691[_0x33fd89(216)]);
514
+ const _0x979548 = _0x2c8df3, _0x569953 = _0x10ed51, _0x3c7155 = _0x3fa36c[_0x979548(230)][_0x27ae80["Ttxfb"]], _0x20d991 = _0x3fa36c[_0x569953(305)]["sessionId"];
515
+ let _0x20d75e = _0x5c96cf[_0x3c7155];
516
+ if (_0x20d75e) await _0x20d75e["handleRequest"](_0x3fa36c, _0x2ac443, _0x3fa36c["body"]);
467
517
  else {
468
- if (!_0x475f1c && _0x566335["JmLFZ"](isInitializeRequest, _0x505691[_0x1c273b(216)])) {
469
- const _0x432efd = (_a = _0x130e04[_0x415256]) == null ? void 0 : _a["client"];
470
- if (!_0x432efd) {
471
- _0x19b530["status"](-6314 + 2447 + 4267)[_0x1c273b(204)](_0x1c273b(222) + _0x415256);
518
+ if (!_0x3c7155 && _0x27ae80["NRZGd"](isInitializeRequest, _0x3fa36c[_0x569953(238)])) {
519
+ const _0x294415 = (_a = _0x26f6c8[_0x20d991]) == null ? void 0 : _a["client"];
520
+ if (!_0x294415) {
521
+ _0x2ac443["status"](-7167 * -1 + -2607 + -5 * 832)[_0x569953(271)](_0x569953(309) + _0x20d991);
472
522
  return;
473
523
  }
474
- const _0x4d8e86 = crypto[_0x33fd89(173)](), _0x50f823 = {};
475
- _0x50f823[_0x1c273b(154)] = () => _0x4d8e86, _0x1f3cb5 = new StreamableHTTPServerTransport(_0x50f823);
476
- const _0x45e990 = {};
477
- _0x45e990[_0x33fd89(144)] = !![];
478
- const _0x98f500 = {};
479
- _0x98f500[_0x1c273b(231)] = !![], _0x98f500[_0x33fd89(144)] = !![];
480
- const _0x17f1a9 = {};
481
- _0x17f1a9[_0x33fd89(144)] = !![];
482
- const _0x2e0d39 = {};
483
- _0x2e0d39["prompts"] = _0x45e990, _0x2e0d39[_0x1c273b(162)] = _0x98f500, _0x2e0d39["tools"] = _0x17f1a9, _0x2e0d39["completions"] = {}, _0x2e0d39[_0x1c273b(234)] = {};
484
- const _0x22c228 = _0x2e0d39, _0x393618 = {};
485
- _0x393618[_0x1c273b(235)] = _0x566335["CgpwU"], _0x393618["version"] = _0x566335[_0x33fd89(247)];
486
- const _0x1291d3 = {};
487
- _0x1291d3["capabilities"] = _0x22c228;
488
- const _0x4af540 = new McpServer(_0x393618, _0x1291d3);
489
- _0x4cfec6[_0x4d8e86] = { "mcpServer": _0x4af540, "transport": _0x1f3cb5, "client": _0x415256, "user": _0x505691[_0x1c273b(195)], "device": _0x566335[_0x33fd89(137)](getDeviceInfo, _0x505691), "type": _0x566335["tCsji"] }, _0x138423[_0x4d8e86] = _0x1f3cb5, _0x1f3cb5["sessionId"] = _0x4d8e86, await _0x4af540["connect"](_0x1f3cb5), forwardProxyServer(_0x4af540[_0x33fd89(240)], _0x432efd), await _0x1f3cb5["handleRequest"](_0x505691, _0x19b530, _0x505691[_0x1c273b(216)]);
524
+ const _0x50b49a = _0x27ae80[_0x569953(221)](generateUUID), _0x3f616e = {};
525
+ _0x3f616e[_0x569953(216)] = () => _0x50b49a, _0x20d75e = new StreamableHTTPServerTransport(_0x3f616e);
526
+ const _0x42665d = {};
527
+ _0x42665d[_0x569953(224)] = !![];
528
+ const _0x426993 = {};
529
+ _0x426993["subscribe"] = !![], _0x426993["listChanged"] = !![];
530
+ const _0x54d53c = {};
531
+ _0x54d53c[_0x569953(224)] = !![];
532
+ const _0x39a81a = {};
533
+ _0x39a81a[_0x569953(281)] = _0x42665d, _0x39a81a[_0x979548(304)] = _0x426993, _0x39a81a["tools"] = _0x54d53c, _0x39a81a[_0x569953(292)] = {}, _0x39a81a["logging"] = {};
534
+ const _0x5f45d0 = _0x39a81a, _0x1be9c4 = {};
535
+ _0x1be9c4[_0x979548(241)] = _0x27ae80["jVcqg"], _0x1be9c4[_0x979548(214)] = _0x569953(295);
536
+ const _0x4a076b = {};
537
+ _0x4a076b["capabilities"] = _0x5f45d0;
538
+ const _0x3952a6 = new McpServer(_0x1be9c4, _0x4a076b);
539
+ _0x439b01[_0x50b49a] = { "mcpServer": _0x3952a6, "transport": _0x20d75e, "client": _0x20d991, "user": _0x3fa36c["user"], "device": _0x27ae80[_0x569953(264)](getDeviceInfo, _0x3fa36c), "type": _0x27ae80["ZydXC"] }, _0x5c96cf[_0x50b49a] = _0x20d75e, _0x20d75e["sessionId"] = _0x50b49a, await _0x3952a6[_0x569953(269)](_0x20d75e), _0x27ae80["jdfdF"](forwardProxyServer, _0x3952a6["server"], _0x294415), await _0x20d75e[_0x979548(246)](_0x3fa36c, _0x2ac443, _0x3fa36c[_0x569953(238)]);
490
540
  } else {
491
- const _0x34725d = {};
492
- _0x34725d[_0x33fd89(146)] = _0x566335[_0x33fd89(197)], _0x34725d[_0x1c273b(250)] = {}, _0x34725d["id"] = null, _0x34725d[_0x1c273b(250)][_0x33fd89(156)] = -32e3, _0x34725d[_0x1c273b(250)]["message"] = _0x566335["onfer"], _0x19b530["status"](1210 * -3 + 1555 + 2475)["json"](_0x34725d);
541
+ const _0xdebaa6 = {};
542
+ _0xdebaa6[_0x569953(275)] = -32e3, _0xdebaa6[_0x569953(301)] = _0x979548(258);
543
+ const _0x26b01c = {};
544
+ _0x26b01c["jsonrpc"] = _0x979548(296), _0x26b01c["error"] = _0xdebaa6, _0x26b01c["id"] = null, _0x2ac443[_0x569953(259)](43 * 12 + -9751 + 9635)["json"](_0x26b01c);
493
545
  }
494
546
  }
495
- }, _0x2bf458 = () => {
496
- const _0x3f2c1e = _0x227aba, _0x24a17a = _0x227aba;
547
+ }, _0x29a70d = () => {
548
+ const _0x4d603b = _0x10ed51, _0x26bbc5 = _0x2c8df3;
497
549
  try {
498
- Object["values"](_0x5f4037)[_0x3f2c1e(139)]((_0x1c336c) => _0x1c336c[_0x24a17a(169)]()), Object[_0x3f2c1e(152)](_0x138423)["forEach"]((_0x210f98) => _0x210f98[_0x24a17a(169)]()), Object["values"](_0x130e04)["forEach"]((_0x544f4d) => _0x544f4d[_0x24a17a(226)][_0x24a17a(169)]()), Object[_0x24a17a(152)](_0x4cfec6)["forEach"]((_0x24c2c4) => _0x24c2c4[_0x24a17a(148)]["close"]());
550
+ Object[_0x4d603b(247)](_0xac406f)[_0x26bbc5(303)]((_0x22241c) => _0x22241c[_0x26bbc5(265)]()), Object[_0x4d603b(247)](_0x5c96cf)[_0x4d603b(303)]((_0xf4a269) => _0xf4a269[_0x4d603b(265)]()), Object["values"](_0x26f6c8)["forEach"]((_0x3add1e) => _0x3add1e[_0x26bbc5(300)][_0x26bbc5(265)]()), Object[_0x26bbc5(247)](_0x439b01)["forEach"]((_0x25fdae) => _0x25fdae["mcpServer"][_0x26bbc5(265)]());
499
551
  } catch {
500
552
  }
501
553
  try {
502
- Object["keys"](_0x5f4037)["forEach"]((_0x22ab2b) => delete _0x5f4037[_0x22ab2b]), Object[_0x3f2c1e(186)](_0x138423)["forEach"]((_0x4aa6fa) => delete _0x138423[_0x4aa6fa]), Object["keys"](_0x130e04)["forEach"]((_0x470344) => delete _0x130e04[_0x470344]), Object[_0x24a17a(186)](_0x4cfec6)[_0x3f2c1e(139)]((_0x13572c) => delete _0x4cfec6[_0x13572c]);
554
+ Object[_0x26bbc5(290)](_0xac406f)[_0x26bbc5(303)]((_0x9636f1) => delete _0xac406f[_0x9636f1]), Object[_0x26bbc5(290)](_0x5c96cf)["forEach"]((_0x1c1831) => delete _0x5c96cf[_0x1c1831]), Object["keys"](_0x26f6c8)[_0x4d603b(303)]((_0x5de56f) => delete _0x26f6c8[_0x5de56f]), Object["keys"](_0x439b01)[_0x26bbc5(303)]((_0x463f79) => delete _0x439b01[_0x463f79]);
503
555
  } catch {
504
556
  }
505
- }, _0x24af82 = {};
506
- return _0x24af82[_0x2877e0(251)] = _0x48b8be, _0x24af82["handleSseInspector"] = _0x39b6c4, _0x24af82[_0x227aba(150)] = _0x1a4921, _0x24af82[_0x227aba(232)] = _0xaf616d, _0x24af82["handleStreamInspector"] = _0x5d81a5, _0x24af82["clients"] = _0x130e04, _0x24af82["remoters"] = _0x4cfec6, _0x24af82[_0x2877e0(167)] = _0x2bf458, _0x24af82;
557
+ }, _0x5e7398 = {};
558
+ return _0x5e7398[_0x10ed51(278)] = _0x5ae4e6, _0x5e7398["handleSseInspector"] = _0x8d2fb6, _0x5e7398["handleSseMessage"] = _0x1e7708, _0x5e7398["handleStreamRequest"] = _0x47bd50, _0x5e7398[_0x2c8df3(273)] = _0x1ff718, _0x5e7398["clients"] = _0x26f6c8, _0x5e7398[_0x2c8df3(239)] = _0x439b01, _0x5e7398[_0x10ed51(218)] = _0x29a70d, _0x5e7398;
507
559
  };
508
560
  export {
509
561
  auth,