@opentiny/agent 0.3.2 → 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 +870 -738
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,957 +1,1087 @@
1
- import _0x93d5a6 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 _0x42d1ae from "cors";
8
- import _0x1ba5a3 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(_0x414590, _0x4b8a15) {
15
- const _0x1d6a63 = _0x4044, _0x4f9f34 = _0x4044, _0x2b8c88 = _0x414590();
14
+ const _0x57ef6f = _0x3a81;
15
+ (function(_0x14843e, _0x5069fd) {
16
+ const _0x38c567 = _0x3a81, _0x43b791 = _0x3a81, _0x4dbc6f = _0x14843e();
16
17
  while (!![]) {
17
18
  try {
18
- const _0x3c17dd = parseInt(_0x1d6a63(501)) / (-637 + 8355 + 1 * -7717) * (parseInt(_0x4f9f34(449)) / (2932 + 9972 * 1 + -12902)) + parseInt(_0x1d6a63(459)) / (-1 * 3154 + -539 * 2 + 4235) + -parseInt(_0x4f9f34(515)) / (12 + 7728 + 7736 * -1) + -parseInt(_0x1d6a63(456)) / (-2 * -1384 + -7084 + 4321) + parseInt(_0x1d6a63(493)) / (-9640 + 3 * -2904 + 18358) + parseInt(_0x4f9f34(509)) / (-9169 + 807 * -1 + 9983) * (parseInt(_0x1d6a63(453)) / (-8925 + -1 * -787 + 8146)) + -parseInt(_0x4f9f34(506)) / (-1335 * 1 + -1928 + 3272) * (parseInt(_0x4f9f34(499)) / (3540 + 5501 + 9031 * -1));
19
- if (_0x3c17dd === _0x4b8a15) break;
20
- else _0x2b8c88["push"](_0x2b8c88["shift"]());
21
- } catch (_0x45ee5f) {
22
- _0x2b8c88["push"](_0x2b8c88["shift"]());
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"]());
23
24
  }
24
25
  }
25
- })(_0x4502, -19771 * 13 + 72868 + 1 * 316326);
26
- function _0x4044(_0x357129, _0x319f99) {
27
- const _0x2a0fa4 = _0x4502();
28
- return _0x4044 = function(_0x4577a9, _0x4a6fa2) {
29
- _0x4577a9 = _0x4577a9 - (9 * 334 + 1070 + 1 * -3631);
30
- let _0x40fad1 = _0x2a0fa4[_0x4577a9];
31
- return _0x40fad1;
32
- }, _0x4044(_0x357129, _0x319f99);
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);
33
34
  }
34
- function _0x4502() {
35
- const _0x110955 = ["originalOnResponse", "IWycK", "mHXXj", "resources/templates/list", "readResource", "769336wESUPJ", "call", "listResources", "result", "data", "tools/list", "addRequestListener", "push", "AFyaI", "initialize", "clearNotificationListener", "prompts/list", "_onrequest", "NBngV", "ZFsMq", "length", "jsonrpc", "TgEut", "2oRtKoi", "addResponseListener", "method", "XAOgt", "7368LSLXZA", "code", "message", "1026645KrXCFZ", "rJyGJ", "onerror", "305829WseTZR", "cjyyP", "ICaQy", "resources/subscribe", "prompts/get", "completion/complete", "tQWau", "splice", "gHncM", "tools/call", "callTool", "listResourceTemplates", "kmUmj", "clearRequestListener", "indexOf", "notification", "bWxLM", "addListener", "ping", "notifications/cancelled", "kiyeT", "params", "clear", "iHAKU", "error", "mnKTH", "clearListener", "aktdr", "_onresponse", "unsubscribeResource", "iCroC", "notifications/initialized", "2.0", "vJSNK", "1489344rcYdID", "resources/list", "rDeRr", "name", "resources/unsubscribe", "handleListener", "290FPirjE", "ZfGsk", "234134Qtogqx", "transport", "subscribeResource", "send", "jLliF", "36054ZWFXMB", "setLoggingLevel", "function", "469iYmoTK"];
36
- _0x4502 = function() {
37
- return _0x110955;
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;
38
39
  };
39
- return _0x4502();
40
+ return _0x3d3a();
40
41
  }
41
- const forwardServerRequest = async (_0x5ddbd7, _0x31537f, _0x24e0a5) => {
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
+ }
96
+ }
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();
106
+ while (!![]) {
107
+ try {
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"]());
113
+ }
114
+ }
115
+ })(_0x2983, -787224 + -102 * -4954 + 1085820);
116
+ const forwardServerRequest = async (_0x824cd1, _0x293ea1, _0x322333) => {
42
117
  var _a;
43
- const _0x161c24 = _0x4044, _0x31010d = _0x4044, _0x241b8f = {};
44
- _0x241b8f["nxptd"] = _0x161c24(468), _0x241b8f[_0x161c24(479)] = _0x31010d(494), _0x241b8f["tNMrc"] = "resources/read", _0x241b8f[_0x31010d(511)] = _0x31010d(462), _0x241b8f["cjyyP"] = _0x31010d(497), _0x241b8f[_0x31010d(500)] = _0x161c24(526), _0x241b8f[_0x31010d(448)] = _0x161c24(464), _0x241b8f["JQxQT"] = "2.0";
45
- const _0x2712aa = _0x241b8f, { id: _0x51aaf7, method: _0x5cf14d, params: _0x430be3 } = _0x24e0a5;
46
- let _0x1b9c9c = {};
47
- switch (_0x5cf14d) {
48
- case _0x31010d(520):
49
- _0x1b9c9c = await _0x31537f["listTools"](_0x430be3);
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);
50
125
  break;
51
- case _0x2712aa["nxptd"]:
52
- _0x1b9c9c = await _0x31537f[_0x161c24(469)](_0x430be3);
126
+ case _0x4b831b["nwPVQ"]:
127
+ _0x2ad8aa = await _0x293ea1["callTool"](_0x5dcbb5);
53
128
  break;
54
- case _0x2712aa["kiyeT"]:
55
- _0x1b9c9c = await _0x31537f[_0x31010d(517)](_0x430be3);
129
+ case _0x4b831b[_0x1fd413(373)]:
130
+ _0x2ad8aa = await _0x293ea1[_0x3947d4(414)](_0x5dcbb5);
56
131
  break;
57
- case _0x31010d(513):
58
- _0x1b9c9c = await _0x31537f[_0x161c24(470)](_0x430be3);
132
+ case _0x4b831b["kzqbq"]:
133
+ _0x2ad8aa = await _0x293ea1["listResourceTemplates"](_0x5dcbb5);
59
134
  break;
60
- case _0x2712aa["tNMrc"]:
61
- _0x1b9c9c = await _0x31537f[_0x161c24(514)](_0x430be3);
135
+ case "resources/read":
136
+ _0x2ad8aa = await _0x293ea1[_0x3947d4(397)](_0x5dcbb5);
62
137
  break;
63
- case _0x2712aa["IWycK"]:
64
- _0x1b9c9c = await _0x31537f[_0x161c24(503)](_0x430be3);
138
+ case "resources/subscribe":
139
+ _0x2ad8aa = await _0x293ea1[_0x3947d4(424)](_0x5dcbb5);
65
140
  break;
66
- case _0x2712aa[_0x31010d(460)]:
67
- _0x1b9c9c = await _0x31537f[_0x161c24(488)](_0x430be3);
141
+ case "resources/unsubscribe":
142
+ _0x2ad8aa = await _0x293ea1["unsubscribeResource"](_0x5dcbb5);
68
143
  break;
69
- case _0x31010d(463):
70
- _0x1b9c9c = await _0x31537f["getPrompt"](_0x430be3);
144
+ case _0x4b831b["SnMEh"]:
145
+ _0x2ad8aa = await _0x293ea1["getPrompt"](_0x5dcbb5);
71
146
  break;
72
- case _0x2712aa[_0x161c24(500)]:
73
- _0x1b9c9c = await _0x31537f["listPrompts"](_0x430be3);
147
+ case _0x4b831b[_0x1fd413(378)]:
148
+ _0x2ad8aa = await _0x293ea1["listPrompts"](_0x5dcbb5);
74
149
  break;
75
- case _0x31010d(477):
76
- _0x1b9c9c = await _0x31537f[_0x161c24(477)]();
150
+ case _0x3947d4(393):
151
+ _0x2ad8aa = await _0x293ea1["ping"]();
77
152
  break;
78
- case _0x2712aa[_0x31010d(448)]:
79
- _0x1b9c9c = await _0x31537f["complete"](_0x430be3);
153
+ case _0x3947d4(370):
154
+ _0x2ad8aa = await _0x293ea1["complete"](_0x5dcbb5);
80
155
  break;
81
- case "logging/setLevel":
82
- _0x1b9c9c = await _0x31537f[_0x31010d(507)](_0x430be3 == null ? void 0 : _0x430be3["level"]);
156
+ case _0x4b831b["IZjiZ"]:
157
+ _0x2ad8aa = await _0x293ea1[_0x1fd413(412)](_0x5dcbb5 == null ? void 0 : _0x5dcbb5[_0x1fd413(422)]);
83
158
  break;
84
159
  }
85
- const _0x2be629 = {};
86
- _0x2be629[_0x31010d(518)] = _0x1b9c9c, _0x2be629[_0x161c24(447)] = _0x2712aa["JQxQT"], _0x2be629["id"] = _0x51aaf7, await ((_a = _0x5ddbd7 == null ? void 0 : _0x5ddbd7["transport"]) == null ? void 0 : _a[_0x31010d(504)](_0x2be629));
87
- }, forwardClientRequest = async (_0x421651, _0x5187b4, _0x27142b) => {
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) => {
88
163
  var _a;
89
- const _0x4b02a5 = _0x4044, _0x19432e = _0x4044, _0x4ca4fa = {};
90
- _0x4ca4fa[_0x4b02a5(471)] = "roots/list", _0x4ca4fa["jLliF"] = "sampling/createMessage", _0x4ca4fa["qrMyG"] = _0x19432e(491);
91
- const _0x2645a1 = _0x4ca4fa, { id: _0x400403, method: _0xbcd1ac, params: _0x200a76 } = _0x27142b;
92
- let _0x540365 = {};
93
- switch (_0xbcd1ac) {
94
- case _0x2645a1[_0x4b02a5(471)]:
95
- const _0x53f230 = {};
96
- _0x53f230["method"] = _0xbcd1ac, _0x53f230[_0x19432e(480)] = _0x200a76, _0x540365 = await _0x5187b4["request"](_0x53f230, 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);
97
172
  break;
98
- case _0x2645a1[_0x4b02a5(505)]:
99
- const _0x638a4a = {};
100
- _0x638a4a["method"] = _0xbcd1ac, _0x638a4a[_0x19432e(480)] = _0x200a76, _0x540365 = await _0x5187b4["request"](_0x638a4a, CreateMessageResultSchema);
173
+ case _0x28df21[_0x226145(416)]:
174
+ const _0x520f08 = {};
175
+ _0x520f08[_0x226145(430)] = _0x33fb33, _0x520f08[_0x36644a(375)] = _0x316a73, _0x3be6a1 = await _0x54c02a["request"](_0x520f08, CreateMessageResultSchema);
101
176
  break;
102
- case "elicitation/create":
103
- const _0x162a48 = {};
104
- _0x162a48[_0x4b02a5(451)] = _0xbcd1ac, _0x162a48["params"] = _0x200a76, _0x540365 = await _0x5187b4["request"](_0x162a48, ElicitResultSchema);
177
+ case _0x28df21["simWI"]:
178
+ const _0x578ac6 = {};
179
+ _0x578ac6[_0x226145(430)] = _0x33fb33, _0x578ac6[_0x36644a(375)] = _0x316a73, _0x3be6a1 = await _0x54c02a[_0x36644a(405)](_0x578ac6, ElicitResultSchema);
105
180
  break;
106
- case "ping":
107
- const _0x4c169e = {};
108
- _0x4c169e[_0x19432e(451)] = _0xbcd1ac, _0x540365 = await _0x5187b4["request"](_0x4c169e, EmptyResultSchema);
181
+ case _0x28df21["kPDql"]:
182
+ const _0x33f7d7 = {};
183
+ _0x33f7d7["method"] = _0x33fb33, _0x3be6a1 = await _0x54c02a["request"](_0x33f7d7, EmptyResultSchema);
109
184
  break;
110
185
  }
111
- const _0xa55e1b = {};
112
- return _0xa55e1b[_0x19432e(518)] = _0x540365, _0xa55e1b[_0x19432e(447)] = _0x2645a1["qrMyG"], _0xa55e1b["id"] = _0x400403, await ((_a = _0x421651 == null ? void 0 : _0x421651[_0x4b02a5(502)]) == null ? void 0 : _a[_0x19432e(504)](_0xa55e1b)), _0x540365;
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;
113
188
  };
