@opentiny/next-sdk 0.1.5 → 0.1.7

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.
@@ -19231,805 +19231,852 @@ class StreamableHTTPClientTransport {
19231
19231
  return this._protocolVersion;
19232
19232
  }
19233
19233
  }
19234
- const _0x8dc3fb = _0xacbd;
19235
- (function(_0x309de7, _0x297869) {
19236
- const _0x52ae96 = _0xacbd, _0x50bb3f = _0xacbd, _0x78be62 = _0x309de7();
19234
+ const SUBPROTOCOL = "mcp";
19235
+ class WebSocketClientTransport {
19236
+ constructor(url) {
19237
+ this._url = url;
19238
+ }
19239
+ start() {
19240
+ if (this._socket) {
19241
+ throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");
19242
+ }
19243
+ return new Promise((resolve2, reject) => {
19244
+ this._socket = new WebSocket(this._url, SUBPROTOCOL);
19245
+ this._socket.onerror = (event) => {
19246
+ var _a16;
19247
+ const error2 = "error" in event ? event.error : new Error(`WebSocket error: ${JSON.stringify(event)}`);
19248
+ reject(error2);
19249
+ (_a16 = this.onerror) === null || _a16 === void 0 ? void 0 : _a16.call(this, error2);
19250
+ };
19251
+ this._socket.onopen = () => {
19252
+ resolve2();
19253
+ };
19254
+ this._socket.onclose = () => {
19255
+ var _a16;
19256
+ (_a16 = this.onclose) === null || _a16 === void 0 ? void 0 : _a16.call(this);
19257
+ };
19258
+ this._socket.onmessage = (event) => {
19259
+ var _a16, _b8;
19260
+ let message;
19261
+ try {
19262
+ message = JSONRPCMessageSchema$1.parse(JSON.parse(event.data));
19263
+ } catch (error2) {
19264
+ (_a16 = this.onerror) === null || _a16 === void 0 ? void 0 : _a16.call(this, error2);
19265
+ return;
19266
+ }
19267
+ (_b8 = this.onmessage) === null || _b8 === void 0 ? void 0 : _b8.call(this, message);
19268
+ };
19269
+ });
19270
+ }
19271
+ async close() {
19272
+ var _a16;
19273
+ (_a16 = this._socket) === null || _a16 === void 0 ? void 0 : _a16.close();
19274
+ }
19275
+ send(message) {
19276
+ return new Promise((resolve2, reject) => {
19277
+ var _a16;
19278
+ if (!this._socket) {
19279
+ reject(new Error("Not connected"));
19280
+ return;
19281
+ }
19282
+ (_a16 = this._socket) === null || _a16 === void 0 ? void 0 : _a16.send(JSON.stringify(message));
19283
+ resolve2();
19284
+ });
19285
+ }
19286
+ }
19287
+ function _0x425b() {
19288
+ const _0x4fe318 = ["224340fQYLJj", "function", "onmessage", "port2", "341XVdnBD", "313767JEBgqL", "950bpstaX", "1354759gUhUbE", "wRKyh", "onclose", "2044SvCTUj", "endpoint", "24msSkHx", "164VuWYGY", "mOWMr", "EkZCC", "addEventListener", "postMessage", "120705iyGzUz", "8878392ivIdKn", "close", "_listen", "3619482FaLQHc", "start", "_endpoint", "kgkem", "bzNYT", "MessageChannel transport error: ", "stringify", "onmessageerror", "HvyCv", "undefined", "Jwyua", "message", "_globalObject", "parse", "authInfo", "thraG", "220pGvxgp", "_port", "EGhzU", "onerror", "data", "MhriV"];
19289
+ _0x425b = function() {
19290
+ return _0x4fe318;
19291
+ };
19292
+ return _0x425b();
19293
+ }
19294
+ (function(_0x3f2143, _0xebf1ca) {
19295
+ const _0xf16569 = _0x3c98, _0xf8772f = _0x3c98, _0x12639d = _0x3f2143();
19237
19296
  while (!![]) {
19238
19297
  try {
19239
- const _0x4886ae = parseInt(_0x52ae96(145)) / (4532 + 1765 + -8 * 787) * (-parseInt(_0x50bb3f(169)) / (-5587 + 1 * 3569 + 2020)) + -parseInt(_0x52ae96(143)) / (-3436 + 2 * -158 + 3755) * (-parseInt(_0x52ae96(176)) / (8316 + 9634 + 1 * -17946)) + -parseInt(_0x52ae96(134)) / (-1 * -2902 + 343 * -28 + 6707) * (-parseInt(_0x50bb3f(154)) / (-2644 * 2 + 4451 * 1 + 843)) + -parseInt(_0x52ae96(160)) / (-1961 + 1 * -4584 + 4 * 1638) * (-parseInt(_0x50bb3f(170)) / (6542 * -1 + 7 * 1192 + -46 * 39)) + parseInt(_0x52ae96(133)) / (-2 * 2019 + -3760 + 1 * 7807) + parseInt(_0x52ae96(163)) / (-7901 * 1 + 158 * -5 + 11 * 791) * (parseInt(_0x50bb3f(165)) / (-463 * 12 + -13 * -502 + -1 * 959)) + -parseInt(_0x52ae96(161)) / (9879 + 1 * 4692 + -4853 * 3);
19240
- if (_0x4886ae === _0x297869) break;
19241
- else _0x78be62["push"](_0x78be62["shift"]());
19242
- } catch (_0x18ef8c) {
19243
- _0x78be62["push"](_0x78be62["shift"]());
19244
- }
19245
- }
19246
- })(_0x2dd1, -1617767 + 7318 * 202 + 963472);
19247
- function _0xacbd(_0x396270, _0x4ec458) {
19248
- const _0x101255 = _0x2dd1();
19249
- return _0xacbd = function(_0x3e7420, _0x33b9ab) {
19250
- _0x3e7420 = _0x3e7420 - (-2505 + -1757 + 4391);
19251
- let _0x51f210 = _0x101255[_0x3e7420];
19252
- return _0x51f210;
19253
- }, _0xacbd(_0x396270, _0x4ec458);
19254
- }
19298
+ const _0x4af7fb = parseInt(_0xf16569(417)) / (511 * 2 + -6 * -249 + -2515) * (parseInt(_0xf16569(421)) / (97 + 8149 + -4 * 2061)) + parseInt(_0xf16569(433)) / (2229 * 3 + 8997 + -15681) + parseInt(_0xf16569(424)) / (6411 + 1390 * -2 + -9 * 403) * (-parseInt(_0xf8772f(429)) / (1 * -6323 + 8277 + 1 * -1949)) + parseInt(_0xf8772f(423)) / (-6512 + 1542 + 4976) * (-parseInt(_0xf8772f(418)) / (-2923 + 27 * 123 + 1 * -391)) + -parseInt(_0xf8772f(430)) / (-255 * -15 + 3 * 1367 + 74 * -107) + -parseInt(_0xf16569(416)) / (164 + 9156 + -9311) * (-parseInt(_0xf16569(405)) / (-6648 + 4 * 1410 + -1018 * -1)) + -parseInt(_0xf16569(415)) / (2131 + 1 * -6940 + 4820) * (-parseInt(_0xf16569(411)) / (7402 + 4294 + -11684));
19299
+ if (_0x4af7fb === _0xebf1ca) break;
19300
+ else _0x12639d["push"](_0x12639d["shift"]());
19301
+ } catch (_0x559f49) {
19302
+ _0x12639d["push"](_0x12639d["shift"]());
19303
+ }
19304
+ }
19305
+ })(_0x425b, -311599 + 305798 + 655998);
19255
19306
  const getGlobalObject = () => {
19256
- const _0x208185 = _0xacbd, _0x379fb8 = _0xacbd, _0x25ecd7 = { "SUplI": function(_0x5c59a7, _0x1b70b1) {
19257
- return _0x5c59a7 !== _0x1b70b1;
19258
- }, "gdsVr": _0x208185(173), "fDJxn": function(_0x1e3474, _0xf2f127) {
19259
- return _0x1e3474 !== _0xf2f127;
19260
- }, "FzgVC": function(_0x452bbd, _0x14b4f6) {
19261
- return _0x452bbd(_0x14b4f6);
19262
- }, "RphJy": "return this" };
19263
- if (_0x25ecd7[_0x208185(139)](typeof globalThis, _0x25ecd7[_0x379fb8(164)])) return globalThis;
19264
- if (_0x25ecd7[_0x208185(139)](typeof window, "undefined")) return window;
19265
- if (_0x25ecd7[_0x208185(172)](typeof global, _0x25ecd7["gdsVr"])) return global;
19266
- if (typeof self !== _0x25ecd7["gdsVr"]) return self;
19267
- return _0x25ecd7[_0x208185(156)](Function, _0x25ecd7[_0x379fb8(155)])();
19268
- }, sendMessage = (_0x3a618e, _0x538bea, _0x49ab52) => {
19269
- const _0x36f236 = _0xacbd, _0x1a1654 = _0xacbd, _0x46f1f7 = {};
19270
- _0x46f1f7["BODwV"] = function(_0x4874ae, _0x18c53d) {
19271
- return _0x4874ae !== _0x18c53d;
19272
- }, _0x46f1f7["axlRk"] = "undefined", _0x46f1f7["WGYMl"] = function(_0x24ed97, _0xbdd33d) {
19273
- return _0x24ed97 in _0xbdd33d;
19274
- }, _0x46f1f7[_0x36f236(162)] = _0x1a1654(131), _0x46f1f7[_0x1a1654(142)] = function(_0x18bf0f, _0x1801ae) {
19275
- return _0x18bf0f === _0x1801ae;
19276
- }, _0x46f1f7[_0x1a1654(159)] = _0x36f236(166);
19277
- const _0x27843a = _0x46f1f7;
19278
- if (_0x27843a[_0x1a1654(147)](typeof window, _0x27843a["axlRk"])) _0x3a618e["postMessage"](_0x538bea, "*", _0x49ab52);
19279
- else _0x27843a["WGYMl"](_0x27843a[_0x36f236(162)], _0x3a618e) && _0x27843a[_0x36f236(142)](typeof _0x3a618e[_0x36f236(131)], _0x27843a["LnNVQ"]) && _0x3a618e["postMessage"](_0x538bea, _0x49ab52);
19280
- }, setMessageHandler = (_0x1ca0bf, _0x52f051) => {
19281
- const _0x472818 = _0xacbd, _0x5c8414 = _0xacbd, _0x52c361 = {};
19282
- _0x52c361["tblHl"] = _0x472818(152), _0x52c361["CQBXk"] = function(_0x151509, _0x1d15d6) {
19283
- return _0x151509 === _0x1d15d6;
19284
- }, _0x52c361["rzcdo"] = _0x5c8414(166), _0x52c361[_0x5c8414(140)] = function(_0x2fc890, _0x471248) {
19285
- return _0x2fc890 in _0x471248;
19286
- }, _0x52c361[_0x472818(157)] = "onmessage", _0x52c361["jnGTR"] = function(_0x3d66fa, _0x410350) {
19287
- return _0x3d66fa !== _0x410350;
19288
- }, _0x52c361["xkAIW"] = "undefined";
19289
- const _0x96d7d9 = _0x52c361;
19290
- if (_0x96d7d9["tblHl"] in _0x1ca0bf && _0x96d7d9["CQBXk"](typeof _0x1ca0bf[_0x5c8414(152)], _0x96d7d9["rzcdo"])) _0x1ca0bf[_0x5c8414(152)]("message", _0x52f051);
19291
- else _0x96d7d9["SjhYv"](_0x96d7d9[_0x5c8414(157)], _0x1ca0bf) && _0x96d7d9[_0x5c8414(158)](typeof _0x1ca0bf["onmessage"], _0x96d7d9["xkAIW"]) && (_0x1ca0bf[_0x5c8414(130)] = _0x52f051);
19307
+ const _0x3e2316 = _0x3c98, _0x4bbb30 = { "EGhzU": function(_0x43b0af, _0x410c74) {
19308
+ return _0x43b0af !== _0x410c74;
19309
+ }, "kIrDB": "undefined", "llYQe": function(_0x5e5b4b, _0x29e28d) {
19310
+ return _0x5e5b4b !== _0x29e28d;
19311
+ }, "PZfJg": function(_0x2df978, _0x2cbe44) {
19312
+ return _0x2df978(_0x2cbe44);
19313
+ }, "Jwyua": "return this" };
19314
+ if (typeof globalThis !== "undefined") return globalThis;
19315
+ if (_0x4bbb30[_0x3e2316(407)](typeof window, _0x4bbb30["kIrDB"])) return window;
19316
+ if (_0x4bbb30["llYQe"](typeof global, _0x4bbb30["kIrDB"])) return global;
19317
+ if (typeof self !== _0x3e2316(398)) return self;
19318
+ return _0x4bbb30["PZfJg"](Function, _0x4bbb30[_0x3e2316(399)])();
19319
+ }, sendMessage = (_0x3bc450, _0x51a3bf, _0x2954b6) => {
19320
+ const _0x5d3b1d = _0x3c98, _0x5c5f72 = _0x3c98, _0x3de493 = {};
19321
+ _0x3de493[_0x5d3b1d(410)] = _0x5c5f72(398), _0x3de493["dBkaX"] = function(_0x181821, _0x4dd2e8) {
19322
+ return _0x181821 === _0x4dd2e8;
19323
+ }, _0x3de493[_0x5c5f72(393)] = "function";
19324
+ const _0x4aa378 = _0x3de493;
19325
+ if (typeof window !== _0x4aa378[_0x5c5f72(410)]) _0x3bc450["postMessage"](_0x51a3bf, "*", _0x2954b6);
19326
+ else _0x5c5f72(428) in _0x3bc450 && _0x4aa378["dBkaX"](typeof _0x3bc450["postMessage"], _0x4aa378[_0x5d3b1d(393)]) && _0x3bc450["postMessage"](_0x51a3bf, _0x2954b6);
19327
+ }, setMessageHandler = (_0x432d6a, _0x1cebac) => {
19328
+ const _0x4243fa = _0x3c98, _0x4b1b47 = _0x3c98, _0x83e376 = {};
19329
+ _0x83e376["MbsGh"] = "addEventListener", _0x83e376["PPniK"] = function(_0x4bc6f6, _0x575566) {
19330
+ return _0x4bc6f6 === _0x575566;
19331
+ }, _0x83e376[_0x4243fa(419)] = _0x4b1b47(412), _0x83e376[_0x4b1b47(404)] = "onmessage", _0x83e376[_0x4243fa(397)] = "undefined";
19332
+ const _0x5b21ac = _0x83e376;
19333
+ if (_0x5b21ac["MbsGh"] in _0x432d6a && _0x5b21ac["PPniK"](typeof _0x432d6a[_0x4243fa(427)], _0x5b21ac["wRKyh"])) _0x432d6a[_0x4243fa(427)](_0x4243fa(400), _0x1cebac);
19334
+ else _0x5b21ac["thraG"] in _0x432d6a && typeof _0x432d6a[_0x4b1b47(413)] !== _0x5b21ac[_0x4b1b47(397)] && (_0x432d6a["onmessage"] = _0x1cebac);
19292
19335
  };
