@opentiny/agent 0.3.1 → 0.3.3

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/index.d.ts +32 -5
  2. package/index.js +874 -737
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,952 +1,1087 @@
1
- import _0xb6e97a from "jsonwebtoken";
1
+ import _0x55456e 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
- import { EmptyResultSchema, ElicitResultSchema, CreateMessageResultSchema, ListRootsResultSchema, isInitializeRequest } from "@modelcontextprotocol/sdk/types.js";
7
- import _0x3ff0bd from "cors";
8
- import _0x3b4ea9 from "express";
6
+ import { JSONRPCMessageSchema, EmptyResultSchema, ElicitResultSchema, CreateMessageResultSchema, ListRootsResultSchema, isInitializeRequest } from "@modelcontextprotocol/sdk/types.js";
7
+ import _0xafee6b from "cors";
8
+ import _0xec42e8 from "express";
9
9
  import { getOAuthProtectedResourceMetadataUrl, createOAuthMetadata, mcpAuthRouter } from "@modelcontextprotocol/sdk/server/auth/router.js";
10
10
  import { checkResourceAllowed } from "@modelcontextprotocol/sdk/shared/auth-utils.js";
11
11
  import { requireBearerAuth } from "@modelcontextprotocol/sdk/server/auth/middleware/bearerAuth.js";
12
12
  import { allowedMethods } from "@modelcontextprotocol/sdk/server/auth/middleware/allowedMethods.js";
13
13
  import { InvalidGrantError, InvalidTokenError } from "@modelcontextprotocol/sdk/server/auth/errors.js";