114
- const forwardServerOnRequest = (_0x18ef46, _0x192806) => {
115
- const _0x5a20e3 = _0x4044, _0x103c0e = { "bWxLM": function(_0x3fc8b0, _0x4b6f5f) {
116
- return _0x3fc8b0 === _0x4b6f5f;
117
- }, "KakbL": _0x5a20e3(524), "iCroC": function(_0x47887d, _0x2edaea, _0x1e8c3e, _0x2c2b5f) {
118
- return _0x47887d(_0x2edaea, _0x1e8c3e, _0x2c2b5f);
119
- } }, _0x6c961f = _0x18ef46[_0x5a20e3(527)];
120
- _0x18ef46[_0x5a20e3(527)] = async (_0x396437, _0xddbb07) => {
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) => {
121
194
  var _a, _b, _c, _d, _e;
122
- const _0x4edf77 = _0x5a20e3, _0x214b66 = _0x5a20e3, { id: _0x461832, method: _0x255764 } = _0x396437;
195
+ const _0x3b840f = _0x3505bf, _0x3a4bd6 = _0x3505bf, { id: _0x3161b9, method: _0x176194 } = _0x527a36;
123
196
  try {
124
- _0x103c0e[_0x4edf77(475)](_0x255764, _0x103c0e["KakbL"]) ? await _0x6c961f[_0x214b66(516)](_0x18ef46, _0x396437, _0xddbb07) : await _0x103c0e[_0x214b66(489)](forwardServerRequest, _0x18ef46, _0x192806, _0x396437);
125
- } catch (_0x5bc967) {
126
- const { code: _0x32ef58, message: _0x4b20d5, data: _0x2a2cdb } = _0x5bc967;
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;
127
200
  try {
128
- if (_0x32ef58) {
129
- const _0x28b048 = {};
130
- _0x28b048[_0x4edf77(454)] = _0x32ef58, _0x28b048[_0x4edf77(455)] = _0x4b20d5, _0x28b048[_0x214b66(519)] = _0x2a2cdb;
131
- const _0x4c93f1 = {};
132
- _0x4c93f1["error"] = _0x28b048, _0x4c93f1["jsonrpc"] = _0x4edf77(491), _0x4c93f1["id"] = _0x461832, await ((_a = _0x18ef46 == null ? void 0 : _0x18ef46["transport"]) == null ? void 0 : _a["send"](_0x4c93f1));
133
- } else (_c = (_b = _0x18ef46 == null ? void 0 : _0x18ef46["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x5bc967);
134
- } catch (_0x2a65e7) {
135
- (_e = (_d = _0x18ef46 == null ? void 0 : _0x18ef46[_0x214b66(502)]) == null ? void 0 : _d[_0x4edf77(458)]) == null ? void 0 : _e.call(_d, _0x2a65e7);
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);
136
209
  }
137
210
  }
138
211
  };
139
212
  };
140
- const forwardServerOnNotification = (_0x380ea8, _0x54bf5f) => {
141
- const _0xee3c22 = _0x4044, _0x19469f = {};
142
- _0x19469f["mNMii"] = function(_0x1a72e2, _0x48cbcb) {
143
- return _0x1a72e2 !== _0x48cbcb;
144
- }, _0x19469f["rDeRr"] = _0xee3c22(478);
145
- const _0xf7a9ae = _0x19469f;
146
- _0x380ea8["_onnotification"] = async (_0x3d9bdf) => {
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) => {
147
222
  var _a, _b;
148
- const _0x570a08 = _0xee3c22, _0x1f82a8 = _0xee3c22, { method: _0x54529f, params: _0x263fbc } = _0x3d9bdf;
149
- if (_0xf7a9ae["mNMii"](_0x54529f, "notifications/initialized") && (_0xf7a9ae["mNMii"](_0x54529f, _0xf7a9ae[_0x570a08(495)]) || (_0x263fbc == null ? void 0 : _0x263fbc["forward"]))) try {
150
- await _0x54bf5f[_0x1f82a8(474)](_0x3d9bdf);
151
- } catch (_0x5a0d32) {
152
- (_b = (_a = _0x380ea8 == null ? void 0 : _0x380ea8["transport"]) == null ? void 0 : _a[_0x570a08(458)]) == null ? void 0 : _b.call(_a, _0x5a0d32);
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);
153
228
  }
154
229
  };
155
230
  };
156
- const forwardClientOnRequest = (_0x323cff, _0x43fb61) => async (_0x38a817) => {
231
+ const forwardClientOnRequest = (_0x4fb333, _0x32035f) => async (_0x49f7c8) => {
157
232
  var _a, _b, _c, _d, _e;
158
- const _0x2a1ac9 = _0x4044, _0x137dbc = _0x4044, _0x27e052 = { "flUTc": function(_0x3dbcc7, _0x2299bc, _0x14a599, _0x259a13) {
159
- return _0x3dbcc7(_0x2299bc, _0x14a599, _0x259a13);
160
- }, "tQWau": _0x2a1ac9(491) };
233
+ const _0x552319 = _0x593e, _0x1627a9 = _0x593e, _0x2a8233 = { "rVFpi": function(_0x973069, _0x412ac0, _0x65ab82, _0x546e2f) {
234
+ return _0x973069(_0x412ac0, _0x65ab82, _0x546e2f);
235
+ } };
161
236
  try {
162
- return await _0x27e052["flUTc"](forwardClientRequest, _0x323cff, _0x43fb61, _0x38a817);
163
- } catch (_0x10ab66) {
164
- const { code: _0x47eb64, message: _0x1b8544, data: _0x1d0644 } = _0x10ab66;
237
+ return await _0x2a8233["rVFpi"](forwardClientRequest, _0x4fb333, _0x32035f, _0x49f7c8);
238
+ } catch (_0x438e7b) {
239
+ const { code: _0x50c004, message: _0x1ad1a1, data: _0x1dd0b9 } = _0x438e7b;
165
240
  try {
166
- if (_0x47eb64) {
167
- const _0x4af81b = {};
168
- _0x4af81b[_0x137dbc(454)] = _0x47eb64, _0x4af81b[_0x137dbc(455)] = _0x1b8544, _0x4af81b["data"] = _0x1d0644;
169
- const _0x1cae04 = {};
170
- _0x1cae04["error"] = _0x4af81b, _0x1cae04["jsonrpc"] = _0x27e052[_0x2a1ac9(465)], _0x1cae04["id"] = _0x38a817["id"], await ((_a = _0x323cff == null ? void 0 : _0x323cff["transport"]) == null ? void 0 : _a["send"](_0x1cae04));
171
- } else (_c = (_b = _0x323cff == null ? void 0 : _0x323cff[_0x137dbc(502)]) == null ? void 0 : _b[_0x2a1ac9(458)]) == null ? void 0 : _c.call(_b, _0x10ab66);
172
- } catch (_0x48919e) {
173
- (_e = (_d = _0x323cff == null ? void 0 : _0x323cff["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x48919e);
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);
174
249
  }
175
250
  }
176
251
  };
177
- const forwardClientOnNotification = (_0x9821b2, _0x310108) => async (_0x372cfb) => {
252
+ const forwardClientOnNotification = (_0x144e33, _0x53a87a) => async (_0x430e72) => {
178
253
  var _a, _b, _c;
179
- const _0x34643e = _0x4044, _0x34dce2 = _0x4044, _0x411811 = {};
180
- _0x411811[_0x34643e(461)] = _0x34643e(490), _0x411811["ZrgoL"] = function(_0x38d1c2, _0x7d1689) {
181
- return _0x38d1c2 !== _0x7d1689;
182
- }, _0x411811[_0x34dce2(528)] = "notifications/cancelled", _0x411811[_0x34643e(512)] = "2.0";
183
- const _0x25a8e1 = _0x411811, { method: _0x1cc6f5, params: _0x342a0c } = _0x372cfb;
184
- if (_0x1cc6f5 !== _0x25a8e1[_0x34dce2(461)] && (_0x25a8e1["ZrgoL"](_0x1cc6f5, _0x25a8e1["NBngV"]) || (_0x342a0c == null ? void 0 : _0x342a0c["forward"]))) try {
185
- const _0x44cacf = { ..._0x372cfb };
186
- _0x44cacf["jsonrpc"] = _0x25a8e1["mHXXj"], await ((_a = _0x310108 == null ? void 0 : _0x310108["transport"]) == null ? void 0 : _a[_0x34dce2(504)](_0x44cacf));
187
- } catch (_0x3ba934) {
188
- (_c = (_b = _0x9821b2 == null ? void 0 : _0x9821b2[_0x34643e(502)]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x3ba934);
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);
189
266
  }
190
267
  };
191
268
  const createHandleListener = () => {
192
- const _0x133c34 = _0x4044, _0x367bb4 = _0x4044, _0xfb81a4 = { "AlJTO": function(_0x523b20, _0x194ee8, _0x223e85) {
193
- return _0x523b20(_0x194ee8, _0x223e85);
194
- }, "ILUTH": function(_0x46576e, _0x2d5e97) {
195
- return _0x46576e !== _0x2d5e97;
196
- }, "XAOgt": function(_0x12683b, _0x57bec2) {
197
- return _0x12683b(_0x57bec2);
198
- }, "AFyaI": function(_0x12e884, _0x3e577e) {
199
- return _0x12e884 === _0x3e577e;
200
- }, "cFEvs": _0x133c34(508) }, _0x2d79d1 = [], _0xde4734 = (_0x23b3da, _0x1a62d0) => {
201
- const _0x3da6b8 = _0x133c34, _0x5973c8 = _0x133c34;
202
- if (_0x1a62d0) {
203
- const _0x524cab = [];
204
- for (const _0x471bce of _0x2d79d1) {
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) {
205
282
  try {
206
- _0x524cab[_0x3da6b8(522)](_0xfb81a4["AlJTO"](_0x471bce, _0x23b3da, _0x1a62d0));
283
+ _0x5b2951["push"](_0x5d1946["HWMPS"](_0x4780ef, _0x302121, _0x1039b4));
207
284
  } catch {
208
285
  }
209
286
  }
210
- for (const _0x127b35 of _0x524cab) {
211
- if (_0xfb81a4["ILUTH"](_0x127b35, null)) return _0x127b35;
287
+ for (const _0x18bf96 of _0x5b2951) {
288
+ if (_0x5d1946[_0xe76322(411)](_0x18bf96, null)) return _0x18bf96;
212
289
  }
213
- } else for (const _0x2f742f of _0x2d79d1) {
290
+ } else for (const _0x49dac of _0x56aa39) {
214
291
  try {
215
- _0xfb81a4[_0x5973c8(452)](_0x2f742f, _0x23b3da);
292
+ _0x5d1946[_0xe76322(384)](_0x49dac, _0x302121);
216
293
  } catch {
217
294
  }
218
295
  }
219
- }, _0x4a19db = (_0x40e2c9) => {
220
- const _0x48d6f8 = _0x133c34;
221
- _0xfb81a4[_0x48d6f8(523)](typeof _0x40e2c9, _0xfb81a4["cFEvs"]) && !_0x2d79d1["includes"](_0x40e2c9) && _0x2d79d1["push"](_0x40e2c9);
222
- }, _0x415dba = (_0x2521b) => {
223
- const _0x4fbec0 = _0x133c34, _0x170b1a = _0x133c34, _0x180537 = _0x2d79d1[_0x4fbec0(473)](_0x2521b);
224
- _0x180537 !== -1 && _0x2d79d1[_0x170b1a(466)](_0x180537, 8314 + 7148 + -15461 * 1);
225
- }, _0x456e19 = () => {
226
- const _0x53fa4b = _0x133c34;
227
- _0x2d79d1[_0x53fa4b(446)] = -1044 + 5 * 287 + -391 * 1;
228
- }, _0x8cd665 = {};
229
- return _0x8cd665[_0x133c34(498)] = _0xde4734, _0x8cd665[_0x133c34(476)] = _0x4a19db, _0x8cd665["removeListener"] = _0x415dba, _0x8cd665[_0x367bb4(485)] = _0x456e19, _0x8cd665;
230
- }, setClientListener = (_0x479365) => {
231
- const _0x5db56e = _0x4044, _0x176b64 = _0x4044, _0x121704 = { "lPQDm": function(_0x1ac16d) {
232
- return _0x1ac16d();
233
- }, "iHAKU": function(_0xcdc756) {
234
- return _0xcdc756();
235
- }, "aktdr": function(_0x3ad61a) {
236
- return _0x3ad61a();
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();
237
309
  } };
238
310
  {
239
- const { handleListener: _0x5e0b6c, addListener: _0x4911ea, removeListener: _0x5ee924, clearListener: _0x288665 } = _0x121704["lPQDm"](createHandleListener);
240
- _0x479365["_onresponse"] = _0x5e0b6c, _0x479365["addResponseListener"] = _0x4911ea, _0x479365["removeResponseListener"] = _0x5ee924, _0x479365["clearResponseListener"] = _0x288665;
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;
241
313
  }
242
314
  {
243
- const { handleListener: _0x5be1af, addListener: _0x126a3d, removeListener: _0x4a45eb, clearListener: _0x510c57 } = _0x121704[_0x5db56e(482)](createHandleListener);
244
- _0x479365["fallbackRequestHandler"] = _0x5be1af, _0x479365[_0x176b64(521)] = _0x126a3d, _0x479365["removeRequestListener"] = _0x4a45eb, _0x479365[_0x5db56e(472)] = _0x510c57;
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;
245
317
  }
246
318
  {
247
- const { handleListener: _0x39a9eb, addListener: _0x1e6016, removeListener: _0x288fcf, clearListener: _0x4006db } = _0x121704[_0x176b64(486)](createHandleListener);
248
- _0x479365["fallbackNotificationHandler"] = _0x39a9eb, _0x479365["addNotificationListener"] = _0x1e6016, _0x479365["removeNotificationListener"] = _0x288fcf, _0x479365[_0x5db56e(525)] = _0x4006db;
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;
249
321
  }
250
322
  };
251
- const initClientHandler = (_0x4b92bd, { beforeInit: _0x230fdd, afterInit: _0xd16416 } = {}) => {
252
- const _0x5183b6 = _0x4044, _0x58fc93 = _0x4044, _0xac52f7 = { "vqRbz": function(_0x1b35cc, _0x362d4d) {
253
- return _0x1b35cc === _0x362d4d;
254
- }, "rJyGJ": _0x5183b6(508), "gHncM": function(_0x4bd2d4, _0x36dcde) {
255
- return _0x4bd2d4(_0x36dcde);
256
- }, "ZFsMq": _0x58fc93(487), "vJSNK": function(_0x1c20f7) {
257
- return _0x1c20f7();
258
- } }, _0x589b1a = new Map(_0x4b92bd["_notificationHandlers"]);
259
- _0x4b92bd["_requestHandlers"][_0x58fc93(481)](), _0x4b92bd["_notificationHandlers"]["clear"](), _0xac52f7["vqRbz"](typeof _0x230fdd, _0x58fc93(508)) && _0x230fdd(), _0x4b92bd[_0x5183b6(487)][_0x5183b6(496)] === _0xac52f7[_0x5183b6(445)] && (_0x4b92bd[_0x58fc93(510)] = _0x4b92bd["_onresponse"]), _0xac52f7[_0x5183b6(467)](setClientListener, _0x4b92bd), _0x4b92bd[_0x5183b6(450)]((_0x33b3c1) => {
260
- const _0x8f1836 = _0x5183b6, _0x587ea9 = _0x58fc93;
261
- _0x4b92bd[_0x8f1836(510)][_0x587ea9(516)](_0x4b92bd, _0x33b3c1);
262
- }), typeof _0xd16416 === "function" && _0xac52f7[_0x58fc93(492)](_0xd16416), _0x4b92bd["addNotificationListener"]((_0x449c5b) => {
263
- const _0x104f43 = _0x58fc93, _0x2fe341 = _0x58fc93, { method: _0x21f9dc } = _0x449c5b, _0x475fdf = _0x589b1a["get"](_0x21f9dc);
264
- _0xac52f7["vqRbz"](typeof _0x475fdf, _0xac52f7[_0x104f43(457)]) && _0xac52f7[_0x2fe341(467)](_0x475fdf, _0x449c5b);
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);
330
+ }
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);
265
349
  });
266
350
  };
267
- const _0x174478 = _0x85e5, _0x2b1096 = _0x85e5;
268
- (function(_0x49f094, _0x28a72f) {
269
- const _0x1e722b = _0x85e5, _0x3a1109 = _0x85e5, _0x412ec8 = _0x49f094();
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;
355
+ };
356
+ return _0x28b5();
357
+ }
358
+ const _0x36a176 = _0x2e93;
359
+ (function(_0x359d44, _0x24b8f9) {
360
+ const _0x4b5bcb = _0x2e93, _0x8af79e = _0x2e93, _0x5e6754 = _0x359d44();
270
361
  while (!![]) {
271
362
  try {
272
- const _0x77aa96 = -parseInt(_0x1e722b(359)) / (15 * -9 + -2 * 3831 + 7798) + parseInt(_0x3a1109(370)) / (-4833 * 1 + -6643 + -3 * -3826) + -parseInt(_0x3a1109(355)) / (-2641 + 263 * -37 + -165 * -75) + parseInt(_0x1e722b(366)) / (-7839 + -16 * -490 + 3 * 1) + -parseInt(_0x1e722b(362)) / (-1 * -3963 + -4493 * -1 + -8451) + -parseInt(_0x3a1109(361)) / (-6955 + 4647 + 2314) + parseInt(_0x1e722b(367)) / (-272 * -35 + -5433 + 17 * -240) * (parseInt(_0x1e722b(353)) / (-7787 * 1 + -1344 + 9139));
273
- if (_0x77aa96 === _0x28a72f) break;
274
- else _0x412ec8["push"](_0x412ec8["shift"]());
275
- } catch (_0x36e71f) {
276
- _0x412ec8["push"](_0x412ec8["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"]());
277
368
  }
278
369
  }
279
- })(_0x3c31, -418 * 703 + -1213 * -158 + 498869);
280
- function _0x85e5(_0x52ead4, _0x32d1a9) {
281
- const _0x1b6a32 = _0x3c31();
282
- return _0x85e5 = function(_0x4d8349, _0xeb65a8) {
283
- _0x4d8349 = _0x4d8349 - (-3 * 1 + 1171 * 6 + -6671);
284
- let _0x463176 = _0x1b6a32[_0x4d8349];
285
- return _0x463176;
286
- }, _0x85e5(_0x52ead4, _0x32d1a9);
287
- }
370
+ })(_0x28b5, -26 * -19094 + 3 * 240984 + 139699 * -5);
288
371
  const randomUUID = () => {
289
- const _0x54795d = _0x85e5, _0x2b9a75 = _0x85e5, _0x477739 = {};
290
- _0x477739["UVwSO"] = function(_0x40fb7e, _0x519dad) {
291
- return _0x40fb7e & _0x519dad;
292
- }, _0x477739["usyxO"] = function(_0x1ebf7d, _0x4328b5) {
293
- return _0x1ebf7d === _0x4328b5;
294
- }, _0x477739["Vmtbe"] = function(_0x363f0f, _0x16b168) {
295
- return _0x363f0f | _0x16b168;
296
- }, _0x477739["Eymvg"] = function(_0x5db526, _0x8b213c) {
297
- return _0x5db526 === _0x8b213c;
298
- }, _0x477739[_0x54795d(369)] = "object", _0x477739[_0x54795d(354)] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
299
- const _0x321cf1 = _0x477739;
300
- if (_0x321cf1[_0x2b9a75(358)](typeof crypto, _0x321cf1["yEwBs"]) && crypto["randomUUID"]) return crypto["randomUUID"]();
301
- return _0x321cf1[_0x2b9a75(354)][_0x2b9a75(356)](/[xy]/g, (_0x4a99d2) => {
302
- const _0x3e02dd = _0x54795d, _0x5e898d = _0x54795d, _0x25b62a = _0x321cf1[_0x3e02dd(365)](crypto["getRandomValues"](new Uint8Array(-4420 + -3564 + 1597 * 5))[-15 * 5 + -298 * -14 + -4097], 4 * -416 + -5 * 221 + 2784), _0x576ad7 = _0x321cf1[_0x5e898d(360)](_0x4a99d2, "x") ? _0x25b62a : _0x321cf1[_0x3e02dd(352)](_0x321cf1["UVwSO"](_0x25b62a, 331 * 7 + -9813 * 1 + 1 * 7499), -4294 * -1 + 28 * -356 + 5682);
303
- return _0x576ad7[_0x3e02dd(363)](8896 + 47 * -50 + -653 * 10);
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);
304
385
  });
305
- }, randomBytes = (_0x4ee949) => {
306
- const _0x26ef89 = _0x85e5, _0x32a773 = new Uint8Array(_0x4ee949);
307
- return crypto["getRandomValues"](_0x32a773), Array["from"](_0x32a773, (_0x1b0457) => _0x1b0457["toString"](-1931 + 9555 + -1902 * 4)["padStart"](-2484 * -3 + 451 * 11 + -12411, "0"))[_0x26ef89(357)]("");
308
- }, _0x268db3 = {};
309
- _0x268db3[_0x174478(368)] = randomUUID, _0x268db3[_0x2b1096(364)] = randomBytes;
310
- function _0x3c31() {
311
- const _0x283233 = ["Vmtbe", "16NtBzZW", "mxbcI", "556449GnctmW", "replace", "join", "Eymvg", "584078guKyeG", "usyxO", "2310564UsarHd", "455735dtMeLt", "toString", "randomBytes", "UVwSO", "2286592abUDEo", "1254631BWQwGE", "randomUUID", "yEwBs", "1424714zvOIHr"];
312
- _0x3c31 = function() {
313
- return _0x283233;
314
- };
315
- return _0x3c31();
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);
316
398
  }