19293
19336
  class MessageChannelTransport {
19294
- constructor(_0x121563) {
19295
- this["_port"] = _0x121563;
19337
+ constructor(_0x19f279) {
19338
+ const _0x47a6b8 = _0x3c98;
19339
+ this[_0x47a6b8(406)] = _0x19f279;
19296
19340
  }
19297
19341
  async ["start"]() {
19298
- const _0x4cd16c = _0xacbd;
19299
- if (!this["_port"]) return;
19300
- this[_0x4cd16c(138)]["onmessage"] = (_0x30685d) => {
19342
+ const _0x262fc0 = _0x3c98, _0x477225 = _0x3c98;
19343
+ if (!this[_0x262fc0(406)]) return;
19344
+ this[_0x262fc0(406)][_0x262fc0(413)] = (_0x12f751) => {
19301
19345
  var _a16, _b8;
19302
- const _0x463dec = _0x4cd16c;
19346
+ const _0xd637c1 = _0x262fc0, _0x3f2b55 = _0x477225;
19303
19347
  try {
19304
- const _0x348f89 = JSONRPCMessageSchema$1["parse"](_0x30685d[_0x463dec(135)]["message"]);
19305
- (_a16 = this["onmessage"]) == null ? void 0 : _a16.call(this, _0x348f89, _0x30685d[_0x463dec(135)]["extra"]);
19306
- } catch (_0x33c711) {
19307
- const _0x11da21 = new Error("MessageChannel failed to parse message: " + _0x33c711);
19308
- (_b8 = this["onerror"]) == null ? void 0 : _b8.call(this, _0x11da21);
19348
+ const _0x288930 = JSONRPCMessageSchema$1[_0xd637c1(402)](_0x12f751["data"][_0xd637c1(400)]);
19349
+ (_a16 = this[_0xd637c1(413)]) == null ? void 0 : _a16.call(this, _0x288930, _0x12f751[_0x3f2b55(409)]["extra"]);
19350
+ } catch (_0x199f0) {
19351
+ const _0x349a7b = new Error("MessageChannel failed to parse message: " + _0x199f0);
19352
+ (_b8 = this[_0x3f2b55(408)]) == null ? void 0 : _b8.call(this, _0x349a7b);
19309
19353
  }
19310
- }, this["_port"]["onmessageerror"] = (_0x46822f) => {
19354
+ }, this["_port"][_0x262fc0(396)] = (_0x4dd993) => {
19311
19355
  var _a16;
19312
- const _0x9f0d = new Error("MessageChannel transport error: " + JSON["stringify"](_0x46822f));
19313
- (_a16 = this["onerror"]) == null ? void 0 : _a16.call(this, _0x9f0d);
19314
- }, this[_0x4cd16c(138)][_0x4cd16c(153)]();
19315
- }
19316
- async ["send"](_0x166567, _0xbaa02a) {
19317
- const _0x43e5df = { "OXUfv": function(_0x302b2e) {
19318
- return _0x302b2e();
19319
- }, "HGTbd": function(_0x20686c, _0x1c74f7) {
19320
- return _0x20686c(_0x1c74f7);
19321
- }, "Pfhxv": function(_0x54176e, _0x319f56) {
19322
- return _0x54176e(_0x319f56);
19356
+ const _0x120c0e = _0x477225, _0x5758c1 = _0x477225, _0x1701f6 = new Error(_0x120c0e(394) + JSON[_0x5758c1(395)](_0x4dd993));
19357
+ (_a16 = this["onerror"]) == null ? void 0 : _a16.call(this, _0x1701f6);
19358
+ }, this[_0x262fc0(406)][_0x262fc0(434)]();
19359
+ }
19360
+ async ["send"](_0x875889, _0x3c2eb4) {
19361
+ const _0x231c3e = { "lEyuq": function(_0x44e3da) {
19362
+ return _0x44e3da();
19363
+ }, "YihNw": function(_0x1a99c7, _0x1da686) {
19364
+ return _0x1a99c7(_0x1da686);
19323
19365
  } };
19324
- return new Promise((_0x116f7a, _0xa57f86) => {
19366
+ return new Promise((_0x2c883a, _0x7fbbef) => {
19325
19367
  var _a16;
19326
- const _0x4a09d2 = _0xacbd, _0x14b19e = _0xacbd;
19368
+ const _0x1d8acc = _0x3c98, _0x252aac = _0x3c98;
19327
19369
  try {
19328
- const _0x79f9dc = {};
19329
- _0x79f9dc["authInfo"] = _0xbaa02a == null ? void 0 : _0xbaa02a[_0x4a09d2(132)];
19330
- const _0x136006 = {};
19331
- _0x136006[_0x14b19e(148)] = _0x166567, _0x136006[_0x4a09d2(141)] = _0x79f9dc;
19332
- if (this[_0x4a09d2(138)]) this[_0x14b19e(138)]["postMessage"](_0x136006);
19333
- _0x43e5df[_0x14b19e(144)](_0x116f7a);
19334
- } catch (_0x2edb9d) {
19335
- const _0x55044a = _0x2edb9d instanceof Error ? _0x2edb9d : new Error(_0x43e5df["HGTbd"](String, _0x2edb9d));
19336
- (_a16 = this[_0x4a09d2(137)]) == null ? void 0 : _a16.call(this, _0x55044a), _0x43e5df[_0x4a09d2(151)](_0xa57f86, _0x55044a);
19370
+ const _0x1d9834 = {};
19371
+ _0x1d9834[_0x1d8acc(403)] = _0x3c2eb4 == null ? void 0 : _0x3c2eb4[_0x1d8acc(403)];
19372
+ const _0x280bd1 = {};
19373
+ _0x280bd1[_0x252aac(400)] = _0x875889, _0x280bd1["extra"] = _0x1d9834;
19374
+ if (this[_0x252aac(406)]) this[_0x1d8acc(406)]["postMessage"](_0x280bd1);
19375
+ _0x231c3e["lEyuq"](_0x2c883a);
19376
+ } catch (_0x4fe450) {
19377
+ const _0x570003 = _0x4fe450 instanceof Error ? _0x4fe450 : new Error(_0x231c3e["YihNw"](String, _0x4fe450));
19378
+ (_a16 = this[_0x252aac(408)]) == null ? void 0 : _a16.call(this, _0x570003), _0x7fbbef(_0x570003);
19337
19379
  }
19338
19380
  });
19339
19381
  }
19340
19382
  async ["close"]() {
19341
19383
  var _a16, _b8;
19342
- const _0x31cca3 = _0xacbd, _0x5bf64b = _0xacbd;
19343
- (_a16 = this["_port"]) == null ? void 0 : _a16[_0x31cca3(129)](), this[_0x5bf64b(138)] = void 0, (_b8 = this["onclose"]) == null ? void 0 : _b8.call(this);
19384
+ const _0x48e40 = _0x3c98, _0x15c0bc = _0x3c98;
19385
+ (_a16 = this["_port"]) == null ? void 0 : _a16[_0x48e40(431)](), this["_port"] = void 0, (_b8 = this[_0x15c0bc(420)]) == null ? void 0 : _b8.call(this);
19344
19386
  }
19345
19387
  }
19346
- function _0x2dd1() {
19347
- const _0xc13ee7 = ["start", "18osCtKg", "RphJy", "FzgVC", "MJJde", "jnGTR", "LnNVQ", "1051519VVnrnU", "33477396wnvbno", "sxstg", "5032460FukhmU", "gdsVr", "11iMeJBh", "function", "_endpoint", "_listen", "1275704COqcWf", "56LfVOEz", "listen", "fDJxn", "undefined", "ports", "JlLHy", "4dKwrPa", "close", "onmessage", "postMessage", "authInfo", "11129553jiEKRY", "776455JhRkBm", "data", "port2", "onerror", "_port", "SUplI", "SjhYv", "extra", "cgHZW", "2982963YuFHfk", "OXUfv", "1sYviCF", "port1", "BODwV", "message", "ZJoRh", "_globalObject", "Pfhxv", "addEventListener"];
19348
- _0x2dd1 = function() {
19349
- return _0xc13ee7;
19350
- };
19351
- return _0x2dd1();
19352
- }
19353
19388
  class MessageChannelClientTransport extends MessageChannelTransport {
19354
- constructor(_0xb6d722, _0x2d0800 = getGlobalObject()) {
19355
- const _0x382a41 = _0xacbd, _0x13ed18 = { "JlLHy": function(_0x33b2c1, _0x5c6013, _0x3cf332, _0x3a6849) {
19356
- return _0x33b2c1(_0x5c6013, _0x3cf332, _0x3a6849);
19389
+ constructor(_0x597360, _0x528781 = getGlobalObject()) {
19390
+ const _0x264b2b = _0x3c98, _0x1bf448 = _0x3c98, _0x34395f = { "EkZCC": function(_0x252e11, _0x32a364, _0x3fa642, _0x313f91) {
19391
+ return _0x252e11(_0x32a364, _0x3fa642, _0x313f91);
19357
19392
  } };
19358
- super(), this[_0x382a41(167)] = _0xb6d722, this[_0x382a41(150)] = _0x2d0800;
19359
- const _0x1708bc = new MessageChannel();
19360
- this["_port"] = _0x1708bc["port1"], _0x13ed18[_0x382a41(175)](sendMessage, this["_globalObject"], { "endpoint": this["_endpoint"] }, [_0x1708bc["port2"]]);
19393
+ super(), this[_0x264b2b(391)] = _0x597360, this[_0x1bf448(401)] = _0x528781;
19394
+ const _0x2395ac = new MessageChannel();
19395
+ this[_0x1bf448(406)] = _0x2395ac["port1"], _0x34395f[_0x1bf448(426)](sendMessage, this[_0x264b2b(401)], { "endpoint": this[_0x1bf448(391)] }, [_0x2395ac[_0x1bf448(414)]]);
19361
19396
  }
19362
19397
  }
19363
19398
  class MessageChannelServerTransport extends MessageChannelTransport {
19364
- constructor(_0xc58a08, _0x5dea22 = getGlobalObject()) {
19365
- const _0x34f819 = _0xacbd, _0x1f2ebe = { "vqpjH": function(_0x312484, _0x6a17c9) {
19366
- return _0x312484 === _0x6a17c9;
19367
- }, "iWjpS": function(_0x4e93b8) {
19368
- return _0x4e93b8();
19369
- }, "ZJoRh": function(_0x3422bb, _0x457e61, _0x2e2ec6) {
19370
- return _0x3422bb(_0x457e61, _0x2e2ec6);
19399
+ constructor(_0x43868d, _0x200cbf = getGlobalObject()) {
19400
+ const _0x1cf24b = _0x3c98, _0x5f15b5 = { "mOWMr": function(_0x117b52, _0x3755b6) {
19401
+ return _0x117b52 === _0x3755b6;
19402
+ }, "kgkem": function(_0x263de6, _0x137f7b, _0x35ee9a) {
19403
+ return _0x263de6(_0x137f7b, _0x35ee9a);
19371
19404
  } };
19372
- super(), this["_endpoint"] = _0xc58a08, this[_0x34f819(150)] = _0x5dea22, this["_listen"] = new Promise((_0x2655b3) => {
19373
- const _0x32e191 = _0x34f819;
19374
- _0x1f2ebe[_0x32e191(149)](setMessageHandler, this[_0x32e191(150)], (_0x5e7d49) => {
19375
- const _0x499b7d = _0x32e191;
19376
- _0x5e7d49["data"] && _0x1f2ebe["vqpjH"](_0x5e7d49["data"]["endpoint"], this["_endpoint"]) && (this[_0x499b7d(138)] = _0x5e7d49[_0x499b7d(174)][302 + -9754 + -4726 * -2], _0x1f2ebe["iWjpS"](_0x2655b3));
19405
+ super(), this["_endpoint"] = _0x43868d, this["_globalObject"] = _0x200cbf, this[_0x1cf24b(432)] = new Promise((_0xc5a6a8) => {
19406
+ const _0x205b86 = _0x1cf24b, _0x13755a = _0x1cf24b;
19407
+ _0x5f15b5[_0x205b86(392)](setMessageHandler, this[_0x13755a(401)], (_0x44b81a) => {
19408
+ const _0xd9e0bf = _0x13755a, _0x5f1705 = _0x13755a;
19409
+ _0x44b81a["data"] && _0x5f15b5[_0xd9e0bf(425)](_0x44b81a["data"][_0x5f1705(422)], this[_0x5f1705(391)]) && (this[_0x5f1705(406)] = _0x44b81a["ports"][-1 * 4852 + 1 * 1601 + 3251], _0xc5a6a8());
19377
19410
  });
19378
19411
  });
19379
19412
  }
19380
- async [_0x8dc3fb(171)]() {
19381
- const _0xa20b7b = _0x8dc3fb;
19382
- return this[_0xa20b7b(168)];
19413
+ async ["listen"]() {
19414
+ const _0x5cffe3 = _0x3c98;
19415
+ return this[_0x5cffe3(432)];
19383
19416
  }
19384
19417
  }
19418
+ function _0x3c98(_0x5f3c48, _0x59969d) {
19419
+ const _0x29bc72 = _0x425b();
19420
+ return _0x3c98 = function(_0x7d5de0, _0x53ddc5) {
19421
+ _0x7d5de0 = _0x7d5de0 - (17 * -491 + -669 + 9407);
19422
+ let _0x21b3d3 = _0x29bc72[_0x7d5de0];
19423
+ return _0x21b3d3;
19424
+ }, _0x3c98(_0x5f3c48, _0x59969d);
19425
+ }
19385
19426
  const createTransportPair = () => {
19386
- const _0x318371 = _0x8dc3fb, _0x3b802b = new MessageChannel();
19387
- return [new MessageChannelTransport(_0x3b802b[_0x318371(146)]), new MessageChannelTransport(_0x3b802b[_0x318371(136)])];
19427
+ const _0x3ab70f = new MessageChannel();
19428
+ return [new MessageChannelTransport(_0x3ab70f["port1"]), new MessageChannelTransport(_0x3ab70f["port2"])];
19388
19429
  };
19389
- (function(_0x4bea63, _0x330409) {
19390
- const _0x173e7f = _0x39e0, _0xe09b55 = _0x39e0, _0x47b4be = _0x4bea63();
19430
+ (function(_0x34e6b0, _0x35a269) {
19431
+ const _0x1d530d = _0x436f, _0x4b1650 = _0x436f, _0x32f138 = _0x34e6b0();
19391
19432
  while (!![]) {
19392
19433
  try {
19393
- const _0x26870b = -parseInt(_0x173e7f(415)) / (-7670 + 1 * -1077 + 8748) + -parseInt(_0xe09b55(357)) / (-2161 * 2 + 3862 + 462) * (parseInt(_0x173e7f(368)) / (-2297 * -3 + -8063 + -1175 * -1)) + -parseInt(_0xe09b55(408)) / (-1 * 6173 + 2585 + 3592) + parseInt(_0x173e7f(371)) / (-7201 + 5212 + 1994 * 1) + -parseInt(_0xe09b55(429)) / (-2 * 628 + -1691 * -3 + -3811) * (-parseInt(_0x173e7f(412)) / (-1253 + -6809 + 8069 * 1)) + parseInt(_0x173e7f(407)) / (-11 * 717 + 1 * -477 + -14 * -598) * (parseInt(_0x173e7f(423)) / (1 * -997 + -729 * -4 + 955 * -2)) + -parseInt(_0x173e7f(375)) / (1795 * -5 + -1 * 1474 + 10459);
19394
- if (_0x26870b === _0x330409) break;
19395
- else _0x47b4be["push"](_0x47b4be["shift"]());
19396
- } catch (_0x380dcf) {
19397
- _0x47b4be["push"](_0x47b4be["shift"]());
19434
+ const _0x464b19 = parseInt(_0x1d530d(355)) / (-9237 + 21 * -101 + 11359) + -parseInt(_0x1d530d(356)) / (-1 * 393 + -1 * -7768 + -1 * 7373) * (-parseInt(_0x1d530d(373)) / (-705 + -4769 * 2 + -47 * -218)) + -parseInt(_0x1d530d(337)) / (-245 * 15 + 893 * 7 + 1 * -2572) + parseInt(_0x4b1650(357)) / (-240 * 17 + 3192 + 893) + -parseInt(_0x4b1650(389)) / (149 * 44 + 545 * -2 + -5460) * (-parseInt(_0x1d530d(396)) / (-5159 + -276 * -13 + -3 * -526)) + parseInt(_0x4b1650(325)) / (1 * -6978 + -3854 + -8 * -1355) * (parseInt(_0x1d530d(382)) / (-7214 + -2969 + 26 * 392)) + -parseInt(_0x1d530d(366)) / (316 * -5 + 562 * 5 + -61 * 20);
19435
+ if (_0x464b19 === _0x35a269) break;
19436
+ else _0x32f138["push"](_0x32f138["shift"]());
19437
+ } catch (_0x390ed1) {
19438
+ _0x32f138["push"](_0x32f138["shift"]());
19398
19439
  }
19399
19440
  }
19400
- })(_0x5c4b, -7527 * 130 + 350160 + 1329539);
19401
- const forwardServerRequest = async (_0x25aa43, _0x978b99, _0xf3580a) => {
19441
+ })(_0x312b, -763475 + -52067 * 10 + 1724410);
19442
+ const forwardServerRequest = async (_0x39b9c9, _0x5af7c1, _0x5dd2f7) => {
19402
19443
  var _a16;
19403
- const _0x30ba40 = _0x39e0, _0x3584a3 = _0x39e0, _0x48a033 = {};
19404
- _0x48a033["PgGRq"] = "tools/call", _0x48a033[_0x30ba40(354)] = _0x30ba40(387), _0x48a033[_0x3584a3(369)] = _0x30ba40(364), _0x48a033[_0x3584a3(394)] = _0x3584a3(426), _0x48a033[_0x30ba40(406)] = "ping", _0x48a033["BWglk"] = _0x30ba40(360), _0x48a033[_0x3584a3(409)] = "logging/setLevel", _0x48a033["YTglM"] = _0x3584a3(399);
19405
- const _0x3b4e3e = _0x48a033, { id: _0x1613c9, method: _0x200a4d, params: _0x581167 } = _0xf3580a;
19406
- let _0x85cbfc = {};
19407
- switch (_0x200a4d) {
19408
- case "tools/list":
19409
- _0x85cbfc = await _0x978b99["listTools"](_0x581167);
19444
+ const _0x4d8179 = _0x436f, _0x45d1c8 = _0x436f, _0x259709 = {};
19445
+ _0x259709[_0x4d8179(345)] = "tools/list", _0x259709["rqstG"] = "tools/call", _0x259709["WqUnk"] = "resources/list", _0x259709[_0x4d8179(329)] = _0x45d1c8(358), _0x259709[_0x4d8179(365)] = _0x4d8179(335), _0x259709["ookoz"] = "resources/unsubscribe", _0x259709[_0x4d8179(385)] = _0x4d8179(340), _0x259709["VTIWq"] = "prompts/list", _0x259709["SkoRK"] = _0x4d8179(376), _0x259709["QUtUV"] = _0x4d8179(388), _0x259709["XtowM"] = _0x45d1c8(332);
19446
+ const _0x386240 = _0x259709, { id: _0x5e3819, method: _0x1e7aac, params: _0xb3b73d } = _0x5dd2f7;
19447
+ let _0x1affd2 = {};
19448
+ switch (_0x1e7aac) {
19449
+ case _0x386240[_0x45d1c8(345)]:
19450
+ _0x1affd2 = await _0x5af7c1["listTools"](_0xb3b73d);
19410
19451
  break;
19411
- case _0x3b4e3e["PgGRq"]:
19412
- _0x85cbfc = await _0x978b99["callTool"](_0x581167);
19452
+ case _0x386240["rqstG"]:
19453
+ _0x1affd2 = await _0x5af7c1["callTool"](_0xb3b73d);
19413
19454
  break;
19414
- case _0x30ba40(390):
19415
- _0x85cbfc = await _0x978b99["listResources"](_0x581167);
19455
+ case _0x386240[_0x4d8179(334)]:
19456
+ _0x1affd2 = await _0x5af7c1[_0x4d8179(350)](_0xb3b73d);
19416
19457
  break;
19417
- case _0x3b4e3e[_0x30ba40(354)]:
19418
- _0x85cbfc = await _0x978b99[_0x30ba40(382)](_0x581167);
19458
+ case _0x386240[_0x45d1c8(329)]:
19459
+ _0x1affd2 = await _0x5af7c1["listResourceTemplates"](_0xb3b73d);
19419
19460
  break;
19420
- case "resources/read":
19421
- _0x85cbfc = await _0x978b99[_0x30ba40(376)](_0x581167);
19461
+ case _0x4d8179(372):
19462
+ _0x1affd2 = await _0x5af7c1[_0x4d8179(383)](_0xb3b73d);
19422
19463
  break;
19423
- case _0x3b4e3e["INhFO"]:
19424
- _0x85cbfc = await _0x978b99[_0x3584a3(418)](_0x581167);
19464
+ case _0x386240["HgYgW"]:
19465
+ _0x1affd2 = await _0x5af7c1["subscribeResource"](_0xb3b73d);
19425
19466
  break;
19426
- case "resources/unsubscribe":
19427
- _0x85cbfc = await _0x978b99[_0x30ba40(393)](_0x581167);
19467
+ case _0x386240["ookoz"]:
19468
+ _0x1affd2 = await _0x5af7c1["unsubscribeResource"](_0xb3b73d);
19428
19469
  break;
19429
- case "prompts/get":
19430
- _0x85cbfc = await _0x978b99["getPrompt"](_0x581167);
19470
+ case _0x386240[_0x4d8179(385)]:
19471
+ _0x1affd2 = await _0x5af7c1["getPrompt"](_0xb3b73d);
19431
19472
  break;
19432
- case _0x3b4e3e[_0x3584a3(394)]:
19433
- _0x85cbfc = await _0x978b99[_0x30ba40(422)](_0x581167);
19473
+ case _0x386240["VTIWq"]:
19474
+ _0x1affd2 = await _0x5af7c1["listPrompts"](_0xb3b73d);
19434
19475
  break;
19435
- case _0x3b4e3e[_0x3584a3(406)]:
19436
- _0x85cbfc = await _0x978b99["ping"]();
19476
+ case _0x386240[_0x4d8179(344)]:
19477
+ _0x1affd2 = await _0x5af7c1[_0x4d8179(376)]();
19437
19478
  break;
19438
- case _0x3b4e3e["BWglk"]:
19439
- _0x85cbfc = await _0x978b99["complete"](_0x581167);
19479
+ case _0x386240["QUtUV"]:
19480
+ _0x1affd2 = await _0x5af7c1["complete"](_0xb3b73d);
19440
19481
  break;
19441
- case _0x3b4e3e["exSlO"]:
19442
- _0x85cbfc = await _0x978b99["setLoggingLevel"](_0x581167 == null ? void 0 : _0x581167[_0x3584a3(355)]);
19482
+ case _0x4d8179(390):
19483
+ _0x1affd2 = await _0x5af7c1[_0x4d8179(336)](_0xb3b73d == null ? void 0 : _0xb3b73d["level"]);
19443
19484
  break;
19444
19485
  }
19445
- const _0x59036b = {};
19446
- _0x59036b["result"] = _0x85cbfc, _0x59036b[_0x3584a3(374)] = _0x3b4e3e[_0x3584a3(361)], _0x59036b["id"] = _0x1613c9, await ((_a16 = _0x25aa43 == null ? void 0 : _0x25aa43["transport"]) == null ? void 0 : _a16["send"](_0x59036b));
19447
- }, forwardClientRequest = async (_0x486bad, _0xcd3d78, _0x5501cb) => {
19486
+ const _0x1b9b3c = {};
19487
+ _0x1b9b3c[_0x4d8179(361)] = _0x1affd2, _0x1b9b3c[_0x4d8179(394)] = _0x386240[_0x4d8179(364)], _0x1b9b3c["id"] = _0x5e3819, await ((_a16 = _0x39b9c9 == null ? void 0 : _0x39b9c9["transport"]) == null ? void 0 : _a16[_0x4d8179(392)](_0x1b9b3c));
19488
+ }, forwardClientRequest = async (_0x28f3d6, _0x4ac89d, _0x1051c9) => {
19448
19489
  var _a16;
19449
- const _0x5f0b8d = _0x39e0, _0x352fd7 = _0x39e0, _0x276bd8 = {};
19450
- _0x276bd8["mKgNI"] = "roots/list", _0x276bd8[_0x5f0b8d(391)] = _0x5f0b8d(380), _0x276bd8["BUcjm"] = "ping", _0x276bd8[_0x352fd7(367)] = "2.0";
19451
- const _0x37ab42 = _0x276bd8, { id: _0x16fc6c, method: _0x1738d5, params: _0x30dd24 } = _0x5501cb;
19452
- let _0x27bf46 = {};
19453
- switch (_0x1738d5) {
19454
- case _0x37ab42[_0x352fd7(397)]:
19455
- const _0x2f4cbf = {};
19456
- _0x2f4cbf["method"] = _0x1738d5, _0x2f4cbf[_0x352fd7(395)] = _0x30dd24, _0x27bf46 = await _0xcd3d78[_0x352fd7(377)](_0x2f4cbf, ListRootsResultSchema);
19490
+ const _0x3dda47 = _0x436f, _0x381b7f = _0x436f, _0xd1fdf3 = {};
19491
+ _0xd1fdf3["jQBBS"] = "sampling/createMessage", _0xd1fdf3["EZqgC"] = "elicitation/create", _0xd1fdf3[_0x3dda47(370)] = _0x381b7f(376), _0xd1fdf3["aVeaL"] = _0x381b7f(332);
19492
+ const _0x49fa5b = _0xd1fdf3, { id: _0x242c62, method: _0x5e5313, params: _0x26f936 } = _0x1051c9;
19493
+ let _0x4a0446 = {};
19494
+ switch (_0x5e5313) {
19495
+ case _0x3dda47(368):
19496
+ const _0x5729fc = {};
19497
+ _0x5729fc["method"] = _0x5e5313, _0x5729fc[_0x381b7f(367)] = _0x26f936, _0x4a0446 = await _0x4ac89d["request"](_0x5729fc, ListRootsResultSchema);
19457
19498
  break;
19458
- case "sampling/createMessage":
19459
- const _0x54c33a = {};
19460
- _0x54c33a[_0x5f0b8d(365)] = _0x1738d5, _0x54c33a[_0x5f0b8d(395)] = _0x30dd24, _0x27bf46 = await _0xcd3d78[_0x352fd7(377)](_0x54c33a, CreateMessageResultSchema);
19499
+ case _0x49fa5b[_0x381b7f(391)]:
19500
+ const _0x1a4de5 = {};
19501
+ _0x1a4de5["method"] = _0x5e5313, _0x1a4de5[_0x381b7f(367)] = _0x26f936, _0x4a0446 = await _0x4ac89d[_0x381b7f(381)](_0x1a4de5, CreateMessageResultSchema);
19461
19502
  break;
19462
- case _0x37ab42["HHuTf"]:
19463
- const _0x39260d = {};
19464
- _0x39260d["method"] = _0x1738d5, _0x39260d["params"] = _0x30dd24, _0x27bf46 = await _0xcd3d78["request"](_0x39260d, ElicitResultSchema);
19503
+ case _0x49fa5b["EZqgC"]:
19504
+ const _0x439309 = {};
19505
+ _0x439309["method"] = _0x5e5313, _0x439309["params"] = _0x26f936, _0x4a0446 = await _0x4ac89d["request"](_0x439309, ElicitResultSchema);
19465
19506
  break;
19466
- case _0x37ab42["BUcjm"]:
19467
- const _0x133507 = {};
19468
- _0x133507["method"] = _0x1738d5, _0x27bf46 = await _0xcd3d78["request"](_0x133507, EmptyResultSchema);
19507
+ case _0x49fa5b[_0x381b7f(370)]:
19508
+ const _0x26032a = {};
19509
+ _0x26032a["method"] = _0x5e5313, _0x4a0446 = await _0x4ac89d[_0x381b7f(381)](_0x26032a, EmptyResultSchema);
19469
19510
  break;
19470
19511
  }
19471
- const _0x5a2c4a = {};
19472
- return _0x5a2c4a[_0x352fd7(401)] = _0x27bf46, _0x5a2c4a["jsonrpc"] = _0x37ab42[_0x5f0b8d(367)], _0x5a2c4a["id"] = _0x16fc6c, await ((_a16 = _0x486bad == null ? void 0 : _0x486bad["transport"]) == null ? void 0 : _a16[_0x5f0b8d(388)](_0x5a2c4a)), _0x27bf46;
19512
+ const _0x1cd5b1 = {};
19513
+ return _0x1cd5b1[_0x381b7f(361)] = _0x4a0446, _0x1cd5b1["jsonrpc"] = _0x49fa5b[_0x381b7f(387)], _0x1cd5b1["id"] = _0x242c62, await ((_a16 = _0x28f3d6 == null ? void 0 : _0x28f3d6[_0x3dda47(371)]) == null ? void 0 : _a16["send"](_0x1cd5b1)), _0x4a0446;
19473
19514
  };
19474
- const forwardServerOnRequest = (_0xa5686d, _0x94fbd4) => {
19475
- const _0x5e1ef3 = _0x39e0, _0x422238 = _0x39e0, _0x11bb54 = { "lfNNa": function(_0x16f5e0, _0x217b51, _0x510645, _0x583cfb) {
19476
- return _0x16f5e0(_0x217b51, _0x510645, _0x583cfb);
19477
- }, "ERLmZ": _0x5e1ef3(399) }, _0x2ceff9 = _0xa5686d[_0x422238(362)];
19478
- _0xa5686d["_onrequest"] = async (_0x43c199, _0x4cbb8e) => {
19515
+ const forwardServerOnRequest = (_0x295fa6, _0x251926) => {
19516
+ const _0x1cc476 = _0x436f, _0x23ae0d = { "gXsjT": function(_0x3ae5bb, _0x164ced) {
19517
+ return _0x3ae5bb === _0x164ced;
19518
+ }, "oegpC": _0x1cc476(351), "lZOUC": function(_0x453ca3, _0x364f6d, _0x56cba4, _0x977d42) {
19519
+ return _0x453ca3(_0x364f6d, _0x56cba4, _0x977d42);
19520
+ }, "ifIKG": "2.0" }, _0x4bcbe0 = _0x295fa6["_onrequest"];
19521
+ _0x295fa6["_onrequest"] = async (_0x19eadb, _0x1be045) => {
19479
19522
  var _a16, _b8, _c, _d, _e;
19480
- const _0x1e29e0 = _0x422238, _0x4c9b81 = _0x5e1ef3, { id: _0x180df4, method: _0x3cfe78 } = _0x43c199;
19523
+ const _0x18b546 = _0x1cc476, _0x2a3fc6 = _0x1cc476, { id: _0x352576, method: _0x55a8de } = _0x19eadb;
19481
19524
  try {
19482
- _0x3cfe78 === _0x1e29e0(398) ? await _0x2ceff9[_0x4c9b81(428)](_0xa5686d, _0x43c199, _0x4cbb8e) : await _0x11bb54[_0x4c9b81(425)](forwardServerRequest, _0xa5686d, _0x94fbd4, _0x43c199);
19483
- } catch (_0x37c003) {
19484
- const { code: _0x1ebc0b, message: _0x29dd28, data: _0x2d988b } = _0x37c003;
19525
+ _0x23ae0d[_0x18b546(333)](_0x55a8de, _0x23ae0d["oegpC"]) ? await _0x4bcbe0[_0x18b546(386)](_0x295fa6, _0x19eadb, _0x1be045) : await _0x23ae0d["lZOUC"](forwardServerRequest, _0x295fa6, _0x251926, _0x19eadb);
19526
+ } catch (_0x260152) {
19527
+ const { code: _0x109aa0, message: _0x12f9b1, data: _0x2a49eb } = _0x260152;
19485
19528
  try {
19486
- if (_0x1ebc0b) {
19487
- const _0x17c6f0 = {};
19488
- _0x17c6f0["code"] = _0x1ebc0b, _0x17c6f0["message"] = _0x29dd28, _0x17c6f0["data"] = _0x2d988b;
19489
- const _0x5944b2 = {};
19490
- _0x5944b2["error"] = _0x17c6f0, _0x5944b2["jsonrpc"] = _0x11bb54[_0x4c9b81(370)], _0x5944b2["id"] = _0x180df4, await ((_a16 = _0xa5686d == null ? void 0 : _0xa5686d[_0x4c9b81(381)]) == null ? void 0 : _a16["send"](_0x5944b2));
19491
- } else (_c = (_b8 = _0xa5686d == null ? void 0 : _0xa5686d[_0x1e29e0(381)]) == null ? void 0 : _b8["onerror"]) == null ? void 0 : _c.call(_b8, _0x37c003);
19492
- } catch (_0x36f242) {
19493
- (_e = (_d = _0xa5686d == null ? void 0 : _0xa5686d[_0x1e29e0(381)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x36f242);
19529
+ if (_0x109aa0) {
19530
+ const _0x33e2da = {};
19531
+ _0x33e2da["code"] = _0x109aa0, _0x33e2da["message"] = _0x12f9b1, _0x33e2da["data"] = _0x2a49eb;
19532
+ const _0x577f56 = {};
19533
+ _0x577f56["error"] = _0x33e2da, _0x577f56[_0x18b546(394)] = _0x23ae0d[_0x2a3fc6(331)], _0x577f56["id"] = _0x352576, await ((_a16 = _0x295fa6 == null ? void 0 : _0x295fa6["transport"]) == null ? void 0 : _a16["send"](_0x577f56));
19534
+ } else (_c = (_b8 = _0x295fa6 == null ? void 0 : _0x295fa6[_0x2a3fc6(371)]) == null ? void 0 : _b8["onerror"]) == null ? void 0 : _c.call(_b8, _0x260152);
19535
+ } catch (_0x31b055) {
19536
+ (_e = (_d = _0x295fa6 == null ? void 0 : _0x295fa6[_0x18b546(371)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x31b055);
19494
19537
  }
19495
19538
  }
19496
19539
  };
19497
19540
  };
19498
- const forwardServerOnNotification = (_0xcf8955, _0x36f9ba) => {
19499
- const _0x419a2b = _0x39e0, _0x9d958a = _0x39e0, _0xd05c33 = {};
19500
- _0xd05c33["HMnPG"] = function(_0x52c2a0, _0x4943d1) {
19501
- return _0x52c2a0 !== _0x4943d1;
19502
- }, _0xd05c33[_0x419a2b(402)] = _0x419a2b(404), _0xd05c33["FwMpF"] = "notifications/cancelled";
19503
- const _0x5359a3 = _0xd05c33;
19504
- _0xcf8955[_0x419a2b(403)] = async (_0x10291a) => {
19541
+ const forwardServerOnNotification = (_0xbf4216, _0x2c1d64) => {
19542
+ const _0x41d9f8 = _0x436f, _0x2f9e6b = _0x436f, _0x1b758a = {};
19543
+ _0x1b758a[_0x41d9f8(363)] = function(_0x3941d3, _0x9b010a) {
19544
+ return _0x3941d3 !== _0x9b010a;
19545
+ }, _0x1b758a[_0x41d9f8(398)] = _0x41d9f8(353), _0x1b758a["hzhyg"] = "notifications/cancelled";
19546
+ const _0xbe4b4b = _0x1b758a;
19547
+ _0xbf4216["_onnotification"] = async (_0x1da5cb) => {
19505
19548
  var _a16, _b8;
19506
- const _0x59c45c = _0x9d958a, _0x169145 = _0x419a2b, { method: _0x49e7ac, params: _0x4b1a8d } = _0x10291a;
19507
- if (_0x5359a3["HMnPG"](_0x49e7ac, _0x5359a3[_0x59c45c(402)]) && (_0x5359a3[_0x59c45c(396)](_0x49e7ac, _0x5359a3["FwMpF"]) || (_0x4b1a8d == null ? void 0 : _0x4b1a8d[_0x169145(359)]))) try {
19508
- await _0x36f9ba["notification"](_0x10291a);
19509
- } catch (_0xe3401e) {
19510
- (_b8 = (_a16 = _0xcf8955 == null ? void 0 : _0xcf8955["transport"]) == null ? void 0 : _a16["onerror"]) == null ? void 0 : _b8.call(_a16, _0xe3401e);
19549
+ const _0x1daf66 = _0x41d9f8, _0x3a44ec = _0x2f9e6b, { method: _0x36956c, params: _0x3bca7c } = _0x1da5cb;
19550
+ if (_0xbe4b4b[_0x1daf66(363)](_0x36956c, _0xbe4b4b[_0x3a44ec(398)]) && (_0xbe4b4b[_0x1daf66(363)](_0x36956c, _0xbe4b4b["hzhyg"]) || (_0x3bca7c == null ? void 0 : _0x3bca7c["forward"]))) try {
19551
+ await _0x2c1d64["notification"](_0x1da5cb);
19552
+ } catch (_0x322fdf) {
19553
+ (_b8 = (_a16 = _0xbf4216 == null ? void 0 : _0xbf4216["transport"]) == null ? void 0 : _a16["onerror"]) == null ? void 0 : _b8.call(_a16, _0x322fdf);
19511
19554
  }
19512
19555
  };
19513
19556
  };
19514
- const forwardClientOnRequest = (_0x350424, _0x45a4f3) => async (_0x3f27bf) => {
19557
+ const forwardClientOnRequest = (_0x5ba9fc, _0x3c2127) => async (_0x35e391) => {
19515
19558
  var _a16, _b8, _c, _d, _e;
19516
- const _0x38ee18 = _0x39e0, _0x4c56db = _0x39e0, _0x2ace5b = { "SAxlc": function(_0x8260d7, _0x3907ae, _0x7ab448, _0x24baaa) {
19517
- return _0x8260d7(_0x3907ae, _0x7ab448, _0x24baaa);
19518
- }, "dFopk": "2.0" };
19559
+ const _0x18219 = _0x436f, _0xf7764b = _0x436f, _0x1fe570 = {};
19560
+ _0x1fe570["SEmWX"] = _0x18219(332);
19561
+ const _0x4db6d5 = _0x1fe570;
19519
19562
  try {
19520
- return await _0x2ace5b[_0x38ee18(383)](forwardClientRequest, _0x350424, _0x45a4f3, _0x3f27bf);
19521
- } catch (_0x4d1b94) {
19522
- const { code: _0x33822d, message: _0x32aebc, data: _0x851d9c } = _0x4d1b94;
19563
+ return await forwardClientRequest(_0x5ba9fc, _0x3c2127, _0x35e391);
19564
+ } catch (_0x5475d2) {
19565
+ const { code: _0x145668, message: _0x30e917, data: _0x308ae4 } = _0x5475d2;
19523
19566
  try {
19524
- if (_0x33822d) {
19525
- const _0x8caa5a = {};
19526
- _0x8caa5a[_0x4c56db(427)] = _0x33822d, _0x8caa5a[_0x38ee18(358)] = _0x32aebc, _0x8caa5a[_0x4c56db(353)] = _0x851d9c;
19527
- const _0x204223 = {};
19528
- _0x204223[_0x38ee18(392)] = _0x8caa5a, _0x204223["jsonrpc"] = _0x2ace5b[_0x38ee18(421)], _0x204223["id"] = _0x3f27bf["id"], await ((_a16 = _0x350424 == null ? void 0 : _0x350424["transport"]) == null ? void 0 : _a16["send"](_0x204223));
19529
- } else (_c = (_b8 = _0x350424 == null ? void 0 : _0x350424[_0x4c56db(381)]) == null ? void 0 : _b8["onerror"]) == null ? void 0 : _c.call(_b8, _0x4d1b94);
19530
- } catch (_0x2306a6) {
19531
- (_e = (_d = _0x350424 == null ? void 0 : _0x350424[_0x38ee18(381)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x2306a6);
19567
+ if (_0x145668) {
19568
+ const _0x3f0c29 = {};
19569
+ _0x3f0c29[_0xf7764b(377)] = _0x145668, _0x3f0c29["message"] = _0x30e917, _0x3f0c29["data"] = _0x308ae4;
19570
+ const _0x3e511c = {};
19571
+ _0x3e511c[_0xf7764b(348)] = _0x3f0c29, _0x3e511c["jsonrpc"] = _0x4db6d5[_0x18219(338)], _0x3e511c["id"] = _0x35e391["id"], await ((_a16 = _0x5ba9fc == null ? void 0 : _0x5ba9fc["transport"]) == null ? void 0 : _a16[_0xf7764b(392)](_0x3e511c));
19572
+ } else (_c = (_b8 = _0x5ba9fc == null ? void 0 : _0x5ba9fc["transport"]) == null ? void 0 : _b8[_0xf7764b(339)]) == null ? void 0 : _c.call(_b8, _0x5475d2);
19573
+ } catch (_0x44d349) {
19574
+ (_e = (_d = _0x5ba9fc == null ? void 0 : _0x5ba9fc[_0x18219(371)]) == null ? void 0 : _d[_0xf7764b(339)]) == null ? void 0 : _e.call(_d, _0x44d349);
19532
19575
  }
19533
19576
  }
19534
19577
  };
19535
- function _0x5c4b() {
19536
- const _0x25ea07 = ["level", "originalOnResponse", "55170mBdYDU", "message", "forward", "completion/complete", "YTglM", "_onrequest", "push", "resources/subscribe", "method", "evRYg", "IwJLf", "36vWOzfl", "INhFO", "ERLmZ", "4771400ICkNjz", "removeListener", "bepKH", "jsonrpc", "1588030zEKxZA", "readResource", "request", "indexOf", "_onresponse", "elicitation/create", "transport", "listResourceTemplates", "SAxlc", "TivTb", "VvMvg", "lKSxx", "resources/templates/list", "send", "removeRequestListener", "resources/list", "HHuTf", "error", "unsubscribeResource", "JgvOQ", "params", "HMnPG", "mKgNI", "initialize", "2.0", "clearListener", "result", "xAZkD", "_onnotification", "notifications/initialized", "DNAeN", "deQam", "18856juHcqp", "1408312pVrTzy", "exSlO", "_notificationHandlers", "fallbackRequestHandler", "1770391vhkQKM", "clear", "length", "917098eoebuK", "onerror", "eBAUu", "subscribeResource", "get", "clearRequestListener", "dFopk", "listPrompts", "2853mVPrjm", "addNotificationListener", "lfNNa", "prompts/list", "code", "call", "18wkYBws", "addResponseListener", "data", "RZSpk"];
19537
- _0x5c4b = function() {
19538
- return _0x25ea07;
19539
- };
19540
- return _0x5c4b();
19541
- }
19542
- const forwardClientOnNotification = (_0x56a744, _0x5bc58a) => async (_0x229c21) => {
19578
+ const forwardClientOnNotification = (_0x28d609, _0x4bf7cb) => async (_0x4bc3b1) => {
19543
19579
  var _a16, _b8, _c;
19544
- const _0x11017e = _0x39e0, _0x832ee7 = _0x39e0, _0x5178c8 = {};
19545
- _0x5178c8[_0x11017e(384)] = function(_0x4c61ee, _0x6b2444) {
19546
- return _0x4c61ee !== _0x6b2444;
19547
- }, _0x5178c8["HBVzz"] = "notifications/cancelled", _0x5178c8["bepKH"] = "2.0";
19548
- const _0x124672 = _0x5178c8, { method: _0x55bce5, params: _0xdeec85 } = _0x229c21;
19549
- if (_0x124672["TivTb"](_0x55bce5, "notifications/initialized") && (_0x55bce5 !== _0x124672["HBVzz"] || (_0xdeec85 == null ? void 0 : _0xdeec85[_0x832ee7(359)]))) try {
19550
- const _0xda5f61 = { ..._0x229c21 };
19551
- _0xda5f61[_0x11017e(374)] = _0x124672[_0x832ee7(373)], await ((_a16 = _0x5bc58a == null ? void 0 : _0x5bc58a["transport"]) == null ? void 0 : _a16[_0x832ee7(388)](_0xda5f61));
19552
- } catch (_0x3bb3c2) {
19553
- (_c = (_b8 = _0x56a744 == null ? void 0 : _0x56a744["transport"]) == null ? void 0 : _b8["onerror"]) == null ? void 0 : _c.call(_b8, _0x3bb3c2);
19554
- }
19555
- };
19556
- function _0x39e0(_0x3bf758, _0x40c6b7) {
19557
- const _0x2ab2d5 = _0x5c4b();
19558
- return _0x39e0 = function(_0x1a023d, _0x165845) {
19559
- _0x1a023d = _0x1a023d - (14 * -396 + -8764 + -2932 * -5);
19560
- let _0x356847 = _0x2ab2d5[_0x1a023d];
19561
- return _0x356847;
19562
- }, _0x39e0(_0x3bf758, _0x40c6b7);
19563
- }
19564
- const forwardClientOnResponse = (_0x814c0c, _0x197f19) => async (_0x29f400) => {
19580
+ const _0x3b3b4a = _0x436f, _0x1002c0 = _0x436f, _0x35ae78 = {};
19581
+ _0x35ae78["dtUgZ"] = function(_0x4ee941, _0x184cdc) {
19582
+ return _0x4ee941 !== _0x184cdc;
19583
+ }, _0x35ae78["jgCIb"] = _0x3b3b4a(353), _0x35ae78["uUjKY"] = "2.0";
19584
+ const _0x564be4 = _0x35ae78, { method: _0x4170f4, params: _0x466e2b } = _0x4bc3b1;
19585
+ if (_0x564be4["dtUgZ"](_0x4170f4, _0x564be4["jgCIb"]) && (_0x4170f4 !== _0x3b3b4a(400) || (_0x466e2b == null ? void 0 : _0x466e2b["forward"]))) try {
19586
+ const _0x2fa139 = { ..._0x4bc3b1 };
19587
+ _0x2fa139[_0x3b3b4a(394)] = _0x564be4[_0x1002c0(352)], await ((_a16 = _0x4bf7cb == null ? void 0 : _0x4bf7cb[_0x3b3b4a(371)]) == null ? void 0 : _a16[_0x3b3b4a(392)](_0x2fa139));
19588
+ } catch (_0x4981b1) {
19589
+ (_c = (_b8 = _0x28d609 == null ? void 0 : _0x28d609[_0x3b3b4a(371)]) == null ? void 0 : _b8[_0x1002c0(339)]) == null ? void 0 : _c.call(_b8, _0x4981b1);
19590
+ }
19591
+ };
19592
+ function _0x436f(_0x3eb3da, _0x246fe0) {
19593
+ const _0x190ef0 = _0x312b();
19594
+ return _0x436f = function(_0x3844a1, _0x22bcbf) {
19595
+ _0x3844a1 = _0x3844a1 - (9 * -113 + -1439 * -1 + -97);
19596
+ let _0x3446e7 = _0x190ef0[_0x3844a1];
19597
+ return _0x3446e7;
19598
+ }, _0x436f(_0x3eb3da, _0x246fe0);
19599
+ }
19600
+ const forwardClientOnResponse = (_0x1e680e, _0x1c8008) => async (_0x525a8d) => {
19565
19601
  var _a16, _b8, _c, _d, _e, _f;
19566
- const _0x126ee1 = _0x39e0, _0x1ef45f = _0x39e0, _0x3560e4 = {};
19567
- _0x3560e4["lCWNU"] = "2.0";
19568
- const _0x4f1db0 = _0x3560e4;
19602
+ const _0x4cc7de = _0x436f, _0x48c146 = _0x436f, _0x15ca71 = {};
19603
+ _0x15ca71[_0x4cc7de(401)] = _0x48c146(332);
19604
+ const _0x27611c = _0x15ca71;
19569
19605
  try {
19570
- await ((_a16 = _0x197f19 == null ? void 0 : _0x197f19["transport"]) == null ? void 0 : _a16["send"](_0x29f400));
19571
- } catch (_0x257b66) {
19572
- const { code: _0x5c13ff, message: _0x5a23d8, data: _0x44d1a1 } = _0x257b66;
19606
+ await ((_a16 = _0x1c8008 == null ? void 0 : _0x1c8008["transport"]) == null ? void 0 : _a16["send"](_0x525a8d));
19607
+ } catch (_0x4fb145) {
19608
+ const { code: _0x42cf0b, message: _0xe29332, data: _0x3919ab } = _0x4fb145;
19573
19609
  try {
19574
- if (_0x5c13ff) {
19575
- const _0x312ca8 = {};
19576
- _0x312ca8["code"] = _0x5c13ff, _0x312ca8[_0x126ee1(358)] = _0x5a23d8, _0x312ca8[_0x126ee1(353)] = _0x44d1a1;
19577
- const _0x3b1667 = {};
19578
- _0x3b1667["error"] = _0x312ca8, _0x3b1667["jsonrpc"] = _0x4f1db0["lCWNU"], _0x3b1667["id"] = _0x29f400["id"], await ((_b8 = _0x814c0c == null ? void 0 : _0x814c0c[_0x126ee1(381)]) == null ? void 0 : _b8[_0x1ef45f(388)](_0x3b1667));
19579
- } else (_d = (_c = _0x814c0c == null ? void 0 : _0x814c0c["transport"]) == null ? void 0 : _c["onerror"]) == null ? void 0 : _d.call(_c, _0x257b66);
19580
- } catch (_0x5cb7d1) {
19581
- (_f = (_e = _0x814c0c == null ? void 0 : _0x814c0c[_0x126ee1(381)]) == null ? void 0 : _e[_0x126ee1(416)]) == null ? void 0 : _f.call(_e, _0x5cb7d1);
19610
+ if (_0x42cf0b) {
19611
+ const _0x15d8af = {};
19612
+ _0x15d8af["code"] = _0x42cf0b, _0x15d8af[_0x4cc7de(399)] = _0xe29332, _0x15d8af["data"] = _0x3919ab;
19613
+ const _0x5acd21 = {};
19614
+ _0x5acd21[_0x4cc7de(348)] = _0x15d8af, _0x5acd21[_0x4cc7de(394)] = _0x27611c["OhJjz"], _0x5acd21["id"] = _0x525a8d["id"], await ((_b8 = _0x1e680e == null ? void 0 : _0x1e680e[_0x4cc7de(371)]) == null ? void 0 : _b8["send"](_0x5acd21));
19615
+ } else (_d = (_c = _0x1e680e == null ? void 0 : _0x1e680e["transport"]) == null ? void 0 : _c[_0x48c146(339)]) == null ? void 0 : _d.call(_c, _0x4fb145);
19616
+ } catch (_0x18c5af) {
19617
+ (_f = (_e = _0x1e680e == null ? void 0 : _0x1e680e["transport"]) == null ? void 0 : _e["onerror"]) == null ? void 0 : _f.call(_e, _0x18c5af);
19582
19618
  }
19583
19619
  }
19584
19620
  };
19585
19621
  const createHandleListener = () => {
19586
- const _0x244b02 = _0x39e0, _0x3a8a3a = { "ppppd": function(_0x1e7c09, _0x35b518) {
19587
- return _0x1e7c09 !== _0x35b518;
19588
- }, "VvMvg": function(_0x45b85e, _0x4c9b9c) {
19589
- return _0x45b85e(_0x4c9b9c);
19590
- }, "kyvea": function(_0x553dd3, _0x4f12f2) {
19591
- return _0x553dd3 === _0x4f12f2;
19592
- }, "Finqx": "function", "DNAeN": function(_0x567072, _0x232500) {
19593
- return _0x567072 !== _0x232500;
19594
- } }, _0x3fed1f = [], _0x1a3e1b = (_0x4020ea, _0x5bcb4c) => {
19595
- const _0x266ba4 = _0x39e0;
19596
- if (_0x5bcb4c) {
19597
- const _0x20b740 = [];
19598
- for (const _0xd61b85 of _0x3fed1f) {
19622
+ const _0x584790 = _0x436f, _0xfde4fe = _0x436f, _0x4ea6ca = { "vnkqu": function(_0x403bc5, _0x53bd2e) {
19623
+ return _0x403bc5 !== _0x53bd2e;
19624
+ }, "wxDWr": function(_0x1c881b, _0x66c10d) {
19625
+ return _0x1c881b(_0x66c10d);
19626
+ }, "GdkkV": function(_0x9d4748, _0x24b020) {
19627
+ return _0x9d4748 === _0x24b020;
19628
+ } }, _0x5de2ad = [], _0x1c01fe = (_0x431466, _0x28ccda) => {
19629
+ const _0x1d408a = _0x436f, _0x120458 = _0x436f;
19630
+ if (_0x28ccda) {
19631
+ const _0x1e8724 = [];
19632
+ for (const _0x1264b7 of _0x5de2ad) {
19599
19633
  try {
19600
- _0x20b740[_0x266ba4(363)](_0xd61b85(_0x4020ea, _0x5bcb4c));
19634
+ _0x1e8724["push"](_0x1264b7(_0x431466, _0x28ccda));
19601
19635
  } catch {
19602
19636
  }
19603
19637
  }
19604
- for (const _0xd4943d of _0x20b740) {
19605
- if (_0x3a8a3a["ppppd"](_0xd4943d, null)) return _0xd4943d;
19638
+ for (const _0x445fc2 of _0x1e8724) {
19639
+ if (_0x4ea6ca[_0x1d408a(379)](_0x445fc2, null)) return _0x445fc2;
19606
19640
  }
19607
- } else for (const _0x144e41 of _0x3fed1f) {
19641
+ } else for (const _0x4637f1 of _0x5de2ad) {
19608
19642
  try {
19609
- _0x3a8a3a[_0x266ba4(385)](_0x144e41, _0x4020ea);
19643
+ _0x4ea6ca[_0x120458(343)](_0x4637f1, _0x431466);
19610
19644
  } catch {
19611
19645
  }
19612
19646
  }
19613
- }, _0x847ce = (_0x206221) => {
19614
- const _0x264312 = _0x39e0;
19615
- _0x3a8a3a["kyvea"](typeof _0x206221, _0x3a8a3a["Finqx"]) && !_0x3fed1f["includes"](_0x206221) && _0x3fed1f[_0x264312(363)](_0x206221);
19616
- }, _0x339854 = (_0x435634) => {
19617
- const _0x3a83b5 = _0x39e0, _0x4c6909 = _0x3fed1f[_0x3a83b5(378)](_0x435634);
19618
- _0x3a8a3a[_0x3a83b5(405)](_0x4c6909, -1) && _0x3fed1f["splice"](_0x4c6909, -9316 + -82 * 53 + -1 * -13663);
19619
- }, _0x1ce6b6 = () => {
19620
- const _0x393300 = _0x39e0;
19621
- _0x3fed1f[_0x393300(414)] = -1 * -9084 + -3251 * -1 + 12335 * -1;
19622
- }, _0x5bffb4 = {};
19623
- return _0x5bffb4["handleListener"] = _0x1a3e1b, _0x5bffb4["addListener"] = _0x847ce, _0x5bffb4[_0x244b02(372)] = _0x339854, _0x5bffb4[_0x244b02(400)] = _0x1ce6b6, _0x5bffb4;
19624
- }, setClientListener = (_0x7b39ad) => {
19625
- const _0x218085 = _0x39e0, _0x5045bd = _0x39e0, _0x14c45d = { "nsbwy": function(_0x2f2e6a) {
19626
- return _0x2f2e6a();
19627
- }, "evRYg": function(_0x4cd93f) {
19628
- return _0x4cd93f();
19629
- }, "SwOnF": function(_0xbb267d) {
19630
- return _0xbb267d();
19647
+ }, _0x46917c = (_0x2b37ef) => {
19648
+ const _0x562515 = _0x436f;
19649
+ _0x4ea6ca[_0x562515(384)](typeof _0x2b37ef, _0x562515(369)) && !_0x5de2ad["includes"](_0x2b37ef) && _0x5de2ad["push"](_0x2b37ef);
19650
+ }, _0x1187af = (_0x522cb1) => {
19651
+ const _0x530b39 = _0x5de2ad["indexOf"](_0x522cb1);
19652
+ _0x530b39 !== -1 && _0x5de2ad["splice"](_0x530b39, 1 * -6854 + 8 * -33 + 7119);
19653
+ }, _0x21be0c = () => {
19654
+ const _0x217721 = _0x436f;
19655
+ _0x5de2ad[_0x217721(374)] = 7102 * 1 + 5522 + -526 * 24;
19656
+ }, _0x3a7414 = {};
19657
+ return _0x3a7414[_0x584790(346)] = _0x1c01fe, _0x3a7414[_0xfde4fe(330)] = _0x46917c, _0x3a7414["removeListener"] = _0x1187af, _0x3a7414[_0x584790(359)] = _0x21be0c, _0x3a7414;
19658
+ }, setClientListener = (_0x44ee2c) => {
19659
+ const _0x41b7db = _0x436f, _0x543db2 = _0x436f, _0x158fa1 = { "xwPeb": function(_0x2ff8e4) {
19660
+ return _0x2ff8e4();
19661
+ }, "Mfvzm": function(_0x557d5a) {
19662
+ return _0x557d5a();
19631
19663
  } };
19632
19664
  {
19633
- const { handleListener: _0x49c94c, addListener: _0xf15c73, removeListener: _0x62c318, clearListener: _0x2890e6 } = _0x14c45d["nsbwy"](createHandleListener);
19634
- _0x7b39ad["_onresponse"] = _0x49c94c, _0x7b39ad[_0x218085(352)] = _0xf15c73, _0x7b39ad["removeResponseListener"] = _0x62c318, _0x7b39ad["clearResponseListener"] = _0x2890e6;
19665
+ const { handleListener: _0x1d5fdc, addListener: _0x47b60e, removeListener: _0x7a7da6, clearListener: _0x32a47a } = _0x158fa1[_0x41b7db(326)](createHandleListener);
19666
+ _0x44ee2c["_onresponse"] = _0x1d5fdc, _0x44ee2c[_0x41b7db(395)] = _0x47b60e, _0x44ee2c["removeResponseListener"] = _0x7a7da6, _0x44ee2c["clearResponseListener"] = _0x32a47a;
19635
19667
  }
19636
19668
  {
19637
- const { handleListener: _0x591179, addListener: _0x2a22e7, removeListener: _0x176cb3, clearListener: _0x102f1e } = _0x14c45d[_0x5045bd(366)](createHandleListener);
19638
- _0x7b39ad[_0x218085(411)] = _0x591179, _0x7b39ad["addRequestListener"] = _0x2a22e7, _0x7b39ad[_0x218085(389)] = _0x176cb3, _0x7b39ad[_0x5045bd(420)] = _0x102f1e;
19669
+ const { handleListener: _0x2a5fe3, addListener: _0x630b07, removeListener: _0xb70f6, clearListener: _0x3e94ce } = _0x158fa1[_0x543db2(326)](createHandleListener);
19670
+ _0x44ee2c[_0x543db2(328)] = _0x2a5fe3, _0x44ee2c["addRequestListener"] = _0x630b07, _0x44ee2c[_0x543db2(354)] = _0xb70f6, _0x44ee2c[_0x543db2(341)] = _0x3e94ce;
19639
19671
  }
19640
19672
  {
19641
- const { handleListener: _0x39c31d, addListener: _0x4979c1, removeListener: _0xe800bf, clearListener: _0x30b8d3 } = _0x14c45d["SwOnF"](createHandleListener);
19642
- _0x7b39ad["fallbackNotificationHandler"] = _0x39c31d, _0x7b39ad["addNotificationListener"] = _0x4979c1, _0x7b39ad["removeNotificationListener"] = _0xe800bf, _0x7b39ad["clearNotificationListener"] = _0x30b8d3;
19643
- }
19644
- };
19645
- const initClientHandler = (_0x25fbfb, { beforeInit: _0x4ae00, afterInit: _0x471dbf } = {}) => {
19646
- const _0x59c3f1 = _0x39e0, _0x44687b = _0x39e0, _0x393517 = { "eBAUu": "function", "uldJU": function(_0x4c924b, _0x572949) {
19647
- return _0x4c924b(_0x572949);
19648
- }, "nOioM": function(_0x2d9f90, _0x468466) {
19649
- return _0x2d9f90 === _0x468466;
19650
- }, "mYMiK": function(_0x3ed596) {
19651
- return _0x3ed596();
19652
- }, "lKSxx": function(_0x27b380) {
19653
- return _0x27b380();
19654
- } }, _0x3dfcca = new Map(_0x25fbfb["_notificationHandlers"]);
19655
- _0x25fbfb["_requestHandlers"][_0x59c3f1(413)](), _0x25fbfb[_0x44687b(410)][_0x59c3f1(413)](), _0x393517["nOioM"](typeof _0x4ae00, _0x393517["eBAUu"]) && _0x393517["mYMiK"](_0x4ae00), _0x25fbfb["_onresponse"]["name"] === _0x44687b(379) && (_0x25fbfb[_0x44687b(356)] = _0x25fbfb["_onresponse"]), setClientListener(_0x25fbfb), _0x25fbfb[_0x44687b(352)]((_0x3de22b) => {
19656
- const _0x1dc9aa = _0x59c3f1;
19657
- _0x25fbfb[_0x1dc9aa(356)]["call"](_0x25fbfb, _0x3de22b);
19658
- }), _0x393517["nOioM"](typeof _0x471dbf, _0x393517[_0x44687b(417)]) && _0x393517[_0x59c3f1(386)](_0x471dbf), _0x25fbfb[_0x44687b(424)]((_0x353447) => {
19659
- const _0x22a862 = _0x59c3f1, { method: _0x591aad } = _0x353447, _0x2f6c32 = _0x3dfcca[_0x22a862(419)](_0x591aad);
19660
- typeof _0x2f6c32 === _0x393517["eBAUu"] && _0x393517["uldJU"](_0x2f6c32, _0x353447);
19673
+ const { handleListener: _0x535dd5, addListener: _0x394877, removeListener: _0x253b3b, clearListener: _0x44f208 } = _0x158fa1[_0x41b7db(375)](createHandleListener);
19674
+ _0x44ee2c[_0x41b7db(342)] = _0x535dd5, _0x44ee2c[_0x41b7db(327)] = _0x394877, _0x44ee2c["removeNotificationListener"] = _0x253b3b, _0x44ee2c["clearNotificationListener"] = _0x44f208;
19675
+ }
19676
+ };
19677
+ function _0x312b() {
19678
+ const _0x10336d = ["uUjKY", "notifications/initialized", "removeRequestListener", "96194JysfjF", "36346SGEWAV", "1357830AJaOeY", "resources/templates/list", "clearListener", "iQqcJ", "result", "tqDZP", "sSeCz", "XtowM", "HgYgW", "3913230mjiatC", "params", "roots/list", "function", "bfmJT", "transport", "resources/read", "27FNuDmk", "length", "Mfvzm", "ping", "code", "_onresponse", "vnkqu", "cjSoZ", "request", "9gIMIPC", "readResource", "GdkkV", "ptMjy", "call", "aVeaL", "completion/complete", "5035122lFbpzR", "logging/setLevel", "jQBBS", "send", "_requestHandlers", "jsonrpc", "addResponseListener", "7SpcenI", "ElOQH", "MDIkN", "message", "notifications/cancelled", "OhJjz", "clear", "672216JzFEyR", "xwPeb", "addNotificationListener", "fallbackRequestHandler", "sYzPD", "addListener", "ifIKG", "2.0", "gXsjT", "WqUnk", "resources/subscribe", "setLoggingLevel", "2491772kFUWFh", "SEmWX", "onerror", "prompts/get", "clearRequestListener", "fallbackNotificationHandler", "wxDWr", "SkoRK", "uTeHc", "handleListener", "Zybtx", "error", "originalOnResponse", "listResources", "initialize"];
19679
+ _0x312b = function() {
19680
+ return _0x10336d;
19681
+ };
19682
+ return _0x312b();
19683
+ }
19684
+ const initClientHandler = (_0x4eae35, { beforeInit: _0x5ede3e, afterInit: _0x392ad7 } = {}) => {
19685
+ const _0x39ee68 = _0x436f, _0x2ff689 = _0x436f, _0xef50a3 = { "tqDZP": function(_0x3b46af, _0x42b551) {
19686
+ return _0x3b46af === _0x42b551;
19687
+ }, "cjSoZ": "function", "iQqcJ": _0x39ee68(378), "Zybtx": function(_0x5e40d5, _0xea2fd6) {
19688
+ return _0x5e40d5(_0xea2fd6);
19689
+ }, "ElOQH": function(_0x29a1dd) {
19690
+ return _0x29a1dd();
19691
+ } }, _0x28c085 = new Map(_0x4eae35["_notificationHandlers"]);
19692
+ _0x4eae35[_0x39ee68(393)][_0x39ee68(402)](), _0x4eae35["_notificationHandlers"][_0x39ee68(402)](), _0xef50a3["tqDZP"](typeof _0x5ede3e, _0xef50a3[_0x39ee68(380)]) && _0x5ede3e(), _0xef50a3[_0x39ee68(362)](_0x4eae35["_onresponse"]["name"], _0xef50a3[_0x39ee68(360)]) && (_0x4eae35[_0x2ff689(349)] = _0x4eae35["_onresponse"]), _0xef50a3[_0x39ee68(347)](setClientListener, _0x4eae35), _0x4eae35["addResponseListener"]((_0x5b9ccc) => {
19693
+ const _0x44116a = _0x2ff689;
19694
+ _0x4eae35["originalOnResponse"][_0x44116a(386)](_0x4eae35, _0x5b9ccc);
19695
+ }), _0xef50a3["tqDZP"](typeof _0x392ad7, _0xef50a3[_0x2ff689(380)]) && _0xef50a3[_0x39ee68(397)](_0x392ad7), _0x4eae35[_0x2ff689(327)]((_0x4b3e63) => {
19696
+ const { method: _0x52cc8d } = _0x4b3e63, _0x1d4650 = _0x28c085["get"](_0x52cc8d);
19697
+ _0xef50a3["tqDZP"](typeof _0x1d4650, _0xef50a3["cjSoZ"]) && _0x1d4650(_0x4b3e63);
19661
19698
  });
19662
19699
  };
19663
- const _0x3e6eee = _0x1297;
19664
- function _0x1297(_0x430353, _0x592bca) {
19665
- const _0x40b1f3 = _0x3b6d();
19666
- return _0x1297 = function(_0x2f5cb5, _0x4e91df) {
19667
- _0x2f5cb5 = _0x2f5cb5 - (-499 * 3 + 1 * -890 + -337 * -8);
19668
- let _0xf2c16e = _0x40b1f3[_0x2f5cb5];
19669
- return _0xf2c16e;
19670
- }, _0x1297(_0x430353, _0x592bca);
19671
- }
19672
- (function(_0x63ec62, _0x14ec52) {
19673
- const _0x75460f = _0x1297, _0x264884 = _0x1297, _0x3d2de = _0x63ec62();
19700
+ const _0x1c80bf = _0x4f47, _0x53d80a = _0x4f47;
19701
+ (function(_0x274e6a, _0x42a727) {
19702
+ const _0x110d0e = _0x4f47, _0x242f23 = _0x4f47, _0x198664 = _0x274e6a();
19674
19703
  while (!![]) {
19675
19704
  try {
19676
- const _0x3b75ab = parseInt(_0x75460f(315)) / (-3055 + -217 * -8 + 12 * 110) * (-parseInt(_0x75460f(316)) / (7554 + -1 * -2647 + -10199)) + parseInt(_0x75460f(319)) / (9457 + -1858 + 3798 * -2) * (-parseInt(_0x75460f(320)) / (-1839 * 5 + -25 * -68 + 7499)) + -parseInt(_0x264884(324)) / (-1562 * 1 + 5 * -876 + 5947) + parseInt(_0x75460f(327)) / (4694 + -9106 + 4418) * (-parseInt(_0x264884(323)) / (-7093 + 7030 + -1 * -70)) + parseInt(_0x264884(312)) / (4 * -2203 + -1 * 5070 + 13890) + -parseInt(_0x75460f(310)) / (2 * 3460 + 7 * 1356 + -16403) + parseInt(_0x75460f(325)) / (-1 * -3430 + 6 * -926 + -89 * -24) * (parseInt(_0x75460f(322)) / (3069 + 1 * -7712 + 13 * 358));
19677
- if (_0x3b75ab === _0x14ec52) break;
19678
- else _0x3d2de["push"](_0x3d2de["shift"]());
19679
- } catch (_0xc65d17) {
19680
- _0x3d2de["push"](_0x3d2de["shift"]());
19681
- }
19682
- }
19683
- })(_0x3b6d, 815846 + -859697 * 1 + 650566);
19684
- const randomUUID = () => {
19685
- const _0x130126 = _0x1297, _0x4eaba3 = _0x1297, _0x4e6a38 = {};
19686
- _0x4e6a38[_0x130126(317)] = function(_0x5da62a, _0x334e8c) {
19687
- return _0x5da62a & _0x334e8c;
19688
- }, _0x4e6a38[_0x4eaba3(326)] = function(_0x3901a7, _0xfd8627) {
19689
- return _0x3901a7 | _0xfd8627;
19690
- }, _0x4e6a38["CJbSq"] = function(_0x5dc6f6, _0x42f0f5) {
19691
- return _0x5dc6f6 & _0x42f0f5;
19692
- }, _0x4e6a38[_0x4eaba3(313)] = function(_0x148295, _0x5aeeaf) {
19693
- return _0x148295 === _0x5aeeaf;
19694
- }, _0x4e6a38["aiAIs"] = _0x4eaba3(309);
19695
- const _0x50bbd = _0x4e6a38;
19696
- if (_0x50bbd[_0x130126(313)](typeof crypto, _0x50bbd["aiAIs"]) && crypto[_0x130126(314)]) return crypto["randomUUID"]();
19697
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"["replace"](/[xy]/g, (_0x314035) => {
19698
- const _0x243f0f = _0x130126, _0x546fa8 = _0x130126, _0x1446e2 = _0x50bbd[_0x243f0f(317)](crypto[_0x546fa8(321)](new Uint8Array(-8718 + 124 * 25 + 5619))[-6393 + -329 * -4 + 1 * 5077], 222 * -2 + -5419 * -1 + -496 * 10), _0x5e28a6 = _0x314035 === "x" ? _0x1446e2 : _0x50bbd["koxtC"](_0x50bbd["CJbSq"](_0x1446e2, 333 + 1177 + 1 * -1507), 737 * -3 + -3740 + 5959);
19699
- return _0x5e28a6["toString"](-2193 + -5935 + 8144);
19700
- });
19701
- }, randomBytes = (_0x2231b4) => {
19702
- const _0x420377 = _0x1297, _0x2cc52c = _0x1297, _0x24e611 = new Uint8Array(_0x2231b4);
19703
- return crypto[_0x420377(321)](_0x24e611), Array[_0x420377(311)](_0x24e611, (_0x490f10) => _0x490f10["toString"](-9830 * 1 + 15 * -389 + 15681)["padStart"](9437 + 1442 + -10877, "0"))[_0x2cc52c(328)]("");
19704
- }, _0x21d13c = {};
19705
- function _0x3b6d() {
19706
- const _0x2eb984 = ["322602YEeXTL", "cWMWo", "randomBytes", "360714cQwoni", "4jGlyZR", "getRandomValues", "11vuSHLa", "7coyLYd", "576200ZDqfSL", "25441610RPtFTZ", "koxtC", "4124070gqAgCl", "join", "object", "8383374JYLMHO", "from", "4496536egULKP", "bXzKK", "randomUUID", "4ZgaCxq"];
19707
- _0x3b6d = function() {
19708
- return _0x2eb984;
19705
+ const _0x571b93 = -parseInt(_0x110d0e(393)) / (7531 + 5849 + -13379) + parseInt(_0x110d0e(397)) / (12 * -615 + -1 * 5783 + 13165) * (-parseInt(_0x110d0e(400)) / (-7435 + 6318 + 1120)) + -parseInt(_0x242f23(398)) / (7 * 545 + 5036 * -1 + -1225 * -1) + parseInt(_0x110d0e(390)) / (-6 * 970 + 7 * -914 + -12223 * -1) * (parseInt(_0x242f23(388)) / (-79 * 78 + 5153 + 1015)) + -parseInt(_0x110d0e(389)) / (1 * -613 + 1 * 9786 + -9166) + -parseInt(_0x110d0e(402)) / (1906 * 4 + -3703 + -7 * 559) * (-parseInt(_0x242f23(395)) / (139 + -3 * -647 + -2071)) + parseInt(_0x242f23(399)) / (1110 + -78 * 79 + 5062 * 1) * (parseInt(_0x242f23(385)) / (-3040 + 1 * 4645 + 2 * -797));
19706
+ if (_0x571b93 === _0x42a727) break;
19707
+ else _0x198664["push"](_0x198664["shift"]());
19708
+ } catch (_0x222798) {
19709
+ _0x198664["push"](_0x198664["shift"]());
19710
+ }
19711
+ }
19712
+ })(_0x13a3, -1 * -881393 + 2 * 180895 + 1 * -644809);
19713
+ function _0x4f47(_0x5d6b98, _0xbed46d) {
19714
+ const _0x7f5b81 = _0x13a3();
19715
+ return _0x4f47 = function(_0x98208d, _0x540f7c) {
19716
+ _0x98208d = _0x98208d - (-1861 + -499 * 4 + 4241);
19717
+ let _0x1f0479 = _0x7f5b81[_0x98208d];
19718
+ return _0x1f0479;
19719
+ }, _0x4f47(_0x5d6b98, _0xbed46d);
19720
+ }
19721
+ function _0x13a3() {
19722
+ const _0x2dd535 = ["toString", "getRandomValues", "2101mUsYMI", "EQHzo", "padStart", "30UvDAkd", "1609706yzlqYx", "974735GrhZVO", "randomUUID", "REzPF", "562771BvAnoG", "dHTfU", "2047455boiYXf", "randomBytes", "14664qHAdbF", "3772144jLpQch", "52310AkWksx", "318MkjaVb", "from", "40WRwnSc"];
19723
+ _0x13a3 = function() {
19724
+ return _0x2dd535;
19709
19725
  };
19710
- return _0x3b6d();
19726
+ return _0x13a3();
19711
19727
  }
19712
- _0x21d13c["randomUUID"] = randomUUID, _0x21d13c[_0x3e6eee(318)] = randomBytes;
19713
- const _0x5181bd = _0x2455, _0x44e3b0 = _0x2455;
19714
- (function(_0x2c3f37, _0x2c0c62) {
19715
- const _0x4f3579 = _0x2455, _0xab97ac = _0x2455, _0x578b8e = _0x2c3f37();
19728
+ const randomUUID = () => {
19729
+ const _0x503b55 = _0x4f47, _0x5d1fe2 = _0x4f47, _0x1c89e3 = {};
19730
+ _0x1c89e3["REzPF"] = function(_0x36d31b, _0x2b87c4) {
19731
+ return _0x36d31b & _0x2b87c4;
19732
+ }, _0x1c89e3["suJHI"] = function(_0x341adf, _0x50c362) {
19733
+ return _0x341adf === _0x50c362;
19734
+ }, _0x1c89e3[_0x503b55(386)] = function(_0x2bd9d4, _0x55e7e8) {
19735
+ return _0x2bd9d4 & _0x55e7e8;
19736
+ }, _0x1c89e3[_0x5d1fe2(394)] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
19737
+ const _0x2305bc = _0x1c89e3;
19738
+ if (_0x2305bc["suJHI"](typeof crypto, "object") && crypto["randomUUID"]) return crypto[_0x5d1fe2(391)]();
19739
+ return _0x2305bc["dHTfU"]["replace"](/[xy]/g, (_0x47a253) => {
19740
+ const _0xee7adc = _0x503b55, _0x3ebe42 = _0x503b55, _0x3b82cf = _0x2305bc[_0xee7adc(392)](crypto[_0xee7adc(384)](new Uint8Array(-25 * -62 + 7113 + 2 * -4331))[741 * 2 + -1385 * -2 + 4252 * -1], 8648 + -107 * 62 + -1999), _0x5cd225 = _0x2305bc["suJHI"](_0x47a253, "x") ? _0x3b82cf : _0x2305bc[_0x3ebe42(386)](_0x3b82cf, -2516 + -1861 + 4 * 1095) | 5047 + 32 + 461 * -11;
19741
+ return _0x5cd225["toString"](9449 + 4 * -461 + -7589);
19742
+ });
19743
+ }, randomBytes = (_0x2added) => {
19744
+ const _0x3977c7 = _0x4f47, _0x2f0d95 = _0x4f47, _0x516c9f = new Uint8Array(_0x2added);
19745
+ return crypto["getRandomValues"](_0x516c9f), Array[_0x3977c7(401)](_0x516c9f, (_0x145cf8) => _0x145cf8[_0x2f0d95(403)](-3 * 1739 + -6509 + 2 * 5871)[_0x3977c7(387)](6365 + 9124 + -15487, "0"))["join"]("");
19746
+ }, _0xf24c8f = {};
19747
+ _0xf24c8f[_0x1c80bf(391)] = randomUUID, _0xf24c8f[_0x53d80a(396)] = randomBytes;
19748
+ const _0x4b5fcc = _0x47a7;
19749
+ (function(_0x564ad7, _0x4857af) {
19750
+ const _0x465eed = _0x47a7, _0xa45919 = _0x47a7, _0x1574ce = _0x564ad7();
19716
19751
  while (!![]) {
19717
19752
  try {
19718
- const _0x11afca = -parseInt(_0x4f3579(202)) / (1931 + 3657 + -1 * 5587) + -parseInt(_0xab97ac(206)) / (1 * 1949 + -10 * 290 + 953 * 1) + -parseInt(_0xab97ac(205)) / (6285 + -3320 + -2962) + parseInt(_0x4f3579(176)) / (5197 * 1 + 45 * -47 + -3078) + -parseInt(_0xab97ac(180)) / (-1911 + 467 + -9 * -161) + -parseInt(_0xab97ac(194)) / (-3 * -1695 + 10 * -687 + 1791) + parseInt(_0x4f3579(188)) / (6871 + 224 * -36 + 1200);
19719
- if (_0x11afca === _0x2c0c62) break;
19720
- else _0x578b8e["push"](_0x578b8e["shift"]());
19721
- } catch (_0x43ec5e) {
19722
- _0x578b8e["push"](_0x578b8e["shift"]());
19723
- }
19724
- }
19725
- })(_0x39ad, 112621 * 2 + -1 * -1870746 + -1103066);
19726
- function _0x39ad() {
19727
- const _0x514f2d = ["function", "JPlVw", "removeRequestListener", "authProvider", "1.0.0", "rmzgk", "ZXEHq", "KmDTz", "oHJBZ", "TIBus", "credentials", "197184QVZkrq", "removeResponseListener", "set", "searchParams", "9184715GDLahr", "version", "listChanged", "KaUfV", "include", "Authorization", "afterInit", "entries", "50977584KLIJFM", "sampling", "capabilities", "randomUUID", "close", "requestInit", "1757244qRFdUY", "headers", "transport", "mcp-sse-proxy-client", "sessionId", "wZCHj", "roots", "removeNotificationListener", "1628495nlouLW", "addRequestListener", "xZlrW", "4650435ijSJjJ", "2060858ZiIYSc", "SUlgi", "_eventSource", "eventSourceInit", "MRyfg", "mcp-stream-proxy-client", "sse-session-id", "name", "alwWV", "aDqLK"];
19728
- _0x39ad = function() {
19729
- return _0x514f2d;
19730
- };
19731
- return _0x39ad();
19732
- }
19733
- const forwardProxyClient = (_0x4c41bd, _0x381031) => {
19734
- const _0x437eca = _0x2455, _0x538232 = _0x2455, _0x13e513 = { "MRyfg": function(_0x153d8c, _0x551dc1, _0x3e4d0e) {
19735
- return _0x153d8c(_0x551dc1, _0x3e4d0e);
19753
+ const _0x1a581d = parseInt(_0x465eed(521)) / (-3755 * -2 + -4007 + -3502 * 1) * (parseInt(_0xa45919(499)) / (-521 * 5 + -7998 + 10605)) + parseInt(_0xa45919(543)) / (-35 * 241 + 289 * 13 + 4681) * (parseInt(_0xa45919(514)) / (-2831 + -6 * 664 + 6819)) + parseInt(_0x465eed(502)) / (-2 * -995 + 7808 + -9793) * (parseInt(_0xa45919(539)) / (-5989 + -857 + 571 * 12)) + parseInt(_0x465eed(553)) / (7818 + 1821 + -9632) + parseInt(_0x465eed(516)) / (-1559 + 7309 * -1 + 8876) * (-parseInt(_0x465eed(518)) / (8701 + -227 * 10 + -2 * 3211)) + -parseInt(_0x465eed(531)) / (-2966 + 14 * 74 + 1940) + -parseInt(_0x465eed(545)) / (1465 + -1446 + -8) * (parseInt(_0x465eed(541)) / (1676 + 8779 + -59 * 177));
19754
+ if (_0x1a581d === _0x4857af) break;
19755
+ else _0x1574ce["push"](_0x1574ce["shift"]());
19756
+ } catch (_0x4fe820) {
19757
+ _0x1574ce["push"](_0x1574ce["shift"]());
19758
+ }
19759
+ }
19760
+ })(_0x4529, 1472653 * 1 + -2 * -897917 + -2275789);
19761
+ const forwardProxyClient = (_0x53de69, _0x17fc54) => {
19762
+ const _0x5c6b05 = _0x47a7, _0xe7562f = _0x47a7, _0x473cd6 = { "FyYHt": function(_0x5e7e1e, _0x251ae7, _0x311330) {
19763
+ return _0x5e7e1e(_0x251ae7, _0x311330);
19764
+ }, "Fxtoq": function(_0x24fdb2, _0x5940e5, _0x4cecbc) {
19765
+ return _0x24fdb2(_0x5940e5, _0x4cecbc);
19736
19766
  } };
19737
- _0x13e513[_0x437eca(210)](forwardServerOnRequest, _0x4c41bd, _0x381031), _0x13e513["MRyfg"](forwardServerOnNotification, _0x4c41bd, _0x381031);
19738
- const _0x1281a4 = forwardClientOnRequest(_0x381031, _0x4c41bd), _0x43b2bc = _0x13e513["MRyfg"](forwardClientOnResponse, _0x381031, _0x4c41bd), _0x3640b6 = forwardClientOnNotification(_0x381031, _0x4c41bd);
19739
- _0x381031[_0x437eca(203)](_0x1281a4), _0x381031["addResponseListener"](_0x43b2bc), _0x381031["addNotificationListener"](_0x3640b6), _0x4c41bd["onclose"] = () => {
19740
- const _0x979af3 = _0x437eca, _0x517e3f = _0x538232;
19741
- _0x381031[_0x979af3(218)](_0x1281a4), _0x381031[_0x979af3(177)](_0x43b2bc), _0x381031[_0x517e3f(201)](_0x3640b6);
19767
+ forwardServerOnRequest(_0x53de69, _0x17fc54), forwardServerOnNotification(_0x53de69, _0x17fc54);
19768
+ const _0x5dd8c7 = forwardClientOnRequest(_0x17fc54, _0x53de69), _0x14e3a4 = _0x473cd6[_0x5c6b05(510)](forwardClientOnResponse, _0x17fc54, _0x53de69), _0x1e8916 = _0x473cd6[_0xe7562f(549)](forwardClientOnNotification, _0x17fc54, _0x53de69);
19769
+ _0x17fc54[_0xe7562f(537)](_0x5dd8c7), _0x17fc54[_0x5c6b05(519)](_0x14e3a4), _0x17fc54["addNotificationListener"](_0x1e8916), _0x53de69[_0xe7562f(556)] = () => {
19770
+ const _0x6d3192 = _0xe7562f;
19771
+ _0x17fc54["removeRequestListener"](_0x5dd8c7), _0x17fc54[_0x6d3192(530)](_0x14e3a4), _0x17fc54[_0x6d3192(529)](_0x1e8916);
19742
19772
  };
19743
- }, initWebClientHandler = (_0x1021ce, _0x537c48, _0x148577) => {
19744
- const _0x4cfaab = _0x2455, _0xdc7a4f = _0x2455, _0x1ad789 = { "oHJBZ": function(_0xc7b5ca, _0x37f00d) {
19745
- return _0xc7b5ca instanceof _0x37f00d;
19746
- }, "THMqs": _0x4cfaab(192), "Ukaqt": function(_0x17e8fe, _0x5dd700, _0x1ec981) {
19747
- return _0x17e8fe(_0x5dd700, _0x1ec981);
19748
- }, "pgcGT": function(_0x38e146, _0x146fbc, _0x358655) {
19749
- return _0x38e146(_0x146fbc, _0x358655);
19750
- } }, _0x2fd597 = () => {
19773
+ }, initWebClientHandler = (_0xbd06f8, _0x419735, _0x5699a0) => {
19774
+ const _0xec4f52 = _0x47a7, _0x441bc3 = { "pMiva": function(_0x356e75, _0x48efdd) {
19775
+ return _0x356e75 instanceof _0x48efdd;
19776
+ }, "TeTEy": _0xec4f52(546), "fyZbd": function(_0x156fdc, _0x32271d, _0x563255) {
19777
+ return _0x156fdc(_0x32271d, _0x563255);
19778
+ } }, _0x56df6e = () => {
19751
19779
  var _a16;
19752
- const _0x4878a9 = _0x4cfaab, _0x61cdf6 = _0x4cfaab;
19753
- _0x1ad789[_0x4878a9(173)](_0x148577, SSEClientTransport) && ((_a16 = _0x148577[_0x61cdf6(208)]) == null ? void 0 : _a16["addEventListener"](_0x1ad789["THMqs"], () => {
19780
+ const _0x42afa2 = _0xec4f52;
19781
+ _0x441bc3["pMiva"](_0x5699a0, SSEClientTransport) && ((_a16 = _0x5699a0["_eventSource"]) == null ? void 0 : _a16["addEventListener"](_0x441bc3[_0x42afa2(547)], () => {
19754
19782
  var _a22;
19755
- const _0x3cc288 = _0x4878a9;
19756
- (_a22 = _0x148577["_eventSource"]) == null ? void 0 : _a22[_0x3cc288(192)]();
19757
- })), _0x1ad789["Ukaqt"](forwardProxyClient, _0x1021ce, _0x537c48);
19758
- }, _0x39cab0 = {};
19759
- _0x39cab0[_0xdc7a4f(186)] = _0x2fd597, _0x1ad789["pgcGT"](initClientHandler, _0x537c48, _0x39cab0);
19760
- };
19761
- const sseOptions = (_0x3628c5, _0x176a7b = _0x21d13c[_0x5181bd(191)]()) => {
19762
- const _0x4e52d2 = _0x5181bd, _0x21e38f = _0x5181bd, _0x5f49dd = { "sFqUo": function(_0x1e4333, _0x15e65c, _0x580a24) {
19763
- return _0x1e4333(_0x15e65c, _0x580a24);
19764
- }, "KmDTz": _0x4e52d2(184) }, _0x5ac5eb = {};
19765
- _0x5ac5eb[_0x21e38f(212)] = _0x176a7b;
19766
- const _0x1743fe = _0x5ac5eb, _0x167054 = {};
19767
- _0x167054["sse-session-id"] = _0x176a7b;
19768
- const _0x2717d8 = {};
19769
- _0x2717d8[_0x21e38f(195)] = _0x167054, _0x2717d8[_0x4e52d2(175)] = _0x5f49dd[_0x4e52d2(172)];
19770
- const _0x317090 = { "requestInit": _0x2717d8, "eventSourceInit": { async "fetch"(_0x5b3434, _0x5bbfcc) {
19771
- const _0x25bd7c = _0x4e52d2, _0x21ec43 = new Headers((_0x5bbfcc == null ? void 0 : _0x5bbfcc["headers"]) || {});
19772
- Object[_0x25bd7c(187)](_0x1743fe)["forEach"](([_0x2d3ef9, _0x22f4ea]) => {
19773
- const _0x53c53e = _0x25bd7c;
19774
- _0x21ec43[_0x53c53e(178)](_0x2d3ef9, _0x22f4ea);
19775
- });
19776
- const _0x20f570 = { ..._0x5bbfcc };
19777
- return _0x20f570["headers"] = _0x21ec43, _0x5f49dd["sFqUo"](fetch, _0x5b3434, _0x20f570);
19783
+ const _0xd16fcf = _0x42afa2;
19784
+ (_a22 = _0x5699a0[_0xd16fcf(509)]) == null ? void 0 : _a22[_0xd16fcf(546)]();
19785
+ })), forwardProxyClient(_0xbd06f8, _0x419735);
19786
+ }, _0x56311c = {};
19787
+ _0x56311c["afterInit"] = _0x56df6e, _0x441bc3["fyZbd"](initClientHandler, _0x419735, _0x56311c);
19788
+ };
19789
+ const sseOptions = (_0x4b6179, _0x453b8b = _0xf24c8f["randomUUID"]()) => {
19790
+ const _0x43bcb2 = _0x47a7, _0x1925d6 = _0x47a7, _0x180741 = { "OfssH": function(_0x2d9225, _0x537283, _0x2820a8) {
19791
+ return _0x2d9225(_0x537283, _0x2820a8);
19792
+ } }, _0x3c78b4 = {};
19793
+ _0x3c78b4[_0x43bcb2(528)] = _0x453b8b;
19794
+ const _0xb9b933 = _0x3c78b4, _0x5263fd = {};
19795
+ _0x5263fd[_0x43bcb2(528)] = _0x453b8b;
19796
+ const _0x22a05a = {};
19797
+ _0x22a05a[_0x1925d6(558)] = _0x5263fd, _0x22a05a[_0x43bcb2(534)] = _0x43bcb2(524);
19798
+ const _0x27d38e = { "requestInit": _0x22a05a, "eventSourceInit": { async "fetch"(_0x11e1af, _0x36682f) {
19799
+ const _0x3e06e7 = _0x43bcb2, _0x4202d7 = _0x1925d6, _0x54dc09 = new Headers((_0x36682f == null ? void 0 : _0x36682f[_0x3e06e7(558)]) || {});
19800
+ Object["entries"](_0xb9b933)[_0x4202d7(498)](([_0x57dbc7, _0x5102e6]) => {
19801
+ const _0xef4bbf = _0x4202d7;
19802
+ _0x54dc09[_0xef4bbf(527)](_0x57dbc7, _0x5102e6);
19803
+ });
19804
+ const _0x3f3a97 = { ..._0x36682f };
19805
+ return _0x3f3a97[_0x4202d7(558)] = _0x54dc09, _0x180741["OfssH"](fetch, _0x11e1af, _0x3f3a97);
19778
19806
  }, "withCredentials": !![] } };
19779
- return _0x3628c5 && (_0x317090[_0x21e38f(193)][_0x4e52d2(195)]["Authorization"] = "Bearer " + _0x3628c5, _0x1743fe["Authorization"] = "Bearer " + _0x3628c5), _0x317090;
19780
- };
19781
- const streamOptions = (_0x4fd536, _0x280c76 = _0x21d13c[_0x44e3b0(191)]()) => {
19782
- const _0x418fe0 = _0x44e3b0, _0x37ceee = _0x5181bd, _0x15d904 = {};
19783
- _0x15d904["stream-session-id"] = _0x280c76;
19784
- const _0x3b030a = {};
19785
- _0x3b030a["headers"] = _0x15d904, _0x3b030a[_0x418fe0(175)] = _0x418fe0(184);
19786
- const _0x1c73aa = {};
19787
- _0x1c73aa[_0x37ceee(193)] = _0x3b030a;
19788
- const _0x231a86 = _0x1c73aa;
19789
- return _0x4fd536 && (_0x231a86["requestInit"][_0x418fe0(195)][_0x418fe0(185)] = "Bearer " + _0x4fd536), _0x231a86;
19790
- };
19791
- function _0x2455(_0x52e462, _0x190708) {
19792
- const _0x206c69 = _0x39ad();
19793
- return _0x2455 = function(_0x5e3cb9, _0x1dfbb4) {
19794
- _0x5e3cb9 = _0x5e3cb9 - (-1 * -8402 + -921 * -6 + 13759 * -1);
19795
- let _0x1f49c1 = _0x206c69[_0x5e3cb9];
19796
- return _0x1f49c1;
19797
- }, _0x2455(_0x52e462, _0x190708);
19798
- }
19799
- const attemptConnection = async (_0x32f731, _0x5e9e4e, _0x4e9a1b) => {
19800
- const _0x1bae7c = _0x44e3b0, _0x368537 = { "YdzuA": function(_0x4c5710, _0x43b589) {
19801
- return _0x4c5710 instanceof _0x43b589;
19802
- }, "uzBvt": function(_0x10f3b8) {
19803
- return _0x10f3b8();
19804
- }, "alwWV": function(_0x290efa, _0x4645a0, _0x93b3c8, _0xf9d50a) {
19805
- return _0x290efa(_0x4645a0, _0x93b3c8, _0xf9d50a);
19806
- } }, _0xa6ab11 = _0x4e9a1b();
19807
+ return _0x4b6179 && (_0x27d38e["requestInit"][_0x43bcb2(558)]["Authorization"] = _0x43bcb2(533) + _0x4b6179, _0xb9b933["Authorization"] = "Bearer " + _0x4b6179), _0x27d38e;
19808
+ };
19809
+ const streamOptions = (_0x3c6aa5, _0x4108dd = _0xf24c8f[_0x4b5fcc(517)]()) => {
19810
+ const _0x22b3a4 = _0x4b5fcc, _0x471b62 = _0x4b5fcc, _0x10d4da = {};
19811
+ _0x10d4da["nwQhY"] = "include";
19812
+ const _0x36c773 = _0x10d4da, _0x4a8f59 = {};
19813
+ _0x4a8f59["stream-session-id"] = _0x4108dd;
19814
+ const _0x287e71 = {};
19815
+ _0x287e71["headers"] = _0x4a8f59, _0x287e71["credentials"] = _0x36c773[_0x22b3a4(520)];
19816
+ const _0x607b16 = {};
19817
+ _0x607b16[_0x22b3a4(544)] = _0x287e71;
19818
+ const _0x1bc4b2 = _0x607b16;
19819
+ return _0x3c6aa5 && (_0x1bc4b2["requestInit"]["headers"][_0x471b62(552)] = _0x471b62(533) + _0x3c6aa5), _0x1bc4b2;
19820
+ };
19821
+ const attemptConnection = async (_0x392cef, _0x4e2254, _0x7e37a) => {
19822
+ const _0x499695 = _0x4b5fcc, _0x960d30 = _0x4b5fcc, _0x2e99f7 = { "CFfFC": function(_0x2880a3) {
19823
+ return _0x2880a3();
19824
+ }, "egwVO": function(_0x459eeb, _0x1ba5f4, _0xa79e2d, _0x34b1c9) {
19825
+ return _0x459eeb(_0x1ba5f4, _0xa79e2d, _0x34b1c9);
19826
+ } }, _0x3109d4 = _0x2e99f7["CFfFC"](_0x7e37a);
19807
19827
  try {
19808
- return await _0x32f731["connect"](_0xa6ab11), _0xa6ab11;
19809
- } catch (_0x55f0f3) {
19810
- if (_0x368537["YdzuA"](_0x55f0f3, UnauthorizedError)) {
19811
- const _0x7eda02 = await _0x368537["uzBvt"](_0x5e9e4e);
19812
- return await _0xa6ab11["finishAuth"](_0x7eda02), await _0x368537[_0x1bae7c(214)](attemptConnection, _0x32f731, _0x5e9e4e, _0x4e9a1b);
19813
- } else throw _0x55f0f3;
19814
- }
19815
- };
19816
- const getWaitForOAuthCodeFunction = (_0x2a1120, _0x54c9d8) => {
19817
- const _0x1e5a53 = _0x44e3b0, _0x5b5321 = _0x44e3b0, _0x21019f = {};
19818
- _0x21019f[_0x1e5a53(199)] = "waitForOAuthCode", _0x21019f[_0x1e5a53(183)] = function(_0x5e2b05, _0x917b1d) {
19819
- return _0x5e2b05 === _0x917b1d;
19820
- }, _0x21019f[_0x5b5321(207)] = _0x1e5a53(216);
19821
- const _0x253c39 = _0x21019f;
19822
- if (_0x253c39["wZCHj"] in _0x2a1120) return _0x2a1120["waitForOAuthCode"];
19828
+ return await _0x392cef[_0x499695(538)](_0x3109d4), _0x3109d4;
19829
+ } catch (_0x2e4c22) {
19830
+ if (_0x2e4c22 instanceof UnauthorizedError) {
19831
+ const _0x1a7050 = await _0x4e2254();
19832
+ return await _0x3109d4[_0x960d30(505)](_0x1a7050), await _0x2e99f7[_0x499695(525)](attemptConnection, _0x392cef, _0x4e2254, _0x7e37a);
19833
+ } else throw _0x2e4c22;
19834
+ }
19835
+ };
19836
+ function _0x47a7(_0x31715f, _0x5e9fa0) {
19837
+ const _0x26a018 = _0x4529();
19838
+ return _0x47a7 = function(_0x257357, _0x2e760b) {
19839
+ _0x257357 = _0x257357 - (74 * -67 + -8341 + -73 * -189);
19840
+ let _0x1334e3 = _0x26a018[_0x257357];
19841
+ return _0x1334e3;
19842
+ }, _0x47a7(_0x31715f, _0x5e9fa0);
19843
+ }
19844
+ const getWaitForOAuthCodeFunction = (_0x3ea3cc, _0x1a8f90) => {
19845
+ const _0xae6017 = _0x4b5fcc, _0x3dddee = _0x4b5fcc, _0x11d77d = {};
19846
+ _0x11d77d["RsKXs"] = function(_0x35f130, _0x386a12) {
19847
+ return _0x35f130 in _0x386a12;
19848
+ }, _0x11d77d["PBhps"] = "waitForOAuthCode", _0x11d77d[_0xae6017(535)] = "function", _0x11d77d[_0xae6017(507)] = "waitForOAuthCode need to be provided when authProvider is provided";
19849
+ const _0x2562e6 = _0x11d77d;
19850
+ if (_0x2562e6["RsKXs"](_0x2562e6[_0x3dddee(551)], _0x3ea3cc)) return _0x3ea3cc[_0x3dddee(523)];
19823
19851
  else {
19824
- if (_0x253c39["KaUfV"](typeof _0x54c9d8, _0x253c39[_0x1e5a53(207)])) return _0x54c9d8;
19825
- }
19826
- throw new Error("waitForOAuthCode need to be provided when authProvider is provided");
19827
- };
19828
- const createSseProxy = async (_0x20bfd9) => {
19829
- const _0x8447a7 = _0x44e3b0, _0x271423 = _0x44e3b0, _0x1df7c9 = { "rasho": _0x8447a7(197), "rmzgk": _0x271423(169), "JPlVw": function(_0x2a86c2) {
19830
- return _0x2a86c2();
19831
- }, "TIBus": function(_0x447c74, _0x3c48c0, _0x5ba666) {
19832
- return _0x447c74(_0x3c48c0, _0x5ba666);
19833
- }, "JyYqS": function(_0x7aa6bf, _0x5cf979, _0x426a27, _0x2bdc00) {
19834
- return _0x7aa6bf(_0x5cf979, _0x426a27, _0x2bdc00);
19835
- }, "ywGtJ": function(_0x103067, _0x36ba5b, _0x3d440b, _0x18b37b) {
19836
- return _0x103067(_0x36ba5b, _0x3d440b, _0x18b37b);
19837
- } }, { client: _0x4ff59c, url: _0x1c3367, token: _0x443c53, sessionId: _0x1de49b, authProvider: _0x31c980, requestInit: _0x3bcbbf, eventSourceInit: _0x274a29, waitForOAuthCode: _0x7598a4 } = _0x20bfd9, _0x2433a9 = {};
19838
- _0x2433a9[_0x8447a7(219)] = _0x31c980, _0x2433a9[_0x8447a7(193)] = _0x3bcbbf, _0x2433a9["eventSourceInit"] = _0x274a29;
19839
- const _0x2f7abe = _0x2433a9, _0x511c17 = _0x1de49b || _0x21d13c[_0x271423(191)](), _0x184c22 = sseOptions(_0x443c53, _0x511c17);
19840
- if (_0x3bcbbf) {
19841
- const _0x56d977 = { ..._0x184c22["requestInit"], ..._0x3bcbbf };
19842
- _0x56d977["headers"] = { ..._0x184c22[_0x271423(193)][_0x271423(195)], ..._0x3bcbbf[_0x8447a7(195)] }, _0x2f7abe[_0x271423(193)] = _0x56d977;
19843
- } else _0x2f7abe[_0x8447a7(193)] = _0x184c22[_0x271423(193)];
19844
- if (_0x274a29) {
19845
- const _0x11f204 = { ..._0x184c22["eventSourceInit"], ..._0x274a29 };
19846
- _0x2f7abe[_0x8447a7(209)] = _0x11f204;
19847
- } else _0x2f7abe[_0x8447a7(209)] = _0x184c22[_0x8447a7(209)];
19848
- const _0x4acb47 = {};
19849
- _0x4acb47[_0x271423(182)] = !![];
19850
- const _0x30ede7 = {};
19851
- _0x30ede7[_0x271423(200)] = _0x4acb47, _0x30ede7["sampling"] = {}, _0x30ede7["elicitation"] = {};
19852
- const _0xcb7b63 = _0x30ede7, _0x4c75bd = {};
19853
- _0x4c75bd[_0x271423(213)] = _0x1df7c9["rasho"], _0x4c75bd[_0x271423(181)] = _0x1df7c9[_0x8447a7(170)];
19854
- const _0x544889 = {};
19855
- _0x544889["capabilities"] = _0xcb7b63;
19856
- const _0x4e31b4 = new Client(_0x4c75bd, _0x544889), _0x23eff3 = () => new SSEClientTransport(new URL(_0x1c3367), _0x2f7abe);
19857
- let _0x2bb962 = _0x1df7c9[_0x8447a7(217)](_0x23eff3);
19858
- if (_0x31c980) {
19859
- const _0x48720d = _0x1df7c9[_0x271423(174)](getWaitForOAuthCodeFunction, _0x31c980, _0x7598a4);
19860
- _0x2bb962 = await _0x1df7c9["JyYqS"](attemptConnection, _0x4e31b4, _0x48720d, _0x23eff3);
19861
- } else await _0x4e31b4["connect"](_0x2bb962);
19862
- _0x1df7c9["ywGtJ"](initWebClientHandler, _0x4e31b4, _0x4ff59c, _0x2bb962), _0x2bb962[_0x8447a7(198)] = _0x2bb962["_endpoint"][_0x271423(179)]["get"]("sessionId");
19863
- const _0x292193 = {};
19864
- return _0x292193["transport"] = _0x2bb962, _0x292193[_0x8447a7(198)] = _0x2bb962[_0x271423(198)], _0x292193;
19865
- };
19866
- const createStreamProxy = async (_0xde8700) => {
19867
- const _0x298ab0 = _0x44e3b0, _0x4fbe10 = _0x5181bd, _0x38ecc6 = { "AJbbW": function(_0x41f83d, _0x2d2829, _0xec66df) {
19868
- return _0x41f83d(_0x2d2829, _0xec66df);
19869
- }, "ZXEHq": _0x298ab0(211), "aDqLK": function(_0x4b1e43) {
19870
- return _0x4b1e43();
19871
- }, "nKQkl": function(_0x284985, _0x199671, _0x2aaf0d) {
19872
- return _0x284985(_0x199671, _0x2aaf0d);
19873
- }, "xZlrW": function(_0x4f56c0, _0x53ebed, _0xeaff94, _0x4fe5f4) {
19874
- return _0x4f56c0(_0x53ebed, _0xeaff94, _0x4fe5f4);
19875
- } }, { client: _0x2604a8, url: _0x5d9538, token: _0x4dbe55, sessionId: _0x52ba1c, authProvider: _0x620d99, requestInit: _0x1d6493, reconnectionOptions: _0x1e5b5c, waitForOAuthCode: _0x59b79b } = _0xde8700, _0x4ceeb7 = {};
19876
- _0x4ceeb7["authProvider"] = _0x620d99, _0x4ceeb7["requestInit"] = _0x1d6493, _0x4ceeb7["reconnectionOptions"] = _0x1e5b5c;
19877
- const _0x368b44 = _0x4ceeb7, _0xfc2e99 = _0x52ba1c || _0x21d13c["randomUUID"](), _0x3ad814 = _0x38ecc6["AJbbW"](streamOptions, _0x4dbe55, _0xfc2e99);
19878
- if (_0x1d6493) {
19879
- const _0x411358 = { ..._0x3ad814[_0x298ab0(193)], ..._0x1d6493 };
19880
- _0x411358["headers"] = { ..._0x3ad814["requestInit"]["headers"], ..._0x1d6493[_0x4fbe10(195)] }, _0x368b44["requestInit"] = _0x411358;
19881
- } else _0x368b44[_0x298ab0(193)] = _0x3ad814[_0x298ab0(193)];
19882
- const _0x4f1da4 = {};
19883
- _0x4f1da4[_0x4fbe10(182)] = !![];
19884
- const _0x22ded7 = {};
19885
- _0x22ded7[_0x298ab0(200)] = _0x4f1da4, _0x22ded7[_0x298ab0(189)] = {}, _0x22ded7["elicitation"] = {};
19886
- const _0x14dac7 = _0x22ded7, _0xf704ba = {};
19887
- _0xf704ba[_0x298ab0(213)] = _0x38ecc6[_0x298ab0(171)], _0xf704ba["version"] = _0x298ab0(169);
19888
- const _0x9e3a75 = {};
19889
- _0x9e3a75[_0x298ab0(190)] = _0x14dac7;
19890
- const _0x45887d = new Client(_0xf704ba, _0x9e3a75), _0x4e38ac = () => new StreamableHTTPClientTransport(new URL(_0x5d9538), _0x368b44);
19891
- let _0x24fb79 = _0x38ecc6[_0x298ab0(215)](_0x4e38ac);
19892
- if (_0x620d99) {
19893
- const _0x57a819 = _0x38ecc6["nKQkl"](getWaitForOAuthCodeFunction, _0x620d99, _0x59b79b);
19894
- _0x24fb79 = await _0x38ecc6[_0x4fbe10(204)](attemptConnection, _0x45887d, _0x57a819, _0x4e38ac);
19895
- } else await _0x45887d["connect"](_0x24fb79);
19896
- initWebClientHandler(_0x45887d, _0x2604a8, _0x24fb79);
19897
- const _0x36e9b3 = {};
19898
- return _0x36e9b3[_0x4fbe10(196)] = _0x24fb79, _0x36e9b3[_0x298ab0(198)] = _0x24fb79[_0x298ab0(198)], _0x36e9b3;
19899
- };
19900
- function _0x52c8() {
19901
- const _0x2cbb12 = ["_callBackPromise", "clientMetadata", "clientInformation", "_redirectCallback", "134455mslyQC", "558338pOTNJB", "510616LiqUbS", "json", "7441KftUnn", "20YdRwwG", "POST", "code", "_getAuthCodeByState", "DjZmq", "statusText", "17336099YnGEHr", "saveCodeVerifier", "996bqURbL", "Failed to fetch auth code: ", "_clientMetadata", "saveTokens", "VGvoL", "No code verifier saved", "redirect_uris", "reject", "693422ltcndC", "Failed to redirect: ", "redirectUrl", "99IWgtlv", "6UDGeyf", "waitForOAuthCode", "codeVerifier", "waitForOAuthCodeFunction", "GET", "_codeVerifier", "_clientInformation", "resolve", "getAuthCodeByStateFunction", "_tokens", "8655150IwrNAp", "_state"];
19902
- _0x52c8 = function() {
19903
- return _0x2cbb12;
19852
+ if (typeof _0x1a8f90 === _0x2562e6["yTKoP"]) return _0x1a8f90;
19853
+ }
19854
+ throw new Error(_0x2562e6["RZhOv"]);
19855
+ };
19856
+ const createSseProxy = async (_0x3a7e67) => {
19857
+ const _0x436c50 = _0x4b5fcc, _0x54de6e = _0x4b5fcc, _0x15dc58 = { "TFSRn": function(_0x3d2e7e, _0x561712, _0x2439e9) {
19858
+ return _0x3d2e7e(_0x561712, _0x2439e9);
19859
+ }, "HwvVa": "mcp-sse-proxy-client", "ufTHS": function(_0x14fa54) {
19860
+ return _0x14fa54();
19861
+ }, "WIVYl": function(_0x538291, _0x3c8264, _0x52c29b, _0x1d8414) {
19862
+ return _0x538291(_0x3c8264, _0x52c29b, _0x1d8414);
19863
+ }, "jniGY": "sessionId" }, { client: _0x25d054, url: _0x2828f0, token: _0x367a86, sessionId: _0x397571, authProvider: _0x16a780, requestInit: _0xd2fc7a, eventSourceInit: _0x3321f4, waitForOAuthCode: _0xe2483b } = _0x3a7e67, _0x507895 = {};
19864
+ _0x507895["authProvider"] = _0x16a780, _0x507895["requestInit"] = _0xd2fc7a, _0x507895["eventSourceInit"] = _0x3321f4;
19865
+ const _0x497c77 = _0x507895, _0x1a290e = _0x397571 || _0xf24c8f["randomUUID"](), _0x3d01da = _0x15dc58[_0x436c50(506)](sseOptions, _0x367a86, _0x1a290e);
19866
+ if (_0xd2fc7a) {
19867
+ const _0x6e0637 = { ..._0x3d01da["requestInit"], ..._0xd2fc7a };
19868
+ _0x6e0637["headers"] = { ..._0x3d01da[_0x436c50(544)]["headers"], ..._0xd2fc7a["headers"] }, _0x497c77["requestInit"] = _0x6e0637;
19869
+ } else _0x497c77[_0x54de6e(544)] = _0x3d01da["requestInit"];
19870
+ if (_0x3321f4) {
19871
+ const _0x143351 = { ..._0x3d01da[_0x436c50(559)], ..._0x3321f4 };
19872
+ _0x497c77["eventSourceInit"] = _0x143351;
19873
+ } else _0x497c77["eventSourceInit"] = _0x3d01da["eventSourceInit"];
19874
+ const _0x4d6715 = {};
19875
+ _0x4d6715["listChanged"] = !![];
19876
+ const _0x6e6fc2 = {};
19877
+ _0x6e6fc2["roots"] = _0x4d6715, _0x6e6fc2["sampling"] = {}, _0x6e6fc2[_0x436c50(511)] = {};
19878
+ const _0x4ab62c = _0x6e6fc2, _0x278492 = {};
19879
+ _0x278492[_0x54de6e(536)] = _0x15dc58["HwvVa"], _0x278492["version"] = _0x436c50(526);
19880
+ const _0x53bd61 = {};
19881
+ _0x53bd61["capabilities"] = _0x4ab62c;
19882
+ const _0x4512ab = new Client(_0x278492, _0x53bd61), _0x2362cc = () => new SSEClientTransport(new URL(_0x2828f0), _0x497c77);
19883
+ let _0x5a6b4b = _0x15dc58[_0x54de6e(504)](_0x2362cc);
19884
+ if (_0x16a780) {
19885
+ const _0xffec8d = _0x15dc58[_0x436c50(506)](getWaitForOAuthCodeFunction, _0x16a780, _0xe2483b);
19886
+ _0x5a6b4b = await _0x15dc58[_0x54de6e(513)](attemptConnection, _0x4512ab, _0xffec8d, _0x2362cc);
19887
+ } else await _0x4512ab[_0x436c50(538)](_0x5a6b4b);
19888
+ _0x15dc58[_0x54de6e(513)](initWebClientHandler, _0x4512ab, _0x25d054, _0x5a6b4b), _0x5a6b4b[_0x54de6e(557)] = _0x5a6b4b[_0x54de6e(542)]["searchParams"][_0x54de6e(532)](_0x15dc58["jniGY"]);
19889
+ const _0x5ba2fa = {};
19890
+ return _0x5ba2fa["transport"] = _0x5a6b4b, _0x5ba2fa["sessionId"] = _0x5a6b4b[_0x436c50(557)], _0x5ba2fa;
19891
+ };
19892
+ function _0x4529() {
19893
+ const _0x51eb5a = ["ufTHS", "finishAuth", "TFSRn", "RZhOv", "Vajmx", "_eventSource", "FyYHt", "elicitation", "transport", "WIVYl", "13320uyrBtN", "sampling", "8WTwLJD", "randomUUID", "6438654bkJHij", "addResponseListener", "nwQhY", "11721GVgRMJ", "?sessionId=", "waitForOAuthCode", "include", "egwVO", "1.0.0", "set", "sse-session-id", "removeNotificationListener", "removeResponseListener", "11838520fNkjrV", "get", "Bearer ", "credentials", "yTKoP", "name", "addRequestListener", "connect", "18VhCgQv", "mcp-socket-proxy-client", "2819364JNqkQZ", "_endpoint", "699JyrxCR", "requestInit", "44ofbsvb", "close", "TeTEy", "QgzDy", "Fxtoq", "roots", "PBhps", "Authorization", "11309130xGCFwl", "&token=", "version", "onclose", "sessionId", "headers", "eventSourceInit", "forEach", "62FcOkCa", "mcp-stream-proxy-client", "zXcpO", "1794855cQEXDT", "biJOc"];
19894
+ _0x4529 = function() {
19895
+ return _0x51eb5a;
19904
19896
  };
19905
- return _0x52c8();
19906
- }
19907
- const _0x328641 = _0x1f0f, _0x5005ed = _0x1f0f;
19908
- (function(_0x3a2868, _0x26465e) {
19909
- const _0x472553 = _0x1f0f, _0x4eafdf = _0x1f0f, _0x23e3e3 = _0x3a2868();
19897
+ return _0x4529();
19898
+ }
19899
+ const createStreamProxy = async (_0x251f90) => {
19900
+ const _0x12bb64 = _0x4b5fcc, _0x15c0a5 = _0x4b5fcc, _0x4250bb = { "Vajmx": _0x12bb64(500), "biJOc": function(_0x5b7586) {
19901
+ return _0x5b7586();
19902
+ }, "zXcpO": function(_0x51be96, _0x1bc1c4, _0x15398b) {
19903
+ return _0x51be96(_0x1bc1c4, _0x15398b);
19904
+ }, "zDnjZ": function(_0x5c8088, _0x59eeb2, _0x1f72fa, _0x3031b6) {
19905
+ return _0x5c8088(_0x59eeb2, _0x1f72fa, _0x3031b6);
19906
+ }, "FQMAh": function(_0x43d649, _0x7358f7, _0x26214b, _0x209c8f) {
19907
+ return _0x43d649(_0x7358f7, _0x26214b, _0x209c8f);
19908
+ } }, { client: _0x2334f3, url: _0x20f945, token: _0x48014b, sessionId: _0x46b665, authProvider: _0x20e29a, requestInit: _0x171024, reconnectionOptions: _0x3cef76, waitForOAuthCode: _0x487335 } = _0x251f90, _0x5aeb10 = {};
19909
+ _0x5aeb10["authProvider"] = _0x20e29a, _0x5aeb10["requestInit"] = _0x171024, _0x5aeb10["reconnectionOptions"] = _0x3cef76;
19910
+ const _0x4e9a89 = _0x5aeb10, _0x49384b = _0x46b665 || _0xf24c8f["randomUUID"](), _0x24b3ae = streamOptions(_0x48014b, _0x49384b);
19911
+ if (_0x171024) {
19912
+ const _0x15a268 = { ..._0x24b3ae["requestInit"], ..._0x171024 };
19913
+ _0x15a268["headers"] = { ..._0x24b3ae["requestInit"]["headers"], ..._0x171024["headers"] }, _0x4e9a89[_0x12bb64(544)] = _0x15a268;
19914
+ } else _0x4e9a89["requestInit"] = _0x24b3ae["requestInit"];
19915
+ const _0x485d9e = {};
19916
+ _0x485d9e["listChanged"] = !![];
19917
+ const _0x17fa21 = {};
19918
+ _0x17fa21[_0x15c0a5(550)] = _0x485d9e, _0x17fa21["sampling"] = {}, _0x17fa21["elicitation"] = {};
19919
+ const _0x1f04a3 = _0x17fa21, _0x1e85db = {};
19920
+ _0x1e85db[_0x12bb64(536)] = _0x4250bb[_0x15c0a5(508)], _0x1e85db[_0x12bb64(555)] = "1.0.0";
19921
+ const _0x2d6e84 = {};
19922
+ _0x2d6e84["capabilities"] = _0x1f04a3;
19923
+ const _0x40e04e = new Client(_0x1e85db, _0x2d6e84), _0x4e1361 = () => new StreamableHTTPClientTransport(new URL(_0x20f945), _0x4e9a89);
19924
+ let _0x5ae9aa = _0x4250bb[_0x12bb64(503)](_0x4e1361);
19925
+ if (_0x20e29a) {
19926
+ const _0x3d746a = _0x4250bb[_0x12bb64(501)](getWaitForOAuthCodeFunction, _0x20e29a, _0x487335);
19927
+ _0x5ae9aa = await _0x4250bb["zDnjZ"](attemptConnection, _0x40e04e, _0x3d746a, _0x4e1361);
19928
+ } else await _0x40e04e["connect"](_0x5ae9aa);
19929
+ _0x4250bb["FQMAh"](initWebClientHandler, _0x40e04e, _0x2334f3, _0x5ae9aa);
19930
+ const _0x3d688a = {};
19931
+ return _0x3d688a["transport"] = _0x5ae9aa, _0x3d688a[_0x15c0a5(557)] = _0x5ae9aa["sessionId"], _0x3d688a;
19932
+ };
19933
+ const createSocketProxy = async (_0x371158) => {
19934
+ const _0x4f4147 = _0x4b5fcc, _0x45162f = _0x4b5fcc, _0x2442c1 = { "QgzDy": _0x4f4147(540), "jkaVB": function(_0x1bdb95, _0x25d320, _0x22f979, _0xb08066) {
19935
+ return _0x1bdb95(_0x25d320, _0x22f979, _0xb08066);
19936
+ } }, { client: _0x218c80, url: _0x2b1955, token: _0x1b0573, sessionId: _0xb915e1 } = _0x371158, _0x2ef92e = {};
19937
+ _0x2ef92e["listChanged"] = !![];
19938
+ const _0x296a66 = {};
19939
+ _0x296a66[_0x4f4147(550)] = _0x2ef92e, _0x296a66[_0x4f4147(515)] = {}, _0x296a66[_0x45162f(511)] = {};
19940
+ const _0x1d78ab = _0x296a66, _0x59044f = {};
19941
+ _0x59044f["name"] = _0x2442c1[_0x45162f(548)], _0x59044f[_0x45162f(555)] = _0x45162f(526);
19942
+ const _0x287996 = {};
19943
+ _0x287996["capabilities"] = _0x1d78ab;
19944
+ const _0x4907cb = new Client(_0x59044f, _0x287996), _0x4a1bd2 = _0xb915e1 || _0xf24c8f[_0x45162f(517)](), _0x530686 = new WebSocketClientTransport(new URL(_0x2b1955 + _0x4f4147(522) + _0x4a1bd2 + _0x45162f(554) + _0x1b0573));
19945
+ await _0x4907cb["connect"](_0x530686), _0x2442c1["jkaVB"](initWebClientHandler, _0x4907cb, _0x218c80, _0x530686);
19946
+ const _0x4940eb = {};
19947
+ return _0x4940eb[_0x4f4147(512)] = _0x530686, _0x4940eb[_0x45162f(557)] = _0x4a1bd2, _0x4940eb;
19948
+ };
19949
+ const _0x125317 = _0x295b, _0x5b1277 = _0x295b;
19950
+ function _0x295b(_0x143a1c, _0x560afd) {
19951
+ const _0x193076 = _0x19d4();
19952
+ return _0x295b = function(_0x3382c8, _0x453e4f) {
19953
+ _0x3382c8 = _0x3382c8 - (-7499 + -9262 + 51 * 337);
19954
+ let _0x3af06e = _0x193076[_0x3382c8];
19955
+ return _0x3af06e;
19956
+ }, _0x295b(_0x143a1c, _0x560afd);
19957
+ }
19958
+ (function(_0x1a8e04, _0x35cb37) {
19959
+ const _0x50af36 = _0x295b, _0x4734b7 = _0x295b, _0x5d6f5b = _0x1a8e04();
19910
19960
  while (!![]) {
19911
19961
  try {
19912
- const _0x453220 = parseInt(_0x472553(259)) / (6281 + 7955 + -14235) + parseInt(_0x4eafdf(239)) / (-2 * 2693 + -189 * 49 + 14649) * (-parseInt(_0x4eafdf(263)) / (2 * -3349 + -969 + 7670)) + parseInt(_0x472553(243)) / (7 * 824 + -8009 * -1 + 13773 * -1) * (parseInt(_0x4eafdf(238)) / (-1551 * 5 + 7319 + 147 * 3)) + parseInt(_0x472553(251)) / (1 * -4741 + 8893 * -1 + 13640) * (parseInt(_0x472553(242)) / (-2364 * -1 + 5 * 1873 + -1 * 11722)) + -parseInt(_0x4eafdf(240)) / (8674 + 202 * 14 + 2 * -5747) * (-parseInt(_0x472553(262)) / (3 * -1450 + -3 * -1651 + -594)) + parseInt(_0x472553(273)) / (3 * -843 + -1518 + 4057) + -parseInt(_0x4eafdf(249)) / (3091 + -1 * -8353 + 11433 * -1);
19913
- if (_0x453220 === _0x26465e) break;
19914
- else _0x23e3e3["push"](_0x23e3e3["shift"]());
19915
- } catch (_0x1a1d06) {
19916
- _0x23e3e3["push"](_0x23e3e3["shift"]());
19917
- }
19918
- }
19919
- })(_0x52c8, 682465 + -337148 + 92283);
19962
+ const _0x5d8f75 = -parseInt(_0x50af36(440)) / (-8893 + 7 * 7 + 1769 * 5) + -parseInt(_0x50af36(458)) / (-8 * 123 + -538 + 3 * 508) * (parseInt(_0x50af36(448)) / (3625 + -4072 + 450)) + -parseInt(_0x50af36(451)) / (-9016 + 6489 + 1 * 2531) * (parseInt(_0x4734b7(449)) / (-33 * 121 + 8411 + -4413)) + -parseInt(_0x4734b7(455)) / (6408 + -4012 + -2390) + -parseInt(_0x50af36(427)) / (131 * -55 + -1 * 7666 + 14878) + -parseInt(_0x4734b7(438)) / (-4080 + -3534 * -2 + -2980) * (parseInt(_0x4734b7(459)) / (2556 + -8604 + -673 * -9)) + parseInt(_0x50af36(430)) / (-1010 + -3818 + 2419 * 2) * (parseInt(_0x4734b7(436)) / (-27 * -343 + -922 + 694 * -12));
19963
+ if (_0x5d8f75 === _0x35cb37) break;
19964
+ else _0x5d6f5b["push"](_0x5d6f5b["shift"]());
19965
+ } catch (_0x19fe41) {
19966
+ _0x5d6f5b["push"](_0x5d6f5b["shift"]());
19967
+ }
19968
+ }
19969
+ })(_0x19d4, -220880 + 1 * -333337 + -2 * -384996);
19970
+ function _0x19d4() {
19971
+ const _0x276461 = ["650XPHLhD", "redirectToAuthorization", "10856jPvMVb", "GET", "qcFPW", "_redirectUrl", "2187414WnlGuZ", "resolve", "tokens", "3976YyOqUl", "27ejNHsa", "Content-Type", "waitForOAuthCode", "2903796yvWZFa", "_clientMetadata", "application/x-www-form-urlencoded", "10beEWJk", "json", "code", "_callBackPromise", "reject", "saveClientInformation", "20776349mLNCcF", "_codeVerifier", "629912aTknXq", "_tokens", "52074GwcpRo", "state", "_state", "_redirectCallback", "_clientInformation", "redirect_uris", "Failed to redirect: ", "clientInformation", "381aduWsB"];
19972
+ _0x19d4 = function() {
19973
+ return _0x276461;
19974
+ };
19975
+ return _0x19d4();
19976
+ }
19920
19977
  const generateStateFunction = () => {
19921
- return _0x21d13c["randomBytes"](8128 + 115 * -5 + -7513);
19978
+ return _0xf24c8f["randomBytes"](3485 * 1 + -261 + -3184);
19922
19979
  };
19923
- function _0x1f0f(_0x774086, _0x542b40) {
19924
- const _0xcf07f8 = _0x52c8();
19925
- return _0x1f0f = function(_0x1c0625, _0x3db260) {
19926
- _0x1c0625 = _0x1c0625 - (-1 * 2069 + 9 * 832 + 54 * -96);
19927
- let _0x1710a8 = _0xcf07f8[_0x1c0625];
19928
- return _0x1710a8;
19929
- }, _0x1f0f(_0x774086, _0x542b40);
19930
- }
19931
19980
  class AuthClientProvider {
19932
- constructor(_0x5f4e1b) {
19933
- const _0x3b451a = _0x1f0f, _0x3f9755 = _0x1f0f;
19934
- this[_0x3b451a(275)] = {};
19935
- const { clientMetadata: _0x34b4f5, state: _0x1f4aa4, redirectCallback: _0x2a5537, getAuthCodeByState: _0x41a71b, waitForOAuthCode: _0xd3f214 } = _0x5f4e1b;
19936
- this[_0x3f9755(253)] = _0x34b4f5, this["_redirectUrl"] = _0x34b4f5[_0x3b451a(257)][-9616 + -4068 * -1 + 5548], this["_state"] = _0x1f4aa4 || generateStateFunction(), this[_0x3f9755(237)] = _0x2a5537 || this["redirectCallbackFunction"], this[_0x3f9755(246)] = _0x41a71b || this[_0x3b451a(271)], this[_0x3b451a(264)] = _0xd3f214 || this[_0x3f9755(266)]();
19981
+ constructor(_0x3ecaba) {
19982
+ const _0x16d744 = _0x295b, _0x573fab = _0x295b;
19983
+ this["_callBackPromise"] = {};
19984
+ const { clientMetadata: _0x2075ee, state: _0x492c9e, redirectCallback: _0x418b2e, getAuthCodeByState: _0x5a6f80, waitForOAuthCode: _0x50de46 } = _0x3ecaba;
19985
+ this[_0x16d744(428)] = _0x2075ee, this[_0x16d744(454)] = _0x2075ee[_0x16d744(445)][-186 + -7549 + 7735], this["_state"] = _0x492c9e || generateStateFunction(), this["_redirectCallback"] = _0x418b2e || this["redirectCallbackFunction"], this["_getAuthCodeByState"] = _0x5a6f80 || this["getAuthCodeByStateFunction"], this[_0x573fab(426)] = _0x50de46 || this["waitForOAuthCodeFunction"]();
19937
19986
  }
19938
- async ["redirectCallbackFunction"](_0x104eb2) {
19987
+ async ["redirectCallbackFunction"](_0x182039) {
19939
19988
  var _a16, _b8, _c, _d, _e, _f;
19940
- const _0x1758b1 = _0x1f0f, _0x33db4e = _0x1f0f, _0x3d00da = {};
19941
- _0x3d00da["TspJZ"] = _0x1758b1(267);
19942
- const _0x4c49ed = _0x3d00da, _0x559f30 = {};
19943
- _0x559f30["method"] = _0x4c49ed["TspJZ"];
19944
- const _0x1c1389 = await fetch(_0x104eb2, _0x559f30);
19945
- !_0x1c1389["ok"] && ((_b8 = (_a16 = this["_callBackPromise"])["reject"]) == null ? void 0 : _b8.call(_a16, _0x1758b1(260) + _0x1c1389["statusText"]));
19946
- const _0x349519 = await this[_0x33db4e(246)](this["_redirectUrl"], this[_0x33db4e(274)]);
19947
- if (!_0x349519["ok"]) {
19948
- (_d = (_c = this[_0x33db4e(275)])[_0x33db4e(258)]) == null ? void 0 : _d.call(_c, _0x33db4e(252) + _0x349519[_0x33db4e(248)]);
19989
+ const _0x2d7e3c = _0x295b, _0x2a3a87 = _0x295b, _0x3c788d = { "qITTp": function(_0x20812e, _0x1b0a26, _0x3458a1) {
19990
+ return _0x20812e(_0x1b0a26, _0x3458a1);
19991
+ }, "qcFPW": _0x2d7e3c(452) }, _0x2eeda1 = await _0x3c788d["qITTp"](fetch, _0x182039, { "method": _0x3c788d[_0x2d7e3c(453)] });
19992
+ !_0x2eeda1["ok"] && ((_b8 = (_a16 = this["_callBackPromise"])["reject"]) == null ? void 0 : _b8.call(_a16, _0x2a3a87(446) + _0x2eeda1["statusText"]));
19993
+ const _0x4cf1ec = await this["_getAuthCodeByState"](this[_0x2a3a87(454)], this[_0x2d7e3c(442)]);
19994
+ if (!_0x4cf1ec["ok"]) {
19995
+ (_d = (_c = this[_0x2d7e3c(433)])["reject"]) == null ? void 0 : _d.call(_c, "Failed to fetch auth code: " + _0x4cf1ec["statusText"]);
19949
19996
  return;
19950
19997
  }
19951
- const _0x3b8750 = await _0x349519[_0x1758b1(241)]();
19952
- (_f = (_e = this[_0x1758b1(275)])[_0x33db4e(270)]) == null ? void 0 : _f.call(_e, _0x3b8750[_0x33db4e(245)]);
19998
+ const _0x37d882 = await _0x4cf1ec[_0x2d7e3c(431)]();
19999
+ (_f = (_e = this[_0x2a3a87(433)])[_0x2d7e3c(456)]) == null ? void 0 : _f.call(_e, _0x37d882[_0x2d7e3c(432)]);
19953
20000
  }
19954
- async ["getAuthCodeByStateFunction"](_0xe004dc, _0x5b462b) {
19955
- const _0x3bbd61 = _0x1f0f, _0x48cfdd = _0x1f0f, _0x647b8e = { "DjZmq": function(_0x84cc3d, _0x43527b, _0x2dbf10) {
19956
- return _0x84cc3d(_0x43527b, _0x2dbf10);
19957
- }, "WUtMg": "application/x-www-form-urlencoded" }, _0x357d4b = {};
19958
- return _0x357d4b["state"] = _0x5b462b, _0x647b8e[_0x3bbd61(247)](fetch, _0xe004dc, { "method": _0x48cfdd(244), "headers": { "Content-Type": _0x647b8e["WUtMg"] }, "body": new URLSearchParams(_0x357d4b) });
20001
+ async ["getAuthCodeByStateFunction"](_0x17f993, _0x1a4325) {
20002
+ const _0x3626c4 = _0x295b, _0x5612c4 = _0x295b, _0xc6e3ca = {};
20003
+ _0xc6e3ca["tuSmb"] = _0x3626c4(429);
20004
+ const _0x28efc2 = _0xc6e3ca, _0x383513 = {};
20005
+ _0x383513[_0x3626c4(460)] = _0x28efc2["tuSmb"];
20006
+ const _0x9e72f2 = {};
20007
+ return _0x9e72f2[_0x5612c4(441)] = _0x1a4325, fetch(_0x17f993, { "method": "POST", "headers": _0x383513, "body": new URLSearchParams(_0x9e72f2) });
19959
20008
  }
19960
20009
  ["waitForOAuthCodeFunction"]() {
19961
- const _0x2f1fa1 = this["_callBackPromise"];
19962
- return () => new Promise((_0x412b58, _0x58a6fc) => {
19963
- const _0x4a13e5 = _0x1f0f;
19964
- _0x2f1fa1["resolve"] = _0x412b58, _0x2f1fa1[_0x4a13e5(258)] = _0x58a6fc;
20010
+ const _0xa710fb = _0x295b, _0x511b52 = this[_0xa710fb(433)];
20011
+ return () => new Promise((_0x1edebd, _0x1825a2) => {
20012
+ const _0x268a86 = _0xa710fb;
20013
+ _0x511b52["resolve"] = _0x1edebd, _0x511b52[_0x268a86(434)] = _0x1825a2;
19965
20014
  });
19966
20015
  }
19967
- get [_0x328641(261)]() {
19968
- return this["_redirectUrl"];
20016
+ get ["redirectUrl"]() {
20017
+ const _0x4af006 = _0x295b;
20018
+ return this[_0x4af006(454)];
19969
20019
  }
19970
- get [_0x5005ed(235)]() {
20020
+ get ["clientMetadata"]() {
19971
20021
  return this["_clientMetadata"];
19972
20022
  }
19973
20023
  ["state"]() {
19974
- const _0x54c930 = _0x328641;
19975
- return this[_0x54c930(274)];
20024
+ return this["_state"];
19976
20025
  }
19977
- [_0x328641(236)]() {
19978
- return this["_clientInformation"];
20026
+ [_0x125317(447)]() {
20027
+ const _0x403dc5 = _0x125317;
20028
+ return this[_0x403dc5(444)];
19979
20029
  }
19980
- ["saveClientInformation"](_0xed715b) {
19981
- const _0x74ab01 = _0x5005ed;
19982
- this[_0x74ab01(269)] = _0xed715b;
20030
+ [_0x5b1277(435)](_0x48ae19) {
20031
+ const _0x2f8a8e = _0x125317;
20032
+ this[_0x2f8a8e(444)] = _0x48ae19;
19983
20033
  }
19984
- ["tokens"]() {
19985
- return this["_tokens"];
20034
+ [_0x5b1277(457)]() {
20035
+ const _0x4f9f20 = _0x5b1277;
20036
+ return this[_0x4f9f20(439)];
19986
20037
  }
19987
- [_0x5005ed(254)](_0x2c82da) {
19988
- const _0x5817ee = _0x328641;
19989
- this[_0x5817ee(272)] = _0x2c82da;
20038
+ ["saveTokens"](_0x23e270) {
20039
+ this["_tokens"] = _0x23e270;
19990
20040
  }
19991
- ["redirectToAuthorization"](_0x1109cf) {
19992
- const _0x29dfa6 = _0x328641;
19993
- this[_0x29dfa6(237)](_0x1109cf);
20041
+ [_0x5b1277(450)](_0x3b8777) {
20042
+ const _0x43d6aa = _0x125317;
20043
+ this[_0x43d6aa(443)](_0x3b8777);
19994
20044
  }
19995
- [_0x328641(250)](_0x360b5e) {
19996
- const _0x3c9cc8 = _0x328641;
19997
- this[_0x3c9cc8(268)] = _0x360b5e;
20045
+ ["saveCodeVerifier"](_0x24fa92) {
20046
+ this["_codeVerifier"] = _0x24fa92;
19998
20047
  }
19999
- [_0x328641(265)]() {
20000
- const _0x49abbb = _0x328641, _0x4b7887 = _0x328641, _0x4fe1df = {};
20001
- _0x4fe1df[_0x49abbb(255)] = _0x49abbb(256);
20002
- const _0x8e7b25 = _0x4fe1df;
20003
- if (!this["_codeVerifier"]) throw new Error(_0x8e7b25[_0x4b7887(255)]);
20004
- return this[_0x4b7887(268)];
20048
+ ["codeVerifier"]() {
20049
+ const _0x5580e8 = _0x125317;
20050
+ if (!this[_0x5580e8(437)]) throw new Error("No code verifier saved");
20051
+ return this["_codeVerifier"];
20005
20052
  }
20006
20053
  }
20007
- (function(_0x5a15db, _0x20cca0) {
20008
- var _0x593e6d = _0x5838, _0x1fabb6 = _0x5838, _0x593d23 = _0x5a15db();
20054
+ (function(_0x3eddf7, _0x37edba) {
20055
+ var _0x4f4dfb = _0x2d57, _0x26a47e = _0x2d57, _0x455a42 = _0x3eddf7();
20009
20056
  while (!![]) {
20010
20057
  try {
20011
- var _0x5caf8c = -parseInt(_0x593e6d(299)) / (1 * -5546 + -94 * 100 + 14947) * (-parseInt(_0x1fabb6(296)) / (-4279 + -1 * 56 + 4337)) + -parseInt(_0x1fabb6(298)) / (8754 + -4496 + 851 * -5) + parseInt(_0x1fabb6(300)) / (-9401 + 2874 + 933 * 7) + -parseInt(_0x593e6d(292)) / (758 * 7 + 234 + 123 * -45) + parseInt(_0x1fabb6(295)) / (-100 * -69 + 7155 + -14049) * (parseInt(_0x593e6d(294)) / (8212 + -1084 * -4 + -12541)) + -parseInt(_0x593e6d(297)) / (-8332 + -2 * -3191 + 1958) + -parseInt(_0x1fabb6(293)) / (1 * -5933 + 2364 + -1 * -3578);
20012
- if (_0x5caf8c === _0x20cca0) break;
20013
- else _0x593d23["push"](_0x593d23["shift"]());
20014
- } catch (_0x21a350) {
20015
- _0x593d23["push"](_0x593d23["shift"]());
20016
- }
20017
- }
20018
- })(_0x4c11, 722500 + -10 * 107029 + 902741);
20019
- function _0x4c11() {
20020
- var _0x432db6 = ["2iLxULY", "1547872TvYRpQ", "3124428cOXNRq", "1035197lJDFGt", "3486564wwalRD", "2645980SUHNlu", "872424UrZLEr", "2905TFXGtD", "7362fQOePf"];
20021
- _0x4c11 = function() {
20022
- return _0x432db6;
20058
+ var _0x352785 = parseInt(_0x4f4dfb(361)) / (-8487 + 3575 + -17 * -289) * (parseInt(_0x26a47e(363)) / (-1 * -8543 + 5 * 233 + -9706)) + -parseInt(_0x4f4dfb(358)) / (-4 * -991 + -4153 * 1 + 192) + parseInt(_0x4f4dfb(359)) / (8411 + -6883 + 381 * -4) * (parseInt(_0x4f4dfb(357)) / (37 * -99 + -553 * -13 + 1 * -3521)) + parseInt(_0x26a47e(354)) / (3127 + 1287 + -4408) * (parseInt(_0x4f4dfb(360)) / (79 * -47 + -6867 + -10587 * -1)) + parseInt(_0x26a47e(362)) / (2879 * -1 + -4327 + 7214 * 1) + parseInt(_0x26a47e(364)) / (-7772 + -1 * -7873 + -92) + -parseInt(_0x26a47e(356)) / (9184 + -6643 + -2531) * (parseInt(_0x4f4dfb(355)) / (1843 + 1 * 9218 + 425 * -26));
20059
+ if (_0x352785 === _0x37edba) break;
20060
+ else _0x455a42["push"](_0x455a42["shift"]());
20061
+ } catch (_0x2a1929) {
20062
+ _0x455a42["push"](_0x455a42["shift"]());
20063
+ }
20064
+ }
20065
+ })(_0x59e6, -73523 * -3 + 1 * -407717 + 530518);
20066
+ function _0x59e6() {
20067
+ var _0x5ee1c4 = ["40ecBYYe", "1095owKKYD", "486870YOVwZy", "5752xWiyTO", "561484biNVMw", "1fWJmxQ", "1866064SPnyhb", "1109522vMiuMX", "1602351pPEGwH", "12sVyMLL", "2573296LTwOhv"];
20068
+ _0x59e6 = function() {
20069
+ return _0x5ee1c4;
20023
20070
  };
20024
- return _0x4c11();
20071
+ return _0x59e6();
20025
20072
  }
20026
- function _0x5838(_0x49db54, _0x3e5b9b) {
20027
- var _0x4bcf0a = _0x4c11();
20028
- return _0x5838 = function(_0x303688, _0x5c2883) {
20029
- _0x303688 = _0x303688 - (2152 * 2 + -563 * 12 + 2744);
20030
- var _0x2f2f1f = _0x4bcf0a[_0x303688];
20031
- return _0x2f2f1f;
20032
- }, _0x5838(_0x49db54, _0x3e5b9b);
20073
+ function _0x2d57(_0x22a4e9, _0x3c5d7b) {
20074
+ var _0x3ed0bb = _0x59e6();
20075
+ return _0x2d57 = function(_0x19cb9d, _0x563453) {
20076
+ _0x19cb9d = _0x19cb9d - (-1 * -642 + 503 * -5 + 2227);
20077
+ var _0x246bca = _0x3ed0bb[_0x19cb9d];
20078
+ return _0x246bca;
20079
+ }, _0x2d57(_0x22a4e9, _0x3c5d7b);
20033
20080
  }
20034
20081
  class Server extends Protocol {
20035
20082
  /**
@@ -22590,7 +22637,7 @@ class WebMcpClient {
22590
22637
  let reconnect = false;
22591
22638
  let response;
22592
22639
  const connectProxy = async () => {
22593
- const { transport: transport2, sessionId: sessionId2 } = type2 === "sse" ? await createSseProxy(proxyOptions) : await createStreamProxy(proxyOptions);
22640
+ const { transport: transport2, sessionId: sessionId2 } = type2 === "sse" ? await createSseProxy(proxyOptions) : type2 === "socket" ? await createSocketProxy(proxyOptions) : await createStreamProxy(proxyOptions);
22594
22641
  transport2.onerror = async (error2) => {
22595
22642
  onError == null ? void 0 : onError(error2);
22596
22643
  if (error2.message === "Unauthorized" && !reconnect) {
@@ -22625,6 +22672,11 @@ class WebMcpClient {
22625
22672
  await this.client.connect(transport);
22626
22673
  }
22627
22674
  }
22675
+ if (type2 === "socket") {
22676
+ transport = new WebSocketClientTransport(new URL(`${url}?sessionId=${sessionId}&token=${token}`));
22677
+ transport.sessionId = sessionId;
22678
+ await this.client.connect(transport);
22679
+ }
22628
22680
  if (typeof transport === "undefined") {
22629
22681
  if (authProvider) {
22630
22682
  const createTransport = () => new StreamableHTTPClientTransport(endpoint, { authProvider });
@@ -42759,6 +42811,7 @@ class AgentModelProvider {
42759
42811
  this.mcpTools = [];
42760
42812
  this.ignoreToolnames = [];
42761
42813
  this.autoUpdateTools = true;
42814
+ this.messages = [];
42762
42815
  this.mcpServers = mcpServers || [];
42763
42816
  if (llm) {
42764
42817
  this.llm = llm;
@@ -42788,6 +42841,9 @@ class AgentModelProvider {
42788
42841
  }
42789
42842
  return await createMCPClient({ transport });
42790
42843
  } catch (error2) {
42844
+ if (this.onError) {
42845
+ this.onError((error2 == null ? void 0 : error2.message) || `Failed to create MCP client`, error2);
42846
+ }
42791
42847
  console.error(`Failed to create MCP client`, serverConfig, error2);
42792
42848
  return null;
42793
42849
  }
@@ -42808,6 +42864,10 @@ class AgentModelProvider {
42808
42864
  try {
42809
42865
  return client ? await ((_a16 = client == null ? void 0 : client.tools) == null ? void 0 : _a16.call(client)) : null;
42810
42866
  } catch (error2) {
42867
+ if (this.onError) {
42868
+ this.onError((error2 == null ? void 0 : error2.message) || `Failed to query tools`, error2);
42869
+ }
42870
+ console.error(`Failed to query tools`, error2);
42811
42871
  return null;
42812
42872
  }
42813
42873
  })
@@ -42818,8 +42878,12 @@ class AgentModelProvider {
42818
42878
  await Promise.all(
42819
42879
  this.mcpClients.map(async (client) => {
42820
42880
  try {
42821
- client.close();
42881
+ await client.close();
42822
42882
  } catch (error2) {
42883
+ if (this.onError) {
42884
+ this.onError((error2 == null ? void 0 : error2.message) || `Failed to close client`, error2);
42885
+ }
42886
+ console.error(`Failed to close client`, error2);
42823
42887
  }
42824
42888
  })
42825
42889
  );
@@ -42835,7 +42899,7 @@ class AgentModelProvider {
42835
42899
  }
42836
42900
  async insertMcpServer(mcpServer) {
42837
42901
  var _a16;
42838
- const find = this.mcpServers.find((item) => item.url === mcpServer.url);
42902
+ const find = this.mcpServers.find((item) => "url" in item && "url" in mcpServer && item.url === mcpServer.url);
42839
42903
  if (!find) {
42840
42904
  this.mcpServers = [...this.mcpServers, mcpServer];
42841
42905
  const client = await this._createOneClient(mcpServer);
@@ -42873,7 +42937,7 @@ class AgentModelProvider {
42873
42937
  return toolsResult;
42874
42938
  }
42875
42939
  async _chat(chatMethod, { model, maxSteps = 5, ...options }) {
42876
- var _a16;
42940
+ var _a16, _b8;
42877
42941
  if (!this.llm) {
42878
42942
  throw new Error("LLM is not initialized");
42879
42943
  }
@@ -42881,13 +42945,22 @@ class AgentModelProvider {
42881
42945
  await this._createMpcTools();
42882
42946
  (_a16 = this.onUpdatedTools) == null ? void 0 : _a16.call(this);
42883
42947
  }
42884
- return chatMethod({
42948
+ const chatOptions = {
42885
42949
  // @ts-ignore ProviderV2 是所有llm的父类, 在每一个具体的llm 类都有一个选择model的函数用法
42886
42950
  model: this.llm(model),
42887
42951
  stopWhen: stepCountIs(maxSteps),
42888
42952
  ...options,
42889
42953
  tools: this.tempMergeTools(options.tools)
42954
+ };
42955
+ if (options.message && !options.messages) {
42956
+ this.messages.push({ role: "user", content: options.message });
42957
+ chatOptions.messages = [...this.messages];
42958
+ }
42959
+ const result = chatMethod(chatOptions);
42960
+ (_b8 = result == null ? void 0 : result.response) == null ? void 0 : _b8.then((res) => {
42961
+ this.messages.push(...res.messages);
42890
42962
  });
42963
+ return result;
42891
42964
  }
42892
42965
  async chat(options) {
42893
42966
  return this._chat(generateText, options);