14
- function _0x47e3(_0x5f4b98, _0x5afdf9) {
15
- const _0x40e224 = _0xd45d();
16
- return _0x47e3 = function(_0x104d66, _0x4576ae) {
17
- _0x104d66 = _0x104d66 - (9648 + -43 * -2 + -9426);
18
- let _0x15d074 = _0x40e224[_0x104d66];
19
- return _0x15d074;
20
- }, _0x47e3(_0x5f4b98, _0x5afdf9);
14
+ const _0x57ef6f = _0x3a81;
15
+ (function(_0x14843e, _0x5069fd) {
16
+ const _0x38c567 = _0x3a81, _0x43b791 = _0x3a81, _0x4dbc6f = _0x14843e();
17
+ while (!![]) {
18
+ try {
19
+ const _0x2b32ea = parseInt(_0x38c567(489)) / (-4828 + -13 * -12 + 4673) + parseInt(_0x38c567(496)) / (1097 * 2 + -121 * 1 + -19 * 109) + parseInt(_0x38c567(498)) / (3 * -2081 + 18 * 159 + 3384) + parseInt(_0x43b791(497)) / (-5709 + -77 + 5790) * (-parseInt(_0x38c567(506)) / (-6556 + -14 * -189 + 9 * 435)) + parseInt(_0x38c567(505)) / (1 * -3719 + -7209 + -71 * -154) + parseInt(_0x43b791(486)) / (-1 * -1957 + 7849 + -9799) * (parseInt(_0x38c567(504)) / (4784 + 8582 + -13358)) + -parseInt(_0x38c567(495)) / (2460 + 2 * 822 + -4095);
20
+ if (_0x2b32ea === _0x5069fd) break;
21
+ else _0x4dbc6f["push"](_0x4dbc6f["shift"]());
22
+ } catch (_0x37a7dd) {
23
+ _0x4dbc6f["push"](_0x4dbc6f["shift"]());
24
+ }
25
+ }
26
+ })(_0x3d3a, 455039 + 1 * 62630 + 26374);
27
+ function _0x3a81(_0x574125, _0x431b73) {
28
+ const _0x10c871 = _0x3d3a();
29
+ return _0x3a81 = function(_0x17836e, _0x1efeb7) {
30
+ _0x17836e = _0x17836e - (5 * 78 + -7411 + 7507);
31
+ let _0x21f0fc = _0x10c871[_0x17836e];
32
+ return _0x21f0fc;
33
+ }, _0x3a81(_0x574125, _0x431b73);
34
+ }
35
+ function _0x3d3a() {
36
+ const _0x1753f6 = ["5IPOFFa", "798WVzKmk", "message", "send", "1003048CrcRiX", "toString", "close", "onerror", "FWfnP", "vkfvw", "24638427mIoURR", "1794792xxYZSS", "333176JjQIRT", "2016036NHXzDh", "nmmli", "protocol", "_socket", "mcp", "error", "55536eLxIwF", "6576faqCII"];
37
+ _0x3d3a = function() {
38
+ return _0x1753f6;
39
+ };
40
+ return _0x3d3a();
41
+ }
42
+ const SUBPROTOCOL = _0x57ef6f(502);
43
+ class WebSocketServerTransport {
44
+ constructor(_0x289e8d) {
45
+ this["_socket"] = _0x289e8d;
46
+ }
47
+ async ["start"]() {
48
+ const _0x55d8bf = _0x57ef6f, _0x348a49 = _0x57ef6f, _0x43fe65 = {};
49
+ _0x43fe65[_0x55d8bf(494)] = "Unsupported websocket subprotocol", _0x43fe65[_0x348a49(493)] = _0x348a49(503);
50
+ const _0x330ecf = _0x43fe65;
51
+ if (!this["_socket"]) return;
52
+ if (this[_0x348a49(501)][_0x55d8bf(500)] !== SUBPROTOCOL) {
53
+ this[_0x348a49(501)]["close"](4475 * -2 + 9471 * -1 + -19423 * -1, _0x330ecf[_0x55d8bf(494)]);
54
+ return;
55
+ }
56
+ this["_socket"]["on"](_0x330ecf[_0x55d8bf(493)], (_0x5ca3d6) => {
57
+ var _a;
58
+ const _0x583d7f = _0x55d8bf;
59
+ (_a = this[_0x583d7f(492)]) == null ? void 0 : _a.call(this, _0x5ca3d6);
60
+ }), this["_socket"]["on"]("close", () => {
61
+ var _a;
62
+ this["_socket"] = void 0, (_a = this["onclose"]) == null ? void 0 : _a.call(this);
63
+ }), this["_socket"]["on"](_0x55d8bf(487), (_0x5a85e3) => {
64
+ var _a, _b;
65
+ const _0x2abeb7 = _0x348a49, _0x27308b = _0x55d8bf;
66
+ let _0x542de8;
67
+ try {
68
+ _0x542de8 = JSONRPCMessageSchema["parse"](JSON["parse"](_0x5a85e3[_0x2abeb7(490)]()));
69
+ } catch (_0x29ca21) {
70
+ (_a = this[_0x27308b(492)]) == null ? void 0 : _a.call(this, _0x29ca21);
71
+ return;
72
+ }
73
+ (_b = this["onmessage"]) == null ? void 0 : _b.call(this, _0x542de8);
74
+ });
75
+ }
76
+ async [_0x57ef6f(491)]() {
77
+ var _a;
78
+ (_a = this["_socket"]) == null ? void 0 : _a["close"]();
79
+ }
80
+ [_0x57ef6f(488)](_0x42fe5b) {
81
+ const _0x4b6d2a = { "nmmli": function(_0x50888e, _0x5b4aa9) {
82
+ return _0x50888e(_0x5b4aa9);
83
+ }, "SYuIv": "Not connected", "PXqmr": function(_0x222499) {
84
+ return _0x222499();
85
+ } };
86
+ return new Promise((_0x186d95, _0xeb75f9) => {
87
+ var _a;
88
+ const _0x42764d = _0x3a81;
89
+ if (!this["_socket"]) {
90
+ _0x4b6d2a[_0x42764d(499)](_0xeb75f9, new Error(_0x4b6d2a["SYuIv"]));
91
+ return;
92
+ }
93
+ (_a = this[_0x42764d(501)]) == null ? void 0 : _a["send"](JSON["stringify"](_0x42fe5b)), _0x4b6d2a["PXqmr"](_0x186d95);
94
+ });
95
+ }
21
96
  }
22
- (function(_0x2766de, _0x4745f6) {
23
- const _0x4d4689 = _0x47e3, _0x27c1f6 = _0x47e3, _0x408001 = _0x2766de();
97
+ function _0x2983() {
98
+ const _0x49ac59 = ["name", "clearRequestListener", "GrPty", "setLoggingLevel", "function", "listResources", "YAaae", "hRKkR", "qgcOc", "push", "QJDCY", "elicitation/create", "6209840ieICTt", "level", "JtpyX", "subscribeResource", "HIaTT", "fallbackRequestHandler", "originalOnResponse", "19342SbDDId", "resources/list", "method", "WMwKc", "ReZfj", "CYqhf", "kzqbq", "addResponseListener", "kvcMm", "fallbackNotificationHandler", "hRqHE", "indexOf", "2.0", "clear", "83xNYRqH", "_notificationHandlers", "tools/list", "_onresponse", "code", "gMTWu", "9JldXZB", "4776750ybOOUk", "mnnBm", "initialize", "22nuklNJ", "send", "completion/complete", "splice", "Nqqnp", "eUyqE", "error", "params", "logging/setLevel", "message", "ROeTW", "handleListener", "zWzUq", "8834248gJshOB", "call", "result", "wfyMt", "_onnotification", "25vCaUtg", "transport", "data", "_onrequest", "339356eFMciq", "jsonrpc", "JAhfk", "ping", "otKXF", "1520370ocQwgt", "onerror", "readResource", "SnMEh", "AJTeD", "3500400jFDPbK", "removeResponseListener", "aUVsM", "removeRequestListener", "LsKal", "request", "notifications/cancelled", "voZyw", "vRhZk"];
99
+ _0x2983 = function() {
100
+ return _0x49ac59;
101
+ };
102
+ return _0x2983();
103
+ }
104
+ (function(_0x4bc357, _0x293c93) {
105
+ const _0x300a52 = _0x593e, _0x4ff2cb = _0x593e, _0x148e6d = _0x4bc357();
24
106
  while (!![]) {
25
107
  try {
26
- const _0x4f0545 = -parseInt(_0x4d4689(316)) / (8404 + 121 * 74 + -17357) * (-parseInt(_0x4d4689(387)) / (5914 + 4737 + -10649 * 1)) + parseInt(_0x27c1f6(360)) / (2916 + 17 * 36 + -3525) + -parseInt(_0x27c1f6(358)) / (2 * -4429 + 6245 + -2617 * -1) + parseInt(_0x27c1f6(382)) / (-107 * -61 + 3943 + 35 * -299) * (-parseInt(_0x27c1f6(318)) / (53 * -17 + 643 * 11 + -1 * 6166)) + parseInt(_0x27c1f6(385)) / (-2273 + 2936 + -1 * 656) * (parseInt(_0x27c1f6(323)) / (-7 * -229 + -1 * 9799 + 8204)) + parseInt(_0x27c1f6(335)) / (1974 + -1 * -4231 + -6196) * (parseInt(_0x27c1f6(339)) / (835 * 5 + 1 * 7916 + -12081)) + -parseInt(_0x4d4689(343)) / (-1 * -5729 + -1 * 7025 + 1307);
27
- if (_0x4f0545 === _0x4745f6) break;
28
- else _0x408001["push"](_0x408001["shift"]());
29
- } catch (_0x231e11) {
30
- _0x408001["push"](_0x408001["shift"]());
108
+ const _0x1f7e14 = -parseInt(_0x300a52(442)) / (1006 * 8 + -1 * 3083 + -4964) * (-parseInt(_0x4ff2cb(428)) / (-1 * -2011 + 6874 * -1 + 4865)) + -parseInt(_0x4ff2cb(364)) / (861 + -5770 + 1 * 4912) * (-parseInt(_0x4ff2cb(390)) / (5 * -564 + -984 * -8 + -2 * 2524)) + -parseInt(_0x4ff2cb(386)) / (2411 + 8361 + -10767) * (parseInt(_0x4ff2cb(395)) / (-7039 * 1 + -1921 * 4 + 14729)) + parseInt(_0x300a52(421)) / (-8257 * -1 + -8430 + -9 * -20) + -parseInt(_0x4ff2cb(381)) / (7190 + -1 * 8269 + 1087) + parseInt(_0x4ff2cb(365)) / (163 * 10 + 9882 + 11503 * -1) + -parseInt(_0x4ff2cb(400)) / (7843 + -6926 + -907) * (-parseInt(_0x300a52(368)) / (1718 * -3 + 1144 * -3 + 8597));
109
+ if (_0x1f7e14 === _0x293c93) break;
110
+ else _0x148e6d["push"](_0x148e6d["shift"]());
111
+ } catch (_0x42dfdf) {
112
+ _0x148e6d["push"](_0x148e6d["shift"]());
31
113
  }
32
114
  }
33
- })(_0xd45d, 193871 * 1 + -232149 + 605619);
34
- const forwardServerRequest = async (_0x359b10, _0x5f18c3, _0xe94488) => {
115
+ })(_0x2983, -787224 + -102 * -4954 + 1085820);
116
+ const forwardServerRequest = async (_0x824cd1, _0x293ea1, _0x322333) => {
35
117
  var _a;
36
- const _0x1decbb = _0x47e3, _0x289131 = _0x47e3, _0xccc460 = {};
37
- _0xccc460["OhNxi"] = _0x1decbb(377), _0xccc460["ZijeN"] = _0x1decbb(350), _0xccc460[_0x1decbb(375)] = "resources/templates/list", _0xccc460["cqBHj"] = "resources/read", _0xccc460[_0x1decbb(381)] = "resources/subscribe", _0xccc460[_0x1decbb(334)] = _0x1decbb(370), _0xccc460[_0x1decbb(365)] = "prompts/list", _0xccc460["PipzT"] = "ping", _0xccc460["DWWZD"] = _0x289131(366), _0xccc460["bMZEp"] = "logging/setLevel";
38
- const _0x483b74 = _0xccc460, { id: _0x5e5ddf, method: _0x28ec6f, params: _0x40a0f1 } = _0xe94488;
39
- let _0x5820d0 = {};
40
- switch (_0x28ec6f) {
41
- case _0x483b74["OhNxi"]:
42
- _0x5820d0 = await _0x5f18c3[_0x1decbb(344)](_0x40a0f1);
118
+ const _0x1fd413 = _0x593e, _0x3947d4 = _0x593e, _0x18c930 = {};
119
+ _0x18c930[_0x1fd413(404)] = _0x1fd413(444), _0x18c930["nwPVQ"] = "tools/call", _0x18c930["eUyqE"] = _0x1fd413(429), _0x18c930[_0x1fd413(434)] = "resources/templates/list", _0x18c930[_0x3947d4(398)] = "prompts/get", _0x18c930[_0x3947d4(378)] = "prompts/list", _0x18c930["IZjiZ"] = _0x3947d4(376), _0x18c930[_0x1fd413(436)] = "2.0";
120
+ const _0x4b831b = _0x18c930, { id: _0x2fd464, method: _0x142e51, params: _0x5dcbb5 } = _0x322333;
121
+ let _0x2ad8aa = {};
122
+ switch (_0x142e51) {
123
+ case _0x4b831b["LsKal"]:
124
+ _0x2ad8aa = await _0x293ea1["listTools"](_0x5dcbb5);
43
125
  break;
44
- case _0x483b74[_0x289131(310)]:
45
- _0x5820d0 = await _0x5f18c3[_0x1decbb(329)](_0x40a0f1);
126
+ case _0x4b831b["nwPVQ"]:
127
+ _0x2ad8aa = await _0x293ea1["callTool"](_0x5dcbb5);
46
128
  break;
47
- case "resources/list":
48
- _0x5820d0 = await _0x5f18c3[_0x1decbb(357)](_0x40a0f1);
129
+ case _0x4b831b[_0x1fd413(373)]:
130
+ _0x2ad8aa = await _0x293ea1[_0x3947d4(414)](_0x5dcbb5);
49
131
  break;
50
- case _0x483b74["yLRdW"]:
51
- _0x5820d0 = await _0x5f18c3["listResourceTemplates"](_0x40a0f1);
132
+ case _0x4b831b["kzqbq"]:
133
+ _0x2ad8aa = await _0x293ea1["listResourceTemplates"](_0x5dcbb5);
52
134
  break;
53
- case _0x483b74[_0x1decbb(378)]:
54
- _0x5820d0 = await _0x5f18c3["readResource"](_0x40a0f1);
135
+ case "resources/read":
136
+ _0x2ad8aa = await _0x293ea1[_0x3947d4(397)](_0x5dcbb5);
55
137
  break;
56
- case _0x483b74["zxSfQ"]:
57
- _0x5820d0 = await _0x5f18c3["subscribeResource"](_0x40a0f1);
138
+ case "resources/subscribe":
139
+ _0x2ad8aa = await _0x293ea1[_0x3947d4(424)](_0x5dcbb5);
58
140
  break;
59
- case _0x289131(326):
60
- _0x5820d0 = await _0x5f18c3[_0x289131(346)](_0x40a0f1);
141
+ case "resources/unsubscribe":
142
+ _0x2ad8aa = await _0x293ea1["unsubscribeResource"](_0x5dcbb5);
61
143
  break;
62
- case _0x483b74[_0x289131(334)]:
63
- _0x5820d0 = await _0x5f18c3[_0x1decbb(348)](_0x40a0f1);
144
+ case _0x4b831b["SnMEh"]:
145
+ _0x2ad8aa = await _0x293ea1["getPrompt"](_0x5dcbb5);
64
146
  break;
65
- case _0x483b74["qLMuk"]:
66
- _0x5820d0 = await _0x5f18c3[_0x1decbb(362)](_0x40a0f1);
147
+ case _0x4b831b[_0x1fd413(378)]:
148
+ _0x2ad8aa = await _0x293ea1["listPrompts"](_0x5dcbb5);
67
149
  break;
68
- case _0x483b74[_0x289131(352)]:
69
- _0x5820d0 = await _0x5f18c3[_0x289131(351)]();
150
+ case _0x3947d4(393):
151
+ _0x2ad8aa = await _0x293ea1["ping"]();
70
152
  break;
71
- case _0x483b74[_0x1decbb(314)]:
72
- _0x5820d0 = await _0x5f18c3[_0x1decbb(359)](_0x40a0f1);
153
+ case _0x3947d4(370):
154
+ _0x2ad8aa = await _0x293ea1["complete"](_0x5dcbb5);
73
155
  break;
74
- case _0x483b74["bMZEp"]:
75
- _0x5820d0 = await _0x5f18c3["setLoggingLevel"](_0x40a0f1 == null ? void 0 : _0x40a0f1[_0x1decbb(356)]);
156
+ case _0x4b831b["IZjiZ"]:
157
+ _0x2ad8aa = await _0x293ea1[_0x1fd413(412)](_0x5dcbb5 == null ? void 0 : _0x5dcbb5[_0x1fd413(422)]);
76
158
  break;
77
159
  }
78
- const _0x5529c8 = {};
79
- _0x5529c8[_0x1decbb(327)] = _0x5820d0, _0x5529c8["jsonrpc"] = _0x1decbb(373), _0x5529c8["id"] = _0x5e5ddf, await ((_a = _0x359b10 == null ? void 0 : _0x359b10[_0x289131(337)]) == null ? void 0 : _a["send"](_0x5529c8));
80
- }, forwardClientRequest = async (_0x251088, _0x3d1e13, _0x3924fd) => {
160
+ const _0xce4cd2 = {};
161
+ _0xce4cd2[_0x3947d4(383)] = _0x2ad8aa, _0xce4cd2[_0x1fd413(391)] = _0x4b831b[_0x3947d4(436)], _0xce4cd2["id"] = _0x2fd464, await ((_a = _0x824cd1 == null ? void 0 : _0x824cd1[_0x3947d4(387)]) == null ? void 0 : _a[_0x3947d4(369)](_0xce4cd2));
162
+ }, forwardClientRequest = async (_0x1d5176, _0x54c02a, _0x461bf4) => {
81
163
  var _a;
82
- const _0x567dc4 = _0x47e3, _0x280111 = _0x47e3, _0x142a45 = {};
83
- _0x142a45["xDwgD"] = _0x567dc4(379), _0x142a45[_0x280111(331)] = _0x567dc4(351), _0x142a45[_0x280111(333)] = _0x567dc4(373);
84
- const _0x5c974c = _0x142a45, { id: _0x21e6c5, method: _0x208b31, params: _0x4c98b6 } = _0x3924fd;
85
- let _0x2cef6f = {};
86
- switch (_0x208b31) {
87
- case _0x567dc4(341):
88
- const _0x2148b9 = {};
89
- _0x2148b9[_0x280111(330)] = _0x208b31, _0x2148b9[_0x567dc4(372)] = _0x4c98b6, _0x2cef6f = await _0x3d1e13["request"](_0x2148b9, ListRootsResultSchema);
164
+ const _0x36644a = _0x593e, _0x226145 = _0x593e, _0x5bf4de = {};
165
+ _0x5bf4de[_0x36644a(408)] = "roots/list", _0x5bf4de["hRKkR"] = "sampling/createMessage", _0x5bf4de["simWI"] = _0x226145(420), _0x5bf4de["kPDql"] = _0x226145(393), _0x5bf4de[_0x36644a(415)] = _0x36644a(440);
166
+ const _0x28df21 = _0x5bf4de, { id: _0xac7f7, method: _0x33fb33, params: _0x316a73 } = _0x461bf4;
167
+ let _0x3be6a1 = {};
168
+ switch (_0x33fb33) {
169
+ case _0x28df21[_0x226145(408)]:
170
+ const _0x18f9fb = {};
171
+ _0x18f9fb[_0x226145(430)] = _0x33fb33, _0x18f9fb[_0x36644a(375)] = _0x316a73, _0x3be6a1 = await _0x54c02a["request"](_0x18f9fb, ListRootsResultSchema);
90
172
  break;
91
- case _0x280111(367):
92
- const _0x30eedf = {};
93
- _0x30eedf["method"] = _0x208b31, _0x30eedf["params"] = _0x4c98b6, _0x2cef6f = await _0x3d1e13[_0x567dc4(336)](_0x30eedf, CreateMessageResultSchema);
173
+ case _0x28df21[_0x226145(416)]:
174
+ const _0x520f08 = {};
175
+ _0x520f08[_0x226145(430)] = _0x33fb33, _0x520f08[_0x36644a(375)] = _0x316a73, _0x3be6a1 = await _0x54c02a["request"](_0x520f08, CreateMessageResultSchema);
94
176
  break;
95
- case _0x5c974c["xDwgD"]:
96
- const _0x5e0254 = {};
97
- _0x5e0254[_0x567dc4(330)] = _0x208b31, _0x5e0254[_0x567dc4(372)] = _0x4c98b6, _0x2cef6f = await _0x3d1e13["request"](_0x5e0254, ElicitResultSchema);
177
+ case _0x28df21["simWI"]:
178
+ const _0x578ac6 = {};
179
+ _0x578ac6[_0x226145(430)] = _0x33fb33, _0x578ac6[_0x36644a(375)] = _0x316a73, _0x3be6a1 = await _0x54c02a[_0x36644a(405)](_0x578ac6, ElicitResultSchema);
98
180
  break;
99
- case _0x5c974c[_0x567dc4(331)]:
100
- const _0x5b3819 = {};
101
- _0x5b3819[_0x567dc4(330)] = _0x208b31, _0x2cef6f = await _0x3d1e13[_0x567dc4(336)](_0x5b3819, EmptyResultSchema);
181
+ case _0x28df21["kPDql"]:
182
+ const _0x33f7d7 = {};
183
+ _0x33f7d7["method"] = _0x33fb33, _0x3be6a1 = await _0x54c02a["request"](_0x33f7d7, EmptyResultSchema);
102
184
  break;
103
185
  }
104
- const _0x2b003c = {};
105
- return _0x2b003c["result"] = _0x2cef6f, _0x2b003c["jsonrpc"] = _0x5c974c[_0x280111(333)], _0x2b003c["id"] = _0x21e6c5, await ((_a = _0x251088 == null ? void 0 : _0x251088[_0x567dc4(337)]) == null ? void 0 : _a[_0x567dc4(363)](_0x2b003c)), _0x2cef6f;
186
+ const _0x53d8a9 = {};
187
+ return _0x53d8a9[_0x226145(383)] = _0x3be6a1, _0x53d8a9[_0x226145(391)] = _0x28df21[_0x36644a(415)], _0x53d8a9["id"] = _0xac7f7, await ((_a = _0x1d5176 == null ? void 0 : _0x1d5176[_0x36644a(387)]) == null ? void 0 : _a["send"](_0x53d8a9)), _0x3be6a1;
106
188
  };
107
- const forwardServerOnRequest = (_0x531e12, _0x224b82) => {
108
- const _0x3e078d = _0x47e3, _0x109151 = { "NgrBj": function(_0x1abc40, _0x1668fd) {
109
- return _0x1abc40 === _0x1668fd;
110
- }, "tYjTc": function(_0x5e3edc, _0x398d09, _0x3c3226, _0x3c3c28) {
111
- return _0x5e3edc(_0x398d09, _0x3c3226, _0x3c3c28);
112
- } }, _0x1caf22 = _0x531e12["_onrequest"];
113
- _0x531e12[_0x3e078d(361)] = async (_0x285aa8, _0x192f25) => {
189
+ const forwardServerOnRequest = (_0x4cfb3b, _0x4f414d) => {
190
+ const _0x3505bf = _0x593e, _0x39cdb4 = { "voZyw": function(_0x50c207, _0x161783, _0x559c83, _0x33a22f) {
191
+ return _0x50c207(_0x161783, _0x559c83, _0x33a22f);
192
+ }, "Nqqnp": "2.0" }, _0x59b66e = _0x4cfb3b["_onrequest"];
193
+ _0x4cfb3b[_0x3505bf(389)] = async (_0x527a36, _0x4f4ead) => {
114
194
  var _a, _b, _c, _d, _e;
115
- const _0x409c4a = _0x3e078d, _0x379177 = _0x3e078d, { id: _0x59c6e3, method: _0x45ccd7 } = _0x285aa8;
195
+ const _0x3b840f = _0x3505bf, _0x3a4bd6 = _0x3505bf, { id: _0x3161b9, method: _0x176194 } = _0x527a36;
116
196
  try {
117
- _0x109151["NgrBj"](_0x45ccd7, "initialize") ? await _0x1caf22["call"](_0x531e12, _0x285aa8, _0x192f25) : await _0x109151["tYjTc"](forwardServerRequest, _0x531e12, _0x224b82, _0x285aa8);
118
- } catch (_0x2a3c36) {
119
- const { code: _0x24206e, message: _0x488c17, data: _0x5c69b3 } = _0x2a3c36;
197
+ _0x176194 === _0x3b840f(367) ? await _0x59b66e[_0x3a4bd6(382)](_0x4cfb3b, _0x527a36, _0x4f4ead) : await _0x39cdb4[_0x3b840f(407)](forwardServerRequest, _0x4cfb3b, _0x4f414d, _0x527a36);
198
+ } catch (_0x5b52d4) {
199
+ const { code: _0x8d32c8, message: _0x2e23a9, data: _0x5064de } = _0x5b52d4;
120
200
  try {
121
- if (_0x24206e) {
122
- const _0x159b9d = {};
123
- _0x159b9d["code"] = _0x24206e, _0x159b9d["message"] = _0x488c17, _0x159b9d[_0x409c4a(349)] = _0x5c69b3;
124
- const _0x444db2 = {};
125
- _0x444db2["error"] = _0x159b9d, _0x444db2["jsonrpc"] = _0x379177(373), _0x444db2["id"] = _0x59c6e3, await ((_a = _0x531e12 == null ? void 0 : _0x531e12[_0x409c4a(337)]) == null ? void 0 : _a["send"](_0x444db2));
126
- } else (_c = (_b = _0x531e12 == null ? void 0 : _0x531e12["transport"]) == null ? void 0 : _b[_0x409c4a(364)]) == null ? void 0 : _c.call(_b, _0x2a3c36);
127
- } catch (_0x4bb96a) {
128
- (_e = (_d = _0x531e12 == null ? void 0 : _0x531e12[_0x379177(337)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x4bb96a);
201
+ if (_0x8d32c8) {
202
+ const _0x322c6b = {};
203
+ _0x322c6b["code"] = _0x8d32c8, _0x322c6b["message"] = _0x2e23a9, _0x322c6b["data"] = _0x5064de;
204
+ const _0x4ac2b2 = {};
205
+ _0x4ac2b2[_0x3a4bd6(374)] = _0x322c6b, _0x4ac2b2["jsonrpc"] = _0x39cdb4[_0x3a4bd6(372)], _0x4ac2b2["id"] = _0x3161b9, await ((_a = _0x4cfb3b == null ? void 0 : _0x4cfb3b[_0x3a4bd6(387)]) == null ? void 0 : _a[_0x3a4bd6(369)](_0x4ac2b2));
206
+ } else (_c = (_b = _0x4cfb3b == null ? void 0 : _0x4cfb3b["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x5b52d4);
207
+ } catch (_0x14cc28) {
208
+ (_e = (_d = _0x4cfb3b == null ? void 0 : _0x4cfb3b["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x14cc28);
129
209
  }
130
210
  }
131
211
  };
132
212
  };
133
- const forwardServerOnNotification = (_0x2c3695, _0x272f8) => {
134
- const _0x130318 = _0x47e3, _0x2b70e1 = _0x47e3, _0x4b744f = {};
135
- _0x4b744f["iLCeK"] = function(_0x599447, _0x1d0b37) {
136
- return _0x599447 !== _0x1d0b37;
137
- }, _0x4b744f["VnFnZ"] = _0x130318(355), _0x4b744f[_0x2b70e1(354)] = "notifications/cancelled";
138
- const _0x46e763 = _0x4b744f;
139
- _0x2c3695["_onnotification"] = async (_0xdb7ba5) => {
213
+ const forwardServerOnNotification = (_0x1a1c0a, _0x430afd) => {
214
+ const _0x2118c4 = _0x593e, _0x59b5a2 = {};
215
+ _0x59b5a2[_0x2118c4(432)] = function(_0x23c44f, _0x100c82) {
216
+ return _0x23c44f !== _0x100c82;
217
+ }, _0x59b5a2["QJDCY"] = "notifications/initialized", _0x59b5a2[_0x2118c4(438)] = function(_0x19dc64, _0x3deff4) {
218
+ return _0x19dc64 !== _0x3deff4;
219
+ }, _0x59b5a2["WMwKc"] = "notifications/cancelled";
220
+ const _0x21d78a = _0x59b5a2;
221
+ _0x1a1c0a[_0x2118c4(385)] = async (_0xd38b0c) => {
140
222
  var _a, _b;
141
- const _0x588b56 = _0x130318, _0x1f6817 = _0x130318, { method: _0x518ef7, params: _0x38ea22 } = _0xdb7ba5;
142
- if (_0x46e763["iLCeK"](_0x518ef7, _0x46e763["VnFnZ"]) && (_0x518ef7 !== _0x46e763[_0x588b56(354)] || (_0x38ea22 == null ? void 0 : _0x38ea22["forward"]))) try {
143
- await _0x272f8["notification"](_0xdb7ba5);
144
- } catch (_0xdee759) {
145
- (_b = (_a = _0x2c3695 == null ? void 0 : _0x2c3695[_0x1f6817(337)]) == null ? void 0 : _a[_0x1f6817(364)]) == null ? void 0 : _b.call(_a, _0xdee759);
223
+ const _0xab747c = _0x2118c4, _0x17e9d4 = _0x2118c4, { method: _0x27a5d8, params: _0x232adc } = _0xd38b0c;
224
+ if (_0x21d78a[_0xab747c(432)](_0x27a5d8, _0x21d78a[_0xab747c(419)]) && (_0x21d78a["hRqHE"](_0x27a5d8, _0x21d78a[_0xab747c(431)]) || (_0x232adc == null ? void 0 : _0x232adc["forward"]))) try {
225
+ await _0x430afd["notification"](_0xd38b0c);
226
+ } catch (_0x4c1f5b) {
227
+ (_b = (_a = _0x1a1c0a == null ? void 0 : _0x1a1c0a[_0xab747c(387)]) == null ? void 0 : _a[_0x17e9d4(396)]) == null ? void 0 : _b.call(_a, _0x4c1f5b);
146
228
  }
147
229
  };
148
230
  };
149
- const forwardClientOnRequest = (_0x2e765c, _0x40b7cd) => async (_0x5448d5) => {
231
+ const forwardClientOnRequest = (_0x4fb333, _0x32035f) => async (_0x49f7c8) => {
150
232
  var _a, _b, _c, _d, _e;
151
- const _0x3c6fc4 = _0x47e3, _0x200849 = _0x47e3, _0x49cba7 = { "RoSaN": function(_0x578c38, _0x195121, _0x2ef806, _0x2d5641) {
152
- return _0x578c38(_0x195121, _0x2ef806, _0x2d5641);
153
- }, "aFNdj": _0x3c6fc4(373) };
233
+ const _0x552319 = _0x593e, _0x1627a9 = _0x593e, _0x2a8233 = { "rVFpi": function(_0x973069, _0x412ac0, _0x65ab82, _0x546e2f) {
234
+ return _0x973069(_0x412ac0, _0x65ab82, _0x546e2f);
235
+ } };
154
236
  try {
155
- return await _0x49cba7["RoSaN"](forwardClientRequest, _0x2e765c, _0x40b7cd, _0x5448d5);
156
- } catch (_0xb75b03) {
157
- const { code: _0x2c5c92, message: _0x39d839, data: _0x43dcdf } = _0xb75b03;
237
+ return await _0x2a8233["rVFpi"](forwardClientRequest, _0x4fb333, _0x32035f, _0x49f7c8);
238
+ } catch (_0x438e7b) {
239
+ const { code: _0x50c004, message: _0x1ad1a1, data: _0x1dd0b9 } = _0x438e7b;
158
240
  try {
159
- if (_0x2c5c92) {
160
- const _0x251991 = {};
161
- _0x251991[_0x3c6fc4(371)] = _0x2c5c92, _0x251991[_0x200849(322)] = _0x39d839, _0x251991["data"] = _0x43dcdf;
162
- const _0x2c3525 = {};
163
- _0x2c3525["error"] = _0x251991, _0x2c3525[_0x3c6fc4(384)] = _0x49cba7[_0x3c6fc4(338)], _0x2c3525["id"] = _0x5448d5["id"], await ((_a = _0x2e765c == null ? void 0 : _0x2e765c[_0x200849(337)]) == null ? void 0 : _a["send"](_0x2c3525));
164
- } else (_c = (_b = _0x2e765c == null ? void 0 : _0x2e765c[_0x3c6fc4(337)]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0xb75b03);
165
- } catch (_0x254a39) {
166
- (_e = (_d = _0x2e765c == null ? void 0 : _0x2e765c["transport"]) == null ? void 0 : _d[_0x200849(364)]) == null ? void 0 : _e.call(_d, _0x254a39);
241
+ if (_0x50c004) {
242
+ const _0x36560a = {};
243
+ _0x36560a[_0x552319(362)] = _0x50c004, _0x36560a["message"] = _0x1ad1a1, _0x36560a[_0x1627a9(388)] = _0x1dd0b9;
244
+ const _0xbfcc2d = {};
245
+ _0xbfcc2d[_0x552319(374)] = _0x36560a, _0xbfcc2d["jsonrpc"] = "2.0", _0xbfcc2d["id"] = _0x49f7c8["id"], await ((_a = _0x4fb333 == null ? void 0 : _0x4fb333["transport"]) == null ? void 0 : _a[_0x552319(369)](_0xbfcc2d));
246
+ } else (_c = (_b = _0x4fb333 == null ? void 0 : _0x4fb333[_0x1627a9(387)]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x438e7b);
247
+ } catch (_0x146761) {
248
+ (_e = (_d = _0x4fb333 == null ? void 0 : _0x4fb333["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x146761);
167
249
  }
168
250
  }
169
251
  };
170
- const forwardClientOnNotification = (_0x4f21c5, _0x2360c8) => async (_0x130fb7) => {
252
+ const forwardClientOnNotification = (_0x144e33, _0x53a87a) => async (_0x430e72) => {
171
253
  var _a, _b, _c;
172
- const _0x2c782c = _0x47e3, _0x6d9896 = _0x47e3, _0x476b91 = {};
173
- _0x476b91[_0x2c782c(374)] = function(_0x183c5b, _0x594c4f) {
174
- return _0x183c5b !== _0x594c4f;
175
- }, _0x476b91["haUTc"] = _0x2c782c(355), _0x476b91[_0x2c782c(340)] = _0x6d9896(317);
176
- const _0xaedb5c = _0x476b91, { method: _0x15b0ab, params: _0x52bf07 } = _0x130fb7;
177
- if (_0xaedb5c["kykUa"](_0x15b0ab, _0xaedb5c["haUTc"]) && (_0x15b0ab !== _0xaedb5c["pALWP"] || (_0x52bf07 == null ? void 0 : _0x52bf07["forward"]))) try {
178
- const _0x322a81 = { ..._0x130fb7 };
179
- _0x322a81[_0x2c782c(384)] = _0x6d9896(373), await ((_a = _0x2360c8 == null ? void 0 : _0x2360c8["transport"]) == null ? void 0 : _a["send"](_0x322a81));
180
- } catch (_0x3bb6c4) {
181
- (_c = (_b = _0x4f21c5 == null ? void 0 : _0x4f21c5["transport"]) == null ? void 0 : _b[_0x2c782c(364)]) == null ? void 0 : _c.call(_b, _0x3bb6c4);
254
+ const _0x501de3 = _0x593e, _0x52ea1c = _0x593e, _0x1d2190 = {};
255
+ _0x1d2190["qgcOc"] = function(_0x5c6f0e, _0x2a9d21) {
256
+ return _0x5c6f0e !== _0x2a9d21;
257
+ }, _0x1d2190["zWzUq"] = function(_0x41c59b, _0x236867) {
258
+ return _0x41c59b !== _0x236867;
259
+ }, _0x1d2190["KMkci"] = _0x501de3(406), _0x1d2190[_0x501de3(366)] = "2.0";
260
+ const _0x5aa68c = _0x1d2190, { method: _0x4ab0e2, params: _0x4ff384 } = _0x430e72;
261
+ if (_0x5aa68c[_0x501de3(417)](_0x4ab0e2, "notifications/initialized") && (_0x5aa68c[_0x501de3(380)](_0x4ab0e2, _0x5aa68c["KMkci"]) || (_0x4ff384 == null ? void 0 : _0x4ff384["forward"]))) try {
262
+ const _0x1544f1 = { ..._0x430e72 };
263
+ _0x1544f1["jsonrpc"] = _0x5aa68c[_0x501de3(366)], await ((_a = _0x53a87a == null ? void 0 : _0x53a87a["transport"]) == null ? void 0 : _a["send"](_0x1544f1));
264
+ } catch (_0x1b112c) {
265
+ (_c = (_b = _0x144e33 == null ? void 0 : _0x144e33[_0x501de3(387)]) == null ? void 0 : _b[_0x52ea1c(396)]) == null ? void 0 : _c.call(_b, _0x1b112c);
182
266
  }
183
267
  };
184
268
  const createHandleListener = () => {
185
- const _0xddf6fb = _0x47e3, _0x3ab4be = { "QWHjY": function(_0x44fec7, _0x4fe4f5, _0x494e8e) {
186
- return _0x44fec7(_0x4fe4f5, _0x494e8e);
187
- }, "cHNMS": function(_0xdb039c, _0x3ba45b) {
188
- return _0xdb039c !== _0x3ba45b;
189
- }, "BMgEW": function(_0x25baf0, _0x3bb7a6) {
190
- return _0x25baf0(_0x3bb7a6);
191
- }, "LwFMy": function(_0xc7a5dc, _0x349c34) {
192
- return _0xc7a5dc === _0x349c34;
193
- }, "QIdRN": function(_0x2a879e, _0x387755) {
194
- return _0x2a879e !== _0x387755;
195
- } }, _0xad526d = [], _0x16a2ef = (_0x1428aa, _0x31fbce) => {
196
- const _0x3b51a6 = _0x47e3;
197
- if (_0x31fbce) {
198
- const _0x206b80 = [];
199
- for (const _0x1e6d9f of _0xad526d) {
269
+ const _0x377b7b = _0x593e, _0x293df8 = _0x593e, _0x5d1946 = { "HWMPS": function(_0x2b875f, _0x423a45, _0x1c0d9a) {
270
+ return _0x2b875f(_0x423a45, _0x1c0d9a);
271
+ }, "GrPty": function(_0x5e0d16, _0x2762a7) {
272
+ return _0x5e0d16 !== _0x2762a7;
273
+ }, "wfyMt": function(_0x3a6f80, _0x3c1c93) {
274
+ return _0x3a6f80(_0x3c1c93);
275
+ }, "ZrWRI": function(_0x543a2f, _0x5759cd) {
276
+ return _0x543a2f === _0x5759cd;
277
+ }, "otKXF": _0x377b7b(413) }, _0x56aa39 = [], _0x4cf098 = (_0x302121, _0x1039b4) => {
278
+ const _0xe76322 = _0x377b7b;
279
+ if (_0x1039b4) {
280
+ const _0x5b2951 = [];
281
+ for (const _0x4780ef of _0x56aa39) {
200
282
  try {
201
- _0x206b80[_0x3b51a6(328)](_0x3ab4be["QWHjY"](_0x1e6d9f, _0x1428aa, _0x31fbce));
283
+ _0x5b2951["push"](_0x5d1946["HWMPS"](_0x4780ef, _0x302121, _0x1039b4));
202
284
  } catch {
203
285
  }
204
286
  }
205
- for (const _0x2d80ab of _0x206b80) {
206
- if (_0x3ab4be["cHNMS"](_0x2d80ab, null)) return _0x2d80ab;
287
+ for (const _0x18bf96 of _0x5b2951) {
288
+ if (_0x5d1946[_0xe76322(411)](_0x18bf96, null)) return _0x18bf96;
207
289
  }
208
- } else for (const _0x18f315 of _0xad526d) {
290
+ } else for (const _0x49dac of _0x56aa39) {
209
291
  try {
210
- _0x3ab4be["BMgEW"](_0x18f315, _0x1428aa);
292
+ _0x5d1946[_0xe76322(384)](_0x49dac, _0x302121);
211
293
  } catch {
212
294
  }
213
295
  }
214
- }, _0x439b56 = (_0x3f663a) => {
215
- const _0x5d9488 = _0x47e3, _0x3b4296 = _0x47e3;
216
- _0x3ab4be["LwFMy"](typeof _0x3f663a, _0x5d9488(347)) && !_0xad526d[_0x3b4296(368)](_0x3f663a) && _0xad526d[_0x3b4296(328)](_0x3f663a);
217
- }, _0x1ce8eb = (_0xbbca13) => {
218
- const _0x57e456 = _0x47e3, _0x3bec20 = _0x47e3, _0x3f5120 = _0xad526d["indexOf"](_0xbbca13);
219
- _0x3ab4be[_0x57e456(345)](_0x3f5120, -1) && _0xad526d[_0x3bec20(313)](_0x3f5120, 7217 * 1 + 2267 + -9483);
220
- }, _0xea9e31 = () => {
221
- _0xad526d["length"] = 7608 + 55 * -17 + -6673;
222
- }, _0x318449 = {};
223
- return _0x318449["handleListener"] = _0x16a2ef, _0x318449["addListener"] = _0x439b56, _0x318449[_0xddf6fb(315)] = _0x1ce8eb, _0x318449[_0xddf6fb(342)] = _0xea9e31, _0x318449;
224
- }, setClientListener = (_0x16db1f) => {
225
- const _0x127a85 = _0x47e3, _0x131a17 = _0x47e3, _0x43bbc1 = { "OGhpj": function(_0x3461c2) {
226
- return _0x3461c2();
227
- }, "jJiwz": function(_0x41edea) {
228
- return _0x41edea();
296
+ }, _0x5c8170 = (_0xa0f8c9) => {
297
+ const _0x5e0645 = _0x377b7b, _0xe67ace = _0x377b7b;
298
+ _0x5d1946["ZrWRI"](typeof _0xa0f8c9, _0x5d1946[_0x5e0645(394)]) && !_0x56aa39["includes"](_0xa0f8c9) && _0x56aa39[_0xe67ace(418)](_0xa0f8c9);
299
+ }, _0x54ac78 = (_0x39f582) => {
300
+ const _0x578e6b = _0x377b7b, _0x30a5bb = _0x377b7b, _0x49d0d2 = _0x56aa39[_0x578e6b(439)](_0x39f582);
301
+ _0x5d1946["GrPty"](_0x49d0d2, -1) && _0x56aa39[_0x30a5bb(371)](_0x49d0d2, 2878 + 174 * 49 + -11403);
302
+ }, _0x268398 = () => {
303
+ _0x56aa39["length"] = -13 * 455 + -1782 + 7697;
304
+ }, _0x4b470b = {};
305
+ return _0x4b470b[_0x293df8(379)] = _0x4cf098, _0x4b470b["addListener"] = _0x5c8170, _0x4b470b["removeListener"] = _0x54ac78, _0x4b470b["clearListener"] = _0x268398, _0x4b470b;
306
+ }, setClientListener = (_0x103287) => {
307
+ const _0x48d13c = _0x593e, _0x599320 = _0x593e, _0x39d6f4 = { "JtpyX": function(_0x2821c7) {
308
+ return _0x2821c7();
229
309
  } };
230
310
  {
231
- const { handleListener: _0x1dc94a, addListener: _0x417991, removeListener: _0x403dd9, clearListener: _0x4d9309 } = _0x43bbc1[_0x127a85(321)](createHandleListener);
232
- _0x16db1f[_0x127a85(319)] = _0x1dc94a, _0x16db1f[_0x131a17(308)] = _0x417991, _0x16db1f["removeResponseListener"] = _0x403dd9, _0x16db1f[_0x131a17(332)] = _0x4d9309;
311
+ const { handleListener: _0x560156, addListener: _0x4dec4d, removeListener: _0x4ff4b3, clearListener: _0x164651 } = _0x39d6f4[_0x48d13c(423)](createHandleListener);
312
+ _0x103287[_0x599320(361)] = _0x560156, _0x103287["addResponseListener"] = _0x4dec4d, _0x103287[_0x48d13c(401)] = _0x4ff4b3, _0x103287["clearResponseListener"] = _0x164651;
233
313
  }
234
314
  {
235
- const { handleListener: _0x3b90fc, addListener: _0x2fd7c9, removeListener: _0x292d2a, clearListener: _0x160bc4 } = createHandleListener();
236
- _0x16db1f[_0x131a17(353)] = _0x3b90fc, _0x16db1f[_0x127a85(320)] = _0x2fd7c9, _0x16db1f["removeRequestListener"] = _0x292d2a, _0x16db1f[_0x127a85(309)] = _0x160bc4;
315
+ const { handleListener: _0x3d835b, addListener: _0x1995a8, removeListener: _0x56f22b, clearListener: _0x441d8e } = createHandleListener();
316
+ _0x103287[_0x48d13c(426)] = _0x3d835b, _0x103287["addRequestListener"] = _0x1995a8, _0x103287[_0x599320(403)] = _0x56f22b, _0x103287[_0x48d13c(410)] = _0x441d8e;
237
317
  }
238
318
  {
239
- const { handleListener: _0x13fd44, addListener: _0x2ac762, removeListener: _0x6d9a27, clearListener: _0xb16fba } = _0x43bbc1["jJiwz"](createHandleListener);
240
- _0x16db1f[_0x131a17(386)] = _0x13fd44, _0x16db1f[_0x127a85(369)] = _0x2ac762, _0x16db1f[_0x131a17(324)] = _0x6d9a27, _0x16db1f[_0x131a17(376)] = _0xb16fba;
319
+ const { handleListener: _0x461cf2, addListener: _0x152cfb, removeListener: _0x223358, clearListener: _0x2fb35b } = createHandleListener();
320
+ _0x103287[_0x48d13c(437)] = _0x461cf2, _0x103287["addNotificationListener"] = _0x152cfb, _0x103287["removeNotificationListener"] = _0x223358, _0x103287["clearNotificationListener"] = _0x2fb35b;
241
321
  }
242
322
  };
243
- function _0xd45d() {
244
- const _0x5a812f = ["message", "2273464ccvOsZ", "removeNotificationListener", "name", "resources/unsubscribe", "result", "push", "callTool", "method", "PFnXq", "clearResponseListener", "hiTto", "wAjlQ", "9252BPxmLi", "request", "transport", "aFNdj", "5990GfgYej", "pALWP", "roots/list", "clearListener", "1087900nVDcct", "listTools", "QIdRN", "unsubscribeResource", "function", "getPrompt", "data", "tools/call", "ping", "PipzT", "fallbackRequestHandler", "iUefp", "notifications/initialized", "level", "listResources", "1626132xwUtNz", "complete", "117492rrQpuM", "_onrequest", "listPrompts", "send", "onerror", "qLMuk", "completion/complete", "sampling/createMessage", "includes", "addNotificationListener", "prompts/get", "code", "params", "2.0", "kykUa", "yLRdW", "clearNotificationListener", "tools/list", "cqBHj", "elicitation/create", "ZYNFj", "zxSfQ", "60orVcNK", "originalOnResponse", "jsonrpc", "7ukYHgT", "fallbackNotificationHandler", "26ajRDlu", "addResponseListener", "clearRequestListener", "ZijeN", "clear", "_notificationHandlers", "splice", "DWWZD", "removeListener", "47615opiEqz", "notifications/cancelled", "242670qapTzl", "_onresponse", "addRequestListener", "OGhpj"];
245
- _0xd45d = function() {
246
- return _0x5a812f;
247
- };
248
- return _0xd45d();
323
+ function _0x593e(_0x3570ee, _0x57e594) {
324
+ const _0x23692a = _0x2983();
325
+ return _0x593e = function(_0x4addf5, _0x3efee3) {
326
+ _0x4addf5 = _0x4addf5 - (-6409 + 4934 * 1 + 54 * 34);
327
+ let _0x20b22c = _0x23692a[_0x4addf5];
328
+ return _0x20b22c;
329
+ }, _0x593e(_0x3570ee, _0x57e594);
249
330
  }
250
- const initClientHandler = (_0x37df2d, { beforeInit: _0x5e7619, afterInit: _0x15128e } = {}) => {
251
- const _0x5490bf = _0x47e3, _0x44da83 = _0x47e3, _0x371972 = { "IiBFR": function(_0x58e27e, _0x1569d7) {
252
- return _0x58e27e === _0x1569d7;
253
- }, "chzWu": function(_0x1ad0b1, _0x2cdfe4) {
254
- return _0x1ad0b1 === _0x2cdfe4;
255
- }, "AvFuO": function(_0x26582a, _0x310cc5) {
256
- return _0x26582a(_0x310cc5);
257
- }, "MSUAp": _0x5490bf(347), "ZYNFj": function(_0x2a106f) {
258
- return _0x2a106f();
259
- } }, _0xe3b560 = new Map(_0x37df2d[_0x44da83(312)]);
260
- _0x37df2d["_requestHandlers"][_0x44da83(311)](), _0x37df2d["_notificationHandlers"]["clear"](), _0x371972["chzWu"](typeof _0x5e7619, "function") && _0x5e7619(), _0x371972["IiBFR"](_0x37df2d["_onresponse"][_0x44da83(325)], "_onresponse") && (_0x37df2d["originalOnResponse"] = _0x37df2d["_onresponse"]), _0x371972["AvFuO"](setClientListener, _0x37df2d), _0x37df2d[_0x44da83(308)]((_0x5823fb) => {
261
- const _0x47be4f = _0x44da83;
262
- _0x37df2d[_0x47be4f(383)]["call"](_0x37df2d, _0x5823fb);
263
- }), typeof _0x15128e === _0x371972["MSUAp"] && _0x371972[_0x5490bf(380)](_0x15128e), _0x37df2d["addNotificationListener"]((_0x17fc1b) => {
264
- const _0x1160c4 = _0x5490bf, { method: _0x3803a2 } = _0x17fc1b, _0x4a9aa2 = _0xe3b560["get"](_0x3803a2);
265
- _0x371972["IiBFR"](typeof _0x4a9aa2, _0x1160c4(347)) && _0x4a9aa2(_0x17fc1b);
331
+ const initClientHandler = (_0x21d5fc, { beforeInit: _0xb08e32, afterInit: _0x1eeab0 } = {}) => {
332
+ const _0x321c5b = _0x593e, _0x43d753 = _0x593e, _0x3ab046 = { "HIaTT": function(_0x27d8b7, _0x36c4e0) {
333
+ return _0x27d8b7 === _0x36c4e0;
334
+ }, "JAhfk": "function", "CYqhf": function(_0x228d3d, _0x18461d) {
335
+ return _0x228d3d(_0x18461d);
336
+ }, "AJTeD": function(_0x372b17) {
337
+ return _0x372b17();
338
+ }, "YjJdu": function(_0x4ca7fc, _0x264987) {
339
+ return _0x4ca7fc === _0x264987;
340
+ }, "gMTWu": function(_0x509186, _0x540605) {
341
+ return _0x509186(_0x540605);
342
+ } }, _0x40bcdd = new Map(_0x21d5fc[_0x321c5b(443)]);
343
+ _0x21d5fc["_requestHandlers"]["clear"](), _0x21d5fc[_0x321c5b(443)][_0x43d753(441)](), _0x3ab046[_0x321c5b(425)](typeof _0xb08e32, _0x3ab046[_0x43d753(392)]) && _0x3ab046["AJTeD"](_0xb08e32), _0x3ab046["YjJdu"](_0x21d5fc[_0x321c5b(361)][_0x43d753(409)], "_onresponse") && (_0x21d5fc[_0x43d753(427)] = _0x21d5fc[_0x43d753(361)]), _0x3ab046[_0x321c5b(363)](setClientListener, _0x21d5fc), _0x21d5fc[_0x321c5b(435)]((_0x263710) => {
344
+ const _0x596350 = _0x321c5b;
345
+ _0x21d5fc[_0x596350(427)]["call"](_0x21d5fc, _0x263710);
346
+ }), _0x3ab046["YjJdu"](typeof _0x1eeab0, _0x3ab046[_0x321c5b(392)]) && _0x3ab046[_0x43d753(399)](_0x1eeab0), _0x21d5fc["addNotificationListener"]((_0x10f35d) => {
347
+ const _0x211844 = _0x321c5b, { method: _0x46107e } = _0x10f35d, _0x47e3ad = _0x40bcdd["get"](_0x46107e);
348
+ _0x3ab046["HIaTT"](typeof _0x47e3ad, _0x3ab046[_0x211844(392)]) && _0x3ab046[_0x211844(433)](_0x47e3ad, _0x10f35d);
266
349
  });
267
350
  };
268
- function _0x5a92() {
269
- const _0x4775de = ["55kpBnQf", "getRandomValues", "13287680QlWBTg", "6fZNRLf", "9428301EUigEO", "randomUUID", "7119955bByuQT", "xVLfE", "2660IKYrtk", "1139131gulCHS", "10wPlAGv", "toString", "VtXpH", "15016mOLrbN", "1806NKFyEV", "4380828cAoRcH", "29guSmRa"];
270
- _0x5a92 = function() {
271
- return _0x4775de;
351
+ function _0x28b5() {
352
+ const _0x4f4fd3 = ["3911016EvciNJ", "randomBytes", "randomUUID", "yGbXZ", "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", "14085YeOQFM", "2790EVoFAe", "replace", "from", "2018884yaUhJo", "toString", "3131885LtuuFF", "6594EzGtez", "6WZHpAW", "256455hqdIVv", "3152JlDIrL", "object", "794268NUTwGu"];
353
+ _0x28b5 = function() {
354
+ return _0x4f4fd3;
272
355
  };
273
- return _0x5a92();
356
+ return _0x28b5();
274
357
  }
275
- (function(_0xb8e0d8, _0x42ff59) {
276
- const _0x191f7f = _0x1e18, _0xe2e4b2 = _0x1e18, _0x31d187 = _0xb8e0d8();
358
+ const _0x36a176 = _0x2e93;
359
+ (function(_0x359d44, _0x24b8f9) {
360
+ const _0x4b5bcb = _0x2e93, _0x8af79e = _0x2e93, _0x5e6754 = _0x359d44();
277
361
  while (!![]) {
278
362
  try {
279
- const _0x327c59 = parseInt(_0x191f7f(479)) / (8663 * -1 + -3 * -2361 + -31 * -51) * (parseInt(_0x191f7f(493)) / (-6499 + 1759 * 2 + 2983)) + parseInt(_0xe2e4b2(494)) / (-2 * 865 + -349 * 22 + -3 * -3137) * (parseInt(_0xe2e4b2(488)) / (-8979 + -3017 + 1e3 * 12)) + -parseInt(_0x191f7f(486)) / (-9164 + -2374 * 4 + -5 * -3733) * (-parseInt(_0x191f7f(483)) / (-4717 + -1 * 8539 + 13262)) + -parseInt(_0xe2e4b2(489)) / (3993 * -1 + 7109 * -1 + 11109) + -parseInt(_0x191f7f(482)) / (-2189 * -3 + -6854 + 295) + -parseInt(_0xe2e4b2(484)) / (5765 + -24 * 238 + 44 * -1) * (parseInt(_0xe2e4b2(490)) / (741 + 1 * 8839 + -435 * 22)) + -parseInt(_0xe2e4b2(480)) / (8108 + 8467 + -16564) * (-parseInt(_0x191f7f(478)) / (-17 * -46 + 2505 + -3275));
280
- if (_0x327c59 === _0x42ff59) break;
281
- else _0x31d187["push"](_0x31d187["shift"]());
282
- } catch (_0x4f91f8) {
283
- _0x31d187["push"](_0x31d187["shift"]());
363
+ const _0x5669ac = parseInt(_0x4b5bcb(409)) / (-2390 + 443 * 9 + 12 * -133) + -parseInt(_0x8af79e(422)) / (-49 * -127 + 4168 + -3463 * 3) + -parseInt(_0x4b5bcb(412)) / (467 + -1 * -9543 + -10007) + parseInt(_0x8af79e(413)) / (731 + 779 + 6 * -251) + -parseInt(_0x4b5bcb(424)) / (3989 + 2 * 3236 + -10456) * (-parseInt(_0x8af79e(426)) / (443 * 9 + -1728 + -2253)) + -parseInt(_0x4b5bcb(425)) / (9696 * 1 + -2408 + -809 * 9) * (-parseInt(_0x4b5bcb(410)) / (-1 * -3461 + 910 * 2 + -5273 * 1)) + parseInt(_0x4b5bcb(418)) / (4555 + -1 * 1299 + -17 * 191) * (-parseInt(_0x8af79e(419)) / (-7135 + -7248 + 14393));
364
+ if (_0x5669ac === _0x24b8f9) break;
365
+ else _0x5e6754["push"](_0x5e6754["shift"]());
366
+ } catch (_0x311668) {
367
+ _0x5e6754["push"](_0x5e6754["shift"]());
284
368
  }
285
369
  }
286
- })(_0x5a92, -1813587 + 1061865 + 1747838);
287
- function _0x1e18(_0x84a984, _0x2506fd) {
288
- const _0x543573 = _0x5a92();
289
- return _0x1e18 = function(_0x1f90db, _0x59daa0) {
290
- _0x1f90db = _0x1f90db - (-15 * 183 + -397 * -23 + -5908);
291
- let _0x512290 = _0x543573[_0x1f90db];
292
- return _0x512290;
293
- }, _0x1e18(_0x84a984, _0x2506fd);
294
- }
370
+ })(_0x28b5, -26 * -19094 + 3 * 240984 + 139699 * -5);
295
371
  const randomUUID = () => {
296
- const _0x293ca1 = _0x1e18, _0xd3779f = _0x1e18, _0x1bc1cf = {};
297
- _0x1bc1cf["xVLfE"] = function(_0x56dea9, _0x4ed659) {
298
- return _0x56dea9 === _0x4ed659;
299
- }, _0x1bc1cf["yeueZ"] = function(_0x4bc2a6, _0x540c8a) {
300
- return _0x4bc2a6 & _0x540c8a;
301
- }, _0x1bc1cf["VtXpH"] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
302
- const _0x1630ae = _0x1bc1cf;
303
- if (_0x1630ae[_0x293ca1(487)](typeof crypto, "object") && crypto["randomUUID"]) return crypto[_0xd3779f(485)]();
304
- return _0x1630ae[_0x293ca1(492)]["replace"](/[xy]/g, (_0x4e003a) => {
305
- const _0x2cb9d2 = _0x293ca1, _0x2f8776 = crypto["getRandomValues"](new Uint8Array(841 * -8 + -9630 + -287 * -57))[-3983 + 2477 * 1 + 1506] & 4769 + -1172 * -5 + -10614 * 1, _0x5c5d31 = _0x1630ae[_0x2cb9d2(487)](_0x4e003a, "x") ? _0x2f8776 : _0x1630ae["yeueZ"](_0x2f8776, 384 * -9 + 1 * 8273 + -4814) | -6853 + 6076 + -785 * -1;
306
- return _0x5c5d31[_0x2cb9d2(491)](-46 * 191 + -5697 + 14499 * 1);
372
+ const _0x3fe6cf = _0x2e93, _0x206faf = _0x2e93, _0x37eec2 = {};
373
+ _0x37eec2["anYpD"] = function(_0x1e0203, _0x1b73e4) {
374
+ return _0x1e0203 & _0x1b73e4;
375
+ }, _0x37eec2[_0x3fe6cf(416)] = function(_0x3807b0, _0x26246d) {
376
+ return _0x3807b0 | _0x26246d;
377
+ }, _0x37eec2["bePiR"] = function(_0x250e76, _0x3626d9) {
378
+ return _0x250e76 === _0x3626d9;
379
+ }, _0x37eec2["uJPTB"] = _0x3fe6cf(411);
380
+ const _0x15d3af = _0x37eec2;
381
+ if (_0x15d3af["bePiR"](typeof crypto, _0x15d3af["uJPTB"]) && crypto["randomUUID"]) return crypto["randomUUID"]();
382
+ return _0x3fe6cf(417)[_0x3fe6cf(420)](/[xy]/g, (_0x488a59) => {
383
+ const _0x1718a6 = _0x3fe6cf, _0x26da5b = _0x206faf, _0xc1ca08 = _0x15d3af["anYpD"](crypto["getRandomValues"](new Uint8Array(-6766 + 7815 + 1 * -1048))[-3883 + -2227 + -65 * -94], -3045 + 9362 + 6302 * -1), _0x56c24d = _0x488a59 === "x" ? _0xc1ca08 : _0x15d3af[_0x1718a6(416)](_0x15d3af["anYpD"](_0xc1ca08, -15 * -652 + -7126 + -2651), -5700 + 2648 * -1 + 8356);
384
+ return _0x56c24d[_0x26da5b(423)](-2081 * 1 + 1 * -377 + -2474 * -1);
307
385
  });
308
- }, randomBytes = (_0x4057d7) => {
309
- const _0x5adf17 = _0x1e18, _0x244b6d = _0x1e18, _0x1c3cad = new Uint8Array(_0x4057d7);
310
- return crypto[_0x5adf17(481)](_0x1c3cad), Array["from"](_0x1c3cad, (_0x3f0f66) => _0x3f0f66[_0x244b6d(491)](-1 * -877 + 92 * 53 + -5737)["padStart"](-1 * -5681 + -1681 * -4 + 79 * -157, "0"))["join"]("");
311
- }, _0x15ecde = {};
312
- _0x15ecde["randomUUID"] = randomUUID, _0x15ecde["randomBytes"] = randomBytes;
313
- const _0xe43874 = _0x249d, _0x3c4c4b = _0x249d;
314
- (function(_0x11a97f, _0x559c48) {
315
- const _0xcf63b4 = _0x249d, _0x2d53ca = _0x249d, _0x3901dd = _0x11a97f();
386
+ }, randomBytes = (_0x53be61) => {
387
+ const _0xa94349 = _0x2e93, _0x3a6852 = new Uint8Array(_0x53be61);
388
+ return crypto["getRandomValues"](_0x3a6852), Array[_0xa94349(421)](_0x3a6852, (_0x2d7a55) => _0x2d7a55["toString"](-3319 * -3 + 9096 + -19037)["padStart"](-81 * -17 + 17 * -121 + 682, "0"))["join"]("");
389
+ }, _0x325be1 = {};
390
+ _0x325be1[_0x36a176(415)] = randomUUID, _0x325be1[_0x36a176(414)] = randomBytes;
391
+ function _0x2e93(_0x5329bc, _0x4b803f) {
392
+ const _0x3b3646 = _0x28b5();
393
+ return _0x2e93 = function(_0x3a9766, _0x282379) {
394
+ _0x3a9766 = _0x3a9766 - (6086 + -1749 + -4 * 982);
395
+ let _0x47424b = _0x3b3646[_0x3a9766];
396
+ return _0x47424b;
397
+ }, _0x2e93(_0x5329bc, _0x4b803f);
398
+ }
399
+ const _0x4f1f27 = _0x1255, _0x127d59 = _0x1255;
400
+ (function(_0x258c94, _0x348606) {
401
+ const _0x4939a9 = _0x1255, _0x2eeb11 = _0x1255, _0x59cc87 = _0x258c94();
316
402
  while (!![]) {
317
403
  try {
318
- const _0x1e1761 = -parseInt(_0xcf63b4(291)) / (-9920 + 8101 * 1 + 13 * 140) + parseInt(_0xcf63b4(287)) / (-9218 + 131 + 9089) + parseInt(_0x2d53ca(247)) / (-7 * -1163 + 8523 + -16661) * (-parseInt(_0x2d53ca(222)) / (-3 * 593 + -196 * -23 + -2725)) + parseInt(_0x2d53ca(248)) / (-236 * 6 + -2233 * 1 + 3654) + parseInt(_0xcf63b4(290)) / (-53 * -29 + -203 * 43 + 7198) * (parseInt(_0x2d53ca(264)) / (-9 * 145 + -20 * 466 + 10632)) + parseInt(_0x2d53ca(228)) / (241 * 25 + 2 * -3473 + 929 * 1) * (parseInt(_0xcf63b4(250)) / (2635 + -1 * 2221 + 3 * -135)) + -parseInt(_0x2d53ca(252)) / (-4817 + 5291 + 2 * -232) * (-parseInt(_0x2d53ca(306)) / (-155 * 53 + 3863 * -1 + 12089));
319
- if (_0x1e1761 === _0x559c48) break;
320
- else _0x3901dd["push"](_0x3901dd["shift"]());
321
- } catch (_0x9a5ce2) {
322
- _0x3901dd["push"](_0x3901dd["shift"]());
404
+ const _0x91b6b = parseInt(_0x4939a9(207)) / (-5531 + -7771 + 13303) * (parseInt(_0x4939a9(201)) / (-71 * -56 + 5613 * -1 + 11 * 149)) + -parseInt(_0x2eeb11(177)) / (1442 + 74 * -71 + 5 * 763) + -parseInt(_0x4939a9(182)) / (7939 + -8843 + 908) + -parseInt(_0x4939a9(208)) / (-613 + -9783 + -1 * -10401) + -parseInt(_0x2eeb11(179)) / (8104 + -1 * -3237 + -11335) + -parseInt(_0x4939a9(122)) / (-6736 + 5e3 + 3 * 581) * (parseInt(_0x2eeb11(203)) / (8106 + -8987 + -7 * -127)) + parseInt(_0x2eeb11(151)) / (-7422 + -3 * 159 + 7908) * (parseInt(_0x4939a9(186)) / (1 * 5931 + -2072 + -1 * 3849));
405
+ if (_0x91b6b === _0x348606) break;
406
+ else _0x59cc87["push"](_0x59cc87["shift"]());
407
+ } catch (_0x10d7a0) {
408
+ _0x59cc87["push"](_0x59cc87["shift"]());
323
409
  }
324
410
  }
325
- })(_0x4684, -4423 * -113 + 191466 + -230226);
326
- function _0x249d(_0x4d48b5, _0x1ed6e9) {
327
- const _0x18d6c0 = _0x4684();
328
- return _0x249d = function(_0x255318, _0x40852c) {
329
- _0x255318 = _0x255318 - (-1 * -6805 + -1549 * -3 + -11231);
330
- let _0x58f921 = _0x18d6c0[_0x255318];
331
- return _0x58f921;
332
- }, _0x249d(_0x4d48b5, _0x1ed6e9);
411
+ })(_0x3052, -4409 * 43 + -1 * 218391 + 264579 * 3);
412
+ function _0x3052() {
413
+ const _0x20a1db = ["redirectUri", "574068RqPnnk", "authorize", "expiresAt", "1761960XIbBKq", "randomBytes", "exp", "bearer", "10GCAncC", "codeChallenge", "href", "access_token", "now", "status", "accessTokensStore", "clients", "Router", "YzTge", "clientId", "generateRefreshToken", "znCUL", "revokeToken", "saveRefreshToken", "3758wnqYSr", "state", "32dIyDQt", "NEmHZ", "scope", "redirect_uris", "198AQOMeo", "701280gKCXcq", "Refresh token has expired for this client: ", "FFZiq", "Refresh token was not issued to this client: ", "jcWcV", "set", "AIxvn", "verifyAccessToken", " to this client: ", "client_id", "deleteClient", "delete", "issuer", "token_type_hint", "accessTokenExpiresIn", "488887LdkNbl", "redirect", "toString", "cRvfG", "floor", "EUXXd", "/.well-known/oauth-protected-resource", "accessTokens", "bbEXg", "refreshTokens", "json", "OTBiX", "deleteCodeData", "get", "revokeAccessToken", "use", "resource", "aud", "getRefreshToken", "params", "uNGka", "Invalid authorization code for this client: ", "JKLtp", ", got: ", "Refresh token is invalid or has been revoked for this client: ", "codes", "Rgxxb", "pHSox", "code", "15310278oiIhaq", "/.well-known/oauth-authorization-server", "ZIIhI", "exchangeAuthorizationCode", "hWABh", "codesStore", "extra", "generateAccessToken", "refreshTokenExpiresIn", "join", "XqNjm", "saveClient", "token", "scopes", "generateAuthorizationCode", "client", "getCodeDate", "search", "AleNl", "refresh_token", "rWZDT", "saveCodeData", "clientsStore", "query", "send", "revokeRefreshToken", "2194911AHueup"];
414
+ _0x3052 = function() {
415
+ return _0x20a1db;
416
+ };
417
+ return _0x3052();
418
+ }
419
+ function _0x1255(_0x44e6b7, _0x69a48a) {
420
+ const _0x408213 = _0x3052();
421
+ return _0x1255 = function(_0x41fdab, _0x53c487) {
422
+ _0x41fdab = _0x41fdab - (-977 * 10 + -5 * -1025 + 4764);
423
+ let _0xca5ecd = _0x408213[_0x41fdab];
424
+ return _0xca5ecd;
425
+ }, _0x1255(_0x44e6b7, _0x69a48a);
333
426
  }
334
- const ACCESS_TOKEN_EXPIRES_IN = (-6551 + -1363 + 2 * 3969) * (-4748 + -4262 + 9070) * (2 * 2589 + -1 * 9627 + 4509);
335
- const REFRESH_TOKEN_EXPIRES_IN = (-4843 * -2 + -9611 * -1 + -1929 * 10) * (4783 * 2 + -3541 + -6001) * (-6171 + 6257 + -2 * 13) * (3714 + -8442 + 4788);
427
+ const ACCESS_TOKEN_EXPIRES_IN = (-2 * 1721 + 9273 + -1 * 5807) * (7 * 296 + 1 * -5585 + 397 * 9) * (6279 + -355 + -8 * 733);
428
+ const REFRESH_TOKEN_EXPIRES_IN = (-9 * -446 + 1 * 359 + -4366) * (3407 + 191 * -26 + 1583) * (-2983 + -1091 + 1 * 4134) * (1 * -8471 + -8520 + 17051);
336
429
  const generateAuthorizationCodeFunction = () => {
337
- const _0x24cfbe = _0x249d;
338
- return _0x15ecde[_0x24cfbe(246)](-167 * 9 + 980 + 547 * 1);
430
+ const _0x2be745 = _0x1255;
431
+ return _0x325be1[_0x2be745(183)](1 * 1758 + -2090 + 1 * 356);
339
432
  }, generateAccessTokenFunction = () => {
340
- const _0x5706eb = _0x249d;
341
- return _0x15ecde[_0x5706eb(246)](-1054 + 2034 + -948);
433
+ const _0x5e8688 = _0x1255;
434
+ return _0x325be1[_0x5e8688(183)](-3597 + 2306 + 21 * 63);
342
435
  }, generateRefreshTokenFunction = () => {
343
- return _0x15ecde["randomBytes"](-256 * -38 + 44 + 68 * -143);
436
+ return _0x325be1["randomBytes"](-7330 + 5651 + 1727);
344
437
  };
345
438
  class MemoryClientsStore {
346
439
  constructor() {
347
- const _0x5aac42 = _0x249d;
348
- this[_0x5aac42(305)] = /* @__PURE__ */ new Map();
440
+ const _0x63191d = _0x1255;
441
+ this[_0x63191d(193)] = /* @__PURE__ */ new Map();
349
442
  }
350
- async [_0xe43874(300)](_0xa95f20) {
351
- const _0x11c480 = _0xe43874;
352
- return this["clients"][_0x11c480(254)](_0xa95f20);
443
+ async ["getClient"](_0x4749a1) {
444
+ const _0x9b9de0 = _0x1255;
445
+ return this[_0x9b9de0(193)]["get"](_0x4749a1);
353
446
  }
354
- async [_0xe43874(240)](_0x474d08) {
355
- const _0x1196e4 = _0x3c4c4b;
356
- return this[_0x1196e4(305)][_0x1196e4(270)](_0x474d08["client_id"], _0x474d08), _0x474d08;
447
+ async ["saveClient"](_0x8b2931) {
448
+ const _0x8c9566 = _0x1255;
449
+ return this["clients"]["set"](_0x8b2931[_0x8c9566(217)], _0x8b2931), _0x8b2931;
357
450
  }
358
- async ["deleteClient"](_0x118e75) {
359
- const _0x5d0975 = _0x3c4c4b;
360
- return this[_0x5d0975(305)][_0x5d0975(244)](_0x118e75);
451
+ async [_0x4f1f27(218)](_0x406b89) {
452
+ const _0x3873b7 = _0x4f1f27;
453
+ return this[_0x3873b7(193)]["delete"](_0x406b89);
361
454
  }
362
- async ["registerClient"](_0x3e3815) {
363
- return this["saveClient"](_0x3e3815);
455
+ async ["registerClient"](_0x3b2dcb) {
456
+ const _0x451ada = _0x4f1f27;
457
+ return this[_0x451ada(162)](_0x3b2dcb);
364
458
  }
365
459
  }
366
460
  class MemoryAuthorizationCodeStore {
367
461
  constructor() {
368
- const _0x10ab05 = _0xe43874;
369
- this[_0x10ab05(249)] = /* @__PURE__ */ new Map();
462
+ this["codes"] = /* @__PURE__ */ new Map();
370
463
  }
371
- async [_0xe43874(289)](_0x378843) {
372
- const _0x4c6cc2 = _0xe43874;
373
- return this["codes"][_0x4c6cc2(254)](_0x378843);
464
+ async ["getCodeDate"](_0x39c5e0) {
465
+ const _0x46f782 = _0x4f1f27;
466
+ return this["codes"][_0x46f782(135)](_0x39c5e0);
374
467
  }
375
- async ["saveCodeData"](_0x1cbdcf, _0x23cf7e) {
376
- const _0x21fab8 = _0xe43874, _0x52e6ff = _0x3c4c4b;
377
- return this[_0x21fab8(249)][_0x52e6ff(270)](_0x1cbdcf, _0x23cf7e), !![];
468
+ async [_0x127d59(172)](_0x7f8ec6, _0x41e501) {
469
+ const _0x15c8a8 = _0x127d59;
470
+ return this[_0x15c8a8(147)][_0x15c8a8(213)](_0x7f8ec6, _0x41e501), !![];
378
471
  }
379
- async [_0x3c4c4b(232)](_0x9d5f82) {
380
- const _0x14ac0e = _0x3c4c4b;
381
- return this[_0x14ac0e(249)]["delete"](_0x9d5f82);
472
+ async [_0x127d59(134)](_0x1edbb8) {
473
+ const _0x49a458 = _0x127d59;
474
+ return this["codes"][_0x49a458(219)](_0x1edbb8);
382
475
  }
383
476
  }
384
477
  class MemoryAccessTokensStore {
385
478
  constructor() {
386
- this["accessTokens"] = /* @__PURE__ */ new Map();
479
+ const _0x1e38a3 = _0x4f1f27;
480
+ this[_0x1e38a3(129)] = /* @__PURE__ */ new Map();
387
481
  }
388
- async ["getAccessToken"](_0x8c6025) {
389
- const _0x38998a = _0xe43874;
390
- return this[_0x38998a(259)]["get"](_0x8c6025);
482
+ async ["getAccessToken"](_0x5b9216) {
483
+ const _0x59c717 = _0x127d59, _0x146508 = _0x4f1f27;
484
+ return this[_0x59c717(129)][_0x146508(135)](_0x5b9216);
391
485
  }
392
- async ["saveAccessToken"](_0x214daa, _0x422738) {
393
- return this["accessTokens"]["set"](_0x214daa, _0x422738), !![];
486
+ async ["saveAccessToken"](_0x607848, _0xaac4f8) {
487
+ const _0xe77978 = _0x4f1f27;
488
+ return this[_0xe77978(129)]["set"](_0x607848, _0xaac4f8), !![];
394
489
  }
395
- async ["revokeAccessToken"](_0x4b77f7) {
396
- const _0x4f8735 = _0xe43874;
397
- return this["accessTokens"][_0x4f8735(244)](_0x4b77f7);
490
+ async ["revokeAccessToken"](_0x5dadd1) {
491
+ const _0x3816e8 = _0x4f1f27;
492
+ return this["accessTokens"][_0x3816e8(219)](_0x5dadd1);
398
493
  }
399
494
  }
400
495
  class MemoryRefreshTokensStore {
401
496
  constructor() {
402
- const _0x3f111b = _0xe43874;
403
- this[_0x3f111b(242)] = /* @__PURE__ */ new Map();
497
+ this["refreshTokens"] = /* @__PURE__ */ new Map();
404
498
  }
405
- async ["getRefreshToken"](_0x5b6e94) {
406
- const _0x5a9a42 = _0xe43874;
407
- return this[_0x5a9a42(242)]["get"](_0x5b6e94);
499
+ async [_0x127d59(140)](_0x3841b8) {
500
+ const _0x51dc2f = _0x127d59;
501
+ return this["refreshTokens"][_0x51dc2f(135)](_0x3841b8);
408
502
  }
409
- async [_0x3c4c4b(266)](_0x3571f5, _0x90c083) {
410
- return this["refreshTokens"]["set"](_0x3571f5, _0x90c083), !![];
503
+ async ["saveRefreshToken"](_0xc6b6cd, _0x593148) {
504
+ const _0x2d9174 = _0x4f1f27;
505
+ return this[_0x2d9174(131)]["set"](_0xc6b6cd, _0x593148), !![];
411
506
  }
412
- async ["revokeRefreshToken"](_0x2d833c) {
413
- const _0x401989 = _0xe43874;
414
- return this[_0x401989(242)][_0x401989(244)](_0x2d833c);
507
+ async ["revokeRefreshToken"](_0x361705) {
508
+ const _0x16027e = _0x4f1f27;
509
+ return this[_0x16027e(131)][_0x16027e(219)](_0x361705);
415
510
  }
416
511
  }
417
512
  class AuthServerProvider {
418
- constructor(_0x58bd5b = {}) {
419
- const _0xeb23ac = _0x3c4c4b, _0x59606d = _0x3c4c4b, _0x51d368 = {};
420
- _0x51d368["taYfN"] = function(_0x26ee50, _0x351039) {
421
- return _0x26ee50 || _0x351039;
422
- }, _0x51d368["besuu"] = function(_0x1d7c95, _0x2636f5) {
423
- return _0x1d7c95 || _0x2636f5;
513
+ constructor(_0x35ef3a = {}) {
514
+ const _0x225ac6 = _0x127d59, _0x4b4834 = _0x4f1f27, _0x338366 = {};
515
+ _0x338366[_0x225ac6(204)] = function(_0x2c94c8, _0x2abba7) {
516
+ return _0x2c94c8 || _0x2abba7;
517
+ }, _0x338366[_0x4b4834(130)] = function(_0xc1e2de, _0x37420a) {
518
+ return _0xc1e2de || _0x37420a;
519
+ }, _0x338366["brCoD"] = function(_0x568726, _0x5f11fd) {
520
+ return _0x568726 || _0x5f11fd;
521
+ };
522
+ const _0x2ed076 = _0x338366, { clientsStore: _0x5c8bda, codesStore: _0x5863ae, accessTokensStore: _0x1df822, refreshTokensStore: _0x10e970, generateAuthorizationCode: _0x5ac15c, generateAccessToken: _0x35c5ae, generateRefreshToken: _0x58df46, accessTokenExpiresIn: _0x1e37d4, refreshTokenExpiresIn: _0x540c69 } = _0x35ef3a;
523
+ this[_0x225ac6(173)] = _0x5c8bda || new MemoryClientsStore(), this[_0x4b4834(156)] = _0x5863ae || new MemoryAuthorizationCodeStore(), this["accessTokensStore"] = _0x1df822 || new MemoryAccessTokensStore(), this["refreshTokensStore"] = _0x10e970 || new MemoryRefreshTokensStore(), this["generateAuthorizationCode"] = _0x5ac15c || generateAuthorizationCodeFunction, this[_0x225ac6(158)] = _0x2ed076["NEmHZ"](_0x35c5ae, generateAccessTokenFunction), this[_0x225ac6(197)] = _0x2ed076[_0x4b4834(130)](_0x58df46, generateRefreshTokenFunction), this[_0x4b4834(121)] = _0x2ed076["NEmHZ"](_0x1e37d4, ACCESS_TOKEN_EXPIRES_IN), this[_0x225ac6(159)] = _0x2ed076["brCoD"](_0x540c69, REFRESH_TOKEN_EXPIRES_IN);
524
+ }
525
+ async [_0x127d59(180)](_0x1ba629, _0x5cbd93, _0x22631e) {
526
+ const _0x1750cf = _0x4f1f27, _0x333464 = _0x127d59, _0x4fe0ce = {};
527
+ _0x4fe0ce["IDxWU"] = function(_0xc53598, _0x43bd3e) {
528
+ return _0xc53598 !== _0x43bd3e;
529
+ }, _0x4fe0ce[_0x1750cf(195)] = _0x333464(202);
530
+ const _0x2f857f = _0x4fe0ce, _0x47f797 = this[_0x1750cf(165)](), _0x592160 = {};
531
+ _0x592160[_0x333464(150)] = _0x47f797;
532
+ const _0x128d00 = new URLSearchParams(_0x592160);
533
+ _0x2f857f["IDxWU"](_0x5cbd93[_0x333464(202)], void 0) && _0x128d00["set"](_0x2f857f["YzTge"], _0x5cbd93["state"]);
534
+ const _0x282f56 = {};
535
+ _0x282f56[_0x1750cf(166)] = _0x1ba629, _0x282f56[_0x1750cf(141)] = _0x5cbd93, await this["codesStore"][_0x333464(172)](_0x47f797, _0x282f56);
536
+ const _0x28aaeb = new URL(_0x5cbd93[_0x333464(178)] || _0x1ba629["redirect_uris"][106 * -16 + -2344 + 10 * 404]);
537
+ _0x28aaeb[_0x1750cf(168)] = _0x128d00[_0x333464(124)](), _0x22631e[_0x1750cf(123)](_0x28aaeb[_0x1750cf(124)]());
538
+ }
539
+ async ["challengeForAuthorizationCode"](_0x259318, _0x4e5193) {
540
+ const _0x185831 = _0x4f1f27, _0x59cafd = _0x127d59, _0x969209 = await this["codesStore"][_0x185831(167)](_0x4e5193);
541
+ if (!_0x969209) throw new InvalidGrantError("Invalid authorization code for this client: " + _0x259318["client_id"]);
542
+ return _0x969209[_0x59cafd(141)][_0x59cafd(187)];
543
+ }
544
+ async [_0x127d59(154)](_0x18ec46, _0x45e62f) {
545
+ const _0x3fdf3d = _0x4f1f27, _0x3606e2 = _0x127d59, _0x4cd957 = {};
546
+ _0x4cd957["XqNjm"] = function(_0x5bed6c, _0x27b1be) {
547
+ return _0x5bed6c !== _0x27b1be;
548
+ }, _0x4cd957[_0x3fdf3d(198)] = function(_0x3826c5, _0x202972) {
549
+ return _0x3826c5 + _0x202972;
550
+ }, _0x4cd957["Rgxxb"] = function(_0x28cc18, _0x3d52ec) {
551
+ return _0x28cc18 * _0x3d52ec;
424
552
  };
425
- const _0x2f2901 = _0x51d368, { clientsStore: _0x106074, codesStore: _0x4d4ffa, accessTokensStore: _0x2378c3, refreshTokensStore: _0x3dc6e1, generateAuthorizationCode: _0x316fb9, generateAccessToken: _0x4806e0, generateRefreshToken: _0x51922a, accessTokenExpiresIn: _0x595091, refreshTokenExpiresIn: _0x55b227 } = _0x58bd5b;
426
- this["clientsStore"] = _0x106074 || new MemoryClientsStore(), this[_0xeb23ac(297)] = _0x4d4ffa || new MemoryAuthorizationCodeStore(), this[_0x59606d(231)] = _0x2378c3 || new MemoryAccessTokensStore(), this["refreshTokensStore"] = _0x3dc6e1 || new MemoryRefreshTokensStore(), this["generateAuthorizationCode"] = _0x2f2901[_0x59606d(301)](_0x316fb9, generateAuthorizationCodeFunction), this[_0x59606d(304)] = _0x4806e0 || generateAccessTokenFunction, this[_0xeb23ac(268)] = _0x2f2901["taYfN"](_0x51922a, generateRefreshTokenFunction), this[_0x59606d(257)] = _0x2f2901["besuu"](_0x595091, ACCESS_TOKEN_EXPIRES_IN), this[_0xeb23ac(225)] = _0x2f2901[_0xeb23ac(301)](_0x55b227, REFRESH_TOKEN_EXPIRES_IN);
553
+ const _0x379992 = _0x4cd957, _0x2a4518 = await this["codesStore"]["getCodeDate"](_0x45e62f);
554
+ if (!_0x2a4518) throw new InvalidGrantError(_0x3606e2(143) + _0x18ec46["client_id"]);
555
+ if (_0x379992[_0x3606e2(161)](_0x2a4518["client"]["client_id"], _0x18ec46["client_id"])) throw new InvalidGrantError("Authorization code was not issued to this client: " + _0x18ec46[_0x3fdf3d(217)]);
556
+ const _0x578ca1 = _0x2a4518[_0x3606e2(141)]["redirectUri"] || _0x2a4518["client"][_0x3fdf3d(206)][371 + 5 * 778 + -1 * 4261];
557
+ await this["codesStore"][_0x3fdf3d(134)](_0x45e62f);
558
+ const _0x2cc2cb = this["generateAccessToken"](), _0x14678b = this[_0x3606e2(197)](), _0x716e88 = {};
559
+ _0x716e88[_0x3606e2(178)] = _0x578ca1;
560
+ const _0x18ff4e = { "token": _0x2cc2cb, "clientId": _0x18ec46["client_id"], "scopes": _0x2a4518[_0x3606e2(141)][_0x3606e2(164)] || [], "expiresAt": _0x379992[_0x3fdf3d(198)](Date[_0x3606e2(190)](), _0x379992[_0x3606e2(148)](this["accessTokenExpiresIn"], -1 * 6668 + 35 * -222 + 15438 * 1)), "resource": _0x2a4518[_0x3fdf3d(141)][_0x3fdf3d(138)], "extra": _0x716e88 };
561
+ await this["accessTokensStore"]["saveAccessToken"](_0x2cc2cb, _0x18ff4e);
562
+ const _0x87282c = {};
563
+ _0x87282c["isRevoked"] = ![];
564
+ const _0x1a1a78 = { "token": _0x14678b, "clientId": _0x18ec46[_0x3606e2(217)], "scopes": _0x2a4518[_0x3606e2(141)]["scopes"] || [], "expiresAt": _0x379992["znCUL"](Date["now"](), _0x379992[_0x3fdf3d(148)](this[_0x3fdf3d(159)], 1 * 5461 + -1024 + 7 * -491)), "extra": _0x87282c };
565
+ return await this["refreshTokensStore"][_0x3606e2(200)](_0x14678b, _0x1a1a78), { "access_token": _0x2cc2cb, "refresh_token": _0x14678b, "token_type": _0x3606e2(185), "expires_in": this[_0x3fdf3d(121)], "scope": (_0x2a4518["params"]["scopes"] || [])["join"](" ") };
427
566
  }
428
- async ["authorize"](_0x8f39e7, _0x58d999, _0x90761b) {
429
- const _0x3df655 = _0x3c4c4b, _0x53309e = _0xe43874, _0x3ff44c = {};
430
- _0x3ff44c["RsOud"] = function(_0x50a50c, _0x4938cb) {
431
- return _0x50a50c !== _0x4938cb;
567
+ async ["exchangeRefreshToken"](_0x275849, _0x54f7d7) {
568
+ const _0x21ed17 = _0x4f1f27, _0x34b86e = _0x127d59, _0x405613 = {};
569
+ _0x405613["EUXXd"] = function(_0x2a995c, _0x4b7d91) {
570
+ return _0x2a995c < _0x4b7d91;
571
+ }, _0x405613["ZnKXL"] = function(_0x5124ad, _0x462798) {
572
+ return _0x5124ad !== _0x462798;
573
+ }, _0x405613[_0x21ed17(125)] = function(_0x3699a0, _0x438497) {
574
+ return _0x3699a0 + _0x438497;
575
+ }, _0x405613[_0x34b86e(212)] = "Bearer";
576
+ const _0x427751 = _0x405613, _0x16a8c5 = await this["refreshTokensStore"]["getRefreshToken"](_0x54f7d7);
577
+ if (!_0x16a8c5) throw new InvalidGrantError(_0x34b86e(146) + _0x275849["client_id"]);
578
+ if (_0x427751[_0x34b86e(127)](_0x16a8c5[_0x34b86e(181)], Date["now"]())) throw new InvalidGrantError(_0x21ed17(209) + _0x275849[_0x34b86e(217)]);
579
+ if (_0x427751["ZnKXL"](_0x16a8c5[_0x21ed17(196)], _0x275849["client_id"])) throw new InvalidGrantError(_0x34b86e(211) + _0x275849[_0x21ed17(217)]);
580
+ await this["refreshTokensStore"][_0x21ed17(176)](_0x54f7d7);
581
+ const _0x11d08f = this["generateAccessToken"](), _0x341610 = this["generateRefreshToken"](), _0x2f39e5 = { "token": _0x54f7d7, "clientId": _0x275849[_0x21ed17(217)], "scopes": _0x16a8c5[_0x34b86e(164)], "expiresAt": _0x427751[_0x21ed17(125)](Date[_0x21ed17(190)](), this["refreshTokenExpiresIn"] * (-2833 * -1 + 11 * -28 + -61 * 25)) };
582
+ return await this["refreshTokensStore"]["saveRefreshToken"](_0x54f7d7, _0x2f39e5), { "access_token": _0x11d08f, "refresh_token": _0x341610, "token_type": _0x427751[_0x34b86e(212)], "expires_in": this["accessTokenExpiresIn"], "scope": _0x16a8c5["scopes"][_0x21ed17(160)](" ") };
583
+ }
584
+ async [_0x127d59(215)](_0x5ece9d) {
585
+ const _0x5a1d54 = _0x127d59, _0x52a1dc = _0x4f1f27, _0x3d1a11 = {};
586
+ _0x3d1a11["OTBiX"] = function(_0x23e008, _0x521daa) {
587
+ return _0x23e008 / _0x521daa;
432
588
  };
433
- const _0x53299b = _0x3ff44c, _0x944856 = this[_0x3df655(265)](), _0x5782b0 = {};
434
- _0x5782b0["code"] = _0x944856;
435
- const _0xd4484b = new URLSearchParams(_0x5782b0);
436
- _0x53299b["RsOud"](_0x58d999["state"], void 0) && _0xd4484b[_0x53309e(270)]("state", _0x58d999["state"]);
437
- const _0x44007f = {};
438
- _0x44007f[_0x53309e(280)] = _0x8f39e7, _0x44007f["params"] = _0x58d999, await this["codesStore"]["saveCodeData"](_0x944856, _0x44007f);
439
- const _0x6096a5 = new URL(_0x58d999["redirectUri"] || _0x8f39e7["redirect_uris"][3433 + -8658 + 1045 * 5]);
440
- _0x6096a5["search"] = _0xd4484b[_0x53309e(258)](), _0x90761b[_0x53309e(227)](_0x6096a5[_0x53309e(258)]());
441
- }
442
- async [_0xe43874(308)](_0xdf69bb, _0x2eb0cc) {
443
- const _0x46df41 = _0xe43874, _0x10b0e1 = await this[_0x46df41(297)]["getCodeDate"](_0x2eb0cc);
444
- if (!_0x10b0e1) throw new InvalidGrantError(_0x46df41(224) + _0xdf69bb[_0x46df41(226)]);
445
- return _0x10b0e1["params"]["codeChallenge"];
446
- }
447
- async ["exchangeAuthorizationCode"](_0x5e11bf, _0x452fb1) {
448
- const _0x15f280 = _0x3c4c4b, _0x126457 = _0xe43874, _0x4ceb2c = {};
449
- _0x4ceb2c["taKwi"] = function(_0x5697ca, _0x396baf) {
450
- return _0x5697ca !== _0x396baf;
451
- }, _0x4ceb2c["cegXx"] = function(_0xa8c6be, _0x486863) {
452
- return _0xa8c6be + _0x486863;
453
- }, _0x4ceb2c[_0x15f280(285)] = function(_0x349471, _0x220da8) {
454
- return _0x349471 * _0x220da8;
455
- }, _0x4ceb2c[_0x15f280(271)] = function(_0x4a0893, _0x5c4387) {
456
- return _0x4a0893 * _0x5c4387;
457
- }, _0x4ceb2c["yaAXj"] = "bearer";
458
- const _0x19faf7 = _0x4ceb2c, _0x3e662e = await this[_0x126457(297)][_0x126457(289)](_0x452fb1);
459
- if (!_0x3e662e) throw new InvalidGrantError(_0x126457(224) + _0x5e11bf[_0x126457(226)]);
460
- if (_0x19faf7["taKwi"](_0x3e662e["client"]["client_id"], _0x5e11bf["client_id"])) throw new InvalidGrantError(_0x15f280(275) + _0x5e11bf[_0x126457(226)]);
461
- await this[_0x15f280(297)][_0x15f280(232)](_0x452fb1);
462
- const _0x1b6733 = this["generateAccessToken"](), _0x370c1b = this["generateRefreshToken"](), _0x1ced36 = { "token": _0x1b6733, "clientId": _0x5e11bf[_0x15f280(226)], "scopes": _0x3e662e[_0x126457(273)]["scopes"] || [], "expiresAt": _0x19faf7[_0x126457(299)](Date[_0x126457(235)](), _0x19faf7[_0x15f280(285)](this["accessTokenExpiresIn"], -4944 + -8490 + 14434)), "resource": _0x3e662e["params"][_0x15f280(237)] };
463
- await this["accessTokensStore"][_0x15f280(272)](_0x1b6733, _0x1ced36);
464
- const _0x57f1e1 = {};
465
- _0x57f1e1[_0x126457(281)] = ![];
466
- const _0x344006 = { "token": _0x370c1b, "clientId": _0x5e11bf[_0x126457(226)], "scopes": _0x3e662e["params"]["scopes"] || [], "expiresAt": _0x19faf7[_0x15f280(299)](Date["now"](), _0x19faf7["zQDvg"](this[_0x15f280(225)], 2 * 4307 + 8 * -521 + -3446)), "extra": _0x57f1e1 };
467
- return await this[_0x15f280(284)][_0x126457(266)](_0x370c1b, _0x344006), { "access_token": _0x1b6733, "refresh_token": _0x370c1b, "token_type": _0x19faf7["yaAXj"], "expires_in": this[_0x126457(257)], "scope": (_0x3e662e["params"]["scopes"] || [])["join"](" ") };
468
- }
469
- async ["exchangeRefreshToken"](_0x224106, _0x3af171) {
470
- const _0x19477d = _0x3c4c4b, _0xf20ae5 = _0xe43874, _0xe12de3 = {};
471
- _0xe12de3["JIFCu"] = function(_0x29a526, _0xe27ecb) {
472
- return _0x29a526 < _0xe27ecb;
473
- }, _0xe12de3[_0x19477d(267)] = function(_0x31ff42, _0x2defe6) {
474
- return _0x31ff42 !== _0x2defe6;
475
- }, _0xe12de3["gnySI"] = function(_0x2abea1, _0x49b0bd) {
476
- return _0x2abea1 + _0x49b0bd;
477
- }, _0xe12de3["JzexV"] = function(_0x496d90, _0x2c5eb1) {
478
- return _0x496d90 * _0x2c5eb1;
479
- }, _0xe12de3[_0xf20ae5(261)] = "Bearer";
480
- const _0x5eb2df = _0xe12de3, _0x3f17a0 = await this[_0x19477d(284)]["getRefreshToken"](_0x3af171);
481
- if (!_0x3f17a0) throw new InvalidGrantError("Refresh token is invalid or has been revoked for this client: " + _0x224106["client_id"]);
482
- if (_0x5eb2df[_0xf20ae5(294)](_0x3f17a0[_0xf20ae5(263)], Date["now"]())) throw new InvalidGrantError("Refresh token has expired for this client: " + _0x224106["client_id"]);
483
- if (_0x5eb2df[_0x19477d(267)](_0x3f17a0["clientId"], _0x224106["client_id"])) throw new InvalidGrantError(_0x19477d(276) + _0x224106[_0xf20ae5(226)]);
484
- await this[_0x19477d(284)]["revokeRefreshToken"](_0x3af171);
485
- const _0x6afb59 = this["generateAccessToken"](), _0x329672 = this[_0xf20ae5(268)](), _0x432a61 = { "token": _0x3af171, "clientId": _0x224106[_0xf20ae5(226)], "scopes": _0x3f17a0[_0x19477d(241)], "expiresAt": _0x5eb2df[_0x19477d(245)](Date["now"](), _0x5eb2df[_0xf20ae5(269)](this[_0x19477d(225)], 1 * 2221 + 8001 + -9222)) };
486
- return await this[_0xf20ae5(284)][_0xf20ae5(266)](_0x3af171, _0x432a61), { "access_token": _0x6afb59, "refresh_token": _0x329672, "token_type": _0x5eb2df[_0x19477d(261)], "expires_in": this[_0xf20ae5(257)], "scope": _0x3f17a0[_0x19477d(241)][_0x19477d(238)](" ") };
487
- }
488
- async [_0xe43874(292)](_0x3947b2) {
489
- const _0x2ba222 = _0x3c4c4b, _0x3fb7d9 = _0x3c4c4b, _0x47740e = await this[_0x2ba222(231)][_0x3fb7d9(303)](_0x3947b2);
490
- if (!_0x47740e || !_0x47740e["expiresAt"]) throw new InvalidTokenError(_0x3fb7d9(298));
491
- return { "token": _0x3947b2, "clientId": _0x47740e["clientId"], "scopes": _0x47740e["scopes"], "expiresAt": Math["floor"](_0x47740e["expiresAt"] / (781 + 8828 + 8609 * -1)), "resource": _0x47740e["resource"] };
492
- }
493
- async ["revokeToken"](_0x42ff7c, _0x4c082d) {
494
- const _0x15b0e7 = _0x3c4c4b, _0x165108 = _0x3c4c4b, _0x55779c = {};
495
- _0x55779c[_0x15b0e7(223)] = function(_0x575e05, _0xe3d8af) {
496
- return _0x575e05 === _0xe3d8af;
497
- }, _0x55779c[_0x165108(251)] = function(_0xbcb15f, _0x5d105e) {
498
- return _0xbcb15f !== _0x5d105e;
499
- }, _0x55779c["uzsQa"] = "refresh_token";
500
- const _0x44ca17 = _0x55779c;
501
- if (_0x44ca17["jCdyX"](_0x4c082d[_0x15b0e7(239)], "access_token")) {
502
- const _0x22f07b = await this["accessTokensStore"]["getAccessToken"](_0x4c082d[_0x15b0e7(277)]);
503
- if (!_0x22f07b || _0x44ca17["adLAw"](_0x22f07b["clientId"], _0x42ff7c[_0x15b0e7(226)])) throw new InvalidTokenError(_0x165108(233) + _0x42ff7c[_0x165108(226)]);
504
- await this[_0x15b0e7(231)][_0x15b0e7(283)](_0x4c082d["token"]);
589
+ const _0x31f97a = _0x3d1a11, _0x7f06e4 = await this[_0x5a1d54(192)]["getAccessToken"](_0x5ece9d);
590
+ if (!_0x7f06e4 || !_0x7f06e4[_0x52a1dc(181)]) throw new InvalidTokenError("Token is invalid");
591
+ return { "token": _0x5ece9d, "clientId": _0x7f06e4["clientId"], "scopes": _0x7f06e4["scopes"], "expiresAt": Math[_0x52a1dc(126)](_0x31f97a[_0x5a1d54(133)](_0x7f06e4["expiresAt"], -728 + 7451 + -5723)), "resource": _0x7f06e4["resource"], "extra": _0x7f06e4[_0x52a1dc(157)] };
592
+ }
593
+ async [_0x127d59(199)](_0x5b33bb, _0x37f304) {
594
+ const _0x507a15 = _0x127d59, _0x2fbd3c = _0x127d59, _0x379e07 = {};
595
+ _0x379e07[_0x507a15(153)] = function(_0x3e18bf, _0x3361a3) {
596
+ return _0x3e18bf === _0x3361a3;
597
+ }, _0x379e07[_0x2fbd3c(169)] = _0x2fbd3c(189), _0x379e07["hWABh"] = _0x507a15(170);
598
+ const _0x2954c9 = _0x379e07;
599
+ if (_0x2954c9["ZIIhI"](_0x37f304["token_type_hint"], _0x2954c9["AleNl"])) {
600
+ const _0x24f5be = await this["accessTokensStore"]["getAccessToken"](_0x37f304["token"]);
601
+ if (!_0x24f5be || _0x24f5be["clientId"] !== _0x5b33bb["client_id"]) throw new InvalidTokenError("Access token is invalid or does not belong to this client: " + _0x5b33bb["client_id"]);
602
+ await this[_0x507a15(192)][_0x507a15(136)](_0x37f304["token"]);
505
603
  } else {
506
- if (_0x4c082d[_0x15b0e7(239)] === _0x44ca17["uzsQa"]) {
507
- const _0xde2495 = await this[_0x15b0e7(284)]["getRefreshToken"](_0x4c082d[_0x165108(277)]);
508
- if (!_0xde2495 || _0xde2495[_0x15b0e7(255)] !== _0x42ff7c[_0x165108(226)]) throw new InvalidTokenError("Refresh token is invalid or does not belong to this client: " + _0x42ff7c["client_id"]);
509
- await this["refreshTokensStore"][_0x15b0e7(234)](_0x4c082d["token"]);
510
- } else throw new InvalidGrantError(_0x165108(296) + _0x4c082d[_0x15b0e7(239)] + " to this client: " + _0x42ff7c[_0x15b0e7(226)]);
604
+ if (_0x37f304[_0x2fbd3c(120)] === _0x2954c9[_0x2fbd3c(155)]) {
605
+ const _0x6202ed = await this["refreshTokensStore"][_0x2fbd3c(140)](_0x37f304["token"]);
606
+ if (!_0x6202ed || _0x6202ed["clientId"] !== _0x5b33bb["client_id"]) throw new InvalidTokenError("Refresh token is invalid or does not belong to this client: " + _0x5b33bb["client_id"]);
607
+ await this["refreshTokensStore"]["revokeRefreshToken"](_0x37f304[_0x507a15(163)]);
608
+ } else throw new InvalidGrantError("Unsupported token type hint: " + _0x37f304["token_type_hint"] + _0x507a15(216) + _0x5b33bb["client_id"]);
511
609
  }
512
610
  }
513
611
  }
514
- const createAuthMiddleware = (_0x3baed3, _0x238dff) => {
515
- const _0x2c5dae = _0xe43874, _0x43e28e = { "ebfKl": function(_0x6689cb, _0x118b09) {
516
- return _0x6689cb(_0x118b09);
517
- }, "kpBZz": function(_0x29f55e, _0xe110e2) {
518
- return _0x29f55e(_0xe110e2);
519
- } }, _0xbcfc6 = async (_0x229d85) => {
520
- const _0x21a8a7 = _0x249d, _0x1edf54 = _0x249d, _0x3bb6bf = await _0x3baed3["verifyAccessToken"](_0x229d85), _0x2fcc24 = { "active": !![], "client_id": _0x3bb6bf[_0x21a8a7(255)], "scope": _0x3bb6bf["scopes"][_0x1edf54(238)](" "), "exp": _0x3bb6bf[_0x1edf54(263)], "aud": _0x3bb6bf["resource"] };
521
- if (!_0x2fcc24[_0x1edf54(236)]) throw new Error(_0x1edf54(302));
522
- const _0xd2b81a = {};
523
- _0xd2b81a["requestedResource"] = _0x2fcc24["aud"], _0xd2b81a["configuredResource"] = _0x238dff;
524
- if (!_0x43e28e["ebfKl"](checkResourceAllowed, _0xd2b81a)) throw new Error("Expected resource indicator " + _0x238dff + _0x1edf54(293) + _0x2fcc24["aud"]);
525
- return { "token": _0x229d85, "clientId": _0x2fcc24[_0x1edf54(226)], "scopes": _0x2fcc24["scope"] ? _0x2fcc24[_0x21a8a7(286)][_0x1edf54(288)](" ") : [], "expiresAt": _0x2fcc24[_0x1edf54(307)] };
526
- }, _0x9b8c4a = {};
527
- return _0x9b8c4a[_0x2c5dae(292)] = _0xbcfc6, requireBearerAuth({ "verifier": _0x9b8c4a, "requiredScopes": [], "resourceMetadataUrl": _0x43e28e["kpBZz"](getOAuthProtectedResourceMetadataUrl, new URL(_0x238dff)) });
612
+ const createAuthMiddleware = (_0x19b1e5, _0x522442) => {
613
+ const _0x5070a3 = _0x127d59, _0x64a2b5 = _0x4f1f27, _0x4c109f = { "FFZiq": function(_0x5201f0, _0x33b638) {
614
+ return _0x5201f0(_0x33b638);
615
+ }, "rWZDT": function(_0x5815b7, _0x169377) {
616
+ return _0x5815b7(_0x169377);
617
+ } }, _0x4b51f6 = async (_0xb5399b) => {
618
+ var _a;
619
+ const _0x4aba80 = _0x1255, _0x40c4f6 = _0x1255, _0x3281c2 = await _0x19b1e5["verifyAccessToken"](_0xb5399b), _0x3129ac = { "active": !![], "client_id": _0x3281c2["clientId"], "scope": _0x3281c2["scopes"][_0x4aba80(160)](" "), "exp": _0x3281c2["expiresAt"], "aud": _0x3281c2[_0x4aba80(138)] };
620
+ if (!_0x3129ac[_0x40c4f6(139)]) throw new Error("Resource Indicator (RFC8707) missing");
621
+ const _0x4d39c5 = {};
622
+ _0x4d39c5["requestedResource"] = _0x3129ac[_0x4aba80(139)], _0x4d39c5["configuredResource"] = _0x522442;
623
+ if (!_0x4c109f[_0x40c4f6(210)](checkResourceAllowed, _0x4d39c5)) throw new Error("Expected resource indicator " + _0x522442 + _0x4aba80(145) + _0x3129ac["aud"]);
624
+ return { "token": _0xb5399b, "clientId": _0x3129ac[_0x4aba80(217)], "scopes": _0x3129ac[_0x40c4f6(205)] ? _0x3129ac["scope"]["split"](" ") : [], "expiresAt": _0x3129ac[_0x40c4f6(184)], "redirectUri": (_a = _0x3281c2["extra"]) == null ? void 0 : _a["redirectUri"] };
625
+ }, _0x1ae01a = {};
626
+ return _0x1ae01a[_0x5070a3(215)] = _0x4b51f6, _0x4c109f[_0x64a2b5(171)](requireBearerAuth, { "verifier": _0x1ae01a, "requiredScopes": [], "resourceMetadataUrl": _0x4c109f[_0x5070a3(171)](getOAuthProtectedResourceMetadataUrl, new URL(_0x522442)) });
528
627
  };
529
- const createAuthCallbackRouter = (_0x17454d, ..._0x53ce66) => {
530
- const _0x30326c = _0xe43874, _0x5f5665 = {};
531
- _0x5f5665["XUwJv"] = function(_0x3f35fc, _0x3299fc) {
532
- return _0x3f35fc && _0x3299fc;
533
- };
534
- const _0x22d48d = _0x5f5665, _0x41b8f7 = _0x3b4ea9["Router"](), _0x388e64 = /* @__PURE__ */ new Map();
535
- _0x41b8f7["get"](_0x17454d, _0x3b4ea9["json"](), (_0x14c802, _0x267c78) => {
536
- const _0x58962f = _0x249d, _0x278763 = _0x249d, { code: _0x2440fe, state: _0x2e9b9f, error: _0x2b16d7 } = _0x14c802[_0x58962f(253)];
537
- if (_0x22d48d[_0x58962f(282)](_0x2440fe, _0x2e9b9f)) _0x388e64["set"](_0x2e9b9f, _0x2440fe), _0x267c78["json"]({});
538
- else _0x2b16d7 && _0x267c78[_0x278763(221)](-5182 * 1 + 1 * 8606 + -3024)["send"](_0x278763(278) + _0x2b16d7);
628
+ const createAuthCallbackRouter = (_0x13d88b, ..._0x1bca73) => {
629
+ const _0x3f356d = _0x4f1f27, _0x5d39c6 = _0x4f1f27, _0x34d920 = _0xec42e8[_0x3f356d(194)](), _0x340c25 = /* @__PURE__ */ new Map();
630
+ _0x34d920["get"](_0x13d88b, _0xec42e8["json"](), (_0x5bc39d, _0x37815e) => {
631
+ const _0x16444f = _0x3f356d, _0x33c36e = _0x3f356d, { code: _0x3d6607, state: _0x40ef02, error: _0x5b9601 } = _0x5bc39d[_0x16444f(174)];
632
+ if (_0x3d6607 && _0x40ef02) _0x340c25[_0x33c36e(213)](_0x40ef02, _0x3d6607), _0x37815e["json"]({});
633
+ else _0x5b9601 && _0x37815e[_0x33c36e(191)](-5365 + 1 * 762 + 1 * 5003)[_0x16444f(175)]("OAuth authorization failed: " + _0x5b9601);
539
634
  });
540
- const _0x42e771 = [_0x3b4ea9["json"](), ..._0x53ce66, (_0x3c82ed, _0x3494a0) => {
541
- const _0x5f100c = _0x249d, { state: _0x32e61a } = _0x3c82ed["body"];
542
- if (_0x32e61a && _0x388e64["has"](_0x32e61a)) {
543
- const _0x537ab6 = _0x388e64["get"](_0x32e61a);
544
- _0x388e64["delete"](_0x32e61a);
545
- const _0x654ab8 = {};
546
- _0x654ab8["code"] = _0x537ab6, _0x3494a0["json"](_0x654ab8);
547
- } else _0x3494a0[_0x5f100c(221)](-3066 * -1 + -3516 + -850 * -1)["send"]("No authorization code found for state: " + _0x32e61a);
635
+ const _0x5f17f7 = [_0xec42e8[_0x5d39c6(132)](), ..._0x1bca73, (_0x405472, _0x3cbdc8) => {
636
+ const _0x33f8db = _0x5d39c6, _0x1f3333 = _0x5d39c6, { state: _0x3b0267 } = _0x405472["body"];
637
+ if (_0x3b0267 && _0x340c25["has"](_0x3b0267)) {
638
+ const _0x3d8a4f = _0x340c25[_0x33f8db(135)](_0x3b0267);
639
+ _0x340c25[_0x1f3333(219)](_0x3b0267);
640
+ const _0x3eaf39 = {};
641
+ _0x3eaf39["code"] = _0x3d8a4f, _0x3cbdc8["json"](_0x3eaf39);
642
+ } else _0x3cbdc8["status"](1018 * -7 + -583 * -7 + 3445)[_0x33f8db(175)]("No authorization code found for state: " + _0x3b0267);
548
643
  }];
549
- return _0x41b8f7[_0x30326c(243)](_0x17454d, ..._0x42e771), _0x41b8f7;
644
+ return _0x34d920["post"](_0x13d88b, ..._0x5f17f7), _0x34d920;
550
645
  };
551
- const metadataHandler = (_0x5df121) => {
552
- const _0x3a5bac = _0x3c4c4b, _0x89aaf2 = _0x3c4c4b, _0x6fbdb1 = { "MpGmT": function(_0x2d3620, _0x23bbdc) {
553
- return _0x2d3620(_0x23bbdc);
554
- }, "vILMJ": _0x3a5bac(256) }, _0x3a53c5 = _0x3b4ea9[_0x89aaf2(230)]();
555
- return _0x3a53c5[_0x3a5bac(279)](_0x3ff0bd()), _0x3a53c5[_0x3a5bac(279)](_0x6fbdb1["MpGmT"](allowedMethods, [_0x6fbdb1[_0x89aaf2(229)]])), _0x3a53c5[_0x3a5bac(279)]("/", (_0x489ab3, _0x3f55a2) => {
556
- const _0x54085b = _0x89aaf2;
557
- _0x3f55a2[_0x54085b(221)](2107 + -9895 * -1 + 2 * -5901)["json"](_0x5df121);
558
- }), _0x3a53c5;
646
+ const metadataHandler = (_0x2ae2be) => {
647
+ const _0x32588f = _0x127d59, _0x1e3246 = _0x4f1f27, _0x4a5846 = { "rQtLU": function(_0x14b22d) {
648
+ return _0x14b22d();
649
+ }, "pHSox": "GET" }, _0x1d0da3 = _0xec42e8[_0x32588f(194)]();
650
+ return _0x1d0da3[_0x1e3246(137)](_0x4a5846["rQtLU"](_0xafee6b)), _0x1d0da3["use"](allowedMethods([_0x4a5846[_0x32588f(149)]])), _0x1d0da3["use"]("/", (_0x4455d1, _0x5e3828) => {
651
+ const _0x3789e2 = _0x32588f;
652
+ _0x5e3828[_0x3789e2(191)](-6469 + -3109 + 9778)["json"](_0x2ae2be);
653
+ }), _0x1d0da3;
559
654
  };
560
- const createAuthMetadataRouter = (_0x413313, _0x2ef4ff, _0x34eb23) => {
561
- const _0xc6727a = _0x3c4c4b, _0x8e98bb = _0xe43874, _0x3d56f8 = { "VbkeF": function(_0x3634c9, _0x2927af) {
562
- return _0x3634c9(_0x2927af);
563
- }, "VoqUG": function(_0x24dbd6, _0x30040d) {
564
- return _0x24dbd6(_0x30040d);
565
- }, "tpdlC": function(_0x55324a, _0x5c43ea) {
566
- return _0x55324a(_0x5c43ea);
567
- } }, _0x2d20da = _0x3b4ea9["Router"](), _0x37ed34 = _0x3d56f8["VbkeF"](createOAuthMetadata, { "provider": _0x413313, "issuerUrl": new URL(_0x2ef4ff) }), _0x166518 = { "resource": new URL(_0x34eb23)["href"], "authorization_servers": [_0x37ed34[_0xc6727a(274)]] };
568
- return _0x2d20da["use"](_0xc6727a(260), _0x3d56f8[_0x8e98bb(295)](metadataHandler, _0x166518)), _0x2d20da["use"](_0x8e98bb(262), _0x3d56f8["tpdlC"](metadataHandler, _0x37ed34)), _0x2d20da;
655
+ const createAuthMetadataRouter = (_0x426d42, _0xa88f4, _0x10874d) => {
656
+ const _0x41e0a5 = _0x127d59, _0x378bf2 = _0x4f1f27, _0x4a08ea = { "uNGka": _0x41e0a5(128), "JKLtp": _0x378bf2(152), "pOGFN": function(_0x5bf265, _0xf77ed2) {
657
+ return _0x5bf265(_0xf77ed2);
658
+ } }, _0x3a6779 = _0xec42e8["Router"](), _0x2e3c19 = createOAuthMetadata({ "provider": _0x426d42, "issuerUrl": new URL(_0xa88f4) }), _0x119c5a = { "resource": new URL(_0x10874d)[_0x378bf2(188)], "authorization_servers": [_0x2e3c19[_0x378bf2(119)]] };
659
+ return _0x3a6779["use"](_0x4a08ea[_0x41e0a5(142)], metadataHandler(_0x119c5a)), _0x3a6779[_0x41e0a5(137)](_0x4a08ea[_0x378bf2(144)], _0x4a08ea["pOGFN"](metadataHandler, _0x2e3c19)), _0x3a6779;
569
660
  };
570
- const createAuthRouter = (_0x22196d) => {
571
- return mcpAuthRouter(_0x22196d);
661
+ const createAuthRouter = (_0x39beed) => {
662
+ const _0x7cb428 = _0x127d59, _0x1e14fa = { "AIxvn": function(_0x3bd353, _0x4ca437) {
663
+ return _0x3bd353(_0x4ca437);
664
+ } };
665
+ return _0x1e14fa[_0x7cb428(214)](mcpAuthRouter, _0x39beed);
572
666
  };
573
- function _0x4684() {
574
- const _0x1541a9 = ["/.well-known/oauth-protected-resource", "RCEuG", "/.well-known/oauth-authorization-server", "expiresAt", "7KjLRvp", "generateAuthorizationCode", "saveRefreshToken", "qUaqe", "generateRefreshToken", "JzexV", "set", "zQDvg", "saveAccessToken", "params", "issuer", "Authorization code was not issued to this client: ", "Refresh token was not issued to this client: ", "token", "OAuth authorization failed: ", "use", "client", "isRevoked", "XUwJv", "revokeAccessToken", "refreshTokensStore", "tVRuV", "scope", "200306JLaqFy", "split", "getCodeDate", "1166574pWmdds", "488801NTRbRY", "verifyAccessToken", ", got: ", "JIFCu", "VoqUG", "Unsupported token type hint: ", "codesStore", "Token is invalid", "cegXx", "getClient", "taYfN", "Resource Indicator (RFC8707) missing", "getAccessToken", "generateAccessToken", "clients", "1232dCaLzQ", "exp", "challengeForAuthorizationCode", "status", "28916BWqlor", "jCdyX", "Invalid authorization code for this client: ", "refreshTokenExpiresIn", "client_id", "redirect", "50008pDBaSY", "vILMJ", "Router", "accessTokensStore", "deleteCodeData", "Access token is invalid or does not belong to this client: ", "revokeRefreshToken", "now", "aud", "resource", "join", "token_type_hint", "saveClient", "scopes", "refreshTokens", "post", "delete", "gnySI", "randomBytes", "318lXUBXF", "3529785QLPjOU", "codes", "333wOKJhm", "adLAw", "43240HivtQs", "query", "get", "clientId", "GET", "accessTokenExpiresIn", "toString", "accessTokens"];
575
- _0x4684 = function() {
576
- return _0x1541a9;
577
- };
578
- return _0x4684();
579
- }
580
- const _0x4d15c2 = _0x27a6, _0x969375 = _0x27a6;
581
- function _0x27a6(_0x578df3, _0x35c841) {
582
- const _0x481407 = _0x38cb();
583
- return _0x27a6 = function(_0x283e3d, _0x3a92a3) {
584
- _0x283e3d = _0x283e3d - (-1 * 6333 + 36 * 5 + 6418);
585
- let _0x135a03 = _0x481407[_0x283e3d];
586
- return _0x135a03;
587
- }, _0x27a6(_0x578df3, _0x35c841);
588
- }
589
- (function(_0x31a920, _0x4c86d0) {
590
- const _0x3465cf = _0x27a6, _0x1eb74e = _0x27a6, _0x310b10 = _0x31a920();
667
+ const _0xba5988 = _0x2d47, _0x5ef2b3 = _0x2d47;
668
+ (function(_0x4c0065, _0x31d325) {
669
+ const _0x102c6c = _0x2d47, _0x1ecce7 = _0x2d47, _0x1e6b6c = _0x4c0065();
591
670
  while (!![]) {
592
671
  try {
593
- const _0x852137 = parseInt(_0x3465cf(335)) / (-9797 + 2 * -3769 + 17336) + parseInt(_0x1eb74e(327)) / (6244 + 1 * -3805 + -2437) * (-parseInt(_0x1eb74e(265)) / (1614 * 6 + 394 * -14 + -4165)) + -parseInt(_0x1eb74e(267)) / (6360 + -4663 + -1693) + -parseInt(_0x1eb74e(341)) / (-7380 + 71 * 89 + 1066) * (-parseInt(_0x3465cf(269)) / (26 * -61 + -2057 + 3649)) + parseInt(_0x1eb74e(295)) / (-6095 + 2865 + 1079 * 3) * (parseInt(_0x3465cf(376)) / (-4799 + -1 * -7804 + 111 * -27)) + -parseInt(_0x3465cf(290)) / (7027 * 1 + -9504 + 22 * 113) * (parseInt(_0x1eb74e(387)) / (-122 * 34 + 497 * 1 + 3661)) + parseInt(_0x1eb74e(272)) / (-168 * 25 + -1 * 7059 + -490 * -23);
594
- if (_0x852137 === _0x4c86d0) break;
595
- else _0x310b10["push"](_0x310b10["shift"]());
596
- } catch (_0x291175) {
597
- _0x310b10["push"](_0x310b10["shift"]());
672
+ const _0xc80251 = parseInt(_0x102c6c(471)) / (-588 + -161 * -53 + -7944) * (-parseInt(_0x1ecce7(480)) / (-3109 + -5392 + 8503)) + -parseInt(_0x102c6c(532)) / (3181 + -8 * 1183 + 1 * 6286) * (-parseInt(_0x1ecce7(515)) / (436 + -2143 * -1 + -2575)) + parseInt(_0x1ecce7(536)) / (-3634 + -1 * -6202 + -2563) + -parseInt(_0x102c6c(571)) / (2129 * 2 + 2 * -133 + -3986) * (-parseInt(_0x1ecce7(504)) / (4687 + 3477 + -3 * 2719)) + parseInt(_0x102c6c(581)) / (-2059 * 4 + -9751 * -1 + 1 * -1507) * (parseInt(_0x1ecce7(477)) / (-7685 + 7517 * -1 + 287 * 53)) + parseInt(_0x102c6c(533)) / (-5765 * -1 + -1 * -2161 + -4 * 1979) + -parseInt(_0x102c6c(557)) / (-51 * 173 + 41 * -18 + 1 * 9572);
673
+ if (_0xc80251 === _0x31d325) break;
674
+ else _0x1e6b6c["push"](_0x1e6b6c["shift"]());
675
+ } catch (_0x15dec4) {
676
+ _0x1e6b6c["push"](_0x1e6b6c["shift"]());
598
677
  }
599
678
  }
600
- })(_0x38cb, -2 * -58043 + -126232 + 773259 * 1);
601
- function _0x38cb() {
602
- const _0x45165b = ["handleSseInspector", "completions", "write", "GET", "mcp-sse-proxy-server", "stream-session-id", "EMxHT", "lGlsW", "elicitation", "No client found for session ID ", "1.0.0", "server", "jsonrpc", "9zXbOds", "mcp-stream-twin-client", "zPeZJ", "error", "StreamableHTTP", "7xwxkmh", "value", "details", "qmRGt", "headersSent", "Missing bearer token", "Allow", "auth", "sampling", "code", "headers", "set", "end", "handleSseProxy", "vXsBf", "onclose", "rzmhK", "IQrpu", "name", "tools", "logging", "tGtcf", "jWXaz", "ping", "WWWVd", "sessionId", "shouldClose", "handleStreamInspector", "mcpServer", "onerror", "version", "OrrCz", "2qfrvTF", "mcp-sse-twin-client", "qCTJV", "roots", "verify", "DELETE", "prompts", "resolve", "351221WUbiFl", "body", "Internal server error", "close", "sse-session-id", "resources", "7421345YmxeKP", "_sessionId", "kpQjh", "length", "json", "IkWeJ", "tMQIg", "user", "qoKBW", "SSE", "connect", "protocolVersion", "handleRequest", "Invalid or missing session ID", "method", "DhEmq", "referer", "forEach", "send", "capabilities", "map", "listChanged", "client", "EjXtZ", "randomUUID", "allSettled", "message", "push", "nKUoO", "authorization", "handlePostMessage", "handleSseMessage", "JCqRL", "keys", "values", "3533736LEKWWc", "user-agent", "_sseResponse", "ZEsCW", "SRmvJ", "addRequestListener", "afterInit", "reset", "status", "subscribe", "query", "9647270CJAnSA", "Method not allowed.", "awHjn", "sessionIdGenerator", "3685938AqsJHp", "xYsEG", "5660264afuFcU", "IxQwK", "6dExhCA", "zxoAS", "removeRequestListener", "23037795NgAckT", "BDeTx", "sHVfg", "trzfV", "dLhvm"];
603
- _0x38cb = function() {
604
- return _0x45165b;
679
+ })(_0x291b, -1087134 + -26902 * -1 + 1631827);
680
+ function _0x2d47(_0x5bb66f, _0x400ccc) {
681
+ const _0x199ffd = _0x291b();
682
+ return _0x2d47 = function(_0x446088, _0x3373a3) {
683
+ _0x446088 = _0x446088 - (-5465 + 7172 + 1 * -1247);
684
+ let _0x51b535 = _0x199ffd[_0x446088];
685
+ return _0x51b535;
686
+ }, _0x2d47(_0x5bb66f, _0x400ccc);
687
+ }
688
+ function _0x291b() {
689
+ const _0x14d326 = ["message", "subscribe", "addNotificationListener", "event: close\ndata: \n\n", "listChanged", "8734599AkTAzm", "WDwuj", "shouldClose", "2EdcnDx", "onclose", "error", "xQTaf", "accept", "connect", "details", "end", "tTEpX", "Savqr", "No client found for session ID ", "Method not allowed.", "verify", "auth", "handleRequest", "url", "_notificationHandlers", "handleWebSocket", "length", "json", "mcp-socket-twin-client", "iJYRJ", "mcp-server", "server", "182llvKCz", "NANjm", "value", "completions", "protocolVersion", "qvQdx", "sse-session-id", "ping", "mcp-session-id", "keys", "tLvAF", "164vgPyEd", "handleSseProxy", "jlwsJ", "sQKbx", "tools", "JtlEB", "prompts", "JbNzm", "cyRCJ", "dJnin", "afterInit", "sampling", "WqgNn", "qSNcZ", "code", "DELETE", "bonKW", "44967tFuEYG", "7374560hqUzIE", "body", "set", "5298095GAlGQW", "capabilities", "query", "push", "user", "headersSent", "map", "BkXdQ", "gSfFs", "sessionId", "write", "iMpqN", "ErRDQ", "Oqkqt", "status", "tFxkc", "WuneN", "version", "fulfilled", "logging", "transport", "39302054TcqqMG", "1.0.0", "notifications/initialized", "uuogb", "BDrVA", "includes", "name", "_sessionId", "HjRbb", "elicitation", "Dwtny", "referer", "send", "tIHLW", "193590opGJPI", "token", "x-forwarded-for", "LVmNq", "JGpQa", "user-agent", "forEach", "values", "headers", "wmAfK", "8BoJHMH", "resolve", "WebSocket", "AtduA", "xTmPn", "method", "Allow", "GHsdz", "resources", "jsonrpc", "roots", "fbAOS", "get", "close", "stream-session-id", "http://localhost", "reset", "mcp-sse-proxy-server", "_sseResponse", "POST", "IPRWX", "OLalj", "client", "onerror", "UhSLE", "76516CiRKQp"];
690
+ _0x291b = function() {
691
+ return _0x14d326;
605
692
  };
606
- return _0x38cb();
693
+ return _0x291b();
607
694
  }
608
- const auth = ({ secret: _0x13b538 }) => (_0x5ab11b, _0x46174f, _0x2f7802) => {
695
+ const auth = ({ secret: _0xa3b1 }) => (_0x193369, _0xfe7e71, _0x4f0e84) => {
609
696
  var _a;
610
- const _0x348030 = _0x27a6, _0x123859 = _0x27a6, _0x4cc780 = { "gjxBL": _0x348030(300), "BDeTx": function(_0x294845) {
611
- return _0x294845();
612
- }, "JCqRL": "Invalid bearer token" }, _0x57b212 = (_a = _0x5ab11b[_0x348030(305)][_0x348030(370)]) == null ? void 0 : _a["split"](" ")[-4745 + 4444 + -1 * -302];
613
- if (!_0x57b212) {
614
- _0x46174f[_0x123859(384)](232 * 6 + 2267 + -3258)["send"](_0x4cc780["gjxBL"]);
697
+ const _0x389aed = _0x2d47, _0x5887f3 = _0x2d47, _0x1cd08b = {};
698
+ _0x1cd08b[_0x389aed(570)] = "Missing bearer token", _0x1cd08b["gIZEr"] = "Invalid bearer token";
699
+ const _0x7c4a55 = _0x1cd08b, _0x2e5a22 = (_a = _0x193369["headers"]["authorization"]) == null ? void 0 : _a["split"](" ")[-4 * 653 + 1 * 4141 + -1528];
700
+ if (!_0x2e5a22) {
701
+ _0xfe7e71["status"](8248 + 2531 * 1 + -1 * 10378)["send"](_0x7c4a55[_0x389aed(570)]);
615
702
  return;
616
703
  }
617
704
  try {
618
- _0x5ab11b[_0x123859(348)] = _0xb6e97a[_0x348030(331)](_0x57b212, _0x13b538), _0x4cc780[_0x348030(273)](_0x2f7802);
619
- } catch (_0x47bca2) {
620
- const _0x48ecab = {};
621
- _0x48ecab[_0x348030(293)] = _0x4cc780[_0x123859(373)], _0x48ecab[_0x123859(297)] = _0x47bca2[_0x348030(367)], _0x46174f[_0x123859(384)](17 * -169 + 1848 * -2 + 6972)["json"](_0x48ecab);
705
+ _0x193369[_0x5887f3(540)] = _0x55456e[_0x389aed(492)](_0x2e5a22, _0xa3b1), _0x4f0e84();
706
+ } catch (_0x199088) {
707
+ const _0x2070cc = {};
708
+ _0x2070cc["error"] = _0x7c4a55["gIZEr"], _0x2070cc[_0x389aed(486)] = _0x199088["message"], _0xfe7e71["status"](-6652 + 1 * 1126 + 5929)["json"](_0x2070cc);
622
709
  }
623
710
  };
624
- const getDeviceInfo = (_0x149038) => ({ "ip": _0x149038["headers"]["x-forwarded-for"] || _0x149038["ip"] || "", "userAgent": _0x149038[_0x4d15c2(305)][_0x969375(377)] || "", "acceptLanguage": _0x149038[_0x969375(305)]["accept-language"] || "", "referer": _0x149038[_0x969375(305)][_0x969375(357)] || "" }), forwardProxyServer = (_0x1e276c, _0x19a185) => {
625
- const _0x20e5b9 = _0x969375, _0x13bc4d = { "jWXaz": function(_0x10bfe8, _0x36d00b, _0x142672) {
626
- return _0x10bfe8(_0x36d00b, _0x142672);
627
- }, "KfZbo": function(_0x3478f5, _0x3baeb0, _0x2019f4) {
628
- return _0x3478f5(_0x3baeb0, _0x2019f4);
711
+ const jwtAuth = (_0x138759, _0x2162dc) => {
712
+ const _0x351d7b = _0x2d47, _0x190f54 = _0x2d47, _0x5a757d = {};
713
+ _0x5a757d["Hahiu"] = function(_0x478c60, _0x2a51c1) {
714
+ return _0x478c60 + _0x2a51c1;
715
+ }, _0x5a757d[_0x351d7b(478)] = _0x351d7b(572), _0x5a757d["qvQdx"] = "Invalid bearer token";
716
+ const _0x38d61e = _0x5a757d, _0x31600a = new URL(_0x38d61e["Hahiu"]("http://localhost", _0x138759["url"])), _0x287dcf = _0x31600a["searchParams"]["get"](_0x38d61e[_0x190f54(478)]);
717
+ if (!_0x287dcf) throw new Error("Missing bearer token");
718
+ try {
719
+ _0x138759[_0x351d7b(540)] = _0x55456e["verify"](_0x287dcf, _0x2162dc);
720
+ } catch (_0x8dc9c2) {
721
+ throw new Error(_0x38d61e[_0x351d7b(509)]);
722
+ }
723
+ };
724
+ const getDeviceInfo = (_0x173bc1) => ({ "ip": _0x173bc1["headers"][_0xba5988(573)] || _0x173bc1["ip"] || "", "userAgent": _0x173bc1["headers"][_0xba5988(576)] || "", "acceptLanguage": _0x173bc1[_0x5ef2b3(579)]["accept-language"] || "", "referer": _0x173bc1[_0xba5988(579)][_0x5ef2b3(568)] || "" }), forwardProxyServer = (_0x1df0b3, _0x54278e) => {
725
+ const _0x3bdd00 = _0xba5988, _0x44329d = _0xba5988, _0x4e3800 = { "OLalj": function(_0x34823d, _0x4786b4, _0x3d5d97) {
726
+ return _0x34823d(_0x4786b4, _0x3d5d97);
727
+ }, "Savqr": function(_0x2f6219, _0x485555, _0x38e5e3) {
728
+ return _0x2f6219(_0x485555, _0x38e5e3);
629
729
  } };
630
- forwardServerOnRequest(_0x1e276c, _0x19a185), _0x13bc4d[_0x20e5b9(317)](forwardServerOnNotification, _0x1e276c, _0x19a185);
631
- const _0x2b323f = _0x13bc4d["jWXaz"](forwardClientOnRequest, _0x19a185, _0x1e276c), _0x4715fe = _0x13bc4d["KfZbo"](forwardClientOnNotification, _0x19a185, _0x1e276c);
632
- _0x19a185[_0x20e5b9(381)](_0x2b323f), _0x19a185["addNotificationListener"](_0x4715fe), _0x1e276c["onclose"] = () => {
633
- const _0x119dbd = _0x20e5b9;
634
- _0x19a185[_0x119dbd(271)](_0x2b323f), _0x19a185["removeNotificationListener"](_0x4715fe);
730
+ _0x4e3800[_0x3bdd00(467)](forwardServerOnRequest, _0x1df0b3, _0x54278e), forwardServerOnNotification(_0x1df0b3, _0x54278e);
731
+ const _0xe57e0f = _0x4e3800[_0x3bdd00(489)](forwardClientOnRequest, _0x54278e, _0x1df0b3), _0x3216a5 = _0x4e3800["OLalj"](forwardClientOnNotification, _0x54278e, _0x1df0b3);
732
+ _0x54278e["addRequestListener"](_0xe57e0f), _0x54278e[_0x44329d(474)](_0x3216a5), _0x1df0b3["onclose"] = () => {
733
+ _0x54278e["removeRequestListener"](_0xe57e0f), _0x54278e["removeNotificationListener"](_0x3216a5);
635
734
  };
636
- }, initTwinClientHandler = (_0x2ad7a3, _0x1154c9) => {
637
- const _0x1c937a = _0x4d15c2, _0x342b40 = {};
638
- _0x342b40["UFacz"] = "initialize", _0x342b40["zPeZJ"] = "notifications/initialized", _0x342b40[_0x1c937a(349)] = "event: close\ndata: \n\n";
639
- const _0x56464f = _0x342b40, _0x36e58a = () => {
640
- const _0x70f09d = _0x1c937a, _0x4824c9 = _0x1c937a, _0x5a1392 = {};
641
- _0x5a1392[_0x70f09d(362)] = !![];
642
- const _0x45d212 = {};
643
- _0x45d212[_0x70f09d(385)] = !![], _0x45d212[_0x70f09d(362)] = !![];
644
- const _0x532829 = {};
645
- _0x532829["listChanged"] = !![];
646
- const _0x2c89b9 = {};
647
- _0x2c89b9["prompts"] = _0x5a1392, _0x2c89b9["resources"] = _0x45d212, _0x2c89b9[_0x4824c9(314)] = _0x532829, _0x2c89b9["completions"] = {}, _0x2c89b9["logging"] = {};
648
- const _0x104a35 = _0x2c89b9, _0xac6e72 = {};
649
- _0xac6e72[_0x4824c9(313)] = "mcp-server", _0xac6e72["version"] = _0x70f09d(287), _0x2ad7a3["_requestHandlers"][_0x4824c9(306)](_0x56464f["UFacz"], (_0x3c68dc) => ({ "protocolVersion": _0x3c68dc["params"][_0x70f09d(352)], "capabilities": _0x104a35, "serverInfo": _0xac6e72 })), _0x2ad7a3["_notificationHandlers"][_0x70f09d(306)](_0x56464f[_0x70f09d(292)], () => {
735
+ }, initTwinClientHandler = (_0x7c249, _0x978026) => {
736
+ const _0x2d7938 = _0x5ef2b3, _0x298da8 = _0xba5988, _0x3fc174 = { "rAXgw": _0x2d7938(559), "mlzRA": _0x298da8(475), "dJnin": function(_0x1c9439, _0x365c84) {
737
+ return _0x1c9439 instanceof _0x365c84;
738
+ }, "qSNcZ": function(_0x424002, _0x184eee, _0x2209ae) {
739
+ return _0x424002(_0x184eee, _0x2209ae);
740
+ } }, _0x4df33a = () => {
741
+ const _0x1028f2 = _0x298da8, _0x1414b8 = _0x2d7938, _0x507ad0 = {};
742
+ _0x507ad0["listChanged"] = !![];
743
+ const _0x28ec31 = {};
744
+ _0x28ec31[_0x1028f2(473)] = !![], _0x28ec31[_0x1414b8(476)] = !![];
745
+ const _0x26607a = {};
746
+ _0x26607a[_0x1028f2(476)] = !![];
747
+ const _0x474c77 = {};
748
+ _0x474c77["prompts"] = _0x507ad0, _0x474c77["resources"] = _0x28ec31, _0x474c77[_0x1414b8(519)] = _0x26607a, _0x474c77[_0x1414b8(507)] = {}, _0x474c77[_0x1028f2(555)] = {};
749
+ const _0x4e2671 = _0x474c77, _0x2ad1bf = {};
750
+ _0x2ad1bf["name"] = _0x1414b8(502), _0x2ad1bf[_0x1414b8(553)] = "1.0.0", _0x7c249["_requestHandlers"][_0x1028f2(535)]("initialize", (_0x3f7a0d) => ({ "protocolVersion": _0x3f7a0d["params"][_0x1028f2(508)], "capabilities": _0x4e2671, "serverInfo": _0x2ad1bf })), _0x7c249[_0x1414b8(496)]["set"](_0x3fc174["rAXgw"], () => {
650
751
  });
651
- }, _0x27a111 = () => {
652
- const _0x18133e = {};
653
- _0x18133e["lUgOo"] = _0x56464f["qoKBW"];
654
- const _0x40723e = _0x18133e;
655
- _0x1154c9 instanceof SSEServerTransport && (_0x1154c9["close"] = () => {
752
+ }, _0x52ab13 = () => {
753
+ const _0x45f094 = _0x298da8, _0x3f0edf = _0x2d7938, _0x4b80bf = {};
754
+ _0x4b80bf[_0x45f094(531)] = _0x3fc174["mlzRA"];
755
+ const _0x22437b = _0x4b80bf;
756
+ _0x3fc174[_0x45f094(524)](_0x978026, SSEServerTransport) && (_0x978026[_0x3f0edf(594)] = () => {
656
757
  var _a, _b;
657
- const _0x4e33f3 = _0x27a6, _0x49e16e = _0x27a6;
658
- return (_a = _0x1154c9[_0x4e33f3(378)]) == null ? void 0 : _a[_0x4e33f3(279)](_0x40723e["lUgOo"])["end"](), _0x1154c9[_0x4e33f3(378)] = void 0, (_b = _0x1154c9[_0x49e16e(310)]) == null ? void 0 : _b.call(_0x1154c9), Promise[_0x4e33f3(334)]();
758
+ const _0x8028fb = _0x3f0edf, _0x577b4b = _0x3f0edf;
759
+ return (_a = _0x978026["_sseResponse"]) == null ? void 0 : _a[_0x8028fb(546)](_0x22437b["bonKW"])["end"](), _0x978026[_0x577b4b(464)] = void 0, (_b = _0x978026["onclose"]) == null ? void 0 : _b.call(_0x978026), Promise[_0x8028fb(582)]();
659
760
  });
660
- }, _0x268bfe = {};
661
- _0x268bfe["beforeInit"] = _0x36e58a, _0x268bfe[_0x1c937a(382)] = _0x27a111, initClientHandler(_0x2ad7a3, _0x268bfe);
761
+ }, _0x18fd4b = {};
762
+ _0x18fd4b["beforeInit"] = _0x4df33a, _0x18fd4b[_0x2d7938(525)] = _0x52ab13, _0x3fc174[_0x2d7938(528)](initClientHandler, _0x7c249, _0x18fd4b);
662
763
  };
663
764
  const useProxyHandles = () => {
664
- const _0x356f5f = _0x4d15c2, _0xa78d72 = _0x4d15c2, _0x521a3b = { "IQrpu": function(_0x3297db, _0x3a018a) {
665
- return _0x3297db(_0x3a018a);
666
- }, "vXsBf": _0x356f5f(350), "kLinO": _0x356f5f(339), "PbSkZ": _0x356f5f(338), "SRmvJ": _0x356f5f(328), "xYsEG": _0x356f5f(287), "WOwsg": function(_0x579f29, _0x325946) {
667
- return _0x579f29(_0x325946);
668
- }, "XabnH": function(_0x51bf20, _0xe5ae99, _0x2d0b2d) {
669
- return _0x51bf20(_0xe5ae99, _0x2d0b2d);
670
- }, "zxoAS": _0xa78d72(281), "EMxHT": function(_0x3ef8bf, _0x5b8003) {
671
- return _0x3ef8bf(_0x5b8003);
672
- }, "OrrCz": function(_0x319a63, _0x15923f, _0xe8bd8a) {
673
- return _0x319a63(_0x15923f, _0xe8bd8a);
674
- }, "DhEmq": function(_0x4e94c5, _0x54cd90) {
675
- return _0x4e94c5 === _0x54cd90;
676
- }, "nKUoO": "POST", "qCTJV": function(_0x1f594f, _0x1156ea, _0x42bb77) {
677
- return _0x1f594f(_0x1156ea, _0x42bb77);
678
- }, "IkWeJ": _0xa78d72(280), "tMQIg": _0x356f5f(332), "dLhvm": "GET, POST, DELETE", "VenRq": "2.0", "rzmhK": "mcp-session-id", "CGiaz": function(_0x3e93de, _0x145817) {
679
- return _0x3e93de === _0x145817;
680
- }, "peXdP": _0xa78d72(291), "qmRGt": function(_0x3970f6, _0x1d1f1c, _0x48f8ed) {
681
- return _0x3970f6(_0x1d1f1c, _0x48f8ed);
682
- }, "kpQjh": "Bad Request: No valid session ID provided", "xqeyg": _0x356f5f(337), "tGtcf": function(_0x14a423, _0x32173d, _0x46874a) {
683
- return _0x14a423(_0x32173d, _0x46874a);
684
- }, "WWWVd": function(_0x4f62f6, _0x212b31) {
685
- return _0x4f62f6 === _0x212b31;
686
- }, "sHVfg": function(_0x28831d, _0x45369b) {
687
- return _0x28831d === _0x45369b;
688
- }, "ZEsCW": function(_0x137c6a, _0xae6e0e, _0x7a3e7b) {
689
- return _0x137c6a(_0xae6e0e, _0x7a3e7b);
690
- }, "wYJPs": function(_0x12d2c0, _0x3f276d) {
691
- return _0x12d2c0 === _0x3f276d;
692
- }, "EjXtZ": "mcp-stream-proxy-server", "IxQwK": "StreamableHTTP", "RDJUO": function(_0x19bd22, _0x4c91b4) {
693
- return _0x19bd22 !== _0x4c91b4;
694
- }, "PgxKv": function(_0x374c6d, _0x1ceeaf) {
695
- return _0x374c6d === _0x1ceeaf;
696
- }, "SUhnQ": "fulfilled" }, _0xca7918 = {}, _0x2b58e6 = {}, _0x2d370c = {}, _0x4a2f0f = {};
697
- let _0x2b6c8f = () => {
765
+ const _0x46ea31 = _0x5ef2b3, _0x2e1a8d = _0xba5988, _0x221f25 = { "alGar": function(_0x4bbf0f, _0x3c0a1c) {
766
+ return _0x4bbf0f(_0x3c0a1c);
767
+ }, "jlwsJ": "SSE", "agiqr": _0x46ea31(510), "Oqkqt": _0x46ea31(594), "NANjm": "mcp-sse-twin-client", "Idtbh": function(_0x2611c4, _0x3cfac7) {
768
+ return _0x2611c4(_0x3cfac7);
769
+ }, "LVmNq": function(_0x3e17bb, _0x144b77, _0x39ad00) {
770
+ return _0x3e17bb(_0x144b77, _0x39ad00);
771
+ }, "UIPMh": function(_0x233874, _0x2035d7) {
772
+ return _0x233874(_0x2035d7);
773
+ }, "Dwtny": _0x46ea31(463), "AtduA": "1.0.0", "eHFMQ": "No transport found", "oHhSC": function(_0x2b48b2, _0x1b177e, _0x11f08d) {
774
+ return _0x2b48b2(_0x1b177e, _0x11f08d);
775
+ }, "GHsdz": function(_0x4bdb2d, _0xdc597b) {
776
+ return _0x4bdb2d === _0xdc597b;
777
+ }, "JGpQa": "GET", "iMpqN": _0x46ea31(530), "HjRbb": function(_0x209fb5, _0x2c257e) {
778
+ return _0x209fb5(_0x2c257e);
779
+ }, "xTmPn": "GET, POST, DELETE", "sQKbx": "2.0", "yTSaG": _0x2e1a8d(491), "cyRCJ": _0x2e1a8d(512), "AooGk": "text/event-stream", "fbAOS": function(_0x42bb93, _0x15b206) {
780
+ return _0x42bb93 === _0x15b206;
781
+ }, "CpGZm": function(_0x7f7ff) {
782
+ return _0x7f7ff();
783
+ }, "tTEpX": "Invalid or missing session ID", "tFxkc": function(_0x5852be, _0x201b41) {
784
+ return _0x5852be(_0x201b41);
785
+ }, "tLvAF": "StreamableHTTP", "NOdQz": _0x46ea31(460), "vGikC": "mcp-stream-twin-client", "WuneN": function(_0x1265b3, _0x558ad4) {
786
+ return _0x1265b3(_0x558ad4);
787
+ }, "xQTaf": "Bad Request: No valid session ID provided", "iJYRJ": "Internal server error", "wmAfK": function(_0x38357c, _0x960bc) {
788
+ return _0x38357c === _0x960bc;
789
+ }, "lOUtF": "POST", "UhSLE": function(_0xbfe3f7, _0x8e0f64, _0x329a37) {
790
+ return _0xbfe3f7(_0x8e0f64, _0x329a37);
791
+ }, "FWtdw": function(_0x162b72, _0x350585) {
792
+ return _0x162b72 === _0x350585;
793
+ }, "gSfFs": "mcp-stream-proxy-server", "JtlEB": function(_0x14ab37, _0x769a56) {
794
+ return _0x14ab37(_0x769a56);
795
+ }, "MpuHH": function(_0x5972b0, _0x32e951, _0x2f0712) {
796
+ return _0x5972b0(_0x32e951, _0x2f0712);
797
+ }, "IPRWX": _0x46ea31(583), "QICRf": function(_0x393c99, _0x38328d) {
798
+ return _0x393c99 + _0x38328d;
799
+ }, "BDrVA": _0x46ea31(461), "WqgNn": _0x2e1a8d(545), "JbNzm": function(_0x16e03e, _0x53d5c9, _0x4ea158) {
800
+ return _0x16e03e(_0x53d5c9, _0x4ea158);
801
+ }, "uuogb": function(_0x3e6a27, _0x45c05c) {
802
+ return _0x3e6a27 !== _0x45c05c;
803
+ }, "ErRDQ": _0x2e1a8d(554) }, _0x49e752 = {}, _0x284689 = {}, _0x4c5c52 = {}, _0xa3a621 = {};
804
+ let _0xa96593 = () => {
698
805
  };
699
- const _0x3d2fa1 = (_0x3df710) => {
700
- _0x2b6c8f = _0x3df710;
806
+ const _0x3fa284 = (_0x2369bc) => {
807
+ _0xa96593 = _0x2369bc;
701
808
  };
702
- let _0x595907 = () => {
809
+ let _0x43f5b8 = () => {
703
810
  };
704
- const _0x223176 = (_0x51fe0e) => {
705
- _0x595907 = _0x51fe0e;
706
- }, _0x517e01 = async (_0x12d335, _0x29f340, _0x1cae8b) => {
707
- const _0x240115 = _0x356f5f, _0x27d88a = _0xa78d72, _0x4e6fba = new SSEServerTransport(_0x1cae8b, _0x29f340), _0x117b22 = _0x12d335[_0x240115(305)][_0x521a3b["kLinO"]];
708
- _0x117b22 && (_0x4e6fba[_0x240115(342)] = _0x117b22);
709
- const _0x5ec0b6 = _0x4e6fba[_0x27d88a(320)];
710
- _0xca7918[_0x5ec0b6] = _0x4e6fba, _0x12d335["on"](_0x521a3b["PbSkZ"], () => {
711
- const _0x1bb0e2 = _0x27d88a;
712
- _0x4e6fba[_0x1bb0e2(338)](), delete _0xca7918[_0x5ec0b6], delete _0x2b58e6[_0x5ec0b6];
811
+ const _0x56cd0a = (_0x46766e) => {
812
+ _0x43f5b8 = _0x46766e;
813
+ }, _0x2364bd = async (_0x310dfa, _0xc5346c, _0x5ddf26) => {
814
+ const _0x28c90e = _0x46ea31, _0x1622d2 = _0x2e1a8d, _0x371d62 = { "LnkSG": function(_0x480c8a, _0x1892a0) {
815
+ return _0x221f25["alGar"](_0x480c8a, _0x1892a0);
816
+ }, "hAiCT": _0x221f25["jlwsJ"] }, _0x5e557e = new SSEServerTransport(_0x5ddf26, _0xc5346c), _0x46af28 = _0x310dfa["headers"][_0x221f25["agiqr"]];
817
+ _0x46af28 && (_0x5e557e[_0x28c90e(564)] = _0x46af28);
818
+ const _0xc7d5bf = _0x5e557e["sessionId"];
819
+ _0x49e752[_0xc7d5bf] = _0x5e557e, _0x310dfa["on"](_0x221f25[_0x28c90e(549)], () => {
820
+ const _0x5288fa = _0x28c90e;
821
+ _0x5e557e[_0x5288fa(594)](), delete _0x49e752[_0xc7d5bf], delete _0x284689[_0xc7d5bf];
713
822
  });
714
- const _0x1c15d3 = {};
715
- _0x1c15d3["listChanged"] = !![];
716
- const _0x345732 = {};
717
- _0x345732[_0x27d88a(385)] = !![], _0x345732["listChanged"] = !![];
718
- const _0x1cd3ac = {};
719
- _0x1cd3ac[_0x240115(362)] = !![];
720
- const _0x2072d8 = {};
721
- _0x2072d8["listChanged"] = !![];
722
- const _0x39f2d8 = {};
723
- _0x39f2d8[_0x27d88a(333)] = _0x1c15d3, _0x39f2d8["resources"] = _0x345732, _0x39f2d8[_0x27d88a(314)] = _0x1cd3ac, _0x39f2d8[_0x240115(278)] = {}, _0x39f2d8[_0x27d88a(315)] = {}, _0x39f2d8[_0x240115(330)] = _0x2072d8, _0x39f2d8[_0x27d88a(303)] = {}, _0x39f2d8[_0x240115(285)] = {};
724
- const _0x229650 = _0x39f2d8, _0x4cd952 = {};
725
- _0x4cd952["name"] = _0x521a3b[_0x27d88a(380)], _0x4cd952[_0x27d88a(325)] = _0x521a3b[_0x240115(266)];
726
- const _0x1b1021 = {};
727
- _0x1b1021[_0x27d88a(360)] = _0x229650;
728
- const _0x28a162 = new Client(_0x4cd952, _0x1b1021);
729
- _0x2b58e6[_0x5ec0b6] = { "client": _0x28a162, "transport": _0x4e6fba, "user": _0x12d335[_0x240115(302)] || _0x12d335[_0x240115(348)], "device": _0x521a3b["WOwsg"](getDeviceInfo, _0x12d335), "type": _0x27d88a(350) }, _0x4e6fba["onerror"] = (_0x5cd65c) => {
730
- const _0x2ac346 = _0x240115;
731
- _0x521a3b["IQrpu"](_0x2b6c8f, { "client": _0x28a162, "transport": _0x4e6fba, "error": _0x5cd65c, "type": _0x521a3b[_0x2ac346(309)] });
732
- }, _0x521a3b["XabnH"](initTwinClientHandler, _0x28a162, _0x4e6fba), await _0x28a162["connect"](_0x4e6fba);
733
- }, _0xd3034b = async (_0x162351, _0x32540f, _0x44723c) => {
823
+ const _0x504c52 = {};
824
+ _0x504c52["listChanged"] = !![];
825
+ const _0x1d83ae = {};
826
+ _0x1d83ae["subscribe"] = !![], _0x1d83ae["listChanged"] = !![];
827
+ const _0x494b36 = {};
828
+ _0x494b36[_0x28c90e(476)] = !![];
829
+ const _0x4b820a = {};
830
+ _0x4b820a[_0x28c90e(476)] = !![];
831
+ const _0x4ef2ba = {};
832
+ _0x4ef2ba[_0x1622d2(521)] = _0x504c52, _0x4ef2ba["resources"] = _0x1d83ae, _0x4ef2ba[_0x28c90e(519)] = _0x494b36, _0x4ef2ba["completions"] = {}, _0x4ef2ba[_0x1622d2(555)] = {}, _0x4ef2ba["roots"] = _0x4b820a, _0x4ef2ba["sampling"] = {}, _0x4ef2ba["elicitation"] = {};
833
+ const _0x28fff2 = _0x4ef2ba, _0x4f166b = {};
834
+ _0x4f166b["name"] = _0x221f25[_0x1622d2(505)], _0x4f166b["version"] = "1.0.0";
835
+ const _0x23ab06 = {};
836
+ _0x23ab06["capabilities"] = _0x28fff2;
837
+ const _0x4ee7aa = new Client(_0x4f166b, _0x23ab06);
838
+ _0x284689[_0xc7d5bf] = { "client": _0x4ee7aa, "transport": _0x5e557e, "user": _0x310dfa[_0x28c90e(493)] || _0x310dfa["user"], "device": _0x221f25["Idtbh"](getDeviceInfo, _0x310dfa), "type": _0x221f25[_0x28c90e(517)] }, _0x5e557e["onerror"] = (_0x44d348) => {
839
+ _0x371d62["LnkSG"](_0xa96593, { "client": _0x4ee7aa, "transport": _0x5e557e, "error": _0x44d348, "type": _0x371d62["hAiCT"] });
840
+ }, _0x221f25[_0x28c90e(574)](initTwinClientHandler, _0x4ee7aa, _0x5e557e), await _0x4ee7aa["connect"](_0x5e557e);
841
+ }, _0x4ff2b8 = async (_0x529750, _0xbf55dc, _0x3c2339) => {
734
842
  var _a;
735
- const _0x4dff13 = _0xa78d72, _0x2f79ac = _0xa78d72, _0x2ef0b0 = { "XbcEv": function(_0x51da5a, _0x12e9fd) {
736
- return _0x51da5a(_0x12e9fd);
737
- }, "BigXJ": _0x521a3b[_0x4dff13(309)] }, _0x2de9da = _0x162351["query"][_0x4dff13(320)], _0x3805e8 = (_a = _0x2b58e6[_0x2de9da]) == null ? void 0 : _a[_0x2f79ac(363)];
738
- if (!_0x3805e8) {
739
- _0x32540f[_0x4dff13(384)](9880 + 7565 + -487 * 35)[_0x2f79ac(359)](_0x2f79ac(286) + _0x2de9da);
843
+ const _0x1c732b = _0x2e1a8d, _0x952030 = _0x46ea31, _0x12666f = _0x529750["query"]["sessionId"], _0x13abc1 = (_a = _0x284689[_0x12666f]) == null ? void 0 : _a["client"];
844
+ if (!_0x13abc1) {
845
+ _0xbf55dc[_0x1c732b(550)](-327 * -14 + -6245 + 2067)[_0x952030(569)]("No client found for session ID " + _0x12666f);
740
846
  return;
741
847
  }
742
- const _0x1fccb8 = new SSEServerTransport(_0x44723c, _0x32540f), _0x56c90f = _0x1fccb8[_0x2f79ac(320)];
743
- _0x2d370c[_0x56c90f] = _0x1fccb8, _0x162351["on"]("close", () => {
744
- const _0x48fdc1 = _0x2f79ac;
745
- _0x1fccb8[_0x48fdc1(338)](), delete _0x2d370c[_0x56c90f], delete _0x4a2f0f[_0x56c90f];
848
+ const _0x537b12 = new SSEServerTransport(_0x3c2339, _0xbf55dc), _0x186622 = _0x537b12["sessionId"];
849
+ _0x4c5c52[_0x186622] = _0x537b12, _0x529750["on"](_0x221f25["Oqkqt"], () => {
850
+ _0x537b12["close"](), delete _0x4c5c52[_0x186622], delete _0xa3a621[_0x186622];
746
851
  });
747
- const _0x2efd88 = {};
748
- _0x2efd88[_0x4dff13(362)] = !![];
749
- const _0x39b90e = {};
750
- _0x39b90e["subscribe"] = !![], _0x39b90e[_0x4dff13(362)] = !![];
751
- const _0x3ee090 = {};
752
- _0x3ee090[_0x4dff13(362)] = !![];
753
- const _0x4f625d = {};
754
- _0x4f625d[_0x2f79ac(333)] = _0x2efd88, _0x4f625d["resources"] = _0x39b90e, _0x4f625d["tools"] = _0x3ee090, _0x4f625d[_0x2f79ac(278)] = {}, _0x4f625d[_0x2f79ac(315)] = {};
755
- const _0x52a4f6 = _0x4f625d, _0x260186 = {};
756
- _0x260186[_0x2f79ac(313)] = _0x521a3b[_0x2f79ac(270)], _0x260186[_0x2f79ac(325)] = _0x521a3b[_0x2f79ac(266)];
757
- const _0x535777 = {};
758
- _0x535777["capabilities"] = _0x52a4f6;
759
- const _0xfee25f = new McpServer(_0x260186, _0x535777);
760
- _0x4a2f0f[_0x56c90f] = { "mcpServer": _0xfee25f, "transport": _0x1fccb8, "client": _0x2de9da, "user": _0x162351[_0x4dff13(302)] || _0x162351["user"], "device": _0x521a3b["EMxHT"](getDeviceInfo, _0x162351), "type": _0x521a3b[_0x2f79ac(309)] }, _0x1fccb8["onerror"] = (_0x1e2887) => {
761
- _0x2ef0b0["XbcEv"](_0x595907, { "mcpServer": _0xfee25f, "transport": _0x1fccb8, "client": _0x2de9da, "error": _0x1e2887, "type": _0x2ef0b0["BigXJ"] });
762
- }, await _0xfee25f["connect"](_0x1fccb8), _0x521a3b[_0x2f79ac(326)](forwardProxyServer, _0xfee25f[_0x4dff13(288)], _0x3805e8);
763
- }, _0x169d65 = async (_0x3a8589, _0x51fa73) => {
764
- const _0x491692 = _0x356f5f, _0x5d63a5 = _0x356f5f, _0x13164a = _0x3a8589[_0x491692(386)][_0x5d63a5(320)], _0xeb9fff = _0xca7918[_0x13164a] || _0x2d370c[_0x13164a];
765
- _0xeb9fff ? await _0xeb9fff[_0x491692(371)](_0x3a8589, _0x51fa73) : _0x51fa73[_0x491692(384)](-5 * -1503 + -1 * -3534 + -10649)[_0x5d63a5(359)]("No transport found");
766
- }, _0x54856e = async (_0x389c72, _0x91a3f6) => {
767
- const _0x19c7f8 = _0x356f5f, _0x3d83a4 = _0x356f5f;
768
- if (_0x521a3b[_0x19c7f8(356)](_0x389c72[_0x19c7f8(355)], _0x521a3b[_0x3d83a4(369)])) await _0x521a3b[_0x19c7f8(329)](_0x3846f2, _0x389c72, _0x91a3f6);
769
- else _0x389c72[_0x19c7f8(355)] === _0x521a3b[_0x3d83a4(346)] || _0x389c72["method"] === _0x521a3b["tMQIg"] ? await _0x521a3b["XabnH"](_0xa97d05, _0x389c72, _0x91a3f6) : await _0x521a3b["WOwsg"](_0x5177ff, _0x91a3f6);
770
- }, _0x5177ff = async (_0x578ba5) => {
771
- const _0x34c7fe = _0xa78d72, _0x5e3da9 = _0x356f5f, _0x3bdba1 = {};
772
- _0x3bdba1[_0x34c7fe(301)] = _0x521a3b[_0x34c7fe(276)];
773
- const _0x3f2b60 = {};
774
- _0x3f2b60["code"] = -32e3, _0x3f2b60[_0x5e3da9(367)] = _0x34c7fe(388);
775
- const _0x318b58 = {};
776
- _0x318b58[_0x34c7fe(289)] = _0x521a3b["VenRq"], _0x318b58["error"] = _0x3f2b60, _0x318b58["id"] = null, _0x578ba5["writeHead"](-941 * -4 + 1607 + 13 * -382, _0x3bdba1)[_0x34c7fe(307)](JSON["stringify"](_0x318b58));
777
- }, _0xa97d05 = async (_0x12307f, _0xb6cab3) => {
778
- const _0x41e3a2 = _0xa78d72, _0x430834 = _0xa78d72, _0x5dd679 = _0x12307f["headers"][_0x521a3b["rzmhK"]], _0x2e32a7 = _0xca7918[_0x5dd679];
779
- _0x2e32a7 ? (await _0x2e32a7[_0x41e3a2(353)](_0x12307f, _0xb6cab3), _0x521a3b["CGiaz"](_0x12307f["method"], _0x521a3b[_0x430834(347)]) && (delete _0xca7918[_0x5dd679], delete _0x2b58e6[_0x5dd679])) : _0xb6cab3[_0x430834(384)](5 * -467 + 1 * -2659 + -87 * -62)[_0x41e3a2(359)]("Invalid or missing session ID");
780
- }, _0x3846f2 = async (_0x44f0a1, _0xe79278) => {
781
- const _0x493add = _0xa78d72, _0x35133d = _0x356f5f, _0x5381fd = { "dCZKQ": function(_0x148016, _0x194075) {
782
- return _0x148016(_0x194075);
783
- }, "fmIVP": "StreamableHTTP" };
852
+ const _0x29eaf6 = {};
853
+ _0x29eaf6["listChanged"] = !![];
854
+ const _0x570351 = {};
855
+ _0x570351["subscribe"] = !![], _0x570351[_0x952030(476)] = !![];
856
+ const _0x4917cd = {};
857
+ _0x4917cd[_0x1c732b(476)] = !![];
858
+ const _0x2faea2 = {};
859
+ _0x2faea2[_0x1c732b(521)] = _0x29eaf6, _0x2faea2[_0x952030(589)] = _0x570351, _0x2faea2["tools"] = _0x4917cd, _0x2faea2[_0x1c732b(507)] = {}, _0x2faea2[_0x1c732b(555)] = {};
860
+ const _0x438639 = _0x2faea2, _0x36c0cc = {};
861
+ _0x36c0cc["name"] = _0x221f25[_0x1c732b(567)], _0x36c0cc["version"] = _0x221f25[_0x1c732b(584)];
862
+ const _0x2f1b96 = {};
863
+ _0x2f1b96[_0x952030(537)] = _0x438639;
864
+ const _0x388b75 = new McpServer(_0x36c0cc, _0x2f1b96);
865
+ _0xa3a621[_0x186622] = { "mcpServer": _0x388b75, "transport": _0x537b12, "client": _0x12666f, "user": _0x529750["auth"] || _0x529750["user"], "device": getDeviceInfo(_0x529750), "type": _0x221f25[_0x1c732b(517)] }, _0x537b12[_0x952030(469)] = (_0x48f1e) => {
866
+ const _0x38954d = _0x1c732b;
867
+ _0x221f25["UIPMh"](_0x43f5b8, { "mcpServer": _0x388b75, "transport": _0x537b12, "client": _0x12666f, "error": _0x48f1e, "type": _0x221f25[_0x38954d(517)] });
868
+ }, await _0x388b75["connect"](_0x537b12), _0x221f25[_0x952030(574)](forwardProxyServer, _0x388b75["server"], _0x13abc1);
869
+ }, _0x33b2f4 = async (_0x375eef, _0x47f1b6) => {
870
+ const _0x5cd0c4 = _0x2e1a8d, _0x347660 = _0x375eef[_0x5cd0c4(538)]["sessionId"], _0x1d60cf = _0x49e752[_0x347660] || _0x4c5c52[_0x347660];
871
+ _0x1d60cf ? await _0x1d60cf["handlePostMessage"](_0x375eef, _0x47f1b6) : _0x47f1b6["status"](-7037 + -8997 * -1 + -1560)["send"](_0x221f25["eHFMQ"]);
872
+ }, _0x129b7d = async (_0x46bee1, _0x410a43) => {
873
+ const _0x10b017 = _0x2e1a8d, _0x2c79b6 = _0x2e1a8d;
874
+ if (_0x46bee1[_0x10b017(586)] === _0x2c79b6(465)) await _0x221f25["oHhSC"](_0x57b58e, _0x46bee1, _0x410a43);
875
+ else _0x221f25["GHsdz"](_0x46bee1[_0x2c79b6(586)], _0x221f25["JGpQa"]) || _0x221f25[_0x2c79b6(588)](_0x46bee1[_0x2c79b6(586)], _0x221f25["iMpqN"]) ? await _0x221f25["oHhSC"](_0x1d7800, _0x46bee1, _0x410a43) : await _0x221f25["HjRbb"](_0x11d555, _0x410a43);
876
+ }, _0x11d555 = async (_0x186d82) => {
877
+ const _0x2b5a38 = _0x46ea31, _0x33a484 = {};
878
+ _0x33a484[_0x2b5a38(587)] = _0x221f25[_0x2b5a38(585)];
879
+ const _0x306e74 = {};
880
+ _0x306e74[_0x2b5a38(590)] = _0x221f25["sQKbx"], _0x306e74[_0x2b5a38(482)] = {}, _0x306e74["id"] = null, _0x306e74[_0x2b5a38(482)]["code"] = -32e3, _0x306e74[_0x2b5a38(482)][_0x2b5a38(472)] = _0x221f25["yTSaG"], _0x186d82["writeHead"](-1912 + -7498 + -5 * -1963, _0x33a484)[_0x2b5a38(487)](JSON["stringify"](_0x306e74));
881
+ }, _0x1d7800 = async (_0x4620a0, _0x3c3fa2) => {
882
+ var _a;
883
+ const _0x39bb39 = _0x46ea31, _0x4c9c1a = _0x2e1a8d, _0x13217b = _0x4620a0[_0x39bb39(579)][_0x221f25[_0x39bb39(523)]], _0x32a3c1 = _0x49e752[_0x13217b];
884
+ if (_0x32a3c1) {
885
+ await _0x32a3c1[_0x39bb39(494)](_0x4620a0, _0x3c3fa2);
886
+ const _0x28e7ef = () => {
887
+ delete _0x49e752[_0x13217b], delete _0x284689[_0x13217b];
888
+ };
889
+ if (_0x221f25[_0x4c9c1a(588)](_0x4620a0["method"], _0x221f25[_0x39bb39(575)]) && ((_a = _0x4620a0[_0x4c9c1a(579)][_0x39bb39(484)]) == null ? void 0 : _a[_0x39bb39(562)](_0x221f25["AooGk"]))) _0x4620a0["once"](_0x221f25[_0x39bb39(549)], _0x28e7ef);
890
+ else _0x221f25["fbAOS"](_0x4620a0[_0x39bb39(586)], _0x221f25["iMpqN"]) && _0x221f25["CpGZm"](_0x28e7ef);
891
+ } else _0x3c3fa2["status"](-576 * -16 + -4215 + -4601)[_0x39bb39(569)](_0x221f25[_0x39bb39(488)]);
892
+ }, _0x57b58e = async (_0x3fa9b3, _0x554417) => {
893
+ const _0x5aa50e = _0x2e1a8d, _0x42349d = _0x46ea31;
784
894
  try {
785
- const _0x53c27d = _0x44f0a1["headers"][_0x521a3b["rzmhK"]], _0x333822 = _0x44f0a1["headers"][_0x493add(282)];
786
- let _0x4284e0 = _0xca7918[_0x53c27d];
787
- if (_0x4284e0) await _0x4284e0[_0x35133d(353)](_0x44f0a1, _0xe79278, _0x44f0a1["body"]);
895
+ const _0x5482e1 = _0x3fa9b3[_0x5aa50e(579)][_0x221f25["cyRCJ"]], _0x13a5e3 = _0x3fa9b3["headers"][_0x221f25["NOdQz"]];
896
+ let _0x3cb5b7 = _0x49e752[_0x5482e1];
897
+ if (_0x3cb5b7) await _0x3cb5b7[_0x42349d(494)](_0x3fa9b3, _0x554417, _0x3fa9b3["body"]);
788
898
  else {
789
- if (!_0x53c27d && isInitializeRequest(_0x44f0a1[_0x493add(336)])) {
790
- const _0x3218a1 = {};
791
- _0x3218a1["sessionIdGenerator"] = () => _0x333822, _0x4284e0 = new StreamableHTTPServerTransport(_0x3218a1);
792
- const _0x413162 = {};
793
- _0x413162[_0x35133d(362)] = !![];
794
- const _0x31603f = {};
795
- _0x31603f[_0x35133d(385)] = !![], _0x31603f[_0x35133d(362)] = !![];
796
- const _0x1485b8 = {};
797
- _0x1485b8[_0x35133d(362)] = !![];
798
- const _0x1a92de = {};
799
- _0x1a92de["listChanged"] = !![];
800
- const _0x1240d3 = {};
801
- _0x1240d3["prompts"] = _0x413162, _0x1240d3["resources"] = _0x31603f, _0x1240d3[_0x35133d(314)] = _0x1485b8, _0x1240d3[_0x35133d(278)] = {}, _0x1240d3[_0x35133d(315)] = {}, _0x1240d3["roots"] = _0x1a92de, _0x1240d3["sampling"] = {}, _0x1240d3[_0x493add(285)] = {};
802
- const _0x521e2e = _0x1240d3, _0x13ab2f = {};
803
- _0x13ab2f[_0x493add(313)] = _0x521a3b["peXdP"], _0x13ab2f["version"] = _0x521a3b[_0x35133d(266)];
804
- const _0x437219 = {};
805
- _0x437219[_0x493add(360)] = _0x521e2e;
806
- const _0x3e728f = new Client(_0x13ab2f, _0x437219);
807
- _0x521a3b[_0x35133d(298)](initTwinClientHandler, _0x3e728f, _0x4284e0), _0x2b58e6[_0x333822] = { "client": _0x3e728f, "transport": _0x4284e0, "user": _0x44f0a1["auth"] || _0x44f0a1["user"], "device": getDeviceInfo(_0x44f0a1), "type": _0x493add(294) }, _0xca7918[_0x333822] = _0x4284e0, _0x4284e0[_0x35133d(320)] = _0x333822, _0x4284e0["onclose"] = () => {
808
- const _0x535e24 = _0x4284e0["sessionId"];
809
- _0x535e24 && _0xca7918[_0x535e24] && (delete _0xca7918[_0x535e24], delete _0x2b58e6[_0x535e24]);
810
- }, _0x4284e0["onerror"] = (_0x223810) => {
811
- _0x5381fd["dCZKQ"](_0x2b6c8f, { "client": _0x3e728f, "transport": _0x4284e0, "error": _0x223810, "type": _0x5381fd["fmIVP"] });
812
- }, await _0x3e728f["connect"](_0x4284e0), await _0x4284e0[_0x35133d(353)](_0x44f0a1, _0xe79278, _0x44f0a1[_0x493add(336)]);
899
+ if (!_0x5482e1 && _0x221f25[_0x5aa50e(565)](isInitializeRequest, _0x3fa9b3["body"])) {
900
+ const _0x88d72b = {};
901
+ _0x88d72b["sessionIdGenerator"] = () => _0x13a5e3, _0x3cb5b7 = new StreamableHTTPServerTransport(_0x88d72b);
902
+ const _0x5298e4 = {};
903
+ _0x5298e4[_0x42349d(476)] = !![];
904
+ const _0x4508c1 = {};
905
+ _0x4508c1[_0x42349d(473)] = !![], _0x4508c1["listChanged"] = !![];
906
+ const _0x40d451 = {};
907
+ _0x40d451["listChanged"] = !![];
908
+ const _0x17715a = {};
909
+ _0x17715a["listChanged"] = !![];
910
+ const _0x22993c = {};
911
+ _0x22993c[_0x5aa50e(521)] = _0x5298e4, _0x22993c["resources"] = _0x4508c1, _0x22993c["tools"] = _0x40d451, _0x22993c["completions"] = {}, _0x22993c[_0x42349d(555)] = {}, _0x22993c[_0x5aa50e(591)] = _0x17715a, _0x22993c[_0x42349d(526)] = {}, _0x22993c[_0x42349d(566)] = {};
912
+ const _0x5db47b = _0x22993c, _0x210888 = {};
913
+ _0x210888["name"] = _0x221f25["vGikC"], _0x210888["version"] = _0x221f25["AtduA"];
914
+ const _0xf32c2a = {};
915
+ _0xf32c2a["capabilities"] = _0x5db47b;
916
+ const _0x5092c2 = new Client(_0x210888, _0xf32c2a);
917
+ _0x221f25["LVmNq"](initTwinClientHandler, _0x5092c2, _0x3cb5b7), _0x284689[_0x13a5e3] = { "client": _0x5092c2, "transport": _0x3cb5b7, "user": _0x3fa9b3[_0x5aa50e(493)] || _0x3fa9b3["user"], "device": _0x221f25[_0x42349d(552)](getDeviceInfo, _0x3fa9b3), "type": _0x221f25["tLvAF"] }, _0x49e752[_0x13a5e3] = _0x3cb5b7, _0x3cb5b7["sessionId"] = _0x13a5e3, _0x3cb5b7[_0x5aa50e(481)] = () => {
918
+ const _0x224176 = _0x42349d, _0x3e7396 = _0x3cb5b7[_0x224176(545)];
919
+ _0x3e7396 && _0x49e752[_0x3e7396] && (delete _0x49e752[_0x3e7396], delete _0x284689[_0x3e7396]);
920
+ }, _0x3cb5b7[_0x42349d(469)] = (_0x5e35ec) => {
921
+ const _0x16cbea = _0x42349d;
922
+ _0x221f25[_0x16cbea(551)](_0xa96593, { "client": _0x5092c2, "transport": _0x3cb5b7, "error": _0x5e35ec, "type": _0x221f25["tLvAF"] });
923
+ }, await _0x5092c2[_0x42349d(485)](_0x3cb5b7), await _0x3cb5b7["handleRequest"](_0x3fa9b3, _0x554417, _0x3fa9b3["body"]);
813
924
  } else {
814
- const _0x54620f = {};
815
- _0x54620f["jsonrpc"] = _0x521a3b["VenRq"], _0x54620f[_0x35133d(293)] = {}, _0x54620f["id"] = null, _0x54620f[_0x35133d(293)]["code"] = -(5 * -9497 + -63087 + 142572), _0x54620f[_0x35133d(293)]["message"] = _0x521a3b[_0x493add(343)], _0xe79278[_0x35133d(384)](67 * -2 + 5236 + -2351 * 2)[_0x35133d(345)](_0x54620f);
925
+ const _0x2bd9e4 = {};
926
+ _0x2bd9e4["jsonrpc"] = _0x221f25["sQKbx"], _0x2bd9e4[_0x42349d(482)] = {}, _0x2bd9e4["id"] = null, _0x2bd9e4[_0x42349d(482)][_0x42349d(529)] = -(10380 * 4 + 1813 * 1 + -11333), _0x2bd9e4[_0x42349d(482)]["message"] = _0x221f25[_0x42349d(483)], _0x554417["status"](-2991 + -8267 + -3 * -3886)["json"](_0x2bd9e4);
816
927
  }
817
928
  }
818
929
  } catch {
819
- if (!_0xe79278["headersSent"]) {
820
- const _0x1bcec9 = {};
821
- _0x1bcec9["jsonrpc"] = _0x521a3b["VenRq"], _0x1bcec9["error"] = {}, _0x1bcec9["id"] = null, _0x1bcec9["error"]["code"] = -32603, _0x1bcec9["error"]["message"] = _0x521a3b["xqeyg"], _0xe79278[_0x35133d(384)](-9495 + -496 * 16 + 17931)["json"](_0x1bcec9);
930
+ if (!_0x554417[_0x5aa50e(541)]) {
931
+ const _0x17d908 = {};
932
+ _0x17d908["code"] = -32603, _0x17d908["message"] = _0x221f25[_0x42349d(501)];
933
+ const _0x5dc08c = {};
934
+ _0x5dc08c["jsonrpc"] = "2.0", _0x5dc08c["error"] = _0x17d908, _0x5dc08c["id"] = null, _0x554417[_0x42349d(550)](-2776 + -6511 + 9787)["json"](_0x5dc08c);
822
935
  }
823
936
  }
824
- }, _0x274c7c = async (_0x58599f, _0x338f96) => {
825
- const _0x7a6d7b = _0xa78d72, _0x438520 = _0x356f5f;
826
- if (_0x521a3b["CGiaz"](_0x58599f[_0x7a6d7b(355)], "POST")) await _0x521a3b[_0x438520(316)](_0x322cdc, _0x58599f, _0x338f96);
827
- else _0x521a3b[_0x438520(319)](_0x58599f[_0x438520(355)], _0x521a3b["IkWeJ"]) || _0x521a3b[_0x7a6d7b(274)](_0x58599f[_0x7a6d7b(355)], _0x521a3b["tMQIg"]) ? await _0x521a3b[_0x438520(379)](_0xc40260, _0x58599f, _0x338f96) : await _0x521a3b[_0x7a6d7b(312)](_0x5177ff, _0x338f96);
828
- }, _0xc40260 = async (_0x34780f, _0xab6027) => {
829
- const _0x58dfa5 = _0x356f5f, _0x3bf700 = _0xa78d72, _0x126f06 = _0x34780f[_0x58dfa5(305)][_0x521a3b[_0x58dfa5(311)]], _0x2f07f4 = _0x2d370c[_0x126f06];
830
- _0x2f07f4 ? (await _0x2f07f4["handleRequest"](_0x34780f, _0xab6027), _0x521a3b["wYJPs"](_0x34780f["method"], _0x521a3b[_0x3bf700(347)]) && (delete _0x2d370c[_0x126f06], delete _0x4a2f0f[_0x126f06])) : _0xab6027["status"](13 * -49 + -7451 * 1 + 8488)[_0x58dfa5(359)](_0x3bf700(354));
831
- }, _0x322cdc = async (_0x4b31e0, _0xa63506) => {
937
+ }, _0x1d47c9 = async (_0x19b297, _0x1c73f8) => {
938
+ const _0x482aab = _0x46ea31, _0xe4800 = _0x2e1a8d;
939
+ if (_0x221f25[_0x482aab(580)](_0x19b297[_0xe4800(586)], _0x221f25["lOUtF"])) await _0x221f25[_0xe4800(470)](_0x172310, _0x19b297, _0x1c73f8);
940
+ else _0x221f25["FWtdw"](_0x19b297["method"], _0x221f25["JGpQa"]) || _0x19b297["method"] === _0x221f25[_0xe4800(547)] ? await _0x55728b(_0x19b297, _0x1c73f8) : await _0x11d555(_0x1c73f8);
941
+ }, _0x55728b = async (_0x4b6406, _0x3135f7) => {
942
+ const _0x5ec4a9 = _0x46ea31, _0xf6cc95 = _0x46ea31, _0x5b9459 = _0x4b6406[_0x5ec4a9(579)][_0x221f25["cyRCJ"]], _0x2abe03 = _0x4c5c52[_0x5b9459];
943
+ _0x2abe03 ? (await _0x2abe03["handleRequest"](_0x4b6406, _0x3135f7), _0x221f25[_0xf6cc95(592)](_0x4b6406[_0x5ec4a9(586)], _0x221f25["iMpqN"]) && (delete _0x4c5c52[_0x5b9459], delete _0xa3a621[_0x5b9459])) : _0x3135f7["status"](2594 * 1 + 9247 + 17 * -673)["send"](_0x221f25["tTEpX"]);
944
+ }, _0x172310 = async (_0x40c907, _0x9d0172) => {
832
945
  var _a;
833
- const _0x95628c = _0xa78d72, _0x4aa102 = _0x356f5f, _0x298da4 = { "lGlsW": function(_0x3b1c26, _0x19dffb) {
834
- return _0x3b1c26(_0x19dffb);
835
- } };
946
+ const _0x2475c3 = _0x2e1a8d, _0x565e5a = _0x46ea31;
836
947
  try {
837
- const _0x2f863d = _0x4b31e0[_0x95628c(305)][_0x521a3b[_0x95628c(311)]], _0x5ece38 = _0x4b31e0["query"][_0x95628c(320)];
838
- let _0x29b996 = _0x2d370c[_0x2f863d];
839
- if (_0x29b996) await _0x29b996[_0x4aa102(353)](_0x4b31e0, _0xa63506, _0x4b31e0[_0x95628c(336)]);
948
+ const _0xb0d7b0 = _0x40c907["headers"][_0x2475c3(512)], _0x32bcc3 = _0x40c907["query"]["sessionId"];
949
+ let _0x3dd4f3 = _0x4c5c52[_0xb0d7b0];
950
+ if (_0x3dd4f3) await _0x3dd4f3[_0x2475c3(494)](_0x40c907, _0x9d0172, _0x40c907[_0x2475c3(534)]);
840
951
  else {
841
- if (!_0x2f863d && _0x521a3b[_0x4aa102(283)](isInitializeRequest, _0x4b31e0["body"])) {
842
- const _0x1b8d42 = (_a = _0x2b58e6[_0x5ece38]) == null ? void 0 : _a["client"];
843
- if (!_0x1b8d42) {
844
- _0xa63506[_0x95628c(384)](19 * 25 + 3 * -2417 + -26 * -276)["send"](_0x4aa102(286) + _0x5ece38);
952
+ if (!_0xb0d7b0 && isInitializeRequest(_0x40c907[_0x2475c3(534)])) {
953
+ const _0xe55654 = (_a = _0x284689[_0x32bcc3]) == null ? void 0 : _a[_0x2475c3(468)];
954
+ if (!_0xe55654) {
955
+ _0x9d0172[_0x565e5a(550)](8518 + -3 * -545 + -9753)["send"](_0x2475c3(490) + _0x32bcc3);
845
956
  return;
846
957
  }
847
- const _0x128afa = _0x15ecde[_0x95628c(365)](), _0x4f3b0b = {};
848
- _0x4f3b0b[_0x4aa102(390)] = () => _0x128afa, _0x29b996 = new StreamableHTTPServerTransport(_0x4f3b0b);
849
- const _0x30cb25 = {};
850
- _0x30cb25["listChanged"] = !![];
851
- const _0x171ff6 = {};
852
- _0x171ff6[_0x4aa102(385)] = !![], _0x171ff6["listChanged"] = !![];
853
- const _0x30475b = {};
854
- _0x30475b[_0x4aa102(362)] = !![];
855
- const _0x1a2841 = {};
856
- _0x1a2841[_0x4aa102(333)] = _0x30cb25, _0x1a2841[_0x95628c(340)] = _0x171ff6, _0x1a2841[_0x4aa102(314)] = _0x30475b, _0x1a2841["completions"] = {}, _0x1a2841[_0x95628c(315)] = {};
857
- const _0x29300a = _0x1a2841, _0x3ca8b0 = {};
858
- _0x3ca8b0[_0x95628c(313)] = _0x521a3b[_0x95628c(364)], _0x3ca8b0[_0x4aa102(325)] = _0x521a3b[_0x4aa102(266)];
859
- const _0x3c012b = {};
860
- _0x3c012b[_0x95628c(360)] = _0x29300a;
861
- const _0x22992e = new McpServer(_0x3ca8b0, _0x3c012b);
862
- _0x4a2f0f[_0x128afa] = { "mcpServer": _0x22992e, "transport": _0x29b996, "client": _0x5ece38, "user": _0x4b31e0[_0x95628c(302)] || _0x4b31e0[_0x4aa102(348)], "device": _0x521a3b[_0x4aa102(312)](getDeviceInfo, _0x4b31e0), "type": _0x521a3b[_0x95628c(268)] }, _0x2d370c[_0x128afa] = _0x29b996, _0x29b996["sessionId"] = _0x128afa, _0x29b996[_0x95628c(310)] = () => {
863
- const _0x47aa14 = _0x29b996["sessionId"];
864
- _0x47aa14 && _0xca7918[_0x47aa14] && (delete _0x2d370c[_0x47aa14], delete _0x4a2f0f[_0x47aa14]);
865
- }, _0x29b996[_0x95628c(324)] = (_0x4e7e1f) => {
866
- const _0x57bf6c = _0x95628c, _0x2cfd65 = _0x95628c, _0x560100 = {};
867
- _0x560100["mcpServer"] = _0x22992e, _0x560100["transport"] = _0x29b996, _0x560100[_0x57bf6c(363)] = _0x5ece38, _0x560100["error"] = _0x4e7e1f, _0x560100["type"] = "StreamableHTTP", _0x298da4[_0x2cfd65(284)](_0x595907, _0x560100);
868
- }, await _0x22992e[_0x4aa102(351)](_0x29b996), _0x521a3b[_0x95628c(316)](forwardProxyServer, _0x22992e["server"], _0x1b8d42), await _0x29b996["handleRequest"](_0x4b31e0, _0xa63506, _0x4b31e0[_0x4aa102(336)]);
958
+ const _0x16876a = _0x325be1["randomUUID"](), _0x23e87f = {};
959
+ _0x23e87f["sessionIdGenerator"] = () => _0x16876a, _0x3dd4f3 = new StreamableHTTPServerTransport(_0x23e87f);
960
+ const _0x1531ac = {};
961
+ _0x1531ac["listChanged"] = !![];
962
+ const _0xc0f8c8 = {};
963
+ _0xc0f8c8[_0x565e5a(473)] = !![], _0xc0f8c8[_0x2475c3(476)] = !![];
964
+ const _0x1e5728 = {};
965
+ _0x1e5728["listChanged"] = !![];
966
+ const _0x54d024 = {};
967
+ _0x54d024["prompts"] = _0x1531ac, _0x54d024["resources"] = _0xc0f8c8, _0x54d024["tools"] = _0x1e5728, _0x54d024["completions"] = {}, _0x54d024["logging"] = {};
968
+ const _0x3ebb7a = _0x54d024, _0x21ae4a = {};
969
+ _0x21ae4a[_0x565e5a(563)] = _0x221f25[_0x565e5a(544)], _0x21ae4a["version"] = _0x221f25["AtduA"];
970
+ const _0x20780b = {};
971
+ _0x20780b[_0x2475c3(537)] = _0x3ebb7a;
972
+ const _0x2366e7 = new McpServer(_0x21ae4a, _0x20780b);
973
+ _0xa3a621[_0x16876a] = { "mcpServer": _0x2366e7, "transport": _0x3dd4f3, "client": _0x32bcc3, "user": _0x40c907["auth"] || _0x40c907["user"], "device": _0x221f25[_0x565e5a(520)](getDeviceInfo, _0x40c907), "type": _0x221f25["tLvAF"] }, _0x4c5c52[_0x16876a] = _0x3dd4f3, _0x3dd4f3["sessionId"] = _0x16876a, _0x3dd4f3["onclose"] = () => {
974
+ const _0x4f8ec9 = _0x3dd4f3["sessionId"];
975
+ _0x4f8ec9 && _0x49e752[_0x4f8ec9] && (delete _0x4c5c52[_0x4f8ec9], delete _0xa3a621[_0x4f8ec9]);
976
+ }, _0x3dd4f3["onerror"] = (_0x5a8a6c) => {
977
+ const _0x35df9b = _0x565e5a, _0x4eb170 = _0x565e5a;
978
+ _0x221f25[_0x35df9b(565)](_0x43f5b8, { "mcpServer": _0x2366e7, "transport": _0x3dd4f3, "client": _0x32bcc3, "error": _0x5a8a6c, "type": _0x221f25[_0x35df9b(514)] });
979
+ }, await _0x2366e7["connect"](_0x3dd4f3), _0x221f25["MpuHH"](forwardProxyServer, _0x2366e7[_0x2475c3(503)], _0xe55654), await _0x3dd4f3[_0x565e5a(494)](_0x40c907, _0x9d0172, _0x40c907["body"]);
869
980
  } else {
870
- const _0x218e96 = {};
871
- _0x218e96[_0x95628c(289)] = _0x521a3b["VenRq"], _0x218e96[_0x95628c(293)] = {}, _0x218e96["id"] = null, _0x218e96[_0x95628c(293)]["code"] = -(54708 + 22492 + -9040 * 5), _0x218e96[_0x95628c(293)]["message"] = _0x521a3b[_0x95628c(343)], _0xa63506["status"](-778 + 6428 + -1750 * 3)["json"](_0x218e96);
981
+ const _0x5e3637 = {};
982
+ _0x5e3637["code"] = -(1 * 29594 + 391 * 91 + -33175), _0x5e3637[_0x2475c3(472)] = "Bad Request: No valid session ID provided";
983
+ const _0xef886f = {};
984
+ _0xef886f["jsonrpc"] = _0x221f25[_0x565e5a(518)], _0xef886f["error"] = _0x5e3637, _0xef886f["id"] = null, _0x9d0172["status"](-652 + -1424 + 2476)[_0x565e5a(499)](_0xef886f);
872
985
  }
873
986
  }
874
987
  } catch {
875
- if (!_0xa63506[_0x95628c(299)]) {
876
- const _0x26347e = {};
877
- _0x26347e[_0x4aa102(289)] = _0x521a3b["VenRq"], _0x26347e["error"] = {}, _0x26347e["id"] = null, _0x26347e["error"][_0x4aa102(304)] = -32603, _0x26347e["error"][_0x95628c(367)] = _0x521a3b["xqeyg"], _0xa63506[_0x4aa102(384)](-5734 + -3721 * 1 + 9955)["json"](_0x26347e);
988
+ if (!_0x9d0172[_0x565e5a(541)]) {
989
+ const _0x2c3215 = {};
990
+ _0x2c3215["jsonrpc"] = _0x221f25["sQKbx"], _0x2c3215[_0x565e5a(482)] = {}, _0x2c3215["id"] = null, _0x2c3215[_0x565e5a(482)]["code"] = -32603, _0x2c3215[_0x565e5a(482)]["message"] = _0x221f25[_0x2475c3(501)], _0x9d0172["status"](-138 * 23 + 1951 * -2 + 1 * 7576)["json"](_0x2c3215);
878
991
  }
879
992
  }
880
- }, _0x571656 = () => {
881
- const _0x14abe7 = _0xa78d72, _0x4b90b3 = _0x356f5f;
993
+ }, _0x75af0b = async (_0x36190a, _0x363c94) => {
994
+ const _0x52cda5 = _0x46ea31, _0xdd3f7d = _0x46ea31, _0x34ecb0 = new URL(_0x221f25["QICRf"](_0x221f25[_0x52cda5(561)], _0x363c94[_0x52cda5(495)])), _0x4febff = _0x34ecb0["searchParams"][_0xdd3f7d(593)](_0x221f25[_0xdd3f7d(527)]), _0x33e097 = new WebSocketServerTransport(_0x36190a), _0x2bd76a = {};
995
+ _0x2bd76a["listChanged"] = !![];
996
+ const _0x2f43cd = {};
997
+ _0x2f43cd["subscribe"] = !![], _0x2f43cd[_0xdd3f7d(476)] = !![];
998
+ const _0x3c118a = {};
999
+ _0x3c118a[_0x52cda5(476)] = !![];
1000
+ const _0x2c2d38 = {};
1001
+ _0x2c2d38["listChanged"] = !![];
1002
+ const _0x4be3ce = {};
1003
+ _0x4be3ce[_0x52cda5(521)] = _0x2bd76a, _0x4be3ce[_0xdd3f7d(589)] = _0x2f43cd, _0x4be3ce[_0x52cda5(519)] = _0x3c118a, _0x4be3ce[_0xdd3f7d(507)] = {}, _0x4be3ce[_0x52cda5(555)] = {}, _0x4be3ce["roots"] = _0x2c2d38, _0x4be3ce[_0xdd3f7d(526)] = {}, _0x4be3ce["elicitation"] = {};
1004
+ const _0x17c112 = _0x4be3ce, _0x32c241 = {};
1005
+ _0x32c241[_0x52cda5(563)] = _0xdd3f7d(500), _0x32c241[_0x52cda5(553)] = _0x52cda5(558);
1006
+ const _0x662aab = {};
1007
+ _0x662aab[_0x52cda5(537)] = _0x17c112;
1008
+ const _0x33aea5 = new Client(_0x32c241, _0x662aab);
1009
+ _0x221f25[_0xdd3f7d(522)](initTwinClientHandler, _0x33aea5, _0x33e097), _0x284689[_0x4febff] = { "client": _0x33aea5, "transport": _0x33e097, "user": _0x363c94["user"], "device": _0x221f25["WuneN"](getDeviceInfo, _0x363c94), "type": _0x221f25[_0xdd3f7d(466)] }, _0x49e752[_0x4febff] = _0x33e097, _0x33e097[_0xdd3f7d(545)] = _0x4febff, _0x33e097["onclose"] = () => {
1010
+ delete _0x49e752[_0x4febff], delete _0x284689[_0x4febff];
1011
+ }, _0x33e097["onerror"] = (_0x53e145) => {
1012
+ const _0x409a3e = _0x52cda5, _0x3808d9 = _0xdd3f7d, _0x3a8a50 = {};
1013
+ _0x3a8a50["client"] = _0x33aea5, _0x3a8a50[_0x409a3e(556)] = _0x33e097, _0x3a8a50[_0x3808d9(482)] = _0x53e145, _0x3a8a50["type"] = _0x221f25[_0x3808d9(466)], _0xa96593(_0x3a8a50);
1014
+ }, await _0x33aea5[_0xdd3f7d(485)](_0x33e097);
1015
+ }, _0x108a79 = () => {
1016
+ const _0x27b5f1 = _0x2e1a8d, _0xbe4050 = _0x2e1a8d;
882
1017
  try {
883
- Object[_0x14abe7(375)](_0xca7918)[_0x4b90b3(358)]((_0x5aea61) => _0x5aea61["close"]()), Object["values"](_0x2d370c)["forEach"]((_0x494c93) => _0x494c93[_0x4b90b3(338)]()), Object[_0x14abe7(375)](_0x2b58e6)["forEach"]((_0x3792c4) => _0x3792c4[_0x4b90b3(363)][_0x4b90b3(338)]()), Object["values"](_0x4a2f0f)["forEach"]((_0x419b2c) => _0x419b2c["mcpServer"]["close"]());
1018
+ Object["values"](_0x49e752)["forEach"]((_0x367616) => _0x367616[_0x27b5f1(594)]()), Object["values"](_0x4c5c52)["forEach"]((_0x5e0053) => _0x5e0053[_0x27b5f1(594)]()), Object[_0xbe4050(578)](_0x284689)["forEach"]((_0x186203) => _0x186203["client"][_0xbe4050(594)]()), Object["values"](_0xa3a621)[_0x27b5f1(577)]((_0x390000) => _0x390000["mcpServer"]["close"]());
884
1019
  } catch {
885
1020
  }
886
1021
  try {
887
- Object[_0x14abe7(374)](_0xca7918)[_0x14abe7(358)]((_0x44b36c) => delete _0xca7918[_0x44b36c]), Object["keys"](_0x2d370c)["forEach"]((_0x359a7e) => delete _0x2d370c[_0x359a7e]), Object["keys"](_0x2b58e6)["forEach"]((_0x25f4db) => delete _0x2b58e6[_0x25f4db]), Object["keys"](_0x4a2f0f)[_0x4b90b3(358)]((_0x3cfdba) => delete _0x4a2f0f[_0x3cfdba]);
1022
+ Object[_0x27b5f1(513)](_0x49e752)[_0x27b5f1(577)]((_0x459e4d) => delete _0x49e752[_0x459e4d]), Object[_0x27b5f1(513)](_0x4c5c52)["forEach"]((_0x39d861) => delete _0x4c5c52[_0x39d861]), Object[_0xbe4050(513)](_0x284689)["forEach"]((_0x31a006) => delete _0x284689[_0x31a006]), Object[_0x27b5f1(513)](_0xa3a621)[_0xbe4050(577)]((_0x1aa60c) => delete _0xa3a621[_0x1aa60c]);
888
1023
  } catch {
889
1024
  }
890
1025
  return {};
891
- }, _0x4adadb = async () => {
892
- const _0x410387 = _0xa78d72, _0x3e90d2 = _0xa78d72, _0x436dd1 = { "pKdJu": function(_0x445de7, _0x2cbd37) {
893
- return _0x521a3b["RDJUO"](_0x445de7, _0x2cbd37);
894
- }, "awHjn": function(_0x3d9c6e, _0xa6039d) {
895
- return _0x521a3b["PgxKv"](_0x3d9c6e, _0xa6039d);
896
- }, "trzfV": _0x521a3b["SUhnQ"] }, _0x2323fc = Object["keys"](_0x2b58e6)[_0x410387(361)](async (_0x4e84c) => {
897
- const _0x22bae2 = _0x410387, _0x34de8b = _0x410387, { client: _0x5d47a7 } = _0x2b58e6[_0x4e84c];
1026
+ }, _0x49f04c = async () => {
1027
+ const _0x316bbf = _0x2e1a8d, _0x4cfbbf = _0x2e1a8d, _0x22b88b = {};
1028
+ _0x22b88b[_0x316bbf(543)] = function(_0x4a1091, _0x591cea) {
1029
+ return _0x4a1091 === _0x591cea;
1030
+ }, _0x22b88b["czgjI"] = _0x221f25[_0x4cfbbf(548)];
1031
+ const _0x3ac821 = _0x22b88b, _0x8aa310 = Object[_0x316bbf(513)](_0x284689)[_0x316bbf(542)](async (_0x2d5fc3) => {
1032
+ const _0x746fe1 = _0x4cfbbf, _0x25fe62 = _0x316bbf, { client: _0x5c54de } = _0x284689[_0x2d5fc3];
898
1033
  try {
899
- const _0x5e60ac = await _0x5d47a7["ping"]();
900
- return { "sessionId": _0x4e84c, "shouldClose": _0x436dd1["pKdJu"](Object[_0x22bae2(374)](_0x5e60ac)["length"], 1 * -1991 + -2922 + -4913 * -1) };
1034
+ const _0x424121 = await _0x5c54de["ping"]();
1035
+ return { "sessionId": _0x2d5fc3, "shouldClose": _0x221f25["uuogb"](Object[_0x746fe1(513)](_0x424121)[_0x25fe62(498)], 1 * -8244 + 7699 + 545) };
901
1036
  } catch {
902
- const _0x2a68e2 = {};
903
- return _0x2a68e2[_0x34de8b(320)] = _0x4e84c, _0x2a68e2["shouldClose"] = !![], _0x2a68e2;
1037
+ const _0x2fd0b7 = {};
1038
+ return _0x2fd0b7["sessionId"] = _0x2d5fc3, _0x2fd0b7[_0x25fe62(479)] = !![], _0x2fd0b7;
904
1039
  }
905
- }), _0x9cd1ba = Object[_0x3e90d2(374)](_0x4a2f0f)[_0x3e90d2(361)](async (_0x2da174) => {
906
- const _0x2df005 = _0x3e90d2, { mcpServer: _0x2e955b } = _0x4a2f0f[_0x2da174];
1040
+ }), _0x4dd060 = Object[_0x316bbf(513)](_0xa3a621)["map"](async (_0xee9b4b) => {
1041
+ const _0xc2f2b = _0x316bbf, _0x1c618b = _0x4cfbbf, { mcpServer: _0x2fba9c } = _0xa3a621[_0xee9b4b];
907
1042
  try {
908
- const _0x5ce4a6 = await _0x2e955b[_0x2df005(288)][_0x2df005(318)]();
909
- return { "sessionId": _0x2da174, "shouldClose": _0x436dd1["pKdJu"](Object["keys"](_0x5ce4a6)[_0x2df005(344)], 855 + -31 * -88 + -3583) };
1043
+ const _0x4e3b98 = await _0x2fba9c[_0xc2f2b(503)]["ping"]();
1044
+ return { "sessionId": _0xee9b4b, "shouldClose": _0x221f25[_0x1c618b(560)](Object[_0xc2f2b(513)](_0x4e3b98)["length"], -1 * 773 + -2636 * -2 + 11 * -409) };
910
1045
  } catch {
911
- const _0x5a6753 = {};
912
- return _0x5a6753["sessionId"] = _0x2da174, _0x5a6753[_0x2df005(321)] = !![], _0x5a6753;
1046
+ const _0xc35820 = {};
1047
+ return _0xc35820[_0x1c618b(545)] = _0xee9b4b, _0xc35820["shouldClose"] = !![], _0xc35820;
913
1048
  }
914
- }), [_0x4a0ee7, _0xc56ab9] = await Promise["all"]([Promise["allSettled"](_0x2323fc), Promise[_0x410387(366)](_0x9cd1ba)]), _0x2312c3 = [], _0x99e86b = [];
915
- _0x4a0ee7[_0x3e90d2(358)]((_0x45a11d) => {
916
- const _0x27e50e = _0x3e90d2, _0x34c306 = _0x410387;
917
- _0x45a11d[_0x27e50e(384)] === "fulfilled" && _0x45a11d[_0x27e50e(296)][_0x34c306(321)] && _0x2312c3[_0x34c306(368)](_0x45a11d[_0x27e50e(296)][_0x34c306(320)]);
918
- }), _0xc56ab9[_0x410387(358)]((_0x118e70) => {
919
- const _0x23d0e6 = _0x410387, _0x2ff33f = _0x410387;
920
- _0x436dd1[_0x23d0e6(389)](_0x118e70["status"], _0x436dd1[_0x2ff33f(275)]) && _0x118e70["value"][_0x23d0e6(321)] && _0x99e86b[_0x2ff33f(368)](_0x118e70[_0x2ff33f(296)][_0x23d0e6(320)]);
1049
+ }), [_0x2298fa, _0x1c2aa3] = await Promise["all"]([Promise["allSettled"](_0x8aa310), Promise["allSettled"](_0x4dd060)]), _0x249c69 = [], _0x5a6bbc = [];
1050
+ _0x2298fa[_0x4cfbbf(577)]((_0x41c31a) => {
1051
+ const _0x43217b = _0x316bbf, _0x3912a5 = _0x4cfbbf;
1052
+ _0x3ac821[_0x43217b(543)](_0x41c31a["status"], _0x3ac821["czgjI"]) && _0x41c31a[_0x3912a5(506)][_0x3912a5(479)] && _0x249c69[_0x3912a5(539)](_0x41c31a["value"]["sessionId"]);
1053
+ }), _0x1c2aa3[_0x316bbf(577)]((_0x346a26) => {
1054
+ const _0x59a97e = _0x316bbf, _0x1a6846 = _0x4cfbbf;
1055
+ _0x3ac821[_0x59a97e(543)](_0x346a26["status"], _0x3ac821["czgjI"]) && _0x346a26[_0x1a6846(506)][_0x59a97e(479)] && _0x5a6bbc["push"](_0x346a26["value"][_0x1a6846(545)]);
921
1056
  });
922
- const _0x154f6e = _0x2312c3["map"](async (_0x1ed1dc) => {
1057
+ const _0x27883e = _0x249c69["map"](async (_0x41c374) => {
923
1058
  var _a, _b;
924
- const _0x51cc68 = _0x3e90d2;
1059
+ const _0x59cf2b = _0x316bbf;
925
1060
  try {
926
- (_a = _0xca7918[_0x1ed1dc]) == null ? void 0 : _a["close"](), (_b = _0x2b58e6[_0x1ed1dc]) == null ? void 0 : _b["client"][_0x51cc68(338)]();
1061
+ (_a = _0x49e752[_0x41c374]) == null ? void 0 : _a[_0x59cf2b(594)](), (_b = _0x284689[_0x41c374]) == null ? void 0 : _b["client"]["close"]();
927
1062
  } catch {
928
1063
  }
929
1064
  try {
930
- delete _0xca7918[_0x1ed1dc], delete _0x2b58e6[_0x1ed1dc];
1065
+ delete _0x49e752[_0x41c374], delete _0x284689[_0x41c374];
931
1066
  } catch {
932
1067
  }
933
- }), _0x63a5b = _0x99e86b["map"](async (_0x11047c) => {
1068
+ }), _0x180710 = _0x5a6bbc[_0x316bbf(542)](async (_0x496115) => {
934
1069
  var _a, _b;
935
- const _0x2d6c34 = _0x410387, _0x169703 = _0x3e90d2;
1070
+ const _0x5deb25 = _0x316bbf;
936
1071
  try {
937
- (_a = _0x2d370c[_0x11047c]) == null ? void 0 : _a[_0x2d6c34(338)](), (_b = _0x4a2f0f[_0x11047c]) == null ? void 0 : _b[_0x2d6c34(323)][_0x169703(338)]();
1072
+ (_a = _0x4c5c52[_0x496115]) == null ? void 0 : _a["close"](), (_b = _0xa3a621[_0x496115]) == null ? void 0 : _b["mcpServer"][_0x5deb25(594)]();
938
1073
  } catch {
939
1074
  }
940
1075
  try {
941
- delete _0x2d370c[_0x11047c], delete _0x4a2f0f[_0x11047c];
1076
+ delete _0x4c5c52[_0x496115], delete _0xa3a621[_0x496115];
942
1077
  } catch {
943
1078
  }
944
1079
  });
945
- await Promise["allSettled"]([..._0x154f6e, ..._0x63a5b]);
946
- const _0x26d18a = {};
947
- return _0x26d18a["clientSessions"] = _0x2312c3, _0x26d18a["remoterSessions"] = _0x99e86b, _0x26d18a;
948
- }, _0xa1a2b5 = {};
949
- return _0xa1a2b5[_0x356f5f(308)] = _0x517e01, _0xa1a2b5[_0xa78d72(277)] = _0xd3034b, _0xa1a2b5[_0xa78d72(372)] = _0x169d65, _0xa1a2b5["handleStreamRequest"] = _0x54856e, _0xa1a2b5[_0xa78d72(322)] = _0x274c7c, _0xa1a2b5["clients"] = _0x2b58e6, _0xa1a2b5["remoters"] = _0x4a2f0f, _0xa1a2b5["transports"] = _0xca7918, _0xa1a2b5["inspectors"] = _0x2d370c, _0xa1a2b5[_0x356f5f(383)] = _0x571656, _0xa1a2b5[_0xa78d72(318)] = _0x4adadb, _0xa1a2b5["onClientError"] = _0x3d2fa1, _0xa1a2b5["onRemoterError"] = _0x223176, _0xa1a2b5;
1080
+ await Promise["allSettled"]([..._0x27883e, ..._0x180710]);
1081
+ const _0x2e1d49 = {};
1082
+ return _0x2e1d49["clientSessions"] = _0x249c69, _0x2e1d49["remoterSessions"] = _0x5a6bbc, _0x2e1d49;
1083
+ }, _0xba1128 = {};
1084
+ return _0xba1128[_0x2e1a8d(516)] = _0x2364bd, _0xba1128["handleSseInspector"] = _0x4ff2b8, _0xba1128["handleSseMessage"] = _0x33b2f4, _0xba1128["handleStreamRequest"] = _0x129b7d, _0xba1128["handleStreamInspector"] = _0x1d47c9, _0xba1128[_0x46ea31(497)] = _0x75af0b, _0xba1128["clients"] = _0x284689, _0xba1128["remoters"] = _0xa3a621, _0xba1128["transports"] = _0x49e752, _0xba1128["inspectors"] = _0x4c5c52, _0xba1128[_0x2e1a8d(462)] = _0x108a79, _0xba1128[_0x46ea31(511)] = _0x49f04c, _0xba1128["onClientError"] = _0x3fa284, _0xba1128["onRemoterError"] = _0x56cd0a, _0xba1128;
950
1085
  };
951
1086
  export {
952
1087
  ACCESS_TOKEN_EXPIRES_IN,
@@ -956,10 +1091,12 @@ export {
956
1091
  MemoryClientsStore,
957
1092
  MemoryRefreshTokensStore,
958
1093
  REFRESH_TOKEN_EXPIRES_IN,
1094
+ WebSocketServerTransport,
959
1095
  auth,
960
1096
  createAuthCallbackRouter,
961
1097
  createAuthMetadataRouter,
962
1098
  createAuthMiddleware,
963
1099
  createAuthRouter,
1100
+ jwtAuth,
964
1101
  useProxyHandles
965
1102
  };