317
- const _0x4f289c = _0x5738, _0x27c85b = _0x5738;
318
- (function(_0x519967, _0x9b1766) {
319
- const _0x42e7ce = _0x5738, _0x3c754a = _0x5738, _0x1eac77 = _0x519967();
399
+ const _0x4f1f27 = _0x1255, _0x127d59 = _0x1255;
400
+ (function(_0x258c94, _0x348606) {
401
+ const _0x4939a9 = _0x1255, _0x2eeb11 = _0x1255, _0x59cc87 = _0x258c94();
320
402
  while (!![]) {
321
403
  try {
322
- const _0x986d94 = -parseInt(_0x42e7ce(434)) / (-6041 + -7754 + 13796) * (parseInt(_0x42e7ce(365)) / (2128 + -4323 + 2197)) + -parseInt(_0x42e7ce(342)) / (2 * 1193 + 40 * 96 + -6223) + parseInt(_0x42e7ce(373)) / (-3406 + -13 * 509 + -10027 * -1) + -parseInt(_0x3c754a(363)) / (1 * 9733 + -8 * 1217 + 2 * 4) + parseInt(_0x42e7ce(399)) / (-2427 * 2 + -4 * -761 + 1816) + parseInt(_0x3c754a(358)) / (-3853 * 1 + -3585 + 7445) * (parseInt(_0x3c754a(341)) / (8 * -1007 + 1 * -8704 + -64 * -262)) + parseInt(_0x42e7ce(388)) / (8424 + -34 * -68 + 631 * -17) * (parseInt(_0x42e7ce(403)) / (-1 * 8696 + 2 * -2320 + -1 * -13346));
323
- if (_0x986d94 === _0x9b1766) break;
324
- else _0x1eac77["push"](_0x1eac77["shift"]());
325
- } catch (_0xb9cd89) {
326
- _0x1eac77["push"](_0x1eac77["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"]());
327
409
  }
328
410
  }
329
- })(_0x4ca2, 1 * -141413 + 61361 + 208214);
330
- function _0x5738(_0x4f614c, _0x4b67f5) {
331
- const _0x1f8e1d = _0x4ca2();
332
- return _0x5738 = function(_0x14decf, _0x35e552) {
333
- _0x14decf = _0x14decf - (736 * 13 + -3617 + -5612);
334
- let _0x85fcb = _0x1f8e1d[_0x14decf];
335
- return _0x85fcb;
336
- }, _0x5738(_0x4f614c, _0x4b67f5);
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);
337
426
  }
338
- const ACCESS_TOKEN_EXPIRES_IN = (-4673 + 2286 + 2411) * (6387 + -203 * 48 + 3417) * (3 * -2447 + -142 * -28 + 3425);
339
- const REFRESH_TOKEN_EXPIRES_IN = (-177 + 8 * -401 + 3392) * (1 * 1135 + -58 * -28 + -2735) * (-2059 + 5 * 128 + 1479) * (-5596 + 9842 + -4186);
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);
340
429
  const generateAuthorizationCodeFunction = () => {
341
- const _0x3939e2 = _0x5738;
342
- return _0x268db3[_0x3939e2(397)](-8863 * 1 + 612 + 8275);
430
+ const _0x2be745 = _0x1255;
431
+ return _0x325be1[_0x2be745(183)](1 * 1758 + -2090 + 1 * 356);
343
432
  }, generateAccessTokenFunction = () => {
344
- return _0x268db3["randomBytes"](-7036 + 1461 + -801 * -7);
433
+ const _0x5e8688 = _0x1255;
434
+ return _0x325be1[_0x5e8688(183)](-3597 + 2306 + 21 * 63);
345
435
  }, generateRefreshTokenFunction = () => {
346
- return _0x268db3["randomBytes"](-361 * -3 + 5507 + -6542);
436
+ return _0x325be1["randomBytes"](-7330 + 5651 + 1727);
347
437
  };
