@nuvin/agent-core 0.0.0-rc.18 → 0.0.0-rc.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/agent.d.ts +28 -0
- package/dist/agent/context-compactor.d.ts +8 -0
- package/dist/agent/extension-registry.d.ts +3 -0
- package/dist/agent/index.d.ts +8 -101
- package/dist/agent/index.js +1 -1
- package/dist/agent/messages-to-text.d.ts +3 -0
- package/dist/agent/metrics.d.ts +30 -0
- package/dist/agent/topic-reminder-extension.d.ts +32 -0
- package/dist/agent/turn-engine.d.ts +3 -0
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-HRU363DY.js +1 -1
- package/dist/chunk-NHBKADBW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/base64-image-content.d.ts +4 -0
- package/dist/formats/index.d.ts +4 -39
- package/dist/formats/index.js +1 -1
- package/dist/formats/message-format.d.ts +33 -0
- package/dist/formats/provider-adapters.d.ts +3 -0
- package/dist/hooks/executor.d.ts +3 -0
- package/dist/hooks/extensions.d.ts +28 -0
- package/dist/hooks/index.d.ts +7 -76
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/registry.d.ts +8 -0
- package/dist/hooks/types.d.ts +40 -0
- package/dist/lsp/client.d.ts +11 -0
- package/dist/lsp/index.d.ts +24 -0
- package/dist/lsp/installer.d.ts +11 -0
- package/dist/lsp/language.d.ts +2 -0
- package/dist/lsp/server.d.ts +6 -0
- package/dist/lsp/types.d.ts +68 -0
- package/dist/models/anthropic-model.d.ts +27 -0
- package/dist/models/anthropic-surface.d.ts +5 -0
- package/dist/models/chat-model.d.ts +31 -0
- package/dist/models/github-model.d.ts +32 -0
- package/dist/models/http-transport.d.ts +10 -0
- package/dist/models/index.d.ts +16 -439
- package/dist/models/index.js +1 -1
- package/dist/models/mock-model.d.ts +15 -0
- package/dist/models/model-errors.d.ts +16 -0
- package/dist/models/model-limits.d.ts +7 -0
- package/dist/models/model-registry.d.ts +44 -0
- package/dist/models/model-surface-router.d.ts +19 -0
- package/dist/models/model-transports.d.ts +17 -0
- package/dist/models/openai-model.d.ts +60 -0
- package/dist/models/openai-surfaces.d.ts +74 -0
- package/dist/models/provider-adapter.d.ts +23 -0
- package/dist/models/provider-session.d.ts +16 -0
- package/dist/models/routed-model.d.ts +90 -0
- package/dist/shared/abort.d.ts +9 -0
- package/dist/shared/index.d.ts +5 -22
- package/dist/shared/index.js +1 -1
- package/dist/shared/reasoning-config.d.ts +5 -0
- package/dist/shared/turn-failed.d.ts +6 -0
- package/dist/{types-11Znykt2.d.ts → shared/types.d.ts} +163 -163
- package/dist/tools/ask-user-tool.d.ts +55 -0
- package/dist/tools/bash-tool.d.ts +63 -0
- package/dist/tools/command-tool.d.ts +23 -0
- package/dist/tools/file-edit-tool.d.ts +29 -0
- package/dist/tools/file-new-tool.d.ts +21 -0
- package/dist/tools/file-read-tool.d.ts +27 -0
- package/dist/tools/glob-tool.d.ts +26 -0
- package/dist/tools/grep-tool.d.ts +34 -0
- package/dist/tools/index.d.ts +28 -810
- package/dist/tools/index.js +1 -1
- package/dist/tools/internal-tool-runtime.d.ts +8 -0
- package/dist/tools/ls-tool.d.ts +20 -0
- package/dist/tools/lsp-tool.d.ts +36 -0
- package/dist/tools/mcp-oauth-provider.d.ts +11 -0
- package/dist/tools/mcp-server-manager.d.ts +43 -0
- package/dist/tools/mcp-tool-adapter.d.ts +47 -0
- package/dist/tools/mock-tool-runtime.d.ts +3 -0
- package/dist/tools/ripgrep.d.ts +20 -0
- package/dist/tools/runtime-manager-tools.d.ts +58 -0
- package/dist/tools/skill-tool.d.ts +33 -0
- package/dist/tools/todo-write-tool.d.ts +66 -0
- package/dist/tools/tool-output-offload.d.ts +12 -0
- package/dist/tools/tools.d.ts +24 -0
- package/dist/tools/update-topic-tool.d.ts +12 -0
- package/dist/tools/view-file-tool.d.ts +22 -0
- package/dist/tools/web-fetch-tool.d.ts +20 -0
- package/dist/tools/web-search-tool.d.ts +72 -0
- package/dist/tools/workspace-paths.d.ts +5 -0
- package/package.json +2 -2
- package/dist/provider-adapters-D1hQNeFc.d.ts +0 -5
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4c9d26,_0x3a0d36){const _0x10b6d5={_0x17350c:0x516,_0x549495:0x517,_0xb46b50:0x30b,_0x49a55b:0x447,_0x26a1ec:0x389,_0x3cc176:0x97,_0x5dd4f5:0xde,_0x221d9c:0x70,_0xee628c:0x535,_0x292e63:0x6ca,_0x6a3f69:0x59e,_0x5d3f0f:0x6a9,_0x112f08:0x24,_0x271119:0xc0,_0x300609:0x3bb,_0x54731d:0x3d2,_0x222c23:0x116,_0x10fd48:0x115,_0x39d472:0x1,_0x54e9f7:0xd0,_0x4b4531:0xb5},_0x9bd5b5={_0x560cdb:0x255},_0x1e1af2={_0x166281:0x1f2};function _0x41206c(_0x370b20,_0x52bcaa,_0x7ccb03,_0x5161dc){return _0x47bf(_0x7ccb03-_0x1e1af2._0x166281,_0x52bcaa);}const _0x299ecd=_0x4c9d26();function _0x1e6882(_0x1ddaa2,_0x1ebed6,_0x55a7ea,_0x4af646){return _0x47bf(_0x4af646- -_0x9bd5b5._0x560cdb,_0x1ddaa2);}while(!![]){try{const _0x332785=parseInt(_0x41206c(0x3e0,_0x10b6d5._0x17350c,0x45e,_0x10b6d5._0x549495))/0x1*(parseInt(_0x41206c(0x49a,_0x10b6d5._0xb46b50,_0x10b6d5._0x49a55b,_0x10b6d5._0x26a1ec))/0x2)+parseInt(_0x1e6882(-0xb0,_0x10b6d5._0x3cc176,_0x10b6d5._0x5dd4f5,_0x10b6d5._0x221d9c))/0x3+parseInt(_0x41206c(0x336,_0x10b6d5._0xee628c,0x3f1,0x486))/0x4+-parseInt(_0x41206c(_0x10b6d5._0x292e63,_0x10b6d5._0x6a3f69,0x574,_0x10b6d5._0x5d3f0f))/0x5+parseInt(_0x1e6882(-_0x10b6d5._0x112f08,_0x10b6d5._0x271119,0x17f,0xf7))/0x6+-parseInt(_0x41206c(0x4a3,_0x10b6d5._0x300609,_0x10b6d5._0x54731d,0x523))/0x7+parseInt(_0x1e6882(-_0x10b6d5._0x222c23,-0x22,_0x10b6d5._0x10fd48,_0x10b6d5._0x39d472))/0x8*(parseInt(_0x1e6882(0x15c,_0x10b6d5._0x54e9f7,-0xa9,_0x10b6d5._0x4b4531))/0x9);if(_0x332785===_0x3a0d36)break;else _0x299ecd['push'](_0x299ecd['shift']());}catch(_0xfc517){_0x299ecd['push'](_0x299ecd['shift']());}}}(_0x2207,0xc235c));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-HRU363DY.js';import{getTextFromMessage}from'../chunk-QDOE7NWO.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x5e5c83 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x2ff7d2(0x531,0x583,0x49d,0x5c4),'.tsx':'typescriptreact','.js':_0x691723(-0x1d5,-0x2fd,-0x22d,-0xb3),'.jsx':'javascriptreact','.mjs':_0x2ff7d2(0x478,0x401,0x3c8,0x35c),'.cjs':_0x691723(-0x1d5,-0x1a5,-0x122,-0x11a),'.mts':_0x2ff7d2(0x531,0x4ed,0x409,0x5a3),'.cts':'typescript','.json':_0x2ff7d2(0x55e,0x4a8,0x576,0x56f),'.jsonc':_0x2ff7d2(0x426,0x3e2,0x35c,0x42c)};function getLanguageId(_0x57821d){const _0x29cf25={_0x55b8e3:0x331,_0xb1cf67:0x1ef,_0x4cd05d:0x177,_0x4ebad0:0xcf},_0xc74438={_0x205e07:0x2f,_0x287579:0x3e};function _0xd0f267(_0x74bfec,_0x3e49ce,_0x1bd141,_0x513053){return _0x2ff7d2(_0x3e49ce- -0x37c,_0x1bd141,_0x1bd141-_0xc74438._0x205e07,_0x513053-_0xc74438._0x287579);}return EXTENSION_TO_LANGUAGE[_0x5e5c83['extname'](_0x57821d)[_0xd0f267(_0x29cf25._0x55b8e3,_0x29cf25._0xb1cf67,_0x29cf25._0x4cd05d,_0x29cf25._0x4ebad0)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x43c205){const _0x1072b8={_0x2feec5:0x3e9,_0xb0d72e:0x3e3},_0x329379={_0xb9c3cf:0x1d3};function _0x42fccb(_0x12ce44,_0x554576,_0x4cc51f,_0x4321ba){return _0x691723(_0x4321ba-0x645,_0x4cc51f,_0x4cc51f-_0x329379._0xb9c3cf,_0x4321ba-0x11a);}return pathToFileURL(_0x43c205)[_0x42fccb(_0x1072b8._0x2feec5,_0x1072b8._0xb0d72e,0x582,0x43e)]();}function textDocumentPosition(_0x3ac041){const _0x244638={_0x374936:0x215,_0x3682e3:0x108,_0x29b789:0x1fc,_0x1d2d12:0x212,_0x33eda3:0x2a1,_0x1c08ee:0x318,_0x156e96:0x320,_0x43d9f5:0x1cf,_0x2eba1d:0x2eb},_0x11723f={_0x3b67b1:0x1de};function _0x163f19(_0x8cf1bc,_0x5e3998,_0x44db52,_0x53a74b){return _0x2ff7d2(_0x44db52- -0x2b7,_0x5e3998,_0x44db52-_0x11723f._0x3b67b1,_0x53a74b-0xf6);}function _0x477108(_0x3424a8,_0x3e8f6e,_0x374b19,_0x567caa){return _0x2ff7d2(_0x3424a8- -0x109,_0x567caa,_0x374b19-0x1a0,_0x567caa-0xb9);}return{'textDocument':{'uri':uriForPath(_0x3ac041[_0x163f19(0xb9,0x22e,_0x244638._0x374936,_0x244638._0x3682e3)])},'position':{'line':_0x3ac041[_0x163f19(_0x244638._0x29b789,_0x244638._0x1d2d12,_0x244638._0x33eda3,0x2fe)],'character':_0x3ac041[_0x163f19(_0x244638._0x1c08ee,_0x244638._0x156e96,_0x244638._0x43d9f5,_0x244638._0x2eba1d)]}};}function normalizeLocations(_0x26a1a1){const _0x3f67e6={_0x324835:0x29a},_0x44806e={_0x5d1075:0x210,_0x42a75b:0x3a};function _0x1ffa17(_0x4f1b30,_0xb88456,_0x1cbe1b,_0x3ee00f){return _0x2ff7d2(_0x4f1b30- -_0x44806e._0x5d1075,_0x3ee00f,_0x1cbe1b-0x38,_0x3ee00f-_0x44806e._0x42a75b);}if(!_0x26a1a1)return[];return Array[_0x1ffa17(0x2c1,0x41e,_0x3f67e6._0x324835,0x268)](_0x26a1a1)?_0x26a1a1:[_0x26a1a1];}async function createLspClient(_0x3906ea){const _0x4fe899={_0x1c25bc:0x130,_0x3004fe:0x20,_0x470846:0x7a,_0x3c05bb:0xb,_0x53b317:0x19e,_0x30d5dd:0x649,_0x39a04a:0x403,_0x262934:0x94,_0x14aee3:0x42,_0x1656e3:0xe8,_0x52c8ba:0x2e1,_0x15781e:0x35f,_0x3e481e:0x22f,_0x187ab8:0x438,_0x4c822b:0x253,_0x5b0032:0x317,_0x101a55:0x35d,_0x4422fc:0x40b,_0x2c7654:0x502,_0x2d38b8:0x4ff,_0x1079fe:0x42f,_0x1f7f1e:0x553,_0x1400d7:0x28e,_0x5d9bf9:0x287,_0x38d12c:0x7a,_0x421f65:0x1ef,_0x16882b:0x144,_0x28cc37:0xf4,_0x5bf4e0:0x77,_0x2666f8:0x39,_0x476042:0x101,_0x35fab6:0x1bd},_0x2e635e={_0x492b3f:0x24d,_0x4dad62:0x104,_0x7327de:0x247,_0x4b482f:0x63a,_0x1fd380:0x394,_0xc68939:0x42a,_0x57bd84:0x387,_0x544710:0x4ca,_0x1c5c85:0x390,_0x3749de:0x4cb,_0x16056f:0x25e,_0x3feaa0:0x512,_0x587e20:0x501},_0x18993b={_0x1d42fa:0x182},_0x181b22={_0xf243d7:0x221,_0x18ca8e:0xf3,_0x59098b:0xf1},_0x6eaf6f={_0xa3e96:0x354,_0x97bce3:0x603,_0x40ca75:0x533,_0x25a5d2:0x36c,_0x87ec65:0x474},_0x3ad880={_0x115b59:0xd},_0x594ca0={_0x11eb59:0x1d9,_0x3fb24f:0x361},_0x380c8d={_0x299425:0x2e6,_0x5dea00:0x2c6},_0x25a62c={_0x39a6b4:0x93,_0x5ee924:0xd7},_0x1eb81f={_0x3b0130:0x2c,_0x362192:0x8d,_0x5f188b:0x1aa,_0x5e8b77:0x6e,_0x32c6ae:0x26f},_0x40d2ea={_0x269d67:0xb2,_0x4c4d14:0x1e8},_0x54aa96={_0x578432:0x2b6,_0x1fce5d:0x218,_0x5cddca:0x179,_0x48e713:0x4e},_0x56062e={_0x221f57:0x12d},_0x126330={_0x19a2db:0x4e1},_0x53009f={_0x192070:0x12b,_0x31eff3:0x269},_0x12e257={_0x309333:0x242,_0x45dfb8:0x281,_0x33da3f:0x2ef,_0xda71d9:0xee,_0x1656be:0x20f,_0x19739d:0x10c},_0x5f32d6={_0x2e8ec0:0x1eb,_0x5d8035:0x2bf},_0x544cb1={_0x3d8dcf:0x1c1},_0x1b4957={_0x41c705:0xa4,_0x2bad96:0x279,_0x5e2f5d:0x2c8},_0x9bdd48={_0x21f654:0x93,_0x4adc13:0x188},_0x1dd007={_0x1b47b8:0x138,_0x1465d5:0x241,_0x598055:0x11a},_0xcebff1={_0x419aba:0x1d7,_0x4c77ab:0x252,_0x3fdb82:0x23a,_0x2760d8:0x7e4,_0x1db986:0x71f},_0x57aa3b={_0x571985:0x66,_0x10e710:0x655},_0x162d3d={_0x5961b1:0x3a},_0x50fa9d={_0x4b76e5:0x495,_0xe44ed:0x4d5,_0x1a0aeb:0x420},_0x50d88c={_0x3c65fe:0xcc,_0xa0903:0x5f,_0x43686f:0x1,_0x5d7e6a:0x1e6,_0x1848ca:0x67,_0x1dce6d:0x7b,_0x55bd8c:0xa4},_0x220b7d={_0x4566f5:0x490,_0x2e7512:0x416,_0x5cd4a7:0x32e,_0xc95d49:0x47c},_0x4bff06={_0xc78d89:0x14e},_0x5024c5={_0x2e7ddf:0x142,_0x31bbd6:0x7d},_0xa2848={_0x163e89:0x28c,_0x3f6f31:0x11a,_0x4efac6:0x222,_0x14f256:0x202,_0x402bc2:0x2f9,_0x19d98f:0x431,_0x3f6cd0:0x1c4,_0x219662:0x240,_0xa055f:0x2f7,_0x521120:0x3ea,_0x27b1cd:0x52c,_0xf17714:0x587,_0x4f31e7:0x63b,_0x4e79cc:0x493,_0xc13ee5:0x48f},_0x4536c3={_0x188732:0x316},_0x584fa5={_0x10337f:0x112},_0x2a5c4a=_0x3906ea[_0x214d2f(-_0x4fe899._0x1c25bc,_0x4fe899._0x3004fe,-_0x4fe899._0x470846,-0x9c)][_0x214d2f(0xb1,_0x4fe899._0x3c05bb,0xb2,0x7d)]['stdout'],_0x4c2f18=_0x3906ea[_0x214d2f(0x4e,-0xc9,-_0x4fe899._0x470846,-0x163)]['process'][_0x214d2f(-_0x4fe899._0x53b317,-0x177,-0x92,0x23)];if(!_0x2a5c4a||!_0x4c2f18)throw new Error(_0x4f0b96(_0x4fe899._0x30d5dd,0x65e,0x550,_0x4fe899._0x39a04a));const _0x105f1e=createMessageConnection(new StreamMessageReader(_0x2a5c4a),new StreamMessageWriter(_0x4c2f18)),_0x2a31c2=new Map();function _0x4f0b96(_0x1a3be5,_0xfa93b6,_0x526c7a,_0x31596f){return _0x2ff7d2(_0x526c7a- -0xb1,_0x1a3be5,_0x526c7a-_0x584fa5._0x10337f,_0x31596f-0xfe);}const _0x1af893=new Map();let _0x1765a4=![];_0x105f1e[_0x214d2f(_0x4fe899._0x262934,-_0x4fe899._0x14aee3,-0x41,-_0x4fe899._0x1656e3)](_0x4f0b96(_0x4fe899._0x52c8ba,0x3e9,_0x4fe899._0x15781e,_0x4fe899._0x3e481e),_0x2241ee=>{const _0x4a42b7={_0x2c055:0x157};_0x2a31c2[_0x5389fb(0x1ad,_0xa2848._0x163e89,_0xa2848._0x3f6f31,_0xa2848._0x4efac6)](_0x2241ee[_0x5389fb(0x230,0x185,0x2dc,_0xa2848._0x14f256)],_0x2241ee['diagnostics']);function _0x5389fb(_0x2bf279,_0x572d47,_0x115e51,_0x5788e2){return _0x214d2f(_0x2bf279-0xfa,_0x572d47-0x12a,_0x2bf279-_0x4536c3._0x188732,_0x115e51);}const _0x8d81aa=_0x1af893[_0x5389fb(_0xa2848._0x402bc2,_0xa2848._0x19d98f,_0xa2848._0x3f6cd0,0x294)](_0x2241ee[_0x5389fb(0x230,_0xa2848._0x219662,0x165,_0xa2848._0xa055f)]);if(!_0x8d81aa)return;function _0x4dff42(_0x114066,_0x528f9e,_0x150096,_0x1131fa){return _0x214d2f(_0x114066-_0x4a42b7._0x2c055,_0x528f9e-0xa0,_0x528f9e-0x637,_0x1131fa);}_0x1af893[_0x4dff42(_0xa2848._0x521120,_0xa2848._0x27b1cd,_0xa2848._0xf17714,_0xa2848._0x4f31e7)](_0x2241ee[_0x4dff42(_0xa2848._0x4e79cc,0x551,0x60c,_0xa2848._0xc13ee5)]);for(const _0x1f6cbf of _0x8d81aa)_0x1f6cbf();}),_0x105f1e[_0x4f0b96(0x48d,0x43b,0x4fd,_0x4fe899._0x187ab8)]();function _0x214d2f(_0x9d0d51,_0x4d6b69,_0x12d00c,_0x4d7539){return _0x2ff7d2(_0x12d00c- -0x58c,_0x4d7539,_0x12d00c-_0x5024c5._0x2e7ddf,_0x4d7539-_0x5024c5._0x31bbd6);}const _0x5e6a9e=await _0x105f1e[_0x4f0b96(_0x4fe899._0x4c822b,_0x4fe899._0x5b0032,_0x4fe899._0x101a55,_0x4fe899._0x4422fc)](_0x4f0b96(0x64d,_0x4fe899._0x2c7654,0x526,0x649),{'processId':process[_0x4f0b96(_0x4fe899._0x2d38b8,_0x4fe899._0x1079fe,_0x4fe899._0x1f7f1e,0x412)],'rootUri':uriForPath(_0x3906ea[_0x214d2f(-0x18a,-0xd7,-0x101,-0x84)]),'workspaceFolders':[{'uri':uriForPath(_0x3906ea[_0x4f0b96(_0x4fe899._0x1400d7,0x4f0,0x3da,_0x4fe899._0x5d9bf9)]),'name':_0x3906ea['server']['id']}],'initializationOptions':_0x3906ea[_0x214d2f(-0x6f,-0x19a,-_0x4fe899._0x38d12c,0x7d)]['initialization']??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x214d2f(-0x1f9,-_0x4fe899._0x421f65,-_0x4fe899._0x16882b,-0x1f),_0x214d2f(-_0x4fe899._0x28cc37,_0x4fe899._0x5bf4e0,-0xce,-0x158)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x105f1e['sendNotification'](_0x4f0b96(0x514,0x5c7,0x496,0x393),{});const _0x42f23f={'serverId':_0x3906ea['server']['id'],'root':_0x3906ea[_0x214d2f(-0x1bb,-_0x4fe899._0x2666f8,-_0x4fe899._0x476042,-_0x4fe899._0x35fab6)],'connection':_0x105f1e,'diagnostics':_0x2a31c2,'capabilities':_0x5e6a9e['capabilities']??{},'notify':{async 'open'({path:_0xfa2b5a}){const _0x2810ef={_0x165c50:0x40},_0x7181dd=await readFile(_0xfa2b5a,'utf8');function _0x150de2(_0x1f6000,_0x105e0e,_0x429c89,_0x474055){return _0x214d2f(_0x1f6000-_0x4bff06._0xc78d89,_0x105e0e-0x1e1,_0x1f6000-0x431,_0x429c89);}function _0x250d0a(_0x114807,_0x5f10b3,_0x3c41ab,_0x27045a){return _0x214d2f(_0x114807-0x1ec,_0x5f10b3-_0x2810ef._0x165c50,_0x27045a-0x328,_0x3c41ab);}_0x105f1e[_0x150de2(_0x220b7d._0x4566f5,0x365,_0x220b7d._0x2e7512,0x40c)](_0x250d0a(0x251,_0x220b7d._0x5cd4a7,0x327,0x1f4),{'textDocument':{'uri':uriForPath(_0xfa2b5a),'languageId':getLanguageId(_0xfa2b5a)??_0x150de2(0x363,0x2a3,0x400,_0x220b7d._0xc95d49),'version':0x1,'text':_0x7181dd}});},async 'change'({path:_0x317a77,version:_0x4070cb}){const _0x523714={_0x45b286:0xb9,_0x59104b:0x631},_0x334b94={_0xf3bcd:0x19};function _0x649810(_0x3b060e,_0x4bea6e,_0x4dcea4,_0x52b913){return _0x214d2f(_0x3b060e-_0x334b94._0xf3bcd,_0x4bea6e-0x78,_0x3b060e-0x6d,_0x52b913);}const _0x203963=await readFile(_0x317a77,_0x41ded1(0x611,0x6c6,0x756,0x600));function _0x41ded1(_0x11bbca,_0x53a05a,_0xad2116,_0x2db896){return _0x214d2f(_0x11bbca-0x1b1,_0x53a05a-_0x523714._0x45b286,_0xad2116-_0x523714._0x59104b,_0x2db896);}_0x105f1e[_0x649810(_0x50d88c._0x3c65fe,-_0x50d88c._0xa0903,_0x50d88c._0x43686f,_0x50d88c._0x5d7e6a)](_0x649810(-_0x50d88c._0x1848ca,-0x55,_0x50d88c._0x1dce6d,-_0x50d88c._0x55bd8c),{'textDocument':{'uri':uriForPath(_0x317a77),'version':_0x4070cb},'contentChanges':[{'text':_0x203963}]});},async 'close'({path:_0x2aaa0a}){const _0x43cc0c={_0x563f83:0x26,_0x1ecb7b:0xce,_0x2cf882:0x436};function _0x530cb5(_0x111c04,_0x2ff9cc,_0xb2d1b,_0x212a01){return _0x214d2f(_0x111c04-_0x43cc0c._0x563f83,_0x2ff9cc-_0x43cc0c._0x1ecb7b,_0x111c04-_0x43cc0c._0x2cf882,_0x2ff9cc);}_0x105f1e[_0x530cb5(_0x50fa9d._0x4b76e5,_0x50fa9d._0xe44ed,_0x50fa9d._0x1a0aeb,0x36c)]('textDocument/didClose',{'textDocument':{'uri':uriForPath(_0x2aaa0a)}});}},'request':{async 'definition'(_0x34181b){function _0x17266f(_0x39c286,_0x833710,_0x48fe37,_0x381c79){return _0x4f0b96(_0x39c286,_0x833710-0x176,_0x833710- -0x534,_0x381c79-_0x162d3d._0x5961b1);}function _0x2c7f50(_0x5c9d61,_0x32fc0d,_0x28911d,_0x5c3ad8){return _0x214d2f(_0x5c9d61-_0x57aa3b._0x571985,_0x32fc0d-0x187,_0x28911d-_0x57aa3b._0x10e710,_0x32fc0d);}return normalizeLocations(await _0x105f1e[_0x17266f(-0x157,-_0xcebff1._0x419aba,-_0xcebff1._0x4c77ab,-_0xcebff1._0x3fdb82)](_0x2c7f50(_0xcebff1._0x2760d8,0x6e2,0x72f,_0xcebff1._0x1db986),textDocumentPosition(_0x34181b)));},async 'references'(_0xf6fadd){function _0x28e5b9(_0x410b5a,_0x56ea2b,_0x4bde24,_0xf17ac7){return _0x4f0b96(_0x56ea2b,_0x56ea2b-_0x1dd007._0x1b47b8,_0xf17ac7- -_0x1dd007._0x1465d5,_0xf17ac7-_0x1dd007._0x598055);}function _0x3aa556(_0x25e488,_0x7119be,_0x28a541,_0x382992){return _0x4f0b96(_0x28a541,_0x7119be-_0x9bdd48._0x21f654,_0x25e488- -_0x9bdd48._0x4adc13,_0x382992-0x1a);}return normalizeLocations(await _0x105f1e[_0x3aa556(0x1d5,0x328,_0x1b4957._0x41c705,0x112)](_0x3aa556(0x288,0x164,_0x1b4957._0x2bad96,_0x1b4957._0x5e2f5d),{...textDocumentPosition(_0xf6fadd),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x61510){function _0x244c03(_0x5084e3,_0x361a57,_0x27c6bc,_0x12727b){return _0x4f0b96(_0x361a57,_0x361a57-0x13d,_0x27c6bc- -0x9e,_0x12727b-_0x544cb1._0x3d8dcf);}return await _0x105f1e[_0x244c03(0x224,_0x5f32d6._0x2e8ec0,_0x5f32d6._0x5d8035,0x185)]('textDocument/hover',textDocumentPosition(_0x61510))??null;},async 'documentSymbol'(_0x196dad){const _0xcc3e29={_0x5c1864:0x156,_0x138a06:0x1b0};function _0x7c0b19(_0x3ebf43,_0x4d57b1,_0x3f454b,_0x34c5e3){return _0x4f0b96(_0x3ebf43,_0x4d57b1-0x43,_0x4d57b1- -_0xcc3e29._0x5c1864,_0x34c5e3-_0xcc3e29._0x138a06);}function _0x188283(_0x43e4d5,_0x1336c9,_0x30304b,_0x41cd66){return _0x4f0b96(_0x41cd66,_0x1336c9-0x2b,_0x30304b- -0x62,_0x41cd66-0xb0);}return await _0x105f1e[_0x7c0b19(_0x12e257._0x309333,0x207,_0x12e257._0x45dfb8,_0x12e257._0x33da3f)](_0x7c0b19(_0x12e257._0xda71d9,_0x12e257._0x1656be,_0x12e257._0x19739d,0x26d),{'textDocument':{'uri':uriForPath(_0x196dad)}})??[];},async 'workspaceSymbol'(_0x374f13){const _0x581995={_0xfbaa22:0x117,_0x11e5bf:0x4c0};function _0x193066(_0x377b27,_0x2fa2ee,_0x55523c,_0x1fcb61){return _0x4f0b96(_0x1fcb61,_0x2fa2ee-_0x581995._0xfbaa22,_0x2fa2ee- -_0x581995._0x11e5bf,_0x1fcb61-0x89);}return await _0x105f1e['sendRequest'](_0x193066(0x1d,_0x53009f._0x192070,0x1fe,_0x53009f._0x31eff3),{'query':_0x374f13})??[];},async 'implementation'(_0x96585c){function _0x32ccb3(_0x2d54ee,_0x138978,_0x3b5a43,_0x1eb010){return _0x4f0b96(_0x2d54ee,_0x138978-0x131,_0x3b5a43- -_0x126330._0x19a2db,_0x1eb010-0x14d);}function _0x11cc52(_0x15f0c2,_0xc3ed92,_0x6b9528,_0xb13442){return _0x4f0b96(_0xc3ed92,_0xc3ed92-0x1ad,_0x6b9528- -_0x56062e._0x221f57,_0xb13442-0x3);}return normalizeLocations(await _0x105f1e[_0x32ccb3(-_0x54aa96._0x578432,-_0x54aa96._0x1fce5d,-0x184,-_0x54aa96._0x5cddca)](_0x32ccb3(0xe2,-_0x54aa96._0x48e713,-0x63,-0x164),textDocumentPosition(_0x96585c)));},async 'prepareCallHierarchy'(_0x558cf8){const _0x4473a6={_0x404204:0x149,_0xaecb0:0x11c};function _0x5ed33a(_0x30b4fd,_0x5af686,_0x4b8436,_0x295eb6){return _0x214d2f(_0x30b4fd-_0x4473a6._0x404204,_0x5af686-0x175,_0x4b8436-_0x4473a6._0xaecb0,_0x30b4fd);}function _0x567c77(_0x627448,_0x4f4eb7,_0x120bf4,_0x3ef7b9){return _0x214d2f(_0x627448-_0x40d2ea._0x269d67,_0x4f4eb7-_0x40d2ea._0x4c4d14,_0x4f4eb7-0x20b,_0x3ef7b9);}return await _0x105f1e[_0x567c77(-_0x1eb81f._0x3b0130,_0x1eb81f._0x362192,_0x1eb81f._0x5f188b,_0x1eb81f._0x5e8b77)](_0x567c77(0x17a,0x25b,_0x1eb81f._0x32c6ae,0x28a),textDocumentPosition(_0x558cf8))??[];},async 'incomingCalls'(_0x379b35){function _0x47af2b(_0x18eeaa,_0x38bd7a,_0x50b46f,_0x46ae7f){return _0x4f0b96(_0x38bd7a,_0x38bd7a-0x17e,_0x46ae7f- -_0x25a62c._0x39a6b4,_0x46ae7f-_0x25a62c._0x5ee924);}return await _0x105f1e['sendRequest'](_0x47af2b(_0x380c8d._0x299425,0x384,0x31b,_0x380c8d._0x5dea00),{'item':_0x379b35})??[];},async 'outgoingCalls'(_0x480613){const _0x58dbec={_0x1b11ba:0x290};function _0x215b2b(_0x49086c,_0x1716d9,_0x40e0e6,_0x446455){return _0x4f0b96(_0x49086c,_0x1716d9-0x1a0,_0x1716d9- -_0x58dbec._0x1b11ba,_0x446455-0x1df);}return await _0x105f1e['sendRequest'](_0x215b2b(0x394,0x2c8,_0x594ca0._0x11eb59,_0x594ca0._0x3fb24f),{'item':_0x480613})??[];}},'waitForDiagnostics'({path:_0x3c425c,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x5a4ad9={_0x43dbb3:0x170,_0x1a5a6c:0x7d},_0x1293f2={_0x5f532d:0x5f,_0x4393b5:0x9d,_0x1db569:0x254,_0x13288f:0x1e8,_0x382654:0x221},_0x2ed74d={_0x6f2dcf:0x578,_0x1f9dfe:0x1af},_0x51f063={_0x21421d:0x1d6,_0xc394f0:0x188},_0x5b5323=uriForPath(_0x3c425c);function _0x4a158c(_0x18a7ee,_0x14003c,_0x42ae5e,_0x2e500f){return _0x214d2f(_0x18a7ee-0x62,_0x14003c-_0x3ad880._0x115b59,_0x18a7ee- -0xa3,_0x2e500f);}function _0x40d508(_0x41d699,_0x3b1780,_0x303f5d,_0x2957da){return _0x214d2f(_0x41d699-_0x51f063._0x21421d,_0x3b1780-_0x51f063._0xc394f0,_0x41d699-0x212,_0x303f5d);}if(_0x2a31c2[_0x40d508(0x269,0x2dd,0x158,_0x181b22._0xf243d7)](_0x5b5323))return Promise[_0x4a158c(0x64,_0x181b22._0x18ca8e,_0x181b22._0x59098b,-0xf0)]();return new Promise(_0xa096a1=>{function _0x496c8d(_0x43c39e,_0x5d2f97,_0x315495,_0x4db143){return _0x4a158c(_0x43c39e-_0x2ed74d._0x6f2dcf,_0x5d2f97-0x1b4,_0x315495-_0x2ed74d._0x1f9dfe,_0x5d2f97);}const _0x2425e8=setTimeout(()=>{const _0x174b3a={_0x525341:0x3e4},_0x17ef05={_0x398222:0x395},_0x1f2799=_0x1af893[_0x400a45(-0xfa,-0x5d,-_0x1293f2._0x5f532d,-_0x1293f2._0x4393b5)](_0x5b5323);function _0x400a45(_0x52c0ee,_0x3aeed2,_0x2cc8ee,_0x4d1334){return _0x47bf(_0x52c0ee- -_0x17ef05._0x398222,_0x2cc8ee);}_0x1f2799?.[_0x400a45(-0x1e8,-_0x1293f2._0x1db569,-0x1fd,-0x2c5)](_0x232940);if(_0x1f2799?.['size']===0x0)_0x1af893[_0x400a45(-_0x1293f2._0x13288f,-_0x1293f2._0x382654,-0x1c9,-0x17e)](_0x5b5323);function _0xc8b90e(_0x215a39,_0x5b8015,_0x464577,_0x551523){return _0x47bf(_0x464577-_0x174b3a._0x525341,_0x551523);}_0xa096a1();},timeoutMs);function _0x3c4fc1(_0x23fbbe,_0x4bf92e,_0x1c5278,_0x5669f3){return _0x40d508(_0x5669f3-_0x5a4ad9._0x43dbb3,_0x4bf92e-_0x5a4ad9._0x1a5a6c,_0x23fbbe,_0x5669f3-0x114);}const _0x232940=()=>{clearTimeout(_0x2425e8),_0xa096a1();},_0x472974=_0x1af893[_0x3c4fc1(_0x6eaf6f._0xa3e96,0x42d,0x2f0,0x365)](_0x5b5323)??new Set();_0x472974[_0x496c8d(_0x6eaf6f._0x97bce3,0x6ec,0x72a,_0x6eaf6f._0x40ca75)](_0x232940),_0x1af893[_0x496c8d(_0x6eaf6f._0x25a5d2,_0x6eaf6f._0x87ec65,0x404,0x21d)](_0x5b5323,_0x472974);});},async 'shutdown'(){const _0x79fb76={_0x403ae7:0xba,_0x3c2c0e:0x573};if(_0x1765a4)return;_0x1765a4=!![];function _0x274a6d(_0x4ab45c,_0x4174d2,_0x387c48,_0x529657){return _0x4f0b96(_0x4ab45c,_0x4174d2-_0x18993b._0x1d42fa,_0x4174d2- -0x110,_0x529657-0xd7);}function _0x32942c(_0x4cc841,_0x56eae9,_0xe88fdd,_0x52d6c5){return _0x214d2f(_0x4cc841-_0x79fb76._0x403ae7,_0x56eae9-0x164,_0x4cc841-_0x79fb76._0x3c2c0e,_0xe88fdd);}try{await _0x105f1e[_0x274a6d(0x1bb,_0x2e635e._0x492b3f,_0x2e635e._0x4dad62,_0x2e635e._0x7327de)](_0x32942c(_0x2e635e._0x4b482f,0x6c6,0x58b,0x621),null),_0x105f1e[_0x274a6d(_0x2e635e._0x1fd380,_0x2e635e._0xc68939,_0x2e635e._0x57bd84,_0x2e635e._0x544710)]('exit');}catch{}finally{_0x105f1e[_0x274a6d(0x31e,_0x2e635e._0x1c5c85,_0x2e635e._0x3749de,_0x2e635e._0x16056f)](),_0x3906ea['handle'][_0x274a6d(0x4fb,0x47d,_0x2e635e._0x3feaa0,0x55b)][_0x274a6d(0x50d,_0x2e635e._0x587e20,0x531,0x3dc)]();}}};return _0x42f23f;}import{spawn as _0x21602e}from'child_process';import{access as _0x386c3f}from'fs/promises';import _0x264ae7 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x431495 from'os';import _0x26b497 from'path';import _0x28e1e2 from'which';var installPromises=new Map();function sanitizePackageName(_0x576f7c){const _0x15425f={_0x146c2f:0x2b1},_0x588ec6={_0x34a133:0x34c,_0x34fa05:0x3};function _0x13ca77(_0x558322,_0x444e56,_0x598cbb,_0x34436b){return _0x691723(_0x444e56-_0x588ec6._0x34a133,_0x558322,_0x598cbb-_0x588ec6._0x34fa05,_0x34436b-0x1d2);}return _0x576f7c['replace'](/^@/,'')[_0x13ca77(0x1ec,_0x15425f._0x146c2f,0x274,0x346)](/[/]/g,'__');}function binaryNameForPlatform(_0x2985bc){const _0x523a0f={_0x21bb7d:0x483,_0x376fd2:0x4aa,_0x44a38f:0x4b9,_0x497a23:0x3d1,_0x59e3bb:0x5f4,_0x14d636:0x5e7,_0x1ce89e:0x572,_0x45e3e8:0x464,_0x4652ea:0x3dd},_0x3be7af={_0x32fa45:0x142};function _0x5c85ef(_0x4fe093,_0xe98348,_0x2efc2b,_0x202b1){return _0x691723(_0x2efc2b-0x660,_0xe98348,_0x2efc2b-0x15a,_0x202b1-0x192);}function _0x5ed7f6(_0x92a33e,_0x6cd897,_0x3f34d4,_0x1f0f48){return _0x691723(_0x92a33e-0x4c3,_0x3f34d4,_0x3f34d4-0xfc,_0x1f0f48-_0x3be7af._0x32fa45);}return process[_0x5ed7f6(0x4e3,_0x523a0f._0x21bb7d,_0x523a0f._0x376fd2,_0x523a0f._0x44a38f)]===_0x5ed7f6(0x520,_0x523a0f._0x497a23,_0x523a0f._0x59e3bb,_0x523a0f._0x14d636)?_0x2985bc+_0x5c85ef(_0x523a0f._0x1ce89e,0x59e,_0x523a0f._0x45e3e8,_0x523a0f._0x4652ea):_0x2985bc;}async function exists(_0x4397f2){try{return await access(_0x4397f2),!![];}catch{return![];}}function runNpmInstall(_0x32d9bc,_0x54af83,_0x2569cc){const _0x49c611={_0x1fe011:0x193,_0x341e29:0xb0,_0x41db31:0x146,_0x28094b:0x21f,_0x20e54c:0xb4,_0x25fc09:0x10a,_0x57cedb:0x1ac,_0x6a57f3:0x33,_0x6aede5:0xa3,_0x21a77d:0x3d,_0x31b8ec:0x1fc,_0xb89413:0x13e,_0x41320b:0x20d};return new Promise(_0x44c9ff=>{const _0x2ab6bc={_0x1041af:0x374};function _0x5140ba(_0xa62c90,_0x1a3d32,_0x387f16,_0x31ab9f){return _0x47bf(_0xa62c90- -0x1b0,_0x1a3d32);}const _0x37ca3a=spawn(_0xa6f1fb(-0x10c,-0xe9,0x1e,-0xf2),[_0xa6f1fb(-_0x49c611._0x1fe011,-_0x49c611._0x341e29,-_0x49c611._0x41db31,-_0x49c611._0x28094b),_0xa6f1fb(-_0x49c611._0x20e54c,-_0x49c611._0x25fc09,-0x4b,-_0x49c611._0x57cedb),_0x32d9bc,_0x54af83],{'env':_0x2569cc,'stdio':_0xa6f1fb(-0x48,_0x49c611._0x6a57f3,-_0x49c611._0x6aede5,_0x49c611._0x21a77d)});_0x37ca3a['on']('error',()=>_0x44c9ff(![]));function _0xa6f1fb(_0x115495,_0x51ff92,_0x409359,_0x115887){return _0x47bf(_0x115495- -_0x2ab6bc._0x1041af,_0x409359);}_0x37ca3a['on'](_0x5140ba(_0x49c611._0x31b8ec,0x1fd,_0x49c611._0xb89413,_0x49c611._0x41320b),_0x4ed41b=>_0x44c9ff(_0x4ed41b===0x0));});}function shouldDisableLspDownload(_0x4846e3=process[_0x691723(-0x152,-0x25a,-0x1ef,-0x74)]){const _0x59cd61={_0x1b6fc6:0x48a,_0x4b7e3d:0x50b,_0x5ab65f:0x330,_0x740107:0x422,_0x16a95f:0x506,_0x2b9c03:0x4a0},_0x37d90c={_0x3ecc4d:0x192},_0x36c986={_0x31f0cb:0x173,_0x5173a5:0x1e9},_0x591222=_0x4846e3[_0x3fd88a(0x455,_0x59cd61._0x1b6fc6,0x429,0x546)]?.['toLowerCase']();function _0x3fd88a(_0x24f7af,_0x3848bf,_0x13e089,_0x4a8fc5){return _0x2ff7d2(_0x3848bf- -_0x36c986._0x31f0cb,_0x4a8fc5,_0x13e089-0x34,_0x4a8fc5-_0x36c986._0x5173a5);}function _0x24cfcc(_0x35f6f6,_0x3f5406,_0x1bcff5,_0x1ef579){return _0x691723(_0x3f5406-0x2e5,_0x1ef579,_0x1bcff5-0x157,_0x1ef579-_0x37d90c._0x3ecc4d);}return _0x591222===_0x3fd88a(0x594,0x4be,_0x59cd61._0x4b7e3d,0x537)||_0x591222==='1'||_0x591222===_0x3fd88a(_0x59cd61._0x5ab65f,_0x59cd61._0x740107,_0x59cd61._0x16a95f,_0x59cd61._0x2b9c03)||_0x591222==='on';}function getLspPackageDir(_0x2ac315){const _0x6de687={_0x4cdf82:0x477,_0x37bc99:0x430,_0x2a2f35:0x346,_0x43297f:0x359,_0x3c3284:0x15a,_0xf43463:0x95,_0x5427d3:0xa1,_0x4a1829:0x273,_0x809080:0xa1,_0x51c6ad:0x1cc},_0x49f114={_0x178974:0x587},_0x42f709={_0x423340:0x495,_0x2fec86:0x16d,_0x33beb8:0x90};function _0x1a027e(_0x191a98,_0xa2915,_0x42410f,_0x453258){return _0x2ff7d2(_0x453258- -_0x42f709._0x423340,_0x191a98,_0x42410f-_0x42f709._0x2fec86,_0x453258-_0x42f709._0x33beb8);}function _0x42050b(_0x3d9761,_0x594413,_0x2444a8,_0x5ee2f4){return _0x691723(_0x3d9761-_0x49f114._0x178974,_0x594413,_0x2444a8-0x102,_0x5ee2f4-0xb5);}return _0x26b497[_0x42050b(_0x6de687._0x4cdf82,0x4ad,0x3d3,_0x6de687._0x37bc99)](_0x431495[_0x42050b(_0x6de687._0x2a2f35,_0x6de687._0x43297f,0x465,0x233)](),'.nuvin',_0x1a027e(_0x6de687._0x3c3284,_0x6de687._0xf43463,0x8d,_0x6de687._0x5427d3),_0x1a027e(_0x6de687._0x4a1829,_0x6de687._0x809080,0x204,_0x6de687._0x51c6ad),sanitizePackageName(_0x2ac315));}function getLspBinDir(_0x51f12c){const _0x350733={_0xadc59b:0x540,_0x5ec88e:0x4f6,_0x3645c9:0x4d4,_0x5dc3a1:0x52e,_0x3a065c:0x463},_0x107dff={_0xa0b94e:0x2b6,_0x14076b:0x176},_0xc97b19={_0x3dce31:0x1c7};function _0x107314(_0x556440,_0x2ee462,_0x343bd9,_0x110632){return _0x691723(_0x556440-0x5e7,_0x343bd9,_0x343bd9-_0xc97b19._0x3dce31,_0x110632-0x1da);}function _0x479ece(_0x5db71b,_0x2aacdd,_0x38d82b,_0x58b7ea){return _0x2ff7d2(_0x38d82b- -_0x107dff._0xa0b94e,_0x2aacdd,_0x38d82b-_0x107dff._0x14076b,_0x58b7ea-0x1f3);}return _0x26b497['join'](getLspPackageDir(_0x51f12c),_0x107314(_0x350733._0xadc59b,0x405,_0x350733._0x5ec88e,_0x350733._0x3645c9),_0x107314(0x442,0x407,_0x350733._0x5dc3a1,_0x350733._0x3a065c));}async function findPackageBinary(_0x41abcd,_0x584421){const _0x4ead1b={_0xb2de85:0x4c,_0xff6a12:0x10c,_0x239fab:0x46,_0x23f3af:0x62c,_0x32bcb0:0x552,_0x325b03:0x17b,_0x2479bd:0xa4,_0x18821e:0x103,_0x34a00a:0x4f,_0x27876d:0x173,_0x668951:0xb8},_0x556769={_0xcbd7b1:0x1b3},_0x4ed317={_0x3a5d2:0x86,_0x6eb29d:0x27};function _0x20a15e(_0x3e8e14,_0x436273,_0xf2e678,_0x3c6090){return _0x2ff7d2(_0x3e8e14-_0x4ed317._0x3a5d2,_0x3c6090,_0xf2e678-_0x4ed317._0x6eb29d,_0x3c6090-0x14a);}let _0x36c1b4=_0x26b497['resolve'](_0x584421);function _0x1cc61a(_0x207405,_0xb50130,_0xe85dd4,_0xa231ab){return _0x691723(_0xa231ab-0x156,_0xe85dd4,_0xe85dd4-0x1a8,_0xa231ab-_0x556769._0xcbd7b1);}const _0x26af6b=binaryNameForPlatform(_0x41abcd);while(!![]){const _0x5c40bc=_0x26b497[_0x1cc61a(0x140,_0x4ead1b._0xb2de85,_0x4ead1b._0xff6a12,_0x4ead1b._0x239fab)](_0x36c1b4,_0x20a15e(_0x4ead1b._0x23f3af,0x516,_0x4ead1b._0x32bcb0,0x6b6),_0x1cc61a(-_0x4ead1b._0x325b03,_0x4ead1b._0x2479bd,-_0x4ead1b._0x18821e,-_0x4ead1b._0x34a00a),_0x26af6b);if(await exists(_0x5c40bc))return _0x5c40bc;const _0x30ae65=_0x26b497[_0x1cc61a(-0x65,0x3,-_0x4ead1b._0x27876d,-_0x4ead1b._0x668951)](_0x36c1b4);if(_0x30ae65===_0x36c1b4)return void 0x0;_0x36c1b4=_0x30ae65;}}async function findPathBinary(_0x1f7b88,_0x195a6b){const _0x4afd04={_0x418508:0x1a0,_0x11e01d:0x10e,_0x490b74:0x608,_0x570eb9:0x51d,_0x3acc49:0x532,_0x20d7c7:0x4e5,_0x3270ab:0x62f,_0x4c1c1e:0x542},_0x1fe73d={_0xb6c728:0xfd},_0x52eb91={_0x40919b:0x96,_0x5c6941:0x1e},_0x62ffa0=getLspBinDir(_0x195a6b);function _0x1bfc8d(_0x1df17b,_0x1dc98b,_0x59a6a9,_0x54aefc){return _0x691723(_0x1dc98b-0x2a0,_0x1df17b,_0x59a6a9-_0x52eb91._0x40919b,_0x54aefc-_0x52eb91._0x5c6941);}function _0x5d2e8f(_0x4cf773,_0x4750ea,_0x59c14d,_0x3dd213){return _0x2ff7d2(_0x59c14d- -0xb,_0x3dd213,_0x59c14d-0xe5,_0x3dd213-_0x1fe73d._0xb6c728);}const _0x28e0f3=[_0x62ffa0,process['env'][_0x1bfc8d(_0x4afd04._0x418508,0x8f,_0x4afd04._0x11e01d,-0x32)]][_0x5d2e8f(0x655,0x5b2,_0x4afd04._0x490b74,0x61f)](Boolean)[_0x5d2e8f(_0x4afd04._0x570eb9,0x507,_0x4afd04._0x3acc49,_0x4afd04._0x20d7c7)](_0x26b497[_0x5d2e8f(0x596,_0x4afd04._0x3270ab,0x638,_0x4afd04._0x4c1c1e)]);try{return await _0x28e1e2(_0x1f7b88,{'path':_0x28e0f3});}catch{return void 0x0;}}async function resolvePackageBinary(_0x2acec6){const _0x13c140={_0x4b6396:0x301,_0x52f79b:0x37f,_0x4ec2c5:0x43e,_0x332b0:0x173,_0xed3f52:0x223,_0x4b5acf:0x312,_0x3000cc:0x391,_0x5e3aea:0x231,_0x401cd3:0x24c,_0xb6778c:0x232,_0x449f51:0x2c0,_0x50222a:0x1e7,_0x130951:0x1d1,_0x134e2a:0x1bc,_0x242174:0x9b,_0x395215:0x1cf,_0x5afa7b:0x166,_0x198d6e:0x2be,_0x56667b:0x310},_0x8950d9={_0x3139dc:0xbf,_0x2f4aee:0xfa,_0x6e1a44:0x1c4,_0x437b8c:0x64,_0x1eeb48:0x17a,_0x4d5382:0x13,_0x2408d2:0x483},_0xa95dc5={_0x5017a1:0x388,_0x130a16:0x166,_0x422ce3:0x9d},_0x1c4723={_0xa08b60:0x464,_0x157242:0x1b6},_0x346405=_0x2acec6[_0x59c026(_0x13c140._0x4b6396,0x2fa,_0x13c140._0x52f79b,0x450)]??_0x2acec6['packageName'],_0x2fa0a3=await findPackageBinary(_0x346405,_0x2acec6['startDir']);if(_0x2fa0a3)return _0x2fa0a3;const _0x49a87a=await findPathBinary(_0x346405,_0x2acec6[_0x5d709c(0x443,0x390,0x2a6,_0x13c140._0x4ec2c5)]);if(_0x49a87a)return _0x49a87a;const _0x86c2d4=_0x2acec6[_0x59c026(_0x13c140._0x332b0,0x298,_0x13c140._0xed3f52,0x156)]??process[_0x5d709c(0x2d2,_0x13c140._0x4b5acf,_0x13c140._0x3000cc,0x21b)];if(shouldDisableLspDownload(_0x86c2d4))return void 0x0;function _0x5d709c(_0x556b82,_0x37d7fc,_0x6dfa28,_0x1a9fbc){return _0x691723(_0x37d7fc-_0x1c4723._0xa08b60,_0x6dfa28,_0x6dfa28-_0x1c4723._0x157242,_0x1a9fbc-0xc5);}const _0x2a7d27=getLspPackageDir(_0x2acec6[_0x59c026(0x1f1,_0x13c140._0x5e3aea,_0x13c140._0x401cd3,0x28b)]),_0x3d4a90=_0x2acec6[_0x5d709c(0x35d,0x390,_0x13c140._0xb6778c,_0x13c140._0x449f51)]+':'+_0x346405;let _0x13eaae=installPromises[_0x59c026(_0x13c140._0x50222a,_0x13c140._0x130951,_0x13c140._0x134e2a,0x2c8)](_0x3d4a90);function _0x59c026(_0x1fd7f5,_0x18aa90,_0x4f71f6,_0x12ec50){return _0x2ff7d2(_0x1fd7f5- -_0xa95dc5._0x5017a1,_0x4f71f6,_0x4f71f6-_0xa95dc5._0x130a16,_0x12ec50-_0xa95dc5._0x422ce3);}!_0x13eaae&&(_0x13eaae=((async()=>{const _0xec6aff={_0x4a5554:0x130,_0x43980b:0x13d},_0x329e27={_0x4e8ab6:0x28};function _0x4dd6d5(_0x20f425,_0x4c78ca,_0xc8e9ea,_0xfe0663){return _0x5d709c(_0x20f425-_0x329e27._0x4e8ab6,_0x4c78ca- -0x296,_0xc8e9ea,_0xfe0663-0x4b);}await mkdir(_0x2a7d27,{'recursive':!![]});const _0x1656fa=await runNpmInstall(_0x2a7d27,_0x2acec6[_0x4dd6d5(_0x8950d9._0x3139dc,_0x8950d9._0x2f4aee,_0x8950d9._0x6e1a44,-_0x8950d9._0x437b8c)],_0x86c2d4);if(!_0x1656fa)return void 0x0;function _0x345868(_0x16f779,_0x467947,_0x13b530,_0x80883b){return _0x5d709c(_0x16f779-_0xec6aff._0x4a5554,_0x80883b-0x7c,_0x16f779,_0x80883b-_0xec6aff._0x43980b);}const _0x14d5c0=_0x26b497[_0x4dd6d5(_0x8950d9._0x1eeb48,0xbe,_0x8950d9._0x4d5382,0x22)](getLspBinDir(_0x2acec6[_0x345868(0x3f7,_0x8950d9._0x2408d2,0x55b,0x40c)]),binaryNameForPlatform(_0x346405));return await exists(_0x14d5c0)?_0x14d5c0:void 0x0;})()),installPromises[_0x59c026(_0x13c140._0x242174,0x1e0,_0x13c140._0x395215,_0x13c140._0x5afa7b)](_0x3d4a90,_0x13eaae));try{return await _0x13eaae;}catch{return void 0x0;}finally{installPromises[_0x5d709c(_0x13c140._0x198d6e,0x298,_0x13c140._0x56667b,0x35e)](_0x3d4a90);}}var TYPESCRIPT_EXTENSIONS=[_0x691723(-0x1ad,-0x290,-0x1a6,-0xd2),_0x691723(-0x162,-0xe1,-0x1e2,-0x1a1),_0x2ff7d2(0x44d,0x4bd,0x539,0x371),'.jsx',_0x691723(-0x1cf,-0x17c,-0x27a,-0x22b),_0x2ff7d2(0x5b6,0x6c8,0x484,0x470),_0x691723(-0x12f,-0x179,-0x254,-0xcb),_0x691723(-0xd8,-0x56,-0x53,-0x21d)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x691723(-0x26,0x100,-0xfd,-0xe7)],TYPESCRIPT_ROOT_MARKERS=[_0x691723(-0x3,0x12a,-0x10e,-0x63),_0x691723(0x21,0xc,0x10e,0x171),_0x2ff7d2(0x660,0x5d2,0x632,0x764),_0x2ff7d2(0x411,0x413,0x2e4,0x367),_0x2ff7d2(0x69e,0x57a,0x70d,0x7bc),'tsconfig.json',_0x691723(-0x87,0xb6,-0x1e1,-0x172),_0x691723(-0xd,0x65,0x93,-0x139)],BIOME_ROOT_MARKERS=[_0x2ff7d2(0x6be,0x660,0x59f,0x6cf),_0x2ff7d2(0x46c,0x599,0x47f,0x394),_0x691723(-0x3,0x88,0xd8,0x56),'bun.lockb',_0x2ff7d2(0x660,0x645,0x504,0x69e),_0x691723(-0x23c,-0x343,-0x29d,-0x215),'yarn.lock',_0x2ff7d2(0x640,0x6d2,0x79a,0x560)];async function exists2(_0x52172a){try{return await _0x386c3f(_0x52172a),!![];}catch{return![];}}async function findUp(_0xdf2dc4,_0x1407cc){const _0x1527ad={_0x5aa3b5:0x459,_0x41ebf6:0x4e9,_0x5d3d18:0x3c8,_0x24137a:0x4f4,_0x50d06a:0x488,_0x2d459b:0x3a1,_0x374e36:0x394,_0x407ff3:0x22c},_0x52440c={_0x2174d5:0xe},_0x4fc246={_0x3ee6e5:0xc6};function _0x202cc0(_0x288dda,_0x8b68e7,_0x334fcc,_0x1e4fdc){return _0x2ff7d2(_0x334fcc- -_0x4fc246._0x3ee6e5,_0x8b68e7,_0x334fcc-0x1e4,_0x1e4fdc-0xff);}function _0x499389(_0x1010cf,_0x41f152,_0x4a03a9,_0x12bd76){return _0x2ff7d2(_0x4a03a9- -0x19c,_0x12bd76,_0x4a03a9-0xd2,_0x12bd76-_0x52440c._0x2174d5);}let _0x52e17f=_0x264ae7[_0x499389(_0x1527ad._0x5aa3b5,0x642,0x4f7,_0x1527ad._0x41ebf6)](_0xdf2dc4);const _0x1733aa=_0x264ae7[_0x499389(0x2da,0x3f9,_0x1527ad._0x5d3d18,_0x1527ad._0x24137a)](_0x52e17f);if(_0x1733aa)_0x52e17f=_0x264ae7[_0x202cc0(0x3b5,0x2f0,0x379,0x318)](_0x52e17f);while(!![]){for(const _0x366450 of _0x1407cc){if(await exists2(_0x264ae7[_0x499389(_0x1527ad._0x50d06a,0x2fb,_0x1527ad._0x2d459b,0x25e)](_0x52e17f,_0x366450)))return _0x52e17f;}const _0x18bcb9=_0x264ae7[_0x202cc0(_0x1527ad._0x374e36,0x469,0x379,_0x1527ad._0x407ff3)](_0x52e17f);if(_0x18bcb9===_0x52e17f)return void 0x0;_0x52e17f=_0x18bcb9;}}async function hasDenoRoot(_0x29530d){const _0x50c32b={_0x58023a:0x427,_0x9ef05a:0x294,_0x31d80f:0x6be,_0x1c7505:0x6a3,_0x2a9441:0x377},_0x40955f={_0xe4a1b8:0x685,_0x27e202:0xe7,_0x14bbbc:0x10a},_0x1caa0d={_0xe3a831:0x37,_0x12217d:0x13b};function _0x35c101(_0xc515e5,_0x19ac7f,_0xd96ae8,_0x42e0b4){return _0x691723(_0x19ac7f-0x487,_0xc515e5,_0xd96ae8-_0x1caa0d._0xe3a831,_0x42e0b4-_0x1caa0d._0x12217d);}function _0x5cb3ae(_0x221f69,_0x2f6e89,_0x4d340a,_0x5e19d5){return _0x691723(_0x4d340a-_0x40955f._0xe4a1b8,_0x5e19d5,_0x4d340a-_0x40955f._0x27e202,_0x5e19d5-_0x40955f._0x14bbbc);}return await exists2(_0x264ae7[_0x35c101(_0x50c32b._0x58023a,0x377,_0x50c32b._0x9ef05a,0x32f)](_0x29530d,_0x5cb3ae(_0x50c32b._0x31d80f,0x6fc,_0x50c32b._0x1c7505,0x6ae)))||await exists2(_0x264ae7[_0x35c101(0x45b,_0x50c32b._0x2a9441,0x227,0x35e)](_0x29530d,_0x35c101(0x33c,0x323,0x3e1,0x329)));}async function resolveTsserverPath(_0x3b4a62){const _0x1c2357={_0x41f19c:0x109,_0xb31a6a:0x2bc,_0x46f3d0:0x1f,_0x113e7b:0x72,_0x3528ce:0x264,_0x48607e:0x1a0,_0x2e16d7:0x185,_0x247572:0xb3,_0x5d46eb:0x1f8,_0x19eba6:0x155,_0x987a0e:0x204,_0x4f4cda:0x8b,_0x49192c:0x21f,_0x17ae8a:0x17e,_0x1a16cb:0x43,_0x5ca8ef:0x34,_0x337e58:0x17e,_0x14c72a:0x66,_0x8e399c:0xfa,_0x24d096:0x2a7,_0x415a32:0x16,_0x449dc9:0x1a1,_0x1a6354:0xb8,_0x19113b:0x100,_0x1d907a:0x331,_0x1a8782:0xca,_0x3b5f68:0x285},_0x2cce07={_0x5f3c5f:0x62},_0x1ea69e={_0x195f24:0x13f,_0x463379:0x1a5};function _0x2bdead(_0x179882,_0xa722b9,_0x47d864,_0x36c7e4){return _0x691723(_0x47d864-0xa,_0xa722b9,_0x47d864-_0x1ea69e._0x195f24,_0x36c7e4-_0x1ea69e._0x463379);}let _0x4053f4=_0x264ae7[_0x25cfb9(-_0x1c2357._0x41f19c,-0x13,-0x51,-0x1c)](_0x3b4a62);while(!![]){const _0x580c89=_0x264ae7[_0x25cfb9(-_0x1c2357._0xb31a6a,-_0x1c2357._0x46f3d0,-0x258,-0x172)](_0x4053f4,_0x25cfb9(-0x96,-_0x1c2357._0x113e7b,-_0x1c2357._0x3528ce,-0x109),_0x2bdead(-_0x1c2357._0x48607e,-0x12d,-0x112,-_0x1c2357._0x2e16d7),_0x25cfb9(-0x285,-_0x1c2357._0x247572,-0x2f1,-_0x1c2357._0x5d46eb),_0x2bdead(-0x9a,-0x1f8,-_0x1c2357._0x19eba6,-_0x1c2357._0x113e7b));if(await exists2(_0x580c89))return _0x580c89;const _0x31750b=_0x264ae7[_0x2bdead(-0x119,-0xe1,-_0x1c2357._0x987a0e,-0x348)](_0x4053f4);if(_0x31750b===_0x4053f4)break;_0x4053f4=_0x31750b;}const _0x5ea4f4=getLspPackageDir(_0x25cfb9(-_0x1c2357._0x4f4cda,-0x14c,-_0x1c2357._0x49192c,-_0x1c2357._0x17ae8a)),_0x5aa4f9=await resolvePackageBinary({'packageName':_0x25cfb9(-_0x1c2357._0x1a16cb,-_0x1c2357._0x5ca8ef,-0x284,-_0x1c2357._0x337e58),'binaryName':_0x25cfb9(-_0x1c2357._0x14c72a,-_0x1c2357._0x8e399c,-0x1cb,-0x146),'startDir':_0x3b4a62});if(!_0x5aa4f9)return void 0x0;function _0x25cfb9(_0x5876c4,_0x2d4040,_0x14ba2f,_0x42d235){return _0x691723(_0x42d235- -_0x2cce07._0x5f3c5f,_0x5876c4,_0x14ba2f-0xcd,_0x42d235-0xd7);}const _0x4036c2=_0x264ae7[_0x25cfb9(-_0x1c2357._0x24d096,-0x22d,-0x163,-0x172)](_0x5ea4f4,_0x25cfb9(-0x25a,-0x137,_0x1c2357._0x415a32,-0x109),_0x2bdead(-_0x1c2357._0x449dc9,-_0x1c2357._0x1a6354,-0x112,-_0x1c2357._0x19113b),_0x25cfb9(-_0x1c2357._0x1d907a,-_0x1c2357._0x1a8782,-0x1a3,-_0x1c2357._0x5d46eb),_0x2bdead(-0x14e,-_0x1c2357._0x3b5f68,-0x155,-0x12a));return await exists2(_0x4036c2)?_0x4036c2:void 0x0;}var TypeScriptServer={'id':_0x2ff7d2(0x531,0x5bf,0x4eb,0x44d),'name':_0x2ff7d2(0x5bf,0x6ce,0x68e,0x4ca),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x530d8a){const _0xb5903b=await findUp(_0x530d8a,TYPESCRIPT_ROOT_MARKERS);if(!_0xb5903b)return void 0x0;return await hasDenoRoot(_0xb5903b)?void 0x0:_0xb5903b;},async 'spawn'(_0x53210c){const _0x3a479e={_0x5450b9:0x375,_0x53ad37:0x1b9,_0xa0f9d6:0x47},_0x38be39={_0xda8191:0x518,_0x3e2b2c:0x65},_0x4b25ad={_0x2ee3c8:0x319,_0x24e4a5:0x8d};function _0x174867(_0x264788,_0x3634d2,_0x27ae4c,_0x387e4d){return _0x691723(_0x3634d2-_0x4b25ad._0x2ee3c8,_0x27ae4c,_0x27ae4c-_0x4b25ad._0x24e4a5,_0x387e4d-0x169);}function _0x1adf1d(_0x3d5a8b,_0x5838b3,_0x43686b,_0x29bd8d){return _0x2ff7d2(_0x43686b- -_0x38be39._0xda8191,_0x29bd8d,_0x43686b-_0x38be39._0x3e2b2c,_0x29bd8d-0x4a);}const _0x271c1d=await resolveTsserverPath(_0x53210c);if(!_0x271c1d)return void 0x0;const _0x55e303=await resolvePackageBinary({'packageName':'typescript-language-server','binaryName':'typescript-language-server','startDir':_0x53210c});if(!_0x55e303)return void 0x0;return{'process':_0x21602e(_0x55e303,[_0x174867(_0x3a479e._0x5450b9,0x24f,0x1e8,_0x3a479e._0x53ad37)],{'cwd':_0x53210c,'stdio':_0x1adf1d(0xdc,0xda,0x62,-_0x3a479e._0xa0f9d6)}),'initialization':{'tsserver':{'path':_0x271c1d}}};}},BiomeServer={'id':'biome','name':'Biome\x20Language\x20Server','extensions':BIOME_EXTENSIONS,async 'root'(_0x228ab0){return findUp(_0x228ab0,BIOME_ROOT_MARKERS);},async 'spawn'(_0x328283){const _0x2cd72b={_0xb50bfb:0x416,_0x4add12:0x2fa,_0x542fbb:0x339},_0x17c20b={_0x22f94a:0x17a},_0x431335={_0x52ec52:0x173},_0x2da578=await findPackageBinary(_0x57a939(0x36e,_0x2cd72b._0xb50bfb,0x292,0x306),_0x328283)??await resolvePackageBinary({'packageName':_0x302b7b(_0x2cd72b._0x4add12,0x441,0x3ad,0x372),'binaryName':_0x57a939(0x36e,0x258,0x220,0x341),'startDir':_0x328283});function _0x57a939(_0x288e65,_0x4d1609,_0x18c4f0,_0x402bed){return _0x691723(_0x288e65-0x466,_0x18c4f0,_0x18c4f0-_0x431335._0x52ec52,_0x402bed-0x1e4);}if(!_0x2da578)return void 0x0;function _0x302b7b(_0x3caddb,_0x2c1e47,_0x4682b8,_0x59cb8e){return _0x2ff7d2(_0x4682b8- -_0x17c20b._0x22f94a,_0x2c1e47,_0x4682b8-0xda,_0x59cb8e-0xbd);}return{'process':_0x21602e(_0x2da578,[_0x302b7b(0x407,0x386,_0x2cd72b._0x542fbb,0x3d9),'--stdio'],{'cwd':_0x328283,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x341d75){const _0x33076b={_0x409e07:0x2c7,_0x53b00e:0x5fb,_0x2fc5ea:0x608,_0x43c83c:0x6b8},_0x203bf6={_0x13361a:0xcc};function _0x3764b6(_0xd2ac3f,_0x89b990,_0x9a5369,_0x50f52d){return _0x691723(_0x50f52d-0x3b0,_0x9a5369,_0x9a5369-0x198,_0x50f52d-0x4d);}const _0x5bff4c=_0x264ae7[_0x3764b6(0x323,0x356,0x1af,_0x33076b._0x409e07)](_0x341d75)[_0x1ce49e(0x5f1,_0x33076b._0x53b00e,_0x33076b._0x2fc5ea,_0x33076b._0x43c83c)]();function _0x1ce49e(_0x1eaf6d,_0x1c3498,_0x531057,_0x525a5c){return _0x2ff7d2(_0x1c3498-0x90,_0x525a5c,_0x531057-0x87,_0x525a5c-_0x203bf6._0x13361a);}return BUILTIN_LSP_SERVERS[_0x3764b6(0x353,0x27e,0x3f2,0x376)](_0x20776b=>_0x20776b[_0x1ce49e(0x5cc,0x4fd,0x553,0x609)][_0x3764b6(0x314,0x34d,0x2ef,0x416)](_0x5bff4c));}function stateKey(_0x38e5de,_0x1ea1df){return _0x1ea1df+':'+_0x38e5de['id'];}function diagnosticsKeyToPath(_0xd681b9){if(!_0xd681b9['startsWith']('file://'))return _0xd681b9;return fileURLToPath(_0xd681b9);}function nextFileVersion(_0x426ab5,_0x31b1f5){const _0xf3083f={_0x22ebb4:0x191,_0x32c46e:0x26b},_0x1c1b64={_0x1f07b2:0x220,_0x57171e:0x13},_0x51828c={_0x393be2:0x2,_0x52aaf0:0x1ab},_0x335638=(_0x426ab5[_0x6b274d(0x2b9,0x220,0x344,0x364)][_0x234161(0x387,0x1fe,0x465,0x32a)](_0x31b1f5)??0x1)+0x1;_0x426ab5['fileVersions'][_0x6b274d(_0xf3083f._0x22ebb4,0x203,_0xf3083f._0x32c46e,0x143)](_0x31b1f5,_0x335638);function _0x234161(_0x4d6852,_0x1eb3ff,_0x12a680,_0x12ed4b){return _0x2ff7d2(_0x12ed4b- -0x245,_0x4d6852,_0x12a680-_0x51828c._0x393be2,_0x12ed4b-_0x51828c._0x52aaf0);}function _0x6b274d(_0x21f263,_0x71a77d,_0x5db4ee,_0x3fad03){return _0x2ff7d2(_0x71a77d- -_0x1c1b64._0x1f07b2,_0x3fad03,_0x5db4ee-_0x1c1b64._0x57171e,_0x3fad03-0xbf);}return _0x335638;}async function collectClientResults(_0x14040a){const _0x36a77b={_0x47ade5:0x1b6,_0x38cb81:0x299,_0x3092e2:0x5de,_0x244416:0x6d3},_0x2ed774={_0x1cef0b:0x1d};function _0x136174(_0x4e6dd8,_0x28f563,_0x12a131,_0x2e56fd){return _0x2ff7d2(_0x12a131- -0x369,_0x28f563,_0x12a131-_0x2ed774._0x1cef0b,_0x2e56fd-0x87);}function _0x24190c(_0x48f26c,_0x513656,_0x6935b6,_0x4629d7){return _0x691723(_0x48f26c-0x645,_0x4629d7,_0x6935b6-0x14e,_0x4629d7-0x5c);}const _0x2ac8e7=await Promise[_0x136174(0x76,0x293,_0x36a77b._0x47ade5,_0x36a77b._0x38cb81)](_0x14040a);return _0x2ac8e7[_0x24190c(0x57a,0x442,_0x36a77b._0x3092e2,_0x36a77b._0x244416)](_0x1612ab=>_0x1612ab[_0x24190c(0x45c,0x3ca,0x475,0x3a1)]==='fulfilled'?_0x1612ab[_0x136174(0x149,0x15e,0x16d,0x16d)]:[]);}function createLspService(_0x4dc87a={}){const _0x524c2b={_0x57e695:0x20,_0x450da1:0xe2,_0x10aa16:0x597,_0x352f7d:0x4d8,_0x551751:0x439},_0x59069b={_0x37d6b9:0x14a},_0x20cece={_0x42c623:0x14b,_0x4667ec:0x29,_0x235ee8:0xae,_0x4f25e6:0x15,_0x1b5880:0xa4,_0x5ebb58:0x6c,_0x3af8e5:0x3a2,_0x23d1d8:0x4f5,_0x35585e:0x44a,_0x1b7013:0x369,_0x47c859:0x2ab,_0x249ba0:0x1ea,_0x13e397:0x160,_0x59e8f2:0x50d,_0x34480b:0x61c,_0x44262c:0x21d,_0x37d21b:0x13e,_0x5dad8e:0x471,_0x316687:0x334,_0x50213c:0x58b,_0x576b49:0x1bd,_0x4a6e74:0x2e2,_0x3e7b8:0x244,_0x259953:0x526,_0x569a10:0x39e},_0x2b0fba={_0x1b7c03:0x1b9,_0xc53706:0x5c},_0x22660a={_0xea2baf:0x138,_0x5b5d9e:0x126},_0x50ff83={_0x24bdf2:0x573,_0xe56621:0x552,_0x1aafcb:0x572,_0x59620d:0x4b4},_0x2ad9ff={_0xf74612:0x10d,_0x1a2cf4:0x2ba},_0x808bc={_0x2bb4eb:0x1b1,_0x3ae84e:0x90},_0x1ed543={_0xc3b16c:0x427,_0x5df7ae:0x93},_0x2e710a={_0x5c0fd7:0x3e},_0x57c0f3={_0xbc7b48:0x241,_0x31c066:0x2ec,_0x2e6159:0xe1,_0x3d1f37:0x6,_0x2b79d:0x5c},_0x25d27e={_0xacdf64:0x12f},_0x57df48={_0xd87d0d:0x38},_0x190781={_0x26c927:0x2b3,_0x44e064:0x2c3},_0x2efe8c={_0x3d3255:0x11e,_0x3fb2c0:0x132},_0x2bd1d2={_0x371e7f:0x4e5},_0x5d7c98={_0x4c7608:0x17d,_0x313028:0xe8,_0x1d0652:0x155},_0x4ed436={_0x230fa2:0x3b1},_0x442927={_0x1c66fd:0x15c},_0x40c2ee={_0x10bf17:0x27,_0x2c74b7:0x180},_0x467d93={_0x4ac992:0x295,_0x21d273:0x18b},_0x3284bb={_0x410217:0x652,_0xbc819a:0x67f,_0x2118fa:0x584,_0x525b02:0x450,_0x49a017:0x4ac},_0x11f788={_0x1e5966:0x1d1,_0x5998d8:0x2a1,_0x6110cb:0x343,_0x4ac141:0x31,_0x218679:0xd9},_0x3d3427={_0x13ee2d:0x9d,_0x161ef3:0x8a,_0x3f96cf:0x41,_0xadfe64:0x100,_0x299013:0xa4},_0x5e9adc={_0x40cbd9:0x38e},_0xa6c0c={_0x1d86e5:0x20c,_0x15aab6:0x8e},_0x2f2643={_0x2057d3:0x196},_0x407f67={_0x3b06f8:0x473,_0x23c68d:0x15c},_0x537f71={_0x5320ff:0x27c,_0x511c9a:0x1be,_0x5b8c86:0x95},_0x201a45={_0x1f50e8:0x18a},_0x14d449={_0xa4e872:0x23},_0x36fb84={_0x5f5d32:0xc7,_0x3c3557:0x42b,_0x2661cc:0x49c,_0x53dfe2:0x579,_0x3688d3:0x3cf},_0x264923={_0x2ceb3f:0x71,_0x4d5fa2:0x68a,_0x5823ca:0x56b,_0x3e1a1e:0x88,_0x7db4b0:0x29,_0x2af387:0x178,_0x47ac60:0x141,_0x2719fe:0xca,_0x4a730a:0xcb,_0x271047:0x77,_0x2910ea:0x151,_0x2d6794:0x9c,_0x3ad1c3:0x23,_0x5c418b:0x1c5,_0x174440:0x5db,_0x5bcc47:0x6b1,_0x5973db:0x5d0,_0x21ff24:0x532,_0xcab7ed:0x685,_0x2c861f:0x648,_0x594000:0x58f,_0x44dd64:0x15c,_0x428cd3:0x270,_0x44712b:0x19,_0x1fa244:0xfe,_0xfa70de:0x38},_0x3c491b={_0x2624c5:0x1e0},_0x69e13a={_0xd29019:0x99,_0x198513:0x2f,_0x3d958e:0x64a,_0x124872:0x4f4,_0x47f571:0x468,_0x51e41a:0x1fc,_0x4f261e:0x194},_0x4ed486={_0x384668:0x5f7,_0x2f2b7c:0x5a8,_0x2159c2:0x682,_0x4152d2:0x684,_0xb2338b:0x59b,_0x4ba69f:0x6f5,_0x3251c5:0x792,_0x5e49cf:0x15d,_0x1d1c35:0x268,_0x27daec:0x4a6,_0x19f1d9:0x32a,_0x4bf81a:0x431,_0x153fb1:0x3e9,_0x1915d9:0x472,_0x1fa4c2:0x569,_0x4083e4:0x2a3,_0x3f1556:0x365,_0x3fc5f9:0x395},_0x188422={_0x199318:0x2b7,_0xeebcdc:0x389,_0x634a09:0x223,_0x286da1:0x308,_0x385930:0x203,_0x55bb44:0xd8,_0x2c3982:0xe9,_0xe0ee97:0x46,_0x19ecc2:0x79,_0x39cbdc:0xf3,_0x29dfce:0xa0,_0x4ce134:0x83,_0x280499:0x1da,_0x25b37e:0x1a0,_0x45fe0c:0xe0,_0x562a08:0x25e},_0xd6d17c={_0x1f072f:0x25d,_0x5c66b1:0x8f,_0x434591:0x1ee},_0x5855a0={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x130628=()=>_0x4dc87a[_0x52400b(0x22f,0x35f,0x1d8,0x16c)]!==![];async function _0x440832(_0x2cc23a,_0x204275){const _0x327ead={_0x4d1fc3:0x45a,_0x4a6214:0x9e,_0x453566:0x11},_0x184866={_0x361068:0x10e,_0x51ed19:0x13b},_0x34484f=stateKey(_0x2cc23a,_0x204275);function _0x1415e4(_0xb21ae9,_0x31d1dd,_0x1bbf2e,_0x519581){return _0x52400b(_0x31d1dd-_0xd6d17c._0x1f072f,_0x31d1dd-_0xd6d17c._0x5c66b1,_0x1bbf2e-_0xd6d17c._0x434591,_0x1bbf2e);}const _0x3edf1a=_0x5855a0[_0x1415e4(_0x4ed486._0x384668,_0x4ed486._0x2f2b7c,_0x4ed486._0x2159c2,0x6ad)]['find'](_0x168618=>_0x168618[_0x379079(0x50b,0x541,0x40b,0x665)]===_0x2cc23a['id']&&_0x168618[_0x379079(0x30b,0x304,0x312,0x3a4)]===_0x204275);function _0x379079(_0x5a78df,_0x13e882,_0x2b1851,_0x3ff3f0){return _0x52400b(_0x5a78df-0x8c,_0x13e882-_0x184866._0x361068,_0x2b1851-_0x184866._0x51ed19,_0x2b1851);}if(_0x3edf1a)return _0x3edf1a;if(_0x5855a0[_0x1415e4(0x6bc,_0x4ed486._0x4152d2,_0x4ed486._0xb2338b,0x62d)][_0x1415e4(0x54f,0x634,_0x4ed486._0x4ba69f,_0x4ed486._0x3251c5)](_0x34484f))return void 0x0;const _0x279ba3=_0x5855a0[_0x379079(0x2a1,_0x4ed486._0x5e49cf,_0x4ed486._0x1d1c35,0x1a0)][_0x379079(0x3ef,_0x4ed486._0x27daec,_0x4ed486._0x19f1d9,_0x4ed486._0x4bf81a)](_0x34484f);if(_0x279ba3)return _0x279ba3;const _0x20c63a=((async()=>{const _0x1a0a73={_0x410bf4:0x232,_0x5349c0:0x1b1};function _0x2a9d02(_0x54f358,_0x545bf7,_0x36af2f,_0x4bb5c3){return _0x379079(_0x545bf7- -_0x327ead._0x4d1fc3,_0x545bf7-_0x327ead._0x4a6214,_0x54f358,_0x4bb5c3-_0x327ead._0x453566);}function _0x4ab4a9(_0x4977da,_0x515066,_0x3e350a,_0xe203cf){return _0x379079(_0x3e350a- -_0x1a0a73._0x410bf4,_0x515066-_0x1a0a73._0x5349c0,_0x4977da,_0xe203cf-0xbc);}try{const _0x1a9d6a=await _0x2cc23a[_0x2a9d02(-0x16f,-0x5f,0x37,0xa6)](_0x204275);if(!_0x1a9d6a)return _0x5855a0[_0x4ab4a9(_0x188422._0x199318,0x34d,0x281,_0x188422._0xeebcdc)][_0x4ab4a9(0x1e1,_0x188422._0x634a09,_0x188422._0x286da1,0x39f)](_0x34484f),void 0x0;const _0x4ed452=await createLspClient({'server':_0x2cc23a,'root':_0x204275,'handle':_0x1a9d6a}),_0xc3632e=_0x5855a0['clients'][_0x4ab4a9(0xc5,_0x188422._0x385930,_0x188422._0x55bb44,_0x188422._0x2c3982)](_0x27f848=>_0x27f848[_0x4ab4a9(0x22d,0x208,0x2d9,0x21a)]===_0x2cc23a['id']&&_0x27f848[_0x2a9d02(-0x248,-0x14f,-0x245,-0x1f8)]===_0x204275);if(_0xc3632e)return await _0x4ed452[_0x2a9d02(-_0x188422._0xe0ee97,_0x188422._0x19ecc2,_0x188422._0x39cbdc,0x4a)](),_0xc3632e;return _0x5855a0[_0x2a9d02(_0x188422._0x29dfce,-_0x188422._0x4ce134,-0x13b,-_0x188422._0x280499)]['push'](_0x4ed452),_0x4ed452;}catch{return _0x5855a0['broken'][_0x2a9d02(_0x188422._0x25b37e,_0x188422._0x45fe0c,0x51,0x1fc)](_0x34484f),void 0x0;}finally{_0x5855a0[_0x2a9d02(-_0x188422._0x562a08,-0x1b9,-0xee,-0x27b)]['delete'](_0x34484f);}})());return _0x5855a0[_0x1415e4(_0x4ed486._0x153fb1,_0x4ed486._0x1915d9,0x446,_0x4ed486._0x1fa4c2)][_0x379079(_0x4ed486._0x4083e4,_0x4ed486._0x3f1556,_0x4ed486._0x3fc5f9,0x277)](_0x34484f,_0x20c63a),_0x20c63a;}async function _0x437bdd(_0x153aac,_0x433cb6){const _0xdd3b40={_0x16aaf1:0x11d,_0x5a6c41:0x143},_0x2109f6={_0x4218b2:0x427};if(!_0x130628())return[];function _0x1940bb(_0x499e2d,_0x27c194,_0x1b009d,_0x17d664){return _0x52400b(_0x17d664- -_0x2109f6._0x4218b2,_0x27c194-0x17f,_0x1b009d-0x11d,_0x1b009d);}function _0x1bb3a2(_0x2a71cf,_0x303abc,_0xf05927,_0x20d678){return _0x52400b(_0x20d678-_0xdd3b40._0x16aaf1,_0x303abc-_0xdd3b40._0x5a6c41,_0xf05927-0x22,_0xf05927);}const _0x228a04=[];for(const _0x15b792 of getServersForFile(_0x153aac)){const _0x3f84a0=await _0x15b792['root'](_0x153aac);if(!_0x3f84a0)continue;const _0x2db485=stateKey(_0x15b792,_0x3f84a0);if(_0x5855a0[_0x1940bb(-0x6d,_0x69e13a._0xd29019,-_0x69e13a._0x198513,0x0)][_0x1bb3a2(_0x69e13a._0x3d958e,0x3a9,0x5af,_0x69e13a._0x124872)](_0x2db485))continue;const _0x148e72=_0x5855a0[_0x1bb3a2(0x310,0x5ba,0x526,_0x69e13a._0x47f571)]['find'](_0x5a8ce1=>_0x5a8ce1[_0x1940bb(0xd6,-0x7e,0x191,0x58)]===_0x15b792['id']&&_0x5a8ce1[_0x1bb3a2(0x241,0x443,0x325,0x39c)]===_0x3f84a0);if(_0x148e72){_0x228a04['push'](_0x148e72);continue;}if(!_0x433cb6)continue;const _0x4d6e56=await _0x440832(_0x15b792,_0x3f84a0);if(_0x4d6e56)_0x228a04[_0x1940bb(-_0x69e13a._0x51e41a,-0x188,-0x77,-_0x69e13a._0x4f261e)](_0x4d6e56);}return _0x228a04;}async function _0x25bff7(_0x4038c5,_0x551b49=![]){const _0x27a25d={_0x3f52ef:0xd3,_0x4e8316:0x1e6},_0x574ed6={_0x458e91:0x399,_0xa508c3:0xa9},_0x58f941=await _0x437bdd(_0x4038c5,!![]);function _0x566c2b(_0x30981c,_0x209cdc,_0x55efcf,_0x34f436){return _0x52400b(_0x30981c- -0x5e,_0x209cdc-0x1e3,_0x55efcf-0x13,_0x34f436);}function _0x5ba884(_0x3c1085,_0x2a6829,_0x50ff7e,_0x30b76a){return _0x52400b(_0x2a6829-_0x3c491b._0x2624c5,_0x2a6829-0x21,_0x50ff7e-0xb,_0x3c1085);}await Promise[_0x566c2b(0x219,_0x36fb84._0x5f5d32,0xe7,0x187)](_0x58f941[_0x5ba884(_0x36fb84._0x3c3557,_0x36fb84._0x2661cc,_0x36fb84._0x53dfe2,_0x36fb84._0x3688d3)](async _0x2b3751=>{!_0x5855a0[_0x4e6991(0x9c,_0x264923._0x2ceb3f,-0x6a,0x8c)][_0x2ce6dc(0x660,_0x264923._0x4d5fa2,_0x264923._0x5823ca,0x5e3)](_0x2b3751[_0x4e6991(_0x264923._0x3e1a1e,-0x10,_0x264923._0x7db4b0,-0x8)]+':'+_0x2b3751[_0x4e6991(-_0x264923._0x2af387,-_0x264923._0x47ac60,-_0x264923._0x2719fe,-_0x264923._0x4a730a)]+':'+_0x4038c5)&&(await _0x2b3751['notify'][_0x4e6991(-_0x264923._0x271047,-0x148,0x4d,-_0x264923._0x2910ea)]({'path':_0x4038c5}),_0x5855a0[_0x4e6991(_0x264923._0x2d6794,_0x264923._0x3ad1c3,_0x264923._0x5c418b,0x12f)]['add'](_0x2b3751[_0x2ce6dc(_0x264923._0x174440,0x732,0x6c7,_0x264923._0x5bcc47)]+':'+_0x2b3751[_0x2ce6dc(_0x264923._0x5973db,_0x264923._0x21ff24,_0x264923._0xcab7ed,_0x264923._0x2c861f)]+':'+_0x4038c5));await _0x2b3751[_0x2ce6dc(0x66c,_0x264923._0x594000,0x514,_0x264923._0x5973db)][_0x4e6991(-_0x264923._0x44dd64,-_0x264923._0x428cd3,-_0x264923._0x44712b,-_0x264923._0x1fa244)]({'path':_0x4038c5,'version':nextFileVersion(_0x5855a0,_0x4038c5)});function _0x4e6991(_0xd0aa87,_0x17f1c9,_0x512ad9,_0x2b6e8a){return _0x566c2b(_0xd0aa87- -_0x574ed6._0x458e91,_0x17f1c9-_0x574ed6._0xa508c3,_0x512ad9-0x1c9,_0x17f1c9);}function _0x2ce6dc(_0x5b0755,_0x287fcd,_0x40ed2d,_0x5c6781){return _0x5ba884(_0x40ed2d,_0x287fcd-_0x27a25d._0x3f52ef,_0x40ed2d-_0x27a25d._0x4e8316,_0x5c6781-0x4e);}if(_0x551b49)await _0x2b3751[_0x4e6991(-0x7b,0x13,-0x54,_0x264923._0xfa70de)]({'path':_0x4038c5});}));}async function _0x6235be(_0x25fcb6){function _0x1035c3(_0x5779db,_0x168d10,_0x55a2b8,_0x28c750){return _0x52400b(_0x28c750- -0x3dc,_0x168d10-0x10c,_0x55a2b8-_0x14d449._0xa4e872,_0x168d10);}function _0x151e60(_0x157223,_0x575a28,_0x39e992,_0x311e1c){return _0x52400b(_0x39e992- -0x47e,_0x575a28-_0x201a45._0x1f50e8,_0x39e992-0x4b,_0x575a28);}return await _0x25bff7(_0x25fcb6[_0x151e60(-0x16e,-_0x537f71._0x5320ff,-_0x537f71._0x511c9a,-0x2a3)],![]),_0x437bdd(_0x25fcb6[_0x151e60(-0x227,-0x249,-0x1be,-_0x537f71._0x5b8c86)],![]);}async function _0x4dc876(_0x42b143){const _0x4aac81={_0xd22ca5:0x18f,_0x45dd30:0x89},_0x4c6cbf=await _0x6235be(_0x42b143);function _0x4c54ee(_0x1b666a,_0x526aff,_0x2156ff,_0x13a723){return _0x52400b(_0x2156ff- -0x3f4,_0x526aff-_0x4aac81._0xd22ca5,_0x2156ff-_0x4aac81._0x45dd30,_0x13a723);}function _0x316a6a(_0x376a1f,_0x5c65af,_0x110871,_0x700a17){return _0x52400b(_0x5c65af- -_0x407f67._0x3b06f8,_0x5c65af-_0x407f67._0x23c68d,_0x110871-0x44,_0x700a17);}return collectClientResults(_0x4c6cbf[_0x4c54ee(-_0x2f2643._0x2057d3,-0x18b,-0x138,-0x1c2)](_0x35af78=>_0x35af78[_0x316a6a(-0xc9,-0x28,0xb4,-0x35)][_0x4c54ee(-0x92,-0xe2,-0x64,0xaa)](_0x42b143)));}function _0x52400b(_0x1222c3,_0x18556e,_0x22cb06,_0x1df9a0){return _0x2ff7d2(_0x1222c3- -_0xa6c0c._0x1d86e5,_0x1df9a0,_0x22cb06-_0xa6c0c._0x15aab6,_0x1df9a0-0x77);}return{'isEnabled':_0x130628,async 'hasClients'(_0x5c3351){const _0x8c6904={_0x19e5ba:0xf2};function _0xe847e5(_0xe48862,_0x4e779e,_0x2f65a8,_0x3678cf){return _0x52400b(_0x4e779e- -0x270,_0x4e779e-0x31,_0x2f65a8-_0x8c6904._0x19e5ba,_0xe48862);}function _0x472157(_0x25e516,_0x1e0e9f,_0x266eb5,_0x308995){return _0x52400b(_0x266eb5- -_0x5e9adc._0x40cbd9,_0x1e0e9f-0x157,_0x266eb5-0x1bd,_0x308995);}return(await _0x437bdd(_0x5c3351,![]))[_0x472157(-0x26,_0x3d3427._0x13ee2d,-0x58,-_0x3d3427._0x161ef3)]>0x0||getServersForFile(_0x5c3351)[_0x472157(_0x3d3427._0x3f96cf,-_0x3d3427._0xadfe64,-0x58,-_0x3d3427._0x299013)]>0x0;},'touchFile':_0x25bff7,async 'diagnostics'(){const _0x145232={_0x43ffea:0x341},_0x5c13b3={};for(const _0x2a27ba of _0x5855a0[_0x326878(0x280,_0x11f788._0x1e5966,_0x11f788._0x5998d8,_0x11f788._0x6110cb)]){for(const [_0x2a0ef7,_0x4e484c]of _0x2a27ba[_0x3e90e6(-0x3d,-_0x11f788._0x4ac141,-0x1c3,-_0x11f788._0x218679)]){_0x5c13b3[diagnosticsKeyToPath(_0x2a0ef7)]=_0x4e484c;}}function _0x3e90e6(_0x715307,_0x1a0851,_0xdfd07c,_0x3ede68){return _0x52400b(_0x3ede68- -_0x145232._0x43ffea,_0x1a0851-0x103,_0xdfd07c-0x80,_0x1a0851);}function _0x326878(_0x11dae0,_0x31a185,_0x542b3e,_0x3a4a3b){return _0x52400b(_0x542b3e- -0xaa,_0x31a185-0x163,_0x542b3e-0x1,_0x3a4a3b);}return _0x5c13b3;},async 'diagnosticsForFile'(_0x4f2302){const _0x15521a={_0x55fbe3:0x31c,_0x3d2549:0x170};await _0x25bff7(_0x4f2302,!![]);function _0x393266(_0x26dbe0,_0x4fb505,_0x1fb42c,_0x26a674){return _0x52400b(_0x26a674- -0x41a,_0x4fb505-0x3a,_0x1fb42c-0x72,_0x1fb42c);}function _0x20568d(_0x23cdce,_0x1cc6ee,_0xda79c6,_0x2772f2){return _0x52400b(_0xda79c6-_0x15521a._0x55fbe3,_0x1cc6ee-_0x15521a._0x3d2549,_0xda79c6-0xb7,_0x2772f2);}const _0x45f560=[];for(const _0x15c09b of await _0x437bdd(_0x4f2302,![])){for(const [_0x133066,_0x2ec20a]of _0x15c09b[_0x20568d(_0x3284bb._0x410217,_0x3284bb._0xbc819a,_0x3284bb._0x2118fa,_0x3284bb._0x525b02)]){if(diagnosticsKeyToPath(_0x133066)===_0x4f2302)_0x45f560[_0x20568d(0x6f5,_0x3284bb._0x49a017,0x5af,0x47a)](..._0x2ec20a);}}return _0x45f560;},async 'definition'(_0x4ae802){function _0x4c86fb(_0x344fc3,_0x2fbb7e,_0x2f3ca8,_0x47cb6c){return _0x52400b(_0x2f3ca8-0xf2,_0x2fbb7e-0x61,_0x2f3ca8-0x4b,_0x47cb6c);}function _0x4a21a3(_0x27e113,_0x3484ec,_0x11cd94,_0x57012a){return _0x52400b(_0x27e113- -_0x467d93._0x4ac992,_0x3484ec-0x1b1,_0x11cd94-_0x467d93._0x21d273,_0x57012a);}return collectClientResults((await _0x6235be(_0x4ae802))[_0x4a21a3(_0x40c2ee._0x10bf17,0x111,-0x81,_0x40c2ee._0x2c74b7)](_0x30f21=>_0x30f21[_0x4c86fb(0x59e,0x445,0x53d,0x4ef)][_0x4a21a3(0x169,0x7c,0x127,0xcb)](_0x4ae802)));},async 'references'(_0x5aed70){function _0x2e173a(_0x654858,_0x3e6432,_0x363372,_0x11b3f1){return _0x52400b(_0x363372- -0x6a,_0x3e6432-_0x442927._0x1c66fd,_0x363372-0xab,_0x11b3f1);}function _0x23350a(_0x584ef5,_0x59d94c,_0x26419c,_0x34c25e){return _0x52400b(_0x59d94c-0x113,_0x59d94c-0x190,_0x26419c-0x103,_0x26419c);}return collectClientResults((await _0x6235be(_0x5aed70))[_0x2e173a(_0x4ed436._0x230fa2,0x211,0x252,0x13e)](_0xc3442f=>_0xc3442f[_0x23350a(0x583,0x55e,0x5b8,0x5de)]['references'](_0x5aed70)));},async 'hover'(_0x8b724f){function _0x171953(_0x1fc94e,_0x7b4045,_0x2b8dca,_0x524cf7){return _0x52400b(_0x1fc94e-_0x5d7c98._0x4c7608,_0x7b4045-_0x5d7c98._0x313028,_0x2b8dca-_0x5d7c98._0x1d0652,_0x524cf7);}function _0x2359ab(_0x50a075,_0x18461f,_0x90cc77,_0x533f02){return _0x52400b(_0x90cc77-0x9c,_0x18461f-0xae,_0x90cc77-0x17f,_0x18461f);}const _0x1df019=await Promise['allSettled']((await _0x6235be(_0x8b724f))['map'](_0x51d0b7=>_0x51d0b7[_0x2359ab(0x406,0x3df,0x4e7,0x571)][_0x2359ab(0x5ab,0x5b0,0x471,0x3b3)](_0x8b724f)));return _0x1df019[_0x171953(0x4f3,0x3a5,0x50c,_0x2bd1d2._0x371e7f)](_0x1707c4=>_0x1707c4[_0x171953(0x3d5,0x2fb,0x4f1,0x41f)]===_0x171953(0x58a,0x42d,0x53a,0x6a2)&&_0x1707c4['value']?[_0x1707c4['value']]:[]);},async 'documentSymbol'(_0x4c1f5b){const _0x5224a9={_0x496179:0x1b4,_0x5d65bd:0x7c};function _0x32e550(_0x4c7e79,_0x4db140,_0x4bfa7f,_0x59fc27){return _0x52400b(_0x59fc27- -_0x5224a9._0x496179,_0x4db140-_0x5224a9._0x5d65bd,_0x4bfa7f-0x4f,_0x4c7e79);}function _0x1f7d66(_0x12556d,_0x16ed2a,_0x52d1c3,_0x2b70ca){return _0x52400b(_0x2b70ca- -_0x2efe8c._0x3d3255,_0x16ed2a-0x16f,_0x52d1c3-_0x2efe8c._0x3fb2c0,_0x16ed2a);}return await _0x25bff7(_0x4c1f5b,![]),collectClientResults((await _0x437bdd(_0x4c1f5b,![]))[_0x1f7d66(_0x190781._0x26c927,_0x190781._0x44e064,0x8a,0x19e)](_0x5cea34=>_0x5cea34[_0x32e550(0x1d9,0x353,0x235,0x297)][_0x32e550(0x1ce,0x26,0xb5,0xb7)](_0x4c1f5b)));},async 'workspaceSymbol'(_0x2680de){function _0x598c7a(_0x79bb0d,_0x2d4415,_0x5cd795,_0x591d36){return _0x52400b(_0x5cd795- -0x10a,_0x2d4415-0x141,_0x5cd795-_0x57df48._0xd87d0d,_0x2d4415);}function _0x1ad646(_0x309489,_0x244c8b,_0x59e196,_0x21126f){return _0x52400b(_0x59e196- -0x260,_0x244c8b-_0x25d27e._0xacdf64,_0x59e196-0x12c,_0x309489);}return collectClientResults(_0x5855a0[_0x598c7a(0x159,0x31d,_0x57c0f3._0xbc7b48,_0x57c0f3._0x31c066)][_0x1ad646(-_0x57c0f3._0x2e6159,-_0x57c0f3._0x3d1f37,_0x57c0f3._0x2b79d,0xee)](_0x43e77d=>_0x43e77d[_0x598c7a(0x42b,0x391,0x341,0x277)][_0x598c7a(0x24e,0x1fd,0x2f2,0x199)](_0x2680de)));},async 'implementation'(_0x23cb40){function _0x5ea043(_0x5c8279,_0x5a7279,_0x49f1ae,_0x49613a){return _0x52400b(_0x5c8279-0x1af,_0x5a7279-0x192,_0x49f1ae-_0x2e710a._0x5c0fd7,_0x49f1ae);}function _0xc25f0d(_0x38240f,_0x31cd68,_0x395ae6,_0x92be6d){return _0x52400b(_0x31cd68- -_0x1ed543._0xc3b16c,_0x31cd68-_0x1ed543._0x5df7ae,_0x395ae6-0x1d2,_0x92be6d);}return collectClientResults((await _0x6235be(_0x23cb40))['map'](_0x274708=>_0x274708[_0x5ea043(0x5fa,0x74c,0x747,0x53f)][_0x5ea043(0x3ce,0x32b,0x35f,0x45f)](_0x23cb40)));},async 'prepareCallHierarchy'(_0x179369){return _0x4dc876(_0x179369);},async 'incomingCalls'(_0xd5cfe8){const _0x22551e={_0x3ab249:0x64},_0x492da0=await _0x4dc876(_0xd5cfe8),_0x18b642=await _0x6235be(_0xd5cfe8);function _0x6ac076(_0x31ac11,_0x53fcf8,_0xc0b546,_0x2b4dee){return _0x52400b(_0x2b4dee- -0x48f,_0x53fcf8-0x107,_0xc0b546-_0x22551e._0x3ab249,_0x31ac11);}function _0x33c017(_0x20250a,_0x457ab8,_0x1effe8,_0x4ea563){return _0x52400b(_0x457ab8- -_0x808bc._0x2bb4eb,_0x457ab8-_0x808bc._0x3ae84e,_0x1effe8-0x193,_0x1effe8);}return collectClientResults(_0x18b642[_0x33c017(_0x2ad9ff._0xf74612,0x1c5,_0x2ad9ff._0x1a2cf4,0x1aa)](_0x22c731=>_0x492da0[_0x6ac076(-0x1a2,-0x26d,-0x287,-0x1d3)](_0x517dc1=>_0x22c731[_0x33c017(0x285,0x29a,0x37f,0x13f)][_0x6ac076(-0x89,-0xe0,-0x191,-0x6c)](_0x517dc1))));},async 'outgoingCalls'(_0x1e4ef5){const _0x2592fc={_0xcad99a:0xf1},_0x1857bf={_0x49e79a:0x433,_0x3ea194:0xb3};function _0x2ba3f6(_0xc41cb4,_0x31d4c8,_0x537b70,_0x3ddced){return _0x52400b(_0x31d4c8- -_0x1857bf._0x49e79a,_0x31d4c8-0x1d3,_0x537b70-_0x1857bf._0x3ea194,_0x3ddced);}function _0x3a712e(_0x5b78ed,_0x5c7ddc,_0x166cd7,_0x12ec08){return _0x52400b(_0x166cd7-0x1fc,_0x5c7ddc-0x199,_0x166cd7-_0x2592fc._0xcad99a,_0x5b78ed);}const _0x1c084a=await _0x4dc876(_0x1e4ef5),_0x146ed2=await _0x6235be(_0x1e4ef5);return collectClientResults(_0x146ed2[_0x3a712e(_0x50ff83._0x24bdf2,_0x50ff83._0xe56621,_0x50ff83._0x1aafcb,_0x50ff83._0x59620d)](_0x24854c=>_0x1c084a[_0x3a712e(0x3e8,0x478,0x4b8,0x4ca)](_0x44c647=>_0x24854c['request'][_0x3a712e(0x40e,0x4e8,0x50a,0x48e)](_0x44c647))));},async 'shutdown'(){if(_0x5855a0[_0x14e977(_0x20cece._0x42c623,_0x20cece._0x4667ec,-0x3e,_0x20cece._0x235ee8)])return;_0x5855a0[_0x14e977(-_0x20cece._0x4f25e6,-_0x20cece._0x1b5880,-_0x20cece._0x5ebb58,0xae)]=!![],await Promise['allSettled'](_0x5855a0['clients'][_0x350dfc(_0x20cece._0x3af8e5,_0x20cece._0x23d1d8,_0x20cece._0x35585e,0x366)](_0x35ccdd=>_0x35ccdd[_0x350dfc(0x52d,0x58c,0x503,0x4b4)]())),_0x5855a0[_0x350dfc(0x431,0x4d0,0x302,_0x20cece._0x1b7013)]=[],_0x5855a0[_0x350dfc(0x2fb,_0x20cece._0x47c859,0x21d,0x440)][_0x14e977(_0x20cece._0x249ba0,0x261,_0x20cece._0x13e397,0x13c)]();function _0x14e977(_0x2a532e,_0x5db539,_0x44237f,_0x32f209){return _0x52400b(_0x32f209- -0x24f,_0x5db539-_0x22660a._0xea2baf,_0x44237f-_0x22660a._0x5b5d9e,_0x5db539);}function _0x350dfc(_0x374eb4,_0x3f2e56,_0xc2de70,_0x3106cc){return _0x52400b(_0x374eb4-0xe6,_0x3f2e56-_0x2b0fba._0x1b7c03,_0xc2de70-_0x2b0fba._0xc53706,_0x3f2e56);}_0x5855a0[_0x350dfc(_0x20cece._0x59e8f2,_0x20cece._0x34480b,0x5bc,0x5f3)][_0x14e977(_0x20cece._0x44262c,0xa1,_0x20cece._0x37d21b,0x13c)](),_0x5855a0['fileVersions'][_0x350dfc(_0x20cece._0x5dad8e,_0x20cece._0x316687,_0x20cece._0x50213c,0x59a)](),_0x5855a0[_0x14e977(0x141,_0x20cece._0x576b49,_0x20cece._0x4a6e74,_0x20cece._0x3e7b8)][_0x350dfc(0x471,_0x20cece._0x259953,_0x20cece._0x569a10,0x325)]();},'status'(){const _0x2d16a5={_0x4799c7:0x261};function _0x391ad7(_0x7e3bec,_0x500962,_0x1554a2,_0x12a467){return _0x52400b(_0x500962-_0x2d16a5._0x4799c7,_0x500962-0x1de,_0x1554a2-0x22,_0x7e3bec);}function _0x5d87b5(_0x5bd076,_0x2964d5,_0x134c5d,_0x4c15c4){return _0x52400b(_0x134c5d- -0x42d,_0x2964d5-_0x59069b._0x37d6b9,_0x134c5d-0xba,_0x5bd076);}return{'connectedClients':_0x5855a0[_0x5d87b5(-0xbf,-_0x524c2b._0x57e695,-_0x524c2b._0x450da1,_0x524c2b._0x57e695)][_0x391ad7(0x54e,_0x524c2b._0x10aa16,_0x524c2b._0x352f7d,_0x524c2b._0x551751)]};}};}function createQuestionId(){const _0x581111={_0x8d506:0x171,_0x48037c:0x3d9,_0x530b23:0x4ba,_0x19fe32:0x578,_0x31f5d1:0x55d,_0x4b5c99:0x459,_0x4652f0:0x692,_0x8688b7:0xcb,_0x1bcb64:0x2a3,_0x264b9b:0xc6,_0x4323c7:0x188},_0x21da56={_0x79a66a:0x109};function _0x4a7182(_0x5fa271,_0x236912,_0x125249,_0x11fda8){return _0x2ff7d2(_0x11fda8- -0x2be,_0x125249,_0x125249-0x1a3,_0x11fda8-0x136);}function _0x5b3d57(_0x537d7d,_0x3f9373,_0x3eeed9,_0x416456){return _0x2ff7d2(_0x537d7d-0x14,_0x416456,_0x3eeed9-0x1b1,_0x416456-_0x21da56._0x79a66a);}return _0x4a7182(_0x581111._0x8d506,_0x581111._0x48037c,0x280,0x29b)+Date[_0x5b3d57(0x4e2,_0x581111._0x530b23,0x62a,_0x581111._0x19fe32)]()+'-'+Math[_0x5b3d57(_0x581111._0x31f5d1,_0x581111._0x4b5c99,_0x581111._0x4652f0,0x638)]()[_0x4a7182(_0x581111._0x8688b7,_0x581111._0x1bcb64,_0x581111._0x264b9b,_0x581111._0x4323c7)](0x24)[_0x4a7182(0x3fd,0x2b8,0x2a3,0x2fa)](0x2,0x9);}function validateInput(_0x28c59f){const _0x3cbe38={_0x33f994:0xb5,_0x35440c:0x210,_0x5d0565:0x14b,_0x2b7228:0x79,_0x245931:0x69,_0x2a8909:0x44,_0xa4105d:0x19c,_0xe34711:0xda,_0x56a6b7:0x68a,_0x2742dc:0x7da,_0x466882:0x72f,_0x46f86a:0xb3,_0x12d1a9:0x14e,_0x17bbd4:0x1d0,_0x18cfd5:0x66d,_0x2a81a9:0x781,_0x2a13cb:0x68a,_0x3a60be:0x761,_0x1c318e:0x546,_0x5f4232:0x662,_0xa64f4:0x60f,_0x532056:0xf9,_0x35df87:0x6b0,_0x3b92e6:0x52d,_0x1ebb84:0x637,_0x3736c2:0x483,_0x1a2c66:0x1e,_0x32da75:0x6b2,_0x33449d:0x563,_0x2c4a34:0x65a,_0x608199:0x53d,_0x1ac8bc:0x54,_0x2609ba:0x146,_0x53e6fc:0x6e1,_0x3b61e1:0x705,_0x3d5259:0x1ba,_0x14b6ee:0x255,_0x84860e:0x6c,_0x44dc8e:0x60,_0xf562e6:0x179,_0x4c18be:0x598,_0x30789a:0x5cf,_0x2f75d1:0x557,_0x1eb38f:0x553,_0x5ce805:0x4be,_0x202464:0x593,_0x4b35c1:0x437,_0xc08ec2:0x5ef,_0x528b74:0x505,_0x1b2e4f:0x593,_0x4708e9:0x722,_0x2db613:0x735,_0x4665f4:0x681,_0x4ac100:0x5a9,_0x1a72d8:0x553,_0x3544f5:0x445,_0x45424f:0x5ac,_0x2efffd:0x4ce,_0x1c81e2:0x572,_0x152224:0x65e,_0x3485bb:0x713,_0x37d12b:0x4ff,_0x56c525:0x551,_0x57ccb1:0x556},_0x137a07={_0x21335f:0x586},_0x6e0354={_0x1d99b3:0x66e,_0x43696e:0xbb};function _0x13ed46(_0x1e6e06,_0x56e577,_0x51cd57,_0x34fb8e){return _0x691723(_0x1e6e06-_0x6e0354._0x1d99b3,_0x34fb8e,_0x51cd57-0x1dd,_0x34fb8e-_0x6e0354._0x43696e);}function _0x3b27f4(_0x26cf0b,_0x436d80,_0x1f96d6,_0x3f93f1){return _0x2ff7d2(_0x26cf0b- -_0x137a07._0x21335f,_0x3f93f1,_0x1f96d6-0xab,_0x3f93f1-0x1a8);}if(!Array[_0x3b27f4(-_0x3cbe38._0x33f994,-_0x3cbe38._0x35440c,-_0x3cbe38._0x5d0565,-0x19f)](_0x28c59f[_0x3b27f4(0xe3,0x6d,_0x3cbe38._0x2b7228,-_0x3cbe38._0x245931)])||_0x28c59f['questions'][_0x3b27f4(-_0x3cbe38._0x2a8909,-0x180,-_0x3cbe38._0xa4105d,-_0x3cbe38._0xe34711)]<0x1||_0x28c59f[_0x13ed46(_0x3cbe38._0x56a6b7,0x7c9,_0x3cbe38._0x2742dc,_0x3cbe38._0x466882)]['length']>0xa)throw new ToolExecutionError(_0x3b27f4(_0x3cbe38._0x46f86a,_0x3cbe38._0x12d1a9,0xa6,_0x3cbe38._0x17bbd4),{'error':_0x13ed46(_0x3cbe38._0x18cfd5,_0x3cbe38._0x2a81a9,0x64e,0x7ca)});for(let _0x6c948f=0x0;_0x6c948f<_0x28c59f[_0x13ed46(_0x3cbe38._0x2a13cb,_0x3cbe38._0x3a60be,_0x3cbe38._0x1c318e,0x749)][_0x13ed46(0x563,_0x3cbe38._0x5f4232,_0x3cbe38._0xa64f4,0x57e)];_0x6c948f+=0x1){const _0x1b29f0=_0x28c59f['questions'][_0x6c948f];if(!_0x1b29f0[_0x3b27f4(0x35,0xbe,0x4a,_0x3cbe38._0x532056)]||typeof _0x1b29f0['question']!==_0x13ed46(0x5f1,0x67d,_0x3cbe38._0x35df87,_0x3cbe38._0x3b92e6))throw new ToolExecutionError('Question\x20'+(_0x6c948f+0x1)+_0x13ed46(0x61c,0x4e3,_0x3cbe38._0x1ebb84,0x683));if(!_0x1b29f0['topic']||typeof _0x1b29f0[_0x13ed46(_0x3cbe38._0x3736c2,0x559,0x4bd,0x35a)]!==_0x3b27f4(0x4a,0x131,0xee,_0x3cbe38._0x1a2c66))throw new ToolExecutionError('Question\x20'+(_0x6c948f+0x1)+_0x13ed46(0x645,0x63a,0x61d,_0x3cbe38._0x32da75));if(_0x1b29f0['topic'][_0x13ed46(_0x3cbe38._0x33449d,_0x3cbe38._0x2c4a34,_0x3cbe38._0x608199,0x4d7)]>0x1e)throw new ToolExecutionError(_0x3b27f4(-_0x3cbe38._0x1ac8bc,0x99,-_0x3cbe38._0x2609ba,-0xd4)+(_0x6c948f+0x1)+_0x13ed46(_0x3cbe38._0x53e6fc,0x7cb,0x592,_0x3cbe38._0x3b61e1)+_0x1b29f0[_0x3b27f4(-0x124,-0x1b0,-_0x3cbe38._0x3d5259,-_0x3cbe38._0x14b6ee)][_0x3b27f4(-0x44,_0x3cbe38._0x84860e,_0x3cbe38._0x44dc8e,-_0x3cbe38._0xf562e6)]);if(!Array['isArray'](_0x1b29f0[_0x13ed46(0x593,0x66c,0x534,_0x3cbe38._0x4c18be)])||_0x1b29f0[_0x13ed46(0x593,0x5da,_0x3cbe38._0x30789a,0x57a)][_0x13ed46(0x563,0x655,_0x3cbe38._0x2f75d1,0x61d)]<0x2||_0x1b29f0['options']['length']>0x4)throw new ToolExecutionError(_0x13ed46(_0x3cbe38._0x1eb38f,0x425,_0x3cbe38._0x5ce805,0x524)+(_0x6c948f+0x1)+_0x3b27f4(0xf4,0x107,0x172,-0x1f));for(let _0x4a88dc=0x0;_0x4a88dc<_0x1b29f0[_0x13ed46(_0x3cbe38._0x202464,0x624,0x6d8,_0x3cbe38._0x4b35c1)][_0x13ed46(0x563,_0x3cbe38._0xc08ec2,_0x3cbe38._0x528b74,0x6aa)];_0x4a88dc+=0x1){const _0x4910fe=_0x1b29f0[_0x13ed46(_0x3cbe38._0x1b2e4f,0x440,0x443,_0x3cbe38._0x53e6fc)][_0x4a88dc];if(!_0x4910fe[_0x13ed46(0x5e4,_0x3cbe38._0x4708e9,_0x3cbe38._0x2db613,_0x3cbe38._0x4665f4)]||!_0x4910fe[_0x13ed46(0x4f1,_0x3cbe38._0x4ac100,0x5b8,0x4bb)])throw new ToolExecutionError(_0x13ed46(_0x3cbe38._0x1a72d8,_0x3cbe38._0x3544f5,_0x3cbe38._0x4b35c1,_0x3cbe38._0x45424f)+(_0x6c948f+0x1)+_0x13ed46(0x60f,_0x3cbe38._0x2efffd,0x688,_0x3cbe38._0x1c81e2)+(_0x4a88dc+0x1)+_0x13ed46(_0x3cbe38._0x152224,0x687,_0x3cbe38._0x3485bb,0x57f));}if(typeof _0x1b29f0['multiSelect']!=='boolean')throw new ToolExecutionError(_0x13ed46(0x553,0x5ee,_0x3cbe38._0x37d12b,0x58a)+(_0x6c948f+0x1)+_0x13ed46(_0x3cbe38._0x56c525,0x48c,0x60c,_0x3cbe38._0x57ccb1));}}function buildQuestions(_0xae0241){const _0xf63ef7={_0x22decf:0x2e9,_0x2e0584:0x190,_0x1f1e94:0xd1,_0x2c5757:0x73},_0x208425={_0x4ba2ee:0xb4},_0x1df11a={_0x5dfb00:0x77};function _0x43fb9e(_0x127d57,_0x1a8ddc,_0x57a4e7,_0x5e5380){return _0x2ff7d2(_0x127d57- -0x46a,_0x5e5380,_0x57a4e7-0x11e,_0x5e5380-_0x1df11a._0x5dfb00);}function _0x27627c(_0x36a99c,_0x4182bb,_0x41f922,_0x1c45dc){return _0x691723(_0x41f922-_0x208425._0x4ba2ee,_0x1c45dc,_0x41f922-0x5f,_0x1c45dc-0x11c);}return _0xae0241[_0x43fb9e(0x1ff,0x2da,0xbf,_0xf63ef7._0x22decf)][_0x27627c(-_0xf63ef7._0x2e0584,-0x67,-_0xf63ef7._0x1f1e94,-_0xf63ef7._0x2c5757)]((_0x1c6133,_0x80b44a)=>({'id':'q'+_0x80b44a,'question':_0x1c6133[_0x27627c(0x8e,0x14e,0x22,0x17)],'topic':_0x1c6133['topic'],'options':_0x1c6133[_0x27627c(-0x37,0xab,-0x27,-0x54)],'multiSelect':_0x1c6133[_0x27627c(-0x22,0x27,0x5b,0x136)]}));}function createResult(_0x464437,_0x5b12e5,_0x5d5440){const _0x580aa6={_0x1ddde0:0x718,_0xdbada3:0x6a6,_0xe54506:0x305,_0xa7a838:0x2bb,_0x59d351:0x201},_0x57b439={_0x35147d:0x67,_0x1f38e5:0x7b},_0x14c8a2={'questionId':_0x464437,'questionCount':_0x5b12e5,'answers':_0x5d5440};function _0x204bc5(_0x235b1f,_0x1b9329,_0x4055e7,_0x17972a){return _0x691723(_0x1b9329-0x289,_0x235b1f,_0x4055e7-0x1b7,_0x17972a-0x98);}function _0x240171(_0x5a83e3,_0x5310b3,_0x355421,_0x21d1f6){return _0x2ff7d2(_0x5310b3-_0x57b439._0x35147d,_0x21d1f6,_0x355421-_0x57b439._0x1f38e5,_0x21d1f6-0xd6);}return createToolOutput(_0x240171(0x77d,0x620,_0x580aa6._0x1ddde0,_0x580aa6._0xdbada3)+JSON[_0x204bc5(_0x580aa6._0xe54506,_0x580aa6._0xa7a838,0x2f6,_0x580aa6._0x59d351)](_0x5d5440,null,0x2),_0x14c8a2);}function createAskUserTool(){const _0x5d583c={_0xd7f632:0x533,_0x4f41a3:0x642,_0x32cfca:0x5ce,_0x112062:0x45f,_0x506956:0x406,_0x324abf:0x5dd,_0x189a60:0x6a7,_0x279398:0x5c1,_0x26f2e8:0x524,_0x493ea0:0x4e4,_0x433e6c:0x616,_0x3f9547:0x599,_0x585446:0x6bd,_0x1b5703:0x583,_0x30b388:0x6b2,_0x43c784:0x65a,_0x385c2f:0x443,_0x4e50f3:0x69f,_0x23fdc8:0x57d,_0x392e52:0x5c5,_0x59c494:0x67a,_0x4ff3e2:0x52c,_0x37e81f:0x609,_0x4196a1:0x658,_0x186668:0x560,_0x2f715b:0x446,_0xb82284:0x5a1,_0x9ddea9:0x49a,_0xf7b5da:0x4b0,_0xd77f02:0x696,_0x7ded1c:0x641,_0x21537f:0x680},_0x37ea63={_0x29b0e4:0xef,_0x418791:0x8b,_0x29efc4:0x1d,_0xcb3b1d:0x502,_0x12c89b:0x3d4,_0x20d3cb:0x21f,_0x39caa1:0x61d,_0x4115a8:0x829,_0x1f9111:0x1c,_0x397ba2:0x48,_0x4adeb6:0x9b,_0x16a018:0x108,_0x5f3f97:0x57b,_0x49a71f:0x6eb,_0xfa6687:0x751,_0x4afe2d:0x5ab,_0x57fe07:0x53b},_0x1fd1e2={_0x29c9ac:0xfe},_0x49801d={_0x37c0a5:0x53,_0x56310e:0xa5,_0x31e3d6:0xd6},_0xdef0f={_0xc17696:0x693,_0x5e1bc8:0x1b5,_0x3a44b0:0x103};function _0x35608f(_0x30e2fa,_0x4f52ce,_0x571325,_0x465703){return _0x691723(_0x465703-_0xdef0f._0xc17696,_0x4f52ce,_0x571325-_0xdef0f._0x5e1bc8,_0x465703-_0xdef0f._0x3a44b0);}function _0x2dbaa9(_0x2a82b3,_0x280369,_0x6a4879,_0x3d87e3){return _0x2ff7d2(_0x6a4879- -_0x49801d._0x37c0a5,_0x3d87e3,_0x6a4879-_0x49801d._0x56310e,_0x3d87e3-_0x49801d._0x31e3d6);}return defineTool({'name':_0x2dbaa9(0x6bc,_0x5d583c._0xd7f632,_0x5d583c._0x4f41a3,_0x5d583c._0x32cfca),'description':_0x2dbaa9(_0x5d583c._0x112062,0x37f,_0x5d583c._0x506956,0x2be),'inputSchema':{'type':_0x2dbaa9(_0x5d583c._0x324abf,_0x5d583c._0x189a60,_0x5d583c._0x279398,0x4d9),'properties':{'questions':{'type':_0x2dbaa9(0x3e1,_0x5d583c._0x26f2e8,0x426,_0x5d583c._0x493ea0),'items':{'type':'object','properties':{'question':{'type':_0x35608f(0x64c,0x502,0x6ba,_0x5d583c._0x433e6c)},'topic':{'type':_0x35608f(_0x5d583c._0x3f9547,0x70f,0x5bd,0x616)},'options':{'type':'array','items':{'type':_0x35608f(_0x5d583c._0x585446,_0x5d583c._0x1b5703,_0x5d583c._0x30b388,_0x5d583c._0x43c784),'properties':{'label':{'type':_0x2dbaa9(_0x5d583c._0x385c2f,_0x5d583c._0x4e50f3,_0x5d583c._0x23fdc8,0x5b6)},'description':{'type':_0x2dbaa9(_0x5d583c._0x392e52,0x47f,0x57d,0x563)}},'required':[_0x35608f(_0x5d583c._0x59c494,0x6bc,_0x5d583c._0x4ff3e2,_0x5d583c._0x37e81f),'description']}},'multiSelect':{'type':_0x35608f(_0x5d583c._0x4196a1,0x486,0x693,0x569)}},'required':[_0x35608f(0x63f,0x6c3,_0x5d583c._0x186668,0x601),'topic','options',_0x2dbaa9(_0x5d583c._0x2f715b,0x556,_0x5d583c._0xb82284,_0x5d583c._0x9ddea9)]}},'answers':{'type':_0x2dbaa9(_0x5d583c._0xf7b5da,_0x5d583c._0xd77f02,0x5c1,_0x5d583c._0x7ded1c),'properties':{}}},'required':[_0x2dbaa9(0x669,0x6e8,_0x5d583c._0x433e6c,_0x5d583c._0x21537f)]},async *'execute'(_0x15cbf6,_0x51d1cc){const _0x51c336=_0x15cbf6;validateInput(_0x51c336);const _0x39b6a5=_0x51d1cc[_0x17f0f1(_0x37ea63._0x29b0e4,_0x37ea63._0x418791,0x138,_0x37ea63._0x29efc4)]??createQuestionId();function _0x17f0f1(_0x405a88,_0x919326,_0x511b7d,_0x40a3c0){return _0x35608f(_0x405a88-_0x1fd1e2._0x29c9ac,_0x40a3c0,_0x511b7d-0x61,_0x405a88- -0x57f);}if(_0x51c336[_0x2f774c(_0x37ea63._0xcb3b1d,_0x37ea63._0x12c89b,0x3b4,0x3cb)]&&Object[_0x17f0f1(0x188,0x25f,0x276,_0x37ea63._0x20d3cb)](_0x51c336[_0x2f774c(0x502,0x3d7,_0x37ea63._0x39caa1,0x63f)])['length']>0x0)return createResult(_0x39b6a5,_0x51c336[_0x2f774c(0x6d2,0x782,0x697,_0x37ea63._0x4115a8)]['length'],_0x51c336['answers']);if(!_0x51d1cc[_0x17f0f1(-_0x37ea63._0x1f9111,-_0x37ea63._0x397ba2,_0x37ea63._0x4adeb6,0xe7)])throw new ToolExecutionError('Context\x20does\x20not\x20support\x20user\x20questions');const _0x22b1a9=buildQuestions(_0x51c336);function _0x2f774c(_0x883fdd,_0x456334,_0x2fa868,_0x611f04){return _0x2dbaa9(_0x883fdd-0x7d,_0x456334-0x1af,_0x883fdd-0xbc,_0x456334);}const _0x8418c=await _0x51d1cc[_0x17f0f1(-0x1c,0xc6,_0x37ea63._0x16a018,-0x15b)]({'questionId':_0x39b6a5,'questions':_0x22b1a9});yield createResult(_0x39b6a5,_0x51c336[_0x2f774c(0x6d2,_0x37ea63._0x5f3f97,_0x37ea63._0x49a71f,_0x37ea63._0xfa6687)][_0x2f774c(_0x37ea63._0x4afe2d,_0x37ea63._0x57fe07,0x5c4,0x4bc)],_0x8418c);}});}import{spawn as _0x110602}from'child_process';import{statSync}from'fs';import*as _0x3ce38d from'os';import*as _0x7fdbc7 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x33915e from'path';function isPathInside(_0x375fae,_0x5d81b4){const _0x35cfac={_0x590e42:0xef,_0x4a25d2:0x1e9,_0x4056fb:0xeb,_0x1ca4ce:0x55d,_0x1ad0f8:0x6f5,_0x729911:0x78f,_0x3b354c:0x8cb,_0x47e8cc:0x86d,_0x1a137e:0x8f,_0x4fe27a:0x16a},_0x515e69={_0x34d0e4:0x1a,_0x2bd0f2:0x13d},_0x51c74f={_0x4846e8:0x75f,_0x4e89b4:0x117},_0x10cc52=_0x33915e[_0xc31ed(_0x35cfac._0x590e42,0xc7,_0x35cfac._0x4a25d2,_0x35cfac._0x4056fb)](_0x375fae);function _0xd150d6(_0x48b316,_0x20f004,_0x12a161,_0xab53b){return _0x691723(_0x48b316-_0x51c74f._0x4846e8,_0xab53b,_0x12a161-_0x51c74f._0x4e89b4,_0xab53b-0x179);}const _0x1ad86b=_0x33915e[_0xd150d6(0x65c,_0x35cfac._0x1ca4ce,0x630,_0x35cfac._0x1ad0f8)](_0x10cc52,_0x5d81b4);function _0xc31ed(_0x303712,_0x5216e8,_0x8f477,_0x29d414){return _0x691723(_0x29d414-0xa5,_0x8f477,_0x8f477-_0x515e69._0x34d0e4,_0x29d414-_0x515e69._0x2bd0f2);}return _0x1ad86b===''||!_0x1ad86b[_0xd150d6(_0x35cfac._0x729911,_0x35cfac._0x3b354c,_0x35cfac._0x47e8cc,0x807)]('..')&&!_0x33915e[_0xc31ed(-0x131,-0x64,-_0x35cfac._0x1a137e,-_0x35cfac._0x4fe27a)](_0x1ad86b);}function resolveWorkspacePath(_0x85b73f,_0x59f319){return resolveAllowedPath(_0x85b73f,[],_0x59f319);}function resolveAllowedPath(_0x55cfa5,_0x291deb,_0x2445c1){const _0xb3b76e={_0x5d1026:0x8,_0x265f66:0x70,_0x531e2d:0x6a,_0x4f25fc:0xd1,_0x2a8965:0x49},_0x502c0d={_0x2bad73:0x418,_0x3c4774:0x10},_0x565e02={_0x3a0862:0x11b};function _0x828de4(_0x1e1a68,_0x12bd01,_0x3edb99,_0x3b2582){return _0x691723(_0x3edb99-_0x565e02._0x3a0862,_0x1e1a68,_0x3edb99-0x27,_0x3b2582-0xee);}const _0xe112ed=_0x33915e['resolve'](_0x55cfa5),_0x515aad=_0x33915e['resolve'](_0xe112ed,_0x2445c1),_0x20117f=[_0xe112ed,..._0x291deb[_0x828de4(-_0xb3b76e._0x5d1026,_0xb3b76e._0x265f66,-_0xb3b76e._0x531e2d,_0xb3b76e._0x4f25fc)](_0x34448c=>_0x33915e[_0x828de4(0x31,0x152,0x161,0x221)](_0x34448c))];if(_0x20117f['some'](_0x1449aa=>isPathInside(_0x1449aa,_0x515aad)))return _0x515aad;function _0x136d14(_0x453be7,_0xf56977,_0x521191,_0x614ae){return _0x691723(_0x521191-_0x502c0d._0x2bad73,_0x614ae,_0x521191-0xc,_0x614ae-_0x502c0d._0x3c4774);}throw new ToolExecutionError(_0x828de4(_0xb3b76e._0x2a8965,-0x1c,0x42,0xfe)+_0x2445c1,{'path':_0x2445c1,'rootDir':_0xe112ed,'allowedDirs':_0x20117f});}async function assertWorkspaceFile(_0x1e278d){const _0x5206d4={_0x4bbf88:0x1bc,_0x56e260:0x15b,_0x3942e5:0x189},_0x188e13={_0x1f7b1e:0x1da,_0x25d42e:0x11f},_0x5cf582={_0x1bc0ae:0x188};function _0x517f9f(_0x576646,_0x24d8bc,_0x1cbcbd,_0x4f4886){return _0x2ff7d2(_0x4f4886- -0x500,_0x576646,_0x1cbcbd-0x65,_0x4f4886-_0x5cf582._0x1bc0ae);}function _0x5db822(_0x4d2924,_0x551621,_0x1f384c,_0x300044){return _0x691723(_0x4d2924-_0x188e13._0x1f7b1e,_0x551621,_0x1f384c-0x1c1,_0x300044-_0x188e13._0x25d42e);}const _0x53b06e=await stat(_0x1e278d);if(!_0x53b06e[_0x5db822(0x127,0x265,_0x5206d4._0x4bbf88,0x282)]())throw new ToolExecutionError(_0x5db822(_0x5206d4._0x56e260,0x161,0x5e,_0x5206d4._0x3942e5)+_0x1e278d,{'path':_0x1e278d});}function isProbablyBinary(_0x46dec1){const _0x1e5bf2={_0x3fcb0c:0x3ee,_0x2b0497:0x43f},_0x4cbede={_0x39ac9e:0x196};function _0x58e4c7(_0x481fe5,_0x5cc611,_0x4fc33b,_0x242640){return _0x2ff7d2(_0x4fc33b- -_0x4cbede._0x39ac9e,_0x481fe5,_0x4fc33b-0x1bd,_0x242640-0x182);}return _0x46dec1[_0x58e4c7(0x54e,_0x1e5bf2._0x3fcb0c,0x51d,_0x1e5bf2._0x2b0497)](0x0);}var DEFAULT_DESCRIPTION='Execute\x20a\x20shell\x20command\x20with\x20timeout\x20protection.\x20Captures\x20stdout\x20and\x20stderr.\x20Do\x20not\x20use\x20for\x20interactive\x20commands\x20that\x20require\x20user\x20input.\x20Do\x20not\x20use\x20for\x20reading\x20files\x20(use\x20FileRead\x20instead).',DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x21ab5d){return _0x21ab5d instanceof Error;}function shellExists(_0x2b5bdd){try{const _0x147e37=statSync(_0x2b5bdd);return _0x147e37['isFile']()&&(_0x147e37['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x5a6f7d){const _0x69d67d={_0x22954b:0x14d,_0x3c184c:0x1c7,_0x4e07c9:0xa6,_0x92260a:0x12b,_0x1f8801:0xed,_0x5d55b3:0xe3,_0x22b37a:0x28,_0x306831:0x11c,_0x493702:0x8,_0x477dc4:0x100,_0x3b6843:0x19b,_0x105043:0xe3,_0x317c02:0x56,_0x1984e1:0xba,_0x2a285a:0xfd,_0x83659e:0x1b0,_0xb49099:0xaa,_0x1e93be:0xc8,_0x150daa:0x36,_0x36753b:0x37},_0x57cf75={_0x1bc9cc:0x1e6},_0xb9925d={_0x149d87:0x57f};if(_0x5a6f7d)return _0x5a6f7d;function _0x28eb69(_0x312ca3,_0x4545e8,_0x229149,_0x329b7a){return _0x2ff7d2(_0x329b7a- -_0xb9925d._0x149d87,_0x4545e8,_0x229149-0x140,_0x329b7a-0x10f);}if(_0x3ce38d[_0x4e7ca7(_0x69d67d._0x22954b,0x28a,_0x69d67d._0x3c184c,0x1bb)]()===_0x28eb69(0x21f,_0x69d67d._0x4e07c9,0x247,_0x69d67d._0x92260a))return process['env'][_0x28eb69(0x9c,0x19a,0x213,0xe5)]||_0x28eb69(0x4e,-_0x69d67d._0x1f8801,-0xcc,-_0x69d67d._0x5d55b3);const _0x2dc29f=[_0x4e7ca7(_0x69d67d._0x22b37a,_0x69d67d._0x306831,_0x69d67d._0x493702,_0x69d67d._0x477dc4),_0x4e7ca7(_0x69d67d._0x3b6843,0x1d8,0x6e,_0x69d67d._0x105043),_0x4e7ca7(_0x69d67d._0x317c02,0xbb,-0x2f,_0x69d67d._0x1984e1),'/usr/bin/sh'];function _0x4e7ca7(_0xb86ef7,_0x4ee328,_0x4b2316,_0x2f0213){return _0x691723(_0xb86ef7-0x12d,_0x2f0213,_0x4b2316-0x196,_0x2f0213-_0x57cf75._0x1bc9cc);}for(const _0x41ff9c of _0x2dc29f){if(shellExists(_0x41ff9c))return _0x41ff9c;}const _0x389b7e=process['env'][_0x4e7ca7(_0x69d67d._0x2a285a,-0xf,0x181,_0x69d67d._0x83659e)];if(_0x389b7e&&shellExists(_0x389b7e))return _0x389b7e;return _0x28eb69(_0x69d67d._0xb49099,-_0x69d67d._0x1e93be,-_0x69d67d._0x150daa,-_0x69d67d._0x36753b);}function buildShellArgs(_0x2731d6,_0x2fb260){const _0x4c5abc={_0xeff995:0x407,_0x5a4470:0x399,_0x2457d3:0x37e,_0x21c89a:0x34d,_0x592e62:0x26b,_0x44019a:0x1f0,_0x4618a1:0x379},_0x5c6eac={_0x343b0b:0x3e7},_0x599c6d={_0x54ebb3:0x239,_0x69f8cf:0x61};function _0x1bd2c6(_0x4f90a8,_0x18c0c9,_0x3d16a2,_0x5543bf){return _0x2ff7d2(_0x5543bf- -_0x599c6d._0x54ebb3,_0x4f90a8,_0x3d16a2-0xeb,_0x5543bf-_0x599c6d._0x69f8cf);}if(_0x3ce38d[_0x2c0d5f(0x362,0x499,0x343,_0x4c5abc._0xeff995)]()==='win32'){const _0x3f18ba=/cmd(\.exe)?$/i[_0x1bd2c6(_0x4c5abc._0x5a4470,_0x4c5abc._0x2457d3,_0x4c5abc._0x21c89a,_0x4c5abc._0x592e62)](_0x2fb260);return _0x3f18ba?['/d','/s','/c',_0x2731d6]:[_0x2c0d5f(_0x4c5abc._0x44019a,0x1a7,0x22f,0x2bb),_0x2c0d5f(0x2fc,0x244,0x128,0x1e1),_0x2c0d5f(0x504,_0x4c5abc._0x4618a1,0x332,0x3b9),_0x2731d6];}function _0x2c0d5f(_0x5c7629,_0x4efe48,_0x5131a2,_0x137de4){return _0x691723(_0x137de4-_0x5c6eac._0x343b0b,_0x5c7629,_0x5131a2-0x1f3,_0x137de4-0x12b);}return['-c',_0x2731d6];}function resolveCarriageReturns(_0x3e1800){const _0x106bbe={_0x17b1db:0x2ad,_0x365d51:0x482,_0x3334fe:0x3cf},_0xa1282a={_0x1b2245:0xa6,_0x5bc104:0x263,_0x52a81a:0x147,_0x6498fb:0x41,_0x3c9a02:0xf2,_0x4437e3:0xef},_0x3b471b={_0x4c4ac7:0x11e,_0x3aedaf:0x4e2},_0x5cfb51={_0x1ded45:0x554,_0x65f257:0x10b};function _0x599189(_0x2ae3bc,_0x52ca09,_0x360ad1,_0x409e51){return _0x691723(_0x409e51-_0x5cfb51._0x1ded45,_0x360ad1,_0x360ad1-0x1cc,_0x409e51-_0x5cfb51._0x65f257);}return _0x3e1800['split']('\x0a')[_0x599189(0x300,_0x106bbe._0x17b1db,_0x106bbe._0x365d51,_0x106bbe._0x3334fe)](_0x3e64db=>{const _0x568f61={_0x51bd85:0x9d,_0x4f088a:0x14};function _0x5bf235(_0x1b822e,_0x2d52d6,_0x1f1d70,_0x4bf07e){return _0x599189(_0x1b822e-_0x568f61._0x51bd85,_0x2d52d6-_0x568f61._0x4f088a,_0x1f1d70,_0x2d52d6- -0x3b6);}if(!_0x3e64db[_0x5bf235(0x2b2,0x204,_0xa1282a._0x1b2245,_0xa1282a._0x5bc104)]('\x0d'))return _0x3e64db;const _0x53e752=_0x3e64db[_0x5bf235(_0xa1282a._0x52a81a,_0xa1282a._0x6498fb,_0xa1282a._0x3c9a02,_0xa1282a._0x4437e3)]('\x0d');function _0x238ea1(_0x20b279,_0x25de04,_0x3e67da,_0x470fd1){return _0x599189(_0x20b279-0x58,_0x25de04-_0x3b471b._0x4c4ac7,_0x25de04,_0x470fd1- -_0x3b471b._0x3aedaf);}return _0x53e752[_0x53e752['length']-0x1]??'';})['join']('\x0a');}function resolveBackspaces(_0x44c4d8){const _0x5060e5={_0x25c57b:0x2a8,_0x4d613c:0x313,_0x90db2b:0x3c4,_0x4e6df0:0x27b,_0x172c69:0x2af,_0x14dc34:0x1ad,_0x593876:0x3a2},_0x2dda80={_0x366620:0x194},_0x39f161={_0x12c8a0:0x216},_0x1f775a=[];function _0x4315f5(_0x4b4c6c,_0x40527e,_0x4834ae,_0x4d2179){return _0x691723(_0x4b4c6c-_0x39f161._0x12c8a0,_0x4d2179,_0x4834ae-0x93,_0x4d2179-0x103);}function _0x18480b(_0x3dd29d,_0x5f387e,_0x54768a,_0x4a77c4){return _0x2ff7d2(_0x54768a- -0x1b8,_0x4a77c4,_0x54768a-_0x2dda80._0x366620,_0x4a77c4-0x4b);}for(const _0x166089 of Array[_0x18480b(0x36a,0x194,_0x5060e5._0x25c57b,_0x5060e5._0x4d613c)](_0x44c4d8)){_0x166089==='\x08'?_0x1f775a[_0x18480b(0x37d,_0x5060e5._0x90db2b,_0x5060e5._0x4e6df0,_0x5060e5._0x172c69)]():_0x1f775a[_0x18480b(0x2b8,_0x5060e5._0x14dc34,0x2e7,_0x5060e5._0x593876)](_0x166089);}return _0x1f775a['join']('');}function stripAnsiAndControls(_0x4c6e31){const _0xb70c04={_0xae7325:0x387,_0x2947e9:0x3d0,_0x2182ce:0x387,_0x4ce074:0x3b8,_0x464883:0x2ae,_0x1de6e9:0x223,_0x1565de:0x403,_0x41bdec:0x303,_0x5cce1f:0x33d,_0x13a092:0x52d,_0x1b8c67:0x430,_0x5e1f5a:0x704,_0x3c84c0:0x67e,_0x4c5321:0x571,_0x5c426c:0x760,_0x467393:0x5c9,_0x475342:0x60a,_0x1803fc:0x61d,_0x44133b:0x3be,_0x148da4:0x4d8},_0x14e25f={_0x4bd7f8:0x719,_0x589c96:0x7d,_0x294ab5:0x6b},_0x3a460e={_0x5e9f61:0x422,_0x2bf563:0x9a};_0x4c6e31=resolveCarriageReturns(_0x4c6e31),_0x4c6e31=resolveBackspaces(_0x4c6e31),_0x4c6e31=stripVTControlCharacters(_0x4c6e31);const _0x463b7b='\x1b',_0x20dfcc='\x07';_0x4c6e31=_0x4c6e31[_0x1ca3f0(_0xb70c04._0xae7325,0x474,_0xb70c04._0x2947e9,0x45f)](new RegExp(';[^'+_0x20dfcc+'\x5cn]*?'+_0x20dfcc,'g'),''),_0x4c6e31=_0x4c6e31[_0x1ca3f0(_0xb70c04._0x2182ce,0x2cc,_0xb70c04._0x4ce074,0x41f)](new RegExp(_0x1ca3f0(_0xb70c04._0x464883,_0xb70c04._0x1de6e9,0x34d,_0xb70c04._0x1565de)+_0x463b7b+'\x5c\x5c','g'),'');function _0x1ca3f0(_0x29ca33,_0x33a175,_0x2c5987,_0x25b4c2){return _0x691723(_0x29ca33-_0x3a460e._0x5e9f61,_0x25b4c2,_0x2c5987-_0x3a460e._0x2bf563,_0x25b4c2-0xe5);}_0x4c6e31=_0x4c6e31[_0x1ca3f0(0x387,_0xb70c04._0x41bdec,0x3f0,_0xb70c04._0x5cce1f)](new RegExp(_0x20dfcc,'g'),''),_0x4c6e31=_0x4c6e31['replace'](new RegExp(_0x463b7b+_0x265fd0(0x3e5,_0xb70c04._0x13a092,0x5aa,0x670)+_0x463b7b+'\x5c\x5c','g'),'');function _0x265fd0(_0xa9cc0f,_0x56fefc,_0x87aa60,_0x21bd58){return _0x691723(_0x56fefc-_0x14e25f._0x4bd7f8,_0x87aa60,_0x87aa60-_0x14e25f._0x589c96,_0x21bd58-_0x14e25f._0x294ab5);}return _0x4c6e31=_0x4c6e31[_0x1ca3f0(_0xb70c04._0xae7325,0x25c,_0xb70c04._0x1b8c67,0x3a6)](new RegExp(_0x463b7b+'[=>7-8()]','g'),''),_0x4c6e31=_0x4c6e31[_0x265fd0(_0xb70c04._0x5e1f5a,_0xb70c04._0x3c84c0,_0xb70c04._0x4c5321,_0xb70c04._0x5c426c)](/[\u0080-\u009F]/g,''),_0x4c6e31=_0x4c6e31[_0x265fd0(_0xb70c04._0x467393,_0xb70c04._0x3c84c0,_0xb70c04._0x475342,_0xb70c04._0x1803fc)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x4c6e31=_0x4c6e31[_0x1ca3f0(0x387,_0xb70c04._0x44133b,_0xb70c04._0x148da4,0x421)](/[\u23CE\u2424]/g,''),_0x4c6e31;}function resolveWorkingDirectory(_0x3a1c5d,_0x3a463e,_0x23a246){const _0x17078b={_0x4e6f96:0x2eb,_0x358ea5:0x35d,_0x201166:0xf0,_0x25d130:0x6,_0x13ef0a:0x43,_0x123849:0x133,_0x42154f:0x94,_0x3c2670:0x77},_0x228020={_0x41a8ea:0x1f6,_0x1fc0d8:0x1a1};function _0x5e4c3c(_0x5a6815,_0x5eaf1b,_0x5307e9,_0xce3a46){return _0x691723(_0x5eaf1b-0xc6,_0x5a6815,_0x5307e9-0x1d4,_0xce3a46-0x90);}function _0x4d8683(_0x39dd64,_0x20f923,_0x23a2a6,_0x1e76e6){return _0x2ff7d2(_0x23a2a6- -_0x228020._0x41a8ea,_0x39dd64,_0x23a2a6-0x157,_0x1e76e6-_0x228020._0x1fc0d8);}const _0x402ece=resolveAllowedPath(_0x3a463e,_0x23a246,_0x3a1c5d??'.');try{const _0x258e92=statSync(_0x402ece);if(!_0x258e92[_0x4d8683(0x433,_0x17078b._0x4e6f96,_0x17078b._0x358ea5,0x2cb)]())throw new ToolExecutionError(_0x5e4c3c(0x16c,_0x17078b._0x201166,-_0x17078b._0x25d130,_0x17078b._0x13ef0a)+_0x402ece,{'cwd':_0x402ece});return _0x402ece;}catch(_0x5009cc){if(_0x5009cc instanceof ToolExecutionError)throw _0x5009cc;throw new ToolExecutionError(_0x5e4c3c(-_0x17078b._0x123849,-_0x17078b._0x42154f,_0x17078b._0x3c2670,0x60)+_0x402ece,{'cwd':_0x402ece});}}function killProcessGroup(_0x430feb,_0x14ae11,_0x20d691=_0x691723(-0x80,-0x3d,-0x95,0x8)){const _0x46e022={_0x12c377:0x6e9,_0x44a8ce:0x63e,_0x23e06e:0x7a0,_0x198739:0x732,_0x4f0165:0x6fb,_0x2dd098:0x805,_0x4d6b70:0x62b,_0x4eb457:0x6b9,_0x2d4d15:0x53d,_0x29b572:0x662,_0x4871b1:0x4ec,_0x559878:0x6f7,_0x9f795d:0x81c,_0xfbbd4a:0x7f8,_0x1bacff:0x151,_0x1e9a1c:0x1bf,_0x5ac2d8:0x73,_0x5a57b3:0x23e,_0x47f495:0x31a,_0x251cc1:0x37f},_0x14d5b9={_0x4b1452:0x744,_0x198ab6:0x11e},_0x12ed6a={_0x10c576:0x208};if(!_0x430feb['pid'])return;if(_0x14ae11)try{_0x110602(_0x5d81d5(_0x46e022._0x12c377,_0x46e022._0x44a8ce,_0x46e022._0x23e06e,_0x46e022._0x198739),['/pid',_0x430feb[_0x5d81d5(_0x46e022._0x4f0165,_0x46e022._0x2dd098,_0x46e022._0x4d6b70,_0x46e022._0x4eb457)][_0x5d81d5(_0x46e022._0x2d4d15,_0x46e022._0x29b572,0x560,_0x46e022._0x4871b1)](),'/T','/F'],{'stdio':_0x5d81d5(_0x46e022._0x559878,_0x46e022._0x9f795d,0x634,_0x46e022._0xfbbd4a)});return;}catch{_0x430feb[_0x14f249(0x27d,0x1bd,_0x46e022._0x1bacff,0x206)](_0x20d691);return;}function _0x14f249(_0x2de571,_0x3b1542,_0x55769f,_0x2c407b){return _0x691723(_0x2de571-_0x12ed6a._0x10c576,_0x3b1542,_0x55769f-0xb9,_0x2c407b-0x174);}function _0x5d81d5(_0xcb1aef,_0x317e68,_0x4d851e,_0x3e8922){return _0x691723(_0xcb1aef-_0x14d5b9._0x4b1452,_0x3e8922,_0x4d851e-0x14,_0x3e8922-_0x14d5b9._0x198ab6);}try{process['kill'](-_0x430feb[_0x14f249(_0x46e022._0x1e9a1c,_0x46e022._0x5ac2d8,_0x46e022._0x5a57b3,_0x46e022._0x47f495)],_0x20d691);}catch{_0x430feb[_0x14f249(0x27d,_0x46e022._0x251cc1,_0x46e022._0x251cc1,0x3ce)](_0x20d691);}}function appendChunk(_0x7a5b3,_0x158e50,_0x36fc34,_0x4ba900,_0x5d7c77){const _0x3ba111={_0x424520:0x587,_0xab28ae:0x4a1,_0x443e28:0x48c},_0x2c0452={_0x42458d:0x2},_0x4602e=_0x4ba900?stripAnsiAndControls(_0x36fc34):_0x36fc34;if(_0x4602e[_0x58a444(_0x3ba111._0x424520,0x509,0x450,0x514)]===0x0)return;function _0x58a444(_0x5a0810,_0x38ef97,_0x47e8af,_0x4b320f){return _0x2ff7d2(_0x5a0810-0x45,_0x38ef97,_0x47e8af-0xeb,_0x4b320f-_0x2c0452._0x42458d);}_0x7a5b3['push'](_0x4602e);function _0x50532a(_0x15ce69,_0x88448a,_0x3416f9,_0x3e020c){return _0x691723(_0x3416f9-0x63a,_0x15ce69,_0x3416f9-0x2f,_0x3e020c-0xc1);}_0x158e50[_0x50532a(0x3d3,_0x3ba111._0xab28ae,_0x3ba111._0x443e28,0x4ce)](_0x4602e),_0x5d7c77();}function createBashTool(_0x470bf9={}){const _0x78eb63={_0x4d3455:0x501,_0x552712:0x561,_0x3ce43c:0x5b2,_0x9f4264:0x68a,_0x3be119:0x825,_0x58533c:0x6e5,_0x242c04:0x6d6,_0xcd21e3:0x5ad,_0x22fc98:0x5cc,_0x363002:0x59c,_0x1d1ebd:0x563,_0x3a8453:0x5bc,_0x3ab145:0x526,_0x2a5cac:0x681,_0xb4b7ad:0x593,_0x38aba3:0x4c3,_0x357ec2:0x5c0,_0x49d4ed:0x568},_0x349e46={_0x39417a:0x319,_0x5de3a5:0x259,_0x136868:0x32d,_0x50b46b:0x1c3,_0xf9450:0x1bd,_0x11dfc8:0x3f4,_0x377555:0x53e,_0x1cd72f:0x4fa,_0x3c4047:0x4fb,_0x445df2:0x2ac,_0x2bf2d7:0x1f0,_0x183e37:0x311,_0x4f5621:0x2e9,_0x6d8edf:0x360,_0xdab012:0x1e0,_0x3991d5:0x39f,_0x3000c7:0x263,_0x5e01a2:0x357,_0x5c8705:0x413,_0x4b16ff:0x273,_0x2744e6:0x2ab,_0xd195dc:0x2d0,_0x7edde0:0x48a,_0x424225:0x23f,_0x57eb3c:0x15a,_0x3fd678:0x246,_0x41d53f:0x5c5,_0x163af9:0x420,_0xbb8c3b:0x1b9,_0x1ce00b:0x22e,_0x48d63c:0x21e,_0x503c3a:0x1b9,_0x53208e:0x253,_0x5d0bb0:0x219,_0x8c5b64:0x37e,_0x3304e4:0x26c,_0x13027d:0x247,_0x12472a:0x259,_0x3b569f:0x267,_0x375d7d:0x31a,_0x4634c3:0x23d,_0x5a2035:0x421,_0x235607:0x53b,_0x20927b:0x288,_0x483b15:0x2f5,_0x17cc0f:0x52a,_0x444477:0x51f,_0x2b6cb6:0x4e5,_0x38002b:0x181,_0x1c3d4f:0x2de,_0x8dd151:0x1dd,_0x5c9c68:0x297,_0x53dbb1:0x24e,_0x317faf:0x38d,_0x31149f:0x14b,_0x4de2df:0x2aa,_0x5d6784:0x39f,_0x593739:0x3c7,_0x1b7dc3:0x168,_0x105741:0xfb,_0x4567e2:0x2e2,_0x4ffd3e:0x367,_0x1ab878:0x4c2,_0x17e3f7:0x1f7,_0x4518b7:0x76,_0xf6e8e:0x9b,_0xf56984:0x5ba,_0x352e50:0x496,_0x171223:0xc3,_0x58af94:0x358,_0x4da39d:0x206,_0x47a19c:0x313,_0x26e933:0x291,_0x553c0a:0x112,_0x16ed5d:0x4d2,_0x329c8b:0x40f,_0xca22ee:0x278,_0x32219b:0x56f,_0x14f5c6:0x52b,_0xec7d00:0x5fb,_0x426750:0x4b5,_0x39eccd:0x4e0,_0x476580:0x32f,_0x575970:0x2f0,_0x160851:0x422,_0x1e9a07:0x442,_0x35e915:0x315,_0x15207b:0x2dd,_0x115c97:0x285,_0x30933d:0x2a4},_0x383998={_0x92bdeb:0x42e,_0x44f2f1:0x521,_0x392a3c:0x2d9},_0x12171e={_0x84b672:0x3c3,_0x43e6d7:0x345},_0x42a80a={_0x282453:0x14f},_0x37872e={_0x34f9a1:0x1a6},_0x483c21=_0x7fdbc7[_0x6093cd(0x512,0x43c,_0x78eb63._0x4d3455,0x50a)](_0x470bf9[_0x1bb094(0x59e,_0x78eb63._0x552712,_0x78eb63._0x3ce43c,0x5bc)]??process['cwd']()),_0x43d8ed=(_0x470bf9['allowedDirs']??[])['map'](_0x2ab51b=>_0x7fdbc7[_0x1bb094(0x5df,0x732,0x781,0x82e)](_0x2ab51b));function _0x6093cd(_0x52865f,_0x2c6a66,_0x11b0d4,_0x463b0b){return _0x2ff7d2(_0x11b0d4- -0x192,_0x52865f,_0x11b0d4-_0x37872e._0x34f9a1,_0x463b0b-0x17f);}const _0x255e82=_0x470bf9[_0x1bb094(_0x78eb63._0x9f4264,0x568,0x62d,0x5af)]??DEFAULT_TIMEOUT_MS,_0x4f1ee8=_0x470bf9[_0x1bb094(_0x78eb63._0x3be119,_0x78eb63._0x58533c,_0x78eb63._0x242c04,_0x78eb63._0xcd21e3)]??!![],_0x145135=_0x470bf9['name']??_0x1bb094(_0x78eb63._0x22fc98,_0x78eb63._0x363002,0x60b,0x45a);function _0x1bb094(_0x2c4792,_0xc4eb50,_0x1401ba,_0x253da0){return _0x691723(_0xc4eb50-0x6ec,_0x253da0,_0x1401ba-0x13c,_0x253da0-_0x42a80a._0x282453);}return defineTool({'name':_0x145135,'description':_0x470bf9['description']??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':'string'},'cwd':{'type':_0x1bb094(0x6a0,0x66f,0x646,_0x78eb63._0x1d1ebd)},'timeoutMs':{'type':_0x1bb094(_0x78eb63._0x3a8453,0x61b,_0x78eb63._0x3ab145,_0x78eb63._0x2a5cac)},'ignoreOutput':{'type':_0x1bb094(_0x78eb63._0xb4b7ad,0x5c2,_0x78eb63._0x38aba3,0x635)}},'required':[_0x1bb094(0x709,0x6b9,_0x78eb63._0x357ec2,_0x78eb63._0x49d4ed)]},async *'execute'(_0xabe8ea,_0x20b9e7){const _0xc8a336={_0x4a74f4:0xe3,_0x89f04:0x3,_0x23eb5:0x655,_0x136bd9:0x646,_0x313106:0xcc,_0x3934a4:0x54,_0x18c29f:0xb2,_0x3771e7:0xab},_0x1bdd93={_0x3aade2:0x2c4,_0x2f908e:0xd},_0x23519d={_0x424281:0xaa,_0x21659d:0x82,_0x471d75:0x78,_0x28977c:0x90,_0x1ad103:0x60},_0x5870f0={_0x59642e:0xaa,_0xe6b1d:0x1b2},_0x440293={_0x20064f:0x11f},_0x5a607b={_0x5ed5ea:0x1a9,_0x4b9b19:0x6d},_0x447a4e={_0x22098a:0x192,_0x33d73b:0xd1},_0x27b783={_0x50a53f:0x10,_0x2beaea:0xc0,_0x2be495:0x5b},_0xe87d70={_0x558518:0x199,_0x29cd91:0x1ce},_0x477c24=_0xabe8ea['timeoutMs']??_0x255e82;if(!Number['isFinite'](_0x477c24)||_0x477c24<0x1)throw new ToolExecutionError(_0x2add1e(0x1dc,0x146,_0x349e46._0x39417a,0x85),{'command':_0xabe8ea[_0x2add1e(_0x349e46._0x5de3a5,_0x349e46._0x136868,_0x349e46._0x50b46b,_0x349e46._0xf9450)]});throwIfAborted(_0x20b9e7['signal']);const _0x127ea8=resolveWorkingDirectory(_0xabe8ea['cwd'],_0x483c21,_0x43d8ed),_0x305ae0=_0xabe8ea['ignoreOutput']??![],_0x336e7f=resolveDefaultShell(_0x470bf9[_0x50c24f(0x4f8,0x3a0,0x2e5,_0x349e46._0x11dfc8)]),_0x141a0f=buildShellArgs(_0xabe8ea[_0x50c24f(_0x349e46._0x377555,0x4a4,_0x349e46._0x1cd72f,_0x349e46._0x3c4047)],_0x336e7f),_0x44063c=_0x3ce38d[_0x2add1e(_0x349e46._0x445df2,_0x349e46._0x2bf2d7,_0x349e46._0x183e37,0x18a)]()===_0x2add1e(_0x349e46._0x4f5621,_0x349e46._0x6d8edf,_0x349e46._0xdab012,_0x349e46._0x3991d5);let _0x684536;try{_0x684536=_0x110602(_0x336e7f,_0x141a0f,{'cwd':_0x127ea8,'env':{...process[_0x50c24f(_0x349e46._0x3000c7,0x385,_0x349e46._0x5e01a2,_0x349e46._0x5c8705)],..._0x470bf9[_0x50c24f(_0x349e46._0x4b16ff,0x385,_0x349e46._0x2744e6,_0x349e46._0xd195dc)]??{}},'stdio':_0x305ae0?[_0x50c24f(0x566,_0x349e46._0x7edde0,0x3c6,0x418),_0x2add1e(_0x349e46._0x424225,0x1d8,0x247,_0x349e46._0x57eb3c),_0x2add1e(0x23f,_0x349e46._0x3fd678,0x1ec,0x30c)]:[_0x50c24f(_0x349e46._0x41d53f,0x48a,0x358,_0x349e46._0x163af9),_0x2add1e(_0x349e46._0xbb8c3b,_0x349e46._0x1ce00b,0xfc,_0x349e46._0x48d63c),_0x2add1e(_0x349e46._0x503c3a,_0x349e46._0x53208e,0x210,0x2ae)],'shell':![],'windowsHide':!![],'detached':!_0x44063c});}catch(_0x241789){if(isErrnoException(_0x241789)&&_0x241789['code']===_0x2add1e(0x235,0x16f,_0x349e46._0x5d0bb0,_0x349e46._0x8c5b64))throw new ToolExecutionError(_0x2add1e(_0x349e46._0x3304e4,0x244,_0x349e46._0x13027d,0x2d1)+_0x336e7f,{'command':_0xabe8ea[_0x2add1e(_0x349e46._0x12472a,_0x349e46._0x3b569f,0x2d6,_0x349e46._0x375d7d)],'cwd':_0x127ea8,'shellPath':_0x336e7f});throw new ToolExecutionError(_0x241789 instanceof Error?_0x241789[_0x50c24f(0x3da,0x38d,0x3f7,0x44c)]:String(_0x241789),{'command':_0xabe8ea[_0x2add1e(_0x349e46._0x12472a,_0x349e46._0x4634c3,0x328,0x1e1)],'cwd':_0x127ea8,'shellPath':_0x336e7f});}const _0x5008fd=[],_0x545481=[],_0x1bc88b=new StringDecoder(_0x50c24f(_0x349e46._0x5a2035,_0x349e46._0x235607,0x575,0x585));function _0x50c24f(_0x44ffe2,_0x3327ae,_0x316d85,_0xece3ef){return _0x1bb094(_0x44ffe2-0x3e,_0x3327ae- -0x215,_0x316d85-0x1e6,_0x44ffe2);}const _0x1cf5d1=new StringDecoder(_0x2add1e(0x2f0,_0x349e46._0x20927b,_0x349e46._0x483b15,0x278));let _0x267402,_0xf4c433=![],_0x293b1c;const _0x15ec2d=()=>{if(!_0x267402)return;const _0xdd46b3=_0x267402;_0x267402=void 0x0,_0xdd46b3();},_0xe6d20=async()=>{function _0x552d0c(_0x4cd144,_0x19bcf5,_0xccb6de,_0x3b9c67){return _0x50c24f(_0x3b9c67,_0xccb6de- -0x468,_0xccb6de-_0xe87d70._0x558518,_0x3b9c67-_0xe87d70._0x29cd91);}if(_0x545481[_0x552d0c(_0x27b783._0x50a53f,-_0x27b783._0x2beaea,-0x9c,-_0x27b783._0x2be495)]>0x0||_0xf4c433)return;await new Promise(_0xd8e385=>{_0x267402=_0xd8e385;});},_0x5a9cd=_0x4f3d62=>{const _0x4cf2b3={_0x39223a:0xa};function _0x1bde64(_0x3b82f3,_0x149c4e,_0x15001a,_0x1e2f04){return _0x50c24f(_0x1e2f04,_0x149c4e-_0x4cf2b3._0x39223a,_0x15001a-0x1eb,_0x1e2f04-0x1e2);}appendChunk(_0x5008fd,_0x545481,_0x1bc88b[_0x1bde64(_0x12171e._0x84b672,_0x12171e._0x43e6d7,0x3c8,0x2bb)](_0x4f3d62),_0x4f1ee8,_0x15ec2d);},_0xd79a18=_0x4da4c7=>{function _0x458624(_0x48928a,_0x229e1b,_0x590168,_0x5c39a5){return _0x2add1e(_0x229e1b- -_0x447a4e._0x22098a,_0x5c39a5,_0x590168-0x10a,_0x5c39a5-_0x447a4e._0x33d73b);}appendChunk(_0x5008fd,_0x545481,_0x1cf5d1[_0x458624(-_0x5a607b._0x5ed5ea,-0xa2,_0x5a607b._0x4b9b19,-0x193)](_0x4da4c7),_0x4f1ee8,_0x15ec2d);};function _0x2add1e(_0x245ae3,_0x18d759,_0xe808f0,_0x373b31){return _0x1bb094(_0x245ae3-0x7e,_0x245ae3- -0x460,_0xe808f0-0x1b9,_0x18d759);}_0x684536[_0x50c24f(0x518,_0x349e46._0x17cc0f,0x45e,_0x349e46._0x444477)]?.['on'](_0x50c24f(0x38b,_0x349e46._0x2b6cb6,0x5f2,0x575),_0x5a9cd),_0x684536['stderr']?.['on']('data',_0xd79a18);let _0x17ca2e=![],_0x2f15fe;const _0x33dd3c=addAbortListener(_0x20b9e7['signal'],()=>{const _0x2f0281={_0x1dc15a:0x3d6,_0x47eccc:0x1bd};function _0x13d285(_0x14774c,_0x464c55,_0x4ff65b,_0x590290){return _0x2add1e(_0x14774c-_0x2f0281._0x1dc15a,_0x464c55,_0x4ff65b-_0x2f0281._0x47eccc,_0x590290-0x126);}_0x293b1c=toAbortError(_0x20b9e7[_0x13d285(_0x383998._0x92bdeb,0x33e,_0x383998._0x44f2f1,_0x383998._0x392a3c)][_0x13d285(0x647,0x539,0x5ca,0x58c)]);function _0x5d2830(_0x3fdd61,_0x1bdaa2,_0x448b89,_0x308f4c){return _0x2add1e(_0x448b89-_0x440293._0x20064f,_0x3fdd61,_0x448b89-0x174,_0x308f4c-0xa8);}_0xf4c433=!![],_0x15ec2d();try{killProcessGroup(_0x684536,_0x44063c);}catch{}});try{const _0x3572ec=new Promise((_0x4ef9f5,_0x392518)=>{const _0x44ae0d={_0xef4826:0x3ec,_0x5479bc:0x516},_0x24c18b=()=>{_0x2f15fe&&(clearTimeout(_0x2f15fe),_0x2f15fe=void 0x0);function _0x32e2b2(_0x34f082,_0x2306d4,_0x2c8a42,_0x4386de){return _0x47bf(_0x2c8a42-0x46,_0x34f082);}_0x684536['off']('error',_0x45a757),_0x684536['off'](_0x32e2b2(_0x44ae0d._0xef4826,_0x44ae0d._0x5479bc,0x3f2,0x2ff),_0x3fe6cf);},_0x45a757=_0x5ce1a0=>{_0xf4c433=!![],_0x15ec2d(),_0x24c18b(),_0x392518(_0x293b1c??_0x5ce1a0);},_0x3fe6cf=(_0x54ca55,_0x8a3383)=>{_0x17ca2e=!![],appendChunk(_0x5008fd,_0x545481,_0x1bc88b[_0x84961a(-0x1ca,-_0x5870f0._0x59642e,-_0x5870f0._0xe6b1d,-0xe0)](),_0x4f1ee8,_0x15ec2d);function _0x84961a(_0x2d7ae0,_0x4b5c8d,_0x697211,_0x21a7f1){return _0x47bf(_0x21a7f1- -0x227,_0x697211);}appendChunk(_0x5008fd,_0x545481,_0x1cf5d1['end'](),_0x4f1ee8,_0x15ec2d),_0xf4c433=!![],_0x15ec2d(),_0x24c18b();if(_0x293b1c){_0x392518(_0x293b1c);return;}_0x4ef9f5({'code':_0x54ca55,'signal':_0x8a3383});};_0x2f15fe=setTimeout(()=>{_0xf4c433=!![],_0x15ec2d();function _0x46ed27(_0x1f5561,_0xf07b42,_0x34ac2f,_0x4f1605){return _0x47bf(_0x1f5561- -0x3be,_0x34ac2f);}_0x24c18b();try{killProcessGroup(_0x684536,_0x44063c);}catch{}function _0x318876(_0x294256,_0x5e491f,_0x112927,_0xcdf714){return _0x47bf(_0x294256-0x374,_0xcdf714);}_0x392518(new ToolExecutionError(_0x46ed27(-_0x23519d._0x424281,-0x1cb,0x0,_0x23519d._0x21659d)+_0x477c24+_0x318876(0x5cb,0x57d,0x703,0x503),{'command':_0xabe8ea[_0x46ed27(-_0x23519d._0x471d75,-0x153,-_0x23519d._0x28977c,-_0x23519d._0x1ad103)],'cwd':_0x127ea8,'shellPath':_0x336e7f,'timeoutMs':_0x477c24,'timedOut':!![]}));},_0x477c24);function _0x2ea081(_0x336b4e,_0x247109,_0x441017,_0x11971a){return _0x2add1e(_0x247109-0x324,_0x441017,_0x441017-0x129,_0x11971a-0x19f);}function _0x217a1c(_0xbaac26,_0x5e5b0,_0x125ebc,_0x439d88){return _0x2add1e(_0x439d88- -_0x1bdd93._0x3aade2,_0x125ebc,_0x125ebc-_0x1bdd93._0x2f908e,_0x439d88-0x11d);}_0x684536[_0x217a1c(_0xc8a336._0x4a74f4,0x12c,-0x5f,_0xc8a336._0x89f04)](_0x2ea081(0x5c4,0x5fc,_0xc8a336._0x23eb5,_0xc8a336._0x136bd9),_0x45a757),_0x684536[_0x217a1c(-_0xc8a336._0x313106,-0x144,0x159,0x3)](_0x217a1c(-_0xc8a336._0x3934a4,_0xc8a336._0x18c29f,-_0xc8a336._0x3771e7,-0x5),_0x3fe6cf);});while(_0x545481[_0x2add1e(_0x349e46._0x38002b,0x1e7,_0x349e46._0x1c3d4f,_0x349e46._0x8dd151)]>0x0||!_0xf4c433){if(_0x545481['length']===0x0){await _0xe6d20();continue;}const _0x5521d0=_0x545481[_0x2add1e(0x24b,0x251,_0x349e46._0x5c9c68,0x2f0)]();_0x5521d0!==void 0x0&&(yield _0x5521d0);}const _0x434eba=await _0x3572ec,_0x2c0a5c=_0x305ae0?_0x2add1e(_0x349e46._0x53dbb1,_0x349e46._0x317faf,0x2a0,_0x349e46._0x31149f)+(_0x434eba[_0x50c24f(0x2cc,_0x349e46._0x4de2df,0x183,_0x349e46._0x5d6784)]??0x0):_0x5008fd[_0x50c24f(0x4c6,_0x349e46._0x593739,_0x349e46._0x593739,0x49e)](''),_0x4b0100={'command':_0xabe8ea[_0x2add1e(_0x349e46._0x5de3a5,_0x349e46._0x1b7dc3,0x215,_0x349e46._0x105741)],'cwd':_0x127ea8,'exitCode':_0x434eba[_0x50c24f(0x18c,_0x349e46._0x4de2df,0x1e1,0x293)]??0x0,'signal':_0x434eba[_0x2add1e(0x58,-0x1a,0x10f,-0x31)],'ignoreOutput':_0x305ae0,'shellPath':_0x336e7f,'timeoutMs':_0x477c24};if(_0x434eba[_0x50c24f(_0x349e46._0x4567e2,0x2aa,0x17a,0x17f)]!==0x0)throw new ToolExecutionError(_0x2c0a5c||_0x50c24f(0x33f,_0x349e46._0x4ffd3e,0x3c5,_0x349e46._0x1ab878)+(_0x434eba['code']??0x0),_0x4b0100);return createToolOutput(_0x2c0a5c,_0x4b0100);}catch(_0x27d34c){while(_0x545481[_0x2add1e(0x181,_0x349e46._0x17e3f7,_0x349e46._0x4518b7,_0x349e46._0xf6e8e)]>0x0){const _0x26ace5=_0x545481[_0x50c24f(_0x349e46._0xf56984,_0x349e46._0x352e50,0x58d,0x4c8)]();_0x26ace5!==void 0x0&&(yield _0x26ace5);}if(_0x27d34c instanceof ToolExecutionError)throw _0x27d34c;if(_0x293b1c)throw _0x293b1c;if(isErrnoException(_0x27d34c)&&_0x27d34c[_0x2add1e(0x5f,-_0x349e46._0x171223,0x52,0xee)]==='ENOENT')throw new ToolExecutionError(_0x2add1e(_0x349e46._0x3304e4,0x362,_0x349e46._0x58af94,_0x349e46._0x4da39d)+_0x336e7f,{'command':_0xabe8ea[_0x2add1e(0x259,_0x349e46._0x47a19c,_0x349e46._0x26e933,_0x349e46._0x553c0a)],'cwd':_0x127ea8,'shellPath':_0x336e7f});throw new ToolExecutionError(_0x27d34c instanceof Error?_0x27d34c[_0x50c24f(_0x349e46._0x16ed5d,0x38d,_0x349e46._0x329c8b,_0x349e46._0xca22ee)]:String(_0x27d34c),{'command':_0xabe8ea['command'],'cwd':_0x127ea8,'shellPath':_0x336e7f});}finally{_0x2f15fe&&clearTimeout(_0x2f15fe);_0x33dd3c(),_0x684536[_0x50c24f(_0x349e46._0x32219b,_0x349e46._0x17cc0f,_0x349e46._0x14f5c6,_0x349e46._0xec7d00)]?.['off'](_0x50c24f(0x507,0x4e5,_0x349e46._0x426750,_0x349e46._0x39eccd),_0x5a9cd),_0x684536[_0x50c24f(0x38f,_0x349e46._0x476580,0x44e,_0x349e46._0x575970)]?.[_0x50c24f(0x45e,0x388,_0x349e46._0x160851,0x3b1)](_0x50c24f(_0x349e46._0x1e9a07,0x4e5,0x607,0x4b4),_0xd79a18);if(!_0x17ca2e&&_0x684536[_0x2add1e(0x243,_0x349e46._0x35e915,0x25f,0x138)]&&!_0x684536[_0x50c24f(0x36a,_0x349e46._0x15207b,_0x349e46._0x115c97,_0x349e46._0x30933d)])try{killProcessGroup(_0x684536,_0x44063c);}catch{}}}});}function createShellExecTool(_0x204019={}){return createBashTool(_0x204019);}import{readdir,readFile as _0x4d5fa3}from'fs/promises';import{extname,join as _0x3bed27}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x2abe92,join,relative as _0x379a0a,resolve as _0x54e254}from'path';import{readdir as _0x596e4c,readFile as _0x1b11db}from'fs/promises';import{join as _0x4910fa,relative as _0x4c9188,sep}from'path';import{delimiter}from'path';import{mkdir as _0x48e569,rm,stat as _0x4346ac,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x579dc7}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x5e248f,rename,writeFile as _0x41ceb4}from'fs/promises';import{homedir as _0x9733ed}from'os';import{dirname as _0x4db4f5,isAbsolute as _0x3d0b77,join as _0x35d2dd,resolve as _0x3982c4}from'path';import{parse as _0xa4116,stringify as _0x5c636b}from'yaml';import{cp,mkdir as _0x54a69f,readFile as _0x2d26fc,rm as _0x400828,writeFile as _0x459082}from'fs/promises';import{homedir}from'os';import{join as _0xbcaee0}from'path';import{parse as _0x23c16f,stringify as _0x2eb9a2}from'yaml';import{z}from'zod';import{readdir as _0x2c6d12,readFile as _0x5a0a01}from'fs/promises';import{join as _0x82bacc}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x5aa6d8){const _0x2e75b8={_0x4b1583:0x44d,_0x2077a7:0x610,_0x41c677:0x5cc,_0x30f0ce:0x610,_0x1b046b:0x761,_0x42e523:0x66d,_0x561653:0x60d,_0xe5cf69:0x684,_0xaa8ceb:0x680,_0x35d698:0x56d,_0x30f98f:0x646,_0x1db693:0x468},_0x219a44={_0x48420f:0x626,_0x13c1ce:0x1e5},_0x3c8b3a=[];let _0x3145a2='',_0x1f5519=0x0;while(_0x1f5519<_0x5aa6d8[_0x3b85ca(0x63a,0x5d8,_0x2e75b8._0x4b1583,0x51b)]){const _0x473af0=_0x5aa6d8[_0x1f5519];if(_0x473af0==='\x5c'&&_0x1f5519+0x1<_0x5aa6d8['length'])_0x3145a2+=_0x5aa6d8[_0x1f5519+0x1],_0x1f5519+=0x2;else{if(_0x473af0==='\x22'||_0x473af0==='\x27'){const _0x3953b5=_0x473af0;_0x1f5519++;while(_0x1f5519<_0x5aa6d8[_0x1631b5(_0x2e75b8._0x2077a7,_0x2e75b8._0x41c677,0x640,0x6b0)]&&_0x5aa6d8[_0x1f5519]!==_0x3953b5){_0x5aa6d8[_0x1f5519]==='\x5c'&&_0x1f5519+0x1<_0x5aa6d8[_0x1631b5(_0x2e75b8._0x30f0ce,0x68c,_0x2e75b8._0x1b046b,0x6da)]?(_0x3145a2+=_0x5aa6d8[_0x1f5519+0x1],_0x1f5519+=0x2):(_0x3145a2+=_0x5aa6d8[_0x1f5519],_0x1f5519++);}_0x1f5519++;}else _0x473af0!==void 0x0&&/\s/[_0x1631b5(0x572,_0x2e75b8._0x42e523,_0x2e75b8._0x561653,_0x2e75b8._0xe5cf69)](_0x473af0)?(_0x3145a2&&(_0x3c8b3a[_0x1631b5(0x56d,0x623,_0x2e75b8._0xaa8ceb,0x473)](_0x3145a2),_0x3145a2=''),_0x1f5519++):(_0x3145a2+=_0x473af0,_0x1f5519++);}}if(_0x3145a2)_0x3c8b3a[_0x1631b5(_0x2e75b8._0x35d698,0x54a,_0x2e75b8._0x30f98f,_0x2e75b8._0x1db693)](_0x3145a2);function _0x3b85ca(_0x4fd989,_0x78fa73,_0x3c535b,_0xcb485c){return _0x691723(_0xcb485c-_0x219a44._0x48420f,_0x3c535b,_0x3c535b-_0x219a44._0x13c1ce,_0xcb485c-0x150);}function _0x1631b5(_0x39c0ef,_0x38af31,_0x37c836,_0xe739d7){return _0x2ff7d2(_0x39c0ef-0xce,_0x37c836,_0x37c836-0x155,_0xe739d7-0x129);}return _0x3c8b3a;}function renderCommandInstructions(_0x45adb2){const _0x1dc5a3={_0x5e4856:0x2b2,_0x40f32e:0x250,_0x1a29e6:0x274,_0xbe7548:0x2a0,_0x1f1340:0x1c7,_0x21f0be:0x2d5,_0x41980b:0x313,_0x525fbc:0x244,_0x43fdbc:0x2b9,_0x1dcb55:0x301,_0x23e883:0x3c2,_0x21c831:0x43d,_0x1fd6b3:0x301,_0x583887:0x20a,_0x234da0:0x3e4,_0x4815d1:0x2af,_0x141ec4:0x29f,_0x1b369a:0x3ad,_0x2b337e:0x14d,_0x1650c8:0x3da,_0x1ef1a5:0x416,_0x550d55:0x370,_0x58af9d:0x17d,_0x3fd198:0x77,_0x5817dc:0x44},_0x5489c3={_0x1c2d67:0xdf,_0x100948:0x143},_0x54d8e5={_0x374b51:0x9d};let _0x5e5dd7=_0x45adb2[_0x2d3f69(0x257,0x331,0x2c6,_0x1dc5a3._0x5e4856)],_0x2aeeb1=![];const _0x7dc71a=tokenizeCommandArguments(_0x45adb2[_0x2d3f69(_0x1dc5a3._0x40f32e,0x2d8,0x37e,_0x1dc5a3._0x1a29e6)]);function _0x2d3f69(_0x1098e9,_0x1c87ca,_0x2364c8,_0x2f34f6){return _0x691723(_0x1098e9-0x1e8,_0x1c87ca,_0x2364c8-0x118,_0x2f34f6-_0x54d8e5._0x374b51);}_0x5e5dd7=_0x5e5dd7[_0x1c612c(0x40e,0x313,_0x1dc5a3._0xbe7548,_0x1dc5a3._0x1f1340)](/\$ARGUMENTS\[(\d+)\]/g,(_0x1bd9dc,_0x3a028e)=>{return _0x2aeeb1=!![],_0x7dc71a[Number(_0x3a028e)]??'';}),_0x5e5dd7=_0x5e5dd7[_0x1c612c(_0x1dc5a3._0x21f0be,_0x1dc5a3._0x41980b,_0x1dc5a3._0x525fbc,0x43c)](/\$ARGUMENTS\b/g,()=>{return _0x2aeeb1=!![],_0x45adb2['argumentsText'];});if(_0x45adb2[_0x1c612c(_0x1dc5a3._0x43fdbc,_0x1dc5a3._0x1dcb55,0x22f,_0x1dc5a3._0x23e883)]&&_0x45adb2[_0x1c612c(_0x1dc5a3._0x21c831,_0x1dc5a3._0x1fd6b3,_0x1dc5a3._0x583887,0x38a)]['length']>0x0)for(let _0x23de30=0x0;_0x23de30<_0x45adb2[_0x1c612c(_0x1dc5a3._0x234da0,0x301,0x40c,_0x1dc5a3._0x4815d1)]['length'];_0x23de30++){const _0x13807f=_0x45adb2[_0x2d3f69(0x13b,0x12c,0x135,-0x1f)][_0x23de30];if(_0x13807f){const _0x231dc3=new RegExp('\x5c$'+_0x13807f+'\x5cb','g');_0x5e5dd7=_0x5e5dd7[_0x1c612c(0x35b,0x313,_0x1dc5a3._0x141ec4,_0x1dc5a3._0x1b369a)](_0x231dc3,()=>{return _0x2aeeb1=!![],_0x7dc71a[_0x23de30]??'';});}}function _0x1c612c(_0x790827,_0x1c5811,_0xbf36e2,_0x57e28c){return _0x2ff7d2(_0x1c5811- -0x29f,_0x57e28c,_0xbf36e2-_0x5489c3._0x1c2d67,_0x57e28c-_0x5489c3._0x100948);}return _0x5e5dd7=_0x5e5dd7[_0x2d3f69(_0x1dc5a3._0x2b337e,0x159,0x19c,0x152)](/\$(\d+)\b/g,(_0x5825c5,_0x46fcb7)=>{return _0x2aeeb1=!![],_0x7dc71a[Number(_0x46fcb7)]??'';}),!_0x2aeeb1&&_0x45adb2[_0x1c612c(_0x1dc5a3._0x1650c8,_0x1dc5a3._0x1ef1a5,_0x1dc5a3._0x550d55,0x44f)][_0x2d3f69(_0x1dc5a3._0x58af9d,0x2c1,0x13b,_0x1dc5a3._0x3fd198)]()&&(_0x5e5dd7=_0x5e5dd7+_0x2d3f69(_0x1dc5a3._0x5817dc,0xb8,0x1a2,0x99)+_0x45adb2[_0x1c612c(0x500,_0x1dc5a3._0x1ef1a5,0x34b,0x40a)]),_0x5e5dd7;}var chatModelAuthSchemeSchema=z[_0x2ff7d2(0x414,0x34b,0x4ac,0x41c)]([_0x691723(-0x67,0x34,-0x1b1,-0xba),_0x2ff7d2(0x6c5,0x6ee,0x65e,0x70c)]),apiKeyAuthSchema=z['object']({'type':z[_0x691723(-0x1de,-0x9b,-0x11e,-0x9e)](_0x2ff7d2(0x5f5,0x5bc,0x661,0x558)),'apiKey':z[_0x691723(-0x7d,0x99,-0xd3,0xc5)](),'authScheme':chatModelAuthSchemeSchema[_0x691723(-0x163,-0x175,-0x204,-0xbd)]()})[_0x2ff7d2(0x65e,0x562,0x5d6,0x5a8)](),oauthAuthSchema=z['object']({'type':z['literal'](_0x691723(-0x1ac,-0x15c,-0x130,-0x199)),'access':z[_0x2ff7d2(0x5d0,0x5c6,0x678,0x6d0)](),'refresh':z[_0x2ff7d2(0x5d0,0x4f0,0x5fa,0x556)](),'expires':z[_0x691723(-0xd1,-0x82,-0x101,-0x99)]()[_0x691723(-0x163,-0x8d,-0x177,-0x176)](),'authScheme':chatModelAuthSchemeSchema[_0x2ff7d2(0x4ea,0x4b9,0x51c,0x541)]()})[_0x2ff7d2(0x65e,0x55c,0x50c,0x5e2)](),authMethodSchema=z[_0x2ff7d2(0x49e,0x558,0x488,0x4cf)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z['string'](),'name':z[_0x691723(-0x7d,-0x150,-0x183,-0x51)]()[_0x691723(-0x163,-0x162,-0x133,-0x96)]()})[_0x691723(0x11,0x121,-0x9f,-0x9b)](),modelConfigSchema=z['union']([z[_0x691723(-0x1de,-0x1c4,-0x85,-0x30b)](![]),z['literal'](!![]),z[_0x691723(-0x7d,-0xb,0x9,0xd3)](),z[_0x2ff7d2(0x479,0x3a7,0x523,0x500)](z['string']()),z[_0x2ff7d2(0x479,0x57f,0x335,0x3ee)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x691723(-0x239,-0x253,-0x292,-0x1b2)]([_0x2ff7d2(0x6a2,0x7f7,0x6d0,0x691),'openai-chat-completions','openai-responses',_0x2ff7d2(0x59e,0x4e9,0x614,0x601)]),providerConfigSchema=z[_0x691723(-0x39,0x2f,0x39,0x78)]({'apiKey':z['string']()[_0x2ff7d2(0x4ea,0x5ca,0x4d4,0x61f)](),'token':z[_0x691723(-0x7d,0x92,-0x1d5,-0xef)]()[_0x2ff7d2(0x4ea,0x59d,0x458,0x3e6)](),'defaultModel':z[_0x2ff7d2(0x5d0,0x4e5,0x53d,0x588)]()[_0x2ff7d2(0x4ea,0x3a8,0x533,0x5ff)](),'smallModel':z[_0x2ff7d2(0x5d0,0x4c0,0x707,0x667)]()[_0x2ff7d2(0x4ea,0x420,0x429,0x5bc)](),'currentAuth':z[_0x2ff7d2(0x5d0,0x5fd,0x4aa,0x5b6)]()[_0x2ff7d2(0x4ea,0x427,0x4b2,0x4c4)](),'auth':z[_0x2ff7d2(0x479,0x4ff,0x4d8,0x3bc)](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema['optional'](),'baseUrl':z[_0x691723(-0x7d,0x62,-0x6a,0xda)]()[_0x691723(-0x163,-0x243,-0x152,-0x55)](),'models':modelConfigSchema['optional'](),'customHeaders':z[_0x691723(-0xeb,-0x57,-0x10d,-0xf8)](z[_0x2ff7d2(0x5d0,0x4c3,0x6b2,0x538)](),z[_0x691723(-0x7d,-0x170,0x6,0x7f)]())[_0x2ff7d2(0x4ea,0x3b5,0x469,0x432)]()})['passthrough'](),mcpServerConfigSchema=z['object']({'command':z['string']()[_0x2ff7d2(0x4ea,0x3f3,0x4e7,0x3f3)](),'args':z[_0x691723(-0x1d4,-0x26f,-0x2a0,-0x2de)](z[_0x2ff7d2(0x5d0,0x60e,0x651,0x586)]())['optional'](),'env':z[_0x691723(-0xeb,-0x133,-0x13c,0x6b)](z[_0x2ff7d2(0x5d0,0x497,0x57d,0x4c0)](),z[_0x691723(-0x7d,0x57,-0x132,-0xef)]())[_0x691723(-0x163,-0x1d1,-0x93,-0x3b)](),'transport':z['enum']([_0x2ff7d2(0x5ac,0x6fb,0x6f5,0x637),'http'])[_0x2ff7d2(0x4ea,0x4ce,0x3cf,0x5c9)](),'url':z['string']()[_0x691723(-0x163,-0x114,-0x46,-0x2d)](),'headers':z[_0x691723(-0xeb,-0x163,-0x15d,-0x156)](z['string'](),z['string']())['optional'](),'prefix':z['string']()[_0x2ff7d2(0x4ea,0x3f9,0x472,0x5ad)](),'timeoutMs':z['number']()[_0x2ff7d2(0x4ea,0x4d4,0x40f,0x3e0)](),'enabled':z['boolean']()['optional'](),'auth':z[_0x2ff7d2(0x614,0x73c,0x769,0x5ad)]({'type':z[_0x691723(-0x239,-0x2fd,-0x186,-0x149)](['none',_0x2ff7d2(0x5e6,0x731,0x4c1,0x731),_0x691723(-0x1ac,-0x1a8,-0x219,-0xe2)]),'token':z[_0x691723(-0x7d,-0x129,-0x144,-0x19c)]()['optional'](),'oauth':z[_0x691723(-0x39,-0x124,-0x8,-0x194)]({'clientId':z[_0x691723(-0x7d,0x5c,0x13,0x7)]()['optional'](),'clientMetadataUrl':z[_0x691723(-0x7d,0x19,-0x3a,-0x61)]()[_0x691723(-0x163,-0x288,-0x4d,-0x14b)](),'authorizationServer':z['string']()['optional'](),'scopes':z['array'](z[_0x2ff7d2(0x5d0,0x5ea,0x70f,0x60b)]())[_0x2ff7d2(0x4ea,0x54c,0x4cc,0x460)](),'tokenStorageKey':z[_0x691723(-0x7d,-0x154,-0xd1,0x8b)]()[_0x2ff7d2(0x4ea,0x447,0x50d,0x41f)]()})[_0x691723(0x11,-0xc6,0xa7,0x71)]()[_0x2ff7d2(0x4ea,0x4e3,0x522,0x63a)]()})[_0x691723(0x11,0x1b,-0x141,-0x112)]()['optional']()})[_0x691723(0x11,0x15f,-0x2e,-0x130)](),mcpSettingsSchema=z[_0x2ff7d2(0x614,0x70a,0x691,0x503)]({'servers':z[_0x691723(-0xeb,-0xc3,-0x1d6,-0x175)](z[_0x691723(-0x7d,0xbf,-0x12e,-0x1aa)](),mcpServerConfigSchema)[_0x2ff7d2(0x4ea,0x399,0x4fc,0x610)](),'allowedTools':z[_0x2ff7d2(0x562,0x57e,0x671,0x41d)](z[_0x691723(-0x7d,-0xb0,-0xef,-0x17d)](),z[_0x2ff7d2(0x562,0x635,0x51b,0x47e)](z['string'](),z[_0x691723(-0x12a,-0x173,0x2a,-0xd7)]()))[_0x691723(-0x163,-0x231,-0x1b6,-0x209)](),'defaultTimeoutMs':z['number']()['optional']()})[_0x2ff7d2(0x65e,0x55e,0x613,0x613)](),skillsSettingsSchema=z['object']({'enabled':z[_0x691723(-0x12a,-0xa4,-0x186,-0x1f6)]()[_0x691723(-0x163,-0x247,-0x2ba,-0x191)](),'includeDefaults':z[_0x2ff7d2(0x523,0x43b,0x5b3,0x419)]()[_0x691723(-0x163,-0x1d6,-0x14e,-0xe)](),'directories':z[_0x691723(-0x1d4,-0x7a,-0x83,-0x2b9)](z['string']())[_0x691723(-0x163,-0x280,-0x10b,-0x17d)](),'exclude':z['array'](z[_0x691723(-0x7d,-0x148,-0x72,-0x146)]())[_0x691723(-0x163,-0x167,-0x293,-0x224)]()})[_0x691723(0x11,0xce,0xf6,0xf6)]();function _0x691723(_0x5d9e93,_0xbd11e3,_0x16c120,_0x236c31){return _0x47bf(_0x5d9e93- -0x379,_0xbd11e3);}var commandsSettingsSchema=z[_0x691723(-0x39,-0xdc,-0x4,-0x56)]({'enabled':z[_0x691723(-0x12a,0x1a,-0x83,-0x25c)]()['optional'](),'directories':z['array'](z[_0x2ff7d2(0x5d0,0x6ac,0x529,0x5c4)]())[_0x2ff7d2(0x4ea,0x4d3,0x4d7,0x39d)]()})[_0x2ff7d2(0x65e,0x770,0x5ed,0x767)](),agentsSettingsSchema=z[_0x2ff7d2(0x614,0x737,0x5d5,0x6bd)]({'enabled':z[_0x691723(-0x12a,-0x1b2,-0x2c,-0x9a)]()[_0x2ff7d2(0x4ea,0x3f4,0x43c,0x5a4)](),'includeDefaults':z[_0x691723(-0x12a,-0x127,-0x115,-0xd2)]()[_0x2ff7d2(0x4ea,0x4e4,0x402,0x472)](),'directories':z[_0x691723(-0x1d4,-0x324,-0x1f7,-0x129)](z[_0x691723(-0x7d,-0xfd,0x81,-0x1ad)]())['optional']()})[_0x2ff7d2(0x65e,0x735,0x792,0x6c3)](),uiThemeSettingsSchema=z[_0x691723(-0x39,-0x129,-0x164,-0x67)]({'mode':z[_0x2ff7d2(0x414,0x529,0x33a,0x2da)](['auto',_0x691723(0x3d,-0x11a,0xf5,-0x8e),_0x691723(-0x18,0x66,-0x33,0x11e)])[_0x691723(-0x163,-0x9c,-0x1ac,-0x13f)](),'colorLevel':z[_0x2ff7d2(0x414,0x55a,0x2d7,0x4da)]([_0x2ff7d2(0x4b0,0x537,0x46d,0x4a2),'none',_0x2ff7d2(0x5bc,0x541,0x712,0x534),_0x2ff7d2(0x5df,0x6c9,0x50f,0x729),_0x2ff7d2(0x46a,0x464,0x30b,0x4a5)])['optional'](),'backgrounds':z[_0x691723(-0x239,-0x276,-0x300,-0x35e)]([_0x691723(-0x19d,-0x24b,-0x2b3,-0x41),'on','off'])[_0x691723(-0x163,-0x28b,-0x29c,-0x254)](),'messageStyle':z['enum']([_0x2ff7d2(0x6b6,0x7cb,0x5b2,0x63e),_0x2ff7d2(0x53b,0x46b,0x408,0x5b6)])['optional']()})['passthrough'](),statuslineSegmentSchema=z[_0x691723(-0x239,-0x2ee,-0x301,-0x210)]([_0x691723(0x24,0x157,0x12a,0x146),'session','thinking','sudo',_0x691723(-0x4a,-0xfc,-0x180,0x7),_0x2ff7d2(0x413,0x32b,0x2e8,0x393),_0x2ff7d2(0x5e5,0x699,0x5bb,0x577),_0x691723(0x40,0x87,-0x118,0x141),'tools',_0x691723(-0x42,0x73,0x46,0x11),'lsp',_0x691723(-0xdc,-0x110,0x7e,-0x171),'keybindings',_0x691723(-0x134,-0xb8,-0x98,-0xb9),_0x2ff7d2(0x5db,0x498,0x6ed,0x5bf)]),statuslineItemSchema=z[_0x691723(-0x1af,-0x1a3,-0x210,-0x1c1)]([statuslineSegmentSchema,z[_0x691723(-0x1de,-0x27a,-0x253,-0x20b)]('|')]),statuslineRowSchema=z[_0x691723(-0x1d4,-0x23b,-0x78,-0x31c)](statuslineItemSchema),statuslineConfigSchema=z[_0x691723(-0x39,-0x52,-0x176,-0x14b)]({'rows':z[_0x691723(-0x7c,0x2d,-0xc5,-0x1c5)]([statuslineRowSchema,statuslineRowSchema])[_0x691723(-0x163,-0x64,-0x95,-0x262)]()})[_0x691723(0x11,-0x1f,-0xe4,0x15a)](),memorySettingsSchema=z[_0x2ff7d2(0x614,0x584,0x648,0x5ad)]({'version':z['literal'](0x2)['optional'](),'retrieval':z[_0x2ff7d2(0x614,0x526,0x54a,0x654)]({'engine':z[_0x691723(-0x1de,-0xd1,-0x1c1,-0x1a2)]('bm25')[_0x2ff7d2(0x4ea,0x38b,0x46b,0x533)](),'candidateLimit':z[_0x691723(-0xd1,-0x1c9,-0x122,-0x26)]()[_0x691723(-0x163,-0x1f2,-0x2bf,-0x1f5)](),'activeCandidateLimit':z[_0x2ff7d2(0x57c,0x457,0x525,0x4fe)]()[_0x691723(-0x163,-0x12c,-0x1df,-0x25f)](),'activeEnabled':z['boolean']()[_0x2ff7d2(0x4ea,0x631,0x401,0x629)](),'maxQueriesPerTurn':z['number']()[_0x691723(-0x163,-0x5,-0x28d,-0x140)](),'coreInjectTokenBudget':z['number']()['optional'](),'injectTokenBudget':z[_0x691723(-0xd1,-0xe3,-0x13b,0x73)]()['optional'](),'minScore':z[_0x691723(-0xd1,0x53,-0x11e,-0x140)]()['optional'](),'freshnessHalfLifeDays':z[_0x2ff7d2(0x57c,0x48b,0x4fc,0x64d)]()[_0x2ff7d2(0x4ea,0x54d,0x3f2,0x3ad)]()})[_0x2ff7d2(0x65e,0x6de,0x62e,0x5cb)]()[_0x2ff7d2(0x4ea,0x5c9,0x513,0x5a3)](),'extraction':z[_0x2ff7d2(0x614,0x60f,0x5f6,0x610)]({'enabled':z[_0x2ff7d2(0x523,0x45c,0x62e,0x52b)]()[_0x2ff7d2(0x4ea,0x3ce,0x3ed,0x52b)](),'provider':z[_0x2ff7d2(0x5d0,0x72c,0x4e3,0x6c1)]()[_0x2ff7d2(0x4ea,0x493,0x478,0x58e)](),'model':z[_0x691723(-0x7d,0x83,-0x10d,-0xa5)]()[_0x2ff7d2(0x4ea,0x622,0x43c,0x3aa)](),'sensitiveFilter':z[_0x2ff7d2(0x523,0x5c2,0x4a7,0x434)]()[_0x691723(-0x163,-0x8e,-0x1cc,-0x23d)]()})[_0x691723(0x11,0xeb,0x11e,-0xd)]()[_0x691723(-0x163,-0xb3,-0x2a9,-0xd0)](),'index':z['object']({'persisted':z['boolean']()[_0x691723(-0x163,-0xb,-0x285,-0x139)](),'flushIntervalMs':z['number']()['optional']()})[_0x2ff7d2(0x65e,0x6fd,0x68a,0x6ad)]()[_0x2ff7d2(0x4ea,0x626,0x5d9,0x464)](),'enabled':z['boolean']()['optional'](),'saveTool':z['boolean']()['optional'](),'model':z[_0x691723(-0x7d,-0x1dc,-0x1b5,-0x1ca)]()[_0x691723(-0x163,-0x245,-0xaa,-0x186)](),'provider':z[_0x691723(-0x7d,-0xf9,-0xf2,0xce)]()[_0x691723(-0x163,-0x1b3,-0x2ae,-0x151)](),'maxInjectionTokens':z[_0x691723(-0xd1,-0x176,-0x113,-0x7)]()[_0x2ff7d2(0x4ea,0x597,0x4af,0x589)](),'backgroundExtraction':z[_0x691723(-0x12a,-0xad,-0x92,0x2a)]()[_0x2ff7d2(0x4ea,0x567,0x59d,0x646)]()})[_0x2ff7d2(0x65e,0x709,0x7bc,0x6ad)](),recentModelSchema=z[_0x691723(-0x39,0x8b,-0xb6,-0x1c)]({'provider':z['string'](),'model':z[_0x2ff7d2(0x5d0,0x716,0x6ee,0x61c)](),'usedAt':z['number']()})[_0x691723(0x11,-0x144,-0x118,0x10e)](),lspServerEntrySchema=z[_0x2ff7d2(0x614,0x562,0x67e,0x536)]({'disabled':z['boolean']()['optional'](),'command':z[_0x691723(-0x7d,0xa9,-0xe0,0x29)]()[_0x691723(-0x163,-0x164,-0x189,-0x204)](),'args':z[_0x2ff7d2(0x479,0x3e1,0x3a4,0x4c8)](z[_0x2ff7d2(0x5d0,0x5b3,0x648,0x4bc)]())[_0x2ff7d2(0x4ea,0x5df,0x622,0x5e3)](),'rootMarkers':z['array'](z[_0x2ff7d2(0x5d0,0x60b,0x6ae,0x4e3)]())['optional']()})['passthrough'](),lspConfigSchema=z[_0x691723(-0x39,-0xf9,-0x92,0x64)]({'enabled':z[_0x691723(-0x12a,-0x6b,-0x22b,-0x1a1)]()[_0x691723(-0x163,-0x193,-0x163,-0x2c0)](),'servers':z[_0x691723(-0xeb,-0x188,-0x15,-0x1a6)](z[_0x2ff7d2(0x5d0,0x647,0x6bd,0x574)](),lspServerEntrySchema)[_0x691723(-0x163,-0x44,-0x18d,-0xfc)]()})['passthrough'](),serverEndpointSchema=z[_0x2ff7d2(0x614,0x54b,0x6e9,0x4e8)]({'url':z[_0x2ff7d2(0x5d0,0x5d9,0x544,0x6f0)](),'token':z['string']()[_0x691723(-0x163,-0x283,-0x72,-0x1a3)]()})[_0x2ff7d2(0x65e,0x731,0x6ee,0x67a)](),commandHookConfigSchema=z[_0x691723(-0x39,0x11,-0xcf,0x8b)]({'type':z[_0x691723(-0x1de,-0x10e,-0xa7,-0x113)](_0x2ff7d2(0x61a,0x622,0x678,0x671)),'command':z[_0x2ff7d2(0x5d0,0x504,0x71b,0x61d)](),'timeout':z[_0x691723(-0xd1,-0xaa,-0x100,-0x10f)]()[_0x2ff7d2(0x4ea,0x5c5,0x3e7,0x497)]()}),hookMatcherGroupSchema=z[_0x2ff7d2(0x614,0x589,0x737,0x6cf)]({'matcher':z[_0x2ff7d2(0x5d0,0x697,0x61d,0x721)]()[_0x691723(-0x163,-0x7c,-0x212,-0x21b)](),'hooks':z[_0x691723(-0x1d4,-0x191,-0x150,-0x1ef)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x691723(-0x39,-0x16a,0xc3,0xff)]({'PreToolUse':z['array'](hookMatcherGroupSchema)[_0x2ff7d2(0x4ea,0x4fe,0x5de,0x619)](),'PostToolUse':z['array'](hookMatcherGroupSchema)['optional'](),'UserPromptSubmit':z[_0x2ff7d2(0x479,0x3d7,0x5c1,0x4de)](hookMatcherGroupSchema)[_0x691723(-0x163,-0xef,-0x17,-0x85)](),'Stop':z[_0x2ff7d2(0x479,0x430,0x4f8,0x4ea)](hookMatcherGroupSchema)[_0x2ff7d2(0x4ea,0x517,0x53e,0x400)](),'Notification':z[_0x691723(-0x1d4,-0x314,-0x229,-0x277)](hookMatcherGroupSchema)[_0x691723(-0x163,-0x9d,-0x24a,-0x16b)](),'SessionStart':z[_0x2ff7d2(0x479,0x56d,0x4e4,0x55f)](hookMatcherGroupSchema)[_0x691723(-0x163,-0x29f,-0x215,-0x215)](),'SessionEnd':z[_0x2ff7d2(0x479,0x596,0x4e6,0x32f)](hookMatcherGroupSchema)[_0x691723(-0x163,-0x11c,-0x23c,-0x2e)]()}),cliConfigSchema=z[_0x691723(-0x39,0xf,-0x1a,0x35)]({'activeProvider':z[_0x2ff7d2(0x5d0,0x510,0x63f,0x4ab)]()[_0x2ff7d2(0x4ea,0x541,0x609,0x541)](),'activeModel':z[_0x2ff7d2(0x5d0,0x670,0x47c,0x64f)]()[_0x691723(-0x163,-0x1d1,-0x9d,-0x1c0)](),'apiKey':z[_0x691723(-0x7d,-0x155,-0x148,0x76)]()[_0x2ff7d2(0x4ea,0x5a7,0x543,0x584)](),'providers':z[_0x691723(-0xeb,0x34,-0x1d,-0xf1)](z[_0x2ff7d2(0x5d0,0x710,0x656,0x499)](),providerConfigSchema)[_0x2ff7d2(0x4ea,0x3f1,0x60a,0x45a)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x2ff7d2(0x4ea,0x50f,0x4fb,0x40a)](),'agents':agentsSettingsSchema[_0x2ff7d2(0x4ea,0x497,0x4c3,0x4bd)](),'commands':commandsSettingsSchema[_0x2ff7d2(0x4ea,0x4b3,0x4e2,0x39f)](),'skillsEnabled':z[_0x691723(-0xeb,0x1b,0x20,-0xf2)](z['string'](),z[_0x691723(-0x12a,-0x23d,-0x108,0x24)]())[_0x2ff7d2(0x4ea,0x5b7,0x5d6,0x5e4)](),'memory':memorySettingsSchema[_0x691723(-0x163,-0x1ca,-0x2a,-0x7)](),'session':z[_0x691723(-0x39,0xef,0xc7,0x110)]({'memPersist':z['boolean']()[_0x2ff7d2(0x4ea,0x4c2,0x43b,0x4d8)](),'persistEventLog':z[_0x2ff7d2(0x523,0x59a,0x4b3,0x67e)]()[_0x691723(-0x163,-0x140,-0x212,-0xca)](),'persistHttpLog':z[_0x2ff7d2(0x523,0x425,0x461,0x443)]()['optional']()})[_0x2ff7d2(0x65e,0x5a4,0x7b5,0x75b)]()['optional'](),'requireToolApproval':z['boolean']()[_0x691723(-0x163,-0x7c,-0x137,-0x21)](),'thinking':z[_0x2ff7d2(0x414,0x343,0x4b9,0x503)]([_0x2ff7d2(0x40d,0x542,0x349,0x2b3),_0x691723(-0x1b8,-0x2e6,-0x29f,-0x131),_0x2ff7d2(0x5fe,0x60a,0x5dc,0x6d1),_0x2ff7d2(0x64b,0x720,0x6bc,0x60b)])[_0x2ff7d2(0x4ea,0x52a,0x611,0x3b0)](),'streamingChunks':z[_0x691723(-0x12a,-0xd5,-0x214,0x22)]()[_0x691723(-0x163,-0x25f,-0x2a6,-0x130)](),'agentsEnabled':z[_0x691723(-0xeb,-0xff,-0x117,-0x6b)](z[_0x2ff7d2(0x5d0,0x6c0,0x5f3,0x6df)](),z[_0x2ff7d2(0x523,0x622,0x449,0x5a7)]())[_0x2ff7d2(0x4ea,0x3e2,0x546,0x4c3)](),'recentModels':z['array'](recentModelSchema)[_0x691723(-0x163,-0x77,-0x201,-0xcf)](),'lsp':lspConfigSchema[_0x691723(-0x163,-0x55,-0x187,-0x18a)](),'servers':z['record'](z[_0x2ff7d2(0x5d0,0x486,0x594,0x6ec)](),serverEndpointSchema)[_0x2ff7d2(0x4ea,0x3f4,0x4b4,0x521)](),'ui':z[_0x691723(-0x39,-0x157,-0x4d,0xf3)]({'theme':uiThemeSettingsSchema[_0x2ff7d2(0x4ea,0x407,0x409,0x4a1)](),'statusline':statuslineConfigSchema['optional']()})[_0x691723(0x11,-0x26,-0xa4,0x13e)]()[_0x691723(-0x163,-0x14c,-0x2b1,-0x10f)](),'tools':z[_0x691723(-0xeb,-0x2a,-0x89,-0x98)](z['string'](),z[_0x691723(-0x217,-0x265,-0x2a9,-0x2b8)]())[_0x2ff7d2(0x4ea,0x615,0x4b0,0x3e1)](),'hooks':hooksConfigSchema[_0x691723(-0x163,-0x1e2,-0x194,-0x174)]()})[_0x2ff7d2(0x65e,0x70a,0x774,0x58c)]();function buildDescription(_0x2f10df){const _0x828b79={_0x4b5547:0xab,_0x300f76:0xc5,_0x557829:0x604,_0x1f5d5e:0x1a8,_0x109d05:0x46c,_0x1a56c8:0x402},_0x1e3e27={_0x5b23b9:0x36,_0x509168:0x1a9},_0x4c0401={_0x215b15:0x5e};if(_0x2f10df['length']===0x0)return['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0x32a39e(-0x2c,-0x4f,-_0x828b79._0x4b5547,_0x828b79._0x300f76),_0x4ac87d(0x5b0,0x5fc,0x5f8,_0x828b79._0x557829)]['join']('\x0a');function _0x32a39e(_0x5d87fb,_0x3b13ec,_0x577ae7,_0x410951){return _0x691723(_0x3b13ec-0x90,_0x5d87fb,_0x577ae7-_0x4c0401._0x215b15,_0x410951-0xa);}function _0x4ac87d(_0x1b5727,_0x320798,_0x3e3f71,_0x7fc106){return _0x2ff7d2(_0x1b5727- -0xd1,_0x320798,_0x3e3f71-_0x1e3e27._0x5b23b9,_0x7fc106-_0x1e3e27._0x509168);}const _0x366f6d=[_0x32a39e(-_0x828b79._0x1f5d5e,-0xc1,0x80,-0x17c),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.','Available\x20commands:',..._0x2f10df['map'](_0x427dcf=>_0x427dcf[_0x4ac87d(0x496,0x395,0x4ab,0x380)]?'-\x20'+_0x427dcf[_0x32a39e(-0x4f,-0x110,-0x6b,-0x116)]+'\x20'+_0x427dcf['argumentHint']+':\x20'+_0x427dcf[_0x32a39e(-0x195,-0xed,-0x1e0,-0x137)]:'-\x20'+_0x427dcf[_0x32a39e(0x29,-0x110,-0x212,-0x1ad)]+':\x20'+_0x427dcf[_0x32a39e(-0x19b,-0xed,-0x1d8,-0x56)])];return _0x366f6d[_0x4ac87d(_0x828b79._0x109d05,0x373,0x38e,_0x828b79._0x1a56c8)]('\x0a');}function createInvokeCommandTool(_0x1aa9e5){const _0x43fadf={_0x5490e0:0xdd,_0x4e5bda:0xf0,_0x46e43c:0x446,_0x58f603:0x4f0,_0x32e469:0x371,_0x4fc29b:0x42f,_0x4831e7:0x507,_0x44ffc4:0x48e,_0x4ce2f5:0x8d,_0x51cadd:0x2e,_0x40e20a:0x4aa,_0x4a5671:0x5b6,_0x21dc4c:0x505,_0x397602:0x527},_0x36ccf0={_0x4e9cf1:0x42e,_0x115451:0x21a,_0x5c7086:0x2ed,_0x2bcace:0x375,_0xc38b2d:0x2df,_0x589158:0x12c,_0x81c3c1:0x2d4,_0x368353:0x42f,_0xa64692:0x3f8,_0x23a37d:0x275,_0x261c3b:0x3a0,_0x4cd627:0x14f,_0x4847be:0x2d4,_0x4e6914:0x40f,_0x38e246:0x4a8,_0x1693a7:0x3d8,_0x5230ac:0x54f,_0x3387d7:0x65,_0x1d3d87:0x14c},_0x47df14={_0x53b639:0x2c5},_0x49f595={_0x208884:0x666,_0x3e0700:0x4,_0x5755bb:0x1bd};function _0x501a88(_0x4dcf6f,_0x1a1dda,_0x1e3908,_0x42fbc4){return _0x2ff7d2(_0x4dcf6f- -_0x49f595._0x208884,_0x1a1dda,_0x1e3908-_0x49f595._0x3e0700,_0x42fbc4-_0x49f595._0x5755bb);}function _0x4a1501(_0x406762,_0x4eae32,_0x156596,_0x13a139){return _0x691723(_0x4eae32-0x5cb,_0x156596,_0x156596-0x6,_0x13a139-0xb6);}const _0x10b3a0=new Map(_0x1aa9e5[_0x501a88(-_0x43fadf._0x5490e0,-0x1a1,-0x90,-_0x43fadf._0x4e5bda)][_0x4a1501(_0x43fadf._0x46e43c,0x446,_0x43fadf._0x58f603,_0x43fadf._0x32e469)](_0x5e4584=>[_0x5e4584['id'],_0x5e4584])),_0x1f79df=buildDescription(_0x1aa9e5[_0x4a1501(_0x43fadf._0x4fc29b,_0x43fadf._0x4831e7,0x3c0,_0x43fadf._0x44ffc4)]);return defineTool({'name':_0x501a88(-0x3c,-_0x43fadf._0x4ce2f5,0x117,-_0x43fadf._0x51cadd),'description':_0x1f79df,'inputSchema':{'type':_0x4a1501(_0x43fadf._0x40e20a,0x592,0x510,0x43c),'properties':{'name':{'type':_0x4a1501(0x5fa,0x54e,_0x43fadf._0x4a5671,_0x43fadf._0x21dc4c)},'args':{'type':'string'}},'required':[_0x4a1501(0x32b,0x42b,0x4ea,_0x43fadf._0x397602)]},async *'execute'(_0x6683a7){const _0x1c3aee={_0x3e5356:0x48d};function _0x1576f5(_0x291969,_0x3fd389,_0x2482c9,_0x2586f1){return _0x501a88(_0x291969-_0x1c3aee._0x3e5356,_0x3fd389,_0x2482c9-0x51,_0x2586f1-0x56);}const _0x47fca2=_0x10b3a0['get'](_0x6683a7[_0x1576f5(0x2d4,_0x36ccf0._0x4e9cf1,0x1ae,_0x36ccf0._0x115451)]);if(!_0x47fca2){const _0x261e29=Array['from'](_0x10b3a0[_0x133aa4(_0x36ccf0._0x5c7086,0x44d,_0x36ccf0._0x2bcace,0x320)]())['join'](',\x20');throw new ToolExecutionError(_0x133aa4(_0x36ccf0._0xc38b2d,0x228,_0x36ccf0._0x589158,0x231)+_0x6683a7[_0x1576f5(_0x36ccf0._0x81c3c1,0x3cf,_0x36ccf0._0x368353,_0x36ccf0._0xa64692)]+_0x1576f5(_0x36ccf0._0x23a37d,_0x36ccf0._0x261c3b,_0x36ccf0._0x4cd627,0x1b5)+_0x261e29,{'name':_0x6683a7[_0x1576f5(_0x36ccf0._0x4847be,0x360,0x2ad,0x373)]});}const _0x2d0e01=await _0x1aa9e5[_0x1576f5(0x434,0x385,0x4a1,0x401)](_0x47fca2);function _0x133aa4(_0x1980ce,_0x1aea90,_0x38947e,_0x3066e8){return _0x501a88(_0x3066e8-_0x47df14._0x53b639,_0x38947e,_0x38947e-0x13e,_0x3066e8-0x12e);}const _0xbcbaca=_0x6683a7[_0x1576f5(0x3ca,0x38b,_0x36ccf0._0x4e6914,_0x36ccf0._0x38e246)]??'',_0x1a1dd0=renderCommandInstructions({'instructions':_0x2d0e01[_0x133aa4(_0x36ccf0._0x1693a7,0x28a,0x31f,0x31b)],'argumentsText':_0xbcbaca,'argumentNames':_0x2d0e01[_0x1576f5(0x3ff,0x38b,_0x36ccf0._0x5230ac,0x2c2)]});return yield createToolOutput(_0x1a1dd0,{'id':_0x2d0e01['id'],'name':_0x2d0e01['name'],'path':_0x47fca2[_0x133aa4(0x154,0x161,0x155,0x2a1)][_0x133aa4(_0x36ccf0._0x3387d7,0x291,0x221,_0x36ccf0._0x1d3d87)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x576088,rename as _0x1d3fdc,stat as _0x2a672e,writeFile as _0x1cb148}from'fs/promises';import*as _0xca2c5 from'path';function detectEol(_0x36b03b){const _0x36f2d4={_0x322446:0x4ca,_0x54aaa3:0x4fd,_0x221138:0x462,_0x4b40a6:0x5d1,_0x2795e3:0x4e9,_0x13370b:0x492,_0x3b1a13:0x5a8,_0x3486e6:0x4f7},_0x354dbe={_0x588523:0x673},_0x5b5380={_0x1f4e49:0xa5};function _0xb99352(_0x572d1f,_0x2bddd7,_0x396a9e,_0x5085e7){return _0x2ff7d2(_0x5085e7- -0xfa,_0x572d1f,_0x396a9e-0xba,_0x5085e7-_0x5b5380._0x1f4e49);}function _0x3972b5(_0x264f66,_0xd533a,_0x2a0c65,_0x510ba9){return _0x691723(_0x264f66-_0x354dbe._0x588523,_0x2a0c65,_0x2a0c65-0xbb,_0x510ba9-0x163);}return/\r\n/[_0x3972b5(_0x36f2d4._0x322446,0x5fc,0x59d,_0x36f2d4._0x54aaa3)](_0x36b03b[_0x3972b5(0x46c,0x4cf,0x49e,_0x36f2d4._0x221138)](_0xb99352(0x6eb,0x6af,_0x36f2d4._0x4b40a6,0x5b7)))?_0xb99352(_0x36f2d4._0x2795e3,_0x36f2d4._0x13370b,_0x36f2d4._0x3b1a13,_0x36f2d4._0x3486e6):'lf';}function normalizeToLf(_0x3d4a3e){const _0x2eb9fb={_0x1e448e:0x8e,_0x2c6518:0x18b},_0x2f2422={_0x39cb23:0x57d,_0x3e3399:0x174};function _0x3be451(_0x814f88,_0x10ac42,_0x1f3eb3,_0x114c81){return _0x2ff7d2(_0x1f3eb3- -_0x2f2422._0x39cb23,_0x814f88,_0x1f3eb3-_0x2f2422._0x3e3399,_0x114c81-0x101);}return _0x3d4a3e[_0x3be451(_0x2eb9fb._0x1e448e,-0x114,0x35,_0x2eb9fb._0x2c6518)](/\r\n/g,'\x0a');}function convertEol(_0x593474,_0xe210de){const _0x2a654a={_0x47749a:0x12e,_0x20a2ac:0x1b4,_0x4a7828:0x10d,_0x2702fb:0x196,_0x2e1ece:0x225,_0x2fbf4c:0x175,_0x47a7fc:0x2e,_0x2acceb:0x279},_0x2597bf={_0xc9eee1:0x131},_0x31f689={_0x167e31:0x43d,_0x3080b5:0x1,_0x510dd6:0xf9};function _0xc260af(_0x4a7f13,_0x262c26,_0x1e2faf,_0x2a0c89){return _0x2ff7d2(_0x262c26- -_0x31f689._0x167e31,_0x2a0c89,_0x1e2faf-_0x31f689._0x3080b5,_0x2a0c89-_0x31f689._0x510dd6);}function _0x35f913(_0x2bc326,_0x1a6d18,_0xcbcfc,_0x273e01){return _0x2ff7d2(_0x2bc326- -0x507,_0x273e01,_0xcbcfc-0x193,_0x273e01-_0x2597bf._0xc9eee1);}return _0xe210de===_0xc260af(_0x2a654a._0x47749a,_0x2a654a._0x20a2ac,_0x2a654a._0x4a7828,_0x2a654a._0x2702fb)?_0x593474[_0xc260af(_0x2a654a._0x2e1ece,_0x2a654a._0x2fbf4c,_0x2a654a._0x47a7fc,_0x2a654a._0x2acceb)](/\n/g,'\x0d\x0a'):_0x593474;}async function atomicWrite(_0x54407a,_0x44072c){const _0x2fbd84={_0x304e4e:0x48d,_0x185b64:0x61c,_0x5e45c9:0x538,_0x3751b2:0x3fe,_0x36af4a:0xf3,_0x5d0418:0x125,_0x390fba:0x1ce,_0x310056:0xd9,_0x2b5bef:0x81,_0x2d0d47:0x3b,_0x487568:0x24b,_0x1afc8a:0xfc,_0x3cb5a5:0xf7,_0x22187b:0xa0,_0x4453f3:0x7,_0x41ed87:0x6cf,_0x30c73f:0x654,_0x3d901b:0x6b1},_0x40906f={_0x30da2d:0xf9,_0x3243fa:0x184},_0x5ebe30=_0xca2c5[_0x4f63ec(_0x2fbd84._0x304e4e,_0x2fbd84._0x185b64,_0x2fbd84._0x5e45c9,_0x2fbd84._0x3751b2)](_0x54407a);function _0x4f63ec(_0x5787ec,_0x268a22,_0x48a645,_0x35e791){return _0x2ff7d2(_0x48a645-_0x40906f._0x30da2d,_0x5787ec,_0x48a645-_0x40906f._0x3243fa,_0x35e791-0x1f3);}function _0x4223bf(_0x417fe1,_0x66f1f1,_0x598632,_0x3d40f4){return _0x691723(_0x3d40f4-0x200,_0x66f1f1,_0x598632-0x15a,_0x3d40f4-0x1e6);}const _0x521e71=_0xca2c5['join'](_0x5ebe30,_0x4223bf(_0x2fbd84._0x36af4a,0x1d0,0x17e,0x79)+_0xca2c5[_0x4223bf(_0x2fbd84._0x5d0418,0x257,0x7f,_0x2fbd84._0x390fba)](_0x54407a)+'.'+Date[_0x4223bf(-_0x2fbd84._0x310056,0x124,0x77,_0x2fbd84._0x2b5bef)]()+'.'+Math[_0x4223bf(-_0x2fbd84._0x2d0d47,_0x2fbd84._0x487568,0x186,_0x2fbd84._0x1afc8a)]()[_0x4223bf(-_0x2fbd84._0x3cb5a5,-_0x2fbd84._0x22187b,0x15,-_0x2fbd84._0x4453f3)](0x24)[_0x4f63ec(_0x2fbd84._0x41ed87,_0x2fbd84._0x30c73f,_0x2fbd84._0x3d901b,0x5ed)](0x2));await _0x1cb148(_0x521e71,_0x44072c),await _0x1d3fdc(_0x521e71,_0x54407a);}function sha256(_0x48317b){const _0x561c4f={_0x352c9c:0x378,_0x5ed2cc:0x453},_0x3f5741={_0x21d1c3:0x12};function _0x285fd5(_0x54fdd3,_0x4c1f34,_0x4e6527,_0x196358){return _0x691723(_0x196358-0x553,_0x4c1f34,_0x4e6527-_0x3f5741._0x21d1c3,_0x196358-0x39);}function _0x1b96ff(_0x444f2f,_0xe525d7,_0x31feeb,_0x2f3411){return _0x691723(_0x2f3411- -0x51,_0x31feeb,_0x31feeb-0xa6,_0x2f3411-0x9c);}return createHash(_0x285fd5(0x3ba,0x591,_0x561c4f._0x352c9c,_0x561c4f._0x5ed2cc))['update'](_0x48317b)[_0x285fd5(0x3a8,0x37d,0x284,_0x561c4f._0x352c9c)]('hex');}function countLines(_0x3b2908){const _0x30bbc8={_0x78c19b:0x13d,_0x16c8bb:0xaa,_0x27f2e5:0x34c},_0x220b3f={_0x1c6475:0x10c,_0x9b842b:0x3},_0x31f260={_0x11c734:0x195},_0x1e24e8=_0x3b2908['replace'](/\n$/,'');function _0x30bf93(_0x1b1d21,_0x459b6d,_0x13434d,_0x140ef8){return _0x2ff7d2(_0x1b1d21- -0xb1,_0x459b6d,_0x13434d-0x181,_0x140ef8-_0x31f260._0x11c734);}function _0x24b64c(_0x5f9e31,_0x43f617,_0xf67bd8,_0xa6cfec){return _0x691723(_0xf67bd8-0xb3,_0xa6cfec,_0xf67bd8-_0x220b3f._0x1c6475,_0xa6cfec-_0x220b3f._0x9b842b);}return _0x1e24e8['length']===0x0?0x0:_0x1e24e8[_0x24b64c(-_0x30bbc8._0x78c19b,-0x135,-_0x30bbc8._0x16c8bb,-0x16e)]('\x0a')[_0x30bf93(0x491,_0x30bbc8._0x27f2e5,0x37d,0x408)];}function calculateLineNumbers(_0x48bf0a,_0x3c821f,_0x4ca474,_0x3ea0ab){const _0x11fd6a={_0x33de68:0x41c,_0x1ac66b:0x563,_0x24b113:0x432,_0x1ec7b6:0x5e8,_0x3bc7d1:0x48f},_0x1f04a7={_0x1581ed:0xb3,_0x332178:0xdb},_0x227989={_0x2719ac:0x13d},_0x4e6bcb=_0x48bf0a[_0x2994d2(0x460,0x505,_0x11fd6a._0x33de68,0x50e)](0x0,_0x3ea0ab)[_0x2994d2(0x4ec,0x43d,_0x11fd6a._0x1ac66b,_0x11fd6a._0x24b113)]('\x0a')[_0x2994d2(_0x11fd6a._0x1ec7b6,_0x11fd6a._0x3bc7d1,0x3f5,0x523)],_0x9bc976=countLines(_0x3c821f);function _0x3d6cc3(_0x5b3caa,_0x4d7d5c,_0x4754fa,_0x2ee935){return _0x691723(_0x5b3caa-0x34a,_0x4754fa,_0x4754fa-0xd8,_0x2ee935-_0x227989._0x2719ac);}function _0x2994d2(_0x398f59,_0x50b53a,_0xdc0511,_0x52e2e0){return _0x2ff7d2(_0x50b53a- -_0x1f04a7._0x1581ed,_0x52e2e0,_0xdc0511-0x3f,_0x52e2e0-_0x1f04a7._0x332178);}const _0x8463d7=countLines(_0x4ca474);return{'oldStartLine':_0x4e6bcb,'oldEndLine':_0x4e6bcb+_0x9bc976-0x1,'newStartLine':_0x4e6bcb,'newEndLine':_0x4e6bcb+_0x8463d7-0x1,'oldLineCount':_0x9bc976,'newLineCount':_0x8463d7};}function createFileEditTool(_0x478873={}){const _0x3f21f2={_0x3fcefe:0x4b7,_0x1abecf:0x501,_0x3a8194:0x118,_0x533eae:0x22f,_0x55b58c:0x412,_0x23e5c8:0x371,_0x1ab849:0x2b1,_0x2aea24:0x32,_0x4da35a:0x4f,_0xa821e2:0x17,_0x4674cb:0x33e,_0x2b093e:0x220,_0x2916d2:0x15a,_0x359205:0x1de,_0x4ef904:0x191,_0x495f51:0x2f9,_0x4a8657:0x39e,_0x5359c5:0x388,_0xfcf366:0x2f9,_0x218202:0x36b,_0x1267f8:0x443,_0x3403e6:0x2f9,_0x486f63:0x307,_0x2d2ccb:0x24c,_0x462876:0x364,_0x5e2dfb:0x10b,_0x4cf19b:0x27,_0x1a8caf:0xee,_0x361ad8:0x56,_0x347f93:0x6,_0x14b6f9:0x359,_0x191c31:0x235},_0x5105cf={_0x2857ae:0x382,_0x37b3d6:0x436,_0xbce21a:0x3e7,_0x2825ef:0x543,_0x5ac473:0x65e,_0x145071:0x5c7,_0x2d0a53:0x5ca,_0x4529d3:0x5d3,_0x39f928:0x702,_0x17215c:0x5b9,_0x361821:0x4ce,_0xa319e9:0x4c8,_0x5782c1:0x4b2,_0x363e67:0x458,_0x668e:0x3b0,_0x3690da:0x3d2,_0x21c308:0x77e,_0xdba98c:0x6c5,_0x3cff34:0x5aa,_0x54948f:0x42d,_0xfc4d0a:0x588,_0x4b1acd:0x4ce,_0x8c42cc:0x60d,_0x1f1b98:0x542,_0x274125:0x376,_0x5700f6:0x459,_0x152142:0x47e,_0x2cf3f6:0x893,_0x392353:0x7ae,_0x5dee40:0x7d1,_0x1ad779:0x643,_0x1d50af:0x76d,_0x1f991f:0x80f,_0x437a98:0x4cd,_0x550243:0x40d,_0x4c1416:0x37a,_0x59795e:0x509,_0x22d0bf:0x63f},_0xf49976={_0x320ba4:0x2d7,_0x21297e:0x1c4,_0x17158e:0x55},_0x40af55=_0xca2c5[_0x4b594c(0x47d,_0x3f21f2._0x3fcefe,0x3bc,_0x3f21f2._0x1abecf)](_0x478873[_0x4b594c(0xc1,_0x3f21f2._0x3a8194,0x1eb,_0x3f21f2._0x533eae)]??process[_0x4b594c(_0x3f21f2._0x55b58c,0x31d,_0x3f21f2._0x23e5c8,_0x3f21f2._0x1ab849)]());function _0x36ee84(_0x2d2baa,_0x22fe76,_0xa14e3c,_0x49bf3b){return _0x691723(_0x22fe76-0x15b,_0xa14e3c,_0xa14e3c-0xdc,_0x49bf3b-0x129);}const _0x2538bf=(_0x478873[_0x36ee84(-0x5f,-_0x3f21f2._0x2aea24,_0x3f21f2._0x4da35a,0x11b)]??[])[_0x36ee84(-0xe8,-0x2a,0x125,_0x3f21f2._0xa821e2)](_0x396deb=>_0xca2c5[_0x4b594c(0x30d,0x29e,0x3bc,0x3a5)](_0x396deb)),_0x42c5e2=_0x478873[_0x4b594c(0x32b,0x1b5,0x1d6,0x271)]??_0x4b594c(_0x3f21f2._0x4674cb,0x28e,0x299,_0x3f21f2._0x2b093e);function _0x4b594c(_0x2b0ce6,_0x4edd1f,_0x291c6b,_0x99c719){return _0x2ff7d2(_0x291c6b- -_0xf49976._0x320ba4,_0x4edd1f,_0x291c6b-_0xf49976._0x21297e,_0x99c719-_0xf49976._0x17158e);}return defineTool({'name':_0x42c5e2,'description':_0x36ee84(_0x3f21f2._0x2916d2,0x10d,_0x3f21f2._0x359205,_0x3f21f2._0x4ef904),'inputSchema':{'type':_0x4b594c(0x2eb,0x471,0x33d,0x3f9),'properties':{'filePath':{'type':_0x4b594c(0x3b9,0x1fd,_0x3f21f2._0x495f51,_0x3f21f2._0x4a8657)},'oldText':{'type':_0x4b594c(_0x3f21f2._0x5359c5,0x2ec,_0x3f21f2._0xfcf366,_0x3f21f2._0x218202)},'newText':{'type':_0x4b594c(0x28f,_0x3f21f2._0x1267f8,_0x3f21f2._0x3403e6,_0x3f21f2._0x486f63)},'dryRun':{'type':_0x4b594c(_0x3f21f2._0x2d2ccb,_0x3f21f2._0x462876,_0x3f21f2._0x2d2ccb,_0x3f21f2._0x5e2dfb)}},'required':['filePath',_0x36ee84(_0x3f21f2._0x4cf19b,_0x3f21f2._0x1a8caf,-_0x3f21f2._0x361ad8,_0x3f21f2._0x347f93),_0x4b594c(_0x3f21f2._0x14b6f9,_0x3f21f2._0x191c31,0x289,0x3be)]},async *'execute'(_0x2d6adf){const _0x88a75f={_0x2fcfd8:0x9d},_0x3d74a8=resolveAllowedPath(_0x40af55,_0x2538bf,_0x2d6adf[_0x16ffce(_0x5105cf._0x2857ae,_0x5105cf._0x37b3d6,0x39a,_0x5105cf._0xbce21a)]);await assertWorkspaceFile(_0x3d74a8);const _0x19865f=await _0x2a672e(_0x3d74a8),_0x4ab3c8=await _0x576088(_0x3d74a8),_0x29616e=detectEol(_0x4ab3c8),_0x3ea11f=normalizeToLf(_0x4ab3c8[_0x250d00(0x631,_0x5105cf._0x2825ef,0x5b2,_0x5105cf._0x5ac473)](_0x16ffce(0x5a6,_0x5105cf._0x145071,_0x5105cf._0x2d0a53,0x4f6))),_0x2ec815=normalizeToLf(_0x2d6adf['oldText']),_0xfdc246=normalizeToLf(_0x2d6adf['newText']),_0x5cde1e=_0x3ea11f[_0x16ffce(0x4e5,_0x5105cf._0x4529d3,_0x5105cf._0x39f928,0x5ef)](_0x2ec815);if(_0x5cde1e===-0x1){const _0xb60874=_0x2ec815[_0x16ffce(_0x5105cf._0x17215c,_0x5105cf._0x361821,0x45c,0x51e)](0x0,0x64)[_0x16ffce(0x481,_0x5105cf._0xa319e9,0x56f,_0x5105cf._0x5782c1)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0xb60874+(_0x2ec815[_0x16ffce(0x522,_0x5105cf._0x363e67,_0x5105cf._0x668e,_0x5105cf._0x3690da)]>0x64?_0x250d00(0x865,0x719,0x809,_0x5105cf._0x21c308):'')+'\x22',{'filePath':_0x2d6adf[_0x250d00(0x568,0x61d,_0x5105cf._0xdba98c,0x740)]});}const _0x3c6a2a=_0x3ea11f[_0x16ffce(_0x5105cf._0x3cff34,0x4ce,_0x5105cf._0x54948f,_0x5105cf._0xfc4d0a)](0x0,_0x5cde1e)+_0xfdc246+_0x3ea11f[_0x16ffce(0x4ee,_0x5105cf._0x4b1acd,_0x5105cf._0x8c42cc,_0x5105cf._0x1f1b98)](_0x5cde1e+_0x2ec815['length']),_0x9b33ec=convertEol(_0x3c6a2a,_0x29616e);function _0x16ffce(_0x35c15f,_0x41cf32,_0x39d4cc,_0x299748){return _0x36ee84(_0x35c15f-0x1a6,_0x41cf32-0x408,_0x39d4cc,_0x299748-0x78);}const _0x102d1c=Buffer[_0x16ffce(0x242,_0x5105cf._0x274125,_0x5105cf._0x5700f6,_0x5105cf._0x152142)](_0x9b33ec,_0x250d00(_0x5105cf._0x2cf3f6,_0x5105cf._0x392353,_0x5105cf._0x5dee40,0x6e2)),_0x1f7b77=sha256(_0x4ab3c8),_0x3a363a=sha256(_0x102d1c),_0x1d20e5=_0x1f7b77===_0x3a363a;function _0x250d00(_0x5946da,_0x4b50dd,_0x5cdbc2,_0x3796bf){return _0x4b594c(_0x5946da-_0x88a75f._0x2fcfd8,_0x5cdbc2,_0x4b50dd-0x3d4,_0x3796bf-0x40);}const _0x786502=_0x2d6adf[_0x250d00(0x5e5,_0x5105cf._0x1ad779,0x53a,0x579)]??![];return!_0x786502&&!_0x1d20e5&&await atomicWrite(_0x3d74a8,_0x102d1c),yield createToolOutput(_0x1d20e5?_0x16ffce(0x4b9,0x408,0x3e8,0x3eb):_0x786502?'Validated\x20(dry\x20run:\x20no\x20write).':'Edit\x20applied\x20successfully.',{'filePath':_0x2d6adf[_0x16ffce(0x523,0x436,0x3bb,0x431)],'resolvedPath':_0x3d74a8,'created':_0x19865f[_0x250d00(_0x5105cf._0x1d50af,0x6b2,_0x5105cf._0x1f991f,0x6f7)][_0x16ffce(0x57d,_0x5105cf._0x437a98,_0x5105cf._0x550243,0x3fc)](),'modified':_0x19865f[_0x16ffce(_0x5105cf._0x4c1416,0x3f8,0x4f8,0x51b)]['toISOString'](),'size':_0x19865f['size'],'eol':_0x29616e,'oldTextLength':_0x2ec815['length'],'newTextLength':_0xfdc246[_0x250d00(0x6b6,0x63f,0x4f5,0x57c)],'bytesWritten':_0x1d20e5||_0x786502?0x0:_0x102d1c[_0x250d00(_0x5105cf._0x59795e,_0x5105cf._0x22d0bf,0x77d,0x5aa)],'beforeSha':_0x1f7b77,'afterSha':_0x3a363a,'dryRun':_0x786502,'noChange':_0x1d20e5,'lineNumbers':calculateLineNumbers(_0x3ea11f,_0x2ec815,_0xfdc246,_0x5cde1e)}),void 0x0;}});}import{mkdir as _0x33fa57,rename as _0x268756,stat as _0xf6cb2a,writeFile as _0x43355d}from'fs/promises';import*as _0x141638 from'path';async function atomicWrite2(_0x101d68,_0x700df3){const _0x29eba7={_0x400c76:0x2b6,_0x36d511:0xf7,_0x212ceb:0x3e,_0x4ce4cc:0x60,_0x2ec249:0x30c,_0x2946ea:0x34d,_0x469fe3:0x1ab,_0x51df56:0xa0,_0xe2371a:0x1d4,_0x496395:0x1c4,_0x1a9f39:0x382,_0x4ea015:0x395,_0x33e018:0x150,_0x30c052:0x135,_0x194f41:0x1ce,_0x4a838b:0x418,_0x320833:0x5eb,_0x1045a6:0x4a2},_0x299fb9={_0x36c815:0x57b},_0x22d70f={_0x5574f9:0x116,_0x2781c8:0x131},_0x49d117=_0x141638[_0x507d25(_0x29eba7._0x400c76,0x3f5,0x29b,0x329)](_0x101d68);await _0x33fa57(_0x49d117,{'recursive':!![]});const _0xc4f94=_0x141638[_0x3b9160(_0x29eba7._0x36d511,-0x3e,-_0x29eba7._0x212ceb,-_0x29eba7._0x4ce4cc)](_0x49d117,_0x507d25(_0x29eba7._0x2ec249,0x383,_0x29eba7._0x2946ea,0x3b0)+_0x141638[_0x3b9160(_0x29eba7._0x469fe3,_0x29eba7._0x51df56,_0x29eba7._0xe2371a,_0x29eba7._0x496395)](_0x101d68)+'.'+Date[_0x507d25(0x411,0x2cd,_0x29eba7._0x1a9f39,0x3b8)]()+'.'+Math[_0x507d25(_0x29eba7._0x4ea015,0x573,0x405,0x433)]()[_0x3b9160(-_0x29eba7._0x33e018,-_0x29eba7._0x30c052,-_0x29eba7._0x194f41,-0x1ce)](0x24)[_0x507d25(_0x29eba7._0x4a838b,_0x29eba7._0x320833,0x468,_0x29eba7._0x1045a6)](0x2));function _0x507d25(_0xf26bb6,_0x4a0bb9,_0x558b06,_0x5e2cae){return _0x2ff7d2(_0x5e2cae- -_0x22d70f._0x5574f9,_0xf26bb6,_0x558b06-0x10,_0x5e2cae-_0x22d70f._0x2781c8);}function _0x3b9160(_0x2d83bd,_0x26469b,_0x21d358,_0x564543){return _0x2ff7d2(_0x26469b- -_0x299fb9._0x36c815,_0x2d83bd,_0x21d358-0x176,_0x564543-0x1be);}await _0x43355d(_0xc4f94,_0x700df3),await _0x268756(_0xc4f94,_0x101d68);}function createFileNewTool(_0x49dad6={}){const _0x3c8d5b={_0x21407c:0x529,_0x10d05b:0x46f,_0x540366:0x587,_0x5969f0:0x521,_0xbdc297:0x44e,_0x43a220:0x1c6,_0x26d89c:0x8c,_0x3ebbb6:0xdd,_0x370013:0x44d,_0x1b9ae1:0x55e,_0x339eac:0x645,_0x5152eb:0x609,_0x286587:0x55c,_0x2e592f:0x58b,_0x293dbe:0xa3,_0x3940ec:0xb7,_0x369c04:0xaf,_0x41ecdd:0x4f3,_0x33d5dc:0x61a,_0x5baf2b:0x75},_0x2a2e5b={_0x44a5b7:0x254,_0x2b5825:0x229,_0x23a02e:0x244,_0x322ebb:0xff,_0x23295f:0x1c,_0x14939f:0x250,_0x2de706:0x39c,_0x5e22f1:0x2a3,_0x2f9c11:0x3d2,_0x2d5344:0x134,_0x474bbf:0x233,_0x5d9531:0x17b,_0x256501:0x1ba,_0x15c6d8:0xeb,_0x4463a5:0x2ec,_0x44d006:0x301,_0x2c9224:0x251,_0x30190d:0x134,_0x1d663c:0xd,_0x3a57bb:0x22a},_0x202034={_0x3b5259:0x2,_0x4965c0:0x265,_0x3fefa8:0x2d},_0x5cbc9b={_0x1217ae:0x26},_0x47dd06={_0x3b5772:0x126},_0x20e807=_0x141638['resolve'](_0x49dad6[_0x1ffa9f(0x466,_0x3c8d5b._0x21407c,_0x3c8d5b._0x10d05b,_0x3c8d5b._0x540366)]??process['cwd']());function _0x1ffa9f(_0x110b5f,_0xb2c58b,_0x12d15c,_0x416e83){return _0x691723(_0xb2c58b-0x6b4,_0x416e83,_0x12d15c-0x138,_0x416e83-_0x47dd06._0x3b5772);}const _0x24ec92=(_0x49dad6[_0x1ffa9f(_0x3c8d5b._0x5969f0,0x527,0x53b,_0x3c8d5b._0xbdc297)]??[])['map'](_0x491d60=>_0x141638[_0x2acfeb(0x2,0x20,0x81,0x65)](_0x491d60)),_0x1fb80c=_0x49dad6[_0x2acfeb(-0x213,-_0x3c8d5b._0x43a220,-_0x3c8d5b._0x26d89c,-_0x3c8d5b._0x3ebbb6)]??'FileNew';function _0x2acfeb(_0x27f26b,_0x3c696e,_0x17b731,_0x254e23){return _0x691723(_0x3c696e- -_0x5cbc9b._0x1217ae,_0x254e23,_0x17b731-0x2f,_0x254e23-0x1b7);}return defineTool({'name':_0x1fb80c,'description':_0x1ffa9f(_0x3c8d5b._0x370013,_0x3c8d5b._0x1b9ae1,_0x3c8d5b._0x339eac,0x4c4),'inputSchema':{'type':_0x1ffa9f(_0x3c8d5b._0x5152eb,0x67b,_0x3c8d5b._0x286587,_0x3c8d5b._0x2e592f),'properties':{'filePath':{'type':_0x2acfeb(-0x1b3,-_0x3c8d5b._0x293dbe,_0x3c8d5b._0x3940ec,-_0x3c8d5b._0x369c04)},'content':{'type':'string'}},'required':[_0x1ffa9f(0x519,0x587,_0x3c8d5b._0x41ecdd,_0x3c8d5b._0x33d5dc),_0x2acfeb(0x70,-0xab,-_0x3c8d5b._0x5baf2b,-0x34)]},async *'execute'(_0xdc724){function _0x4dc2fd(_0x214d9c,_0x2f6917,_0x41436a,_0x515ea6){return _0x2acfeb(_0x214d9c-_0x202034._0x3b5259,_0x2f6917-_0x202034._0x4965c0,_0x41436a-_0x202034._0x3fefa8,_0x214d9c);}function _0x2097c6(_0x47623f,_0x2b13e6,_0x359d2d,_0x57cde6){return _0x2acfeb(_0x47623f-0xcd,_0x47623f- -0x26,_0x359d2d-0x90,_0x359d2d);}const _0x3e0fa1=resolveAllowedPath(_0x20e807,_0x24ec92,_0xdc724['filePath']),_0x2006c8=await _0xf6cb2a(_0x3e0fa1)[_0x2097c6(-_0x2a2e5b._0x44a5b7,-0x244,-_0x2a2e5b._0x2b5825,-_0x2a2e5b._0x23a02e)](()=>!![])[_0x4dc2fd(0x239,_0x2a2e5b._0x322ebb,0xae,_0x2a2e5b._0x23295f)](()=>![]),_0x470fa2=Buffer[_0x4dc2fd(0xa0,0x52,0x1ae,-0x83)](_0xdc724[_0x4dc2fd(_0x2a2e5b._0x14939f,0x1ba,0xce,0x14e)],_0x4dc2fd(_0x2a2e5b._0x2de706,_0x2a2e5b._0x5e22f1,_0x2a2e5b._0x2f9c11,0x1aa));return await atomicWrite2(_0x3e0fa1,_0x470fa2),yield createToolOutput('File\x20written\x20at\x20'+_0xdc724[_0x2097c6(-0x179,-0x215,-0xe0,-0x1cd)]+'.',{'filePath':_0xdc724['filePath'],'resolvedPath':_0x3e0fa1,'bytes':_0x470fa2[_0x4dc2fd(0x9e,_0x2a2e5b._0x2d5344,_0x2a2e5b._0x474bbf,_0x2a2e5b._0x5d9531)],'lines':_0xdc724[_0x4dc2fd(0x2c4,_0x2a2e5b._0x256501,_0x2a2e5b._0x15c6d8,_0x2a2e5b._0x4463a5)][_0x2097c6(-0x1a9,-_0x2a2e5b._0x44d006,-0xec,-0x182)](/\r?\n/)[_0x4dc2fd(_0x2a2e5b._0x2c9224,_0x2a2e5b._0x30190d,_0x2a2e5b._0x1d663c,0x258)],'created':new Date()[_0x2097c6(-0xe2,-0x1cb,-0x1ac,-_0x2a2e5b._0x3a57bb)](),'overwritten':_0x2006c8}),void 0x0;}});}import{readFile as _0x5d3e89,stat as _0x5ee2f5}from'fs/promises';import*as _0x13c85a from'path';function stripUtfBom(_0x360731){const _0x41d258={_0x2a9255:0x2b3,_0x1c9883:0x164,_0x11f12b:0x161},_0x5baf95={_0x4a4e16:0xc5};function _0x57ec09(_0x4300ee,_0x3b9cd3,_0x550a60,_0x559239){return _0x691723(_0x550a60-0x339,_0x3b9cd3,_0x550a60-_0x5baf95._0x4a4e16,_0x559239-0xc0);}return _0x360731[_0x57ec09(_0x41d258._0x2a9255,_0x41d258._0x1c9883,_0x41d258._0x11f12b,0x19a)](0x0)===0xfeff?_0x360731['slice'](0x1):_0x360731;}function clampLine(_0x200ceb,_0x2bdbcc){const _0x121141={_0x1b8b4b:0x4ff,_0x575828:0x543,_0x59d9de:0x6c2,_0x1e8e6a:0x3ee,_0x537379:0x498,_0x19d8af:0x593,_0x167276:0x5f8,_0x3c1c56:0x688},_0x3976ed={_0x4eab54:0xf,_0x36aee6:0xb9,_0x4ba372:0x189};function _0x97ce47(_0x2881dc,_0x545fae,_0x3f1f15,_0x4d7ea9){return _0x2ff7d2(_0x3f1f15-_0x3976ed._0x4eab54,_0x4d7ea9,_0x3f1f15-_0x3976ed._0x36aee6,_0x4d7ea9-_0x3976ed._0x4ba372);}if(!Number[_0x4863a4(0x484,0x43c,_0x121141._0x1b8b4b,_0x121141._0x575828)](_0x200ceb))return 0x1;function _0x4863a4(_0x299ca1,_0x20495e,_0x4998ca,_0x25ebd4){return _0x2ff7d2(_0x20495e- -0x103,_0x25ebd4,_0x4998ca-0x97,_0x25ebd4-0x1a9);}return Math[_0x97ce47(_0x121141._0x59d9de,0x6c6,0x650,0x6ea)](0x1,Math[_0x97ce47(_0x121141._0x1e8e6a,0x4e9,_0x121141._0x537379,0x56e)](Math[_0x4863a4(0x610,_0x121141._0x19d8af,_0x121141._0x167276,_0x121141._0x3c1c56)](_0x200ceb),_0x2bdbcc));}function _0x2207(){const _0x1e7a6a=['yMfZzty0','C29YDa','C3rYAxbbBNnP','Dg9vChbLCKnHC2u','y3DK','DgLTzw91De1Z','CgfJA2fNzs1SB2nRlMPZB24','seLhsa','Aw52ywXPzf9XDwvZDgLVBNm','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','ChjPB3jPDhK','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','y29UBMvJDa','C2vHCMnOugfYyw1Z','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','C2H1DgrVD24','CgfYC2vjBNq','B3v0Chv0','nJKYnde1nunyD0fmCa','CMvXDwvZDa','ls1MB2XSB3C','Dgf2AwX5','BgLUzuvUza','zgf0yq','tM8GCMvZDwX0CYbMB3vUzc4','zMLSztOVlW','CgfZC3rOCM91z2G','Dg9VBfjLC3vSDhm','yNvUlMXVy2S','CgfJA2fNzxm','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','q29Tu3bLyW','zMXVB3i','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','zhvWBgLJyxrLx3rVzg9FAwrZ','rgLHz25VC3rPyW','CxvLC3rPB25Z','Dg9KB3m','zgvUBY5QC29U','Aw5WDxrty2HLBwe','CgXHDgzVCM0','yNvUlMXVy2TI','ywDLBNrZ','y2fSBfrVB2W','Bw9KzwW','CgfYzw50u2vZC2LVBKLK','CMLWz3jLCcbMywLSzwq6ia','v2vIu2vHCMnO','lMPZB24','r0LgodLH','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','AwzYyw1L','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','y29UC3rYDwn0B3i','CgfYC2u','C3rHCNrZv2L0Aa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','C3rYAw5NAwz5','y2XVC2u','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','lNDLyNa','ihDHCYbHyM9YDgvKlG','AxnjBNrLz2vY','Dg90ywW','zgvMyxvSDa','Cgf0Ag5HBwu','B25Jzq','yMLUyxj5tMfTzq','zgfYAW','C2vYDMvYswq','vMLLD0zPBgu','CMvXDwvZDhm','CNvUswq','Aw52ywXPzf90B2rVx3bYAw9YAxr5','Aw52ywXPzf90B2rVx3n0yxr1CW','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','zMLUywXnzxnZywDL','CMvZB2X2zq','C2L6zq','qxnRvxnLCLrVB2W','Dhj1BMm','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','AxnfBMfIBgvK','zxjYB3i','CMvZDwX0','Aw1Hz2vZ','D29YA3nWywnLl3n5BwjVBa','ChjVCgvYDgLLCW','EwfYBI5SB2nR','B3bLBKzPBgvZ','C3rKB3v0','twLJCM9ZB2z0','yw50AhjVCgLJlw1LC3nHz2vZ','Ahr0Chm6','ie9sia','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','AgfZq2XPzw50CW','Aw52ywXPzf90B2rVx2LK','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','C2TPBgXZ','D2LUmZi','BhmGlwXH','D2HLCMuGCMC','Bg9JywXLq29TCgfYzq','yNL0zuXLBMD0Aa','ls1NBg9IpseUz2L0lYO','A2LUza','DxrMoa','BgfUz18','Aw5JBhvKzxm','Aw50zwDLCG','yxjNDw1LBNrZvgv4Da','CgXHAw4','yxr4','xsb0CMfUC3bVCNqGzxjYB3i6','rMLSzvjLywq','ywrK','l2jPBI9ZAa','Aw5ZDhj1y3rPB25Z','Aw5KzxHpzG','yMLVBwuUANnVBG','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','A2v5CW','A2LSBa','rgv0ywLSoIa','C2v0vg9KB3m','Ec1HCgKTA2v5','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','rMv0y2GGDgLTzwqGB3v0','Ag9TzwrPCG','t0zg','C2vUzfjLCxvLC3q','l29WDc9OB21LyNjLDY9IAw4VCMC','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','Cg5WBs1SB2nRlNLHBwW','te9dquXbufbeqvrb','y29UDgv4Da','zw51Bq','C2vZC2LVBKLK','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','BgLZDfrVB2XZ','Aw1Hz2uVz2LM','C2LNBMfS','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','zw5K','Aw5FChjVz3jLC3m','CMvXDwLYzwq','ue9tva','qMfZzsbKAxjLy3rVCNK6ia','y29Kzq','C3bHD25PBMC','B3jPz2LUvg9VBenHBgXjza','C2v0','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','igj5DgvZks4','ANnVBMm','tuLnrtOG','C2vYDMvYtMfTzq','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','BgfZDeLUzgv4t2y','Aw1WBgvTzw50yxrPB24','z29uB0LTCgXLBwvUDgf0Aw9U','zw5NAw5LCW','qMvHCMvYia','tunqihnLCNzLCIa','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','zw5NAw5L','CMCUzxHL','Cg9W','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','CMvNAw9U','Dw5RBM93BG','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','u2L6ztOG','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','Bwf0y2HLCW','zw5HyMXLza','uefusa','C3jJl3nOyxjLzc90ExbLCY50CW','AxnbyNnVBhv0zq','zgLYBMfTzq','zMLSzvzLCNnPB25Z','cGOTls0kcG','mc4WlJa','BNvT','zg9TywLUCW','DgHLBG','Dg9tDhjPBMC','lu5VuhjVzMLSzq','BwfYA2rVD24','BgLUAW','Aw1Hz2uVD2vICa','thnW','Dg9VBa','lMPZ','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','DhvYBMrVD24','C3rVCMfNzurPCG','lMnTza','BhnWu2vYDMLJzq','A2LSBgvK','ygbGANnVBGO','C2nYAxb0','CgfZC3DVCMq','BgfUzW','Dgv4DerVy3vTzw50l2rPze9Wzw4','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','Ahr0CdO','zM9VDgvY','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','igzYB20G','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','B3jPz2LUywW','zNjVBq','w1bFxL1BxhnCu10QpW','Dg9WAwm','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','C3rHDhvZ','yxv0AfjLCxvPCMvK','CMvMCMvZAf90B2TLBG','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','BM9Zy3jPChq','rxjYB3i','Dhj1zwnVBg9Y','tM8GzgLHz25VC3rPy3m','yMLVBwuUANnVBMm','zxH0zw5ZAw9UCW','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','BgL0zxjHBa','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','yxnPzgu','zgLNzxn0','z2v0vg9KB3m','zgLHz25VC3rPy3m','y2HHCKnVzgvbDa','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','zg9JDw1LBNrtEw1IB2W','AMf2yxnJCMLWDa','yxjYyxK','zgLHz25VC3rPy3ngB3jgAwXL','yxv0Aa','y29TCgXLDgvK','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','lM1QCW','Dgv4Dc9ODg1S','tNv2Aw4','zgvSzxrL','tM8GC3vJAcbMAwXLoIaN','ywXS','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','BwnWxW','y2HHCMfJDgvY','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','ywjVCNq','BwLU','zMLUza','CM9VDa','zxjYB3jnzxnZywDL','CM91BMq','Dg9Rzw4','y3jLyxrLzef0','DhjPBuvUza','z29Vz2XLlwnZzq','z29Vz2XLq3nLs2v5','lMPWzwC','sw5MB3jTyxrPB24','te9x','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','lMDPzG','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','yw5ZD2vYCW','BgLUzvn0yxj0','zMjJBgLK','y21KlMv4zq','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','Dw5PB24','ChvZAa','lNrZ','B2f1DgG','yxbWBgLJyxrPB24VANnVBG','zNvUy3rPB24','DgvZDa','C3rKzxjY','DxjP','y2HHBMDL','lMjPBG','cGPbuKDvtuvovfm6ia','BNv2Aw4','C2fMzq','DgL0Bgu','BMfTzq','y291BNq','y2XPzw50','yxv0BW','D3jPDgu','Bwv0yq','BhnWlxbYB3H5','mta0mJK4mtfzAK1eB0q','Aw5ZDgfSBa','C3rHDhvZvgv4Da','BgLI','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','C2vYDMvY','y29UBMvJDgLVBG','ChjVDg9JB2W','AgLNAa','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','CgXHAw50zxH0','ygbG','ywXSB3DLzerPCNm','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','zgvMyxvSDen3za','BgfUz3vHz2u','BgLUzvrLEhq','BgLUzu51Bq','lNrTCc4','BwnFy2LK','BwfW','zgvMyxvSDfrPBwvVDxrnCW','DxrTx3nVDxjJzq','B25LCNjVCG','zMLSzq','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','BM93','zw50CMLLCW','zgvZy3jPChrPB24','AxnbCNjHEq','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','mJaWmZa5mK9SDe5Sqq','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','z29Vz2XLq3nLq3G','DMfSDwu','C3vIyxjYyxK','Aw52ywXPzf90B3bPyW','o1TExg5DkJ8','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','Cgf0DgvYBIbPCYbYzxf1AxjLza','igj5DgvZ','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','y2XLyw51Ca','D2HPy2GGCMC','ywrKrxzLBNrmAxn0zw5LCG','vg9KB1DYAxrL','BxrPBwu','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','B2C6DxbKyxrLzf90Aw1L','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','zxjYB3jZ','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','BM90Awz5','zgvUBY5QC29UyW','B3b0Aw9UywW','lNrZEa','Bwv0yxrHz3m','Cgf0Aa','DhnZzxj2zxiUANm','zgv0ywLS','C3bSAxq','AgvHzgvYCW','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','zgLYzwn0B3j5','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','C3rHCNq','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','zgLZy292zxj5','ywjVCNrLza','C3rKAw4','zw52','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','qMfZAa','B2zM','Bg93','oIbJB250zw50ihjLCxvPCMvK','y2fSBeLK','ls1NBg9Ipq','BwvZC2fNzq','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','tM8GBg9JyxrPB25ZigzVDw5K','AxndB250zxH0','AxntEw1IB2XPy0XPBMS','Dg9VBhm','C2H1DgrVD25tDgfYDgvK','uhvIBgLZAgvKoIa','CMvMzxjLBMnLCW','y2vPBa','y2f0y2G','C3rHDgu','Dg9Rzw5tDg9YywDLs2v5','z2v0u3rHDhm','zxzLCNK','AgfUzgXL','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','sw52ywXPzcbvuKWGCgfYyw1LDgvY','B3rOzxi','C2HLBgXqyxrO','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','rMv0y2GGywjVCNrLzcbIEsb1C2vY','BwvTB3j5','B3v0z29PBMDdywXSCW','ywXSB3DLzfrVB2XZ','vg9KBYa','yxnRvxnLCG','lM10CW','ywXSu2v0DgXLza','zMLSzvbHDgG','lu5Vtg9NBW','DxrTx21LzgL1Bq','yM9VBgvHBG','cMbGya','A2v5','CMfUz2u','qgjPB21LANmVyMLVBwu','r3jLCa','mtq5oti1og5dvLjlDa','mtzYCuntsLG','ig1Z','CMLWz3jLCa','y29UDgv4DeXPBMS','y29UBMvJDgvK','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','DhLWzxnJCMLWDa','uxvLC3rPB24G','AhjLzG','y2fSBgjHy2TvCMW','zMLUzfjLzMvYzw5Jzxm','BhnW','y2XPzw50sw5MB3jTyxrPB24','y29KzvzLCMLMAwvY','DhjHBNnMB3jTCW','yxnJAwK','yM94zwq','BNbT','AM9PBG','BwnFzwLK','AxngAw5PDgu','mNPmCfLMBW','zMvUy2vK','BgvUz3rO','lMXVzW','CNvUBMLUzW','qxv0Ag9YAxPHDgLVBG','zhj5uNvU','Aw5PDgLHBgL6zwq','l2jPBI9IyxnO','CMfUzg9T','CMvSyxrPDMu','B25oB3rPzMLJyxrPB24','CMvTB3zLrxzLBNrmAxn0zw5LCG','C2HHmJu2','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','Ag9ZDa','y2XPzw50twv0ywrHDgfvCMW','zgLZCg9Zzq','C25PChbLDa','AxneAxjLy3rVCNK','AhrTBfnUAxbWzxq','yMLVBwu','Aw1Hz2u','y2XPzw50CW','BgLUzq','CxvLC3rPB24T','B2XSyw1H','uhjVz3jHBuzPBgvZkhG4nIK','DxnLCM5HBwu','DgLTzvTKyxrLDgLTzv0','ANnVBG','Aw1Hz2uVCg5N','BMv3vgv4Da','C2nVCgvZ','CMvJB3jK','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','zxH0BMfTzq','DxbKyxrLvg9WAwm','z29uB0rLzMLUAxrPB24','yxjNDw1LBNriAw50','CMvZDwX0CW','DhnJ','y29UzMLN','Dg9mB3DLCKnHC2u','DhjHBNnWB3j0','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','z2v0','rMLSzuvKAxq','z2L0qNjHBMnO','B3b0Aw9UCW','vMLLD2vKigLTywDLigzPBgu6ia','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','lMn0CW','l3vZCI9IAw4VyMfZAa','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','CgfJA2fNzu5HBwu','CgLWzq','C3bHD24','BNvTyMvY','DhLWzq','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','Aw52ywXPzf90B2rVCW','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','zMXHDe1HCa','ls1ZDgrPBW','rM91BMqG','ChjLzML4','yxnZAwDU','lw5i','D2fPDezVCKrPywDUB3n0AwnZ','y29TBwfUzhm','tg9HzgvKigzYB206ia','DxjS','B3bLBG','C3LTBgLUAW','Aw5JBhvKzq','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','Dg9VBe5HBwu','Bg9HzfnRAwXS','Dg9KB3ncEvnLC3nPB24','l3vZCI9SB2nHBc9IAw4VCMC','ls1WCMvMAxG','EwvZ','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','y2XLyxi','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','nJe5ndiYvwLRB3nA','AxngAwXL','qwXSia','ChjLCgfYzunHBgXiAwvYyxjJAhK','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','B3bLBMfPlxjLC3bVBNnLCY13CW','Aw52ywXPzf90B2rVx2nVBNrLBNq','yxjNDw1LBNroyw1LCW','DxrTx2nHBxbHAwDU','B3bLCMf0Aw9U','yxjNCW','ls1JB2X1Bw4','zgf0zvjLC3rYAwn0','BM9Kzv9TB2r1BgvZ','vw5HDxrOB3jPEMvKrxjYB3i','zMfPBgvK','r2XVyG','ChvIBgLZAgvKqxq','iYmGu2TPBgW6ia','C3rKAw8','z2nSAwq','BgLZDgvU','AgvHzgvY','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','Aw52ywXPzf90B2rVx2L0zw0','CMvWBgfJzq','DMvYAwzPzxi','yxv0Ag9YAxPHDgLVBL9JB2rL','yMLYDgH0Aw1L','lMnQCW','Dg9ju09tDhjPBMC','C2XPy2u','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','CxvLC3rPB24','yw5ZAte2','ksbB','r0LgodDH','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','z2XVyG','tunqihrVB2WG','sfruuca','BgfIzwW','uhjVz3jHBuzPBgvZ','l3vZCI9IAw4VCMC','ANnJB25MAwCUANnVBG','AhLKCMf0zu1LDge','y29UDgvUDa','lMPWzW','D2vI','v2fYBMLUzW','qwDLBNqGCNvUia','u0Lhs0Lmta','ugf0AcbPCYbUB3qGysbMAwXLoIa','CMfUAW','C3rYAw5N','DhvWBgu','q29TBwfUzcaN','CgvUzgLUzW','ls1OAwrKzw4','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','igj5DgvZicHVCMLNAw5HBdOG','Aw5PDgLHBgL6zq','yxjNDw1LBNrZ','sgLUDa','CxvLCNK','CNnZ','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','B25szwrPCMvJDa','nty4nJqZnfnYBxfxAq','yw5ZAti1nG','B2XKvgv4Da','Ag92zxi','DhjPBq','AgfZ','DxrTx2nVBNrLBNq','y2fJAgvK','yMvHCMvY','Aw5WDxq','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','zgLZywjSzwq','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','C2vUze5VDgLMAwnHDgLVBG','B2zMC2v0','u2TPBgWGjW','lcbpChrPB24G','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','yxr0CG','y3jSzG','DgfZA2TPBgW','Aw1Hz2uVANbLzW','BxvSDgLtzwXLy3q','yxbPs2v5','ru5pru5u','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','pc9ZExn0zw0TCMvTAw5Kzxi+','ywDLBNrjza','DgfZAW','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','Dg9VBc1VDxrWDxqTB2zMBg9Hza','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','tuvesvvn','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','AwDUB3jL','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','ls1MAwXLCW','Dg9Rzw5Z','CgLK','BMf2','z2vUzxjHBa','zgLZy292zxj5u3rHDgu','D29YA3nWywnLu3LTyM9S','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','zgvMAw5PDgLVBG','y29ZDa','C2HPzNq','Bg9HzenVBw1HBMq','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','zxHPDcbJB2rLia','igzHAwXLzc4','DxrTx3rLCM0','Dgf2AwX5qxbPs2v5','zMLSDgvY','B2jQzwn0','CMvJzw5JEurHExm','C2vHCMnOrgvWDgG','Dgv4Da','igj5DgvZicH0B3rHBdOG','zNvSzMLSBgvK','y29TBwfUza','yMfZzw5HBwu','lI4U','u0HfteW','ywn0AxzL','lunVBw1HBMq','mtiWmdC4nMPkBxbHua','Dg91y2HgAwXL','BwvKAxvT','BxrPBwvnCW','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','AxrLBxm','y2XPzw50x3nLy3jLDf9WB3n0','lMPZB25J','Dg9VBenHBgXjza','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','sw52B2TLq29TBwfUza','lNbUzW','ugf0AcbUB3qGzM91BMq6ia','u2HLBgWGBM90igzVDw5KoIa','C3jJl2fNzw50l2fNzw50lNrZ','Aw5JB21PBMDdywXSCW','BgLTAxq','Dhj1zq','CMvHC29U','yNjVA2vU','ls0T','BgLNAhq','zgf0zxrPBwu','Dg9VBhmVy2fSBa','C3jJl2v4yw1WBgvZl2rLBw8UDhm','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','phn5C3rLBs1Yzw1PBMrLCJ4','vw5RBM93BIb0B29SoIa','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','ChjVy2vZCW','Cgf0DgvYBG','CgfJA2fNzs5QC29U','Bwf4','C291CMnL','zgvSAw1PDgvY'];_0x2207=function(){return _0x1e7a6a;};return _0x2207();}function createFileReadTool(_0x3e3961={}){const _0x22d921={_0x5809e9:0x3d1,_0x5c8cf5:0x153,_0x1853e4:0x30b,_0x4e7e91:0x4c1,_0x564414:0x36b,_0x325b11:0x2e1,_0x475764:0x342,_0x2a46bc:0x18d,_0x185913:0xcc,_0x4b5db9:0x3dc,_0xe29f52:0x130,_0x140038:0x345,_0x9d0ef:0x335,_0x1a3cae:0x2f3,_0xb80ae3:0x319,_0x8ecac4:0x145,_0x1939bf:0x19b},_0x15c26d={_0x4ae6e5:0x363,_0x1f106a:0x3da,_0x327439:0x589,_0xc030a8:0x485,_0x202d63:0x484,_0x42e98a:0x665,_0x49b658:0x56b,_0x13d79d:0x529,_0x5cfab5:0x648,_0x457f94:0x7a0,_0x4d0811:0x45b,_0x1ace8f:0x5a2,_0x255c55:0x7ff,_0x54bcba:0x61c,_0x3a0eb7:0x6ad,_0x47bc35:0x54e,_0x2bc3af:0x5b6,_0x2b721a:0x63e,_0x3dd1fb:0x3ef,_0x220163:0x41a,_0x149f0b:0x342,_0x56f2b2:0x68c,_0x311872:0x63c,_0x240a41:0x5d6,_0x2111c7:0x63a,_0x5afd65:0x3d5,_0x3d4c0d:0x4e3,_0xbad4f1:0x3a5,_0x381426:0x3be,_0x3754ad:0x51e,_0x4e8994:0x4f6,_0x1511c7:0x63a,_0x112622:0x5ca,_0x38eb87:0x586,_0x3c977c:0x510,_0x5d9bd2:0x4d9,_0x3e1d45:0x651,_0x53c38b:0x5b1,_0x50932b:0x581,_0x662568:0x7f3,_0x403958:0x888,_0x3cbf39:0x607,_0x4e142e:0x739,_0x4cb52d:0x4ce,_0x4a7489:0x4f4,_0x59b35a:0x466,_0x4ea3b6:0x41a,_0x38fbcf:0x566},_0xa79d5={_0x216535:0x5},_0x38ab2d={_0x27d284:0x2dd,_0x457f03:0x41,_0x181714:0x10c},_0x20b94e=_0x13c85a[_0x223b3a(0x2af,_0x22d921._0x5809e9,0x27c,0x3c2)](_0x3e3961[_0x223b3a(_0x22d921._0x5c8cf5,0x1b,0xab,0x77)]??process[_0x131aff(_0x22d921._0x1853e4,_0x22d921._0x4e7e91,_0x22d921._0x564414,_0x22d921._0x325b11)]()),_0x5067bd=(_0x3e3961[_0x131aff(0x2cb,0x25d,0x1e3,_0x22d921._0x475764)]??[])[_0x223b3a(0x18,_0x22d921._0x2a46bc,0xb1,0x6e)](_0x43dc18=>_0x13c85a['resolve'](_0x43dc18)),_0x13e471=_0x3e3961[_0x131aff(0xcd,0x32d,0x1d0,_0x22d921._0x185913)]??_0x131aff(0x35b,0x418,_0x22d921._0x4b5db9,0x459);function _0x131aff(_0x180013,_0x210c78,_0x2dcc2a,_0x5e3b39){return _0x2ff7d2(_0x2dcc2a- -_0x38ab2d._0x27d284,_0x180013,_0x2dcc2a-_0x38ab2d._0x457f03,_0x5e3b39-_0x38ab2d._0x181714);}function _0x223b3a(_0x4e2dcc,_0x3ceb9a,_0x34a23b,_0xce1201){return _0x691723(_0x34a23b-0x236,_0x4e2dcc,_0x34a23b-_0xa79d5._0x216535,_0xce1201-0x1db);}return defineTool({'name':_0x13e471,'description':_0x131aff(_0x22d921._0xe29f52,0x1cb,0x147,0x19e),'inputSchema':{'type':_0x223b3a(_0x22d921._0x140038,0x316,0x1fd,0x286),'properties':{'path':{'type':_0x131aff(_0x22d921._0x9d0ef,0x3e7,_0x22d921._0x1a3cae,_0x22d921._0xb80ae3)},'lineStart':{'type':_0x223b3a(_0x22d921._0x8ecac4,0x1c3,0x165,_0x22d921._0x1939bf),'description':'Start\x20reading\x20from\x20this\x20line\x20number\x20(1-based)'},'lineEnd':{'type':'number','description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':[_0x223b3a(0x1cc,0x75,0xd6,0x161)]},async *'execute'(_0x4f108d){const _0x292750={_0x225f2a:0xf7,_0x70a993:0x274},_0x3ba562={_0x5a31d5:0x25},_0x18a510=resolveAllowedPath(_0x20b94e,_0x5067bd,_0x4f108d[_0x58b1a4(0x484,_0x15c26d._0x4ae6e5,0x54d,_0x15c26d._0x1f106a)]);function _0x2d09cf(_0x237349,_0x4d0c0e,_0x187dbd,_0x491393){return _0x131aff(_0x4d0c0e,_0x4d0c0e-0x14d,_0x491393-0x3d5,_0x491393-_0x3ba562._0x5a31d5);}await assertWorkspaceFile(_0x18a510);const _0x259c35=await _0x5ee2f5(_0x18a510),_0x2aaeec=await _0x5d3e89(_0x18a510);if(isProbablyBinary(_0x2aaeec))throw new ToolExecutionError(_0x2d09cf(_0x15c26d._0x327439,0x5ca,_0x15c26d._0xc030a8,0x5c5)+_0x4f108d[_0x58b1a4(_0x15c26d._0x202d63,0x59a,0x51f,0x598)],{'path':_0x4f108d['path']});let _0x373879=_0x2aaeec[_0x2d09cf(_0x15c26d._0x42e98a,_0x15c26d._0x49b658,_0x15c26d._0x13d79d,0x53e)](_0x58b1a4(_0x15c26d._0x5cfab5,_0x15c26d._0x457f94,0x52e,0x753));const _0x5518d7=_0x373879[_0x2d09cf(_0x15c26d._0x4d0811,_0x15c26d._0x1ace8f,0x5e0,0x56d)](0x0)===0xfeff;_0x373879=stripUtfBom(_0x373879);const _0x2dba9b=_0x373879['split'](/\r?\n/),_0x343097={'path':_0x4f108d['path'],'resolvedPath':_0x18a510,'created':_0x259c35[_0x2d09cf(0x59b,_0x15c26d._0x255c55,_0x15c26d._0x54bcba,_0x15c26d._0x3a0eb7)][_0x58b1a4(_0x15c26d._0x47bc35,_0x15c26d._0x2bc3af,_0x15c26d._0x2b721a,0x604)](),'modified':_0x259c35[_0x58b1a4(0x479,_0x15c26d._0x3dd1fb,_0x15c26d._0x220163,_0x15c26d._0x149f0b)]['toISOString'](),'size':_0x259c35['size'],'encoding':_0x58b1a4(0x648,_0x15c26d._0x56f2b2,_0x15c26d._0x311872,0x78a),'bomStripped':_0x5518d7,'truncated':![],'totalLines':_0x2dba9b[_0x2d09cf(0x761,_0x15c26d._0x240a41,0x6b6,_0x15c26d._0x2111c7)]};function _0x58b1a4(_0x17d01a,_0xdb9f1f,_0x402f08,_0x323d2e){return _0x131aff(_0xdb9f1f,_0xdb9f1f-_0x292750._0x225f2a,_0x17d01a-_0x292750._0x70a993,_0x323d2e-0xe6);}if(_0x4f108d[_0x58b1a4(0x431,_0x15c26d._0x5afd65,0x370,0x457)]!==void 0x0||_0x4f108d[_0x58b1a4(0x5f1,0x5fa,_0x15c26d._0x3d4c0d,0x664)]!==void 0x0){const _0x10d11f=clampLine(_0x4f108d[_0x58b1a4(0x431,_0x15c26d._0xbad4f1,_0x15c26d._0x381426,0x323)]??0x1,_0x2dba9b[_0x2d09cf(0x517,_0x15c26d._0x3754ad,_0x15c26d._0x4e8994,_0x15c26d._0x1511c7)]),_0x453dae=clampLine(_0x4f108d[_0x58b1a4(0x5f1,_0x15c26d._0x112622,_0x15c26d._0x38eb87,0x5b2)]??_0x2dba9b[_0x2d09cf(0x6a4,0x6e8,_0x15c26d._0x3c977c,0x63a)],_0x2dba9b[_0x58b1a4(_0x15c26d._0x5d9bd2,0x5bd,0x383,0x4c6)]),_0x5a30f1=Math[_0x2d09cf(_0x15c26d._0x3e1d45,_0x15c26d._0x53c38b,0x566,_0x15c26d._0x50932b)](_0x10d11f,_0x453dae),_0x38be00=Math[_0x2d09cf(_0x15c26d._0x662568,_0x15c26d._0x403958,_0x15c26d._0x3cbf39,_0x15c26d._0x4e142e)](_0x10d11f,_0x453dae),_0x1e37bd=_0x2dba9b['slice'](_0x5a30f1-0x1,_0x38be00)['map']((_0x40de61,_0x11471f)=>_0x5a30f1+_0x11471f+'|'+_0x40de61)[_0x58b1a4(0x4d4,_0x15c26d._0x202d63,_0x15c26d._0x4cb52d,_0x15c26d._0x4a7489)]('\x0a');return yield createToolOutput(_0x1e37bd,{..._0x343097,'lineRange':{'lineStart':_0x5a30f1,'lineEnd':_0x38be00,'linesTotal':_0x2dba9b[_0x58b1a4(0x4d9,_0x15c26d._0x59b35a,_0x15c26d._0x4ea3b6,_0x15c26d._0x38fbcf)]}}),void 0x0;}return yield createToolOutput(_0x373879,_0x343097),void 0x0;}});}import{stat as _0x41ca24}from'fs/promises';import*as _0x365e9b from'path';import{execSync,spawn as _0x2f8e81}from'child_process';import{existsSync}from'fs';import{stat as _0x1cb071}from'fs/promises';import*as _0x1d8cec from'os';import*as _0x6c8c2b from'path';import{rgPath as _0x41284f}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x3bbe3a={_0x1fe75f:0x512,_0x5f30cf:0x63a,_0x1de956:0x53f,_0x5cb9d3:0x432,_0x2ffe68:0x54f,_0x357a87:0x613,_0x2c39b7:0x1e2,_0x5435d0:0x398,_0x3ef5ab:0x23a,_0x15e635:0x2e8,_0x586e63:0x251,_0x2e3656:0x289,_0x50b7ca:0x447,_0x49b22b:0x4d7,_0xc4d725:0x39e,_0x3ebeca:0x2ae,_0x44923f:0x3a0,_0x97a03b:0x504,_0x42395f:0x469,_0x410ca8:0x30f,_0x26b293:0x52d,_0x4311ac:0x291,_0x2383ec:0xe2,_0x138f4e:0x408,_0x383a69:0x25f,_0x160c09:0x535,_0x218fb3:0x400,_0x5c4e27:0x2e1,_0x302afd:0x119,_0xdbb73c:0x229,_0x2c2cf5:0x305,_0x3fb2e7:0x2d8,_0x5a637c:0x2b4,_0x5f5810:0x3a1,_0x29a361:0x2de,_0x177850:0x438,_0x43235b:0x446,_0x502c4a:0x551,_0x3be362:0x485,_0x3b6dc1:0x1dc,_0x51928c:0xb6,_0x40285e:0x429,_0x266660:0x220,_0x4d0a49:0x3e5,_0x55da75:0x1ea},_0x474957={_0x545f3b:0xdd},_0x34cb49={_0x1821b6:0x303,_0x17611e:0x2c};function _0x53caf7(_0xb73efe,_0x1acc6e,_0x2c6359,_0x58cbb5){return _0x2ff7d2(_0x2c6359- -_0x34cb49._0x1821b6,_0xb73efe,_0x2c6359-0x99,_0x58cbb5-_0x34cb49._0x17611e);}const _0x5bfa58=_0x1d8cec[_0x8db999(0x475,_0x3bbe3a._0x1fe75f,_0x3bbe3a._0x5f30cf,_0x3bbe3a._0x1de956)]()===_0x8db999(_0x3bbe3a._0x5cb9d3,_0x3bbe3a._0x2ffe68,_0x3bbe3a._0x357a87,0x3ff),_0x269fb7=_0x5bfa58?[_0x6c8c2b[_0x53caf7(_0x3bbe3a._0x2c39b7,_0x3bbe3a._0x5435d0,_0x3bbe3a._0x3ef5ab,_0x3bbe3a._0x15e635)](process['env'][_0x8db999(_0x3bbe3a._0x586e63,0x2b7,_0x3bbe3a._0x2e3656,0x172)]||'',_0x53caf7(_0x3bbe3a._0x50b7ca,_0x3bbe3a._0x49b22b,_0x3bbe3a._0xc4d725,_0x3bbe3a._0x3ebeca),'WinGet','Packages'),_0x6c8c2b['join'](process[_0x8db999(0x2ca,_0x3bbe3a._0x44923f,0x4ad,0x3a4)][_0x8db999(_0x3bbe3a._0x97a03b,_0x3bbe3a._0x42395f,_0x3bbe3a._0x410ca8,_0x3bbe3a._0x26b293)]||'',_0x8db999(0x513,0x3d1,0x304,0x3d4),'rg.exe'),_0x6c8c2b[_0x53caf7(0x169,_0x3bbe3a._0x4311ac,0x23a,_0x3bbe3a._0x2383ec)](process[_0x8db999(_0x3bbe3a._0x138f4e,_0x3bbe3a._0x44923f,0x465,_0x3bbe3a._0x383a69)][_0x8db999(_0x3bbe3a._0x160c09,_0x3bbe3a._0x218fb3,0x42a,0x2d5)]||'',_0x53caf7(_0x3bbe3a._0x5c4e27,_0x3bbe3a._0x302afd,_0x3bbe3a._0xdbb73c,0x145),_0x8db999(_0x3bbe3a._0x2c2cf5,0x2d7,0x200,_0x3bbe3a._0x3fb2e7))]:[_0x8db999(0x3fe,_0x3bbe3a._0x5a637c,_0x3bbe3a._0x5f5810,_0x3bbe3a._0x29a361),_0x8db999(0x310,_0x3bbe3a._0x177850,_0x3bbe3a._0x43235b,0x4b2),_0x8db999(0x504,0x46a,0x557,0x455),'/bin/rg'];function _0x8db999(_0x47ae54,_0x3e91a2,_0x484748,_0x2f1619){return _0x2ff7d2(_0x3e91a2- -0x15b,_0x484748,_0x484748-_0x474957._0x545f3b,_0x2f1619-0x1eb);}for(const _0x9e910 of _0x269fb7){if(existsSync(_0x9e910))return _0x9e910;}try{const _0x17aa4b=_0x5bfa58?_0x8db999(0x4ab,_0x3bbe3a._0x502c4a,_0x3bbe3a._0x3be362,0x646):_0x53caf7(0x1b7,0x29f,_0x3bbe3a._0x3b6dc1,_0x3bbe3a._0x51928c),_0x53bf54=execSync(_0x17aa4b,{'encoding':_0x8db999(0x49d,0x556,_0x3bbe3a._0x40285e,0x4c5),'stdio':['pipe',_0x53caf7(0x30f,_0x3bbe3a._0x266660,0x277,0x3aa),_0x53caf7(0x1d7,_0x3bbe3a._0x4d0a49,0x2fd,0x3a8)]})['trim']()[_0x53caf7(_0x3bbe3a._0x55da75,0x29a,0x1ed,0xcc)](/\r?\n/)[0x0];if(_0x53bf54&&existsSync(_0x53bf54))return _0x53bf54;}catch{return null;}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;if(_0x41284f&&existsSync(_0x41284f))return cachedRgPath=_0x41284f,_0x41284f;const _0x1d221f=findSystemRipgrep();if(!_0x1d221f)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x1d221f,_0x1d221f;}async function*files(_0x35b3a1){const _0x14b526={_0x5ce774:0x3a2,_0x220129:0x419,_0x54d4fa:0x452,_0x11aefb:0x324,_0x2a862f:0x341,_0x5afbf2:0x349,_0x1e55db:0x54c,_0x362fe8:0x37e,_0xba2dc5:0x44e,_0x15bd61:0x3e3,_0x46e7c8:0x47b,_0x1cc9e1:0x455,_0x3166ec:0x2df,_0x51279a:0x345,_0x1f1e5f:0x47e,_0x460a9f:0x3b5,_0x440c12:0x3ce,_0x48def2:0x3ec,_0x5d49b4:0x480,_0x42c376:0x391,_0x49d73d:0x1b9,_0x4e012d:0x270,_0x9d3fb6:0x424,_0x3ccfc6:0x2e3,_0x4e6811:0x538,_0x50385f:0x47d,_0x31c70c:0x419,_0x3f643a:0x389,_0x5da08c:0x36c,_0x286180:0x3d1,_0x7456b0:0x3c6,_0x842f9d:0x43a,_0x2e7f78:0x32a,_0x22e6aa:0x34b,_0x4ba2a6:0x213,_0x41376b:0x379,_0xc8df32:0x2b6,_0x406963:0x14d,_0x308b6b:0x214,_0x7ae465:0x4b2,_0x1b6d01:0x2d4,_0x50fd5b:0x23b,_0x396172:0x3f0,_0x244c51:0x330,_0x2f09b6:0x323,_0x4821e9:0x2fd,_0x3bcf12:0x3b3},_0x4ce838={_0x11e4bd:0x175},_0x373a3b={_0x597d2e:0xdc},_0xd89dd1=await filepath();function _0x29f7e6(_0x419b21,_0x31886b,_0x34b8ad,_0x3720ef){return _0x2ff7d2(_0x3720ef- -0x21f,_0x34b8ad,_0x34b8ad-0x67,_0x3720ef-_0x373a3b._0x597d2e);}const _0x1dcbf4=await _0x1cb071(_0x35b3a1[_0x1b51e3(_0x14b526._0x5ce774,0x326,0x45d,_0x14b526._0x220129)])['catch'](()=>null);if(!_0x1dcbf4?.[_0x1b51e3(0x3ad,_0x14b526._0x54d4fa,0x3b1,_0x14b526._0x11aefb)]())throw Object['assign'](new Error(_0x1b51e3(_0x14b526._0x2a862f,0x415,0x41c,_0x14b526._0x5afbf2)+_0x35b3a1[_0x29f7e6(_0x14b526._0x1e55db,0x4c9,0x439,0x429)]+'\x27'),{'code':'ENOENT'});function _0x1b51e3(_0x28f31d,_0x3ad8ff,_0x516957,_0x249392){return _0x2ff7d2(_0x249392- -0x22f,_0x28f31d,_0x516957-_0x4ce838._0x11e4bd,_0x249392-0xf3);}const _0x52cea1=[_0x29f7e6(_0x14b526._0x362fe8,_0x14b526._0xba2dc5,0x323,_0x14b526._0x15bd61),_0x29f7e6(_0x14b526._0x46e7c8,0x598,_0x14b526._0x1cc9e1,0x439),_0x29f7e6(_0x14b526._0x3166ec,_0x14b526._0x51279a,_0x14b526._0x1f1e5f,_0x14b526._0x460a9f),_0x1b51e3(_0x14b526._0x440c12,_0x14b526._0x48def2,0x577,_0x14b526._0x5d49b4)];for(const _0x52d108 of _0x35b3a1[_0x1b51e3(0x4bd,0x2b9,0x42c,_0x14b526._0x42c376)]??[]){_0x52cea1[_0x1b51e3(0x384,_0x14b526._0x49d73d,0x3a3,_0x14b526._0x4e012d)](_0x29f7e6(0x244,0x316,_0x14b526._0x9d3fb6,_0x14b526._0x3ccfc6)+_0x52d108);}const _0x22319f=_0x2f8e81(_0xd89dd1,_0x52cea1,{'cwd':_0x35b3a1[_0x1b51e3(0x3d5,_0x14b526._0x4e6811,_0x14b526._0x50385f,_0x14b526._0x31c70c)],'stdio':[_0x1b51e3(_0x14b526._0x3f643a,0x359,_0x14b526._0x5da08c,_0x14b526._0x286180),'pipe',_0x1b51e3(_0x14b526._0x7456b0,_0x14b526._0x842f9d,_0x14b526._0x2e7f78,_0x14b526._0x22e6aa)]});let _0x1eb24e='';for await(const _0x2b33d9 of _0x22319f['stdout']??[]){_0x1eb24e+=_0x2b33d9['toString']();const _0x1a9b64=_0x1eb24e[_0x1b51e3(_0x14b526._0x4ba2a6,_0x14b526._0x41376b,0x2e2,0x2c1)](/\r?\n/);_0x1eb24e=_0x1a9b64[_0x29f7e6(0x282,_0x14b526._0xc8df32,_0x14b526._0x406963,_0x14b526._0x308b6b)]()??'';for(const _0x178173 of _0x1a9b64){if(_0x178173[_0x1b51e3(0x45f,0x3fc,0x311,0x313)]>0x0)yield _0x178173;}}_0x1eb24e[_0x1b51e3(_0x14b526._0x7ae465,0x3a7,_0x14b526._0x1b6d01,0x3b3)]()[_0x29f7e6(_0x14b526._0x50fd5b,_0x14b526._0x396172,_0x14b526._0x244c51,_0x14b526._0x2f09b6)]>0x0&&(yield _0x1eb24e[_0x1b51e3(0x29d,_0x14b526._0x2a862f,_0x14b526._0x4821e9,_0x14b526._0x3bcf12)]());}function parseMatchLine(_0x29ce57,_0x87a886){const _0x5ea4c9={_0xbe21:0x4d0,_0x30f092:0x13b,_0x3f8344:0x1b2,_0x38cdee:0x25c,_0x20d8f8:0x297,_0x499f06:0x371,_0x34c949:0x2f0,_0x3d7689:0x32f,_0x24dd7e:0x441,_0xcc8cc0:0x4d9,_0x3dec39:0x2cc,_0x220f6d:0x2cd,_0x1f7d5c:0x330,_0x1b026c:0x4dd,_0xd6f84d:0x3da,_0x3df78d:0x3c4,_0x57c086:0x3c6,_0x450884:0x3c8,_0x2af8f3:0x35d,_0x42ccd5:0x2b2,_0x22303b:0x2d5,_0x2d3885:0x4be},_0x4af37={_0x34b3e5:0x177},_0x426dbe={_0x136144:0x4d6,_0x5a074a:0x11f};if(!_0x29ce57||_0x29ce57==='--')return null;const _0x16c182=_0x29ce57['split']('|');function _0x4670b9(_0x1a33e5,_0xf0c1cf,_0x102196,_0x55fee1){return _0x691723(_0x102196-_0x426dbe._0x136144,_0x1a33e5,_0x102196-0x26,_0x55fee1-_0x426dbe._0x5a074a);}function _0x2b156e(_0x4ed033,_0x5a8a0c,_0x53c2d9,_0xdda49f){return _0x691723(_0xdda49f-0x36a,_0x5a8a0c,_0x53c2d9-_0x4af37._0x34b3e5,_0xdda49f-0x24);}if(_0x87a886&&_0x16c182[_0x4670b9(0x4dc,_0x5ea4c9._0xbe21,0x3cb,0x47e)]>=0x4&&Number[_0x2b156e(_0x5ea4c9._0x30f092,_0x5ea4c9._0x3f8344,0x2ae,_0x5ea4c9._0x38cdee)](Number[_0x2b156e(0x2e3,_0x5ea4c9._0x20d8f8,0x31e,_0x5ea4c9._0x499f06)](_0x16c182[0x2]??'',0xa))){const _0x5069b6=Number['parseInt'](_0x16c182[0x1]??'',0xa);if(!Number[_0x4670b9(0x41b,_0x5ea4c9._0x34c949,0x3c8,0x34d)](_0x5069b6)||!_0x16c182[0x0])return null;return{'filePath':_0x16c182[0x0],'lineNum':_0x5069b6,'lineText':_0x16c182[_0x4670b9(0x3fd,_0x5ea4c9._0x3d7689,_0x5ea4c9._0x24dd7e,0x3fa)](0x3)[_0x4670b9(0x513,0x297,0x3c6,_0x5ea4c9._0xcc8cc0)]('|')};}if(_0x16c182[_0x2b156e(_0x5ea4c9._0x3dec39,_0x5ea4c9._0x220f6d,_0x5ea4c9._0x1f7d5c,0x25f)]>=0x3){const _0x30f7b9=Number[_0x4670b9(0x3fb,0x3e2,_0x5ea4c9._0x1b026c,_0x5ea4c9._0xd6f84d)](_0x16c182[0x1]??'',0xa);if(!Number[_0x4670b9(_0x5ea4c9._0x3df78d,_0x5ea4c9._0x57c086,_0x5ea4c9._0x450884,_0x5ea4c9._0x2af8f3)](_0x30f7b9)||!_0x16c182[0x0])return null;return{'filePath':_0x16c182[0x0],'lineNum':_0x30f7b9,'lineText':_0x16c182[_0x2b156e(_0x5ea4c9._0x42ccd5,0x363,0x313,_0x5ea4c9._0x22303b)](0x2)[_0x4670b9(0x3ef,_0x5ea4c9._0x2d3885,0x3c6,0x4bf)]('|'),..._0x87a886?{'isContext':!![]}:{}};}return null;}async function search(_0x1a5962){const _0x197539={_0x567128:0x593,_0x1515a1:0x583,_0x408e8a:0x323,_0x2bb088:0x523,_0x1eeca8:0x4cc,_0x19fb47:0x3e3,_0xd6aa1f:0x324,_0x2bedd8:0x425,_0x5a2e45:0x424,_0x32998a:0x608,_0x3ded03:0x551,_0x5b0f18:0x64d,_0x3096b7:0x507,_0x6ccf0e:0x637,_0x363134:0x549,_0x901d14:0x28e,_0x18ab61:0x748,_0xc9129f:0x6bd,_0x79dd7f:0x71e,_0x430e38:0x724,_0x3a65a2:0x7d5,_0x1f09d6:0x5d4,_0x38b41f:0x60a,_0x4a7673:0x6b0,_0x3dc0fb:0x61a,_0x19d7fe:0x751,_0x1dbd87:0x493,_0x547108:0x5c1,_0x5dfcf8:0x514,_0x5a5497:0x52d,_0x416296:0x3cf,_0x10242d:0x49e,_0x317133:0x705,_0x360b3c:0x853,_0x54d913:0x5fe,_0x1ac462:0x4da,_0x2ec01c:0x3d2,_0x256bf2:0x595,_0xfc9b97:0x566,_0x1ec124:0x5f7,_0xa96eb0:0x5a2,_0x5636be:0x4a5,_0x3406e0:0x596,_0x56f2bc:0x7c9,_0x4550d4:0x3e3,_0x1ed421:0x54f,_0x4b3435:0x69c,_0x3b7046:0x634,_0x40ec64:0x492,_0x108c2c:0x67e,_0x8de5fc:0x5e0},_0x11e0c9={_0x553f99:0x32b,_0xaa673d:0x3bc,_0x7f8364:0x3fa,_0x5275b5:0x52b,_0xfd2598:0x303,_0xf91e90:0x338,_0x5ebaae:0x530,_0x464ed7:0x57e,_0x5bd501:0x478},_0x1c629e={_0x4121fd:0x1f,_0x554b75:0x193,_0x2a3d62:0x69a,_0x403f10:0x80a,_0x18e288:0x6e5,_0x266ecc:0x6d8,_0x6ae2f:0x161,_0x3c2b53:0x3c,_0x416dfd:0x15a,_0x3f5fd8:0x589},_0x2ec911={_0x9c2efc:0x15d,_0x1889e5:0x191},_0x860420={_0x284b5a:0x714,_0x272f2f:0xb2},_0x2d6d5c={_0x42c0e0:0x564,_0x148d0b:0xaa},_0x283015=await filepath();if(_0x1a5962[_0x2ff52d(0x6be,0x5e7,_0x197539._0x567128,_0x197539._0x1515a1)]){const _0xfcce04=await _0x1cb071(_0x1a5962[_0x17b2af(_0x197539._0x408e8a,_0x197539._0x2bb088,_0x197539._0x1eeca8,_0x197539._0x19fb47)])[_0x17b2af(_0x197539._0xd6aa1f,0x37d,_0x197539._0x2bedd8,_0x197539._0x5a2e45)](()=>null);if(!_0xfcce04?.[_0x17b2af(_0x197539._0x32998a,_0x197539._0x3ded03,0x579,0x4b1)]())throw Object[_0x2ff52d(0x52f,0x574,_0x197539._0x5b0f18,0x6d5)](new Error(_0x2ff52d(_0x197539._0x3096b7,_0x197539._0x6ccf0e,_0x197539._0x363134,0x3ed)+_0x1a5962[_0x17b2af(_0x197539._0x901d14,0x381,0x2f6,_0x197539._0x19fb47)]+'\x27'),{'code':_0x2ff52d(_0x197539._0x18ab61,0x7a6,_0x197539._0xc9129f,_0x197539._0x79dd7f)});}else{const _0x2b26b3=await _0x1cb071(_0x1a5962[_0x2ff52d(0x705,_0x197539._0x430e38,0x70f,_0x197539._0x3a65a2)])[_0x2ff52d(0x524,0x693,_0x197539._0x1f09d6,_0x197539._0x38b41f)](()=>null);if(!_0x2b26b3?.[_0x2ff52d(_0x197539._0x4a7673,0x749,_0x197539._0x3dc0fb,_0x197539._0x19d7fe)]())throw Object['assign'](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x1a5962[_0x17b2af(_0x197539._0x1dbd87,_0x197539._0x547108,0x4b2,0x55f)]+'\x27'),{'code':_0x17b2af(0x5e5,0x5e4,_0x197539._0x5dfcf8,0x50d)});}function _0x17b2af(_0x7c85ab,_0x16641e,_0x77c847,_0x330d43){return _0x691723(_0x330d43-_0x2d6d5c._0x42c0e0,_0x16641e,_0x77c847-_0x2d6d5c._0x148d0b,_0x330d43-0x2f);}function _0x2ff52d(_0x438377,_0x2aef22,_0x33743d,_0x558f57){return _0x691723(_0x33743d-_0x860420._0x284b5a,_0x2aef22,_0x33743d-_0x860420._0x272f2f,_0x558f57-0xf2);}const _0x31d95b=[_0x17b2af(_0x197539._0x5a5497,_0x197539._0x416296,0x51b,_0x197539._0x10242d),'--field-match-separator=|',_0x2ff52d(0x617,0x873,0x716,_0x197539._0x317133),'--regexp',_0x1a5962[_0x2ff52d(0x7b6,0x66c,0x706,_0x197539._0x360b3c)]],_0x5fcc43=typeof _0x1a5962[_0x2ff52d(0x4af,_0x197539._0x54d913,0x4da,0x388)]==='number'&&_0x1a5962[_0x2ff52d(0x42c,0x503,_0x197539._0x1ac462,_0x197539._0x2ec01c)]>0x0;return _0x5fcc43&&_0x31d95b[_0x2ff52d(_0x197539._0x256bf2,0x44d,_0x197539._0xfc9b97,_0x197539._0x1ec124)]('-C',String(_0x1a5962['context']),_0x17b2af(0x53a,_0x197539._0xa96eb0,_0x197539._0x5636be,0x4bb)),_0x1a5962[_0x2ff52d(_0x197539._0x3406e0,0x5cb,0x687,_0x197539._0x56f2bc)]&&!_0x1a5962[_0x17b2af(0x2d6,0x2c2,0x448,_0x197539._0x4550d4)]&&_0x31d95b[_0x2ff52d(_0x197539._0x1ed421,_0x197539._0x4b3435,0x566,0x61e)]('--glob',_0x1a5962[_0x17b2af(0x47b,0x62e,_0x197539._0x3b7046,0x4d7)]),_0x31d95b[_0x2ff52d(0x4bf,_0x197539._0x40ec64,0x566,_0x197539._0x108c2c)](_0x1a5962['file']??_0x1a5962[_0x17b2af(_0x197539._0x8de5fc,0x623,0x4ed,0x55f)]),await new Promise((_0x3d4e97,_0xbb00b2)=>{const _0x43b024={_0x464db7:0x27},_0x4b8c3b={_0x4a5a21:0x97},_0x54a274={_0x210efe:0x12c},_0x532ebe={_0x34a4ad:0x40,_0x248f1b:0x5e1},_0x10062d=_0x2f8e81(_0x283015,_0x31d95b,{'cwd':_0x1a5962[_0x22bc87(0x30e,0x3be,_0x11e0c9._0x553f99,0x442)],'stdio':[_0x22bc87(_0x11e0c9._0xaa673d,0x53d,0x3a2,_0x11e0c9._0x7f8364),'pipe','pipe']});let _0x2aac7a='',_0x34c915='';function _0x164676(_0x331e33,_0x647de6,_0x57a219,_0x553940){return _0x2ff52d(_0x331e33-_0x2ec911._0x9c2efc,_0x331e33,_0x553940- -0x14a,_0x553940-_0x2ec911._0x1889e5);}_0x10062d['stdout']?.['on'](_0x22bc87(_0x11e0c9._0x5275b5,0x55c,_0x11e0c9._0xfd2598,0x455),_0x221cb4=>{function _0x1fde6a(_0x4143f1,_0x9b8e74,_0x3800db,_0x3058ab){return _0x164676(_0x3800db,_0x9b8e74-_0x532ebe._0x34a4ad,_0x3800db-0x1e1,_0x9b8e74- -_0x532ebe._0x248f1b);}_0x2aac7a+=_0x221cb4[_0x1fde6a(-_0x54a274._0x210efe,-0x21e,-0x1ae,-0x28b)]();}),_0x10062d[_0x164676(0x4ca,0x388,0x55e,0x422)]?.['on']('data',_0xb982d0=>{_0x34c915+=_0xb982d0['toString']();});function _0x22bc87(_0x58bac3,_0xe03ccb,_0x5a04f0,_0x25eac8){return _0x17b2af(_0x58bac3-0x1d0,_0xe03ccb,_0x5a04f0-_0x4b8c3b._0x4a5a21,_0x25eac8- -0x11d);}_0x10062d['on'](_0x22bc87(0x39e,_0x11e0c9._0xf91e90,0x3e7,0x47a),_0x10721b=>{const _0x25fd94={_0x3195d1:0x50,_0x882fac:0x12b};function _0x56dcba(_0x1f62c6,_0x5377c3,_0x483de5,_0x108e0f){return _0x22bc87(_0x1f62c6-0x29,_0x5377c3,_0x483de5-_0x43b024._0x464db7,_0x1f62c6- -0x300);}if(_0x10721b===0x1&&_0x2aac7a===''){_0x3d4e97([]);return;}if(_0x10721b!==0x0&&_0x10721b!==0x1){_0xbb00b2(new Error(_0x56dcba(0x16d,_0x1c629e._0x4121fd,0x2ab,_0x1c629e._0x554b75)+_0x34c915));return;}const _0xbdf506=_0x1a5962[_0xc11430(_0x1c629e._0x2a3d62,_0x1c629e._0x403f10,_0x1c629e._0x18e288,_0x1c629e._0x266ecc)]??0x64,_0x33491c=[];function _0xc11430(_0x141614,_0x38292e,_0x5ad0b1,_0x354758){return _0x164676(_0x38292e,_0x38292e-0x1a6,_0x5ad0b1-_0x25fd94._0x3195d1,_0x354758-_0x25fd94._0x882fac);}for(const _0x34271c of _0x2aac7a[_0x56dcba(-0x16,0x2c,-0x48,-_0x1c629e._0x6ae2f)](/\r?\n/)){if(_0x33491c[_0x56dcba(_0x1c629e._0x3c2b53,0x35,_0x1c629e._0x416dfd,0x46)]>=_0xbdf506)break;const _0x41bbf6=parseMatchLine(_0x34271c,_0x5fcc43);if(_0x41bbf6)_0x33491c[_0xc11430(_0x1c629e._0x3f5fd8,0x557,0x570,0x547)](_0x41bbf6);}_0x3d4e97(_0x33491c);}),_0x10062d['on'](_0x22bc87(_0x11e0c9._0x5ebaae,_0x11e0c9._0x464ed7,_0x11e0c9._0x5bd501,0x493),_0xbb00b2);});}function createGlobTool(_0x1ee189={}){const _0x598352={_0x32d058:0x645,_0x22cc1a:0x566,_0x181fb2:0x4a2,_0x1c967b:0x468,_0x203ac0:0x388,_0x5c2b51:0x452,_0x4a8c25:0x4bd,_0x49221f:0x5ea,_0x3b4798:0x4c9,_0x304aac:0x47c,_0x4f02d9:0x56d,_0x4e0b54:0x4f4,_0x2803b5:0x44e,_0x543883:0x3f6,_0x2d12bb:0x473,_0xfe630c:0x490,_0x44657a:0x33c,_0x79851e:0x556,_0x33874a:0x57a},_0x687bd7={_0xd855c0:0x5cf,_0x6454af:0x665,_0x5ba798:0x654,_0x2cc2e5:0x3e2,_0x3c8a28:0x47d,_0x5ffb6e:0x45a,_0x478b20:0x4c4,_0x25c998:0x47d,_0x164a10:0x34e,_0xd7f92b:0x5cd,_0x2f458a:0x59d,_0x2fe7db:0x5fd,_0x40e4ce:0x690,_0x204a60:0x49d,_0x54498b:0x4c4,_0x15ecbe:0x4c5,_0x203960:0x5ed,_0x192393:0x47e,_0x1336b9:0x5d5,_0x4e685f:0x560,_0x350bb1:0x503,_0x357752:0x4ee,_0x31492c:0x418,_0x3bfa7f:0x4f3,_0x475f1a:0x3a6,_0x5d5471:0x52f,_0x1713b4:0x574,_0x5321df:0x444,_0x353fa1:0x3d7,_0x3ca53b:0x52c,_0x369b39:0x4df,_0x57b54b:0x48f,_0x5cb30c:0x477,_0x25ae67:0x546,_0x556d15:0x474,_0x48acd7:0x4f8,_0x2ad346:0x319,_0x2d8aa6:0x352},_0x309745={_0x265429:0x170},_0x231546={_0x381167:0xb8},_0x5b704d=_0x365e9b[_0x2f6aec(0x572,_0x598352._0x32d058,0x4f5,_0x598352._0x22cc1a)](_0x1ee189['defaultCwd']??process['cwd']());function _0x27419a(_0x3a24d5,_0xc1f15c,_0x1be66c,_0x3e13ab){return _0x691723(_0x1be66c-0x561,_0x3e13ab,_0x1be66c-0x191,_0x3e13ab-_0x231546._0x381167);}const _0x24f623=(_0x1ee189[_0x27419a(_0x598352._0x181fb2,_0x598352._0x1c967b,0x3d4,0x4ab)]??[])[_0x27419a(0x4cf,_0x598352._0x203ac0,0x3dc,0x4d5)](_0x45e433=>_0x365e9b[_0x27419a(0x516,0x60f,0x5a7,0x627)](_0x45e433));function _0x2f6aec(_0x58c443,_0x3b4642,_0x2c3d88,_0x48f354){return _0x691723(_0x58c443-0x52c,_0x3b4642,_0x2c3d88-0x105,_0x48f354-_0x309745._0x265429);}const _0x3a2258=_0x1ee189['limit']??0x64,_0x79d307=_0x1ee189[_0x2f6aec(0x38c,0x2e4,0x28d,0x2a7)]??_0x27419a(_0x598352._0x5c2b51,0x5d6,_0x598352._0x4a8c25,_0x598352._0x49221f);return defineTool({'name':_0x79d307,'description':_0x2f6aec(_0x598352._0x3b4798,_0x598352._0x304aac,_0x598352._0x4f02d9,_0x598352._0x4e0b54),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x27419a(_0x598352._0x2803b5,0x390,0x4e4,0x587)},'path':{'type':_0x2f6aec(0x4af,0x5d2,0x3b3,_0x598352._0x543883)},'limit':{'type':_0x27419a(0x3ef,_0x598352._0x2d12bb,_0x598352._0xfe630c,_0x598352._0x44657a)}},'required':[_0x2f6aec(0x51e,_0x598352._0x79851e,0x641,_0x598352._0x33874a)]},async *'execute'(_0x5c3156){const _0x1794be={_0x508886:0xe5,_0x4b88d2:0x7c};if(_0x5c3156[_0x21bfa4(_0x687bd7._0xd855c0,_0x687bd7._0x6454af,_0x687bd7._0x5ba798,0x4d5)]['trim']()['length']===0x0)throw new ToolExecutionError(_0x495f71(0x423,_0x687bd7._0x2cc2e5,0x3e3,0x529),{});const _0xa0766f=resolveAllowedPath(_0x5b704d,_0x24f623,_0x5c3156[_0x21bfa4(_0x687bd7._0x3c8a28,0x34d,0x500,0x4d9)]??'.');function _0x495f71(_0x2a1887,_0x1f9a27,_0x3a818e,_0x508523){return _0x2f6aec(_0x1f9a27-0x28,_0x508523,_0x3a818e-0x56,_0x508523-0x14f);}function _0x21bfa4(_0x73ef3,_0x2532d7,_0x3eb5db,_0x131bbd){return _0x27419a(_0x73ef3-_0x1794be._0x508886,_0x2532d7-0xf,_0x73ef3-_0x1794be._0x4b88d2,_0x3eb5db);}const _0x3615b7=await _0x41ca24(_0xa0766f)['catch'](()=>null);if(!_0x3615b7?.[_0x495f71(0x43c,_0x687bd7._0x5ffb6e,_0x687bd7._0x478b20,0x498)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+(_0x5c3156[_0x21bfa4(_0x687bd7._0x25c998,0x339,_0x687bd7._0x164a10,_0x687bd7._0xd7f92b)]??'.'),{'path':_0x5c3156[_0x21bfa4(0x47d,0x446,0x4fd,0x3d5)]??'.'});const _0x4978f9=_0x5c3156['limit']??_0x3a2258,_0x2975d8=Math['max'](0x1,Math[_0x495f71(0x524,_0x687bd7._0x2f458a,0x601,_0x687bd7._0x2fe7db)](_0x4978f9)),_0x39fb8c=[];let _0x51ce4d=![];for await(const _0x1d2e20 of files({'cwd':_0xa0766f,'glob':[_0x5c3156[_0x21bfa4(0x5cf,_0x687bd7._0x40e4ce,0x70a,0x545)]]})){if(_0x39fb8c['length']>=_0x2975d8){_0x51ce4d=!![];break;}const _0x521040=await _0x41ca24(_0x365e9b['join'](_0xa0766f,_0x1d2e20))[_0x21bfa4(_0x687bd7._0x204a60,0x430,_0x687bd7._0x54498b,_0x687bd7._0x15ecbe)](()=>null);_0x39fb8c['push']({'path':_0x1d2e20,'mtime':_0x521040?.[_0x21bfa4(0x5b3,_0x687bd7._0x203960,_0x687bd7._0x192393,0x624)]??0x0});}_0x39fb8c[_0x21bfa4(_0x687bd7._0x1336b9,_0x687bd7._0x4e685f,_0x687bd7._0x350bb1,_0x687bd7._0x357752)]((_0x394294,_0x43ac1d)=>_0x43ac1d[_0x495f71(0x39c,0x3e9,0x380,0x297)]-_0x394294['mtime']);const _0x1a708f=_0x39fb8c[_0x21bfa4(0x458,0x3ae,_0x687bd7._0x31492c,0x56a)](_0x269e48=>_0x269e48[_0x21bfa4(0x47d,0x456,0x567,0x42d)]),_0x27d7be=_0x1a708f['length']===0x0?_0x21bfa4(_0x687bd7._0x3bfa7f,_0x687bd7._0x475f1a,0x3b2,_0x687bd7._0x5d5471)+_0x5c3156[_0x21bfa4(_0x687bd7._0xd855c0,0x6fd,0x620,_0x687bd7._0x1713b4)]:''+_0x1a708f[_0x495f71(0x573,_0x687bd7._0x5321df,_0x687bd7._0x353fa1,0x4a5)]('\x0a')+(_0x51ce4d?_0x495f71(_0x687bd7._0x3ca53b,0x515,_0x687bd7._0x369b39,_0x687bd7._0x57b54b):'');return yield createToolOutput(_0x27d7be,{'pattern':_0x5c3156[_0x495f71(_0x687bd7._0x5cb30c,_0x687bd7._0x25ae67,_0x687bd7._0x556d15,0x5be)],'searchPath':_0x365e9b[_0x495f71(_0x687bd7._0x48acd7,0x451,_0x687bd7._0x2ad346,_0x687bd7._0x2d8aa6)](_0x5b704d,_0xa0766f)||'.','matches':_0x1a708f,'count':_0x1a708f['length'],'truncated':_0x51ce4d}),void 0x0;}});}import{stat as _0x2a5bbd}from'fs/promises';import*as _0x2200d4 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0xb1181a={}){const _0x3a3184={_0x4e5860:0x2b1,_0xbb9039:0x332,_0x45de1a:0x14,_0x5ae457:0xb9,_0x41ee71:0x60,_0x545498:0x35,_0x51dd02:0x8e,_0x4b19a7:0xc0,_0x306d14:0x31,_0x2bb2f0:0x2,_0x403864:0x134,_0x14e153:0x38f,_0x5ca76a:0x23f,_0x4ea144:0x19a,_0x44a614:0x9d,_0x112af1:0x2f5,_0x5c2257:0x2b2},_0x53ad6e={_0x568750:0x667,_0x81dccd:0x60a,_0x37355f:0x624,_0x2b46f8:0x591,_0x69fa69:0x56a,_0x153da9:0x42e,_0x166b09:0x4ab,_0x3be270:0x515,_0x2c7f5a:0x554,_0x3d0b28:0x57f,_0x537286:0x698,_0x1c32f3:0x5b0,_0x55f78c:0x551,_0x4017ed:0x515,_0x56fbe9:0x7ad,_0x241f0d:0x696,_0x3a003e:0x64e,_0x166cd6:0x599,_0x124652:0x63f,_0x29a9c6:0x43b,_0x19811b:0x4e4,_0x29edb8:0x656,_0x8991f1:0x668,_0x255816:0x44c,_0x18d42c:0x55f,_0xa582e0:0x565,_0x4782c7:0x5ea,_0x2fd450:0x520,_0x51248f:0x556,_0x1d67cc:0x6d5,_0x72f915:0x597,_0x49458a:0x548,_0x510709:0x430,_0x1f0370:0x61a,_0x4fee6f:0x2e4,_0x20105b:0x3f1,_0x308fbe:0x5e1,_0xbbc02a:0x3fc,_0x46cc6f:0x547,_0x3481c1:0x571,_0x53227d:0x645,_0x185e8a:0x644,_0x57c6d5:0x70a,_0x2b7f0c:0x486,_0x1abbf2:0x4f8,_0x30a8fa:0x4f9,_0x2e66fd:0x3d0,_0x21bb19:0x437,_0x3dfbdd:0x2d9,_0x1347a5:0x655,_0xe03d92:0x63f,_0x42ebcb:0x6e2,_0x550868:0x5ac,_0x556494:0x4cc,_0x2b48be:0x53d,_0x2a3f01:0x5dd,_0x20d647:0x572,_0x3451c1:0x48a,_0x2c2691:0x65a,_0x163c18:0x462,_0x47b916:0x4fc,_0x27c58f:0x58d,_0x114c7a:0x4c4,_0x2aa823:0x519,_0x2ab9ff:0x613,_0x242b0d:0x4ec,_0x3665a8:0x52e,_0x3bc75d:0x423,_0xb09b26:0x4ed,_0x24e14e:0x61b,_0xff807d:0x3a8,_0x2f469d:0x62c,_0x42d147:0x739,_0x510aae:0x694,_0x327245:0x7b3,_0x38a13d:0x468,_0x5db2f8:0x465,_0x198080:0x5b6,_0x389304:0x493,_0x3497e2:0x65b,_0x5aee97:0x60c,_0x878e1a:0x69b,_0x322e32:0x59a,_0x1ad271:0x60a,_0x503f4f:0x531},_0x18370d={_0x4657be:0x26b,_0x3cf5f9:0x73},_0x40623e={_0x55b411:0x468,_0x127185:0xa6};function _0x4a5f65(_0x2d9fc2,_0x3c7339,_0x53eabb,_0x2727fe){return _0x2ff7d2(_0x2d9fc2- -_0x40623e._0x55b411,_0x53eabb,_0x53eabb-_0x40623e._0x127185,_0x2727fe-0x126);}function _0x19140d(_0x260930,_0x492ca9,_0x4a1f45,_0x445519){return _0x691723(_0x260930-_0x18370d._0x4657be,_0x4a1f45,_0x4a1f45-_0x18370d._0x3cf5f9,_0x445519-0x18b);}const _0x3f9364=_0x2200d4[_0x19140d(_0x3a3184._0x4e5860,_0x3a3184._0xbb9039,0x227,0x1a7)](_0xb1181a[_0x4a5f65(0x5a,_0x3a3184._0x45de1a,_0x3a3184._0x5ae457,-0x23)]??process['cwd']()),_0x4b23af=(_0xb1181a['allowedDirs']??[])[_0x4a5f65(_0x3a3184._0x41ee71,-0x69,0xcc,-_0x3a3184._0x545498)](_0x5e9a0d=>_0x2200d4[_0x4a5f65(0x22b,0xf4,0x2dd,0x258)](_0x5e9a0d)),_0x2ac733=_0xb1181a['limit']??0x64,_0x4f6e34=_0xb1181a[_0x19140d(0xcb,0x1cb,_0x3a3184._0x51dd02,0x21c)]??_0x4a5f65(_0x3a3184._0x4b19a7,-_0x3a3184._0x306d14,_0x3a3184._0x5ae457,_0x3a3184._0x2bb2f0);return defineTool({'name':_0x4f6e34,'description':'Search\x20for\x20a\x20regex\x20pattern\x20in\x20workspace\x20or\x20allowed\x20directory\x20file\x20contents.','inputSchema':{'type':_0x19140d(0x232,0x2cc,_0x3a3184._0x403864,_0x3a3184._0x14e153),'properties':{'pattern':{'type':'string'},'path':{'type':_0x19140d(0x1ee,0x1fd,0x181,_0x3a3184._0x5ca76a)},'include':{'type':'string'},'limit':{'type':_0x19140d(_0x3a3184._0x4ea144,0xa3,_0x3a3184._0x44a614,_0x3a3184._0x112af1)},'context':{'type':'number'}},'required':[_0x19140d(0x25d,0x33a,_0x3a3184._0x5c2257,0x2bf)]},async *'execute'(_0x97279e){if(_0x97279e[_0x4e4847(_0x53ad6e._0x568750,0x538,0x5c1,0x554)][_0x4e4847(_0x53ad6e._0x81dccd,_0x53ad6e._0x37355f,_0x53ad6e._0x2b46f8,0x53f)]()[_0x4e4847(_0x53ad6e._0x69fa69,_0x53ad6e._0x153da9,0x4b7,_0x53ad6e._0x166b09)]===0x0)throw new ToolExecutionError(_0x593d48(0x3e4,0x5ed,0x4db,0x3f2),{});const _0x52ef52=resolveAllowedPath(_0x3f9364,_0x4b23af,_0x97279e[_0x4e4847(_0x53ad6e._0x3be270,0x5d6,0x572,_0x53ad6e._0x2c7f5a)]??'.'),_0x2a9fba=await _0x2a5bbd(_0x52ef52)[_0x593d48(0x5bd,0x3ce,0x50d,0x616)](()=>null),_0x1c55ed=_0x2a9fba?.[_0x4e4847(0x5c2,0x612,_0x53ad6e._0x3d0b28,_0x53ad6e._0x537286)]()??![],_0x40860b=_0x2a9fba?.['isDirectory']()??![];if(!_0x1c55ed&&!_0x40860b)throw new ToolExecutionError(_0x4e4847(0x654,_0x53ad6e._0x1c32f3,0x5e5,_0x53ad6e._0x55f78c)+(_0x97279e['path']??'.'),{'path':_0x97279e[_0x4e4847(_0x53ad6e._0x4017ed,0x5e2,0x5fc,0x48c)]??'.'});const _0x77f5fe=_0x97279e['limit']??_0x2ac733,_0x4c834f=Math['max'](0x1,Math[_0x593d48(_0x53ad6e._0x56fbe9,0x677,_0x53ad6e._0x241f0d,_0x53ad6e._0x3a003e)](_0x77f5fe)),_0x3afaea=await search({'cwd':_0x40860b?_0x52ef52:_0x2200d4['dirname'](_0x52ef52),'pattern':_0x97279e[_0x593d48(_0x53ad6e._0x166cd6,0x5a9,_0x53ad6e._0x124652,0x5d2)],'glob':_0x40860b?_0x97279e['include']:void 0x0,'limit':_0x4c834f,'file':_0x1c55ed?_0x52ef52:void 0x0,'context':_0x97279e[_0x4e4847(_0x53ad6e._0x29a9c6,0x32f,_0x53ad6e._0x19811b,_0x53ad6e._0x55f78c)]});function _0x4e4847(_0x3b0643,_0x4e42c6,_0xa28464,_0xdad81f){return _0x4a5f65(_0x3b0643-0x490,_0x4e42c6-0xd4,_0xa28464,_0xdad81f-0x10c);}const _0x5a68c0=new Map();for(const _0x3ee113 of _0x3afaea){if(!_0x5a68c0['has'](_0x3ee113['filePath'])){const _0x3e8ff9=await _0x2a5bbd(_0x3ee113[_0x4e4847(0x548,0x4b8,0x5ad,_0x53ad6e._0x29edb8)])[_0x4e4847(0x535,_0x53ad6e._0x8991f1,0x482,_0x53ad6e._0x255816)](()=>null);_0x5a68c0[_0x4e4847(0x44b,_0x53ad6e._0x18d42c,0x500,_0x53ad6e._0xa582e0)](_0x3ee113[_0x593d48(0x565,_0x53ad6e._0x4782c7,_0x53ad6e._0x2fd450,_0x53ad6e._0x51248f)],{'matches':[],'mtime':_0x3e8ff9?.[_0x593d48(0x6f7,0x670,0x623,_0x53ad6e._0x1d67cc)]??0x0});}_0x5a68c0[_0x4e4847(_0x53ad6e._0x72f915,0x48a,0x449,0x58b)](_0x3ee113[_0x4e4847(_0x53ad6e._0x49458a,_0x53ad6e._0x510709,_0x53ad6e._0x1f0370,0x578)])?.[_0x593d48(_0x53ad6e._0x4fee6f,0x4a7,0x43a,0x38d)][_0x593d48(0x461,_0x53ad6e._0x20105b,0x49f,_0x53ad6e._0x308fbe)](_0x3ee113);}const _0xeffebd=[..._0x5a68c0[_0x4e4847(0x4f7,0x4ec,_0x53ad6e._0xbbc02a,_0x53ad6e._0x46cc6f)]()][_0x593d48(0x703,_0x53ad6e._0x3481c1,_0x53ad6e._0x53227d,0x545)]((_0x2fdffa,_0x129707)=>_0x129707[0x1][_0x4e4847(0x50a,0x3cd,0x539,0x4e7)]-_0x2fdffa[0x1][_0x4e4847(0x50a,0x4ed,0x4cf,0x520)]),_0x32ac06=_0x3afaea[_0x4e4847(0x63b,_0x53ad6e._0x185e8a,0x57b,_0x53ad6e._0x57c6d5)](_0x2afdbb=>!_0x2afdbb[_0x4e4847(0x52e,0x436,0x5d4,0x3da)])[_0x4e4847(_0x53ad6e._0x69fa69,_0x53ad6e._0x2b7f0c,0x453,0x518)],_0x7d4e8c=_0x3afaea[_0x4e4847(0x56a,_0x53ad6e._0x1abbf2,_0x53ad6e._0x30a8fa,0x60c)]>=_0x4c834f,_0x5ef803=_0x1c55ed?_0x2200d4['dirname'](_0x52ef52):_0x52ef52;let _0x12746b='';if(_0x3afaea['length']===0x0)_0x12746b=_0x593d48(0x3a3,_0x53ad6e._0x2e66fd,_0x53ad6e._0x21bb19,_0x53ad6e._0x3dfbdd)+_0x97279e[_0x593d48(0x625,_0x53ad6e._0x1347a5,_0x53ad6e._0xe03d92,_0x53ad6e._0x42ebcb)];else{_0x12746b=_0x4e4847(_0x53ad6e._0x550868,_0x53ad6e._0x556494,0x5b5,0x6db)+_0x32ac06+'\x20match'+(_0x32ac06===0x1?'':'es')+'\x0a';for(const [_0xd7d5f9,_0x1a6fba]of _0xeffebd){const _0x24903a=_0x1c55ed?_0x2200d4[_0x4e4847(0x643,0x729,_0x53ad6e._0x2b48be,_0x53ad6e._0x2a3f01)](_0xd7d5f9):_0x2200d4[_0x4e4847(_0x53ad6e._0x20d647,0x5ea,_0x53ad6e._0x3451c1,_0x53ad6e._0x2c2691)](_0x5ef803,_0xd7d5f9);_0x12746b+='\x0a'+_0x24903a+':\x0a';for(const _0x1d6027 of _0x1a6fba[_0x4e4847(_0x53ad6e._0x163c18,_0x53ad6e._0x47b916,0x4c2,_0x53ad6e._0x27c58f)]){const _0x196ab4=_0x1d6027[_0x593d48(0x575,0x5d8,_0x53ad6e._0x114c7a,_0x53ad6e._0x2aa823)][_0x593d48(0x5e5,0x424,0x542,0x648)]>MAX_LINE_LENGTH?_0x1d6027['lineText']['slice'](0x0,MAX_LINE_LENGTH)+_0x4e4847(0x644,0x59d,0x746,_0x53ad6e._0x2ab9ff):_0x1d6027[_0x4e4847(_0x53ad6e._0x242b0d,0x394,0x504,0x540)],_0x4a11db=_0x1d6027[_0x4e4847(_0x53ad6e._0x3665a8,_0x53ad6e._0x3bc75d,0x5b3,0x543)]?'\x20\x20':'>\x20';_0x12746b+=_0x4a11db+'Line\x20'+_0x1d6027[_0x4e4847(_0x53ad6e._0xb09b26,_0x53ad6e._0x24e14e,_0x53ad6e._0xff807d,0x3fd)]+':\x20'+_0x196ab4+'\x0a';}}_0x7d4e8c&&(_0x12746b+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x1b909e={'searchPath':_0x2200d4[_0x593d48(_0x53ad6e._0x20d647,0x424,0x54a,0x45a)](_0x3f9364,_0x52ef52)||'.','pattern':_0x97279e['pattern'],'matchCount':_0x32ac06,'fileCount':_0x5a68c0[_0x593d48(_0x53ad6e._0x2f469d,_0x53ad6e._0x42d147,_0x53ad6e._0x510aae,_0x53ad6e._0x327245)],'truncated':_0x7d4e8c};_0x40860b&&_0x97279e[_0x593d48(_0x53ad6e._0x38a13d,0x540,0x58e,_0x53ad6e._0x5db2f8)]!==void 0x0&&(_0x1b909e[_0x4e4847(_0x53ad6e._0x198080,_0x53ad6e._0x389304,_0x53ad6e._0x3497e2,0x4d5)]=_0x97279e[_0x4e4847(0x5b6,_0x53ad6e._0x5aee97,_0x53ad6e._0x878e1a,_0x53ad6e._0x322e32)]);function _0x593d48(_0x290342,_0x453237,_0x4c1c45,_0x951e28){return _0x4a5f65(_0x4c1c45-0x468,_0x453237-0x17e,_0x290342,_0x951e28-0xa0);}return yield createToolOutput(_0x12746b[_0x4e4847(_0x53ad6e._0x1ad271,_0x53ad6e._0x503f4f,0x53d,0x6ab)](),_0x1b909e),void 0x0;}});}import{readdir as _0x36c119,readFile as _0x1ef8a1,stat as _0x532a18}from'fs/promises';import*as _0x5ea2e3 from'path';import*as _0x52ce88 from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x124c60,_0x557efe){const _0x195325={_0x1fb94c:0x12d,_0x17d47a:0x217,_0x45fd31:0x1fa,_0x151c09:0x1d6,_0x663930:0x1ff,_0x2622aa:0xa3,_0x5837e0:0x1f6,_0x278611:0x6c,_0x2c1f10:0x89,_0x318c05:0xa0,_0x5b7153:0xc0},_0x5c04c8={_0x467f87:0x63a,_0x5aa021:0xe0},_0x19ff25={_0x3f3a74:0x8};if(_0x557efe>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x146a1d(_0x23c02a,_0x577901,_0x1b0070,_0x46c445){return _0x691723(_0x23c02a-_0x19ff25._0x3f3a74,_0x577901,_0x1b0070-0xfd,_0x46c445-0x54);}function _0x317ae3(_0x20b23e,_0x432cdc,_0x25bdc2,_0x5c6c1a){return _0x2ff7d2(_0x20b23e- -_0x5c04c8._0x467f87,_0x432cdc,_0x25bdc2-0xa5,_0x5c6c1a-_0x5c04c8._0x5aa021);}const _0x4aea47=await _0x1ef8a1(_0x124c60)[_0x317ae3(-_0x195325._0x1fb94c,-_0x195325._0x17d47a,-_0x195325._0x45fd31,-_0x195325._0x151c09)](()=>null);if(!_0x4aea47||isProbablyBinary(_0x4aea47))return void 0x0;return _0x4aea47[_0x146a1d(-_0x195325._0x663930,-_0x195325._0x2622aa,-_0x195325._0x5837e0,-0x191)](_0x146a1d(_0x195325._0x278611,0xa1,-_0x195325._0x2c1f10,-_0x195325._0x318c05))[_0x146a1d(-0x155,-0x1c6,-0x1b0,-_0x195325._0x5b7153)](/\r?\n/)[_0x317ae3(-0xf8,-0x113,0x60,0x30)];}function createLsTool(_0x433354={}){const _0x5b45d9={_0x4af7b0:0x16e,_0x4a2ff3:0x2a1,_0x5772a8:0x6b7,_0x36629c:0x7fb,_0x591eae:0x5fe,_0x5de668:0x62d,_0x3bbf63:0x443,_0x24dab6:0x642,_0x36d40e:0x118,_0x4b9d5f:0x60,_0x358b0a:0xa2,_0x4808a1:0x6cc,_0x394d94:0x7b4,_0x30e295:0x63f},_0x44fadb={_0x3182dd:0x66,_0x3cb27b:0xea,_0x15762e:0x116,_0x8fcf72:0x720,_0x4d20b3:0x5a1,_0x53f08a:0x140,_0x3e8e02:0xc8,_0x2b1736:0xce,_0x33a847:0xd9,_0x1062f7:0x39,_0x2a5660:0xd7,_0x5ab7ee:0x504,_0x19130e:0x4f5,_0x332280:0x25,_0x34ba10:0x156,_0x128904:0x10,_0x3a0b54:0xaa,_0x557418:0x18d,_0x3f90e2:0x24,_0x51c005:0xd2,_0x474f7e:0x12,_0x4353e1:0x445,_0x4ec30d:0x479,_0x330183:0x4,_0x4a8acb:0xcb,_0x52d9e2:0x5a8,_0x37d8df:0x530,_0x5329f3:0x60b,_0x371556:0x62a,_0x3ed1ae:0x521,_0x2924a8:0x63a,_0x3b5760:0x67c,_0x560b59:0x509,_0x49a6e3:0x786,_0x41d2e7:0x5a2,_0xc47fd4:0x73e,_0x9a7f03:0x6e1,_0x1fe0a7:0x478,_0x43ace4:0x348,_0x570cae:0x4fe,_0x4a1293:0x52a},_0x21e025={_0x3e33d8:0x5b},_0x2e8637={_0x5d6cbd:0x6f,_0x1b2e43:0x17c},_0x5f243a=_0x5ea2e3[_0x2ad36e(0x148,_0x5b45d9._0x4af7b0,0x17d,_0x5b45d9._0x4a2ff3)](_0x433354['defaultCwd']??process[_0x5f0181(_0x5b45d9._0x5772a8,_0x5b45d9._0x36629c,_0x5b45d9._0x591eae,_0x5b45d9._0x5de668)]()),_0x31e794=(_0x433354[_0x5f0181(0x52f,0x63a,_0x5b45d9._0x3bbf63,_0x5b45d9._0x24dab6)]??[])['map'](_0x24fc28=>_0x5ea2e3[_0x2ad36e(0x148,0x1ed,0x187,0x1ad)](_0x24fc28)),_0x1e3aba=_0x433354['name']??'Ls';function _0x2ad36e(_0xc26db9,_0xc80544,_0x38382e,_0x3c9295){return _0x2ff7d2(_0xc26db9- -0x54b,_0x38382e,_0x38382e-0x1e1,_0x3c9295-0x5a);}function _0x5f0181(_0x4ccf34,_0x91919a,_0x39a23e,_0x5ca123){return _0x2ff7d2(_0x4ccf34-_0x2e8637._0x5d6cbd,_0x91919a,_0x39a23e-0x87,_0x5ca123-_0x2e8637._0x1b2e43);}return defineTool({'name':_0x1e3aba,'description':_0x2ad36e(_0x5b45d9._0x36d40e,0x107,_0x5b45d9._0x4b9d5f,_0x5b45d9._0x358b0a),'inputSchema':{'type':_0x5f0181(0x683,0x75d,_0x5b45d9._0x4808a1,_0x5b45d9._0x394d94),'properties':{'path':{'type':_0x5f0181(_0x5b45d9._0x30e295,0x577,0x6a9,0x765)},'limit':{'type':'number'}}},async *'execute'(_0x201864){const _0xc2069={_0x131ef5:0x87,_0x2986f5:0xbb},_0x13fa59=_0x201864[_0x42dc34(-0x3,-_0x44fadb._0x3182dd,0x42,-0xa3)]??'.',_0x419cff=resolveAllowedPath(_0x5f243a,_0x31e794,_0x13fa59);function _0x42dc34(_0x54aa67,_0x37084f,_0x23ad6c,_0x160270){return _0x2ad36e(_0x54aa67-_0x21e025._0x3e33d8,_0x37084f-0x144,_0x160270,_0x160270-0x120);}const _0x4c1431=await _0x532a18(_0x419cff)['catch'](()=>null);if(!_0x4c1431?.[_0x42dc34(0x63,_0x44fadb._0x3cb27b,-0xa8,_0x44fadb._0x15762e)]())throw new ToolExecutionError(_0x3924bd(_0x44fadb._0x8fcf72,_0x44fadb._0x4d20b3,0x68d,0x5fc)+_0x13fa59,{'path':_0x13fa59});const _0x35a277=_0x201864[_0x42dc34(_0x44fadb._0x53f08a,0x79,0x59,0xa)]??0x3e8,_0x23eb30=Math['min'](Math['max'](Math[_0x3924bd(0x5a6,0x564,0x67e,0x694)](_0x35a277),0x1),0x2710),_0x3d74ab=await _0x36c119(_0x419cff),_0x5dd216=[];for(const _0x515a99 of _0x3d74ab[_0x42dc34(_0x44fadb._0x3e8e02,_0x44fadb._0x2b1736,_0x44fadb._0x33a847,-_0x44fadb._0x1062f7)](0x0,_0x23eb30)){const _0xb8354f=_0x5ea2e3[_0x42dc34(0x4d,0xa6,_0x44fadb._0x2a5660,0x164)](_0x419cff,_0x515a99),_0x3711a9=await _0x532a18(_0xb8354f)[_0x3924bd(_0x44fadb._0x5ab7ee,0x482,_0x44fadb._0x19130e,0x5d3)](()=>null);if(!_0x3711a9)continue;let _0x4ec2d3=_0x42dc34(_0x44fadb._0x332280,_0x44fadb._0x34ba10,_0x44fadb._0x128904,-0x36);if(_0x3711a9[_0x42dc34(_0x44fadb._0x3a0b54,0x132,0x130,_0x44fadb._0x557418)]())_0x4ec2d3=_0x42dc34(-_0x44fadb._0x3f90e2,-_0x44fadb._0x51c005,_0x44fadb._0x474f7e,-0xd);else{if(_0x3711a9[_0x3924bd(0x509,_0x44fadb._0x4353e1,0x53b,_0x44fadb._0x4ec30d)]())_0x4ec2d3=_0x42dc34(_0x44fadb._0x330183,0x12b,-_0x44fadb._0x4a8acb,-0x32);else{if(_0x3711a9[_0x3924bd(0x484,_0x44fadb._0x52d9e2,0x4ef,0x626)]())_0x4ec2d3=_0x42dc34(0x9d,0x182,-0x52,_0x44fadb._0x4a8acb);}}const _0x3f7249={'name':_0x515a99,'type':_0x4ec2d3,'size':_0x3711a9['size'],'mtime':_0x3711a9[_0x3924bd(_0x44fadb._0x37d8df,0x64d,_0x44fadb._0x5329f3,_0x44fadb._0x371556)],'mode':_0x3711a9['mode']},_0xf7924e=_0x4ec2d3===_0x3924bd(0x491,0x559,0x4b4,_0x44fadb._0x3ed1ae)?await countTextLines(_0xb8354f,_0x3711a9[_0x3924bd(0x7c2,_0x44fadb._0x2924a8,_0x44fadb._0x3b5760,0x6c1)]):void 0x0;if(_0xf7924e!==void 0x0)_0x3f7249['lines']=_0xf7924e;_0x5dd216[_0x3924bd(_0x44fadb._0x560b59,0x499,0x487,0x394)](_0x3f7249);}_0x5dd216[_0x3924bd(0x53a,0x68e,0x62d,_0x44fadb._0x49a6e3)]((_0x7a986a,_0x38e35e)=>_0x7a986a[_0x3924bd(0x41e,0x474,0x495,0x378)][_0x42dc34(0x1bd,0x8f,0x290,0x9e)](_0x38e35e[_0x42dc34(-0x43,0x88,-0x99,-0x19d)]));function _0x3924bd(_0xbadbe0,_0x15b2c8,_0x2809f2,_0x424e7f){return _0x5f0181(_0x2809f2- -_0xc2069._0x131ef5,_0xbadbe0,_0x2809f2-0x11d,_0x424e7f-_0xc2069._0x2986f5);}const _0x3953e3={'path':_0x13fa59,'total':_0x5dd216['length'],'truncated':_0x3d74ab[_0x3924bd(0x42b,_0x44fadb._0x41d2e7,0x52a,0x5b9)]>_0x23eb30,'entries':_0x5dd216};return yield createToolOutput(_0x52ce88[_0x3924bd(_0x44fadb._0xc47fd4,_0x44fadb._0x9a7f03,0x667,0x794)](_0x3953e3,{'indent':0x2,'lineWidth':0x0})[_0x3924bd(0x362,0x370,_0x44fadb._0x1fe0a7,_0x44fadb._0x43ace4)](),{'path':_0x13fa59,'total':_0x5dd216[_0x3924bd(_0x44fadb._0x570cae,0x3eb,0x52a,0x5b5)],'truncated':_0x3d74ab[_0x3924bd(0x4f9,0x568,_0x44fadb._0x4a1293,0x648)]>_0x23eb30,'limit':_0x23eb30,'entries':_0x5dd216}),void 0x0;}});}import{stat as _0x4d7629}from'fs/promises';import _0x373ee3 from'path';import{fileURLToPath as _0x1efaa9}from'url';function severityName(_0x35b7ae){const _0x2efcd1={_0x53b041:0x277,_0x1aca2e:0x3a1,_0x21796f:0x12,_0x120dcd:0x1d0,_0x250fb5:0x89,_0x4df0a3:0x1d3,_0x5e3410:0x3da},_0x568162={_0x73767e:0x296},_0x3795a2={_0x1b037b:0x521};function _0x1104ce(_0x772caf,_0x3b1bd6,_0xf4a479,_0x4f8b76){return _0x2ff7d2(_0x4f8b76- -_0x3795a2._0x1b037b,_0xf4a479,_0xf4a479-0x54,_0x4f8b76-0x1e4);}function _0xf8cd90(_0x36f72b,_0x1e23d8,_0x1a9c33,_0x3781c9){return _0x2ff7d2(_0x1a9c33- -_0x568162._0x73767e,_0x36f72b,_0x1a9c33-0x11,_0x3781c9-0xbd);}switch(_0x35b7ae){case 0x1:return _0xf8cd90(0x1e7,0x1c2,0x1d3,_0x2efcd1._0x53b041);case 0x2:return _0xf8cd90(_0x2efcd1._0x1aca2e,0x2d6,0x335,0x271);case 0x3:return _0x1104ce(_0x2efcd1._0x21796f,-_0x2efcd1._0x120dcd,0x61,-0x8d);case 0x4:return _0x1104ce(_0x2efcd1._0x250fb5,_0x2efcd1._0x4df0a3,0x17f,0xb8);default:return _0xf8cd90(0x2f2,_0x2efcd1._0x5e3410,0x3d2,0x2c4);}}function formatSingleHover(_0x4d89a5){const _0x98f832={_0x4db469:0x183,_0x394aa4:0x69,_0x108e63:0x23a,_0xc23f70:0x161,_0x41231d:0x1e,_0x523b76:0x1c9,_0x1a8e30:0xc4,_0x22bacb:0x1f3,_0x25a392:0x43,_0x5ed8c6:0x52,_0x17dd4c:0x33c,_0x1423e8:0x1b6,_0x229b9c:0x79,_0x162d89:0xee,_0x5959e1:0x142,_0x4f5f3d:0x196,_0x451d62:0x22d,_0x3a451a:0x1ae,_0x137491:0xdd,_0x2e1f0a:0x12b,_0x5b1983:0xb5},_0x5e2afb={_0x324440:0x3e},_0x4186d4=_0x4d89a5['contents'];if(typeof _0x4186d4==='string')return _0x4186d4;function _0x109b99(_0x50f5c0,_0x37c6bc,_0x278ecd,_0x403f8d){return _0x2ff7d2(_0x37c6bc- -0x211,_0x278ecd,_0x278ecd-0x4c,_0x403f8d-0xb5);}function _0x4f8d7f(_0x57c0f7,_0x3142f3,_0x18d0d2,_0x349929){return _0x2ff7d2(_0x18d0d2- -0x601,_0x3142f3,_0x18d0d2-_0x5e2afb._0x324440,_0x349929-0xc6);}if(Array[_0x4f8d7f(-_0x98f832._0x4db469,-0x4,-0x130,-0x18d)](_0x4186d4))return _0x4186d4[_0x4f8d7f(-0x18a,-_0x98f832._0x394aa4,-0x139,-_0x98f832._0x108e63)](_0x233bec=>typeof _0x233bec===_0x4f8d7f(0xe0,0x114,-0x31,-0xf4)?_0x233bec:_0x233bec[_0x109b99(0x225,0x2c5,0x256,0x231)])[_0x4f8d7f(_0x98f832._0xc23f70,-_0x98f832._0x41231d,0x12,0x41)](Boolean)[_0x4f8d7f(-0x12b,-_0x98f832._0x523b76,-_0x98f832._0x1a8e30,-_0x98f832._0x22bacb)]('\x0a\x0a');if(_0x4f8d7f(_0x98f832._0x25a392,0x117,0xaf,-_0x98f832._0x5ed8c6)in _0x4186d4)return _0x4186d4['value'];return _0x4186d4[_0x109b99(_0x98f832._0x17dd4c,0x2b2,0x3f1,_0x98f832._0x1423e8)]?_0x4f8d7f(-_0x98f832._0x229b9c,-_0x98f832._0x162d89,-_0x98f832._0x5959e1,-0x5f)+_0x4186d4['language']+'\x0a'+_0x4186d4[_0x4f8d7f(-0x254,-_0x98f832._0x4f5f3d,-0x12b,-0xb6)]+_0x4f8d7f(-_0x98f832._0x451d62,-_0x98f832._0x3a451a,-_0x98f832._0x137491,-0x129):_0x4186d4[_0x4f8d7f(-0x163,-0x25a,-_0x98f832._0x2e1f0a,-_0x98f832._0x5b1983)];}function formatHover(_0x3d7c32){const _0x33c19f={_0x501ea0:0x265,_0x13a944:0x162,_0x4782b3:0xf8,_0x32834e:0x1a7,_0x2e7f70:0x2ef,_0x31f0f2:0x16d},_0x374930={_0xfca55e:0x29a,_0x5b4f40:0x186},_0x127a43={_0x3ec5ce:0x6a4,_0x689cf5:0xfa};if(_0x3d7c32[_0x34dfa6(-_0x33c19f._0x501ea0,-0x151,-_0x33c19f._0x13a944,-0x208)]===0x0)return'No\x20hover\x20information';function _0x34dfa6(_0x427061,_0x3e6872,_0x114a1d,_0xdcd5a3){return _0x2ff7d2(_0x114a1d- -_0x127a43._0x3ec5ce,_0x427061,_0x114a1d-_0x127a43._0x689cf5,_0xdcd5a3-0x2a);}function _0x642d7(_0x3b2676,_0x2c82cb,_0x338174,_0xe5826d){return _0x2ff7d2(_0x2c82cb- -_0x374930._0xfca55e,_0x338174,_0x338174-_0x374930._0x5b4f40,_0xe5826d-0x141);}return _0x3d7c32[_0x642d7(_0x33c19f._0x4782b3,0x22e,0x23c,_0x33c19f._0x13a944)](formatSingleHover)['join'](_0x642d7(0x156,_0x33c19f._0x32834e,_0x33c19f._0x2e7f70,_0x33c19f._0x31f0f2));}function locationPath(_0x5e2690){const _0x59a5ee={_0x4cb465:0x50a},_0x11b31a={_0x15ec2f:0x134},_0x1a9f2a={_0x43fefd:0xb0,_0x498bff:0x189,_0x22a740:0x168};function _0x1d9fe4(_0x11f0c1,_0x468feb,_0x1578e1,_0x4f588a){return _0x2ff7d2(_0x468feb- -_0x1a9f2a._0x43fefd,_0x4f588a,_0x1578e1-_0x1a9f2a._0x498bff,_0x4f588a-_0x1a9f2a._0x22a740);}function _0x297ec2(_0x480cbc,_0x1bdde2,_0x3f579f,_0x305f9d){return _0x691723(_0x480cbc-0x3a1,_0x3f579f,_0x3f579f-0x52,_0x305f9d-_0x11b31a._0x15ec2f);}if(!_0x5e2690[_0x297ec2(0x3d1,0x4fe,_0x59a5ee._0x4cb465,0x2e1)](_0x297ec2(0x3b1,0x422,0x2b2,0x3b3)))return _0x5e2690;return _0x1efaa9(_0x5e2690);}function formatLocations(_0x5cd73f){const _0x3cba02={_0x1fcb97:0x2e4,_0x4652a5:0x336,_0xf43b4c:0x3e5,_0x3125e7:0x53b,_0x1fd47b:0x1d5,_0x16f060:0x1d9,_0x24aaf3:0x353,_0x531327:0x24a,_0x2cd2ab:0x256},_0x2b892f={_0x4b78d7:0x503,_0x5067dd:0x4bf,_0x15a573:0x11,_0x1c0712:0x24},_0x3085f1={_0xc4a4f1:0x16c,_0x14ea99:0xab},_0x634202={_0x2dee51:0xa,_0x53e08c:0xb4,_0x5104ef:0x50d},_0x163d84={_0x593921:0x35a},_0x15dd58={_0x4e49c2:0x5ff,_0x2a945c:0x199,_0x6d06fc:0x191};if(_0x5cd73f[_0x2d9299(_0x3cba02._0x1fcb97,0x24f,_0x3cba02._0x4652a5,0x16c)]===0x0)return _0x583e21(_0x3cba02._0xf43b4c,0x3c9,_0x3cba02._0x3125e7,0x4b7);function _0x583e21(_0x77463e,_0x43e1b6,_0x3e040d,_0x3c1755){return _0x691723(_0x3c1755-_0x15dd58._0x4e49c2,_0x43e1b6,_0x3e040d-_0x15dd58._0x2a945c,_0x3c1755-_0x15dd58._0x6d06fc);}function _0x2d9299(_0x54ff0e,_0x16fad8,_0x547786,_0x56ae1e){return _0x691723(_0x16fad8-_0x163d84._0x593921,_0x547786,_0x547786-0xdb,_0x56ae1e-0xc4);}return _0x5cd73f[_0x2d9299(0x14b,_0x3cba02._0x1fd47b,0x120,_0x3cba02._0x16f060)](_0x587061=>{const _0x42cf51=_0x587061[_0x201f5e(-0x35,0x95,0xdb,-0x150)][_0x3531ec(0x4fc,0x553,0x46d,0x533)];function _0x201f5e(_0x152374,_0x2b49ac,_0x2cc183,_0x4fe505){return _0x583e21(_0x152374-_0x634202._0x2dee51,_0x2cc183,_0x2cc183-_0x634202._0x53e08c,_0x152374- -_0x634202._0x5104ef);}function _0x3531ec(_0xd95f2b,_0x38b1d5,_0x5a444f,_0x2201bc){return _0x583e21(_0xd95f2b-0x9,_0x2201bc,_0x5a444f-_0x3085f1._0xc4a4f1,_0x38b1d5-_0x3085f1._0x14ea99);}return locationPath(_0x587061[_0x3531ec(0x483,_0x2b892f._0x4b78d7,0x65e,_0x2b892f._0x5067dd)])+':'+(_0x42cf51[_0x201f5e(-0x3,_0x2b892f._0x15a573,-0x13f,-_0x2b892f._0x1c0712)]+0x1)+':'+(_0x42cf51[_0x201f5e(-0xd5,-0x106,-0x86,-0x21d)]+0x1);})[_0x2d9299(_0x3cba02._0x24aaf3,_0x3cba02._0x531327,0x117,_0x3cba02._0x2cd2ab)]('\x0a');}function isDocumentSymbol(_0x7e4100){const _0x3c4e51={_0x5c5416:0x425,_0x4626c6:0x3b1,_0x325dbd:0x451,_0x36d5b3:0x2df};function _0x4027e3(_0x4fe8cb,_0x204f31,_0x469a99,_0x5a9526){return _0x691723(_0x4fe8cb-0x54c,_0x469a99,_0x469a99-0x1dd,_0x5a9526-0x1ba);}return _0x4027e3(_0x3c4e51._0x5c5416,_0x3c4e51._0x4626c6,_0x3c4e51._0x325dbd,_0x3c4e51._0x36d5b3)in _0x7e4100&&'selectionRange'in _0x7e4100;}function formatSymbols(_0x15c4f1){const _0xa9603b={_0x1d09a:0xe0,_0x53ff9d:0x1a0,_0x24a90a:0x45,_0x303b5e:0x34,_0x965994:0x219},_0x1550f6={_0x152435:0x479,_0x5a8c5a:0x42b,_0x1c5f87:0x4e2,_0x34d408:0x5a7,_0x753f1a:0x3f2,_0x4bc892:0x634,_0x43fd75:0x5b8,_0x448f62:0x510,_0x45d3ad:0x51d,_0x2d35c1:0x515,_0x111282:0xf,_0x51a7a0:0x59,_0x4d6ec6:0x4a,_0x1c25ba:0x98,_0x376217:0x10e,_0x32e1ce:0x90,_0x16e8b3:0x581,_0x51cd53:0x470,_0x4a9420:0x50,_0x132dac:0xdb,_0x3d250c:0x359,_0x5b17a9:0x35a,_0x21d723:0x490,_0x564a93:0x38,_0x283525:0x1d,_0x1d313c:0x591,_0x1e5b12:0x551,_0x10628b:0x78,_0x942c9a:0x6c,_0x2c3499:0x41,_0x2fc286:0xa1,_0x375fef:0x71,_0x254e70:0x149,_0x5199e3:0x1b9,_0x1e7a66:0x36f,_0x2ead00:0x50e},_0x12e4da={_0x3c780c:0xaf,_0x2638ef:0x105},_0x50d2ac={_0x1ff502:0x1d0,_0x5d9726:0x44c},_0x231892={_0x55392f:0x19c,_0x17eaf5:0x15d};function _0x8b1804(_0x16c063,_0xf06cc0,_0xdbfda,_0x9a24c9){return _0x2ff7d2(_0xdbfda- -0x462,_0x16c063,_0xdbfda-_0x231892._0x55392f,_0x9a24c9-_0x231892._0x17eaf5);}function _0x2b4d68(_0x43c576,_0x283c6,_0x3d3bdf,_0x5b2499){return _0x2ff7d2(_0x3d3bdf-0x49,_0x5b2499,_0x3d3bdf-0xb1,_0x5b2499-0x14a);}if(_0x15c4f1[_0x8b1804(0x113,0xe1,_0xa9603b._0x1d09a,0x47)]===0x0)return'No\x20symbols\x20found';return _0x15c4f1[_0x8b1804(_0xa9603b._0x53ff9d,-_0xa9603b._0x24a90a,0x66,0x1a1)](_0x172119=>{function _0x2b8caa(_0xb3b748,_0x273f38,_0x3f8abc,_0x3ed7bc){return _0x8b1804(_0xb3b748,_0x273f38-_0x50d2ac._0x1ff502,_0x3ed7bc-_0x50d2ac._0x5d9726,_0x3ed7bc-0x165);}function _0x404e93(_0x1750ce,_0x317ccf,_0x56ce2a,_0x26fb1b){return _0x8b1804(_0x1750ce,_0x317ccf-_0x12e4da._0x3c780c,_0x317ccf- -_0x12e4da._0x2638ef,_0x26fb1b-0x32);}if(isDocumentSymbol(_0x172119))return _0x172119[_0x2b8caa(0x3f2,_0x1550f6._0x152435,_0x1550f6._0x5a8c5a,0x497)]+'\x20('+_0x172119['kind']+_0x2b8caa(0x49f,_0x1550f6._0x1c5f87,0x4a1,_0x1550f6._0x34d408)+(_0x172119[_0x2b8caa(_0x1550f6._0x753f1a,_0x1550f6._0x4bc892,_0x1550f6._0x43fd75,_0x1550f6._0x448f62)][_0x2b8caa(_0x1550f6._0x45d3ad,_0x1550f6._0x2d35c1,0x60b,0x4e0)][_0x404e93(0x145,-_0x1550f6._0x111282,-_0x1550f6._0x51a7a0,_0x1550f6._0x4d6ec6)]+0x1)+':'+(_0x172119['range'][_0x404e93(-_0x1550f6._0x1c25ba,-0x71,-_0x1550f6._0x376217,-_0x1550f6._0x32e1ce)][_0x2b8caa(0x51d,_0x1550f6._0x16e8b3,0x3b5,_0x1550f6._0x51cd53)]+0x1)+']';return _0x172119[_0x404e93(_0x1550f6._0x4a9420,-0xba,-0x39,-_0x1550f6._0x132dac)]+'\x20('+_0x172119['kind']+')\x20'+locationPath(_0x172119['location'][_0x2b8caa(_0x1550f6._0x3d250c,0x420,_0x1550f6._0x5b17a9,_0x1550f6._0x21d723)])+':'+(_0x172119['location'][_0x404e93(-_0x1550f6._0x564a93,-0x41,_0x1550f6._0x283525,-0xca)][_0x2b8caa(0x59f,_0x1550f6._0x1d313c,_0x1550f6._0x1e5b12,0x4e0)][_0x404e93(0xd1,-0xf,0x147,-_0x1550f6._0x10628b)]+0x1)+':'+(_0x172119['location'][_0x404e93(-_0x1550f6._0x942c9a,-_0x1550f6._0x2c3499,-0x2c,-0x40)][_0x404e93(_0x1550f6._0x2fc286,-_0x1550f6._0x375fef,-_0x1550f6._0x254e70,-_0x1550f6._0x5199e3)][_0x2b8caa(_0x1550f6._0x1e7a66,_0x1550f6._0x2ead00,0x4f7,0x470)]+0x1);})[_0x8b1804(-_0xa9603b._0x303b5e,0x56,0xdb,_0xa9603b._0x965994)]('\x0a');}function formatDiagnostics(_0x89a9d2){const _0x29ab7b={_0x41f4ba:0x6c9,_0x41c91f:0x584,_0x33e50c:0x669,_0xae5dc5:0x4bd},_0x365c44={_0x47a881:0x340,_0x301228:0x351,_0x22063c:0x487,_0x5b5644:0x26e,_0x412bd0:0x2fb,_0x3408f8:0x225,_0x5444f7:0x262,_0x215f68:0x43c},_0x3a8cb9={_0x571b53:0x69f,_0x44225b:0x132,_0xfd2a18:0xfa},_0x3f5a30={_0x2ec754:0x68f};if(_0x89a9d2[_0x824e8a(_0x29ab7b._0x41f4ba,_0x29ab7b._0x41c91f,0x614,_0x29ab7b._0x33e50c)]===0x0)return _0x45a6a0(0x412,0x61a,0x4c4,_0x29ab7b._0xae5dc5);function _0x824e8a(_0xc39e42,_0x1dbdfc,_0x27eac7,_0xe91eba){return _0x691723(_0x1dbdfc-_0x3f5a30._0x2ec754,_0xc39e42,_0x27eac7-0xab,_0xe91eba-0x1c9);}function _0x45a6a0(_0x2204b5,_0x11cd48,_0x1ea427,_0x2a4e2a){return _0x691723(_0x2a4e2a-_0x3a8cb9._0x571b53,_0x1ea427,_0x1ea427-_0x3a8cb9._0x44225b,_0x2a4e2a-_0x3a8cb9._0xfd2a18);}return _0x89a9d2['map'](_0x3e1a29=>{const _0x3b32b7={_0x37f7c8:0x1aa},_0x519655={_0x247518:0x1b1,_0x5f0a00:0x3c8},_0x204404=_0x3e1a29['range']['start'];function _0x1bf87f(_0x1a406d,_0x79e921,_0x26aebd,_0x4c0980){return _0x45a6a0(_0x1a406d-0x61,_0x79e921-_0x519655._0x247518,_0x1a406d,_0x4c0980- -_0x519655._0x5f0a00);}function _0x5150a0(_0x464bc8,_0x5eb318,_0x43c726,_0x40aa67){return _0x824e8a(_0x40aa67,_0x464bc8- -0x25a,_0x43c726-_0x3b32b7._0x37f7c8,_0x40aa67-0x1d4);}return severityName(_0x3e1a29['severity'])+'\x20['+(_0x204404[_0x5150a0(_0x365c44._0x47a881,_0x365c44._0x301228,0x271,_0x365c44._0x22063c)]+0x1)+':'+(_0x204404[_0x5150a0(_0x365c44._0x5b5644,0x344,0x2a0,_0x365c44._0x412bd0)]+0x1)+']\x20'+_0x3e1a29[_0x5150a0(0x2eb,_0x365c44._0x3408f8,_0x365c44._0x5444f7,_0x365c44._0x215f68)];})[_0x824e8a(0x559,0x57f,0x690,0x637)]('\x0a');}function formatIncomingCalls(_0x23dc91){const _0x50886a={_0x35c6d2:0x98,_0x121da5:0x572,_0x13840b:0x4fe,_0x422527:0x4dd,_0x25bfbc:0x45e,_0xbcd391:0x374,_0x227709:0x28e,_0x3a7bca:0x3e9,_0x11ad3a:0x452},_0x4be730={_0x37d628:0x107};function _0x4f1437(_0x3c6840,_0x177ba5,_0x2bd2be,_0x12303e){return _0x691723(_0x177ba5-0x4f9,_0x3c6840,_0x2bd2be-0x1d7,_0x12303e-0xa5);}function _0x3a9c2b(_0x52a3e3,_0x2fc1eb,_0xb631b,_0x6f17a){return _0x691723(_0x6f17a-0x73,_0xb631b,_0xb631b-0x10d,_0x6f17a-_0x4be730._0x37d628);}if(_0x23dc91[_0x3a9c2b(-0x91,-0x10c,-0x18a,-_0x50886a._0x35c6d2)]===0x0)return _0x4f1437(_0x50886a._0x121da5,_0x50886a._0x13840b,0x53f,_0x50886a._0x422527);return _0x23dc91[_0x4f1437(_0x50886a._0x25bfbc,_0x50886a._0xbcd391,0x3b9,0x31d)](_0x29a664=>_0x29a664[_0x3a9c2b(-0x1ae,-0x254,-0xe9,-0x17a)][_0x3a9c2b(-0x56,-0x148,-0x201,-0x12d)])[_0x4f1437(_0x50886a._0x227709,_0x50886a._0x3a7bca,_0x50886a._0x11ad3a,0x2e4)]('\x0a');}function formatOutgoingCalls(_0xf9ff5b){const _0x19c84f={_0x290a3c:0x1d1,_0x1a4052:0x256,_0x55813b:0x139,_0x779106:0xf3,_0x98882c:0x19f,_0x53332d:0xbf,_0x44dd03:0x16c,_0x425a9e:0x1ba},_0xc8726={_0x17023c:0x6b},_0xa660fd={_0x55c40a:0x7f};if(_0xf9ff5b[_0x5e3bc3(_0x19c84f._0x290a3c,_0x19c84f._0x1a4052,_0x19c84f._0x55813b,_0x19c84f._0x779106)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x5e3bc3(_0x35fd24,_0x3fb189,_0x336e6a,_0x4009bb){return _0x691723(_0x336e6a-0x244,_0x35fd24,_0x336e6a-0x18d,_0x4009bb-_0xa660fd._0x55c40a);}function _0x24003e(_0xee197c,_0x299734,_0x1fdd1e,_0x394fa3){return _0x691723(_0xee197c- -0x5c,_0x394fa3,_0x1fdd1e-0x5d,_0x394fa3-_0xc8726._0x17023c);}return _0xf9ff5b[_0x5e3bc3(0x105,_0x19c84f._0x98882c,_0x19c84f._0x53332d,0x104)](_0x373085=>_0x373085['to'][_0x24003e(-0x1fc,-0xec,-0x188,-0x2fa)])[_0x24003e(-_0x19c84f._0x44dd03,-0xb2,-_0x19c84f._0x425a9e,-0x22b)]('\x0a');}function toStructured(_0x4c9265){const _0x499d00={_0x487096:0x100,_0x44569f:0x14e,_0x216dcb:0xbb},_0x2dc223={_0x11aa0a:0x89};function _0x436bf0(_0xa6779b,_0xda9eef,_0x270b88,_0x2c57a0){return _0x691723(_0x270b88-_0x2dc223._0x11aa0a,_0xda9eef,_0x270b88-0x36,_0x2c57a0-0x109);}return JSON['parse'](JSON[_0x436bf0(_0x499d00._0x487096,_0x499d00._0x44569f,_0x499d00._0x216dcb,-0x3b)](_0x4c9265));}async function assertFile(_0x2f08c0){const _0xc92a6c={_0x5aacf7:0x532,_0x2dc4ec:0x559},_0xa7fb31=await _0x4d7629(_0x2f08c0);function _0x22d8dd(_0xd7da7b,_0x3f9b98,_0x1758e7,_0x3a7bef){return _0x2ff7d2(_0x1758e7- -0x9c,_0x3f9b98,_0x1758e7-0x1d9,_0x3a7bef-0x11e);}if(!_0xa7fb31['isFile']())throw new ToolExecutionError(_0x22d8dd(0x67f,0x54d,_0xc92a6c._0x5aacf7,_0xc92a6c._0x2dc4ec)+_0x2f08c0,{'path':_0x2f08c0});}function validatePosition(_0x4ec263,_0x4bde74){const _0x2beae8={_0x3fab1b:0x2d9,_0xea83e0:0x2dd,_0x487dd8:0x286,_0x40efdd:0x442,_0xed83cb:0x282,_0x2bd4ac:0x1d4},_0x419a43={_0x2071d5:0x2f1,_0x21c3f8:0x16},_0x98593d={_0x1f22f4:0x139};if(!Number['isInteger'](_0x4ec263)||_0x4ec263<0x1)throw new ToolExecutionError(_0x4a9d3e(0x394,_0x2beae8._0x3fab1b,_0x2beae8._0xea83e0,_0x2beae8._0x487dd8),{'line':_0x4ec263});function _0x3c57ee(_0x5f02d9,_0x1c656e,_0x42d297,_0xba19b0){return _0x2ff7d2(_0x5f02d9- -0x291,_0xba19b0,_0x42d297-_0x98593d._0x1f22f4,_0xba19b0-0x189);}function _0x4a9d3e(_0x377c93,_0x54cce8,_0x451e53,_0x11f7ef){return _0x2ff7d2(_0x11f7ef- -_0x419a43._0x2071d5,_0x451e53,_0x451e53-0x94,_0x11f7ef-_0x419a43._0x21c3f8);}if(!Number[_0x4a9d3e(0x4a0,_0x2beae8._0x40efdd,0x4d2,0x393)](_0x4bde74)||_0x4bde74<0x1)throw new ToolExecutionError(_0x3c57ee(_0x2beae8._0xed83cb,0x373,_0x2beae8._0x2bd4ac,0x34d),{'character':_0x4bde74});}function createLspTool(_0x3b43fc={}){const _0x5ad805={_0x20a135:0x31f,_0x2084a7:0x293,_0x1c51c0:0x175,_0x2e7dfe:0x1f7,_0xd1ffef:0x4a9,_0x125c93:0xeb,_0x100a9a:0x51,_0x375d28:0x2a,_0x58340c:0x2ca,_0x46b68f:0xe,_0x6762b2:0x143,_0x1b6485:0xae,_0x16c870:0x134,_0x47e960:0x1c7,_0x489d36:0x3ba,_0xb5965b:0x330,_0x16e7a8:0x41b,_0x35c76b:0x42c,_0x584807:0x13a,_0x5daf06:0xfd,_0x572566:0xae,_0x3030b1:0x1d7,_0x75e25d:0x16e,_0x33510b:0x16c,_0x1c1edb:0x23e,_0x2dfb80:0x1a4,_0x61707f:0xc,_0x2238e8:0x348,_0x4570a0:0x1f1,_0x42ce5b:0x276,_0x2217df:0x19e,_0x275357:0x332,_0x4aa243:0x18b,_0x4eaff5:0x389,_0x9947b4:0x210,_0x4531da:0xbc,_0x3190df:0x1b0,_0x350736:0xb4,_0x45bba4:0x248,_0x526336:0x2cd},_0x1eab96={_0x4a6abd:0x3e1,_0xeaa681:0x172,_0x2ab8c4:0x252,_0x10e5e8:0x570,_0x495739:0x518,_0x13b3f2:0xa7,_0x42b5a6:0x1bc,_0x2df0e5:0x55b,_0x4e86ea:0x594,_0x5de127:0xcf,_0xd57400:0x5b4,_0xaee75a:0x4df,_0x2b811b:0x438,_0x46a0f4:0x4c1,_0x7584fc:0x2f3,_0x186f60:0x1fc,_0x1bc693:0x3a7,_0xec36fd:0x256,_0x233f13:0x3f7,_0x232cc5:0x442,_0x40f244:0x15a,_0x58047f:0x197,_0x5c9ff4:0x2ec,_0x1cf968:0x1b2,_0x2753f2:0x28d,_0x302530:0x52e,_0x1bf538:0x3d8,_0x1d8e44:0x44a,_0x1e2862:0x177,_0x17b999:0x182,_0x2d7d64:0x13a,_0x454e12:0x5e9,_0x2cece9:0x636,_0x128f65:0x1e,_0x46333c:0xa0,_0x3e2b03:0x71,_0x5610ef:0x4e6,_0x4335c1:0x3e5,_0x54e852:0x2b8,_0x562232:0x1fb,_0x235e61:0xc9,_0x3ed74f:0x37f,_0xaf07dd:0x334,_0x475235:0x3e8,_0x152344:0x3b6,_0x4fa94a:0x3cf,_0x743fe5:0x4fa,_0x563698:0x414,_0x5998d0:0x405,_0x3b414f:0x331,_0x595aea:0x36c,_0x4b54b3:0x330,_0x2f0031:0x455,_0x28a293:0x2dc,_0x34925d:0x37c,_0x1f6da4:0x2d7,_0xfa6446:0x5f5,_0x1540e3:0x449,_0x1243f7:0x53f,_0x54d5fc:0x19f,_0x1154b6:0x34d,_0x247d4:0x176},_0x1b09a5={_0x3ee85e:0x110},_0x8ed545={_0x23c87c:0x1db},_0x50418d={_0x32e74a:0x3e,_0x5caead:0x11b},_0x44f108={_0x4fc980:0x1da},_0x4ea4e1=_0x373ee3[_0x526a9a(_0x5ad805._0x20a135,_0x5ad805._0x2084a7,_0x5ad805._0x1c51c0,_0x5ad805._0x2e7dfe)](_0x3b43fc['defaultCwd']??process[_0x416c86(0x372,0x412,_0x5ad805._0xd1ffef,0x28b)]()),_0x41476b=(_0x3b43fc['allowedDirs']??[])[_0x416c86(0x1f2,_0x5ad805._0x125c93,0x1e2,0x33a)](_0x78dadb=>_0x373ee3[_0x416c86(0x3bd,0x4df,0x47a,0x2a4)](_0x78dadb)),_0x15c25e=_0x3b43fc[_0x526a9a(-_0x5ad805._0x100a9a,0xbb,-_0x5ad805._0x375d28,0x11)]??_0x416c86(0x175,0x1fd,_0x5ad805._0x58340c,0x153);function _0x416c86(_0x2a2e67,_0x543c9c,_0x16cdcc,_0x2a87ee){return _0x2ff7d2(_0x2a2e67- -0x2d6,_0x543c9c,_0x16cdcc-_0x44f108._0x4fc980,_0x2a87ee-0x87);}function _0x526a9a(_0x5490a6,_0x3b09d9,_0x65c427,_0x510710){return _0x691723(_0x510710-0x1b1,_0x3b09d9,_0x65c427-_0x50418d._0x32e74a,_0x510710-_0x50418d._0x5caead);}return defineTool({'name':_0x15c25e,'description':_0x526a9a(_0x5ad805._0x46b68f,-0x16,0x14,0x7b),'inputSchema':{'type':'object','properties':{'operation':{'type':_0x526a9a(_0x5ad805._0x6762b2,_0x5ad805._0x1b6485,0x1a3,_0x5ad805._0x16c870),'enum':[_0x526a9a(0x1c8,0xe6,-0x1e,0xca),_0x416c86(0x25f,0x382,_0x5ad805._0x47e960,_0x5ad805._0x489d36),_0x416c86(0x30b,_0x5ad805._0xb5965b,_0x5ad805._0x16e7a8,_0x5ad805._0x35c76b),_0x526a9a(-_0x5ad805._0x584807,-_0x5ad805._0x5daf06,_0x5ad805._0x572566,-0x25),_0x526a9a(_0x5ad805._0x3030b1,_0x5ad805._0x75e25d,0x1fe,_0x5ad805._0x33510b),_0x526a9a(0x9f,0x73,-0x8c,-0x70),_0x526a9a(_0x5ad805._0x1c1edb,_0x5ad805._0x2dfb80,-_0x5ad805._0x61707f,0x100),_0x416c86(0x359,0x363,_0x5ad805._0x2238e8,0x46b),_0x416c86(0x244,_0x5ad805._0x4570a0,_0x5ad805._0x42ce5b,0x36e),_0x416c86(_0x5ad805._0x2217df,0x100,0x1d0,0x196)]},'filePath':{'type':'string'},'line':{'type':_0x416c86(0x2a6,0x305,_0x5ad805._0x275357,_0x5ad805._0x4aa243)},'character':{'type':_0x416c86(0x2a6,0x389,_0x5ad805._0x4eaff5,_0x5ad805._0x9947b4)},'query':{'type':'string'}},'required':['operation',_0x416c86(0x24a,0x399,0x2bd,0x33f),_0x526a9a(0x18e,0xe4,0x1a6,_0x5ad805._0x4531da),_0x416c86(_0x5ad805._0x3190df,_0x5ad805._0x350736,_0x5ad805._0x45bba4,_0x5ad805._0x526336)]},async *'execute'(_0xf6c9fa){const _0x5a4266=_0x3b43fc[_0x2fbb48(0x357,_0x1eab96._0x4a6abd,0x2fa,0x49d)];if(!_0x5a4266)throw new ToolExecutionError('LSP\x20service\x20is\x20not\x20available');function _0x2fbb48(_0x2e197e,_0x41424a,_0x279de8,_0x22aed5){return _0x416c86(_0x2e197e-_0x8ed545._0x23c87c,_0x41424a,_0x279de8-0x1be,_0x22aed5-0x1ef);}if(!_0x5a4266[_0x43c501(0x38c,_0x1eab96._0xeaa681,0x2b2,_0x1eab96._0x2ab8c4)]())throw new ToolExecutionError(_0x2fbb48(0x49b,_0x1eab96._0x10e5e8,0x5a4,_0x1eab96._0x495739));const _0x240ceb=_0xf6c9fa[_0x43c501(_0x1eab96._0x13b3f2,0x27c,_0x1eab96._0x42b5a6,0x9f)];validatePosition(_0xf6c9fa[_0x2fbb48(0x45d,_0x1eab96._0x2df0e5,0x431,_0x1eab96._0x4e86ea)],_0xf6c9fa[_0x43c501(_0x1eab96._0x5de127,0xa7,0xa0,-0x76)]);function _0x43c501(_0x450c0b,_0x41f425,_0x485508,_0x3167fa){return _0x416c86(_0x485508- -_0x1b09a5._0x3ee85e,_0x41f425,_0x485508-0x1a2,_0x3167fa-0x128);}if(_0x240ceb===_0x2fbb48(0x50d,0x62c,0x528,_0x1eab96._0xd57400)){if(!_0xf6c9fa[_0x2fbb48(_0x1eab96._0xaee75a,0x529,_0x1eab96._0x2b811b,_0x1eab96._0x46a0f4)]?.[_0x43c501(_0x1eab96._0x7584fc,0x221,_0x1eab96._0x186f60,0x21a)]())throw new ToolExecutionError(_0x2fbb48(0x32e,0x2b2,_0x1eab96._0x1bc693,_0x1eab96._0xec36fd));const _0x25ed38=await _0x5a4266['workspaceSymbol'](_0xf6c9fa[_0x2fbb48(0x4df,_0x1eab96._0x233f13,_0x1eab96._0x232cc5,0x52b)]['trim']());return yield createToolOutput(formatSymbols(_0x25ed38),{'operation':_0x240ceb,'query':_0xf6c9fa[_0x43c501(0x203,_0x1eab96._0x40f244,0x1f4,_0x1eab96._0x58047f)],'symbols':_0x25ed38}),void 0x0;}const _0x5b5fa5=resolveAllowedPath(_0x4ea4e1,_0x41476b,_0xf6c9fa[_0x2fbb48(0x425,_0x1eab96._0x5c9ff4,0x3ba,0x533)]);await assertFile(_0x5b5fa5);if(!await _0x5a4266[_0x43c501(0x243,_0x1eab96._0x1cf968,0x2c0,_0x1eab96._0x2753f2)](_0x5b5fa5))throw new ToolExecutionError(_0x2fbb48(_0x1eab96._0x302530,_0x1eab96._0x1bf538,0x5ac,_0x1eab96._0x1d8e44)+_0xf6c9fa['filePath'],{'filePath':_0xf6c9fa[_0x43c501(_0x1eab96._0x1e2862,_0x1eab96._0x17b999,_0x1eab96._0x2d7d64,0x7d)]});await _0x5a4266[_0x2fbb48(0x526,_0x1eab96._0x454e12,0x631,_0x1eab96._0x2cece9)](_0x5b5fa5,!![]);const _0x90c1a3={'file':_0x5b5fa5,'line':_0xf6c9fa['line']-0x1,'character':_0xf6c9fa[_0x43c501(-0x62,_0x1eab96._0x128f65,_0x1eab96._0x46333c,-_0x1eab96._0x3e2b03)]-0x1};switch(_0x240ceb){case _0x2fbb48(_0x1eab96._0x5610ef,0x482,_0x1eab96._0x4335c1,_0x1eab96._0xd57400):{const _0x30ffa7=await _0x5a4266[_0x43c501(_0x1eab96._0x54e852,0x301,_0x1eab96._0x562232,_0x1eab96._0x235e61)](_0x90c1a3);return yield createToolOutput(formatHover(_0x30ffa7),{'operation':_0x240ceb,'filePath':_0x5b5fa5,'hover':_0x30ffa7}),void 0x0;}case _0x2fbb48(0x379,0x2f3,0x21f,0x339):{const _0x1fe607=await _0x5a4266[_0x2fbb48(_0x1eab96._0x3ed74f,_0x1eab96._0xaf07dd,_0x1eab96._0x475235,0x315)](_0x5b5fa5);return yield createToolOutput(formatDiagnostics(_0x1fe607),{'operation':_0x240ceb,'filePath':_0x5b5fa5,'diagnostics':_0x1fe607}),void 0x0;}case _0x2fbb48(0x46b,0x54a,0x3ee,0x410):{const _0x8cda36=await _0x5a4266['definition'](_0x90c1a3);return yield createToolOutput(formatLocations(_0x8cda36),{'operation':_0x240ceb,'filePath':_0x5b5fa5,'locations':_0x8cda36}),void 0x0;}case _0x2fbb48(0x43a,_0x1eab96._0x152344,_0x1eab96._0x4fa94a,_0x1eab96._0x743fe5):{const _0x4bb2aa=await _0x5a4266[_0x2fbb48(0x410,_0x1eab96._0x563698,0x32b,_0x1eab96._0x5998d0)](_0x90c1a3);return yield createToolOutput(formatLocations(_0x4bb2aa),{'operation':_0x240ceb,'filePath':_0x5b5fa5,'locations':_0x4bb2aa}),void 0x0;}case _0x2fbb48(_0x1eab96._0x3b414f,_0x1eab96._0x595aea,0x429,0x420):{const _0x29db17=await _0x5a4266[_0x2fbb48(_0x1eab96._0x4b54b3,0x30e,_0x1eab96._0x2f0031,0x2eb)](_0x90c1a3);return yield createToolOutput(formatLocations(_0x29db17),{'operation':_0x240ceb,'filePath':_0x5b5fa5,'locations':_0x29db17}),void 0x0;}case _0x2fbb48(0x37c,0x39b,_0x1eab96._0x28a293,0x336):{const _0x25b5a3=await _0x5a4266[_0x2fbb48(_0x1eab96._0x34925d,_0x1eab96._0x1f6da4,0x4ca,0x31d)](_0x5b5fa5);return yield createToolOutput(formatSymbols(_0x25b5a3),{'operation':_0x240ceb,'filePath':_0x5b5fa5,'symbols':_0x25b5a3}),void 0x0;}case _0x2fbb48(0x4a1,0x48c,_0x1eab96._0xfa6446,0x562):{const _0x2e2a37=await _0x5a4266[_0x2fbb48(0x4a1,0x3c7,_0x1eab96._0x1540e3,_0x1eab96._0x1243f7)](_0x90c1a3);return yield createToolOutput(formatSymbols(_0x2e2a37),{'operation':_0x240ceb,'filePath':_0x5b5fa5,'symbols':toStructured(_0x2e2a37)}),void 0x0;}case _0x43c501(0x30b,_0x1eab96._0x54d5fc,0x249,_0x1eab96._0x1154b6):{const _0x454ed8=await _0x5a4266['incomingCalls'](_0x90c1a3);return yield createToolOutput(formatIncomingCalls(_0x454ed8),{'operation':_0x240ceb,'filePath':_0x5b5fa5,'calls':toStructured(_0x454ed8)}),void 0x0;}case'outgoingCalls':{const _0x443f7a=await _0x5a4266[_0x43c501(0x287,_0x1eab96._0x247d4,0x134,0x3f)](_0x90c1a3);return yield createToolOutput(formatOutgoingCalls(_0x443f7a),{'operation':_0x240ceb,'filePath':_0x5b5fa5,'calls':toStructured(_0x443f7a)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x4a6d2c,readFile as _0x3a23da,writeFile as _0x1e66ce}from'fs/promises';import{join as _0x2e1056}from'path';function sanitizeStorageKey(_0x524f90){const _0x72e5f0={_0x1421d5:0x40e,_0x2317a0:0x50a,_0x4b272e:0x450,_0x29fe8a:0x402,_0x1d2225:0x3ba,_0x12bad8:0x3b2,_0x23269c:0x1},_0x12b5bd={_0x4e2712:0xa8,_0x326657:0x115,_0x4d92d1:0x118},_0x5a8b87={_0x28e176:0x4b8};function _0x5ce176(_0x581f8a,_0xa8a503,_0x4d8113,_0x3eca4b){return _0x2ff7d2(_0x581f8a- -_0x5a8b87._0x28e176,_0x4d8113,_0x4d8113-0x8e,_0x3eca4b-0xc5);}function _0x2d8cec(_0x43433a,_0x1b5f2a,_0xc2bf6f,_0x4db47c){return _0x2ff7d2(_0x1b5f2a- -_0x12b5bd._0x4e2712,_0x43433a,_0xc2bf6f-_0x12b5bd._0x326657,_0x4db47c-_0x12b5bd._0x4d92d1);}return _0x524f90[_0x2d8cec(_0x72e5f0._0x1421d5,_0x72e5f0._0x2317a0,_0x72e5f0._0x4b272e,_0x72e5f0._0x29fe8a)](/[^a-zA-Z0-9_]+/g,'_')[_0x2d8cec(0x4e5,0x50a,_0x72e5f0._0x1d2225,_0x72e5f0._0x12bad8)](/^_+|_+$/g,'')||_0x5ce176(_0x72e5f0._0x23269c,-0xb9,0x77,0xaf);}function storagePath(_0x2a1783){const _0x15c24f={_0xb402c:0x83,_0x1d78d7:0x65,_0x20692f:0xf8,_0x721302:0x23a,_0x2d79d8:0x1cb,_0x5e426e:0x7b,_0x481fc3:0xd3,_0x1603aa:0x26,_0x4c94d1:0x14},_0x50fff1={_0x1c454a:0x22,_0x35076d:0x118};function _0x2686ce(_0x427a96,_0x282f69,_0x3ec823,_0x46eece){return _0x691723(_0x46eece- -_0x50fff1._0x1c454a,_0x3ec823,_0x3ec823-_0x50fff1._0x35076d,_0x46eece-0xe2);}const _0x512165=sanitizeStorageKey(_0x2a1783[_0x2686ce(-_0x15c24f._0xb402c,-0x16d,-_0x15c24f._0x1d78d7,-0x105)][_0x2686ce(-0x261,-_0x15c24f._0x20692f,-_0x15c24f._0x721302,-0x1ce)]?.[_0x3abfd1(_0x15c24f._0x2d79d8,-_0x15c24f._0x5e426e,_0x15c24f._0x481fc3,-0x30)]??_0x2a1783[_0x3abfd1(_0x15c24f._0x1603aa,0xa0,-_0x15c24f._0x4c94d1,0x32)]);function _0x3abfd1(_0xd49bbb,_0x3b849f,_0x2ee5fa,_0x2cc338){return _0x2ff7d2(_0x2ee5fa- -0x43c,_0x2cc338,_0x2ee5fa-0xb3,_0x2cc338-0x1d1);}return _0x2e1056(_0x2a1783['storageDir'],_0x512165+_0x2686ce(0x114,-0x1b,-0x15,0x6));}async function readStore(_0x960869){const _0x36a7c3={_0x18fc6f:0x657,_0x489769:0x513,_0x520893:0x4df,_0x43b899:0x401,_0x18a158:0x414,_0x44c60f:0x50a,_0x8106d9:0x50b,_0x5d9251:0x52c,_0x40ef1b:0x3e1,_0x5892ba:0x383},_0x2b24c5={_0x3e3ffd:0x628,_0x5059ce:0xd6},_0x396574={_0x4e30fd:0x1b7,_0x4bb47b:0xcf};function _0x22b961(_0xc6eb6b,_0x352353,_0x40bc53,_0x509a20){return _0x2ff7d2(_0x509a20- -0x29d,_0x40bc53,_0x40bc53-_0x396574._0x4e30fd,_0x509a20-_0x396574._0x4bb47b);}function _0x34de89(_0x1a4028,_0x16061e,_0x1e35fb,_0x5a41b1){return _0x691723(_0x1a4028-_0x2b24c5._0x3e3ffd,_0x16061e,_0x1e35fb-0x42,_0x5a41b1-_0x2b24c5._0x5059ce);}try{return JSON[_0x34de89(_0x36a7c3._0x18fc6f,0x5df,0x77f,_0x36a7c3._0x489769)](await _0x3a23da(_0x960869,_0x22b961(0x368,_0x36a7c3._0x520893,_0x36a7c3._0x43b899,_0x36a7c3._0x18a158)));}catch(_0x62d125){if(_0x62d125 instanceof Error&&_0x34de89(0x3fb,_0x36a7c3._0x44c60f,0x32c,0x51a)in _0x62d125&&_0x62d125[_0x34de89(0x3fb,_0x36a7c3._0x8106d9,_0x36a7c3._0x5d9251,0x497)]===_0x22b961(_0x36a7c3._0x40ef1b,_0x36a7c3._0x5892ba,0x267,0x359))return{};throw _0x62d125;}}async function writeStore(_0x1a65cb,_0x3951e8){const _0x23b66b={_0x44d915:0x75c,_0x414d42:0x844,_0x513c80:0x1b5},_0x3a9a27={_0x4d71c6:0x4fc,_0x1bf1f9:0x196,_0x45b4fa:0xc5},_0x5c5435={_0x2ece3a:0x72a,_0x4f5504:0xa6};function _0x765e6d(_0x1cc55e,_0x137769,_0x3affc3,_0x32a96b){return _0x691723(_0x3affc3-_0x5c5435._0x2ece3a,_0x137769,_0x3affc3-_0x5c5435._0x4f5504,_0x32a96b-0x1cb);}function _0x211964(_0x815a1a,_0x241c03,_0x424eac,_0x54b919){return _0x2ff7d2(_0x424eac- -_0x3a9a27._0x4d71c6,_0x241c03,_0x424eac-_0x3a9a27._0x1bf1f9,_0x54b919-_0x3a9a27._0x45b4fa);}await _0x4a6d2c(_0x2e1056(_0x1a65cb,'..'),{'recursive':!![]}),await _0x1e66ce(_0x1a65cb,JSON[_0x765e6d(0x7b2,0x624,_0x23b66b._0x44d915,_0x23b66b._0x414d42)](_0x3951e8,null,0x2),_0x211964(0x23d,0x67,_0x23b66b._0x513c80,0x28a));}async function updateStore(_0x59ef57,_0x439f2c){const _0x4e2a45=await readStore(_0x59ef57);_0x439f2c(_0x4e2a45),await writeStore(_0x59ef57,_0x4e2a45);}function createMcpOAuthProvider(_0x27c997){const _0x4459d9={_0x5f0749:0x150,_0x3ca4a0:0x52,_0xd86ac:0x6c,_0x136f39:0x11c,_0x698150:0x27b,_0x3feab2:0x7c,_0x11d8a5:0x160,_0x2a00dd:0x7f,_0x223c9b:0x1f,_0x2ba6b3:0x256,_0x351b01:0x117,_0x1c0831:0xd9,_0x411588:0x75,_0x46e7b1:0xb6,_0x3028d2:0x42,_0x29dfcf:0x376,_0x57a642:0x6f,_0xbc09eb:0x227,_0x1b1f95:0x112,_0x23e2f8:0x2,_0x2c38e2:0xd,_0x5b17d1:0x162},_0x9d0ab2={_0x54cf32:0x6f7,_0x3b7ad3:0x660},_0x3bbf51={_0x51536f:0x315,_0x2ff7c2:0x4c0,_0x246ad4:0x33a,_0x324549:0x3af,_0x1f87c1:0x2b7,_0x2c3b09:0x2e5},_0x46d95a={_0x13f73d:0x46,_0x3a65e5:0x138},_0x51e10f={_0x44ec2f:0x15f,_0x354e57:0x130},_0x4b1dac={_0x302a05:0x1cb,_0x57ccc6:0xf0},_0x3adc82={_0x560df0:0x133,_0xe8a4e4:0x17c},_0x5d17f0={_0xbe2d32:0x38c,_0x13eb4c:0x269},_0x41add2={_0x17321b:0x258,_0xb75426:0x3f},_0x10e0ab={_0x3e1bcc:0x74,_0x4c9e7d:0x19,_0x3a08d:0x47},_0x2ff4f0={_0x471e75:0xa4,_0x445523:0xec,_0x5bd576:0x116},_0x24bc5d={_0x20bdb8:0xeb},_0x351e7b={_0xeab672:0x11c},_0x4ca65f={_0x5b7d11:0x1},_0x10e423={_0xa8ca09:0x9a,_0x304c2d:0x116,_0x2da079:0x16c};function _0x124485(_0x4caba6,_0x22a4e7,_0x225a76,_0x19ab37){return _0x691723(_0x22a4e7-_0x10e423._0xa8ca09,_0x225a76,_0x225a76-_0x10e423._0x304c2d,_0x19ab37-_0x10e423._0x2da079);}const _0x649a9b=storagePath(_0x27c997);function _0xf358fb(_0x28fd90,_0x2a7b13,_0x48ced0,_0xdbca1c){return _0x2ff7d2(_0x48ced0- -0x3b0,_0x28fd90,_0x48ced0-_0x4ca65f._0x5b7d11,_0xdbca1c-0x170);}const _0x4efc13=_0x27c997[_0x124485(-0x84,-0x49,0xed,-0x16d)][_0x124485(0x3d,-0x112,-0x2,0x22)]?.[_0x124485(-_0x4459d9._0x5f0749,-_0x4459d9._0x3ca4a0,0x89,_0x4459d9._0xd86ac)]?.[_0xf358fb(_0x4459d9._0x136f39,_0x4459d9._0x698150,0x18d,0x2cf)]('\x20'),_0x3c59c6={'client_name':_0xf358fb(-_0x4459d9._0x3feab2,-0x57,0xd0,_0x4459d9._0x11d8a5),'redirect_uris':[_0x27c997[_0x124485(0x93,-_0x4459d9._0x2a00dd,_0x4459d9._0x223c9b,0x6e)]],'grant_types':[_0xf358fb(0x2fd,_0x4459d9._0x2ba6b3,0x204,_0x4459d9._0x351b01),_0xf358fb(_0x4459d9._0x1c0831,-_0x4459d9._0x411588,_0x4459d9._0x46e7b1,0xa0)],'response_types':[_0xf358fb(0x115,0xe4,0x70,_0x4459d9._0x3028d2)],'token_endpoint_auth_method':_0xf358fb(0x13e,_0x4459d9._0x29dfcf,0x276,0x31a),..._0x4efc13?{'scope':_0x4efc13}:{}};return{'clientMetadataUrl':_0x27c997[_0x124485(-_0x4459d9._0x57a642,-0x49,-0x38,0x3e)][_0x124485(-_0x4459d9._0xbc09eb,-_0x4459d9._0x1b1f95,-_0x4459d9._0x23e2f8,-_0x4459d9._0x2c38e2)]?.[_0xf358fb(0x1ed,0x79,0x1a0,_0x4459d9._0x5b17d1)],get 'redirectUrl'(){function _0x4e4f94(_0x32b10f,_0x4baf16,_0x45de6b,_0x2a3ceb){return _0x124485(_0x32b10f-0x1e,_0x32b10f-0x16a,_0x4baf16,_0x2a3ceb-_0x351e7b._0xeab672);}return _0x27c997[_0x4e4f94(_0x24bc5d._0x20bdb8,0x22d,0x121,-0x46)];},get 'clientMetadata'(){return _0x3c59c6;},async 'state'(){const _0xc05ee2={_0x297b5f:0x13b,_0x4f8dc0:0x141},_0x4e9b51=await readStore(_0x649a9b);if(_0x4e9b51[_0x23e8e0(-0x103,-0xf7,-0x178,-0xef)])return _0x4e9b51[_0x54d7d5(_0x10e0ab._0x3e1bcc,-0xd8,-_0x10e0ab._0x4c9e7d,_0x10e0ab._0x3a08d)];function _0x23e8e0(_0x280cdf,_0x46f3eb,_0x178952,_0x42d825){return _0xf358fb(_0x178952,_0x46f3eb-_0xc05ee2._0x297b5f,_0x42d825- -0x24d,_0x42d825-_0xc05ee2._0x4f8dc0);}function _0x54d7d5(_0x3e892f,_0x5a6f84,_0x847366,_0x3658a6){return _0x124485(_0x3e892f-_0x2ff4f0._0x471e75,_0x3658a6-_0x2ff4f0._0x445523,_0x847366,_0x3658a6-_0x2ff4f0._0x5bd576);}const _0x3554f0=randomUUID();return await updateStore(_0x649a9b,_0x25765d=>{_0x25765d['state']=_0x3554f0;}),_0x3554f0;},async 'clientInformation'(){function _0x1a1a5d(_0x28f3a9,_0x26d2e7,_0x17046f,_0x40d9e4){return _0x124485(_0x28f3a9-0xc4,_0x40d9e4-0x18a,_0x26d2e7,_0x40d9e4-0x125);}return(await readStore(_0x649a9b))[_0x1a1a5d(_0x41add2._0x17321b,-0x16,_0x41add2._0xb75426,0x10e)];},async 'saveClientInformation'(_0x53a8f3){const _0x749a1b={_0x2ac5c4:0x4e4,_0x579b94:0x5fc,_0x590fcc:0x4d5,_0x370864:0x389};await updateStore(_0x649a9b,_0x1e09ec=>{function _0x2625cc(_0x133024,_0x3bbbbd,_0x2c91e1,_0x4aa02d){return _0x47bf(_0x133024-0x281,_0x3bbbbd);}_0x1e09ec[_0x2625cc(_0x749a1b._0x2ac5c4,_0x749a1b._0x579b94,_0x749a1b._0x590fcc,_0x749a1b._0x370864)]=_0x53a8f3;});},async 'tokens'(){const _0x5a2a03={_0x1b45b3:0x2ce};function _0x7f966f(_0x4107a6,_0x30c395,_0x78be08,_0x2c85e6){return _0x124485(_0x4107a6-0x56,_0x2c85e6-_0x5a2a03._0x1b45b3,_0x30c395,_0x2c85e6-0x60);}return(await readStore(_0x649a9b))[_0x7f966f(_0x5d17f0._0xbe2d32,_0x5d17f0._0x13eb4c,0x352,0x31e)];},async 'saveTokens'(_0x3e9184){await updateStore(_0x649a9b,_0x33336c=>{_0x33336c['tokens']=_0x3e9184;});},async 'redirectToAuthorization'(_0x4915f5){const _0x1c57a9={_0xbdb4e0:0x12b};function _0x1d0c57(_0x269334,_0x195072,_0x1bd1f1,_0x351673){return _0xf358fb(_0x269334,_0x195072-0x63,_0x351673- -0x1a4,_0x351673-_0x1c57a9._0xbdb4e0);}await _0x27c997[_0x1d0c57(_0x3adc82._0x560df0,_0x3adc82._0xe8a4e4,0x110,0x89)](_0x4915f5);},async 'saveCodeVerifier'(_0x311357){const _0x5d7496={_0x57129c:0x174};await updateStore(_0x649a9b,_0x28bb83=>{function _0x1b2151(_0xa7e421,_0x4881d3,_0x3617eb,_0x360f67){return _0x47bf(_0x360f67- -_0x5d7496._0x57129c,_0x3617eb);}_0x28bb83[_0x1b2151(-0x68,_0x4b1dac._0x302a05,-0xb,_0x4b1dac._0x57ccc6)]=_0x311357;});},async 'codeVerifier'(){const _0x265b0b=(await readStore(_0x649a9b))[_0x4db0b1(_0x3bbf51._0x51536f,_0x3bbf51._0x2ff7c2,_0x3bbf51._0x246ad4,_0x3bbf51._0x324549)];if(!_0x265b0b)throw new Error(_0x4db0b1(_0x3bbf51._0x1f87c1,0x437,0x2e6,_0x3bbf51._0x2c3b09));function _0x4db0b1(_0x4e25ee,_0x22b292,_0x2caf17,_0x37b2d7){return _0x124485(_0x4e25ee-_0x51e10f._0x44ec2f,_0x37b2d7-0x42a,_0x22b292,_0x37b2d7-_0x51e10f._0x354e57);}function _0x51b5f(_0x2f264a,_0x36b408,_0x31d7ef,_0x5b8e0f){return _0x124485(_0x2f264a-_0x46d95a._0x13f73d,_0x31d7ef-0x29,_0x2f264a,_0x5b8e0f-_0x46d95a._0x3a65e5);}return _0x265b0b;},async 'invalidateCredentials'(_0x415769){const _0x216d0b={_0x13621c:0xd3,_0x358140:0x90,_0x2d22a8:0x263,_0x3ad85c:0x27f,_0x14ac61:0x144,_0x2b0725:0x94,_0x21fe27:0x15b,_0xb7951e:0x90,_0x3e2484:0x127,_0x63bb05:0x229,_0xa83b34:0x36e,_0x2d3cff:0x232,_0x4b4680:0x23b,_0x1db2ef:0xa9,_0x5b330e:0x2e8,_0x44dfbf:0x1c0,_0x26e34b:0x270,_0x5abbe0:0x9,_0x20376f:0x1ae,_0x247282:0xc7,_0x49d108:0x19};await updateStore(_0x649a9b,_0x41da64=>{(_0x415769===_0x2ce9d0(-0x84,_0x216d0b._0x13621c,_0x216d0b._0x358140,0x7d)||_0x415769==='client')&&(_0x41da64[_0x2ce9d0(_0x216d0b._0x2d22a8,_0x216d0b._0x3ad85c,_0x216d0b._0x14ac61,0x74)]=void 0x0);(_0x415769===_0x2ce9d0(_0x216d0b._0x2b0725,_0x216d0b._0x21fe27,_0x216d0b._0xb7951e,0x9e)||_0x415769===_0x2ce9d0(0x2ac,_0x216d0b._0x3e2484,0x210,_0x216d0b._0x63bb05))&&(_0x41da64[_0x23ab54(_0x216d0b._0xa83b34,_0x216d0b._0x2d3cff,0x309,_0x216d0b._0x4b4680)]=void 0x0);function _0x23ab54(_0x5bda8d,_0x3c5036,_0x5be980,_0x44c4f0){return _0x47bf(_0x44c4f0- -0xf4,_0x3c5036);}function _0x2ce9d0(_0x2353ec,_0xc57568,_0x3a0030,_0x2bc09a){return _0x47bf(_0x3a0030- -0x11f,_0xc57568);}(_0x415769==='all'||_0x415769===_0x2ce9d0(_0x216d0b._0x1db2ef,_0x216d0b._0x5b330e,_0x216d0b._0x44dfbf,_0x216d0b._0x26e34b))&&(_0x41da64[_0x2ce9d0(0x29a,0x78,0x145,0x135)]=void 0x0,_0x41da64[_0x23ab54(0x1c2,0x101,0x7b,0x146)]=void 0x0),(_0x415769===_0x23ab54(_0x216d0b._0x5abbe0,0x135,_0x216d0b._0x20376f,0xbb)||_0x415769===_0x2ce9d0(0x141,_0x216d0b._0x247282,0x105,-_0x216d0b._0x49d108))&&(_0x41da64['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x49cb4e){await updateStore(_0x649a9b,_0x1abd43=>{function _0x25f3d4(_0x4809f6,_0x4e98c6,_0x1a5f23,_0x47e6cf){return _0x47bf(_0x1a5f23-0x32d,_0x4e98c6);}_0x1abd43[_0x25f3d4(_0x9d0ab2._0x54cf32,0x69c,_0x9d0ab2._0x3b7ad3,0x6ed)]=_0x49cb4e;});},async 'discoveryState'(){return(await readStore(_0x649a9b))['discoveryState'];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x50db7f,_0x147647){const _0x30e589={_0x53be5a:0x356,_0x4b5329:0x2bf},_0x421971={_0x31f696:0x571,_0x3c1ee0:0x14},_0x2e5b8b=_0x545eca=>_0x545eca['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x57ec92(0x441,0x381,0x4fc,0x403)](/^_+|_+$/g,'');function _0x240b31(_0x3d3c6b,_0x43f5b1,_0x432e3e,_0x1047f0){return _0x691723(_0x432e3e-_0x421971._0x31f696,_0x43f5b1,_0x432e3e-_0x421971._0x3c1ee0,_0x1047f0-0x10a);}function _0x57ec92(_0x232c7b,_0x44aa3b,_0xe54335,_0x7ee3da){return _0x2ff7d2(_0x7ee3da- -0x1af,_0x232c7b,_0xe54335-0x12b,_0x7ee3da-0x1b3);}return _0x57ec92(_0x30e589._0x53be5a,0x291,_0x30e589._0x4b5329,0x2d6)+_0x2e5b8b(_0x50db7f)+'_'+_0x2e5b8b(_0x147647);}function isObject(_0x15ffe1){return typeof _0x15ffe1==='object'&&_0x15ffe1!==null&&!Array['isArray'](_0x15ffe1);}function toSupportedSchema(_0x50683e){const _0x6a8de8={_0x20091c:0x25e,_0x474fe0:0x97,_0x1bfcab:0x1e5,_0x5f4c51:0xa8,_0x3610d2:0x12e,_0x5dae93:0x192,_0xad8718:0x240,_0x3ebd3c:0xef,_0x3e1658:0x191,_0x3581d5:0x2e8,_0x112d97:0x71,_0xe9df64:0x162,_0x1f7f8f:0x138,_0x2072b1:0x1c1,_0x59bd1f:0x3ff,_0x366f6f:0x1c4,_0x5146ae:0x1c8,_0xa2e8b:0x15f,_0x4de195:0x448,_0x3c5b16:0x3dd,_0x5ed8ae:0x3c1,_0x5dccd6:0x2ff,_0x560993:0x242,_0x40a3e3:0x478,_0x142021:0x365,_0x144e39:0x1ee,_0x363865:0x1d1},_0x2684c2={_0x801952:0x16f};if(!isObject(_0x50683e))return void 0x0;if(_0x50683e[_0x1e03d6(0x1a7,0x21d,_0x6a8de8._0x20091c,0x192)]==='string')return{'type':_0x1e03d6(0x150,0x332,_0x6a8de8._0x474fe0,_0x6a8de8._0x1bfcab)};if(_0x50683e[_0x1e03d6(_0x6a8de8._0x5f4c51,_0x6a8de8._0x3610d2,0x145,_0x6a8de8._0x5dae93)]===_0x1e03d6(0xfa,_0x6a8de8._0xad8718,_0x6a8de8._0x3ebd3c,_0x6a8de8._0x3e1658)||_0x50683e['type']===_0x1e03d6(0x36f,0x3e9,0x363,0x2c9))return{'type':_0x1e03d6(0x35,0x22b,0x2ad,_0x6a8de8._0x3e1658)};function _0x1e03d6(_0x421776,_0x540d33,_0x28a352,_0x3bc10b){return _0x2ff7d2(_0x3bc10b- -0x3eb,_0x421776,_0x28a352-0x2f,_0x3bc10b-0x1b3);}if(_0x50683e[_0x1e03d6(0x59,_0x6a8de8._0x3581d5,0x45,0x192)]===_0x1e03d6(_0x6a8de8._0x112d97,_0x6a8de8._0xe9df64,0x25d,_0x6a8de8._0x1f7f8f))return{'type':_0x440094(0x415,0x2db,_0x6a8de8._0x2072b1,_0x6a8de8._0x59bd1f)};if(_0x50683e[_0x1e03d6(_0x6a8de8._0x366f6f,0x122,_0x6a8de8._0x5146ae,0x192)]==='array')return{'type':_0x440094(_0x6a8de8._0xa2e8b,0x231,0x1d8,0x27b),'items':toSupportedSchema(_0x50683e[_0x440094(_0x6a8de8._0x4de195,_0x6a8de8._0x3c5b16,_0x6a8de8._0x5ed8ae,_0x6a8de8._0x5dccd6)])??{'type':'string'}};function _0x440094(_0x3bed02,_0x6424c3,_0x1b209d,_0xc69bc1){return _0x691723(_0x6424c3-0x405,_0xc69bc1,_0x1b209d-_0x2684c2._0x801952,_0xc69bc1-0x2e);}if(_0x50683e[_0x440094(_0x6a8de8._0x560993,0x335,_0x6a8de8._0x40a3e3,_0x6a8de8._0x142021)]===_0x1e03d6(_0x6a8de8._0x144e39,_0x6a8de8._0x363865,0x169,0x229))return toNuvinToolSchema(_0x50683e);return void 0x0;}function toNuvinToolSchema(_0x2c7d3b){const _0x5b772c={_0xd0b309:0x60a,_0x14f3b2:0x521,_0x26b7b5:0x491,_0x26345c:0xa2,_0x342df5:0x564,_0x11037d:0x669,_0x3a67a0:0x79b,_0x2fadf9:0x473,_0x4b8c71:0x59,_0x8fd005:0xef,_0x38e167:0x19d,_0x4716f1:0x171};function _0x23f753(_0x5d851a,_0x2ce60f,_0x101d33,_0x4340fc){return _0x691723(_0x2ce60f-0x1d7,_0x5d851a,_0x101d33-0x137,_0x4340fc-0x41);}if(!isObject(_0x2c7d3b)||_0x2c7d3b[_0x1f875e(_0x5b772c._0xd0b309,_0x5b772c._0x14f3b2,0x470,_0x5b772c._0x26b7b5)]!==_0x23f753(0x4c,0x19e,0x271,_0x5b772c._0x26345c))return{'type':_0x1f875e(0x6dd,0x5b8,_0x5b772c._0x342df5,0x471),'properties':{}};const _0x233a10={},_0x1db6a5=isObject(_0x2c7d3b['properties'])?_0x2c7d3b[_0x1f875e(_0x5b772c._0x11037d,0x641,_0x5b772c._0x3a67a0,0x5ad)]:{};for(const [_0x3b73dd,_0x2b88fa]of Object[_0x1f875e(0x4c6,_0x5b772c._0x2fadf9,0x541,0x4fa)](_0x1db6a5)){const _0x517b9c=toSupportedSchema(_0x2b88fa);if(_0x517b9c)_0x233a10[_0x3b73dd]=_0x517b9c;}const _0x53c2cc=Array['isArray'](_0x2c7d3b['required'])?_0x2c7d3b[_0x23f753(-0x128,-_0x5b772c._0x4b8c71,_0x5b772c._0x8fd005,-0xde)][_0x23f753(0x211,_0x5b772c._0x38e167,0x1ff,_0x5b772c._0x4716f1)](_0x1af97f=>typeof _0x1af97f==='string'):void 0x0;function _0x1f875e(_0x4be119,_0xd51684,_0x506170,_0x4a381b){return _0x2ff7d2(_0xd51684- -0x5c,_0x4be119,_0x506170-0x37,_0x4a381b-0xa7);}return _0x53c2cc?.[_0x1f875e(0x450,0x4e6,0x42c,0x4f7)]?{'type':'object','properties':_0x233a10,'required':_0x53c2cc}:{'type':'object','properties':_0x233a10};}function isJsonObject(_0x15feb0){const _0x45bc2a={_0x2db56b:0x6c,_0x53d533:0x1bd,_0xd5fa65:0x55e},_0x25942b={_0x41baf3:0x77},_0x223caf={_0x12e36a:0x10,_0xbe93f8:0xf9,_0x497db:0x102};function _0x11c655(_0xbab088,_0x19bfca,_0x43e41e,_0x448e7f){return _0x2ff7d2(_0x43e41e- -_0x223caf._0x12e36a,_0xbab088,_0x43e41e-_0x223caf._0xbe93f8,_0x448e7f-_0x223caf._0x497db);}function _0x1a32e7(_0x3db44b,_0x490636,_0x5e892e,_0x161f63){return _0x2ff7d2(_0x5e892e- -0x457,_0x161f63,_0x5e892e-0x132,_0x161f63-_0x25942b._0x41baf3);}return typeof _0x15feb0===_0x1a32e7(0x253,_0x45bc2a._0x2db56b,_0x45bc2a._0x53d533,0x13e)&&_0x15feb0!==null&&!Array[_0x11c655(0x587,_0x45bc2a._0xd5fa65,0x4c1,0x408)](_0x15feb0);}function formatMcpContent(_0x305512){const _0x9cd795={_0x5b1428:0x5d3,_0x284466:0x521,_0x3bcda2:0x43c,_0x38ee37:0x54c,_0x5ee28c:0x618,_0x4d2566:0x74a,_0x3bd611:0x705,_0x23cbcc:0x131,_0x53c87e:0x14b,_0x51a0c5:0x1f3,_0x49fb65:0xbf,_0x5c8333:0x6d,_0x2ef632:0x10f,_0x40b9af:0x188,_0x552978:0x14f,_0x477da2:0x142,_0xbf7f62:0x4a,_0x382b62:0x167,_0x47371a:0x73},_0x42ebc9={_0x2ff1c1:0x8a,_0x12867b:0x1f2},_0x3889db={_0x49b67f:0xc6,_0x1eca6f:0x1c0},_0x217351={_0x581afd:0x319,_0x2913e3:0x2a7,_0x3338b2:0x4ba,_0x2c895a:0x3b3,_0x179900:0x475,_0x104ab2:0x281},_0x2b83b2={_0x274e7a:0x86},_0x1e5a7d={_0x408e5d:0x1e6,_0x38cd31:0x323},_0x79204b=Array[_0x5ca976(_0x9cd795._0x5b1428,_0x9cd795._0x284466,_0x9cd795._0x3bcda2,0x411)](_0x305512[_0x5ca976(_0x9cd795._0x38ee37,_0x9cd795._0x5ee28c,_0x9cd795._0x4d2566,_0x9cd795._0x3bd611)])?_0x305512[_0x3f2081(_0x9cd795._0x23cbcc,0x41,_0x9cd795._0x53c87e,0xa3)]:[],_0x4757a9=_0x79204b[_0x3f2081(-_0x9cd795._0x51a0c5,-_0x9cd795._0x49fb65,-0x83,-_0x9cd795._0x5c8333)](_0x2d16a4=>{if(!isObject(_0x2d16a4))return'';if(_0x2d16a4[_0x197e33(0x218,0x24d,0x285,_0x217351._0x581afd)]===_0x197e33(_0x217351._0x2913e3,_0x217351._0x3338b2,0x3d0,_0x217351._0x2c895a)&&typeof _0x2d16a4['text']===_0x197e33(_0x217351._0x179900,_0x217351._0x104ab2,0x23b,0x36c))return _0x2d16a4['text'];function _0x197e33(_0x1482c6,_0x5d80d7,_0xf25570,_0x14c6d8){return _0x3f2081(_0x1482c6-_0x1e5a7d._0x408e5d,_0x14c6d8-_0x1e5a7d._0x38cd31,_0xf25570-0x1e5,_0x5d80d7);}function _0x47484b(_0x51ef3f,_0x549a84,_0x241889,_0x3baeea){return _0x5ca976(_0x51ef3f-_0x2b83b2._0x274e7a,_0x3baeea-0x6e,_0x241889,_0x3baeea-0x1e3);}return JSON['stringify'](_0x2d16a4);})['filter'](_0xeb75ac=>_0xeb75ac[_0x5ca976(0x651,0x592,0x578,0x598)]>0x0)[_0x3f2081(0xe5,-0x4a,-_0x9cd795._0x2ef632,-_0x9cd795._0x40b9af)]('\x0a');function _0x3f2081(_0x597573,_0x4e1fbd,_0x2b5f1c,_0x2c266f){return _0x691723(_0x4e1fbd-_0x3889db._0x49b67f,_0x2c266f,_0x2b5f1c-0x1c6,_0x2c266f-_0x3889db._0x1eca6f);}function _0x5ca976(_0x47f859,_0x84cdad,_0xfc0491,_0x160e8a){return _0x2ff7d2(_0x84cdad-0x50,_0xfc0491,_0xfc0491-_0x42ebc9._0x2ff1c1,_0x160e8a-_0x42ebc9._0x12867b);}if(_0x4757a9[_0x3f2081(0xfa,-0x45,-_0x9cd795._0x552978,-_0x9cd795._0x477da2)]>0x0)return _0x4757a9;return JSON[_0x3f2081(_0x9cd795._0xbf7f62,0xf8,_0x9cd795._0x382b62,_0x9cd795._0x47371a)](_0x305512,null,0x2);}function createMcpTool(_0x20ebef){const _0x1ca827={_0x1c743d:0x44e,_0x30506e:0x50c,_0x450ae2:0x48d,_0x5a9b13:0x27c,_0x2d506f:0x2dd,_0xf6878:0x191,_0x5d43a2:0x472,_0x4e6947:0x5c2,_0x2516ca:0x569,_0x60abc5:0x5e9,_0x5a0158:0x4f6,_0x262232:0x469,_0x416307:0x361,_0x59225f:0x452,_0x58a018:0x295,_0xaf758a:0x219,_0x1cbb0e:0x4d3,_0x39dc67:0x38b,_0x36fe6e:0x505,_0x15af5c:0x4c5,_0x5b8fc9:0x53c,_0xcb788f:0x44e,_0x183cfa:0x423,_0x423679:0x440,_0x34f705:0x692},_0x164d83={_0x314cd0:0x249,_0xc1091b:0x25a,_0x125a13:0x290,_0x175116:0x17b,_0x2f98cf:0x213,_0x401fa7:0x1a,_0x45695c:0x104,_0x46b996:0xba,_0x29c36b:0xdd,_0x52d3c7:0x1c,_0x472d4a:0x35},_0xae1592={_0x288891:0x28c},_0x1662eb={_0x31de84:0x673,_0x101787:0x25},_0x189bf7={_0x5b43fa:0x17a,_0x2cef71:0x76};function _0x3f6408(_0x245ce3,_0x32a413,_0x2797cc,_0x41483a){return _0x691723(_0x2797cc-0x4de,_0x245ce3,_0x2797cc-_0x189bf7._0x5b43fa,_0x41483a-_0x189bf7._0x2cef71);}function _0x140c54(_0x35a643,_0x310be8,_0x4c0a5b,_0x2dcde6){return _0x691723(_0x310be8-_0x1662eb._0x31de84,_0x2dcde6,_0x4c0a5b-_0x1662eb._0x101787,_0x2dcde6-0xcd);}const _0x5d4752=createMcpToolName(_0x20ebef[_0x140c54(0x38e,_0x1ca827._0x1c743d,_0x1ca827._0x30506e,_0x1ca827._0x450ae2)],_0x20ebef[_0x3f6408(0x3bc,_0x1ca827._0x5a9b13,_0x1ca827._0x2d506f,_0x1ca827._0xf6878)]['name']);return defineTool({'name':_0x5d4752,'description':_0x20ebef[_0x140c54(0x365,_0x1ca827._0x5d43a2,_0x1ca827._0x4e6947,_0x1ca827._0x2516ca)][_0x140c54(_0x1ca827._0x60abc5,_0x1ca827._0x5a0158,0x3b2,_0x1ca827._0x262232)]??_0x3f6408(_0x1ca827._0x416307,0x451,_0x1ca827._0x59225f,0x440)+_0x20ebef[_0x3f6408(0x26a,_0x1ca827._0x58a018,_0x1ca827._0x2d506f,_0x1ca827._0xaf758a)][_0x140c54(0x508,_0x1ca827._0x1cbb0e,_0x1ca827._0x39dc67,_0x1ca827._0x36fe6e)]+_0x140c54(0x3a9,0x483,0x512,_0x1ca827._0x15af5c)+_0x20ebef[_0x140c54(_0x1ca827._0x5b8fc9,_0x1ca827._0xcb788f,0x33d,0x49c)],'inputSchema':toNuvinToolSchema(_0x20ebef[_0x140c54(_0x1ca827._0x183cfa,0x472,_0x1ca827._0x423679,0x439)][_0x140c54(0x7df,_0x1ca827._0x34f705,0x708,0x5fb)]),async *'execute'(_0x5450d6){const _0x1ff9c6={_0x578a6a:0x1db};function _0x3478e3(_0xd3ed71,_0x16c598,_0x62b8a6,_0x44988c){return _0x3f6408(_0x16c598,_0x16c598-_0x1ff9c6._0x578a6a,_0x44988c- -0x284,_0x44988c-0x19e);}const _0x2bbb19=await _0x20ebef[_0x2deb14(_0x164d83._0x314cd0,0x224,_0x164d83._0xc1091b,_0x164d83._0x125a13)][_0x3478e3(_0x164d83._0x175116,0x3cd,_0x164d83._0x2f98cf,0x27d)]({'name':_0x20ebef['tool'][_0x3478e3(_0x164d83._0x401fa7,_0x164d83._0x45695c,0x181,_0x164d83._0x46b996)],'arguments':isJsonObject(_0x5450d6)?_0x5450d6:{}});if(_0x2bbb19['isError'])throw new ToolExecutionError(formatMcpContent(_0x2bbb19),{'serverName':_0x20ebef[_0x3478e3(0x159,-0x7c,_0x164d83._0x29c36b,0x35)],'toolName':_0x20ebef['tool'][_0x3478e3(0x17d,-_0x164d83._0x52d3c7,0x140,_0x164d83._0x46b996)]});yield createToolOutput(formatMcpContent(_0x2bbb19),{'serverName':_0x20ebef[_0x3478e3(0x65,0x126,0x86,_0x164d83._0x472d4a)],'toolName':_0x20ebef[_0x2deb14(0x1e6,0xdf,0x220,0x219)][_0x3478e3(-0x57,0x1c2,0x148,0xba)],'result':_0x2bbb19});function _0x2deb14(_0x1b8b89,_0x1af536,_0x2092f2,_0xcbdbea){return _0x140c54(_0x1b8b89-0x3e,_0x1b8b89- -_0xae1592._0x288891,_0x2092f2-0x3b,_0x1af536);}return void 0x0;}});}function _0x47bf(_0x5deaaf,_0x1b1be1){_0x5deaaf=_0x5deaaf-0x135;const _0x22078e=_0x2207();let _0x47bf31=_0x22078e[_0x5deaaf];if(_0x47bf['NjFFdo']===undefined){var _0x1738fe=function(_0x4dc8e8){const _0x38701b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e5c83='',_0x21602e='';for(let _0x386c3f=0x0,_0x264ae7,_0x431495,_0x26b497=0x0;_0x431495=_0x4dc8e8['charAt'](_0x26b497++);~_0x431495&&(_0x264ae7=_0x386c3f%0x4?_0x264ae7*0x40+_0x431495:_0x431495,_0x386c3f++%0x4)?_0x5e5c83+=String['fromCharCode'](0xff&_0x264ae7>>(-0x2*_0x386c3f&0x6)):0x0){_0x431495=_0x38701b['indexOf'](_0x431495);}for(let _0x28e1e2=0x0,_0x110602=_0x5e5c83['length'];_0x28e1e2<_0x110602;_0x28e1e2++){_0x21602e+='%'+('00'+_0x5e5c83['charCodeAt'](_0x28e1e2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21602e);};_0x47bf['YCuoVN']=_0x1738fe,_0x47bf['ocfZTC']={},_0x47bf['NjFFdo']=!![];}const _0x6fc732=_0x22078e[0x0],_0x11a79e=_0x5deaaf+_0x6fc732,_0x45c724=_0x47bf['ocfZTC'][_0x11a79e];return!_0x45c724?(_0x47bf31=_0x47bf['YCuoVN'](_0x47bf31),_0x47bf['ocfZTC'][_0x11a79e]=_0x47bf31):_0x47bf31=_0x45c724,_0x47bf31;}function resolvePrefix(_0x273159,_0x472eca){const _0x2d8979={_0x41132c:0x1b5,_0x3668ac:0x131,_0x18ea6f:0x147},_0x9794fd={_0x53c91a:0xa3};function _0x40ec6a(_0x4d9492,_0x1b5d9b,_0x487fd0,_0x12e714){return _0x2ff7d2(_0x1b5d9b- -0x6b6,_0x12e714,_0x487fd0-_0x9794fd._0x53c91a,_0x12e714-0x8f);}return _0x472eca[_0x40ec6a(-_0x2d8979._0x41132c,-_0x2d8979._0x3668ac,-_0x2d8979._0x18ea6f,-0x9e)]??_0x273159;}function buildMcpHttpHeaders(_0x51c483){const _0x244964={_0x287d33:0x289,_0x2cd15b:0x312,_0x350dce:0x3ce,_0x1032d3:0x27d,_0x266f57:0x329,_0x5eea5e:0x2c2,_0x553f4f:0x347,_0x108c91:0xb5,_0x30c40e:0x7c,_0x2908f1:0x1b3,_0xa5e6e4:0x21,_0x573f6c:0x290,_0x36cb40:0x270,_0x3c3bad:0x23a,_0xdbbe8f:0x106,_0x403627:0x1b4,_0x51f27a:0xcf,_0x4ce73d:0x109,_0x178503:0x132,_0x5d7fb6:0x1da,_0x3a66fa:0x11d,_0x36f29e:0xab,_0x467e02:0x220,_0x174c06:0x227,_0x40be5a:0x2fd,_0x1c41eb:0x314,_0xc7414b:0x263,_0x22e952:0x1d4,_0x1818ed:0x46d,_0x100323:0x5c5,_0x356053:0x53f},_0x5bf284={_0x56e39c:0xfa,_0x83951a:0xb0},_0x1da182={_0x3670cf:0x113},_0x1e6528={..._0x51c483[_0x40fa44(0x29d,_0x244964._0x287d33,_0x244964._0x2cd15b,_0x244964._0x350dce)]??{}};function _0x340df0(_0x578965,_0x380756,_0x1ef68d,_0x55b96a){return _0x691723(_0x380756- -0x15,_0x1ef68d,_0x1ef68d-_0x1da182._0x3670cf,_0x55b96a-0x10e);}_0x51c483[_0x340df0(-_0x244964._0x1032d3,-0x1e7,-0x2df,-0x2e3)]?.[_0x40fa44(_0x244964._0x266f57,0x255,_0x244964._0x5eea5e,_0x244964._0x553f4f)]===_0x340df0(_0x244964._0x108c91,-_0x244964._0x30c40e,-_0x244964._0x2908f1,-_0x244964._0xa5e6e4)&&_0x51c483[_0x340df0(-0x129,-0x1e7,-_0x244964._0x573f6c,-_0x244964._0x36cb40)][_0x40fa44(_0x244964._0x3c3bad,_0x244964._0xdbbe8f,_0x244964._0x403627,0x13a)]&&_0x1e6528[_0x340df0(-0xe8,-0x11d,-_0x244964._0x51f27a,-0x75)]===void 0x0&&(_0x1e6528[_0x340df0(-0x1e8,-0x11d,-_0x244964._0x4ce73d,-_0x244964._0x178503)]=_0x40fa44(_0x244964._0x5d7fb6,_0x244964._0x3a66fa,_0x244964._0x36f29e,_0x244964._0x467e02)+_0x51c483[_0x40fa44(_0x244964._0x174c06,_0x244964._0x40be5a,0x16d,_0x244964._0x1c41eb)][_0x340df0(-_0x244964._0xc7414b,-_0x244964._0x22e952,-0x1d0,-0x284)]);function _0x40fa44(_0x3d7d00,_0x8f7d2,_0x5aacf1,_0x1440b5){return _0x691723(_0x3d7d00-0x3f9,_0x5aacf1,_0x5aacf1-_0x5bf284._0x56e39c,_0x1440b5-_0x5bf284._0x83951a);}return Object[_0x40fa44(_0x244964._0x1818ed,_0x244964._0x100323,0x52c,_0x244964._0x356053)](_0x1e6528)['length']>0x0?_0x1e6528:void 0x0;}function getErrorMessage(_0x146944){const _0x50f53e={_0x3b6755:0x336,_0x35483e:0x32c};function _0x36b926(_0x5c2343,_0x4ff0c0,_0x4ca7c3,_0x4421b0){return _0x2ff7d2(_0x4421b0- -0x1d7,_0x4ff0c0,_0x4ca7c3-0x125,_0x4421b0-0x198);}return _0x146944 instanceof Error?_0x146944[_0x36b926(_0x50f53e._0x3b6755,0x440,0x33b,_0x50f53e._0x35483e)]:String(_0x146944);}function isUnauthorizedError(_0x5ddee5){const _0x450ff2={_0x380300:0x7e6,_0x93761b:0x85c,_0x425a1c:0x675,_0x26cba4:0x61c,_0x12a8c9:0x76e},_0x425c81={_0xbf8593:0xce,_0x4c3c61:0x196,_0x4d4165:0x146},_0xda04a6={_0x45d111:0x527,_0x5405a9:0x182,_0x29255d:0x2a};function _0x2ba2b4(_0x4d514f,_0x17b844,_0x1b9a98,_0x1ff750){return _0x691723(_0x4d514f-_0xda04a6._0x45d111,_0x1ff750,_0x1b9a98-_0xda04a6._0x5405a9,_0x1ff750-_0xda04a6._0x29255d);}function _0x518f3c(_0xbdb1fb,_0x2f59af,_0x5275fb,_0x38dcaf){return _0x2ff7d2(_0xbdb1fb-_0x425c81._0xbf8593,_0x38dcaf,_0x5275fb-_0x425c81._0x4c3c61,_0x38dcaf-_0x425c81._0x4d4165);}return _0x5ddee5 instanceof Error&&_0x5ddee5[_0x518f3c(0x749,_0x450ff2._0x380300,_0x450ff2._0x93761b,0x613)]['name']===_0x518f3c(_0x450ff2._0x425a1c,0x6a5,_0x450ff2._0x26cba4,_0x450ff2._0x12a8c9);}async function connectMcpServer(_0x54ce50,_0x247b6c,_0x24c056){const _0x8ce2d8={_0x361510:0x45e,_0x2db2b5:0x47b,_0x5e6455:0x35c,_0x5f7522:0x565,_0x2765d7:0x3b3,_0x23b1fb:0x11c,_0x46209c:0x3cf,_0x2abce4:0x276,_0x2413c5:0x53b,_0x28f83f:0x602,_0x312f7e:0x589,_0x3f0208:0xa,_0x1e1a7e:0x11a,_0x443479:0x27c,_0x1f0ecf:0x13c,_0x23df3e:0x456,_0x5dff91:0x42b,_0x14dc7b:0x48b,_0x48898:0x4da,_0x4b48f8:0x4bd,_0x55635b:0x51c,_0x45c4b8:0x6ab,_0x288262:0x688,_0x51d7c6:0x23f,_0x458045:0x18c,_0x2e25fa:0x2b3,_0x8b7455:0x2ae,_0x52606f:0x213,_0x46b19c:0x18c,_0x3ed912:0x2c8,_0xae9b2f:0x400,_0x1d4375:0x1a1,_0x15230c:0x10e,_0xe06a2b:0x418,_0x1adbb2:0x28c,_0x34b6aa:0x42b,_0x303d87:0x33b,_0x1eaa94:0x592,_0x518737:0x5c6,_0x19ee99:0xb0,_0xebe6d0:0x5ea,_0x599d0e:0x4ab,_0x537bc7:0x351,_0x1c69b4:0x2a1,_0x3118cd:0x35a,_0x57c807:0x1b2,_0xdcc3d6:0x521,_0x34f8cf:0x600,_0x1d63c9:0x638,_0xa6eec7:0x548},_0x59790c={_0x476d57:0x471,_0x3de828:0x506,_0xdb3a89:0x45f,_0x4e5c0c:0x15,_0x51a1bb:0xe6},_0x109544={_0x3c5e60:0x1ec},_0x2a282f={_0x41a8b4:0x1dd,_0x151b5b:0x1ac,_0xb80794:0x2f5},_0x491962={_0x3625d4:0x31d,_0x2cb387:0x27a,_0x1b44db:0x81,_0x109d9d:0x1b8,_0x31282c:0x60,_0x2b4440:0xc5},_0x46464e={_0x14e5f1:0x18c,_0x50e2d4:0xbd,_0x3e7e3d:0x129},_0xca986={_0x557647:0x6a},_0x238a3f={_0x4159d7:0x137},_0x44a857=new Client({'name':_0x57708f(_0x8ce2d8._0x361510,0x45a,0x42b,0x57f),'version':_0x57708f(0x2d5,0x3f2,0x3c7,0x2bb)});function _0x57708f(_0x51d084,_0x23586f,_0x18bd53,_0x56d0d0){return _0x2ff7d2(_0x23586f- -0x50,_0x51d084,_0x18bd53-_0x238a3f._0x4159d7,_0x56d0d0-0x81);}function _0x993682(_0x5db9b1,_0x2ee687,_0x119607,_0x546100){return _0x691723(_0x546100-0x338,_0x119607,_0x119607-_0xca986._0x557647,_0x546100-0x4b);}_0x44a857[_0x57708f(0x334,_0x8ce2d8._0x2db2b5,_0x8ce2d8._0x5e6455,_0x8ce2d8._0x5f7522)]=_0x15257c=>{const _0x2d5991={_0x16bdd8:0x1c7,_0x189481:0x25e};function _0xaaf6d5(_0x1716fa,_0x2a73ab,_0x32c582,_0x5cba2b){return _0x993682(_0x1716fa-0x66,_0x2a73ab-_0x2d5991._0x16bdd8,_0x2a73ab,_0x5cba2b- -_0x2d5991._0x189481);}function _0x21b774(_0x1e4a7,_0x2ffcfb,_0x1750f5,_0x2edc70){return _0x993682(_0x1e4a7-_0x46464e._0x14e5f1,_0x2ffcfb-_0x46464e._0x50e2d4,_0x1750f5,_0x2edc70- -_0x46464e._0x3e7e3d);}console[_0x21b774(0x213,0x111,0x10d,0x25b)]('[MCP\x20'+_0x54ce50+_0x21b774(0x1a7,0x20d,_0x491962._0x3625d4,_0x491962._0x2cb387),_0x15257c[_0x21b774(_0x491962._0x1b44db,_0x491962._0x109d9d,_0x491962._0x31282c,_0x491962._0x2b4440)]);};if(_0x247b6c[_0x993682(0x2ed,_0x8ce2d8._0x2765d7,_0x8ce2d8._0x23b1fb,0x257)]==='http'||_0x247b6c[_0x993682(_0x8ce2d8._0x46209c,0x299,0x258,_0x8ce2d8._0x2abce4)]){if(!_0x247b6c[_0x57708f(0x4a4,_0x8ce2d8._0x2413c5,_0x8ce2d8._0x28f83f,_0x8ce2d8._0x312f7e)])throw new Error(_0x993682(0x1bc,0xfa,_0x8ce2d8._0x3f0208,_0x8ce2d8._0x1e1a7e)+_0x54ce50+_0x993682(0x116,_0x8ce2d8._0x443479,_0x8ce2d8._0x1f0ecf,0x1ef));if(_0x247b6c[_0x57708f(_0x8ce2d8._0x23df3e,_0x8ce2d8._0x5dff91,0x545,_0x8ce2d8._0x14dc7b)]?.['type']==='oauth'&&!_0x24c056?.['oauth'])throw new Error(_0x57708f(_0x8ce2d8._0x48898,0x3df,_0x8ce2d8._0x4b48f8,_0x8ce2d8._0x55635b)+_0x54ce50+_0x57708f(_0x8ce2d8._0x45c4b8,0x5fd,_0x8ce2d8._0x288262,0x71c));const _0x2861f5=buildMcpHttpHeaders(_0x247b6c),_0xfe4150=_0x247b6c[_0x993682(0x28c,0x1f3,0x224,0x166)]?.['type']===_0x993682(0x1b8,_0x8ce2d8._0x51d7c6,0x9d,_0x8ce2d8._0x458045)&&_0x24c056?.[_0x57708f(0x5af,0x451,0x4d5,0x366)]?createMcpOAuthProvider({'serverName':_0x54ce50,'callbackUrl':_0x24c056['oauth'][_0x993682(0x1ca,_0x8ce2d8._0x2e25fa,_0x8ce2d8._0x8b7455,0x21f)],'storageDir':_0x24c056[_0x993682(0x289,0x16f,_0x8ce2d8._0x52606f,_0x8ce2d8._0x46b19c)][_0x57708f(_0x8ce2d8._0x3ed912,_0x8ce2d8._0xae9b2f,0x2aa,0x4e5)],'config':_0x247b6c[_0x993682(_0x8ce2d8._0x1d4375,0x204,_0x8ce2d8._0x15230c,0x166)],'onRedirect':_0x5e9cd6=>_0x24c056[_0x57708f(0x3c4,0x451,0x538,0x406)]?.[_0x57708f(0x53e,0x58d,0x4b8,0x5fb)](_0x54ce50,_0x5e9cd6)}):void 0x0,_0x28dac4=new StreamableHTTPClientTransport(new URL(_0x247b6c['url']),{'authProvider':_0xfe4150,'requestInit':_0x2861f5?{'headers':_0x2861f5}:void 0x0});await _0x44a857[_0x993682(_0x8ce2d8._0xe06a2b,_0x8ce2d8._0x1adbb2,_0x8ce2d8._0x34b6aa,_0x8ce2d8._0x303d87)](_0x28dac4);}else{if(!_0x247b6c[_0x57708f(_0x8ce2d8._0x1eaa94,0x5ca,_0x8ce2d8._0x518737,0x51c)])throw new Error(_0x993682(0x21a,_0x8ce2d8._0x19ee99,0x1fb,0x11a)+_0x54ce50+_0x57708f(0x4e3,_0x8ce2d8._0xebe6d0,0x648,0x4e6));const _0x15db40=new StdioClientTransport({'command':_0x247b6c['command'],'args':_0x247b6c['args']??[],'env':_0x247b6c[_0x57708f(0x59d,_0x8ce2d8._0x599d0e,0x4d0,_0x8ce2d8._0x537bc7)],'stderr':_0x993682(_0x8ce2d8._0x1c69b4,_0x8ce2d8._0x3118cd,_0x8ce2d8._0x57c807,0x265)});await _0x44a857[_0x57708f(_0x8ce2d8._0xdcc3d6,_0x8ce2d8._0x34f8cf,_0x8ce2d8._0x1d63c9,_0x8ce2d8._0xa6eec7)](_0x15db40);}return{async 'listTools'(){function _0x4ea436(_0x2ffd9c,_0x1c6edb,_0x5f4b32,_0x489e30){return _0x993682(_0x2ffd9c-_0x2a282f._0x41a8b4,_0x1c6edb-_0x2a282f._0x151b5b,_0x1c6edb,_0x5f4b32- -_0x2a282f._0xb80794);}return await _0x44a857[_0x4ea436(-0x152,-0x1cb,-0x1f3,-0x22d)]();},async 'callTool'(_0x542eac){function _0x1b4760(_0x3a91d3,_0x1547d9,_0x2e721c,_0x23d75e){return _0x993682(_0x3a91d3-0xd5,_0x1547d9-0x168,_0x3a91d3,_0x23d75e-_0x109544._0x3c5e60);}function _0x2e6c5c(_0x4a5c60,_0x368d27,_0x19e323,_0x2bce3a){return _0x57708f(_0x4a5c60,_0x368d27- -0x5d2,_0x19e323-0x187,_0x2bce3a-0x1da);}return await _0x44a857[_0x1b4760(_0x59790c._0x476d57,_0x59790c._0x3de828,_0x59790c._0xdb3a89,0x52e)]({'method':_0x2e6c5c(-0x68,_0x59790c._0x4e5c0c,_0x59790c._0x51a1bb,0x4),'params':_0x542eac},CallToolResultSchema);},async 'close'(){await _0x44a857['close']();}};}async function createMcpToolsFromServers(_0x54aa84){const _0x247535={_0x5795ae:0x3b7,_0x533d4b:0x424,_0x259d46:0x3c2,_0x45e7ab:0x2f6,_0x3f019a:0xe7,_0x33c5b0:0x1ea,_0xf44de6:0x297,_0xde1d2c:0x269,_0x38ea4b:0x207,_0xfb7df0:0x428,_0x4c7a02:0x20a,_0x75137b:0x432,_0x11addf:0x347,_0x217de6:0x215,_0x16221c:0x1eb,_0x37c27c:0x1fc,_0x273a69:0x2dc,_0x11f443:0x205,_0x17b1c0:0x346,_0x53bee5:0x2ef,_0x5b7166:0x21a,_0xc81b3b:0x1e7,_0x21e9ec:0x273,_0x5e701a:0x215,_0x261345:0x206,_0x45ebb1:0x2db,_0x18d29e:0x239,_0x3967be:0x388},_0xaf77f3={_0x1d882e:0x50e,_0x23b7dd:0x52b,_0x11deb5:0x520,_0x2b5a0a:0x4eb,_0x44be5a:0x570,_0x23b0f8:0x506,_0x5dd938:0x681},_0x5161b2={_0x4aa735:0xf5,_0x1a9ee0:0x3f2,_0x3a22ca:0x138},_0x5d31c1={_0x5f2341:0x69},_0x50bdb2={_0x3a2c7b:0x1c,_0x216160:0x1e},_0xb5a445=_0x54aa84[_0x20b859(_0x247535._0x5795ae,_0x247535._0x533d4b,_0x247535._0x259d46,0x32c)]??connectMcpServer,_0x500ca7=[],_0x55db22={},_0x348527=[];for(const [_0x2cb66f,_0x26c5e4]of Object['entries'](_0x54aa84['servers']??{})){if(_0x26c5e4[_0x20b859(_0x247535._0x45e7ab,0x20f,_0x247535._0x3f019a,_0x247535._0x33c5b0)]===![]){_0x55db22[_0x2cb66f]={'status':_0x20b859(_0x247535._0xf44de6,0x3bd,0x31b,0x3a8)};continue;}try{const _0x4858b2=await _0xb5a445(_0x2cb66f,_0x26c5e4,_0x54aa84[_0x488561(_0x247535._0xde1d2c,_0x247535._0x38ea4b,0x362,_0x247535._0xfb7df0)]);_0x500ca7[_0x488561(_0x247535._0x4c7a02,_0x247535._0x75137b,_0x247535._0x11addf,_0x247535._0x217de6)](_0x4858b2);const _0x3a97e4=await _0x4858b2[_0x20b859(0x11a,_0x247535._0x16221c,0x203,_0x247535._0x37c27c)]();let _0x5e6b4d=0x0;for(const _0x4e5aed of _0x3a97e4[_0x20b859(_0x247535._0xde1d2c,_0x247535._0x273a69,0x199,_0x247535._0x11f443)]){const _0x141e0e=_0x54aa84[_0x20b859(_0x247535._0x17b1c0,_0x247535._0x53bee5,0x1f9,_0x247535._0x5b7166)]?.[_0x2cb66f]?.[_0x4e5aed[_0x20b859(0x28c,0x281,0x308,_0x247535._0xc81b3b)]];if(_0x141e0e===![])continue;_0x5e6b4d+=0x1,_0x348527[_0x20b859(0x307,_0x247535._0x21e9ec,_0x247535._0x5e701a,0x26e)](createMcpTool({'serverName':resolvePrefix(_0x2cb66f,_0x26c5e4),'tool':_0x4e5aed,'client':_0x4858b2}));}_0x55db22[_0x2cb66f]={'status':_0x20b859(_0x247535._0x261345,0x302,0x3a8,_0x247535._0x45ebb1),'toolCount':_0x5e6b4d};}catch(_0x3e3806){_0x55db22[_0x2cb66f]=isUnauthorizedError(_0x3e3806)?{'status':_0x20b859(0x11f,_0x247535._0x18d29e,0x222,_0x247535._0x3967be),'message':getErrorMessage(_0x3e3806)}:{'status':_0x20b859(0x37a,0x46d,0x5a5,0x506),'message':getErrorMessage(_0x3e3806)};}}function _0x20b859(_0x232fbb,_0x1bc1b2,_0x173552,_0x119899){return _0x691723(_0x1bc1b2-0x421,_0x119899,_0x173552-_0x50bdb2._0x3a2c7b,_0x119899-_0x50bdb2._0x216160);}function _0x488561(_0x4c1ef0,_0x4201e8,_0x5ae401,_0x28c153){return _0x691723(_0x5ae401-0x4f5,_0x4201e8,_0x5ae401-0x119,_0x28c153-0x54);}return{'tools':_0x348527,'servers':_0x55db22,async 'close'(){function _0x55131b(_0x40a4f8,_0x5286c5,_0x4188e7,_0x49b8c6){return _0x20b859(_0x40a4f8-_0x5d31c1._0x5f2341,_0x5286c5-0x2d4,_0x4188e7-0x1cf,_0x4188e7);}function _0x36f769(_0x59deaf,_0x43d006,_0x4d815e,_0x40025c){return _0x488561(_0x59deaf-_0x5161b2._0x4aa735,_0x40025c,_0x59deaf- -_0x5161b2._0x1a9ee0,_0x40025c-_0x5161b2._0x3a22ca);}await Promise[_0x55131b(_0xaf77f3._0x1d882e,_0xaf77f3._0x23b7dd,_0xaf77f3._0x11deb5,0x63a)](_0x500ca7[_0x55131b(_0xaf77f3._0x2b5a0a,_0xaf77f3._0x44be5a,_0xaf77f3._0x23b0f8,_0xaf77f3._0x5dd938)](_0xf2b32b=>_0xf2b32b[_0x55131b(0x7ef,0x728,0x6a7,0x72c)]()));}};}function getCommand(_0x4b451d){const _0x3d91b5={_0x309e64:0xcb,_0x31a550:0x155,_0xdb4538:0x2e,_0x4bac5b:0xa8,_0x9c55a0:0xb0,_0xb3c2fa:0xbf,_0x16f84d:0x72,_0x49ad99:0x6f,_0x1d9152:0x12c},_0x586561={_0x571824:0x602},_0x472ad2={_0x380995:0x3d,_0x15df9a:0xe1};function _0x12702b(_0x5ea200,_0x231cbd,_0x22a60a,_0x5ab936){return _0x2ff7d2(_0x5ab936- -0x642,_0x231cbd,_0x22a60a-_0x472ad2._0x380995,_0x5ab936-_0x472ad2._0x15df9a);}function _0x35ddca(_0x4066cf,_0x1d9ddd,_0x4eadd5,_0x12fc0a){return _0x2ff7d2(_0x1d9ddd- -_0x586561._0x571824,_0x4eadd5,_0x4eadd5-0x3b,_0x12fc0a-0x1bc);}if(_0x4b451d&&typeof _0x4b451d===_0x12702b(0x6f,-_0x3d91b5._0x309e64,-_0x3d91b5._0x31a550,-_0x3d91b5._0xdb4538)&&!Array['isArray'](_0x4b451d)&&typeof _0x4b451d[_0x35ddca(-0xea,0x18,-_0x3d91b5._0x4bac5b,-0xdf)]===_0x12702b(_0x3d91b5._0x9c55a0,-_0x3d91b5._0xb3c2fa,-0x7c,-_0x3d91b5._0x16f84d))return _0x4b451d['command'];return _0x35ddca(0x96,0xa9,_0x3d91b5._0x49ad99,_0x3d91b5._0x1d9152);}var MOCK_WORKSPACE_LISTING=[_0x691723(-0x93,-0x27,-0x181,-0x16f),_0x2ff7d2(0x56d,0x5df,0x662,0x5bb),'docs/plans/2026-04-16-public-tools-api-implementation.md',_0x2ff7d2(0x640,0x56d,0x68a,0x55e),_0x691723(-0x1f,-0xe2,-0x12e,0x3f),_0x691723(-0x16a,-0xb,-0x16c,-0x2a1),_0x2ff7d2(0x638,0x5e7,0x747,0x5f0),_0x691723(-0x78,0x39,-0x151,-0x101),_0x691723(-0x1c6,-0x276,-0x24e,-0x6c),'src/tools/mock-tool-runtime.ts',_0x2ff7d2(0x409,0x2d9,0x3ff,0x3e1),_0x2ff7d2(0x57e,0x653,0x5d3,0x6ad),_0x691723(-0x210,-0xf8,-0x104,-0x11d),_0x691723(-0x21d,-0x307,-0x1a0,-0x23b),_0x691723(0x15,0xcf,0xb3,0x56),'src/formats/provider-adapters.test.ts','src/agent/turn-engine.test.ts'][_0x2ff7d2(0x53d,0x609,0x56b,0x400)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x691723(-0x150,0x1,-0x242,-0x1c5),'description':_0x2ff7d2(0x470,0x3f5,0x42a,0x47e),'input_schema':{'type':'object','properties':{'command':{'type':'string'}},'required':[_0x2ff7d2(0x61a,0x6e2,0x768,0x5ac)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0xf54761){return{'output':_0xf54761,'structured':{'value':_0xf54761}};}function createUnknownToolResult(_0x5d9e65){const _0x91307a={_0x2d630f:0x19f,_0x58c2bb:0x266,_0x55173f:0x4db},_0x4b20cb={_0x3ba77a:0x90},_0x4867cf={_0x3885b3:0x588,_0x537be1:0x3b,_0x3960e3:0x9b};function _0x1ed146(_0x1703e5,_0x3212b9,_0x270cfe,_0x44cb94){return _0x691723(_0x44cb94-_0x4867cf._0x3885b3,_0x270cfe,_0x270cfe-_0x4867cf._0x537be1,_0x44cb94-_0x4867cf._0x3960e3);}function _0x49efbe(_0x4f6ed3,_0x324113,_0x57dd67,_0xd343dc){return _0x691723(_0xd343dc-0x406,_0x4f6ed3,_0x57dd67-0x34,_0xd343dc-_0x4b20cb._0x3ba77a);}return{'callId':_0x5d9e65['id'],'toolName':_0x5d9e65[_0x49efbe(0x122,0x39e,_0x91307a._0x2d630f,_0x91307a._0x58c2bb)],'status':'error','output':_0x1ed146(0x427,0x46b,_0x91307a._0x55173f,0x577)+_0x5d9e65['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x1bf79c,_0x42ac62){const _0x31d0d9={_0x5e7fb7:0x288,_0x46f2e4:0x324,_0x12ab73:0x39f},_0x4635ef={_0x160aeb:0x20d,_0x190087:0x91},_0x4fc124={_0x25abe4:0x1f0,_0x8b909:0xed};function _0xfa6f6c(_0x47252e,_0x423223,_0x3cdd71,_0x270db6){return _0x2ff7d2(_0x3cdd71- -0x292,_0x423223,_0x3cdd71-_0x4fc124._0x25abe4,_0x270db6-_0x4fc124._0x8b909);}function _0x2f9c3c(_0x41da36,_0x4746e5,_0x59121f,_0x50977c){return _0x2ff7d2(_0x41da36- -_0x4635ef._0x160aeb,_0x4746e5,_0x59121f-0x1d7,_0x50977c-_0x4635ef._0x190087);}return{'callId':_0x1bf79c['id'],'toolName':_0x1bf79c[_0xfa6f6c(0x32d,0x161,0x21b,0x1d3)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x1bf79c[_0x2f9c3c(0x3da,_0x31d0d9._0x5e7fb7,_0x31d0d9._0x46f2e4,_0x31d0d9._0x12ab73)]),'exitCode':0x0},'chunks':[_0x42ac62],'meta':createMeta()};}function createMockToolRuntime(){const _0x127e28={_0x112c5b:0x671,_0x10d427:0x5e9},_0x246c9e={_0xbdf5b7:0x3a7},_0x8f7210={_0x41ab04:0x20e,_0x1efc80:0x1aa,_0x3913fd:0x104},_0x83964d={_0x576ad4:0x125},_0x4f791a=async(_0x179569,_0x4d82d5)=>{function _0x2bba0d(_0x2bfeb1,_0x7b8e10,_0x19f3cf,_0x295775){return _0x47bf(_0x295775- -_0x83964d._0x576ad4,_0x7b8e10);}if(_0x179569['name']!==_0x2bba0d(_0x8f7210._0x41ab04,_0x8f7210._0x1efc80,0xe2,_0x8f7210._0x3913fd))return createUnknownToolResult(_0x179569);const _0x35a955=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x179569,_0x35a955);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x3f1e68,_0x5e60c4){function _0x4f7402(_0x84bb54,_0x838e82,_0x1ec75a,_0x515327){return _0x47bf(_0x838e82-_0x246c9e._0xbdf5b7,_0x1ec75a);}return await Promise['all'](_0x3f1e68[_0x4f7402(_0x127e28._0x112c5b,0x59b,_0x127e28._0x10d427,0x49c)](async _0x1d1a8d=>{return await _0x4f791a(_0x1d1a8d,_0x5e60c4);}));},async 'execute'(_0x22421a,_0x207c9b){return await _0x4f791a(_0x22421a,_0x207c9b);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x3268e1,_0x3cb887){const _0x486f4d={_0x3ec718:0x134,_0x466441:0xa6,_0x38f81a:0xa7},_0xec92e6={_0x23464a:0x3fc};function _0xf91490(_0x43f98e,_0x4be5e7,_0x2c2c03,_0x4cbc40){return _0x2ff7d2(_0x4cbc40- -_0xec92e6._0x23464a,_0x4be5e7,_0x2c2c03-0xf2,_0x4cbc40-0x11d);}return typeof _0x3268e1===_0xf91490(_0x486f4d._0x3ec718,_0x486f4d._0x466441,-0xad,_0x486f4d._0x38f81a)?await _0x3268e1(_0x3cb887):_0x3268e1;}function _0x2ff7d2(_0x5367db,_0x507d60,_0xaaeef2,_0x441616){return _0x47bf(_0x5367db-0x2d4,_0x507d60);}function getDelegatedAgentDefinition(_0x4c6f51,_0x104898){const _0x583b47={_0x444729:0x59f,_0x3407ab:0x6b4,_0x188c80:0x721},_0x2246af={_0x27f14d:0x45,_0x7105af:0x1e1};function _0x59473a(_0x5d9cea,_0x28b9e6,_0x18d767,_0x401050){return _0x2ff7d2(_0x28b9e6-_0x2246af._0x27f14d,_0x5d9cea,_0x18d767-_0x2246af._0x7105af,_0x401050-0xaa);}return _0x4c6f51[_0x59473a(_0x583b47._0x444729,_0x583b47._0x3407ab,0x7e9,_0x583b47._0x188c80)]?.[_0x104898];}function createRunSummary(_0xc48220){const _0x4ad271={_0x1935ca:0x5c3,_0x39f7d7:0x5b8,_0x3a2c28:0x622,_0x59809a:0x75b,_0x256297:0x5d5,_0xe5e650:0x82,_0x3104a9:0x76,_0x2ec009:0xad,_0xd11bc3:0x64c,_0x3e33aa:0x606,_0x40d8ab:0x567,_0x474ca6:0x3fc,_0x4b7b2a:0x490,_0x54dbf7:0x2d6,_0xbc3bb8:0x49,_0x304fba:0x124,_0x4f572c:0x224,_0x3b58e2:0x332,_0x59148a:0x618,_0x3dd8e5:0x3e6,_0x2acd57:0x332,_0x230b3a:0x300,_0x53d3da:0x32a},_0x24476e={_0x4399e7:0x2e5,_0xfa8fb5:0x146},_0x21c7e9={_0xd2ff3:0x6c,_0x525fc5:0x135,_0x1dd267:0x187};function _0x3fc680(_0x583135,_0x3513ae,_0x44ebc2,_0x21702){return _0x2ff7d2(_0x44ebc2- -_0x21c7e9._0xd2ff3,_0x583135,_0x44ebc2-_0x21c7e9._0x525fc5,_0x21702-_0x21c7e9._0x1dd267);}function _0x1878dc(_0x398500,_0x247aac,_0x42f364,_0x4e0bd8){return _0x691723(_0x4e0bd8-_0x24476e._0x4399e7,_0x247aac,_0x42f364-0x156,_0x4e0bd8-_0x24476e._0xfa8fb5);}return{'runId':_0xc48220[_0x3fc680(_0x4ad271._0x1935ca,_0x4ad271._0x39f7d7,_0x4ad271._0x3a2c28,_0x4ad271._0x59809a)],'agentId':_0xc48220[_0x3fc680(_0x4ad271._0x256297,0x5dd,0x58d,0x4af)],'sessionId':_0xc48220[_0x1878dc(_0x4ad271._0xe5e650,_0x4ad271._0x3104a9,0xe9,_0x4ad271._0x2ec009)],'status':_0xc48220[_0x3fc680(0x4cd,0x3e4,0x3f8,0x4df)],'parentSessionId':_0xc48220[_0x3fc680(_0x4ad271._0xd11bc3,_0x4ad271._0xd11bc3,_0x4ad271._0x3e33aa,_0x4ad271._0x40d8ab)],..._0xc48220['originToolCallId']!==void 0x0?{'originToolCallId':_0xc48220[_0x3fc680(_0x4ad271._0x474ca6,0x47b,0x3b6,_0x4ad271._0x4b7b2a)]}:{},..._0xc48220[_0x3fc680(_0x4ad271._0x54dbf7,0x4f5,0x420,0x4d9)]!==void 0x0?{'errorMessage':_0xc48220[_0x1878dc(_0x4ad271._0xbc3bb8,0xea,0xb7,_0x4ad271._0x304fba)]}:{},..._0xc48220[_0x1878dc(_0x4ad271._0x4f572c,0x378,0x32c,_0x4ad271._0x3b58e2)]?.[_0x3fc680(0x4d1,0x765,0x626,_0x4ad271._0x59148a)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0xc48220[_0x1878dc(_0x4ad271._0x3dd8e5,0x22c,0x2e5,_0x4ad271._0x2acd57)][_0x1878dc(_0x4ad271._0x230b3a,0x3dc,0x34a,_0x4ad271._0x53d3da)])}:{}};}function createRunSummaryOutput(_0x38d0d5,_0x51719d){const _0x4a0d54={_0x41d36e:0x1f3,_0x457232:0x301,_0x58cc68:0x396,_0x49aab0:0x4f1},_0xe71757={_0x33c24e:0x17},_0x30b735={_0x3c2be5:0xb8,_0x104aa0:0x118},_0x2dab8c=createRunSummary(_0x38d0d5),_0x35ae75=_0x2dab8c['finalMessageText'];function _0x3bd60f(_0x37c01a,_0x2ac258,_0x3910ec,_0x384c9c){return _0x691723(_0x3910ec-0x5fc,_0x384c9c,_0x3910ec-_0x30b735._0x3c2be5,_0x384c9c-_0x30b735._0x104aa0);}function _0x1f7c97(_0x27325c,_0x2b289b,_0x5e35aa,_0x3ff24c){return _0x691723(_0x5e35aa-0x37e,_0x2b289b,_0x5e35aa-_0xe71757._0x33c24e,_0x3ff24c-0xf2);}return createToolOutput(typeof _0x35ae75===_0x1f7c97(_0x4a0d54._0x41d36e,0x355,_0x4a0d54._0x457232,0x323)&&_0x35ae75[_0x3bd60f(0x456,_0x4a0d54._0x58cc68,_0x4a0d54._0x49aab0,0x590)]>0x0?_0x35ae75:_0x51719d,_0x2dab8c);}function getRunTerminalErrorMessage(_0x1a3a01){const _0x5cbabf={_0x1f3c0b:0x276,_0x4769cb:0x4a7,_0x29c552:0x31a,_0x5b358f:0x372,_0x3ebd72:0x38a,_0x33064f:0x5e0,_0xb65498:0x49d,_0x53873e:0x46d},_0x5808ff={_0x8fd2ce:0x19},_0x33f2fa={_0x43741b:0x281,_0x23f091:0xb0},_0x64bd5b=_0x1a3a01?.[_0x3e900e(_0x5cbabf._0x1f3c0b,0x21f,0x356,0x3fc)][_0x3e900e(0x592,0x3d6,_0x5cbabf._0x4769cb,0x575)]['at'](-0x1);function _0x9b4892(_0x3be2ad,_0xeaeb07,_0x540b45,_0x42fd81){return _0x2ff7d2(_0xeaeb07- -_0x33f2fa._0x43741b,_0x540b45,_0x540b45-_0x33f2fa._0x23f091,_0x42fd81-0x1b3);}if(_0x64bd5b?.['status']==='error'&&_0x64bd5b[_0x9b4892(_0x5cbabf._0x29c552,0x3d4,0x2bd,_0x5cbabf._0x5b358f)]['trim']()[_0x3e900e(0x2ef,0x253,_0x5cbabf._0x3ebd72,0x4d9)]>0x0)return _0x64bd5b[_0x3e900e(_0x5cbabf._0x33064f,0x358,_0x5cbabf._0xb65498,_0x5cbabf._0x53873e)];function _0x3e900e(_0x2743ea,_0x5d4a22,_0x5d53fa,_0xca6ae5){return _0x691723(_0x5d53fa-0x495,_0x2743ea,_0x5d53fa-0x9b,_0xca6ae5-_0x5808ff._0x8fd2ce);}return void 0x0;}function formatAbortedRunMessage(_0x2e16fa,_0x178b75){const _0x18461c={_0x36490a:0x31c,_0x187916:0x303},_0x1c2d35={_0x2ad41a:0x108,_0x922860:0x32},_0x5e34ee={_0x50d827:0x99},_0x383e2a='Agent\x20run\x20'+_0x2e16fa+_0xfedcc2(0x64c,0x558,0x62f,0x57b);function _0x1765b9(_0x3443f7,_0x5843f7,_0x5f2d84,_0x578dae){return _0x691723(_0x3443f7-0x367,_0x5843f7,_0x5f2d84-_0x5e34ee._0x50d827,_0x578dae-0xb7);}function _0xfedcc2(_0x564b00,_0x4c9bd7,_0xc606ae,_0x5aff7d){return _0x2ff7d2(_0x5aff7d- -_0x1c2d35._0x2ad41a,_0xc606ae,_0xc606ae-0x143,_0x5aff7d-_0x1c2d35._0x922860);}if(!_0x178b75||_0x178b75[_0x1765b9(0x2fc,_0x18461c._0x36490a,_0x18461c._0x187916,0x3ac)]()['length']===0x0||_0x178b75===_0x383e2a)return _0x383e2a;return _0x383e2a+'\x20Cause:\x20'+_0x178b75;}function createAssignTaskTool(_0x5c5d68){const _0x2bdf3d={_0x105cad:0x2cd,_0x350b51:0x1e0,_0x37f6ab:0x143,_0x4fd4ea:0x393,_0xf9f1cb:0x332,_0xee71ab:0x49d,_0x3c2187:0x47b,_0xeac7ee:0x5a4,_0x3681ad:0x450,_0x37430b:0x2b,_0x526796:0xe3,_0x43f8c1:0x2,_0x3f12f9:0x20f,_0x3744b2:0x104,_0x1f6af3:0x15c,_0x20e1cc:0x4d},_0x1bd879={_0x51ee49:0x86,_0x50e864:0x1f,_0x894a37:0xce,_0x128e32:0x1a7,_0x5b2ade:0x80,_0x545f36:0x85,_0x1af918:0x60,_0x2bccd9:0x3ab,_0x13960e:0x36c,_0x3821c3:0xaf,_0x598300:0x4b,_0x14aa9e:0x47,_0x1bc9dd:0x3fe,_0x38b12b:0x5a3,_0x25084b:0x293,_0x15d33d:0x2ac,_0x46f6c6:0x3d8,_0x106260:0x3ed,_0x2968b7:0x478,_0x2bd2ff:0x4da,_0x12a1b3:0x601,_0x373634:0x4d1,_0x23a61a:0x3d8,_0x34b21a:0x37a,_0x54a884:0x460,_0x237a12:0x11a,_0xe82cb8:0x6d,_0x437d6c:0xac,_0x36f3b6:0x5f0,_0x125b32:0x4a2,_0x5463a3:0x530,_0x1fa461:0x30c,_0x12bd11:0x2ae,_0x4ae1c4:0x4a3,_0x128d67:0x516,_0x1a98c4:0x4e5,_0x3a1dbc:0x3b8,_0x3ba1ae:0x2c2,_0x3918ba:0x244,_0x50c34d:0x393,_0x583c0f:0x30d,_0x4a4369:0x339,_0x2d7eeb:0x325,_0x32038b:0x241,_0x5140d4:0x1a,_0x53b86d:0x5a,_0x42171e:0x11e,_0x57bfc6:0x58,_0x5481d2:0x19e,_0x51d1b2:0x5b8,_0xcb6b48:0x64f,_0x4c7ce4:0x28f,_0x5cf099:0x1a6,_0xb5ea40:0x3c9,_0x56a92a:0xe,_0x107d56:0xbf,_0x2f831b:0x141,_0x776e61:0x3ac,_0x47bd5c:0x30a,_0x24c45d:0x34e,_0x5ab2ff:0x530,_0x9a074b:0x65c,_0x372403:0x3ac,_0x52c9ce:0x33f,_0x6c5722:0xdc,_0x9d92fd:0x46,_0x47b49f:0x4b9,_0x1d8d11:0x35f,_0x378134:0x447,_0x31ca48:0x451,_0x41b7dd:0x36f},_0x53058d={_0x52f046:0x21d,_0x384651:0x304,_0x5cfa8f:0x5fa,_0x128152:0x5dd},_0x38f363={_0x1a6852:0x186},_0x5c379b={_0x18b727:0x134},_0x3cfaee={_0xfc78d9:0x4a4,_0x55fd9f:0x1c8},_0xa503e={_0x552109:0x1af,_0x757f13:0x10c};function _0x445b7d(_0x331b19,_0xf77c9b,_0x4774b1,_0x1be456){return _0x691723(_0x4774b1-_0xa503e._0x552109,_0x1be456,_0x4774b1-0xb0,_0x1be456-_0xa503e._0x757f13);}function _0x2d799e(_0x4014f8,_0x12d2b,_0x1915df,_0x1718eb){return _0x691723(_0x1718eb-_0x3cfaee._0xfc78d9,_0x4014f8,_0x1915df-_0x3cfaee._0x55fd9f,_0x1718eb-0xd4);}return defineTool({'name':'AssignTask','description':_0x445b7d(0x10f,_0x2bdf3d._0x105cad,_0x2bdf3d._0x350b51,_0x2bdf3d._0x37f6ab),'inputSchema':{'type':_0x2d799e(_0x2bdf3d._0x4fd4ea,_0x2bdf3d._0xf9f1cb,_0x2bdf3d._0xee71ab,0x46b),'properties':{'agentId':{'type':_0x445b7d(-0x2a,0x114,0x132,0x1ae)},'description':{'type':_0x445b7d(0x254,0x152,0x132,0x20c)},'nickname':{'type':'string'},'task':{'type':'string'}},'required':[_0x2d799e(0x330,_0x2bdf3d._0x3c2187,_0x2bdf3d._0xeac7ee,_0x2bdf3d._0x3681ad),_0x445b7d(_0x2bdf3d._0x37430b,_0x2bdf3d._0x526796,0x32,-_0x2bdf3d._0x43f8c1),_0x445b7d(_0x2bdf3d._0x3f12f9,_0x2bdf3d._0x3744b2,_0x2bdf3d._0x1f6af3,_0x2bdf3d._0x20e1cc)]},async *'execute'(_0x12127b,_0x56ffb8){const _0x5ed269={_0x2e0c54:0x1b1},_0x10d338=createDelegatedRunId(),_0x45b4ea={'agentId':_0x12127b[_0x18082c(-0xaf,_0x1bd879._0x51ee49,_0x1bd879._0x50e864,0x6f)],'parentSessionId':_0x56ffb8['sessionId'],'runId':_0x10d338,..._0x56ffb8[_0x18082c(-0x80,_0x1bd879._0x894a37,-_0x1bd879._0x128e32,-0x86)]!==void 0x0?{'toolCallId':_0x56ffb8[_0x18082c(-_0x1bd879._0x5b2ade,_0x1bd879._0x545f36,-0x9c,_0x1bd879._0x1af918)]}:{}},_0x1477c4=getDelegatedAgentDefinition(_0x5c5d68,_0x12127b['agentId']);if(!_0x1477c4)throw new ToolExecutionError(_0xbb869e(0x3b4,0x2dd,_0x1bd879._0x2bccd9,_0x1bd879._0x13960e)+_0x12127b['agentId'],{'agentId':_0x12127b[_0x18082c(-_0x1bd879._0x3821c3,-_0x1bd879._0x598300,-0x15b,-_0x1bd879._0x14aa9e)]});function _0xbb869e(_0x2d4413,_0x578821,_0x5b1e53,_0x12ed5f){return _0x2d799e(_0x12ed5f,_0x578821-_0x5c379b._0x18b727,_0x5b1e53-0x19d,_0x578821-0x52);}function _0x18082c(_0x163915,_0x8fed3d,_0x5bc9c4,_0x2ff1fd){return _0x445b7d(_0x163915-_0x38f363._0x1a6852,_0x8fed3d-0xa4,_0x163915- -0x20a,_0x5bc9c4);}const _0x405118=new Agent(await resolveDelegatedAgentOptions(_0x1477c4,_0x45b4ea));let _0x1a479b={'runId':_0x10d338,'agentId':_0x12127b[_0xbb869e(0x3a2,0x4a2,_0x1bd879._0x1bc9dd,_0x1bd879._0x38b12b)],'sessionId':_0x405118[_0x18082c(-_0x1bd879._0x25084b,-_0x1bd879._0x15d33d,-0x199,-0x222)],'status':_0xbb869e(_0x1bd879._0x46f6c6,_0x1bd879._0x106260,_0x1bd879._0x2968b7,_0x1bd879._0x2bd2ff),'parentSessionId':_0x56ffb8[_0x18082c(-0x293,-0x2b2,-0x37e,-0x34f)],..._0x56ffb8[_0xbb869e(_0x1bd879._0x12a1b3,_0x1bd879._0x373634,_0x1bd879._0x23a61a,_0x1bd879._0x34b21a)]!==void 0x0?{'originToolCallId':_0x56ffb8[_0xbb869e(0x608,0x4d1,_0x1bd879._0x54a884,0x4ee)]}:{}};const _0x299f84=new AbortController(),_0x51d0b8=addAbortListener(_0x56ffb8['signal'],()=>{const _0x72b11e={_0x21ece7:0x2a9,_0x207bca:0xd1};function _0x2049b8(_0x2ce0e0,_0x83db59,_0x5ad7e8,_0x42c900){return _0x18082c(_0x5ad7e8-0x524,_0x83db59-_0x5ed269._0x2e0c54,_0x42c900,_0x42c900-0x151);}function _0x297cbe(_0x58cf72,_0x553c40,_0x4f54bc,_0x3289e1){return _0xbb869e(_0x58cf72-0x90,_0x553c40- -_0x72b11e._0x21ece7,_0x4f54bc-_0x72b11e._0x207bca,_0x58cf72);}_0x299f84[_0x2049b8(_0x53058d._0x52f046,0x40a,_0x53058d._0x384651,0x24d)](_0x56ffb8['signal']?.[_0x2049b8(0x41e,_0x53058d._0x5cfa8f,0x4ae,_0x53058d._0x128152)]);});yield createToolOutput('Started\x20agent\x20run\x20'+_0x1a479b[_0x18082c(-0x1a,_0x1bd879._0x237a12,-_0x1bd879._0xe82cb8,0x86)]+'.',{'runId':_0x1a479b[_0x18082c(-0x1a,-0xcb,0xeb,_0x1bd879._0x437d6c)],'agentId':_0x1a479b[_0xbb869e(_0x1bd879._0x36f3b6,_0x1bd879._0x125b32,0x467,_0x1bd879._0x5463a3)],'sessionId':_0x1a479b['sessionId'],'status':_0x1a479b[_0x18082c(-0x244,-_0x1bd879._0x1fa461,-0x1cd,-_0x1bd879._0x12bd11)]});try{const _0x4a24da=await _0x405118['send'](_0x12127b[_0xbb869e(0x5dc,_0x1bd879._0x4ae1c4,_0x1bd879._0x128d67,_0x1bd879._0x1a98c4)],{'signal':_0x299f84[_0xbb869e(_0x1bd879._0x3a1dbc,_0x1bd879._0x3ba1ae,0x33a,0x2dc)]});_0x1a479b={..._0x1a479b,'status':_0x4a24da[_0x18082c(-_0x1bd879._0x3918ba,-0x38a,-_0x1bd879._0x50c34d,-0x3a1)],'result':_0x4a24da};if(_0x4a24da[_0xbb869e(0x1e2,_0x1bd879._0x583c0f,_0x1bd879._0x4a4369,0x299)]!==_0xbb869e(0x36d,_0x1bd879._0x2d7eeb,0x464,_0x1bd879._0x32038b)){const _0x897128=getRunTerminalErrorMessage(_0x4a24da),_0x54e1cb=formatAbortedRunMessage(_0x1a479b[_0x18082c(-_0x1bd879._0x5140d4,_0x1bd879._0x53b86d,_0x1bd879._0x42171e,0x42)],_0x897128);throw new ToolExecutionError(_0x54e1cb,{...createRunSummary(_0x1a479b),'aborted':!![],'errorMessage':_0x54e1cb});}return createRunSummaryOutput(_0x1a479b,_0x18082c(-0xdc,_0x1bd879._0x57bfc6,-0x13,-_0x1bd879._0x5481d2)+_0x1a479b[_0xbb869e(_0x1bd879._0x51d1b2,0x537,_0x1bd879._0xcb6b48,0x47e)]+'\x20completed.');}catch(_0x2cc287){if(_0x2cc287 instanceof ToolExecutionError)throw _0x2cc287;if(isAbortError(_0x2cc287)||_0x299f84['signal']['aborted']||_0x56ffb8[_0x18082c(-_0x1bd879._0x4c7ce4,-0x1f6,-0x344,-_0x1bd879._0x5cf099)][_0xbb869e(0x4b7,0x3a2,_0x1bd879._0xb5ea40,0x2c1)]){const _0x27abdc=getRunTerminalErrorMessage(_0x1a479b[_0x18082c(-_0x1bd879._0x56a92a,-_0x1bd879._0x107d56,-_0x1bd879._0x2f831b,0x124)])??(_0x2cc287 instanceof Error?_0x2cc287[_0xbb869e(0x334,_0x1bd879._0x776e61,_0x1bd879._0x47bd5c,_0x1bd879._0x24c45d)]:String(_0x2cc287)),_0x40718e=formatAbortedRunMessage(_0x1a479b[_0xbb869e(0x4c8,0x537,_0x1bd879._0x5ab2ff,_0x1bd879._0x9a074b)],_0x27abdc);_0x1a479b={..._0x1a479b,'status':'aborted','errorMessage':_0x40718e};throw new ToolExecutionError(_0x40718e,{...createRunSummary(_0x1a479b),'aborted':!![],'errorMessage':_0x40718e});}const _0x284b8b=getRunTerminalErrorMessage(_0x1a479b['result'])??(_0x2cc287 instanceof Error?_0x2cc287[_0xbb869e(0x336,_0x1bd879._0x372403,_0x1bd879._0x52c9ce,0x435)]:String(_0x2cc287))??_0x18082c(-_0x1bd879._0x6c5722,-0x39,-0x37,0x6e)+_0x1a479b[_0x18082c(-0x1a,0xf7,0x76,_0x1bd879._0x9d92fd)]+_0xbb869e(0x50e,_0x1bd879._0x47b49f,_0x1bd879._0x1d8d11,_0x1bd879._0x378134);_0x1a479b={..._0x1a479b,'status':_0xbb869e(0x47a,_0x1bd879._0x31ca48,0x455,_0x1bd879._0x41b7dd),'errorMessage':_0x284b8b};throw new ToolExecutionError(_0x284b8b,{...createRunSummary(_0x1a479b),'errorMessage':_0x284b8b});}finally{_0x51d0b8();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0xc85520){return[createAssignTaskTool(_0xc85520)];}import*as _0x20c9fa from'path';function buildDescription2(_0xcc4438){const _0x145d1a={_0xfe083e:0x34b,_0x3e6f4c:0x294,_0x5e84df:0x33c,_0x52d9de:0x25f,_0x1b4246:0x1f6,_0x5e085c:0x77,_0x43f429:0x1d3,_0x4c7997:0xd9,_0x1b5820:0x5e,_0x266a76:0x111,_0x5539e9:0x34,_0x2de6ac:0xeb,_0x59b2e0:0x21,_0xdd6ce8:0x2,_0x2f65c9:0x28},_0x4dd64d={_0x47ef37:0xeb,_0x315b01:0x1f0},_0x394900={_0x53205e:0xff,_0x5b274c:0x15e};if(_0xcc4438[_0x214f91(_0x145d1a._0xfe083e,_0x145d1a._0x3e6f4c,_0x145d1a._0x5e84df,_0x145d1a._0x52d9de)]===0x0)return _0x46ac0f(0x2b,-0xdf,-_0x145d1a._0x1b4246,-_0x145d1a._0x5e085c);const _0x2db90d=[_0x46ac0f(-_0x145d1a._0x43f429,-_0x145d1a._0x4c7997,_0x145d1a._0x1b5820,-_0x145d1a._0x266a76),_0x46ac0f(-0xcf,-_0x145d1a._0x5539e9,-0xdd,-0x50),'Use\x20this\x20when\x20a\x20task\x20matches\x20an\x20available\x20skill\x20description.','Available\x20skills\x20(skill_name:\x20description):',..._0xcc4438[_0x46ac0f(0x24,-_0x145d1a._0x2de6ac,_0x145d1a._0x59b2e0,-_0x145d1a._0xdd6ce8)](_0x1ef5a7=>'-\x20'+_0x1ef5a7[_0x214f91(0x2b6,0x329,0x2d8,0x404)]+':\x20'+_0x1ef5a7[_0x214f91(0x2d9,0x42f,0x395,0x245)])];function _0x46ac0f(_0x2b7cb1,_0x1cb147,_0x19ad03,_0x11aee9){return _0x2ff7d2(_0x1cb147- -0x5b3,_0x2b7cb1,_0x19ad03-_0x394900._0x53205e,_0x11aee9-_0x394900._0x5b274c);}function _0x214f91(_0x47001c,_0x485a6e,_0x4963e5,_0x5f0932){return _0x691723(_0x47001c-0x456,_0x4963e5,_0x4963e5-_0x4dd64d._0x47ef37,_0x5f0932-_0x4dd64d._0x315b01);}return _0x2db90d[_0x46ac0f(0xe7,-0x76,-0x22,-_0x145d1a._0x2f65c9)]('\x0a');}function createLoadSkillTool(_0x2d8812){const _0x264bee={_0x20c0f9:0x87,_0x354c7:0x93,_0xbaa043:0x9e,_0x1e98c4:0x6ff,_0x2fbfca:0x7b9,_0x146e34:0x2a0,_0x10d4a9:0x147,_0x4a16c8:0x1d8,_0x44b7c8:0x211,_0x223096:0x152,_0x4904ba:0x184},_0x417fba={_0x3c37f6:0x668,_0xae8b3d:0x69e,_0x4986ca:0x10e,_0x1c8afc:0x69,_0x318187:0x83,_0x429dd1:0x43,_0x2777f2:0x3a,_0x52f283:0xeb,_0x4115c2:0x59a,_0x5784c1:0x646,_0x332592:0x445,_0x291895:0x555,_0x16f43f:0x6,_0x5c59c1:0x30,_0x38d092:0x5a,_0x3a3104:0x66e,_0x220d65:0x63e,_0x1975c2:0x510,_0x3b5a28:0x162,_0x5b13fb:0x18e,_0x57456a:0xc6,_0x4dc335:0x1ae,_0x20ffff:0x5d4,_0x2457b7:0x552,_0xccbae6:0x5d5,_0x234906:0x32,_0x6a7926:0x659,_0x132db1:0x7a3,_0x33baa8:0x78d,_0x11e515:0x663,_0x1b8962:0x7ce,_0x5ea7ba:0x747,_0x3cc753:0xde,_0x2e6f10:0x6f,_0x1304e9:0x13,_0x1ba5d1:0x1d5,_0xfd887b:0x1c3,_0x22b68a:0x20b,_0x4baf85:0x66b,_0x2e2e6b:0x60e,_0x51d3c3:0x518,_0x1b5805:0x676,_0xc27d8a:0x57e,_0x38ab75:0x56b,_0x102ed4:0x680,_0x263632:0x5be},_0x5cc33b={_0x92e019:0x2d9},_0x5e0f59={_0x4136f2:0x2d};function _0x55f960(_0x475e1f,_0x4f40e4,_0x1f96b8,_0x22b953){return _0x2ff7d2(_0x22b953- -_0x5e0f59._0x4136f2,_0x4f40e4,_0x1f96b8-0xa1,_0x22b953-0xf);}const _0x452081=new Map(_0x2d8812['skills'][_0x5c511e(0x154,_0x264bee._0x20c0f9,_0x264bee._0x354c7,_0x264bee._0xbaa043)](_0x508055=>[_0x508055['name'],_0x508055])),_0x31ae22=buildDescription2(_0x2d8812[_0x55f960(0x748,_0x264bee._0x1e98c4,_0x264bee._0x2fbfca,0x67c)]);function _0x5c511e(_0x492349,_0x173001,_0x480d5e,_0xe6ff17){return _0x691723(_0x492349-_0x5cc33b._0x92e019,_0xe6ff17,_0x480d5e-0x196,_0xe6ff17-0x1e0);}return defineTool({'name':'LoadSkill','description':_0x31ae22,'inputSchema':{'type':_0x5c511e(_0x264bee._0x146e34,0x194,_0x264bee._0x10d4a9,0x333),'properties':{'name':{'type':_0x5c511e(0x25c,_0x264bee._0x4a16c8,_0x264bee._0x44b7c8,_0x264bee._0x223096)}},'required':[_0x5c511e(0x139,0x172,0x176,_0x264bee._0x4904ba)]},async *'execute'(_0x42479f){const _0x86114b={_0x37d9c4:0xdb},_0x379a67={_0x265f94:0x23f},_0x5836fe=_0x452081['get'](_0x42479f[_0x348cb4(0x687,_0x417fba._0x3c37f6,_0x417fba._0xae8b3d,0x57e)]);if(!_0x5836fe){const _0x175524=Array['from'](_0x452081[_0x63733a(0x16e,_0x417fba._0x4986ca,0x10a,_0x417fba._0x1c8afc)]())[_0x63733a(_0x417fba._0x318187,-0x76,0x1b,_0x417fba._0x429dd1)](',\x20');throw new ToolExecutionError(_0x63733a(0x183,_0x417fba._0x2777f2,-_0x417fba._0x52f283,0xbc)+_0x42479f['name']+_0x348cb4(_0x417fba._0x4115c2,_0x417fba._0x5784c1,_0x417fba._0x332592,_0x417fba._0x291895)+_0x175524,{'name':_0x42479f['name']});}const _0x3cc2d0=await _0x2d8812[_0x63733a(_0x417fba._0x16f43f,-0x22,-_0x417fba._0x5c59c1,-_0x417fba._0x38d092)](_0x5836fe),_0x503928=_0x5836fe[_0x348cb4(0x6bf,0x5e2,0x69c,0x713)][_0x348cb4(_0x417fba._0x3a3104,0x5c5,0x57d,0x5c5)]??_0x20c9fa[_0x348cb4(0x57c,_0x417fba._0x220d65,0x403,_0x417fba._0x1975c2)](_0x5836fe[_0x63733a(_0x417fba._0x3b5a28,0x8f,0xcf,0xfb)][_0x63733a(-_0x417fba._0x5b13fb,-_0x417fba._0x57456a,0x61,-_0x417fba._0x4dc335)]);function _0x63733a(_0x414469,_0x44387f,_0x7864f,_0x2eb0f0){return _0x5c511e(_0x44387f- -_0x379a67._0x265f94,_0x44387f-0x13b,_0x7864f-0xcd,_0x2eb0f0);}const _0x566655=[_0x348cb4(_0x417fba._0x20ffff,_0x417fba._0x2457b7,_0x417fba._0xccbae6,0x67c)+_0x3cc2d0[_0x63733a(-0x20c,-0x106,0x50,-_0x417fba._0x234906)],'',_0x3cc2d0[_0x348cb4(_0x417fba._0x6a7926,0x643,_0x417fba._0x132db1,_0x417fba._0x33baa8)],'',_0x348cb4(_0x417fba._0x11e515,_0x417fba._0x1b8962,_0x417fba._0x5ea7ba,0x705),_0x63733a(-0x3e,-0x29,_0x417fba._0x3cc753,-0x6)+_0x5836fe[_0x348cb4(0x86a,0x68a,0x72c,0x713)][_0x63733a(_0x417fba._0x2e6f10,-0xc6,_0x417fba._0x1304e9,-_0x417fba._0x1ba5d1)],_0x63733a(-_0x417fba._0xfd887b,-0x194,-0xdf,-_0x417fba._0x22b68a)+_0x503928][_0x348cb4(0x4d4,0x569,_0x417fba._0x4baf85,_0x417fba._0x2e2e6b)]('\x0a');function _0x348cb4(_0x988905,_0x4f3d12,_0x2049c2,_0x58e3f8){return _0x55f960(_0x988905-_0x86114b._0x37d9c4,_0x2049c2,_0x2049c2-0x8a,_0x58e3f8-0xfe);}return yield createToolOutput(_0x566655,{'id':_0x3cc2d0['id'],'name':_0x3cc2d0[_0x348cb4(0x525,_0x417fba._0x51d3c3,_0x417fba._0x1b5805,_0x417fba._0xc27d8a)],'path':_0x5836fe['source'][_0x348cb4(0x64d,_0x417fba._0x38ab75,_0x417fba._0x102ed4,_0x417fba._0x263632)],'baseDirectory':_0x503928}),void 0x0;}});}var TODO_STATUSES=new Set([_0x2ff7d2(0x5d3,0x571,0x4f8,0x5e7),_0x691723(-0x231,-0x218,-0x184,-0x2e6),_0x691723(-0x1d1,-0x1d0,-0x316,-0x8a)]),TODO_PRIORITIES=new Set([_0x691723(-0x191,-0x1bb,-0x206,-0x23e),_0x2ff7d2(0x622,0x6b0,0x54d,0x60b),_0x691723(-0x14e,-0x1a6,-0x23a,-0xa)]);function isTodoStatus(_0x3fb340){const _0x174427={_0x4dede0:0x70},_0x2830af={_0x4543d7:0x1cf};function _0x2f39a0(_0x546c49,_0x31462f,_0x2a3415,_0x2292e8){return _0x691723(_0x2292e8-0x3c,_0x546c49,_0x2a3415-0x127,_0x2292e8-_0x2830af._0x4543d7);}return typeof _0x3fb340==='string'&&TODO_STATUSES[_0x2f39a0(-0x11d,-0x169,_0x174427._0x4dede0,-0x2e)](_0x3fb340);}function isTodoPriority(_0x5add83){const _0x240cf4={_0x1db8c2:0x192,_0x40e4a2:0x199,_0x15b839:0x128,_0x4265c6:0xea},_0x5a275a={_0x584aae:0x17d,_0x5a08bb:0x1eb};function _0x69a826(_0x1f398b,_0x317958,_0x157f47,_0x12967e){return _0x2ff7d2(_0x12967e- -0x557,_0x1f398b,_0x157f47-0x9,_0x12967e-0x1d3);}function _0x3138ad(_0x45a87a,_0x4323ce,_0x40e7da,_0x1275cb){return _0x691723(_0x45a87a-0x203,_0x1275cb,_0x40e7da-_0x5a275a._0x584aae,_0x1275cb-_0x5a275a._0x5a08bb);}return typeof _0x5add83===_0x3138ad(0x186,0x2a9,_0x240cf4._0x1db8c2,0xae)&&TODO_PRIORITIES[_0x3138ad(_0x240cf4._0x40e4a2,0x197,_0x240cf4._0x15b839,_0x240cf4._0x4265c6)](_0x5add83);}var TodoStore=class{[_0x691723(-0xbb,-0x17d,-0x143,-0xe5)]=new Map();[_0x691723(-0x1da,-0x113,-0x2c5,-0x21b)](_0x178476){const _0x9b04ae={_0x1e4552:0x157,_0x45fde7:0x160,_0x452522:0x217,_0x1f4ded:0xda},_0x3f2733={_0x527e4c:0x418,_0x1c3918:0xc1};function _0x1acb8d(_0x15c6db,_0x4abc73,_0xe59c5c,_0x11b423){return _0x2ff7d2(_0x15c6db- -_0x3f2733._0x527e4c,_0xe59c5c,_0xe59c5c-0x10f,_0x11b423-_0x3f2733._0x1c3918);}return this['todosBySession'][_0x1acb8d(_0x9b04ae._0x1e4552,_0x9b04ae._0x45fde7,_0x9b04ae._0x452522,_0x9b04ae._0x1f4ded)](_0x178476)??[];}[_0x2ff7d2(0x6c4,0x6f7,0x757,0x731)](_0x509072,_0xbf18a9){const _0x4cc91b={_0x2a9afe:0x2a5},_0x44dbaa={_0x5e7fa2:0x2a1,_0x501a2d:0x10f,_0x3b609c:0xa4};function _0xe4b62e(_0x24cad3,_0x28a22e,_0x4178ad,_0x4614cf){return _0x2ff7d2(_0x4614cf- -_0x44dbaa._0x5e7fa2,_0x24cad3,_0x4178ad-_0x44dbaa._0x501a2d,_0x4614cf-_0x44dbaa._0x3b609c);}this['todosBySession'][_0xe4b62e(0x182,_0x4cc91b._0x2a9afe,0x131,0x182)](_0x509072,_0xbf18a9);}[_0x691723(-0x13d,-0xc2,0x1b,-0xc8)](_0x9ad743){const _0x5025f1={_0x729774:0x4da,_0x3610c7:0x206,_0xc4beae:0x42f,_0x4d6f3d:0x4f9,_0x213319:0x391,_0x215f5d:0x5e3,_0xe32d38:0x587,_0x130a1f:0x668,_0x2130da:0x4d6,_0x224cfe:0x46d,_0x2f946b:0x3f7,_0x28d930:0x20d,_0x4af174:0x10b},_0x943241={_0x248523:0x178},_0x104019=this[_0x44a48f(0x64e,0x582,_0x5025f1._0x729774,0x508)](_0x9ad743);function _0x44a48f(_0x5cfed1,_0x22cb88,_0x4196cd,_0x32fb54){return _0x691723(_0x32fb54-0x6e2,_0x22cb88,_0x4196cd-0x158,_0x32fb54-0x162);}const _0x25ef84={'total':_0x104019[_0x20d8f6(_0x5025f1._0x3610c7,0x333,0x31d,0x478)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0xb53d71 of _0x104019){if(_0xb53d71[_0x44a48f(0x4ae,_0x5025f1._0xc4beae,0x653,_0x5025f1._0x4d6f3d)]===_0x20d8f6(_0x5025f1._0x213319,0x3c4,0x39e,0x419))_0x25ef84[_0x44a48f(_0x5025f1._0x215f5d,0x769,_0x5025f1._0xe32d38,_0x5025f1._0x130a1f)]+=0x1;else{if(_0xb53d71[_0x44a48f(_0x5025f1._0x2130da,_0x5025f1._0x224cfe,_0x5025f1._0x2f946b,0x4f9)]===_0x20d8f6(0x253,_0x5025f1._0x28d930,0x367,_0x5025f1._0x4af174))_0x25ef84['inProgress']+=0x1;else _0x25ef84['completed']+=0x1;}}function _0x20d8f6(_0x4ec95b,_0x2f49d0,_0x254dd0,_0x523837){return _0x691723(_0x2f49d0-0x43e,_0x254dd0,_0x254dd0-0xba,_0x523837-_0x943241._0x248523);}return _0x25ef84;}};function validateTodos(_0x530cc0){const _0x557a4c={_0x3e12d6:0x47,_0x253304:0x101,_0x3a5892:0x33,_0x3eb805:0x1,_0x53f37c:0x10,_0x393569:0xbd,_0xbee178:0x259,_0x20790a:0x157,_0x541bad:0x132,_0x1e9092:0x98,_0x515e2a:0x1f,_0x1a2122:0x241,_0x92af3b:0x8e,_0x105920:0x11b,_0x271ffb:0x1bd,_0x1d5feb:0x161,_0x41a487:0x86,_0xeaa0ee:0xf1,_0x239bcb:0x67,_0x2fb9f5:0x4e,_0x5162cc:0xee,_0x4cd58e:0x215,_0x11cc66:0x227,_0x1fac7a:0x20c,_0x4e039b:0xf3,_0x56bd73:0x1cd,_0x12ce21:0x96,_0x5960d5:0x17d,_0x48d4fc:0x6f,_0xf81310:0x145,_0x279f45:0x160,_0x48bd2d:0x67,_0x39c078:0x55,_0x1a37a2:0x37,_0x17c0ff:0x46,_0x3bf100:0x19,_0x531147:0x9c,_0x35907f:0xd0,_0x396cd2:0x1b0,_0x2cdc76:0x1b1,_0x3855cb:0x11,_0x23280f:0x6a,_0x518a21:0x103,_0xcb60e2:0xa7,_0x4c3477:0x9b,_0x155c70:0x3b,_0x2200c1:0xc,_0x333e12:0x190,_0x3d215c:0x25,_0x5e1bb3:0x59,_0x214554:0x2,_0x5d79ab:0x1bc,_0x11aed6:0x176,_0xe10a5e:0xb0,_0x322296:0xea,_0x48c720:0x241,_0x5a057b:0x69,_0x4211c8:0x171,_0x439be1:0x3,_0x3f88c9:0xf5,_0x1f9037:0xd5,_0x91100b:0xc5,_0xbe0718:0x329,_0x44d2e:0x23e,_0x30e861:0x298},_0x25bc49={_0x33f64a:0x16},_0x105246={_0x1f9abc:0x429,_0x41e6d7:0x1c3};function _0x5f2245(_0x167f32,_0x353f0f,_0x92073,_0x393f48){return _0x2ff7d2(_0x92073- -_0x105246._0x1f9abc,_0x393f48,_0x92073-0xfb,_0x393f48-_0x105246._0x41e6d7);}if(!Array[_0x5f2245(-_0x557a4c._0x3e12d6,0x1f2,0xa8,-0x7d)](_0x530cc0[_0x402579(0x6f,_0x557a4c._0x253304,_0x557a4c._0x3a5892,0x156)])||_0x530cc0['todos'][_0x402579(-_0x557a4c._0x3eb805,-0xe3,-0xf5,_0x557a4c._0x53f37c)]===0x0)throw new ToolExecutionError(_0x5f2245(_0x557a4c._0x393569,0x11c,0x10,0x142),{'error':_0x5f2245(_0x557a4c._0xbee178,0x197,_0x557a4c._0x20790a,0x28c)});function _0x402579(_0x278e0a,_0x2d63f3,_0x40dfbf,_0x45ec9f){return _0x691723(_0x40dfbf-_0x25bc49._0x33f64a,_0x45ec9f,_0x40dfbf-0x111,_0x45ec9f-0x1c2);}for(let _0x328566=0x0;_0x328566<_0x530cc0[_0x402579(_0x557a4c._0x541bad,_0x557a4c._0x1e9092,0x33,_0x557a4c._0x515e2a)]['length'];_0x328566+=0x1){const _0x21aeed=_0x530cc0[_0x5f2245(0x288,0x1c3,_0x557a4c._0x1a2122,0x17b)][_0x328566];if(!_0x21aeed||typeof _0x21aeed!=='object')throw new ToolExecutionError(_0x402579(-_0x557a4c._0x92af3b,-0x171,-_0x557a4c._0x105920,-_0x557a4c._0x271ffb)+(_0x328566+0x1)+':\x20todo\x20item\x20is\x20required',{'error':_0x402579(-_0x557a4c._0x1d5feb,-0x80,-_0x557a4c._0x41a487,0x93)});if(typeof _0x21aeed['id']!==_0x402579(-_0x557a4c._0xeaa0ee,-0x9c,-_0x557a4c._0x239bcb,0x40)||_0x21aeed['id']['trim']()[_0x5f2245(_0x557a4c._0x2fb9f5,_0x557a4c._0x5162cc,0x119,_0x557a4c._0x4cd58e)]===0x0)throw new ToolExecutionError(_0x5f2245(_0x557a4c._0x11cc66,_0x557a4c._0x1fac7a,_0x557a4c._0x4e039b,0x4f)+(_0x328566+0x1)+':\x20id\x20required',{'error':_0x402579(_0x557a4c._0x56bd73,0x55,0x70,_0x557a4c._0x12ce21)});if(typeof _0x21aeed[_0x402579(0x9b,-_0x557a4c._0x5960d5,-_0x557a4c._0x48d4fc,-_0x557a4c._0xf81310)]!==_0x402579(-_0x557a4c._0x279f45,-0x179,-_0x557a4c._0x48bd2d,_0x557a4c._0x39c078)||_0x21aeed[_0x402579(_0x557a4c._0x1a37a2,-_0x557a4c._0x17c0ff,-0x6f,0x59)][_0x402579(-_0x557a4c._0x3bf100,0xa5,-0x55,-_0x557a4c._0x531147)]()[_0x402579(-_0x557a4c._0x35907f,0x1a,-0xf5,-_0x557a4c._0x396cd2)]===0x0)throw new ToolExecutionError(_0x402579(-0xa0,-0x1e0,-0x11b,-_0x557a4c._0x2cdc76)+(_0x328566+0x1)+_0x5f2245(0x10f,_0x557a4c._0x3855cb,0xd7,-_0x557a4c._0x23280f),{'error':_0x402579(-0x16e,0x2,-0x98,-_0x557a4c._0x518a21)});if(!isTodoStatus(_0x21aeed[_0x5f2245(_0x557a4c._0xcb60e2,-_0x557a4c._0x4c3477,_0x557a4c._0x155c70,-_0x557a4c._0x2200c1)]))throw new ToolExecutionError('Todo\x20'+(_0x328566+0x1)+':\x20invalid\x20status',{'error':_0x402579(_0x557a4c._0x333e12,_0x557a4c._0x3d215c,_0x557a4c._0x5e1bb3,0x51)});if(!isTodoPriority(_0x21aeed['priority']))throw new ToolExecutionError(_0x5f2245(-_0x557a4c._0x214554,_0x557a4c._0x5d79ab,0xf3,0x160)+(_0x328566+0x1)+':\x20invalid\x20priority',{'error':_0x402579(_0x557a4c._0x11aed6,-_0x557a4c._0xe10a5e,0x58,0x4e)});}const _0x1d9966=_0x530cc0[_0x5f2245(_0x557a4c._0x322296,0x37c,_0x557a4c._0x48c720,0x385)][_0x5f2245(0x13f,-0x3f,0x9f,-_0x557a4c._0x5a057b)](_0x1114c6=>_0x1114c6['id']);if(new Set(_0x1d9966)['size']!==_0x1d9966[_0x402579(-_0x557a4c._0x4211c8,_0x557a4c._0x439be1,-_0x557a4c._0x3f88c9,-0x3b)])throw new ToolExecutionError(_0x5f2245(-_0x557a4c._0x1f9037,0xc5,0x74,_0x557a4c._0x91100b),{'error':_0x5f2245(0x2ff,_0x557a4c._0xbe0718,_0x557a4c._0x44d2e,_0x557a4c._0x30e861)});}function createStatsProgress(_0x31f89b){const _0x404cfa={_0x5efead:0x6e5,_0x4e90cc:0x442,_0x5bdb7b:0x5d1,_0x1f0e30:0x41f,_0x3c8b48:0x327,_0x4565e1:0x454,_0x167f8e:0x321,_0x3a9844:0x3be,_0xb65e4f:0x443},_0x462566={_0x161ae2:0xf4};function _0xb92e25(_0x1bd67f,_0x376c6b,_0x5ef9ab,_0x2f90ea){return _0x2ff7d2(_0x376c6b- -_0x462566._0x161ae2,_0x5ef9ab,_0x5ef9ab-0x15d,_0x2f90ea-0x1da);}function _0x43c220(_0x1e804d,_0x41f1e4,_0x4e18b9,_0x1bd81b){return _0x2ff7d2(_0x1bd81b- -0x39,_0x1e804d,_0x4e18b9-0xbf,_0x1bd81b-0x149);}return _0x31f89b[_0xb92e25(_0x404cfa._0x5efead,0x591,_0x404cfa._0x4e90cc,_0x404cfa._0x5bdb7b)]>0x0?Math[_0x43c220(_0x404cfa._0x1f0e30,0x406,_0x404cfa._0x3c8b48,_0x404cfa._0x4565e1)](_0x31f89b[_0x43c220(_0x404cfa._0x167f8e,_0x404cfa._0x3a9844,0x321,_0x404cfa._0xb65e4f)]/_0x31f89b['total']*0x64)+'%':'0%';}function createReminderItems(_0x101896){const _0x46ddc1={_0x54c6a7:0x94},_0x37fe79={_0x54f8fc:0x1dd};function _0x53d4e0(_0xda3fa0,_0x308865,_0x3d8c22,_0x46805b){return _0x691723(_0x46805b-0x580,_0xda3fa0,_0x3d8c22-0x15e,_0x46805b-_0x37fe79._0x54f8fc);}function _0x39b918(_0x354889,_0x1e2879,_0x1342b2,_0x40e097){return _0x691723(_0x1342b2-0x55e,_0x40e097,_0x1342b2-0x135,_0x40e097-_0x46ddc1._0x54c6a7);}return _0x101896['map'](_0x48084c=>({'content':_0x48084c[_0x53d4e0(0x5eb,0x44c,0x62a,0x4fb)],'status':_0x48084c[_0x53d4e0(0x319,0x291,0x454,0x397)],'id':_0x48084c['id']}));}function createStructuredResult(_0x426801,_0x333558,_0x596cca,_0x9b8de4){const _0x5e57f2={_0xdcfdf6:0x242,_0x502750:0x66,_0x523be7:0x264,_0x41e3c0:0x20c},_0x43fb39={_0x30e16b:0x269};function _0x1de476(_0x474f64,_0x3cc34c,_0x33f303,_0x48e624){return _0x2ff7d2(_0x3cc34c- -0x436,_0x474f64,_0x33f303-0x35,_0x48e624-0xf2);}function _0x39e93f(_0x357f6c,_0x3f6403,_0x41f3fe,_0x507a7e){return _0x691723(_0x507a7e-_0x43fb39._0x30e16b,_0x357f6c,_0x41f3fe-0x1,_0x507a7e-0x70);}return{'allCompleted':_0x9b8de4,'items':_0x333558[_0x39e93f(_0x5e57f2._0xdcfdf6,0xc0,_0x5e57f2._0x502750,0xe4)](_0x48aa4b=>({'id':_0x48aa4b['id'],'content':_0x48aa4b[_0x39e93f(0x12c,0x169,0x1c6,0x1e4)],'status':_0x48aa4b[_0x39e93f(-0x69,-0x22,-0xac,0x80)],'priority':_0x48aa4b[_0x1de476(0x344,0x218,0x1f6,0x1c1)],'createdAt':_0x48aa4b['createdAt']})),'progress':createStatsProgress(_0x596cca),'recentChanges':!![],'sessionId':_0x426801,'stats':_0x596cca,'todosWritten':_0x333558[_0x39e93f(_0x5e57f2._0x523be7,_0x5e57f2._0x41e3c0,0x13d,0x15e)]};}function createOutputText(_0x46a61e,_0x2a8257){const _0x3070d0={_0x3452d7:0x5c8,_0x5422ec:0x4e1,_0x40451d:0x60a,_0x5459ff:0x635,_0x3cb1bd:0x560,_0x5db8e1:0x48b,_0x5df910:0x3f9,_0x4716d8:0x5c8,_0x55fd84:0x585,_0x899611:0x24a,_0x3678df:0x3a6,_0x59e73d:0x33a,_0x4d0315:0x562,_0xd916e6:0x59d,_0x4c3cf4:0x3a7,_0x2543a8:0x4c5,_0x455b70:0x3cf},_0x2a0246={_0x189995:0xb7,_0x2b553d:0x83},_0x3dbabe={_0xde8c28:0x13a};function _0xb3c880(_0x3176ab,_0x2b2f44,_0xbe59e2,_0x1b1371){return _0x2ff7d2(_0xbe59e2-0xcc,_0x2b2f44,_0xbe59e2-0x1e2,_0x1b1371-_0x3dbabe._0xde8c28);}function _0x3abadb(_0x3790f0,_0x2b4045,_0x4a0056,_0x56c66e){return _0x2ff7d2(_0x3790f0- -_0x2a0246._0x189995,_0x4a0056,_0x4a0056-_0x2a0246._0x2b553d,_0x56c66e-0x10c);}const _0x1942b9=JSON[_0x3abadb(_0x3070d0._0x3452d7,_0x3070d0._0x5422ec,_0x3070d0._0x40451d,0x514)](createReminderItems(_0x46a61e));if(_0x2a8257)return _0xb3c880(_0x3070d0._0x5459ff,_0x3070d0._0x3cb1bd,0x667,0x6bc)+_0x46a61e[_0x3abadb(_0x3070d0._0x5db8e1,0x488,0x5d1,_0x3070d0._0x5df910)]+_0xb3c880(0x752,_0x3070d0._0x4716d8,0x664,_0x3070d0._0x55fd84)+_0x1942b9+_0x3abadb(0x3a7,_0x3070d0._0x899611,_0x3070d0._0x3678df,_0x3070d0._0x59e73d);return _0xb3c880(_0x3070d0._0x4d0315,0x59c,0x59e,_0x3070d0._0xd916e6)+_0x1942b9+_0x3abadb(_0x3070d0._0x4c3cf4,_0x3070d0._0x2543a8,_0x3070d0._0x455b70,0x3ec);}function createTodoWriteTool(_0x39c0bb=new TodoStore()){const _0x372076={_0x367ace:0x273,_0x232b0c:0x492,_0x993ca6:0x36d,_0xe39f60:0x448,_0x24d6c4:0x342,_0x68f14e:0x717,_0x26c243:0x674,_0x187b1e:0x5d2,_0x3ad149:0x6d7,_0x212658:0x718,_0x595431:0x67d,_0x5689c5:0x4b0,_0x2b009d:0x500,_0x401e97:0x5ad,_0x16a7dc:0x3af,_0x51058c:0x631,_0x534b6b:0x572,_0x282c4c:0x660,_0xc0518d:0x410},_0xf27755={_0x1f64b6:0x433,_0x352ab3:0x68c,_0x3fb9f9:0x789,_0x51da9d:0x71,_0x5bd8c2:0xcd,_0x3a14a2:0x193,_0x290cc1:0x19a,_0x54994b:0x629,_0x357016:0x554,_0x4bfce8:0x5ff,_0x186ca7:0x8d5,_0x1ce6b5:0x91f,_0x51b62a:0x28d,_0x4dab1b:0x173},_0x14030e={_0x40f7a9:0x160,_0x17a236:0x61},_0x10c917={_0x1d54e6:0x12},_0x1b3ba7={_0x286327:0x123};function _0x2c681f(_0x45e64c,_0x486f48,_0x246ef6,_0xe14384){return _0x2ff7d2(_0x486f48-0xa4,_0x246ef6,_0x246ef6-0x5b,_0xe14384-_0x1b3ba7._0x286327);}function _0x2795c6(_0x14569c,_0x50e79f,_0xbb02af,_0x18fb44){return _0x2ff7d2(_0xbb02af- -0x137,_0x14569c,_0xbb02af-0x197,_0x18fb44-_0x10c917._0x1d54e6);}return defineTool({'name':_0x2795c6(0x331,_0x372076._0x367ace,0x3aa,0x250),'description':_0x2795c6(_0x372076._0x232b0c,0x412,0x479,_0x372076._0x993ca6),'inputSchema':{'type':_0x2795c6(0x485,0x624,0x4dd,_0x372076._0xe39f60),'properties':{'todos':{'type':_0x2795c6(0x316,0x258,_0x372076._0x24d6c4,0x3d6),'items':{'type':'object','properties':{'content':{'type':_0x2c681f(_0x372076._0x68f14e,_0x372076._0x26c243,0x7c4,0x6b5)},'status':{'type':_0x2c681f(0x798,0x674,0x5f3,_0x372076._0x187b1e)},'priority':{'type':_0x2c681f(_0x372076._0x3ad149,0x674,_0x372076._0x212658,_0x372076._0x595431)},'id':{'type':_0x2795c6(0x397,0x35a,0x499,0x5cc)},'createdAt':{'type':_0x2795c6(0x5f0,_0x372076._0x5689c5,0x499,0x47a)}},'required':[_0x2795c6(0x49d,_0x372076._0x2b009d,0x491,_0x372076._0x401e97),_0x2c681f(_0x372076._0x16a7dc,0x508,_0x372076._0x51058c,_0x372076._0x534b6b),_0x2c681f(0x5ef,0x6f2,0x7c9,_0x372076._0x282c4c),'id']}}},'required':[_0x2795c6(0x4b6,0x5f2,0x533,_0x372076._0xc0518d)]},async *'execute'(_0x3b0b56,_0x361e5a){const _0xac1dac=_0x3b0b56;validateTodos(_0xac1dac);const _0x3af86c=_0x361e5a[_0x3948ba(_0xf27755._0x1f64b6,0x63e,0x518,0x493)]||_0x3948ba(0x74e,_0xf27755._0x352ab3,_0xf27755._0x3fb9f9,0x771),_0x2ad448=new Date()[_0x488895(_0xf27755._0x51da9d,-_0xf27755._0x5bd8c2,-_0xf27755._0x3a14a2,-_0xf27755._0x290cc1)](),_0x29df7c=_0xac1dac[_0x3948ba(0x889,0x76b,0x76d,_0xf27755._0x54994b)][_0x3948ba(_0xf27755._0x357016,0x66d,0x5cb,_0xf27755._0x4bfce8)](_0x4f5a90=>({'id':_0x4f5a90['id'],'content':_0x4f5a90[_0x488895(0x39,-0xbc,-0x33,-0x216)],'status':_0x4f5a90[_0x488895(-0xe4,-0x220,-0x240,-0xdc)],'priority':_0x4f5a90[_0x3948ba(0x855,0x6fe,0x751,0x839)],'sessionId':_0x3af86c,'createdAt':_0x4f5a90[_0x488895(-0x259,-0x1f5,-0x348,-0x304)]||_0x2ad448,'updatedAt':_0x2ad448}));function _0x488895(_0x14017f,_0x1657af,_0x2f62a6,_0x863719){return _0x2795c6(_0x863719,_0x1657af-0x1a0,_0x1657af- -0x54d,_0x863719-0xab);}_0x39c0bb[_0x3948ba(0x7f5,_0xf27755._0x186ca7,0x7c7,_0xf27755._0x1ce6b5)](_0x3af86c,_0x29df7c);function _0x3948ba(_0x2dd202,_0x396281,_0x44e236,_0x154072){return _0x2795c6(_0x154072,_0x396281-_0x14030e._0x40f7a9,_0x44e236-0x23a,_0x154072-_0x14030e._0x17a236);}const _0x54b57d=_0x39c0bb['getStats'](_0x3af86c),_0x261f67=_0x29df7c['length']>0x0&&_0x29df7c[_0x488895(-_0xf27755._0x51b62a,-_0xf27755._0x4dab1b,-0x1cc,-0x1aa)](_0x1084d3=>_0x1084d3[_0x3948ba(0x4ad,0x520,0x567,0x68f)]===_0x3948ba(0x573,0x50c,0x57f,0x54d));return createToolOutput(createOutputText(_0x29df7c,_0x261f67),createStructuredResult(_0x3af86c,_0x29df7c,_0x54b57d,_0x261f67));}});}import{mkdir as _0x26add2,writeFile as _0x39af24}from'fs/promises';import*as _0x2a4903 from'path';function sanitizeFileName(_0x9b4bb6){const _0x303074={_0x503130:0x564,_0x34a388:0x62f},_0x461f84={_0x3e8b5c:0x74a,_0x12bf31:0x186};function _0x47821a(_0x35af86,_0xb937d2,_0x34d4cb,_0x254a9e){return _0x691723(_0x35af86-_0x461f84._0x3e8b5c,_0x254a9e,_0x34d4cb-0xcf,_0x254a9e-_0x461f84._0x12bf31);}return _0x9b4bb6[_0x47821a(0x6af,_0x303074._0x503130,_0x303074._0x34a388,0x71a)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x27fc1b,_0x44e55e){const _0x543fed={_0x58b183:0x283,_0x563795:0x2ca,_0x2c31ed:0x41e,_0x3f98e9:0x296,_0x29bacb:0x318,_0x11c7b3:0x36b,_0x12380e:0x2dd,_0x2d5adf:0x300,_0x5665aa:0x326,_0x2f6f1a:0x250,_0x1b6bd2:0x2ec,_0x4fa884:0x372,_0x32eb02:0x2c6,_0x27d969:0x355,_0x34085b:0xf2,_0x3d9e84:0x331,_0x538e79:0x24b,_0x39f022:0x127,_0x28b532:0x1b0,_0x3cb9e2:0x266,_0x3d2e2c:0x83,_0x3a0234:0x1ae,_0xfa4d46:0x399,_0x344661:0x198,_0x11a50f:0x38a,_0x862259:0x1fc,_0x5645a2:0x23b,_0xd935f:0x2cd,_0x340768:0x176,_0x439e59:0x98,_0x4fd199:0x26d,_0x2c362b:0x106,_0x21f91c:0x39b,_0x4e15e2:0x45c,_0x3a4d78:0x43e,_0x4afbc4:0x427,_0x32357:0x2b9,_0x3d514b:0x22d,_0x446c5f:0x1c1,_0x31515a:0xd5,_0x30978a:0x3b7,_0xb6b7d2:0x263,_0x305ff2:0x2c1,_0x228325:0x2b0,_0x5cdc49:0x188,_0x598339:0x3f0,_0x2af105:0x5a,_0x1023d7:0x86,_0x25cf07:0xd0,_0x177e73:0x33c,_0x448515:0x15d,_0x556598:0xb9,_0x243f49:0x9,_0x29a6cd:0x244,_0x18a075:0x158,_0x534677:0x2a7},_0x2ee60d={_0x46ebea:0x38b,_0x1df7e6:0x14f},_0x4c2989={_0x4f3db4:0x2f8,_0x18300c:0x129},{maxBytes:_0x1154c5,sessionDir:_0x20bb65}=_0x44e55e;function _0x3bbb6e(_0x3551f3,_0x2d9372,_0x5b0c97,_0x1aa557){return _0x691723(_0x5b0c97-_0x4c2989._0x4f3db4,_0x2d9372,_0x5b0c97-_0x4c2989._0x18300c,_0x1aa557-0x13a);}if(!_0x27fc1b[_0x35b37e(_0x543fed._0x58b183,_0x543fed._0x563795,_0x543fed._0x2c31ed,_0x543fed._0x3f98e9)]||Buffer[_0x35b37e(0x298,0x323,0x33b,_0x543fed._0x29bacb)](_0x27fc1b['output'],'utf8')<=_0x1154c5)return _0x27fc1b;const _0x467cd3=Buffer[_0x3bbb6e(0x2af,0x32a,0x359,0x451)](_0x27fc1b[_0x3bbb6e(_0x543fed._0x11c7b3,_0x543fed._0x12380e,_0x543fed._0x2d5adf,0x3b6)],_0x35b37e(0x44d,_0x543fed._0x5665aa,0x3c0,0x1e2));if(!_0x20bb65){const _0x37c018=_0x27fc1b[_0x35b37e(_0x543fed._0x2f6f1a,0x2ca,_0x543fed._0x1b6bd2,_0x543fed._0x4fa884)]['slice'](0x0,_0x1154c5);return{..._0x27fc1b,'output':_0x37c018+(_0x3bbb6e(_0x543fed._0x32eb02,_0x543fed._0x27d969,0x1f9,_0x543fed._0x34085b)+_0x1154c5+_0x3bbb6e(0x1d1,_0x543fed._0x3d9e84,0x281,0x170)+_0x467cd3+'\x20bytes).\x20No\x20session\x20directory\x20available\x20for\x20file\x20offload.\x0a</system-reminder>'),'meta':{..._0x27fc1b[_0x35b37e(_0x543fed._0x538e79,_0x543fed._0x39f022,_0x543fed._0x28b532,_0x543fed._0x3cb9e2)],'truncated':!![],'originalBytes':_0x467cd3,'transforms':[..._0x27fc1b[_0x3bbb6e(0x9e,_0x543fed._0x3d2e2c,0x15d,0x197)][_0x35b37e(0xc8,_0x543fed._0x3a0234,0x21e,0xe8)],_0x35b37e(0x170,0x271,_0x543fed._0xfa4d46,_0x543fed._0x344661)]}};}const _0x20a2c1=_0x27fc1b[_0x3bbb6e(_0x543fed._0x11a50f,_0x543fed._0x862259,_0x543fed._0x5645a2,0x395)]+'_'+sanitizeFileName(_0x27fc1b[_0x35b37e(_0x543fed._0xd935f,_0x543fed._0x340768,0x18d,0xe3)])+_0x3bbb6e(0x188,0x14d,0x1ee,_0x543fed._0x32eb02),_0x10fbef=_0x2a4903[_0x3bbb6e(_0x543fed._0x439e59,_0x543fed._0x4fd199,0x1e8,_0x543fed._0x2c362b)](_0x20bb65,_0x20a2c1);function _0x35b37e(_0x5297f6,_0x1122eb,_0x85dbcb,_0x207e63){return _0x2ff7d2(_0x1122eb- -_0x2ee60d._0x46ebea,_0x85dbcb,_0x85dbcb-_0x2ee60d._0x1df7e6,_0x207e63-0x1d1);}await _0x26add2(_0x20bb65,{'recursive':!![]}),await _0x39af24(_0x10fbef,_0x27fc1b[_0x3bbb6e(0x426,0x1da,_0x543fed._0x2d5adf,_0x543fed._0x21f91c)],_0x3bbb6e(0x266,0x2c1,0x35c,_0x543fed._0x4e15e2));let _0x27bfc2=_0x27fc1b[_0x3bbb6e(0x344,_0x543fed._0x3a4d78,0x300,_0x543fed._0x4afbc4)][_0x35b37e(_0x543fed._0x32357,_0x543fed._0x3d514b,_0x543fed._0x446c5f,0x1e2)](0x0,_0x1154c5);const _0x591f5d=_0x27bfc2[_0x3bbb6e(0x124,0x123,_0x543fed._0x31515a,0xac)]('\x0a');_0x591f5d>_0x1154c5*0.5&&(_0x27bfc2=_0x27bfc2[_0x3bbb6e(0x30a,_0x543fed._0x30978a,_0x543fed._0xb6b7d2,_0x543fed._0x305ff2)](0x0,_0x591f5d));const _0x4b3908=['',_0x35b37e(0x3b1,_0x543fed._0x228325,0x3a7,0x19c),'Tool\x20output\x20was\x20truncated\x20at\x20'+_0x1154c5+_0x3bbb6e(_0x543fed._0x5cdc49,_0x543fed._0x598339,0x2c3,0x229)+_0x467cd3+_0x3bbb6e(-_0x543fed._0x2af105,-_0x543fed._0x1023d7,_0x543fed._0x25cf07,0x21a),_0x3bbb6e(0x2b0,0x255,_0x543fed._0x177e73,0x39f)+_0x10fbef,'Use\x20FileRead\x20with\x20lineStart/lineEnd\x20to\x20inspect\x20specific\x20sections\x20of\x20the\x20full\x20output.',_0x35b37e(0x1b5,0x26d,0x211,0x292)]['join']('\x0a');return{..._0x27fc1b,'output':_0x27bfc2+_0x4b3908,'meta':{..._0x27fc1b[_0x3bbb6e(0xfb,0x6b,_0x543fed._0x448515,0xae)],'truncated':!![],'originalBytes':_0x467cd3,'transforms':[..._0x27fc1b[_0x35b37e(_0x543fed._0x556598,_0x543fed._0x39f022,_0x543fed._0x243f49,0x207)][_0x3bbb6e(0x22c,0xc3,0x1e4,_0x543fed._0x29a6cd)],_0x3bbb6e(0x3c4,_0x543fed._0x18a075,_0x543fed._0x534677,0x3ea)]}};}function createUpdateTopicTool(){const _0x4044f7={_0x5710ee:0x59f,_0x5bcd8a:0x4fc,_0xef46e6:0x424,_0x529cde:0x9f},_0x69af46={_0x2da885:0x174,_0x38d5ff:0x1d5,_0x52263e:0x99,_0x4a9309:0x98,_0x8fbb97:0x3b,_0x422971:0xc5,_0x34be24:0x143,_0x506afa:0x31,_0x2c317c:0x171,_0xfb185d:0x139,_0x4bbdbf:0x3,_0x173196:0x12f,_0x917ccd:0x8f,_0x16eaa5:0x2,_0x5e64e7:0x25},_0x4a2f50={_0x541270:0x1b6,_0x4ab527:0x4f},_0x4428ac={_0x340b9b:0x4c,_0x1ed087:0x1d,_0x585e7e:0xa7},_0x4179db={_0x3ae7dd:0x1a,_0x53740c:0xdc,_0x20e94a:0x124},_0x5ab4d2={_0x205dab:0x61,_0x504f49:0x106};function _0x33fe61(_0xb791ac,_0x249673,_0x10ce65,_0x43e85c){return _0x691723(_0x10ce65- -_0x5ab4d2._0x205dab,_0x43e85c,_0x10ce65-0x1e4,_0x43e85c-_0x5ab4d2._0x504f49);}function _0x5c6b42(_0x1489f3,_0x19ac49,_0x432771,_0x2aa96d){return _0x2ff7d2(_0x19ac49-_0x4179db._0x3ae7dd,_0x1489f3,_0x432771-_0x4179db._0x53740c,_0x2aa96d-_0x4179db._0x20e94a);}return defineTool({'name':_0x5c6b42(0x61b,0x57f,0x454,_0x4044f7._0x5710ee),'description':_0x5c6b42(_0x4044f7._0x5bcd8a,0x50f,0x52b,_0x4044f7._0xef46e6),'inputSchema':{'type':_0x33fe61(-0xdf,_0x4044f7._0x529cde,-0x9a,0x8c),'properties':{'topic':{'type':'string'}},'required':['topic']},async *'execute'(_0x54170d,_0x429338){const {topic:_0x1b4693}=_0x54170d;function _0x5585e7(_0x5419d7,_0x490d3c,_0x46fb41,_0x1d9e1d){return _0x33fe61(_0x5419d7-_0x4428ac._0x340b9b,_0x490d3c-_0x4428ac._0x1ed087,_0x1d9e1d-_0x4428ac._0x585e7e,_0x46fb41);}if(typeof _0x1b4693!==_0x1bb55a(_0x69af46._0x2da885,_0x69af46._0x38d5ff,_0x69af46._0x52263e,-_0x69af46._0x4a9309)||_0x1b4693['trim']()[_0x5585e7(_0x69af46._0x8fbb97,-0x9f,0x64,-_0x69af46._0x422971)]===0x0)throw new ToolExecutionError(_0x5585e7(-0x208,-_0x69af46._0x34be24,-_0x69af46._0x506afa,-_0x69af46._0x2c317c),{'error':_0x5585e7(-_0x69af46._0xfb185d,-0x288,_0x69af46._0x4bbdbf,-_0x69af46._0x173196)});function _0x1bb55a(_0x57a5b9,_0x19b097,_0x23e44a,_0xd9625e){return _0x33fe61(_0x57a5b9-_0x4a2f50._0x541270,_0x19b097-_0x4a2f50._0x4ab527,_0x23e44a-0x177,_0x57a5b9);}const _0x5d9861=_0x1b4693[_0x5585e7(_0x69af46._0x917ccd,0x8e,-_0x69af46._0x16eaa5,-_0x69af46._0x5e64e7)]();return _0x429338['setTopic']?.(_0x5d9861),yield createToolOutput('Topic\x20set\x20to\x20\x22'+_0x5d9861+'\x22',{'topic':_0x5d9861}),void 0x0;}});}import{readFile as _0x1f111e,stat as _0x2a5414}from'fs/promises';import*as _0xcf0fd3 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x691723(-0x19d,-0x160,-0x1fc,-0x7b),'high',_0x691723(-0x14e,-0x292,-0x10c,-0x84),_0x2ff7d2(0x45f,0x5b0,0x3ae,0x380)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x1b8cf9,_0x234e10){const _0x281b58={_0x5ca7f9:0x3b5,_0x5d9af4:0x4c3,_0x3d5a0c:0x50c,_0x2489b1:0x39b,_0x5bf848:0x3fb,_0x5ed5d5:0x34b,_0x586065:0x451,_0x44fc75:0x5c4,_0x3885ee:0x71a,_0x3735cc:0x67b,_0x28757f:0x786,_0x56f5c5:0x3b8,_0x38e973:0x2d4,_0x5a90d8:0x4dd,_0x429dd4:0x5b7,_0x5e016b:0x4b3,_0x37bdfc:0x4a7,_0x2b5718:0x4ca,_0x1679a5:0x3dc,_0x326acb:0x38c,_0x5ae5b5:0x318,_0x5b8dbc:0x43f,_0x392daa:0x450,_0x19f27e:0x53c,_0x5d43e2:0x56a,_0x2648e8:0x5eb,_0x2f6342:0x45f,_0xce237c:0x5c6,_0x5399ca:0x565,_0x1cdd0a:0x6b7,_0x135fd0:0x379,_0x1b21d0:0x466,_0x2aac0c:0x33a,_0xb841da:0x4d6,_0x113462:0x485,_0x16d4a2:0x4a4,_0x138053:0x3a7,_0x31d0ea:0x2cf,_0x2b8642:0x28a,_0x51bf9a:0x31d,_0x164394:0x565,_0x3a676b:0x587,_0x2ad336:0x34f},_0x5a0d76={_0x33fc5e:0x132,_0x1519e4:0xb4},_0x4301a0={_0x19b36e:0x552,_0x11de79:0x135,_0x1eda32:0xbf};if(_0x1b8cf9[_0x249504(_0x281b58._0x5ca7f9,0x3a1,_0x281b58._0x5d9af4,0x3dc)](0x0,0x8)['equals'](PNG_SIGNATURE))return'image/png';function _0x249504(_0x52f7fb,_0x76063,_0x3c04d8,_0x1c169a){return _0x691723(_0x1c169a-_0x4301a0._0x19b36e,_0x52f7fb,_0x3c04d8-_0x4301a0._0x11de79,_0x1c169a-_0x4301a0._0x1eda32);}if(_0x1b8cf9[0x0]===0xff&&_0x1b8cf9[0x1]===0xd8&&_0x1b8cf9[0x2]===0xff)return'image/jpeg';const _0x70e55c=_0x1b8cf9[_0x23a9ea(0x4dd,_0x281b58._0x3d5a0c,0x45c,0x39b)](0x0,0x6)[_0x249504(0x428,_0x281b58._0x2489b1,_0x281b58._0x5bf848,_0x281b58._0x5ed5d5)](_0x249504(_0x281b58._0x586065,0x370,0x413,0x43f));if(_0x70e55c===_0x23a9ea(_0x281b58._0x44fc75,0x5bc,_0x281b58._0x3885ee,0x4a8)||_0x70e55c===_0x23a9ea(0x67c,_0x281b58._0x3735cc,_0x281b58._0x28757f,0x711))return _0x23a9ea(0x41e,_0x281b58._0x56f5c5,0x4c9,_0x281b58._0x38e973);if(_0x1b8cf9[_0x23a9ea(_0x281b58._0x5a90d8,_0x281b58._0x429dd4,_0x281b58._0x5e016b,_0x281b58._0x37bdfc)](0x0,0x4)[_0x23a9ea(0x44c,0x534,0x564,0x48c)]('ascii')==='RIFF'&&_0x1b8cf9[_0x249504(0x41b,0x2d4,_0x281b58._0x2b5718,_0x281b58._0x1679a5)](0x8,0xc)[_0x249504(0x3b2,0x29f,0x3b4,_0x281b58._0x5ed5d5)](_0x249504(_0x281b58._0x326acb,_0x281b58._0x5ae5b5,0x47b,_0x281b58._0x5b8dbc))==='WEBP')return _0x23a9ea(_0x281b58._0x392daa,_0x281b58._0x19f27e,0x2fa,0x4b0);const _0x20bbb4=_0xcf0fd3[_0x23a9ea(_0x281b58._0x5d43e2,0x412,0x45d,0x548)](_0x234e10)[_0x23a9ea(0x571,_0x281b58._0x2648e8,_0x281b58._0x2f6342,0x6a1)]();if(_0x20bbb4===_0x249504(_0x281b58._0xce237c,0x68a,0x687,0x530))return _0x23a9ea(_0x281b58._0x5399ca,0x598,_0x281b58._0x1cdd0a,0x5d0);if(_0x20bbb4===_0x249504(_0x281b58._0x135fd0,0x4c9,_0x281b58._0x1b21d0,0x4ce)||_0x20bbb4===_0x249504(_0x281b58._0x2aac0c,0x318,0x2e5,0x398))return _0x249504(_0x281b58._0xb841da,_0x281b58._0x113462,0x539,0x4f8);if(_0x20bbb4===_0x249504(0x3c5,_0x281b58._0x16d4a2,_0x281b58._0x138053,0x39c))return _0x249504(_0x281b58._0x31d0ea,0x1c9,_0x281b58._0x2b8642,_0x281b58._0x51bf9a);function _0x23a9ea(_0x3c5b6b,_0x36a9cb,_0x1327a6,_0xf757be){return _0x2ff7d2(_0x3c5b6b-0x6,_0xf757be,_0x1327a6-_0x5a0d76._0x33fc5e,_0xf757be-_0x5a0d76._0x1519e4);}if(_0x20bbb4===_0x249504(_0x281b58._0x164394,0x529,0x648,_0x281b58._0x3a676b))return _0x249504(0x26f,0x385,0x391,_0x281b58._0x2ad336);return void 0x0;}function normalizeDetail(_0x4cadc5){const _0x40a3cc={_0x24c97c:0x6cd,_0xdc2335:0x66f,_0x187784:0x5d6,_0x1d8937:0x5f8,_0x109955:0x775,_0x12c53f:0x4e4,_0x4a0fa7:0x35e,_0x46e448:0x39d,_0x5d00ab:0x3a1},_0x25ace2={_0x28839a:0xf1},_0x39b120={_0x493421:0x1c4,_0x207eac:0x9d};function _0x444e83(_0x1d3a0c,_0x615d39,_0x1eb5fe,_0x248d17){return _0x2ff7d2(_0x248d17-0x8d,_0x615d39,_0x1eb5fe-_0x39b120._0x493421,_0x248d17-_0x39b120._0x207eac);}function _0x4f903b(_0x71ca44,_0x2c93ee,_0x3fe031,_0x1734b5){return _0x2ff7d2(_0x3fe031- -0x1f2,_0x71ca44,_0x3fe031-0xd9,_0x1734b5-_0x25ace2._0x28839a);}if(_0x4cadc5===void 0x0)return void 0x0;const _0x2249de=_0x4cadc5[_0x444e83(0x6ed,_0x40a3cc._0x24c97c,0x5b2,_0x40a3cc._0xdc2335)]()[_0x444e83(_0x40a3cc._0x187784,0x70b,0x4ce,_0x40a3cc._0x1d8937)]();if(!SUPPORTED_DETAILS[_0x444e83(0x62b,0x6a4,_0x40a3cc._0x109955,0x670)](_0x2249de))throw new ToolExecutionError(_0x4f903b(_0x40a3cc._0x12c53f,_0x40a3cc._0x4a0fa7,_0x40a3cc._0x46e448,_0x40a3cc._0x5d00ab)+_0x4cadc5,{'detail':_0x4cadc5});return _0x2249de;}function createViewFileTool(_0x56c0f6={}){const _0x1e56a6={_0x29588c:0x540,_0x2f8a2:0x4c6,_0x16fedf:0x3cb,_0x3bf4cd:0x4f5,_0x4de4a1:0x4e6,_0x206891:0x537,_0x3d7f73:0x36d,_0x1dadac:0x35b,_0xa32f41:0x2f7,_0x3cce59:0x35a,_0xbd289a:0x481,_0x4ce487:0x2b7,_0xf32da8:0x539,_0x3ce377:0x587,_0x44d077:0x45f,_0x3747e5:0x3e8,_0x248c86:0x3e9,_0x13dfa2:0x2c2},_0x340800={_0x53ad08:0x857,_0x2a13de:0x7a4,_0x524713:0x465,_0x4d4cc3:0x67c,_0x2e4314:0x755,_0x2ab8ba:0x6e5,_0x2d2fd3:0x542,_0x45a062:0x3f9,_0xb8b10f:0x59c,_0x1a4e80:0x4ec,_0x4f6cc0:0x640,_0x4df2bc:0x534,_0x4542db:0x770,_0x5919ff:0x743,_0x3d941d:0x45c,_0x55b529:0x5b0,_0x1ddb8b:0x585,_0x350afe:0x634,_0x2f9bec:0x5d4,_0x251ff8:0x6fb,_0x167d8e:0x48d,_0x2979d1:0x483,_0x57e33d:0x537,_0x1a3958:0x358,_0x10479f:0x6e9,_0x49b40b:0x6bb,_0x1232e6:0x525,_0x36d542:0x59d,_0x561b37:0x6cb,_0x118646:0x86f,_0x4f4416:0x4ed,_0x4a38fe:0x4d5,_0x5b7059:0x617,_0x4bf359:0x533,_0x486e4c:0x5f7,_0x5caeb0:0x547,_0x148ba6:0x507,_0x106058:0x5fe,_0x107031:0x66c,_0x45a3d5:0x7ba,_0xec5939:0x51c,_0x388a95:0x4e3,_0x2548f5:0x699,_0x116c73:0x83d,_0x5bdda2:0x6b0,_0x4aac45:0x705,_0x4fd1ed:0x6b7},_0x550681={_0x645eec:0x32},_0x141fd2={_0x166b7c:0x4fa,_0x220a4d:0x134},_0x517586=_0xcf0fd3[_0x59843b(_0x1e56a6._0x29588c,_0x1e56a6._0x2f8a2,0x4d2,0x418)](_0x56c0f6[_0x59843b(0x36f,0x231,0x4cb,_0x1e56a6._0x16fedf)]??process[_0x59843b(_0x1e56a6._0x3bf4cd,_0x1e56a6._0x4de4a1,0x5b1,_0x1e56a6._0x206891)]());function _0x59843b(_0x49fb3d,_0x359a31,_0x1ab0d7,_0x227b29){return _0x691723(_0x49fb3d-_0x141fd2._0x166b7c,_0x359a31,_0x1ab0d7-_0x141fd2._0x220a4d,_0x227b29-0x76);}const _0x26b8ce=(_0x56c0f6[_0x59843b(_0x1e56a6._0x3d7f73,_0x1e56a6._0x1dadac,_0x1e56a6._0xa32f41,0x24b)]??[])['map'](_0x2f0811=>_0xcf0fd3[_0x484635(0x334,0x420,0x468,0x566)](_0x2f0811));function _0x484635(_0x37810e,_0x2d948c,_0x4e449e,_0x162078){return _0x2ff7d2(_0x4e449e- -0x22b,_0x2d948c,_0x4e449e-0x107,_0x162078-0x4c);}const _0x464c40=_0x56c0f6['maxBytes']??DEFAULT_MAX_BYTES,_0x1e89ef=_0x56c0f6[_0x59843b(_0x1e56a6._0x3cce59,_0x1e56a6._0xbd289a,0x208,_0x1e56a6._0x4ce487)]??_0x59843b(_0x1e56a6._0xf32da8,0x4f1,_0x1e56a6._0x3ce377,_0x1e56a6._0x44d077);return defineTool({'name':_0x1e89ef,'description':'View\x20an\x20image\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories\x20so\x20the\x20model\x20can\x20inspect\x20its\x20visual\x20content.\x20Supports\x20PNG,\x20JPEG,\x20WebP,\x20and\x20GIF\x20images.\x20Use\x20this\x20for\x20screenshots,\x20diagrams,\x20photos,\x20and\x20other\x20image\x20files;\x20use\x20FileRead\x20for\x20text\x20files.','inputSchema':{'type':_0x484635(0x4a8,_0x1e56a6._0x3747e5,_0x1e56a6._0x248c86,0x2ca),'properties':{'path':{'type':'string'},'detail':{'type':'string'}},'required':[_0x484635(0x350,0x34d,_0x1e56a6._0x13dfa2,0x1d0)]},async *'execute'(_0x560fec){const _0x40b8fe={_0x4d5c58:0x17a},_0x4e926a=resolveAllowedPath(_0x517586,_0x26b8ce,_0x560fec['path']);await assertWorkspaceFile(_0x4e926a);function _0x12d88b(_0x207e62,_0x2cd4fe,_0x165925,_0x4f65db){return _0x59843b(_0x207e62-0x1a8,_0x4f65db,_0x165925-0x45,_0x4f65db-_0x550681._0x645eec);}const _0x271c53=await _0x2a5414(_0x4e926a);if(_0x271c53[_0x5f5dd8(_0x340800._0x53ad08,_0x340800._0x2a13de,0x755,0x688)]>_0x464c40)throw new ToolExecutionError(_0x12d88b(0x4bc,0x409,0x393,_0x340800._0x524713)+_0x560fec['path'],{'path':_0x560fec[_0x5f5dd8(0x472,0x6fe,0x5ae,0x66b)],'maxBytes':_0x464c40,'size':_0x271c53[_0x5f5dd8(_0x340800._0x4d4cc3,0x6ed,_0x340800._0x2e4314,_0x340800._0x2ab8ba)]});const _0x1076d0=await _0x1f111e(_0x4e926a),_0x28b7f0=detectImageMediaType(_0x1076d0,_0x4e926a);if(!_0x28b7f0)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x560fec['path'],{'path':_0x560fec[_0x12d88b(_0x340800._0x2d2fd3,_0x340800._0x45a062,_0x340800._0xb8b10f,0x48e)],'supported':[_0x12d88b(_0x340800._0x1a4e80,_0x340800._0x4f6cc0,0x46e,0x550),_0x5f5dd8(0x619,_0x340800._0x4df2bc,0x554,0x580),'.jpg',_0x5f5dd8(_0x340800._0x4542db,0x772,0x6ec,0x740),_0x5f5dd8(0x74e,0x7ff,_0x340800._0x5919ff,0x654)]});const _0x1b1d70=normalizeDetail(_0x560fec[_0x5f5dd8(_0x340800._0x3d941d,0x594,_0x340800._0x55b529,_0x340800._0x1ddb8b)]);function _0x5f5dd8(_0xcd0972,_0x57c1c,_0x4bb96b,_0x1af44e){return _0x484635(_0xcd0972-_0x40b8fe._0x4d5c58,_0x57c1c,_0x4bb96b-0x2ec,_0x1af44e-0x1f0);}const _0x15bac1=[_0x5f5dd8(0x5a0,0x526,_0x340800._0x350afe,_0x340800._0x2f9bec)+_0x560fec[_0x5f5dd8(0x4dd,_0x340800._0x251ff8,0x5ae,0x45c)],_0x12d88b(0x47c,0x487,0x49f,0x3bd)+_0x28b7f0,_0x12d88b(_0x340800._0x167d8e,_0x340800._0x2979d1,_0x340800._0x57e33d,_0x340800._0x1a3958)+_0x271c53[_0x12d88b(_0x340800._0x10479f,_0x340800._0x49b40b,0x66f,0x5c6)]+_0x5f5dd8(_0x340800._0x1232e6,0x69d,_0x340800._0x36d542,_0x340800._0x561b37)]['concat'](_0x1b1d70?[_0x5f5dd8(0x7dd,_0x340800._0x118646,0x784,0x740)+_0x1b1d70]:[])[_0x12d88b(0x592,0x5c1,0x5be,0x620)]('\x0a'),_0x5bb38e=[{'type':_0x5f5dd8(_0x340800._0x4f4416,_0x340800._0x4a38fe,_0x340800._0x5b7059,_0x340800._0x4bf359),'source':{'type':'base64','media_type':_0x28b7f0,'data':_0x1076d0[_0x5f5dd8(_0x340800._0x486e4c,_0x340800._0x5caeb0,_0x340800._0x148ba6,0x648)](_0x12d88b(0x699,0x643,_0x340800._0x106058,0x6f2))}},{'type':_0x12d88b(_0x340800._0x107031,_0x340800._0x45a3d5,0x5c3,_0x340800._0xec5939),'text':_0x15bac1}];return yield createToolOutput(_0x15bac1,{'path':_0x560fec['path'],'resolvedPath':_0x4e926a,'created':_0x271c53[_0x12d88b(0x60a,0x60b,_0x340800._0x388a95,0x5fc)]['toISOString'](),'modified':_0x271c53['mtime']['toISOString'](),'size':_0x271c53[_0x5f5dd8(_0x340800._0x2548f5,0x68e,0x755,_0x340800._0x116c73)],'mimeType':_0x28b7f0,'encoding':_0x5f5dd8(0x69c,_0x340800._0x5bdda2,_0x340800._0x4aac45,_0x340800._0x4fd1ed),..._0x1b1d70?{'detail':_0x1b1d70}:{}},_0x5bb38e),void 0x0;}});}import _0x4e8eea from'turndown';var USER_AGENT=_0x2ff7d2(0x697,0x5d5,0x581,0x60d),DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x294665){const _0x119f3b={_0x55b6c8:0x1a7,_0xa38ef:0x247,_0x572839:0x238,_0x7824b7:0x1c9,_0x3682ca:0x64,_0x4aae96:0x13f,_0x353a2b:0x1ee,_0x47281a:0x147,_0x30e8d4:0x4a8,_0x3498dd:0x4f7,_0x375067:0x171,_0x58ae7f:0x13d,_0x1f337d:0xe6,_0x5dd724:0x1be,_0x26103c:0x40,_0x30da7b:0xde,_0x233ec6:0x219,_0x4c86ad:0x282,_0x19e391:0x15a,_0x5cdae9:0x4c2,_0x3a4719:0x45e},_0x1f31c3={_0x3745da:0x380,_0x23ef0f:0xa9,_0x26930b:0x13a},_0x2bd136={_0x25bb1d:0x2};let _0x33c032;try{_0x33c032=new URL(_0x294665);}catch{throw new ToolExecutionError(_0x153fb8(_0x119f3b._0x55b6c8,0x2f4,_0x119f3b._0xa38ef,0x126),{'url':_0x294665});}if(_0x33c032[_0xc2d5a(-0x14b,-_0x119f3b._0x572839,-0xde,-0x33)]!==_0xc2d5a(-_0x119f3b._0x7824b7,-_0x119f3b._0x3682ca,-_0x119f3b._0x4aae96,0x0)&&_0x33c032[_0x153fb8(0x159,0x1d4,_0x119f3b._0x353a2b,_0x119f3b._0x47281a)]!==_0x153fb8(_0x119f3b._0x30e8d4,0x37f,0x3d6,_0x119f3b._0x3498dd))throw new ToolExecutionError(_0xc2d5a(-0x116,0x7b,-0xb4,-0xde),{'url':_0x294665});if(_0x33c032[_0x153fb8(0x177,_0x119f3b._0x375067,0x28f,0x2e0)]||_0x33c032[_0x153fb8(0x54,0x95,0x189,0xa9)])throw new ToolExecutionError(_0xc2d5a(-0x7,-0x21c,-_0x119f3b._0x58ae7f,-_0x119f3b._0x1f337d),{'url':_0x33c032[_0xc2d5a(-_0x119f3b._0x5dd724,_0x119f3b._0x26103c,-_0x119f3b._0x30da7b,0x22)]+'//'+_0x33c032[_0x153fb8(_0x119f3b._0x233ec6,0x3c0,_0x119f3b._0x4c86ad,_0x119f3b._0x19e391)]+_0x33c032[_0x153fb8(_0x119f3b._0x5cdae9,0x3a0,0x3ba,_0x119f3b._0x3a4719)]});function _0xc2d5a(_0x730d32,_0x4fd2bd,_0x2328c9,_0x3252e9){return _0x2ff7d2(_0x2328c9- -0x599,_0x730d32,_0x2328c9-_0x2bd136._0x25bb1d,_0x3252e9-0x3e);}function _0x153fb8(_0x15a58f,_0x98fdf6,_0x1e620c,_0x19815c){return _0x691723(_0x1e620c-_0x1f31c3._0x3745da,_0x98fdf6,_0x1e620c-_0x1f31c3._0x23ef0f,_0x19815c-_0x1f31c3._0x26930b);}return _0x33c032;}function createTimeoutSignal(_0x3df0fd,_0xe30dcb){const _0x154f36={_0x3f3f6c:0x5c,_0x2191ef:0xb7,_0x1bd8c0:0x53,_0x1431c4:0x47e,_0x1f0a0f:0x482,_0x4ca20f:0x5f8,_0x466a6a:0x631,_0x47704d:0x5a9,_0x2e930f:0x588,_0x3a8e78:0x10e,_0x35b41b:0x56,_0x5db816:0x46,_0x4dfc91:0xda},_0x36cb12={_0xc0e24e:0xc5,_0x45a695:0x53,_0x2e706:0xff,_0x5f00a7:0xe},_0x5c927f={_0x4061db:0x181,_0x3ce7d5:0x89,_0x9aa182:0x441},_0x3cdb29={_0x3ed6c7:0xc6},_0x4ba908={_0x21f703:0xf7,_0x2e7139:0xe1},_0x4fbd81=new AbortController(),_0xf51d63=setTimeout(()=>_0x4fbd81[_0x2ca086(0x632,0x54c,0x551,0x660)](new Error(_0x25956a(-0x85,0xca,-0x37,0x42))),_0xe30dcb);function _0x2ca086(_0x5a75a6,_0x3cecb1,_0x36327a,_0xc0a2ef){return _0x691723(_0x36327a-0x716,_0xc0a2ef,_0x36327a-_0x4ba908._0x21f703,_0xc0a2ef-_0x4ba908._0x2e7139);}const _0x250ddc=()=>_0x4fbd81['abort'](_0x3df0fd['reason']);function _0x25956a(_0x495213,_0x86f89e,_0x1120fb,_0x1884a8){return _0x2ff7d2(_0x1120fb- -0x442,_0x495213,_0x1120fb-0x2e,_0x1884a8-_0x3cdb29._0x3ed6c7);}return _0x3df0fd[_0x25956a(-_0x154f36._0x3f3f6c,0x13f,_0x154f36._0x2191ef,_0x154f36._0x1bd8c0)]?_0x4fbd81[_0x2ca086(_0x154f36._0x1431c4,0x5f6,0x551,_0x154f36._0x1f0a0f)](_0x3df0fd[_0x2ca086(_0x154f36._0x4ca20f,0x76e,0x6fb,_0x154f36._0x466a6a)]):_0x3df0fd[_0x2ca086(0x4c6,0x4e1,_0x154f36._0x47704d,_0x154f36._0x2e930f)](_0x25956a(_0x154f36._0x3a8e78,-_0x154f36._0x35b41b,_0x154f36._0x5db816,-_0x154f36._0x4dfc91),_0x250ddc,{'once':!![]}),{'signal':_0x4fbd81[_0x2ca086(0x404,0x458,0x4e2,0x551)],'cleanup':()=>{const _0x4c328a={_0x5101a3:0x165,_0x2d7d71:0x145,_0x22720c:0x9a};function _0x3fa5da(_0x22c376,_0x478fa6,_0x3f6eac,_0x354acd){return _0x2ca086(_0x22c376-_0x5c927f._0x4061db,_0x478fa6-_0x5c927f._0x3ce7d5,_0x354acd- -_0x5c927f._0x9aa182,_0x22c376);}function _0x2667ec(_0x472c62,_0x40914b,_0x205f7f,_0x15bebf){return _0x25956a(_0x40914b,_0x40914b-_0x4c328a._0x5101a3,_0x205f7f- -_0x4c328a._0x2d7d71,_0x15bebf-_0x4c328a._0x22720c);}clearTimeout(_0xf51d63),_0x3df0fd[_0x3fa5da(0x23a,_0x36cb12._0xc0e24e,0x79,0x1d4)](_0x2667ec(-0x133,_0x36cb12._0x45a695,-_0x36cb12._0x2e706,-_0x36cb12._0x5f00a7),_0x250ddc);}};}function createWebFetchTool(_0xeda3b5={}){const _0x2e19fd={_0x30cd75:0x6e3,_0x3e45ff:0x645,_0x9fa9bb:0x72a,_0x278d51:0x649,_0x326c5c:0x7b5,_0x531135:0x5f9,_0x47496a:0x798,_0x438456:0x700,_0x513ee6:0x622,_0x44b096:0x5ab,_0x5dca9a:0x5ae,_0x21ee12:0x690,_0x266fff:0x328,_0x4e087a:0x3c9,_0x5e14cf:0x759,_0x13901b:0x7e9,_0x4a9db3:0x48c,_0x14cb66:0x439,_0x129b01:0x599,_0x289f82:0x243,_0x3d9de1:0x4fe,_0x4e04af:0x3bc,_0x190dae:0x6f5,_0x363e51:0x60a,_0x2bc032:0x6b1,_0x3e4bb1:0x6aa,_0x1865fe:0x7e9,_0x26b2ed:0x44b,_0x42af13:0x558,_0x2f2ab6:0x4ce},_0xc28ac6={_0x52802e:0x34e,_0xb17118:0x4b,_0xa611c4:0x208,_0x9e739f:0x20,_0x39184f:0xce,_0x5739e5:0xa4,_0x58bb6f:0x1ae,_0x4aa5b7:0x263,_0xf94b61:0x1cd,_0x3dabd7:0x18,_0x171a3c:0x5f,_0x2ce181:0x196,_0x3ce175:0x264,_0x3f49e7:0xd2,_0x296038:0x119,_0x5e4b06:0x17c,_0x53a175:0x24e,_0x2e37fc:0xf3,_0x14bfd6:0xab,_0x10fd9c:0x2db,_0x3e1a8f:0x189,_0x2850a5:0x1bf,_0x56b4d2:0x2d9,_0x12fa51:0x212,_0x5aaf98:0x232,_0x290b7d:0x288,_0x8b4766:0x2b9,_0x49f77c:0x2e8,_0x29b44e:0x1b8,_0xf20b15:0x2da,_0x3a838d:0x193,_0x15350f:0x122,_0x1de1a7:0x1f6,_0x42aa52:0x182,_0x51bee8:0x10f,_0x596809:0x382,_0x505272:0x1e,_0x57376f:0x12,_0xe9cd33:0x6c,_0x4bed35:0x11d,_0x372d11:0x46,_0x5036c3:0x14c,_0x5e645d:0x23e,_0x521357:0x2da,_0x18050d:0x188},_0xe26347={_0x430c1a:0xe4},_0x31207a={_0x1b8775:0x72e,_0xfd1495:0x7a},_0x52d593=_0xeda3b5[_0x5c2568(0x58e,0x4c5,_0x2e19fd._0x30cd75,_0x2e19fd._0x3e45ff)]??'WebFetch';function _0x5c2568(_0x213684,_0x1f966e,_0x555e36,_0x355c44){return _0x691723(_0x213684-_0x31207a._0x1b8775,_0x355c44,_0x555e36-0xc5,_0x355c44-_0x31207a._0xfd1495);}const _0x12025c=_0xeda3b5[_0x5c2568(_0x2e19fd._0x9fa9bb,_0x2e19fd._0x278d51,_0x2e19fd._0x326c5c,_0x2e19fd._0x531135)]??DEFAULT_TIMEOUT_MS2,_0x47c989=new _0x4e8eea({'headingStyle':_0x5c2568(_0x2e19fd._0x47496a,0x676,0x71e,_0x2e19fd._0x438456),'codeBlockStyle':_0x5c2568(_0x2e19fd._0x513ee6,0x6cb,_0x2e19fd._0x44b096,_0x2e19fd._0x5dca9a),'bulletListMarker':'-'});function _0x4e77f3(_0x4d4e70,_0x3bfd05,_0x5ea359,_0x21e8a7){return _0x691723(_0x4d4e70-0x50d,_0x5ea359,_0x5ea359-0x31,_0x21e8a7-_0xe26347._0x430c1a);}return _0x47c989['remove']([_0x5c2568(0x536,0x5b4,_0x2e19fd._0x21ee12,0x402),'style',_0x4e77f3(_0x2e19fd._0x266fff,_0x2e19fd._0x4e087a,0x479,0x2e8),_0x5c2568(_0x2e19fd._0x5e14cf,0x73c,_0x2e19fd._0x13901b,0x671),_0x4e77f3(0x4c5,0x5c4,_0x2e19fd._0x4a9db3,0x5d7),_0x4e77f3(0x31b,0x237,0x45b,_0x2e19fd._0x14cb66),_0x5c2568(0x690,_0x2e19fd._0x129b01,0x553,0x724),_0x4e77f3(0x331,_0x2e19fd._0x289f82,0x395,0x42c)]),defineTool({'name':_0x52d593,'description':_0x5c2568(0x4fb,0x473,_0x2e19fd._0x3d9de1,_0x2e19fd._0x4e04af),'inputSchema':{'type':_0x5c2568(_0x2e19fd._0x190dae,0x65b,0x801,_0x2e19fd._0x363e51),'properties':{'description':{'type':_0x5c2568(_0x2e19fd._0x2bc032,0x7aa,0x7bb,_0x2e19fd._0x3e4bb1)},'url':{'type':_0x5c2568(_0x2e19fd._0x2bc032,_0x2e19fd._0x1865fe,0x5ce,0x7cf)}},'required':[_0x4e77f3(_0x2e19fd._0x26b2ed,0x400,_0x2e19fd._0x42af13,_0x2e19fd._0x2f2ab6)]},async *'execute'(_0x156364,_0x423d2a){const _0x4a29cf={_0x380e7c:0x42c,_0x2ffafc:0x1bb,_0x2fea86:0x1d8},_0x471da4={_0x43c756:0x15f,_0x6e5842:0x8e},_0x11e7b3=assertFetchableUrl(_0x156364[_0x478b8b(_0xc28ac6._0x52802e,0x1a2,0x12a,0x259)])['toString']();if(_0x423d2a[_0x14ad21(-_0xc28ac6._0xb17118,_0xc28ac6._0xa611c4,_0xc28ac6._0x9e739f,_0xc28ac6._0x39184f)][_0x14ad21(_0xc28ac6._0x5739e5,0xb4,0x199,_0xc28ac6._0x58bb6f)])throw new ToolExecutionError(_0x14ad21(_0xc28ac6._0x4aa5b7,0x1d6,0xaa,_0xc28ac6._0xf94b61),{'url':_0x11e7b3});const _0x3b8958=createTimeoutSignal(_0x423d2a['signal'],_0x12025c);let _0x52db38='',_0x1df0a1=0x0,_0x1da399;function _0x478b8b(_0xfb5509,_0x790fa6,_0x47942f,_0x5b802f){return _0x5c2568(_0x5b802f- -0x413,_0x790fa6-_0x471da4._0x43c756,_0x47942f-_0x471da4._0x6e5842,_0x47942f);}try{const _0x28ab72=await fetch(_0x11e7b3,{'headers':{'User-Agent':USER_AGENT},'signal':_0x3b8958[_0x478b8b(-_0xc28ac6._0x3dabd7,-_0xc28ac6._0x171a3c,0xd0,0xe7)]});if(!_0x28ab72['ok'])throw new ToolExecutionError(_0x478b8b(_0xc28ac6._0x2ce181,0x301,_0xc28ac6._0x3ce175,0x290)+_0x28ab72[_0x14ad21(0x6,0x213,_0xc28ac6._0x3f49e7,_0xc28ac6._0x296038)]+'\x20'+_0x28ab72[_0x14ad21(0x1a7,0x1b3,_0xc28ac6._0x5e4b06,0x16b)],{'url':_0x11e7b3,'statusCode':_0x28ab72[_0x14ad21(0x9f,_0xc28ac6._0x53a175,_0xc28ac6._0x2e37fc,0x119)]});_0x52db38=_0x28ab72[_0x478b8b(_0xc28ac6._0x14bfd6,_0xc28ac6._0x10fd9c,_0xc28ac6._0x3e1a8f,_0xc28ac6._0x2850a5)][_0x478b8b(_0xc28ac6._0x56b4d2,_0xc28ac6._0x12fa51,0x241,0x23d)]('content-type')??'',_0x1df0a1=_0x28ab72['status'],_0x1da399=await _0x28ab72[_0x478b8b(_0xc28ac6._0x5aaf98,_0xc28ac6._0x290b7d,_0xc28ac6._0x8b4766,0x2e5)]();}catch(_0x26ac3b){if(_0x26ac3b instanceof ToolExecutionError)throw _0x26ac3b;const _0x15be8d=_0x26ac3b instanceof Error?_0x26ac3b[_0x14ad21(0x259,0x150,_0xc28ac6._0x49f77c,_0xc28ac6._0x29b44e)]:String(_0x26ac3b);throw new ToolExecutionError(_0x15be8d,{'url':_0x11e7b3});}finally{_0x3b8958[_0x14ad21(0x17f,_0xc28ac6._0xf20b15,0xb8,_0xc28ac6._0x3a838d)]();}function _0x14ad21(_0x4f254b,_0x417287,_0x32786c,_0x17e896){return _0x5c2568(_0x17e896- -_0x4a29cf._0x380e7c,_0x417287-_0x4a29cf._0x2ffafc,_0x32786c-_0x4a29cf._0x2fea86,_0x417287);}const _0x4c3428=new Date()['toISOString']();let _0xf7201c,_0x5f0136;if(_0x52db38['includes']('application/json'))_0xf7201c=_0x478b8b(0x201,0x23,0x1e4,_0xc28ac6._0x15350f)+_0x1da399+'\x0a```',_0x5f0136=_0x14ad21(_0xc28ac6._0x1de1a7,_0xc28ac6._0x42aa52,_0xc28ac6._0x51bee8,0x213);else _0x52db38[_0x478b8b(_0xc28ac6._0x596809,0x4ab,0x273,0x381)](_0x14ad21(_0xc28ac6._0x505272,0x71,0x195,0x134))?(_0xf7201c=_0x47c989[_0x478b8b(0x18,_0xc28ac6._0x57376f,_0xc28ac6._0xe9cd33,_0xc28ac6._0x4bed35)](_0x1da399),_0x5f0136=_0x478b8b(_0xc28ac6._0x372d11,_0xc28ac6._0x5036c3,_0xc28ac6._0x5e645d,0x116)):(_0xf7201c=_0x1da399,_0x5f0136=_0x14ad21(_0xc28ac6._0x521357,0x422,0x37a,0x2cc));return yield createToolOutput(_0xf7201c,{'url':_0x11e7b3,'contentType':_0x52db38,'statusCode':_0x1df0a1,'format':_0x5f0136,'size':_0x1da399[_0x14ad21(0x274,0x32d,_0xc28ac6._0x18050d,0x1f7)],'fetchedAt':_0x4c3428}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x2ff7d2(0x5f7,0x6df,0x6cc,0x5e2);function normalizeUrl(_0x1f106d){const _0x1c0108={_0x1045ec:0x64,_0x964b1a:0x3f,_0x1371b3:0x157,_0xa8aab3:0x3e6,_0x47a8d4:0x58f,_0x5b8b35:0x527,_0x4bfb00:0x305,_0x21d1b2:0x65b,_0x2d09a1:0x147,_0x1079d5:0x5,_0x2f1ed6:0x25f,_0x1aded2:0x61,_0x5491e1:0x167,_0x4d980a:0x2d,_0x5c85a6:0x5cb,_0x29516a:0x62b,_0x158434:0x54f,_0x4442a6:0xad},_0x3b29e4={_0x47c1b0:0xe7},_0x4f97fe={_0x1dfae7:0x1e7,_0x494362:0x171,_0x4ed05d:0x2c};function _0x3ed558(_0x4e8c42,_0x188fd0,_0x133154,_0x4379bb){return _0x691723(_0x4e8c42-_0x4f97fe._0x1dfae7,_0x133154,_0x133154-_0x4f97fe._0x494362,_0x4379bb-_0x4f97fe._0x4ed05d);}function _0x1fed59(_0x2fe6c1,_0x3878bd,_0x532902,_0x48e4f9){return _0x691723(_0x48e4f9-0x65e,_0x532902,_0x532902-0x94,_0x48e4f9-_0x3b29e4._0x47c1b0);}try{const _0x42048a=new URL(_0x1f106d);for(const _0x37599c of[_0x3ed558(_0x1c0108._0x1045ec,_0x1c0108._0x964b1a,_0x1c0108._0x1371b3,0xd9),_0x1fed59(_0x1c0108._0xa8aab3,0x62b,0x45e,0x533),_0x1fed59(_0x1c0108._0x47a8d4,_0x1c0108._0x5b8b35,0x562,0x5b2),_0x3ed558(0x1ab,0xc3,0x194,_0x1c0108._0x4bfb00),_0x1fed59(_0x1c0108._0x21d1b2,0x500,0x583,0x5f5),_0x3ed558(_0x1c0108._0x2d09a1,_0x1c0108._0x1079d5,_0x1c0108._0x2f1ed6,0x258),_0x1fed59(0x402,0x405,0x4d2,0x4ac),_0x3ed558(_0x1c0108._0x1aded2,-0x6d,_0x1c0108._0x5491e1,-_0x1c0108._0x4d980a),_0x1fed59(_0x1c0108._0x5c85a6,0x4df,_0x1c0108._0x29516a,_0x1c0108._0x158434)]){_0x42048a['searchParams']['delete'](_0x37599c);}return _0x42048a[_0x3ed558(-0x20,-_0x1c0108._0x4442a6,0xef,-0x52)]();}catch{return _0x1f106d;}}function cseDateRestrict(_0x56f201){const _0x16eb9e={_0x107abf:0x652,_0x934964:0x679,_0x56450b:0x693,_0x1e620d:0x545,_0x5db0cb:0x7e5,_0x834684:0x69d,_0x1a3f59:0xf0},_0x238c63={_0x3af92b:0x16c},_0x235d7c={_0x34bffa:0x5a3};function _0x856c7c(_0x2663da,_0x370c7a,_0x390743,_0x5e0003){return _0x2ff7d2(_0x390743- -_0x235d7c._0x34bffa,_0x370c7a,_0x390743-0x54,_0x5e0003-0x7a);}if(_0x56f201<=0x0)return void 0x0;if(_0x56f201<=0x1e)return'd'+Math[_0x2a490a(_0x16eb9e._0x107abf,0x760,0x736,_0x16eb9e._0x934964)](0x1,Math[_0x2a490a(_0x16eb9e._0x56450b,_0x16eb9e._0x1e620d,_0x16eb9e._0x5db0cb,_0x16eb9e._0x834684)](_0x56f201));if(_0x56f201<=0x16d)return'm'+Math['ceil'](_0x56f201/0x1e);function _0x2a490a(_0xb40b6a,_0x26033b,_0x5728eb,_0x434805){return _0x2ff7d2(_0x434805-0x38,_0xb40b6a,_0x5728eb-_0x238c63._0x3af92b,_0x434805-0xd4);}return'y'+Math[_0x856c7c(-0xbb,0x15,-0x97,-_0x16eb9e._0x1a3f59)](_0x56f201/0x16d);}function addSiteFilters(_0x1ef067,_0x4ee920){const _0x286f93={_0xe7b1d1:0x239,_0x698958:0x65,_0x33e40f:0xf4,_0x457060:0x13a,_0x4d15fb:0x2c9,_0x2ca7f0:0x34,_0x3d4e51:0x468,_0x1564a3:0x379,_0x2f5029:0xbe,_0x27bec8:0x6e,_0x335045:0x5a,_0x25958d:0x54,_0x4a5aad:0x59},_0xe51573={_0x7636a4:0x8},_0x89bda1={_0x462c53:0xd5};function _0x504b84(_0xa8f94a,_0x3d88cc,_0x21ecb6,_0x3c865f){return _0x2ff7d2(_0x21ecb6- -_0x89bda1._0x462c53,_0xa8f94a,_0x21ecb6-0x1c8,_0x3c865f-0x18e);}if(_0x4ee920[_0xc02c6a(-_0x286f93._0xe7b1d1,_0x286f93._0x698958,-_0x286f93._0x33e40f,-_0x286f93._0x457060)]===0x0)return _0x1ef067['trim']();function _0xc02c6a(_0x297374,_0x16272a,_0x3b3522,_0x123fc7){return _0x691723(_0x3b3522-0x17,_0x123fc7,_0x3b3522-_0xe51573._0x7636a4,_0x123fc7-0x1d4);}return(_0x1ef067+'\x20('+_0x4ee920[_0xc02c6a(-_0x286f93._0x4d15fb,-_0x286f93._0x2ca7f0,-0x16e,-0x1bc)](_0x36834e=>'site:'+_0x36834e)[_0x504b84(0x587,0x4ca,_0x286f93._0x3d4e51,_0x286f93._0x1564a3)](_0xc02c6a(-_0x286f93._0x2f5029,0x17c,_0x286f93._0x27bec8,-0xeb))+')')[_0xc02c6a(-0x12f,-_0x286f93._0x335045,-_0x286f93._0x25958d,-_0x286f93._0x4a5aad)]();}function normalizeType(_0x3a7689){const _0x32bfe0={_0x18312a:0x38c,_0x361566:0x62e,_0x582f5d:0x5fd},_0x38bec2={_0x3a3170:0x64,_0x4e48b1:0x1ce},_0x4cca18={_0x18a1c2:0x206};function _0x5deb0f(_0x1e8479,_0x157d3f,_0x2327b0,_0x3bca51){return _0x691723(_0x157d3f-_0x4cca18._0x18a1c2,_0x2327b0,_0x2327b0-0x1a2,_0x3bca51-0x39);}function _0x1440cb(_0xcef0bf,_0x5a17e8,_0x32c8e1,_0x47b8d1){return _0x2ff7d2(_0xcef0bf-_0x38bec2._0x3a3170,_0x32c8e1,_0x32c8e1-_0x38bec2._0x4e48b1,_0x47b8d1-0x88);}return _0x3a7689==='images'?_0x5deb0f(_0x32bfe0._0x18312a,0x254,0x175,0x326):_0x1440cb(_0x32bfe0._0x361566,0x50e,_0x32bfe0._0x582f5d,0x674);}async function fetchJson(_0x27f51f,_0x403584,_0x5d7e62){const _0x6f5e94={_0xe5fd3e:0x23a,_0x4f84c2:0x117,_0x69b023:0x2a3,_0x348f6a:0x3b0,_0x2646e0:0x212,_0x562128:0x1c6,_0x22338f:0x3ca,_0x5f5cb9:0x23,_0x2ab327:0x169,_0x1922ab:0x245,_0x2d0db4:0x289,_0x3c1f94:0x27c,_0x592dbf:0x164,_0x5f6915:0x2bb,_0x35b597:0x451,_0x3a62aa:0x25c,_0x37361c:0x30e,_0x423092:0x60e,_0x94a5e6:0x558,_0x34a4ef:0x64f,_0x4c6abc:0x121,_0x505990:0x15b,_0x15c547:0x42c,_0x26d6d7:0x2c3,_0x3531e1:0x345,_0x6dbeea:0x237,_0x4c3a0e:0x30a,_0x2a4de4:0x323,_0x4b942f:0x1d0,_0x269ded:0xe3,_0x69704a:0xb1,_0x5415fa:0xd9,_0x2f73aa:0x16,_0x41c32f:0x247,_0x5c102e:0x12b,_0xc26c68:0x323},_0x580bf5={_0x168bd7:0x166,_0x3e7c4a:0xde},_0xe7d47b={_0x55de90:0x50c,_0x2b1449:0x1b5,_0x33b1af:0x46};function _0x537410(_0x1a272a,_0x45fa3c,_0x5745e8,_0x5544b5){return _0x691723(_0x5745e8-_0xe7d47b._0x55de90,_0x5544b5,_0x5745e8-_0xe7d47b._0x2b1449,_0x5544b5-_0xe7d47b._0x33b1af);}const _0x5939a2=await fetch(_0x27f51f,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x2a2faa(0x180,0x26a,_0x6f5e94._0xe5fd3e,_0x6f5e94._0x4f84c2),..._0x5d7e62?.[_0x537410(0x46f,_0x6f5e94._0x69b023,_0x6f5e94._0x348f6a,0x4f6)]},'signal':_0x403584,..._0x5d7e62});if(!_0x5939a2['ok']){let _0x179ba3,_0x25c16c;try{_0x179ba3=await _0x5939a2['text']();const _0x128259=JSON[_0x2a2faa(_0x6f5e94._0x2646e0,_0x6f5e94._0x562128,_0x6f5e94._0x22338f,0x2f1)](_0x179ba3),_0x1eea71=typeof _0x128259[_0x2a2faa(_0x6f5e94._0x5f5cb9,0xe0,0x195,0x164)]===_0x2a2faa(0x3be,_0x6f5e94._0x2ab327,_0x6f5e94._0x1922ab,_0x6f5e94._0x2d0db4)?_0x128259[_0x2a2faa(_0x6f5e94._0x3c1f94,0x13e,0x47,_0x6f5e94._0x592dbf)][_0x2a2faa(_0x6f5e94._0x5f6915,_0x6f5e94._0x35b597,_0x6f5e94._0x3a62aa,_0x6f5e94._0x37361c)]:void 0x0;_0x25c16c=_0x128259[_0x537410(_0x6f5e94._0x423092,0x50a,_0x6f5e94._0x94a5e6,_0x6f5e94._0x34a4ef)]?.['message']??_0x128259['error']?.[_0x2a2faa(_0x6f5e94._0x4c6abc,0x1c3,0x1f3,_0x6f5e94._0x505990)]?.[0x0]?.[_0x537410(0x2ef,_0x6f5e94._0x15c547,0x3c2,_0x6f5e94._0x26d6d7)]??_0x1eea71;}catch{}const _0x5c2a3c=_0x25c16c?_0x2a2faa(0x22f,_0x6f5e94._0x3531e1,0x383,_0x6f5e94._0x6dbeea)+_0x5939a2[_0x537410(0x2c3,_0x6f5e94._0x4c3a0e,_0x6f5e94._0x2a4de4,_0x6f5e94._0x4b942f)]+':\x20'+_0x25c16c:'HTTP\x20'+_0x5939a2[_0x2a2faa(-0x7d,_0x6f5e94._0x269ded,_0x6f5e94._0x69704a,_0x6f5e94._0x5415fa)]+'\x20'+_0x5939a2[_0x2a2faa(0x81,_0x6f5e94._0x2f73aa,_0x6f5e94._0x41c32f,_0x6f5e94._0x5c102e)];throw new ToolExecutionError(_0x5c2a3c,{'statusCode':_0x5939a2[_0x537410(0x1eb,0x447,_0x6f5e94._0xc26c68,0x2d6)],..._0x179ba3?{'body':_0x179ba3}:{}});}function _0x2a2faa(_0x39e693,_0x40172e,_0x710f4b,_0x555348){return _0x2ff7d2(_0x555348- -0x38b,_0x39e693,_0x710f4b-_0x580bf5._0x168bd7,_0x555348-_0x580bf5._0x3e7c4a);}return await _0x5939a2['json']();}async function hydrateResults(_0x587b2d,_0x4e058e,_0x1971bd){const _0x3758a0={_0x3b1ed5:0x514,_0x183d2b:0x558,_0x1a4309:0xb9,_0x3baed9:0x83,_0x51bb2a:0x4b3},_0x40282e={_0x36a1be:0x52,_0x51389e:0x77,_0x35a72e:0xea,_0x323602:0x12a,_0x1c4d30:0x39,_0x157e55:0x36,_0x159d24:0x88,_0x7ddf64:0x120,_0x491fa3:0x4b,_0x590c67:0x45,_0x200181:0x146,_0x52f26:0x29e,_0x3d91f7:0x187,_0x4e1bb1:0x222,_0x158543:0x11f,_0x52519b:0x10,_0xe9acf5:0x120,_0x4159ca:0x59,_0x5dd268:0x1d,_0x45de38:0x91,_0x3f0f7a:0xb0,_0x2e5db6:0x10,_0x4a7f07:0x1cf,_0xa860af:0x25a,_0x524220:0xcc,_0x1ea0a2:0x54,_0x28aa43:0x242,_0x291aa9:0x8a,_0x40794c:0x20,_0x16387f:0x45,_0x5f26c4:0x43,_0x1b549c:0x12,_0x3b4b45:0x71,_0x2d4c9f:0xcf,_0x5a54b6:0x1b1,_0x2cc3c6:0x238,_0x56b1d2:0x1bc,_0x3a37e2:0x114,_0x26789e:0x21c,_0x2aa560:0x230,_0x4dbbf1:0x12c,_0x17e8bf:0xa7,_0x27612e:0x13d,_0x3ce24d:0xd8,_0x453306:0x1de},_0x52cb09={_0x5a08d2:0x6c5,_0x224e44:0xf4},_0x3c8af4={_0x93d597:0xba};function _0x26133a(_0x1eaf61,_0x3aad76,_0x16b542,_0x50ffe6){return _0x2ff7d2(_0x1eaf61- -0x4ff,_0x16b542,_0x16b542-0xbc,_0x50ffe6-0x97);}function _0x420e39(_0x2fa6d4,_0x4ab045,_0x17e922,_0x56f2){return _0x2ff7d2(_0x2fa6d4-0x4c,_0x56f2,_0x17e922-_0x3c8af4._0x93d597,_0x56f2-0x128);}const _0x2bddca=await Promise['all'](_0x587b2d['slice'](0x0,0xa)[_0x420e39(_0x3758a0._0x3b1ed5,0x4f9,_0x3758a0._0x183d2b,0x633)](async _0x2fdac9=>{const _0x14b3e5={_0xb7eb3f:0x13b,_0x5c8c69:0xf};function _0x5ea4ab(_0x40b7c0,_0x25bf3e,_0x355f95,_0x454766){return _0x420e39(_0x40b7c0- -0x51d,_0x25bf3e-_0x14b3e5._0xb7eb3f,_0x355f95-_0x14b3e5._0x5c8c69,_0x25bf3e);}function _0x39af82(_0x1d2e44,_0x314b4c,_0x17a0d3,_0x5eed8a){return _0x420e39(_0x314b4c- -_0x52cb09._0x5a08d2,_0x314b4c-0x182,_0x17a0d3-_0x52cb09._0x224e44,_0x5eed8a);}try{const _0x5079c2=await fetch(_0x2fdac9['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x4e058e,'Accept':_0x5ea4ab(-_0x40282e._0x36a1be,-_0x40282e._0x51389e,-0x55,0x8c)},'signal':_0x1971bd});if(!_0x5079c2['ok'])return _0x2fdac9;const _0x327534=await _0x5079c2[_0x39af82(-0x22,-0x62,-_0x40282e._0x35a72e,-_0x40282e._0x323602)](),_0x3901a0=load(_0x327534),_0x5afecf=_0x3901a0(_0x5ea4ab(-_0x40282e._0x1c4d30,0x33,-_0x40282e._0x157e55,-_0x40282e._0x159d24))[_0x39af82(-_0x40282e._0x7ddf64,-0x89,-0x37,-_0x40282e._0x491fa3)]('content')||_0x3901a0(_0x5ea4ab(-0x25,-0x8,-0x169,_0x40282e._0x590c67))['first']()[_0x5ea4ab(_0x40282e._0x200181,0x10e,_0x40282e._0x52f26,_0x40282e._0x3d91f7)]()[_0x5ea4ab(0x111,0x123,_0x40282e._0x4e1bb1,0x211)](),_0x2e34c3=_0x3901a0(_0x39af82(-0x177,-0x192,-0x179,-0x82))['attr']('content')||_0x3901a0('meta[property=\x27og:description\x27]')[_0x5ea4ab(_0x40282e._0x158543,0x17d,_0x40282e._0x52519b,_0x40282e._0xe9acf5)](_0x5ea4ab(0xf7,-_0x40282e._0x4159ca,0xe9,-0x19))||_0x2fdac9[_0x5ea4ab(0x81,-_0x40282e._0x5dd268,_0x40282e._0x45de38,0x117)],_0x179d65=_0x3901a0(_0x5ea4ab(_0x40282e._0x3f0f7a,_0x40282e._0x2e5db6,_0x40282e._0x4a7f07,0xde))[_0x5ea4ab(0x11f,_0x40282e._0xa860af,_0x40282e._0x524220,0xb4)](_0x5ea4ab(0xf7,0x22,-_0x40282e._0x1ea0a2,_0x40282e._0x28aa43))||_0x3901a0(_0x5ea4ab(0x8c,-_0x40282e._0x291aa9,0x12d,_0x40282e._0x40794c))[_0x5ea4ab(_0x40282e._0x158543,0x1e2,0x10b,_0x40282e._0x16387f)](_0x39af82(0x98,-_0x40282e._0x5f26c4,-_0x40282e._0x1b549c,-_0x40282e._0x3b4b45))||_0x2fdac9[_0x39af82(0x82,-_0x40282e._0x2d4c9f,-_0x40282e._0x5a54b6,-0xec)],_0x4195a9=_0x3901a0(_0x39af82(-_0x40282e._0x2cc3c6,-_0x40282e._0x56b1d2,-0x22e,-0x200))[_0x39af82(-0x1bb,-0x89,-_0x40282e._0x3a37e2,-_0x40282e._0x36a1be)](_0x39af82(-0x187,-0x146,-0xbc,0x5));return{..._0x2fdac9,'title':_0x5afecf||_0x2fdac9[_0x39af82(-_0x40282e._0x26789e,-0x1cd,-_0x40282e._0x2aa560,-0x310)],'snippet':_0x2e34c3,'url':_0x4195a9?normalizeUrl(new URL(_0x4195a9,_0x2fdac9[_0x5ea4ab(0xba,_0x40282e._0x4dbbf1,0x1e0,0xd0)])[_0x5ea4ab(-0x8b,-_0x40282e._0x17e8bf,-_0x40282e._0x27612e,-0x1a3)]()):_0x2fdac9[_0x5ea4ab(0xba,_0x40282e._0x3ce24d,_0x40282e._0x453306,0x14d)],'publishedAt':_0x179d65};}catch{return _0x2fdac9;}})),_0x1adf62=new Map(_0x587b2d[_0x26133a(_0x3758a0._0x1a4309,-_0x3758a0._0x3baed9,0x1a0,0x4d)](0x0,0xa)[_0x26133a(-0x37,-0xbf,-0x100,0x128)]((_0x1a7314,_0x5410c5)=>[_0x1a7314['url'],_0x2bddca[_0x5410c5]]));return _0x587b2d[_0x420e39(0x514,0x659,0x54f,_0x3758a0._0x51bb2a)](_0x295b73=>_0x1adf62['get'](_0x295b73[_0x26133a(0x8c,0x115,-0x2d,-0x18)])??_0x295b73);}function formatResults(_0x5a2fea){const _0x19088d={_0x4b47c0:0x120,_0x1ab92d:0xc8,_0x26a42c:0x225,_0x4b9e75:0x66,_0x42a0b9:0xe3,_0xd426fa:0x15b,_0x5172c5:0x24c,_0x3f6e85:0x1ab,_0x190b6b:0x370,_0x59aab3:0x33b},_0x14209f={_0x57f4aa:0x3ee,_0x3477e9:0x4b8,_0x2bd25f:0x485,_0x519c33:0x438,_0x1cb162:0xfb,_0x3f8b93:0x1bf,_0x49e0cf:0x2be,_0x393c11:0x84,_0x4544c3:0x11f,_0x4a813f:0x257,_0xd727ad:0xc0,_0x4627d1:0x1bf},_0x309d0d={_0x157735:0x13c},_0x9479b5={_0x157c9e:0x13c},_0x1a8be7={_0x376027:0x31d,_0x135efe:0xf,_0x458189:0x1b0};if(_0x5a2fea[_0x355679(0x117,_0x19088d._0x4b47c0,_0x19088d._0x1ab92d,_0x19088d._0x26a42c)]===0x0)return _0x2e4c87(-0xd,_0x19088d._0x4b9e75,_0x19088d._0x42a0b9,0xa8);function _0x355679(_0x4c826b,_0x2257c9,_0x9c64be,_0x1cb973){return _0x2ff7d2(_0x1cb973- -_0x1a8be7._0x376027,_0x4c826b,_0x9c64be-_0x1a8be7._0x135efe,_0x1cb973-_0x1a8be7._0x458189);}function _0x2e4c87(_0x5261d7,_0x1e7934,_0x1cf31b,_0x5e3b04){return _0x2ff7d2(_0x1cf31b- -0x579,_0x5261d7,_0x1cf31b-0x1df,_0x5e3b04-_0x9479b5._0x157c9e);}return _0x5a2fea[_0x355679(_0x19088d._0xd426fa,0x28c,_0x19088d._0x5172c5,_0x19088d._0x3f6e85)](_0x97b49d=>{const _0x4d4cdf={_0x178a6f:0x9},_0x44855c=[_0x97b49d[_0x2a223a(0x29e,0x1ed,0x1c6,0x257)][_0x10172d(_0x14209f._0x57f4aa,_0x14209f._0x3477e9,_0x14209f._0x2bd25f,_0x14209f._0x519c33)]+'.\x20'+_0x97b49d['title'],_0x97b49d['url']];if(_0x97b49d['snippet'])_0x44855c[_0x2a223a(-0x9e,0xb9,_0x14209f._0x1cb162,0xb4)](_0x97b49d[_0x10172d(0x371,0x3b9,0x498,0x494)]);function _0x2a223a(_0x1ff435,_0x336e1f,_0x21e963,_0x15245c){return _0x355679(_0x336e1f,_0x336e1f-0x94,_0x21e963-_0x4d4cdf._0x178a6f,_0x15245c- -0xce);}function _0x10172d(_0x554bfb,_0x14236d,_0x249687,_0x502478){return _0x355679(_0x14236d,_0x14236d-0x1ee,_0x249687-0x1e5,_0x554bfb-_0x309d0d._0x157735);}if(_0x97b49d[_0x2a223a(0x140,0xa0,0x215,_0x14209f._0x3f8b93)])_0x44855c[_0x10172d(_0x14209f._0x49e0cf,0x3a8,0x342,0x367)](_0x2a223a(0x40,0x157,_0x14209f._0x393c11,_0x14209f._0x4544c3)+_0x97b49d[_0x2a223a(_0x14209f._0x4a813f,_0x14209f._0xd727ad,0x2ee,_0x14209f._0x4627d1)]);return _0x44855c['join']('\x0a');})[_0x355679(0x1c0,_0x19088d._0x190b6b,_0x19088d._0x59aab3,0x220)]('\x0a\x0a');}async function searchOllama(_0x25774a,_0x456d7a,_0x15c1b7){const _0x30c028={_0x1fdca5:0x490,_0x51143d:0x645,_0x362942:0x508,_0x235c7a:0x744,_0x2e20b4:0x659,_0x34550f:0x52d,_0x195e45:0x1f6,_0x34dfd5:0x5d7,_0x513280:0x4f5,_0x274e79:0x3cd,_0x3466cd:0x29f,_0x4100b0:0x19d,_0x3f017f:0x3ed,_0x415e5e:0x2c9,_0x489c57:0x3f2,_0x15d03f:0x3ee,_0x4f72df:0x4bd,_0x2799e6:0x5de,_0x16c9e8:0x5e7,_0x32a9a5:0x60e,_0x3c9e2a:0x237,_0x193553:0x6d4},_0x136813={_0x3f7666:0x4cf,_0x161e85:0x53c,_0xda8847:0x5e4,_0x135c63:0x45a,_0x517cc7:0x44e,_0x28bcbd:0x579,_0x39f738:0x63a,_0x136745:0x298,_0x12e869:0x3a1},_0x451990={_0x4cdf70:0x15e,_0x2074f1:0x242},_0x380307={_0x45c711:0x6cc,_0x4ef512:0x123},_0x48cfdb={_0x417a40:0x3bc,_0x247c0e:0xe7};function _0x5d41d6(_0x121781,_0x38d2b9,_0x53534,_0x5b6e65){return _0x691723(_0x53534-_0x48cfdb._0x417a40,_0x5b6e65,_0x53534-0x74,_0x5b6e65-_0x48cfdb._0x247c0e);}const _0x5cc1bf=Math['max'](0x1,Math[_0x59ca7d(_0x30c028._0x1fdca5,_0x30c028._0x51143d,_0x30c028._0x362942,0x5b4)](0xa,_0x456d7a['count'])),_0x4ee710=addSiteFilters(_0x456d7a[_0x59ca7d(_0x30c028._0x235c7a,0x65a,_0x30c028._0x2e20b4,_0x30c028._0x34550f)],_0x456d7a[_0x5d41d6(_0x30c028._0x195e45,0x194,0x1b3,0x209)]),_0x32a59b=await fetchJson(_0x59ca7d(0x44d,_0x30c028._0x34dfd5,_0x30c028._0x513280,_0x30c028._0x274e79),_0x15c1b7,{'method':_0x5d41d6(0x125,0x29f,0x18d,_0x30c028._0x3466cd),'headers':{'Authorization':_0x5d41d6(0x1bc,0x57,_0x30c028._0x4100b0,0xa2)+_0x25774a[_0x5d41d6(_0x30c028._0x3f017f,0x406,0x364,_0x30c028._0x415e5e)]},'body':JSON[_0x5d41d6(_0x30c028._0x489c57,0x3c0,_0x30c028._0x15d03f,_0x30c028._0x4f72df)]({'query':_0x4ee710,'max_results':_0x5cc1bf})}),_0x30b269=_0x32a59b[_0x59ca7d(_0x30c028._0x2799e6,0x48e,_0x30c028._0x16c9e8,_0x30c028._0x32a9a5)]??[];function _0x59ca7d(_0x582e,_0x337e0f,_0x3ce03f,_0x489632){return _0x691723(_0x3ce03f-_0x380307._0x45c711,_0x582e,_0x3ce03f-0x159,_0x489632-_0x380307._0x4ef512);}const _0x55662d=_0x30b269[_0x5d41d6(0x2ae,0xe9,_0x30c028._0x3c9e2a,0x1d9)]((_0x572ab0,_0x2abc57)=>{const _0x3f8842={_0x431a5e:0x179,_0xf1b043:0x161,_0x1c60ce:0x9a},_0x4ea378=_0x572ab0[_0x521ce3(_0x136813._0x3f7666,_0x136813._0x161e85,_0x136813._0xda8847,_0x136813._0x135c63)]||'';function _0x521ce3(_0x507b64,_0x4b1b1c,_0x530c8b,_0x1373bc){return _0x5d41d6(_0x507b64-_0x451990._0x4cdf70,_0x4b1b1c-0x73,_0x4b1b1c-_0x451990._0x2074f1,_0x530c8b);}let _0x42609c;function _0x1e8bc7(_0x5b6ff8,_0x9288a9,_0x3da431,_0x244d3d){return _0x5d41d6(_0x5b6ff8-_0x3f8842._0x431a5e,_0x9288a9-_0x3f8842._0xf1b043,_0x5b6ff8-_0x3f8842._0x1c60ce,_0x9288a9);}try{_0x42609c=new URL(_0x4ea378)['host'];}catch{_0x42609c=null;}return{'title':_0x572ab0['title']||'Untitled','url':normalizeUrl(_0x4ea378),'snippet':_0x572ab0[_0x521ce3(_0x136813._0x517cc7,_0x136813._0x28bcbd,0x684,_0x136813._0x39f738)]??null,'displayUrl':_0x42609c,'favicon':null,'publishedAt':null,'source':{'engine':_0x1e8bc7(0x363,0x3e9,_0x136813._0x136745,_0x136813._0x12e869),'rank':_0x2abc57+0x1}};});return{'items':_0x55662d['slice'](0x0,_0x5cc1bf),'engine':_0x59ca7d(_0x30c028._0x193553,0x650,0x5d9,0x603)};}async function searchTavily(_0x31a572,_0x331e74,_0x333726){const _0x55efde={_0x5a6844:0x4b,_0xe5f6bb:0x157,_0x23364b:0x125,_0x53c0a:0x1c0,_0x2b30db:0x27c,_0x497775:0x148,_0x1af706:0x148,_0x567bf7:0x14f,_0x55644b:0x20,_0x6da647:0xa7,_0x4efddf:0xd3,_0x10ebc1:0x74,_0x242e2f:0x256,_0x5c60c6:0x2b1,_0xebbecd:0xe7,_0x5616dc:0x2,_0x3b4c21:0xaf,_0x510bdf:0x31,_0x233830:0x263,_0x428dc1:0x179,_0x2374f2:0x4d,_0x4315c6:0x3e,_0x36aff9:0xee,_0x18bc6a:0x19},_0x28a9ea={_0x12c2b2:0x5cf,_0xb96b78:0x584,_0x5cb099:0x5af,_0x1dbeaf:0x34c,_0x5c96f3:0x462,_0x473aa4:0x62d,_0x374c38:0x6ca},_0x5d270d={_0x28907d:0xf7,_0x1e2fc9:0x61c},_0x4b7e17={_0x3ada03:0xda,_0x45cc40:0x53d},_0x5b96d0={_0x22f6d5:0x15a,_0x143a46:0x167},_0x5a4575=Math[_0x3c0993(0x29,-0x45,-0xf5,_0x55efde._0x5a6844)](0x1,Math[_0x20d860(0x6,-_0x55efde._0xe5f6bb,-_0x55efde._0x23364b,-_0x55efde._0x53c0a)](0x14,_0x331e74[_0x3c0993(-_0x55efde._0x2b30db,-0x78,-_0x55efde._0x497775,-_0x55efde._0x1af706)]));function _0x20d860(_0x8694e4,_0x20832b,_0x2ec045,_0x594c3a){return _0x691723(_0x20832b-0x6d,_0x2ec045,_0x2ec045-_0x5b96d0._0x22f6d5,_0x594c3a-_0x5b96d0._0x143a46);}const _0x2caf79={'query':_0x331e74[_0x20d860(0xa1,-0x6,-0xb0,_0x55efde._0x567bf7)],'max_results':_0x5a4575,'search_depth':_0x31a572[_0x3c0993(-0x50,0x12e,-0x108,_0x55efde._0x55644b)]??'basic','topic':_0x31a572[_0x20d860(-0x1ca,-0x17e,-0xe8,-_0x55efde._0x6da647)]??_0x20d860(-_0x55efde._0x4efddf,0x26,0x90,-_0x55efde._0x10ebc1)};if(_0x331e74[_0x20d860(-_0x55efde._0x242e2f,-0x19c,-_0x55efde._0x5c60c6,-_0x55efde._0xebbecd)][_0x3c0993(-0xb4,-_0x55efde._0x5616dc,-_0x55efde._0x3b4c21,-0xb4)]>0x0)_0x2caf79['include_domains']=_0x331e74['domains'];const _0x2efd7e=await fetchJson(_0x3c0993(-_0x55efde._0x510bdf,-_0x55efde._0x233830,-0xf2,-_0x55efde._0x428dc1),_0x333726,{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x31a572['tavilyApiKey'],'Content-Type':_0x3c0993(-0x168,-0x13,-0x12e,-0x154)},'body':JSON['stringify'](_0x2caf79)});function _0x3c0993(_0x7a99e,_0x3073ab,_0x4c25e1,_0x3c6fa0){return _0x691723(_0x3c6fa0-0x57,_0x4c25e1,_0x4c25e1-0x178,_0x3c6fa0-0xd7);}const _0x5fa2b1=_0x2efd7e['results']??[],_0x2ef39b=_0x5fa2b1['map']((_0x306ee3,_0x112ec3)=>{function _0x303431(_0x2266f1,_0x180ef5,_0x4c2831,_0xaae17){return _0x3c0993(_0x2266f1-0xfd,_0x180ef5-_0x4b7e17._0x3ada03,_0x180ef5,_0x4c2831-_0x4b7e17._0x45cc40);}const _0x2774c8=_0x306ee3[_0x5bf729(_0x28a9ea._0x12c2b2,0x4e1,0x5b1,0x5ac)]||'';function _0x5bf729(_0x23744b,_0x3a7e88,_0x285ed1,_0x1e1d5b){return _0x3c0993(_0x23744b-_0x5d270d._0x28907d,_0x3a7e88-0x45,_0x3a7e88,_0x285ed1-_0x5d270d._0x1e2fc9);}let _0x2a7d56;try{_0x2a7d56=new URL(_0x2774c8)[_0x5bf729(0x67d,_0x28a9ea._0xb96b78,0x575,_0x28a9ea._0x5cb099)];}catch{_0x2a7d56=null;}return{'title':_0x306ee3[_0x303431(_0x28a9ea._0x1dbeaf,0x360,0x3f3,0x447)]||'Untitled','url':normalizeUrl(_0x2774c8),'snippet':_0x306ee3[_0x303431(0x4e4,_0x28a9ea._0x5c96f3,0x50f,_0x28a9ea._0x473aa4)]??null,'displayUrl':_0x2a7d56,'favicon':null,'publishedAt':null,'source':{'engine':_0x303431(0x6b6,_0x28a9ea._0x374c38,0x5a0,0x6b1),'rank':_0x112ec3+0x1}};});return{'items':_0x2ef39b[_0x3c0993(0x8c,-_0x55efde._0x2374f2,-0xc8,-_0x55efde._0x4315c6)](0x0,_0x5a4575),'engine':_0x3c0993(-_0x55efde._0x36aff9,-_0x55efde._0x18bc6a,-0x2b,0x63)};}async function searchGoogleCse(_0x20c19d,_0x4a1b6a,_0x4a96bf){const _0x1789be={_0x5331de:0x378,_0x482b99:0x32b,_0x37904a:0x39d,_0x455ecd:0x489,_0x3908ad:0x43a,_0x1fcb23:0x53b,_0x4f6b56:0x4db,_0x1717cf:0x404,_0x113c05:0x462,_0x2c86b6:0x4b1,_0x9a1d1d:0x504,_0x1b2923:0x5de,_0x3cfdc5:0x44d,_0x50230e:0x291,_0x3e7ab9:0x3d8,_0xb96061:0x3a2,_0x870973:0x384,_0x1702d0:0x590,_0x1ac484:0x2fc,_0x35b251:0x2e6,_0x31c078:0x429,_0xf86e4b:0x42b,_0xb45ff0:0x3f9,_0x3520eb:0x58b,_0x45b0d4:0x381,_0x35db4d:0x2e0,_0x23ffb5:0x402,_0x2151d6:0x312,_0x34fdb4:0x334,_0x3c14f3:0x3c4,_0x5df44b:0x51d,_0x59b069:0x3d4,_0x2acdb2:0x3e1,_0x58e31f:0x385,_0x2d9dc6:0x244,_0x4a7451:0x290,_0x5b0dad:0x3e7,_0x25efa9:0x346,_0x20f6a9:0x369,_0x2da2b6:0x342,_0x11acb1:0x26f,_0x56c363:0x273,_0x4aabf5:0x31e,_0x122c40:0x3b9,_0x26d5dd:0x301,_0x39ff96:0x3c3,_0x134e75:0x487,_0x122872:0x4af,_0x390efc:0x3ed,_0x25e9e0:0x2ca,_0x42b459:0x50f,_0x4dd756:0x662,_0x41bf25:0x346,_0x4205a0:0x45e,_0x499ef4:0x316,_0x2f8f18:0x5c9,_0x59c734:0x55f,_0x3f06d8:0x4bb,_0x1c19a6:0x5a1,_0x3ccde3:0x616,_0x14e8f5:0x552,_0x428eb7:0x332,_0x32d1e1:0x2a8,_0x56829f:0x4d0,_0x3407cb:0x32a,_0x412a40:0x457,_0x175c0f:0x49c,_0x351516:0x20d,_0x3de7e6:0x312,_0x47f3ec:0x28d,_0x4b9bf6:0x3dc,_0x326498:0x28c,_0x3f6eb6:0x418,_0x1f3dc8:0x2b9,_0x1de35a:0x431,_0x57e895:0x433,_0x59efa4:0x437,_0x527b88:0x2c3,_0xf54b28:0x314,_0x56f92c:0x3c9,_0x4b69af:0x3da,_0xe2c020:0x560,_0x33e7e5:0x1db,_0x3fe3b9:0x31f,_0x2f5161:0x409,_0x11f26e:0x425,_0x491190:0x4b3,_0x5e350e:0x29e,_0x2478c2:0x39b,_0x328c79:0x47f,_0x3659a5:0x3e0,_0x5e3b23:0x58c,_0x52ac00:0x41e,_0x5e05f2:0x4f9,_0x43b332:0x54a,_0x39cc4e:0x4a1,_0x594a6f:0x44c,_0x41013b:0x397,_0x13a5dc:0x322,_0xca1d23:0x3c2,_0x5d5957:0x3b7,_0x180b27:0x581,_0x5a152f:0x532,_0xe3e05c:0x50f,_0x52a934:0x45c,_0x38b610:0x2c1,_0x152d6d:0x354,_0x1ec257:0x3b5,_0x9ef604:0x2b5,_0x22a98d:0x554},_0x10f27d=Math['max'](0x1,Math[_0x2f55ea(0x481,_0x1789be._0x5331de,0x2d3,_0x1789be._0x482b99)](0x32,_0x4a1b6a[_0x2f55ea(0x2d0,_0x1789be._0x37904a,_0x1789be._0x455ecd,_0x1789be._0x3908ad)]));if(_0x4a1b6a[_0x2f55ea(_0x1789be._0x1fcb23,_0x1789be._0x4f6b56,0x5eb,0x40c)]+_0x10f27d>0x64)throw new ToolExecutionError('Google\x20CSE\x20supports\x20at\x20most\x20the\x20first\x20100\x20results',{'offset':_0x4a1b6a[_0x4c4c1b(0x3c3,0x45f,_0x1789be._0x1717cf,_0x1789be._0x113c05)],'count':_0x10f27d,'maxResults':0x64});const _0x4ed32a=cseDateRestrict(_0x4a1b6a[_0x2f55ea(_0x1789be._0x2c86b6,_0x1789be._0x9a1d1d,_0x1789be._0x1b2923,0x55c)]),_0x2883a1=addSiteFilters(_0x4a1b6a[_0x4c4c1b(0x501,_0x1789be._0x3cfdc5,0x47d,0x487)],_0x4a1b6a[_0x2f55ea(_0x1789be._0x50230e,0x333,_0x1789be._0x3e7ab9,_0x1789be._0xb96061)]);let _0x4c02e3=0x0,_0x110bba=_0x4a1b6a[_0x4c4c1b(_0x1789be._0x870973,0x45f,_0x1789be._0x1702d0,0x4ef)]+0x1;function _0x4c4c1b(_0x5e961b,_0x1f54c4,_0x1b661e,_0x1420cb){return _0x691723(_0x1f54c4-0x4c0,_0x5e961b,_0x1b661e-0xc2,_0x1420cb-0x51);}const _0x5ece60=[];while(_0x4c02e3<_0x10f27d){const _0x3c03c2=Math[_0x4c4c1b(0x3e6,_0x1789be._0x1ac484,_0x1789be._0x35b251,_0x1789be._0x31c078)](0xa,_0x10f27d-_0x4c02e3),_0x44f793=new URL(_0x4c4c1b(_0x1789be._0xf86e4b,0x4ec,0x498,_0x1789be._0xb45ff0));_0x44f793[_0x2f55ea(_0x1789be._0x3520eb,0x540,0x63e,0x4cf)][_0x2f55ea(0x216,0x312,0x219,0x405)](_0x2f55ea(0x416,0x414,0x499,0x411),_0x20c19d[_0x2f55ea(0x435,_0x1789be._0x45b0d4,_0x1789be._0x35db4d,0x2ef)]),_0x44f793['searchParams'][_0x2f55ea(_0x1789be._0x23ffb5,_0x1789be._0x2151d6,_0x1789be._0x34fdb4,0x1e7)]('cx',_0x20c19d[_0x2f55ea(0x508,_0x1789be._0x3c14f3,_0x1789be._0x5df44b,0x44c)]),_0x44f793['searchParams'][_0x2f55ea(_0x1789be._0x59b069,0x312,0x1ff,_0x1789be._0x2acdb2)]('q',_0x2883a1),_0x44f793['searchParams'][_0x2f55ea(_0x1789be._0x58e31f,_0x1789be._0x2151d6,_0x1789be._0x2d9dc6,0x37a)](_0x4c4c1b(_0x1789be._0x4a7451,0x2b6,0x1c2,_0x1789be._0x5b0dad),String(_0x3c03c2)),_0x44f793['searchParams']['set'](_0x4c4c1b(_0x1789be._0x25efa9,_0x1789be._0x20f6a9,0x400,_0x1789be._0x2da2b6),String(_0x110bba)),_0x44f793['searchParams']['set'](_0x2f55ea(_0x1789be._0x11acb1,0x39a,0x2ec,0x4e9),_0x4a1b6a[_0x4c4c1b(_0x1789be._0x56c363,_0x1789be._0x4aabf5,_0x1789be._0x122c40,_0x1789be._0x26d5dd)]?_0x2f55ea(0x65a,0x50d,_0x1789be._0x39ff96,_0x1789be._0x134e75):_0x2f55ea(_0x1789be._0x122872,_0x1789be._0x390efc,0x4db,0x37f));_0x4a1b6a[_0x4c4c1b(0x39d,_0x1789be._0x25e9e0,0x41a,0x23d)]&&(_0x44f793[_0x2f55ea(0x58d,0x540,_0x1789be._0x42b459,_0x1789be._0x4dd756)]['set']('hl',_0x4a1b6a[_0x2f55ea(0x22b,_0x1789be._0x41bf25,_0x1789be._0x4205a0,_0x1789be._0x499ef4)]),_0x44f793[_0x4c4c1b(_0x1789be._0x2f8f18,0x4c4,_0x1789be._0x59c734,0x433)]['set']('lr',_0x2f55ea(_0x1789be._0x3f06d8,_0x1789be._0x1c19a6,_0x1789be._0x3ccde3,_0x1789be._0x14e8f5)+_0x4a1b6a['lang']));if(_0x4a1b6a['region'])_0x44f793['searchParams'][_0x2f55ea(0x1bd,0x312,0x354,0x2ad)]('gl',_0x4a1b6a[_0x4c4c1b(_0x1789be._0x428eb7,_0x1789be._0x32d1e1,0x161,0x2a8)][_0x2f55ea(0x4d9,0x536,_0x1789be._0x56829f,0x629)]());if(_0x4a1b6a[_0x4c4c1b(_0x1789be._0x3407cb,0x3f0,_0x1789be._0x412a40,_0x1789be._0x175c0f)]==='images')_0x44f793[_0x2f55ea(0x4c8,0x540,0x598,0x410)][_0x2f55ea(_0x1789be._0x351516,_0x1789be._0x3de7e6,_0x1789be._0x47f3ec,0x3c8)]('searchType',_0x4c4c1b(0x2f3,0x3c9,0x325,0x512));if(_0x4ed32a)_0x44f793[_0x4c4c1b(0x3c0,0x4c4,_0x1789be._0x4b9bf6,0x36b)][_0x2f55ea(0x3b3,0x312,0x1d5,_0x1789be._0x326498)](_0x4c4c1b(0x4d4,_0x1789be._0x3f6eb6,0x3d4,0x3c7),_0x4ed32a);const _0x2ef48f=await fetchJson(_0x44f793[_0x4c4c1b(0x1ea,_0x1789be._0x1f3dc8,0x2a6,0x254)](),_0x4a96bf),_0x174fa2=_0x2ef48f['items']??[];if(_0x174fa2[_0x2f55ea(0x54c,_0x1789be._0x1de35a,_0x1789be._0x57e895,0x3a8)]===0x0)break;const _0x3f2c93=_0x4c02e3;for(let _0x199a3e=0x0;_0x199a3e<_0x174fa2['length'];_0x199a3e++){const _0x1a25d9=_0x174fa2[_0x199a3e];if(!_0x1a25d9)continue;const _0x52d6b5=_0x1a25d9[_0x2f55ea(_0x1789be._0x59efa4,0x338,0x3c3,_0x1789be._0x527b88)]||_0x1a25d9[_0x4c4c1b(_0x1789be._0xf54b28,_0x1789be._0x56f92c,_0x1789be._0x4b69af,0x45e)]?.[_0x2f55ea(_0x1789be._0xe2c020,0x41c,0x2c4,0x37f)]||'',_0x8747e6=_0x1a25d9[_0x4c4c1b(_0x1789be._0x33e7e5,_0x1789be._0x3fe3b9,_0x1789be._0x2f5161,0x1d9)]||_0x1a25d9[_0x4c4c1b(_0x1789be._0x11f26e,_0x1789be._0x56f92c,_0x1789be._0x491190,0x3ff)]?.[_0x2f55ea(_0x1789be._0x5e350e,_0x1789be._0x2478c2,0x488,0x47b)]||'Untitled',_0x2ae3aa=_0x1a25d9[_0x2f55ea(_0x1789be._0x328c79,0x441,_0x1789be._0x3659a5,_0x1789be._0x5e3b23)]||_0x1a25d9[_0x4c4c1b(_0x1789be._0x52ac00,0x3c7,0x421,_0x1789be._0x5e05f2)]?.[_0x2f55ea(_0x1789be._0x43b332,_0x1789be._0x39cc4e,0x50c,0x439)](/<[^>]+>/g,''),_0x993d5e=_0x1a25d9['pagemap']?.[_0x4c4c1b(_0x1789be._0x594a6f,0x35f,_0x1789be._0x41013b,_0x1789be._0x13a5dc)]?.[0x0]??{};let _0x53aea2;try{_0x53aea2=new URL(_0x52d6b5)[_0x4c4c1b(0x431,_0x1789be._0xca1d23,0x4ca,_0x1789be._0x5d5957)];}catch{_0x53aea2=null;}_0x5ece60['push']({'title':_0x8747e6,'url':normalizeUrl(_0x52d6b5),'snippet':_0x2ae3aa??null,'displayUrl':_0x53aea2,'favicon':null,'publishedAt':_0x993d5e[_0x4c4c1b(_0x1789be._0x180b27,_0x1789be._0x5a152f,_0x1789be._0xe3e05c,_0x1789be._0x52a934)]||_0x993d5e[_0x2f55ea(0x382,0x3d3,0x505,_0x1789be._0x482b99)]||null,'source':{'engine':'google-cse','rank':_0x3f2c93+_0x199a3e+0x1}});}_0x4c02e3+=_0x174fa2[_0x4c4c1b(0x3af,0x3b5,0x495,_0x1789be._0x38b610)],_0x110bba+=_0x174fa2[_0x4c4c1b(_0x1789be._0x152d6d,_0x1789be._0x1ec257,_0x1789be._0x9ef604,_0x1789be._0x42b459)];if(_0x174fa2['length']<_0x3c03c2)break;}function _0x2f55ea(_0x3f7208,_0x29b55a,_0x244413,_0x2ac12b){return _0x2ff7d2(_0x29b55a- -0x111,_0x3f7208,_0x244413-0x20,_0x2ac12b-0x27);}return _0x5ece60[_0x4c4c1b(0x427,0x42b,_0x1789be._0x22a98d,0x385)](0x0,_0x10f27d);}function isGoogleCseEngine(_0x449cf3){const _0x2254cf={_0x4ffec8:0xcf},_0x505b1c={_0x265279:0x395,_0x596cd8:0xb6};function _0x422dfb(_0x1260bb,_0x4d94b3,_0x243fc2,_0xba41c5){return _0x2ff7d2(_0x4d94b3- -_0x505b1c._0x265279,_0x243fc2,_0x243fc2-0x193,_0xba41c5-_0x505b1c._0x596cd8);}return _0x422dfb(0x227,0xfd,_0x2254cf._0x4ffec8,0xab)in _0x449cf3;}function isOllamaEngine(_0x1ce616){const _0x581a14={_0x236d7:0x2b0,_0x27e0ad:0x3e6},_0x1a9876={_0x2afebd:0x7a};function _0x372a35(_0x57c8bd,_0x5881d3,_0x196104,_0x4d8aa4){return _0x691723(_0x57c8bd-0x308,_0x4d8aa4,_0x196104-0x19f,_0x4d8aa4-_0x1a9876._0x2afebd);}return _0x372a35(_0x581a14._0x236d7,_0x581a14._0x27e0ad,0x34a,0x192)in _0x1ce616;}function isTavilyEngine(_0x44ff3e){const _0x3aa851={_0x18eb8f:0x20e,_0x16429b:0xe0},_0x3eb08e={_0x30505a:0x249,_0x169f29:0x13a,_0x7996ab:0x180};function _0x4dc0c8(_0x4c516e,_0x58bce5,_0x9c85dc,_0x23436c){return _0x691723(_0x58bce5-_0x3eb08e._0x30505a,_0x23436c,_0x9c85dc-_0x3eb08e._0x169f29,_0x23436c-_0x3eb08e._0x7996ab);}return _0x4dc0c8(0x2a1,_0x3aa851._0x18eb8f,0x2e1,_0x3aa851._0x16429b)in _0x44ff3e;}function createWebSearchTool(_0x45376d){const _0x570249={_0x165ed5:0x1d3,_0x223611:0x308,_0x131f53:0x436,_0x363eb8:0x69e,_0x33f638:0x583,_0x11a49f:0x38a,_0x12f5b5:0x80a,_0x33ed21:0x7d5,_0x5011f0:0x5bd,_0x461bf8:0x51f,_0x1b7382:0x4ef,_0x2d74a6:0x60b,_0x3c412d:0x4ee,_0x2bc2fe:0x609,_0xf703f4:0x522,_0x36b2ef:0x658,_0x556c75:0x5a1,_0x143157:0x5df,_0x4fcca5:0x47b,_0x413c58:0x592,_0x47c544:0x457,_0x56696b:0x2b7,_0x5842dc:0x3c6,_0x339993:0x4ab,_0x5ad5eb:0x59b,_0x19f3f6:0x3f6,_0x34f1f1:0x59a,_0x10026f:0x3b4,_0x44614a:0x55c,_0x14a705:0x609,_0x11f56b:0x5bd,_0x4ef633:0x5bc,_0x19d06a:0x613},_0x71d70f={_0x10ac9f:0x2f5,_0x320bdb:0x1e9,_0xf4c771:0x33b,_0x178b95:0x2b8,_0x4abb4f:0x406,_0x2646d4:0x450,_0x568b2f:0x1bc,_0x11092e:0xc2,_0x7894c8:0xb7,_0x31c779:0x72,_0x3ab963:0x25f,_0x5ef052:0x156,_0x2cc7e3:0x69,_0x140826:0x22d,_0xc36b2:0x25e,_0x17cc2c:0x1fa,_0x56f062:0x266,_0xf65eab:0x29a,_0x3fb712:0x2bb,_0x3d46e9:0x1b7,_0x58029a:0x145,_0x271fd1:0x23a,_0x579b30:0x2b,_0x2432ae:0x146,_0x2b81e0:0x7c,_0x425d02:0x1f,_0x5227d0:0xd0,_0x409bb8:0x187,_0xc8764b:0x29d,_0x369b4b:0x356,_0x369ab6:0x204,_0xda1f0b:0x10c,_0xe6fa36:0x3c,_0x193c2b:0x109,_0x5cc180:0x14c,_0x15917b:0x103,_0x4ad002:0x87,_0x2d85b5:0xb8,_0x419e8e:0x168,_0x442e4d:0x113,_0x3e4b8f:0x4b,_0x198103:0xb6,_0x3f46b5:0x16,_0x324446:0xef,_0x3e4190:0x2fb,_0x3f8850:0x67,_0x19a1ae:0x37,_0x1963f3:0x56,_0x50420b:0xa3,_0x543e10:0x3e,_0x1ababf:0x1d7,_0x3437cf:0x351,_0x39e764:0x117,_0x799313:0x14a,_0x2f76d1:0x4c,_0x23d2ff:0x218,_0x1dc391:0x2da,_0x46971d:0x249,_0x1b74ca:0x167,_0x1faa04:0xa6,_0x20c2b6:0xe4,_0x56cbdf:0x11a,_0x3e66f0:0x148,_0x3d4e9f:0x218,_0xe4fdc1:0x175,_0x62ee7f:0x193,_0x35f03a:0x179,_0x374bc7:0x13f,_0x6c94bd:0x1c5,_0x393b04:0x16,_0x2b81ca:0x43e,_0x5bed0f:0x2d1,_0x4e1050:0x63,_0x3c391e:0x13d,_0x132ebe:0x12d,_0x4d6abd:0x1c0,_0x29810b:0x138,_0x28db1c:0x10b,_0x37d0af:0x1a5,_0x4b811a:0x2b4,_0x4f90e3:0x343,_0x34729b:0x2e6,_0x5c5542:0x3e3,_0x596e2f:0x3d5,_0x5d4898:0x1f3,_0x57a60f:0x184,_0x4edc3f:0x29d},_0x306caa={_0x15942f:0x41b,_0x237a92:0x558,_0x55e509:0x541},_0x3639dd={_0x491db6:0x528,_0x56e1b7:0x1e},_0x456919={_0x2f3c28:0x5a};if(!_0x45376d[_0x4e2f45(_0x570249._0x165ed5,_0x570249._0x223611,0x458,0x429)]||_0x45376d['engines'][_0x5d8e5c(0x57b,_0x570249._0x131f53,0x51f,0x495)]===0x0)throw new Error(_0x4e2f45(_0x570249._0x363eb8,_0x570249._0x33f638,0x624,0x50a));function _0x5d8e5c(_0x26e995,_0x379393,_0x20fb3e,_0x626f34){return _0x2ff7d2(_0x26e995-0x39,_0x626f34,_0x20fb3e-0xcf,_0x626f34-_0x456919._0x2f3c28);}function _0x4e2f45(_0x1c08c9,_0xe4200,_0x3cde08,_0x5d52cb){return _0x691723(_0xe4200-_0x3639dd._0x491db6,_0x1c08c9,_0x3cde08-_0x3639dd._0x56e1b7,_0x5d52cb-0x50);}const _0x56da47=_0x45376d[_0x5d8e5c(0x4e6,_0x570249._0x11a49f,0x576,0x594)]??_0x5d8e5c(0x6ad,_0x570249._0x12f5b5,_0x570249._0x33ed21,_0x570249._0x5011f0);return defineTool({'name':_0x56da47,'description':_0x5d8e5c(0x49c,0x52f,_0x570249._0x461bf8,0x369),'inputSchema':{'type':_0x4e2f45(0x3c7,_0x570249._0x1b7382,0x41b,_0x570249._0x2d74a6),'properties':{'description':{'type':_0x4e2f45(_0x570249._0x3c412d,0x4ab,0x4f9,0x42c)},'query':{'type':_0x5d8e5c(_0x570249._0x2bc2fe,0x582,_0x570249._0xf703f4,_0x570249._0x36b2ef)},'count':{'type':_0x5d8e5c(0x5b5,_0x570249._0x556c75,_0x570249._0x143157,_0x570249._0x4fcca5)},'offset':{'type':_0x4e2f45(_0x570249._0x413c58,_0x570249._0x47c544,0x38e,0x478)},'domains':{'type':_0x4e2f45(0x23a,0x354,0x27c,_0x570249._0x56696b),'items':{'type':_0x4e2f45(_0x570249._0x5842dc,_0x570249._0x339993,0x380,0x399)}},'recencyDays':{'type':_0x5d8e5c(0x5b5,0x6e0,_0x570249._0x5ad5eb,0x661)},'lang':{'type':_0x4e2f45(_0x570249._0x19f3f6,0x4ab,_0x570249._0x34f1f1,0x538)},'region':{'type':_0x4e2f45(0x5e3,0x4ab,_0x570249._0x10026f,0x591)},'safe':{'type':_0x5d8e5c(_0x570249._0x44614a,0x655,0x5c1,0x485)},'type':{'type':_0x5d8e5c(_0x570249._0x14a705,0x63b,_0x570249._0x11f56b,0x640)},'hydrateMeta':{'type':_0x5d8e5c(0x55c,0x4f7,_0x570249._0x4ef633,0x618)}},'required':[_0x5d8e5c(_0x570249._0x19d06a,0x4e8,0x5aa,0x71e)]},async *'execute'(_0x2b2ed4,_0x146874){const _0x1c1bbe={_0x2548ab:0x2b6,_0xe94216:0x5d},_0x48b4fc={_0x3cee2a:0x69},_0x58a6ab=_0x2b2ed4[_0x2d9dbf(0x315,_0x71d70f._0x10ac9f,_0x71d70f._0x320bdb,0x1ff)][_0x3e8e26(_0x71d70f._0xf4c771,_0x71d70f._0x178b95,0x39f,0x1c1)]();if(!_0x58a6ab)throw new ToolExecutionError(_0x3e8e26(_0x71d70f._0x4abb4f,0x2c5,0x16b,0x196));function _0x3e8e26(_0x1a3703,_0x25823b,_0x17c959,_0x3de2ac){return _0x4e2f45(_0x17c959,_0x25823b- -0x205,_0x17c959-0x1a4,_0x3de2ac-0xf3);}const _0x1ed189={'query':_0x58a6ab,'count':Math[_0x3e8e26(0x21f,0x317,_0x71d70f._0x2646d4,_0x71d70f._0x568b2f)](0x1,Math[_0x3e8e26(0x292,0x15f,0x26,_0x71d70f._0x11092e)](0x32,Math['trunc'](_0x2b2ed4[_0x2d9dbf(_0x71d70f._0x7894c8,-_0x71d70f._0x31c779,0x79,0xd3)]??0xa))),'offset':Math['max'](0x0,Math['trunc'](_0x2b2ed4[_0x2d9dbf(_0x71d70f._0x3ab963,0x289,0xef,0x211)]??0x0)),'domains':_0x2b2ed4[_0x2d9dbf(_0x71d70f._0x5ef052,0xdf,0x164,_0x71d70f._0x2cc7e3)]??[],'recencyDays':Math[_0x2d9dbf(_0x71d70f._0x140826,_0x71d70f._0xc36b2,_0x71d70f._0x17cc2c,_0x71d70f._0x56f062)](0x0,Math[_0x2d9dbf(_0x71d70f._0xf65eab,0x336,0x3dd,_0x71d70f._0x3fb712)](_0x2b2ed4[_0x2d9dbf(0x32d,_0x71d70f._0x3d46e9,_0x71d70f._0x58029a,_0x71d70f._0x271fd1)]??0x0)),'lang':_0x2b2ed4[_0x2d9dbf(0xcd,-_0x71d70f._0x579b30,_0x71d70f._0x2432ae,_0x71d70f._0x2b81e0)]??'en','region':_0x2b2ed4['region']??'','safe':_0x2b2ed4[_0x2d9dbf(_0x71d70f._0x425d02,0x1c3,0x44,_0x71d70f._0x5227d0)]??!![],'type':normalizeType(_0x2b2ed4['type']),'hydrateMeta':_0x2b2ed4[_0x3e8e26(_0x71d70f._0x409bb8,_0x71d70f._0xc8764b,_0x71d70f._0x369b4b,0x340)]??![]};let _0x4473e0=[],_0x4d622c=_0x3e8e26(_0x71d70f._0x369ab6,_0x71d70f._0xda1f0b,-_0x71d70f._0xe6fa36,_0x71d70f._0x193c2b);for(const _0x1a4f87 of _0x45376d[_0x2d9dbf(-0x7,_0x71d70f._0x5cc180,_0x71d70f._0x15917b,0x52)]){try{if(isGoogleCseEngine(_0x1a4f87))_0x4473e0=await searchGoogleCse(_0x1a4f87,_0x1ed189,_0x146874[_0x3e8e26(_0x71d70f._0x4ad002,0xef,_0x71d70f._0x2d85b5,0x23f)]),_0x4d622c=_0x2d9dbf(_0x71d70f._0x419e8e,_0x71d70f._0x442e4d,-_0x71d70f._0x3e4b8f,_0x71d70f._0x198103);else{if(isOllamaEngine(_0x1a4f87)){const _0x5925f4=await searchOllama(_0x1a4f87,_0x1ed189,_0x146874[_0x3e8e26(-_0x71d70f._0x3f46b5,_0x71d70f._0x324446,0xf2,0x25)]);_0x4473e0=_0x5925f4[_0x3e8e26(0x286,_0x71d70f._0x3e4190,0x387,0x26b)],_0x4d622c=_0x5925f4[_0x2d9dbf(_0x71d70f._0x3f8850,-_0x71d70f._0x19a1ae,-0x30,_0x71d70f._0x1963f3)];}else{if(isTavilyEngine(_0x1a4f87)){const _0x3e3c74=await searchTavily(_0x1a4f87,_0x1ed189,_0x146874[_0x2d9dbf(0x187,-0x24,-_0x71d70f._0x50420b,_0x71d70f._0x543e10)]);_0x4473e0=_0x3e3c74['items'],_0x4d622c=_0x3e3c74[_0x3e8e26(0x5a,0x107,_0x71d70f._0x1ababf,0x5d)];}}}if(_0x4473e0[_0x3e8e26(_0x71d70f._0x3437cf,0x218,_0x71d70f._0x39e764,_0x71d70f._0x799313)]>0x0)break;}catch(_0x36a280){if(_0x1a4f87===_0x45376d[_0x3e8e26(-_0x71d70f._0x2f76d1,_0x71d70f._0x15917b,0xde,-0x44)][_0x45376d['engines'][_0x3e8e26(0x1c6,_0x71d70f._0x23d2ff,0x221,_0x71d70f._0x15917b)]-0x1])throw _0x36a280;}}_0x1ed189[_0x3e8e26(_0x71d70f._0x1dc391,0x29d,0x340,_0x71d70f._0x46971d)]&&_0x4473e0[_0x2d9dbf(0xe7,0x178,0x199,_0x71d70f._0x1b74ca)]>0x0&&(_0x4473e0=await hydrateResults(_0x4473e0,_0x1ed189['lang'],_0x146874[_0x2d9dbf(_0x71d70f._0x1faa04,0x5a,-0x10d,_0x71d70f._0x543e10)]));const _0x3ad7ad=new Set();_0x4473e0=_0x4473e0['filter'](_0xf9af38=>{const _0x51da20={_0x4c2cc5:0x1c0,_0x4dabbb:0x1ba,_0x547675:0x191};function _0x295b1f(_0x52178e,_0x4c9ed3,_0x3fc201,_0x17dad4){return _0x3e8e26(_0x52178e-_0x51da20._0x4c2cc5,_0x4c9ed3-_0x51da20._0x4dabbb,_0x3fc201,_0x17dad4-_0x51da20._0x547675);}function _0x4d899e(_0x4b7e64,_0x4b0ffa,_0x11830d,_0xeb478){return _0x3e8e26(_0x4b7e64-_0x48b4fc._0x3cee2a,_0x11830d-0x2e9,_0x4b0ffa,_0xeb478-0x1d4);}const _0x2a7ee5=_0xf9af38[_0x295b1f(0x2e8,_0x306caa._0x15942f,_0x306caa._0x237a92,_0x306caa._0x55e509)]['toLowerCase']();if(!_0x2a7ee5||_0x3ad7ad[_0x4d899e(0x583,0x610,0x5a2,0x465)](_0x2a7ee5))return![];return _0x3ad7ad['add'](_0x2a7ee5),!![];}),_0x4473e0=_0x4473e0[_0x2d9dbf(_0x71d70f._0x20c2b6,0x244,-0x49,0xed)]((_0x4dc302,_0x109b19)=>({..._0x4dc302,'source':{..._0x4dc302[_0x2d9dbf(0x1be,0x1ac,0x2d4,0x267)],'rank':_0x109b19+0x1}}));const _0x22e7fd={};if(_0x1ed189[_0x3e8e26(0x160,_0x71d70f._0x56cbdf,_0x71d70f._0x3e66f0,0x194)][_0x3e8e26(0x151,_0x71d70f._0x3d4e9f,_0x71d70f._0xe4fdc1,_0x71d70f._0x62ee7f)]>0x0)_0x22e7fd[_0x3e8e26(0x16a,0x11a,_0x71d70f._0x35f03a,_0x71d70f._0x374bc7)]=_0x1ed189[_0x2d9dbf(_0x71d70f._0x6c94bd,-_0x71d70f._0x393b04,-0x12,_0x71d70f._0x2cc7e3)];function _0x2d9dbf(_0x47f934,_0x27d89e,_0x5ae239,_0x562edf){return _0x4e2f45(_0x47f934,_0x562edf- -_0x1c1bbe._0x2548ab,_0x5ae239-_0x1c1bbe._0xe94216,_0x562edf-0x12e);}if(_0x1ed189[_0x3e8e26(0x190,0x2eb,0x40c,0x257)]>0x0)_0x22e7fd[_0x3e8e26(_0x71d70f._0x2b81ca,0x2eb,_0x71d70f._0x5bed0f,0x1d4)]=_0x1ed189['recencyDays'];if(_0x1ed189[_0x2d9dbf(_0x71d70f._0x4e1050,_0x71d70f._0x3c391e,0x177,0x7c)]!=='en')_0x22e7fd[_0x3e8e26(0x1a7,_0x71d70f._0x132ebe,_0x71d70f._0x4d6abd,0xdc)]=_0x1ed189['lang'];if(_0x1ed189['region'])_0x22e7fd[_0x3e8e26(_0x71d70f._0x29810b,_0x71d70f._0x28db1c,0xbc,-0x17)]=_0x1ed189['region'];return yield createToolOutput(formatResults(_0x4473e0),{'engine':_0x4d622c,'count':_0x4473e0['length'],'items':_0x4473e0,'query':_0x1ed189['query'],...Object[_0x2d9dbf(_0x71d70f._0x37d0af,_0x71d70f._0x4b811a,_0x71d70f._0x4f90e3,_0x71d70f._0x34729b)](_0x22e7fd)['length']>0x0?{'appliedFilters':_0x22e7fd}:{},'offset':_0x1ed189[_0x3e8e26(_0x71d70f._0x5c5542,0x2c2,_0x71d70f._0x596e2f,0x26f)],'totalRequested':_0x1ed189[_0x3e8e26(_0x71d70f._0x5d4898,_0x71d70f._0x57a60f,0x144,_0x71d70f._0x178b95)],'hydrated':_0x1ed189[_0x3e8e26(0x2f6,_0x71d70f._0x4edc3f,0x26c,_0x71d70f._0xf4c771)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|
|
1
|
+
(function(_0x96e18e,_0x4a6008){const _0x4db256={_0x6ada57:0xf2,_0x52a802:0x168,_0x2752a9:0x12,_0x22dba7:0xcc,_0x36cafc:0x425,_0x2d8cd6:0x2a2,_0x11285a:0x3bf,_0x1db7d4:0x32f,_0x20bdd4:0x10d,_0x1176f5:0x110,_0x3054f6:0x268,_0x30ae97:0x5b0,_0xfd65d6:0x14,_0x1d25d4:0x25,_0x2c6a5d:0x38d,_0x46fd4c:0x3aa,_0x20af67:0x343,_0x5a404d:0x383,_0x5da3ee:0x676,_0x277d11:0x539,_0x24fcef:0x6c9,_0xd8f0c:0x632},_0x1a7cd0={_0x5a05c2:0x17f},_0x180362={_0x382eb6:0x1d8},_0x50f0cf=_0x96e18e();function _0x310497(_0x256126,_0x22858b,_0x1d5aa0,_0x101d39){return _0x27a7(_0x1d5aa0- -_0x180362._0x382eb6,_0x256126);}function _0x1c50bb(_0x579b07,_0x1a5887,_0x471f32,_0x3815fd){return _0x27a7(_0x3815fd-_0x1a7cd0._0x5a05c2,_0x1a5887);}while(!![]){try{const _0x37e689=parseInt(_0x310497(0x4d,0xfa,_0x4db256._0x6ada57,_0x4db256._0x52a802))/0x1*(parseInt(_0x310497(-_0x4db256._0x2752a9,0x59,0xfd,_0x4db256._0x22dba7))/0x2)+parseInt(_0x1c50bb(_0x4db256._0x36cafc,_0x4db256._0x2d8cd6,_0x4db256._0x11285a,_0x4db256._0x1db7d4))/0x3*(-parseInt(_0x310497(_0x4db256._0x20bdd4,_0x4db256._0x1176f5,0x254,_0x4db256._0x3054f6))/0x4)+-parseInt(_0x310497(0x131,0xd8,0x114,0x1c5))/0x5*(-parseInt(_0x310497(0x132,0x4a,0xeb,0x15f))/0x6)+-parseInt(_0x1c50bb(0x693,0x482,0x4c7,_0x4db256._0x30ae97))/0x7+-parseInt(_0x310497(_0x4db256._0xfd65d6,_0x4db256._0x1d25d4,0xf9,0x1ba))/0x8+-parseInt(_0x1c50bb(0x2ae,0x36b,_0x4db256._0x2c6a5d,_0x4db256._0x46fd4c))/0x9*(-parseInt(_0x1c50bb(0x258,_0x4db256._0x20af67,0x35f,_0x4db256._0x5a404d))/0xa)+parseInt(_0x1c50bb(0x408,0x5b7,_0x4db256._0x5da3ee,_0x4db256._0x277d11))/0xb*(parseInt(_0x1c50bb(_0x4db256._0x24fcef,_0x4db256._0xd8f0c,0x647,0x57c))/0xc);if(_0x37e689===_0x4a6008)break;else _0x50f0cf['push'](_0x50f0cf['shift']());}catch(_0x37a8c8){_0x50f0cf['push'](_0x50f0cf['shift']());}}}(_0x3d53,0xd2f94));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-HRU363DY.js';import{getTextFromMessage}from'../chunk-QDOE7NWO.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x323bca from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x23b1c2(0x2ea,0x370,0x246,0x105),'.tsx':_0x57b9de(0x3bb,0x510,0x42f,0x536),'.js':_0x23b1c2(0x207,0x341,0x274,0x125),'.jsx':'javascriptreact','.mjs':_0x23b1c2(0x281,0x1ac,0x274,0x217),'.cjs':_0x23b1c2(0x1f2,0x246,0x274,0x338),'.mts':_0x23b1c2(0x332,0x33a,0x246,0x2ff),'.cts':_0x57b9de(0x335,0x2a6,0x2f4,0x254),'.json':_0x57b9de(0x520,0x30b,0x3e2,0x2fe),'.jsonc':'jsonc'};function getLanguageId(_0x1b2582){const _0x3a8daa={_0x1f5e55:0x67d},_0x12b115={_0x3c941e:0x29,_0x1fe8b8:0xf1,_0x4ca291:0x53};function _0x15d685(_0x16baa8,_0x345dd2,_0x4af7cf,_0x1583c8){return _0x57b9de(_0x16baa8-_0x12b115._0x3c941e,_0x1583c8,_0x4af7cf-_0x12b115._0x1fe8b8,_0x1583c8-_0x12b115._0x4ca291);}return EXTENSION_TO_LANGUAGE[_0x323bca['extname'](_0x1b2582)[_0x15d685(_0x3a8daa._0x1f5e55,0x723,0x653,0x57e)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x5ef32b){return pathToFileURL(_0x5ef32b)['toString']();}function textDocumentPosition(_0x53bbaf){const _0x1193ff={_0x5da736:0x72d,_0x5a5870:0x57a,_0xebf613:0x5d8,_0x271b38:0x5c3,_0x7c8199:0x498},_0x1bcdd0={_0x418db2:0x1cc,_0x1af795:0x27};function _0x20a38c(_0x5c30ee,_0x12b421,_0x50c2c3,_0x2ae493){return _0x57b9de(_0x5c30ee-0x52,_0x50c2c3,_0x2ae493-_0x1bcdd0._0x418db2,_0x2ae493-_0x1bcdd0._0x1af795);}function _0x4c2691(_0x54600d,_0x135bcd,_0x262cc5,_0x2b3980){return _0x57b9de(_0x54600d-0x1cc,_0x135bcd,_0x262cc5-0x114,_0x2b3980-0x87);}return{'textDocument':{'uri':uriForPath(_0x53bbaf[_0x20a38c(_0x1193ff._0x5da736,0x724,0x84d,0x733)])},'position':{'line':_0x53bbaf[_0x4c2691(0x49c,_0x1193ff._0x5a5870,0x573,_0x1193ff._0xebf613)],'character':_0x53bbaf[_0x4c2691(_0x1193ff._0x271b38,0x54f,0x500,_0x1193ff._0x7c8199)]}};}function normalizeLocations(_0x135450){if(!_0x135450)return[];return Array['isArray'](_0x135450)?_0x135450:[_0x135450];}async function createLspClient(_0xbd1098){const _0x31f720={_0x3886f6:0x252,_0x4f2a71:0x1df,_0x3f42f7:0x16,_0xd676:0xee,_0x251def:0x56,_0x48ecc2:0xcb,_0x2ae971:0x198,_0x5f0156:0xae,_0x4d37e7:0x14c,_0x102259:0x4,_0xa5a0f1:0x32a,_0x35a958:0x205,_0x88d397:0x25a,_0x1d284a:0xe5,_0x4da10a:0x170,_0x57a35a:0x194,_0x4d9941:0x74,_0x48a680:0x19e,_0x528241:0x8c,_0x323818:0x11b,_0x336aa4:0x189,_0x1ec607:0x18b,_0x2f9331:0x17f,_0x5ba618:0x141},_0x101fd2={_0x4da790:0xe3,_0x53eebe:0x1aa,_0x67d5:0x181,_0x2fcdfa:0x3e7,_0x1feb89:0x448,_0x3decb3:0xd7,_0x3f6103:0x5d,_0xb9f2d4:0x333,_0xaf9759:0x3eb,_0x1b2e57:0x1c4,_0x467361:0x1d7,_0x7f6a04:0x181},_0x43bb70={_0x35b24d:0x15f,_0x5072db:0xe},_0x54336b={_0x13de8a:0x15a},_0x4ab99d={_0x1ae4ef:0x1cc,_0x3059aa:0x2d0},_0x2bd260={_0x41d0af:0xfe,_0x41918c:0x2b,_0x4462d:0x1d0},_0x41272a={_0x208f6a:0x244,_0x4c3baf:0xcc,_0x540ca9:0x193},_0xb9354={_0x298590:0x1d9,_0x3a1cb1:0x15c,_0x419210:0xe9,_0x3c9364:0x57a,_0x420c1b:0x595},_0x568f49={_0x553229:0x106},_0x36d2b1={_0x59117c:0x267,_0x34a7d8:0x339},_0x38563b={_0x497078:0x16b},_0x43a182={_0x12e92e:0x4fa},_0x2a53ab={_0x504c4f:0x70f,_0x3a66cc:0x731,_0x1d49db:0x585,_0x1f68ad:0x6d4},_0x3b917e={_0x56e067:0x526,_0x4daab6:0x35b},_0x33f059={_0x5d25a8:0x14b,_0x803d86:0xf8},_0x862c87={_0x586d43:0x1bd,_0x14ca6a:0x21},_0x47b42d={_0x4f9a56:0x5a2,_0xd3338e:0x243,_0x111039:0x41},_0x242ec7={_0x1ee699:0x651,_0xce3ab6:0x798,_0x41103a:0x6b2,_0x229ad4:0x52b},_0x4a8f01={_0x229e92:0x3d9,_0x17155f:0x4b4,_0x59afb9:0x412,_0x26b6b2:0x3d4,_0x3da561:0x3a7},_0x16482a={_0x1d6775:0x373,_0x110b83:0x14e,_0x529bf3:0x48},_0x5d1f1f={_0x13e41f:0x248,_0x4cace3:0x11e},_0x442a81={_0x6d2867:0x15f,_0x164358:0x243,_0x441ec0:0xc5,_0x4c14bb:0x171,_0x15dc70:0x702,_0x117d86:0x736},_0xe92002={_0x394b1b:0x88},_0x2ad9ca={_0x4ed455:0x11b,_0x34e339:0x280,_0x382bdf:0x24d,_0x4c5692:0x10a,_0x449b2f:0x20},_0x217e9e={_0x1f2d41:0x2a7,_0x5f15f7:0x29a,_0x464b29:0x1d6,_0x1f6b81:0x15b},_0x25e962={_0x4f12d1:0x57b},_0x5ac7df={_0x1bbc4f:0x93,_0x4b2e9e:0x265},_0x56de4a={_0x8c7eab:0x453,_0xb3ed31:0x555,_0xd1874d:0x592,_0x1fd785:0x6b0,_0x36a328:0x6c9,_0x287862:0x77d,_0x8b2559:0x5a4,_0x3393ad:0x707,_0x377fa2:0x816},_0x2a6963={_0x43d91c:0x4c1,_0x2abb65:0x5a},_0x457244={_0x3c84b6:0x19b,_0x585a29:0x35f,_0x4641ed:0x175},_0x3bcf4e=_0xbd1098['handle']['process'][_0x4c1332(_0x31f720._0x3886f6,0x212,_0x31f720._0x4f2a71,0x193)],_0x3d7f40=_0xbd1098['handle'][_0x39418f(_0x31f720._0x3f42f7,-0x10,-_0x31f720._0xd676,0xc0)][_0x39418f(0xd9,-0x70,-_0x31f720._0x251def,_0x31f720._0x48ecc2)];function _0x4c1332(_0x1c22b7,_0x50deaa,_0x2172b7,_0x32af5c){return _0x23b1c2(_0x1c22b7-0xc5,_0x50deaa,_0x2172b7- -0x1b5,_0x32af5c-0x45);}if(!_0x3bcf4e||!_0x3d7f40)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');function _0x39418f(_0x41b740,_0x1ae908,_0x2e6f21,_0x38f924){return _0x57b9de(_0x41b740-_0x457244._0x3c84b6,_0x41b740,_0x1ae908- -_0x457244._0x585a29,_0x38f924-_0x457244._0x4641ed);}const _0x45512f=createMessageConnection(new StreamMessageReader(_0x3bcf4e),new StreamMessageWriter(_0x3d7f40)),_0x4a7e34=new Map(),_0x5e8b99=new Map();let _0x13b2d1=![];_0x45512f[_0x39418f(0x99,_0x31f720._0x2ae971,0x2dc,0x13b)]('textDocument/publishDiagnostics',_0x4209a2=>{const _0x5a5153={_0x2563be:0x557,_0x1f8ef3:0x17};_0x4a7e34[_0x3c5399(0x553,_0x56de4a._0x8c7eab,_0x56de4a._0xb3ed31,0x693)](_0x4209a2['uri'],_0x4209a2['diagnostics']);const _0x3765a0=_0x5e8b99[_0x304504(0x52e,_0x56de4a._0xd1874d,_0x56de4a._0x1fd785,_0x56de4a._0x36a328)](_0x4209a2[_0x3c5399(_0x56de4a._0x287862,0x639,0x684,_0x56de4a._0x8b2559)]);if(!_0x3765a0)return;function _0x3c5399(_0x52db42,_0x4767f9,_0x51c0d7,_0x52e5c6){return _0x4c1332(_0x52db42-0xd1,_0x52db42,_0x51c0d7-_0x2a6963._0x43d91c,_0x52e5c6-_0x2a6963._0x2abb65);}_0x5e8b99[_0x304504(0x84c,_0x56de4a._0x3393ad,0x84a,_0x56de4a._0x377fa2)](_0x4209a2['uri']);function _0x304504(_0x569bba,_0x48eeaf,_0x419ebd,_0x4d704c){return _0x39418f(_0x569bba,_0x48eeaf-_0x5a5153._0x2563be,_0x419ebd-0x15c,_0x4d704c-_0x5a5153._0x1f8ef3);}for(const _0x33f463 of _0x3765a0)_0x33f463();}),_0x45512f[_0x39418f(_0x31f720._0x5f0156,_0x31f720._0x4d37e7,0xc2,_0x31f720._0x102259)]();const _0x314940=await _0x45512f[_0x4c1332(0x2ce,_0x31f720._0xa5a0f1,0x23d,0x234)]('initialize',{'processId':process[_0x39418f(0x2d8,0x221,_0x31f720._0x35a958,0x2a5)],'rootUri':uriForPath(_0xbd1098[_0x4c1332(_0x31f720._0x88d397,_0x31f720._0x1d284a,_0x31f720._0x4da10a,_0x31f720._0x57a35a)]),'workspaceFolders':[{'uri':uriForPath(_0xbd1098[_0x39418f(0x63,_0x31f720._0x4d9941,_0x31f720._0x48a680,0x1a3)]),'name':_0xbd1098['server']['id']}],'initializationOptions':_0xbd1098['handle'][_0x39418f(-_0x31f720._0x528241,-_0x31f720._0x102259,_0x31f720._0x323818,0x3f)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown','plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x45512f[_0x39418f(0x285,0x223,0x33d,0x2ef)](_0x4c1332(0xe7,_0x31f720._0x336aa4,0x1e2,0x257),{});const _0x228f65={'serverId':_0xbd1098[_0x4c1332(0x184,0xa3,_0x31f720._0x1ec607,0x216)]['id'],'root':_0xbd1098[_0x4c1332(_0x31f720._0x2f9331,0x54,0x170,_0x31f720._0x5ba618)],'connection':_0x45512f,'diagnostics':_0x4a7e34,'capabilities':_0x314940['capabilities']??{},'notify':{async 'open'({path:_0x19556e}){const _0x1c9dd3={_0xe0a249:0x18,_0x20abdb:0x113};function _0x39d36d(_0x4b41b2,_0x5493ad,_0x5b73a1,_0x2a2e3b){return _0x39418f(_0x5493ad,_0x5b73a1-0x44b,_0x5b73a1-_0x1c9dd3._0xe0a249,_0x2a2e3b-_0x1c9dd3._0x20abdb);}function _0x50cce8(_0x44bcd9,_0xb4e56f,_0x3c299b,_0x3e6f01){return _0x4c1332(_0x44bcd9-_0x5ac7df._0x1bbc4f,_0xb4e56f,_0x44bcd9-_0x5ac7df._0x4b2e9e,_0x3e6f01-0x5);}const _0x1200d8=await readFile(_0x19556e,'utf8');_0x45512f[_0x39d36d(0x6dc,0x612,0x66e,_0x25e962._0x4f12d1)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x19556e),'languageId':getLanguageId(_0x19556e)??_0x50cce8(0x306,0x284,0x32f,0x3f9),'version':0x1,'text':_0x1200d8}});},async 'change'({path:_0x3a8582,version:_0x1b5064}){const _0x917c7b={_0x379022:0x1ea,_0x3df44f:0x45},_0x532a83={_0x1d9a45:0x66};function _0x394c96(_0x3155f2,_0x324285,_0x235fd8,_0x5e7fbe){return _0x4c1332(_0x3155f2-0x1f3,_0x3155f2,_0x235fd8-0x92,_0x5e7fbe-_0x532a83._0x1d9a45);}const _0xd9bb62=await readFile(_0x3a8582,'utf8');function _0xcd9feb(_0x5cc45f,_0x2ad3cb,_0x3e3364,_0x1585a0){return _0x4c1332(_0x5cc45f-_0x917c7b._0x379022,_0x5cc45f,_0x1585a0-0x2b,_0x1585a0-_0x917c7b._0x3df44f);}_0x45512f[_0x394c96(_0x217e9e._0x1f2d41,_0x217e9e._0x5f15f7,0x3b1,0x305)](_0xcd9feb(0x102,_0x217e9e._0x464b29,0x28c,_0x217e9e._0x1f6b81),{'textDocument':{'uri':uriForPath(_0x3a8582),'version':_0x1b5064},'contentChanges':[{'text':_0xd9bb62}]});},async 'close'({path:_0x45fb97}){const _0x141a5b={_0x463efa:0x197,_0x2f900e:0x127,_0x3cee96:0x90};function _0x146a78(_0x25016d,_0x11eb51,_0x43c092,_0x1afb74){return _0x39418f(_0x25016d,_0x43c092- -0x110,_0x43c092-0x122,_0x1afb74-0xdb);}function _0x3c7496(_0xab9bb0,_0xd5be5b,_0x4a5a7f,_0x15598d){return _0x4c1332(_0xab9bb0-_0x141a5b._0x463efa,_0xab9bb0,_0xd5be5b- -_0x141a5b._0x2f900e,_0x15598d-_0x141a5b._0x3cee96);}_0x45512f[_0x3c7496(_0x2ad9ca._0x4ed455,0x1f8,0x28f,_0x2ad9ca._0x34e339)](_0x146a78(_0x2ad9ca._0x382bdf,0x1be,_0x2ad9ca._0x4c5692,-_0x2ad9ca._0x449b2f),{'textDocument':{'uri':uriForPath(_0x45fb97)}});}},'request':{async 'definition'(_0x17d4b9){const _0x251a1f={_0x9abe1a:0x5c2};function _0x4c4b73(_0x12b0bd,_0x1839cc,_0x38900e,_0x5c07fb){return _0x39418f(_0x38900e,_0x5c07fb-0x30,_0x38900e-0x1a9,_0x5c07fb-_0xe92002._0x394b1b);}function _0x154e0a(_0x469d98,_0x4f51bd,_0x7c7f93,_0xfe250d){return _0x39418f(_0xfe250d,_0x469d98-_0x251a1f._0x9abe1a,_0x7c7f93-0x34,_0xfe250d-0x4e);}return normalizeLocations(await _0x45512f[_0x4c4b73(_0x442a81._0x6d2867,_0x442a81._0x164358,_0x442a81._0x441ec0,_0x442a81._0x4c14bb)](_0x154e0a(_0x442a81._0x15dc70,0x675,0x74e,_0x442a81._0x117d86),textDocumentPosition(_0x17d4b9)));},async 'references'(_0x5004e6){function _0x4db8b7(_0xba5dcb,_0x4717a5,_0x381651,_0x16aafc){return _0x4c1332(_0xba5dcb-0xc0,_0xba5dcb,_0x4717a5- -_0x5d1f1f._0x13e41f,_0x16aafc-_0x5d1f1f._0x4cace3);}function _0x2bab02(_0x5897ed,_0x4ce202,_0x91ced9,_0x266570){return _0x39418f(_0x91ced9,_0x4ce202-_0x16482a._0x1d6775,_0x91ced9-_0x16482a._0x110b83,_0x266570-_0x16482a._0x529bf3);}return normalizeLocations(await _0x45512f[_0x2bab02(_0x4a8f01._0x229e92,_0x4a8f01._0x17155f,_0x4a8f01._0x59afb9,0x5b8)](_0x2bab02(0x453,_0x4a8f01._0x26b6b2,_0x4a8f01._0x3da561,0x434),{...textDocumentPosition(_0x5004e6),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x1d8477){const _0x17e092={_0x7938d8:0x510};function _0xcf1541(_0x50c837,_0x250933,_0x3c17e0,_0x4ee930){return _0x39418f(_0x3c17e0,_0x50c837-_0x17e092._0x7938d8,_0x3c17e0-0x14b,_0x4ee930-0x1da);}return await _0x45512f[_0xcf1541(_0x242ec7._0x1ee699,_0x242ec7._0xce3ab6,_0x242ec7._0x41103a,_0x242ec7._0x229ad4)]('textDocument/hover',textDocumentPosition(_0x1d8477))??null;},async 'documentSymbol'(_0x3338d8){const _0x3154a6={_0x5dbdd6:0x34b};function _0x3ec6b7(_0x39c977,_0x3e5cb7,_0x175104,_0x260ca2){return _0x39418f(_0x260ca2,_0x3e5cb7-_0x3154a6._0x5dbdd6,_0x175104-0x56,_0x260ca2-0xd2);}function _0x399455(_0x3e090f,_0x1332c2,_0x89343b,_0x3789d5){return _0x39418f(_0x3789d5,_0x1332c2- -0x6,_0x89343b-0x13e,_0x3789d5-0x181);}return await _0x45512f[_0x3ec6b7(0x48a,0x48c,_0x47b42d._0x4f9a56,0x56b)](_0x399455(0x192,0x172,_0x47b42d._0xd3338e,_0x47b42d._0x111039),{'textDocument':{'uri':uriForPath(_0x3338d8)}})??[];},async 'workspaceSymbol'(_0x36c08e){function _0x581256(_0x66f77d,_0x33bb2e,_0x5047bf,_0x10c0e5){return _0x4c1332(_0x66f77d-_0x862c87._0x586d43,_0x10c0e5,_0x66f77d- -0x81,_0x10c0e5-_0x862c87._0x14ca6a);}function _0x350cb3(_0x3207b4,_0x32db36,_0x42527d,_0x1811d5){return _0x39418f(_0x42527d,_0x1811d5-0x319,_0x42527d-_0x33f059._0x5d25a8,_0x1811d5-_0x33f059._0x803d86);}return await _0x45512f[_0x350cb3(0x456,0x500,_0x3b917e._0x56e067,0x45a)](_0x350cb3(0x23b,0x206,_0x3b917e._0x4daab6,0x2e4),{'query':_0x36c08e})??[];},async 'implementation'(_0x213a4b){const _0x500a1c={_0x27e711:0x45a},_0x2bf1a7={_0xa3835:0x1f3};function _0x5019a6(_0x35e362,_0x373487,_0x5ee9f1,_0x3ed896){return _0x39418f(_0x35e362,_0x373487-0x5ce,_0x5ee9f1-_0x2bf1a7._0xa3835,_0x3ed896-0x1c);}function _0x1cff59(_0x3ba3a2,_0x2746b0,_0x585f40,_0x11ac5a){return _0x39418f(_0x11ac5a,_0x585f40-_0x500a1c._0x27e711,_0x585f40-0x1c,_0x11ac5a-0x7);}return normalizeLocations(await _0x45512f[_0x5019a6(0x783,_0x2a53ab._0x504c4f,_0x2a53ab._0x3a66cc,0x624)](_0x1cff59(0x607,_0x2a53ab._0x1d49db,0x622,_0x2a53ab._0x1f68ad),textDocumentPosition(_0x213a4b)));},async 'prepareCallHierarchy'(_0x104fc8){const _0x1985d5={_0xa9c81d:0x179,_0x35b6ee:0x2c9};function _0x379680(_0x231e49,_0x106957,_0x2824c6,_0x1742cc){return _0x4c1332(_0x231e49-_0x1985d5._0xa9c81d,_0x231e49,_0x1742cc-_0x1985d5._0x35b6ee,_0x1742cc-0x25);}return await _0x45512f[_0x379680(0x658,_0x43a182._0x12e92e,0x60d,0x506)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x104fc8))??[];},async 'incomingCalls'(_0x22f2ec){function _0x1d0a4b(_0x5206a9,_0x52d404,_0x34fd1d,_0x496bbc){return _0x4c1332(_0x5206a9-0x6d,_0x5206a9,_0x496bbc-0xdb,_0x496bbc-_0x38563b._0x497078);}return await _0x45512f[_0x1d0a4b(0x21e,_0x36d2b1._0x59117c,_0x36d2b1._0x34a7d8,0x318)]('callHierarchy/incomingCalls',{'item':_0x22f2ec})??[];},async 'outgoingCalls'(_0xdc36d5){const _0x81a99={_0x350fb5:0x134,_0x4a1971:0xbe};function _0x6b03b(_0x4086d0,_0x3d2ec1,_0x33fa73,_0x10c488){return _0x4c1332(_0x4086d0-_0x81a99._0x350fb5,_0x3d2ec1,_0x33fa73- -0xe1,_0x10c488-_0x81a99._0x4a1971);}function _0x48ea2d(_0x2957e0,_0x4acf47,_0x121e3a,_0x1ac39a){return _0x4c1332(_0x2957e0-0x9d,_0x4acf47,_0x2957e0-0x4bf,_0x1ac39a-_0x568f49._0x553229);}return await _0x45512f[_0x6b03b(0x161,_0xb9354._0x298590,_0xb9354._0x3a1cb1,_0xb9354._0x419210)](_0x48ea2d(0x6c9,_0xb9354._0x3c9364,0x57b,_0xb9354._0x420c1b),{'item':_0xdc36d5})??[];}},'waitForDiagnostics'({path:_0x360e17,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x3488af=uriForPath(_0x360e17);function _0x3c34e6(_0x1493c5,_0x5b6fb9,_0x39386c,_0x46aa18){return _0x4c1332(_0x1493c5-0x47,_0x1493c5,_0x39386c-0x1df,_0x46aa18-0x1e);}if(_0x4a7e34[_0x43df28(0x140,0x3cf,0x294,_0x4ab99d._0x1ae4ef)](_0x3488af))return Promise[_0x43df28(0x343,0x270,_0x4ab99d._0x3059aa,0x33d)]();function _0x43df28(_0x1799cd,_0x9c647f,_0x41a028,_0x449ec7){return _0x39418f(_0x9c647f,_0x41a028-_0x41272a._0x208f6a,_0x41a028-_0x41272a._0x4c3baf,_0x449ec7-_0x41272a._0x540ca9);}return new Promise(_0x24112b=>{const _0x1a0458={_0x47f759:0x1cc},_0x3e058b={_0x2d3511:0x182,_0x23f993:0x598,_0x7f4c68:0x645,_0x1b8f33:0x622,_0x22be2e:0x5f3,_0x2a0ebc:0x701},_0x509421={_0x1792bc:0x259},_0x40073a=setTimeout(()=>{function _0x1ac1cb(_0x4c872e,_0x2fdf80,_0x33404f,_0x25d78b){return _0x27a7(_0x4c872e- -0x54,_0x33404f);}const _0x5a2c25=_0x5e8b99[_0x1ac1cb(0x200,_0x3e058b._0x2d3511,0xef,0x256)](_0x3488af);_0x5a2c25?.['delete'](_0x4573a6);function _0x51d9cf(_0x3f0c8d,_0x2dc95d,_0x566a24,_0x352047){return _0x27a7(_0x3f0c8d-_0x509421._0x1792bc,_0x352047);}if(_0x5a2c25?.[_0x51d9cf(0x5c7,_0x3e058b._0x23f993,_0x3e058b._0x7f4c68,0x589)]===0x0)_0x5e8b99[_0x51d9cf(_0x3e058b._0x1b8f33,0x5e0,_0x3e058b._0x22be2e,_0x3e058b._0x2a0ebc)](_0x3488af);_0x24112b();},timeoutMs);function _0x1632c6(_0x147636,_0x56b059,_0x3abcdc,_0x3c5373){return _0x3c34e6(_0x3c5373,_0x56b059-0x1c8,_0x3abcdc- -0x108,_0x3c5373-_0x1a0458._0x47f759);}const _0x4573a6=()=>{clearTimeout(_0x40073a),_0x24112b();};function _0x427c4b(_0x4ef252,_0x14c604,_0x285119,_0x318c77){return _0x43df28(_0x4ef252-0x6c,_0x318c77,_0x14c604- -0x2bc,_0x318c77-0xa3);}const _0xb22245=_0x5e8b99['get'](_0x3488af)??new Set();_0xb22245[_0x427c4b(-0x4e,_0x2bd260._0x41d0af,-_0x2bd260._0x41918c,0x81)](_0x4573a6),_0x5e8b99[_0x427c4b(-0x14a,-0xe0,-0xfa,-_0x2bd260._0x4462d)](_0x3488af,_0xb22245);});},async 'shutdown'(){function _0x877100(_0x16eb01,_0x1e8ca1,_0x16f11f,_0x234585){return _0x4c1332(_0x16eb01-0xca,_0x234585,_0x1e8ca1-0xc8,_0x234585-_0x54336b._0x13de8a);}if(_0x13b2d1)return;_0x13b2d1=!![];function _0x5a87b5(_0x2c02d7,_0x738631,_0x5dbe9d,_0x1d876e){return _0x39418f(_0x1d876e,_0x738631- -0x1c7,_0x5dbe9d-_0x43bb70._0x35b24d,_0x1d876e-_0x43bb70._0x5072db);}try{await _0x45512f['sendRequest'](_0x5a87b5(-_0x101fd2._0x4da790,-0x21a,-_0x101fd2._0x53eebe,-_0x101fd2._0x67d5),null),_0x45512f[_0x877100(0x4f9,_0x101fd2._0x2fcdfa,_0x101fd2._0x1feb89,0x528)](_0x5a87b5(-_0x101fd2._0x3decb3,-_0x101fd2._0x67d5,-_0x101fd2._0x3f6103,-0x2a0));}catch{}finally{_0x45512f[_0x877100(_0x101fd2._0xb9f2d4,_0x101fd2._0xaf9759,0x4ce,0x3c6)](),_0xbd1098[_0x5a87b5(-0x19d,-0x18a,-0x9a,-0x134)][_0x5a87b5(-_0x101fd2._0x1b2e57,-_0x101fd2._0x467361,-_0x101fd2._0x7f6a04,-0x29a)][_0x5a87b5(-0x237,-0x164,-0x128,-0x211)]();}}};return _0x228f65;}import{spawn as _0x3586d2}from'child_process';import{access as _0x3cc5cf}from'fs/promises';import _0x5b6570 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x5ae67b from'os';import _0x16b600 from'path';import _0x259d3 from'which';var installPromises=new Map();function sanitizePackageName(_0x258e84){return _0x258e84['replace'](/^@/,'')['replace'](/[/]/g,'__');}function binaryNameForPlatform(_0x14f67c){const _0x493ba0={_0x1c7559:0x1d0,_0x4a41fb:0x1f,_0x3dc97e:0x13},_0x425f24={_0x4d7cc7:0x380,_0x32b0a1:0x198},_0x4d80ec={_0x346753:0x4ff,_0x3b9d14:0x9f};function _0x59b873(_0x4a3ac9,_0x4036f3,_0x3523c9,_0x39fd35){return _0x57b9de(_0x4a3ac9-0x49,_0x3523c9,_0x39fd35- -_0x4d80ec._0x346753,_0x39fd35-_0x4d80ec._0x3b9d14);}function _0x778b4d(_0xa5e81b,_0x257adc,_0x13f995,_0x5167e1){return _0x23b1c2(_0xa5e81b-0x1b2,_0xa5e81b,_0x257adc- -_0x425f24._0x4d7cc7,_0x5167e1-_0x425f24._0x32b0a1);}return process[_0x59b873(-0x156,-0x2fa,-0x1c9,-_0x493ba0._0x1c7559)]==='win32'?_0x14f67c+_0x59b873(-_0x493ba0._0x4a41fb,-0xa4,-0x8,-_0x493ba0._0x3dc97e):_0x14f67c;}async function exists(_0x274812){try{return await access(_0x274812),!![];}catch{return![];}}function runNpmInstall(_0x5c096c,_0xa0e529,_0x17d130){const _0x222e5d={_0x596911:0x1db,_0x47afa4:0x7f6,_0x35bdbf:0x620};return new Promise(_0x29afa1=>{const _0x3e0b9c={_0x560ae5:0x38d};function _0x37bd9a(_0x4bcbd2,_0x146d25,_0x25bb6d,_0x4a2b7f){return _0x27a7(_0x25bb6d- -0x1c,_0x4bcbd2);}const _0x2fb8a9=spawn('npm',['install','--prefix',_0x5c096c,_0xa0e529],{'env':_0x17d130,'stdio':_0x37bd9a(_0x222e5d._0x596911,0x35d,0x20c,0x299)});_0x2fb8a9['on'](_0x5241ac(_0x222e5d._0x47afa4,0x76c,_0x222e5d._0x35bdbf,0x6f6),()=>_0x29afa1(![]));function _0x5241ac(_0x59189c,_0x44dc5f,_0x17e380,_0x2804f1){return _0x27a7(_0x2804f1-_0x3e0b9c._0x560ae5,_0x44dc5f);}_0x2fb8a9['on'](_0x5241ac(0x63d,0x54c,0x74f,0x678),_0x410e2d=>_0x29afa1(_0x410e2d===0x0));});}function shouldDisableLspDownload(_0x520a14=process['env']){const _0x1f91ca={_0x12f814:0x22d,_0x3a8f60:0x2f2,_0x54bf84:0x37f,_0x4f4f16:0x5bc,_0x58cd62:0x3b1,_0x271b26:0x505,_0x23c2a4:0x4af,_0x516cbb:0x522,_0x420325:0x55c,_0x374e41:0x41f,_0x1ef58c:0x686,_0x1f9e96:0x5ec},_0x611f92={_0x3eebe1:0x134,_0x43be1d:0x6a},_0x20aace={_0x38118f:0x19a};function _0x365ca4(_0x61444e,_0x3fad8e,_0x4ff69e,_0x2f4a67){return _0x23b1c2(_0x61444e-0x12c,_0x4ff69e,_0x3fad8e-0x127,_0x2f4a67-_0x20aace._0x38118f);}function _0x3cba7f(_0xbeca9c,_0x3960f3,_0x154e4a,_0x13e88e){return _0x23b1c2(_0xbeca9c-_0x611f92._0x3eebe1,_0xbeca9c,_0x154e4a-0x51,_0x13e88e-_0x611f92._0x43be1d);}const _0xf2870=_0x520a14[_0x3cba7f(_0x1f91ca._0x12f814,_0x1f91ca._0x3a8f60,_0x1f91ca._0x54bf84,0x461)]?.[_0x3cba7f(_0x1f91ca._0x4f4f16,_0x1f91ca._0x58cd62,_0x1f91ca._0x271b26,_0x1f91ca._0x23c2a4)]();return _0xf2870===_0x365ca4(_0x1f91ca._0x516cbb,0x541,_0x1f91ca._0x420325,_0x1f91ca._0x374e41)||_0xf2870==='1'||_0xf2870===_0x365ca4(_0x1f91ca._0x1ef58c,0x57d,_0x1f91ca._0x1f9e96,0x65e)||_0xf2870==='on';}function getLspPackageDir(_0x2eaace){const _0x56b20e={_0x5bc510:0x3c4,_0x54688e:0x377,_0x89c936:0x290,_0x409caf:0x1d2,_0x2b7b7e:0x4c7},_0x575c98={_0x504cec:0x187},_0x3bc56f={_0x32a526:0x165,_0x3a57a8:0x25,_0x1bce3e:0x41};function _0x5c221f(_0x3b2b1c,_0x2611dd,_0x28889b,_0x28aa37){return _0x57b9de(_0x3b2b1c-_0x3bc56f._0x32a526,_0x28889b,_0x3b2b1c-_0x3bc56f._0x3a57a8,_0x28aa37-_0x3bc56f._0x1bce3e);}function _0xa72af4(_0x3bcbb6,_0x5128d5,_0x565b44,_0xaec2a3){return _0x57b9de(_0x3bcbb6-0x190,_0xaec2a3,_0x3bcbb6- -0x121,_0xaec2a3-_0x575c98._0x504cec);}return _0x16b600[_0x5c221f(_0x56b20e._0x5bc510,0x2db,0x2a2,_0x56b20e._0x54688e)](_0x5ae67b[_0xa72af4(_0x56b20e._0x89c936,0x17c,0x2df,_0x56b20e._0x409caf)](),_0x5c221f(0x3d8,0x522,0x404,_0x56b20e._0x2b7b7e),'lsp','packages',sanitizePackageName(_0x2eaace));}function getLspBinDir(_0x49d6a3){const _0x299449={_0x5bf7ea:0x4d8,_0x25dbe0:0x3c2,_0x3bd2d6:0x4f9,_0x486574:0x4e6,_0x4b1cb2:0x6d9},_0x178762={_0x1ed309:0xea,_0x54c9ac:0x186},_0x57a7fc={_0x48b758:0x1e2,_0x548c3a:0xa5};function _0x245d9c(_0x40e6ba,_0x4428ec,_0x5e1961,_0x23dfc6){return _0x23b1c2(_0x40e6ba-_0x57a7fc._0x48b758,_0x40e6ba,_0x23dfc6-0x227,_0x23dfc6-_0x57a7fc._0x548c3a);}function _0x29f90d(_0x1d0e09,_0x2e601c,_0x5f5406,_0x45e8ed){return _0x57b9de(_0x1d0e09-_0x178762._0x1ed309,_0x1d0e09,_0x5f5406-0x151,_0x45e8ed-_0x178762._0x54c9ac);}return _0x16b600[_0x29f90d(_0x299449._0x5bf7ea,_0x299449._0x25dbe0,0x4f0,0x5a9)](getLspPackageDir(_0x49d6a3),_0x29f90d(_0x299449._0x3bd2d6,0x64a,0x613,_0x299449._0x486574),_0x29f90d(0x570,0x72e,0x69d,_0x299449._0x4b1cb2));}async function findPackageBinary(_0x1de2c9,_0x4d3539){const _0x291bec={_0x3fdfb9:0x5a4,_0x2bef7b:0x55a,_0x284d37:0x1a3,_0x2357d2:0x82,_0x99b592:0x2c6,_0x4a6948:0x316,_0x48221b:0x350,_0x4e0313:0x45f,_0x17c910:0x413,_0x10cfa2:0x310},_0x387d9b={_0x3e1186:0xb1},_0x565af3={_0x2dbb12:0x8,_0x2be322:0x1c9};function _0x46141c(_0x42085c,_0x5266f7,_0x7779cd,_0x360c47){return _0x23b1c2(_0x42085c-_0x565af3._0x2dbb12,_0x7779cd,_0x5266f7-_0x565af3._0x2be322,_0x360c47-0x148);}function _0x574fa9(_0x18f5e6,_0x460f2f,_0x3d1f61,_0xf150bd){return _0x23b1c2(_0x18f5e6-_0x387d9b._0x3e1186,_0xf150bd,_0x18f5e6- -0x14e,_0xf150bd-0x9f);}let _0x1089fc=_0x16b600[_0x46141c(_0x291bec._0x3fdfb9,0x506,_0x291bec._0x2bef7b,0x3b8)](_0x4d3539);const _0x2a0f21=binaryNameForPlatform(_0x1de2c9);while(!![]){const _0x49d57c=_0x16b600[_0x574fa9(_0x291bec._0x284d37,0x83,_0x291bec._0x2357d2,0x5b)](_0x1089fc,_0x574fa9(_0x291bec._0x99b592,0x3ea,0x40b,_0x291bec._0x4a6948),_0x574fa9(_0x291bec._0x48221b,_0x291bec._0x4e0313,0x297,_0x291bec._0x17c910),_0x2a0f21);if(await exists(_0x49d57c))return _0x49d57c;const _0x1c97d0=_0x16b600[_0x574fa9(0x26e,0x201,_0x291bec._0x10cfa2,0x1ef)](_0x1089fc);if(_0x1c97d0===_0x1089fc)return void 0x0;_0x1089fc=_0x1c97d0;}}async function findPathBinary(_0x310ee,_0x540494){const _0x3b8fbe={_0x3a0834:0x58c,_0x342702:0x5d7,_0xd9947d:0x5fb},_0x24812e={_0x285c81:0x181,_0x59fd92:0x30a,_0x6fc4bc:0x1ec},_0x2758a2={_0x1eadbb:0x1d5,_0xce0182:0xce},_0x368ca8=getLspBinDir(_0x540494),_0xd29780=[_0x368ca8,process[_0xe6a50(0x616,0x469,0x4eb,_0x3b8fbe._0x3a0834)]['PATH']]['filter'](Boolean)[_0x123203(0x59c,_0x3b8fbe._0x342702,0x563,_0x3b8fbe._0xd9947d)](_0x16b600[_0xe6a50(0x6ad,0x65f,0x649,0x528)]);function _0xe6a50(_0x1c79d3,_0x4d77c8,_0x142588,_0x121005){return _0x57b9de(_0x1c79d3-_0x2758a2._0x1eadbb,_0x4d77c8,_0x142588-0xe9,_0x121005-_0x2758a2._0xce0182);}function _0x123203(_0x508fc6,_0x117a73,_0xf548e4,_0x1767ba){return _0x23b1c2(_0x508fc6-_0x24812e._0x285c81,_0x117a73,_0x1767ba-_0x24812e._0x59fd92,_0x1767ba-_0x24812e._0x6fc4bc);}try{return await _0x259d3(_0x310ee,{'path':_0xd29780});}catch{return void 0x0;}}async function resolvePackageBinary(_0x1c7f33){const _0x5bbc53={_0x1e6b76:0x62e,_0x4bebb0:0x615,_0x4237cc:0x399,_0x5152ca:0x2,_0x3ddb1c:0x120,_0x47520e:0x418,_0x2cf917:0x367,_0x176f17:0x3b2,_0x14bb85:0xd7,_0x48b275:0xd,_0x51dc14:0x527,_0x409267:0x38c,_0x34a73e:0x3fb,_0x35d830:0x4df,_0x5918e9:0xd4,_0x3a6211:0xbb,_0x17e32a:0x6d,_0x55f63f:0x75,_0x3f67e0:0x180,_0x890baa:0x20a},_0x4c4bf7={_0x51cba9:0x645,_0x45c0cf:0x610,_0x22a088:0x597,_0x1b0744:0x529,_0x47b794:0x4d0,_0xbdc591:0x79e,_0xae8014:0x5e1,_0x497e4d:0x660},_0x1ae865={_0x3efaf2:0x176},_0x369305={_0x202baa:0x50},_0x1ee257={_0x2890ad:0x40f};function _0x725279(_0xfb3bc6,_0x33fd47,_0x49742a,_0x1cb462){return _0x57b9de(_0xfb3bc6-0x89,_0x33fd47,_0x49742a- -_0x1ee257._0x2890ad,_0x1cb462-0x10b);}const _0x4187b7=_0x1c7f33[_0x725279(-0x1a5,-0x241,-0x112,0x3f)]??_0x1c7f33[_0x380296(_0x5bbc53._0x1e6b76,_0x5bbc53._0x4bebb0,_0x5bbc53._0x4237cc,0x4df)],_0x1771d5=await findPackageBinary(_0x4187b7,_0x1c7f33['startDir']);if(_0x1771d5)return _0x1771d5;const _0x146508=await findPathBinary(_0x4187b7,_0x1c7f33[_0x725279(0x130,_0x5bbc53._0x5152ca,_0x5bbc53._0x3ddb1c,-0xd)]);if(_0x146508)return _0x146508;const _0x149b61=_0x1c7f33[_0x380296(_0x5bbc53._0x47520e,_0x5bbc53._0x2cf917,0x480,_0x5bbc53._0x176f17)]??process[_0x725279(_0x5bbc53._0x14bb85,-0xf9,-_0x5bbc53._0x48b275,0x3)];if(shouldDisableLspDownload(_0x149b61))return void 0x0;const _0xd82fd5=getLspPackageDir(_0x1c7f33[_0x380296(_0x5bbc53._0x51dc14,_0x5bbc53._0x409267,_0x5bbc53._0x34a73e,_0x5bbc53._0x35d830)]),_0x5124d2=_0x1c7f33[_0x725279(0xfc,_0x5bbc53._0x5918e9,0x120,0x96)]+':'+_0x4187b7;function _0x380296(_0xf4290c,_0x52c2f5,_0x234b3c,_0x4a0c09){return _0x57b9de(_0xf4290c-0x1f,_0xf4290c,_0x4a0c09- -_0x369305._0x202baa,_0x4a0c09-0x1a3);}let _0x1355e4=installPromises[_0x725279(-_0x5bbc53._0x3a6211,-_0x5bbc53._0x17e32a,-_0x5bbc53._0x55f63f,-0xf2)](_0x5124d2);!_0x1355e4&&(_0x1355e4=((async()=>{const _0x29be03={_0x2c9042:0xca};function _0x786f8f(_0x32f0e3,_0x33416c,_0x30f7e1,_0x311119){return _0x725279(_0x32f0e3-_0x29be03._0x2c9042,_0x311119,_0x32f0e3-0x64b,_0x311119-0x1b);}await mkdir(_0xd82fd5,{'recursive':!![]});function _0x52f6e1(_0x12d5f4,_0x37034c,_0x5ae09f,_0x103c13){return _0x725279(_0x12d5f4-_0x1ae865._0x3efaf2,_0x5ae09f,_0x103c13-0x540,_0x103c13-0x71);}const _0x5037ff=await runNpmInstall(_0xd82fd5,_0x1c7f33[_0x52f6e1(_0x4c4bf7._0x51cba9,_0x4c4bf7._0x45c0cf,_0x4c4bf7._0x22a088,0x660)],_0x149b61);if(!_0x5037ff)return void 0x0;const _0x341918=_0x16b600[_0x52f6e1(0x4e5,0x4ad,_0x4c4bf7._0x1b0744,_0x4c4bf7._0x47b794)](getLspBinDir(_0x1c7f33[_0x52f6e1(_0x4c4bf7._0xbdc591,_0x4c4bf7._0xae8014,0x5ce,_0x4c4bf7._0x497e4d)]),binaryNameForPlatform(_0x4187b7));return await exists(_0x341918)?_0x341918:void 0x0;})()),installPromises[_0x380296(0x2b7,_0x5bbc53._0x3f67e0,_0x5bbc53._0x890baa,0x2a7)](_0x5124d2,_0x1355e4));try{return await _0x1355e4;}catch{return void 0x0;}finally{installPromises['delete'](_0x5124d2);}}var TYPESCRIPT_EXTENSIONS=[_0x57b9de(0x562,0x58a,0x55c,0x5f9),_0x23b1c2(0x58e,0x5f2,0x4a8,0x5e7),_0x57b9de(0x229,0x3ff,0x372,0x43c),_0x23b1c2(0x3b8,0x4c7,0x40b,0x304),'.mjs',_0x23b1c2(0x2b7,0x291,0x35e,0x3cc),_0x23b1c2(0x4e2,0x3dd,0x3d6,0x47a),_0x57b9de(0x4ff,0x4f3,0x531,0x4fe)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x23b1c2(0x47d,0x466,0x39b,0x3c3)],TYPESCRIPT_ROOT_MARKERS=[_0x23b1c2(0x447,0x2e0,0x306,0x443),_0x57b9de(0x4c4,0x499,0x4ce,0x560),_0x57b9de(0x454,0x4a3,0x3d7,0x3c9),'pnpm-lock.yaml',_0x23b1c2(0x37f,0x2f9,0x27b,0x2ee),'tsconfig.json',_0x23b1c2(0x48a,0x625,0x4db,0x4c8),_0x23b1c2(0x15d,0x249,0x292,0x3e2)],BIOME_ROOT_MARKERS=[_0x57b9de(0x355,0x54b,0x4a7,0x477),_0x57b9de(0x602,0x523,0x52a,0x466),'package-lock.json',_0x57b9de(0x52e,0x4fa,0x4ce,0x5c6),_0x57b9de(0x3fc,0x3c1,0x3d7,0x4ad),_0x57b9de(0x617,0x479,0x4df,0x459),_0x57b9de(0x330,0x2c5,0x329,0x42a),_0x23b1c2(0x1d0,0x373,0x292,0x1cb)];async function exists2(_0x514613){try{return await _0x3cc5cf(_0x514613),!![];}catch{return![];}}async function findUp(_0x344d2a,_0x1240f2){const _0xd4c835={_0x187bad:0xb0,_0x597374:0x19d,_0x2ab7b3:0x31,_0x26078b:0x36,_0x1d5061:0x3a,_0x1d3f07:0x93,_0x3f9037:0x24e,_0x49aee5:0x29d,_0x18ba2a:0x179,_0x2b6ad5:0x18e},_0x94e8dd={_0x5d160c:0x72},_0x333500={_0x4b748e:0x10e,_0x3bb795:0x3ed};function _0xaee3(_0x3df6f9,_0x18c702,_0x2351ab,_0x2483a6){return _0x23b1c2(_0x3df6f9-_0x333500._0x4b748e,_0x2351ab,_0x3df6f9- -_0x333500._0x3bb795,_0x2483a6-0xb1);}let _0x231692=_0x5b6570[_0xaee3(-_0xd4c835._0x187bad,-_0xd4c835._0x597374,0x29,-0x42)](_0x344d2a);function _0x5d78c4(_0x491b7a,_0x331e94,_0x1d2188,_0x5c3ac8){return _0x57b9de(_0x491b7a-0x1bc,_0x491b7a,_0x5c3ac8- -0x2dc,_0x5c3ac8-_0x94e8dd._0x5d160c);}const _0x19102a=_0x5b6570['extname'](_0x231692);if(_0x19102a)_0x231692=_0x5b6570[_0xaee3(-_0xd4c835._0x2ab7b3,-_0xd4c835._0x26078b,-0x49,_0xd4c835._0x1d5061)](_0x231692);while(!![]){for(const _0xaf0c34 of _0x1240f2){if(await exists2(_0x5b6570[_0xaee3(-0xfc,0x56,-_0xd4c835._0x1d3f07,-_0xd4c835._0x3f9037)](_0x231692,_0xaf0c34)))return _0x231692;}const _0x1f50dc=_0x5b6570[_0x5d78c4(_0xd4c835._0x49aee5,0x211,_0xd4c835._0x18ba2a,_0xd4c835._0x2b6ad5)](_0x231692);if(_0x1f50dc===_0x231692)return void 0x0;_0x231692=_0x1f50dc;}}async function hasDenoRoot(_0x34eca1){const _0x53dfcd={_0x415d01:0x4e,_0x210c4e:0x1d,_0x13654d:0x5a,_0x38552e:0x550,_0x339512:0x3ce,_0x2d7eef:0x33,_0x1bc557:0x5a,_0x1f83ca:0xe8,_0x398334:0x6f,_0x111154:0xb4},_0x66c3ec={_0x5f0644:0x148,_0x268a1c:0x34b},_0x4228d4={_0x3e1b37:0x1ab};function _0x317dec(_0x4cd2f2,_0x3d59d8,_0x4ae996,_0x4be3b8){return _0x23b1c2(_0x4cd2f2-0xfb,_0x3d59d8,_0x4ae996-_0x4228d4._0x3e1b37,_0x4be3b8-0x37);}function _0x1bbe9f(_0x16e1bb,_0x54e8a0,_0xc01d60,_0x65515){return _0x23b1c2(_0x16e1bb-_0x66c3ec._0x5f0644,_0x16e1bb,_0xc01d60- -_0x66c3ec._0x268a1c,_0x65515-0x10e);}return await exists2(_0x5b6570[_0x1bbe9f(_0x53dfcd._0x415d01,-_0x53dfcd._0x210c4e,-_0x53dfcd._0x13654d,-0xd9)](_0x34eca1,_0x317dec(0x4a4,_0x53dfcd._0x38552e,0x439,_0x53dfcd._0x339512)))||await exists2(_0x5b6570[_0x1bbe9f(0xe,-_0x53dfcd._0x2d7eef,-_0x53dfcd._0x1bc557,_0x53dfcd._0x1f83ca)](_0x34eca1,_0x1bbe9f(0x191,-_0x53dfcd._0x398334,_0x53dfcd._0x111154,0x47)));}async function resolveTsserverPath(_0x4b1be9){const _0x4ffe4e={_0x120506:0x2fd,_0x50c790:0x459,_0x2ad704:0x4ef,_0x17e188:0x3f4,_0x1e029a:0x3a9,_0x2d0d28:0x283,_0x1b4c78:0x765,_0x3a46f2:0x5eb,_0x29c4cb:0x44b,_0x221061:0x2a4,_0x2ba9f5:0x39c,_0x5719f0:0x65b,_0x1e3ba1:0x5f4,_0x137b6c:0x6df,_0xbb90a2:0x615,_0x26e966:0x41a,_0x2af299:0x49f,_0xce0bdc:0x3f4,_0x513087:0x355,_0x19ccac:0x55f,_0x2ed3c8:0x56a,_0x260257:0x147,_0x3f3d25:0x386,_0x5f3c99:0x4b5,_0x3df819:0x3fa,_0x2e1ec8:0x4b6},_0x45cb10={_0x8a302c:0x20},_0x246b55={_0xf71937:0x174,_0x2dbc2e:0x324,_0x5adf23:0x55};let _0x5a8833=_0x5b6570['resolve'](_0x4b1be9);while(!![]){const _0x6bd1c6=_0x5b6570[_0x3bd2dc(0x41e,0x299,0x2d1,_0x4ffe4e._0x120506)](_0x5a8833,_0x3bd2dc(_0x4ffe4e._0x50c790,_0x4ffe4e._0x2ad704,_0x4ffe4e._0x17e188,0x3bd),'typescript',_0x3bd2dc(_0x4ffe4e._0x1e029a,0x1bc,_0x4ffe4e._0x2d0d28,0x374),_0x3a0060(0x669,_0x4ffe4e._0x1b4c78,_0x4ffe4e._0x3a46f2,0x6d8));if(await exists2(_0x6bd1c6))return _0x6bd1c6;const _0x442b5d=_0x5b6570[_0x3bd2dc(_0x4ffe4e._0x29c4cb,_0x4ffe4e._0x221061,_0x4ffe4e._0x2ba9f5,0x48f)](_0x5a8833);if(_0x442b5d===_0x5a8833)break;_0x5a8833=_0x442b5d;}function _0x3a0060(_0xe2beeb,_0x50c11f,_0x534426,_0x454617){return _0x23b1c2(_0xe2beeb-_0x246b55._0xf71937,_0xe2beeb,_0x454617-_0x246b55._0x2dbc2e,_0x454617-_0x246b55._0x5adf23);}const _0x145ddb=getLspPackageDir(_0x3a0060(0x52a,0x5ca,0x4d3,0x56a)),_0x13d65b=await resolvePackageBinary({'packageName':_0x3a0060(0x4d4,0x655,_0x4ffe4e._0x5719f0,0x56a),'binaryName':'tsc','startDir':_0x4b1be9});if(!_0x13d65b)return void 0x0;const _0xcae7ed=_0x5b6570[_0x3a0060(_0x4ffe4e._0x1e3ba1,_0x4ffe4e._0x1b4c78,_0x4ffe4e._0x137b6c,_0x4ffe4e._0xbb90a2)](_0x145ddb,_0x3bd2dc(_0x4ffe4e._0x26e966,_0x4ffe4e._0x2af299,_0x4ffe4e._0xce0bdc,_0x4ffe4e._0x513087),_0x3a0060(0x50d,0x657,_0x4ffe4e._0x19ccac,_0x4ffe4e._0x2ed3c8),_0x3bd2dc(_0x4ffe4e._0x260257,_0x4ffe4e._0x3f3d25,_0x4ffe4e._0x2d0d28,0x2bb),_0x3bd2dc(_0x4ffe4e._0x5f3c99,_0x4ffe4e._0x3df819,0x394,_0x4ffe4e._0x2e1ec8));function _0x3bd2dc(_0x3f8fcc,_0x5484d9,_0x349850,_0x2d9d34){return _0x23b1c2(_0x3f8fcc-0xc4,_0x3f8fcc,_0x349850- -_0x45cb10._0x8a302c,_0x2d9d34-0x106);}return await exists2(_0xcae7ed)?_0xcae7ed:void 0x0;}var TypeScriptServer={'id':'typescript','name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x3fdf32){const _0x426d08=await findUp(_0x3fdf32,TYPESCRIPT_ROOT_MARKERS);if(!_0x426d08)return void 0x0;return await hasDenoRoot(_0x426d08)?void 0x0:_0x426d08;},async 'spawn'(_0x12f547){const _0x50862a={_0x2be6a1:0x642,_0x239206:0x53c,_0x224a2e:0x46e,_0x25f80f:0x564,_0x22fac1:0x456},_0x5d6522={_0x415011:0x120},_0x5ca869={_0x166277:0xd1,_0x4744ba:0x154},_0x3edd41=await resolveTsserverPath(_0x12f547);function _0x4df3f0(_0x111568,_0x319fc9,_0x54eaf4,_0x517232){return _0x57b9de(_0x111568-0xbc,_0x54eaf4,_0x111568-_0x5ca869._0x166277,_0x517232-_0x5ca869._0x4744ba);}function _0x2f01f7(_0x5e243f,_0x38e3b7,_0x590513,_0x1d7733){return _0x23b1c2(_0x5e243f-0x1d3,_0x38e3b7,_0x5e243f-_0x5d6522._0x415011,_0x1d7733-0x68);}if(!_0x3edd41)return void 0x0;const _0x4d0f9e=await resolvePackageBinary({'packageName':_0x2f01f7(0x505,_0x50862a._0x2be6a1,_0x50862a._0x239206,_0x50862a._0x224a2e),'binaryName':_0x4df3f0(_0x50862a._0x25f80f,0x482,_0x50862a._0x22fac1,0x425),'startDir':_0x12f547});if(!_0x4d0f9e)return void 0x0;return{'process':_0x3586d2(_0x4d0f9e,[_0x4df3f0(0x640,0x50e,0x53e,0x54d)],{'cwd':_0x12f547,'stdio':'pipe'}),'initialization':{'tsserver':{'path':_0x3edd41}}};}},BiomeServer={'id':_0x57b9de(0x4ca,0x3b2,0x40b,0x44e),'name':_0x57b9de(0x3bb,0x458,0x50d,0x4b7),'extensions':BIOME_EXTENSIONS,async 'root'(_0x29621f){return findUp(_0x29621f,BIOME_ROOT_MARKERS);},async 'spawn'(_0x4f4242){const _0x96c117={_0x3fca5c:0x335,_0x2b3709:0x30e,_0x2ae174:0x33c,_0x43f44c:0x3e8,_0x540dc4:0x388,_0xe6abe7:0x1a6,_0x4ddf80:0x286,_0x475e16:0x2ca,_0x3c52c3:0x3e8,_0x30d399:0x49f,_0x770808:0x350},_0x1f5686={_0x15780f:0x52},_0x41b2a6=await findPackageBinary(_0x235c38(0x349,0x284,0x18e,_0x96c117._0x3fca5c),_0x4f4242)??await resolvePackageBinary({'packageName':_0x235c38(0x33f,_0x96c117._0x2b3709,_0x96c117._0x2ae174,_0x96c117._0x43f44c),'binaryName':_0x235c38(_0x96c117._0x540dc4,0x284,_0x96c117._0xe6abe7,_0x96c117._0x4ddf80),'startDir':_0x4f4242});function _0x235c38(_0x257e9c,_0x360e2d,_0x1cc80c,_0x4141d4){return _0x57b9de(_0x257e9c-0x1b,_0x4141d4,_0x360e2d- -0x187,_0x4141d4-0x2f);}if(!_0x41b2a6)return void 0x0;function _0x11c6a2(_0x2c0076,_0x37081c,_0x23b819,_0x23e122){return _0x57b9de(_0x2c0076-_0x1f5686._0x15780f,_0x23e122,_0x2c0076- -0xb,_0x23e122-0x1e3);}return{'process':_0x3586d2(_0x41b2a6,['lsp-proxy',_0x235c38(_0x96c117._0x475e16,_0x96c117._0x3c52c3,_0x96c117._0x30d399,_0x96c117._0x770808)],{'cwd':_0x4f4242,'stdio':_0x235c38(0x2f7,0x3e6,0x418,0x4ac)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x1081a4){const _0x9c71a2={_0x1f4260:0x42b,_0x3d4c33:0x3d3,_0x1d9085:0x4ab,_0x2eeff8:0x328,_0x2e52b5:0x2f6,_0x29abcf:0x36a},_0x484e95={_0x24b6d7:0x154,_0x18ee0c:0x50c};function _0x5aab54(_0x24163c,_0x379026,_0x145640,_0x1a0888){return _0x57b9de(_0x24163c-_0x484e95._0x24b6d7,_0x145640,_0x24163c- -_0x484e95._0x18ee0c,_0x1a0888-0xd9);}function _0x406d32(_0xcacb0b,_0x37e6e1,_0x472ca9,_0x24a286){return _0x57b9de(_0xcacb0b-0x10d,_0x37e6e1,_0x24a286- -0xb7,_0x24a286-0xdd);}const _0x34dc15=_0x5b6570['extname'](_0x1081a4)[_0x406d32(_0x9c71a2._0x1f4260,_0x9c71a2._0x3d4c33,0x4c6,_0x9c71a2._0x1d9085)]();return BUILTIN_LSP_SERVERS[_0x406d32(_0x9c71a2._0x2eeff8,_0x9c71a2._0x2e52b5,_0x9c71a2._0x29abcf,0x3d1)](_0xfdd16a=>_0xfdd16a[_0x5aab54(-0xac,-0x11d,-0x87,0xa)][_0x5aab54(-0x9b,0x7d,-0x1b6,-0xb4)](_0x34dc15));}function stateKey(_0x4e2d40,_0x2fbaa7){return _0x2fbaa7+':'+_0x4e2d40['id'];}function diagnosticsKeyToPath(_0x45dd59){const _0x4be5b7={_0x53bbd4:0x10e,_0x2ea8eb:0x64,_0x51aa6e:0x1ac},_0x38433b={_0x6dce90:0x30d,_0x51e820:0x12c},_0x2f833d={_0x5369af:0x19f};function _0x1ad68d(_0x1b6402,_0x50de89,_0x2da314,_0x53c44c){return _0x23b1c2(_0x1b6402-0x8a,_0x1b6402,_0x53c44c- -0x337,_0x53c44c-_0x2f833d._0x5369af);}if(!_0x45dd59[_0x4a8270(0x146,-0x6d,_0x4be5b7._0x53bbd4,0x62)](_0x1ad68d(_0x4be5b7._0x2ea8eb,_0x4be5b7._0x51aa6e,0x216,0x1ad)))return _0x45dd59;function _0x4a8270(_0x2abe4b,_0x3b44a4,_0x1787fa,_0xaf9549){return _0x23b1c2(_0x2abe4b-0x1c5,_0x2abe4b,_0xaf9549- -_0x38433b._0x6dce90,_0xaf9549-_0x38433b._0x51e820);}return fileURLToPath(_0x45dd59);}function nextFileVersion(_0x47f07c,_0x15a6ab){const _0x1858a3={_0x27188f:0x475,_0x767ffe:0x3c9,_0x5be8b:0x2cc,_0x508bde:0x341,_0x56514d:0x3d1,_0x455a33:0x268},_0x8c78de={_0x1e26af:0x19e},_0x4b6002={_0x431bb0:0xe5,_0x16b157:0x14c};function _0x1b6628(_0xc3bb78,_0x5c7f45,_0x50ecda,_0x4b6e0f){return _0x23b1c2(_0xc3bb78-0x140,_0x4b6e0f,_0x50ecda-_0x4b6002._0x431bb0,_0x4b6e0f-_0x4b6002._0x16b157);}const _0x4270e4=(_0x47f07c[_0x1b6628(_0x1858a3._0x27188f,0x4f8,_0x1858a3._0x767ffe,0x37f)][_0x1b6628(_0x1858a3._0x5be8b,_0x1858a3._0x508bde,_0x1858a3._0x56514d,0x2dd)](_0x15a6ab)??0x1)+0x1;_0x47f07c['fileVersions'][_0x3c5251(0x2b9,0x1ff,_0x1858a3._0x455a33,0x26b)](_0x15a6ab,_0x4270e4);function _0x3c5251(_0xc5868,_0xfe4072,_0x45af11,_0x378cfc){return _0x57b9de(_0xc5868-_0x8c78de._0x1e26af,_0x45af11,_0xfe4072- -0xf8,_0x378cfc-0x1ec);}return _0x4270e4;}async function collectClientResults(_0x5f48bc){const _0x91939c={_0x29468e:0x519},_0x42cc34={_0x196032:0x11d},_0x557c23={_0x54ae94:0x52};function _0x104672(_0x4349b8,_0x2adc2d,_0xb653e1,_0x470ef5){return _0x57b9de(_0x4349b8-0x1d2,_0x470ef5,_0x4349b8-0x141,_0x470ef5-_0x557c23._0x54ae94);}const _0x35bd15=await Promise[_0x25cb25(0x27c,0x39f,0x264,0x2ce)](_0x5f48bc);function _0x25cb25(_0x23484b,_0x58f831,_0x848217,_0x1694d6){return _0x23b1c2(_0x23484b-0xd7,_0x1694d6,_0x58f831-_0x42cc34._0x196032,_0x1694d6-0x14f);}return _0x35bd15[_0x25cb25(0x59a,0x44e,_0x91939c._0x29468e,0x3fd)](_0x4b308d=>_0x4b308d[_0x104672(0x611,0x5fa,0x687,0x709)]===_0x25cb25(0x515,0x41d,0x45a,0x53f)?_0x4b308d[_0x25cb25(0x36b,0x473,0x3cc,0x503)]:[]);}function createLspService(_0x110de5={}){const _0xf60581={_0x343163:0x661},_0x2717c1={_0xf3321b:0x6},_0x1109a3={_0x2376a4:0x1ba,_0x3fa9da:0x1d6,_0x37f12e:0x162,_0x11e975:0x143,_0xca9c69:0x68,_0x6acc5c:0x17c,_0x3504b0:0x12d,_0x3e9ac6:0x369,_0xcd8995:0x272,_0x2ad8f4:0xe1,_0x1309b6:0x185,_0x580825:0x2e,_0x2567ee:0x67,_0x3ead29:0x5c,_0x1d6df1:0x3c,_0x2e0248:0x298,_0x2e578e:0x169,_0x15df9d:0x218,_0x26bdaf:0x173,_0x1f339c:0x35c,_0x397621:0x1e4,_0x41bad5:0xf3,_0x1d584a:0x220,_0x12755f:0x67},_0x4acfe5={_0x1b20af:0x2cb},_0x3743fb={_0xdb0ac9:0xaf},_0x24b173={_0x44d09a:0xe7},_0x510506={_0x134560:0x5cf,_0x415335:0x6b2,_0x5c74fe:0x67a},_0x709598={_0x2cfcc8:0x85,_0x27f860:0x17d},_0x5f342d={_0x1aaceb:0x137},_0x59ed72={_0x5661de:0x58,_0x1b09f5:0x17a,_0x5afc91:0x10},_0x22fd57={_0x1a72c0:0x1be,_0x4ecd4d:0x1a4},_0x5580cf={_0x23c5a7:0x24f,_0x2cc8a1:0x1e2},_0x4b7e26={_0x2f66d:0x29c,_0x3927ae:0x25,_0x8c1b8e:0x1c3},_0x2b6e49={_0x4d9cac:0x168,_0x31966a:0x85,_0x1ce06c:0x12a},_0x3effbb={_0x1ebd1c:0x3d0},_0x34e8e3={_0x298abf:0xd4,_0x3fe6d1:0x124},_0x35a2d2={_0x83ce83:0x47b,_0x100dee:0x378,_0x1af755:0x5c2,_0x1c3a15:0x6bc,_0x3f2bb5:0x651},_0x28e710={_0x516ff5:0xd1,_0x5497c2:0x13d,_0x365f81:0xa2},_0x2b2558={_0x5ebadb:0x3a7,_0x9ebd7e:0x73,_0x2879db:0x7},_0x588ea1={_0xe7a862:0x6a,_0x4016f8:0x18f,_0x4dcaf7:0xa3},_0x2aef4d={_0x3bd85e:0x500,_0x44745c:0x1bb},_0x57ea5f={_0x437572:0x8a,_0x122a5c:0x93},_0x68360f={_0x2186fc:0x369,_0x473ab3:0x463,_0x58f0f5:0x3d1},_0x3fc3b9={_0x237fb4:0x63a,_0x3d0a45:0x557},_0x565d9f={_0x532d93:0x205},_0x5a9fed={_0x2b1ed8:0x3b1,_0x147b8f:0x5aa,_0x1e4a8f:0x465,_0x2a3163:0x204,_0x304f64:0x61,_0x39f371:0x56,_0x461dd7:0x22a},_0x3cb019={_0x3680d9:0xc,_0x3b0f35:0x9f},_0x1bc3fa={_0x4922cc:0x512,_0x48ecde:0x2de,_0xd0b949:0x373,_0x34c77e:0x312,_0x18d958:0x2a0,_0x11e251:0x386,_0xbb4c9f:0x1ff,_0x1d2357:0x410,_0x29f17d:0x3c5,_0x5c20e3:0x260,_0x2b571e:0x3d1,_0x2fbe20:0x200,_0x4d2319:0x208,_0x538db3:0x15f,_0x7d0cc0:0x140},_0x5775be={_0x5e893a:0xd3,_0x42b93b:0x17,_0x4428e2:0xc2,_0x4c8806:0x338,_0x482c31:0x2e7,_0x379581:0x245,_0x14994f:0x4ae,_0x395fa2:0x44a,_0x557c79:0x7e,_0x249b49:0x2f,_0x2739cf:0xaa,_0xb3cdbc:0x88,_0x345006:0x184,_0x4bf2cd:0x10a,_0x10d8af:0xde,_0x5dcd04:0x44a,_0x50243e:0x43f,_0x2d8b95:0x4d4,_0xcb3360:0x379,_0x42cc0a:0x290,_0x1dd5c7:0x2f3,_0x4a249c:0x331,_0x309dfe:0x284},_0x30f2f4={_0x5b3823:0x6f},_0x5b87e9={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x178edb=()=>_0x110de5[_0x5cb44f(0x581,0x4e6,0x504,0x531)]!==![];async function _0x1a93a8(_0x11acdd,_0x10b95f){const _0x1a7194={_0x4eed62:0x1c5,_0x49f9a3:0x1e0};function _0x5d81b0(_0x2ddace,_0x53365b,_0x1ce3fd,_0x1988d5){return _0x5cb44f(_0x1ce3fd- -0x122,_0x53365b,_0x1ce3fd-0x1cb,_0x1988d5-_0x30f2f4._0x5b3823);}const _0x22f8d6=stateKey(_0x11acdd,_0x10b95f),_0x89f392=_0x5b87e9[_0x35c87c(0x534,0x574,_0x1bc3fa._0x4922cc,0x663)][_0x5d81b0(_0x1bc3fa._0x48ecde,_0x1bc3fa._0xd0b949,0x268,0x347)](_0x2f2ef8=>_0x2f2ef8[_0x5d81b0(0x16b,0x2c5,0x23d,0x216)]===_0x11acdd['id']&&_0x2f2ef8[_0x5d81b0(0x3f1,0x40a,0x2ba,0x304)]===_0x10b95f);if(_0x89f392)return _0x89f392;if(_0x5b87e9[_0x5d81b0(_0x1bc3fa._0x34c77e,_0x1bc3fa._0x18d958,0x2b0,0x2bb)][_0x5d81b0(_0x1bc3fa._0x11e251,_0x1bc3fa._0xbb4c9f,0x296,0x16b)](_0x22f8d6))return void 0x0;const _0x59c55b=_0x5b87e9[_0x35c87c(_0x1bc3fa._0x1d2357,_0x1bc3fa._0x29f17d,0x358,_0x1bc3fa._0x5c20e3)][_0x35c87c(0x3cf,0x487,_0x1bc3fa._0x2b571e,0x31f)](_0x22f8d6);if(_0x59c55b)return _0x59c55b;const _0x12d118=((async()=>{const _0xb429ba={_0x44bfcc:0x2fd,_0x5c3353:0xcb},_0x2eb498={_0x2adaff:0x1e4};function _0x16e43c(_0x3e78c9,_0x44335b,_0xc942b8,_0x442c80){return _0x35c87c(_0x3e78c9-_0x2eb498._0x2adaff,_0x44335b,_0x3e78c9- -0xc8,_0x442c80-0xe1);}function _0x5ca48d(_0x516ded,_0x23809e,_0x16e662,_0x2cd10b){return _0x5d81b0(_0x516ded-0x12d,_0x2cd10b,_0x16e662- -_0xb429ba._0x44bfcc,_0x2cd10b-_0xb429ba._0x5c3353);}try{const _0x2a085c=await _0x11acdd[_0x5ca48d(_0x5775be._0x5e893a,_0x5775be._0x42b93b,_0x5775be._0x4428e2,0x6a)](_0x10b95f);if(!_0x2a085c)return _0x5b87e9[_0x16e43c(_0x5775be._0x4c8806,_0x5775be._0x482c31,0x379,_0x5775be._0x379581)][_0x16e43c(0x444,_0x5775be._0x14994f,0x559,0x541)](_0x22f8d6),void 0x0;const _0x12df42=await createLspClient({'server':_0x11acdd,'root':_0x10b95f,'handle':_0x2a085c}),_0x312020=_0x5b87e9[_0x16e43c(_0x5775be._0x395fa2,0x49c,0x50e,0x31a)][_0x5ca48d(-_0x5775be._0x557c79,-_0x5775be._0x249b49,-0x95,-_0x5775be._0x2739cf)](_0x45c001=>_0x45c001[_0x5ca48d(-0x17,-0x8e,-0xc0,-0x1c)]===_0x11acdd['id']&&_0x45c001[_0x5ca48d(0x4,0x3d,-0x43,-0xd)]===_0x10b95f);if(_0x312020)return await _0x12df42[_0x5ca48d(-_0x5775be._0xb3cdbc,-_0x5775be._0x345006,-_0x5775be._0x4bf2cd,-_0x5775be._0x10d8af)](),_0x312020;return _0x5b87e9[_0x16e43c(_0x5775be._0x5dcd04,0x378,0x47e,_0x5775be._0x50243e)][_0x16e43c(0x3b2,0x360,_0x5775be._0x2d8b95,_0x5775be._0xcb3360)](_0x12df42),_0x12df42;}catch{return _0x5b87e9['broken']['add'](_0x22f8d6),void 0x0;}finally{_0x5b87e9[_0x16e43c(_0x5775be._0x42cc0a,_0x5775be._0x1dd5c7,_0x5775be._0x4a249c,_0x5775be._0x309dfe)][_0x16e43c(0x47e,0x597,0x480,0x3a3)](_0x22f8d6);}})());_0x5b87e9[_0x5d81b0(0x286,_0x1bc3fa._0x2fbe20,_0x1bc3fa._0x4d2319,_0x1bc3fa._0x538db3)][_0x5d81b0(_0x1bc3fa._0x7d0cc0,0x197,0x1de,0x252)](_0x22f8d6,_0x12d118);function _0x35c87c(_0x540f3f,_0x324358,_0x393525,_0x1af389){return _0x5cb44f(_0x393525-0x2e,_0x324358,_0x393525-_0x1a7194._0x4eed62,_0x1af389-_0x1a7194._0x49f9a3);}return _0x12d118;}function _0x5cb44f(_0x4cf5dc,_0x3e9518,_0x20f3b8,_0x5b0422){return _0x57b9de(_0x4cf5dc-_0x3cb019._0x3680d9,_0x3e9518,_0x4cf5dc-0x9,_0x5b0422-_0x3cb019._0x3b0f35);}async function _0x14fa3e(_0x27e8f6,_0xf0a19e){const _0x12519e={_0xfdecda:0x34e,_0x3b8394:0x190};function _0x37ed00(_0x86cacf,_0x1862ae,_0x13d1c0,_0x4948b4){return _0x5cb44f(_0x13d1c0-0x93,_0x1862ae,_0x13d1c0-0x5b,_0x4948b4-0x5);}function _0x27efb5(_0x2ec4d9,_0x3b1405,_0x6c84e9,_0x242f39){return _0x5cb44f(_0x6c84e9- -_0x12519e._0xfdecda,_0x3b1405,_0x6c84e9-_0x12519e._0x3b8394,_0x242f39-0xf);}if(!_0x178edb())return[];const _0x3d2475=[];for(const _0x17cd4b of getServersForFile(_0x27e8f6)){const _0x33f9ce=await _0x17cd4b['root'](_0x27e8f6);if(!_0x33f9ce)continue;const _0x1083f4=stateKey(_0x17cd4b,_0x33f9ce);if(_0x5b87e9[_0x37ed00(_0x5a9fed._0x2b1ed8,_0x5a9fed._0x147b8f,_0x5a9fed._0x1e4a8f,0x527)]['has'](_0x1083f4))continue;const _0x4cfbbf=_0x5b87e9[_0x27efb5(0x16a,_0x5a9fed._0x2a3163,0x196,0x230)][_0x27efb5(-_0x5a9fed._0x304f64,-_0x5a9fed._0x39f371,0x3c,-0xa2)](_0x3a3fa5=>_0x3a3fa5[_0x27efb5(0x159,0xe8,0x11,-0x69)]===_0x17cd4b['id']&&_0x3a3fa5[_0x37ed00(0x48c,0x499,0x46f,0x3ca)]===_0x33f9ce);if(_0x4cfbbf){_0x3d2475['push'](_0x4cfbbf);continue;}if(!_0xf0a19e)continue;const _0x201598=await _0x1a93a8(_0x17cd4b,_0x33f9ce);if(_0x201598)_0x3d2475[_0x27efb5(_0x5a9fed._0x461dd7,0x1cb,0xfe,0xfa)](_0x201598);}return _0x3d2475;}async function _0x1f13e7(_0x3f10ec,_0x1908cd=![]){const _0x559739={_0x34f4da:0x29c,_0x14a21d:0x3b9,_0x2fba7f:0x2de,_0x133461:0x206,_0x169874:0x35b,_0x1c1f57:0x210,_0x4ff6de:0x36c,_0x22372f:0x404,_0x1f0fab:0x24a,_0x3a1af0:0x268,_0xecad46:0x3d0,_0x56452b:0x481,_0x9af658:0x415,_0x2b69b0:0x35b,_0x120241:0x256,_0x41fe6e:0x41c,_0x1ef368:0x33f,_0x2410af:0x4dc};function _0x4f782d(_0x188173,_0x151ae8,_0x14eceb,_0x2f70d2){return _0x5cb44f(_0x151ae8-_0x565d9f._0x532d93,_0x14eceb,_0x14eceb-0x4,_0x2f70d2-0x18c);}const _0x1a0e03=await _0x14fa3e(_0x3f10ec,!![]);await Promise[_0x4f782d(0x5c7,_0x3fc3b9._0x237fb4,_0x3fc3b9._0x3d0a45,0x62a)](_0x1a0e03['map'](async _0x474be3=>{const _0x32ac82={_0x3b1edc:0x13d,_0x13f0b5:0x286,_0x49a4fa:0x1ca},_0x429ba8={_0x2ba757:0x313,_0x3f16b3:0xb9};!_0x5b87e9[_0x5cb5d5(_0x559739._0x34f4da,0x2e2,_0x559739._0x14a21d,0x2a7)]['has'](_0x474be3[_0x5cb5d5(0x29c,_0x559739._0x2fba7f,_0x559739._0x133461,0x1cd)]+':'+_0x474be3[_0x5cb5d5(0x2ac,_0x559739._0x169874,0x430,_0x559739._0x1c1f57)]+':'+_0x3f10ec)&&(await _0x474be3[_0x5cb5d5(0x2e3,_0x559739._0x4ff6de,_0x559739._0x22372f,_0x559739._0x1f0fab)][_0x10bdd4(0x376,_0x559739._0x3a1af0,0x323,0x241)]({'path':_0x3f10ec}),_0x5b87e9['openFiles'][_0x10bdd4(_0x559739._0xecad46,_0x559739._0x56452b,0x342,0x494)](_0x474be3['serverId']+':'+_0x474be3[_0x5cb5d5(_0x559739._0x9af658,_0x559739._0x2b69b0,0x2f5,_0x559739._0x120241)]+':'+_0x3f10ec));function _0x10bdd4(_0x13b7b5,_0x211ac8,_0x279541,_0x16b08a){return _0x4f782d(_0x13b7b5-0x124,_0x13b7b5- -_0x429ba8._0x2ba757,_0x16b08a,_0x16b08a-_0x429ba8._0x3f16b3);}function _0x5cb5d5(_0x29fd45,_0x480fe5,_0x6916b4,_0x3c9c91){return _0x4f782d(_0x29fd45-_0x32ac82._0x3b1edc,_0x480fe5- -_0x32ac82._0x13f0b5,_0x29fd45,_0x3c9c91-_0x32ac82._0x49a4fa);}await _0x474be3[_0x10bdd4(0x2df,0x3c2,0x19d,_0x559739._0x41fe6e)][_0x5cb5d5(_0x559739._0x1ef368,0x3d7,_0x559739._0x2410af,0x31c)]({'path':_0x3f10ec,'version':nextFileVersion(_0x5b87e9,_0x3f10ec)});if(_0x1908cd)await _0x474be3['waitForDiagnostics']({'path':_0x3f10ec});}));}async function _0x230e0b(_0x3f7b35){await _0x1f13e7(_0x3f7b35[_0x5cbce6(_0x68360f._0x2186fc,0x340,_0x68360f._0x473ab3,_0x68360f._0x58f0f5)],![]);function _0x5cbce6(_0x2abc44,_0x4fd132,_0x399e42,_0x53af16){return _0x5cb44f(_0x4fd132- -0x230,_0x2abc44,_0x399e42-0x172,_0x53af16-0x5a);}return _0x14fa3e(_0x3f7b35['file'],![]);}async function _0x3f45ce(_0x24c149){const _0x1bd115={_0xbca3f6:0x17,_0x576041:0xb4};function _0x4182e5(_0x5ddb38,_0x1c61f2,_0x5b2785,_0x304a51){return _0x5cb44f(_0x304a51-_0x1bd115._0xbca3f6,_0x5b2785,_0x5b2785-_0x1bd115._0x576041,_0x304a51-0xe3);}function _0x3d00a2(_0x20e28a,_0x4de9f0,_0x44d649,_0x4a02ab){return _0x5cb44f(_0x4de9f0- -0x4b3,_0x20e28a,_0x44d649-0x86,_0x4a02ab-0x2f);}const _0x244278=await _0x230e0b(_0x24c149);return collectClientResults(_0x244278[_0x3d00a2(-0x9b,_0x57ea5f._0x437572,0xf7,-_0x57ea5f._0x122a5c)](_0x5eb96f=>_0x5eb96f[_0x3d00a2(-0x12c,-0x111,-0x23d,-0x25d)][_0x4182e5(0x2a4,0x357,0x30a,0x33a)](_0x24c149)));}return{'isEnabled':_0x178edb,async 'hasClients'(_0x2a2efc){function _0x47084c(_0x29782d,_0x4dee17,_0x578db2,_0x496b77){return _0x5cb44f(_0x496b77- -0x11a,_0x29782d,_0x578db2-0xd6,_0x496b77-0x84);}function _0x12f12b(_0x3566e8,_0x585c1b,_0x3971ad,_0x2b9be6){return _0x5cb44f(_0x585c1b- -_0x2aef4d._0x3bd85e,_0x2b9be6,_0x3971ad-0x1a7,_0x2b9be6-_0x2aef4d._0x44745c);}return(await _0x14fa3e(_0x2a2efc,![]))[_0x12f12b(-_0x588ea1._0xe7a862,0x60,_0x588ea1._0x4016f8,-0x14)]>0x0||getServersForFile(_0x2a2efc)[_0x12f12b(-0xac,0x60,0xdd,-_0x588ea1._0x4dcaf7)]>0x0;},'touchFile':_0x1f13e7,async 'diagnostics'(){const _0x371afc={_0x33dc6c:0x166},_0x26b206={};function _0x4d7a28(_0x18aad5,_0xae0dac,_0x25fe3a,_0x5563c7){return _0x5cb44f(_0x5563c7- -0x504,_0x25fe3a,_0x25fe3a-0x1ba,_0x5563c7-_0x371afc._0x33dc6c);}for(const _0x116d97 of _0x5b87e9[_0x296f16(_0x28e710._0x516ff5,0x8f,0x74,_0x28e710._0x5497c2)]){for(const [_0x22210c,_0xab4a7d]of _0x116d97[_0x296f16(-0xfc,0x70,-0xb1,-_0x28e710._0x365f81)]){_0x26b206[diagnosticsKeyToPath(_0x22210c)]=_0xab4a7d;}}function _0x296f16(_0x1ce34e,_0x301415,_0x3e021a,_0x2eb44a){return _0x5cb44f(_0x2eb44a- -_0x2b2558._0x5ebadb,_0x3e021a,_0x3e021a-_0x2b2558._0x9ebd7e,_0x2eb44a-_0x2b2558._0x2879db);}return _0x26b206;},async 'diagnosticsForFile'(_0x16aad3){const _0x479250={_0x581472:0x3f0,_0x1e9516:0x6e};await _0x1f13e7(_0x16aad3,!![]);const _0x5cb80a=[];function _0x11fedc(_0x3f13b4,_0x55754a,_0x51fd97,_0x1f14fb){return _0x5cb44f(_0x3f13b4-0x176,_0x1f14fb,_0x51fd97-0x190,_0x1f14fb-0x1d3);}for(const _0x399bec of await _0x14fa3e(_0x16aad3,![])){for(const [_0x430b19,_0x5cbb9b]of _0x399bec[_0x11fedc(_0x35a2d2._0x83ce83,0x529,_0x35a2d2._0x100dee,0x575)]){if(diagnosticsKeyToPath(_0x430b19)===_0x16aad3)_0x5cb80a[_0x11fedc(_0x35a2d2._0x1af755,0x64a,_0x35a2d2._0x1c3a15,_0x35a2d2._0x3f2bb5)](..._0x5cbb9b);}}function _0x38e275(_0x91371e,_0x502df3,_0x1800cf,_0x13239d){return _0x5cb44f(_0x502df3- -_0x479250._0x581472,_0x91371e,_0x1800cf-_0x479250._0x1e9516,_0x13239d-0x176);}return _0x5cb80a;},async 'definition'(_0x370f0b){const _0x92052e={_0x26e236:0x48c,_0x5dc73e:0x70};function _0x5ed218(_0x220cfd,_0x334cd6,_0x48efda,_0x5a3cb3){return _0x5cb44f(_0x220cfd- -_0x92052e._0x26e236,_0x5a3cb3,_0x48efda-0x13c,_0x5a3cb3-_0x92052e._0x5dc73e);}function _0x27490c(_0x33a2d9,_0x43b5d0,_0x31280f,_0x4fa2fa){return _0x5cb44f(_0x4fa2fa- -0xd2,_0x33a2d9,_0x31280f-_0x34e8e3._0x298abf,_0x4fa2fa-_0x34e8e3._0x3fe6d1);}return collectClientResults((await _0x230e0b(_0x370f0b))[_0x27490c(0x528,_0x3effbb._0x1ebd1c,0x4e3,0x46b)](_0x563f04=>_0x563f04['request'][_0x27490c(0x31a,0x2b7,0x394,0x3cb)](_0x370f0b)));},async 'references'(_0x227d01){const _0x30be5f={_0x1a9d37:0x1d,_0x4148a4:0x1e9},_0x527b28={_0x3feb08:0x4b8};function _0x2659a0(_0x5830a6,_0x948013,_0x3afd86,_0x5b1561){return _0x5cb44f(_0x3afd86- -_0x527b28._0x3feb08,_0x5830a6,_0x3afd86-0xe1,_0x5b1561-0x136);}function _0x5a1b3b(_0x5b9fe9,_0x33709a,_0x17dc81,_0x3f37fc){return _0x5cb44f(_0x5b9fe9- -_0x30be5f._0x1a9d37,_0x33709a,_0x17dc81-_0x30be5f._0x4148a4,_0x3f37fc-0x1b9);}return collectClientResults((await _0x230e0b(_0x227d01))[_0x2659a0(0x174,_0x2b6e49._0x4d9cac,_0x2b6e49._0x31966a,_0x2b6e49._0x1ce06c)](_0x246678=>_0x246678[_0x5a1b3b(0x385,0x32a,0x2a0,0x236)][_0x5a1b3b(0x361,0x3bb,0x326,0x2f4)](_0x227d01)));},async 'hover'(_0x4d82fd){function _0x20e601(_0xf75f67,_0xf25b0b,_0x59a35f,_0x495d14){return _0x5cb44f(_0x59a35f- -_0x4b7e26._0x2f66d,_0xf75f67,_0x59a35f-_0x4b7e26._0x3927ae,_0x495d14-_0x4b7e26._0x8c1b8e);}function _0x4c0e05(_0x2e342e,_0x303c2b,_0xcf24ba,_0x14de7d){return _0x5cb44f(_0x303c2b- -_0x5580cf._0x23c5a7,_0x2e342e,_0xcf24ba-0xb8,_0x14de7d-_0x5580cf._0x2cc8a1);}const _0xcb003e=await Promise[_0x4c0e05(-0x52,0xea,-0xf,0x128)]((await _0x230e0b(_0x4d82fd))[_0x4c0e05(0x204,0x2ee,0x38e,0x3ff)](_0x2248e2=>_0x2248e2[_0x20e601(0x15c,0x94,0x106,0x43)]['hover'](_0x4d82fd)));return _0xcb003e[_0x20e601(_0x22fd57._0x1a72c0,0x210,0x14c,_0x22fd57._0x4ecd4d)](_0x3953ec=>_0x3953ec[_0x20e601(0x34c,0x11e,0x23d,0x2eb)]===_0x20e601(0x1be,0x1a5,0x11b,0xaa)&&_0x3953ec[_0x20e601(0xff,0x35,0x171,0xe7)]?[_0x3953ec[_0x20e601(0x5c,0x296,0x171,0x4b)]]:[]);},async 'documentSymbol'(_0x459cc1){const _0x1ba461={_0x2190d9:0x453,_0x4b6b84:0xe8};function _0x5a3781(_0x238fdb,_0x3cf343,_0x3339f1,_0x31f438){return _0x5cb44f(_0x3cf343- -_0x1ba461._0x2190d9,_0x3339f1,_0x3339f1-0x197,_0x31f438-_0x1ba461._0x4b6b84);}await _0x1f13e7(_0x459cc1,![]);function _0x2fe696(_0x7ba4af,_0x4ba00f,_0x2ec6d8,_0x563240){return _0x5cb44f(_0x563240- -_0x59ed72._0x5661de,_0x4ba00f,_0x2ec6d8-_0x59ed72._0x1b09f5,_0x563240-_0x59ed72._0x5afc91);}return collectClientResults((await _0x14fa3e(_0x459cc1,![]))['map'](_0x5337a8=>_0x5337a8[_0x5a3781(-0xbf,-0xb1,-0x171,-0x3d)][_0x5a3781(-0x24,-0x6a,-0x81,0xa7)](_0x459cc1)));},async 'workspaceSymbol'(_0x7e0b34){function _0x530b0e(_0x2e38d2,_0x3694eb,_0x4015f6,_0x151c9b){return _0x5cb44f(_0x3694eb- -0x48b,_0x4015f6,_0x4015f6-0xe0,_0x151c9b-_0x5f342d._0x1aaceb);}function _0x446f69(_0x57bf4a,_0x1cf3b1,_0x42608b,_0x19da68){return _0x5cb44f(_0x19da68-0xc1,_0x1cf3b1,_0x42608b-_0x709598._0x2cfcc8,_0x19da68-_0x709598._0x27f860);}return collectClientResults(_0x5b87e9[_0x446f69(0x6a1,0x54a,_0x510506._0x134560,0x5a5)][_0x446f69(_0x510506._0x415335,_0x510506._0x5c74fe,0x585,0x5fe)](_0x2cc006=>_0x2cc006[_0x446f69(0x51b,0x36e,0x3b3,0x463)][_0x530b0e(0x18,0xcd,0x85,0x1ac)](_0x7e0b34)));},async 'implementation'(_0x15c6bc){const _0x2d9496={_0x1110a3:0x13a};function _0x540725(_0x229177,_0x103ba5,_0x475acc,_0x289c52){return _0x5cb44f(_0x475acc- -0x197,_0x103ba5,_0x475acc-_0x2d9496._0x1110a3,_0x289c52-0xd7);}return collectClientResults((await _0x230e0b(_0x15c6bc))['map'](_0x1626e5=>_0x1626e5[_0x540725(0x325,0x112,0x20b,0x100)]['implementation'](_0x15c6bc)));},async 'prepareCallHierarchy'(_0x564a73){return _0x3f45ce(_0x564a73);},async 'incomingCalls'(_0x2aaa63){const _0x1331a6={_0x46b4b6:0x73},_0x2b359b={_0x36d78c:0x24,_0x5b6304:0x2a};function _0xc3f349(_0xf3fd63,_0x13b543,_0x9f60cd,_0x40f173){return _0x5cb44f(_0x40f173- -_0x2b359b._0x36d78c,_0xf3fd63,_0x9f60cd-_0x2b359b._0x5b6304,_0x40f173-0xb2);}const _0x5a5ac9=await _0x3f45ce(_0x2aaa63),_0xf40907=await _0x230e0b(_0x2aaa63);function _0x16c51e(_0x2a61e5,_0xb0def0,_0x14b44a,_0x40b423){return _0x5cb44f(_0xb0def0- -0x345,_0x14b44a,_0x14b44a-0x1e3,_0x40b423-_0x1331a6._0x46b4b6);}return collectClientResults(_0xf40907[_0x16c51e(0x156,0xa3,0x101,_0x24b173._0x44d09a)](_0xa62f6=>_0x5a5ac9[_0x16c51e(0xdd,0x1f8,0x179,0x161)](_0x150f6c=>_0xa62f6[_0xc3f349(0x2a7,0x319,0x40d,0x37e)]['incomingCalls'](_0x150f6c))));},async 'outgoingCalls'(_0x238351){const _0xf28b56={_0x109694:0x1e1,_0x7b54c9:0x1d1};function _0x1e0971(_0x11c4be,_0xc7ae6a,_0x4dc6b9,_0x209f48){return _0x5cb44f(_0x209f48- -_0x3743fb._0xdb0ac9,_0x4dc6b9,_0x4dc6b9-0xe8,_0x209f48-0x168);}const _0xe26948=await _0x3f45ce(_0x238351),_0x4c6898=await _0x230e0b(_0x238351);function _0x42fb6f(_0x3aa9c7,_0x40008a,_0xa43167,_0x4e35f4){return _0x5cb44f(_0x4e35f4-0x1e4,_0x3aa9c7,_0xa43167-_0xf28b56._0x109694,_0x4e35f4-_0xf28b56._0x7b54c9);}return collectClientResults(_0x4c6898[_0x42fb6f(0x6a0,0x65c,0x5d7,0x5cc)](_0x4e08ad=>_0xe26948[_0x1e0971(0x4d4,0x3a6,0x57d,0x48e)](_0x3b9c71=>_0x4e08ad['request'][_0x42fb6f(0x7e5,0x681,0x809,0x6d1)](_0x3b9c71))));},async 'shutdown'(){const _0xdf8e68={_0x5792b9:0x47c,_0x321c96:0x6e};if(_0x5b87e9['shutdownStarted'])return;_0x5b87e9[_0x49aea3(_0x1109a3._0x2376a4,0x24f,0xe5,_0x1109a3._0x3fa9da)]=!![];function _0x49aea3(_0x4435fe,_0x3cf694,_0x3a2d4d,_0x366847){return _0x5cb44f(_0x366847- -_0x4acfe5._0x1b20af,_0x3cf694,_0x3a2d4d-0x8a,_0x366847-0xd6);}await Promise[_0x516e8b(-_0x1109a3._0x37f12e,-_0x1109a3._0x11e975,-0x26b,-0x165)](_0x5b87e9[_0x516e8b(0xde,_0x1109a3._0xca9c69,_0x1109a3._0x6acc5c,-0x81)][_0x49aea3(0x37a,_0x1109a3._0x3504b0,_0x1109a3._0x3e9ac6,_0x1109a3._0xcd8995)](_0x482412=>_0x482412['shutdown']()));function _0x516e8b(_0x102e8a,_0x525e49,_0x1f29bb,_0x49081e){return _0x5cb44f(_0x525e49- -_0xdf8e68._0x5792b9,_0x1f29bb,_0x1f29bb-_0xdf8e68._0x321c96,_0x49081e-0x198);}_0x5b87e9[_0x516e8b(-_0x1109a3._0x2ad8f4,0x68,_0x1109a3._0x1309b6,-0xe4)]=[],_0x5b87e9['spawning'][_0x516e8b(-_0x1109a3._0x580825,_0x1109a3._0x2567ee,-0x20,-_0x1109a3._0x3ead29)](),_0x5b87e9[_0x49aea3(0x130,0x115,_0x1109a3._0x1d6df1,0x107)][_0x49aea3(_0x1109a3._0x2e0248,0x2e9,_0x1109a3._0x2e578e,_0x1109a3._0x15df9d)](),_0x5b87e9[_0x49aea3(_0x1109a3._0x26bdaf,0xdf,0xc9,0xd0)][_0x49aea3(_0x1109a3._0x1f339c,_0x1109a3._0x397621,0x2e3,0x218)](),_0x5b87e9[_0x516e8b(-_0x1109a3._0x41bad5,-0x119,-_0x1109a3._0x1d584a,0x29)][_0x516e8b(-0x83,_0x1109a3._0x12755f,0xb5,0xe5)]();},'status'(){function _0x59ae0f(_0x34eddf,_0x1e91aa,_0x593f9a,_0x2b266d){return _0x5cb44f(_0x593f9a-0x1aa,_0x34eddf,_0x593f9a-0x108,_0x2b266d-_0x2717c1._0xf3321b);}return{'connectedClients':_0x5b87e9['clients'][_0x59ae0f(_0xf60581._0x343163,0x6cc,0x70a,0x5fc)]};}};}function createQuestionId(){const _0x54052e={_0x4871b7:0x34a,_0x9a0024:0x280,_0x576c6e:0x423,_0x2e1217:0x13c,_0x4d3d79:0x274,_0x49d0ad:0x185,_0x4167cf:0x3c5,_0x5dea4e:0x2a4,_0x2fb370:0x222,_0x59b5de:0x2c8,_0x3e7b0d:0x483,_0x2d8bdc:0x100,_0x2c9675:0xd6},_0x2d3893={_0xa2f510:0x178,_0x3e0537:0x177},_0x2b1e54={_0x4e3159:0x3cf,_0x548c85:0x15d};function _0x53ebb8(_0x52897b,_0x3f3271,_0x278683,_0x368ac3){return _0x57b9de(_0x52897b-0x1b5,_0x3f3271,_0x52897b- -_0x2b1e54._0x4e3159,_0x368ac3-_0x2b1e54._0x548c85);}function _0x2354e2(_0x2279c8,_0x49ec98,_0x3223dd,_0x52e2bc){return _0x57b9de(_0x2279c8-_0x2d3893._0xa2f510,_0x3223dd,_0x49ec98- -0x152,_0x52e2bc-_0x2d3893._0x3e0537);}return _0x2354e2(0x254,_0x54052e._0x4871b7,_0x54052e._0x9a0024,_0x54052e._0x576c6e)+Date[_0x2354e2(_0x54052e._0x2e1217,_0x54052e._0x4d3d79,_0x54052e._0x49d0ad,_0x54052e._0x4167cf)]()+'-'+Math[_0x2354e2(0x169,_0x54052e._0x5dea4e,_0x54052e._0x2fb370,_0x54052e._0x59b5de)]()[_0x2354e2(0x30e,0x39e,_0x54052e._0x3e7b0d,0x4d2)](0x24)[_0x53ebb8(0x71,_0x54052e._0x2d8bdc,-0x5f,_0x54052e._0x2c9675)](0x2,0x9);}function validateInput(_0x21fda0){const _0x4fa5fc={_0x46b4d3:0x1ff,_0x4da47c:0x2cc,_0x2b5fc7:0x32b,_0xfde35b:0x3ee,_0x5e69b8:0x2f7,_0x6b2f69:0x38a,_0x57ce34:0xe9,_0x91fbe1:0x269,_0x148a80:0x198,_0x159a67:0x198,_0x5c58ef:0x1cb,_0x3a64e:0x273,_0x35160d:0x244,_0x42ac42:0x18d,_0x21a5d8:0x314,_0x2fcf26:0x296,_0xb8e1e4:0x2be,_0x42ff31:0x1f6,_0x32e7de:0x198,_0x20c2da:0x1f7,_0x53e453:0x197,_0x3df213:0x198,_0x4a1a26:0x36b,_0x275d7d:0x335,_0x2885e8:0x38a,_0x4e6d7e:0x2a4,_0xd2a26f:0x3de,_0x504d65:0x178,_0x426724:0x1ca,_0x581bce:0xe8,_0x3309bb:0x2ce,_0x1a3eee:0x25e,_0x191a83:0x23,_0x28b891:0x10e,_0x16cb56:0x1e8,_0x5e1f76:0xe6,_0x46cb7b:0x1da,_0x46eb6b:0x232,_0x16f9b9:0x385,_0x2eb354:0x3f9,_0x416166:0x218,_0x5cc93f:0x252,_0x12f800:0x251,_0x32d5ef:0x248,_0x420592:0x332,_0x1caebc:0x20c,_0xc75437:0x2fd,_0x34da61:0x410,_0x1cb284:0x1f9,_0x5dc43a:0x312,_0x399810:0x141,_0x45fb70:0x1e1,_0x324b8a:0x36d,_0xe6c632:0x283,_0x454e2d:0xe5,_0x58c292:0x20c,_0x356774:0x1d3,_0x3d13d9:0x2d4,_0xcf7da1:0x3c6,_0x1efe91:0x1fd,_0x90622d:0x3f7,_0x567755:0x270,_0x28a96f:0x93,_0x3c650b:0x68,_0x944bb:0x10,_0x513fec:0xe1,_0x2288e7:0x27c,_0x4646ef:0x23c,_0x43c28e:0x22c,_0x283205:0x3cb,_0x57fc48:0x238,_0x1a7d27:0x287,_0x452351:0x175},_0x52e84f={_0x34b320:0x225},_0x542535={_0x17c35c:0x8e,_0x4a70f9:0x384};function _0x176134(_0x3d7b72,_0x3b7016,_0x5e3241,_0x18d396){return _0x57b9de(_0x3d7b72-_0x542535._0x17c35c,_0x5e3241,_0x18d396- -_0x542535._0x4a70f9,_0x18d396-0x68);}function _0x4703c2(_0x3afce2,_0x3a550e,_0x4471d0,_0x18b348){return _0x57b9de(_0x3afce2-0x7c,_0x3afce2,_0x3a550e- -_0x52e84f._0x34b320,_0x18b348-0x1aa);}if(!Array[_0x4703c2(_0x4fa5fc._0x46b4d3,_0x4fa5fc._0x4da47c,0x1ed,_0x4fa5fc._0x2b5fc7)](_0x21fda0[_0x4703c2(_0x4fa5fc._0xfde35b,_0x4fa5fc._0x5e69b8,0x2e2,_0x4fa5fc._0x6b2f69)])||_0x21fda0[_0x176134(_0x4fa5fc._0x57ce34,0x210,_0x4fa5fc._0x91fbe1,_0x4fa5fc._0x148a80)]['length']<0x1||_0x21fda0[_0x176134(0x88,0x1a1,0xbf,_0x4fa5fc._0x159a67)]['length']>0xa)throw new ToolExecutionError(_0x4703c2(0x2cf,_0x4fa5fc._0x5c58ef,0x1da,_0x4fa5fc._0x3a64e),{'error':_0x4703c2(0x1a8,_0x4fa5fc._0x35160d,_0x4fa5fc._0x42ac42,_0x4fa5fc._0x21a5d8)});for(let _0x1f7d2d=0x0;_0x1f7d2d<_0x21fda0[_0x176134(_0x4fa5fc._0x2fcf26,_0x4fa5fc._0xb8e1e4,_0x4fa5fc._0x42ff31,_0x4fa5fc._0x32e7de)][_0x176134(0x2fe,_0x4fa5fc._0x20c2da,0x253,0x1d3)];_0x1f7d2d+=0x1){const _0x21b8aa=_0x21fda0[_0x176134(0x9c,0x276,_0x4fa5fc._0x53e453,_0x4fa5fc._0x3df213)][_0x1f7d2d];if(!_0x21b8aa[_0x4703c2(_0x4fa5fc._0x4a1a26,0x2a4,0x155,_0x4fa5fc._0x275d7d)]||typeof _0x21b8aa[_0x4703c2(_0x4fa5fc._0x2885e8,_0x4fa5fc._0x4e6d7e,0x3bf,_0x4fa5fc._0xd2a26f)]!=='string')throw new ToolExecutionError('Question\x20'+(_0x1f7d2d+0x1)+_0x4703c2(_0x4fa5fc._0x504d65,_0x4fa5fc._0x426724,0x1a6,0x1ca));if(!_0x21b8aa[_0x176134(0xb2,_0x4fa5fc._0x581bce,0x17b,0x16f)]||typeof _0x21b8aa[_0x4703c2(0x1b8,_0x4fa5fc._0x3309bb,0x2a5,_0x4fa5fc._0x1a3eee)]!==_0x4703c2(_0x4fa5fc._0x191a83,_0x4fa5fc._0x28b891,_0x4fa5fc._0x16cb56,0x1b4))throw new ToolExecutionError('Question\x20'+(_0x1f7d2d+0x1)+_0x4703c2(_0x4fa5fc._0x5e1f76,_0x4fa5fc._0x46cb7b,_0x4fa5fc._0x46eb6b,0x31e));if(_0x21b8aa[_0x4703c2(_0x4fa5fc._0x16f9b9,_0x4fa5fc._0x3309bb,0x1b5,_0x4fa5fc._0x2eb354)]['length']>0x1e)throw new ToolExecutionError(_0x4703c2(0x426,0x2d4,_0x4fa5fc._0x416166,_0x4fa5fc._0x5cc93f)+(_0x1f7d2d+0x1)+_0x4703c2(_0x4fa5fc._0x12f800,0x139,_0x4fa5fc._0x32d5ef,0x37)+_0x21b8aa['topic'][_0x4703c2(0x32e,_0x4fa5fc._0x420592,0x368,0x276)]);if(!Array[_0x4703c2(_0x4fa5fc._0x1caebc,_0x4fa5fc._0x4da47c,0x37a,_0x4fa5fc._0xc75437)](_0x21b8aa[_0x4703c2(0x315,0x36b,0x37e,_0x4fa5fc._0x34da61)])||_0x21b8aa[_0x176134(_0x4fa5fc._0x1cb284,_0x4fa5fc._0x5dc43a,_0x4fa5fc._0x399810,0x20c)][_0x4703c2(_0x4fa5fc._0x45fb70,0x332,_0x4fa5fc._0x324b8a,0x28f)]<0x2||_0x21b8aa[_0x176134(0xc3,_0x4fa5fc._0xe6c632,_0x4fa5fc._0x454e2d,_0x4fa5fc._0x58c292)][_0x176134(0x2ad,0x2a2,0x272,_0x4fa5fc._0x356774)]>0x4)throw new ToolExecutionError(_0x4703c2(0x338,_0x4fa5fc._0x3d13d9,0x41c,_0x4fa5fc._0xcf7da1)+(_0x1f7d2d+0x1)+':\x20must\x20have\x202-4\x20options');for(let _0x47768f=0x0;_0x47768f<_0x21b8aa['options'][_0x4703c2(_0x4fa5fc._0x1efe91,0x332,0x46d,_0x4fa5fc._0x90622d)];_0x47768f+=0x1){const _0x5d4207=_0x21b8aa[_0x176134(0xd8,_0x4fa5fc._0x567755,0x18f,_0x4fa5fc._0x58c292)][_0x47768f];if(!_0x5d4207[_0x176134(-_0x4fa5fc._0x28a96f,-0x71,-_0x4fa5fc._0x3c650b,_0x4fa5fc._0x944bb)]||!_0x5d4207['description'])throw new ToolExecutionError('Question\x20'+(_0x1f7d2d+0x1)+_0x4703c2(0x1c3,_0x4fa5fc._0x513fec,_0x4fa5fc._0x426724,0x25)+(_0x47768f+0x1)+_0x4703c2(_0x4fa5fc._0x2288e7,0x225,_0x4fa5fc._0x4646ef,0x1ec));}if(typeof _0x21b8aa[_0x4703c2(_0x4fa5fc._0x43c28e,_0x4fa5fc._0xe6c632,0x34d,_0x4fa5fc._0x283205)]!=='boolean')throw new ToolExecutionError(_0x176134(0x50,_0x4fa5fc._0x57fc48,_0x4fa5fc._0x1a7d27,_0x4fa5fc._0x452351)+(_0x1f7d2d+0x1)+_0x176134(0xb9,-0x10a,_0x4fa5fc._0x454e2d,-0x68));}}function buildQuestions(_0x246c31){const _0x1ace1a={_0x2d1e9b:0x10,_0xbad679:0xc1},_0x274d27={_0x5b4988:0x71,_0x195d82:0x344,_0x13a514:0xad},_0x43762f={_0x3f9994:0xb,_0x1ce2e5:0x367,_0x1e2342:0x18c};function _0xa729e4(_0x99e0b8,_0x564247,_0xc0f5f8,_0x25636f){return _0x23b1c2(_0x99e0b8-_0x43762f._0x3f9994,_0x564247,_0xc0f5f8- -_0x43762f._0x1ce2e5,_0x25636f-_0x43762f._0x1e2342);}function _0x2bd618(_0x5521bc,_0x35d5e9,_0x4d3aad,_0x168b60){return _0x23b1c2(_0x5521bc-_0x274d27._0x5b4988,_0x4d3aad,_0x35d5e9- -_0x274d27._0x195d82,_0x168b60-_0x274d27._0x13a514);}return _0x246c31['questions'][_0x2bd618(0x267,0x142,_0x1ace1a._0x2d1e9b,_0x1ace1a._0xbad679)]((_0x368024,_0x30fa24)=>({'id':'q'+_0x30fa24,'question':_0x368024[_0xa729e4(-0x3b,-0x7f,0xb4,-0x9)],'topic':_0x368024[_0x2bd618(0x153,0x101,-0x33,0x66)],'options':_0x368024[_0x2bd618(0x2c6,0x19e,0x136,0x101)],'multiSelect':_0x368024[_0x2bd618(-0x53,0xb6,-0x9a,0x60)]}));}function createResult(_0x2bbf44,_0x5aaa9e,_0x2e6dd4){const _0x1e6e68={_0x3910d7:0xc9,_0x5ad9cf:0xcd,_0x1a9c6b:0x50,_0x3f2102:0x10e,_0x585790:0x1a,_0x3be268:0x2d,_0xd13e9e:0xc4},_0x30f499={_0x2cf071:0x3ef,_0x29f27c:0x130},_0x58424a={_0x10382a:0x1ab,_0x41b579:0x34d,_0x1d6eda:0x1b3},_0xb0fbf={'questionId':_0x2bbf44,'questionCount':_0x5aaa9e,'answers':_0x2e6dd4};function _0x1e869a(_0x553759,_0x326517,_0x1aea15,_0x306af9){return _0x57b9de(_0x553759-_0x58424a._0x10382a,_0x553759,_0x306af9- -_0x58424a._0x41b579,_0x306af9-_0x58424a._0x1d6eda);}function _0xde61e0(_0x524639,_0x39b237,_0xd6b7d0,_0x575d02){return _0x57b9de(_0x524639-0x164,_0x39b237,_0xd6b7d0- -_0x30f499._0x2cf071,_0x575d02-_0x30f499._0x29f27c);}return createToolOutput(_0x1e869a(_0x1e6e68._0x3910d7,_0x1e6e68._0x5ad9cf,_0x1e6e68._0x1a9c6b,0x76)+JSON[_0xde61e0(-_0x1e6e68._0x3f2102,_0x1e6e68._0x585790,_0x1e6e68._0x3be268,_0x1e6e68._0xd13e9e)](_0x2e6dd4,null,0x2),_0xb0fbf);}function createAskUserTool(){const _0xd6f1a5={_0x1c8850:0xd5,_0x3ae371:0xf5,_0x1edff9:0x104,_0x1695bd:0x7,_0x1cf108:0x78,_0x512492:0xd0,_0xc68223:0x167,_0x1ca0f7:0x2de,_0x4d3973:0x1a9,_0xd02490:0x52,_0x410485:0xde,_0x406b6a:0x1e,_0x340521:0x4f,_0x5daf01:0x14,_0x185a13:0xa3,_0x15b788:0x1bc,_0x466a5f:0x6f,_0x27045f:0xe6,_0x2ae5db:0x153,_0x58f818:0x66,_0x373674:0x3e,_0x109d75:0x14,_0x28acba:0xf0,_0xa72054:0xa4,_0xaa6a1e:0x11b,_0x40c30e:0x119},_0x22dacb={_0x1e8aba:0x25c,_0x2c09bc:0x221,_0x58f4cd:0x118,_0x5dff67:0x186,_0x4802bc:0x107,_0x3fb359:0x12,_0x3218d0:0xa0,_0x2d247d:0x89,_0x6d76fe:0x43e,_0x26644e:0x2c8,_0x2ed027:0x2,_0x5c8ec9:0x1eb,_0x1350ba:0x18e,_0x173be6:0x384,_0x5bc736:0x317,_0x5c905e:0x3bc,_0x2280aa:0x4be,_0x2304b1:0xa2,_0x5df90f:0x65,_0x5b6474:0x3f5,_0x2c7e09:0x2e5},_0x2bbc7e={_0x3ea4c5:0x1d6},_0xbc3c44={_0x4c6382:0x63,_0x157be3:0x166};function _0x4d38ae(_0x48aa48,_0x2662db,_0xdadaae,_0x35e8ea){return _0x57b9de(_0x48aa48-_0xbc3c44._0x4c6382,_0x35e8ea,_0xdadaae- -0x403,_0x35e8ea-_0xbc3c44._0x157be3);}function _0x28808f(_0x489f04,_0x56f0de,_0x1f30bd,_0x53bfba){return _0x57b9de(_0x489f04-0x19f,_0x53bfba,_0x1f30bd- -0x4dc,_0x53bfba-_0x2bbc7e._0x3ea4c5);}return defineTool({'name':'AskUserTool','description':_0x28808f(0xfc,0x118,0xa3,0x131),'inputSchema':{'type':'object','properties':{'questions':{'type':_0x28808f(-_0xd6f1a5._0x1c8850,-_0xd6f1a5._0x3ae371,-_0xd6f1a5._0x1edff9,-0x241),'items':{'type':'object','properties':{'question':{'type':_0x4d38ae(-_0xd6f1a5._0x1695bd,_0xd6f1a5._0x1cf108,-_0xd6f1a5._0x512492,0x7c)},'topic':{'type':_0x28808f(-_0xd6f1a5._0xc68223,-_0xd6f1a5._0x1ca0f7,-_0xd6f1a5._0x4d3973,-0xfa)},'options':{'type':'array','items':{'type':_0x28808f(0x15,-0x9b,-_0xd6f1a5._0xd02490,_0xd6f1a5._0x410485),'properties':{'label':{'type':_0x4d38ae(-_0xd6f1a5._0x406b6a,_0xd6f1a5._0x340521,-0xd0,-0x65)},'description':{'type':_0x4d38ae(0x31,-_0xd6f1a5._0x5daf01,-0xd0,0x5f)}},'required':[_0x4d38ae(_0xd6f1a5._0x185a13,-_0xd6f1a5._0x15b788,-_0xd6f1a5._0x466a5f,-0xfd),'description']}},'multiSelect':{'type':_0x28808f(-_0xd6f1a5._0x27045f,_0xd6f1a5._0x2ae5db,_0xd6f1a5._0x58f818,-0xe8)}},'required':[_0x28808f(-0x107,-0x3c,-0x13,_0xd6f1a5._0x373674),_0x4d38ae(-_0xd6f1a5._0x109d75,0x132,_0xd6f1a5._0x28acba,_0xd6f1a5._0xa72054),'options','multiSelect']}},'answers':{'type':_0x4d38ae(_0xd6f1a5._0xaa6a1e,-0x9,0x87,0xad),'properties':{}}},'required':[_0x4d38ae(0x1c,0x1eb,_0xd6f1a5._0x40c30e,0x186)]},async *'execute'(_0x121c79,_0x4515bb){const _0x1eaa20={_0x3a4053:0xe1,_0x5e3f32:0x25},_0x1c63f2={_0x4dc1da:0x37a},_0x219d6e=_0x121c79;validateInput(_0x219d6e);const _0x4bc2f4=_0x4515bb[_0x528f82(0x2c1,0x402,_0x22dacb._0x1e8aba,_0x22dacb._0x2c09bc)]??createQuestionId();function _0x528f82(_0x29df6c,_0x246e9f,_0x181271,_0x22ad3f){return _0x28808f(_0x29df6c-0x43,_0x246e9f-0x145,_0x29df6c-_0x1c63f2._0x4dc1da,_0x246e9f);}if(_0x219d6e[_0xb720dc(-_0x22dacb._0x58f4cd,-_0x22dacb._0x5dff67,-_0x22dacb._0x4802bc,-0x239)]&&Object[_0xb720dc(-0x13b,-0x89,0x82,_0x22dacb._0x3fb359)](_0x219d6e[_0xb720dc(-0x27e,-_0x22dacb._0x5dff67,-0x3d,-0x158)])[_0xb720dc(0xd7,_0x22dacb._0x3218d0,_0x22dacb._0x2d247d,0xfe)]>0x0)return createResult(_0x4bc2f4,_0x219d6e[_0x528f82(0x3ba,_0x22dacb._0x6d76fe,0x375,_0x22dacb._0x26644e)][_0xb720dc(-_0x22dacb._0x2ed027,0xa0,_0x22dacb._0x5c8ec9,_0x22dacb._0x1350ba)],_0x219d6e['answers']);if(!_0x4515bb[_0x528f82(0x3c7,_0x22dacb._0x173be6,_0x22dacb._0x5bc736,0x3c5)])throw new ToolExecutionError(_0x528f82(0x32a,0x1e2,0x392,0x460));const _0x3a634d=buildQuestions(_0x219d6e),_0x3e03c0=await _0x4515bb[_0x528f82(0x3c7,_0x22dacb._0x5c905e,_0x22dacb._0x2280aa,0x2e3)]({'questionId':_0x4bc2f4,'questions':_0x3a634d});function _0xb720dc(_0x5e71d6,_0x149dce,_0x11fe5d,_0xd119ba){return _0x28808f(_0x5e71d6-_0x1eaa20._0x3a4053,_0x149dce-0xa4,_0x149dce-_0x1eaa20._0x5e3f32,_0x11fe5d);}yield createResult(_0x4bc2f4,_0x219d6e[_0xb720dc(-_0x22dacb._0x2304b1,_0x22dacb._0x5df90f,-0x24,-0x2e)][_0x528f82(_0x22dacb._0x5b6474,0x3a9,_0x22dacb._0x2c7e09,0x49b)],_0x3e03c0);}});}import{spawn as _0x4be518}from'child_process';import{statSync}from'fs';import*as _0x1eb728 from'os';import*as _0x181fe3 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x412fb5 from'path';function isPathInside(_0x55dce9,_0x5e7de4){const _0x486e5d={_0x206d04:0x675,_0x4ded9f:0x690,_0x8e8de:0x5ac,_0x470c98:0x7ba},_0x1022b8={_0x56c232:0x53},_0x4e9115={_0x24f78a:0x1a6,_0x745555:0x258,_0xfa17e7:0x82},_0x3bb2d9=_0x412fb5['resolve'](_0x55dce9);function _0x53db91(_0x28e160,_0x5d18af,_0xb79ab2,_0x171c77){return _0x57b9de(_0x28e160-_0x4e9115._0x24f78a,_0x5d18af,_0x28e160-_0x4e9115._0x745555,_0x171c77-_0x4e9115._0xfa17e7);}const _0x510683=_0x412fb5['relative'](_0x3bb2d9,_0x5e7de4);function _0x1e705a(_0x527530,_0x3d6a8d,_0x37e62a,_0x367838){return _0x23b1c2(_0x527530-0x7b,_0x37e62a,_0x527530- -0x371,_0x367838-_0x1022b8._0x56c232);}return _0x510683===''||!_0x510683[_0x53db91(_0x486e5d._0x206d04,0x646,_0x486e5d._0x4ded9f,0x6d1)]('..')&&!_0x412fb5[_0x53db91(0x6d0,0x78a,_0x486e5d._0x8e8de,_0x486e5d._0x470c98)](_0x510683);}function resolveWorkspacePath(_0x4380e8,_0x3721cf){return resolveAllowedPath(_0x4380e8,[],_0x3721cf);}function resolveAllowedPath(_0x1d05da,_0x5811e7,_0x4b551d){const _0x3d5fa6={_0x1b6030:0x545,_0x5a1e7d:0x401,_0x93d131:0x411,_0x389a8d:0x54a,_0xe5ab54:0x5be,_0x27b64d:0x5a1,_0x3bf7d8:0x41a,_0x61b83f:0x50b,_0x28b51f:0x4e0,_0x2480af:0x548,_0x18434f:0x4d1},_0x167f7a={_0x229fea:0xbd},_0x2a3c32={_0xec226:0x9,_0x2a1625:0x16},_0x254dbc=_0x412fb5[_0x317f82(0x4aa,_0x3d5fa6._0x1b6030,_0x3d5fa6._0x5a1e7d,0x329)](_0x1d05da);function _0x317f82(_0x55b01e,_0x130ab4,_0x1498fb,_0x3e41bb){return _0x57b9de(_0x55b01e-_0x2a3c32._0xec226,_0x130ab4,_0x1498fb-_0x2a3c32._0x2a1625,_0x3e41bb-0xc9);}function _0x57c3f5(_0x17db19,_0x44ea82,_0x23877b,_0x14ae78){return _0x57b9de(_0x17db19-0x19c,_0x44ea82,_0x14ae78-0x154,_0x14ae78-_0x167f7a._0x229fea);}const _0x52fa15=_0x412fb5['resolve'](_0x254dbc,_0x4b551d),_0x5d4a2c=[_0x254dbc,..._0x5811e7[_0x317f82(_0x3d5fa6._0x93d131,0x67d,_0x3d5fa6._0x389a8d,_0x3d5fa6._0xe5ab54)](_0x2127e7=>_0x412fb5[_0x57c3f5(0x5fa,0x5b4,0x4b2,0x53f)](_0x2127e7))];if(_0x5d4a2c[_0x317f82(_0x3d5fa6._0x27b64d,_0x3d5fa6._0x3bf7d8,_0x3d5fa6._0x61b83f,0x542)](_0x3e43fd=>isPathInside(_0x3e43fd,_0x52fa15)))return _0x52fa15;throw new ToolExecutionError(_0x57c3f5(0x584,_0x3d5fa6._0x28b51f,_0x3d5fa6._0x2480af,_0x3d5fa6._0x18434f)+_0x4b551d,{'path':_0x4b551d,'rootDir':_0x254dbc,'allowedDirs':_0x5d4a2c});}async function assertWorkspaceFile(_0x1715bb){const _0x5617cc={_0x547e05:0x344,_0xbf75ba:0x3fe,_0x170cf3:0x487,_0x3c71a5:0x36,_0x50598e:0x20,_0x520558:0x91},_0x187439={_0x810167:0x411,_0x29dffb:0x27},_0x2ed0a7={_0x13ab94:0xff};function _0x275a58(_0xad228e,_0x1fdc38,_0x3b0600,_0x42a815){return _0x23b1c2(_0xad228e-0x15a,_0xad228e,_0x1fdc38-0x178,_0x42a815-_0x2ed0a7._0x13ab94);}const _0x235f5b=await stat(_0x1715bb);function _0x1628aa(_0x1736bf,_0x339f12,_0x29dae0,_0x4cd363){return _0x23b1c2(_0x1736bf-0x67,_0x339f12,_0x1736bf- -_0x187439._0x810167,_0x4cd363-_0x187439._0x29dffb);}if(!_0x235f5b[_0x275a58(_0x5617cc._0x547e05,_0x5617cc._0xbf75ba,_0x5617cc._0x170cf3,0x4ba)]())throw new ToolExecutionError(_0x1628aa(-_0x5617cc._0x3c71a5,-0x39,-_0x5617cc._0x50598e,_0x5617cc._0x520558)+_0x1715bb,{'path':_0x1715bb});}function isProbablyBinary(_0xfd22a8){const _0x4a0689={_0x2c6708:0xd2,_0x4074a5:0x15d},_0x275b6e={_0x10eb47:0x314,_0x8ef873:0x83};function _0x419d38(_0x13a958,_0x1c07d9,_0x27a43a,_0xc64209){return _0x57b9de(_0x13a958-0xf8,_0x1c07d9,_0xc64209- -_0x275b6e._0x10eb47,_0xc64209-_0x275b6e._0x8ef873);}return _0xfd22a8[_0x419d38(0x284,_0x4a0689._0x2c6708,0x78,_0x4a0689._0x4074a5)](0x0);}var DEFAULT_DESCRIPTION=_0x57b9de(0x642,0x511,0x518,0x667),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x202c65){return _0x202c65 instanceof Error;}function shellExists(_0x7154c6){try{const _0x36c634=statSync(_0x7154c6);return _0x36c634['isFile']()&&(_0x36c634['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x39252c){const _0x34eb91={_0x58df23:0x40,_0x2d9d54:0x10,_0x2226a9:0x1,_0x2a3640:0x113,_0x46e1ad:0x0,_0x255eb3:0xb5,_0xbe8630:0x1ce,_0x20ae68:0x162,_0xb6d078:0x2b5,_0x501661:0x2b3,_0x21032e:0x15d,_0xfa691c:0x1fe,_0x41c458:0x368,_0x557a42:0x1f3,_0x3b0bd6:0xc6,_0x650bfd:0x2f6,_0x21e8d3:0x1df,_0x218aec:0x184,_0x3921aa:0x1d2},_0x28b11e={_0x40b63a:0x175,_0x1db512:0x18a};function _0x35fbdf(_0x191889,_0x122970,_0x429766,_0x4969b5){return _0x23b1c2(_0x191889-0xe2,_0x429766,_0x191889- -0x241,_0x4969b5-0x162);}if(_0x39252c)return _0x39252c;if(_0x1eb728[_0x35fbdf(_0x34eb91._0x58df23,0xc6,-_0x34eb91._0x2d9d54,_0x34eb91._0x2226a9)]()==='win32')return process[_0x35fbdf(_0x34eb91._0x2a3640,_0x34eb91._0x46e1ad,_0x34eb91._0x255eb3,_0x34eb91._0xbe8630)][_0x35fbdf(_0x34eb91._0x20ae68,_0x34eb91._0xb6d078,_0x34eb91._0x501661,0x67)]||'cmd.exe';const _0x48288a=[_0x35fbdf(_0x34eb91._0x21032e,_0x34eb91._0xfa691c,0x132,0x1a1),_0x35fbdf(0x52,-0x15,0x149,0xd9),_0x3e2446(0x22d,0x440,0x316,_0x34eb91._0x41c458),_0x35fbdf(0x239,0x107,_0x34eb91._0x557a42,0x384)];for(const _0x3e749f of _0x48288a){if(shellExists(_0x3e749f))return _0x3e749f;}const _0x36def1=process[_0x3e2446(_0x34eb91._0x3b0bd6,0x293,_0x34eb91._0x650bfd,_0x34eb91._0x21e8d3)]['SHELL'];function _0x3e2446(_0x1e4f79,_0x52e5ad,_0xb2e898,_0x3eda11){return _0x23b1c2(_0x1e4f79-0xa3,_0x1e4f79,_0x3eda11- -_0x28b11e._0x40b63a,_0x3eda11-_0x28b11e._0x1db512);}if(_0x36def1&&shellExists(_0x36def1))return _0x36def1;return _0x3e2446(0x366,_0x34eb91._0x218aec,_0x34eb91._0x3921aa,0x229);}function buildShellArgs(_0x2314d0,_0x1f07a3){const _0x52eecb={_0x22ea0b:0x54e,_0x51bb59:0x44a,_0x180ec6:0x2fd,_0x1f9b32:0x4ba,_0x114329:0x550,_0x33709d:0x410,_0x20558e:0x6df,_0x39c26c:0x659,_0x21f036:0x420,_0x2862b6:0x498,_0x1c00bb:0x4b1,_0x427ee8:0x581,_0x100249:0x3ac,_0x665bdc:0x4f8,_0x214ff8:0x4bf},_0x96bd83={_0x5842ef:0xac,_0x193ce3:0xdc,_0x4b506d:0x104};function _0x73ecfa(_0x4094ca,_0x1082dc,_0x311a31,_0x1be2ca){return _0x57b9de(_0x4094ca-0x8,_0x4094ca,_0x311a31-0x11b,_0x1be2ca-0x1d4);}function _0x278c67(_0x4e285b,_0x2ca4ff,_0x32850d,_0x334d0f){return _0x23b1c2(_0x4e285b-_0x96bd83._0x5842ef,_0x334d0f,_0x32850d-_0x96bd83._0x193ce3,_0x334d0f-_0x96bd83._0x4b506d);}if(_0x1eb728[_0x73ecfa(0x2fd,_0x52eecb._0x22ea0b,_0x52eecb._0x51bb59,_0x52eecb._0x180ec6)]()===_0x73ecfa(_0x52eecb._0x1f9b32,_0x52eecb._0x114329,_0x52eecb._0x33709d,0x43b)){const _0x7a0dd=/cmd(\.exe)?$/i[_0x73ecfa(_0x52eecb._0x20558e,0x514,0x5ed,_0x52eecb._0x39c26c)](_0x1f07a3);return _0x7a0dd?['/d','/s','/c',_0x2314d0]:['-NoLogo',_0x73ecfa(_0x52eecb._0x21f036,_0x52eecb._0x2862b6,_0x52eecb._0x1c00bb,_0x52eecb._0x427ee8),_0x278c67(0x52a,_0x52eecb._0x100249,_0x52eecb._0x665bdc,_0x52eecb._0x214ff8),_0x2314d0];}return['-c',_0x2314d0];}function resolveCarriageReturns(_0xfed06a){const _0x5e8fe4={_0x33a6a9:0x107,_0x367c81:0xf6,_0x4974ee:0x43,_0x4ca582:0x100,_0x2610cb:0x72,_0x296381:0x127,_0x8748fa:0xe0},_0x5997a={_0x3f0dce:0x265,_0x246561:0x1bb,_0x1765b8:0x15c},_0x24fa03={_0x5e65ef:0x8b,_0x1c5c52:0x3d1},_0x31885b={_0x289020:0x376,_0x26c74c:0x85};function _0x310290(_0x3c3e88,_0x3c5435,_0x54e13b,_0x1d045c){return _0x23b1c2(_0x3c3e88-0xc7,_0x3c3e88,_0x54e13b- -_0x31885b._0x289020,_0x1d045c-_0x31885b._0x26c74c);}function _0x250a03(_0x1e59f9,_0x144a3e,_0x20726e,_0x59b69e){return _0x23b1c2(_0x1e59f9-_0x24fa03._0x5e65ef,_0x1e59f9,_0x59b69e- -_0x24fa03._0x1c5c52,_0x59b69e-0x63);}return _0xfed06a[_0x310290(0x56,_0x5e8fe4._0x33a6a9,_0x5e8fe4._0x367c81,-_0x5e8fe4._0x4974ee)]('\x0a')[_0x250a03(0x181,-0x31,_0x5e8fe4._0x4ca582,0xb5)](_0x24cf0b=>{const _0x5687fc={_0x5bb5fc:0xa2,_0x24e1d8:0x18e,_0x2cbd1a:0x204};if(!_0x24cf0b[_0x46e4ce(0x135,0x1f6,_0x5997a._0x3f0dce,_0x5997a._0x246561)]('\x0d'))return _0x24cf0b;function _0x46e4ce(_0x20e477,_0x51d3c4,_0x4fd67a,_0xe5eb05){return _0x250a03(_0x20e477,_0x51d3c4-_0x5687fc._0x5bb5fc,_0x4fd67a-_0x5687fc._0x24e1d8,_0x51d3c4-_0x5687fc._0x2cbd1a);}function _0x452fa1(_0x10f636,_0x5c2d31,_0x4fed59,_0x544982){return _0x310290(_0x5c2d31,_0x5c2d31-0x1b8,_0x4fed59-0x98,_0x544982-0x1e0);}const _0x5cf7e6=_0x24cf0b['split']('\x0d');return _0x5cf7e6[_0x5cf7e6[_0x452fa1(_0x5997a._0x1765b8,0x1c6,0x1cb,0x178)]-0x1]??'';})[_0x250a03(-0x162,_0x5e8fe4._0x2610cb,-_0x5e8fe4._0x296381,-_0x5e8fe4._0x8748fa)]('\x0a');}function resolveBackspaces(_0x16e683){const _0x1847a4={_0x31fece:0x150,_0x37eecd:0x3,_0x217199:0xbf,_0x14bbb1:0x6e,_0x7e589:0x85,_0x162d09:0x161},_0x32f4bb={_0xddf269:0x9f,_0x66fffa:0x452,_0x16c10f:0x1ac},_0x3b1cc0={_0x3b23e6:0x1dc,_0x22a0c8:0x468};function _0x20e2aa(_0x227c63,_0x3465ab,_0x416109,_0x5b62a1){return _0x57b9de(_0x227c63-_0x3b1cc0._0x3b23e6,_0x416109,_0x227c63- -_0x3b1cc0._0x22a0c8,_0x5b62a1-0x9f);}function _0x24f0ac(_0xc722c6,_0x5cea96,_0x150a95,_0x3a9f55){return _0x23b1c2(_0xc722c6-_0x32f4bb._0xddf269,_0x5cea96,_0x3a9f55- -_0x32f4bb._0x66fffa,_0x3a9f55-_0x32f4bb._0x16c10f);}const _0x3ef72c=[];for(const _0x15881b of Array['from'](_0x16e683)){_0x15881b==='\x08'?_0x3ef72c[_0x20e2aa(-0xee,0x1,-0x22c,-_0x1847a4._0x31fece)]():_0x3ef72c[_0x24f0ac(_0x1847a4._0x37eecd,-_0x1847a4._0x217199,_0x1847a4._0x14bbb1,-0xbd)](_0x15881b);}return _0x3ef72c[_0x24f0ac(-_0x1847a4._0x7e589,-0x21c,-0x1c5,-_0x1847a4._0x162d09)]('');}function _0x27a7(_0x59f3f6,_0x2c8001){_0x59f3f6=_0x59f3f6-0x1a7;const _0x3d53d4=_0x3d53();let _0x27a7e7=_0x3d53d4[_0x59f3f6];if(_0x27a7['Tryhwh']===undefined){var _0x509f0c=function(_0x33be50){const _0x408d87='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x323bca='',_0x3586d2='';for(let _0x3cc5cf=0x0,_0x5b6570,_0x5ae67b,_0x16b600=0x0;_0x5ae67b=_0x33be50['charAt'](_0x16b600++);~_0x5ae67b&&(_0x5b6570=_0x3cc5cf%0x4?_0x5b6570*0x40+_0x5ae67b:_0x5ae67b,_0x3cc5cf++%0x4)?_0x323bca+=String['fromCharCode'](0xff&_0x5b6570>>(-0x2*_0x3cc5cf&0x6)):0x0){_0x5ae67b=_0x408d87['indexOf'](_0x5ae67b);}for(let _0x259d3=0x0,_0x4be518=_0x323bca['length'];_0x259d3<_0x4be518;_0x259d3++){_0x3586d2+='%'+('00'+_0x323bca['charCodeAt'](_0x259d3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3586d2);};_0x27a7['PfaliV']=_0x509f0c,_0x27a7['wMeNQS']={},_0x27a7['Tryhwh']=!![];}const _0x25d84d=_0x3d53d4[0x0],_0x63a7a1=_0x59f3f6+_0x25d84d,_0x5b22bb=_0x27a7['wMeNQS'][_0x63a7a1];return!_0x5b22bb?(_0x27a7e7=_0x27a7['PfaliV'](_0x27a7e7),_0x27a7['wMeNQS'][_0x63a7a1]=_0x27a7e7):_0x27a7e7=_0x5b22bb,_0x27a7e7;}function stripAnsiAndControls(_0x18fe4c){const _0x1f859f={_0x23a328:0x8f,_0x1a33c4:0x16f,_0x2a403d:0x131,_0x52ade2:0x5d,_0x29a9c1:0x59,_0x1e3aa3:0x60,_0x25b220:0x28a,_0x2745fa:0x233,_0x4a6075:0x321,_0xda3cb9:0xb0,_0x3bcf66:0x143,_0x4aa7ee:0x3cb,_0x34e7d5:0x326,_0x41d1fc:0x1d3,_0x292f6b:0xb8,_0x58daf4:0x61,_0x47f086:0x101,_0x866db4:0x27,_0x421ec2:0x10e},_0x24430a={_0x5b21dc:0x119};function _0x416360(_0x4be6da,_0x49632b,_0x378bbf,_0x481d25){return _0x23b1c2(_0x4be6da-0x152,_0x481d25,_0x49632b- -0x3b0,_0x481d25-0x63);}function _0x206ee1(_0x45a2e4,_0x59020b,_0x1cacb1,_0x57fd4e){return _0x23b1c2(_0x45a2e4-0xc2,_0x59020b,_0x1cacb1- -_0x24430a._0x5b21dc,_0x57fd4e-0x76);}_0x18fe4c=resolveCarriageReturns(_0x18fe4c),_0x18fe4c=resolveBackspaces(_0x18fe4c),_0x18fe4c=stripVTControlCharacters(_0x18fe4c);const _0x361220='\x1b',_0x1029b3='\x07';return _0x18fe4c=_0x18fe4c[_0x416360(0x18f,_0x1f859f._0x23a328,_0x1f859f._0x1a33c4,_0x1f859f._0x2a403d)](new RegExp(_0x416360(0x13e,0x19,0x2d,0xa0)+_0x1029b3+_0x416360(-0x13e,-_0x1f859f._0x52ade2,_0x1f859f._0x29a9c1,-0x2d)+_0x1029b3,'g'),''),_0x18fe4c=_0x18fe4c[_0x416360(-_0x1f859f._0x1e3aa3,_0x1f859f._0x23a328,-0x22,-0x25)](new RegExp(_0x206ee1(_0x1f859f._0x25b220,_0x1f859f._0x2745fa,0x37e,_0x1f859f._0x4a6075)+_0x361220+'\x5c\x5c','g'),''),_0x18fe4c=_0x18fe4c['replace'](new RegExp(_0x1029b3,'g'),''),_0x18fe4c=_0x18fe4c[_0x416360(0x98,0x8f,_0x1f859f._0xda3cb9,_0x1f859f._0x3bcf66)](new RegExp(_0x361220+'[P_^][\x5cs\x5cS]*?'+_0x361220+'\x5c\x5c','g'),''),_0x18fe4c=_0x18fe4c[_0x206ee1(0x462,_0x1f859f._0x4aa7ee,_0x1f859f._0x34e7d5,_0x1f859f._0x41d1fc)](new RegExp(_0x361220+_0x416360(-0xf0,-_0x1f859f._0x292f6b,-0x6e,-_0x1f859f._0x58daf4),'g'),''),_0x18fe4c=_0x18fe4c[_0x416360(0x3b,0x8f,0x0,_0x1f859f._0x47f086)](/[\u0080-\u009F]/g,''),_0x18fe4c=_0x18fe4c[_0x206ee1(0x326,0x205,0x326,0x248)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x18fe4c=_0x18fe4c[_0x416360(-_0x1f859f._0x866db4,0x8f,_0x1f859f._0x421ec2,0x8d)](/[\u23CE\u2424]/g,''),_0x18fe4c;}function resolveWorkingDirectory(_0x447afb,_0x37b372,_0x1d017f){const _0x7d438d={_0x32fcc6:0x26},_0x5bf951={_0x1b39b5:0x72},_0x218733={_0x3fe06c:0x105};function _0x12b63d(_0x390cc9,_0x49d080,_0x13d3f4,_0x217df2){return _0x57b9de(_0x390cc9-0x9e,_0x390cc9,_0x13d3f4- -0x49,_0x217df2-_0x218733._0x3fe06c);}const _0x5d113e=resolveAllowedPath(_0x37b372,_0x1d017f,_0x447afb??'.');function _0x1a54fb(_0x183c0c,_0x131b3b,_0x47e2da,_0x4f43d2){return _0x57b9de(_0x183c0c-_0x5bf951._0x1b39b5,_0x4f43d2,_0x131b3b- -0x2ad,_0x4f43d2-0x14d);}try{const _0x47f054=statSync(_0x5d113e);if(!_0x47f054[_0x1a54fb(0x9e,0x158,0x155,0xd6)]())throw new ToolExecutionError(_0x1a54fb(0x33e,0x269,0x15d,0x23b)+_0x5d113e,{'cwd':_0x5d113e});return _0x5d113e;}catch(_0x4fa75d){if(_0x4fa75d instanceof ToolExecutionError)throw _0x4fa75d;throw new ToolExecutionError(_0x1a54fb(0x202,0xdd,0x133,-_0x7d438d._0x32fcc6)+_0x5d113e,{'cwd':_0x5d113e});}}function killProcessGroup(_0x2cb3c6,_0x5994b9,_0x3730d8=_0x23b1c2(0x29e,0x41c,0x330,0x1e0)){const _0x310c4d={_0x36ef7f:0xc4,_0x146f33:0x15c,_0x2df8df:0x1c2,_0x2dd576:0x29,_0xdc4430:0x1b1,_0x485225:0x167,_0x5db02c:0x73,_0xad9322:0x166,_0x2ffadf:0x5d5,_0x79eb9:0x734,_0x3fad6e:0x4b9,_0x3279f7:0x485,_0x4f7b12:0x45b},_0x27db4f={_0x57c52d:0xf0,_0x53809f:0x387},_0x2b9dd4={_0x44e41e:0x175};function _0x5081e3(_0x142927,_0x349bb4,_0x3d63f0,_0x5937d4){return _0x57b9de(_0x142927-0xfc,_0x3d63f0,_0x142927-_0x2b9dd4._0x44e41e,_0x5937d4-0x1c7);}if(!_0x2cb3c6['pid'])return;if(_0x5994b9)try{_0x4be518(_0x15843d(0xc9,_0x310c4d._0x36ef7f,_0x310c4d._0x146f33,_0x310c4d._0x2df8df),[_0x15843d(-0xa0,0x15b,0x3d,0xa1),_0x2cb3c6['pid']['toString'](),'/T','/F'],{'stdio':_0x15843d(-0x188,-0xa1,-0xc7,_0x310c4d._0x2dd576)});return;}catch{_0x2cb3c6['kill'](_0x3730d8);return;}function _0x15843d(_0x204477,_0x1b1f1e,_0x2bbf7d,_0x1806d5){return _0x23b1c2(_0x204477-_0x27db4f._0x57c52d,_0x204477,_0x2bbf7d- -_0x27db4f._0x53809f,_0x1806d5-0x187);}try{process[_0x15843d(-_0x310c4d._0xdc4430,-_0x310c4d._0x485225,-_0x310c4d._0x5db02c,-_0x310c4d._0xad9322)](-_0x2cb3c6[_0x5081e3(0x6f5,0x725,_0x310c4d._0x2ffadf,_0x310c4d._0x79eb9)],_0x3730d8);}catch{_0x2cb3c6[_0x5081e3(0x537,_0x310c4d._0x3fad6e,_0x310c4d._0x3279f7,_0x310c4d._0x4f7b12)](_0x3730d8);}}function appendChunk(_0x4bbca7,_0x3b1b91,_0x1c96cc,_0x273d6d,_0x1f7206){const _0x3e8143={_0x11f2b2:0x393,_0x4e1523:0x340,_0x259b05:0x427},_0x5b17ad={_0x1d1e85:0x115,_0x5d47c0:0x39},_0x461be5=_0x273d6d?stripAnsiAndControls(_0x1c96cc):_0x1c96cc;function _0x19b1a3(_0x3a9363,_0x4b14b4,_0x391a3b,_0x301d1a){return _0x23b1c2(_0x3a9363-0x172,_0x391a3b,_0x3a9363- -_0x5b17ad._0x1d1e85,_0x301d1a-_0x5b17ad._0x5d47c0);}if(_0x461be5[_0x19b1a3(0x394,_0x3e8143._0x11f2b2,_0x3e8143._0x4e1523,_0x3e8143._0x259b05)]===0x0)return;_0x4bbca7['push'](_0x461be5),_0x3b1b91['push'](_0x461be5),_0x1f7206();}function createBashTool(_0x2bc824={}){const _0x11ffde={_0x2bb5c1:0x3d5,_0x34971d:0x38b,_0x3d3806:0x323,_0x736844:0x308,_0x51d501:0x2d1,_0x560955:0x396,_0x181091:0x3e9,_0x250f82:0x413,_0x2e8a6b:0x428,_0x5310c5:0x4d9,_0x3b598f:0x448,_0x2fca52:0x61a,_0x8b61bd:0x4d4,_0x4e4632:0x434,_0x488320:0x451,_0x1926ac:0x3cb,_0x2a4e78:0x308,_0x134220:0x1d7,_0x158545:0x27e,_0x4056cf:0x2e9,_0xfdccea:0x26e,_0x114d13:0x511,_0xe4b22b:0x3f0,_0x3751f8:0x348,_0x22a647:0x2d3,_0xdb5a6a:0x3f3},_0x56e15b={_0x2d6a5b:0x66f,_0xd59e72:0x613,_0x3e1c7a:0x64e,_0x3d3d0f:0x51c,_0x4e278d:0x369,_0x984fb:0x3c9,_0x45e0e2:0x4b1,_0x13fc5c:0x616,_0x1acba8:0x55c,_0x240a72:0x63e,_0x2dadaf:0x735,_0x12d7b9:0x663,_0x2d5bf4:0x528,_0x1898f5:0x5da,_0x51fbba:0x3ed,_0x3ada6d:0x4b7,_0x184e7a:0x4d6,_0x4ad758:0x62a,_0x598b03:0x54c,_0x4a3f8d:0x69a,_0x4deae6:0x63f,_0x246b67:0x4dc,_0x4af58d:0x4d2,_0x1bc46c:0x2d0,_0x1106fa:0x46e,_0x4dcffe:0x369,_0x50d1ca:0x4ab,_0x46c723:0x519,_0x260183:0x458,_0x201275:0x417,_0x438025:0x8bb,_0x3aaeb5:0x89e,_0x53a0d5:0x8d0,_0x10d0e4:0x798,_0x3f812e:0x7f0,_0x509ebc:0x6cd,_0x15134e:0x6ce,_0x480813:0x86d,_0x223d7b:0x814,_0x558924:0x761,_0x3c6868:0x4ef,_0x2c333e:0x4d5,_0x6d9842:0x4eb,_0x2b7e8d:0x704,_0xbbae97:0x89a,_0x417973:0x875,_0x3b7872:0x53e,_0x39aed4:0x611,_0x2f6217:0x40c,_0x5e9968:0x542,_0xdefba:0x600,_0x2b833b:0x5e5,_0x1a1ba7:0x57b,_0x44b961:0x4a9,_0x510c4d:0x717,_0x299378:0x5ed,_0x2849ef:0x593,_0x4bbf34:0x5df,_0xd324ad:0x5fa,_0xd37019:0x61c,_0x3a3fc2:0x5ca,_0x30edf6:0x5a1,_0x3db712:0x68a,_0x5a913e:0x4db,_0x561a18:0x567,_0x407843:0x522,_0xd6773f:0x55a,_0x4aed3e:0x730,_0x5c8e28:0x887,_0x4e2843:0x5f9,_0x32ca25:0x4b0,_0x10d329:0x5e7,_0x2c326a:0x4a0,_0x31c793:0x57b,_0x11e085:0x451,_0x39da56:0x77c,_0x3d7e4f:0x655,_0x3a6b1d:0x6d0,_0x4da60f:0x5ea,_0x3fdc95:0x55c,_0x542eb7:0x608,_0x27a9fb:0x6a9,_0x2014ff:0x419,_0x29f75a:0x594,_0x3ac561:0x6af,_0x2046e3:0x517,_0x529c04:0x786,_0x56e86a:0x438,_0x185855:0x611,_0x1b5c9b:0x53f},_0x2d4c4a={_0x4173b5:0x126},_0x134f3e={_0x3710ae:0x77b},_0x5e2487={_0x5d37cc:0x156},_0x2f0011={_0x509989:0x90,_0x495aba:0x15c},_0x4440d5={_0x50c0b0:0x141,_0x4df927:0x84},_0x35863f={_0xf6e7c:0xc0,_0x3db76a:0x78},_0x341f79=_0x181fe3[_0x532c59(_0x11ffde._0x2bb5c1,0x267,0x26f,_0x11ffde._0x34971d)](_0x2bc824[_0x24ac5f(_0x11ffde._0x3d3806,0x408,_0x11ffde._0x736844,0x227)]??process[_0x24ac5f(_0x11ffde._0x51d501,_0x11ffde._0x560955,0x32d,_0x11ffde._0x181091)]());function _0x24ac5f(_0xf2634a,_0x2c97fd,_0x30a171,_0x2aa6d2){return _0x57b9de(_0xf2634a-0x10e,_0x2c97fd,_0xf2634a- -_0x35863f._0xf6e7c,_0x2aa6d2-_0x35863f._0x3db76a);}const _0x431ac8=(_0x2bc824[_0x24ac5f(_0x11ffde._0x250f82,_0x11ffde._0x2e8a6b,_0x11ffde._0x5310c5,0x50c)]??[])[_0x532c59(0x3fc,_0x11ffde._0x3b598f,_0x11ffde._0x2fca52,_0x11ffde._0x8b61bd)](_0x651871=>_0x181fe3[_0x532c59(0x357,0x446,0x3df,0x38b)](_0x651871)),_0x2f7efd=_0x2bc824[_0x24ac5f(_0x11ffde._0x4e4632,0x339,_0x11ffde._0x488320,_0x11ffde._0x1926ac)]??DEFAULT_TIMEOUT_MS;function _0x532c59(_0x4725f5,_0x5480a0,_0x476aa3,_0x5a3f40){return _0x23b1c2(_0x4725f5-_0x4440d5._0x50c0b0,_0x4725f5,_0x5a3f40-0x4e,_0x5a3f40-_0x4440d5._0x4df927);}const _0x2ab0aa=_0x2bc824[_0x24ac5f(_0x11ffde._0x2a4e78,_0x11ffde._0x134220,_0x11ffde._0x158545,0x3c8)]??!![],_0x136543=_0x2bc824['name']??_0x24ac5f(0x27b,_0x11ffde._0x4056cf,0x36f,_0x11ffde._0xfdccea);return defineTool({'name':_0x136543,'description':_0x2bc824['description']??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x24ac5f(0x3ca,_0x11ffde._0x114d13,0x283,0x29e),'properties':{'command':{'type':'string'},'cwd':{'type':_0x532c59(_0x11ffde._0xe4b22b,0x3b5,_0x11ffde._0x3751f8,_0x11ffde._0x22a647)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':'boolean'}},'required':[_0x24ac5f(_0x11ffde._0xdb5a6a,0x425,0x2bf,0x2c4)]},async *'execute'(_0x4da20f,_0xa525ab){const _0x30e10d={_0x2a3580:0x44b,_0x577603:0x2e8,_0x4f235e:0x40c,_0x233b30:0x54b,_0x950af0:0x680},_0x52ece7={_0x34ca94:0x127,_0x3d1344:0xa2,_0x196d57:0x21a},_0x519994={_0xf1fac:0x2d3,_0x1f8134:0x426,_0x19f457:0x3b3},_0x491138={_0x4cfc61:0x2d2,_0x1815fb:0x1c7},_0x598cad={_0x2c800e:0x603},_0x466be3={_0x2708f6:0x1bc},_0x12ded6={_0xf33a6d:0x1e7,_0xf609f4:0xb0},_0x1ab551=_0x4da20f[_0x50cf3b(_0x56e15b._0x2d6a5b,_0x56e15b._0xd59e72,_0x56e15b._0x3e1c7a,_0x56e15b._0x3d3d0f)]??_0x2f7efd;if(!Number[_0x284a54(_0x56e15b._0x4e278d,_0x56e15b._0x984fb,0x3a7,0x440)](_0x1ab551)||_0x1ab551<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x4da20f[_0x284a54(_0x56e15b._0x45e0e2,_0x56e15b._0x13fc5c,_0x56e15b._0x1acba8,0x489)]});throwIfAborted(_0xa525ab[_0x50cf3b(0x62e,_0x56e15b._0x240a72,_0x56e15b._0x2dadaf,_0x56e15b._0x12d7b9)]);const _0x22e319=resolveWorkingDirectory(_0x4da20f[_0x284a54(0x348,0x508,0x43a,_0x56e15b._0x2d5bf4)],_0x341f79,_0x431ac8),_0xf73d3d=_0x4da20f[_0x284a54(_0x56e15b._0x1898f5,_0x56e15b._0x51fbba,_0x56e15b._0x3ada6d,_0x56e15b._0x184e7a)]??![],_0x3dff44=resolveDefaultShell(_0x2bc824[_0x50cf3b(_0x56e15b._0x4ad758,_0x56e15b._0x598b03,_0x56e15b._0x4a3f8d,_0x56e15b._0x4deae6)]),_0x45ea53=buildShellArgs(_0x4da20f['command'],_0x3dff44),_0x3bdb06=_0x1eb728[_0x50cf3b(0x598,0x573,_0x56e15b._0x246b67,0x55a)]()===_0x284a54(_0x56e15b._0x4af58d,_0x56e15b._0x1bc46c,0x39e,_0x56e15b._0x1106fa);let _0x25fb16;try{_0x25fb16=_0x4be518(_0x3dff44,_0x45ea53,{'cwd':_0x22e319,'env':{...process[_0x284a54(0x3cc,_0x56e15b._0x4dcffe,0x4ab,0x5f3)],..._0x2bc824[_0x284a54(0x362,0x5d6,_0x56e15b._0x50d1ca,0x502)]??{}},'stdio':_0xf73d3d?['ignore',_0x284a54(_0x56e15b._0x46c723,0x56a,0x417,0x337),_0x284a54(0x3dc,_0x56e15b._0x260183,0x417,0x34c)]:[_0x284a54(0x334,0x2df,_0x56e15b._0x201275,0x337),_0x50cf3b(_0x56e15b._0x438025,_0x56e15b._0x3aaeb5,_0x56e15b._0x53a0d5,_0x56e15b._0x10d0e4),_0x50cf3b(_0x56e15b._0x3f812e,_0x56e15b._0x509ebc,_0x56e15b._0x15134e,_0x56e15b._0x10d0e4)],'shell':![],'windowsHide':!![],'detached':!_0x3bdb06});}catch(_0x3c1ccb){if(isErrnoException(_0x3c1ccb)&&_0x3c1ccb[_0x50cf3b(0x6ad,_0x56e15b._0x480813,_0x56e15b._0x223d7b,_0x56e15b._0x558924)]==='ENOENT')throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x3dff44,{'command':_0x4da20f['command'],'cwd':_0x22e319,'shellPath':_0x3dff44});throw new ToolExecutionError(_0x3c1ccb instanceof Error?_0x3c1ccb['message']:String(_0x3c1ccb),{'command':_0x4da20f['command'],'cwd':_0x22e319,'shellPath':_0x3dff44});}function _0x50cf3b(_0xa82835,_0x2f8fcf,_0x3c4ddd,_0xa427c8){return _0x532c59(_0x2f8fcf,_0x2f8fcf-_0x2f0011._0x509989,_0x3c4ddd-_0x2f0011._0x495aba,_0xa427c8-0x28b);}const _0x189567=[],_0x16de8e=[],_0x4c0cd9=new StringDecoder('utf8'),_0x2d4da6=new StringDecoder('utf8');let _0x226bed,_0x295f9e=![],_0x11b86f;const _0x135874=()=>{if(!_0x226bed)return;const _0x3fb3e4=_0x226bed;_0x226bed=void 0x0,_0x3fb3e4();};function _0x284a54(_0x1754e4,_0x4e8ce2,_0x5aa4c0,_0x7d036d){return _0x532c59(_0x1754e4,_0x4e8ce2-0x15c,_0x5aa4c0-_0x5e2487._0x5d37cc,_0x5aa4c0-0x109);}const _0x35dc71=async()=>{function _0x32f7dc(_0x30efce,_0x226e1a,_0x5729ea,_0x1d0fd1){return _0x284a54(_0x226e1a,_0x226e1a-_0x12ded6._0xf33a6d,_0x30efce-0x3e,_0x1d0fd1-_0x12ded6._0xf609f4);}if(_0x16de8e[_0x32f7dc(0x63e,_0x134f3e._0x3710ae,0x5f7,0x553)]>0x0||_0x295f9e)return;await new Promise(_0x30ddd3=>{_0x226bed=_0x30ddd3;});},_0xf7f030=_0x4d7a2a=>{function _0x3b95aa(_0x573993,_0x5a218,_0x4768d2,_0x562656){return _0x50cf3b(_0x573993-0x180,_0x5a218,_0x4768d2-_0x466be3._0x2708f6,_0x4768d2- -0x1e2);}appendChunk(_0x189567,_0x16de8e,_0x4c0cd9[_0x3b95aa(_0x598cad._0x2c800e,0x5d9,0x4f5,0x5aa)](_0x4d7a2a),_0x2ab0aa,_0x135874);},_0x393ac4=_0x2e2c89=>{const _0x32e020={_0x28ef00:0x131,_0x30fdbc:0x38e,_0x353419:0x66};function _0x495454(_0x40b9e0,_0x50b6c1,_0x265a70,_0x1c1fc3){return _0x284a54(_0x1c1fc3,_0x50b6c1-_0x32e020._0x28ef00,_0x50b6c1- -_0x32e020._0x30fdbc,_0x1c1fc3-_0x32e020._0x353419);}appendChunk(_0x189567,_0x16de8e,_0x2d4da6[_0x495454(_0x491138._0x4cfc61,_0x491138._0x1815fb,0x2c8,0x108)](_0x2e2c89),_0x2ab0aa,_0x135874);};_0x25fb16[_0x284a54(_0x56e15b._0x3c6868,_0x56e15b._0x2c333e,_0x56e15b._0x6d9842,0x537)]?.['on'](_0x50cf3b(0x674,0x79f,_0x56e15b._0x2b7e8d,0x793),_0xf7f030),_0x25fb16[_0x50cf3b(_0x56e15b._0xbbae97,_0x56e15b._0x417973,0x74f,0x786)]?.['on'](_0x284a54(_0x56e15b._0x3b7872,0x6cc,_0x56e15b._0x39aed4,0x575),_0x393ac4);let _0x47dcc9=![],_0x257e51;const _0x159ec6=addAbortListener(_0xa525ab[_0x284a54(0x461,_0x56e15b._0x2f6217,0x4e1,0x56f)],()=>{const _0x5c5d5d={_0x5132ff:0x91,_0x1458b3:0x533};function _0x5304f5(_0x27b089,_0x5a594b,_0x308584,_0x3f561c){return _0x284a54(_0x3f561c,_0x5a594b-_0x5c5d5d._0x5132ff,_0x308584- -_0x5c5d5d._0x1458b3,_0x3f561c-0x68);}_0x11b86f=toAbortError(_0xa525ab['signal'][_0x5304f5(-0x103,0x2,-_0x2d4c4a._0x4173b5,-0xec)]),_0x295f9e=!![],_0x135874();try{killProcessGroup(_0x25fb16,_0x3bdb06);}catch{}});try{const _0x75572c=new Promise((_0x30e2d9,_0x3a76cc)=>{const _0x380100={_0x260c34:0x13b,_0x2a09db:0x243,_0xcb8f13:0x269,_0x5e34d8:0x1f7,_0x19b000:0x244,_0x3ab8d6:0xd3,_0x3af6e8:0x1a0,_0xc3ed38:0x57},_0x5335fc={_0x618d16:0x72,_0x178137:0xbe,_0xb86091:0x1e4,_0xcc8acd:0x21a,_0x28fa69:0x73,_0x5e93ff:0x385,_0x42ad0a:0x336,_0x2bec24:0x33c},_0x32c5be={_0x3cc23e:0x1a6};function _0x2f808c(_0x57ba6b,_0x211ac0,_0x2c2365,_0xfa09c7){return _0x284a54(_0x57ba6b,_0x211ac0-0x126,_0x211ac0-_0x32c5be._0x3cc23e,_0xfa09c7-0x154);}const _0x14db04=()=>{function _0xd88536(_0x57c2c9,_0x41b5b0,_0x5b179d,_0x47473e){return _0x27a7(_0x57c2c9-0x9a,_0x47473e);}_0x257e51&&(clearTimeout(_0x257e51),_0x257e51=void 0x0);function _0x2d0d3f(_0x1bcd4a,_0x34c40f,_0x184a38,_0xdc600b){return _0x27a7(_0x34c40f- -0x185,_0x1bcd4a);}_0x25fb16[_0x2d0d3f(-0x89,_0x5335fc._0x618d16,_0x5335fc._0x178137,0x13e)](_0x2d0d3f(0x235,_0x5335fc._0xb86091,_0x5335fc._0xcc8acd,0x94),_0x1e63a7),_0x25fb16[_0x2d0d3f(0x137,0x72,_0x5335fc._0x28fa69,0x1b7)](_0xd88536(_0x5335fc._0x5e93ff,0x270,_0x5335fc._0x42ad0a,_0x5335fc._0x2bec24),_0x5963ea);},_0x1e63a7=_0x1d6adc=>{_0x295f9e=!![],_0x135874(),_0x14db04(),_0x3a76cc(_0x11b86f??_0x1d6adc);},_0x5963ea=(_0x997ca7,_0xe562bd)=>{function _0x18e246(_0x4ba1b1,_0x34206a,_0x5c3455,_0x4a909f){return _0x27a7(_0x4ba1b1-0x11a,_0x5c3455);}_0x47dcc9=!![],appendChunk(_0x189567,_0x16de8e,_0x4c0cd9['end'](),_0x2ab0aa,_0x135874),appendChunk(_0x189567,_0x16de8e,_0x2d4da6[_0x18e246(_0x519994._0xf1fac,0x1d8,_0x519994._0x1f8134,_0x519994._0x19f457)](),_0x2ab0aa,_0x135874),_0x295f9e=!![],_0x135874(),_0x14db04();if(_0x11b86f){_0x3a76cc(_0x11b86f);return;}_0x30e2d9({'code':_0x997ca7,'signal':_0xe562bd});};_0x257e51=setTimeout(()=>{_0x295f9e=!![],_0x135874(),_0x14db04();function _0xba8e1b(_0x2e2539,_0x4f7bc8,_0x500877,_0x3b24d0){return _0x27a7(_0x500877- -0x1cd,_0x3b24d0);}try{killProcessGroup(_0x25fb16,_0x3bdb06);}catch{}function _0x1df7e3(_0x964003,_0x328294,_0x575a35,_0x41e1ff){return _0x27a7(_0x964003-0x39,_0x41e1ff);}_0x3a76cc(new ToolExecutionError(_0xba8e1b(0x1fb,0x94,_0x380100._0x260c34,0x1c8)+_0x1ab551+_0x1df7e3(_0x380100._0x2a09db,_0x380100._0xcb8f13,0x1c5,_0x380100._0x5e34d8),{'command':_0x4da20f[_0xba8e1b(_0x380100._0x19b000,_0x380100._0x3ab8d6,_0x380100._0x3af6e8,_0x380100._0xc3ed38)],'cwd':_0x22e319,'shellPath':_0x3dff44,'timeoutMs':_0x1ab551,'timedOut':!![]}));},_0x1ab551);function _0x3eea33(_0xf8acbf,_0x4ef3fa,_0x39abaf,_0x2131a7){return _0x50cf3b(_0xf8acbf-_0x52ece7._0x34ca94,_0xf8acbf,_0x39abaf-_0x52ece7._0x3d1344,_0x39abaf- -_0x52ece7._0x196d57);}_0x25fb16[_0x3eea33(_0x30e10d._0x2a3580,0x402,0x39c,_0x30e10d._0x577603)](_0x3eea33(0x4ea,0x5b1,0x4c0,_0x30e10d._0x4f235e),_0x1e63a7),_0x25fb16['once'](_0x2f808c(_0x30e10d._0x233b30,_0x30e10d._0x950af0,0x5ca,0x5ab),_0x5963ea);});while(_0x16de8e[_0x284a54(0x740,_0x56e15b._0x5e9968,_0x56e15b._0xdefba,_0x56e15b._0x2b833b)]>0x0||!_0x295f9e){if(_0x16de8e['length']===0x0){await _0x35dc71();continue;}const _0x4f6e54=_0x16de8e[_0x284a54(_0x56e15b._0x1a1ba7,0x4f7,_0x56e15b._0x44b961,0x389)]();_0x4f6e54!==void 0x0&&(yield _0x4f6e54);}const _0x4185d2=await _0x75572c,_0x1c6bd2=_0xf73d3d?_0x284a54(_0x56e15b._0x510c4d,0x709,_0x56e15b._0x299378,0x678)+(_0x4185d2[_0x284a54(0x4d2,_0x56e15b._0x2849ef,_0x56e15b._0x4bbf34,_0x56e15b._0xd324ad)]??0x0):_0x189567[_0x50cf3b(0x487,_0x56e15b._0xd37019,0x5ca,_0x56e15b._0x3a3fc2)](''),_0x14f461={'command':_0x4da20f[_0x50cf3b(_0x56e15b._0x30edf6,0x68e,0x7c7,0x6de)],'cwd':_0x22e319,'exitCode':_0x4185d2['code']??0x0,'signal':_0x4185d2[_0x50cf3b(0x61c,_0x56e15b._0x3db712,0x55e,0x663)],'ignoreOutput':_0xf73d3d,'shellPath':_0x3dff44,'timeoutMs':_0x1ab551};if(_0x4185d2['code']!==0x0)throw new ToolExecutionError(_0x1c6bd2||'Command\x20exited\x20with\x20code\x20'+(_0x4185d2[_0x284a54(_0x56e15b._0x5a913e,0x510,0x5df,_0x56e15b._0x561a18)]??0x0),_0x14f461);return createToolOutput(_0x1c6bd2,_0x14f461);}catch(_0x128a5b){while(_0x16de8e[_0x284a54(0x50b,_0x56e15b._0x407843,0x600,_0x56e15b._0xd6773f)]>0x0){const _0x331d59=_0x16de8e['shift']();_0x331d59!==void 0x0&&(yield _0x331d59);}if(_0x128a5b instanceof ToolExecutionError)throw _0x128a5b;if(_0x11b86f)throw _0x11b86f;if(isErrnoException(_0x128a5b)&&_0x128a5b[_0x50cf3b(_0x56e15b._0x4aed3e,0x890,_0x56e15b._0x5c8e28,0x761)]===_0x284a54(0x4b8,_0x56e15b._0x4e2843,_0x56e15b._0x32ca25,0x4f2))throw new ToolExecutionError(_0x284a54(0x616,0x598,_0x56e15b._0x10d329,0x722)+_0x3dff44,{'command':_0x4da20f[_0x284a54(_0x56e15b._0x2c326a,_0x56e15b._0x31c793,_0x56e15b._0x1acba8,_0x56e15b._0x11e085)],'cwd':_0x22e319,'shellPath':_0x3dff44});throw new ToolExecutionError(_0x128a5b instanceof Error?_0x128a5b[_0x50cf3b(_0x56e15b._0x39da56,_0x56e15b._0x3d7e4f,0x794,_0x56e15b._0x3a6b1d)]:String(_0x128a5b),{'command':_0x4da20f[_0x284a54(_0x56e15b._0x4da60f,0x592,_0x56e15b._0x3fdc95,_0x56e15b._0x542eb7)],'cwd':_0x22e319,'shellPath':_0x3dff44});}finally{_0x257e51&&clearTimeout(_0x257e51);_0x159ec6(),_0x25fb16[_0x284a54(0x39f,0x637,0x4eb,0x5ae)]?.[_0x50cf3b(_0x56e15b._0x27a9fb,_0x56e15b._0x2014ff,_0x56e15b._0x29f75a,0x568)](_0x284a54(_0x56e15b._0x3ac561,0x568,_0x56e15b._0x39aed4,_0x56e15b._0x2046e3),_0xf7f030),_0x25fb16[_0x50cf3b(0x656,0x664,0x80b,_0x56e15b._0x529c04)]?.[_0x50cf3b(0x44d,0x5cb,_0x56e15b._0x56e86a,0x568)](_0x284a54(0x55f,0x5c2,_0x56e15b._0x185855,0x73b),_0x393ac4);if(!_0x47dcc9&&_0x25fb16[_0x284a54(0x618,_0x56e15b._0x1b5c9b,0x629,0x609)]&&!_0x25fb16['killed'])try{killProcessGroup(_0x25fb16,_0x3bdb06);}catch{}}}});}function createShellExecTool(_0x301293={}){return createBashTool(_0x301293);}import{readdir,readFile as _0x2e547c}from'fs/promises';import{extname,join as _0x50860e}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0xcae7df,join,relative as _0x76c7e4,resolve as _0x4c8a54}from'path';import{readdir as _0x2cc386,readFile as _0x299a8d}from'fs/promises';import{join as _0x2a6f36,relative as _0x13780c,sep}from'path';import{delimiter}from'path';import{mkdir as _0x554e1b,rm,stat as _0x5d7b2d,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x366b9f}from'path';function _0x23b1c2(_0x3bf939,_0x538070,_0x3ce014,_0x1e7a6e){const _0x3fa5b1={_0x2b344e:0x98};return _0x27a7(_0x3ce014-_0x3fa5b1._0x2b344e,_0x538070);}import{unwatchFile,watchFile}from'fs';import{readFile as _0x14c8b9,rename,writeFile as _0x5adb06}from'fs/promises';import{homedir as _0x126b8c}from'os';import{dirname as _0x4da8c1,isAbsolute as _0x1bf174,join as _0x2c4418,resolve as _0x3f8134}from'path';import{parse as _0x22d8a9,stringify as _0x8dc396}from'yaml';import{cp,mkdir as _0x2618bb,readFile as _0x1c5dce,rm as _0x5d6a99,writeFile as _0x4f7c10}from'fs/promises';import{homedir}from'os';function _0x57b9de(_0x868b3,_0x3890f3,_0x54eaf0,_0x54e61d){return _0x27a7(_0x54eaf0-0x146,_0x3890f3);}import{join as _0x7226ea}from'path';import{parse as _0x4165ec,stringify as _0x107e68}from'yaml';import{z}from'zod';import{readdir as _0x4c4a93,readFile as _0x185b1b}from'fs/promises';import{join as _0x3759ee}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x73a299){const _0x35e952={_0x44b22a:0x1e9,_0x3bfac6:0xe8,_0x381594:0x329,_0x379324:0x101,_0x214806:0x1e9,_0x3849eb:0x457,_0x35d626:0x2c9,_0x5602a2:0x3dd,_0x1f6a01:0x319,_0x3f7901:0x371,_0x121162:0x27e},_0x2baebc={_0x339c70:0x36e,_0x4ecf0a:0x1ba},_0x30989f={_0x3e4285:0x12f,_0x1aef7d:0x92};function _0x1a61e9(_0x22b62d,_0x5a9127,_0x18d251,_0x5ca85c){return _0x57b9de(_0x22b62d-_0x30989f._0x3e4285,_0x5ca85c,_0x5a9127- -0x12a,_0x5ca85c-_0x30989f._0x1aef7d);}function _0x507276(_0x28f641,_0x473231,_0x3a5511,_0x37186b){return _0x57b9de(_0x28f641-0x1ba,_0x28f641,_0x3a5511- -_0x2baebc._0x339c70,_0x37186b-_0x2baebc._0x4ecf0a);}const _0x2494bd=[];let _0x2109c8='',_0x332a02=0x0;while(_0x332a02<_0x73a299[_0x507276(0x207,0x12f,_0x35e952._0x44b22a,_0x35e952._0x3bfac6)]){const _0x398295=_0x73a299[_0x332a02];if(_0x398295==='\x5c'&&_0x332a02+0x1<_0x73a299[_0x507276(_0x35e952._0x381594,_0x35e952._0x379324,_0x35e952._0x214806,0x320)])_0x2109c8+=_0x73a299[_0x332a02+0x1],_0x332a02+=0x2;else{if(_0x398295==='\x22'||_0x398295==='\x27'){const _0xc678e6=_0x398295;_0x332a02++;while(_0x332a02<_0x73a299['length']&&_0x73a299[_0x332a02]!==_0xc678e6){_0x73a299[_0x332a02]==='\x5c'&&_0x332a02+0x1<_0x73a299['length']?(_0x2109c8+=_0x73a299[_0x332a02+0x1],_0x332a02+=0x2):(_0x2109c8+=_0x73a299[_0x332a02],_0x332a02++);}_0x332a02++;}else _0x398295!==void 0x0&&/\s/['test'](_0x398295)?(_0x2109c8&&(_0x2494bd[_0x1a61e9(_0x35e952._0x3849eb,0x319,_0x35e952._0x35d626,_0x35e952._0x5602a2)](_0x2109c8),_0x2109c8=''),_0x332a02++):(_0x2109c8+=_0x398295,_0x332a02++);}}if(_0x2109c8)_0x2494bd[_0x1a61e9(0x36a,_0x35e952._0x1f6a01,_0x35e952._0x3f7901,_0x35e952._0x121162)](_0x2109c8);return _0x2494bd;}function renderCommandInstructions(_0x21f573){const _0x5a53f3={_0x1322c5:0x43,_0x1a2a02:0x17b,_0x46da99:0x112,_0xbb535c:0x3,_0x7fbe8:0xd0,_0x37afa9:0x118,_0x59c863:0x68,_0x41d69d:0xa3,_0x4ee3e7:0x4b,_0xad9823:0x147,_0x5dc170:0xa3,_0x372403:0x72,_0x5b84a0:0x148,_0x4a99bf:0x13a,_0x54e28d:0x33,_0x4d4e4a:0x2b9,_0x48a6ae:0x288,_0x7267a1:0x2f2,_0x2c9249:0x3a5,_0x3ad266:0x1d1,_0xf518e:0x1db,_0x5a9690:0x18,_0x10fd46:0x17},_0x39f955={_0x5112e4:0xe1,_0x32930e:0x41d,_0x4ff2d4:0x1b1},_0x439301={_0x3387b5:0x65,_0x3e1223:0x63},_0x293f68={_0x4d31d6:0x1fe},_0x4aca09={_0x32817d:0x14c};let _0xf6275d=_0x21f573['instructions'],_0xc5e18f=![];const _0x2e552a=tokenizeCommandArguments(_0x21f573[_0x118467(_0x5a53f3._0x1322c5,0x80,0xde,_0x5a53f3._0x1a2a02)]);_0xf6275d=_0xf6275d[_0x118467(0x30b,0x213,0x2b5,0x1fd)](/\$ARGUMENTS\[(\d+)\]/g,(_0x5bca90,_0x271f3f)=>{return _0xc5e18f=!![],_0x2e552a[Number(_0x271f3f)]??'';}),_0xf6275d=_0xf6275d[_0x6f4ac2(_0x5a53f3._0x46da99,-_0x5a53f3._0xbb535c,_0x5a53f3._0x7fbe8,_0x5a53f3._0x37afa9)](/\$ARGUMENTS\b/g,()=>{_0xc5e18f=!![];function _0x39c494(_0x534077,_0x7844b8,_0x54ca6b,_0x1f7651){return _0x118467(_0x534077,_0x7844b8-0x126,_0x1f7651-0x43,_0x1f7651-_0x4aca09._0x32817d);}return _0x21f573[_0x39c494(_0x293f68._0x4d31d6,0xb2,-0x19,0x121)];});function _0x118467(_0x2d80ae,_0x587920,_0x14d2c0,_0x4b5c4e){return _0x23b1c2(_0x2d80ae-_0x439301._0x3387b5,_0x2d80ae,_0x14d2c0- -0x18a,_0x4b5c4e-_0x439301._0x3e1223);}if(_0x21f573[_0x6f4ac2(0xec,-_0x5a53f3._0x59c863,_0x5a53f3._0x41d69d,-_0x5a53f3._0x4ee3e7)]&&_0x21f573[_0x6f4ac2(_0x5a53f3._0xad9823,0x109,_0x5a53f3._0x5dc170,_0x5a53f3._0x372403)][_0x6f4ac2(_0x5a53f3._0x5b84a0,0xc3,_0x5a53f3._0x4a99bf,_0x5a53f3._0x54e28d)]>0x0)for(let _0x52b2ec=0x0;_0x52b2ec<_0x21f573[_0x118467(0x1a8,_0x5a53f3._0x4d4e4a,_0x5a53f3._0x48a6ae,0x2d3)][_0x118467(_0x5a53f3._0x7267a1,0x1e8,0x31f,0x2d7)];_0x52b2ec++){const _0x3768db=_0x21f573['argumentNames'][_0x52b2ec];if(_0x3768db){const _0x188db1=new RegExp('\x5c$'+_0x3768db+'\x5cb','g');_0xf6275d=_0xf6275d['replace'](_0x188db1,()=>{return _0xc5e18f=!![],_0x2e552a[_0x52b2ec]??'';});}}function _0x6f4ac2(_0x2cba47,_0x2701bd,_0x396d98,_0x5d5ebe){return _0x57b9de(_0x2cba47-_0x39f955._0x5112e4,_0x5d5ebe,_0x396d98- -_0x39f955._0x32930e,_0x5d5ebe-_0x39f955._0x4ff2d4);}return _0xf6275d=_0xf6275d[_0x118467(0x198,0x3f3,0x2b5,_0x5a53f3._0x2c9249)](/\$(\d+)\b/g,(_0x5cc107,_0x1cd89d)=>{return _0xc5e18f=!![],_0x2e552a[Number(_0x1cd89d)]??'';}),!_0xc5e18f&&_0x21f573['argumentsText'][_0x6f4ac2(-_0x5a53f3._0x3ad266,-_0x5a53f3._0xf518e,-0xbc,-_0x5a53f3._0x5a9690)]()&&(_0xf6275d=_0xf6275d+'\x0a\x0aARGUMENTS:\x20'+_0x21f573[_0x118467(-_0x5a53f3._0x10fd46,0x206,0xde,0x196)]),_0xf6275d;}var chatModelAuthSchemeSchema=z[_0x57b9de(0x5e1,0x6b4,0x58e,0x5b0)]([_0x57b9de(0x26e,0x256,0x346,0x276),_0x23b1c2(0x451,0x30e,0x339,0x44e)]),apiKeyAuthSchema=z['object']({'type':z[_0x57b9de(0x590,0x365,0x4a2,0x53a)](_0x57b9de(0x2d2,0x382,0x3b0,0x4e3)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x57b9de(0x44a,0x494,0x427,0x43f)]()})[_0x57b9de(0x4f8,0x3f8,0x4e5,0x452)](),oauthAuthSchema=z[_0x23b1c2(0x2a2,0x3fb,0x3dc,0x2f9)]({'type':z['literal'](_0x23b1c2(0x495,0x53d,0x4a7,0x450)),'access':z[_0x23b1c2(0x39e,0x21d,0x285,0x2ac)](),'refresh':z[_0x57b9de(0x39f,0x3cf,0x333,0x258)](),'expires':z[_0x57b9de(0x560,0x45c,0x51d,0x624)]()[_0x23b1c2(0x416,0x2ea,0x379,0x3c1)](),'authScheme':chatModelAuthSchemeSchema['optional']()})[_0x23b1c2(0x2f5,0x404,0x437,0x57e)](),authMethodSchema=z[_0x23b1c2(0x3c8,0x4a8,0x42e,0x424)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z[_0x23b1c2(0x13d,0x37e,0x285,0x253)](),'name':z['string']()['optional']()})[_0x57b9de(0x58a,0x52b,0x4e5,0x3ec)](),modelConfigSchema=z[_0x57b9de(0x482,0x5b5,0x4dc,0x613)]([z[_0x23b1c2(0x42a,0x4de,0x3f4,0x378)](![]),z[_0x23b1c2(0x53f,0x338,0x3f4,0x4e9)](!![]),z[_0x23b1c2(0x343,0x2ff,0x285,0x3a7)](),z[_0x57b9de(0x495,0x35a,0x3d8,0x3f2)](z[_0x57b9de(0x2e3,0x370,0x333,0x24a)]()),z[_0x23b1c2(0x2d3,0x43e,0x32a,0x43d)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x23b1c2(0x4a0,0x3b1,0x4e0,0x585)]([_0x57b9de(0x3f0,0x394,0x418,0x3b3),'openai-chat-completions',_0x57b9de(0x3cf,0x3d7,0x3a3,0x4a0),_0x23b1c2(0x33e,0x343,0x455,0x582)]),providerConfigSchema=z[_0x23b1c2(0x433,0x3f3,0x3dc,0x42c)]({'apiKey':z[_0x23b1c2(0x218,0x28c,0x285,0x181)]()['optional'](),'token':z[_0x57b9de(0x258,0x39b,0x333,0x213)]()['optional'](),'defaultModel':z[_0x57b9de(0x241,0x348,0x333,0x29c)]()[_0x57b9de(0x3b8,0x44f,0x427,0x3ca)](),'smallModel':z['string']()[_0x57b9de(0x401,0x4fb,0x427,0x319)](),'currentAuth':z[_0x23b1c2(0x20a,0x2d9,0x285,0x319)]()[_0x57b9de(0x51e,0x4b7,0x427,0x2e3)](),'auth':z['array'](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x23b1c2(0x48c,0x377,0x379,0x44e)](),'baseUrl':z['string']()['optional'](),'models':modelConfigSchema[_0x57b9de(0x42f,0x3da,0x427,0x4ab)](),'customHeaders':z[_0x23b1c2(0x524,0x312,0x40f,0x3d4)](z['string'](),z[_0x57b9de(0x462,0x421,0x333,0x203)]())[_0x23b1c2(0x3eb,0x4a1,0x379,0x4a1)]()})[_0x23b1c2(0x2e8,0x568,0x437,0x46c)](),mcpServerConfigSchema=z[_0x57b9de(0x407,0x5a1,0x48a,0x5b6)]({'command':z['string']()[_0x57b9de(0x547,0x4a3,0x427,0x419)](),'args':z[_0x57b9de(0x515,0x2e2,0x3d8,0x29d)](z['string']())['optional'](),'env':z[_0x57b9de(0x4e8,0x3bd,0x4bd,0x4cd)](z['string'](),z[_0x23b1c2(0x287,0x2c8,0x285,0x188)]())[_0x57b9de(0x564,0x3e4,0x427,0x33e)](),'transport':z[_0x23b1c2(0x581,0x555,0x4e0,0x3df)](['stdio',_0x23b1c2(0x4c1,0x535,0x450,0x360)])[_0x23b1c2(0x2b5,0x39d,0x379,0x2ca)](),'url':z[_0x57b9de(0x3ab,0x231,0x333,0x33c)]()[_0x57b9de(0x564,0x4cf,0x427,0x521)](),'headers':z[_0x57b9de(0x3a2,0x574,0x4bd,0x5b4)](z[_0x57b9de(0x1e5,0x404,0x333,0x319)](),z[_0x23b1c2(0x17b,0x322,0x285,0x1f6)]())[_0x23b1c2(0x2c5,0x39d,0x379,0x399)](),'prefix':z['string']()['optional'](),'timeoutMs':z['number']()[_0x57b9de(0x3dc,0x50b,0x427,0x2e5)](),'enabled':z[_0x23b1c2(0x351,0x53a,0x494,0x3bc)]()[_0x23b1c2(0x490,0x226,0x379,0x3a1)](),'auth':z[_0x23b1c2(0x527,0x4af,0x3dc,0x3fc)]({'type':z['enum']([_0x57b9de(0x500,0x44a,0x446,0x572),_0x57b9de(0x2ba,0x211,0x346,0x39d),_0x23b1c2(0x49d,0x5b2,0x4a7,0x499)]),'token':z['string']()['optional'](),'oauth':z[_0x57b9de(0x53d,0x481,0x48a,0x5ac)]({'clientId':z[_0x23b1c2(0x181,0x208,0x285,0x1e7)]()[_0x57b9de(0x4e8,0x574,0x427,0x3e7)](),'clientMetadataUrl':z[_0x57b9de(0x29e,0x1eb,0x333,0x2f5)]()[_0x23b1c2(0x2d9,0x410,0x379,0x49e)](),'authorizationServer':z['string']()[_0x23b1c2(0x2f0,0x377,0x379,0x3d7)](),'scopes':z[_0x57b9de(0x4c2,0x4fa,0x3d8,0x2cf)](z[_0x57b9de(0x2d5,0x36a,0x333,0x38b)]())[_0x23b1c2(0x235,0x399,0x379,0x22f)](),'tokenStorageKey':z[_0x57b9de(0x255,0x274,0x333,0x1f3)]()[_0x57b9de(0x418,0x38e,0x427,0x56b)]()})[_0x23b1c2(0x328,0x421,0x437,0x3ff)]()['optional']()})['passthrough']()['optional']()})[_0x23b1c2(0x2f0,0x3c0,0x437,0x3c0)](),mcpSettingsSchema=z[_0x57b9de(0x3ab,0x518,0x48a,0x340)]({'servers':z[_0x57b9de(0x4d2,0x5de,0x4bd,0x3e2)](z[_0x57b9de(0x2cf,0x280,0x333,0x1fd)](),mcpServerConfigSchema)['optional'](),'allowedTools':z[_0x57b9de(0x435,0x3c3,0x4bd,0x469)](z['string'](),z[_0x57b9de(0x5f6,0x460,0x4bd,0x4de)](z[_0x23b1c2(0x2ad,0x365,0x285,0x38f)](),z[_0x57b9de(0x598,0x4f1,0x542,0x655)]()))[_0x23b1c2(0x451,0x245,0x379,0x44c)](),'defaultTimeoutMs':z[_0x23b1c2(0x4e8,0x37d,0x46f,0x47f)]()['optional']()})['passthrough'](),skillsSettingsSchema=z['object']({'enabled':z['boolean']()['optional'](),'includeDefaults':z[_0x57b9de(0x46a,0x4bd,0x542,0x4af)]()['optional'](),'directories':z[_0x57b9de(0x525,0x460,0x3d8,0x2bc)](z[_0x57b9de(0x3cc,0x485,0x333,0x360)]())[_0x57b9de(0x3d4,0x3ab,0x427,0x4a1)](),'exclude':z[_0x23b1c2(0x361,0x2df,0x32a,0x1e2)](z[_0x57b9de(0x425,0x237,0x333,0x1ff)]())[_0x23b1c2(0x40a,0x35e,0x379,0x490)]()})[_0x57b9de(0x5ac,0x486,0x4e5,0x61f)](),commandsSettingsSchema=z[_0x23b1c2(0x2d8,0x347,0x3dc,0x4af)]({'enabled':z[_0x57b9de(0x454,0x3f9,0x542,0x675)]()['optional'](),'directories':z[_0x23b1c2(0x231,0x20c,0x32a,0x356)](z[_0x57b9de(0x445,0x40d,0x333,0x3f9)]())[_0x23b1c2(0x33e,0x404,0x379,0x387)]()})[_0x23b1c2(0x39b,0x4ad,0x437,0x39d)](),agentsSettingsSchema=z[_0x23b1c2(0x424,0x377,0x3dc,0x34b)]({'enabled':z['boolean']()[_0x23b1c2(0x446,0x421,0x379,0x294)](),'includeDefaults':z[_0x57b9de(0x588,0x40d,0x542,0x4e2)]()[_0x23b1c2(0x333,0x384,0x379,0x3bb)](),'directories':z[_0x23b1c2(0x25a,0x466,0x32a,0x334)](z[_0x57b9de(0x395,0x458,0x333,0x253)]())['optional']()})[_0x57b9de(0x464,0x576,0x4e5,0x5ca)](),uiThemeSettingsSchema=z['object']({'mode':z[_0x57b9de(0x576,0x48e,0x58e,0x4b8)](['auto',_0x23b1c2(0x1b6,0x274,0x2b4,0x1c6),'light'])[_0x23b1c2(0x233,0x3b6,0x379,0x43c)](),'colorLevel':z[_0x57b9de(0x54d,0x6cc,0x58e,0x567)]([_0x23b1c2(0x408,0x459,0x3d8,0x4a3),_0x23b1c2(0x2c1,0x305,0x398,0x38b),_0x57b9de(0x657,0x5f3,0x550,0x46b),_0x23b1c2(0x387,0x4b0,0x400,0x43a),_0x23b1c2(0x4c8,0x2d6,0x3eb,0x33f)])['optional'](),'backgrounds':z[_0x23b1c2(0x3ea,0x48d,0x4e0,0x4fe)](['auto','on',_0x57b9de(0x2d6,0x32d,0x33d,0x35d)])['optional'](),'messageStyle':z[_0x57b9de(0x48f,0x56e,0x58e,0x6db)](['plain','boxed'])['optional']()})[_0x23b1c2(0x475,0x492,0x437,0x53c)](),statuslineSegmentSchema=z[_0x57b9de(0x698,0x6d9,0x58e,0x596)]([_0x57b9de(0x46a,0x59d,0x4e7,0x52d),'session','thinking','sudo',_0x57b9de(0x549,0x309,0x42d,0x463),'context',_0x57b9de(0x3da,0x478,0x3f7,0x44c),_0x23b1c2(0x4ce,0x429,0x48d,0x3a8),_0x57b9de(0x421,0x39b,0x4e8,0x4c7),_0x57b9de(0x39d,0x2d3,0x3e1,0x531),_0x23b1c2(0x284,0x1c2,0x27d,0x3c1),_0x57b9de(0x41f,0x321,0x2fb,0x416),_0x57b9de(0x3f7,0x663,0x54a,0x4ae),_0x23b1c2(0x512,0x491,0x44d,0x47f),_0x23b1c2(0x36b,0x3b1,0x492,0x3eb)]),statuslineItemSchema=z[_0x23b1c2(0x45a,0x362,0x42e,0x559)]([statuslineSegmentSchema,z[_0x57b9de(0x5df,0x38a,0x4a2,0x4c9)]('|')]),statuslineRowSchema=z[_0x57b9de(0x48e,0x521,0x3d8,0x485)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x23b1c2(0x2ad,0x332,0x25b,0x189)]([statuslineRowSchema,statuslineRowSchema])[_0x57b9de(0x4bf,0x398,0x427,0x31c)]()})[_0x23b1c2(0x384,0x386,0x437,0x430)](),memorySettingsSchema=z[_0x57b9de(0x4f0,0x47a,0x48a,0x4ce)]({'version':z[_0x23b1c2(0x53a,0x335,0x3f4,0x399)](0x2)['optional'](),'retrieval':z['object']({'engine':z[_0x57b9de(0x4db,0x397,0x4a2,0x5de)]('bm25')[_0x23b1c2(0x357,0x363,0x379,0x477)](),'candidateLimit':z[_0x57b9de(0x3de,0x61b,0x51d,0x633)]()['optional'](),'activeCandidateLimit':z[_0x57b9de(0x41b,0x574,0x51d,0x5f8)]()[_0x57b9de(0x312,0x429,0x427,0x3d3)](),'activeEnabled':z[_0x57b9de(0x615,0x4d0,0x542,0x65a)]()[_0x23b1c2(0x262,0x3be,0x379,0x249)](),'maxQueriesPerTurn':z['number']()[_0x57b9de(0x536,0x2de,0x427,0x50d)](),'coreInjectTokenBudget':z['number']()[_0x23b1c2(0x406,0x426,0x379,0x237)](),'injectTokenBudget':z[_0x57b9de(0x41f,0x534,0x51d,0x585)]()['optional'](),'minScore':z[_0x23b1c2(0x349,0x32f,0x46f,0x38e)]()[_0x57b9de(0x3ea,0x31f,0x427,0x458)](),'freshnessHalfLifeDays':z[_0x57b9de(0x40b,0x5e3,0x51d,0x533)]()[_0x57b9de(0x4bd,0x425,0x427,0x306)]()})[_0x57b9de(0x45b,0x413,0x4e5,0x41d)]()[_0x57b9de(0x4f5,0x4dc,0x427,0x362)](),'extraction':z['object']({'enabled':z['boolean']()[_0x57b9de(0x53e,0x3c2,0x427,0x315)](),'provider':z['string']()[_0x57b9de(0x555,0x56d,0x427,0x3f1)](),'model':z['string']()[_0x23b1c2(0x4cb,0x29c,0x379,0x306)](),'sensitiveFilter':z['boolean']()[_0x57b9de(0x3f2,0x373,0x427,0x510)]()})['passthrough']()['optional'](),'index':z[_0x57b9de(0x3c3,0x39b,0x48a,0x401)]({'persisted':z[_0x23b1c2(0x554,0x41a,0x494,0x42a)]()['optional'](),'flushIntervalMs':z[_0x57b9de(0x515,0x648,0x51d,0x63b)]()[_0x57b9de(0x378,0x366,0x427,0x4e5)]()})[_0x23b1c2(0x3b9,0x498,0x437,0x3dc)]()[_0x57b9de(0x576,0x4b9,0x427,0x430)](),'enabled':z[_0x23b1c2(0x5e0,0x43d,0x494,0x409)]()[_0x57b9de(0x4c5,0x40e,0x427,0x518)](),'saveTool':z[_0x57b9de(0x48d,0x5bf,0x542,0x40e)]()[_0x57b9de(0x48f,0x425,0x427,0x497)](),'model':z['string']()[_0x23b1c2(0x32b,0x302,0x379,0x3b8)](),'provider':z[_0x57b9de(0x3ec,0x218,0x333,0x415)]()[_0x57b9de(0x31e,0x4ad,0x427,0x52d)](),'maxInjectionTokens':z['number']()['optional'](),'backgroundExtraction':z[_0x23b1c2(0x459,0x369,0x494,0x533)]()[_0x23b1c2(0x40c,0x321,0x379,0x431)]()})['passthrough'](),recentModelSchema=z['object']({'provider':z[_0x23b1c2(0x2e4,0x1cc,0x285,0x3bc)](),'model':z[_0x23b1c2(0x235,0x328,0x285,0x147)](),'usedAt':z['number']()})[_0x57b9de(0x50b,0x45f,0x4e5,0x534)](),lspServerEntrySchema=z[_0x57b9de(0x5b8,0x3d4,0x48a,0x503)]({'disabled':z['boolean']()[_0x23b1c2(0x397,0x396,0x379,0x3b2)](),'command':z[_0x23b1c2(0x1bd,0x3d7,0x285,0x2a5)]()[_0x23b1c2(0x4c6,0x330,0x379,0x43e)](),'args':z[_0x23b1c2(0x2b4,0x2f9,0x32a,0x37b)](z[_0x23b1c2(0x23b,0x161,0x285,0x1ab)]())[_0x57b9de(0x2f3,0x468,0x427,0x445)](),'rootMarkers':z[_0x23b1c2(0x24b,0x472,0x32a,0x2ed)](z[_0x57b9de(0x421,0x277,0x333,0x239)]())['optional']()})[_0x57b9de(0x441,0x489,0x4e5,0x412)](),lspConfigSchema=z[_0x57b9de(0x449,0x364,0x48a,0x3b1)]({'enabled':z['boolean']()[_0x23b1c2(0x473,0x4c7,0x379,0x392)](),'servers':z[_0x23b1c2(0x39d,0x3b5,0x40f,0x384)](z[_0x23b1c2(0x1b6,0x285,0x285,0x3d1)](),lspServerEntrySchema)[_0x23b1c2(0x3fb,0x437,0x379,0x44f)]()})[_0x23b1c2(0x356,0x4c2,0x437,0x32f)](),serverEndpointSchema=z['object']({'url':z[_0x23b1c2(0x36f,0x159,0x285,0x261)](),'token':z[_0x23b1c2(0x3d1,0x33c,0x285,0x3be)]()['optional']()})[_0x57b9de(0x5a5,0x43a,0x4e5,0x45e)](),commandHookConfigSchema=z[_0x57b9de(0x558,0x379,0x48a,0x426)]({'type':z[_0x57b9de(0x5a8,0x571,0x4a2,0x3b9)](_0x23b1c2(0x332,0x428,0x405,0x3ee)),'command':z[_0x57b9de(0x47b,0x376,0x333,0x21d)](),'timeout':z['number']()[_0x57b9de(0x554,0x4af,0x427,0x535)]()}),hookMatcherGroupSchema=z[_0x57b9de(0x466,0x5d4,0x48a,0x50a)]({'matcher':z['string']()[_0x57b9de(0x3f5,0x40c,0x427,0x4c0)](),'hooks':z[_0x57b9de(0x4fc,0x4bf,0x3d8,0x3fa)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x57b9de(0x503,0x4a2,0x48a,0x5b8)]({'PreToolUse':z[_0x57b9de(0x479,0x4f6,0x3d8,0x52b)](hookMatcherGroupSchema)[_0x23b1c2(0x46e,0x40e,0x379,0x379)](),'PostToolUse':z[_0x57b9de(0x333,0x4d6,0x3d8,0x355)](hookMatcherGroupSchema)[_0x23b1c2(0x340,0x2ec,0x379,0x37d)](),'UserPromptSubmit':z[_0x23b1c2(0x2b9,0x389,0x32a,0x360)](hookMatcherGroupSchema)[_0x23b1c2(0x3c2,0x312,0x379,0x2d6)](),'Stop':z[_0x23b1c2(0x2e6,0x1dd,0x32a,0x37b)](hookMatcherGroupSchema)[_0x23b1c2(0x393,0x3ee,0x379,0x3a9)](),'Notification':z[_0x23b1c2(0x1e6,0x245,0x32a,0x38e)](hookMatcherGroupSchema)[_0x23b1c2(0x27e,0x358,0x379,0x44b)](),'SessionStart':z[_0x57b9de(0x28d,0x38c,0x3d8,0x35e)](hookMatcherGroupSchema)['optional'](),'SessionEnd':z['array'](hookMatcherGroupSchema)[_0x57b9de(0x502,0x468,0x427,0x51e)]()}),cliConfigSchema=z[_0x23b1c2(0x495,0x28a,0x3dc,0x371)]({'activeProvider':z['string']()[_0x57b9de(0x2ec,0x3b9,0x427,0x564)](),'activeModel':z['string']()[_0x23b1c2(0x45b,0x2a0,0x379,0x4cb)](),'apiKey':z[_0x23b1c2(0x13c,0x35a,0x285,0x199)]()[_0x57b9de(0x4c5,0x3b8,0x427,0x32f)](),'providers':z[_0x57b9de(0x48f,0x3ce,0x4bd,0x5b6)](z[_0x23b1c2(0x39f,0x3c9,0x285,0x2b9)](),providerConfigSchema)[_0x23b1c2(0x471,0x289,0x379,0x30a)](),'mcp':mcpSettingsSchema[_0x23b1c2(0x312,0x3f3,0x379,0x346)](),'skills':skillsSettingsSchema[_0x57b9de(0x388,0x56a,0x427,0x3a3)](),'agents':agentsSettingsSchema[_0x23b1c2(0x40f,0x253,0x379,0x436)](),'commands':commandsSettingsSchema[_0x57b9de(0x30b,0x52f,0x427,0x304)](),'skillsEnabled':z['record'](z[_0x23b1c2(0x27c,0x2d5,0x285,0x15a)](),z[_0x23b1c2(0x3b4,0x480,0x494,0x42d)]())[_0x57b9de(0x332,0x35a,0x427,0x2df)](),'memory':memorySettingsSchema[_0x23b1c2(0x4a0,0x45a,0x379,0x310)](),'session':z[_0x23b1c2(0x453,0x31e,0x3dc,0x2e2)]({'memPersist':z['boolean']()[_0x57b9de(0x50c,0x403,0x427,0x357)](),'persistEventLog':z['boolean']()[_0x57b9de(0x551,0x547,0x427,0x4a4)](),'persistHttpLog':z[_0x57b9de(0x495,0x464,0x542,0x595)]()[_0x57b9de(0x35f,0x434,0x427,0x35e)]()})['passthrough']()[_0x57b9de(0x47e,0x4d1,0x427,0x39a)](),'requireToolApproval':z[_0x23b1c2(0x50e,0x34f,0x494,0x43a)]()[_0x23b1c2(0x28f,0x22e,0x379,0x2ec)](),'thinking':z[_0x57b9de(0x559,0x5ae,0x58e,0x6b7)]([_0x23b1c2(0x33c,0x1d1,0x2f6,0x3e2),_0x23b1c2(0x2cb,0x502,0x410,0x367),_0x23b1c2(0x401,0x402,0x2d1,0x39a),'HIGH'])[_0x23b1c2(0x4a1,0x3df,0x379,0x3f6)](),'streamingChunks':z[_0x57b9de(0x420,0x508,0x542,0x525)]()[_0x57b9de(0x53c,0x3f0,0x427,0x3f9)](),'agentsEnabled':z[_0x57b9de(0x501,0x5f9,0x4bd,0x560)](z['string'](),z['boolean']())[_0x57b9de(0x459,0x341,0x427,0x452)](),'recentModels':z[_0x57b9de(0x335,0x313,0x3d8,0x2f2)](recentModelSchema)['optional'](),'lsp':lspConfigSchema[_0x23b1c2(0x44e,0x451,0x379,0x2f5)](),'servers':z[_0x23b1c2(0x491,0x48d,0x40f,0x466)](z[_0x57b9de(0x435,0x278,0x333,0x39c)](),serverEndpointSchema)[_0x57b9de(0x4e8,0x4c4,0x427,0x46b)](),'ui':z[_0x23b1c2(0x430,0x2e9,0x3dc,0x4e4)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x23b1c2(0x407,0x3b5,0x379,0x312)]()})[_0x23b1c2(0x402,0x457,0x437,0x377)]()['optional'](),'tools':z[_0x57b9de(0x55c,0x5f6,0x4bd,0x4fd)](z[_0x23b1c2(0x2df,0x2c8,0x285,0x3ae)](),z[_0x57b9de(0x4a1,0x57e,0x4dd,0x3b4)]())['optional'](),'hooks':hooksConfigSchema[_0x23b1c2(0x3e0,0x302,0x379,0x300)]()})[_0x57b9de(0x48a,0x448,0x4e5,0x3c7)]();function buildDescription(_0x52d0b4){const _0x1dc9a5={_0x117216:0xbe,_0x386085:0x16b,_0x3b3fed:0xa4,_0x5c5264:0x59,_0x3b1011:0x3,_0x2c849a:0x46,_0x1aec39:0x20,_0xa5966f:0xc3,_0x3b96f7:0x42,_0xb83396:0x17d,_0x4f8bee:0x3a,_0x391e8d:0x25e,_0x418de9:0x134,_0x2fe92a:0x5e,_0x280cb2:0x9b,_0x5bbcf4:0xc4,_0x4f3276:0x1e2,_0x5d667a:0x349,_0x17ad35:0x234,_0x339a26:0x1d4,_0x36ca97:0xcd,_0x547750:0x27d},_0x43ccef={_0x1a0ede:0x252},_0x117c2f={_0x3facb8:0x108};if(_0x52d0b4[_0x4bbcc6(0x3b,0x158,_0x1dc9a5._0x117216,_0x1dc9a5._0x386085)]===0x0)return[_0x4bbcc6(-0xe8,-_0x1dc9a5._0x3b3fed,-0x135,-0x1c0),_0x5aecf0(_0x1dc9a5._0x5c5264,0xcb,-_0x1dc9a5._0x3b1011,_0x1dc9a5._0x2c849a),_0x5aecf0(-0x10,_0x1dc9a5._0x1aec39,-_0x1dc9a5._0xa5966f,-_0x1dc9a5._0x3b96f7)][_0x4bbcc6(-_0x1dc9a5._0xb83396,-_0x1dc9a5._0x4f8bee,-_0x1dc9a5._0x391e8d,-0x1f9)]('\x0a');const _0x41dc55=[_0x5aecf0(0x99,_0x1dc9a5._0x418de9,_0x1dc9a5._0x2fe92a,_0x1dc9a5._0x117216),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x5aecf0(-0xb8,_0x1dc9a5._0x280cb2,_0x1dc9a5._0x5bbcf4,_0x1dc9a5._0x4f3276),..._0x52d0b4[_0x5aecf0(_0x1dc9a5._0x5d667a,_0x1dc9a5._0x17ad35,0x1db,_0x1dc9a5._0x339a26)](_0x3b0c22=>_0x3b0c22[_0x5aecf0(0x152,0x1ee,0x338,0x17d)]?'-\x20'+_0x3b0c22['name']+'\x20'+_0x3b0c22[_0x5aecf0(0x10a,0x1ee,0x334,0x1e4)]+':\x20'+_0x3b0c22[_0x4bbcc6(-0xb,0x4f,0x70,0x1b)]:'-\x20'+_0x3b0c22[_0x5aecf0(0x11,0x113,0xac,0x13c)]+':\x20'+_0x3b0c22[_0x5aecf0(0x345,0x211,0x2ae,0xfd)])];function _0x4bbcc6(_0x12b711,_0x51527f,_0x2a7066,_0x308b94){return _0x23b1c2(_0x12b711-0x12d,_0x51527f,_0x12b711- -0x46e,_0x308b94-_0x117c2f._0x3facb8);}function _0x5aecf0(_0x2416a5,_0xc32ab2,_0x1fa43e,_0x54c948){return _0x23b1c2(_0x2416a5-0x17c,_0x54c948,_0xc32ab2- -_0x43ccef._0x1a0ede,_0x54c948-0x14a);}return _0x41dc55[_0x4bbcc6(-0x17d,-0x11f,-_0x1dc9a5._0x36ca97,-_0x1dc9a5._0x547750)]('\x0a');}function createInvokeCommandTool(_0x270aa7){const _0x81b73={_0x3eda35:0x1e9,_0x1a2d1d:0xd6,_0x5b2f38:0xf5,_0x39c731:0x121,_0x2fa5d4:0xc0,_0x2b6e32:0x102,_0x525a5a:0xb5,_0x1c49c4:0x13c},_0x59c1ad={_0x574bfd:0x1a7,_0x34f1d8:0xc2,_0x29e36f:0x1f8,_0x46ed70:0x100,_0x3ab26f:0x178,_0x3ed8f5:0x42,_0x2ae696:0x38,_0xcb1cb3:0x277,_0x4647e4:0x3c9,_0x2f824f:0x398,_0x2334d3:0x3a9,_0x4300e0:0x251,_0x1f364f:0x379,_0x15ecbc:0x223,_0x1a4925:0x2c4,_0x4494fd:0x29a},_0x5aa269={_0x3f8b18:0x1bb},_0x33daf2={_0x34bc00:0x17b,_0x127841:0x135},_0x583ad9={_0x1c3a72:0x36d,_0xadfa15:0xb0};function _0x251a37(_0x113cd6,_0x17a967,_0x25826b,_0x58a5c5){return _0x23b1c2(_0x113cd6-0x1b2,_0x113cd6,_0x58a5c5- -_0x583ad9._0x1c3a72,_0x58a5c5-_0x583ad9._0xadfa15);}const _0x56ac0a=new Map(_0x270aa7[_0x4ebde9(0xfb,0x30,0x1bc,0x21b)]['map'](_0x28b31=>[_0x28b31['id'],_0x28b31]));function _0x4ebde9(_0x61b33f,_0x3360de,_0x3ca347,_0x5bc5a0){return _0x57b9de(_0x61b33f-0x1a9,_0x3ca347,_0x61b33f- -0x3c8,_0x5bc5a0-0x19d);}const _0x114178=buildDescription(_0x270aa7[_0x251a37(0x18b,0x46,_0x81b73._0x3eda35,0xa8)]);return defineTool({'name':_0x251a37(_0x81b73._0x1a2d1d,0xb,_0x81b73._0x5b2f38,_0x81b73._0x39c731),'description':_0x114178,'inputSchema':{'type':_0x251a37(-_0x81b73._0x2fa5d4,0xa1,0xae,0x6f),'properties':{'name':{'type':_0x251a37(0x27,-0x12c,-_0x81b73._0x2b6e32,-0xe8)},'args':{'type':_0x251a37(-0x235,-_0x81b73._0x525a5a,-_0x81b73._0x1c49c4,-0xe8)}},'required':[_0x251a37(-0x62,-0x14a,0xe1,-0x8)]},async *'execute'(_0xae8b66){const _0x34dbeb=_0x56ac0a[_0x22c189(0x2e0,0x2d3,0x1ca,0x18d)](_0xae8b66[_0x22c189(0x1d7,_0x59c1ad._0x574bfd,_0x59c1ad._0x34f1d8,0x206)]);function _0x1b6569(_0x110c8f,_0x13bb1e,_0x32a513,_0x4965d1){return _0x251a37(_0x110c8f,_0x13bb1e-_0x33daf2._0x34bc00,_0x32a513-_0x33daf2._0x127841,_0x4965d1- -0xcc);}if(!_0x34dbeb){const _0x406a54=Array[_0x22c189(0x162,0x137,0x1d9,0x1c8)](_0x56ac0a[_0x1b6569(-0x1af,-_0x59c1ad._0x29e36f,-0xa3,-0xb9)]())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0xae8b66['name']+_0x1b6569(-0x1a2,-_0x59c1ad._0x46ed70,-_0x59c1ad._0x3ab26f,-0x13f)+_0x406a54,{'name':_0xae8b66[_0x1b6569(-_0x59c1ad._0x3ed8f5,-_0x59c1ad._0x2ae696,-_0x59c1ad._0x46ed70,-0xd4)]});}const _0x34bba0=await _0x270aa7['loadCommand'](_0x34dbeb),_0x247860=_0xae8b66[_0x22c189(0xf3,0xe5,_0x59c1ad._0xcb1cb3,0x13e)]??'',_0x3e5337=renderCommandInstructions({'instructions':_0x34bba0[_0x22c189(_0x59c1ad._0x4647e4,_0x59c1ad._0x2f824f,_0x59c1ad._0x2334d3,0x315)],'argumentsText':_0x247860,'argumentNames':_0x34bba0[_0x1b6569(-0x288,-0x2b2,-0x235,-0x19e)]});yield createToolOutput(_0x3e5337,{'id':_0x34bba0['id'],'name':_0x34bba0[_0x22c189(_0x59c1ad._0x4300e0,0x275,0x291,0x206)],'path':_0x34dbeb[_0x22c189(0x30e,0x2a9,_0x59c1ad._0x1f364f,0x326)][_0x22c189(_0x59c1ad._0x15ecbc,_0x59c1ad._0x1a4925,_0x59c1ad._0x4494fd,0x31e)]});function _0x22c189(_0x4cedb3,_0x1337c9,_0x392a3f,_0x567ee3){return _0x4ebde9(_0x567ee3-_0x5aa269._0x3f8b18,_0x1337c9-0x5b,_0x1337c9,_0x567ee3-0x52);}return void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x163211,rename as _0x4e0a21,stat as _0x4e49fb,writeFile as _0xf2b371}from'fs/promises';import*as _0x4425ad from'path';function detectEol(_0x4ce07f){const _0x130c70={_0x2900f9:0x38d,_0x1483bc:0x1df,_0x2886c0:0x21c,_0x4c4d04:0x371,_0x38e03d:0x173,_0x5687f4:0x296};function _0x1d9b0f(_0x5baad2,_0xd869a4,_0x45468c,_0x159890){return _0x23b1c2(_0x5baad2-0x15f,_0xd869a4,_0x45468c- -0x143,_0x159890-0x148);}function _0x3e0f54(_0x586410,_0x4907d7,_0x4afdb2,_0x470edf){return _0x23b1c2(_0x586410-0x18f,_0x4afdb2,_0x470edf- -0x146,_0x470edf-0x1b6);}return/\r\n/[_0x3e0f54(0x1eb,0x364,0x369,0x2de)](_0x4ce07f[_0x3e0f54(0x3d9,_0x130c70._0x2900f9,_0x130c70._0x1483bc,0x2fc)](_0x1d9b0f(_0x130c70._0x2886c0,_0x130c70._0x4c4d04,0x2c5,_0x130c70._0x38e03d)))?_0x3e0f54(_0x130c70._0x5687f4,0x34d,0x38b,0x390):'lf';}function normalizeToLf(_0x1ec672){const _0x5e2b95={_0x2f96da:0x1d2,_0x2eee18:0x60},_0x5c55be={_0x3f96f1:0x1b4,_0x9eb6f4:0x50};function _0x4d04f5(_0x336e74,_0x197ffe,_0x5bea9e,_0x310c08){return _0x57b9de(_0x336e74-_0x5c55be._0x3f96f1,_0x336e74,_0x5bea9e- -0x434,_0x310c08-_0x5c55be._0x9eb6f4);}return _0x1ec672[_0x4d04f5(_0x5e2b95._0x2f96da,0x74,0xb9,-_0x5e2b95._0x2eee18)](/\r\n/g,'\x0a');}function convertEol(_0x64e79e,_0x1d21be){const _0xe0c9c1={_0x4ec55a:0x556,_0x49d9f:0x38e,_0x38ba33:0x4b5,_0x3d33ac:0x443},_0x5ebe6f={_0x168c1c:0x168,_0x493c92:0x38,_0x3b53f8:0x195};function _0x524471(_0x4ab2fc,_0x44ecf8,_0x4eca84,_0x353231){return _0x57b9de(_0x4ab2fc-_0x5ebe6f._0x168c1c,_0x353231,_0x4eca84- -_0x5ebe6f._0x493c92,_0x353231-_0x5ebe6f._0x3b53f8);}return _0x1d21be==='crlf'?_0x64e79e[_0x524471(_0xe0c9c1._0x4ec55a,_0xe0c9c1._0x49d9f,_0xe0c9c1._0x38ba33,_0xe0c9c1._0x3d33ac)](/\n/g,'\x0d\x0a'):_0x64e79e;}async function atomicWrite(_0x533d6e,_0x53a5b9){const _0x2c547f={_0x448b90:0x18d,_0x16f1dc:0x219,_0x1f36de:0xfa,_0x7ee874:0xc4,_0x717583:0xb1,_0x445c6d:0x157,_0x4e41f2:0x6,_0x1aed34:0xee,_0x57464d:0x274,_0x410fd7:0x31a},_0x1fd000={_0x243137:0x2dd},_0x19641b={_0x1e69a8:0xcb,_0xe5cc3b:0x1f7};function _0x102be5(_0x308d08,_0x485cbf,_0x2495b5,_0x107458){return _0x23b1c2(_0x308d08-_0x19641b._0x1e69a8,_0x2495b5,_0x485cbf- -_0x19641b._0xe5cc3b,_0x107458-0xe0);}const _0x14dc27=_0x4425ad[_0x4447be(_0x2c547f._0x448b90,_0x2c547f._0x16f1dc,0x13e,0x1ef)](_0x533d6e);function _0x4447be(_0x22acfc,_0x5203cf,_0x2707b4,_0x30225e){return _0x57b9de(_0x22acfc-0x1b7,_0x5203cf,_0x22acfc- -_0x1fd000._0x243137,_0x30225e-0x1b4);}const _0x46d1d3=_0x4425ad[_0x102be5(0x1b9,_0x2c547f._0x1f36de,0x6d,0x1f)](_0x14dc27,_0x102be5(_0x2c547f._0x7ee874,0xc4,-0x3,0x7e)+_0x4425ad[_0x4447be(0x71,_0x2c547f._0x717583,0x199,_0x2c547f._0x445c6d)](_0x533d6e)+'.'+Date[_0x102be5(0x2,0x121,_0x2c547f._0x4e41f2,_0x2c547f._0x1aed34)]()+'.'+Math[_0x102be5(_0x2c547f._0x57464d,0x151,0x55,0x24c)]()[_0x102be5(0x31f,0x24b,_0x2c547f._0x410fd7,0x12f)](0x24)['slice'](0x2));await _0xf2b371(_0x46d1d3,_0x53a5b9),await _0x4e0a21(_0x46d1d3,_0x533d6e);}function sha256(_0x400e65){const _0x5d4ca9={_0x32a783:0x394,_0x217a53:0x361,_0x210a06:0x4c5,_0xef6b2d:0x3e6,_0x412868:0x4bc,_0x24d677:0x1ee},_0xee6e54={_0xdd149c:0xc8},_0x26027c={_0x462721:0x506,_0x1c458a:0x4c};function _0x1b730d(_0x48b80b,_0x129b0b,_0x2a0c1a,_0x4bb69c){return _0x57b9de(_0x48b80b-0x18c,_0x129b0b,_0x48b80b- -_0x26027c._0x462721,_0x4bb69c-_0x26027c._0x1c458a);}function _0x3bb214(_0x559329,_0x3c13d4,_0x16ae15,_0x53c644){return _0x23b1c2(_0x559329-_0xee6e54._0xdd149c,_0x16ae15,_0x559329-0x30,_0x53c644-0x17b);}return createHash(_0x3bb214(_0x5d4ca9._0x32a783,_0x5d4ca9._0x217a53,_0x5d4ca9._0x210a06,_0x5d4ca9._0xef6b2d))[_0x3bb214(_0x5d4ca9._0x412868,0x39e,0x446,0x421)](_0x400e65)[_0x1b730d(-_0x5d4ca9._0x24d677,-0x244,-0xa4,-0x29a)]('hex');}function countLines(_0x3b861d){const _0x223d2f={_0x5be42e:0x387,_0xba6ae9:0x154,_0x4061a5:0x1ec,_0x478cdf:0x45f,_0x42a49b:0x584},_0x84e558={_0x1cb639:0xac};function _0x215bd9(_0x542c19,_0x30da18,_0x656fea,_0x2711fa){return _0x57b9de(_0x542c19-0x35,_0x30da18,_0x542c19- -_0x84e558._0x1cb639,_0x2711fa-0x50);}const _0x27f352=_0x3b861d['replace'](/\n$/,'');function _0x576c71(_0x20f592,_0x484e6f,_0x5528a9,_0x48e5a7){return _0x57b9de(_0x20f592-0x156,_0x5528a9,_0x484e6f- -0x30a,_0x48e5a7-0x1c6);}return _0x27f352[_0x576c71(_0x223d2f._0x5be42e,0x24d,_0x223d2f._0xba6ae9,_0x223d2f._0x4061a5)]===0x0?0x0:_0x27f352['split']('\x0a')[_0x215bd9(0x4ab,_0x223d2f._0x478cdf,_0x223d2f._0x42a49b,0x5f7)];}function calculateLineNumbers(_0x4f00bd,_0x5d1d69,_0x5c1f20,_0x8593fa){const _0x51baad={_0x20143b:0x4c1,_0x3a944c:0x500,_0x5b11c8:0x5e3,_0x2a42d7:0x50e,_0x4d8146:0x55b},_0x4f1018={_0x34f4c7:0x13a,_0x2f9d0b:0x164},_0x279010={_0x32f0e6:0x1b0,_0x132c23:0x6e,_0x49aa04:0xe2},_0x14d776=_0x4f00bd['slice'](0x0,_0x8593fa)[_0x27090a(0x588,0x58c,_0x51baad._0x20143b,_0x51baad._0x3a944c)]('\x0a')[_0x1d40f8(_0x51baad._0x5b11c8,0x632,_0x51baad._0x2a42d7,_0x51baad._0x4d8146)];function _0x27090a(_0x11c922,_0x4080ca,_0x34ba8e,_0x3e1de9){return _0x57b9de(_0x11c922-_0x279010._0x32f0e6,_0x4080ca,_0x11c922-_0x279010._0x132c23,_0x3e1de9-_0x279010._0x49aa04);}const _0x263cfb=countLines(_0x5d1d69);function _0x1d40f8(_0x1c55dc,_0x212fcd,_0x423441,_0x2ed640){return _0x23b1c2(_0x1c55dc-0x1df,_0x212fcd,_0x1c55dc-_0x4f1018._0x34f4c7,_0x2ed640-_0x4f1018._0x2f9d0b);}const _0x449348=countLines(_0x5c1f20);return{'oldStartLine':_0x14d776,'oldEndLine':_0x14d776+_0x263cfb-0x1,'newStartLine':_0x14d776,'newEndLine':_0x14d776+_0x449348-0x1,'oldLineCount':_0x263cfb,'newLineCount':_0x449348};}function createFileEditTool(_0x4876d0={}){const _0x22fbe0={_0x568aae:0x234,_0x2b33bf:0x113,_0x147e0c:0x163,_0x8fb36e:0x2c1,_0x3bb004:0x186,_0x3d11e:0x170,_0x5b2ba6:0x18e,_0xfafbde:0x276,_0x5254bc:0x1c9,_0x5b1361:0x3bf,_0x4dd1c0:0xa0,_0x3c963c:0x278,_0x511380:0x31b,_0x1a4b05:0x308,_0x295d20:0x280,_0x4abe99:0x22d,_0x415f7b:0x14e,_0x399d56:0x54,_0x42bac5:0x7d,_0x290521:0x220,_0x3d83b7:0x2ac,_0x283e07:0xfa,_0x56c894:0x103,_0x4d60c8:0x149,_0x5d8fb1:0x183,_0xe05615:0x31e,_0x48b7de:0x23f},_0xc23d22={_0x20fb14:0x375,_0x45cd3f:0x364,_0x4c6f2e:0x42e,_0x11a4d2:0x128,_0x5198d4:0x25d,_0x4e84ef:0x289,_0x2dfe89:0x39a,_0x348c07:0x4cc,_0x43e5ec:0x125,_0x5dae98:0x41c,_0x56a1a1:0xd,_0x179dfd:0x18f,_0x4bc14f:0x25c,_0x36c646:0x298,_0x32e608:0x42,_0x3f38d9:0x314,_0x59b33a:0x388,_0x1a7bf5:0x3bb,_0x4f611c:0x78,_0x43338f:0x130,_0x19eb75:0xb4,_0x2c1523:0x2a9,_0x40a728:0x3e1,_0x3fa16f:0x3ae,_0x62bc6:0xee,_0x446090:0x1a1,_0x4ae030:0x1ef,_0x1bda5a:0x21c,_0x269d01:0x93,_0x398748:0x17d,_0x29e06f:0x2d,_0x1737ec:0x52,_0x29483b:0x76,_0x5dc059:0xd6,_0x130cd6:0x19,_0x2023e7:0xa4,_0x511ac7:0x1,_0x440c1d:0x112,_0x3f89a4:0x409,_0x4b9775:0x477,_0x203fcf:0xc,_0x522a01:0xec,_0xf9ac4c:0x1e5,_0x2754bd:0x42b,_0x4b2e86:0x3be},_0x46dff2={_0x212aae:0xe0,_0x159a36:0x16b},_0x3d41b0={_0x370e3e:0xdc},_0x3def94={_0x35f0d0:0x11f,_0x3bf39d:0x4fe};function _0x19a0e1(_0x244dd5,_0x1f0996,_0x5742a0,_0x1a1937){return _0x57b9de(_0x244dd5-_0x3def94._0x35f0d0,_0x244dd5,_0x1f0996- -_0x3def94._0x3bf39d,_0x1a1937-0x92);}function _0x292d41(_0x347a45,_0x55384f,_0x3a79ef,_0x4a9763){return _0x23b1c2(_0x347a45-_0x3d41b0._0x370e3e,_0x347a45,_0x4a9763- -0x1af,_0x4a9763-0x108);}const _0xaea15a=_0x4425ad[_0x19a0e1(-_0x22fbe0._0x568aae,-_0x22fbe0._0x2b33bf,-0x1dc,-_0x22fbe0._0x147e0c)](_0x4876d0[_0x292d41(0x18b,_0x22fbe0._0x8fb36e,0xf1,_0x22fbe0._0x3bb004)]??process['cwd']()),_0x2d66ae=(_0x4876d0[_0x292d41(0x3b5,_0x22fbe0._0x3d11e,_0x22fbe0._0x5b2ba6,_0x22fbe0._0xfafbde)]??[])[_0x292d41(0x422,_0x22fbe0._0x5254bc,_0x22fbe0._0x5b1361,0x2d7)](_0x564a21=>_0x4425ad[_0x19a0e1(-0x163,-0x113,-0x125,0xc)](_0x564a21)),_0x4c3574=_0x4876d0[_0x292d41(0x290,0x302,0x81,0x1b6)]??_0x19a0e1(-_0x22fbe0._0x4dd1c0,-0x1ab,-0x227,-0x211);return defineTool({'name':_0x4c3574,'description':_0x292d41(0x22e,_0x22fbe0._0x3c963c,_0x22fbe0._0x511380,_0x22fbe0._0x1a4b05),'inputSchema':{'type':_0x292d41(0x342,0x21e,_0x22fbe0._0x295d20,_0x22fbe0._0x4abe99),'properties':{'filePath':{'type':_0x292d41(_0x22fbe0._0x415f7b,_0x22fbe0._0x399d56,0x131,0xd6)},'oldText':{'type':_0x19a0e1(-0x10b,-0x1cb,-0x2f5,-_0x22fbe0._0x42bac5)},'newText':{'type':_0x19a0e1(-_0x22fbe0._0x290521,-0x1cb,-0xfc,-_0x22fbe0._0x3d83b7)},'dryRun':{'type':_0x19a0e1(-_0x22fbe0._0x283e07,0x44,-_0x22fbe0._0x56c894,_0x22fbe0._0x4d60c8)}},'required':[_0x292d41(0x383,0x2f1,0x150,0x244),_0x19a0e1(-0x161,-0x118,-_0x22fbe0._0x5d8fb1,-0x160),_0x292d41(_0x22fbe0._0xe05615,_0x22fbe0._0x48b7de,0x16c,0x272)]},async *'execute'(_0x53c761){function _0x442ab0(_0x495193,_0x167e08,_0x3179d3,_0x1c527c){return _0x19a0e1(_0x3179d3,_0x495193-0x3d2,_0x3179d3-0x1c6,_0x1c527c-0x2b);}const _0x3e3938=resolveAllowedPath(_0xaea15a,_0x2d66ae,_0x53c761[_0x442ab0(_0xc23d22._0x20fb14,0x4b0,_0xc23d22._0x45cd3f,_0xc23d22._0x4c6f2e)]);await assertWorkspaceFile(_0x3e3938);const _0x49160d=await _0x4e49fb(_0x3e3938),_0x430960=await _0x163211(_0x3e3938);function _0x5e1c5b(_0x225289,_0x530482,_0x56be59,_0x105b9a){return _0x292d41(_0x530482,_0x530482-0x79,_0x56be59-_0x46dff2._0x212aae,_0x225289- -_0x46dff2._0x159a36);}const _0x286900=detectEol(_0x430960),_0x592e17=normalizeToLf(_0x430960[_0x5e1c5b(_0xc23d22._0x11a4d2,_0xc23d22._0x5198d4,-0x1a,0xc5)](_0x442ab0(0x38a,_0xc23d22._0x4e84ef,_0xc23d22._0x2dfe89,_0xc23d22._0x348c07))),_0x2ddcec=normalizeToLf(_0x53c761[_0x5e1c5b(0x1e,0x157,_0xc23d22._0x43e5ec,-0xbf)]),_0x2acde2=normalizeToLf(_0x53c761[_0x442ab0(0x3a3,0x2ed,0x443,_0xc23d22._0x5dae98)]),_0x20d999=_0x592e17['indexOf'](_0x2ddcec);if(_0x20d999===-0x1){const _0x37343e=_0x2ddcec['slice'](0x0,0x64)[_0x5e1c5b(0x125,0x71,-_0xc23d22._0x56a1a1,0x11)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x37343e+(_0x2ddcec[_0x5e1c5b(_0xc23d22._0x179dfd,_0xc23d22._0x4bc14f,0x1bd,_0xc23d22._0x36c646)]>0x64?'...':'')+'\x22',{'filePath':_0x53c761[_0x5e1c5b(0xd9,-0x45,0x138,_0xc23d22._0x32e608)]});}const _0x3d1ae0=_0x592e17[_0x442ab0(_0xc23d22._0x3f38d9,_0xc23d22._0x59b33a,0x2f6,_0xc23d22._0x1a7bf5)](0x0,_0x20d999)+_0x2acde2+_0x592e17[_0x5e1c5b(_0xc23d22._0x4f611c,_0xc23d22._0x43338f,-0xad,0x25)](_0x20d999+_0x2ddcec[_0x5e1c5b(_0xc23d22._0x179dfd,0xe5,0x1df,_0xc23d22._0x19eb75)]),_0x248c9f=convertEol(_0x3d1ae0,_0x286900),_0x4cb6b8=Buffer[_0x442ab0(_0xc23d22._0x2c1523,_0xc23d22._0x40a728,_0xc23d22._0x3fa16f,0x164)](_0x248c9f,_0x5e1c5b(_0xc23d22._0x62bc6,0x15f,_0xc23d22._0x446090,_0xc23d22._0x4ae030)),_0x3275b5=sha256(_0x430960),_0x41f06e=sha256(_0x4cb6b8),_0x3e75c7=_0x3275b5===_0x41f06e,_0x233db8=_0x53c761[_0x442ab0(0x24d,0x313,_0xc23d22._0x1bda5a,0x12e)]??![];return!_0x233db8&&!_0x3e75c7&&await atomicWrite(_0x3e3938,_0x4cb6b8),yield createToolOutput(_0x3e75c7?_0x5e1c5b(-_0xc23d22._0x269d01,-_0xc23d22._0x398748,_0xc23d22._0x29e06f,0x35):_0x233db8?'Validated\x20(dry\x20run:\x20no\x20write).':_0x5e1c5b(0xa,_0xc23d22._0x1737ec,0x105,-_0xc23d22._0x29483b),{'filePath':_0x53c761['filePath'],'resolvedPath':_0x3e3938,'created':_0x49160d[_0x5e1c5b(0x6e,_0xc23d22._0x5dc059,-_0xc23d22._0x130cd6,-_0xc23d22._0x2023e7)][_0x5e1c5b(0x122,-_0xc23d22._0x511ac7,-0xa,_0xc23d22._0x440c1d)](),'modified':_0x49160d[_0x442ab0(_0xc23d22._0x3f89a4,_0xc23d22._0x4b9775,0x30b,0x431)][_0x5e1c5b(0x122,-_0xc23d22._0x203fcf,0x37,0x123)](),'size':_0x49160d[_0x5e1c5b(_0xc23d22._0x522a01,_0xc23d22._0xf9ac4c,0x144,0x22d)],'eol':_0x286900,'oldTextLength':_0x2ddcec['length'],'newTextLength':_0x2acde2[_0x442ab0(_0xc23d22._0x2754bd,_0xc23d22._0x4b2e86,0x3e1,0x446)],'bytesWritten':_0x3e75c7||_0x233db8?0x0:_0x4cb6b8['length'],'beforeSha':_0x3275b5,'afterSha':_0x41f06e,'dryRun':_0x233db8,'noChange':_0x3e75c7,'lineNumbers':calculateLineNumbers(_0x592e17,_0x2ddcec,_0x2acde2,_0x20d999)}),void 0x0;}});}import{mkdir as _0xe67f0b,rename as _0x63dcd7,stat as _0x2784d6,writeFile as _0x1647fa}from'fs/promises';import*as _0x28e01c from'path';async function atomicWrite2(_0x514149,_0x443857){const _0x1806ca={_0x5407e0:0xd5,_0x3bed76:0x14d,_0x171ae1:0x5,_0x37ff37:0x62,_0x3a7f22:0x1fe,_0xe7b814:0x1a6,_0xe8b938:0xa9,_0x30fdd0:0x609,_0x190140:0x6ed,_0x5da66c:0x758},_0x5c9a58={_0x2afb61:0x172,_0x41d978:0x125},_0x131ddc=_0x28e01c[_0xe64478(_0x1806ca._0x5407e0,-_0x1806ca._0x3bed76,-_0x1806ca._0x171ae1,_0x1806ca._0x37ff37)](_0x514149);await _0xe67f0b(_0x131ddc,{'recursive':!![]});function _0x2671db(_0x1a4386,_0x533d08,_0x338874,_0x20c0a0){return _0x57b9de(_0x1a4386-_0x5c9a58._0x2afb61,_0x533d08,_0x338874-0x1fd,_0x20c0a0-_0x5c9a58._0x41d978);}function _0xe64478(_0x4589b8,_0x31cca1,_0x560a9a,_0x17aef8){return _0x23b1c2(_0x4589b8-0x71,_0x17aef8,_0x560a9a- -0x3c1,_0x17aef8-0x1d);}const _0x2cf906=_0x28e01c[_0xe64478(-0x164,-0x14a,-0xd0,-_0x1806ca._0x3a7f22)](_0x131ddc,_0xe64478(-0x141,-0x1df,-0x106,-0x56)+_0x28e01c[_0xe64478(0x2,-0x195,-0x121,-0x1b5)](_0x514149)+'.'+Date[_0xe64478(-_0x1806ca._0xe7b814,0x7d,-_0x1806ca._0xe8b938,-0x1cc)]()+'.'+Math[_0x2671db(0x583,0x699,0x5f3,_0x1806ca._0x30fdd0)]()[_0x2671db(0x6f4,0x692,_0x1806ca._0x190140,_0x1806ca._0x5da66c)](0x24)['slice'](0x2));await _0x1647fa(_0x2cf906,_0x443857),await _0x63dcd7(_0x2cf906,_0x514149);}function createFileNewTool(_0xa623b7={}){const _0x43d115={_0x36b0cb:0x63d,_0x3f2e82:0x648,_0x517fb8:0x67a,_0x1b9bef:0x494,_0x5c173e:0x27f,_0x49157f:0x1f3,_0x29fe3a:0x2f4,_0x3d3a76:0x349,_0x440dbf:0x4b3,_0x19192c:0x343,_0x1dc7f4:0x497,_0x1a65c2:0x3cf,_0xd916d7:0x3c8,_0x39ad0b:0x46e,_0x3656c1:0x4b5,_0x26c500:0x3da,_0x4657b0:0x3ed,_0x11d8c0:0x5d6,_0xaac425:0x4a5,_0x174de4:0x4bf},_0x17391c={_0x594ea9:0x340,_0x5adb20:0x2fc,_0x549685:0x20e,_0xe9db3e:0x278,_0x1d3311:0x8f,_0x40b3db:0x39f,_0x58ed63:0x34c,_0x4971b1:0x155,_0x1572f9:0x200,_0x1e8680:0x23b,_0x1f7bea:0x3eb,_0x11b572:0x3d1},_0x3429eb={_0x5e4709:0xb8},_0x1ecc93={_0x3a6a4f:0xf4,_0x9dedaa:0x252},_0x46b800={_0x19564e:0x11,_0x2d1987:0x125},_0x3f52b0=_0x28e01c[_0x3c10fd(_0x43d115._0x36b0cb,_0x43d115._0x3f2e82,_0x43d115._0x517fb8,0x519)](_0xa623b7[_0x5ab5dd(_0x43d115._0x1b9bef,0x46f,_0x43d115._0x5c173e,0x346)]??process[_0x5ab5dd(0x3bd,_0x43d115._0x49157f,0x2a7,_0x43d115._0x29fe3a)]());function _0x5ab5dd(_0x18210f,_0x59c06b,_0x328f47,_0x8fc253){return _0x23b1c2(_0x18210f-0x61,_0x328f47,_0x8fc253-_0x46b800._0x19564e,_0x8fc253-_0x46b800._0x2d1987);}function _0x3c10fd(_0x3fe2ad,_0x20b5e5,_0x12d53d,_0x38fde2){return _0x57b9de(_0x3fe2ad-_0x1ecc93._0x3a6a4f,_0x12d53d,_0x3fe2ad-_0x1ecc93._0x9dedaa,_0x38fde2-0x145);}const _0x1acd9f=(_0xa623b7[_0x5ab5dd(0x364,_0x43d115._0x3d3a76,0x3d4,0x436)]??[])[_0x5ab5dd(0x3fb,_0x43d115._0x440dbf,_0x43d115._0x19192c,_0x43d115._0x1dc7f4)](_0x225da6=>_0x28e01c['resolve'](_0x225da6)),_0x56cdbe=_0xa623b7['name']??'FileNew';return defineTool({'name':_0x56cdbe,'description':_0x5ab5dd(_0x43d115._0x1a65c2,_0x43d115._0xd916d7,_0x43d115._0x39ad0b,_0x43d115._0x3656c1),'inputSchema':{'type':_0x5ab5dd(0x358,_0x43d115._0x26c500,0x3ac,_0x43d115._0x4657b0),'properties':{'filePath':{'type':_0x3c10fd(0x585,_0x43d115._0x11d8c0,_0x43d115._0xaac425,_0x43d115._0x174de4)},'content':{'type':'string'}},'required':['filePath','content']},async *'execute'(_0x207036){const _0x242783={_0x427984:0x1c9,_0x3da49d:0xe9},_0x3b3745=resolveAllowedPath(_0x3f52b0,_0x1acd9f,_0x207036['filePath']),_0x5ae80e=await _0x2784d6(_0x3b3745)[_0x2677a3(_0x17391c._0x594ea9,0x216,0x2f7,_0x17391c._0x5adb20)](()=>!![])[_0x617256(0x320,_0x17391c._0x549685,0x1fb,0xc4)](()=>![]),_0x4a3596=Buffer[_0x2677a3(0x34d,0x1dc,0x1a4,0x24f)](_0x207036[_0x617256(0xb7,0x200,0x181,_0x17391c._0xe9db3e)],'utf8');await atomicWrite2(_0x3b3745,_0x4a3596);function _0x617256(_0x10c4bc,_0x7310f8,_0x10b7b8,_0x1922dc){return _0x5ab5dd(_0x10c4bc-0x121,_0x7310f8-0x77,_0x10c4bc,_0x7310f8- -_0x3429eb._0x5e4709);}function _0x2677a3(_0x434bd8,_0x2ff550,_0x294a93,_0x2f8a5c){return _0x5ab5dd(_0x434bd8-0x10f,_0x2ff550-_0x242783._0x427984,_0x2ff550,_0x2f8a5c- -_0x242783._0x3da49d);}return yield createToolOutput(_0x2677a3(_0x17391c._0x1d3311,0x242,0x134,0x1da)+_0x207036[_0x617256(_0x17391c._0x40b3db,_0x17391c._0x58ed63,0x430,0x46d)]+'.',{'filePath':_0x207036['filePath'],'resolvedPath':_0x3b3745,'bytes':_0x4a3596['length'],'lines':_0x207036[_0x617256(_0x17391c._0x4971b1,_0x17391c._0x1572f9,0x1c9,_0x17391c._0x1e8680)][_0x2677a3(0x3bc,0x46c,0x436,0x394)](/\r?\n/)[_0x2677a3(_0x17391c._0x1f7bea,0x4a8,0x3dd,_0x17391c._0x11b572)],'created':new Date()[_0x2677a3(0x2e4,0x41f,0x4b6,0x364)](),'overwritten':_0x5ae80e}),void 0x0;}});}import{readFile as _0x3016a9,stat as _0x6bb4f8}from'fs/promises';import*as _0x11816a from'path';function stripUtfBom(_0x1b50e4){const _0x5816d4={_0x55010f:0x335,_0x7283cd:0x288};function _0x562b63(_0x3af39d,_0xa1f77d,_0x5b9f5f,_0x1d0865){return _0x57b9de(_0x3af39d-0x11b,_0x1d0865,_0xa1f77d- -0x10b,_0x1d0865-0x8);}return _0x1b50e4['charCodeAt'](0x0)===0xfeff?_0x1b50e4[_0x562b63(0x1f8,_0x5816d4._0x55010f,0x2c6,_0x5816d4._0x7283cd)](0x1):_0x1b50e4;}function clampLine(_0x36eeff,_0x58a00c){const _0x468bd1={_0x16723b:0xd6,_0x50c3eb:0x9f,_0x5cc64a:0x1b2,_0x4d849a:0xb7,_0x1de3fe:0x99,_0x337ed8:0x34},_0x3178b1={_0x3bdbe5:0x95},_0x25f2fb={_0x1d63c6:0x136};function _0x3404eb(_0x1b1630,_0x482e6c,_0x5cfee9,_0x430446){return _0x57b9de(_0x1b1630-_0x25f2fb._0x1d63c6,_0x430446,_0x5cfee9-0x24,_0x430446-0x1ec);}if(!Number[_0x12177d(-0xc3,-0x15,-_0x468bd1._0x16723b,-0x61)](_0x36eeff))return 0x1;function _0x12177d(_0x367cbc,_0x1d7291,_0x16db22,_0x5baf8c){return _0x57b9de(_0x367cbc-0x84,_0x5baf8c,_0x1d7291- -0x313,_0x5baf8c-_0x3178b1._0x3bdbe5);}return Math[_0x12177d(0xdf,_0x468bd1._0x50c3eb,_0x468bd1._0x5cc64a,0x71)](0x1,Math[_0x12177d(0xbc,-0x1,-_0x468bd1._0x4d849a,-0x57)](Math[_0x12177d(-_0x468bd1._0x1de3fe,-0x25,-_0x468bd1._0x337ed8,-0x39)](_0x36eeff),_0x58a00c));}function createFileReadTool(_0x3b8946={}){const _0x45f49d={_0xa9aa78:0x447,_0x3dd5f0:0x42e,_0x3913e2:0x32e,_0x40c719:0x26e,_0x1a4261:0x1ec,_0x214a8b:0x130,_0xb1f15:0x2e9,_0x10e6d6:0x38e,_0x1ebd9d:0x1c7,_0x3c58db:0x131,_0x4526a6:0x19d,_0xe934c8:0x16b,_0x435e1f:0x545,_0x5e23b3:0x511,_0x371ce1:0x44d,_0x2e35c5:0x2a0,_0x189fc5:0x491,_0x20f963:0x48a,_0x4aa6a5:0x253,_0x6fa552:0x408,_0x16df77:0x550,_0x3fa2f7:0x55d},_0x54206f={_0x197061:0x6da,_0x23bbbd:0x6ae,_0xd44d81:0x1b0,_0x5eee69:0x19b,_0x465b35:0x29a,_0x9586d7:0x3b1,_0x759938:0x658,_0x7263a1:0x665,_0x4b3110:0x5cb,_0x38f301:0x780,_0x24fcce:0x62e,_0x2a30b3:0x736,_0x39f7c9:0x2d5,_0x2c3968:0x19e,_0x22b008:0x2e2,_0x2faf95:0x1ed,_0x1575a9:0x555,_0x12b6a5:0x699,_0x3f67a1:0x2df,_0x18a852:0x25e,_0x257e0e:0x1ad,_0x1a1253:0x32b,_0x223310:0x32,_0x55c1f1:0x1c3,_0x5bff9e:0x244,_0x297dbd:0x271,_0x2ea67c:0x300,_0x167693:0x5c0,_0x147dbf:0x4b1,_0x97f8be:0x83f,_0x55ae71:0x706,_0x58f4e6:0x7a4,_0xd2e3e:0x2eb,_0x5640df:0xbc,_0x153d34:0x5b,_0x80f405:0x160,_0x256a1d:0x621,_0x379a31:0x561,_0x356e86:0x468,_0x590e3a:0x62c,_0x58f786:0x5e3,_0x4a713e:0x6e3,_0x2fe1ad:0x6fb},_0x2a03fc={_0x3f1fa8:0x1ab,_0x584c1d:0x27f,_0x10e33f:0xec},_0x1a27b6={_0x433e34:0xed},_0x1ff599={_0x369b44:0x11c,_0x34212e:0x6d};function _0x2219ec(_0x34bb72,_0x3be41f,_0x30f1e5,_0x451d48){return _0x23b1c2(_0x34bb72-_0x1ff599._0x369b44,_0x34bb72,_0x30f1e5- -0x22,_0x451d48-_0x1ff599._0x34212e);}const _0x3b72c4=_0x11816a[_0x2219ec(0x1de,_0x45f49d._0xa9aa78,0x31b,_0x45f49d._0x3dd5f0)](_0x3b8946['defaultCwd']??process['cwd']());function _0x240237(_0x239511,_0x4b761c,_0x54e29d,_0x37c4a5){return _0x57b9de(_0x239511-_0x1a27b6._0x433e34,_0x37c4a5,_0x239511- -0x1a5,_0x37c4a5-0x6);}const _0x56bcf5=(_0x3b8946[_0x240237(_0x45f49d._0x3913e2,0x3d0,0x3a0,0x30b)]??[])['map'](_0x412241=>_0x11816a['resolve'](_0x412241)),_0x244c76=_0x3b8946[_0x240237(_0x45f49d._0x40c719,_0x45f49d._0x1a4261,0x1c9,_0x45f49d._0x214a8b)]??_0x240237(_0x45f49d._0xb1f15,_0x45f49d._0x10e6d6,0x3e4,_0x45f49d._0x1ebd9d);return defineTool({'name':_0x244c76,'description':_0x2219ec(_0x45f49d._0x3c58db,_0x45f49d._0x4526a6,0x25d,_0x45f49d._0xe934c8),'inputSchema':{'type':_0x2219ec(0x3f3,0x4c1,0x3ba,0x4cc),'properties':{'path':{'type':'string'},'lineStart':{'type':_0x2219ec(_0x45f49d._0x435e1f,_0x45f49d._0x5e23b3,_0x45f49d._0x371ce1,0x568),'description':_0x240237(0x374,_0x45f49d._0x2e35c5,_0x45f49d._0x189fc5,_0x45f49d._0x20f963)},'lineEnd':{'type':_0x240237(0x378,_0x45f49d._0x4aa6a5,0x2fe,_0x45f49d._0x6fa552),'description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':[_0x2219ec(_0x45f49d._0x16df77,0x3ce,0x45b,_0x45f49d._0x3fa2f7)]},async *'execute'(_0x37581f){const _0x3e1ef6={_0x13c3f1:0xf4};function _0x299efe(_0x460729,_0x35c3c9,_0x464969,_0x378dad){return _0x240237(_0x460729- -0xb1,_0x35c3c9-_0x3e1ef6._0x13c3f1,_0x464969-0x1c,_0x464969);}const _0x1211ec=resolveAllowedPath(_0x3b72c4,_0x56bcf5,_0x37581f['path']);await assertWorkspaceFile(_0x1211ec);const _0x2fe373=await _0x6bb4f8(_0x1211ec),_0x3ede83=await _0x3016a9(_0x1211ec);function _0x2e282c(_0x569f46,_0x4f9649,_0x5e2568,_0x239875){return _0x2219ec(_0x569f46,_0x4f9649-_0x2a03fc._0x3f1fa8,_0x4f9649-_0x2a03fc._0x584c1d,_0x239875-_0x2a03fc._0x10e33f);}if(isProbablyBinary(_0x3ede83))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x37581f[_0x2e282c(0x643,_0x54206f._0x197061,0x7fb,_0x54206f._0x23bbbd)],{'path':_0x37581f[_0x299efe(0x2d5,_0x54206f._0xd44d81,_0x54206f._0x5eee69,0x385)]});let _0x3cd771=_0x3ede83[_0x299efe(_0x54206f._0x465b35,0x32a,0x371,_0x54206f._0x9586d7)](_0x2e282c(_0x54206f._0x759938,_0x54206f._0x7263a1,0x521,_0x54206f._0x4b3110));const _0x4617e7=_0x3cd771[_0x2e282c(_0x54206f._0x38f301,0x646,_0x54206f._0x24fcce,_0x54206f._0x2a30b3)](0x0)===0xfeff;_0x3cd771=stripUtfBom(_0x3cd771);const _0x197842=_0x3cd771['split'](/\r?\n/),_0x250b16={'path':_0x37581f[_0x299efe(_0x54206f._0x39f7c9,_0x54206f._0x2c3968,_0x54206f._0x22b008,_0x54206f._0x2faf95)],'resolvedPath':_0x1211ec,'created':_0x2fe373['birthtime'][_0x2e282c(_0x54206f._0x1575a9,_0x54206f._0x12b6a5,0x5d8,0x6c4)](),'modified':_0x2fe373[_0x299efe(_0x54206f._0x3f67a1,0x36c,0x2d7,0x23f)]['toISOString'](),'size':_0x2fe373[_0x299efe(_0x54206f._0x18a852,_0x54206f._0x257e0e,_0x54206f._0x1a1253,0x2a5)],'encoding':'utf8','bomStripped':_0x4617e7,'truncated':![],'totalLines':_0x197842['length']};if(_0x37581f[_0x299efe(0xac,-_0x54206f._0x223310,0x165,_0x54206f._0x55c1f1)]!==void 0x0||_0x37581f[_0x299efe(_0x54206f._0x5bff9e,_0x54206f._0x297dbd,_0x54206f._0x2ea67c,0x333)]!==void 0x0){const _0x447d0b=clampLine(_0x37581f[_0x2e282c(_0x54206f._0x167693,_0x54206f._0x147dbf,0x51e,0x600)]??0x1,_0x197842[_0x2e282c(_0x54206f._0x97f8be,_0x54206f._0x55ae71,0x6c3,_0x54206f._0x58f4e6)]),_0x415188=clampLine(_0x37581f[_0x299efe(_0x54206f._0x5bff9e,_0x54206f._0xd2e3e,0x20a,0x210)]??_0x197842['length'],_0x197842['length']),_0x11922c=Math[_0x299efe(_0x54206f._0x5640df,0x1db,-_0x54206f._0x153d34,_0x54206f._0x80f405)](_0x447d0b,_0x415188),_0x2ff441=Math[_0x2e282c(_0x54206f._0x256a1d,_0x54206f._0x379a31,_0x54206f._0x356e86,_0x54206f._0x590e3a)](_0x447d0b,_0x415188),_0x4a3c02=_0x197842['slice'](_0x11922c-0x1,_0x2ff441)[_0x2e282c(_0x54206f._0x58f786,_0x54206f._0x4a713e,_0x54206f._0x2fe1ad,0x829)]((_0x5c323c,_0x31e506)=>_0x11922c+_0x31e506+'|'+_0x5c323c)['join']('\x0a');return yield createToolOutput(_0x4a3c02,{..._0x250b16,'lineRange':{'lineStart':_0x11922c,'lineEnd':_0x2ff441,'linesTotal':_0x197842[_0x299efe(0x301,0x3b8,0x1e8,0x2ce)]}}),void 0x0;}return yield createToolOutput(_0x3cd771,_0x250b16),void 0x0;}});}import{stat as _0x534a77}from'fs/promises';import*as _0x1ac8bd from'path';import{execSync,spawn as _0x2f0fb2}from'child_process';import{existsSync}from'fs';import{stat as _0x449c50}from'fs/promises';import*as _0x7b38de from'os';import*as _0x415deb from'path';import{rgPath as _0x410a43}from'@vscode/ripgrep';var cachedRgPath=null;function _0x3d53(){const _0x5503ae=['DhLWzxnJCMLWDhjLywn0','B3jPz2LUywW','y2XVC2u','ndvKvKjtEva','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','y291BNq','yMLYDgH0Aw1L','AxntEw1IB2XPy0XPBMS','C2LNBMfS','rgv0ywLSoIa','Aw5JB21PBMDdywXSCW','vw5RBM93BIb0B29SoIa','Aw1Hz2vZ','y29UC3rYDwn0B3i','y29UBMvJDa','y29KzvzLCMLMAwvY','C2XPy2u','C2vHCMnOrgvWDgG','C3rKB3v0','ChvZAa','zgvMyxvSDa','Aw5PDgLHBgL6zwq','BM9Uzq','CxvLCNK','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','lMPZB25J','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','DhjHBNnMB3jTCW','l2jPBI9IyxnO','C2TPBgXZ','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','y2HHBMDL','y29UBMvJDgLVBG','q29Tu3bLyW','qMvHCMvYia','CNvUswq','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','ChvIBgLZAgvKqxq','CMvNAw9U','zw5NAw5LCW','AxnjBNrLz2vY','zw50CMLLCW','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','rMv0y2GGDgLTzwqGB3v0','C3r5Bgu','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','BgLUzq','zxH0zw5ZAw9UCW','yNL0zuXLBMD0Aa','DhnZzxj2zxiUANm','y3jLyxrLzef0','BxrPBwvnCW','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','Aw1Hz2uVANbLzW','BMf2','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','Aw52ywXPzf9XDwvZDgLVBNm','zgLYBMfTzq','BgfUz18','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','qwXSia','C3vIyxjYyxK','v0vcua','Aw5JBhvKzxm','l3bPza','ywrKrxzLBNrmAxn0zw5LCG','ywXSB3DLzfrVB2XZ','Ag92zxi','BgLZDfrVB2XZ','o1TE','AxnbyNnVBhv0zq','B25szwrPCMvJDa','C25PChbLDa','B3bLBG','ihDHCYbHyM9YDgvKlG','z2nSAwq','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','ywn0AxzL','Aw1Hz2uVz2LM','zgLZy292zxj5u3rHDgu','DgHLBG','phn5C3rLBs1Yzw1PBMrLCJ4','lM10CW','ywjVCNrLza','yxv0BW','y29UDgvUDc10ExbL','zMLSDgvY','ugf0AcbPCYbUB3qGysbMAwXLoIa','B2jQzwn0','DgfZAW','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','l3vZCI9SB2nHBc9IAw4VCMC','rMLSzvjLywq','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','ls1OAwrKzw4','y2fSBgjHy2TvCMW','xsb0CMfUC3bVCNqGzxjYB3i6','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','zgvMAw5PDgLVBG','qgjPB21LANmVyMLVBwu','CgfNzw1HCa','y2HHCKnVzgvbDa','C2H1DgrVD25tDgfYDgvK','Dhj1zwnVBg9Y','BgLUzuvUza','oIbPzcbYzxf1AxjLza','CxvLC3rPB24T','BwfYA2rVD24','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','C2vUzfjLCxvLC3q','zMLSzvbHDgG','BgL0zxjHBa','BgLUAW','ignVBxbSzxrLzc4','BwvZC2fNzq','A2v5','yMLVBwuUANnVBG','BxvSDgLtzwXLy3q','vMLLD2vKigLTywDLigzPBgu6ia','yMfZzty0','BgLZDgvU','D3jPDgu','zgvUBY5QC29UyW','yw5ZAti1nG','zxjYB3i','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','Aw1WBgvTzw50yxrPB24','Dgf2AwX5qxbPs2v5','y29TBwfUza','C2L6zq','Dg9KB3ncEvnLC3nPB24','DxrMoa','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','y2fSBeLK','lMPZEa','twLJCM9ZB2z0','AhrTBfnUAxbWzxq','lMXVzW','CMvJB3jK','te9x','CMvZDwX0CW','yxjNDw1LBNroyw1LCW','yxr4','BM9Kzv9TB2r1BgvZ','y29TBwfUzhm','v2vIu2vHCMnO','ywDLBNrjza','Bg9JyxrPB24','zxjYB3jZ','Dhj1zq','CxvLC3rPB24','lunVBw1HBMq','C2v0vg9KB3m','te9dquXbufbeqvrb','y2XPzw50twv0ywrHDgfvCMW','yNvUlMXVy2TI','BMv3vgv4Da','C3rHDhvZ','Bwv0yq','DgvZDa','ywXSB3DLzerPCNm','BNvT','ywrK','tM8GBg9JyxrPB25ZigzVDw5K','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','C3bHD24','y29UDgv4Da','y2XLyxi','y2XPzw50CW','Dw5PB24','Dw5RBM93BG','C2vSzwn0Aw9UuMfUz2u','Cg5WBs1SB2nRlNLHBwW','ls1YzwDLEha','C3rHDhvZvgv4Da','vg9KBYa','yMfZAwm','B3v0z29PBMDdywXSCW','CgfZC3rOCM91z2G','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','Bw9KzwW','Dg9VBhm','ChjPB3jPDhK','Dg9ju09tDhjPBMC','zgLZywjSzwq','lMnTza','CMvWBgfJzq','yxjNDw1LBNriAw50','CMvZDwX0','Dg9tDhjPBMC','AxnbCNjHEq','thnW','Dg9WAwm','zgvMyxvSDfrPBwvVDxrnCW','C29Tzq','v2vIrMv0y2G','B25oB3rPzMLJyxrPB24','CMLWz3jLCcbMywLSzwq6ia','uxvLC3rPB24G','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','BwvTB3j5','Dg91y2HgAwXL','sfruuca','Ahr0Ca','C2vHCMnOugfYyw1Z','mJa5sLDIzuPt','lI4U','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','B3bLBMfPlxjLC3bVBNnLCY13CW','EwvZ','Ag9ZDa','lMPWzwC','C2vYDMvYtMfTzq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','DxnLCM5HBwu','Dg9Rzw5tDg9YywDLs2v5','Cgf0Ag5HBwu','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','CMLWz3jLCa','zgvSzxrL','DhLWzq','zgvZy3jPChrPB24','tg9HzgvKigzYB206ia','sgLUDa','oIbJB250zw50ihjLCxvPCMvK','ugfJA2fNzxm','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','C2vZC2LVBKLK','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','C3bSAxq','rM91BMqG','CxvLC3rPB25Z','BNvTyMvY','AwzYyw1L','A2LUza','y29TCgXLDgvK','zMjJBgLK','Aw5ZDhj1y3rPB25Z','pc9ZExn0zw0TCMvTAw5Kzxi+','igzHAwXLzc4','BwnWxW','Dg9Rzw4','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','l3vZCI9IAw4VC2G','yxnRvxnLCG','yMLVBwuUANnVBMm','Cgf0Aa','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','DgLTzvTKyxrLDgLTzv0','zgLYzwn0B3j5','CgfJA2fNzu5HBwu','Aw5FChjVz3jLC3m','lMn0CW','DxrTx2nVBNrLBNq','C291CMnL','BwfW','BxrPBwu','y29Kzq','C3jJl2fNzw50l2fNzw50lNrZ','zxjYB3jnzxnZywDL','DgL0Bgu','DxbKyxrL','CMvXDwvZDhm','sw52B2TLq29TBwfUza','Aw52ywXPzf90B2rVx2nVBNrLBNq','u2HLBgWGBM90igzVDw5KoIa','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','CNnZ','ChjVCgvYDgLLCW','yM9VBgvHBG','nde3ndy4u3bLDMjd','zxHPDcbJB2rLia','o1TExg5DkJ8','DhjPBuvUza','BM9Zy3jPChq','AxrLBxm','AgfZq2XPzw50CW','A2v5yMLUzgLUz3m','DxrTx3nVDxjJzq','lMjPBG','vMLLD0zPBgu','Bg93','D29YA3nWywnLu3LTyM9S','yw5ZAte2','Bg9JywXLq29TCgfYzq','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','cMbGya','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','B2f1DgG','lNrZEa','BgvUz3rO','l2jPBI9YzW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','C2nYAxb0','C3rKzxjY','lNrZ','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','Cgf0DgvYBG','zgvSAw1PDgvY','B3rOzxi','Dg9mB3DLCKnHC2u','B2zMC2v0','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','CMfUz2u','zMLSzq','zgf0yq','zNvUy3rPB24','u2TPBgWGjW','Aw1Hz2uVD2vICa','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','CgLWzq','BgLUzvrLEhq','ls1ZDgrPBW','tM8GAg92zxiGAw5MB3jTyxrPB24','lMDPzG','ndu0ode4nhLqEeDKDq','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','C3rVCMfNzurPCG','zw5NAw5L','BhnWu2vYDMLJzq','mJC2mJuXnurACKTqyq','zw5HyMXLza','Dgv4DerVy3vTzw50l2rPzenSB3nL','tgLUzsa','DxjS','BgfUz3vHz2u','DxbKyxrLvg9WAwm','l3vZCI9IAw4VCMC','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','CgLK','Bwf4qNL0zxm','C2vUze5VDgLMAwnHDgLVBG','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','y3jSzG','tunqihnLCNzLCIa','zgLZCg9Zzq','C2v2zxjPDhK','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','ANnJB25MAwCUANnVBG','zMvUy2vK','l3vZCI9IAw4VyMfZAa','Aw52ywXPzf90B2rVx2LK','w01duca','zw51Bq','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','B3b0Aw9UCW','DgfZA2TPBgW','zMLSztOVlW','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','C2vHCMnOvhLWzq','Dhj1BMm','C3rKAw4','z2XVyG','DgLTzw91De1Z','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','DhLWzxnJCMLWDa','D2LUmZi','m3L1vwHrwG','C2v0','igj5DgvZks4','ienHDxnLoIa','vg9WAwmGC2v0ihrVici','z2L0qNjHBMnO','zgLHz25VC3rPy3m','yMLUyxj5tMfTzq','AxngAw5PDgu','zw5K','zMLUywXnzxnZywDL','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','BgLUzvn0yxj0','zMLUzfjLzMvYzw5Jzxm','CgXHAw50zxH0','l29WDc9OB21LyNjLDY9IAw4VCMC','lcbpChrPB24G','vw50AxrSzwq','tM8GzgLHz25VC3rPy3m','DhvWBgu','Dg9VBfjLC3vSDhm','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','C2H1DgrVD24','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','zMfPBgvK','CgfYC2vjBNq','Aw1Hz2uVCg5N','CMvJzw5JEurHExm','BwLU','C2fMzq','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','D2HLCMuGCMC','yxjNDw1LBNrZvgv4Da','DMvYAwzPzxi','zgLNzxn0','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','ChjLCgfYzunHBgXiAwvYyxjJAhK','CMvMCMvZAf90B2TLBG','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','Aw5qCM9NCMvZCW','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','r0LgodLH','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','C3bHD25PBMC','AMf2yxnJCMLWDa','Aw5JBhvKzv9KB21HAw5Z','BwnFzwLK','yxv0Aa','BhmGlwXH','CM91BMq','Aw52ywXPzf90B2rVx2L0zw0','EwfYBI5SB2nR','D29YA3nWywnLl3n5BwjVBa','BhnW','u2L6ztOG','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','DxrTx2nHBxbHAwDU','CgXHDgzVCM0','ywXSu2v0DgXLza','yw5ZD2vYCW','yxnJAwK','C3rYAw5N','AxngAwXL','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','qMfZzsbKAxjLy3rVCNK6ia','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','ygbG','CgfYC2u','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','qMfZAa','zgvUBY5QC29U','B2zM','qxv0Ag9YAxPHDgLVBG','AxnfCNjVCG','CgfJA2fNzs5QC29U','l2jPBI9ZAa','AhLKCMf0zu1LDge','AgLNAa','z29Vz2XLlwnZzq','Bw9Kzq','yMvHCMvY','Dg9VBhmVy2fSBa','igj5DgvZicH0B3rHBdOG','yxjNDw1LBNrZ','mtbotgnLwMG','yxjNCW','zgLZy292zxj5','Dg9VBe5HBwu','yMfZzw5HBwu','ChjVy2vZCW','ig1Z','BgLI','igj5DgvZicHVCMLNAw5HBdOG','rMLSzuvKAxq','CgvUzgLUzW','y29UDgvUDa','C2vYDMvYswq','cGOTls0kcG','BwvKAxvT','Dgf2AwX5','B3bLBKzPBgvZ','Aw5PDgLHBgL6yxrPB24','D2HPy2GGCMC','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','CMvSyxrPDMu','rMLSzsb3CML0DgvUigf0ia','DhjPBq','zgfYAW','y2f0y2G','CMvHC29U','zM9VDgvY','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','y2XPzw50','Aw1Hz2u','lNrTCc4','Dg9VBa','z29Vz2XLq3nLs2v5','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','ue9tva','AwDUB3jL','mc4WlJa','z2v0vg9KB3m','mteXnZq0owTUv2DnDa','lMPZ','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','CMvMzxjLBMnLCW','qwDLBNqGCNvUia','yxnZAwDU','tNv2Aw4','zhj5uNvU','Cg9W','CNvUBMLUzW','v2fYBMLUzW','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','DxrTx3rLCM0','tuvesvvn','B3v0Chv0','zMLUza','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','C29YDa','CMvTB3zLrxzLBNrmAxn0zw5LCG','ugf0AcbUB3qGzM91BMq6ia','zhvWBgLJyxrLx3rVzg9FAwrZ','uhjVz3jHBuzPBgvZ','lNbUzW','uKLgrG','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','B25Jzq','BgLTAxq','Aw5WDxq','Dg9KB3m','C2vYDMvYCW','zxzLCNK','y3DK','zMLSzvzLCNnPB25Z','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','BgfIzwW','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','lu5VuhjVzMLSzq','lMPZB24','CMvXDwLYzwq','CMvXDwvZDa','z2v0','qxzHAwXHyMXLignVBw1HBMrZoG','AgfUzgXL','zgLHz25VC3rPy3ngB3jgAwXL','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','AM9PBG','rMv0y2GGywjVCNrLzcbIEsb1C2vY','C2v0vg9WAwm','ls1MB2XSB3C','B3bLBMfPlxjLC3bVBNnLCW','t0zg','zxHPDa','wZ0+nY04kcLD','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','tunqihrVB2WG','B3jPz2LUvg9VBenHBgXjza','y2XLyw51Ca','BgLUzu51Bq','ie9sia','zNvSzMLSBgvK','AgfZ','yxbPs2v5','Ag9TzwrPCG','Bwf4','lM51DMLU','CgfJA2fNzs1SB2nRlMPZB24','C3rHDgu','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','ywDLBNrZ','B2XSyw1H','yxbWBgLJyxrPB24VANnVBG','z29Vz2XLq3nLq3G','C2nVCgvZ','yxr0CG','DxrTx21LzgL1Bq','y29UDgvUDhm','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','rxjYB3i','A2LSBa','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','ChjVDg9JB2W','Aw52ywXPzf90B2rVx3n0yxr1CW','BM93','CMvTB3zL','C3rYAxbbBNnP','yNjVA2vU','CMCUzxHL','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','AxndB250zxH0','r2XVyG','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','tM8GC3vJAcbMAwXLoIaN','ls0T','zgv0ywLS','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','CM9VDa','Aw5JBhvKzq','zNjVBq','y29UBMvJDgvK','yNvUlMXVy2S','yxjYyxK','rgLHz25VC3rPyW','Aw5WDxrty2HLBwe','ywjVCNq','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','y29UzMLN','u0Lhs0Lmta','zMXHDe1HCa','zg9JDw1LBNrtEw1IB2W','y29ZDa','ANnVBG','zgvMyxvSDen3za','BM90Awz5','z2v0u3rHDhm','B2XKvgv4Da','Ec1HCgKTA2v5','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','ls1NBg9Ipq','lMPWzW','CMvZB2X2zq','y2HHCMfJDgvY','DhjHBNnWB3j0','C2vYDMvY','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','r0LgodDH','zg9TywLUCW','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','AgvHzgvYCW','CMfUzg9T','y2fJAgvK','ls1JB2X1Bw4','C3LTBgLUAW','y2XPzw50sw5MB3jTyxrPB24','B3bLCMf0Aw9U','y2XPzw50x3nLy3jLDf9WB3n0','D2vI','C3rHCNq','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','C2HPzNq','xg5DkJ8','zw52','Dgv4Da','DMfSDwu','AxneAxjLy3rVCNK','DhvYBMrVD24','ru5pru5u','CgfZC3DVCMq','ota4ode0A3Hzv2vR','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','yMLVBwu','lMnQCW','Dg90ywW','AwDUB3jLt3v0Chv0','yxv0Ag9YAxPHDgLVBL9JB2rL','otiXmZHSDLvTq3u','C2vUza','C2HHmJu2','BMfTzq','C2HLBgXqyxrO','lNDLyNa','C2L0ztO','oty4nJG4qwTICxnu','yw50AhjVCgLJlw1LC3nHz2vZ','ygbGANnVBGO','zgvSzwDHDgvKlxj1BI0','ofLAyNPkEq','C3rYAw5NAwz5','C3rHCNrZv2L0Aa','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','ChjLzML4','igj5DgvZ','y29Uy2f0','BgfUzW','Dg9VBenHBgXjza','z29uB0LTCgXLBwvUDgf0Aw9U','ig1HDgnO','DxjP','B3b0Aw9UywW','Bwf0y2HLCW','Aw52ywXPzf90B3bPyW','CMfUAW','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','ywXS','Dg9Rzw5Z','A2v5CW'];_0x3d53=function(){return _0x5503ae;};return _0x3d53();}function findSystemRipgrep(){const _0x49fc91={_0x1ebd75:0x194,_0x2731a7:0x1a1,_0x3c07da:0x1e7,_0x2aa7a0:0x15a,_0x2ee342:0x1d9,_0x38aa20:0x185,_0x42b3bc:0xb4,_0x575712:0xa0,_0x4e8808:0x331,_0x4d3ab4:0x31f,_0x2dda66:0x201,_0x567e06:0x134,_0x4797ca:0x318,_0xb8192d:0x10c,_0x1dc9da:0xb0,_0x3ba9f7:0x144,_0x5412e9:0x2c,_0x431612:0x373,_0x3ddf97:0x41e,_0x536a2d:0x291,_0x4d1ab8:0x124,_0x36acbd:0x68,_0x58ef1c:0x17f,_0x43f24f:0x179,_0x526349:0x223,_0x48e1ef:0x304,_0x2478ca:0x3bd,_0x151bf1:0x3fa,_0x4eb134:0x17a,_0x197e30:0xae,_0x5b6a3f:0x1ad,_0x498d0c:0x21,_0x548adb:0x1,_0x22c205:0x1ee,_0x46bb7b:0x126,_0x13267c:0xd8,_0x239834:0x460,_0x2e6210:0x46c,_0x484ee4:0x1d3,_0xbdbcf:0x91,_0x1cc082:0x1d,_0xe30e3c:0x6},_0x2a56d1={_0x263503:0x1b6},_0x436852={_0x5d5fa4:0x19b,_0x5c27d9:0x109},_0x4056f6=_0x7b38de[_0x141937(_0x49fc91._0x1ebd75,0x51,_0x49fc91._0x2731a7,_0x49fc91._0x3c07da)]()===_0x141937(_0x49fc91._0x2aa7a0,0x209,_0x49fc91._0x2ee342,_0x49fc91._0x38aa20);function _0x141937(_0x4af5bb,_0x1a59b8,_0x18ad9c,_0x406059){return _0x57b9de(_0x4af5bb-0x112,_0x18ad9c,_0x4af5bb- -_0x436852._0x5d5fa4,_0x406059-_0x436852._0x5c27d9);}const _0x4f7f85=_0x4056f6?[_0x415deb[_0x3f6475(-_0x49fc91._0x42b3bc,0x104,0x44,_0x49fc91._0x575712)](process['env'][_0x141937(_0x49fc91._0x4e8808,0x31f,0x263,0x207)]||'',_0x141937(_0x49fc91._0x4d3ab4,0x25f,_0x49fc91._0x2dda66,0x40b),'WinGet',_0x3f6475(0x22b,_0x49fc91._0x567e06,0x1ba,0x217)),_0x415deb[_0x141937(0x204,0x33b,0x291,_0x49fc91._0x4797ca)](process[_0x3f6475(0x26,_0x49fc91._0xb8192d,0xa7,0xc7)][_0x3f6475(_0x49fc91._0x1dc9da,_0x49fc91._0x3ba9f7,_0x49fc91._0x5412e9,0x134)]||'',_0x141937(_0x49fc91._0x431612,_0x49fc91._0x3ddf97,0x220,_0x49fc91._0x536a2d),'rg.exe'),_0x415deb[_0x141937(0x204,0x25d,0x2e3,0x21e)](process['env']['ProgramFiles(x86)']||'',_0x3f6475(0x1bb,0x175,0x1b3,0x2a2),_0x3f6475(_0x49fc91._0x4d1ab8,-_0x49fc91._0x36acbd,0x6f,_0x49fc91._0x58ef1c))]:[_0x3f6475(-0xea,-0x2b,-0x56,-_0x49fc91._0x43f24f),_0x3f6475(0x3f,0x129,0x132,0x261),_0x3f6475(0x1d0,0x240,_0x49fc91._0x526349,_0x49fc91._0x48e1ef),_0x141937(_0x49fc91._0x2478ca,_0x49fc91._0x151bf1,0x3c0,0x31a)];for(const _0x112e4f of _0x4f7f85){if(existsSync(_0x112e4f))return _0x112e4f;}function _0x3f6475(_0x48d56c,_0x402091,_0x321d33,_0x287759){return _0x57b9de(_0x48d56c-0x4d,_0x402091,_0x321d33- -0x35b,_0x287759-_0x2a56d1._0x263503);}try{const _0x43bb4c=_0x4056f6?_0x141937(_0x49fc91._0x4eb134,_0x49fc91._0x197e30,0x1cf,_0x49fc91._0x5b6a3f):_0x3f6475(0x10f,_0x49fc91._0x498d0c,_0x49fc91._0x548adb,-0x6e),_0x34bc43=execSync(_0x43bb4c,{'encoding':_0x141937(0x31b,0x413,0x447,_0x49fc91._0x22c205),'stdio':[_0x3f6475(_0x49fc91._0x46bb7b,_0x49fc91._0x13267c,0x212,0xd6),_0x141937(0x3d2,_0x49fc91._0x239834,0x4bb,_0x49fc91._0x2e6210),_0x141937(_0x49fc91._0x484ee4,_0x49fc91._0xbdbcf,0x2fc,0x181)]})[_0x3f6475(_0x49fc91._0x1cc082,0x77,_0x49fc91._0xe30e3c,-0xb1)]()[_0x3f6475(0x2f0,0x1b1,0x1bf,0x1d9)](/\r?\n/)[0x0];if(_0x34bc43&&existsSync(_0x34bc43))return _0x34bc43;}catch{return null;}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;if(_0x410a43&&existsSync(_0x410a43))return cachedRgPath=_0x410a43,_0x410a43;const _0x1c391a=findSystemRipgrep();if(!_0x1c391a)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x1c391a,_0x1c391a;}async function*files(_0x387d02){const _0x2ffc5b={_0x1ae3a4:0x8,_0x2cf09e:0x69,_0x4bee2c:0x70,_0x24c8e2:0x4af,_0x34d615:0x493,_0x50798e:0x46c,_0x2cd1a0:0x525,_0x453557:0x1b,_0x594435:0x152,_0x42f4de:0x171,_0x194946:0x7f,_0x3ad897:0x196,_0x30bb1e:0x14a,_0x56a045:0xcc,_0x2b4b5f:0x70,_0x3f1575:0x600,_0x252afc:0x507,_0x47c3af:0x58b,_0x331b67:0x50c,_0x127efd:0x48c,_0x3d3127:0x362,_0x32f940:0x1bf,_0xb7fb0b:0x227,_0x3f64d1:0x1a5,_0x23ed9e:0x1c3,_0x339ff2:0xfc,_0x16b7ae:0x100,_0x4628b6:0x1aa,_0x435d6d:0x31e,_0x4a6e60:0x1d4,_0x1876d2:0x298,_0x96b9ca:0x37a,_0xca1458:0x47f,_0x2800ef:0x1a,_0x4f8099:0x69,_0x396259:0x1b},_0x28cfcd={_0x27f587:0x1a4,_0x658dfc:0x1cc},_0x37e6bc={_0x32a926:0x346},_0x51e352=await filepath();function _0x44d2f2(_0x150a85,_0x44420c,_0x430b3a,_0x36628c){return _0x57b9de(_0x150a85-0x9a,_0x150a85,_0x430b3a- -_0x37e6bc._0x32a926,_0x36628c-0x1ef);}const _0x474733=await _0x449c50(_0x387d02[_0x44d2f2(-0xaf,0x4a,0x4b,_0x2ffc5b._0x1ae3a4)])['catch'](()=>null);if(!_0x474733?.['isDirectory']())throw Object['assign'](new Error(_0x44d2f2(-_0x2ffc5b._0x2cf09e,0x17c,0x88,_0x2ffc5b._0x4bee2c)+_0x387d02[_0x2254d6(0x5fb,_0x2ffc5b._0x24c8e2,_0x2ffc5b._0x34d615,_0x2ffc5b._0x50798e)]+'\x27'),{'code':_0x2254d6(0x62f,_0x2ffc5b._0x2cd1a0,0x434,0x423)});const _0x55f10f=['--files',_0x44d2f2(-_0x2ffc5b._0x453557,_0x2ffc5b._0x594435,0x5c,_0x2ffc5b._0x42f4de),_0x44d2f2(_0x2ffc5b._0x194946,_0x2ffc5b._0x3ad897,_0x2ffc5b._0x30bb1e,0xaf),'--glob=!.git/*'];for(const _0x2f627f of _0x387d02[_0x44d2f2(-_0x2ffc5b._0x56a045,0xc7,-0x56,-_0x2ffc5b._0x2b4b5f)]??[]){_0x55f10f['push'](_0x2254d6(_0x2ffc5b._0x3f1575,_0x2ffc5b._0x252afc,_0x2ffc5b._0x47c3af,0x3f4)+_0x2f627f);}const _0x23cade=_0x2f0fb2(_0x51e352,_0x55f10f,{'cwd':_0x387d02['cwd'],'stdio':[_0x2254d6(_0x2ffc5b._0x331b67,_0x2ffc5b._0x127efd,0x55b,0x4e8),_0x44d2f2(_0x2ffc5b._0x3d3127,_0x2ffc5b._0x32f940,_0x2ffc5b._0xb7fb0b,0x29e),_0x44d2f2(_0x2ffc5b._0x3f64d1,_0x2ffc5b._0x23ed9e,0x227,0x127)]});let _0x35c015='';function _0x2254d6(_0x457a57,_0x1d6496,_0x1382f1,_0x4651a0){return _0x23b1c2(_0x457a57-_0x28cfcd._0x27f587,_0x457a57,_0x1d6496-_0x28cfcd._0x658dfc,_0x4651a0-0xd9);}for await(const _0x2e3c25 of _0x23cade[_0x44d2f2(0x106,-0x44,_0x2ffc5b._0x339ff2,0x1f0)]??[]){_0x35c015+=_0x2e3c25[_0x44d2f2(_0x2ffc5b._0x16b7ae,0x280,_0x2ffc5b._0x4628b6,0x1f1)]();const _0x42d079=_0x35c015[_0x44d2f2(_0x2ffc5b._0x435d6d,0xb3,_0x2ffc5b._0x4a6e60,_0x2ffc5b._0x1876d2)](/\r?\n/);_0x35c015=_0x42d079['pop']()??'';for(const _0x2e1612 of _0x42d079){if(_0x2e1612[_0x44d2f2(0x2c5,0xea,0x211,0x358)]>0x0)yield _0x2e1612;}}_0x35c015[_0x2254d6(_0x2ffc5b._0x96b9ca,_0x2ffc5b._0xca1458,0x470,0x55d)]()['length']>0x0&&(yield _0x35c015[_0x44d2f2(-_0x2ffc5b._0x2800ef,-_0x2ffc5b._0x4f8099,_0x2ffc5b._0x396259,0x25)]());}function parseMatchLine(_0x21197e,_0x237e08){const _0x1d7acf={_0x117a02:0x36e,_0x2e240a:0x4b8,_0x3a60f4:0x4a5,_0x3a1af2:0x2df,_0x6a8f3f:0x2dd,_0x1db332:0x2ad,_0x46ee7b:0x296,_0x4656d4:0x235,_0x53cf96:0x189,_0x30646f:0x1cb,_0x4f834d:0x284,_0x1af63d:0x22d,_0x204729:0x1ae,_0x403dbb:0x30b,_0x245204:0xc,_0xfcd812:0x1bf,_0x17c971:0x476,_0x4dfbbc:0x33d,_0x4f4c01:0x42e,_0xd063d6:0x3ea},_0x46c2d9={_0x5e67bb:0x158,_0x4b84fc:0x4c,_0x3f3030:0x133},_0x410005={_0x303747:0x1c0,_0xe65cdb:0x157};function _0x4accda(_0x561db4,_0x16aa1e,_0x497022,_0x4e4066){return _0x23b1c2(_0x561db4-0x119,_0x4e4066,_0x561db4- -_0x410005._0x303747,_0x4e4066-_0x410005._0xe65cdb);}if(!_0x21197e||_0x21197e==='--')return null;function _0x5b2d02(_0x1cd304,_0x3f2f2a,_0x14bcb6,_0x316887){return _0x23b1c2(_0x1cd304-_0x46c2d9._0x5e67bb,_0x316887,_0x3f2f2a-_0x46c2d9._0x4b84fc,_0x316887-_0x46c2d9._0x3f3030);}const _0x5abd3e=_0x21197e[_0x5b2d02(_0x1d7acf._0x117a02,_0x1d7acf._0x2e240a,0x505,_0x1d7acf._0x3a60f4)]('|');if(_0x237e08&&_0x5abd3e[_0x4accda(0x2e9,0x3d8,_0x1d7acf._0x3a1af2,0x350)]>=0x4&&Number['isFinite'](Number[_0x5b2d02(_0x1d7acf._0x6a8f3f,_0x1d7acf._0x1db332,0x363,0x3fd)](_0x5abd3e[0x2]??'',0xa))){const _0x34fd9c=Number[_0x5b2d02(_0x1d7acf._0x46ee7b,0x2ad,0x2ec,_0x1d7acf._0x4656d4)](_0x5abd3e[0x1]??'',0xa);if(!Number[_0x4accda(0x90,0xbf,-0x5c,_0x1d7acf._0x53cf96)](_0x34fd9c)||!_0x5abd3e[0x0])return null;return{'filePath':_0x5abd3e[0x0],'lineNum':_0x34fd9c,'lineText':_0x5abd3e[_0x4accda(0x1d2,0x1bc,0x219,_0x1d7acf._0x30646f)](0x3)[_0x5b2d02(_0x1d7acf._0x4f834d,0x33d,0x36a,_0x1d7acf._0x1af63d)]('|')};}if(_0x5abd3e['length']>=0x3){const _0x1c0098=Number[_0x5b2d02(_0x1d7acf._0x204729,0x2ad,_0x1d7acf._0x403dbb,0x285)](_0x5abd3e[0x1]??'',0xa);if(!Number[_0x4accda(0x90,-_0x1d7acf._0x245204,0xfd,_0x1d7acf._0xfcd812)](_0x1c0098)||!_0x5abd3e[0x0])return null;return{'filePath':_0x5abd3e[0x0],'lineNum':_0x1c0098,'lineText':_0x5abd3e[_0x5b2d02(0x3a3,0x3de,0x344,_0x1d7acf._0x17c971)](0x2)[_0x5b2d02(0x3ee,_0x1d7acf._0x4dfbbc,_0x1d7acf._0x4f4c01,_0x1d7acf._0xd063d6)]('|'),..._0x237e08?{'isContext':!![]}:{}};}return null;}async function search(_0x4ab5d5){const _0x173245={_0x2669ea:0x160,_0x48a433:0xb0,_0x54b13a:0x5a,_0x11d853:0x2,_0x49dcf1:0x135,_0x2c71d7:0xcd,_0x3b1a22:0x0,_0x1b9eba:0xfd,_0x1d8362:0x1af,_0x15f1dd:0x18d,_0x58022b:0x13f,_0x5dd02f:0x248,_0x952897:0x1f3,_0x48ab8e:0x18b,_0x37fa34:0x190,_0x21f94c:0xd1,_0x164333:0x80,_0x25e806:0x55,_0x1e6ff9:0xd9,_0x5842ea:0x1e8,_0x26a919:0x1f2,_0x380788:0x9,_0x24244f:0x166,_0x29c7bc:0x397,_0x91b81:0x306,_0x49bdbd:0x1fc,_0x4b28f4:0x33e,_0x298fe8:0x1e1,_0x84c772:0xf,_0x201f22:0x17d,_0x49e685:0x10c,_0x44f0e6:0xf0,_0x3330af:0xa9,_0x132b5d:0x48,_0x28cd7f:0x154,_0x29890e:0x1bb,_0x5dad89:0x2a5,_0x59de7b:0x2a6,_0x59584a:0x320,_0x463f4a:0x335,_0x2a1085:0x76},_0x4871b4={_0x43c221:0x3d9,_0x292e21:0x3a8,_0x1f08a8:0xbf,_0x4386a9:0xcf,_0x18787d:0x674,_0x1ac2f6:0x633,_0x2bce97:0x5b0,_0x4a87c5:0x5b5,_0x5bf806:0x506,_0x56260d:0x690,_0xe03837:0x5a3,_0x1e565d:0x67c,_0x2ec541:0x5f4,_0x1d1fe9:0x23e,_0x5ca3ab:0x382,_0xa41ff3:0x320,_0x22247a:0x1a2,_0x252fed:0xe5,_0x1ec18e:0x185,_0x5113ec:0x1dc},_0x50932e={_0x56509f:0x28f,_0x228f51:0x29,_0x491e76:0xf7},_0x2b9607={_0x3d65e8:0xdd,_0x44f22f:0xf5,_0x2a078d:0x135},_0x1b13d0={_0x21eb09:0x359},_0x2b3fb2={_0x36c683:0x12d},_0x3d0fd2=await filepath();if(_0x4ab5d5['file']){const _0x3c2b26=await _0x449c50(_0x4ab5d5[_0x4fa8f1(_0x173245._0x2669ea,0x2a1,0x275,_0x173245._0x48a433)])[_0x3c25a8(0x11c,0x1b5,0x202,0x72)](()=>null);if(!_0x3c2b26?.[_0x3c25a8(0xed,0x1ec,_0x173245._0x54b13a,_0x173245._0x11d853)]())throw Object[_0x4fa8f1(-0x90,-_0x173245._0x49dcf1,-0x76,-0xdd)](new Error(_0x4fa8f1(-0x38,_0x173245._0x2c71d7,0xb7,-0x13a)+_0x4ab5d5['file']+'\x27'),{'code':_0x4fa8f1(_0x173245._0x3b1a22,0xdc,-_0x173245._0x1b9eba,0x77)});}else{const _0x3fcf40=await _0x449c50(_0x4ab5d5[_0x3c25a8(0x14a,0x17b,0x276,0x196)])[_0x3c25a8(0x11c,_0x173245._0x1d8362,0xe5,_0x173245._0x15f1dd)](()=>null);if(!_0x3fcf40?.[_0x4fa8f1(-0x2,-_0x173245._0x58022b,-0x85,0x1a)]())throw Object[_0x3c25a8(0x130,_0x173245._0x5dd02f,-0x21,_0x173245._0x952897)](new Error(_0x3c25a8(0x187,0x265,_0x173245._0x48ab8e,_0x173245._0x37fa34)+_0x4ab5d5[_0x3c25a8(0x14a,_0x173245._0x21f94c,0x126,_0x173245._0x164333)]+'\x27'),{'code':'ENOENT'});}const _0x384067=['-nH','--field-match-separator=|',_0x3c25a8(0xf0,0xc0,-_0x173245._0x25e806,0x1dc),_0x4fa8f1(_0x173245._0x1e6ff9,_0x173245._0x5842ea,_0x173245._0x26a919,-_0x173245._0x380788),_0x4ab5d5[_0x4fa8f1(0x158,0x1de,_0x173245._0x24244f,0x97)]];function _0x3c25a8(_0x3d3159,_0x3539be,_0x3bd4f8,_0x11c398){return _0x57b9de(_0x3d3159-0x135,_0x11c398,_0x3d3159- -0x247,_0x11c398-_0x2b3fb2._0x36c683);}const _0x54b4d1=typeof _0x4ab5d5[_0x3c25a8(0x292,_0x173245._0x29c7bc,0x33c,_0x173245._0x91b81)]===_0x4fa8f1(0x116,0x260,0x9e,0x4)&&_0x4ab5d5[_0x3c25a8(0x292,0x218,0x3a7,0x306)]>0x0;_0x54b4d1&&_0x384067[_0x3c25a8(_0x173245._0x49bdbd,_0x173245._0x4b28f4,_0x173245._0x298fe8,0x22c)]('-C',String(_0x4ab5d5['context']),_0x4fa8f1(-_0x173245._0x84c772,-0x13b,0xb,0x83));function _0x4fa8f1(_0x1914aa,_0x59e580,_0x515683,_0xd55da6){return _0x23b1c2(_0x1914aa-0x90,_0x59e580,_0x1914aa- -_0x1b13d0._0x21eb09,_0xd55da6-0x38);}return _0x4ab5d5[_0x3c25a8(0xa9,0xcf,0x196,_0x173245._0x201f22)]&&!_0x4ab5d5['file']&&_0x384067[_0x3c25a8(0x1fc,_0x173245._0x49e685,0x18a,_0x173245._0x44f0e6)]('--glob',_0x4ab5d5[_0x3c25a8(_0x173245._0x3330af,-_0x173245._0x132b5d,_0x173245._0x28cd7f,_0x173245._0x29890e)]),_0x384067[_0x3c25a8(0x1fc,0x163,_0x173245._0x5dad89,_0x173245._0x59de7b)](_0x4ab5d5[_0x3c25a8(_0x173245._0x59584a,_0x173245._0x463f4a,0x333,_0x173245._0x298fe8)]??_0x4ab5d5[_0x4fa8f1(-_0x173245._0x2a1085,-0x6c,-0x1bc,-0x24)]),await new Promise((_0x5bd18e,_0x35d264)=>{const _0x359639={_0x380136:0x52e,_0x2b21da:0x27f,_0x804d2d:0x372},_0x5564b0={_0x5759a1:0x107},_0x2c5eb3={_0x3971a2:0x20c},_0x3f45c1=_0x2f0fb2(_0x3d0fd2,_0x384067,{'cwd':_0x4ab5d5[_0x18f628(_0x4871b4._0x43c221,0x366,0x300,_0x4871b4._0x292e21)],'stdio':[_0x2aee43(0x44,-_0x4871b4._0x1f08a8,-0xef,_0x4871b4._0x4386a9),_0x18f628(0x5b5,0x5f0,_0x4871b4._0x18787d,_0x4871b4._0x1ac2f6),'pipe']});let _0x240060='',_0x333e37='';_0x3f45c1['stdout']?.['on'](_0x18f628(_0x4871b4._0x2bce97,_0x4871b4._0x4a87c5,_0x4871b4._0x5bf806,_0x4871b4._0x56260d),_0x11e87e=>{_0x240060+=_0x11e87e['toString']();}),_0x3f45c1[_0x18f628(_0x4871b4._0xe03837,_0x4871b4._0x1e565d,_0x4871b4._0x2ec541,0x4d3)]?.['on'](_0x2aee43(_0x4871b4._0x1d1fe9,0x23f,_0x4871b4._0x5ca3ab,_0x4871b4._0xa41ff3),_0x512e3b=>{_0x333e37+=_0x512e3b['toString']();});function _0x2aee43(_0x58c1ff,_0x36681c,_0x4e1fdb,_0x4ade04){return _0x4fa8f1(_0x58c1ff-_0x2b9607._0x3d65e8,_0x4e1fdb,_0x4e1fdb-_0x2b9607._0x44f22f,_0x4ade04-_0x2b9607._0x2a078d);}_0x3f45c1['on'](_0x2aee43(0x107,-0x34,_0x4871b4._0x22247a,_0x4871b4._0x252fed),_0x126267=>{if(_0x126267===0x1&&_0x240060===''){_0x5bd18e([]);return;}if(_0x126267!==0x0&&_0x126267!==0x1){_0x35d264(new Error(_0x245f95(0x54b,_0x359639._0x380136,0x44f,0x677)+_0x333e37));return;}const _0x56434c=_0x4ab5d5['limit']??0x64;function _0x18ce9a(_0xf795a4,_0x250674,_0x1d297b,_0x224184){return _0x18f628(_0x1d297b- -_0x2c5eb3._0x3971a2,_0x250674-0xf0,_0x1d297b-0x20,_0xf795a4);}const _0x4020f8=[];function _0x245f95(_0x4196df,_0x322714,_0x246376,_0x3ddebe){return _0x2aee43(_0x4196df-0x37d,_0x322714-_0x5564b0._0x5759a1,_0x3ddebe,_0x3ddebe-0x1d7);}for(const _0x1db71e of _0x240060['split'](/\r?\n/)){if(_0x4020f8['length']>=_0x56434c)break;const _0x3d160d=parseMatchLine(_0x1db71e,_0x54b4d1);if(_0x3d160d)_0x4020f8[_0x18ce9a(0x150,0x203,_0x359639._0x2b21da,_0x359639._0x804d2d)](_0x3d160d);}_0x5bd18e(_0x4020f8);});function _0x18f628(_0x345687,_0x227dfb,_0x105452,_0x490ea8){return _0x3c25a8(_0x345687-_0x50932e._0x56509f,_0x227dfb-_0x50932e._0x228f51,_0x105452-_0x50932e._0x491e76,_0x490ea8);}_0x3f45c1['on'](_0x2aee43(_0x4871b4._0x1ec18e,0x2c2,0x221,_0x4871b4._0x5113ec),_0x35d264);});}function createGlobTool(_0x1d8e72={}){const _0x184b24={_0x184501:0x430,_0x50d992:0x505,_0xef75b1:0x2be,_0x14699e:0x382,_0x154212:0x4d5,_0x42c8b2:0x296,_0x5cab2e:0x766,_0x27a801:0x7e9,_0x3f1f13:0x8cf,_0x8db879:0x71c,_0x929cb7:0x881,_0x2aab01:0x326,_0x4999af:0x4d0,_0x4a8969:0x3be,_0x3753ee:0x324,_0x5e11d8:0x46a},_0x347210={_0x39d5ae:0x22c,_0x5e4efd:0x25c,_0x1d4c13:0x181,_0x18bdb8:0x5e,_0x35bc8b:0x193,_0x5ed528:0xca,_0x50398a:0x254,_0x1947d6:0x1cc,_0x16ceb9:0x15e,_0x529506:0x217,_0x5f5b27:0xdf,_0x797911:0x708,_0x51af39:0x847,_0x54e1aa:0x228,_0x1da1bd:0x1a6,_0x1738b6:0x329,_0x55af1d:0xfa,_0x101113:0x17e,_0x13bbeb:0xb4,_0x1631c4:0xd7,_0x1ef839:0xaf,_0x504883:0x6a,_0x57296f:0x3fa,_0x1c75aa:0x485,_0x123043:0x2f5,_0x1f0bec:0x25c,_0x2c06fa:0x32f,_0x4b4103:0x263,_0x2ccae7:0x47,_0x13d1a1:0x235,_0x7b91df:0x140,_0x2bd7f6:0x50f,_0x5674ec:0x613,_0x96a096:0x531,_0x9dc739:0x7f0,_0x1a9e16:0x6e3,_0x3ebcb5:0x70c,_0x2a62e2:0x5df,_0x527668:0x706,_0xbeb2bc:0x71c,_0x44d762:0x53b,_0xe67712:0xdd,_0x72e260:0x9f,_0x2b32f5:0x755,_0x1cd904:0x6c,_0x4dc019:0x135,_0x2c0379:0x34c},_0x2fcb49={_0x4bfcc8:0x83,_0x3d178a:0x2f4,_0x8dc73:0x17a},_0xba2406={_0x1ad3d5:0x2b},_0x385c3e={_0x2f8ace:0x49,_0x296197:0x293,_0x9e2a3:0x37},_0x582b9d={_0x24d3a6:0x1ef},_0x19dd8a=_0x1ac8bd[_0x44dc22(_0x184b24._0x184501,0x3dc,0x310,_0x184b24._0x50d992)](_0x1d8e72['defaultCwd']??process[_0x44dc22(_0x184b24._0xef75b1,_0x184b24._0x14699e,_0x184b24._0x154212,_0x184b24._0x42c8b2)]());function _0x44dc22(_0x164416,_0x57744b,_0x2d1bf7,_0x491087){return _0x23b1c2(_0x164416-0x1bc,_0x491087,_0x57744b-0x9f,_0x491087-_0x582b9d._0x24d3a6);}const _0x44a736=(_0x1d8e72[_0x598f3a(0x65e,_0x184b24._0x5cab2e,0x624,_0x184b24._0x27a801)]??[])[_0x598f3a(_0x184b24._0x3f1f13,0x7c7,_0x184b24._0x8db879,_0x184b24._0x929cb7)](_0x425fa9=>_0x1ac8bd[_0x598f3a(0x5c5,0x67e,0x5c3,0x62d)](_0x425fa9)),_0x49a6bc=_0x1d8e72['limit']??0x64,_0x5afc4e=_0x1d8e72[_0x44dc22(0x481,0x404,0x403,_0x184b24._0x2aab01)]??_0x44dc22(_0x184b24._0x4999af,_0x184b24._0x4a8969,0x2be,0x495);function _0x598f3a(_0x34f929,_0x24a893,_0x3debf3,_0x804018){return _0x57b9de(_0x34f929-_0x385c3e._0x2f8ace,_0x34f929,_0x24a893-_0x385c3e._0x296197,_0x804018-_0x385c3e._0x9e2a3);}return defineTool({'name':_0x5afc4e,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':'object','properties':{'pattern':{'type':'string'},'path':{'type':_0x44dc22(0x2b7,_0x184b24._0x3753ee,0x23e,_0x184b24._0x5e11d8)},'limit':{'type':'number'}},'required':[_0x44dc22(0x649,0x550,0x567,0x553)]},async *'execute'(_0x3586ca){function _0x2b03c1(_0x5326fd,_0x1856a3,_0x3f5199,_0x236871){return _0x598f3a(_0x5326fd,_0x3f5199- -0xe4,_0x3f5199-_0xba2406._0x1ad3d5,_0x236871-0xd8);}if(_0x3586ca[_0x3ab088(_0x347210._0x39d5ae,_0x347210._0x5e4efd,0x124,0x282)][_0x3ab088(_0x347210._0x1d4c13,_0x347210._0x18bdb8,_0x347210._0x35bc8b,-_0x347210._0x5ed528)]()[_0x3ab088(0x213,_0x347210._0x50398a,0x179,0x20d)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x289986=resolveAllowedPath(_0x19dd8a,_0x44a736,_0x3586ca[_0x3ab088(_0x347210._0x1947d6,0x228,_0x347210._0x16ceb9,_0x347210._0x529506)]??'.'),_0x47b6cc=await _0x534a77(_0x289986)[_0x3ab088(-_0x347210._0x5f5b27,0x60,0xbb,0x10a)](()=>null);if(!_0x47b6cc?.['isDirectory']())throw new ToolExecutionError(_0x2b03c1(0x6b5,0x6eb,_0x347210._0x797911,_0x347210._0x51af39)+(_0x3586ca[_0x3ab088(0x200,_0x347210._0x54e1aa,_0x347210._0x1da1bd,0x21e)]??'.'),{'path':_0x3586ca[_0x3ab088(_0x347210._0x1738b6,_0x347210._0x54e1aa,_0x347210._0x55af1d,0x225)]??'.'});const _0x590185=_0x3586ca[_0x3ab088(-0x91,0x89,_0x347210._0x101113,_0x347210._0x13bbeb)]??_0x49a6bc;function _0x3ab088(_0x1b2a25,_0x2f7df3,_0x4b174d,_0x27fa16){return _0x44dc22(_0x1b2a25-_0x2fcb49._0x4bfcc8,_0x2f7df3- -_0x2fcb49._0x3d178a,_0x4b174d-_0x2fcb49._0x8dc73,_0x1b2a25);}const _0x1fcf0a=Math[_0x3ab088(_0x347210._0x1631c4,_0x347210._0x1ef839,0xcc,-_0x347210._0x504883)](0x1,Math[_0x2b03c1(_0x347210._0x57296f,0x583,0x49d,_0x347210._0x1c75aa)](_0x590185)),_0x24cdae=[];let _0x339083=![];for await(const _0x1adacd of files({'cwd':_0x289986,'glob':[_0x3586ca[_0x3ab088(_0x347210._0x123043,_0x347210._0x1f0bec,0x19f,0x217)]]})){if(_0x24cdae[_0x3ab088(_0x347210._0x2c06fa,0x254,0x14c,_0x347210._0x4b4103)]>=_0x1fcf0a){_0x339083=!![];break;}const _0x297a39=await _0x534a77(_0x1ac8bd[_0x3ab088(-_0x347210._0x2ccae7,0x9c,0x133,-0x72)](_0x289986,_0x1adacd))[_0x3ab088(-0x8f,0x60,0x36,0xa6)](()=>null);_0x24cdae[_0x3ab088(_0x347210._0x13d1a1,_0x347210._0x7b91df,0x244,0x12f)]({'path':_0x1adacd,'mtime':_0x297a39?.[_0x2b03c1(_0x347210._0x2bd7f6,0x6af,_0x347210._0x5674ec,_0x347210._0x96a096)]??0x0});}_0x24cdae['sort']((_0x40f6f9,_0x3e6a11)=>_0x3e6a11['mtime']-_0x40f6f9['mtime']);const _0x151f42=_0x24cdae[_0x2b03c1(_0x347210._0x9dc739,0x7d3,_0x347210._0x1a9e16,_0x347210._0x3ebcb5)](_0x4d99e4=>_0x4d99e4['path']),_0x131aa0=_0x151f42[_0x2b03c1(_0x347210._0x2a62e2,0x807,_0x347210._0x527668,_0x347210._0xbeb2bc)]===0x0?_0x2b03c1(0x66c,_0x347210._0x44d762,0x5a2,0x6f0)+_0x3586ca['pattern']:''+_0x151f42[_0x3ab088(0xdf,0x9c,_0x347210._0xe67712,0x1d5)]('\x0a')+(_0x339083?_0x3ab088(-0x3,0x92,0x25,-_0x347210._0x72e260):'');return yield createToolOutput(_0x131aa0,{'pattern':_0x3586ca[_0x2b03c1(0x83d,0x719,0x70e,_0x347210._0x2b32f5)],'searchPath':_0x1ac8bd[_0x3ab088(0x1a3,0x5c,-_0x347210._0x1cd904,0x75)](_0x19dd8a,_0x289986)||'.','matches':_0x151f42,'count':_0x151f42[_0x3ab088(0x159,0x254,_0x347210._0x4dc019,_0x347210._0x2c0379)],'truncated':_0x339083}),void 0x0;}});}import{stat as _0x55b491}from'fs/promises';import*as _0x529715 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x377c37={}){const _0x1e4b86={_0x3f3eeb:0x7c,_0x4cde2e:0xa1,_0x176030:0x166,_0x1b22b0:0x37,_0x15da0e:0x4a,_0x23d5c4:0xbc,_0x1a5f86:0x89,_0x5b2b43:0x19,_0x97530b:0xb9,_0x26bc0f:0x144,_0x81b8c0:0x11a,_0x3f7824:0x163,_0x481ca5:0x43,_0x59854e:0x8e,_0x1ea5a1:0x6d,_0x461956:0x448,_0x5d108c:0x2fc,_0x4c6c11:0x470,_0x2b42de:0x23b,_0x58e241:0x30d,_0x3c68b9:0x15c,_0x59d2f2:0x21c,_0x261e48:0x1ce,_0x18c457:0x21c,_0x48e5da:0x2f6,_0xf84b3e:0xbb,_0x36c338:0x103,_0x1f3c2f:0x93,_0x39c59e:0x404},_0x343f95={_0x4fc362:0x5ff,_0x29b2c6:0x57a,_0x498f0d:0x5f3,_0x17e079:0x632,_0x41e469:0x1d4,_0x3c0e79:0x127,_0x2fae78:0x4,_0x33ed89:0x518,_0x13ce91:0x59e,_0x21c356:0x669,_0x377ce0:0x737,_0x112295:0x69e,_0x5bad51:0x16d,_0x27891d:0x29d,_0x2c4c73:0x26e,_0x2f490f:0x23e,_0x3d675c:0x725,_0x11fa80:0x6f7,_0xb2e8cf:0x714,_0x388c81:0x709,_0x33041b:0x5a,_0x546d04:0x158,_0x59067b:0x39,_0x2843a7:0x5f7,_0xf86ef6:0x2a,_0x2c5fd5:0x4e,_0x4b2fab:0x227,_0x1428bf:0x2a4,_0x50f411:0x235,_0xc6e9d6:0x305,_0x478c1b:0x5d,_0xdf0c65:0x8b,_0x1866ec:0x526,_0x4af047:0x5b3,_0xa24fe4:0x64e,_0x4d057a:0x637,_0x49e23a:0x73,_0x56b42f:0x104,_0x5a1f36:0x16e,_0xe2bf99:0x682,_0x5030ed:0x5d4,_0x21376d:0x72,_0x2430a9:0x15a,_0x680a01:0x6a1,_0x3cd6d8:0x674,_0x1821a6:0x24,_0x3a7070:0x13f,_0x171d21:0x115,_0x457c2c:0x5e,_0x2018bb:0x66,_0x3db0bd:0x103,_0x42bac7:0xc0,_0x40af2d:0x125,_0x445b13:0x746,_0x13915c:0x76a,_0x14d370:0x63e,_0x538e8b:0x640,_0x3ffe6b:0x567,_0x3cb2ec:0x73b,_0x115cd4:0x586,_0x539959:0xd5,_0x17579c:0x2c,_0x5b722a:0x1b,_0xd4e21f:0x811,_0x3dc45e:0x78a,_0x552f1f:0x787,_0x4dd43b:0x555,_0x46ad2a:0x659,_0x467f8a:0x5af,_0x33a7fd:0xb9,_0x9fd3d2:0x84b,_0x15dae4:0x787,_0x1bcdaa:0x6d9,_0x66168a:0x5e5,_0x1ffe93:0x571,_0x15d29a:0x4a6,_0x5c88a9:0x4f4,_0x407ff6:0x568,_0x104e2d:0x261,_0x59a359:0x158,_0x4dd71e:0x6e6,_0x443f2e:0x5b0,_0x370c88:0x4fe,_0x2ac2db:0x633},_0x5861f7={_0x29d113:0x6b,_0x32ada4:0x117};function _0x5f5cc0(_0x4c35a1,_0xb9ba61,_0x268ca1,_0x5d8c9d){return _0x23b1c2(_0x4c35a1-0xc9,_0x5d8c9d,_0x268ca1- -0x36c,_0x5d8c9d-0x12);}const _0x4e56d5=_0x529715[_0x5f5cc0(-0xc6,0x7a,-0x2f,-_0x1e4b86._0x3f3eeb)](_0x377c37[_0x5f5cc0(-_0x1e4b86._0x4cde2e,-_0x1e4b86._0x176030,-_0x1e4b86._0x1b22b0,_0x1e4b86._0x15da0e)]??process[_0x5f5cc0(0x1c,_0x1e4b86._0x23d5c4,-_0x1e4b86._0x1a5f86,-_0x1e4b86._0x5b2b43)]()),_0x55c04c=(_0x377c37[_0x5f5cc0(0x8a,0x10e,_0x1e4b86._0x97530b,0x143)]??[])[_0x5f5cc0(0x41,_0x1e4b86._0x26bc0f,_0x1e4b86._0x81b8c0,-0x23)](_0x299cc8=>_0x529715['resolve'](_0x299cc8)),_0x59a345=_0x377c37[_0x5f5cc0(-_0x1e4b86._0x3f7824,-_0x1e4b86._0x481ca5,-_0x1e4b86._0x59854e,_0x1e4b86._0x1ea5a1)]??0x64;function _0x129b90(_0x474695,_0x49010f,_0x44dc1e,_0x4480c8){return _0x57b9de(_0x474695-_0x5861f7._0x29d113,_0x49010f,_0x44dc1e- -_0x5861f7._0x32ada4,_0x4480c8-0x115);}const _0xac5372=_0x377c37[_0x129b90(0x22f,_0x1e4b86._0x461956,_0x1e4b86._0x5d108c,0x1c8)]??'Grep';return defineTool({'name':_0xac5372,'description':_0x129b90(_0x1e4b86._0x4c6c11,_0x1e4b86._0x2b42de,0x378,0x256),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x129b90(_0x1e4b86._0x58e241,_0x1e4b86._0x3c68b9,_0x1e4b86._0x59d2f2,0x12f)},'path':{'type':'string'},'include':{'type':_0x129b90(0x241,_0x1e4b86._0x261e48,_0x1e4b86._0x18c457,_0x1e4b86._0x48e5da)},'limit':{'type':_0x5f5cc0(_0x1e4b86._0xf84b3e,0x167,_0x1e4b86._0x36c338,_0x1e4b86._0x1f3c2f)},'context':{'type':_0x5f5cc0(0xb6,0xae,_0x1e4b86._0x36c338,0x246)}},'required':[_0x129b90(_0x1e4b86._0x39c59e,0x4c3,0x448,0x4d5)]},async *'execute'(_0x29c7ff){const _0x5dca56={_0x138be3:0x63,_0x5ca67f:0x112},_0x1f58ec={_0x1bab3c:0x192,_0xfcce70:0x1c4};if(_0x29c7ff['pattern'][_0x96b5eb(0x578,_0x343f95._0x4fc362,_0x343f95._0x29b2c6,_0x343f95._0x498f0d)]()['length']===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x383b6f=resolveAllowedPath(_0x4e56d5,_0x55c04c,_0x29c7ff[_0x96b5eb(0x6ac,_0x343f95._0x17e079,0x744,0x6a1)]??'.'),_0xb7174f=await _0x55b491(_0x383b6f)['catch'](()=>null);function _0x96b5eb(_0x3cd4f4,_0x354278,_0x3ab474,_0x3eb4b3){return _0x5f5cc0(_0x3cd4f4-_0x1f58ec._0x1bab3c,_0x354278-_0x1f58ec._0xfcce70,_0x3ab474-0x633,_0x3eb4b3);}const _0x47a60f=_0xb7174f?.[_0x12a914(-0x16c,-0x1d9,-0x1f8,-0x27d)]()??![],_0x315821=_0xb7174f?.[_0x12a914(-_0x343f95._0x41e469,-0xbb,-_0x343f95._0x3c0e79,-_0x343f95._0x2fae78)]()??![];if(!_0x47a60f&&!_0x315821)throw new ToolExecutionError(_0x96b5eb(_0x343f95._0x33ed89,0x456,_0x343f95._0x13ce91,0x4d4)+(_0x29c7ff[_0x96b5eb(_0x343f95._0x21c356,0x6e0,0x744,0x647)]??'.'),{'path':_0x29c7ff[_0x96b5eb(_0x343f95._0x377ce0,_0x343f95._0x112295,0x744,0x61f)]??'.'});const _0x25e1e=_0x29c7ff['limit']??_0x59a345,_0x285e1d=Math[_0x12a914(-_0x343f95._0x5bad51,-0x11b,-0x17a,-_0x343f95._0x27891d)](0x1,Math[_0x12a914(-_0x343f95._0x2c4c73,-0x1fa,-_0x343f95._0x2f490f,-0x264)](_0x25e1e)),_0x5bedf0=await search({'cwd':_0x315821?_0x383b6f:_0x529715[_0x96b5eb(0x7cf,0x575,0x683,_0x343f95._0x3d675c)](_0x383b6f),'pattern':_0x29c7ff[_0x96b5eb(_0x343f95._0x11fa80,_0x343f95._0xb2e8cf,0x778,_0x343f95._0x388c81)],'glob':_0x315821?_0x29c7ff[_0x12a914(-_0x343f95._0x33041b,-0x1a3,-_0x343f95._0x546d04,-_0x343f95._0x59067b)]:void 0x0,'limit':_0x285e1d,'file':_0x47a60f?_0x383b6f:void 0x0,'context':_0x29c7ff['context']}),_0x40c24f=new Map();for(const _0x5965b4 of _0x5bedf0){if(!_0x40c24f[_0x96b5eb(0x5a7,_0x343f95._0x2843a7,0x5c8,0x6a9)](_0x5965b4[_0x12a914(_0x343f95._0xf86ef6,0x92,-0x8b,_0x343f95._0x2c5fd5)])){const _0x426c83=await _0x55b491(_0x5965b4['filePath'])[_0x12a914(-0x221,-_0x343f95._0x4b2fab,-0x1c9,-_0x343f95._0x1428bf)](()=>null);_0x40c24f[_0x12a914(-0xf1,-0xef,-_0x343f95._0x50f411,-_0x343f95._0xc6e9d6)](_0x5965b4[_0x12a914(-_0x343f95._0x478c1b,-0x109,-_0x343f95._0xdf0c65,0xa)],{'matches':[],'mtime':_0x426c83?.['mtimeMs']??0x0});}_0x40c24f[_0x96b5eb(_0x343f95._0x1866ec,0x4c4,_0x343f95._0x4af047,_0x343f95._0xa24fe4)](_0x5965b4[_0x96b5eb(_0x343f95._0x4d057a,0x68b,0x6ba,0x5cc)])?.[_0x12a914(0x13,-_0x343f95._0x49e23a,-_0x343f95._0x56b42f,-_0x343f95._0x5a1f36)][_0x96b5eb(_0x343f95._0xe2bf99,0x687,0x65c,_0x343f95._0x5030ed)](_0x5965b4);}const _0x5193b1=[..._0x40c24f[_0x12a914(0x7c,-0x1f9,-0xd3,_0x343f95._0x21376d)]()][_0x12a914(-_0x343f95._0x2430a9,-0x26f,-0x1a9,-0x233)]((_0x387cb0,_0x3b1bb6)=>_0x3b1bb6[0x1][_0x12a914(0xd4,0xb4,0x9,-0x110)]-_0x387cb0[0x1][_0x12a914(-0xbb,-0xbb,0x9,-0x12)]);function _0x12a914(_0xd8155d,_0x11ae62,_0x5f2030,_0x44ea73){return _0x5f5cc0(_0xd8155d-0x31,_0x11ae62-_0x5dca56._0x138be3,_0x5f2030- -_0x5dca56._0x5ca67f,_0xd8155d);}const _0x210b9e=_0x5bedf0[_0x96b5eb(0x783,0x71f,_0x343f95._0x680a01,_0x343f95._0x3cd6d8)](_0x20315e=>!_0x20315e['isContext'])['length'],_0x1b4fd2=_0x5bedf0[_0x12a914(_0x343f95._0x1821a6,_0x343f95._0x3a7070,0x2b,-_0x343f95._0x171d21)]>=_0x285e1d,_0x184a9e=_0x47a60f?_0x529715[_0x12a914(0x3f,-0x1ad,-0xc2,_0x343f95._0x457c2c)](_0x383b6f):_0x383b6f;let _0x382a1a='';if(_0x5bedf0[_0x12a914(-_0x343f95._0x2018bb,0x100,0x2b,-0x88)]===0x0)_0x382a1a=_0x12a914(-_0x343f95._0x3db0bd,-0xe7,-_0x343f95._0x42bac7,-_0x343f95._0x40af2d)+_0x29c7ff['pattern'];else{_0x382a1a=_0x96b5eb(_0x343f95._0x445b13,0x68e,0x734,_0x343f95._0x13915c)+_0x210b9e+_0x96b5eb(0x5f6,0x732,_0x343f95._0x14d370,_0x343f95._0x538e8b)+(_0x210b9e===0x1?'':'es')+'\x0a';for(const [_0x4f2464,_0x60ba1]of _0x5193b1){const _0x2359ad=_0x47a60f?_0x529715[_0x96b5eb(0x505,0x657,_0x343f95._0x3ffe6b,0x596)](_0x4f2464):_0x529715['relative'](_0x184a9e,_0x4f2464);_0x382a1a+='\x0a'+_0x2359ad+':\x0a';for(const _0x26f8a1 of _0x60ba1[_0x96b5eb(_0x343f95._0x3cb2ec,_0x343f95._0x115cd4,0x641,0x5de)]){const _0x333698=_0x26f8a1[_0x12a914(-_0x343f95._0x539959,-_0x343f95._0x17579c,0x42,_0x343f95._0x5b722a)]['length']>MAX_LINE_LENGTH?_0x26f8a1[_0x96b5eb(_0x343f95._0xd4e21f,_0x343f95._0x3dc45e,_0x343f95._0x552f1f,0x8ad)][_0x96b5eb(_0x343f95._0x4dd43b,0x687,_0x343f95._0x46ad2a,_0x343f95._0x467f8a)](0x0,MAX_LINE_LENGTH)+_0x12a914(-0x18,-0xa1,-0x2b,-_0x343f95._0x33a7fd):_0x26f8a1[_0x96b5eb(_0x343f95._0x9fd3d2,0x6dc,_0x343f95._0x15dae4,0x84e)],_0x121a30=_0x26f8a1[_0x96b5eb(_0x343f95._0x5030ed,_0x343f95._0x1bcdaa,_0x343f95._0x66168a,_0x343f95._0x1ffe93)]?'\x20\x20':'>\x20';_0x382a1a+=_0x121a30+_0x12a914(0xee,0xdd,0x4e,-0x30)+_0x26f8a1[_0x96b5eb(_0x343f95._0x15d29a,_0x343f95._0x5c88a9,0x5c5,0x6a9)]+':\x20'+_0x333698+'\x0a';}}_0x1b4fd2&&(_0x382a1a+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0xf1875b={'searchPath':_0x529715[_0x96b5eb(_0x343f95._0x407ff6,0x463,0x578,0x4e8)](_0x4e56d5,_0x383b6f)||'.','pattern':_0x29c7ff[_0x12a914(-0x21,0xbf,0x33,-0x76)],'matchCount':_0x210b9e,'fileCount':_0x40c24f[_0x96b5eb(0x5f5,0x626,0x6cd,0x69c)],'truncated':_0x1b4fd2};return _0x315821&&_0x29c7ff[_0x12a914(-_0x343f95._0x104e2d,-0xcd,-_0x343f95._0x59a359,-0x24c)]!==void 0x0&&(_0xf1875b[_0x12a914(-0x1fb,-0xad,-_0x343f95._0x59a359,-0x59)]=_0x29c7ff[_0x96b5eb(_0x343f95._0x4dd71e,_0x343f95._0x443f2e,0x5ed,_0x343f95._0x370c88)]),yield createToolOutput(_0x382a1a[_0x96b5eb(0x5af,_0x343f95._0x2ac2db,0x57a,0x4b5)](),_0xf1875b),void 0x0;}});}import{readdir as _0x330493,readFile as _0x21365,stat as _0x38f6f2}from'fs/promises';import*as _0x61565e from'path';import*as _0x56412e from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x1e6a1c,_0xa36605){const _0x59815e={_0x4ec8b4:0x86,_0x133879:0x13,_0x3d93f0:0x18b,_0x346d28:0x1b6,_0x4c9bde:0x121,_0x583b09:0x66d,_0x5a8a46:0x716,_0x4a5dbf:0x7ca,_0xd105aa:0x788,_0x4d53aa:0x1ae},_0x2d2c85={_0x4403a4:0x10a},_0xc1f2f1={_0x14e084:0xee,_0x15472b:0x2dd,_0xe45cb2:0xaa};if(_0xa36605>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x1b466d(_0x2c7e55,_0x6f363b,_0xa7975b,_0x24790c){return _0x57b9de(_0x2c7e55-_0xc1f2f1._0x14e084,_0x24790c,_0x2c7e55- -_0xc1f2f1._0x15472b,_0x24790c-_0xc1f2f1._0xe45cb2);}function _0x2d609a(_0x286e09,_0x5f46a7,_0x52e2b9,_0x2211ee){return _0x23b1c2(_0x286e09-0x8,_0x286e09,_0x52e2b9-0x31c,_0x2211ee-_0x2d2c85._0x4403a4);}const _0x56f5ca=await _0x21365(_0x1e6a1c)[_0x1b466d(_0x59815e._0x4ec8b4,_0x59815e._0x133879,_0x59815e._0x3d93f0,-0x1)](()=>null);if(!_0x56f5ca||isProbablyBinary(_0x56f5ca))return void 0x0;return _0x56f5ca[_0x1b466d(0x213,0x2dc,_0x59815e._0x346d28,_0x59815e._0x4c9bde)](_0x2d609a(_0x59815e._0x583b09,_0x59815e._0x5a8a46,0x724,0x6a9))[_0x2d609a(0x6c0,_0x59815e._0x4a5dbf,_0x59815e._0xd105aa,0x6eb)](/\r?\n/)[_0x1b466d(0x27a,0x3a7,0x13c,_0x59815e._0x4d53aa)];}function createLsTool(_0x363855={}){const _0x1901ed={_0x5a20c6:0x29b,_0xc7df89:0x3b3,_0xf92675:0x3d0,_0x40cec1:0x3df,_0x1587a9:0x293,_0x446288:0x283,_0x37b50e:0x241,_0x442dda:0x15e,_0x54fe1a:0x2f5,_0x9a8021:0x276,_0x4041a6:0x315,_0x5c6851:0x21a,_0x4cde4a:0x2a5,_0x148830:0x61},_0x2a1af={_0x47bfcc:0x1d0,_0x45317e:0x214,_0x3aa9ca:0x22,_0x5118f9:0x47,_0x451a20:0x107,_0x4e99bb:0x29f,_0xb19fb7:0x2ba,_0x3c7169:0x4f,_0x46908d:0x15,_0x442e60:0x742,_0x1a9e7d:0x142,_0x3d5d75:0x562,_0x1e2c8f:0x61b,_0x12163f:0x672,_0x3dbe78:0x65,_0x4929f5:0x2f3,_0x540a5a:0x5b0,_0x263bdd:0x107,_0x5b0734:0x4a,_0x2efb85:0x205,_0x27e61:0x139,_0x4e8636:0x1a,_0x5e7188:0x3a,_0x2f2f0d:0x3e,_0x3582a4:0x155,_0x4a6621:0x730,_0x1a0dbe:0x166,_0x5bf4f1:0x2ad,_0x1cce20:0x13d,_0x57f55a:0x19a,_0x39906d:0x209,_0x3986b8:0x7d1,_0x50d811:0x730,_0x5c1bf5:0x80f,_0x5e4e6f:0x59f,_0x4709db:0x6bf,_0x22610d:0x6d6,_0x10dce6:0x7d3,_0x1bca9c:0x785,_0x2c75c0:0x6f9,_0x3d6dc3:0x698,_0x5acfe1:0x8a9,_0x869dc1:0x7c2,_0xa67517:0x6ff,_0x54a53a:0x7fc,_0x28698f:0x7d4,_0x2d7f9c:0x7d3},_0x125bf1={_0x516239:0x150,_0x582c6f:0x4c},_0x34b4d8=_0x61565e[_0x1bc4f1(_0x1901ed._0x5a20c6,_0x1901ed._0xc7df89,_0x1901ed._0xf92675,_0x1901ed._0x40cec1)](_0x363855[_0x1bc4f1(_0x1901ed._0x1587a9,_0x1901ed._0x446288,0x35a,0x256)]??process[_0x1bc4f1(_0x1901ed._0x37b50e,_0x1901ed._0x442dda,_0x1901ed._0x54fe1a,_0x1901ed._0x9a8021)]()),_0x33931f=(_0x363855[_0x128e37(0x139,0x1c9,0x110,0xd7)]??[])['map'](_0x45c1f2=>_0x61565e['resolve'](_0x45c1f2)),_0x1cb02c=_0x363855['name']??'Ls';function _0x128e37(_0x4b7b4e,_0x422425,_0x312029,_0xcc9fac){return _0x23b1c2(_0x4b7b4e-0x29,_0xcc9fac,_0x4b7b4e- -0x2ec,_0xcc9fac-0x140);}function _0x1bc4f1(_0x4f276d,_0x7f840d,_0x321102,_0x104e35){return _0x57b9de(_0x4f276d-0xfd,_0x104e35,_0x4f276d- -_0x125bf1._0x516239,_0x104e35-_0x125bf1._0x582c6f);}return defineTool({'name':_0x1cb02c,'description':_0x1bc4f1(0x41c,0x3b9,_0x1901ed._0x4041a6,0x4f6),'inputSchema':{'type':'object','properties':{'path':{'type':_0x1bc4f1(0x1e3,_0x1901ed._0x5c6851,_0x1901ed._0x4cde4a,0x23e)},'limit':{'type':_0x128e37(0x183,0x8d,_0x1901ed._0x148830,0x13a)}}},async *'execute'(_0x49e2f1){const _0x987b7={_0x2707b7:0x616,_0x2e1ef8:0x4},_0x27ae3e=_0x49e2f1[_0x11cfba(0x22d,0x29c,_0x2a1af._0x47bfcc,_0x2a1af._0x45317e)]??'.',_0x4dfea7=resolveAllowedPath(_0x34b4d8,_0x33931f,_0x27ae3e),_0xaf3639=await _0x38f6f2(_0x4dfea7)[_0x11cfba(0x65,_0x2a1af._0x3aa9ca,0xca,_0x2a1af._0x5118f9)](()=>null);if(!_0xaf3639?.[_0x11cfba(_0x2a1af._0x451a20,0x1fc,0x12,_0x2a1af._0x47bfcc)]())throw new ToolExecutionError(_0x11cfba(0x25b,0x38d,_0x2a1af._0x4e99bb,_0x2a1af._0xb19fb7)+_0x27ae3e,{'path':_0x27ae3e});function _0x17050d(_0xc309e2,_0x2192c5,_0x9aeb66,_0x33e72c){return _0x128e37(_0x9aeb66-_0x987b7._0x2707b7,_0x2192c5-0x179,_0x9aeb66-_0x987b7._0x2e1ef8,_0x2192c5);}const _0x16ba10=_0x49e2f1[_0x11cfba(0x8e,0x177,_0x2a1af._0x3c7169,_0x2a1af._0x46908d)]??0x3e8;function _0x11cfba(_0x222e44,_0x18946b,_0x468d30,_0x35272e){return _0x1bc4f1(_0x222e44- -0x1ae,_0x18946b-0x10b,_0x468d30-0x198,_0x468d30);}const _0x431e76=Math['min'](Math[_0x17050d(0x58b,_0x2a1af._0x442e60,0x62e,0x6de)](Math['trunc'](_0x16ba10),0x1),0x2710),_0x2ac478=await _0x330493(_0x4dfea7),_0x225616=[];for(const _0x583fe1 of _0x2ac478[_0x11cfba(_0x2a1af._0x1a9e7d,0x227,0x1d1,0x37)](0x0,_0x431e76)){const _0x480ac8=_0x61565e[_0x17050d(_0x2a1af._0x3d5d75,0x6b9,_0x2a1af._0x1e2c8f,_0x2a1af._0x12163f)](_0x4dfea7,_0x583fe1),_0x1ef657=await _0x38f6f2(_0x480ac8)[_0x11cfba(_0x2a1af._0x3dbe78,-0x8d,-0x44,0x10f)](()=>null);if(!_0x1ef657)continue;let _0x2f82bb=_0x11cfba(0x263,_0x2a1af._0x4929f5,0x3ae,0x37d);if(_0x1ef657[_0x17050d(0x4b0,0x4e5,_0x2a1af._0x540a5a,0x614)]())_0x2f82bb=_0x17050d(0x6f0,0x900,0x7e3,0x7c1);else{if(_0x1ef657[_0x11cfba(_0x2a1af._0x263bdd,_0x2a1af._0x5b0734,_0x2a1af._0x2efb85,-0x4a)]())_0x2f82bb='directory';else{if(_0x1ef657[_0x11cfba(_0x2a1af._0x27e61,0x180,_0x2a1af._0x4e8636,_0x2a1af._0x5e7188)]())_0x2f82bb=_0x11cfba(0xfb,0x13d,_0x2a1af._0x2f2f0d,_0x2a1af._0x3582a4);}}const _0x380b2b={'name':_0x583fe1,'type':_0x2f82bb,'size':_0x1ef657[_0x17050d(0x85c,0x752,_0x2a1af._0x4a6621,0x748)],'mtime':_0x1ef657[_0x11cfba(_0x2a1af._0x1a0dbe,_0x2a1af._0x5bf4f1,_0x2a1af._0x1cce20,0x104)],'mode':_0x1ef657[_0x11cfba(0x47,0x100,-0x59,0x136)]},_0x52fd51=_0x2f82bb===_0x11cfba(0x269,_0x2a1af._0x57f55a,0x1bc,_0x2a1af._0x39906d)?await countTextLines(_0x480ac8,_0x1ef657[_0x17050d(0x7b4,_0x2a1af._0x3986b8,_0x2a1af._0x50d811,_0x2a1af._0x5c1bf5)]):void 0x0;if(_0x52fd51!==void 0x0)_0x380b2b['lines']=_0x52fd51;_0x225616[_0x17050d(_0x2a1af._0x5e4e6f,0x7b6,_0x2a1af._0x4709db,_0x2a1af._0x22610d)](_0x380b2b);}_0x225616['sort']((_0x264bb7,_0x5e4619)=>_0x264bb7[_0x11cfba(0x115,0x19,0x16c,0x217)][_0x11cfba(0x253,0x238,0x206,0x1ee)](_0x5e4619[_0x17050d(0x7aa,0x5e5,0x68f,0x775)]));const _0x427010={'path':_0x27ae3e,'total':_0x225616[_0x17050d(0x830,0x907,_0x2a1af._0x10dce6,_0x2a1af._0x1bca9c)],'truncated':_0x2ac478['length']>_0x431e76,'entries':_0x225616};return yield createToolOutput(_0x56412e[_0x17050d(0x5fc,_0x2a1af._0x2c75c0,_0x2a1af._0x3d6dc3,0x771)](_0x427010,{'indent':0x2,'lineWidth':0x0})[_0x17050d(_0x2a1af._0x5acfe1,0x7dc,_0x2a1af._0x869dc1,0x7a6)](),{'path':_0x27ae3e,'total':_0x225616[_0x17050d(0x6d9,0x683,0x7d3,_0x2a1af._0xa67517)],'truncated':_0x2ac478[_0x17050d(_0x2a1af._0x54a53a,_0x2a1af._0x28698f,_0x2a1af._0x2d7f9c,0x770)]>_0x431e76,'limit':_0x431e76,'entries':_0x225616}),void 0x0;}});}import{stat as _0x60fde}from'fs/promises';import _0x12fac7 from'path';import{fileURLToPath as _0x32cd3e}from'url';function severityName(_0x33ab94){const _0x5b72f1={_0x527e86:0x53a,_0x22b910:0x58a,_0x5adaca:0x4fa,_0x4845a5:0xd9,_0x3474b3:0xc2,_0x1d4f32:0x25,_0x12f4e3:0x17e,_0x49cf3b:0xbe,_0x12ebda:0x5c},_0xbbcff={_0x3ab245:0x10},_0x2763db={_0x4cffe0:0xc,_0x55228f:0x3a7};function _0xa0e07a(_0x5b9cf3,_0x5772c1,_0x512c0d,_0x28cdf3){return _0x23b1c2(_0x5b9cf3-_0x2763db._0x4cffe0,_0x5b9cf3,_0x28cdf3- -_0x2763db._0x55228f,_0x28cdf3-0x19c);}function _0xb25f45(_0x27c501,_0x291e71,_0x4cdc14,_0x54c24c){return _0x57b9de(_0x27c501-_0xbbcff._0x3ab245,_0x27c501,_0x291e71-0x179,_0x54c24c-0xd9);}switch(_0x33ab94){case 0x1:return _0xb25f45(0x4ab,_0x5b72f1._0x527e86,_0x5b72f1._0x22b910,_0x5b72f1._0x5adaca);case 0x2:return _0xa0e07a(-0xb8,-0xd0,-0x6a,-_0x5b72f1._0x4845a5);case 0x3:return'Information';case 0x4:return _0xa0e07a(_0x5b72f1._0x3474b3,_0x5b72f1._0x1d4f32,_0x5b72f1._0x12f4e3,_0x5b72f1._0x49cf3b);default:return _0xa0e07a(-0x115,-_0x5b72f1._0x12ebda,-0x137,-0x7c);}}function formatSingleHover(_0x5e45c4){const _0x49e709={_0xc274bb:0x77,_0x17e9b6:0x18b,_0x4f0355:0x185,_0x1570a6:0x19a,_0x4ecde5:0xdd,_0x491636:0x6f3,_0x34ec41:0x1a2,_0x3b0c07:0x48,_0x29d29e:0x172,_0xd31655:0x6f2,_0x5d9117:0x5c3,_0x218056:0x8a,_0x4ffd40:0x168,_0xb9ff41:0x4a8,_0x2ecd7d:0x409,_0x494afd:0x4f7,_0x52b874:0xe5,_0x23da21:0x180,_0x167773:0x78,_0x40f0de:0x8d,_0x5f516f:0x10,_0x1d9e9d:0x812,_0x322c29:0x6e7,_0x2d2f69:0x712,_0x1f2a49:0x93,_0x3f114c:0xff},_0x3f6322={_0x1f4643:0x67,_0x31b2a3:0x26d,_0x3aec06:0x35},_0x404e6f={_0x97fc3e:0x11c,_0x5977db:0x366,_0x4bfdc5:0xe2},_0x5cd6bd=_0x5e45c4[_0x583659(0x42f,0x51f,0x57d,0x676)];function _0x16b806(_0x1c3856,_0x10d345,_0x235fcf,_0x4af956){return _0x23b1c2(_0x1c3856-_0x404e6f._0x97fc3e,_0x1c3856,_0x4af956- -_0x404e6f._0x5977db,_0x4af956-_0x404e6f._0x4bfdc5);}if(typeof _0x5cd6bd===_0x16b806(-_0x49e709._0xc274bb,-_0x49e709._0x17e9b6,-_0x49e709._0x4f0355,-0xe1))return _0x5cd6bd;if(Array[_0x16b806(0x173,_0x49e709._0x1570a6,0x6f,_0x49e709._0x4ecde5)](_0x5cd6bd))return _0x5cd6bd[_0x583659(0x751,0x7c7,_0x49e709._0x491636,0x7ef)](_0x23888b=>typeof _0x23888b===_0x16b806(-0x160,-0x5,-0x171,-0xe1)?_0x23888b:_0x23888b[_0x583659(0x5f7,0x52c,0x5c3,0x545)])[_0x16b806(0x116,_0x49e709._0x34ec41,-_0x49e709._0x3b0c07,0x74)](Boolean)['join']('\x0a\x0a');function _0x583659(_0x581f93,_0x2aecdb,_0x3021f6,_0x3127c7){return _0x23b1c2(_0x581f93-_0x3f6322._0x1f4643,_0x2aecdb,_0x3021f6-_0x3f6322._0x31b2a3,_0x3127c7-_0x3f6322._0x3aec06);}if(_0x16b806(0xef,_0x49e709._0x29d29e,0x201,0x10b)in _0x5cd6bd)return _0x5cd6bd[_0x583659(0x4f3,_0x49e709._0xd31655,_0x49e709._0x5d9117,0x64d)];return _0x5cd6bd[_0x16b806(0x1af,_0x49e709._0x218056,0x14f,_0x49e709._0x4ffd40)]?_0x583659(_0x49e709._0xb9ff41,_0x49e709._0x2ecd7d,_0x49e709._0x494afd,0x4f7)+_0x5cd6bd[_0x16b806(_0x49e709._0x52b874,0x1a3,_0x49e709._0x23da21,_0x49e709._0x4ffd40)]+'\x0a'+_0x5cd6bd[_0x16b806(0x0,_0x49e709._0x167773,-_0x49e709._0x40f0de,-_0x49e709._0x5f516f)]+_0x583659(_0x49e709._0x1d9e9d,_0x49e709._0x322c29,_0x49e709._0x2d2f69,0x744):_0x5cd6bd[_0x16b806(_0x49e709._0x1f2a49,0x21,-_0x49e709._0x3f114c,-_0x49e709._0x5f516f)];}function formatHover(_0x1202e9){const _0x495e51={_0xb699f0:0x91,_0x1ae8db:0x13c,_0x37d474:0x17e,_0x335af5:0x2c1},_0x18559f={_0x396a31:0x97,_0xf5c091:0x510,_0x57484b:0x9c},_0x3889bb={_0x282fbf:0x2b,_0x3110eb:0x1a9};function _0x5ac679(_0x5a6a79,_0x222cdd,_0x1cc403,_0x29f464){return _0x57b9de(_0x5a6a79-0x1ef,_0x222cdd,_0x1cc403- -_0x3889bb._0x282fbf,_0x29f464-_0x3889bb._0x3110eb);}function _0x1db5e6(_0x9e8e35,_0x5bd177,_0x25e432,_0x1601d8){return _0x57b9de(_0x9e8e35-_0x18559f._0x396a31,_0x5bd177,_0x25e432- -_0x18559f._0xf5c091,_0x1601d8-_0x18559f._0x57484b);}if(_0x1202e9['length']===0x0)return _0x1db5e6(_0x495e51._0xb699f0,_0x495e51._0x1ae8db,0x60,_0x495e51._0x37d474);return _0x1202e9[_0x1db5e6(0xbf,0xcf,0x24,0xcf)](formatSingleHover)['join'](_0x1db5e6(-_0x495e51._0x335af5,-0x79,-0x1b9,-0xa2));}function locationPath(_0x448289){const _0x591c8a={_0x44e7c1:0x16e,_0x523e10:0x2e3,_0x32f89c:0x3d3,_0x12def2:0x1b1,_0x5e51bf:0x1b2},_0x48638c={_0x5d15ce:0x1b0,_0x5a31e8:0x192};function _0xc87195(_0x51dd4f,_0x1b68c6,_0x5ded73,_0x174178){return _0x23b1c2(_0x51dd4f-_0x48638c._0x5d15ce,_0x174178,_0x51dd4f- -0x201,_0x174178-_0x48638c._0x5a31e8);}function _0x555238(_0x9e91f0,_0xe8f9b7,_0x1e48ac,_0x2a2385){return _0x57b9de(_0x9e91f0-0xfa,_0x9e91f0,_0x1e48ac-0x18f,_0x2a2385-0x9b);}if(!_0x448289[_0xc87195(_0x591c8a._0x44e7c1,0x1e5,0x62,0x258)](_0xc87195(_0x591c8a._0x523e10,_0x591c8a._0x32f89c,_0x591c8a._0x12def2,_0x591c8a._0x5e51bf)))return _0x448289;return _0x32cd3e(_0x448289);}function formatLocations(_0xb27917){const _0x44c78a={_0x30ca1b:0x3fd,_0xa7c994:0x37c,_0x20f26c:0x2fa,_0xf4f9ea:0x4b4,_0xab2f34:0x3da},_0x1d404c={_0x41ebe4:0x6c0,_0x225acc:0x6ef,_0x439b9c:0x446,_0x3fc18f:0x1b,_0x21d651:0x110,_0x1a376d:0x52},_0x7697e3={_0x19bba6:0xa6},_0x5f2a7e={_0x19ce41:0x28},_0x272680={_0x6fd809:0x3d3};function _0x307848(_0x241833,_0x30acbc,_0x2b55de,_0x545679){return _0x57b9de(_0x241833-0xb,_0x30acbc,_0x545679- -_0x272680._0x6fd809,_0x545679-0x1f1);}function _0x2669a1(_0x39972e,_0x378c01,_0xbe639a,_0x40dda1){return _0x23b1c2(_0x39972e-0x11e,_0x40dda1,_0xbe639a- -0xac,_0x40dda1-_0x5f2a7e._0x19ce41);}if(_0xb27917[_0x2669a1(0x3ce,0x4a4,_0x44c78a._0x30ca1b,0x3f4)]===0x0)return _0x2669a1(0x30b,0x243,_0x44c78a._0xa7c994,0x2cf);return _0xb27917[_0x2669a1(_0x44c78a._0x20f26c,_0x44c78a._0xf4f9ea,_0x44c78a._0xab2f34,0x4e1)](_0x419903=>{const _0x57a60e={_0x407caa:0xbd};function _0x2972c5(_0x436b14,_0x369496,_0x5a0dcf,_0x36112d){return _0x2669a1(_0x436b14-_0x7697e3._0x19bba6,_0x369496-0x140,_0x369496- -0x310,_0x36112d);}const _0x22cadb=_0x419903[_0x1a8925(_0x1d404c._0x41ebe4,0x671,0x76e,_0x1d404c._0x225acc)][_0x1a8925(_0x1d404c._0x439b9c,0x4da,0x64d,0x587)];function _0x1a8925(_0x421766,_0xa90eac,_0x5457eb,_0x455483){return _0x307848(_0x421766-_0x57a60e._0x407caa,_0xa90eac,_0x5457eb-0x1e8,_0x455483-0x55c);}return locationPath(_0x419903['uri'])+':'+(_0x22cadb[_0x2972c5(0x11c,-0xb,_0x1d404c._0x3fc18f,_0x1d404c._0x21d651)]+0x1)+':'+(_0x22cadb[_0x2972c5(-0xb5,-0x7e,_0x1d404c._0x1a376d,-0xb1)]+0x1);})['join']('\x0a');}function isDocumentSymbol(_0x3428f5){const _0x27c55d={_0x2eb787:0x29,_0xcd07a1:0xf9,_0xefa706:0x38,_0x423d8d:0xb0},_0x3f741b={_0x31d069:0x12b,_0x70e2bb:0x46d},_0x2e3d42={_0x5b6389:0x17b};function _0x519b39(_0x259f1d,_0x1c15ad,_0xbe9c29,_0x5dc784){return _0x23b1c2(_0x259f1d-_0x2e3d42._0x5b6389,_0x1c15ad,_0xbe9c29-0x245,_0x5dc784-0x22);}function _0x4b421a(_0x434e8f,_0x2c08da,_0x58d63e,_0x30929f){return _0x57b9de(_0x434e8f-_0x3f741b._0x31d069,_0x2c08da,_0x58d63e- -_0x3f741b._0x70e2bb,_0x30929f-0x101);}return _0x4b421a(0x24c,-_0x27c55d._0x2eb787,_0x27c55d._0xcd07a1,_0x27c55d._0xefa706)in _0x3428f5&&_0x4b421a(-0x4e,-_0x27c55d._0x423d8d,0x71,-0xce)in _0x3428f5;}function formatSymbols(_0x547e49){const _0xbb24cf={_0x297bf5:0x678,_0xbe7f82:0x4c0,_0x1ed307:0x57b},_0x3a6921={_0x1a4ada:0x62c,_0x4a5004:0x851,_0xa6de2f:0x733,_0x410d4a:0x83f,_0xe5f516:0x67f,_0x377344:0x8af,_0x15912a:0x729,_0x1fd8c1:0x656,_0x39d920:0x610,_0x44b182:0x626,_0x4c816c:0x74a,_0x573018:0x81b,_0x2bcfad:0x628,_0x58e9b3:0x6da,_0x4b91fe:0x542,_0x4ec5ae:0x6bb,_0x4d05ef:0x77e,_0x1970ad:0x736,_0x3bf609:0x6e2,_0x1a9aa8:0x625,_0x413daf:0x604,_0x545e98:0x6d8,_0x17abad:0x782,_0x3f3887:0x560,_0x2a8d38:0x547},_0x354318={_0x3d0db4:0xf3,_0x1ca3a0:0xd7},_0x4c8a83={_0x286afd:0x121},_0xb083f9={_0x1f1735:0x8c,_0x7ef860:0x3d9,_0x4d4084:0x6c};function _0x54af8e(_0x3fdfc3,_0x499a9d,_0x5d582f,_0x40820a){return _0x57b9de(_0x3fdfc3-_0xb083f9._0x1f1735,_0x5d582f,_0x499a9d- -_0xb083f9._0x7ef860,_0x40820a-_0xb083f9._0x4d4084);}if(_0x547e49[_0x3dd1de(_0xbb24cf._0x297bf5,0x734,0x596,0x7a7)]===0x0)return'No\x20symbols\x20found';function _0x3dd1de(_0x50e787,_0x578843,_0x2c2d65,_0x511e97){return _0x57b9de(_0x50e787-0x1a8,_0x2c2d65,_0x50e787-_0x4c8a83._0x286afd,_0x511e97-0x152);}return _0x547e49['map'](_0x5a017b=>{const _0x497afa={_0x27f85e:0xfb,_0x819ef:0x180};function _0x25a973(_0x4464ab,_0x21e5cf,_0x4faca2,_0x40686e){return _0x3dd1de(_0x21e5cf-_0x497afa._0x27f85e,_0x21e5cf-0x9d,_0x4464ab,_0x40686e-_0x497afa._0x819ef);}if(isDocumentSymbol(_0x5a017b))return _0x5a017b[_0x25a973(0x714,0x62f,_0x3a6921._0x1a4ada,0x541)]+'\x20('+_0x5a017b[_0xc326c4(_0x3a6921._0x4a5004,0x84f,_0x3a6921._0xa6de2f,0x886)]+')\x20['+(_0x5a017b[_0xc326c4(0x815,0x6bd,0x77a,_0x3a6921._0x410d4a)]['start'][_0xc326c4(_0x3a6921._0xe5f516,0x71a,0x673,0x676)]+0x1)+':'+(_0x5a017b[_0x25a973(_0x3a6921._0x377344,0x782,_0x3a6921._0x15912a,0x7d0)][_0xc326c4(0x5ac,_0x3a6921._0x1fd8c1,0x612,0x596)]['character']+0x1)+']';function _0xc326c4(_0x2c566e,_0x2a2f51,_0x1ad62f,_0x4d29e6){return _0x3dd1de(_0x1ad62f-_0x354318._0x3d0db4,_0x2a2f51-0x1b3,_0x4d29e6,_0x4d29e6-_0x354318._0x1ca3a0);}return _0x5a017b[_0xc326c4(_0x3a6921._0x39d920,0x5dc,0x627,_0x3a6921._0x44b182)]+'\x20('+_0x5a017b[_0xc326c4(_0x3a6921._0x4c816c,_0x3a6921._0x573018,0x733,_0x3a6921._0x2bcfad)]+')\x20'+locationPath(_0x5a017b[_0xc326c4(0x708,0x654,_0x3a6921._0x58e9b3,0x6d9)]['uri'])+':'+(_0x5a017b['location'][_0x25a973(0x862,0x782,0x81a,0x824)][_0x25a973(_0x3a6921._0x4b91fe,0x61a,0x69b,0x600)][_0xc326c4(_0x3a6921._0x4ec5ae,_0x3a6921._0x4d05ef,0x673,0x645)]+0x1)+':'+(_0x5a017b[_0x25a973(_0x3a6921._0x1970ad,_0x3a6921._0x3bf609,_0x3a6921._0x1a9aa8,_0x3a6921._0x413daf)][_0x25a973(_0x3a6921._0x545e98,_0x3a6921._0x17abad,_0x3a6921._0x3bf609,0x631)]['start'][_0x25a973(_0x3a6921._0x3f3887,0x608,0x4b4,_0x3a6921._0x2a8d38)]+0x1);})[_0x3dd1de(_0xbb24cf._0xbe7f82,0x3cc,_0xbb24cf._0x1ed307,0x521)]('\x0a');}function formatDiagnostics(_0x4ea36c){const _0x2b98af={_0x3c3e2f:0x2cf,_0x2c65f2:0x1ca,_0x1189ce:0x1db,_0x466105:0x34a,_0x9671a3:0x2e2},_0x25287b={_0x44495b:0x14a,_0x25f24d:0x323,_0x1f44a3:0x2a2,_0x5a6ae5:0x30e,_0x276d2f:0x35d,_0x17ff0f:0x4d,_0x2c4505:0x1a9,_0x1b0734:0x107,_0x8e3cfe:0x253,_0x52c9e0:0xea,_0x49ad6b:0x93,_0x339de2:0x7d},_0x236383={_0x254095:0x1ef,_0x168548:0xc5},_0x335b8d={_0x211769:0x18},_0x1dfa26={_0xc790f1:0x1e6,_0x573a73:0x1ea};function _0x1f7db3(_0xad55b9,_0x510cb8,_0x3547aa,_0x3559cb){return _0x57b9de(_0xad55b9-_0x1dfa26._0xc790f1,_0x510cb8,_0x3559cb- -_0x1dfa26._0x573a73,_0x3559cb-0x184);}function _0x2b2be2(_0x4d1fc6,_0x3f4fd0,_0x332ec4,_0x489d65){return _0x23b1c2(_0x4d1fc6-0x1a2,_0x489d65,_0x3f4fd0- -0xc7,_0x489d65-_0x335b8d._0x211769);}if(_0x4ea36c[_0x2b2be2(0x2e7,0x3e2,_0x2b98af._0x3c3e2f,0x524)]===0x0)return _0x2b2be2(_0x2b98af._0x2c65f2,0x193,_0x2b98af._0x1189ce,0x4e);return _0x4ea36c[_0x1f7db3(0x257,0x2f1,0x39f,_0x2b98af._0x466105)](_0x1b97b1=>{const _0x5740b2={_0x59c1b6:0x169,_0x137de0:0x173,_0x57863f:0x228};function _0x5ef726(_0x7d34cb,_0x11bb31,_0x5ac961,_0x51ffd7){return _0x1f7db3(_0x7d34cb-_0x236383._0x254095,_0x51ffd7,_0x5ac961-_0x236383._0x168548,_0x11bb31- -0xfb);}const _0x391649=_0x1b97b1['range'][_0xb7cbe9(0x2d,-0x102,-0x14,-_0x25287b._0x44495b)];function _0xb7cbe9(_0x55d990,_0x194042,_0x31a63a,_0x464188){return _0x1f7db3(_0x55d990-_0x5740b2._0x59c1b6,_0x55d990,_0x31a63a-_0x5740b2._0x137de0,_0x31a63a- -_0x5740b2._0x57863f);}return severityName(_0x1b97b1[_0x5ef726(_0x25287b._0x25f24d,_0x25287b._0x1f44a3,_0x25287b._0x5a6ae5,_0x25287b._0x276d2f)])+'\x20['+(_0x391649[_0xb7cbe9(-0xb8,-0xe7,_0x25287b._0x17ff0f,0x19f)]+0x1)+':'+(_0x391649[_0x5ef726(_0x25287b._0x2c4505,_0x25287b._0x1b0734,0x245,_0x25287b._0x8e3cfe)]+0x1)+']\x20'+_0x1b97b1[_0xb7cbe9(_0x25287b._0x52c9e0,0x1b4,_0x25287b._0x49ad6b,_0x25287b._0x339de2)];})[_0x2b2be2(0x36a,0x22a,0x285,_0x2b98af._0x9671a3)]('\x0a');}function formatIncomingCalls(_0x311e94){const _0x465d1e={_0xbe4565:0x6d7,_0x2ad426:0x57f,_0x288a05:0x6fe,_0x3c1722:0x2c1,_0x288d5c:0x200,_0x5c9a8e:0x2c4},_0x17e5ea={_0x3bfbe5:0x45,_0x73c03b:0x30,_0x2a6774:0xf4},_0x568c72={_0x4633e4:0x141};if(_0x311e94[_0x51275f(0x639,0x76e,0x698,_0x465d1e._0xbe4565)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x51275f(_0x1a73b5,_0x4509f6,_0x480e02,_0xf96010){return _0x57b9de(_0x1a73b5-0x10e,_0xf96010,_0x480e02-_0x568c72._0x4633e4,_0xf96010-0x1f3);}function _0x58a509(_0xd95fb5,_0x277abc,_0x5758b5,_0x2c2775){return _0x23b1c2(_0xd95fb5-_0x17e5ea._0x3bfbe5,_0x277abc,_0xd95fb5- -_0x17e5ea._0x73c03b,_0x2c2775-_0x17e5ea._0x2a6774);}return _0x311e94[_0x51275f(_0x465d1e._0x2ad426,0x598,0x675,_0x465d1e._0x288a05)](_0xafc35=>_0xafc35['from'][_0x58a509(0x335,0x26c,0x28d,0x2ad)])[_0x58a509(_0x465d1e._0x3c1722,_0x465d1e._0x288d5c,_0x465d1e._0x5c9a8e,0x29f)]('\x0a');}function formatOutgoingCalls(_0x537b4f){const _0xb7e62f={_0x26f841:0x7e6,_0x5a2a8a:0x80a,_0x4e1071:0x7b6,_0x2ba9c1:0x3c4,_0x524bfa:0x176},_0x176025={_0x3b9510:0x30d,_0x38305f:0x14},_0x3a5abd={_0x502ceb:0x5f,_0x39d4be:0xdd};function _0x25adaf(_0x18623a,_0x47c9e3,_0x1e0577,_0x50eaea){return _0x23b1c2(_0x18623a-_0x3a5abd._0x502ceb,_0x47c9e3,_0x18623a- -0x2d,_0x50eaea-_0x3a5abd._0x39d4be);}function _0xfc9fb(_0x5610af,_0x245e80,_0x486995,_0x1176e7){return _0x23b1c2(_0x5610af-0x2,_0x5610af,_0x1176e7-_0x176025._0x3b9510,_0x1176e7-_0x176025._0x38305f);}if(_0x537b4f[_0xfc9fb(0x6e1,_0xb7e62f._0x26f841,_0xb7e62f._0x5a2a8a,_0xb7e62f._0x4e1071)]===0x0)return'No\x20call\x20hierarchy\x20results';return _0x537b4f[_0x25adaf(0x459,0x32f,0x4fc,_0xb7e62f._0x2ba9c1)](_0x327dce=>_0x327dce['to']['name'])[_0x25adaf(0x2c4,0x258,0x1cd,_0xb7e62f._0x524bfa)]('\x0a');}function toStructured(_0xd0b86d){const _0x53b71c={_0x43f8c7:0x2e6,_0x23ef7d:0x2ea,_0xe78d53:0x403,_0x329d20:0x371,_0x4c02ca:0x45d},_0x164475={_0x1db286:0x115,_0x1689f6:0x55},_0x57da0e={_0x10f479:0xba,_0x841211:0x3c};function _0xffd5cd(_0x45fec9,_0xb3ebcb,_0x58c160,_0x2d5755){return _0x57b9de(_0x45fec9-_0x57da0e._0x10f479,_0xb3ebcb,_0x58c160- -_0x57da0e._0x841211,_0x2d5755-0x191);}function _0x202a2f(_0x419d64,_0x10757e,_0x540a5e,_0x4cc892){return _0x57b9de(_0x419d64-_0x164475._0x1db286,_0x10757e,_0x4cc892- -0x38d,_0x4cc892-_0x164475._0x1689f6);}return JSON[_0xffd5cd(0x40d,_0x53b71c._0x43f8c7,0x2fd,_0x53b71c._0x23ef7d)](JSON[_0xffd5cd(_0x53b71c._0xe78d53,_0x53b71c._0x329d20,0x3e0,_0x53b71c._0x4c02ca)](_0xd0b86d));}async function assertFile(_0x4fbd07){const _0x5150a4={_0x20d813:0x45e,_0x238fbe:0x59c,_0x11555b:0x487},_0x4d1a2e={_0x1ebb92:0x121},_0xab9b1b={_0x1aa034:0x201,_0x4e2670:0x141};function _0x3f6c96(_0x39c52a,_0x46ecdf,_0x57fdc6,_0x56d5e6){return _0x23b1c2(_0x39c52a-0x40,_0x46ecdf,_0x56d5e6-_0xab9b1b._0x1aa034,_0x56d5e6-_0xab9b1b._0x4e2670);}function _0x4fd9f1(_0x172fae,_0x4293fd,_0x11c437,_0x101636){return _0x23b1c2(_0x172fae-0x185,_0x172fae,_0x11c437- -0x5d,_0x101636-_0x4d1a2e._0x1ebb92);}const _0x295b63=await _0x60fde(_0x4fbd07);if(!_0x295b63[_0x3f6c96(_0x5150a4._0x20d813,_0x5150a4._0x238fbe,0x435,_0x5150a4._0x11555b)]())throw new ToolExecutionError(_0x3f6c96(0x6d3,0x712,0x4bf,0x5dc)+_0x4fbd07,{'path':_0x4fbd07});}function validatePosition(_0x4f9e10,_0x144336){const _0x35937d={_0xe31ca2:0x171,_0x4461aa:0x143,_0xadad1b:0x295,_0x323ace:0x758,_0x1a8f0c:0x7ea,_0x4a071c:0x73d},_0x3fde1a={_0x5ccbaf:0x2e7,_0x43f8b8:0xa8},_0x1564fb={_0x532dbd:0x26};function _0x5cc289(_0x4935a5,_0x12e7f1,_0xf73058,_0x32f449){return _0x57b9de(_0x4935a5-_0x1564fb._0x532dbd,_0x4935a5,_0x32f449-0x286,_0x32f449-0x5b);}if(!Number[_0x592f5d(_0x35937d._0xe31ca2,0x11b,_0x35937d._0x4461aa,_0x35937d._0xadad1b)](_0x4f9e10)||_0x4f9e10<0x1)throw new ToolExecutionError(_0x5cc289(_0x35937d._0x323ace,0x8e9,0x6f2,_0x35937d._0x1a8f0c),{'line':_0x4f9e10});function _0x592f5d(_0x18e6be,_0x2c32c6,_0x2be209,_0x2ab9e5){return _0x57b9de(_0x18e6be-0xb3,_0x2c32c6,_0x18e6be- -_0x3fde1a._0x5ccbaf,_0x2ab9e5-_0x3fde1a._0x43f8b8);}if(!Number[_0x5cc289(_0x35937d._0x4a071c,0x772,0x59c,0x6de)](_0x144336)||_0x144336<0x1)throw new ToolExecutionError(_0x592f5d(0x1ff,0xd3,0x10b,0x31a),{'character':_0x144336});}function createLspTool(_0x14d5c5={}){const _0x5a580b={_0x11ebf6:0x49f,_0x32a1d5:0x4b2,_0x196e42:0x558,_0x17b575:0x675,_0x452391:0x5cf,_0x683a37:0x534,_0x492270:0x561,_0x591d11:0x2af,_0x5d4246:0x18c,_0x37b3db:0x67a,_0x26e728:0x159,_0x8a6e25:0x11c,_0xc1bd6d:0xf6,_0x5c9b12:0x16d,_0x316e36:0x3b4,_0x1ae077:0x124,_0x132c6d:0x1a,_0x59e7c1:0xab,_0x19e077:0x158,_0x2c91e4:0x185,_0x14a0a5:0xc3,_0x68eba0:0x14e,_0xdd160b:0x12e,_0x55491b:0x32e,_0x1331cc:0x232,_0x4c30fd:0x545,_0x44d7d3:0x681,_0x2da9c2:0x61c,_0x50f758:0x435,_0x47958c:0xc0,_0x34903d:0x11d,_0x400b74:0x605,_0x23cf4e:0x67b,_0x3c2463:0x41d,_0x383679:0x502,_0x4a46f4:0x454,_0x3b18a3:0x3a3,_0x270d2b:0x12f,_0x20c41e:0xee,_0x1d82f0:0x106,_0x4767c3:0xf,_0x159a66:0x225,_0x4826ae:0x142,_0x243d01:0x141,_0x5e4434:0xcf},_0x1cf852={_0x4863db:0x9f,_0x580550:0x1e8,_0x2e880d:0x3dd,_0x58603a:0x4ef,_0x384903:0x31c,_0x1d1fce:0x3d4,_0x4194a7:0x445,_0x41f3be:0x19d,_0xd00a27:0x2da,_0x4f2682:0x2d6,_0xb3e757:0x49b,_0x63aa8e:0x555,_0x47713a:0x1b0,_0x2bd55a:0x8a,_0xfdeeb:0x4c8,_0xad53d:0x3bc,_0x3140e7:0x1df,_0xb78211:0x185,_0x26a920:0xd,_0x34582c:0x86,_0x3669bc:0x13b,_0x4c4f06:0x344,_0x2b2577:0x479,_0x1966c1:0x321,_0x21a51c:0x416,_0x4c3f10:0x48,_0x380fc6:0x16e,_0x397a1a:0x349,_0x8d91f6:0x377,_0x5f4c4c:0x3cf,_0x3e35d9:0x3ea,_0x19adea:0x36a,_0x500411:0x203,_0x7ca544:0x252,_0x5bd18a:0x3fd,_0x459ee3:0x77,_0x5b6111:0x2e,_0x3bef3c:0x96,_0x15b9ca:0x426,_0x26242f:0xb8,_0x40a332:0x145,_0x537ea2:0x286,_0x477dbf:0x43c,_0x14527c:0x247,_0x4c893b:0x2ca,_0x25e93c:0x28f,_0x4566e3:0x3af,_0x4d2571:0x4d4,_0x5a3d9f:0x44c,_0x228417:0x2fc,_0x99b707:0x3af,_0x1c9316:0x48a,_0x3b4e95:0x492,_0x2685a2:0x459,_0x101a95:0x45a,_0x2528b5:0x3ae},_0x2b68a5={_0x5de75b:0x163},_0x5841df={_0x38f4a9:0x22},_0x1ef455=_0x12fac7[_0x2aa790(0x50c,0x4b3,0x475,_0x5a580b._0x11ebf6)](_0x14d5c5['defaultCwd']??process[_0x2aa790(_0x5a580b._0x32a1d5,0x3aa,0x3f8,_0x5a580b._0x196e42)]());function _0x1d1511(_0x33f297,_0x4d08b6,_0x2dead4,_0x31681e){return _0x57b9de(_0x33f297-_0x5841df._0x38f4a9,_0x33f297,_0x31681e- -0x31d,_0x31681e-0x1d3);}const _0x1e5e26=(_0x14d5c5[_0x2aa790(0x5f4,_0x5a580b._0x17b575,_0x5a580b._0x452391,0x5ff)]??[])['map'](_0x594766=>_0x12fac7[_0x2aa790(0x50c,0x591,0x3c1,0x631)](_0x594766)),_0x204eb6=_0x14d5c5[_0x2aa790(_0x5a580b._0x683a37,_0x5a580b._0x492270,0x660,0x52f)]??_0x1d1511(_0x5a580b._0x591d11,_0x5a580b._0x5d4246,0x99,0x1d5);function _0x2aa790(_0x21eff0,_0x408f41,_0x301f01,_0x7518b){return _0x23b1c2(_0x21eff0-0xa7,_0x408f41,_0x21eff0-0x1cf,_0x7518b-_0x2b68a5._0x5de75b);}return defineTool({'name':_0x204eb6,'description':_0x2aa790(0x589,0x57e,_0x5a580b._0x37b3db,0x598),'inputSchema':{'type':_0x1d1511(_0x5a580b._0x26e728,_0x5a580b._0x8a6e25,_0x5a580b._0xc1bd6d,_0x5a580b._0x5c9b12),'properties':{'operation':{'type':_0x2aa790(0x454,_0x5a580b._0x316e36,0x435,0x3ed),'enum':['goToDefinition',_0x1d1511(_0x5a580b._0x1ae077,-0xac,-0xad,-_0x5a580b._0x132c6d),_0x1d1511(0x159,_0x5a580b._0x59e7c1,0x64,_0x5a580b._0x19e077),_0x1d1511(0x9b,_0x5a580b._0x2c91e4,0xd8,_0x5a580b._0x14a0a5),_0x1d1511(_0x5a580b._0x68eba0,_0x5a580b._0xdd160b,_0x5a580b._0x55491b,_0x5a580b._0x1331cc),_0x2aa790(_0x5a580b._0x4c30fd,_0x5a580b._0x44d7d3,_0x5a580b._0x2da9c2,_0x5a580b._0x50f758),_0x1d1511(-0x3c,-0xdf,0x81,-0x3),_0x1d1511(0x2c,_0x5a580b._0x47958c,0x35,_0x5a580b._0x34903d),_0x2aa790(_0x5a580b._0x400b74,0x536,_0x5a580b._0x23cf4e,0x724),_0x2aa790(_0x5a580b._0x3c2463,0x4bb,0x379,_0x5a580b._0x383679)]},'filePath':{'type':_0x2aa790(_0x5a580b._0x4a46f4,0x452,0x57a,_0x5a580b._0x3b18a3)},'line':{'type':_0x1d1511(0xc8,0xcd,0x20d,0x200)},'character':{'type':_0x1d1511(_0x5a580b._0x270d2b,0x1c0,_0x5a580b._0x20c41e,0x200)},'query':{'type':'string'}},'required':['operation','filePath',_0x1d1511(_0x5a580b._0x1d82f0,_0x5a580b._0x4767c3,_0x5a580b._0x159a66,_0x5a580b._0x4826ae),_0x1d1511(_0x5a580b._0x132c6d,_0x5a580b._0x243d01,-0x39,_0x5a580b._0x5e4434)]},async *'execute'(_0x3ead77){const _0x2fa996={_0xee8e6a:0x27},_0x1d6a33={_0x5b23fa:0x1ac,_0x55a506:0x1db,_0x18167d:0x6f},_0xb8c1c6=_0x14d5c5[_0x45effa(_0x1cf852._0x4863db,0x207,_0x1cf852._0x580550,0xdb)];function _0x550b68(_0x28f37d,_0x3ba9d9,_0x595676,_0x421893){return _0x2aa790(_0x421893- -_0x1d6a33._0x5b23fa,_0x28f37d,_0x595676-_0x1d6a33._0x55a506,_0x421893-_0x1d6a33._0x18167d);}if(!_0xb8c1c6)throw new ToolExecutionError(_0x550b68(0x573,0x521,0x515,0x508));if(!_0xb8c1c6['isEnabled']())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x4d6cf3=_0x3ead77[_0x550b68(_0x1cf852._0x2e880d,0x429,0x42b,0x370)];validatePosition(_0x3ead77[_0x550b68(_0x1cf852._0x58603a,0x3ca,_0x1cf852._0x384903,_0x1cf852._0x1d1fce)],_0x3ead77['character']);if(_0x4d6cf3==='workspaceSymbol'){if(!_0x3ead77[_0x550b68(0x36a,_0x1cf852._0x4194a7,0x35f,0x3bc)]?.[_0x550b68(0x264,_0x1cf852._0x41f3be,_0x1cf852._0xd00a27,_0x1cf852._0x4f2682)]())throw new ToolExecutionError(_0x550b68(0x46a,_0x1cf852._0xb3e757,_0x1cf852._0x63aa8e,0x413));const _0x5647a4=await _0xb8c1c6['workspaceSymbol'](_0x3ead77[_0x45effa(_0x1cf852._0x47713a,0x9f,0xb9,_0x1cf852._0x2bd55a)]['trim']());return yield createToolOutput(formatSymbols(_0x5647a4),{'operation':_0x4d6cf3,'query':_0x3ead77[_0x550b68(_0x1cf852._0xfdeeb,0x3e7,0x4a4,_0x1cf852._0xad53d)],'symbols':_0x5647a4}),void 0x0;}const _0x4038e9=resolveAllowedPath(_0x1ef455,_0x1e5e26,_0x3ead77[_0x45effa(_0x1cf852._0x3140e7,_0x1cf852._0xb78211,0x113,-_0x1cf852._0x26a920)]);function _0x45effa(_0x1a21d5,_0x4959b6,_0x2ca31c,_0x4f8396){return _0x1d1511(_0x1a21d5,_0x4959b6-_0x2fa996._0xee8e6a,_0x2ca31c-0x4c,_0x2ca31c- -0x71);}await assertFile(_0x4038e9);if(!await _0xb8c1c6[_0x45effa(0x291,_0x1cf852._0x34582c,0x1bb,_0x1cf852._0x3669bc)](_0x4038e9))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3ead77[_0x550b68(_0x1cf852._0x4c4f06,_0x1cf852._0x2b2577,_0x1cf852._0x1966c1,_0x1cf852._0x21a51c)],{'filePath':_0x3ead77['filePath']});await _0xb8c1c6[_0x45effa(0x298,_0x1cf852._0x4c3f10,_0x1cf852._0x380fc6,0x24b)](_0x4038e9,!![]);const _0xbaf245={'file':_0x4038e9,'line':_0x3ead77['line']-0x1,'character':_0x3ead77[_0x550b68(0x429,0x323,0x247,0x361)]-0x1};switch(_0x4d6cf3){case _0x550b68(_0x1cf852._0x397a1a,0x414,_0x1cf852._0x8d91f6,0x3ea):{const _0x2365a8=await _0xb8c1c6[_0x550b68(0x455,0x379,_0x1cf852._0x5f4c4c,_0x1cf852._0x3e35d9)](_0xbaf245);return yield createToolOutput(formatHover(_0x2365a8),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'hover':_0x2365a8}),void 0x0;}case'diagnostics':{const _0x2f6b93=await _0xb8c1c6[_0x550b68(_0x1cf852._0x19adea,0x30b,_0x1cf852._0x500411,0x312)](_0x4038e9);return yield createToolOutput(formatDiagnostics(_0x2f6b93),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'diagnostics':_0x2f6b93}),void 0x0;}case'goToDefinition':{const _0x137c55=await _0xb8c1c6['definition'](_0xbaf245);return yield createToolOutput(formatLocations(_0x137c55),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'locations':_0x137c55}),void 0x0;}case'findReferences':{const _0x5d7caf=await _0xb8c1c6[_0x550b68(0x271,_0x1cf852._0x7ca544,_0x1cf852._0x5bd18a,0x2ea)](_0xbaf245);return yield createToolOutput(formatLocations(_0x5d7caf),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'locations':_0x5d7caf}),void 0x0;}case _0x45effa(_0x1cf852._0x459ee3,-_0x1cf852._0x5b6111,_0x1cf852._0x3bef3c,0xa0):{const _0x41b55c=await _0xb8c1c6[_0x550b68(0x36b,0x4df,0x43f,_0x1cf852._0x15b9ca)](_0xbaf245);return yield createToolOutput(formatLocations(_0x41b55c),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'locations':_0x41b55c}),void 0x0;}case _0x45effa(-0xb9,_0x1cf852._0x26242f,0x52,_0x1cf852._0x40a332):{const _0x562e03=await _0xb8c1c6[_0x550b68(_0x1cf852._0x537ea2,_0x1cf852._0x477dbf,_0x1cf852._0x14527c,0x355)](_0x4038e9);return yield createToolOutput(formatSymbols(_0x562e03),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'symbols':_0x562e03}),void 0x0;}case _0x550b68(0x2d6,_0x1cf852._0x4c893b,0x1c8,_0x1cf852._0x25e93c):{const _0x488d6b=await _0xb8c1c6['prepareCallHierarchy'](_0xbaf245);return yield createToolOutput(formatSymbols(_0x488d6b),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'symbols':toStructured(_0x488d6b)}),void 0x0;}case _0x550b68(0x4cb,0x4ce,0x445,_0x1cf852._0x4566e3):{const _0x5d4f7e=await _0xb8c1c6[_0x550b68(_0x1cf852._0x4d2571,_0x1cf852._0x5a3d9f,_0x1cf852._0x228417,_0x1cf852._0x99b707)](_0xbaf245);return yield createToolOutput(formatIncomingCalls(_0x5d4f7e),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'calls':toStructured(_0x5d4f7e)}),void 0x0;}case _0x550b68(_0x1cf852._0x1c9316,0x371,_0x1cf852._0x3b4e95,_0x1cf852._0x2685a2):{const _0x5b6860=await _0xb8c1c6[_0x550b68(_0x1cf852._0x101a95,_0x1cf852._0x2528b5,0x385,0x459)](_0xbaf245);return yield createToolOutput(formatOutgoingCalls(_0x5b6860),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'calls':toStructured(_0x5b6860)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x2838f9,readFile as _0x22bd93,writeFile as _0x51c598}from'fs/promises';import{join as _0x12822a}from'path';function sanitizeStorageKey(_0x4db57c){const _0x4cc4e2={_0x47dfba:0x500,_0x1634c5:0x51f,_0x4eefe6:0x51e,_0x401d2a:0x664,_0x228ae1:0x51f,_0xb54f32:0x2e4,_0x6c0f53:0x29f},_0x27a2be={_0x37d5dd:0x14a,_0x3d8c8d:0x10a};function _0x5a4a97(_0x4e587d,_0x3e5d87,_0x1d37ad,_0x4559d9){return _0x57b9de(_0x4e587d-_0x27a2be._0x37d5dd,_0x4e587d,_0x3e5d87- -_0x27a2be._0x3d8c8d,_0x4559d9-0x1e8);}function _0x3fb393(_0x58c98e,_0x429b3f,_0x3525a5,_0x428516){return _0x23b1c2(_0x58c98e-0x7f,_0x429b3f,_0x3525a5-0xe0,_0x428516-0xcc);}return _0x4db57c[_0x3fb393(_0x4cc4e2._0x47dfba,0x52f,_0x4cc4e2._0x1634c5,_0x4cc4e2._0x4eefe6)](/[^a-zA-Z0-9_]+/g,'_')[_0x3fb393(_0x4cc4e2._0x401d2a,0x3d6,_0x4cc4e2._0x228ae1,0x4f1)](/^_+|_+$/g,'')||_0x5a4a97(0x20c,_0x4cc4e2._0xb54f32,_0x4cc4e2._0x6c0f53,0x2d3);}function storagePath(_0x9209c){const _0x1b0c65={_0x5253da:0x338,_0x220a73:0x305,_0x21a0e9:0x3e2,_0x5a141e:0x2dd,_0x3c7828:0x3c5,_0x52f95b:0x496,_0x49f174:0xb0},_0x41ce7f={_0x31386a:0x3ba,_0x124bc8:0x16c},_0x3c0853=sanitizeStorageKey(_0x9209c[_0x598c87(0x154,_0x1b0c65._0x5253da,_0x1b0c65._0x220a73,0x24d)][_0x598c87(_0x1b0c65._0x21a0e9,0x488,_0x1b0c65._0x5a141e,_0x1b0c65._0x3c7828)]?.[_0x598c87(0x227,0x3da,_0x1b0c65._0x52f95b,0x37a)]??_0x9209c['serverName']);function _0x11d45c(_0x2ea391,_0x1f8768,_0x5f3b4c,_0x1e3144){return _0x23b1c2(_0x2ea391-0x148,_0x1e3144,_0x2ea391- -_0x41ce7f._0x31386a,_0x1e3144-_0x41ce7f._0x124bc8);}function _0x598c87(_0x40434b,_0x3ed9d0,_0x3c5b69,_0x5670e4){return _0x57b9de(_0x40434b-0x1c6,_0x3c5b69,_0x5670e4- -0x190,_0x5670e4-0x139);}return _0x12822a(_0x9209c['storageDir'],_0x3c0853+_0x11d45c(-0xd1,-0xa6,-_0x1b0c65._0x49f174,-0x148));}async function readStore(_0x1fc9ae){const _0x348c25={_0x4f5c4c:0x137,_0x43443f:0x122,_0x51db72:0x5bd,_0x2ac182:0xdb,_0xfcc178:0x39c,_0x2eb604:0x3cd},_0x4c4c6c={_0x8fd1a2:0xe3,_0x97713:0x1b4},_0x13e776={_0x58824e:0x74,_0x1f0d5f:0x106};function _0x40f63d(_0x3769e3,_0x3874a3,_0x1ce5e5,_0x45bba3){return _0x23b1c2(_0x3769e3-0x51,_0x3874a3,_0x45bba3-_0x13e776._0x58824e,_0x45bba3-_0x13e776._0x1f0d5f);}function _0x321bb5(_0x409986,_0x16d394,_0x134ae9,_0x1a793a){return _0x23b1c2(_0x409986-_0x4c4c6c._0x8fd1a2,_0x1a793a,_0x134ae9- -0x3ad,_0x1a793a-_0x4c4c6c._0x97713);}try{return JSON[_0x321bb5(-_0x348c25._0x4f5c4c,-0x1b3,-_0x348c25._0x43443f,-0x11d)](await _0x22bd93(_0x1fc9ae,_0x40f63d(0x3e7,0x40e,_0x348c25._0x51db72,0x47c)));}catch(_0x2ab490){if(_0x2ab490 instanceof Error&&_0x321bb5(0x124,0x5e,_0x348c25._0x2ac182,0xff)in _0x2ab490&&_0x2ab490['code']===_0x40f63d(0x50c,_0x348c25._0xfcc178,0x3ac,_0x348c25._0x2eb604))return{};throw _0x2ab490;}}async function writeStore(_0x584432,_0x13a6bb){const _0x6a625a={_0x321b2d:0x256,_0x241cf6:0x299},_0x1bb30f={_0x75950d:0x1c6,_0x2e5b47:0x6c},_0x40ef85={_0x2d27bf:0x85,_0x1d8cf0:0x296};await _0x2838f9(_0x12822a(_0x584432,'..'),{'recursive':!![]});function _0x58337f(_0x1f51d5,_0x5551d6,_0x34787c,_0x516466){return _0x23b1c2(_0x1f51d5-_0x40ef85._0x2d27bf,_0x34787c,_0x5551d6- -_0x40ef85._0x1d8cf0,_0x516466-0x1ca);}function _0x1cc955(_0x149775,_0x1eaee1,_0x258a99,_0x2c2f7f){return _0x57b9de(_0x149775-0x1c,_0x1eaee1,_0x149775- -_0x1bb30f._0x75950d,_0x2c2f7f-_0x1bb30f._0x2e5b47);}await _0x51c598(_0x584432,JSON[_0x1cc955(_0x6a625a._0x321b2d,0x31c,0x16a,0x1a9)](_0x13a6bb,null,0x2),_0x58337f(0x1f4,0x172,_0x6a625a._0x241cf6,0x242));}async function updateStore(_0x3468ba,_0x5ab371){const _0x11b4df=await readStore(_0x3468ba);_0x5ab371(_0x11b4df),await writeStore(_0x3468ba,_0x11b4df);}function createMcpOAuthProvider(_0x41f603){const _0x3e41d0={_0x426fe0:0x278,_0x21322b:0x2ec,_0x217538:0x224,_0x13fb33:0x55,_0x58fabb:0x190,_0x156e76:0x16e,_0x1a5427:0xda,_0x4aff06:0x541,_0x4424c1:0x4f0,_0x49d9d5:0x14d,_0x33bbd2:0x294,_0x1730c9:0x160,_0x5ce730:0x4e0,_0x22588e:0x4ea,_0x2de006:0x1e4,_0x54f8ad:0x2a0,_0x55262a:0x9f,_0xb8d4b0:0x416,_0x225fd2:0x35f,_0x4ab439:0x55c,_0x57737b:0x120,_0x4f3a96:0x52e,_0x2c8538:0x60e,_0x4ec364:0x6a6,_0x592517:0x6ba,_0x8526c0:0x534,_0x105b5f:0x61e,_0x321cf1:0x584},_0x21e989={_0x2dcc7f:0x40d,_0x5f44b3:0x445},_0x54d50d={_0xb3e8a3:0x7c2,_0x5b6544:0x7c5,_0x57527e:0x6a7,_0x30ea1f:0x648,_0x4f9eb9:0x72c,_0x575d6f:0x787,_0x205cb4:0x6ac,_0x9c9ffc:0x77c,_0x5cfbb9:0x5af,_0x52229a:0x78f,_0x942036:0x695,_0x544ef9:0x5a5,_0x116148:0x592,_0xa832ac:0x5c7,_0x2a807c:0x58a,_0x32f8ea:0x6a2,_0xe63b1c:0x57c},_0x627ba0={_0x210e3d:0x1a7},_0x528f54={_0x3f65da:0x21a},_0x8e11de={_0x3f5e3e:0x5ae,_0x50c875:0x7a8,_0x22f88d:0x732},_0x46143b={_0x4c6982:0x12e},_0x463631={_0x3ccd6d:0x1db,_0x505743:0x74},_0x1bace0={_0x178cb8:0x1f7,_0x16695a:0xd6,_0x2b5ff2:0x3dc,_0x28640f:0x3e1},_0x3a05a0={_0x349b7f:0xae},_0xf93a1e={_0x5e8a6e:0x103,_0x2f14cc:0x1ae,_0x5b3cd3:0x30f},_0xf199a1={_0x271582:0x90,_0x4ae774:0x3f},_0x249ecb={_0x2f76af:0x126},_0xd3a969={_0x42145c:0x167},_0x20d400={_0x1d8a51:0x8a,_0x143a3c:0x22b,_0x3ada97:0xa8},_0x577d74=storagePath(_0x41f603),_0x358371=_0x41f603['config'][_0x4958c4(_0x3e41d0._0x426fe0,0x32a,_0x3e41d0._0x21322b,_0x3e41d0._0x217538)]?.[_0x4958c4(_0x3e41d0._0x13fb33,_0x3e41d0._0x58fabb,_0x3e41d0._0x156e76,_0x3e41d0._0x1a5427)]?.[_0x466343(0x5a2,_0x3e41d0._0x4aff06,_0x3e41d0._0x4424c1,0x400)]('\x20');function _0x4958c4(_0x532a28,_0x76241e,_0x421c1e,_0x107cfb){return _0x57b9de(_0x532a28-_0x20d400._0x1d8a51,_0x532a28,_0x76241e- -_0x20d400._0x143a3c,_0x107cfb-_0x20d400._0x3ada97);}const _0x376305={'client_name':_0x4958c4(0x200,_0x3e41d0._0x49d9d5,_0x3e41d0._0x33bbd2,_0x3e41d0._0x1730c9),'redirect_uris':[_0x41f603[_0x466343(_0x3e41d0._0x5ce730,0x5af,0x5e2,_0x3e41d0._0x22588e)]],'grant_types':[_0x4958c4(0x326,_0x3e41d0._0x2de006,_0x3e41d0._0x54f8ad,_0x3e41d0._0x55262a),_0x466343(_0x3e41d0._0xb8d4b0,_0x3e41d0._0x225fd2,0x46c,_0x3e41d0._0x4ab439)],'response_types':['code'],'token_endpoint_auth_method':_0x4958c4(0xe7,0x1d1,_0x3e41d0._0x57737b,0x2bf),..._0x358371?{'scope':_0x358371}:{}};function _0x466343(_0x2cf672,_0x3ae705,_0x35f10d,_0x297901){return _0x57b9de(_0x2cf672-_0xd3a969._0x42145c,_0x297901,_0x35f10d-0x151,_0x297901-0x10a);}return{'clientMetadataUrl':_0x41f603[_0x466343(0x411,0x542,_0x3e41d0._0x4f3a96,_0x3e41d0._0x2c8538)][_0x466343(0x7f6,0x6d1,_0x3e41d0._0x4ec364,_0x3e41d0._0x592517)]?.[_0x466343(0x725,_0x3e41d0._0x8526c0,_0x3e41d0._0x105b5f,_0x3e41d0._0x321cf1)],get 'redirectUrl'(){function _0xe95f21(_0x2e865a,_0x107347,_0x59fa37,_0x331449){return _0x466343(_0x2e865a-0x1d2,_0x107347-_0x249ecb._0x2f76af,_0x59fa37- -0x552,_0x2e865a);}return _0x41f603[_0xe95f21(0x1d9,0x18f,_0xf199a1._0x271582,_0xf199a1._0x4ae774)];},get 'clientMetadata'(){return _0x376305;},async 'state'(){const _0x418d52={_0xdba13:0x48f,_0x3693c0:0x594,_0x28c39e:0x593,_0x50f812:0x42b},_0x51144e=await readStore(_0x577d74);if(_0x51144e[_0x45993c(_0x1bace0._0x178cb8,0x333,0x25b,_0x1bace0._0x16695a)])return _0x51144e[_0x245570(0x557,_0x1bace0._0x2b5ff2,_0x1bace0._0x28640f,0x458)];function _0x45993c(_0x32f748,_0x5ca811,_0x3395ec,_0x41194f){return _0x466343(_0x32f748-_0xf93a1e._0x5e8a6e,_0x5ca811-_0xf93a1e._0x2f14cc,_0x32f748- -_0xf93a1e._0x5b3cd3,_0x41194f);}function _0x245570(_0x20c05d,_0x2b5e2f,_0x23fd1f,_0x1c5d81){return _0x466343(_0x20c05d-0x0,_0x2b5e2f-0xf8,_0x1c5d81- -_0x3a05a0._0x349b7f,_0x23fd1f);}const _0x5bf261=randomUUID();return await updateStore(_0x577d74,_0x16601a=>{function _0x470359(_0x20a9ba,_0x52ccdd,_0x235886,_0x58fe71){return _0x45993c(_0x20a9ba-0x298,_0x52ccdd-0x1db,_0x235886-0xc2,_0x52ccdd);}_0x16601a[_0x470359(_0x418d52._0xdba13,_0x418d52._0x3693c0,_0x418d52._0x28c39e,_0x418d52._0x50f812)]=_0x5bf261;}),_0x5bf261;},async 'clientInformation'(){function _0x46e736(_0x48f2ce,_0x18cc4f,_0x589883,_0x1ccc68){return _0x4958c4(_0x589883,_0x18cc4f-0x153,_0x589883-_0x463631._0x3ccd6d,_0x1ccc68-_0x463631._0x505743);}return(await readStore(_0x577d74))[_0x46e736(0x34e,0x322,0x21a,0x2e5)];},async 'saveClientInformation'(_0x37ed19){const _0x34a48b={_0x5137b9:0x123,_0x4fb053:0x1e7};await updateStore(_0x577d74,_0x47c2bc=>{function _0x22d12f(_0x350a78,_0x3b36e5,_0x2afc1b,_0xe4b8ef){return _0x27a7(_0x2afc1b- -0xcd,_0xe4b8ef);}_0x47c2bc[_0x22d12f(0x325,_0x34a48b._0x5137b9,_0x34a48b._0x4fb053,0x2bd)]=_0x37ed19;});},async 'tokens'(){function _0x936883(_0x57d2f2,_0x1c2edd,_0x16d42d,_0x4113c9){return _0x466343(_0x57d2f2-0x18b,_0x1c2edd-0x32,_0x57d2f2-_0x46143b._0x4c6982,_0x4113c9);}return(await readStore(_0x577d74))[_0x936883(0x6ac,_0x8e11de._0x3f5e3e,_0x8e11de._0x50c875,_0x8e11de._0x22f88d)];},async 'saveTokens'(_0x24564f){const _0x1f1a1d={_0x543f58:0x33f,_0x20ae1c:0x351,_0x5025ee:0x3bf};await updateStore(_0x577d74,_0x43491d=>{const _0x189e44={_0x159a82:0xd8};function _0x549505(_0x138df8,_0x255340,_0x35d4f2,_0x13f971){return _0x27a7(_0x13f971-_0x189e44._0x159a82,_0x138df8);}_0x43491d[_0x549505(_0x1f1a1d._0x543f58,_0x1f1a1d._0x20ae1c,0x2a4,_0x1f1a1d._0x5025ee)]=_0x24564f;});},async 'redirectToAuthorization'(_0x19cb8f){function _0x5635c2(_0x4ae91d,_0x3cac80,_0x4c2815,_0x3e2554){return _0x466343(_0x4ae91d-0xaa,_0x3cac80-0x8,_0x4ae91d- -0x262,_0x3e2554);}await _0x41f603[_0x5635c2(0x368,0x458,_0x528f54._0x3f65da,0x41a)](_0x19cb8f);},async 'saveCodeVerifier'(_0x1de1f6){await updateStore(_0x577d74,_0x16bd9d=>{function _0x402460(_0x1fc330,_0x17f17f,_0x5aca87,_0x14349c){return _0x27a7(_0x17f17f- -0x13d,_0x14349c);}_0x16bd9d[_0x402460(0x78,0x1bc,0x173,_0x627ba0._0x210e3d)]=_0x1de1f6;});},async 'codeVerifier'(){const _0x263f3f={_0xf6f766:0x19a,_0x7d2ec8:0x158};function _0x5abc35(_0x2604da,_0x1ac934,_0x2c4983,_0x3461ae){return _0x466343(_0x2604da-_0x263f3f._0xf6f766,_0x1ac934-0xc3,_0x1ac934- -_0x263f3f._0x7d2ec8,_0x2604da);}const _0x29e544=(await readStore(_0x577d74))['codeVerifier'];if(!_0x29e544)throw new Error(_0x5abc35(0x3eb,0x4fb,0x5ca,0x48c));return _0x29e544;},async 'invalidateCredentials'(_0x146c4a){const _0x172f13={_0x4fb7b2:0x24f};await updateStore(_0x577d74,_0x4f8fb6=>{const _0x5e6096={_0xf22636:0x3c1};(_0x146c4a===_0x5b13c6(0x595,_0x54d50d._0xb3e8a3,_0x54d50d._0x5b6544,_0x54d50d._0x57527e)||_0x146c4a==='client')&&(_0x4f8fb6[_0x5b13c6(_0x54d50d._0x30ea1f,0x6ad,_0x54d50d._0x4f9eb9,0x675)]=void 0x0);(_0x146c4a===_0x5b13c6(_0x54d50d._0x575d6f,_0x54d50d._0x205cb4,_0x54d50d._0x9c9ffc,0x6a7)||_0x146c4a===_0x5b13c6(0x605,0x6bc,_0x54d50d._0x5cfbb9,0x6a8))&&(_0x4f8fb6[_0x5b13c6(_0x54d50d._0x52229a,0x65e,0x658,0x6a8)]=void 0x0);(_0x146c4a===_0x5b13c6(_0x54d50d._0x942036,0x6d9,_0x54d50d._0x544ef9,0x6a7)||_0x146c4a===_0x5b13c6(0x564,0x636,0x479,_0x54d50d._0x116148))&&(_0x4f8fb6['codeVerifier']=void 0x0,_0x4f8fb6[_0x29b369(0x4be,0x44d,0x415,0x4a5)]=void 0x0);function _0x29b369(_0x3ebd61,_0x40c585,_0x5dcea9,_0x326c44){return _0x27a7(_0x3ebd61-_0x172f13._0x4fb7b2,_0x5dcea9);}function _0x5b13c6(_0x3ae9a2,_0x8311e3,_0x1e0d84,_0x18998c){return _0x27a7(_0x18998c-_0x5e6096._0xf22636,_0x1e0d84);}(_0x146c4a==='all'||_0x146c4a===_0x5b13c6(0x6f7,0x4ce,0x477,_0x54d50d._0xa832ac))&&(_0x4f8fb6[_0x29b369(_0x54d50d._0x2a807c,_0x54d50d._0x32f8ea,0x5f7,_0x54d50d._0xe63b1c)]=void 0x0);});},async 'saveDiscoveryState'(_0x3b37eb){await updateStore(_0x577d74,_0x3ad6d0=>{const _0x23abbb={_0x25a2e5:0x74};function _0x11356e(_0x21f743,_0x3773d2,_0x3a0ae3,_0x392ee1){return _0x27a7(_0x21f743-_0x23abbb._0x25a2e5,_0x392ee1);}_0x3ad6d0[_0x11356e(0x3af,_0x21e989._0x2dcc7f,_0x21e989._0x5f44b3,0x30f)]=_0x3b37eb;});},async 'discoveryState'(){return(await readStore(_0x577d74))['discoveryState'];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x172c03,_0x3170c5){const _0x11e8a8={_0x5c9509:0x4da},_0x440335={_0x4e6a8a:0xee};function _0x157e44(_0x264cae,_0x54be96,_0x566510,_0x53c162){return _0x57b9de(_0x264cae-0x1d7,_0x566510,_0x264cae- -0x3e7,_0x53c162-0xa0);}function _0x56759c(_0x246109,_0x28a531,_0x2bc05b,_0xae2a65){return _0x23b1c2(_0x246109-0x14e,_0x2bc05b,_0x246109-_0x440335._0x4e6a8a,_0xae2a65-0x163);}const _0x121c71=_0xe28efe=>_0xe28efe[_0x56759c(0x52d,0x46a,0x596,0x5e8)](/[^a-zA-Z0-9_]+/g,'_')[_0x56759c(0x52d,0x47e,0x407,0x42f)](/^_+|_+$/g,'');return _0x56759c(0x565,0x418,0x675,_0x11e8a8._0x5c9509)+_0x121c71(_0x172c03)+'_'+_0x121c71(_0x3170c5);}function isObject(_0x169aec){const _0x1b52e1={_0x52a664:0x241,_0x18a2ae:0x37a,_0x1c67d:0x3d6},_0x17a932={_0x48489b:0x1e7,_0x32d311:0xc9,_0x26b015:0xea},_0x14e127={_0x5110c9:0x4c0};function _0x3cb03d(_0x349610,_0x2927d7,_0x306e96,_0x3e9aed){return _0x57b9de(_0x349610-0x175,_0x3e9aed,_0x306e96- -_0x14e127._0x5110c9,_0x3e9aed-0x129);}function _0x15b352(_0x983321,_0x56c0bd,_0x2fbeb6,_0x29e8df){return _0x23b1c2(_0x983321-_0x17a932._0x48489b,_0x2fbeb6,_0x983321- -_0x17a932._0x32d311,_0x29e8df-_0x17a932._0x26b015);}return typeof _0x169aec===_0x15b352(0x313,_0x1b52e1._0x52a664,0x289,0x282)&&_0x169aec!==null&&!Array[_0x15b352(_0x1b52e1._0x18a2ae,0x256,_0x1b52e1._0x1c67d,0x4ca)](_0x169aec);}function toSupportedSchema(_0x3f227a){const _0x2fe0a6={_0x3eddf7:0x6c1,_0x34d452:0x693,_0xacd710:0x5cb,_0x26afb9:0x29c,_0x4cc5cf:0x334,_0x2bcff3:0x6fd,_0x4624f6:0x4b1,_0x37f5bf:0x511,_0x3ceee8:0x47f,_0x5dbd6d:0x558,_0x1ea83c:0x51e,_0x28c58a:0x42b,_0x230ac4:0x4e3,_0x2445ea:0x43b,_0x4c62fe:0x543,_0x4c9d1f:0x560,_0x41b1aa:0x5be,_0x3fe742:0x69c,_0x2e3b15:0x55b,_0xbd5e73:0x4d0,_0x5ea2b6:0x591,_0x26c706:0x6cb,_0x512bef:0x5d8,_0x289c97:0x701,_0x56b0ba:0x6d8,_0x105951:0x5f7},_0x42129e={_0x540e28:0xc,_0x458a9b:0x1bc},_0x5b2c82={_0x15b30e:0x18,_0x46e8ba:0xaf,_0x772a0d:0xd2};if(!isObject(_0x3f227a))return void 0x0;if(_0x3f227a[_0x5f1993(_0x2fe0a6._0x3eddf7,_0x2fe0a6._0x34d452,0x73a,_0x2fe0a6._0xacd710)]===_0x7b990d(_0x2fe0a6._0x26afb9,0x2c9,_0x2fe0a6._0x4cc5cf,0x389))return{'type':'string'};function _0x7b990d(_0x369e51,_0x143995,_0x32baaa,_0x58e670){return _0x23b1c2(_0x369e51-_0x5b2c82._0x15b30e,_0x369e51,_0x32baaa-_0x5b2c82._0x46e8ba,_0x58e670-_0x5b2c82._0x772a0d);}function _0x5f1993(_0x17dddd,_0xf5a8c2,_0x382650,_0x745169){return _0x23b1c2(_0x17dddd-_0x42129e._0x540e28,_0x382650,_0xf5a8c2-0x231,_0x745169-_0x42129e._0x458a9b);}if(_0x3f227a[_0x5f1993(0x69b,0x693,0x5a4,_0x2fe0a6._0x2bcff3)]==='number'||_0x3f227a[_0x7b990d(_0x2fe0a6._0x4624f6,0x4bc,_0x2fe0a6._0x37f5bf,_0x2fe0a6._0x3ceee8)]==='integer')return{'type':_0x7b990d(0x474,_0x2fe0a6._0x5dbd6d,_0x2fe0a6._0x1ea83c,_0x2fe0a6._0x28c58a)};if(_0x3f227a['type']==='boolean')return{'type':_0x7b990d(_0x2fe0a6._0x230ac4,_0x2fe0a6._0x2445ea,_0x2fe0a6._0x4c62fe,_0x2fe0a6._0x4c9d1f)};if(_0x3f227a[_0x7b990d(0x434,_0x2fe0a6._0x41b1aa,0x511,0x5a3)]===_0x5f1993(_0x2fe0a6._0x3fe742,_0x2fe0a6._0x2e3b15,0x602,0x5af))return{'type':_0x5f1993(_0x2fe0a6._0xbd5e73,0x55b,0x4ea,0x5be),'items':toSupportedSchema(_0x3f227a[_0x5f1993(_0x2fe0a6._0x5ea2b6,_0x2fe0a6._0x26c706,0x600,_0x2fe0a6._0x512bef)])??{'type':_0x7b990d(0x243,0x2eb,0x334,0x314)}};if(_0x3f227a[_0x5f1993(_0x2fe0a6._0x289c97,0x693,_0x2fe0a6._0x56b0ba,_0x2fe0a6._0x105951)]==='object')return toNuvinToolSchema(_0x3f227a);return void 0x0;}function toNuvinToolSchema(_0x4e7821){const _0x5ac8e6={_0x7e3a52:0x42c,_0x2399a9:0x3c8,_0x2d90fb:0x4c0,_0x1035b6:0x3e2,_0x56edb5:0x43a,_0x11a025:0x503,_0x413437:0x5f8,_0x1cd235:0x4c7,_0x31170c:0x585,_0x189ddc:0x2a7,_0x5396d3:0x2fa,_0x4c198d:0x377,_0x13b3ed:0x4a3,_0x31201c:0x4a1,_0x518d40:0x370,_0x2c9b6c:0x348,_0x5e72e3:0x4f8,_0x44e9a5:0x4b9,_0x59ad48:0x3bb,_0x58d1f7:0x54a},_0x53df7b={_0x1886d0:0x50},_0x3e2f3a={_0x3c2334:0x14a};if(!isObject(_0x4e7821)||_0x4e7821[_0x58066f(_0x5ac8e6._0x7e3a52,_0x5ac8e6._0x2399a9,0x4ed,_0x5ac8e6._0x2d90fb)]!==_0x58066f(0x4bb,_0x5ac8e6._0x1035b6,0x52d,0x43a))return{'type':_0x58066f(0x478,0x341,0x57e,_0x5ac8e6._0x56edb5),'properties':{}};const _0x4e3c71={},_0x153619=isObject(_0x4e7821[_0x35d9a0(0x4be,_0x5ac8e6._0x11a025,_0x5ac8e6._0x11a025,0x48b)])?_0x4e7821[_0x58066f(_0x5ac8e6._0x413437,_0x5ac8e6._0x1cd235,_0x5ac8e6._0x31170c,0x4f1)]:{};for(const [_0x2da11b,_0x11489]of Object[_0x35d9a0(0x3d6,0x3f6,_0x5ac8e6._0x189ddc,_0x5ac8e6._0x5396d3)](_0x153619)){const _0x405181=toSupportedSchema(_0x11489);if(_0x405181)_0x4e3c71[_0x2da11b]=_0x405181;}const _0x539b56=Array[_0x58066f(_0x5ac8e6._0x4c198d,_0x5ac8e6._0x13b3ed,0x368,_0x5ac8e6._0x31201c)](_0x4e7821['required'])?_0x4e7821[_0x58066f(_0x5ac8e6._0x518d40,0x2fd,0x281,_0x5ac8e6._0x2c9b6c)]['filter'](_0x589a59=>typeof _0x589a59===_0x35d9a0(0x2b0,0x3f9,0x24d,0x1e3)):void 0x0;function _0x35d9a0(_0x46f81f,_0x1c6bb1,_0x3b782e,_0xed7cec){return _0x23b1c2(_0x46f81f-_0x3e2f3a._0x3c2334,_0xed7cec,_0x46f81f-0x2b,_0xed7cec-0x1b2);}function _0x58066f(_0x35d1bd,_0xfae789,_0x2750da,_0x3f670c){return _0x23b1c2(_0x35d1bd-0x87,_0x2750da,_0x3f670c-0x5e,_0x3f670c-_0x53df7b._0x1886d0);}return _0x539b56?.['length']?{'type':_0x58066f(_0x5ac8e6._0x5e72e3,_0x5ac8e6._0x44e9a5,_0x5ac8e6._0x59ad48,_0x5ac8e6._0x56edb5),'properties':_0x4e3c71,'required':_0x539b56}:{'type':_0x35d9a0(0x407,_0x5ac8e6._0x58d1f7,0x410,0x51c),'properties':_0x4e3c71};}function isJsonObject(_0x5ef2f5){const _0x24cdd0={_0x2d8f76:0x380,_0x3fd187:0x31d,_0x5488e0:0x33e,_0x2074ed:0x376},_0xcc6bc={_0x284f23:0x1b9,_0x496690:0x5c,_0x377db8:0x88},_0x8e583b={_0x141cbd:0x62,_0x38d98a:0x1a4};function _0x4e01ef(_0x3e5e52,_0x1c1081,_0x1ddfb4,_0x3ae781){return _0x57b9de(_0x3e5e52-0x17b,_0x1c1081,_0x1ddfb4- -_0x8e583b._0x141cbd,_0x3ae781-_0x8e583b._0x38d98a);}function _0x3ff677(_0xe094da,_0x1a08ba,_0x4e2209,_0x50133a){return _0x23b1c2(_0xe094da-_0xcc6bc._0x284f23,_0x4e2209,_0x50133a- -_0xcc6bc._0x496690,_0x50133a-_0xcc6bc._0x377db8);}return typeof _0x5ef2f5===_0x3ff677(0x310,0x4a8,0x3df,_0x24cdd0._0x2d8f76)&&_0x5ef2f5!==null&&!Array[_0x3ff677(_0x24cdd0._0x3fd187,_0x24cdd0._0x5488e0,_0x24cdd0._0x2074ed,0x3e7)](_0x5ef2f5);}function formatMcpContent(_0x3f7610){const _0x2910fb={_0x1cfbb7:0x4c5,_0x519ca2:0x5d8,_0x1c50af:0x5c1,_0x166ae9:0x71f,_0x214448:0x54b,_0x2ce3e3:0x5a0,_0x5ebbba:0x451,_0x48b507:0x559,_0x207da5:0x76e,_0x7f2d7f:0x7b8,_0x41c8fa:0x66f},_0x19ad50={_0x1020d8:0x174},_0x42c4e0={_0x3e5726:0x191,_0xac6029:0x26c,_0x568843:0x14e},_0xa5b933={_0x524afd:0x790,_0x49ae10:0x741,_0x46e059:0x60b,_0x4d25d5:0x545,_0x34c63a:0x55b,_0x48a4da:0x5a2,_0x3b9e8d:0x53b,_0x55f7ff:0x427,_0x438ed5:0x60b,_0x46d168:0x50b,_0x465827:0x5cf,_0x37d19b:0x633},_0x44432e=Array['isArray'](_0x3f7610[_0x285f06(0x4ca,_0x2910fb._0x1cfbb7,_0x2910fb._0x519ca2,_0x2910fb._0x1c50af)])?_0x3f7610['content']:[],_0x1c6ccd=_0x44432e[_0x3b4ccb(0x5cf,0x616,_0x2910fb._0x166ae9,0x64c)](_0x3eb159=>{const _0x5adee7={_0x412fb7:0x1bd,_0x3ae39f:0x64},_0x4281cc={_0x545242:0x7d,_0x38c2a5:0x1ad};function _0x2d19e6(_0x512e56,_0x295dac,_0x5be512,_0xcb1cd){return _0x285f06(_0xcb1cd,_0x295dac-_0x4281cc._0x545242,_0x5be512-_0x4281cc._0x38c2a5,_0x295dac- -0x1ff);}function _0x5c0de8(_0x3dc336,_0x1754d8,_0x4dca57,_0x47099a){return _0x285f06(_0x47099a,_0x1754d8-0xb8,_0x4dca57-_0x5adee7._0x412fb7,_0x3dc336- -_0x5adee7._0x3ae39f);}if(!isObject(_0x3eb159))return'';if(_0x3eb159[_0x5c0de8(0x718,_0xa5b933._0x524afd,0x6df,_0xa5b933._0x49ae10)]===_0x5c0de8(_0xa5b933._0x46e059,_0xa5b933._0x4d25d5,_0xa5b933._0x34c63a,0x653)&&typeof _0x3eb159[_0x5c0de8(0x60b,_0xa5b933._0x48a4da,0x62e,0x548)]===_0x5c0de8(_0xa5b933._0x3b9e8d,0x61f,0x5b3,_0xa5b933._0x55f7ff))return _0x3eb159[_0x5c0de8(_0xa5b933._0x438ed5,0x4d6,_0xa5b933._0x46d168,_0xa5b933._0x465827)];return JSON[_0x5c0de8(0x624,0x646,_0xa5b933._0x37d19b,0x65e)](_0x3eb159);})[_0x3b4ccb(_0x2910fb._0x214448,0x47b,0x56e,_0x2910fb._0x2ce3e3)](_0xe8cf41=>_0xe8cf41[_0x3b4ccb(0x707,0x7b2,0x6a4,0x66f)]>0x0)[_0x3b4ccb(0x544,_0x2910fb._0x5ebbba,0x490,0x4b7)]('\x0a');function _0x285f06(_0x1c3519,_0x81877f,_0x41819b,_0x3e75cf){return _0x57b9de(_0x1c3519-_0x42c4e0._0x3e5726,_0x1c3519,_0x3e75cf-_0x42c4e0._0xac6029,_0x3e75cf-_0x42c4e0._0x568843);}function _0x3b4ccb(_0x2f79ca,_0x2d215a,_0x37daec,_0x145faf){return _0x23b1c2(_0x2f79ca-_0x19ad50._0x1020d8,_0x2d215a,_0x145faf-0x1c6,_0x145faf-0x17a);}if(_0x1c6ccd[_0x3b4ccb(_0x2910fb._0x48b507,_0x2910fb._0x207da5,_0x2910fb._0x7f2d7f,_0x2910fb._0x41c8fa)]>0x0)return _0x1c6ccd;return JSON['stringify'](_0x3f7610,null,0x2);}function createMcpTool(_0x1fa575){const _0x554b36={_0x3a9002:0x2ff,_0x59b3a1:0x44d,_0x18afd7:0x38a,_0x742d4d:0x18c,_0x4adcd8:0xaf,_0x111b4b:0x10d,_0x14a72e:0x141,_0x362c90:0x2f2,_0x43cd64:0x318,_0x411c8c:0x2ad,_0x50139d:0x1ed,_0x549724:0x136,_0x4e1222:0x28e,_0x2638d6:0x34f,_0x532489:0x22c,_0x3ca931:0x2e1,_0x563235:0x296,_0x37a48e:0x2b2,_0x4ede9f:0x27f,_0x439cd0:0x307,_0x23ef1f:0x126,_0x2f38ae:0x34c,_0x8191eb:0x25d},_0x70097c={_0x57d78c:0x233,_0x1bf76f:0x343,_0x5f0ffb:0xf1,_0x36c12c:0x236,_0x169f6b:0x364,_0x4e95be:0x2df,_0x4f49dc:0x25f,_0xb30b15:0xdd,_0x311e9d:0x19d,_0x5e07df:0x3ce,_0x2ea1f7:0x253,_0x3174cf:0x1c8,_0x4f0550:0x480,_0x410153:0xa4,_0x4e3933:0x252,_0x1b6ec5:0x15f,_0x4e3bf9:0x34b,_0xe0c0ab:0x271},_0x44f210={_0x44c6ab:0x49},_0x18f797={_0x5e34e7:0xd9},_0x311da7={_0x109487:0xcf,_0x585444:0xef},_0x315f2a={_0x2f8bd5:0xfa};function _0x11a366(_0x183900,_0x5e1755,_0x581600,_0x3e9906){return _0x57b9de(_0x183900-0x1e8,_0x5e1755,_0x183900- -0x4f6,_0x3e9906-_0x315f2a._0x2f8bd5);}function _0x25e932(_0x1f178a,_0x123e63,_0x180b34,_0x4d4552){return _0x23b1c2(_0x1f178a-0x131,_0x180b34,_0x4d4552- -_0x311da7._0x109487,_0x4d4552-_0x311da7._0x585444);}const _0x506262=createMcpToolName(_0x1fa575[_0x25e932(0x4ac,_0x554b36._0x3a9002,_0x554b36._0x59b3a1,_0x554b36._0x18afd7)],_0x1fa575[_0x11a366(-_0x554b36._0x742d4d,-0x76,-0x209,-_0x554b36._0x4adcd8)][_0x11a366(-0xe3,-_0x554b36._0x111b4b,-_0x554b36._0x14a72e,-0xc2)]);return defineTool({'name':_0x506262,'description':_0x1fa575[_0x25e932(_0x554b36._0x362c90,_0x554b36._0x43cd64,_0x554b36._0x411c8c,_0x554b36._0x50139d)][_0x25e932(0x4c0,0x400,0x374,0x394)]??_0x25e932(_0x554b36._0x549724,_0x554b36._0x4e1222,_0x554b36._0x2638d6,_0x554b36._0x532489)+_0x1fa575['tool'][_0x25e932(0x1b5,0x36b,_0x554b36._0x3ca931,_0x554b36._0x563235)]+'\x20from\x20'+_0x1fa575['serverName'],'inputSchema':toNuvinToolSchema(_0x1fa575[_0x11a366(-_0x554b36._0x742d4d,-_0x554b36._0x37a48e,-0x1ac,-_0x554b36._0x4ede9f)][_0x25e932(_0x554b36._0x439cd0,_0x554b36._0x23ef1f,_0x554b36._0x2f38ae,_0x554b36._0x8191eb)]),async *'execute'(_0x39fa8b){const _0x41448c=await _0x1fa575[_0x37a538(_0x70097c._0x57d78c,_0x70097c._0x1bf76f,0x1d4,_0x70097c._0x5f0ffb)]['callTool']({'name':_0x1fa575[_0x37a538(_0x70097c._0x36c12c,0x284,0x12a,_0x70097c._0x169f6b)][_0x37a538(_0x70097c._0x4e95be,0x383,0x301,_0x70097c._0x4f49dc)],'arguments':isJsonObject(_0x39fa8b)?_0x39fa8b:{}});if(_0x41448c[_0x2a9031(0xb4,_0x70097c._0xb30b15,0x250,_0x70097c._0x311e9d)])throw new ToolExecutionError(formatMcpContent(_0x41448c),{'serverName':_0x1fa575[_0x37a538(0x3d3,_0x70097c._0x5e07df,0x292,0x4f5)],'toolName':_0x1fa575[_0x2a9031(0x15f,0x1ca,_0x70097c._0x2ea1f7,_0x70097c._0x3174cf)]['name']});yield createToolOutput(formatMcpContent(_0x41448c),{'serverName':_0x1fa575[_0x37a538(0x3d3,_0x70097c._0x4f0550,0x455,0x47e)],'toolName':_0x1fa575[_0x2a9031(0x2b5,_0x70097c._0x410153,_0x70097c._0x4e3933,0x1c8)][_0x2a9031(0x1c9,_0x70097c._0x1b6ec5,_0x70097c._0x4e3bf9,_0x70097c._0xe0c0ab)],'result':_0x41448c});function _0x2a9031(_0x385ad0,_0x3fc921,_0x3470a4,_0x2e790d){return _0x25e932(_0x385ad0-_0x18f797._0x5e34e7,_0x3fc921-0xa9,_0x3fc921,_0x2e790d- -0x25);}function _0x37a538(_0x361f11,_0xe9f271,_0x1d52e2,_0x415e2e){return _0x25e932(_0x361f11-0xa0,_0xe9f271-0xdb,_0xe9f271,_0x361f11-_0x44f210._0x44c6ab);}return void 0x0;}});}function resolvePrefix(_0x2d2461,_0x124a9c){const _0x49ab1d={_0x57862a:0x3c9,_0x3c19bf:0x400,_0x1c9a94:0x3f7},_0x3c20e8={_0x3c952a:0x1f};function _0x29632b(_0x4b7091,_0x2b9736,_0x54e013,_0x19aa6d){return _0x57b9de(_0x4b7091-0x77,_0x19aa6d,_0x54e013- -_0x3c20e8._0x3c952a,_0x19aa6d-0xf4);}return _0x124a9c[_0x29632b(0x4cd,_0x49ab1d._0x57862a,_0x49ab1d._0x3c19bf,_0x49ab1d._0x1c9a94)]??_0x2d2461;}function buildMcpHttpHeaders(_0x3c0500){const _0x19c36b={_0x4bb8f0:0x3a0,_0x314883:0x269,_0x306df2:0x6c,_0x2320d5:0x115,_0x3f423e:0x1a1,_0x546dbc:0x16b,_0x700dd6:0x106,_0x52c131:0x1ef,_0x341fc4:0x15c,_0x54b360:0x16b,_0x5ef777:0xd0,_0x28f287:0x49f,_0x544fee:0x3ee,_0x57bffc:0x2a7,_0x2f47e5:0x5e1,_0x2bbdf8:0x470,_0x58750c:0x4c2,_0x57a980:0x18a,_0x1573db:0x35e,_0x89d69c:0x4a4,_0xc6afd9:0x4f3},_0x6e18b7={_0x52e525:0xec,_0x38e1cb:0x1d3,_0x418897:0xad},_0x471053={_0x539165:0x1ca},_0x255c87={..._0x3c0500['headers']??{}};_0x3c0500[_0xe6174c(_0x19c36b._0x4bb8f0,_0x19c36b._0x314883,0x2c1,0x1ed)]?.['type']==='bearer'&&_0x3c0500[_0x59e830(_0x19c36b._0x306df2,0x152,_0x19c36b._0x2320d5,_0x19c36b._0x3f423e)]['token']&&_0x255c87[_0x59e830(0x23b,_0x19c36b._0x546dbc,_0x19c36b._0x700dd6,_0x19c36b._0x52c131)]===void 0x0&&(_0x255c87[_0x59e830(_0x19c36b._0x341fc4,_0x19c36b._0x54b360,0x211,_0x19c36b._0x5ef777)]=_0xe6174c(0x2c0,_0x19c36b._0x28f287,_0x19c36b._0x544fee,_0x19c36b._0x57bffc)+_0x3c0500['auth'][_0xe6174c(_0x19c36b._0x2f47e5,_0x19c36b._0x2bbdf8,_0x19c36b._0x58750c,0x516)]);function _0xe6174c(_0x47bb5e,_0x522c46,_0x11089b,_0x31815f){return _0x57b9de(_0x47bb5e-0x1da,_0x47bb5e,_0x11089b- -0x64,_0x31815f-_0x471053._0x539165);}function _0x59e830(_0x2920d2,_0x52e29b,_0x55733a,_0x3ceb22){return _0x57b9de(_0x2920d2-_0x6e18b7._0x52e525,_0x55733a,_0x52e29b- -_0x6e18b7._0x38e1cb,_0x3ceb22-_0x6e18b7._0x418897);}return Object[_0x59e830(_0x19c36b._0x57a980,0x25b,0x381,_0x19c36b._0x1573db)](_0x255c87)[_0xe6174c(0x3e7,_0x19c36b._0x89d69c,_0x19c36b._0xc6afd9,0x49b)]>0x0?_0x255c87:void 0x0;}function getErrorMessage(_0x150eda){const _0x7aa58a={_0x58a5e1:0x142},_0x31223b={_0x539980:0x1c0};function _0x1abb0d(_0x50b5eb,_0x326c4f,_0x4ed810,_0x509355){return _0x23b1c2(_0x50b5eb-_0x31223b._0x539980,_0x326c4f,_0x4ed810- -0x20c,_0x509355-0x40);}return _0x150eda instanceof Error?_0x150eda[_0x1abb0d(_0x7aa58a._0x58a5e1,0x2b5,0x1eb,0x243)]:String(_0x150eda);}function isUnauthorizedError(_0x1c173f){const _0x288b62={_0x5d4127:0x671},_0x4b34dc={_0x23c647:0xd2};function _0x5b4140(_0x3f2965,_0x4ff178,_0x2a0d15,_0x57d898){return _0x57b9de(_0x3f2965-0x76,_0x2a0d15,_0x4ff178-0x19b,_0x57d898-_0x4b34dc._0x23c647);}return _0x1c173f instanceof Error&&_0x1c173f[_0x5b4140(_0x288b62._0x5d4127,0x5d8,0x6a2,0x4a7)]['name']==='UnauthorizedError';}async function connectMcpServer(_0x29baf0,_0x7eb2c1,_0x567a83){const _0x1ab17b={_0x1cafa7:0x178,_0x4e037c:0x129,_0x29b7f4:0x9a,_0x31f4d4:0x11e,_0x1be388:0x98,_0x26341c:0x1ab,_0x8a3025:0x237,_0x4bfb57:0x16d,_0x497d01:0xe1,_0x2d7048:0x1ff,_0x2ef114:0x190,_0x400717:0x181,_0x2e3b51:0x107,_0x273059:0x1ee,_0x394a64:0xb4,_0x5e8107:0x6e,_0x22ef70:0xa4,_0x568a44:0x169,_0xb59f7f:0xfe,_0x2389f7:0x2fc,_0xdd807c:0x1e1,_0x544e7c:0x71,_0x2c763f:0x18c,_0x1ed341:0x2a,_0x4db716:0x85,_0x703ebc:0xeb,_0x125812:0xe9,_0x2297eb:0xda,_0x25870a:0x9f,_0x5665c4:0x116,_0x191f06:0x292,_0x4d0a8f:0x1f2,_0x2591ad:0xd8,_0x283bf3:0x1a7,_0x2c3b9e:0xbd,_0x225f84:0x3c,_0x192903:0x14e,_0x242272:0x7c,_0x3ad86a:0x5f,_0x52a8bc:0x3b,_0x20e68c:0x1da,_0x28bca3:0x1e4,_0x6ab3bb:0xeb,_0x1367f1:0x11a},_0x1188d8={_0x4727ee:0x68d,_0x5e785a:0x621,_0x4b175d:0x704,_0x59cf63:0x5ca,_0x39bc3b:0x5cf},_0x24bfd8={_0x3062dd:0x65},_0x5233d5={_0x1a7f24:0xd7,_0x2d2a00:0x7,_0x238876:0x54},_0x2da1fe={_0x2e5e0a:0x16f,_0x6ff9c5:0xb9},_0x57866c={_0x110703:0x11d},_0x4eb8bc={_0x3add23:0x5d,_0x1c159b:0x2e5};function _0x36ac4a(_0x5db2f8,_0x2d6fbb,_0x218557,_0x5345fa){return _0x23b1c2(_0x5db2f8-_0x4eb8bc._0x3add23,_0x2d6fbb,_0x5345fa- -_0x4eb8bc._0x1c159b,_0x5345fa-0x92);}function _0x515faf(_0x5bc9b2,_0x59875d,_0x1222c8,_0x4aa348){return _0x57b9de(_0x5bc9b2-_0x57866c._0x110703,_0x5bc9b2,_0x1222c8- -0x353,_0x4aa348-0x11);}const _0x16526d=new Client({'name':'nuvin','version':_0x36ac4a(-_0x1ab17b._0x1cafa7,-0xec,-_0x1ab17b._0x4e037c,-0x24)});_0x16526d['onerror']=_0x5e171b=>{const _0x511791={_0x3afaf6:0x62,_0x48cef6:0xab};function _0x41c197(_0x37af79,_0x2b6b32,_0x28ef81,_0x9e891){return _0x36ac4a(_0x37af79-_0x511791._0x3afaf6,_0x2b6b32,_0x28ef81-0xd1,_0x9e891- -_0x511791._0x48cef6);}function _0x287543(_0x3ac181,_0x3ff5d9,_0x32886b,_0x5ee252){return _0x36ac4a(_0x3ac181-_0x2da1fe._0x2e5e0a,_0x3ac181,_0x32886b-0x146,_0x3ff5d9-_0x2da1fe._0x6ff9c5);}console['error'](_0x41c197(0x225,0x1f4,0xa9,0x14f)+_0x29baf0+_0x41c197(0xf4,_0x5233d5._0x1a7f24,_0x5233d5._0x2d2a00,_0x5233d5._0x238876),_0x5e171b[_0x41c197(0xbc,0xd,0xe9,0x67)]);};if(_0x7eb2c1[_0x515faf(0x1c,0x6,_0x1ab17b._0x29b7f4,_0x1ab17b._0x31f4d4)]===_0x515faf(_0x1ab17b._0x1be388,0x67,_0x1ab17b._0x26341c,0x70)||_0x7eb2c1[_0x36ac4a(0x13c,0x2e5,0x2e8,0x1e8)]){if(!_0x7eb2c1[_0x36ac4a(_0x1ab17b._0x8a3025,0x109,_0x1ab17b._0x4bfb57,0x1e8)])throw new Error('MCP\x20server\x20'+_0x29baf0+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x7eb2c1[_0x36ac4a(0x79,0x98,_0x1ab17b._0x497d01,-0x6e)]?.['type']==='oauth'&&!_0x567a83?.['oauth'])throw new Error(_0x515faf(0x11c,_0x1ab17b._0x2d7048,0x232,_0x1ab17b._0x2ef114)+_0x29baf0+_0x515faf(0xaa,_0x1ab17b._0x400717,_0x1ab17b._0x2e3b51,_0x1ab17b._0x273059));const _0x2d96a1=buildMcpHttpHeaders(_0x7eb2c1),_0x356bd3=_0x7eb2c1[_0x36ac4a(-_0x1ab17b._0x394a64,-0x165,0xb3,-_0x1ab17b._0x5e8107)]?.['type']==='oauth'&&_0x567a83?.['oauth']?createMcpOAuthProvider({'serverName':_0x29baf0,'callbackUrl':_0x567a83['oauth'][_0x36ac4a(0x95,_0x1ab17b._0x22ef70,_0x1ab17b._0x568a44,_0x1ab17b._0xb59f7f)],'storageDir':_0x567a83['oauth'][_0x36ac4a(_0x1ab17b._0x2389f7,0x2db,0xed,_0x1ab17b._0xdd807c)],'config':_0x7eb2c1[_0x36ac4a(-_0x1ab17b._0x544e7c,-_0x1ab17b._0x2c763f,-_0x1ab17b._0x1ed341,-_0x1ab17b._0x5e8107)],'onRedirect':_0x3c8e2f=>_0x567a83['oauth']?.[_0x515faf(0xc,0x15c,0x126,0x1bc)](_0x29baf0,_0x3c8e2f)}):void 0x0,_0x4b83e9=new StreamableHTTPClientTransport(new URL(_0x7eb2c1['url']),{'authProvider':_0x356bd3,'requestInit':_0x2d96a1?{'headers':_0x2d96a1}:void 0x0});await _0x16526d[_0x515faf(_0x1ab17b._0x4db716,0x154,_0x1ab17b._0x703ebc,-0x52)](_0x4b83e9);}else{if(!_0x7eb2c1[_0x515faf(0x73,_0x1ab17b._0x125812,0x160,_0x1ab17b._0x2297eb)])throw new Error(_0x36ac4a(_0x1ab17b._0x25870a,_0x1ab17b._0x5665c4,_0x1ab17b._0x191f06,_0x1ab17b._0x4d0a8f)+_0x29baf0+_0x515faf(0x183,_0x1ab17b._0x2591ad,_0x1ab17b._0x283bf3,0x2f6));const _0x5b8676=new StdioClientTransport({'command':_0x7eb2c1[_0x36ac4a(0xb,_0x1ab17b._0x2c3b9e,0x1f1,0x120)],'args':_0x7eb2c1[_0x36ac4a(_0x1ab17b._0x225f84,-0xa9,-_0x1ab17b._0x192903,-0x48)]??[],'env':_0x7eb2c1[_0x36ac4a(_0x1ab17b._0x242272,_0x1ab17b._0x3ad86a,-_0x1ab17b._0x52a8bc,0x6f)],'stderr':_0x36ac4a(0xb9,0x120,0x20c,_0x1ab17b._0x20e68c)});await _0x16526d[_0x515faf(_0x1ab17b._0x28bca3,0x1ba,_0x1ab17b._0x6ab3bb,_0x1ab17b._0x1367f1)](_0x5b8676);}return{async 'listTools'(){const _0x2a4c52={_0x397231:0x90};function _0x1bcb90(_0x23c19d,_0x4f11ba,_0x337b0a,_0x3b6817){return _0x515faf(_0x3b6817,_0x4f11ba-0xf3,_0x23c19d- -0x9a,_0x3b6817-_0x2a4c52._0x397231);}return await _0x16526d[_0x1bcb90(0x89,-0xb,-0x1d,_0x24bfd8._0x3062dd)]();},async 'callTool'(_0x5821e5){const _0x37a3b2={_0x51cd59:0xc8,_0x1e277a:0x97},_0x36689={_0x1045dc:0x70,_0x4d4b73:0x215,_0x24f621:0xa9};function _0x33ea09(_0x8ddce4,_0x3d9908,_0x310509,_0x47e40c){return _0x515faf(_0x8ddce4,_0x3d9908-_0x36689._0x1045dc,_0x47e40c-_0x36689._0x4d4b73,_0x47e40c-_0x36689._0x24f621);}function _0x4453fb(_0x2e4510,_0x4f33d3,_0x226a4e,_0x2b4c99){return _0x515faf(_0x2e4510,_0x4f33d3-_0x37a3b2._0x51cd59,_0x226a4e-0x5db,_0x2b4c99-_0x37a3b2._0x1e277a);}return await _0x16526d[_0x4453fb(_0x1188d8._0x4727ee,0x76d,_0x1188d8._0x5e785a,_0x1188d8._0x4b175d)]({'method':_0x4453fb(_0x1188d8._0x59cf63,0x4a7,_0x1188d8._0x39bc3b,0x502),'params':_0x5821e5},CallToolResultSchema);},async 'close'(){await _0x16526d['close']();}};}async function createMcpToolsFromServers(_0x27cdd5){const _0x420031={_0x1d5575:0x117,_0x3229ba:0xf0,_0x233626:0x6c,_0x2356a4:0x132,_0x48af4e:0x85,_0x4a75de:0x25c,_0x43d009:0x251,_0x3b37e3:0x298,_0x1911d1:0xd1,_0x3928e5:0x130,_0xfe28c5:0x14b,_0x29f7c1:0x129,_0x54fc86:0x44,_0x43fc89:0x76,_0x229d74:0xe2,_0x2a763a:0xec,_0x4cb129:0x142,_0x53178c:0xae,_0x20e5bb:0x88,_0x3d4259:0x3a,_0x2cc511:0x1ac,_0x1a657c:0x41,_0x2aec06:0xaf},_0x3aa75d={_0x2143e5:0x18,_0x46c269:0xb4},_0x12b1c6={_0x2d722f:0x327},_0x4ff510={_0x427301:0x1a,_0x26909f:0x3bb,_0x4fef5d:0x5d},_0x4c59c1=_0x27cdd5[_0x302a40(0xa4,-0xb,_0x420031._0x1d5575,0x99)]??connectMcpServer;function _0x5a0f89(_0x214dcb,_0x2b531f,_0x216f92,_0x1b91f6){return _0x57b9de(_0x214dcb-_0x4ff510._0x427301,_0x2b531f,_0x216f92- -_0x4ff510._0x26909f,_0x1b91f6-_0x4ff510._0x4fef5d);}const _0x3b8e64=[],_0x55b9da={};function _0x302a40(_0xd5a3a2,_0x45ea8c,_0x377a0c,_0x2f3d03){return _0x57b9de(_0xd5a3a2-0xe9,_0x2f3d03,_0x377a0c- -_0x12b1c6._0x2d722f,_0x2f3d03-0x10e);}const _0x3971f0=[];for(const [_0x243342,_0x3c0c24]of Object[_0x302a40(_0x420031._0x3229ba,_0x420031._0x233626,_0x420031._0x2356a4,0xc3)](_0x27cdd5[_0x5a0f89(-_0x420031._0x48af4e,-0x12e,-0x2c,0x109)]??{})){if(_0x3c0c24[_0x302a40(_0x420031._0x4a75de,0x2df,_0x420031._0x43d009,_0x420031._0x3b37e3)]===![]){_0x55b9da[_0x243342]={'status':_0x5a0f89(0x202,_0x420031._0x1911d1,_0x420031._0x3928e5,0x8f)};continue;}try{const _0x31a0c9=await _0x4c59c1(_0x243342,_0x3c0c24,_0x27cdd5[_0x302a40(_0x420031._0xfe28c5,0x10f,_0x420031._0x29f7c1,0x94)]);_0x3b8e64['push'](_0x31a0c9);const _0x5b83e5=await _0x31a0c9['listTools']();let _0x4f9682=0x0;for(const _0x4f7de8 of _0x5b83e5[_0x302a40(0x240,0x1d7,0x1c1,0x1db)]){const _0xf11e41=_0x27cdd5[_0x302a40(_0x420031._0x54fc86,_0x420031._0x43fc89,0x14d,0xa7)]?.[_0x243342]?.[_0x4f7de8[_0x302a40(_0x420031._0x229d74,0x1cb,_0x420031._0x2a763a,_0x420031._0x4cb129)]];if(_0xf11e41===![])continue;_0x4f9682+=0x1,_0x3971f0[_0x5a0f89(0x33,_0x420031._0x53178c,_0x420031._0x20e5bb,_0x420031._0x3d4259)](createMcpTool({'serverName':resolvePrefix(_0x243342,_0x3c0c24),'tool':_0x4f7de8,'client':_0x31a0c9}));}_0x55b9da[_0x243342]={'status':_0x302a40(_0x420031._0x2cc511,-_0x420031._0x1a657c,_0x420031._0x2aec06,0x1f6),'toolCount':_0x4f9682};}catch(_0x52392a){_0x55b9da[_0x243342]=isUnauthorizedError(_0x52392a)?{'status':'authRequired','message':getErrorMessage(_0x52392a)}:{'status':'error','message':getErrorMessage(_0x52392a)};}}return{'tools':_0x3971f0,'servers':_0x55b9da,async 'close'(){const _0x4e1d32={_0x42d6be:0x95,_0x67626:0x18b,_0x501759:0x2c};function _0x442043(_0xab4cb7,_0x57eba3,_0x4231e3,_0x2f1536){return _0x302a40(_0xab4cb7-_0x4e1d32._0x42d6be,_0x57eba3-_0x4e1d32._0x67626,_0x4231e3-_0x4e1d32._0x501759,_0xab4cb7);}function _0x5ee8e4(_0x36aa13,_0x32c38b,_0x4b64c1,_0x319c42){return _0x5a0f89(_0x36aa13-_0x3aa75d._0x2143e5,_0x36aa13,_0x319c42-0x462,_0x319c42-_0x3aa75d._0x46c269);}await Promise['all'](_0x3b8e64[_0x5ee8e4(0x56e,0x70b,0x500,0x5db)](_0x25682f=>_0x25682f[_0x442043(0x4f,0x269,0x136,0x1ee)]()));}};}function getCommand(_0x583344){const _0x527875={_0x1a58dd:0x4b7,_0x48601e:0x4a6,_0x340c90:0x457,_0x20d93f:0x555,_0x87c215:0x6b,_0x2cad2c:0x2d5,_0x27da4c:0x397,_0x478b23:0xb3,_0x15a128:0x46,_0x1a234a:0x444,_0x1af809:0x38a},_0x12d092={_0x49ba77:0x1b3,_0x9ab5e1:0x51e},_0xdf08b9={_0x274b3c:0x112,_0x506d75:0x106};function _0x35a4c7(_0x52a4af,_0x33fb0e,_0xb5cb2e,_0x302fd0){return _0x23b1c2(_0x52a4af-0x77,_0x52a4af,_0x302fd0-_0xdf08b9._0x274b3c,_0x302fd0-_0xdf08b9._0x506d75);}if(_0x583344&&typeof _0x583344===_0x35a4c7(0x54d,_0x527875._0x1a58dd,0x5b1,0x4ee)&&!Array[_0x35a4c7(_0x527875._0x48601e,0x4ab,_0x527875._0x340c90,_0x527875._0x20d93f)](_0x583344)&&typeof _0x583344[_0x3d38d8(0x67,-_0x527875._0x87c215,-0x1f,-0x74)]===_0x35a4c7(0x29d,0x25c,_0x527875._0x2cad2c,_0x527875._0x27da4c))return _0x583344[_0x3d38d8(_0x527875._0x478b23,-0x6b,_0x527875._0x15a128,-0x83)];function _0x3d38d8(_0x31ea0d,_0x10be9c,_0x2ecfdb,_0xbaec6f){return _0x57b9de(_0x31ea0d-_0x12d092._0x49ba77,_0x2ecfdb,_0x10be9c- -_0x12d092._0x9ab5e1,_0xbaec6f-0xd2);}return _0x35a4c7(_0x527875._0x1a234a,0x299,0x367,_0x527875._0x1af809);}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x23b1c2(0x538,0x3f0,0x45e,0x3ac),'docs/plans/2026-04-16-public-tools-api-implementation.md',_0x57b9de(0x38c,0x299,0x340,0x390),_0x23b1c2(0x3c4,0x3f5,0x489,0x512),_0x57b9de(0x338,0x30f,0x3a7,0x258),'src/examples/demo.ts',_0x57b9de(0x66e,0x4bf,0x53f,0x5f9),_0x57b9de(0x34b,0x2a7,0x374,0x340),_0x57b9de(0x2f4,0x3c3,0x41e,0x3a2),'src/formats/provider-adapters.ts',_0x23b1c2(0x4f1,0x4d0,0x4af,0x5ef),'src/shared/types.ts','src/agent/agent.test.ts',_0x23b1c2(0x4d6,0x456,0x39a,0x461),_0x57b9de(0x47a,0x633,0x508,0x654),_0x57b9de(0x30e,0x51d,0x45d,0x4b3)]['join']('\x0a'),SHELL_EXEC_TOOL={'name':_0x23b1c2(0x349,0x2c9,0x28d,0x2e2),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':_0x23b1c2(0x4eb,0x4aa,0x3dc,0x37f),'properties':{'command':{'type':_0x57b9de(0x385,0x431,0x333,0x25f)}},'required':[_0x57b9de(0x4b4,0x3f1,0x4b3,0x528)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x6053ad){return{'output':_0x6053ad,'structured':{'value':_0x6053ad}};}function createUnknownToolResult(_0x202379){const _0x4c8230={_0x399ed7:0x3d0,_0x2b78c5:0x2b8,_0x46e87d:0x3c6,_0x3d4083:0x15f,_0x3e821d:0x2f,_0x1961b6:0xe0,_0x2ef8ac:0x46,_0x1ea9cf:0x3f,_0x14e0de:0x3b,_0x443662:0x73,_0x235340:0xaf},_0x18c471={_0x1d4da2:0x36,_0x4dd1ad:0x43};function _0x3015bf(_0x277180,_0x2819ea,_0x432d12,_0x4ed1f8){return _0x57b9de(_0x277180-_0x18c471._0x1d4da2,_0x4ed1f8,_0x277180- -_0x18c471._0x4dd1ad,_0x4ed1f8-0x53);}function _0x422463(_0x1cdf07,_0x4c9770,_0x257365,_0x4145b4){return _0x57b9de(_0x1cdf07-0x172,_0x257365,_0x4c9770- -0x4de,_0x4145b4-0x113);}return{'callId':_0x202379['id'],'toolName':_0x202379[_0x3015bf(_0x4c8230._0x399ed7,0x50f,_0x4c8230._0x2b78c5,_0x4c8230._0x46e87d)],'status':_0x422463(-_0x4c8230._0x3d4083,-_0x4c8230._0x3e821d,_0x4c8230._0x1961b6,_0x4c8230._0x2ef8ac),'output':_0x422463(0x22,-0xa3,-0x1ec,-_0x4c8230._0x1ea9cf)+_0x202379[_0x422463(-_0x4c8230._0x14e0de,-0xcb,-_0x4c8230._0x443662,-_0x4c8230._0x235340)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x122e97,_0x105747){const _0x486757={_0x5c9fde:0x11e,_0x3f3883:0x251,_0x140b7c:0x12a,_0x49f847:0x98},_0x2c9e1b={_0x48c545:0xfa,_0x4a1981:0x1c2},_0xe704b5={_0x3be016:0x5f,_0x9f4650:0x2ac};function _0x442911(_0x50921a,_0x38719c,_0x5581ad,_0x45969c){return _0x57b9de(_0x50921a-_0xe704b5._0x3be016,_0x5581ad,_0x45969c- -_0xe704b5._0x9f4650,_0x45969c-0xa1);}function _0x2a699e(_0x591ec4,_0x36ddea,_0x9e8e06,_0x319eed){return _0x57b9de(_0x591ec4-_0x2c9e1b._0x48c545,_0x9e8e06,_0x36ddea- -_0x2c9e1b._0x4a1981,_0x319eed-0x3e);}return{'callId':_0x122e97['id'],'toolName':_0x122e97[_0x2a699e(_0x486757._0x5c9fde,_0x486757._0x3f3883,0x19b,_0x486757._0x140b7c)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x122e97[_0x2a699e(_0x486757._0x49f847,0x1cb,0x2e4,0x223)]),'exitCode':0x0},'chunks':[_0x105747],'meta':createMeta()};}function createMockToolRuntime(){const _0x415df8={_0x536d0a:0x1fe,_0x32898e:0x21c,_0x12ba3f:0x26a,_0x8a401d:0x64a,_0x4a212b:0x845,_0x3108c0:0x70f,_0x21d499:0x72d},_0x2c9ce1={_0x4b52ba:0x47},_0xea2f8e={_0x67b700:0x4,_0x44168b:0xc2,_0x262a92:0xc0,_0x568d7f:0x98,_0x4b3fb2:0x71,_0x4d9928:0x117},_0x3ba677=async(_0x1abc5e,_0x579ea2)=>{const _0x3b2d0e={_0x3919fa:0x266};if(_0x1abc5e[_0x9a34e7(0xad,-_0xea2f8e._0x67b700,_0xea2f8e._0x44168b,0x143)]!==_0x1fc56b(_0xea2f8e._0x262a92,_0xea2f8e._0x568d7f,-_0xea2f8e._0x4b3fb2,-_0xea2f8e._0x4d9928))return createUnknownToolResult(_0x1abc5e);const _0x16042a=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x9a34e7(_0x2216bf,_0x34e921,_0x3c9ed4,_0x568db6){return _0x27a7(_0x3c9ed4- -0x20b,_0x2216bf);}function _0x1fc56b(_0x53fc58,_0x3ec89f,_0x2caa64,_0x4204d5){return _0x27a7(_0x2caa64- -_0x3b2d0e._0x3919fa,_0x4204d5);}return createSuccessToolResult(_0x1abc5e,_0x16042a);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x110e07,_0x26af5d){function _0x420993(_0xa17c4c,_0x420e9e,_0x53517f,_0x161101){return _0x27a7(_0x161101-0x33f,_0x53517f);}function _0x2b3f23(_0x1b9763,_0x539bc1,_0x3cfe8d,_0x3a80d2){return _0x27a7(_0x3cfe8d- -_0x2c9ce1._0x4b52ba,_0x3a80d2);}return await Promise[_0x2b3f23(_0x415df8._0x536d0a,_0x415df8._0x32898e,0x29f,_0x415df8._0x12ba3f)](_0x110e07[_0x420993(_0x415df8._0x8a401d,_0x415df8._0x4a212b,_0x415df8._0x3108c0,_0x415df8._0x21d499)](async _0x42ced9=>{return await _0x3ba677(_0x42ced9,_0x26af5d);}));},async 'execute'(_0x46e8ff,_0x253e1f){return await _0x3ba677(_0x46e8ff,_0x253e1f);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0xbc0068={_0x508d45:0x4a,_0x4256f8:0x11d},_0x31ea1e={_0x53bcdf:0xb0,_0x41979c:0x3f2,_0x3f4813:0x91};function _0x42196d(_0x336d72,_0x3be039,_0x87ab10,_0x6507c7){return _0x57b9de(_0x336d72-_0x31ea1e._0x53bcdf,_0x6507c7,_0x336d72- -_0x31ea1e._0x41979c,_0x6507c7-_0x31ea1e._0x3f4813);}return delegatedRunCounter+=0x1,_0x42196d(0x28,_0xbc0068._0x508d45,-_0xbc0068._0x4256f8,0xef)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x523a62,_0x48232a){const _0x2d16b7={_0x4da543:0x1e7,_0x58e0f4:0x258,_0x40eded:0x14b},_0x54a26d={_0x22383f:0x15f,_0x45c158:0x125};function _0x40dfde(_0x541243,_0x577678,_0x44d38e,_0x3540b3){return _0x23b1c2(_0x541243-_0x54a26d._0x22383f,_0x3540b3,_0x541243- -0x2d4,_0x3540b3-_0x54a26d._0x45c158);}return typeof _0x523a62===_0x40dfde(_0x2d16b7._0x4da543,_0x2d16b7._0x58e0f4,_0x2d16b7._0x40eded,0x21d)?await _0x523a62(_0x48232a):_0x523a62;}function getDelegatedAgentDefinition(_0x447840,_0x49ff95){const _0x2e42a2={_0x5ebb5b:0x39b,_0xc9e26b:0x3ac},_0x13d4eb={_0x183245:0xfb};function _0x41c1d9(_0x182c73,_0x2840a5,_0x49cef6,_0x50c5f4){return _0x57b9de(_0x182c73-_0x13d4eb._0x183245,_0x2840a5,_0x50c5f4- -0xb,_0x50c5f4-0x1c8);}return _0x447840[_0x41c1d9(_0x2e42a2._0x5ebb5b,0x421,0x2b4,_0x2e42a2._0xc9e26b)]?.[_0x49ff95];}function createRunSummary(_0x1ccac3){const _0x4c91bb={_0x531c63:0x27b,_0x546756:0x11e,_0x43eabd:0x101,_0x356af2:0xe0,_0x16e947:0x1b7,_0x3b7d59:0x1af,_0x24fd1d:0x56c,_0x1d05b4:0x5c4,_0x2fe7c7:0xb0,_0x274950:0x94,_0x4ebc37:0x243,_0x4379af:0x222,_0x1625a4:0x5d4,_0x467407:0x688,_0x53c389:0x9c,_0x70c0d5:0x96,_0x13bc23:0x98,_0x2b21b8:0xea,_0x27acf0:0x16,_0x2326be:0x58b},_0x4c76de={_0xbe3e2a:0x18b,_0x820186:0x316,_0x28bbbd:0x142},_0xaee1e={_0x3e68cb:0x22};function _0x199c2f(_0x286602,_0x1ba2a0,_0x3b6c81,_0x55c84b){return _0x57b9de(_0x286602-0x157,_0x55c84b,_0x286602-0x9c,_0x55c84b-_0xaee1e._0x3e68cb);}function _0x13f967(_0x446d0e,_0x1fd661,_0x5e1dad,_0x2776e1){return _0x57b9de(_0x446d0e-_0x4c76de._0xbe3e2a,_0x446d0e,_0x2776e1- -_0x4c76de._0x820186,_0x2776e1-_0x4c76de._0x28bbbd);}return{'runId':_0x1ccac3[_0x13f967(_0x4c91bb._0x531c63,_0x4c91bb._0x546756,_0x4c91bb._0x43eabd,0x13d)],'agentId':_0x1ccac3[_0x13f967(_0x4c91bb._0x356af2,0x21c,_0x4c91bb._0x16e947,_0x4c91bb._0x3b7d59)],'sessionId':_0x1ccac3['sessionId'],'status':_0x1ccac3[_0x199c2f(_0x4c91bb._0x24fd1d,_0x4c91bb._0x1d05b4,0x675,0x481)],'parentSessionId':_0x1ccac3['parentSessionId'],..._0x1ccac3['originToolCallId']!==void 0x0?{'originToolCallId':_0x1ccac3[_0x13f967(-_0x4c91bb._0x2fe7c7,0xcb,-0xbe,_0x4c91bb._0x274950)]}:{},..._0x1ccac3[_0x13f967(_0x4c91bb._0x4ebc37,0x198,0x1e0,_0x4c91bb._0x4379af)]!==void 0x0?{'errorMessage':_0x1ccac3[_0x199c2f(_0x4c91bb._0x1625a4,_0x4c91bb._0x467407,0x5c4,0x4fe)]}:{},..._0x1ccac3[_0x13f967(0xde,0xd2,_0x4c91bb._0x53c389,0x1d9)]?.[_0x13f967(-_0x4c91bb._0x70c0d5,_0x4c91bb._0x13bc23,-_0x4c91bb._0x2b21b8,-_0x4c91bb._0x27acf0)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1ccac3[_0x199c2f(_0x4c91bb._0x2326be,0x635,0x5e3,0x52a)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x4feb58,_0x1bb58c){const _0x1b6e27={_0x3290c4:0x3ad,_0x2fa2fb:0x2a0,_0x1e370a:0x256},_0x23aff9={_0x3fe228:0x35,_0x381a9f:0x179,_0x2bc99d:0xe2},_0x39fdbb=createRunSummary(_0x4feb58),_0xc33369=_0x39fdbb['finalMessageText'];function _0x37a153(_0x454392,_0x88c370,_0x59b0ea,_0x394704){return _0x23b1c2(_0x454392-_0x23aff9._0x3fe228,_0x454392,_0x88c370- -_0x23aff9._0x381a9f,_0x394704-_0x23aff9._0x2bc99d);}return createToolOutput(typeof _0xc33369==='string'&&_0xc33369[_0x37a153(_0x1b6e27._0x3290c4,0x330,_0x1b6e27._0x2fa2fb,_0x1b6e27._0x1e370a)]>0x0?_0xc33369:_0x1bb58c,_0x39fdbb);}function getRunTerminalErrorMessage(_0x91cff9){const _0x56a8c2={_0x48b2a3:0x383,_0x2174a2:0x4f1,_0x45c2b5:0x4f6,_0x12816f:0x49e,_0x1ea6c9:0x259,_0x38eabf:0x1fa,_0x463413:0x22f,_0x337fd8:0x300,_0x14afa8:0x44f},_0x443471={_0x3dfcd4:0x154,_0x56f2ab:0x18a,_0x948093:0x56};function _0x2651fb(_0x53f4d3,_0x39519e,_0x3796d9,_0x2c341b){return _0x23b1c2(_0x53f4d3-0x112,_0x53f4d3,_0x39519e- -0x5a,_0x2c341b-0x13a);}const _0x5d59fc=_0x91cff9?.['state'][_0x2651fb(0x1f3,0x202,0x2fd,0x2c7)]['at'](-0x1);if(_0x5d59fc?.[_0x2651fb(_0x56a8c2._0x48b2a3,0x3c8,_0x56a8c2._0x2174a2,_0x56a8c2._0x45c2b5)]==='error'&&_0x5d59fc[_0x3430bc(0x484,0x420,_0x56a8c2._0x12816f,0x50a)][_0x2651fb(0x113,_0x56a8c2._0x1ea6c9,_0x56a8c2._0x38eabf,_0x56a8c2._0x463413)]()[_0x2651fb(_0x56a8c2._0x337fd8,_0x56a8c2._0x14afa8,0x4f6,0x46a)]>0x0)return _0x5d59fc['output'];function _0x3430bc(_0x9c68a0,_0x2693bf,_0x26a518,_0x4d60ed){return _0x57b9de(_0x9c68a0-_0x443471._0x3dfcd4,_0x26a518,_0x4d60ed-_0x443471._0x56f2ab,_0x4d60ed-_0x443471._0x948093);}return void 0x0;}function formatAbortedRunMessage(_0x268af6,_0x295b69){const _0x206f06={_0x82ea46:0x635,_0x5f32c1:0x4f6,_0x4682d5:0x638,_0x216320:0x76b,_0x4122a7:0x43c,_0x8c886b:0x4b5,_0x342d79:0x4d2},_0x4b63b1={_0x13fbfe:0x1e6};function _0x52cfa6(_0x300b16,_0x1becd7,_0x4c68e3,_0x1b9479){return _0x23b1c2(_0x300b16-0x131,_0x1b9479,_0x1becd7-0x26a,_0x1b9479-0xd6);}const _0x2d5444=_0x24838c(_0x206f06._0x82ea46,0x5b7,_0x206f06._0x5f32c1,0x52e)+_0x268af6+_0x52cfa6(0x66f,_0x206f06._0x4682d5,0x5ff,_0x206f06._0x216320);if(!_0x295b69||_0x295b69[_0x52cfa6(0x550,0x51d,0x652,0x5d9)]()['length']===0x0||_0x295b69===_0x2d5444)return _0x2d5444;function _0x24838c(_0x49d0b7,_0x4483e3,_0x5e67e7,_0x2d01da){return _0x23b1c2(_0x49d0b7-_0x4b63b1._0x13fbfe,_0x2d01da,_0x4483e3-0x2ef,_0x2d01da-0xe2);}return _0x2d5444+_0x52cfa6(_0x206f06._0x4122a7,_0x206f06._0x8c886b,_0x206f06._0x342d79,0x557)+_0x295b69;}function createAssignTaskTool(_0x10eda3){const _0xcc4bfc={_0x17a5b7:0x34b,_0x5b4317:0x45f,_0x23636f:0x3f7,_0x9429f1:0xff,_0x4e80ad:0x6c,_0xcd1388:0x30,_0x2666ef:0x2f3,_0x27198b:0x3f5,_0x5cb0d8:0x25b,_0x17fff7:0x112,_0x111ec2:0x190,_0x53268a:0x93,_0x2881c3:0x59,_0x10acfe:0x18c},_0x3e935a={_0x401a3b:0x34e,_0x260c2b:0x49a,_0x6b0b82:0x49c,_0x7422f4:0x62f,_0x543a4d:0x4e2,_0x784798:0x3f6,_0x2e22d3:0x63d,_0x4684ce:0x4ec,_0xf70e47:0x4e7,_0x29ef6f:0x477,_0x8a9602:0x421,_0x48330e:0x683,_0x5e404d:0x556,_0x2ff0dd:0x755,_0x236a72:0x574,_0x531896:0x2fb,_0x34bc1e:0x484,_0x54dfdf:0x2af,_0x585ee3:0x3f8,_0x1783f2:0x3d6,_0x4c5cbf:0x506,_0x5d302a:0x3da,_0x326276:0x489,_0x49dffd:0x6e4,_0x453b7c:0x5eb,_0xcd37ef:0x55f,_0xeb7f55:0x5f8,_0x425eb9:0x63c,_0x3bcec2:0x6c7,_0x5ede9f:0x659,_0x3999ab:0x437,_0x54347e:0x39b,_0x50ddad:0x463,_0x2eb864:0x3a8,_0x266ac6:0x40d,_0x34bb3e:0x76f,_0x2c47de:0x78e,_0x51dfbc:0x4f8,_0x1d0ef2:0x536,_0x36d018:0x4a5,_0x5366e6:0x4b4,_0x388ccc:0x610,_0x3b43cc:0x745,_0x25ee0f:0x6c3,_0x487f25:0x54a,_0x49afb8:0x664,_0x330eed:0x4b7,_0x56171a:0x6f9,_0x526daa:0x417,_0x9150c2:0x403,_0x5948e5:0x47a,_0x2889eb:0x5bf,_0x347bb8:0x4d5,_0x1e8f4b:0x585,_0x545833:0x679,_0x2bd1ac:0x4a4,_0x45c47f:0x4b5,_0x3112ff:0x2d4,_0xa28e6c:0x286,_0x342404:0x34b,_0x32a644:0x45d,_0x2c094b:0x4a7,_0x31815e:0x6de,_0x2169e6:0x1a5,_0x2f9a83:0x1e8,_0x12af66:0x2e3},_0x716ca4={_0x1635ec:0xc3},_0x1a46f4={_0x195ebb:0x1e6},_0x103fcc={_0x3fe8fe:0x53};function _0x52001a(_0x75755f,_0x29b5e4,_0x3605ee,_0x258c49){return _0x57b9de(_0x75755f-0x183,_0x29b5e4,_0x3605ee- -_0x103fcc._0x3fe8fe,_0x258c49-0x1d2);}function _0x17ddf7(_0x109652,_0x9e44d9,_0x1ef445,_0x41c9f3){return _0x23b1c2(_0x109652-_0x1a46f4._0x195ebb,_0x1ef445,_0x109652- -0x384,_0x41c9f3-0xe5);}return defineTool({'name':'AssignTask','description':_0x52001a(0x224,0x258,_0xcc4bfc._0x17a5b7,0x3e6),'inputSchema':{'type':_0x52001a(_0xcc4bfc._0x5b4317,0x503,0x437,_0xcc4bfc._0x23636f),'properties':{'agentId':{'type':_0x17ddf7(-_0xcc4bfc._0x9429f1,-_0xcc4bfc._0x4e80ad,0x31,_0xcc4bfc._0xcd1388)},'description':{'type':_0x52001a(_0xcc4bfc._0x2666ef,_0xcc4bfc._0x27198b,0x2e0,0x3bc)},'nickname':{'type':_0x52001a(0x3fe,0x242,0x2e0,_0xcc4bfc._0x5cb0d8)},'task':{'type':_0x17ddf7(-0xff,-_0xcc4bfc._0x17fff7,-_0xcc4bfc._0x111ec2,-0x21e)}},'required':[_0x17ddf7(_0xcc4bfc._0x53268a,0x56,0x8a,0xee),'description',_0x17ddf7(_0xcc4bfc._0x2881c3,_0xcc4bfc._0x10acfe,0x19,0x1a)]},async *'execute'(_0x49c8b9,_0x15e21e){const _0x4ce6da={_0x21ba00:0x155},_0x5f3a21={_0x1033ac:0x1bf,_0x12d045:0xd3},_0x673356=createDelegatedRunId(),_0x2a611f={'agentId':_0x49c8b9[_0x4d2c12(0x53a,_0x3e935a._0x401a3b,0x4d2,_0x3e935a._0x260c2b)],'parentSessionId':_0x15e21e[_0x4d2c12(_0x3e935a._0x6b0b82,_0x3e935a._0x7422f4,0x613,0x4ec)],'runId':_0x673356,..._0x15e21e[_0x4d2c12(0x543,0x2d4,_0x3e935a._0x543a4d,0x3f8)]!==void 0x0?{'toolCallId':_0x15e21e['toolCallId']}:{}};function _0x242a8e(_0xe7bfc4,_0x54dae0,_0x4be76c,_0x2598f9){return _0x52001a(_0xe7bfc4-0xda,_0x54dae0,_0xe7bfc4-_0x5f3a21._0x1033ac,_0x2598f9-_0x5f3a21._0x12d045);}const _0x4f8089=getDelegatedAgentDefinition(_0x10eda3,_0x49c8b9['agentId']);if(!_0x4f8089)throw new ToolExecutionError(_0x4d2c12(0x475,_0x3e935a._0x784798,0x4a3,0x38b)+_0x49c8b9['agentId'],{'agentId':_0x49c8b9['agentId']});const _0x57b220=new Agent(await resolveDelegatedAgentOptions(_0x4f8089,_0x2a611f));let _0x1b8715={'runId':_0x673356,'agentId':_0x49c8b9['agentId'],'sessionId':_0x57b220[_0x4d2c12(_0x3e935a._0x2e22d3,0x58f,0x459,_0x3e935a._0x4684ce)],'status':_0x242a8e(_0x3e935a._0xf70e47,_0x3e935a._0x29ef6f,_0x3e935a._0x8a9602,0x451),'parentSessionId':_0x15e21e[_0x242a8e(_0x3e935a._0x48330e,_0x3e935a._0x5e404d,_0x3e935a._0x2ff0dd,_0x3e935a._0x236a72)],..._0x15e21e[_0x4d2c12(_0x3e935a._0x531896,_0x3e935a._0x34bc1e,_0x3e935a._0x54dfdf,_0x3e935a._0x585ee3)]!==void 0x0?{'originToolCallId':_0x15e21e[_0x4d2c12(0x4c3,_0x3e935a._0x1783f2,_0x3e935a._0x4c5cbf,0x3f8)]}:{}};const _0x4a2f74=new AbortController(),_0x13e463=addAbortListener(_0x15e21e['signal'],()=>{const _0x43de05={_0x24fdae:0x1c0,_0x5035eb:0x19a};function _0x526566(_0x618f2a,_0x454664,_0x39461b,_0x5b0b1c){return _0x242a8e(_0x618f2a- -0x593,_0x39461b,_0x39461b-_0x43de05._0x24fdae,_0x5b0b1c-_0x43de05._0x5035eb);}_0x4a2f74['abort'](_0x15e21e['signal']?.[_0x526566(-_0x716ca4._0x1635ec,-0x1b9,-0x1fa,-0x160)]);});function _0x4d2c12(_0xc53b88,_0x5ae476,_0x22af8d,_0x49c44e){return _0x52001a(_0xc53b88-0x158,_0x22af8d,_0x49c44e-0x28,_0x49c44e-_0x4ce6da._0x21ba00);}yield createToolOutput('Started\x20agent\x20run\x20'+_0x1b8715[_0x4d2c12(_0x3e935a._0x5d302a,_0x3e935a._0x326276,0x46c,0x428)]+'.',{'runId':_0x1b8715[_0x242a8e(0x5bf,0x688,_0x3e935a._0x49dffd,0x648)],'agentId':_0x1b8715[_0x4d2c12(_0x3e935a._0x453b7c,_0x3e935a._0xcd37ef,0x59b,0x49a)],'sessionId':_0x1b8715[_0x242a8e(0x683,0x772,0x671,_0x3e935a._0xeb7f55)],'status':_0x1b8715[_0x242a8e(_0x3e935a._0x425eb9,_0x3e935a._0x3bcec2,0x74b,_0x3e935a._0x5ede9f)]});try{const _0xfeeb71=await _0x57b220[_0x242a8e(0x57d,0x46b,_0x3e935a._0x3999ab,0x498)](_0x49c8b9['task'],{'signal':_0x4a2f74[_0x4d2c12(_0x3e935a._0x54347e,_0x3e935a._0x50ddad,_0x3e935a._0x2eb864,_0x3e935a._0x266ac6)]});_0x1b8715={..._0x1b8715,'status':_0xfeeb71[_0x242a8e(0x63c,_0x3e935a._0x34bb3e,_0x3e935a._0x2c47de,_0x3e935a._0x51dfbc)],'result':_0xfeeb71};if(_0xfeeb71[_0x4d2c12(0x5bc,0x54e,_0x3e935a._0x1d0ef2,_0x3e935a._0x36d018)]!=='completed'){const _0x38927b=getRunTerminalErrorMessage(_0xfeeb71),_0x5161e8=formatAbortedRunMessage(_0x1b8715[_0x242a8e(0x5bf,0x546,0x4b5,_0x3e935a._0x5366e6)],_0x38927b);throw new ToolExecutionError(_0x5161e8,{...createRunSummary(_0x1b8715),'aborted':!![],'errorMessage':_0x5161e8});}return createRunSummaryOutput(_0x1b8715,'Agent\x20run\x20'+_0x1b8715['runId']+_0x242a8e(_0x3e935a._0x388ccc,_0x3e935a._0x3b43cc,_0x3e935a._0x25ee0f,0x518));}catch(_0x352756){if(_0x352756 instanceof ToolExecutionError)throw _0x352756;if(isAbortError(_0x352756)||_0x4a2f74[_0x242a8e(0x5a4,0x4ef,0x5c0,_0x3e935a._0x487f25)][_0x242a8e(0x5f1,_0x3e935a._0x49afb8,0x536,_0x3e935a._0x330eed)]||_0x15e21e['signal']['aborted']){const _0x1266df=getRunTerminalErrorMessage(_0x1b8715[_0x242a8e(0x65b,0x7a0,_0x3e935a._0x56171a,0x65b)])??(_0x352756 instanceof Error?_0x352756[_0x4d2c12(0x484,_0x3e935a._0x526daa,_0x3e935a._0x9150c2,_0x3e935a._0x5948e5)]:String(_0x352756)),_0x174496=formatAbortedRunMessage(_0x1b8715[_0x242a8e(_0x3e935a._0x2889eb,0x658,_0x3e935a._0x347bb8,_0x3e935a._0x1e8f4b)],_0x1266df);_0x1b8715={..._0x1b8715,'status':_0x242a8e(0x5f1,0x693,_0x3e935a._0x545833,0x6dc),'errorMessage':_0x174496};throw new ToolExecutionError(_0x174496,{...createRunSummary(_0x1b8715),'aborted':!![],'errorMessage':_0x174496});}const _0x1ce07a=getRunTerminalErrorMessage(_0x1b8715[_0x4d2c12(_0x3e935a._0x2bd1ac,_0x3e935a._0x45c47f,0x609,0x4c4)])??(_0x352756 instanceof Error?_0x352756['message']:String(_0x352756))??_0x4d2c12(_0x3e935a._0x3112ff,0x3a0,_0x3e935a._0xa28e6c,_0x3e935a._0x342404)+_0x1b8715[_0x4d2c12(_0x3e935a._0x32a644,0x407,_0x3e935a._0x2c094b,0x428)]+_0x242a8e(0x690,0x602,0x6be,_0x3e935a._0x31815e);_0x1b8715={..._0x1b8715,'status':_0x4d2c12(_0x3e935a._0x2169e6,0x2e6,_0x3e935a._0x2f9a83,_0x3e935a._0x12af66),'errorMessage':_0x1ce07a};throw new ToolExecutionError(_0x1ce07a,{...createRunSummary(_0x1b8715),'errorMessage':_0x1ce07a});}finally{_0x13e463();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x446a1f){return[createAssignTaskTool(_0x446a1f)];}import*as _0x441627 from'path';function buildDescription2(_0x449352){const _0x2daec7={_0xeac6e1:0x342,_0x57176e:0x1da,_0x4f5768:0x299,_0x4b6436:0x233,_0x3f1303:0x27c,_0x36c3eb:0x173,_0x54984d:0x17a,_0x51fe5c:0x4b,_0xb13eb1:0x19,_0x538deb:0x9b,_0x4eec75:0x139,_0x191ada:0x19,_0x18dc8f:0x6a,_0x2bbd8b:0x8f,_0x1d921f:0xea,_0x1dd88d:0x31},_0x16bcf8={_0x3d996c:0x321,_0x2b5242:0x8c},_0x3edde8={_0x1632d8:0xc6,_0x5189a7:0xa1};if(_0x449352[_0xc4238(0x22a,0x2f4,0x236,_0x2daec7._0xeac6e1)]===0x0)return _0xc4238(_0x2daec7._0x57176e,_0x2daec7._0x4f5768,_0x2daec7._0x4b6436,_0x2daec7._0x3f1303);function _0x3fc2c5(_0x274aa2,_0x2121c0,_0x393d36,_0x46577e){return _0x23b1c2(_0x274aa2-_0x3edde8._0x1632d8,_0x274aa2,_0x46577e- -0x455,_0x46577e-_0x3edde8._0x5189a7);}function _0xc4238(_0x326daf,_0x2c2fad,_0xe0ec24,_0x5c6161){return _0x57b9de(_0x326daf-0x4a,_0x5c6161,_0xe0ec24- -_0x16bcf8._0x3d996c,_0x5c6161-_0x16bcf8._0x2b5242);}const _0x4b5a8b=[_0xc4238(_0x2daec7._0x36c3eb,_0x2daec7._0x54984d,_0x2daec7._0x51fe5c,_0x2daec7._0xb13eb1),_0x3fc2c5(-0x1a2,-0xd3,-0xbd,-0x10f),_0xc4238(_0x2daec7._0x538deb,_0x2daec7._0x4eec75,_0x2daec7._0x191ada,_0x2daec7._0x18dc8f),_0xc4238(0x1f0,0x45,0x112,_0x2daec7._0x2bbd8b),..._0x449352[_0x3fc2c5(0x103,0x91,-_0x2daec7._0x1d921f,_0x2daec7._0x1dd88d)](_0x12f75e=>'-\x20'+_0x12f75e['name']+':\x20'+_0x12f75e[_0xc4238(0x20c,0x303,0x1f0,0x1a1)])];return _0x4b5a8b['join']('\x0a');}function createLoadSkillTool(_0x2f1aae){const _0x2cbbe4={_0x4097cb:0x97,_0x56518e:0xb3,_0x3adb8d:0x7c,_0x5b7908:0xed,_0x655dea:0xc3,_0x47c102:0xd5,_0x40b372:0xd2,_0x43db9a:0x42,_0x5af711:0xe8},_0x82e3ef={_0x4f334d:0x51,_0x5747fb:0x3cc,_0x308c06:0x83,_0xaca3c6:0xa3,_0x569ab0:0xe0,_0x4b2521:0x51d,_0x26713c:0x2b9,_0x33b53b:0x1c5,_0x6a6515:0x33d,_0x42d0cb:0xdf,_0x57f35d:0x92,_0x1488a9:0x41d,_0x57720b:0x3ed,_0x5995de:0x88,_0x182f15:0x178,_0x28c555:0x3b6,_0x341ad9:0x34e,_0xdc4ff4:0x2bf,_0x2408e8:0x264,_0x21b2da:0x194,_0x17b5a3:0x19a,_0xf5b106:0x373,_0x3b9fad:0x187,_0x49fb29:0x2be,_0xf1f013:0x3bf,_0x1694c5:0x45b,_0x50cc41:0x1ca,_0x52a9b4:0xdf,_0x1459ec:0xe7,_0x2f03dd:0xc6,_0xb6a464:0x2cd,_0x2a6eea:0x101,_0x13df64:0x43e,_0x2d7b21:0x3ff},_0x50c5b7={_0x1fb405:0x1f2,_0x52e852:0x3c},_0x3aa0e6={_0x46321f:0x32,_0x1e77d7:0x4bc,_0x5a7183:0x1ea},_0x18c8d6={_0x3dd105:0xd4};function _0x1076d3(_0x118511,_0xd40ef1,_0x4546c5,_0x32c06e){return _0x23b1c2(_0x118511-0x19a,_0x32c06e,_0x4546c5- -0x319,_0x32c06e-_0x18c8d6._0x3dd105);}const _0x304c38=new Map(_0x2f1aae[_0x1076d3(0xd,_0x2cbbe4._0x4097cb,0x86,_0x2cbbe4._0x56518e)]['map'](_0x794ad3=>[_0x794ad3[_0x1076d3(0xdc,0x11c,0x4c,-0xd)],_0x794ad3])),_0x1ee448=buildDescription2(_0x2f1aae[_0x376d7d(-0x6f,0xd0,_0x2cbbe4._0x3adb8d,-0x129)]);function _0x376d7d(_0xc5c365,_0x5ac631,_0x58c6d1,_0x3c41a6){return _0x57b9de(_0xc5c365-_0x3aa0e6._0x46321f,_0x58c6d1,_0xc5c365- -_0x3aa0e6._0x1e77d7,_0x3c41a6-_0x3aa0e6._0x5a7183);}return defineTool({'name':'LoadSkill','description':_0x1ee448,'inputSchema':{'type':_0x1076d3(0x2f,_0x2cbbe4._0x5b7908,_0x2cbbe4._0x655dea,0x77),'properties':{'name':{'type':_0x376d7d(-0x189,-_0x2cbbe4._0x47c102,-_0x2cbbe4._0x40b372,-0x1d3)}},'required':[_0x376d7d(-0xa9,-_0x2cbbe4._0x43db9a,-0x133,-_0x2cbbe4._0x5af711)]},async *'execute'(_0x5abec9){const _0x262afa=_0x304c38[_0x54eb06(-_0x82e3ef._0x4f334d,0xf,0x73,0x154)](_0x5abec9[_0x14db13(0x2a7,_0x82e3ef._0x5747fb,0x259,0x1a4)]);if(!_0x262afa){const _0xe84659=Array[_0x54eb06(-_0x82e3ef._0x308c06,0x4a,0xb5,0x160)](_0x304c38[_0x54eb06(0x1dc,_0x82e3ef._0xaca3c6,0x19c,_0x82e3ef._0x569ab0)]())['join'](',\x20');throw new ToolExecutionError(_0x14db13(0x3fe,_0x82e3ef._0x4b2521,0x2e4,0x4b0)+_0x5abec9['name']+_0x14db13(0x27c,_0x82e3ef._0x26713c,_0x82e3ef._0x33b53b,0x2f3)+_0xe84659,{'name':_0x5abec9['name']});}const _0x25c08e=await _0x2f1aae['loadSkill'](_0x262afa);function _0x14db13(_0x4e8a1c,_0x22a4e4,_0x23a966,_0x3fd723){return _0x1076d3(_0x4e8a1c-0x47,_0x22a4e4-0x196,_0x4e8a1c-0x25b,_0x23a966);}const _0x5aa372=_0x262afa[_0x14db13(0x3c7,_0x82e3ef._0x6a6515,0x481,0x2c8)][_0x14db13(0x3c2,0x388,0x367,0x4c6)]??_0x441627[_0x54eb06(0xdb,_0x82e3ef._0x42d0cb,-0x62,_0x82e3ef._0x57f35d)](_0x262afa[_0x14db13(0x3c7,0x385,_0x82e3ef._0x1488a9,_0x82e3ef._0x57720b)]['path']),_0x289bd7=['##\x20Skill:\x20'+_0x25c08e[_0x54eb06(0xb2,_0x82e3ef._0x5995de,0x7c,_0x82e3ef._0x182f15)],'',_0x25c08e[_0x14db13(_0x82e3ef._0x28c555,0x45a,_0x82e3ef._0x341ad9,_0x82e3ef._0xdc4ff4)],'',_0x14db13(_0x82e3ef._0x2408e8,_0x82e3ef._0x21b2da,_0x82e3ef._0x17b5a3,_0x82e3ef._0xf5b106),_0x54eb06(0x1c5,_0x82e3ef._0x3b9fad,_0x82e3ef._0x49fb29,0x21f)+_0x262afa['source'][_0x14db13(_0x82e3ef._0xf1f013,0x499,0x40a,_0x82e3ef._0x1694c5)],_0x14db13(_0x82e3ef._0x50cc41,_0x82e3ef._0x52a9b4,_0x82e3ef._0x1459ec,_0x82e3ef._0x2f03dd)+_0x5aa372]['join']('\x0a');function _0x54eb06(_0x2e2c6b,_0x1464a3,_0x51ce2d,_0x5878be){return _0x1076d3(_0x2e2c6b-0x8b,_0x1464a3-_0x50c5b7._0x1fb405,_0x1464a3-_0x50c5b7._0x52e852,_0x2e2c6b);}return yield createToolOutput(_0x289bd7,{'id':_0x25c08e['id'],'name':_0x25c08e['name'],'path':_0x262afa[_0x54eb06(0x23e,0x1a8,_0x82e3ef._0xb6a464,_0x82e3ef._0x2a6eea)][_0x14db13(0x3bf,0x3de,_0x82e3ef._0x13df64,_0x82e3ef._0x2d7b21)],'baseDirectory':_0x5aa372}),void 0x0;}});}var TODO_STATUSES=new Set([_0x57b9de(0x318,0x3d9,0x354,0x257),_0x57b9de(0x58c,0x44b,0x530,0x669),'completed']),TODO_PRIORITIES=new Set([_0x23b1c2(0x166,0x3b9,0x295,0x1ec),_0x57b9de(0x3b4,0x47d,0x358,0x39b),_0x57b9de(0x5e3,0x5d4,0x54e,0x46a)]);function isTodoStatus(_0x5516c7){const _0x31a80c={_0x3a0eb8:0x3f6,_0xe738ec:0x2f6,_0x270f11:0x472,_0x5023ff:0x55c,_0x827c7b:0x3b7},_0x4fd7be={_0x160382:0x171,_0x1319ad:0xa6},_0x3ff1ea={_0x1f351d:0xf2,_0x49c723:0x35b};function _0x51e061(_0xdea2b0,_0x40c9e5,_0x17fb51,_0x2b82c5){return _0x57b9de(_0xdea2b0-_0x3ff1ea._0x1f351d,_0xdea2b0,_0x17fb51- -_0x3ff1ea._0x49c723,_0x2b82c5-0x38);}function _0x1430fb(_0x376d61,_0x4df81e,_0x42c13b,_0x4bb96d){return _0x23b1c2(_0x376d61-0xe2,_0x4df81e,_0x376d61-_0x4fd7be._0x160382,_0x4bb96d-_0x4fd7be._0x1319ad);}return typeof _0x5516c7===_0x1430fb(_0x31a80c._0x3a0eb8,0x4a5,0x2de,_0x31a80c._0xe738ec)&&TODO_STATUSES[_0x1430fb(_0x31a80c._0x270f11,_0x31a80c._0x5023ff,0x3c6,_0x31a80c._0x827c7b)](_0x5516c7);}function isTodoPriority(_0x13635d){const _0x5a5b6c={_0x5009dc:0x55};function _0x14c7c0(_0x314b8d,_0x3ae717,_0x22e7ff,_0x5050c8){return _0x23b1c2(_0x314b8d-0xf7,_0x314b8d,_0x22e7ff- -0x279,_0x5050c8-0x100);}return typeof _0x13635d==='string'&&TODO_PRIORITIES[_0x14c7c0(-0x1e,_0x5a5b6c._0x5009dc,0x88,0x2f)](_0x13635d);}var TodoStore=class{[_0x57b9de(0x40e,0x3a7,0x4b5,0x36b)]=new Map();[_0x57b9de(0x291,0x274,0x370,0x3aa)](_0x499400){const _0x586eff={_0x25de2c:0x276,_0x1dfd30:0x203,_0x580ca3:0x290,_0x13261f:0x183},_0xe1bc59={_0x519dce:0x169,_0x467e9b:0xfe},_0x28a71c={_0x5c0028:0x2c,_0xa973d8:0x2e6};function _0x57d0d8(_0x12e244,_0x1d0c67,_0x102c91,_0x3cdfea){return _0x57b9de(_0x12e244-_0x28a71c._0x5c0028,_0x1d0c67,_0x3cdfea- -_0x28a71c._0xa973d8,_0x3cdfea-0xfb);}function _0x4bfa0b(_0x5efd82,_0x1cdeb5,_0x356e4c,_0x41cd75){return _0x23b1c2(_0x5efd82-0x70,_0x5efd82,_0x356e4c- -_0xe1bc59._0x519dce,_0x41cd75-_0xe1bc59._0x467e9b);}return this[_0x4bfa0b(0x2cc,_0x586eff._0x25de2c,0x29e,0x303)][_0x4bfa0b(_0x586eff._0x1dfd30,_0x586eff._0x580ca3,_0x586eff._0x13261f,0x11a)](_0x499400)??[];}[_0x57b9de(0x391,0x46e,0x4cb,0x558)](_0x14a1e4,_0x4ccca4){const _0x8dd809={_0x281b01:0x335,_0x17c68f:0xd1,_0x45706f:0x124},_0xb2c61a={_0x5e0c1d:0x1f0,_0x16b3a6:0x9c},_0x1fe58e={_0x54f2eb:0x110};function _0x2cb87a(_0x2cac03,_0x2cbfb1,_0x1bcfee,_0x2e5a2f){return _0x23b1c2(_0x2cac03-0xee,_0x2cac03,_0x2cbfb1- -0xd2,_0x2e5a2f-_0x1fe58e._0x54f2eb);}function _0x2a526d(_0x41bd8f,_0x584257,_0x4b4b6e,_0x1ed85e){return _0x57b9de(_0x41bd8f-_0xb2c61a._0x5e0c1d,_0x4b4b6e,_0x584257- -0x461,_0x1ed85e-_0xb2c61a._0x16b3a6);}this[_0x2cb87a(0x3e8,_0x8dd809._0x281b01,0x251,0x2ba)][_0x2cb87a(_0x8dd809._0x17c68f,0x177,0x1d1,_0x8dd809._0x45706f)](_0x14a1e4,_0x4ccca4);}[_0x57b9de(0x3a8,0x348,0x3e5,0x3cb)](_0x3d3923){const _0x3dea51={_0xc567d4:0x22f,_0x4b453f:0x13a,_0x454cc2:0x270,_0x55f15d:0xad,_0x54eb79:0x85,_0x3cd251:0xc1,_0x33beac:0x159,_0x152980:0x10e,_0x444904:0xd4,_0x344e50:0x8f,_0x1e1e1d:0x26,_0x25a9d7:0x41,_0x12f491:0x9,_0x1c4b86:0x174};function _0x31d5b9(_0x3fe2f7,_0xa45dbf,_0x48c26c,_0x463f72){return _0x57b9de(_0x3fe2f7-0xe,_0x463f72,_0x48c26c- -0x4aa,_0x463f72-0xa8);}function _0x473d7c(_0x33971d,_0x34779b,_0x5de767,_0x2f6b12){return _0x57b9de(_0x33971d-0x12,_0x5de767,_0x2f6b12- -0x462,_0x2f6b12-0x122);}const _0xd73013=this[_0x31d5b9(-0x258,-_0x3dea51._0xc567d4,-_0x3dea51._0x4b453f,-_0x3dea51._0x454cc2)](_0x3d3923),_0x411f24={'total':_0xd73013[_0x31d5b9(0x16f,0x71,_0x3dea51._0x55f15d,0x46)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0xf509f3 of _0xd73013){if(_0xf509f3[_0x31d5b9(_0x3dea51._0x54eb79,_0x3dea51._0x3cd251,0x26,0xa3)]===_0x473d7c(-0x1ed,-0x1e1,-_0x3dea51._0x33beac,-_0x3dea51._0x152980))_0x411f24[_0x31d5b9(-_0x3dea51._0x444904,-0xd4,-0x156,-_0x3dea51._0x344e50)]+=0x1;else{if(_0xf509f3[_0x31d5b9(0x65,-0x8b,_0x3dea51._0x1e1e1d,-0x5c)]==='in_progress')_0x411f24[_0x473d7c(-_0x3dea51._0x25a9d7,-0x1d,-_0x3dea51._0x12f491,-0x145)]+=0x1;else _0x411f24[_0x473d7c(0x106,_0x3dea51._0x1c4b86,-0x60,0xbe)]+=0x1;}}return _0x411f24;}};function validateTodos(_0x454c84){const _0x5d85c2={_0x449ede:0x31e,_0x1de68f:0x35b,_0x241d2a:0x406,_0x46c2a2:0x8,_0x26b383:0x130,_0x5e0200:0xa4,_0xc20c82:0x94,_0x5b3da3:0x2d2,_0x505c8c:0x1a5,_0x380fb5:0x8c,_0xed6b9b:0x212,_0x1b8f4c:0x251,_0x3729de:0x1ad,_0x38d1bd:0x1a1,_0x4b68af:0x363,_0x4cc1e2:0x1f3,_0x42a38b:0x13f,_0x1aa6da:0x25f,_0x442730:0xe0,_0x59973f:0x137,_0x5409eb:0x178,_0x3528e0:0x1fa,_0x5698ba:0x448,_0x214f96:0x219,_0x181905:0x2b2,_0x338ab7:0x2a9,_0x458db1:0x30c,_0x101582:0x50,_0x4f5354:0x1a0,_0x4acc90:0x1ca,_0x4653ba:0x238,_0x59e5aa:0x295,_0x322e81:0x44e,_0x22423f:0x2f9,_0x1e0b7e:0x326,_0x449d5b:0x3ec,_0x533d67:0x3d1,_0x32f1a8:0x341,_0x6c141c:0x20d,_0x50ea3e:0x33d,_0x3b595d:0x236,_0x1134d5:0x2d4,_0xa6f6bf:0x278,_0x550368:0x32d,_0x3cc4f0:0x3ca,_0xc81d99:0x1dc,_0x1e75f1:0x175,_0x4456b0:0x43f,_0x279574:0x205,_0x4d4848:0x29d,_0x2806a3:0x34b,_0x466192:0x218,_0x36ad34:0x3d5,_0x58e9ef:0x1d0,_0x7100be:0x220,_0x56ac03:0x36e,_0x5722b7:0x3a1,_0x36eb6c:0x470,_0x5723bb:0x2a,_0x476e4b:0x15b,_0x3a26ea:0x24b,_0x28feca:0x18a},_0xb73ffc={_0x45008a:0x13a,_0x4a32f0:0x13b};if(!Array['isArray'](_0x454c84['todos'])||_0x454c84['todos'][_0x10ed1d(0x42a,_0x5d85c2._0x449ede,_0x5d85c2._0x1de68f,_0x5d85c2._0x241d2a)]===0x0)throw new ToolExecutionError(_0x12c6d2(_0x5d85c2._0x46c2a2,_0x5d85c2._0x26b383,_0x5d85c2._0x5e0200,_0x5d85c2._0xc20c82),{'error':'invalid_todos'});for(let _0x33030d=0x0;_0x33030d<_0x454c84[_0x12c6d2(_0x5d85c2._0x5b3da3,_0x5d85c2._0x505c8c,_0x5d85c2._0x380fb5,0x20c)][_0x10ed1d(0x31e,0x297,0x35b,0x4a5)];_0x33030d+=0x1){const _0x2ab691=_0x454c84[_0x12c6d2(_0x5d85c2._0xed6b9b,0x1a5,_0x5d85c2._0x1b8f4c,_0x5d85c2._0x3729de)][_0x33030d];if(!_0x2ab691||typeof _0x2ab691!==_0x10ed1d(_0x5d85c2._0x38d1bd,0x39a,0x28e,0x30f))throw new ToolExecutionError(_0x10ed1d(0x341,0x3ec,0x2e6,_0x5d85c2._0x4b68af)+(_0x33030d+0x1)+_0x12c6d2(0x106,0x118,_0x5d85c2._0x4cc1e2,0x26b),{'error':_0x12c6d2(0xf3,_0x5d85c2._0x42a38b,_0x5d85c2._0x1aa6da,0xc6)});if(typeof _0x2ab691['id']!==_0x10ed1d(0x259,_0x5d85c2._0x442730,_0x5d85c2._0x59973f,0x189)||_0x2ab691['id'][_0x12c6d2(0x8c,_0x5d85c2._0x5409eb,_0x5d85c2._0x3528e0,0x213)]()[_0x10ed1d(0x3dd,_0x5d85c2._0x5698ba,0x35b,0x428)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x33030d+0x1)+_0x12c6d2(_0x5d85c2._0x214f96,_0x5d85c2._0x181905,0x2d1,_0x5d85c2._0x338ab7),{'error':_0x10ed1d(0x31d,0x30a,0x390,_0x5d85c2._0x458db1)});if(typeof _0x2ab691['content']!==_0x10ed1d(0xcc,0xf3,0x137,_0x5d85c2._0x101582)||_0x2ab691[_0x12c6d2(_0x5d85c2._0x4f5354,0x16c,_0x5d85c2._0x4acc90,0x20f)][_0x12c6d2(_0x5d85c2._0x4653ba,0x178,0x294,0x24a)]()[_0x12c6d2(_0x5d85c2._0x59e5aa,0x36e,0x396,_0x5d85c2._0x322e81)]===0x0)throw new ToolExecutionError(_0x12c6d2(0x435,_0x5d85c2._0x22423f,0x1cf,_0x5d85c2._0x1e0b7e)+(_0x33030d+0x1)+_0x10ed1d(0x238,_0x5d85c2._0x449d5b,0x318,0x398),{'error':_0x10ed1d(0x312,_0x5d85c2._0x533d67,_0x5d85c2._0x32f1a8,_0x5d85c2._0x6c141c)});if(!isTodoStatus(_0x2ab691[_0x10ed1d(_0x5d85c2._0x50ea3e,_0x5d85c2._0x3b595d,_0x5d85c2._0x1134d5,_0x5d85c2._0xa6f6bf)]))throw new ToolExecutionError(_0x12c6d2(_0x5d85c2._0x550368,0x2f9,0x28a,_0x5d85c2._0x3cc4f0)+(_0x33030d+0x1)+':\x20invalid\x20status',{'error':_0x12c6d2(0x2e2,_0x5d85c2._0xc81d99,_0x5d85c2._0x1e75f1,0xa3)});if(!isTodoPriority(_0x2ab691[_0x12c6d2(0x391,0x300,_0x5d85c2._0x4456b0,_0x5d85c2._0x279574)]))throw new ToolExecutionError(_0x10ed1d(_0x5d85c2._0x4d4848,0x1e6,0x2e6,0x254)+(_0x33030d+0x1)+':\x20invalid\x20priority',{'error':'invalid_todo_priority'});}function _0x12c6d2(_0x41edc9,_0x5df231,_0x3b51eb,_0x12cd4f){return _0x23b1c2(_0x41edc9-_0xb73ffc._0x45008a,_0x41edc9,_0x5df231- -_0xb73ffc._0x4a32f0,_0x12cd4f-0x97);}function _0x10ed1d(_0x2b8d90,_0x11049c,_0x213e5d,_0x3f8476){return _0x23b1c2(_0x2b8d90-0x181,_0x11049c,_0x213e5d- -0x14e,_0x3f8476-0x33);}const _0x5d4c0d=_0x454c84[_0x12c6d2(0x177,_0x5d85c2._0x505c8c,0x2db,0x2ee)][_0x12c6d2(0x39f,_0x5d85c2._0x2806a3,_0x5d85c2._0x466192,_0x5d85c2._0x36ad34)](_0x59a497=>_0x59a497['id']);if(new Set(_0x5d4c0d)[_0x12c6d2(0x26a,0x2cb,0x1de,_0x5d85c2._0x58e9ef)]!==_0x5d4c0d[_0x12c6d2(_0x5d85c2._0x7100be,_0x5d85c2._0x56ac03,_0x5d85c2._0x5722b7,_0x5d85c2._0x36eb6c)])throw new ToolExecutionError(_0x12c6d2(_0x5d85c2._0x5723bb,0x12b,_0x5d85c2._0x476e4b,_0x5d85c2._0x3a26ea),{'error':_0x10ed1d(_0x5d85c2._0x4f5354,0x2d6,_0x5d85c2._0x28feca,0x167)});}function createStatsProgress(_0x236530){const _0x2e87f6={_0x462dbc:0x176,_0x14c609:0x16b,_0x3674a:0x1eb,_0x538eba:0x1d7,_0x5dad82:0xe2,_0x23ea30:0x398,_0x3a87a6:0x2fe,_0x3821c1:0x11f,_0x3e1ee5:0xb0,_0x91a501:0x1f3,_0x104c14:0x1c8},_0x24550c={_0x540d78:0x4d,_0x5873c1:0x1a0},_0x2021b2={_0x2c8783:0x1b7};function _0x268649(_0x5dc541,_0x534b25,_0x15ff03,_0x4fd0f4){return _0x23b1c2(_0x5dc541-_0x2021b2._0x2c8783,_0x15ff03,_0x4fd0f4- -0x174,_0x4fd0f4-0x71);}function _0x5cf10c(_0x14f5f0,_0xd5afbb,_0x58f2f2,_0x4df89c){return _0x23b1c2(_0x14f5f0-_0x24550c._0x540d78,_0xd5afbb,_0x4df89c- -0x197,_0x4df89c-_0x24550c._0x5873c1);}return _0x236530[_0x268649(0x2a3,_0x2e87f6._0x462dbc,_0x2e87f6._0x14c609,_0x2e87f6._0x3674a)]>0x0?Math[_0x5cf10c(0x15f,0x87,_0x2e87f6._0x538eba,_0x2e87f6._0x5dad82)](_0x236530[_0x268649(0x43a,_0x2e87f6._0x23ea30,0x304,_0x2e87f6._0x3a87a6)]/_0x236530[_0x5cf10c(_0x2e87f6._0x3821c1,_0x2e87f6._0x3e1ee5,_0x2e87f6._0x91a501,_0x2e87f6._0x104c14)]*0x64)+'%':'0%';}function createReminderItems(_0x53adab){const _0x1f9262={_0x540ab9:0x47e,_0xfdcc86:0x2e9},_0x179561={_0x5d719c:0x100,_0x67c910:0xc},_0x207249={_0x139ca9:0xf7,_0x7948ce:0x16};function _0x28f948(_0xc776f4,_0x5eda0e,_0x538f36,_0x311c33){return _0x57b9de(_0xc776f4-_0x207249._0x139ca9,_0x311c33,_0x538f36- -_0x207249._0x7948ce,_0x311c33-0x1e7);}function _0x47ba5d(_0x47ff69,_0x340619,_0x47b183,_0x451ba1){return _0x23b1c2(_0x47ff69-0x122,_0x451ba1,_0x47b183- -_0x179561._0x5d719c,_0x451ba1-_0x179561._0x67c910);}return _0x53adab[_0x47ba5d(_0x1f9262._0x540ab9,_0x1f9262._0xfdcc86,0x386,0x378)](_0x4f883c=>({'content':_0x4f883c['content'],'status':_0x4f883c[_0x28f948(0x435,0x501,0x4ba,0x48b)],'id':_0x4f883c['id']}));}function createStructuredResult(_0x1a0671,_0xbf4049,_0x4cbe5b,_0x2b8a87){const _0x1a4dc3={_0x1e26c7:0x748,_0x2779a6:0x65a,_0x4c12f6:0x73e,_0x1ad5e1:0x67d},_0x4a0667={_0x382835:0x8a},_0x23ec93={_0x314275:0x24a,_0x247a6c:0x1c7};function _0x48c938(_0x34efed,_0x95c5c8,_0x1334e3,_0x4dd509){return _0x23b1c2(_0x34efed-0x52,_0x95c5c8,_0x1334e3- -_0x23ec93._0x314275,_0x4dd509-_0x23ec93._0x247a6c);}function _0x579180(_0x40ddf1,_0x1377bb,_0x6096ec,_0x580265){return _0x57b9de(_0x40ddf1-_0x4a0667._0x382835,_0x40ddf1,_0x1377bb-0x126,_0x580265-0xd6);}return{'allCompleted':_0x2b8a87,'items':_0xbf4049[_0x579180(_0x1a4dc3._0x1e26c7,_0x1a4dc3._0x2779a6,0x5ed,0x56c)](_0x39edd4=>({'id':_0x39edd4['id'],'content':_0x39edd4[_0x48c938(0xd9,-0x8e,0x5d,0x2b)],'status':_0x39edd4[_0x579180(0x5eb,0x5f6,0x692,0x513)],'priority':_0x39edd4[_0x579180(0x661,0x60f,0x664,0x646)],'createdAt':_0x39edd4[_0x579180(0x520,0x589,0x61b,0x6ae)]})),'progress':createStatsProgress(_0x4cbe5b),'recentChanges':!![],'sessionId':_0x1a0671,'stats':_0x4cbe5b,'todosWritten':_0xbf4049[_0x579180(_0x1a4dc3._0x4c12f6,_0x1a4dc3._0x1ad5e1,0x641,0x6d2)]};}function createOutputText(_0x464a1e,_0x4f6b91){const _0xd88794={_0x218c9f:0xc7,_0x45555a:0x1e,_0x3b6d19:0x126,_0x12dbdb:0x86,_0x303884:0x2f,_0x275256:0xba,_0xc5cc6e:0x10a,_0x27fcad:0xb8},_0x1cc6ec={_0x2cd203:0x1ee},_0x3865bc={_0x369ac4:0x4f,_0x58145a:0x420,_0x4d2992:0x15e},_0x4ff7c2=JSON[_0x478f6f(0xe7,-0x4,0xf7,-_0xd88794._0x218c9f)](createReminderItems(_0x464a1e));function _0x478f6f(_0x2c909f,_0xab3541,_0x4a3386,_0x513f36){return _0x57b9de(_0x2c909f-_0x3865bc._0x369ac4,_0x513f36,_0xab3541- -_0x3865bc._0x58145a,_0x513f36-_0x3865bc._0x4d2992);}function _0x5037cc(_0x18cf96,_0x3ad9c8,_0x45d08c,_0x332d96){return _0x57b9de(_0x18cf96-_0x1cc6ec._0x2cd203,_0x332d96,_0x18cf96- -0x48c,_0x332d96-0xae);}if(_0x4f6b91)return _0x5037cc(-_0xd88794._0x45555a,-0x17,0xda,-_0xd88794._0x3b6d19)+_0x464a1e[_0x478f6f(_0xd88794._0x12dbdb,0x137,0x153,0x3e)]+_0x478f6f(-0x17e,-0x113,-_0xd88794._0x303884,-0x220)+_0x4ff7c2+_0x478f6f(-0x1bc,-_0xd88794._0x275256,0x6d,0x95);return _0x5037cc(-_0xd88794._0xc5cc6e,-0x1a9,-0x235,-0x17e)+_0x4ff7c2+_0x478f6f(-0x87,-_0xd88794._0x275256,0x70,-_0xd88794._0x27fcad);}function createTodoWriteTool(_0x59b13a=new TodoStore()){const _0x4570e6={_0x1bc465:0x41f,_0x1c1d3f:0x3ac,_0x35a20c:0x3c2,_0x4ca9d3:0x1f3,_0x338335:0x2c8,_0x2b205c:0x42f,_0x23cc70:0x766,_0x2d475d:0x6bc,_0x3cee75:0x7a0,_0x39e151:0x565,_0x21ba3f:0x43b,_0x319d93:0x267,_0xc03161:0x26b,_0x5b6e82:0x34c,_0x324e0a:0x470,_0x4dc681:0x3a4,_0xdd7f02:0x398,_0x4c0a54:0x28d,_0x7d79df:0x2d5,_0x41fb60:0x408,_0x51f8c4:0x539,_0x90de58:0x537,_0x53adda:0x55c,_0x5566d8:0x421,_0x327987:0x315,_0x4d108a:0x4e3,_0x529df2:0x5c0,_0x400cef:0x6bb},_0x2cd3d2={_0x4c59c4:0x3c8,_0x4c4478:0x56d,_0x459b24:0x334,_0x207766:0x385,_0x31e95d:0x18b,_0x1ffaf2:0x7b8,_0x5b7a4e:0x8f9,_0xa17fa1:0x632,_0x39f18c:0x7db,_0xef34c3:0x7b2,_0x1bd48b:0x72f,_0x309c68:0x19f,_0x2e015f:0x3c9,_0x36d89d:0x2d1},_0x1d2a5a={_0x4d6cb5:0x193},_0x1e066d={_0x442332:0x1a},_0x4eef56={_0x52d03a:0x127,_0x53d4a0:0x11};function _0xa23f57(_0x68f189,_0x1e6b80,_0x1ce547,_0x37e3c4){return _0x57b9de(_0x68f189-_0x4eef56._0x52d03a,_0x37e3c4,_0x1e6b80-0x232,_0x37e3c4-_0x4eef56._0x53d4a0);}function _0x5db649(_0x3eca21,_0x4df638,_0x22a210,_0xb63033){return _0x23b1c2(_0x3eca21-0x141,_0x4df638,_0x22a210- -_0x1e066d._0x442332,_0xb63033-0x1c3);}return defineTool({'name':'TodoWrite','description':'Use\x20this\x20tool\x20to\x20create\x20and\x20manage\x20a\x20structured\x20task\x20list\x20for\x20your\x20current\x20coding\x20session.\x20This\x20helps\x20you\x20track\x20progress,\x20organize\x20complex\x20tasks,\x20and\x20demonstrate\x20thoroughness\x20to\x20the\x20user.\x0aIt\x20also\x20helps\x20the\x20user\x20understand\x20the\x20progress\x20of\x20the\x20task\x20and\x20overall\x20progress\x20of\x20their\x20requests.\x0a\x0a##\x20When\x20to\x20Use\x20This\x20Tool\x0aUse\x20this\x20tool\x20proactively\x20in\x20these\x20scenarios:\x0a\x0a1.\x20Complex\x20multi-step\x20tasks\x20-\x20When\x20a\x20task\x20requires\x203\x20or\x20more\x20distinct\x20steps\x20or\x20actions\x0a2.\x20Non-trivial\x20and\x20complex\x20tasks\x20-\x20Tasks\x20that\x20require\x20careful\x20planning\x20or\x20multiple\x20operations\x0a3.\x20User\x20explicitly\x20requests\x20todo\x20list\x20-\x20When\x20the\x20user\x20directly\x20asks\x20you\x20to\x20use\x20the\x20todo\x20list\x0a4.\x20User\x20provides\x20multiple\x20tasks\x20-\x20When\x20users\x20provide\x20a\x20list\x20of\x20things\x20to\x20be\x20done\x20(numbered\x20or\x20comma-separated)\x0a5.\x20After\x20receiving\x20new\x20instructions\x20-\x20Immediately\x20capture\x20user\x20requirements\x20as\x20todos\x0a6.\x20When\x20you\x20start\x20working\x20on\x20a\x20task\x20-\x20Mark\x20it\x20as\x20in_progress\x20BEFORE\x20beginning\x20work.\x20Ideally\x20you\x20should\x20only\x20have\x20one\x20todo\x20as\x20in_progress\x20at\x20a\x20time\x0a7.\x20After\x20completing\x20a\x20task\x20-\x20Mark\x20it\x20as\x20completed\x20and\x20add\x20any\x20new\x20follow-up\x20tasks\x20discovered\x20during\x20implementation\x0a\x0a##\x20When\x20NOT\x20to\x20Use\x20This\x20Tool\x0a\x0aSkip\x20using\x20this\x20tool\x20when:\x0a1.\x20There\x20is\x20only\x20a\x20single,\x20straightforward\x20task\x0a2.\x20The\x20task\x20is\x20trivial\x20and\x20tracking\x20it\x20provides\x20no\x20organizational\x20benefit\x0a3.\x20The\x20task\x20can\x20be\x20completed\x20in\x20less\x20than\x203\x20trivial\x20steps\x0a4.\x20The\x20task\x20is\x20purely\x20conversational\x20or\x20informational\x0a\x0aNOTE\x20that\x20you\x20should\x20not\x20use\x20this\x20tool\x20if\x20there\x20is\x20only\x20one\x20trivial\x20task\x20to\x20do.\x20In\x20this\x20case\x20you\x20are\x20better\x20off\x20just\x20doing\x20the\x20task\x20directly.\x0a\x0a##\x20Task\x20States\x20and\x20Management\x0a\x0a1.\x20**Task\x20States**:\x20Use\x20these\x20states\x20to\x20track\x20progress:\x0a-\x20pending:\x20Task\x20not\x20yet\x20started\x0a-\x20in_progress:\x20Currently\x20working\x20on\x20(limit\x20to\x20ONE\x20task\x20at\x20a\x20time)\x0a-\x20completed:\x20Task\x20finished\x20successfully\x0a\x0a2.\x20**Task\x20Management**:\x0a-\x20Update\x20task\x20status\x20in\x20real-time\x20as\x20you\x20work\x0a-\x20Mark\x20tasks\x20complete\x20IMMEDIATELY\x20after\x20finishing\x20(don\x27t\x20batch\x20completions)\x0a-\x20Only\x20have\x20ONE\x20task\x20in_progress\x20at\x20any\x20time\x0a-\x20Complete\x20current\x20tasks\x20before\x20starting\x20new\x20ones\x0a-\x20Remove\x20tasks\x20that\x20are\x20no\x20longer\x20relevant\x20from\x20the\x20list\x20entirely\x0a\x0a3.\x20**Task\x20Completion\x20Requirements**:\x0a-\x20ONLY\x20mark\x20a\x20task\x20as\x20completed\x20when\x20you\x20have\x20FULLY\x20accomplished\x20it\x0a-\x20If\x20you\x20encounter\x20errors,\x20blockers,\x20or\x20cannot\x20finish,\x20keep\x20the\x20task\x20as\x20in_progress\x0a-\x20When\x20blocked,\x20create\x20a\x20new\x20task\x20describing\x20what\x20needs\x20to\x20be\x20resolved\x0a-\x20Never\x20mark\x20a\x20task\x20as\x20completed\x20if:\x0a-\x20Tests\x20are\x20failing\x0a-\x20Implementation\x20is\x20partial\x0a-\x20You\x20encountered\x20unresolved\x20errors\x0a-\x20You\x20couldn\x27t\x20find\x20necessary\x20files\x20or\x20dependencies\x0a\x0a4.\x20**Task\x20Breakdown**:\x0a-\x20Create\x20specific,\x20actionable\x20items\x0a-\x20Break\x20complex\x20tasks\x20into\x20smaller,\x20manageable\x20steps\x0a-\x20Use\x20clear,\x20descriptive\x20task\x20names\x0a\x0aWhen\x20in\x20doubt,\x20use\x20this\x20tool.\x20Being\x20proactive\x20with\x20task\x20management\x20demonstrates\x20attentiveness\x20and\x20ensures\x20you\x20complete\x20all\x20requirements\x20successfully.','inputSchema':{'type':_0x5db649(_0x4570e6._0x1bc465,_0x4570e6._0x1c1d3f,_0x4570e6._0x35a20c,0x4c9),'properties':{'todos':{'type':_0x5db649(_0x4570e6._0x4ca9d3,_0x4570e6._0x338335,0x310,_0x4570e6._0x2b205c),'items':{'type':_0xa23f57(_0x4570e6._0x23cc70,_0x4570e6._0x2d475d,_0x4570e6._0x3cee75,0x72d),'properties':{'content':{'type':_0xa23f57(0x671,_0x4570e6._0x39e151,0x639,_0x4570e6._0x21ba3f)},'status':{'type':_0x5db649(0x236,_0x4570e6._0x319d93,_0x4570e6._0xc03161,_0x4570e6._0x5b6e82)},'priority':{'type':'string'},'id':{'type':_0xa23f57(0x513,_0x4570e6._0x39e151,_0x4570e6._0x324e0a,0x681)},'createdAt':{'type':_0xa23f57(0x60f,0x565,0x4ad,0x599)}},'required':[_0x5db649(_0x4570e6._0x4dc681,_0x4570e6._0xdd7f02,_0x4570e6._0x4c0a54,0x365),_0x5db649(_0x4570e6._0x7d79df,0x4af,_0x4570e6._0x41fb60,_0x4570e6._0x51f8c4),_0x5db649(_0x4570e6._0x90de58,_0x4570e6._0x53adda,_0x4570e6._0x5566d8,_0x4570e6._0x327987),'id']}}},'required':[_0xa23f57(_0x4570e6._0x4d108a,_0x4570e6._0x529df2,0x55f,_0x4570e6._0x400cef)]},async *'execute'(_0x4f0d2d,_0x30aaad){const _0x1b2ab4={_0x1a34ab:0x108},_0x5573cd=_0x4f0d2d;validateTodos(_0x5573cd);function _0x399ec5(_0x4de88,_0x7a9854,_0x25ef95,_0x3c0d28){return _0x5db649(_0x4de88-_0x1d2a5a._0x4d6cb5,_0x3c0d28,_0x7a9854-0x34c,_0x3c0d28-0x118);}const _0x1ea25a=_0x30aaad[_0x4f7f11(_0x2cd3d2._0x4c59c4,0x546,_0x2cd3d2._0x4c4478,0x458)]||_0x4f7f11(0x45c,_0x2cd3d2._0x459b24,0x49b,_0x2cd3d2._0x207766),_0x90825b=new Date()['toISOString'](),_0x193626=_0x5573cd[_0x4f7f11(_0x2cd3d2._0x31e95d,0x2dc,0x181,0x2cf)][_0x399ec5(0x745,_0x2cd3d2._0x1ffaf2,0x7f3,_0x2cd3d2._0x5b7a4e)](_0x28ee60=>({'id':_0x28ee60['id'],'content':_0x28ee60[_0x399ec5(0x6e4,0x5d9,0x6d5,0x5a6)],'status':_0x28ee60['status'],'priority':_0x28ee60['priority'],'sessionId':_0x1ea25a,'createdAt':_0x28ee60[_0x4f7f11(0x482,0x4b7,0x271,0x3a4)]||_0x90825b,'updatedAt':_0x90825b}));_0x59b13a['setTodos'](_0x1ea25a,_0x193626);function _0x4f7f11(_0x228f67,_0x124baf,_0x1db3e8,_0x3af841){return _0xa23f57(_0x228f67-0x1c9,_0x3af841- -0x2f1,_0x1db3e8-_0x1b2ab4._0x1a34ab,_0x1db3e8);}const _0x580702=_0x59b13a[_0x399ec5(0x60f,0x669,_0x2cd3d2._0xa17fa1,0x7b3)](_0x1ea25a),_0x33f964=_0x193626[_0x399ec5(0x7c8,_0x2cd3d2._0x39f18c,_0x2cd3d2._0xef34c3,_0x2cd3d2._0x1bd48b)]>0x0&&_0x193626[_0x4f7f11(0x2c5,_0x2cd3d2._0x309c68,_0x2cd3d2._0x2e015f,_0x2cd3d2._0x36d89d)](_0x211c04=>_0x211c04[_0x4f7f11(0x3b7,0x550,0x41c,0x411)]===_0x4f7f11(0x567,0x42f,0x47b,0x461));return createToolOutput(createOutputText(_0x193626,_0x33f964),createStructuredResult(_0x1ea25a,_0x193626,_0x580702,_0x33f964));}});}import{mkdir as _0x48a198,writeFile as _0x232dcc}from'fs/promises';import*as _0x2c1959 from'path';function sanitizeFileName(_0x399c84){const _0x254c42={_0x2bcec8:0x609},_0x340a17={_0x2caa16:0xd5};function _0x49659b(_0xa3f4f2,_0x5d9811,_0x5f06f7,_0x527add){return _0x57b9de(_0xa3f4f2-0x1b0,_0x5d9811,_0x5f06f7-_0x340a17._0x2caa16,_0x527add-0xcf);}return _0x399c84[_0x49659b(0x576,_0x254c42._0x2bcec8,0x5c2,0x69b)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x36c3bd,_0x2bd157){const _0x41f08c={_0x5810eb:0x355,_0x56440f:0x31b,_0x57459e:0x310,_0x274a0:0x2ab,_0x3f822c:0x3af,_0x186311:0x43e,_0x195b27:0x40b,_0x126afb:0x438,_0x3baab6:0x3ce,_0x457acd:0x46f,_0x4fb2bc:0x2ef,_0x1edacd:0x11b,_0x138baa:0x152,_0x47f94e:0x509,_0x3cfb9e:0x462,_0xef11ea:0x645,_0x1bcd8d:0x494,_0x1a2a3:0x500,_0x68158d:0x259,_0x526bd8:0x23f,_0x161589:0x256,_0x41c225:0x307,_0x19b12f:0x2eb,_0x48e017:0x3b1,_0x2462f6:0x492,_0x2f53ab:0x198,_0x3cbe3f:0x388,_0x292e0f:0x374,_0x15344e:0x321,_0x3dff67:0xb,_0x30d9a9:0x383,_0x2702f1:0x327,_0xebf1ab:0x659,_0x2b780e:0x5df,_0x267b2b:0x3ce,_0x5739a1:0x459,_0x398402:0x182,_0x2e5eea:0x2c6},{maxBytes:_0x387120,sessionDir:_0x1725d4}=_0x2bd157;if(!_0x36c3bd['output']||Buffer[_0xb40652(_0x41f08c._0x5810eb,_0x41f08c._0x56440f,0x2d2,0x256)](_0x36c3bd['output'],_0xb40652(_0x41f08c._0x57459e,0x330,0x20c,_0x41f08c._0x274a0))<=_0x387120)return _0x36c3bd;const _0x2ff1d2=Buffer['byteLength'](_0x36c3bd[_0xa89635(0x390,0x479,0x2ea,_0x41f08c._0x3f822c)],_0xa89635(_0x41f08c._0x186311,_0x41f08c._0x195b27,_0x41f08c._0x126afb,0x4e5));if(!_0x1725d4){const _0x4a2e8b=_0x36c3bd['output'][_0xa89635(_0x41f08c._0x3baab6,0x595,_0x41f08c._0x195b27,_0x41f08c._0x457acd)](0x0,_0x387120);return{..._0x36c3bd,'output':_0x4a2e8b+(_0xb40652(_0x41f08c._0x4fb2bc,0x447,0x301,0x384)+_0x387120+_0xb40652(0x5,_0x41f08c._0x1edacd,_0x41f08c._0x138baa,0x147)+_0x2ff1d2+_0xa89635(_0x41f08c._0x47f94e,_0x41f08c._0x3cfb9e,0x3c0,0x3ee)),'meta':{..._0x36c3bd[_0xa89635(_0x41f08c._0xef11ea,_0x41f08c._0x1bcd8d,0x44f,_0x41f08c._0x1a2a3)],'truncated':!![],'originalBytes':_0x2ff1d2,'transforms':[..._0x36c3bd['meta'][_0xb40652(0x243,_0x41f08c._0x68158d,0x197,0x240)],'tool-output-offload']}};}const _0x5e6ee5=_0x36c3bd[_0xb40652(_0x41f08c._0x526bd8,0x276,_0x41f08c._0x161589,0x142)]+'_'+sanitizeFileName(_0x36c3bd[_0xb40652(0x2f9,0x333,0x1c0,0x2ad)])+_0xb40652(0x227,_0x41f08c._0x41c225,0x286,0x2b1),_0xee88f4=_0x2c1959[_0xa89635(_0x41f08c._0x19b12f,0x3bf,0x2c9,0x3ce)](_0x1725d4,_0x5e6ee5);await _0x48a198(_0x1725d4,{'recursive':!![]}),await _0x232dcc(_0xee88f4,_0x36c3bd['output'],'utf8');let _0x3db081=_0x36c3bd[_0xb40652(0x24a,0x124,0x289,0x175)]['slice'](0x0,_0x387120);const _0x484a26=_0x3db081['lastIndexOf']('\x0a');function _0xa89635(_0x552495,_0x296b72,_0x46e475,_0x35a175){return _0x57b9de(_0x552495-0x96,_0x46e475,_0x35a175-0x2f,_0x35a175-0x31);}function _0xb40652(_0x1d12f9,_0x27b25e,_0x122bf7,_0xbb0514){return _0x57b9de(_0x1d12f9-0x1e6,_0x122bf7,_0xbb0514- -0x20b,_0xbb0514-0xb3);}_0x484a26>_0x387120*0.5&&(_0x3db081=_0x3db081[_0xa89635(0x4e2,_0x41f08c._0x48e017,_0x41f08c._0x2462f6,0x46f)](0x0,_0x484a26));const _0x3b90d6=['',_0xb40652(0x28b,0x238,_0x41f08c._0x2f53ab,0x278),_0xa89635(_0x41f08c._0x3cbe3f,_0x41f08c._0x292e0f,0x38b,_0x41f08c._0x15344e)+_0x387120+_0xb40652(-0x7,0x6c,-_0x41f08c._0x3dff67,0x13d)+_0x2ff1d2+_0xa89635(0x1d4,0x397,_0x41f08c._0x30d9a9,_0x41f08c._0x2702f1),_0xb40652(0x3a0,0x35d,0x31e,_0x41f08c._0x15344e)+_0xee88f4,'Use\x20FileRead\x20with\x20lineStart/lineEnd\x20to\x20inspect\x20specific\x20sections\x20of\x20the\x20full\x20output.',_0xa89635(0x51d,_0x41f08c._0xebf1ab,_0x41f08c._0x2b780e,0x552)][_0xa89635(0x31f,0x488,0x29a,_0x41f08c._0x267b2b)]('\x0a');return{..._0x36c3bd,'output':_0x3db081+_0x3b90d6,'meta':{..._0x36c3bd[_0xa89635(_0x41f08c._0x5739a1,0x3b2,0x4e5,_0x41f08c._0x1a2a3)],'truncated':!![],'originalBytes':_0x2ff1d2,'transforms':[..._0x36c3bd[_0xb40652(0x3f5,_0x41f08c._0x398402,0x344,_0x41f08c._0x2e5eea)][_0xa89635(0x40d,0x350,0x491,0x47a)],'tool-output-offload']}};}function createUpdateTopicTool(){const _0x5e96af={_0x5aa5ae:0x4a4,_0x39834e:0x3a2,_0x49654c:0x3bc,_0x5e92af:0x53a},_0x44db01={_0x4769f3:0x6d,_0x35a666:0xa3,_0x25dfa4:0x43,_0x4d338a:0xab,_0xf4e9a0:0xa0,_0x5d5fc1:0x131,_0x3f2957:0x8c,_0x5221a1:0x1dd,_0x2f1607:0x128,_0x3b692b:0x1bf,_0x11df10:0xe0,_0x3d7321:0x57,_0x3da634:0x1d7,_0x3c52bb:0x13,_0x2d15e9:0x72},_0x398246={_0x31c02a:0x16b,_0x336013:0x5f8},_0x161538={_0x2514f5:0x59},_0x55f92c={_0x2e8ce0:0x106,_0x10cf81:0x1db};function _0x55dc36(_0x2dcf82,_0x51ded2,_0x2fa4a1,_0x12e72d){return _0x57b9de(_0x2dcf82-_0x55f92c._0x2e8ce0,_0x12e72d,_0x2fa4a1- -_0x55f92c._0x10cf81,_0x12e72d-0x2e);}function _0xa3ec82(_0x396554,_0x34fb29,_0x2cd8ab,_0x2f56a2){return _0x23b1c2(_0x396554-0x183,_0x2cd8ab,_0x34fb29-0x265,_0x2f56a2-_0x161538._0x2514f5);}return defineTool({'name':_0x55dc36(0x4d3,_0x5e96af._0x5aa5ae,_0x5e96af._0x39834e,_0x5e96af._0x49654c),'description':'Update\x20the\x20session\x20topic\x20to\x20a\x20concise\x203-6\x20word\x20noun\x20phrase\x20that\x20captures\x20the\x20current\x20subject.\x0a\x0aCall\x20this\x20tool\x20when\x20the\x20session\x27s\x20subject\x20becomes\x20clear\x20or\x20shifts\x20to\x20something\x20clearly\x20different\x20—\x20not\x20for\x20minor\x20tangents\x20or\x20clarifying\x20sub-questions.\x20If\x20nothing\x20has\x20meaningfully\x20changed,\x20do\x20not\x20call\x20it.\x0a\x0aGood\x20topic\x20(noun\x20phrase,\x203-6\x20words):\x0a\x20\x20\x22Debug\x20TS\x20generics\x20error\x22\x0a\x20\x20\x22Refactor\x20auth\x20middleware\x22\x0a\x20\x20\x22Add\x20Stripe\x20webhook\x20handler\x22\x0a\x0aBad\x20topic\x20(full\x20sentence\x20or\x20vague):\x0a\x20\x20\x22The\x20user\x20wants\x20to\x20debug\x20a\x20TypeScript\x20generics\x20error\x20in\x20their\x20project\x22\x0a\x20\x20\x22coding\x22','inputSchema':{'type':_0xa3ec82(0x556,0x641,_0x5e96af._0x5e92af,0x751),'properties':{'topic':{'type':'string'}},'required':['topic']},async *'execute'(_0x4f1461,_0x3a9f1d){const _0x40a726={_0x35f17d:0x43f,_0x5e7e9a:0x35},{topic:_0x93f87a}=_0x4f1461;function _0x3e4548(_0x11f214,_0x2632ea,_0x5655a4,_0x4d069f){return _0xa3ec82(_0x11f214-_0x398246._0x31c02a,_0x2632ea- -_0x398246._0x336013,_0x5655a4,_0x4d069f-0x12);}if(typeof _0x93f87a!==_0xf01f15(_0x44db01._0x4769f3,-_0x44db01._0x35a666,_0x44db01._0x25dfa4,_0x44db01._0x4d338a)||_0x93f87a[_0xf01f15(_0x44db01._0xf4e9a0,_0x44db01._0x5d5fc1,0x160,0xd9)]()['length']===0x0)throw new ToolExecutionError(_0xf01f15(_0x44db01._0x3f2957,0x2ea,0x2b4,_0x44db01._0x5221a1),{'error':_0x3e4548(_0x44db01._0x2f1607,-0x18,-0xb4,-0xbc)});const _0x1ac517=_0x93f87a[_0x3e4548(-_0x44db01._0x3b692b,-_0x44db01._0x11df10,-0x12d,_0x44db01._0x3d7321)]();_0x3a9f1d[_0x3e4548(-0x12b,-0xa0,-0x15c,-_0x44db01._0x3da634)]?.(_0x1ac517);function _0xf01f15(_0x5b6a9b,_0x46fedc,_0x5ef94b,_0x6e26da){return _0xa3ec82(_0x5b6a9b-0x1a6,_0x6e26da- -_0x40a726._0x35f17d,_0x5b6a9b,_0x6e26da-_0x40a726._0x5e7e9a);}return yield createToolOutput(_0xf01f15(_0x44db01._0x3c52bb,0xe8,0x1c6,_0x44db01._0x2d15e9)+_0x1ac517+'\x22',{'topic':_0x1ac517}),void 0x0;}});}import{readFile as _0x23ce0a,stat as _0x47bea6}from'fs/promises';import*as _0x2b47fc from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto',_0x23b1c2(0x309,0x36e,0x295,0x2ae),_0x23b1c2(0x53c,0x523,0x4a0,0x5b0),_0x57b9de(0x484,0x4a2,0x430,0x4f7)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x2c39a8,_0x2c7e5f){const _0x354f25={_0x38800f:0x30c,_0x171741:0x3fc,_0x358851:0x360,_0x24ad3f:0x592,_0x194c12:0x4ea,_0xbe22dd:0x371,_0x536dab:0x549,_0x4cf27c:0x5d8,_0x4b18ea:0x4ff,_0x505c9f:0x1cf,_0x252dec:0x1f4,_0x4ad770:0x9c,_0x2c08ed:0x1bd,_0x190fc0:0x28e,_0x17d553:0x38f,_0x3373f7:0x2d9,_0x316cab:0x256,_0x32b64a:0x33d,_0x405cf1:0x498,_0x26f231:0x48f,_0x13a6eb:0x23e,_0x387fe6:0x378,_0x239f77:0x2c8,_0x37b74a:0x38d,_0x2ebac9:0x2ae,_0x1332a8:0x265,_0x356e60:0x162,_0x4233d0:0x1b8,_0x2214e4:0x47f,_0x5254a3:0x408,_0x113d36:0x4d8,_0x249650:0x336,_0x1ebe6d:0x3ff,_0x1ae6e6:0x2b2,_0x5d8a30:0x3b8,_0x38cd67:0x1a3,_0x4aea48:0x44e,_0x516d26:0x4f0,_0x2e41b0:0x308,_0x22049f:0x356,_0x564d4e:0x272,_0x51aeb9:0x3a5,_0xe45f9:0x424,_0x149b21:0x334,_0xd9beea:0x382,_0x13a8ce:0x4c8},_0x3ffe07={_0x2dd10e:0xb5};function _0x46f072(_0x52408a,_0x4a0a9a,_0x5c1d4b,_0x34f178){return _0x57b9de(_0x52408a-0x98,_0x4a0a9a,_0x34f178-0xf,_0x34f178-0x183);}if(_0x2c39a8[_0x17044a(_0x354f25._0x38800f,0x22c,0x340,_0x354f25._0x171741)](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x46f072(_0x354f25._0x358851,0x270,0x1f7,0x31f);function _0x17044a(_0xa8c121,_0x3669b9,_0x26d8d6,_0x54a6af){return _0x23b1c2(_0xa8c121-0x1b1,_0x26d8d6,_0xa8c121- -_0x3ffe07._0x2dd10e,_0x54a6af-0x116);}if(_0x2c39a8[0x0]===0xff&&_0x2c39a8[0x1]===0xd8&&_0x2c39a8[0x2]===0xff)return _0x46f072(_0x354f25._0x24ad3f,_0x354f25._0x194c12,_0x354f25._0xbe22dd,0x475);const _0x41497e=_0x2c39a8['subarray'](0x0,0x6)[_0x46f072(_0x354f25._0x536dab,0x60b,_0x354f25._0x4cf27c,_0x354f25._0x4b18ea)](_0x17044a(_0x354f25._0x505c9f,_0x354f25._0x252dec,_0x354f25._0x4ad770,_0x354f25._0x2c08ed));if(_0x41497e===_0x17044a(_0x354f25._0x190fc0,_0x354f25._0x17d553,0x14e,_0x354f25._0x3373f7)||_0x41497e===_0x46f072(_0x354f25._0x316cab,0x246,_0x354f25._0x32b64a,0x32e))return _0x46f072(_0x354f25._0x405cf1,0x451,0x491,_0x354f25._0x26f231);if(_0x2c39a8[_0x17044a(0x30c,_0x354f25._0x13a6eb,_0x354f25._0x387fe6,_0x354f25._0x239f77)](0x0,0x4)['toString']('ascii')===_0x17044a(0x226,0xf1,0x343,0x20d)&&_0x2c39a8[_0x46f072(0x41b,0x476,0x515,0x47e)](0x8,0xc)[_0x17044a(_0x354f25._0x37b74a,0x393,0x3ba,_0x354f25._0x2ebac9)](_0x17044a(_0x354f25._0x505c9f,_0x354f25._0x1332a8,_0x354f25._0x356e60,_0x354f25._0x4233d0))===_0x46f072(0x450,0x4de,0x3e1,_0x354f25._0x2214e4))return _0x17044a(_0x354f25._0x5254a3,0x2f4,_0x354f25._0x113d36,_0x354f25._0x249650);const _0x25e11e=_0x2b47fc['extname'](_0x2c7e5f)[_0x17044a(_0x354f25._0x1ebe6d,0x338,_0x354f25._0x1ae6e6,0x526)]();if(_0x25e11e==='.png')return'image/png';if(_0x25e11e===_0x17044a(0x287,_0x354f25._0x5d8a30,0x241,_0x354f25._0x38cd67)||_0x25e11e==='.jpeg')return _0x46f072(_0x354f25._0x4aea48,_0x354f25._0x516d26,0x535,0x475);if(_0x25e11e===_0x17044a(0x40e,0x440,0x536,_0x354f25._0x2e41b0))return _0x17044a(0x31d,_0x354f25._0x22049f,_0x354f25._0x564d4e,0x464);if(_0x25e11e===_0x46f072(_0x354f25._0x51aeb9,0x4b7,0x350,_0x354f25._0xe45f9))return _0x17044a(0x408,_0x354f25._0x149b21,_0x354f25._0xd9beea,_0x354f25._0x13a8ce);return void 0x0;}function normalizeDetail(_0x5d54bc){const _0x39ac0c={_0x57cf4b:0x1b5,_0x7bd54f:0x96,_0x2f5171:0x314,_0x37567b:0x42d,_0x488783:0x451,_0x4c5261:0x1f9,_0x295549:0x4d,_0xe64959:0x27e},_0x53a93e={_0x10d41b:0x5c},_0xd0783f={_0x52307a:0x1bf,_0x3d4e92:0x21d,_0x384796:0xc5};if(_0x5d54bc===void 0x0)return void 0x0;const _0x3be967=_0x5d54bc[_0x17276b(0x1f,_0x39ac0c._0x57cf4b,0x103,_0x39ac0c._0x7bd54f)]()[_0x4ff22b(0x44b,_0x39ac0c._0x2f5171,_0x39ac0c._0x37567b,_0x39ac0c._0x488783)]();function _0x17276b(_0x5267fe,_0x2aec2c,_0x2cfe5f,_0xc7de32){return _0x23b1c2(_0x5267fe-_0xd0783f._0x52307a,_0x5267fe,_0xc7de32- -_0xd0783f._0x3d4e92,_0xc7de32-_0xd0783f._0x384796);}function _0x4ff22b(_0x51cdbf,_0x20601b,_0x52dab8,_0x256a00){return _0x23b1c2(_0x51cdbf-0x41,_0x20601b,_0x52dab8- -0x87,_0x256a00-_0x53a93e._0x10d41b);}if(!SUPPORTED_DETAILS[_0x17276b(0x12d,_0x39ac0c._0x4c5261,-_0x39ac0c._0x295549,0xe4)](_0x3be967))throw new ToolExecutionError(_0x4ff22b(0x2a5,0x361,0x329,_0x39ac0c._0xe64959)+_0x5d54bc,{'detail':_0x5d54bc});return _0x3be967;}function createViewFileTool(_0x5689d9={}){const _0x590c53={_0x120bc9:0x3f0,_0x5b75ad:0x3f1,_0x58d605:0x5e8,_0x4ef0a6:0x5eb,_0x4b4fcf:0x4e8,_0x57eb3b:0x4e1,_0xb49139:0x27c,_0xa72a40:0x456,_0x30bc6a:0x55b,_0x1d7b64:0x343,_0x441f1e:0x444,_0x364555:0x403,_0x1459a7:0x2db,_0x297087:0x217,_0x367717:0x341,_0x4a92a7:0x340,_0x1f1635:0x33d,_0x315e49:0x425},_0x1109c4={_0x1609ec:0x478,_0x1b8efa:0x362,_0x3cb660:0x43c,_0x36e333:0x274,_0x1c6d61:0x30b,_0x126609:0x3cf,_0x1a3744:0x549,_0x40ab50:0x380,_0x2ff7bd:0x41a,_0x109bc6:0x4ed,_0x25e502:0x1a5,_0x1dcf32:0x10,_0x5dbb4e:0x97,_0x5d1929:0x5c5,_0x4f2fbf:0x3a4,_0x1a348d:0x4f6,_0x405486:0x487,_0x4fcd0c:0x417,_0x3b1446:0x24b,_0x5eae10:0x24c,_0xc6d201:0x328,_0x25fcbd:0x118,_0x4b7340:0x273,_0xda9f2d:0x183,_0x10eed0:0xde,_0x5a7ff2:0x453,_0x2e9ced:0x40f,_0x507863:0x40e,_0x5bb34c:0x3d5,_0xfee5e8:0x491,_0x2a36a6:0x558,_0x58b687:0x292,_0x39cb95:0x2e2,_0x5c3006:0x3c6,_0x370582:0x41a,_0x295b22:0x487,_0x20d6ed:0x362,_0x549b57:0x387,_0x515af5:0x39f,_0x1dde94:0x2f9,_0xfdcb34:0x1d3,_0xb79d48:0x2a5,_0x57f3b1:0x305,_0x4190f5:0x321,_0x4bad3b:0x42a,_0x5a9e65:0x1ea,_0x2f0e02:0x362,_0x58ccb5:0x2d5,_0x3340ee:0x39c,_0x2677bf:0x4a9,_0x2dc3b6:0x450,_0xdee3dc:0x313,_0x856837:0x1f1,_0x3ef9c6:0x25d},_0x33a36b={_0xfea12b:0x305},_0x45227d={_0x1096a0:0x12e};function _0x2856e5(_0x30489,_0x26d8f1,_0xbbd2b0,_0x332e91){return _0x57b9de(_0x30489-0xf8,_0x30489,_0x332e91-0xe,_0x332e91-_0x45227d._0x1096a0);}const _0x59f93e=_0x2b47fc['resolve'](_0x5689d9[_0x2856e5(0x3e6,0x42f,_0x590c53._0x120bc9,_0x590c53._0x5b75ad)]??process['cwd']());function _0x533466(_0x1be127,_0x36c32b,_0x299e31,_0x292e17){return _0x57b9de(_0x1be127-0x162,_0x36c32b,_0x1be127- -_0x33a36b._0xfea12b,_0x292e17-0xcd);}const _0x252bff=(_0x5689d9[_0x2856e5(_0x590c53._0x58d605,_0x590c53._0x4ef0a6,_0x590c53._0x4b4fcf,_0x590c53._0x57eb3b)]??[])['map'](_0x16a00c=>_0x2b47fc[_0x533466(0xe6,0x2c,0x0,0x168)](_0x16a00c)),_0x3bc25d=_0x5689d9[_0x533466(_0x590c53._0xb49139,0x29e,0x1d4,0x180)]??DEFAULT_MAX_BYTES,_0x4366ac=_0x5689d9['name']??_0x2856e5(_0x590c53._0xa72a40,0x535,0x50b,_0x590c53._0x30bc6a);return defineTool({'name':_0x4366ac,'description':_0x2856e5(_0x590c53._0x1d7b64,_0x590c53._0x441f1e,0x3d7,0x381),'inputSchema':{'type':_0x2856e5(0x506,0x49d,_0x590c53._0x364555,0x498),'properties':{'path':{'type':_0x2856e5(0x44c,_0x590c53._0x1459a7,_0x590c53._0x297087,_0x590c53._0x367717)},'detail':{'type':_0x2856e5(_0x590c53._0x4a92a7,_0x590c53._0x1f1635,_0x590c53._0x315e49,_0x590c53._0x367717)}},'required':['path']},async *'execute'(_0x4a6c09){const _0x5c951c={_0xbc3093:0x13c},_0x2ba856=resolveAllowedPath(_0x59f93e,_0x252bff,_0x4a6c09[_0x1abd52(0x362,0x3d5,_0x1109c4._0x1609ec,0x2ae)]);await assertWorkspaceFile(_0x2ba856);const _0x27de60=await _0x47bea6(_0x2ba856);if(_0x27de60[_0xea2e66(0x2fb,0x2f1,0x41a,0x31e)]>_0x3bc25d)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x4a6c09[_0x1abd52(_0x1109c4._0x1b8efa,_0x1109c4._0x3cb660,_0x1109c4._0x36e333,_0x1109c4._0x1c6d61)],{'path':_0x4a6c09[_0x1abd52(0x362,_0x1109c4._0x126609,0x2a4,0x334)],'maxBytes':_0x3bc25d,'size':_0x27de60[_0xea2e66(_0x1109c4._0x1a3744,_0x1109c4._0x40ab50,_0x1109c4._0x2ff7bd,_0x1109c4._0x109bc6)]});const _0x1f4e1b=await _0x23ce0a(_0x2ba856),_0x4a84ba=detectImageMediaType(_0x1f4e1b,_0x2ba856);function _0xea2e66(_0x2a0cf9,_0x2597dd,_0x39187a,_0xa0f2){return _0x2856e5(_0x2597dd,_0x2597dd-0x6b,_0x39187a-0x177,_0x39187a- -0xa8);}if(!_0x4a84ba)throw new ToolExecutionError(_0x1abd52(0x12a,_0x1109c4._0x25e502,_0x1109c4._0x1dcf32,_0x1109c4._0x5dbb4e)+_0x4a6c09[_0xea2e66(0x475,0x4cd,0x491,_0x1109c4._0x5d1929)],{'path':_0x4a6c09[_0xea2e66(0x4d2,0x37d,0x491,0x447)],'supported':[_0x1abd52(0x3a8,_0x1109c4._0x4f2fbf,_0x1109c4._0x1a348d,_0x1109c4._0x405486),_0xea2e66(0x41e,0x35d,0x46c,0x4cc),'.jpg',_0xea2e66(_0x1109c4._0x4fcd0c,_0x1109c4._0x3b1446,0x2ee,0x2d2),_0x1abd52(_0x1109c4._0x5eae10,_0x1109c4._0xc6d201,_0x1109c4._0x25fcbd,_0x1109c4._0x4b7340)]});const _0x4d2b37=normalizeDetail(_0x4a6c09[_0x1abd52(0x208,0x12e,_0x1109c4._0xda9f2d,_0x1109c4._0x10eed0)]);function _0x1abd52(_0x26bd62,_0x33655f,_0x183356,_0x4bff14){return _0x533466(_0x26bd62-_0x5c951c._0xbc3093,_0x33655f,_0x183356-0x170,_0x4bff14-0x58);}const _0x3b8144=[_0xea2e66(0x417,_0x1109c4._0x5a7ff2,_0x1109c4._0x2e9ced,_0x1109c4._0x507863)+_0x4a6c09[_0xea2e66(_0x1109c4._0x5bb34c,0x4df,_0x1109c4._0xfee5e8,_0x1109c4._0x2a36a6)],'MIME:\x20'+_0x4a84ba,_0xea2e66(0x26a,0x318,_0x1109c4._0x58b687,_0x1109c4._0x39cb95)+_0x27de60[_0xea2e66(_0x1109c4._0x5c3006,0x3ce,_0x1109c4._0x370582,0x519)]+_0xea2e66(_0x1109c4._0x295b22,0x2d8,0x386,0x25a)][_0xea2e66(0x282,_0x1109c4._0x20d6ed,_0x1109c4._0x549b57,0x3b4)](_0x4d2b37?[_0xea2e66(0x4ba,0x441,_0x1109c4._0x515af5,_0x1109c4._0x1dde94)+_0x4d2b37]:[])[_0xea2e66(_0x1109c4._0xfdcb34,_0x1109c4._0xb79d48,_0x1109c4._0x57f3b1,_0x1109c4._0x4190f5)]('\x0a'),_0x146fed=[{'type':'image','source':{'type':_0x1abd52(0x2e1,_0x1109c4._0x4bad3b,0x2b3,_0x1109c4._0x5a9e65),'media_type':_0x4a84ba,'data':_0x1f4e1b[_0x1abd52(0x327,0x363,0x2b0,_0x1109c4._0x2f0e02)]('base64')}},{'type':'text','text':_0x3b8144}];return yield createToolOutput(_0x3b8144,{'path':_0x4a6c09[_0x1abd52(0x362,_0x1109c4._0x58ccb5,0x43b,0x3b7)],'resolvedPath':_0x2ba856,'created':_0x27de60[_0xea2e66(_0x1109c4._0x1609ec,0x406,_0x1109c4._0x3340ee,0x3fc)][_0xea2e66(0x419,_0x1109c4._0x2677bf,_0x1109c4._0x2dc3b6,_0x1109c4._0xdee3dc)](),'modified':_0x27de60['mtime']['toISOString'](),'size':_0x27de60[_0x1abd52(0x2eb,_0x1109c4._0x856837,0x23b,_0x1109c4._0x3ef9c6)],'mimeType':_0x4a84ba,'encoding':'base64',..._0x4d2b37?{'detail':_0x4d2b37}:{}},_0x146fed),void 0x0;}});}import _0x19509e from'turndown';var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x1f2483){const _0x4f1452={_0x5f434a:0xfa,_0x2f687b:0x15,_0x320824:0x83,_0x5185dc:0x16e,_0x3a8fd0:0x359,_0x4ac7fb:0x46,_0x3cb737:0xc7,_0x37bc39:0x2b0,_0x563bd5:0x127,_0x319566:0x336,_0x27d3b6:0x2fd,_0x25c228:0x355,_0x221005:0x30c,_0x160efe:0x1ca},_0x124ea7={_0x4761a5:0x181},_0x56426b={_0x1fb453:0x341};function _0x2454ad(_0xc744ee,_0x43f5c9,_0x1a26f0,_0xf38861){return _0x57b9de(_0xc744ee-0xc5,_0x1a26f0,_0xf38861- -_0x56426b._0x1fb453,_0xf38861-0x1b3);}let _0x3b601e;try{_0x3b601e=new URL(_0x1f2483);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x1f2483});}if(_0x3b601e[_0x2454ad(_0x4f1452._0x5f434a,_0x4f1452._0x2f687b,0x2b,_0x4f1452._0x320824)]!=='http:'&&_0x3b601e['protocol']!=='https:')throw new ToolExecutionError(_0x59cb5b(0x121,_0x4f1452._0x5185dc,0x4d,0x1b9),{'url':_0x1f2483});function _0x59cb5b(_0x5b4503,_0x58b3c2,_0x322fdd,_0x2caea5){return _0x23b1c2(_0x5b4503-_0x124ea7._0x4761a5,_0x5b4503,_0x58b3c2- -0x102,_0x2caea5-0x99);}if(_0x3b601e[_0x59cb5b(0x29c,_0x4f1452._0x3a8fd0,0x383,0x257)]||_0x3b601e[_0x2454ad(0x143,_0x4f1452._0x4ac7fb,0x12a,_0x4f1452._0x3cb737)])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x3b601e[_0x59cb5b(_0x4f1452._0x37bc39,0x214,_0x4f1452._0x563bd5,_0x4f1452._0x319566)]+'//'+_0x3b601e[_0x59cb5b(_0x4f1452._0x27d3b6,_0x4f1452._0x25c228,0x339,0x45a)]+_0x3b601e[_0x2454ad(_0x4f1452._0x221005,0x237,0x151,_0x4f1452._0x160efe)]});return _0x3b601e;}function createTimeoutSignal(_0x483608,_0x189eef){const _0x29d069={_0x398b59:0x387,_0x51b4fc:0x123,_0x504f78:0x22d,_0x23cd60:0x1fa,_0x38fc27:0x375,_0x1320de:0x273,_0x34fb7d:0x271},_0x41c227={_0x4ff212:0x3ea,_0x6ca69c:0x342,_0x431038:0x27,_0x381b7f:0x138,_0x25e272:0x10,_0xf8137a:0x133},_0x1a787c={_0x374b09:0x193},_0x191f75={_0x56f3e0:0x1dd,_0x4a4483:0x16a,_0x52f705:0x64},_0x9b0b76={_0x4a83e3:0x26,_0x55e51d:0x90},_0x4f716c=new AbortController();function _0x408d7b(_0x57f236,_0x38a153,_0x4636ad,_0x5a56f2){return _0x23b1c2(_0x57f236-_0x9b0b76._0x4a83e3,_0x5a56f2,_0x38a153- -_0x9b0b76._0x55e51d,_0x5a56f2-0x24);}function _0x3de33b(_0x3029f5,_0x2e14c8,_0x57e62a,_0x2aa440){return _0x57b9de(_0x3029f5-_0x191f75._0x56f3e0,_0x2e14c8,_0x2aa440- -_0x191f75._0x4a4483,_0x2aa440-_0x191f75._0x52f705);}const _0x1484c2=setTimeout(()=>_0x4f716c[_0x3de33b(0x397,0x359,0x145,0x271)](new Error(_0x3de33b(0x253,0x1bc,0x20b,0x2f1))),_0x189eef),_0x346a8f=()=>_0x4f716c['abort'](_0x483608['reason']);return _0x483608[_0x3de33b(0x3fd,_0x29d069._0x398b59,0x220,0x31b)]?_0x4f716c[_0x408d7b(0x1dc,0x29d,0x23d,0x3d9)](_0x483608[_0x3de33b(_0x29d069._0x51b4fc,_0x29d069._0x504f78,0xcc,_0x29d069._0x23cd60)]):_0x483608[_0x408d7b(0x371,0x335,_0x29d069._0x38fc27,0x46b)](_0x3de33b(0x387,0x30f,_0x29d069._0x1320de,_0x29d069._0x34fb7d),_0x346a8f,{'once':!![]}),{'signal':_0x4f716c['signal'],'cleanup':()=>{function _0x45b7fe(_0x207a26,_0x28d5c6,_0x2a4217,_0x17bcdd){return _0x408d7b(_0x207a26-0x142,_0x28d5c6-0xfc,_0x2a4217-_0x1a787c._0x374b09,_0x207a26);}clearTimeout(_0x1484c2);function _0x153ee7(_0xaa218d,_0x46a15e,_0x231aab,_0x3afe16){return _0x3de33b(_0xaa218d-0x186,_0xaa218d,_0x231aab-0x2e,_0x3afe16- -0x13e);}_0x483608[_0x45b7fe(_0x41c227._0x4ff212,_0x41c227._0x6ca69c,0x267,0x2d8)](_0x153ee7(_0x41c227._0x431038,_0x41c227._0x381b7f,-_0x41c227._0x25e272,_0x41c227._0xf8137a),_0x346a8f);}};}function createWebFetchTool(_0x249c9b={}){const _0x5e78df={_0x4f6f9e:0x60e,_0x22e5cb:0x5e2,_0x362846:0x720,_0x2dd342:0x5e6,_0x52fbcc:0x600,_0x1622a5:0x769,_0x523bea:0x6af,_0x33db7b:0x497,_0x590fcf:0x525,_0x42bc18:0x60d,_0x1b76ec:0x581,_0x4234e2:0x716,_0x512512:0x66c,_0x16cab3:0x7c4,_0xc6585b:0x6b6,_0x4dda63:0x6b5,_0x1faab7:0x459,_0x11cdc4:0x631,_0x4d9c87:0x58c,_0x4346d6:0x3fe,_0x1375e5:0x785,_0x375a6d:0x5fe,_0x32ff88:0x595,_0x2bf98f:0x5af,_0x1bc7fc:0x517,_0x106590:0x458,_0x386cf6:0x67d,_0x494254:0x6eb},_0x1ab502={_0x1a102e:0x4cd,_0xd09acd:0x287,_0x2a4ede:0x458,_0xc8d0a4:0x2ec,_0x2bbad0:0x1f8,_0x3b4b68:0x23e,_0x252ff9:0x3e2,_0x37268a:0x352,_0xb4c918:0x13c,_0x4b28e7:0x2a9,_0x1256e9:0x2db,_0x530635:0x397,_0x4e5597:0x3c8,_0x1a39cd:0x2b1,_0x1f1154:0x353,_0x4d50c0:0x1e3,_0x7fca4b:0x1e6,_0x7e8619:0x168,_0x263c7d:0x20b,_0x2a334f:0x298,_0x840c96:0x2da,_0x5dff1c:0x2e2,_0x3ba2d3:0xf5,_0x4f116f:0x249,_0x542f55:0x2c0,_0x3b6df0:0x24f,_0x37c337:0x37f,_0x1c5ddc:0x2d8,_0x10f7bb:0x2d0,_0x27bbfd:0x190,_0x2a355b:0x370,_0x58bee9:0x353,_0x305f1a:0x173,_0x533268:0x132,_0x265804:0x3b5,_0xfeaddd:0x3c4,_0x1f06a6:0x357,_0x4be075:0x27d,_0x117962:0x277,_0x10fd59:0x2e4,_0x1fde3f:0x31b,_0x49bfe5:0x226,_0x385ab0:0x1a2,_0x57466c:0x129,_0x4accc9:0x1cb,_0x318961:0xde,_0x20a7f0:0x422,_0xfda1b0:0x354,_0x41076f:0x42d},_0x5e8773={_0x22d652:0x1d3,_0x5ac1e1:0x36};function _0x1b8fd6(_0x4b69d3,_0x1f7429,_0x5b05b5,_0x2844f7){return _0x23b1c2(_0x4b69d3-0xe4,_0x4b69d3,_0x2844f7-_0x5e8773._0x22d652,_0x2844f7-_0x5e8773._0x5ac1e1);}function _0x577d95(_0x3153cf,_0x33955e,_0x3b0281,_0x2c5387){return _0x23b1c2(_0x3153cf-0x10b,_0x33955e,_0x2c5387-0x245,_0x2c5387-0x1ee);}const _0x2d1753=_0x249c9b['name']??_0x577d95(0x73a,0x65a,_0x5e78df._0x4f6f9e,0x68d),_0x18788f=_0x249c9b['timeoutMs']??DEFAULT_TIMEOUT_MS2,_0x572ab0=new _0x19509e({'headingStyle':_0x1b8fd6(_0x5e78df._0x22e5cb,0x5e8,_0x5e78df._0x362846,_0x5e78df._0x2dd342),'codeBlockStyle':_0x1b8fd6(_0x5e78df._0x52fbcc,_0x5e78df._0x1622a5,0x6f0,_0x5e78df._0x523bea),'bulletListMarker':'-'});return _0x572ab0[_0x1b8fd6(0x566,0x5b1,_0x5e78df._0x33db7b,0x4ec)]([_0x577d95(0x714,0x621,0x626,0x6f1),_0x1b8fd6(0x566,_0x5e78df._0x590fcf,_0x5e78df._0x42bc18,_0x5e78df._0x1b76ec),_0x1b8fd6(0x59c,_0x5e78df._0x4234e2,0x66b,_0x5e78df._0x512512),_0x577d95(_0x5e78df._0x16cab3,_0x5e78df._0xc6585b,0x725,_0x5e78df._0x4dda63),_0x1b8fd6(_0x5e78df._0x1faab7,_0x5e78df._0x11cdc4,0x5eb,_0x5e78df._0x4d9c87),_0x1b8fd6(0x597,_0x5e78df._0x4346d6,0x43c,0x48a),'header','aside']),defineTool({'name':_0x2d1753,'description':_0x577d95(0x615,_0x5e78df._0x1375e5,0x66d,0x6f5),'inputSchema':{'type':_0x1b8fd6(0x468,_0x5e78df._0x375a6d,_0x5e78df._0x32ff88,_0x5e78df._0x2bf98f),'properties':{'description':{'type':'string'},'url':{'type':_0x1b8fd6(_0x5e78df._0x1bc7fc,0x436,0x499,_0x5e78df._0x106590)}},'required':[_0x577d95(_0x5e78df._0x386cf6,0x7d2,_0x5e78df._0x494254,0x712)]},async *'execute'(_0x4a7052,_0x25e86b){const _0x3a2758={_0xc9153c:0x7,_0x4a41f6:0x1a6,_0x3ee4b4:0x35d},_0x3bf023=assertFetchableUrl(_0x4a7052['url'])[_0x45cde3(0x3bb,_0x1ab502._0x1a102e,_0x1ab502._0xd09acd,_0x1ab502._0x2a4ede)]();function _0x7bb6d7(_0x150dc9,_0x5bc847,_0x237311,_0xb81d7f){return _0x1b8fd6(_0x5bc847,_0x5bc847-_0x3a2758._0xc9153c,_0x237311-_0x3a2758._0x4a41f6,_0x150dc9- -_0x3a2758._0x3ee4b4);}if(_0x25e86b[_0x45cde3(0x303,_0x1ab502._0xc8d0a4,_0x1ab502._0x2bbad0,_0x1ab502._0x3b4b68)][_0x45cde3(0x350,_0x1ab502._0x252ff9,_0x1ab502._0x37268a,0x3ba)])throw new ToolExecutionError(_0x7bb6d7(0x168,0x26d,_0x1ab502._0xb4c918,0x62),{'url':_0x3bf023});const _0x49bf03=createTimeoutSignal(_0x25e86b[_0x45cde3(0x303,_0x1ab502._0x4b28e7,0x2de,0x25e)],_0x18788f);let _0x5075b4='',_0x52cff2=0x0,_0x3736d0;try{const _0x1c9e84=await fetch(_0x3bf023,{'headers':{'User-Agent':USER_AGENT},'signal':_0x49bf03[_0x45cde3(0x303,_0x1ab502._0x1256e9,0x31c,_0x1ab502._0x530635)]});if(!_0x1c9e84['ok'])throw new ToolExecutionError(_0x45cde3(_0x1ab502._0x4e5597,0x4df,0x38a,_0x1ab502._0x1a39cd)+_0x1c9e84[_0x7bb6d7(0x298,_0x1ab502._0x1f1154,0x2aa,_0x1ab502._0x4d50c0)]+'\x20'+_0x1c9e84[_0x7bb6d7(_0x1ab502._0x4b28e7,_0x1ab502._0x7fca4b,_0x1ab502._0x7e8619,_0x1ab502._0x263c7d)],{'url':_0x3bf023,'statusCode':_0x1c9e84[_0x7bb6d7(_0x1ab502._0x2a334f,0x257,_0x1ab502._0x840c96,_0x1ab502._0x5dff1c)]});_0x5075b4=_0x1c9e84[_0x7bb6d7(0x1bd,0x159,_0x1ab502._0x3ba2d3,0xd4)][_0x45cde3(0x265,0x229,_0x1ab502._0x4f116f,_0x1ab502._0x542f55)](_0x7bb6d7(_0x1ab502._0x3b6df0,0x2d7,_0x1ab502._0x37c337,_0x1ab502._0x1c5ddc))??'',_0x52cff2=_0x1c9e84[_0x45cde3(0x39b,0x380,0x4a3,_0x1ab502._0x10f7bb)],_0x3736d0=await _0x1c9e84[_0x45cde3(0x2ce,0x3ab,_0x1ab502._0x27bbfd,0x265)]();}catch(_0x4470ec){if(_0x4470ec instanceof ToolExecutionError)throw _0x4470ec;const _0x4c9175=_0x4470ec instanceof Error?_0x4470ec[_0x45cde3(_0x1ab502._0x2a355b,_0x1ab502._0x58bee9,0x21e,0x276)]:String(_0x4470ec);throw new ToolExecutionError(_0x4c9175,{'url':_0x3bf023});}finally{_0x49bf03[_0x7bb6d7(_0x1ab502._0x305f1a,_0x1ab502._0x533268,0x61,0xd7)]();}function _0x45cde3(_0x317f18,_0xcc7261,_0x7eb4a0,_0x219195){return _0x577d95(_0x317f18-0x1ac,_0xcc7261,_0x7eb4a0-0x13c,_0x317f18- -0x2cc);}const _0x47de77=new Date()[_0x45cde3(_0x1ab502._0x265804,_0x1ab502._0xfeaddd,0x31a,0x49a)]();let _0x36a3e4,_0xaedbb;if(_0x5075b4[_0x7bb6d7(0x239,_0x1ab502._0x1f06a6,_0x1ab502._0x4be075,0x32d)](_0x45cde3(0x284,_0x1ab502._0x117962,0x19d,0x17d)))_0x36a3e4=_0x45cde3(_0x1ab502._0x10fd59,0x35f,0x34a,0x2fb)+_0x3736d0+_0x7bb6d7(_0x1ab502._0x1fde3f,_0x1ab502._0x49bfe5,0x239,0x2c7),_0xaedbb=_0x7bb6d7(0x1aa,_0x1ab502._0x385ab0,0x2d8,_0x1ab502._0x57466c);else _0x5075b4[_0x45cde3(0x33c,0x1ef,0x430,0x2b6)]('text/html')?(_0x36a3e4=_0x572ab0[_0x7bb6d7(0x1ce,0x1a9,0x134,_0x1ab502._0x1c5ddc)](_0x3736d0),_0xaedbb=_0x45cde3(0x368,0x37e,0x280,0x332)):(_0x36a3e4=_0x3736d0,_0xaedbb=_0x7bb6d7(_0x1ab502._0x4accc9,0x25a,0x208,_0x1ab502._0x318961));return yield createToolOutput(_0x36a3e4,{'url':_0x3bf023,'contentType':_0x5075b4,'statusCode':_0x52cff2,'format':_0xaedbb,'size':_0x3736d0[_0x45cde3(_0x1ab502._0x20a7f0,_0x1ab502._0xfda1b0,_0x1ab502._0x41076f,0x4d9)],'fetchedAt':_0x47de77}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x23b1c2(0x427,0x43c,0x4da,0x3cd);function normalizeUrl(_0x1dcbd2){const _0x5b6ce8={_0x730e52:0x5be,_0xe35992:0x33b,_0x4d4f27:0x325,_0x49cff2:0x470,_0x1a18e6:0x3a0,_0x2e8d26:0x431,_0x4d9221:0x2ce,_0x767961:0x541,_0x12ca94:0x4ef,_0x9114a8:0x48f,_0xf236b1:0x4c8,_0x438625:0x28f,_0x2773de:0x397,_0x3b126e:0x457,_0x49bc28:0x589,_0xdf7de:0x4f1},_0x354cbb={_0x1cd7b5:0x5d,_0xd6a30e:0x1d3},_0x71017a={_0x1ac091:0x9b,_0x51ca61:0x120,_0x523ced:0x52};function _0x1f911c(_0x319373,_0x2d145d,_0x26d1f4,_0x1315fd){return _0x23b1c2(_0x319373-_0x71017a._0x1ac091,_0x2d145d,_0x1315fd-_0x71017a._0x51ca61,_0x1315fd-_0x71017a._0x523ced);}function _0x16f71c(_0x479375,_0x5643f0,_0x315499,_0x16577a){return _0x57b9de(_0x479375-_0x354cbb._0x1cd7b5,_0x16577a,_0x5643f0-0x73,_0x16577a-_0x354cbb._0xd6a30e);}try{const _0x3b4651=new URL(_0x1dcbd2);for(const _0x15b9a9 of[_0x16f71c(0x536,_0x5b6ce8._0x730e52,0x4c1,0x553),_0x1f911c(0x386,0x332,_0x5b6ce8._0xe35992,0x42f),_0x1f911c(_0x5b6ce8._0x4d4f27,_0x5b6ce8._0x49cff2,0x37b,_0x5b6ce8._0x1a18e6),_0x16f71c(_0x5b6ce8._0x2e8d26,0x3f1,0x53b,_0x5b6ce8._0x4d9221),_0x16f71c(0x451,0x5a5,0x67f,0x60d),_0x1f911c(0x5c2,0x564,_0x5b6ce8._0x767961,_0x5b6ce8._0x12ca94),_0x1f911c(_0x5b6ce8._0x9114a8,_0x5b6ce8._0xf236b1,0x5a0,0x593),'mc_cid',_0x16f71c(_0x5b6ce8._0x438625,_0x5b6ce8._0x2773de,_0x5b6ce8._0x3b126e,0x279)]){_0x3b4651['searchParams'][_0x1f911c(_0x5b6ce8._0x49bc28,_0x5b6ce8._0xdf7de,0x5ac,0x581)](_0x15b9a9);}return _0x3b4651['toString']();}catch{return _0x1dcbd2;}}function cseDateRestrict(_0x1713bd){if(_0x1713bd<=0x0)return void 0x0;if(_0x1713bd<=0x1e)return'd'+Math['max'](0x1,Math['floor'](_0x1713bd));if(_0x1713bd<=0x16d)return'm'+Math['ceil'](_0x1713bd/0x1e);return'y'+Math['ceil'](_0x1713bd/0x16d);}function addSiteFilters(_0x2e7fac,_0x2ddce4){const _0x410f0c={_0x28e596:0x2df,_0x4a9e35:0x2f1,_0x457b97:0x151,_0x3ea86c:0x3,_0x60ddcd:0x3ae,_0x15d770:0x414,_0x5c3e52:0x2ce,_0x45fe89:0x9f,_0x171ac7:0x112,_0x533a2a:0x139,_0x596973:0x147},_0x1730be={_0x2e3031:0x1d0},_0x4662cd={_0x2b3f96:0xb4};if(_0x2ddce4[_0x1893f8(0x41b,_0x410f0c._0x28e596,0x40f,_0x410f0c._0x4a9e35)]===0x0)return _0x2e7fac[_0x1893f8(_0x410f0c._0x457b97,_0x410f0c._0x3ea86c,0x9a,0xfb)]();function _0xddba7d(_0x47e557,_0x7b8b11,_0x45f6c0,_0x14c4f0){return _0x23b1c2(_0x47e557-0x198,_0x7b8b11,_0x47e557-0x129,_0x14c4f0-_0x4662cd._0x2b3f96);}function _0x1893f8(_0x54fbae,_0x4c188a,_0x134180,_0x4e5c6f){return _0x23b1c2(_0x54fbae-_0x1730be._0x2e3031,_0x134180,_0x4e5c6f- -0x1b8,_0x4e5c6f-0x17d);}return(_0x2e7fac+'\x20('+_0x2ddce4[_0x1893f8(0x2e1,_0x410f0c._0x60ddcd,_0x410f0c._0x15d770,_0x410f0c._0x5c3e52)](_0x28cc10=>_0xddba7d(0x491,0x3b5,0x432,0x4da)+_0x28cc10)[_0x1893f8(_0x410f0c._0x45fe89,0x23b,_0x410f0c._0x171ac7,_0x410f0c._0x533a2a)](_0x1893f8(0x196,0x1c6,0x1b5,_0x410f0c._0x596973))+')')['trim']();}function normalizeType(_0x1990ba){const _0x1fde64={_0x42d399:0x6be,_0x2301bd:0x727,_0x1c56cf:0x6c2,_0xa23e8e:0x2b0,_0x561bd3:0x22d},_0x3b77b1={_0x318d7d:0x42},_0x49a6f7={_0x44892b:0x1a2};function _0x42d6ff(_0x16c835,_0x11874c,_0x11f903,_0x2cb8e6){return _0x23b1c2(_0x16c835-0x1f4,_0x2cb8e6,_0x11f903-0x330,_0x2cb8e6-_0x49a6f7._0x44892b);}function _0x22b459(_0x8dee66,_0x3a03b,_0x4a2fa6,_0x1b0ae6){return _0x57b9de(_0x8dee66-0x71,_0x8dee66,_0x4a2fa6- -0x20d,_0x1b0ae6-_0x3b77b1._0x318d7d);}return _0x1990ba===_0x42d6ff(0x7e3,0x6bf,_0x1fde64._0x42d399,0x78c)?_0x42d6ff(_0x1fde64._0x2301bd,_0x1fde64._0x1c56cf,_0x1fde64._0x42d399,0x58b):_0x22b459(_0x1fde64._0xa23e8e,_0x1fde64._0x561bd3,0x1f0,0x109);}async function fetchJson(_0xe74c52,_0x2dd37c,_0x3546f5){const _0xe929a9={_0x4064f1:0x10f,_0xbdc4a3:0x21e,_0x22a118:0x1f0,_0x5e1c00:0x159,_0xbb257e:0x1b1,_0x2c926d:0x26c,_0x12f092:0x35,_0x3b8e10:0x22b,_0x4cd5c9:0x1e0,_0x4dc729:0x2b5,_0x1baebe:0x1e8,_0x2df3e7:0x2c2,_0x2f6f65:0x1fb,_0x19718f:0x476,_0x5f5282:0x3f9,_0x5308a0:0x47c,_0x20bde4:0x2a1,_0x55d5da:0x208,_0x5ba3c3:0x3ab,_0x43e04f:0x458,_0x3acdda:0x277,_0x2f34de:0x37e,_0x5a9ead:0x4a1},_0x18a5fa={_0x4be85f:0x194,_0x16a066:0x2aa,_0x5ded9c:0xda},_0x5efc73={_0xcc4387:0x150,_0xfdc764:0xa4,_0x5a53e0:0x1ac},_0x4d0924=await fetch(_0xe74c52,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x30e2b3(_0xe929a9._0x4064f1,_0xe929a9._0xbdc4a3,_0xe929a9._0x22a118,_0xe929a9._0x5e1c00),..._0x3546f5?.[_0x30e2b3(0x14b,_0xe929a9._0xbb257e,0x29a,_0xe929a9._0x2c926d)]},'signal':_0x2dd37c,..._0x3546f5});function _0x329b18(_0x39a085,_0x18de0e,_0x99d89b,_0x2757a1){return _0x23b1c2(_0x39a085-_0x5efc73._0xcc4387,_0x2757a1,_0x39a085- -_0x5efc73._0xfdc764,_0x2757a1-_0x5efc73._0x5a53e0);}function _0x30e2b3(_0x109b1f,_0x2daa9e,_0x51249,_0x5b731b){return _0x57b9de(_0x109b1f-_0x18a5fa._0x4be85f,_0x2daa9e,_0x109b1f- -_0x18a5fa._0x16a066,_0x5b731b-_0x18a5fa._0x5ded9c);}if(!_0x4d0924['ok']){let _0xd7a744,_0x5a19c1;try{_0xd7a744=await _0x4d0924[_0x329b18(0x2b1,0x268,0x3c4,0x166)]();const _0x4bdd1c=JSON[_0x30e2b3(0x8f,0x16f,-0x27,-_0xe929a9._0x12f092)](_0xd7a744),_0x14bd92=typeof _0x4bdd1c[_0x30e2b3(0x127,0xbb,_0xe929a9._0x3b8e10,0x237)]===_0x30e2b3(_0xe929a9._0x4cd5c9,0x266,0x1c1,_0xe929a9._0x4dc729)?_0x4bdd1c['detail'][_0x30e2b3(0x205,_0xe929a9._0x1baebe,0x1eb,_0xe929a9._0x2df3e7)]:void 0x0;_0x5a19c1=_0x4bdd1c['error']?.[_0x30e2b3(_0xe929a9._0x2f6f65,0x34e,0x10e,0xed)]??_0x4bdd1c[_0x329b18(0x35d,_0xe929a9._0x19718f,_0xe929a9._0x5f5282,_0xe929a9._0x5308a0)]?.[_0x329b18(0x375,0x3a0,_0xe929a9._0x20bde4,0x32d)]?.[0x0]?.[_0x30e2b3(_0xe929a9._0x2f6f65,_0xe929a9._0x55d5da,0x141,0x257)]??_0x14bd92;}catch{}const _0x5a83c6=_0x5a19c1?_0x329b18(_0xe929a9._0x5ba3c3,0x34d,0x2f4,_0xe929a9._0x43e04f)+_0x4d0924[_0x329b18(0x37e,_0xe929a9._0x3acdda,0x277,0x2e2)]+':\x20'+_0x5a19c1:'HTTP\x20'+_0x4d0924['status']+'\x20'+_0x4d0924['statusText'];throw new ToolExecutionError(_0x5a83c6,{'statusCode':_0x4d0924[_0x329b18(_0xe929a9._0x2f34de,_0xe929a9._0x5a9ead,0x305,0x4c4)],..._0xd7a744?{'body':_0xd7a744}:{}});}return await _0x4d0924['json']();}async function hydrateResults(_0x3bc08a,_0x38dbe6,_0x51ef6a){const _0x3969b6={_0x7b8b9a:0x5d3,_0x53b657:0x604,_0x7d41d1:0x72b,_0x419357:0x36b,_0x2f890f:0x453,_0x5251c2:0x618,_0xcfa53a:0x4b6,_0xb189ca:0x547},_0x3af462={_0x5b426b:0x1d3},_0x4513c3={_0x338bee:0x418,_0x2d1b33:0x470,_0x4c5c01:0x168,_0x58321b:0x7b,_0x27dab9:0x429,_0x4359ff:0x33e,_0x5eb0ca:0x1a1,_0x3151cb:0x3e7,_0x375913:0x2a2,_0x44cb5c:0x110,_0x1066ae:0x13a,_0x12eddf:0x10f,_0x2c74ed:0x25f,_0x33b19e:0x24d,_0x36735c:0x34,_0x2bc8e9:0x18f,_0x27d6e5:0x269,_0x54bdab:0x25d,_0x1eb8d6:0x2a2,_0x107bd4:0x2d1,_0x152f1f:0x1df,_0x47aca5:0x2c0,_0x1d35f0:0x46a,_0x21416b:0x45d,_0x33958b:0x56d,_0x4ed5d4:0x376,_0x528578:0x48a,_0x9c76f3:0x246,_0x1ca93d:0x2e9,_0x4e2559:0x30f,_0x116345:0x358,_0x35f242:0x32b,_0x4951bc:0x39e,_0x50d3eb:0x294,_0x59ac7b:0x2c5,_0x334f0d:0x341,_0x157a06:0x3d7,_0x550fe9:0x296,_0x4506d3:0x15a,_0x59d505:0x26a,_0x5a1e15:0x2e0,_0x1915d0:0x255},_0x527bbf={_0x5baac4:0x154},_0x23bd24={_0x21674b:0x286,_0x3d251b:0x1bd};function _0x550717(_0x1d8aab,_0x48ec4e,_0x7903ba,_0x27f4ed){return _0x23b1c2(_0x1d8aab-0x173,_0x27f4ed,_0x48ec4e-_0x23bd24._0x21674b,_0x27f4ed-_0x23bd24._0x3d251b);}const _0xc72679=await Promise[_0x550717(_0x3969b6._0x7b8b9a,_0x3969b6._0x53b657,_0x3969b6._0x7d41d1,0x587)](_0x3bc08a[_0x4a7fed(0x4ff,_0x3969b6._0x419357,_0x3969b6._0x2f890f,0x459)](0x0,0xa)['map'](async _0x4e4338=>{function _0x57fcb2(_0x241d35,_0x49e28c,_0x142a9e,_0x118923){return _0x4a7fed(_0x241d35-0x52,_0x49e28c-0x3f,_0x241d35- -0x59,_0x142a9e);}function _0x4b004d(_0x35449f,_0x2e9e,_0x2e2ccd,_0x19865c){return _0x4a7fed(_0x35449f-_0x527bbf._0x5baac4,_0x2e9e-0x92,_0x2e2ccd- -0x2ae,_0x35449f);}try{const _0x18ce53=await fetch(_0x4e4338[_0x57fcb2(0x535,_0x4513c3._0x338bee,_0x4513c3._0x2d1b33,0x448)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x38dbe6,'Accept':'text/html'},'signal':_0x51ef6a});if(!_0x18ce53['ok'])return _0x4e4338;const _0x5779b6=await _0x18ce53[_0x4b004d(0xf8,0x1f3,_0x4513c3._0x4c5c01,0x161)](),_0x4c87e6=load(_0x5779b6),_0x528b4a=_0x4c87e6('meta[property=\x27og:title\x27]')[_0x4b004d(0xb,_0x4513c3._0x58321b,0x121,0x145)](_0x57fcb2(0x30f,0x334,_0x4513c3._0x27dab9,0x2b0))||_0x4c87e6(_0x4b004d(0x1ee,_0x4513c3._0x4359ff,0x29e,0x298))['first']()[_0x4b004d(_0x4513c3._0x5eb0ca,0x19,0x168,0xc3)]()[_0x57fcb2(0x31b,_0x4513c3._0x3151cb,0x30e,_0x4513c3._0x375913)](),_0x409abf=_0x4c87e6(_0x4b004d(_0x4513c3._0x44cb5c,_0x4513c3._0x1066ae,0x190,0x253))['attr'](_0x4b004d(_0x4513c3._0x12eddf,0x18e,0xba,0x103))||_0x4c87e6(_0x57fcb2(0x317,0x433,_0x4513c3._0x2c74ed,_0x4513c3._0x33b19e))[_0x4b004d(_0x4513c3._0x36735c,_0x4513c3._0x2bc8e9,0x121,_0x4513c3._0x27d6e5)](_0x57fcb2(0x30f,_0x4513c3._0x54bdab,_0x4513c3._0x1eb8d6,0x321))||_0x4e4338[_0x4b004d(_0x4513c3._0x107bd4,0x290,_0x4513c3._0x152f1f,_0x4513c3._0x47aca5)],_0x15c919=_0x4c87e6(_0x57fcb2(_0x4513c3._0x1d35f0,_0x4513c3._0x21416b,0x49a,_0x4513c3._0x33958b))[_0x57fcb2(_0x4513c3._0x4ed5d4,_0x4513c3._0x528578,_0x4513c3._0x9c76f3,_0x4513c3._0x1ca93d)](_0x57fcb2(_0x4513c3._0x4e2559,_0x4513c3._0x116345,_0x4513c3._0x35f242,0x2f8))||_0x4c87e6(_0x4b004d(_0x4513c3._0x4951bc,0x283,0x292,_0x4513c3._0x50d3eb))['attr']('datetime')||_0x4e4338[_0x57fcb2(0x40f,0x546,0x346,0x53c)],_0x187d0b=_0x4c87e6(_0x57fcb2(_0x4513c3._0x59ac7b,_0x4513c3._0x334f0d,_0x4513c3._0x157a06,0x1f1))[_0x57fcb2(0x376,0x36d,_0x4513c3._0x550fe9,0x2d1)]('href');return{..._0x4e4338,'title':_0x528b4a||_0x4e4338[_0x4b004d(0x27e,_0x4513c3._0x4506d3,0x29e,_0x4513c3._0x59d505)],'snippet':_0x409abf,'url':_0x187d0b?normalizeUrl(new URL(_0x187d0b,_0x4e4338[_0x4b004d(0x230,0x1a0,_0x4513c3._0x5a1e15,0x1c2)])[_0x4b004d(0x28f,0x247,_0x4513c3._0x1915d0,0x2e1)]()):_0x4e4338['url'],'publishedAt':_0x15c919};}catch{return _0x4e4338;}})),_0x55b116=new Map(_0x3bc08a[_0x550717(0x737,_0x3969b6._0x5251c2,0x610,0x561)](0x0,0xa)[_0x4a7fed(0x4e6,0x47e,0x547,0x613)]((_0x1e63c0,_0x430d7b)=>[_0x1e63c0[_0x4a7fed(0x5e0,0x4b4,0x58e,0x4df)],_0xc72679[_0x430d7b]]));function _0x4a7fed(_0x470e94,_0x439eab,_0x351b47,_0x8e5986){return _0x23b1c2(_0x470e94-_0x3af462._0x5b426b,_0x8e5986,_0x351b47-0xc1,_0x8e5986-0x186);}return _0x3bc08a[_0x4a7fed(_0x3969b6._0xcfa53a,0x51f,_0x3969b6._0xb189ca,0x541)](_0x280be8=>_0x55b116[_0x4a7fed(0x2b0,0x42c,0x3ad,0x41c)](_0x280be8['url'])??_0x280be8);}function formatResults(_0x295825){const _0x4a87a6={_0x251f2d:0x72f,_0x3b0f43:0x6be,_0x15831d:0x707,_0x4838da:0x6cd,_0xc570cd:0x5c6,_0x90a868:0x6ef,_0x1f2c23:0x31f,_0x186f61:0x2a0,_0x423768:0x33f,_0x45afc1:0x30c,_0x4aa93:0x17d,_0x332a84:0x21e,_0x439f60:0x20a,_0x39af08:0x1f9,_0x49bb3c:0x2fc,_0x59dfe4:0x614,_0x4fabeb:0x5b3,_0xf9c213:0x5f1,_0x2cbc86:0x5e8},_0x8e0050={_0x3238cd:0x1e4},_0x2c02a1={_0x10773c:0x140},_0x124c83={_0xcf6b28:0x13d},_0xaca992={_0x19f7a9:0xe0,_0x14a32d:0x126};function _0x4d7212(_0x3ddf59,_0x58e716,_0x522991,_0x30c8d5){return _0x23b1c2(_0x3ddf59-0x19a,_0x3ddf59,_0x30c8d5- -_0xaca992._0x19f7a9,_0x30c8d5-_0xaca992._0x14a32d);}if(_0x295825[_0x4d7212(0x2e1,0x2ae,0x3d6,0x3c9)]===0x0)return'No\x20results\x20found.';function _0x45b9df(_0x18ce1e,_0x4b1e7e,_0x1e4d0b,_0x5296b8){return _0x57b9de(_0x18ce1e-0x30,_0x5296b8,_0x1e4d0b- -0x56,_0x5296b8-_0x124c83._0xcf6b28);}return _0x295825['map'](_0x25b91d=>{const _0x42f40d=[_0x25b91d[_0x9b586e(_0x4a87a6._0x251f2d,_0x4a87a6._0x3b0f43,_0x4a87a6._0x15831d,0x6cf)][_0x9b586e(0x4e8,_0x4a87a6._0x4838da,0x603,_0x4a87a6._0xc570cd)]+'.\x20'+_0x25b91d[_0x9b586e(_0x4a87a6._0x90a868,0x7f1,0x58e,0x6d5)],_0x25b91d[_0x22116f(_0x4a87a6._0x1f2c23,0x207,_0x4a87a6._0x186f61,_0x4a87a6._0x423768)]];function _0x22116f(_0x481fbf,_0xbe61af,_0x334790,_0x590d45){return _0x4d7212(_0xbe61af,_0xbe61af-0xc5,_0x334790-_0x2c02a1._0x10773c,_0x481fbf- -0xce);}if(_0x25b91d[_0x22116f(0x21e,_0x4a87a6._0x45afc1,0x198,0x330)])_0x42f40d[_0x22116f(0x1e7,0x248,_0x4a87a6._0x4aa93,0xde)](_0x25b91d[_0x22116f(_0x4a87a6._0x332a84,_0x4a87a6._0x439f60,_0x4a87a6._0x39af08,_0x4a87a6._0x49bb3c)]);function _0x9b586e(_0x1b50f8,_0x331fbd,_0x4eb088,_0x4e59f3){return _0x4d7212(_0x1b50f8,_0x331fbd-_0x8e0050._0x3238cd,_0x4eb088-0x116,_0x4e59f3-0x32a);}if(_0x25b91d['publishedAt'])_0x42f40d[_0x9b586e(_0x4a87a6._0x59dfe4,0x6d9,0x506,0x5df)]('Published:\x20'+_0x25b91d[_0x9b586e(0x4ab,0x73d,_0x4a87a6._0x4fabeb,_0x4a87a6._0xf9c213)]);return _0x42f40d[_0x9b586e(0x497,0x48c,_0x4a87a6._0x2cbc86,0x53b)]('\x0a');})[_0x4d7212(0x196,0x24d,0x362,0x211)]('\x0a\x0a');}async function searchOllama(_0x432d1c,_0x17c5e5,_0x587681){const _0x527e95={_0x1caeb6:0x480,_0x327c17:0x525,_0x43075a:0x582,_0xc031cf:0x4cf,_0x2d2cef:0x55c,_0x18bd1e:0x4e2,_0x1133d0:0x3cc,_0x35fba1:0x38e,_0x362eeb:0x211,_0x1a7e49:0x53a,_0x1893f4:0x334,_0x3b3d77:0x286,_0x12c035:0x2f3,_0x410fd1:0x270,_0x455c71:0x24c,_0x224e82:0x6cf,_0x401f26:0x596,_0x2f84fa:0x588,_0x53fc74:0x5dd,_0x2ce63e:0x530,_0x22f5fd:0x681,_0x45f036:0x20d},_0x511b6c={_0x3f128c:0x4d,_0x5d3646:0xb0,_0x4197ce:0x294,_0x306b9:0x30e,_0x55db1d:0x2a0},_0x51e640={_0x772a1:0x1b1},_0x232ef5={_0x414c80:0xc8,_0x204b07:0x1ba},_0x1dfd9a={_0x5370c2:0x185,_0x185fe2:0xf0,_0x1d2004:0x1a9},_0xe9aec9=Math[_0x5cb0ab(0x401,_0x527e95._0x1caeb6,0x4a2,0x5ec)](0x1,Math['min'](0xa,_0x17c5e5[_0x5cb0ab(0x44b,0x5d9,_0x527e95._0x327c17,_0x527e95._0x43075a)]));function _0x5cb0ab(_0x69aac3,_0x319aaa,_0x42d7bf,_0x39ea3e){return _0x57b9de(_0x69aac3-_0x1dfd9a._0x5370c2,_0x319aaa,_0x42d7bf-_0x1dfd9a._0x185fe2,_0x39ea3e-_0x1dfd9a._0x1d2004);}const _0x7f734d=addSiteFilters(_0x17c5e5['query'],_0x17c5e5[_0x5cb0ab(_0x527e95._0xc031cf,_0x527e95._0x2d2cef,_0x527e95._0x18bd1e,_0x527e95._0x1133d0)]),_0x590c55=await fetchJson(_0x1261d2(0x2d2,_0x527e95._0x35fba1,0x1f2,_0x527e95._0x362eeb),_0x587681,{'method':_0x5cb0ab(0x503,0x3ab,0x45d,_0x527e95._0x1a7e49),'headers':{'Authorization':_0x1261d2(0x2a6,_0x527e95._0x1893f4,_0x527e95._0x3b3d77,_0x527e95._0x12c035)+_0x432d1c['apiKey']},'body':JSON[_0x1261d2(_0x527e95._0x410fd1,0x28c,_0x527e95._0x455c71,0x336)]({'query':_0x7f734d,'max_results':_0xe9aec9})}),_0x14be0a=_0x590c55[_0x5cb0ab(0x5be,0x563,0x5af,_0x527e95._0x224e82)]??[];function _0x1261d2(_0x185d1b,_0x4d56e5,_0x3f82f0,_0x2f25a2){return _0x23b1c2(_0x185d1b-_0x232ef5._0x414c80,_0x3f82f0,_0x185d1b- -0xfe,_0x2f25a2-_0x232ef5._0x204b07);}const _0x4a0dac=_0x14be0a[_0x5cb0ab(0x6cd,_0x527e95._0x401f26,0x624,_0x527e95._0x2f84fa)]((_0x407c02,_0x144361)=>{const _0xab339e=_0x407c02['url']||'';function _0xfcf81a(_0x4e95e9,_0x3260c9,_0x328204,_0xdc6f2b){return _0x5cb0ab(_0x4e95e9-0x27,_0x328204,_0x3260c9- -_0x51e640._0x772a1,_0xdc6f2b-0x53);}let _0x1199c1;try{_0x1199c1=new URL(_0xab339e)[_0x54f75d(0x9c,0xd9,_0x511b6c._0x3f128c,_0x511b6c._0x5d3646)];}catch{_0x1199c1=null;}function _0x54f75d(_0x14c111,_0x27e3aa,_0x4619e2,_0x3247a8){return _0x1261d2(_0x3247a8- -0x2a9,_0x27e3aa-0x163,_0x4619e2,_0x3247a8-0x1e9);}return{'title':_0x407c02['title']||'Untitled','url':normalizeUrl(_0xab339e),'snippet':_0x407c02[_0xfcf81a(0x209,_0x511b6c._0x4197ce,_0x511b6c._0x306b9,0x19c)]??null,'displayUrl':_0x1199c1,'favicon':null,'publishedAt':null,'source':{'engine':_0xfcf81a(0x389,0x2f7,_0x511b6c._0x55db1d,0x3d3),'rank':_0x144361+0x1}};});return{'items':_0x4a0dac[_0x5cb0ab(_0x527e95._0x53fc74,0x4d7,_0x527e95._0x2ce63e,_0x527e95._0x22f5fd)](0x0,_0xe9aec9),'engine':_0x1261d2(0x20c,_0x527e95._0x45f036,0x239,0x22b)};}async function searchTavily(_0x25ab10,_0x19d7b2,_0x3561fc){const _0x3a6b16={_0xc03711:0x7c,_0x5307ae:0xb7,_0x35e23a:0x2a,_0x250c4d:0xf4,_0x30deee:0x24,_0x366ae0:0x504,_0x1b465f:0x255,_0x3b41a0:0x111,_0x48dc8b:0x1aa,_0x338d54:0x10b,_0x21ce0d:0xb7,_0x2af7e9:0x1ad,_0x5f08cb:0x4d5,_0x2b1b2d:0x438,_0x2cb7eb:0x3a2,_0x15fb63:0x645,_0x386aa9:0x453,_0x31e5d7:0x555,_0x5cf5a3:0x42d,_0x3c99a4:0x473,_0x1c4497:0x34f,_0x2417cf:0x47d,_0x2812f0:0x11c,_0x2a20a3:0x41d,_0x212cbc:0xe6,_0x20505c:0x189,_0x34f3c2:0x5ab,_0x303891:0x516,_0x31eb4b:0x94,_0x4e7d7:0x3cf},_0xd4005f={_0x55e1fe:0x430,_0x44a407:0x49f,_0x599779:0x4b4,_0x573412:0xb0,_0x2d9137:0xd0,_0x4e8441:0x82,_0x338b9d:0x1b,_0x1f7ade:0x28c,_0x4ee572:0x224},_0x91eda={_0x335b2f:0x288},_0x57b650={_0x4dbb7b:0x109,_0xf5b2be:0x1d2};function _0x749516(_0x5b8e72,_0xd734d4,_0x52f5c9,_0x54624e){return _0x57b9de(_0x5b8e72-_0x57b650._0x4dbb7b,_0xd734d4,_0x52f5c9- -0x1e,_0x54624e-_0x57b650._0xf5b2be);}const _0x624e04=Math[_0xe8b8ce(0x4c,0xc,0x15a,_0x3a6b16._0xc03711)](0x1,Math[_0xe8b8ce(_0x3a6b16._0x5307ae,-_0x3a6b16._0x35e23a,_0x3a6b16._0x250c4d,-_0x3a6b16._0x30deee)](0x14,_0x19d7b2['count'])),_0x1f9e27={'query':_0x19d7b2[_0x749516(_0x3a6b16._0x366ae0,0x49b,0x429,0x2ec)],'max_results':_0x624e04,'search_depth':_0x25ab10[_0xe8b8ce(_0x3a6b16._0x1b465f,_0x3a6b16._0x3b41a0,_0x3a6b16._0x48dc8b,_0x3a6b16._0x338d54)]??_0xe8b8ce(_0x3a6b16._0x21ce0d,0xa9,0xee,_0x3a6b16._0x2af7e9),'topic':_0x25ab10[_0x749516(0x387,0x3d1,_0x3a6b16._0x5f08cb,0x61b)]??'general'};if(_0x19d7b2[_0x749516(0x3b6,0x3c4,0x3d4,_0x3a6b16._0x2b1b2d)]['length']>0x0)_0x1f9e27[_0x749516(0x21d,_0x3a6b16._0x2cb7eb,0x305,0x2db)]=_0x19d7b2['domains'];const _0x5c972=await fetchJson(_0x749516(_0x3a6b16._0x15fb63,_0x3a6b16._0x386aa9,_0x3a6b16._0x31e5d7,0x679),_0x3561fc,{'method':_0x749516(_0x3a6b16._0x5cf5a3,_0x3a6b16._0x3c99a4,_0x3a6b16._0x1c4497,_0x3a6b16._0x2417cf),'headers':{'Authorization':_0xe8b8ce(0x19f,0x32,0x1d7,_0x3a6b16._0x2812f0)+_0x25ab10[_0x749516(0x363,_0x3a6b16._0x2a20a3,0x494,0x54d)],'Content-Type':'application/json'},'body':JSON[_0xe8b8ce(0x5d,0x6d,-0x11,_0x3a6b16._0x212cbc)](_0x1f9e27)}),_0x5a4b6c=_0x5c972[_0xe8b8ce(0x2be,0x214,0xe2,_0x3a6b16._0x20505c)]??[];function _0xe8b8ce(_0x1f44f9,_0x58c7e7,_0x247fa5,_0x242f38){return _0x23b1c2(_0x1f44f9-0x10e,_0x58c7e7,_0x242f38- -_0x91eda._0x335b2f,_0x242f38-0xa1);}const _0x2706da=_0x5a4b6c[_0x749516(0x62d,_0x3a6b16._0x34f3c2,_0x3a6b16._0x303891,0x425)]((_0xf27576,_0x43d363)=>{const _0x51d33c={_0x496dcc:0x11c,_0x5e9ed1:0x2c6,_0x1adf0e:0x175},_0x218f62=_0xf27576[_0x5a6260(0x3fb,_0xd4005f._0x55e1fe,_0xd4005f._0x44a407,0x446)]||'';function _0x5a6260(_0x42b704,_0x1d7013,_0x37ed7e,_0x3de4b0){return _0x749516(_0x42b704-0x1df,_0x1d7013,_0x3de4b0- -0x117,_0x3de4b0-0x65);}function _0x4bada5(_0xf70c1d,_0x4a84c3,_0x36e6be,_0x45d7f9){return _0x749516(_0xf70c1d-_0x51d33c._0x496dcc,_0x4a84c3,_0x45d7f9- -_0x51d33c._0x5e9ed1,_0x45d7f9-_0x51d33c._0x1adf0e);}let _0x295a8a;try{_0x295a8a=new URL(_0x218f62)[_0x5a6260(0x48b,_0xd4005f._0x599779,0x32f,0x3d0)];}catch{_0x295a8a=null;}return{'title':_0xf27576['title']||_0x4bada5(0xa4,-_0xd4005f._0x573412,-_0xd4005f._0x2d9137,0x23),'url':normalizeUrl(_0x218f62),'snippet':_0xf27576[_0x4bada5(-0x67,_0xd4005f._0x4e8441,-_0xd4005f._0x338b9d,0x71)]??null,'displayUrl':_0x295a8a,'favicon':null,'publishedAt':null,'source':{'engine':_0x5a6260(0x339,0x232,_0xd4005f._0x1f7ade,_0xd4005f._0x4ee572),'rank':_0x43d363+0x1}};});return{'items':_0x2706da[_0xe8b8ce(0xfe,0x221,_0x3a6b16._0x31eb4b,0x10a)](0x0,_0x624e04),'engine':_0x749516(_0x3a6b16._0x4e7d7,0x227,0x33b,0x293)};}async function searchGoogleCse(_0x441937,_0xe6c54c,_0x122309){const _0x22b004={_0x39720c:0x3b7,_0x4b8388:0x39b,_0x10617d:0x3d1,_0x5dfccb:0x4f7,_0x2e4e29:0x414,_0x149bac:0x61e,_0x7ca57c:0x434,_0xcbf0ce:0x41e,_0x205558:0x748,_0x309cc9:0x70d,_0x3b7c84:0x588,_0x5a20a7:0x418,_0x76d1ed:0x43d,_0x5f3b98:0x75a,_0x24e82b:0x83b,_0x588707:0x69c,_0x33a10d:0x523,_0x481507:0x6a6,_0x275c52:0x68f,_0x4b2727:0x679,_0x2d008c:0x54c,_0x4d0acd:0x456,_0x5c90bf:0x403,_0x2bbb9b:0x2bc,_0x1c6ecb:0x3d0,_0x579d12:0x2f6,_0x515d6f:0x563,_0x41a46b:0x48f,_0x45400a:0x49f,_0x1c4b01:0x354,_0x33d448:0x70c,_0x17aa7c:0x5b5,_0x55cee7:0x59f,_0x3d7999:0x4c7,_0x378e6d:0x5cc,_0x14caef:0x6e4,_0x4f925b:0x5d8,_0x5a1c57:0x4dc,_0x45ab91:0x458,_0x2cd2de:0x415,_0x3f6024:0x426,_0x19bf6e:0x4e8,_0x3c5751:0x340,_0x578af9:0x30f,_0x8bcfb1:0x2e0,_0x271af5:0x6b9,_0x10ea4f:0x7e1,_0x16212c:0x3d2,_0x3600ba:0x1e9,_0x2a8297:0x4d4,_0x580da2:0x40d,_0x531eb8:0x2ea,_0x325890:0x6e4,_0x415316:0x6a5,_0x4f7f30:0x294,_0x10d61a:0x1c2,_0x315b94:0x3d9,_0x3cf5b2:0x2fc,_0x2c15fd:0x6ae,_0x501020:0x682,_0x38148d:0x6f0,_0x2b73db:0x326,_0x1617f1:0x607,_0x291d33:0x6f1,_0x10bad5:0x42c,_0x3a1059:0x505,_0x177aa2:0x302,_0x4b377e:0x384,_0x48f2a8:0x484,_0x801b7c:0x1a5,_0x3aa8af:0x330,_0x3f6ac9:0x650,_0x545947:0x716,_0x1c053d:0x73b,_0x19bc13:0x319,_0x484bea:0x43f,_0x3f3c69:0x517,_0x28672a:0x471,_0x570afa:0x44a,_0x430259:0x4c4,_0x485844:0x5e7,_0x3b297e:0x6b0,_0x1ef6d3:0x359,_0x3c96ef:0x40c,_0x46fa49:0x452,_0x160745:0x39f,_0x47bfc4:0x2bb,_0x52b1aa:0x2e0,_0x170dff:0x4d2,_0x26d839:0x578,_0x3d759b:0x458,_0xa3022:0x207,_0x3a7929:0x247,_0x2b43e6:0x3d5,_0x11095c:0x6d5,_0x3ad71d:0x6ca,_0x43c5d6:0x6e7,_0x252fb7:0x73a,_0x5997b1:0x682,_0x2f3453:0x73c,_0x11091b:0x83c,_0x456592:0x588,_0x3ad4cb:0x6af,_0x53097a:0x6c9,_0x549a8d:0x54d,_0x276e42:0x5b8,_0xca77de:0x522,_0x5e0d8f:0x3eb,_0x193c24:0x4ec,_0x1708c8:0x5f0,_0x49efcf:0x65f,_0x1cc76b:0x6ea,_0x312399:0x7a6,_0x41002f:0x71a,_0x225864:0x80f,_0x42699a:0x67b,_0x103d85:0x643,_0x12402d:0x78e,_0x10f8f4:0x6ec,_0x550f9d:0x5a2,_0x143a7d:0x39a,_0x48ca8e:0x4fb,_0x413b00:0x69c,_0x3f16f1:0x2a3,_0x55ffdc:0x32d,_0x18e93e:0x338,_0x3d5bcb:0x625,_0x930510:0x732,_0x89a962:0x51f,_0xab0ced:0x738},_0x193aea={_0x233f88:0x1e5,_0x53ff9e:0x26},_0x5be0b2={_0x5515b3:0x3e},_0x2f1a94=Math[_0x158f0c(0x415,_0x22b004._0x39720c,_0x22b004._0x4b8388,_0x22b004._0x10617d)](0x1,Math[_0x5d65a5(_0x22b004._0x5dfccb,_0x22b004._0x2e4e29,_0x22b004._0x149bac,_0x22b004._0x7ca57c)](0x32,_0xe6c54c[_0x158f0c(0x33e,0x4e0,_0x22b004._0xcbf0ce,0x34c)]));if(_0xe6c54c[_0x5d65a5(_0x22b004._0x205558,0x6f4,_0x22b004._0x309cc9,0x746)]+_0x2f1a94>0x64)throw new ToolExecutionError(_0x158f0c(_0x22b004._0x3b7c84,_0x22b004._0x5a20a7,_0x22b004._0x76d1ed,0x440),{'offset':_0xe6c54c[_0x5d65a5(0x748,_0x22b004._0x5f3b98,_0x22b004._0x24e82b,_0x22b004._0x588707)],'count':_0x2f1a94,'maxResults':0x64});const _0x374f1e=cseDateRestrict(_0xe6c54c['recencyDays']),_0x1e9d21=addSiteFilters(_0xe6c54c[_0x5d65a5(0x62c,0x4fe,_0x22b004._0x33a10d,_0x22b004._0x481507)],_0xe6c54c['domains']);let _0x152d71=0x0;function _0x158f0c(_0x586c60,_0x53be6f,_0x53764a,_0x2667ce){return _0x57b9de(_0x586c60-0x117,_0x586c60,_0x53764a- -0x17,_0x2667ce-_0x5be0b2._0x5515b3);}let _0x6327d9=_0xe6c54c[_0x158f0c(_0x22b004._0x275c52,_0x22b004._0x4b2727,_0x22b004._0x2d008c,_0x22b004._0x4d0acd)]+0x1;const _0x49ece3=[];function _0x5d65a5(_0x31b7ef,_0x9f89af,_0x43896a,_0x16609f){return _0x57b9de(_0x31b7ef-0x19f,_0x43896a,_0x31b7ef-_0x193aea._0x233f88,_0x16609f-_0x193aea._0x53ff9e);}while(_0x152d71<_0x2f1a94){const _0x5a6f9e=Math[_0x158f0c(_0x22b004._0x5c90bf,_0x22b004._0x2bbb9b,0x2fb,0x2ab)](0xa,_0x2f1a94-_0x152d71),_0x382faf=new URL('https://www.googleapis.com/customsearch/v1');_0x382faf[_0x158f0c(0x5e8,0x4f5,0x4e8,_0x22b004._0x1c6ecb)][_0x158f0c(_0x22b004._0x579d12,0x279,0x2e0,0x284)](_0x158f0c(_0x22b004._0x515d6f,0x46b,_0x22b004._0x41a46b,0x4cb),_0x441937[_0x158f0c(_0x22b004._0x45400a,0x48a,_0x22b004._0x1c4b01,0x3bb)]),_0x382faf[_0x5d65a5(0x6e4,_0x22b004._0x33d448,_0x22b004._0x17aa7c,0x6e7)]['set']('cx',_0x441937[_0x5d65a5(_0x22b004._0x55cee7,_0x22b004._0x3d7999,0x45a,_0x22b004._0x378e6d)]),_0x382faf[_0x5d65a5(_0x22b004._0x14caef,0x7f9,_0x22b004._0x4f925b,0x76d)][_0x5d65a5(_0x22b004._0x5a1c57,_0x22b004._0x45ab91,_0x22b004._0x2cd2de,0x494)]('q',_0x1e9d21),_0x382faf[_0x158f0c(0x3fd,_0x22b004._0x3f6024,_0x22b004._0x19bf6e,0x49f)][_0x158f0c(_0x22b004._0x3c5751,_0x22b004._0x578af9,_0x22b004._0x8bcfb1,0x1c0)](_0x5d65a5(_0x22b004._0x271af5,0x69c,0x7e2,_0x22b004._0x10ea4f),String(_0x5a6f9e)),_0x382faf['searchParams'][_0x158f0c(_0x22b004._0x16212c,_0x22b004._0x3600ba,0x2e0,0x39d)](_0x158f0c(_0x22b004._0x2a8297,_0x22b004._0x580da2,0x3e7,_0x22b004._0x531eb8),String(_0x6327d9)),_0x382faf[_0x5d65a5(_0x22b004._0x325890,0x723,0x76d,_0x22b004._0x415316)][_0x158f0c(_0x22b004._0x4f7f30,_0x22b004._0x10d61a,0x2e0,0x3e3)]('safe',_0xe6c54c[_0x158f0c(0x3d8,_0x22b004._0x315b94,_0x22b004._0x3cf5b2,0x436)]?_0x5d65a5(0x664,_0x22b004._0x2c15fd,_0x22b004._0x501020,_0x22b004._0x38148d):_0x158f0c(0x2cc,0x375,_0x22b004._0x2b73db,0x35f));_0xe6c54c[_0x5d65a5(_0x22b004._0x1617f1,0x4ca,0x4f4,_0x22b004._0x291d33)]&&(_0x382faf[_0x158f0c(_0x22b004._0x10bad5,0x3f4,_0x22b004._0x19bf6e,_0x22b004._0x3a1059)][_0x158f0c(0x41b,_0x22b004._0x177aa2,0x2e0,_0x22b004._0x4b377e)]('hl',_0xe6c54c[_0x158f0c(0x471,0x545,0x40b,_0x22b004._0x48f2a8)]),_0x382faf['searchParams'][_0x158f0c(0x228,_0x22b004._0x801b7c,0x2e0,_0x22b004._0x3aa8af)]('lr',_0x5d65a5(_0x22b004._0x3f6ac9,0x721,0x57e,0x6e3)+_0xe6c54c[_0x5d65a5(_0x22b004._0x1617f1,_0x22b004._0x545947,_0x22b004._0x1c053d,_0x22b004._0x309cc9)]));if(_0xe6c54c[_0x158f0c(0x4b1,_0x22b004._0x19bc13,_0x22b004._0x484bea,_0x22b004._0x3f3c69)])_0x382faf[_0x158f0c(0x628,_0x22b004._0x28672a,0x4e8,_0x22b004._0x570afa)][_0x5d65a5(0x4dc,_0x22b004._0x430259,0x3f6,0x4f5)]('gl',_0xe6c54c['region']['toUpperCase']());if(_0xe6c54c[_0x5d65a5(0x6f5,_0x22b004._0x485844,_0x22b004._0x3b297e,0x5fd)]===_0x158f0c(_0x22b004._0x1ef6d3,0x426,0x425,_0x22b004._0x3c96ef))_0x382faf[_0x158f0c(_0x22b004._0x46fa49,0x604,0x4e8,0x44d)][_0x158f0c(_0x22b004._0x160745,_0x22b004._0x47bfc4,_0x22b004._0x52b1aa,0x20b)](_0x5d65a5(_0x22b004._0x170dff,0x590,_0x22b004._0x26d839,_0x22b004._0x3d759b),_0x158f0c(_0x22b004._0xa3022,0x34e,0x351,_0x22b004._0x3a7929));if(_0x374f1e)_0x382faf['searchParams'][_0x5d65a5(0x4dc,_0x22b004._0x2b43e6,0x574,0x5a5)]('dateRestrict',_0x374f1e);const _0x10cfed=await fetchJson(_0x382faf[_0x5d65a5(_0x22b004._0x11095c,_0x22b004._0x3ad71d,0x5a2,0x810)](),_0x122309),_0x44c384=_0x10cfed[_0x5d65a5(0x72d,_0x22b004._0x43c5d6,0x674,0x68a)]??[];if(_0x44c384[_0x5d65a5(0x73c,0x6cb,_0x22b004._0x252fb7,_0x22b004._0x5997b1)]===0x0)break;const _0x1eae5b=_0x152d71;for(let _0x2cc4ca=0x0;_0x2cc4ca<_0x44c384[_0x5d65a5(_0x22b004._0x2f3453,0x830,_0x22b004._0x11091b,0x674)];_0x2cc4ca++){const _0x40d39d=_0x44c384[_0x2cc4ca];if(!_0x40d39d)continue;const _0x16a5e4=_0x40d39d[_0x158f0c(0x5c9,0x3d8,0x48c,_0x22b004._0x456592)]||_0x40d39d['image']?.['contextLink']||'',_0x14a37b=_0x40d39d[_0x5d65a5(0x71e,_0x22b004._0x3ad4cb,0x5fd,_0x22b004._0x53097a)]||_0x40d39d[_0x5d65a5(_0x22b004._0x549a8d,0x67c,0x47e,0x4e5)]?.[_0x158f0c(_0x22b004._0x276e42,_0x22b004._0xca77de,0x522,_0x22b004._0x5e0d8f)]||_0x5d65a5(_0x22b004._0x193c24,_0x22b004._0x1708c8,0x548,0x4b9),_0x39fd1c=_0x40d39d[_0x5d65a5(_0x22b004._0x49efcf,0x658,0x6d8,_0x22b004._0x1cc76b)]||_0x40d39d[_0x5d65a5(0x6a0,_0x22b004._0x312399,0x6c9,_0x22b004._0x41002f)]?.[_0x5d65a5(0x6d2,0x6ca,_0x22b004._0x225864,_0x22b004._0x149bac)](/<[^>]+>/g,''),_0x29e0cd=_0x40d39d[_0x5d65a5(_0x22b004._0x42699a,_0x22b004._0x103d85,0x53c,_0x22b004._0x12402d)]?.['metatags']?.[0x0]??{};let _0x2b5a13;try{_0x2b5a13=new URL(_0x16a5e4)[_0x5d65a5(0x6ea,0x782,_0x22b004._0x10f8f4,_0x22b004._0x550f9d)];}catch{_0x2b5a13=null;}_0x49ece3[_0x158f0c(_0x22b004._0x143a7d,_0x22b004._0x48ca8e,_0x22b004._0x10bad5,0x3c0)]({'title':_0x14a37b,'url':normalizeUrl(_0x16a5e4),'snippet':_0x39fd1c??null,'displayUrl':_0x2b5a13,'favicon':null,'publishedAt':_0x29e0cd[_0x5d65a5(_0x22b004._0x413b00,0x723,0x6f8,0x79e)]||_0x29e0cd['og:updated_time']||null,'source':{'engine':_0x158f0c(0x41e,_0x22b004._0x3f16f1,_0x22b004._0x55ffdc,_0x22b004._0x18e93e),'rank':_0x1eae5b+_0x2cc4ca+0x1}});}_0x152d71+=_0x44c384['length'],_0x6327d9+=_0x44c384['length'];if(_0x44c384['length']<_0x5a6f9e)break;}return _0x49ece3[_0x5d65a5(_0x22b004._0x3d5bcb,_0x22b004._0x930510,_0x22b004._0x89a962,_0x22b004._0xab0ced)](0x0,_0x2f1a94);}function isGoogleCseEngine(_0x50e641){const _0x36e254={_0x399ad3:0x18c,_0x5192ef:0xc7},_0x4f0430={_0x1db009:0x1b8,_0x169eed:0xd9};function _0x44ec49(_0x2cc392,_0x2e9dd1,_0x4dfc64,_0x1e166c){return _0x23b1c2(_0x2cc392-_0x4f0430._0x1db009,_0x1e166c,_0x2e9dd1- -0x384,_0x1e166c-_0x4f0430._0x169eed);}return _0x44ec49(-_0x36e254._0x399ad3,-_0x36e254._0x5192ef,-0x6f,-0x174)in _0x50e641;}function isOllamaEngine(_0x45e4c9){return'apiKey'in _0x45e4c9;}function isTavilyEngine(_0xd032e5){const _0x2a453c={_0x28f1bc:0x690};function _0x3c2fe5(_0x58bb86,_0x174534,_0x401d7b,_0x37352f){return _0x57b9de(_0x58bb86-0x104,_0x37352f,_0x401d7b-0x1de,_0x37352f-0xbc);}return _0x3c2fe5(0x5dc,0x611,_0x2a453c._0x28f1bc,0x694)in _0xd032e5;}function createWebSearchTool(_0x12993a){const _0x36ceb2={_0x67c15b:0x654,_0x557b20:0x743,_0x332868:0x717,_0x2b2540:0x6d7,_0x4bdc46:0x7af,_0x142d9a:0x77b,_0x510392:0x112,_0x4f8b71:0x12d,_0xb1e135:0x715,_0x53201a:0x61,_0x3e4ae6:0x58,_0x1eb54f:0x16c,_0x28a401:0x18a,_0x260c16:0x8bc,_0x470ddd:0x629,_0x4dbbcb:0x157,_0x246c7d:0x22e,_0x3153db:0xd,_0x470a56:0x22f,_0x4e7c0c:0xf4,_0x39965a:0xa5,_0x24ab8a:0x4d,_0x1a1cb6:0xf6,_0xebc37:0x145,_0x256695:0xda,_0x2f8d2b:0x1a2,_0x4f9d50:0xb1,_0x37571b:0x15c,_0x5ceefb:0x119,_0x5a692c:0xaf,_0x150d42:0x206,_0x2ded2f:0x59,_0x4266bd:0x793,_0x1b59d2:0x875,_0x5bc2f6:0xd0,_0x494141:0x111,_0x5e5f6c:0x2a},_0x29d72c={_0x17d501:0x175,_0x57c809:0x103,_0x37faab:0xe4,_0xcbd030:0xb,_0x37a940:0x3b1,_0x44b345:0x186,_0x43c914:0x1e0,_0x1195f5:0x3f,_0x159d4d:0x93,_0x404bcd:0xcb,_0x183e4d:0x371,_0x47a051:0x21e,_0x526827:0x28,_0x267524:0x62,_0x211621:0x92,_0x8474e9:0x18d,_0x159606:0x2bc,_0x4290ce:0x4cc,_0x147d9c:0x34e,_0x5a7364:0x3d3,_0x4c8799:0x415,_0x433dae:0x5bc,_0x211e18:0xb2,_0x1e723d:0xaf,_0x557faa:0x109,_0x30cb9d:0x1cd,_0x32ad91:0x1b7,_0x40d513:0x386,_0x28dbeb:0x240,_0xc28553:0x189,_0xade75:0x1f2,_0x242e44:0x299,_0x45f87e:0x2b5,_0x4493f2:0x406,_0x5bccc1:0x467,_0x454431:0x8a,_0x1f5d14:0x1e9,_0x2faf14:0x9d,_0x5757f0:0x3cb,_0x22a0b0:0x3cf,_0x277ff0:0x534,_0x148219:0x4f6,_0x40b19c:0x609,_0x129868:0x416,_0x1af9ed:0x48a,_0x57d0ec:0x4cf,_0x2e9aec:0x358,_0x12817d:0x2a8,_0x4a8702:0x2fc,_0x1816e5:0x596,_0x46b5b1:0x435,_0x81b969:0x4e7,_0xf683e6:0x3e1,_0x19cac2:0x45d,_0x33075b:0x3f7,_0x3951b9:0x38c,_0xf2dd65:0xc4,_0x40c82e:0x2e4,_0x3ae904:0x119,_0x414e06:0x4f3,_0x2aef3f:0x474,_0x53b384:0x5e7,_0x43cac2:0x3b1,_0x4f4252:0x431,_0x5877b8:0x31c,_0x2d8ea5:0x2d0,_0x4a17ac:0x362,_0x329404:0x199,_0x568ab7:0x3db,_0x17016f:0x420,_0x153686:0x173,_0x4cce60:0x5d,_0x36061f:0x243,_0x3911e7:0x419,_0x4e60d1:0x402,_0x236954:0x500,_0x1959f6:0x53e,_0x560424:0x21b,_0x389629:0x2ce,_0x32d5ed:0x1db,_0x415cf9:0x24b,_0x2147a9:0x17f,_0x1f9c87:0x25f,_0x353d9f:0x522,_0x13e849:0x523,_0x2aec42:0x4cb,_0x199bf3:0x3b6,_0x460f29:0x52,_0x378f68:0x93},_0x55c7c9={_0x421548:0x678,_0x57df9f:0x321,_0x467570:0x3c0,_0x34c634:0x46f,_0x54ce0f:0x414,_0x106418:0x4ac,_0x10478b:0x4fe,_0x37bd31:0x294,_0x1aad42:0x26b,_0x270562:0x322,_0x3c098c:0x2c1},_0x170c42={_0x43e47c:0x429},_0x376412={_0x5e757b:0x6b};if(!_0x12993a[_0x19e07b(_0x36ceb2._0x67c15b,0x673,0x6a8,0x6c8)]||_0x12993a['engines'][_0x19e07b(_0x36ceb2._0x557b20,_0x36ceb2._0x332868,0x7a8,0x87b)]===0x0)throw new Error(_0x19e07b(_0x36ceb2._0x2b2540,_0x36ceb2._0x4bdc46,0x7d4,_0x36ceb2._0x142d9a));function _0x19e07b(_0x5ca470,_0x415a60,_0x43e4c2,_0x1733e7){return _0x23b1c2(_0x5ca470-0xd5,_0x1733e7,_0x43e4c2-0x2ff,_0x1733e7-_0x376412._0x5e757b);}function _0x41337a(_0x4980e2,_0x20d45e,_0x2c59b7,_0x53081e){return _0x57b9de(_0x4980e2-0xea,_0x2c59b7,_0x20d45e- -_0x170c42._0x43e47c,_0x53081e-0xbe);}const _0xbd4782=_0x12993a[_0x41337a(_0x36ceb2._0x510392,-0x16,_0x36ceb2._0x4f8b71,0x129)]??_0x19e07b(0x676,0x611,_0x36ceb2._0xb1e135,0x868);return defineTool({'name':_0xbd4782,'description':'Search\x20the\x20web\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':_0x41337a(-0x63,_0x36ceb2._0x53201a,-0xa0,-_0x36ceb2._0x3e4ae6),'properties':{'description':{'type':_0x41337a(-0x30,-0xf6,-_0x36ceb2._0x1eb54f,-_0x36ceb2._0x28a401)},'query':{'type':'string'},'count':{'type':'number'},'offset':{'type':_0x19e07b(0x841,_0x36ceb2._0x260c16,0x76e,0x7c0)},'domains':{'type':_0x19e07b(0x5d1,0x69b,_0x36ceb2._0x470ddd,0x6da),'items':{'type':_0x41337a(-_0x36ceb2._0x4dbbcb,-0xf6,-_0x36ceb2._0x246c7d,_0x36ceb2._0x3153db)}},'recencyDays':{'type':_0x41337a(_0x36ceb2._0x470a56,_0x36ceb2._0x4e7c0c,_0x36ceb2._0x39965a,-_0x36ceb2._0x24ab8a)},'lang':{'type':_0x41337a(-0x1c7,-_0x36ceb2._0x1a1cb6,-_0x36ceb2._0xebc37,-_0x36ceb2._0x256695)},'region':{'type':_0x41337a(-_0x36ceb2._0x2f8d2b,-0xf6,-_0x36ceb2._0x4f9d50,-0x9d)},'safe':{'type':_0x41337a(_0x36ceb2._0x37571b,_0x36ceb2._0x5ceefb,_0x36ceb2._0x5a692c,_0x36ceb2._0x150d42)},'type':{'type':_0x41337a(-0x45,-_0x36ceb2._0x1a1cb6,_0x36ceb2._0x2ded2f,-0x1d4)},'hydrateMeta':{'type':_0x19e07b(0x89c,0x838,_0x36ceb2._0x4266bd,_0x36ceb2._0x1b59d2)}},'required':[_0x41337a(_0x36ceb2._0x5bc2f6,0x1e,-_0x36ceb2._0x494141,_0x36ceb2._0x5e5f6c)]},async *'execute'(_0x38d290,_0x3e6cb7){const _0x518ff8={_0x5bfb81:0x1e7},_0x3c92de={_0x4c80c5:0x10},_0x245408=_0x38d290['query']['trim']();function _0x396514(_0x3f48c7,_0x507ff1,_0x5f5c7f,_0xb98955){return _0x19e07b(_0x3f48c7-0xd3,_0x507ff1-0x39,_0x507ff1- -0x292,_0x5f5c7f);}if(!_0x245408)throw new ToolExecutionError(_0x396514(0x2c6,0x3c9,0x315,0x424));const _0x15112f={'query':_0x245408,'count':Math[_0x4bf507(_0x29d72c._0x17d501,_0x29d72c._0x57c809,_0x29d72c._0x37faab,0x121)](0x1,Math[_0x4bf507(0x106,0x63,0x161,_0x29d72c._0xcbd030)](0x32,Math[_0x396514(0x373,0x2ad,0x377,_0x29d72c._0x37a940)](_0x38d290[_0x4bf507(0x2c7,_0x29d72c._0x44b345,0x42,_0x29d72c._0x43c914)]??0xa))),'offset':Math['max'](0x0,Math[_0x4bf507(0x92,_0x29d72c._0x1195f5,-0x113,-_0x29d72c._0x159d4d)](_0x38d290['offset']??0x0)),'domains':_0x38d290[_0x4bf507(_0x29d72c._0x404bcd,0x143,0x1b4,0x279)]??[],'recencyDays':Math[_0x396514(0x3ba,_0x29d72c._0x183e4d,_0x29d72c._0x47a051,0x306)](0x0,Math[_0x4bf507(-0x28,_0x29d72c._0x1195f5,-_0x29d72c._0x526827,-0x14)](_0x38d290[_0x4bf507(0xca,_0x29d72c._0x267524,_0x29d72c._0x211621,_0x29d72c._0x8474e9)]??0x0)),'lang':_0x38d290[_0x396514(_0x29d72c._0x159606,0x3e1,_0x29d72c._0x4290ce,_0x29d72c._0x147d9c)]??'en','region':_0x38d290[_0x396514(_0x29d72c._0x5a7364,_0x29d72c._0x4c8799,0x32e,0x2d9)]??'','safe':_0x38d290['safe']??!![],'type':normalizeType(_0x38d290[_0x396514(0x425,0x4cf,0x5b2,_0x29d72c._0x433dae)]),'hydrateMeta':_0x38d290[_0x4bf507(0x11,0x93,_0x29d72c._0x211e18,-_0x29d72c._0x1e723d)]??![]};let _0xabe75a=[],_0x3cf1fa=_0x4bf507(_0x29d72c._0x557faa,0x22e,_0x29d72c._0x30cb9d,_0x29d72c._0x32ad91);for(const _0x443b80 of _0x12993a['engines']){try{if(isGoogleCseEngine(_0x443b80))_0xabe75a=await searchGoogleCse(_0x443b80,_0x15112f,_0x3e6cb7[_0x396514(_0x29d72c._0x40d513,0x3f7,0x456,0x32d)]),_0x3cf1fa=_0x4bf507(0x11a,0x95,0x55,-0x77);else{if(isOllamaEngine(_0x443b80)){const _0x5db316=await searchOllama(_0x443b80,_0x15112f,_0x3e6cb7[_0x4bf507(_0x29d72c._0x28dbeb,_0x29d72c._0xc28553,_0x29d72c._0xade75,0x1cd)]);_0xabe75a=_0x5db316[_0x4bf507(0x291,_0x29d72c._0x242e44,_0x29d72c._0x45f87e,0x22f)],_0x3cf1fa=_0x5db316[_0x396514(0x591,0x534,_0x29d72c._0x4493f2,_0x29d72c._0x5bccc1)];}else{if(isTavilyEngine(_0x443b80)){const _0x4a994c=await searchTavily(_0x443b80,_0x15112f,_0x3e6cb7[_0x4bf507(_0x29d72c._0x454431,0x189,_0x29d72c._0x1f5d14,_0x29d72c._0x2faf14)]);_0xabe75a=_0x4a994c[_0x396514(_0x29d72c._0x5757f0,0x507,0x5b6,_0x29d72c._0x22a0b0)],_0x3cf1fa=_0x4a994c[_0x396514(0x675,_0x29d72c._0x277ff0,_0x29d72c._0x148219,_0x29d72c._0x40b19c)];}}}if(_0xabe75a[_0x4bf507(0x314,0x2a8,0x2db,0x262)]>0x0)break;}catch(_0xd7bb4a){if(_0x443b80===_0x12993a[_0x396514(0x3ae,_0x29d72c._0x129868,_0x29d72c._0x1af9ed,_0x29d72c._0x57d0ec)][_0x12993a['engines'][_0x4bf507(_0x29d72c._0x2e9aec,_0x29d72c._0x12817d,0x2c6,_0x29d72c._0x4a8702)]-0x1])throw _0xd7bb4a;}}_0x15112f['hydrateMeta']&&_0xabe75a[_0x396514(0x427,0x516,_0x29d72c._0x1816e5,_0x29d72c._0x46b5b1)]>0x0&&(_0xabe75a=await hydrateResults(_0xabe75a,_0x15112f[_0x396514(_0x29d72c._0x81b969,_0x29d72c._0xf683e6,_0x29d72c._0x19cac2,0x324)],_0x3e6cb7[_0x396514(0x36c,_0x29d72c._0x33075b,_0x29d72c._0x3951b9,0x301)]));const _0x1751f6=new Set();_0xabe75a=_0xabe75a[_0x4bf507(_0x29d72c._0xf2dd65,0x1d9,_0x29d72c._0x40c82e,_0x29d72c._0x3ae904)](_0x27b747=>{const _0x210b6a={_0xb3158:0x200,_0x5f31e4:0x117},_0x8f679b=_0x27b747[_0x110d0b(0x621,0x55d,_0x55c7c9._0x421548,0x566)][_0x225e3b(_0x55c7c9._0x57df9f,0x2f3,_0x55c7c9._0x467570,_0x55c7c9._0x34c634)]();if(!_0x8f679b||_0x1751f6[_0x110d0b(_0x55c7c9._0x54ce0f,0x50c,_0x55c7c9._0x106418,_0x55c7c9._0x10478b)](_0x8f679b))return![];function _0x110d0b(_0x5d05ef,_0x3be13c,_0x5f2c2f,_0x4c57af){return _0x396514(_0x5d05ef-0xe7,_0x5f2c2f-0x13e,_0x4c57af,_0x4c57af-_0x3c92de._0x4c80c5);}_0x1751f6[_0x225e3b(_0x55c7c9._0x37bd31,_0x55c7c9._0x1aad42,_0x55c7c9._0x270562,_0x55c7c9._0x3c098c)](_0x8f679b);function _0x225e3b(_0x48066e,_0x23e888,_0x454b17,_0x8f7b2a){return _0x396514(_0x48066e-0x1a6,_0x48066e- -_0x210b6a._0xb3158,_0x23e888,_0x8f7b2a-_0x210b6a._0x5f31e4);}return!![];}),_0xabe75a=_0xabe75a[_0x396514(0x3a3,_0x29d72c._0x414e06,0x5fb,_0x29d72c._0x2aef3f)]((_0x9b5417,_0x618b79)=>({..._0x9b5417,'source':{..._0x9b5417[_0x4bf507(0x38a,0x284,0x270,0x2c6)],'rank':_0x618b79+0x1}}));const _0x4cc601={};if(_0x15112f['domains'][_0x396514(_0x29d72c._0x53b384,0x516,0x3cd,0x53e)]>0x0)_0x4cc601['domains']=_0x15112f[_0x396514(0x307,_0x29d72c._0x43cac2,_0x29d72c._0x4f4252,0x3a0)];if(_0x15112f[_0x396514(_0x29d72c._0x5877b8,_0x29d72c._0x2d8ea5,0x373,_0x29d72c._0x4a17ac)]>0x0)_0x4cc601[_0x396514(_0x29d72c._0x329404,_0x29d72c._0x2d8ea5,_0x29d72c._0x568ab7,0x17e)]=_0x15112f[_0x396514(0x304,0x2d0,_0x29d72c._0x17016f,0x329)];if(_0x15112f[_0x396514(0x35e,0x3e1,0x338,0x2ee)]!=='en')_0x4cc601[_0x4bf507(0x42,_0x29d72c._0x153686,_0x29d72c._0x4cce60,_0x29d72c._0x36061f)]=_0x15112f[_0x396514(_0x29d72c._0x3911e7,0x3e1,0x39a,0x2bb)];if(_0x15112f[_0x396514(0x477,0x415,_0x29d72c._0x4e60d1,0x30a)])_0x4cc601['region']=_0x15112f[_0x396514(0x2f3,0x415,_0x29d72c._0x236954,_0x29d72c._0x1959f6)];function _0x4bf507(_0x1318a9,_0x1b67b6,_0x341429,_0x468046){return _0x41337a(_0x1318a9-_0x518ff8._0x5bfb81,_0x1b67b6-0x17a,_0x1318a9,_0x468046-0x44);}return yield createToolOutput(formatResults(_0xabe75a),{'engine':_0x3cf1fa,'count':_0xabe75a[_0x4bf507(_0x29d72c._0x560424,_0x29d72c._0x12817d,_0x29d72c._0x389629,0x2b0)],'items':_0xabe75a,'query':_0x15112f[_0x4bf507(0x1e5,0x198,_0x29d72c._0x32d5ed,0x1da)],...Object[_0x4bf507(_0x29d72c._0x415cf9,_0x29d72c._0x2147a9,0x1a5,_0x29d72c._0x1f9c87)](_0x4cc601)['length']>0x0?{'appliedFilters':_0x4cc601}:{},'offset':_0x15112f[_0x396514(0x5df,_0x29d72c._0x353d9f,0x44e,0x52c)],'totalRequested':_0x15112f[_0x396514(_0x29d72c._0x13e849,0x3f4,_0x29d72c._0x2aec42,_0x29d72c._0x199bf3)],'hydrated':_0x15112f[_0x4bf507(-_0x29d72c._0x460f29,_0x29d72c._0x378f68,0xdf,0x1b0)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|