348
438
  class MemoryClientsStore {
349
439
  constructor() {
350
- const _0x47ee45 = _0x5738;
351
- this[_0x47ee45(418)] = /* @__PURE__ */ new Map();
440
+ const _0x63191d = _0x1255;
441
+ this[_0x63191d(193)] = /* @__PURE__ */ new Map();
352
442
  }
353
- async ["getClient"](_0x2a1f88) {
354
- const _0x1f179a = _0x5738;
355
- return this["clients"][_0x1f179a(364)](_0x2a1f88);
443
+ async ["getClient"](_0x4749a1) {
444
+ const _0x9b9de0 = _0x1255;
445
+ return this[_0x9b9de0(193)]["get"](_0x4749a1);
356
446
  }
357
- async ["saveClient"](_0x5d20f9) {
358
- const _0x16ac5b = _0x5738, _0x7ef6ee = _0x5738;
359
- return this[_0x16ac5b(418)][_0x7ef6ee(422)](_0x5d20f9[_0x7ef6ee(419)], _0x5d20f9), _0x5d20f9;
447
+ async ["saveClient"](_0x8b2931) {
448
+ const _0x8c9566 = _0x1255;
449
+ return this["clients"]["set"](_0x8b2931[_0x8c9566(217)], _0x8b2931), _0x8b2931;
360
450
  }
361
- async [_0x4f289c(432)](_0x1c9a29) {
362
- const _0x49579c = _0x4f289c;
363
- return this[_0x49579c(418)]["delete"](_0x1c9a29);
451
+ async [_0x4f1f27(218)](_0x406b89) {
452
+ const _0x3873b7 = _0x4f1f27;
453
+ return this[_0x3873b7(193)]["delete"](_0x406b89);
364
454
  }
365
- async ["registerClient"](_0x406d66) {
366
- return this["saveClient"](_0x406d66);
455
+ async ["registerClient"](_0x3b2dcb) {
456
+ const _0x451ada = _0x4f1f27;
457
+ return this[_0x451ada(162)](_0x3b2dcb);
367
458
  }
368
459
  }
369
460
  class MemoryAuthorizationCodeStore {
370
461
  constructor() {
371
462
  this["codes"] = /* @__PURE__ */ new Map();
372
463
  }
373
- async ["getCodeDate"](_0x1794a2) {
374
- const _0x1de897 = _0x4f289c, _0x7e7701 = _0x4f289c;
375
- return this[_0x1de897(425)][_0x7e7701(364)](_0x1794a2);
464
+ async ["getCodeDate"](_0x39c5e0) {
465
+ const _0x46f782 = _0x4f1f27;
466
+ return this["codes"][_0x46f782(135)](_0x39c5e0);
376
467
  }
377
- async ["saveCodeData"](_0x19c6f0, _0x903099) {
378
- const _0x4721c0 = _0x4f289c;
379
- return this[_0x4721c0(425)][_0x4721c0(422)](_0x19c6f0, _0x903099), !![];
468
+ async [_0x127d59(172)](_0x7f8ec6, _0x41e501) {
469
+ const _0x15c8a8 = _0x127d59;
470
+ return this[_0x15c8a8(147)][_0x15c8a8(213)](_0x7f8ec6, _0x41e501), !![];
380
471
  }
381
- async [_0x27c85b(401)](_0x24ca6c) {
382
- const _0x3e8a08 = _0x4f289c;
383
- return this[_0x3e8a08(425)][_0x3e8a08(414)](_0x24ca6c);
472
+ async [_0x127d59(134)](_0x1edbb8) {
473
+ const _0x49a458 = _0x127d59;
474
+ return this["codes"][_0x49a458(219)](_0x1edbb8);
384
475
  }
385
476
  }
386
477
  class MemoryAccessTokensStore {
387
478
  constructor() {
388
- this["accessTokens"] = /* @__PURE__ */ new Map();
479
+ const _0x1e38a3 = _0x4f1f27;
480
+ this[_0x1e38a3(129)] = /* @__PURE__ */ new Map();
389
481
  }
390
- async ["getAccessToken"](_0x20cf1a) {
391
- return this["accessTokens"]["get"](_0x20cf1a);
482
+ async ["getAccessToken"](_0x5b9216) {
483
+ const _0x59c717 = _0x127d59, _0x146508 = _0x4f1f27;
484
+ return this[_0x59c717(129)][_0x146508(135)](_0x5b9216);
392
485
  }
393
- async ["saveAccessToken"](_0x227269, _0x42a52f) {
394
- return this["accessTokens"]["set"](_0x227269, _0x42a52f), !![];
486
+ async ["saveAccessToken"](_0x607848, _0xaac4f8) {
487
+ const _0xe77978 = _0x4f1f27;
488
+ return this[_0xe77978(129)]["set"](_0x607848, _0xaac4f8), !![];
395
489
  }
396
- async ["revokeAccessToken"](_0x52a35d) {
397
- return this["accessTokens"]["delete"](_0x52a35d);
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
497
  this["refreshTokens"] = /* @__PURE__ */ new Map();
403
498
  }
404
- async [_0x4f289c(368)](_0x468058) {
405
- const _0x1b7c71 = _0x27c85b;
406
- return this[_0x1b7c71(427)]["get"](_0x468058);
499
+ async [_0x127d59(140)](_0x3841b8) {
500
+ const _0x51dc2f = _0x127d59;
501
+ return this["refreshTokens"][_0x51dc2f(135)](_0x3841b8);
407
502
  }
408
- async [_0x4f289c(349)](_0x5d96fe, _0x169a38) {
409
- return this["refreshTokens"]["set"](_0x5d96fe, _0x169a38), !![];
503
+ async ["saveRefreshToken"](_0xc6b6cd, _0x593148) {
504
+ const _0x2d9174 = _0x4f1f27;
505
+ return this[_0x2d9174(131)]["set"](_0xc6b6cd, _0x593148), !![];
410
506
  }
411
- async [_0x4f289c(370)](_0x462845) {
412
- const _0x5a1b5a = _0x4f289c, _0x2c4bd0 = _0x27c85b;
413
- return this[_0x5a1b5a(427)][_0x2c4bd0(414)](_0x462845);
507
+ async ["revokeRefreshToken"](_0x361705) {
508
+ const _0x16027e = _0x4f1f27;
509
+ return this[_0x16027e(131)][_0x16027e(219)](_0x361705);
414
510
  }
415
511
  }
416
512
  class AuthServerProvider {
417
- constructor(_0x32512e = {}) {
418
- const _0x23793a = _0x4f289c, _0x23eb31 = _0x27c85b, _0x230b86 = {};
419
- _0x230b86[_0x23793a(415)] = function(_0x5eebd9, _0x1af0bc) {
420
- return _0x5eebd9 || _0x1af0bc;
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;
421
552
  };
422
- const _0x12ebce = _0x230b86, { clientsStore: _0x367533, codesStore: _0x256b62, accessTokensStore: _0x83e880, refreshTokensStore: _0x36d198, generateAuthorizationCode: _0x2f92ca, generateAccessToken: _0x235dde, generateRefreshToken: _0x135ec4, accessTokenExpiresIn: _0x3c493a, refreshTokenExpiresIn: _0x5d748f } = _0x32512e;
423
- this["clientsStore"] = _0x367533 || new MemoryClientsStore(), this[_0x23eb31(376)] = _0x256b62 || new MemoryAuthorizationCodeStore(), this[_0x23793a(374)] = _0x83e880 || new MemoryAccessTokensStore(), this[_0x23793a(361)] = _0x36d198 || new MemoryRefreshTokensStore(), this["generateAuthorizationCode"] = _0x12ebce[_0x23793a(415)](_0x2f92ca, generateAuthorizationCodeFunction), this[_0x23eb31(436)] = _0x235dde || generateAccessTokenFunction, this["generateRefreshToken"] = _0x12ebce["kxhTT"](_0x135ec4, generateRefreshTokenFunction), this[_0x23793a(412)] = _0x3c493a || ACCESS_TOKEN_EXPIRES_IN, this["refreshTokenExpiresIn"] = _0x12ebce["kxhTT"](_0x5d748f, REFRESH_TOKEN_EXPIRES_IN);
424
- }
425
- async [_0x4f289c(383)](_0x5871f1, _0x342ebc, _0x524ea8) {
426
- const _0x4ec492 = _0x4f289c, _0x56f616 = _0x4f289c, _0x163639 = {};
427
- _0x163639["CjAor"] = function(_0x25ba7a, _0x57a2b1) {
428
- return _0x25ba7a !== _0x57a2b1;
429
- }, _0x163639[_0x4ec492(404)] = "state";
430
- const _0x40add4 = _0x163639, _0x509d1b = this[_0x56f616(343)](), _0x353bd3 = {};
431
- _0x353bd3[_0x56f616(410)] = _0x509d1b;
432
- const _0x7425dc = new URLSearchParams(_0x353bd3);
433
- _0x40add4["CjAor"](_0x342ebc["state"], void 0) && _0x7425dc["set"](_0x40add4[_0x56f616(404)], _0x342ebc[_0x4ec492(420)]);
434
- const _0x5efce6 = {};
435
- _0x5efce6[_0x4ec492(431)] = _0x5871f1, _0x5efce6[_0x4ec492(369)] = _0x342ebc, await this[_0x4ec492(376)][_0x56f616(346)](_0x509d1b, _0x5efce6);
436
- const _0x1ff8d7 = new URL(_0x342ebc["redirectUri"] || _0x5871f1[_0x56f616(384)][-1481 * -1 + -6046 + 83 * 55]);
437
- _0x1ff8d7[_0x56f616(351)] = _0x7425dc[_0x4ec492(360)](), _0x524ea8[_0x4ec492(355)](_0x1ff8d7[_0x4ec492(360)]());
438
- }
439
- async [_0x27c85b(382)](_0x104e52, _0x494b8f) {
440
- const _0x4943b2 = _0x27c85b, _0x2c9085 = await this["codesStore"]["getCodeDate"](_0x494b8f);
441
- if (!_0x2c9085) throw new InvalidGrantError(_0x4943b2(353) + _0x104e52["client_id"]);
442
- return _0x2c9085[_0x4943b2(369)][_0x4943b2(375)];
443
- }
444
- async [_0x27c85b(405)](_0x2adcff, _0x19482b) {
445
- const _0x597b57 = _0x4f289c, _0x5c6596 = _0x27c85b, _0x5d0149 = {};
446
- _0x5d0149["sKcvw"] = function(_0x4c7054, _0x2cef3d) {
447
- return _0x4c7054 !== _0x2cef3d;
448
- }, _0x5d0149[_0x597b57(344)] = function(_0x438cd2, _0x367e03) {
449
- return _0x438cd2 + _0x367e03;
450
- }, _0x5d0149["XKVYr"] = function(_0x4fb462, _0x57caaa) {
451
- return _0x4fb462 * _0x57caaa;
452
- }, _0x5d0149[_0x5c6596(378)] = function(_0xef8ffd, _0x35dedd) {
453
- return _0xef8ffd * _0x35dedd;
454
- }, _0x5d0149[_0x597b57(429)] = _0x5c6596(387);
455
- const _0x1c8357 = _0x5d0149, _0x50c85b = await this[_0x597b57(376)]["getCodeDate"](_0x19482b);
456
- if (!_0x50c85b) throw new InvalidGrantError("Invalid authorization code for this client: " + _0x2adcff[_0x597b57(419)]);
457
- if (_0x1c8357["sKcvw"](_0x50c85b[_0x5c6596(431)]["client_id"], _0x2adcff[_0x5c6596(419)])) throw new InvalidGrantError(_0x5c6596(339) + _0x2adcff["client_id"]);
458
- const _0x111fa2 = _0x50c85b["params"]["redirectUri"] || _0x50c85b[_0x5c6596(431)][_0x597b57(384)][-9433 + 512 * -2 + -10457 * -1];
459
- await this[_0x597b57(376)][_0x5c6596(401)](_0x19482b);
460
- const _0x107f30 = this["generateAccessToken"](), _0x925d45 = this["generateRefreshToken"](), _0x3dbe82 = {};
461
- _0x3dbe82[_0x5c6596(394)] = _0x111fa2;
462
- const _0x5c96f5 = { "token": _0x107f30, "clientId": _0x2adcff[_0x5c6596(419)], "scopes": _0x50c85b[_0x5c6596(369)][_0x597b57(359)] || [], "expiresAt": _0x1c8357[_0x597b57(344)](Date[_0x597b57(354)](), _0x1c8357["XKVYr"](this[_0x597b57(412)], 6752 + 8165 + -13917)), "resource": _0x50c85b["params"]["resource"], "extra": _0x3dbe82 };
463
- await this[_0x597b57(374)][_0x5c6596(367)](_0x107f30, _0x5c96f5);
464
- const _0x2ce974 = {};
465
- _0x2ce974["isRevoked"] = ![];
466
- const _0xbf52b9 = { "token": _0x925d45, "clientId": _0x2adcff["client_id"], "scopes": _0x50c85b[_0x597b57(369)][_0x597b57(359)] || [], "expiresAt": _0x1c8357["WbEUC"](Date[_0x5c6596(354)](), _0x1c8357[_0x5c6596(378)](this[_0x5c6596(357)], 1 * -2921 + -1542 * -6 + -5331)), "extra": _0x2ce974 };
467
- return await this["refreshTokensStore"]["saveRefreshToken"](_0x925d45, _0xbf52b9), { "access_token": _0x107f30, "refresh_token": _0x925d45, "token_type": _0x1c8357[_0x597b57(429)], "expires_in": this[_0x5c6596(412)], "scope": (_0x50c85b["params"][_0x5c6596(359)] || [])["join"](" ") };
468
- }
469
- async ["exchangeRefreshToken"](_0x1a781d, _0x27006f) {
470
- const _0x478159 = _0x4f289c, _0x4d6ca4 = _0x4f289c, _0x3e04cb = {};
471
- _0x3e04cb[_0x478159(389)] = function(_0xf7c948, _0x229ccf) {
472
- return _0xf7c948 < _0x229ccf;
473
- }, _0x3e04cb[_0x4d6ca4(362)] = function(_0x14ed30, _0x1fa976) {
474
- return _0x14ed30 + _0x1fa976;
475
- }, _0x3e04cb["DdiDW"] = function(_0xfb60e8, _0x1af7ae) {
476
- return _0xfb60e8 * _0x1af7ae;
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"](" ") };
566
+ }
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;
477
588
  };
478
- const _0xcf6654 = _0x3e04cb, _0x259297 = await this["refreshTokensStore"]["getRefreshToken"](_0x27006f);
479
- if (!_0x259297) throw new InvalidGrantError(_0x478159(413) + _0x1a781d["client_id"]);
480
- if (_0xcf6654[_0x4d6ca4(389)](_0x259297["expiresAt"], Date[_0x4d6ca4(354)]())) throw new InvalidGrantError("Refresh token has expired for this client: " + _0x1a781d["client_id"]);
481
- if (_0x259297["clientId"] !== _0x1a781d[_0x4d6ca4(419)]) throw new InvalidGrantError(_0x478159(350) + _0x1a781d[_0x4d6ca4(419)]);
482
- await this[_0x478159(361)]["revokeRefreshToken"](_0x27006f);
483
- const _0x46b77e = this["generateAccessToken"](), _0x336c80 = this[_0x4d6ca4(407)](), _0x91c844 = { "token": _0x27006f, "clientId": _0x1a781d[_0x4d6ca4(419)], "scopes": _0x259297[_0x478159(359)], "expiresAt": _0xcf6654["DRJfV"](Date[_0x4d6ca4(354)](), _0xcf6654[_0x4d6ca4(356)](this[_0x4d6ca4(357)], -8422 * -1 + 5677 + 1 * -13099)) };
484
- return await this[_0x4d6ca4(361)]["saveRefreshToken"](_0x27006f, _0x91c844), { "access_token": _0x46b77e, "refresh_token": _0x336c80, "token_type": "Bearer", "expires_in": this[_0x478159(412)], "scope": _0x259297["scopes"][_0x4d6ca4(408)](" ") };
485
- }
486
- async ["verifyAccessToken"](_0x519a3e) {
487
- const _0x5d96d0 = _0x27c85b, _0x2a6af1 = _0x27c85b, _0x120462 = {};
488
- _0x120462[_0x5d96d0(411)] = _0x2a6af1(377);
489
- const _0x1a8098 = _0x120462, _0x233371 = await this[_0x5d96d0(374)][_0x2a6af1(423)](_0x519a3e);
490
- if (!_0x233371 || !_0x233371[_0x5d96d0(371)]) throw new InvalidTokenError(_0x1a8098["RmhZb"]);
491
- return { "token": _0x519a3e, "clientId": _0x233371["clientId"], "scopes": _0x233371[_0x2a6af1(359)], "expiresAt": Math["floor"](_0x233371["expiresAt"] / (1 * 2417 + 1 * 6353 + -518 * 15)), "resource": _0x233371["resource"], "extra": _0x233371["extra"] };
492
- }
493
- async [_0x4f289c(428)](_0x585eeb, _0x5888e1) {
494
- const _0x5b9e9a = _0x27c85b, _0x16b1f8 = _0x27c85b, _0x33affc = {};
495
- _0x33affc["VNwJm"] = function(_0x2862fc, _0x40c765) {
496
- return _0x2862fc === _0x40c765;
497
- }, _0x33affc[_0x5b9e9a(433)] = "access_token", _0x33affc[_0x5b9e9a(396)] = "refresh_token";
498
- const _0x2b96a6 = _0x33affc;
499
- if (_0x2b96a6[_0x5b9e9a(430)](_0x5888e1["token_type_hint"], _0x2b96a6["ItKpe"])) {
500
- const _0x51aa75 = await this["accessTokensStore"]["getAccessToken"](_0x5888e1[_0x16b1f8(385)]);
501
- if (!_0x51aa75 || _0x51aa75[_0x5b9e9a(391)] !== _0x585eeb[_0x5b9e9a(419)]) throw new InvalidTokenError(_0x16b1f8(400) + _0x585eeb["client_id"]);
502
- await this["accessTokensStore"]["revokeAccessToken"](_0x5888e1[_0x16b1f8(385)]);
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"]);
503
603
  } else {
504
- if (_0x5888e1[_0x5b9e9a(395)] === _0x2b96a6[_0x16b1f8(396)]) {
505
- const _0x115c98 = await this[_0x16b1f8(361)][_0x16b1f8(368)](_0x5888e1["token"]);
506
- if (!_0x115c98 || _0x115c98[_0x16b1f8(391)] !== _0x585eeb[_0x5b9e9a(419)]) throw new InvalidTokenError(_0x16b1f8(386) + _0x585eeb[_0x5b9e9a(419)]);
507
- await this[_0x16b1f8(361)]["revokeRefreshToken"](_0x5888e1["token"]);
508
- } else throw new InvalidGrantError("Unsupported token type hint: " + _0x5888e1[_0x16b1f8(395)] + _0x5b9e9a(380) + _0x585eeb[_0x5b9e9a(419)]);
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"]);
509
609
  }
510
610
  }
511
611
  }
512
- const createAuthMiddleware = (_0x4976b7, _0x345a24) => {
513
- const _0x9e2557 = _0x4f289c, _0x3ed1fb = { "XTXiP": function(_0x3ff663, _0x2ab790) {
514
- return _0x3ff663(_0x2ab790);
515
- } }, _0x50ebef = async (_0x10f0a3) => {
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) => {
516
618
  var _a;
517
- const _0x3a4c75 = _0x5738, _0x415584 = _0x5738, _0x557663 = await _0x4976b7["verifyAccessToken"](_0x10f0a3), _0x325011 = { "active": !![], "client_id": _0x557663["clientId"], "scope": _0x557663[_0x3a4c75(359)][_0x415584(408)](" "), "exp": _0x557663["expiresAt"], "aud": _0x557663["resource"] };
518
- if (!_0x325011["aud"]) throw new Error(_0x3a4c75(345));
519
- const _0x52035d = {};
520
- _0x52035d["requestedResource"] = _0x325011["aud"], _0x52035d["configuredResource"] = _0x345a24;
521
- if (!checkResourceAllowed(_0x52035d)) throw new Error(_0x3a4c75(381) + _0x345a24 + _0x415584(417) + _0x325011[_0x415584(426)]);
522
- return { "token": _0x10f0a3, "clientId": _0x325011["client_id"], "scopes": _0x325011["scope"] ? _0x325011["scope"][_0x3a4c75(347)](" ") : [], "expiresAt": _0x325011["exp"], "redirectUri": (_a = _0x557663[_0x415584(352)]) == null ? void 0 : _a["redirectUri"] };
523
- }, _0x126d54 = {};
524
- return _0x126d54[_0x9e2557(424)] = _0x50ebef, _0x3ed1fb["XTXiP"](requireBearerAuth, { "verifier": _0x126d54, "requiredScopes": [], "resourceMetadataUrl": _0x3ed1fb["XTXiP"](getOAuthProtectedResourceMetadataUrl, new URL(_0x345a24)) });
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)) });
525
627
  };
526
- const createAuthCallbackRouter = (_0x385d17, ..._0x390fd2) => {
527
- const _0xb0a8ef = _0x4f289c, _0x20d228 = _0x4f289c, _0x3e2237 = {};
528
- _0x3e2237["IssiA"] = function(_0x5044a5, _0x29bfd1) {
529
- return _0x5044a5 && _0x29bfd1;
530
- };
531
- const _0x47e062 = _0x3e2237, _0x25e151 = _0x1ba5a3[_0xb0a8ef(393)](), _0x21fd45 = /* @__PURE__ */ new Map();
532
- _0x25e151["get"](_0x385d17, _0x1ba5a3[_0xb0a8ef(372)](), (_0x13ec44, _0x3e99a6) => {
533
- const _0x8d3b94 = _0xb0a8ef, _0x332f8a = _0x20d228, { code: _0x228ff5, state: _0x552812, error: _0x30e522 } = _0x13ec44[_0x8d3b94(416)];
534
- if (_0x47e062["IssiA"](_0x228ff5, _0x552812)) _0x21fd45["set"](_0x552812, _0x228ff5), _0x3e99a6[_0x8d3b94(372)]({});
535
- else _0x30e522 && _0x3e99a6[_0x8d3b94(366)](2305 + -4275 + 1 * 2370)[_0x332f8a(402)]("OAuth authorization failed: " + _0x30e522);
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);
536
634
  });
537
- const _0x36d338 = [_0x1ba5a3[_0x20d228(372)](), ..._0x390fd2, (_0x5e1b24, _0x1ddfaf) => {
538
- const _0x47d319 = _0x20d228, _0xc50672 = _0xb0a8ef, { state: _0x5a5e11 } = _0x5e1b24[_0x47d319(398)];
539
- if (_0x5a5e11 && _0x21fd45["has"](_0x5a5e11)) {
540
- const _0x40df20 = _0x21fd45["get"](_0x5a5e11);
541
- _0x21fd45["delete"](_0x5a5e11);
542
- const _0x25c4e5 = {};
543
- _0x25c4e5[_0xc50672(410)] = _0x40df20, _0x1ddfaf[_0xc50672(372)](_0x25c4e5);
544
- } else _0x1ddfaf[_0x47d319(366)](138 * -25 + -1181 + 1677 * 3)["send"](_0x47d319(392) + _0x5a5e11);
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);
545
643
  }];
546
- return _0x25e151["post"](_0x385d17, ..._0x36d338), _0x25e151;
644
+ return _0x34d920["post"](_0x13d88b, ..._0x5f17f7), _0x34d920;
547
645
  };
548
- function _0x4ca2() {
549
- const _0x273b7b = ["deleteClient", "ItKpe", "58213QdubMn", "issuer", "generateAccessToken", "Authorization code was not issued to this client: ", "THtZy", "309304uJgGPc", "650586YkQhCn", "generateAuthorizationCode", "WbEUC", "Resource Indicator (RFC8707) missing", "saveCodeData", "split", "/.well-known/oauth-protected-resource", "saveRefreshToken", "Refresh token was not issued to this client: ", "search", "extra", "Invalid authorization code for this client: ", "now", "redirect", "DdiDW", "refreshTokenExpiresIn", "35GscyjL", "scopes", "toString", "refreshTokensStore", "DRJfV", "1222270BhrteE", "get", "2JEGwTi", "status", "saveAccessToken", "getRefreshToken", "params", "revokeRefreshToken", "expiresAt", "json", "995164kgcxSY", "accessTokensStore", "codeChallenge", "codesStore", "Token is invalid", "ZXMTG", "hpQMb", " to this client: ", "Expected resource indicator ", "challengeForAuthorizationCode", "authorize", "redirect_uris", "token", "Refresh token is invalid or does not belong to this client: ", "bearer", "169281FmVANd", "POOxX", "wBcEJ", "clientId", "No authorization code found for state: ", "Router", "redirectUri", "token_type_hint", "JSdBP", "randomBytes", "body", "1120656Arlgdu", "Access token is invalid or does not belong to this client: ", "deleteCodeData", "send", "10EFrFLG", "dHuiq", "exchangeAuthorizationCode", "use", "generateRefreshToken", "join", "EslVC", "code", "RmhZb", "accessTokenExpiresIn", "Refresh token is invalid or has been revoked for this client: ", "delete", "kxhTT", "query", ", got: ", "clients", "client_id", "state", "/.well-known/oauth-authorization-server", "set", "getAccessToken", "verifyAccessToken", "codes", "aud", "refreshTokens", "revokeToken", "gNROD", "VNwJm", "client"];
550
- _0x4ca2 = function() {
551
- return _0x273b7b;
552
- };
553
- return _0x4ca2();
554
- }
555
- const metadataHandler = (_0x16cd97) => {
556
- const _0x173faa = _0x4f289c, _0x29b53f = _0x27c85b, _0x702826 = { "wBcEJ": function(_0x5bc079) {
557
- return _0x5bc079();
558
- }, "UZDZv": "GET" }, _0x6a802d = _0x1ba5a3["Router"]();
559
- return _0x6a802d["use"](_0x702826[_0x173faa(390)](_0x42d1ae)), _0x6a802d["use"](allowedMethods([_0x702826["UZDZv"]])), _0x6a802d[_0x29b53f(406)]("/", (_0x4b8b3f, _0x57e378) => {
560
- _0x57e378["status"](-2898 * 1 + 4386 + -1288)["json"](_0x16cd97);
561
- }), _0x6a802d;
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;
562
654
  };
563
- const createAuthMetadataRouter = (_0x406d6e, _0x2ab56f, _0x296201) => {
564
- const _0x13f907 = _0x4f289c, _0x588652 = _0x4f289c, _0x11d350 = { "aUtvX": function(_0x5bd16c, _0x3241ac) {
565
- return _0x5bd16c(_0x3241ac);
566
- }, "hpQMb": _0x13f907(348), "THtZy": _0x13f907(421) }, _0x2a7b57 = _0x1ba5a3[_0x13f907(393)](), _0x5c14c7 = _0x11d350["aUtvX"](createOAuthMetadata, { "provider": _0x406d6e, "issuerUrl": new URL(_0x2ab56f) }), _0x2c1bf4 = { "resource": new URL(_0x296201)["href"], "authorization_servers": [_0x5c14c7[_0x13f907(435)]] };
567
- return _0x2a7b57[_0x588652(406)](_0x11d350[_0x588652(379)], _0x11d350["aUtvX"](metadataHandler, _0x2c1bf4)), _0x2a7b57[_0x588652(406)](_0x11d350[_0x13f907(340)], metadataHandler(_0x5c14c7)), _0x2a7b57;
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;
568
660
  };
569
- const createAuthRouter = (_0x21f432) => {
570
- const _0x2af24a = _0x27c85b, _0x5d02c1 = { "EslVC": function(_0x5086c3, _0x2dfe11) {
571
- return _0x5086c3(_0x2dfe11);
661
+ const createAuthRouter = (_0x39beed) => {
662
+ const _0x7cb428 = _0x127d59, _0x1e14fa = { "AIxvn": function(_0x3bd353, _0x4ca437) {
663
+ return _0x3bd353(_0x4ca437);
572
664
  } };
573
- return _0x5d02c1[_0x2af24a(409)](mcpAuthRouter, _0x21f432);
665
+ return _0x1e14fa[_0x7cb428(214)](mcpAuthRouter, _0x39beed);
574
666
  };
575
- function _0x52c6() {
576
- const _0x439ef1 = ["clientSessions", "allSettled", "completions", "ECnDb", "pSeJH", "prompts", "Allow", "version", "writeHead", "bIWcn", "mcp-server", "roots", "user", "sampling", "transport", "1.0.0", "event: close\ndata: \n\n", "tools", "hZKhj", "forEach", "cmFzA", "nCrwA", "jlJyR", "9131868HdwBlj", "auth", "initialize", "Method not allowed.", "close", "logging", "end", "qfAwp", "_sseResponse", "No client found for session ID ", "Internal server error", "rsQQt", "Invalid or missing session ID", "body", "2898986xCDZlF", "mcp-stream-proxy-server", "mcp-session-id", "capabilities", "params", "onerror", "HGCzN", "HhAxF", "client", "connect", "POST", "8912645hTBRuD", "KMbUG", "axyYw", "yWHog", "shouldClose", "server", "SSE", "onRemoterError", "protocolVersion", "json", "includes", "BziWR", "75260CBUrtR", "sessionId", "details", "handleStreamInspector", "gSYHi", "716buJdhN", "1548xdKZTF", "2.0", "type", "verify", "set", "transports", "x-forwarded-for", "clients", "_requestHandlers", "217uzhJsK", "message", "raqFy", "3126RcLxQD", "IIRYw", "headers", "PzXZN", "fulfilled", "SwShd", "brEPQ", "resources", "elicitation", "Dbvnn", "mcpServer", "_sessionId", "HvRHL", "subscribe", "sse-session-id", "listChanged", "jGlwo", "dbAQN", "62679034pRdoDC", "handleSseMessage", "1hzHwJw", "pcDEc", "method", "write", "bxdHV", "send", "push", "name", "handleStreamRequest", "error", "keys", "ping", "GET", "referer", "jsonrpc", "code", "HOJlP", "map", "DELETE", "removeRequestListener", "gyQZO", "377144FmDxyG", "GKIhY", "lVnwc", "value", "status", "handleRequest", "handleSseProxy", "notifications/initialized"];
577
- _0x52c6 = function() {
578
- return _0x439ef1;
579
- };
580
- return _0x52c6();
581
- }
582
- const _0x20a06a = _0x46ad, _0x294689 = _0x46ad;
583
- (function(_0x3fbcd0, _0x537973) {
584
- const _0x1b7fd1 = _0x46ad, _0x38e9b9 = _0x46ad, _0x28dfb2 = _0x3fbcd0();
667
+ const _0xba5988 = _0x2d47, _0x5ef2b3 = _0x2d47;
668
+ (function(_0x4c0065, _0x31d325) {
669
+ const _0x102c6c = _0x2d47, _0x1ecce7 = _0x2d47, _0x1e6b6c = _0x4c0065();
585
670
  while (!![]) {
586
671
  try {
587
- const _0x203043 = -parseInt(_0x1b7fd1(263)) / (9927 + -6422 + -16 * 219) * (parseInt(_0x1b7fd1(202)) / (-5979 * 1 + -8270 + -14251 * -1)) + parseInt(_0x1b7fd1(243)) / (-1130 * -7 + 11 * 98 + -5 * 1797) * (-parseInt(_0x38e9b9(230)) / (1 * -3694 + -5961 + 9659)) + -parseInt(_0x38e9b9(213)) / (167 + 2490 + 12 * -221) + -parseInt(_0x1b7fd1(315)) / (3789 + -371 * 14 + -1 * -1411) + parseInt(_0x38e9b9(240)) / (-947 * -1 + -16 * 25 + 36 * -15) * (parseInt(_0x1b7fd1(284)) / (15 * -572 + -370 + 8958)) + parseInt(_0x38e9b9(231)) / (3 * 1049 + 22 * 263 + 97 * -92) * (-parseInt(_0x38e9b9(225)) / (-51 * 46 + 3507 * 1 + -1151)) + parseInt(_0x38e9b9(261)) / (111 * -71 + 9481 + -1589);
588
- if (_0x203043 === _0x537973) break;
589
- else _0x28dfb2["push"](_0x28dfb2["shift"]());
590
- } catch (_0x4699a4) {
591
- _0x28dfb2["push"](_0x28dfb2["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"]());
592
677
  }
593
678
  }
594
- })(_0x52c6, 1 * -945178 + 130 * -4808 + 2494755);
595
- function _0x46ad(_0x4a052d, _0x3a738d) {
596
- const _0x1bb64c = _0x52c6();
597
- return _0x46ad = function(_0x29dc2f, _0x219f82) {
598
- _0x29dc2f = _0x29dc2f - (10 * 827 + 1 * 1223 + 3097 * -3);
599
- let _0x3d4d7b = _0x1bb64c[_0x29dc2f];
600
- return _0x3d4d7b;
601
- }, _0x46ad(_0x4a052d, _0x3a738d);
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);
602
687
  }
603
- const auth = ({ secret: _0x1876fa }) => (_0x3a27be, _0x4fbb72, _0xa4e5b5) => {
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;
692
+ };
693
+ return _0x291b();
694
+ }
695
+ const auth = ({ secret: _0xa3b1 }) => (_0x193369, _0xfe7e71, _0x4f0e84) => {
604
696
  var _a;
605
- const _0x2630dd = _0x46ad, _0xfb8b34 = _0x46ad, _0xdf2662 = {};
606
- _0xdf2662["Dbvnn"] = "Missing bearer token", _0xdf2662["lVnwc"] = "Invalid bearer token";
607
- const _0x2303c8 = _0xdf2662, _0x3f9aed = (_a = _0x3a27be["headers"]["authorization"]) == null ? void 0 : _a["split"](" ")[67 * 37 + -291 * -17 + -7425];
608
- if (!_0x3f9aed) {
609
- _0x4fbb72["status"](1761 + 8167 * 1 + 1361 * -7)[_0x2630dd(268)](_0x2303c8[_0x2630dd(252)]);
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)]);
610
702
  return;
611
703
  }
612
704
  try {
613
- _0x3a27be["user"] = _0x93d5a6[_0x2630dd(234)](_0x3f9aed, _0x1876fa), _0xa4e5b5();
614
- } catch (_0x305aa7) {
615
- const _0x29550d = {};
616
- _0x29550d[_0x2630dd(272)] = _0x2303c8[_0xfb8b34(286)], _0x29550d[_0xfb8b34(227)] = _0x305aa7[_0xfb8b34(241)], _0x4fbb72[_0xfb8b34(288)](1 * -6821 + -719 + 7943)[_0xfb8b34(222)](_0x29550d);
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);
617
709
  }
618
710
  };
619
- const getDeviceInfo = (_0x5ddeb2) => ({ "ip": _0x5ddeb2[_0x20a06a(245)][_0x20a06a(237)] || _0x5ddeb2["ip"] || "", "userAgent": _0x5ddeb2["headers"]["user-agent"] || "", "acceptLanguage": _0x5ddeb2[_0x20a06a(245)]["accept-language"] || "", "referer": _0x5ddeb2[_0x294689(245)][_0x294689(276)] || "" }), forwardProxyServer = (_0x408e33, _0x3d3116) => {
620
- const _0x29bd7e = _0x20a06a, _0x387a62 = _0x294689, _0x2eab7f = { "raqFy": function(_0x16cd0a, _0x3f3e27, _0x1d6e3a) {
621
- return _0x16cd0a(_0x3f3e27, _0x1d6e3a);
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);
622
729
  } };
623
- _0x2eab7f[_0x29bd7e(242)](forwardServerOnRequest, _0x408e33, _0x3d3116), _0x2eab7f["raqFy"](forwardServerOnNotification, _0x408e33, _0x3d3116);
624
- const _0x247b0b = _0x2eab7f[_0x387a62(242)](forwardClientOnRequest, _0x3d3116, _0x408e33), _0x538a1e = _0x2eab7f[_0x387a62(242)](forwardClientOnNotification, _0x3d3116, _0x408e33);
625
- _0x3d3116["addRequestListener"](_0x247b0b), _0x3d3116["addNotificationListener"](_0x538a1e), _0x408e33["onclose"] = () => {
626
- const _0x1a89c1 = _0x387a62;
627
- _0x3d3116[_0x1a89c1(282)](_0x247b0b), _0x3d3116["removeNotificationListener"](_0x538a1e);
628
- };
629
- }, initTwinClientHandler = (_0xa5328e, _0x5a76ba) => {
630
- const _0x515cc5 = _0x20a06a, _0x1dae9a = _0x294689, _0x129c13 = {};
631
- _0x129c13["rcraz"] = _0x515cc5(291), _0x129c13[_0x515cc5(249)] = function(_0x22b4cc, _0x3d4a15) {
632
- return _0x22b4cc instanceof _0x3d4a15;
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);
633
734
  };
634
- const _0x366115 = _0x129c13, _0xa89204 = () => {
635
- const _0x2f8a67 = _0x515cc5, _0x164caa = _0x515cc5, _0x151499 = {};
636
- _0x151499["listChanged"] = !![];
637
- const _0x3695f8 = {};
638
- _0x3695f8[_0x2f8a67(256)] = !![], _0x3695f8["listChanged"] = !![];
639
- const _0xd183f1 = {};
640
- _0xd183f1[_0x2f8a67(258)] = !![];
641
- const _0x50df50 = {};
642
- _0x50df50["prompts"] = _0x151499, _0x50df50["resources"] = _0x3695f8, _0x50df50[_0x164caa(309)] = _0xd183f1, _0x50df50["completions"] = {}, _0x50df50[_0x164caa(320)] = {};
643
- const _0x2793e1 = _0x50df50, _0x3af332 = {};
644
- _0x3af332[_0x164caa(270)] = _0x2f8a67(302), _0x3af332[_0x164caa(299)] = _0x164caa(307), _0xa5328e[_0x2f8a67(239)]["set"](_0x164caa(317), (_0xd67aec) => ({ "protocolVersion": _0xd67aec[_0x164caa(206)][_0x2f8a67(221)], "capabilities": _0x2793e1, "serverInfo": _0x3af332 })), _0xa5328e["_notificationHandlers"][_0x164caa(235)](_0x366115["rcraz"], () => {
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"], () => {
645
751
  });
646
- }, _0x57bfbe = () => {
647
- const _0x47ccda = _0x515cc5, _0x3e27a5 = _0x1dae9a, _0x220345 = {};
648
- _0x220345[_0x47ccda(285)] = _0x3e27a5(308);
649
- const _0x5011fa = _0x220345;
650
- _0x366115["brEPQ"](_0x5a76ba, SSEServerTransport) && (_0x5a76ba["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)] = () => {
651
757
  var _a, _b;
652
- const _0x1f3c83 = _0x3e27a5;
653
- return (_a = _0x5a76ba["_sseResponse"]) == null ? void 0 : _a[_0x1f3c83(266)](_0x5011fa[_0x1f3c83(285)])["end"](), _0x5a76ba[_0x1f3c83(323)] = void 0, (_b = _0x5a76ba["onclose"]) == null ? void 0 : _b.call(_0x5a76ba), Promise["resolve"]();
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)]();
654
760
  });
655
- }, _0x250d0c = {};
656
- _0x250d0c["beforeInit"] = _0xa89204, _0x250d0c["afterInit"] = _0x57bfbe, initClientHandler(_0xa5328e, _0x250d0c);
761
+ }, _0x18fd4b = {};
762
+ _0x18fd4b["beforeInit"] = _0x4df33a, _0x18fd4b[_0x2d7938(525)] = _0x52ab13, _0x3fc174[_0x2d7938(528)](initClientHandler, _0x7c249, _0x18fd4b);
657
763
  };
658
764
  const useProxyHandles = () => {
659
- const _0x76a38c = _0x20a06a, _0x51262c = _0x20a06a, _0x35bafb = { "HGCzN": function(_0x2e02fd, _0x46b511) {
660
- return _0x2e02fd(_0x46b511);
661
- }, "dbAQN": _0x76a38c(257), "JcfPn": "mcp-sse-twin-client", "pSeJH": "1.0.0", "tJNRe": function(_0xb38d1c, _0x58b5e7) {
662
- return _0xb38d1c(_0x58b5e7);
663
- }, "WYlPz": _0x51262c(219), "KgkaV": function(_0x5595af, _0x3136f8, _0x45555f) {
664
- return _0x5595af(_0x3136f8, _0x45555f);
665
- }, "axyYw": _0x76a38c(319), "sDlMU": function(_0x27042f, _0x5ff4b9) {
666
- return _0x27042f(_0x5ff4b9);
667
- }, "gyQZO": "No transport found", "aPbtV": function(_0x425111, _0x4422eb) {
668
- return _0x425111 === _0x4422eb;
669
- }, "nCrwA": _0x51262c(212), "jlJyR": function(_0x457260, _0x228947) {
670
- return _0x457260 === _0x228947;
671
- }, "cmFzA": _0x76a38c(275), "SwShd": _0x76a38c(281), "HIkJt": function(_0x49c7ef, _0x71802a) {
672
- return _0x49c7ef(_0x71802a);
673
- }, "HhAxF": "GET, POST, DELETE", "uixmn": _0x76a38c(232), "xLWyK": function(_0x4b2aab, _0x1ec110) {
674
- return _0x4b2aab === _0x1ec110;
675
- }, "bIWcn": "text/event-stream", "hZKhj": function(_0x422a3e, _0x26bd1f) {
676
- return _0x422a3e === _0x26bd1f;
677
- }, "pcDEc": function(_0x4bf747) {
678
- return _0x4bf747();
679
- }, "aWvfb": "Invalid or missing session ID", "nHfJw": function(_0x5027c8, _0x3557f6) {
680
- return _0x5027c8(_0x3557f6);
681
- }, "HvRHL": "StreamableHTTP", "yWHog": "mcp-session-id", "xJOKW": "stream-session-id", "BziWR": "mcp-stream-twin-client", "rsQQt": function(_0x5e9790, _0x3c8135, _0x2bd0dd) {
682
- return _0x5e9790(_0x3c8135, _0x2bd0dd);
683
- }, "bxdHV": function(_0x468588, _0x4ee8e3) {
684
- return _0x468588(_0x4ee8e3);
685
- }, "ivJNB": "Bad Request: No valid session ID provided", "ECnDb": function(_0x35f2c7, _0x48e69a) {
686
- return _0x35f2c7(_0x48e69a);
687
- }, "HuQqg": _0x76a38c(203), "gSYHi": "Internal server error", "HNJCu": function(_0x5371a6, _0x9f321f) {
688
- return _0x5371a6 !== _0x9f321f;
689
- }, "jGlwo": function(_0x35dde4, _0x3469c7) {
690
- return _0x35dde4 !== _0x3469c7;
691
- }, "IIRYw": function(_0x3e617b, _0x5a5083) {
692
- return _0x3e617b === _0x5a5083;
693
- }, "KMbUG": _0x51262c(247), "HOJlP": function(_0x58bba3, _0x3f1e4b) {
694
- return _0x58bba3 === _0x3f1e4b;
695
- } }, _0x20f02f = {}, _0x444bf8 = {}, _0x283b90 = {}, _0x1af8fb = {};
696
- let _0x255a21 = () => {
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 = () => {
697
805
  };
698
- const _0x3fabb8 = (_0x508066) => {
699
- _0x255a21 = _0x508066;
806
+ const _0x3fa284 = (_0x2369bc) => {
807
+ _0xa96593 = _0x2369bc;
700
808
  };
701
- let _0x451ac6 = () => {
809
+ let _0x43f5b8 = () => {
702
810
  };
703
- const _0x320940 = (_0x562564) => {
704
- _0x451ac6 = _0x562564;
705
- }, _0x31ee3c = async (_0x2d5107, _0x29e397, _0x451d88) => {
706
- const _0x226402 = _0x76a38c, _0x2026ef = _0x51262c, _0x2ee668 = new SSEServerTransport(_0x451d88, _0x29e397), _0x4554e2 = _0x2d5107[_0x226402(245)][_0x35bafb[_0x226402(260)]];
707
- _0x4554e2 && (_0x2ee668[_0x226402(254)] = _0x4554e2);
708
- const _0xe06ac6 = _0x2ee668[_0x226402(226)];
709
- _0x20f02f[_0xe06ac6] = _0x2ee668, _0x2d5107["on"](_0x2026ef(319), () => {
710
- _0x2ee668["close"](), delete _0x20f02f[_0xe06ac6], delete _0x444bf8[_0xe06ac6];
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];
711
822
  });
712
- const _0x1ce9f1 = {};
713
- _0x1ce9f1[_0x226402(258)] = !![];
714
- const _0x25acb5 = {};
715
- _0x25acb5[_0x2026ef(256)] = !![], _0x25acb5["listChanged"] = !![];
716
- const _0x293dd5 = {};
717
- _0x293dd5[_0x226402(258)] = !![];
718
- const _0x43b120 = {};
719
- _0x43b120["listChanged"] = !![];
720
- const _0x408bcc = {};
721
- _0x408bcc[_0x226402(297)] = _0x1ce9f1, _0x408bcc[_0x2026ef(250)] = _0x25acb5, _0x408bcc[_0x2026ef(309)] = _0x293dd5, _0x408bcc["completions"] = {}, _0x408bcc["logging"] = {}, _0x408bcc[_0x226402(303)] = _0x43b120, _0x408bcc[_0x2026ef(305)] = {}, _0x408bcc[_0x2026ef(251)] = {};
722
- const _0x504ed8 = _0x408bcc, _0x26f4e7 = {};
723
- _0x26f4e7[_0x226402(270)] = _0x35bafb["JcfPn"], _0x26f4e7[_0x226402(299)] = _0x35bafb["pSeJH"];
724
- const _0x466ce3 = {};
725
- _0x466ce3[_0x2026ef(205)] = _0x504ed8;
726
- const _0x15fcf0 = new Client(_0x26f4e7, _0x466ce3);
727
- _0x444bf8[_0xe06ac6] = { "client": _0x15fcf0, "transport": _0x2ee668, "user": _0x2d5107["auth"] || _0x2d5107[_0x226402(304)], "device": _0x35bafb["tJNRe"](getDeviceInfo, _0x2d5107), "type": _0x35bafb["WYlPz"] }, _0x2ee668[_0x2026ef(207)] = (_0xa3eed4) => {
728
- const _0x17894a = _0x2026ef, _0x3610a3 = _0x226402, _0x1ad3e1 = {};
729
- _0x1ad3e1["client"] = _0x15fcf0, _0x1ad3e1[_0x17894a(306)] = _0x2ee668, _0x1ad3e1[_0x3610a3(272)] = _0xa3eed4, _0x1ad3e1[_0x17894a(233)] = "SSE", _0x35bafb[_0x17894a(208)](_0x255a21, _0x1ad3e1);
730
- }, _0x35bafb["KgkaV"](initTwinClientHandler, _0x15fcf0, _0x2ee668), await _0x15fcf0[_0x2026ef(211)](_0x2ee668);
731
- }, _0x36fe27 = async (_0x4a9267, _0x34d664, _0x9188d) => {
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) => {
732
842
  var _a;
733
- const _0x228889 = _0x76a38c, _0xd3f124 = _0x76a38c, _0x4af169 = { "qfAwp": function(_0x5927cb, _0x413a75) {
734
- return _0x5927cb(_0x413a75);
735
- }, "COdPg": "SSE" }, _0x2e83b6 = _0x4a9267["query"]["sessionId"], _0x2965e8 = (_a = _0x444bf8[_0x2e83b6]) == null ? void 0 : _a[_0x228889(210)];
736
- if (!_0x2965e8) {
737
- _0x34d664[_0xd3f124(288)](-6790 + 1 * 1502 + 5688)["send"]("No client found for session ID " + _0x2e83b6);
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);
738
846
  return;
739
847
  }
740
- const _0x5f1b27 = new SSEServerTransport(_0x9188d, _0x34d664), _0x4c1f4b = _0x5f1b27["sessionId"];
741
- _0x283b90[_0x4c1f4b] = _0x5f1b27, _0x4a9267["on"](_0x35bafb[_0xd3f124(215)], () => {
742
- _0x5f1b27["close"](), delete _0x283b90[_0x4c1f4b], delete _0x1af8fb[_0x4c1f4b];
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];
743
851
  });
744
- const _0x51ac56 = {};
745
- _0x51ac56["listChanged"] = !![];
746
- const _0x4c8653 = {};
747
- _0x4c8653["subscribe"] = !![], _0x4c8653[_0xd3f124(258)] = !![];
748
- const _0x2d60b6 = {};
749
- _0x2d60b6["listChanged"] = !![];
750
- const _0x18a0af = {};
751
- _0x18a0af["prompts"] = _0x51ac56, _0x18a0af[_0x228889(250)] = _0x4c8653, _0x18a0af[_0x228889(309)] = _0x2d60b6, _0x18a0af[_0xd3f124(294)] = {}, _0x18a0af[_0x228889(320)] = {};
752
- const _0x2650d8 = _0x18a0af, _0x289e6a = {};
753
- _0x289e6a["name"] = "mcp-sse-proxy-server", _0x289e6a["version"] = _0x35bafb[_0x228889(296)];
754
- const _0x5bb048 = {};
755
- _0x5bb048["capabilities"] = _0x2650d8;
756
- const _0x2ba5f0 = new McpServer(_0x289e6a, _0x5bb048);
757
- _0x1af8fb[_0x4c1f4b] = { "mcpServer": _0x2ba5f0, "transport": _0x5f1b27, "client": _0x2e83b6, "user": _0x4a9267["auth"] || _0x4a9267[_0x228889(304)], "device": _0x35bafb["sDlMU"](getDeviceInfo, _0x4a9267), "type": _0x35bafb["WYlPz"] }, _0x5f1b27["onerror"] = (_0x48455f) => {
758
- const _0xe1d310 = _0xd3f124;
759
- _0x4af169[_0xe1d310(322)](_0x451ac6, { "mcpServer": _0x2ba5f0, "transport": _0x5f1b27, "client": _0x2e83b6, "error": _0x48455f, "type": _0x4af169["COdPg"] });
760
- }, await _0x2ba5f0[_0xd3f124(211)](_0x5f1b27), _0x35bafb["KgkaV"](forwardProxyServer, _0x2ba5f0["server"], _0x2965e8);
761
- }, _0xa26b82 = async (_0x3b6605, _0xd4d5d4) => {
762
- const _0x3bb410 = _0x76a38c, _0x48e644 = _0x76a38c, _0x4b6498 = _0x3b6605["query"]["sessionId"], _0x48157d = _0x20f02f[_0x4b6498] || _0x283b90[_0x4b6498];
763
- _0x48157d ? await _0x48157d["handlePostMessage"](_0x3b6605, _0xd4d5d4) : _0xd4d5d4[_0x3bb410(288)](46 * -163 + -189 * -36 + 547 * 2)[_0x48e644(268)](_0x35bafb[_0x48e644(283)]);
764
- }, _0x598f32 = async (_0x4f0123, _0x576383) => {
765
- const _0x3778d2 = _0x76a38c, _0x1452ab = _0x51262c;
766
- if (_0x35bafb["aPbtV"](_0x4f0123[_0x3778d2(265)], _0x35bafb[_0x3778d2(313)])) await _0x35bafb["KgkaV"](_0xa8a1cd, _0x4f0123, _0x576383);
767
- else _0x35bafb[_0x1452ab(314)](_0x4f0123[_0x3778d2(265)], _0x35bafb[_0x3778d2(312)]) || _0x4f0123[_0x3778d2(265)] === _0x35bafb[_0x1452ab(248)] ? await _0x434a15(_0x4f0123, _0x576383) : await _0x35bafb["HIkJt"](_0x1599c5, _0x576383);
768
- }, _0x1599c5 = async (_0xccf4b7) => {
769
- const _0x465f4a = _0x76a38c, _0x202c77 = _0x76a38c, _0x387d1b = {};
770
- _0x387d1b[_0x465f4a(298)] = _0x35bafb[_0x465f4a(209)];
771
- const _0xab7381 = {};
772
- _0xab7381[_0x202c77(278)] = -32e3, _0xab7381[_0x465f4a(241)] = _0x465f4a(318);
773
- const _0x5c39f9 = {};
774
- _0x5c39f9[_0x465f4a(277)] = _0x35bafb["uixmn"], _0x5c39f9[_0x202c77(272)] = _0xab7381, _0x5c39f9["id"] = null, _0xccf4b7[_0x465f4a(300)](-3983 + 6788 + 30 * -80, _0x387d1b)[_0x465f4a(321)](JSON["stringify"](_0x5c39f9));
775
- }, _0x434a15 = async (_0x50445f, _0x324b0c) => {
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) => {
776
882
  var _a;
777
- const _0x3efc91 = _0x51262c, _0x38472c = _0x76a38c, _0x29315d = _0x50445f["headers"][_0x3efc91(204)], _0x2808f2 = _0x20f02f[_0x29315d];
778
- if (_0x2808f2) {
779
- await _0x2808f2["handleRequest"](_0x50445f, _0x324b0c);
780
- const _0x321ed2 = () => {
781
- delete _0x20f02f[_0x29315d], delete _0x444bf8[_0x29315d];
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];
782
888
  };
783
- if (_0x35bafb["xLWyK"](_0x50445f["method"], _0x35bafb["cmFzA"]) && ((_a = _0x50445f[_0x3efc91(245)]["accept"]) == null ? void 0 : _a[_0x38472c(223)](_0x35bafb[_0x38472c(301)]))) _0x50445f["once"](_0x35bafb[_0x38472c(215)], _0x321ed2);
784
- else _0x35bafb["hZKhj"](_0x50445f["method"], _0x35bafb["SwShd"]) && _0x35bafb[_0x3efc91(264)](_0x321ed2);
785
- } else _0x324b0c[_0x38472c(288)](2 * 4306 + -2923 + -5289)[_0x38472c(268)](_0x35bafb["aWvfb"]);
786
- }, _0xa8a1cd = async (_0x5ddf6e, _0x5be061) => {
787
- const _0x1a3f1b = _0x51262c, _0x274d0f = _0x51262c;
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;
788
894
  try {
789
- const _0x4729ac = _0x5ddf6e[_0x1a3f1b(245)][_0x35bafb[_0x1a3f1b(216)]], _0x488e88 = _0x5ddf6e["headers"][_0x35bafb["xJOKW"]];
790
- let _0xdbe225 = _0x20f02f[_0x4729ac];
791
- if (_0xdbe225) await _0xdbe225["handleRequest"](_0x5ddf6e, _0x5be061, _0x5ddf6e["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"]);
792
898
  else {
793
- if (!_0x4729ac && _0x35bafb["tJNRe"](isInitializeRequest, _0x5ddf6e["body"])) {
794
- const _0x2d9b07 = {};
795
- _0x2d9b07["sessionIdGenerator"] = () => _0x488e88, _0xdbe225 = new StreamableHTTPServerTransport(_0x2d9b07);
796
- const _0x4fa118 = {};
797
- _0x4fa118[_0x274d0f(258)] = !![];
798
- const _0xd6a6ae = {};
799
- _0xd6a6ae["subscribe"] = !![], _0xd6a6ae["listChanged"] = !![];
800
- const _0x1e2cef = {};
801
- _0x1e2cef["listChanged"] = !![];
802
- const _0x1643d4 = {};
803
- _0x1643d4["listChanged"] = !![];
804
- const _0x45b046 = {};
805
- _0x45b046["prompts"] = _0x4fa118, _0x45b046[_0x1a3f1b(250)] = _0xd6a6ae, _0x45b046[_0x274d0f(309)] = _0x1e2cef, _0x45b046["completions"] = {}, _0x45b046[_0x274d0f(320)] = {}, _0x45b046[_0x274d0f(303)] = _0x1643d4, _0x45b046[_0x274d0f(305)] = {}, _0x45b046["elicitation"] = {};
806
- const _0x346679 = _0x45b046, _0x471c1d = {};
807
- _0x471c1d["name"] = _0x35bafb[_0x274d0f(224)], _0x471c1d["version"] = _0x35bafb[_0x1a3f1b(296)];
808
- const _0x24f908 = {};
809
- _0x24f908[_0x1a3f1b(205)] = _0x346679;
810
- const _0x292d84 = new Client(_0x471c1d, _0x24f908);
811
- _0x35bafb[_0x1a3f1b(326)](initTwinClientHandler, _0x292d84, _0xdbe225), _0x444bf8[_0x488e88] = { "client": _0x292d84, "transport": _0xdbe225, "user": _0x5ddf6e["auth"] || _0x5ddf6e[_0x1a3f1b(304)], "device": _0x35bafb[_0x1a3f1b(267)](getDeviceInfo, _0x5ddf6e), "type": _0x35bafb[_0x274d0f(255)] }, _0x20f02f[_0x488e88] = _0xdbe225, _0xdbe225[_0x1a3f1b(226)] = _0x488e88, _0xdbe225["onclose"] = () => {
812
- const _0x497152 = _0xdbe225["sessionId"];
813
- _0x497152 && _0x20f02f[_0x497152] && (delete _0x20f02f[_0x497152], delete _0x444bf8[_0x497152]);
814
- }, _0xdbe225["onerror"] = (_0x3b4790) => {
815
- _0x35bafb["nHfJw"](_0x255a21, { "client": _0x292d84, "transport": _0xdbe225, "error": _0x3b4790, "type": _0x35bafb["HvRHL"] });
816
- }, await _0x292d84["connect"](_0xdbe225), await _0xdbe225["handleRequest"](_0x5ddf6e, _0x5be061, _0x5ddf6e[_0x1a3f1b(328)]);
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"]);
817
924
  } else {
818
- const _0x2025f8 = {};
819
- _0x2025f8["jsonrpc"] = _0x35bafb["uixmn"], _0x2025f8[_0x1a3f1b(272)] = {}, _0x2025f8["id"] = null, _0x2025f8[_0x1a3f1b(272)]["code"] = -(-56767 + -1 * -51601 + 37166), _0x2025f8[_0x1a3f1b(272)][_0x274d0f(241)] = _0x35bafb["ivJNB"], _0x5be061[_0x274d0f(288)](4866 + -5743 + 1277)["json"](_0x2025f8);
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);
820
927
  }
821
928
  }
822
929
  } catch {
823
- if (!_0x5be061["headersSent"]) {
824
- const _0x137ac5 = {};
825
- _0x137ac5["code"] = -32603, _0x137ac5[_0x1a3f1b(241)] = _0x274d0f(325);
826
- const _0x20b4ae = {};
827
- _0x20b4ae["jsonrpc"] = _0x274d0f(232), _0x20b4ae["error"] = _0x137ac5, _0x20b4ae["id"] = null, _0x5be061["status"](-71 * -48 + 3637 + -11 * 595)[_0x274d0f(222)](_0x20b4ae);
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);
828
935
  }
829
936
  }
830
- }, _0xd1b50f = async (_0x23472f, _0x85b2e8) => {
831
- const _0x268133 = _0x76a38c, _0x4061ea = _0x51262c;
832
- if (_0x35bafb["jlJyR"](_0x23472f[_0x268133(265)], _0x35bafb[_0x4061ea(313)])) await _0x35bafb["KgkaV"](_0x14d4c3, _0x23472f, _0x85b2e8);
833
- else _0x35bafb[_0x4061ea(310)](_0x23472f["method"], _0x35bafb["cmFzA"]) || _0x23472f[_0x268133(265)] === _0x35bafb[_0x268133(248)] ? await _0x5c7eee(_0x23472f, _0x85b2e8) : await _0x35bafb[_0x268133(295)](_0x1599c5, _0x85b2e8);
834
- }, _0x5c7eee = async (_0x309024, _0x5092cc) => {
835
- const _0x17a472 = _0x51262c, _0x34394d = _0x309024["headers"]["mcp-session-id"], _0x4c53de = _0x283b90[_0x34394d];
836
- _0x4c53de ? (await _0x4c53de["handleRequest"](_0x309024, _0x5092cc), _0x309024[_0x17a472(265)] === _0x35bafb[_0x17a472(248)] && (delete _0x283b90[_0x34394d], delete _0x1af8fb[_0x34394d])) : _0x5092cc[_0x17a472(288)](-7657 + 34 * -13 + 8499)[_0x17a472(268)](_0x17a472(327));
837
- }, _0x14d4c3 = async (_0x233126, _0x1351e0) => {
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) => {
838
945
  var _a;
839
- const _0x4959f2 = _0x51262c, _0x3e9af9 = _0x51262c;
946
+ const _0x2475c3 = _0x2e1a8d, _0x565e5a = _0x46ea31;
840
947
  try {
841
- const _0x328653 = _0x233126[_0x4959f2(245)][_0x35bafb[_0x4959f2(216)]], _0x3da94e = _0x233126["query"][_0x4959f2(226)];
842
- let _0x3bf4fd = _0x283b90[_0x328653];
843
- if (_0x3bf4fd) await _0x3bf4fd["handleRequest"](_0x233126, _0x1351e0, _0x233126["body"]);
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)]);
844
951
  else {
845
- if (!_0x328653 && _0x35bafb[_0x3e9af9(295)](isInitializeRequest, _0x233126["body"])) {
846
- const _0x589046 = (_a = _0x444bf8[_0x3da94e]) == null ? void 0 : _a[_0x3e9af9(210)];
847
- if (!_0x589046) {
848
- _0x1351e0["status"](2865 + -9191 + 177 * 38)[_0x4959f2(268)](_0x3e9af9(324) + _0x3da94e);
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);
849
956
  return;
850
957
  }
851
- const _0x42a0c5 = _0x268db3["randomUUID"](), _0x5efd47 = {};
852
- _0x5efd47["sessionIdGenerator"] = () => _0x42a0c5, _0x3bf4fd = new StreamableHTTPServerTransport(_0x5efd47);
853
- const _0x56d383 = {};
854
- _0x56d383["listChanged"] = !![];
855
- const _0x49405c = {};
856
- _0x49405c["subscribe"] = !![], _0x49405c[_0x3e9af9(258)] = !![];
857
- const _0x385253 = {};
858
- _0x385253["listChanged"] = !![];
859
- const _0xb2e1f3 = {};
860
- _0xb2e1f3["prompts"] = _0x56d383, _0xb2e1f3[_0x3e9af9(250)] = _0x49405c, _0xb2e1f3[_0x3e9af9(309)] = _0x385253, _0xb2e1f3["completions"] = {}, _0xb2e1f3["logging"] = {};
861
- const _0x151caa = _0xb2e1f3, _0x1c9f77 = {};
862
- _0x1c9f77[_0x4959f2(270)] = _0x35bafb["HuQqg"], _0x1c9f77[_0x3e9af9(299)] = _0x35bafb["pSeJH"];
863
- const _0x3a8952 = {};
864
- _0x3a8952["capabilities"] = _0x151caa;
865
- const _0x508f18 = new McpServer(_0x1c9f77, _0x3a8952);
866
- _0x1af8fb[_0x42a0c5] = { "mcpServer": _0x508f18, "transport": _0x3bf4fd, "client": _0x3da94e, "user": _0x233126[_0x4959f2(316)] || _0x233126[_0x4959f2(304)], "device": _0x35bafb["bxdHV"](getDeviceInfo, _0x233126), "type": _0x35bafb[_0x3e9af9(255)] }, _0x283b90[_0x42a0c5] = _0x3bf4fd, _0x3bf4fd["sessionId"] = _0x42a0c5, _0x3bf4fd["onclose"] = () => {
867
- const _0x59be51 = _0x3bf4fd["sessionId"];
868
- _0x59be51 && _0x20f02f[_0x59be51] && (delete _0x283b90[_0x59be51], delete _0x1af8fb[_0x59be51]);
869
- }, _0x3bf4fd[_0x3e9af9(207)] = (_0x2b5819) => {
870
- const _0x5a948c = _0x4959f2, _0x431533 = _0x3e9af9, _0x3c8454 = {};
871
- _0x3c8454["mcpServer"] = _0x508f18, _0x3c8454["transport"] = _0x3bf4fd, _0x3c8454[_0x5a948c(210)] = _0x3da94e, _0x3c8454[_0x431533(272)] = _0x2b5819, _0x3c8454["type"] = _0x35bafb["HvRHL"], _0x451ac6(_0x3c8454);
872
- }, await _0x508f18["connect"](_0x3bf4fd), _0x35bafb[_0x4959f2(326)](forwardProxyServer, _0x508f18[_0x4959f2(218)], _0x589046), await _0x3bf4fd[_0x4959f2(289)](_0x233126, _0x1351e0, _0x233126["body"]);
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"]);
873
980
  } else {
874
- const _0x23bc3c = {};
875
- _0x23bc3c[_0x4959f2(278)] = -(3005 * -5 + -2 * -19098 + 8829), _0x23bc3c["message"] = "Bad Request: No valid session ID provided";
876
- const _0x3f80bd = {};
877
- _0x3f80bd[_0x3e9af9(277)] = _0x35bafb["uixmn"], _0x3f80bd["error"] = _0x23bc3c, _0x3f80bd["id"] = null, _0x1351e0["status"](-7031 + 1300 * -6 + 15231 * 1)["json"](_0x3f80bd);
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);
878
985
  }
879
986
  }
880
987
  } catch {
881
- if (!_0x1351e0["headersSent"]) {
882
- const _0x3ee562 = {};
883
- _0x3ee562["jsonrpc"] = _0x35bafb["uixmn"], _0x3ee562[_0x3e9af9(272)] = {}, _0x3ee562["id"] = null, _0x3ee562[_0x3e9af9(272)][_0x3e9af9(278)] = -32603, _0x3ee562[_0x3e9af9(272)]["message"] = _0x35bafb[_0x4959f2(229)], _0x1351e0[_0x3e9af9(288)](1 * 2239 + -3240 + -79 * -19)["json"](_0x3ee562);
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);
884
991
  }
885
992
  }
886
- }, _0x185a46 = () => {
887
- const _0x887a58 = _0x51262c, _0x247bde = _0x51262c;
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;
888
1017
  try {
889
- Object["values"](_0x20f02f)[_0x887a58(311)]((_0x1527d1) => _0x1527d1[_0x887a58(319)]()), Object["values"](_0x283b90)[_0x247bde(311)]((_0x464d20) => _0x464d20["close"]()), Object["values"](_0x444bf8)["forEach"]((_0x4da3ab) => _0x4da3ab["client"]["close"]()), Object["values"](_0x1af8fb)["forEach"]((_0x5b03d8) => _0x5b03d8[_0x247bde(253)][_0x887a58(319)]());
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"]());
890
1019
  } catch {
891
1020
  }
892
1021
  try {
893
- Object["keys"](_0x20f02f)[_0x887a58(311)]((_0x161207) => delete _0x20f02f[_0x161207]), Object[_0x887a58(273)](_0x283b90)[_0x247bde(311)]((_0x59cea1) => delete _0x283b90[_0x59cea1]), Object[_0x887a58(273)](_0x444bf8)[_0x887a58(311)]((_0x39edcf) => delete _0x444bf8[_0x39edcf]), Object["keys"](_0x1af8fb)[_0x247bde(311)]((_0x537136) => delete _0x1af8fb[_0x537136]);
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]);
894
1023
  } catch {
895
1024
  }
896
1025
  return {};
897
- }, _0x7fa775 = async () => {
898
- const _0x50b983 = _0x76a38c, _0x5e8fae = _0x76a38c, _0x1ec662 = { "Srrtp": function(_0xf2a64d, _0x53b7a4) {
899
- const _0x8456df = _0x46ad;
900
- return _0x35bafb[_0x8456df(279)](_0xf2a64d, _0x53b7a4);
901
- }, "PzXZN": _0x35bafb[_0x50b983(214)] }, _0x2d5e2a = Object["keys"](_0x444bf8)[_0x5e8fae(280)](async (_0x2c1c9d) => {
902
- const _0x210534 = _0x50b983, _0x3cc955 = _0x5e8fae, { client: _0x2b6042 } = _0x444bf8[_0x2c1c9d];
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];
903
1033
  try {
904
- const _0x1e74b4 = await _0x2b6042["ping"]();
905
- return { "sessionId": _0x2c1c9d, "shouldClose": _0x35bafb["HNJCu"](Object[_0x210534(273)](_0x1e74b4)["length"], 5 * 313 + -722 + -843) };
1034
+ const _0x424121 = await _0x5c54de["ping"]();
1035
+ return { "sessionId": _0x2d5fc3, "shouldClose": _0x221f25["uuogb"](Object[_0x746fe1(513)](_0x424121)[_0x25fe62(498)], 1 * -8244 + 7699 + 545) };
906
1036
  } catch {
907
- const _0x4ef8c7 = {};
908
- return _0x4ef8c7[_0x3cc955(226)] = _0x2c1c9d, _0x4ef8c7["shouldClose"] = !![], _0x4ef8c7;
1037
+ const _0x2fd0b7 = {};
1038
+ return _0x2fd0b7["sessionId"] = _0x2d5fc3, _0x2fd0b7[_0x25fe62(479)] = !![], _0x2fd0b7;
909
1039
  }
910
- }), _0x3ea5a2 = Object["keys"](_0x1af8fb)[_0x5e8fae(280)](async (_0x55278e) => {
911
- const _0x15934d = _0x50b983, _0x37a0fa = _0x5e8fae, { mcpServer: _0x24e528 } = _0x1af8fb[_0x55278e];
1040
+ }), _0x4dd060 = Object[_0x316bbf(513)](_0xa3a621)["map"](async (_0xee9b4b) => {
1041
+ const _0xc2f2b = _0x316bbf, _0x1c618b = _0x4cfbbf, { mcpServer: _0x2fba9c } = _0xa3a621[_0xee9b4b];
912
1042
  try {
913
- const _0x7d6d88 = await _0x24e528["server"][_0x15934d(274)]();
914
- return { "sessionId": _0x55278e, "shouldClose": _0x35bafb[_0x37a0fa(259)](Object["keys"](_0x7d6d88)["length"], 35 * -119 + -7 * -1337 + -5194) };
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) };
915
1045
  } catch {
916
- const _0x369d46 = {};
917
- return _0x369d46[_0x15934d(226)] = _0x55278e, _0x369d46["shouldClose"] = !![], _0x369d46;
1046
+ const _0xc35820 = {};
1047
+ return _0xc35820[_0x1c618b(545)] = _0xee9b4b, _0xc35820["shouldClose"] = !![], _0xc35820;
918
1048
  }
919
- }), [_0x5778b5, _0x47fa63] = await Promise["all"]([Promise["allSettled"](_0x2d5e2a), Promise[_0x50b983(293)](_0x3ea5a2)]), _0x2879b0 = [], _0xcc388d = [];
920
- _0x5778b5[_0x5e8fae(311)]((_0x37bab6) => {
921
- const _0x1c3201 = _0x50b983, _0x22bd78 = _0x50b983;
922
- _0x35bafb[_0x1c3201(244)](_0x37bab6["status"], _0x35bafb["KMbUG"]) && _0x37bab6[_0x22bd78(287)][_0x1c3201(217)] && _0x2879b0[_0x22bd78(269)](_0x37bab6[_0x1c3201(287)]["sessionId"]);
923
- }), _0x47fa63[_0x50b983(311)]((_0x5b046f) => {
924
- const _0x5aeaac = _0x5e8fae, _0x3ede31 = _0x5e8fae;
925
- _0x1ec662["Srrtp"](_0x5b046f[_0x5aeaac(288)], _0x1ec662[_0x5aeaac(246)]) && _0x5b046f["value"][_0x3ede31(217)] && _0xcc388d["push"](_0x5b046f[_0x5aeaac(287)]["sessionId"]);
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)]);
926
1056
  });
927
- const _0x40cb72 = _0x2879b0[_0x5e8fae(280)](async (_0x35615a) => {
1057
+ const _0x27883e = _0x249c69["map"](async (_0x41c374) => {
928
1058
  var _a, _b;
929
- const _0x335446 = _0x5e8fae;
1059
+ const _0x59cf2b = _0x316bbf;
930
1060
  try {
931
- (_a = _0x20f02f[_0x35615a]) == null ? void 0 : _a[_0x335446(319)](), (_b = _0x444bf8[_0x35615a]) == null ? void 0 : _b[_0x335446(210)]["close"]();
1061
+ (_a = _0x49e752[_0x41c374]) == null ? void 0 : _a[_0x59cf2b(594)](), (_b = _0x284689[_0x41c374]) == null ? void 0 : _b["client"]["close"]();
932
1062
  } catch {
933
1063
  }
934
1064
  try {
935
- delete _0x20f02f[_0x35615a], delete _0x444bf8[_0x35615a];
1065
+ delete _0x49e752[_0x41c374], delete _0x284689[_0x41c374];
936
1066
  } catch {
937
1067
  }
938
- }), _0x949649 = _0xcc388d[_0x50b983(280)](async (_0x4178a2) => {
1068
+ }), _0x180710 = _0x5a6bbc[_0x316bbf(542)](async (_0x496115) => {
939
1069
  var _a, _b;
940
- const _0x3adc1d = _0x50b983;
1070
+ const _0x5deb25 = _0x316bbf;
941
1071
  try {
942
- (_a = _0x283b90[_0x4178a2]) == null ? void 0 : _a["close"](), (_b = _0x1af8fb[_0x4178a2]) == null ? void 0 : _b[_0x3adc1d(253)]["close"]();
1072
+ (_a = _0x4c5c52[_0x496115]) == null ? void 0 : _a["close"](), (_b = _0xa3a621[_0x496115]) == null ? void 0 : _b["mcpServer"][_0x5deb25(594)]();
943
1073
  } catch {
944
1074
  }
945
1075
  try {
946
- delete _0x283b90[_0x4178a2], delete _0x1af8fb[_0x4178a2];
1076
+ delete _0x4c5c52[_0x496115], delete _0xa3a621[_0x496115];
947
1077
  } catch {
948
1078
  }
949
1079
  });
950
- await Promise[_0x5e8fae(293)]([..._0x40cb72, ..._0x949649]);
951
- const _0x2cb281 = {};
952
- return _0x2cb281[_0x5e8fae(292)] = _0x2879b0, _0x2cb281["remoterSessions"] = _0xcc388d, _0x2cb281;
953
- }, _0x230d55 = {};
954
- return _0x230d55[_0x76a38c(290)] = _0x31ee3c, _0x230d55["handleSseInspector"] = _0x36fe27, _0x230d55[_0x76a38c(262)] = _0xa26b82, _0x230d55[_0x76a38c(271)] = _0x598f32, _0x230d55[_0x76a38c(228)] = _0xd1b50f, _0x230d55[_0x51262c(238)] = _0x444bf8, _0x230d55["remoters"] = _0x1af8fb, _0x230d55[_0x51262c(236)] = _0x20f02f, _0x230d55["inspectors"] = _0x283b90, _0x230d55["reset"] = _0x185a46, _0x230d55["ping"] = _0x7fa775, _0x230d55["onClientError"] = _0x3fabb8, _0x230d55[_0x76a38c(220)] = _0x320940, _0x230d55;
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;
955
1085
  };
956
1086
  export {
957
1087
  ACCESS_TOKEN_EXPIRES_IN,
@@ -961,10 +1091,12 @@ export {
961
1091
  MemoryClientsStore,
962
1092
  MemoryRefreshTokensStore,
963
1093
  REFRESH_TOKEN_EXPIRES_IN,
1094
+ WebSocketServerTransport,
964
1095
  auth,
965
1096
  createAuthCallbackRouter,
966
1097
  createAuthMetadataRouter,
967
1098
  createAuthMiddleware,
968
1099
  createAuthRouter,
1100
+ jwtAuth,
969
1101
  useProxyHandles
970
1102
  };